openc3-cosmos-tool-tablemanager 5.20.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/plugin.txt +1 -1
  3. data/tools/tablemanager/ArrayWidget-By62tXtU-a5e441ab6bd961c1e81c.js +2 -0
  4. data/tools/tablemanager/BarColumn-Dm3D1Lhp-6533ffcfb1380d6338bb.js +1 -0
  5. data/tools/tablemanager/BlockWidget-CrT45ode-18bc995028ac0345c3d1.js +2 -0
  6. data/tools/tablemanager/ButtonWidget-CKyBBv6m-2cd5e39646f8530184f8.js +2 -0
  7. data/tools/tablemanager/CanvasWidget-PqkppHC7-e32c02172a5d78dc5d34.js +1 -0
  8. data/tools/tablemanager/CanvasdotWidget-BUbJgM2d-d63a85366cd2542462b8.js +1 -0
  9. data/tools/tablemanager/CanvasimageWidget-DPVBY7mi-7fd5e1163ad1cb425a05.js +1 -0
  10. data/tools/tablemanager/CanvasimagevalueWidget-GX37zzNc-c0065c34b15078f5ce90.js +1 -0
  11. data/tools/tablemanager/CanvaslabelWidget-P2_Y6Edw-b20ca44827358baf3b26.js +1 -0
  12. data/tools/tablemanager/CanvaslabelvalueWidget-Cuas1i9P-beb2ba0c015b3e257b57.js +1 -0
  13. data/tools/tablemanager/CanvaslineWidget-BYOYgPya-d0a8111f6986cce6581e.js +1 -0
  14. data/tools/tablemanager/CanvaslinevalueWidget-3cVJMFo7-ffad64909baa62c5a2e1.js +1 -0
  15. data/tools/tablemanager/CheckbuttonWidget-B3wgSMuB-43966d31f7d768117846.js +1 -0
  16. data/tools/tablemanager/ComboboxWidget-Dzr4Scvf-402e1d4fcd80b9582c44.js +1 -0
  17. data/tools/tablemanager/DateWidget-BWh76Ibb-52cd25419503f543891b.js +1 -0
  18. data/tools/tablemanager/DetailsDialog-EWjtBjle-48ad16dbf2121c7db04c.js +1 -0
  19. data/tools/tablemanager/DynamicWidget-m9EliUR2-c4b55d29163a62eac2ea.js +1 -0
  20. data/tools/tablemanager/FormatvalueWidget-Rk0_eeIm-1b3e21d2a5a302ca1990.js +1 -0
  21. data/tools/tablemanager/GraphWidget-LqekkNDr-6b6215e7f20aec9e893a.js +1 -0
  22. data/tools/tablemanager/HorizontalWidget-BcfJ24Zn-366041882fc79759fff9.js +1 -0
  23. data/tools/tablemanager/HorizontalboxWidget-CQy1Hv9E-6cf8ffc2ffd7f3d9eecb.js +1 -0
  24. data/tools/tablemanager/HorizontallineWidget-BdlNB951-731b37ae194e5392d988.js +1 -0
  25. data/tools/tablemanager/IframeWidget-BBaDrRLo-1691275ef8f872dd859d.js +1 -0
  26. data/tools/tablemanager/ImageLoader-CDLQopxJ-b362c5b6b2dc94a1927c.js +1 -0
  27. data/tools/tablemanager/ImageviewerWidget-BgO3Pq6I-cef3c980302a9dc4c7cb.js +1 -0
  28. data/tools/tablemanager/LabelWidget-B_C6lKOE-ceb4de5192a33b189717.js +1 -0
  29. data/tools/tablemanager/LabelledWidget-B_UGivhr-dfa95d46573ea9ee233c.js +1 -0
  30. data/tools/tablemanager/LabelprogressbarWidget-BJWCmsYC-358d5b49f6cc975c00d0.js +1 -0
  31. data/tools/tablemanager/LabelsparklineWidget-DILCIh3q-b2f627be5070fe54ab1b.js +1 -0
  32. data/tools/tablemanager/LabelvalueWidget-CCZd1NXE-ade0fc6eca78677f5357.js +1 -0
  33. data/tools/tablemanager/LabelvaluedescWidget-Bsllq8W6-7c0ebcdd34ddad0cba20.js +1 -0
  34. data/tools/tablemanager/LabelvaluelimitsbarWidget-BV-cfaD--6d88b4a9a59bd9012418.js +1 -0
  35. data/tools/tablemanager/LabelvaluelimitscolumnWidget-DwA0eRBw-9c19de6f6ab68e6749ec.js +1 -0
  36. data/tools/tablemanager/LabelvaluerangebarWidget-3GDJz3dj-3c48f97fd9d7e2010954.js +1 -0
  37. data/tools/tablemanager/Layout-klOVw-YN-945c9339f451bef7e299.js +1 -0
  38. data/tools/tablemanager/LedWidget-BAt02s0J-24e0f7ddc071ffbd79db.js +1 -0
  39. data/tools/tablemanager/LimitsbarWidget-JJiyzZjb-c65c064bfae876acd221.js +1 -0
  40. data/tools/tablemanager/LimitscolorWidget-CYzXKbYd-7735f2996a321adf879e.js +1 -0
  41. data/tools/tablemanager/LimitscolumnWidget-Cd76tBo7-dbd1b628a6d3617486f4.js +1 -0
  42. data/tools/tablemanager/LinegraphWidget-DWRtO6Ej-752592d1523334dfd146.js +1 -0
  43. data/tools/tablemanager/MatrixbycolumnsWidget-cwsyjNV2-7faf06bbfa486114391d.js +1 -0
  44. data/tools/tablemanager/ProgressbarWidget-CYDziFej-e111a46921e4ee3af56d.js +1 -0
  45. data/tools/tablemanager/RadiobuttonWidget-U6jcQZoD-a2b032cb8f4409e4a9b4.js +1 -0
  46. data/tools/tablemanager/RadiogroupWidget-HTPJnsB0-94851c581ced37702658.js +1 -0
  47. data/tools/tablemanager/RangebarWidget-DW0FJK6y-9f7d979be718500151b6.js +1 -0
  48. data/tools/tablemanager/RollupWidget-B2qrx55f-a8ba8c8a5c957b996a20.js +1 -0
  49. data/tools/tablemanager/ScrollwindowWidget-CwIDxgO6-fcff75f0a891d612d988.js +1 -0
  50. data/tools/tablemanager/SignalWidget-Bosa3AbW-fffc754c3c046f66fa5d.js +1 -0
  51. data/tools/tablemanager/SpacerWidget-DYAlt5mt-11e4549a313cb7735b3e.js +1 -0
  52. data/tools/tablemanager/SparklineWidget-CDrVXOFV-7d0de925e5fe71338408.js +1 -0
  53. data/tools/tablemanager/TabbookWidget-DDdlzCkv-bc06202601c10b07febe.js +1 -0
  54. data/tools/tablemanager/TableManager-cef9dda0483267a1bd4f.js +10 -0
  55. data/tools/tablemanager/TextboxWidget-5euFelEq-c48e91c2a70fbf489e5e.js +1 -0
  56. data/tools/tablemanager/TextfieldWidget-BFripYeh-d55da2824bb7129ad8d2.js +1 -0
  57. data/tools/tablemanager/TimeWidget-BBSbsUYJ-46a303496f752cb5d70d.js +1 -0
  58. data/tools/tablemanager/TitleWidget-p8cjo-Bs-1a55060ee981c19dba78.js +1 -0
  59. data/tools/tablemanager/VWidget-Dmqf_jKM-1329ca1be4695fe1efaf.js +1 -0
  60. data/tools/tablemanager/ValueWidget-CZh7JWwT-7269b90a9cf3701166be.js +1 -0
  61. data/tools/tablemanager/ValuelimitsbarWidget-DU7ybswC-a8ebafed15da13b05492.js +1 -0
  62. data/tools/tablemanager/ValuelimitscolumnWidget-DMw-h5jM-1b76b97cab832532dd27.js +1 -0
  63. data/tools/tablemanager/ValuerangebarWidget-DPpofDpA-f7ad8a72b09393bb2544.js +1 -0
  64. data/tools/tablemanager/VerticalWidget-Ch7VAEmz-5c5b743c2ddc92136a4b.js +1 -0
  65. data/tools/tablemanager/VerticalboxWidget-DYx-TFT4-7b65533aa838da17bd59.js +1 -0
  66. data/tools/tablemanager/Widget-orNSvnOh-6875cac048a7f8a1cb7e.js +1 -0
  67. data/tools/tablemanager/main-d2f01c5f64af7a18d0cd.js +1422 -0
  68. data/tools/tablemanager/main.js +1 -0
  69. metadata +68 -11
  70. data/tools/tablemanager/index.html +0 -4
  71. data/tools/tablemanager/js/173.js +0 -2
  72. data/tools/tablemanager/js/173.js.map +0 -1
  73. data/tools/tablemanager/js/272.js +0 -2
  74. data/tools/tablemanager/js/272.js.map +0 -1
  75. data/tools/tablemanager/js/746.js +0 -2
  76. data/tools/tablemanager/js/746.js.map +0 -1
  77. data/tools/tablemanager/js/app.js +0 -2
  78. data/tools/tablemanager/js/app.js.map +0 -1
@@ -0,0 +1,1422 @@
1
+ System.register(["vue","vue-router","vuex","vuetify"],function(Rn,Le){"use strict";var wt,fn,mi,ht,Ve,Hd,fs,gs,yr,Bd,wr,ka,Tn,Ln,br,$c,Sc,jd,zd,Wd,Ud,Cc,Vd,qd,Ac,Gd,Yd,Kd,Qd,Zd,Jd;return{setters:[ft=>{wt=ft.resolveComponent,fn=ft.openBlock,mi=ft.createBlock,ht=ft.withCtx,Ve=ft.createVNode,Hd=ft.defineAsyncComponent,fs=ft.h,gs=ft.normalizeStyle,yr=ft.createElementBlock,Bd=ft.withKeys,wr=ft.createElementVNode,ka=ft.withModifiers,Tn=ft.toDisplayString,Ln=ft.createTextVNode,br=ft.createCommentVNode,$c=ft.withDirectives,Sc=ft.vShow,jd=ft.mergeProps,zd=ft.defineComponent,Wd=ft.warn,Ud=ft.inject,Cc=ft.computed,Vd=ft.shallowRef,qd=ft.watchEffect,Ac=ft.createApp,Gd=ft.getCurrentInstance,Yd=ft.provide},ft=>{Kd=ft.createRouter,Qd=ft.createWebHistory},ft=>{Zd=ft.createStore},ft=>{Jd=ft.createVuetify}],execute:function(){Rn({$:Dn,b:rp,c:HC,d:Mh,l:jt,y:an});var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xd(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(m){return Object.getOwnPropertyDescriptor(n,m).enumerable})),e.push.apply(e,i)}return e}function qr(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Xd(Object(e),!0).forEach(function(i){Ry(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Xd(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Ry(n,t,e){return(t=function(i){var m=function(g,v){if(Gr(g)!=="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var h=w.call(g,v||"default");if(Gr(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(g)}(i,"string");return Gr(m)==="symbol"?m:String(m)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Gr(n){return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i,m=String(e),g=m.length,v=-1,w="",h=m.charCodeAt(0);++v<g;)(i=m.charCodeAt(v))!=0?w+=i>=1&&i<=31||i==127||v==0&&i>=48&&i<=57||v==1&&i>=48&&i<=57&&h==45?"\\"+i.toString(16)+" ":v==0&&g==1&&i==45||!(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122)?"\\"+m.charAt(v):m.charAt(v):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(ft);var Ly={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Oy(n){if(Gr(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=qr(qr({},Ly),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.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(Gr(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:Iy.bind(null,t,e),mount:Dy.bind(null,t,e),unmount:Fy.bind(null,t,e),update:Ny.bind(null,t,e)}}function Iy(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Dy(n,t,e){var i={};return Promise.resolve().then(function(){return function(m,g){return typeof m.appOptions=="function"?m.appOptions(g):Promise.resolve(qr({},m.appOptions))}(n,e).then(function(m){var g;if(e.domElement&&!m.el&&(m.el=e.domElement),m.el)if(typeof m.el=="string"){if(!(g=document.querySelector(m.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(m.el))}else(g=m.el).id||(g.id="single-spa-application:".concat(e.name)),m.el="#".concat(CSS.escape(g.id));else{var v="single-spa-application:".concat(e.name);m.el="#".concat(CSS.escape(v)),(g=document.getElementById(v))||((g=document.createElement("div")).id=v,document.body.appendChild(g))}if(!n.replaceMode&&(m.el=m.el+" .single-spa-container",!g.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",g.appendChild(w)}i.domEl=g,m.render||m.template||!n.rootComponent||(m.render=function(f){return f(n.rootComponent)}),m.data||(m.data={});var h=m.data;if(m.data=function(){return qr(qr({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(i.vueInstance=n.createApp(m),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return i.root=i.vueInstance.mount(m.el),t[e.name]=i,i.vueInstance});i.root=i.vueInstance.mount(m.el)}else if(i.vueInstance=new n.Vue(m),i.vueInstance.bind&&(i.vueInstance=i.vueInstance.bind(i.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return t[e.name]=i,i.vueInstance});return t[e.name]=i,i.vueInstance})})}function Ny(n,t,e){return Promise.resolve().then(function(){var i=t[e.name],m=qr(qr({},n.appOptions.data||{}),e),g=i.root||i.vueInstance;for(var v in m)g[v]=m[v]})}function Fy(n,t,e){return Promise.resolve().then(function(){var i=t[e.name];n.createApp?i.vueInstance.unmount(i.domEl):(i.vueInstance.$destroy(),i.vueInstance.$el.innerHTML=""),delete i.vueInstance,i.domEl&&(i.domEl.innerHTML="",delete i.domEl)})}const Py=Rn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Hy={};function By(n,t){const e=wt("router-view"),i=wt("v-app");return fn(),mi(i,{id:"innerapp"},{default:ht(()=>[Ve(e)]),_:1})}const jy=Py(Hy,[["render",By]]),IO="modulepreload",DO=function(n){return"/"+n},NO={},Oe=function(t,e,i){let m=Promise.resolve();function g(v){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=v,window.dispatchEvent(w),!w.defaultPrevented)throw v}return m.then(v=>{for(const w of v||[])w.status==="rejected"&&g(w.reason);return t().catch(g)})},ep=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/tablemanager/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(ep)},Co=Rn("s",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),$a=6e4,Mc=36e5,zy=1e3,tp=Symbol.for("constructDateFrom");function an(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&tp in n?n[tp](t):n instanceof Date?new n.constructor(t):new Date(t)}function jt(n,t){return an(t||n,n)}let Wy={};function Ao(){return Wy}function xr(n,t){var e,i,m,g;const v=Ao(),w=(t==null?void 0:t.weekStartsOn)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.weekStartsOn)??v.weekStartsOn??((g=(m=v.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??0,h=jt(n,t==null?void 0:t.in),f=h.getDay(),a=(f<w?7:0)+f-w;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Mo(n,t){return xr(n,{...t,weekStartsOn:1})}function np(n,t){const e=jt(n,void 0),i=e.getFullYear(),m=an(e,0);m.setFullYear(i+1,0,4),m.setHours(0,0,0,0);const g=Mo(m),v=an(e,0);v.setFullYear(i,0,4),v.setHours(0,0,0,0);const w=Mo(v);return e.getTime()>=g.getTime()?i+1:e.getTime()>=w.getTime()?i:i-1}function Sa(n){const t=jt(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Uy(n,...t){const e=an.bind(null,t.find(i=>typeof i=="object"));return t.map(e)}function ip(n,t){const e=jt(n,void 0);return e.setHours(0,0,0,0),e}function Vy(n,t,e){const[i,m]=Uy(void 0,n,t),g=ip(i),v=ip(m),w=+g-Sa(g),h=+v-Sa(v);return Math.round((w-h)/864e5)}function qy(n,t){const e=np(n),i=an(n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Mo(i)}function Gy(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function rp(n){return!(!Gy(n)&&typeof n!="number"||isNaN(+jt(n)))}function Yy(n,t){const e=jt(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Ky={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"}},Qy=(n,t,e)=>{let i;const m=Ky[n];return typeof m=="string"?i=m:t===1?i=m.one:i=m.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Tc(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Zy={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jy={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xy={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ew={date:Tc({formats:Zy,defaultWidth:"full"}),time:Tc({formats:Jy,defaultWidth:"full"}),dateTime:Tc({formats:Xy,defaultWidth:"full"})},tw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nw=(n,t,e,i)=>tw[n];function ms(n){return(t,e)=>{const i=e!=null&&e.context?String(e.context):"standalone";let m;if(i==="formatting"&&n.formattingValues){const v=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):v;m=n.formattingValues[w]||n.formattingValues[v]}else{const v=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;m=n.values[w]||n.values[v]}const g=n.argumentCallback?n.argumentCallback(t):t;return m[g]}}const iw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ow={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"]},sw={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"]},aw={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"}},lw={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"}},cw=(n,t)=>{const e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},uw={ordinalNumber:cw,era:ms({values:iw,defaultWidth:"wide"}),quarter:ms({values:rw,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ms({values:ow,defaultWidth:"wide"}),day:ms({values:sw,defaultWidth:"wide"}),dayPeriod:ms({values:aw,defaultWidth:"wide",formattingValues:lw,defaultFormattingWidth:"wide"})};function vs(n){return(t,e={})=>{const i=e.width,m=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],g=t.match(m);if(!g)return null;const v=g[0],w=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?dw(w,c=>c.test(v)):hw(w,c=>c.test(v));let f;f=n.valueCallback?n.valueCallback(h):h,f=e.valueCallback?e.valueCallback(f):f;const a=t.slice(v.length);return{value:f,rest:a}}}function hw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function dw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function pw(n){return(t,e={})=>{const i=t.match(n.matchPattern);if(!i)return null;const m=i[0],g=t.match(n.parsePattern);if(!g)return null;let v=n.valueCallback?n.valueCallback(g[0]):g[0];v=e.valueCallback?e.valueCallback(v):v;const w=t.slice(m.length);return{value:v,rest:w}}}const fw=/^(\d+)(th|st|nd|rd)?/i,gw=/\d+/i,mw={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},vw={any:[/^b/i,/^(a|c)/i]},yw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ww={any:[/1/i,/2/i,/3/i,/4/i]},bw={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},xw={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]},_w={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},kw={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]},$w={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},Sw={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}},Cw={ordinalNumber:pw({matchPattern:fw,parsePattern:gw,valueCallback:n=>parseInt(n,10)}),era:vs({matchPatterns:mw,defaultMatchWidth:"wide",parsePatterns:vw,defaultParseWidth:"any"}),quarter:vs({matchPatterns:yw,defaultMatchWidth:"wide",parsePatterns:ww,defaultParseWidth:"any",valueCallback:n=>n+1}),month:vs({matchPatterns:bw,defaultMatchWidth:"wide",parsePatterns:xw,defaultParseWidth:"any"}),day:vs({matchPatterns:_w,defaultMatchWidth:"wide",parsePatterns:kw,defaultParseWidth:"any"}),dayPeriod:vs({matchPatterns:$w,defaultMatchWidth:"any",parsePatterns:Sw,defaultParseWidth:"any"})},op={code:"en-US",formatDistance:Qy,formatLong:ew,formatRelative:nw,localize:uw,match:Cw,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Aw(n,t){const e=jt(n,void 0);return Vy(e,Yy(e))+1}function sp(n,t){const e=jt(n,void 0),i=+Mo(e)-+qy(e);return Math.round(i/6048e5)+1}function Ec(n,t){var e,i,m,g;const v=jt(n,t==null?void 0:t.in),w=v.getFullYear(),h=Ao(),f=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??h.firstWeekContainsDate??((g=(m=h.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,a=an((t==null?void 0:t.in)||n,0);a.setFullYear(w+1,0,f),a.setHours(0,0,0,0);const c=xr(a,t),s=an((t==null?void 0:t.in)||n,0);s.setFullYear(w,0,f),s.setHours(0,0,0,0);const l=xr(s,t);return+v>=+c?w+1:+v>=+l?w:w-1}function Mw(n,t){var e,i,m,g;const v=Ao(),w=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??v.firstWeekContainsDate??((g=(m=v.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,h=Ec(n,t),f=an((t==null?void 0:t.in)||n,0);return f.setFullYear(h,0,w),f.setHours(0,0,0,0),xr(f,t)}function ap(n,t){const e=jt(n,t==null?void 0:t.in),i=+xr(e,t)-+Mw(e,t);return Math.round(i/6048e5)+1}function At(n,t){const e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}const _r={y(n,t){const e=n.getFullYear(),i=e>0?e:1-e;return At(t==="yy"?i%100:i,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):At(e+1,2)},d(n,t){return At(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return At(n.getHours()%12||12,t.length)},H(n,t){return At(n.getHours(),t.length)},m(n,t){return At(n.getMinutes(),t.length)},s(n,t){return At(n.getSeconds(),t.length)},S(n,t){const e=t.length,i=n.getMilliseconds(),m=Math.trunc(i*Math.pow(10,e-3));return At(m,t.length)}},To={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lp={G:function(n,t,e){const i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const i=n.getFullYear(),m=i>0?i:1-i;return e.ordinalNumber(m,{unit:"year"})}return _r.y(n,t)},Y:function(n,t,e,i){const m=Ec(n,i),g=m>0?m:1-m;if(t==="YY"){const v=g%100;return At(v,2)}return t==="Yo"?e.ordinalNumber(g,{unit:"year"}):At(g,t.length)},R:function(n,t){const e=np(n);return At(e,t.length)},u:function(n,t){const e=n.getFullYear();return At(e,t.length)},Q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return At(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return At(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){const i=n.getMonth();switch(t){case"M":case"MM":return _r.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){const i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return At(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){const m=ap(n,i);return t==="wo"?e.ordinalNumber(m,{unit:"week"}):At(m,t.length)},I:function(n,t,e){const i=sp(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):At(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):_r.d(n,t)},D:function(n,t,e){const i=Aw(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):At(i,t.length)},E:function(n,t,e){const i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){const m=n.getDay(),g=(m-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(g);case"ee":return At(g,2);case"eo":return e.ordinalNumber(g,{unit:"day"});case"eee":return e.day(m,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(m,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(m,{width:"short",context:"formatting"});case"eeee":default:return e.day(m,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){const m=n.getDay(),g=(m-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(g);case"cc":return At(g,t.length);case"co":return e.ordinalNumber(g,{unit:"day"});case"ccc":return e.day(m,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(m,{width:"narrow",context:"standalone"});case"cccccc":return e.day(m,{width:"short",context:"standalone"});case"cccc":default:return e.day(m,{width:"wide",context:"standalone"})}},i:function(n,t,e){const i=n.getDay(),m=i===0?7:i;switch(t){case"i":return String(m);case"ii":return At(m,t.length);case"io":return e.ordinalNumber(m,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){const i=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,t,e){const i=n.getHours();let m;switch(i===12?m=To.noon:i===0?m=To.midnight:m=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},B:function(n,t,e){const i=n.getHours();let m;switch(i>=17?m=To.evening:i>=12?m=To.afternoon:i>=4?m=To.morning:m=To.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return _r.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):_r.H(n,t)},K:function(n,t,e){const i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):At(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):At(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):_r.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):_r.s(n,t)},S:function(n,t){return _r.S(n,t)},X:function(n,t,e){const i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return up(i);case"XXXX":case"XX":return Yr(i);case"XXXXX":case"XXX":default:return Yr(i,":")}},x:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"x":return up(i);case"xxxx":case"xx":return Yr(i);case"xxxxx":case"xxx":default:return Yr(i,":")}},O:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cp(i,":");case"OOOO":default:return"GMT"+Yr(i,":")}},z:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cp(i,":");case"zzzz":default:return"GMT"+Yr(i,":")}},t:function(n,t,e){const i=Math.trunc(+n/1e3);return At(i,t.length)},T:function(n,t,e){return At(+n,t.length)}};function cp(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.trunc(i/60),g=i%60;return g===0?e+String(m):e+String(m)+t+At(g,2)}function up(n,t){return n%60===0?(n>0?"-":"+")+At(Math.abs(n)/60,2):Yr(n,t)}function Yr(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=At(Math.trunc(i/60),2),g=At(i%60,2);return e+m+t+g}const hp=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},dp=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Tw=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],i=e[1],m=e[2];if(!m)return hp(n,t);let g;switch(i){case"P":g=t.dateTime({width:"short"});break;case"PP":g=t.dateTime({width:"medium"});break;case"PPP":g=t.dateTime({width:"long"});break;case"PPPP":default:g=t.dateTime({width:"full"});break}return g.replace("{{date}}",hp(i,t)).replace("{{time}}",dp(m,t))},Rc={p:dp,P:Tw},Ew=/^D+$/,Rw=/^Y+$/,Lw=["D","DD","YY","YYYY"];function pp(n){return Ew.test(n)}function fp(n){return Rw.test(n)}function Lc(n,t,e){const i=Ow(n,t,e);if(console.warn(i),Lw.includes(n))throw new RangeError(i)}function Ow(n,t,e){const i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Iw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nw=/^'([^]*?)'?$/,Fw=/''/g,Pw=/[a-zA-Z]/;function Kr(n,t,e){var i,m,g,v,w,h,f,a;const c=Ao(),s=(e==null?void 0:e.locale)??c.locale??op,l=(e==null?void 0:e.firstWeekContainsDate)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.firstWeekContainsDate)??c.firstWeekContainsDate??((v=(g=c.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??c.weekStartsOn??((a=(f=c.locale)==null?void 0:f.options)==null?void 0:a.weekStartsOn)??0,u=jt(n,e==null?void 0:e.in);if(!rp(u))throw new RangeError("Invalid time value");let p=t.match(Dw).map(x=>{const R=x[0];if(R==="p"||R==="P"){const A=Rc[R];return A(x,s.formatLong)}return x}).join("").match(Iw).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const R=x[0];if(R==="'")return{isToken:!1,value:Hw(x)};if(lp[R])return{isToken:!0,value:x};if(R.match(Pw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:x}});s.localize.preprocessor&&(p=s.localize.preprocessor(u,p));const y={firstWeekContainsDate:l,weekStartsOn:o,locale:s};return p.map(x=>{if(!x.isToken)return x.value;const R=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&fp(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&pp(R))&&Lc(R,t,String(n));const A=lp[R[0]];return A(u,R,s.localize,y)}).join("")}function Hw(n){const t=n.match(Nw);return t?t[1].replace(Fw,"'"):n}var kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ca(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gp={exports:{}},mp;function Bw(){return mp||(mp=1,function(n,t){(function(){var e="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var m=function(a,c,s){if(typeof a!="string"){m.original?m.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(s=c),m.modules[a]||(m.payloads[a]=s,m.modules[a]=null)};m.modules={},m.payloads={};var g=function(a,c,s){if(typeof c=="string"){var l=h(a,c);if(l!=null)return s&&s(),l}else if(Object.prototype.toString.call(c)==="[object Array]"){for(var o=[],u=0,p=c.length;u<p;++u){var y=h(a,c[u]);if(y==null&&v.original)return;o.push(y)}return s&&s.apply(null,o)||!0}},v=function(a,c){var s=g("",a,c);return s==null&&v.original?v.original.apply(this,arguments):s},w=function(a,c){if(c.indexOf("!")!==-1){var s=c.split("!");return w(a,s[0])+"!"+w(a,s[1])}if(c.charAt(0)=="."){var l=a.split("/").slice(0,-1).join("/");for(c=l+"/"+c;c.indexOf(".")!==-1&&o!=c;){var o=c;c=c.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return c},h=function(a,c){c=w(a,c);var s=m.modules[c];if(!s){if(s=m.payloads[c],typeof s=="function"){var l={},o={id:c,uri:"",exports:l,packaged:!0},u=function(y,x){return g(c,y,x)},p=s(u,l,o);l=p||o.exports,m.modules[c]=l,delete m.payloads[c]}s=m.modules[c]=l||s}return s};function f(a){var c=i;i[a]||(i[a]={}),c=i[a],(!c.define||!c.define.packaged)&&(m.original=c.define,c.define=m,c.define.packaged=!0),(!c.require||!c.require.packaged)&&(v.original=c.require,c.require=v,c.require.packaged=!0)}f(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,i,m){function g(v,w,h){Object.defineProperty(v,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||g(String.prototype,"startsWith",function(v,w){return w=w||0,this.lastIndexOf(v,w)===w}),String.prototype.endsWith||g(String.prototype,"endsWith",function(v,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=v.length;var f=h.indexOf(v,w);return f!==-1&&f===w}),String.prototype.repeat||g(String.prototype,"repeat",function(v){for(var w="",h=this;v>0;)v&1&&(w+=h),(v>>=1)&&(h+=h);return w}),String.prototype.includes||g(String.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Object.assign||(Object.assign=function(v){if(v==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(v),h=1;h<arguments.length;h++){var f=arguments[h];f!=null&&Object.keys(f).forEach(function(a){w[a]=f[a]})}return w}),Object.values||(Object.values=function(v){return Object.keys(v).map(function(w){return v[w]})}),Array.prototype.find||g(Array.prototype,"find",function(v){for(var w=this.length,h=arguments[1],f=0;f<w;f++){var a=this[f];if(v.call(h,a,f,this))return a}}),Array.prototype.findIndex||g(Array.prototype,"findIndex",function(v){for(var w=this.length,h=arguments[1],f=0;f<w;f++){var a=this[f];if(v.call(h,a,f,this))return f}}),Array.prototype.includes||g(Array.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Array.prototype.fill||g(Array.prototype,"fill",function(v){for(var w=this,h=w.length>>>0,f=arguments[1],a=f>>0,c=a<0?Math.max(h+a,0):Math.min(a,h),s=arguments[2],l=s===void 0?h:s>>0,o=l<0?Math.max(h+l,0):Math.min(l,h);c<o;)w[c]=v,c++;return w}),Array.of||g(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,i,m){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,i,m){i.deepCopy=function g(v){if(typeof v!="object"||!v)return v;var w;if(Array.isArray(v)){w=[];for(var h=0;h<v.length;h++)w[h]=g(v[h]);return w}if(Object.prototype.toString.call(v)!=="[object Object]")return v;w={};for(var h in v)w[h]=g(v[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){i.last=function(w){return w[w.length-1]},i.stringReverse=function(w){return w.split("").reverse().join("")},i.stringRepeat=function(w,h){for(var f="";h>0;)h&1&&(f+=w),(h>>=1)&&(w+=w);return f};var g=/^\s\s*/,v=/\s\s*$/;i.stringTrimLeft=function(w){return w.replace(g,"")},i.stringTrimRight=function(w){return w.replace(v,"")},i.copyObject=function(w){var h={};for(var f in w)h[f]=w[f];return h},i.copyArray=function(w){for(var h=[],f=0,a=w.length;f<a;f++)w[f]&&typeof w[f]=="object"?h[f]=this.copyObject(w[f]):h[f]=w[f];return h},i.deepCopy=e("./deep_copy").deepCopy,i.arrayToMap=function(w){for(var h={},f=0;f<w.length;f++)h[w[f]]=1;return h},i.createMap=function(w){var h=Object.create(null);for(var f in w)h[f]=w[f];return h},i.arrayRemove=function(w,h){for(var f=0;f<=w.length;f++)h===w[f]&&w.splice(f,1)},i.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(w){return(""+w).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},i.getMatchOffsets=function(w,h){var f=[];return w.replace(h,function(a){f.push({offset:arguments[arguments.length-2],length:a.length})}),f},i.deferredCall=function(w){var h=null,f=function(){h=null,w()},a=function(c){return a.cancel(),h=setTimeout(f,c||0),a};return a.schedule=a,a.call=function(){return this.cancel(),w(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},i.delayedCall=function(w,h){var f=null,a=function(){f=null,w()},c=function(s){f==null&&(f=setTimeout(a,s||h))};return c.delay=function(s){f&&clearTimeout(f),f=setTimeout(a,s||h)},c.schedule=c,c.call=function(){this.cancel(),w()},c.cancel=function(){f&&clearTimeout(f),f=null},c.isPending=function(){return f},c},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(w,h,f){return f&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,i,m){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var g=typeof navigator=="object"?navigator:{},v=(/mac|win|linux/i.exec(g.platform)||["other"])[0].toLowerCase(),w=g.userAgent||"",h=g.appName||"";i.isWin=v=="win",i.isMac=v=="mac",i.isLinux=v=="linux",i.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=w.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(w.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,i.isAIR=w.indexOf("AdobeAIR")>=0,i.isAndroid=w.indexOf("Android")>=0,i.isChromeOS=w.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,i,m){var g=e("./useragent"),v="http://www.w3.org/1999/xhtml";i.buildDom=function s(l,o,u){if(typeof l=="string"&&l){var p=document.createTextNode(l);return o&&o.appendChild(p),p}if(!Array.isArray(l))return l&&l.appendChild&&o&&o.appendChild(l),l;if(typeof l[0]!="string"||!l[0]){for(var y=[],x=0;x<l.length;x++){var R=s(l[x],o,u);R&&y.push(R)}return y}var A=document.createElement(l[0]),k=l[1],b=1;k&&typeof k=="object"&&!Array.isArray(k)&&(b=2);for(var x=b;x<l.length;x++)s(l[x],A,u);return b==2&&Object.keys(k).forEach(function(M){var E=k[M];M==="class"?A.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||M=="value"||M[0]=="$"?A[M]=E:M==="ref"?u&&(u[E]=A):M==="style"?typeof E=="string"&&(A.style.cssText=E):E!=null&&A.setAttribute(M,E)}),o&&o.appendChild(A),A},i.getDocumentHead=function(s){return s||(s=document),s.head||s.getElementsByTagName("head")[0]||s.documentElement},i.createElement=function(s,l){return document.createElementNS?document.createElementNS(l||v,s):document.createElement(s)},i.removeChildren=function(s){s.innerHTML=""},i.createTextNode=function(s,l){var o=l?l.ownerDocument:document;return o.createTextNode(s)},i.createFragment=function(s){var l=s?s.ownerDocument:document;return l.createDocumentFragment()},i.hasCssClass=function(s,l){var o=(s.className+"").split(/\s+/g);return o.indexOf(l)!==-1},i.addCssClass=function(s,l){i.hasCssClass(s,l)||(s.className+=" "+l)},i.removeCssClass=function(s,l){for(var o=s.className.split(/\s+/g);;){var u=o.indexOf(l);if(u==-1)break;o.splice(u,1)}s.className=o.join(" ")},i.toggleCssClass=function(s,l){for(var o=s.className.split(/\s+/g),u=!0;;){var p=o.indexOf(l);if(p==-1)break;u=!1,o.splice(p,1)}return u&&o.push(l),s.className=o.join(" "),u},i.setCssClass=function(s,l,o){o?i.addCssClass(s,l):i.removeCssClass(s,l)},i.hasCssString=function(s,l){var o=0,u;if(l=l||document,u=l.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===s)return!0}},i.removeElementById=function(s,l){l=l||document,l.getElementById(s)&&l.getElementById(s).remove()};var w,h=[];i.useStrictCSP=function(s){w=s,s==!1?f():h||(h=[])};function f(){var s=h;h=null,s&&s.forEach(function(l){a(l[0],l[1])})}function a(s,l,o){if(!(typeof document>"u")){if(h){if(o)f();else if(o===!1)return h.push([s,l])}if(!w){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var p=u.ownerDocument||u;if(l&&i.hasCssString(l,u))return null;l&&(s+=`
2
+ /*# sourceURL=ace/css/`+l+" */");var y=i.createElement("style");y.appendChild(p.createTextNode(s)),l&&(y.id=l),u==p&&(u=i.getDocumentHead(p)),u.insertBefore(y,u.firstChild)}}}if(i.importCssString=a,i.importCssStylsheet=function(s,l){i.buildDom(["link",{rel:"stylesheet",href:s}],i.getDocumentHead(l))},i.scrollbarWidth=function(s){var l=i.createElement("ace_inner");l.style.width="100%",l.style.minWidth="0px",l.style.height="200px",l.style.display="block";var o=i.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(l);var p=s&&s.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(o);var y=l.offsetWidth;u.overflow="scroll";var x=l.offsetWidth;return y===x&&(x=o.clientWidth),p.removeChild(o),y-x},i.computedStyle=function(s,l){return window.getComputedStyle(s,"")||{}},i.setStyle=function(s,l,o){s[l]!==o&&(s[l]=o)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=g.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,g.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var c=document.createElement("div");i.HI_DPI&&c.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!g.isEdge&&typeof c.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),c=null}i.HAS_CSS_TRANSFORMS?i.translate=function(s,l,o){s.style.transform="translate("+Math.round(l)+"px, "+Math.round(o)+"px)"}:i.translate=function(s,l,o){s.style.top=Math.round(o)+"px",s.style.left=Math.round(l)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,i,m){/*
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 g=e("./dom");i.get=function(v,w){var h=new XMLHttpRequest;h.open("GET",v,!0),h.onreadystatechange=function(){h.readyState===4&&w(h.responseText)},h.send(null)},i.loadScript=function(v,w){var h=g.getDocumentHead(),f=document.createElement("script");f.src=v,h.appendChild(f),f.onload=f.onreadystatechange=function(a,c){(c||!f.readyState||f.readyState=="loaded"||f.readyState=="complete")&&(f=f.onload=f.onreadystatechange=null,c||w())}},i.qualifyURL=function(v){var w=document.createElement("a");return w.href=v,w.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,i,m){i.inherits=function(g,v){g.super_=v,g.prototype=Object.create(v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(g,v){for(var w in v)g[w]=v[w];return g},i.implement=function(g,v){i.mixin(g,v)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,i,m){var g={},v=function(){this.propagationStopped=!0},w=function(){this.defaultPrevented=!0};g._emit=g._dispatchEvent=function(h,f){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var a=this._eventRegistry[h]||[],c=this._defaultHandlers[h];if(!(!a.length&&!c)){(typeof f!="object"||!f)&&(f={}),f.type||(f.type=h),f.stopPropagation||(f.stopPropagation=v),f.preventDefault||(f.preventDefault=w),a=a.slice();for(var s=0;s<a.length&&(a[s](f,this),!f.propagationStopped);s++);if(c&&!f.defaultPrevented)return c(f,this)}},g._signal=function(h,f){var a=(this._eventRegistry||{})[h];if(a){a=a.slice();for(var c=0;c<a.length;c++)a[c](f,this)}},g.once=function(h,f){var a=this;if(this.on(h,function c(){a.off(h,c),f.apply(null,arguments)}),!f)return new Promise(function(c){f=c})},g.setDefaultHandler=function(h,f){var a=this._defaultHandlers;if(a||(a=this._defaultHandlers={_disabled_:{}}),a[h]){var c=a[h],s=a._disabled_[h];s||(a._disabled_[h]=s=[]),s.push(c);var l=s.indexOf(f);l!=-1&&s.splice(l,1)}a[h]=f},g.removeDefaultHandler=function(h,f){var a=this._defaultHandlers;if(a){var c=a._disabled_[h];if(a[h]==f)c&&this.setDefaultHandler(h,c.pop());else if(c){var s=c.indexOf(f);s!=-1&&c.splice(s,1)}}},g.on=g.addEventListener=function(h,f,a){this._eventRegistry=this._eventRegistry||{};var c=this._eventRegistry[h];return c||(c=this._eventRegistry[h]=[]),c.indexOf(f)==-1&&c[a?"unshift":"push"](f),f},g.off=g.removeListener=g.removeEventListener=function(h,f){this._eventRegistry=this._eventRegistry||{};var a=this._eventRegistry[h];if(a){var c=a.indexOf(f);c!==-1&&a.splice(c,1)}},g.removeAllListeners=function(h){h||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[h]=void 0),this._defaultHandlers&&(this._defaultHandlers[h]=void 0)},i.EventEmitter=g}),ace.define("ace/lib/report_error",["require","exports","module"],function(e,i,m){i.reportError=function(g,v){var w=new Error(g);w.data=v,typeof console=="object"&&console.error&&console.error(w),setTimeout(function(){throw w})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(e,i,m){var g={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"};i.defaultEnglishMessages=g}),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(e,i,m){"no use strict";var g=e("./oop"),v=e("./event_emitter").EventEmitter,w=e("./report_error").reportError,h=e("./default_english_messages").defaultEnglishMessages,f={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var p=this.$options;o=Object.keys(p).filter(function(y){return!p[y].hidden})}return o.forEach(function(y){u[y]=this.getOption(y)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var p=this.$options[o];if(!p)return a('misspelled option "'+o+'"');if(p.forwardTo)return this[p.forwardTo]&&this[p.forwardTo].setOption(o,u);p.handlesSet||(this["$"+o]=u),p&&p.set&&p.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]:a('misspelled option "'+o+'"')}};function a(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var c,s,l=function(){function o(){this.$defaultOptions={},c=h,s="dollarSigns"}return o.prototype.defineOptions=function(u,p,y){return u.$options||(this.$defaultOptions[p]=u.$options={}),Object.keys(y).forEach(function(x){var R=y[x];typeof R=="string"&&(R={forwardTo:R}),R.name||(R.name=x),u.$options[R.name]=R,"initialValue"in R&&(u["$"+R.name]=R.initialValue)}),g.implement(u,f),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(p){var y=u.$options[p];"value"in y&&u.setOption(p,y.value)})},o.prototype.setDefaultValue=function(u,p,y){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][p])break;if(!this.$defaultOptions[u][p])return!1}var x=this.$defaultOptions[u]||(this.$defaultOptions[u]={});x[p]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,p,y):x[p].value=y)},o.prototype.setDefaultValues=function(u,p){Object.keys(p).forEach(function(y){this.setDefaultValue(u,y,p[y])},this)},o.prototype.setMessages=function(u,p){c=u,p&&p.placeholders&&(s=p.placeholders)},o.prototype.nls=function(u,p,y){c[u]||(a("No message found for the key '"+u+"' in messages with id "+c.$id+", trying to find a translation for the default string '"+p+"'."),c[p]||a("No message found for the default string '"+p+"' in the provided messages. Falling back to the default English message."));var x=c[u]||c[p]||p;return y&&(s==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(R,A){return A=="$"?"$":y[A]})),s==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(R,A){return y[A]}))),x},o}();l.prototype.warn=a,l.prototype.reportError=w,g.implement(l.prototype,v),i.AppConfig=l}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(e,i,m){m.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(e,i,m){i.isDark=!1,i.cssClass="ace-tm",i.cssText=e("./textmate-css"),i.$id="ace/theme/textmate";var g=e("../lib/dom");g.importCssString(i.cssText,i.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,i,m){"no use strict";var g=e("./lib/lang"),v=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;m.exports=i=new h;var f={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(l){if(!f.hasOwnProperty(l))throw new Error("Unknown config key: "+l);return f[l]},i.set=function(l,o){if(f.hasOwnProperty(l))f[l]=o;else if(this.setDefaultValue("",l,o)==!1)throw new Error("Unknown config key: "+l);l=="useStrictCSP"&&w.useStrictCSP(o)},i.all=function(){return g.copyObject(f)},i.$modes={},i.moduleUrl=function(l,o){if(f.$moduleUrls[l])return f.$moduleUrls[l];var u=l.split("/");o=o||u[u.length-2]||"";var p=o=="snippets"?"/":"-",y=u[u.length-1];if(o=="worker"&&p=="-"){var x=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");y=y.replace(x,"")}(!y||y==o)&&u.length>1&&(y=u[u.length-2]);var R=f[o+"Path"];return R==null?R=f.basePath:p=="/"&&(o=p=""),R&&R.slice(-1)!="/"&&(R+="/"),R+o+p+y+this.get("suffix")},i.setModuleUrl=function(l,o){return f.$moduleUrls[l]=o};var a=function(l,o){if(l==="ace/theme/textmate"||l==="./theme/textmate")return o(null,e("./theme/textmate"));if(c)return c(l,o);console.error("loader is not configured")},c;i.setLoader=function(l){c=l},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(l,o){var u;if(Array.isArray(l))var p=l[0],y=l[1];else if(typeof l=="string")var y=l;var x=function(R){if(R&&!i.$loading[y])return o&&o(R);if(i.$loading[y]||(i.$loading[y]=[]),i.$loading[y].push(o),!(i.$loading[y].length>1)){var A=function(){a(y,function(k,b){b&&(i.$loaded[y]=b),i._emit("load.module",{name:y,module:b});var M=i.$loading[y];i.$loading[y]=null,M.forEach(function(E){E&&E(b)})})};if(!i.get("packaged"))return A();v.loadScript(i.moduleUrl(y,p),A),s()}};if(i.dynamicModules[y])i.dynamicModules[y]().then(function(R){R.default?x(R.default):x(R)});else{try{u=this.$require(y)}catch{}x(u||i.$loaded[y])}},i.$require=function(l){if(typeof m.require=="function"){var o="require";return m[o](l)}},i.setModuleLoader=function(l,o){i.dynamicModules[l]=o};var s=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$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"),s=function(){})};i.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,i,m){e("./lib/fixoldbrowsers");var g=e("./config");g.setLoader(function(f,a){e([f],function(c){a(null,c)})});var v=function(){return this||typeof window<"u"&&window}();m.exports=function(f){g.init=w,g.$require=e,f.require=e},w(!0);function w(f){if(!(!v||!v.document)){g.set("packaged",f||e.packaged||m.packaged||v.define&&(void 0).packaged);var a={},c="",s=document.currentScript||document._currentScript,l=s&&s.ownerDocument||document;s&&s.src&&(c=s.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=l.getElementsByTagName("script"),u=0;u<o.length;u++){var p=o[u],y=p.src||p.getAttribute("src");if(y){for(var x=p.attributes,R=0,A=x.length;R<A;R++){var k=x[R];k.name.indexOf("data-ace-")===0&&(a[h(k.name.replace(/^data-ace-/,""))]=k.value)}var b=y.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(c=b[1])}}c&&(a.base=a.base||c,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var M in a)typeof a[M]<"u"&&g.set(M,a[M])}}function h(f){return f.replace(/-(.)/g,function(a,c){return c.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,i,m){var g=function(){function v(w,h,f,a){this.start={row:w,column:h},this.end={row:f,column:a}}return v.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},v.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},v.prototype.contains=function(w,h){return this.compare(w,h)==0},v.prototype.compareRange=function(w){var h,f=w.end,a=w.start;return h=this.compare(f.row,f.column),h==1?(h=this.compare(a.row,a.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(a.row,a.column),h==-1?-1:h==1?42:0)},v.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},v.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},v.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},v.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},v.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},v.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},v.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},v.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},v.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},v.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},v.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},v.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},v.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},v.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},v.prototype.clipRows=function(w,h){if(this.end.row>h)var f={row:h+1,column:0};else if(this.end.row<w)var f={row:w,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<w)var a={row:w,column:0};return v.fromPoints(a||this.start,f||this.end)},v.prototype.extend=function(w,h){var f=this.compare(w,h);if(f==0)return this;if(f==-1)var a={row:w,column:h};else var c={row:w,column:h};return v.fromPoints(a||this.start,c||this.end)},v.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},v.prototype.isMultiLine=function(){return this.start.row!==this.end.row},v.prototype.clone=function(){return v.fromPoints(this.start,this.end)},v.prototype.collapseRows=function(){return this.end.column==0?new v(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new v(this.start.row,0,this.end.row,0)},v.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),f=w.documentToScreenPosition(this.end);return new v(h.row,h.column,f.row,f.column)},v.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},v}();g.fromPoints=function(v,w){return new g(v.row,v.column,w.row,w.column)},g.comparePoints=function(v,w){return v.row-w.row||v.column-w.column},i.Range=g}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,i,m){for(var g=e("./oop"),v={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:"*"}},w={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},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,v.PRINTABLE_KEYS[48+h]=""+h,v.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var f=String.fromCharCode(h+32);w["Key"+f.toUpperCase()]=h,v.PRINTABLE_KEYS[h]=f}for(var h=1;h<13;h++)w["F"+h]=111+h,v.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var c in a)w[c]=w[c+"Left"]=w[c+"Right"]=a[c];i.$codeToKeyCode=w,v.PRINTABLE_KEYS[173]="-";for(var s in v.FUNCTION_KEYS){var l=v.FUNCTION_KEYS[s].toLowerCase();v[l]=parseInt(s,10)}for(var s in v.PRINTABLE_KEYS){var l=v.PRINTABLE_KEYS[s].toLowerCase();v[l]=parseInt(s,10)}g.mixin(v,v.MODIFIER_KEYS),g.mixin(v,v.PRINTABLE_KEYS),g.mixin(v,v.FUNCTION_KEYS),v.enter=v.return,v.escape=v.esc,v.del=v.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)v.KEY_MODS[u]=o.filter(function(p){return u&v.KEY_MODS[p]}).join("-")+"-"}(),v.KEY_MODS[0]="",v.KEY_MODS[-1]="input-",g.mixin(i,v),i.default=i,i.keyCodeToString=function(o){var u=v[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,i,m){var g=e("./keys"),v=e("./useragent"),w=null,h=0,f;function a(){f=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return f={passive:!1},!0}})}catch{}}function c(){return f==null&&a(),f}function s(R,A,k){this.elem=R,this.type=A,this.callback=k}s.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var l=i.addListener=function(R,A,k,b){R.addEventListener(A,k,c()),b&&b.$toDestroy.push(new s(R,A,k))},o=i.removeListener=function(R,A,k){R.removeEventListener(A,k,c())};i.stopEvent=function(R){return i.stopPropagation(R),i.preventDefault(R),!1},i.stopPropagation=function(R){R.stopPropagation&&R.stopPropagation()},i.preventDefault=function(R){R.preventDefault&&R.preventDefault()},i.getButton=function(R){return R.type=="dblclick"?0:R.type=="contextmenu"||v.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},i.capture=function(R,A,k){var b=R&&R.ownerDocument||document;function M(E){A&&A(E),k&&k(E),o(b,"mousemove",A),o(b,"mouseup",M),o(b,"dragstart",M)}return l(b,"mousemove",A),l(b,"mouseup",M),l(b,"dragstart",M),M},i.addMouseWheelListener=function(R,A,k){l(R,"wheel",function(b){var M=.15,E=b.deltaX||0,O=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=E*M,b.wheelY=O*M;break;case b.DOM_DELTA_LINE:var T=15;b.wheelX=E*T,b.wheelY=O*T;break;case b.DOM_DELTA_PAGE:var N=150;b.wheelX=E*N,b.wheelY=O*N;break}A(b)},k)},i.addMultiMouseDownListener=function(R,A,k,b,M){var E=0,O,T,N,$={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(S){if(i.getButton(S)!==0?E=0:S.detail>1?(E++,E>4&&(E=1)):E=1,v.isIE){var L=Math.abs(S.clientX-O)>5||Math.abs(S.clientY-T)>5;(!N||L)&&(E=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},A[E-1]||600),E==1&&(O=S.clientX,T=S.clientY)}if(S._clicks=E,k[b]("mousedown",S),E>4)E=0;else if(E>1)return k[b]($[E],S)}Array.isArray(R)||(R=[R]),R.forEach(function(S){l(S,"mousedown",_,M)})};function u(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)}i.getModifierString=function(R){return g.KEY_MODS[u(R)]};function p(R,A,k){var b=u(A);if(!k&&A.code&&(k=g.$codeToKeyCode[A.code]||k),!v.isMac&&w){if(A.getModifierState&&(A.getModifierState("OS")||A.getModifierState("Win"))&&(b|=8),w.altGr)if((3&b)!=3)w.altGr=0;else return;if(k===18||k===17){var M=A.location;if(k===17&&M===1)w[k]==1&&(h=A.timeStamp);else if(k===18&&b===3&&M===2){var E=A.timeStamp-h;E<50&&(w.altGr=!0)}}}if(k in g.MODIFIER_KEYS&&(k=-1),!(!b&&k===13&&A.location===3&&(R(A,b,-k),A.defaultPrevented))){if(v.isChromeOS&&b&8){if(R(A,b,k),A.defaultPrevented)return;b&=-9}return!b&&!(k in g.FUNCTION_KEYS)&&!(k in g.PRINTABLE_KEYS)?!1:R(A,b,k)}}i.addCommandKeyListener=function(R,A,k){var b=null;l(R,"keydown",function(M){w[M.keyCode]=(w[M.keyCode]||0)+1;var E=p(A,M,M.keyCode);return b=M.defaultPrevented,E},k),l(R,"keypress",function(M){b&&(M.ctrlKey||M.altKey||M.shiftKey||M.metaKey)&&(i.stopEvent(M),b=null)},k),l(R,"keyup",function(M){w[M.keyCode]=null},k),w||(y(),l(window,"focus",y))};function y(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!v.isOldIE){var x=1;i.nextTick=function(R,A){A=A||window;var k="zero-timeout-message-"+x++,b=function(M){M.data==k&&(i.stopPropagation(M),o(A,"message",b),R())};l(A,"message",b),A.postMessage(k,"*")}}i.$idleBlocked=!1,i.onIdle=function(R,A){return setTimeout(function k(){i.$idleBlocked?setTimeout(k,100):R()},A)},i.$idleBlockId=null,i.blockIdle=function(R){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},R||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(R){setTimeout(R,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,i,m){var g;m.exports={lineMode:!1,pasteCancelled:function(){return g&&g>Date.now()-50?!0:g=!1},cancel:function(){g=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(e,i,m){var g=e("../lib/event"),v=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),f=e("../lib/lang"),a=e("../clipboard"),c=w.isChrome<18,s=w.isIE,l=w.isChrome>63,o=400,u=e("../lib/keys"),p=u.KEY_MODS,y=w.isIOS,x=y?/\s/:/\n/,R=w.isMobile,A;A=function(k,b){var M=h.createElement("textarea");M.className="ace_text-input",M.setAttribute("wrap","off"),M.setAttribute("autocorrect","off"),M.setAttribute("autocapitalize","off"),M.setAttribute("spellcheck","false"),M.style.opacity="0",k.insertBefore(M,k.firstChild);var E=!1,O=!1,T=!1,N=!1,$="";R||(M.style.fontSize="1px");var _=!1,S=!1,L="",I=0,F=0,H=0,W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===M}catch{}this.setNumberOfExtraLines=function(ce){if(W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(b.$textInputAriaLabel&&(ce+="".concat(b.$textInputAriaLabel,", ")),b.session){var Ce=b.session.selection.cursor.row;ce+=v("text-input.aria-label","Cursor at row $0",[Ce+1])}M.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-autocomplete",ce.inline?"both":"list"),M.setAttribute("aria-activedescendant",ce.activeDescendant)):(M.setAttribute("aria-haspopup","false"),M.setAttribute("aria-autocomplete","both"),M.removeAttribute("aria-activedescendant")),ce.role&&M.setAttribute("role",ce.role),ce.setLabel&&(M.setAttribute("aria-roledescription",v("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),g.addListener(M,"blur",function(ce){S||(b.onBlur(ce),X=!1)},b),g.addListener(M,"focus",function(ce){if(!S){if(X=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(ce),w.isEdge?setTimeout(Z):Z()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),$||l||this.$focusScroll=="browser")return M.focus({preventScroll:!0});var ce=M.style.top;M.style.position="fixed",M.style.top="0px";try{var Ce=M.getBoundingClientRect().top!=0}catch{return}var Te=[];if(Ce)for(var We=M.parentElement;We&&We.nodeType==1;)Te.push(We),We.setAttribute("ace_nocontext","true"),!We.parentElement&&We.getRootNode?We=We.getRootNode().host:We=We.parentElement;M.focus({preventScroll:!0}),Ce&&Te.forEach(function(qe){qe.removeAttribute("ace_nocontext")}),setTimeout(function(){M.style.position="",M.style.top=="0px"&&(M.style.top=ce)},0)},this.blur=function(){M.blur()},this.isFocused=function(){return X},b.on("beforeEndOperation",function(){var ce=b.curOp,Ce=ce&&ce.command&&ce.command.name;if(Ce!="insertstring"){var Te=Ce&&(ce.docChanged||ce.selectionChanged);T&&Te&&(L=M.value="",qt()),Z()}}),b.on("changeSelection",this.setAriaLabel);var G=function(ce,Ce){for(var Te=Ce,We=1;We<=ce-W&&We<2*q+1;We++)Te+=b.session.getLine(ce-We).length+1;return Te},Z=y?function(ce){if(!(!X||E&&!ce||N)){ce||(ce="");var Ce=`
167
+ ab`+ce+`cde fg
168
+ `;Ce!=M.value&&(M.value=L=Ce);var Te=4,We=4+(ce.length||(b.selection.isEmpty()?0:1));(I!=Te||F!=We)&&M.setSelectionRange(Te,We),I=Te,F=We}}:function(){if(!(T||N)&&!(!X&&!me)){T=!0;var ce=0,Ce=0,Te="";if(b.session){var We=b.selection,qe=We.getRange(),ct=We.cursor.row;ct===V+1?(W=V+1,V=W+2*q):ct===W-1?(V=W-1,W=V-2*q):(ct<W-1||ct>V+1)&&(W=ct>q?ct-q:0,V=ct>q?ct+q:2*q);for(var ut=[],ot=W;ot<=V;ot++)ut.push(b.session.getLine(ot));if(Te=ut.join(`
169
+ `),ce=G(qe.start.row,qe.start.column),Ce=G(qe.end.row,qe.end.column),qe.start.row<W){var st=b.session.getLine(W-1);ce=qe.start.row<W-1?0:ce,Ce+=st.length+1,Te=st+`
170
+ `+Te}else if(qe.end.row>V){var et=b.session.getLine(V+1);Ce=qe.end.row>V+1?et.length:qe.end.column,Ce+=Te.length+1,Te=Te+`
171
+ `+et}else R&&ct>0&&(Te=`
172
+ `+Te,Ce+=1,ce+=1);Te.length>o&&(ce<o&&Ce<o?Te=Te.slice(0,o):(Te=`
173
+ `,ce==Ce?ce=Ce=0:(ce=0,Ce=1)));var Bt=Te+`
174
+
175
+ `;Bt!=L&&(M.value=L=Bt,I=F=Bt.length)}if(me&&(I=M.selectionStart,F=M.selectionEnd),F!=Ce||I!=ce||M.selectionEnd!=F)try{M.setSelectionRange(ce,Ce),I=ce,F=Ce}catch{}T=!1}};this.resetSelection=Z,X&&b.onFocus();var ie=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=L.length&&ce.value===L&&L&&ce.selectionEnd!==F},J=function(ce){T||(E?E=!1:ie(M)?(b.selectAll(),Z()):R&&M.selectionStart!=I&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,ye=function(ce,Ce){if(me&&(me=!1),O)return Z(),ce&&b.onPaste(ce),O=!1,"";for(var Te=M.selectionStart,We=M.selectionEnd,qe=I,ct=L.length-F,ut=ce,ot=ce.length-Te,st=ce.length-We,et=0;qe>0&&L[et]==ce[et];)et++,qe--;for(ut=ut.slice(et),et=1;ct>0&&L.length-et>I-1&&L[L.length-et]==ce[ce.length-et];)et++,ct--;ot-=et-1,st-=et-1;var Bt=ut.length-et+1;if(Bt<0&&(qe=-Bt,Bt=0),ut=ut.slice(0,Bt),!Ce&&!ut&&!ot&&!qe&&!ct&&!st)return"";N=!0;var Fn=!1;return w.isAndroid&&ut==". "&&(ut=" ",Fn=!0),ut&&!qe&&!ct&&!ot&&!st||_?b.onTextInput(ut):b.onTextInput(ut,{extendLeft:qe,extendRight:ct,restoreStart:ot,restoreEnd:st}),N=!1,L=ce,I=Te,F=We,H=st,Fn?`
176
+ `:ut},fe=function(ce){if(T)return Lt();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return b.execCommand("undo");if(ce.inputType=="historyRedo")return b.execCommand("redo")}var Ce=M.value,Te=ye(Ce,!0);(Ce.length>o+100||x.test(Te)||R&&I<1&&I==F)&&Z()},_e=function(ce,Ce,Te){var We=ce.clipboardData||window.clipboardData;if(!(!We||c)){var qe=s||Te?"Text":"text/plain";try{return Ce?We.setData(qe,Ce)!==!1:We.getData(qe)}catch(ct){if(!Te)return _e(ct,Ce,!0)}}},it=function(ce,Ce){var Te=b.getCopyText();if(!Te)return g.preventDefault(ce);_e(ce,Te)?(y&&(Z(Te),E=Te,setTimeout(function(){E=!1},10)),Ce?b.onCut():b.onCopy(),g.preventDefault(ce)):(E=!0,M.value=Te,M.select(),setTimeout(function(){E=!1,Z(),Ce?b.onCut():b.onCopy()}))},Nt=function(ce){it(ce,!0)},lt=function(ce){it(ce,!1)},dt=function(ce){var Ce=_e(ce);a.pasteCancelled()||(typeof Ce=="string"?(Ce&&b.onPaste(Ce,ce),w.isIE&&setTimeout(Z),g.preventDefault(ce)):(M.value="",O=!0))};g.addCommandKeyListener(M,function(ce,Ce,Te){if(!T)return b.onCommandKey(ce,Ce,Te)},b),g.addListener(M,"select",J,b),g.addListener(M,"input",fe,b),g.addListener(M,"cut",Nt,b),g.addListener(M,"copy",lt,b),g.addListener(M,"paste",dt,b),(!("oncut"in M)||!("oncopy"in M)||!("onpaste"in M))&&g.addListener(k,"keydown",function(ce){if(!(w.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:lt(ce);break;case 86:dt(ce);break;case 88:Nt(ce);break}},b);var rn=function(ce){if(!(T||!b.onCompositionStart||b.$readOnly)&&(T={},!_)){ce.data&&(T.useTextareaForIME=!1),setTimeout(Lt,0),b._signal("compositionStart"),b.on("mousedown",Wi);var Ce=b.getSelectionRange();Ce.end.row=Ce.start.row,Ce.end.column=Ce.start.column,T.markerRange=Ce,T.selectionStart=I,b.onCompositionStart(T),T.useTextareaForIME?(L=M.value="",I=0,F=0):(M.msGetInputContext&&(T.context=M.msGetInputContext()),M.getInputContext&&(T.context=M.getInputContext()))}},Lt=function(){if(!(!T||!b.onCompositionUpdate||b.$readOnly)){if(_)return Wi();if(T.useTextareaForIME)b.onCompositionUpdate(M.value);else{var ce=M.value;ye(ce),T.markerRange&&(T.context&&(T.markerRange.start.column=T.selectionStart=T.context.compositionStartOffset),T.markerRange.end.column=T.markerRange.start.column+F-T.selectionStart+H)}}},qt=function(ce){!b.onCompositionEnd||b.$readOnly||(T=!1,b.onCompositionEnd(),b.off("mousedown",Wi),ce&&fe())};function Wi(){S=!0,M.blur(),M.focus(),S=!1}var wn=f.delayedCall(Lt,50).schedule.bind(null,null);function Zt(ce){ce.keyCode==27&&M.value.length<M.selectionStart&&(T||(L=M.value),I=F=-1,Z()),wn()}g.addListener(M,"compositionstart",rn,b),g.addListener(M,"compositionupdate",Lt,b),g.addListener(M,"keyup",Zt,b),g.addListener(M,"keydown",wn,b),g.addListener(M,"compositionend",qt,b),this.getElement=function(){return M},this.setCommandMode=function(ce){_=ce,M.readOnly=!1},this.setReadOnly=function(ce){_||(M.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,Ce){$||($=M.style.cssText),M.style.cssText=(Ce?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(I+F)*b.renderer.characterWidth*.5+"px;";var Te=b.container.getBoundingClientRect(),We=h.computedStyle(b.container),qe=Te.top+(parseInt(We.borderTopWidth)||0),ct=Te.left+(parseInt(Te.borderLeftWidth)||0),ut=Te.bottom-qe-M.clientHeight-2,ot=function(st){h.translate(M,st.clientX-ct-2,Math.min(st.clientY-qe-2,ut))};ot(ce),ce.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(De),w.isWin&&g.capture(b.container,ot,Pe))},this.onContextMenuClose=Pe;var De;function Pe(){clearTimeout(De),De=setTimeout(function(){$&&(M.style.cssText=$,$=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var Jt=function(ce){b.textInput.onContextMenu(ce),Pe()};g.addListener(M,"mouseup",Jt,b),g.addListener(M,"mousedown",function(ce){ce.preventDefault(),Pe()},b),g.addListener(b.renderer.scroller,"contextmenu",Jt,b),g.addListener(M,"contextmenu",Jt,b),y&&Be(k,b,M);function Be(ce,Ce,Te){var We=null,qe=!1;Te.addEventListener("keydown",function(ut){We&&clearTimeout(We),qe=!0},!0),Te.addEventListener("keyup",function(ut){We=setTimeout(function(){qe=!1},100)},!0);var ct=function(ut){if(document.activeElement===Te&&!(qe||T||Ce.$mouseHandler.isMousePressed)&&!E){var ot=Te.selectionStart,st=Te.selectionEnd,et=null,Bt=0;if(ot==0?et=u.up:ot==1?et=u.home:st>F&&L[st]==`
177
+ `?et=u.end:ot<I&&L[ot-1]==" "?(et=u.left,Bt=p.option):ot<I||ot==I&&F!=I&&ot==st?et=u.left:st>F&&L.slice(0,st).split(`
178
+ `).length>2?et=u.down:st>F&&L[st-1]==" "?(et=u.right,Bt=p.option):(st>F||st==F&&F!=I&&ot==st)&&(et=u.right),ot!==st&&(Bt|=p.shift),et){var Fn=Ce.onCommandKey({},Bt,et);if(!Fn&&Ce.commands){et=u.keyCodeToString(et);var nr=Ce.commands.findKeyCommand(Bt,et);nr&&Ce.execCommand(nr)}I=ot,F=st,Z("")}}};document.addEventListener("selectionchange",ct),Ce.on("destroy",function(){document.removeEventListener("selectionchange",ct)})}this.destroy=function(){M.parentElement&&M.parentElement.removeChild(M)}},i.TextInput=A,i.$setUserAgentForTests=function(k,b){R=k,y=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,i,m){var g=e("../lib/useragent"),v=0,w=550,h=function(){function c(s){s.$clickSelection=null;var l=s.editor;l.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),l.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),l.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),l.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),l.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){s[u]=this[u]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}return c.prototype.onMouseDown=function(s){var l=s.inSelection(),o=s.getDocumentPosition();this.mousedownEvent=s;var u=this.editor,p=s.getButton();if(p!==0){var y=u.getSelectionRange(),x=y.isEmpty();(x||p==1)&&u.selection.moveToPosition(o),p==2&&(u.textInput.onContextMenu(s.domEvent),g.isMozilla||s.preventDefault());return}if(this.mousedownEvent.time=Date.now(),l&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(s);return}return this.captureMouse(s),this.startSelect(o,s.domEvent._clicks>1),s.preventDefault()},c.prototype.startSelect=function(s,l){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(s):l||o.selection.moveToPosition(s),l||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},c.prototype.select=function(){var s,l=this.editor,o=l.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)s=this.$clickSelection.end;else if(u==1)s=this.$clickSelection.start;else{var p=a(this.$clickSelection,o);o=p.cursor,s=p.anchor}l.selection.setSelectionAnchor(s.row,s.column)}l.selection.selectToPosition(o),l.renderer.scrollCursorIntoView()},c.prototype.extendSelectionBy=function(s){var l,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),p=o.selection[s](u.row,u.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(p.start),x=this.$clickSelection.comparePoint(p.end);if(y==-1&&x<=0)l=this.$clickSelection.end,(p.end.row!=u.row||p.end.column!=u.column)&&(u=p.start);else if(x==1&&y>=0)l=this.$clickSelection.start,(p.start.row!=u.row||p.start.column!=u.column)&&(u=p.end);else if(y==-1&&x==1)u=p.end,l=p.start;else{var R=a(this.$clickSelection,u);u=R.cursor,l=R.anchor}o.selection.setSelectionAnchor(l.row,l.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},c.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},c.prototype.focusWait=function(){var s=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),l=Date.now();(s>v||l-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},c.prototype.onDoubleClick=function(s){var l=s.getDocumentPosition(),o=this.editor,u=o.session,p=u.getBracketRange(l);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=o.selection.getWordRange(l.row,l.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},c.prototype.onTripleClick=function(s){var l=s.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(l.row,l.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(l.row),this.select()},c.prototype.onQuadClick=function(s){var l=this.editor;l.selectAll(),this.$clickSelection=l.getSelectionRange(),this.setState("selectAll")},c.prototype.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var l=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=s.domEvent.timeStamp,p=u-o.t,y=p?s.wheelX/p:o.vx,x=p?s.wheelY/p:o.vy;p<w&&(y=(y+o.vx)/2,x=(x+o.vy)/2);var R=Math.abs(y/x),A=!1;if(R>=1&&l.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(A=!0),R<=1&&l.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(A=!0),A)o.allowed=u;else if(u-o.allowed<w){var k=Math.abs(y)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);k?(A=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=y,o.vy=x,A)return l.renderer.scrollBy(s.wheelX*s.speed,s.wheelY*s.speed),s.stop()}},c}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,i.DefaultHandlers=h;function f(c,s,l,o){return Math.sqrt(Math.pow(l-c,2)+Math.pow(o-s,2))}function a(c,s){if(c.start.row==c.end.row)var l=2*s.column-c.start.column-c.end.column;else if(c.start.row==c.end.row-1&&!c.start.column&&!c.end.column)var l=s.column-4;else var l=2*s.row-c.start.row-c.end.row;return l<0?{cursor:c.start,anchor:c.end}:{cursor:c.end,anchor:c.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(e,i,m){i.preventParentScroll=function(g){g.stopPropagation();var v=g.currentTarget,w=v.scrollHeight>v.clientHeight;w||g.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,i,m){var g=this&&this.__extends||function(){var u=function(p,y){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,R){x.__proto__=R}||function(x,R){for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&(x[A]=R[A])},u(p,y)};return function(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");u(p,y);function x(){this.constructor=p}p.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),v=this&&this.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,y=p&&u[p],x=0;if(y)return y.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&x>=u.length&&(u=void 0),{value:u&&u[x++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,f=e("./lib/scroll").preventParentScroll,a="ace_tooltip",c=function(){function u(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}return u.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(p){this.getElement().textContent=p},u.prototype.setHtml=function(p){this.getElement().innerHTML=p},u.prototype.setPosition=function(p,y){this.getElement().style.left=p+"px",this.getElement().style.top=y+"px"},u.prototype.setClassName=function(p){w.addCssClass(this.getElement(),p)},u.prototype.setTheme=function(p){this.$element.className=a+" "+(p.isDark?"ace_dark ":"")+(p.cssClass||"")},u.prototype.show=function(p,y,x){p!=null&&this.setText(p),y!=null&&x!=null&&this.setPosition(y,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(p){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),s=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(p){this.popups.push(p),this.updatePopups()},u.prototype.removePopup=function(p){var y=this.popups.indexOf(p);y!==-1&&(this.popups.splice(y,1),this.updatePopups())},u.prototype.updatePopups=function(){var p,y,x,R;this.popups.sort(function($,_){return _.priority-$.priority});var A=[];try{for(var k=v(this.popups),b=k.next();!b.done;b=k.next()){var M=b.value,E=!0;try{for(var O=(x=void 0,v(A)),T=O.next();!T.done;T=O.next()){var N=T.value;if(this.doPopupsOverlap(N,M)){E=!1;break}}}catch($){x={error:$}}finally{try{T&&!T.done&&(R=O.return)&&R.call(O)}finally{if(x)throw x.error}}E?A.push(M):M.hide()}}catch($){p={error:$}}finally{try{b&&!b.done&&(y=k.return)&&y.call(k)}finally{if(p)throw p.error}}},u.prototype.doPopupsOverlap=function(p,y){var x=p.getElement().getBoundingClientRect(),R=y.getElement().getBoundingClientRect();return x.left<R.right&&x.right>R.left&&x.top<R.bottom&&x.bottom>R.top},u}(),l=new s;i.popupManager=l,i.Tooltip=c;var o=function(u){g(p,u);function p(y){y===void 0&&(y=document.body);var x=u.call(this,y)||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 R=x.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",x.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(x)),R.addEventListener("wheel",f),x}return p.prototype.addToEditor=function(y){y.on("mousemove",this.onMouseMove),y.on("mousedown",this.hide),y.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},p.prototype.removeFromEditor=function(y){y.off("mousemove",this.onMouseMove),y.off("mousedown",this.hide),y.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.onMouseMove=function(y,x){this.lastEvent=y,this.lastT=Date.now();var R=x.$mouseHandler.isMousePressed;if(this.isOpen){var A=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(A.row,A.column)||R||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||R||(this.lastEvent=y,this.timeout=setTimeout(this.waitForHover,this.idleTime))},p.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var y=Date.now()-this.lastT;if(this.idleTime-y>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-y);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},p.prototype.isOutsideOfText=function(y){var x=y.editor,R=y.getDocumentPosition(),A=x.session.getLine(R.row);if(R.column==A.length){var k=x.renderer.pixelToScreenCoordinates(y.clientX,y.clientY),b=x.session.documentToScreenPosition(R.row,R.column);if(b.column!=k.column||b.row!=k.row)return!0}return!1},p.prototype.setDataProvider=function(y){this.$gatherData=y},p.prototype.showForRange=function(y,x,R,A){var k=10;if(!(A&&A!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=y.renderer;this.isOpen||(l.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(x,y.session),this.range=h.fromPoints(x.start,x.end);var M=b.textToScreenCoordinates(x.start.row,x.start.column),E=b.scroller.getBoundingClientRect();M.pageX<E.left&&(M.pageX=E.left);var O=this.getElement();O.innerHTML="",O.appendChild(R),O.style.maxHeight="",O.style.display="block";var T=O.clientHeight,N=O.clientWidth,$=window.innerHeight-M.pageY-b.lineHeight,_=!0;M.pageY-T<0&&M.pageY<$&&(_=!1),O.style.maxHeight=(_?M.pageY:$)-k+"px",O.style.top=_?"":M.pageY+b.lineHeight+"px",O.style.bottom=_?window.innerHeight-M.pageY+"px":"",O.style.left=Math.min(M.pageX,window.innerWidth-N-k)+"px"}},p.prototype.addMarker=function(y,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(y,"ace_highlight-marker","text")},p.prototype.hide=function(y){!y&&document.activeElement==this.getElement()||y&&y.target&&(y.type!="keydown"||y.ctrlKey||y.metaKey)&&this.$element.contains(y.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,l.removePopup(this)))},p.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},p.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},p.prototype.onMouseOut=function(y){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!y.relatedTarget||this.getElement().contains(y.relatedTarget)||y&&y.currentTarget.contains(y.relatedTarget)||y.relatedTarget.classList.contains("ace_content")||this.hide())},p}(c);i.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,i,m){var g=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(p[x]=y[x])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function p(){this.constructor=o}o.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}}(),v=this&&this.__values||function(l){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&l[o],p=0;if(u)return u.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&p>=l.length&&(l=void 0),{value:l&&l[p++],done:!l}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("../lib/event"),f=e("../tooltip").Tooltip,a=e("../config").nls;e("../lib/lang");function c(l){var o=l.editor,u=o.renderer.$gutterLayer,p=new s(o);l.editor.setDefaultHandler("guttermousedown",function(b){if(!(!o.isFocused()||b.getButton()!=0)){var M=u.getRegion(b);if(M!="foldWidgets"){var E=b.getDocumentPosition().row,O=o.session.selection;if(b.getShiftKey())O.selectTo(E,0);else{if(b.domEvent.detail==2)return o.selectAll(),b.preventDefault();l.$clickSelection=o.selection.getLineRange(E)}return l.setState("selectByLines"),l.captureMouse(b),b.preventDefault()}}});var y,x;function R(){var b=x.getDocumentPosition().row,M=o.session.getLength();if(b==M){var E=o.renderer.pixelToScreenCoordinates(0,x.y).row,O=x.$pos;if(E>o.session.documentToScreenRow(O.row,O.column))return A()}if(p.showTooltip(b),!!p.isOpen)if(o.on("mousewheel",A),l.$tooltipFollowsMouse)k(x);else{var T=x.getGutterRow(),N=u.$lines.get(T);if(N){var $=N.element.querySelector(".ace_gutter_annotation"),_=$.getBoundingClientRect(),S=p.getElement().style;S.left=_.right+"px",S.top=_.bottom+"px"}else k(x)}}function A(){y&&(y=clearTimeout(y)),p.isOpen&&(p.hideTooltip(),o.off("mousewheel",A))}function k(b){p.setPosition(b.x,b.y)}l.editor.setDefaultHandler("guttermousemove",function(b){var M=b.domEvent.target||b.domEvent.srcElement;if(w.hasCssClass(M,"ace_fold-widget"))return A();p.isOpen&&l.$tooltipFollowsMouse&&k(b),x=b,!y&&(y=setTimeout(function(){y=null,x&&!l.isMousePressed?R():A()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(b){x=null,!(!p.isOpen||y)&&(y=setTimeout(function(){y=null,A()},50))},o),o.on("changeSession",A),o.on("input",A)}i.GutterHandler=c;var s=function(l){g(o,l);function o(u){var p=l.call(this,u.container)||this;return p.editor=u,p}return o.prototype.setPosition=function(u,p){var y=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,R=this.getWidth(),A=this.getHeight();u+=15,p+=15,u+R>y&&(u-=u+R-y),p+A>x&&(p-=20+A),f.prototype.setPosition.call(this,u,p)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:a("gutter-tooltip.aria-label.error.singular","error"),plural:a("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:a("gutter-tooltip.aria-label.security.singular","security finding"),plural:a("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:a("gutter-tooltip.aria-label.warning.singular","warning"),plural:a("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:a("gutter-tooltip.aria-label.info.singular","information message"),plural:a("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:a("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:a("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(u){var p,y=this.editor.renderer.$gutterLayer,x=y.$annotations[u],R;x?R={displayText:Array.from(x.displayText),type:Array.from(x.type)}:R={displayText:[],type:[]};var A=y.session.getFoldLine(u);if(A&&y.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},M,E=u+1;E<=A.end.row;E++)if(y.$annotations[E])for(var O=0;O<y.$annotations[E].text.length;O++){var T=y.$annotations[E].type[O];k[T].push(y.$annotations[E].text[O]),(!M||b[T]<b[M])&&(M=T)}if(["error","security","warning"].includes(M)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");R.displayText.push(N),R.type.push(M+"_fold")}}if(R.displayText.length===0)return this.hide();for(var $={error:[],security:[],warning:[],info:[],hint:[]},_=y.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<R.displayText.length;E++){var S=w.createElement("span"),L=w.createElement("span");(p=L.classList).add.apply(p,["ace_".concat(R.type[E]),_]),L.setAttribute("aria-label","".concat(o.annotationLabels[R.type[E].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(w.createTextNode(" ")),S.appendChild(L),S.appendChild(w.createTextNode(R.displayText[E])),S.appendChild(w.createElement("br")),$[R.type[E].replace("_fold","")].push(S)}var I=this.getElement();w.removeChildren(I),$.error.forEach(function(F){return I.appendChild(F)}),$.security.forEach(function(F){return I.appendChild(F)}),$.warning.forEach(function(F){return I.appendChild(F)}),$.info.forEach(function(F){return I.appendChild(F)}),$.hint.forEach(function(F){return I.appendChild(F)}),I.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},o.annotationsToSummaryString=function(u){var p,y,x=[],R=["error","security","warning","info","hint"];try{for(var A=v(R),k=A.next();!k.done;k=A.next()){var b=k.value;if(u[b].length){var M=u[b].length===1?o.annotationLabels[b].singular:o.annotationLabels[b].plural;x.push("".concat(u[b].length," ").concat(M))}}}catch(E){p={error:E}}finally{try{k&&!k.done&&(y=A.return)&&y.call(A)}finally{if(p)throw p.error}}return x.join(", ")},o}(f);i.GutterTooltip=s}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var g=e("../lib/event"),v=e("../lib/useragent"),w=function(){function h(f,a){this.speed,this.wheelX,this.wheelY,this.domEvent=f,this.editor=a,this.x=this.clientX=f.clientX,this.y=this.clientY=f.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){g.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){g.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(f,0),c=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-c},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var f=this.editor,a=f.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var c=this.getDocumentPosition();this.$inSelection=a.contains(c.row,c.column)}return this.$inSelection},h.prototype.getButton=function(){return g.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return v.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();i.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,i,m){var g=e("../lib/dom"),v=e("../lib/event"),w=e("../lib/useragent"),h=200,f=200,a=5;function c(l){var o=l.editor,u=g.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(G){l[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(l));var y=o.container,x,R,A,k,b,M,E=0,O,T,N,$,_;this.onDragStart=function(G){if(this.cancelDrag||!y.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}b=o.getSelectionRange();var ie=G.dataTransfer;ie.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),ie.setDragImage&&ie.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),ie.clearData(),ie.setData("Text",o.session.getTextRange()),T=!0,this.setState("drag")},this.onDragEnd=function(G){if(y.draggable=!1,T=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!O&&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 R=G.clientX,A=G.clientY,x||F(),E++,G.dataTransfer.dropEffect=O=X(G),v.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return R=G.clientX,A=G.clientY,x||(F(),E++),W!==null&&(W=null),G.dataTransfer.dropEffect=O=X(G),v.preventDefault(G)},this.onDragLeave=function(G){if(E--,E<=0&&x)return H(),O=null,v.preventDefault(G)},this.onDrop=function(G){if(M){var Z=G.dataTransfer;if(T)switch(O){case"move":b.contains(M.row,M.column)?b={start:M,end:M}:b=o.moveText(b,M);break;case"copy":b=o.moveText(b,M,!0);break}else{var ie=Z.getData("Text");b={start:M,end:o.session.insert(M,ie)},o.focus(),O=null}return H(),v.preventDefault(G)}},v.addListener(y,"dragstart",this.onDragStart.bind(l),o),v.addListener(y,"dragend",this.onDragEnd.bind(l),o),v.addListener(y,"dragenter",this.onDragEnter.bind(l),o),v.addListener(y,"dragover",this.onDragOver.bind(l),o),v.addListener(y,"dragleave",this.onDragLeave.bind(l),o),v.addListener(y,"drop",this.onDrop.bind(l),o);function S(G,Z){var ie=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!$||J||ae)o.moveCursorToPosition(G),$=ie,_={x:R,y:A};else{var me=s(_.x,_.y,R,A);me>a?$=null:ie-$>=f&&(o.renderer.scrollCursorIntoView(),$=null)}}function L(G,Z){var ie=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),ye={x:{left:R-me.left,right:me.right-R},y:{top:A-me.top,bottom:me.bottom-A}},fe=Math.min(ye.x.left,ye.x.right),_e=Math.min(ye.y.top,ye.y.bottom),it={row:G.row,column:G.column};fe/ae<=2&&(it.column+=ye.x.left<ye.x.right?-3:2),_e/J<=1&&(it.row+=ye.y.top<ye.y.bottom?-1:1);var Nt=G.row!=it.row,lt=G.column!=it.column,dt=!Z||G.row!=Z.row;Nt||lt&&!dt?N?ie-N>=h&&o.renderer.scrollCursorIntoView(it):N=ie:N=null}function I(){var G=M;M=o.renderer.screenToTextCoordinates(R,A),S(M,G),L(M,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(k),I(),k=setInterval(I,20),E=0,v.addListener(document,"mousemove",V)}function H(){clearInterval(k),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(b),o.isFocused()&&!T&&o.$resetCursorStyle(),b=null,M=null,E=0,N=null,$=null,v.removeListener(document,"mousemove",V)}var W=null;function V(){W==null&&(W=setTimeout(function(){W!=null&&x&&H()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(ie){return ie=="text/plain"||ie=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],ie=["move","copymove","linkmove","all","uninitialized"],J=w.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":ie.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var l=Date.now()-this.mousedownEvent.time;l>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var l=this.editor.container;l.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(l){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var l=this.editor,o=l.container;o.draggable=!0,l.renderer.$cursorLayer.setBlinking(!1),l.setStyle("ace_dragging");var u=w.isWin?"default":"move";l.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(l){var o=this.editor.container;if(w.isIE&&this.state=="dragReady"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(l){if(this.$dragEnabled){this.mousedownEvent=l;var o=this.editor,u=l.inSelection(),p=l.getButton(),y=l.domEvent.detail||1;if(y===1&&p===0&&u){if(l.editor.inMultiSelectMode&&(l.getAccelKey()||l.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=l.domEvent.target||l.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),o.getDragDelay()){if(w.isWebKit){this.cancelDrag=!0;var R=o.container;R.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(l,this.onMouseDrag.bind(this)),l.defaultPrevented=!0}}}}).call(c.prototype);function s(l,o,u,p){return Math.sqrt(Math.pow(u-l,2)+Math.pow(p-o,2))}i.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,i,m){var g=e("./mouse_event").MouseEvent,v=e("../lib/event"),w=e("../lib/dom");i.addTouchListeners=function(h,f){var a="scroll",c,s,l,o,u,p,y=0,x,R=0,A=0,k=0,b,M;function E(){var S=window.navigator&&window.navigator.clipboard,L=!1,I=function(){var W=f.getCopyText(),V=f.session.getUndoManager().hasUndo();M.replaceChild(w.buildDom(L?["span",!W&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],S&&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"]),M.firstChild)},F=function(W){return f.commands.canExecute(W,f)},H=function(W){var V=W.target.getAttribute("action");if(V=="more"||!L)return L=!L,I();V=="paste"?S.readText().then(function(q){f.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(S?S.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand(V)),M.firstChild.style.display="none",L=!1,V!="openCommandPalette"&&f.focus()};M=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){a="menu",W.stopPropagation(),W.preventDefault(),f.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),H(W)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}function O(){if(!f.getOption("enableMobileMenu")){M&&T();return}M||E();var S=f.selection.cursor,L=f.renderer.textToScreenCoordinates(S.row,S.column),I=f.renderer.textToScreenCoordinates(0,0).pageX,F=f.renderer.scrollLeft,H=f.container.getBoundingClientRect();M.style.top=L.pageY-H.top-3+"px",L.pageX-H.left<H.width-70?(M.style.left="",M.style.right="10px"):(M.style.right="",M.style.left=I+F-H.left+"px"),M.style.display="",M.firstChild.style.display="none",f.on("input",T)}function T(S){M&&(M.style.display="none"),f.off("input",T)}function N(){u=null,clearTimeout(u);var S=f.selection.getRange(),L=S.contains(x.row,x.column);(S.isEmpty()||!L)&&(f.selection.moveToPosition(x),f.selection.selectWord()),a="wait",O()}function $(){u=null,clearTimeout(u),f.selection.moveToPosition(x);var S=R>=2?f.selection.getLineRange(x.row):f.session.getBracketRange(x);S&&!S.isEmpty()?f.selection.setRange(S):f.selection.selectWord(),a="wait"}v.addListener(h,"contextmenu",function(S){if(b){var L=f.textInput.getElement();L.focus()}},f),v.addListener(h,"touchstart",function(S){var L=S.touches;if(u||L.length>1){clearTimeout(u),u=null,l=-1,a="zoom";return}b=f.$mouseHandler.isMousePressed=!0;var I=f.renderer.layerConfig.lineHeight,F=f.renderer.layerConfig.lineHeight,H=S.timeStamp;o=H;var W=L[0],V=W.clientX,q=W.clientY;Math.abs(c-V)+Math.abs(s-q)>I&&(l=-1),c=S.clientX=V,s=S.clientY=q,A=k=0;var X=new g(S,f);if(x=X.getDocumentPosition(),H-l<500&&L.length==1&&!y)R++,S.preventDefault(),S.button=0,$();else{R=0;var G=f.selection.cursor,Z=f.selection.isEmpty()?G:f.selection.anchor,ie=f.renderer.$cursorLayer.getPixelPosition(G,!0),J=f.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=f.renderer.scroller.getBoundingClientRect(),me=f.renderer.layerConfig.offset,ye=f.renderer.scrollLeft,fe=function(Nt,lt){return Nt=Nt/F,lt=lt/I-.75,Nt*Nt+lt*lt};if(S.clientX<ae.left){a="zoom";return}var _e=fe(S.clientX-ae.left-ie.left+ye,S.clientY-ae.top-ie.top+me),it=fe(S.clientX-ae.left-J.left+ye,S.clientY-ae.top-J.top+me);_e<3.5&&it<3.5&&(a=_e>it?"cursor":"anchor"),it<3.5?a="anchor":_e<3.5?a="cursor":a="scroll",u=setTimeout(N,450)}l=H},f),v.addListener(h,"touchend",function(S){b=f.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),a=="zoom"?(a="",y=0):u?(f.selection.moveToPosition(x),y=0,O()):a=="scroll"?(_(),T()):O(),clearTimeout(u),u=null},f),v.addListener(h,"touchmove",function(S){u&&(clearTimeout(u),u=null);var L=S.touches;if(!(L.length>1||a=="zoom")){var I=L[0],F=c-I.clientX,H=s-I.clientY;if(a=="wait")if(F*F+H*H>4)a="cursor";else return S.preventDefault();c=I.clientX,s=I.clientY,S.clientX=I.clientX,S.clientY=I.clientY;var W=S.timeStamp,V=W-o;if(o=W,a=="scroll"){var q=new g(S,f);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&&(A=F/V,k=H/V),f._emit("mousewheel",q),q.propagationStopped||(A=k=0)}else{var X=new g(S,f),G=X.getDocumentPosition();a=="cursor"?f.selection.moveCursorToPosition(G):a=="anchor"&&f.selection.setSelectionAnchor(G.row,G.column),f.renderer.scrollCursorIntoView(G),S.preventDefault()}}},f);function _(){y+=60,p=setInterval(function(){y--<=0&&(clearInterval(p),p=null),Math.abs(A)<.01&&(A=0),Math.abs(k)<.01&&(k=0),y<20&&(A=.9*A),y<20&&(k=.9*k);var S=f.session.getScrollTop();f.renderer.scrollBy(10*A,10*k),S==f.session.getScrollTop()&&(y=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(e,i,m){var g=e("../lib/event"),v=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,f=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,c=e("./touch_handler").addTouchListeners,s=e("../config"),l=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var p=this;this.editor=u,new w(this),new h(this),new a(this);var y=function(A){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},x=u.renderer.getMouseEventTarget();g.addListener(x,"click",this.onMouseEvent.bind(this,"click"),u),g.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),g.addMultiMouseDownListener([x,u.renderer.scrollBarV&&u.renderer.scrollBarV.inner,u.renderer.scrollBarH&&u.renderer.scrollBarH.inner,u.textInput&&u.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",u),g.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),c(u.container,u);var R=u.renderer.$gutter;g.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),g.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),u),g.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),g.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),g.addListener(x,"mousedown",y,u),g.addListener(R,"mousedown",y,u),v.isIE&&u.renderer.scrollBarV&&(g.addListener(u.renderer.scrollBarV.element,"mousedown",y,u),g.addListener(u.renderer.scrollBarH.element,"mousedown",y,u)),u.on("mousemove",function(A){if(!(p.state||p.$dragDelay||!p.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(A.x,A.y),b=u.session.selection.getRange(),M=u.renderer;!b.isEmpty()&&b.insideStart(k.row,k.column)?M.setCursorStyle("default"):M.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,p){this.editor.session&&this.editor._emit(u,new f(p,this.editor))},o.prototype.onMouseMove=function(u,p){var y=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!y||!y.length||this.editor._emit(u,new f(p,this.editor))},o.prototype.onMouseWheel=function(u,p){var y=new f(p,this.editor);y.speed=this.$scrollSpeed*2,y.wheelX=p.wheelX,y.wheelY=p.wheelY,this.editor._emit(u,y)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,p){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var y=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var R=this,A=function(O){if(O){if(v.isWebKit&&!O.which&&R.releaseMouse)return R.releaseMouse();R.x=O.clientX,R.y=O.clientY,p&&p(O),R.mouseEvent=new f(O,R.editor),R.$mouseMoved=!0}},k=function(O){y.off("beforeEndOperation",M),clearInterval(E),y.session&&b(),R[R.state+"End"]&&R[R.state+"End"](O),R.state="",R.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,O&&R.onMouseEvent("mouseup",O),y.endOperation()},b=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1};if(v.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var M=function(O){R.releaseMouse&&y.curOp.command.name&&y.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};y.on("beforeEndOperation",M),y.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=A,R.releaseMouse=g.capture(this.editor.container,A,k);var E=setInterval(b,20)},o.prototype.cancelContextMenu=function(){var u=(function(p){p&&p.domEvent&&p.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),p&&p.domEvent&&g.stopEvent(p.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();l.prototype.releaseMouse=null,s.defineOptions(l.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:v.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=l}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,i,m){var g=e("../lib/dom"),v=function(){function w(h){h.on("click",function(f){var a=f.getDocumentPosition(),c=h.session,s=c.getFoldAt(a.row,a.column,1);s&&(f.getAccelKey()?c.removeFold(s):c.expandFold(s),f.stop());var l=f.domEvent&&f.domEvent.target;l&&g.hasCssClass(l,"ace_inline_button")&&g.hasCssClass(l,"ace_toggle_wrap")&&(c.setOption("wrap",!c.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(f){var a=h.renderer.$gutterLayer.getRegion(f);if(a=="foldWidgets"){var c=f.getDocumentPosition().row,s=h.session;s.foldWidgets&&s.foldWidgets[c]&&h.session.onFoldWidgetClick(c,f),h.isFocused()||h.focus(),f.stop()}}),h.on("gutterdblclick",function(f){var a=h.renderer.$gutterLayer.getRegion(f);if(a=="foldWidgets"){var c=f.getDocumentPosition().row,s=h.session,l=s.getParentFoldRangeData(c,!0),o=l.range||l.firstRange;if(o){c=o.start.row;var u=s.getFoldAt(c,s.getLine(c).length,1);u?s.removeFold(u):(s.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}f.stop()}})}return w}();i.FoldHandler=v}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,i,m){var g=e("../lib/keys"),v=e("../lib/event"),w=function(){function h(f){this.$editor=f,this.$data={editor:f},this.$handlers=[],this.setDefaultHandler(f.commands)}return h.prototype.setDefaultHandler=function(f){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=f,this.addKeyboardHandler(f,0)},h.prototype.setKeyboardHandler=function(f){var a=this.$handlers;if(a[a.length-1]!=f){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(f,1)}},h.prototype.addKeyboardHandler=function(f,a){if(f){typeof f=="function"&&!f.handleKeyboard&&(f.handleKeyboard=f);var c=this.$handlers.indexOf(f);c!=-1&&this.$handlers.splice(c,1),a==null?this.$handlers.push(f):this.$handlers.splice(a,0,f),c==-1&&f.attach&&f.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(f){var a=this.$handlers.indexOf(f);return a==-1?!1:(this.$handlers.splice(a,1),f.detach&&f.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var f=this.$data,a=f.editor;return this.$handlers.map(function(c){return c.getStatusText&&c.getStatusText(a,f)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(f,a,c,s){for(var l,o=!1,u=this.$editor.commands,p=this.$handlers.length;p--&&(l=this.$handlers[p].handleKeyboard(this.$data,f,a,c,s),!(!(!l||!l.command)&&(l.command=="null"?o=!0:o=u.exec(l.command,this.$editor,l.args,s),o&&s&&f!=-1&&l.passEvent!=!0&&l.command.passEvent!=!0&&v.stopEvent(s),o))););return!o&&f==-1&&(l={command:"insertstring"},o=u.exec("insertstring",this.$editor,a)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",l),o},h.prototype.onCommandKey=function(f,a,c){var s=g.keyCodeToString(c);return this.$callKeyboardHandlers(a,s,c,f)},h.prototype.onTextInput=function(f){return this.$callKeyboardHandlers(-1,f)},h}();i.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,i,m){var g=0,v=0,w=!1,h=!1,f=!1,a=[[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]],c=[[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]],s=0,l=1,o=0,u=1,p=2,y=3,x=4,R=5,A=6,k=7,b=8,M=9,E=10,O=11,T=12,N=13,$=14,_=15,S=16,L=17,I=18,F=[I,I,I,I,I,I,I,I,I,A,R,A,b,R,I,I,I,I,I,I,I,I,I,I,I,I,I,I,R,R,R,A,b,x,x,O,O,O,x,x,x,x,x,E,M,E,M,M,p,p,p,p,p,p,p,p,p,p,M,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,I,I,I,I,I,I,R,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,I,M,x,O,O,O,O,x,x,x,x,o,x,x,I,x,x,O,O,p,p,x,o,x,x,x,p,o,x,x,x,x,x],H=[b,b,b,b,b,b,b,b,b,b,b,I,I,I,o,u,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,b,R,N,$,_,S,L,M,O,O,O,O,O,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,M,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 W(G,Z,ie,J){var ae=g?c:a,me=null,ye=null,fe=null,_e=0,it=null,Nt=null,lt=-1,dt=null,rn=null,Lt=[];if(!J)for(dt=0,J=[];dt<ie;dt++)J[dt]=X(G[dt]);for(v=g,w=!1,h=!1,f=!1,rn=0;rn<ie;rn++){if(me=_e,Lt[rn]=ye=q(G,J,Lt,rn),_e=ae[me][ye],it=_e&240,_e&=15,Z[rn]=fe=ae[_e][5],it>0)if(it==16){for(dt=lt;dt<rn;dt++)Z[dt]=1;lt=-1}else lt=-1;if(Nt=ae[_e][6],Nt)lt==-1&&(lt=rn);else if(lt>-1){for(dt=lt;dt<rn;dt++)Z[dt]=fe;lt=-1}J[rn]==R&&(Z[rn]=0),v|=fe}if(f){for(dt=0;dt<ie;dt++)if(J[dt]==A){Z[dt]=g;for(var qt=dt-1;qt>=0&&J[qt]==b;qt--)Z[qt]=g}}}function V(G,Z,ie){if(!(v<G)){if(G==1&&g==l&&!h){ie.reverse();return}for(var J=ie.length,ae=0,me,ye,fe,_e;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(ye=ae,fe=me-1;ye<fe;ye++,fe--)_e=ie[ye],ie[ye]=ie[fe],ie[fe]=_e;ae=me}ae++}}}function q(G,Z,ie,J){var ae=Z[J],me,ye,fe,_e;switch(ae){case o:case u:w=!1;case x:case y:return ae;case p:return w?y:p;case k:return w=!0,u;case b:return x;case M:return J<1||J+1>=Z.length||(me=ie[J-1])!=p&&me!=y||(ye=Z[J+1])!=p&&ye!=y?x:(w&&(ye=y),ye==me?ye:x);case E:return me=J>0?ie[J-1]:R,me==p&&J+1<Z.length&&Z[J+1]==p?p:x;case O:if(J>0&&ie[J-1]==p)return p;if(w)return x;for(_e=J+1,fe=Z.length;_e<fe&&Z[_e]==O;)_e++;return _e<fe&&Z[_e]==p?p:x;case T:for(fe=Z.length,_e=J+1;_e<fe&&Z[_e]==T;)_e++;if(_e<fe){var it=G[J],Nt=it>=1425&&it<=2303||it==64286;if(me=Z[_e],Nt&&(me==u||me==k))return u}return J<1||(me=Z[J-1])==R?x:ie[J-1];case R:return w=!1,h=!0,g;case A:return f=!0,x;case N:case $:case S:case L:case _:w=!1;case I:return x}}function X(G){var Z=G.charCodeAt(0),ie=Z>>8;return ie==0?Z>191?o:F[Z]:ie==5?/[\u0591-\u05f4]/.test(G)?u:o:ie==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?T:/[\u0660-\u0669\u066b-\u066c]/.test(G)?y:Z==1642?O:/[\u06f0-\u06f9]/.test(G)?p:k:ie==32&&Z<=8287?H[Z&255]:ie==254&&Z>=65136?k:x}i.L=o,i.R=u,i.EN=p,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(G,Z,ie){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),ye=[];g=ie?l:s,W(J,ye,J.length,Z);for(var fe=0;fe<ae.length;ae[fe]=fe,fe++);V(2,ye,ae),V(1,ye,ae);for(var fe=0;fe<ae.length-1;fe++)Z[fe]===y?ye[fe]=i.AN:ye[fe]===u&&(Z[fe]>k&&Z[fe]<N||Z[fe]===x||Z[fe]===I)?ye[fe]=i.ON_R:fe>0&&J[fe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[fe])&&(ye[fe-1]=ye[fe]=i.R_H,fe++);J[J.length-1]===i.DOT&&(ye[J.length-1]=i.B),J[0]==="‫"&&(ye[0]=i.RLE);for(var fe=0;fe<ae.length;fe++)me[fe]=ye[ae[fe]];return{logicalFromVisual:ae,bidiLevels:me}},i.hasBidiCharacters=function(G,Z){for(var ie=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!ie&&(Z[J]==u||Z[J]==k||Z[J]==y)&&(ie=!0);return ie},i.getVisualFromLogicalIdx=function(G,Z){for(var ie=0;ie<Z.logicalFromVisual.length;ie++)if(Z.logicalFromVisual[ie]==G)return ie;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,i,m){var g=e("./lib/bidiutil"),v=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function f(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=g,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=w.test(a.getValue())}return f.prototype.isBidiRow=function(a,c,s){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(c,s),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},f.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&w.test(a.lines.join(`
179
+ `))&&(this.seenBidi=!0,this.currentRow=null)},f.prototype.getDocumentRow=function(){var a=0,c=this.session.$screenRowCache;if(c.length){var s=this.session.$getRowCacheIndex(c,this.currentRow);s>=0&&(a=this.session.$docRowCache[s])}return a},f.prototype.getSplitIndex=function(){var a=0,c=this.session.$screenRowCache;if(c.length)for(var s,l=this.session.$getRowCacheIndex(c,this.currentRow);this.currentRow-a>0&&(s=this.session.$getRowCacheIndex(c,this.currentRow-a-1),s===l);)l=s,a++;else a=this.currentRow;return a},f.prototype.updateRowLine=function(a,c){a===void 0&&(a=this.getDocumentRow());var s=a===this.session.getLength()-1,l=s?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[a];o&&(c===void 0&&(c=this.getSplitIndex()),c>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[g.L],this.line=c<o.length?this.line.substring(o[c-1],o[c]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[c]),c==o.length&&(this.line+=this.showInvisibles?l:g.DOT))}else this.line+=this.showInvisibles?l:g.DOT;var u=this.session,p=0,y;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,R){return x===" "||u.isFullWidth(x.charCodeAt(0))?(y=x===" "?u.getScreenTabSize(R+p):2,p+=y-1,v.stringRepeat(g.DOT,y)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==g.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},f.prototype.updateBidiMap=function(){var a=[];g.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=g.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},f.prototype.markAsDirty=function(){this.currentRow=null},f.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var c=this.characterWidth=a.$characterSize.width,s=a.$measureCharWidth("ה");this.charWidths[g.L]=this.charWidths[g.EN]=this.charWidths[g.ON_R]=c,this.charWidths[g.R]=this.charWidths[g.AN]=s,this.charWidths[g.R_H]=s*.45,this.charWidths[g.B]=this.charWidths[g.RLE]=0,this.currentRow=null}},f.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},f.prototype.setEolChar=function(a){this.EOL=a},f.prototype.setContentWidth=function(a){this.contentWidth=a},f.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},f.prototype.setRtlDirection=function(a,c){for(var s=a.getCursorPosition(),l=a.selection.getSelectionAnchor().row;l<=s.row;l++)!c&&a.session.getLine(l).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(l,0,1):c&&a.session.getLine(l).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:l},a.session.$bidiHandler.RLE)},f.prototype.getPosLeft=function(a){a-=this.wrapIndent;var c=this.line.charAt(0)===this.RLE?1:0,s=a>c?this.session.getOverwrite()?a:a-1:c,l=g.getVisualFromLogicalIdx(s,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&a<=c&&o[l]%2!==0&&l++;for(var p=0;p<l;p++)u+=this.charWidths[o[p]];return!this.session.getOverwrite()&&a>c&&o[l]%2===0&&(u+=this.charWidths[o[l]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},f.prototype.getSelections=function(a,c){var s=this.bidiMap,l=s.bidiLevels,o,u=[],p=0,y=Math.min(a,c)-this.wrapIndent,x=Math.max(a,c)-this.wrapIndent,R=!1,A=!1,k=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,M=0;M<l.length;M++)b=s.logicalFromVisual[M],o=l[M],R=b>=y&&b<x,R&&!A?k=p:!R&&A&&u.push({left:k,width:p-k}),p+=this.charWidths[o],A=R;if(R&&M===l.length&&u.push({left:k,width:p-k}),this.isRtlDir)for(var E=0;E<u.length;E++)u[E].left+=this.rtlLineOffset;return u},f.prototype.offsetToCol=function(s){this.isRtlDir&&(s-=this.rtlLineOffset);var c=0,s=Math.max(s,0),l=0,o=0,u=this.bidiMap.bidiLevels,p=this.charWidths[u[o]];for(this.wrapIndent&&(s-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);s>l+p/2;){if(l+=p,o===u.length-1){p=0;break}p=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(s<l&&o--,c=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?c=1+(s>l?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&p===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?c=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&p!==0&&o--,c=this.bidiMap.logicalFromVisual[o]),c===0&&this.isRtlDir&&c++,c+this.wrapIndent},f}();i.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,i,m){var g=e("./lib/oop"),v=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,f=function(){function a(c){this.session=c,this.doc=c.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var s=this;this.cursor.on("change",function(l){s.$cursorChanged=!0,s.$silent||s._emit("changeCursor"),!s.$isEmpty&&!s.$silent&&s._emit("changeSelection"),!s.$keepDesiredColumnOnChange&&l.old.column!=l.value.column&&(s.$desiredColumn=null)}),this.anchor.on("change",function(){s.$anchorChanged=!0,!s.$isEmpty&&!s.$silent&&s._emit("changeSelection")})}return a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(c,s){this.$isEmpty=!1,this.anchor.setPosition(c,s)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var c=this.anchor,s=this.lead;return c.row>s.row||c.row==s.row&&c.column>s.column},a.prototype.getRange=function(){var c=this.anchor,s=this.lead;return this.$isEmpty?h.fromPoints(s,s):this.isBackwards()?h.fromPoints(s,c):h.fromPoints(c,s)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(c,s){var l=s?c.end:c.start,o=s?c.start:c.end;this.$setSelection(l.row,l.column,o.row,o.column)},a.prototype.$setSelection=function(c,s,l,o){if(!this.$silent){var u=this.$isEmpty,p=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(c,s),this.cursor.setPosition(l,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||p)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(c){var s=this.lead;this.$isEmpty&&this.setSelectionAnchor(s.row,s.column),c.call(this)},a.prototype.selectTo=function(c,s){this.$moveSelection(function(){this.moveCursorTo(c,s)})},a.prototype.selectToPosition=function(c){this.$moveSelection(function(){this.moveCursorToPosition(c)})},a.prototype.moveTo=function(c,s){this.clearSelection(),this.moveCursorTo(c,s)},a.prototype.moveToPosition=function(c){this.clearSelection(),this.moveCursorToPosition(c)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(c,s){if(typeof s>"u"){var l=c||this.lead;c=l.row,s=l.column}return this.session.getWordRange(c,s)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var c=this.getCursor(),s=this.session.getAWordRange(c.row,c.column);this.setSelectionRange(s)},a.prototype.getLineRange=function(c,s){var l=typeof c=="number"?c:this.lead.row,o,u=this.session.getFoldLine(l);return u?(l=u.start.row,o=u.end.row):o=l,s===!0?new h(l,0,o,this.session.getLine(o).length):new h(l,0,o+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(c,s,l){var o=c.column,u=c.column+s;return l<0&&(o=c.column-s,u=c.column),this.session.isTabStop(c)&&this.doc.getLine(c.row).slice(o,u).split(" ").length-1==s},a.prototype.moveCursorLeft=function(){var c=this.lead.getPosition(),s;if(s=this.session.getFoldAt(c.row,c.column,-1))this.moveCursorTo(s.start.row,s.start.column);else if(c.column===0)c.row>0&&this.moveCursorTo(c.row-1,this.doc.getLine(c.row-1).length);else{var l=this.session.getTabSize();this.wouldMoveIntoSoftTab(c,l,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-l):this.moveCursorBy(0,-1)}},a.prototype.moveCursorRight=function(){var c=this.lead.getPosition(),s;if(s=this.session.getFoldAt(c.row,c.column,1))this.moveCursorTo(s.end.row,s.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 l=this.session.getTabSize(),c=this.lead;this.wouldMoveIntoSoftTab(c,l,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,l):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var c=this.lead.row,s=this.lead.column,l=this.session.documentToScreenRow(c,s),o=this.session.screenToDocumentPosition(l,0),u=this.session.getDisplayLine(c,null,o.row,o.column),p=u.match(/^\s*/);p[0].length!=s&&!this.session.$useEmacsStyleLineStart&&(o.column+=p[0].length),this.moveCursorToPosition(o)},a.prototype.moveCursorLineEnd=function(){var c=this.lead,s=this.session.getDocumentLastRowColumnPosition(c.row,c.column);if(this.lead.column==s.column){var l=this.session.getLine(s.row);if(s.column==l.length){var o=l.search(/\s+$/);o>0&&(s.column=o)}}this.moveCursorTo(s.row,s.column)},a.prototype.moveCursorFileEnd=function(){var c=this.doc.getLength()-1,s=this.doc.getLine(c).length;this.moveCursorTo(c,s)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var c=this.lead.row,s=this.lead.column,l=this.doc.getLine(c),o=l.substring(s);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(c,s,1);if(u){this.moveCursorTo(u.end.row,u.end.column);return}if(this.session.nonTokenRe.exec(o)&&(s+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=l.substring(s)),s>=l.length){this.moveCursorTo(c,l.length),this.moveCursorRight(),c<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(s+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,s)},a.prototype.moveCursorLongWordLeft=function(){var c=this.lead.row,s=this.lead.column,l;if(l=this.session.getFoldAt(c,s,-1)){this.moveCursorTo(l.start.row,l.start.column);return}var o=this.session.getFoldStringAt(c,s,-1);o==null&&(o=this.doc.getLine(c).substring(0,s));var u=v.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(s-=this.session.nonTokenRe.lastIndex,u=u.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),s<=0){this.moveCursorTo(c,0),this.moveCursorLeft(),c>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(s-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(c,s)},a.prototype.$shortWordEndIndex=function(c){var s=0,l,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(c))s=this.session.tokenRe.lastIndex;else{for(;(l=c[s])&&o.test(l);)s++;if(s<1){for(u.lastIndex=0;(l=c[s])&&!u.test(l);)if(u.lastIndex=0,s++,o.test(l))if(s>2){s--;break}else{for(;(l=c[s])&&o.test(l);)s++;if(s>2)break}}}return u.lastIndex=0,s},a.prototype.moveCursorShortWordRight=function(){var c=this.lead.row,s=this.lead.column,l=this.doc.getLine(c),o=l.substring(s),u=this.session.getFoldAt(c,s,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(s==l.length){var p=this.doc.getLength();do c++,o=this.doc.getLine(c);while(c<p&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),s=0}var y=this.$shortWordEndIndex(o);this.moveCursorTo(c,s+y)},a.prototype.moveCursorShortWordLeft=function(){var c=this.lead.row,s=this.lead.column,l;if(l=this.session.getFoldAt(c,s,-1))return this.moveCursorTo(l.start.row,l.start.column);var o=this.session.getLine(c).substring(0,s);if(s===0){do c--,o=this.doc.getLine(c);while(c>0&&/^\s*$/.test(o));s=o.length,/\s+$/.test(o)||(o="")}var u=v.stringReverse(o),p=this.$shortWordEndIndex(u);return this.moveCursorTo(c,s-p)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(c,s){var l=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(s===0&&(c!==0&&(this.session.$bidiHandler.isBidiRow(l.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(l.column),l.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=l.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?l.column=this.$desiredColumn:this.$desiredColumn=l.column),c!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var u=this.session.lineWidgets[this.lead.row];c<0?c-=u.rowsAbove||0:c>0&&(c+=u.rowCount-(u.rowsAbove||0))}var p=this.session.screenToDocumentPosition(l.row+c,l.column,o);c!==0&&s===0&&p.row===this.lead.row&&(p.column,this.lead.column),this.moveCursorTo(p.row,p.column+s,s===0)},a.prototype.moveCursorToPosition=function(c){this.moveCursorTo(c.row,c.column)},a.prototype.moveCursorTo=function(c,s,l){var o=this.session.getFoldAt(c,s,1);o&&(c=o.start.row,s=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(c);/[\uDC00-\uDFFF]/.test(u.charAt(s))&&u.charAt(s-1)&&(this.lead.row==c&&this.lead.column==s+1?s=s-1:s=s+1),this.lead.setPosition(c,s),this.$keepDesiredColumnOnChange=!1,l||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(c,s,l){var o=this.session.screenToDocumentPosition(c,s);this.moveCursorTo(o.row,o.column,l)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(c){this.setSelectionRange(c,c.cursor==c.start),this.$desiredColumn=c.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(c){var s=this.getRange();return c?(c.start.column=s.start.column,c.start.row=s.start.row,c.end.column=s.end.column,c.end.row=s.end.row):c=s,c.cursor=this.isBackwards()?c.start:c.end,c.desiredColumn=this.$desiredColumn,c},a.prototype.getRangeOfMovements=function(c){var s=this.getCursor();try{c(this);var l=this.getCursor();return h.fromPoints(s,l)}catch{return h.fromPoints(s,s)}finally{this.moveCursorToPosition(s)}},a.prototype.toJSON=function(){if(this.rangeCount)var c=this.ranges.map(function(s){var l=s.clone();return l.isBackwards=s.cursor==s.start,l});else{var c=this.getRange();c.isBackwards=this.isBackwards()}return c},a.prototype.fromJSON=function(c){if(c.start==null)if(this.rangeList&&c.length>1){this.toSingleRange(c[0]);for(var s=c.length;s--;){var l=h.fromPoints(c[s].start,c[s].end);c[s].isBackwards&&(l.cursor=l.start),this.addRange(l,!0)}return}else c=c[0];this.rangeList&&this.toSingleRange(c),this.setSelectionRange(c,c.isBackwards)},a.prototype.isEqual=function(c){if((c.length||this.rangeCount)&&c.length!=this.rangeCount)return!1;if(!c.length||!this.ranges)return this.getRange().isEqual(c);for(var s=this.ranges.length;s--;)if(!this.ranges[s].isEqual(c[s]))return!1;return!0},a}();f.prototype.setSelectionAnchor=f.prototype.setAnchor,f.prototype.getSelectionAnchor=f.prototype.getAnchor,f.prototype.setSelectionRange=f.prototype.setRange,g.implement(f.prototype,w),i.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,i,m){var g=e("./lib/report_error").reportError,v=2e3,w=function(){function h(f){this.splitRegex,this.states=f,this.regExps={},this.matchMappings={};for(var a in this.states){for(var c=this.states[a],s=[],l=0,o=this.matchMappings[a]={defaultToken:"text"},u="g",p=[],y=0;y<c.length;y++){var x=c[y];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),x.unicode&&u.indexOf("u")===-1&&(u+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var R=x.regex,A=new RegExp("(?:("+R+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||A==1?x.token=x.token[0]:A-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:A-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(A>1?x.onMatch=this.$applyToken:x.onMatch=x.token),A>1&&(/\\\d/.test(x.regex)?R=x.regex.replace(/\\([0-9]+)/g,function(k,b){return"\\"+(parseInt(b,10)+l+1)}):(A=1,R=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&p.push(x)),o[l]=y,l+=A,s.push(R),x.onMatch||(x.onMatch=null)}}s.length||(o[0]=0,s.push("$")),p.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[a]=new RegExp("("+s.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(f){v=f|0},h.prototype.$applyToken=function(f){var a=this.splitRegex.exec(f).slice(1),c=this.token.apply(this,a);if(typeof c=="string")return[{type:c,value:f}];for(var s=[],l=0,o=c.length;l<o;l++)a[l]&&(s[s.length]={type:c[l],value:a[l]});return s},h.prototype.$arrayTokens=function(f){if(!f)return[];var a=this.splitRegex.exec(f);if(!a)return"text";for(var c=[],s=this.tokenArray,l=0,o=s.length;l<o;l++)a[l+1]&&(c[c.length]={type:s[l],value:a[l+1]});return c},h.prototype.removeCapturingGroups=function(f){var a=f.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(c,s){return s?"(?:":c});return a},h.prototype.createSplitterRegexp=function(f,a){if(f.indexOf("(?=")!=-1){var c=0,s=!1,l={};f.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,p,y,x,R){return s?s=x!="]":x?s=!0:y?(c==l.stack&&(l.end=R+1,l.stack=-1),c--):p&&(c++,p.length!=1&&(l.stack=c,l.start=R)),o}),l.end!=null&&/^\)*$/.test(f.substr(l.end))&&(f=f.substring(0,l.start)+f.substr(l.end))}return f.charAt(0)!="^"&&(f="^"+f),f.charAt(f.length-1)!="$"&&(f+="$"),new RegExp(f,(a||"").replace("g",""))},h.prototype.getLineTokens=function(f,a){if(a&&typeof a!="string"){var c=a.slice(0);a=c[0],a==="#tmp"&&(c.shift(),a=c.shift())}else var c=[];var s=a||"start",l=this.states[s];l||(s="start",l=this.states[s]);var o=this.matchMappings[s],u=this.regExps[s];u.lastIndex=0;for(var p,y=[],x=0,R=0,A={type:null,value:""};p=u.exec(f);){var k=o.defaultToken,b=null,M=p[0],E=u.lastIndex;if(E-M.length>x){var O=f.substring(x,E-M.length);A.type==k?A.value+=O:(A.type&&y.push(A),A={type:k,value:O})}for(var T=0;T<p.length-2;T++)if(p[T+1]!==void 0){b=l[o[T]],b.onMatch?k=b.onMatch(M,s,c,f):k=b.token,b.next&&(typeof b.next=="string"?s=b.next:s=b.next(s,c),l=this.states[s],l||(this.reportError("state doesn't exist",s),s="start",l=this.states[s]),o=this.matchMappings[s],x=E,u=this.regExps[s],u.lastIndex=E),b.consumeLineEnd&&(x=E);break}if(M){if(typeof k=="string")(!b||b.merge!==!1)&&A.type===k?A.value+=M:(A.type&&y.push(A),A={type:k,value:M});else if(k){A.type&&y.push(A),A={type:null,value:""};for(var T=0;T<k.length;T++)y.push(k[T])}}if(x==f.length)break;if(x=E,R++>v){for(R>2*f.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:f});x<f.length;)A.type&&y.push(A),A={value:f.substring(x,x+=500),type:"overflow"};s="start",c=[];break}}return A.type&&y.push(A),c.length>1&&c[0]!==s&&c.unshift("#tmp",s),{tokens:y,state:c.length?c:s}},h}();w.prototype.reportError=g,i.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){var g=e("../lib/deep_copy").deepCopy,v;v=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(f,a){if(!a){for(var c in f)this.$rules[c]=f[c];return}for(var c in f){for(var s=f[c],l=0;l<s.length;l++){var o=s[l];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(a)!==0&&(o.next=a+o.next),o.nextState&&o.nextState.indexOf(a)!==0&&(o.nextState=a+o.nextState))}this.$rules[a+c]=s}},this.getRules=function(){return this.$rules},this.embedRules=function(f,a,c,s,l){var o=typeof f=="function"?new f().getRules():f;if(s)for(var u=0;u<s.length;u++)s[u]=a+s[u];else{s=[];for(var p in o)s.push(a+p)}if(this.addRules(o,a),c)for(var y=Array.prototype[l?"push":"unshift"],u=0;u<s.length;u++)y.apply(this.$rules[s[u]],g(c));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var w=function(f,a){return(f!="start"||a.length)&&a.unshift(this.nextState,f),this.nextState},h=function(f,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var f=0,a=this.$rules;function c(s){var l=a[s];l.processed=!0;for(var o=0;o<l.length;o++){var u=l[o],p=null;Array.isArray(u)&&(p=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var y=u.next||u.push;if(y&&Array.isArray(y)){var x=u.stateName;x||(x=u.token,typeof x!="string"&&(x=x[0]||""),a[x]&&(x+=f++)),a[x]=y,u.next=x,c(x)}else y=="pop"&&(u.next=h);if(u.push&&(u.nextState=u.next||u.push,u.next=w,delete u.push),u.rules)for(var R in u.rules)a[R]?a[R].push&&a[R].push.apply(a[R],u.rules[R]):a[R]=u.rules[R];var A=typeof u=="string"?u:u.include;if(A&&(A==="$self"&&(A="start"),Array.isArray(A)?p=A.map(function(b){return a[b]}):p=a[A]),p){var k=[o,1].concat(p);u.noEscape&&(k=k.filter(function(b){return!b.next})),l.splice.apply(l,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(a).forEach(c,this)},this.createKeywordMapper=function(f,a,c,s){var l=Object.create(null);return this.$keywordList=[],Object.keys(f).forEach(function(o){for(var u=f[o],p=u.split(s||"|"),y=p.length;y--;){var x=p[y];this.$keywordList.push(x),c&&(x=x.toLowerCase()),l[x]=o}},this),f=null,c?function(o){return l[o.toLowerCase()]||a}:function(o){return l[o]||a}},this.getKeywords=function(){return this.$keywords}}).call(v.prototype),i.TextHighlightRules=v}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,i,m){var g;g=function(){this.$behaviours={}},(function(){this.add=function(v,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[v]:this.$behaviours[v]={}}this.$behaviours[v][w]=h},this.addBehaviours=function(v){for(var w in v)for(var h in v[w])this.add(w,h,v[w][h])},this.remove=function(v){this.$behaviours&&this.$behaviours[v]&&delete this.$behaviours[v]},this.inherit=function(v,w){if(typeof v=="function")var h=new v().getBehaviours(w);else var h=v.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(v){if(v){for(var w={},h=0;h<v.length;h++)this.$behaviours[v[h]]&&(w[v[h]]=this.$behaviours[v[h]]);return w}else return this.$behaviours}}).call(g.prototype),i.Behaviour=g}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,i,m){var g=e("./range").Range,v=function(){function w(h,f,a){this.$session=h,this.$row=f,this.$rowTokens=h.getTokens(f);var c=h.getTokenAt(f,a);this.$tokenIndex=c?c.index:-1}return w.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]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,f=this.$tokenIndex,a=h[f].start;if(a!==void 0)return a;for(a=0;f>0;)f-=1,a+=h[f].value.length;return a},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],f=this.getCurrentTokenColumn();return new g(this.$row,f,this.$row,f+h.value.length)},w}();i.TokenIterator=v}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,i,m){var g=e("../../lib/oop"),v=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),f=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c,s={},l={'"':'"',"'":"'"},o=function(y){var x=-1;if(y.multiSelect&&(x=y.selection.index,s.rangeCount!=y.multiSelect.rangeCount&&(s={rangeCount:y.multiSelect.rangeCount})),s[x])return c=s[x];c=s[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(y,x,R,A){var k=y.end.row-y.start.row;return{text:R+x+A,selection:[0,y.start.column+1,k,y.end.column+(k?0:1)]}},p;p=function(y){y=y||{},this.add("braces","insertion",function(x,R,A,k,b){var M=A.getCursorPosition(),E=k.doc.getLine(M.row);if(b=="{"){o(A);var O=A.getSelectionRange(),T=k.doc.getTextRange(O),N=k.getTokenAt(M.row,M.column);if(T!==""&&T!=="{"&&A.getWrapBehavioursEnabled())return u(O,T,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var $=[/tag\-(?:open|name)/,/attribute\-name/];return $.some(function(W){return W.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[M.column-N.start-1]!=="$"?void 0:(p.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]})}else if(p.isSaneInsertion(A,k))return/[\]\}\)]/.test(E[M.column])||A.inMultiSelectMode||y.braces?(p.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(A,k,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){o(A);var _=E.substring(M.column,M.column+1);if(_=="}"){var S=k.$findOpeningBracket("}",{column:M.column+1,row:M.row});if(S!==null&&p.isAutoInsertedClosing(M,E,b))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
180
+ `||b==`\r
181
+ `){o(A);var L="";p.isMaybeInsertedClosing(M,E)&&(L=h.stringRepeat("}",c.maybeInsertedBrackets),p.clearMaybeInsertedClosing());var _=E.substring(M.column,M.column+1);if(_==="}"){var I=k.findMatchingBracket({row:M.row,column:M.column+1},"}");if(!I)return null;var F=this.$getIndent(k.getLine(I.row))}else if(L)var F=this.$getIndent(E);else{p.clearMaybeInsertedClosing();return}var H=F+k.getTabString();return{text:`
182
+ `+H+`
183
+ `+F+L,selection:[1,H.length,1,H.length]}}else p.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,R,A,k,b){var M=k.doc.getTextRange(b);if(!b.isMultiLine()&&M=="{"){o(A);var E=k.doc.getLine(b.start.row),O=E.substring(b.end.column,b.end.column+1);if(O=="}")return b.end.column++,b;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,R,A,k,b){if(b=="("){o(A);var M=A.getSelectionRange(),E=k.doc.getTextRange(M);if(E!==""&&A.getWrapBehavioursEnabled())return u(M,E,"(",")");if(p.isSaneInsertion(A,k))return p.recordAutoInsert(A,k,")"),{text:"()",selection:[1,1]}}else if(b==")"){o(A);var O=A.getCursorPosition(),T=k.doc.getLine(O.row),N=T.substring(O.column,O.column+1);if(N==")"){var $=k.$findOpeningBracket(")",{column:O.column+1,row:O.row});if($!==null&&p.isAutoInsertedClosing(O,T,b))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,R,A,k,b){var M=k.doc.getTextRange(b);if(!b.isMultiLine()&&M=="("){o(A);var E=k.doc.getLine(b.start.row),O=E.substring(b.start.column+1,b.start.column+2);if(O==")")return b.end.column++,b}}),this.add("brackets","insertion",function(x,R,A,k,b){if(b=="["){o(A);var M=A.getSelectionRange(),E=k.doc.getTextRange(M);if(E!==""&&A.getWrapBehavioursEnabled())return u(M,E,"[","]");if(p.isSaneInsertion(A,k))return p.recordAutoInsert(A,k,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){o(A);var O=A.getCursorPosition(),T=k.doc.getLine(O.row),N=T.substring(O.column,O.column+1);if(N=="]"){var $=k.$findOpeningBracket("]",{column:O.column+1,row:O.row});if($!==null&&p.isAutoInsertedClosing(O,T,b))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,R,A,k,b){var M=k.doc.getTextRange(b);if(!b.isMultiLine()&&M=="["){o(A);var E=k.doc.getLine(b.start.row),O=E.substring(b.start.column+1,b.start.column+2);if(O=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(x,R,A,k,b){var M=k.$mode.$quotes||l;if(b.length==1&&M[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;o(A);var E=b,O=A.getSelectionRange(),T=k.doc.getTextRange(O);if(T!==""&&(T.length!=1||!M[T])&&A.getWrapBehavioursEnabled())return u(O,T,E,E);if(!T){var N=A.getCursorPosition(),$=k.doc.getLine(N.row),_=$.substring(N.column-1,N.column),S=$.substring(N.column,N.column+1),L=k.getTokenAt(N.row,N.column),I=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&L&&/escape/.test(L.type))return null;var F=L&&/string|escape/.test(L.type),H=!I||/string|escape/.test(I.type),W;if(S==E)W=F!==H,W&&/string\.end/.test(I.type)&&(W=!1);else{if(F&&!H||F&&H)return null;var V=k.$mode.tokenRe;V.lastIndex=0;var q=V.test(_);V.lastIndex=0;var X=V.test(S),G=k.$mode.$pairQuotesAfter,Z=G&&G[E]&&G[E].test(_);if(!Z&&q||X||S&&!/[\s;,.})\]\\]/.test(S))return null;var ie=$[N.column-2];if(_==E&&(ie==E||V.test(ie)))return null;W=!0}return{text:W?E+E:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,R,A,k,b){var M=k.$mode.$quotes||l,E=k.doc.getTextRange(b);if(!b.isMultiLine()&&M.hasOwnProperty(E)){o(A);var O=k.doc.getLine(b.start.row),T=O.substring(b.start.column+1,b.start.column+2);if(T==E)return b.end.column++,b}}),y.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,R,A,k,b){if(x==="doc-start"&&(b===`
184
+ `||b===`\r
185
+ `)&&A.selection.isEmpty()){var M=A.getCursorPosition();if(M.column===0)return;for(var E=k.doc.getLine(M.row),O=k.doc.getLine(M.row+1),T=k.getTokens(M.row),N=0,$=0;$<T.length;$++){N+=T[$].value.length;var _=T[$];if(N>=M.column){if(N===M.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var S=T[$+1];if(!S||!/\.doc/.test(S.type))return}}var L=M.column-(N-_.value.length),I=_.value.indexOf("*/"),F=_.value.indexOf("/**",I>-1?I+2:0);if(F!==-1&&L>F&&L<F+3||I!==-1&&F!==-1&&L>=I&&L<=F||!/\.doc/.test(_.type))return;break}}var H=this.$getIndent(E);if(/\s*\*/.test(O))return/^\s*\*/.test(E)?{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(E.substring(0,M.column)))return{text:b+H+" * "+b+" "+H+"*/",selection:[1,4+H.length,1,4+H.length]}}})},p.isSaneInsertion=function(y,x){var R=y.getCursorPosition(),A=new w(x,R.row,R.column);if(!this.$matchTokenType(A.getCurrentToken()||"text",f)){if(/[)}\]]/.test(y.session.getLine(R.row)[R.column]))return!0;var k=new w(x,R.row,R.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",f))return!1}return A.stepForward(),A.getCurrentTokenRow()!==R.row||this.$matchTokenType(A.getCurrentToken()||"text",a)},p.$matchTokenType=function(y,x){return x.indexOf(y.type||y)>-1},p.recordAutoInsert=function(y,x,R){var A=y.getCursorPosition(),k=x.doc.getLine(A.row);this.isAutoInsertedClosing(A,k,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=A.row,c.autoInsertedLineEnd=R+k.substr(A.column),c.autoInsertedBrackets++},p.recordMaybeInsert=function(y,x,R){var A=y.getCursorPosition(),k=x.doc.getLine(A.row);this.isMaybeInsertedClosing(A,k)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=A.row,c.maybeInsertedLineStart=k.substr(0,A.column)+R,c.maybeInsertedLineEnd=k.substr(A.column),c.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(y,x,R){return c.autoInsertedBrackets>0&&y.row===c.autoInsertedRow&&R===c.autoInsertedLineEnd[0]&&x.substr(y.column)===c.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(y,x){return c.maybeInsertedBrackets>0&&y.row===c.maybeInsertedRow&&x.substr(y.column)===c.maybeInsertedLineEnd&&x.substr(0,y.column)==c.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){c.autoInsertedLineEnd=c.autoInsertedLineEnd.substr(1),c.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){c&&(c.maybeInsertedBrackets=0,c.maybeInsertedRow=-1)},g.inherits(p,v),i.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(e,i,m){for(var g=[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],v=0,w=[],h=0;h<g.length;h+=2)w.push(v+=g[h]),g[h+1]&&w.push(45,v+=g[h+1]);i.wordChars=String.fromCharCode.apply(null,w)}),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(e,i,m){var g=e("../config"),v=e("../tokenizer").Tokenizer,w=e("./text_highlight_rules").TextHighlightRules,h=e("./behaviour/cstyle").CstyleBehaviour,f=e("../unicode"),a=e("../lib/lang"),c=e("../token_iterator").TokenIterator,s=e("../range").Range,l;l=function(){this.HighlightRules=w},(function(){this.$defaultBehaviour=new h,this.tokenRe=new RegExp("^["+f.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+f.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new v(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,p,y){var x=u.doc,R=!0,A=!0,k=1/0,b=u.getTabSize(),M=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(a.escapeRegExp).join("|"),O=this.lineCommentStart[0];else var E=a.escapeRegExp(this.lineCommentStart),O=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),M=u.getUseSoftTabs();var T=function(W,V){var q=W.match(E);if(q){var X=q[1].length,G=q[0].length;!S(W,X,G)&&q[0][G-1]==" "&&G--,x.removeInLine(V,X,G)}},N=O+" ",$=function(W,V){(!R||/\S/.test(W))&&(S(W,k,k)?x.insertInLine({row:V,column:k},N):x.insertInLine({row:V,column:k},O))},_=function(W,V){return E.test(W)},S=function(W,V,q){for(var X=0;V--&&W.charAt(V)==" ";)X++;if(X%b!=0)return!1;for(var X=0;W.charAt(q++)==" ";)X++;return b>2?X%b!=b-1:X%b==0}}else{if(!this.blockComment)return!1;var O=this.blockComment.start,L=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+a.escapeRegExp(O)+")"),I=new RegExp("(?:"+a.escapeRegExp(L)+")\\s*$"),$=function(Z,ie){_(Z,ie)||(!R||/\S/.test(Z))&&(x.insertInLine({row:ie,column:Z.length},L),x.insertInLine({row:ie,column:k},O))},T=function(Z,ie){var J;(J=Z.match(I))&&x.removeInLine(ie,Z.length-J[0].length,Z.length),(J=Z.match(E))&&x.removeInLine(ie,J[1].length,J[0].length)},_=function(Z,ie){if(E.test(Z))return!0;for(var J=u.getTokens(ie),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(W){for(var V=p;V<=y;V++)W(x.getLine(V),V)}var H=1/0;F(function(W,V){var q=W.search(/\S/);q!==-1?(q<k&&(k=q),A&&!_(W,V)&&(A=!1)):H>W.length&&(H=W.length)}),k==1/0&&(k=H,R=!1,A=!1),M&&k%b!=0&&(k=Math.floor(k/b)*b),F(A?T:$)},this.toggleBlockComment=function(o,u,p,y){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var R=new c(u,y.row,y.column),A=R.getCurrentToken();u.selection;var k=u.selection.toOrientedRange(),b,M;if(A&&/comment/.test(A.type)){for(var E,O;A&&/comment/.test(A.type);){var T=A.value.indexOf(x.start);if(T!=-1){var N=R.getCurrentTokenRow(),$=R.getCurrentTokenColumn()+T;E=new s(N,$,N,$+x.start.length);break}A=R.stepBackward()}for(var R=new c(u,y.row,y.column),A=R.getCurrentToken();A&&/comment/.test(A.type);){var T=A.value.indexOf(x.end);if(T!=-1){var N=R.getCurrentTokenRow(),$=R.getCurrentTokenColumn()+T;O=new s(N,$,N,$+x.end.length);break}A=R.stepForward()}O&&u.remove(O),E&&(u.remove(E),b=E.start.row,M=-x.start.length)}else M=x.start.length,b=p.start.row,u.insert(p.end,x.end),u.insert(p.start,x.start);k.start.row==b&&(k.start.column+=M),k.end.row==b&&(k.end.column+=M),u.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,u,p){return this.$getIndent(u)},this.checkOutdent=function(o,u,p){return!1},this.autoOutdent=function(o,u,p){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var p=o[u],y=p.prototype.$id,x=g.$modes[y];x||(g.$modes[y]=x=new p),g.$modes[u]||(g.$modes[u]=x),this.$embeds.push(u),this.$modes[u]=x}for(var R=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],A=function(M){(function(E){var O=R[M],T=E[O];E[R[M]]=function(){return this.$delegator(O,arguments,T)}})(k)},k=this,u=0;u<R.length;u++)A(u)},this.$delegator=function(o,u,p){var y=u[0]||"start";if(typeof y!="string"){if(Array.isArray(y[2])){var x=y[2][y[2].length-1],R=this.$modes[x];if(R)return R[o].apply(R,[y[1]].concat([].slice.call(u,1)))}y=y[0]||"start"}for(var A=0;A<this.$embeds.length;A++)if(this.$modes[this.$embeds[A]]){var k=y.split(this.$embeds[A]);if(!k[0]&&k[1]){u[0]=k[1];var R=this.$modes[this.$embeds[A]];return R[o].apply(R,u)}}var b=p.apply(this,u);return p?b:void 0},this.transformAction=function(o,u,p,y,x){if(this.$behaviour){var R=this.$behaviour.getBehaviours();for(var A in R)if(R[A][u]){var k=R[A][u].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,p=[];for(var y in u)for(var x=u[y],R=0,A=x.length;R<A;R++)if(typeof x[R].token=="string")/keyword|support|storage/.test(x[R].token)&&p.push(x[R].regex);else if(typeof x[R].token=="object"){for(var k=0,b=x[R].token.length;k<b;k++)if(/keyword|support|storage/.test(x[R].token[k])){var y=x[R].regex.match(/\(.+?\)/g)[k];p.push(y.substr(1,y.length-2))}}this.completionKeywords=p}return o?p.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,p,y){var x=this.$keywordList||this.$createKeywordList();return x.map(function(R){return{name:R,value:R,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(l.prototype),i.Mode=l}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,i,m){var g=e("./lib/dom"),v=function(){function w(h){this.session=h,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 w.prototype.getRowLength=function(h){var f;return this.lineWidgets?f=this.lineWidgets[h]&&this.lineWidgets[h].rowCount||0:f=0,!this.$useWrapMode||!this.$wrapData[h]?1+f:this.$wrapData[h].length+1+f},w.prototype.$getWidgetScreenLength=function(){var h=0;return this.lineWidgets.forEach(function(f){f&&f.rowCount&&!f.hidden&&(h+=f.rowCount)}),h},w.prototype.$onChangeEditor=function(h){this.attach(h.editor)},w.prototype.attach=function(h){h&&h.widgetManager&&h.widgetManager!=this&&h.widgetManager.detach(),this.editor!=h&&(this.detach(),this.editor=h,h&&(h.widgetManager=this,h.renderer.on("beforeRender",this.measureWidgets),h.renderer.on("afterRender",this.renderWidgets)))},w.prototype.detach=function(h){var f=this.editor;if(f){this.editor=null,f.widgetManager=null,f.renderer.off("beforeRender",this.measureWidgets),f.renderer.off("afterRender",this.renderWidgets);var a=this.session.lineWidgets;a&&a.forEach(function(c){c&&c.el&&c.el.parentNode&&(c._inDocument=!1,c.el.parentNode.removeChild(c.el))})}},w.prototype.updateOnFold=function(h,f){var a=f.lineWidgets;if(!(!a||!h.action)){for(var c=h.data,s=c.start.row,l=c.end.row,o=h.action=="add",u=s+1;u<l;u++)a[u]&&(a[u].hidden=o);a[l]&&(o?a[s]?a[l].hidden=o:a[s]=a[l]:(a[s]==a[l]&&(a[s]=void 0),a[l].hidden=o))}},w.prototype.updateOnChange=function(h){var f=this.session.lineWidgets;if(f){var a=h.start.row,c=h.end.row-a;if(c!==0)if(h.action=="remove"){var s=f.splice(a+1,c);!f[a]&&s[s.length-1]&&(f[a]=s.pop()),s.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var l=new Array(c);f[a]&&f[a].column!=null&&h.start.column>f[a].column&&a++,l.unshift(a,0),f.splice.apply(f,l),this.$updateRows()}}},w.prototype.$updateRows=function(){var h=this.session.lineWidgets;if(h){var f=!0;h.forEach(function(a,c){if(a)for(f=!1,a.row=c;a.$oldWidget;)a.$oldWidget.row=c,a=a.$oldWidget}),f&&(this.session.lineWidgets=null)}},w.prototype.$registerLineWidget=function(h){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var f=this.session.lineWidgets[h.row];return f&&(h.$oldWidget=f,f.el&&f.el.parentNode&&(f.el.parentNode.removeChild(f.el),f._inDocument=!1)),this.session.lineWidgets[h.row]=h,h},w.prototype.addLineWidget=function(h){if(this.$registerLineWidget(h),h.session=this.session,!this.editor)return h;var f=this.editor.renderer;h.html&&!h.el&&(h.el=g.createElement("div"),h.el.innerHTML=h.html),h.text&&!h.el&&(h.el=g.createElement("div"),h.el.textContent=h.text),h.el&&(g.addCssClass(h.el,"ace_lineWidgetContainer"),h.className&&g.addCssClass(h.el,h.className),h.el.style.position="absolute",h.el.style.zIndex="5",f.container.appendChild(h.el),h._inDocument=!0,h.coverGutter||(h.el.style.zIndex="3"),h.pixelHeight==null&&(h.pixelHeight=h.el.offsetHeight)),h.rowCount==null&&(h.rowCount=h.pixelHeight/f.layerConfig.lineHeight);var a=this.session.getFoldAt(h.row,0);if(h.$fold=a,a){var c=this.session.lineWidgets;h.row==a.end.row&&!c[a.start.row]?c[a.start.row]=h:h.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows(),this.renderWidgets(null,f),this.onWidgetChanged(h),h},w.prototype.removeLineWidget=function(h){if(h._inDocument=!1,h.session=null,h.el&&h.el.parentNode&&h.el.parentNode.removeChild(h.el),h.editor&&h.editor.destroy)try{h.editor.destroy()}catch{}if(this.session.lineWidgets){var f=this.session.lineWidgets[h.row];if(f==h)this.session.lineWidgets[h.row]=h.$oldWidget,h.$oldWidget&&this.onWidgetChanged(h.$oldWidget);else for(;f;){if(f.$oldWidget==h){f.$oldWidget=h.$oldWidget;break}f=f.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:h.row}}}),this.$updateRows()},w.prototype.getWidgetsAtRow=function(h){for(var f=this.session.lineWidgets,a=f&&f[h],c=[];a;)c.push(a),a=a.$oldWidget;return c},w.prototype.onWidgetChanged=function(h){this.session._changedWidgets.push(h),this.editor&&this.editor.renderer.updateFull()},w.prototype.measureWidgets=function(h,f){var a=this.session._changedWidgets,c=f.layerConfig;if(!(!a||!a.length)){for(var s=1/0,l=0;l<a.length;l++){var o=a[l];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,f.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/c.characterWidth));var u=o.h/c.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<s&&(s=o.row))}}s!=1/0&&(this.session._emit("changeFold",{data:{start:{row:s}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},w.prototype.renderWidgets=function(h,f){var a=f.layerConfig,c=this.session.lineWidgets;if(c){for(var s=Math.min(this.firstRow,a.firstRow),l=Math.max(this.lastRow,a.lastRow,c.length);s>0&&!c[s];)s--;this.firstRow=a.firstRow,this.lastRow=a.lastRow,f.$cursorLayer.config=a;for(var o=s;o<=l;o++){var u=c[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,f.container.appendChild(u.el));var p=f.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(p+=a.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=p-a.offset+"px";var y=u.coverGutter?0:f.gutterWidth;u.fixedWidth||(y-=f.scrollLeft),u.el.style.left=y+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=a.width+2*a.padding+"px"),u.fixedWidth?u.el.style.right=f.scrollBar.getWidth()+"px":u.el.style.right=""}}}},w}();i.LineWidgets=v}),ace.define("ace/apply_delta",["require","exports","module"],function(e,i,m){i.applyDelta=function(g,v,w){var h=v.start.row,f=v.start.column,a=g[h]||"";switch(v.action){case"insert":var c=v.lines;if(c.length===1)g[h]=a.substring(0,f)+v.lines[0]+a.substring(f);else{var s=[h,1].concat(v.lines);g.splice.apply(g,s),g[h]=a.substring(0,f)+g[h],g[h+v.lines.length-1]+=a.substring(f)}break;case"remove":var l=v.end.column,o=v.end.row;h===o?g[h]=a.substring(0,f)+a.substring(l):g.splice(h,o-h+1,a.substring(0,f)+g[o].substring(l));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var g=e("./lib/oop"),v=e("./lib/event_emitter").EventEmitter,w=function(){function a(c,s,l){this.$onChange=this.onChange.bind(this),this.attach(c),typeof s!="number"?this.setPosition(s.row,s.column):this.setPosition(s,l)}return a.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},a.prototype.getDocument=function(){return this.document},a.prototype.onChange=function(c){if(!(c.start.row==c.end.row&&c.start.row!=this.row)&&!(c.start.row>this.row)){var s=f(c,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},a.prototype.setPosition=function(c,s,l){var o;if(l?o={row:c,column:s}:o=this.$clipPositionToDocument(c,s),!(this.row==o.row&&this.column==o.column)){var u={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:u,value:o})}},a.prototype.detach=function(){this.document.off("change",this.$onChange)},a.prototype.attach=function(c){this.document=c||this.document,this.document.on("change",this.$onChange)},a.prototype.$clipPositionToDocument=function(c,s){var l={};return c>=this.document.getLength()?(l.row=Math.max(0,this.document.getLength()-1),l.column=this.document.getLine(l.row).length):c<0?(l.row=0,l.column=0):(l.row=c,l.column=Math.min(this.document.getLine(l.row).length,Math.max(0,s))),s<0&&(l.column=0),l},a}();w.prototype.$insertRight=!1,g.implement(w.prototype,v);function h(a,c,s){var l=s?a.column<=c.column:a.column<c.column;return a.row<c.row||a.row==c.row&&l}function f(a,c,s){var l=a.action=="insert",o=(l?1:-1)*(a.end.row-a.start.row),u=(l?1:-1)*(a.end.column-a.start.column),p=a.start,y=l?p:a.end;return h(c,p,s)?{row:c.row,column:c.column}:h(y,c,!s)?{row:c.row+o,column:c.column+(c.row==y.row?u:0)}:{row:p.row,column:p.column}}i.Anchor=w}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,i,m){var g=e("./lib/oop"),v=e("./apply_delta").applyDelta,w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,f=e("./anchor").Anchor,a=function(){function c(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)}return c.prototype.setValue=function(s){var l=this.getLength()-1;this.remove(new h(0,0,l,this.getLine(l).length)),this.insert({row:0,column:0},s||"")},c.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},c.prototype.createAnchor=function(s,l){return new f(this,s,l)},c.prototype.$detectNewLine=function(s){var l=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=l?l[1]:`
186
+ `,this._signal("changeNewLineMode")},c.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
187
+ `;case"unix":return`
188
+ `;default:return this.$autoNewLine||`
189
+ `}},c.prototype.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},c.prototype.getNewLineMode=function(){return this.$newLineMode},c.prototype.isNewLine=function(s){return s==`\r
190
+ `||s=="\r"||s==`
191
+ `},c.prototype.getLine=function(s){return this.$lines[s]||""},c.prototype.getLines=function(s,l){return this.$lines.slice(s,l+1)},c.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},c.prototype.getLength=function(){return this.$lines.length},c.prototype.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},c.prototype.getLinesForRange=function(s){var l;if(s.start.row===s.end.row)l=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{l=this.getLines(s.start.row,s.end.row),l[0]=(l[0]||"").substring(s.start.column);var o=l.length-1;s.end.row-s.start.row==o&&(l[o]=l[o].substring(0,s.end.column))}return l},c.prototype.insertLines=function(s,l){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,l)},c.prototype.removeLines=function(s,l){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,l)},c.prototype.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},c.prototype.insert=function(s,l){return this.getLength()<=1&&this.$detectNewLine(l),this.insertMergedLines(s,this.$split(l))},c.prototype.insertInLine=function(s,l){var o=this.clippedPos(s.row,s.column),u=this.pos(s.row,s.column+l.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[l]},!0),this.clonePos(u)},c.prototype.clippedPos=function(s,l){var o=this.getLength();s===void 0?s=o:s<0?s=0:s>=o&&(s=o-1,l=void 0);var u=this.getLine(s);return l==null&&(l=u.length),l=Math.min(Math.max(l,0),u.length),{row:s,column:l}},c.prototype.clonePos=function(s){return{row:s.row,column:s.column}},c.prototype.pos=function(s,l){return{row:s,column:l}},c.prototype.$clipPosition=function(s){var l=this.getLength();return s.row>=l?(s.row=Math.max(0,l-1),s.column=this.getLine(l-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},c.prototype.insertFullLines=function(s,l){s=Math.min(Math.max(s,0),this.getLength());var o=0;s<this.getLength()?(l=l.concat([""]),o=0):(l=[""].concat(l),s--,o=this.$lines[s].length),this.insertMergedLines({row:s,column:o},l)},c.prototype.insertMergedLines=function(s,l){var o=this.clippedPos(s.row,s.column),u={row:o.row+l.length-1,column:(l.length==1?o.column:0)+l[l.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:l}),this.clonePos(u)},c.prototype.remove=function(s){var l=this.clippedPos(s.start.row,s.start.column),o=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:l,end:o,action:"remove",lines:this.getLinesForRange({start:l,end:o})}),this.clonePos(l)},c.prototype.removeInLine=function(s,l,o){var u=this.clippedPos(s,l),p=this.clippedPos(s,o);return this.applyDelta({start:u,end:p,action:"remove",lines:this.getLinesForRange({start:u,end:p})},!0),this.clonePos(u)},c.prototype.removeFullLines=function(s,l){s=Math.min(Math.max(0,s),this.getLength()-1),l=Math.min(Math.max(0,l),this.getLength()-1);var o=l==this.getLength()-1&&s>0,u=l<this.getLength()-1,p=o?s-1:s,y=o?this.getLine(p).length:0,x=u?l+1:l,R=u?0:this.getLine(x).length,A=new h(p,y,x,R),k=this.$lines.slice(s,l+1);return this.applyDelta({start:A.start,end:A.end,action:"remove",lines:this.getLinesForRange(A)}),k},c.prototype.removeNewLine=function(s){s<this.getLength()-1&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},c.prototype.replace=function(s,l){if(s instanceof h||(s=h.fromPoints(s.start,s.end)),l.length===0&&s.isEmpty())return s.start;if(l==this.getTextRange(s))return s.end;this.remove(s);var o;return l?o=this.insert(s.start,l):o=s.start,o},c.prototype.applyDeltas=function(s){for(var l=0;l<s.length;l++)this.applyDelta(s[l])},c.prototype.revertDeltas=function(s){for(var l=s.length-1;l>=0;l--)this.revertDelta(s[l])},c.prototype.applyDelta=function(s,l){var o=s.action=="insert";(o?s.lines.length<=1&&!s.lines[0]:!h.comparePoints(s.start,s.end))||(o&&s.lines.length>2e4?this.$splitAndapplyLargeDelta(s,2e4):(v(this.$lines,s,l),this._signal("change",s)))},c.prototype.$safeApplyDelta=function(s){var l=this.$lines.length;(s.action=="remove"&&s.start.row<l&&s.end.row<l||s.action=="insert"&&s.start.row<=l)&&this.applyDelta(s)},c.prototype.$splitAndapplyLargeDelta=function(s,l){for(var o=s.lines,u=o.length-l+1,p=s.start.row,y=s.start.column,x=0,R=0;x<u;x=R){R+=l-1;var A=o.slice(x,R);A.push(""),this.applyDelta({start:this.pos(p+x,y),end:this.pos(p+R,y=0),action:s.action,lines:A},!0)}s.lines=o.slice(x),s.start.row=p+x,s.start.column=y,this.applyDelta(s,!0)},c.prototype.revertDelta=function(s){this.$safeApplyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},c.prototype.indexToPosition=function(s,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,p=l||0,y=o.length;p<y;p++)if(s-=o[p].length+u,s<0)return{row:p,column:s+o[p].length+u};return{row:y-1,column:s+o[y-1].length+u}},c.prototype.positionToIndex=function(s,l){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,p=0,y=Math.min(s.row,o.length),x=l||0;x<y;++x)p+=o[x].length+u;return p+s.column},c.prototype.$split=function(s){return s.split(/\r\n|\r|\n/)},c}();a.prototype.$autoNewLine="",a.prototype.$newLineMode="auto",g.implement(a.prototype,w),i.Document=a}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var g=e("./lib/oop"),v=e("./lib/event_emitter").EventEmitter,w=function(){function h(f,a){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=f;var c=this;this.$worker=function(){if(c.running){for(var s=new Date,l=c.currentLine,o=-1,u=c.doc,p=l;c.lines[l];)l++;var y=u.getLength(),x=0;for(c.running=!1;l<y;){c.$tokenizeRow(l),o=l;do l++;while(c.lines[l]);if(x++,x%5===0&&new Date-s>20){c.running=setTimeout(c.$worker,20);break}}c.currentLine=l,o==-1&&(o=l),p<=o&&c.fireUpdateEvent(p,o)}}}return h.prototype.setTokenizer=function(f){this.tokenizer=f,this.lines=[],this.states=[],this.start(0)},h.prototype.setDocument=function(f){this.doc=f,this.lines=[],this.states=[],this.stop()},h.prototype.fireUpdateEvent=function(f,a){var c={first:f,last:a};this._signal("update",{data:c})},h.prototype.start=function(f){this.currentLine=Math.min(f||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)},h.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},h.prototype.$updateOnChange=function(f){var a=f.start.row,c=f.end.row-a;if(c===0)this.lines[a]=null;else if(f.action=="remove")this.lines.splice(a,c+1,null),this.states.splice(a,c+1,null);else{var s=Array(c+1);s.unshift(a,1),this.lines.splice.apply(this.lines,s),this.states.splice.apply(this.states,s)}this.currentLine=Math.min(a,this.currentLine,this.doc.getLength()),this.stop()},h.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},h.prototype.getTokens=function(f){return this.lines[f]||this.$tokenizeRow(f)},h.prototype.getState=function(f){return this.currentLine==f&&this.$tokenizeRow(f),this.states[f]||"start"},h.prototype.$tokenizeRow=function(f){var a=this.doc.getLine(f),c=this.states[f-1],s=this.tokenizer.getLineTokens(a,c,f);return this.states[f]+""!=s.state+""?(this.states[f]=s.state,this.lines[f+1]=null,this.currentLine>f+1&&(this.currentLine=f+1)):this.currentLine==f&&(this.currentLine=f+1),this.lines[f]=s.tokens},h.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},h}();g.implement(w.prototype,v),i.BackgroundTokenizer=w}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,i,m){var g=e("./lib/lang"),v=e("./range").Range,w=function(){function h(f,a,c){c===void 0&&(c="text"),this.setRegexp(f),this.clazz=a,this.type=c}return h.prototype.setRegexp=function(f){this.regExp+""!=f+""&&(this.regExp=f,this.cache=[])},h.prototype.update=function(f,a,c,s){if(this.regExp)for(var l=s.firstRow,o=s.lastRow,u={},p=l;p<=o;p++){var y=this.cache[p];y==null&&(y=g.getMatchOffsets(c.getLine(p),this.regExp),y.length>this.MAX_RANGES&&(y=y.slice(0,this.MAX_RANGES)),y=y.map(function(k){return new v(p,k.offset,p,k.offset+k.length)}),this.cache[p]=y.length?y:"");for(var x=y.length;x--;){var R=y[x].toScreenRange(c),A=R.toString();u[A]||(u[A]=!0,a.drawSingleLineMarker(f,R,this.clazz,s))}}},h}();w.prototype.MAX_RANGES=500,i.SearchHighlight=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,i,m){var g=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(b){this.$session=b},k.prototype.add=function(b,M,E){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),M===!1||!this.lastDeltas){this.lastDeltas=[];var O=this.$undoStack.length;O>this.$undoDepth-1&&this.$undoStack.splice(0,O-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)}},k.prototype.addSelection=function(b,M){this.selections.push({value:b,rev:M||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(b,M){M==null&&(M=this.$rev+1);for(var E=this.$undoStack,O=E.length;O--;){var T=E[O][0];if(T.id<=b)break;T.id<M&&(T.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(b,M){for(var E=this.selections,O=E.length;O--;){var T=E[O];if(T.rev<b)return M&&(T=E[O+1]),T}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(b,M){M==null&&(M=this.$rev+1);for(var E=this.$undoStack,O=null,T=0,N=E.length;N--;){var $=E[N][0];if($.id<M&&!O&&(O=N+1),$.id<=b){T=N+1;break}}return E.slice(T,O)},k.prototype.getChangedRanges=function(b,M){M==null&&(M=this.$rev+1)},k.prototype.getChangedLines=function(b,M){M==null&&(M=this.$rev+1)},k.prototype.undo=function(b,M){this.lastDeltas=null;var E=this.$undoStack;if(v(E,E.length)){b||(b=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var O=E.pop(),T=null;return O&&(T=b.undoChanges(O,M),this.$redoStack.push(O),this.$syncRev()),this.$fromUndo=!1,T}},k.prototype.redo=function(b,M){if(this.lastDeltas=null,b||(b=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var E=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);A(this.$redoStack,E),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var O=this.$redoStack.pop(),T=null;return O&&(T=b.redoChanges(O,M),this.$undoStack.push(O),this.$syncRev()),this.$fromUndo=!1,T},k.prototype.$syncRev=function(){var b=this.$undoStack,M=b[b.length-1],E=M&&M[0].id||0;this.$redoStackBaseRev=E,this.$rev=E},k.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},k.prototype.$prettyPrint=function(b){return b?c(b):c(this.$undoStack)+`
192
+ ---
193
+ `+c(this.$redoStack)},k}();g.prototype.hasUndo=g.prototype.canUndo,g.prototype.hasRedo=g.prototype.canRedo,g.prototype.isClean=g.prototype.isAtBookmark,g.prototype.markClean=g.prototype.bookmark;function v(k,b){for(var M=b;M--;){var E=k[M];if(E&&!E[0].ignore){for(;M<b-1;){var O=o(k[M],k[M+1]);k[M]=O[0],k[M+1]=O[1],M++}return!0}}}var w=e("./range").Range,h=w.comparePoints;w.comparePoints;function f(k){return{row:k.row,column:k.column}}function a(k){return{start:f(k.start),end:f(k.end),action:k.action,lines:k.lines.slice()}}function c(k){if(k=k||this,Array.isArray(k))return k.map(c).join(`
194
+ `);var b="";return k.action?(b=k.action=="insert"?"+":"-",b+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?b=k.value.map(s).join(`
195
+ `):b=s(k.value)),k.start&&(b+=s(k)),(k.id||k.rev)&&(b+=" ("+(k.id||k.rev)+")"),b}function s(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function l(k,b){var M=k.action=="insert",E=b.action=="insert";if(M&&E)if(h(b.start,k.end)>=0)p(b,k,-1);else if(h(b.start,k.start)<=0)p(k,b,1);else return null;else if(M&&!E)if(h(b.start,k.end)>=0)p(b,k,-1);else if(h(b.end,k.start)<=0)p(k,b,-1);else return null;else if(!M&&E)if(h(b.start,k.start)>=0)p(b,k,1);else if(h(b.start,k.start)<=0)p(k,b,1);else return null;else if(!M&&!E)if(h(b.start,k.start)>=0)p(b,k,1);else if(h(b.end,k.start)<=0)p(k,b,-1);else return null;return[b,k]}function o(k,b){for(var M=k.length;M--;)for(var E=0;E<b.length;E++)if(!l(k[M],b[E])){for(;M<k.length;){for(;E--;)l(b[E],k[M]);E=b.length,M++}return[k,b]}return k.selectionBefore=b.selectionBefore=k.selectionAfter=b.selectionAfter=null,[b,k]}function u(k,b){var M=k.action=="insert",E=b.action=="insert";if(M&&E)h(k.start,b.start)<0?p(b,k,1):p(k,b,1);else if(M&&!E)h(k.start,b.end)>=0?p(k,b,-1):(h(k.start,b.start)<=0||p(k,w.fromPoints(b.start,k.start),-1),p(b,k,1));else if(!M&&E)h(b.start,k.end)>=0?p(b,k,-1):(h(b.start,k.start)<=0||p(b,w.fromPoints(k.start,b.start),-1),p(k,b,1));else if(!M&&!E)if(h(b.start,k.end)>=0)p(b,k,-1);else if(h(b.end,k.start)<=0)p(k,b,-1);else{var O,T;return h(k.start,b.start)<0&&(O=k,k=x(k,b.start)),h(k.end,b.end)>0&&(T=x(k,b.end)),y(b.end,k.start,k.end,-1),T&&!O&&(k.lines=T.lines,k.start=T.start,k.end=T.end,T=k),[b,O,T].filter(Boolean)}return[b,k]}function p(k,b,M){y(k.start,b.start,b.end,M),y(k.end,b.start,b.end,M)}function y(k,b,M,E){k.row==(E==1?b:M).row&&(k.column+=E*(M.column-b.column)),k.row+=E*(M.row-b.row)}function x(k,b){var M=k.lines,E=k.end;k.end=f(b);var O=k.end.row-k.start.row,T=M.splice(O,M.length),N=O?b.column:b.column-k.start.column;M.push(T[0].substring(0,N)),T[0]=T[0].substr(N);var $={start:f(b),end:E,lines:T,action:k.action};return $}function R(k,b){b=a(b);for(var M=k.length;M--;){for(var E=k[M],O=0;O<E.length;O++){var T=E[O],N=u(T,b);b=N[0],N.length!=2&&(N[2]?(E.splice(O+1,1,N[1],N[2]),O++):N[1]||(E.splice(O,1),O--))}E.length||k.splice(M,1)}return k}function A(k,b){for(var M=0;M<b.length;M++)for(var E=b[M],O=0;O<E.length;O++)R(k,E[O])}i.UndoManager=g}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,i,m){var g=e("../range").Range,v=function(){function w(h,f){this.foldData=h,Array.isArray(f)?this.folds=f:f=this.folds=[f];var a=f[f.length-1];this.range=new g(f[0].start.row,f[0].start.column,a.end.row,a.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(c){c.setFoldLine(this)},this)}return w.prototype.shiftRow=function(h){this.start.row+=h,this.end.row+=h,this.folds.forEach(function(f){f.start.row+=h,f.end.row+=h})},w.prototype.addFold=function(h){if(h.sameRow){if(h.start.row<this.startRow||h.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(h),this.folds.sort(function(f,a){return-f.range.compareEnd(a.start.row,a.start.column)}),this.range.compareEnd(h.start.row,h.start.column)>0?(this.end.row=h.end.row,this.end.column=h.end.column):this.range.compareStart(h.end.row,h.end.column)<0&&(this.start.row=h.start.row,this.start.column=h.start.column)}else if(h.start.row==this.end.row)this.folds.push(h),this.end.row=h.end.row,this.end.column=h.end.column;else if(h.end.row==this.start.row)this.folds.unshift(h),this.start.row=h.start.row,this.start.column=h.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");h.foldLine=this},w.prototype.containsRow=function(h){return h>=this.start.row&&h<=this.end.row},w.prototype.walk=function(h,f,a){var c=0,s=this.folds,l,o,u,p=!0;f==null&&(f=this.end.row,a=this.end.column);for(var y=0;y<s.length;y++){if(l=s[y],o=l.range.compareStart(f,a),o==-1){h(null,f,a,c,p);return}if(u=h(null,l.start.row,l.start.column,c,p),u=!u&&h(l.placeholder,l.start.row,l.start.column,c),u||o===0)return;p=!l.sameRow,c=l.end.column}h(null,f,a,c,p)},w.prototype.getNextFoldTo=function(h,f){for(var a,c,s=0;s<this.folds.length;s++){if(a=this.folds[s],c=a.range.compareEnd(h,f),c==-1)return{fold:a,kind:"after"};if(c===0)return{fold:a,kind:"inside"}}return null},w.prototype.addRemoveChars=function(h,f,a){var c=this.getNextFoldTo(h,f),s,l;if(c){if(s=c.fold,c.kind=="inside"&&s.start.column!=f&&s.start.row!=h)window.console&&window.console.log(h,f,s);else if(s.start.row==h){l=this.folds;var o=l.indexOf(s);for(o===0&&(this.start.column+=a),o;o<l.length;o++){if(s=l[o],s.start.column+=a,!s.sameRow)return;s.end.column+=a}this.end.column+=a}}},w.prototype.split=function(h,f){var a=this.getNextFoldTo(h,f);if(!a||a.kind=="inside")return null;var c=a.fold,s=this.folds,l=this.foldData,o=s.indexOf(c),u=s[o-1];this.end.row=u.end.row,this.end.column=u.end.column,s=s.splice(o,s.length-o);var p=new w(l,s);return l.splice(l.indexOf(this)+1,0,p),p},w.prototype.merge=function(h){for(var f=h.folds,a=0;a<f.length;a++)this.addFold(f[a]);var c=this.foldData;c.splice(c.indexOf(h),1)},w.prototype.toString=function(){var h=[this.range.toString()+": ["];return this.folds.forEach(function(f){h.push(" "+f.toString())}),h.push("]"),h.join(`
196
+ `)},w.prototype.idxToPosition=function(h){for(var f=0,a=0;a<this.folds.length;a++){var c=this.folds[a];if(h-=c.start.column-f,h<0)return{row:c.start.row,column:c.start.column+h};if(h-=c.placeholder.length,h<0)return c.start;f=c.end.column}return{row:this.end.row,column:this.end.column+h}},w}();i.FoldLine=v}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,i,m){var g=e("./range").Range,v=g.comparePoints,w=function(){function h(){this.ranges=[],this.$bias=1}return h.prototype.pointIndex=function(f,a,c){for(var s=this.ranges,l=c||0;l<s.length;l++){var o=s[l],u=v(f,o.end);if(!(u>0)){var p=v(f,o.start);return u===0?a&&p!==0?-l-2:l:p>0||p===0&&!a?l:-l-1}}return-l-1},h.prototype.add=function(f){var a=!f.isEmpty(),c=this.pointIndex(f.start,a);c<0&&(c=-c-1);var s=this.pointIndex(f.end,a,c);return s<0?s=-s-1:s++,this.ranges.splice(c,s-c,f)},h.prototype.addList=function(f){for(var a=[],c=f.length;c--;)a.push.apply(a,this.add(f[c]));return a},h.prototype.substractPoint=function(f){var a=this.pointIndex(f);if(a>=0)return this.ranges.splice(a,1)},h.prototype.merge=function(){var f=[],a=this.ranges;a=a.sort(function(u,p){return v(u.start,p.start)});for(var c=a[0],s,l=1;l<a.length;l++){s=c,c=a[l];var o=v(s.end,c.start);o<0||o==0&&!s.isEmpty()&&!c.isEmpty()||(v(s.end,c.end)<0&&(s.end.row=c.end.row,s.end.column=c.end.column),a.splice(l,1),f.push(c),c=s,l--)}return this.ranges=a,f},h.prototype.contains=function(f,a){return this.pointIndex({row:f,column:a})>=0},h.prototype.containsPoint=function(f){return this.pointIndex(f)>=0},h.prototype.rangeAtPoint=function(f){var a=this.pointIndex(f);if(a>=0)return this.ranges[a]},h.prototype.clipRows=function(f,a){var c=this.ranges;if(c[0].start.row>a||c[c.length-1].start.row<f)return[];var s=this.pointIndex({row:f,column:0});s<0&&(s=-s-1);var l=this.pointIndex({row:a,column:0},s);l<0&&(l=-l-1);for(var o=[],u=s;u<l;u++)o.push(c[u]);return o},h.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},h.prototype.attach=function(f){this.session&&this.detach(),this.session=f,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},h.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},h.prototype.$onChange=function(f){for(var a=f.start,c=f.end,s=a.row,l=c.row,o=this.ranges,u=0,p=o.length;u<p;u++){var y=o[u];if(y.end.row>=s)break}if(f.action=="insert")for(var x=l-s,R=-a.column+c.column;u<p;u++){var y=o[u];if(y.start.row>s)break;if(y.start.row==s&&y.start.column>=a.column&&(y.start.column==a.column&&this.$bias<=0||(y.start.column+=R,y.start.row+=x)),y.end.row==s&&y.end.column>=a.column){if(y.end.column==a.column&&this.$bias<0)continue;y.end.column==a.column&&R>0&&u<p-1&&y.end.column>y.start.column&&y.end.column==o[u+1].start.column&&(y.end.column-=R),y.end.column+=R,y.end.row+=x}}else for(var x=s-l,R=a.column-c.column;u<p;u++){var y=o[u];if(y.start.row>l)break;y.end.row<l&&(s<y.end.row||s==y.end.row&&a.column<y.end.column)?(y.end.row=s,y.end.column=a.column):y.end.row==l?y.end.column<=c.column?(x||y.end.column>a.column)&&(y.end.column=a.column,y.end.row=a.row):(y.end.column+=R,y.end.row+=x):y.end.row>l&&(y.end.row+=x),y.start.row<l&&(s<y.start.row||s==y.start.row&&a.column<y.start.column)?(y.start.row=s,y.start.column=a.column):y.start.row==l?y.start.column<=c.column?(x||y.start.column>a.column)&&(y.start.column=a.column,y.start.row=a.row):(y.start.column+=R,y.start.row+=x):y.start.row>l&&(y.start.row+=x)}if(x!=0&&u<p)for(;u<p;u++){var y=o[u];y.start.row+=x,y.end.row+=x}},h}();w.prototype.comparePoints=v,i.RangeList=w}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,i,m){var g=this&&this.__extends||function(){var s=function(l,o){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(u[y]=p[y])},s(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");s(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),v=e("../range_list").RangeList,w=function(s){g(l,s);function l(o,u){var p=s.call(this)||this;return p.foldLine=null,p.placeholder=u,p.range=o,p.start=o.start,p.end=o.end,p.sameRow=o.start.row==o.end.row,p.subFolds=p.ranges=[],p}return l.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},l.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},l.prototype.clone=function(){var o=this.range.clone(),u=new l(o,this.placeholder);return this.subFolds.forEach(function(p){u.subFolds.push(p.clone())}),u.collapseChildren=this.collapseChildren,u},l.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){f(o,this.start);for(var u=o.start.row,p=o.start.column,y=0,x=-1;y<this.subFolds.length&&(x=this.subFolds[y].range.compare(u,p),x==1);y++);var R=this.subFolds[y],A=0;if(x==0){if(R.range.containsRange(o))return R.addSubFold(o);A=1}for(var u=o.range.end.row,p=o.range.end.column,k=y,x=-1;k<this.subFolds.length&&(x=this.subFolds[k].range.compare(u,p),x==1);k++);x==0&&k++;for(var b=this.subFolds.splice(y,k-y,o),M=x==0?b.length-1:b.length,E=A;E<M;E++)o.addSubFold(b[E]);return o.setFoldLine(this.foldLine),o}},l.prototype.restoreRange=function(o){return c(o,this.start)},l}(v);function h(s,l){s.row-=l.row,s.row==0&&(s.column-=l.column)}function f(s,l){h(s.start,l),h(s.end,l)}function a(s,l){s.row==0&&(s.column+=l.column),s.row+=l.row}function c(s,l){a(s.start,l),a(s.end,l)}i.Fold=w}),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(e,i,m){var g=e("../range").Range,v=e("./fold_line").FoldLine,w=e("./fold").Fold,h=e("../token_iterator").TokenIterator,f=e("../mouse/mouse_event").MouseEvent;function a(){this.getFoldAt=function(c,s,l){var o=this.getFoldLine(c);if(!o)return null;for(var u=o.folds,p=0;p<u.length;p++){var y=u[p].range;if(y.contains(c,s)){if(l==1&&y.isEnd(c,s)&&!y.isEmpty()||l==-1&&y.isStart(c,s)&&!y.isEmpty())continue;return u[p]}}},this.getFoldsInRange=function(c){var s=c.start,l=c.end,o=this.$foldData,u=[];s.column+=1,l.column-=1;for(var p=0;p<o.length;p++){var y=o[p].range.compareRange(c);if(y!=2){if(y==-2)break;for(var x=o[p].folds,R=0;R<x.length;R++){var A=x[R];if(y=A.range.compareRange(c),y==-2)break;if(y!=2){if(y==42)break;u.push(A)}}}}return s.column-=1,l.column+=1,u},this.getFoldsInRangeList=function(c){if(Array.isArray(c)){var s=[];c.forEach(function(o){s=s.concat(this.getFoldsInRange(o))},this)}else var s=this.getFoldsInRange(c);return s},this.getAllFolds=function(){for(var c=[],s=this.$foldData,l=0;l<s.length;l++)for(var o=0;o<s[l].folds.length;o++)c.push(s[l].folds[o]);return c},this.getFoldStringAt=function(c,s,l,o){if(o=o||this.getFoldLine(c),!o)return null;for(var u={end:{column:0}},p,y,x=0;x<o.folds.length;x++){y=o.folds[x];var R=y.range.compareEnd(c,s);if(R==-1){p=this.getLine(y.start.row).substring(u.end.column,y.start.column);break}else if(R===0)return null;u=y}return p||(p=this.getLine(y.start.row).substring(u.end.column)),l==-1?p.substring(0,s-u.end.column):l==1?p.substring(s-u.end.column):p},this.getFoldLine=function(c,s){var l=this.$foldData,o=0;for(s&&(o=l.indexOf(s)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.start.row<=c&&u.end.row>=c)return u;if(u.end.row>c)return null}return null},this.getNextFoldLine=function(c,s){var l=this.$foldData,o=0;for(s&&(o=l.indexOf(s)),o==-1&&(o=0),o;o<l.length;o++){var u=l[o];if(u.end.row>=c)return u}return null},this.getFoldedRowCount=function(c,s){for(var l=this.$foldData,o=s-c+1,u=0;u<l.length;u++){var p=l[u],y=p.end.row,x=p.start.row;if(y>=s){x<s&&(x>=c?o-=s-x:o=0);break}else y>=c&&(x>=c?o-=y-x:o-=y-c+1)}return o},this.$addFoldLine=function(c){return this.$foldData.push(c),this.$foldData.sort(function(s,l){return s.start.row-l.start.row}),c},this.addFold=function(c,s){var l=this.$foldData,o=!1,u;c instanceof w?u=c:(u=new w(s,c),u.collapseChildren=s.collapseChildren),this.$clipRangeToDocument(u.range);var p=u.start.row,y=u.start.column,x=u.end.row,R=u.end.column,A=this.getFoldAt(p,y,1),k=this.getFoldAt(x,R,-1);if(A&&k==A)return A.addSubFold(u);A&&!A.range.isStart(p,y)&&this.removeFold(A),k&&!k.range.isEnd(x,R)&&this.removeFold(k);var b=this.getFoldsInRange(u.range);b.length>0&&(this.removeFolds(b),u.collapseChildren||b.forEach(function(T){u.addSubFold(T)}));for(var M=0;M<l.length;M++){var E=l[M];if(x==E.start.row){E.addFold(u),o=!0;break}else if(p==E.end.row){if(E.addFold(u),o=!0,!u.sameRow){var O=l[M+1];if(O&&O.start.row==x){E.merge(O);break}}break}else if(x<=E.start.row)break}return o||(E=this.$addFoldLine(new v(this.$foldData,u))),this.$useWrapMode?this.$updateWrapData(E.start.row,E.start.row):this.$updateRowLengthCache(E.start.row,E.start.row),this.$modified=!0,this._signal("changeFold",{data:u,action:"add"}),u},this.addFolds=function(c){c.forEach(function(s){this.addFold(s)},this)},this.removeFold=function(c){var s=c.foldLine,l=s.start.row,o=s.end.row,u=this.$foldData,p=s.folds;if(p.length==1)u.splice(u.indexOf(s),1);else if(s.range.isEnd(c.end.row,c.end.column))p.pop(),s.end.row=p[p.length-1].end.row,s.end.column=p[p.length-1].end.column;else if(s.range.isStart(c.start.row,c.start.column))p.shift(),s.start.row=p[0].start.row,s.start.column=p[0].start.column;else if(c.sameRow)p.splice(p.indexOf(c),1);else{var y=s.split(c.start.row,c.start.column);p=y.folds,p.shift(),y.start.row=p[0].start.row,y.start.column=p[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(l,o):this.$updateRowLengthCache(l,o)),this.$modified=!0,this._signal("changeFold",{data:c,action:"remove"})},this.removeFolds=function(c){for(var s=[],l=0;l<c.length;l++)s.push(c[l]);s.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(c){this.removeFold(c),c.subFolds.forEach(function(s){c.restoreRange(s),this.addFold(s)},this),c.collapseChildren>0&&this.foldAll(c.start.row+1,c.end.row,c.collapseChildren-1),c.subFolds=[]},this.expandFolds=function(c){c.forEach(function(s){this.expandFold(s)},this)},this.unfold=function(c,s){var l,o;if(c==null)l=new g(0,0,this.getLength(),0),s==null&&(s=!0);else if(typeof c=="number")l=new g(c,0,c,this.getLine(c).length);else if("row"in c)l=g.fromPoints(c,c);else{if(Array.isArray(c))return o=[],c.forEach(function(p){o=o.concat(this.unfold(p))},this),o;l=c}o=this.getFoldsInRangeList(l);for(var u=o;o.length==1&&g.comparePoints(o[0].start,l.start)<0&&g.comparePoints(o[0].end,l.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(l);if(s!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},this.isRowFolded=function(c,s){return!!this.getFoldLine(c,s)},this.getRowFoldEnd=function(c,s){var l=this.getFoldLine(c,s);return l?l.end.row:c},this.getRowFoldStart=function(c,s){var l=this.getFoldLine(c,s);return l?l.start.row:c},this.getFoldDisplayLine=function(c,s,l,o,u){o==null&&(o=c.start.row),u==null&&(u=0),s==null&&(s=c.end.row),l==null&&(l=this.getLine(s).length);var p=this.doc,y="";return c.walk(function(x,R,A,k){if(!(R<o)){if(R==o){if(A<u)return;k=Math.max(u,k)}x!=null?y+=x:y+=p.getLine(R).substring(k,A)}},s,l),y},this.getDisplayLine=function(c,s,l,o){var u=this.getFoldLine(c);if(u)return this.getFoldDisplayLine(u,c,s,l,o);var p;return p=this.doc.getLine(c),p.substring(o||0,s||p.length)},this.$cloneFoldData=function(){var c=[];return c=this.$foldData.map(function(s){var l=s.folds.map(function(o){return o.clone()});return new v(c,l)}),c},this.toggleFold=function(c){var s=this.selection,l=s.getRange(),o,u;if(l.isEmpty()){var p=l.start;if(o=this.getFoldAt(p.row,p.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(p))?l.comparePoint(u)==1?l.end=u:(l.start=u,l.start.column++,l.end.column--):(u=this.findMatchingBracket({row:p.row,column:p.column+1}))?(l.comparePoint(u)==1?l.end=u:l.start=u,l.start.column++):l=this.getCommentFoldRange(p.row,p.column)||l}else{var y=this.getFoldsInRange(l);if(c&&y.length){this.expandFolds(y);return}else y.length==1&&(o=y[0])}if(o||(o=this.getFoldAt(l.start.row,l.start.column)),o&&o.range.toString()==l.toString()){this.expandFold(o);return}var x="...";if(!l.isMultiLine()){if(x=this.getTextRange(l),x.length<4)return;x=x.trim().substring(0,2)+".."}this.addFold(x,l)},this.getCommentFoldRange=function(c,s,l){var o=new h(this,c,s),u=o.getCurrentToken(),p=u&&u.type;if(u&&/^comment|string/.test(p)){p=p.match(/comment|string/)[0],p=="comment"&&(p+="|doc-start|\\.doc");var y=new RegExp(p),x=new g;if(l!=1){do u=o.stepBackward();while(u&&y.test(u.type));u=o.stepForward()}x.start.row=o.getCurrentTokenRow(),x.start.column=o.getCurrentTokenColumn()+u.value.length,o=new h(this,c,s);var R=this.getState(o.$row);if(l!=-1){var A=-1;do if(u=o.stepForward(),A==-1){var k=this.getState(o.$row);R.toString()!==k.toString()&&(A=o.$row)}else if(o.$row>A)break;while(u&&y.test(u.type));u=o.stepBackward()}else u=o.getCurrentToken();return x.end.row=o.getCurrentTokenRow(),x.end.column=o.getCurrentTokenColumn(),x}},this.foldAll=function(c,s,l,o){l==null&&(l=1e5);var u=this.foldWidgets;if(u){s=s||this.getLength(),c=c||0;for(var p=c;p<s;p++)if(u[p]==null&&(u[p]=this.getFoldWidget(p)),u[p]=="start"&&!(o&&!o(p))){var y=this.getFoldWidgetRange(p);y&&y.isMultiLine()&&y.end.row<=s&&y.start.row>=c&&(p=y.end.row,y.collapseChildren=l,this.addFold("...",y))}}},this.foldToLevel=function(c){for(this.foldAll();c-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var c=this;this.foldAll(null,null,null,function(s){for(var l=c.getTokens(s),o=0;o<l.length;o++){var u=l[o];if(!(u.type=="text"&&/^\s+$/.test(u.value)))return!!/comment/.test(u.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(c){if(!this.$foldStyles[c])throw new Error("invalid fold style: "+c+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=c){this.$foldStyle=c,c=="manual"&&this.unfold();var s=this.$foldMode;this.$setFolding(null),this.$setFolding(s)}},this.$setFolding=function(c){if(this.$foldMode!=c){if(this.$foldMode=c,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!c||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=c.getFoldWidget.bind(c,this,this.$foldStyle),this.getFoldWidgetRange=c.getFoldWidgetRange.bind(c,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(c,s){var l=this.foldWidgets;if(!l||s&&l[c])return{};for(var o=c-1,u;o>=0;){var p=l[o];if(p==null&&(p=l[o]=this.getFoldWidget(o)),p=="start"){var y=this.getFoldWidgetRange(o);if(u||(u=y),y&&y.end.row>=c)break}o--}return{range:o!==-1&&y,firstRange:u}},this.onFoldWidgetClick=function(c,s){s instanceof f&&(s=s.domEvent);var l={children:s.shiftKey,all:s.ctrlKey||s.metaKey,siblings:s.altKey},o=this.$toggleFoldWidget(c,l);if(!o){var u=s.target||s.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(c,s){if(this.getFoldWidget){var l=this.getFoldWidget(c),o=this.getLine(c),u=l==="end"?-1:1,p=this.getFoldAt(c,u===-1?0:o.length,u);if(p)return s.children||s.all?this.removeFold(p):this.expandFold(p),p;var y=this.getFoldWidgetRange(c,!0);if(y&&!y.isMultiLine()&&(p=this.getFoldAt(y.start.row,y.start.column,1),p&&y.isEqual(p.range)))return this.removeFold(p),p;if(s.siblings){var x=this.getParentFoldRangeData(c);if(x.range)var R=x.range.start.row+1,A=x.range.end.row;this.foldAll(R,A,s.all?1e4:0)}else s.children?(A=y?y.end.row:this.getLength(),this.foldAll(c+1,A,s.all?1e4:0)):y&&(s.all&&(y.collapseChildren=1e4),this.addFold("...",y));return y}},this.toggleFoldWidget=function(c){var s=this.selection.getCursor().row;s=this.getRowFoldStart(s);var l=this.$toggleFoldWidget(s,{});if(!l){var o=this.getParentFoldRangeData(s,!0);if(l=o.range||o.firstRange,l){s=l.start.row;var u=this.getFoldAt(s,this.getLine(s).length,1);u?this.removeFold(u):this.addFold("...",l)}}},this.updateFoldWidgets=function(c){var s=c.start.row,l=c.end.row-s;if(l===0)this.foldWidgets[s]=null;else if(c.action=="remove")this.foldWidgets.splice(s,l+1,null);else{var o=Array(l+1);o.unshift(s,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(c){var s=c.data;s.first!=s.last&&this.foldWidgets.length>s.first&&this.foldWidgets.splice(s.first,this.foldWidgets.length)}}i.Folding=a}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,i,m){var g=e("../token_iterator").TokenIterator,v=e("../range").Range;function w(){this.findMatchingBracket=function(h,f){if(h.column==0)return null;var a=f||this.getLine(h.row).charAt(h.column-1);if(a=="")return null;var c=a.match(/([\(\[\{])|([\)\]\}])/);return c?c[1]?this.$findClosingBracket(c[1],h):this.$findOpeningBracket(c[2],h):null},this.getBracketRange=function(h){var f=this.getLine(h.row),a=!0,c,s=f.charAt(h.column-1),l=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(l||(s=f.charAt(h.column),h={row:h.row,column:h.column+1},l=s&&s.match(/([\(\[\{])|([\)\]\}])/),a=!1),!l)return null;if(l[1]){var o=this.$findClosingBracket(l[1],h);if(!o)return null;c=v.fromPoints(h,o),a||(c.end.column++,c.start.column--),c.cursor=c.end}else{var o=this.$findOpeningBracket(l[2],h);if(!o)return null;c=v.fromPoints(o,h),a||(c.start.column++,c.end.column--),c.cursor=c.start}return c},this.getMatchingBracketRanges=function(h,f){var a=this.getLine(h.row),c=/([\(\[\{])|([\)\]\}])/,s=!f&&a.charAt(h.column-1),l=s&&s.match(c);if(l||(s=(f===void 0||f)&&a.charAt(h.column),h={row:h.row,column:h.column+1},l=s&&s.match(c)),!l)return null;var o=new v(h.row,h.column-1,h.row,h.column),u=l[1]?this.$findClosingBracket(l[1],h):this.$findOpeningBracket(l[2],h);if(!u)return[o];var p=new v(u.row,u.column,u.row,u.column+1);return[o,p]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(h,f,a){var c=this.$brackets[h],s=1,l=new g(this,f.row,f.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){a||(a=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var u=f.column-l.getCurrentTokenColumn()-2,p=o.value;;){for(;u>=0;){var y=p.charAt(u);if(y==c){if(s-=1,s==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else y==h&&(s+=1);u-=1}do o=l.stepBackward();while(o&&!a.test(o.type));if(o==null)break;p=o.value,u=p.length-1}return null}},this.$findClosingBracket=function(h,f,a){var c=this.$brackets[h],s=1,l=new g(this,f.row,f.column),o=l.getCurrentToken();if(o||(o=l.stepForward()),!!o){a||(a=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var u=f.column-l.getCurrentTokenColumn();;){for(var p=o.value,y=p.length;u<y;){var x=p.charAt(u);if(x==c){if(s-=1,s==0)return{row:l.getCurrentTokenRow(),column:u+l.getCurrentTokenColumn()}}else x==h&&(s+=1);u+=1}do o=l.stepForward();while(o&&!a.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(h){var f=new g(this,h.row,h.column),a=this.$findTagName(f);if(a){var c=f.stepBackward();return c.value==="<"?this.$findClosingTag(f,a):this.$findOpeningTag(f,a)}},this.$findTagName=function(h){var f=h.getCurrentToken(),a=!1,c=!1;if(f&&f.type.indexOf("tag-name")===-1)do c?f=h.stepBackward():f=h.stepForward(),f&&(f.value==="/>"?c=!0:f.type.indexOf("tag-name")!==-1&&(a=!0));while(f&&!a);return f},this.$findClosingTag=function(h,f){var a,c=f.value,s=f.value,l=0,o=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);f=h.stepForward();var u=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length),p=!1;do{if(a=f,a.type.indexOf("tag-close")!==-1&&!p){var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);p=!0}if(f=h.stepForward(),f){if(f.value===">"&&!p){var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);p=!0}if(f.type.indexOf("tag-name")!==-1){if(c=f.value,s===c){if(a.value==="<")l++;else if(a.value==="</"&&(l--,l<0)){h.stepBackward();var x=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2);f=h.stepForward();var R=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length);if(f.type.indexOf("tag-close")===-1&&(f=h.stepForward()),f&&f.value===">")var A=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);else return}}}else if(s===c&&f.value==="/>"&&(l--,l<0))var x=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+2),R=x,A=R,y=new v(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(f&&l>=0);if(o&&y&&x&&A&&u&&R)return{openTag:new v(o.start.row,o.start.column,y.end.row,y.end.column),closeTag:new v(x.start.row,x.start.column,A.end.row,A.end.column),openTagName:u,closeTagName:R}},this.$findOpeningTag=function(h,f){var a=h.getCurrentToken(),c=f.value,s=0,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+2,p=new v(l,o,l,u);h.stepForward();var y=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+f.value.length);if(f.type.indexOf("tag-close")===-1&&(f=h.stepForward()),!(!f||f.value!==">")){var x=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);h.stepBackward(),h.stepBackward();do if(f=a,l=h.getCurrentTokenRow(),o=h.getCurrentTokenColumn(),u=o+f.value.length,a=h.stepBackward(),f){if(f.type.indexOf("tag-name")!==-1){if(c===f.value)if(a.value==="<"){if(s++,s>0){var R=new v(l,o,l,u),A=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1);do f=h.stepForward();while(f&&f.value!==">");var k=new v(h.getCurrentTokenRow(),h.getCurrentTokenColumn(),h.getCurrentTokenRow(),h.getCurrentTokenColumn()+1)}}else a.value==="</"&&s--}else if(f.value==="/>"){for(var b=0,M=a;M;){if(M.type.indexOf("tag-name")!==-1&&M.value===c){s--;break}else if(M.value==="<")break;M=h.stepBackward(),b++}for(var E=0;E<b;E++)h.stepForward()}}while(a&&s<=0);if(A&&k&&p&&x&&R&&y)return{openTag:new v(A.start.row,A.start.column,k.end.row,k.end.column),closeTag:new v(p.start.row,p.start.column,x.end.row,x.end.column),openTagName:R,closeTagName:y}}}}i.BracketMatch=w}),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(e,i,m){var g=e("./lib/oop"),v=e("./lib/lang"),w=e("./bidihandler").BidiHandler,h=e("./config"),f=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,c=e("./mode/text").Mode,s=e("./range").Range,l=e("./line_widgets").LineWidgets,o=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,p=e("./search_highlight").SearchHighlight,y=e("./undomanager").UndoManager,x=function(){function $(_,S){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++$.$uid,this.$foldData.toString=function(){return this.join(`
197
+ `)},this.bgTokenizer=new u(new c().getTokenizer(),this);var L=this;this.bgTokenizer.on("update",function(I){L._signal("tokenizerUpdate",I)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),this.selection=new a(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new w(this),h.resetOptions(this),this.setMode(S),h._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return $.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=v.delayedCall(this.endOperation.bind(this,!0))},$.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},$.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var S=this.selection.toJSON();this.curOp.selectionAfter=S,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection(S),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",_)}},$.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},$.prototype.getDocument=function(){return this.doc},Object.defineProperty($.prototype,"widgetManager",{get:function(){var _=new l(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),$.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var S=this.$docRowCache.length,L=this.$getRowCacheIndex(this.$docRowCache,_)+1;S>L&&(this.$docRowCache.splice(L,S),this.$screenRowCache.splice(L,S))},$.prototype.$getRowCacheIndex=function(_,S){for(var L=0,I=_.length-1;L<=I;){var F=L+I>>1,H=_[F];if(S>H)L=F+1;else if(S<H)I=F-1;else return F}return L-1},$.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},$.prototype.onChangeFold=function(_){var S=_.data;this.$resetRowCache(S.start.row)},$.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var S=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&(S&&S.length&&(this.$undoManager.add({action:"removeFolds",folds:S},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},$.prototype.onSelectionChange=function(){this._signal("changeSelection")},$.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},$.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var S=new y;S.$undoStack=_.history.undo,S.$redoStack=_.history.redo,S.mark=_.history.mark,S.$rev=_.history.rev;var L=new $(_.value);return _.folds.forEach(function(I){L.addFold("...",s.fromPoints(I.start,I.end))}),L.setAnnotations(_.annotations),L.setBreakpoints(_.breakpoints),L.setMode(_.mode),L.setScrollLeft(_.scrollLeft),L.setScrollTop(_.scrollTop),L.setUndoManager(S),L.selection.fromJSON(_.selection),L},$.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},$.prototype.toString=function(){return this.doc.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.getState=function(_){return this.bgTokenizer.getState(_)},$.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},$.prototype.getTokenAt=function(_,S){var L=this.bgTokenizer.getTokens(_),I,F=0;if(S==null){var H=L.length-1;F=this.getLine(_).length}else for(var H=0;H<L.length&&(F+=L[H].value.length,!(F>=S));H++);return I=L[H],I?(I.index=H,I.start=F-I.value.length,I):null},$.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var S=this;_.addSession(this),this.$syncInformUndoManager=function(){S.$informUndoManager.cancel(),S.mergeUndoDeltas=!1},this.$informUndoManager=v.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},$.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},$.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},$.prototype.getTabString=function(){return this.getUseSoftTabs()?v.stringRepeat(" ",this.getTabSize()):" "},$.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},$.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},$.prototype.setTabSize=function(_){this.setOption("tabSize",_)},$.prototype.getTabSize=function(){return this.$tabSize},$.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},$.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},$.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},$.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},$.prototype.getOverwrite=function(){return this.$overwrite},$.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},$.prototype.addGutterDecoration=function(_,S){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+S,this._signal("changeBreakpoint",{})},$.prototype.removeGutterDecoration=function(_,S){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+S,""),this._signal("changeBreakpoint",{})},$.prototype.getBreakpoints=function(){return this.$breakpoints},$.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var S=0;S<_.length;S++)this.$breakpoints[_[S]]="ace_breakpoint";this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},$.prototype.setBreakpoint=function(_,S){S===void 0&&(S="ace_breakpoint"),S?this.$breakpoints[_]=S:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},$.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},$.prototype.addMarker=function(_,S,L,I){var F=this.$markerId++,H={range:_,type:L||"line",renderer:typeof L=="function"?L:null,clazz:S,inFront:!!I,id:F};return I?(this.$frontMarkers[F]=H,this._signal("changeFrontMarker")):(this.$backMarkers[F]=H,this._signal("changeBackMarker")),F},$.prototype.addDynamicMarker=function(_,S){if(_.update){var L=this.$markerId++;return _.id=L,_.inFront=!!S,S?(this.$frontMarkers[L]=_,this._signal("changeFrontMarker")):(this.$backMarkers[L]=_,this._signal("changeBackMarker")),_}},$.prototype.removeMarker=function(_){var S=this.$frontMarkers[_]||this.$backMarkers[_];if(S){var L=S.inFront?this.$frontMarkers:this.$backMarkers;delete L[_],this._signal(S.inFront?"changeFrontMarker":"changeBackMarker")}},$.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},$.prototype.highlight=function(_){if(!this.$searchHighlight){var S=new p(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(S)}this.$searchHighlight.setRegexp(_)},$.prototype.highlightLines=function(_,S,L,I){typeof S!="number"&&(L=S,S=_),L||(L="ace_step");var F=new s(_,0,S,1/0);return F.id=this.addMarker(F,L,"fullLine",I),F},$.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},$.prototype.getAnnotations=function(){return this.$annotations||[]},$.prototype.clearAnnotations=function(){this.setAnnotations([])},$.prototype.$detectNewLine=function(_){var S=_.match(/^.*?(\r?\n)/m);S?this.$autoNewLine=S[1]:this.$autoNewLine=`
198
+ `},$.prototype.getWordRange=function(_,S){var L=this.getLine(_),I=!1;if(S>0&&(I=!!L.charAt(S-1).match(this.tokenRe)),I||(I=!!L.charAt(S).match(this.tokenRe)),I)var F=this.tokenRe;else if(/^\s+$/.test(L.slice(S-1,S+1)))var F=/\s/;else var F=this.nonTokenRe;var H=S;if(H>0){do H--;while(H>=0&&L.charAt(H).match(F));H++}for(var W=S;W<L.length&&L.charAt(W).match(F);)W++;return new s(_,H,_,W)},$.prototype.getAWordRange=function(_,S){for(var L=this.getWordRange(_,S),I=this.getLine(L.end.row);I.charAt(L.end.column).match(/[ \t]/);)L.end.column+=1;return L},$.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},$.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},$.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},$.prototype.getUseWorker=function(){return this.$useWorker},$.prototype.onReloadTokenizer=function(_){var S=_.data;this.bgTokenizer.start(S.first),this._signal("tokenizerUpdate",_)},$.prototype.setMode=function(_,S){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var L=_,I=L.path}else I=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[I]&&!L){this.$onChangeMode(this.$modes[I]),S&&S();return}this.$modeId=I,h.loadModule(["mode",I],(function(F){if(this.$modeId!==I)return S&&S();this.$modes[I]&&!L?this.$onChangeMode(this.$modes[I]):F&&F.Mode&&(F=new F.Mode(L),L||(this.$modes[I]=F,F.$id=I),this.$onChangeMode(F)),S&&S()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},$.prototype.$onChangeMode=function(_,S){if(S||(this.$modeId=_.$id),this.$mode!==_){var L=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var I=_.getTokenizer();if(I.on!==void 0){var F=this.onReloadTokenizer.bind(this);I.on("update",F)}this.bgTokenizer.setTokenizer(I),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,S||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:L,mode:_}))}},$.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},$.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){h.warn("Could not load worker",_),this.$worker=null}},$.prototype.getMode=function(){return this.$mode},$.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},$.prototype.getScrollTop=function(){return this.$scrollTop},$.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},$.prototype.getScrollLeft=function(){return this.$scrollLeft},$.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},$.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var _=0;return this.lineWidgets.forEach(function(S){S&&S.screenWidth>_&&(_=S.screenWidth)}),this.lineWidgetWidth=_},$.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var S=this.doc.getAllLines(),L=this.$rowLengthCache,I=0,F=0,H=this.$foldData[F],W=H?H.start.row:1/0,V=S.length,q=0;q<V;q++){if(q>W){if(q=H.end.row+1,q>=V)break;H=this.$foldData[F++],W=H?H.start.row:1/0}L[q]==null&&(L[q]=this.$getStringScreenWidth(S[q])[0]),L[q]>I&&(I=L[q])}this.screenWidth=I}},$.prototype.getLine=function(_){return this.doc.getLine(_)},$.prototype.getLines=function(_,S){return this.doc.getLines(_,S)},$.prototype.getLength=function(){return this.doc.getLength()},$.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},$.prototype.insert=function(_,S){return this.doc.insert(_,S)},$.prototype.remove=function(_){return this.doc.remove(_)},$.prototype.removeFullLines=function(_,S){return this.doc.removeFullLines(_,S)},$.prototype.undoChanges=function(_,S){if(_.length){this.$fromUndo=!0;for(var L=_.length-1;L!=-1;L--){var I=_[L];I.action=="insert"||I.action=="remove"?this.doc.revertDelta(I):I.folds&&this.addFolds(I.folds)}!S&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},$.prototype.redoChanges=function(_,S){if(_.length){this.$fromUndo=!0;for(var L=0;L<_.length;L++){var I=_[L];(I.action=="insert"||I.action=="remove")&&this.doc.$safeApplyDelta(I)}!S&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},$.prototype.setUndoSelect=function(_){this.$undoSelect=_},$.prototype.$getUndoSelection=function(_,S){function L(V){return S?V.action!=="insert":V.action==="insert"}for(var I,F,H=0;H<_.length;H++){var W=_[H];if(W.start){if(!I){L(W)?I=s.fromPoints(W.start,W.end):I=s.fromPoints(W.start,W.start);continue}L(W)?(F=W.start,I.compare(F.row,F.column)==-1&&I.setStart(F),F=W.end,I.compare(F.row,F.column)==1&&I.setEnd(F)):(F=W.start,I.compare(F.row,F.column)==-1&&(I=s.fromPoints(W.start,W.start)))}}return I},$.prototype.replace=function(_,S){return this.doc.replace(_,S)},$.prototype.moveText=function(_,S,L){var I=this.getTextRange(_),F=this.getFoldsInRange(_),H=s.fromPoints(S,S);if(!L){this.remove(_);var W=_.start.row-_.end.row,V=W?-_.end.column:_.start.column-_.end.column;V&&(H.start.row==_.end.row&&H.start.column>_.end.column&&(H.start.column+=V),H.end.row==_.end.row&&H.end.column>_.end.column&&(H.end.column+=V)),W&&H.start.row>=_.end.row&&(H.start.row+=W,H.end.row+=W)}if(H.end=this.insert(H.start,I),F.length){var q=_.start,X=H.start,W=X.row-q.row,V=X.column-q.column;this.addFolds(F.map(function(ie){return ie=ie.clone(),ie.start.row==q.row&&(ie.start.column+=V),ie.end.row==q.row&&(ie.end.column+=V),ie.start.row+=W,ie.end.row+=W,ie}))}return H},$.prototype.indentRows=function(_,S,L){L=L.replace(/\t/g,this.getTabString());for(var I=_;I<=S;I++)this.doc.insertInLine({row:I,column:0},L)},$.prototype.outdentRows=function(_){for(var S=_.collapseRows(),L=new s(0,0,0,0),I=this.getTabSize(),F=S.start.row;F<=S.end.row;++F){var H=this.getLine(F);L.start.row=F,L.end.row=F;for(var W=0;W<I&&H.charAt(W)==" ";++W);W<I&&H.charAt(W)==" "?(L.start.column=W,L.end.column=W+1):(L.start.column=0,L.end.column=W),this.remove(L)}},$.prototype.$moveLines=function(_,S,L){if(_=this.getRowFoldStart(_),S=this.getRowFoldEnd(S),L<0){var I=this.getRowFoldStart(_+L);if(I<0)return 0;var F=I-_}else if(L>0){var I=this.getRowFoldEnd(S+L);if(I>this.doc.getLength()-1)return 0;var F=I-S}else{_=this.$clipRowToDocument(_),S=this.$clipRowToDocument(S);var F=S-_+1}var H=new s(_,0,S,Number.MAX_VALUE),W=this.getFoldsInRange(H).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=L==0?this.doc.getLines(_,S):this.doc.removeFullLines(_,S);return this.doc.insertFullLines(_+F,V),W.length&&this.addFolds(W),F},$.prototype.moveLinesUp=function(_,S){return this.$moveLines(_,S,-1)},$.prototype.moveLinesDown=function(_,S){return this.$moveLines(_,S,1)},$.prototype.duplicateLines=function(_,S){return this.$moveLines(_,S,0)},$.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},$.prototype.$clipColumnToRow=function(_,S){return S<0?0:Math.min(this.doc.getLine(_).length,S)},$.prototype.$clipPositionToDocument=function(_,S){if(S=Math.max(0,S),_<0)_=0,S=0;else{var L=this.doc.getLength();_>=L?(_=L-1,S=this.doc.getLine(L-1).length):S=Math.min(this.doc.getLine(_).length,S)}return{row:_,column:S}},$.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var S=this.doc.getLength()-1;return _.end.row>S?(_.end.row=S,_.end.column=this.doc.getLine(S).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},$.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var S=this.getLength();this.$wrapData=Array(S),this.$updateWrapData(0,S-1)}this._signal("changeWrapMode")}},$.prototype.getUseWrapMode=function(){return this.$useWrapMode},$.prototype.setWrapLimitRange=function(_,S){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==S)&&(this.$wrapLimitRange={min:_,max:S},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},$.prototype.adjustWrapLimit=function(_,S){var L=this.$wrapLimitRange;L.max<0&&(L={min:S,max:S});var I=this.$constrainWrapLimit(_,L.min,L.max);return I!=this.$wrapLimit&&I>1?(this.$wrapLimit=I,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},$.prototype.$constrainWrapLimit=function(_,S,L){return S&&(_=Math.max(S,_)),L&&(_=Math.min(L,_)),_},$.prototype.getWrapLimit=function(){return this.$wrapLimit},$.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},$.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},$.prototype.$updateInternalDataOnChange=function(_){var S=this.$useWrapMode,L=_.action,I=_.start,F=_.end,H=I.row,W=F.row,V=W-H,q=null;if(this.$updating=!0,V!=0)if(L==="remove"){this[S?"$wrapData":"$rowLengthCache"].splice(H,V);var X=this.$foldData;q=this.getFoldsInRange(_),this.removeFolds(q);var G=this.getFoldLine(F.row),Z=0;if(G){G.addRemoveChars(F.row,F.column,I.column-F.column),G.shiftRow(-V);var ie=this.getFoldLine(H);ie&&ie!==G&&(ie.merge(G),G=ie),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-V)}W=H}else{var J=Array(V);J.unshift(H,0);var ae=S?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(I.row,I.column);me==0?(G=G.split(I.row,I.column),G&&(G.shiftRow(V),G.addRemoveChars(W,0,F.column-I.column))):me==-1&&(G.addRemoveChars(H,0,F.column-I.column),G.shiftRow(V)),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=H&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),L==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(H);G&&G.addRemoveChars(H,I.column,V)}return S&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,S?this.$updateWrapData(H,W):this.$updateRowLengthCache(H,W),q},$.prototype.$updateRowLengthCache=function(_,S){this.$rowLengthCache[_]=null,this.$rowLengthCache[S]=null},$.prototype.$updateWrapData=function(_,S){var L=this.doc.getAllLines(),I=this.getTabSize(),F=this.$wrapData,H=this.$wrapLimit,W,V,q=_;for(S=Math.min(S,L.length-1);q<=S;)V=this.getFoldLine(q,V),V?(W=[],V.walk((function(X,G,Z,ie){var J;if(X!=null){J=this.$getDisplayTokens(X,W.length),J[0]=k;for(var ae=1;ae<J.length;ae++)J[ae]=b}else J=this.$getDisplayTokens(L[G].substring(ie,Z),W.length);W=W.concat(J)}).bind(this),V.end.row,L[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(W,H,I),q=V.end.row+1):(W=this.$getDisplayTokens(L[q]),F[q]=this.$computeWrapSplits(W,H,I),q++)},$.prototype.$computeWrapSplits=function(_,S,L){if(_.length==0)return[];var I=[],F=_.length,H=0,W=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,X=S<=Math.max(2*L,8)||q===!1?0:Math.floor(S/2);function G(){var me=0;if(X===0)return me;if(q)for(var ye=0;ye<_.length;ye++){var fe=_[ye];if(fe==E)me+=1;else if(fe==O)me+=L;else{if(fe==T)continue;break}}return V&&q!==!1&&(me+=L),Math.min(me,X)}function Z(me){for(var ye=me-H,fe=H;fe<me;fe++){var _e=_[fe];(_e===12||_e===2)&&(ye-=1)}I.length||(ie=G(),I.indent=ie),W+=ye,I.push(W),H=me}for(var ie=0;F-H>S-ie;){var J=H+S-ie;if(_[J-1]>=E&&_[J]>=E){Z(J);continue}if(_[J]==k||_[J]==b){for(J;J!=H-1&&_[J]!=k;J--);if(J>H){Z(J);continue}for(J=H+S,J;J<_.length&&_[J]==b;J++);if(J==_.length)break;Z(J);continue}for(var ae=Math.max(J-(S-(S>>2)),H-1);J>ae&&_[J]<k;)J--;if(V){for(;J>ae&&_[J]<k;)J--;for(;J>ae&&_[J]==M;)J--}else for(;J>ae&&_[J]<E;)J--;if(J>ae){Z(++J);continue}J=H+S,_[J]==A&&J--,Z(J-ie)}return I},$.prototype.$getDisplayTokens=function(_,S){var L=[],I;S=S||0;for(var F=0;F<_.length;F++){var H=_.charCodeAt(F);if(H==9){I=this.getScreenTabSize(L.length+S),L.push(O);for(var W=1;W<I;W++)L.push(T)}else H==32?L.push(E):H>39&&H<48||H>57&&H<64?L.push(M):H>=4352&&N(H)?L.push(R,A):L.push(R)}return L},$.prototype.$getStringScreenWidth=function(_,S,L){if(S==0)return[0,0];S==null&&(S=1/0),L=L||0;var I,F;for(F=0;F<_.length&&(I=_.charCodeAt(F),I==9?L+=this.getScreenTabSize(L):I>=4352&&N(I)?L+=2:L+=1,!(L>S));F++);return[L,F]},$.prototype.getRowLength=function(_){var S=1;return this.lineWidgets&&(S+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?S:this.$wrapData[_].length+S},$.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},$.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var S=this.screenToDocumentPosition(_,Number.MAX_VALUE),L=this.$wrapData[S.row];return L.length&&L[0]<S.column?L.indent:0}else return 0},$.prototype.getScreenLastRowColumn=function(_){var S=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn(S.row,S.column)},$.prototype.getDocumentLastRowColumn=function(_,S){var L=this.documentToScreenRow(_,S);return this.getScreenLastRowColumn(L)},$.prototype.getDocumentLastRowColumnPosition=function(_,S){var L=this.documentToScreenRow(_,S);return this.screenToDocumentPosition(L,Number.MAX_VALUE/10)},$.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},$.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},$.prototype.screenToDocumentRow=function(_,S){return this.screenToDocumentPosition(_,S).row},$.prototype.screenToDocumentColumn=function(_,S){return this.screenToDocumentPosition(_,S).column},$.prototype.screenToDocumentPosition=function(_,S,L){if(_<0)return{row:0,column:0};var I,Z=0,F=0,H,G=0,W=0,V=this.$screenRowCache,q=this.$getRowCacheIndex(V,_),X=V.length;if(X&&q>=0)var G=V[q],Z=this.$docRowCache[q],ie=_>V[X-1];else var ie=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),me=ae?ae.start.row:1/0;G<=_&&(W=this.getRowLength(Z),!(G+W>_||Z>=J));)G+=W,Z++,Z>me&&(Z=ae.end.row+1,ae=this.getNextFoldLine(Z,ae),me=ae?ae.start.row:1/0),ie&&(this.$docRowCache.push(Z),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Z)I=this.getFoldDisplayLine(ae),Z=ae.start.row;else{if(G+W<=_||Z>J)return{row:J,column:this.getLine(J).length};I=this.getLine(Z),ae=null}var ye=0,fe=Math.floor(_-G);if(this.$useWrapMode){var _e=this.$wrapData[Z];_e&&(H=_e[fe],fe>0&&_e.length&&(ye=_e.indent,F=_e[fe-1]||_e[_e.length-1],I=I.substring(F)))}return L!==void 0&&this.$bidiHandler.isBidiRow(G+fe,Z,fe)&&(S=this.$bidiHandler.offsetToCol(L)),F+=this.$getStringScreenWidth(I,S-ye)[1],this.$useWrapMode&&F>=H&&(F=H-1),ae?ae.idxToPosition(F):{row:Z,column:F}},$.prototype.documentToScreenPosition=function(_,S){if(typeof S>"u")var L=this.$clipPositionToDocument(_.row,_.column);else L=this.$clipPositionToDocument(_,S);_=L.row,S=L.column;var G=0,I=null,F=null;F=this.getFoldAt(_,S,1),F&&(_=F.start.row,S=F.start.column);var H,X=0,W=this.$docRowCache,V=this.$getRowCacheIndex(W,_),q=W.length;if(q&&V>=0)var X=W[V],G=this.$screenRowCache[V],Z=_>W[q-1];else var Z=!q;for(var ie=this.getNextFoldLine(X),J=ie?ie.start.row:1/0;X<_;){if(X>=J){if(H=ie.end.row+1,H>_)break;ie=this.getNextFoldLine(H,ie),J=ie?ie.start.row:1/0}else H=X+1;G+=this.getRowLength(X),X=H,Z&&(this.$docRowCache.push(X),this.$screenRowCache.push(G))}var ae="";ie&&X>=J?(ae=this.getFoldDisplayLine(ie,_,S),I=ie.start.row):(ae=this.getLine(_).substring(0,S),I=_);var me=0;if(this.$useWrapMode){var ye=this.$wrapData[I];if(ye){for(var fe=0;ae.length>=ye[fe];)G++,fe++;ae=ae.substring(ye[fe-1]||0,ae.length),me=fe>0?ye.indent:0}}return this.lineWidgets&&this.lineWidgets[X]&&this.lineWidgets[X].rowsAbove&&(G+=this.lineWidgets[X].rowsAbove),{row:G,column:me+this.$getStringScreenWidth(ae)[0]}},$.prototype.documentToScreenColumn=function(_,S){return this.documentToScreenPosition(_,S).column},$.prototype.documentToScreenRow=function(_,S){return this.documentToScreenPosition(_,S).row},$.prototype.getScreenLength=function(){var _=0,S=null;if(this.$useWrapMode)for(var L=this.$wrapData.length,I=0,F=0,S=this.$foldData[F++],H=S?S.start.row:1/0;I<L;){var W=this.$wrapData[I];_+=W?W.length+1:1,I++,I>H&&(I=S.end.row+1,S=this.$foldData[F++],H=S?S.start.row:1/0)}else{_=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)S=V[F],_-=S.end.row-S.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},$.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function(S,L,I){if(L===0)return[0,0];L||(L=1/0),I=I||0;var F,H;for(H=0;H<S.length&&(F=S.charAt(H),F===" "?I+=this.getScreenTabSize(I):I+=_.getCharacterWidth(F),!(I>L));H++);return[I,H]})},$.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var S=this.getLine(_.row);return S[_.column-1]},$.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()},$}();x.$uid=0,x.prototype.$modes=h.$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,g.implement(x.prototype,f);var R=1,A=2,k=3,b=4,M=9,E=10,O=11,T=12;function N($){return $<4352?!1:$>=4352&&$<=4447||$>=4515&&$<=4519||$>=4602&&$<=4607||$>=9001&&$<=9002||$>=11904&&$<=11929||$>=11931&&$<=12019||$>=12032&&$<=12245||$>=12272&&$<=12283||$>=12288&&$<=12350||$>=12353&&$<=12438||$>=12441&&$<=12543||$>=12549&&$<=12589||$>=12593&&$<=12686||$>=12688&&$<=12730||$>=12736&&$<=12771||$>=12784&&$<=12830||$>=12832&&$<=12871||$>=12880&&$<=13054||$>=13056&&$<=19903||$>=19968&&$<=42124||$>=42128&&$<=42182||$>=43360&&$<=43388||$>=44032&&$<=55203||$>=55216&&$<=55238||$>=55243&&$<=55291||$>=63744&&$<=64255||$>=65040&&$<=65049||$>=65072&&$<=65106||$>=65108&&$<=65126||$>=65128&&$<=65131||$>=65281&&$<=65376||$>=65504&&$<=65510}e("./edit_session/folding").Folding.call(x.prototype),e("./edit_session/bracket_match").BracketMatch.call(x.prototype),h.defineOptions(x.prototype,"session",{wrap:{set:function($){if(!$||$=="off"?$=!1:$=="free"?$=!0:$=="printMargin"?$=-1:typeof $=="string"&&($=parseInt($,10)||!1),this.$wrap!=$)if(this.$wrap=$,!$)this.setUseWrapMode(!1);else{var _=typeof $=="number"?$:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function($){$=$=="auto"?this.$mode.type!="text":$!="text",$!=this.$wrapAsCode&&(this.$wrapAsCode=$,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($){this.$useWorker=$,this.$stopWorker(),$&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function($){$=parseInt($),$>0&&this.$tabSize!==$&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=$,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function($){this.setFoldStyle($)},handlesSet:!0},overwrite:{set:function($){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function($){this.doc.setNewLineMode($)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function($){this.setMode($)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,i,m){var g=e("./lib/lang"),v=e("./lib/oop"),w=e("./range").Range,h=function(){function a(){this.$options={}}return a.prototype.set=function(c){return v.mixin(this.$options,c),this},a.prototype.getOptions=function(){return g.copyObject(this.$options)},a.prototype.setOptions=function(c){this.$options=c},a.prototype.find=function(c){var s=this.$options,l=this.$matchIterator(c,s);if(!l)return!1;var o=null;return l.forEach(function(u,p,y,x){return o=new w(u,p,y,x),p==x&&s.start&&s.start.start&&s.skipCurrent!=!1&&o.isEqual(s.start)?(o=null,!1):!0}),o},a.prototype.findAll=function(c){var s=this.$options;if(!s.needle)return[];this.$assembleRegExp(s);var l=s.range,o=l?c.getLines(l.start.row,l.end.row):c.doc.getAllLines(),u=[],p=s.re;if(s.$isMultiLine){var y=p.length,x=o.length-y,R;e:for(var A=p.offset||0;A<=x;A++){for(var k=0;k<y;k++)if(o[A+k].search(p[k])==-1)continue e;var b=o[A],M=o[A+y-1],E=b.length-b.match(p[0])[0].length,O=M.match(p[y-1])[0].length;R&&R.end.row===A&&R.end.column>E||(u.push(R=new w(A,E,A+y-1,O)),y>2&&(A=A+y-2))}}else for(var T=0;T<o.length;T++)for(var N=g.getMatchOffsets(o[T],p),k=0;k<N.length;k++){var $=N[k];u.push(new w(T,$.offset,T,$.offset+$.length))}if(l){for(var _=l.start.column,S=l.end.column,T=0,k=u.length-1;T<k&&u[T].start.column<_&&u[T].start.row==0;)T++;for(var L=l.end.row-l.start.row;T<k&&u[k].end.column>S&&u[k].end.row==L;)k--;for(u=u.slice(T,k+1),T=0,k=u.length;T<k;T++)u[T].start.row+=l.start.row,u[T].end.row+=l.start.row}return u},a.prototype.replace=function(c,s){var l=this.$options,o=this.$assembleRegExp(l);if(l.$isMultiLine)return s;if(o){var u=o.exec(c);if(!u||u[0].length!=c.length)return null;if(l.regExp||(s=s.replace(/\$/g,"$$$$")),s=c.replace(o,s),l.preserveCase){s=s.split("");for(var p=Math.min(c.length,c.length);p--;){var y=c[p];y&&y.toLowerCase()!=y?s[p]=s[p].toUpperCase():s[p]=s[p].toLowerCase()}s=s.join("")}return s}},a.prototype.$assembleRegExp=function(c,s){if(c.needle instanceof RegExp)return c.re=c.needle;var l=c.needle;if(!c.needle)return c.re=!1;c.regExp||(l=g.escapeRegExp(l));var o=c.caseSensitive?"gm":"gmi";try{new RegExp(l,"u"),c.$supportsUnicodeFlag=!0,o+="u"}catch{c.$supportsUnicodeFlag=!1}if(c.wholeWord&&(l=f(l,c)),c.$isMultiLine=!s&&/[\n\r]/.test(l),c.$isMultiLine)return c.re=this.$assembleMultilineRegExp(l,o);try{var u=new RegExp(l,o)}catch{u=!1}return c.re=u},a.prototype.$assembleMultilineRegExp=function(c,s){for(var l=c.replace(/\r\n|\r|\n/g,`$
199
+ ^`).split(`
200
+ `),o=[],u=0;u<l.length;u++)try{o.push(new RegExp(l[u],s))}catch{return!1}return o},a.prototype.$matchIterator=function(c,s){var l=this.$assembleRegExp(s);if(!l)return!1;var o=s.backwards==!0,u=s.skipCurrent!=!1,p=l.unicode,y=s.range,x=s.start;x||(x=y?y[o?"end":"start"]:c.selection.getRange()),x.start&&(x=x[u!=o?"end":"start"]);var R=y?y.start.row:0,A=y?y.end.row:c.getLength()-1;if(o)var k=function(E){var O=x.row;if(!M(O,x.column,E)){for(O--;O>=R;O--)if(M(O,Number.MAX_VALUE,E))return;if(s.wrap!=!1){for(O=A,R=x.row;O>=R;O--)if(M(O,Number.MAX_VALUE,E))return}}};else var k=function(E){var O=x.row;if(!M(O,x.column,E)){for(O=O+1;O<=A;O++)if(M(O,0,E))return;if(s.wrap!=!1){for(O=R,A=x.row;O<=A;O++)if(M(O,0,E))return}}};if(s.$isMultiLine)var b=l.length,M=function(E,O,T){var N=o?E-b+1:E;if(!(N<0||N+b>c.getLength())){var $=c.getLine(N),_=$.search(l[0]);if(!(!o&&_<O||_===-1)){for(var S=1;S<b;S++)if($=c.getLine(N+S),$.search(l[S])==-1)return;var L=$.match(l[b-1])[0].length;if(!(o&&L>O)&&T(N,_,N+b-1,L))return!0}}};else if(o)var M=function(E,O,T){var N=c.getLine(E),$=[],_,S=0;for(l.lastIndex=0;_=l.exec(N);){var L=_[0].length;if(S=_.index,!L){if(S>=N.length)break;l.lastIndex=S+=g.skipEmptyMatch(N,S,p)}if(_.index+L>O)break;$.push(_.index,L)}for(var I=$.length-1;I>=0;I-=2){var F=$[I-1],L=$[I];if(T(E,F,E,F+L))return!0}};else var M=function(E,O,T){var N=c.getLine(E),$,_;for(l.lastIndex=O;_=l.exec(N);){var S=_[0].length;if($=_.index,T(E,$,E,$+S))return!0;if(!S&&(l.lastIndex=$+=g.skipEmptyMatch(N,$,p),$>=N.length))return!1}};return{forEach:k}},a}();function f(a,c){var s=g.supportsLookbehind();function l(y,x){x===void 0&&(x=!0);var R=s&&c.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return R.test(y)||c.regExp?s&&c.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(a),u=o[0],p=o[o.length-1];return l(u)+a+l(p,!1)}i.Search=h}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,i,m){var g=this&&this.__extends||function(){var s=function(l,o){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(u[y]=p[y])},s(l,o)};return function(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");s(l,o);function u(){this.constructor=l}l.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),v=e("../lib/keys"),w=e("../lib/useragent"),h=v.KEY_MODS,f=function(){function s(l,o){this.$init(l,o,!1)}return s.prototype.$init=function(l,o,u){this.platform=o||(w.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=u},s.prototype.addCommand=function(l){this.commands[l.name]&&this.removeCommand(l),this.commands[l.name]=l,l.bindKey&&this._buildKeyHash(l)},s.prototype.removeCommand=function(l,o){var u=l&&(typeof l=="string"?l:l.name);l=this.commands[u],o||delete this.commands[u];var p=this.commandKeyBinding;for(var y in p){var x=p[y];if(x==l)delete p[y];else if(Array.isArray(x)){var R=x.indexOf(l);R!=-1&&(x.splice(R,1),x.length==1&&(p[y]=x[0]))}}},s.prototype.bindKey=function(l,o,u){if(typeof l=="object"&&l&&(u==null&&(u=l.position),l=l[this.platform]),!!l){if(typeof o=="function")return this.addCommand({exec:o,bindKey:l,name:o.name||l});l.split("|").forEach(function(p){var y="";if(p.indexOf(" ")!=-1){var x=p.split(/\s+/);p=x.pop(),x.forEach(function(k){var b=this.parseKeys(k),M=h[b.hashId]+b.key;y+=(y?" ":"")+M,this._addCommandToBinding(y,"chainKeys")},this),y+=" "}var R=this.parseKeys(p),A=h[R.hashId]+R.key;this._addCommandToBinding(y+A,o,u)},this)}},s.prototype._addCommandToBinding=function(l,o,u){var p=this.commandKeyBinding,y;if(!o)delete p[l];else if(!p[l]||this.$singleCommand)p[l]=o;else{Array.isArray(p[l])?(y=p[l].indexOf(o))!=-1&&p[l].splice(y,1):p[l]=[p[l]],typeof u!="number"&&(u=a(o));var x=p[l];for(y=0;y<x.length;y++){var R=x[y],A=a(R);if(A>u)break}x.splice(y,0,o)}},s.prototype.addCommands=function(l){l&&Object.keys(l).forEach(function(o){var u=l[o];if(u){if(typeof u=="string")return this.bindKey(u,o);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=o),this.addCommand(u))}},this)},s.prototype.removeCommands=function(l){Object.keys(l).forEach(function(o){this.removeCommand(l[o])},this)},s.prototype.bindKeys=function(l){Object.keys(l).forEach(function(o){this.bindKey(o,l[o])},this)},s.prototype._buildKeyHash=function(l){this.bindKey(l.bindKey,l)},s.prototype.parseKeys=function(l){var o=l.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(A){return A}),u=o.pop(),p=v[u];if(v.FUNCTION_KEYS[p])u=v.FUNCTION_KEYS[p].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var y=0,x=o.length;x--;){var R=v.KEY_MODS[o[x]];if(R==null)return typeof console<"u"&&console.error("invalid modifier "+o[x]+" in "+l),!1;y|=R}return{key:u,hashId:y}},s.prototype.findKeyCommand=function(l,o){var u=h[l]+o;return this.commandKeyBinding[u]},s.prototype.handleKeyboard=function(l,o,u,p){if(!(p<0)){var y=h[o]+u,x=this.commandKeyBinding[y];return l.$keyChain&&(l.$keyChain+=" "+y,x=this.commandKeyBinding[l.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(l.$keyChain=l.$keyChain||y,{command:"null"}):(l.$keyChain&&((!o||o==4)&&u.length==1?l.$keyChain=l.$keyChain.slice(0,-y.length-1):(o==-1||p>0)&&(l.$keyChain="")),{command:x})}},s.prototype.getStatusText=function(l,o){return o.$keyChain||""},s}();function a(s){return typeof s=="object"&&s.bindKey&&s.bindKey.position||(s.isDefault?-100:0)}var c=function(s){g(l,s);function l(o,u){var p=s.call(this,o,u)||this;return p.$singleCommand=!0,p}return l}(f);c.call=function(s,l,o){f.prototype.$init.call(s,l,o,!0)},f.call=function(s,l,o){f.prototype.$init.call(s,l,o,!1)},i.HashHandler=c,i.MultiHashHandler=f}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,i,m){var g=this&&this.__extends||function(){var a=function(c,s){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(l[u]=o[u])},a(c,s)};return function(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");a(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),v=e("../lib/oop"),w=e("../keyboard/hash_handler").MultiHashHandler,h=e("../lib/event_emitter").EventEmitter,f=function(a){g(c,a);function c(s,l){var o=a.call(this,l,s)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(u){return u.args?u.command.exec(u.editor,u.args,u.event,!1):u.command.exec(u.editor,{},u.event,!0)}),o}return c.prototype.exec=function(s,l,o){if(Array.isArray(s)){for(var u=s.length;u--;)if(this.exec(s[u],l,o))return!0;return!1}if(typeof s=="string"&&(s=this.commands[s]),!this.canExecute(s,l))return!1;var p={editor:l,command:s,args:o};return p.returnValue=this._emit("exec",p),this._signal("afterExec",p),p.returnValue!==!1},c.prototype.canExecute=function(s,l){return typeof s=="string"&&(s=this.commands[s]),!(!s||l&&l.$readOnly&&!s.readOnly||this.$checkCommandState!=!1&&s.isAvailable&&!s.isAvailable(l))},c.prototype.toggleRecording=function(s){if(!this.$inReplay)return s&&s._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(l){this.macro.push([l.command,l.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},c.prototype.replay=function(s){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(s);try{this.$inReplay=!0,this.macro.forEach(function(l){typeof l=="string"?this.exec(l,s):this.exec(l[0],s,l[1])},this)}finally{this.$inReplay=!1}}},c.prototype.trimMacro=function(s){return s.map(function(l){return typeof l[0]!="string"&&(l[0]=l[0].name),l[1]||(l=l[0]),l})},c}(w);v.implement(f.prototype,h),i.CommandManager=f}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,i,m){var g=e("../lib/lang"),v=e("../config"),w=e("../range").Range;function h(a,c){return{win:a,mac:c}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:h("Ctrl-,","Command-,"),exec:function(a){v.loadModule("ace/ext/settings_menu",function(c){c.init(a),a.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:h("Alt-E","F4"),exec:function(a){v.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(a,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:h("Alt-Shift-E","Shift-F4"),exec:function(a){v.loadModule("ace/ext/error_marker",function(c){c.showErrorMarker(a,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:h("Ctrl-A","Command-A"),exec:function(a){a.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:h(null,"Ctrl-L"),exec:function(a){a.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:h("Ctrl-L","Command-L"),exec:function(a,c){typeof c=="number"&&!isNaN(c)&&a.gotoLine(c),a.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:h("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(a){a.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:h("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(a){a.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:h("F2","F2"),exec:function(a){a.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:h("Alt-F2","Alt-F2"),exec:function(a){a.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:h(null,"Ctrl-Command-Option-0"),exec:function(a){a.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:h("Alt-0","Command-Option-0"),exec:function(a){a.session.foldAll(),a.session.unfold(a.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:h("Alt-Shift-0","Command-Option-Shift-0"),exec:function(a){a.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:h("Ctrl-K","Command-G"),exec:function(a){a.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:h("Ctrl-Shift-K","Command-Shift-G"),exec:function(a){a.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:h("Alt-K","Ctrl-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:h("Alt-Shift-K","Ctrl-Shift-G"),exec:function(a){a.selection.isEmpty()?a.selection.selectWord():a.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:h("Ctrl-F","Command-F"),exec:function(a){v.loadModule("ace/ext/searchbox",function(c){c.Search(a)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(a){a.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:h("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(a){a.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:h("Ctrl-Home","Command-Home|Command-Up"),exec:function(a){a.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:h("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(a){a.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:h("Up","Up|Ctrl-P"),exec:function(a,c){a.navigateUp(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:h("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(a){a.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:h("Ctrl-End","Command-End|Command-Down"),exec:function(a){a.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:h("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(a){a.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:h("Down","Down|Ctrl-N"),exec:function(a,c){a.navigateDown(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:h("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(a){a.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:h("Ctrl-Left","Option-Left"),exec:function(a){a.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:h("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:h("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(a){a.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:h("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(a){a.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:h("Left","Left|Ctrl-B"),exec:function(a,c){a.navigateLeft(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:h("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(a){a.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:h("Ctrl-Right","Option-Right"),exec:function(a){a.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:h("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:h("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(a){a.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:h("Shift-Right","Shift-Right"),exec:function(a){a.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:h("Right","Right|Ctrl-F"),exec:function(a,c){a.navigateRight(c.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(a){a.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:h(null,"Option-PageDown"),exec:function(a){a.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:h("PageDown","PageDown|Ctrl-V"),exec:function(a){a.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(a){a.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:h(null,"Option-PageUp"),exec:function(a){a.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(a){a.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:h("Ctrl-Up",null),exec:function(a){a.renderer.scrollBy(0,-2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:h("Ctrl-Down",null),exec:function(a){a.renderer.scrollBy(0,2*a.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(a){a.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(a){a.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:h("Ctrl-Alt-E","Command-Option-E"),exec:function(a){a.commands.toggleRecording(a)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:h("Ctrl-Shift-E","Command-Shift-E"),exec:function(a){a.commands.replay(a)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:h("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(a){a.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:h("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(a){a.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:h("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(a){a.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:h(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(a){},readOnly:!0},{name:"cut",description:"Cut",exec:function(a){var c=a.$copyWithEmptySelection&&a.selection.isEmpty(),s=c?a.selection.getLineRange():a.selection.getRange();a._emit("cut",s),s.isEmpty()||a.session.remove(s),a.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(a,c){a.$handlePaste(c)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:h("Ctrl-D","Command-D"),exec:function(a){a.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:h("Ctrl-Shift-D","Command-Shift-D"),exec:function(a){a.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:h("Ctrl-Alt-S","Command-Alt-S"),exec:function(a){a.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:h("Ctrl-/","Command-/"),exec:function(a){a.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:h("Ctrl-Shift-/","Command-Shift-/"),exec:function(a){a.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:h("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(a){a.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:h("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(a){a.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:h("Ctrl-H","Command-Option-F"),exec:function(a){v.loadModule("ace/ext/searchbox",function(c){c.Search(a,!0)})}},{name:"undo",description:"Undo",bindKey:h("Ctrl-Z","Command-Z"),exec:function(a){a.undo()}},{name:"redo",description:"Redo",bindKey:h("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(a){a.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:h("Alt-Shift-Up","Command-Option-Up"),exec:function(a){a.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:h("Alt-Up","Option-Up"),exec:function(a){a.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:h("Alt-Shift-Down","Command-Option-Down"),exec:function(a){a.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:h("Alt-Down","Option-Down"),exec:function(a){a.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:h("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(a){a.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:h("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(a){a.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:h("Shift-Delete",null),exec:function(a){if(a.selection.isEmpty())a.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:h("Alt-Backspace","Command-Backspace"),exec:function(a){a.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:h("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(a){a.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:h("Ctrl-Shift-Backspace",null),exec:function(a){var c=a.selection.getRange();c.start.column=0,a.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:h("Ctrl-Shift-Delete",null),exec:function(a){var c=a.selection.getRange();c.end.column=Number.MAX_VALUE,a.session.remove(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:h("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(a){a.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:h("Ctrl-Delete","Alt-Delete"),exec:function(a){a.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:h("Shift-Tab","Shift-Tab"),exec:function(a){a.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:h("Tab","Tab"),exec:function(a){a.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:h("Ctrl-[","Ctrl-["),exec:function(a){a.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:h("Ctrl-]","Ctrl-]"),exec:function(a){a.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(a,c){a.insert(c)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(a,c){a.insert(g.stringRepeat(c.text||"",c.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:h(null,"Ctrl-O"),exec:function(a){a.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:h("Alt-Shift-X","Ctrl-T"),exec:function(a){a.transposeLetters()},multiSelectAction:function(a){a.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:h("Ctrl-U","Ctrl-U"),exec:function(a){a.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:h("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(a){a.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:h(null,null),exec:function(a){a.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:h("Ctrl-Shift-L","Command-Shift-L"),exec:function(a){var c=a.selection.getRange();c.start.column=c.end.column=0,c.end.row++,a.selection.setRange(c,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:h("Ctrl+F3","F3"),exec:function(a){a.openLink()}},{name:"joinlines",description:"Join lines",bindKey:h(null,null),exec:function(a){for(var c=a.selection.isBackwards(),s=c?a.selection.getSelectionLead():a.selection.getSelectionAnchor(),l=c?a.selection.getSelectionAnchor():a.selection.getSelectionLead(),o=a.session.doc.getLine(s.row).length,u=a.session.doc.getTextRange(a.selection.getRange()),p=u.replace(/\n\s*/," ").length,y=a.session.doc.getLine(s.row),x=s.row+1;x<=l.row+1;x++){var R=g.stringTrimLeft(g.stringTrimRight(a.session.doc.getLine(x)));R.length!==0&&(R=" "+R),y+=R}l.row+1<a.session.doc.getLength()-1&&(y+=a.session.doc.getNewLineCharacter()),a.clearSelection(),a.session.doc.replace(new w(s.row,0,l.row+2,0),y),p>0?(a.selection.moveCursorTo(s.row,s.column),a.selection.selectTo(s.row,s.column+p)):(o=a.session.doc.getLine(s.row).length>o?o+1:o,a.selection.moveCursorTo(s.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:h(null,null),exec:function(a){var c=a.session.doc.getLength()-1,s=a.session.doc.getLine(c).length,l=a.selection.rangeList.ranges,o=[];l.length<1&&(l=[a.selection.getRange()]);for(var u=0;u<l.length;u++)u==l.length-1&&(l[u].end.row===c&&l[u].end.column===s||o.push(new w(l[u].end.row,l[u].end.column,c,s))),u===0?l[u].start.row===0&&l[u].start.column===0||o.push(new w(0,0,l[u].start.row,l[u].start.column)):o.push(new w(l[u-1].end.row,l[u-1].end.column,l[u].start.row,l[u].start.column));a.exitMultiSelectMode(),a.clearSelection();for(var u=0;u<o.length;u++)a.selection.addRange(o[u],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(a){a.selection.clearSelection(),a.navigateLineEnd(),a.insert(`
201
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(a){a.selection.clearSelection();var c=a.getCursorPosition();a.selection.moveTo(c.row-1,Number.MAX_VALUE),a.insert(`
202
+ `),c.row===0&&a.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(a){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),a.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:h("F1","F1"),exec:function(a){a.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:h(null,null),exec:function(a){a.prompt({$type:"modes"})},readOnly:!0}];for(var f=1;f<9;f++)i.commands.push({name:"foldToLevel"+f,description:"Fold To Level "+f,level:f,exec:function(a){a.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(e,i,m){var g=e("../lib/keys"),v=e("../mouse/default_gutter_handler").GutterTooltip,w=function(){function f(a){this.editor=a,this.gutterLayer=a.renderer.$gutterLayer,this.element=a.renderer.$gutter,this.lines=a.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new v(this.editor)}return f.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))},f.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))},f.prototype.$onGutterKeyDown=function(a){if(this.annotationTooltip.isOpen){a.preventDefault(),a.keyCode===g.escape&&this.annotationTooltip.hideTooltip();return}if(a.target===this.element){if(a.keyCode!=g.enter)return;a.preventDefault();var c=this.editor.getCursorPosition().row;this.editor.isRowVisible(c)||this.editor.scrollToLine(c,!0,!0),setTimeout((function(){var s=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),l=this.$findNearestFoldWidget(s),o=this.$findNearestAnnotation(s);if(!(l===null&&o===null)){if(l===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(l!==null&&o===null){this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-s)<Math.abs(l-s)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=l,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(a),setTimeout((function(){this.editor._signal("gutterkeydown",new h(a,this))}).bind(this),10)},f.prototype.$handleGutterKeyboardInteraction=function(a){if(a.keyCode===g.tab){a.preventDefault();return}if(a.keyCode===g.escape){a.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(a.keyCode===g.up){switch(a.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(a.keyCode===g.down){switch(a.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(a.keyCode===g.left){a.preventDefault(),this.$switchLane("annotation");return}if(a.keyCode===g.right){a.preventDefault(),this.$switchLane("fold");return}if(a.keyCode===g.enter||a.keyCode===g.space){switch(a.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var c=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),a),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==c&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(c),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var s=this.lines.cells[this.activeRowIndex].element.childNodes[2],l=s.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=l.right+"px",o.top=l.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},f.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()},f.prototype.$isFoldWidgetVisible=function(a){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(a)),s=this.$getFoldWidget(a).style.display!=="none";return c&&s},f.prototype.$isAnnotationVisible=function(a){var c=this.editor.isRowFullyVisible(this.$rowIndexToRow(a)),s=this.$getAnnotation(a).style.display!=="none";return c&&s},f.prototype.$getFoldWidget=function(a){var c=this.lines.get(a),s=c.element;return s.childNodes[1]},f.prototype.$getAnnotation=function(a){var c=this.lines.get(a),s=c.element;return s.childNodes[2]},f.prototype.$findNearestFoldWidget=function(a){if(this.$isFoldWidgetVisible(a))return a;for(var c=0;a-c>0||a+c<this.lines.getLength()-1;){if(c++,a-c>=0&&this.$isFoldWidgetVisible(a-c))return a-c;if(a+c<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(a+c))return a+c}return null},f.prototype.$findNearestAnnotation=function(a){if(this.$isAnnotationVisible(a))return a;for(var c=0;a-c>0||a+c<this.lines.getLength()-1;){if(c++,a-c>=0&&this.$isAnnotationVisible(a-c))return a-c;if(a+c<=this.lines.getLength()-1&&this.$isAnnotationVisible(a+c))return a+c}return null},f.prototype.$focusFoldWidget=function(a){if(a!=null){var c=this.$getFoldWidget(a);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},f.prototype.$focusAnnotation=function(a){if(a!=null){var c=this.$getAnnotation(a);c.classList.add(this.editor.renderer.keyboardFocusClassName),c.focus()}},f.prototype.$blurFoldWidget=function(a){var c=this.$getFoldWidget(a);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},f.prototype.$blurAnnotation=function(a){var c=this.$getAnnotation(a);c.classList.remove(this.editor.renderer.keyboardFocusClassName),c.blur()},f.prototype.$moveFoldWidgetUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},f.prototype.$moveFoldWidgetDown=function(){for(var a=this.activeRowIndex;a<this.lines.getLength()-1;)if(a++,this.$isFoldWidgetVisible(a)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);return}},f.prototype.$moveAnnotationUp=function(){for(var a=this.activeRowIndex;a>0;)if(a--,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},f.prototype.$moveAnnotationDown=function(){for(var a=this.activeRowIndex;a<this.lines.getLength()-1;)if(a++,this.$isAnnotationVisible(a)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusAnnotation(this.activeRowIndex);return}},f.prototype.$switchLane=function(a){switch(a){case"annotation":if(this.activeLane==="annotation")break;var c=this.$findNearestAnnotation(this.activeRowIndex);if(c==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=c,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var s=this.$findNearestFoldWidget(this.activeRowIndex);if(s==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);break}},f.prototype.$rowIndexToRow=function(a){var c=this.lines.get(a);return c?c.row:null},f.prototype.$rowToRowIndex=function(a){for(var c=0;c<this.lines.getLength();c++){var s=this.lines.get(c);if(s.row==a)return c}return null},f}();i.GutterKeyboardHandler=w;var h=function(){function f(a,c){this.gutterKeyboardHandler=c,this.domEvent=a}return f.prototype.getKey=function(){return g.keyCodeToString(this.domEvent.keyCode)},f.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},f.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},f.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},f}();i.GutterKeyboardEvent=h}),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(e,i,m){var g=this&&this.__values||function($){var _=typeof Symbol=="function"&&Symbol.iterator,S=_&&$[_],L=0;if(S)return S.call($);if($&&typeof $.length=="number")return{next:function(){return $&&L>=$.length&&($=void 0),{value:$&&$[L++],done:!$}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/lang"),f=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,s=e("./mouse/fold_handler").FoldHandler,l=e("./keyboard/keybinding").KeyBinding,o=e("./edit_session").EditSession,u=e("./search").Search,p=e("./range").Range,y=e("./lib/event_emitter").EventEmitter,x=e("./commands/command_manager").CommandManager,R=e("./commands/default_commands").commands,A=e("./config"),k=e("./token_iterator").TokenIterator,b=e("./keyboard/gutter_handler").GutterKeyboardHandler,M=e("./config").nls,E=e("./clipboard"),O=e("./lib/keys"),T=function(){function $(_,S,L){this.session,this.$toDestroy=[];var I=_.getContainerElement();this.container=I,this.renderer=_,this.id="editor"+ ++$.$uid,this.commands=new x(f.isMac?"mac":"win",R),typeof document=="object"&&(this.textInput=new a(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new s(this)),this.keyBinding=new l(this),this.$search=new u().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.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(S||L&&L.session||new o("")),A.resetOptions(this),L&&this.setOptions(L),A._signal("editor",this)}return $.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},$.prototype.startOperation=function(_){this.session.startOperation(_)},$.prototype.endOperation=function(_){this.session.endOperation(_)},$.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},$.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var S=this.curOp.command,L=S&&S.scrollIntoView;if(L){switch(L){case"center-animate":L="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var I=this.selection.getRange(),F=this.renderer.layerConfig;(I.start.row>=F.lastRow||I.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}L=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},$.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var S=this.prevOp,L=this.$mergeableCommands,I=S.command&&_.command.name==S.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),I=I&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test(S.args)),this.mergeNextCommand=!0}else I=I&&L.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(I=!1),I?this.session.mergeUndoDeltas=!0:L.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},$.prototype.setKeyboardHandler=function(_,S){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var L=this;A.loadModule(["keybinding",_],function(I){L.$keybindingId==_&&L.keyBinding.setKeyboardHandler(I&&I.handler),S&&S()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),S&&S()},$.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},$.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var S=this.session;if(S){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 L=this.session.getSelection();L.off("changeCursor",this.$onCursorChange),L.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=_.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(_)),this._signal("changeSession",{session:_,oldSession:S}),this.curOp=null,S&&S._signal("changeEditor",{oldEditor:this}),S&&(S.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},$.prototype.getSession=function(){return this.session},$.prototype.setValue=function(_,S){return this.session.doc.setValue(_),S?S==1?this.navigateFileEnd():S==-1&&this.navigateFileStart():this.selectAll(),_},$.prototype.getValue=function(){return this.session.getValue()},$.prototype.getSelection=function(){return this.selection},$.prototype.resize=function(_){this.renderer.onResize(_)},$.prototype.setTheme=function(_,S){this.renderer.setTheme(_,S)},$.prototype.getTheme=function(){return this.renderer.getTheme()},$.prototype.setStyle=function(_){this.renderer.setStyle(_)},$.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},$.prototype.getFontSize=function(){return this.getOption("fontSize")||w.computedStyle(this.container).fontSize},$.prototype.setFontSize=function(_){this.setOption("fontSize",_)},$.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var S=_.session;if(!(!S||S.destroyed)){S.$bracketHighlight&&(S.$bracketHighlight.markerIds.forEach(function(G){S.removeMarker(G)}),S.$bracketHighlight=null);var L=_.getCursorPosition(),I=_.getKeyboardHandler(),F=I&&I.$getDirectionForHighlight&&I.$getDirectionForHighlight(_),H=S.getMatchingBracketRanges(L,F);if(!H){var W=new k(S,L.row,L.column),V=W.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=S.getMatchingTags(L);q&&(H=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!H&&S.$mode.getMatching&&(H=S.$mode.getMatching(_.session)),!H){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(H)?H.length==1&&(X="ace_error_bracket"):H=[H],H.length==2&&(p.comparePoints(H[0].end,H[1].start)==0?H=[p.fromPoints(H[0].start,H[1].end)]:p.comparePoints(H[0].start,H[1].end)==0&&(H=[p.fromPoints(H[1].start,H[0].end)])),S.$bracketHighlight={ranges:H,markerIds:H.map(function(G){return S.addMarker(G,X,"text")})},_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide()}},50)}},$.prototype.focus=function(){this.textInput.focus()},$.prototype.isFocused=function(){return this.textInput.isFocused()},$.prototype.blur=function(){this.textInput.blur()},$.prototype.onFocus=function(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},$.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},$.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},$.prototype.onDocumentChange=function(_){var S=this.session.$useWrapMode,L=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,L,S),this._signal("change",_),this.$cursorChange()},$.prototype.onTokenizerUpdate=function(_){var S=_.data;this.renderer.updateLines(S.first,S.last)},$.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},$.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},$.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},$.prototype.$updateHighlightActiveLine=function(){var _=this.getSession(),S;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(S=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(S=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(S=!1)),_.$highlightLineMarker&&!S)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&S){var L=new p(S.row,S.column,S.row,1/0);L.id=_.addMarker(L,"ace_active-line","screenLine"),_.$highlightLineMarker=L}else S&&(_.$highlightLineMarker.start.row=S.row,_.$highlightLineMarker.end.row=S.row,_.$highlightLineMarker.start.column=S.column,_._signal("changeBackMarker"))},$.prototype.onSelectionChange=function(_){var S=this.session;if(S.$selectionMarker&&S.removeMarker(S.$selectionMarker),S.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var L=this.selection.getRange(),I=this.getSelectionStyle();S.$selectionMarker=S.addMarker(L,"ace_selection",I)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},$.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,S=this.getSelectionRange();if(!(S.isEmpty()||S.isMultiLine())){var L=S.start.column,I=S.end.column,F=_.getLine(S.start.row),H=F.substring(L,I);if(!(H.length>5e3||!/[\w\d]/.test(H))){var W=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:H}),V=F.substring(L-1,I+1);if(W.test(V))return W}}},$.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},$.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},$.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},$.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},$.prototype.onChangeMode=function(_){this.renderer.updateText(),this._emit("changeMode",_)},$.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},$.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},$.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},$.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},$.prototype.getCopyText=function(){var _=this.getSelectedText(),S=this.session.doc.getNewLineCharacter(),L=!1;if(!_&&this.$copyWithEmptySelection){L=!0;for(var I=this.selection.getAllRanges(),F=0;F<I.length;F++){var H=I[F];F&&I[F-1].start.row==H.start.row||(_+=this.session.getLine(H.start.row)+S)}}var W={text:_};return this._signal("copy",W),E.lineMode=L?W.text:!1,W.text},$.prototype.onCopy=function(){this.commands.exec("copy",this)},$.prototype.onCut=function(){this.commands.exec("cut",this)},$.prototype.onPaste=function(_,S){var L={text:_,event:S};this.commands.exec("paste",this,L)},$.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var S=_.text,L=S===E.lineMode,I=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)L?I.insert({row:this.selection.lead.row,column:0},S):this.insert(S);else if(L)this.selection.rangeList.ranges.forEach(function(X){I.insert({row:X.start.row,column:0},S)});else{var F=S.split(/\r\n|\r|\n/),H=this.selection.rangeList.ranges,W=F.length==2&&(!F[0]||!F[1]);if(F.length!=H.length||W)return this.commands.exec("insertstring",this,S);for(var V=H.length;V--;){var q=H[V];q.isEmpty()||I.remove(q),I.insert(q.start,F[V])}}},$.prototype.execCommand=function(_,S){return this.commands.exec(_,this,S)},$.prototype.insert=function(_,S){var L=this.session,I=L.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!S){var H=I.transformAction(L.getState(F.row),"insertion",this,L,_);H&&(_!==H.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=H.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
203
+ `)==-1){var W=p.fromPoints(F,F);W.end.column+=_.length,this.session.remove(W)}}else{var W=this.getSelectionRange();F=this.session.remove(W),this.clearSelection()}if(_==`
204
+ `||_==`\r
205
+ `){var G=L.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);L.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,X=L.getState(F.row),G=L.getLine(F.row),Z=I.checkOutdent(X,G,_);if(L.insert(F,_),H&&H.selection&&(H.selection.length==2?this.selection.setSelectionRange(new p(F.row,q+H.selection[0],F.row,q+H.selection[1])):this.selection.setSelectionRange(new p(F.row+H.selection[0],H.selection[1],F.row+H.selection[2],H.selection[3]))),this.$enableAutoIndent){if(L.getDocument().isNewLine(_)){var ie=I.getNextLineIndent(X,G.slice(0,F.column),L.getTabString());L.insert({row:F.row+1,column:0},ie)}Z&&I.autoOutdent(X,L,F.row)}},$.prototype.autoIndent=function(){for(var _=this.session,S=_.getMode(),L=this.selection.isEmpty()?[new p(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),I="",F="",H="",W=_.getTabString(),V=0;V<L.length;V++)for(var q=L[V].start.row,X=L[V].end.row,G=q;G<=X;G++){G>0&&(I=_.getState(G-1),F=_.getLine(G-1),H=S.getNextLineIndent(I,F,W));var Z=_.getLine(G),ie=S.$getIndent(Z);if(H!==ie){if(ie.length>0){var J=new p(G,0,G,ie.length);_.remove(J)}H.length>0&&_.insert({row:G,column:0},H)}S.autoOutdent(I,_,G)}},$.prototype.onTextInput=function(_,S){if(!S)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var L=this.applyComposition.bind(this,_,S);this.selection.rangeCount?this.forEachSelection(L):L(),this.endOperation()},$.prototype.applyComposition=function(_,S){if(S.extendLeft||S.extendRight){var L=this.selection.getRange();L.start.column-=S.extendLeft,L.end.column+=S.extendRight,L.start.column<0&&(L.start.row--,L.start.column+=this.session.getLine(L.start.row).length+1),this.selection.setRange(L),!_&&!L.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),S.restoreStart||S.restoreEnd){var L=this.selection.getRange();L.start.column-=S.restoreStart,L.end.column-=S.restoreEnd,this.selection.setRange(L)}},$.prototype.onCommandKey=function(_,S,L){return this.keyBinding.onCommandKey(_,S,L)},$.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},$.prototype.getOverwrite=function(){return this.session.getOverwrite()},$.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},$.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},$.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},$.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},$.prototype.getDragDelay=function(){return this.getOption("dragDelay")},$.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},$.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},$.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},$.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},$.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},$.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},$.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},$.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},$.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},$.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},$.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},$.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},$.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},$.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},$.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},$.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},$.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},$.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},$.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},$.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},$.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},$.prototype.getReadOnly=function(){return this.getOption("readOnly")},$.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},$.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},$.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},$.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},$.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},$.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},$.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},$.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},$.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var S=this.getSelectionRange();if(this.getBehavioursEnabled()){var L=this.session,I=L.getState(S.start.row),F=L.getMode().transformAction(I,"deletion",this,L,S);if(S.end.column===0){var H=L.getTextRange(S);if(H[H.length-1]==`
206
+ `){var W=L.getLine(S.end.row);/^\s+$/.test(W)&&(S.end.column=W.length)}}F&&(S=F)}this.session.remove(S),this.clearSelection()},$.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},$.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},$.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
207
+ `),this.moveCursorToPosition(_)},$.prototype.setGhostText=function(_,S){this.renderer.setGhostText(_,S)},$.prototype.removeGhostText=function(){this.renderer.removeGhostText()},$.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),S=_.column;if(S!==0){var L=this.session.getLine(_.row),I,F;S<L.length?(I=L.charAt(S)+L.charAt(S-1),F=new p(_.row,S-1,_.row,S+1)):(I=L.charAt(S-1)+L.charAt(S-2),F=new p(_.row,S-2,_.row,S)),this.session.replace(F,I),this.session.selection.moveToPosition(F.end)}}},$.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),L=this.session.getTextRange(S);this.session.replace(S,L.toLowerCase()),this.selection.setSelectionRange(_)},$.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),L=this.session.getTextRange(S);this.session.replace(S,L.toUpperCase()),this.selection.setSelectionRange(_)},$.prototype.indent=function(){var _=this.session,S=this.getSelectionRange();if(S.start.row<S.end.row){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}else if(S.start.column<S.end.column){var I=_.getTextRange(S);if(!/^\s+$/.test(I)){var L=this.$getSelectedRows();_.indentRows(L.first,L.last," ");return}}var F=_.getLine(S.start.row),H=S.start,W=_.getTabSize(),V=_.documentToScreenColumn(H.row,H.column);if(this.session.getUseSoftTabs())var q=W-V%W,X=h.stringRepeat(" ",q);else{for(var q=V%W;F[S.start.column-1]==" "&&q;)S.start.column--,q--;this.selection.setSelectionRange(S),X=" "}return this.insert(X)},$.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},$.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},$.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),S=this.session,L=[],I=_.first;I<=_.last;I++)L.push(S.getLine(I));L.sort(function(W,V){return W.toLowerCase()<V.toLowerCase()?-1:W.toLowerCase()>V.toLowerCase()?1:0});for(var F=new p(0,0,0,0),I=_.first;I<=_.last;I++){var H=S.getLine(I);F.start.row=I,F.end.row=I,F.end.column=H.length,S.replace(F,L[I-_.first])}},$.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),S=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,S.first,S.last)},$.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),S=this.session.getState(_.row),L=this.getSelectionRange();this.session.getMode().toggleBlockComment(S,this.session,L,_)},$.prototype.getNumberAt=function(_,S){var L=/[\-]?[0-9]+(?:\.[0-9]+)?/g;L.lastIndex=0;for(var I=this.session.getLine(_);L.lastIndex<S;){var F=L.exec(I);if(F.index<=S&&F.index+F[0].length>=S){var H={value:F[0],start:F.index,end:F.index+F[0].length};return H}}return null},$.prototype.modifyNumber=function(_){var S=this.selection.getCursor().row,L=this.selection.getCursor().column,I=new p(S,L-1,S,L),F=this.session.getTextRange(I);if(!isNaN(parseFloat(F))&&isFinite(F)){var H=this.getNumberAt(S,L);if(H){var W=H.value.indexOf(".")>=0?H.start+H.value.indexOf(".")+1:H.end,V=H.start+H.value.length-W,q=parseFloat(H.value);q*=Math.pow(10,V),W!==H.end&&L<W?_*=Math.pow(10,H.end-L-1):_*=Math.pow(10,H.end-L),q+=_,q/=Math.pow(10,V);var X=q.toFixed(V),G=new p(S,H.start,S,H.end);this.session.replace(G,X),this.moveCursorTo(S,Math.max(H.start+1,L+X.length-H.value.length))}}else this.toggleWord()},$.prototype.toggleWord=function(){var _=this.selection.getCursor().row,S=this.selection.getCursor().column;this.selection.selectWord();var L=this.getSelectedText(),I=this.selection.getWordRange().start.column,F=L.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),H=S-I-1;H<0&&(H=0);var W=0,V=0,q=this;L.match(/[A-Za-z0-9_]+/)&&F.forEach(function(fe,_e){V=W+fe.length,H>=W&&H<=V&&(L=fe,q.selection.clearSelection(),q.moveCursorTo(_,W+I),q.selection.selectTo(_,V+I)),W=V});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var ie=X[Z],J=0;J<=1;J++){var ae=+!J,me=L.match(new RegExp("^\\s?_?("+h.escapeRegExp(ie[J])+")\\s?$","i"));if(me){var ye=L.match(new RegExp("([_]|^|\\s)("+h.escapeRegExp(me[1])+")($|\\s)","g"));ye&&(G=L.replace(new RegExp(h.escapeRegExp(ie[J]),"i"),function(fe){var _e=ie[ae];return fe.toUpperCase()==fe?_e=_e.toUpperCase():fe.charAt(0).toUpperCase()==fe.charAt(0)&&(_e=_e.substr(0,0)+ie[ae].charAt(0).toUpperCase()+_e.substr(1)),_e}),this.insert(G),G="")}}},$.prototype.findLinkAt=function(_,S){var L,I,F=this.session.getLine(_),H=F.split(/((?:https?|ftp):\/\/[\S]+)/),W=S;W<0&&(W=0);var V=0,q=0,X;try{for(var G=g(H),Z=G.next();!Z.done;Z=G.next()){var ie=Z.value;if(q=V+ie.length,W>=V&&W<=q&&ie.match(/((?:https?|ftp):\/\/[\S]+)/)){X=ie.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(J){L={error:J}}finally{try{Z&&!Z.done&&(I=G.return)&&I.call(G)}finally{if(L)throw L.error}}return X},$.prototype.openLink=function(){var _=this.selection.getCursor(),S=this.findLinkAt(_.row,_.column);return S&&window.open(S,"_blank"),S!=null},$.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},$.prototype.duplicateSelection=function(){var _=this.selection,S=this.session,L=_.getRange(),I=_.isBackwards();if(L.isEmpty()){var F=L.start.row;S.duplicateLines(F,F)}else{var H=I?L.start:L.end,W=S.insert(H,S.getTextRange(L));L.start=H,L.end=W,_.setSelectionRange(L,I)}},$.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},$.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},$.prototype.moveText=function(_,S,L){return this.session.moveText(_,S,L)},$.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},$.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},$.prototype.$moveLines=function(_,S){var L,I,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var H=F.toOrientedRange();L=this.$getSelectedRows(H),I=this.session.$moveLines(L.first,L.last,S?0:_),S&&_==-1&&(I=0),H.moveBy(I,0),F.fromOrientedRange(H)}else{var W=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,X=W.length,G=0;G<X;G++){var Z=G;W[G].moveBy(V,0),L=this.$getSelectedRows(W[G]);for(var ie=L.first,J=L.last;++G<X;){q&&W[G].moveBy(q,0);var ae=this.$getSelectedRows(W[G]);if(S&&ae.first!=J||!S&&ae.first>J+1)break;J=ae.last}for(G--,V=this.session.$moveLines(ie,J,S?0:_),S&&_==-1&&(Z=G+1);Z<=G;)W[Z].moveBy(V,0),Z++;S||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},$.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},$.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},$.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},$.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},$.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},$.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},$.prototype.isRowVisible=function(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},$.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},$.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},$.prototype.$moveByPage=function(_,S){var L=this.renderer,I=this.renderer.layerConfig,F=_*Math.floor(I.height/I.lineHeight);S===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):S===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var H=L.scrollTop;L.scrollBy(0,F*I.lineHeight),S!=null&&L.scrollCursorIntoView(null,.5),L.animateScrolling(H)},$.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},$.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},$.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},$.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},$.prototype.scrollPageDown=function(){this.$moveByPage(1)},$.prototype.scrollPageUp=function(){this.$moveByPage(-1)},$.prototype.scrollToRow=function(_){this.renderer.scrollToRow(_)},$.prototype.scrollToLine=function(_,S,L,I){this.renderer.scrollToLine(_,S,L,I)},$.prototype.centerSelection=function(){var _=this.getSelectionRange(),S={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor(S,.5)},$.prototype.getCursorPosition=function(){return this.selection.getCursor()},$.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},$.prototype.getSelectionRange=function(){return this.selection.getRange()},$.prototype.selectAll=function(){this.selection.selectAll()},$.prototype.clearSelection=function(){this.selection.clearSelection()},$.prototype.moveCursorTo=function(_,S){this.selection.moveCursorTo(_,S)},$.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},$.prototype.jumpToMatching=function(_,S){var L=this.getCursorPosition(),I=new k(this.session,L.row,L.column),F=I.getCurrentToken(),H=0;F&&F.type.indexOf("tag-name")!==-1&&(F=I.stepBackward());var W=F||I.stepForward();if(W){var V,q=!1,X={},G=L.column-W.start,Z,ie={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(W.value.match(/[{}()\[\]]/g)){for(;G<W.value.length&&!q;G++)if(ie[W.value[G]])switch(Z=ie[W.value[G]]+"."+W.type.replace("rparen","lparen"),isNaN(X[Z])&&(X[Z]=0),W.value[G]){case"(":case"[":case"{":X[Z]++;break;case")":case"]":case"}":X[Z]--,X[Z]===-1&&(V="bracket",q=!0);break}}else W.type.indexOf("tag-name")!==-1&&(isNaN(X[W.value])&&(X[W.value]=0),F.value==="<"&&H>1?X[W.value]++:F.value==="</"&&X[W.value]--,X[W.value]===-1&&(V="tag",q=!0));q||(F=W,H++,W=I.stepForward(),G=0)}while(W&&!q);if(V){var J,ae;if(V==="bracket")J=this.session.getBracketRange(L),J||(J=new p(I.getCurrentTokenRow(),I.getCurrentTokenColumn()+G-1,I.getCurrentTokenRow(),I.getCurrentTokenColumn()+G-1),ae=J.start,(S||ae.row===L.row&&Math.abs(ae.column-L.column)<2)&&(J=this.session.getBracketRange(ae)));else if(V==="tag"){if(!W||W.type.indexOf("tag-name")===-1)return;if(J=new p(I.getCurrentTokenRow(),I.getCurrentTokenColumn()-2,I.getCurrentTokenRow(),I.getCurrentTokenColumn()-2),J.compare(L.row,L.column)===0){var me=this.session.getMatchingTags(L);me&&(me.openTag.contains(L.row,L.column)?(J=me.closeTag,ae=J.start):(J=me.openTag,me.closeTag.start.row===L.row&&me.closeTag.start.column===L.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(_?J&&S?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))}}},$.prototype.gotoLine=function(_,S,L){this.selection.clearSelection(),this.session.unfold({row:_-1,column:S||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,S||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,L)},$.prototype.navigateTo=function(_,S){this.selection.moveTo(_,S)},$.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var S=this.selection.anchor.getPosition();return this.moveCursorToPosition(S)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},$.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var S=this.selection.anchor.getPosition();return this.moveCursorToPosition(S)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},$.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var S=this.getSelectionRange().start;this.moveCursorToPosition(S)}this.clearSelection()},$.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var S=this.getSelectionRange().end;this.moveCursorToPosition(S)}this.clearSelection()},$.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},$.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},$.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},$.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},$.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},$.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},$.prototype.replace=function(_,S){S&&this.$search.set(S);var L=this.$search.find(this.session),I=0;return L&&(this.$tryReplace(L,_)&&(I=1),this.selection.setSelectionRange(L),this.renderer.scrollSelectionIntoView(L.start,L.end)),I},$.prototype.replaceAll=function(_,S){S&&this.$search.set(S);var L=this.$search.findAll(this.session),I=0;if(!L.length)return I;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var H=L.length-1;H>=0;--H)this.$tryReplace(L[H],_)&&I++;return this.selection.setSelectionRange(F),I},$.prototype.$tryReplace=function(_,S){var L=this.session.getTextRange(_);return S=this.$search.replace(L,S),S!==null?(_.end=this.session.replace(_,S),_):null},$.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},$.prototype.find=function(_,S,L){S||(S={}),typeof _=="string"||_ instanceof RegExp?S.needle=_:typeof _=="object"&&v.mixin(S,_);var I=this.selection.getRange();S.needle==null&&(_=this.session.getTextRange(I)||this.$search.$options.needle,_||(I=this.session.getWordRange(I.start.row,I.start.column),_=this.session.getTextRange(I)),this.$search.set({needle:_})),this.$search.set(S),S.start||this.$search.set({start:I});var F=this.$search.find(this.session);if(S.preventScroll)return F;if(F)return this.revealRange(F,L),F;S.backwards?I.start=I.end:I.end=I.start,this.selection.setRange(I)},$.prototype.findNext=function(_,S){this.find({skipCurrent:!0,backwards:!1},_,S)},$.prototype.findPrevious=function(_,S){this.find(_,{skipCurrent:!0,backwards:!0},S)},$.prototype.revealRange=function(_,S){this.session.unfold(_),this.selection.setSelectionRange(_);var L=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),S!==!1&&this.renderer.animateScrolling(L)},$.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},$.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(_){_.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},$.prototype.setAutoScrollEditorIntoView=function(_){if(_){var S,L=this,I=!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(){I=!0}),W=this.renderer.on("beforeRender",function(){I&&(S=L.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(I&&S&&(L.isFocused()||L.searchBox&&L.searchBox.isFocused())){var q=L.renderer,X=q.$cursorLayer.$pixelPos,G=q.layerConfig,Z=X.top-G.offset;X.top>=0&&Z+S.top<0?I=!0:X.top<G.height&&X.top+S.top+G.lineHeight>window.innerHeight?I=!1:I=null,I!=null&&(F.style.top=Z+"px",F.style.left=X.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(I)),I=S=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",H),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",W))}}},$.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",S=this.renderer.$cursorLayer;S&&(S.setSmoothBlinking(/smooth/.test(_)),S.isBlinking=!this.$readOnly&&_!="wide",w.setCssClass(S.element,"ace_slim-cursors",/slim/.test(_)))},$.prototype.prompt=function(_,S,L){var I=this;A.loadModule("ace/ext/prompt",function(F){F.prompt(I,_,S,L)})},$}();T.$uid=0,T.prototype.curOp=null,T.prototype.prevOp={},T.prototype.$mergeableCommands=["backspace","del","insertstring"],T.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"],["&&","||"],["==","!="]],v.implement(T.prototype,y),A.defineOptions(T.prototype,"editor",{selectionStyle:{set:function($){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:$})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function($){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function($){this.textInput.setReadOnly($),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function($){this.textInput.setCopyWithEmptySelection($)},initialValue:!1},cursorStyle:{set:function($){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($){this.setAutoScrollEditorIntoView($)}},keyboardHandler:{set:function($){this.setKeyboardHandler($)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function($){this.session.setValue($)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function($){this.setSession($)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function($){this.renderer.$gutterLayer.setShowLineNumbers($),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),$&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function($){this.$showLineNumbers&&$?N.attach(this):N.detach(this)}},placeholder:{set:function($){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),w.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),w.addCssClass(this.container,"ace_hasPlaceholder");var S=w.createElement("div");S.className="ace_placeholder",S.textContent=this.$placeholder||"",this.renderer.placeholderNode=S,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function($){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(I){I.blur(),I.renderer.scroller.focus()},readOnly:!0},S=function(I){if(I.target==this.renderer.scroller&&I.keyCode===O.enter){I.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},L;$?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(f.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",M("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",M("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",S.bind(this)),this.commands.addCommand(_),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",M("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",M("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),L||(L=new b(this)),L.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",S.bind(this)),this.commands.removeCommand(_),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),L&&L.removeListener())},initialValue:!1},textInputAriaLabel:{set:function($){this.$textInputAriaLabel=$},initialValue:""},enableMobileMenu:{set:function($){this.$enableMobileMenu=$},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($,_){return(Math.abs($.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function($,_,S){return Math.max(_.toString().length,(S.lastRow+1).toString().length,2)*S.characterWidth},update:function($,_){_.renderer.$loop.schedule(_.renderer.CHANGE_GUTTER)},attach:function($){$.renderer.$gutterLayer.$renderer=this,$.on("changeSelection",this.update),this.update(null,$)},detach:function($){$.renderer.$gutterLayer.$renderer==this&&($.renderer.$gutterLayer.$renderer=null),$.off("changeSelection",this.update),this.update(null,$)}};i.Editor=T}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,i,m){var g=e("../lib/dom"),v=function(){function w(h,f){this.element=h,this.canvasHeight=f||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return w.prototype.moveContainer=function(h){g.translate(this.element,0,-(h.firstRowScreen*h.lineHeight%this.canvasHeight)-h.offset*this.$offsetCoefficient)},w.prototype.pageChanged=function(h,f){return Math.floor(h.firstRowScreen*h.lineHeight/this.canvasHeight)!==Math.floor(f.firstRowScreen*f.lineHeight/this.canvasHeight)},w.prototype.computeLineTop=function(h,f,a){var c=f.firstRowScreen*f.lineHeight,s=Math.floor(c/this.canvasHeight),l=a.documentToScreenRow(h,0)*f.lineHeight;return l-s*this.canvasHeight},w.prototype.computeLineHeight=function(h,f,a){return f.lineHeight*a.getRowLineCount(h)},w.prototype.getLength=function(){return this.cells.length},w.prototype.get=function(h){return this.cells[h]},w.prototype.shift=function(){this.$cacheCell(this.cells.shift())},w.prototype.pop=function(){this.$cacheCell(this.cells.pop())},w.prototype.push=function(h){if(Array.isArray(h)){this.cells.push.apply(this.cells,h);for(var f=g.createFragment(this.element),a=0;a<h.length;a++)f.appendChild(h[a].element);this.element.appendChild(f)}else this.cells.push(h),this.element.appendChild(h.element)},w.prototype.unshift=function(h){if(Array.isArray(h)){this.cells.unshift.apply(this.cells,h);for(var f=g.createFragment(this.element),a=0;a<h.length;a++)f.appendChild(h[a].element);this.element.firstChild?this.element.insertBefore(f,this.element.firstChild):this.element.appendChild(f)}else this.cells.unshift(h),this.element.insertAdjacentElement("afterbegin",h.element)},w.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},w.prototype.$cacheCell=function(h){h&&(h.element.remove(),this.cellCache.push(h))},w.prototype.createCell=function(h,f,a,c){var s=this.cellCache.pop();if(!s){var l=g.createElement("div");c&&c(l),this.element.appendChild(l),s={element:l,text:"",row:h}}return s.row=h,s},w}();i.Lines=v}),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(e,i,m){var g=e("../lib/dom"),v=e("../lib/oop"),w=e("../lib/lang"),h=e("../lib/event_emitter").EventEmitter,f=e("./lines").Lines,a=e("../config").nls,c=function(){function l(o){this.element=g.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 f(this.element),this.$lines.$offsetCoefficient=1}return l.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},l.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},l.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},l.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var p=o[u],y=p.row,x=this.$annotations[y];x||(x=this.$annotations[y]={text:[],type:[],displayText:[]});var R=p.text,A=p.text,k=p.type;R=R?w.escapeHTML(R):p.html||"",A=A||p.html||"",x.text.indexOf(R)===-1&&(x.text.push(R),x.type.push(k),x.displayText.push(A));var b=p.className;b?x.className=b:k==="error"?x.className=" ace_error":k==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":k==="info"&&!x.className?x.className=" ace_info":k==="hint"&&!x.className&&(x.className=" ace_hint")}},l.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,p=o.end.row-u;if(p!==0)if(o.action=="remove")this.$annotations.splice(u,p+1,null);else{var y=new Array(p+1);y.unshift(u,1),this.$annotations.splice.apply(this.$annotations,y)}}},l.prototype.update=function(o){this.config=o;var u=this.session,p=o.firstRow,y=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=y,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var x=u.getNextFoldLine(p),R=x?x.start.row:1/0,A=null,k=-1,b=p;;){if(b>R&&(b=x.end.row+1,x=u.getNextFoldLine(b,x),R=x?x.start.row:1/0),b>y){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}A=this.$lines.get(++k),A?A.row=b:(A=this.$lines.createCell(b,o,this.session,s),this.$lines.push(A)),this.$renderCell(A,o,x,b),b++}this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$updateGutterWidth=function(o){var u=this.session,p=u.gutterRenderer||this.$renderer,y=u.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(x=u.getLength()+y-1);var R=p?p.getWidth(u,x,o):x.toString().length*o.characterWidth,A=this.$padding||this.$computePadding();R+=A.left+A.right,R!==this.gutterWidth&&!isNaN(R)&&(this.gutterWidth=R,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",R))},l.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},l.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var p=0;p<u.length;p++){var y=u[p];if(y.row>=this.$cursorRow){if(y.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(p>0&&x&&x.start.row==u[p-1].row)y=u[p-1];else break}y.element.className="ace_gutter-active-line "+y.element.className,this.$cursorCell=y;break}}}}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var p=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),y=this.oldLastRow;if(this.oldLastRow=p,!u||y<o.firstRow)return this.update(o);if(p<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(y>p)for(var x=this.session.getFoldedRowCount(p+1,y);x>0;x--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),p>y&&this.$lines.push(this.$renderLines(o,y+1,p)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},l.prototype.$renderLines=function(o,u,p){for(var y=[],x=u,R=this.session.getNextFoldLine(x),A=R?R.start.row:1/0;x>A&&(x=R.end.row+1,R=this.session.getNextFoldLine(x,R),A=R?R.start.row:1/0),!(x>p);){var k=this.$lines.createCell(x,o,this.session,s);this.$renderCell(k,o,R,x),y.push(k),x++}return y},l.prototype.$renderCell=function(o,u,p,y){var x=o.element,R=this.session,A=x.childNodes[0],k=x.childNodes[1],b=x.childNodes[2],M=b.firstChild,E=R.$firstLineNumber,O=R.$breakpoints,T=R.$decorations,N=R.gutterRenderer||this.$renderer,$=this.$showFoldWidgets&&R.foldWidgets,_=p?p.start.row:Number.MAX_VALUE,S=u.lineHeight+"px",L=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",I=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(R,y):y+E).toString();if(this.$highlightGutterLine&&(y==this.$cursorRow||p&&y<this.$cursorRow&&y>=_&&this.$cursorRow<=p.end.row)&&(L+="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)),O[y]&&(L+=O[y]),T[y]&&(L+=T[y]),this.$annotations[y]&&y!==_&&(L+=this.$annotations[y].className),$){var H=$[y];H==null&&(H=$[y]=R.getFoldWidget(y))}if(H){var W="ace_fold-widget ace_"+H,V=H=="start"&&y==_&&y<p.end.row;if(V){W+=" ace_closed";for(var q="",X=!1,G=y+1;G<=p.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")}L+=q}else W+=" ace_open";k.className!=W&&(k.className=W),g.setStyle(k.style,"height",S),g.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Z=R.getFoldWidgetRange(y);Z?k.setAttribute("aria-label",a("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):p?k.setAttribute("aria-label",a("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[p.start.row+1,p.end.row+1])):k.setAttribute("aria-label",a("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[y+1])),V?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",a("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",a("gutter.code-folding.open.title","Fold code")))}else k&&(g.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){b.className="ace_gutter_annotation",M.className=I,M.className+=q,g.setStyle(M.style,"height",S),g.setStyle(b.style,"display","block"),g.setStyle(b.style,"height",S);var ie;switch(q){case" ace_error_fold":ie=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":ie=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":ie=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}b.setAttribute("aria-label",ie),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else if(this.$annotations[y]){b.className="ace_gutter_annotation",M.className=I,this.$useSvgGutterIcons?M.className+=this.$annotations[y].className:x.classList.add(this.$annotations[y].className.replace(" ","")),g.setStyle(M.style,"height",S),g.setStyle(b.style,"display","block"),g.setStyle(b.style,"height",S);var ie;switch(this.$annotations[y].className){case" ace_error":ie=a("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":ie=a("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":ie=a("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":ie=a("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":ie=a("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}b.setAttribute("aria-label",ie),b.setAttribute("tabindex","-1"),b.setAttribute("role","button")}else g.setStyle(b.style,"display","none"),b.removeAttribute("aria-label"),b.removeAttribute("role"),b.setAttribute("tabindex","0");return F!==A.data&&(A.data=F),x.className!=L&&(x.className=L),g.setStyle(o.element.style,"height",this.$lines.computeLineHeight(y,u,R)+"px"),g.setStyle(o.element.style,"top",this.$lines.computeLineTop(y,u,R)+"px"),o.text=F,b.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},l.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},l.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},l.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},l.prototype.setShowFoldWidgets=function(o){o?g.addCssClass(this.element,"ace_folding-enabled"):g.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},l.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},l.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=g.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},l.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),p=this.element.getBoundingClientRect();if(o.x<u.left+p.left)return"markers";if(this.$showFoldWidgets&&o.x>p.right-u.right)return"foldWidgets"},l}();c.prototype.$fixedWidth=!1,c.prototype.$highlightGutterLine=!0,c.prototype.$renderer="",c.prototype.$showLineNumbers=!0,c.prototype.$showFoldWidgets=!0,v.implement(c.prototype,h);function s(l){var o=document.createTextNode("");l.appendChild(o);var u=g.createElement("span");l.appendChild(u);var p=g.createElement("span");l.appendChild(p);var y=g.createElement("span");return p.appendChild(y),l}i.Gutter=c}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,i,m){var g=e("../range").Range,v=e("../lib/dom"),w=function(){function f(a){this.element=v.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)}return f.prototype.setPadding=function(a){this.$padding=a},f.prototype.setSession=function(a){this.session=a},f.prototype.setMarkers=function(a){this.markers=a},f.prototype.elt=function(a,c){var s=this.i!=-1&&this.element.childNodes[this.i];s?this.i++:(s=document.createElement("div"),this.element.appendChild(s),this.i=-1),s.style.cssText=c,s.className=a},f.prototype.update=function(a){if(a){this.config=a,this.i=0;var c;for(var s in this.markers){var l=this.markers[s];if(!l.range){l.update(c,this,this.session,a);continue}var o=l.range.clipRows(a.firstRow,a.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),l.renderer){var u=this.$getTop(o.start.row,a),p=this.$padding+o.start.column*a.characterWidth;l.renderer(c,o,p,u,a)}else l.type=="fullLine"?this.drawFullLineMarker(c,o,l.clazz,a):l.type=="screenLine"?this.drawScreenLineMarker(c,o,l.clazz,a):o.isMultiLine()?l.type=="text"?this.drawTextMarker(c,o,l.clazz,a):this.drawMultiLineMarker(c,o,l.clazz,a):this.drawSingleLineMarker(c,o,l.clazz+" ace_start ace_br15",a)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},f.prototype.$getTop=function(a,c){return(a-c.firstRowScreen)*c.lineHeight},f.prototype.drawTextMarker=function(a,c,s,l,o){for(var u=this.session,p=c.start.row,y=c.end.row,x=p,R=0,A=0,k=u.getScreenLastRowColumn(x),b=new g(x,c.start.column,x,A);x<=y;x++)b.start.row=b.end.row=x,b.start.column=x==p?c.start.column:u.getRowWrapIndent(x),b.end.column=k,R=A,A=k,k=x+1<y?u.getScreenLastRowColumn(x+1):x==y?0:c.end.column,this.drawSingleLineMarker(a,b,s+(x==p?" ace_start":"")+" ace_br"+h(x==p||x==p+1&&c.start.column,R<A,A>k,x==y),l,x==y?0:1,o)},f.prototype.drawMultiLineMarker=function(a,c,s,l,o){var u=this.$padding,p=l.lineHeight,y=this.$getTop(c.start.row,l),x=u+c.start.column*l.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(c.start.row)){var R=c.clone();R.end.row=R.start.row,R.end.column=this.session.getLine(R.start.row).length,this.drawBidiSingleLineMarker(a,R,s+" ace_br1 ace_start",l,null,o)}else this.elt(s+" ace_br1 ace_start","height:"+p+"px;right:"+u+"px;top:"+y+"px;left:"+x+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(c.end.row)){var R=c.clone();R.start.row=R.end.row,R.start.column=0,this.drawBidiSingleLineMarker(a,R,s+" ace_br12",l,null,o)}else{y=this.$getTop(c.end.row,l);var A=c.end.column*l.characterWidth;this.elt(s+" ace_br12","height:"+p+"px;width:"+A+"px;top:"+y+"px;left:"+u+"px;"+(o||""))}if(p=(c.end.row-c.start.row-1)*l.lineHeight,!(p<=0)){y=this.$getTop(c.start.row+1,l);var k=(c.start.column?1:0)|(c.end.column?0:8);this.elt(s+(k?" ace_br"+k:""),"height:"+p+"px;right:"+u+"px;top:"+y+"px;left:"+u+"px;"+(o||""))}},f.prototype.drawSingleLineMarker=function(a,c,s,l,o,u){if(this.session.$bidiHandler.isBidiRow(c.start.row))return this.drawBidiSingleLineMarker(a,c,s,l,o,u);var p=l.lineHeight,y=(c.end.column+(o||0)-c.start.column)*l.characterWidth,x=this.$getTop(c.start.row,l),R=this.$padding+c.start.column*l.characterWidth;this.elt(s,"height:"+p+"px;width:"+y+"px;top:"+x+"px;left:"+R+"px;"+(u||""))},f.prototype.drawBidiSingleLineMarker=function(a,c,s,l,o,u){var p=l.lineHeight,y=this.$getTop(c.start.row,l),x=this.$padding,R=this.session.$bidiHandler.getSelections(c.start.column,c.end.column);R.forEach(function(A){this.elt(s,"height:"+p+"px;width:"+(A.width+(o||0))+"px;top:"+y+"px;left:"+(x+A.left)+"px;"+(u||""))},this)},f.prototype.drawFullLineMarker=function(a,c,s,l,o){var u=this.$getTop(c.start.row,l),p=l.lineHeight;c.start.row!=c.end.row&&(p+=this.$getTop(c.end.row,l)-u),this.elt(s,"height:"+p+"px;top:"+u+"px;left:0;right:0;"+(o||""))},f.prototype.drawScreenLineMarker=function(a,c,s,l,o){var u=this.$getTop(c.start.row,l),p=l.lineHeight;this.elt(s,"height:"+p+"px;top:"+u+"px;left:0;right:0;"+(o||""))},f}();w.prototype.$padding=0;function h(f,a,c,s){return(f?1:0)|(a?2:0)|(c?4:0)|(s?8:0)}i.Marker=w}),ace.define("ace/layer/text_util",["require","exports","module"],function(e,i,m){var g=new Set(["text","rparen","lparen"]);i.isTextToken=function(v){return g.has(v)}}),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(e,i,m){var g=e("../lib/oop"),v=e("../lib/dom"),w=e("../lib/lang"),h=e("./lines").Lines,f=e("../lib/event_emitter").EventEmitter,a=e("../config").nls,c=e("./text_util").isTextToken,s=function(){function l(o){this.dom=v,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 h(this.element)}return l.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
208
+ `&&o.getNewLineMode()!="windows",p=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=p)return this.EOL_CHAR=p,!0},l.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},l.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},l.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},l.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},l.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},l.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},l.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},l.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)},l.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},l.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},l.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],p=1;p<o+1;p++)if(this.showTabs){var y=this.dom.createElement("span");y.className="ace_invisible ace_invisible_tab",y.textContent=w.stringRepeat(this.TAB_CHAR,p),u.push(y)}else u.push(this.dom.createTextNode(w.stringRepeat(" ",p),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",R=this.showSpaces?" ace_invisible ace_invisible_space":"",A=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",b=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):A,y=this.dom.createElement("span");y.className=x+R,y.textContent=A,this.$tabStrings[" "]=y;var y=this.dom.createElement("span");y.className=x+k,y.textContent=b,this.$tabStrings[" "]=y}},l.prototype.updateLines=function(o,u,p){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var y=Math.max(u,o.firstRow),x=Math.min(p,o.lastRow),R=this.element.childNodes,A=0,k=o.firstRow;k<y;k++){var b=this.session.getFoldLine(k);if(b)if(b.containsRow(y)){y=b.start.row;break}else k=b.end.row;A++}for(var M=!1,k=y,b=this.session.getNextFoldLine(k),E=b?b.start.row:1/0;k>E&&(k=b.end.row+1,b=this.session.getNextFoldLine(k,b),E=b?b.start.row:1/0),!(k>x);){var O=R[A++];if(O){this.dom.removeChildren(O),this.$renderLine(O,k,k==E?b:!1),M&&(O.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var T=o.lineHeight*this.session.getRowLength(k)+"px";O.style.height!=T&&(M=!0,O.style.height=T)}k++}if(M)for(;A<this.$lines.cells.length;){var N=this.$lines.cells[A++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},l.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var p=o.lastRow,y=u?u.lastRow:-1;if(!u||y<o.firstRow)return this.update(o);if(p<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var x=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);x>0;x--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},l.prototype.$renderLinesFragment=function(o,u,p){for(var y=[],x=u,R=this.session.getNextFoldLine(x),A=R?R.start.row:1/0;x>A&&(x=R.end.row+1,R=this.session.getNextFoldLine(x,R),A=R?R.start.row:1/0),!(x>p);){var k=this.$lines.createCell(x,o,this.session),b=k.element;this.dom.removeChildren(b),v.setStyle(b.style,"height",this.$lines.computeLineHeight(x,o,this.session)+"px"),v.setStyle(b.style,"top",this.$lines.computeLineTop(x,o,this.session)+"px"),this.$renderLine(b,x,x==A?R:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",y.push(k),x++}return y},l.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,p=o.lastRow,y=this.$lines;y.getLength();)y.pop();y.push(this.$renderLinesFragment(o,u,p))},l.prototype.$renderToken=function(o,u,p,y){for(var x=this,R=/(\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,A=this.dom.createFragment(this.element),k,b=0;k=R.exec(y);){var M=k[1],E=k[2],O=k[3],T=k[4],N=k[5];if(!(!x.showSpaces&&E)){var $=b!=k.index?y.slice(b,k.index):"";if(b=k.index+k[0].length,$&&A.appendChild(this.dom.createTextNode($,this.element)),M){var _=x.session.getScreenTabSize(u+k.index);A.appendChild(x.$tabStrings[_].cloneNode(!0)),u+=_-1}else if(E)if(x.showSpaces){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space",S.textContent=w.stringRepeat(x.SPACE_CHAR,E.length),A.appendChild(S)}else A.appendChild(this.dom.createTextNode(E,this.element));else if(O){var S=this.dom.createElement("span");S.className="ace_invisible ace_invisible_space ace_invalid",S.textContent=w.stringRepeat(x.SPACE_CHAR,O.length),A.appendChild(S)}else if(T){u+=1;var S=this.dom.createElement("span");S.style.width=x.config.characterWidth*2+"px",S.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",S.textContent=x.showSpaces?x.SPACE_CHAR:T,A.appendChild(S)}else if(N){u+=1;var S=this.dom.createElement("span");S.style.width=x.config.characterWidth*2+"px",S.className="ace_cjk",S.textContent=N,A.appendChild(S)}}}if(A.appendChild(this.dom.createTextNode(b?y.slice(b):y,this.element)),c(p.type))o.appendChild(A);else{var L="ace_"+p.type.replace(/\./g," ace_"),S=this.dom.createElement("span");p.type=="fold"&&(S.style.width=p.value.length*this.config.characterWidth+"px",S.setAttribute("title",a("inline-fold.closed.title","Unfold code"))),S.className=L,S.appendChild(A),o.appendChild(S)}return u+y.length},l.prototype.renderIndentGuide=function(o,u,p){var y=u.search(this.$indentGuideRe);if(y<=0||y>=p)return u;if(u[0]==" "){y-=y%this.tabSize;for(var x=y/this.tabSize,R=0;R<x;R++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(y)}else if(u[0]==" "){for(var R=0;R<y;R++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(y)}return this.$highlightIndentGuide(),u},l.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),p=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,y=Math.floor(p/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:y,start:u.row};var x=this.session.$bracketHighlight;if(x){for(var R=this.session.$bracketHighlight.ranges,A=0;A<R.length;A++)if(u.row!==R[A].start.row){this.$highlightIndentGuideMarker.end=R[A].start.row,u.row>R[A].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var A=u.row+1;A<o.length;A++){var k=o[A],b=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=A,b<=p))break}}this.$renderHighlightIndentGuide()}}},l.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var p=o[u],y=p.element.childNodes;if(y.length>0){for(var x=0;x<y.length;x++)if(y[x].classList&&y[x].classList.contains("ace_indent-guide-active")){y[x].classList.remove("ace_indent-guide-active");break}}}},l.prototype.$setIndentGuideActive=function(o,u){var p=this.session.doc.getLine(o.row);if(p!==""){var y=o.element.childNodes;if(y){var x=y[u-1];x&&x.classList&&x.classList.contains("ace_indent-guide")&&x.classList.add("ace_indent-guide-active")}}},l.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var p=0;p<o.length;p++){var y=o[p];if(this.$highlightIndentGuideMarker.end&&y.row>=this.$highlightIndentGuideMarker.start+1){if(y.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,u)}}else for(var p=o.length-1;p>=0;p--){var y=o[p];if(this.$highlightIndentGuideMarker.end&&y.row<this.$highlightIndentGuideMarker.start){if(y.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(y,u)}}}},l.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},l.prototype.$renderWrappedLine=function(o,u,p){var y=0,x=0,R=p[0],A=0,k=this.$createLineElement();o.appendChild(k);for(var b=0;b<u.length;b++){var M=u[b],E=M.value;if(b==0&&this.displayIndentGuides){if(y=E.length,E=this.renderIndentGuide(k,E,R),!E)continue;y-=E.length}if(y+E.length<R)A=this.$renderToken(k,A,M,E),y+=E.length;else{for(;y+E.length>=R;)A=this.$renderToken(k,A,M,E.substring(0,R-y)),E=E.substring(R-y),y=R,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(w.stringRepeat(" ",p.indent),this.element)),x++,A=0,R=p[x]||Number.MAX_VALUE;E.length!=0&&(y+=E.length,A=this.$renderToken(k,A,M,E))}}p[p.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,A,null,"",!0)},l.prototype.$renderSimpleLine=function(o,u){for(var p=0,y=0;y<u.length;y++){var x=u[y],R=x.value;if(!(y==0&&this.displayIndentGuides&&(R=this.renderIndentGuide(o,R),!R))){if(p+R.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,p,x,R);p=this.$renderToken(o,p,x,R)}}},l.prototype.$renderOverflowMessage=function(o,u,p,y,x){p&&this.$renderToken(o,u,p,y.slice(0,this.MAX_LINE_LENGTH-u));var R=this.dom.createElement("span");R.className="ace_inline_button ace_keyword ace_toggle_wrap",R.textContent=x?"<hide>":"<click to see more...>",o.appendChild(R)},l.prototype.$renderLine=function(o,u,p){if(!p&&p!=!1&&(p=this.session.getFoldLine(u)),p)var y=this.$getFoldLineTokens(u,p);else var y=this.session.getTokens(u);var x=o;if(y.length){var R=this.session.getRowSplitData(u);if(R&&R.length){this.$renderWrappedLine(o,y,R);var x=o.lastChild}else{var x=o;this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x)),this.$renderSimpleLine(x,y)}}else this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x));if(this.showEOL&&x){p&&(u=p.end.row);var A=this.dom.createElement("span");A.className="ace_invisible ace_invisible_eol",A.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(A)}},l.prototype.$getFoldLineTokens=function(o,u){var p=this.session,y=[];function x(A,k,b){for(var M=0,E=0;E+A[M].value.length<k;)if(E+=A[M].value.length,M++,M==A.length)return;if(E!=k){var O=A[M].value.substring(k-E);O.length>b-k&&(O=O.substring(0,b-k)),y.push({type:A[M].type,value:O}),E=k+O.length,M+=1}for(;E<b&&M<A.length;){var O=A[M].value;O.length+E>b?y.push({type:A[M].type,value:O.substring(0,b-E)}):y.push(A[M]),E+=O.length,M+=1}}var R=p.getTokens(o);return u.walk(function(A,k,b,M,E){A!=null?y.push({type:"fold",value:A}):(E&&(R=p.getTokens(k)),R.length&&x(R,M,b))},u.end.row,this.session.getLine(u.end.row).length),y},l.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},l}();s.prototype.EOF_CHAR="¶",s.prototype.EOL_CHAR_LF="¬",s.prototype.EOL_CHAR_CRLF="¤",s.prototype.EOL_CHAR=s.prototype.EOL_CHAR_LF,s.prototype.TAB_CHAR="—",s.prototype.SPACE_CHAR="·",s.prototype.$padding=0,s.prototype.MAX_LINE_LENGTH=1e4,s.prototype.showInvisibles=!1,s.prototype.showSpaces=!1,s.prototype.showTabs=!1,s.prototype.showEOL=!1,s.prototype.displayIndentGuides=!0,s.prototype.$highlightIndentGuides=!0,s.prototype.$tabStrings=[],s.prototype.destroy={},s.prototype.onChangeTabSize=s.prototype.$computeTabString,g.implement(s.prototype,f),i.Text=s}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,i,m){var g=e("../lib/dom"),v=function(){function w(h){this.element=g.createElement("div"),this.element.className="ace_layer ace_cursor-layer",h.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),g.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return w.prototype.$updateOpacity=function(h){for(var f=this.cursors,a=f.length;a--;)g.setStyle(f[a].style,"opacity",h?"":"0")},w.prototype.$startCssAnimation=function(){for(var h=this.cursors,f=h.length;f--;)h[f].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&g.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},w.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,g.removeCssClass(this.element,"ace_animate-blinking")},w.prototype.setPadding=function(h){this.$padding=h},w.prototype.setSession=function(h){this.session=h},w.prototype.setBlinking=function(h){h!=this.isBlinking&&(this.isBlinking=h,this.restartTimer())},w.prototype.setBlinkInterval=function(h){h!=this.blinkInterval&&(this.blinkInterval=h,this.restartTimer())},w.prototype.setSmoothBlinking=function(h){h!=this.smoothBlinking&&(this.smoothBlinking=h,g.setCssClass(this.element,"ace_smooth-blinking",h),this.$updateCursors(!0),this.restartTimer())},w.prototype.addCursor=function(){var h=g.createElement("div");return h.className="ace_cursor",this.element.appendChild(h),this.cursors.push(h),h},w.prototype.removeCursor=function(){if(this.cursors.length>1){var h=this.cursors.pop();return h.parentNode.removeChild(h),h}},w.prototype.hideCursor=function(){this.isVisible=!1,g.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.showCursor=function(){this.isVisible=!0,g.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},w.prototype.restartTimer=function(){var h=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,g.removeCssClass(this.element,"ace_smooth-blinking")),h(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&g.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),g.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var f=(function(){this.timeoutId=setTimeout(function(){h(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){h(!0),f()},this.blinkInterval),f()}},w.prototype.getPixelPosition=function(h,f){if(!this.config||!this.session)return{left:0,top:0};h||(h=this.session.selection.getCursor());var a=this.session.documentToScreenPosition(h),c=this.$padding+(this.session.$bidiHandler.isBidiRow(a.row,h.row)?this.session.$bidiHandler.getPosLeft(a.column):a.column*this.config.characterWidth),s=(a.row-(f?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:c,top:s}},w.prototype.isCursorInView=function(h,f){return h.top>=0&&h.top<f.maxHeight},w.prototype.update=function(h){this.config=h;var f=this.session.$selectionMarkers,a=0,c=0;(f===void 0||f.length===0)&&(f=[{cursor:null}]);for(var a=0,s=f.length;a<s;a++){var l=this.getPixelPosition(f[a].cursor,!0);if(!((l.top>h.height+h.offset||l.top<0)&&a>1)){var o=this.cursors[c++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,l,h,f[a],this.session):this.isCursorInView(l,h)?(g.setStyle(u,"display","block"),g.translate(o,l.left,l.top),g.setStyle(u,"width",Math.round(h.characterWidth)+"px"),g.setStyle(u,"height",h.lineHeight+"px")):g.setStyle(u,"display","none")}}for(;this.cursors.length>c;)this.removeCursor();var p=this.session.getOverwrite();this.$setOverwrite(p),this.$pixelPos=l,this.restartTimer()},w.prototype.$setOverwrite=function(h){h!=this.overwrite&&(this.overwrite=h,h?g.addCssClass(this.element,"ace_overwrite-cursors"):g.removeCssClass(this.element,"ace_overwrite-cursors"))},w.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},w}();v.prototype.$padding=0,v.prototype.drawCursor=null,i.Cursor=v}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,i,m){var g=this&&this.__extends||function(){var o=function(u,p){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var R in x)Object.prototype.hasOwnProperty.call(x,R)&&(y[R]=x[R])},o(u,p)};return function(u,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");o(u,p);function y(){this.constructor=u}u.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)}}(),v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),f=e("./lib/event_emitter").EventEmitter,a=32768,c=function(){function o(u,p){this.element=w.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+p,this.inner=w.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,h.addListener(this.element,"scroll",this.onScroll.bind(this)),h.addListener(this.element,"mousedown",h.preventDefault)}return o.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},o}();v.implement(c.prototype,f);var s=function(o){g(u,o);function u(p,y){var x=o.call(this,p,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,y.$scrollbarWidth=x.width=w.scrollbarWidth(p.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return u.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var p=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-p)/(this.coeff-p)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(p){this.element.style.height=p+"px"},u.prototype.setScrollHeight=function(p){this.scrollHeight=p,p>a?(this.coeff=a/p,p=a):this.coeff!=1&&(this.coeff=1),this.inner.style.height=p+"px"},u.prototype.setScrollTop=function(p){this.scrollTop!=p&&(this.skipEvent=!0,this.scrollTop=p,this.element.scrollTop=p*this.coeff)},u}(c);s.prototype.setInnerHeight=s.prototype.setScrollHeight;var l=function(o){g(u,o);function u(p,y){var x=o.call(this,p,"-h")||this;return x.scrollLeft=0,x.height=y.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return u.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.setWidth=function(p){this.element.style.width=p+"px"},u.prototype.setInnerWidth=function(p){this.inner.style.width=p+"px"},u.prototype.setScrollWidth=function(p){this.inner.style.width=p+"px"},u.prototype.setScrollLeft=function(p){this.scrollLeft!=p&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=p)},u}(c);i.ScrollBar=s,i.ScrollBarV=s,i.ScrollBarH=l,i.VScrollBar=s,i.HScrollBar=l}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,i,m){var g=this&&this.__extends||function(){var l=function(o,u){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(p[x]=y[x])},l(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");l(o,u);function p(){this.constructor=o}o.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}}(),v=e("./lib/oop"),w=e("./lib/dom"),h=e("./lib/event"),f=e("./lib/event_emitter").EventEmitter;w.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 a=function(){function l(o,u){this.element=w.createElement("div"),this.element.className="ace_sb"+u,this.inner=w.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,h.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return l.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},l}();v.implement(a.prototype,f);var c=function(l){g(o,l);function o(u,p){var y=l.call(this,u,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,y.parent=u,y.width=y.VScrollWidth,y.renderer=p,y.inner.style.width=y.element.style.width=(y.width||15)+"px",y.$minWidth=0,y}return o.prototype.onMouseDown=function(u,p){if(u==="mousedown"&&!(h.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var y=this,x=p.clientY,R=function(T){x=T.clientY},A=function(){clearInterval(E)},k=p.clientY,b=this.thumbTop,M=function(){if(x!==void 0){var T=y.scrollTopFromThumbTop(b+x-k);T!==y.scrollTop&&y._emit("scroll",{data:T})}};h.capture(this.inner,R,A);var E=setInterval(M,20);return h.preventDefault(p)}var O=p.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(O)}),h.preventDefault(p)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var p=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return p=p>>0,p<0?p=0:p>this.pageHeight-this.viewHeight&&(p=this.pageHeight-this.viewHeight),p},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(u){this.height=Math.max(0,u),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},o.prototype.setScrollHeight=function(u,p){this.pageHeight===u&&!p||(this.pageHeight=u,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(a);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var s=function(l){g(o,l);function o(u,p){var y=l.call(this,u,"-h")||this;return y.scrollLeft=0,y.scrollWidth=0,y.height=y.HScrollHeight,y.inner.style.height=y.element.style.height=(y.height||12)+"px",y.renderer=p,y}return o.prototype.onMouseDown=function(u,p){if(u==="mousedown"&&!(h.getButton(p)!==0||p.detail===2)){if(p.target===this.inner){var y=this,x=p.clientX,R=function(T){x=T.clientX},A=function(){clearInterval(E)},k=p.clientX,b=this.thumbLeft,M=function(){if(x!==void 0){var T=y.scrollLeftFromThumbLeft(b+x-k);T!==y.scrollLeft&&y._emit("scroll",{data:T})}};h.capture(this.inner,R,A);var E=setInterval(M,20);return h.preventDefault(p)}var O=p.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(O)}),h.preventDefault(p)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var p=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return p=p>>0,p<0?p=0:p>this.pageWidth-this.viewWidth&&(p=this.pageWidth-this.viewWidth),p},o.prototype.setWidth=function(u){this.width=Math.max(0,u),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},o.prototype.setScrollWidth=function(u,p){this.pageWidth===u&&!p||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(a);s.prototype.setInnerWidth=s.prototype.setScrollWidth,i.ScrollBar=c,i.ScrollBarV=c,i.ScrollBarH=s,i.VScrollBar=c,i.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,i,m){var g=e("./lib/event"),v=function(){function w(h,f){this.onRender=h,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=f||window;var a=this;this._flush=function(c){a.pending=!1;var s=a.changes;if(s&&(g.blockIdle(100),a.changes=0,a.onRender(s)),a.changes){if(a.$recursionLimit--<0)return;a.schedule()}else a.$recursionLimit=2}}return w.prototype.schedule=function(h){this.changes=this.changes|h,this.changes&&!this.pending&&(g.nextFrame(this._flush),this.pending=!0)},w.prototype.clear=function(h){var f=this.changes;return this.changes=0,f},w}();i.RenderLoop=v}),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(e,i,m){var g=e("../lib/oop"),v=e("../lib/dom"),w=e("../lib/lang"),h=e("../lib/event"),f=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,c=512,s=typeof ResizeObserver=="function",l=200,o=function(){function u(p){this.el=v.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=v.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=v.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),p.appendChild(this.el),this.$measureNode.textContent=w.stringRepeat("X",c),this.$characterSize={width:0,height:0},s?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(p,y){p.width=p.height="auto",p.left=p.top="0px",p.visibility="hidden",p.position="absolute",p.whiteSpace="pre",f.isIE<8?p["font-family"]="inherit":p.font="inherit",p.overflow=y?"hidden":"visible"},u.prototype.checkForSizeChanges=function(p){if(p===void 0&&(p=this.$measureSizes()),p&&(this.$characterSize.width!==p.width||this.$characterSize.height!==p.height)){this.$measureNode.style.fontWeight="bold";var y=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=p,this.charSizes=Object.create(null),this.allowBoldFonts=y&&y.width===p.width&&y.height===p.height,this._emit("changeCharacterSize",{data:p})}},u.prototype.$addObserver=function(){var p=this;this.$observer=new window.ResizeObserver(function(y){p.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var p=this;return this.$pollSizeChangesTimer=h.onIdle(function y(){p.checkForSizeChanges(),h.onIdle(y,500)},500)},u.prototype.setPolling=function(p){p?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(p){var y={height:(p||this.$measureNode).clientHeight,width:(p||this.$measureNode).clientWidth/c};return y.width===0||y.height===0?null:y},u.prototype.$measureCharWidth=function(p){this.$main.textContent=w.stringRepeat(p,c);var y=this.$main.getBoundingClientRect();return y.width/c},u.prototype.getCharacterWidth=function(p){var y=this.charSizes[p];return y===void 0&&(y=this.charSizes[p]=this.$measureCharWidth(p)/this.$characterSize.width),y},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(p){return!p||!p.parentElement?1:(Number(window.getComputedStyle(p).zoom)||1)*this.$getZoom(p.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var p=function(y,x){return["div",{style:"position: absolute;top:"+y+"px;left:"+x+"px;"}]};this.els=v.buildDom([p(0,0),p(l,0),p(0,l),p(l,l)],this.el)},u.prototype.transformCoordinates=function(p,y){if(p){var x=this.$getZoom(this.el);p=b(1/x,p)}function R(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 A(V,q){return[V[0]-q[0],V[1]-q[1]]}function k(V,q){return[V[0]+q[0],V[1]+q[1]]}function b(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function M(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var E=M(this.els[0]),O=M(this.els[1]),T=M(this.els[2]),N=M(this.els[3]),$=R(A(N,O),A(N,T),A(k(O,T),k(N,E))),_=b(1+$[0],A(O,E)),S=b(1+$[1],A(T,E));if(y){var L=y,I=$[0]*L[0]/l+$[1]*L[1]/l+1,F=k(b(L[0],_),b(L[1],S));return k(b(1/I/l,F),E)}var H=A(p,E),W=R(A(_,b($[0],H)),A(S,b($[1],H)),H);return b(l,W)},u}();o.prototype.$characterSize={width:0,height:0},g.implement(o.prototype,a),i.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(e,i,m){m.exports=`
247
+ .ace_br1 {border-top-left-radius : 3px;}
248
+ .ace_br2 {border-top-right-radius : 3px;}
249
+ .ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}
250
+ .ace_br4 {border-bottom-right-radius: 3px;}
251
+ .ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}
252
+ .ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}
253
+ .ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}
254
+ .ace_br8 {border-bottom-left-radius : 3px;}
255
+ .ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}
256
+ .ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}
257
+ .ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}
258
+ .ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
259
+ .ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
260
+ .ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
261
+ .ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}
262
+
263
+
264
+ .ace_editor {
265
+ position: relative;
266
+ overflow: hidden;
267
+ padding: 0;
268
+ font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace;
269
+ direction: ltr;
270
+ text-align: left;
271
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
272
+ forced-color-adjust: none;
273
+ }
274
+
275
+ .ace_scroller {
276
+ position: absolute;
277
+ overflow: hidden;
278
+ top: 0;
279
+ bottom: 0;
280
+ background-color: inherit;
281
+ -ms-user-select: none;
282
+ -moz-user-select: none;
283
+ -webkit-user-select: none;
284
+ user-select: none;
285
+ cursor: text;
286
+ }
287
+
288
+ .ace_content {
289
+ position: absolute;
290
+ box-sizing: border-box;
291
+ min-width: 100%;
292
+ contain: style size layout;
293
+ font-variant-ligatures: no-common-ligatures;
294
+ }
295
+
296
+ .ace_keyboard-focus:focus {
297
+ box-shadow: inset 0 0 0 2px #5E9ED6;
298
+ outline: none;
299
+ }
300
+
301
+ .ace_dragging .ace_scroller:before{
302
+ position: absolute;
303
+ top: 0;
304
+ left: 0;
305
+ right: 0;
306
+ bottom: 0;
307
+ content: '';
308
+ background: rgba(250, 250, 250, 0.01);
309
+ z-index: 1000;
310
+ }
311
+ .ace_dragging.ace_dark .ace_scroller:before{
312
+ background: rgba(0, 0, 0, 0.01);
313
+ }
314
+
315
+ .ace_gutter {
316
+ position: absolute;
317
+ overflow : hidden;
318
+ width: auto;
319
+ top: 0;
320
+ bottom: 0;
321
+ left: 0;
322
+ cursor: default;
323
+ z-index: 4;
324
+ -ms-user-select: none;
325
+ -moz-user-select: none;
326
+ -webkit-user-select: none;
327
+ user-select: none;
328
+ contain: style size layout;
329
+ }
330
+
331
+ .ace_gutter-active-line {
332
+ position: absolute;
333
+ left: 0;
334
+ right: 0;
335
+ }
336
+
337
+ .ace_scroller.ace_scroll-left:after {
338
+ content: "";
339
+ position: absolute;
340
+ top: 0;
341
+ right: 0;
342
+ bottom: 0;
343
+ left: 0;
344
+ box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
345
+ pointer-events: none;
346
+ }
347
+
348
+ .ace_gutter-cell, .ace_gutter-cell_svg-icons {
349
+ position: absolute;
350
+ top: 0;
351
+ left: 0;
352
+ right: 0;
353
+ padding-left: 19px;
354
+ padding-right: 6px;
355
+ background-repeat: no-repeat;
356
+ }
357
+
358
+ .ace_gutter-cell_svg-icons .ace_gutter_annotation {
359
+ margin-left: -14px;
360
+ float: left;
361
+ }
362
+
363
+ .ace_gutter-cell .ace_gutter_annotation {
364
+ margin-left: -19px;
365
+ float: left;
366
+ }
367
+
368
+ .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold {
369
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");
370
+ background-repeat: no-repeat;
371
+ background-position: 2px center;
372
+ }
373
+
374
+ .ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {
375
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");
376
+ background-repeat: no-repeat;
377
+ background-position: 2px center;
378
+ }
379
+
380
+ .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint {
381
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");
382
+ background-repeat: no-repeat;
383
+ background-position: 2px center;
384
+ }
385
+
386
+ .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint {
387
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");
388
+ }
389
+
390
+ .ace_icon_svg.ace_error {
391
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");
392
+ background-color: crimson;
393
+ }
394
+ .ace_icon_svg.ace_security {
395
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+");
396
+ background-color: crimson;
397
+ }
398
+ .ace_icon_svg.ace_warning {
399
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");
400
+ background-color: darkorange;
401
+ }
402
+ .ace_icon_svg.ace_info {
403
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");
404
+ background-color: royalblue;
405
+ }
406
+ .ace_icon_svg.ace_hint {
407
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==");
408
+ background-color: silver;
409
+ }
410
+
411
+ .ace_icon_svg.ace_error_fold {
412
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
413
+ background-color: crimson;
414
+ }
415
+ .ace_icon_svg.ace_security_fold {
416
+ -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");
417
+ background-color: crimson;
418
+ }
419
+ .ace_icon_svg.ace_warning_fold {
420
+ -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");
421
+ background-color: darkorange;
422
+ }
423
+
424
+ .ace_scrollbar {
425
+ contain: strict;
426
+ position: absolute;
427
+ right: 0;
428
+ bottom: 0;
429
+ z-index: 6;
430
+ }
431
+
432
+ .ace_scrollbar-inner {
433
+ position: absolute;
434
+ cursor: text;
435
+ left: 0;
436
+ top: 0;
437
+ }
438
+
439
+ .ace_scrollbar-v{
440
+ overflow-x: hidden;
441
+ overflow-y: scroll;
442
+ top: 0;
443
+ }
444
+
445
+ .ace_scrollbar-h {
446
+ overflow-x: scroll;
447
+ overflow-y: hidden;
448
+ left: 0;
449
+ }
450
+
451
+ .ace_print-margin {
452
+ position: absolute;
453
+ height: 100%;
454
+ }
455
+
456
+ .ace_text-input {
457
+ position: absolute;
458
+ z-index: 0;
459
+ width: 0.5em;
460
+ height: 1em;
461
+ opacity: 0;
462
+ background: transparent;
463
+ -moz-appearance: none;
464
+ appearance: none;
465
+ border: none;
466
+ resize: none;
467
+ outline: none;
468
+ overflow: hidden;
469
+ font: inherit;
470
+ padding: 0 1px;
471
+ margin: 0 -1px;
472
+ contain: strict;
473
+ -ms-user-select: text;
474
+ -moz-user-select: text;
475
+ -webkit-user-select: text;
476
+ user-select: text;
477
+ /*with \`pre-line\` chrome inserts &nbsp; instead of space*/
478
+ white-space: pre!important;
479
+ }
480
+ .ace_text-input.ace_composition {
481
+ background: transparent;
482
+ color: inherit;
483
+ z-index: 1000;
484
+ opacity: 1;
485
+ }
486
+ .ace_composition_placeholder { color: transparent }
487
+ .ace_composition_marker {
488
+ border-bottom: 1px solid;
489
+ position: absolute;
490
+ border-radius: 0;
491
+ margin-top: 1px;
492
+ }
493
+
494
+ [ace_nocontext=true] {
495
+ transform: none!important;
496
+ filter: none!important;
497
+ clip-path: none!important;
498
+ mask : none!important;
499
+ contain: none!important;
500
+ perspective: none!important;
501
+ mix-blend-mode: initial!important;
502
+ z-index: auto;
503
+ }
504
+
505
+ .ace_layer {
506
+ z-index: 1;
507
+ position: absolute;
508
+ overflow: hidden;
509
+ /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
510
+ word-wrap: normal;
511
+ white-space: pre;
512
+ height: 100%;
513
+ width: 100%;
514
+ box-sizing: border-box;
515
+ /* setting pointer-events: auto; on node under the mouse, which changes
516
+ during scroll, will break mouse wheel scrolling in Safari */
517
+ pointer-events: none;
518
+ }
519
+
520
+ .ace_gutter-layer {
521
+ position: relative;
522
+ width: auto;
523
+ text-align: right;
524
+ pointer-events: auto;
525
+ height: 1000000px;
526
+ contain: style size layout;
527
+ }
528
+
529
+ .ace_text-layer {
530
+ font: inherit !important;
531
+ position: absolute;
532
+ height: 1000000px;
533
+ width: 1000000px;
534
+ contain: style size layout;
535
+ }
536
+
537
+ .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {
538
+ contain: style size layout;
539
+ position: absolute;
540
+ top: 0;
541
+ left: 0;
542
+ right: 0;
543
+ }
544
+
545
+ .ace_hidpi .ace_text-layer,
546
+ .ace_hidpi .ace_gutter-layer,
547
+ .ace_hidpi .ace_content,
548
+ .ace_hidpi .ace_gutter {
549
+ contain: strict;
550
+ }
551
+ .ace_hidpi .ace_text-layer > .ace_line,
552
+ .ace_hidpi .ace_text-layer > .ace_line_group {
553
+ contain: strict;
554
+ }
555
+
556
+ .ace_cjk {
557
+ display: inline-block;
558
+ text-align: center;
559
+ }
560
+
561
+ .ace_cursor-layer {
562
+ z-index: 4;
563
+ }
564
+
565
+ .ace_cursor {
566
+ z-index: 4;
567
+ position: absolute;
568
+ box-sizing: border-box;
569
+ border-left: 2px solid;
570
+ /* workaround for smooth cursor repaintng whole screen in chrome */
571
+ transform: translatez(0);
572
+ }
573
+
574
+ .ace_multiselect .ace_cursor {
575
+ border-left-width: 1px;
576
+ }
577
+
578
+ .ace_slim-cursors .ace_cursor {
579
+ border-left-width: 1px;
580
+ }
581
+
582
+ .ace_overwrite-cursors .ace_cursor {
583
+ border-left-width: 0;
584
+ border-bottom: 1px solid;
585
+ }
586
+
587
+ .ace_hidden-cursors .ace_cursor {
588
+ opacity: 0.2;
589
+ }
590
+
591
+ .ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
592
+ opacity: 0;
593
+ }
594
+
595
+ .ace_smooth-blinking .ace_cursor {
596
+ transition: opacity 0.18s;
597
+ }
598
+
599
+ .ace_animate-blinking .ace_cursor {
600
+ animation-duration: 1000ms;
601
+ animation-timing-function: step-end;
602
+ animation-name: blink-ace-animate;
603
+ animation-iteration-count: infinite;
604
+ }
605
+
606
+ .ace_animate-blinking.ace_smooth-blinking .ace_cursor {
607
+ animation-duration: 1000ms;
608
+ animation-timing-function: ease-in-out;
609
+ animation-name: blink-ace-animate-smooth;
610
+ }
611
+
612
+ @keyframes blink-ace-animate {
613
+ from, to { opacity: 1; }
614
+ 60% { opacity: 0; }
615
+ }
616
+
617
+ @keyframes blink-ace-animate-smooth {
618
+ from, to { opacity: 1; }
619
+ 45% { opacity: 1; }
620
+ 60% { opacity: 0; }
621
+ 85% { opacity: 0; }
622
+ }
623
+
624
+ .ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {
625
+ position: absolute;
626
+ z-index: 3;
627
+ }
628
+
629
+ .ace_marker-layer .ace_selection {
630
+ position: absolute;
631
+ z-index: 5;
632
+ }
633
+
634
+ .ace_marker-layer .ace_bracket {
635
+ position: absolute;
636
+ z-index: 6;
637
+ }
638
+
639
+ .ace_marker-layer .ace_error_bracket {
640
+ position: absolute;
641
+ border-bottom: 1px solid #DE5555;
642
+ border-radius: 0;
643
+ }
644
+
645
+ .ace_marker-layer .ace_active-line {
646
+ position: absolute;
647
+ z-index: 2;
648
+ }
649
+
650
+ .ace_marker-layer .ace_selected-word {
651
+ position: absolute;
652
+ z-index: 4;
653
+ box-sizing: border-box;
654
+ }
655
+
656
+ .ace_line .ace_fold {
657
+ box-sizing: border-box;
658
+
659
+ display: inline-block;
660
+ height: 11px;
661
+ margin-top: -2px;
662
+ vertical-align: middle;
663
+
664
+ background-image:
665
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
666
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");
667
+ background-repeat: no-repeat, repeat-x;
668
+ background-position: center center, top left;
669
+ color: transparent;
670
+
671
+ border: 1px solid black;
672
+ border-radius: 2px;
673
+
674
+ cursor: pointer;
675
+ pointer-events: auto;
676
+ }
677
+
678
+ .ace_dark .ace_fold {
679
+ }
680
+
681
+ .ace_fold:hover{
682
+ background-image:
683
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),
684
+ url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");
685
+ }
686
+
687
+ .ace_tooltip {
688
+ background-color: #f5f5f5;
689
+ border: 1px solid gray;
690
+ border-radius: 1px;
691
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
692
+ color: black;
693
+ max-width: 100%;
694
+ padding: 3px 4px;
695
+ position: fixed;
696
+ z-index: 999999;
697
+ box-sizing: border-box;
698
+ cursor: default;
699
+ white-space: pre-wrap;
700
+ word-wrap: break-word;
701
+ line-height: normal;
702
+ font-style: normal;
703
+ font-weight: normal;
704
+ letter-spacing: normal;
705
+ pointer-events: none;
706
+ overflow: auto;
707
+ max-width: min(60em, 66vw);
708
+ overscroll-behavior: contain;
709
+ }
710
+ .ace_tooltip pre {
711
+ white-space: pre-wrap;
712
+ }
713
+
714
+ .ace_tooltip.ace_dark {
715
+ background-color: #636363;
716
+ color: #fff;
717
+ }
718
+
719
+ .ace_tooltip:focus {
720
+ outline: 1px solid #5E9ED6;
721
+ }
722
+
723
+ .ace_icon {
724
+ display: inline-block;
725
+ width: 18px;
726
+ vertical-align: top;
727
+ }
728
+
729
+ .ace_icon_svg {
730
+ display: inline-block;
731
+ width: 12px;
732
+ vertical-align: top;
733
+ -webkit-mask-repeat: no-repeat;
734
+ -webkit-mask-size: 12px;
735
+ -webkit-mask-position: center;
736
+ }
737
+
738
+ .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {
739
+ padding-right: 13px;
740
+ }
741
+
742
+ .ace_fold-widget {
743
+ box-sizing: border-box;
744
+
745
+ margin: 0 -12px 0 1px;
746
+ display: none;
747
+ width: 11px;
748
+ vertical-align: top;
749
+
750
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");
751
+ background-repeat: no-repeat;
752
+ background-position: center;
753
+
754
+ border-radius: 3px;
755
+
756
+ border: 1px solid transparent;
757
+ cursor: pointer;
758
+ }
759
+
760
+ .ace_folding-enabled .ace_fold-widget {
761
+ display: inline-block;
762
+ }
763
+
764
+ .ace_fold-widget.ace_end {
765
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");
766
+ }
767
+
768
+ .ace_fold-widget.ace_closed {
769
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");
770
+ }
771
+
772
+ .ace_fold-widget:hover {
773
+ border: 1px solid rgba(0, 0, 0, 0.3);
774
+ background-color: rgba(255, 255, 255, 0.2);
775
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
776
+ }
777
+
778
+ .ace_fold-widget:active {
779
+ border: 1px solid rgba(0, 0, 0, 0.4);
780
+ background-color: rgba(0, 0, 0, 0.05);
781
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
782
+ }
783
+ /**
784
+ * Dark version for fold widgets
785
+ */
786
+ .ace_dark .ace_fold-widget {
787
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");
788
+ }
789
+ .ace_dark .ace_fold-widget.ace_end {
790
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");
791
+ }
792
+ .ace_dark .ace_fold-widget.ace_closed {
793
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");
794
+ }
795
+ .ace_dark .ace_fold-widget:hover {
796
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
797
+ background-color: rgba(255, 255, 255, 0.1);
798
+ }
799
+ .ace_dark .ace_fold-widget:active {
800
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
801
+ }
802
+
803
+ .ace_inline_button {
804
+ border: 1px solid lightgray;
805
+ display: inline-block;
806
+ margin: -1px 8px;
807
+ padding: 0 5px;
808
+ pointer-events: auto;
809
+ cursor: pointer;
810
+ }
811
+ .ace_inline_button:hover {
812
+ border-color: gray;
813
+ background: rgba(200,200,200,0.2);
814
+ display: inline-block;
815
+ pointer-events: auto;
816
+ }
817
+
818
+ .ace_fold-widget.ace_invalid {
819
+ background-color: #FFB4B4;
820
+ border-color: #DE5555;
821
+ }
822
+
823
+ .ace_fade-fold-widgets .ace_fold-widget {
824
+ transition: opacity 0.4s ease 0.05s;
825
+ opacity: 0;
826
+ }
827
+
828
+ .ace_fade-fold-widgets:hover .ace_fold-widget {
829
+ transition: opacity 0.05s ease 0.05s;
830
+ opacity:1;
831
+ }
832
+
833
+ .ace_underline {
834
+ text-decoration: underline;
835
+ }
836
+
837
+ .ace_bold {
838
+ font-weight: bold;
839
+ }
840
+
841
+ .ace_nobold .ace_bold {
842
+ font-weight: normal;
843
+ }
844
+
845
+ .ace_italic {
846
+ font-style: italic;
847
+ }
848
+
849
+
850
+ .ace_error-marker {
851
+ background-color: rgba(255, 0, 0,0.2);
852
+ position: absolute;
853
+ z-index: 9;
854
+ }
855
+
856
+ .ace_highlight-marker {
857
+ background-color: rgba(255, 255, 0,0.2);
858
+ position: absolute;
859
+ z-index: 8;
860
+ }
861
+
862
+ .ace_mobile-menu {
863
+ position: absolute;
864
+ line-height: 1.5;
865
+ border-radius: 4px;
866
+ -ms-user-select: none;
867
+ -moz-user-select: none;
868
+ -webkit-user-select: none;
869
+ user-select: none;
870
+ background: white;
871
+ box-shadow: 1px 3px 2px grey;
872
+ border: 1px solid #dcdcdc;
873
+ color: black;
874
+ }
875
+ .ace_dark > .ace_mobile-menu {
876
+ background: #333;
877
+ color: #ccc;
878
+ box-shadow: 1px 3px 2px grey;
879
+ border: 1px solid #444;
880
+
881
+ }
882
+ .ace_mobile-button {
883
+ padding: 2px;
884
+ cursor: pointer;
885
+ overflow: hidden;
886
+ }
887
+ .ace_mobile-button:hover {
888
+ background-color: #eee;
889
+ opacity:1;
890
+ }
891
+ .ace_mobile-button:active {
892
+ background-color: #ddd;
893
+ }
894
+
895
+ .ace_placeholder {
896
+ position: relative;
897
+ font-family: arial;
898
+ transform: scale(0.9);
899
+ transform-origin: left;
900
+ white-space: pre;
901
+ opacity: 0.7;
902
+ margin: 0 10px;
903
+ z-index: 1;
904
+ }
905
+
906
+ .ace_ghost_text {
907
+ opacity: 0.5;
908
+ font-style: italic;
909
+ }
910
+
911
+ .ace_ghost_text_container > div {
912
+ white-space: pre;
913
+ }
914
+
915
+ .ghost_text_line_wrapped::after {
916
+ content: "↩";
917
+ position: absolute;
918
+ }
919
+
920
+ .ace_lineWidgetContainer.ace_ghost_text {
921
+ margin: 0px 4px
922
+ }
923
+
924
+ .ace_screenreader-only {
925
+ position:absolute;
926
+ left:-10000px;
927
+ top:auto;
928
+ width:1px;
929
+ height:1px;
930
+ overflow:hidden;
931
+ }
932
+
933
+ .ace_hidden_token {
934
+ display: none;
935
+ }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,i,m){var g=e("../lib/dom"),v=e("../lib/oop"),w=e("../lib/event_emitter").EventEmitter,h=function(){function f(a,c){this.canvas=g.createElement("canvas"),this.renderer=c,this.pixelRatio=1,this.maxHeight=c.layerConfig.maxHeight,this.lineHeight=c.layerConfig.lineHeight,this.canvasHeight=a.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=a.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)"},a.element.appendChild(this.canvas)}return f.prototype.$updateDecorators=function(a){var c=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(a){this.maxHeight=a.maxHeight,this.lineHeight=a.lineHeight,this.canvasHeight=a.height;var s=(a.lastRow+1)*this.lineHeight;s<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var l=this.canvas.getContext("2d");function o(N,$){return N.priority<$.priority?-1:N.priority>$.priority?1:0}var u=this.renderer.session.$annotations;if(l.clearRect(0,0,this.canvas.width,this.canvas.height),u){var p={info:1,warning:2,error:3};u.forEach(function(N){N.priority=p[N.type]||null}),u=u.sort(o);for(var y=this.renderer.session.$foldData,x=0;x<u.length;x++){var R=u[x].row,A=this.compensateFoldRows(R,y),k=Math.round((R-A)*this.lineHeight*this.heightRatio),b=Math.round((R-A)*this.lineHeight*this.heightRatio),M=Math.round(((R-A)*this.lineHeight+this.lineHeight)*this.heightRatio),E=M-b;if(E<this.minDecorationHeight){var O=(b+M)/2|0;O<this.halfMinDecorationHeight?O=this.halfMinDecorationHeight:O+this.halfMinDecorationHeight>this.canvasHeight&&(O=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(O-this.halfMinDecorationHeight),M=Math.round(O+this.halfMinDecorationHeight)}l.fillStyle=c[u[x].type]||null,l.fillRect(0,k,this.canvasWidth,M-b)}}var T=this.renderer.session.selection.getCursor();if(T){var A=this.compensateFoldRows(T.row,y),k=Math.round((T.row-A)*this.lineHeight*this.heightRatio);l.fillStyle="rgba(0, 0, 0, 0.5)",l.fillRect(0,k,this.canvasWidth,2)}},f.prototype.compensateFoldRows=function(a,c){var s=0;if(c&&c.length>0)for(var l=0;l<c.length;l++)a>c[l].start.row&&a<c[l].end.row?s+=a-c[l].start.row:a>=c[l].end.row&&(s+=c[l].end.row-c[l].start.row);return s},f}();v.implement(h.prototype,w),i.Decorator=h}),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(e,i,m){var g=e("./lib/oop"),v=e("./lib/dom"),w=e("./lib/lang"),h=e("./config"),f=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,c=e("./layer/text").Text,s=e("./layer/cursor").Cursor,l=e("./scrollbar").HScrollBar,o=e("./scrollbar").VScrollBar,u=e("./scrollbar_custom").HScrollBar,p=e("./scrollbar_custom").VScrollBar,y=e("./renderloop").RenderLoop,x=e("./layer/font_metrics").FontMetrics,R=e("./lib/event_emitter").EventEmitter,A=e("./css/editor-css"),k=e("./layer/decorators").Decorator,b=e("./lib/useragent"),M=e("./layer/text_util").isTextToken;v.importCssString(A,"ace_editor.css",!1);var E=function(){function O(T,N){var $=this;this.container=T||v.createElement("div"),v.addCssClass(this.container,"ace_editor"),v.HI_DPI&&v.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),h.get("useStrictCSP")==null&&h.set("useStrictCSP",!1),this.$gutter=v.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=v.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=v.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new f(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var _=this.$textLayer=new c(this.content);this.canvas=_.element,this.$markerFront=new a(this.content),this.$cursorLayer=new s(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.on("scroll",function(S){$.$scrollAnimation||$.session.setScrollTop(S.data-$.scrollMargin.top)}),this.scrollBarH.on("scroll",function(S){$.$scrollAnimation||$.session.setScrollLeft(S.data-$.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(S){$.updateCharacterSize(),$.onResize(!0,$.gutterWidth,$.$size.width,$.$size.height),$._signal("changeCharacterSize",S)}),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 y(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),h.resetOptions(this),h._signal("renderer",this)}return O.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(),v.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},O.prototype.setSession=function(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(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))},O.prototype.updateLines=function(T,N,$){if(N===void 0&&(N=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRow<N&&(this.$changedLines.lastRow=N)):this.$changedLines={firstRow:T,lastRow:N},this.$changedLines.lastRow<this.layerConfig.firstRow)if($)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},O.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},O.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},O.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},O.prototype.updateFull=function(T){T?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},O.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},O.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},O.prototype.onResize=function(T,N,$,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?1:0;var S=this.container;_||(_=S.clientHeight||S.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!S.style.height||S.style.height=="0px")&&(S.style.height="1px",_=S.clientHeight||S.scrollHeight),$||($=S.clientWidth||S.scrollWidth);var L=this.$updateCachedSize(T,N,$,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!$&&!_)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(L|this.$changes,!0):this.$loop.schedule(L|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},O.prototype.$updateCachedSize=function(T,N,$,_){_-=this.$extraHeight||0;var S=0,L=this.$size,I={width:L.width,height:L.height,scrollerHeight:L.scrollerHeight,scrollerWidth:L.scrollerWidth};if(_&&(T||L.height!=_)&&(L.height=_,S|=this.CHANGE_SIZE,L.scrollerHeight=L.height,this.$horizScroll&&(L.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(L.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",S=S|this.CHANGE_SCROLL),$&&(T||L.width!=$)){S|=this.CHANGE_SIZE,L.width=$,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,v.setStyle(this.scrollBarH.element.style,"left",N+"px"),v.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),L.scrollerWidth=Math.max(0,$-N-this.scrollBarV.getWidth()-this.margin.h),v.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";v.setStyle(this.scrollBarH.element.style,"right",F),v.setStyle(this.scroller.style,"right",F),v.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(L.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(S|=this.CHANGE_FULL)}return L.$dirty=!$||!_,S&&this._signal("resize",I),S},O.prototype.onGutterResize=function(T){var N=this.$showGutter?T: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()},O.prototype.adjustWrapLimit=function(){var T=this.$size.scrollerWidth-this.$padding*2,N=Math.floor(T/this.characterWidth);return this.session.adjustWrapLimit(N,this.$showPrintMargin&&this.$printMarginColumn)},O.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},O.prototype.getAnimatedScroll=function(){return this.$animatedScroll},O.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},O.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},O.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},O.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},O.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},O.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},O.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},O.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},O.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},O.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},O.prototype.getShowGutter=function(){return this.getOption("showGutter")},O.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},O.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},O.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},O.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},O.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},O.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var T=v.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=v.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,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()}},O.prototype.getContainerElement=function(){return this.container},O.prototype.getMouseEventTarget=function(){return this.scroller},O.prototype.getTextAreaContainer=function(){return this.container},O.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var T=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){v.translate(this.textarea,-100,0);return}var $=this.$cursorLayer.$pixelPos;if($){N&&N.markerRange&&($=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,S=$.top,L=$.left;S-=_.offset;var I=N&&N.useTextareaForIME||b.isMobile?this.lineHeight:1;if(S<0||S>_.height-I){v.translate(this.textarea,0,0);return}var F=1,H=this.$size.height-I;if(!N)S+=this.lineHeight;else if(N.useTextareaForIME){var W=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(W)[0]}else S+=this.lineHeight+2;L-=this.scrollLeft,L>this.$size.scrollerWidth-F&&(L=this.$size.scrollerWidth-F),L+=this.gutterWidth+this.margin.left,v.setStyle(T,"height",I+"px"),v.setStyle(T,"width",F+"px"),v.translate(this.textarea,Math.min(L,this.$size.scrollerWidth-F),Math.min(S,H))}}},O.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},O.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},O.prototype.getLastFullyVisibleRow=function(){var T=this.layerConfig,N=T.lastRow,$=this.session.documentToScreenRow(N,0)*T.lineHeight;return $-this.session.getScrollTop()>T.height-T.lineHeight?N-1:N},O.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},O.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},O.prototype.setScrollMargin=function(T,N,$,_){var S=this.scrollMargin;S.top=T|0,S.bottom=N|0,S.right=_|0,S.left=$|0,S.v=S.top+S.bottom,S.h=S.left+S.right,S.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-S.top),this.updateFull()},O.prototype.setMargin=function(T,N,$,_){var S=this.margin;S.top=T|0,S.bottom=N|0,S.right=_|0,S.left=$|0,S.v=S.top+S.bottom,S.h=S.left+S.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},O.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},O.prototype.setHScrollBarAlwaysVisible=function(T){this.setOption("hScrollBarAlwaysVisible",T)},O.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},O.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},O.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,N=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(T-=(N-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>T-N&&(T=this.scrollTop+N,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(T+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},O.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},O.prototype.freeze=function(){this.$frozen=!0},O.prototype.unfreeze=function(){this.$frozen=!1},O.prototype.$renderChanges=function(T,N){if(this.$changes&&(T|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!T&&!N){this.$changes|=T;return}if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var $=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=this.$computeLayerConfig()|this.$loop.clear(),$.firstRow!=this.layerConfig.firstRow&&$.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+($.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,T=T|this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}$=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),v.translate(this.content,-this.scrollLeft,-$.offset);var S=$.width+2*this.$padding+"px",L=$.minHeight+"px";v.setStyle(this.content.style,"width",S),v.setStyle(this.content.style,"height",L)}if(T&this.CHANGE_H_SCROLL&&(v.translate(this.content,-this.scrollLeft,-$.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),T&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}if(T&this.CHANGE_SCROLL){this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update($):this.$textLayer.scrollLines($),this.$showGutter&&(T&this.CHANGE_GUTTER||T&this.CHANGE_LINES?this.$gutterLayer.update($):this.$gutterLayer.scrollLines($)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($),this.$markerBack.update($),this.$markerFront.update($),this.$cursorLayer.update($),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update($),this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight($),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators($)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update($),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update($),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update($),this._signal("afterRender",T)},O.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,$=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&($+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&$>this.$maxPixelHeight&&($=this.$maxPixelHeight);var _=$<=2*this.lineHeight,S=!_&&T>N;if($!=this.desiredHeight||this.$size.height!=this.desiredHeight||S!=this.$vScroll){S!=this.$vScroll&&(this.$vScroll=S,this.scrollBarV.setVisible(S));var L=this.container.clientWidth;this.container.style.height=$+"px",this.$updateCachedSize(!0,this.$gutterWidth,L,$),this.desiredHeight=$,this._signal("autosize")}},O.prototype.$computeLayerConfig=function(){var T=this.session,N=this.$size,$=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),S=_*this.lineHeight,L=this.$getLongestLine(),I=!$&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-L-2*this.$padding<0),F=this.$horizScroll!==I;F&&(this.$horizScroll=I,this.scrollBarH.setVisible(I));var H=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var W=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;S+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,S-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,L+2*this.$padding-N.scrollerWidth+q.right)));var X=!$&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-S+V<0||this.scrollTop>q.top),G=H!==X;G&&(this.$vScroll=X,this.scrollBarV.setVisible(X));var Z=this.scrollTop%this.lineHeight,ie=Math.ceil(W/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+ie,me,ye,fe=this.lineHeight;J=T.screenToDocumentRow(J,0);var _e=T.getFoldLine(J);_e&&(J=_e.start.row),me=T.documentToScreenRow(J,0),ye=T.getRowLength(J)*fe,ae=Math.min(T.screenToDocumentRow(ae,0),T.getLength()-1),W=N.scrollerHeight+T.getRowLength(ae)*fe+ye,Z=this.scrollTop-me*fe;var it=0;return(this.layerConfig.width!=L||F)&&(it=this.CHANGE_H_SCROLL),(F||G)&&(it|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(L=this.$getLongestLine())),this.layerConfig={width:L,padding:this.$padding,firstRow:J,firstRowScreen:me,lastRow:ae,lineHeight:fe,characterWidth:this.characterWidth,minHeight:W,maxHeight:S,offset:Z,gutterOffset:fe?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/fe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(L-this.$padding),it},O.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var $=this.layerConfig;if(!(T>$.lastRow+1)&&!(N<$.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update($),this.$textLayer.update($);return}return this.$textLayer.updateLines($,T,N),!0}}},O.prototype.$getLongestLine=function(){var T=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(T+=1),this.$textLayer&&T>this.$textLayer.MAX_LINE_LENGTH&&(T=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(T*this.characterWidth))},O.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},O.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},O.prototype.addGutterDecoration=function(T,N){this.$gutterLayer.addGutterDecoration(T,N)},O.prototype.removeGutterDecoration=function(T,N){this.$gutterLayer.removeGutterDecoration(T,N)},O.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},O.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),this.$loop.schedule(this.CHANGE_GUTTER)},O.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},O.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},O.prototype.showCursor=function(){this.$cursorLayer.showCursor()},O.prototype.scrollSelectionIntoView=function(T,N,$){this.scrollCursorIntoView(T,$),this.scrollCursorIntoView(N,$)},O.prototype.scrollCursorIntoView=function(T,N,$){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(T),S=_.left,L=_.top,I=$&&$.top||0,F=$&&$.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var H=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;H+I>L?(N&&H+I>L+this.lineHeight&&(L-=N*this.$size.scrollerHeight),L===0&&(L=-this.scrollMargin.top),this.session.setScrollTop(L)):H+this.$size.scrollerHeight-F<L+this.lineHeight&&(N&&H+this.$size.scrollerHeight-F<L-this.lineHeight&&(L+=N*this.$size.scrollerHeight),this.session.setScrollTop(L+this.lineHeight+F-this.$size.scrollerHeight));var W=this.scrollLeft,V=2*this.layerConfig.characterWidth;S-V<W?(S-=V,S<this.$padding+V&&(S=-this.scrollMargin.left),this.session.setScrollLeft(S)):(S+=V,W+this.$size.scrollerWidth<S+this.characterWidth?this.session.setScrollLeft(Math.round(S+this.characterWidth-this.$size.scrollerWidth)):W<=this.$padding&&S-W<this.characterWidth&&this.session.setScrollLeft(0))}},O.prototype.getScrollTop=function(){return this.session.getScrollTop()},O.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},O.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},O.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},O.prototype.scrollToRow=function(T){this.session.setScrollTop(T*this.lineHeight)},O.prototype.alignCursor=function(T,N){typeof T=="number"&&(T={row:T,column:0});var $=this.$cursorLayer.getPixelPosition(T),_=this.$size.scrollerHeight-this.lineHeight,S=$.top-_*(N||0);return this.session.setScrollTop(S),S},O.prototype.$calcSteps=function(T,N){var $=0,_=this.STEPS,S=[],L=function(I,F,H){return H*(Math.pow(I-1,3)+1)+F};for($=0;$<_;++$)S.push(L($/this.STEPS,T,N-T));return S},O.prototype.scrollToLine=function(T,N,$,_){var S=this.$cursorLayer.getPixelPosition({row:T,column:0}),L=S.top;N&&(L-=this.$size.scrollerHeight/2);var I=this.scrollTop;this.session.setScrollTop(L),$!==!1&&this.animateScrolling(I,_)},O.prototype.animateScrolling=function(T,N){var $=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(T==$)return;if(this.$scrollAnimation){var S=this.$scrollAnimation.steps;if(S.length&&(T=S[0],T==$))return}var L=_.$calcSteps(T,$);this.$scrollAnimation={from:T,to:$,steps:L},clearInterval(this.$timer),_.session.setScrollTop(L.shift()),_.session.$scrollTop=$;function I(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){I();return}if(!_.session)return clearInterval(_.$timer);L.length?(_.session.setScrollTop(L.shift()),_.session.$scrollTop=$):$!=null?(_.session.$scrollTop=-1,_.session.setScrollTop($),$=null):I()},10)},O.prototype.scrollToY=function(T){this.scrollTop!==T&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=T)},O.prototype.scrollToX=function(T){this.scrollLeft!==T&&(this.scrollLeft=T),this.$loop.schedule(this.CHANGE_H_SCROLL)},O.prototype.scrollTo=function(T,N){this.session.setScrollTop(N),this.session.setScrollLeft(T)},O.prototype.scrollBy=function(T,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),T&&this.session.setScrollLeft(this.session.getScrollLeft()+T)},O.prototype.isScrollableBy=function(T,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||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},O.prototype.pixelToScreenCoordinates=function(T,N){var $;if(this.$hasCssTransforms){$={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([T,N]);T=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else $=this.scroller.getBoundingClientRect();var S=T+this.scrollLeft-$.left-this.$padding,L=S/this.characterWidth,I=Math.floor((N+this.scrollTop-$.top)/this.lineHeight),F=this.$blockCursor?Math.floor(L):Math.round(L);return{row:I,column:F,side:L-F>0?1:-1,offsetX:S}},O.prototype.screenToTextCoordinates=function(T,N){var $;if(this.$hasCssTransforms){$={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([T,N]);T=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else $=this.scroller.getBoundingClientRect();var S=T+this.scrollLeft-$.left-this.$padding,L=S/this.characterWidth,I=this.$blockCursor?Math.floor(L):Math.round(L),F=Math.floor((N+this.scrollTop-$.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(I,0),S)},O.prototype.textToScreenCoordinates=function(T,N){var $=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(T,N),S=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,T)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),L=_.row*this.lineHeight;return{pageX:$.left+S-this.scrollLeft,pageY:$.top+L-this.scrollTop}},O.prototype.visualizeFocus=function(){v.addCssClass(this.container,"ace_focus")},O.prototype.visualizeBlur=function(){v.removeCssClass(this.container,"ace_focus")},O.prototype.showComposition=function(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),T.useTextareaForIME==null&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(v.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},O.prototype.setCompositionText=function(T){var N=this.session.selection.cursor;this.addToken(T,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},O.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),v.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},O.prototype.setGhostText=function(T,N){var $=this.session.selection.cursor,_=N||{row:$.row,column:$.column};this.removeGhostText();var S=this.$calculateWrappedTextChunks(T,_);this.addToken(S[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:T,position:{row:_.row,column:_.column}};var L=v.createElement("div");if(S.length>1){var I=this.hideTokensAfterPosition(_.row,_.column),F;S.slice(1).forEach(function(G){var Z=v.createElement("div"),ie=v.createElement("span");ie.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),ie.appendChild(v.createTextNode(G.text)),Z.appendChild(ie),L.appendChild(Z),F=Z}),I.forEach(function(G){var Z=v.createElement("span");M(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(v.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:L,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var H=this.$cursorLayer.getPixelPosition(_,!0),W=this.container,V=W.getBoundingClientRect().height,q=S.length*this.lineHeight,X=q<V-H.top;if(X)return;q<V?this.scrollBy(0,(S.length-1)*this.lineHeight):this.scrollToRow(_.row)}},O.prototype.$calculateWrappedTextChunks=function(T,N){var $=this.$size.scrollerWidth-this.$padding*2,_=Math.floor($/this.characterWidth)-2;_=_<=0?60:_;for(var S=T.split(/\r?\n/),L=[],I=0;I<S.length;I++){var F=this.session.$getDisplayTokens(S[I],N.column),H=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(H.length>0){var W=0;H.push(S[I].length);for(var V=0;V<H.length;V++){var q=S[I].slice(W,H[V]);L.push({text:q,wrapped:!0}),W=H[V]}}else L.push({text:S[I],wrapped:!1})}return L},O.prototype.removeGhostText=function(){if(this.$ghostText){var T=this.$ghostText.position;this.removeExtraToken(T.row,T.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},O.prototype.addToken=function(T,N,$,_){var S=this.session;S.bgTokenizer.lines[$]=null;var L={type:N,value:T},I=S.getTokens($);if(_==null||!I.length)I.push(L);else for(var F=0,H=0;H<I.length;H++){var W=I[H];if(F+=W.value.length,_<=F){var V=W.value.length-(F-_),q=W.value.slice(0,V),X=W.value.slice(V);I.splice(H,1,{type:W.type,value:q},L,{type:W.type,value:X});break}}this.updateLines($,$)},O.prototype.hideTokensAfterPosition=function(T,N){for(var $=this.session.getTokens(T),_=0,S=!1,L=[],I=0;I<$.length;I++){var F=$[I];if(_+=F.value.length,F.type!=="ghost_text"){if(S){L.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&(S=!0)}}return this.updateLines(T,T),L},O.prototype.removeExtraToken=function(T,N){this.session.bgTokenizer.lines[T]=null,this.updateLines(T,T)},O.prototype.setTheme=function(T,N){var $=this;if(this.$themeId=T,$._dispatchEvent("themeChange",{theme:T}),!T||typeof T=="string"){var _=T||this.$options.theme.initialValue;h.loadModule(["theme",_],S)}else S(T);function S(L){if($.$themeId!=T)return N&&N();if(!L||!L.cssClass)throw new Error("couldn't load module "+T+" or it didn't call define");L.$id&&($.$themeId=L.$id),v.importCssString(L.cssText,L.cssClass,$.container),$.theme&&v.removeCssClass($.container,$.theme.cssClass);var I="padding"in L?L.padding:"padding"in($.theme||{})?4:$.$padding;$.$padding&&I!=$.$padding&&$.setPadding(I),$.$theme=L.cssClass,$.theme=L,v.addCssClass($.container,L.cssClass),v.setCssClass($.container,"ace_dark",L.isDark),$.$size&&($.$size.width=0,$.$updateSizeAsync()),$._dispatchEvent("themeLoaded",{theme:L}),N&&N(),b.isSafari&&$.scroller&&($.scroller.style.background="red",$.scroller.style.background="")}},O.prototype.getTheme=function(){return this.$themeId},O.prototype.setStyle=function(T,N){v.setCssClass(this.container,T,N!==!1)},O.prototype.unsetStyle=function(T){v.removeCssClass(this.container,T)},O.prototype.setCursorStyle=function(T){v.setStyle(this.scroller.style,"cursor",T)},O.prototype.setMouseCursor=function(T){v.setStyle(this.scroller.style,"cursor",T)},O.prototype.attachToShadowRoot=function(){v.importCssString(A,"ace_editor.css",this.container)},O.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},O.prototype.$updateCustomScrollbar=function(T){var N=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,T===!0?(this.scrollBarV=new p(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollTop($.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollLeft($.data-N.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new l(this.container,this),this.scrollBarV.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollTop($.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function($){N.$scrollAnimation||N.session.setScrollLeft($.data-N.scrollMargin.left)}))},O.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var T=this;this.$resizeTimer=w.delayedCall(function(){T.destroyed||T.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var $=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(T.$size.width-$)>1||Math.abs(T.$size.height-_)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},O}();E.prototype.CHANGE_CURSOR=1,E.prototype.CHANGE_MARKER=2,E.prototype.CHANGE_GUTTER=4,E.prototype.CHANGE_SCROLL=8,E.prototype.CHANGE_LINES=16,E.prototype.CHANGE_TEXT=32,E.prototype.CHANGE_SIZE=64,E.prototype.CHANGE_MARKER_BACK=128,E.prototype.CHANGE_MARKER_FRONT=256,E.prototype.CHANGE_FULL=512,E.prototype.CHANGE_H_SCROLL=1024,E.prototype.$changes=0,E.prototype.$padding=null,E.prototype.$frozen=!1,E.prototype.STEPS=8,g.implement(E.prototype,R),h.defineOptions(E.prototype,"renderer",{useResizeObserver:{set:function(O){!O&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):O&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(O){this.$textLayer.setShowInvisibles(O)&&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(O){typeof O=="number"&&(this.$printMarginColumn=O),this.$showPrintMargin=!!O,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(O){this.$gutter.style.display=O?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(O){this.$gutterLayer.$useSvgGutterIcons=O},initialValue:!1},showFoldedAnnotations:{set:function(O){this.$gutterLayer.$showFoldedAnnotations=O},initialValue:!1},fadeFoldWidgets:{set:function(O){v.setCssClass(this.$gutter,"ace_fade-fold-widgets",O)},initialValue:!1},showFoldWidgets:{set:function(O){this.$gutterLayer.setShowFoldWidgets(O),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(O){this.$textLayer.setDisplayIndentGuides(O)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(O){this.$textLayer.setHighlightIndentGuides(O)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(O){this.$gutterLayer.setHighlightGutterLine(O),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(O){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(O){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(O){typeof O=="number"&&(O=O+"px"),this.container.style.fontSize=O,this.updateFontSize()},initialValue:12},fontFamily:{set:function(O){this.container.style.fontFamily=O,this.updateFontSize()}},maxLines:{set:function(O){this.updateFull()}},minLines:{set:function(O){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(O){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(O){O=+O||0,this.$scrollPastEnd!=O&&(this.$scrollPastEnd=O,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(O){this.$gutterLayer.$fixedWidth=!!O,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(O){this.$updateCustomScrollbar(O)},initialValue:!1},theme:{set:function(O){this.setTheme(O)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),i.VirtualRenderer=E}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(e,i,m){var g=e("../lib/oop"),v=e("../lib/net"),w=e("../lib/event_emitter").EventEmitter,h=e("../config");function f(l){var o="importScripts('"+v.qualifyURL(l)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,p=new u;return p.append(o),p.getBlob("application/javascript")}}function a(l){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var o=f(l),u=window.URL||window.webkitURL,p=u.createObjectURL(o);return new Worker(p)}return new Worker(l)}var c=function(l){l.postMessage||(l=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=l,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(){g.implement(this,w),this.$createWorkerFromOldConfig=function(l,o,u,p,y){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),h.get("packaged")||!e.toUrl)p=p||h.moduleUrl(o,"worker");else{var x=this.$normalizePath;p=p||x(e.toUrl("ace/worker/worker.js",null,"_"));var R={};l.forEach(function(A){R[A]=x(e.toUrl(A,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=a(p),y&&this.send("importScripts",y),this.$worker.postMessage({init:!0,tlns:R,module:o,classname:u}),this.$worker},this.onMessage=function(l){var o=l.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var u=this.callbacks[o.id];u&&(u(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(l){window.console&&console.error&&console.error(l)},this.$normalizePath=function(l){return v.qualifyURL(l)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(l){l.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(l,o){this.$worker.postMessage({command:l,args:o})},this.call=function(l,o,u){if(u){var p=this.callbackId++;this.callbacks[p]=u,o.push(p)}this.send(l,o)},this.emit=function(l,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:l,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(l){this.$doc&&this.terminate(),this.$doc=l,this.call("setValue",[l.getValue()]),l.on("change",this.changeListener,!0)},this.changeListener=function(l){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),l.action=="insert"?this.deltaQueue.push(l.start,l.lines):this.deltaQueue.push(l.start,l.end)},this.$sendDeltaQueue=function(){var l=this.deltaQueue;l&&(this.deltaQueue=null,l.length>50&&l.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:l}))}}).call(c.prototype);var s=function(l,o,u){var p=null,y=!1,x=Object.create(w),R=[],A=new c({messageBuffer:R,terminate:function(){},postMessage:function(b){R.push(b),p&&(y?setTimeout(k):k())}});A.setEmitSync=function(b){y=b};var k=function(){var b=R.shift();b.command?p[b.command].apply(p,b.args):b.event&&x._signal(b.event,b.data)};return x.postMessage=function(b){A.onMessage({data:b})},x.callback=function(b,M){this.postMessage({type:"call",id:M,data:b})},x.emit=function(b,M){this.postMessage({type:"event",name:b,data:M})},h.loadModule(["worker",o],function(b){for(p=new b[u](x);R.length;)k()}),A};i.UIWorkerClient=s,i.WorkerClient=c,i.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,i,m){var g=e("./range").Range,v=e("./lib/event_emitter").EventEmitter,w=e("./lib/oop"),h=function(){function f(a,c,s,l,o,u){var p=this;this.length=c,this.session=a,this.doc=a.getDocument(),this.mainClass=o,this.othersClass=u,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=l,this.$onCursorChange=function(){setTimeout(function(){p.onCursorChange()})},this.$pos=s;var y=a.getUndoManager().$undoStack||a.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=y.length,this.setup(),a.selection.on("changeCursor",this.$onCursorChange)}return f.prototype.setup=function(){var a=this,c=this.doc,s=this.session;this.selectionBefore=s.selection.toJSON(),s.selection.inMultiSelectMode&&s.selection.toSingleRange(),this.pos=c.createAnchor(this.$pos.row,this.$pos.column);var l=this.pos;l.$insertRight=!0,l.detach(),l.markerId=s.addMarker(new g(l.row,l.column,l.row,l.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=c.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),a.others.push(u)}),s.setUndoSelect(!1)},f.prototype.showOtherMarkers=function(){if(!this.othersActive){var a=this.session,c=this;this.othersActive=!0,this.others.forEach(function(s){s.markerId=a.addMarker(new g(s.row,s.column,s.row,s.column+c.length),c.othersClass,null,!1)})}},f.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var a=0;a<this.others.length;a++)this.session.removeMarker(this.others[a].markerId)}},f.prototype.onUpdate=function(a){if(this.$updating)return this.updateAnchors(a);var c=a;if(c.start.row===c.end.row&&c.start.row===this.pos.row){this.$updating=!0;var s=a.action==="insert"?c.end.column-c.start.column:c.start.column-c.end.column,l=c.start.column>=this.pos.column&&c.start.column<=this.pos.column+this.length+1,o=c.start.column-this.pos.column;if(this.updateAnchors(a),l&&(this.length+=s),l&&!this.session.$fromUndo){if(a.action==="insert")for(var u=this.others.length-1;u>=0;u--){var p=this.others[u],y={row:p.row,column:p.column+o};this.doc.insertMergedLines(y,a.lines)}else if(a.action==="remove")for(var u=this.others.length-1;u>=0;u--){var p=this.others[u],y={row:p.row,column:p.column+o};this.doc.remove(new g(y.row,y.column,y.row,y.column-s))}}this.$updating=!1,this.updateMarkers()}},f.prototype.updateAnchors=function(a){this.pos.onChange(a);for(var c=this.others.length;c--;)this.others[c].onChange(a);this.updateMarkers()},f.prototype.updateMarkers=function(){if(!this.$updating){var a=this,c=this.session,s=function(o,u){c.removeMarker(o.markerId),o.markerId=c.addMarker(new g(o.row,o.column,o.row,o.column+a.length),u,null,!1)};s(this.pos,this.mainClass);for(var l=this.others.length;l--;)s(this.others[l],this.othersClass)}},f.prototype.onCursorChange=function(a){if(!(this.$updating||!this.session)){var c=this.session.selection.getCursor();c.row===this.pos.row&&c.column>=this.pos.column&&c.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",a)):(this.hideOtherMarkers(),this._emit("cursorLeave",a))}},f.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},f.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var a=this.session.getUndoManager(),c=(a.$undoStack||a.$undostack).length-this.$undoStackDepth,s=0;s<c;s++)a.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},f}();w.implement(h.prototype,v),i.PlaceHolder=h}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var g=e("../lib/event"),v=e("../lib/useragent");function w(f,a){return f.row==a.row&&f.column==a.column}function h(f){var a=f.domEvent,c=a.altKey,s=a.shiftKey,l=a.ctrlKey,o=f.getAccelKey(),u=f.getButton();if(l&&v.isMac&&(u=a.button),f.editor.inMultiSelectMode&&u==2){f.editor.textInput.onContextMenu(f.domEvent);return}if(!l&&!c&&!o){u===0&&f.editor.inMultiSelectMode&&f.editor.exitMultiSelectMode();return}if(u===0){var p=f.editor,y=p.selection,x=p.inMultiSelectMode,R=f.getDocumentPosition(),A=y.getCursor(),k=f.inSelection()||y.isEmpty()&&w(R,A),b=f.x,M=f.y,E=function(q){b=q.clientX,M=q.clientY},O=p.session,T=p.renderer.pixelToScreenCoordinates(b,M),N=T,$;if(p.$mouseHandler.$enableJumpToDef)l&&c||o&&c?$=s?"block":"add":c&&p.$blockSelectEnabled&&($="block");else if(o&&!c){if($="add",!x&&s)return}else c&&p.$blockSelectEnabled&&($="block");if($&&v.isMac&&a.ctrlKey&&p.$mouseHandler.cancelContextMenu(),$=="add"){if(!x&&k)return;if(!x){var _=y.toOrientedRange();p.addSelectionMarker(_)}var S=y.rangeList.rangeAtPoint(R);p.inVirtualSelectionMode=!0,s&&(S=null,_=y.ranges[0]||_,p.removeSelectionMarker(_)),p.once("mouseup",function(){var q=y.toOrientedRange();S&&q.isEmpty()&&w(S.cursor,q.cursor)?y.substractPoint(q.cursor):(s?y.substractPoint(_.cursor):_&&(p.removeSelectionMarker(_),y.addRange(_)),y.addRange(q)),p.inVirtualSelectionMode=!1})}else if($=="block"){f.stop(),p.inVirtualSelectionMode=!0;var L,I=[],F=function(){var q=p.renderer.pixelToScreenCoordinates(b,M),X=O.screenToDocumentPosition(q.row,q.column,q.offsetX);w(N,q)&&w(X,y.lead)||(N=q,p.selection.moveToPosition(X),p.renderer.scrollCursorIntoView(),p.removeSelectionMarkers(I),I=y.rectangularRangeBlock(N,T),p.$mouseHandler.$clickSelection&&I.length==1&&I[0].isEmpty()&&(I[0]=p.$mouseHandler.$clickSelection.clone()),I.forEach(p.addSelectionMarker,p),p.updateSelectionMarkers())};x&&!o?y.toSingleRange():!x&&o&&(L=y.toOrientedRange(),p.addSelectionMarker(L)),s?T=O.documentToScreenPosition(y.lead):y.moveToPosition(R),N={row:-1,column:-1};var H=function(q){F(),clearInterval(V),p.removeSelectionMarkers(I),I.length||(I=[y.toOrientedRange()]),L&&(p.removeSelectionMarker(L),y.toSingleRange(L));for(var X=0;X<I.length;X++)y.addRange(I[X]);p.inVirtualSelectionMode=!1,p.$mouseHandler.$clickSelection=null},W=F;g.capture(p.container,E,H);var V=setInterval(function(){W()},20);return f.preventDefault()}}}i.onMouseDown=h}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,i,m){i.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(v){v.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(v){v.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(v){v.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(v){v.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(v){v.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(v){v.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(v){v.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(v){v.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(v){v.multiSelect.rangeCount>1?v.multiSelect.joinSelections():v.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(v){v.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(v){v.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(v){v.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(v){v.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(v){return v&&v.inMultiSelectMode}}];var g=e("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new g(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,i,m){var g=e("./range_list").RangeList,v=e("./range").Range,w=e("./selection").Selection,h=e("./mouse/multi_select_handler").onMouseDown,f=e("./lib/event"),a=e("./lib/lang"),c=e("./commands/multi_select_commands");i.commands=c.defaultCommands.concat(c.multiSelectCommands);var s=e("./search").Search,l=new s;function o(A,k,b){return l.$options.wrap=!0,l.$options.needle=k,l.$options.backwards=b==-1,l.find(A)}var u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(A,k){if(A){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(A),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(A);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}A.cursor||(A.cursor=A.end);var M=this.rangeList.add(A);return this.$onAddRange(A),M.length&&this.$onRemoveRange(M),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(A)}},this.toSingleRange=function(A){A=A||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),A&&this.fromOrientedRange(A)},this.substractPoint=function(A){var k=this.rangeList.substractPoint(A);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var A=this.rangeList.merge();A.length&&this.$onRemoveRange(A)},this.$onAddRange=function(A){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(A),this._signal("addRange",{range:A})},this.$onRemoveRange=function(A){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();A.push(k),this.rangeCount=0}for(var b=A.length;b--;){var M=this.ranges.indexOf(A[b]);this.ranges.splice(M,1)}this._signal("removeRange",{ranges:A}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new g,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var A=this.ranges.length?this.ranges:[this.getRange()],k=[],b=0;b<A.length;b++){var M=A[b],E=M.start.row,O=M.end.row;if(E===O)k.push(M.clone());else{for(k.push(new v(E,M.start.column,E,this.session.getLine(E).length));++E<O;)k.push(this.getLineRange(E,!0));k.push(new v(O,0,O,M.end.column))}b==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var b=k.length;b--;)this.addRange(k[b])},this.joinSelections=function(){var A=this.rangeList.ranges,k=A[A.length-1],b=v.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(b,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var A=this.rangeList.ranges,k=A[A.length-1],b=v.fromPoints(A[0].start,k.end);this.toSingleRange(),this.setSelectionRange(b,k.cursor==k.start)}else{var M=this.session.documentToScreenPosition(this.cursor),E=this.session.documentToScreenPosition(this.anchor),O=this.rectangularRangeBlock(M,E);O.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(A,k,b){var M=[],E=A.column<k.column;if(E)var O=A.column,T=k.column,N=A.offsetX,$=k.offsetX;else var O=k.column,T=A.column,N=k.offsetX,$=A.offsetX;var _=A.row<k.row;if(_)var S=A.row,L=k.row;else var S=k.row,L=A.row;O<0&&(O=0),S<0&&(S=0),S==L&&(b=!0);for(var I,F=S;F<=L;F++){var H=v.fromPoints(this.session.screenToDocumentPosition(F,O,N),this.session.screenToDocumentPosition(F,T,$));if(H.isEmpty()){if(I&&y(H.end,I))break;I=H.end}H.cursor=E?H.start:H.end,M.push(H)}if(_&&M.reverse(),!b){for(var W=M.length-1;M[W].isEmpty()&&W>0;)W--;if(W>0)for(var V=0;M[V].isEmpty();)V++;for(var q=W;q>=V;q--)M[q].isEmpty()&&M.splice(q,1)}return M}}).call(w.prototype);var p=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(A){A.cursor||(A.cursor=A.end);var k=this.getSelectionStyle();return A.marker=this.session.addMarker(A,"ace_selection",k),this.session.$selectionMarkers.push(A),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,A},this.removeSelectionMarker=function(A){if(A.marker){this.session.removeMarker(A.marker);var k=this.session.$selectionMarkers.indexOf(A);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(A){for(var k=this.session.$selectionMarkers,b=A.length;b--;){var M=A[b];if(M.marker){this.session.removeMarker(M.marker);var E=k.indexOf(M);E!=-1&&k.splice(E,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(A){this.addSelectionMarker(A.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(A){this.removeSelectionMarkers(A.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(A){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(A){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(A){var k=A.command,b=A.editor;if(b.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?M=b.forEachSelection(k,A.args):k.multiSelectAction=="forEachLine"?M=b.forEachSelection(k,A.args,!0):k.multiSelectAction=="single"?(b.exitMultiSelectMode(),M=k.exec(b,A.args||{})):M=k.multiSelectAction(b,A.args||{});else{var M=k.exec(b,A.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return M}},this.forEachSelection=function(A,k,b){if(!this.inVirtualSelectionMode){var M=b&&b.keepOrder,E=b==!0||b&&b.$byLines,O=this.session,T=this.selection,N=T.rangeList,$=(M?T:N).ranges,_;if(!$.length)return A.exec?A.exec(this,k||{}):A(this,k||{});var S=T._eventRegistry;T._eventRegistry={};var L=new w(O);this.inVirtualSelectionMode=!0;for(var I=$.length;I--;){if(E)for(;I>0&&$[I].start.row==$[I-1].end.row;)I--;L.fromOrientedRange($[I]),L.index=I,this.selection=O.selection=L;var F=A.exec?A.exec(this,k||{}):A(this,k||{});!_&&F!==void 0&&(_=F),L.toOrientedRange($[I])}L.detach(),this.selection=O.selection=T,this.inVirtualSelectionMode=!1,T._eventRegistry=S,T.mergeOverlappingRanges(),T.ranges[0]&&T.fromOrientedRange(T.ranges[0]);var H=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),H&&H.from==H.to&&this.renderer.animateScrolling(H.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var A="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,b=[],M=0;M<k.length;M++)b.push(this.session.getTextRange(k[M]));var E=this.session.getDocument().getNewLineCharacter();A=b.join(E),A.length==(b.length-1)*E.length&&(A="")}else this.selection.isEmpty()||(A=this.session.getTextRange(this.getSelectionRange()));return A},this.$checkMultiselectChange=function(A,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var b=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var M=k==this.multiSelect.anchor?b.cursor==b.start?b.end:b.start:b.cursor;M.row!=k.row||this.session.$clipPositionToDocument(M.row,M.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(A,k,b){if(k=k||{},k.needle=A||k.needle,k.needle==null){var M=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(M)}this.$search.set(k);var E=this.$search.findAll(this.session);if(!E.length)return 0;var O=this.multiSelect;b||O.toSingleRange(E[0]);for(var T=E.length;T--;)O.addRange(E[T],!0);return M&&O.rangeList.rangeAtPoint(M.start)&&O.addRange(M,!0),E.length},this.selectMoreLines=function(A,k){var b=this.selection.toOrientedRange(),M=b.cursor==b.end,E=this.session.documentToScreenPosition(b.cursor);this.selection.$desiredColumn&&(E.column=this.selection.$desiredColumn);var O=this.session.screenToDocumentPosition(E.row+A,E.column);if(b.isEmpty())var N=O;else var T=this.session.documentToScreenPosition(M?b.end:b.start),N=this.session.screenToDocumentPosition(T.row+A,T.column);if(M){var $=v.fromPoints(O,N);$.cursor=$.start}else{var $=v.fromPoints(N,O);$.cursor=$.end}if($.desiredColumn=E.column,!this.selection.inMultiSelectMode)this.selection.addRange(b);else if(k)var _=b.cursor;this.selection.addRange($),_&&this.selection.substractPoint(_)},this.transposeSelections=function(A){for(var k=this.session,b=k.multiSelect,M=b.ranges,E=M.length;E--;){var O=M[E];if(O.isEmpty()){var T=k.getWordRange(O.start.row,O.start.column);O.start.row=T.start.row,O.start.column=T.start.column,O.end.row=T.end.row,O.end.column=T.end.column}}b.mergeOverlappingRanges();for(var N=[],E=M.length;E--;){var O=M[E];N.unshift(k.getTextRange(O))}A<0?N.unshift(N.pop()):N.push(N.shift());for(var E=M.length;E--;){var O=M[E],$=O.clone();k.replace(O,N[E]),O.start.row=$.start.row,O.start.column=$.start.column}b.fromOrientedRange(b.ranges[0])},this.selectMore=function(A,k,b){var M=this.session,E=M.multiSelect,O=E.toOrientedRange();if(!(O.isEmpty()&&(O=M.getWordRange(O.start.row,O.start.column),O.cursor=A==-1?O.start:O.end,this.multiSelect.addRange(O),b))){var T=M.getTextRange(O),N=o(M,T,A);N&&(N.cursor=A==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(O.cursor)}},this.alignCursors=function(){var A=this.session,k=A.multiSelect,b=k.ranges,M=-1,E=b.filter(function(W){if(W.cursor.row==M)return!0;M=W.cursor.row});if(!b.length||E.length==b.length-1){var O=this.selection.getRange(),T=O.start.row,N=O.end.row,$=T==N;if($){var _=this.session.getLength(),S;do S=this.session.getLine(N);while(/[=:]/.test(S)&&++N<_);do S=this.session.getLine(T);while(/[=:]/.test(S)&&--T>0);T<0&&(T=0),N>=_&&(N=_-1)}var L=this.session.removeFullLines(T,N);L=this.$reAlignText(L,$),this.session.insert({row:T,column:0},L.join(`
936
+ `)+`
937
+ `),$||(O.start.column=0,O.end.column=L[L.length-1].length),this.selection.setRange(O)}else{E.forEach(function(W){k.substractPoint(W.cursor)});var I=0,F=1/0,H=b.map(function(W){var V=W.cursor,q=A.getLine(V.row),X=q.substr(V.column).search(/\S/g);return X==-1&&(X=0),V.column>I&&(I=V.column),X<F&&(F=X),X});b.forEach(function(W,V){var q=W.cursor,X=I-q.column,G=H[V]-F;X>G?A.insert(q,a.stringRepeat(" ",X-G)):A.remove(new v(q.row,q.column,q.row,q.column-X+G)),W.start.column=W.end.column=I,W.start.row=W.end.row=q.row,W.cursor=W.end}),k.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(A,k){var b=!0,M=!0,E,O,T;return A.map(function(L){var I=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return I?E==null?(E=I[1].length,O=I[2].length,T=I[3].length,I):(E+O+T!=I[1].length+I[2].length+I[3].length&&(M=!1),E!=I[1].length&&(b=!1),E>I[1].length&&(E=I[1].length),O<I[2].length&&(O=I[2].length),T>I[3].length&&(T=I[3].length),I):[L]}).map(k?$:b?M?_:$:S);function N(L){return a.stringRepeat(" ",L)}function $(L){return L[2]?N(E)+L[2]+N(O-L[2].length+T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function _(L){return L[2]?N(E+O-L[2].length)+L[2]+N(T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function S(L){return L[2]?N(E)+L[2]+N(T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}}}).call(p.prototype);function y(A,k){return A.row==k.row&&A.column==k.column}i.onSessionChange=function(A){var k=A.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var b=A.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)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(A){A.$multiselectOnSessionChange||(A.$onAddRange=A.$onAddRange.bind(A),A.$onRemoveRange=A.$onRemoveRange.bind(A),A.$onMultiSelect=A.$onMultiSelect.bind(A),A.$onSingleSelect=A.$onSingleSelect.bind(A),A.$multiselectOnSessionChange=i.onSessionChange.bind(A),A.$checkMultiselectChange=A.$checkMultiselectChange.bind(A),A.$multiselectOnSessionChange(A),A.on("changeSession",A.$multiselectOnSessionChange),A.on("mousedown",h),A.commands.addCommands(c.defaultCommands),R(A))}function R(A){if(!A.textInput)return;var k=A.textInput.getElement(),b=!1;f.addListener(k,"keydown",function(E){var O=E.keyCode==18&&!(E.ctrlKey||E.shiftKey||E.metaKey);A.$blockSelectEnabled&&O?b||(A.renderer.setMouseCursor("crosshair"),b=!0):b&&M()},A),f.addListener(k,"keyup",M,A),f.addListener(k,"blur",M,A);function M(E){b&&(A.renderer.setMouseCursor(""),b=!1)}}i.MultiSelect=x,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(A){x(this),A?this.on("mousedown",h):this.off("mousedown",h)},value:!0},enableBlockSelect:{set:function(A){this.$blockSelectEnabled=A},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,i,m){var g=e("../../range").Range,v=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(w,h,f){var a=w.getLine(f);return this.foldingStartMarker.test(a)?"start":h=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(a)?"end":""},this.getFoldWidgetRange=function(w,h,f){return null},this.indentationBlock=function(w,h,f){var a=/\S/,c=w.getLine(h),s=c.search(a);if(s!=-1){for(var l=f||c.length,o=w.getLength(),u=h,p=h;++h<o;){var y=w.getLine(h).search(a);if(y!=-1){if(y<=s){var x=w.getTokenAt(h,0);if(!x||x.type!=="string")break}p=h}}if(p>u){var R=w.getLine(p).length;return new g(u,l,p,R)}}},this.openingBracketBlock=function(w,h,f,a,c){var s={row:f,column:a+1},l=w.$findClosingBracket(h,s,c);if(l){var o=w.foldWidgets[l.row];return o==null&&(o=w.getFoldWidget(l.row)),o=="start"&&l.row>s.row&&(l.row--,l.column=w.getLine(l.row).length),g.fromPoints(s,l)}},this.closingBracketBlock=function(w,h,f,a,c){var s={row:f,column:a},l=w.$findOpeningBracket(h,s);if(l)return l.column++,s.column--,g.fromPoints(l,s)}}).call(v.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(e,i,m){var g=e("../lib/dom"),v=e("../range").Range,w=e("../config").nls;function h(a,c,s){for(var l=0,o=a.length-1;l<=o;){var u=l+o>>1,p=s(c,a[u]);if(p>0)l=u+1;else if(p<0)o=u-1;else return u}return-(l+1)}function f(a,c,s){var l=a.getAnnotations().sort(v.comparePoints);if(l.length){var o=h(l,{row:c,column:-1},v.comparePoints);o<0&&(o=-o-1),o>=l.length?o=s>0?0:l.length-1:o===0&&s<0&&(o=l.length-1);var u=l[o];if(!(!u||!s)){if(u.row===c){do u=l[o+=s];while(u&&u.row===c);if(!u)return l.slice()}var p=[];c=u.row;do p[s<0?"unshift":"push"](u),u=l[o+=s];while(u&&u.row==c);return p.length&&p}}}i.showErrorMarker=function(a,c){var s=a.session,l=a.getCursorPosition(),o=l.row,u=s.widgetManager.getWidgetsAtRow(o).filter(function(E){return E.type=="errorMarker"})[0];u?u.destroy():o-=c;var p=f(s,o,c),y;if(p){var x=p[0];l.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,l.row=x.row,y=a.renderer.$gutterLayer.$annotations[l.row]}else{if(u)return;y={displayText:[w("error-marker.good-state","Looks good!")],className:"ace_ok"}}a.session.unfold(l.row),a.selection.moveToPosition(l);var R={row:l.row,fixedWidth:!0,coverGutter:!0,el:g.createElement("div"),type:"errorMarker"},A=R.el.appendChild(g.createElement("div")),k=R.el.appendChild(g.createElement("div"));k.className="error_widget_arrow "+y.className;var b=a.renderer.$cursorLayer.getPixelPosition(l).left;k.style.left=b+a.renderer.gutterWidth-5+"px",R.el.className="error_widget_wrapper",A.className="error_widget "+y.className,y.displayText.forEach(function(E,O){A.appendChild(g.createTextNode(E)),O<y.displayText.length-1&&A.appendChild(g.createElement("br"))}),A.appendChild(g.createElement("div"));var M=function(E,O,T){if(O===0&&(T==="esc"||T==="return"))return R.destroy(),{command:"null"}};R.destroy=function(){a.$mouseHandler.isMousePressed||(a.keyBinding.removeKeyboardHandler(M),s.widgetManager.removeLineWidget(R),a.off("changeSelection",R.destroy),a.off("changeSession",R.destroy),a.off("mouseup",R.destroy),a.off("change",R.destroy))},a.keyBinding.addKeyboardHandler(M),a.on("changeSelection",R.destroy),a.on("changeSession",R.destroy),a.on("mouseup",R.destroy),a.on("change",R.destroy),a.session.widgetManager.addLineWidget(R),R.el.onmousedown=a.focus.bind(a),a.renderer.scrollCursorIntoView(null,.5,{bottom:R.el.offsetHeight})},g.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(e,i,m){e("./loader_build")(i);var g=e("./lib/dom"),v=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,f=e("./undomanager").UndoManager,a=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),i.config=e("./config"),i.edit=function(s,l){if(typeof s=="string"){var o=s;if(s=document.getElementById(o),!s)throw new Error("ace.edit can't find div #"+o)}if(s&&s.env&&s.env.editor instanceof w)return s.env.editor;var u="";if(s&&/input|textarea/i.test(s.tagName)){var p=s;u=p.value,s=g.createElement("pre"),p.parentNode.replaceChild(s,p)}else s&&(u=s.textContent,s.innerHTML="");var y=i.createEditSession(u),x=new w(new a(s),y,l),R={document:y,editor:x,onResize:x.resize.bind(x,null)};return p&&(R.textarea=p),x.on("destroy",function(){R.editor.container.env=null}),x.container.env=x.env=R,x},i.createEditSession=function(s,l){var o=new h(s,l);return o.setUndoManager(new f),o},i.Range=v,i.Editor=w,i.EditSession=h,i.UndoManager=f,i.VirtualRenderer=a;var c=i.config.version;i.version=c}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=e);for(var m in e)e.hasOwnProperty(m)&&(i.ace[m]=e[m]);i.ace.default=i.ace,n&&(n.exports=i.ace)})}()}(gp)),gp.exports}Bw();var vp={exports:{}},yp;function jw(){return yp||(yp=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var g=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};i.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},i.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},i.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=i.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},f=i.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},a=i.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},c=i.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},s=i.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},l=i.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=i.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=i.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},p=function(){var y="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",R="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",A="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":R,"variable.language":A,"support.function":y,"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})*})`,M={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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(E,O,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,O),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,O,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,O),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,O,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,O),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,O,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,O),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,O,T){T.length&&(T=[]);var N=E[E.length-1];return T.unshift(N,O),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+b+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},s,l,w,h,o,f,a,c,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(E,O,T){var N=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",$=E.split(this.splitRegex);return T.push(N,$[3]),[{type:"constant",value:$[1]},{type:"string",value:$[2]},{type:"support.class",value:$[3]},{type:"string",value:$[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(E,O,T){return E===T[1]?(T.shift(),T.shift(),this.next=T[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,O,T){return E===T[1]?(T.shift(),T.shift(),this.next=T[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(E,O){return O[0]==="heredoc"||O[0]==="indentedHeredoc"?O[0]:E}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(E,O,T){return this.next="",E=="}"&&T.length>1&&T[1]!="start"&&(T.shift(),this.next=T.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(E,O,T){return T.length&&E===T[0]?(T.unshift(E,O),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(E,O,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,O,T){return T.length&&E===T[0]?(T.unshift(E,O),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,O,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,O,T){return T.length&&E===T[0]?(T.unshift(E,O),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,O,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,O,T){return T.length&&E===T[0]?(T.unshift(E,O),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(E,O,T){return T.length&&E===M[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,O,T){return T.length&&E===T[0]?(T.unshift(E,O),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(E,O,T){return T.length&&E[0]===M[T[0]]?(T.shift(),this.next=T.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()};g.inherits(p,v),i.RubyHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var g=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),a=f.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=w.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(w.getLine(s.row));w.replace(new g(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,i,m){var g=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,f=i.FoldMode=function(){};g.inherits(f,v),(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(a,c,s){var l=a.getLine(s),o=this.foldingStartMarker.test(l),u=this.foldingStopMarker.test(l);if(o&&!u){var p=l.match(this.foldingStartMarker);if(p[1]){if((p[1]=="if"||p[1]=="else"||p[1]=="while"||p[1]=="until"||p[1]=="unless")&&(p[1]=="else"&&/^\s*else\s*$/.test(l)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(l)===!1)||p[1]=="when"&&/\sthen\s/.test(l)===!0)return;if(a.getTokenAt(s,p.index+2).type==="keyword")return"start"}else if(!p[3]||a.getTokenAt(s,p.index+1).type==="comment.multiline")return"start"}if(c!="markbeginend"||!u||o&&u)return"";var p=l.match(this.foldingStopMarker);if(p[3]==="end"){if(a.getTokenAt(s,p.index+1).type==="keyword")return"end"}else if(!p[1]||a.getTokenAt(s,p.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,c,s){var l=a.doc.getLine(s),o=this.foldingStartMarker.exec(l);if(o)return o[1]||o[3]?this.rubyBlock(a,s,o.index+2):this.openingBracketBlock(a,"{",s,o.index);var o=this.foldingStopMarker.exec(l);if(o)return o[3]==="end"&&a.getTokenAt(s,o.index+1).type==="keyword"?this.rubyBlock(a,s,o.index+1):o[1]==="=end"&&a.getTokenAt(s,o.index+1).type==="comment.multiline"?this.rubyBlock(a,s,o.index+1):this.closingBracketBlock(a,"}",s,o.index+o[0].length)},this.rubyBlock=function(a,c,s,l){var o=new h(a,c,s),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var p=u.value,y=a.getLine(c);switch(u.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);if(!x.test(y))return;var R=this.indentKeywords[p];break;case"when":if(/\sthen\s/.test(y))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");if(!x.test(y))return;var R=1;break;default:var R=this.indentKeywords[p]}var A=[p];if(R){var k=R===-1?a.getLine(c-1).length:a.getLine(c).length,b=c,M=[];if(M.push(o.getCurrentTokenRange()),o.step=R===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(R==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var E=!1;if(u.type==="keyword"){var O=R*this.indentKeywords[u.value];switch(y=a.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var T=o.$tokenIndex-1;T>=0;T--){var N=o.$rowTokens[T];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){O=0;break}}break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");(!x.test(y)||p=="case")&&(O=0,E=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);x.test(y)||(O=0,E=!0);break;case"when":(/\sthen\s/.test(y)||p=="case")&&(O=0,E=!0)}if(O>0)A.unshift(u.value);else if(O<=0&&E===!1){if(A.shift(),!A.length&&((p=="while"||p=="until"||p=="for")&&u.value!="do"||u.value=="do"&&R==-1&&O!=0||u.value!="do"))break;O===0&&A.unshift(u.value)}}}if(!u)return null;if(l)return M.push(o.getCurrentTokenRange()),M;var c=o.getCurrentTokenRow();if(R===-1){if(u.type==="comment.multiline")var $=6;else var $=a.getLine(c).length;return new w(c,$,b-1,k)}return new w(b,k,c-1,a.getLine(c-1).length)}}}}).call(f.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(e,i,m){var g=e("../lib/oop"),v=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../range").Range,a=e("./folding/ruby").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords};g.inherits(c,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),p=this.getTokenizer().getLineTokens(l,s),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(s=="start"){var x=l.match(/^.*[\{\(\[]\s*$/),R=l.match(/^\s*(class|def|module)\s.*$/),A=l.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=l.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||R||A||k)&&(u+=o)}return u},this.checkOutdent=function(s,l,o){return/^\s+(end|else|rescue|ensure)$/.test(l+o)||this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(s,l,o){var u=l.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(l,o);var p=this.$getIndent(u),y=l.getLine(o-1),x=this.$getIndent(y),R=l.getTabString();x.length<=p.length&&p.slice(-R.length)==R&&l.remove(new f(o,p.length-R.length,o,p.length))},this.getMatching=function(s,l,o){if(l==null){var u=s.selection.lead;o=u.column,l=u.row}var p=s.getTokenAt(l,o);if(p&&p.value in this.indentKeywords)return this.foldingRules.rubyBlock(s,l,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(c.prototype),i.Mode=c}),function(){ace.require(["ace/mode/ruby"],function(e){n&&(n.exports=e)})}()}(vp)),vp.exports}jw();var wp={exports:{}},bp;function zw(){return bp||(bp=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var g=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){var h="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",f="True|False|None|NotImplemented|Ellipsis|__debug__",a="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",c=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":a,"variable.language":"self|cls","constant.language":f,keyword:h},"identifier"),s="[uU]?",l="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",p="(?:(?:[1-9]\\d*)|(?:0))",y="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",A="(?:"+p+"|"+y+"|"+x+"|"+R+")",k="(?:[eE][+-]?\\d+)",b="(?:\\.\\d+)",M="(?:\\d+)",E="(?:(?:"+M+"?"+b+")|(?:"+M+"\\.))",O="(?:(?:"+E+"|"+M+")"+k+")",T="(?:"+O+"|"+E+")",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:s+'"{3}',next:"qqstring3"},{token:"string",regex:s+'"(?=.)',next:"qqstring"},{token:"string",regex:s+"'{3}",next:"qstring3"},{token:"string",regex:s+"'(?=.)",next:"qstring"},{token:"string",regex:l+'"{3}',next:"rawqqstring3"},{token:"string",regex:l+'"(?=.)',next:"rawqqstring"},{token:"string",regex:l+"'{3}",next:"rawqstring3"},{token:"string",regex:l+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:u+'"{3}',next:"rfqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rfqqstring"},{token:"string",regex:u+"'{3}",next:"rfqstring3"},{token:"string",regex:u+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+T+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:T},{token:"constant.numeric",regex:A+"[lL]\\b"},{token:"constant.numeric",regex:A+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};g.inherits(w,v),i.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var g=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};g.inherits(w,v),(function(){this.getFoldWidgetRange=function(h,f,a){var c=h.getLine(a),s=c.match(this.foldingStartMarker);if(s)return s[1]?this.openingBracketBlock(h,s[1],a,s.index):s[2]?this.indentationBlock(h,a,s.index+s[2].length):this.indentationBlock(h,a)}}).call(w.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(e,i,m){var g=e("../lib/oop"),v=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,f=e("../range").Range,a=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};g.inherits(a,v),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),p=this.getTokenizer().getLineTokens(l,s),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(s=="start"){var x=l.match(/^.*[\{\(\[:]\s*$/);x&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(s,l,o){if(o!==`\r
971
+ `&&o!=="\r"&&o!==`
972
+ `)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),s).tokens;if(!u)return!1;do var p=u.pop();while(p&&(p.type=="comment"||p.type=="text"&&p.value.match(/^\s+$/)));return p?p.type=="keyword"&&c[p.value]:!1},this.autoOutdent=function(s,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),p=l.getTabString();u.slice(-p.length)==p&&l.remove(new f(o,u.length-p.length,o,u.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(a.prototype),i.Mode=a}),function(){ace.require(["ace/mode/python"],function(e){n&&(n.exports=e)})}()}(wp)),wp.exports}zw();var xp={exports:{}},_p;function Ww(){return _p||(_p=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var g=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=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"}]}};g.inherits(w,v),i.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var g=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),a=f.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=w.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(w.getLine(s.row));w.replace(new g(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){var g=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};g.inherits(h,w),(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(f,a,c){var s=f.getLine(c);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var l=this._getFoldWidgetBase(f,a,c);return!l&&this.startRegionRe.test(s)?"start":l},this.getFoldWidgetRange=function(f,a,c,s){var l=f.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(f,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(f,o[1],c,u);var p=f.getCommentFoldRange(c,u+o[0].length,1);return p&&!p.isMultiLine()&&(s?p=this.getSectionRange(f,c):a!="all"&&(p=null)),p}if(a!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(f,o[1],c,u):f.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(f,a){var c=f.getLine(a),s=c.search(/\S/),l=a,o=c.length;a+=1;for(var u=a,p=f.getLength();++a<p;){c=f.getLine(a);var y=c.search(/\S/);if(y!==-1){if(s>y)break;var x=this.getFoldWidgetRange(f,"all",a);if(x){if(x.start.row<=l)break;if(x.isMultiLine())a=x.end.row;else if(s==y)break}u=a}}return new v(l,o,u,f.getLine(u).length)},this.getCommentRegionBlock=function(f,a,c){for(var s=a.search(/\s*$/),l=f.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++c<l;){a=f.getLine(c);var y=u.exec(a);if(y&&(y[1]?p--:p++,!p))break}var x=c;if(x>o)return new v(o,s,x,a.length)}}).call(h.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(e,i,m){var g=e("../lib/oop"),v=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("./folding/cstyle").FoldMode,a=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new f};g.inherits(c,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l);if(s=="start"){var p=l.match(/^.*[\{\(\[]\s*$/);p&&(u+=o)}return u},this.checkOutdent=function(s,l,o){return this.$outdent.checkOutdent(l,o)},this.autoOutdent=function(s,l,o){this.$outdent.autoOutdent(l,o)},this.createWorker=function(s){var l=new a(["ace"],"ace/mode/json_worker","JsonWorker");return l.attachToDocument(s.getDocument()),l.on("annotate",function(o){s.setAnnotations(o.data)}),l.on("terminate",function(){s.clearAnnotations()}),l},this.$id="ace/mode/json"}).call(c.prototype),i.Mode=c}),function(){ace.require(["ace/mode/json"],function(e){n&&(n.exports=e)})}()}(xp)),xp.exports}Ww();var kp={exports:{}},$p;function Uw(){return $p||($p=1,function(n,t){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,i,m){var g=e("../lib/oop");e("../lib/lang");var v=e("./text_highlight_rules").TextHighlightRules,w=i.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",h=i.supportFunction="rgb|rgba|url|attr|counter|counters",f=i.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=i.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",c=i.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",s=i.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",l=i.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=i.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",u=function(){var p=this.createKeywordMapper({"support.function":h,"support.constant":f,"support.type":w,"support.constant.color":a,"support.constant.fonts":c},"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:s},{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:"("+s+")(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:s},{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:l},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:p,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()};g.inherits(u,v),i.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var g=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=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|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};g.inherits(w,v),w.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},w.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},i.JsDocCommentHighlightRules=w}),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(e,i,m){function g(){var s=a.replace("\\d","\\d\\-"),l={onMatch:function(u,p,y){var x=u.charAt(1)=="/"?2:1;return x==1?(p!=this.nextState?y.unshift(this.next,this.nextState,0):y.unshift(this.next),y[2]++):x==2&&p==this.nextState&&(y[1]--,(!y[1]||y[1]<0)&&(y.shift(),y.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:u.slice(0,x)},{type:"meta.tag.tag-name.xml",value:u.substr(x)}]},regex:"</?(?:"+s+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(l);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,l,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,p,y){return p==y[0]&&y.shift(),u.length==2&&(y[0]==this.nextState&&y[1]--,(!y[1]||y[1]<0)&&y.splice(0,2)),this.next=y[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,v("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:s},{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"}]},l],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function v(s){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,f=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",c=function(s){var l={"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(l,"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",p="\\\\(?: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]?|.)",y="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(l).join("|")+"\\b)"+a+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),v("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:"("+a+")(\\s*)(=)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:a},{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:y+"(\\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:a},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),v("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:[v("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:p},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:p},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!s||!s.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(R,A,k){if(this.next=R=="{"?this.nextState:"",R=="{"&&k.length)k.unshift("start",A);else if(R=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return R=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:p},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\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"}),(!s||s.jsx!=0)&&g.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(c,f),i.JavaScriptHighlightRules=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var g=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(h){var f="[_: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:"(<\\?)("+f+")",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:f},{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:"(<\\!)("+f+")",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:"(?:(<)|(</))((?:"+f+":)?"+f+")",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:f},{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===w&&this.normalizeRules()};(function(){this.embedTagRules=function(h,f,a){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(<)("+a+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:f+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(c,s,l){return l.splice(0),this.token}}],this.embedRules(h,f,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(</)("+a+"(?=\\s|>|$))",next:a+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(v.prototype),g.inherits(w,v),i.XmlHighlightRules=w}),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(e,i,m){var g=e("../lib/oop"),v=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,f=e("./xml_highlight_rules").XmlHighlightRules,a=v.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"}),c=function(){f.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(s,l){var o=a[l];return["meta.tag.punctuation."+(s=="<"?"":"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(w,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===c&&this.normalizeRules()};g.inherits(c,f),i.HtmlHighlightRules=c}),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(e,i,m){var g=e("../config").$modes,v=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,f=e("./html_highlight_rules").HtmlHighlightRules,a=function(s){return"(?:[^"+w.escapeRegExp(s)+"\\\\]|\\\\.)*"},c=function(){f.call(this);var s={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,p,y){var x=o.match(/^(\s*)([`~]+)(.*)/),R=/[\w-]+|$/.exec(x[3])[0];return g[R]||(R=""),p.unshift("githubblock",[],[x[1],x[2],R],u),this.token},next:"githubblock"},l=[{token:"support.function",regex:".*",onMatch:function(o,u,p,y){var x=p[1],R=p[2][0],A=p[2][1],k=p[2][2],b=/^(\s*)(`+|~+)\s*$/.exec(o);if(b&&b[1].length<R.length+3&&b[2].length>=A.length&&b[2][0]==A[0])return p.splice(0,3),this.next=p.shift(),this.token;if(this.next="",k&&g[k]){var M=g[k].getTokenizer().getLineTokens(o,x.slice(0));return p[1]=M.state,M.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"},s,{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:"(\\[)("+a("]")+")(\\]\\s*\\[)("+a("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+a("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+a('"')+'"\\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},s,{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:l}),this.normalizeRules()};v.inherits(c,h),i.MarkdownHighlightRules=c}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,i,m){var g=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=i.FoldMode=function(){};g.inherits(h,v),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(f,a,c){var s=f.getLine(c);return this.foldingStartMarker.test(s)?s[0]=="`"&&f.bgTokenizer.getState(c)=="start"?"end":"start":""},this.getFoldWidgetRange=function(f,a,c){function s(E){return R=f.getTokens(E)[0],R&&R.type.lastIndexOf(A,0)===0}function l(){var E=R.value[0];return E=="="?6:E=="-"?5:7-R.value.search(/[^#]|$/)}var o=f.getLine(c),u=o.length,p=f.getLength(),y=c,x=c;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(f.bgTokenizer.getState(c)!=="start"){for(;++c<p&&(o=f.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(y,u,c,0)}for(;c-- >0&&(o=f.getLine(c),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(c,o.length,y,0)}var R,A="markup.heading";if(s(c)){for(var k=l();++c<p;)if(s(c)){var b=l();if(b>=k)break}if(x=c-(!R||["=","-"].indexOf(R.value[0])==-1?1:2),x>y)for(;x>y&&/^\s*$/.test(f.getLine(x));)x--;if(x>y){var M=f.getLine(x).length;return new w(y,u,x,M)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var g=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var f=w.getLine(h),a=f.match(/^(\s*\})/);if(!a)return 0;var c=a[1].length,s=w.findMatchingBracket({row:h,column:c});if(!s||s.row==h)return 0;var l=this.$getIndent(w.getLine(s.row));w.replace(new g(h,0,h,c-1),l)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,i,m){function g(a,c){return a&&a.type.lastIndexOf(c+".xml")>-1}var v=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,f=function(){this.add("string_dquotes","insertion",function(a,c,s,l,o){if(o=='"'||o=="'"){var u=o,p=l.doc.getTextRange(s.getSelectionRange());if(p!==""&&p!=="'"&&p!='"'&&s.getWrapBehavioursEnabled())return{text:u+p+u,selection:!1};var y=s.getCursorPosition(),x=l.doc.getLine(y.row),R=x.substring(y.column,y.column+1),A=new h(l,y.row,y.column),k=A.getCurrentToken();if(R==u&&(g(k,"attribute-value")||g(k,"string")))return{text:"",selection:[1,1]};if(k||(k=A.stepBackward()),!k)return;for(;g(k,"tag-whitespace")||g(k,"whitespace");)k=A.stepBackward();var b=!R||R.match(/\s/);if(g(k,"attribute-equals")&&(b||R==">")||g(k,"decl-attribute-equals")&&(b||R=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,c,s,l,o){var u=l.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var p=l.doc.getLine(o.start.row),y=p.substring(o.start.column+1,o.start.column+2);if(y==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(a,c,s,l,o){if(o==">"){var u=s.getSelectionRange().start,p=new h(l,u.row,u.column),y=p.getCurrentToken()||p.stepBackward();if(!y||!(g(y,"tag-name")||g(y,"tag-whitespace")||g(y,"attribute-name")||g(y,"attribute-equals")||g(y,"attribute-value"))||g(y,"reference.attribute-value"))return;if(g(y,"attribute-value")){var x=p.getCurrentTokenColumn()+y.value.length;if(u.column<x)return;if(u.column==x){var R=p.stepForward();if(R&&g(R,"attribute-value"))return;p.stepBackward()}}if(/^\s*>/.test(l.getLine(u.row).slice(u.column)))return;for(;!g(y,"tag-name");)if(y=p.stepBackward(),y.value=="<"){y=p.stepForward();break}var A=p.getCurrentTokenRow(),k=p.getCurrentTokenColumn();if(g(p.stepBackward(),"end-tag-open"))return;var b=y.value;return A==u.row&&(b=b.substring(0,u.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(b.toLowerCase())?void 0:{text:"></"+b+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,c,s,l,o){if(o==`
973
+ `){var u=s.getCursorPosition(),p=l.getLine(u.row),y=new h(l,u.row,u.column),x=y.getCurrentToken();if(g(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=y.stepBackward();if(!x)return;var R=x.value,A=y.getCurrentTokenRow();if(x=y.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[R]||!this.voidElements){var k=l.getTokenAt(u.row,u.column+1),p=l.getLine(A),b=this.$getIndent(p),M=b+l.getTabString();return k&&k.value==="</"?{text:`
974
+ `+M+`
975
+ `+b,selection:[1,M.length,1,M.length]}:{text:`
976
+ `+M}}}}})};v.inherits(f,w),i.XmlBehaviour=f}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,i,m){var g=e("../../lib/oop"),v=e("../../token_iterator").TokenIterator,w=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,f=function(){var a=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(a),this.inherit(w),this.add("autoclosing-fragment","insertion",function(c,s,l,o,u){if(u==">"){var p=l.getSelectionRange().start,y=new v(o,p.row,p.column),x=y.getCurrentToken()||y.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};g.inherits(f,w),i.JavaScriptBehaviour=f}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){function g(c,s){return c.type.lastIndexOf(s+".xml")>-1}var v=e("../../lib/oop"),w=e("../../range").Range,h=e("./fold_mode").FoldMode,f=i.FoldMode=function(c,s){h.call(this),this.voidElements=c||{},this.optionalEndTags=v.mixin({},this.voidElements),s&&v.mixin(this.optionalEndTags,s)};v.inherits(f,h);var a=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(c,s,l){var o=this._getFirstTagInLine(c,l);return o?o.closing||!o.tagName&&o.selfClosing?s==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(c,l,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(c,l)},this.getCommentFoldWidget=function(c,s){return/comment/.test(c.getState(s))&&/<!-/.test(c.getLine(s))?"start":""},this._getFirstTagInLine=function(c,s){for(var l=c.getTokens(s),o=new a,u=0;u<l.length;u++){var p=l[u];if(g(p,"tag-open")){if(o.end.column=o.start.column+p.value.length,o.closing=g(p,"end-tag-open"),p=l[++u],!p)return null;if(o.tagName=p.value,p.value===""){if(p=l[++u],!p)return null;o.tagName=p.value}for(o.end.column+=p.value.length,u++;u<l.length;u++)if(p=l[u],o.end.column+=p.value.length,g(p,"tag-close")){o.selfClosing=p.value=="/>";break}return o}if(g(p,"tag-close"))return o.selfClosing=p.value=="/>",o;o.start.column+=p.value.length}return null},this._findEndTagInLine=function(c,s,l,o){for(var u=c.getTokens(s),p=0,y=0;y<u.length;y++){var x=u[y];if(p+=x.value.length,!(p<o-1)&&g(x,"end-tag-open")&&(x=u[y+1],g(x,"tag-name")&&x.value===""&&(x=u[y+2]),x&&x.value==l))return!0}return!1},this.getFoldWidgetRange=function(c,s,l){var o=this._getFirstTagInLine(c,l);if(!o)return this.getCommentFoldWidget(c,l)&&c.getCommentFoldRange(l,c.getLine(l).length);var u=c.getMatchingTags({row:l,column:0});if(u)return new w(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(f.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){var g=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end)))};g.inherits(h,w),(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(f,a,c){var s=f.getLine(c);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var l=this._getFoldWidgetBase(f,a,c);return!l&&this.startRegionRe.test(s)?"start":l},this.getFoldWidgetRange=function(f,a,c,s){var l=f.getLine(c);if(this.startRegionRe.test(l))return this.getCommentRegionBlock(f,l,c);var o=l.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(f,o[1],c,u);var p=f.getCommentFoldRange(c,u+o[0].length,1);return p&&!p.isMultiLine()&&(s?p=this.getSectionRange(f,c):a!="all"&&(p=null)),p}if(a!=="markbegin"){var o=l.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(f,o[1],c,u):f.getCommentFoldRange(c,u,-1)}}},this.getSectionRange=function(f,a){var c=f.getLine(a),s=c.search(/\S/),l=a,o=c.length;a+=1;for(var u=a,p=f.getLength();++a<p;){c=f.getLine(a);var y=c.search(/\S/);if(y!==-1){if(s>y)break;var x=this.getFoldWidgetRange(f,"all",a);if(x){if(x.start.row<=l)break;if(x.isMultiLine())a=x.end.row;else if(s==y)break}u=a}}return new v(l,o,u,f.getLine(u).length)},this.getCommentRegionBlock=function(f,a,c){for(var s=a.search(/\s*$/),l=f.getLength(),o=c,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++c<l;){a=f.getLine(c);var y=u.exec(a);if(y&&(y[1]?p--:p++,!p))break}var x=c;if(x>o)return new v(o,s,x,a.length)}}).call(h.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,i,m){var g=e("../../lib/oop"),v=e("./xml").FoldMode,w=e("./cstyle").FoldMode,h=i.FoldMode=function(f){f&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+f.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+f.end))),this.xmlFoldMode=new v};g.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(f,a,c){var s=this.getFoldWidgetBase(f,a,c);return s||this.xmlFoldMode.getFoldWidget(f,a,c)},this.getFoldWidgetRange=function(f,a,c,s){var l=this.getFoldWidgetRangeBase(f,a,c,s);return l||this.xmlFoldMode.getFoldWidgetRange(f,a,c)}}).call(h.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(e,i,m){var g=e("../lib/oop"),v=e("./text").Mode,w=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../worker/worker_client").WorkerClient,a=e("./behaviour/javascript").JavaScriptBehaviour,c=e("./folding/javascript").FoldMode,s=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new a,this.foldingRules=new c};g.inherits(s,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(l,o,u){var p=this.$getIndent(o),y=this.getTokenizer().getLineTokens(o,l),x=y.tokens,R=y.state;if(x.length&&x[x.length-1].type=="comment")return p;if(l=="start"||l=="no_regex"){var A=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);A&&(p+=u)}else if(l=="doc-start"&&(R=="start"||R=="no_regex"))return"";return p},this.checkOutdent=function(l,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(l,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(l){var o=new f(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(l.getDocument()),o.on("annotate",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(s.prototype),i.Mode=s}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,i,m){var g={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}},v=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var w=document.createElement("c").style;for(var h in w)if(typeof w[h]=="string"){var f=h.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});g.hasOwnProperty(f)||(g[f]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,f,a){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var c=h.getLine(f.row).substr(0,f.column),s=/\([^)]*$/.test(c);return s&&(c=c.substr(c.lastIndexOf("(")+1)),/:[^;]+$/.test(c)?this.getPropertyValueCompletions(w,h,f,a):this.getPropertyCompletions(w,h,f,a,s)}return[]},this.getPropertyCompletions=function(w,h,f,a,c){c=c||!1;var s=Object.keys(g);return s.map(function(l){return{caption:l,snippet:l+": $0"+(c?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,f,a){var c=h.getLine(f.row).substr(0,f.column),s=(/([\w\-]+):[^:]*$/.exec(c)||{})[1];if(!s)return[];var l=[];return s in g&&typeof g[s]=="object"&&(l=Object.keys(g[s])),l.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(v.prototype),i.CssCompletions=v}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,i,m){var g=e("../../lib/oop");e("../behaviour").Behaviour;var v=e("./cstyle").CstyleBehaviour,w=e("../../token_iterator").TokenIterator,h=function(){this.inherit(v),this.add("colon","insertion",function(f,a,c,s,l){if(l===":"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=new w(s,o.row,o.column),p=u.getCurrentToken();if(p&&p.value.match(/\s+/)&&(p=u.stepBackward()),p&&p.type==="support.type"){var y=s.doc.getLine(o.row),x=y.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(y.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(f,a,c,s,l){var o=s.doc.getTextRange(l);if(!l.isMultiLine()&&o===":"){var u=c.getCursorPosition(),p=new w(s,u.row,u.column),y=p.getCurrentToken();if(y&&y.value.match(/\s+/)&&(y=p.stepBackward()),y&&y.type==="support.type"){var x=s.doc.getLine(l.start.row),R=x.substring(l.end.column,l.end.column+1);if(R===";")return l.end.column++,l}}}),this.add("semicolon","insertion",function(f,a,c,s,l){if(l===";"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=s.doc.getLine(o.row),p=u.substring(o.column,o.column+1);if(p===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(f,a,c,s,l){if(l==="!"&&c.selection.isEmpty()){var o=c.getCursorPosition(),u=s.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};g.inherits(h,v),i.CssBehaviour=h}),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(e,i,m){var g=e("../lib/oop"),v=e("./text").Mode,w=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,f=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,c=e("./behaviour/css").CssBehaviour,s=e("./folding/cstyle").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new c,this.$completer=new a,this.foldingRules=new s};g.inherits(l,v),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,p){var y=this.$getIndent(u),x=this.getTokenizer().getLineTokens(u,o).tokens;if(x.length&&x[x.length-1].type=="comment")return y;var R=u.match(/^.*\{\s*$/);return R&&(y+=p),y},this.checkOutdent=function(o,u,p){return this.$outdent.checkOutdent(u,p)},this.autoOutdent=function(o,u,p){this.$outdent.autoOutdent(u,p)},this.getCompletions=function(o,u,p,y){return this.$completer.getCompletions(o,u,p,y)},this.createWorker=function(o){var u=new f(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(p){o.setAnnotations(p.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(l.prototype),i.Mode=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var g=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h,f){this.defaultMode=h,this.subModes=f};g.inherits(w,v),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var f in this.subModes)if(h.indexOf(f)===0)return this.subModes[f];return null},this.$tryMode=function(h,f,a,c){var s=this.$getMode(h);return s?s.getFoldWidget(f,a,c):""},this.getFoldWidget=function(h,f,a){return this.$tryMode(h.getState(a-1),h,f,a)||this.$tryMode(h.getState(a),h,f,a)||this.defaultMode.getFoldWidget(h,f,a)},this.getFoldWidgetRange=function(h,f,a){var c=this.$getMode(h.getState(a-1));return(!c||!c.getFoldWidget(h,f,a))&&(c=this.$getMode(h.getState(a))),(!c||!c.getFoldWidget(h,f,a))&&(c=this.defaultMode),c.getFoldWidgetRange(h,f,a)}}).call(w.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(e,i,m){var g=e("../../lib/oop"),v=e("./mixed").FoldMode,w=e("./xml").FoldMode,h=e("./cstyle").FoldMode,f=i.FoldMode=function(a,c){v.call(this,new w(a,c),{"js-":new h,"css-":new h})};g.inherits(f,v)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,i,m){function g(u,p){return u.type.lastIndexOf(p+".xml")>-1}function v(u,p){for(var y=new h(u,p.row,p.column),x=y.getCurrentToken();x&&!g(x,"tag-name");)x=y.stepBackward();if(x)return x.value}function w(u,p){for(var y=new h(u,p.row,p.column),x=y.getCurrentToken();x&&!g(x,"attribute-name");)x=y.stepBackward();if(x)return x.value}var h=e("../token_iterator").TokenIterator,f=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],a=["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"],c=f.concat(a),s={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:{}},l=Object.keys(s),o=function(){};(function(){this.getCompletions=function(u,p,y,x){var R=p.getTokenAt(y.row,y.column);if(!R)return[];if(g(R,"tag-name")||g(R,"tag-open")||g(R,"end-tag-open"))return this.getTagCompletions(u,p,y,x);if(g(R,"tag-whitespace")||g(R,"attribute-name"))return this.getAttributeCompletions(u,p,y,x);if(g(R,"attribute-value"))return this.getAttributeValueCompletions(u,p,y,x);var A=p.getLine(y.row).substr(0,y.column);return/&[a-z]*$/i.test(A)?this.getHTMLEntityCompletions(u,p,y,x):[]},this.getTagCompletions=function(u,p,y,x){return l.map(function(R){return{value:R,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,p,y,x){var R=v(p,y);if(!R)return[];var A=c;return R in s&&(A=A.concat(Object.keys(s[R]))),A.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,p,y,x){var R=v(p,y),A=w(p,y);if(!R)return[];var k=[];return R in s&&A in s[R]&&typeof s[R][A]=="object"&&(k=Object.keys(s[R][A])),k.map(function(b){return{caption:b,snippet:b,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,p,y,x){var R=["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 R.map(function(A){return{caption:A,snippet:A,meta:"html entity",score:1e6}})}}).call(o.prototype),i.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,i,m){var g=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./javascript").Mode,f=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,c=e("./behaviour/xml").XmlBehaviour,s=e("./folding/html").FoldMode,l=e("./html_completions").HtmlCompletions,o=e("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],p=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],y=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=a,this.$behaviour=new c,this.$completer=new l,this.createModeDelegates({"js-":h,"css-":f}),this.foldingRules=new s(this.voidElements,v.arrayToMap(p))};g.inherits(y,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=v.arrayToMap(u),this.getNextLineIndent=function(x,R,A){return this.$getIndent(R)},this.checkOutdent=function(x,R,A){return!1},this.getCompletions=function(x,R,A,k){return this.$completer.getCompletions(x,R,A,k)},this.createWorker=function(x){if(this.constructor==y){var R=new o(["ace"],"ace/mode/html_worker","Worker");return R.attachToDocument(x.getDocument()),this.fragmentContext&&R.call("setOptions",[{context:this.fragmentContext}]),R.on("error",function(A){x.setAnnotations(A.data)}),R.on("terminate",function(){x.clearAnnotations()}),R}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(y.prototype),i.Mode=y}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var g=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",h=i.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",f=function(){var a=this.createKeywordMapper({keyword:w,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),c="(?:(?:[1-9]\\d*)|(?:0))",s="(?:\\.\\d+)",l="(?:\\d+)",o="(?:(?:"+l+"?"+s+")|(?:"+l+"\\.))",u="(?:(?:"+o+"|"+l+"))",p="(?:"+u+"|"+o+")",y="(?:&"+l+")",x="[a-zA-Z_][a-zA-Z0-9_]*",R="(?:"+x+"(?==))",A="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(b,M,E){var O=b[2]=="-"?"indentedHeredoc":"heredoc",T=b.split(this.splitRegex);return E.push(O,T[4]),[{type:"constant",value:T[1]},{type:"text",value:T[2]},{type:"string",value:T[3]},{type:"support.class",value:T[4]},{type:"string",value:T[5]}]},rules:{heredoc:[{onMatch:function(b,M,E){return b===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(b,M,E){return b===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(b,M){return M[0]==="heredoc"||M[0]==="indentedHeredoc"?M[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:A},{token:"variable",regex:R},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:y},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:p},{token:"constant.numeric",regex:c+"\\b"},{token:a,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()};g.inherits(f,v),i.ShHighlightRules=f}),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(e,i,m){var g=e("../lib/oop"),v=e("./text").Mode,w=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,f=e("./folding/cstyle").FoldMode,a=function(){this.HighlightRules=w,this.foldingRules=new f,this.$behaviour=this.$defaultBehaviour};g.inherits(a,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,l,o){var u=this.$getIndent(l),p=this.getTokenizer().getLineTokens(l,s),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(s=="start"){var x=l.match(/^.*[\{\(\[:]\s*$/);x&&(u+=o)}return u};var c={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(s,l,o){if(o!==`\r
977
+ `&&o!=="\r"&&o!==`
978
+ `)return!1;var u=this.getTokenizer().getLineTokens(l.trim(),s).tokens;if(!u)return!1;do var p=u.pop();while(p&&(p.type=="comment"||p.type=="text"&&p.value.match(/^\s+$/)));return p?p.type=="keyword"&&c[p.value]:!1},this.autoOutdent=function(s,l,o){o+=1;var u=this.$getIndent(l.getLine(o)),p=l.getTabString();u.slice(-p.length)==p&&l.remove(new h(o,u.length-p.length,o,u.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(a.prototype),i.Mode=a}),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(e,i,m){var g=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,f=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,c=e("../worker/worker_client").WorkerClient,s=function(){this.HighlightRules=h,this.$behaviour=new f,this.foldingRules=new a};g.inherits(s,w),(function(){this.voidElements=v.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(l){var o=new c(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(l.getDocument()),o.on("error",function(u){l.setAnnotations(u.data)}),o.on("terminate",function(){l.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(s.prototype),i.Mode=s}),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(e,i,m){var g=e("../lib/oop"),v=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,f=e("./folding/markdown").FoldMode,a=function(){this.HighlightRules=h,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new f,this.$behaviour=new v({braces:!0})};g.inherits(a,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(c,s,l){if(c=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(s);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(s)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(a.prototype),i.Mode=a}),function(){ace.require(["ace/mode/markdown"],function(e){n&&(n.exports=e)})}()}(kp)),kp.exports}Uw();var Sp={exports:{}},Cp;function Vw(){return Cp||(Cp=1,function(n,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,i,m){m.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(e,i,m){i.isDark=!0,i.cssClass="ace-twilight",i.cssText=e("./twilight-css");var g=e("../lib/dom");g.importCssString(i.cssText,i.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){n&&(n.exports=e)})}()}(Sp)),Sp.exports}Vw();var Ap={exports:{}},Mp;function qw(){return Mp||(Mp=1,function(n,t){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(e,i,m){function g(b){var M=new Date().toLocaleString("en-us",b);return M.length==1?"0"+M:M}var v=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,f=e("./lib/lang"),a=e("./range").Range,c=e("./range_list").RangeList,s=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(b){return b.session.getTextRange(b.session.getWordRange())},SELECTION:function(b,M,E){var O=b.session.getTextRange();return E?O.replace(/\n\r?([ \t]*\S)/g,`
1109
+ `+E+"$1"):O},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 M=b.session.$mode||{};return M.blockComment&&M.blockComment.start||""},BLOCK_COMMENT_END:function(b){var M=b.session.$mode||{};return M.blockComment&&M.blockComment.end||""},LINE_COMMENT:function(b){var M=b.session.$mode||{};return M.lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var p=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function M(T){return T=T.substr(1),/^\d+$/.test(T)?[{tabstopId:parseInt(T,10)}]:[{text:T}]}function E(T){return"(?:[^\\\\"+T+"]|\\\\.)"}var O={regex:"/("+E("/")+"+)/",onMatch:function(T,N,$){var _=$[0];return _.fmtString=!0,_.guard=T.slice(1,-1),_.flag="",""},next:"formatString"};return b.$tokenizer=new l({start:[{regex:/\\./,onMatch:function(T,N,$){var _=T[1];return(_=="}"&&$.length||"`$\\".indexOf(_)!=-1)&&(T=_),[T]}},{regex:/}/,onMatch:function(T,N,$){return[$.length?$.shift():T]}},{regex:/\$(?:\d+|\w+)/,onMatch:M},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(T,N,$){var _=M(T.substr(1));return $.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+E("\\|")+"*\\|",onMatch:function(T,N,$){var _=T.slice(1,-1).replace(/\\[,|\\]|,/g,function(S){return S.length==2?S[1]:"\0"}).split("\0").map(function(S){return{value:S}});return $[0].choices=_,[_[0]]},next:"start"},O,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(T,N,$){return $.length&&$[0].expectElse?($[0].expectElse=!1,$[0].ifEnd={elseEnd:$[0]},[$[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(T,N,$){var _=T[1];return _=="}"&&$.length||"`$\\".indexOf(_)!=-1?T=_:_=="n"?T=`
1110
+ `:_=="t"?T=" ":"ulULE".indexOf(_)!=-1&&(T={changeCase:_,local:_>"a"}),[T]}},{regex:"/\\w*}",onMatch:function(T,N,$){var _=$.shift();return _&&(_.flag=T.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||T]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(T,N,$){return[{text:T.slice(1)}]}},{regex:/\${\w+/,onMatch:function(T,N,$){var _={text:T.slice(2)};return $.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(T,N,$){var _=$.shift();return this.next=_&&_.tabstopId?"start":"",[_||T]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(T,N,$){var _=$[0];return _.formatFunction=T.slice(2,-1),[$.shift()]},next:"formatString"},O,{regex:/:[\?\-+]?/,onMatch:function(T,N,$){T[1]=="+"&&($[0].ifEnd=$[0]),T[1]=="?"&&($[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(M,E){return this.getTokenizer().getLineTokens(M,E).tokens.map(function(O){return O.value||O})},b.prototype.getVariableValue=function(M,E,O){if(/^\d+$/.test(E))return(this.variables.__||{})[E]||"";if(/^[A-Z]\d+$/.test(E))return(this.variables[E[0]+"__"]||{})[E.substr(1)]||"";if(E=E.replace(/^TM_/,""),!this.variables.hasOwnProperty(E))return"";var T=this.variables[E];return typeof T=="function"&&(T=this.variables[E](M,E,O)),T??""},b.prototype.tmStrFormat=function(M,E,O){if(!E.fmt)return M;var T=E.flag||"",N=E.guard;N=new RegExp(N,T.replace(/[^gim]/g,""));var $=typeof E.fmt=="string"?this.tokenizeTmSnippet(E.fmt,"formatString"):E.fmt,_=this,S=M.replace(N,function(){var L=_.variables.__;_.variables.__=[].slice.call(arguments);for(var I=_.resolveVariables($,O),F="E",H=0;H<I.length;H++){var W=I[H];if(typeof W=="object")if(I[H]="",W.changeCase&&W.local){var V=I[H+1];V&&typeof V=="string"&&(W.changeCase=="u"?I[H]=V[0].toUpperCase():I[H]=V[0].toLowerCase(),I[H+1]=V.substr(1))}else W.changeCase&&(F=W.changeCase);else F=="U"?I[H]=W.toUpperCase():F=="L"&&(I[H]=W.toLowerCase())}return _.variables.__=L,I.join("")});return S},b.prototype.tmFormatFunction=function(M,E,O){return E.formatFunction=="upcase"?M.toUpperCase():E.formatFunction=="downcase"?M.toLowerCase():M},b.prototype.resolveVariables=function(M,E){function O(F){var H=M.indexOf(F,_+1);H!=-1&&(_=H)}for(var T=[],N="",$=!0,_=0;_<M.length;_++){var S=M[_];if(typeof S=="string"){T.push(S),S==`
1111
+ `?($=!0,N=""):$&&(N=/^\t*/.exec(S)[0],$=/\S/.test(S));continue}if(S){if($=!1,S.fmtString){var L=M.indexOf(S,_+1);L==-1&&(L=M.length),S.fmt=M.slice(_+1,L),_=L}if(S.text){var I=this.getVariableValue(E,S.text,N)+"";S.fmtString&&(I=this.tmStrFormat(I,S,E)),S.formatFunction&&(I=this.tmFormatFunction(I,S,E)),I&&!S.ifEnd?(T.push(I),O(S)):!I&&S.ifEnd&&O(S.ifEnd)}else S.elseEnd?O(S.elseEnd):(S.tabstopId!=null||S.changeCase!=null)&&T.push(S)}}return T},b.prototype.getDisplayTextForSnippet=function(M,E){var O=y.call(this,M,E);return O.text},b.prototype.insertSnippetForSelection=function(M,E,O){O===void 0&&(O={});var T=y.call(this,M,E,O),N=M.getSelectionRange(),$=M.session.replace(N,T.text),_=new x(M),S=M.inVirtualSelectionMode&&M.selection.index;_.addTabstops(T.tabstops,N.start,$,S)},b.prototype.insertSnippet=function(M,E,O){O===void 0&&(O={});var T=this;if(M.inVirtualSelectionMode)return T.insertSnippetForSelection(M,E,O);M.forEachSelection(function(){T.insertSnippetForSelection(M,E,O)},null,{keepOrder:!0}),M.tabstopManager&&M.tabstopManager.tabNext()},b.prototype.$getScope=function(M){var E=M.session.$mode.$id||"";if(E=E.split("/").pop(),E==="html"||E==="php"){E==="php"&&!M.session.$mode.inlinePhp&&(E="html");var O=M.getCursorPosition(),T=M.session.getState(O.row);typeof T=="object"&&(T=T[0]),T.substring&&(T.substring(0,3)=="js-"?E="javascript":T.substring(0,4)=="css-"?E="css":T.substring(0,4)=="php-"&&(E="php"))}return E},b.prototype.getActiveScopes=function(M){var E=this.$getScope(M),O=[E],T=this.snippetMap;return T[E]&&T[E].includeScopes&&O.push.apply(O,T[E].includeScopes),O.push("_"),O},b.prototype.expandWithTab=function(M,E){var O=this,T=M.forEachSelection(function(){return O.expandSnippetForSelection(M,E)},null,{keepOrder:!0});return T&&M.tabstopManager&&M.tabstopManager.tabNext(),T},b.prototype.expandSnippetForSelection=function(M,E){var O=M.getCursorPosition(),T=M.session.getLine(O.row),N=T.substring(0,O.column),$=T.substr(O.column),_=this.snippetMap,S;return this.getActiveScopes(M).some(function(L){var I=_[L];return I&&(S=this.findMatchingSnippet(I,N,$)),!!S},this),S?(E&&E.dryRun||(M.session.doc.removeInLine(O.row,O.column-S.replaceBefore.length,O.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(M,S.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(M,E,O){for(var T=M.length;T--;){var N=M[T];if(!(N.startRe&&!N.startRe.test(E))&&!(N.endRe&&!N.endRe.test(O))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(E):[""],N.matchAfter=N.endRe?N.endRe.exec(O):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(E)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(O)[0]:"",N}},b.prototype.register=function(M,E){function O(L){return L&&!/^\^?\(.*\)\$?$|^\\b$/.test(L)&&(L="(?:"+L+")"),L||""}function T(L,I,F){return L=O(L),I=O(I),L=I+L,L&&L[L.length-1]!="$"&&(L+="$"),new RegExp(L)}function N(L){L.scope||(L.scope=E||"_"),E=L.scope,$[E]||($[E]=[],_[E]={});var I=_[E];if(L.name){var F=I[L.name];F&&S.unregister(F),I[L.name]=L}$[E].push(L),L.prefix&&(L.tabTrigger=L.prefix),!L.content&&L.body&&(L.content=Array.isArray(L.body)?L.body.join(`
1112
+ `):L.body),L.tabTrigger&&!L.trigger&&(!L.guard&&/^\w/.test(L.tabTrigger)&&(L.guard="\\b"),L.trigger=f.escapeRegExp(L.tabTrigger)),!(!L.trigger&&!L.guard&&!L.endTrigger&&!L.endGuard)&&(L.startRe=T(L.trigger,L.guard),L.triggerRe=new RegExp(L.trigger),L.endRe=T(L.endTrigger,L.endGuard),L.endTriggerRe=new RegExp(L.endTrigger))}var $=this.snippetMap,_=this.snippetNameMap,S=this;M||(M=[]),Array.isArray(M)?M.forEach(N):Object.keys(M).forEach(function(L){N(M[L])}),this._signal("registerSnippets",{scope:E})},b.prototype.unregister=function(M,E){function O($){var _=N[$.scope||E];if(_&&_[$.name]){delete _[$.name];var S=T[$.scope||E],L=S&&S.indexOf($);L>=0&&S.splice(L,1)}}var T=this.snippetMap,N=this.snippetNameMap;M.content?O(M):Array.isArray(M)&&M.forEach(O)},b.prototype.parseSnippetFile=function(M){M=M.replace(/\r/g,"");for(var E=[],O={},T=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=T.exec(M);){if(N[1])try{O=JSON.parse(N[1]),E.push(O)}catch{}if(N[4])O.content=N[4].replace(/^\t/gm,""),E.push(O),O={};else{var $=N[2],_=N[3];if($=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;O.guard=S.exec(_)[1],O.trigger=S.exec(_)[1],O.endTrigger=S.exec(_)[1],O.endGuard=S.exec(_)[1]}else $=="snippet"?(O.tabTrigger=_.match(/^\S*/)[0],O.name||(O.name=_)):$&&(O[$]=_)}}return E},b.prototype.getSnippetByName=function(M,E){var O=this.snippetNameMap,T;return this.getActiveScopes(E).some(function(N){var $=O[N];return $&&(T=$[M]),!!T},this),T},b}();w.implement(p.prototype,h);var y=function(b,M,E){function O(J){for(var ae=[],me=0;me<J.length;me++){var ye=J[me];if(typeof ye=="object"){if(I[ye.tabstopId])continue;var fe=J.lastIndexOf(ye,me-1);ye=ae[fe]||{tabstopId:ye.tabstopId}}ae[me]=ye}return ae}E===void 0&&(E={});var T=b.getCursorPosition(),N=b.session.getLine(T.row),$=b.session.getTabString(),_=N.match(/^\s*/)[0];T.column<_.length&&(_=_.slice(0,T.column)),M=M.replace(/\r/g,"");var S=this.tokenizeTmSnippet(M);S=this.resolveVariables(S,b),S=S.map(function(J){return J==`
1113
+ `&&!E.excludeExtraIndent?J+_:typeof J=="string"?J.replace(/\t/g,$):J});var L=[];S.forEach(function(J,ae){if(typeof J=="object"){var me=J.tabstopId,ye=L[me];if(ye||(ye=L[me]=[],ye.index=me,ye.value="",ye.parents={}),ye.indexOf(J)===-1){J.choices&&!ye.choices&&(ye.choices=J.choices),ye.push(J);var fe=S.indexOf(J,ae+1);if(fe!==-1){var _e=S.slice(ae+1,fe),it=_e.some(function(Nt){return typeof Nt=="object"});it&&!ye.value?ye.value=_e:_e.length&&(!ye.value||typeof ye.value!="string")&&(ye.value=_e.join(""))}}}}),L.forEach(function(J){J.length=0});for(var I={},F=0;F<S.length;F++){var H=S[F];if(typeof H=="object"){var W=H.tabstopId,V=L[W],q=S.indexOf(H,F+1);if(I[W]){I[W]===H&&(delete I[W],Object.keys(I).forEach(function(J){V.parents[J]=!0}));continue}I[W]=H;var X=V.value;typeof X!="string"?X=O(X):H.fmt&&(X=this.tmStrFormat(X,H,b)),S.splice.apply(S,[F+1,Math.max(0,q-F)].concat(X,H)),V.indexOf(H)===-1&&V.push(H)}}var G=0,Z=0,ie="";return S.forEach(function(J){if(typeof J=="string"){var ae=J.split(`
1114
+ `);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=J.length,ie+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:ie,tabstops:L,tokens:S}},x=function(){function b(M){if(this.index=0,this.ranges=[],this.tabstops=[],M.tabstopManager)return M.tabstopManager;M.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=f.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(M)}return b.prototype.attach=function(M){this.$openTabstops=null,this.selectedTabstop=null,this.editor=M,this.session=M.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(M){for(var E=M.action[0]=="r",O=this.selectedTabstop||{},T=O.parents||{},N=this.tabstops.slice(),$=0;$<N.length;$++){var _=N[$],S=_==O||T[_.index];if(_.rangeList.$bias=S?0:1,M.action=="remove"&&_!==O){var L=_.parents&&_.parents[O.index],I=_.rangeList.pointIndex(M.start,L);I=I<0?-I-1:I+1;var F=_.rangeList.pointIndex(M.end,L);F=F<0?-F-1:F-1;for(var H=_.rangeList.ranges.slice(I,F),W=0;W<H.length;W++)this.removeRange(H[W])}_.rangeList.$onChange(M)}var V=this.session;!this.$inChange&&E&&V.getLength()==1&&!V.getValue()&&this.detach()},b.prototype.updateLinkedFields=function(){var M=this.selectedTabstop;if(!(!M||!M.hasLinkedRanges||!M.firstNonLinked)){this.$inChange=!0;for(var E=this.session,O=E.getTextRange(M.firstNonLinked),T=0;T<M.length;T++){var N=M[T];if(N.linked){var $=N.original,_=i.snippetManager.tmStrFormat(O,$,this.editor);E.replace(N,_)}}this.$inChange=!1}},b.prototype.onAfterExec=function(M){M.command&&!M.command.readOnly&&this.updateLinkedFields()},b.prototype.onChangeSelection=function(){if(this.editor){for(var M=this.editor.selection.lead,E=this.editor.selection.anchor,O=this.editor.selection.isEmpty(),T=0;T<this.ranges.length;T++)if(!this.ranges[T].linked){var N=this.ranges[T].contains(M.row,M.column),$=O||this.ranges[T].contains(E.row,E.column);if(N&&$)return}this.detach()}},b.prototype.onChangeSession=function(){this.detach()},b.prototype.tabNext=function(M){var E=this.tabstops.length,O=this.index+(M||1);O=Math.min(Math.max(O,1),E),O==E&&(O=0),this.selectTabstop(O),this.updateTabstopMarkers(),O===0&&this.detach()},b.prototype.selectTabstop=function(M){this.$openTabstops=null;var E=this.tabstops[this.index];if(E&&this.addTabstopMarkers(E),this.index=M,E=this.tabstops[this.index],!(!E||!E.length)){this.selectedTabstop=E;var O=E.firstNonLinked||E;if(E.choices&&(O.cursor=O.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(O);else{var T=this.editor.multiSelect;T.toSingleRange(O);for(var N=0;N<E.length;N++)E.hasLinkedRanges&&E[N].linked||T.addRange(E[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(M,E,O){var T=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!M[0]){var N=a.fromPoints(O,O);A(N.start,E),A(N.end,E),M[0]=[N],M[0].index=0}var $=this.index,_=[$+1,0],S=this.ranges,L=this.snippetId=(this.snippetId||0)+1;M.forEach(function(I,F){var H=this.$openTabstops[F]||I;H.snippetId=L;for(var W=0;W<I.length;W++){var V=I[W],q=a.fromPoints(V.start,V.end||V.start);R(q.start,E),R(q.end,E),q.original=V,q.tabstop=H,S.push(q),H!=I?H.unshift(q):H[W]=q,V.fmtString||H.firstNonLinked&&T?(q.linked=!0,H.hasLinkedRanges=!0):H.firstNonLinked||(H.firstNonLinked=q)}H.firstNonLinked||(H.hasLinkedRanges=!1),H===I&&(_.push(H),this.$openTabstops[F]=H),this.addTabstopMarkers(H),H.rangeList=H.rangeList||new c,H.rangeList.$bias=0,H.rangeList.addList(H)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},b.prototype.addTabstopMarkers=function(M){var E=this.session;M.forEach(function(O){O.markerId||(O.markerId=E.addMarker(O,"ace_snippet-marker","text"))})},b.prototype.removeTabstopMarkers=function(M){var E=this.session;M.forEach(function(O){E.removeMarker(O.markerId),O.markerId=null})},b.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var M=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&M--,this.tabstops.forEach(function(E){E.snippetId===M?this.addTabstopMarkers(E):this.removeTabstopMarkers(E)},this)}},b.prototype.removeRange=function(M){var E=M.tabstop.indexOf(M);E!=-1&&M.tabstop.splice(E,1),E=this.ranges.indexOf(M),E!=-1&&this.ranges.splice(E,1),E=M.tabstop.rangeList.ranges.indexOf(M),E!=-1&&M.tabstop.splice(E,1),this.session.removeMarker(M.markerId),M.tabstop.length||(E=this.tabstops.indexOf(M.tabstop),E!=-1&&this.tabstops.splice(E,1),this.tabstops.length||this.detach())},b}();x.prototype.keyboardHandler=new s,x.prototype.keyboardHandler.bindKeys({Tab:function(b){i.snippetManager&&i.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 R=function(b,M){b.row==0&&(b.column+=M.column),b.row+=M.row},A=function(b,M){b.row==M.row&&(b.column-=M.column),b.row-=M.row};v.importCssString(`
1115
+ .ace_snippet-marker {
1116
+ -moz-box-sizing: border-box;
1117
+ box-sizing: border-box;
1118
+ background: rgba(194, 193, 208, 0.09);
1119
+ border: 1px dotted rgba(211, 208, 235, 0.62);
1120
+ position: absolute;
1121
+ }`,"snippets.css",!1),i.snippetManager=new p;var k=e("./editor").Editor;(function(){this.insertSnippet=function(b,M){return i.snippetManager.insertSnippet(this,b,M)},this.expandSnippet=function(b){return i.snippetManager.expandWithTab(this,b)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(e,i,m){var g=e("../virtual_renderer").VirtualRenderer,v=e("../editor").Editor,w=e("../range").Range,h=e("../lib/event"),f=e("../lib/lang"),a=e("../lib/dom"),c=e("../config").nls,s=e("./../lib/useragent"),l=function(R){return"suggest-aria-id:".concat(R)},o=s.isSafari?"menu":"listbox",u=s.isSafari?"menuitem":"option",p=s.isSafari?"aria-current":"aria-selected",y=function(R){var A=new g(R);A.$maxLines=4;var k=new v(A);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function R(A){var k=a.createElement("div"),b=y(k);A&&A.appendChild(k),k.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",c("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),b.renderer.$textLayer.element.setAttribute("aria-label",c("autocomplete.popup.aria-label","Autocomplete suggestions")),b.renderer.textarea.setAttribute("aria-hidden","true"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var M=function(){};b.focus=M,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=M,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(S){var L=S.getDocumentPosition();b.selection.moveToPosition(L),T.start.row=T.end.row=L.row,S.stop()});var E,O=new w(-1,0,-1,1/0),T=new w(-1,0,-1,1/0);T.id=b.session.addMarker(T,"ace_active-line","fullLine"),b.setSelectOnHover=function(S){S?O.id&&(b.session.removeMarker(O.id),O.id=null):O.id=b.session.addMarker(O,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(S){if(!E){E=S;return}if(!(E.x==S.x&&E.y==S.y)){E=S,E.scrollTop=b.renderer.scrollTop,b.isMouseOver=!0;var L=E.getDocumentPosition().row;O.start.row!=L&&(O.id||b.setRow(L),$(L))}}),b.renderer.on("beforeRender",function(){if(E&&O.start.row!=-1){E.$pos=null;var S=E.getDocumentPosition().row;O.id||b.setRow(S),$(S,!0)}}),b.renderer.on("afterRender",function(){var S=b.getRow(),L=b.renderer.$textLayer,I=L.element.childNodes[S-L.config.firstRow],F=document.activeElement;if(I!==b.selectedNode&&b.selectedNode&&(a.removeCssClass(b.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),b.selectedNode.removeAttribute(p),b.selectedNode.removeAttribute("id")),b.selectedNode=I,I){a.addCssClass(I,"ace_selected");var H=l(S);I.id=H,L.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),I.setAttribute("role",u),I.setAttribute("aria-roledescription",c("autocomplete.popup.item.aria-roledescription","item")),I.setAttribute("aria-label",b.getData(S).caption||b.getData(S).value),I.setAttribute("aria-setsize",b.data.length),I.setAttribute("aria-posinset",S+1),I.setAttribute("aria-describedby","doc-tooltip"),I.setAttribute(p,"true")}});var N=function(){$(-1)},$=function(S,L){S!==O.start.row&&(O.start.row=O.end.row=S,L||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return O.start.row},h.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(S){var L=b.data[S];return typeof L=="string"?L:L&&L.value||""};var _=b.session.bgTokenizer;return _.$tokenizeRow=function(S){function L(J,ae){J&&F.push({type:(I.className||"")+(ae||""),value:J})}var I=b.data[S],F=[];if(!I)return F;typeof I=="string"&&(I={value:I});for(var H=I.caption||I.value||I.name,W=H.toLowerCase(),V=(b.filterText||"").toLowerCase(),q=0,X=0,G=0;G<=V.length;G++)if(G!=X&&(I.matchMask&1<<G||G==V.length)){var Z=V.slice(X,G);X=G;var ie=W.indexOf(Z,q);if(ie==-1)continue;L(H.slice(q,ie),""),q=ie+Z.length,L(H.slice(ie,q),"completion-highlight")}return L(H.slice(q,H.length),""),F.push({type:"completion-spacer",value:" "}),I.meta&&F.push({type:"completion-meta",value:I.meta}),I.message&&F.push({type:"completion-message",value:I.message}),F},_.$updateOnChange=M,_.start=M,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(S,L){b.filterText=L||"",b.setValue(f.stringRepeat(`
1122
+ `,S.length),-1),b.data=S||[],b.setRow(0)},b.getData=function(S){return b.data[S]},b.getRow=function(){return T.start.row},b.setRow=function(S){S=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,S)),T.start.row!=S&&(b.selection.clearSelection(),T.start.row=T.end.row=S||0,b.session._emit("changeBackMarker"),b.moveCursorTo(S||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(S,L,I,F){if(!F&&b.isOpen&&b.anchorPos&&b.anchor&&b.anchorPos.top===S.top&&b.anchorPos.left===S.left&&b.anchor===I)return!0;var H=this.container,W=window.innerHeight,V=window.innerWidth,q=this.renderer,X=q.$maxLines*L*1.4,G={top:0,bottom:0,left:0},Z=W-S.top-3*this.$borderSize-L,ie=S.top-3*this.$borderSize;I||(ie<=Z||Z>=X?I="bottom":I="top"),I==="top"?(G.bottom=S.top-this.$borderSize,G.top=G.bottom-X):I==="bottom"&&(G.top=S.top+L+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=W;if(!F&&!J)return!1;J?q.$maxPixelHeight=null:I==="top"?q.$maxPixelHeight=ie:q.$maxPixelHeight=Z,I==="top"?(H.style.top="",H.style.bottom=W-G.bottom+"px",b.isTopdown=!1):(H.style.top=G.top+"px",H.style.bottom="",b.isTopdown=!0),H.style.display="";var ae=S.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"),E=null),b.anchorPos=S,b.anchor=I,!0},b.show=function(S,L,I){this.tryShow(S,L,I?"bottom":void 0,!0)},b.goTo=function(S){var L=this.getRow(),I=this.session.getLength()-1;switch(S){case"up":L=L<=0?I:L-1;break;case"down":L=L>=I?-1:L+1;break;case"start":L=0;break;case"end":L=I}this.setRow(L)},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b}return R}();a.importCssString(`
1123
+ .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1124
+ background-color: #CAD6FA;
1125
+ z-index: 1;
1126
+ }
1127
+ .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1128
+ background-color: #3a674e;
1129
+ }
1130
+ .ace_editor.ace_autocomplete .ace_line-hover {
1131
+ border: 1px solid #abbffe;
1132
+ margin-top: -1px;
1133
+ background: rgba(233,233,253,0.4);
1134
+ position: absolute;
1135
+ z-index: 2;
1136
+ }
1137
+ .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
1138
+ border: 1px solid rgba(109, 150, 13, 0.8);
1139
+ background: rgba(58, 103, 78, 0.62);
1140
+ }
1141
+ .ace_completion-meta {
1142
+ opacity: 0.5;
1143
+ margin-left: 0.9em;
1144
+ }
1145
+ .ace_completion-message {
1146
+ margin-left: 0.9em;
1147
+ color: blue;
1148
+ }
1149
+ .ace_editor.ace_autocomplete .ace_completion-highlight{
1150
+ color: #2d69c7;
1151
+ }
1152
+ .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
1153
+ color: #93ca12;
1154
+ }
1155
+ .ace_editor.ace_autocomplete {
1156
+ width: 300px;
1157
+ z-index: 200000;
1158
+ border: 1px lightgray solid;
1159
+ position: fixed;
1160
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
1161
+ line-height: 1.4;
1162
+ background: #fefefe;
1163
+ color: #111;
1164
+ }
1165
+ .ace_dark.ace_editor.ace_autocomplete {
1166
+ border: 1px #484747 solid;
1167
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
1168
+ line-height: 1.4;
1169
+ background: #25282c;
1170
+ color: #c1c1c1;
1171
+ }
1172
+ .ace_autocomplete .ace_text-layer {
1173
+ width: calc(100% - 8px);
1174
+ }
1175
+ .ace_autocomplete .ace_line {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ }
1179
+ .ace_autocomplete .ace_line > * {
1180
+ min-width: 0;
1181
+ flex: 0 0 auto;
1182
+ }
1183
+ .ace_autocomplete .ace_line .ace_ {
1184
+ flex: 0 1 auto;
1185
+ overflow: hidden;
1186
+ text-overflow: ellipsis;
1187
+ }
1188
+ .ace_autocomplete .ace_completion-spacer {
1189
+ flex: 1;
1190
+ }
1191
+ .ace_autocomplete.ace_loading:after {
1192
+ content: "";
1193
+ position: absolute;
1194
+ top: 0px;
1195
+ height: 2px;
1196
+ width: 8%;
1197
+ background: blue;
1198
+ z-index: 100;
1199
+ animation: ace_progress 3s infinite linear;
1200
+ animation-delay: 300ms;
1201
+ transform: translateX(-100%) scaleX(1);
1202
+ }
1203
+ @keyframes ace_progress {
1204
+ 0% { transform: translateX(-100%) scaleX(1) }
1205
+ 50% { transform: translateX(625%) scaleX(2) }
1206
+ 100% { transform: translateX(1500%) scaleX(3) }
1207
+ }
1208
+ @media (prefers-reduced-motion) {
1209
+ .ace_autocomplete.ace_loading:after {
1210
+ transform: translateX(625%) scaleX(2);
1211
+ animation: none;
1212
+ }
1213
+ }
1214
+ `,"autocompletion.css",!1),i.AcePopup=x,i.$singleLineEditor=y,i.getAriaId=l}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,i,m){var g=function(){function v(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return v.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var f=this.popup.getRow(),a=this.popup.renderer.$textLayer,c=a.element.childNodes[f-a.config.firstRow];if(c){for(var s="doc-tooltip ",l=0;l<this._lines.length;l++)s+="ace-inline-screenreader-line-".concat(l," ");c.setAttribute("aria-describedby",s)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},v.prototype.destroy=function(){this.screenReaderDiv.remove()},v.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var f=document.createElement("code");f.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);f.appendChild(a),w.appendChild(f)}return w},v}();i.AceInlineScreenReader=g}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,i,m){var g=e("../snippets").snippetManager,v=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(f,a,c){if(c=c||"",f&&this.editor&&this.editor!==f&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!f||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new v(f));var s=a.snippet?g.getDisplayTextForSnippet(f,a.snippet):a.value;return a.hideInlinePreview||!s||!s.startsWith(c)?!1:(this.editor=f,this.inlineScreenReader.setScreenReaderContent(s),s=s.slice(c.length),s===""?f.removeGhostText():f.setGhostText(s),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();i.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,i,m){i.parForEach=function(v,w,h){var f=0,a=v.length;a===0&&h();for(var c=0;c<a;c++)w(v[c],function(s,l){f++,f===a&&h(s,l)})};var g=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;i.retrievePrecedingIdentifier=function(v,w,h){h=h||g;for(var f=[],a=w-1;a>=0&&h.test(v[a]);a--)f.push(v[a]);return f.reverse().join("")},i.retrieveFollowingIdentifier=function(v,w,h){h=h||g;for(var f=[],a=w;a<v.length&&h.test(v[a]);a++)f.push(v[a]);return f},i.getCompletionPrefix=function(v){var w=v.getCursorPosition(),h=v.session.getLine(w.row),f;return v.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(c){!f&&c&&(f=this.retrievePrecedingIdentifier(h,w.column,c))}).bind(this))}).bind(this)),f||this.retrievePrecedingIdentifier(h,w.column)},i.triggerAutocomplete=function(v,h){var h=h??v.session.getPrecedingCharacter();return v.completers.some(function(f){if(f.triggerCharacters&&Array.isArray(f.triggerCharacters))return f.triggerCharacters.includes(h)})}}),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(e,i,m){var g=e("./keyboard/hash_handler").HashHandler,v=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,f=e("./autocomplete/util"),a=e("./lib/lang"),c=e("./lib/dom"),s=e("./snippets").snippetManager,l=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,p=function(A,k){k.completer&&k.completer.destroy()},y=function(){function A(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new g,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=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=a.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=a.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=a.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new R(A.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(A,"completionsForLoading",{get:function(){return[{caption:l.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),A.prototype.$init=function(){return this.popup=new v(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},A.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},A.prototype.getPopup=function(){return this.popup||this.$init()},A.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},A.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},A.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var b=k?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)},A.prototype.$updateGhostText=function(k){var b=this.base.row,M=this.base.column,E=this.editor.getCursorPosition().column,O=this.editor.session.getLine(b).slice(M,E);this.inlineRenderer.show(this.editor,k,O)?this.$seen(k):this.inlineRenderer.hide()},A.prototype.$onPopupRender=function(){var k=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 M=this.popup.getData(b);M&&(!k||M.hideInlinePreview)&&this.$seen(M)}},A.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},A.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,b=[];k;)b.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=b}},A.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(b){b.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},A.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},A.prototype.$updatePopupPosition=function(){var k=this.editor,b=k.renderer,M=b.layerConfig.lineHeight,E=b.$cursorLayer.getPixelPosition(this.base,!0);E.left-=this.popup.getTextLeftOffset();var O=k.container.getBoundingClientRect();E.top+=O.top-b.layerConfig.offset,E.left+=O.left-k.renderer.scrollLeft,E.left+=b.gutterWidth;var T={top:E.top,left:E.left};b.$ghostText&&b.$ghostTextWidget&&this.base.row===b.$ghostText.position.row&&(T.top+=b.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-M,$=N<T.top?{top:N,left:T.left}:T;this.popup.tryShow($,M,"bottom")||this.popup.tryShow(E,M,"top")||this.popup.show(E,M)},A.prototype.openPopup=function(k,b,M){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var E=this.popup.getRow(),O=this.popup.data[E];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var T;this.stickySelection&&(T=this.popup.data.indexOf(O)),(!T||T===-1)&&(T=0),this.popup.setRow(this.autoSelect?T:-1),T===E&&O!==this.completions.filtered[T]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(T===E&&N){var $=this.popup.getData(this.popup.getRow());this.$updateGhostText($)}M||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},A.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()},A.prototype.changeListener=function(k){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()},A.prototype.blurListener=function(k){var b=document.activeElement,M=this.editor.textInput.getElement(),E=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),O=this.popup&&this.popup.container;b!=M&&b.parentNode!=O&&!E&&b!=this.tooltipNode&&k.relatedTarget!=M&&this.detach()},A.prototype.mousedownListener=function(k){this.detach()},A.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},A.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},A.prototype.goTo=function(k){this.popup.goTo(k)},A.prototype.insertMatch=function(k,b){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var M=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,k,M.filterText,b);return this.completions==M&&this.detach(),E},A.prototype.showPopup=function(k,b){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,b)},A.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},A.prototype.gatherCompletions=function(k,b){return this.getCompletionProvider().gatherCompletions(k,b)},A.prototype.updateCompletions=function(k,b){if(k&&this.base&&this.completions){var E=this.editor.getCursorPosition(),O=this.editor.session.getTextRange({start:this.base,end:E});if(O==this.completions.filterText)return;if(this.completions.setFilter(O),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==O&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,O,k);return}if(b&&b.matches){var E=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(E.row,E.column),this.base.$insertRight=!0,this.completions=new R(b.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var M=this.editor.getSession(),E=this.editor.getCursorPosition(),O=f.getCompletionPrefix(this.editor);this.base=M.doc.createAnchor(E.row,E.column-O.length),this.base.$insertRight=!0;var T={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:O,pos:E}).provideCompletions(this.editor,T,(function(N,$,_){var S=$.filtered,L=f.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!S.length){var I=!this.autoShown&&this.emptyMessage;if(typeof I=="function"&&(I=this.emptyMessage(L)),I){var F=[{caption:I,value:""}];this.completions=new R(F),this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(S.length==1&&S[0].value==L&&!S[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&S.length==1)return this.insertMatch(S[0])}this.completions=!_&&this.showLoadingState?new R(A.completionsForLoading.concat(S),$.filterText):$,this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},A.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},A.prototype.updateDocTooltip=function(){var k=this.popup,b=this.completions.filtered,M=b&&(b[k.getHoveredRow()]||b[k.getRow()]),E=null;if(!M||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var O=this.editor.completers.length,T=0;T<O;T++){var N=this.editor.completers[T];if(N.getDocTooltip&&M.completerId===N.id){E=N.getDocTooltip(M);break}}if(!E&&typeof M!="string"&&(E=M),typeof E=="string"&&(E={docText:E}),!E||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},A.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=c.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",u));var b=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(b.isDark?"ace_dark ":"")+(b.cssClass||"");var M=this.tooltipNode;k.docHTML?M.innerHTML=k.docHTML:k.docText&&(M.textContent=k.docText),M.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,O=E.container.getBoundingClientRect();M.style.top=E.container.style.top,M.style.bottom=E.container.style.bottom,M.style.display="block",window.innerWidth-O.right<320?O.left<320?E.isTopdown?(M.style.top=O.bottom+"px",M.style.left=O.left+"px",M.style.right="",M.style.bottom=""):(M.style.top=E.container.offsetTop-M.offsetHeight+"px",M.style.left=O.left+"px",M.style.right="",M.style.bottom=""):(M.style.right=window.innerWidth-O.left+"px",M.style.left=""):(M.style.left=O.right+1+"px",M.style.right="")},A.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},A.prototype.onTooltipClick=function(k){for(var b=k.target;b&&b!=this.tooltipNode;){if(b.nodeName=="A"&&b.href){b.rel="noreferrer",b.target="_blank";break}b=b.parentNode}},A.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},A.for=function(k){return k.completer instanceof A||(k.completer&&(k.completer.destroy(),k.completer=null),l.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),k.completer=A.$sharedInstance):(k.completer=new A,k.once("destroy",p))),k.completer},A}();y.prototype.commands={Up:function(A){A.completer.goTo("up")},Down:function(A){A.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(A){A.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(A){A.completer.goTo("end")},Esc:function(A){A.completer.detach()},Return:function(A){return A.completer.insertMatch()},"Shift-Return":function(A){A.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(A){var k=A.completer.insertMatch();if(k||A.tabstopManager)return k;A.completer.goTo("down")},Backspace:function(A){A.execCommand("backspace");var k=f.getCompletionPrefix(A);!k&&A.completer&&A.completer.detach()},PageUp:function(A){A.completer.popup.gotoPageUp()},PageDown:function(A){A.completer.popup.gotoPageDown()}},y.startCommand={name:"startAutocomplete",exec:function(A,k){var b=y.for(A);b.autoInsert=!1,b.autoSelect=!0,b.autoShown=!1,b.showPopup(A,k),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function A(k){this.initialPosition=k,this.active=!0}return A.prototype.insertByIndex=function(k,b,M){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[b],M)},A.prototype.insertMatch=function(k,b,M){if(!b)return!1;if(k.startOperation({command:{name:"insertMatch"}}),b.completer&&b.completer.insertMatch)b.completer.insertMatch(k,b);else{if(!this.completions)return!1;var E=this.completions.filterText.length,O=0;if(b.range&&b.range.start.row===b.range.end.row&&(E-=this.initialPosition.prefix.length,E+=this.initialPosition.pos.column-b.range.start.column,O+=b.range.end.column-this.initialPosition.pos.column),E||O){var T;k.selection.getAllRanges?T=k.selection.getAllRanges():T=[k.getSelectionRange()];for(var N=0,$;$=T[N];N++)$.start.column-=E,$.end.column+=O,k.session.remove($)}b.snippet?s.insertSnippet(k,b.snippet):this.$insertString(k,b),b.completer&&b.completer.onInsert&&typeof b.completer.onInsert=="function"&&b.completer.onInsert(k,b),b.command&&b.command==="startAutocomplete"&&k.execCommand(b.command)}return k.endOperation(),!0},A.prototype.$insertString=function(k,b){var M=b.value||b;k.execCommand("insertstring",M)},A.prototype.gatherCompletions=function(k,b){var M=k.getSession(),E=k.getCursorPosition(),O=f.getCompletionPrefix(k),T=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function($,_){$.getCompletions(k,M,E,O,function(S,L){$.hideInlinePreview&&(L=L.map(function(I){return Object.assign(I,{hideInlinePreview:$.hideInlinePreview})})),!S&&L&&(T=T.concat(L)),b(null,{prefix:f.getCompletionPrefix(k),matches:T,finished:--N===0})})}),!0},A.prototype.provideCompletions=function(k,b,M){var E=(function($){var _=$.prefix,S=$.matches;this.completions=new R(S),b.exactMatch&&(this.completions.exactMatch=!0),b.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),($.finished||this.completions.filtered.length)&&M(null,this.completions,$.finished)}).bind(this),O=!0,T=null;if(this.gatherCompletions(k,(function($,_){if(this.active){$&&(M($,[],!0),this.detach());var S=_.prefix;if(S.indexOf(_.prefix)===0){if(O){T=_;return}E(_)}}}).bind(this)),O=!1,T){var N=T;T=null,E(N)}},A.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},A}(),R=function(){function A(k,b){this.all=k,this.filtered=k,this.filterText=b||"",this.exactMatch=!1,this.ignoreCaption=!1}return A.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var b=this.filtered;else var b=this.all;this.filterText=k,b=this.filterCompletions(b,this.filterText),b=b.sort(function(E,O){return O.exactMatch-E.exactMatch||O.$score-E.$score||(E.caption||E.value).localeCompare(O.caption||O.value)});var M=null;b=b.filter(function(E){var O=E.snippet||E.caption||E.value;return O===M?!1:(M=O,!0)}),this.filtered=b},A.prototype.filterCompletions=function(k,b){var M=[],E=b.toUpperCase(),O=b.toLowerCase();e:for(var T=0,N;N=k[T];T++){var $=!this.ignoreCaption&&N.caption||N.value||N.snippet;if($){var _=-1,S=0,L=0,I,F;if(this.exactMatch){if(b!==$.substr(0,b.length))continue e}else{var H=$.toLowerCase().indexOf(O);if(H>-1)L=H;else for(var W=0;W<b.length;W++){var V=$.indexOf(O[W],_+1),q=$.indexOf(E[W],_+1);if(I=V>=0&&(q<0||V<q)?V:q,I<0)continue e;F=I-_-1,F>0&&(_===-1&&(L+=10),L+=F,S|=1<<W),_=I}}N.matchMask=S,N.exactMatch=L?0:1,N.$score=(N.score||0)-L,M.push(N)}}return M},A}();i.Autocomplete=y,i.CompletionProvider=x,i.FilteredList=R}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,i,m){function g(f,a){var c=f.getTextRange(w.fromPoints({row:0,column:0},a));return c.split(h).length-1}function v(f,a){var c=g(f,a),s=f.getValue().split(h),l=Object.create(null),o=s[c];return s.forEach(function(u,p){if(!(!u||u===o)){var y=Math.abs(c-p),x=s.length-y;l[u]?l[u]=Math.max(x,l[u]):l[u]=x}}),l}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;i.getCompletions=function(f,a,c,s,l){var o=v(a,c),u=Object.keys(o);l(null,u.map(function(p){return{caption:p,value:p,score:o[p],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(e,i,m){var g=e("../snippets").snippetManager,v=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),f=e("../autocomplete/util"),a=e("../autocomplete/text_completer"),c={getCompletions:function(E,O,T,N,$){if(O.$mode.completer)return O.$mode.completer.getCompletions(E,O,T,N,$);var _=E.session.getState(T.row),S=O.$mode.getCompletions(_,O,T,N);S=S.map(function(L){return L.completerId=c.id,L}),$(null,S)},id:"keywordCompleter"},s=function(E){var O={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(T,N,$,_){return O[N]=_||""}).replace(/\$(\d+?)/g,function(T,N){return O[N]})},l={getCompletions:function(E,O,T,N,$){var _=[],S=O.getTokenAt(T.row,T.column);S&&S.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=g.getActiveScopes(E);var L=g.snippetMap,I=[];_.forEach(function(F){for(var H=L[F]||[],W=H.length;W--;){var V=H[W],q=V.name||V.tabTrigger;q&&I.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:l.id})}},this),$(null,I)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(s(E.snippet))].join(""))},id:"snippetCompleter"},o=[l,a,c];i.setCompleters=function(E){o.length=0,E&&o.push.apply(o,E)},i.addCompleter=function(E){o.push(E)},i.textCompleter=a,i.keyWordCompleter=c,i.snippetCompleter=l;var u={name:"expandSnippet",exec:function(E){return g.expandWithTab(E)},bindKey:"Tab"},p=function(E,O){y(O.session.$mode)},y=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(g.files||(g.files={}),x(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(y))},x=function(E,O){!O||!E||g.files[E]||(g.files[E]={},w.loadModule(O,function(T){T&&(g.files[E]=T,!T.snippets&&T.snippetText&&(T.snippets=g.parseSnippetFile(T.snippetText)),g.register(T.snippets||[],T.scope),T.includeScopes&&(g.snippetMap[T.scope].includeScopes=T.includeScopes,T.includeScopes.forEach(function(N){y("ace/mode/"+N)})))}))},R=function(E){var O=E.editor,T=O.completer&&O.completer.activated;if(E.command.name==="backspace")T&&!f.getCompletionPrefix(O)&&O.completer.detach();else if(E.command.name==="insertstring"&&!T){A=E;var N=E.editor.$liveAutocompletionDelay;N?k.delay(N):b(E)}},A,k=h.delayedCall(function(){b(A)},0),b=function(E){var O=E.editor,T=f.getCompletionPrefix(O),N=E.args,$=f.triggerAutocomplete(O,N);if(T&&T.length>=O.$liveAutocompletionThreshold||$){var _=v.for(O);_.autoShown=!0,_.showPopup(O)}},M=e("../editor").Editor;e("../config").defineOptions(M.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.addCommand(v.startCommand)):this.commands.removeCommand(v.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.on("afterExec",R)):this.commands.off("afterExec",R)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(u),this.on("changeMode",p),p(null,this)):(this.commands.removeCommand(u),this.off("changeMode",p))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(Ap)),Ap.exports}qw();var Tp={exports:{}},Ep;function Gw(){return Ep||(Ep=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,i,m){m.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(e,i,m){var g=e("../lib/dom"),v=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),f=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),c=e("../config").nls,s=999;g.importCssString(h,"ace_searchbox",!1);var l=function(){function p(y,x,R){this.activeInput;var A=g.createElement("div");g.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:c("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"},c("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:c("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},c("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},c("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:c("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:c("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:c("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:c("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:c("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],A),this.element=A.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(y),g.importCssString(h,"ace_searchbox",y.container)}return p.prototype.setEditor=function(y){y.searchBox=this,y.renderer.scroller.appendChild(this.element),this.editor=y},p.prototype.setSession=function(y){this.searchRange=null,this.$syncOptions(!0)},p.prototype.$initElements=function(y){this.searchBox=y.querySelector(".ace_search_form"),this.replaceBox=y.querySelector(".ace_replace_form"),this.searchOption=y.querySelector("[action=searchInSelection]"),this.replaceOption=y.querySelector("[action=toggleReplace]"),this.regExpOption=y.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=y.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=y.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=y.querySelector(".ace_search_counter")},p.prototype.$init=function(){var y=this.element;this.$initElements(y);var x=this;w.addListener(y,"mousedown",function(R){setTimeout(function(){x.activeInput.focus()},0),w.stopPropagation(R)}),w.addListener(y,"click",function(R){var A=R.target||R.srcElement,k=A.getAttribute("action");k&&x[k]?x[k]():x.$searchBarKb.commands[k]&&x.$searchBarKb.commands[k].exec(x),w.stopPropagation(R)}),w.addCommandKeyListener(y,function(R,A,k){var b=a.keyCodeToString(k),M=x.$searchBarKb.findKeyCommand(A,b);M&&M.exec&&(M.exec(x),w.stopEvent(R))}),this.$onChange=v.delayedCall(function(){x.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),w.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},p.prototype.setSearchRange=function(y){this.searchRange=y,y?this.searchRangeMarker=this.editor.session.addMarker(y,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},p.prototype.$syncOptions=function(y){g.setCssClass(this.replaceOption,"checked",this.searchRange),g.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",g.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),g.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),g.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,y)},p.prototype.highlight=function(y){this.editor.session.highlight(y||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},p.prototype.find=function(y,x,R){var A=this.editor.find(this.searchInput.value,{skipCurrent:y,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:R,range:this.searchRange}),k=!A&&this.searchInput.value;g.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},p.prototype.updateCounter=function(){var y=this.editor,x=y.$search.$options.re,R=x.unicode,A=0,k=0;if(x){var b=this.searchRange?y.session.getTextRange(this.searchRange):y.getValue(),M=y.session.doc.positionToIndex(y.selection.anchor);this.searchRange&&(M-=y.session.doc.positionToIndex(this.searchRange.start));for(var E=x.lastIndex=0,O;(O=x.exec(b))&&(A++,E=O.index,E<=M&&k++,!(A>s||!O[0]&&(x.lastIndex=E+=v.skipEmptyMatch(b,E,R),E>=b.length))););}this.searchCounter.textContent=c("search-box.search-counter","$0 of $1",[k,A>s?s+"+":A])},p.prototype.findNext=function(){this.find(!0,!1)},p.prototype.findPrev=function(){this.find(!0,!0)},p.prototype.findAll=function(){var y=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!y&&this.searchInput.value;g.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},p.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},p.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},p.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},p.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()},p.prototype.show=function(y,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,y&&(this.searchInput.value=y),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},p.prototype.isFocused=function(){var y=document.activeElement;return y==this.searchInput||y==this.replaceInput},p}(),o=new f;o.bindKeys({"Ctrl-f|Command-f":function(p){var y=p.isReplace=!p.isReplace;p.replaceBox.style.display=y?"":"none",p.replaceOption.checked=!1,p.$syncOptions(),p.searchInput.focus()},"Ctrl-H|Command-Option-F":function(p){p.editor.getReadOnly()||(p.replaceOption.checked=!0,p.$syncOptions(),p.replaceInput.focus())},"Ctrl-G|Command-G":function(p){p.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(p){p.findPrev()},esc:function(p){setTimeout(function(){p.hide()})},Return:function(p){p.activeInput==p.replaceInput&&p.replace(),p.findNext()},"Shift-Return":function(p){p.activeInput==p.replaceInput&&p.replace(),p.findPrev()},"Alt-Return":function(p){p.activeInput==p.replaceInput&&p.replaceAll(),p.findAll()},Tab:function(p){(p.activeInput==p.replaceInput?p.searchInput:p.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(p){p.regExpOption.checked=!p.regExpOption.checked,p.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(p){p.caseSensitiveOption.checked=!p.caseSensitiveOption.checked,p.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(p){p.wholeWordOption.checked=!p.wholeWordOption.checked,p.$syncOptions()}},{name:"toggleReplace",exec:function(p){p.replaceOption.checked=!p.replaceOption.checked,p.$syncOptions()}},{name:"searchInSelection",exec:function(p){p.searchOption.checked=!p.searchRange,p.setSearchRange(p.searchOption.checked&&p.editor.getSelectionRange()),p.$syncOptions()}}]);var u=new f([{bindKey:"Esc",name:"closeSearchBar",exec:function(p){p.searchBox.hide()}}]);l.prototype.$searchBarKb=o,l.prototype.$closeSearchBarKb=u,i.SearchBox=l,i.Search=function(p,y){var x=p.searchBox||new l(p);x.show(p.session.getTextRange(),y)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n&&(n.exports=e)})}()}(Tp)),Tp.exports}Gw();var Yw=Object.defineProperty,Kw=(n,t,e)=>t in n?Yw(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Qw=(n,t,e)=>Kw(n,t+"",e);function Rp(n,t){return function(){return n.apply(t,arguments)}}const{toString:Zw}=Object.prototype,{getPrototypeOf:Oc}=Object,Aa=(n=>t=>{const e=Zw.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ti=n=>(n=n.toLowerCase(),t=>Aa(t)===n),Ma=n=>t=>typeof t===n,{isArray:Eo}=Array,ys=Ma("undefined");function Jw(n){return n!==null&&!ys(n)&&n.constructor!==null&&!ys(n.constructor)&&si(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Lp=Ti("ArrayBuffer");function Xw(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Lp(n.buffer),t}const eb=Ma("string"),si=Ma("function"),Op=Ma("number"),Ta=n=>n!==null&&typeof n=="object",tb=n=>n===!0||n===!1,Ea=n=>{if(Aa(n)!=="object")return!1;const t=Oc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},nb=Ti("Date"),ib=Ti("File"),rb=Ti("Blob"),ob=Ti("FileList"),sb=n=>Ta(n)&&si(n.pipe),ab=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||si(n.append)&&((t=Aa(n))==="formdata"||t==="object"&&si(n.toString)&&n.toString()==="[object FormData]"))},lb=Ti("URLSearchParams"),[cb,ub,hb,db]=["ReadableStream","Request","Response","Headers"].map(Ti),pb=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ws(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Eo(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const g=e?Object.getOwnPropertyNames(n):Object.keys(n),v=g.length;let w;for(i=0;i<v;i++)w=g[i],t.call(null,n[w],w,n)}}function Ip(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const Qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dp=n=>!ys(n)&&n!==Qr;function Ic(){const{caseless:n}=Dp(this)&&this||{},t={},e=(i,m)=>{const g=n&&Ip(t,m)||m;Ea(t[g])&&Ea(i)?t[g]=Ic(t[g],i):Ea(i)?t[g]=Ic({},i):Eo(i)?t[g]=i.slice():t[g]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&ws(arguments[i],e);return t}const fb=(n,t,e,{allOwnKeys:i}={})=>(ws(t,(m,g)=>{e&&si(m)?n[g]=Rp(m,e):n[g]=m},{allOwnKeys:i}),n),gb=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),mb=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},vb=(n,t,e,i)=>{let m,g,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),g=m.length;g-- >0;)v=m[g],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&Oc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},yb=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},wb=n=>{if(!n)return null;if(Eo(n))return n;let t=n.length;if(!Op(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},bb=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Oc(Uint8Array)),xb=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},_b=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},kb=Ti("HTMLFormElement"),$b=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Np=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Sb=Ti("RegExp"),Fp=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};ws(e,(m,g)=>{let v;(v=t(m,g,n))!==!1&&(i[g]=v||m)}),Object.defineProperties(n,i)},Cb=n=>{Fp(n,(t,e)=>{if(si(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(si(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Ab=(n,t)=>{const e={},i=m=>{m.forEach(g=>{e[g]=!0})};return Eo(n)?i(n):i(String(n).split(t)),e},Mb=()=>{},Tb=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,Dc="abcdefghijklmnopqrstuvwxyz",Pp="0123456789",Hp={DIGIT:Pp,ALPHA:Dc,ALPHA_DIGIT:Dc+Dc.toUpperCase()+Pp},Eb=(n=16,t=Hp.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function Rb(n){return!!(n&&si(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Lb=n=>{const t=new Array(10),e=(i,m)=>{if(Ta(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const g=Eo(i)?[]:{};return ws(i,(v,w)=>{const h=e(v,m+1);!ys(h)&&(g[w]=h)}),t[m]=void 0,g}}return i};return e(n,0)},Ob=Ti("AsyncFunction"),Ib=n=>n&&(Ta(n)||si(n))&&si(n.then)&&si(n.catch),Bp=((n,t)=>n?setImmediate:t?((e,i)=>(Qr.addEventListener("message",({source:m,data:g})=>{m===Qr&&g===e&&i.length&&i.shift()()},!1),m=>{i.push(m),Qr.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",si(Qr.postMessage)),Db=typeof queueMicrotask<"u"?queueMicrotask.bind(Qr):typeof process<"u"&&process.nextTick||Bp,ue={isArray:Eo,isArrayBuffer:Lp,isBuffer:Jw,isFormData:ab,isArrayBufferView:Xw,isString:eb,isNumber:Op,isBoolean:tb,isObject:Ta,isPlainObject:Ea,isReadableStream:cb,isRequest:ub,isResponse:hb,isHeaders:db,isUndefined:ys,isDate:nb,isFile:ib,isBlob:rb,isRegExp:Sb,isFunction:si,isStream:sb,isURLSearchParams:lb,isTypedArray:bb,isFileList:ob,forEach:ws,merge:Ic,extend:fb,trim:pb,stripBOM:gb,inherits:mb,toFlatObject:vb,kindOf:Aa,kindOfTest:Ti,endsWith:yb,toArray:wb,forEachEntry:xb,matchAll:_b,isHTMLForm:kb,hasOwnProperty:Np,hasOwnProp:Np,reduceDescriptors:Fp,freezeMethods:Cb,toObjectSet:Ab,toCamelCase:$b,noop:Mb,toFiniteNumber:Tb,findKey:Ip,global:Qr,isContextDefined:Dp,ALPHABET:Hp,generateString:Eb,isSpecCompliantForm:Rb,toJSONObject:Lb,isAsyncFn:Ob,isThenable:Ib,setImmediate:Bp,asap:Db};function Je(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.status:null)}ue.inherits(Je,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 jp=Je.prototype,zp={};["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=>{zp[n]={value:n}}),Object.defineProperties(Je,zp),Object.defineProperty(jp,"isAxiosError",{value:!0}),Je.from=(n,t,e,i,m,g)=>{const v=Object.create(jp);return ue.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),Je.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,g&&Object.assign(v,g),v};const Nb=null;function Nc(n){return ue.isPlainObject(n)||ue.isArray(n)}function Wp(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function Up(n,t,e){return n?n.concat(t).map(function(i,m){return i=Wp(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function Fb(n){return ue.isArray(n)&&!n.some(Nc)}const Pb=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Ra(n,t,e){if(!ue.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=ue.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!ue.isUndefined(o[l])});const i=e.metaTokens,m=e.visitor||f,g=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(t);if(!ue.isFunction(m))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(ue.isDate(l))return l.toISOString();if(!w&&ue.isBlob(l))throw new Je("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(l)||ue.isTypedArray(l)?w&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function f(l,o,u){let p=l;if(l&&!u&&typeof l=="object"){if(ue.endsWith(o,"{}"))o=i?o:o.slice(0,-2),l=JSON.stringify(l);else if(ue.isArray(l)&&Fb(l)||(ue.isFileList(l)||ue.endsWith(o,"[]"))&&(p=ue.toArray(l)))return o=Wp(o),p.forEach(function(y,x){!(ue.isUndefined(y)||y===null)&&t.append(v===!0?Up([o],x,g):v===null?o:o+"[]",h(y))}),!1}return Nc(l)?!0:(t.append(Up(u,o,g),h(l)),!1)}const a=[],c=Object.assign(Pb,{defaultVisitor:f,convertValue:h,isVisitable:Nc});function s(l,o){if(!ue.isUndefined(l)){if(a.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(l),ue.forEach(l,function(u,p){(!(ue.isUndefined(u)||u===null)&&m.call(t,u,ue.isString(p)?p.trim():p,o,c))===!0&&s(u,o?o.concat(p):[p])}),a.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return s(n),t}function Vp(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Fc(n,t){this._pairs=[],n&&Ra(n,this,t)}const qp=Fc.prototype;qp.append=function(n,t){this._pairs.push([n,t])},qp.toString=function(n){const t=n?function(e){return n.call(this,e,Vp)}:Vp;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Hb(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gp(n,t,e){if(!t)return n;const i=e&&e.encode||Hb;ue.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let g;if(m?g=m(t,e):g=ue.isURLSearchParams(t)?t.toString():new Fc(t,e).toString(i),g){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+g}return n}class Yp{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(e){e!==null&&t(e)})}}const Kp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bb=typeof URLSearchParams<"u"?URLSearchParams:Fc,jb=typeof FormData<"u"?FormData:null,zb=typeof Blob<"u"?Blob:null,Wb={isBrowser:!0,classes:{URLSearchParams:Bb,FormData:jb,Blob:zb},protocols:["http","https","file","blob","url","data"]},Pc=typeof window<"u"&&typeof document<"u",Hc=typeof navigator=="object"&&navigator||void 0,Ub=Pc&&(!Hc||["ReactNative","NativeScript","NS"].indexOf(Hc.product)<0),Vb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qb=Pc&&window.location.href||"http://localhost",Gb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pc,hasStandardBrowserEnv:Ub,hasStandardBrowserWebWorkerEnv:Vb,navigator:Hc,origin:qb},Symbol.toStringTag,{value:"Module"})),On={...Gb,...Wb};function Yb(n,t){return Ra(n,new On.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,g){return On.isNode&&ue.isBuffer(e)?(this.append(i,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)}},t))}function Kb(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Qb(n){const t={},e=Object.keys(n);let i;const m=e.length;let g;for(i=0;i<m;i++)g=e[i],t[g]=n[g];return t}function Qp(n){function t(e,i,m,g){let v=e[g++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=g>=e.length;return v=!v&&ue.isArray(m)?m.length:v,h?(ue.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!ue.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],g)&&ue.isArray(m[v])&&(m[v]=Qb(m[v])),!w)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(i,m)=>{t(Kb(i),m,e,0)}),e}return null}function Zb(n,t,e){if(ue.isString(n))try{return(t||JSON.parse)(n),ue.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const bs={transitional:Kp,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=ue.isObject(n);if(m&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return i?JSON.stringify(Qp(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 t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let g;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return Yb(n,this.formSerializer).toString();if((g=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Ra(g?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),Zb(n)):n}],transformResponse:[function(n){const t=this.transitional||bs.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(g){if(m)throw g.name==="SyntaxError"?Je.from(g,Je.ERR_BAD_RESPONSE,this,null,this.response):g}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:On.classes.FormData,Blob:On.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=>{bs.headers[n]={}});const Jb=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"]),Xb=n=>{const t={};let e,i,m;return n&&n.split(`
1376
+ `).forEach(function(g){m=g.indexOf(":"),e=g.substring(0,m).trim().toLowerCase(),i=g.substring(m+1).trim(),!(!e||t[e]&&Jb[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},Zp=Symbol("internals");function xs(n){return n&&String(n).trim().toLowerCase()}function La(n){return n===!1||n==null?n:ue.isArray(n)?n.map(La):String(n)}function e1(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const t1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Bc(n,t,e,i,m){if(ue.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!ue.isString(t)){if(ue.isString(i))return t.indexOf(i)!==-1;if(ue.isRegExp(i))return i.test(t)}}function n1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function i1(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,g,v){return this[i].call(this,t,m,g,v)},configurable:!0})})}class Qn{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function g(w,h,f){const a=xs(h);if(!a)throw new Error("header name must be a non-empty string");const c=ue.findKey(m,a);(!c||m[c]===void 0||f===!0||f===void 0&&m[c]!==!1)&&(m[c||h]=La(w))}const v=(w,h)=>ue.forEach(w,(f,a)=>g(f,a,h));if(ue.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(ue.isString(t)&&(t=t.trim())&&!t1(t))v(Xb(t),e);else if(ue.isHeaders(t))for(const[w,h]of t.entries())g(h,w,i);else t!=null&&g(e,t,i);return this}get(t,e){if(t=xs(t),t){const i=ue.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return e1(m);if(ue.isFunction(e))return e.call(this,m,i);if(ue.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=xs(t),t){const i=ue.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||Bc(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function g(v){if(v=xs(v),v){const w=ue.findKey(i,v);w&&(!e||Bc(i,i[w],w,e))&&(delete i[w],m=!0)}}return ue.isArray(t)?t.forEach(g):g(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const g=e[i];(!t||Bc(this,this[g],g,t,!0))&&(delete this[g],m=!0)}return m}normalize(t){const e=this,i={};return ue.forEach(this,(m,g)=>{const v=ue.findKey(i,g);if(v){e[v]=La(m),delete e[g];return}const w=t?n1(g):String(g).trim();w!==g&&delete e[g],e[w]=La(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ue.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&ue.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1377
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[Zp]=this[Zp]={accessors:{}}).accessors,i=this.prototype;function m(g){const v=xs(g);e[v]||(i1(i,g),e[v]=!0)}return ue.isArray(t)?t.forEach(m):m(t),this}}Qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Qn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),ue.freezeMethods(Qn);function jc(n,t){const e=this||bs,i=t||e,m=Qn.from(i.headers);let g=i.data;return ue.forEach(n,function(v){g=v.call(e,g,m.normalize(),t?t.status:void 0)}),m.normalize(),g}function Jp(n){return!!(n&&n.__CANCEL__)}function Ro(n,t,e){Je.call(this,n??"canceled",Je.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Ro,Je,{__CANCEL__:!0});function Xp(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new Je("Request failed with status code "+e.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function r1(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function o1(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,g=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),f=i[g];v||(v=h),e[m]=w,i[m]=h;let a=g,c=0;for(;a!==m;)c+=e[a++],a=a%n;if(m=(m+1)%n,m===g&&(g=(g+1)%n),h-v<t)return;const s=f&&h-f;return s?Math.round(c*1e3/s):void 0}}function s1(n,t){let e=0,i=1e3/t,m,g;const v=(w,h=Date.now())=>{e=h,m=null,g&&(clearTimeout(g),g=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),f=h-e;f>=i?v(w,h):(m=w,g||(g=setTimeout(()=>{g=null,v(m)},i-f)))},()=>m&&v(m)]}const Oa=(n,t,e=3)=>{let i=0;const m=o1(50,250);return s1(g=>{const v=g.loaded,w=g.lengthComputable?g.total:void 0,h=v-i,f=m(h),a=v<=w;i=v;const c={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:f||void 0,estimated:f&&w&&a?(w-v)/f:void 0,event:g,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(c)},e)},ef=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},tf=n=>(...t)=>ue.asap(()=>n(...t)),a1=On.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,On.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(On.origin),On.navigator&&/(msie|trident)/i.test(On.navigator.userAgent)):()=>!0,l1=On.hasStandardBrowserEnv?{write(n,t,e,i,m,g){const v=[n+"="+encodeURIComponent(t)];ue.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),ue.isString(i)&&v.push("path="+i),ue.isString(m)&&v.push("domain="+m),g===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function c1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function u1(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function nf(n,t){return n&&!c1(t)?u1(n,t):t}const rf=n=>n instanceof Qn?{...n}:n;function Zr(n,t){t=t||{};const e={};function i(f,a,c,s){return ue.isPlainObject(f)&&ue.isPlainObject(a)?ue.merge.call({caseless:s},f,a):ue.isPlainObject(a)?ue.merge({},a):ue.isArray(a)?a.slice():a}function m(f,a,c,s){if(ue.isUndefined(a)){if(!ue.isUndefined(f))return i(void 0,f,c,s)}else return i(f,a,c,s)}function g(f,a){if(!ue.isUndefined(a))return i(void 0,a)}function v(f,a){if(ue.isUndefined(a)){if(!ue.isUndefined(f))return i(void 0,f)}else return i(void 0,a)}function w(f,a,c){if(c in t)return i(f,a);if(c in n)return i(void 0,f)}const h={url:g,method:g,data:g,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(f,a,c)=>m(rf(f),rf(a),c,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(f){const a=h[f]||m,c=a(n[f],t[f],f);ue.isUndefined(c)&&a!==w||(e[f]=c)}),e}const of=n=>{const t=Zr({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:g,headers:v,auth:w}=t;t.headers=v=Qn.from(v),t.url=Gp(nf(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(ue.isFormData(e)){if(On.hasStandardBrowserEnv||On.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[f,...a]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];v.setContentType([f||"multipart/form-data",...a].join("; "))}}if(On.hasStandardBrowserEnv&&(i&&ue.isFunction(i)&&(i=i(t)),i||i!==!1&&a1(t.url))){const f=m&&g&&l1.read(g);f&&v.set(m,f)}return t},h1=typeof XMLHttpRequest<"u",d1=h1&&function(n){return new Promise(function(t,e){const i=of(n);let m=i.data;const g=Qn.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,f,a,c,s,l;function o(){s&&s(),l&&l(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function p(){if(!u)return;const x=Qn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};Xp(function(A){t(A),o()},function(A){e(A),o()},R),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(e(new Je("Request aborted",Je.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new Je("Network Error",Je.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||Kp;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),e(new Je(x,R.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,n,u)),u=null},m===void 0&&g.setContentType(null),"setRequestHeader"in u&&ue.forEach(g.toJSON(),function(x,R){u.setRequestHeader(R,x)}),ue.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([c,l]=Oa(h,!0),u.addEventListener("progress",c)),w&&u.upload&&([a,s]=Oa(w),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(i.cancelToken||i.signal)&&(f=x=>{u&&(e(!x||x.type?new Ro(null,n,u):x),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=r1(i.url);if(y&&On.protocols.indexOf(y)===-1){e(new Je("Unsupported protocol "+y+":",Je.ERR_BAD_REQUEST,n));return}u.send(m||null)})},p1=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const g=function(f){if(!m){m=!0,w();const a=f instanceof Error?f:this.reason;i.abort(a instanceof Je?a:new Ro(a instanceof Error?a.message:a))}};let v=t&&setTimeout(()=>{v=null,g(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(f=>{f.unsubscribe?f.unsubscribe(g):f.removeEventListener("abort",g)}),n=null)};n.forEach(f=>f.addEventListener("abort",g));const{signal:h}=i;return h.unsubscribe=()=>ue.asap(w),h}},f1=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},g1=async function*(n,t){for await(const e of m1(n))yield*f1(e,t)},m1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},sf=(n,t,e,i)=>{const m=g1(n,t);let g=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:f,value:a}=await m.next();if(f){w(),h.close();return}let c=a.byteLength;if(e){let s=g+=c;e(s)}h.enqueue(new Uint8Array(a))}catch(f){throw w(f),f}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},Ia=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",af=Ia&&typeof ReadableStream=="function",v1=Ia&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),lf=(n,...t)=>{try{return!!n(...t)}catch{return!1}},y1=af&&lf(()=>{let n=!1;const t=new Request(On.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),cf=64*1024,zc=af&&lf(()=>ue.isReadableStream(new Response("").body)),Da={stream:zc&&(n=>n.body)};Ia&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Da[t]&&(Da[t]=ue.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,i)})})})(new Response);const w1=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(On.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 v1(n)).byteLength},b1=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??w1(t),x1=Ia&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:g,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:f,headers:a,withCredentials:c="same-origin",fetchOptions:s}=of(n);f=f?(f+"").toLowerCase():"text";let l=p1([m,g&&g.toAbortSignal()],v),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let p;try{if(h&&y1&&e!=="get"&&e!=="head"&&(p=await b1(a,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),b;if(ue.isFormData(i)&&(b=k.headers.get("content-type"))&&a.setContentType(b),k.body){const[M,E]=ef(p,Oa(tf(h)));i=sf(k.body,cf,M,E)}}ue.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...s,signal:l,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:i,duplex:"half",credentials:y?c:void 0});let x=await fetch(o);const R=zc&&(f==="stream"||f==="response");if(zc&&(w||R&&u)){const k={};["status","statusText","headers"].forEach(O=>{k[O]=x[O]});const b=ue.toFiniteNumber(x.headers.get("content-length")),[M,E]=w&&ef(b,Oa(tf(w),!0))||[];x=new Response(sf(x.body,cf,M,()=>{E&&E(),u&&u()}),k)}f=f||"text";let A=await Da[ue.findKey(Da,f)||"text"](x,n);return!R&&u&&u(),await new Promise((k,b)=>{Xp(k,b,{data:A,headers:Qn.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,n,o),{cause:y.cause||y}):Je.from(y,y&&y.code,n,o)}}),Wc={http:Nb,xhr:d1,fetch:x1};ue.forEach(Wc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const uf=n=>`- ${n}`,_1=n=>ue.isFunction(n)||n===null||n===!1,hf={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let g=0;g<t;g++){e=n[g];let v;if(i=e,!_1(e)&&(i=Wc[(v=String(e)).toLowerCase()],i===void 0))throw new Je(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+g]=i}if(!i){const g=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?g.length>1?`since :
1378
+ `+g.map(uf).join(`
1379
+ `):" "+uf(g[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:Wc};function Uc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Ro(null,n)}function df(n){return Uc(n),n.headers=Qn.from(n.headers),n.data=jc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),hf.getAdapter(n.adapter||bs.adapter)(n).then(function(t){return Uc(n),t.data=jc.call(n,n.transformResponse,t),t.headers=Qn.from(t.headers),t},function(t){return Jp(t)||(Uc(n),t&&t.response&&(t.response.data=jc.call(n,n.transformResponse,t.response),t.response.headers=Qn.from(t.response.headers))),Promise.reject(t)})}const pf="1.7.9",Na={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Na[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const ff={};Na.transitional=function(n,t,e){function i(m,g){return"[Axios v"+pf+"] Transitional option '"+m+"'"+g+(e?". "+e:"")}return(m,g,v)=>{if(n===!1)throw new Je(i(g," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!ff[g]&&(ff[g]=!0,console.warn(i(g," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,g,v):!0}},Na.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function k1(n,t,e){if(typeof n!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const g=i[m],v=t[g];if(v){const w=n[g],h=w===void 0||v(w,g,n);if(h!==!0)throw new Je("option "+g+" must be "+h,Je.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Je("Unknown option "+g,Je.ERR_BAD_OPTION)}}const Fa={assertOptions:k1,validators:Na},Pi=Fa.validators;class Jr{constructor(t){this.defaults=t,this.interceptors={request:new Yp,response:new Yp}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const g=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?g&&!String(i.stack).endsWith(g.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1380
+ `+g):i.stack=g}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Zr(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:g}=e;i!==void 0&&Fa.assertOptions(i,{silentJSONParsing:Pi.transitional(Pi.boolean),forcedJSONParsing:Pi.transitional(Pi.boolean),clarifyTimeoutError:Pi.transitional(Pi.boolean)},!1),m!=null&&(ue.isFunction(m)?e.paramsSerializer={serialize:m}:Fa.assertOptions(m,{encode:Pi.function,serialize:Pi.function},!0)),Fa.assertOptions(e,{baseUrl:Pi.spelling("baseURL"),withXsrfToken:Pi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=g&&ue.merge(g.common,g[e.method]);g&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete g[o]}),e.headers=Qn.concat(v,g);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const f=[];this.interceptors.response.forEach(function(o){f.push(o.fulfilled,o.rejected)});let a,c=0,s;if(!h){const o=[df.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,f),s=o.length,a=Promise.resolve(e);c<s;)a=a.then(o[c++],o[c++]);return a}s=w.length;let l=e;for(c=0;c<s;){const o=w[c++],u=w[c++];try{l=o(l)}catch(p){u.call(this,p);break}}try{a=df.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,s=f.length;c<s;)a=a.then(f[c++],f[c++]);return a}getUri(t){t=Zr(this.defaults,t);const e=nf(t.baseURL,t.url);return Gp(e,t.params,t.paramsSerializer)}}ue.forEach(["delete","get","head","options"],function(n){Jr.prototype[n]=function(t,e){return this.request(Zr(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,g){return this.request(Zr(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}Jr.prototype[n]=t(),Jr.prototype[n+"Form"]=t(!0)});class Vc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let g=i._listeners.length;for(;g-- >0;)i._listeners[g](m);i._listeners=null}),this.promise.then=m=>{let g;const v=new Promise(w=>{i.subscribe(w),g=w}).then(m);return v.cancel=function(){i.unsubscribe(g)},v},t(function(m,g,v){i.reason||(i.reason=new Ro(m,g,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Vc(function(e){t=e}),cancel:t}}}function $1(n){return function(t){return n.apply(null,t)}}function S1(n){return ue.isObject(n)&&n.isAxiosError===!0}const qc={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(qc).forEach(([n,t])=>{qc[t]=n});function gf(n){const t=new Jr(n),e=Rp(Jr.prototype.request,t);return ue.extend(e,Jr.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return gf(Zr(n,i))},e}const ln=gf(bs);ln.Axios=Jr,ln.CanceledError=Ro,ln.CancelToken=Vc,ln.isCancel=Jp,ln.VERSION=pf,ln.toFormData=Ra,ln.AxiosError=Je,ln.Cancel=ln.CanceledError,ln.all=function(n){return Promise.all(n)},ln.spread=$1,ln.isAxiosError=S1,ln.mergeConfig=Zr,ln.AxiosHeaders=Qn,ln.formToJSON=n=>Qp(ue.isHTMLForm(n)?new FormData(n):n),ln.getAdapter=hf.getAdapter,ln.HttpStatusCode=qc,ln.default=ln;const Gc=ln.create({baseURL:location.origin,timeout:6e4,params:{}});Gc.interceptors.response.use(n=>n,n=>{var t,e,i,m,g,v,w,h,f,a,c;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 s=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(s+=`${n.response.statusText} `),(i=(e=n.response)==null?void 0:e.config)!=null&&i.data&&(s+=`${n.response.config.data} `),(g=(m=n.response)==null?void 0:m.data)!=null&&g.message?s+=`${n.response.data.message}`:(w=(v=n.response)==null?void 0:v.data)!=null&&w.exception?s+=`${n.response.data.exception}`:(a=(f=(h=n.response)==null?void 0:h.data)==null?void 0:f.error)!=null&&a.message?(n.response.data.error.class&&(s+=`${n.response.data.error.class} `),s+=`${n.response.data.error.message}`):s+=`${(c=n.response)==null?void 0:c.data}`;const{$cosmosNotify:l}=window;throw l&&l.serious({title:"Network error",body:s}),n}else throw n});const Pa=async function(n,t,{data:e,params:i={},headers:m,noAuth:g=!1,noScope:v=!1,onUploadProgress:w=!1}={}){if(!g){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}m.Authorization=localStorage.openc3Token}return m.manual=!0,!v&&!i.scope&&(i.scope=window.openc3Scope),Gc({method:n,url:t,data:e,params:i,headers:m,onUploadProgress:w})},Yc={Accept:"application/json"},mf={...Yc,"Content-Type":"application/json"},Ha=Rn("O",{get:function(n,{params:t,headers:e=Yc,noScope:i,noAuth:m,onUploadProgress:g}={}){return Pa("get",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:g})},put:function(n,{data:t,params:e,headers:i=mf,noScope:m,noAuth:g,onUploadProgress:v}={}){return Pa("put",n,{data:t,params:e,headers:i,noScope:m,noAuth:g,onUploadProgress:v})},post:function(n,{data:t,params:e,headers:i=mf,noScope:m,noAuth:g,onUploadProgress:v}={}){return Pa("post",n,{data:t,params:e,headers:i,noScope:m,noAuth:g,onUploadProgress:v})},delete:function(n,{params:t,headers:e=Yc,noScope:i,noAuth:m,onUploadProgress:g}={}){return Pa("delete",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:g})}});var Ba={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Ut={log(...n){this.enabled&&(n.push(Date.now()),Ba.logger.log("[ActionCable]",...n))}};const _s=()=>new Date().getTime(),ja=n=>(_s()-n)/1e3;class za{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=_s(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Ut.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=_s(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Ut.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=_s()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Ut.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=_s(),Ut.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor,i=Math.pow(1+e,Math.min(this.reconnectAttempts,10)),m=(this.reconnectAttempts===0?1:e)*Math.random();return t*1e3*i*(1+m)}reconnectIfStale(){this.connectionIsStale()&&(Ut.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${ja(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Ut.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${ja(this.disconnectedAt)} s`):(Ut.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return ja(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&ja(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Ut.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}za.staleThreshold=6,za.reconnectionBackoffRate=.15;var vf={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:ks,protocols:Kc}=vf,C1=Kc.slice(0,Kc.length-1),yf=[].indexOf;class Qc{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new za(this),this.disconnected=!0}send(t){return this.isOpen()?(this.webSocket.send(JSON.stringify(t)),!0):!1}open(){if(this.isActive())return Ut.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...Kc,...this.consumer.subprotocols||[]];return Ut.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Ba.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Ut.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(t){Ut.log("Failed to reopen WebSocket",t)}finally{Ut.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return yf.call(C1,this.getProtocol())>=0}isState(...t){return yf.call(t,this.getState())>=0}getState(){if(this.webSocket){for(let t in Ba.WebSocket)if(Ba.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase()}return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}Qc.reopenDelay=500,Qc.prototype.events={message(n){if(!this.isProtocolSupported())return;const{identifier:t,message:e,reason:i,reconnect:m,type:g}=JSON.parse(n.data);switch(g){case ks.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case ks.disconnect:return Ut.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:m});case ks.ping:return this.monitor.recordPing();case ks.confirmation:return this.subscriptions.confirmSubscription(t),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(t,"connected",{reconnected:!0})):this.subscriptions.notify(t,"connected",{reconnected:!1});case ks.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",e)}},open(){if(Ut.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Ut.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(Ut.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Ut.log("WebSocket onerror event")}};const A1=function(n,t){if(t!=null)for(let e in t){const i=t[e];n[e]=i}return n};class M1{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),A1(this,i)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class T1{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){this.pendingSubscriptions.indexOf(t)==-1?(Ut.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):Ut.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){Ut.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(e=>e!==t)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(t=>{Ut.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)})},500)}}class E1{constructor(t){this.consumer=t,this.guarantor=new T1(this),this.subscriptions=[]}create(t,e){const i=t,m=typeof i=="object"?i:{channel:i},g=new M1(this.consumer,m,e);return this.add(g)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map(e=>(this.forget(e),this.notify(e,"rejected"),e))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(e=>e!==t),t}findAll(t){return this.subscriptions.filter(e=>e.identifier===t)}reload(){return this.subscriptions.map(t=>this.subscribe(t))}notifyAll(t,...e){return this.subscriptions.map(i=>this.notify(i,t,...e))}notify(t,e,...i){let m;return typeof t=="string"?m=this.findAll(t):m=[t],m.map(g=>typeof g[e]=="function"?g[e](...i):void 0)}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){Ut.log(`Subscription confirmed ${t}`),this.findAll(t).map(e=>this.guarantor.forget(e))}sendCommand(t,e){const{identifier:i}=t;return this.consumer.send({command:e,identifier:i})}}class R1{constructor(t){this._url=t,this.subscriptions=new E1(this),this.connection=new Qc(this),this.subprotocols=[]}get url(){return L1(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(t){this.subprotocols=[...this.subprotocols,t]}}function L1(n){if(typeof n=="function"&&(n=n()),n&&!/^wss?:/i.test(n)){const t=document.createElement("a");return t.href=n,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}else return n}function O1(n=I1("url")||vf.default_mount_path){return new R1(n)}function I1(n){const t=document.head.querySelector(`meta[name='action-cable-${n}']`);if(t)return t.getAttribute("content")}za.staleThreshold=10;let FO=Rn("D",class{constructor(n="/openc3-api/cable"){this._cable=null,this._url=n}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(n,t,e={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(m=>{if(m&&OpenC3Auth.setTokens(),this._cable==null){let g=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=O1(g)}return this._cable.subscriptions.create({channel:n,...i},e)})}recordPing(){this._cable.connection.monitor.recordPing()}});class D1{constructor(t,e,i="",m=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=i,this.url=m}}Rn("a",D1);class N1{constructor(){Qw(this,"id",1)}async exec(t,e,i={},m={},g=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,m.manual=!0,(await Gc.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...m},timeout:g})).data.result}catch(v){let w=new Error;throw v.response?(w.name=v.response.data.error.data.class,w.message=v.response.data.error.data.message,w.object=v.response.data.error):v.request?(w.name="Request error",w.message="Request error, no response received"):w.name="Unknown error",w}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(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(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...i){return this.exec("interface_cmd",[t,e,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,i){return this.exec("get_item",[t,e,i])}get_param(t,e,i){return this.exec("get_param",[t,e,i])}get_parameter(t,e,i){return this.exec("get_param",[t,e,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}async get_tlm_packet(t,e,i,m=30){const g=await this.exec("get_tlm_packet",[t,e],{type:i,stale_time:m});if(g!=null){let v=g.length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(g[h][1]),w!==null&&(g[h][1]=w)}return g}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,i=null){let m={stale_time:e};i!==null&&(m.cache_timeout=i);const g=await this.exec("get_tlm_values",[t],m,{},1e4);let v=g[0].length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(g[0][h]),w!==null&&(g[0][h]=w);return g}get_limits(t,e,i){return this.exec("get_limits",[t,e,i])}async tlm(t,e,i,m="CONVERTED"){let g=null;if(e===void 0)g=await this.exec("tlm",[t]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))g=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else g=await this.exec("tlm",[t,e,i],{type:m});let v=this.decode_openc3_type(g);return v!==null&&(g=v),g}async inject_tlm(t,e,i=null,m="CONVERTED"){data=await this.exec("inject_tlm",[t,e,i],{type:m})}set_tlm(t,e,i,m){return this.exec("set_tlm",[t,e,i],{type:m})}override_tlm(t,e,i,m){return this.exec("override_tlm",[t,e,i],{type:m})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,i,m){return this.exec("normalize_tlm",[t,e,i],{type:m})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,i,m="CONVERTED"){return this.exec("get_cmd_value",[t,e,i,m])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,i,m,g){let v=null;for(let w in m)Object.prototype.hasOwnProperty.call(m,w)&&(v=this.encode_openc3_type(m[w]),v!==null&&(m[w]=v));return this.exec(t,[e,i,m],{},g)}get_cmd_hazardous(t,e,i,m={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},m):this._cmd("get_cmd_hazardous",t,e,i,m)}cmd(t,e,i,m={}){return e===void 0?this.exec("cmd",t,{},m):this._cmd("cmd",t,e,i,m)}cmd_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_range_check",t,{},m):this._cmd("cmd_no_range_check",t,e,i,m)}cmd_raw(t,e,i,m={}){return e===void 0?this.exec("cmd_raw",t,{},m):this._cmd("cmd_raw",t,e,i,m)}cmd_raw_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},m):this._cmd("cmd_raw_no_range_check",t,e,i,m)}cmd_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},m):this._cmd("cmd_no_hazardous_check",t,e,i,m)}cmd_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_no_checks",t,{},m):this._cmd("cmd_no_checks",t,e,i,m)}cmd_raw_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},m):this._cmd("cmd_raw_no_hazardous_check",t,e,i,m)}cmd_raw_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},m):this._cmd("cmd_raw_no_checks",t,e,i,m)}build_cmd(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}build_command(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,i){return this.exec("save_config",[t,e,i])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,i){return this.exec("enable_limits",[t,e,i])}disable_limits(t,e,i){return this.exec("disable_limits",[t,e,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",e),m=new Uint8Array(i);return Array.from(m).map(g=>g.toString(16).padStart(2,"0")).join("")}}}Rn("W",N1);const F1={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="RAW")return!0;return!1},hasDecom:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(n){this.$emit("config",n)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(n){this.latestData=n}}};var Wa={exports:{}};/**
1381
+ * @license
1382
+ * Lodash <https://lodash.com/>
1383
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1384
+ * Released under MIT license <https://lodash.com/license>
1385
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1386
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1387
+ */var P1=Wa.exports,wf;function H1(){return wf||(wf=1,function(n,t){(function(){var e,i="4.17.21",m=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",f=500,a="__lodash_placeholder__",c=1,s=2,l=4,o=1,u=2,p=1,y=2,x=4,R=8,A=16,k=32,b=64,M=128,E=256,O=512,T=30,N="...",$=800,_=16,S=1,L=2,I=3,F=1/0,H=9007199254740991,W=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",M],["bind",p],["bindKey",y],["curry",R],["curryRight",A],["flip",O],["partial",k],["partialRight",b],["rearg",E]],ie="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",ye="[object Date]",fe="[object DOMException]",_e="[object Error]",it="[object Function]",Nt="[object GeneratorFunction]",lt="[object Map]",dt="[object Number]",rn="[object Null]",Lt="[object Object]",qt="[object Promise]",Wi="[object Proxy]",wn="[object RegExp]",Zt="[object Set]",De="[object String]",Pe="[object Symbol]",Jt="[object Undefined]",Be="[object WeakMap]",ce="[object WeakSet]",Ce="[object ArrayBuffer]",Te="[object DataView]",We="[object Float32Array]",qe="[object Float64Array]",ct="[object Int8Array]",ut="[object Int16Array]",ot="[object Int32Array]",st="[object Uint8Array]",et="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Fn="[object Uint32Array]",nr=/\b__p \+= '';/g,Jn=/\b(__p \+=) '' \+/g,Ps=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hs=/&(?:amp|lt|gt|quot|#39);/g,xl=/[&<>"']/g,Dh=RegExp(Hs.source),Nh=RegExp(xl.source),Fh=/<%-([\s\S]+?)%>/g,Ph=/<%([\s\S]+?)%>/g,Ne=/<%=([\s\S]+?)%>/g,ir=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cn=/^\w*$/,Ui=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vi=/[\\^$.*+?()[\]{}|]/g,Cr=RegExp(Vi.source),Pn=/^\s+/,Ar=/\s/,Mr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_l=/\{\n\/\* \[wrapped with (.+)\] \*/,kl=/,? & /,Hh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bh=/[()=,{}\[\]\/\s]/,rr=/\\(\\)?/g,jh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tr=/\w*$/,$l=/^[-+]0x[0-9a-f]+$/i,qi=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,un=/^0o[0-7]+$/i,hn=/^(?:0|[1-9]\d*)$/,qo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hn=/($^)/,lo=/['\n\r\u2028\u2029\\]/g,co="\\ud800-\\udfff",Bs="\\u0300-\\u036f",Go="\\ufe20-\\ufe2f",Er="\\u20d0-\\u20ff",Yo=Bs+Go+Er,Ko="\\u2700-\\u27bf",Qo="a-z\\xdf-\\xf6\\xf8-\\xff",js="\\xac\\xb1\\xd7\\xf7",zs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ws="\\u2000-\\u206f",Us=" \\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",bi="A-Z\\xc0-\\xd6\\xd8-\\xde",Vs="\\ufe0e\\ufe0f",qs=js+zs+Ws+Us,uo="['’]",Sl="["+co+"]",Cl="["+qs+"]",Zo="["+Yo+"]",Al="\\d+",Ml="["+Ko+"]",Gs="["+Qo+"]",Tl="[^"+co+qs+Al+Ko+Qo+bi+"]",Jo="\\ud83c[\\udffb-\\udfff]",Ys="(?:"+Zo+"|"+Jo+")",ho="[^"+co+"]",Rr="(?:\\ud83c[\\udde6-\\uddff]){2}",Ks="[\\ud800-\\udbff][\\udc00-\\udfff]",Gi="["+bi+"]",El="\\u200d",Rl="(?:"+Gs+"|"+Tl+")",zh="(?:"+Gi+"|"+Tl+")",or="(?:"+uo+"(?:d|ll|m|re|s|t|ve))?",po="(?:"+uo+"(?:D|LL|M|RE|S|T|VE))?",Xo=Ys+"?",Lr="["+Vs+"]?",Wh="(?:"+El+"(?:"+[ho,Rr,Ks].join("|")+")"+Lr+Xo+")*",Or="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Uh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qs=Lr+Xo+Wh,Zs="(?:"+[Ml,Rr,Ks].join("|")+")"+Qs,Js="(?:"+[ho+Zo+"?",Zo,Rr,Ks,Sl].join("|")+")",Xs=RegExp(uo,"g"),Ir=RegExp(Zo,"g"),Yi=RegExp(Jo+"(?="+Jo+")|"+Js+Qs,"g"),Ll=RegExp([Gi+"?"+Gs+"+"+or+"(?="+[Cl,Gi,"$"].join("|")+")",zh+"+"+po+"(?="+[Cl,Gi+Rl,"$"].join("|")+")",Gi+"?"+Rl+"+"+or,Gi+"+"+po,Uh,Or,Al,Zs].join("|"),"g"),Ol=RegExp("["+El+co+Yo+Vs+"]"),Dr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nr=["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"],Il=-1,Et={};Et[We]=Et[qe]=Et[ct]=Et[ut]=Et[ot]=Et[st]=Et[et]=Et[Bt]=Et[Fn]=!0,Et[ie]=Et[J]=Et[Ce]=Et[me]=Et[Te]=Et[ye]=Et[_e]=Et[it]=Et[lt]=Et[dt]=Et[Lt]=Et[wn]=Et[Zt]=Et[De]=Et[Be]=!1;var Fe={};Fe[ie]=Fe[J]=Fe[Ce]=Fe[Te]=Fe[me]=Fe[ye]=Fe[We]=Fe[qe]=Fe[ct]=Fe[ut]=Fe[ot]=Fe[lt]=Fe[dt]=Fe[Lt]=Fe[wn]=Fe[Zt]=Fe[De]=Fe[Pe]=Fe[st]=Fe[et]=Fe[Bt]=Fe[Fn]=!0,Fe[_e]=Fe[it]=Fe[Be]=!1;var Ft={À:"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"},Ki={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pn=parseFloat,Ot=parseInt,sr=typeof kr=="object"&&kr&&kr.Object===Object&&kr,es=typeof self=="object"&&self&&self.Object===Object&&self,_n=sr||es||Function("return this")(),xi=t&&!t.nodeType&&t,An=xi&&!0&&n&&!n.nodeType&&n,Dl=An&&An.exports===xi,ea=Dl&&sr.process,Xn=function(){try{var ne=An&&An.require&&An.require("util").types;return ne||ea&&ea.binding&&ea.binding("util")}catch{}}(),Nl=Xn&&Xn.isArrayBuffer,_i=Xn&&Xn.isDate,Oi=Xn&&Xn.isMap,Qi=Xn&&Xn.isRegExp,ar=Xn&&Xn.isSet,Fl=Xn&&Xn.isTypedArray;function zt(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 Vh(ne,le,se,ke){for(var Ie=-1,Ye=ne==null?0:ne.length;++Ie<Ye;){var St=ne[Ie];le(ke,St,se(St),ne)}return ke}function Vn(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke&&le(ne[se],se,ne)!==!1;);return ne}function Pl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Fr(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke;)if(!le(ne[se],se,ne))return!1;return!0}function ei(ne,le){for(var se=-1,ke=ne==null?0:ne.length,Ie=0,Ye=[];++se<ke;){var St=ne[se];le(St,se,ne)&&(Ye[Ie++]=St)}return Ye}function ts(ne,le){var se=ne==null?0:ne.length;return!!se&&lr(ne,le,0)>-1}function fo(ne,le,se){for(var ke=-1,Ie=ne==null?0:ne.length;++ke<Ie;)if(se(le,ne[ke]))return!0;return!1}function Pt(ne,le){for(var se=-1,ke=ne==null?0:ne.length,Ie=Array(ke);++se<ke;)Ie[se]=le(ne[se],se,ne);return Ie}function Bn(ne,le){for(var se=-1,ke=le.length,Ie=ne.length;++se<ke;)ne[Ie+se]=le[se];return ne}function ki(ne,le,se,ke){var Ie=-1,Ye=ne==null?0:ne.length;for(ke&&Ye&&(se=ne[++Ie]);++Ie<Ye;)se=le(se,ne[Ie],Ie,ne);return se}function go(ne,le,se,ke){var Ie=ne==null?0:ne.length;for(ke&&Ie&&(se=ne[--Ie]);Ie--;)se=le(se,ne[Ie],Ie,ne);return se}function ns(ne,le){for(var se=-1,ke=ne==null?0:ne.length;++se<ke;)if(le(ne[se],se,ne))return!0;return!1}var ta=sa("length");function na(ne){return ne.split("")}function is(ne){return ne.match(Hh)||[]}function ia(ne,le,se){var ke;return se(ne,function(Ie,Ye,St){if(le(Ie,Ye,St))return ke=Ye,!1}),ke}function mo(ne,le,se,ke){for(var Ie=ne.length,Ye=se+(ke?1:-1);ke?Ye--:++Ye<Ie;)if(le(ne[Ye],Ye,ne))return Ye;return-1}function lr(ne,le,se){return le===le?Ge(ne,le,se):mo(ne,ra,se)}function Hl(ne,le,se,ke){for(var Ie=se-1,Ye=ne.length;++Ie<Ye;)if(ke(ne[Ie],le))return Ie;return-1}function ra(ne){return ne!==ne}function oa(ne,le){var se=ne==null?0:ne.length;return se?Hr(ne,le)/se:V}function sa(ne){return function(le){return le==null?e:le[ne]}}function rs(ne){return function(le){return ne==null?e:ne[le]}}function aa(ne,le,se,ke,Ie){return Ie(ne,function(Ye,St,Qe){se=ke?(ke=!1,Ye):le(se,Ye,St,Qe)}),se}function Pr(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Hr(ne,le){for(var se,ke=-1,Ie=ne.length;++ke<Ie;){var Ye=le(ne[ke]);Ye!==e&&(se=se===e?Ye:se+Ye)}return se}function Xt(ne,le){for(var se=-1,ke=Array(ne);++se<ne;)ke[se]=le(se);return ke}function Bl(ne,le){return Pt(le,function(se){return[se,ne[se]]})}function Gt(ne){return ne&&ne.slice(0,Ke(ne)+1).replace(Pn,"")}function jn(ne){return function(le){return ne(le)}}function vo(ne,le){return Pt(le,function(se){return ne[se]})}function Ii(ne,le){return ne.has(le)}function jl(ne,le){for(var se=-1,ke=ne.length;++se<ke&&lr(le,ne[se],0)>-1;);return se}function zl(ne,le){for(var se=ne.length;se--&&lr(le,ne[se],0)>-1;);return se}function la(ne,le){for(var se=ne.length,ke=0;se--;)ne[se]===le&&++ke;return ke}var P=rs(Ft),j=rs(Ki);function Y(ne){return"\\"+dn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Ol.test(ne)}function oe(ne){return Dr.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(ke,Ie){se[++le]=[Ie,ke]}),se}function be(ne,le){return function(se){return ne(le(se))}}function xe(ne,le){for(var se=-1,ke=ne.length,Ie=0,Ye=[];++se<ke;){var St=ne[se];(St===le||St===a)&&(ne[se]=a,Ye[Ie++]=se)}return Ye}function $e(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(ke){se[++le]=ke}),se}function Ae(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(ke){se[++le]=[ke,ke]}),se}function Ge(ne,le,se){for(var ke=se-1,Ie=ne.length;++ke<Ie;)if(ne[ke]===le)return ke;return-1}function Mt(ne,le,se){for(var ke=se+1;ke--;)if(ne[ke]===le)return ke;return ke}function tt(ne){return te(ne)?$t(ne):ta(ne)}function Ue(ne){return te(ne)?Yt(ne):na(ne)}function Ke(ne){for(var le=ne.length;le--&&Ar.test(ne.charAt(le)););return le}var Ee=rs(xn);function $t(ne){for(var le=Yi.lastIndex=0;Yi.test(ne);)++le;return le}function Yt(ne){return ne.match(Yi)||[]}function Wt(ne){return ne.match(Ll)||[]}var It=function ne(le){le=le==null?_n:Dt.defaults(_n.Object(),le,Dt.pick(_n,Nr));var se=le.Array,ke=le.Date,Ie=le.Error,Ye=le.Function,St=le.Math,Qe=le.Object,kn=le.RegExp,qn=le.String,$n=le.TypeError,hi=se.prototype,ti=Ye.prototype,os=Qe.prototype,Wl=le["__core-js_shared__"],Ul=ti.toString,Tt=os.hasOwnProperty,TA=0,j0=function(){var r=/[^.]+$/.exec(Wl&&Wl.keys&&Wl.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Vl=os.toString,EA=Ul.call(Qe),RA=_n._,LA=kn("^"+Ul.call(Tt).replace(Vi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ql=Dl?le.Buffer:e,Br=le.Symbol,Gl=le.Uint8Array,z0=ql?ql.allocUnsafe:e,Yl=be(Qe.getPrototypeOf,Qe),W0=Qe.create,U0=os.propertyIsEnumerable,Kl=hi.splice,V0=Br?Br.isConcatSpreadable:e,ca=Br?Br.iterator:e,yo=Br?Br.toStringTag:e,Ql=function(){try{var r=ko(Qe,"defineProperty");return r({},"",{}),r}catch{}}(),OA=le.clearTimeout!==_n.clearTimeout&&le.clearTimeout,IA=ke&&ke.now!==_n.Date.now&&ke.now,DA=le.setTimeout!==_n.setTimeout&&le.setTimeout,Zl=St.ceil,Jl=St.floor,qh=Qe.getOwnPropertySymbols,NA=ql?ql.isBuffer:e,q0=le.isFinite,FA=hi.join,PA=be(Qe.keys,Qe),Sn=St.max,zn=St.min,HA=ke.now,BA=le.parseInt,G0=St.random,jA=hi.reverse,Gh=ko(le,"DataView"),ua=ko(le,"Map"),Yh=ko(le,"Promise"),ss=ko(le,"Set"),ha=ko(le,"WeakMap"),da=ko(Qe,"create"),Xl=ha&&new ha,as={},zA=$o(Gh),WA=$o(ua),UA=$o(Yh),VA=$o(ss),qA=$o(ha),ec=Br?Br.prototype:e,pa=ec?ec.valueOf:e,Y0=ec?ec.toString:e;function z(r){if(en(r)&&!Ze(r)&&!(r instanceof vt)){if(r instanceof $i)return r;if(Tt.call(r,"__wrapped__"))return Kv(r)}return new $i(r)}var ls=function(){function r(){}return function(d){if(!Kt(d))return{};if(W0)return W0(d);r.prototype=d;var C=new r;return r.prototype=e,C}}();function tc(){}function $i(r,d){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}z.templateSettings={escape:Fh,evaluate:Ph,interpolate:Ne,variable:"",imports:{_:z}},z.prototype=tc.prototype,z.prototype.constructor=z,$i.prototype=ls(tc.prototype),$i.prototype.constructor=$i;function vt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function GA(){var r=new vt(this.__wrapped__);return r.__actions__=ni(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=ni(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=ni(this.__views__),r}function YA(){if(this.__filtered__){var r=new vt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function KA(){var r=this.__wrapped__.value(),d=this.__dir__,C=Ze(r),D=d<0,B=C?r.length:0,U=aT(0,B,this.__views__),Q=U.start,ee=U.end,re=ee-Q,pe=D?ee:Q-1,ge=this.__iteratees__,ve=ge.length,Se=0,Re=zn(re,this.__takeCount__);if(!C||!D&&B==re&&Re==re)return yv(r,this.__actions__);var je=[];e:for(;re--&&Se<Re;){pe+=d;for(var rt=-1,ze=r[pe];++rt<ve;){var pt=ge[rt],yt=pt.iteratee,fi=pt.type,Kn=yt(ze);if(fi==L)ze=Kn;else if(!Kn){if(fi==S)continue e;break e}}je[Se++]=ze}return je}vt.prototype=ls(tc.prototype),vt.prototype.constructor=vt;function wo(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function QA(){this.__data__=da?da(null):{},this.size=0}function ZA(r){var d=this.has(r)&&delete this.__data__[r];return this.size-=d?1:0,d}function JA(r){var d=this.__data__;if(da){var C=d[r];return C===h?e:C}return Tt.call(d,r)?d[r]:e}function XA(r){var d=this.__data__;return da?d[r]!==e:Tt.call(d,r)}function eM(r,d){var C=this.__data__;return this.size+=this.has(r)?0:1,C[r]=da&&d===e?h:d,this}wo.prototype.clear=QA,wo.prototype.delete=ZA,wo.prototype.get=JA,wo.prototype.has=XA,wo.prototype.set=eM;function cr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function tM(){this.__data__=[],this.size=0}function nM(r){var d=this.__data__,C=nc(d,r);if(C<0)return!1;var D=d.length-1;return C==D?d.pop():Kl.call(d,C,1),--this.size,!0}function iM(r){var d=this.__data__,C=nc(d,r);return C<0?e:d[C][1]}function rM(r){return nc(this.__data__,r)>-1}function oM(r,d){var C=this.__data__,D=nc(C,r);return D<0?(++this.size,C.push([r,d])):C[D][1]=d,this}cr.prototype.clear=tM,cr.prototype.delete=nM,cr.prototype.get=iM,cr.prototype.has=rM,cr.prototype.set=oM;function ur(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var D=r[d];this.set(D[0],D[1])}}function sM(){this.size=0,this.__data__={hash:new wo,map:new(ua||cr),string:new wo}}function aM(r){var d=fc(this,r).delete(r);return this.size-=d?1:0,d}function lM(r){return fc(this,r).get(r)}function cM(r){return fc(this,r).has(r)}function uM(r,d){var C=fc(this,r),D=C.size;return C.set(r,d),this.size+=C.size==D?0:1,this}ur.prototype.clear=sM,ur.prototype.delete=aM,ur.prototype.get=lM,ur.prototype.has=cM,ur.prototype.set=uM;function bo(r){var d=-1,C=r==null?0:r.length;for(this.__data__=new ur;++d<C;)this.add(r[d])}function hM(r){return this.__data__.set(r,h),this}function dM(r){return this.__data__.has(r)}bo.prototype.add=bo.prototype.push=hM,bo.prototype.has=dM;function Di(r){var d=this.__data__=new cr(r);this.size=d.size}function pM(){this.__data__=new cr,this.size=0}function fM(r){var d=this.__data__,C=d.delete(r);return this.size=d.size,C}function gM(r){return this.__data__.get(r)}function mM(r){return this.__data__.has(r)}function vM(r,d){var C=this.__data__;if(C instanceof cr){var D=C.__data__;if(!ua||D.length<m-1)return D.push([r,d]),this.size=++C.size,this;C=this.__data__=new ur(D)}return C.set(r,d),this.size=C.size,this}Di.prototype.clear=pM,Di.prototype.delete=fM,Di.prototype.get=gM,Di.prototype.has=mM,Di.prototype.set=vM;function K0(r,d){var C=Ze(r),D=!C&&So(r),B=!C&&!D&&Vr(r),U=!C&&!D&&!B&&ds(r),Q=C||D||B||U,ee=Q?Xt(r.length,qn):[],re=ee.length;for(var pe in r)(d||Tt.call(r,pe))&&!(Q&&(pe=="length"||B&&(pe=="offset"||pe=="parent")||U&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||fr(pe,re)))&&ee.push(pe);return ee}function Q0(r){var d=r.length;return d?r[od(0,d-1)]:e}function yM(r,d){return gc(ni(r),xo(d,0,r.length))}function wM(r){return gc(ni(r))}function Kh(r,d,C){(C!==e&&!Ni(r[d],C)||C===e&&!(d in r))&&hr(r,d,C)}function fa(r,d,C){var D=r[d];(!(Tt.call(r,d)&&Ni(D,C))||C===e&&!(d in r))&&hr(r,d,C)}function nc(r,d){for(var C=r.length;C--;)if(Ni(r[C][0],d))return C;return-1}function bM(r,d,C,D){return jr(r,function(B,U,Q){d(D,B,C(B),Q)}),D}function Z0(r,d){return r&&Ji(d,Mn(d),r)}function xM(r,d){return r&&Ji(d,ri(d),r)}function hr(r,d,C){d=="__proto__"&&Ql?Ql(r,d,{configurable:!0,enumerable:!0,value:C,writable:!0}):r[d]=C}function Qh(r,d){for(var C=-1,D=d.length,B=se(D),U=r==null;++C<D;)B[C]=U?e:Ed(r,d[C]);return B}function xo(r,d,C){return r===r&&(C!==e&&(r=r<=C?r:C),d!==e&&(r=r>=d?r:d)),r}function Si(r,d,C,D,B,U){var Q,ee=d&c,re=d&s,pe=d&l;if(C&&(Q=B?C(r,D,B,U):C(r)),Q!==e)return Q;if(!Kt(r))return r;var ge=Ze(r);if(ge){if(Q=cT(r),!ee)return ni(r,Q)}else{var ve=Wn(r),Se=ve==it||ve==Nt;if(Vr(r))return xv(r,ee);if(ve==Lt||ve==ie||Se&&!B){if(Q=re||Se?{}:Bv(r),!ee)return re?JM(r,xM(Q,r)):ZM(r,Z0(Q,r))}else{if(!Fe[ve])return B?r:{};Q=uT(r,ve,ee)}}U||(U=new Di);var Re=U.get(r);if(Re)return Re;U.set(r,Q),gy(r)?r.forEach(function(ze){Q.add(Si(ze,d,C,ze,r,U))}):py(r)&&r.forEach(function(ze,pt){Q.set(pt,Si(ze,d,C,pt,r,U))});var je=pe?re?md:gd:re?ri:Mn,rt=ge?e:je(r);return Vn(rt||r,function(ze,pt){rt&&(pt=ze,ze=r[pt]),fa(Q,pt,Si(ze,d,C,pt,r,U))}),Q}function _M(r){var d=Mn(r);return function(C){return J0(C,r,d)}}function J0(r,d,C){var D=C.length;if(r==null)return!D;for(r=Qe(r);D--;){var B=C[D],U=d[B],Q=r[B];if(Q===e&&!(B in r)||!U(Q))return!1}return!0}function X0(r,d,C){if(typeof r!="function")throw new $n(v);return xa(function(){r.apply(e,C)},d)}function ga(r,d,C,D){var B=-1,U=ts,Q=!0,ee=r.length,re=[],pe=d.length;if(!ee)return re;C&&(d=Pt(d,jn(C))),D?(U=fo,Q=!1):d.length>=m&&(U=Ii,Q=!1,d=new bo(d));e:for(;++B<ee;){var ge=r[B],ve=C==null?ge:C(ge);if(ge=D||ge!==0?ge:0,Q&&ve===ve){for(var Se=pe;Se--;)if(d[Se]===ve)continue e;re.push(ge)}else U(d,ve,D)||re.push(ge)}return re}var jr=Cv(Zi),ev=Cv(Jh,!0);function kM(r,d){var C=!0;return jr(r,function(D,B,U){return C=!!d(D,B,U),C}),C}function ic(r,d,C){for(var D=-1,B=r.length;++D<B;){var U=r[D],Q=d(U);if(Q!=null&&(ee===e?Q===Q&&!pi(Q):C(Q,ee)))var ee=Q,re=U}return re}function $M(r,d,C,D){var B=r.length;for(C=nt(C),C<0&&(C=-C>B?0:B+C),D=D===e||D>B?B:nt(D),D<0&&(D+=B),D=C>D?0:vy(D);C<D;)r[C++]=d;return r}function tv(r,d){var C=[];return jr(r,function(D,B,U){d(D,B,U)&&C.push(D)}),C}function En(r,d,C,D,B){var U=-1,Q=r.length;for(C||(C=dT),B||(B=[]);++U<Q;){var ee=r[U];d>0&&C(ee)?d>1?En(ee,d-1,C,D,B):Bn(B,ee):D||(B[B.length]=ee)}return B}var Zh=Av(),nv=Av(!0);function Zi(r,d){return r&&Zh(r,d,Mn)}function Jh(r,d){return r&&nv(r,d,Mn)}function rc(r,d){return ei(d,function(C){return gr(r[C])})}function _o(r,d){d=Wr(d,r);for(var C=0,D=d.length;r!=null&&C<D;)r=r[Xi(d[C++])];return C&&C==D?r:e}function iv(r,d,C){var D=d(r);return Ze(r)?D:Bn(D,C(r))}function Gn(r){return r==null?r===e?Jt:rn:yo&&yo in Qe(r)?sT(r):wT(r)}function Xh(r,d){return r>d}function SM(r,d){return r!=null&&Tt.call(r,d)}function CM(r,d){return r!=null&&d in Qe(r)}function AM(r,d,C){return r>=zn(d,C)&&r<Sn(d,C)}function ed(r,d,C){for(var D=C?fo:ts,B=r[0].length,U=r.length,Q=U,ee=se(U),re=1/0,pe=[];Q--;){var ge=r[Q];Q&&d&&(ge=Pt(ge,jn(d))),re=zn(ge.length,re),ee[Q]=!C&&(d||B>=120&&ge.length>=120)?new bo(Q&&ge):e}ge=r[0];var ve=-1,Se=ee[0];e:for(;++ve<B&&pe.length<re;){var Re=ge[ve],je=d?d(Re):Re;if(Re=C||Re!==0?Re:0,!(Se?Ii(Se,je):D(pe,je,C))){for(Q=U;--Q;){var rt=ee[Q];if(!(rt?Ii(rt,je):D(r[Q],je,C)))continue e}Se&&Se.push(je),pe.push(Re)}}return pe}function MM(r,d,C,D){return Zi(r,function(B,U,Q){d(D,C(B),U,Q)}),D}function ma(r,d,C){d=Wr(d,r),r=Uv(r,d);var D=r==null?r:r[Xi(Ai(d))];return D==null?e:zt(D,r,C)}function rv(r){return en(r)&&Gn(r)==ie}function TM(r){return en(r)&&Gn(r)==Ce}function EM(r){return en(r)&&Gn(r)==ye}function va(r,d,C,D,B){return r===d?!0:r==null||d==null||!en(r)&&!en(d)?r!==r&&d!==d:RM(r,d,C,D,va,B)}function RM(r,d,C,D,B,U){var Q=Ze(r),ee=Ze(d),re=Q?J:Wn(r),pe=ee?J:Wn(d);re=re==ie?Lt:re,pe=pe==ie?Lt:pe;var ge=re==Lt,ve=pe==Lt,Se=re==pe;if(Se&&Vr(r)){if(!Vr(d))return!1;Q=!0,ge=!1}if(Se&&!ge)return U||(U=new Di),Q||ds(r)?Fv(r,d,C,D,B,U):rT(r,d,re,C,D,B,U);if(!(C&o)){var Re=ge&&Tt.call(r,"__wrapped__"),je=ve&&Tt.call(d,"__wrapped__");if(Re||je){var rt=Re?r.value():r,ze=je?d.value():d;return U||(U=new Di),B(rt,ze,C,D,U)}}return Se?(U||(U=new Di),oT(r,d,C,D,B,U)):!1}function LM(r){return en(r)&&Wn(r)==lt}function td(r,d,C,D){var B=C.length,U=B,Q=!D;if(r==null)return!U;for(r=Qe(r);B--;){var ee=C[B];if(Q&&ee[2]?ee[1]!==r[ee[0]]:!(ee[0]in r))return!1}for(;++B<U;){ee=C[B];var re=ee[0],pe=r[re],ge=ee[1];if(Q&&ee[2]){if(pe===e&&!(re in r))return!1}else{var ve=new Di;if(D)var Se=D(pe,ge,re,r,d,ve);if(!(Se===e?va(ge,pe,o|u,D,ve):Se))return!1}}return!0}function ov(r){if(!Kt(r)||fT(r))return!1;var d=gr(r)?LA:bn;return d.test($o(r))}function OM(r){return en(r)&&Gn(r)==wn}function IM(r){return en(r)&&Wn(r)==Zt}function DM(r){return en(r)&&xc(r.length)&&!!Et[Gn(r)]}function sv(r){return typeof r=="function"?r:r==null?oi:typeof r=="object"?Ze(r)?cv(r[0],r[1]):lv(r):My(r)}function nd(r){if(!ba(r))return PA(r);var d=[];for(var C in Qe(r))Tt.call(r,C)&&C!="constructor"&&d.push(C);return d}function NM(r){if(!Kt(r))return yT(r);var d=ba(r),C=[];for(var D in r)D=="constructor"&&(d||!Tt.call(r,D))||C.push(D);return C}function id(r,d){return r<d}function av(r,d){var C=-1,D=ii(r)?se(r.length):[];return jr(r,function(B,U,Q){D[++C]=d(B,U,Q)}),D}function lv(r){var d=yd(r);return d.length==1&&d[0][2]?zv(d[0][0],d[0][1]):function(C){return C===r||td(C,r,d)}}function cv(r,d){return bd(r)&&jv(d)?zv(Xi(r),d):function(C){var D=Ed(C,r);return D===e&&D===d?Rd(C,r):va(d,D,o|u)}}function oc(r,d,C,D,B){r!==d&&Zh(d,function(U,Q){if(B||(B=new Di),Kt(U))FM(r,d,Q,C,oc,D,B);else{var ee=D?D(_d(r,Q),U,Q+"",r,d,B):e;ee===e&&(ee=U),Kh(r,Q,ee)}},ri)}function FM(r,d,C,D,B,U,Q){var ee=_d(r,C),re=_d(d,C),pe=Q.get(re);if(pe){Kh(r,C,pe);return}var ge=U?U(ee,re,C+"",r,d,Q):e,ve=ge===e;if(ve){var Se=Ze(re),Re=!Se&&Vr(re),je=!Se&&!Re&&ds(re);ge=re,Se||Re||je?Ze(ee)?ge=ee:on(ee)?ge=ni(ee):Re?(ve=!1,ge=xv(re,!0)):je?(ve=!1,ge=_v(re,!0)):ge=[]:_a(re)||So(re)?(ge=ee,So(ee)?ge=yy(ee):(!Kt(ee)||gr(ee))&&(ge=Bv(re))):ve=!1}ve&&(Q.set(re,ge),B(ge,re,D,U,Q),Q.delete(re)),Kh(r,C,ge)}function uv(r,d){var C=r.length;if(C)return d+=d<0?C:0,fr(d,C)?r[d]:e}function hv(r,d,C){d.length?d=Pt(d,function(U){return Ze(U)?function(Q){return _o(Q,U.length===1?U[0]:U)}:U}):d=[oi];var D=-1;d=Pt(d,jn(He()));var B=av(r,function(U,Q,ee){var re=Pt(d,function(pe){return pe(U)});return{criteria:re,index:++D,value:U}});return Pr(B,function(U,Q){return QM(U,Q,C)})}function PM(r,d){return dv(r,d,function(C,D){return Rd(r,D)})}function dv(r,d,C){for(var D=-1,B=d.length,U={};++D<B;){var Q=d[D],ee=_o(r,Q);C(ee,Q)&&ya(U,Wr(Q,r),ee)}return U}function HM(r){return function(d){return _o(d,r)}}function rd(r,d,C,D){var B=D?Hl:lr,U=-1,Q=d.length,ee=r;for(r===d&&(d=ni(d)),C&&(ee=Pt(r,jn(C)));++U<Q;)for(var re=0,pe=d[U],ge=C?C(pe):pe;(re=B(ee,ge,re,D))>-1;)ee!==r&&Kl.call(ee,re,1),Kl.call(r,re,1);return r}function pv(r,d){for(var C=r?d.length:0,D=C-1;C--;){var B=d[C];if(C==D||B!==U){var U=B;fr(B)?Kl.call(r,B,1):ld(r,B)}}return r}function od(r,d){return r+Jl(G0()*(d-r+1))}function BM(r,d,C,D){for(var B=-1,U=Sn(Zl((d-r)/(C||1)),0),Q=se(U);U--;)Q[D?U:++B]=r,r+=C;return Q}function sd(r,d){var C="";if(!r||d<1||d>H)return C;do d%2&&(C+=r),d=Jl(d/2),d&&(r+=r);while(d);return C}function at(r,d){return kd(Wv(r,d,oi),r+"")}function jM(r){return Q0(ps(r))}function zM(r,d){var C=ps(r);return gc(C,xo(d,0,C.length))}function ya(r,d,C,D){if(!Kt(r))return r;d=Wr(d,r);for(var B=-1,U=d.length,Q=U-1,ee=r;ee!=null&&++B<U;){var re=Xi(d[B]),pe=C;if(re==="__proto__"||re==="constructor"||re==="prototype")return r;if(B!=Q){var ge=ee[re];pe=D?D(ge,re,ee):e,pe===e&&(pe=Kt(ge)?ge:fr(d[B+1])?[]:{})}fa(ee,re,pe),ee=ee[re]}return r}var fv=Xl?function(r,d){return Xl.set(r,d),r}:oi,WM=Ql?function(r,d){return Ql(r,"toString",{configurable:!0,enumerable:!1,value:Od(d),writable:!0})}:oi;function UM(r){return gc(ps(r))}function Ci(r,d,C){var D=-1,B=r.length;d<0&&(d=-d>B?0:B+d),C=C>B?B:C,C<0&&(C+=B),B=d>C?0:C-d>>>0,d>>>=0;for(var U=se(B);++D<B;)U[D]=r[D+d];return U}function VM(r,d){var C;return jr(r,function(D,B,U){return C=d(D,B,U),!C}),!!C}function sc(r,d,C){var D=0,B=r==null?D:r.length;if(typeof d=="number"&&d===d&&B<=G){for(;D<B;){var U=D+B>>>1,Q=r[U];Q!==null&&!pi(Q)&&(C?Q<=d:Q<d)?D=U+1:B=U}return B}return ad(r,d,oi,C)}function ad(r,d,C,D){var B=0,U=r==null?0:r.length;if(U===0)return 0;d=C(d);for(var Q=d!==d,ee=d===null,re=pi(d),pe=d===e;B<U;){var ge=Jl((B+U)/2),ve=C(r[ge]),Se=ve!==e,Re=ve===null,je=ve===ve,rt=pi(ve);if(Q)var ze=D||je;else pe?ze=je&&(D||Se):ee?ze=je&&Se&&(D||!Re):re?ze=je&&Se&&!Re&&(D||!rt):Re||rt?ze=!1:ze=D?ve<=d:ve<d;ze?B=ge+1:U=ge}return zn(U,X)}function gv(r,d){for(var C=-1,D=r.length,B=0,U=[];++C<D;){var Q=r[C],ee=d?d(Q):Q;if(!C||!Ni(ee,re)){var re=ee;U[B++]=Q===0?0:Q}}return U}function mv(r){return typeof r=="number"?r:pi(r)?V:+r}function di(r){if(typeof r=="string")return r;if(Ze(r))return Pt(r,di)+"";if(pi(r))return Y0?Y0.call(r):"";var d=r+"";return d=="0"&&1/r==-F?"-0":d}function zr(r,d,C){var D=-1,B=ts,U=r.length,Q=!0,ee=[],re=ee;if(C)Q=!1,B=fo;else if(U>=m){var pe=d?null:nT(r);if(pe)return $e(pe);Q=!1,B=Ii,re=new bo}else re=d?[]:ee;e:for(;++D<U;){var ge=r[D],ve=d?d(ge):ge;if(ge=C||ge!==0?ge:0,Q&&ve===ve){for(var Se=re.length;Se--;)if(re[Se]===ve)continue e;d&&re.push(ve),ee.push(ge)}else B(re,ve,C)||(re!==ee&&re.push(ve),ee.push(ge))}return ee}function ld(r,d){return d=Wr(d,r),r=Uv(r,d),r==null||delete r[Xi(Ai(d))]}function vv(r,d,C,D){return ya(r,d,C(_o(r,d)),D)}function ac(r,d,C,D){for(var B=r.length,U=D?B:-1;(D?U--:++U<B)&&d(r[U],U,r););return C?Ci(r,D?0:U,D?U+1:B):Ci(r,D?U+1:0,D?B:U)}function yv(r,d){var C=r;return C instanceof vt&&(C=C.value()),ki(d,function(D,B){return B.func.apply(B.thisArg,Bn([D],B.args))},C)}function cd(r,d,C){var D=r.length;if(D<2)return D?zr(r[0]):[];for(var B=-1,U=se(D);++B<D;)for(var Q=r[B],ee=-1;++ee<D;)ee!=B&&(U[B]=ga(U[B]||Q,r[ee],d,C));return zr(En(U,1),d,C)}function wv(r,d,C){for(var D=-1,B=r.length,U=d.length,Q={};++D<B;){var ee=D<U?d[D]:e;C(Q,r[D],ee)}return Q}function ud(r){return on(r)?r:[]}function hd(r){return typeof r=="function"?r:oi}function Wr(r,d){return Ze(r)?r:bd(r,d)?[r]:Yv(Ct(r))}var qM=at;function Ur(r,d,C){var D=r.length;return C=C===e?D:C,!d&&C>=D?r:Ci(r,d,C)}var bv=OA||function(r){return _n.clearTimeout(r)};function xv(r,d){if(d)return r.slice();var C=r.length,D=z0?z0(C):new r.constructor(C);return r.copy(D),D}function dd(r){var d=new r.constructor(r.byteLength);return new Gl(d).set(new Gl(r)),d}function GM(r,d){var C=d?dd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.byteLength)}function YM(r){var d=new r.constructor(r.source,Tr.exec(r));return d.lastIndex=r.lastIndex,d}function KM(r){return pa?Qe(pa.call(r)):{}}function _v(r,d){var C=d?dd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.length)}function kv(r,d){if(r!==d){var C=r!==e,D=r===null,B=r===r,U=pi(r),Q=d!==e,ee=d===null,re=d===d,pe=pi(d);if(!ee&&!pe&&!U&&r>d||U&&Q&&re&&!ee&&!pe||D&&Q&&re||!C&&re||!B)return 1;if(!D&&!U&&!pe&&r<d||pe&&C&&B&&!D&&!U||ee&&C&&B||!Q&&B||!re)return-1}return 0}function QM(r,d,C){for(var D=-1,B=r.criteria,U=d.criteria,Q=B.length,ee=C.length;++D<Q;){var re=kv(B[D],U[D]);if(re){if(D>=ee)return re;var pe=C[D];return re*(pe=="desc"?-1:1)}}return r.index-d.index}function $v(r,d,C,D){for(var B=-1,U=r.length,Q=C.length,ee=-1,re=d.length,pe=Sn(U-Q,0),ge=se(re+pe),ve=!D;++ee<re;)ge[ee]=d[ee];for(;++B<Q;)(ve||B<U)&&(ge[C[B]]=r[B]);for(;pe--;)ge[ee++]=r[B++];return ge}function Sv(r,d,C,D){for(var B=-1,U=r.length,Q=-1,ee=C.length,re=-1,pe=d.length,ge=Sn(U-ee,0),ve=se(ge+pe),Se=!D;++B<ge;)ve[B]=r[B];for(var Re=B;++re<pe;)ve[Re+re]=d[re];for(;++Q<ee;)(Se||B<U)&&(ve[Re+C[Q]]=r[B++]);return ve}function ni(r,d){var C=-1,D=r.length;for(d||(d=se(D));++C<D;)d[C]=r[C];return d}function Ji(r,d,C,D){var B=!C;C||(C={});for(var U=-1,Q=d.length;++U<Q;){var ee=d[U],re=D?D(C[ee],r[ee],ee,C,r):e;re===e&&(re=r[ee]),B?hr(C,ee,re):fa(C,ee,re)}return C}function ZM(r,d){return Ji(r,wd(r),d)}function JM(r,d){return Ji(r,Pv(r),d)}function lc(r,d){return function(C,D){var B=Ze(C)?Vh:bM,U=d?d():{};return B(C,r,He(D,2),U)}}function cs(r){return at(function(d,C){var D=-1,B=C.length,U=B>1?C[B-1]:e,Q=B>2?C[2]:e;for(U=r.length>3&&typeof U=="function"?(B--,U):e,Q&&Yn(C[0],C[1],Q)&&(U=B<3?e:U,B=1),d=Qe(d);++D<B;){var ee=C[D];ee&&r(d,ee,D,U)}return d})}function Cv(r,d){return function(C,D){if(C==null)return C;if(!ii(C))return r(C,D);for(var B=C.length,U=d?B:-1,Q=Qe(C);(d?U--:++U<B)&&D(Q[U],U,Q)!==!1;);return C}}function Av(r){return function(d,C,D){for(var B=-1,U=Qe(d),Q=D(d),ee=Q.length;ee--;){var re=Q[r?ee:++B];if(C(U[re],re,U)===!1)break}return d}}function XM(r,d,C){var D=d&p,B=wa(r);function U(){var Q=this&&this!==_n&&this instanceof U?B:r;return Q.apply(D?C:this,arguments)}return U}function Mv(r){return function(d){d=Ct(d);var C=te(d)?Ue(d):e,D=C?C[0]:d.charAt(0),B=C?Ur(C,1).join(""):d.slice(1);return D[r]()+B}}function us(r){return function(d){return ki(Cy(Sy(d).replace(Xs,"")),r,"")}}function wa(r){return function(){var d=arguments;switch(d.length){case 0:return new r;case 1:return new r(d[0]);case 2:return new r(d[0],d[1]);case 3:return new r(d[0],d[1],d[2]);case 4:return new r(d[0],d[1],d[2],d[3]);case 5:return new r(d[0],d[1],d[2],d[3],d[4]);case 6:return new r(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new r(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var C=ls(r.prototype),D=r.apply(C,d);return Kt(D)?D:C}}function eT(r,d,C){var D=wa(r);function B(){for(var U=arguments.length,Q=se(U),ee=U,re=hs(B);ee--;)Q[ee]=arguments[ee];var pe=U<3&&Q[0]!==re&&Q[U-1]!==re?[]:xe(Q,re);if(U-=pe.length,U<C)return Ov(r,d,cc,B.placeholder,e,Q,pe,e,e,C-U);var ge=this&&this!==_n&&this instanceof B?D:r;return zt(ge,this,Q)}return B}function Tv(r){return function(d,C,D){var B=Qe(d);if(!ii(d)){var U=He(C,3);d=Mn(d),C=function(ee){return U(B[ee],ee,B)}}var Q=r(d,C,D);return Q>-1?B[U?d[Q]:Q]:e}}function Ev(r){return pr(function(d){var C=d.length,D=C,B=$i.prototype.thru;for(r&&d.reverse();D--;){var U=d[D];if(typeof U!="function")throw new $n(v);if(B&&!Q&&pc(U)=="wrapper")var Q=new $i([],!0)}for(D=Q?D:C;++D<C;){U=d[D];var ee=pc(U),re=ee=="wrapper"?vd(U):e;re&&xd(re[0])&&re[1]==(M|R|k|E)&&!re[4].length&&re[9]==1?Q=Q[pc(re[0])].apply(Q,re[3]):Q=U.length==1&&xd(U)?Q[ee]():Q.thru(U)}return function(){var pe=arguments,ge=pe[0];if(Q&&pe.length==1&&Ze(ge))return Q.plant(ge).value();for(var ve=0,Se=C?d[ve].apply(this,pe):ge;++ve<C;)Se=d[ve].call(this,Se);return Se}})}function cc(r,d,C,D,B,U,Q,ee,re,pe){var ge=d&M,ve=d&p,Se=d&y,Re=d&(R|A),je=d&O,rt=Se?e:wa(r);function ze(){for(var pt=arguments.length,yt=se(pt),fi=pt;fi--;)yt[fi]=arguments[fi];if(Re)var Kn=hs(ze),gi=la(yt,Kn);if(D&&(yt=$v(yt,D,B,Re)),U&&(yt=Sv(yt,U,Q,Re)),pt-=gi,Re&&pt<pe){var sn=xe(yt,Kn);return Ov(r,d,cc,ze.placeholder,C,yt,sn,ee,re,pe-pt)}var Fi=ve?C:this,vr=Se?Fi[r]:r;return pt=yt.length,ee?yt=bT(yt,ee):je&&pt>1&&yt.reverse(),ge&&re<pt&&(yt.length=re),this&&this!==_n&&this instanceof ze&&(vr=rt||wa(vr)),vr.apply(Fi,yt)}return ze}function Rv(r,d){return function(C,D){return MM(C,r,d(D),{})}}function uc(r,d){return function(C,D){var B;if(C===e&&D===e)return d;if(C!==e&&(B=C),D!==e){if(B===e)return D;typeof C=="string"||typeof D=="string"?(C=di(C),D=di(D)):(C=mv(C),D=mv(D)),B=r(C,D)}return B}}function pd(r){return pr(function(d){return d=Pt(d,jn(He())),at(function(C){var D=this;return r(d,function(B){return zt(B,D,C)})})})}function hc(r,d){d=d===e?" ":di(d);var C=d.length;if(C<2)return C?sd(d,r):d;var D=sd(d,Zl(r/tt(d)));return te(d)?Ur(Ue(D),0,r).join(""):D.slice(0,r)}function tT(r,d,C,D){var B=d&p,U=wa(r);function Q(){for(var ee=-1,re=arguments.length,pe=-1,ge=D.length,ve=se(ge+re),Se=this&&this!==_n&&this instanceof Q?U:r;++pe<ge;)ve[pe]=D[pe];for(;re--;)ve[pe++]=arguments[++ee];return zt(Se,B?C:this,ve)}return Q}function Lv(r){return function(d,C,D){return D&&typeof D!="number"&&Yn(d,C,D)&&(C=D=e),d=mr(d),C===e?(C=d,d=0):C=mr(C),D=D===e?d<C?1:-1:mr(D),BM(d,C,D,r)}}function dc(r){return function(d,C){return typeof d=="string"&&typeof C=="string"||(d=Mi(d),C=Mi(C)),r(d,C)}}function Ov(r,d,C,D,B,U,Q,ee,re,pe){var ge=d&R,ve=ge?Q:e,Se=ge?e:Q,Re=ge?U:e,je=ge?e:U;d|=ge?k:b,d&=~(ge?b:k),d&x||(d&=~(p|y));var rt=[r,d,B,Re,ve,je,Se,ee,re,pe],ze=C.apply(e,rt);return xd(r)&&Vv(ze,rt),ze.placeholder=D,qv(ze,r,d)}function fd(r){var d=St[r];return function(C,D){if(C=Mi(C),D=D==null?0:zn(nt(D),292),D&&q0(C)){var B=(Ct(C)+"e").split("e"),U=d(B[0]+"e"+(+B[1]+D));return B=(Ct(U)+"e").split("e"),+(B[0]+"e"+(+B[1]-D))}return d(C)}}var nT=ss&&1/$e(new ss([,-0]))[1]==F?function(r){return new ss(r)}:Nd;function Iv(r){return function(d){var C=Wn(d);return C==lt?we(d):C==Zt?Ae(d):Bl(d,r(d))}}function dr(r,d,C,D,B,U,Q,ee){var re=d&y;if(!re&&typeof r!="function")throw new $n(v);var pe=D?D.length:0;if(pe||(d&=~(k|b),D=B=e),Q=Q===e?Q:Sn(nt(Q),0),ee=ee===e?ee:nt(ee),pe-=B?B.length:0,d&b){var ge=D,ve=B;D=B=e}var Se=re?e:vd(r),Re=[r,d,C,D,B,ge,ve,U,Q,ee];if(Se&&vT(Re,Se),r=Re[0],d=Re[1],C=Re[2],D=Re[3],B=Re[4],ee=Re[9]=Re[9]===e?re?0:r.length:Sn(Re[9]-pe,0),!ee&&d&(R|A)&&(d&=~(R|A)),!d||d==p)var je=XM(r,d,C);else d==R||d==A?je=eT(r,d,ee):(d==k||d==(p|k))&&!B.length?je=tT(r,d,C,D):je=cc.apply(e,Re);var rt=Se?fv:Vv;return qv(rt(je,Re),r,d)}function Dv(r,d,C,D){return r===e||Ni(r,os[C])&&!Tt.call(D,C)?d:r}function Nv(r,d,C,D,B,U){return Kt(r)&&Kt(d)&&(U.set(d,r),oc(r,d,e,Nv,U),U.delete(d)),r}function iT(r){return _a(r)?e:r}function Fv(r,d,C,D,B,U){var Q=C&o,ee=r.length,re=d.length;if(ee!=re&&!(Q&&re>ee))return!1;var pe=U.get(r),ge=U.get(d);if(pe&&ge)return pe==d&&ge==r;var ve=-1,Se=!0,Re=C&u?new bo:e;for(U.set(r,d),U.set(d,r);++ve<ee;){var je=r[ve],rt=d[ve];if(D)var ze=Q?D(rt,je,ve,d,r,U):D(je,rt,ve,r,d,U);if(ze!==e){if(ze)continue;Se=!1;break}if(Re){if(!ns(d,function(pt,yt){if(!Ii(Re,yt)&&(je===pt||B(je,pt,C,D,U)))return Re.push(yt)})){Se=!1;break}}else if(!(je===rt||B(je,rt,C,D,U))){Se=!1;break}}return U.delete(r),U.delete(d),Se}function rT(r,d,C,D,B,U,Q){switch(C){case Te:if(r.byteLength!=d.byteLength||r.byteOffset!=d.byteOffset)return!1;r=r.buffer,d=d.buffer;case Ce:return!(r.byteLength!=d.byteLength||!U(new Gl(r),new Gl(d)));case me:case ye:case dt:return Ni(+r,+d);case _e:return r.name==d.name&&r.message==d.message;case wn:case De:return r==d+"";case lt:var ee=we;case Zt:var re=D&o;if(ee||(ee=$e),r.size!=d.size&&!re)return!1;var pe=Q.get(r);if(pe)return pe==d;D|=u,Q.set(r,d);var ge=Fv(ee(r),ee(d),D,B,U,Q);return Q.delete(r),ge;case Pe:if(pa)return pa.call(r)==pa.call(d)}return!1}function oT(r,d,C,D,B,U){var Q=C&o,ee=gd(r),re=ee.length,pe=gd(d),ge=pe.length;if(re!=ge&&!Q)return!1;for(var ve=re;ve--;){var Se=ee[ve];if(!(Q?Se in d:Tt.call(d,Se)))return!1}var Re=U.get(r),je=U.get(d);if(Re&&je)return Re==d&&je==r;var rt=!0;U.set(r,d),U.set(d,r);for(var ze=Q;++ve<re;){Se=ee[ve];var pt=r[Se],yt=d[Se];if(D)var fi=Q?D(yt,pt,Se,d,r,U):D(pt,yt,Se,r,d,U);if(!(fi===e?pt===yt||B(pt,yt,C,D,U):fi)){rt=!1;break}ze||(ze=Se=="constructor")}if(rt&&!ze){var Kn=r.constructor,gi=d.constructor;Kn!=gi&&"constructor"in r&&"constructor"in d&&!(typeof Kn=="function"&&Kn instanceof Kn&&typeof gi=="function"&&gi instanceof gi)&&(rt=!1)}return U.delete(r),U.delete(d),rt}function pr(r){return kd(Wv(r,e,Jv),r+"")}function gd(r){return iv(r,Mn,wd)}function md(r){return iv(r,ri,Pv)}var vd=Xl?function(r){return Xl.get(r)}:Nd;function pc(r){for(var d=r.name+"",C=as[d],D=Tt.call(as,d)?C.length:0;D--;){var B=C[D],U=B.func;if(U==null||U==r)return B.name}return d}function hs(r){var d=Tt.call(z,"placeholder")?z:r;return d.placeholder}function He(){var r=z.iteratee||Id;return r=r===Id?sv:r,arguments.length?r(arguments[0],arguments[1]):r}function fc(r,d){var C=r.__data__;return pT(d)?C[typeof d=="string"?"string":"hash"]:C.map}function yd(r){for(var d=Mn(r),C=d.length;C--;){var D=d[C],B=r[D];d[C]=[D,B,jv(B)]}return d}function ko(r,d){var C=K(r,d);return ov(C)?C:e}function sT(r){var d=Tt.call(r,yo),C=r[yo];try{r[yo]=e;var D=!0}catch{}var B=Vl.call(r);return D&&(d?r[yo]=C:delete r[yo]),B}var wd=qh?function(r){return r==null?[]:(r=Qe(r),ei(qh(r),function(d){return U0.call(r,d)}))}:Fd,Pv=qh?function(r){for(var d=[];r;)Bn(d,wd(r)),r=Yl(r);return d}:Fd,Wn=Gn;(Gh&&Wn(new Gh(new ArrayBuffer(1)))!=Te||ua&&Wn(new ua)!=lt||Yh&&Wn(Yh.resolve())!=qt||ss&&Wn(new ss)!=Zt||ha&&Wn(new ha)!=Be)&&(Wn=function(r){var d=Gn(r),C=d==Lt?r.constructor:e,D=C?$o(C):"";if(D)switch(D){case zA:return Te;case WA:return lt;case UA:return qt;case VA:return Zt;case qA:return Be}return d});function aT(r,d,C){for(var D=-1,B=C.length;++D<B;){var U=C[D],Q=U.size;switch(U.type){case"drop":r+=Q;break;case"dropRight":d-=Q;break;case"take":d=zn(d,r+Q);break;case"takeRight":r=Sn(r,d-Q);break}}return{start:r,end:d}}function lT(r){var d=r.match(_l);return d?d[1].split(kl):[]}function Hv(r,d,C){d=Wr(d,r);for(var D=-1,B=d.length,U=!1;++D<B;){var Q=Xi(d[D]);if(!(U=r!=null&&C(r,Q)))break;r=r[Q]}return U||++D!=B?U:(B=r==null?0:r.length,!!B&&xc(B)&&fr(Q,B)&&(Ze(r)||So(r)))}function cT(r){var d=r.length,C=new r.constructor(d);return d&&typeof r[0]=="string"&&Tt.call(r,"index")&&(C.index=r.index,C.input=r.input),C}function Bv(r){return typeof r.constructor=="function"&&!ba(r)?ls(Yl(r)):{}}function uT(r,d,C){var D=r.constructor;switch(d){case Ce:return dd(r);case me:case ye:return new D(+r);case Te:return GM(r,C);case We:case qe:case ct:case ut:case ot:case st:case et:case Bt:case Fn:return _v(r,C);case lt:return new D;case dt:case De:return new D(r);case wn:return YM(r);case Zt:return new D;case Pe:return KM(r)}}function hT(r,d){var C=d.length;if(!C)return r;var D=C-1;return d[D]=(C>1?"& ":"")+d[D],d=d.join(C>2?", ":" "),r.replace(Mr,`{
1388
+ /* [wrapped with `+d+`] */
1389
+ `)}function dT(r){return Ze(r)||So(r)||!!(V0&&r&&r[V0])}function fr(r,d){var C=typeof r;return d=d??H,!!d&&(C=="number"||C!="symbol"&&hn.test(r))&&r>-1&&r%1==0&&r<d}function Yn(r,d,C){if(!Kt(C))return!1;var D=typeof d;return(D=="number"?ii(C)&&fr(d,C.length):D=="string"&&d in C)?Ni(C[d],r):!1}function bd(r,d){if(Ze(r))return!1;var C=typeof r;return C=="number"||C=="symbol"||C=="boolean"||r==null||pi(r)?!0:Cn.test(r)||!ir.test(r)||d!=null&&r in Qe(d)}function pT(r){var d=typeof r;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?r!=="__proto__":r===null}function xd(r){var d=pc(r),C=z[d];if(typeof C!="function"||!(d in vt.prototype))return!1;if(r===C)return!0;var D=vd(C);return!!D&&r===D[0]}function fT(r){return!!j0&&j0 in r}var gT=Wl?gr:Pd;function ba(r){var d=r&&r.constructor,C=typeof d=="function"&&d.prototype||os;return r===C}function jv(r){return r===r&&!Kt(r)}function zv(r,d){return function(C){return C==null?!1:C[r]===d&&(d!==e||r in Qe(C))}}function mT(r){var d=wc(r,function(D){return C.size===f&&C.clear(),D}),C=d.cache;return d}function vT(r,d){var C=r[1],D=d[1],B=C|D,U=B<(p|y|M),Q=D==M&&C==R||D==M&&C==E&&r[7].length<=d[8]||D==(M|E)&&d[7].length<=d[8]&&C==R;if(!(U||Q))return r;D&p&&(r[2]=d[2],B|=C&p?0:x);var ee=d[3];if(ee){var re=r[3];r[3]=re?$v(re,ee,d[4]):ee,r[4]=re?xe(r[3],a):d[4]}return ee=d[5],ee&&(re=r[5],r[5]=re?Sv(re,ee,d[6]):ee,r[6]=re?xe(r[5],a):d[6]),ee=d[7],ee&&(r[7]=ee),D&M&&(r[8]=r[8]==null?d[8]:zn(r[8],d[8])),r[9]==null&&(r[9]=d[9]),r[0]=d[0],r[1]=B,r}function yT(r){var d=[];if(r!=null)for(var C in Qe(r))d.push(C);return d}function wT(r){return Vl.call(r)}function Wv(r,d,C){return d=Sn(d===e?r.length-1:d,0),function(){for(var D=arguments,B=-1,U=Sn(D.length-d,0),Q=se(U);++B<U;)Q[B]=D[d+B];B=-1;for(var ee=se(d+1);++B<d;)ee[B]=D[B];return ee[d]=C(Q),zt(r,this,ee)}}function Uv(r,d){return d.length<2?r:_o(r,Ci(d,0,-1))}function bT(r,d){for(var C=r.length,D=zn(d.length,C),B=ni(r);D--;){var U=d[D];r[D]=fr(U,C)?B[U]:e}return r}function _d(r,d){if(!(d==="constructor"&&typeof r[d]=="function")&&d!="__proto__")return r[d]}var Vv=Gv(fv),xa=DA||function(r,d){return _n.setTimeout(r,d)},kd=Gv(WM);function qv(r,d,C){var D=d+"";return kd(r,hT(D,xT(lT(D),C)))}function Gv(r){var d=0,C=0;return function(){var D=HA(),B=_-(D-C);if(C=D,B>0){if(++d>=$)return arguments[0]}else d=0;return r.apply(e,arguments)}}function gc(r,d){var C=-1,D=r.length,B=D-1;for(d=d===e?D:d;++C<d;){var U=od(C,B),Q=r[U];r[U]=r[C],r[C]=Q}return r.length=d,r}var Yv=mT(function(r){var d=[];return r.charCodeAt(0)===46&&d.push(""),r.replace(Ui,function(C,D,B,U){d.push(B?U.replace(rr,"$1"):D||C)}),d});function Xi(r){if(typeof r=="string"||pi(r))return r;var d=r+"";return d=="0"&&1/r==-F?"-0":d}function $o(r){if(r!=null){try{return Ul.call(r)}catch{}try{return r+""}catch{}}return""}function xT(r,d){return Vn(Z,function(C){var D="_."+C[0];d&C[1]&&!ts(r,D)&&r.push(D)}),r.sort()}function Kv(r){if(r instanceof vt)return r.clone();var d=new $i(r.__wrapped__,r.__chain__);return d.__actions__=ni(r.__actions__),d.__index__=r.__index__,d.__values__=r.__values__,d}function _T(r,d,C){(C?Yn(r,d,C):d===e)?d=1:d=Sn(nt(d),0);var D=r==null?0:r.length;if(!D||d<1)return[];for(var B=0,U=0,Q=se(Zl(D/d));B<D;)Q[U++]=Ci(r,B,B+=d);return Q}function kT(r){for(var d=-1,C=r==null?0:r.length,D=0,B=[];++d<C;){var U=r[d];U&&(B[D++]=U)}return B}function $T(){var r=arguments.length;if(!r)return[];for(var d=se(r-1),C=arguments[0],D=r;D--;)d[D-1]=arguments[D];return Bn(Ze(C)?ni(C):[C],En(d,1))}var ST=at(function(r,d){return on(r)?ga(r,En(d,1,on,!0)):[]}),CT=at(function(r,d){var C=Ai(d);return on(C)&&(C=e),on(r)?ga(r,En(d,1,on,!0),He(C,2)):[]}),AT=at(function(r,d){var C=Ai(d);return on(C)&&(C=e),on(r)?ga(r,En(d,1,on,!0),e,C):[]});function MT(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:nt(d),Ci(r,d<0?0:d,D)):[]}function TT(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:nt(d),d=D-d,Ci(r,0,d<0?0:d)):[]}function ET(r,d){return r&&r.length?ac(r,He(d,3),!0,!0):[]}function RT(r,d){return r&&r.length?ac(r,He(d,3),!0):[]}function LT(r,d,C,D){var B=r==null?0:r.length;return B?(C&&typeof C!="number"&&Yn(r,d,C)&&(C=0,D=B),$M(r,d,C,D)):[]}function Qv(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var B=C==null?0:nt(C);return B<0&&(B=Sn(D+B,0)),mo(r,He(d,3),B)}function Zv(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var B=D-1;return C!==e&&(B=nt(C),B=C<0?Sn(D+B,0):zn(B,D-1)),mo(r,He(d,3),B,!0)}function Jv(r){var d=r==null?0:r.length;return d?En(r,1):[]}function OT(r){var d=r==null?0:r.length;return d?En(r,F):[]}function IT(r,d){var C=r==null?0:r.length;return C?(d=d===e?1:nt(d),En(r,d)):[]}function DT(r){for(var d=-1,C=r==null?0:r.length,D={};++d<C;){var B=r[d];D[B[0]]=B[1]}return D}function Xv(r){return r&&r.length?r[0]:e}function NT(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var B=C==null?0:nt(C);return B<0&&(B=Sn(D+B,0)),lr(r,d,B)}function FT(r){var d=r==null?0:r.length;return d?Ci(r,0,-1):[]}var PT=at(function(r){var d=Pt(r,ud);return d.length&&d[0]===r[0]?ed(d):[]}),HT=at(function(r){var d=Ai(r),C=Pt(r,ud);return d===Ai(C)?d=e:C.pop(),C.length&&C[0]===r[0]?ed(C,He(d,2)):[]}),BT=at(function(r){var d=Ai(r),C=Pt(r,ud);return d=typeof d=="function"?d:e,d&&C.pop(),C.length&&C[0]===r[0]?ed(C,e,d):[]});function jT(r,d){return r==null?"":FA.call(r,d)}function Ai(r){var d=r==null?0:r.length;return d?r[d-1]:e}function zT(r,d,C){var D=r==null?0:r.length;if(!D)return-1;var B=D;return C!==e&&(B=nt(C),B=B<0?Sn(D+B,0):zn(B,D-1)),d===d?Mt(r,d,B):mo(r,ra,B,!0)}function WT(r,d){return r&&r.length?uv(r,nt(d)):e}var UT=at(ey);function ey(r,d){return r&&r.length&&d&&d.length?rd(r,d):r}function VT(r,d,C){return r&&r.length&&d&&d.length?rd(r,d,He(C,2)):r}function qT(r,d,C){return r&&r.length&&d&&d.length?rd(r,d,e,C):r}var GT=pr(function(r,d){var C=r==null?0:r.length,D=Qh(r,d);return pv(r,Pt(d,function(B){return fr(B,C)?+B:B}).sort(kv)),D});function YT(r,d){var C=[];if(!(r&&r.length))return C;var D=-1,B=[],U=r.length;for(d=He(d,3);++D<U;){var Q=r[D];d(Q,D,r)&&(C.push(Q),B.push(D))}return pv(r,B),C}function $d(r){return r==null?r:jA.call(r)}function KT(r,d,C){var D=r==null?0:r.length;return D?(C&&typeof C!="number"&&Yn(r,d,C)?(d=0,C=D):(d=d==null?0:nt(d),C=C===e?D:nt(C)),Ci(r,d,C)):[]}function QT(r,d){return sc(r,d)}function ZT(r,d,C){return ad(r,d,He(C,2))}function JT(r,d){var C=r==null?0:r.length;if(C){var D=sc(r,d);if(D<C&&Ni(r[D],d))return D}return-1}function XT(r,d){return sc(r,d,!0)}function eE(r,d,C){return ad(r,d,He(C,2),!0)}function tE(r,d){var C=r==null?0:r.length;if(C){var D=sc(r,d,!0)-1;if(Ni(r[D],d))return D}return-1}function nE(r){return r&&r.length?gv(r):[]}function iE(r,d){return r&&r.length?gv(r,He(d,2)):[]}function rE(r){var d=r==null?0:r.length;return d?Ci(r,1,d):[]}function oE(r,d,C){return r&&r.length?(d=C||d===e?1:nt(d),Ci(r,0,d<0?0:d)):[]}function sE(r,d,C){var D=r==null?0:r.length;return D?(d=C||d===e?1:nt(d),d=D-d,Ci(r,d<0?0:d,D)):[]}function aE(r,d){return r&&r.length?ac(r,He(d,3),!1,!0):[]}function lE(r,d){return r&&r.length?ac(r,He(d,3)):[]}var cE=at(function(r){return zr(En(r,1,on,!0))}),uE=at(function(r){var d=Ai(r);return on(d)&&(d=e),zr(En(r,1,on,!0),He(d,2))}),hE=at(function(r){var d=Ai(r);return d=typeof d=="function"?d:e,zr(En(r,1,on,!0),e,d)});function dE(r){return r&&r.length?zr(r):[]}function pE(r,d){return r&&r.length?zr(r,He(d,2)):[]}function fE(r,d){return d=typeof d=="function"?d:e,r&&r.length?zr(r,e,d):[]}function Sd(r){if(!(r&&r.length))return[];var d=0;return r=ei(r,function(C){if(on(C))return d=Sn(C.length,d),!0}),Xt(d,function(C){return Pt(r,sa(C))})}function ty(r,d){if(!(r&&r.length))return[];var C=Sd(r);return d==null?C:Pt(C,function(D){return zt(d,e,D)})}var gE=at(function(r,d){return on(r)?ga(r,d):[]}),mE=at(function(r){return cd(ei(r,on))}),vE=at(function(r){var d=Ai(r);return on(d)&&(d=e),cd(ei(r,on),He(d,2))}),yE=at(function(r){var d=Ai(r);return d=typeof d=="function"?d:e,cd(ei(r,on),e,d)}),wE=at(Sd);function bE(r,d){return wv(r||[],d||[],fa)}function xE(r,d){return wv(r||[],d||[],ya)}var _E=at(function(r){var d=r.length,C=d>1?r[d-1]:e;return C=typeof C=="function"?(r.pop(),C):e,ty(r,C)});function ny(r){var d=z(r);return d.__chain__=!0,d}function kE(r,d){return d(r),r}function mc(r,d){return d(r)}var $E=pr(function(r){var d=r.length,C=d?r[0]:0,D=this.__wrapped__,B=function(U){return Qh(U,r)};return d>1||this.__actions__.length||!(D instanceof vt)||!fr(C)?this.thru(B):(D=D.slice(C,+C+(d?1:0)),D.__actions__.push({func:mc,args:[B],thisArg:e}),new $i(D,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function SE(){return ny(this)}function CE(){return new $i(this.value(),this.__chain__)}function AE(){this.__values__===e&&(this.__values__=my(this.value()));var r=this.__index__>=this.__values__.length,d=r?e:this.__values__[this.__index__++];return{done:r,value:d}}function ME(){return this}function TE(r){for(var d,C=this;C instanceof tc;){var D=Kv(C);D.__index__=0,D.__values__=e,d?B.__wrapped__=D:d=D;var B=D;C=C.__wrapped__}return B.__wrapped__=r,d}function EE(){var r=this.__wrapped__;if(r instanceof vt){var d=r;return this.__actions__.length&&(d=new vt(this)),d=d.reverse(),d.__actions__.push({func:mc,args:[$d],thisArg:e}),new $i(d,this.__chain__)}return this.thru($d)}function RE(){return yv(this.__wrapped__,this.__actions__)}var LE=lc(function(r,d,C){Tt.call(r,C)?++r[C]:hr(r,C,1)});function OE(r,d,C){var D=Ze(r)?Fr:kM;return C&&Yn(r,d,C)&&(d=e),D(r,He(d,3))}function IE(r,d){var C=Ze(r)?ei:tv;return C(r,He(d,3))}var DE=Tv(Qv),NE=Tv(Zv);function FE(r,d){return En(vc(r,d),1)}function PE(r,d){return En(vc(r,d),F)}function HE(r,d,C){return C=C===e?1:nt(C),En(vc(r,d),C)}function iy(r,d){var C=Ze(r)?Vn:jr;return C(r,He(d,3))}function ry(r,d){var C=Ze(r)?Pl:ev;return C(r,He(d,3))}var BE=lc(function(r,d,C){Tt.call(r,C)?r[C].push(d):hr(r,C,[d])});function jE(r,d,C,D){r=ii(r)?r:ps(r),C=C&&!D?nt(C):0;var B=r.length;return C<0&&(C=Sn(B+C,0)),_c(r)?C<=B&&r.indexOf(d,C)>-1:!!B&&lr(r,d,C)>-1}var zE=at(function(r,d,C){var D=-1,B=typeof d=="function",U=ii(r)?se(r.length):[];return jr(r,function(Q){U[++D]=B?zt(d,Q,C):ma(Q,d,C)}),U}),WE=lc(function(r,d,C){hr(r,C,d)});function vc(r,d){var C=Ze(r)?Pt:av;return C(r,He(d,3))}function UE(r,d,C,D){return r==null?[]:(Ze(d)||(d=d==null?[]:[d]),C=D?e:C,Ze(C)||(C=C==null?[]:[C]),hv(r,d,C))}var VE=lc(function(r,d,C){r[C?0:1].push(d)},function(){return[[],[]]});function qE(r,d,C){var D=Ze(r)?ki:aa,B=arguments.length<3;return D(r,He(d,4),C,B,jr)}function GE(r,d,C){var D=Ze(r)?go:aa,B=arguments.length<3;return D(r,He(d,4),C,B,ev)}function YE(r,d){var C=Ze(r)?ei:tv;return C(r,bc(He(d,3)))}function KE(r){var d=Ze(r)?Q0:jM;return d(r)}function QE(r,d,C){(C?Yn(r,d,C):d===e)?d=1:d=nt(d);var D=Ze(r)?yM:zM;return D(r,d)}function ZE(r){var d=Ze(r)?wM:UM;return d(r)}function JE(r){if(r==null)return 0;if(ii(r))return _c(r)?tt(r):r.length;var d=Wn(r);return d==lt||d==Zt?r.size:nd(r).length}function XE(r,d,C){var D=Ze(r)?ns:VM;return C&&Yn(r,d,C)&&(d=e),D(r,He(d,3))}var eR=at(function(r,d){if(r==null)return[];var C=d.length;return C>1&&Yn(r,d[0],d[1])?d=[]:C>2&&Yn(d[0],d[1],d[2])&&(d=[d[0]]),hv(r,En(d,1),[])}),yc=IA||function(){return _n.Date.now()};function tR(r,d){if(typeof d!="function")throw new $n(v);return r=nt(r),function(){if(--r<1)return d.apply(this,arguments)}}function oy(r,d,C){return d=C?e:d,d=r&&d==null?r.length:d,dr(r,M,e,e,e,e,d)}function sy(r,d){var C;if(typeof d!="function")throw new $n(v);return r=nt(r),function(){return--r>0&&(C=d.apply(this,arguments)),r<=1&&(d=e),C}}var Cd=at(function(r,d,C){var D=p;if(C.length){var B=xe(C,hs(Cd));D|=k}return dr(r,D,d,C,B)}),ay=at(function(r,d,C){var D=p|y;if(C.length){var B=xe(C,hs(ay));D|=k}return dr(d,D,r,C,B)});function ly(r,d,C){d=C?e:d;var D=dr(r,R,e,e,e,e,e,d);return D.placeholder=ly.placeholder,D}function cy(r,d,C){d=C?e:d;var D=dr(r,A,e,e,e,e,e,d);return D.placeholder=cy.placeholder,D}function uy(r,d,C){var D,B,U,Q,ee,re,pe=0,ge=!1,ve=!1,Se=!0;if(typeof r!="function")throw new $n(v);d=Mi(d)||0,Kt(C)&&(ge=!!C.leading,ve="maxWait"in C,U=ve?Sn(Mi(C.maxWait)||0,d):U,Se="trailing"in C?!!C.trailing:Se);function Re(sn){var Fi=D,vr=B;return D=B=e,pe=sn,Q=r.apply(vr,Fi),Q}function je(sn){return pe=sn,ee=xa(pt,d),ge?Re(sn):Q}function rt(sn){var Fi=sn-re,vr=sn-pe,Ty=d-Fi;return ve?zn(Ty,U-vr):Ty}function ze(sn){var Fi=sn-re,vr=sn-pe;return re===e||Fi>=d||Fi<0||ve&&vr>=U}function pt(){var sn=yc();if(ze(sn))return yt(sn);ee=xa(pt,rt(sn))}function yt(sn){return ee=e,Se&&D?Re(sn):(D=B=e,Q)}function fi(){ee!==e&&bv(ee),pe=0,D=re=B=ee=e}function Kn(){return ee===e?Q:yt(yc())}function gi(){var sn=yc(),Fi=ze(sn);if(D=arguments,B=this,re=sn,Fi){if(ee===e)return je(re);if(ve)return bv(ee),ee=xa(pt,d),Re(re)}return ee===e&&(ee=xa(pt,d)),Q}return gi.cancel=fi,gi.flush=Kn,gi}var nR=at(function(r,d){return X0(r,1,d)}),iR=at(function(r,d,C){return X0(r,Mi(d)||0,C)});function rR(r){return dr(r,O)}function wc(r,d){if(typeof r!="function"||d!=null&&typeof d!="function")throw new $n(v);var C=function(){var D=arguments,B=d?d.apply(this,D):D[0],U=C.cache;if(U.has(B))return U.get(B);var Q=r.apply(this,D);return C.cache=U.set(B,Q)||U,Q};return C.cache=new(wc.Cache||ur),C}wc.Cache=ur;function bc(r){if(typeof r!="function")throw new $n(v);return function(){var d=arguments;switch(d.length){case 0:return!r.call(this);case 1:return!r.call(this,d[0]);case 2:return!r.call(this,d[0],d[1]);case 3:return!r.call(this,d[0],d[1],d[2])}return!r.apply(this,d)}}function oR(r){return sy(2,r)}var sR=qM(function(r,d){d=d.length==1&&Ze(d[0])?Pt(d[0],jn(He())):Pt(En(d,1),jn(He()));var C=d.length;return at(function(D){for(var B=-1,U=zn(D.length,C);++B<U;)D[B]=d[B].call(this,D[B]);return zt(r,this,D)})}),Ad=at(function(r,d){var C=xe(d,hs(Ad));return dr(r,k,e,d,C)}),hy=at(function(r,d){var C=xe(d,hs(hy));return dr(r,b,e,d,C)}),aR=pr(function(r,d){return dr(r,E,e,e,e,d)});function lR(r,d){if(typeof r!="function")throw new $n(v);return d=d===e?d:nt(d),at(r,d)}function cR(r,d){if(typeof r!="function")throw new $n(v);return d=d==null?0:Sn(nt(d),0),at(function(C){var D=C[d],B=Ur(C,0,d);return D&&Bn(B,D),zt(r,this,B)})}function uR(r,d,C){var D=!0,B=!0;if(typeof r!="function")throw new $n(v);return Kt(C)&&(D="leading"in C?!!C.leading:D,B="trailing"in C?!!C.trailing:B),uy(r,d,{leading:D,maxWait:d,trailing:B})}function hR(r){return oy(r,1)}function dR(r,d){return Ad(hd(d),r)}function pR(){if(!arguments.length)return[];var r=arguments[0];return Ze(r)?r:[r]}function fR(r){return Si(r,l)}function gR(r,d){return d=typeof d=="function"?d:e,Si(r,l,d)}function mR(r){return Si(r,c|l)}function vR(r,d){return d=typeof d=="function"?d:e,Si(r,c|l,d)}function yR(r,d){return d==null||J0(r,d,Mn(d))}function Ni(r,d){return r===d||r!==r&&d!==d}var wR=dc(Xh),bR=dc(function(r,d){return r>=d}),So=rv(function(){return arguments}())?rv:function(r){return en(r)&&Tt.call(r,"callee")&&!U0.call(r,"callee")},Ze=se.isArray,xR=Nl?jn(Nl):TM;function ii(r){return r!=null&&xc(r.length)&&!gr(r)}function on(r){return en(r)&&ii(r)}function _R(r){return r===!0||r===!1||en(r)&&Gn(r)==me}var Vr=NA||Pd,kR=_i?jn(_i):EM;function $R(r){return en(r)&&r.nodeType===1&&!_a(r)}function SR(r){if(r==null)return!0;if(ii(r)&&(Ze(r)||typeof r=="string"||typeof r.splice=="function"||Vr(r)||ds(r)||So(r)))return!r.length;var d=Wn(r);if(d==lt||d==Zt)return!r.size;if(ba(r))return!nd(r).length;for(var C in r)if(Tt.call(r,C))return!1;return!0}function CR(r,d){return va(r,d)}function AR(r,d,C){C=typeof C=="function"?C:e;var D=C?C(r,d):e;return D===e?va(r,d,e,C):!!D}function Md(r){if(!en(r))return!1;var d=Gn(r);return d==_e||d==fe||typeof r.message=="string"&&typeof r.name=="string"&&!_a(r)}function MR(r){return typeof r=="number"&&q0(r)}function gr(r){if(!Kt(r))return!1;var d=Gn(r);return d==it||d==Nt||d==ae||d==Wi}function dy(r){return typeof r=="number"&&r==nt(r)}function xc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=H}function Kt(r){var d=typeof r;return r!=null&&(d=="object"||d=="function")}function en(r){return r!=null&&typeof r=="object"}var py=Oi?jn(Oi):LM;function TR(r,d){return r===d||td(r,d,yd(d))}function ER(r,d,C){return C=typeof C=="function"?C:e,td(r,d,yd(d),C)}function RR(r){return fy(r)&&r!=+r}function LR(r){if(gT(r))throw new Ie(g);return ov(r)}function OR(r){return r===null}function IR(r){return r==null}function fy(r){return typeof r=="number"||en(r)&&Gn(r)==dt}function _a(r){if(!en(r)||Gn(r)!=Lt)return!1;var d=Yl(r);if(d===null)return!0;var C=Tt.call(d,"constructor")&&d.constructor;return typeof C=="function"&&C instanceof C&&Ul.call(C)==EA}var Td=Qi?jn(Qi):OM;function DR(r){return dy(r)&&r>=-H&&r<=H}var gy=ar?jn(ar):IM;function _c(r){return typeof r=="string"||!Ze(r)&&en(r)&&Gn(r)==De}function pi(r){return typeof r=="symbol"||en(r)&&Gn(r)==Pe}var ds=Fl?jn(Fl):DM;function NR(r){return r===e}function FR(r){return en(r)&&Wn(r)==Be}function PR(r){return en(r)&&Gn(r)==ce}var HR=dc(id),BR=dc(function(r,d){return r<=d});function my(r){if(!r)return[];if(ii(r))return _c(r)?Ue(r):ni(r);if(ca&&r[ca])return de(r[ca]());var d=Wn(r),C=d==lt?we:d==Zt?$e:ps;return C(r)}function mr(r){if(!r)return r===0?r:0;if(r=Mi(r),r===F||r===-F){var d=r<0?-1:1;return d*W}return r===r?r:0}function nt(r){var d=mr(r),C=d%1;return d===d?C?d-C:d:0}function vy(r){return r?xo(nt(r),0,q):0}function Mi(r){if(typeof r=="number")return r;if(pi(r))return V;if(Kt(r)){var d=typeof r.valueOf=="function"?r.valueOf():r;r=Kt(d)?d+"":d}if(typeof r!="string")return r===0?r:+r;r=Gt(r);var C=qi.test(r);return C||un.test(r)?Ot(r.slice(2),C?2:8):$l.test(r)?V:+r}function yy(r){return Ji(r,ri(r))}function jR(r){return r?xo(nt(r),-H,H):r===0?r:0}function Ct(r){return r==null?"":di(r)}var zR=cs(function(r,d){if(ba(d)||ii(d)){Ji(d,Mn(d),r);return}for(var C in d)Tt.call(d,C)&&fa(r,C,d[C])}),wy=cs(function(r,d){Ji(d,ri(d),r)}),kc=cs(function(r,d,C,D){Ji(d,ri(d),r,D)}),WR=cs(function(r,d,C,D){Ji(d,Mn(d),r,D)}),UR=pr(Qh);function VR(r,d){var C=ls(r);return d==null?C:Z0(C,d)}var qR=at(function(r,d){r=Qe(r);var C=-1,D=d.length,B=D>2?d[2]:e;for(B&&Yn(d[0],d[1],B)&&(D=1);++C<D;)for(var U=d[C],Q=ri(U),ee=-1,re=Q.length;++ee<re;){var pe=Q[ee],ge=r[pe];(ge===e||Ni(ge,os[pe])&&!Tt.call(r,pe))&&(r[pe]=U[pe])}return r}),GR=at(function(r){return r.push(e,Nv),zt(by,e,r)});function YR(r,d){return ia(r,He(d,3),Zi)}function KR(r,d){return ia(r,He(d,3),Jh)}function QR(r,d){return r==null?r:Zh(r,He(d,3),ri)}function ZR(r,d){return r==null?r:nv(r,He(d,3),ri)}function JR(r,d){return r&&Zi(r,He(d,3))}function XR(r,d){return r&&Jh(r,He(d,3))}function eL(r){return r==null?[]:rc(r,Mn(r))}function tL(r){return r==null?[]:rc(r,ri(r))}function Ed(r,d,C){var D=r==null?e:_o(r,d);return D===e?C:D}function nL(r,d){return r!=null&&Hv(r,d,SM)}function Rd(r,d){return r!=null&&Hv(r,d,CM)}var iL=Rv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Vl.call(d)),r[d]=C},Od(oi)),rL=Rv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Vl.call(d)),Tt.call(r,d)?r[d].push(C):r[d]=[C]},He),oL=at(ma);function Mn(r){return ii(r)?K0(r):nd(r)}function ri(r){return ii(r)?K0(r,!0):NM(r)}function sL(r,d){var C={};return d=He(d,3),Zi(r,function(D,B,U){hr(C,d(D,B,U),D)}),C}function aL(r,d){var C={};return d=He(d,3),Zi(r,function(D,B,U){hr(C,B,d(D,B,U))}),C}var lL=cs(function(r,d,C){oc(r,d,C)}),by=cs(function(r,d,C,D){oc(r,d,C,D)}),cL=pr(function(r,d){var C={};if(r==null)return C;var D=!1;d=Pt(d,function(U){return U=Wr(U,r),D||(D=U.length>1),U}),Ji(r,md(r),C),D&&(C=Si(C,c|s|l,iT));for(var B=d.length;B--;)ld(C,d[B]);return C});function uL(r,d){return xy(r,bc(He(d)))}var hL=pr(function(r,d){return r==null?{}:PM(r,d)});function xy(r,d){if(r==null)return{};var C=Pt(md(r),function(D){return[D]});return d=He(d),dv(r,C,function(D,B){return d(D,B[0])})}function dL(r,d,C){d=Wr(d,r);var D=-1,B=d.length;for(B||(B=1,r=e);++D<B;){var U=r==null?e:r[Xi(d[D])];U===e&&(D=B,U=C),r=gr(U)?U.call(r):U}return r}function pL(r,d,C){return r==null?r:ya(r,d,C)}function fL(r,d,C,D){return D=typeof D=="function"?D:e,r==null?r:ya(r,d,C,D)}var _y=Iv(Mn),ky=Iv(ri);function gL(r,d,C){var D=Ze(r),B=D||Vr(r)||ds(r);if(d=He(d,4),C==null){var U=r&&r.constructor;B?C=D?new U:[]:Kt(r)?C=gr(U)?ls(Yl(r)):{}:C={}}return(B?Vn:Zi)(r,function(Q,ee,re){return d(C,Q,ee,re)}),C}function mL(r,d){return r==null?!0:ld(r,d)}function vL(r,d,C){return r==null?r:vv(r,d,hd(C))}function yL(r,d,C,D){return D=typeof D=="function"?D:e,r==null?r:vv(r,d,hd(C),D)}function ps(r){return r==null?[]:vo(r,Mn(r))}function wL(r){return r==null?[]:vo(r,ri(r))}function bL(r,d,C){return C===e&&(C=d,d=e),C!==e&&(C=Mi(C),C=C===C?C:0),d!==e&&(d=Mi(d),d=d===d?d:0),xo(Mi(r),d,C)}function xL(r,d,C){return d=mr(d),C===e?(C=d,d=0):C=mr(C),r=Mi(r),AM(r,d,C)}function _L(r,d,C){if(C&&typeof C!="boolean"&&Yn(r,d,C)&&(d=C=e),C===e&&(typeof d=="boolean"?(C=d,d=e):typeof r=="boolean"&&(C=r,r=e)),r===e&&d===e?(r=0,d=1):(r=mr(r),d===e?(d=r,r=0):d=mr(d)),r>d){var D=r;r=d,d=D}if(C||r%1||d%1){var B=G0();return zn(r+B*(d-r+pn("1e-"+((B+"").length-1))),d)}return od(r,d)}var kL=us(function(r,d,C){return d=d.toLowerCase(),r+(C?$y(d):d)});function $y(r){return Ld(Ct(r).toLowerCase())}function Sy(r){return r=Ct(r),r&&r.replace(qo,P).replace(Ir,"")}function $L(r,d,C){r=Ct(r),d=di(d);var D=r.length;C=C===e?D:xo(nt(C),0,D);var B=C;return C-=d.length,C>=0&&r.slice(C,B)==d}function SL(r){return r=Ct(r),r&&Nh.test(r)?r.replace(xl,j):r}function CL(r){return r=Ct(r),r&&Cr.test(r)?r.replace(Vi,"\\$&"):r}var AL=us(function(r,d,C){return r+(C?"-":"")+d.toLowerCase()}),ML=us(function(r,d,C){return r+(C?" ":"")+d.toLowerCase()}),TL=Mv("toLowerCase");function EL(r,d,C){r=Ct(r),d=nt(d);var D=d?tt(r):0;if(!d||D>=d)return r;var B=(d-D)/2;return hc(Jl(B),C)+r+hc(Zl(B),C)}function RL(r,d,C){r=Ct(r),d=nt(d);var D=d?tt(r):0;return d&&D<d?r+hc(d-D,C):r}function LL(r,d,C){r=Ct(r),d=nt(d);var D=d?tt(r):0;return d&&D<d?hc(d-D,C)+r:r}function OL(r,d,C){return C||d==null?d=0:d&&(d=+d),BA(Ct(r).replace(Pn,""),d||0)}function IL(r,d,C){return(C?Yn(r,d,C):d===e)?d=1:d=nt(d),sd(Ct(r),d)}function DL(){var r=arguments,d=Ct(r[0]);return r.length<3?d:d.replace(r[1],r[2])}var NL=us(function(r,d,C){return r+(C?"_":"")+d.toLowerCase()});function FL(r,d,C){return C&&typeof C!="number"&&Yn(r,d,C)&&(d=C=e),C=C===e?q:C>>>0,C?(r=Ct(r),r&&(typeof d=="string"||d!=null&&!Td(d))&&(d=di(d),!d&&te(r))?Ur(Ue(r),0,C):r.split(d,C)):[]}var PL=us(function(r,d,C){return r+(C?" ":"")+Ld(d)});function HL(r,d,C){return r=Ct(r),C=C==null?0:xo(nt(C),0,r.length),d=di(d),r.slice(C,C+d.length)==d}function BL(r,d,C){var D=z.templateSettings;C&&Yn(r,d,C)&&(d=e),r=Ct(r),d=kc({},d,D,Dv);var B=kc({},d.imports,D.imports,Dv),U=Mn(B),Q=vo(B,U),ee,re,pe=0,ge=d.interpolate||Hn,ve="__p += '",Se=kn((d.escape||Hn).source+"|"+ge.source+"|"+(ge===Ne?jh:Hn).source+"|"+(d.evaluate||Hn).source+"|$","g"),Re="//# sourceURL="+(Tt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Il+"]")+`
1390
+ `;r.replace(Se,function(ze,pt,yt,fi,Kn,gi){return yt||(yt=fi),ve+=r.slice(pe,gi).replace(lo,Y),pt&&(ee=!0,ve+=`' +
1391
+ __e(`+pt+`) +
1392
+ '`),Kn&&(re=!0,ve+=`';
1393
+ `+Kn+`;
1394
+ __p += '`),yt&&(ve+=`' +
1395
+ ((__t = (`+yt+`)) == null ? '' : __t) +
1396
+ '`),pe=gi+ze.length,ze}),ve+=`';
1397
+ `;var je=Tt.call(d,"variable")&&d.variable;if(!je)ve=`with (obj) {
1398
+ `+ve+`
1399
+ }
1400
+ `;else if(Bh.test(je))throw new Ie(w);ve=(re?ve.replace(nr,""):ve).replace(Jn,"$1").replace(Ps,"$1;"),ve="function("+(je||"obj")+`) {
1401
+ `+(je?"":`obj || (obj = {});
1402
+ `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(re?`, __j = Array.prototype.join;
1403
+ function print() { __p += __j.call(arguments, '') }
1404
+ `:`;
1405
+ `)+ve+`return __p
1406
+ }`;var rt=Ay(function(){return Ye(U,Re+"return "+ve).apply(e,Q)});if(rt.source=ve,Md(rt))throw rt;return rt}function jL(r){return Ct(r).toLowerCase()}function zL(r){return Ct(r).toUpperCase()}function WL(r,d,C){if(r=Ct(r),r&&(C||d===e))return Gt(r);if(!r||!(d=di(d)))return r;var D=Ue(r),B=Ue(d),U=jl(D,B),Q=zl(D,B)+1;return Ur(D,U,Q).join("")}function UL(r,d,C){if(r=Ct(r),r&&(C||d===e))return r.slice(0,Ke(r)+1);if(!r||!(d=di(d)))return r;var D=Ue(r),B=zl(D,Ue(d))+1;return Ur(D,0,B).join("")}function VL(r,d,C){if(r=Ct(r),r&&(C||d===e))return r.replace(Pn,"");if(!r||!(d=di(d)))return r;var D=Ue(r),B=jl(D,Ue(d));return Ur(D,B).join("")}function qL(r,d){var C=T,D=N;if(Kt(d)){var B="separator"in d?d.separator:B;C="length"in d?nt(d.length):C,D="omission"in d?di(d.omission):D}r=Ct(r);var U=r.length;if(te(r)){var Q=Ue(r);U=Q.length}if(C>=U)return r;var ee=C-tt(D);if(ee<1)return D;var re=Q?Ur(Q,0,ee).join(""):r.slice(0,ee);if(B===e)return re+D;if(Q&&(ee+=re.length-ee),Td(B)){if(r.slice(ee).search(B)){var pe,ge=re;for(B.global||(B=kn(B.source,Ct(Tr.exec(B))+"g")),B.lastIndex=0;pe=B.exec(ge);)var ve=pe.index;re=re.slice(0,ve===e?ee:ve)}}else if(r.indexOf(di(B),ee)!=ee){var Se=re.lastIndexOf(B);Se>-1&&(re=re.slice(0,Se))}return re+D}function GL(r){return r=Ct(r),r&&Dh.test(r)?r.replace(Hs,Ee):r}var YL=us(function(r,d,C){return r+(C?" ":"")+d.toUpperCase()}),Ld=Mv("toUpperCase");function Cy(r,d,C){return r=Ct(r),d=C?e:d,d===e?oe(r)?Wt(r):is(r):r.match(d)||[]}var Ay=at(function(r,d){try{return zt(r,e,d)}catch(C){return Md(C)?C:new Ie(C)}}),KL=pr(function(r,d){return Vn(d,function(C){C=Xi(C),hr(r,C,Cd(r[C],r))}),r});function QL(r){var d=r==null?0:r.length,C=He();return r=d?Pt(r,function(D){if(typeof D[1]!="function")throw new $n(v);return[C(D[0]),D[1]]}):[],at(function(D){for(var B=-1;++B<d;){var U=r[B];if(zt(U[0],this,D))return zt(U[1],this,D)}})}function ZL(r){return _M(Si(r,c))}function Od(r){return function(){return r}}function JL(r,d){return r==null||r!==r?d:r}var XL=Ev(),eO=Ev(!0);function oi(r){return r}function Id(r){return sv(typeof r=="function"?r:Si(r,c))}function tO(r){return lv(Si(r,c))}function nO(r,d){return cv(r,Si(d,c))}var iO=at(function(r,d){return function(C){return ma(C,r,d)}}),rO=at(function(r,d){return function(C){return ma(r,C,d)}});function Dd(r,d,C){var D=Mn(d),B=rc(d,D);C==null&&!(Kt(d)&&(B.length||!D.length))&&(C=d,d=r,r=this,B=rc(d,Mn(d)));var U=!(Kt(C)&&"chain"in C)||!!C.chain,Q=gr(r);return Vn(B,function(ee){var re=d[ee];r[ee]=re,Q&&(r.prototype[ee]=function(){var pe=this.__chain__;if(U||pe){var ge=r(this.__wrapped__),ve=ge.__actions__=ni(this.__actions__);return ve.push({func:re,args:arguments,thisArg:r}),ge.__chain__=pe,ge}return re.apply(r,Bn([this.value()],arguments))})}),r}function oO(){return _n._===this&&(_n._=RA),this}function Nd(){}function sO(r){return r=nt(r),at(function(d){return uv(d,r)})}var aO=pd(Pt),lO=pd(Fr),cO=pd(ns);function My(r){return bd(r)?sa(Xi(r)):HM(r)}function uO(r){return function(d){return r==null?e:_o(r,d)}}var hO=Lv(),dO=Lv(!0);function Fd(){return[]}function Pd(){return!1}function pO(){return{}}function fO(){return""}function gO(){return!0}function mO(r,d){if(r=nt(r),r<1||r>H)return[];var C=q,D=zn(r,q);d=He(d),r-=q;for(var B=Xt(D,d);++C<r;)d(C);return B}function vO(r){return Ze(r)?Pt(r,Xi):pi(r)?[r]:ni(Yv(Ct(r)))}function yO(r){var d=++TA;return Ct(r)+d}var wO=uc(function(r,d){return r+d},0),bO=fd("ceil"),xO=uc(function(r,d){return r/d},1),_O=fd("floor");function kO(r){return r&&r.length?ic(r,oi,Xh):e}function $O(r,d){return r&&r.length?ic(r,He(d,2),Xh):e}function SO(r){return oa(r,oi)}function CO(r,d){return oa(r,He(d,2))}function AO(r){return r&&r.length?ic(r,oi,id):e}function MO(r,d){return r&&r.length?ic(r,He(d,2),id):e}var TO=uc(function(r,d){return r*d},1),EO=fd("round"),RO=uc(function(r,d){return r-d},0);function LO(r){return r&&r.length?Hr(r,oi):0}function OO(r,d){return r&&r.length?Hr(r,He(d,2)):0}return z.after=tR,z.ary=oy,z.assign=zR,z.assignIn=wy,z.assignInWith=kc,z.assignWith=WR,z.at=UR,z.before=sy,z.bind=Cd,z.bindAll=KL,z.bindKey=ay,z.castArray=pR,z.chain=ny,z.chunk=_T,z.compact=kT,z.concat=$T,z.cond=QL,z.conforms=ZL,z.constant=Od,z.countBy=LE,z.create=VR,z.curry=ly,z.curryRight=cy,z.debounce=uy,z.defaults=qR,z.defaultsDeep=GR,z.defer=nR,z.delay=iR,z.difference=ST,z.differenceBy=CT,z.differenceWith=AT,z.drop=MT,z.dropRight=TT,z.dropRightWhile=ET,z.dropWhile=RT,z.fill=LT,z.filter=IE,z.flatMap=FE,z.flatMapDeep=PE,z.flatMapDepth=HE,z.flatten=Jv,z.flattenDeep=OT,z.flattenDepth=IT,z.flip=rR,z.flow=XL,z.flowRight=eO,z.fromPairs=DT,z.functions=eL,z.functionsIn=tL,z.groupBy=BE,z.initial=FT,z.intersection=PT,z.intersectionBy=HT,z.intersectionWith=BT,z.invert=iL,z.invertBy=rL,z.invokeMap=zE,z.iteratee=Id,z.keyBy=WE,z.keys=Mn,z.keysIn=ri,z.map=vc,z.mapKeys=sL,z.mapValues=aL,z.matches=tO,z.matchesProperty=nO,z.memoize=wc,z.merge=lL,z.mergeWith=by,z.method=iO,z.methodOf=rO,z.mixin=Dd,z.negate=bc,z.nthArg=sO,z.omit=cL,z.omitBy=uL,z.once=oR,z.orderBy=UE,z.over=aO,z.overArgs=sR,z.overEvery=lO,z.overSome=cO,z.partial=Ad,z.partialRight=hy,z.partition=VE,z.pick=hL,z.pickBy=xy,z.property=My,z.propertyOf=uO,z.pull=UT,z.pullAll=ey,z.pullAllBy=VT,z.pullAllWith=qT,z.pullAt=GT,z.range=hO,z.rangeRight=dO,z.rearg=aR,z.reject=YE,z.remove=YT,z.rest=lR,z.reverse=$d,z.sampleSize=QE,z.set=pL,z.setWith=fL,z.shuffle=ZE,z.slice=KT,z.sortBy=eR,z.sortedUniq=nE,z.sortedUniqBy=iE,z.split=FL,z.spread=cR,z.tail=rE,z.take=oE,z.takeRight=sE,z.takeRightWhile=aE,z.takeWhile=lE,z.tap=kE,z.throttle=uR,z.thru=mc,z.toArray=my,z.toPairs=_y,z.toPairsIn=ky,z.toPath=vO,z.toPlainObject=yy,z.transform=gL,z.unary=hR,z.union=cE,z.unionBy=uE,z.unionWith=hE,z.uniq=dE,z.uniqBy=pE,z.uniqWith=fE,z.unset=mL,z.unzip=Sd,z.unzipWith=ty,z.update=vL,z.updateWith=yL,z.values=ps,z.valuesIn=wL,z.without=gE,z.words=Cy,z.wrap=dR,z.xor=mE,z.xorBy=vE,z.xorWith=yE,z.zip=wE,z.zipObject=bE,z.zipObjectDeep=xE,z.zipWith=_E,z.entries=_y,z.entriesIn=ky,z.extend=wy,z.extendWith=kc,Dd(z,z),z.add=wO,z.attempt=Ay,z.camelCase=kL,z.capitalize=$y,z.ceil=bO,z.clamp=bL,z.clone=fR,z.cloneDeep=mR,z.cloneDeepWith=vR,z.cloneWith=gR,z.conformsTo=yR,z.deburr=Sy,z.defaultTo=JL,z.divide=xO,z.endsWith=$L,z.eq=Ni,z.escape=SL,z.escapeRegExp=CL,z.every=OE,z.find=DE,z.findIndex=Qv,z.findKey=YR,z.findLast=NE,z.findLastIndex=Zv,z.findLastKey=KR,z.floor=_O,z.forEach=iy,z.forEachRight=ry,z.forIn=QR,z.forInRight=ZR,z.forOwn=JR,z.forOwnRight=XR,z.get=Ed,z.gt=wR,z.gte=bR,z.has=nL,z.hasIn=Rd,z.head=Xv,z.identity=oi,z.includes=jE,z.indexOf=NT,z.inRange=xL,z.invoke=oL,z.isArguments=So,z.isArray=Ze,z.isArrayBuffer=xR,z.isArrayLike=ii,z.isArrayLikeObject=on,z.isBoolean=_R,z.isBuffer=Vr,z.isDate=kR,z.isElement=$R,z.isEmpty=SR,z.isEqual=CR,z.isEqualWith=AR,z.isError=Md,z.isFinite=MR,z.isFunction=gr,z.isInteger=dy,z.isLength=xc,z.isMap=py,z.isMatch=TR,z.isMatchWith=ER,z.isNaN=RR,z.isNative=LR,z.isNil=IR,z.isNull=OR,z.isNumber=fy,z.isObject=Kt,z.isObjectLike=en,z.isPlainObject=_a,z.isRegExp=Td,z.isSafeInteger=DR,z.isSet=gy,z.isString=_c,z.isSymbol=pi,z.isTypedArray=ds,z.isUndefined=NR,z.isWeakMap=FR,z.isWeakSet=PR,z.join=jT,z.kebabCase=AL,z.last=Ai,z.lastIndexOf=zT,z.lowerCase=ML,z.lowerFirst=TL,z.lt=HR,z.lte=BR,z.max=kO,z.maxBy=$O,z.mean=SO,z.meanBy=CO,z.min=AO,z.minBy=MO,z.stubArray=Fd,z.stubFalse=Pd,z.stubObject=pO,z.stubString=fO,z.stubTrue=gO,z.multiply=TO,z.nth=WT,z.noConflict=oO,z.noop=Nd,z.now=yc,z.pad=EL,z.padEnd=RL,z.padStart=LL,z.parseInt=OL,z.random=_L,z.reduce=qE,z.reduceRight=GE,z.repeat=IL,z.replace=DL,z.result=dL,z.round=EO,z.runInContext=ne,z.sample=KE,z.size=JE,z.snakeCase=NL,z.some=XE,z.sortedIndex=QT,z.sortedIndexBy=ZT,z.sortedIndexOf=JT,z.sortedLastIndex=XT,z.sortedLastIndexBy=eE,z.sortedLastIndexOf=tE,z.startCase=PL,z.startsWith=HL,z.subtract=RO,z.sum=LO,z.sumBy=OO,z.template=BL,z.times=mO,z.toFinite=mr,z.toInteger=nt,z.toLength=vy,z.toLower=jL,z.toNumber=Mi,z.toSafeInteger=jR,z.toString=Ct,z.toUpper=zL,z.trim=WL,z.trimEnd=UL,z.trimStart=VL,z.truncate=qL,z.unescape=GL,z.uniqueId=yO,z.upperCase=YL,z.upperFirst=Ld,z.each=iy,z.eachRight=ry,z.first=Xv,Dd(z,function(){var r={};return Zi(z,function(d,C){Tt.call(z.prototype,C)||(r[C]=d)}),r}(),{chain:!1}),z.VERSION=i,Vn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){z[r].placeholder=z}),Vn(["drop","take"],function(r,d){vt.prototype[r]=function(C){C=C===e?1:Sn(nt(C),0);var D=this.__filtered__&&!d?new vt(this):this.clone();return D.__filtered__?D.__takeCount__=zn(C,D.__takeCount__):D.__views__.push({size:zn(C,q),type:r+(D.__dir__<0?"Right":"")}),D},vt.prototype[r+"Right"]=function(C){return this.reverse()[r](C).reverse()}}),Vn(["filter","map","takeWhile"],function(r,d){var C=d+1,D=C==S||C==I;vt.prototype[r]=function(B){var U=this.clone();return U.__iteratees__.push({iteratee:He(B,3),type:C}),U.__filtered__=U.__filtered__||D,U}}),Vn(["head","last"],function(r,d){var C="take"+(d?"Right":"");vt.prototype[r]=function(){return this[C](1).value()[0]}}),Vn(["initial","tail"],function(r,d){var C="drop"+(d?"":"Right");vt.prototype[r]=function(){return this.__filtered__?new vt(this):this[C](1)}}),vt.prototype.compact=function(){return this.filter(oi)},vt.prototype.find=function(r){return this.filter(r).head()},vt.prototype.findLast=function(r){return this.reverse().find(r)},vt.prototype.invokeMap=at(function(r,d){return typeof r=="function"?new vt(this):this.map(function(C){return ma(C,r,d)})}),vt.prototype.reject=function(r){return this.filter(bc(He(r)))},vt.prototype.slice=function(r,d){r=nt(r);var C=this;return C.__filtered__&&(r>0||d<0)?new vt(C):(r<0?C=C.takeRight(-r):r&&(C=C.drop(r)),d!==e&&(d=nt(d),C=d<0?C.dropRight(-d):C.take(d-r)),C)},vt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},vt.prototype.toArray=function(){return this.take(q)},Zi(vt.prototype,function(r,d){var C=/^(?:filter|find|map|reject)|While$/.test(d),D=/^(?:head|last)$/.test(d),B=z[D?"take"+(d=="last"?"Right":""):d],U=D||/^find/.test(d);B&&(z.prototype[d]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,re=Q instanceof vt,pe=ee[0],ge=re||Ze(Q),ve=function(pt){var yt=B.apply(z,Bn([pt],ee));return D&&Se?yt[0]:yt};ge&&C&&typeof pe=="function"&&pe.length!=1&&(re=ge=!1);var Se=this.__chain__,Re=!!this.__actions__.length,je=U&&!Se,rt=re&&!Re;if(!U&&ge){Q=rt?Q:new vt(this);var ze=r.apply(Q,ee);return ze.__actions__.push({func:mc,args:[ve],thisArg:e}),new $i(ze,Se)}return je&&rt?r.apply(this,ee):(ze=this.thru(ve),je?D?ze.value()[0]:ze.value():ze)})}),Vn(["pop","push","shift","sort","splice","unshift"],function(r){var d=hi[r],C=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",D=/^(?:pop|shift)$/.test(r);z.prototype[r]=function(){var B=arguments;if(D&&!this.__chain__){var U=this.value();return d.apply(Ze(U)?U:[],B)}return this[C](function(Q){return d.apply(Ze(Q)?Q:[],B)})}}),Zi(vt.prototype,function(r,d){var C=z[d];if(C){var D=C.name+"";Tt.call(as,D)||(as[D]=[]),as[D].push({name:d,func:C})}}),as[cc(e,y).name]=[{name:"wrapper",func:e}],vt.prototype.clone=GA,vt.prototype.reverse=YA,vt.prototype.value=KA,z.prototype.at=$E,z.prototype.chain=SE,z.prototype.commit=CE,z.prototype.next=AE,z.prototype.plant=TE,z.prototype.reverse=EE,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=RE,z.prototype.first=z.prototype.head,ca&&(z.prototype[ca]=ME),z},Dt=It();An?((An.exports=Dt)._=Dt,xi._=Dt):_n._=Dt}).call(P1)}(Wa,Wa.exports)),Wa.exports}var B1=H1();Rn("K",Ca(B1)).debounce(function(){this.rebuildDisplayText()},300);var bf={exports:{}},xf;function j1(){return xf||(xf=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(bf)),bf.exports}j1();const z1=!0,gn="u-",W1="uplot",U1=gn+"hz",V1=gn+"vt",q1=gn+"title",G1=gn+"wrap",Y1=gn+"under",K1=gn+"over",Q1=gn+"axis",Xr=gn+"off",Z1=gn+"select",J1=gn+"cursor-x",X1=gn+"cursor-y",ex=gn+"cursor-pt",tx=gn+"legend",nx=gn+"live",ix=gn+"inline",rx=gn+"series",ox=gn+"marker",_f=gn+"label",sx=gn+"value",$s="width",Ss="height",Cs="top",kf="bottom",Lo="left",Zc="right",Jc="#000",$f=Jc+"0",Sf="mousemove",Cf="mousedown",Xc="mouseup",Af="mouseenter",Mf="mouseleave",Tf="dblclick",ax="resize",lx="scroll",Ef="change",Ua="dppxchange",eu="--",Oo=typeof window<"u",tu=Oo?document:null,Io=Oo?window:null,cx=Oo?navigator:null;let xt,Va;function nu(){let n=devicePixelRatio;xt!=n&&(xt=n,Va&&ou(Ef,Va,nu),Va=matchMedia(`(min-resolution: ${xt-.001}dppx) and (max-resolution: ${xt+.001}dppx)`),eo(Ef,Va,nu),Io.dispatchEvent(new CustomEvent(Ua)))}function ai(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function iu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function Ht(n,t,e){n.style[t]=e+"px"}function Ei(n,t,e,i){let m=tu.createElement(n);return t!=null&&ai(m,t),e!=null&&e.insertBefore(m,i),m}function vi(n,t){return Ei("div",n,t)}const Rf=new WeakMap;function Hi(n,t,e,i,m){let g="translate("+t+"px,"+e+"px)",v=Rf.get(n);g!=v&&(n.style.transform=g,Rf.set(n,g),t<0||e<0||t>i||e>m?ai(n,Xr):iu(n,Xr))}const Lf=new WeakMap;function Of(n,t,e){let i=t+e,m=Lf.get(n);i!=m&&(Lf.set(n,i),n.style.background=t,n.style.borderColor=e)}const If=new WeakMap;function Df(n,t,e,i){let m=t+""+e,g=If.get(n);m!=g&&(If.set(n,m),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=i?-t/2+"px":0,n.style.marginTop=i?-e/2+"px":0)}const ru={passive:!0},ux={...ru,capture:!0};function eo(n,t,e,i){t.addEventListener(n,e,i?ux:ru)}function ou(n,t,e,i){t.removeEventListener(n,e,ru)}Oo&&nu();function Ri(n,t,e,i){let m;e=e||0,i=i||t.length-1;let g=i<=2147483647;for(;i-e>1;)m=g?e+i>>1:ci((e+i)/2),t[m]<n?e=m:i=m;return n-t[e]<=t[i]-n?e:i}function Do(n,t,e,i){for(let m=i==1?t:e;m>=t&&m<=e;m+=i)if(n[m]!=null)return m;return-1}function hx(n,t,e,i){let m=gt,g=-gt;if(i==1)m=n[t],g=n[e];else if(i==-1)m=n[e],g=n[t];else for(let v=t;v<=e;v++){let w=n[v];w!=null&&(w<m&&(m=w),w>g&&(g=w))}return[m,g]}function dx(n,t,e){let i=gt,m=-gt;for(let g=t;g<=e;g++){let v=n[g];v!=null&&v>0&&(v<i&&(i=v),v>m&&(m=v))}return[i,m]}function qa(n,t,e,i){let m=Pf(n),g=Pf(t);n==t&&(m==-1?(n*=e,t/=e):(n/=e,t*=e));let v=e==10?er:Hf,w=m==1?ci:yi,h=g==1?yi:ci,f=w(v(mn(n))),a=h(v(mn(t))),c=No(e,f),s=No(e,a);return e==10&&(f<0&&(c=Rt(c,-f)),a<0&&(s=Rt(s,-a))),i||e==2?(n=c*m,t=s*g):(n=Vf(n,c),t=Ka(t,s)),[n,t]}function su(n,t,e,i){let m=qa(n,t,e,i);return n==0&&(m[0]=0),t==0&&(m[1]=0),m}const au=.1,Nf={mode:3,pad:au},As={pad:0,soft:null,mode:0},px={min:As,max:As};function Ga(n,t,e,i){return Qa(e)?Ff(n,t,e):(As.pad=e,As.soft=i?0:null,As.mode=i?3:0,Ff(n,t,px))}function bt(n,t){return n??t}function fx(n,t,e){for(t=bt(t,0),e=bt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Ff(n,t,e){let i=e.min,m=e.max,g=bt(i.pad,0),v=bt(m.pad,0),w=bt(i.hard,-gt),h=bt(m.hard,gt),f=bt(i.soft,gt),a=bt(m.soft,-gt),c=bt(i.mode,0),s=bt(m.mode,0),l=t-n,o=er(l),u=In(mn(n),mn(t)),p=er(u),y=mn(p-o);(l<1e-24||y>10)&&(l=0,(n==0||t==0)&&(l=1e-24,c==2&&f!=gt&&(g=0),s==2&&a!=-gt&&(v=0)));let x=l||u||1e3,R=er(x),A=No(10,ci(R)),k=x*(l==0?n==0?.1:1:g),b=Rt(Vf(n-k,A/10),24),M=n>=f&&(c==1||c==3&&b<=f||c==2&&b>=f)?f:gt,E=In(w,b<M&&n>=M?M:wi(M,b)),O=x*(l==0?t==0?.1:1:v),T=Rt(Ka(t+O,A/10),24),N=t<=a&&(s==1||s==3&&T>=a||s==2&&T<=a)?a:-gt,$=wi(h,T>N&&t<=N?N:In(N,T));return E==$&&E==0&&($=100),[E,$]}const gx=new Intl.NumberFormat(Oo?cx.language:"en-US"),lu=n=>gx.format(n),li=Math,Ya=li.PI,mn=li.abs,ci=li.floor,vn=li.round,yi=li.ceil,wi=li.min,In=li.max,No=li.pow,Pf=li.sign,er=li.log10,Hf=li.log2,mx=(n,t=1)=>li.sinh(n)*t,cu=(n,t=1)=>li.asinh(n/t),gt=1/0;function Bf(n){return(er((n^n>>31)-(n>>31))|0)+1}function uu(n,t,e){return wi(In(n,t),e)}function mt(n){return typeof n=="function"?n:()=>n}const vx=()=>{},jf=n=>n,zf=(n,t)=>t,yx=n=>null,Wf=n=>!0,Uf=(n,t)=>n==t,wx=/\.\d*?(?=9{6,}|0{6,})/gm,to=n=>{if(Gf(n)||$r.has(n))return n;const t=`${n}`,e=t.match(wx);if(e==null)return n;let i=e[0].length-1;if(t.indexOf("e-")!=-1){let[m,g]=t.split("e");return+`${to(m)}e${g}`}return Rt(n,i)};function no(n,t){return to(Rt(to(n/t))*t)}function Ka(n,t){return to(yi(to(n/t))*t)}function Vf(n,t){return to(ci(to(n/t))*t)}function Rt(n,t=0){if(Gf(n))return n;let e=10**t,i=n*e*(1+Number.EPSILON);return vn(i)/e}const $r=new Map;function qf(n){return((""+n).split(".")[1]||"").length}function Ms(n,t,e,i){let m=[],g=i.map(qf);for(let v=t;v<e;v++){let w=mn(v),h=Rt(No(n,v),w);for(let f=0;f<i.length;f++){let a=n==10?+`${i[f]}e${v}`:i[f]*h,c=(v>=0?0:w)+(v>=g[f]?0:g[f]),s=n==10?a:Rt(a,c);m.push(s),$r.set(s,c)}}return m}const Ts={},hu=[],Fo=[null,null],Sr=Array.isArray,Gf=Number.isInteger,bx=n=>n===void 0;function Yf(n){return typeof n=="string"}function Qa(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function xx(n){return n!=null&&typeof n=="object"}const _x=Object.getPrototypeOf(Uint8Array),Kf="__proto__";function Po(n,t=Qa){let e;if(Sr(n)){let i=n.find(m=>m!=null);if(Sr(i)||t(i)){e=Array(n.length);for(let m=0;m<n.length;m++)e[m]=Po(n[m],t)}else e=n.slice()}else if(n instanceof _x)e=n.slice();else if(t(n)){e={};for(let i in n)i!=Kf&&(e[i]=Po(n[i],t))}else e=n;return e}function cn(n){let t=arguments;for(let e=1;e<t.length;e++){let i=t[e];for(let m in i)m!=Kf&&(Qa(n[m])?cn(n[m],Po(i[m])):n[m]=Po(i[m]))}return n}const kx=0,$x=1,Sx=2;function Cx(n,t,e){for(let i=0,m,g=-1;i<t.length;i++){let v=t[i];if(v>g){for(m=v-1;m>=0&&n[m]==null;)n[m--]=null;for(m=v+1;m<e&&n[m]==null;)n[g=m++]=null}}}function Ax(n,t){if(Ex(n)){let v=n[0].slice();for(let w=1;w<n.length;w++)v.push(...n[w].slice(1));return Rx(v[0])||(v=Tx(v)),v}let e=new Set;for(let v=0;v<n.length;v++){let w=n[v][0],h=w.length;for(let f=0;f<h;f++)e.add(w[f])}let i=[Array.from(e).sort((v,w)=>v-w)],m=i[0].length,g=new Map;for(let v=0;v<m;v++)g.set(i[0][v],v);for(let v=0;v<n.length;v++){let w=n[v],h=w[0];for(let f=1;f<w.length;f++){let a=w[f],c=Array(m).fill(void 0),s=t?t[v][f]:$x,l=[];for(let o=0;o<a.length;o++){let u=a[o],p=g.get(h[o]);u===null?s!=kx&&(c[p]=u,s==Sx&&l.push(p)):c[p]=u}Cx(c,l,m),i.push(c)}}return i}const Mx=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Tx(n){let t=n[0],e=t.length,i=Array(e);for(let g=0;g<i.length;g++)i[g]=g;i.sort((g,v)=>t[g]-t[v]);let m=[];for(let g=0;g<n.length;g++){let v=n[g],w=Array(e);for(let h=0;h<e;h++)w[h]=v[i[h]];m.push(w)}return m}function Ex(n){let t=n[0][0],e=t.length;for(let i=1;i<n.length;i++){let m=n[i][0];if(m.length!=e)return!1;if(m!=t){for(let g=0;g<e;g++)if(m[g]!=t[g])return!1}}return!0}function Rx(n,t=100){const e=n.length;if(e<=1)return!0;let i=0,m=e-1;for(;i<=m&&n[i]==null;)i++;for(;m>=i&&n[m]==null;)m--;if(m<=i)return!0;const g=In(1,ci((m-i+1)/t));for(let v=n[i],w=i+g;w<=m;w+=g){const h=n[w];if(h!=null){if(h<=v)return!1;v=h}}return!0}const Qf=["January","February","March","April","May","June","July","August","September","October","November","December"],Zf=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Jf(n){return n.slice(0,3)}const Lx=Zf.map(Jf),Ox=Qf.map(Jf),Ix={MMMM:Qf,MMM:Ox,WWWW:Zf,WWW:Lx};function Es(n){return(n<10?"0":"")+n}function Dx(n){return(n<10?"00":n<100?"0":"")+n}const Nx={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Es(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Es(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Es(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Es(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Es(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>Dx(n.getMilliseconds())};function du(n,t){t=t||Ix;let e=[],i=/\{([a-z]+)\}|[^{]+/gi,m;for(;m=i.exec(n);)e.push(m[0][0]=="{"?Nx[m[1]]:m[0]);return g=>{let v="";for(let w=0;w<e.length;w++)v+=typeof e[w]=="string"?e[w]:e[w](g,t);return v}}const Fx=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Px(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==Fx?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const Xf=n=>n%1==0,Za=[1,2,2.5,5],Hx=Ms(10,-32,0,Za),eg=Ms(10,0,32,Za),Bx=eg.filter(Xf),io=Hx.concat(eg),pu=`
1407
+ `,tg="{YYYY}",ng=pu+tg,ig="{M}/{D}",Rs=pu+ig,Ja=Rs+"/{YY}",rg="{aa}",jx="{h}:{mm}",Ho=jx+rg,og=pu+Ho,sg=":{ss}",kt=null;function ag(n){let t=n*1e3,e=t*60,i=e*60,m=i*24,g=m*30,v=m*365,w=(n==1?Ms(10,0,3,Za).filter(Xf):Ms(10,-3,0,Za)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,i,i*2,i*3,i*4,i*6,i*8,i*12,m,m*2,m*3,m*4,m*5,m*6,m*7,m*8,m*9,m*10,m*15,g,g*2,g*3,g*4,g*6,v,v*2,v*5,v*10,v*25,v*50,v*100]);const h=[[v,tg,kt,kt,kt,kt,kt,kt,1],[m*28,"{MMM}",ng,kt,kt,kt,kt,kt,1],[m,ig,ng,kt,kt,kt,kt,kt,1],[i,"{h}"+rg,Ja,kt,Rs,kt,kt,kt,1],[e,Ho,Ja,kt,Rs,kt,kt,kt,1],[t,sg,Ja+" "+Ho,kt,Rs+" "+Ho,kt,og,kt,1],[n,sg+".{fff}",Ja+" "+Ho,kt,Rs+" "+Ho,kt,og,kt,1]];function f(a){return(c,s,l,o,u,p)=>{let y=[],x=u>=v,R=u>=g&&u<v,A=a(l),k=Rt(A*n,3),b=fu(A.getFullYear(),x?0:A.getMonth(),R||x?1:A.getDate()),M=Rt(b*n,3);if(R||x){let E=R?u/g:0,O=x?u/v:0,T=k==M?k:Rt(fu(b.getFullYear()+O,b.getMonth()+E,1)*n,3),N=new Date(vn(T/n)),$=N.getFullYear(),_=N.getMonth();for(let S=0;T<=o;S++){let L=fu($+O*S,_+E*S,1),I=L-a(Rt(L*n,3));T=Rt((+L+I)*n,3),T<=o&&y.push(T)}}else{let E=u>=m?m:u,O=ci(l)-ci(k),T=M+O+Ka(k-M,E);y.push(T);let N=a(T),$=N.getHours()+N.getMinutes()/e+N.getSeconds()/i,_=u/i,S=c.axes[s]._space,L=p/S;for(;T=Rt(T+u,n==1?0:3),!(T>o);)if(_>1){let I=ci(Rt($+_,6))%24,F=a(T).getHours()-I;F>1&&(F=-1),T-=F*i,$=($+_)%24;let H=y[y.length-1];Rt((T-H)/u,3)*L>=.7&&y.push(T)}else y.push(T)}return y}}return[w,h,f]}const[zx,Wx,Ux]=ag(1),[Vx,qx,Gx]=ag(.001);Ms(2,-53,53,[1]);function lg(n,t){return n.map(e=>e.map((i,m)=>m==0||m==8||i==null?i:t(m==1||e[8]==0?i:e[1]+i)))}function cg(n,t){return(e,i,m,g,v)=>{let w=t.find(o=>v>=o[0])||t[t.length-1],h,f,a,c,s,l;return i.map(o=>{let u=n(o),p=u.getFullYear(),y=u.getMonth(),x=u.getDate(),R=u.getHours(),A=u.getMinutes(),k=u.getSeconds(),b=p!=h&&w[2]||y!=f&&w[3]||x!=a&&w[4]||R!=c&&w[5]||A!=s&&w[6]||k!=l&&w[7]||w[1];return h=p,f=y,a=x,c=R,s=A,l=k,b(u)})}}function Yx(n,t){let e=du(t);return(i,m,g,v,w)=>m.map(h=>e(n(h)))}function fu(n,t,e){return new Date(n,t,e)}function ug(n,t){return t(n)}const Kx="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function hg(n,t){return(e,i,m,g)=>g==null?eu:t(n(i))}function Qx(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function Zx(n,t){return n.series[t].fill(n,t)}const Jx={show:!0,live:!0,isolate:!1,mount:vx,markers:{show:!0,width:2,stroke:Qx,fill:Zx,dash:"solid"},idx:null,idxs:null,values:[]};function Xx(n,t){let e=n.cursor.points,i=vi(),m=e.size(n,t);Ht(i,$s,m),Ht(i,Ss,m);let g=m/-2;Ht(i,"marginLeft",g),Ht(i,"marginTop",g);let v=e.width(n,t,m);return v&&Ht(i,"borderWidth",v),i}function e_(n,t){let e=n.series[t].points;return e._fill||e._stroke}function t_(n,t){let e=n.series[t].points;return e._stroke||e._fill}function n_(n,t){return n.series[t].points.size}const gu=[0,0];function i_(n,t,e){return gu[0]=t,gu[1]=e,gu}function Xa(n,t,e,i=!0){return m=>{m.button==0&&(!i||m.target==t)&&e(m)}}function mu(n,t,e,i=!0){return m=>{(!i||m.target==t)&&e(m)}}const r_={show:!0,x:!0,y:!0,lock:!1,move:i_,points:{one:!1,show:Xx,size:n_,width:0,stroke:t_,fill:e_},bind:{mousedown:Xa,mouseup:Xa,click:Xa,dblclick:Xa,mousemove:mu,mouseleave:mu,mouseenter:mu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,i,m)=>i-m,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},dg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},vu=cn({},dg,{filter:zf}),pg=cn({},vu,{size:10}),fg=cn({},dg,{show:!1}),yu='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"',gg="bold "+yu,mg=1.5,vg={show:!0,scale:"x",stroke:Jc,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:gg,side:2,grid:vu,ticks:pg,border:fg,font:yu,lineGap:mg,rotate:0},o_="Value",s_="Time",yg={show:!0,scale:"x",auto:!1,sorted:1,min:gt,max:-gt,idxs:[]};function a_(n,t,e,i,m){return t.map(g=>g==null?"":lu(g))}function l_(n,t,e,i,m,g,v){let w=[],h=$r.get(m)||0;e=v?e:Rt(Ka(e,m),h);for(let f=e;f<=i;f=Rt(f+m,h))w.push(Object.is(f,-0)?0:f);return w}function wu(n,t,e,i,m,g,v){const w=[],h=n.scales[n.axes[t].scale].log,f=h==10?er:Hf,a=ci(f(e));m=No(h,a),h==10&&(m=io[Ri(m,io)]);let c=e,s=m*h;h==10&&(s=io[Ri(s,io)]);do w.push(c),c=c+m,h==10&&!$r.has(c)&&(c=Rt(c,$r.get(m))),c>=s&&(m=c,s=m*h,h==10&&(s=io[Ri(s,io)]));while(c<=i);return w}function c_(n,t,e,i,m,g,v){let w=n.scales[n.axes[t].scale].asinh,h=i>w?wu(n,t,In(w,e),i,m):[w],f=i>=0&&e<=0?[0]:[];return(e<-w?wu(n,t,In(w,-i),-e,m):[w]).reverse().map(a=>-a).concat(f,h)}const wg=/./,u_=/[12357]/,h_=/[125]/,bg=/1/,bu=(n,t,e,i)=>n.map((m,g)=>t==4&&m==0||g%i==0&&e.test(m.toExponential()[m<0?1:0])?m:null);function d_(n,t,e,i,m){let g=n.axes[e],v=g.scale,w=n.scales[v],h=n.valToPos,f=g._space,a=h(10,v),c=h(9,v)-a>=f?wg:h(7,v)-a>=f?u_:h(5,v)-a>=f?h_:bg;if(c==bg){let s=mn(h(1,v)-a);if(s<f)return bu(t.slice().reverse(),w.distr,c,yi(f/s)).reverse()}return bu(t,w.distr,c,1)}function p_(n,t,e,i,m){let g=n.axes[e],v=g.scale,w=g._space,h=n.valToPos,f=mn(h(1,v)-h(2,v));return f<w?bu(t.slice().reverse(),3,wg,yi(w/f)).reverse():t}function f_(n,t,e,i){return i==null?eu:t==null?"":lu(t)}const xg={show:!0,scale:"y",stroke:Jc,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:gg,side:3,grid:vu,ticks:pg,border:fg,font:yu,lineGap:mg,rotate:0};function g_(n,t){let e=3+(n||1)*2;return Rt(e*t,3)}function m_(n,t){let{scale:e,idxs:i}=n.series[0],m=n._data[0],g=n.valToPos(m[i[0]],e,!0),v=n.valToPos(m[i[1]],e,!0),w=mn(v-g),h=n.series[t],f=w/(h.points.space*xt);return i[1]-i[0]<=f}const _g={scale:null,auto:!0,sorted:0,min:gt,max:-gt},kg=(n,t,e,i,m)=>m,$g={show:!0,auto:!0,sorted:0,gaps:kg,alpha:1,facets:[cn({},_g,{scale:"x"}),cn({},_g,{scale:"y"})]},Sg={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:kg,alpha:1,points:{show:m_,filter:null},values:null,min:gt,max:-gt,idxs:[],path:null,clip:null};function v_(n,t,e,i,m){return e/10}const Cg={time:z1,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},y_=cn({},Cg,{time:!1,ori:1}),Ag={};function Mg(n,t){let e=Ag[n];return e||(e={key:n,plots:[],sub(i){e.plots.push(i)},unsub(i){e.plots=e.plots.filter(m=>m!=i)},pub(i,m,g,v,w,h,f){for(let a=0;a<e.plots.length;a++)e.plots[a]!=m&&e.plots[a].pub(i,m,g,v,w,h,f)}},n!=null&&(Ag[n]=e)),e}const Bo=1,xu=2;function ro(n,t,e){const i=n.mode,m=n.series[t],g=i==2?n._data[t]:n._data,v=n.scales,w=n.bbox;let h=g[0],f=i==2?g[1]:g[t],a=i==2?v[m.facets[0].scale]:v[n.series[0].scale],c=i==2?v[m.facets[1].scale]:v[m.scale],s=w.left,l=w.top,o=w.width,u=w.height,p=n.valToPosH,y=n.valToPosV;return a.ori==0?e(m,h,f,a,c,p,y,s,l,o,u,tl,jo,il,Rg,Og):e(m,h,f,a,c,y,p,l,s,u,o,nl,zo,$u,Lg,Ig)}function _u(n,t){let e=0,i=0,m=bt(n.bands,hu);for(let g=0;g<m.length;g++){let v=m[g];v.series[0]==t?e=v.dir:v.series[1]==t&&(v.dir==1?i|=1:i|=2)}return[e,i==1?-1:i==2?1:i==3?2:0]}function w_(n,t,e,i,m){let g=n.mode,v=n.series[t],w=g==2?v.facets[1].scale:v.scale,h=n.scales[w];return m==-1?h.min:m==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function tr(n,t,e,i,m,g){return ro(n,t,(v,w,h,f,a,c,s,l,o,u,p)=>{let y=v.pxRound;const x=f.dir*(f.ori==0?1:-1),R=f.ori==0?jo:zo;let A,k;x==1?(A=e,k=i):(A=i,k=e);let b=y(c(w[A],f,u,l)),M=y(s(h[A],a,p,o)),E=y(c(w[k],f,u,l)),O=y(s(g==1?a.max:a.min,a,p,o)),T=new Path2D(m);return R(T,E,O),R(T,b,O),R(T,b,M),T})}function el(n,t,e,i,m,g){let v=null;if(n.length>0){v=new Path2D;const w=t==0?il:$u;let h=e;for(let c=0;c<n.length;c++){let s=n[c];if(s[1]>s[0]){let l=s[0]-h;l>0&&w(v,h,i,l,i+g),h=s[1]}}let f=e+m-h,a=10;f>0&&w(v,h,i-a/2,f,i+g+a)}return v}function b_(n,t,e){let i=n[n.length-1];i&&i[0]==t?i[1]=e:n.push([t,e])}function ku(n,t,e,i,m,g,v){let w=[],h=n.length;for(let f=m==1?e:i;f>=e&&f<=i;f+=m)if(t[f]===null){let a=f,c=f;if(m==1)for(;++f<=i&&t[f]===null;)c=f;else for(;--f>=e&&t[f]===null;)c=f;let s=g(n[a]),l=c==a?s:g(n[c]),o=a-m;s=v<=0&&o>=0&&o<h?g(n[o]):s;let u=c+m;l=v>=0&&u>=0&&u<h?g(n[u]):l,l>=s&&w.push([s,l])}return w}function Tg(n){return n==0?jf:n==1?vn:t=>no(t,n)}function Eg(n){let t=n==0?tl:nl,e=n==0?(m,g,v,w,h,f)=>{m.arcTo(g,v,w,h,f)}:(m,g,v,w,h,f)=>{m.arcTo(v,g,h,w,f)},i=n==0?(m,g,v,w,h)=>{m.rect(g,v,w,h)}:(m,g,v,w,h)=>{m.rect(v,g,h,w)};return(m,g,v,w,h,f=0,a=0)=>{f==0&&a==0?i(m,g,v,w,h):(f=wi(f,w/2,h/2),a=wi(a,w/2,h/2),t(m,g+f,v),e(m,g+w,v,g+w,v+h,f),e(m,g+w,v+h,g,v+h,a),e(m,g,v+h,g,v,a),e(m,g,v,g+w,v,f),m.closePath())}}const tl=(n,t,e)=>{n.moveTo(t,e)},nl=(n,t,e)=>{n.moveTo(e,t)},jo=(n,t,e)=>{n.lineTo(t,e)},zo=(n,t,e)=>{n.lineTo(e,t)},il=Eg(0),$u=Eg(1),Rg=(n,t,e,i,m,g)=>{n.arc(t,e,i,m,g)},Lg=(n,t,e,i,m,g)=>{n.arc(e,t,i,m,g)},Og=(n,t,e,i,m,g,v)=>{n.bezierCurveTo(t,e,i,m,g,v)},Ig=(n,t,e,i,m,g,v)=>{n.bezierCurveTo(e,t,m,i,v,g)};function Dg(n){return(t,e,i,m,g)=>ro(t,e,(v,w,h,f,a,c,s,l,o,u,p)=>{let{pxRound:y,points:x}=v,R,A;f.ori==0?(R=tl,A=Rg):(R=nl,A=Lg);const k=Rt(x.width*xt,3);let b=(x.size-x.width)/2*xt,M=Rt(b*2,3),E=new Path2D,O=new Path2D,{left:T,top:N,width:$,height:_}=t.bbox;il(O,T-M,N-M,$+M*2,_+M*2);const S=L=>{if(h[L]!=null){let I=y(c(w[L],f,u,l)),F=y(s(h[L],a,p,o));R(E,I+b,F),A(E,I,F,b,0,Ya*2)}};if(g)g.forEach(S);else for(let L=i;L<=m;L++)S(L);return{stroke:k>0?E:null,fill:E,clip:O,flags:Bo|xu}})}function Ng(n){return(t,e,i,m,g,v)=>{i!=m&&(g!=i&&v!=i&&n(t,e,i),g!=m&&v!=m&&n(t,e,m),n(t,e,v))}}const x_=Ng(jo),__=Ng(zo);function Fg(n){const t=bt(n==null?void 0:n.alignGaps,0);return(e,i,m,g)=>ro(e,i,(v,w,h,f,a,c,s,l,o,u,p)=>{let y=v.pxRound,x=X=>y(c(X,f,u,l)),R=X=>y(s(X,a,p,o)),A,k;f.ori==0?(A=jo,k=x_):(A=zo,k=__);const b=f.dir*(f.ori==0?1:-1),M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Bo},E=M.stroke;let O=gt,T=-gt,N,$,_,S=x(w[b==1?m:g]),L=Do(h,m,g,1*b),I=Do(h,m,g,-1*b),F=x(w[L]),H=x(w[I]),W=!1;for(let X=b==1?m:g;X>=m&&X<=g;X+=b){let G=x(w[X]),Z=h[X];G==S?Z!=null?($=R(Z),O==gt&&(A(E,G,$),N=$),O=wi($,O),T=In($,T)):Z===null&&(W=!0):(O!=gt&&(k(E,S,O,T,N,$),_=S),Z!=null?($=R(Z),A(E,G,$),O=T=N=$):(O=gt,T=-gt,Z===null&&(W=!0)),S=G)}O!=gt&&O!=T&&_!=S&&k(E,S,O,T,N,$);let[V,q]=_u(e,i);if(v.fill!=null||V!=0){let X=M.fill=new Path2D(E),G=v.fillTo(e,i,v.min,v.max,V),Z=R(G);A(X,H,Z),A(X,F,Z)}if(!v.spanGaps){let X=[];W&&X.push(...ku(w,h,m,g,b,x,t)),M.gaps=X=v.gaps(e,i,m,g,X),M.clip=el(X,f.ori,l,o,u,p)}return q!=0&&(M.band=q==2?[tr(e,i,m,g,E,-1),tr(e,i,m,g,E,1)]:tr(e,i,m,g,E,q)),M})}function k_(n){const t=bt(n.align,1),e=bt(n.ascDesc,!1),i=bt(n.alignGaps,0),m=bt(n.extend,!1);return(g,v,w,h)=>ro(g,v,(f,a,c,s,l,o,u,p,y,x,R)=>{let A=f.pxRound,{left:k,width:b}=g.bbox,M=V=>A(o(V,s,x,p)),E=V=>A(u(V,l,R,y)),O=s.ori==0?jo:zo;const T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Bo},N=T.stroke,$=s.dir*(s.ori==0?1:-1);w=Do(c,w,h,1),h=Do(c,w,h,-1);let _=E(c[$==1?w:h]),S=M(a[$==1?w:h]),L=S,I=S;m&&t==-1&&(I=k,O(N,I,_)),O(N,S,_);for(let V=$==1?w:h;V>=w&&V<=h;V+=$){let q=c[V];if(q==null)continue;let X=M(a[V]),G=E(q);t==1?O(N,X,_):O(N,L,G),O(N,X,G),_=G,L=X}let F=L;m&&t==1&&(F=k+b,O(N,F,_));let[H,W]=_u(g,v);if(f.fill!=null||H!=0){let V=T.fill=new Path2D(N),q=f.fillTo(g,v,f.min,f.max,H),X=E(q);O(V,F,X),O(V,I,X)}if(!f.spanGaps){let V=[];V.push(...ku(a,c,w,h,$,M,i));let q=f.width*xt/2,X=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),T.gaps=V=f.gaps(g,v,w,h,V),T.clip=el(V,s.ori,p,y,x,R)}return W!=0&&(T.band=W==2?[tr(g,v,w,h,N,-1),tr(g,v,w,h,N,1)]:tr(g,v,w,h,N,W)),T})}function Pg(n,t,e,i,m,g,v=gt){if(n.length>1){let w=null;for(let h=0,f=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let a=mn(n[h]-n[w]);a<f&&(f=a,v=mn(e(n[h],i,m,g)-e(n[w],i,m,g)))}w=h}}return v}function $_(n){n=n||Ts;const t=bt(n.size,[.6,gt,1]),e=n.align||0,i=n.gap||0;let m=n.radius;m=m==null?[0,0]:typeof m=="number"?[m,0]:m;const g=mt(m),v=1-t[0],w=bt(t[1],gt),h=bt(t[2],1),f=bt(n.disp,Ts),a=bt(n.each,l=>{}),{fill:c,stroke:s}=f;return(l,o,u,p)=>ro(l,o,(y,x,R,A,k,b,M,E,O,T,N)=>{let $=y.pxRound,_=e,S=i*xt,L=w*xt,I=h*xt,F,H;A.ori==0?[F,H]=g(l,o):[H,F]=g(l,o);const W=A.dir*(A.ori==0?1:-1);let V=A.ori==0?il:$u,q=A.ori==0?a:(Be,ce,Ce,Te,We,qe,ct)=>{a(Be,ce,Ce,We,Te,ct,qe)},X=bt(l.bands,hu).find(Be=>Be.series[0]==o),G=X!=null?X.dir:0,Z=y.fillTo(l,o,y.min,y.max,G),ie=$(M(Z,k,N,O)),J,ae,me,ye=T,fe=$(y.width*xt),_e=!1,it=null,Nt=null,lt=null,dt=null;c!=null&&(fe==0||s!=null)&&(_e=!0,it=c.values(l,o,u,p),Nt=new Map,new Set(it).forEach(Be=>{Be!=null&&Nt.set(Be,new Path2D)}),fe>0&&(lt=s.values(l,o,u,p),dt=new Map,new Set(lt).forEach(Be=>{Be!=null&&dt.set(Be,new Path2D)})));let{x0:rn,size:Lt}=f;if(rn!=null&&Lt!=null){_=1,x=rn.values(l,o,u,p),rn.unit==2&&(x=x.map(ce=>l.posToVal(E+ce*T,A.key,!0)));let Be=Lt.values(l,o,u,p);Lt.unit==2?ae=Be[0]*T:ae=b(Be[0],A,T,E)-b(0,A,T,E),ye=Pg(x,R,b,A,T,E,ye),me=ye-ae+S}else ye=Pg(x,R,b,A,T,E,ye),me=ye*v+S,ae=ye-me;me<1&&(me=0),fe>=ae/2&&(fe=0),me<5&&($=jf);let qt=me>0,Wi=ye-me-(qt?fe:0);ae=$(uu(Wi,I,L)),J=(_==0?ae/2:_==W?0:ae)-_*W*((_==0?S/2:0)+(qt?fe/2:0));const wn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Zt=_e?null:new Path2D;let De=null;if(X!=null)De=l.data[X.series[1]];else{let{y0:Be,y1:ce}=f;Be!=null&&ce!=null&&(R=ce.values(l,o,u,p),De=Be.values(l,o,u,p))}let Pe=F*ae,Jt=H*ae;for(let Be=W==1?u:p;Be>=u&&Be<=p;Be+=W){let ce=R[Be];if(ce==null)continue;if(De!=null){let st=De[Be]??0;if(ce-st==0)continue;ie=M(st,k,N,O)}let Ce=A.distr!=2||f!=null?x[Be]:Be,Te=b(Ce,A,T,E),We=M(bt(ce,Z),k,N,O),qe=$(Te-J),ct=$(In(We,ie)),ut=$(wi(We,ie)),ot=ct-ut;if(ce!=null){let st=ce<0?Jt:Pe,et=ce<0?Pe:Jt;_e?(fe>0&&lt[Be]!=null&&V(dt.get(lt[Be]),qe,ut+ci(fe/2),ae,In(0,ot-fe),st,et),it[Be]!=null&&V(Nt.get(it[Be]),qe,ut+ci(fe/2),ae,In(0,ot-fe),st,et)):V(Zt,qe,ut+ci(fe/2),ae,In(0,ot-fe),st,et),q(l,o,Be,qe-fe/2,ut,ae+fe,ot)}}return fe>0?wn.stroke=_e?dt:Zt:_e||(wn._fill=y.width==0?y._fill:y._stroke??y._fill,wn.width=0),wn.fill=_e?Nt:Zt,wn})}function S_(n,t){const e=bt(t==null?void 0:t.alignGaps,0);return(i,m,g,v)=>ro(i,m,(w,h,f,a,c,s,l,o,u,p,y)=>{let x=w.pxRound,R=F=>x(s(F,a,p,o)),A=F=>x(l(F,c,y,u)),k,b,M;a.ori==0?(k=tl,M=jo,b=Og):(k=nl,M=zo,b=Ig);const E=a.dir*(a.ori==0?1:-1);g=Do(f,g,v,1),v=Do(f,g,v,-1);let O=R(h[E==1?g:v]),T=O,N=[],$=[];for(let F=E==1?g:v;F>=g&&F<=v;F+=E)if(f[F]!=null){let H=h[F],W=R(H);N.push(T=W),$.push(A(f[F]))}const _={stroke:n(N,$,k,M,b,x),fill:null,clip:null,band:null,gaps:null,flags:Bo},S=_.stroke;let[L,I]=_u(i,m);if(w.fill!=null||L!=0){let F=_.fill=new Path2D(S),H=w.fillTo(i,m,w.min,w.max,L),W=A(H);M(F,T,W),M(F,O,W)}if(!w.spanGaps){let F=[];F.push(...ku(h,f,g,v,E,R,e)),_.gaps=F=w.gaps(i,m,g,v,F),_.clip=el(F,a.ori,o,u,p,y)}return I!=0&&(_.band=I==2?[tr(i,m,g,v,S,-1),tr(i,m,g,v,S,1)]:tr(i,m,g,v,S,I)),_})}function C_(n){return S_(A_,n)}function A_(n,t,e,i,m,g){const v=n.length;if(v<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),v==2)i(w,n[1],t[1]);else{let h=Array(v),f=Array(v-1),a=Array(v-1),c=Array(v-1);for(let s=0;s<v-1;s++)a[s]=t[s+1]-t[s],c[s]=n[s+1]-n[s],f[s]=a[s]/c[s];h[0]=f[0];for(let s=1;s<v-1;s++)f[s]===0||f[s-1]===0||f[s-1]>0!=f[s]>0?h[s]=0:(h[s]=3*(c[s-1]+c[s])/((2*c[s]+c[s-1])/f[s-1]+(c[s]+2*c[s-1])/f[s]),isFinite(h[s])||(h[s]=0));h[v-1]=f[v-2];for(let s=0;s<v-1;s++)m(w,n[s]+c[s]/3,t[s]+h[s]*c[s]/3,n[s+1]-c[s]/3,t[s+1]-h[s+1]*c[s]/3,n[s+1],t[s+1])}return w}const Su=new Set;function Hg(){for(let n of Su)n.syncRect(!0)}Oo&&(eo(ax,Io,Hg),eo(lx,Io,Hg,!0),eo(Ua,Io,()=>{Dn.pxRatio=xt}));const M_=Fg(),T_=Dg();function Bg(n,t,e,i){return(i?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((m,g)=>Cu(m,g,t,e))}function E_(n,t){return n.map((e,i)=>i==0?{}:cn({},t,e))}function Cu(n,t,e,i){return cn({},t==0?e:i,n)}function jg(n,t,e){return t==null?Fo:[t,e]}const R_=jg;function L_(n,t,e){return t==null?Fo:Ga(t,e,au,!0)}function zg(n,t,e,i){return t==null?Fo:qa(t,e,n.scales[i].log,!1)}const O_=zg;function Wg(n,t,e,i){return t==null?Fo:su(t,e,n.scales[i].log,!1)}const I_=Wg;function D_(n,t,e,i,m){let g=In(Bf(n),Bf(t)),v=t-n,w=Ri(m/i*v,e);do{let h=e[w],f=i*h/v;if(f>=m&&g+(h<5?$r.get(h):0)<=17)return[h,f]}while(++w<e.length);return[0,0]}function Ug(n){let t,e;return n=n.replace(/(\d+)px/,(i,m)=>(t=vn((e=+m)*xt))+"px"),[n,t,e]}function N_(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Rt(t[2]*xt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Dn(n,t,e){const i={mode:bt(n.mode,1)},m=i.mode;function g(P,j){return((j.distr==3?er(P>0?P:j.clamp(i,P,j.min,j.max,j.key)):j.distr==4?cu(P,j.asinh):j.distr==100?j.fwd(P):P)-j._min)/(j._max-j._min)}function v(P,j,Y,K){let te=g(P,j);return K+Y*(j.dir==-1?1-te:te)}function w(P,j,Y,K){let te=g(P,j);return K+Y*(j.dir==-1?te:1-te)}function h(P,j,Y,K){return j.ori==0?v(P,j,Y,K):w(P,j,Y,K)}i.valToPosH=v,i.valToPosV=w;let f=!1;i.status=0;const a=i.root=vi(W1);if(n.id!=null&&(a.id=n.id),ai(a,n.class),n.title){let P=vi(q1,a);P.textContent=n.title}const c=Ei("canvas"),s=i.ctx=c.getContext("2d"),l=vi(G1,a);eo("click",l,P=>{P.target===u&&(Fe!=Dr||Ft!=Nr)&&xn.click(i,P)},!0);const o=i.under=vi(Y1,l);l.appendChild(c);const u=i.over=vi(K1,l);n=Po(n);const p=+bt(n.pxAlign,1),y=Tg(p);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(i,n)||n)});const x=n.ms||.001,R=i.series=m==1?Bg(n.series||[],yg,Sg,!1):E_(n.series||[null],$g),A=i.axes=Bg(n.axes||[],vg,xg,!0),k=i.scales={},b=i.bands=n.bands||[];b.forEach(P=>{P.fill=mt(P.fill||null),P.dir=bt(P.dir,-1)});const M=m==2?R[1].facets[0].scale:R[0].scale,E={axes:zh,series:Al},O=(n.drawOrder||["axes","series"]).map(P=>E[P]);function T(P){let j=k[P];if(j==null){let Y=(n.scales||Ts)[P]||Ts;if(Y.from!=null)T(Y.from),k[P]=cn({},k[Y.from],Y,{key:P});else{j=k[P]=cn({},P==M?Cg:y_,Y),j.key=P;let K=j.time,te=j.range,oe=Sr(te);if((P!=M||m==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Nf:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Nf:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&Qa(te))){let de=te;te=(we,be,xe)=>be==null?Fo:Ga(be,xe,de)}j.range=mt(te||(K?R_:P==M?j.distr==3?O_:j.distr==4?I_:jg:j.distr==3?zg:j.distr==4?Wg:L_)),j.auto=mt(oe?!1:j.auto),j.clamp=mt(j.clamp||v_),j._min=j._max=null}}}T("x"),T("y"),m==1&&R.forEach(P=>{T(P.scale)}),A.forEach(P=>{T(P.scale)});for(let P in n.scales)T(P);const N=k[M],$=N.distr;let _,S;N.ori==0?(ai(a,U1),_=v,S=w):(ai(a,V1),_=w,S=v);const L={};for(let P in k){let j=k[P];(j.min!=null||j.max!=null)&&(L[P]={min:j.min,max:j.max},j.min=j.max=null)}const I=n.tzDate||(P=>new Date(vn(P/x))),F=n.fmtDate||du,H=x==1?Ux(I):Gx(I),W=cg(I,lg(x==1?Wx:qx,F)),V=hg(I,ug(Kx,F)),q=[],X=i.legend=cn({},Jx,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=mt(Z.width),Z.dash=mt(Z.dash),Z.stroke=mt(Z.stroke),Z.fill=mt(Z.fill);let ie,J,ae,me=[],ye=[],fe,_e=!1,it={};if(X.live){const P=R[1]?R[1].values:null;_e=P!=null,fe=_e?P(i,1,0):{_:0};for(let j in fe)it[j]=eu}if(G)if(ie=Ei("table",tx,a),ae=Ei("tbody",null,ie),X.mount(i,ie),_e){J=Ei("thead",null,ie,ae);let P=Ei("tr",null,J);Ei("th",null,P);for(var Nt in fe)Ei("th",_f,P).textContent=Nt}else ai(ie,ix),X.live&&ai(ie,nx);const lt={show:!0},dt={show:!1};function rn(P,j){if(j==0&&(_e||!X.live||m==2))return Fo;let Y=[],K=Ei("tr",rx,ae,ae.childNodes[j]);ai(K,P.class),P.show||ai(K,Xr);let te=Ei("th",null,K);if(Z.show){let we=vi(ox,te);if(j>0){let be=Z.width(i,j);be&&(we.style.border=be+"px "+Z.dash(i,j)+" "+Z.stroke(i,j)),we.style.background=Z.fill(i,j)}}let oe=vi(_f,te);oe.textContent=P.label,j>0&&(Z.show||(oe.style.color=P.width>0?Z.stroke(i,j):Z.fill(i,j)),qt("click",te,we=>{if(Ne._lock)return;ir(we);let be=R.indexOf(P);if((we.ctrlKey||we.metaKey)!=X.isolate){let xe=R.some(($e,Ae)=>Ae>0&&Ae!=be&&$e.show);R.forEach(($e,Ae)=>{Ae>0&&An(Ae,xe?Ae==be?lt:dt:lt,!0,Gt.setSeries)})}else An(be,{show:!P.show},!0,Gt.setSeries)},!1),Vi&&qt(Af,te,we=>{Ne._lock||(ir(we),An(R.indexOf(P),ar,!0,Gt.setSeries))},!1));for(var de in fe){let we=Ei("td",sx,K);we.textContent="--",Y.push(we)}return[K,Y]}const Lt=new Map;function qt(P,j,Y,K=!0){const te=Lt.get(j)||{},oe=Ne.bind[P](i,j,Y,K);oe&&(eo(P,j,te[P]=oe),Lt.set(j,te))}function Wi(P,j,Y){const K=Lt.get(j)||{};for(let te in K)(P==null||te==P)&&(ou(te,j,K[te]),delete K[te]);P==null&&Lt.delete(j)}let wn=0,Zt=0,De=0,Pe=0,Jt=0,Be=0,ce=Jt,Ce=Be,Te=De,We=Pe,qe=0,ct=0,ut=0,ot=0;i.bbox={};let st=!1,et=!1,Bt=!1,Fn=!1,nr=!1,Jn=!1;function Ps(P,j,Y){(Y||P!=i.width||j!=i.height)&&Hs(P,j),or(!1),Bt=!0,et=!0,Or()}function Hs(P,j){i.width=wn=De=P,i.height=Zt=Pe=j,Jt=Be=0,Fh(),Ph();let Y=i.bbox;qe=Y.left=no(Jt*xt,.5),ct=Y.top=no(Be*xt,.5),ut=Y.width=no(De*xt,.5),ot=Y.height=no(Pe*xt,.5)}const xl=3;function Dh(){let P=!1,j=0;for(;!P;){j++;let Y=El(j),K=Rl(j);P=j==xl||Y&&K,P||(Hs(i.width,i.height),et=!0)}}function Nh({width:P,height:j}){Ps(P,j)}i.setSize=Nh;function Fh(){let P=!1,j=!1,Y=!1,K=!1;A.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:we}=te,be=de%2,xe=te.label!=null?te.labelSize:0,$e=we+xe;$e>0&&(be?(De-=$e,de==3?(Jt+=$e,K=!0):Y=!0):(Pe-=$e,de==0?(Be+=$e,P=!0):j=!0))}}),rr[0]=P,rr[1]=Y,rr[2]=j,rr[3]=K,De-=qi[1]+qi[3],Jt+=qi[3],Pe-=qi[2]+qi[0],Be+=qi[0]}function Ph(){let P=Jt+De,j=Be+Pe,Y=Jt,K=Be;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}}A.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 Ne=i.cursor=cn({},r_,{drag:{y:m==2}},n.cursor);if(Ne.dataIdx==null){let P=Ne.hover,j=P.skip=new Set(P.skip??[]);j.add(void 0);let Y=P.prox=mt(P.prox),K=P.bias??(P.bias=0);Ne.dataIdx=(te,oe,de,we)=>{if(oe==0)return de;let be=de,xe=Y(te,oe,de,we)??gt,$e=xe>=0&&xe<gt,Ae=N.ori==0?De:Pe,Ge=Ne.left,Mt=t[0],tt=t[oe];if(j.has(tt[de])){be=null;let Ue=null,Ke=null,Ee;if(K==0||K==-1)for(Ee=de;Ue==null&&Ee-- >0;)j.has(tt[Ee])||(Ue=Ee);if(K==0||K==1)for(Ee=de;Ke==null&&Ee++<tt.length;)j.has(tt[Ee])||(Ke=Ee);if(Ue!=null||Ke!=null)if($e){let $t=Ue==null?-1/0:_(Mt[Ue],N,Ae,0),Yt=Ke==null?1/0:_(Mt[Ke],N,Ae,0),Wt=Ge-$t,It=Yt-Ge;Wt<=It?Wt<=xe&&(be=Ue):It<=xe&&(be=Ke)}else be=Ke==null?Ue:Ue==null?Ke:de-Ue<=Ke-de?Ue:Ke}else $e&&mn(Ge-_(Mt[de],N,Ae,0))>xe&&(be=null);return be}}const ir=P=>{Ne.event=P};Ne.idxs=q,Ne._lock=!1;let Cn=Ne.points;Cn.show=mt(Cn.show),Cn.size=mt(Cn.size),Cn.stroke=mt(Cn.stroke),Cn.width=mt(Cn.width),Cn.fill=mt(Cn.fill);const Ui=i.focus=cn({},n.focus||{alpha:.3},Ne.focus),Vi=Ui.prox>=0,Cr=Vi&&Cn.one;let Pn=[],Ar=[],Mr=[];function _l(P,j){let Y=Cn.show(i,j);if(Y)return ai(Y,ex),ai(Y,P.class),Hi(Y,-10,-10,De,Pe),u.insertBefore(Y,Pn[j]),Y}function kl(P,j){if(m==1||j>0){let Y=m==1&&k[P.scale].time,K=P.value;P.value=Y?Yf(K)?hg(I,ug(K,F)):K||V:K||f_,P.label=P.label||(Y?s_:o_)}if(Cr||j>0){P.width=P.width==null?1:P.width,P.paths=P.paths||M_||yx,P.fillTo=mt(P.fillTo||w_),P.pxAlign=+bt(P.pxAlign,p),P.pxRound=Tg(P.pxAlign),P.stroke=mt(P.stroke||null),P.fill=mt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=g_(In(1,P.width),1),K=P.points=cn({},{size:Y,width:In(1,Y*.2),stroke:P.stroke,space:Y*2,paths:T_,_stroke:null,_fill:null},P.points);K.show=mt(K.show),K.filter=mt(K.filter),K.fill=mt(K.fill),K.stroke=mt(K.stroke),K.paths=mt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=rn(P,j);me.splice(j,0,Y[0]),ye.splice(j,0,Y[1]),X.values.push(null)}if(Ne.show){q.splice(j,0,null);let Y=null;Cr?j==0&&(Y=_l(P,j)):j>0&&(Y=_l(P,j)),Pn.splice(j,0,Y),Ar.splice(j,0,0),Mr.splice(j,0,0)}Xt("addSeries",j)}function Hh(P,j){j=j??R.length,P=m==1?Cu(P,j,yg,Sg):Cu(P,j,{},$g),R.splice(j,0,P),kl(R[j],j)}i.addSeries=Hh;function Bh(P){if(R.splice(P,1),G){X.values.splice(P,1),ye.splice(P,1);let j=me.splice(P,1)[0];Wi(null,j.firstChild),j.remove()}Ne.show&&(q.splice(P,1),Pn.splice(P,1)[0].remove(),Ar.splice(P,1),Mr.splice(P,1)),Xt("delSeries",P)}i.delSeries=Bh;const rr=[!1,!1,!1,!1];function jh(P,j){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?R[1].scale:M,K=k[P.scale]);let te=K.time;P.size=mt(P.size),P.space=mt(P.space),P.rotate=mt(P.rotate),Sr(P.incrs)&&P.incrs.forEach(de=>{!$r.has(de)&&$r.set(de,qf(de))}),P.incrs=mt(P.incrs||(K.distr==2?Bx:te?x==1?zx:Vx:io)),P.splits=mt(P.splits||(te&&K.distr==1?H:K.distr==3?wu:K.distr==4?c_:l_)),P.stroke=mt(P.stroke),P.grid.stroke=mt(P.grid.stroke),P.ticks.stroke=mt(P.ticks.stroke),P.border.stroke=mt(P.border.stroke);let oe=P.values;P.values=Sr(oe)&&!Sr(oe[0])?mt(oe):te?Sr(oe)?cg(I,lg(oe,F)):Yf(oe)?Yx(I,oe):oe||W:oe||a_,P.filter=mt(P.filter||(K.distr>=3&&K.log==10?d_:K.distr==3&&K.log==2?p_:zf)),P.font=Ug(P.font),P.labelFont=Ug(P.labelFont),P._size=P.size(i,null,j,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(rr[j]=!0,P._el=vi(Q1,l))}}function Tr(P,j,Y,K){let[te,oe,de,we]=Y,be=j%2,xe=0;return be==0&&(we||oe)&&(xe=j==0&&!te||j==2&&!de?vn(vg.size/3):0),be==1&&(te||de)&&(xe=j==1&&!oe||j==3&&!we?vn(xg.size/2):0),xe}const $l=i.padding=(n.padding||[Tr,Tr,Tr,Tr]).map(P=>mt(bt(P,Tr))),qi=i._padding=$l.map((P,j)=>P(i,j,rr,0));let bn,un=null,hn=null;const qo=m==1?R[0].idxs:null;let Hn=null,lo=!1;function co(P,j){if(t=P??[],i.data=i._data=t,m==2){bn=0;for(let Y=1;Y<R.length;Y++)bn+=t[Y][0].length}else{t.length==0&&(i.data=i._data=t=[[]]),Hn=t[0],bn=Hn.length;let Y=t;if($==2){Y=t.slice();let K=Y[0]=Array(bn);for(let te=0;te<bn;te++)K[te]=te}i._data=t=Y}if(or(!0),Xt("setData"),$==2&&(Bt=!0),j!==!1){let Y=N;Y.auto(i,lo)?Bs():xi(M,Y.min,Y.max),Fn=Fn||Ne.left>=0,Jn=!0,Or()}}i.setData=co;function Bs(){lo=!0;let P,j;m==1&&(bn>0?(un=qo[0]=0,hn=qo[1]=bn-1,P=t[0][un],j=t[0][hn],$==2?(P=un,j=hn):P==j&&($==3?[P,j]=qa(P,P,N.log,!1):$==4?[P,j]=su(P,P,N.log,!1):N.time?j=P+vn(86400/x):[P,j]=Ga(P,j,au,!0))):(un=qo[0]=P=null,hn=qo[1]=j=null)),xi(M,P,j)}let Go,Er,Yo,Ko,Qo,js,zs,Ws,Us,bi;function Vs(P,j,Y,K,te,oe){P??(P=$f),Y??(Y=hu),K??(K="butt"),te??(te=$f),oe??(oe="round"),P!=Go&&(s.strokeStyle=Go=P),te!=Er&&(s.fillStyle=Er=te),j!=Yo&&(s.lineWidth=Yo=j),oe!=Qo&&(s.lineJoin=Qo=oe),K!=js&&(s.lineCap=js=K),Y!=Ko&&s.setLineDash(Ko=Y)}function qs(P,j,Y,K){j!=Er&&(s.fillStyle=Er=j),P!=zs&&(s.font=zs=P),Y!=Ws&&(s.textAlign=Ws=Y),K!=Us&&(s.textBaseline=Us=K)}function uo(P,j,Y,K,te=0){if(K.length>0&&P.auto(i,lo)&&(j==null||j.min==null)){let oe=bt(un,0),de=bt(hn,K.length-1),we=Y.min==null?P.distr==3?dx(K,oe,de):hx(K,oe,de,te):[Y.min,Y.max];P.min=wi(P.min,Y.min=we[0]),P.max=In(P.max,Y.max=we[1])}}const Sl={min:null,max:null};function Cl(){for(let K in k){let te=k[K];L[K]==null&&(te.min==null||L[M]!=null&&te.auto(i,lo))&&(L[K]=Sl)}for(let K in k){let te=k[K];L[K]==null&&te.from!=null&&L[te.from]!=null&&(L[K]=Sl)}L[M]!=null&&or(!0);let P={};for(let K in L){let te=L[K];if(te!=null){let oe=P[K]=Po(k[K],xx);if(te.min!=null)cn(oe,te);else if(K!=M||m==2)if(bn==0&&oe.from==null){let de=oe.range(i,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=gt,oe.max=-gt}}if(bn>0){R.forEach((K,te)=>{if(m==1){let oe=K.scale,de=L[oe];if(de==null)return;let we=P[oe];if(te==0){let be=we.range(i,we.min,we.max,oe);we.min=be[0],we.max=be[1],un=Ri(we.min,t[0]),hn=Ri(we.max,t[0]),hn-un>1&&(t[0][un]<we.min&&un++,t[0][hn]>we.max&&hn--),K.min=Hn[un],K.max=Hn[hn]}else K.show&&K.auto&&uo(we,de,K,t[te],K.sorted);K.idxs[0]=un,K.idxs[1]=hn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,we=oe.scale,be=de.scale,[xe,$e]=t[te],Ae=P[we],Ge=P[be];Ae!=null&&uo(Ae,L[we],oe,xe,oe.sorted),Ge!=null&&uo(Ge,L[be],de,$e,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=L[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(i,te.min==gt?null:te.min,te.max==-gt?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(i,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let j={},Y=!1;for(let K in P){let te=P[K],oe=k[K];if(oe.min!=te.min||oe.max!=te.max){oe.min=te.min,oe.max=te.max;let de=oe.distr;oe._min=de==3?er(oe.min):de==4?cu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?er(oe.max):de==4?cu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,j[K]=Y=!0}}if(Y){R.forEach((K,te)=>{m==2?te>0&&j.y&&(K._paths=null):j[K.scale]&&(K._paths=null)});for(let K in j)Bt=!0,Xt("setScale",K);Ne.show&&Ne.left>=0&&(Fn=Jn=!0)}for(let K in L)L[K]=null}function Zo(P){let j=uu(un-1,0,bn-1),Y=uu(hn+1,0,bn-1);for(;P[j]==null&&j>0;)j--;for(;P[Y]==null&&Y<bn-1;)Y++;return[j,Y]}function Al(){bn>0&&(R.forEach((P,j)=>{if(j>0&&P.show&&(Ml(j,!1),Ml(j,!0),P._paths==null)){bi!=P.alpha&&(s.globalAlpha=bi=P.alpha);let Y=m==2?[0,t[j][0].length-1]:Zo(t[j]);P._paths=P.paths(i,j,Y[0],Y[1]),bi!=1&&(s.globalAlpha=bi=1)}}),R.forEach((P,j)=>{if(j>0&&P.show){bi!=P.alpha&&(s.globalAlpha=bi=P.alpha),P._paths!=null&&Gs(j,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(i,j,un,hn,Y),te=P.points.filter(i,j,K,Y);(K||te)&&(P.points._paths=P.points.paths(i,j,un,hn,te),Gs(j,!0))}bi!=1&&(s.globalAlpha=bi=1),Xt("drawSeries",j)}}))}function Ml(P,j){let Y=j?R[P].points:R[P];Y._stroke=Y.stroke(i,P),Y._fill=Y.fill(i,P)}function Gs(P,j){let Y=j?R[P].points:R[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:we=Y._stroke,_fill:be=Y._fill,_width:xe=Y.width}=Y._paths;xe=Rt(xe*xt,3);let $e=null,Ae=xe%2/2;j&&be==null&&(be=xe>0?"#fff":we);let Ge=Y.pxAlign==1&&Ae>0;if(Ge&&s.translate(Ae,Ae),!j){let Mt=qe-xe/2,tt=ct-xe/2,Ue=ut+xe,Ke=ot+xe;$e=new Path2D,$e.rect(Mt,tt,Ue,Ke)}j?Ys(we,xe,Y.dash,Y.cap,be,K,te,de,oe):Tl(P,we,xe,Y.dash,Y.cap,be,K,te,de,$e,oe),Ge&&s.translate(-Ae,-Ae)}function Tl(P,j,Y,K,te,oe,de,we,be,xe,$e){let Ae=!1;be!=0&&b.forEach((Ge,Mt)=>{if(Ge.series[0]==P){let tt=R[Ge.series[1]],Ue=t[Ge.series[1]],Ke=(tt._paths||Ts).band;Sr(Ke)&&(Ke=Ge.dir==1?Ke[0]:Ke[1]);let Ee,$t=null;tt.show&&Ke&&fx(Ue,un,hn)?($t=Ge.fill(i,Mt)||oe,Ee=tt._paths.clip):Ke=null,Ys(j,Y,K,te,$t,de,we,be,xe,$e,Ee,Ke),Ae=!0}}),Ae||Ys(j,Y,K,te,oe,de,we,be,xe,$e)}const Jo=Bo|xu;function Ys(P,j,Y,K,te,oe,de,we,be,xe,$e,Ae){Vs(P,j,Y,K,te),(be||xe||Ae)&&(s.save(),be&&s.clip(be),xe&&s.clip(xe)),Ae?(we&Jo)==Jo?(s.clip(Ae),$e&&s.clip($e),Rr(te,de),ho(P,oe,j)):we&xu?(Rr(te,de),s.clip(Ae),ho(P,oe,j)):we&Bo&&(s.save(),s.clip(Ae),$e&&s.clip($e),Rr(te,de),s.restore(),ho(P,oe,j)):(Rr(te,de),ho(P,oe,j)),(be||xe||Ae)&&s.restore()}function ho(P,j,Y){Y>0&&(j instanceof Map?j.forEach((K,te)=>{s.strokeStyle=Go=te,s.stroke(K)}):j!=null&&P&&s.stroke(j))}function Rr(P,j){j instanceof Map?j.forEach((Y,K)=>{s.fillStyle=Er=K,s.fill(Y)}):j!=null&&P&&s.fill(j)}function Ks(P,j,Y,K){let te=A[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(i,P,j,Y,K),we=te._incrs=te.incrs(i,P,j,Y,K,de);oe=D_(j,Y,we,K,de)}return te._found=oe}function Gi(P,j,Y,K,te,oe,de,we,be,xe){let $e=de%2/2;p==1&&s.translate($e,$e),Vs(we,de,be,xe,we),s.beginPath();let Ae,Ge,Mt,tt,Ue=te+(K==0||K==3?-oe:oe);Y==0?(Ge=te,tt=Ue):(Ae=te,Mt=Ue);for(let Ke=0;Ke<P.length;Ke++)j[Ke]!=null&&(Y==0?Ae=Mt=P[Ke]:Ge=tt=P[Ke],s.moveTo(Ae,Ge),s.lineTo(Mt,tt));s.stroke(),p==1&&s.translate(-$e,-$e)}function El(P){let j=!0;return A.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(j=!1,Y._show=!1,or(!1));return}else Y._show||(j=!1,Y._show=!0,or(!1));let oe=Y.side,de=oe%2,{min:we,max:be}=te,[xe,$e]=Ks(K,we,be,de==0?De:Pe);if($e==0)return;let Ae=te.distr==2,Ge=Y._splits=Y.splits(i,K,we,be,xe,$e,Ae),Mt=te.distr==2?Ge.map(Ee=>Hn[Ee]):Ge,tt=te.distr==2?Hn[Ge[1]]-Hn[Ge[0]]:xe,Ue=Y._values=Y.values(i,Y.filter(i,Mt,K,$e,tt),K,$e,tt);Y._rotate=oe==2?Y.rotate(i,Ue,K,$e):0;let Ke=Y._size;Y._size=yi(Y.size(i,Ue,K,P)),Ke!=null&&Y._size!=Ke&&(j=!1)}),j}function Rl(P){let j=!0;return $l.forEach((Y,K)=>{let te=Y(i,K,rr,P);te!=qi[K]&&(j=!1),qi[K]=te}),j}function zh(){for(let P=0;P<A.length;P++){let j=A[P];if(!j.show||!j._show)continue;let Y=j.side,K=Y%2,te,oe,de=j.stroke(i,P),we=Y==0||Y==3?-1:1;if(j.label){let kn=j.labelGap*we,qn=vn((j._lpos+kn)*xt);qs(j.labelFont[0],de,"center",Y==2?Cs:kf),s.save(),K==1?(te=oe=0,s.translate(qn,vn(ct+ot/2)),s.rotate((Y==3?-Ya:Ya)/2)):(te=vn(qe+ut/2),oe=qn),s.fillText(j.label,te,oe),s.restore()}let[be,xe]=j._found;if(xe==0)continue;let $e=k[j.scale],Ae=K==0?ut:ot,Ge=K==0?qe:ct,Mt=vn(j.gap*xt),tt=j._splits,Ue=$e.distr==2?tt.map(kn=>Hn[kn]):tt,Ke=$e.distr==2?Hn[tt[1]]-Hn[tt[0]]:be,Ee=j.ticks,$t=j.border,Yt=Ee.show?vn(Ee.size*xt):0,Wt=j._rotate*-Ya/180,It=y(j._pos*xt),Dt=(Yt+Mt)*we,ne=It+Dt;oe=K==0?ne:0,te=K==1?ne:0;let le=j.font[0],se=j.align==1?Lo:j.align==2?Zc:Wt>0?Lo:Wt<0?Zc:K==0?"center":Y==3?Zc:Lo,ke=Wt||K==1?"middle":Y==2?Cs:kf;qs(le,de,se,ke);let Ie=j.font[1]*j.lineGap,Ye=tt.map(kn=>y(h(kn,$e,Ae,Ge))),St=j._values;for(let kn=0;kn<St.length;kn++){let qn=St[kn];if(qn!=null){K==0?te=Ye[kn]:oe=Ye[kn],qn=""+qn;let $n=qn.indexOf(`
1408
+ `)==-1?[qn]:qn.split(/\n/gm);for(let hi=0;hi<$n.length;hi++){let ti=$n[hi];Wt?(s.save(),s.translate(te,oe+hi*Ie),s.rotate(Wt),s.fillText(ti,0,0),s.restore()):s.fillText(ti,te,oe+hi*Ie)}}}Ee.show&&Gi(Ye,Ee.filter(i,Ue,P,xe,Ke),K,Y,It,Yt,Rt(Ee.width*xt,3),Ee.stroke(i,P),Ee.dash,Ee.cap);let Qe=j.grid;Qe.show&&Gi(Ye,Qe.filter(i,Ue,P,xe,Ke),K,K==0?2:1,K==0?ct:qe,K==0?ot:ut,Rt(Qe.width*xt,3),Qe.stroke(i,P),Qe.dash,Qe.cap),$t.show&&Gi([It],[1],K==0?1:0,K==0?1:2,K==1?ct:qe,K==1?ot:ut,Rt($t.width*xt,3),$t.stroke(i,P),$t.dash,$t.cap)}Xt("drawAxes")}function or(P){R.forEach((j,Y)=>{Y>0&&(j._paths=null,P&&(m==1?(j.min=null,j.max=null):j.facets.forEach(K=>{K.min=null,K.max=null})))})}let po=!1,Xo=!1,Lr=[];function Wh(){Xo=!1;for(let P=0;P<Lr.length;P++)Xt(...Lr[P]);Lr.length=0}function Or(){po||(Mx(Qs),po=!0)}function Uh(P,j=!1){po=!0,Xo=j,P(i),Qs(),j&&Lr.length>0&&queueMicrotask(Wh)}i.batch=Uh;function Qs(){if(st&&(Cl(),st=!1),Bt&&(Dh(),Bt=!1),et){if(Ht(o,Lo,Jt),Ht(o,Cs,Be),Ht(o,$s,De),Ht(o,Ss,Pe),Ht(u,Lo,Jt),Ht(u,Cs,Be),Ht(u,$s,De),Ht(u,Ss,Pe),Ht(l,$s,wn),Ht(l,Ss,Zt),c.width=vn(wn*xt),c.height=vn(Zt*xt),A.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;Ht(P,de?"left":"top",K-oe),Ht(P,de?"width":"height",Y),Ht(P,de?"top":"left",de?Be:Jt),Ht(P,de?"height":"width",de?Pe:De),iu(P,Xr)}else ai(P,Xr)}),Go=Er=Yo=Qo=js=zs=Ws=Us=Ko=null,bi=1,go(!0),Jt!=ce||Be!=Ce||De!=Te||Pe!=We){or(!1);let P=De/Te,j=Pe/We;if(Ne.show&&!Fn&&Ne.left>=0){Ne.left*=P,Ne.top*=j,Ir&&Hi(Ir,vn(Ne.left),0,De,Pe),Yi&&Hi(Yi,0,vn(Ne.top),De,Pe);for(let Y=0;Y<Pn.length;Y++){let K=Pn[Y];K!=null&&(Ar[Y]*=P,Mr[Y]*=j,Hi(K,yi(Ar[Y]),yi(Mr[Y]),De,Pe))}}if(Ot.show&&!nr&&Ot.left>=0&&Ot.width>0){Ot.left*=P,Ot.width*=P,Ot.top*=j,Ot.height*=j;for(let Y in na)Ht(sr,Y,Ot[Y])}ce=Jt,Ce=Be,Te=De,We=Pe}Xt("setSize"),et=!1}wn>0&&Zt>0&&(s.clearRect(0,0,c.width,c.height),Xt("drawClear"),O.forEach(P=>P()),Xt("draw")),Ot.show&&nr&&(es(Ot),nr=!1),Ne.show&&Fn&&(Bn(null,!0,!1),Fn=!1),X.show&&X.live&&Jn&&(fo(),Jn=!1),f||(f=!0,i.status=1,Xt("ready")),lo=!1,po=!1}i.redraw=(P,j)=>{Bt=j||!1,P!==!1?xi(M,N.min,N.max):Or()};function Zs(P,j){let Y=k[P];if(Y.from==null){if(bn==0){let K=Y.range(i,j.min,j.max,P);j.min=K[0],j.max=K[1]}if(j.min>j.max){let K=j.min;j.min=j.max,j.max=K}if(bn>1&&j.min!=null&&j.max!=null&&j.max-j.min<1e-16)return;P==M&&Y.distr==2&&bn>0&&(j.min=Ri(j.min,t[0]),j.max=Ri(j.max,t[0]),j.min==j.max&&j.max++),L[P]=j,st=!0,Or()}}i.setScale=Zs;let Js,Xs,Ir,Yi,Ll,Ol,Dr,Nr,Il,Et,Fe,Ft,Ki=!1;const xn=Ne.drag;let dn=xn.x,pn=xn.y;Ne.show&&(Ne.x&&(Js=vi(J1,u)),Ne.y&&(Xs=vi(X1,u)),N.ori==0?(Ir=Js,Yi=Xs):(Ir=Xs,Yi=Js),Fe=Ne.left,Ft=Ne.top);const Ot=i.select=cn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),sr=Ot.show?vi(Z1,Ot.over?u:o):null;function es(P,j){if(Ot.show){for(let Y in P)Ot[Y]=P[Y],Y in na&&Ht(sr,Y,P[Y]);j!==!1&&Xt("setSelect")}}i.setSelect=es;function _n(P,j){let Y=R[P],K=G?me[P]:null;if(Y.show)K&&iu(K,Xr);else{K&&ai(K,Xr);let te=Cr?Pn[0]:Pn[P];Hi(te,-10,-10,De,Pe)}}function xi(P,j,Y){Zs(P,{min:j,max:Y})}function An(P,j,Y,K){j.focus!=null&&Fl(P),j.show!=null&&R.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=j.show,_n(oe,j.show),m==2?(xi(te.facets[0].scale,null,null),xi(te.facets[1].scale,null,null)):xi(te.scale,null,null),Or())}),Y!==!1&&Xt("setSeries",P,j),K&&Ii("setSeries",i,P,j)}i.setSeries=An;function Dl(P,j){cn(b[P],j)}function ea(P,j){P.fill=mt(P.fill||null),P.dir=bt(P.dir,-1),j=j??b.length,b.splice(j,0,P)}function Xn(P){P==null?b.length=0:b.splice(P,1)}i.addBand=ea,i.setBand=Dl,i.delBand=Xn;function Nl(P,j){R[P].alpha=j,Ne.show&&Pn[P]&&(Pn[P].style.opacity=j),G&&me[P]&&(me[P].style.opacity=j)}let _i,Oi,Qi;const ar={focus:!0};function Fl(P){if(P!=Qi){let j=P==null,Y=Ui.alpha!=1;R.forEach((K,te)=>{if(m==1||te>0){let oe=j||te==0||te==P;K._focus=j?null:oe,Y&&Nl(te,oe?1:Ui.alpha)}}),Qi=P,Y&&Or()}}G&&Vi&&qt(Mf,ie,P=>{Ne._lock||(ir(P),Qi!=null&&An(null,ar,!0,Gt.setSeries))});function zt(P,j,Y){let K=k[j];Y&&(P=P/xt-(K.ori==1?Be:Jt));let te=De;K.ori==1&&(te=Pe,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,we=P/te,be=oe+(de-oe)*we,xe=K.distr;return xe==3?No(10,be):xe==4?mx(be,K.asinh):xe==100?K.bwd(be):be}function Vh(P,j){let Y=zt(P,M,j);return Ri(Y,t[0],un,hn)}i.valToIdx=P=>Ri(P,t[0]),i.posToIdx=Vh,i.posToVal=zt,i.valToPos=(P,j,Y)=>k[j].ori==0?v(P,k[j],Y?ut:De,Y?qe:0):w(P,k[j],Y?ot:Pe,Y?ct:0),i.setCursor=(P,j,Y)=>{Fe=P.left,Ft=P.top,Bn(null,j,Y)};function Vn(P,j){Ht(sr,Lo,Ot.left=P),Ht(sr,$s,Ot.width=j)}function Pl(P,j){Ht(sr,Cs,Ot.top=P),Ht(sr,Ss,Ot.height=j)}let Fr=N.ori==0?Vn:Pl,ei=N.ori==1?Vn:Pl;function ts(){if(G&&X.live)for(let P=m==2?1:0;P<R.length;P++){if(P==0&&_e)continue;let j=X.values[P],Y=0;for(let K in j)ye[P][Y++].firstChild.nodeValue=j[K]}}function fo(P,j){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):bx(P.idx)||q.fill(P.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<R.length;Y++)(Y>0||m==1&&!_e)&&Pt(Y,q[Y]);ts()}Jn=!1,j!==!1&&Xt("setLegend")}i.setLegend=fo;function Pt(P,j){let Y=R[P],K=P==0&&$==2?Hn:t[P],te;_e?te=Y.values(i,P,j)??it:(te=Y.value(i,j==null?null:K[j],P,j),te=te==null?it:{_:te}),X.values[P]=te}function Bn(P,j,Y){Il=Fe,Et=Ft,[Fe,Ft]=Ne.move(i,Fe,Ft),Ne.left=Fe,Ne.top=Ft,Ne.show&&(Ir&&Hi(Ir,vn(Fe),0,De,Pe),Yi&&Hi(Yi,0,vn(Ft),De,Pe));let K,te=un>hn;_i=gt,Oi=null;let oe=N.ori==0?De:Pe,de=N.ori==1?De:Pe;if(Fe<0||bn==0||te){K=Ne.idx=null;for(let we=0;we<R.length;we++){let be=Pn[we];be!=null&&Hi(be,-10,-10,De,Pe)}Vi&&An(null,ar,!0,P==null&&Gt.setSeries),X.live&&(q.fill(K),Jn=!0)}else{let we,be,xe;m==1&&(we=N.ori==0?Fe:Ft,be=zt(we,M),K=Ne.idx=Ri(be,t[0],un,hn),xe=_(t[0][K],N,oe,0));let $e=-10,Ae=-10,Ge=0,Mt=0,tt=!0,Ue="",Ke="";for(let Ee=m==2?1:0;Ee<R.length;Ee++){let $t=R[Ee],Yt=q[Ee],Wt=Yt==null?null:m==1?t[Ee][Yt]:t[Ee][1][Yt],It=Ne.dataIdx(i,Ee,K,be),Dt=It==null?null:m==1?t[Ee][It]:t[Ee][1][It];Jn=Jn||Dt!=Wt||It!=Yt,q[Ee]=It;let ne=It==K?xe:_(m==1?t[0][It]:t[Ee][0][It],N,oe,0);if(Ee>0&&$t.show){let le=Dt==null?-10:S(Dt,m==1?k[$t.scale]:k[$t.facets[1].scale],de,0);if(Vi&&Dt!=null){let se=N.ori==1?Fe:Ft,ke=mn(Ui.dist(i,Ee,It,le,se));if(ke<_i){let Ie=Ui.bias;if(Ie!=0){let Ye=zt(se,$t.scale),St=Dt>=0?1:-1,Qe=Ye>=0?1:-1;Qe==St&&(Qe==1?Ie==1?Dt>=Ye:Dt<=Ye:Ie==1?Dt<=Ye:Dt>=Ye)&&(_i=ke,Oi=Ee)}else _i=ke,Oi=Ee}}if(Jn||Cr){let se,ke;N.ori==0?(se=ne,ke=le):(se=le,ke=ne);let Ie,Ye,St,Qe,kn,qn,$n=!0,hi=Cn.bbox;if(hi!=null){$n=!1;let ti=hi(i,Ee);St=ti.left,Qe=ti.top,Ie=ti.width,Ye=ti.height}else St=se,Qe=ke,Ie=Ye=Cn.size(i,Ee);if(qn=Cn.fill(i,Ee),kn=Cn.stroke(i,Ee),Cr)Ee==Oi&&_i<=Ui.prox&&($e=St,Ae=Qe,Ge=Ie,Mt=Ye,tt=$n,Ue=qn,Ke=kn);else{let ti=Pn[Ee];ti!=null&&(Ar[Ee]=St,Mr[Ee]=Qe,Df(ti,Ie,Ye,$n),Of(ti,qn,kn),Hi(ti,yi(St),yi(Qe),De,Pe))}}}}if(Cr){let Ee=Ui.prox,$t=Qi==null?_i<=Ee:_i>Ee||Oi!=Qi;if(Jn||$t){let Yt=Pn[0];Ar[0]=$e,Mr[0]=Ae,Df(Yt,Ge,Mt,tt),Of(Yt,Ue,Ke),Hi(Yt,yi($e),yi(Ae),De,Pe)}}}if(Ot.show&&Ki)if(P!=null){let[we,be]=Gt.scales,[xe,$e]=Gt.match,[Ae,Ge]=P.cursor.sync.scales,Mt=P.cursor.drag;if(dn=Mt._x,pn=Mt._y,dn||pn){let{left:tt,top:Ue,width:Ke,height:Ee}=P.select,$t=P.scales[Ae].ori,Yt=P.posToVal,Wt,It,Dt,ne,le,se=we!=null&&xe(we,Ae),ke=be!=null&&$e(be,Ge);se&&dn?($t==0?(Wt=tt,It=Ke):(Wt=Ue,It=Ee),Dt=k[we],ne=_(Yt(Wt,Ae),Dt,oe,0),le=_(Yt(Wt+It,Ae),Dt,oe,0),Fr(wi(ne,le),mn(le-ne))):Fr(0,oe),ke&&pn?($t==1?(Wt=tt,It=Ke):(Wt=Ue,It=Ee),Dt=k[be],ne=S(Yt(Wt,Ge),Dt,de,0),le=S(Yt(Wt+It,Ge),Dt,de,0),ei(wi(ne,le),mn(le-ne))):ei(0,de)}else is()}else{let we=mn(Il-Ll),be=mn(Et-Ol);if(N.ori==1){let Ge=we;we=be,be=Ge}dn=xn.x&&we>=xn.dist,pn=xn.y&&be>=xn.dist;let xe=xn.uni;xe!=null?dn&&pn&&(dn=we>=xe,pn=be>=xe,!dn&&!pn&&(be>we?pn=!0:dn=!0)):xn.x&&xn.y&&(dn||pn)&&(dn=pn=!0);let $e,Ae;dn&&(N.ori==0?($e=Dr,Ae=Fe):($e=Nr,Ae=Ft),Fr(wi($e,Ae),mn(Ae-$e)),pn||ei(0,de)),pn&&(N.ori==1?($e=Dr,Ae=Fe):($e=Nr,Ae=Ft),ei(wi($e,Ae),mn(Ae-$e)),dn||Fr(0,oe)),!dn&&!pn&&(Fr(0,0),ei(0,0))}if(xn._x=dn,xn._y=pn,P==null){if(Y){if(jn!=null){let[we,be]=Gt.scales;Gt.values[0]=we!=null?zt(N.ori==0?Fe:Ft,we):null,Gt.values[1]=be!=null?zt(N.ori==1?Fe:Ft,be):null}Ii(Sf,i,Fe,Ft,De,Pe,K)}if(Vi){let we=Y&&Gt.setSeries,be=Ui.prox;Qi==null?_i<=be&&An(Oi,ar,!0,we):_i>be?An(null,ar,!0,we):Oi!=Qi&&An(Oi,ar,!0,we)}}Jn&&(X.idx=K,fo()),j!==!1&&Xt("setCursor")}let ki=null;Object.defineProperty(i,"rect",{get(){return ki==null&&go(!1),ki}});function go(P=!1){P?ki=null:(ki=u.getBoundingClientRect(),Xt("syncRect",ki))}function ns(P,j,Y,K,te,oe,de){Ne._lock||Ki&&P!=null&&P.movementX==0&&P.movementY==0||(ta(P,j,Y,K,te,oe,de,!1,P!=null),P!=null?Bn(null,!0,!0):Bn(j,!0,!1))}function ta(P,j,Y,K,te,oe,de,we,be){if(ki==null&&go(!1),ir(P),P!=null)Y=P.clientX-ki.left,K=P.clientY-ki.top;else{if(Y<0||K<0){Fe=-10,Ft=-10;return}let[xe,$e]=Gt.scales,Ae=j.cursor.sync,[Ge,Mt]=Ae.values,[tt,Ue]=Ae.scales,[Ke,Ee]=Gt.match,$t=j.axes[0].side%2==1,Yt=N.ori==0?De:Pe,Wt=N.ori==1?De:Pe,It=$t?oe:te,Dt=$t?te:oe,ne=$t?K:Y,le=$t?Y:K;if(tt!=null?Y=Ke(xe,tt)?h(Ge,k[xe],Yt,0):-10:Y=Yt*(ne/It),Ue!=null?K=Ee($e,Ue)?h(Mt,k[$e],Wt,0):-10:K=Wt*(le/Dt),N.ori==1){let se=Y;Y=K,K=se}}be&&((Y<=1||Y>=De-1)&&(Y=no(Y,De)),(K<=1||K>=Pe-1)&&(K=no(K,Pe))),we?(Ll=Y,Ol=K,[Dr,Nr]=Ne.move(i,Y,K)):(Fe=Y,Ft=K)}const na={width:0,height:0,left:0,top:0};function is(){es(na,!1)}let ia,mo,lr,Hl;function ra(P,j,Y,K,te,oe,de){Ki=!0,dn=pn=xn._x=xn._y=!1,ta(P,j,Y,K,te,oe,de,!0,!1),P!=null&&(qt(Xc,tu,oa,!1),Ii(Cf,i,Dr,Nr,De,Pe,null));let{left:we,top:be,width:xe,height:$e}=Ot;ia=we,mo=be,lr=xe,Hl=$e,is()}function oa(P,j,Y,K,te,oe,de){Ki=xn._x=xn._y=!1,ta(P,j,Y,K,te,oe,de,!1,!0);let{left:we,top:be,width:xe,height:$e}=Ot,Ae=xe>0||$e>0,Ge=ia!=we||mo!=be||lr!=xe||Hl!=$e;if(Ae&&Ge&&es(Ot),xn.setScale&&Ae&&Ge){let Mt=we,tt=xe,Ue=be,Ke=$e;if(N.ori==1&&(Mt=be,tt=$e,Ue=we,Ke=xe),dn&&xi(M,zt(Mt,M),zt(Mt+tt,M)),pn)for(let Ee in k){let $t=k[Ee];Ee!=M&&$t.from==null&&$t.min!=gt&&xi(Ee,zt(Ue+Ke,Ee),zt(Ue,Ee))}is()}else Ne.lock&&(Ne._lock=!Ne._lock,Bn(null,!0,!1));P!=null&&(Wi(Xc,tu),Ii(Xc,i,Fe,Ft,De,Pe,null))}function sa(P,j,Y,K,te,oe,de){if(Ne._lock)return;ir(P);let we=Ki;if(Ki){let be=!0,xe=!0,$e=10,Ae,Ge;N.ori==0?(Ae=dn,Ge=pn):(Ae=pn,Ge=dn),Ae&&Ge&&(be=Fe<=$e||Fe>=De-$e,xe=Ft<=$e||Ft>=Pe-$e),Ae&&be&&(Fe=Fe<Dr?0:De),Ge&&xe&&(Ft=Ft<Nr?0:Pe),Bn(null,!0,!0),Ki=!1}Fe=-10,Ft=-10,Bn(null,!0,!0),we&&(Ki=we)}function rs(P,j,Y,K,te,oe,de){Ne._lock||(ir(P),Bs(),is(),P!=null&&Ii(Tf,i,Fe,Ft,De,Pe,null))}function aa(){A.forEach(N_),Ps(i.width,i.height,!0)}eo(Ua,Io,aa);const Pr={};Pr.mousedown=ra,Pr.mousemove=ns,Pr.mouseup=oa,Pr.dblclick=rs,Pr.setSeries=(P,j,Y,K)=>{let te=Gt.match[2];Y=te(i,j,Y),Y!=-1&&An(Y,K,!0,!1)},Ne.show&&(qt(Cf,u,ra),qt(Sf,u,ns),qt(Af,u,P=>{ir(P),go(!1)}),qt(Mf,u,sa),qt(Tf,u,rs),Su.add(i),i.syncRect=go);const Hr=i.hooks=n.hooks||{};function Xt(P,j,Y){Xo?Lr.push([P,j,Y]):P in Hr&&Hr[P].forEach(K=>{K.call(null,i,j,Y)})}(n.plugins||[]).forEach(P=>{for(let j in P.hooks)Hr[j]=(Hr[j]||[]).concat(P.hooks[j])});const Bl=(P,j,Y)=>Y,Gt=cn({key:null,setSeries:!1,filters:{pub:Wf,sub:Wf},scales:[M,R[1]?R[1].scale:null],match:[Uf,Uf,Bl],values:[null,null]},Ne.sync);Gt.match.length==2&&Gt.match.push(Bl),Ne.sync=Gt;const jn=Gt.key,vo=Mg(jn);function Ii(P,j,Y,K,te,oe,de){Gt.filters.pub(P,j,Y,K,te,oe,de)&&vo.pub(P,j,Y,K,te,oe,de)}vo.sub(i);function jl(P,j,Y,K,te,oe,de){Gt.filters.sub(P,j,Y,K,te,oe,de)&&Pr[P](null,j,Y,K,te,oe,de)}i.pub=jl;function zl(){vo.unsub(i),Su.delete(i),Lt.clear(),ou(Ua,Io,aa),a.remove(),ie==null||ie.remove(),Xt("destroy")}i.destroy=zl;function la(){Xt("init",n,t),co(t||n.data,!1),L[M]?Zs(M,L[M]):Bs(),nr=Ot.show&&(Ot.width>0||Ot.height>0),Fn=Jn=!0,Ps(n.width,n.height)}return R.forEach(kl),A.forEach(jh),e?e instanceof HTMLElement?(e.appendChild(a),la()):e(i,la):la(),i}Dn.assign=cn,Dn.fmtNum=lu,Dn.rangeNum=Ga,Dn.rangeLog=qa,Dn.rangeAsinh=su,Dn.orient=ro,Dn.pxRatio=xt,Dn.join=Ax,Dn.fmtDate=du,Dn.tzDate=Px,Dn.sync=Mg;{Dn.addGap=b_,Dn.clipGaps=el;let n=Dn.paths={points:Dg};n.linear=Fg,n.stepped=k_,n.bars=$_,n.spline=C_}var Vg,qg;function F_(){return qg||(qg=1,Vg=function(n,t,e,i,m){var g,v;if(i===void 0)i=0;else if(i=i|0,i<0||i>=n.length)throw new RangeError("invalid lower bound");if(m===void 0)m=n.length-1;else if(m=m|0,m<i||m>=n.length)throw new RangeError("invalid upper bound");for(;i<=m;)if(g=i+(m-i>>>1),v=+e(n[g],t,g,n),v<0)i=g+1;else if(v>0)m=g-1;else return g;return~i}),Vg}var P_=F_();const HO=Rn("B",Ca(P_));var Au,Gg;function H_(){if(Gg)return Au;Gg=1;function n(t,e,i){var m=-1,g=t.length;e<0&&(e=-e>g?0:g+e),i=i>g?g:i,i<0&&(i+=g),g=e>i?0:i-e>>>0,e>>>=0;for(var v=Array(g);++m<g;)v[m]=t[m+e];return v}return Au=n,Au}var Mu,Yg;function B_(){if(Yg)return Mu;Yg=1;var n=H_();function t(e,i,m){var g=e.length;return m=m===void 0?g:m,!i&&m>=g?e:n(e,i,m)}return Mu=t,Mu}var Tu,Kg;function Qg(){if(Kg)return Tu;Kg=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,g="\\ufe0e\\ufe0f",v="\\u200d",w=RegExp("["+v+n+m+g+"]");function h(f){return w.test(f)}return Tu=h,Tu}var Eu,Zg;function j_(){if(Zg)return Eu;Zg=1;function n(t){return t.split("")}return Eu=n,Eu}var Ru,Jg;function z_(){if(Jg)return Ru;Jg=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,g="\\ufe0e\\ufe0f",v="["+n+"]",w="["+m+"]",h="\\ud83c[\\udffb-\\udfff]",f="(?:"+w+"|"+h+")",a="[^"+n+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="\\u200d",o=f+"?",u="["+g+"]?",p="(?:"+l+"(?:"+[a,c,s].join("|")+")"+u+o+")*",y=u+o+p,x="(?:"+[a+w+"?",w,c,s,v].join("|")+")",R=RegExp(h+"(?="+h+")|"+x+y,"g");function A(k){return k.match(R)||[]}return Ru=A,Ru}var Lu,Xg;function W_(){if(Xg)return Lu;Xg=1;var n=j_(),t=Qg(),e=z_();function i(m){return t(m)?e(m):n(m)}return Lu=i,Lu}var Ou,em;function U_(){if(em)return Ou;em=1;var n=typeof kr=="object"&&kr&&kr.Object===Object&&kr;return Ou=n,Ou}var Iu,tm;function V_(){if(tm)return Iu;tm=1;var n=U_(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Iu=e,Iu}var Du,nm;function Nu(){if(nm)return Du;nm=1;var n=V_(),t=n.Symbol;return Du=t,Du}var Fu,im;function q_(){if(im)return Fu;im=1;function n(t,e){for(var i=-1,m=t==null?0:t.length,g=Array(m);++i<m;)g[i]=e(t[i],i,t);return g}return Fu=n,Fu}var Pu,rm;function G_(){if(rm)return Pu;rm=1;var n=Array.isArray;return Pu=n,Pu}var Hu,om;function Y_(){if(om)return Hu;om=1;var n=Nu(),t=Object.prototype,e=t.hasOwnProperty,i=t.toString,m=n?n.toStringTag:void 0;function g(v){var w=e.call(v,m),h=v[m];try{v[m]=void 0;var f=!0}catch{}var a=i.call(v);return f&&(w?v[m]=h:delete v[m]),a}return Hu=g,Hu}var Bu,sm;function K_(){if(sm)return Bu;sm=1;var n=Object.prototype,t=n.toString;function e(i){return t.call(i)}return Bu=e,Bu}var ju,am;function Q_(){if(am)return ju;am=1;var n=Nu(),t=Y_(),e=K_(),i="[object Null]",m="[object Undefined]",g=n?n.toStringTag:void 0;function v(w){return w==null?w===void 0?m:i:g&&g in Object(w)?t(w):e(w)}return ju=v,ju}var zu,lm;function Z_(){if(lm)return zu;lm=1;function n(t){return t!=null&&typeof t=="object"}return zu=n,zu}var Wu,cm;function J_(){if(cm)return Wu;cm=1;var n=Q_(),t=Z_(),e="[object Symbol]";function i(m){return typeof m=="symbol"||t(m)&&n(m)==e}return Wu=i,Wu}var Uu,um;function X_(){if(um)return Uu;um=1;var n=Nu(),t=q_(),e=G_(),i=J_(),m=1/0,g=n?n.prototype:void 0,v=g?g.toString:void 0;function w(h){if(typeof h=="string")return h;if(e(h))return t(h,w)+"";if(i(h))return v?v.call(h):"";var f=h+"";return f=="0"&&1/h==-m?"-0":f}return Uu=w,Uu}var Vu,hm;function rl(){if(hm)return Vu;hm=1;var n=X_();function t(e){return e==null?"":n(e)}return Vu=t,Vu}var qu,dm;function ek(){if(dm)return qu;dm=1;var n=B_(),t=Qg(),e=W_(),i=rl();function m(g){return function(v){v=i(v);var w=t(v)?e(v):void 0,h=w?w[0]:v.charAt(0),f=w?n(w,1).join(""):v.slice(1);return h[g]()+f}}return qu=m,qu}var Gu,pm;function fm(){if(pm)return Gu;pm=1;var n=ek(),t=n("toUpperCase");return Gu=t,Gu}var tk=fm();const nk=Ca(tk);var Yu,gm;function ik(){if(gm)return Yu;gm=1;var n=rl(),t=fm();function e(i){return t(n(i).toLowerCase())}return Yu=e,Yu}var Ku,mm;function rk(){if(mm)return Ku;mm=1;function n(t,e,i,m){var g=-1,v=t==null?0:t.length;for(m&&v&&(i=t[++g]);++g<v;)i=e(i,t[g],g,t);return i}return Ku=n,Ku}var Qu,vm;function ok(){if(vm)return Qu;vm=1;function n(t){return function(e){return t==null?void 0:t[e]}}return Qu=n,Qu}var Zu,ym;function sk(){if(ym)return Zu;ym=1;var n=ok(),t={À:"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"},e=n(t);return Zu=e,Zu}var Ju,wm;function ak(){if(wm)return Ju;wm=1;var n=sk(),t=rl(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\u0300-\\u036f",m="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",v=i+m+g,w="["+v+"]",h=RegExp(w,"g");function f(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return Ju=f,Ju}var Xu,bm;function lk(){if(bm)return Xu;bm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Xu=t,Xu}var eh,xm;function ck(){if(xm)return eh;xm=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 t(e){return n.test(e)}return eh=t,eh}var th,_m;function uk(){if(_m)return th;_m=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,g="\\u2700-\\u27bf",v="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f="\\u2000-\\u206f",a=" \\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",c="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",l=w+h+f+a,o="['’]",u="["+l+"]",p="["+m+"]",y="\\d+",x="["+g+"]",R="["+v+"]",A="[^"+n+l+y+g+v+c+"]",k="\\ud83c[\\udffb-\\udfff]",b="(?:"+p+"|"+k+")",M="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",T="["+c+"]",N="\\u200d",$="(?:"+R+"|"+A+")",_="(?:"+T+"|"+A+")",S="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",I=b+"?",F="["+s+"]?",H="(?:"+N+"(?:"+[M,E,O].join("|")+")"+F+I+")*",W="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+I+H,X="(?:"+[x,E,O].join("|")+")"+q,G=RegExp([T+"?"+R+"+"+S+"(?="+[u,T,"$"].join("|")+")",_+"+"+L+"(?="+[u,T+$,"$"].join("|")+")",T+"?"+$+"+"+S,T+"+"+L,V,W,y,X].join("|"),"g");function Z(ie){return ie.match(G)||[]}return th=Z,th}var nh,km;function hk(){if(km)return nh;km=1;var n=lk(),t=ck(),e=rl(),i=uk();function m(g,v,w){return g=e(g),v=w?void 0:v,v===void 0?t(g)?i(g):n(g):g.match(v)||[]}return nh=m,nh}var ih,$m;function dk(){if($m)return ih;$m=1;var n=rk(),t=ak(),e=hk(),i="['’]",m=RegExp(i,"g");function g(v){return function(w){return n(e(t(w).replace(m,"")),v,"")}}return ih=g,ih}var rh,Sm;function pk(){if(Sm)return rh;Sm=1;var n=ik(),t=dk(),e=t(function(i,m,g){return m=m.toLowerCase(),i+(g?n(m):m)});return rh=e,rh}var fk=pk();const gk=Ca(fk),mk=Object.assign({"./ArrayWidget.vue":()=>Oe(()=>Le.import("./ArrayWidget-By62tXtU-a5e441ab6bd961c1e81c.js"),void 0),"./BlockWidget.vue":()=>Oe(()=>Le.import("./BlockWidget-CrT45ode-18bc995028ac0345c3d1.js"),void 0),"./ButtonWidget.vue":()=>Oe(()=>Le.import("./ButtonWidget-CKyBBv6m-2cd5e39646f8530184f8.js"),void 0),"./CanvasWidget.vue":()=>Oe(()=>Le.import("./CanvasWidget-PqkppHC7-e32c02172a5d78dc5d34.js"),void 0),"./CanvasdotWidget.vue":()=>Oe(()=>Le.import("./CanvasdotWidget-BUbJgM2d-d63a85366cd2542462b8.js"),void 0),"./CanvasimageWidget.vue":()=>Oe(()=>Le.import("./CanvasimageWidget-DPVBY7mi-7fd5e1163ad1cb425a05.js"),void 0),"./CanvasimagevalueWidget.vue":()=>Oe(()=>Le.import("./CanvasimagevalueWidget-GX37zzNc-c0065c34b15078f5ce90.js"),void 0),"./CanvaslabelWidget.vue":()=>Oe(()=>Le.import("./CanvaslabelWidget-P2_Y6Edw-b20ca44827358baf3b26.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>Oe(()=>Le.import("./CanvaslabelvalueWidget-Cuas1i9P-beb2ba0c015b3e257b57.js"),void 0),"./CanvaslineWidget.vue":()=>Oe(()=>Le.import("./CanvaslineWidget-BYOYgPya-d0a8111f6986cce6581e.js"),void 0),"./CanvaslinevalueWidget.vue":()=>Oe(()=>Le.import("./CanvaslinevalueWidget-3cVJMFo7-ffad64909baa62c5a2e1.js"),void 0),"./CheckbuttonWidget.vue":()=>Oe(()=>Le.import("./CheckbuttonWidget-B3wgSMuB-43966d31f7d768117846.js"),void 0),"./ComboboxWidget.vue":()=>Oe(()=>Le.import("./ComboboxWidget-Dzr4Scvf-402e1d4fcd80b9582c44.js"),void 0),"./DateWidget.vue":()=>Oe(()=>Le.import("./DateWidget-BWh76Ibb-52cd25419503f543891b.js"),void 0),"./DynamicWidget.vue":()=>Oe(()=>Le.import("./DynamicWidget-m9EliUR2-c4b55d29163a62eac2ea.js"),void 0),"./FormatvalueWidget.vue":()=>Oe(()=>Le.import("./FormatvalueWidget-Rk0_eeIm-1b3e21d2a5a302ca1990.js"),void 0),"./HorizontalWidget.vue":()=>Oe(()=>Le.import("./HorizontalWidget-BcfJ24Zn-366041882fc79759fff9.js"),void 0),"./HorizontalboxWidget.vue":()=>Oe(()=>Le.import("./HorizontalboxWidget-CQy1Hv9E-6cf8ffc2ffd7f3d9eecb.js"),void 0),"./HorizontallineWidget.vue":()=>Oe(()=>Le.import("./HorizontallineWidget-BdlNB951-731b37ae194e5392d988.js"),void 0),"./IframeWidget.vue":()=>Oe(()=>Le.import("./IframeWidget-BBaDrRLo-1691275ef8f872dd859d.js"),void 0),"./ImageviewerWidget.vue":()=>Oe(()=>Le.import("./ImageviewerWidget-BgO3Pq6I-cef3c980302a9dc4c7cb.js"),void 0),"./LabelWidget.vue":()=>Oe(()=>Le.import("./LabelWidget-B_C6lKOE-ceb4de5192a33b189717.js"),void 0),"./LabelledWidget.vue":()=>Oe(()=>Le.import("./LabelledWidget-B_UGivhr-dfa95d46573ea9ee233c.js"),void 0),"./LabelprogressbarWidget.vue":()=>Oe(()=>Le.import("./LabelprogressbarWidget-BJWCmsYC-358d5b49f6cc975c00d0.js"),void 0),"./LabelsparklineWidget.vue":()=>Oe(()=>Le.import("./LabelsparklineWidget-DILCIh3q-b2f627be5070fe54ab1b.js"),void 0),"./LabelvalueWidget.vue":()=>Oe(()=>Le.import("./LabelvalueWidget-CCZd1NXE-ade0fc6eca78677f5357.js"),void 0),"./LabelvaluedescWidget.vue":()=>Oe(()=>Le.import("./LabelvaluedescWidget-Bsllq8W6-7c0ebcdd34ddad0cba20.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>Oe(()=>Le.import("./LabelvaluelimitsbarWidget-BV-cfaD--6d88b4a9a59bd9012418.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>Oe(()=>Le.import("./LabelvaluelimitscolumnWidget-DwA0eRBw-9c19de6f6ab68e6749ec.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>Oe(()=>Le.import("./LabelvaluerangebarWidget-3GDJz3dj-3c48f97fd9d7e2010954.js"),void 0),"./LedWidget.vue":()=>Oe(()=>Le.import("./LedWidget-BAt02s0J-24e0f7ddc071ffbd79db.js"),void 0),"./LimitsbarWidget.vue":()=>Oe(()=>Le.import("./LimitsbarWidget-JJiyzZjb-c65c064bfae876acd221.js"),void 0),"./LimitscolorWidget.vue":()=>Oe(()=>Le.import("./LimitscolorWidget-CYzXKbYd-7735f2996a321adf879e.js"),void 0),"./LimitscolumnWidget.vue":()=>Oe(()=>Le.import("./LimitscolumnWidget-Cd76tBo7-dbd1b628a6d3617486f4.js"),void 0),"./LinegraphWidget.vue":()=>Oe(()=>Le.import("./LinegraphWidget-DWRtO6Ej-752592d1523334dfd146.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>Oe(()=>Le.import("./MatrixbycolumnsWidget-cwsyjNV2-7faf06bbfa486114391d.js"),void 0),"./ProgressbarWidget.vue":()=>Oe(()=>Le.import("./ProgressbarWidget-CYDziFej-e111a46921e4ee3af56d.js"),void 0),"./RadiobuttonWidget.vue":()=>Oe(()=>Le.import("./RadiobuttonWidget-U6jcQZoD-a2b032cb8f4409e4a9b4.js"),void 0),"./RadiogroupWidget.vue":()=>Oe(()=>Le.import("./RadiogroupWidget-HTPJnsB0-94851c581ced37702658.js"),void 0),"./RangebarWidget.vue":()=>Oe(()=>Le.import("./RangebarWidget-DW0FJK6y-9f7d979be718500151b6.js"),void 0),"./RollupWidget.vue":()=>Oe(()=>Le.import("./RollupWidget-B2qrx55f-a8ba8c8a5c957b996a20.js"),void 0),"./ScrollwindowWidget.vue":()=>Oe(()=>Le.import("./ScrollwindowWidget-CwIDxgO6-fcff75f0a891d612d988.js"),void 0),"./SignalWidget.vue":()=>Oe(()=>Le.import("./SignalWidget-Bosa3AbW-fffc754c3c046f66fa5d.js"),void 0),"./SpacerWidget.vue":()=>Oe(()=>Le.import("./SpacerWidget-DYAlt5mt-11e4549a313cb7735b3e.js"),void 0),"./SparklineWidget.vue":()=>Oe(()=>Le.import("./SparklineWidget-CDrVXOFV-7d0de925e5fe71338408.js"),void 0),"./TabbookWidget.vue":()=>Oe(()=>Le.import("./TabbookWidget-DDdlzCkv-bc06202601c10b07febe.js"),void 0),"./TextboxWidget.vue":()=>Oe(()=>Le.import("./TextboxWidget-5euFelEq-c48e91c2a70fbf489e5e.js"),void 0),"./TextfieldWidget.vue":()=>Oe(()=>Le.import("./TextfieldWidget-BFripYeh-d55da2824bb7129ad8d2.js"),void 0),"./TimeWidget.vue":()=>Oe(()=>Le.import("./TimeWidget-BBSbsUYJ-46a303496f752cb5d70d.js"),void 0),"./TitleWidget.vue":()=>Oe(()=>Le.import("./TitleWidget-p8cjo-Bs-1a55060ee981c19dba78.js"),void 0),"./ValueWidget.vue":()=>Oe(()=>Le.import("./ValueWidget-CZh7JWwT-7269b90a9cf3701166be.js"),void 0),"./ValuelimitsbarWidget.vue":()=>Oe(()=>Le.import("./ValuelimitsbarWidget-DU7ybswC-a8ebafed15da13b05492.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>Oe(()=>Le.import("./ValuelimitscolumnWidget-DMw-h5jM-1b76b97cab832532dd27.js"),void 0),"./ValuerangebarWidget.vue":()=>Oe(()=>Le.import("./ValuerangebarWidget-DPpofDpA-f7ad8a72b09393bb2544.js"),void 0),"./VerticalWidget.vue":()=>Oe(()=>Le.import("./VerticalWidget-Ch7VAEmz-5c5b743c2ddc92136a4b.js"),void 0),"./VerticalboxWidget.vue":()=>Oe(()=>Le.import("./VerticalboxWidget-DYx-TFT4-7b65533aa838da17bd59.js"),void 0)}),vk=Object.entries(mk).reduce((n,[t,e])=>{t=t.split("/").pop();const i=nk(gk(t.replace(/\.\w+$/,"")));return{...n,[i]:Hd(e)}},{}),BO=Rn("z",{components:vk});function Cm(n,t){return function(){return n.apply(t,arguments)}}const{toString:yk}=Object.prototype,{getPrototypeOf:oh}=Object,ol=(n=>t=>{const e=yk.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Li=n=>(n=n.toLowerCase(),t=>ol(t)===n),sl=n=>t=>typeof t===n,{isArray:Wo}=Array,Ls=sl("undefined");function wk(n){return n!==null&&!Ls(n)&&n.constructor!==null&&!Ls(n.constructor)&&ui(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Am=Li("ArrayBuffer");function bk(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Am(n.buffer),t}const xk=sl("string"),ui=sl("function"),Mm=sl("number"),al=n=>n!==null&&typeof n=="object",_k=n=>n===!0||n===!1,ll=n=>{if(ol(n)!=="object")return!1;const t=oh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},kk=Li("Date"),$k=Li("File"),Sk=Li("Blob"),Ck=Li("FileList"),Ak=n=>al(n)&&ui(n.pipe),Mk=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ui(n.append)&&((t=ol(n))==="formdata"||t==="object"&&ui(n.toString)&&n.toString()==="[object FormData]"))},Tk=Li("URLSearchParams"),[Ek,Rk,Lk,Ok]=["ReadableStream","Request","Response","Headers"].map(Li),Ik=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Os(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Wo(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const g=e?Object.getOwnPropertyNames(n):Object.keys(n),v=g.length;let w;for(i=0;i<v;i++)w=g[i],t.call(null,n[w],w,n)}}function Tm(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const oo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Em=n=>!Ls(n)&&n!==oo;function sh(){const{caseless:n}=Em(this)&&this||{},t={},e=(i,m)=>{const g=n&&Tm(t,m)||m;ll(t[g])&&ll(i)?t[g]=sh(t[g],i):ll(i)?t[g]=sh({},i):Wo(i)?t[g]=i.slice():t[g]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&Os(arguments[i],e);return t}const Dk=(n,t,e,{allOwnKeys:i}={})=>(Os(t,(m,g)=>{e&&ui(m)?n[g]=Cm(m,e):n[g]=m},{allOwnKeys:i}),n),Nk=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Fk=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Pk=(n,t,e,i)=>{let m,g,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),g=m.length;g-- >0;)v=m[g],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&oh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Hk=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},Bk=n=>{if(!n)return null;if(Wo(n))return n;let t=n.length;if(!Mm(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},jk=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&oh(Uint8Array)),zk=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},Wk=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Uk=Li("HTMLFormElement"),Vk=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Rm=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),qk=Li("RegExp"),Lm=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Os(e,(m,g)=>{let v;(v=t(m,g,n))!==!1&&(i[g]=v||m)}),Object.defineProperties(n,i)},Gk=n=>{Lm(n,(t,e)=>{if(ui(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(ui(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Yk=(n,t)=>{const e={},i=m=>{m.forEach(g=>{e[g]=!0})};return Wo(n)?i(n):i(String(n).split(t)),e},Kk=()=>{},Qk=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,ah="abcdefghijklmnopqrstuvwxyz",Om="0123456789",Im={DIGIT:Om,ALPHA:ah,ALPHA_DIGIT:ah+ah.toUpperCase()+Om},Zk=(n=16,t=Im.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function Jk(n){return!!(n&&ui(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Xk=n=>{const t=new Array(10),e=(i,m)=>{if(al(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const g=Wo(i)?[]:{};return Os(i,(v,w)=>{const h=e(v,m+1);!Ls(h)&&(g[w]=h)}),t[m]=void 0,g}}return i};return e(n,0)},e$=Li("AsyncFunction"),t$=n=>n&&(al(n)||ui(n))&&ui(n.then)&&ui(n.catch),Dm=((n,t)=>n?setImmediate:t?((e,i)=>(oo.addEventListener("message",({source:m,data:g})=>{m===oo&&g===e&&i.length&&i.shift()()},!1),m=>{i.push(m),oo.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ui(oo.postMessage)),n$=typeof queueMicrotask<"u"?queueMicrotask.bind(oo):typeof process<"u"&&process.nextTick||Dm,he={isArray:Wo,isArrayBuffer:Am,isBuffer:wk,isFormData:Mk,isArrayBufferView:bk,isString:xk,isNumber:Mm,isBoolean:_k,isObject:al,isPlainObject:ll,isReadableStream:Ek,isRequest:Rk,isResponse:Lk,isHeaders:Ok,isUndefined:Ls,isDate:kk,isFile:$k,isBlob:Sk,isRegExp:qk,isFunction:ui,isStream:Ak,isURLSearchParams:Tk,isTypedArray:jk,isFileList:Ck,forEach:Os,merge:sh,extend:Dk,trim:Ik,stripBOM:Nk,inherits:Fk,toFlatObject:Pk,kindOf:ol,kindOfTest:Li,endsWith:Hk,toArray:Bk,forEachEntry:zk,matchAll:Wk,isHTMLForm:Uk,hasOwnProperty:Rm,hasOwnProp:Rm,reduceDescriptors:Lm,freezeMethods:Gk,toObjectSet:Yk,toCamelCase:Vk,noop:Kk,toFiniteNumber:Qk,findKey:Tm,global:oo,isContextDefined:Em,ALPHABET:Im,generateString:Zk,isSpecCompliantForm:Jk,toJSONObject:Xk,isAsyncFn:e$,isThenable:t$,setImmediate:Dm,asap:n$};function Xe(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.status:null)}he.inherits(Xe,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 Nm=Xe.prototype,Fm={};["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=>{Fm[n]={value:n}}),Object.defineProperties(Xe,Fm),Object.defineProperty(Nm,"isAxiosError",{value:!0}),Xe.from=(n,t,e,i,m,g)=>{const v=Object.create(Nm);return he.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),Xe.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,g&&Object.assign(v,g),v};const i$=null;function lh(n){return he.isPlainObject(n)||he.isArray(n)}function Pm(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Hm(n,t,e){return n?n.concat(t).map(function(i,m){return i=Pm(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function r$(n){return he.isArray(n)&&!n.some(lh)}const o$=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function cl(n,t,e){if(!he.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=he.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,o){return!he.isUndefined(o[l])});const i=e.metaTokens,m=e.visitor||f,g=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(m))throw new TypeError("visitor must be a function");function h(l){if(l===null)return"";if(he.isDate(l))return l.toISOString();if(!w&&he.isBlob(l))throw new Xe("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(l)||he.isTypedArray(l)?w&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function f(l,o,u){let p=l;if(l&&!u&&typeof l=="object"){if(he.endsWith(o,"{}"))o=i?o:o.slice(0,-2),l=JSON.stringify(l);else if(he.isArray(l)&&r$(l)||(he.isFileList(l)||he.endsWith(o,"[]"))&&(p=he.toArray(l)))return o=Pm(o),p.forEach(function(y,x){!(he.isUndefined(y)||y===null)&&t.append(v===!0?Hm([o],x,g):v===null?o:o+"[]",h(y))}),!1}return lh(l)?!0:(t.append(Hm(u,o,g),h(l)),!1)}const a=[],c=Object.assign(o$,{defaultVisitor:f,convertValue:h,isVisitable:lh});function s(l,o){if(!he.isUndefined(l)){if(a.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(l),he.forEach(l,function(u,p){(!(he.isUndefined(u)||u===null)&&m.call(t,u,he.isString(p)?p.trim():p,o,c))===!0&&s(u,o?o.concat(p):[p])}),a.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return s(n),t}function Bm(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ch(n,t){this._pairs=[],n&&cl(n,this,t)}const jm=ch.prototype;jm.append=function(n,t){this._pairs.push([n,t])},jm.toString=function(n){const t=n?function(e){return n.call(this,e,Bm)}:Bm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function s$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zm(n,t,e){if(!t)return n;const i=e&&e.encode||s$;he.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let g;if(m?g=m(t,e):g=he.isURLSearchParams(t)?t.toString():new ch(t,e).toString(i),g){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+g}return n}let Wm=class{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(e){e!==null&&t(e)})}};const Um={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},a$=typeof URLSearchParams<"u"?URLSearchParams:ch,l$=typeof FormData<"u"?FormData:null,c$=typeof Blob<"u"?Blob:null,u$={isBrowser:!0,classes:{URLSearchParams:a$,FormData:l$,Blob:c$},protocols:["http","https","file","blob","url","data"]},uh=typeof window<"u"&&typeof document<"u",hh=typeof navigator=="object"&&navigator||void 0,h$=uh&&(!hh||["ReactNative","NativeScript","NS"].indexOf(hh.product)<0),d$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",p$=uh&&window.location.href||"http://localhost",f$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uh,hasStandardBrowserEnv:h$,hasStandardBrowserWebWorkerEnv:d$,navigator:hh,origin:p$},Symbol.toStringTag,{value:"Module"})),Nn={...f$,...u$};function g$(n,t){return cl(n,new Nn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,g){return Nn.isNode&&he.isBuffer(e)?(this.append(i,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)}},t))}function m$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function v$(n){const t={},e=Object.keys(n);let i;const m=e.length;let g;for(i=0;i<m;i++)g=e[i],t[g]=n[g];return t}function Vm(n){function t(e,i,m,g){let v=e[g++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=g>=e.length;return v=!v&&he.isArray(m)?m.length:v,h?(he.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!he.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],g)&&he.isArray(m[v])&&(m[v]=v$(m[v])),!w)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(i,m)=>{t(m$(i),m,e,0)}),e}return null}function y$(n,t,e){if(he.isString(n))try{return(t||JSON.parse)(n),he.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const Is={transitional:Um,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=he.isObject(n);if(m&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return i?JSON.stringify(Vm(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 t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let g;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return g$(n,this.formSerializer).toString();if((g=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return cl(g?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),y$(n)):n}],transformResponse:[function(n){const t=this.transitional||Is.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(g){if(m)throw g.name==="SyntaxError"?Xe.from(g,Xe.ERR_BAD_RESPONSE,this,null,this.response):g}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nn.classes.FormData,Blob:Nn.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=>{Is.headers[n]={}});const w$=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"]),b$=n=>{const t={};let e,i,m;return n&&n.split(`
1409
+ `).forEach(function(g){m=g.indexOf(":"),e=g.substring(0,m).trim().toLowerCase(),i=g.substring(m+1).trim(),!(!e||t[e]&&w$[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},qm=Symbol("internals");function Ds(n){return n&&String(n).trim().toLowerCase()}function ul(n){return n===!1||n==null?n:he.isArray(n)?n.map(ul):String(n)}function x$(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const _$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function dh(n,t,e,i,m){if(he.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!he.isString(t)){if(he.isString(i))return t.indexOf(i)!==-1;if(he.isRegExp(i))return i.test(t)}}function k$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function $$(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,g,v){return this[i].call(this,t,m,g,v)},configurable:!0})})}let Zn=class{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function g(w,h,f){const a=Ds(h);if(!a)throw new Error("header name must be a non-empty string");const c=he.findKey(m,a);(!c||m[c]===void 0||f===!0||f===void 0&&m[c]!==!1)&&(m[c||h]=ul(w))}const v=(w,h)=>he.forEach(w,(f,a)=>g(f,a,h));if(he.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(he.isString(t)&&(t=t.trim())&&!_$(t))v(b$(t),e);else if(he.isHeaders(t))for(const[w,h]of t.entries())g(h,w,i);else t!=null&&g(e,t,i);return this}get(t,e){if(t=Ds(t),t){const i=he.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return x$(m);if(he.isFunction(e))return e.call(this,m,i);if(he.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ds(t),t){const i=he.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||dh(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function g(v){if(v=Ds(v),v){const w=he.findKey(i,v);w&&(!e||dh(i,i[w],w,e))&&(delete i[w],m=!0)}}return he.isArray(t)?t.forEach(g):g(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const g=e[i];(!t||dh(this,this[g],g,t,!0))&&(delete this[g],m=!0)}return m}normalize(t){const e=this,i={};return he.forEach(this,(m,g)=>{const v=he.findKey(i,g);if(v){e[v]=ul(m),delete e[g];return}const w=t?k$(g):String(g).trim();w!==g&&delete e[g],e[w]=ul(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return he.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&he.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1410
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[qm]=this[qm]={accessors:{}}).accessors,i=this.prototype;function m(g){const v=Ds(g);e[v]||($$(i,g),e[v]=!0)}return he.isArray(t)?t.forEach(m):m(t),this}};Zn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Zn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),he.freezeMethods(Zn);function ph(n,t){const e=this||Is,i=t||e,m=Zn.from(i.headers);let g=i.data;return he.forEach(n,function(v){g=v.call(e,g,m.normalize(),t?t.status:void 0)}),m.normalize(),g}function Gm(n){return!!(n&&n.__CANCEL__)}function Uo(n,t,e){Xe.call(this,n??"canceled",Xe.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(Uo,Xe,{__CANCEL__:!0});function Ym(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new Xe("Request failed with status code "+e.status,[Xe.ERR_BAD_REQUEST,Xe.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function S$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function C$(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,g=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),f=i[g];v||(v=h),e[m]=w,i[m]=h;let a=g,c=0;for(;a!==m;)c+=e[a++],a=a%n;if(m=(m+1)%n,m===g&&(g=(g+1)%n),h-v<t)return;const s=f&&h-f;return s?Math.round(c*1e3/s):void 0}}function A$(n,t){let e=0,i=1e3/t,m,g;const v=(w,h=Date.now())=>{e=h,m=null,g&&(clearTimeout(g),g=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),f=h-e;f>=i?v(w,h):(m=w,g||(g=setTimeout(()=>{g=null,v(m)},i-f)))},()=>m&&v(m)]}const hl=(n,t,e=3)=>{let i=0;const m=C$(50,250);return A$(g=>{const v=g.loaded,w=g.lengthComputable?g.total:void 0,h=v-i,f=m(h),a=v<=w;i=v;const c={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:f||void 0,estimated:f&&w&&a?(w-v)/f:void 0,event:g,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(c)},e)},Km=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},Qm=n=>(...t)=>he.asap(()=>n(...t)),M$=Nn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Nn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Nn.origin),Nn.navigator&&/(msie|trident)/i.test(Nn.navigator.userAgent)):()=>!0,T$=Nn.hasStandardBrowserEnv?{write(n,t,e,i,m,g){const v=[n+"="+encodeURIComponent(t)];he.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),he.isString(i)&&v.push("path="+i),he.isString(m)&&v.push("domain="+m),g===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function E$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function R$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Zm(n,t){return n&&!E$(t)?R$(n,t):t}const Jm=n=>n instanceof Zn?{...n}:n;function so(n,t){t=t||{};const e={};function i(f,a,c,s){return he.isPlainObject(f)&&he.isPlainObject(a)?he.merge.call({caseless:s},f,a):he.isPlainObject(a)?he.merge({},a):he.isArray(a)?a.slice():a}function m(f,a,c,s){if(he.isUndefined(a)){if(!he.isUndefined(f))return i(void 0,f,c,s)}else return i(f,a,c,s)}function g(f,a){if(!he.isUndefined(a))return i(void 0,a)}function v(f,a){if(he.isUndefined(a)){if(!he.isUndefined(f))return i(void 0,f)}else return i(void 0,a)}function w(f,a,c){if(c in t)return i(f,a);if(c in n)return i(void 0,f)}const h={url:g,method:g,data:g,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(f,a,c)=>m(Jm(f),Jm(a),c,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(f){const a=h[f]||m,c=a(n[f],t[f],f);he.isUndefined(c)&&a!==w||(e[f]=c)}),e}const Xm=n=>{const t=so({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:g,headers:v,auth:w}=t;t.headers=v=Zn.from(v),t.url=zm(Zm(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(he.isFormData(e)){if(Nn.hasStandardBrowserEnv||Nn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[f,...a]=h?h.split(";").map(c=>c.trim()).filter(Boolean):[];v.setContentType([f||"multipart/form-data",...a].join("; "))}}if(Nn.hasStandardBrowserEnv&&(i&&he.isFunction(i)&&(i=i(t)),i||i!==!1&&M$(t.url))){const f=m&&g&&T$.read(g);f&&v.set(m,f)}return t},L$=typeof XMLHttpRequest<"u",O$=L$&&function(n){return new Promise(function(t,e){const i=Xm(n);let m=i.data;const g=Zn.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,f,a,c,s,l;function o(){s&&s(),l&&l(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function p(){if(!u)return;const x=Zn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};Ym(function(A){t(A),o()},function(A){e(A),o()},R),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(e(new Xe("Request aborted",Xe.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new Xe("Network Error",Xe.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||Um;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),e(new Xe(x,R.clarifyTimeoutError?Xe.ETIMEDOUT:Xe.ECONNABORTED,n,u)),u=null},m===void 0&&g.setContentType(null),"setRequestHeader"in u&&he.forEach(g.toJSON(),function(x,R){u.setRequestHeader(R,x)}),he.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([c,l]=hl(h,!0),u.addEventListener("progress",c)),w&&u.upload&&([a,s]=hl(w),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(i.cancelToken||i.signal)&&(f=x=>{u&&(e(!x||x.type?new Uo(null,n,u):x),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const y=S$(i.url);if(y&&Nn.protocols.indexOf(y)===-1){e(new Xe("Unsupported protocol "+y+":",Xe.ERR_BAD_REQUEST,n));return}u.send(m||null)})},I$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const g=function(f){if(!m){m=!0,w();const a=f instanceof Error?f:this.reason;i.abort(a instanceof Xe?a:new Uo(a instanceof Error?a.message:a))}};let v=t&&setTimeout(()=>{v=null,g(new Xe(`timeout ${t} of ms exceeded`,Xe.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(f=>{f.unsubscribe?f.unsubscribe(g):f.removeEventListener("abort",g)}),n=null)};n.forEach(f=>f.addEventListener("abort",g));const{signal:h}=i;return h.unsubscribe=()=>he.asap(w),h}},D$=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},N$=async function*(n,t){for await(const e of F$(n))yield*D$(e,t)},F$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},e0=(n,t,e,i)=>{const m=N$(n,t);let g=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:f,value:a}=await m.next();if(f){w(),h.close();return}let c=a.byteLength;if(e){let s=g+=c;e(s)}h.enqueue(new Uint8Array(a))}catch(f){throw w(f),f}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},dl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",t0=dl&&typeof ReadableStream=="function",P$=dl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),n0=(n,...t)=>{try{return!!n(...t)}catch{return!1}},H$=t0&&n0(()=>{let n=!1;const t=new Request(Nn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),i0=64*1024,fh=t0&&n0(()=>he.isReadableStream(new Response("").body)),pl={stream:fh&&(n=>n.body)};dl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pl[t]&&(pl[t]=he.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new Xe(`Response type '${t}' is not supported`,Xe.ERR_NOT_SUPPORT,i)})})})(new Response);const B$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Nn.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 P$(n)).byteLength},j$=async(n,t)=>he.toFiniteNumber(n.getContentLength())??B$(t),z$=dl&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:g,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:f,headers:a,withCredentials:c="same-origin",fetchOptions:s}=Xm(n);f=f?(f+"").toLowerCase():"text";let l=I$([m,g&&g.toAbortSignal()],v),o;const u=l&&l.unsubscribe&&(()=>{l.unsubscribe()});let p;try{if(h&&H$&&e!=="get"&&e!=="head"&&(p=await j$(a,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),b;if(he.isFormData(i)&&(b=k.headers.get("content-type"))&&a.setContentType(b),k.body){const[M,E]=Km(p,hl(Qm(h)));i=e0(k.body,i0,M,E)}}he.isString(c)||(c=c?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...s,signal:l,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:i,duplex:"half",credentials:y?c:void 0});let x=await fetch(o);const R=fh&&(f==="stream"||f==="response");if(fh&&(w||R&&u)){const k={};["status","statusText","headers"].forEach(O=>{k[O]=x[O]});const b=he.toFiniteNumber(x.headers.get("content-length")),[M,E]=w&&Km(b,hl(Qm(w),!0))||[];x=new Response(e0(x.body,i0,M,()=>{E&&E(),u&&u()}),k)}f=f||"text";let A=await pl[he.findKey(pl,f)||"text"](x,n);return!R&&u&&u(),await new Promise((k,b)=>{Ym(k,b,{data:A,headers:Zn.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Xe("Network Error",Xe.ERR_NETWORK,n,o),{cause:y.cause||y}):Xe.from(y,y&&y.code,n,o)}}),gh={http:i$,xhr:O$,fetch:z$};he.forEach(gh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const r0=n=>`- ${n}`,W$=n=>he.isFunction(n)||n===null||n===!1,o0={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let g=0;g<t;g++){e=n[g];let v;if(i=e,!W$(e)&&(i=gh[(v=String(e)).toLowerCase()],i===void 0))throw new Xe(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+g]=i}if(!i){const g=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?g.length>1?`since :
1411
+ `+g.map(r0).join(`
1412
+ `):" "+r0(g[0]):"as no adapter specified";throw new Xe("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:gh};function mh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Uo(null,n)}function s0(n){return mh(n),n.headers=Zn.from(n.headers),n.data=ph.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),o0.getAdapter(n.adapter||Is.adapter)(n).then(function(t){return mh(n),t.data=ph.call(n,n.transformResponse,t),t.headers=Zn.from(t.headers),t},function(t){return Gm(t)||(mh(n),t&&t.response&&(t.response.data=ph.call(n,n.transformResponse,t.response),t.response.headers=Zn.from(t.response.headers))),Promise.reject(t)})}const a0="1.7.9",fl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{fl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const l0={};fl.transitional=function(n,t,e){function i(m,g){return"[Axios v"+a0+"] Transitional option '"+m+"'"+g+(e?". "+e:"")}return(m,g,v)=>{if(n===!1)throw new Xe(i(g," has been removed"+(t?" in "+t:"")),Xe.ERR_DEPRECATED);return t&&!l0[g]&&(l0[g]=!0,console.warn(i(g," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,g,v):!0}},fl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function U$(n,t,e){if(typeof n!="object")throw new Xe("options must be an object",Xe.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const g=i[m],v=t[g];if(v){const w=n[g],h=w===void 0||v(w,g,n);if(h!==!0)throw new Xe("option "+g+" must be "+h,Xe.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new Xe("Unknown option "+g,Xe.ERR_BAD_OPTION)}}const gl={assertOptions:U$,validators:fl},Bi=gl.validators;let ao=class{constructor(t){this.defaults=t,this.interceptors={request:new Wm,response:new Wm}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const g=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?g&&!String(i.stack).endsWith(g.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1413
+ `+g):i.stack=g}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=so(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:g}=e;i!==void 0&&gl.assertOptions(i,{silentJSONParsing:Bi.transitional(Bi.boolean),forcedJSONParsing:Bi.transitional(Bi.boolean),clarifyTimeoutError:Bi.transitional(Bi.boolean)},!1),m!=null&&(he.isFunction(m)?e.paramsSerializer={serialize:m}:gl.assertOptions(m,{encode:Bi.function,serialize:Bi.function},!0)),gl.assertOptions(e,{baseUrl:Bi.spelling("baseURL"),withXsrfToken:Bi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=g&&he.merge(g.common,g[e.method]);g&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete g[o]}),e.headers=Zn.concat(v,g);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const f=[];this.interceptors.response.forEach(function(o){f.push(o.fulfilled,o.rejected)});let a,c=0,s;if(!h){const o=[s0.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,f),s=o.length,a=Promise.resolve(e);c<s;)a=a.then(o[c++],o[c++]);return a}s=w.length;let l=e;for(c=0;c<s;){const o=w[c++],u=w[c++];try{l=o(l)}catch(p){u.call(this,p);break}}try{a=s0.call(this,l)}catch(o){return Promise.reject(o)}for(c=0,s=f.length;c<s;)a=a.then(f[c++],f[c++]);return a}getUri(t){t=so(this.defaults,t);const e=Zm(t.baseURL,t.url);return zm(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){ao.prototype[n]=function(t,e){return this.request(so(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,g){return this.request(so(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}ao.prototype[n]=t(),ao.prototype[n+"Form"]=t(!0)});let V$=class Ey{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let g=i._listeners.length;for(;g-- >0;)i._listeners[g](m);i._listeners=null}),this.promise.then=m=>{let g;const v=new Promise(w=>{i.subscribe(w),g=w}).then(m);return v.cancel=function(){i.unsubscribe(g)},v},t(function(m,g,v){i.reason||(i.reason=new Uo(m,g,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Ey(function(e){t=e}),cancel:t}}};function q$(n){return function(t){return n.apply(null,t)}}function G$(n){return he.isObject(n)&&n.isAxiosError===!0}const vh={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(vh).forEach(([n,t])=>{vh[t]=n});function c0(n){const t=new ao(n),e=Cm(ao.prototype.request,t);return he.extend(e,ao.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return c0(so(n,i))},e}const yn=Rn("S",c0(Is));yn.Axios=ao,yn.CanceledError=Uo,yn.CancelToken=V$,yn.isCancel=Gm,yn.VERSION=a0,yn.toFormData=cl,yn.AxiosError=Xe,yn.Cancel=yn.CanceledError,yn.all=function(n){return Promise.all(n)},yn.spread=q$,yn.isAxiosError=G$,yn.mergeConfig=so,yn.AxiosHeaders=Zn,yn.formToJSON=n=>Vm(he.isHTMLForm(n)?new FormData(n):n),yn.getAdapter=o0.getAdapter,yn.HttpStatusCode=vh,yn.default=yn;const Y$=function(n){if(n&&n.includes(".")){let t=n.split(".").pop();if(t==="py")return"mdi-language-python";if(t==="rb")return"mdi-language-ruby";if(t==="js")return"mdi-language-javascript";if(t==="csv")return"mdi-file-delimited";if(t==="txt")return"mdi-file-document";if(t==="png"||t==="gif"||t==="jpg")return"mdi-file-image"}return"mdi-file"};function K$(n,t,e){const i=jt(n,void 0);return i.setTime(i.getTime()+t*$a),i}function u0(){return Object.assign({},Ao())}function Q$(n,t){const e=()=>an(void 0,NaN),i=eS(n);let m;if(i.date){const h=tS(i.date,2);m=nS(h.restDateString,h.year)}if(!m||isNaN(+m))return e();const g=+m;let v=0,w;if(i.time&&(v=iS(i.time),isNaN(v)))return e();if(i.timezone){if(w=rS(i.timezone),isNaN(w))return e()}else{const h=new Date(g+v),f=jt(0,void 0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return jt(g+v+w,void 0)}const ml={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Z$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,J$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,X$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function eS(n){const t={},e=n.split(ml.dateTimeDelimiter);let i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],ml.timeZoneDelimiter.test(t.date)&&(t.date=n.split(ml.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){const m=ml.timezone.exec(i);m?(t.time=i.replace(m[1],""),t.timezone=m[1]):t.time=i}return t}function tS(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};const m=i[1]?parseInt(i[1]):null,g=i[2]?parseInt(i[2]):null;return{year:g===null?m:g*100,restDateString:n.slice((i[1]||i[2]).length)}}function nS(n,t){if(t===null)return new Date(NaN);const e=n.match(Z$);if(!e)return new Date(NaN);const i=!!e[4],m=Ns(e[1]),g=Ns(e[2])-1,v=Ns(e[3]),w=Ns(e[4]),h=Ns(e[5])-1;if(i)return cS(t,w,h)?oS(t,w,h):new Date(NaN);{const f=new Date(0);return!aS(t,g,v)||!lS(t,m)?new Date(NaN):(f.setUTCFullYear(t,g,Math.max(m,v)),f)}}function Ns(n){return n?parseInt(n):1}function iS(n){const t=n.match(J$);if(!t)return NaN;const e=yh(t[1]),i=yh(t[2]),m=yh(t[3]);return uS(e,i,m)?e*Mc+i*$a+m*1e3:NaN}function yh(n){return n&&parseFloat(n.replace(",","."))||0}function rS(n){if(n==="Z")return 0;const t=n.match(X$);if(!t)return 0;const e=t[1]==="+"?-1:1,i=parseInt(t[2]),m=t[3]&&parseInt(t[3])||0;return hS(i,m)?e*(i*Mc+m*$a):NaN}function oS(n,t,e){const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,g=(t-1)*7+e+1-m;return i.setUTCDate(i.getUTCDate()+g),i}const sS=[31,null,31,30,31,30,31,31,30,31,30,31];function h0(n){return n%400===0||n%4===0&&n%100!==0}function aS(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(sS[t]||(h0(n)?29:28))}function lS(n,t){return t>=1&&t<=(h0(n)?366:365)}function cS(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function uS(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function hS(n,t){return t>=0&&t<=59}function dS(n,t,e){return K$(n,-t)}function d0(n,t,e){const i=u0(),m=gS(n,e.timeZone,e.locale??i.locale);return"formatToParts"in m?pS(m,t):fS(m,t)}function pS(n,t){const e=n.formatToParts(t);for(let i=e.length-1;i>=0;--i)if(e[i].type==="timeZoneName")return e[i].value}function fS(n,t){const e=n.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(e);return i?i[0].substr(1):""}function gS(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function mS(n,t){const e=xS(t);return"formatToParts"in e?yS(e,n):wS(e,n)}const vS={year:0,month:1,day:2,hour:3,minute:4,second:5};function yS(n,t){try{const e=n.formatToParts(t),i=[];for(let m=0;m<e.length;m++){const g=vS[e[m].type];g!==void 0&&(i[g]=parseInt(e[m].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function wS(n,t){const e=n.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(i[3],10),parseInt(i[1],10),parseInt(i[2],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)]}const wh={},p0=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")),bS=p0==="06/25/2014, 00:00:00"||p0==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function xS(n){return wh[n]||(wh[n]=bS?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"})),wh[n]}function f0(n,t,e,i,m,g,v){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(i,m,g,v),w}const g0=36e5,_S=6e4,bh={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function xh(n,t,e){if(!n)return 0;let i=bh.timezoneZ.exec(n);if(i)return 0;let m,g;if(i=bh.timezoneHH.exec(n),i)return m=parseInt(i[1],10),m0(m)?-(m*g0):NaN;if(i=bh.timezoneHHMM.exec(n),i){m=parseInt(i[2],10);const v=parseInt(i[3],10);return m0(m,v)?(g=Math.abs(m)*g0+v*_S,i[1]==="+"?-g:g):NaN}if(SS(n)){t=new Date(t||Date.now());const v=e?t:kS(t),w=_h(v,n);return-(e?w:$S(t,w,n))}return NaN}function kS(n){return f0(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function _h(n,t){const e=mS(n,t),i=f0(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let m=n.getTime();const g=m%1e3;return m-=g>=0?g:1e3+g,i-m}function $S(n,t,e){let i=n.getTime()-t;const m=_h(new Date(i),e);if(t===m)return t;i-=m-t;const g=_h(new Date(i),e);return m===g?m:Math.max(m,g)}function m0(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const v0={};function SS(n){if(v0[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),v0[n]=!0,!0}catch{return!1}}const CS=60*1e3,AS={X:function(n,t,e){const i=kh(e.timeZone,n);if(i===0)return"Z";switch(t){case"X":return y0(i);case"XXXX":case"XX":return Vo(i);case"XXXXX":case"XXX":default:return Vo(i,":")}},x:function(n,t,e){const i=kh(e.timeZone,n);switch(t){case"x":return y0(i);case"xxxx":case"xx":return Vo(i);case"xxxxx":case"xxx":default:return Vo(i,":")}},O:function(n,t,e){const i=kh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+MS(i,":");case"OOOO":default:return"GMT"+Vo(i,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return d0("short",n,e);case"zzzz":default:return d0("long",n,e)}}};function kh(n,t){const e=n?xh(n,t,!0)/CS:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function vl(n,t){const e=n<0?"-":"";let i=Math.abs(n).toString();for(;i.length<t;)i="0"+i;return e+i}function Vo(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=vl(Math.floor(i/60),2),g=vl(Math.floor(i%60),2);return e+m+t+g}function y0(n,t){return n%60===0?(n>0?"-":"+")+vl(Math.abs(n)/60,2):Vo(n,t)}function MS(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.floor(i/60),g=i%60;return g===0?e+String(m):e+String(m)+t+vl(g,2)}function w0(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const TS=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,$h=36e5,b0=6e4,ES=2,Un={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:TS};function x0(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?ES:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const i=RS(n),{year:m,restDateString:g}=LS(i.date,e),v=OS(g,m);if(v===null||isNaN(v.getTime()))return new Date(NaN);if(v){const w=v.getTime();let h=0,f;if(i.time&&(h=IS(i.time),h===null||isNaN(h)))return new Date(NaN);if(i.timeZone||t.timeZone){if(f=xh(i.timeZone||t.timeZone,new Date(w+h)),isNaN(f))return new Date(NaN)}else f=w0(new Date(w+h)),f=w0(new Date(w+h+f));return new Date(w+h+f)}else return new Date(NaN)}function RS(n){const t={};let e=Un.dateTimePattern.exec(n),i;if(e?(t.date=e[1],i=e[3]):(e=Un.datePattern.exec(n),e?(t.date=e[1],i=e[2]):(t.date=null,i=n)),i){const m=Un.timeZone.exec(i);m?(t.time=i.replace(m[1],""),t.timeZone=m[1].trim()):t.time=i}return t}function LS(n,t){if(n){const e=Un.YYY[t],i=Un.YYYYY[t];let m=Un.YYYY.exec(n)||i.exec(n);if(m){const g=m[1];return{year:parseInt(g,10),restDateString:n.slice(g.length)}}if(m=Un.YY.exec(n)||e.exec(n),m){const g=m[1];return{year:parseInt(g,10)*100,restDateString:n.slice(g.length)}}}return{year:null}}function OS(n,t){if(t===null)return null;let e,i,m;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let g=Un.MM.exec(n);if(g)return e=new Date(0),i=parseInt(g[1],10)-1,$0(t,i)?(e.setUTCFullYear(t,i),e):new Date(NaN);if(g=Un.DDD.exec(n),g){e=new Date(0);const v=parseInt(g[1],10);return FS(t,v)?(e.setUTCFullYear(t,0,v),e):new Date(NaN)}if(g=Un.MMDD.exec(n),g){e=new Date(0),i=parseInt(g[1],10)-1;const v=parseInt(g[2],10);return $0(t,i,v)?(e.setUTCFullYear(t,i,v),e):new Date(NaN)}if(g=Un.Www.exec(n),g)return m=parseInt(g[1],10)-1,S0(m)?_0(t,m):new Date(NaN);if(g=Un.WwwD.exec(n),g){m=parseInt(g[1],10)-1;const v=parseInt(g[2],10)-1;return S0(m,v)?_0(t,m,v):new Date(NaN)}return null}function IS(n){let t,e,i=Un.HH.exec(n);if(i)return t=parseFloat(i[1].replace(",",".")),Sh(t)?t%24*$h:NaN;if(i=Un.HHMM.exec(n),i)return t=parseInt(i[1],10),e=parseFloat(i[2].replace(",",".")),Sh(t,e)?t%24*$h+e*b0:NaN;if(i=Un.HHMMSS.exec(n),i){t=parseInt(i[1],10),e=parseInt(i[2],10);const m=parseFloat(i[3].replace(",","."));return Sh(t,e,m)?t%24*$h+e*b0+m*1e3:NaN}return null}function _0(n,t,e){t=t||0,e=e||0;const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,g=t*7+e+1-m;return i.setUTCDate(i.getUTCDate()+g),i}const DS=[31,28,31,30,31,30,31,31,30,31,30,31],NS=[31,29,31,30,31,30,31,31,30,31,30,31];function k0(n){return n%400===0||n%4===0&&n%100!==0}function $0(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const i=k0(n);if(i&&e>NS[t]||!i&&e>DS[t])return!1}return!0}function FS(n,t){if(t<1)return!1;const e=k0(n);return!(e&&t>366||!e&&t>365)}function S0(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function Sh(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const PS=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function HS(n,t,e={}){t=String(t);const i=t.match(PS);if(i){const m=x0(e.originalDate||n,e);t=i.reduce(function(g,v){if(v[0]==="'")return g;const w=g.indexOf(v),h=g[w-1]==="'",f=g.replace(v,"'"+AS[v[0]](m,v,e)+"'");return h?f.substring(0,w-1)+f.substring(w+1):f},t)}return Kr(n,t,e)}function BS(n,t,e){n=x0(n,e);const i=xh(t,n,!0),m=new Date(n.getTime()-i),g=new Date(0);return g.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),g.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),g}function Ch(n,t,e,i){return i={...i,timeZone:t,originalDate:n},HS(BS(n,t,{timeZone:i.timeZone}),e,i)}const Ah="yyyy-MM-dd",C0="HH:mm:ss.SSS",jS="HH:mm:ss",yl=`${Ah} ${C0}`,jO=Rn("P",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Kr(!t||t==="local"?dS(n,n.getTimezoneOffset()):n,yl)},formatDateTime(n,t){return!t||t==="local"?Kr(n,yl):Ch(n,t,yl)},formatDate:function(n,t){return!t||t==="local"?Kr(n,Ah):Ch(n,this.timeZone,Ah)},formatTime:function(n,t,e=C0){return!t||t==="local"?Kr(n,e):Ch(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,jS)},formatTimestamp(n,t){return this.formatDateTime(Q$(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var zS=Object.defineProperty,WS=(n,t,e)=>t in n?zS(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Me=(n,t,e)=>WS(n,typeof t!="symbol"?t+"":t,e);function Mh(n,t,e){const i=jt(n,e==null?void 0:e.in);return isNaN(t)?an((e==null?void 0:e.in)||n,NaN):(t&&i.setDate(i.getDate()+t),i)}function US(n,t){const e=jt(n,void 0).getDay();return e===0?7:e}function VS(n,t){const e=qS(t)?new t(0):an(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function qS(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const GS=10;class A0{constructor(){Me(this,"subPriority",0)}validate(t,e){return!0}}class YS extends A0{constructor(t,e,i,m,g){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=m,g&&(this.subPriority=g)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}}class KS extends A0{constructor(t,e){super(),Me(this,"priority",GS),Me(this,"subPriority",-1),this.context=t||(i=>an(e,i))}set(t,e){return e.timestampIsSet?t:an(t,VS(t,this.context))}}class _t{run(t,e,i,m){const g=this.parse(t,e,i,m);return g?{setter:new YS(g.value,this.validate,this.set,this.priority,this.subPriority),rest:g.rest}:null}validate(t,e,i){return!0}}class QS extends _t{constructor(){super(...arguments),Me(this,"priority",140),Me(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}const tn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ji={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function nn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Vt(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function zi(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const i=e[1]==="+"?1:-1,m=e[2]?parseInt(e[2],10):0,g=e[3]?parseInt(e[3],10):0,v=e[5]?parseInt(e[5],10):0;return{value:i*(m*Mc+g*$a+v*zy),rest:t.slice(e[0].length)}}function M0(n){return Vt(tn.anyDigitsSigned,n)}function Qt(n,t){switch(n){case 1:return Vt(tn.singleDigit,t);case 2:return Vt(tn.twoDigits,t);case 3:return Vt(tn.threeDigits,t);case 4:return Vt(tn.fourDigits,t);default:return Vt(new RegExp("^\\d{1,"+n+"}"),t)}}function T0(n,t){switch(n){case 1:return Vt(tn.singleDigitSigned,t);case 2:return Vt(tn.twoDigitsSigned,t);case 3:return Vt(tn.threeDigitsSigned,t);case 4:return Vt(tn.fourDigitsSigned,t);default:return Vt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Th(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 E0(n,t){const e=t>0,i=e?t:1-t;let m;if(i<=50)m=n||100;else{const g=i+50,v=Math.trunc(g/100)*100,w=n>=g%100;m=n+v-(w?100:0)}return e?m:1-m}function R0(n){return n%400===0||n%4===0&&n%100!==0}let ZS=class extends _t{constructor(){super(...arguments),Me(this,"priority",130),Me(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,i){const m=g=>({year:g,isTwoDigitYear:e==="yy"});switch(e){case"y":return nn(Qt(4,t),m);case"yo":return nn(i.ordinalNumber(t,{unit:"year"}),m);default:return nn(Qt(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){const m=t.getFullYear();if(i.isTwoDigitYear){const v=E0(i.year,m);return t.setFullYear(v,0,1),t.setHours(0,0,0,0),t}const g=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(g,0,1),t.setHours(0,0,0,0),t}};class JS extends _t{constructor(){super(...arguments),Me(this,"priority",130),Me(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,i){const m=g=>({year:g,isTwoDigitYear:e==="YY"});switch(e){case"Y":return nn(Qt(4,t),m);case"Yo":return nn(i.ordinalNumber(t,{unit:"year"}),m);default:return nn(Qt(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,m){const g=Ec(t,m);if(i.isTwoDigitYear){const w=E0(i.year,g);return t.setFullYear(w,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),xr(t,m)}const v=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(v,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),xr(t,m)}}class XS extends _t{constructor(){super(...arguments),Me(this,"priority",130),Me(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return T0(e==="R"?4:e.length,t)}set(t,e,i){const m=an(t,0);return m.setFullYear(i,0,4),m.setHours(0,0,0,0),Mo(m)}}class eC extends _t{constructor(){super(...arguments),Me(this,"priority",130),Me(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return T0(e==="u"?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class tC extends _t{constructor(){super(...arguments),Me(this,"priority",120),Me(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"Q":case"QQ":return Qt(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}}let nC=class extends _t{constructor(){super(...arguments),Me(this,"priority",120),Me(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"q":case"qq":return Qt(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}};class iC extends _t{constructor(){super(...arguments),Me(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Me(this,"priority",110)}parse(t,e,i){const m=g=>g-1;switch(e){case"M":return nn(Vt(tn.month,t),m);case"MM":return nn(Qt(2,t),m);case"Mo":return nn(i.ordinalNumber(t,{unit:"month"}),m);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}class rC extends _t{constructor(){super(...arguments),Me(this,"priority",110),Me(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,i){const m=g=>g-1;switch(e){case"L":return nn(Vt(tn.month,t),m);case"LL":return nn(Qt(2,t),m);case"Lo":return nn(i.ordinalNumber(t,{unit:"month"}),m);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}function oC(n,t,e){const i=jt(n,e==null?void 0:e.in),m=ap(i,e)-t;return i.setDate(i.getDate()-m*7),jt(i,e==null?void 0:e.in)}class sC extends _t{constructor(){super(...arguments),Me(this,"priority",100),Me(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,i){switch(e){case"w":return Vt(tn.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return Qt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,m){return xr(oC(t,i,m),m)}}function aC(n,t,e){const i=jt(n,void 0),m=sp(i)-t;return i.setDate(i.getDate()-m*7),i}class lC extends _t{constructor(){super(...arguments),Me(this,"priority",100),Me(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,i){switch(e){case"I":return Vt(tn.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return Qt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return Mo(aC(t,i))}}const cC=[31,28,31,30,31,30,31,31,30,31,30,31],uC=[31,29,31,30,31,30,31,31,30,31,30,31];class hC extends _t{constructor(){super(...arguments),Me(this,"priority",90),Me(this,"subPriority",1),Me(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"d":return Vt(tn.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return Qt(e.length,t)}}validate(t,e){const i=t.getFullYear(),m=R0(i),g=t.getMonth();return m?e>=1&&e<=uC[g]:e>=1&&e<=cC[g]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}}class dC extends _t{constructor(){super(...arguments),Me(this,"priority",90),Me(this,"subpriority",1),Me(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,i){switch(e){case"D":case"DD":return Vt(tn.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return Qt(e.length,t)}}validate(t,e){const i=t.getFullYear();return R0(i)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}}function Eh(n,t,e){var i,m,g,v;const w=Ao(),h=(e==null?void 0:e.weekStartsOn)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.weekStartsOn)??w.weekStartsOn??((v=(g=w.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,f=jt(n,e==null?void 0:e.in),a=f.getDay(),c=(t%7+7)%7,s=7-h,l=t<0||t>6?t-(a+s)%7:(c+s)%7-(a+s)%7;return Mh(f,l,e)}class pC extends _t{constructor(){super(...arguments),Me(this,"priority",90),Me(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Eh(t,i,m),t.setHours(0,0,0,0),t}}class fC extends _t{constructor(){super(...arguments),Me(this,"priority",90),Me(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,i,m){const g=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return nn(Qt(e.length,t),g);case"eo":return nn(i.ordinalNumber(t,{unit:"day"}),g);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Eh(t,i,m),t.setHours(0,0,0,0),t}}let gC=class extends _t{constructor(){super(...arguments),Me(this,"priority",90),Me(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,i,m){const g=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return nn(Qt(e.length,t),g);case"co":return nn(i.ordinalNumber(t,{unit:"day"}),g);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Eh(t,i,m),t.setHours(0,0,0,0),t}};function mC(n,t,e){const i=jt(n,void 0),m=US(i),g=t-m;return Mh(i,g,e)}class vC extends _t{constructor(){super(...arguments),Me(this,"priority",90),Me(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,i){const m=g=>g===0?7:g;switch(e){case"i":case"ii":return Qt(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return nn(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiii":return nn(i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiiii":return nn(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiii":default:return nn(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return t=mC(t,i),t.setHours(0,0,0,0),t}}class yC extends _t{constructor(){super(...arguments),Me(this,"priority",80),Me(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Th(i),0,0,0),t}}class wC extends _t{constructor(){super(...arguments),Me(this,"priority",80),Me(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Th(i),0,0,0),t}}class bC extends _t{constructor(){super(...arguments),Me(this,"priority",80),Me(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Th(i),0,0,0),t}}class xC extends _t{constructor(){super(...arguments),Me(this,"priority",70),Me(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,i){switch(e){case"h":return Vt(tn.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return Qt(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){const m=t.getHours()>=12;return m&&i<12?t.setHours(i+12,0,0,0):!m&&i===12?t.setHours(0,0,0,0):t.setHours(i,0,0,0),t}}class _C extends _t{constructor(){super(...arguments),Me(this,"priority",70),Me(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,i){switch(e){case"H":return Vt(tn.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return Qt(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}}class kC extends _t{constructor(){super(...arguments),Me(this,"priority",70),Me(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,i){switch(e){case"K":return Vt(tn.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return Qt(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}}class $C extends _t{constructor(){super(...arguments),Me(this,"priority",70),Me(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,i){switch(e){case"k":return Vt(tn.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return Qt(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){const m=i<=24?i%24:i;return t.setHours(m,0,0,0),t}}class SC extends _t{constructor(){super(...arguments),Me(this,"priority",60),Me(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"m":return Vt(tn.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return Qt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}}class CC extends _t{constructor(){super(...arguments),Me(this,"priority",50),Me(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"s":return Vt(tn.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return Qt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}}class AC extends _t{constructor(){super(...arguments),Me(this,"priority",30),Me(this,"incompatibleTokens",["t","T"])}parse(t,e){const i=m=>Math.trunc(m*Math.pow(10,-e.length+3));return nn(Qt(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}}class MC extends _t{constructor(){super(...arguments),Me(this,"priority",10),Me(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return zi(ji.basicOptionalMinutes,t);case"XX":return zi(ji.basic,t);case"XXXX":return zi(ji.basicOptionalSeconds,t);case"XXXXX":return zi(ji.extendedOptionalSeconds,t);case"XXX":default:return zi(ji.extended,t)}}set(t,e,i){return e.timestampIsSet?t:an(t,t.getTime()-Sa(t)-i)}}class TC extends _t{constructor(){super(...arguments),Me(this,"priority",10),Me(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return zi(ji.basicOptionalMinutes,t);case"xx":return zi(ji.basic,t);case"xxxx":return zi(ji.basicOptionalSeconds,t);case"xxxxx":return zi(ji.extendedOptionalSeconds,t);case"xxx":default:return zi(ji.extended,t)}}set(t,e,i){return e.timestampIsSet?t:an(t,t.getTime()-Sa(t)-i)}}class EC extends _t{constructor(){super(...arguments),Me(this,"priority",40),Me(this,"incompatibleTokens","*")}parse(t){return M0(t)}set(t,e,i){return[an(t,i*1e3),{timestampIsSet:!0}]}}let RC=class extends _t{constructor(){super(...arguments),Me(this,"priority",20),Me(this,"incompatibleTokens","*")}parse(t){return M0(t)}set(t,e,i){return[an(t,i),{timestampIsSet:!0}]}};const LC={G:new QS,y:new ZS,Y:new JS,R:new XS,u:new eC,Q:new tC,q:new nC,M:new iC,L:new rC,w:new sC,I:new lC,d:new hC,D:new dC,E:new pC,e:new fC,c:new gC,i:new vC,a:new yC,b:new wC,B:new bC,h:new xC,H:new _C,K:new kC,k:new $C,m:new SC,s:new CC,S:new AC,X:new MC,x:new TC,t:new EC,T:new RC},OC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,DC=/^'([^]*?)'?$/,NC=/''/g,FC=/\S/,PC=/[a-zA-Z]/;function HC(n,t,e,i){var m,g,v,w;const h=()=>an(e,NaN),f=u0(),a=f.locale??op,c=f.firstWeekContainsDate??((g=(m=f.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,s=f.weekStartsOn??((w=(v=f.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():jt(e,void 0);const l={firstWeekContainsDate:c,weekStartsOn:s,locale:a},o=[new KS(void 0,e)],u=t.match(IC).map(A=>{const k=A[0];if(k in Rc){const b=Rc[k];return b(A,a.formatLong)}return A}).join("").match(OC),p=[];for(let A of u){fp(A)&&Lc(A,t,n),pp(A)&&Lc(A,t,n);const k=A[0],b=LC[k];if(b){const{incompatibleTokens:M}=b;if(Array.isArray(M)){const O=p.find(T=>M.includes(T.token)||T.token===k);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${A}\` at the same time`)}else if(b.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);p.push({token:k,fullToken:A});const E=b.run(n,A,a.match,l);if(!E)return h();o.push(E.setter),n=E.rest}else{if(k.match(PC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(A==="''"?A="'":k==="'"&&(A=BC(A)),n.indexOf(A)===0)n=n.slice(A.length);else return h()}}if(n.length>0&&FC.test(n))return h();const y=o.map(A=>A.priority).sort((A,k)=>k-A).filter((A,k,b)=>b.indexOf(A)===k).map(A=>o.filter(k=>k.priority===A).sort((k,b)=>b.subPriority-k.subPriority)).map(A=>A[0]);let x=jt(e,void 0);if(isNaN(+x))return h();const R={};for(const A of y){if(!A.validate(x,l))return h();const k=A.set(x,R,l);Array.isArray(k)?(x=k[0],Object.assign(R,k[1])):x=k}return x}function BC(n){return n.match(DC)[1].replace(NC,"'")}const jC={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function zC(n,t,e,i,m,g){const v=wt("rux-icon");return fn(),mi(v,{size:e.size,icon:e.icon,style:gs(g.colorStyle)},null,8,["size","icon","style"])}const WC=Co(jC,[["render",zC],["__scopeId","data-v-9af48e85"]]),UC="/icons/status-dark.png",VC={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return UC},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=KC.indexOf(L0[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,i=32*this.scaleFactor*t,m=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*m}px;`,`background-size: ${e}px ${i}px;`,`height: ${m}px;`,`width: ${m}px;`,`padding-top: ${n-1}px;`].join("")}}};function qC(n,t,e,i,m,g){return fn(),yr("div",{style:gs(g.iconStyle)},null,4)}const GC=Co(VC,[["render",qC]]),L0={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"},Rh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},YC=function(n){const t="#000000",e="#ffffff",i=Rh[L0[n]];if(i){const m=+`0x${i.slice(1,3)}`,g=+`0x${i.slice(3,5)}`,v=+`0x${i.slice(5,7)}`;if((m*299+g*587+v*114)/1e3>128)return t}return e},KC=Object.keys(Rh),QC={astro:{component:n=>fs(WC,{...n})},"astro-status":{component:n=>fs(GC,{...n,status:n.icon})}},ZC={props:{type:{type:String,required:!0,validator:function(n){return["open","save"].indexOf(n)!==-1}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,modelValue:Boolean},data(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},title:function(){return this.type==="open"?"File Open":"File Save As..."},submit:function(){return this.type==="open"?"OPEN":"SAVE"},helpText:function(){return this.type==="open"?"Click on folders to open them and then click a file to select it before clicking Open. Use the search box to filter the results.":"Click on the folder to save into. Then complete the filename path with the desired name. Use the search box to filter the results."},error:function(){if(this.selectedFile===""||this.selectedFile===null)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){let n=`${this.selectedFile} is not a valid filename. Must `;return this.requireTargetParentDir&&(n+="be in a target directory and "),n+=`only contain alphanumeric characters (including !-_.*) and a valid extension.
1414
+
1415
+ For example: TGT1/procedures/test.py or TGT2/lib/inst.rb`,n}return this.type==="save"&&this.selectedFile.match(/\*$/)?`${this.selectedFile} is not a valid filename. Must not end in '*'.`:null},validFilenameRegex:function(){const n="0-9a-zA-Z";let t=`[${`${n}\\/\\!\\-\\_\\.\\*\\'\\(\\)`}]+\\.[${n}]+`;return this.requireTargetParentDir&&(t=`\\/?${`(${this.targets.join("|")})`}\\/${t}`),new RegExp(t)}},created(){this.loadFiles(),this.requireTargetParentDir&&Ha.get("/openc3-api/targets").then(n=>{this.targets=n.data,this.targets.push("__TEMP__")})},methods:{calcIcon:function(n){return Y$(n)},loadFiles:function(){Ha.get(this.apiUrl).then(n=>{this.items=[],this.id=1;for(let t of n.data)this.filepath=t,this.insertFile(this.items,1,t),this.id++;this.inputFilename&&(this.selectedFile=this.inputFilename),this.loading=!1}).catch(n=>{this.$emit("error",`Failed to connect to OpenC3. ${n}`)})},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},activeFile:function(n){n.length===0?this.selectedFile=null:(this.selectedFile=this.findItem(this.items,n[0]),setTimeout(()=>{this.$refs.submitBtn.$el.focus()},100))},findItem:function(n,t){for(let e of n){if(e.id===t)return e.path;if(e.children){const i=this.findItem(e.children,t);if(i)return i}}return null},exists:function(n,t){let e=!1;for(let i of n){if(i.path===t||i.path.length>1&&i.path[i.path.length-1]==="*"&&i.path.slice(0,i.path.length-1)===t)return!0;i.children&&(e=e||this.exists(i.children,t))}return e},success:function(){this.selectedFile!==null&&this.error===null&&(this.type==="open"?this.openSuccess():this.saveSuccess())},deleteTemp:function(){this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then(n=>Ha.delete("/script-api/scripts/temp_files")).then(n=>{this.$emit("clear-temp"),this.loadFiles()}).catch(n=>{this.$notify.serious({title:"Error",body:`Failed to remove script temporary files due to ${n}`})})},openSuccess:function(){this.disableButtons=!0,Ha.get(`${this.apiUrl}/${this.selectedFile}`).then(n=>{const t={name:this.selectedFile,contents:n.data.contents};n.data.suites&&(t.suites=JSON.parse(n.data.suites)),n.data.error&&(t.error=n.data.error),n.data.success&&(t.success=n.data.success);const e=n.data.locked,i=n.data.breakpoints;this.$emit("file",{file:t,locked:e,breakpoints:i}),this.clear()}).catch(n=>{this.$emit("error",`Failed to open ${this.selectedFile}. ${n}`),this.clear()})},saveSuccess:function(){this.exists(this.items,this.selectedFile)?this.$dialog.confirm(`Are you sure you want to overwrite: ${this.selectedFile}`,{okText:"Overwrite",cancelText:"Cancel"}).then(n=>{this.$emit("filename",this.selectedFile),this.clear()}).catch(n=>{}):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(n,t,e){let i=e.split("/");if(i.length===1){n.push({id:this.id,title:i[0],file:"ruby",path:this.filepath}),this.id++;return}const m=n.findIndex(g=>g.title===i[0]);m===-1?(n.push({id:this.id,title:i[0],children:[],path:this.filepath.split("/").slice(0,t).join("/")}),this.id++,this.insertFile(n[n.length-1].children,t+1,i.slice(1).join("/"))):this.insertFile(n[m].children,t+1,i.slice(1).join("/"))}}},JC={class:"pa-3"};function XC(n,t,e,i,m,g){const v=wt("v-progress-circular"),w=wt("v-overlay"),h=wt("v-spacer"),f=wt("v-toolbar"),a=wt("v-row"),c=wt("v-text-field"),s=wt("v-icon"),l=wt("v-btn"),o=wt("v-treeview"),u=wt("v-card-text"),p=wt("v-card"),y=wt("v-dialog");return fn(),mi(y,{modelValue:g.show,"onUpdate:modelValue":t[5]||(t[5]=x=>g.show=x),width:"600",scrollable:"",onKeydown:t[6]||(t[6]=Bd(x=>g.success(),["enter"]))},{default:ht(()=>[Ve(p,null,{default:ht(()=>[Ve(w,{"model-value":m.loading},{default:ht(()=>[Ve(v,{indeterminate:"",absolute:"",size:"64"})]),_:1},8,["model-value"]),wr("form",{onSubmit:t[4]||(t[4]=ka((...x)=>g.success&&g.success(...x),["prevent"]))},[Ve(f,{height:"24"},{default:ht(()=>[Ve(h),wr("span",null,Tn(g.title),1),Ve(h)]),_:1}),Ve(u,null,{default:ht(()=>[wr("div",JC,[Ve(a,null,{default:ht(()=>[Ln(Tn(g.helpText),1)]),_:1}),Ve(a,{dense:"",class:"mt-5"},{default:ht(()=>[Ve(c,{modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=x=>m.search=x),flat:"",autofocus:"","hide-details":"",clearable:"",label:"Search","prepend-inner-icon":"mdi-magnify",density:"compact","data-test":"file-open-save-search"},null,8,["modelValue"])]),_:1}),Ve(a,{dense:"",class:"mt-2"},{default:ht(()=>[Ve(o,{modelValue:m.tree,"onUpdate:modelValue":t[1]||(t[1]=x=>m.tree=x),"onUpdate:activated":g.activeFile,density:"compact",activatable:"",ref:"tree",style:{width:"100%","max-height":"60vh",overflow:"auto"},"item-value":"id",items:m.items,search:m.search,"open-on-click":e.type==="open","open-all":!!m.search},{prepend:ht(({item:x,open:R})=>[x.file?(fn(),mi(s,{key:1},{default:ht(()=>[Ln(Tn(g.calcIcon(x.title)),1)]),_:2},1024)):(fn(),mi(s,{key:0},{default:ht(()=>[Ln(Tn(R?"mdi-folder-open":"mdi-folder"),1)]),_:2},1024))]),append:ht(({item:x})=>[x.title==="__TEMP__"?(fn(),mi(l,{key:0,icon:"",onClick:g.deleteTemp},{default:ht(()=>[Ve(s,null,{default:ht(()=>t[7]||(t[7]=[Ln(" mdi-delete ")])),_:1})]),_:1},8,["onClick"])):br("",!0)]),_:1},8,["modelValue","onUpdate:activated","items","search","open-on-click","open-all"])]),_:1}),Ve(a,{class:"my-2"},{default:ht(()=>[Ve(c,{modelValue:m.selectedFile,"onUpdate:modelValue":t[2]||(t[2]=x=>m.selectedFile=x),"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:e.type==="open"},null,8,["modelValue","disabled"])]),_:1}),Ve(a,{dense:""},{default:ht(()=>[$c(wr("div",{class:"my-2 text-red",style:{"white-space":"pre-line"}},Tn(g.error),513),[[Sc,g.error]])]),_:1}),Ve(a,{class:"mt-2"},{default:ht(()=>[Ve(h),Ve(l,{onClick:t[3]||(t[3]=x=>g.show=!1),variant:"outlined",class:"mx-2","data-test":"file-open-save-cancel-btn",disabled:m.disableButtons},{default:ht(()=>t[8]||(t[8]=[Ln(" Cancel ")])),_:1},8,["disabled"]),Ve(l,{onClick:ka(g.success,["prevent"]),ref:"submitBtn",type:"submit",color:"primary",class:"mx-2","data-test":"file-open-save-submit-btn",disabled:m.disableButtons||!!g.error},{default:ht(()=>[Ln(Tn(g.submit),1)]),_:1},8,["onClick","disabled"])]),_:1})])]),_:1})],32)]),_:1})]),_:1},8,["modelValue"])}const zO=Rn("j",Co(ZC,[["render",XC]])),eA={};function tA(n,t){const e=wt("v-card-title"),i=wt("v-card-text"),m=wt("v-card");return fn(),mi(m,null,{default:ht(()=>[Ve(e,null,{default:ht(()=>t[0]||(t[0]=[Ln("404 Not Found Error")])),_:1}),Ve(i,null,{default:ht(()=>[t[1]||(t[1]=Ln("The requested URL ")),wr("code",null,Tn(n.$route.fullPath),1),t[2]||(t[2]=Ln(" was not routable."))]),_:1})]),_:1})}const O0=[{path:"/",name:"TableManager",component:()=>Oe(()=>Le.import("./TableManager-cef9dda0483267a1bd4f.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:Co(eA,[["render",tA]])}];O0.forEach(ep);const nA=Kd({history:Qd(),routes:O0}),iA={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"}},rA={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,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},oA=["innerHTML"],sA={key:2},aA={key:3,class:"validate mt-4"};function lA(n,t,e,i,m,g){const v=wt("v-spacer"),w=wt("v-toolbar"),h=wt("v-icon"),f=wt("v-text-field"),a=wt("v-card-text"),c=wt("v-btn"),s=wt("v-card-actions"),l=wt("v-card"),o=wt("v-dialog"),u=wt("v-app");return fn(),mi(u,null,{default:ht(()=>[Ve(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=p=>n.show=p),width:"600"},{default:ht(()=>[Ve(l,null,{default:ht(()=>[Ve(w,{height:"24"},{default:ht(()=>[Ve(v),wr("span",null,Tn(n.params.title),1),Ve(v)]),_:1}),Ve(a,{class:"mt-4 pa-3"},{default:ht(()=>[n.params.validateText?(fn(),mi(h,{key:0,class:"mr-2"},{default:ht(()=>t[2]||(t[2]=[Ln(" mdi-alert ")])),_:1})):br("",!0),n.params.html?(fn(),yr("span",{key:1,innerHTML:n.params.text},null,8,oA)):(fn(),yr("span",sA,Tn(n.params.text),1)),n.params.validateText?(fn(),yr("div",aA,[Ln(" Enter "+Tn(n.params.validateText)+" to confirm! ",1),Ve(f,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=p=>n.validationText=p),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):br("",!0)]),_:1}),Ve(s,{class:"px-2"},{default:ht(()=>[Ve(v),n.params.cancelText?(fn(),mi(c,{key:0,variant:"outlined","data-test":g.dataTestCancel,onClick:g.cancel},{default:ht(()=>[Ln(Tn(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):br("",!0),Ve(c,{variant:"flat",color:n.params.okClass,"data-test":g.dataTestOk,onClick:g.ok},{default:ht(()=>[Ln(Tn(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const cA=Co(rA,[["render",lA],["__scopeId","data-v-581c0293"]]);class uA{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(cA);t.use(Oh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:i,okClass:m,validateText:g,cancelText:v,html:w}){return this.mount(),new Promise((h,f)=>{this.$root.dialog({title:t,text:e,okText:i,okClass:m,validateText:g,cancelText:v,html:w},h,f)})}confirm(t,{okText:e="Ok",cancelText:i="Cancel",okClass:m="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:m,validateText:null,cancelText:i,html:!1})}alert(t,{okText:e="Ok",html:i=!1,okClass:m="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:m,validateText:null,cancelText:null,html:i})}validate(t,{okText:e="Ok",validateText:i="CONFIRM",cancelText:m="Cancel",okClass:g="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:g,validateText:i,cancelText:m,html:!1})}}const hA={install(n,t){const e=new uA;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},dA={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`
1416
+ --toast-bg-color:${Rh[this.toastNotification.level]};
1417
+ --toast-fg-color:${YC(this.toastNotification.level)};
1418
+ `},contentStyle:function(){return`
1419
+ white-space: ${this.expanded?"normal":"nowrap"};
1420
+ overflow-x: ${this.expanded?"visible":"hidden"};
1421
+ text-overflow: ${this.expanded?"unset":"ellipsis"};
1422
+ `}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},pA={key:0,class:"text-subtitle-1 mr-1 notification-text"},fA={key:1,class:"text-body-2 notification-text"},gA={key:2,class:"text-body-2 notification-text"};function mA(n,t,e,i,m,g){const v=wt("v-icon"),w=wt("v-spacer"),h=wt("v-btn"),f=wt("v-sheet"),a=wt("v-slide-y-transition");return fn(),mi(a,null,{default:ht(()=>[$c(Ve(f,{style:gs(g.toastStyle),class:"toast-notification",onClick:g.expand},{default:ht(()=>[Ve(v,{class:"mr-1 notification-text"},{default:ht(()=>[Ln(Tn(g.toastNotificationIcon),1)]),_:1}),wr("div",{class:"toast-content",style:gs(g.contentStyle)},[n.toastNotification.title?(fn(),yr("span",pA,Tn(n.toastNotification.title)+": ",1)):br("",!0),n.toastNotification.body?(fn(),yr("span",fA,Tn(n.toastNotification.body),1)):br("",!0),n.toastNotification.message?(fn(),yr("span",gA,Tn(n.toastNotification.message),1)):br("",!0)],4),Ve(w),Ve(h,{variant:"text",onClick:ka(g.hide,["stop"]),class:"notification-text"},{default:ht(()=>t[0]||(t[0]=[Ln(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Sc,n.showToast]])]),_:1})}const vA=Co(dA,[["render",mA],["__scopeId","data-v-b0459ba8"]]);class yA{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Ac(vA);t.use(Oh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:i,message:m,level:g,duration:v,type:w="alert",logToConsole:h=!1,saveToHistory:f=!0}){this.mount(),h&&console.log(m?`${g.toUpperCase()} - ${m}`:`${g.toUpperCase()} - ${e}: ${i}`),f&&this.$store.commit("notifyAddHistory",{title:e,body:i,message:m,level:g}),this[t]({title:e,body:i,message:m,level:g,duration:v,type:w})}toast({title:t,body:e,message:i,level:m,duration:g,type:v}){this.$root.toast({title:t,body:e,message:i,level:m,type:v},g)}critical({title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w})}caution({title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w})}off({title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:i,type:m,duration:g,logToConsole:v,saveToHistory:w})}}const wA={install(n,t){const e=new yA(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},I0=100,D0=Zd({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=I0&&(n.notifyHistory.length=I0-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function N0(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function bA(n,t){const e={},i=new Set(Object.keys(n));for(const m of t)i.has(m)&&(e[m]=n[m]);return e}function F0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const i={};for(const m in n)i[m]=n[m];for(const m in t){const g=n[m],v=t[m];if(N0(g)&&N0(v)){i[m]=F0(g,v,e);continue}if(e&&Array.isArray(g)&&Array.isArray(v)){i[m]=e(g,v);continue}i[m]=v}return i}function Fs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Fs.cache.has(n))return Fs.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Fs.cache.set(n,t),t}Fs.cache=new Map;function xA(n){Wd(`Vuetify: ${n}`)}function P0(n,t){return e=>Object.keys(n).reduce((i,m)=>{const g=typeof n[m]=="object"&&n[m]!=null&&!Array.isArray(n[m])?n[m]:{type:n[m]};return e&&m in e?i[m]={...g,default:e[m]}:i[m]=g,t&&!i[m].source&&(i[m].source=t),i},{})}function H0(n,t){const e=Gd();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function _A(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:H0("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Lh=Symbol.for("vuetify:defaults");function B0(){const n=Ud(Lh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function kA(n,t){var e,i;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((i=n.props)==null?void 0:i[Fs(t)])<"u"}function $A(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B0();const i=H0("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const m=Cc(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),g=new Proxy(n,{get(h,f){var a,c,s,l,o,u,p;const y=Reflect.get(h,f);return f==="class"||f==="style"?[(a=m.value)==null?void 0:a[f],y].filter(x=>x!=null):typeof f=="string"&&!kA(i.vnode,f)?((c=m.value)==null?void 0:c[f])!==void 0?(s=m.value)==null?void 0:s[f]:((o=(l=e.value)==null?void 0:l.global)==null?void 0:o[f])!==void 0?(p=(u=e.value)==null?void 0:u.global)==null?void 0:p[f]:y:y}}),v=Vd();qd(()=>{if(m.value){const h=Object.entries(m.value).filter(f=>{let[a]=f;return a.startsWith(a[0].toUpperCase())});v.value=h.length?Object.fromEntries(h):void 0}else v.value=void 0});function w(){const h=_A(Lh,i);Yd(Lh,Cc(()=>v.value?F0((h==null?void 0:h.value)??{},v.value):h==null?void 0:h.value))}return{props:g,provideSubDefaults:w}}function wl(n){if(n._setup=n._setup??n.setup,!n.name)return xA("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=P0(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return bA(e,t)},n.props._as=String,n.setup=function(e,i){const m=B0();if(!m.value)return n._setup(e,i);const{props:g,provideSubDefaults:v}=$A(e,e._as??n.name,m),w=n._setup(g,i);return v(),w}}return n}function SA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?wl:zd)(t)}const CA=[String,Function,Object,Array],bl=P0({icon:{type:CA},tag:{type:String,required:!0}},"icon");SA()({name:"VComponentIcon",props:bl(),setup(n,t){let{slots:e}=t;return()=>{const i=n.icon;return Ve(n.tag,null,{default:()=>{var m;return[n.icon?Ve(i,null,null):(m=e.default)==null?void 0:m.call(e)]}})}}}),wl({name:"VSvgIcon",inheritAttrs:!1,props:bl(),setup(n,t){let{attrs:e}=t;return()=>Ve(n.tag,jd(e,{style:null}),{default:()=>[Ve("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(i=>Array.isArray(i)?Ve("path",{d:i[0],"fill-opacity":i[1]},null):Ve("path",{d:i},null)):Ve("path",{d:n.icon},null)])]})}}),wl({name:"VLigatureIcon",props:bl(),setup(n){return()=>Ve(n.tag,null,{default:()=>[n.icon]})}});const AA=wl({name:"VClassIcon",props:bl(),setup(n){return()=>Ve(n.tag,{class:n.icon},null)}}),MA={component:n=>fs(AA,{...n,class:"mdi"})},Oh=Jd({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:iA}},icons:{defaultSet:"mdi",sets:{mdi:MA,...QC}}}),Ih=Oy({createApp:Ac,appOptions:{render(){return fs(jy,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(nA),n.use(D0),n.use(Oh),n.use(hA),n.use(wA,{store:D0})}}),UO=Rn("e",Ih.bootstrap),VO=Rn("m",Ih.mount),qO=Rn("u",Ih.unmount)}}});