openc3-cosmos-tool-admin 6.0.0 → 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/tools/admin/ArrayWidget-DBpEoQ1y-51f8d58800a41ceb5965.js +2 -0
  3. data/tools/admin/BarColumn-B6tCmNJm-9ca6a3b942d168ebcdb8.js +1 -0
  4. data/tools/admin/BlockWidget-Bmi0UcUW-6e239a53a5ce4bba9c07.js +2 -0
  5. data/tools/admin/ButtonWidget-CHrHS_Bw-4dc21e7684ae5277a10c.js +2 -0
  6. data/tools/admin/CanvasWidget-BqdyLbQz-8f0095f7e34d8c6f066f.js +1 -0
  7. data/tools/admin/CanvasdotWidget-YYwca104-3e6a9038614586babd1c.js +1 -0
  8. data/tools/admin/CanvasimageWidget-BrYlPQCf-99a2f7e1d841f8a80652.js +1 -0
  9. data/tools/admin/CanvasimagevalueWidget-HnEOXmZy-f4c2e448abcd2dc9b369.js +1 -0
  10. data/tools/admin/CanvaslabelWidget-BfMHNei--7bf566730263148d3f38.js +1 -0
  11. data/tools/admin/CanvaslabelvalueWidget-0zRDJav3-b25fde925a4dde4f4459.js +1 -0
  12. data/tools/admin/CanvaslineWidget-BmOwJP_G-a4bfe595d4095ac8a656.js +1 -0
  13. data/tools/admin/CanvaslinevalueWidget-H3L1aUKM-ef990dd1d9d0093e3346.js +1 -0
  14. data/tools/admin/CheckbuttonWidget-BnT9X7wE-b6041611ca3a02a77f4f.js +1 -0
  15. data/tools/admin/ComboboxWidget-BykAAoxH-df2f4da5632c7ac4d614.js +1 -0
  16. data/tools/admin/DateWidget-FtYD86xW-ed78614e5361796e3247.js +1 -0
  17. data/tools/admin/{DetailsDialog-EWjtBjle-7990262e67902ac0252f.js → DetailsDialog-DiVcC3Fg-7fd3988b243d50bf1e70.js} +1 -1
  18. data/tools/admin/DynamicWidget-m9EliUR2-f9ce5441cacabbe60173.js +1 -0
  19. data/tools/admin/FormatvalueWidget-OykwwCrw-5ee46e53f13ac3d6701e.js +1 -0
  20. data/tools/admin/GraphWidget-BohHW-97-fd394110bcce6887c880.js +1 -0
  21. data/tools/admin/HorizontalWidget-B7YdcFVN-4a39cc6c6467fa45c8c9.js +1 -0
  22. data/tools/admin/HorizontalboxWidget-D-kCNwI3-bf19c666513dd697768b.js +1 -0
  23. data/tools/admin/HorizontallineWidget-BdlNB951-fcd3e7810f970240faa3.js +1 -0
  24. data/tools/admin/IframeWidget-0C7GYEVc-e7376740a6235e4812db.js +1 -0
  25. data/tools/admin/{ImageLoader-CDLQopxJ-68194bc736f7cabded39.js → ImageLoader-y6fAZe9P-a0ef49044ad82975f403.js} +1 -1
  26. data/tools/admin/ImageviewerWidget-B4HbUIfR-a00a0d3b8fe6d84d7306.js +1 -0
  27. data/tools/admin/InterfacesTab-Byu6IcaT-95abcb5574592a90078b.js +1 -0
  28. data/tools/admin/LabelWidget-D1JhQAzR-3b197382850460b21e5a.js +1 -0
  29. data/tools/admin/LabelledWidget-C2VGJ5OJ-df9b3b7fce21b2fd3c0c.js +1 -0
  30. data/tools/admin/LabelprogressbarWidget-DN0cAeLK-cc27e24e29aff05d667d.js +1 -0
  31. data/tools/admin/LabelsparklineWidget--sxBENxs-cbe369d2ca5aa7df9b85.js +1 -0
  32. data/tools/admin/LabelvalueWidget-BWpP5KX6-ef5769b7ec88b403bcd2.js +1 -0
  33. data/tools/admin/LabelvaluedescWidget-DtJwggDu-8f5ffd383ebe39917112.js +1 -0
  34. data/tools/admin/LabelvaluelimitsbarWidget-Bj6UVK-5-3bc80d16b026ae53a8c3.js +1 -0
  35. data/tools/admin/LabelvaluelimitscolumnWidget-BVcEEcUx-bca1e0a997b6558e0437.js +1 -0
  36. data/tools/admin/LabelvaluerangebarWidget-DCJ42bmf-e52d8579650ec3d75800.js +1 -0
  37. data/tools/admin/{Layout-klOVw-YN-57cdd4032a866948ae91.js → Layout-D4YBjuWs-3a490c22141994a23366.js} +1 -1
  38. data/tools/admin/LedWidget-hN9JHxjr-b0dea4cca417c25b5f03.js +1 -0
  39. data/tools/admin/LimitsbarWidget-D-wfz_St-85844bd4c9a6e5782f57.js +1 -0
  40. data/tools/admin/LimitscolorWidget-B0AVGdkz-c473b45d46ee31cdfa59.js +1 -0
  41. data/tools/admin/LimitscolumnWidget-Dt5ce4hN-391c67ae85d2fa51055e.js +1 -0
  42. data/tools/admin/LinegraphWidget-CTjtvtPd-fe55f8974a605da0efa2.js +1 -0
  43. data/tools/admin/MatrixbycolumnsWidget-wLx4NvXV-72377a621dc0bae83cdf.js +1 -0
  44. data/tools/admin/MicroservicesTab-CWf6UOgI-b4b60ecff4d31dae4aa8.js +1 -0
  45. data/tools/admin/{OutputDialog-Cqz9_MPm-909bbcae633ec90197fa.js → OutputDialog-BTG5GO0M-6c156d3831d7592cb837.js} +1 -1
  46. data/tools/admin/PackagesTab-_Sm5Sh1M-cf16003c47a30de4cc75.js +1 -0
  47. data/tools/admin/{PluginsTab-B0MIc4dP-8b7622c22378077aa0a6.js → PluginsTab-CJXN3NPm-dfd0735009f8867c79bc.js} +2 -2
  48. data/tools/admin/ProgressbarWidget-B7l0BBiX-a5031b61d856a8da1127.js +1 -0
  49. data/tools/admin/RadiobuttonWidget-B032jKIw-92c89dce8e32b5b77b86.js +1 -0
  50. data/tools/admin/RadiogroupWidget-Busjqikr-ccb5f63580cfa3a6669b.js +1 -0
  51. data/tools/admin/RangebarWidget-DbYrwEfC-80ec2d6bc7c71c951f35.js +1 -0
  52. data/tools/admin/RedisTab-BwSYwFqz-3119c9906a91eaf4d7be.js +1 -0
  53. data/tools/admin/RollupWidget-rKxLXuCv-1c2837bf382916555b3c.js +1 -0
  54. data/tools/admin/RoutersTab-DHNCXBbM-1a90a758680839afe5bd.js +1 -0
  55. data/tools/admin/ScrollwindowWidget-D4NKIzQO-b14879101eba10ab2f0a.js +1 -0
  56. data/tools/admin/SecretsTab-Dn8_2IXp-734c000bb5e97fff6d7d.js +1 -0
  57. data/tools/admin/SettingsTab-BZBJZWtN-d8e376586fa303549fab.js +1 -0
  58. data/tools/admin/SignalWidget-h-oivReC-3878f2f049be552eda7d.js +1 -0
  59. data/tools/admin/{SimpleTextDialog-BK3uXyK3-9cfb6b5adab2c61d0b30.js → SimpleTextDialog-BQ0jrNW3-7bc1a75a274215196c98.js} +1 -1
  60. data/tools/admin/SpacerWidget-BSy9eOlB-b6eb70cd771cb8926322.js +1 -0
  61. data/tools/admin/SparklineWidget-C9vdxar--4f7468446f8ba99d20b2.js +1 -0
  62. data/tools/admin/TabbookWidget-DTFTKURm-c15c659eae60d609ba8d.js +1 -0
  63. data/tools/admin/TargetsTab-LyhY8e5l-97cd8f57a37fbec3189a.js +1 -0
  64. data/tools/admin/TextboxWidget-BZyYHmBq-a8684205e51e26d6f751.js +1 -0
  65. data/tools/admin/TextfieldWidget-aVRdXRsT-6406eef0f7234e3e3a8e.js +1 -0
  66. data/tools/admin/TimeWidget-BE2rtMxg-cd22b9d2e868bc2ed385.js +1 -0
  67. data/tools/admin/TitleWidget-BB29MZb2-56d767993d5f9646996a.js +1 -0
  68. data/tools/admin/ToolsTab-jhSXe5zM-d0ac19c0d72366628752.js +6 -0
  69. data/tools/admin/{VWidget-Dmqf_jKM-952e90273c0922ac7a4a.js → VWidget-CGdM4sTw-893961bd6ccec05d16a7.js} +1 -1
  70. data/tools/admin/ValueWidget-h3905woQ-f35a0b783e2d2b53c1b7.js +1 -0
  71. data/tools/admin/ValuelimitsbarWidget-LMXYjWtS-8830e5349c4443d13b06.js +1 -0
  72. data/tools/admin/ValuelimitscolumnWidget-gA3ZcfAT-1c66306a40b51c6cba4c.js +1 -0
  73. data/tools/admin/ValuerangebarWidget-DwZ9KQ0O-3ab0abfd6fa6e5124d25.js +1 -0
  74. data/tools/admin/VerticalWidget-DziyURNu-f2c65d60bc0e02f724a1.js +1 -0
  75. data/tools/admin/VerticalboxWidget-OcoZBsFU-a1bcd4a60d355e686386.js +1 -0
  76. data/tools/admin/{Widget-orNSvnOh-a525c9c4a8704c6b360e.js → Widget-C7ms_xDE-6a246185f9a7a9c965ab.js} +1 -1
  77. data/tools/admin/main-ee4a4324250bb0ff8910.js +1431 -0
  78. data/tools/admin/main.js +1 -1
  79. metadata +78 -78
  80. data/tools/admin/ArrayWidget-By62tXtU-ebd68b9b8b5b932d2445.js +0 -2
  81. data/tools/admin/BarColumn-Dm3D1Lhp-f155ed2f23338a0c8a15.js +0 -1
  82. data/tools/admin/BlockWidget-CrT45ode-543f86b8d3f1936515d7.js +0 -2
  83. data/tools/admin/ButtonWidget-CKyBBv6m-e6ea1d4c25739d5981c5.js +0 -2
  84. data/tools/admin/CanvasWidget-PqkppHC7-eeed57e2753786152aee.js +0 -1
  85. data/tools/admin/CanvasdotWidget-BUbJgM2d-7d9174696598f529b9dc.js +0 -1
  86. data/tools/admin/CanvasimageWidget-DPVBY7mi-3f2a8fb1b9ffdbc35d3e.js +0 -1
  87. data/tools/admin/CanvasimagevalueWidget-GX37zzNc-61fbee601180a5d4fe3b.js +0 -1
  88. data/tools/admin/CanvaslabelWidget-P2_Y6Edw-35653e66a7c8993fd0e3.js +0 -1
  89. data/tools/admin/CanvaslabelvalueWidget-Cuas1i9P-8496cddfaa402a64fe5e.js +0 -1
  90. data/tools/admin/CanvaslineWidget-BYOYgPya-2d8e19cc8da5fa24b06b.js +0 -1
  91. data/tools/admin/CanvaslinevalueWidget-3cVJMFo7-d23fc18e1f918da6ee97.js +0 -1
  92. data/tools/admin/CheckbuttonWidget-B3wgSMuB-a269c7fd7cc566239161.js +0 -1
  93. data/tools/admin/ComboboxWidget-Dzr4Scvf-260b017e67109e2fc026.js +0 -1
  94. data/tools/admin/DateWidget-BWh76Ibb-f1712ed35422a2a6596e.js +0 -1
  95. data/tools/admin/DynamicWidget-m9EliUR2-a665966c9316579084a8.js +0 -1
  96. data/tools/admin/FormatvalueWidget-Rk0_eeIm-5c2a5572ba50be1f6890.js +0 -1
  97. data/tools/admin/GraphWidget-LqekkNDr-6af23dd3125a8d7b39a9.js +0 -1
  98. data/tools/admin/HorizontalWidget-BcfJ24Zn-8dcef7c5de51dd325185.js +0 -1
  99. data/tools/admin/HorizontalboxWidget-CQy1Hv9E-6bb5d00229edfea21641.js +0 -1
  100. data/tools/admin/HorizontallineWidget-BdlNB951-770ebba29ef8ee1bd21c.js +0 -1
  101. data/tools/admin/IframeWidget-BBaDrRLo-44a78fa82ad12a1ee6c4.js +0 -1
  102. data/tools/admin/ImageviewerWidget-BgO3Pq6I-d1b099512b26e8adbd97.js +0 -1
  103. data/tools/admin/InterfacesTab-BzXbRnQw-80c9e1a00b588664f0d9.js +0 -1
  104. data/tools/admin/LabelWidget-B_C6lKOE-fa3eff00f1bae0754cc7.js +0 -1
  105. data/tools/admin/LabelledWidget-B_UGivhr-e113f6ce28bf94f51fee.js +0 -1
  106. data/tools/admin/LabelprogressbarWidget-BJWCmsYC-e98295c1bc5e4efb1c09.js +0 -1
  107. data/tools/admin/LabelsparklineWidget-DILCIh3q-f22a36373fc866a444dc.js +0 -1
  108. data/tools/admin/LabelvalueWidget-CCZd1NXE-cf7b93c65219cf160d57.js +0 -1
  109. data/tools/admin/LabelvaluedescWidget-Bsllq8W6-57b9cdcaaebdc309cc98.js +0 -1
  110. data/tools/admin/LabelvaluelimitsbarWidget-BV-cfaD--eecc71f35ce995845faa.js +0 -1
  111. data/tools/admin/LabelvaluelimitscolumnWidget-DwA0eRBw-8ee3644a2037b78c6d62.js +0 -1
  112. data/tools/admin/LabelvaluerangebarWidget-3GDJz3dj-4f27ce8b83e09eaf47f3.js +0 -1
  113. data/tools/admin/LedWidget-BAt02s0J-e049b22bdc18f7bf3f2d.js +0 -1
  114. data/tools/admin/LimitsbarWidget-JJiyzZjb-4b552af8e5470073ec05.js +0 -1
  115. data/tools/admin/LimitscolorWidget-CYzXKbYd-9afbb644c626ad1d6733.js +0 -1
  116. data/tools/admin/LimitscolumnWidget-Cd76tBo7-38462000de2efd18c479.js +0 -1
  117. data/tools/admin/LinegraphWidget-DWRtO6Ej-d0ae58480c116ffb64ef.js +0 -1
  118. data/tools/admin/MatrixbycolumnsWidget-cwsyjNV2-4fd3c3a24ebbb721b45a.js +0 -1
  119. data/tools/admin/MicroservicesTab-CXw9kdWT-5ce1be6883f4ad70a2c2.js +0 -1
  120. data/tools/admin/PackagesTab-wjl76tWL-949bca7c846419d282af.js +0 -1
  121. data/tools/admin/ProgressbarWidget-CYDziFej-d69f11ca427d49bb2ff1.js +0 -1
  122. data/tools/admin/RadiobuttonWidget-U6jcQZoD-e216011f2f6798b2477b.js +0 -1
  123. data/tools/admin/RadiogroupWidget-HTPJnsB0-f62fcea617a41aab7b3d.js +0 -1
  124. data/tools/admin/RangebarWidget-DW0FJK6y-95c451c431feda68a4aa.js +0 -1
  125. data/tools/admin/RedisTab-CO4P3kfJ-e1e822186e9ccbbaf7bd.js +0 -1
  126. data/tools/admin/RollupWidget-B2qrx55f-ab581ccfb8a7a5304da5.js +0 -1
  127. data/tools/admin/RoutersTab-90dfiqgI-592236d66eca1847cd22.js +0 -1
  128. data/tools/admin/ScrollwindowWidget-CwIDxgO6-d408ee37f84c83c69077.js +0 -1
  129. data/tools/admin/SecretsTab-Bt1QgQOO-b442f7cb6ca489679f10.js +0 -1
  130. data/tools/admin/SettingsTab-DcwV8AtY-ce18828e05af3c54b99e.js +0 -1
  131. data/tools/admin/SignalWidget-Bosa3AbW-653d8a9240989fcb6429.js +0 -1
  132. data/tools/admin/SpacerWidget-DYAlt5mt-4cb0a40fc30459d91514.js +0 -1
  133. data/tools/admin/SparklineWidget-CDrVXOFV-a103a847eb4b0ba73f28.js +0 -1
  134. data/tools/admin/TabbookWidget-DDdlzCkv-42afacb720eec281935d.js +0 -1
  135. data/tools/admin/TargetsTab-BCNMBoLQ-cf77d00bc09c263e509d.js +0 -1
  136. data/tools/admin/TextboxWidget-5euFelEq-670c34a45b0d8e0e6b17.js +0 -1
  137. data/tools/admin/TextfieldWidget-BFripYeh-ba16dac10a7b273f33bd.js +0 -1
  138. data/tools/admin/TimeWidget-BBSbsUYJ-66d7abc7bd9891d9f67c.js +0 -1
  139. data/tools/admin/TitleWidget-p8cjo-Bs-bd2c97a4ce86b3f7f776.js +0 -1
  140. data/tools/admin/ToolsTab-CYjue5Jk-b74d99d2d2d48b4bb947.js +0 -6
  141. data/tools/admin/ValueWidget-CZh7JWwT-2c2d67aef078b313f118.js +0 -1
  142. data/tools/admin/ValuelimitsbarWidget-DU7ybswC-e9df05dabfa41fcf9bd3.js +0 -1
  143. data/tools/admin/ValuelimitscolumnWidget-DMw-h5jM-f5941e50754c56bb03c0.js +0 -1
  144. data/tools/admin/ValuerangebarWidget-DPpofDpA-f1cd5777a9e29a9cb40c.js +0 -1
  145. data/tools/admin/VerticalWidget-Ch7VAEmz-ad9c1186ed7e5b3077e2.js +0 -1
  146. data/tools/admin/VerticalboxWidget-DYx-TFT4-eced75b5e33079f1f5ff.js +0 -1
  147. data/tools/admin/main-7b39afe9b1c97330416a.js +0 -1431
@@ -0,0 +1,1431 @@
1
+ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(Dn,Oe){"use strict";var Se,Pe,kt,xe,_e,Xd,ks,to,Dt,ef,Nn,Kt,Fr,Gr,Ss,pt,Nc,ir,tf,Ia,nf,rf,of,Fc,sf,af,Pc,lf,cf,uf,hf,df,ff,pf,gf,mf;return{setters:[nt=>{Se=nt.resolveComponent,Pe=nt.openBlock,kt=nt.createBlock,xe=nt.withCtx,_e=nt.createVNode,Xd=nt.defineAsyncComponent,ks=nt.h,to=nt.normalizeStyle,Dt=nt.createElementBlock,ef=nt.Teleport,Nn=nt.createElementVNode,Kt=nt.toDisplayString,Fr=nt.Fragment,Gr=nt.renderList,Ss=nt.mergeProps,pt=nt.createTextVNode,Nc=nt.createSlots,ir=nt.createCommentVNode,tf=nt.toRaw,Ia=nt.withModifiers,nf=nt.defineComponent,rf=nt.warn,of=nt.inject,Fc=nt.computed,sf=nt.shallowRef,af=nt.watchEffect,Pc=nt.createApp,lf=nt.getCurrentInstance,cf=nt.provide,uf=nt.withDirectives,hf=nt.vShow},nt=>{df=nt.createRouter,ff=nt.createWebHistory},nt=>{pf=nt.getMountedApps},nt=>{gf=nt.createStore},nt=>{mf=nt.createVuetify}],execute:function(){Dn({$:Wn,d:_f,e:_M,l:Qt,p:Li,y:yn,z:Hh});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yf(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),t.push.apply(t,r)}return t}function no(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?yf(Object(t),!0).forEach(function(r){gb(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):yf(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function gb(n,e,t){return(e=function(r){var f=function(h,p){if(ro(h)!=="object"||h===null)return h;var v=h[Symbol.toPrimitive];if(v!==void 0){var d=v.call(h,p||"default");if(ro(d)!=="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(h)}(r,"string");return ro(f)==="symbol"?f:String(f)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ro(n){return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ro(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var e=function(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,f=String(t),h=f.length,p=-1,v="",d=f.charCodeAt(0);++p<h;)(r=f.charCodeAt(p))!=0?v+=r>=1&&r<=31||r==127||p==0&&r>=48&&r<=57||p==1&&r>=48&&r<=57&&d==45?"\\"+r.toString(16)+" ":p==0&&h==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(p):f.charAt(p):v+="�";return v};n.CSS||(n.CSS={}),n.CSS.escape=e})(nt);var mb={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function yb(n){if(ro(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var e=no(no({},mb),n);if(!e.Vue&&!e.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!e.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(e.appOptions.el&&typeof e.appOptions.el!="string"&&!(e.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(ro(e.appOptions.el)));e.createApp=e.createApp||e.Vue&&e.Vue.createApp;var t={};return{bootstrap:vb.bind(null,e,t),mount:bb.bind(null,e,t),unmount:xb.bind(null,e,t),update:wb.bind(null,e,t)}}function vb(n){return n.loadRootComponent?n.loadRootComponent().then(function(e){return n.rootComponent=e}):Promise.resolve()}function bb(n,e,t){var r={};return Promise.resolve().then(function(){return function(f,h){return typeof f.appOptions=="function"?f.appOptions(h):Promise.resolve(no({},f.appOptions))}(n,t).then(function(f){var h;if(t.domElement&&!f.el&&(f.el=t.domElement),f.el)if(typeof f.el=="string"){if(!(h=document.querySelector(f.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(f.el))}else(h=f.el).id||(h.id="single-spa-application:".concat(t.name)),f.el="#".concat(CSS.escape(h.id));else{var p="single-spa-application:".concat(t.name);f.el="#".concat(CSS.escape(p)),(h=document.getElementById(p))||((h=document.createElement("div")).id=p,document.body.appendChild(h))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!h.querySelector(".single-spa-container"))){var v=document.createElement("div");v.className="single-spa-container",h.appendChild(v)}r.domEl=h,f.render||f.template||!n.rootComponent||(f.render=function(g){return g(n.rootComponent)}),f.data||(f.data={});var d=f.data;if(f.data=function(){return no(no({},typeof d=="function"?d.call(this,this):d),t)},n.createApp){if(r.vueInstance=n.createApp(f),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return r.root=r.vueInstance.mount(f.el),e[t.name]=r,r.vueInstance});r.root=r.vueInstance.mount(f.el)}else if(r.vueInstance=new n.Vue(f),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return e[t.name]=r,r.vueInstance});return e[t.name]=r,r.vueInstance})})}function wb(n,e,t){return Promise.resolve().then(function(){var r=e[t.name],f=no(no({},n.appOptions.data||{}),t),h=r.root||r.vueInstance;for(var p in f)h[p]=f[p]})}function xb(n,e,t){return Promise.resolve().then(function(){var r=e[t.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const _b=(n,e)=>{const t=n.__vccOpts||n;for(const[r,f]of e)t[r]=f;return t},kb={};function Sb(n,e){const t=Se("router-view"),r=Se("v-app");return Pe(),kt(r,{id:"innerapp"},{default:xe(()=>[_e(t)]),_:1})}const $b=_b(kb,[["render",Sb]]),vf=function(n){var e;!n.name!=="NotFound"&&(n.path=`/tools/admin/${n.path.replace(/^\//,"")}`),(e=n.children)==null||e.forEach(vf)},JI="modulepreload",XI=function(n){return"/"+n},eO={},De=function(e,t,r){let f=Promise.resolve();function h(p){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=p,window.dispatchEvent(v),!v.defaultPrevented)throw p}return f.then(p=>{for(const v of p||[])v.status==="rejected"&&h(v.reason);return e().catch(h)})},Yr=Dn("s",(n,e)=>{const t=n.__vccOpts||n;for(const[r,f]of e)t[r]=f;return t}),Oa=6e4,Hc=36e5,Cb=1e3,bf=Symbol.for("constructDateFrom");function yn(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&bf in n?n[bf](e):n instanceof Date?new n.constructor(e):new Date(e)}function Qt(n,e){return yn(e||n,n)}let Mb={};function No(){return Mb}function Ti(n,e){var t,r,f,h;const p=No(),v=(e==null?void 0:e.weekStartsOn)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.weekStartsOn)??p.weekStartsOn??((h=(f=p.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,d=Qt(n,e==null?void 0:e.in),g=d.getDay(),s=(g<v?7:0)+g-v;return d.setDate(d.getDate()-s),d.setHours(0,0,0,0),d}function Fo(n,e){return Ti(n,{...e,weekStartsOn:1})}function wf(n,e){const t=Qt(n,void 0),r=t.getFullYear(),f=yn(t,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const h=Fo(f),p=yn(t,0);p.setFullYear(r,0,4),p.setHours(0,0,0,0);const v=Fo(p);return t.getTime()>=h.getTime()?r+1:t.getTime()>=v.getTime()?r:r-1}function Da(n){const e=Qt(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function Ab(n,...e){const t=yn.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function xf(n,e){const t=Qt(n,void 0);return t.setHours(0,0,0,0),t}function Tb(n,e,t){const[r,f]=Ab(void 0,n,e),h=xf(r),p=xf(f),v=+h-Da(h),d=+p-Da(p);return Math.round((v-d)/864e5)}function Eb(n,e){const t=wf(n),r=yn(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),Fo(r)}function Lb(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function _f(n){return!(!Lb(n)&&typeof n!="number"||isNaN(+Qt(n)))}function Rb(n,e){const t=Qt(n,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const Ib={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ob=(n,e,t)=>{let r;const f=Ib[n];return typeof f=="string"?r=f:e===1?r=f.one:r=f.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Bc(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Db={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pb={date:Bc({formats:Db,defaultWidth:"full"}),time:Bc({formats:Nb,defaultWidth:"full"}),dateTime:Bc({formats:Fb,defaultWidth:"full"})},Hb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bb=(n,e,t,r)=>Hb[n];function $s(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const p=n.defaultFormattingWidth||n.defaultWidth,v=t!=null&&t.width?String(t.width):p;f=n.formattingValues[v]||n.formattingValues[p]}else{const p=n.defaultWidth,v=t!=null&&t.width?String(t.width):n.defaultWidth;f=n.values[v]||n.values[p]}const h=n.argumentCallback?n.argumentCallback(e):e;return f[h]}}const jb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ub={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Vb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},qb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Gb=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Yb={ordinalNumber:Gb,era:$s({values:jb,defaultWidth:"wide"}),quarter:$s({values:zb,defaultWidth:"wide",argumentCallback:n=>n-1}),month:$s({values:Wb,defaultWidth:"wide"}),day:$s({values:Ub,defaultWidth:"wide"}),dayPeriod:$s({values:Vb,defaultWidth:"wide",formattingValues:qb,defaultFormattingWidth:"wide"})};function Cs(n){return(e,t={})=>{const r=t.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],h=e.match(f);if(!h)return null;const p=h[0],v=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],d=Array.isArray(v)?Qb(v,l=>l.test(p)):Kb(v,l=>l.test(p));let g;g=n.valueCallback?n.valueCallback(d):d,g=t.valueCallback?t.valueCallback(g):g;const s=e.slice(p.length);return{value:g,rest:s}}}function Kb(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function Qb(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function Zb(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const f=r[0],h=e.match(n.parsePattern);if(!h)return null;let p=n.valueCallback?n.valueCallback(h[0]):h[0];p=t.valueCallback?t.valueCallback(p):p;const v=e.slice(f.length);return{value:p,rest:v}}}const Jb=/^(\d+)(th|st|nd|rd)?/i,Xb=/\d+/i,ew={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tw={any:[/^b/i,/^(a|c)/i]},nw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rw={any:[/1/i,/2/i,/3/i,/4/i]},iw={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ow={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sw={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},aw={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lw={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cw={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uw={ordinalNumber:Zb({matchPattern:Jb,parsePattern:Xb,valueCallback:n=>parseInt(n,10)}),era:Cs({matchPatterns:ew,defaultMatchWidth:"wide",parsePatterns:tw,defaultParseWidth:"any"}),quarter:Cs({matchPatterns:nw,defaultMatchWidth:"wide",parsePatterns:rw,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Cs({matchPatterns:iw,defaultMatchWidth:"wide",parsePatterns:ow,defaultParseWidth:"any"}),day:Cs({matchPatterns:sw,defaultMatchWidth:"wide",parsePatterns:aw,defaultParseWidth:"any"}),dayPeriod:Cs({matchPatterns:lw,defaultMatchWidth:"any",parsePatterns:cw,defaultParseWidth:"any"})},kf={code:"en-US",formatDistance:Ob,formatLong:Pb,formatRelative:Bb,localize:Yb,match:uw,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hw(n,e){const t=Qt(n,void 0);return Tb(t,Rb(t))+1}function Sf(n,e){const t=Qt(n,void 0),r=+Fo(t)-+Eb(t);return Math.round(r/6048e5)+1}function jc(n,e){var t,r,f,h;const p=Qt(n,e==null?void 0:e.in),v=p.getFullYear(),d=No(),g=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??d.firstWeekContainsDate??((h=(f=d.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=yn((e==null?void 0:e.in)||n,0);s.setFullYear(v+1,0,g),s.setHours(0,0,0,0);const l=Ti(s,e),a=yn((e==null?void 0:e.in)||n,0);a.setFullYear(v,0,g),a.setHours(0,0,0,0);const c=Ti(a,e);return+p>=+l?v+1:+p>=+c?v:v-1}function dw(n,e){var t,r,f,h;const p=No(),v=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??p.firstWeekContainsDate??((h=(f=p.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,d=jc(n,e),g=yn((e==null?void 0:e.in)||n,0);return g.setFullYear(d,0,v),g.setHours(0,0,0,0),Ti(g,e)}function $f(n,e){const t=Qt(n,e==null?void 0:e.in),r=+Ti(t,e)-+dw(t,e);return Math.round(r/6048e5)+1}function Lt(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const Ei={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return Lt(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):Lt(t+1,2)},d(n,e){return Lt(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return Lt(n.getHours()%12||12,e.length)},H(n,e){return Lt(n.getHours(),e.length)},m(n,e){return Lt(n.getMinutes(),e.length)},s(n,e){return Lt(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,t-3));return Lt(f,e.length)}},Po={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Cf={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),f=r>0?r:1-r;return t.ordinalNumber(f,{unit:"year"})}return Ei.y(n,e)},Y:function(n,e,t,r){const f=jc(n,r),h=f>0?f:1-f;if(e==="YY"){const p=h%100;return Lt(p,2)}return e==="Yo"?t.ordinalNumber(h,{unit:"year"}):Lt(h,e.length)},R:function(n,e){const t=wf(n);return Lt(t,e.length)},u:function(n,e){const t=n.getFullYear();return Lt(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Lt(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Lt(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return Ei.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return Lt(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const f=$f(n,r);return e==="wo"?t.ordinalNumber(f,{unit:"week"}):Lt(f,e.length)},I:function(n,e,t){const r=Sf(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):Lt(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):Ei.d(n,e)},D:function(n,e,t){const r=hw(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):Lt(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const f=n.getDay(),h=(f-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(h);case"ee":return Lt(h,2);case"eo":return t.ordinalNumber(h,{unit:"day"});case"eee":return t.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(f,{width:"short",context:"formatting"});case"eeee":default:return t.day(f,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const f=n.getDay(),h=(f-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(h);case"cc":return Lt(h,e.length);case"co":return t.ordinalNumber(h,{unit:"day"});case"ccc":return t.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(f,{width:"narrow",context:"standalone"});case"cccccc":return t.day(f,{width:"short",context:"standalone"});case"cccc":default:return t.day(f,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),f=r===0?7:r;switch(e){case"i":return String(f);case"ii":return Lt(f,e.length);case"io":return t.ordinalNumber(f,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const r=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let f;switch(r===12?f=Po.noon:r===0?f=Po.midnight:f=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let f;switch(r>=17?f=Po.evening:r>=12?f=Po.afternoon:r>=4?f=Po.morning:f=Po.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Ei.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):Ei.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):Lt(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):Lt(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ei.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):Ei.s(n,e)},S:function(n,e){return Ei.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Af(r);case"XXXX":case"XX":return io(r);case"XXXXX":case"XXX":default:return io(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return Af(r);case"xxxx":case"xx":return io(r);case"xxxxx":case"xxx":default:return io(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Mf(r,":");case"OOOO":default:return"GMT"+io(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Mf(r,":");case"zzzz":default:return"GMT"+io(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return Lt(r,e.length)},T:function(n,e,t){return Lt(+n,e.length)}};function Mf(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),h=r%60;return h===0?t+String(f):t+String(f)+e+Lt(h,2)}function Af(n,e){return n%60===0?(n>0?"-":"+")+Lt(Math.abs(n)/60,2):io(n,e)}function io(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),f=Lt(Math.trunc(r/60),2),h=Lt(r%60,2);return t+f+e+h}const Tf=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Ef=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},fw=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],f=t[2];if(!f)return Tf(n,e);let h;switch(r){case"P":h=e.dateTime({width:"short"});break;case"PP":h=e.dateTime({width:"medium"});break;case"PPP":h=e.dateTime({width:"long"});break;case"PPPP":default:h=e.dateTime({width:"full"});break}return h.replace("{{date}}",Tf(r,e)).replace("{{time}}",Ef(f,e))},zc={p:Ef,P:fw},pw=/^D+$/,gw=/^Y+$/,mw=["D","DD","YY","YYYY"];function Lf(n){return pw.test(n)}function Rf(n){return gw.test(n)}function Wc(n,e,t){const r=yw(n,e,t);if(console.warn(r),mw.includes(n))throw new RangeError(r)}function yw(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const vw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ww=/^'([^]*?)'?$/,xw=/''/g,_w=/[a-zA-Z]/;function Li(n,e,t){var r,f,h,p,v,d,g,s;const l=No(),a=(t==null?void 0:t.locale)??l.locale??kf,c=(t==null?void 0:t.firstWeekContainsDate)??((f=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??l.firstWeekContainsDate??((p=(h=l.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,o=(t==null?void 0:t.weekStartsOn)??((d=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:d.weekStartsOn)??l.weekStartsOn??((s=(g=l.locale)==null?void 0:g.options)==null?void 0:s.weekStartsOn)??0,u=Qt(n,t==null?void 0:t.in);if(!_f(u))throw new RangeError("Invalid time value");let y=e.match(bw).map(x=>{const E=x[0];if(E==="p"||E==="P"){const C=zc[E];return C(x,a.formatLong)}return x}).join("").match(vw).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const E=x[0];if(E==="'")return{isToken:!1,value:kw(x)};if(Cf[E])return{isToken:!0,value:x};if(E.match(_w))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(y=a.localize.preprocessor(u,y));const b={firstWeekContainsDate:c,weekStartsOn:o,locale:a};return y.map(x=>{if(!x.isToken)return x.value;const E=x.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Rf(E)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&Lf(E))&&Wc(E,e,String(n));const C=Cf[E[0]];return C(u,E,a.localize,b)}).join("")}function kw(n){const e=n.match(ww);return e?e[1].replace(xw,"'"):n}var Ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Na(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var If={exports:{}},Of;function Sw(){return Of||(Of=1,function(n,e){(function(){var t="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(s,l,a){if(typeof s!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(a=l),f.modules[s]||(f.payloads[s]=a,f.modules[s]=null)};f.modules={},f.payloads={};var h=function(s,l,a){if(typeof l=="string"){var c=d(s,l);if(c!=null)return a&&a(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],u=0,y=l.length;u<y;++u){var b=d(s,l[u]);if(b==null&&p.original)return;o.push(b)}return a&&a.apply(null,o)||!0}},p=function(s,l){var a=h("",s,l);return a==null&&p.original?p.original.apply(this,arguments):a},v=function(s,l){if(l.indexOf("!")!==-1){var a=l.split("!");return v(s,a[0])+"!"+v(s,a[1])}if(l.charAt(0)=="."){var c=s.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&o!=l;){var o=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},d=function(s,l){l=v(s,l);var a=f.modules[l];if(!a){if(a=f.payloads[l],typeof a=="function"){var c={},o={id:l,uri:"",exports:c,packaged:!0},u=function(b,x){return h(l,b,x)},y=a(u,c,o);c=y||o.exports,f.modules[l]=c,delete f.payloads[l]}a=f.modules[l]=c||a}return a};function g(s){var l=r;r[s]||(r[s]={}),l=r[s],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(p.original=l.require,l.require=p,l.require.packaged=!0)}g(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,r,f){function h(p,v,d){Object.defineProperty(p,v,{value:d,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||h(String.prototype,"startsWith",function(p,v){return v=v||0,this.lastIndexOf(p,v)===v}),String.prototype.endsWith||h(String.prototype,"endsWith",function(p,v){var d=this;(v===void 0||v>d.length)&&(v=d.length),v-=p.length;var g=d.indexOf(p,v);return g!==-1&&g===v}),String.prototype.repeat||h(String.prototype,"repeat",function(p){for(var v="",d=this;p>0;)p&1&&(v+=d),(p>>=1)&&(d+=d);return v}),String.prototype.includes||h(String.prototype,"includes",function(p,v){return this.indexOf(p,v)!=-1}),Object.assign||(Object.assign=function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(p),d=1;d<arguments.length;d++){var g=arguments[d];g!=null&&Object.keys(g).forEach(function(s){v[s]=g[s]})}return v}),Object.values||(Object.values=function(p){return Object.keys(p).map(function(v){return p[v]})}),Array.prototype.find||h(Array.prototype,"find",function(p){for(var v=this.length,d=arguments[1],g=0;g<v;g++){var s=this[g];if(p.call(d,s,g,this))return s}}),Array.prototype.findIndex||h(Array.prototype,"findIndex",function(p){for(var v=this.length,d=arguments[1],g=0;g<v;g++){var s=this[g];if(p.call(d,s,g,this))return g}}),Array.prototype.includes||h(Array.prototype,"includes",function(p,v){return this.indexOf(p,v)!=-1}),Array.prototype.fill||h(Array.prototype,"fill",function(p){for(var v=this,d=v.length>>>0,g=arguments[1],s=g>>0,l=s<0?Math.max(d+s,0):Math.min(s,d),a=arguments[2],c=a===void 0?d:a>>0,o=c<0?Math.max(d+c,0):Math.min(c,d);l<o;)v[l]=p,l++;return v}),Array.of||h(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,r,f){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,r,f){r.deepCopy=function h(p){if(typeof p!="object"||!p)return p;var v;if(Array.isArray(p)){v=[];for(var d=0;d<p.length;d++)v[d]=h(p[d]);return v}if(Object.prototype.toString.call(p)!=="[object Object]")return p;v={};for(var d in p)v[d]=h(p[d]);return v}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,r,f){r.last=function(v){return v[v.length-1]},r.stringReverse=function(v){return v.split("").reverse().join("")},r.stringRepeat=function(v,d){for(var g="";d>0;)d&1&&(g+=v),(d>>=1)&&(v+=v);return g};var h=/^\s\s*/,p=/\s\s*$/;r.stringTrimLeft=function(v){return v.replace(h,"")},r.stringTrimRight=function(v){return v.replace(p,"")},r.copyObject=function(v){var d={};for(var g in v)d[g]=v[g];return d},r.copyArray=function(v){for(var d=[],g=0,s=v.length;g<s;g++)v[g]&&typeof v[g]=="object"?d[g]=this.copyObject(v[g]):d[g]=v[g];return d},r.deepCopy=t("./deep_copy").deepCopy,r.arrayToMap=function(v){for(var d={},g=0;g<v.length;g++)d[v[g]]=1;return d},r.createMap=function(v){var d=Object.create(null);for(var g in v)d[g]=v[g];return d},r.arrayRemove=function(v,d){for(var g=0;g<=v.length;g++)d===v[g]&&v.splice(g,1)},r.escapeRegExp=function(v){return v.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(v){return(""+v).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},r.getMatchOffsets=function(v,d){var g=[];return v.replace(d,function(s){g.push({offset:arguments[arguments.length-2],length:s.length})}),g},r.deferredCall=function(v){var d=null,g=function(){d=null,v()},s=function(l){return s.cancel(),d=setTimeout(g,l||0),s};return s.schedule=s,s.call=function(){return this.cancel(),v(),s},s.cancel=function(){return clearTimeout(d),d=null,s},s.isPending=function(){return d},s},r.delayedCall=function(v,d){var g=null,s=function(){g=null,v()},l=function(a){g==null&&(g=setTimeout(s,a||d))};return l.delay=function(a){g&&clearTimeout(g),g=setTimeout(s,a||d)},l.schedule=l,l.call=function(){this.cancel(),v()},l.cancel=function(){g&&clearTimeout(g),g=null},l.isPending=function(){return g},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(v,d,g){return g&&v.codePointAt(d)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,r,f){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var h=typeof navigator=="object"?navigator:{},p=(/mac|win|linux/i.exec(h.platform)||["other"])[0].toLowerCase(),v=h.userAgent||"",d=h.appName||"";r.isWin=p=="win",r.isMac=p=="mac",r.isLinux=p=="linux",r.isIE=d=="Microsoft Internet Explorer"||d.indexOf("MSAppHost")>=0?parseFloat((v.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((v.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=v.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(v.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(v.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(v.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(v.split(" Edge/")[1])||void 0,r.isAIR=v.indexOf("AdobeAIR")>=0,r.isAndroid=v.indexOf("Android")>=0,r.isChromeOS=v.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(v)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,r,f){var h=t("./useragent"),p="http://www.w3.org/1999/xhtml";r.buildDom=function a(c,o,u){if(typeof c=="string"&&c){var y=document.createTextNode(c);return o&&o.appendChild(y),y}if(!Array.isArray(c))return c&&c.appendChild&&o&&o.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var E=a(c[x],o,u);E&&b.push(E)}return b}var C=document.createElement(c[0]),k=c[1],w=1;k&&typeof k=="object"&&!Array.isArray(k)&&(w=2);for(var x=w;x<c.length;x++)a(c[x],C,u);return w==2&&Object.keys(k).forEach(function(A){var L=k[A];A==="class"?C.className=Array.isArray(L)?L.join(" "):L:typeof L=="function"||A=="value"||A[0]=="$"?C[A]=L:A==="ref"?u&&(u[L]=C):A==="style"?typeof L=="string"&&(C.style.cssText=L):L!=null&&C.setAttribute(A,L)}),o&&o.appendChild(C),C},r.getDocumentHead=function(a){return a||(a=document),a.head||a.getElementsByTagName("head")[0]||a.documentElement},r.createElement=function(a,c){return document.createElementNS?document.createElementNS(c||p,a):document.createElement(a)},r.removeChildren=function(a){a.innerHTML=""},r.createTextNode=function(a,c){var o=c?c.ownerDocument:document;return o.createTextNode(a)},r.createFragment=function(a){var c=a?a.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(a,c){var o=(a.className+"").split(/\s+/g);return o.indexOf(c)!==-1},r.addCssClass=function(a,c){r.hasCssClass(a,c)||(a.className+=" "+c)},r.removeCssClass=function(a,c){for(var o=a.className.split(/\s+/g);;){var u=o.indexOf(c);if(u==-1)break;o.splice(u,1)}a.className=o.join(" ")},r.toggleCssClass=function(a,c){for(var o=a.className.split(/\s+/g),u=!0;;){var y=o.indexOf(c);if(y==-1)break;u=!1,o.splice(y,1)}return u&&o.push(c),a.className=o.join(" "),u},r.setCssClass=function(a,c,o){o?r.addCssClass(a,c):r.removeCssClass(a,c)},r.hasCssString=function(a,c){var o=0,u;if(c=c||document,u=c.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===a)return!0}},r.removeElementById=function(a,c){c=c||document,c.getElementById(a)&&c.getElementById(a).remove()};var v,d=[];r.useStrictCSP=function(a){v=a,a==!1?g():d||(d=[])};function g(){var a=d;d=null,a&&a.forEach(function(c){s(c[0],c[1])})}function s(a,c,o){if(!(typeof document>"u")){if(d){if(o)g();else if(o===!1)return d.push([a,c])}if(!v){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var y=u.ownerDocument||u;if(c&&r.hasCssString(c,u))return null;c&&(a+=`
2
+ /*# sourceURL=ace/css/`+c+" */");var b=r.createElement("style");b.appendChild(y.createTextNode(a)),c&&(b.id=c),u==y&&(u=r.getDocumentHead(y)),u.insertBefore(b,u.firstChild)}}}if(r.importCssString=s,r.importCssStylsheet=function(a,c){r.buildDom(["link",{rel:"stylesheet",href:a}],r.getDocumentHead(c))},r.scrollbarWidth=function(a){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var o=r.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(c);var y=a&&a.documentElement||document&&document.documentElement;if(!y)return 0;y.appendChild(o);var b=c.offsetWidth;u.overflow="scroll";var x=c.offsetWidth;return b===x&&(x=o.clientWidth),y.removeChild(o),b-x},r.computedStyle=function(a,c){return window.getComputedStyle(a,"")||{}},r.setStyle=function(a,c,o){a[c]!==o&&(a[c]=o)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=h.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,h.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!h.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(a,c,o){a.style.transform="translate("+Math.round(c)+"px, "+Math.round(o)+"px)"}:r.translate=function(a,c,o){a.style.top=Math.round(o)+"px",a.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,r,f){/*
3
+ * based on code from:
4
+ *
5
+ * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
6
+ * Available via the MIT or new BSD license.
7
+ * see: http://github.com/jrburke/requirejs for details
8
+ */var h=t("./dom");r.get=function(p,v){var d=new XMLHttpRequest;d.open("GET",p,!0),d.onreadystatechange=function(){d.readyState===4&&v(d.responseText)},d.send(null)},r.loadScript=function(p,v){var d=h.getDocumentHead(),g=document.createElement("script");g.src=p,d.appendChild(g),g.onload=g.onreadystatechange=function(s,l){(l||!g.readyState||g.readyState=="loaded"||g.readyState=="complete")&&(g=g.onload=g.onreadystatechange=null,l||v())}},r.qualifyURL=function(p){var v=document.createElement("a");return v.href=p,v.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(t,r,f){r.inherits=function(h,p){h.super_=p,h.prototype=Object.create(p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})},r.mixin=function(h,p){for(var v in p)h[v]=p[v];return h},r.implement=function(h,p){r.mixin(h,p)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(t,r,f){var h={},p=function(){this.propagationStopped=!0},v=function(){this.defaultPrevented=!0};h._emit=h._dispatchEvent=function(d,g){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var s=this._eventRegistry[d]||[],l=this._defaultHandlers[d];if(!(!s.length&&!l)){(typeof g!="object"||!g)&&(g={}),g.type||(g.type=d),g.stopPropagation||(g.stopPropagation=p),g.preventDefault||(g.preventDefault=v),s=s.slice();for(var a=0;a<s.length&&(s[a](g,this),!g.propagationStopped);a++);if(l&&!g.defaultPrevented)return l(g,this)}},h._signal=function(d,g){var s=(this._eventRegistry||{})[d];if(s){s=s.slice();for(var l=0;l<s.length;l++)s[l](g,this)}},h.once=function(d,g){var s=this;if(this.on(d,function l(){s.off(d,l),g.apply(null,arguments)}),!g)return new Promise(function(l){g=l})},h.setDefaultHandler=function(d,g){var s=this._defaultHandlers;if(s||(s=this._defaultHandlers={_disabled_:{}}),s[d]){var l=s[d],a=s._disabled_[d];a||(s._disabled_[d]=a=[]),a.push(l);var c=a.indexOf(g);c!=-1&&a.splice(c,1)}s[d]=g},h.removeDefaultHandler=function(d,g){var s=this._defaultHandlers;if(s){var l=s._disabled_[d];if(s[d]==g)l&&this.setDefaultHandler(d,l.pop());else if(l){var a=l.indexOf(g);a!=-1&&l.splice(a,1)}}},h.on=h.addEventListener=function(d,g,s){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[d];return l||(l=this._eventRegistry[d]=[]),l.indexOf(g)==-1&&l[s?"unshift":"push"](g),g},h.off=h.removeListener=h.removeEventListener=function(d,g){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[d];if(s){var l=s.indexOf(g);l!==-1&&s.splice(l,1)}},h.removeAllListeners=function(d){d||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[d]=void 0),this._defaultHandlers&&(this._defaultHandlers[d]=void 0)},r.EventEmitter=h}),ace.define("ace/lib/report_error",["require","exports","module"],function(t,r,f){r.reportError=function(h,p){var v=new Error(h);v.data=p,typeof console=="object"&&console.error&&console.error(v),setTimeout(function(){throw v})}}),ace.define("ace/lib/default_english_messages",["require","exports","module"],function(t,r,f){var h={"autocomplete.popup.aria-roledescription":"Autocomplete suggestions","autocomplete.popup.aria-label":"Autocomplete suggestions","autocomplete.popup.item.aria-roledescription":"item","autocomplete.loading":"Loading...","editor.scroller.aria-roledescription":"editor","editor.scroller.aria-label":"Editor content, press Enter to start editing, press Escape to exit","editor.gutter.aria-roledescription":"editor","editor.gutter.aria-label":"Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit","error-marker.good-state":"Looks good!","prompt.recently-used":"Recently used","prompt.other-commands":"Other commands","prompt.no-matching-commands":"No matching commands","search-box.find.placeholder":"Search for","search-box.find-all.text":"All","search-box.replace.placeholder":"Replace with","search-box.replace-next.text":"Replace","search-box.replace-all.text":"All","search-box.toggle-replace.title":"Toggle Replace mode","search-box.toggle-regexp.title":"RegExp Search","search-box.toggle-case.title":"CaseSensitive Search","search-box.toggle-whole-word.title":"Whole Word Search","search-box.toggle-in-selection.title":"Search In Selection","search-box.search-counter":"$0 of $1","text-input.aria-roledescription":"editor","text-input.aria-label":"Cursor at row $0","gutter.code-folding.range.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.closed.aria-label":"Toggle code folding, rows $0 through $1","gutter.code-folding.open.aria-label":"Toggle code folding, row $0","gutter.code-folding.closed.title":"Unfold code","gutter.code-folding.open.title":"Fold code","gutter.annotation.aria-label.error":"Error, read annotations row $0","gutter.annotation.aria-label.warning":"Warning, read annotations row $0","gutter.annotation.aria-label.info":"Info, read annotations row $0","inline-fold.closed.title":"Unfold code","gutter-tooltip.aria-label.error.singular":"error","gutter-tooltip.aria-label.error.plural":"errors","gutter-tooltip.aria-label.warning.singular":"warning","gutter-tooltip.aria-label.warning.plural":"warnings","gutter-tooltip.aria-label.info.singular":"information message","gutter-tooltip.aria-label.info.plural":"information messages","gutter.annotation.aria-label.security":"Security finding, read annotations row $0","gutter.annotation.aria-label.hint":"Suggestion, read annotations row $0","gutter-tooltip.aria-label.security.singular":"security finding","gutter-tooltip.aria-label.security.plural":"security findings","gutter-tooltip.aria-label.hint.singular":"suggestion","gutter-tooltip.aria-label.hint.plural":"suggestions"};r.defaultEnglishMessages=h}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error","ace/lib/default_english_messages"],function(t,r,f){"no use strict";var h=t("./oop"),p=t("./event_emitter").EventEmitter,v=t("./report_error").reportError,d=t("./default_english_messages").defaultEnglishMessages,g={setOptions:function(o){Object.keys(o).forEach(function(u){this.setOption(u,o[u])},this)},getOptions:function(o){var u={};if(o)Array.isArray(o)||(u=o,o=Object.keys(u));else{var y=this.$options;o=Object.keys(y).filter(function(b){return!y[b].hidden})}return o.forEach(function(b){u[b]=this.getOption(b)},this),u},setOption:function(o,u){if(this["$"+o]!==u){var y=this.$options[o];if(!y)return s('misspelled option "'+o+'"');if(y.forwardTo)return this[y.forwardTo]&&this[y.forwardTo].setOption(o,u);y.handlesSet||(this["$"+o]=u),y&&y.set&&y.set.call(this,u)}},getOption:function(o){var u=this.$options[o];return u?u.forwardTo?this[u.forwardTo]&&this[u.forwardTo].getOption(o):u&&u.get?u.get.call(this):this["$"+o]:s('misspelled option "'+o+'"')}};function s(o){typeof console<"u"&&console.warn&&console.warn.apply(console,arguments)}var l,a,c=function(){function o(){this.$defaultOptions={},l=d,a="dollarSigns"}return o.prototype.defineOptions=function(u,y,b){return u.$options||(this.$defaultOptions[y]=u.$options={}),Object.keys(b).forEach(function(x){var E=b[x];typeof E=="string"&&(E={forwardTo:E}),E.name||(E.name=x),u.$options[E.name]=E,"initialValue"in E&&(u["$"+E.name]=E.initialValue)}),h.implement(u,g),this},o.prototype.resetOptions=function(u){Object.keys(u.$options).forEach(function(y){var b=u.$options[y];"value"in b&&u.setOption(y,b.value)})},o.prototype.setDefaultValue=function(u,y,b){if(!u){for(u in this.$defaultOptions)if(this.$defaultOptions[u][y])break;if(!this.$defaultOptions[u][y])return!1}var x=this.$defaultOptions[u]||(this.$defaultOptions[u]={});x[y]&&(x.forwardTo?this.setDefaultValue(x.forwardTo,y,b):x[y].value=b)},o.prototype.setDefaultValues=function(u,y){Object.keys(y).forEach(function(b){this.setDefaultValue(u,b,y[b])},this)},o.prototype.setMessages=function(u,y){l=u,y&&y.placeholders&&(a=y.placeholders)},o.prototype.nls=function(u,y,b){l[u]||(s("No message found for the key '"+u+"' in messages with id "+l.$id+", trying to find a translation for the default string '"+y+"'."),l[y]||s("No message found for the default string '"+y+"' in the provided messages. Falling back to the default English message."));var x=l[u]||l[y]||y;return b&&(a==="dollarSigns"&&(x=x.replace(/\$(\$|[\d]+)/g,function(E,C){return C=="$"?"$":b[C]})),a==="curlyBrackets"&&(x=x.replace(/\{([^\}]+)\}/g,function(E,C){return b[C]}))),x},o}();c.prototype.warn=s,c.prototype.reportError=v,h.implement(c.prototype,p),r.AppConfig=c}),ace.define("ace/theme/textmate-css",["require","exports","module"],function(t,r,f){f.exports=`.ace-tm .ace_gutter {
9
+ background: #f0f0f0;
10
+ color: #333;
11
+ }
12
+
13
+ .ace-tm .ace_print-margin {
14
+ width: 1px;
15
+ background: #e8e8e8;
16
+ }
17
+
18
+ .ace-tm .ace_fold {
19
+ background-color: #6B72E6;
20
+ }
21
+
22
+ .ace-tm {
23
+ background-color: #FFFFFF;
24
+ color: black;
25
+ }
26
+
27
+ .ace-tm .ace_cursor {
28
+ color: black;
29
+ }
30
+
31
+ .ace-tm .ace_invisible {
32
+ color: rgb(191, 191, 191);
33
+ }
34
+
35
+ .ace-tm .ace_storage,
36
+ .ace-tm .ace_keyword {
37
+ color: blue;
38
+ }
39
+
40
+ .ace-tm .ace_constant {
41
+ color: rgb(197, 6, 11);
42
+ }
43
+
44
+ .ace-tm .ace_constant.ace_buildin {
45
+ color: rgb(88, 72, 246);
46
+ }
47
+
48
+ .ace-tm .ace_constant.ace_language {
49
+ color: rgb(88, 92, 246);
50
+ }
51
+
52
+ .ace-tm .ace_constant.ace_library {
53
+ color: rgb(6, 150, 14);
54
+ }
55
+
56
+ .ace-tm .ace_invalid {
57
+ background-color: rgba(255, 0, 0, 0.1);
58
+ color: red;
59
+ }
60
+
61
+ .ace-tm .ace_support.ace_function {
62
+ color: rgb(60, 76, 114);
63
+ }
64
+
65
+ .ace-tm .ace_support.ace_constant {
66
+ color: rgb(6, 150, 14);
67
+ }
68
+
69
+ .ace-tm .ace_support.ace_type,
70
+ .ace-tm .ace_support.ace_class {
71
+ color: rgb(109, 121, 222);
72
+ }
73
+
74
+ .ace-tm .ace_keyword.ace_operator {
75
+ color: rgb(104, 118, 135);
76
+ }
77
+
78
+ .ace-tm .ace_string {
79
+ color: rgb(3, 106, 7);
80
+ }
81
+
82
+ .ace-tm .ace_comment {
83
+ color: rgb(76, 136, 107);
84
+ }
85
+
86
+ .ace-tm .ace_comment.ace_doc {
87
+ color: rgb(0, 102, 255);
88
+ }
89
+
90
+ .ace-tm .ace_comment.ace_doc.ace_tag {
91
+ color: rgb(128, 159, 191);
92
+ }
93
+
94
+ .ace-tm .ace_constant.ace_numeric {
95
+ color: rgb(0, 0, 205);
96
+ }
97
+
98
+ .ace-tm .ace_variable {
99
+ color: rgb(49, 132, 149);
100
+ }
101
+
102
+ .ace-tm .ace_xml-pe {
103
+ color: rgb(104, 104, 91);
104
+ }
105
+
106
+ .ace-tm .ace_entity.ace_name.ace_function {
107
+ color: #0000A2;
108
+ }
109
+
110
+
111
+ .ace-tm .ace_heading {
112
+ color: rgb(12, 7, 255);
113
+ }
114
+
115
+ .ace-tm .ace_list {
116
+ color:rgb(185, 6, 144);
117
+ }
118
+
119
+ .ace-tm .ace_meta.ace_tag {
120
+ color:rgb(0, 22, 142);
121
+ }
122
+
123
+ .ace-tm .ace_string.ace_regex {
124
+ color: rgb(255, 0, 0)
125
+ }
126
+
127
+ .ace-tm .ace_marker-layer .ace_selection {
128
+ background: rgb(181, 213, 255);
129
+ }
130
+ .ace-tm.ace_multiselect .ace_selection.ace_start {
131
+ box-shadow: 0 0 3px 0px white;
132
+ }
133
+ .ace-tm .ace_marker-layer .ace_step {
134
+ background: rgb(252, 255, 0);
135
+ }
136
+
137
+ .ace-tm .ace_marker-layer .ace_stack {
138
+ background: rgb(164, 229, 101);
139
+ }
140
+
141
+ .ace-tm .ace_marker-layer .ace_bracket {
142
+ margin: -1px 0 0 -1px;
143
+ border: 1px solid rgb(192, 192, 192);
144
+ }
145
+
146
+ .ace-tm .ace_marker-layer .ace_active-line {
147
+ background: rgba(0, 0, 0, 0.07);
148
+ }
149
+
150
+ .ace-tm .ace_gutter-active-line {
151
+ background-color : #dcdcdc;
152
+ }
153
+
154
+ .ace-tm .ace_marker-layer .ace_selected-word {
155
+ background: rgb(250, 250, 255);
156
+ border: 1px solid rgb(200, 200, 250);
157
+ }
158
+
159
+ .ace-tm .ace_indent-guide {
160
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
161
+ }
162
+
163
+ .ace-tm .ace_indent-guide-active {
164
+ background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
165
+ }
166
+ `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(t,r,f){r.isDark=!1,r.cssClass="ace-tm",r.cssText=t("./textmate-css"),r.$id="ace/theme/textmate";var h=t("../lib/dom");h.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(t,r,f){"no use strict";var h=t("./lib/lang"),p=t("./lib/net"),v=t("./lib/dom"),d=t("./lib/app_config").AppConfig;f.exports=r=new d;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!g.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return g[c]},r.set=function(c,o){if(g.hasOwnProperty(c))g[c]=o;else if(this.setDefaultValue("",c,o)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&v.useStrictCSP(o)},r.all=function(){return h.copyObject(g)},r.$modes={},r.moduleUrl=function(c,o){if(g.$moduleUrls[c])return g.$moduleUrls[c];var u=c.split("/");o=o||u[u.length-2]||"";var y=o=="snippets"?"/":"-",b=u[u.length-1];if(o=="worker"&&y=="-"){var x=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");b=b.replace(x,"")}(!b||b==o)&&u.length>1&&(b=u[u.length-2]);var E=g[o+"Path"];return E==null?E=g.basePath:y=="/"&&(o=y=""),E&&E.slice(-1)!="/"&&(E+="/"),E+o+y+b+this.get("suffix")},r.setModuleUrl=function(c,o){return g.$moduleUrls[c]=o};var s=function(c,o){if(c==="ace/theme/textmate"||c==="./theme/textmate")return o(null,t("./theme/textmate"));if(l)return l(c,o);console.error("loader is not configured")},l;r.setLoader=function(c){l=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,o){var u;if(Array.isArray(c))var y=c[0],b=c[1];else if(typeof c=="string")var b=c;var x=function(E){if(E&&!r.$loading[b])return o&&o(E);if(r.$loading[b]||(r.$loading[b]=[]),r.$loading[b].push(o),!(r.$loading[b].length>1)){var C=function(){s(b,function(k,w){w&&(r.$loaded[b]=w),r._emit("load.module",{name:b,module:w});var A=r.$loading[b];r.$loading[b]=null,A.forEach(function(L){L&&L(w)})})};if(!r.get("packaged"))return C();p.loadScript(r.moduleUrl(b,y),C),a()}};if(r.dynamicModules[b])r.dynamicModules[b]().then(function(E){E.default?x(E.default):x(E)});else{try{u=this.$require(b)}catch{}x(u||r.$loaded[b])}},r.$require=function(c){if(typeof f.require=="function"){var o="require";return f[o](c)}},r.setModuleLoader=function(c,o){r.dynamicModules[c]=o};var a=function(){!g.basePath&&!g.workerPath&&!g.modePath&&!g.themePath&&!Object.keys(g.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),a=function(){})};r.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,r,f){t("./lib/fixoldbrowsers");var h=t("./config");h.setLoader(function(g,s){t([g],function(l){s(null,l)})});var p=function(){return this||typeof window<"u"&&window}();f.exports=function(g){h.init=v,h.$require=t,g.require=t},v(!0);function v(g){if(!(!p||!p.document)){h.set("packaged",g||t.packaged||f.packaged||p.define&&(void 0).packaged);var s={},l="",a=document.currentScript||document._currentScript,c=a&&a.ownerDocument||document;a&&a.src&&(l=a.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=c.getElementsByTagName("script"),u=0;u<o.length;u++){var y=o[u],b=y.src||y.getAttribute("src");if(b){for(var x=y.attributes,E=0,C=x.length;E<C;E++){var k=x[E];k.name.indexOf("data-ace-")===0&&(s[d(k.name.replace(/^data-ace-/,""))]=k.value)}var w=b.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);w&&(l=w[1])}}l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var A in s)typeof s[A]<"u"&&h.set(A,s[A])}}function d(g){return g.replace(/-(.)/g,function(s,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(t,r,f){var h=function(){function p(v,d,g,s){this.start={row:v,column:d},this.end={row:g,column:s}}return p.prototype.isEqual=function(v){return this.start.row===v.start.row&&this.end.row===v.end.row&&this.start.column===v.start.column&&this.end.column===v.end.column},p.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},p.prototype.contains=function(v,d){return this.compare(v,d)==0},p.prototype.compareRange=function(v){var d,g=v.end,s=v.start;return d=this.compare(g.row,g.column),d==1?(d=this.compare(s.row,s.column),d==1?2:d==0?1:0):d==-1?-2:(d=this.compare(s.row,s.column),d==-1?-1:d==1?42:0)},p.prototype.comparePoint=function(v){return this.compare(v.row,v.column)},p.prototype.containsRange=function(v){return this.comparePoint(v.start)==0&&this.comparePoint(v.end)==0},p.prototype.intersects=function(v){var d=this.compareRange(v);return d==-1||d==0||d==1},p.prototype.isEnd=function(v,d){return this.end.row==v&&this.end.column==d},p.prototype.isStart=function(v,d){return this.start.row==v&&this.start.column==d},p.prototype.setStart=function(v,d){typeof v=="object"?(this.start.column=v.column,this.start.row=v.row):(this.start.row=v,this.start.column=d)},p.prototype.setEnd=function(v,d){typeof v=="object"?(this.end.column=v.column,this.end.row=v.row):(this.end.row=v,this.end.column=d)},p.prototype.inside=function(v,d){return this.compare(v,d)==0?!(this.isEnd(v,d)||this.isStart(v,d)):!1},p.prototype.insideStart=function(v,d){return this.compare(v,d)==0?!this.isEnd(v,d):!1},p.prototype.insideEnd=function(v,d){return this.compare(v,d)==0?!this.isStart(v,d):!1},p.prototype.compare=function(v,d){return!this.isMultiLine()&&v===this.start.row?d<this.start.column?-1:d>this.end.column?1:0:v<this.start.row?-1:v>this.end.row?1:this.start.row===v?d>=this.start.column?0:-1:this.end.row===v?d<=this.end.column?0:1:0},p.prototype.compareStart=function(v,d){return this.start.row==v&&this.start.column==d?-1:this.compare(v,d)},p.prototype.compareEnd=function(v,d){return this.end.row==v&&this.end.column==d?1:this.compare(v,d)},p.prototype.compareInside=function(v,d){return this.end.row==v&&this.end.column==d?1:this.start.row==v&&this.start.column==d?-1:this.compare(v,d)},p.prototype.clipRows=function(v,d){if(this.end.row>d)var g={row:d+1,column:0};else if(this.end.row<v)var g={row:v,column:0};if(this.start.row>d)var s={row:d+1,column:0};else if(this.start.row<v)var s={row:v,column:0};return p.fromPoints(s||this.start,g||this.end)},p.prototype.extend=function(v,d){var g=this.compare(v,d);if(g==0)return this;if(g==-1)var s={row:v,column:d};else var l={row:v,column:d};return p.fromPoints(s||this.start,l||this.end)},p.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},p.prototype.isMultiLine=function(){return this.start.row!==this.end.row},p.prototype.clone=function(){return p.fromPoints(this.start,this.end)},p.prototype.collapseRows=function(){return this.end.column==0?new p(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new p(this.start.row,0,this.end.row,0)},p.prototype.toScreenRange=function(v){var d=v.documentToScreenPosition(this.start),g=v.documentToScreenPosition(this.end);return new p(d.row,d.column,g.row,g.column)},p.prototype.moveBy=function(v,d){this.start.row+=v,this.start.column+=d,this.end.row+=v,this.end.column+=d},p}();h.fromPoints=function(p,v){return new h(p.row,p.column,v.row,v.column)},h.comparePoints=function(p,v){return p.row-v.row||p.column-v.column},r.Range=h}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,r,f){for(var h=t("./oop"),p={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},v={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},d=0;d<10;d++)v["Digit"+d]=48+d,v["Numpad"+d]=96+d,p.PRINTABLE_KEYS[48+d]=""+d,p.FUNCTION_KEYS[96+d]="Numpad"+d;for(var d=65;d<91;d++){var g=String.fromCharCode(d+32);v["Key"+g.toUpperCase()]=d,p.PRINTABLE_KEYS[d]=g}for(var d=1;d<13;d++)v["F"+d]=111+d,p.FUNCTION_KEYS[111+d]="F"+d;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var l in s)v[l]=v[l+"Left"]=v[l+"Right"]=s[l];r.$codeToKeyCode=v,p.PRINTABLE_KEYS[173]="-";for(var a in p.FUNCTION_KEYS){var c=p.FUNCTION_KEYS[a].toLowerCase();p[c]=parseInt(a,10)}for(var a in p.PRINTABLE_KEYS){var c=p.PRINTABLE_KEYS[a].toLowerCase();p[c]=parseInt(a,10)}h.mixin(p,p.MODIFIER_KEYS),h.mixin(p,p.PRINTABLE_KEYS),h.mixin(p,p.FUNCTION_KEYS),p.enter=p.return,p.escape=p.esc,p.del=p.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)p.KEY_MODS[u]=o.filter(function(y){return u&p.KEY_MODS[y]}).join("-")+"-"}(),p.KEY_MODS[0]="",p.KEY_MODS[-1]="input-",h.mixin(r,p),r.default=r,r.keyCodeToString=function(o){var u=p[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,f){var h=t("./keys"),p=t("./useragent"),v=null,d=0,g;function s(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function l(){return g==null&&s(),g}function a(E,C,k){this.elem=E,this.type=C,this.callback=k}a.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(E,C,k,w){E.addEventListener(C,k,l()),w&&w.$toDestroy.push(new a(E,C,k))},o=r.removeListener=function(E,C,k){E.removeEventListener(C,k,l())};r.stopEvent=function(E){return r.stopPropagation(E),r.preventDefault(E),!1},r.stopPropagation=function(E){E.stopPropagation&&E.stopPropagation()},r.preventDefault=function(E){E.preventDefault&&E.preventDefault()},r.getButton=function(E){return E.type=="dblclick"?0:E.type=="contextmenu"||p.isMac&&E.ctrlKey&&!E.altKey&&!E.shiftKey?2:E.button},r.capture=function(E,C,k){var w=E&&E.ownerDocument||document;function A(L){C&&C(L),k&&k(L),o(w,"mousemove",C),o(w,"mouseup",A),o(w,"dragstart",A)}return c(w,"mousemove",C),c(w,"mouseup",A),c(w,"dragstart",A),A},r.addMouseWheelListener=function(E,C,k){c(E,"wheel",function(w){var A=.15,L=w.deltaX||0,I=w.deltaY||0;switch(w.deltaMode){case w.DOM_DELTA_PIXEL:w.wheelX=L*A,w.wheelY=I*A;break;case w.DOM_DELTA_LINE:var T=15;w.wheelX=L*T,w.wheelY=I*T;break;case w.DOM_DELTA_PAGE:var N=150;w.wheelX=L*N,w.wheelY=I*N;break}C(w)},k)},r.addMultiMouseDownListener=function(E,C,k,w,A){var L=0,I,T,N,S={2:"dblclick",3:"tripleclick",4:"quadclick"};function _($){if(r.getButton($)!==0?L=0:$.detail>1?(L++,L>4&&(L=1)):L=1,p.isIE){var R=Math.abs($.clientX-I)>5||Math.abs($.clientY-T)>5;(!N||R)&&(L=1),N&&clearTimeout(N),N=setTimeout(function(){N=null},C[L-1]||600),L==1&&(I=$.clientX,T=$.clientY)}if($._clicks=L,k[w]("mousedown",$),L>4)L=0;else if(L>1)return k[w](S[L],$)}Array.isArray(E)||(E=[E]),E.forEach(function($){c($,"mousedown",_,A)})};function u(E){return 0|(E.ctrlKey?1:0)|(E.altKey?2:0)|(E.shiftKey?4:0)|(E.metaKey?8:0)}r.getModifierString=function(E){return h.KEY_MODS[u(E)]};function y(E,C,k){var w=u(C);if(!k&&C.code&&(k=h.$codeToKeyCode[C.code]||k),!p.isMac&&v){if(C.getModifierState&&(C.getModifierState("OS")||C.getModifierState("Win"))&&(w|=8),v.altGr)if((3&w)!=3)v.altGr=0;else return;if(k===18||k===17){var A=C.location;if(k===17&&A===1)v[k]==1&&(d=C.timeStamp);else if(k===18&&w===3&&A===2){var L=C.timeStamp-d;L<50&&(v.altGr=!0)}}}if(k in h.MODIFIER_KEYS&&(k=-1),!(!w&&k===13&&C.location===3&&(E(C,w,-k),C.defaultPrevented))){if(p.isChromeOS&&w&8){if(E(C,w,k),C.defaultPrevented)return;w&=-9}return!w&&!(k in h.FUNCTION_KEYS)&&!(k in h.PRINTABLE_KEYS)?!1:E(C,w,k)}}r.addCommandKeyListener=function(E,C,k){var w=null;c(E,"keydown",function(A){v[A.keyCode]=(v[A.keyCode]||0)+1;var L=y(C,A,A.keyCode);return w=A.defaultPrevented,L},k),c(E,"keypress",function(A){w&&(A.ctrlKey||A.altKey||A.shiftKey||A.metaKey)&&(r.stopEvent(A),w=null)},k),c(E,"keyup",function(A){v[A.keyCode]=null},k),v||(b(),c(window,"focus",b))};function b(){v=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!p.isOldIE){var x=1;r.nextTick=function(E,C){C=C||window;var k="zero-timeout-message-"+x++,w=function(A){A.data==k&&(r.stopPropagation(A),o(C,"message",w),E())};c(C,"message",w),C.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(E,C){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):E()},C)},r.$idleBlockId=null,r.blockIdle=function(E){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},E||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(E){setTimeout(E,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,r,f){var h;f.exports={lineMode:!1,pasteCancelled:function(){return h&&h>Date.now()-50?!0:h=!1},cancel:function(){h=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(t,r,f){var h=t("../lib/event"),p=t("../config").nls,v=t("../lib/useragent"),d=t("../lib/dom"),g=t("../lib/lang"),s=t("../clipboard"),l=v.isChrome<18,a=v.isIE,c=v.isChrome>63,o=400,u=t("../lib/keys"),y=u.KEY_MODS,b=v.isIOS,x=b?/\s/:/\n/,E=v.isMobile,C;C=function(k,w){var A=d.createElement("textarea");A.className="ace_text-input",A.setAttribute("wrap","off"),A.setAttribute("autocorrect","off"),A.setAttribute("autocapitalize","off"),A.setAttribute("spellcheck","false"),A.style.opacity="0",k.insertBefore(A,k.firstChild);var L=!1,I=!1,T=!1,N=!1,S="";E||(A.style.fontSize="1px");var _=!1,$=!1,R="",O=0,F=0,B=0,W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===A}catch{}this.setNumberOfExtraLines=function(ce){if(W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(w.$textInputAriaLabel&&(ce+="".concat(w.$textInputAriaLabel,", ")),w.session){var Ee=w.session.selection.cursor.row;ce+=p("text-input.aria-label","Cursor at row $0",[Ee+1])}A.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(A.setAttribute("aria-haspopup","true"),A.setAttribute("aria-autocomplete",ce.inline?"both":"list"),A.setAttribute("aria-activedescendant",ce.activeDescendant)):(A.setAttribute("aria-haspopup","false"),A.setAttribute("aria-autocomplete","both"),A.removeAttribute("aria-activedescendant")),ce.role&&A.setAttribute("role",ce.role),ce.setLabel&&(A.setAttribute("aria-roledescription",p("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),h.addListener(A,"blur",function(ce){$||(w.onBlur(ce),X=!1)},w),h.addListener(A,"focus",function(ce){if(!$){if(X=!0,v.isEdge)try{if(!document.hasFocus())return}catch{}w.onFocus(ce),v.isEdge?setTimeout(Z):Z()}},w),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:w.renderer.enableKeyboardAccessibility}),S||c||this.$focusScroll=="browser")return A.focus({preventScroll:!0});var ce=A.style.top;A.style.position="fixed",A.style.top="0px";try{var Ee=A.getBoundingClientRect().top!=0}catch{return}var Ie=[];if(Ee)for(var Ye=A.parentElement;Ye&&Ye.nodeType==1;)Ie.push(Ye),Ye.setAttribute("ace_nocontext","true"),!Ye.parentElement&&Ye.getRootNode?Ye=Ye.getRootNode().host:Ye=Ye.parentElement;A.focus({preventScroll:!0}),Ee&&Ie.forEach(function(Qe){Qe.removeAttribute("ace_nocontext")}),setTimeout(function(){A.style.position="",A.style.top=="0px"&&(A.style.top=ce)},0)},this.blur=function(){A.blur()},this.isFocused=function(){return X},w.on("beforeEndOperation",function(){var ce=w.curOp,Ee=ce&&ce.command&&ce.command.name;if(Ee!="insertstring"){var Ie=Ee&&(ce.docChanged||ce.selectionChanged);T&&Ie&&(R=A.value="",nn()),Z()}}),w.on("changeSelection",this.setAriaLabel);var G=function(ce,Ee){for(var Ie=Ee,Ye=1;Ye<=ce-W&&Ye<2*q+1;Ye++)Ie+=w.session.getLine(ce-Ye).length+1;return Ie},Z=b?function(ce){if(!(!X||L&&!ce||N)){ce||(ce="");var Ee=`
167
+ ab`+ce+`cde fg
168
+ `;Ee!=A.value&&(A.value=R=Ee);var Ie=4,Ye=4+(ce.length||(w.selection.isEmpty()?0:1));(O!=Ie||F!=Ye)&&A.setSelectionRange(Ie,Ye),O=Ie,F=Ye}}:function(){if(!(T||N)&&!(!X&&!me)){T=!0;var ce=0,Ee=0,Ie="";if(w.session){var Ye=w.selection,Qe=Ye.getRange(),mt=Ye.cursor.row;mt===V+1?(W=V+1,V=W+2*q):mt===W-1?(V=W-1,W=V-2*q):(mt<W-1||mt>V+1)&&(W=mt>q?mt-q:0,V=mt>q?mt+q:2*q);for(var yt=[],ht=W;ht<=V;ht++)yt.push(w.session.getLine(ht));if(Ie=yt.join(`
169
+ `),ce=G(Qe.start.row,Qe.start.column),Ee=G(Qe.end.row,Qe.end.column),Qe.start.row<W){var dt=w.session.getLine(W-1);ce=Qe.start.row<W-1?0:ce,Ee+=dt.length+1,Ie=dt+`
170
+ `+Ie}else if(Qe.end.row>V){var ot=w.session.getLine(V+1);Ee=Qe.end.row>V+1?ot.length:Qe.end.column,Ee+=Ie.length+1,Ie=Ie+`
171
+ `+ot}else E&&mt>0&&(Ie=`
172
+ `+Ie,Ee+=1,ce+=1);Ie.length>o&&(ce<o&&Ee<o?Ie=Ie.slice(0,o):(Ie=`
173
+ `,ce==Ee?ce=Ee=0:(ce=0,Ee=1)));var Yt=Ie+`
174
+
175
+ `;Yt!=R&&(A.value=R=Yt,O=F=Yt.length)}if(me&&(O=A.selectionStart,F=A.selectionEnd),F!=Ee||O!=ce||A.selectionEnd!=F)try{A.setSelectionRange(ce,Ee),O=ce,F=Ee}catch{}T=!1}};this.resetSelection=Z,X&&w.onFocus();var re=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=R.length&&ce.value===R&&R&&ce.selectionEnd!==F},J=function(ce){T||(L?L=!1:re(A)?(w.selectAll(),Z()):E&&A.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,ve=function(ce,Ee){if(me&&(me=!1),I)return Z(),ce&&w.onPaste(ce),I=!1,"";for(var Ie=A.selectionStart,Ye=A.selectionEnd,Qe=O,mt=R.length-F,yt=ce,ht=ce.length-Ie,dt=ce.length-Ye,ot=0;Qe>0&&R[ot]==ce[ot];)ot++,Qe--;for(yt=yt.slice(ot),ot=1;mt>0&&R.length-ot>O-1&&R[R.length-ot]==ce[ce.length-ot];)ot++,mt--;ht-=ot-1,dt-=ot-1;var Yt=yt.length-ot+1;if(Yt<0&&(Qe=-Yt,Yt=0),yt=yt.slice(0,Yt),!Ee&&!yt&&!ht&&!Qe&&!mt&&!dt)return"";N=!0;var Vn=!1;return v.isAndroid&&yt==". "&&(yt=" ",Vn=!0),yt&&!Qe&&!mt&&!ht&&!dt||_?w.onTextInput(yt):w.onTextInput(yt,{extendLeft:Qe,extendRight:mt,restoreStart:ht,restoreEnd:dt}),N=!1,R=ce,O=Ie,F=Ye,B=dt,Vn?`
176
+ `:yt},pe=function(ce){if(T)return Ft();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return w.execCommand("undo");if(ce.inputType=="historyRedo")return w.execCommand("redo")}var Ee=A.value,Ie=ve(Ee,!0);(Ee.length>o+100||x.test(Ie)||E&&O<1&&O==F)&&Z()},Ce=function(ce,Ee,Ie){var Ye=ce.clipboardData||window.clipboardData;if(!(!Ye||l)){var Qe=a||Ie?"Text":"text/plain";try{return Ee?Ye.setData(Qe,Ee)!==!1:Ye.getData(Qe)}catch(mt){if(!Ie)return Ce(mt,Ee,!0)}}},lt=function(ce,Ee){var Ie=w.getCopyText();if(!Ie)return h.preventDefault(ce);Ce(ce,Ie)?(b&&(Z(Ie),L=Ie,setTimeout(function(){L=!1},10)),Ee?w.onCut():w.onCopy(),h.preventDefault(ce)):(L=!0,A.value=Ie,A.select(),setTimeout(function(){L=!1,Z(),Ee?w.onCut():w.onCopy()}))},Wt=function(ce){lt(ce,!0)},gt=function(ce){lt(ce,!1)},vt=function(ce){var Ee=Ce(ce);s.pasteCancelled()||(typeof Ee=="string"?(Ee&&w.onPaste(Ee,ce),v.isIE&&setTimeout(Z),h.preventDefault(ce)):(A.value="",I=!0))};h.addCommandKeyListener(A,function(ce,Ee,Ie){if(!T)return w.onCommandKey(ce,Ee,Ie)},w),h.addListener(A,"select",J,w),h.addListener(A,"input",pe,w),h.addListener(A,"cut",Wt,w),h.addListener(A,"copy",gt,w),h.addListener(A,"paste",vt,w),(!("oncut"in A)||!("oncopy"in A)||!("onpaste"in A))&&h.addListener(k,"keydown",function(ce){if(!(v.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:gt(ce);break;case 86:vt(ce);break;case 88:Wt(ce);break}},w);var pn=function(ce){if(!(T||!w.onCompositionStart||w.$readOnly)&&(T={},!_)){ce.data&&(T.useTextareaForIME=!1),setTimeout(Ft,0),w._signal("compositionStart"),w.on("mousedown",ei);var Ee=w.getSelectionRange();Ee.end.row=Ee.start.row,Ee.end.column=Ee.start.column,T.markerRange=Ee,T.selectionStart=O,w.onCompositionStart(T),T.useTextareaForIME?(R=A.value="",O=0,F=0):(A.msGetInputContext&&(T.context=A.msGetInputContext()),A.getInputContext&&(T.context=A.getInputContext()))}},Ft=function(){if(!(!T||!w.onCompositionUpdate||w.$readOnly)){if(_)return ei();if(T.useTextareaForIME)w.onCompositionUpdate(A.value);else{var ce=A.value;ve(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+B)}}},nn=function(ce){!w.onCompositionEnd||w.$readOnly||(T=!1,w.onCompositionEnd(),w.off("mousedown",ei),ce&&pe())};function ei(){$=!0,A.blur(),A.focus(),$=!1}var An=g.delayedCall(Ft,50).schedule.bind(null,null);function ln(ce){ce.keyCode==27&&A.value.length<A.selectionStart&&(T||(R=A.value),O=F=-1,Z()),An()}h.addListener(A,"compositionstart",pn,w),h.addListener(A,"compositionupdate",Ft,w),h.addListener(A,"keyup",ln,w),h.addListener(A,"keydown",An,w),h.addListener(A,"compositionend",nn,w),this.getElement=function(){return A},this.setCommandMode=function(ce){_=ce,A.readOnly=!1},this.setReadOnly=function(ce){_||(A.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),w._emit("nativecontextmenu",{target:w,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Ee){S||(S=A.style.cssText),A.style.cssText=(Ee?"z-index:100000;":"")+(v.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*w.renderer.characterWidth*.5+"px;";var Ie=w.container.getBoundingClientRect(),Ye=d.computedStyle(w.container),Qe=Ie.top+(parseInt(Ye.borderTopWidth)||0),mt=Ie.left+(parseInt(Ie.borderLeftWidth)||0),yt=Ie.bottom-Qe-A.clientHeight-2,ht=function(dt){d.translate(A,dt.clientX-mt-2,Math.min(dt.clientY-Qe-2,yt))};ht(ce),ce.type=="mousedown"&&(w.renderer.$isMousePressed=!0,clearTimeout(Be),v.isWin&&h.capture(w.container,ht,We))},this.onContextMenuClose=We;var Be;function We(){clearTimeout(Be),Be=setTimeout(function(){S&&(A.style.cssText=S,S=""),w.renderer.$isMousePressed=!1,w.renderer.$keepTextAreaAtCursor&&w.renderer.$moveTextAreaToCursor()},0)}var cn=function(ce){w.textInput.onContextMenu(ce),We()};h.addListener(A,"mouseup",cn,w),h.addListener(A,"mousedown",function(ce){ce.preventDefault(),We()},w),h.addListener(w.renderer.scroller,"contextmenu",cn,w),h.addListener(A,"contextmenu",cn,w),b&&Ve(k,w,A);function Ve(ce,Ee,Ie){var Ye=null,Qe=!1;Ie.addEventListener("keydown",function(yt){Ye&&clearTimeout(Ye),Qe=!0},!0),Ie.addEventListener("keyup",function(yt){Ye=setTimeout(function(){Qe=!1},100)},!0);var mt=function(yt){if(document.activeElement===Ie&&!(Qe||T||Ee.$mouseHandler.isMousePressed)&&!L){var ht=Ie.selectionStart,dt=Ie.selectionEnd,ot=null,Yt=0;if(ht==0?ot=u.up:ht==1?ot=u.home:dt>F&&R[dt]==`
177
+ `?ot=u.end:ht<O&&R[ht-1]==" "?(ot=u.left,Yt=y.option):ht<O||ht==O&&F!=O&&ht==dt?ot=u.left:dt>F&&R.slice(0,dt).split(`
178
+ `).length>2?ot=u.down:dt>F&&R[dt-1]==" "?(ot=u.right,Yt=y.option):(dt>F||dt==F&&F!=O&&ht==dt)&&(ot=u.right),ht!==dt&&(Yt|=y.shift),ot){var Vn=Ee.onCommandKey({},Yt,ot);if(!Vn&&Ee.commands){ot=u.keyCodeToString(ot);var fi=Ee.commands.findKeyCommand(Yt,ot);fi&&Ee.execCommand(fi)}O=ht,F=dt,Z("")}}};document.addEventListener("selectionchange",mt),Ee.on("destroy",function(){document.removeEventListener("selectionchange",mt)})}this.destroy=function(){A.parentElement&&A.parentElement.removeChild(A)}},r.TextInput=C,r.$setUserAgentForTests=function(k,w){E=k,b=w}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,r,f){var h=t("../lib/useragent"),p=0,v=550,d=function(){function l(a){a.$clickSelection=null;var c=a.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(a)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(a)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(a)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(a)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(a));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){a[u]=this[u]},this),a.selectByLines=this.extendSelectionBy.bind(a,"getLineRange"),a.selectByWords=this.extendSelectionBy.bind(a,"getWordRange")}return l.prototype.onMouseDown=function(a){var c=a.inSelection(),o=a.getDocumentPosition();this.mousedownEvent=a;var u=this.editor,y=a.getButton();if(y!==0){var b=u.getSelectionRange(),x=b.isEmpty();(x||y==1)&&u.selection.moveToPosition(o),y==2&&(u.textInput.onContextMenu(a.domEvent),h.isMozilla||a.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(a);return}return this.captureMouse(a),this.startSelect(o,a.domEvent._clicks>1),a.preventDefault()},l.prototype.startSelect=function(a,c){a=a||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(a):c||o.selection.moveToPosition(a),c||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var a,c=this.editor,o=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)a=this.$clickSelection.end;else if(u==1)a=this.$clickSelection.start;else{var y=s(this.$clickSelection,o);o=y.cursor,a=y.anchor}c.selection.setSelectionAnchor(a.row,a.column)}c.selection.selectToPosition(o),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(a){var c,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),y=o.selection[a](u.row,u.column);if(this.$clickSelection){var b=this.$clickSelection.comparePoint(y.start),x=this.$clickSelection.comparePoint(y.end);if(b==-1&&x<=0)c=this.$clickSelection.end,(y.end.row!=u.row||y.end.column!=u.column)&&(u=y.start);else if(x==1&&b>=0)c=this.$clickSelection.start,(y.start.row!=u.row||y.start.column!=u.column)&&(u=y.end);else if(b==-1&&x==1)u=y.end,c=y.start;else{var E=s(this.$clickSelection,u);u=E.cursor,c=E.anchor}o.selection.setSelectionAnchor(c.row,c.column)}o.selection.selectToPosition(u),o.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var a=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(a>p||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(a){var c=a.getDocumentPosition(),o=this.editor,u=o.session,y=u.getBracketRange(c);y?(y.isEmpty()&&(y.start.column--,y.end.column++),this.setState("select")):(y=o.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=y,this.select()},l.prototype.onTripleClick=function(a){var c=a.getDocumentPosition(),o=this.editor;this.setState("selectByLines");var u=o.getSelectionRange();u.isMultiLine()&&u.contains(c.row,c.column)?(this.$clickSelection=o.selection.getLineRange(u.start.row),this.$clickSelection.end=o.selection.getLineRange(u.end.row).end):this.$clickSelection=o.selection.getLineRange(c.row),this.select()},l.prototype.onQuadClick=function(a){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(a){if(!a.getAccelKey()){a.getShiftKey()&&a.wheelY&&!a.wheelX&&(a.wheelX=a.wheelY,a.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=a.domEvent.timeStamp,y=u-o.t,b=y?a.wheelX/y:o.vx,x=y?a.wheelY/y:o.vy;y<v&&(b=(b+o.vx)/2,x=(x+o.vy)/2);var E=Math.abs(b/x),C=!1;if(E>=1&&c.renderer.isScrollableBy(a.wheelX*a.speed,0)&&(C=!0),E<=1&&c.renderer.isScrollableBy(0,a.wheelY*a.speed)&&(C=!0),C)o.allowed=u;else if(u-o.allowed<v){var k=Math.abs(b)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);k?(C=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=b,o.vy=x,C)return c.renderer.scrollBy(a.wheelX*a.speed,a.wheelY*a.speed),a.stop()}},l}();d.prototype.selectEnd=d.prototype.selectByLinesEnd,d.prototype.selectAllEnd=d.prototype.selectByLinesEnd,d.prototype.selectByWordsEnd=d.prototype.selectByLinesEnd,r.DefaultHandlers=d;function g(l,a,c,o){return Math.sqrt(Math.pow(c-l,2)+Math.pow(o-a,2))}function s(l,a){if(l.start.row==l.end.row)var c=2*a.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var c=a.column-4;else var c=2*a.row-l.start.row-l.end.row;return c<0?{cursor:l.start,anchor:l.end}:{cursor:l.end,anchor:l.start}}}),ace.define("ace/lib/scroll",["require","exports","module"],function(t,r,f){r.preventParentScroll=function(h){h.stopPropagation();var p=h.currentTarget,v=p.scrollHeight>p.clientHeight;v||h.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,r,f){var h=this&&this.__extends||function(){var u=function(y,b){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,E){x.__proto__=E}||function(x,E){for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(x[C]=E[C])},u(y,b)};return function(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");u(y,b);function x(){this.constructor=y}y.prototype=b===null?Object.create(b):(x.prototype=b.prototype,new x)}}(),p=this&&this.__values||function(u){var y=typeof Symbol=="function"&&Symbol.iterator,b=y&&u[y],x=0;if(b)return b.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&x>=u.length&&(u=void 0),{value:u&&u[x++],done:!u}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")},v=t("./lib/dom");t("./lib/event");var d=t("./range").Range,g=t("./lib/scroll").preventParentScroll,s="ace_tooltip",l=function(){function u(y){this.isOpen=!1,this.$element=null,this.$parentNode=y}return u.prototype.$init=function(){return this.$element=v.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(y){this.getElement().textContent=y},u.prototype.setHtml=function(y){this.getElement().innerHTML=y},u.prototype.setPosition=function(y,b){this.getElement().style.left=y+"px",this.getElement().style.top=b+"px"},u.prototype.setClassName=function(y){v.addCssClass(this.getElement(),y)},u.prototype.setTheme=function(y){this.$element.className=s+" "+(y.isDark?"ace_dark ":"")+(y.cssClass||"")},u.prototype.show=function(y,b,x){y!=null&&this.setText(y),b!=null&&x!=null&&this.setPosition(b,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(y){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),a=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(y){this.popups.push(y),this.updatePopups()},u.prototype.removePopup=function(y){var b=this.popups.indexOf(y);b!==-1&&(this.popups.splice(b,1),this.updatePopups())},u.prototype.updatePopups=function(){var y,b,x,E;this.popups.sort(function(S,_){return _.priority-S.priority});var C=[];try{for(var k=p(this.popups),w=k.next();!w.done;w=k.next()){var A=w.value,L=!0;try{for(var I=(x=void 0,p(C)),T=I.next();!T.done;T=I.next()){var N=T.value;if(this.doPopupsOverlap(N,A)){L=!1;break}}}catch(S){x={error:S}}finally{try{T&&!T.done&&(E=I.return)&&E.call(I)}finally{if(x)throw x.error}}L?C.push(A):A.hide()}}catch(S){y={error:S}}finally{try{w&&!w.done&&(b=k.return)&&b.call(k)}finally{if(y)throw y.error}}},u.prototype.doPopupsOverlap=function(y,b){var x=y.getElement().getBoundingClientRect(),E=b.getElement().getBoundingClientRect();return x.left<E.right&&x.right>E.left&&x.top<E.bottom&&x.bottom>E.top},u}(),c=new a;r.popupManager=c,r.Tooltip=l;var o=function(u){h(y,u);function y(b){b===void 0&&(b=document.body);var x=u.call(this,b)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var E=x.getElement();return E.style.whiteSpace="pre-wrap",E.style.pointerEvents="auto",E.addEventListener("mouseout",x.onMouseOut),E.tabIndex=-1,E.addEventListener("blur",(function(){E.contains(document.activeElement)||this.hide()}).bind(x)),E.addEventListener("wheel",g),x}return y.prototype.addToEditor=function(b){b.on("mousemove",this.onMouseMove),b.on("mousedown",this.hide),b.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},y.prototype.removeFromEditor=function(b){b.off("mousemove",this.onMouseMove),b.off("mousedown",this.hide),b.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},y.prototype.onMouseMove=function(b,x){this.lastEvent=b,this.lastT=Date.now();var E=x.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||E||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||E||(this.lastEvent=b,this.timeout=setTimeout(this.waitForHover,this.idleTime))},y.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var b=Date.now()-this.lastT;if(this.idleTime-b>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-b);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},y.prototype.isOutsideOfText=function(b){var x=b.editor,E=b.getDocumentPosition(),C=x.session.getLine(E.row);if(E.column==C.length){var k=x.renderer.pixelToScreenCoordinates(b.clientX,b.clientY),w=x.session.documentToScreenPosition(E.row,E.column);if(w.column!=k.column||w.row!=k.row)return!0}return!1},y.prototype.setDataProvider=function(b){this.$gatherData=b},y.prototype.showForRange=function(b,x,E,C){var k=10;if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var w=b.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(w.theme)),this.isOpen=!0,this.addMarker(x,b.session),this.range=d.fromPoints(x.start,x.end);var A=w.textToScreenCoordinates(x.start.row,x.start.column),L=w.scroller.getBoundingClientRect();A.pageX<L.left&&(A.pageX=L.left);var I=this.getElement();I.innerHTML="",I.appendChild(E),I.style.maxHeight="",I.style.display="block";var T=I.clientHeight,N=I.clientWidth,S=window.innerHeight-A.pageY-w.lineHeight,_=!0;A.pageY-T<0&&A.pageY<S&&(_=!1),I.style.maxHeight=(_?A.pageY:S)-k+"px",I.style.top=_?"":A.pageY+w.lineHeight+"px",I.style.bottom=_?window.innerHeight-A.pageY+"px":"",I.style.left=Math.min(A.pageX,window.innerWidth-N-k)+"px"}},y.prototype.addMarker=function(b,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(b,"ace_highlight-marker","text")},y.prototype.hide=function(b){!b&&document.activeElement==this.getElement()||b&&b.target&&(b.type!="keydown"||b.ctrlKey||b.metaKey)&&this.$element.contains(b.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},y.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},y.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},y.prototype.onMouseOut=function(b){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!b.relatedTarget||this.getElement().contains(b.relatedTarget)||b&&b.currentTarget.contains(b.relatedTarget)||b.relatedTarget.classList.contains("ace_content")||this.hide())},y}(l);r.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(t,r,f){var h=this&&this.__extends||function(){var c=function(o,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(y[x]=b[x])},c(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(o,u);function y(){this.constructor=o}o.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),p=this&&this.__values||function(c){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&c[o],y=0;if(u)return u.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&y>=c.length&&(c=void 0),{value:c&&c[y++],done:!c}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},v=t("../lib/dom"),d=t("../lib/event"),g=t("../tooltip").Tooltip,s=t("../config").nls;t("../lib/lang");function l(c){var o=c.editor,u=o.renderer.$gutterLayer,y=new a(o);c.editor.setDefaultHandler("guttermousedown",function(w){if(!(!o.isFocused()||w.getButton()!=0)){var A=u.getRegion(w);if(A!="foldWidgets"){var L=w.getDocumentPosition().row,I=o.session.selection;if(w.getShiftKey())I.selectTo(L,0);else{if(w.domEvent.detail==2)return o.selectAll(),w.preventDefault();c.$clickSelection=o.selection.getLineRange(L)}return c.setState("selectByLines"),c.captureMouse(w),w.preventDefault()}}});var b,x;function E(){var w=x.getDocumentPosition().row,A=o.session.getLength();if(w==A){var L=o.renderer.pixelToScreenCoordinates(0,x.y).row,I=x.$pos;if(L>o.session.documentToScreenRow(I.row,I.column))return C()}if(y.showTooltip(w),!!y.isOpen)if(o.on("mousewheel",C),c.$tooltipFollowsMouse)k(x);else{var T=x.getGutterRow(),N=u.$lines.get(T);if(N){var S=N.element.querySelector(".ace_gutter_annotation"),_=S.getBoundingClientRect(),$=y.getElement().style;$.left=_.right+"px",$.top=_.bottom+"px"}else k(x)}}function C(){b&&(b=clearTimeout(b)),y.isOpen&&(y.hideTooltip(),o.off("mousewheel",C))}function k(w){y.setPosition(w.x,w.y)}c.editor.setDefaultHandler("guttermousemove",function(w){var A=w.domEvent.target||w.domEvent.srcElement;if(v.hasCssClass(A,"ace_fold-widget"))return C();y.isOpen&&c.$tooltipFollowsMouse&&k(w),x=w,!b&&(b=setTimeout(function(){b=null,x&&!c.isMousePressed?E():C()},50))}),d.addListener(o.renderer.$gutter,"mouseout",function(w){x=null,!(!y.isOpen||b)&&(b=setTimeout(function(){b=null,C()},50))},o),o.on("changeSession",C),o.on("input",C)}r.GutterHandler=l;var a=function(c){h(o,c);function o(u){var y=c.call(this,u.container)||this;return y.editor=u,y}return o.prototype.setPosition=function(u,y){var b=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,E=this.getWidth(),C=this.getHeight();u+=15,y+=15,u+E>b&&(u-=u+E-b),y+C>x&&(y-=20+C),g.prototype.setPosition.call(this,u,y)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(u){var y,b=this.editor.renderer.$gutterLayer,x=b.$annotations[u],E;x?E={displayText:Array.from(x.displayText),type:Array.from(x.type)}:E={displayText:[],type:[]};var C=b.session.getFoldLine(u);if(C&&b.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},w={error:1,security:2,warning:3,info:4,hint:5},A,L=u+1;L<=C.end.row;L++)if(b.$annotations[L])for(var I=0;I<b.$annotations[L].text.length;I++){var T=b.$annotations[L].type[I];k[T].push(b.$annotations[L].text[I]),(!A||w[T]<w[A])&&(A=T)}if(["error","security","warning"].includes(A)){var N="".concat(o.annotationsToSummaryString(k)," in folded code.");E.displayText.push(N),E.type.push(A+"_fold")}}if(E.displayText.length===0)return this.hide();for(var S={error:[],security:[],warning:[],info:[],hint:[]},_=b.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",L=0;L<E.displayText.length;L++){var $=v.createElement("span"),R=v.createElement("span");(y=R.classList).add.apply(y,["ace_".concat(E.type[L]),_]),R.setAttribute("aria-label","".concat(o.annotationLabels[E.type[L].replace("_fold","")].singular)),R.setAttribute("role","img"),R.appendChild(v.createTextNode(" ")),$.appendChild(R),$.appendChild(v.createTextNode(E.displayText[L])),$.appendChild(v.createElement("br")),S[E.type[L].replace("_fold","")].push($)}var O=this.getElement();v.removeChildren(O),S.error.forEach(function(F){return O.appendChild(F)}),S.security.forEach(function(F){return O.appendChild(F)}),S.warning.forEach(function(F){return O.appendChild(F)}),S.info.forEach(function(F){return O.appendChild(F)}),S.hint.forEach(function(F){return O.appendChild(F)}),O.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},o.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},o.annotationsToSummaryString=function(u){var y,b,x=[],E=["error","security","warning","info","hint"];try{for(var C=p(E),k=C.next();!k.done;k=C.next()){var w=k.value;if(u[w].length){var A=u[w].length===1?o.annotationLabels[w].singular:o.annotationLabels[w].plural;x.push("".concat(u[w].length," ").concat(A))}}}catch(L){y={error:L}}finally{try{k&&!k.done&&(b=C.return)&&b.call(C)}finally{if(y)throw y.error}}return x.join(", ")},o}(g);r.GutterTooltip=a}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,f){var h=t("../lib/event"),p=t("../lib/useragent"),v=function(){function d(g,s){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=s,this.x=this.clientX=g.clientX,this.y=this.clientY=g.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return d.prototype.stopPropagation=function(){h.stopPropagation(this.domEvent),this.propagationStopped=!0},d.prototype.preventDefault=function(){h.preventDefault(this.domEvent),this.defaultPrevented=!0},d.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},d.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},d.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(g,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-l},d.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,s=g.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=s.contains(l.row,l.column)}return this.$inSelection},d.prototype.getButton=function(){return h.getButton(this.domEvent)},d.prototype.getShiftKey=function(){return this.domEvent.shiftKey},d.prototype.getAccelKey=function(){return p.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},d}();r.MouseEvent=v}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,r,f){var h=t("../lib/dom"),p=t("../lib/event"),v=t("../lib/useragent"),d=200,g=200,s=5;function l(c){var o=c.editor,u=h.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var y=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];y.forEach(function(G){c[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(c));var b=o.container,x,E,C,k,w,A,L=0,I,T,N,S,_;this.onDragStart=function(G){if(this.cancelDrag||!b.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}w=o.getSelectionRange();var re=G.dataTransfer;re.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),re.setDragImage&&re.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),re.clearData(),re.setData("Text",o.session.getTextRange()),T=!0,this.setState("drag")},this.onDragEnd=function(G){if(b.draggable=!1,T=!1,this.setState(null),!o.getReadOnly()){var Z=G.dataTransfer.dropEffect;!I&&Z=="move"&&o.session.remove(o.getSelectionRange()),o.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return E=G.clientX,C=G.clientY,x||F(),L++,G.dataTransfer.dropEffect=I=X(G),p.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return E=G.clientX,C=G.clientY,x||(F(),L++),W!==null&&(W=null),G.dataTransfer.dropEffect=I=X(G),p.preventDefault(G)},this.onDragLeave=function(G){if(L--,L<=0&&x)return B(),I=null,p.preventDefault(G)},this.onDrop=function(G){if(A){var Z=G.dataTransfer;if(T)switch(I){case"move":w.contains(A.row,A.column)?w={start:A,end:A}:w=o.moveText(w,A);break;case"copy":w=o.moveText(w,A,!0);break}else{var re=Z.getData("Text");w={start:A,end:o.session.insert(A,re)},o.focus(),I=null}return B(),p.preventDefault(G)}},p.addListener(b,"dragstart",this.onDragStart.bind(c),o),p.addListener(b,"dragend",this.onDragEnd.bind(c),o),p.addListener(b,"dragenter",this.onDragEnter.bind(c),o),p.addListener(b,"dragover",this.onDragOver.bind(c),o),p.addListener(b,"dragleave",this.onDragLeave.bind(c),o),p.addListener(b,"drop",this.onDrop.bind(c),o);function $(G,Z){var re=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!S||J||ae)o.moveCursorToPosition(G),S=re,_={x:E,y:C};else{var me=a(_.x,_.y,E,C);me>s?S=null:re-S>=g&&(o.renderer.scrollCursorIntoView(),S=null)}}function R(G,Z){var re=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),ve={x:{left:E-me.left,right:me.right-E},y:{top:C-me.top,bottom:me.bottom-C}},pe=Math.min(ve.x.left,ve.x.right),Ce=Math.min(ve.y.top,ve.y.bottom),lt={row:G.row,column:G.column};pe/ae<=2&&(lt.column+=ve.x.left<ve.x.right?-3:2),Ce/J<=1&&(lt.row+=ve.y.top<ve.y.bottom?-1:1);var Wt=G.row!=lt.row,gt=G.column!=lt.column,vt=!Z||G.row!=Z.row;Wt||gt&&!vt?N?re-N>=d&&o.renderer.scrollCursorIntoView(lt):N=re:N=null}function O(){var G=A;A=o.renderer.screenToTextCoordinates(E,C),$(A,G),R(A,G)}function F(){w=o.selection.toOrientedRange(),x=o.session.addMarker(w,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),O(),k=setInterval(O,20),L=0,p.addListener(document,"mousemove",V)}function B(){clearInterval(k),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(w),o.isFocused()&&!T&&o.$resetCursorStyle(),w=null,A=null,L=0,N=null,S=null,p.removeListener(document,"mousemove",V)}var W=null;function V(){W==null&&(W=setTimeout(function(){W!=null&&x&&B()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(re){return re=="text/plain"||re=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],re=["move","copymove","linkmove","all","uninitialized"],J=v.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":re.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,o=c.container;o.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var u=v.isWin?"default":"move";c.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(c){var o=this.editor.container;if(v.isIE&&this.state=="dragReady"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var o=this.editor,u=c.inSelection(),y=c.getButton(),b=c.domEvent.detail||1;if(b===1&&y===0&&u){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),o.getDragDelay()){if(v.isWebKit){this.cancelDrag=!0;var E=o.container;E.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function a(c,o,u,y){return Math.sqrt(Math.pow(u-c,2)+Math.pow(y-o,2))}r.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,r,f){var h=t("./mouse_event").MouseEvent,p=t("../lib/event"),v=t("../lib/dom");r.addTouchListeners=function(d,g){var s="scroll",l,a,c,o,u,y,b=0,x,E=0,C=0,k=0,w,A;function L(){var $=window.navigator&&window.navigator.clipboard,R=!1,O=function(){var W=g.getCopyText(),V=g.session.getUndoManager().hasUndo();A.replaceChild(v.buildDom(R?["span",!W&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),A.firstChild)},F=function(W){return g.commands.canExecute(W,g)},B=function(W){var V=W.target.getAttribute("action");if(V=="more"||!R)return R=!R,O();V=="paste"?$.readText().then(function(q){g.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&($?$.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(V)),A.firstChild.style.display="none",R=!1,V!="openCommandPalette"&&g.focus()};A=v.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){s="menu",W.stopPropagation(),W.preventDefault(),g.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),B(W)},onclick:B},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function I(){if(!g.getOption("enableMobileMenu")){A&&T();return}A||L();var $=g.selection.cursor,R=g.renderer.textToScreenCoordinates($.row,$.column),O=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,B=g.container.getBoundingClientRect();A.style.top=R.pageY-B.top-3+"px",R.pageX-B.left<B.width-70?(A.style.left="",A.style.right="10px"):(A.style.right="",A.style.left=O+F-B.left+"px"),A.style.display="",A.firstChild.style.display="none",g.on("input",T)}function T($){A&&(A.style.display="none"),g.off("input",T)}function N(){u=null,clearTimeout(u);var $=g.selection.getRange(),R=$.contains(x.row,x.column);($.isEmpty()||!R)&&(g.selection.moveToPosition(x),g.selection.selectWord()),s="wait",I()}function S(){u=null,clearTimeout(u),g.selection.moveToPosition(x);var $=E>=2?g.selection.getLineRange(x.row):g.session.getBracketRange(x);$&&!$.isEmpty()?g.selection.setRange($):g.selection.selectWord(),s="wait"}p.addListener(d,"contextmenu",function($){if(w){var R=g.textInput.getElement();R.focus()}},g),p.addListener(d,"touchstart",function($){var R=$.touches;if(u||R.length>1){clearTimeout(u),u=null,c=-1,s="zoom";return}w=g.$mouseHandler.isMousePressed=!0;var O=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,B=$.timeStamp;o=B;var W=R[0],V=W.clientX,q=W.clientY;Math.abs(l-V)+Math.abs(a-q)>O&&(c=-1),l=$.clientX=V,a=$.clientY=q,C=k=0;var X=new h($,g);if(x=X.getDocumentPosition(),B-c<500&&R.length==1&&!b)E++,$.preventDefault(),$.button=0,S();else{E=0;var G=g.selection.cursor,Z=g.selection.isEmpty()?G:g.selection.anchor,re=g.renderer.$cursorLayer.getPixelPosition(G,!0),J=g.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=g.renderer.scroller.getBoundingClientRect(),me=g.renderer.layerConfig.offset,ve=g.renderer.scrollLeft,pe=function(Wt,gt){return Wt=Wt/F,gt=gt/O-.75,Wt*Wt+gt*gt};if($.clientX<ae.left){s="zoom";return}var Ce=pe($.clientX-ae.left-re.left+ve,$.clientY-ae.top-re.top+me),lt=pe($.clientX-ae.left-J.left+ve,$.clientY-ae.top-J.top+me);Ce<3.5&&lt<3.5&&(s=Ce>lt?"cursor":"anchor"),lt<3.5?s="anchor":Ce<3.5?s="cursor":s="scroll",u=setTimeout(N,450)}c=B},g),p.addListener(d,"touchend",function($){w=g.$mouseHandler.isMousePressed=!1,y&&clearInterval(y),s=="zoom"?(s="",b=0):u?(g.selection.moveToPosition(x),b=0,I()):s=="scroll"?(_(),T()):I(),clearTimeout(u),u=null},g),p.addListener(d,"touchmove",function($){u&&(clearTimeout(u),u=null);var R=$.touches;if(!(R.length>1||s=="zoom")){var O=R[0],F=l-O.clientX,B=a-O.clientY;if(s=="wait")if(F*F+B*B>4)s="cursor";else return $.preventDefault();l=O.clientX,a=O.clientY,$.clientX=O.clientX,$.clientY=O.clientY;var W=$.timeStamp,V=W-o;if(o=W,s=="scroll"){var q=new h($,g);q.speed=1,q.wheelX=F,q.wheelY=B,10*Math.abs(F)<Math.abs(B)&&(F=0),10*Math.abs(B)<Math.abs(F)&&(B=0),V!=0&&(C=F/V,k=B/V),g._emit("mousewheel",q),q.propagationStopped||(C=k=0)}else{var X=new h($,g),G=X.getDocumentPosition();s=="cursor"?g.selection.moveCursorToPosition(G):s=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),$.preventDefault()}}},g);function _(){b+=60,y=setInterval(function(){b--<=0&&(clearInterval(y),y=null),Math.abs(C)<.01&&(C=0),Math.abs(k)<.01&&(k=0),b<20&&(C=.9*C),b<20&&(k=.9*k);var $=g.session.getScrollTop();g.renderer.scrollBy(10*C,10*k),$==g.session.getScrollTop()&&(b=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(t,r,f){var h=t("../lib/event"),p=t("../lib/useragent"),v=t("./default_handlers").DefaultHandlers,d=t("./default_gutter_handler").GutterHandler,g=t("./mouse_event").MouseEvent,s=t("./dragdrop_handler").DragdropHandler,l=t("./touch_handler").addTouchListeners,a=t("../config"),c=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var y=this;this.editor=u,new v(this),new d(this),new s(this);var b=function(C){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},x=u.renderer.getMouseEventTarget();h.addListener(x,"click",this.onMouseEvent.bind(this,"click"),u),h.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),h.addMultiMouseDownListener([x,u.renderer.scrollBarV&&u.renderer.scrollBarV.inner,u.renderer.scrollBarH&&u.renderer.scrollBarH.inner,u.textInput&&u.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",u),h.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),l(u.container,u);var E=u.renderer.$gutter;h.addListener(E,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),h.addListener(E,"click",this.onMouseEvent.bind(this,"gutterclick"),u),h.addListener(E,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),h.addListener(E,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),h.addListener(x,"mousedown",b,u),h.addListener(E,"mousedown",b,u),p.isIE&&u.renderer.scrollBarV&&(h.addListener(u.renderer.scrollBarV.element,"mousedown",b,u),h.addListener(u.renderer.scrollBarH.element,"mousedown",b,u)),u.on("mousemove",function(C){if(!(y.state||y.$dragDelay||!y.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(C.x,C.y),w=u.session.selection.getRange(),A=u.renderer;!w.isEmpty()&&w.insideStart(k.row,k.column)?A.setCursorStyle("default"):A.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,y){this.editor.session&&this.editor._emit(u,new g(y,this.editor))},o.prototype.onMouseMove=function(u,y){var b=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!b||!b.length||this.editor._emit(u,new g(y,this.editor))},o.prototype.onMouseWheel=function(u,y){var b=new g(y,this.editor);b.speed=this.$scrollSpeed*2,b.wheelX=y.wheelX,b.wheelY=y.wheelY,this.editor._emit(u,b)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,y){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var b=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var E=this,C=function(I){if(I){if(p.isWebKit&&!I.which&&E.releaseMouse)return E.releaseMouse();E.x=I.clientX,E.y=I.clientY,y&&y(I),E.mouseEvent=new g(I,E.editor),E.$mouseMoved=!0}},k=function(I){b.off("beforeEndOperation",A),clearInterval(L),b.session&&w(),E[E.state+"End"]&&E[E.state+"End"](I),E.state="",E.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),E.$onCaptureMouseMove=E.releaseMouse=null,I&&E.onMouseEvent("mouseup",I),b.endOperation()},w=function(){E[E.state]&&E[E.state](),E.$mouseMoved=!1};if(p.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var A=function(I){E.releaseMouse&&b.curOp.command.name&&b.curOp.selectionChanged&&(E[E.state+"End"]&&E[E.state+"End"](),E.state="",E.releaseMouse())};b.on("beforeEndOperation",A),b.startOperation({command:{name:"mouse"}}),E.$onCaptureMouseMove=C,E.releaseMouse=h.capture(this.editor.container,C,k);var L=setInterval(w,20)},o.prototype.cancelContextMenu=function(){var u=(function(y){y&&y.domEvent&&y.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),y&&y.domEvent&&h.stopEvent(y.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();c.prototype.releaseMouse=null,a.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:p.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,r,f){var h=t("../lib/dom"),p=function(){function v(d){d.on("click",function(g){var s=g.getDocumentPosition(),l=d.session,a=l.getFoldAt(s.row,s.column,1);a&&(g.getAccelKey()?l.removeFold(a):l.expandFold(a),g.stop());var c=g.domEvent&&g.domEvent.target;c&&h.hasCssClass(c,"ace_inline_button")&&h.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),d.renderer.scrollCursorIntoView())}),d.on("gutterclick",function(g){var s=d.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,a=d.session;a.foldWidgets&&a.foldWidgets[l]&&d.session.onFoldWidgetClick(l,g),d.isFocused()||d.focus(),g.stop()}}),d.on("gutterdblclick",function(g){var s=d.renderer.$gutterLayer.getRegion(g);if(s=="foldWidgets"){var l=g.getDocumentPosition().row,a=d.session,c=a.getParentFoldRangeData(l,!0),o=c.range||c.firstRange;if(o){l=o.start.row;var u=a.getFoldAt(l,a.getLine(l).length,1);u?a.removeFold(u):(a.addFold("...",o),d.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return v}();r.FoldHandler=p}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,r,f){var h=t("../lib/keys"),p=t("../lib/event"),v=function(){function d(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return d.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},d.prototype.setKeyboardHandler=function(g){var s=this.$handlers;if(s[s.length-1]!=g){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(g,1)}},d.prototype.addKeyboardHandler=function(g,s){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var l=this.$handlers.indexOf(g);l!=-1&&this.$handlers.splice(l,1),s==null?this.$handlers.push(g):this.$handlers.splice(s,0,g),l==-1&&g.attach&&g.attach(this.$editor)}},d.prototype.removeKeyboardHandler=function(g){var s=this.$handlers.indexOf(g);return s==-1?!1:(this.$handlers.splice(s,1),g.detach&&g.detach(this.$editor),!0)},d.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},d.prototype.getStatusText=function(){var g=this.$data,s=g.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(s,g)||""}).filter(Boolean).join(" ")},d.prototype.$callKeyboardHandlers=function(g,s,l,a){for(var c,o=!1,u=this.$editor.commands,y=this.$handlers.length;y--&&(c=this.$handlers[y].handleKeyboard(this.$data,g,s,l,a),!(!(!c||!c.command)&&(c.command=="null"?o=!0:o=u.exec(c.command,this.$editor,c.args,a),o&&a&&g!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&p.stopEvent(a),o))););return!o&&g==-1&&(c={command:"insertstring"},o=u.exec("insertstring",this.$editor,s)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),o},d.prototype.onCommandKey=function(g,s,l){var a=h.keyCodeToString(l);return this.$callKeyboardHandlers(s,a,l,g)},d.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},d}();r.KeyBinding=v}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,r,f){var h=0,p=0,v=!1,d=!1,g=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],a=0,c=1,o=0,u=1,y=2,b=3,x=4,E=5,C=6,k=7,w=8,A=9,L=10,I=11,T=12,N=13,S=14,_=15,$=16,R=17,O=18,F=[O,O,O,O,O,O,O,O,O,C,E,C,w,E,O,O,O,O,O,O,O,O,O,O,O,O,O,O,E,E,E,C,w,x,x,I,I,I,x,x,x,x,x,L,A,L,A,A,y,y,y,y,y,y,y,y,y,y,A,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,O,O,O,O,O,O,E,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,A,x,I,I,I,I,x,x,x,x,o,x,x,O,x,x,I,I,y,y,x,o,x,x,x,y,o,x,x,x,x,x],B=[w,w,w,w,w,w,w,w,w,w,w,O,O,O,o,u,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,w,E,N,S,_,$,R,A,I,I,I,I,I,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,A,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,w];function W(G,Z,re,J){var ae=h?l:s,me=null,ve=null,pe=null,Ce=0,lt=null,Wt=null,gt=-1,vt=null,pn=null,Ft=[];if(!J)for(vt=0,J=[];vt<re;vt++)J[vt]=X(G[vt]);for(p=h,v=!1,d=!1,g=!1,pn=0;pn<re;pn++){if(me=Ce,Ft[pn]=ve=q(G,J,Ft,pn),Ce=ae[me][ve],lt=Ce&240,Ce&=15,Z[pn]=pe=ae[Ce][5],lt>0)if(lt==16){for(vt=gt;vt<pn;vt++)Z[vt]=1;gt=-1}else gt=-1;if(Wt=ae[Ce][6],Wt)gt==-1&&(gt=pn);else if(gt>-1){for(vt=gt;vt<pn;vt++)Z[vt]=pe;gt=-1}J[pn]==E&&(Z[pn]=0),p|=pe}if(g){for(vt=0;vt<re;vt++)if(J[vt]==C){Z[vt]=h;for(var nn=vt-1;nn>=0&&J[nn]==w;nn--)Z[nn]=h}}}function V(G,Z,re){if(!(p<G)){if(G==1&&h==c&&!d){re.reverse();return}for(var J=re.length,ae=0,me,ve,pe,Ce;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(ve=ae,pe=me-1;ve<pe;ve++,pe--)Ce=re[ve],re[ve]=re[pe],re[pe]=Ce;ae=me}ae++}}}function q(G,Z,re,J){var ae=Z[J],me,ve,pe,Ce;switch(ae){case o:case u:v=!1;case x:case b:return ae;case y:return v?b:y;case k:return v=!0,u;case w:return x;case A:return J<1||J+1>=Z.length||(me=re[J-1])!=y&&me!=b||(ve=Z[J+1])!=y&&ve!=b?x:(v&&(ve=b),ve==me?ve:x);case L:return me=J>0?re[J-1]:E,me==y&&J+1<Z.length&&Z[J+1]==y?y:x;case I:if(J>0&&re[J-1]==y)return y;if(v)return x;for(Ce=J+1,pe=Z.length;Ce<pe&&Z[Ce]==I;)Ce++;return Ce<pe&&Z[Ce]==y?y:x;case T:for(pe=Z.length,Ce=J+1;Ce<pe&&Z[Ce]==T;)Ce++;if(Ce<pe){var lt=G[J],Wt=lt>=1425&&lt<=2303||lt==64286;if(me=Z[Ce],Wt&&(me==u||me==k))return u}return J<1||(me=Z[J-1])==E?x:re[J-1];case E:return v=!1,d=!0,h;case C:return g=!0,x;case N:case S:case $:case R:case _:v=!1;case O:return x}}function X(G){var Z=G.charCodeAt(0),re=Z>>8;return re==0?Z>191?o:F[Z]:re==5?/[\u0591-\u05f4]/.test(G)?u:o:re==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?T:/[\u0660-\u0669\u066b-\u066c]/.test(G)?b:Z==1642?I:/[\u06f0-\u06f9]/.test(G)?y:k:re==32&&Z<=8287?B[Z&255]:re==254&&Z>=65136?k:x}r.L=o,r.R=u,r.EN=y,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(G,Z,re){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),ve=[];h=re?c:a,W(J,ve,J.length,Z);for(var pe=0;pe<ae.length;ae[pe]=pe,pe++);V(2,ve,ae),V(1,ve,ae);for(var pe=0;pe<ae.length-1;pe++)Z[pe]===b?ve[pe]=r.AN:ve[pe]===u&&(Z[pe]>k&&Z[pe]<N||Z[pe]===x||Z[pe]===O)?ve[pe]=r.ON_R:pe>0&&J[pe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[pe])&&(ve[pe-1]=ve[pe]=r.R_H,pe++);J[J.length-1]===r.DOT&&(ve[J.length-1]=r.B),J[0]==="‫"&&(ve[0]=r.RLE);for(var pe=0;pe<ae.length;pe++)me[pe]=ve[ae[pe]];return{logicalFromVisual:ae,bidiLevels:me}},r.hasBidiCharacters=function(G,Z){for(var re=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!re&&(Z[J]==u||Z[J]==k||Z[J]==b)&&(re=!0);return re},r.getVisualFromLogicalIdx=function(G,Z){for(var re=0;re<Z.logicalFromVisual.length;re++)if(Z.logicalFromVisual[re]==G)return re;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(t,r,f){var h=t("./lib/bidiutil"),p=t("./lib/lang"),v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,d=function(){function g(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=h,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=v.test(s.getValue())}return g.prototype.isBidiRow=function(s,l,a){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(l,a),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&v.test(s.lines.join(`
179
+ `))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var s=0,l=this.session.$screenRowCache;if(l.length){var a=this.session.$getRowCacheIndex(l,this.currentRow);a>=0&&(s=this.session.$docRowCache[a])}return s},g.prototype.getSplitIndex=function(){var s=0,l=this.session.$screenRowCache;if(l.length)for(var a,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-s>0&&(a=this.session.$getRowCacheIndex(l,this.currentRow-s-1),a===c);)c=a,s++;else s=this.currentRow;return s},g.prototype.updateRowLine=function(s,l){s===void 0&&(s=this.getDocumentRow());var a=s===this.session.getLength()-1,c=a?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[s];o&&(l===void 0&&(l=this.getSplitIndex()),l>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[h.L],this.line=l<o.length?this.line.substring(o[l-1],o[l]):this.line.substring(o[o.length-1])):this.line=this.line.substring(0,o[l]),l==o.length&&(this.line+=this.showInvisibles?c:h.DOT))}else this.line+=this.showInvisibles?c:h.DOT;var u=this.session,y=0,b;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,E){return x===" "||u.isFullWidth(x.charCodeAt(0))?(b=x===" "?u.getScreenTabSize(E+y):2,y+=b-1,p.stringRepeat(h.DOT,b)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==h.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},g.prototype.updateBidiMap=function(){var s=[];h.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=h.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var l=this.characterWidth=s.$characterSize.width,a=s.$measureCharWidth("ה");this.charWidths[h.L]=this.charWidths[h.EN]=this.charWidths[h.ON_R]=l,this.charWidths[h.R]=this.charWidths[h.AN]=a,this.charWidths[h.R_H]=a*.45,this.charWidths[h.B]=this.charWidths[h.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},g.prototype.setEolChar=function(s){this.EOL=s},g.prototype.setContentWidth=function(s){this.contentWidth=s},g.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(s,l){for(var a=s.getCursorPosition(),c=s.selection.getSelectionAnchor().row;c<=a.row;c++)!l&&s.session.getLine(c).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(c,0,1):l&&s.session.getLine(c).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:c},s.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(s){s-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,a=s>l?this.session.getOverwrite()?s:s-1:l,c=h.getVisualFromLogicalIdx(a,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&s<=l&&o[c]%2!==0&&c++;for(var y=0;y<c;y++)u+=this.charWidths[o[y]];return!this.session.getOverwrite()&&s>l&&o[c]%2===0&&(u+=this.charWidths[o[c]]),this.wrapIndent&&(u+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(u+=this.rtlLineOffset),u},g.prototype.getSelections=function(s,l){var a=this.bidiMap,c=a.bidiLevels,o,u=[],y=0,b=Math.min(s,l)-this.wrapIndent,x=Math.max(s,l)-this.wrapIndent,E=!1,C=!1,k=0;this.wrapIndent&&(y+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var w,A=0;A<c.length;A++)w=a.logicalFromVisual[A],o=c[A],E=w>=b&&w<x,E&&!C?k=y:!E&&C&&u.push({left:k,width:y-k}),y+=this.charWidths[o],C=E;if(E&&A===c.length&&u.push({left:k,width:y-k}),this.isRtlDir)for(var L=0;L<u.length;L++)u[L].left+=this.rtlLineOffset;return u},g.prototype.offsetToCol=function(a){this.isRtlDir&&(a-=this.rtlLineOffset);var l=0,a=Math.max(a,0),c=0,o=0,u=this.bidiMap.bidiLevels,y=this.charWidths[u[o]];for(this.wrapIndent&&(a-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);a>c+y/2;){if(c+=y,o===u.length-1){y=0;break}y=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(a<c&&o--,l=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?l=1+(a>c?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&y===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?l=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&y!==0&&o--,l=this.bidiMap.logicalFromVisual[o]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},g}();r.BidiHandler=d}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,r,f){var h=t("./lib/oop"),p=t("./lib/lang"),v=t("./lib/event_emitter").EventEmitter,d=t("./range").Range,g=function(){function s(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var a=this;this.cursor.on("change",function(c){a.$cursorChanged=!0,a.$silent||a._emit("changeCursor"),!a.$isEmpty&&!a.$silent&&a._emit("changeSelection"),!a.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(a.$desiredColumn=null)}),this.anchor.on("change",function(){a.$anchorChanged=!0,!a.$isEmpty&&!a.$silent&&a._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(l,a){this.$isEmpty=!1,this.anchor.setPosition(l,a)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var l=this.anchor,a=this.lead;return l.row>a.row||l.row==a.row&&l.column>a.column},s.prototype.getRange=function(){var l=this.anchor,a=this.lead;return this.$isEmpty?d.fromPoints(a,a):this.isBackwards()?d.fromPoints(a,l):d.fromPoints(l,a)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(l,a){var c=a?l.end:l.start,o=a?l.start:l.end;this.$setSelection(c.row,c.column,o.row,o.column)},s.prototype.$setSelection=function(l,a,c,o){if(!this.$silent){var u=this.$isEmpty,y=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,a),this.cursor.setPosition(c,o),this.$isEmpty=!d.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||y)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(l){var a=this.lead;this.$isEmpty&&this.setSelectionAnchor(a.row,a.column),l.call(this)},s.prototype.selectTo=function(l,a){this.$moveSelection(function(){this.moveCursorTo(l,a)})},s.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},s.prototype.moveTo=function(l,a){this.clearSelection(),this.moveCursorTo(l,a)},s.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(l,a){if(typeof a>"u"){var c=l||this.lead;l=c.row,a=c.column}return this.session.getWordRange(l,a)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var l=this.getCursor(),a=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(a)},s.prototype.getLineRange=function(l,a){var c=typeof l=="number"?l:this.lead.row,o,u=this.session.getFoldLine(c);return u?(c=u.start.row,o=u.end.row):o=c,a===!0?new d(c,0,o,this.session.getLine(o).length):new d(c,0,o+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(l,a,c){var o=l.column,u=l.column+a;return c<0&&(o=l.column-a,u=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(o,u).split(" ").length-1==a},s.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),a;if(a=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(a.start.row,a.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),a;if(a=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(a.end.row,a.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var l=this.lead.row,a=this.lead.column,c=this.session.documentToScreenRow(l,a),o=this.session.screenToDocumentPosition(c,0),u=this.session.getDisplayLine(l,null,o.row,o.column),y=u.match(/^\s*/);y[0].length!=a&&!this.session.$useEmacsStyleLineStart&&(o.column+=y[0].length),this.moveCursorToPosition(o)},s.prototype.moveCursorLineEnd=function(){var l=this.lead,a=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==a.column){var c=this.session.getLine(a.row);if(a.column==c.length){var o=c.search(/\s+$/);o>0&&(a.column=o)}}this.moveCursorTo(a.row,a.column)},s.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,a=this.doc.getLine(l).length;this.moveCursorTo(l,a)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,a=this.lead.column,c=this.doc.getLine(l),o=c.substring(a);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(l,a,1);if(u){this.moveCursorTo(u.end.row,u.end.column);return}if(this.session.nonTokenRe.exec(o)&&(a+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=c.substring(a)),a>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(a+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,a)},s.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(l,a,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var o=this.session.getFoldStringAt(l,a,-1);o==null&&(o=this.doc.getLine(l).substring(0,a));var u=p.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(a-=this.session.nonTokenRe.lastIndex,u=u.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),a<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(a-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,a)},s.prototype.$shortWordEndIndex=function(l){var a=0,c,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(l))a=this.session.tokenRe.lastIndex;else{for(;(c=l[a])&&o.test(c);)a++;if(a<1){for(u.lastIndex=0;(c=l[a])&&!u.test(c);)if(u.lastIndex=0,a++,o.test(c))if(a>2){a--;break}else{for(;(c=l[a])&&o.test(c);)a++;if(a>2)break}}}return u.lastIndex=0,a},s.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,a=this.lead.column,c=this.doc.getLine(l),o=c.substring(a),u=this.session.getFoldAt(l,a,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(a==c.length){var y=this.doc.getLength();do l++,o=this.doc.getLine(l);while(l<y&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),a=0}var b=this.$shortWordEndIndex(o);this.moveCursorTo(l,a+b)},s.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,a=this.lead.column,c;if(c=this.session.getFoldAt(l,a,-1))return this.moveCursorTo(c.start.row,c.start.column);var o=this.session.getLine(l).substring(0,a);if(a===0){do l--,o=this.doc.getLine(l);while(l>0&&/^\s*$/.test(o));a=o.length,/\s+$/.test(o)||(o="")}var u=p.stringReverse(o),y=this.$shortWordEndIndex(u);return this.moveCursorTo(l,a-y)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(l,a){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(a===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(o=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(o/this.session.$bidiHandler.charWidths[0])):o=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var u=this.session.lineWidgets[this.lead.row];l<0?l-=u.rowsAbove||0:l>0&&(l+=u.rowCount-(u.rowsAbove||0))}var y=this.session.screenToDocumentPosition(c.row+l,c.column,o);l!==0&&a===0&&y.row===this.lead.row&&(y.column,this.lead.column),this.moveCursorTo(y.row,y.column+a,a===0)},s.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},s.prototype.moveCursorTo=function(l,a,c){var o=this.session.getFoldAt(l,a,1);o&&(l=o.start.row,a=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(u.charAt(a))&&u.charAt(a-1)&&(this.lead.row==l&&this.lead.column==a+1?a=a-1:a=a+1),this.lead.setPosition(l,a),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(l,a,c){var o=this.session.screenToDocumentPosition(l,a);this.moveCursorTo(o.row,o.column,c)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(l){var a=this.getRange();return l?(l.start.column=a.start.column,l.start.row=a.start.row,l.end.column=a.end.column,l.end.row=a.end.row):l=a,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},s.prototype.getRangeOfMovements=function(l){var a=this.getCursor();try{l(this);var c=this.getCursor();return d.fromPoints(a,c)}catch{return d.fromPoints(a,a)}finally{this.moveCursorToPosition(a)}},s.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(a){var c=a.clone();return c.isBackwards=a.cursor==a.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},s.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var a=l.length;a--;){var c=d.fromPoints(l[a].start,l[a].end);l[a].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},s.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var a=this.ranges.length;a--;)if(!this.ranges[a].isEqual(l[a]))return!1;return!0},s}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,h.implement(g.prototype,v),r.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,r,f){var h=t("./lib/report_error").reportError,p=2e3,v=function(){function d(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var s in this.states){for(var l=this.states[s],a=[],c=0,o=this.matchMappings[s]={defaultToken:"text"},u="g",y=[],b=0;b<l.length;b++){var x=l[b];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),x.unicode&&u.indexOf("u")===-1&&(u+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var E=x.regex,C=new RegExp("(?:("+E+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||C==1?x.token=x.token[0]:C-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:C-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(C>1?x.onMatch=this.$applyToken:x.onMatch=x.token),C>1&&(/\\\d/.test(x.regex)?E=x.regex.replace(/\\([0-9]+)/g,function(k,w){return"\\"+(parseInt(w,10)+c+1)}):(C=1,E=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&y.push(x)),o[c]=b,c+=C,a.push(E),x.onMatch||(x.onMatch=null)}}a.length||(o[0]=0,a.push("$")),y.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[s]=new RegExp("("+a.join(")|(")+")|($)",u)}}return d.prototype.$setMaxTokenCount=function(g){p=g|0},d.prototype.$applyToken=function(g){var s=this.splitRegex.exec(g).slice(1),l=this.token.apply(this,s);if(typeof l=="string")return[{type:l,value:g}];for(var a=[],c=0,o=l.length;c<o;c++)s[c]&&(a[a.length]={type:l[c],value:s[c]});return a},d.prototype.$arrayTokens=function(g){if(!g)return[];var s=this.splitRegex.exec(g);if(!s)return"text";for(var l=[],a=this.tokenArray,c=0,o=a.length;c<o;c++)s[c+1]&&(l[l.length]={type:a[c],value:s[c+1]});return l},d.prototype.removeCapturingGroups=function(g){var s=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,a){return a?"(?:":l});return s},d.prototype.createSplitterRegexp=function(g,s){if(g.indexOf("(?=")!=-1){var l=0,a=!1,c={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,y,b,x,E){return a?a=x!="]":x?a=!0:b?(l==c.stack&&(c.end=E+1,c.stack=-1),l--):y&&(l++,y.length!=1&&(c.stack=l,c.start=E)),o}),c.end!=null&&/^\)*$/.test(g.substr(c.end))&&(g=g.substring(0,c.start)+g.substr(c.end))}return g.charAt(0)!="^"&&(g="^"+g),g.charAt(g.length-1)!="$"&&(g+="$"),new RegExp(g,(s||"").replace("g",""))},d.prototype.getLineTokens=function(g,s){if(s&&typeof s!="string"){var l=s.slice(0);s=l[0],s==="#tmp"&&(l.shift(),s=l.shift())}else var l=[];var a=s||"start",c=this.states[a];c||(a="start",c=this.states[a]);var o=this.matchMappings[a],u=this.regExps[a];u.lastIndex=0;for(var y,b=[],x=0,E=0,C={type:null,value:""};y=u.exec(g);){var k=o.defaultToken,w=null,A=y[0],L=u.lastIndex;if(L-A.length>x){var I=g.substring(x,L-A.length);C.type==k?C.value+=I:(C.type&&b.push(C),C={type:k,value:I})}for(var T=0;T<y.length-2;T++)if(y[T+1]!==void 0){w=c[o[T]],w.onMatch?k=w.onMatch(A,a,l,g):k=w.token,w.next&&(typeof w.next=="string"?a=w.next:a=w.next(a,l),c=this.states[a],c||(this.reportError("state doesn't exist",a),a="start",c=this.states[a]),o=this.matchMappings[a],x=L,u=this.regExps[a],u.lastIndex=L),w.consumeLineEnd&&(x=L);break}if(A){if(typeof k=="string")(!w||w.merge!==!1)&&C.type===k?C.value+=A:(C.type&&b.push(C),C={type:k,value:A});else if(k){C.type&&b.push(C),C={type:null,value:""};for(var T=0;T<k.length;T++)b.push(k[T])}}if(x==g.length)break;if(x=L,E++>p){for(E>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:g});x<g.length;)C.type&&b.push(C),C={value:g.substring(x,x+=500),type:"overflow"};a="start",l=[];break}}return C.type&&b.push(C),l.length>1&&l[0]!==a&&l.unshift("#tmp",a),{tokens:b,state:l.length?l:a}},d}();v.prototype.reportError=h,r.Tokenizer=v}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,r,f){var h=t("../lib/deep_copy").deepCopy,p;p=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,s){if(!s){for(var l in g)this.$rules[l]=g[l];return}for(var l in g){for(var a=g[l],c=0;c<a.length;c++){var o=a[c];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(s)!==0&&(o.next=s+o.next),o.nextState&&o.nextState.indexOf(s)!==0&&(o.nextState=s+o.nextState))}this.$rules[s+l]=a}},this.getRules=function(){return this.$rules},this.embedRules=function(g,s,l,a,c){var o=typeof g=="function"?new g().getRules():g;if(a)for(var u=0;u<a.length;u++)a[u]=s+a[u];else{a=[];for(var y in o)a.push(s+y)}if(this.addRules(o,s),l)for(var b=Array.prototype[c?"push":"unshift"],u=0;u<a.length;u++)b.apply(this.$rules[a[u]],h(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var v=function(g,s){return(g!="start"||s.length)&&s.unshift(this.nextState,g),this.nextState},d=function(g,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var g=0,s=this.$rules;function l(a){var c=s[a];c.processed=!0;for(var o=0;o<c.length;o++){var u=c[o],y=null;Array.isArray(u)&&(y=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var b=u.next||u.push;if(b&&Array.isArray(b)){var x=u.stateName;x||(x=u.token,typeof x!="string"&&(x=x[0]||""),s[x]&&(x+=g++)),s[x]=b,u.next=x,l(x)}else b=="pop"&&(u.next=d);if(u.push&&(u.nextState=u.next||u.push,u.next=v,delete u.push),u.rules)for(var E in u.rules)s[E]?s[E].push&&s[E].push.apply(s[E],u.rules[E]):s[E]=u.rules[E];var C=typeof u=="string"?u:u.include;if(C&&(C==="$self"&&(C="start"),Array.isArray(C)?y=C.map(function(w){return s[w]}):y=s[C]),y){var k=[o,1].concat(y);u.noEscape&&(k=k.filter(function(w){return!w.next})),c.splice.apply(c,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(s).forEach(l,this)},this.createKeywordMapper=function(g,s,l,a){var c=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var u=g[o],y=u.split(a||"|"),b=y.length;b--;){var x=y[b];this.$keywordList.push(x),l&&(x=x.toLowerCase()),c[x]=o}},this),g=null,l?function(o){return c[o.toLowerCase()]||s}:function(o){return c[o]||s}},this.getKeywords=function(){return this.$keywords}}).call(p.prototype),r.TextHighlightRules=p}),ace.define("ace/mode/behaviour",["require","exports","module"],function(t,r,f){var h;h=function(){this.$behaviours={}},(function(){this.add=function(p,v,d){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[p]:this.$behaviours[p]={}}this.$behaviours[p][v]=d},this.addBehaviours=function(p){for(var v in p)for(var d in p[v])this.add(v,d,p[v][d])},this.remove=function(p){this.$behaviours&&this.$behaviours[p]&&delete this.$behaviours[p]},this.inherit=function(p,v){if(typeof p=="function")var d=new p().getBehaviours(v);else var d=p.getBehaviours(v);this.addBehaviours(d)},this.getBehaviours=function(p){if(p){for(var v={},d=0;d<p.length;d++)this.$behaviours[p[d]]&&(v[p[d]]=this.$behaviours[p[d]]);return v}else return this.$behaviours}}).call(h.prototype),r.Behaviour=h}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(t,r,f){var h=t("./range").Range,p=function(){function v(d,g,s){this.$session=d,this.$row=g,this.$rowTokens=d.getTokens(g);var l=d.getTokenAt(g,s);this.$tokenIndex=l?l.index:-1}return v.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},v.prototype.stepForward=function(){this.$tokenIndex+=1;for(var d;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,d||(d=this.$session.getLength()),this.$row>=d)return this.$row=d-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},v.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},v.prototype.getCurrentTokenRow=function(){return this.$row},v.prototype.getCurrentTokenColumn=function(){var d=this.$rowTokens,g=this.$tokenIndex,s=d[g].start;if(s!==void 0)return s;for(s=0;g>0;)g-=1,s+=d[g].value.length;return s},v.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},v.prototype.getCurrentTokenRange=function(){var d=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new h(this.$row,g,this.$row,g+d.value.length)},v}();r.TokenIterator=p}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,r,f){var h=t("../../lib/oop"),p=t("../behaviour").Behaviour,v=t("../../token_iterator").TokenIterator,d=t("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,a={},c={'"':'"',"'":"'"},o=function(b){var x=-1;if(b.multiSelect&&(x=b.selection.index,a.rangeCount!=b.multiSelect.rangeCount&&(a={rangeCount:b.multiSelect.rangeCount})),a[x])return l=a[x];l=a[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(b,x,E,C){var k=b.end.row-b.start.row;return{text:E+x+C,selection:[0,b.start.column+1,k,b.end.column+(k?0:1)]}},y;y=function(b){b=b||{},this.add("braces","insertion",function(x,E,C,k,w){var A=C.getCursorPosition(),L=k.doc.getLine(A.row);if(w=="{"){o(C);var I=C.getSelectionRange(),T=k.doc.getTextRange(I),N=k.getTokenAt(A.row,A.column);if(T!==""&&T!=="{"&&C.getWrapBehavioursEnabled())return u(I,T,"{","}");if(N&&/(?:string)\.quasi|\.xml/.test(N.type)){var S=[/tag\-(?:open|name)/,/attribute\-name/];return S.some(function(W){return W.test(N.type)})||/(string)\.quasi/.test(N.type)&&N.value[A.column-N.start-1]!=="$"?void 0:(y.recordAutoInsert(C,k,"}"),{text:"{}",selection:[1,1]})}else if(y.isSaneInsertion(C,k))return/[\]\}\)]/.test(L[A.column])||C.inMultiSelectMode||b.braces?(y.recordAutoInsert(C,k,"}"),{text:"{}",selection:[1,1]}):(y.recordMaybeInsert(C,k,"{"),{text:"{",selection:[1,1]})}else if(w=="}"){o(C);var _=L.substring(A.column,A.column+1);if(_=="}"){var $=k.$findOpeningBracket("}",{column:A.column+1,row:A.row});if($!==null&&y.isAutoInsertedClosing(A,L,w))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(w==`
180
+ `||w==`\r
181
+ `){o(C);var R="";y.isMaybeInsertedClosing(A,L)&&(R=d.stringRepeat("}",l.maybeInsertedBrackets),y.clearMaybeInsertedClosing());var _=L.substring(A.column,A.column+1);if(_==="}"){var O=k.findMatchingBracket({row:A.row,column:A.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(R)var F=this.$getIndent(L);else{y.clearMaybeInsertedClosing();return}var B=F+k.getTabString();return{text:`
182
+ `+B+`
183
+ `+F+R,selection:[1,B.length,1,B.length]}}else y.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,E,C,k,w){var A=k.doc.getTextRange(w);if(!w.isMultiLine()&&A=="{"){o(C);var L=k.doc.getLine(w.start.row),I=L.substring(w.end.column,w.end.column+1);if(I=="}")return w.end.column++,w;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,E,C,k,w){if(w=="("){o(C);var A=C.getSelectionRange(),L=k.doc.getTextRange(A);if(L!==""&&C.getWrapBehavioursEnabled())return u(A,L,"(",")");if(y.isSaneInsertion(C,k))return y.recordAutoInsert(C,k,")"),{text:"()",selection:[1,1]}}else if(w==")"){o(C);var I=C.getCursorPosition(),T=k.doc.getLine(I.row),N=T.substring(I.column,I.column+1);if(N==")"){var S=k.$findOpeningBracket(")",{column:I.column+1,row:I.row});if(S!==null&&y.isAutoInsertedClosing(I,T,w))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,E,C,k,w){var A=k.doc.getTextRange(w);if(!w.isMultiLine()&&A=="("){o(C);var L=k.doc.getLine(w.start.row),I=L.substring(w.start.column+1,w.start.column+2);if(I==")")return w.end.column++,w}}),this.add("brackets","insertion",function(x,E,C,k,w){if(w=="["){o(C);var A=C.getSelectionRange(),L=k.doc.getTextRange(A);if(L!==""&&C.getWrapBehavioursEnabled())return u(A,L,"[","]");if(y.isSaneInsertion(C,k))return y.recordAutoInsert(C,k,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){o(C);var I=C.getCursorPosition(),T=k.doc.getLine(I.row),N=T.substring(I.column,I.column+1);if(N=="]"){var S=k.$findOpeningBracket("]",{column:I.column+1,row:I.row});if(S!==null&&y.isAutoInsertedClosing(I,T,w))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,E,C,k,w){var A=k.doc.getTextRange(w);if(!w.isMultiLine()&&A=="["){o(C);var L=k.doc.getLine(w.start.row),I=L.substring(w.start.column+1,w.start.column+2);if(I=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(x,E,C,k,w){var A=k.$mode.$quotes||c;if(w.length==1&&A[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;o(C);var L=w,I=C.getSelectionRange(),T=k.doc.getTextRange(I);if(T!==""&&(T.length!=1||!A[T])&&C.getWrapBehavioursEnabled())return u(I,T,L,L);if(!T){var N=C.getCursorPosition(),S=k.doc.getLine(N.row),_=S.substring(N.column-1,N.column),$=S.substring(N.column,N.column+1),R=k.getTokenAt(N.row,N.column),O=k.getTokenAt(N.row,N.column+1);if(_=="\\"&&R&&/escape/.test(R.type))return null;var F=R&&/string|escape/.test(R.type),B=!O||/string|escape/.test(O.type),W;if($==L)W=F!==B,W&&/string\.end/.test(O.type)&&(W=!1);else{if(F&&!B||F&&B)return null;var V=k.$mode.tokenRe;V.lastIndex=0;var q=V.test(_);V.lastIndex=0;var X=V.test($),G=k.$mode.$pairQuotesAfter,Z=G&&G[L]&&G[L].test(_);if(!Z&&q||X||$&&!/[\s;,.})\]\\]/.test($))return null;var re=S[N.column-2];if(_==L&&(re==L||V.test(re)))return null;W=!0}return{text:W?L+L:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,E,C,k,w){var A=k.$mode.$quotes||c,L=k.doc.getTextRange(w);if(!w.isMultiLine()&&A.hasOwnProperty(L)){o(C);var I=k.doc.getLine(w.start.row),T=I.substring(w.start.column+1,w.start.column+2);if(T==L)return w.end.column++,w}}),b.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,E,C,k,w){if(x==="doc-start"&&(w===`
184
+ `||w===`\r
185
+ `)&&C.selection.isEmpty()){var A=C.getCursorPosition();if(A.column===0)return;for(var L=k.doc.getLine(A.row),I=k.doc.getLine(A.row+1),T=k.getTokens(A.row),N=0,S=0;S<T.length;S++){N+=T[S].value.length;var _=T[S];if(N>=A.column){if(N===A.column){if(!/\.doc/.test(_.type))return;if(/\*\//.test(_.value)){var $=T[S+1];if(!$||!/\.doc/.test($.type))return}}var R=A.column-(N-_.value.length),O=_.value.indexOf("*/"),F=_.value.indexOf("/**",O>-1?O+2:0);if(F!==-1&&R>F&&R<F+3||O!==-1&&F!==-1&&R>=O&&R<=F||!/\.doc/.test(_.type))return;break}}var B=this.$getIndent(L);if(/\s*\*/.test(I))return/^\s*\*/.test(L)?{text:w+B+"* ",selection:[1,2+B.length,1,2+B.length]}:{text:w+B+" * ",selection:[1,3+B.length,1,3+B.length]};if(/\/\*\*/.test(L.substring(0,A.column)))return{text:w+B+" * "+w+" "+B+"*/",selection:[1,4+B.length,1,4+B.length]}}})},y.isSaneInsertion=function(b,x){var E=b.getCursorPosition(),C=new v(x,E.row,E.column);if(!this.$matchTokenType(C.getCurrentToken()||"text",g)){if(/[)}\]]/.test(b.session.getLine(E.row)[E.column]))return!0;var k=new v(x,E.row,E.column+1);if(!this.$matchTokenType(k.getCurrentToken()||"text",g))return!1}return C.stepForward(),C.getCurrentTokenRow()!==E.row||this.$matchTokenType(C.getCurrentToken()||"text",s)},y.$matchTokenType=function(b,x){return x.indexOf(b.type||b)>-1},y.recordAutoInsert=function(b,x,E){var C=b.getCursorPosition(),k=x.doc.getLine(C.row);this.isAutoInsertedClosing(C,k,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=C.row,l.autoInsertedLineEnd=E+k.substr(C.column),l.autoInsertedBrackets++},y.recordMaybeInsert=function(b,x,E){var C=b.getCursorPosition(),k=x.doc.getLine(C.row);this.isMaybeInsertedClosing(C,k)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=C.row,l.maybeInsertedLineStart=k.substr(0,C.column)+E,l.maybeInsertedLineEnd=k.substr(C.column),l.maybeInsertedBrackets++},y.isAutoInsertedClosing=function(b,x,E){return l.autoInsertedBrackets>0&&b.row===l.autoInsertedRow&&E===l.autoInsertedLineEnd[0]&&x.substr(b.column)===l.autoInsertedLineEnd},y.isMaybeInsertedClosing=function(b,x){return l.maybeInsertedBrackets>0&&b.row===l.maybeInsertedRow&&x.substr(b.column)===l.maybeInsertedLineEnd&&x.substr(0,b.column)==l.maybeInsertedLineStart},y.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},y.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},h.inherits(y,p),r.CstyleBehaviour=y}),ace.define("ace/unicode",["require","exports","module"],function(t,r,f){for(var h=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],p=0,v=[],d=0;d<h.length;d+=2)v.push(p+=h[d]),h[d+1]&&v.push(45,p+=h[d+1]);r.wordChars=String.fromCharCode.apply(null,v)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(t,r,f){var h=t("../config"),p=t("../tokenizer").Tokenizer,v=t("./text_highlight_rules").TextHighlightRules,d=t("./behaviour/cstyle").CstyleBehaviour,g=t("../unicode"),s=t("../lib/lang"),l=t("../token_iterator").TokenIterator,a=t("../range").Range,c;c=function(){this.HighlightRules=v},(function(){this.$defaultBehaviour=new d,this.tokenRe=new RegExp("^["+g.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+g.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new p(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(o,u,y,b){var x=u.doc,E=!0,C=!0,k=1/0,w=u.getTabSize(),A=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var L=this.lineCommentStart.map(s.escapeRegExp).join("|"),I=this.lineCommentStart[0];else var L=s.escapeRegExp(this.lineCommentStart),I=this.lineCommentStart;L=new RegExp("^(\\s*)(?:"+L+") ?"),A=u.getUseSoftTabs();var T=function(W,V){var q=W.match(L);if(q){var X=q[1].length,G=q[0].length;!$(W,X,G)&&q[0][G-1]==" "&&G--,x.removeInLine(V,X,G)}},N=I+" ",S=function(W,V){(!E||/\S/.test(W))&&($(W,k,k)?x.insertInLine({row:V,column:k},N):x.insertInLine({row:V,column:k},I))},_=function(W,V){return L.test(W)},$=function(W,V,q){for(var X=0;V--&&W.charAt(V)==" ";)X++;if(X%w!=0)return!1;for(var X=0;W.charAt(q++)==" ";)X++;return w>2?X%w!=w-1:X%w==0}}else{if(!this.blockComment)return!1;var I=this.blockComment.start,R=this.blockComment.end,L=new RegExp("^(\\s*)(?:"+s.escapeRegExp(I)+")"),O=new RegExp("(?:"+s.escapeRegExp(R)+")\\s*$"),S=function(Z,re){_(Z,re)||(!E||/\S/.test(Z))&&(x.insertInLine({row:re,column:Z.length},R),x.insertInLine({row:re,column:k},I))},T=function(Z,re){var J;(J=Z.match(O))&&x.removeInLine(re,Z.length-J[0].length,Z.length),(J=Z.match(L))&&x.removeInLine(re,J[1].length,J[0].length)},_=function(Z,re){if(L.test(Z))return!0;for(var J=u.getTokens(re),ae=0;ae<J.length;ae++)if(J[ae].type==="comment")return!0}}function F(W){for(var V=y;V<=b;V++)W(x.getLine(V),V)}var B=1/0;F(function(W,V){var q=W.search(/\S/);q!==-1?(q<k&&(k=q),C&&!_(W,V)&&(C=!1)):B>W.length&&(B=W.length)}),k==1/0&&(k=B,E=!1,C=!1),A&&k%w!=0&&(k=Math.floor(k/w)*w),F(C?T:S)},this.toggleBlockComment=function(o,u,y,b){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var E=new l(u,b.row,b.column),C=E.getCurrentToken();u.selection;var k=u.selection.toOrientedRange(),w,A;if(C&&/comment/.test(C.type)){for(var L,I;C&&/comment/.test(C.type);){var T=C.value.indexOf(x.start);if(T!=-1){var N=E.getCurrentTokenRow(),S=E.getCurrentTokenColumn()+T;L=new a(N,S,N,S+x.start.length);break}C=E.stepBackward()}for(var E=new l(u,b.row,b.column),C=E.getCurrentToken();C&&/comment/.test(C.type);){var T=C.value.indexOf(x.end);if(T!=-1){var N=E.getCurrentTokenRow(),S=E.getCurrentTokenColumn()+T;I=new a(N,S,N,S+x.end.length);break}C=E.stepForward()}I&&u.remove(I),L&&(u.remove(L),w=L.start.row,A=-x.start.length)}else A=x.start.length,w=y.start.row,u.insert(y.end,x.end),u.insert(y.start,x.start);k.start.row==w&&(k.start.column+=A),k.end.row==w&&(k.end.column+=A),u.selection.fromOrientedRange(k)}},this.getNextLineIndent=function(o,u,y){return this.$getIndent(u)},this.checkOutdent=function(o,u,y){return!1},this.autoOutdent=function(o,u,y){},this.$getIndent=function(o){return o.match(/^\s*/)[0]},this.createWorker=function(o){return null},this.createModeDelegates=function(o){this.$embeds=[],this.$modes={};for(var u in o)if(o[u]){var y=o[u],b=y.prototype.$id,x=h.$modes[b];x||(h.$modes[b]=x=new y),h.$modes[u]||(h.$modes[u]=x),this.$embeds.push(u),this.$modes[u]=x}for(var E=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],C=function(A){(function(L){var I=E[A],T=L[I];L[E[A]]=function(){return this.$delegator(I,arguments,T)}})(k)},k=this,u=0;u<E.length;u++)C(u)},this.$delegator=function(o,u,y){var b=u[0]||"start";if(typeof b!="string"){if(Array.isArray(b[2])){var x=b[2][b[2].length-1],E=this.$modes[x];if(E)return E[o].apply(E,[b[1]].concat([].slice.call(u,1)))}b=b[0]||"start"}for(var C=0;C<this.$embeds.length;C++)if(this.$modes[this.$embeds[C]]){var k=b.split(this.$embeds[C]);if(!k[0]&&k[1]){u[0]=k[1];var E=this.$modes[this.$embeds[C]];return E[o].apply(E,u)}}var w=y.apply(this,u);return y?w:void 0},this.transformAction=function(o,u,y,b,x){if(this.$behaviour){var E=this.$behaviour.getBehaviours();for(var C in E)if(E[C][u]){var k=E[C][u].apply(this,arguments);if(k)return k}}},this.getKeywords=function(o){if(!this.completionKeywords){var u=this.$tokenizer.rules,y=[];for(var b in u)for(var x=u[b],E=0,C=x.length;E<C;E++)if(typeof x[E].token=="string")/keyword|support|storage/.test(x[E].token)&&y.push(x[E].regex);else if(typeof x[E].token=="object"){for(var k=0,w=x[E].token.length;k<w;k++)if(/keyword|support|storage/.test(x[E].token[k])){var b=x[E].regex.match(/\(.+?\)/g)[k];y.push(b.substr(1,b.length-2))}}this.completionKeywords=y}return o?y.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(o,u,y,b){var x=this.$keywordList||this.$createKeywordList();return x.map(function(E){return{name:E,value:E,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(c.prototype),r.Mode=c}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(t,r,f){var h=t("./lib/dom"),p=function(){function v(d){this.session=d,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return v.prototype.getRowLength=function(d){var g;return this.lineWidgets?g=this.lineWidgets[d]&&this.lineWidgets[d].rowCount||0:g=0,!this.$useWrapMode||!this.$wrapData[d]?1+g:this.$wrapData[d].length+1+g},v.prototype.$getWidgetScreenLength=function(){var d=0;return this.lineWidgets.forEach(function(g){g&&g.rowCount&&!g.hidden&&(d+=g.rowCount)}),d},v.prototype.$onChangeEditor=function(d){this.attach(d.editor)},v.prototype.attach=function(d){d&&d.widgetManager&&d.widgetManager!=this&&d.widgetManager.detach(),this.editor!=d&&(this.detach(),this.editor=d,d&&(d.widgetManager=this,d.renderer.on("beforeRender",this.measureWidgets),d.renderer.on("afterRender",this.renderWidgets)))},v.prototype.detach=function(d){var g=this.editor;if(g){this.editor=null,g.widgetManager=null,g.renderer.off("beforeRender",this.measureWidgets),g.renderer.off("afterRender",this.renderWidgets);var s=this.session.lineWidgets;s&&s.forEach(function(l){l&&l.el&&l.el.parentNode&&(l._inDocument=!1,l.el.parentNode.removeChild(l.el))})}},v.prototype.updateOnFold=function(d,g){var s=g.lineWidgets;if(!(!s||!d.action)){for(var l=d.data,a=l.start.row,c=l.end.row,o=d.action=="add",u=a+1;u<c;u++)s[u]&&(s[u].hidden=o);s[c]&&(o?s[a]?s[c].hidden=o:s[a]=s[c]:(s[a]==s[c]&&(s[a]=void 0),s[c].hidden=o))}},v.prototype.updateOnChange=function(d){var g=this.session.lineWidgets;if(g){var s=d.start.row,l=d.end.row-s;if(l!==0)if(d.action=="remove"){var a=g.splice(s+1,l);!g[s]&&a[a.length-1]&&(g[s]=a.pop()),a.forEach(function(o){o&&this.removeLineWidget(o)},this),this.$updateRows()}else{var c=new Array(l);g[s]&&g[s].column!=null&&d.start.column>g[s].column&&s++,c.unshift(s,0),g.splice.apply(g,c),this.$updateRows()}}},v.prototype.$updateRows=function(){var d=this.session.lineWidgets;if(d){var g=!0;d.forEach(function(s,l){if(s)for(g=!1,s.row=l;s.$oldWidget;)s.$oldWidget.row=l,s=s.$oldWidget}),g&&(this.session.lineWidgets=null)}},v.prototype.$registerLineWidget=function(d){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var g=this.session.lineWidgets[d.row];return g&&(d.$oldWidget=g,g.el&&g.el.parentNode&&(g.el.parentNode.removeChild(g.el),g._inDocument=!1)),this.session.lineWidgets[d.row]=d,d},v.prototype.addLineWidget=function(d){if(this.$registerLineWidget(d),d.session=this.session,!this.editor)return d;var g=this.editor.renderer;d.html&&!d.el&&(d.el=h.createElement("div"),d.el.innerHTML=d.html),d.text&&!d.el&&(d.el=h.createElement("div"),d.el.textContent=d.text),d.el&&(h.addCssClass(d.el,"ace_lineWidgetContainer"),d.className&&h.addCssClass(d.el,d.className),d.el.style.position="absolute",d.el.style.zIndex="5",g.container.appendChild(d.el),d._inDocument=!0,d.coverGutter||(d.el.style.zIndex="3"),d.pixelHeight==null&&(d.pixelHeight=d.el.offsetHeight)),d.rowCount==null&&(d.rowCount=d.pixelHeight/g.layerConfig.lineHeight);var s=this.session.getFoldAt(d.row,0);if(d.$fold=s,s){var l=this.session.lineWidgets;d.row==s.end.row&&!l[s.start.row]?l[s.start.row]=d:d.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows(),this.renderWidgets(null,g),this.onWidgetChanged(d),d},v.prototype.removeLineWidget=function(d){if(d._inDocument=!1,d.session=null,d.el&&d.el.parentNode&&d.el.parentNode.removeChild(d.el),d.editor&&d.editor.destroy)try{d.editor.destroy()}catch{}if(this.session.lineWidgets){var g=this.session.lineWidgets[d.row];if(g==d)this.session.lineWidgets[d.row]=d.$oldWidget,d.$oldWidget&&this.onWidgetChanged(d.$oldWidget);else for(;g;){if(g.$oldWidget==d){g.$oldWidget=d.$oldWidget;break}g=g.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:d.row}}}),this.$updateRows()},v.prototype.getWidgetsAtRow=function(d){for(var g=this.session.lineWidgets,s=g&&g[d],l=[];s;)l.push(s),s=s.$oldWidget;return l},v.prototype.onWidgetChanged=function(d){this.session._changedWidgets.push(d),this.editor&&this.editor.renderer.updateFull()},v.prototype.measureWidgets=function(d,g){var s=this.session._changedWidgets,l=g.layerConfig;if(!(!s||!s.length)){for(var a=1/0,c=0;c<s.length;c++){var o=s[c];if(!(!o||!o.el)&&o.session==this.session){if(!o._inDocument){if(this.session.lineWidgets[o.row]!=o)continue;o._inDocument=!0,g.container.appendChild(o.el)}o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/l.characterWidth));var u=o.h/l.lineHeight;o.coverLine&&(u-=this.session.getRowLineCount(o.row),u<0&&(u=0)),o.rowCount!=u&&(o.rowCount=u,o.row<a&&(a=o.row))}}a!=1/0&&(this.session._emit("changeFold",{data:{start:{row:a}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},v.prototype.renderWidgets=function(d,g){var s=g.layerConfig,l=this.session.lineWidgets;if(l){for(var a=Math.min(this.firstRow,s.firstRow),c=Math.max(this.lastRow,s.lastRow,l.length);a>0&&!l[a];)a--;this.firstRow=s.firstRow,this.lastRow=s.lastRow,g.$cursorLayer.config=s;for(var o=a;o<=c;o++){var u=l[o];if(!(!u||!u.el)){if(u.hidden){u.el.style.top=-100-(u.pixelHeight||0)+"px";continue}u._inDocument||(u._inDocument=!0,g.container.appendChild(u.el));var y=g.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;u.coverLine||(y+=s.lineHeight*this.session.getRowLineCount(u.row)),u.el.style.top=y-s.offset+"px";var b=u.coverGutter?0:g.gutterWidth;u.fixedWidth||(b-=g.scrollLeft),u.el.style.left=b+"px",u.fullWidth&&u.screenWidth&&(u.el.style.minWidth=s.width+2*s.padding+"px"),u.fixedWidth?u.el.style.right=g.scrollBar.getWidth()+"px":u.el.style.right=""}}}},v}();r.LineWidgets=p}),ace.define("ace/apply_delta",["require","exports","module"],function(t,r,f){r.applyDelta=function(h,p,v){var d=p.start.row,g=p.start.column,s=h[d]||"";switch(p.action){case"insert":var l=p.lines;if(l.length===1)h[d]=s.substring(0,g)+p.lines[0]+s.substring(g);else{var a=[d,1].concat(p.lines);h.splice.apply(h,a),h[d]=s.substring(0,g)+h[d],h[d+p.lines.length-1]+=s.substring(g)}break;case"remove":var c=p.end.column,o=p.end.row;d===o?h[d]=s.substring(0,g)+s.substring(c):h.splice(d,o-d+1,s.substring(0,g)+h[o].substring(c));break}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,f){var h=t("./lib/oop"),p=t("./lib/event_emitter").EventEmitter,v=function(){function s(l,a,c){this.$onChange=this.onChange.bind(this),this.attach(l),typeof a!="number"?this.setPosition(a.row,a.column):this.setPosition(a,c)}return s.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},s.prototype.getDocument=function(){return this.document},s.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var a=g(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(a.row,a.column,!0)}},s.prototype.setPosition=function(l,a,c){var o;if(c?o={row:l,column:a}:o=this.$clipPositionToDocument(l,a),!(this.row==o.row&&this.column==o.column)){var u={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:u,value:o})}},s.prototype.detach=function(){this.document.off("change",this.$onChange)},s.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},s.prototype.$clipPositionToDocument=function(l,a){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):l<0?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,a))),a<0&&(c.column=0),c},s}();v.prototype.$insertRight=!1,h.implement(v.prototype,p);function d(s,l,a){var c=a?s.column<=l.column:s.column<l.column;return s.row<l.row||s.row==l.row&&c}function g(s,l,a){var c=s.action=="insert",o=(c?1:-1)*(s.end.row-s.start.row),u=(c?1:-1)*(s.end.column-s.start.column),y=s.start,b=c?y:s.end;return d(l,y,a)?{row:l.row,column:l.column}:d(b,l,!a)?{row:l.row+o,column:l.column+(l.row==b.row?u:0)}:{row:y.row,column:y.column}}r.Anchor=v}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(t,r,f){var h=t("./lib/oop"),p=t("./apply_delta").applyDelta,v=t("./lib/event_emitter").EventEmitter,d=t("./range").Range,g=t("./anchor").Anchor,s=function(){function l(a){this.$lines=[""],a.length===0?this.$lines=[""]:Array.isArray(a)?this.insertMergedLines({row:0,column:0},a):this.insert({row:0,column:0},a)}return l.prototype.setValue=function(a){var c=this.getLength()-1;this.remove(new d(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},a||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(a,c){return new g(this,a,c)},l.prototype.$detectNewLine=function(a){var c=a.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
186
+ `,this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
187
+ `;case"unix":return`
188
+ `;default:return this.$autoNewLine||`
189
+ `}},l.prototype.setNewLineMode=function(a){this.$newLineMode!==a&&(this.$newLineMode=a,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(a){return a==`\r
190
+ `||a=="\r"||a==`
191
+ `},l.prototype.getLine=function(a){return this.$lines[a]||""},l.prototype.getLines=function(a,c){return this.$lines.slice(a,c+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(a){return this.getLinesForRange(a).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(a){var c;if(a.start.row===a.end.row)c=[this.getLine(a.start.row).substring(a.start.column,a.end.column)];else{c=this.getLines(a.start.row,a.end.row),c[0]=(c[0]||"").substring(a.start.column);var o=c.length-1;a.end.row-a.start.row==o&&(c[o]=c[o].substring(0,a.end.column))}return c},l.prototype.insertLines=function(a,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(a,c)},l.prototype.removeLines=function(a,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(a,c)},l.prototype.insertNewLine=function(a){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(a,["",""])},l.prototype.insert=function(a,c){return this.getLength()<=1&&this.$detectNewLine(c),this.insertMergedLines(a,this.$split(c))},l.prototype.insertInLine=function(a,c){var o=this.clippedPos(a.row,a.column),u=this.pos(a.row,a.column+c.length);return this.applyDelta({start:o,end:u,action:"insert",lines:[c]},!0),this.clonePos(u)},l.prototype.clippedPos=function(a,c){var o=this.getLength();a===void 0?a=o:a<0?a=0:a>=o&&(a=o-1,c=void 0);var u=this.getLine(a);return c==null&&(c=u.length),c=Math.min(Math.max(c,0),u.length),{row:a,column:c}},l.prototype.clonePos=function(a){return{row:a.row,column:a.column}},l.prototype.pos=function(a,c){return{row:a,column:c}},l.prototype.$clipPosition=function(a){var c=this.getLength();return a.row>=c?(a.row=Math.max(0,c-1),a.column=this.getLine(c-1).length):(a.row=Math.max(0,a.row),a.column=Math.min(Math.max(a.column,0),this.getLine(a.row).length)),a},l.prototype.insertFullLines=function(a,c){a=Math.min(Math.max(a,0),this.getLength());var o=0;a<this.getLength()?(c=c.concat([""]),o=0):(c=[""].concat(c),a--,o=this.$lines[a].length),this.insertMergedLines({row:a,column:o},c)},l.prototype.insertMergedLines=function(a,c){var o=this.clippedPos(a.row,a.column),u={row:o.row+c.length-1,column:(c.length==1?o.column:0)+c[c.length-1].length};return this.applyDelta({start:o,end:u,action:"insert",lines:c}),this.clonePos(u)},l.prototype.remove=function(a){var c=this.clippedPos(a.start.row,a.start.column),o=this.clippedPos(a.end.row,a.end.column);return this.applyDelta({start:c,end:o,action:"remove",lines:this.getLinesForRange({start:c,end:o})}),this.clonePos(c)},l.prototype.removeInLine=function(a,c,o){var u=this.clippedPos(a,c),y=this.clippedPos(a,o);return this.applyDelta({start:u,end:y,action:"remove",lines:this.getLinesForRange({start:u,end:y})},!0),this.clonePos(u)},l.prototype.removeFullLines=function(a,c){a=Math.min(Math.max(0,a),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var o=c==this.getLength()-1&&a>0,u=c<this.getLength()-1,y=o?a-1:a,b=o?this.getLine(y).length:0,x=u?c+1:c,E=u?0:this.getLine(x).length,C=new d(y,b,x,E),k=this.$lines.slice(a,c+1);return this.applyDelta({start:C.start,end:C.end,action:"remove",lines:this.getLinesForRange(C)}),k},l.prototype.removeNewLine=function(a){a<this.getLength()-1&&a>=0&&this.applyDelta({start:this.pos(a,this.getLine(a).length),end:this.pos(a+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(a,c){if(a instanceof d||(a=d.fromPoints(a.start,a.end)),c.length===0&&a.isEmpty())return a.start;if(c==this.getTextRange(a))return a.end;this.remove(a);var o;return c?o=this.insert(a.start,c):o=a.start,o},l.prototype.applyDeltas=function(a){for(var c=0;c<a.length;c++)this.applyDelta(a[c])},l.prototype.revertDeltas=function(a){for(var c=a.length-1;c>=0;c--)this.revertDelta(a[c])},l.prototype.applyDelta=function(a,c){var o=a.action=="insert";(o?a.lines.length<=1&&!a.lines[0]:!d.comparePoints(a.start,a.end))||(o&&a.lines.length>2e4?this.$splitAndapplyLargeDelta(a,2e4):(p(this.$lines,a,c),this._signal("change",a)))},l.prototype.$safeApplyDelta=function(a){var c=this.$lines.length;(a.action=="remove"&&a.start.row<c&&a.end.row<c||a.action=="insert"&&a.start.row<=c)&&this.applyDelta(a)},l.prototype.$splitAndapplyLargeDelta=function(a,c){for(var o=a.lines,u=o.length-c+1,y=a.start.row,b=a.start.column,x=0,E=0;x<u;x=E){E+=c-1;var C=o.slice(x,E);C.push(""),this.applyDelta({start:this.pos(y+x,b),end:this.pos(y+E,b=0),action:a.action,lines:C},!0)}a.lines=o.slice(x),a.start.row=y+x,a.start.column=b,this.applyDelta(a,!0)},l.prototype.revertDelta=function(a){this.$safeApplyDelta({start:this.clonePos(a.start),end:this.clonePos(a.end),action:a.action=="insert"?"remove":"insert",lines:a.lines.slice()})},l.prototype.indexToPosition=function(a,c){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,y=c||0,b=o.length;y<b;y++)if(a-=o[y].length+u,a<0)return{row:y,column:a+o[y].length+u};return{row:b-1,column:a+o[b-1].length+u}},l.prototype.positionToIndex=function(a,c){for(var o=this.$lines||this.getAllLines(),u=this.getNewLineCharacter().length,y=0,b=Math.min(a.row,o.length),x=c||0;x<b;++x)y+=o[x].length+u;return y+a.column},l.prototype.$split=function(a){return a.split(/\r\n|\r|\n/)},l}();s.prototype.$autoNewLine="",s.prototype.$newLineMode="auto",h.implement(s.prototype,v),r.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(t,r,f){var h=t("./lib/oop"),p=t("./lib/event_emitter").EventEmitter,v=function(){function d(g,s){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=g;var l=this;this.$worker=function(){if(l.running){for(var a=new Date,c=l.currentLine,o=-1,u=l.doc,y=c;l.lines[c];)c++;var b=u.getLength(),x=0;for(l.running=!1;c<b;){l.$tokenizeRow(c),o=c;do c++;while(l.lines[c]);if(x++,x%5===0&&new Date-a>20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=c,o==-1&&(o=c),y<=o&&l.fireUpdateEvent(y,o)}}}return d.prototype.setTokenizer=function(g){this.tokenizer=g,this.lines=[],this.states=[],this.start(0)},d.prototype.setDocument=function(g){this.doc=g,this.lines=[],this.states=[],this.stop()},d.prototype.fireUpdateEvent=function(g,s){var l={first:g,last:s};this._signal("update",{data:l})},d.prototype.start=function(g){this.currentLine=Math.min(g||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},d.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},d.prototype.$updateOnChange=function(g){var s=g.start.row,l=g.end.row-s;if(l===0)this.lines[s]=null;else if(g.action=="remove")this.lines.splice(s,l+1,null),this.states.splice(s,l+1,null);else{var a=Array(l+1);a.unshift(s,1),this.lines.splice.apply(this.lines,a),this.states.splice.apply(this.states,a)}this.currentLine=Math.min(s,this.currentLine,this.doc.getLength()),this.stop()},d.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},d.prototype.getTokens=function(g){return this.lines[g]||this.$tokenizeRow(g)},d.prototype.getState=function(g){return this.currentLine==g&&this.$tokenizeRow(g),this.states[g]||"start"},d.prototype.$tokenizeRow=function(g){var s=this.doc.getLine(g),l=this.states[g-1],a=this.tokenizer.getLineTokens(s,l,g);return this.states[g]+""!=a.state+""?(this.states[g]=a.state,this.lines[g+1]=null,this.currentLine>g+1&&(this.currentLine=g+1)):this.currentLine==g&&(this.currentLine=g+1),this.lines[g]=a.tokens},d.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},d}();h.implement(v.prototype,p),r.BackgroundTokenizer=v}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(t,r,f){var h=t("./lib/lang"),p=t("./range").Range,v=function(){function d(g,s,l){l===void 0&&(l="text"),this.setRegexp(g),this.clazz=s,this.type=l}return d.prototype.setRegexp=function(g){this.regExp+""!=g+""&&(this.regExp=g,this.cache=[])},d.prototype.update=function(g,s,l,a){if(this.regExp)for(var c=a.firstRow,o=a.lastRow,u={},y=c;y<=o;y++){var b=this.cache[y];b==null&&(b=h.getMatchOffsets(l.getLine(y),this.regExp),b.length>this.MAX_RANGES&&(b=b.slice(0,this.MAX_RANGES)),b=b.map(function(k){return new p(y,k.offset,y,k.offset+k.length)}),this.cache[y]=b.length?b:"");for(var x=b.length;x--;){var E=b[x].toScreenRange(l),C=E.toString();u[C]||(u[C]=!0,s.drawSingleLineMarker(g,E,this.clazz,a))}}},d}();v.prototype.MAX_RANGES=500,r.SearchHighlight=v}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(t,r,f){var h=function(){function k(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return k.prototype.addSession=function(w){this.$session=w},k.prototype.add=function(w,A,L){if(!this.$fromUndo&&w!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),A===!1||!this.lastDeltas){this.lastDeltas=[];var I=this.$undoStack.length;I>this.$undoDepth-1&&this.$undoStack.splice(0,I-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),w.id=this.$rev=++this.$maxRev}(w.action=="remove"||w.action=="insert")&&(this.$lastDelta=w),this.lastDeltas.push(w)}},k.prototype.addSelection=function(w,A){this.selections.push({value:w,rev:A||this.$rev})},k.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},k.prototype.markIgnored=function(w,A){A==null&&(A=this.$rev+1);for(var L=this.$undoStack,I=L.length;I--;){var T=L[I][0];if(T.id<=w)break;T.id<A&&(T.ignore=!0)}this.lastDeltas=null},k.prototype.getSelection=function(w,A){for(var L=this.selections,I=L.length;I--;){var T=L[I];if(T.rev<w)return A&&(T=L[I+1]),T}},k.prototype.getRevision=function(){return this.$rev},k.prototype.getDeltas=function(w,A){A==null&&(A=this.$rev+1);for(var L=this.$undoStack,I=null,T=0,N=L.length;N--;){var S=L[N][0];if(S.id<A&&!I&&(I=N+1),S.id<=w){T=N+1;break}}return L.slice(T,I)},k.prototype.getChangedRanges=function(w,A){A==null&&(A=this.$rev+1)},k.prototype.getChangedLines=function(w,A){A==null&&(A=this.$rev+1)},k.prototype.undo=function(w,A){this.lastDeltas=null;var L=this.$undoStack;if(p(L,L.length)){w||(w=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var I=L.pop(),T=null;return I&&(T=w.undoChanges(I,A),this.$redoStack.push(I),this.$syncRev()),this.$fromUndo=!1,T}},k.prototype.redo=function(w,A){if(this.lastDeltas=null,w||(w=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var L=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);C(this.$redoStack,L),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(N){N[0].id=++this.$maxRev},this)}var I=this.$redoStack.pop(),T=null;return I&&(T=w.redoChanges(I,A),this.$undoStack.push(I),this.$syncRev()),this.$fromUndo=!1,T},k.prototype.$syncRev=function(){var w=this.$undoStack,A=w[w.length-1],L=A&&A[0].id||0;this.$redoStackBaseRev=L,this.$rev=L},k.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},k.prototype.canUndo=function(){return this.$undoStack.length>0},k.prototype.canRedo=function(){return this.$redoStack.length>0},k.prototype.bookmark=function(w){w==null&&(w=this.$rev),this.mark=w},k.prototype.isAtBookmark=function(){return this.$rev===this.mark},k.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},k.prototype.fromJSON=function(w){this.reset(),this.$undoStack=w.$undoStack,this.$redoStack=w.$redoStack},k.prototype.$prettyPrint=function(w){return w?l(w):l(this.$undoStack)+`
192
+ ---
193
+ `+l(this.$redoStack)},k}();h.prototype.hasUndo=h.prototype.canUndo,h.prototype.hasRedo=h.prototype.canRedo,h.prototype.isClean=h.prototype.isAtBookmark,h.prototype.markClean=h.prototype.bookmark;function p(k,w){for(var A=w;A--;){var L=k[A];if(L&&!L[0].ignore){for(;A<w-1;){var I=o(k[A],k[A+1]);k[A]=I[0],k[A+1]=I[1],A++}return!0}}}var v=t("./range").Range,d=v.comparePoints;v.comparePoints;function g(k){return{row:k.row,column:k.column}}function s(k){return{start:g(k.start),end:g(k.end),action:k.action,lines:k.lines.slice()}}function l(k){if(k=k||this,Array.isArray(k))return k.map(l).join(`
194
+ `);var w="";return k.action?(w=k.action=="insert"?"+":"-",w+="["+k.lines+"]"):k.value&&(Array.isArray(k.value)?w=k.value.map(a).join(`
195
+ `):w=a(k.value)),k.start&&(w+=a(k)),(k.id||k.rev)&&(w+=" ("+(k.id||k.rev)+")"),w}function a(k){return k.start.row+":"+k.start.column+"=>"+k.end.row+":"+k.end.column}function c(k,w){var A=k.action=="insert",L=w.action=="insert";if(A&&L)if(d(w.start,k.end)>=0)y(w,k,-1);else if(d(w.start,k.start)<=0)y(k,w,1);else return null;else if(A&&!L)if(d(w.start,k.end)>=0)y(w,k,-1);else if(d(w.end,k.start)<=0)y(k,w,-1);else return null;else if(!A&&L)if(d(w.start,k.start)>=0)y(w,k,1);else if(d(w.start,k.start)<=0)y(k,w,1);else return null;else if(!A&&!L)if(d(w.start,k.start)>=0)y(w,k,1);else if(d(w.end,k.start)<=0)y(k,w,-1);else return null;return[w,k]}function o(k,w){for(var A=k.length;A--;)for(var L=0;L<w.length;L++)if(!c(k[A],w[L])){for(;A<k.length;){for(;L--;)c(w[L],k[A]);L=w.length,A++}return[k,w]}return k.selectionBefore=w.selectionBefore=k.selectionAfter=w.selectionAfter=null,[w,k]}function u(k,w){var A=k.action=="insert",L=w.action=="insert";if(A&&L)d(k.start,w.start)<0?y(w,k,1):y(k,w,1);else if(A&&!L)d(k.start,w.end)>=0?y(k,w,-1):(d(k.start,w.start)<=0||y(k,v.fromPoints(w.start,k.start),-1),y(w,k,1));else if(!A&&L)d(w.start,k.end)>=0?y(w,k,-1):(d(w.start,k.start)<=0||y(w,v.fromPoints(k.start,w.start),-1),y(k,w,1));else if(!A&&!L)if(d(w.start,k.end)>=0)y(w,k,-1);else if(d(w.end,k.start)<=0)y(k,w,-1);else{var I,T;return d(k.start,w.start)<0&&(I=k,k=x(k,w.start)),d(k.end,w.end)>0&&(T=x(k,w.end)),b(w.end,k.start,k.end,-1),T&&!I&&(k.lines=T.lines,k.start=T.start,k.end=T.end,T=k),[w,I,T].filter(Boolean)}return[w,k]}function y(k,w,A){b(k.start,w.start,w.end,A),b(k.end,w.start,w.end,A)}function b(k,w,A,L){k.row==(L==1?w:A).row&&(k.column+=L*(A.column-w.column)),k.row+=L*(A.row-w.row)}function x(k,w){var A=k.lines,L=k.end;k.end=g(w);var I=k.end.row-k.start.row,T=A.splice(I,A.length),N=I?w.column:w.column-k.start.column;A.push(T[0].substring(0,N)),T[0]=T[0].substr(N);var S={start:g(w),end:L,lines:T,action:k.action};return S}function E(k,w){w=s(w);for(var A=k.length;A--;){for(var L=k[A],I=0;I<L.length;I++){var T=L[I],N=u(T,w);w=N[0],N.length!=2&&(N[2]?(L.splice(I+1,1,N[1],N[2]),I++):N[1]||(L.splice(I,1),I--))}L.length||k.splice(A,1)}return k}function C(k,w){for(var A=0;A<w.length;A++)for(var L=w[A],I=0;I<L.length;I++)E(k,L[I])}r.UndoManager=h}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(t,r,f){var h=t("../range").Range,p=function(){function v(d,g){this.foldData=d,Array.isArray(g)?this.folds=g:g=this.folds=[g];var s=g[g.length-1];this.range=new h(g[0].start.row,g[0].start.column,s.end.row,s.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return v.prototype.shiftRow=function(d){this.start.row+=d,this.end.row+=d,this.folds.forEach(function(g){g.start.row+=d,g.end.row+=d})},v.prototype.addFold=function(d){if(d.sameRow){if(d.start.row<this.startRow||d.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(d),this.folds.sort(function(g,s){return-g.range.compareEnd(s.start.row,s.start.column)}),this.range.compareEnd(d.start.row,d.start.column)>0?(this.end.row=d.end.row,this.end.column=d.end.column):this.range.compareStart(d.end.row,d.end.column)<0&&(this.start.row=d.start.row,this.start.column=d.start.column)}else if(d.start.row==this.end.row)this.folds.push(d),this.end.row=d.end.row,this.end.column=d.end.column;else if(d.end.row==this.start.row)this.folds.unshift(d),this.start.row=d.start.row,this.start.column=d.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");d.foldLine=this},v.prototype.containsRow=function(d){return d>=this.start.row&&d<=this.end.row},v.prototype.walk=function(d,g,s){var l=0,a=this.folds,c,o,u,y=!0;g==null&&(g=this.end.row,s=this.end.column);for(var b=0;b<a.length;b++){if(c=a[b],o=c.range.compareStart(g,s),o==-1){d(null,g,s,l,y);return}if(u=d(null,c.start.row,c.start.column,l,y),u=!u&&d(c.placeholder,c.start.row,c.start.column,l),u||o===0)return;y=!c.sameRow,l=c.end.column}d(null,g,s,l,y)},v.prototype.getNextFoldTo=function(d,g){for(var s,l,a=0;a<this.folds.length;a++){if(s=this.folds[a],l=s.range.compareEnd(d,g),l==-1)return{fold:s,kind:"after"};if(l===0)return{fold:s,kind:"inside"}}return null},v.prototype.addRemoveChars=function(d,g,s){var l=this.getNextFoldTo(d,g),a,c;if(l){if(a=l.fold,l.kind=="inside"&&a.start.column!=g&&a.start.row!=d)window.console&&window.console.log(d,g,a);else if(a.start.row==d){c=this.folds;var o=c.indexOf(a);for(o===0&&(this.start.column+=s),o;o<c.length;o++){if(a=c[o],a.start.column+=s,!a.sameRow)return;a.end.column+=s}this.end.column+=s}}},v.prototype.split=function(d,g){var s=this.getNextFoldTo(d,g);if(!s||s.kind=="inside")return null;var l=s.fold,a=this.folds,c=this.foldData,o=a.indexOf(l),u=a[o-1];this.end.row=u.end.row,this.end.column=u.end.column,a=a.splice(o,a.length-o);var y=new v(c,a);return c.splice(c.indexOf(this)+1,0,y),y},v.prototype.merge=function(d){for(var g=d.folds,s=0;s<g.length;s++)this.addFold(g[s]);var l=this.foldData;l.splice(l.indexOf(d),1)},v.prototype.toString=function(){var d=[this.range.toString()+": ["];return this.folds.forEach(function(g){d.push(" "+g.toString())}),d.push("]"),d.join(`
196
+ `)},v.prototype.idxToPosition=function(d){for(var g=0,s=0;s<this.folds.length;s++){var l=this.folds[s];if(d-=l.start.column-g,d<0)return{row:l.start.row,column:l.start.column+d};if(d-=l.placeholder.length,d<0)return l.start;g=l.end.column}return{row:this.end.row,column:this.end.column+d}},v}();r.FoldLine=p}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(t,r,f){var h=t("./range").Range,p=h.comparePoints,v=function(){function d(){this.ranges=[],this.$bias=1}return d.prototype.pointIndex=function(g,s,l){for(var a=this.ranges,c=l||0;c<a.length;c++){var o=a[c],u=p(g,o.end);if(!(u>0)){var y=p(g,o.start);return u===0?s&&y!==0?-c-2:c:y>0||y===0&&!s?c:-c-1}}return-c-1},d.prototype.add=function(g){var s=!g.isEmpty(),l=this.pointIndex(g.start,s);l<0&&(l=-l-1);var a=this.pointIndex(g.end,s,l);return a<0?a=-a-1:a++,this.ranges.splice(l,a-l,g)},d.prototype.addList=function(g){for(var s=[],l=g.length;l--;)s.push.apply(s,this.add(g[l]));return s},d.prototype.substractPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges.splice(s,1)},d.prototype.merge=function(){var g=[],s=this.ranges;s=s.sort(function(u,y){return p(u.start,y.start)});for(var l=s[0],a,c=1;c<s.length;c++){a=l,l=s[c];var o=p(a.end,l.start);o<0||o==0&&!a.isEmpty()&&!l.isEmpty()||(p(a.end,l.end)<0&&(a.end.row=l.end.row,a.end.column=l.end.column),s.splice(c,1),g.push(l),l=a,c--)}return this.ranges=s,g},d.prototype.contains=function(g,s){return this.pointIndex({row:g,column:s})>=0},d.prototype.containsPoint=function(g){return this.pointIndex(g)>=0},d.prototype.rangeAtPoint=function(g){var s=this.pointIndex(g);if(s>=0)return this.ranges[s]},d.prototype.clipRows=function(g,s){var l=this.ranges;if(l[0].start.row>s||l[l.length-1].start.row<g)return[];var a=this.pointIndex({row:g,column:0});a<0&&(a=-a-1);var c=this.pointIndex({row:s,column:0},a);c<0&&(c=-c-1);for(var o=[],u=a;u<c;u++)o.push(l[u]);return o},d.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},d.prototype.attach=function(g){this.session&&this.detach(),this.session=g,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},d.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},d.prototype.$onChange=function(g){for(var s=g.start,l=g.end,a=s.row,c=l.row,o=this.ranges,u=0,y=o.length;u<y;u++){var b=o[u];if(b.end.row>=a)break}if(g.action=="insert")for(var x=c-a,E=-s.column+l.column;u<y;u++){var b=o[u];if(b.start.row>a)break;if(b.start.row==a&&b.start.column>=s.column&&(b.start.column==s.column&&this.$bias<=0||(b.start.column+=E,b.start.row+=x)),b.end.row==a&&b.end.column>=s.column){if(b.end.column==s.column&&this.$bias<0)continue;b.end.column==s.column&&E>0&&u<y-1&&b.end.column>b.start.column&&b.end.column==o[u+1].start.column&&(b.end.column-=E),b.end.column+=E,b.end.row+=x}}else for(var x=a-c,E=s.column-l.column;u<y;u++){var b=o[u];if(b.start.row>c)break;b.end.row<c&&(a<b.end.row||a==b.end.row&&s.column<b.end.column)?(b.end.row=a,b.end.column=s.column):b.end.row==c?b.end.column<=l.column?(x||b.end.column>s.column)&&(b.end.column=s.column,b.end.row=s.row):(b.end.column+=E,b.end.row+=x):b.end.row>c&&(b.end.row+=x),b.start.row<c&&(a<b.start.row||a==b.start.row&&s.column<b.start.column)?(b.start.row=a,b.start.column=s.column):b.start.row==c?b.start.column<=l.column?(x||b.start.column>s.column)&&(b.start.column=s.column,b.start.row=s.row):(b.start.column+=E,b.start.row+=x):b.start.row>c&&(b.start.row+=x)}if(x!=0&&u<y)for(;u<y;u++){var b=o[u];b.start.row+=x,b.end.row+=x}},d}();v.prototype.comparePoints=p,r.RangeList=v}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(t,r,f){var h=this&&this.__extends||function(){var a=function(c,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,y){u.__proto__=y}||function(u,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(u[b]=y[b])},a(c,o)};return function(c,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(c,o);function u(){this.constructor=c}c.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),p=t("../range_list").RangeList,v=function(a){h(c,a);function c(o,u){var y=a.call(this)||this;return y.foldLine=null,y.placeholder=u,y.range=o,y.start=o.start,y.end=o.end,y.sameRow=o.start.row==o.end.row,y.subFolds=y.ranges=[],y}return c.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},c.prototype.setFoldLine=function(o){this.foldLine=o,this.subFolds.forEach(function(u){u.setFoldLine(o)})},c.prototype.clone=function(){var o=this.range.clone(),u=new c(o,this.placeholder);return this.subFolds.forEach(function(y){u.subFolds.push(y.clone())}),u.collapseChildren=this.collapseChildren,u},c.prototype.addSubFold=function(o){if(!this.range.isEqual(o)){g(o,this.start);for(var u=o.start.row,y=o.start.column,b=0,x=-1;b<this.subFolds.length&&(x=this.subFolds[b].range.compare(u,y),x==1);b++);var E=this.subFolds[b],C=0;if(x==0){if(E.range.containsRange(o))return E.addSubFold(o);C=1}for(var u=o.range.end.row,y=o.range.end.column,k=b,x=-1;k<this.subFolds.length&&(x=this.subFolds[k].range.compare(u,y),x==1);k++);x==0&&k++;for(var w=this.subFolds.splice(b,k-b,o),A=x==0?w.length-1:w.length,L=C;L<A;L++)o.addSubFold(w[L]);return o.setFoldLine(this.foldLine),o}},c.prototype.restoreRange=function(o){return l(o,this.start)},c}(p);function d(a,c){a.row-=c.row,a.row==0&&(a.column-=c.column)}function g(a,c){d(a.start,c),d(a.end,c)}function s(a,c){a.row==0&&(a.column+=c.column),a.row+=c.row}function l(a,c){s(a.start,c),s(a.end,c)}r.Fold=v}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(t,r,f){var h=t("../range").Range,p=t("./fold_line").FoldLine,v=t("./fold").Fold,d=t("../token_iterator").TokenIterator,g=t("../mouse/mouse_event").MouseEvent;function s(){this.getFoldAt=function(l,a,c){var o=this.getFoldLine(l);if(!o)return null;for(var u=o.folds,y=0;y<u.length;y++){var b=u[y].range;if(b.contains(l,a)){if(c==1&&b.isEnd(l,a)&&!b.isEmpty()||c==-1&&b.isStart(l,a)&&!b.isEmpty())continue;return u[y]}}},this.getFoldsInRange=function(l){var a=l.start,c=l.end,o=this.$foldData,u=[];a.column+=1,c.column-=1;for(var y=0;y<o.length;y++){var b=o[y].range.compareRange(l);if(b!=2){if(b==-2)break;for(var x=o[y].folds,E=0;E<x.length;E++){var C=x[E];if(b=C.range.compareRange(l),b==-2)break;if(b!=2){if(b==42)break;u.push(C)}}}}return a.column-=1,c.column+=1,u},this.getFoldsInRangeList=function(l){if(Array.isArray(l)){var a=[];l.forEach(function(o){a=a.concat(this.getFoldsInRange(o))},this)}else var a=this.getFoldsInRange(l);return a},this.getAllFolds=function(){for(var l=[],a=this.$foldData,c=0;c<a.length;c++)for(var o=0;o<a[c].folds.length;o++)l.push(a[c].folds[o]);return l},this.getFoldStringAt=function(l,a,c,o){if(o=o||this.getFoldLine(l),!o)return null;for(var u={end:{column:0}},y,b,x=0;x<o.folds.length;x++){b=o.folds[x];var E=b.range.compareEnd(l,a);if(E==-1){y=this.getLine(b.start.row).substring(u.end.column,b.start.column);break}else if(E===0)return null;u=b}return y||(y=this.getLine(b.start.row).substring(u.end.column)),c==-1?y.substring(0,a-u.end.column):c==1?y.substring(a-u.end.column):y},this.getFoldLine=function(l,a){var c=this.$foldData,o=0;for(a&&(o=c.indexOf(a)),o==-1&&(o=0),o;o<c.length;o++){var u=c[o];if(u.start.row<=l&&u.end.row>=l)return u;if(u.end.row>l)return null}return null},this.getNextFoldLine=function(l,a){var c=this.$foldData,o=0;for(a&&(o=c.indexOf(a)),o==-1&&(o=0),o;o<c.length;o++){var u=c[o];if(u.end.row>=l)return u}return null},this.getFoldedRowCount=function(l,a){for(var c=this.$foldData,o=a-l+1,u=0;u<c.length;u++){var y=c[u],b=y.end.row,x=y.start.row;if(b>=a){x<a&&(x>=l?o-=a-x:o=0);break}else b>=l&&(x>=l?o-=b-x:o-=b-l+1)}return o},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(a,c){return a.start.row-c.start.row}),l},this.addFold=function(l,a){var c=this.$foldData,o=!1,u;l instanceof v?u=l:(u=new v(a,l),u.collapseChildren=a.collapseChildren),this.$clipRangeToDocument(u.range);var y=u.start.row,b=u.start.column,x=u.end.row,E=u.end.column,C=this.getFoldAt(y,b,1),k=this.getFoldAt(x,E,-1);if(C&&k==C)return C.addSubFold(u);C&&!C.range.isStart(y,b)&&this.removeFold(C),k&&!k.range.isEnd(x,E)&&this.removeFold(k);var w=this.getFoldsInRange(u.range);w.length>0&&(this.removeFolds(w),u.collapseChildren||w.forEach(function(T){u.addSubFold(T)}));for(var A=0;A<c.length;A++){var L=c[A];if(x==L.start.row){L.addFold(u),o=!0;break}else if(y==L.end.row){if(L.addFold(u),o=!0,!u.sameRow){var I=c[A+1];if(I&&I.start.row==x){L.merge(I);break}}break}else if(x<=L.start.row)break}return o||(L=this.$addFoldLine(new p(this.$foldData,u))),this.$useWrapMode?this.$updateWrapData(L.start.row,L.start.row):this.$updateRowLengthCache(L.start.row,L.start.row),this.$modified=!0,this._signal("changeFold",{data:u,action:"add"}),u},this.addFolds=function(l){l.forEach(function(a){this.addFold(a)},this)},this.removeFold=function(l){var a=l.foldLine,c=a.start.row,o=a.end.row,u=this.$foldData,y=a.folds;if(y.length==1)u.splice(u.indexOf(a),1);else if(a.range.isEnd(l.end.row,l.end.column))y.pop(),a.end.row=y[y.length-1].end.row,a.end.column=y[y.length-1].end.column;else if(a.range.isStart(l.start.row,l.start.column))y.shift(),a.start.row=y[0].start.row,a.start.column=y[0].start.column;else if(l.sameRow)y.splice(y.indexOf(l),1);else{var b=a.split(l.start.row,l.start.column);y=b.folds,y.shift(),b.start.row=y[0].start.row,b.start.column=y[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(c,o):this.$updateRowLengthCache(c,o)),this.$modified=!0,this._signal("changeFold",{data:l,action:"remove"})},this.removeFolds=function(l){for(var a=[],c=0;c<l.length;c++)a.push(l[c]);a.forEach(function(o){this.removeFold(o)},this),this.$modified=!0},this.expandFold=function(l){this.removeFold(l),l.subFolds.forEach(function(a){l.restoreRange(a),this.addFold(a)},this),l.collapseChildren>0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(a){this.expandFold(a)},this)},this.unfold=function(l,a){var c,o;if(l==null)c=new h(0,0,this.getLength(),0),a==null&&(a=!0);else if(typeof l=="number")c=new h(l,0,l,this.getLine(l).length);else if("row"in l)c=h.fromPoints(l,l);else{if(Array.isArray(l))return o=[],l.forEach(function(y){o=o.concat(this.unfold(y))},this),o;c=l}o=this.getFoldsInRangeList(c);for(var u=o;o.length==1&&h.comparePoints(o[0].start,c.start)<0&&h.comparePoints(o[0].end,c.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(c);if(a!=!1?this.removeFolds(o):this.expandFolds(o),u.length)return u},this.isRowFolded=function(l,a){return!!this.getFoldLine(l,a)},this.getRowFoldEnd=function(l,a){var c=this.getFoldLine(l,a);return c?c.end.row:l},this.getRowFoldStart=function(l,a){var c=this.getFoldLine(l,a);return c?c.start.row:l},this.getFoldDisplayLine=function(l,a,c,o,u){o==null&&(o=l.start.row),u==null&&(u=0),a==null&&(a=l.end.row),c==null&&(c=this.getLine(a).length);var y=this.doc,b="";return l.walk(function(x,E,C,k){if(!(E<o)){if(E==o){if(C<u)return;k=Math.max(u,k)}x!=null?b+=x:b+=y.getLine(E).substring(k,C)}},a,c),b},this.getDisplayLine=function(l,a,c,o){var u=this.getFoldLine(l);if(u)return this.getFoldDisplayLine(u,l,a,c,o);var y;return y=this.doc.getLine(l),y.substring(o||0,a||y.length)},this.$cloneFoldData=function(){var l=[];return l=this.$foldData.map(function(a){var c=a.folds.map(function(o){return o.clone()});return new p(l,c)}),l},this.toggleFold=function(l){var a=this.selection,c=a.getRange(),o,u;if(c.isEmpty()){var y=c.start;if(o=this.getFoldAt(y.row,y.column),o){this.expandFold(o);return}else(u=this.findMatchingBracket(y))?c.comparePoint(u)==1?c.end=u:(c.start=u,c.start.column++,c.end.column--):(u=this.findMatchingBracket({row:y.row,column:y.column+1}))?(c.comparePoint(u)==1?c.end=u:c.start=u,c.start.column++):c=this.getCommentFoldRange(y.row,y.column)||c}else{var b=this.getFoldsInRange(c);if(l&&b.length){this.expandFolds(b);return}else b.length==1&&(o=b[0])}if(o||(o=this.getFoldAt(c.start.row,c.start.column)),o&&o.range.toString()==c.toString()){this.expandFold(o);return}var x="...";if(!c.isMultiLine()){if(x=this.getTextRange(c),x.length<4)return;x=x.trim().substring(0,2)+".."}this.addFold(x,c)},this.getCommentFoldRange=function(l,a,c){var o=new d(this,l,a),u=o.getCurrentToken(),y=u&&u.type;if(u&&/^comment|string/.test(y)){y=y.match(/comment|string/)[0],y=="comment"&&(y+="|doc-start|\\.doc");var b=new RegExp(y),x=new h;if(c!=1){do u=o.stepBackward();while(u&&b.test(u.type));u=o.stepForward()}x.start.row=o.getCurrentTokenRow(),x.start.column=o.getCurrentTokenColumn()+u.value.length,o=new d(this,l,a);var E=this.getState(o.$row);if(c!=-1){var C=-1;do if(u=o.stepForward(),C==-1){var k=this.getState(o.$row);E.toString()!==k.toString()&&(C=o.$row)}else if(o.$row>C)break;while(u&&b.test(u.type));u=o.stepBackward()}else u=o.getCurrentToken();return x.end.row=o.getCurrentTokenRow(),x.end.column=o.getCurrentTokenColumn(),x}},this.foldAll=function(l,a,c,o){c==null&&(c=1e5);var u=this.foldWidgets;if(u){a=a||this.getLength(),l=l||0;for(var y=l;y<a;y++)if(u[y]==null&&(u[y]=this.getFoldWidget(y)),u[y]=="start"&&!(o&&!o(y))){var b=this.getFoldWidgetRange(y);b&&b.isMultiLine()&&b.end.row<=a&&b.start.row>=l&&(y=b.end.row,b.collapseChildren=c,this.addFold("...",b))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(a){for(var c=l.getTokens(a),o=0;o<c.length;o++){var u=c[o];if(!(u.type=="text"&&/^\s+$/.test(u.value)))return!!/comment/.test(u.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(l){if(!this.$foldStyles[l])throw new Error("invalid fold style: "+l+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=l){this.$foldStyle=l,l=="manual"&&this.unfold();var a=this.$foldMode;this.$setFolding(null),this.$setFolding(a)}},this.$setFolding=function(l){if(this.$foldMode!=l){if(this.$foldMode=l,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!l||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=l.getFoldWidget.bind(l,this,this.$foldStyle),this.getFoldWidgetRange=l.getFoldWidgetRange.bind(l,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(l,a){var c=this.foldWidgets;if(!c||a&&c[l])return{};for(var o=l-1,u;o>=0;){var y=c[o];if(y==null&&(y=c[o]=this.getFoldWidget(o)),y=="start"){var b=this.getFoldWidgetRange(o);if(u||(u=b),b&&b.end.row>=l)break}o--}return{range:o!==-1&&b,firstRange:u}},this.onFoldWidgetClick=function(l,a){a instanceof g&&(a=a.domEvent);var c={children:a.shiftKey,all:a.ctrlKey||a.metaKey,siblings:a.altKey},o=this.$toggleFoldWidget(l,c);if(!o){var u=a.target||a.srcElement;u&&/ace_fold-widget/.test(u.className)&&(u.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,a){if(this.getFoldWidget){var c=this.getFoldWidget(l),o=this.getLine(l),u=c==="end"?-1:1,y=this.getFoldAt(l,u===-1?0:o.length,u);if(y)return a.children||a.all?this.removeFold(y):this.expandFold(y),y;var b=this.getFoldWidgetRange(l,!0);if(b&&!b.isMultiLine()&&(y=this.getFoldAt(b.start.row,b.start.column,1),y&&b.isEqual(y.range)))return this.removeFold(y),y;if(a.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var E=x.range.start.row+1,C=x.range.end.row;this.foldAll(E,C,a.all?1e4:0)}else a.children?(C=b?b.end.row:this.getLength(),this.foldAll(l+1,C,a.all?1e4:0)):b&&(a.all&&(b.collapseChildren=1e4),this.addFold("...",b));return b}},this.toggleFoldWidget=function(l){var a=this.selection.getCursor().row;a=this.getRowFoldStart(a);var c=this.$toggleFoldWidget(a,{});if(!c){var o=this.getParentFoldRangeData(a,!0);if(c=o.range||o.firstRange,c){a=c.start.row;var u=this.getFoldAt(a,this.getLine(a).length,1);u?this.removeFold(u):this.addFold("...",c)}}},this.updateFoldWidgets=function(l){var a=l.start.row,c=l.end.row-a;if(c===0)this.foldWidgets[a]=null;else if(l.action=="remove")this.foldWidgets.splice(a,c+1,null);else{var o=Array(c+1);o.unshift(a,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(l){var a=l.data;a.first!=a.last&&this.foldWidgets.length>a.first&&this.foldWidgets.splice(a.first,this.foldWidgets.length)}}r.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(t,r,f){var h=t("../token_iterator").TokenIterator,p=t("../range").Range;function v(){this.findMatchingBracket=function(d,g){if(d.column==0)return null;var s=g||this.getLine(d.row).charAt(d.column-1);if(s=="")return null;var l=s.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],d):this.$findOpeningBracket(l[2],d):null},this.getBracketRange=function(d){var g=this.getLine(d.row),s=!0,l,a=g.charAt(d.column-1),c=a&&a.match(/([\(\[\{])|([\)\]\}])/);if(c||(a=g.charAt(d.column),d={row:d.row,column:d.column+1},c=a&&a.match(/([\(\[\{])|([\)\]\}])/),s=!1),!c)return null;if(c[1]){var o=this.$findClosingBracket(c[1],d);if(!o)return null;l=p.fromPoints(d,o),s||(l.end.column++,l.start.column--),l.cursor=l.end}else{var o=this.$findOpeningBracket(c[2],d);if(!o)return null;l=p.fromPoints(o,d),s||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(d,g){var s=this.getLine(d.row),l=/([\(\[\{])|([\)\]\}])/,a=!g&&s.charAt(d.column-1),c=a&&a.match(l);if(c||(a=(g===void 0||g)&&s.charAt(d.column),d={row:d.row,column:d.column+1},c=a&&a.match(l)),!c)return null;var o=new p(d.row,d.column-1,d.row,d.column),u=c[1]?this.$findClosingBracket(c[1],d):this.$findOpeningBracket(c[2],d);if(!u)return[o];var y=new p(u.row,u.column,u.row,u.column+1);return[o,y]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(d,g,s){var l=this.$brackets[d],a=1,c=new h(this,g.row,g.column),o=c.getCurrentToken();if(o||(o=c.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var u=g.column-c.getCurrentTokenColumn()-2,y=o.value;;){for(;u>=0;){var b=y.charAt(u);if(b==l){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:u+c.getCurrentTokenColumn()}}else b==d&&(a+=1);u-=1}do o=c.stepBackward();while(o&&!s.test(o.type));if(o==null)break;y=o.value,u=y.length-1}return null}},this.$findClosingBracket=function(d,g,s){var l=this.$brackets[d],a=1,c=new h(this,g.row,g.column),o=c.getCurrentToken();if(o||(o=c.stepForward()),!!o){s||(s=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var u=g.column-c.getCurrentTokenColumn();;){for(var y=o.value,b=y.length;u<b;){var x=y.charAt(u);if(x==l){if(a-=1,a==0)return{row:c.getCurrentTokenRow(),column:u+c.getCurrentTokenColumn()}}else x==d&&(a+=1);u+=1}do o=c.stepForward();while(o&&!s.test(o.type));if(o==null)break;u=0}return null}},this.getMatchingTags=function(d){var g=new h(this,d.row,d.column),s=this.$findTagName(g);if(s){var l=g.stepBackward();return l.value==="<"?this.$findClosingTag(g,s):this.$findOpeningTag(g,s)}},this.$findTagName=function(d){var g=d.getCurrentToken(),s=!1,l=!1;if(g&&g.type.indexOf("tag-name")===-1)do l?g=d.stepBackward():g=d.stepForward(),g&&(g.value==="/>"?l=!0:g.type.indexOf("tag-name")!==-1&&(s=!0));while(g&&!s);return g},this.$findClosingTag=function(d,g){var s,l=g.value,a=g.value,c=0,o=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);g=d.stepForward();var u=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length),y=!1;do{if(s=g,s.type.indexOf("tag-close")!==-1&&!y){var b=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);y=!0}if(g=d.stepForward(),g){if(g.value===">"&&!y){var b=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);y=!0}if(g.type.indexOf("tag-name")!==-1){if(l=g.value,a===l){if(s.value==="<")c++;else if(s.value==="</"&&(c--,c<0)){d.stepBackward();var x=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+2);g=d.stepForward();var E=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=d.stepForward()),g&&g.value===">")var C=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);else return}}}else if(a===l&&g.value==="/>"&&(c--,c<0))var x=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+2),E=x,C=E,b=new p(u.end.row,u.end.column,u.end.row,u.end.column+1)}}while(g&&c>=0);if(o&&b&&x&&C&&u&&E)return{openTag:new p(o.start.row,o.start.column,b.end.row,b.end.column),closeTag:new p(x.start.row,x.start.column,C.end.row,C.end.column),openTagName:u,closeTagName:E}},this.$findOpeningTag=function(d,g){var s=d.getCurrentToken(),l=g.value,a=0,c=d.getCurrentTokenRow(),o=d.getCurrentTokenColumn(),u=o+2,y=new p(c,o,c,u);d.stepForward();var b=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+g.value.length);if(g.type.indexOf("tag-close")===-1&&(g=d.stepForward()),!(!g||g.value!==">")){var x=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);d.stepBackward(),d.stepBackward();do if(g=s,c=d.getCurrentTokenRow(),o=d.getCurrentTokenColumn(),u=o+g.value.length,s=d.stepBackward(),g){if(g.type.indexOf("tag-name")!==-1){if(l===g.value)if(s.value==="<"){if(a++,a>0){var E=new p(c,o,c,u),C=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1);do g=d.stepForward();while(g&&g.value!==">");var k=new p(d.getCurrentTokenRow(),d.getCurrentTokenColumn(),d.getCurrentTokenRow(),d.getCurrentTokenColumn()+1)}}else s.value==="</"&&a--}else if(g.value==="/>"){for(var w=0,A=s;A;){if(A.type.indexOf("tag-name")!==-1&&A.value===l){a--;break}else if(A.value==="<")break;A=d.stepBackward(),w++}for(var L=0;L<w;L++)d.stepForward()}}while(s&&a<=0);if(C&&k&&y&&x&&E&&b)return{openTag:new p(C.start.row,C.start.column,k.end.row,k.end.column),closeTag:new p(y.start.row,y.start.column,x.end.row,x.end.column),openTagName:E,closeTagName:b}}}}r.BracketMatch=v}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/line_widgets","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(t,r,f){var h=t("./lib/oop"),p=t("./lib/lang"),v=t("./bidihandler").BidiHandler,d=t("./config"),g=t("./lib/event_emitter").EventEmitter,s=t("./selection").Selection,l=t("./mode/text").Mode,a=t("./range").Range,c=t("./line_widgets").LineWidgets,o=t("./document").Document,u=t("./background_tokenizer").BackgroundTokenizer,y=t("./search_highlight").SearchHighlight,b=t("./undomanager").UndoManager,x=function(){function S(_,$){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$editor=null,this.prevOp={},this.$foldData=[],this.id="session"+ ++S.$uid,this.$foldData.toString=function(){return this.join(`
197
+ `)},this.bgTokenizer=new u(new l().getTokenizer(),this);var R=this;this.bgTokenizer.on("update",function(O){R._signal("tokenizerUpdate",O)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof _!="object"||!_.getLine)&&(_=new o(_)),this.setDocument(_),this.selection=new s(this),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.selection.on("changeCursor",this.$onSelectionChange),this.$bidiHandler=new v(this),d.resetOptions(this),this.setMode($),d._signal("session",this),this.destroyed=!1,this.$initOperationListeners()}return S.prototype.$initOperationListeners=function(){var _=this;this.curOp=null,this.on("change",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.docChanged=!0},!0),this.on("changeSelection",function(){_.curOp||(_.startOperation(),_.curOp.selectionBefore=_.$lastSel),_.curOp.selectionChanged=!0},!0),this.$operationResetTimer=p.delayedCall(this.endOperation.bind(this,!0))},S.prototype.startOperation=function(_){if(this.curOp){if(!_||this.curOp.command)return;this.prevOp=this.curOp}_||(_={}),this.$operationResetTimer.schedule(),this.curOp={command:_.command||{},args:_.args},this.curOp.selectionBefore=this.selection.toJSON(),this._signal("startOperation",_)},S.prototype.endOperation=function(_){if(this.curOp){if(_&&_.returnValue===!1){this.curOp=null,this._signal("endOperation",_);return}if(_==!0&&this.curOp.command&&this.curOp.command.name=="mouse")return;var $=this.selection.toJSON();this.curOp.selectionAfter=$,this.$lastSel=this.selection.toJSON(),this.getUndoManager().addSelection($),this._signal("beforeEndOperation"),this.prevOp=this.curOp,this.curOp=null,this._signal("endOperation",_)}},S.prototype.setDocument=function(_){this.doc&&this.doc.off("change",this.$onChange),this.doc=_,_.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},S.prototype.getDocument=function(){return this.doc},Object.defineProperty(S.prototype,"widgetManager",{get:function(){var _=new c(this);return this.widgetManager=_,this.$editor&&_.attach(this.$editor),_},set:function(_){Object.defineProperty(this,"widgetManager",{writable:!0,enumerable:!0,configurable:!0,value:_})},enumerable:!1,configurable:!0}),S.prototype.$resetRowCache=function(_){if(!_){this.$docRowCache=[],this.$screenRowCache=[];return}var $=this.$docRowCache.length,R=this.$getRowCacheIndex(this.$docRowCache,_)+1;$>R&&(this.$docRowCache.splice(R,$),this.$screenRowCache.splice(R,$))},S.prototype.$getRowCacheIndex=function(_,$){for(var R=0,O=_.length-1;R<=O;){var F=R+O>>1,B=_[F];if($>B)R=F+1;else if($<B)O=F-1;else return F}return R-1},S.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},S.prototype.onChangeFold=function(_){var $=_.data;this.$resetRowCache($.start.row)},S.prototype.onChange=function(_){this.$modified=!0,this.$bidiHandler.onChange(_),this.$resetRowCache(_.start.row);var $=this.$updateInternalDataOnChange(_);!this.$fromUndo&&this.$undoManager&&($&&$.length&&(this.$undoManager.add({action:"removeFolds",folds:$},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(_,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(_),this._signal("change",_)},S.prototype.onSelectionChange=function(){this._signal("changeSelection")},S.prototype.setValue=function(_){this.doc.setValue(_),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},S.fromJSON=function(_){typeof _=="string"&&(_=JSON.parse(_));var $=new b;$.$undoStack=_.history.undo,$.$redoStack=_.history.redo,$.mark=_.history.mark,$.$rev=_.history.rev;var R=new S(_.value);return _.folds.forEach(function(O){R.addFold("...",a.fromPoints(O.start,O.end))}),R.setAnnotations(_.annotations),R.setBreakpoints(_.breakpoints),R.setMode(_.mode),R.setScrollLeft(_.scrollLeft),R.setScrollTop(_.scrollTop),R.setUndoManager($),R.selection.fromJSON(_.selection),R},S.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(_){return _.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},S.prototype.toString=function(){return this.doc.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.getState=function(_){return this.bgTokenizer.getState(_)},S.prototype.getTokens=function(_){return this.bgTokenizer.getTokens(_)},S.prototype.getTokenAt=function(_,$){var R=this.bgTokenizer.getTokens(_),O,F=0;if($==null){var B=R.length-1;F=this.getLine(_).length}else for(var B=0;B<R.length&&(F+=R[B].value.length,!(F>=$));B++);return O=R[B],O?(O.index=B,O.start=F-O.value.length,O):null},S.prototype.setUndoManager=function(_){if(this.$undoManager=_,this.$informUndoManager&&this.$informUndoManager.cancel(),_){var $=this;_.addSession(this),this.$syncInformUndoManager=function(){$.$informUndoManager.cancel(),$.mergeUndoDeltas=!1},this.$informUndoManager=p.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},S.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},S.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},S.prototype.getTabString=function(){return this.getUseSoftTabs()?p.stringRepeat(" ",this.getTabSize()):" "},S.prototype.setUseSoftTabs=function(_){this.setOption("useSoftTabs",_)},S.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},S.prototype.setTabSize=function(_){this.setOption("tabSize",_)},S.prototype.getTabSize=function(){return this.$tabSize},S.prototype.isTabStop=function(_){return this.$useSoftTabs&&_.column%this.$tabSize===0},S.prototype.setNavigateWithinSoftTabs=function(_){this.setOption("navigateWithinSoftTabs",_)},S.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},S.prototype.setOverwrite=function(_){this.setOption("overwrite",_)},S.prototype.getOverwrite=function(){return this.$overwrite},S.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},S.prototype.addGutterDecoration=function(_,$){this.$decorations[_]||(this.$decorations[_]=""),this.$decorations[_]+=" "+$,this._signal("changeBreakpoint",{})},S.prototype.removeGutterDecoration=function(_,$){this.$decorations[_]=(this.$decorations[_]||"").replace(" "+$,""),this._signal("changeBreakpoint",{})},S.prototype.getBreakpoints=function(){return this.$breakpoints},S.prototype.setBreakpoints=function(_){this.$breakpoints=[];for(var $=0;$<_.length;$++)this.$breakpoints[_[$]]="ace_breakpoint";this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},S.prototype.setBreakpoint=function(_,$){$===void 0&&($="ace_breakpoint"),$?this.$breakpoints[_]=$:delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.clearBreakpoint=function(_){delete this.$breakpoints[_],this._signal("changeBreakpoint",{})},S.prototype.addMarker=function(_,$,R,O){var F=this.$markerId++,B={range:_,type:R||"line",renderer:typeof R=="function"?R:null,clazz:$,inFront:!!O,id:F};return O?(this.$frontMarkers[F]=B,this._signal("changeFrontMarker")):(this.$backMarkers[F]=B,this._signal("changeBackMarker")),F},S.prototype.addDynamicMarker=function(_,$){if(_.update){var R=this.$markerId++;return _.id=R,_.inFront=!!$,$?(this.$frontMarkers[R]=_,this._signal("changeFrontMarker")):(this.$backMarkers[R]=_,this._signal("changeBackMarker")),_}},S.prototype.removeMarker=function(_){var $=this.$frontMarkers[_]||this.$backMarkers[_];if($){var R=$.inFront?this.$frontMarkers:this.$backMarkers;delete R[_],this._signal($.inFront?"changeFrontMarker":"changeBackMarker")}},S.prototype.getMarkers=function(_){return _?this.$frontMarkers:this.$backMarkers},S.prototype.highlight=function(_){if(!this.$searchHighlight){var $=new y(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker($)}this.$searchHighlight.setRegexp(_)},S.prototype.highlightLines=function(_,$,R,O){typeof $!="number"&&(R=$,$=_),R||(R="ace_step");var F=new a(_,0,$,1/0);return F.id=this.addMarker(F,R,"fullLine",O),F},S.prototype.setAnnotations=function(_){this.$annotations=_,this._signal("changeAnnotation",{})},S.prototype.getAnnotations=function(){return this.$annotations||[]},S.prototype.clearAnnotations=function(){this.setAnnotations([])},S.prototype.$detectNewLine=function(_){var $=_.match(/^.*?(\r?\n)/m);$?this.$autoNewLine=$[1]:this.$autoNewLine=`
198
+ `},S.prototype.getWordRange=function(_,$){var R=this.getLine(_),O=!1;if($>0&&(O=!!R.charAt($-1).match(this.tokenRe)),O||(O=!!R.charAt($).match(this.tokenRe)),O)var F=this.tokenRe;else if(/^\s+$/.test(R.slice($-1,$+1)))var F=/\s/;else var F=this.nonTokenRe;var B=$;if(B>0){do B--;while(B>=0&&R.charAt(B).match(F));B++}for(var W=$;W<R.length&&R.charAt(W).match(F);)W++;return new a(_,B,_,W)},S.prototype.getAWordRange=function(_,$){for(var R=this.getWordRange(_,$),O=this.getLine(R.end.row);O.charAt(R.end.column).match(/[ \t]/);)R.end.column+=1;return R},S.prototype.setNewLineMode=function(_){this.doc.setNewLineMode(_)},S.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},S.prototype.setUseWorker=function(_){this.setOption("useWorker",_)},S.prototype.getUseWorker=function(){return this.$useWorker},S.prototype.onReloadTokenizer=function(_){var $=_.data;this.bgTokenizer.start($.first),this._signal("tokenizerUpdate",_)},S.prototype.setMode=function(_,$){if(_&&typeof _=="object"){if(_.getTokenizer)return this.$onChangeMode(_);var R=_,O=R.path}else O=_||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[O]&&!R){this.$onChangeMode(this.$modes[O]),$&&$();return}this.$modeId=O,d.loadModule(["mode",O],(function(F){if(this.$modeId!==O)return $&&$();this.$modes[O]&&!R?this.$onChangeMode(this.$modes[O]):F&&F.Mode&&(F=new F.Mode(R),R||(this.$modes[O]=F,F.$id=O),this.$onChangeMode(F)),$&&$()}).bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},S.prototype.$onChangeMode=function(_,$){if($||(this.$modeId=_.$id),this.$mode!==_){var R=this.$mode;this.$mode=_,this.$stopWorker(),this.$useWorker&&this.$startWorker();var O=_.getTokenizer();if(O.on!==void 0){var F=this.onReloadTokenizer.bind(this);O.on("update",F)}this.bgTokenizer.setTokenizer(O),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=_.tokenRe,this.nonTokenRe=_.nonTokenRe,$||(_.attachToSession&&_.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(_.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:R,mode:_}))}},S.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},S.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(_){d.warn("Could not load worker",_),this.$worker=null}},S.prototype.getMode=function(){return this.$mode},S.prototype.setScrollTop=function(_){this.$scrollTop===_||isNaN(_)||(this.$scrollTop=_,this._signal("changeScrollTop",_))},S.prototype.getScrollTop=function(){return this.$scrollTop},S.prototype.setScrollLeft=function(_){this.$scrollLeft===_||isNaN(_)||(this.$scrollLeft=_,this._signal("changeScrollLeft",_))},S.prototype.getScrollLeft=function(){return this.$scrollLeft},S.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},S.prototype.getLineWidgetMaxWidth=function(){if(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var _=0;return this.lineWidgets.forEach(function($){$&&$.screenWidth>_&&(_=$.screenWidth)}),this.lineWidgetWidth=_},S.prototype.$computeWidth=function(_){if(this.$modified||_){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var $=this.doc.getAllLines(),R=this.$rowLengthCache,O=0,F=0,B=this.$foldData[F],W=B?B.start.row:1/0,V=$.length,q=0;q<V;q++){if(q>W){if(q=B.end.row+1,q>=V)break;B=this.$foldData[F++],W=B?B.start.row:1/0}R[q]==null&&(R[q]=this.$getStringScreenWidth($[q])[0]),R[q]>O&&(O=R[q])}this.screenWidth=O}},S.prototype.getLine=function(_){return this.doc.getLine(_)},S.prototype.getLines=function(_,$){return this.doc.getLines(_,$)},S.prototype.getLength=function(){return this.doc.getLength()},S.prototype.getTextRange=function(_){return this.doc.getTextRange(_||this.selection.getRange())},S.prototype.insert=function(_,$){return this.doc.insert(_,$)},S.prototype.remove=function(_){return this.doc.remove(_)},S.prototype.removeFullLines=function(_,$){return this.doc.removeFullLines(_,$)},S.prototype.undoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var R=_.length-1;R!=-1;R--){var O=_[R];O.action=="insert"||O.action=="remove"?this.doc.revertDelta(O):O.folds&&this.addFolds(O.folds)}!$&&this.$undoSelect&&(_.selectionBefore?this.selection.fromJSON(_.selectionBefore):this.selection.setRange(this.$getUndoSelection(_,!0))),this.$fromUndo=!1}},S.prototype.redoChanges=function(_,$){if(_.length){this.$fromUndo=!0;for(var R=0;R<_.length;R++){var O=_[R];(O.action=="insert"||O.action=="remove")&&this.doc.$safeApplyDelta(O)}!$&&this.$undoSelect&&(_.selectionAfter?this.selection.fromJSON(_.selectionAfter):this.selection.setRange(this.$getUndoSelection(_,!1))),this.$fromUndo=!1}},S.prototype.setUndoSelect=function(_){this.$undoSelect=_},S.prototype.$getUndoSelection=function(_,$){function R(V){return $?V.action!=="insert":V.action==="insert"}for(var O,F,B=0;B<_.length;B++){var W=_[B];if(W.start){if(!O){R(W)?O=a.fromPoints(W.start,W.end):O=a.fromPoints(W.start,W.start);continue}R(W)?(F=W.start,O.compare(F.row,F.column)==-1&&O.setStart(F),F=W.end,O.compare(F.row,F.column)==1&&O.setEnd(F)):(F=W.start,O.compare(F.row,F.column)==-1&&(O=a.fromPoints(W.start,W.start)))}}return O},S.prototype.replace=function(_,$){return this.doc.replace(_,$)},S.prototype.moveText=function(_,$,R){var O=this.getTextRange(_),F=this.getFoldsInRange(_),B=a.fromPoints($,$);if(!R){this.remove(_);var W=_.start.row-_.end.row,V=W?-_.end.column:_.start.column-_.end.column;V&&(B.start.row==_.end.row&&B.start.column>_.end.column&&(B.start.column+=V),B.end.row==_.end.row&&B.end.column>_.end.column&&(B.end.column+=V)),W&&B.start.row>=_.end.row&&(B.start.row+=W,B.end.row+=W)}if(B.end=this.insert(B.start,O),F.length){var q=_.start,X=B.start,W=X.row-q.row,V=X.column-q.column;this.addFolds(F.map(function(re){return re=re.clone(),re.start.row==q.row&&(re.start.column+=V),re.end.row==q.row&&(re.end.column+=V),re.start.row+=W,re.end.row+=W,re}))}return B},S.prototype.indentRows=function(_,$,R){R=R.replace(/\t/g,this.getTabString());for(var O=_;O<=$;O++)this.doc.insertInLine({row:O,column:0},R)},S.prototype.outdentRows=function(_){for(var $=_.collapseRows(),R=new a(0,0,0,0),O=this.getTabSize(),F=$.start.row;F<=$.end.row;++F){var B=this.getLine(F);R.start.row=F,R.end.row=F;for(var W=0;W<O&&B.charAt(W)==" ";++W);W<O&&B.charAt(W)==" "?(R.start.column=W,R.end.column=W+1):(R.start.column=0,R.end.column=W),this.remove(R)}},S.prototype.$moveLines=function(_,$,R){if(_=this.getRowFoldStart(_),$=this.getRowFoldEnd($),R<0){var O=this.getRowFoldStart(_+R);if(O<0)return 0;var F=O-_}else if(R>0){var O=this.getRowFoldEnd($+R);if(O>this.doc.getLength()-1)return 0;var F=O-$}else{_=this.$clipRowToDocument(_),$=this.$clipRowToDocument($);var F=$-_+1}var B=new a(_,0,$,Number.MAX_VALUE),W=this.getFoldsInRange(B).map(function(q){return q=q.clone(),q.start.row+=F,q.end.row+=F,q}),V=R==0?this.doc.getLines(_,$):this.doc.removeFullLines(_,$);return this.doc.insertFullLines(_+F,V),W.length&&this.addFolds(W),F},S.prototype.moveLinesUp=function(_,$){return this.$moveLines(_,$,-1)},S.prototype.moveLinesDown=function(_,$){return this.$moveLines(_,$,1)},S.prototype.duplicateLines=function(_,$){return this.$moveLines(_,$,0)},S.prototype.$clipRowToDocument=function(_){return Math.max(0,Math.min(_,this.doc.getLength()-1))},S.prototype.$clipColumnToRow=function(_,$){return $<0?0:Math.min(this.doc.getLine(_).length,$)},S.prototype.$clipPositionToDocument=function(_,$){if($=Math.max(0,$),_<0)_=0,$=0;else{var R=this.doc.getLength();_>=R?(_=R-1,$=this.doc.getLine(R-1).length):$=Math.min(this.doc.getLine(_).length,$)}return{row:_,column:$}},S.prototype.$clipRangeToDocument=function(_){_.start.row<0?(_.start.row=0,_.start.column=0):_.start.column=this.$clipColumnToRow(_.start.row,_.start.column);var $=this.doc.getLength()-1;return _.end.row>$?(_.end.row=$,_.end.column=this.doc.getLine($).length):_.end.column=this.$clipColumnToRow(_.end.row,_.end.column),_},S.prototype.setUseWrapMode=function(_){if(_!=this.$useWrapMode){if(this.$useWrapMode=_,this.$modified=!0,this.$resetRowCache(0),_){var $=this.getLength();this.$wrapData=Array($),this.$updateWrapData(0,$-1)}this._signal("changeWrapMode")}},S.prototype.getUseWrapMode=function(){return this.$useWrapMode},S.prototype.setWrapLimitRange=function(_,$){(this.$wrapLimitRange.min!==_||this.$wrapLimitRange.max!==$)&&(this.$wrapLimitRange={min:_,max:$},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},S.prototype.adjustWrapLimit=function(_,$){var R=this.$wrapLimitRange;R.max<0&&(R={min:$,max:$});var O=this.$constrainWrapLimit(_,R.min,R.max);return O!=this.$wrapLimit&&O>1?(this.$wrapLimit=O,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},S.prototype.$constrainWrapLimit=function(_,$,R){return $&&(_=Math.max($,_)),R&&(_=Math.min(R,_)),_},S.prototype.getWrapLimit=function(){return this.$wrapLimit},S.prototype.setWrapLimit=function(_){this.setWrapLimitRange(_,_)},S.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},S.prototype.$updateInternalDataOnChange=function(_){var $=this.$useWrapMode,R=_.action,O=_.start,F=_.end,B=O.row,W=F.row,V=W-B,q=null;if(this.$updating=!0,V!=0)if(R==="remove"){this[$?"$wrapData":"$rowLengthCache"].splice(B,V);var X=this.$foldData;q=this.getFoldsInRange(_),this.removeFolds(q);var G=this.getFoldLine(F.row),Z=0;if(G){G.addRemoveChars(F.row,F.column,O.column-F.column),G.shiftRow(-V);var re=this.getFoldLine(B);re&&re!==G&&(re.merge(G),G=re),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=F.row&&G.shiftRow(-V)}W=B}else{var J=Array(V);J.unshift(B,0);var ae=$?this.$wrapData:this.$rowLengthCache;ae.splice.apply(ae,J);var X=this.$foldData,G=this.getFoldLine(B),Z=0;if(G){var me=G.range.compareInside(O.row,O.column);me==0?(G=G.split(O.row,O.column),G&&(G.shiftRow(V),G.addRemoveChars(W,0,F.column-O.column))):me==-1&&(G.addRemoveChars(B,0,F.column-O.column),G.shiftRow(V)),Z=X.indexOf(G)+1}for(Z;Z<X.length;Z++){var G=X[Z];G.start.row>=B&&G.shiftRow(V)}}else{V=Math.abs(_.start.column-_.end.column),R==="remove"&&(q=this.getFoldsInRange(_),this.removeFolds(q),V=-V);var G=this.getFoldLine(B);G&&G.addRemoveChars(B,O.column,V)}return $&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,$?this.$updateWrapData(B,W):this.$updateRowLengthCache(B,W),q},S.prototype.$updateRowLengthCache=function(_,$){this.$rowLengthCache[_]=null,this.$rowLengthCache[$]=null},S.prototype.$updateWrapData=function(_,$){var R=this.doc.getAllLines(),O=this.getTabSize(),F=this.$wrapData,B=this.$wrapLimit,W,V,q=_;for($=Math.min($,R.length-1);q<=$;)V=this.getFoldLine(q,V),V?(W=[],V.walk((function(X,G,Z,re){var J;if(X!=null){J=this.$getDisplayTokens(X,W.length),J[0]=k;for(var ae=1;ae<J.length;ae++)J[ae]=w}else J=this.$getDisplayTokens(R[G].substring(re,Z),W.length);W=W.concat(J)}).bind(this),V.end.row,R[V.end.row].length+1),F[V.start.row]=this.$computeWrapSplits(W,B,O),q=V.end.row+1):(W=this.$getDisplayTokens(R[q]),F[q]=this.$computeWrapSplits(W,B,O),q++)},S.prototype.$computeWrapSplits=function(_,$,R){if(_.length==0)return[];var O=[],F=_.length,B=0,W=0,V=this.$wrapAsCode,q=this.$indentedSoftWrap,X=$<=Math.max(2*R,8)||q===!1?0:Math.floor($/2);function G(){var me=0;if(X===0)return me;if(q)for(var ve=0;ve<_.length;ve++){var pe=_[ve];if(pe==L)me+=1;else if(pe==I)me+=R;else{if(pe==T)continue;break}}return V&&q!==!1&&(me+=R),Math.min(me,X)}function Z(me){for(var ve=me-B,pe=B;pe<me;pe++){var Ce=_[pe];(Ce===12||Ce===2)&&(ve-=1)}O.length||(re=G(),O.indent=re),W+=ve,O.push(W),B=me}for(var re=0;F-B>$-re;){var J=B+$-re;if(_[J-1]>=L&&_[J]>=L){Z(J);continue}if(_[J]==k||_[J]==w){for(J;J!=B-1&&_[J]!=k;J--);if(J>B){Z(J);continue}for(J=B+$,J;J<_.length&&_[J]==w;J++);if(J==_.length)break;Z(J);continue}for(var ae=Math.max(J-($-($>>2)),B-1);J>ae&&_[J]<k;)J--;if(V){for(;J>ae&&_[J]<k;)J--;for(;J>ae&&_[J]==A;)J--}else for(;J>ae&&_[J]<L;)J--;if(J>ae){Z(++J);continue}J=B+$,_[J]==C&&J--,Z(J-re)}return O},S.prototype.$getDisplayTokens=function(_,$){var R=[],O;$=$||0;for(var F=0;F<_.length;F++){var B=_.charCodeAt(F);if(B==9){O=this.getScreenTabSize(R.length+$),R.push(I);for(var W=1;W<O;W++)R.push(T)}else B==32?R.push(L):B>39&&B<48||B>57&&B<64?R.push(A):B>=4352&&N(B)?R.push(E,C):R.push(E)}return R},S.prototype.$getStringScreenWidth=function(_,$,R){if($==0)return[0,0];$==null&&($=1/0),R=R||0;var O,F;for(F=0;F<_.length&&(O=_.charCodeAt(F),O==9?R+=this.getScreenTabSize(R):O>=4352&&N(O)?R+=2:R+=1,!(R>$));F++);return[R,F]},S.prototype.getRowLength=function(_){var $=1;return this.lineWidgets&&($+=this.lineWidgets[_]&&this.lineWidgets[_].rowCount||0),!this.$useWrapMode||!this.$wrapData[_]?$:this.$wrapData[_].length+$},S.prototype.getRowLineCount=function(_){return!this.$useWrapMode||!this.$wrapData[_]?1:this.$wrapData[_].length+1},S.prototype.getRowWrapIndent=function(_){if(this.$useWrapMode){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE),R=this.$wrapData[$.row];return R.length&&R[0]<$.column?R.indent:0}else return 0},S.prototype.getScreenLastRowColumn=function(_){var $=this.screenToDocumentPosition(_,Number.MAX_VALUE);return this.documentToScreenColumn($.row,$.column)},S.prototype.getDocumentLastRowColumn=function(_,$){var R=this.documentToScreenRow(_,$);return this.getScreenLastRowColumn(R)},S.prototype.getDocumentLastRowColumnPosition=function(_,$){var R=this.documentToScreenRow(_,$);return this.screenToDocumentPosition(R,Number.MAX_VALUE/10)},S.prototype.getRowSplitData=function(_){if(this.$useWrapMode)return this.$wrapData[_]},S.prototype.getScreenTabSize=function(_){return this.$tabSize-(_%this.$tabSize|0)},S.prototype.screenToDocumentRow=function(_,$){return this.screenToDocumentPosition(_,$).row},S.prototype.screenToDocumentColumn=function(_,$){return this.screenToDocumentPosition(_,$).column},S.prototype.screenToDocumentPosition=function(_,$,R){if(_<0)return{row:0,column:0};var O,Z=0,F=0,B,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],re=_>V[X-1];else var re=!X;for(var J=this.getLength()-1,ae=this.getNextFoldLine(Z),me=ae?ae.start.row:1/0;G<=_&&(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),re&&(this.$docRowCache.push(Z),this.$screenRowCache.push(G));if(ae&&ae.start.row<=Z)O=this.getFoldDisplayLine(ae),Z=ae.start.row;else{if(G+W<=_||Z>J)return{row:J,column:this.getLine(J).length};O=this.getLine(Z),ae=null}var ve=0,pe=Math.floor(_-G);if(this.$useWrapMode){var Ce=this.$wrapData[Z];Ce&&(B=Ce[pe],pe>0&&Ce.length&&(ve=Ce.indent,F=Ce[pe-1]||Ce[Ce.length-1],O=O.substring(F)))}return R!==void 0&&this.$bidiHandler.isBidiRow(G+pe,Z,pe)&&($=this.$bidiHandler.offsetToCol(R)),F+=this.$getStringScreenWidth(O,$-ve)[1],this.$useWrapMode&&F>=B&&(F=B-1),ae?ae.idxToPosition(F):{row:Z,column:F}},S.prototype.documentToScreenPosition=function(_,$){if(typeof $>"u")var R=this.$clipPositionToDocument(_.row,_.column);else R=this.$clipPositionToDocument(_,$);_=R.row,$=R.column;var G=0,O=null,F=null;F=this.getFoldAt(_,$,1),F&&(_=F.start.row,$=F.start.column);var B,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 re=this.getNextFoldLine(X),J=re?re.start.row:1/0;X<_;){if(X>=J){if(B=re.end.row+1,B>_)break;re=this.getNextFoldLine(B,re),J=re?re.start.row:1/0}else B=X+1;G+=this.getRowLength(X),X=B,Z&&(this.$docRowCache.push(X),this.$screenRowCache.push(G))}var ae="";re&&X>=J?(ae=this.getFoldDisplayLine(re,_,$),O=re.start.row):(ae=this.getLine(_).substring(0,$),O=_);var me=0;if(this.$useWrapMode){var ve=this.$wrapData[O];if(ve){for(var pe=0;ae.length>=ve[pe];)G++,pe++;ae=ae.substring(ve[pe-1]||0,ae.length),me=pe>0?ve.indent:0}}return this.lineWidgets&&this.lineWidgets[X]&&this.lineWidgets[X].rowsAbove&&(G+=this.lineWidgets[X].rowsAbove),{row:G,column:me+this.$getStringScreenWidth(ae)[0]}},S.prototype.documentToScreenColumn=function(_,$){return this.documentToScreenPosition(_,$).column},S.prototype.documentToScreenRow=function(_,$){return this.documentToScreenPosition(_,$).row},S.prototype.getScreenLength=function(){var _=0,$=null;if(this.$useWrapMode)for(var R=this.$wrapData.length,O=0,F=0,$=this.$foldData[F++],B=$?$.start.row:1/0;O<R;){var W=this.$wrapData[O];_+=W?W.length+1:1,O++,O>B&&(O=$.end.row+1,$=this.$foldData[F++],B=$?$.start.row:1/0)}else{_=this.getLength();for(var V=this.$foldData,F=0;F<V.length;F++)$=V[F],_-=$.end.row-$.start.row}return this.lineWidgets&&(_+=this.$getWidgetScreenLength()),_},S.prototype.$setFontMetrics=function(_){this.$enableVarChar&&(this.$getStringScreenWidth=function($,R,O){if(R===0)return[0,0];R||(R=1/0),O=O||0;var F,B;for(B=0;B<$.length&&(F=$.charAt(B),F===" "?O+=this.getScreenTabSize(O):O+=_.getCharacterWidth(F),!(O>R));B++);return[O,B]})},S.prototype.getPrecedingCharacter=function(){var _=this.selection.getCursor();if(_.column===0)return _.row===0?"":this.doc.getNewLineCharacter();var $=this.getLine(_.row);return $[_.column-1]},S.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},S}();x.$uid=0,x.prototype.$modes=d.$modes,x.prototype.getValue=x.prototype.toString,x.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},x.prototype.$overwrite=!1,x.prototype.$mode=null,x.prototype.$modeId=null,x.prototype.$scrollTop=0,x.prototype.$scrollLeft=0,x.prototype.$wrapLimit=80,x.prototype.$useWrapMode=!1,x.prototype.$wrapLimitRange={min:null,max:null},x.prototype.lineWidgets=null,x.prototype.isFullWidth=N,h.implement(x.prototype,g);var E=1,C=2,k=3,w=4,A=9,L=10,I=11,T=12;function N(S){return S<4352?!1:S>=4352&&S<=4447||S>=4515&&S<=4519||S>=4602&&S<=4607||S>=9001&&S<=9002||S>=11904&&S<=11929||S>=11931&&S<=12019||S>=12032&&S<=12245||S>=12272&&S<=12283||S>=12288&&S<=12350||S>=12353&&S<=12438||S>=12441&&S<=12543||S>=12549&&S<=12589||S>=12593&&S<=12686||S>=12688&&S<=12730||S>=12736&&S<=12771||S>=12784&&S<=12830||S>=12832&&S<=12871||S>=12880&&S<=13054||S>=13056&&S<=19903||S>=19968&&S<=42124||S>=42128&&S<=42182||S>=43360&&S<=43388||S>=44032&&S<=55203||S>=55216&&S<=55238||S>=55243&&S<=55291||S>=63744&&S<=64255||S>=65040&&S<=65049||S>=65072&&S<=65106||S>=65108&&S<=65126||S>=65128&&S<=65131||S>=65281&&S<=65376||S>=65504&&S<=65510}t("./edit_session/folding").Folding.call(x.prototype),t("./edit_session/bracket_match").BracketMatch.call(x.prototype),d.defineOptions(x.prototype,"session",{wrap:{set:function(S){if(!S||S=="off"?S=!1:S=="free"?S=!0:S=="printMargin"?S=-1:typeof S=="string"&&(S=parseInt(S,10)||!1),this.$wrap!=S)if(this.$wrap=S,!S)this.setUseWrapMode(!1);else{var _=typeof S=="number"?S:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(S){S=S=="auto"?this.$mode.type!="text":S!="text",S!=this.$wrapAsCode&&(this.$wrapAsCode=S,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(S){this.$useWorker=S,this.$stopWorker(),S&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(S){S=parseInt(S),S>0&&this.$tabSize!==S&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=S,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(S){this.setFoldStyle(S)},handlesSet:!0},overwrite:{set:function(S){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(S){this.doc.setNewLineMode(S)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(S){this.setMode(S)},get:function(){return this.$modeId},handlesSet:!0}}),r.EditSession=x}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(t,r,f){var h=t("./lib/lang"),p=t("./lib/oop"),v=t("./range").Range,d=function(){function s(){this.$options={}}return s.prototype.set=function(l){return p.mixin(this.$options,l),this},s.prototype.getOptions=function(){return h.copyObject(this.$options)},s.prototype.setOptions=function(l){this.$options=l},s.prototype.find=function(l){var a=this.$options,c=this.$matchIterator(l,a);if(!c)return!1;var o=null;return c.forEach(function(u,y,b,x){return o=new v(u,y,b,x),y==x&&a.start&&a.start.start&&a.skipCurrent!=!1&&o.isEqual(a.start)?(o=null,!1):!0}),o},s.prototype.findAll=function(l){var a=this.$options;if(!a.needle)return[];this.$assembleRegExp(a);var c=a.range,o=c?l.getLines(c.start.row,c.end.row):l.doc.getAllLines(),u=[],y=a.re;if(a.$isMultiLine){var b=y.length,x=o.length-b,E;e:for(var C=y.offset||0;C<=x;C++){for(var k=0;k<b;k++)if(o[C+k].search(y[k])==-1)continue e;var w=o[C],A=o[C+b-1],L=w.length-w.match(y[0])[0].length,I=A.match(y[b-1])[0].length;E&&E.end.row===C&&E.end.column>L||(u.push(E=new v(C,L,C+b-1,I)),b>2&&(C=C+b-2))}}else for(var T=0;T<o.length;T++)for(var N=h.getMatchOffsets(o[T],y),k=0;k<N.length;k++){var S=N[k];u.push(new v(T,S.offset,T,S.offset+S.length))}if(c){for(var _=c.start.column,$=c.end.column,T=0,k=u.length-1;T<k&&u[T].start.column<_&&u[T].start.row==0;)T++;for(var R=c.end.row-c.start.row;T<k&&u[k].end.column>$&&u[k].end.row==R;)k--;for(u=u.slice(T,k+1),T=0,k=u.length;T<k;T++)u[T].start.row+=c.start.row,u[T].end.row+=c.start.row}return u},s.prototype.replace=function(l,a){var c=this.$options,o=this.$assembleRegExp(c);if(c.$isMultiLine)return a;if(o){var u=o.exec(l);if(!u||u[0].length!=l.length)return null;if(c.regExp||(a=a.replace(/\$/g,"$$$$")),a=l.replace(o,a),c.preserveCase){a=a.split("");for(var y=Math.min(l.length,l.length);y--;){var b=l[y];b&&b.toLowerCase()!=b?a[y]=a[y].toUpperCase():a[y]=a[y].toLowerCase()}a=a.join("")}return a}},s.prototype.$assembleRegExp=function(l,a){if(l.needle instanceof RegExp)return l.re=l.needle;var c=l.needle;if(!l.needle)return l.re=!1;l.regExp||(c=h.escapeRegExp(c));var o=l.caseSensitive?"gm":"gmi";try{new RegExp(c,"u"),l.$supportsUnicodeFlag=!0,o+="u"}catch{l.$supportsUnicodeFlag=!1}if(l.wholeWord&&(c=g(c,l)),l.$isMultiLine=!a&&/[\n\r]/.test(c),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(c,o);try{var u=new RegExp(c,o)}catch{u=!1}return l.re=u},s.prototype.$assembleMultilineRegExp=function(l,a){for(var c=l.replace(/\r\n|\r|\n/g,`$
199
+ ^`).split(`
200
+ `),o=[],u=0;u<c.length;u++)try{o.push(new RegExp(c[u],a))}catch{return!1}return o},s.prototype.$matchIterator=function(l,a){var c=this.$assembleRegExp(a);if(!c)return!1;var o=a.backwards==!0,u=a.skipCurrent!=!1,y=c.unicode,b=a.range,x=a.start;x||(x=b?b[o?"end":"start"]:l.selection.getRange()),x.start&&(x=x[u!=o?"end":"start"]);var E=b?b.start.row:0,C=b?b.end.row:l.getLength()-1;if(o)var k=function(L){var I=x.row;if(!A(I,x.column,L)){for(I--;I>=E;I--)if(A(I,Number.MAX_VALUE,L))return;if(a.wrap!=!1){for(I=C,E=x.row;I>=E;I--)if(A(I,Number.MAX_VALUE,L))return}}};else var k=function(L){var I=x.row;if(!A(I,x.column,L)){for(I=I+1;I<=C;I++)if(A(I,0,L))return;if(a.wrap!=!1){for(I=E,C=x.row;I<=C;I++)if(A(I,0,L))return}}};if(a.$isMultiLine)var w=c.length,A=function(L,I,T){var N=o?L-w+1:L;if(!(N<0||N+w>l.getLength())){var S=l.getLine(N),_=S.search(c[0]);if(!(!o&&_<I||_===-1)){for(var $=1;$<w;$++)if(S=l.getLine(N+$),S.search(c[$])==-1)return;var R=S.match(c[w-1])[0].length;if(!(o&&R>I)&&T(N,_,N+w-1,R))return!0}}};else if(o)var A=function(L,I,T){var N=l.getLine(L),S=[],_,$=0;for(c.lastIndex=0;_=c.exec(N);){var R=_[0].length;if($=_.index,!R){if($>=N.length)break;c.lastIndex=$+=h.skipEmptyMatch(N,$,y)}if(_.index+R>I)break;S.push(_.index,R)}for(var O=S.length-1;O>=0;O-=2){var F=S[O-1],R=S[O];if(T(L,F,L,F+R))return!0}};else var A=function(L,I,T){var N=l.getLine(L),S,_;for(c.lastIndex=I;_=c.exec(N);){var $=_[0].length;if(S=_.index,T(L,S,L,S+$))return!0;if(!$&&(c.lastIndex=S+=h.skipEmptyMatch(N,S,y),S>=N.length))return!1}};return{forEach:k}},s}();function g(s,l){var a=h.supportsLookbehind();function c(b,x){x===void 0&&(x=!0);var E=a&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return E.test(b)||l.regExp?a&&l.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var o=Array.from(s),u=o[0],y=o[o.length-1];return c(u)+s+c(y,!1)}r.Search=d}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,f){var h=this&&this.__extends||function(){var a=function(c,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,y){u.__proto__=y}||function(u,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(u[b]=y[b])},a(c,o)};return function(c,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");a(c,o);function u(){this.constructor=c}c.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),p=t("../lib/keys"),v=t("../lib/useragent"),d=p.KEY_MODS,g=function(){function a(c,o){this.$init(c,o,!1)}return a.prototype.$init=function(c,o,u){this.platform=o||(v.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(c),this.$singleCommand=u},a.prototype.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},a.prototype.removeCommand=function(c,o){var u=c&&(typeof c=="string"?c:c.name);c=this.commands[u],o||delete this.commands[u];var y=this.commandKeyBinding;for(var b in y){var x=y[b];if(x==c)delete y[b];else if(Array.isArray(x)){var E=x.indexOf(c);E!=-1&&(x.splice(E,1),x.length==1&&(y[b]=x[0]))}}},a.prototype.bindKey=function(c,o,u){if(typeof c=="object"&&c&&(u==null&&(u=c.position),c=c[this.platform]),!!c){if(typeof o=="function")return this.addCommand({exec:o,bindKey:c,name:o.name||c});c.split("|").forEach(function(y){var b="";if(y.indexOf(" ")!=-1){var x=y.split(/\s+/);y=x.pop(),x.forEach(function(k){var w=this.parseKeys(k),A=d[w.hashId]+w.key;b+=(b?" ":"")+A,this._addCommandToBinding(b,"chainKeys")},this),b+=" "}var E=this.parseKeys(y),C=d[E.hashId]+E.key;this._addCommandToBinding(b+C,o,u)},this)}},a.prototype._addCommandToBinding=function(c,o,u){var y=this.commandKeyBinding,b;if(!o)delete y[c];else if(!y[c]||this.$singleCommand)y[c]=o;else{Array.isArray(y[c])?(b=y[c].indexOf(o))!=-1&&y[c].splice(b,1):y[c]=[y[c]],typeof u!="number"&&(u=s(o));var x=y[c];for(b=0;b<x.length;b++){var E=x[b],C=s(E);if(C>u)break}x.splice(b,0,o)}},a.prototype.addCommands=function(c){c&&Object.keys(c).forEach(function(o){var u=c[o];if(u){if(typeof u=="string")return this.bindKey(u,o);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=o),this.addCommand(u))}},this)},a.prototype.removeCommands=function(c){Object.keys(c).forEach(function(o){this.removeCommand(c[o])},this)},a.prototype.bindKeys=function(c){Object.keys(c).forEach(function(o){this.bindKey(o,c[o])},this)},a.prototype._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},a.prototype.parseKeys=function(c){var o=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(C){return C}),u=o.pop(),y=p[u];if(p.FUNCTION_KEYS[y])u=p.FUNCTION_KEYS[y].toLowerCase();else if(o.length){if(o.length==1&&o[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}else return{key:u,hashId:-1};for(var b=0,x=o.length;x--;){var E=p.KEY_MODS[o[x]];if(E==null)return typeof console<"u"&&console.error("invalid modifier "+o[x]+" in "+c),!1;b|=E}return{key:u,hashId:b}},a.prototype.findKeyCommand=function(c,o){var u=d[c]+o;return this.commandKeyBinding[u]},a.prototype.handleKeyboard=function(c,o,u,y){if(!(y<0)){var b=d[o]+u,x=this.commandKeyBinding[b];return c.$keyChain&&(c.$keyChain+=" "+b,x=this.commandKeyBinding[c.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(c.$keyChain=c.$keyChain||b,{command:"null"}):(c.$keyChain&&((!o||o==4)&&u.length==1?c.$keyChain=c.$keyChain.slice(0,-b.length-1):(o==-1||y>0)&&(c.$keyChain="")),{command:x})}},a.prototype.getStatusText=function(c,o){return o.$keyChain||""},a}();function s(a){return typeof a=="object"&&a.bindKey&&a.bindKey.position||(a.isDefault?-100:0)}var l=function(a){h(c,a);function c(o,u){var y=a.call(this,o,u)||this;return y.$singleCommand=!0,y}return c}(g);l.call=function(a,c,o){g.prototype.$init.call(a,c,o,!0)},g.call=function(a,c,o){g.prototype.$init.call(a,c,o,!1)},r.HashHandler=l,r.MultiHashHandler=g}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(t,r,f){var h=this&&this.__extends||function(){var s=function(l,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(c[u]=o[u])},s(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");s(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),p=t("../lib/oop"),v=t("../keyboard/hash_handler").MultiHashHandler,d=t("../lib/event_emitter").EventEmitter,g=function(s){h(l,s);function l(a,c){var o=s.call(this,c,a)||this;return o.byName=o.commands,o.setDefaultHandler("exec",function(u){return u.args?u.command.exec(u.editor,u.args,u.event,!1):u.command.exec(u.editor,{},u.event,!0)}),o}return l.prototype.exec=function(a,c,o){if(Array.isArray(a)){for(var u=a.length;u--;)if(this.exec(a[u],c,o))return!0;return!1}if(typeof a=="string"&&(a=this.commands[a]),!this.canExecute(a,c))return!1;var y={editor:c,command:a,args:o};return y.returnValue=this._emit("exec",y),this._signal("afterExec",y),y.returnValue!==!1},l.prototype.canExecute=function(a,c){return typeof a=="string"&&(a=this.commands[a]),!(!a||c&&c.$readOnly&&!a.readOnly||this.$checkCommandState!=!1&&a.isAvailable&&!a.isAvailable(c))},l.prototype.toggleRecording=function(a){if(!this.$inReplay)return a&&a._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(c){this.macro.push([c.command,c.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(a){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(a);try{this.$inReplay=!0,this.macro.forEach(function(c){typeof c=="string"?this.exec(c,a):this.exec(c[0],a,c[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(a){return a.map(function(c){return typeof c[0]!="string"&&(c[0]=c[0].name),c[1]||(c=c[0]),c})},l}(v);p.implement(g.prototype,d),r.CommandManager=g}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(t,r,f){var h=t("../lib/lang"),p=t("../config"),v=t("../range").Range;function d(s,l){return{win:s,mac:l}}r.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:d("Ctrl-,","Command-,"),exec:function(s){p.loadModule("ace/ext/settings_menu",function(l){l.init(s),s.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:d("Alt-E","F4"),exec:function(s){p.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:d("Alt-Shift-E","Shift-F4"),exec:function(s){p.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(s,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:d("Ctrl-A","Command-A"),exec:function(s){s.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:d(null,"Ctrl-L"),exec:function(s){s.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:d("Ctrl-L","Command-L"),exec:function(s,l){typeof l=="number"&&!isNaN(l)&&s.gotoLine(l),s.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:d("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(s){s.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:d("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(s){s.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:d("F2","F2"),exec:function(s){s.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:d("Alt-F2","Alt-F2"),exec:function(s){s.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:d(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:d(null,"Ctrl-Command-Option-0"),exec:function(s){s.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:d("Alt-0","Command-Option-0"),exec:function(s){s.session.foldAll(),s.session.unfold(s.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:d("Alt-Shift-0","Command-Option-Shift-0"),exec:function(s){s.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:d("Ctrl-K","Command-G"),exec:function(s){s.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:d("Ctrl-Shift-K","Command-Shift-G"),exec:function(s){s.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:d("Alt-K","Ctrl-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:d("Alt-Shift-K","Ctrl-Shift-G"),exec:function(s){s.selection.isEmpty()?s.selection.selectWord():s.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:d("Ctrl-F","Command-F"),exec:function(s){p.loadModule("ace/ext/searchbox",function(l){l.Search(s)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(s){s.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:d("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(s){s.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:d("Ctrl-Home","Command-Home|Command-Up"),exec:function(s){s.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:d("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(s){s.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:d("Up","Up|Ctrl-P"),exec:function(s,l){s.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:d("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(s){s.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:d("Ctrl-End","Command-End|Command-Down"),exec:function(s){s.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:d("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(s){s.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:d("Down","Down|Ctrl-N"),exec:function(s,l){s.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:d("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(s){s.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:d("Ctrl-Left","Option-Left"),exec:function(s){s.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:d("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:d("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(s){s.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:d("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(s){s.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:d("Left","Left|Ctrl-B"),exec:function(s,l){s.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:d("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(s){s.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:d("Ctrl-Right","Option-Right"),exec:function(s){s.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:d("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:d("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(s){s.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:d("Shift-Right","Shift-Right"),exec:function(s){s.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:d("Right","Right|Ctrl-F"),exec:function(s,l){s.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(s){s.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:d(null,"Option-PageDown"),exec:function(s){s.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:d("PageDown","PageDown|Ctrl-V"),exec:function(s){s.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(s){s.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:d(null,"Option-PageUp"),exec:function(s){s.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(s){s.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:d("Ctrl-Up",null),exec:function(s){s.renderer.scrollBy(0,-2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:d("Ctrl-Down",null),exec:function(s){s.renderer.scrollBy(0,2*s.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(s){s.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(s){s.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:d("Ctrl-Alt-E","Command-Option-E"),exec:function(s){s.commands.toggleRecording(s)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:d("Ctrl-Shift-E","Command-Shift-E"),exec:function(s){s.commands.replay(s)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:d("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(s){s.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:d("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(s){s.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:d("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(s){s.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:d(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(s){},readOnly:!0},{name:"cut",description:"Cut",exec:function(s){var l=s.$copyWithEmptySelection&&s.selection.isEmpty(),a=l?s.selection.getLineRange():s.selection.getRange();s._emit("cut",a),a.isEmpty()||s.session.remove(a),s.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(s,l){s.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:d("Ctrl-D","Command-D"),exec:function(s){s.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:d("Ctrl-Shift-D","Command-Shift-D"),exec:function(s){s.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:d("Ctrl-Alt-S","Command-Alt-S"),exec:function(s){s.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:d("Ctrl-/","Command-/"),exec:function(s){s.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:d("Ctrl-Shift-/","Command-Shift-/"),exec:function(s){s.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:d("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(s){s.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:d("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(s){s.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:d("Ctrl-H","Command-Option-F"),exec:function(s){p.loadModule("ace/ext/searchbox",function(l){l.Search(s,!0)})}},{name:"undo",description:"Undo",bindKey:d("Ctrl-Z","Command-Z"),exec:function(s){s.undo()}},{name:"redo",description:"Redo",bindKey:d("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(s){s.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:d("Alt-Shift-Up","Command-Option-Up"),exec:function(s){s.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:d("Alt-Up","Option-Up"),exec:function(s){s.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:d("Alt-Shift-Down","Command-Option-Down"),exec:function(s){s.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:d("Alt-Down","Option-Down"),exec:function(s){s.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:d("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(s){s.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:d("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(s){s.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:d("Shift-Delete",null),exec:function(s){if(s.selection.isEmpty())s.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:d("Alt-Backspace","Command-Backspace"),exec:function(s){s.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:d("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(s){s.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:d("Ctrl-Shift-Backspace",null),exec:function(s){var l=s.selection.getRange();l.start.column=0,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:d("Ctrl-Shift-Delete",null),exec:function(s){var l=s.selection.getRange();l.end.column=Number.MAX_VALUE,s.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:d("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(s){s.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:d("Ctrl-Delete","Alt-Delete"),exec:function(s){s.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:d("Shift-Tab","Shift-Tab"),exec:function(s){s.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:d("Tab","Tab"),exec:function(s){s.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:d("Ctrl-[","Ctrl-["),exec:function(s){s.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:d("Ctrl-]","Ctrl-]"),exec:function(s){s.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(s,l){s.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(s,l){s.insert(h.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:d(null,"Ctrl-O"),exec:function(s){s.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:d("Alt-Shift-X","Ctrl-T"),exec:function(s){s.transposeLetters()},multiSelectAction:function(s){s.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:d("Ctrl-U","Ctrl-U"),exec:function(s){s.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:d("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(s){s.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:d(null,null),exec:function(s){s.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:d("Ctrl-Shift-L","Command-Shift-L"),exec:function(s){var l=s.selection.getRange();l.start.column=l.end.column=0,l.end.row++,s.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:d("Ctrl+F3","F3"),exec:function(s){s.openLink()}},{name:"joinlines",description:"Join lines",bindKey:d(null,null),exec:function(s){for(var l=s.selection.isBackwards(),a=l?s.selection.getSelectionLead():s.selection.getSelectionAnchor(),c=l?s.selection.getSelectionAnchor():s.selection.getSelectionLead(),o=s.session.doc.getLine(a.row).length,u=s.session.doc.getTextRange(s.selection.getRange()),y=u.replace(/\n\s*/," ").length,b=s.session.doc.getLine(a.row),x=a.row+1;x<=c.row+1;x++){var E=h.stringTrimLeft(h.stringTrimRight(s.session.doc.getLine(x)));E.length!==0&&(E=" "+E),b+=E}c.row+1<s.session.doc.getLength()-1&&(b+=s.session.doc.getNewLineCharacter()),s.clearSelection(),s.session.doc.replace(new v(a.row,0,c.row+2,0),b),y>0?(s.selection.moveCursorTo(a.row,a.column),s.selection.selectTo(a.row,a.column+y)):(o=s.session.doc.getLine(a.row).length>o?o+1:o,s.selection.moveCursorTo(a.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:d(null,null),exec:function(s){var l=s.session.doc.getLength()-1,a=s.session.doc.getLine(l).length,c=s.selection.rangeList.ranges,o=[];c.length<1&&(c=[s.selection.getRange()]);for(var u=0;u<c.length;u++)u==c.length-1&&(c[u].end.row===l&&c[u].end.column===a||o.push(new v(c[u].end.row,c[u].end.column,l,a))),u===0?c[u].start.row===0&&c[u].start.column===0||o.push(new v(0,0,c[u].start.row,c[u].start.column)):o.push(new v(c[u-1].end.row,c[u-1].end.column,c[u].start.row,c[u].start.column));s.exitMultiSelectMode(),s.clearSelection();for(var u=0;u<o.length;u++)s.selection.addRange(o[u],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(s){s.selection.clearSelection(),s.navigateLineEnd(),s.insert(`
201
+ `)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(s){s.selection.clearSelection();var l=s.getCursorPosition();s.selection.moveTo(l.row-1,Number.MAX_VALUE),s.insert(`
202
+ `),l.row===0&&s.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(s){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),s.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:d("F1","F1"),exec:function(s){s.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:d(null,null),exec:function(s){s.prompt({$type:"modes"})},readOnly:!0}];for(var g=1;g<9;g++)r.commands.push({name:"foldToLevel"+g,description:"Fold To Level "+g,level:g,exec:function(s){s.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(t,r,f){var h=t("../lib/keys"),p=t("../mouse/default_gutter_handler").GutterTooltip,v=function(){function g(s){this.editor=s,this.gutterLayer=s.renderer.$gutterLayer,this.element=s.renderer.$gutter,this.lines=s.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new p(this.editor)}return g.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},g.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},g.prototype.$onGutterKeyDown=function(s){if(this.annotationTooltip.isOpen){s.preventDefault(),s.keyCode===h.escape&&this.annotationTooltip.hideTooltip();return}if(s.target===this.element){if(s.keyCode!=h.enter)return;s.preventDefault();var l=this.editor.getCursorPosition().row;this.editor.isRowVisible(l)||this.editor.scrollToLine(l,!0,!0),setTimeout((function(){var a=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),c=this.$findNearestFoldWidget(a),o=this.$findNearestAnnotation(a);if(!(c===null&&o===null)){if(c===null&&o!==null){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(c!==null&&o===null){this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(o-a)<Math.abs(c-a)){this.activeRowIndex=o,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}else{this.activeRowIndex=c,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}}}).bind(this),10);return}this.$handleGutterKeyboardInteraction(s),setTimeout((function(){this.editor._signal("gutterkeydown",new d(s,this))}).bind(this),10)},g.prototype.$handleGutterKeyboardInteraction=function(s){if(s.keyCode===h.tab){s.preventDefault();return}if(s.keyCode===h.escape){s.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;return}if(s.keyCode===h.up){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp();break}return}if(s.keyCode===h.down){switch(s.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown();break}return}if(s.keyCode===h.left){s.preventDefault(),this.$switchLane("annotation");return}if(s.keyCode===h.right){s.preventDefault(),this.$switchLane("fold");return}if(s.keyCode===h.enter||s.keyCode===h.space){switch(s.preventDefault(),this.activeLane){case"fold":if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="start"){var l=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),s),setTimeout((function(){this.$rowIndexToRow(this.activeRowIndex)!==l&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(l),this.$focusFoldWidget(this.activeRowIndex))}).bind(this),10);break}else if(this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]==="end")break;return;case"annotation":var a=this.lines.cells[this.activeRowIndex].element.childNodes[2],c=a.getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=c.right+"px",o.top=c.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex));break}return}},g.prototype.$blurGutter=function(){if(this.activeRowIndex!==null)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex);break}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},g.prototype.$isFoldWidgetVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getFoldWidget(s).style.display!=="none";return l&&a},g.prototype.$isAnnotationVisible=function(s){var l=this.editor.isRowFullyVisible(this.$rowIndexToRow(s)),a=this.$getAnnotation(s).style.display!=="none";return l&&a},g.prototype.$getFoldWidget=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[1]},g.prototype.$getAnnotation=function(s){var l=this.lines.get(s),a=l.element;return a.childNodes[2]},g.prototype.$findNearestFoldWidget=function(s){if(this.$isFoldWidgetVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isFoldWidgetVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(s+l))return s+l}return null},g.prototype.$findNearestAnnotation=function(s){if(this.$isAnnotationVisible(s))return s;for(var l=0;s-l>0||s+l<this.lines.getLength()-1;){if(l++,s-l>=0&&this.$isAnnotationVisible(s-l))return s-l;if(s+l<=this.lines.getLength()-1&&this.$isAnnotationVisible(s+l))return s+l}return null},g.prototype.$focusFoldWidget=function(s){if(s!=null){var l=this.$getFoldWidget(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},g.prototype.$focusAnnotation=function(s){if(s!=null){var l=this.$getAnnotation(s);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},g.prototype.$blurFoldWidget=function(s){var l=this.$getFoldWidget(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},g.prototype.$blurAnnotation=function(s){var l=this.$getAnnotation(s);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},g.prototype.$moveFoldWidgetUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveFoldWidgetDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isFoldWidgetVisible(s)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=s,this.$focusFoldWidget(this.activeRowIndex);return}},g.prototype.$moveAnnotationUp=function(){for(var s=this.activeRowIndex;s>0;)if(s--,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$moveAnnotationDown=function(){for(var s=this.activeRowIndex;s<this.lines.getLength()-1;)if(s++,this.$isAnnotationVisible(s)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=s,this.$focusAnnotation(this.activeRowIndex);return}},g.prototype.$switchLane=function(s){switch(s){case"annotation":if(this.activeLane==="annotation")break;var l=this.$findNearestAnnotation(this.activeRowIndex);if(l==null)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=l,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if(this.activeLane==="fold")break;var a=this.$findNearestFoldWidget(this.activeRowIndex);if(a==null)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=a,this.$focusFoldWidget(this.activeRowIndex);break}},g.prototype.$rowIndexToRow=function(s){var l=this.lines.get(s);return l?l.row:null},g.prototype.$rowToRowIndex=function(s){for(var l=0;l<this.lines.getLength();l++){var a=this.lines.get(l);if(a.row==s)return l}return null},g}();r.GutterKeyboardHandler=v;var d=function(){function g(s,l){this.gutterKeyboardHandler=l,this.domEvent=s}return g.prototype.getKey=function(){return h.keyCodeToString(this.domEvent.keyCode)},g.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},g.prototype.isInAnnotationLane=function(){return this.gutterKeyboardHandler.activeLane==="annotation"},g.prototype.isInFoldLane=function(){return this.gutterKeyboardHandler.activeLane==="fold"},g}();r.GutterKeyboardEvent=d}),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(t,r,f){var h=this&&this.__values||function(S){var _=typeof Symbol=="function"&&Symbol.iterator,$=_&&S[_],R=0;if($)return $.call(S);if(S&&typeof S.length=="number")return{next:function(){return S&&R>=S.length&&(S=void 0),{value:S&&S[R++],done:!S}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},p=t("./lib/oop"),v=t("./lib/dom"),d=t("./lib/lang"),g=t("./lib/useragent"),s=t("./keyboard/textinput").TextInput,l=t("./mouse/mouse_handler").MouseHandler,a=t("./mouse/fold_handler").FoldHandler,c=t("./keyboard/keybinding").KeyBinding,o=t("./edit_session").EditSession,u=t("./search").Search,y=t("./range").Range,b=t("./lib/event_emitter").EventEmitter,x=t("./commands/command_manager").CommandManager,E=t("./commands/default_commands").commands,C=t("./config"),k=t("./token_iterator").TokenIterator,w=t("./keyboard/gutter_handler").GutterKeyboardHandler,A=t("./config").nls,L=t("./clipboard"),I=t("./lib/keys"),T=function(){function S(_,$,R){this.session,this.$toDestroy=[];var O=_.getContainerElement();this.container=O,this.renderer=_,this.id="editor"+ ++S.$uid,this.commands=new x(g.isMac?"mac":"win",E),typeof document=="object"&&(this.textInput=new s(_.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new a(this)),this.keyBinding=new c(this),this.$search=new u().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=d.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(F,B){B._$emitInputEvent.schedule(31)}),this.setSession($||R&&R.session||new o("")),C.resetOptions(this),R&&this.setOptions(R),C._signal("editor",this)}return S.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},S.prototype.startOperation=function(_){this.session.startOperation(_)},S.prototype.endOperation=function(_){this.session.endOperation(_)},S.prototype.onStartOperation=function(_){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,_||(this.previousCommand=null)},S.prototype.onEndOperation=function(_){if(this.curOp&&this.session){if(_&&_.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var $=this.curOp.command,R=$&&$.scrollIntoView;if(R){switch(R){case"center-animate":R="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var O=this.selection.getRange(),F=this.renderer.layerConfig;(O.start.row>=F.lastRow||O.end.row<=F.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}R=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},S.prototype.$historyTracker=function(_){if(this.$mergeUndoDeltas){var $=this.prevOp,R=this.$mergeableCommands,O=$.command&&_.command.name==$.command.name;if(_.command.name=="insertstring"){var F=_.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),O=O&&this.mergeNextCommand&&(!/\s/.test(F)||/\s/.test($.args)),this.mergeNextCommand=!0}else O=O&&R.indexOf(_.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(O=!1),O?this.session.mergeUndoDeltas=!0:R.indexOf(_.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},S.prototype.setKeyboardHandler=function(_,$){if(_&&typeof _=="string"&&_!="ace"){this.$keybindingId=_;var R=this;C.loadModule(["keybinding",_],function(O){R.$keybindingId==_&&R.keyBinding.setKeyboardHandler(O&&O.handler),$&&$()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(_),$&&$()},S.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},S.prototype.setSession=function(_){if(this.session!=_){this.curOp&&this.endOperation(),this.curOp={};var $=this.session;if($){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var R=this.session.getSelection();R.off("changeCursor",this.$onCursorChange),R.off("changeSelection",this.$onSelectionChange)}this.session=_,_?(this.$onDocumentChange=this.onDocumentChange.bind(this),_.on("change",this.$onDocumentChange),this.renderer.setSession(_),this.$onChangeMode=this.onChangeMode.bind(this),_.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),_.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),_.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),_.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),_.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),_.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=_.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(_)),this._signal("changeSession",{session:_,oldSession:$}),this.curOp=null,$&&$._signal("changeEditor",{oldEditor:this}),$&&($.$editor=null),_&&_._signal("changeEditor",{editor:this}),_&&(_.$editor=this),_&&!_.destroyed&&_.bgTokenizer.scheduleStart()}},S.prototype.getSession=function(){return this.session},S.prototype.setValue=function(_,$){return this.session.doc.setValue(_),$?$==1?this.navigateFileEnd():$==-1&&this.navigateFileStart():this.selectAll(),_},S.prototype.getValue=function(){return this.session.getValue()},S.prototype.getSelection=function(){return this.selection},S.prototype.resize=function(_){this.renderer.onResize(_)},S.prototype.setTheme=function(_,$){this.renderer.setTheme(_,$)},S.prototype.getTheme=function(){return this.renderer.getTheme()},S.prototype.setStyle=function(_){this.renderer.setStyle(_)},S.prototype.unsetStyle=function(_){this.renderer.unsetStyle(_)},S.prototype.getFontSize=function(){return this.getOption("fontSize")||v.computedStyle(this.container).fontSize},S.prototype.setFontSize=function(_){this.setOption("fontSize",_)},S.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var _=this;this.$highlightPending=!0,setTimeout(function(){_.$highlightPending=!1;var $=_.session;if(!(!$||$.destroyed)){$.$bracketHighlight&&($.$bracketHighlight.markerIds.forEach(function(G){$.removeMarker(G)}),$.$bracketHighlight=null);var R=_.getCursorPosition(),O=_.getKeyboardHandler(),F=O&&O.$getDirectionForHighlight&&O.$getDirectionForHighlight(_),B=$.getMatchingBracketRanges(R,F);if(!B){var W=new k($,R.row,R.column),V=W.getCurrentToken();if(V&&/\b(?:tag-open|tag-name)/.test(V.type)){var q=$.getMatchingTags(R);q&&(B=[q.openTagName.isEmpty()?q.openTag:q.openTagName,q.closeTagName.isEmpty()?q.closeTag:q.closeTagName])}}if(!B&&$.$mode.getMatching&&(B=$.$mode.getMatching(_.session)),!B){_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide();return}var X="ace_bracket";Array.isArray(B)?B.length==1&&(X="ace_error_bracket"):B=[B],B.length==2&&(y.comparePoints(B[0].end,B[1].start)==0?B=[y.fromPoints(B[0].start,B[1].end)]:y.comparePoints(B[0].start,B[1].end)==0&&(B=[y.fromPoints(B[1].start,B[0].end)])),$.$bracketHighlight={ranges:B,markerIds:B.map(function(G){return $.addMarker(G,X,"text")})},_.getHighlightIndentGuides()&&_.renderer.$textLayer.$highlightIndentGuide()}},50)}},S.prototype.focus=function(){this.textInput.focus()},S.prototype.isFocused=function(){return this.textInput.isFocused()},S.prototype.blur=function(){this.textInput.blur()},S.prototype.onFocus=function(_){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",_))},S.prototype.onBlur=function(_){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",_))},S.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},S.prototype.onDocumentChange=function(_){var $=this.session.$useWrapMode,R=_.start.row==_.end.row?_.end.row:1/0;this.renderer.updateLines(_.start.row,R,$),this._signal("change",_),this.$cursorChange()},S.prototype.onTokenizerUpdate=function(_){var $=_.data;this.renderer.updateLines($.first,$.last)},S.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},S.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},S.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},S.prototype.$updateHighlightActiveLine=function(){var _=this.getSession(),$;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&($=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&($=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&($=!1)),_.$highlightLineMarker&&!$)_.removeMarker(_.$highlightLineMarker.id),_.$highlightLineMarker=null;else if(!_.$highlightLineMarker&&$){var R=new y($.row,$.column,$.row,1/0);R.id=_.addMarker(R,"ace_active-line","screenLine"),_.$highlightLineMarker=R}else $&&(_.$highlightLineMarker.start.row=$.row,_.$highlightLineMarker.end.row=$.row,_.$highlightLineMarker.start.column=$.column,_._signal("changeBackMarker"))},S.prototype.onSelectionChange=function(_){var $=this.session;if($.$selectionMarker&&$.removeMarker($.$selectionMarker),$.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var R=this.selection.getRange(),O=this.getSelectionStyle();$.$selectionMarker=$.addMarker(R,"ace_selection",O)}var F=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(F),this._signal("changeSelection")},S.prototype.$getSelectionHighLightRegexp=function(){var _=this.session,$=this.getSelectionRange();if(!($.isEmpty()||$.isMultiLine())){var R=$.start.column,O=$.end.column,F=_.getLine($.start.row),B=F.substring(R,O);if(!(B.length>5e3||!/[\w\d]/.test(B))){var W=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:B}),V=F.substring(R-1,O+1);if(W.test(V))return W}}},S.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},S.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},S.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},S.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},S.prototype.onChangeMode=function(_){this.renderer.updateText(),this._emit("changeMode",_)},S.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},S.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},S.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},S.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},S.prototype.getCopyText=function(){var _=this.getSelectedText(),$=this.session.doc.getNewLineCharacter(),R=!1;if(!_&&this.$copyWithEmptySelection){R=!0;for(var O=this.selection.getAllRanges(),F=0;F<O.length;F++){var B=O[F];F&&O[F-1].start.row==B.start.row||(_+=this.session.getLine(B.start.row)+$)}}var W={text:_};return this._signal("copy",W),L.lineMode=R?W.text:!1,W.text},S.prototype.onCopy=function(){this.commands.exec("copy",this)},S.prototype.onCut=function(){this.commands.exec("cut",this)},S.prototype.onPaste=function(_,$){var R={text:_,event:$};this.commands.exec("paste",this,R)},S.prototype.$handlePaste=function(_){typeof _=="string"&&(_={text:_}),this._signal("paste",_);var $=_.text,R=$===L.lineMode,O=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)R?O.insert({row:this.selection.lead.row,column:0},$):this.insert($);else if(R)this.selection.rangeList.ranges.forEach(function(X){O.insert({row:X.start.row,column:0},$)});else{var F=$.split(/\r\n|\r|\n/),B=this.selection.rangeList.ranges,W=F.length==2&&(!F[0]||!F[1]);if(F.length!=B.length||W)return this.commands.exec("insertstring",this,$);for(var V=B.length;V--;){var q=B[V];q.isEmpty()||O.remove(q),O.insert(q.start,F[V])}}},S.prototype.execCommand=function(_,$){return this.commands.exec(_,this,$)},S.prototype.insert=function(_,$){var R=this.session,O=R.getMode(),F=this.getCursorPosition();if(this.getBehavioursEnabled()&&!$){var B=O.transformAction(R.getState(F.row),"insertion",this,R,_);B&&(_!==B.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),_=B.text)}if(_==" "&&(_=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&_.indexOf(`
203
+ `)==-1){var W=y.fromPoints(F,F);W.end.column+=_.length,this.session.remove(W)}}else{var W=this.getSelectionRange();F=this.session.remove(W),this.clearSelection()}if(_==`
204
+ `||_==`\r
205
+ `){var G=R.getLine(F.row);if(F.column>G.search(/\S|$/)){var V=G.substr(F.column).search(/\S|$/);R.doc.removeInLine(F.row,F.column,F.column+V)}}this.clearSelection();var q=F.column,X=R.getState(F.row),G=R.getLine(F.row),Z=O.checkOutdent(X,G,_);if(R.insert(F,_),B&&B.selection&&(B.selection.length==2?this.selection.setSelectionRange(new y(F.row,q+B.selection[0],F.row,q+B.selection[1])):this.selection.setSelectionRange(new y(F.row+B.selection[0],B.selection[1],F.row+B.selection[2],B.selection[3]))),this.$enableAutoIndent){if(R.getDocument().isNewLine(_)){var re=O.getNextLineIndent(X,G.slice(0,F.column),R.getTabString());R.insert({row:F.row+1,column:0},re)}Z&&O.autoOutdent(X,R,F.row)}},S.prototype.autoIndent=function(){for(var _=this.session,$=_.getMode(),R=this.selection.isEmpty()?[new y(0,0,_.doc.getLength()-1,0)]:this.selection.getAllRanges(),O="",F="",B="",W=_.getTabString(),V=0;V<R.length;V++)for(var q=R[V].start.row,X=R[V].end.row,G=q;G<=X;G++){G>0&&(O=_.getState(G-1),F=_.getLine(G-1),B=$.getNextLineIndent(O,F,W));var Z=_.getLine(G),re=$.$getIndent(Z);if(B!==re){if(re.length>0){var J=new y(G,0,G,re.length);_.remove(J)}B.length>0&&_.insert({row:G,column:0},B)}$.autoOutdent(O,_,G)}},S.prototype.onTextInput=function(_,$){if(!$)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var R=this.applyComposition.bind(this,_,$);this.selection.rangeCount?this.forEachSelection(R):R(),this.endOperation()},S.prototype.applyComposition=function(_,$){if($.extendLeft||$.extendRight){var R=this.selection.getRange();R.start.column-=$.extendLeft,R.end.column+=$.extendRight,R.start.column<0&&(R.start.row--,R.start.column+=this.session.getLine(R.start.row).length+1),this.selection.setRange(R),!_&&!R.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),$.restoreStart||$.restoreEnd){var R=this.selection.getRange();R.start.column-=$.restoreStart,R.end.column-=$.restoreEnd,this.selection.setRange(R)}},S.prototype.onCommandKey=function(_,$,R){return this.keyBinding.onCommandKey(_,$,R)},S.prototype.setOverwrite=function(_){this.session.setOverwrite(_)},S.prototype.getOverwrite=function(){return this.session.getOverwrite()},S.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},S.prototype.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},S.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},S.prototype.setDragDelay=function(_){this.setOption("dragDelay",_)},S.prototype.getDragDelay=function(){return this.getOption("dragDelay")},S.prototype.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},S.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},S.prototype.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},S.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},S.prototype.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},S.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},S.prototype.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},S.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},S.prototype.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},S.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},S.prototype.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},S.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},S.prototype.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},S.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},S.prototype.setHighlightIndentGuides=function(_){this.renderer.setHighlightIndentGuides(_)},S.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},S.prototype.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},S.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},S.prototype.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},S.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},S.prototype.setReadOnly=function(_){this.setOption("readOnly",_)},S.prototype.getReadOnly=function(){return this.getOption("readOnly")},S.prototype.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},S.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},S.prototype.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},S.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},S.prototype.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},S.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},S.prototype.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},S.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},S.prototype.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLeft():this.selection.selectRight());var $=this.getSelectionRange();if(this.getBehavioursEnabled()){var R=this.session,O=R.getState($.start.row),F=R.getMode().transformAction(O,"deletion",this,R,$);if($.end.column===0){var B=R.getTextRange($);if(B[B.length-1]==`
206
+ `){var W=R.getLine($.end.row);/^\s+$/.test(W)&&($.end.column=W.length)}}F&&($=F)}this.session.remove($),this.clearSelection()},S.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},S.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},S.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
207
+ `),this.moveCursorToPosition(_)},S.prototype.setGhostText=function(_,$){this.renderer.setGhostText(_,$)},S.prototype.removeGhostText=function(){this.renderer.removeGhostText()},S.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),$=_.column;if($!==0){var R=this.session.getLine(_.row),O,F;$<R.length?(O=R.charAt($)+R.charAt($-1),F=new y(_.row,$-1,_.row,$+1)):(O=R.charAt($-1)+R.charAt($-2),F=new y(_.row,$-2,_.row,$)),this.session.replace(F,O),this.session.selection.moveToPosition(F.end)}}},S.prototype.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),R=this.session.getTextRange($);this.session.replace($,R.toLowerCase()),this.selection.setSelectionRange(_)},S.prototype.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var $=this.getSelectionRange(),R=this.session.getTextRange($);this.session.replace($,R.toUpperCase()),this.selection.setSelectionRange(_)},S.prototype.indent=function(){var _=this.session,$=this.getSelectionRange();if($.start.row<$.end.row){var R=this.$getSelectedRows();_.indentRows(R.first,R.last," ");return}else if($.start.column<$.end.column){var O=_.getTextRange($);if(!/^\s+$/.test(O)){var R=this.$getSelectedRows();_.indentRows(R.first,R.last," ");return}}var F=_.getLine($.start.row),B=$.start,W=_.getTabSize(),V=_.documentToScreenColumn(B.row,B.column);if(this.session.getUseSoftTabs())var q=W-V%W,X=d.stringRepeat(" ",q);else{for(var q=V%W;F[$.start.column-1]==" "&&q;)$.start.column--,q--;this.selection.setSelectionRange($),X=" "}return this.insert(X)},S.prototype.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},S.prototype.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},S.prototype.sortLines=function(){for(var _=this.$getSelectedRows(),$=this.session,R=[],O=_.first;O<=_.last;O++)R.push($.getLine(O));R.sort(function(W,V){return W.toLowerCase()<V.toLowerCase()?-1:W.toLowerCase()>V.toLowerCase()?1:0});for(var F=new y(0,0,0,0),O=_.first;O<=_.last;O++){var B=$.getLine(O);F.start.row=O,F.end.row=O,F.end.column=B.length,$.replace(F,R[O-_.first])}},S.prototype.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),$=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,$.first,$.last)},S.prototype.toggleBlockComment=function(){var _=this.getCursorPosition(),$=this.session.getState(_.row),R=this.getSelectionRange();this.session.getMode().toggleBlockComment($,this.session,R,_)},S.prototype.getNumberAt=function(_,$){var R=/[\-]?[0-9]+(?:\.[0-9]+)?/g;R.lastIndex=0;for(var O=this.session.getLine(_);R.lastIndex<$;){var F=R.exec(O);if(F.index<=$&&F.index+F[0].length>=$){var B={value:F[0],start:F.index,end:F.index+F[0].length};return B}}return null},S.prototype.modifyNumber=function(_){var $=this.selection.getCursor().row,R=this.selection.getCursor().column,O=new y($,R-1,$,R),F=this.session.getTextRange(O);if(!isNaN(parseFloat(F))&&isFinite(F)){var B=this.getNumberAt($,R);if(B){var W=B.value.indexOf(".")>=0?B.start+B.value.indexOf(".")+1:B.end,V=B.start+B.value.length-W,q=parseFloat(B.value);q*=Math.pow(10,V),W!==B.end&&R<W?_*=Math.pow(10,B.end-R-1):_*=Math.pow(10,B.end-R),q+=_,q/=Math.pow(10,V);var X=q.toFixed(V),G=new y($,B.start,$,B.end);this.session.replace(G,X),this.moveCursorTo($,Math.max(B.start+1,R+X.length-B.value.length))}}else this.toggleWord()},S.prototype.toggleWord=function(){var _=this.selection.getCursor().row,$=this.selection.getCursor().column;this.selection.selectWord();var R=this.getSelectedText(),O=this.selection.getWordRange().start.column,F=R.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),B=$-O-1;B<0&&(B=0);var W=0,V=0,q=this;R.match(/[A-Za-z0-9_]+/)&&F.forEach(function(pe,Ce){V=W+pe.length,B>=W&&B<=V&&(R=pe,q.selection.clearSelection(),q.moveCursorTo(_,W+O),q.selection.selectTo(_,V+O)),W=V});for(var X=this.$toggleWordPairs,G,Z=0;Z<X.length;Z++)for(var re=X[Z],J=0;J<=1;J++){var ae=+!J,me=R.match(new RegExp("^\\s?_?("+d.escapeRegExp(re[J])+")\\s?$","i"));if(me){var ve=R.match(new RegExp("([_]|^|\\s)("+d.escapeRegExp(me[1])+")($|\\s)","g"));ve&&(G=R.replace(new RegExp(d.escapeRegExp(re[J]),"i"),function(pe){var Ce=re[ae];return pe.toUpperCase()==pe?Ce=Ce.toUpperCase():pe.charAt(0).toUpperCase()==pe.charAt(0)&&(Ce=Ce.substr(0,0)+re[ae].charAt(0).toUpperCase()+Ce.substr(1)),Ce}),this.insert(G),G="")}}},S.prototype.findLinkAt=function(_,$){var R,O,F=this.session.getLine(_),B=F.split(/((?:https?|ftp):\/\/[\S]+)/),W=$;W<0&&(W=0);var V=0,q=0,X;try{for(var G=h(B),Z=G.next();!Z.done;Z=G.next()){var re=Z.value;if(q=V+re.length,W>=V&&W<=q&&re.match(/((?:https?|ftp):\/\/[\S]+)/)){X=re.replace(/[\s:.,'";}\]]+$/,"");break}V=q}}catch(J){R={error:J}}finally{try{Z&&!Z.done&&(O=G.return)&&O.call(G)}finally{if(R)throw R.error}}return X},S.prototype.openLink=function(){var _=this.selection.getCursor(),$=this.findLinkAt(_.row,_.column);return $&&window.open($,"_blank"),$!=null},S.prototype.removeLines=function(){var _=this.$getSelectedRows();this.session.removeFullLines(_.first,_.last),this.clearSelection()},S.prototype.duplicateSelection=function(){var _=this.selection,$=this.session,R=_.getRange(),O=_.isBackwards();if(R.isEmpty()){var F=R.start.row;$.duplicateLines(F,F)}else{var B=O?R.start:R.end,W=$.insert(B,$.getTextRange(R));R.start=B,R.end=W,_.setSelectionRange(R,O)}},S.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},S.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},S.prototype.moveText=function(_,$,R){return this.session.moveText(_,$,R)},S.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},S.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},S.prototype.$moveLines=function(_,$){var R,O,F=this.selection;if(!F.inMultiSelectMode||this.inVirtualSelectionMode){var B=F.toOrientedRange();R=this.$getSelectedRows(B),O=this.session.$moveLines(R.first,R.last,$?0:_),$&&_==-1&&(O=0),B.moveBy(O,0),F.fromOrientedRange(B)}else{var W=F.rangeList.ranges;F.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var V=0,q=0,X=W.length,G=0;G<X;G++){var Z=G;W[G].moveBy(V,0),R=this.$getSelectedRows(W[G]);for(var re=R.first,J=R.last;++G<X;){q&&W[G].moveBy(q,0);var ae=this.$getSelectedRows(W[G]);if($&&ae.first!=J||!$&&ae.first>J+1)break;J=ae.last}for(G--,V=this.session.$moveLines(re,J,$?0:_),$&&_==-1&&(Z=G+1);Z<=G;)W[Z].moveBy(V,0),Z++;$||(V=0),q+=V}F.fromOrientedRange(F.ranges[0]),F.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},S.prototype.$getSelectedRows=function(_){return _=(_||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(_.start.row),last:this.session.getRowFoldEnd(_.end.row)}},S.prototype.onCompositionStart=function(_){this.renderer.showComposition(_)},S.prototype.onCompositionUpdate=function(_){this.renderer.setCompositionText(_)},S.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},S.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},S.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},S.prototype.isRowVisible=function(_){return _>=this.getFirstVisibleRow()&&_<=this.getLastVisibleRow()},S.prototype.isRowFullyVisible=function(_){return _>=this.renderer.getFirstFullyVisibleRow()&&_<=this.renderer.getLastFullyVisibleRow()},S.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},S.prototype.$moveByPage=function(_,$){var R=this.renderer,O=this.renderer.layerConfig,F=_*Math.floor(O.height/O.lineHeight);$===!0?this.selection.$moveSelection(function(){this.moveCursorBy(F,0)}):$===!1&&(this.selection.moveCursorBy(F,0),this.selection.clearSelection());var B=R.scrollTop;R.scrollBy(0,F*O.lineHeight),$!=null&&R.scrollCursorIntoView(null,.5),R.animateScrolling(B)},S.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},S.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},S.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},S.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},S.prototype.scrollPageDown=function(){this.$moveByPage(1)},S.prototype.scrollPageUp=function(){this.$moveByPage(-1)},S.prototype.scrollToRow=function(_){this.renderer.scrollToRow(_)},S.prototype.scrollToLine=function(_,$,R,O){this.renderer.scrollToLine(_,$,R,O)},S.prototype.centerSelection=function(){var _=this.getSelectionRange(),$={row:Math.floor(_.start.row+(_.end.row-_.start.row)/2),column:Math.floor(_.start.column+(_.end.column-_.start.column)/2)};this.renderer.alignCursor($,.5)},S.prototype.getCursorPosition=function(){return this.selection.getCursor()},S.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},S.prototype.getSelectionRange=function(){return this.selection.getRange()},S.prototype.selectAll=function(){this.selection.selectAll()},S.prototype.clearSelection=function(){this.selection.clearSelection()},S.prototype.moveCursorTo=function(_,$){this.selection.moveCursorTo(_,$)},S.prototype.moveCursorToPosition=function(_){this.selection.moveCursorToPosition(_)},S.prototype.jumpToMatching=function(_,$){var R=this.getCursorPosition(),O=new k(this.session,R.row,R.column),F=O.getCurrentToken(),B=0;F&&F.type.indexOf("tag-name")!==-1&&(F=O.stepBackward());var W=F||O.stepForward();if(W){var V,q=!1,X={},G=R.column-W.start,Z,re={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(W.value.match(/[{}()\[\]]/g)){for(;G<W.value.length&&!q;G++)if(re[W.value[G]])switch(Z=re[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==="<"&&B>1?X[W.value]++:F.value==="</"&&X[W.value]--,X[W.value]===-1&&(V="tag",q=!0));q||(F=W,B++,W=O.stepForward(),G=0)}while(W&&!q);if(V){var J,ae;if(V==="bracket")J=this.session.getBracketRange(R),J||(J=new y(O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1,O.getCurrentTokenRow(),O.getCurrentTokenColumn()+G-1),ae=J.start,($||ae.row===R.row&&Math.abs(ae.column-R.column)<2)&&(J=this.session.getBracketRange(ae)));else if(V==="tag"){if(!W||W.type.indexOf("tag-name")===-1)return;if(J=new y(O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2,O.getCurrentTokenRow(),O.getCurrentTokenColumn()-2),J.compare(R.row,R.column)===0){var me=this.session.getMatchingTags(R);me&&(me.openTag.contains(R.row,R.column)?(J=me.closeTag,ae=J.start):(J=me.openTag,me.closeTag.start.row===R.row&&me.closeTag.start.column===R.column?ae=J.end:ae=J.start))}ae=ae||J.start}ae=J&&J.cursor||ae,ae&&(_?J&&$?this.selection.setRange(J):J&&J.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(ae.row,ae.column):this.selection.moveTo(ae.row,ae.column))}}},S.prototype.gotoLine=function(_,$,R){this.selection.clearSelection(),this.session.unfold({row:_-1,column:$||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(_-1,$||0),this.isRowFullyVisible(_-1)||this.scrollToLine(_-1,!0,R)},S.prototype.navigateTo=function(_,$){this.selection.moveTo(_,$)},S.prototype.navigateUp=function(_){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(-_||-1,0)},S.prototype.navigateDown=function(_){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var $=this.selection.anchor.getPosition();return this.moveCursorToPosition($)}this.selection.clearSelection(),this.selection.moveCursorBy(_||1,0)},S.prototype.navigateLeft=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorLeft();else{var $=this.getSelectionRange().start;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateRight=function(_){if(this.selection.isEmpty())for(_=_||1;_--;)this.selection.moveCursorRight();else{var $=this.getSelectionRange().end;this.moveCursorToPosition($)}this.clearSelection()},S.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},S.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},S.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},S.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},S.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},S.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},S.prototype.replace=function(_,$){$&&this.$search.set($);var R=this.$search.find(this.session),O=0;return R&&(this.$tryReplace(R,_)&&(O=1),this.selection.setSelectionRange(R),this.renderer.scrollSelectionIntoView(R.start,R.end)),O},S.prototype.replaceAll=function(_,$){$&&this.$search.set($);var R=this.$search.findAll(this.session),O=0;if(!R.length)return O;var F=this.getSelectionRange();this.selection.moveTo(0,0);for(var B=R.length-1;B>=0;--B)this.$tryReplace(R[B],_)&&O++;return this.selection.setSelectionRange(F),O},S.prototype.$tryReplace=function(_,$){var R=this.session.getTextRange(_);return $=this.$search.replace(R,$),$!==null?(_.end=this.session.replace(_,$),_):null},S.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},S.prototype.find=function(_,$,R){$||($={}),typeof _=="string"||_ instanceof RegExp?$.needle=_:typeof _=="object"&&p.mixin($,_);var O=this.selection.getRange();$.needle==null&&(_=this.session.getTextRange(O)||this.$search.$options.needle,_||(O=this.session.getWordRange(O.start.row,O.start.column),_=this.session.getTextRange(O)),this.$search.set({needle:_})),this.$search.set($),$.start||this.$search.set({start:O});var F=this.$search.find(this.session);if($.preventScroll)return F;if(F)return this.revealRange(F,R),F;$.backwards?O.start=O.end:O.end=O.start,this.selection.setRange(O)},S.prototype.findNext=function(_,$){this.find({skipCurrent:!0,backwards:!1},_,$)},S.prototype.findPrevious=function(_,$){this.find(_,{skipCurrent:!0,backwards:!0},$)},S.prototype.revealRange=function(_,$){this.session.unfold(_),this.selection.setSelectionRange(_);var R=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(_.start,_.end,.5),$!==!1&&this.renderer.animateScrolling(R)},S.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},S.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(_){_.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},S.prototype.setAutoScrollEditorIntoView=function(_){if(_){var $,R=this,O=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var F=this.$scrollAnchor;F.style.cssText="position:absolute",this.container.insertBefore(F,this.container.firstChild);var B=this.on("changeSelection",function(){O=!0}),W=this.renderer.on("beforeRender",function(){O&&($=R.renderer.container.getBoundingClientRect())}),V=this.renderer.on("afterRender",function(){if(O&&$&&(R.isFocused()||R.searchBox&&R.searchBox.isFocused())){var q=R.renderer,X=q.$cursorLayer.$pixelPos,G=q.layerConfig,Z=X.top-G.offset;X.top>=0&&Z+$.top<0?O=!0:X.top<G.height&&X.top+$.top+G.lineHeight>window.innerHeight?O=!1:O=null,O!=null&&(F.style.top=Z+"px",F.style.left=X.left+"px",F.style.height=G.lineHeight+"px",F.scrollIntoView(O)),O=$=null}});this.setAutoScrollEditorIntoView=function(q){q||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",B),this.renderer.off("afterRender",V),this.renderer.off("beforeRender",W))}}},S.prototype.$resetCursorStyle=function(){var _=this.$cursorStyle||"ace",$=this.renderer.$cursorLayer;$&&($.setSmoothBlinking(/smooth/.test(_)),$.isBlinking=!this.$readOnly&&_!="wide",v.setCssClass($.element,"ace_slim-cursors",/slim/.test(_)))},S.prototype.prompt=function(_,$,R){var O=this;C.loadModule("ace/ext/prompt",function(F){F.prompt(O,_,$,R)})},S}();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"],["&&","||"],["==","!="]],p.implement(T.prototype,b),C.defineOptions(T.prototype,"editor",{selectionStyle:{set:function(S){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:S})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(S){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(S){this.textInput.setReadOnly(S),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(S){this.textInput.setCopyWithEmptySelection(S)},initialValue:!1},cursorStyle:{set:function(S){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(S){this.setAutoScrollEditorIntoView(S)}},keyboardHandler:{set:function(S){this.setKeyboardHandler(S)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(S){this.session.setValue(S)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(S){this.setSession(S)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(S){this.renderer.$gutterLayer.setShowLineNumbers(S),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),S&&this.$relativeLineNumbers?N.attach(this):N.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(S){this.$showLineNumbers&&S?N.attach(this):N.detach(this)}},placeholder:{set:function(S){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var _=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(_&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),v.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!_&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),v.addCssClass(this.container,"ace_hasPlaceholder");var $=v.createElement("div");$.className="ace_placeholder",$.textContent=this.$placeholder||"",this.renderer.placeholderNode=$,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!_&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(S){var _={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(O){O.blur(),O.renderer.scroller.focus()},readOnly:!0},$=function(O){if(O.target==this.renderer.scroller&&O.keyCode===I.enter){O.preventDefault();var F=this.getCursorPosition().row;this.isRowVisible(F)||this.scrollToLine(F,!0,!0),this.focus()}},R;S?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(g.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",A("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",A("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",$.bind(this)),this.commands.addCommand(_),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",A("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",A("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),R||(R=new w(this)),R.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",$.bind(this)),this.commands.removeCommand(_),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),R&&R.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(S){this.$textInputAriaLabel=S},initialValue:""},enableMobileMenu:{set:function(S){this.$enableMobileMenu=S},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var N={getText:function(S,_){return(Math.abs(S.selection.lead.row-_)||_+1+(_<9?"·":""))+""},getWidth:function(S,_,$){return Math.max(_.toString().length,($.lastRow+1).toString().length,2)*$.characterWidth},update:function(S,_){_.renderer.$loop.schedule(_.renderer.CHANGE_GUTTER)},attach:function(S){S.renderer.$gutterLayer.$renderer=this,S.on("changeSelection",this.update),this.update(null,S)},detach:function(S){S.renderer.$gutterLayer.$renderer==this&&(S.renderer.$gutterLayer.$renderer=null),S.off("changeSelection",this.update),this.update(null,S)}};r.Editor=T}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(t,r,f){var h=t("../lib/dom"),p=function(){function v(d,g){this.element=d,this.canvasHeight=g||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return v.prototype.moveContainer=function(d){h.translate(this.element,0,-(d.firstRowScreen*d.lineHeight%this.canvasHeight)-d.offset*this.$offsetCoefficient)},v.prototype.pageChanged=function(d,g){return Math.floor(d.firstRowScreen*d.lineHeight/this.canvasHeight)!==Math.floor(g.firstRowScreen*g.lineHeight/this.canvasHeight)},v.prototype.computeLineTop=function(d,g,s){var l=g.firstRowScreen*g.lineHeight,a=Math.floor(l/this.canvasHeight),c=s.documentToScreenRow(d,0)*g.lineHeight;return c-a*this.canvasHeight},v.prototype.computeLineHeight=function(d,g,s){return g.lineHeight*s.getRowLineCount(d)},v.prototype.getLength=function(){return this.cells.length},v.prototype.get=function(d){return this.cells[d]},v.prototype.shift=function(){this.$cacheCell(this.cells.shift())},v.prototype.pop=function(){this.$cacheCell(this.cells.pop())},v.prototype.push=function(d){if(Array.isArray(d)){this.cells.push.apply(this.cells,d);for(var g=h.createFragment(this.element),s=0;s<d.length;s++)g.appendChild(d[s].element);this.element.appendChild(g)}else this.cells.push(d),this.element.appendChild(d.element)},v.prototype.unshift=function(d){if(Array.isArray(d)){this.cells.unshift.apply(this.cells,d);for(var g=h.createFragment(this.element),s=0;s<d.length;s++)g.appendChild(d[s].element);this.element.firstChild?this.element.insertBefore(g,this.element.firstChild):this.element.appendChild(g)}else this.cells.unshift(d),this.element.insertAdjacentElement("afterbegin",d.element)},v.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},v.prototype.$cacheCell=function(d){d&&(d.element.remove(),this.cellCache.push(d))},v.prototype.createCell=function(d,g,s,l){var a=this.cellCache.pop();if(!a){var c=h.createElement("div");l&&l(c),this.element.appendChild(c),a={element:c,text:"",row:d}}return a.row=d,a},v}();r.Lines=p}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(t,r,f){var h=t("../lib/dom"),p=t("../lib/oop"),v=t("../lib/lang"),d=t("../lib/event_emitter").EventEmitter,g=t("./lines").Lines,s=t("../config").nls,l=function(){function c(o){this.element=h.createElement("div"),this.element.className="ace_layer ace_gutter-layer",o.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new g(this.element),this.$lines.$offsetCoefficient=1}return c.prototype.setSession=function(o){this.session&&this.session.off("change",this.$updateAnnotations),this.session=o,o&&o.on("change",this.$updateAnnotations)},c.prototype.addGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(o,u)},c.prototype.removeGutterDecoration=function(o,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(o,u)},c.prototype.setAnnotations=function(o){this.$annotations=[];for(var u=0;u<o.length;u++){var y=o[u],b=y.row,x=this.$annotations[b];x||(x=this.$annotations[b]={text:[],type:[],displayText:[]});var E=y.text,C=y.text,k=y.type;E=E?v.escapeHTML(E):y.html||"",C=C||y.html||"",x.text.indexOf(E)===-1&&(x.text.push(E),x.type.push(k),x.displayText.push(C));var w=y.className;w?x.className=w:k==="error"?x.className=" ace_error":k==="security"&&!/\bace_error\b/.test(x.className)?x.className=" ace_security":k==="warning"&&!/\bace_(error|security)\b/.test(x.className)?x.className=" ace_warning":k==="info"&&!x.className?x.className=" ace_info":k==="hint"&&!x.className&&(x.className=" ace_hint")}},c.prototype.$updateAnnotations=function(o){if(this.$annotations.length){var u=o.start.row,y=o.end.row-u;if(y!==0)if(o.action=="remove")this.$annotations.splice(u,y+1,null);else{var b=new Array(y+1);b.unshift(u,1),this.$annotations.splice.apply(this.$annotations,b)}}},c.prototype.update=function(o){this.config=o;var u=this.session,y=o.firstRow,b=Math.min(o.lastRow+o.gutterOffset,u.getLength()-1);this.oldLastRow=b,this.config=o,this.$lines.moveContainer(o),this.$updateCursorRow();for(var x=u.getNextFoldLine(y),E=x?x.start.row:1/0,C=null,k=-1,w=y;;){if(w>E&&(w=x.end.row+1,x=u.getNextFoldLine(w,x),E=x?x.start.row:1/0),w>b){for(;this.$lines.getLength()>k+1;)this.$lines.pop();break}C=this.$lines.get(++k),C?C.row=w:(C=this.$lines.createCell(w,o,this.session,a),this.$lines.push(C)),this.$renderCell(C,o,x,w),w++}this._signal("afterRender"),this.$updateGutterWidth(o)},c.prototype.$updateGutterWidth=function(o){var u=this.session,y=u.gutterRenderer||this.$renderer,b=u.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||u.$useWrapMode)&&(x=u.getLength()+b-1);var E=y?y.getWidth(u,x,o):x.toString().length*o.characterWidth,C=this.$padding||this.$computePadding();E+=C.left+C.right,E!==this.gutterWidth&&!isNaN(E)&&(this.gutterWidth=E,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",E))},c.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var o=this.session.selection.getCursor();this.$cursorRow!==o.row&&(this.$cursorRow=o.row)}},c.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var o=this.session.selection.cursor.row;if(this.$cursorRow=o,!(this.$cursorCell&&this.$cursorCell.row==o)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var u=this.$lines.cells;this.$cursorCell=null;for(var y=0;y<u.length;y++){var b=u[y];if(b.row>=this.$cursorRow){if(b.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(y>0&&x&&x.start.row==u[y-1].row)b=u[y-1];else break}b.element.className="ace_gutter-active-line "+b.element.className,this.$cursorCell=b;break}}}}},c.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$updateCursorRow(),this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var y=Math.min(o.lastRow+o.gutterOffset,this.session.getLength()-1),b=this.oldLastRow;if(this.oldLastRow=y,!u||b<o.firstRow)return this.update(o);if(y<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(b>y)for(var x=this.session.getFoldedRowCount(y+1,b);x>0;x--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLines(o,o.firstRow,u.firstRow-1)),y>b&&this.$lines.push(this.$renderLines(o,b+1,y)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(o)},c.prototype.$renderLines=function(o,u,y){for(var b=[],x=u,E=this.session.getNextFoldLine(x),C=E?E.start.row:1/0;x>C&&(x=E.end.row+1,E=this.session.getNextFoldLine(x,E),C=E?E.start.row:1/0),!(x>y);){var k=this.$lines.createCell(x,o,this.session,a);this.$renderCell(k,o,E,x),b.push(k),x++}return b},c.prototype.$renderCell=function(o,u,y,b){var x=o.element,E=this.session,C=x.childNodes[0],k=x.childNodes[1],w=x.childNodes[2],A=w.firstChild,L=E.$firstLineNumber,I=E.$breakpoints,T=E.$decorations,N=E.gutterRenderer||this.$renderer,S=this.$showFoldWidgets&&E.foldWidgets,_=y?y.start.row:Number.MAX_VALUE,$=u.lineHeight+"px",R=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",O=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",F=(N?N.getText(E,b):b+L).toString();if(this.$highlightGutterLine&&(b==this.$cursorRow||y&&b<this.$cursorRow&&b>=_&&this.$cursorRow<=y.end.row)&&(R+="ace_gutter-active-line ",this.$cursorCell!=o&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=o)),I[b]&&(R+=I[b]),T[b]&&(R+=T[b]),this.$annotations[b]&&b!==_&&(R+=this.$annotations[b].className),S){var B=S[b];B==null&&(B=S[b]=E.getFoldWidget(b))}if(B){var W="ace_fold-widget ace_"+B,V=B=="start"&&b==_&&b<y.end.row;if(V){W+=" ace_closed";for(var q="",X=!1,G=b+1;G<=y.end.row;G++)if(this.$annotations[G]){if(this.$annotations[G].className===" ace_error"){X=!0,q=" ace_error_fold";break}this.$annotations[G].className===" ace_security"?(X=!0,q=" ace_security_fold"):this.$annotations[G].className===" ace_warning"&&q!==" ace_security_fold"&&(X=!0,q=" ace_warning_fold")}R+=q}else W+=" ace_open";k.className!=W&&(k.className=W),h.setStyle(k.style,"height",$),h.setStyle(k.style,"display","inline-block"),k.setAttribute("role","button"),k.setAttribute("tabindex","-1");var Z=E.getFoldWidgetRange(b);Z?k.setAttribute("aria-label",s("gutter.code-folding.range.aria-label","Toggle code folding, rows $0 through $1",[Z.start.row+1,Z.end.row+1])):y?k.setAttribute("aria-label",s("gutter.code-folding.closed.aria-label","Toggle code folding, rows $0 through $1",[y.start.row+1,y.end.row+1])):k.setAttribute("aria-label",s("gutter.code-folding.open.aria-label","Toggle code folding, row $0",[b+1])),V?(k.setAttribute("aria-expanded","false"),k.setAttribute("title",s("gutter.code-folding.closed.title","Unfold code"))):(k.setAttribute("aria-expanded","true"),k.setAttribute("title",s("gutter.code-folding.open.title","Fold code")))}else k&&(h.setStyle(k.style,"display","none"),k.setAttribute("tabindex","0"),k.removeAttribute("role"),k.removeAttribute("aria-label"));if(X&&this.$showFoldedAnnotations){w.className="ace_gutter_annotation",A.className=O,A.className+=q,h.setStyle(A.style,"height",$),h.setStyle(w.style,"display","block"),h.setStyle(w.style,"height",$);var re;switch(q){case" ace_error_fold":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security_fold":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning_fold":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break}w.setAttribute("aria-label",re),w.setAttribute("tabindex","-1"),w.setAttribute("role","button")}else if(this.$annotations[b]){w.className="ace_gutter_annotation",A.className=O,this.$useSvgGutterIcons?A.className+=this.$annotations[b].className:x.classList.add(this.$annotations[b].className.replace(" ","")),h.setStyle(A.style,"height",$),h.setStyle(w.style,"display","block"),h.setStyle(w.style,"height",$);var re;switch(this.$annotations[b].className){case" ace_error":re=s("gutter.annotation.aria-label.error","Error, read annotations row $0",[F]);break;case" ace_security":re=s("gutter.annotation.aria-label.security","Security finding, read annotations row $0",[F]);break;case" ace_warning":re=s("gutter.annotation.aria-label.warning","Warning, read annotations row $0",[F]);break;case" ace_info":re=s("gutter.annotation.aria-label.info","Info, read annotations row $0",[F]);break;case" ace_hint":re=s("gutter.annotation.aria-label.hint","Suggestion, read annotations row $0",[F]);break}w.setAttribute("aria-label",re),w.setAttribute("tabindex","-1"),w.setAttribute("role","button")}else h.setStyle(w.style,"display","none"),w.removeAttribute("aria-label"),w.removeAttribute("role"),w.setAttribute("tabindex","0");return F!==C.data&&(C.data=F),x.className!=R&&(x.className=R),h.setStyle(o.element.style,"height",this.$lines.computeLineHeight(b,u,E)+"px"),h.setStyle(o.element.style,"top",this.$lines.computeLineTop(b,u,E)+"px"),o.text=F,w.style.display==="none"&&k.style.display==="none"?o.element.setAttribute("aria-hidden",!0):o.element.setAttribute("aria-hidden",!1),o},c.prototype.setHighlightGutterLine=function(o){this.$highlightGutterLine=o},c.prototype.setShowLineNumbers=function(o){this.$renderer=!o&&{getWidth:function(){return 0},getText:function(){return""}}},c.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},c.prototype.setShowFoldWidgets=function(o){o?h.addCssClass(this.element,"ace_folding-enabled"):h.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=o,this.$padding=null},c.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},c.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var o=h.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(o.borderLeftWidth)||0)+(parseInt(o.paddingLeft)||0)+1,this.$padding.right=(parseInt(o.borderRightWidth)||0)+(parseInt(o.paddingRight)||0),this.$padding},c.prototype.getRegion=function(o){var u=this.$padding||this.$computePadding(),y=this.element.getBoundingClientRect();if(o.x<u.left+y.left)return"markers";if(this.$showFoldWidgets&&o.x>y.right-u.right)return"foldWidgets"},c}();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,p.implement(l.prototype,d);function a(c){var o=document.createTextNode("");c.appendChild(o);var u=h.createElement("span");c.appendChild(u);var y=h.createElement("span");c.appendChild(y);var b=h.createElement("span");return y.appendChild(b),c}r.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(t,r,f){var h=t("../range").Range,p=t("../lib/dom"),v=function(){function g(s){this.element=p.createElement("div"),this.element.className="ace_layer ace_marker-layer",s.appendChild(this.element)}return g.prototype.setPadding=function(s){this.$padding=s},g.prototype.setSession=function(s){this.session=s},g.prototype.setMarkers=function(s){this.markers=s},g.prototype.elt=function(s,l){var a=this.i!=-1&&this.element.childNodes[this.i];a?this.i++:(a=document.createElement("div"),this.element.appendChild(a),this.i=-1),a.style.cssText=l,a.className=s},g.prototype.update=function(s){if(s){this.config=s,this.i=0;var l;for(var a in this.markers){var c=this.markers[a];if(!c.range){c.update(l,this,this.session,s);continue}var o=c.range.clipRows(s.firstRow,s.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),c.renderer){var u=this.$getTop(o.start.row,s),y=this.$padding+o.start.column*s.characterWidth;c.renderer(l,o,y,u,s)}else c.type=="fullLine"?this.drawFullLineMarker(l,o,c.clazz,s):c.type=="screenLine"?this.drawScreenLineMarker(l,o,c.clazz,s):o.isMultiLine()?c.type=="text"?this.drawTextMarker(l,o,c.clazz,s):this.drawMultiLineMarker(l,o,c.clazz,s):this.drawSingleLineMarker(l,o,c.clazz+" ace_start ace_br15",s)}if(this.i!=-1)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},g.prototype.$getTop=function(s,l){return(s-l.firstRowScreen)*l.lineHeight},g.prototype.drawTextMarker=function(s,l,a,c,o){for(var u=this.session,y=l.start.row,b=l.end.row,x=y,E=0,C=0,k=u.getScreenLastRowColumn(x),w=new h(x,l.start.column,x,C);x<=b;x++)w.start.row=w.end.row=x,w.start.column=x==y?l.start.column:u.getRowWrapIndent(x),w.end.column=k,E=C,C=k,k=x+1<b?u.getScreenLastRowColumn(x+1):x==b?0:l.end.column,this.drawSingleLineMarker(s,w,a+(x==y?" ace_start":"")+" ace_br"+d(x==y||x==y+1&&l.start.column,E<C,C>k,x==b),c,x==b?0:1,o)},g.prototype.drawMultiLineMarker=function(s,l,a,c,o){var u=this.$padding,y=c.lineHeight,b=this.$getTop(l.start.row,c),x=u+l.start.column*c.characterWidth;if(o=o||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var E=l.clone();E.end.row=E.start.row,E.end.column=this.session.getLine(E.start.row).length,this.drawBidiSingleLineMarker(s,E,a+" ace_br1 ace_start",c,null,o)}else this.elt(a+" ace_br1 ace_start","height:"+y+"px;right:"+u+"px;top:"+b+"px;left:"+x+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var E=l.clone();E.start.row=E.end.row,E.start.column=0,this.drawBidiSingleLineMarker(s,E,a+" ace_br12",c,null,o)}else{b=this.$getTop(l.end.row,c);var C=l.end.column*c.characterWidth;this.elt(a+" ace_br12","height:"+y+"px;width:"+C+"px;top:"+b+"px;left:"+u+"px;"+(o||""))}if(y=(l.end.row-l.start.row-1)*c.lineHeight,!(y<=0)){b=this.$getTop(l.start.row+1,c);var k=(l.start.column?1:0)|(l.end.column?0:8);this.elt(a+(k?" ace_br"+k:""),"height:"+y+"px;right:"+u+"px;top:"+b+"px;left:"+u+"px;"+(o||""))}},g.prototype.drawSingleLineMarker=function(s,l,a,c,o,u){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(s,l,a,c,o,u);var y=c.lineHeight,b=(l.end.column+(o||0)-l.start.column)*c.characterWidth,x=this.$getTop(l.start.row,c),E=this.$padding+l.start.column*c.characterWidth;this.elt(a,"height:"+y+"px;width:"+b+"px;top:"+x+"px;left:"+E+"px;"+(u||""))},g.prototype.drawBidiSingleLineMarker=function(s,l,a,c,o,u){var y=c.lineHeight,b=this.$getTop(l.start.row,c),x=this.$padding,E=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);E.forEach(function(C){this.elt(a,"height:"+y+"px;width:"+(C.width+(o||0))+"px;top:"+b+"px;left:"+(x+C.left)+"px;"+(u||""))},this)},g.prototype.drawFullLineMarker=function(s,l,a,c,o){var u=this.$getTop(l.start.row,c),y=c.lineHeight;l.start.row!=l.end.row&&(y+=this.$getTop(l.end.row,c)-u),this.elt(a,"height:"+y+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g.prototype.drawScreenLineMarker=function(s,l,a,c,o){var u=this.$getTop(l.start.row,c),y=c.lineHeight;this.elt(a,"height:"+y+"px;top:"+u+"px;left:0;right:0;"+(o||""))},g}();v.prototype.$padding=0;function d(g,s,l,a){return(g?1:0)|(s?2:0)|(l?4:0)|(a?8:0)}r.Marker=v}),ace.define("ace/layer/text_util",["require","exports","module"],function(t,r,f){var h=new Set(["text","rparen","lparen"]);r.isTextToken=function(p){return h.has(p)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(t,r,f){var h=t("../lib/oop"),p=t("../lib/dom"),v=t("../lib/lang"),d=t("./lines").Lines,g=t("../lib/event_emitter").EventEmitter,s=t("../config").nls,l=t("./text_util").isTextToken,a=function(){function c(o){this.dom=p,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",o.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new d(this.element)}return c.prototype.$updateEolChar=function(){var o=this.session.doc,u=o.getNewLineCharacter()==`
208
+ `&&o.getNewLineMode()!="windows",y=u?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=y)return this.EOL_CHAR=y,!0},c.prototype.setPadding=function(o){this.$padding=o,this.element.style.margin="0 "+o+"px"},c.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},c.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},c.prototype.$setFontMetrics=function(o){this.$fontMetrics=o,this.$fontMetrics.on("changeCharacterSize",(function(u){this._signal("changeCharacterSize",u)}).bind(this)),this.$pollSizeChanges()},c.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},c.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},c.prototype.setSession=function(o){this.session=o,o&&this.$computeTabString()},c.prototype.setShowInvisibles=function(o){return this.showInvisibles==o?!1:(this.showInvisibles=o,typeof o=="string"?(this.showSpaces=/tab/i.test(o),this.showTabs=/space/i.test(o),this.showEOL=/eol/i.test(o)):this.showSpaces=this.showTabs=this.showEOL=o,this.$computeTabString(),!0)},c.prototype.setDisplayIndentGuides=function(o){return this.displayIndentGuides==o?!1:(this.displayIndentGuides=o,this.$computeTabString(),!0)},c.prototype.setHighlightIndentGuides=function(o){return this.$highlightIndentGuides===o?!1:(this.$highlightIndentGuides=o,o)},c.prototype.$computeTabString=function(){var o=this.session.getTabSize();this.tabSize=o;for(var u=this.$tabStrings=[0],y=1;y<o+1;y++)if(this.showTabs){var b=this.dom.createElement("span");b.className="ace_invisible ace_invisible_tab",b.textContent=v.stringRepeat(this.TAB_CHAR,y),u.push(b)}else u.push(this.dom.createTextNode(v.stringRepeat(" ",y),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var x="ace_indent-guide",E=this.showSpaces?" ace_invisible ace_invisible_space":"",C=this.showSpaces?v.stringRepeat(this.SPACE_CHAR,this.tabSize):v.stringRepeat(" ",this.tabSize),k=this.showTabs?" ace_invisible ace_invisible_tab":"",w=this.showTabs?v.stringRepeat(this.TAB_CHAR,this.tabSize):C,b=this.dom.createElement("span");b.className=x+E,b.textContent=C,this.$tabStrings[" "]=b;var b=this.dom.createElement("span");b.className=x+k,b.textContent=w,this.$tabStrings[" "]=b}},c.prototype.updateLines=function(o,u,y){if(this.config.lastRow!=o.lastRow||this.config.firstRow!=o.firstRow)return this.update(o);this.config=o;for(var b=Math.max(u,o.firstRow),x=Math.min(y,o.lastRow),E=this.element.childNodes,C=0,k=o.firstRow;k<b;k++){var w=this.session.getFoldLine(k);if(w)if(w.containsRow(b)){b=w.start.row;break}else k=w.end.row;C++}for(var A=!1,k=b,w=this.session.getNextFoldLine(k),L=w?w.start.row:1/0;k>L&&(k=w.end.row+1,w=this.session.getNextFoldLine(k,w),L=w?w.start.row:1/0),!(k>x);){var I=E[C++];if(I){this.dom.removeChildren(I),this.$renderLine(I,k,k==L?w:!1),A&&(I.style.top=this.$lines.computeLineTop(k,o,this.session)+"px");var T=o.lineHeight*this.session.getRowLength(k)+"px";I.style.height!=T&&(A=!0,I.style.height=T)}k++}if(A)for(;C<this.$lines.cells.length;){var N=this.$lines.cells[C++];N.element.style.top=this.$lines.computeLineTop(N.row,o,this.session)+"px"}},c.prototype.scrollLines=function(o){var u=this.config;if(this.config=o,this.$lines.pageChanged(u,o))return this.update(o);this.$lines.moveContainer(o);var y=o.lastRow,b=u?u.lastRow:-1;if(!u||b<o.firstRow)return this.update(o);if(y<u.firstRow)return this.update(o);if(!u||u.lastRow<o.firstRow)return this.update(o);if(o.lastRow<u.firstRow)return this.update(o);if(u.firstRow<o.firstRow)for(var x=this.session.getFoldedRowCount(u.firstRow,o.firstRow-1);x>0;x--)this.$lines.shift();if(u.lastRow>o.lastRow)for(var x=this.session.getFoldedRowCount(o.lastRow+1,u.lastRow);x>0;x--)this.$lines.pop();o.firstRow<u.firstRow&&this.$lines.unshift(this.$renderLinesFragment(o,o.firstRow,u.firstRow-1)),o.lastRow>u.lastRow&&this.$lines.push(this.$renderLinesFragment(o,u.lastRow+1,o.lastRow)),this.$highlightIndentGuide()},c.prototype.$renderLinesFragment=function(o,u,y){for(var b=[],x=u,E=this.session.getNextFoldLine(x),C=E?E.start.row:1/0;x>C&&(x=E.end.row+1,E=this.session.getNextFoldLine(x,E),C=E?E.start.row:1/0),!(x>y);){var k=this.$lines.createCell(x,o,this.session),w=k.element;this.dom.removeChildren(w),p.setStyle(w.style,"height",this.$lines.computeLineHeight(x,o,this.session)+"px"),p.setStyle(w.style,"top",this.$lines.computeLineTop(x,o,this.session)+"px"),this.$renderLine(w,x,x==C?E:!1),this.$useLineGroups()?w.className="ace_line_group":w.className="ace_line",b.push(k),x++}return b},c.prototype.update=function(o){this.$lines.moveContainer(o),this.config=o;for(var u=o.firstRow,y=o.lastRow,b=this.$lines;b.getLength();)b.pop();b.push(this.$renderLinesFragment(o,u,y))},c.prototype.$renderToken=function(o,u,y,b){for(var x=this,E=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,C=this.dom.createFragment(this.element),k,w=0;k=E.exec(b);){var A=k[1],L=k[2],I=k[3],T=k[4],N=k[5];if(!(!x.showSpaces&&L)){var S=w!=k.index?b.slice(w,k.index):"";if(w=k.index+k[0].length,S&&C.appendChild(this.dom.createTextNode(S,this.element)),A){var _=x.session.getScreenTabSize(u+k.index);C.appendChild(x.$tabStrings[_].cloneNode(!0)),u+=_-1}else if(L)if(x.showSpaces){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space",$.textContent=v.stringRepeat(x.SPACE_CHAR,L.length),C.appendChild($)}else C.appendChild(this.dom.createTextNode(L,this.element));else if(I){var $=this.dom.createElement("span");$.className="ace_invisible ace_invisible_space ace_invalid",$.textContent=v.stringRepeat(x.SPACE_CHAR,I.length),C.appendChild($)}else if(T){u+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",$.textContent=x.showSpaces?x.SPACE_CHAR:T,C.appendChild($)}else if(N){u+=1;var $=this.dom.createElement("span");$.style.width=x.config.characterWidth*2+"px",$.className="ace_cjk",$.textContent=N,C.appendChild($)}}}if(C.appendChild(this.dom.createTextNode(w?b.slice(w):b,this.element)),l(y.type))o.appendChild(C);else{var R="ace_"+y.type.replace(/\./g," ace_"),$=this.dom.createElement("span");y.type=="fold"&&($.style.width=y.value.length*this.config.characterWidth+"px",$.setAttribute("title",s("inline-fold.closed.title","Unfold code"))),$.className=R,$.appendChild(C),o.appendChild($)}return u+b.length},c.prototype.renderIndentGuide=function(o,u,y){var b=u.search(this.$indentGuideRe);if(b<=0||b>=y)return u;if(u[0]==" "){b-=b%this.tabSize;for(var x=b/this.tabSize,E=0;E<x;E++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(b)}else if(u[0]==" "){for(var E=0;E<b;E++)o.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),u.substr(b)}return this.$highlightIndentGuide(),u},c.prototype.$highlightIndentGuide=function(){if(!(!this.$highlightIndentGuides||!this.displayIndentGuides)){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var o=this.session.doc.$lines;if(o){var u=this.session.selection.getCursor(),y=/^\s*/.exec(this.session.doc.getLine(u.row))[0].length,b=Math.floor(y/this.tabSize);this.$highlightIndentGuideMarker={indentLevel:b,start:u.row};var x=this.session.$bracketHighlight;if(x){for(var E=this.session.$bracketHighlight.ranges,C=0;C<E.length;C++)if(u.row!==E[C].start.row){this.$highlightIndentGuideMarker.end=E[C].start.row,u.row>E[C].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&o[u.row]!==""&&u.column===o[u.row].length){this.$highlightIndentGuideMarker.dir=1;for(var C=u.row+1;C<o.length;C++){var k=o[C],w=/^\s*/.exec(k)[0].length;if(k!==""&&(this.$highlightIndentGuideMarker.end=C,w<=y))break}}this.$renderHighlightIndentGuide()}}},c.prototype.$clearActiveIndentGuide=function(){for(var o=this.$lines.cells,u=0;u<o.length;u++){var y=o[u],b=y.element.childNodes;if(b.length>0){for(var x=0;x<b.length;x++)if(b[x].classList&&b[x].classList.contains("ace_indent-guide-active")){b[x].classList.remove("ace_indent-guide-active");break}}}},c.prototype.$setIndentGuideActive=function(o,u){var y=this.session.doc.getLine(o.row);if(y!==""){var b=o.element.childNodes;if(b){var x=b[u-1];x&&x.classList&&x.classList.contains("ace_indent-guide")&&x.classList.add("ace_indent-guide-active")}}},c.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var o=this.$lines.cells;this.$clearActiveIndentGuide();var u=this.$highlightIndentGuideMarker.indentLevel;if(u!==0)if(this.$highlightIndentGuideMarker.dir===1)for(var y=0;y<o.length;y++){var b=o[y];if(this.$highlightIndentGuideMarker.end&&b.row>=this.$highlightIndentGuideMarker.start+1){if(b.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,u)}}else for(var y=o.length-1;y>=0;y--){var b=o[y];if(this.$highlightIndentGuideMarker.end&&b.row<this.$highlightIndentGuideMarker.start){if(b.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(b,u)}}}},c.prototype.$createLineElement=function(o){var u=this.dom.createElement("div");return u.className="ace_line",u.style.height=this.config.lineHeight+"px",u},c.prototype.$renderWrappedLine=function(o,u,y){var b=0,x=0,E=y[0],C=0,k=this.$createLineElement();o.appendChild(k);for(var w=0;w<u.length;w++){var A=u[w],L=A.value;if(w==0&&this.displayIndentGuides){if(b=L.length,L=this.renderIndentGuide(k,L,E),!L)continue;b-=L.length}if(b+L.length<E)C=this.$renderToken(k,C,A,L),b+=L.length;else{for(;b+L.length>=E;)C=this.$renderToken(k,C,A,L.substring(0,E-b)),L=L.substring(E-b),b=E,k=this.$createLineElement(),o.appendChild(k),k.appendChild(this.dom.createTextNode(v.stringRepeat(" ",y.indent),this.element)),x++,C=0,E=y[x]||Number.MAX_VALUE;L.length!=0&&(b+=L.length,C=this.$renderToken(k,C,A,L))}}y[y.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(k,C,null,"",!0)},c.prototype.$renderSimpleLine=function(o,u){for(var y=0,b=0;b<u.length;b++){var x=u[b],E=x.value;if(!(b==0&&this.displayIndentGuides&&(E=this.renderIndentGuide(o,E),!E))){if(y+E.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(o,y,x,E);y=this.$renderToken(o,y,x,E)}}},c.prototype.$renderOverflowMessage=function(o,u,y,b,x){y&&this.$renderToken(o,u,y,b.slice(0,this.MAX_LINE_LENGTH-u));var E=this.dom.createElement("span");E.className="ace_inline_button ace_keyword ace_toggle_wrap",E.textContent=x?"<hide>":"<click to see more...>",o.appendChild(E)},c.prototype.$renderLine=function(o,u,y){if(!y&&y!=!1&&(y=this.session.getFoldLine(u)),y)var b=this.$getFoldLineTokens(u,y);else var b=this.session.getTokens(u);var x=o;if(b.length){var E=this.session.getRowSplitData(u);if(E&&E.length){this.$renderWrappedLine(o,b,E);var x=o.lastChild}else{var x=o;this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x)),this.$renderSimpleLine(x,b)}}else this.$useLineGroups()&&(x=this.$createLineElement(),o.appendChild(x));if(this.showEOL&&x){y&&(u=y.end.row);var C=this.dom.createElement("span");C.className="ace_invisible ace_invisible_eol",C.textContent=u==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(C)}},c.prototype.$getFoldLineTokens=function(o,u){var y=this.session,b=[];function x(C,k,w){for(var A=0,L=0;L+C[A].value.length<k;)if(L+=C[A].value.length,A++,A==C.length)return;if(L!=k){var I=C[A].value.substring(k-L);I.length>w-k&&(I=I.substring(0,w-k)),b.push({type:C[A].type,value:I}),L=k+I.length,A+=1}for(;L<w&&A<C.length;){var I=C[A].value;I.length+L>w?b.push({type:C[A].type,value:I.substring(0,w-L)}):b.push(C[A]),L+=I.length,A+=1}}var E=y.getTokens(o);return u.walk(function(C,k,w,A,L){C!=null?b.push({type:"fold",value:C}):(L&&(E=y.getTokens(k)),E.length&&x(E,A,w))},u.end.row,this.session.getLine(u.end.row).length),b},c.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},c}();a.prototype.EOF_CHAR="¶",a.prototype.EOL_CHAR_LF="¬",a.prototype.EOL_CHAR_CRLF="¤",a.prototype.EOL_CHAR=a.prototype.EOL_CHAR_LF,a.prototype.TAB_CHAR="—",a.prototype.SPACE_CHAR="·",a.prototype.$padding=0,a.prototype.MAX_LINE_LENGTH=1e4,a.prototype.showInvisibles=!1,a.prototype.showSpaces=!1,a.prototype.showTabs=!1,a.prototype.showEOL=!1,a.prototype.displayIndentGuides=!0,a.prototype.$highlightIndentGuides=!0,a.prototype.$tabStrings=[],a.prototype.destroy={},a.prototype.onChangeTabSize=a.prototype.$computeTabString,h.implement(a.prototype,g),r.Text=a}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(t,r,f){var h=t("../lib/dom"),p=function(){function v(d){this.element=h.createElement("div"),this.element.className="ace_layer ace_cursor-layer",d.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),h.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return v.prototype.$updateOpacity=function(d){for(var g=this.cursors,s=g.length;s--;)h.setStyle(g[s].style,"opacity",d?"":"0")},v.prototype.$startCssAnimation=function(){for(var d=this.cursors,g=d.length;g--;)d[g].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&h.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},v.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,h.removeCssClass(this.element,"ace_animate-blinking")},v.prototype.setPadding=function(d){this.$padding=d},v.prototype.setSession=function(d){this.session=d},v.prototype.setBlinking=function(d){d!=this.isBlinking&&(this.isBlinking=d,this.restartTimer())},v.prototype.setBlinkInterval=function(d){d!=this.blinkInterval&&(this.blinkInterval=d,this.restartTimer())},v.prototype.setSmoothBlinking=function(d){d!=this.smoothBlinking&&(this.smoothBlinking=d,h.setCssClass(this.element,"ace_smooth-blinking",d),this.$updateCursors(!0),this.restartTimer())},v.prototype.addCursor=function(){var d=h.createElement("div");return d.className="ace_cursor",this.element.appendChild(d),this.cursors.push(d),d},v.prototype.removeCursor=function(){if(this.cursors.length>1){var d=this.cursors.pop();return d.parentNode.removeChild(d),d}},v.prototype.hideCursor=function(){this.isVisible=!1,h.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.showCursor=function(){this.isVisible=!0,h.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},v.prototype.restartTimer=function(){var d=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,h.removeCssClass(this.element,"ace_smooth-blinking")),d(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&h.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),h.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var g=(function(){this.timeoutId=setTimeout(function(){d(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){d(!0),g()},this.blinkInterval),g()}},v.prototype.getPixelPosition=function(d,g){if(!this.config||!this.session)return{left:0,top:0};d||(d=this.session.selection.getCursor());var s=this.session.documentToScreenPosition(d),l=this.$padding+(this.session.$bidiHandler.isBidiRow(s.row,d.row)?this.session.$bidiHandler.getPosLeft(s.column):s.column*this.config.characterWidth),a=(s.row-(g?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:a}},v.prototype.isCursorInView=function(d,g){return d.top>=0&&d.top<g.maxHeight},v.prototype.update=function(d){this.config=d;var g=this.session.$selectionMarkers,s=0,l=0;(g===void 0||g.length===0)&&(g=[{cursor:null}]);for(var s=0,a=g.length;s<a;s++){var c=this.getPixelPosition(g[s].cursor,!0);if(!((c.top>d.height+d.offset||c.top<0)&&s>1)){var o=this.cursors[l++]||this.addCursor(),u=o.style;this.drawCursor?this.drawCursor(o,c,d,g[s],this.session):this.isCursorInView(c,d)?(h.setStyle(u,"display","block"),h.translate(o,c.left,c.top),h.setStyle(u,"width",Math.round(d.characterWidth)+"px"),h.setStyle(u,"height",d.lineHeight+"px")):h.setStyle(u,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var y=this.session.getOverwrite();this.$setOverwrite(y),this.$pixelPos=c,this.restartTimer()},v.prototype.$setOverwrite=function(d){d!=this.overwrite&&(this.overwrite=d,d?h.addCssClass(this.element,"ace_overwrite-cursors"):h.removeCssClass(this.element,"ace_overwrite-cursors"))},v.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},v}();p.prototype.$padding=0,p.prototype.drawCursor=null,r.Cursor=p}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,r,f){var h=this&&this.__extends||function(){var o=function(u,y){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(b[E]=x[E])},o(u,y)};return function(u,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");o(u,y);function b(){this.constructor=u}u.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}}(),p=t("./lib/oop"),v=t("./lib/dom"),d=t("./lib/event"),g=t("./lib/event_emitter").EventEmitter,s=32768,l=function(){function o(u,y){this.element=v.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+y,this.inner=v.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addListener(this.element,"scroll",this.onScroll.bind(this)),d.addListener(this.element,"mousedown",d.preventDefault)}return o.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},o}();p.implement(l.prototype,g);var a=function(o){h(u,o);function u(y,b){var x=o.call(this,y,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,b.$scrollbarWidth=x.width=v.scrollbarWidth(y.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return u.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var y=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-y)/(this.coeff-y)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(y){this.element.style.height=y+"px"},u.prototype.setScrollHeight=function(y){this.scrollHeight=y,y>s?(this.coeff=s/y,y=s):this.coeff!=1&&(this.coeff=1),this.inner.style.height=y+"px"},u.prototype.setScrollTop=function(y){this.scrollTop!=y&&(this.skipEvent=!0,this.scrollTop=y,this.element.scrollTop=y*this.coeff)},u}(l);a.prototype.setInnerHeight=a.prototype.setScrollHeight;var c=function(o){h(u,o);function u(y,b){var x=o.call(this,y,"-h")||this;return x.scrollLeft=0,x.height=b.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return u.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.setWidth=function(y){this.element.style.width=y+"px"},u.prototype.setInnerWidth=function(y){this.inner.style.width=y+"px"},u.prototype.setScrollWidth=function(y){this.inner.style.width=y+"px"},u.prototype.setScrollLeft=function(y){this.scrollLeft!=y&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=y)},u}(l);r.ScrollBar=a,r.ScrollBarV=a,r.ScrollBarH=c,r.VScrollBar=a,r.HScrollBar=c}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(t,r,f){var h=this&&this.__extends||function(){var c=function(o,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&(y[x]=b[x])},c(o,u)};return function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(o,u);function y(){this.constructor=o}o.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),p=t("./lib/oop"),v=t("./lib/dom"),d=t("./lib/event"),g=t("./lib/event_emitter").EventEmitter;v.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{
209
+ position: absolute;
210
+ background: rgba(128, 128, 128, 0.6);
211
+ -moz-box-sizing: border-box;
212
+ box-sizing: border-box;
213
+ border: 1px solid #bbb;
214
+ border-radius: 2px;
215
+ z-index: 8;
216
+ }
217
+ .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {
218
+ position: absolute;
219
+ z-index: 6;
220
+ background: none;
221
+ overflow: hidden!important;
222
+ }
223
+ .ace_editor>.ace_sb-v {
224
+ z-index: 6;
225
+ right: 0;
226
+ top: 0;
227
+ width: 12px;
228
+ }
229
+ .ace_editor>.ace_sb-v div {
230
+ z-index: 8;
231
+ right: 0;
232
+ width: 100%;
233
+ }
234
+ .ace_editor>.ace_sb-h {
235
+ bottom: 0;
236
+ left: 0;
237
+ height: 12px;
238
+ }
239
+ .ace_editor>.ace_sb-h div {
240
+ bottom: 0;
241
+ height: 100%;
242
+ }
243
+ .ace_editor>.ace_sb_grabbed {
244
+ z-index: 8;
245
+ background: #000;
246
+ }`,"ace_scrollbar.css",!1);var s=function(){function c(o,u){this.element=v.createElement("div"),this.element.className="ace_sb"+u,this.inner=v.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,o.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,d.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return c.prototype.setVisible=function(o){this.element.style.display=o?"":"none",this.isVisible=o,this.coeff=1},c}();p.implement(s.prototype,g);var l=function(c){h(o,c);function o(u,y){var b=c.call(this,u,"-v")||this;return b.scrollTop=0,b.scrollHeight=0,b.parent=u,b.width=b.VScrollWidth,b.renderer=y,b.inner.style.width=b.element.style.width=(b.width||15)+"px",b.$minWidth=0,b}return o.prototype.onMouseDown=function(u,y){if(u==="mousedown"&&!(d.getButton(y)!==0||y.detail===2)){if(y.target===this.inner){var b=this,x=y.clientY,E=function(T){x=T.clientY},C=function(){clearInterval(L)},k=y.clientY,w=this.thumbTop,A=function(){if(x!==void 0){var T=b.scrollTopFromThumbTop(w+x-k);T!==b.scrollTop&&b._emit("scroll",{data:T})}};d.capture(this.inner,E,C);var L=setInterval(A,20);return d.preventDefault(y)}var I=y.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(I)}),d.preventDefault(y)}},o.prototype.getHeight=function(){return this.height},o.prototype.scrollTopFromThumbTop=function(u){var y=u*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return y=y>>0,y<0?y=0:y>this.pageHeight-this.viewHeight&&(y=this.pageHeight-this.viewHeight),y},o.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},o.prototype.setHeight=function(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,y){this.pageHeight===u&&!y||(this.pageHeight=u,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},o.prototype.setScrollTop=function(u){this.scrollTop=u,u<0&&(u=0),this.thumbTop=u*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},o}(s);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var a=function(c){h(o,c);function o(u,y){var b=c.call(this,u,"-h")||this;return b.scrollLeft=0,b.scrollWidth=0,b.height=b.HScrollHeight,b.inner.style.height=b.element.style.height=(b.height||12)+"px",b.renderer=y,b}return o.prototype.onMouseDown=function(u,y){if(u==="mousedown"&&!(d.getButton(y)!==0||y.detail===2)){if(y.target===this.inner){var b=this,x=y.clientX,E=function(T){x=T.clientX},C=function(){clearInterval(L)},k=y.clientX,w=this.thumbLeft,A=function(){if(x!==void 0){var T=b.scrollLeftFromThumbLeft(w+x-k);T!==b.scrollLeft&&b._emit("scroll",{data:T})}};d.capture(this.inner,E,C);var L=setInterval(A,20);return d.preventDefault(y)}var I=y.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(I)}),d.preventDefault(y)}},o.prototype.getHeight=function(){return this.isVisible?this.height:0},o.prototype.scrollLeftFromThumbLeft=function(u){var y=u*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return y=y>>0,y<0?y=0:y>this.pageWidth-this.viewWidth&&(y=this.pageWidth-this.viewWidth),y},o.prototype.setWidth=function(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,y){this.pageWidth===u&&!y||(this.pageWidth=u,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},o.prototype.setScrollLeft=function(u){this.scrollLeft=u,u<0&&(u=0),this.thumbLeft=u*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},o}(s);a.prototype.setInnerWidth=a.prototype.setScrollWidth,r.ScrollBar=l,r.ScrollBarV=l,r.ScrollBarH=a,r.VScrollBar=l,r.HScrollBar=a}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(t,r,f){var h=t("./lib/event"),p=function(){function v(d,g){this.onRender=d,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=g||window;var s=this;this._flush=function(l){s.pending=!1;var a=s.changes;if(a&&(h.blockIdle(100),s.changes=0,s.onRender(a)),s.changes){if(s.$recursionLimit--<0)return;s.schedule()}else s.$recursionLimit=2}}return v.prototype.schedule=function(d){this.changes=this.changes|d,this.changes&&!this.pending&&(h.nextFrame(this._flush),this.pending=!0)},v.prototype.clear=function(d){var g=this.changes;return this.changes=0,g},v}();r.RenderLoop=p}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(t,r,f){var h=t("../lib/oop"),p=t("../lib/dom"),v=t("../lib/lang"),d=t("../lib/event"),g=t("../lib/useragent"),s=t("../lib/event_emitter").EventEmitter,l=512,a=typeof ResizeObserver=="function",c=200,o=function(){function u(y){this.el=p.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=p.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=p.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),y.appendChild(this.el),this.$measureNode.textContent=v.stringRepeat("X",l),this.$characterSize={width:0,height:0},a?this.$addObserver():this.checkForSizeChanges()}return u.prototype.$setMeasureNodeStyles=function(y,b){y.width=y.height="auto",y.left=y.top="0px",y.visibility="hidden",y.position="absolute",y.whiteSpace="pre",g.isIE<8?y["font-family"]="inherit":y.font="inherit",y.overflow=b?"hidden":"visible"},u.prototype.checkForSizeChanges=function(y){if(y===void 0&&(y=this.$measureSizes()),y&&(this.$characterSize.width!==y.width||this.$characterSize.height!==y.height)){this.$measureNode.style.fontWeight="bold";var b=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=y,this.charSizes=Object.create(null),this.allowBoldFonts=b&&b.width===y.width&&b.height===y.height,this._emit("changeCharacterSize",{data:y})}},u.prototype.$addObserver=function(){var y=this;this.$observer=new window.ResizeObserver(function(b){y.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var y=this;return this.$pollSizeChangesTimer=d.onIdle(function b(){y.checkForSizeChanges(),d.onIdle(b,500)},500)},u.prototype.setPolling=function(y){y?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(y){var b={height:(y||this.$measureNode).clientHeight,width:(y||this.$measureNode).clientWidth/l};return b.width===0||b.height===0?null:b},u.prototype.$measureCharWidth=function(y){this.$main.textContent=v.stringRepeat(y,l);var b=this.$main.getBoundingClientRect();return b.width/l},u.prototype.getCharacterWidth=function(y){var b=this.charSizes[y];return b===void 0&&(b=this.charSizes[y]=this.$measureCharWidth(y)/this.$characterSize.width),b},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(y){return!y||!y.parentElement?1:(Number(window.getComputedStyle(y).zoom)||1)*this.$getZoom(y.parentElement)},u.prototype.$initTransformMeasureNodes=function(){var y=function(b,x){return["div",{style:"position: absolute;top:"+b+"px;left:"+x+"px;"}]};this.els=p.buildDom([y(0,0),y(c,0),y(0,c),y(c,c)],this.el)},u.prototype.transformCoordinates=function(y,b){if(y){var x=this.$getZoom(this.el);y=w(1/x,y)}function E(V,q,X){var G=V[1]*q[0]-V[0]*q[1];return[(-q[1]*X[0]+q[0]*X[1])/G,(+V[1]*X[0]-V[0]*X[1])/G]}function C(V,q){return[V[0]-q[0],V[1]-q[1]]}function k(V,q){return[V[0]+q[0],V[1]+q[1]]}function w(V,q){return[V*q[0],V*q[1]]}this.els||this.$initTransformMeasureNodes();function A(V){var q=V.getBoundingClientRect();return[q.left,q.top]}var L=A(this.els[0]),I=A(this.els[1]),T=A(this.els[2]),N=A(this.els[3]),S=E(C(N,I),C(N,T),C(k(I,T),k(N,L))),_=w(1+S[0],C(I,L)),$=w(1+S[1],C(T,L));if(b){var R=b,O=S[0]*R[0]/c+S[1]*R[1]/c+1,F=k(w(R[0],_),w(R[1],$));return k(w(1/O/c,F),L)}var B=C(y,L),W=E(C(_,w(S[0],B)),C($,w(S[1],B)),B);return w(c,W)},u}();o.prototype.$characterSize={width:0,height:0},h.implement(o.prototype,s),r.FontMetrics=o}),ace.define("ace/css/editor-css",["require","exports","module"],function(t,r,f){f.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(t,r,f){var h=t("../lib/dom"),p=t("../lib/oop"),v=t("../lib/event_emitter").EventEmitter,d=function(){function g(s,l){this.canvas=h.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=s.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=s.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},s.element.appendChild(this.canvas)}return g.prototype.$updateDecorators=function(s){var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(s){this.maxHeight=s.maxHeight,this.lineHeight=s.lineHeight,this.canvasHeight=s.height;var a=(s.lastRow+1)*this.lineHeight;a<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight}var c=this.canvas.getContext("2d");function o(N,S){return N.priority<S.priority?-1:N.priority>S.priority?1:0}var u=this.renderer.session.$annotations;if(c.clearRect(0,0,this.canvas.width,this.canvas.height),u){var y={info:1,warning:2,error:3};u.forEach(function(N){N.priority=y[N.type]||null}),u=u.sort(o);for(var b=this.renderer.session.$foldData,x=0;x<u.length;x++){var E=u[x].row,C=this.compensateFoldRows(E,b),k=Math.round((E-C)*this.lineHeight*this.heightRatio),w=Math.round((E-C)*this.lineHeight*this.heightRatio),A=Math.round(((E-C)*this.lineHeight+this.lineHeight)*this.heightRatio),L=A-w;if(L<this.minDecorationHeight){var I=(w+A)/2|0;I<this.halfMinDecorationHeight?I=this.halfMinDecorationHeight:I+this.halfMinDecorationHeight>this.canvasHeight&&(I=this.canvasHeight-this.halfMinDecorationHeight),w=Math.round(I-this.halfMinDecorationHeight),A=Math.round(I+this.halfMinDecorationHeight)}c.fillStyle=l[u[x].type]||null,c.fillRect(0,k,this.canvasWidth,A-w)}}var T=this.renderer.session.selection.getCursor();if(T){var C=this.compensateFoldRows(T.row,b),k=Math.round((T.row-C)*this.lineHeight*this.heightRatio);c.fillStyle="rgba(0, 0, 0, 0.5)",c.fillRect(0,k,this.canvasWidth,2)}},g.prototype.compensateFoldRows=function(s,l){var a=0;if(l&&l.length>0)for(var c=0;c<l.length;c++)s>l[c].start.row&&s<l[c].end.row?a+=s-l[c].start.row:s>=l[c].end.row&&(a+=l[c].end.row-l[c].start.row);return a},g}();p.implement(d.prototype,v),r.Decorator=d}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(t,r,f){var h=t("./lib/oop"),p=t("./lib/dom"),v=t("./lib/lang"),d=t("./config"),g=t("./layer/gutter").Gutter,s=t("./layer/marker").Marker,l=t("./layer/text").Text,a=t("./layer/cursor").Cursor,c=t("./scrollbar").HScrollBar,o=t("./scrollbar").VScrollBar,u=t("./scrollbar_custom").HScrollBar,y=t("./scrollbar_custom").VScrollBar,b=t("./renderloop").RenderLoop,x=t("./layer/font_metrics").FontMetrics,E=t("./lib/event_emitter").EventEmitter,C=t("./css/editor-css"),k=t("./layer/decorators").Decorator,w=t("./lib/useragent"),A=t("./layer/text_util").isTextToken;p.importCssString(C,"ace_editor.css",!1);var L=function(){function I(T,N){var S=this;this.container=T||p.createElement("div"),p.addCssClass(this.container,"ace_editor"),p.HI_DPI&&p.addCssClass(this.container,"ace_hidpi"),this.setTheme(N),d.get("useStrictCSP")==null&&d.set("useStrictCSP",!1),this.$gutter=p.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=p.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=p.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new g(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var _=this.$textLayer=new l(this.content);this.canvas=_.element,this.$markerFront=new s(this.content),this.$cursorLayer=new a(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function($){S.$scrollAnimation||S.session.setScrollTop($.data-S.scrollMargin.top)}),this.scrollBarH.on("scroll",function($){S.$scrollAnimation||S.session.setScrollLeft($.data-S.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function($){S.updateCharacterSize(),S.onResize(!0,S.gutterWidth,S.$size.width,S.$size.height),S._signal("changeCharacterSize",$)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!w.isIOS,this.$loop=new b(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),d.resetOptions(this),d._signal("renderer",this)}return I.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),p.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},I.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))},I.prototype.updateLines=function(T,N,S){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(S)this.$changedLines.lastRow=this.layerConfig.lastRow;else return;this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},I.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},I.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},I.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},I.prototype.updateFull=function(T){T?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},I.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},I.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},I.prototype.onResize=function(T,N,S,_){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?1:0;var $=this.container;_||(_=$.clientHeight||$.scrollHeight),!_&&this.$maxLines&&this.lineHeight>1&&(!$.style.height||$.style.height=="0px")&&($.style.height="1px",_=$.clientHeight||$.scrollHeight),S||(S=$.clientWidth||$.scrollWidth);var R=this.$updateCachedSize(T,N,S,_);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!S&&!_)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(R|this.$changes,!0):this.$loop.schedule(R|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},I.prototype.$updateCachedSize=function(T,N,S,_){_-=this.$extraHeight||0;var $=0,R=this.$size,O={width:R.width,height:R.height,scrollerHeight:R.scrollerHeight,scrollerWidth:R.scrollerWidth};if(_&&(T||R.height!=_)&&(R.height=_,$|=this.CHANGE_SIZE,R.scrollerHeight=R.height,this.$horizScroll&&(R.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(R.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",$=$|this.CHANGE_SCROLL),S&&(T||R.width!=S)){$|=this.CHANGE_SIZE,R.width=S,N==null&&(N=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=N,p.setStyle(this.scrollBarH.element.style,"left",N+"px"),p.setStyle(this.scroller.style,"left",N+this.margin.left+"px"),R.scrollerWidth=Math.max(0,S-N-this.scrollBarV.getWidth()-this.margin.h),p.setStyle(this.$gutter.style,"left",this.margin.left+"px");var F=this.scrollBarV.getWidth()+"px";p.setStyle(this.scrollBarH.element.style,"right",F),p.setStyle(this.scroller.style,"right",F),p.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(R.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&($|=this.CHANGE_FULL)}return R.$dirty=!S||!_,$&&this._signal("resize",O),$},I.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()},I.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)},I.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},I.prototype.getAnimatedScroll=function(){return this.$animatedScroll},I.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},I.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},I.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},I.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},I.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},I.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},I.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},I.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},I.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},I.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},I.prototype.getShowGutter=function(){return this.getOption("showGutter")},I.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},I.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},I.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},I.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},I.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},I.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var T=p.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=p.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()}},I.prototype.getContainerElement=function(){return this.container},I.prototype.getMouseEventTarget=function(){return this.scroller},I.prototype.getTextAreaContainer=function(){return this.container},I.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var T=this.textarea.style,N=this.$composition;if(!this.$keepTextAreaAtCursor&&!N){p.translate(this.textarea,-100,0);return}var S=this.$cursorLayer.$pixelPos;if(S){N&&N.markerRange&&(S=this.$cursorLayer.getPixelPosition(N.markerRange.start,!0));var _=this.layerConfig,$=S.top,R=S.left;$-=_.offset;var O=N&&N.useTextareaForIME||w.isMobile?this.lineHeight:1;if($<0||$>_.height-O){p.translate(this.textarea,0,0);return}var F=1,B=this.$size.height-O;if(!N)$+=this.lineHeight;else if(N.useTextareaForIME){var W=this.textarea.value;F=this.characterWidth*this.session.$getStringScreenWidth(W)[0]}else $+=this.lineHeight+2;R-=this.scrollLeft,R>this.$size.scrollerWidth-F&&(R=this.$size.scrollerWidth-F),R+=this.gutterWidth+this.margin.left,p.setStyle(T,"height",O+"px"),p.setStyle(T,"width",F+"px"),p.translate(this.textarea,Math.min(R,this.$size.scrollerWidth-F),Math.min($,B))}}},I.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},I.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},I.prototype.getLastFullyVisibleRow=function(){var T=this.layerConfig,N=T.lastRow,S=this.session.documentToScreenRow(N,0)*T.lineHeight;return S-this.session.getScrollTop()>T.height-T.lineHeight?N-1:N},I.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},I.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()},I.prototype.setScrollMargin=function(T,N,S,_){var $=this.scrollMargin;$.top=T|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,$.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-$.top),this.updateFull()},I.prototype.setMargin=function(T,N,S,_){var $=this.margin;$.top=T|0,$.bottom=N|0,$.right=_|0,$.left=S|0,$.v=$.top+$.bottom,$.h=$.left+$.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},I.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},I.prototype.setHScrollBarAlwaysVisible=function(T){this.setOption("hScrollBarAlwaysVisible",T)},I.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},I.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},I.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)},I.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},I.prototype.freeze=function(){this.$frozen=!0},I.prototype.unfreeze=function(){this.$frozen=!1},I.prototype.$renderChanges=function(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 S=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(),S.firstRow!=this.layerConfig.firstRow&&S.firstRowScreen==this.layerConfig.firstRowScreen){var _=this.scrollTop+(S.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;_>0&&(this.scrollTop=_,T=T|this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}S=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),p.translate(this.content,-this.scrollLeft,-S.offset);var $=S.width+2*this.$padding+"px",R=S.minHeight+"px";p.setStyle(this.content.style,"width",$),p.setStyle(this.content.style,"height",R)}if(T&this.CHANGE_H_SCROLL&&(p.translate(this.content,-this.scrollLeft,-S.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),T&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}if(T&this.CHANGE_SCROLL){this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update(S):this.$textLayer.scrollLines(S),this.$showGutter&&(T&this.CHANGE_GUTTER||T&this.CHANGE_LINES?this.$gutterLayer.update(S):this.$gutterLayer.scrollLines(S)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S),this.$markerBack.update(S),this.$markerFront.update(S),this.$cursorLayer.update(S),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(S),this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(S),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(S)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update(S),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(S),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(S),this._signal("afterRender",T)},I.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,N=this.$maxLines*this.lineHeight,S=Math.min(N,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(S+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&S>this.$maxPixelHeight&&(S=this.$maxPixelHeight);var _=S<=2*this.lineHeight,$=!_&&T>N;if(S!=this.desiredHeight||this.$size.height!=this.desiredHeight||$!=this.$vScroll){$!=this.$vScroll&&(this.$vScroll=$,this.scrollBarV.setVisible($));var R=this.container.clientWidth;this.container.style.height=S+"px",this.$updateCachedSize(!0,this.$gutterWidth,R,S),this.desiredHeight=S,this._signal("autosize")}},I.prototype.$computeLayerConfig=function(){var T=this.session,N=this.$size,S=N.height<=2*this.lineHeight,_=this.session.getScreenLength(),$=_*this.lineHeight,R=this.$getLongestLine(),O=!S&&(this.$hScrollBarAlwaysVisible||N.scrollerWidth-R-2*this.$padding<0),F=this.$horizScroll!==O;F&&(this.$horizScroll=O,this.scrollBarH.setVisible(O));var B=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var W=N.scrollerHeight+this.lineHeight,V=!this.$maxLines&&this.$scrollPastEnd?(N.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;$+=V;var q=this.scrollMargin;this.session.setScrollTop(Math.max(-q.top,Math.min(this.scrollTop,$-N.scrollerHeight+q.bottom))),this.session.setScrollLeft(Math.max(-q.left,Math.min(this.scrollLeft,R+2*this.$padding-N.scrollerWidth+q.right)));var X=!S&&(this.$vScrollBarAlwaysVisible||N.scrollerHeight-$+V<0||this.scrollTop>q.top),G=B!==X;G&&(this.$vScroll=X,this.scrollBarV.setVisible(X));var Z=this.scrollTop%this.lineHeight,re=Math.ceil(W/this.lineHeight)-1,J=Math.max(0,Math.round((this.scrollTop-Z)/this.lineHeight)),ae=J+re,me,ve,pe=this.lineHeight;J=T.screenToDocumentRow(J,0);var Ce=T.getFoldLine(J);Ce&&(J=Ce.start.row),me=T.documentToScreenRow(J,0),ve=T.getRowLength(J)*pe,ae=Math.min(T.screenToDocumentRow(ae,0),T.getLength()-1),W=N.scrollerHeight+T.getRowLength(ae)*pe+ve,Z=this.scrollTop-me*pe;var lt=0;return(this.layerConfig.width!=R||F)&&(lt=this.CHANGE_H_SCROLL),(F||G)&&(lt|=this.$updateCachedSize(!0,this.gutterWidth,N.width,N.height),this._signal("scrollbarVisibilityChanged"),G&&(R=this.$getLongestLine())),this.layerConfig={width:R,padding:this.$padding,firstRow:J,firstRowScreen:me,lastRow:ae,lineHeight:pe,characterWidth:this.characterWidth,minHeight:W,maxHeight:$,offset:Z,gutterOffset:pe?Math.max(0,Math.ceil((Z+N.height-N.scrollerHeight)/pe)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(R-this.$padding),lt},I.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,N=this.$changedLines.lastRow;this.$changedLines=null;var S=this.layerConfig;if(!(T>S.lastRow+1)&&!(N<S.firstRow)){if(N===1/0){this.$showGutter&&this.$gutterLayer.update(S),this.$textLayer.update(S);return}return this.$textLayer.updateLines(S,T,N),!0}}},I.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))},I.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},I.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},I.prototype.addGutterDecoration=function(T,N){this.$gutterLayer.addGutterDecoration(T,N)},I.prototype.removeGutterDecoration=function(T,N){this.$gutterLayer.removeGutterDecoration(T,N)},I.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),this.$loop.schedule(this.CHANGE_GUTTER)},I.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},I.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},I.prototype.showCursor=function(){this.$cursorLayer.showCursor()},I.prototype.scrollSelectionIntoView=function(T,N,S){this.scrollCursorIntoView(T,S),this.scrollCursorIntoView(N,S)},I.prototype.scrollCursorIntoView=function(T,N,S){if(this.$size.scrollerHeight!==0){var _=this.$cursorLayer.getPixelPosition(T),$=_.left,R=_.top,O=S&&S.top||0,F=S&&S.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var B=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;B+O>R?(N&&B+O>R+this.lineHeight&&(R-=N*this.$size.scrollerHeight),R===0&&(R=-this.scrollMargin.top),this.session.setScrollTop(R)):B+this.$size.scrollerHeight-F<R+this.lineHeight&&(N&&B+this.$size.scrollerHeight-F<R-this.lineHeight&&(R+=N*this.$size.scrollerHeight),this.session.setScrollTop(R+this.lineHeight+F-this.$size.scrollerHeight));var W=this.scrollLeft,V=2*this.layerConfig.characterWidth;$-V<W?($-=V,$<this.$padding+V&&($=-this.scrollMargin.left),this.session.setScrollLeft($)):($+=V,W+this.$size.scrollerWidth<$+this.characterWidth?this.session.setScrollLeft(Math.round($+this.characterWidth-this.$size.scrollerWidth)):W<=this.$padding&&$-W<this.characterWidth&&this.session.setScrollLeft(0))}},I.prototype.getScrollTop=function(){return this.session.getScrollTop()},I.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},I.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},I.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},I.prototype.scrollToRow=function(T){this.session.setScrollTop(T*this.lineHeight)},I.prototype.alignCursor=function(T,N){typeof T=="number"&&(T={row:T,column:0});var S=this.$cursorLayer.getPixelPosition(T),_=this.$size.scrollerHeight-this.lineHeight,$=S.top-_*(N||0);return this.session.setScrollTop($),$},I.prototype.$calcSteps=function(T,N){var S=0,_=this.STEPS,$=[],R=function(O,F,B){return B*(Math.pow(O-1,3)+1)+F};for(S=0;S<_;++S)$.push(R(S/this.STEPS,T,N-T));return $},I.prototype.scrollToLine=function(T,N,S,_){var $=this.$cursorLayer.getPixelPosition({row:T,column:0}),R=$.top;N&&(R-=this.$size.scrollerHeight/2);var O=this.scrollTop;this.session.setScrollTop(R),S!==!1&&this.animateScrolling(O,_)},I.prototype.animateScrolling=function(T,N){var S=this.scrollTop;if(!this.$animatedScroll)return;var _=this;if(T==S)return;if(this.$scrollAnimation){var $=this.$scrollAnimation.steps;if($.length&&(T=$[0],T==S))return}var R=_.$calcSteps(T,S);this.$scrollAnimation={from:T,to:S,steps:R},clearInterval(this.$timer),_.session.setScrollTop(R.shift()),_.session.$scrollTop=S;function O(){_.$timer=clearInterval(_.$timer),_.$scrollAnimation=null,_.$stopAnimation=!1,N&&N()}this.$timer=setInterval(function(){if(_.$stopAnimation){O();return}if(!_.session)return clearInterval(_.$timer);R.length?(_.session.setScrollTop(R.shift()),_.session.$scrollTop=S):S!=null?(_.session.$scrollTop=-1,_.session.setScrollTop(S),S=null):O()},10)},I.prototype.scrollToY=function(T){this.scrollTop!==T&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=T)},I.prototype.scrollToX=function(T){this.scrollLeft!==T&&(this.scrollLeft=T),this.$loop.schedule(this.CHANGE_H_SCROLL)},I.prototype.scrollTo=function(T,N){this.session.setScrollTop(N),this.session.setScrollLeft(T)},I.prototype.scrollBy=function(T,N){N&&this.session.setScrollTop(this.session.getScrollTop()+N),T&&this.session.setScrollLeft(this.session.getScrollLeft()+T)},I.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},I.prototype.pixelToScreenCoordinates=function(T,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([T,N]);T=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=T+this.scrollLeft-S.left-this.$padding,R=$/this.characterWidth,O=Math.floor((N+this.scrollTop-S.top)/this.lineHeight),F=this.$blockCursor?Math.floor(R):Math.round(R);return{row:O,column:F,side:R-F>0?1:-1,offsetX:$}},I.prototype.screenToTextCoordinates=function(T,N){var S;if(this.$hasCssTransforms){S={top:0,left:0};var _=this.$fontMetrics.transformCoordinates([T,N]);T=_[1]-this.gutterWidth-this.margin.left,N=_[0]}else S=this.scroller.getBoundingClientRect();var $=T+this.scrollLeft-S.left-this.$padding,R=$/this.characterWidth,O=this.$blockCursor?Math.floor(R):Math.round(R),F=Math.floor((N+this.scrollTop-S.top)/this.lineHeight);return this.session.screenToDocumentPosition(F,Math.max(O,0),$)},I.prototype.textToScreenCoordinates=function(T,N){var S=this.scroller.getBoundingClientRect(),_=this.session.documentToScreenPosition(T,N),$=this.$padding+(this.session.$bidiHandler.isBidiRow(_.row,T)?this.session.$bidiHandler.getPosLeft(_.column):Math.round(_.column*this.characterWidth)),R=_.row*this.lineHeight;return{pageX:S.left+$-this.scrollLeft,pageY:S.top+R-this.scrollTop}},I.prototype.visualizeFocus=function(){p.addCssClass(this.container,"ace_focus")},I.prototype.visualizeBlur=function(){p.removeCssClass(this.container,"ace_focus")},I.prototype.showComposition=function(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),T.useTextareaForIME==null&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(p.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")},I.prototype.setCompositionText=function(T){var N=this.session.selection.cursor;this.addToken(T,"composition_placeholder",N.row,N.column),this.$moveTextAreaToCursor()},I.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),p.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=""}},I.prototype.setGhostText=function(T,N){var S=this.session.selection.cursor,_=N||{row:S.row,column:S.column};this.removeGhostText();var $=this.$calculateWrappedTextChunks(T,_);this.addToken($[0].text,"ghost_text",_.row,_.column),this.$ghostText={text:T,position:{row:_.row,column:_.column}};var R=p.createElement("div");if($.length>1){var O=this.hideTokensAfterPosition(_.row,_.column),F;$.slice(1).forEach(function(G){var Z=p.createElement("div"),re=p.createElement("span");re.className="ace_ghost_text",G.wrapped&&(Z.className="ghost_text_line_wrapped"),G.text.length===0&&(G.text=" "),re.appendChild(p.createTextNode(G.text)),Z.appendChild(re),R.appendChild(Z),F=Z}),O.forEach(function(G){var Z=p.createElement("span");A(G.type)||(Z.className="ace_"+G.type.replace(/\./g," ace_")),Z.appendChild(p.createTextNode(G.value)),F.appendChild(Z)}),this.$ghostTextWidget={el:R,row:_.row,column:_.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var B=this.$cursorLayer.getPixelPosition(_,!0),W=this.container,V=W.getBoundingClientRect().height,q=$.length*this.lineHeight,X=q<V-B.top;if(X)return;q<V?this.scrollBy(0,($.length-1)*this.lineHeight):this.scrollToRow(_.row)}},I.prototype.$calculateWrappedTextChunks=function(T,N){var S=this.$size.scrollerWidth-this.$padding*2,_=Math.floor(S/this.characterWidth)-2;_=_<=0?60:_;for(var $=T.split(/\r?\n/),R=[],O=0;O<$.length;O++){var F=this.session.$getDisplayTokens($[O],N.column),B=this.session.$computeWrapSplits(F,_,this.session.$tabSize);if(B.length>0){var W=0;B.push($[O].length);for(var V=0;V<B.length;V++){var q=$[O].slice(W,B[V]);R.push({text:q,wrapped:!0}),W=B[V]}}else R.push({text:$[O],wrapped:!1})}return R},I.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}},I.prototype.addToken=function(T,N,S,_){var $=this.session;$.bgTokenizer.lines[S]=null;var R={type:N,value:T},O=$.getTokens(S);if(_==null||!O.length)O.push(R);else for(var F=0,B=0;B<O.length;B++){var W=O[B];if(F+=W.value.length,_<=F){var V=W.value.length-(F-_),q=W.value.slice(0,V),X=W.value.slice(V);O.splice(B,1,{type:W.type,value:q},R,{type:W.type,value:X});break}}this.updateLines(S,S)},I.prototype.hideTokensAfterPosition=function(T,N){for(var S=this.session.getTokens(T),_=0,$=!1,R=[],O=0;O<S.length;O++){var F=S[O];if(_+=F.value.length,F.type!=="ghost_text"){if($){R.push({type:F.type,value:F.value}),F.type="hidden_token";continue}_===N&&($=!0)}}return this.updateLines(T,T),R},I.prototype.removeExtraToken=function(T,N){this.session.bgTokenizer.lines[T]=null,this.updateLines(T,T)},I.prototype.setTheme=function(T,N){var S=this;if(this.$themeId=T,S._dispatchEvent("themeChange",{theme:T}),!T||typeof T=="string"){var _=T||this.$options.theme.initialValue;d.loadModule(["theme",_],$)}else $(T);function $(R){if(S.$themeId!=T)return N&&N();if(!R||!R.cssClass)throw new Error("couldn't load module "+T+" or it didn't call define");R.$id&&(S.$themeId=R.$id),p.importCssString(R.cssText,R.cssClass,S.container),S.theme&&p.removeCssClass(S.container,S.theme.cssClass);var O="padding"in R?R.padding:"padding"in(S.theme||{})?4:S.$padding;S.$padding&&O!=S.$padding&&S.setPadding(O),S.$theme=R.cssClass,S.theme=R,p.addCssClass(S.container,R.cssClass),p.setCssClass(S.container,"ace_dark",R.isDark),S.$size&&(S.$size.width=0,S.$updateSizeAsync()),S._dispatchEvent("themeLoaded",{theme:R}),N&&N(),w.isSafari&&S.scroller&&(S.scroller.style.background="red",S.scroller.style.background="")}},I.prototype.getTheme=function(){return this.$themeId},I.prototype.setStyle=function(T,N){p.setCssClass(this.container,T,N!==!1)},I.prototype.unsetStyle=function(T){p.removeCssClass(this.container,T)},I.prototype.setCursorStyle=function(T){p.setStyle(this.scroller.style,"cursor",T)},I.prototype.setMouseCursor=function(T){p.setStyle(this.scroller.style,"cursor",T)},I.prototype.attachToShadowRoot=function(){p.importCssString(C,"ace_editor.css",this.container)},I.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},I.prototype.$updateCustomScrollbar=function(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 y(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}),this.$scrollDecorator=new k(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new o(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollTop(S.data-N.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(S){N.$scrollAnimation||N.session.setScrollLeft(S.data-N.scrollMargin.left)}))},I.prototype.$addResizeObserver=function(){if(!(!window.ResizeObserver||this.$resizeObserver)){var T=this;this.$resizeTimer=v.delayedCall(function(){T.destroyed||T.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(N){var S=N[0].contentRect.width,_=N[0].contentRect.height;Math.abs(T.$size.width-S)>1||Math.abs(T.$size.height-_)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},I}();L.prototype.CHANGE_CURSOR=1,L.prototype.CHANGE_MARKER=2,L.prototype.CHANGE_GUTTER=4,L.prototype.CHANGE_SCROLL=8,L.prototype.CHANGE_LINES=16,L.prototype.CHANGE_TEXT=32,L.prototype.CHANGE_SIZE=64,L.prototype.CHANGE_MARKER_BACK=128,L.prototype.CHANGE_MARKER_FRONT=256,L.prototype.CHANGE_FULL=512,L.prototype.CHANGE_H_SCROLL=1024,L.prototype.$changes=0,L.prototype.$padding=null,L.prototype.$frozen=!1,L.prototype.STEPS=8,h.implement(L.prototype,E),d.defineOptions(L.prototype,"renderer",{useResizeObserver:{set:function(I){!I&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):I&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(I){this.$textLayer.setShowInvisibles(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(I){typeof I=="number"&&(this.$printMarginColumn=I),this.$showPrintMargin=!!I,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(I){this.$gutter.style.display=I?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(I){this.$gutterLayer.$useSvgGutterIcons=I},initialValue:!1},showFoldedAnnotations:{set:function(I){this.$gutterLayer.$showFoldedAnnotations=I},initialValue:!1},fadeFoldWidgets:{set:function(I){p.setCssClass(this.$gutter,"ace_fade-fold-widgets",I)},initialValue:!1},showFoldWidgets:{set:function(I){this.$gutterLayer.setShowFoldWidgets(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(I){this.$textLayer.setDisplayIndentGuides(I)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(I){this.$textLayer.setHighlightIndentGuides(I)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(I){this.$gutterLayer.setHighlightGutterLine(I),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(I){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(I){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(I){typeof I=="number"&&(I=I+"px"),this.container.style.fontSize=I,this.updateFontSize()},initialValue:12},fontFamily:{set:function(I){this.container.style.fontFamily=I,this.updateFontSize()}},maxLines:{set:function(I){this.updateFull()}},minLines:{set:function(I){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(I){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(I){I=+I||0,this.$scrollPastEnd!=I&&(this.$scrollPastEnd=I,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(I){this.$gutterLayer.$fixedWidth=!!I,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(I){this.$updateCustomScrollbar(I)},initialValue:!1},theme:{set:function(I){this.setTheme(I)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),r.VirtualRenderer=L}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(t,r,f){var h=t("../lib/oop"),p=t("../lib/net"),v=t("../lib/event_emitter").EventEmitter,d=t("../config");function g(c){var o="importScripts('"+p.qualifyURL(c)+"');";try{return new Blob([o],{type:"application/javascript"})}catch{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,y=new u;return y.append(o),y.getBlob("application/javascript")}}function s(c){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(d.get("loadWorkerFromBlob")){var o=g(c),u=window.URL||window.webkitURL,y=u.createObjectURL(o);return new Worker(y)}return new Worker(c)}var l=function(c){c.postMessage||(c=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=c,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){h.implement(this,v),this.$createWorkerFromOldConfig=function(c,o,u,y,b){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),d.get("packaged")||!t.toUrl)y=y||d.moduleUrl(o,"worker");else{var x=this.$normalizePath;y=y||x(t.toUrl("ace/worker/worker.js",null,"_"));var E={};c.forEach(function(C){E[C]=x(t.toUrl(C,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=s(y),b&&this.send("importScripts",b),this.$worker.postMessage({init:!0,tlns:E,module:o,classname:u}),this.$worker},this.onMessage=function(c){var o=c.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var u=this.callbacks[o.id];u&&(u(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(c){window.console&&console.error&&console.error(c)},this.$normalizePath=function(c){return p.qualifyURL(c)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(c){c.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(c,o){this.$worker.postMessage({command:c,args:o})},this.call=function(c,o,u){if(u){var y=this.callbackId++;this.callbacks[y]=u,o.push(y)}this.send(c,o)},this.emit=function(c,o){try{o.data&&o.data.err&&(o.data.err={message:o.data.err.message,stack:o.data.err.stack,code:o.data.err.code}),this.$worker&&this.$worker.postMessage({event:c,data:{data:o.data}})}catch(u){console.error(u.stack)}},this.attachToDocument=function(c){this.$doc&&this.terminate(),this.$doc=c,this.call("setValue",[c.getValue()]),c.on("change",this.changeListener,!0)},this.changeListener=function(c){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),c.action=="insert"?this.deltaQueue.push(c.start,c.lines):this.deltaQueue.push(c.start,c.end)},this.$sendDeltaQueue=function(){var c=this.deltaQueue;c&&(this.deltaQueue=null,c.length>50&&c.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:c}))}}).call(l.prototype);var a=function(c,o,u){var y=null,b=!1,x=Object.create(v),E=[],C=new l({messageBuffer:E,terminate:function(){},postMessage:function(w){E.push(w),y&&(b?setTimeout(k):k())}});C.setEmitSync=function(w){b=w};var k=function(){var w=E.shift();w.command?y[w.command].apply(y,w.args):w.event&&x._signal(w.event,w.data)};return x.postMessage=function(w){C.onMessage({data:w})},x.callback=function(w,A){this.postMessage({type:"call",id:A,data:w})},x.emit=function(w,A){this.postMessage({type:"event",name:w,data:A})},d.loadModule(["worker",o],function(w){for(y=new w[u](x);E.length;)k()}),C};r.UIWorkerClient=a,r.WorkerClient=l,r.createWorker=s}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(t,r,f){var h=t("./range").Range,p=t("./lib/event_emitter").EventEmitter,v=t("./lib/oop"),d=function(){function g(s,l,a,c,o,u){var y=this;this.length=l,this.session=s,this.doc=s.getDocument(),this.mainClass=o,this.othersClass=u,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=c,this.$onCursorChange=function(){setTimeout(function(){y.onCursorChange()})},this.$pos=a;var b=s.getUndoManager().$undoStack||s.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=b.length,this.setup(),s.selection.on("changeCursor",this.$onCursorChange)}return g.prototype.setup=function(){var s=this,l=this.doc,a=this.session;this.selectionBefore=a.selection.toJSON(),a.selection.inMultiSelectMode&&a.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var c=this.pos;c.$insertRight=!0,c.detach(),c.markerId=a.addMarker(new h(c.row,c.column,c.row,c.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(o){var u=l.createAnchor(o.row,o.column);u.$insertRight=!0,u.detach(),s.others.push(u)}),a.setUndoSelect(!1)},g.prototype.showOtherMarkers=function(){if(!this.othersActive){var s=this.session,l=this;this.othersActive=!0,this.others.forEach(function(a){a.markerId=s.addMarker(new h(a.row,a.column,a.row,a.column+l.length),l.othersClass,null,!1)})}},g.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var s=0;s<this.others.length;s++)this.session.removeMarker(this.others[s].markerId)}},g.prototype.onUpdate=function(s){if(this.$updating)return this.updateAnchors(s);var l=s;if(l.start.row===l.end.row&&l.start.row===this.pos.row){this.$updating=!0;var a=s.action==="insert"?l.end.column-l.start.column:l.start.column-l.end.column,c=l.start.column>=this.pos.column&&l.start.column<=this.pos.column+this.length+1,o=l.start.column-this.pos.column;if(this.updateAnchors(s),c&&(this.length+=a),c&&!this.session.$fromUndo){if(s.action==="insert")for(var u=this.others.length-1;u>=0;u--){var y=this.others[u],b={row:y.row,column:y.column+o};this.doc.insertMergedLines(b,s.lines)}else if(s.action==="remove")for(var u=this.others.length-1;u>=0;u--){var y=this.others[u],b={row:y.row,column:y.column+o};this.doc.remove(new h(b.row,b.column,b.row,b.column-a))}}this.$updating=!1,this.updateMarkers()}},g.prototype.updateAnchors=function(s){this.pos.onChange(s);for(var l=this.others.length;l--;)this.others[l].onChange(s);this.updateMarkers()},g.prototype.updateMarkers=function(){if(!this.$updating){var s=this,l=this.session,a=function(o,u){l.removeMarker(o.markerId),o.markerId=l.addMarker(new h(o.row,o.column,o.row,o.column+s.length),u,null,!1)};a(this.pos,this.mainClass);for(var c=this.others.length;c--;)a(this.others[c],this.othersClass)}},g.prototype.onCursorChange=function(s){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",s)):(this.hideOtherMarkers(),this._emit("cursorLeave",s))}},g.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},g.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var s=this.session.getUndoManager(),l=(s.$undoStack||s.$undostack).length-this.$undoStackDepth,a=0;a<l;a++)s.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},g}();v.implement(d.prototype,p),r.PlaceHolder=d}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,f){var h=t("../lib/event"),p=t("../lib/useragent");function v(g,s){return g.row==s.row&&g.column==s.column}function d(g){var s=g.domEvent,l=s.altKey,a=s.shiftKey,c=s.ctrlKey,o=g.getAccelKey(),u=g.getButton();if(c&&p.isMac&&(u=s.button),g.editor.inMultiSelectMode&&u==2){g.editor.textInput.onContextMenu(g.domEvent);return}if(!c&&!l&&!o){u===0&&g.editor.inMultiSelectMode&&g.editor.exitMultiSelectMode();return}if(u===0){var y=g.editor,b=y.selection,x=y.inMultiSelectMode,E=g.getDocumentPosition(),C=b.getCursor(),k=g.inSelection()||b.isEmpty()&&v(E,C),w=g.x,A=g.y,L=function(q){w=q.clientX,A=q.clientY},I=y.session,T=y.renderer.pixelToScreenCoordinates(w,A),N=T,S;if(y.$mouseHandler.$enableJumpToDef)c&&l||o&&l?S=a?"block":"add":l&&y.$blockSelectEnabled&&(S="block");else if(o&&!l){if(S="add",!x&&a)return}else l&&y.$blockSelectEnabled&&(S="block");if(S&&p.isMac&&s.ctrlKey&&y.$mouseHandler.cancelContextMenu(),S=="add"){if(!x&&k)return;if(!x){var _=b.toOrientedRange();y.addSelectionMarker(_)}var $=b.rangeList.rangeAtPoint(E);y.inVirtualSelectionMode=!0,a&&($=null,_=b.ranges[0]||_,y.removeSelectionMarker(_)),y.once("mouseup",function(){var q=b.toOrientedRange();$&&q.isEmpty()&&v($.cursor,q.cursor)?b.substractPoint(q.cursor):(a?b.substractPoint(_.cursor):_&&(y.removeSelectionMarker(_),b.addRange(_)),b.addRange(q)),y.inVirtualSelectionMode=!1})}else if(S=="block"){g.stop(),y.inVirtualSelectionMode=!0;var R,O=[],F=function(){var q=y.renderer.pixelToScreenCoordinates(w,A),X=I.screenToDocumentPosition(q.row,q.column,q.offsetX);v(N,q)&&v(X,b.lead)||(N=q,y.selection.moveToPosition(X),y.renderer.scrollCursorIntoView(),y.removeSelectionMarkers(O),O=b.rectangularRangeBlock(N,T),y.$mouseHandler.$clickSelection&&O.length==1&&O[0].isEmpty()&&(O[0]=y.$mouseHandler.$clickSelection.clone()),O.forEach(y.addSelectionMarker,y),y.updateSelectionMarkers())};x&&!o?b.toSingleRange():!x&&o&&(R=b.toOrientedRange(),y.addSelectionMarker(R)),a?T=I.documentToScreenPosition(b.lead):b.moveToPosition(E),N={row:-1,column:-1};var B=function(q){F(),clearInterval(V),y.removeSelectionMarkers(O),O.length||(O=[b.toOrientedRange()]),R&&(y.removeSelectionMarker(R),b.toSingleRange(R));for(var X=0;X<O.length;X++)b.addRange(O[X]);y.inVirtualSelectionMode=!1,y.$mouseHandler.$clickSelection=null},W=F;h.capture(y.container,L,B);var V=setInterval(function(){W()},20);return g.preventDefault()}}}r.onMouseDown=d}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(t,r,f){r.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(p){p.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(p){p.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(p){p.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(p){p.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(p){p.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(p){p.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(p){p.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(p){p.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(p){p.multiSelect.rangeCount>1?p.multiSelect.joinSelections():p.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(p){p.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(p){p.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(p){p.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],r.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(p){p.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(p){return p&&p.inMultiSelectMode}}];var h=t("../keyboard/hash_handler").HashHandler;r.keyboardHandler=new h(r.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(t,r,f){var h=t("./range_list").RangeList,p=t("./range").Range,v=t("./selection").Selection,d=t("./mouse/multi_select_handler").onMouseDown,g=t("./lib/event"),s=t("./lib/lang"),l=t("./commands/multi_select_commands");r.commands=l.defaultCommands.concat(l.multiSelectCommands);var a=t("./search").Search,c=new a;function o(C,k,w){return c.$options.wrap=!0,c.$options.needle=k,c.$options.backwards=w==-1,c.find(C)}var u=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(C,k){if(C){if(!this.inMultiSelectMode&&this.rangeCount===0){var w=this.toOrientedRange();if(this.rangeList.add(w),this.rangeList.add(C),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),k||this.fromOrientedRange(C);this.rangeList.removeAll(),this.rangeList.add(w),this.$onAddRange(w)}C.cursor||(C.cursor=C.end);var A=this.rangeList.add(C);return this.$onAddRange(C),A.length&&this.$onRemoveRange(A),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),k||this.fromOrientedRange(C)}},this.toSingleRange=function(C){C=C||this.ranges[0];var k=this.rangeList.removeAll();k.length&&this.$onRemoveRange(k),C&&this.fromOrientedRange(C)},this.substractPoint=function(C){var k=this.rangeList.substractPoint(C);if(k)return this.$onRemoveRange(k),k[0]},this.mergeOverlappingRanges=function(){var C=this.rangeList.merge();C.length&&this.$onRemoveRange(C)},this.$onAddRange=function(C){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(C),this._signal("addRange",{range:C})},this.$onRemoveRange=function(C){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var k=this.rangeList.ranges.pop();C.push(k),this.rangeCount=0}for(var w=C.length;w--;){var A=this.ranges.indexOf(C[w]);this.ranges.splice(A,1)}this._signal("removeRange",{ranges:C}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),k=k||this.ranges[0],k&&!k.isEqual(this.getRange())&&this.fromOrientedRange(k)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new h,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var C=this.ranges.length?this.ranges:[this.getRange()],k=[],w=0;w<C.length;w++){var A=C[w],L=A.start.row,I=A.end.row;if(L===I)k.push(A.clone());else{for(k.push(new p(L,A.start.column,L,this.session.getLine(L).length));++L<I;)k.push(this.getLineRange(L,!0));k.push(new p(I,0,I,A.end.column))}w==0&&!this.isBackwards()&&(k=k.reverse())}this.toSingleRange();for(var w=k.length;w--;)this.addRange(k[w])},this.joinSelections=function(){var C=this.rangeList.ranges,k=C[C.length-1],w=p.fromPoints(C[0].start,k.end);this.toSingleRange(),this.setSelectionRange(w,k.cursor==k.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var C=this.rangeList.ranges,k=C[C.length-1],w=p.fromPoints(C[0].start,k.end);this.toSingleRange(),this.setSelectionRange(w,k.cursor==k.start)}else{var A=this.session.documentToScreenPosition(this.cursor),L=this.session.documentToScreenPosition(this.anchor),I=this.rectangularRangeBlock(A,L);I.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(C,k,w){var A=[],L=C.column<k.column;if(L)var I=C.column,T=k.column,N=C.offsetX,S=k.offsetX;else var I=k.column,T=C.column,N=k.offsetX,S=C.offsetX;var _=C.row<k.row;if(_)var $=C.row,R=k.row;else var $=k.row,R=C.row;I<0&&(I=0),$<0&&($=0),$==R&&(w=!0);for(var O,F=$;F<=R;F++){var B=p.fromPoints(this.session.screenToDocumentPosition(F,I,N),this.session.screenToDocumentPosition(F,T,S));if(B.isEmpty()){if(O&&b(B.end,O))break;O=B.end}B.cursor=L?B.start:B.end,A.push(B)}if(_&&A.reverse(),!w){for(var W=A.length-1;A[W].isEmpty()&&W>0;)W--;if(W>0)for(var V=0;A[V].isEmpty();)V++;for(var q=W;q>=V;q--)A[q].isEmpty()&&A.splice(q,1)}return A}}).call(v.prototype);var y=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(C){C.cursor||(C.cursor=C.end);var k=this.getSelectionStyle();return C.marker=this.session.addMarker(C,"ace_selection",k),this.session.$selectionMarkers.push(C),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,C},this.removeSelectionMarker=function(C){if(C.marker){this.session.removeMarker(C.marker);var k=this.session.$selectionMarkers.indexOf(C);k!=-1&&this.session.$selectionMarkers.splice(k,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(C){for(var k=this.session.$selectionMarkers,w=C.length;w--;){var A=C[w];if(A.marker){this.session.removeMarker(A.marker);var L=k.indexOf(A);L!=-1&&k.splice(L,1)}}this.session.selectionMarkerCount=k.length},this.$onAddRange=function(C){this.addSelectionMarker(C.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(C){this.removeSelectionMarkers(C.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(C){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(C){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(C){var k=C.command,w=C.editor;if(w.multiSelect){if(k.multiSelectAction)k.multiSelectAction=="forEach"?A=w.forEachSelection(k,C.args):k.multiSelectAction=="forEachLine"?A=w.forEachSelection(k,C.args,!0):k.multiSelectAction=="single"?(w.exitMultiSelectMode(),A=k.exec(w,C.args||{})):A=k.multiSelectAction(w,C.args||{});else{var A=k.exec(w,C.args||{});w.multiSelect.addRange(w.multiSelect.toOrientedRange()),w.multiSelect.mergeOverlappingRanges()}return A}},this.forEachSelection=function(C,k,w){if(!this.inVirtualSelectionMode){var A=w&&w.keepOrder,L=w==!0||w&&w.$byLines,I=this.session,T=this.selection,N=T.rangeList,S=(A?T:N).ranges,_;if(!S.length)return C.exec?C.exec(this,k||{}):C(this,k||{});var $=T._eventRegistry;T._eventRegistry={};var R=new v(I);this.inVirtualSelectionMode=!0;for(var O=S.length;O--;){if(L)for(;O>0&&S[O].start.row==S[O-1].end.row;)O--;R.fromOrientedRange(S[O]),R.index=O,this.selection=I.selection=R;var F=C.exec?C.exec(this,k||{}):C(this,k||{});!_&&F!==void 0&&(_=F),R.toOrientedRange(S[O])}R.detach(),this.selection=I.selection=T,this.inVirtualSelectionMode=!1,T._eventRegistry=$,T.mergeOverlappingRanges(),T.ranges[0]&&T.fromOrientedRange(T.ranges[0]);var B=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),B&&B.from==B.to&&this.renderer.animateScrolling(B.from),_}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var C="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var k=this.multiSelect.rangeList.ranges,w=[],A=0;A<k.length;A++)w.push(this.session.getTextRange(k[A]));var L=this.session.getDocument().getNewLineCharacter();C=w.join(L),C.length==(w.length-1)*L.length&&(C="")}else this.selection.isEmpty()||(C=this.session.getTextRange(this.getSelectionRange()));return C},this.$checkMultiselectChange=function(C,k){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var w=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&k==this.multiSelect.anchor)return;var A=k==this.multiSelect.anchor?w.cursor==w.start?w.end:w.start:w.cursor;A.row!=k.row||this.session.$clipPositionToDocument(A.row,A.column).column!=k.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(C,k,w){if(k=k||{},k.needle=C||k.needle,k.needle==null){var A=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();k.needle=this.session.getTextRange(A)}this.$search.set(k);var L=this.$search.findAll(this.session);if(!L.length)return 0;var I=this.multiSelect;w||I.toSingleRange(L[0]);for(var T=L.length;T--;)I.addRange(L[T],!0);return A&&I.rangeList.rangeAtPoint(A.start)&&I.addRange(A,!0),L.length},this.selectMoreLines=function(C,k){var w=this.selection.toOrientedRange(),A=w.cursor==w.end,L=this.session.documentToScreenPosition(w.cursor);this.selection.$desiredColumn&&(L.column=this.selection.$desiredColumn);var I=this.session.screenToDocumentPosition(L.row+C,L.column);if(w.isEmpty())var N=I;else var T=this.session.documentToScreenPosition(A?w.end:w.start),N=this.session.screenToDocumentPosition(T.row+C,T.column);if(A){var S=p.fromPoints(I,N);S.cursor=S.start}else{var S=p.fromPoints(N,I);S.cursor=S.end}if(S.desiredColumn=L.column,!this.selection.inMultiSelectMode)this.selection.addRange(w);else if(k)var _=w.cursor;this.selection.addRange(S),_&&this.selection.substractPoint(_)},this.transposeSelections=function(C){for(var k=this.session,w=k.multiSelect,A=w.ranges,L=A.length;L--;){var I=A[L];if(I.isEmpty()){var T=k.getWordRange(I.start.row,I.start.column);I.start.row=T.start.row,I.start.column=T.start.column,I.end.row=T.end.row,I.end.column=T.end.column}}w.mergeOverlappingRanges();for(var N=[],L=A.length;L--;){var I=A[L];N.unshift(k.getTextRange(I))}C<0?N.unshift(N.pop()):N.push(N.shift());for(var L=A.length;L--;){var I=A[L],S=I.clone();k.replace(I,N[L]),I.start.row=S.start.row,I.start.column=S.start.column}w.fromOrientedRange(w.ranges[0])},this.selectMore=function(C,k,w){var A=this.session,L=A.multiSelect,I=L.toOrientedRange();if(!(I.isEmpty()&&(I=A.getWordRange(I.start.row,I.start.column),I.cursor=C==-1?I.start:I.end,this.multiSelect.addRange(I),w))){var T=A.getTextRange(I),N=o(A,T,C);N&&(N.cursor=C==-1?N.start:N.end,this.session.unfold(N),this.multiSelect.addRange(N),this.renderer.scrollCursorIntoView(null,.5)),k&&this.multiSelect.substractPoint(I.cursor)}},this.alignCursors=function(){var C=this.session,k=C.multiSelect,w=k.ranges,A=-1,L=w.filter(function(W){if(W.cursor.row==A)return!0;A=W.cursor.row});if(!w.length||L.length==w.length-1){var I=this.selection.getRange(),T=I.start.row,N=I.end.row,S=T==N;if(S){var _=this.session.getLength(),$;do $=this.session.getLine(N);while(/[=:]/.test($)&&++N<_);do $=this.session.getLine(T);while(/[=:]/.test($)&&--T>0);T<0&&(T=0),N>=_&&(N=_-1)}var R=this.session.removeFullLines(T,N);R=this.$reAlignText(R,S),this.session.insert({row:T,column:0},R.join(`
936
+ `)+`
937
+ `),S||(I.start.column=0,I.end.column=R[R.length-1].length),this.selection.setRange(I)}else{L.forEach(function(W){k.substractPoint(W.cursor)});var O=0,F=1/0,B=w.map(function(W){var V=W.cursor,q=C.getLine(V.row),X=q.substr(V.column).search(/\S/g);return X==-1&&(X=0),V.column>O&&(O=V.column),X<F&&(F=X),X});w.forEach(function(W,V){var q=W.cursor,X=O-q.column,G=B[V]-F;X>G?C.insert(q,s.stringRepeat(" ",X-G)):C.remove(new p(q.row,q.column,q.row,q.column-X+G)),W.start.column=W.end.column=O,W.start.row=W.end.row=q.row,W.cursor=W.end}),k.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(C,k){var w=!0,A=!0,L,I,T;return C.map(function(R){var O=R.match(/(\s*)(.*?)(\s*)([=:].*)/);return O?L==null?(L=O[1].length,I=O[2].length,T=O[3].length,O):(L+I+T!=O[1].length+O[2].length+O[3].length&&(A=!1),L!=O[1].length&&(w=!1),L>O[1].length&&(L=O[1].length),I<O[2].length&&(I=O[2].length),T>O[3].length&&(T=O[3].length),O):[R]}).map(k?S:w?A?_:S:$);function N(R){return s.stringRepeat(" ",R)}function S(R){return R[2]?N(L)+R[2]+N(I-R[2].length+T)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function _(R){return R[2]?N(L+I-R[2].length)+R[2]+N(T)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}function $(R){return R[2]?N(L)+R[2]+N(T)+R[4].replace(/^([=:])\s+/,"$1 "):R[0]}}}).call(y.prototype);function b(C,k){return C.row==k.row&&C.column==k.column}r.onSessionChange=function(C){var k=C.session;k&&!k.multiSelect&&(k.$selectionMarkers=[],k.selection.$initRangeList(),k.multiSelect=k.selection),this.multiSelect=k&&k.multiSelect;var w=C.oldSession;w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.multiSelect.anchor.off("change",this.$checkMultiselectChange)),k&&(k.multiSelect.on("addRange",this.$onAddRange),k.multiSelect.on("removeRange",this.$onRemoveRange),k.multiSelect.on("multiSelect",this.$onMultiSelect),k.multiSelect.on("singleSelect",this.$onSingleSelect),k.multiSelect.lead.on("change",this.$checkMultiselectChange),k.multiSelect.anchor.on("change",this.$checkMultiselectChange)),k&&this.inMultiSelectMode!=k.selection.inMultiSelectMode&&(k.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(C){C.$multiselectOnSessionChange||(C.$onAddRange=C.$onAddRange.bind(C),C.$onRemoveRange=C.$onRemoveRange.bind(C),C.$onMultiSelect=C.$onMultiSelect.bind(C),C.$onSingleSelect=C.$onSingleSelect.bind(C),C.$multiselectOnSessionChange=r.onSessionChange.bind(C),C.$checkMultiselectChange=C.$checkMultiselectChange.bind(C),C.$multiselectOnSessionChange(C),C.on("changeSession",C.$multiselectOnSessionChange),C.on("mousedown",d),C.commands.addCommands(l.defaultCommands),E(C))}function E(C){if(!C.textInput)return;var k=C.textInput.getElement(),w=!1;g.addListener(k,"keydown",function(L){var I=L.keyCode==18&&!(L.ctrlKey||L.shiftKey||L.metaKey);C.$blockSelectEnabled&&I?w||(C.renderer.setMouseCursor("crosshair"),w=!0):w&&A()},C),g.addListener(k,"keyup",A,C),g.addListener(k,"blur",A,C);function A(L){w&&(C.renderer.setMouseCursor(""),w=!1)}}r.MultiSelect=x,t("./config").defineOptions(y.prototype,"editor",{enableMultiselect:{set:function(C){x(this),C?this.on("mousedown",d):this.off("mousedown",d)},value:!0},enableBlockSelect:{set:function(C){this.$blockSelectEnabled=C},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(t,r,f){var h=t("../../range").Range,p=r.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(v,d,g){var s=v.getLine(g);return this.foldingStartMarker.test(s)?"start":d=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(s)?"end":""},this.getFoldWidgetRange=function(v,d,g){return null},this.indentationBlock=function(v,d,g){var s=/\S/,l=v.getLine(d),a=l.search(s);if(a!=-1){for(var c=g||l.length,o=v.getLength(),u=d,y=d;++d<o;){var b=v.getLine(d).search(s);if(b!=-1){if(b<=a){var x=v.getTokenAt(d,0);if(!x||x.type!=="string")break}y=d}}if(y>u){var E=v.getLine(y).length;return new h(u,c,y,E)}}},this.openingBracketBlock=function(v,d,g,s,l){var a={row:g,column:s+1},c=v.$findClosingBracket(d,a,l);if(c){var o=v.foldWidgets[c.row];return o==null&&(o=v.getFoldWidget(c.row)),o=="start"&&c.row>a.row&&(c.row--,c.column=v.getLine(c.row).length),h.fromPoints(a,c)}},this.closingBracketBlock=function(v,d,g,s,l){var a={row:g,column:s},c=v.$findOpeningBracket(d,a);if(c)return c.column++,a.column--,h.fromPoints(c,a)}}).call(p.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/lib/dom","ace/range","ace/config"],function(t,r,f){var h=t("../lib/dom"),p=t("../range").Range,v=t("../config").nls;function d(s,l,a){for(var c=0,o=s.length-1;c<=o;){var u=c+o>>1,y=a(l,s[u]);if(y>0)c=u+1;else if(y<0)o=u-1;else return u}return-(c+1)}function g(s,l,a){var c=s.getAnnotations().sort(p.comparePoints);if(c.length){var o=d(c,{row:l,column:-1},p.comparePoints);o<0&&(o=-o-1),o>=c.length?o=a>0?0:c.length-1:o===0&&a<0&&(o=c.length-1);var u=c[o];if(!(!u||!a)){if(u.row===l){do u=c[o+=a];while(u&&u.row===l);if(!u)return c.slice()}var y=[];l=u.row;do y[a<0?"unshift":"push"](u),u=c[o+=a];while(u&&u.row==l);return y.length&&y}}}r.showErrorMarker=function(s,l){var a=s.session,c=s.getCursorPosition(),o=c.row,u=a.widgetManager.getWidgetsAtRow(o).filter(function(L){return L.type=="errorMarker"})[0];u?u.destroy():o-=l;var y=g(a,o,l),b;if(y){var x=y[0];c.column=(x.pos&&typeof x.column!="number"?x.pos.sc:x.column)||0,c.row=x.row,b=s.renderer.$gutterLayer.$annotations[c.row]}else{if(u)return;b={displayText:[v("error-marker.good-state","Looks good!")],className:"ace_ok"}}s.session.unfold(c.row),s.selection.moveToPosition(c);var E={row:c.row,fixedWidth:!0,coverGutter:!0,el:h.createElement("div"),type:"errorMarker"},C=E.el.appendChild(h.createElement("div")),k=E.el.appendChild(h.createElement("div"));k.className="error_widget_arrow "+b.className;var w=s.renderer.$cursorLayer.getPixelPosition(c).left;k.style.left=w+s.renderer.gutterWidth-5+"px",E.el.className="error_widget_wrapper",C.className="error_widget "+b.className,b.displayText.forEach(function(L,I){C.appendChild(h.createTextNode(L)),I<b.displayText.length-1&&C.appendChild(h.createElement("br"))}),C.appendChild(h.createElement("div"));var A=function(L,I,T){if(I===0&&(T==="esc"||T==="return"))return E.destroy(),{command:"null"}};E.destroy=function(){s.$mouseHandler.isMousePressed||(s.keyBinding.removeKeyboardHandler(A),a.widgetManager.removeLineWidget(E),s.off("changeSelection",E.destroy),s.off("changeSession",E.destroy),s.off("mouseup",E.destroy),s.off("change",E.destroy))},s.keyBinding.addKeyboardHandler(A),s.on("changeSelection",E.destroy),s.on("changeSession",E.destroy),s.on("mouseup",E.destroy),s.on("change",E.destroy),s.session.widgetManager.addLineWidget(E),E.el.onmousedown=s.focus.bind(s),s.renderer.scrollCursorIntoView(null,.5,{bottom:E.el.offsetHeight})},h.importCssString(`
938
+ .error_widget_wrapper {
939
+ background: inherit;
940
+ color: inherit;
941
+ border:none
942
+ }
943
+ .error_widget {
944
+ border-top: solid 2px;
945
+ border-bottom: solid 2px;
946
+ margin: 5px 0;
947
+ padding: 10px 40px;
948
+ white-space: pre-wrap;
949
+ }
950
+ .error_widget.ace_error, .error_widget_arrow.ace_error{
951
+ border-color: #ff5a5a
952
+ }
953
+ .error_widget.ace_warning, .error_widget_arrow.ace_warning{
954
+ border-color: #F1D817
955
+ }
956
+ .error_widget.ace_info, .error_widget_arrow.ace_info{
957
+ border-color: #5a5a5a
958
+ }
959
+ .error_widget.ace_ok, .error_widget_arrow.ace_ok{
960
+ border-color: #5aaa5a
961
+ }
962
+ .error_widget_arrow {
963
+ position: absolute;
964
+ border: solid 5px;
965
+ border-top-color: transparent!important;
966
+ border-right-color: transparent!important;
967
+ border-left-color: transparent!important;
968
+ top: -5px;
969
+ }
970
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(t,r,f){t("./loader_build")(r);var h=t("./lib/dom"),p=t("./range").Range,v=t("./editor").Editor,d=t("./edit_session").EditSession,g=t("./undomanager").UndoManager,s=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),r.config=t("./config"),r.edit=function(a,c){if(typeof a=="string"){var o=a;if(a=document.getElementById(o),!a)throw new Error("ace.edit can't find div #"+o)}if(a&&a.env&&a.env.editor instanceof v)return a.env.editor;var u="";if(a&&/input|textarea/i.test(a.tagName)){var y=a;u=y.value,a=h.createElement("pre"),y.parentNode.replaceChild(a,y)}else a&&(u=a.textContent,a.innerHTML="");var b=r.createEditSession(u),x=new v(new s(a),b,c),E={document:b,editor:x,onResize:x.resize.bind(x,null)};return y&&(E.textarea=y),x.on("destroy",function(){E.editor.container.env=null}),x.container.env=x.env=E,x},r.createEditSession=function(a,c){var o=new d(a,c);return o.setUndoManager(new g),o},r.Range=p,r.Editor=v,r.EditSession=d,r.UndoManager=g,r.VirtualRenderer=s;var l=r.config.version;r.version=l}),function(){ace.require(["ace/ace"],function(t){t&&(t.config.init(!0),t.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=t);for(var f in t)t.hasOwnProperty(f)&&(r.ace[f]=t[f]);r.ace.default=r.ace,n.exports=r.ace})}()}(If)),If.exports}var oo=Dn("E",Sw()),Df={exports:{}},Nf;function $w(){return Nf||(Nf=1,function(n,e){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,f){var h=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,v=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var d=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},g=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},s=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},a=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},y=function(){var b="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",E="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",C="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":E,"variable.language":C,"support.function":b,"invalid.deprecated":"debugger"},"identifier"),w=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,A={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:w},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:w},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(L,I,T){T.length&&(T=[]);var N=L[L.length-1];return T.unshift(N,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(L,I,T){T.length&&(T=[]);var N=L[L.length-1];return T.unshift(N,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(L,I,T){T.length&&(T=[]);var N=L[L.length-1];return T.unshift(N,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(L,I,T){T.length&&(T=[]);var N=L[L.length-1];return T.unshift(N,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(L,I,T){T.length&&(T=[]);var N=L[L.length-1];return T.unshift(N,I),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},u,{token:"variable.global",regex:"[$][a-zA-Z_\\d]+"},{token:"support.class",regex:"[A-Z][a-zA-Z_\\d]*"},{token:["punctuation.operator","support.function"],regex:/(\.)([a-zA-Z_\d]+)(?=\()/},{token:["punctuation.operator","identifier"],regex:/(\.)([a-zA-Z_][a-zA-Z_\d]*)/},{token:"string.character",regex:"\\B\\?(?:"+w+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},a,c,v,d,o,g,s,l,{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:k,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"punctuation.separator.key-value",regex:"=>"},{stateName:"heredoc",onMatch:function(L,I,T){var N=L[2]=="-"||L[2]=="~"?"indentedHeredoc":"heredoc",S=L.split(this.splitRegex);return T.push(N,S[3]),[{type:"constant",value:S[1]},{type:"string",value:S[2]},{type:"support.class",value:S[3]},{type:"string",value:S[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(L,I,T){return L===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(L,I,T){return L===T[1]?(T.shift(),T.shift(),this.next=T[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(L,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:L}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(L,I,T){return this.next="",L=="}"&&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(L,I,T){return T.length&&L===T[0]?(T.unshift(L,I),this.token):"string"}},{token:"constant.language.escape",regex:w},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(L,I,T){return T.length&&L===A[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(L,I,T){return T.length&&L===T[0]?(T.unshift(L,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(L,I,T){return T.length&&L===A[T[0]]?(T.shift(),this.next=T.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(L,I,T){return T.length&&L===T[0]?(T.unshift(L,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(L,I,T){return T.length&&L===A[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(L,I,T){return T.length&&L===T[0]?(T.unshift(L,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:w},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(L,I,T){return T.length&&L===A[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(L,I,T){return T.length&&L===T[0]?(T.unshift(L,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(L,I,T){return T.length&&L[0]===A[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()};h.inherits(y,p),r.RubyHighlightRules=y}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,f){var h=t("../range").Range,p=function(){};(function(){this.checkOutdent=function(v,d){return/^\s+$/.test(v)?/^\s*\}/.test(d):!1},this.autoOutdent=function(v,d){var g=v.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=v.findMatchingBracket({row:d,column:l});if(!a||a.row==d)return 0;var c=this.$getIndent(v.getLine(a.row));v.replace(new h(d,0,d,l-1),c)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(p.prototype),r.MatchingBraceOutdent=p}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(t,r,f){var h=t("../../lib/oop"),p=t("./fold_mode").FoldMode,v=t("../../range").Range,d=t("../../token_iterator").TokenIterator,g=r.FoldMode=function(){};h.inherits(g,p),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(s,l,a){var c=s.getLine(a),o=this.foldingStartMarker.test(c),u=this.foldingStopMarker.test(c);if(o&&!u){var y=c.match(this.foldingStartMarker);if(y[1]){if((y[1]=="if"||y[1]=="else"||y[1]=="while"||y[1]=="until"||y[1]=="unless")&&(y[1]=="else"&&/^\s*else\s*$/.test(c)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(c)===!1)||y[1]=="when"&&/\sthen\s/.test(c)===!0)return;if(s.getTokenAt(a,y.index+2).type==="keyword")return"start"}else if(!y[3]||s.getTokenAt(a,y.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!u||o&&u)return"";var y=c.match(this.foldingStopMarker);if(y[3]==="end"){if(s.getTokenAt(a,y.index+1).type==="keyword")return"end"}else if(!y[1]||s.getTokenAt(a,y.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(s,l,a){var c=s.doc.getLine(a),o=this.foldingStartMarker.exec(c);if(o)return o[1]||o[3]?this.rubyBlock(s,a,o.index+2):this.openingBracketBlock(s,"{",a,o.index);var o=this.foldingStopMarker.exec(c);if(o)return o[3]==="end"&&s.getTokenAt(a,o.index+1).type==="keyword"?this.rubyBlock(s,a,o.index+1):o[1]==="=end"&&s.getTokenAt(a,o.index+1).type==="comment.multiline"?this.rubyBlock(s,a,o.index+1):this.closingBracketBlock(s,"}",a,o.index+o[0].length)},this.rubyBlock=function(s,l,a,c){var o=new d(s,l,a),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var y=u.value,b=s.getLine(l);switch(u.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);if(!x.test(b))return;var E=this.indentKeywords[y];break;case"when":if(/\sthen\s/.test(b))return;case"elsif":case"rescue":case"ensure":var E=1;break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");if(!x.test(b))return;var E=1;break;default:var E=this.indentKeywords[y]}var C=[y];if(E){var k=E===-1?s.getLine(l-1).length:s.getLine(l).length,w=l,A=[];if(A.push(o.getCurrentTokenRange()),o.step=E===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(E==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var L=!1;if(u.type==="keyword"){var I=E*this.indentKeywords[u.value];switch(b=s.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var T=o.$tokenIndex-1;T>=0;T--){var N=o.$rowTokens[T];if(N&&(N.value=="while"||N.value=="until"||N.value=="for")){I=0;break}}break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");(!x.test(b)||y=="case")&&(I=0,L=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);x.test(b)||(I=0,L=!0);break;case"when":(/\sthen\s/.test(b)||y=="case")&&(I=0,L=!0)}if(I>0)C.unshift(u.value);else if(I<=0&&L===!1){if(C.shift(),!C.length&&((y=="while"||y=="until"||y=="for")&&u.value!="do"||u.value=="do"&&E==-1&&I!=0||u.value!="do"))break;I===0&&C.unshift(u.value)}}}if(!u)return null;if(c)return A.push(o.getCurrentTokenRange()),A;var l=o.getCurrentTokenRow();if(E===-1){if(u.type==="comment.multiline")var S=6;else var S=s.getLine(l).length;return new v(l,S,w-1,k)}return new v(w,k,l-1,s.getLine(l-1).length)}}}}).call(g.prototype)}),ace.define("ace/mode/ruby",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ruby_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/mode/folding/ruby"],function(t,r,f){var h=t("../lib/oop"),p=t("./text").Mode,v=t("./ruby_highlight_rules").RubyHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../range").Range,s=t("./folding/ruby").FoldMode,l=function(){this.HighlightRules=v,this.$outdent=new d,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s,this.indentKeywords=this.foldingRules.indentKeywords};h.inherits(l,p),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),y=this.getTokenizer().getLineTokens(c,a),b=y.tokens;if(b.length&&b[b.length-1].type=="comment")return u;if(a=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),E=c.match(/^\s*(class|def|module)\s.*$/),C=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||E||C||k)&&(u+=o)}return u},this.checkOutdent=function(a,c,o){return/^\s+(end|else|rescue|ensure)$/.test(c+o)||this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(a,c,o){var u=c.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(c,o);var y=this.$getIndent(u),b=c.getLine(o-1),x=this.$getIndent(b),E=c.getTabString();x.length<=y.length&&y.slice(-E.length)==E&&c.remove(new g(o,y.length-E.length,o,y.length))},this.getMatching=function(a,c,o){if(c==null){var u=a.selection.lead;o=u.column,c=u.row}var y=a.getTokenAt(c,o);if(y&&y.value in this.indentKeywords)return this.foldingRules.rubyBlock(a,c,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),r.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(t){n.exports=t})}()}(Df)),Df.exports}$w();var Ff={exports:{}},Pf;function Cw(){return Pf||(Pf=1,function(n,e){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,f){var h=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,v=function(){var d="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",g="True|False|None|NotImplemented|Ellipsis|__debug__",s="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":s,"variable.language":"self|cls","constant.language":g,keyword:d},"identifier"),a="[uU]?",c="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",y="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",E="(?:0[bB][01]+)",C="(?:"+y+"|"+b+"|"+x+"|"+E+")",k="(?:[eE][+-]?\\d+)",w="(?:\\.\\d+)",A="(?:\\d+)",L="(?:(?:"+A+"?"+w+")|(?:"+A+"\\.))",I="(?:(?:"+L+"|"+A+")"+k+")",T="(?:"+I+"|"+L+")",N=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:a+'"{3}',next:"qqstring3"},{token:"string",regex:a+'"(?=.)',next:"qqstring"},{token:"string",regex:a+"'{3}",next:"qstring3"},{token:"string",regex:a+"'(?=.)",next:"qstring"},{token:"string",regex:c+'"{3}',next:"rawqqstring3"},{token:"string",regex:c+'"(?=.)',next:"rawqqstring"},{token:"string",regex:c+"'{3}",next:"rawqstring3"},{token:"string",regex:c+"'(?=.)",next:"rawqstring"},{token:"string",regex:o+'"{3}',next:"fqqstring3"},{token:"string",regex:o+'"(?=.)',next:"fqqstring"},{token:"string",regex:o+"'{3}",next:"fqstring3"},{token:"string",regex:o+"'(?=.)",next:"fqstring"},{token:"string",regex:u+'"{3}',next:"rfqqstring3"},{token:"string",regex:u+'"(?=.)',next:"rfqqstring"},{token:"string",regex:u+"'{3}",next:"rfqstring3"},{token:"string",regex:u+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:N},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+T+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:T},{token:"constant.numeric",regex:C+"[lL]\\b"},{token:"constant.numeric",regex:C+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};h.inherits(v,p),r.PythonHighlightRules=v}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,f){var h=t("../../lib/oop"),p=t("./fold_mode").FoldMode,v=r.FoldMode=function(d){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+d+")(?:\\s*)(?:#.*)?$")};h.inherits(v,p),(function(){this.getFoldWidgetRange=function(d,g,s){var l=d.getLine(s),a=l.match(this.foldingStartMarker);if(a)return a[1]?this.openingBracketBlock(d,a[1],s,a.index):a[2]?this.indentationBlock(d,s,a.index+a[2].length):this.indentationBlock(d,s)}}).call(v.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(t,r,f){var h=t("../lib/oop"),p=t("./text").Mode,v=t("./python_highlight_rules").PythonHighlightRules,d=t("./folding/pythonic").FoldMode,g=t("../range").Range,s=function(){this.HighlightRules=v,this.foldingRules=new d("\\:"),this.$behaviour=this.$defaultBehaviour};h.inherits(s,p),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),y=this.getTokenizer().getLineTokens(c,a),b=y.tokens;if(b.length&&b[b.length-1].type=="comment")return u;if(a=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(u+=o)}return u};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,c,o){if(o!==`\r
971
+ `&&o!=="\r"&&o!==`
972
+ `)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),a).tokens;if(!u)return!1;do var y=u.pop();while(y&&(y.type=="comment"||y.type=="text"&&y.value.match(/^\s+$/)));return y?y.type=="keyword"&&l[y.value]:!1},this.autoOutdent=function(a,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),y=c.getTabString();u.slice(-y.length)==y&&c.remove(new g(o,u.length-y.length,o,u.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/python"],function(t){n.exports=t})}()}(Ff)),Ff.exports}Cw();var Hf={exports:{}},Bf;function Mw(){return Bf||(Bf=1,function(n,e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,f){var h=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,v=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};h.inherits(v,p),r.JsonHighlightRules=v}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,f){var h=t("../range").Range,p=function(){};(function(){this.checkOutdent=function(v,d){return/^\s+$/.test(v)?/^\s*\}/.test(d):!1},this.autoOutdent=function(v,d){var g=v.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=v.findMatchingBracket({row:d,column:l});if(!a||a.row==d)return 0;var c=this.$getIndent(v.getLine(a.row));v.replace(new h(d,0,d,l-1),c)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(p.prototype),r.MatchingBraceOutdent=p}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,f){var h=t("../../lib/oop"),p=t("../../range").Range,v=t("./fold_mode").FoldMode,d=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};h.inherits(d,v),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,l){var a=g.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var c=this._getFoldWidgetBase(g,s,l);return!c&&this.startRegionRe.test(a)?"start":c},this.getFoldWidgetRange=function(g,s,l,a){var c=g.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(g,c,l);var o=c.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],l,u);var y=g.getCommentFoldRange(l,u+o[0].length,1);return y&&!y.isMultiLine()&&(a?y=this.getSectionRange(g,l):s!="all"&&(y=null)),y}if(s!=="markbegin"){var o=c.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],l,u):g.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(g,s){var l=g.getLine(s),a=l.search(/\S/),c=s,o=l.length;s+=1;for(var u=s,y=g.getLength();++s<y;){l=g.getLine(s);var b=l.search(/\S/);if(b!==-1){if(a>b)break;var x=this.getFoldWidgetRange(g,"all",s);if(x){if(x.start.row<=c)break;if(x.isMultiLine())s=x.end.row;else if(a==b)break}u=s}}return new p(c,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,s,l){for(var a=s.search(/\s*$/),c=g.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,y=1;++l<c;){s=g.getLine(l);var b=u.exec(s);if(b&&(b[1]?y--:y++,!y))break}var x=l;if(x>o)return new p(o,a,x,s.length)}}).call(d.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(t,r,f){var h=t("../lib/oop"),p=t("./text").Mode,v=t("./json_highlight_rules").JsonHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("./folding/cstyle").FoldMode,s=t("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=v,this.$outdent=new d,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};h.inherits(l,p),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c);if(a=="start"){var y=c.match(/^.*[\{\(\[]\s*$/);y&&(u+=o)}return u},this.checkOutdent=function(a,c,o){return this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(a,c,o){this.$outdent.autoOutdent(c,o)},this.createWorker=function(a){var c=new s(["ace"],"ace/mode/json_worker","JsonWorker");return c.attachToDocument(a.getDocument()),c.on("annotate",function(o){a.setAnnotations(o.data)}),c.on("terminate",function(){a.clearAnnotations()}),c},this.$id="ace/mode/json"}).call(l.prototype),r.Mode=l}),function(){ace.require(["ace/mode/json"],function(t){n.exports=t})}()}(Hf)),Hf.exports}Mw();var jf={exports:{}},zf;function Aw(){return zf||(zf=1,function(n,e){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(t,r,f){var h=t("../lib/oop");t("../lib/lang");var p=t("./text_highlight_rules").TextHighlightRules,v=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",d=r.supportFunction="rgb|rgba|url|attr|counter|counters",g=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",s=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",a=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",u=function(){var y=this.createKeywordMapper({"support.function":d,"support.constant":g,"support.type":v,"support.constant.color":s,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:a},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+a+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:a},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:c},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:y,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};h.inherits(u,p),r.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,f){var h=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,v=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},v.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};h.inherits(v,p),v.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},v.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},v.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},r.JsDocCommentHighlightRules=v}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(t,r,f){function h(){var a=s.replace("\\d","\\d\\-"),c={onMatch:function(u,y,b){var x=u.charAt(1)=="/"?2:1;return x==1?(y!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&y==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:u.slice(0,x)},{type:"meta.tag.tag-name.xml",value:u.substr(x)}]},regex:"</?(?:"+a+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(c);var o={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[o,c,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(u,y,b){return y==b[0]&&b.shift(),u.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,p("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:a},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},c],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function p(a){return[{token:"comment",regex:/\/\*/,next:[d.getTagRule(),{token:"comment",regex:"\\*\\/",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[d.getTagRule(),{token:"comment",regex:"$|^",next:a||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var v=t("../lib/oop"),d=t("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=t("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",l=function(a){var c={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},o=this.createKeywordMapper(c,"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",y="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",b="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(c).join("|")+"\\b)"+s+")(\\s*)(\\()"};this.$rules={no_regex:[d.getStartRule("doc-start"),p("no_regex"),x,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[d.getStartRule("doc-start"),p("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:[p("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:y},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:y},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!a||!a.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(E,C,k){if(this.next=E=="{"?this.nextState:"",E=="{"&&k.length)k.unshift("start",C);else if(E=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return E=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:y},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!a||a.jsx!=0)&&h.call(this)),this.embedRules(d,"doc-",[d.getEndRule("no_regex")]),this.normalizeRules()};v.inherits(l,g),r.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,f){var h=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,v=function(d){var g="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+g+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:g},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+g+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+g+":)?"+g+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:g},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===v&&this.normalizeRules()};(function(){this.embedTagRules=function(d,g,s){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(<)("+s+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:g+"start"}]}),this.$rules[s+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,a,c){return c.splice(0),this.token}}],this.embedRules(d,g,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+s+".tag-name.xml"],regex:"(</)("+s+"(?=\\s|>|$))",next:s+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(p.prototype),h.inherits(v,p),r.XmlHighlightRules=v}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(t,r,f){var h=t("../lib/oop"),p=t("../lib/lang"),v=t("./css_highlight_rules").CssHighlightRules,d=t("./javascript_highlight_rules").JavaScriptHighlightRules,g=t("./xml_highlight_rules").XmlHighlightRules,s=p.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){g.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(a,c){var o=s[c];return["meta.tag.punctuation."+(a=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(v,"css-","style"),this.embedTagRules(new d({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};h.inherits(l,g),r.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(t,r,f){var h=t("../config").$modes,p=t("../lib/oop"),v=t("../lib/lang"),d=t("./text_highlight_rules").TextHighlightRules,g=t("./html_highlight_rules").HtmlHighlightRules,s=function(a){return"(?:[^"+v.escapeRegExp(a)+"\\\\]|\\\\.)*"},l=function(){g.call(this);var a={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,y,b){var x=o.match(/^(\s*)([`~]+)(.*)/),E=/[\w-]+|$/.exec(x[3])[0];return h[E]||(E=""),y.unshift("githubblock",[],[x[1],x[2],E],u),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(o,u,y,b){var x=y[1],E=y[2][0],C=y[2][1],k=y[2][2],w=/^(\s*)(`+|~+)\s*$/.exec(o);if(w&&w[1].length<E.length+3&&w[2].length>=C.length&&w[2][0]==C[0])return y.splice(0,3),this.next=y.shift(),this.token;if(this.next="",k&&h[k]){var A=h[k].getTokenizer().getLineTokens(o,x.slice(0));return y[1]=A.state,A.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},a,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},a,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:c}),this.normalizeRules()};p.inherits(l,d),r.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(t,r,f){var h=t("../../lib/oop"),p=t("./fold_mode").FoldMode,v=t("../../range").Range,d=r.FoldMode=function(){};h.inherits(d,p),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,s,l){var a=g.getLine(l);return this.foldingStartMarker.test(a)?a[0]=="`"&&g.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,s,l){function a(L){return E=g.getTokens(L)[0],E&&E.type.lastIndexOf(C,0)===0}function c(){var L=E.value[0];return L=="="?6:L=="-"?5:7-E.value.search(/[^#]|$/)}var o=g.getLine(l),u=o.length,y=g.getLength(),b=l,x=l;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(l)!=="start"){for(;++l<y&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(b,u,l,0)}for(;l-- >0&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new v(l,o.length,b,0)}var E,C="markup.heading";if(a(l)){for(var k=c();++l<y;)if(a(l)){var w=c();if(w>=k)break}if(x=l-(!E||["=","-"].indexOf(E.value[0])==-1?1:2),x>b)for(;x>b&&/^\s*$/.test(g.getLine(x));)x--;if(x>b){var A=g.getLine(x).length;return new v(b,u,x,A)}}}}}).call(d.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(t,r,f){var h=t("../range").Range,p=function(){};(function(){this.checkOutdent=function(v,d){return/^\s+$/.test(v)?/^\s*\}/.test(d):!1},this.autoOutdent=function(v,d){var g=v.getLine(d),s=g.match(/^(\s*\})/);if(!s)return 0;var l=s[1].length,a=v.findMatchingBracket({row:d,column:l});if(!a||a.row==d)return 0;var c=this.$getIndent(v.getLine(a.row));v.replace(new h(d,0,d,l-1),c)},this.$getIndent=function(v){return v.match(/^\s*/)[0]}}).call(p.prototype),r.MatchingBraceOutdent=p}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(t,r,f){function h(s,l){return s&&s.type.lastIndexOf(l+".xml")>-1}var p=t("../../lib/oop"),v=t("../behaviour").Behaviour,d=t("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(s,l,a,c,o){if(o=='"'||o=="'"){var u=o,y=c.doc.getTextRange(a.getSelectionRange());if(y!==""&&y!=="'"&&y!='"'&&a.getWrapBehavioursEnabled())return{text:u+y+u,selection:!1};var b=a.getCursorPosition(),x=c.doc.getLine(b.row),E=x.substring(b.column,b.column+1),C=new d(c,b.row,b.column),k=C.getCurrentToken();if(E==u&&(h(k,"attribute-value")||h(k,"string")))return{text:"",selection:[1,1]};if(k||(k=C.stepBackward()),!k)return;for(;h(k,"tag-whitespace")||h(k,"whitespace");)k=C.stepBackward();var w=!E||E.match(/\s/);if(h(k,"attribute-equals")&&(w||E==">")||h(k,"decl-attribute-equals")&&(w||E=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(s,l,a,c,o){var u=c.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var y=c.doc.getLine(o.start.row),b=y.substring(o.start.column+1,o.start.column+2);if(b==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(s,l,a,c,o){if(o==">"){var u=a.getSelectionRange().start,y=new d(c,u.row,u.column),b=y.getCurrentToken()||y.stepBackward();if(!b||!(h(b,"tag-name")||h(b,"tag-whitespace")||h(b,"attribute-name")||h(b,"attribute-equals")||h(b,"attribute-value"))||h(b,"reference.attribute-value"))return;if(h(b,"attribute-value")){var x=y.getCurrentTokenColumn()+b.value.length;if(u.column<x)return;if(u.column==x){var E=y.stepForward();if(E&&h(E,"attribute-value"))return;y.stepBackward()}}if(/^\s*>/.test(c.getLine(u.row).slice(u.column)))return;for(;!h(b,"tag-name");)if(b=y.stepBackward(),b.value=="<"){b=y.stepForward();break}var C=y.getCurrentTokenRow(),k=y.getCurrentTokenColumn();if(h(y.stepBackward(),"end-tag-open"))return;var w=b.value;return C==u.row&&(w=w.substring(0,u.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(w.toLowerCase())?void 0:{text:"></"+w+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(s,l,a,c,o){if(o==`
973
+ `){var u=a.getCursorPosition(),y=c.getLine(u.row),b=new d(c,u.row,u.column),x=b.getCurrentToken();if(h(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=b.stepBackward();if(!x)return;var E=x.value,C=b.getCurrentTokenRow();if(x=b.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[E]||!this.voidElements){var k=c.getTokenAt(u.row,u.column+1),y=c.getLine(C),w=this.$getIndent(y),A=w+c.getTabString();return k&&k.value==="</"?{text:`
974
+ `+A+`
975
+ `+w,selection:[1,A.length,1,A.length]}:{text:`
976
+ `+A}}}}})};p.inherits(g,v),r.XmlBehaviour=g}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(t,r,f){var h=t("../../lib/oop"),p=t("../../token_iterator").TokenIterator,v=t("../behaviour/cstyle").CstyleBehaviour,d=t("../behaviour/xml").XmlBehaviour,g=function(){var s=new d({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(s),this.inherit(v),this.add("autoclosing-fragment","insertion",function(l,a,c,o,u){if(u==">"){var y=c.getSelectionRange().start,b=new p(o,y.row,y.column),x=b.getCurrentToken()||b.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};h.inherits(g,v),r.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,f){function h(l,a){return l.type.lastIndexOf(a+".xml")>-1}var p=t("../../lib/oop"),v=t("../../range").Range,d=t("./fold_mode").FoldMode,g=r.FoldMode=function(l,a){d.call(this),this.voidElements=l||{},this.optionalEndTags=p.mixin({},this.voidElements),a&&p.mixin(this.optionalEndTags,a)};p.inherits(g,d);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(l,a,c){var o=this._getFirstTagInLine(l,c);return o?o.closing||!o.tagName&&o.selfClosing?a==="markbeginend"?"end":"":!o.tagName||o.selfClosing||this.voidElements.hasOwnProperty(o.tagName.toLowerCase())||this._findEndTagInLine(l,c,o.tagName,o.end.column)?"":"start":this.getCommentFoldWidget(l,c)},this.getCommentFoldWidget=function(l,a){return/comment/.test(l.getState(a))&&/<!-/.test(l.getLine(a))?"start":""},this._getFirstTagInLine=function(l,a){for(var c=l.getTokens(a),o=new s,u=0;u<c.length;u++){var y=c[u];if(h(y,"tag-open")){if(o.end.column=o.start.column+y.value.length,o.closing=h(y,"end-tag-open"),y=c[++u],!y)return null;if(o.tagName=y.value,y.value===""){if(y=c[++u],!y)return null;o.tagName=y.value}for(o.end.column+=y.value.length,u++;u<c.length;u++)if(y=c[u],o.end.column+=y.value.length,h(y,"tag-close")){o.selfClosing=y.value=="/>";break}return o}if(h(y,"tag-close"))return o.selfClosing=y.value=="/>",o;o.start.column+=y.value.length}return null},this._findEndTagInLine=function(l,a,c,o){for(var u=l.getTokens(a),y=0,b=0;b<u.length;b++){var x=u[b];if(y+=x.value.length,!(y<o-1)&&h(x,"end-tag-open")&&(x=u[b+1],h(x,"tag-name")&&x.value===""&&(x=u[b+2]),x&&x.value==c))return!0}return!1},this.getFoldWidgetRange=function(l,a,c){var o=this._getFirstTagInLine(l,c);if(!o)return this.getCommentFoldWidget(l,c)&&l.getCommentFoldRange(c,l.getLine(c).length);var u=l.getMatchingTags({row:c,column:0});if(u)return new v(u.openTag.end.row,u.openTag.end.column,u.closeTag.start.row,u.closeTag.start.column)}}).call(g.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(t,r,f){var h=t("../../lib/oop"),p=t("../../range").Range,v=t("./fold_mode").FoldMode,d=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};h.inherits(d,v),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,l){var a=g.getLine(l);if(this.singleLineBlockCommentRe.test(a)&&!this.startRegionRe.test(a)&&!this.tripleStarBlockCommentRe.test(a))return"";var c=this._getFoldWidgetBase(g,s,l);return!c&&this.startRegionRe.test(a)?"start":c},this.getFoldWidgetRange=function(g,s,l,a){var c=g.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(g,c,l);var o=c.match(this.foldingStartMarker);if(o){var u=o.index;if(o[1])return this.openingBracketBlock(g,o[1],l,u);var y=g.getCommentFoldRange(l,u+o[0].length,1);return y&&!y.isMultiLine()&&(a?y=this.getSectionRange(g,l):s!="all"&&(y=null)),y}if(s!=="markbegin"){var o=c.match(this.foldingStopMarker);if(o){var u=o.index+o[0].length;return o[1]?this.closingBracketBlock(g,o[1],l,u):g.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(g,s){var l=g.getLine(s),a=l.search(/\S/),c=s,o=l.length;s+=1;for(var u=s,y=g.getLength();++s<y;){l=g.getLine(s);var b=l.search(/\S/);if(b!==-1){if(a>b)break;var x=this.getFoldWidgetRange(g,"all",s);if(x){if(x.start.row<=c)break;if(x.isMultiLine())s=x.end.row;else if(a==b)break}u=s}}return new p(c,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,s,l){for(var a=s.search(/\s*$/),c=g.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,y=1;++l<c;){s=g.getLine(l);var b=u.exec(s);if(b&&(b[1]?y--:y++,!y))break}var x=l;if(x>o)return new p(o,a,x,s.length)}}).call(d.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(t,r,f){var h=t("../../lib/oop"),p=t("./xml").FoldMode,v=t("./cstyle").FoldMode,d=r.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new p};h.inherits(d,v),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,s,l){var a=this.getFoldWidgetBase(g,s,l);return a||this.xmlFoldMode.getFoldWidget(g,s,l)},this.getFoldWidgetRange=function(g,s,l,a){var c=this.getFoldWidgetRangeBase(g,s,l,a);return c||this.xmlFoldMode.getFoldWidgetRange(g,s,l)}}).call(d.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(t,r,f){var h=t("../lib/oop"),p=t("./text").Mode,v=t("./javascript_highlight_rules").JavaScriptHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../worker/worker_client").WorkerClient,s=t("./behaviour/javascript").JavaScriptBehaviour,l=t("./folding/javascript").FoldMode,a=function(){this.HighlightRules=v,this.$outdent=new d,this.$behaviour=new s,this.foldingRules=new l};h.inherits(a,p),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(c,o,u){var y=this.$getIndent(o),b=this.getTokenizer().getLineTokens(o,c),x=b.tokens,E=b.state;if(x.length&&x[x.length-1].type=="comment")return y;if(c=="start"||c=="no_regex"){var C=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);C&&(y+=u)}else if(c=="doc-start"&&(E=="start"||E=="no_regex"))return"";return y},this.checkOutdent=function(c,o,u){return this.$outdent.checkOutdent(o,u)},this.autoOutdent=function(c,o,u){this.$outdent.autoOutdent(o,u)},this.createWorker=function(c){var o=new g(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return o.attachToDocument(c.getDocument()),o.on("annotate",function(u){c.setAnnotations(u.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/css_completions",["require","exports","module"],function(t,r,f){var h={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},p=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var v=document.createElement("c").style;for(var d in v)if(typeof v[d]=="string"){var g=d.replace(/[A-Z]/g,function(s){return"-"+s.toLowerCase()});h.hasOwnProperty(g)||(h[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(v,d,g,s){if(this.completionsDefined||this.defineCompletions(),v==="ruleset"||d.$mode.$id=="ace/mode/scss"){var l=d.getLine(g.row).substr(0,g.column),a=/\([^)]*$/.test(l);return a&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(v,d,g,s):this.getPropertyCompletions(v,d,g,s,a)}return[]},this.getPropertyCompletions=function(v,d,g,s,l){l=l||!1;var a=Object.keys(h);return a.map(function(c){return{caption:c,snippet:c+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(v,d,g,s){var l=d.getLine(g.row).substr(0,g.column),a=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!a)return[];var c=[];return a in h&&typeof h[a]=="object"&&(c=Object.keys(h[a])),c.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(p.prototype),r.CssCompletions=p}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(t,r,f){var h=t("../../lib/oop");t("../behaviour").Behaviour;var p=t("./cstyle").CstyleBehaviour,v=t("../../token_iterator").TokenIterator,d=function(){this.inherit(p),this.add("colon","insertion",function(g,s,l,a,c){if(c===":"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=new v(a,o.row,o.column),y=u.getCurrentToken();if(y&&y.value.match(/\s+/)&&(y=u.stepBackward()),y&&y.type==="support.type"){var b=a.doc.getLine(o.row),x=b.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(b.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(g,s,l,a,c){var o=a.doc.getTextRange(c);if(!c.isMultiLine()&&o===":"){var u=l.getCursorPosition(),y=new v(a,u.row,u.column),b=y.getCurrentToken();if(b&&b.value.match(/\s+/)&&(b=y.stepBackward()),b&&b.type==="support.type"){var x=a.doc.getLine(c.start.row),E=x.substring(c.end.column,c.end.column+1);if(E===";")return c.end.column++,c}}}),this.add("semicolon","insertion",function(g,s,l,a,c){if(c===";"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=a.doc.getLine(o.row),y=u.substring(o.column,o.column+1);if(y===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,s,l,a,c){if(c==="!"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=a.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};h.inherits(d,p),r.CssBehaviour=d}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(t,r,f){var h=t("../lib/oop"),p=t("./text").Mode,v=t("./css_highlight_rules").CssHighlightRules,d=t("./matching_brace_outdent").MatchingBraceOutdent,g=t("../worker/worker_client").WorkerClient,s=t("./css_completions").CssCompletions,l=t("./behaviour/css").CssBehaviour,a=t("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=v,this.$outdent=new d,this.$behaviour=new l,this.$completer=new s,this.foldingRules=new a};h.inherits(c,p),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,y){var b=this.$getIndent(u),x=this.getTokenizer().getLineTokens(u,o).tokens;if(x.length&&x[x.length-1].type=="comment")return b;var E=u.match(/^.*\{\s*$/);return E&&(b+=y),b},this.checkOutdent=function(o,u,y){return this.$outdent.checkOutdent(u,y)},this.autoOutdent=function(o,u,y){this.$outdent.autoOutdent(u,y)},this.getCompletions=function(o,u,y,b){return this.$completer.getCompletions(o,u,y,b)},this.createWorker=function(o){var u=new g(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(y){o.setAnnotations(y.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(c.prototype),r.Mode=c}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(t,r,f){var h=t("../../lib/oop"),p=t("./fold_mode").FoldMode,v=r.FoldMode=function(d,g){this.defaultMode=d,this.subModes=g};h.inherits(v,p),(function(){this.$getMode=function(d){typeof d!="string"&&(d=d[0]);for(var g in this.subModes)if(d.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(d,g,s,l){var a=this.$getMode(d);return a?a.getFoldWidget(g,s,l):""},this.getFoldWidget=function(d,g,s){return this.$tryMode(d.getState(s-1),d,g,s)||this.$tryMode(d.getState(s),d,g,s)||this.defaultMode.getFoldWidget(d,g,s)},this.getFoldWidgetRange=function(d,g,s){var l=this.$getMode(d.getState(s-1));return(!l||!l.getFoldWidget(d,g,s))&&(l=this.$getMode(d.getState(s))),(!l||!l.getFoldWidget(d,g,s))&&(l=this.defaultMode),l.getFoldWidgetRange(d,g,s)}}).call(v.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(t,r,f){var h=t("../../lib/oop"),p=t("./mixed").FoldMode,v=t("./xml").FoldMode,d=t("./cstyle").FoldMode,g=r.FoldMode=function(s,l){p.call(this,new v(s,l),{"js-":new d,"css-":new d})};h.inherits(g,p)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(t,r,f){function h(u,y){return u.type.lastIndexOf(y+".xml")>-1}function p(u,y){for(var b=new d(u,y.row,y.column),x=b.getCurrentToken();x&&!h(x,"tag-name");)x=b.stepBackward();if(x)return x.value}function v(u,y){for(var b=new d(u,y.row,y.column),x=b.getCurrentToken();x&&!h(x,"attribute-name");)x=b.stepBackward();if(x)return x.value}var d=t("../token_iterator").TokenIterator,g=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],s=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=g.concat(s),a={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},c=Object.keys(a),o=function(){};(function(){this.getCompletions=function(u,y,b,x){var E=y.getTokenAt(b.row,b.column);if(!E)return[];if(h(E,"tag-name")||h(E,"tag-open")||h(E,"end-tag-open"))return this.getTagCompletions(u,y,b,x);if(h(E,"tag-whitespace")||h(E,"attribute-name"))return this.getAttributeCompletions(u,y,b,x);if(h(E,"attribute-value"))return this.getAttributeValueCompletions(u,y,b,x);var C=y.getLine(b.row).substr(0,b.column);return/&[a-z]*$/i.test(C)?this.getHTMLEntityCompletions(u,y,b,x):[]},this.getTagCompletions=function(u,y,b,x){return c.map(function(E){return{value:E,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,y,b,x){var E=p(y,b);if(!E)return[];var C=l;return E in a&&(C=C.concat(Object.keys(a[E]))),C.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,y,b,x){var E=p(y,b),C=v(y,b);if(!E)return[];var k=[];return E in a&&C in a[E]&&typeof a[E][C]=="object"&&(k=Object.keys(a[E][C])),k.map(function(w){return{caption:w,snippet:w,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,y,b,x){var E=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return E.map(function(C){return{caption:C,snippet:C,meta:"html entity",score:1e6}})}}).call(o.prototype),r.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(t,r,f){var h=t("../lib/oop"),p=t("../lib/lang"),v=t("./text").Mode,d=t("./javascript").Mode,g=t("./css").Mode,s=t("./html_highlight_rules").HtmlHighlightRules,l=t("./behaviour/xml").XmlBehaviour,a=t("./folding/html").FoldMode,c=t("./html_completions").HtmlCompletions,o=t("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],y=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],b=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=s,this.$behaviour=new l,this.$completer=new c,this.createModeDelegates({"js-":d,"css-":g}),this.foldingRules=new a(this.voidElements,p.arrayToMap(y))};h.inherits(b,v),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=p.arrayToMap(u),this.getNextLineIndent=function(x,E,C){return this.$getIndent(E)},this.checkOutdent=function(x,E,C){return!1},this.getCompletions=function(x,E,C,k){return this.$completer.getCompletions(x,E,C,k)},this.createWorker=function(x){if(this.constructor==b){var E=new o(["ace"],"ace/mode/html_worker","Worker");return E.attachToDocument(x.getDocument()),this.fragmentContext&&E.call("setOptions",[{context:this.fragmentContext}]),E.on("error",function(C){x.setAnnotations(C.data)}),E.on("terminate",function(){x.clearAnnotations()}),E}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(b.prototype),r.Mode=b}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(t,r,f){var h=t("../lib/oop"),p=t("./text_highlight_rules").TextHighlightRules,v=r.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",d=r.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",g=function(){var s=this.createKeywordMapper({keyword:v,"support.function.builtin":d,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",a="(?:\\.\\d+)",c="(?:\\d+)",o="(?:(?:"+c+"?"+a+")|(?:"+c+"\\.))",u="(?:(?:"+o+"|"+c+"))",y="(?:"+u+"|"+o+")",b="(?:&"+c+")",x="[a-zA-Z_][a-zA-Z0-9_]*",E="(?:"+x+"(?==))",C="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(w,A,L){var I=w[2]=="-"?"indentedHeredoc":"heredoc",T=w.split(this.splitRegex);return L.push(I,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(w,A,L){return w===L[1]?(L.shift(),L.shift(),this.next=L[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(w,A,L){return w===L[1]?(L.shift(),L.shift(),this.next=L[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(w,A){return A[0]==="heredoc"||A[0]==="indentedHeredoc"?A[0]:w}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:C},{token:"variable",regex:E},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:b},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:y},{token:"constant.numeric",regex:l+"\\b"},{token:s,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};h.inherits(g,p),r.ShHighlightRules=g}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(t,r,f){var h=t("../lib/oop"),p=t("./text").Mode,v=t("./sh_highlight_rules").ShHighlightRules,d=t("../range").Range,g=t("./folding/cstyle").FoldMode,s=function(){this.HighlightRules=v,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};h.inherits(s,p),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(a,c,o){var u=this.$getIndent(c),y=this.getTokenizer().getLineTokens(c,a),b=y.tokens;if(b.length&&b[b.length-1].type=="comment")return u;if(a=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(u+=o)}return u};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(a,c,o){if(o!==`\r
977
+ `&&o!=="\r"&&o!==`
978
+ `)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),a).tokens;if(!u)return!1;do var y=u.pop();while(y&&(y.type=="comment"||y.type=="text"&&y.value.match(/^\s+$/)));return y?y.type=="keyword"&&l[y.value]:!1},this.autoOutdent=function(a,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),y=c.getTabString();u.slice(-y.length)==y&&c.remove(new d(o,u.length-y.length,o,u.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(s.prototype),r.Mode=s}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(t,r,f){var h=t("../lib/oop"),p=t("../lib/lang"),v=t("./text").Mode,d=t("./xml_highlight_rules").XmlHighlightRules,g=t("./behaviour/xml").XmlBehaviour,s=t("./folding/xml").FoldMode,l=t("../worker/worker_client").WorkerClient,a=function(){this.HighlightRules=d,this.$behaviour=new g,this.foldingRules=new s};h.inherits(a,v),(function(){this.voidElements=p.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(c){var o=new l(["ace"],"ace/mode/xml_worker","Worker");return o.attachToDocument(c.getDocument()),o.on("error",function(u){c.setAnnotations(u.data)}),o.on("terminate",function(){c.clearAnnotations()}),o},this.$id="ace/mode/xml"}).call(a.prototype),r.Mode=a}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(t,r,f){var h=t("../lib/oop"),p=t("./behaviour/cstyle").CstyleBehaviour,v=t("./text").Mode,d=t("./markdown_highlight_rules").MarkdownHighlightRules,g=t("./folding/markdown").FoldMode,s=function(){this.HighlightRules=d,this.createModeDelegates({javascript:t("./javascript").Mode,html:t("./html").Mode,bash:t("./sh").Mode,sh:t("./sh").Mode,xml:t("./xml").Mode,css:t("./css").Mode}),this.foldingRules=new g,this.$behaviour=new p({braces:!0})};h.inherits(s,v),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,a,c){if(l=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(a);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(a)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(s.prototype),r.Mode=s}),function(){ace.require(["ace/mode/markdown"],function(t){n.exports=t})}()}(jf)),jf.exports}Aw();var Wf={exports:{}},Uf;function Tw(){return Uf||(Uf=1,function(n,e){ace.define("ace/theme/twilight-css",["require","exports","module"],function(t,r,f){f.exports=`.ace-twilight .ace_gutter {
979
+ background: #232323;
980
+ color: #E2E2E2
981
+ }
982
+
983
+ .ace-twilight .ace_print-margin {
984
+ width: 1px;
985
+ background: #232323
986
+ }
987
+
988
+ .ace-twilight {
989
+ background-color: #141414;
990
+ color: #F8F8F8
991
+ }
992
+
993
+ .ace-twilight .ace_cursor {
994
+ color: #A7A7A7
995
+ }
996
+
997
+ .ace-twilight .ace_marker-layer .ace_selection {
998
+ background: rgba(221, 240, 255, 0.20)
999
+ }
1000
+
1001
+ .ace-twilight.ace_multiselect .ace_selection.ace_start {
1002
+ box-shadow: 0 0 3px 0px #141414;
1003
+ }
1004
+
1005
+ .ace-twilight .ace_marker-layer .ace_step {
1006
+ background: rgb(102, 82, 0)
1007
+ }
1008
+
1009
+ .ace-twilight .ace_marker-layer .ace_bracket {
1010
+ margin: -1px 0 0 -1px;
1011
+ border: 1px solid rgba(255, 255, 255, 0.25)
1012
+ }
1013
+
1014
+ .ace-twilight .ace_marker-layer .ace_active-line {
1015
+ background: rgba(255, 255, 255, 0.031)
1016
+ }
1017
+
1018
+ .ace-twilight .ace_gutter-active-line {
1019
+ background-color: rgba(255, 255, 255, 0.031)
1020
+ }
1021
+
1022
+ .ace-twilight .ace_marker-layer .ace_selected-word {
1023
+ border: 1px solid rgba(221, 240, 255, 0.20)
1024
+ }
1025
+
1026
+ .ace-twilight .ace_invisible {
1027
+ color: rgba(255, 255, 255, 0.25)
1028
+ }
1029
+
1030
+ .ace-twilight .ace_keyword,
1031
+ .ace-twilight .ace_meta {
1032
+ color: #CDA869
1033
+ }
1034
+
1035
+ .ace-twilight .ace_constant,
1036
+ .ace-twilight .ace_constant.ace_character,
1037
+ .ace-twilight .ace_constant.ace_character.ace_escape,
1038
+ .ace-twilight .ace_constant.ace_other,
1039
+ .ace-twilight .ace_heading,
1040
+ .ace-twilight .ace_markup.ace_heading,
1041
+ .ace-twilight .ace_support.ace_constant {
1042
+ color: #CF6A4C
1043
+ }
1044
+
1045
+ .ace-twilight .ace_invalid.ace_illegal {
1046
+ color: #F8F8F8;
1047
+ background-color: rgba(86, 45, 86, 0.75)
1048
+ }
1049
+
1050
+ .ace-twilight .ace_invalid.ace_deprecated {
1051
+ text-decoration: underline;
1052
+ font-style: italic;
1053
+ color: #D2A8A1
1054
+ }
1055
+
1056
+ .ace-twilight .ace_support {
1057
+ color: #9B859D
1058
+ }
1059
+
1060
+ .ace-twilight .ace_fold {
1061
+ background-color: #AC885B;
1062
+ border-color: #F8F8F8
1063
+ }
1064
+
1065
+ .ace-twilight .ace_support.ace_function {
1066
+ color: #DAD085
1067
+ }
1068
+
1069
+ .ace-twilight .ace_list,
1070
+ .ace-twilight .ace_markup.ace_list,
1071
+ .ace-twilight .ace_storage {
1072
+ color: #F9EE98
1073
+ }
1074
+
1075
+ .ace-twilight .ace_entity.ace_name.ace_function,
1076
+ .ace-twilight .ace_meta.ace_tag {
1077
+ color: #AC885B
1078
+ }
1079
+
1080
+ .ace-twilight .ace_string {
1081
+ color: #8F9D6A
1082
+ }
1083
+
1084
+ .ace-twilight .ace_string.ace_regexp {
1085
+ color: #E9C062
1086
+ }
1087
+
1088
+ .ace-twilight .ace_comment {
1089
+ font-style: italic;
1090
+ color: #5F5A60
1091
+ }
1092
+
1093
+ .ace-twilight .ace_variable {
1094
+ color: #7587A6
1095
+ }
1096
+
1097
+ .ace-twilight .ace_xml-pe {
1098
+ color: #494949
1099
+ }
1100
+
1101
+ .ace-twilight .ace_indent-guide {
1102
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
1103
+ }
1104
+
1105
+ .ace-twilight .ace_indent-guide-active {
1106
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
1107
+ }
1108
+ `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(t,r,f){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=t("./twilight-css");var h=t("../lib/dom");h.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(t){n.exports=t})}()}(Wf)),Wf.exports}Tw();var Vf={exports:{}},qf;function Ew(){return qf||(qf=1,function(n,e){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(t,r,f){function h(w){var A=new Date().toLocaleString("en-us",w);return A.length==1?"0"+A:A}var p=t("./lib/dom"),v=t("./lib/oop"),d=t("./lib/event_emitter").EventEmitter,g=t("./lib/lang"),s=t("./range").Range,l=t("./range_list").RangeList,a=t("./keyboard/hash_handler").HashHandler,c=t("./tokenizer").Tokenizer,o=t("./clipboard"),u={CURRENT_WORD:function(w){return w.session.getTextRange(w.session.getWordRange())},SELECTION:function(w,A,L){var I=w.session.getTextRange();return L?I.replace(/\n\r?([ \t]*\S)/g,`
1109
+ `+L+"$1"):I},CURRENT_LINE:function(w){return w.session.getLine(w.getCursorPosition().row)},PREV_LINE:function(w){return w.session.getLine(w.getCursorPosition().row-1)},LINE_INDEX:function(w){return w.getCursorPosition().row},LINE_NUMBER:function(w){return w.getCursorPosition().row+1},SOFT_TABS:function(w){return w.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(w){return w.session.getTabSize()},CLIPBOARD:function(w){return o.getText&&o.getText()},FILENAME:function(w){return/[^/\\]*$/.exec(this.FILEPATH(w))[0]},FILENAME_BASE:function(w){return/[^/\\]*$/.exec(this.FILEPATH(w))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(w){return this.FILEPATH(w).replace(/[^/\\]*$/,"")},FILEPATH:function(w){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(w){var A=w.session.$mode||{};return A.blockComment&&A.blockComment.start||""},BLOCK_COMMENT_END:function(w){var A=w.session.$mode||{};return A.blockComment&&A.blockComment.end||""},LINE_COMMENT:function(w){var A=w.session.$mode||{};return A.lineCommentStart||""},CURRENT_YEAR:h.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:h.bind(null,{year:"2-digit"}),CURRENT_MONTH:h.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:h.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:h.bind(null,{month:"short"}),CURRENT_DATE:h.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:h.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:h.bind(null,{weekday:"short"}),CURRENT_HOUR:h.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:h.bind(null,{minute:"2-digit"}),CURRENT_SECOND:h.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var y=function(){function w(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return w.prototype.getTokenizer=function(){return w.$tokenizer||this.createTokenizer()},w.prototype.createTokenizer=function(){function A(T){return T=T.substr(1),/^\d+$/.test(T)?[{tabstopId:parseInt(T,10)}]:[{text:T}]}function L(T){return"(?:[^\\\\"+T+"]|\\\\.)"}var I={regex:"/("+L("/")+"+)/",onMatch:function(T,N,S){var _=S[0];return _.fmtString=!0,_.guard=T.slice(1,-1),_.flag="",""},next:"formatString"};return w.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(T,N,S){var _=T[1];return(_=="}"&&S.length||"`$\\".indexOf(_)!=-1)&&(T=_),[T]}},{regex:/}/,onMatch:function(T,N,S){return[S.length?S.shift():T]}},{regex:/\$(?:\d+|\w+)/,onMatch:A},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(T,N,S){var _=A(T.substr(1));return S.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+L("\\|")+"*\\|",onMatch:function(T,N,S){var _=T.slice(1,-1).replace(/\\[,|\\]|,/g,function($){return $.length==2?$[1]:"\0"}).split("\0").map(function($){return{value:$}});return S[0].choices=_,[_[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(T,N,S){return S.length&&S[0].expectElse?(S[0].expectElse=!1,S[0].ifEnd={elseEnd:S[0]},[S[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(T,N,S){var _=T[1];return _=="}"&&S.length||"`$\\".indexOf(_)!=-1?T=_:_=="n"?T=`
1110
+ `:_=="t"?T=" ":"ulULE".indexOf(_)!=-1&&(T={changeCase:_,local:_>"a"}),[T]}},{regex:"/\\w*}",onMatch:function(T,N,S){var _=S.shift();return _&&(_.flag=T.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||T]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(T,N,S){return[{text:T.slice(1)}]}},{regex:/\${\w+/,onMatch:function(T,N,S){var _={text:T.slice(2)};return S.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(T,N,S){var _=S.shift();return this.next=_&&_.tabstopId?"start":"",[_||T]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(T,N,S){var _=S[0];return _.formatFunction=T.slice(2,-1),[S.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(T,N,S){T[1]=="+"&&(S[0].ifEnd=S[0]),T[1]=="?"&&(S[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),w.$tokenizer},w.prototype.tokenizeTmSnippet=function(A,L){return this.getTokenizer().getLineTokens(A,L).tokens.map(function(I){return I.value||I})},w.prototype.getVariableValue=function(A,L,I){if(/^\d+$/.test(L))return(this.variables.__||{})[L]||"";if(/^[A-Z]\d+$/.test(L))return(this.variables[L[0]+"__"]||{})[L.substr(1)]||"";if(L=L.replace(/^TM_/,""),!this.variables.hasOwnProperty(L))return"";var T=this.variables[L];return typeof T=="function"&&(T=this.variables[L](A,L,I)),T??""},w.prototype.tmStrFormat=function(A,L,I){if(!L.fmt)return A;var T=L.flag||"",N=L.guard;N=new RegExp(N,T.replace(/[^gim]/g,""));var S=typeof L.fmt=="string"?this.tokenizeTmSnippet(L.fmt,"formatString"):L.fmt,_=this,$=A.replace(N,function(){var R=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables(S,I),F="E",B=0;B<O.length;B++){var W=O[B];if(typeof W=="object")if(O[B]="",W.changeCase&&W.local){var V=O[B+1];V&&typeof V=="string"&&(W.changeCase=="u"?O[B]=V[0].toUpperCase():O[B]=V[0].toLowerCase(),O[B+1]=V.substr(1))}else W.changeCase&&(F=W.changeCase);else F=="U"?O[B]=W.toUpperCase():F=="L"&&(O[B]=W.toLowerCase())}return _.variables.__=R,O.join("")});return $},w.prototype.tmFormatFunction=function(A,L,I){return L.formatFunction=="upcase"?A.toUpperCase():L.formatFunction=="downcase"?A.toLowerCase():A},w.prototype.resolveVariables=function(A,L){function I(F){var B=A.indexOf(F,_+1);B!=-1&&(_=B)}for(var T=[],N="",S=!0,_=0;_<A.length;_++){var $=A[_];if(typeof $=="string"){T.push($),$==`
1111
+ `?(S=!0,N=""):S&&(N=/^\t*/.exec($)[0],S=/\S/.test($));continue}if($){if(S=!1,$.fmtString){var R=A.indexOf($,_+1);R==-1&&(R=A.length),$.fmt=A.slice(_+1,R),_=R}if($.text){var O=this.getVariableValue(L,$.text,N)+"";$.fmtString&&(O=this.tmStrFormat(O,$,L)),$.formatFunction&&(O=this.tmFormatFunction(O,$,L)),O&&!$.ifEnd?(T.push(O),I($)):!O&&$.ifEnd&&I($.ifEnd)}else $.elseEnd?I($.elseEnd):($.tabstopId!=null||$.changeCase!=null)&&T.push($)}}return T},w.prototype.getDisplayTextForSnippet=function(A,L){var I=b.call(this,A,L);return I.text},w.prototype.insertSnippetForSelection=function(A,L,I){I===void 0&&(I={});var T=b.call(this,A,L,I),N=A.getSelectionRange(),S=A.session.replace(N,T.text),_=new x(A),$=A.inVirtualSelectionMode&&A.selection.index;_.addTabstops(T.tabstops,N.start,S,$)},w.prototype.insertSnippet=function(A,L,I){I===void 0&&(I={});var T=this;if(A.inVirtualSelectionMode)return T.insertSnippetForSelection(A,L,I);A.forEachSelection(function(){T.insertSnippetForSelection(A,L,I)},null,{keepOrder:!0}),A.tabstopManager&&A.tabstopManager.tabNext()},w.prototype.$getScope=function(A){var L=A.session.$mode.$id||"";if(L=L.split("/").pop(),L==="html"||L==="php"){L==="php"&&!A.session.$mode.inlinePhp&&(L="html");var I=A.getCursorPosition(),T=A.session.getState(I.row);typeof T=="object"&&(T=T[0]),T.substring&&(T.substring(0,3)=="js-"?L="javascript":T.substring(0,4)=="css-"?L="css":T.substring(0,4)=="php-"&&(L="php"))}return L},w.prototype.getActiveScopes=function(A){var L=this.$getScope(A),I=[L],T=this.snippetMap;return T[L]&&T[L].includeScopes&&I.push.apply(I,T[L].includeScopes),I.push("_"),I},w.prototype.expandWithTab=function(A,L){var I=this,T=A.forEachSelection(function(){return I.expandSnippetForSelection(A,L)},null,{keepOrder:!0});return T&&A.tabstopManager&&A.tabstopManager.tabNext(),T},w.prototype.expandSnippetForSelection=function(A,L){var I=A.getCursorPosition(),T=A.session.getLine(I.row),N=T.substring(0,I.column),S=T.substr(I.column),_=this.snippetMap,$;return this.getActiveScopes(A).some(function(R){var O=_[R];return O&&($=this.findMatchingSnippet(O,N,S)),!!$},this),$?(L&&L.dryRun||(A.session.doc.removeInLine(I.row,I.column-$.replaceBefore.length,I.column+$.replaceAfter.length),this.variables.M__=$.matchBefore,this.variables.T__=$.matchAfter,this.insertSnippetForSelection(A,$.content),this.variables.M__=this.variables.T__=null),!0):!1},w.prototype.findMatchingSnippet=function(A,L,I){for(var T=A.length;T--;){var N=A[T];if(!(N.startRe&&!N.startRe.test(L))&&!(N.endRe&&!N.endRe.test(I))&&!(!N.startRe&&!N.endRe))return N.matchBefore=N.startRe?N.startRe.exec(L):[""],N.matchAfter=N.endRe?N.endRe.exec(I):[""],N.replaceBefore=N.triggerRe?N.triggerRe.exec(L)[0]:"",N.replaceAfter=N.endTriggerRe?N.endTriggerRe.exec(I)[0]:"",N}},w.prototype.register=function(A,L){function I(R){return R&&!/^\^?\(.*\)\$?$|^\\b$/.test(R)&&(R="(?:"+R+")"),R||""}function T(R,O,F){return R=I(R),O=I(O),R=O+R,R&&R[R.length-1]!="$"&&(R+="$"),new RegExp(R)}function N(R){R.scope||(R.scope=L||"_"),L=R.scope,S[L]||(S[L]=[],_[L]={});var O=_[L];if(R.name){var F=O[R.name];F&&$.unregister(F),O[R.name]=R}S[L].push(R),R.prefix&&(R.tabTrigger=R.prefix),!R.content&&R.body&&(R.content=Array.isArray(R.body)?R.body.join(`
1112
+ `):R.body),R.tabTrigger&&!R.trigger&&(!R.guard&&/^\w/.test(R.tabTrigger)&&(R.guard="\\b"),R.trigger=g.escapeRegExp(R.tabTrigger)),!(!R.trigger&&!R.guard&&!R.endTrigger&&!R.endGuard)&&(R.startRe=T(R.trigger,R.guard),R.triggerRe=new RegExp(R.trigger),R.endRe=T(R.endTrigger,R.endGuard),R.endTriggerRe=new RegExp(R.endTrigger))}var S=this.snippetMap,_=this.snippetNameMap,$=this;A||(A=[]),Array.isArray(A)?A.forEach(N):Object.keys(A).forEach(function(R){N(A[R])}),this._signal("registerSnippets",{scope:L})},w.prototype.unregister=function(A,L){function I(S){var _=N[S.scope||L];if(_&&_[S.name]){delete _[S.name];var $=T[S.scope||L],R=$&&$.indexOf(S);R>=0&&$.splice(R,1)}}var T=this.snippetMap,N=this.snippetNameMap;A.content?I(A):Array.isArray(A)&&A.forEach(I)},w.prototype.parseSnippetFile=function(A){A=A.replace(/\r/g,"");for(var L=[],I={},T=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,N;N=T.exec(A);){if(N[1])try{I=JSON.parse(N[1]),L.push(I)}catch{}if(N[4])I.content=N[4].replace(/^\t/gm,""),L.push(I),I={};else{var S=N[2],_=N[3];if(S=="regex"){var $=/\/((?:[^\/\\]|\\.)*)|$/g;I.guard=$.exec(_)[1],I.trigger=$.exec(_)[1],I.endTrigger=$.exec(_)[1],I.endGuard=$.exec(_)[1]}else S=="snippet"?(I.tabTrigger=_.match(/^\S*/)[0],I.name||(I.name=_)):S&&(I[S]=_)}}return L},w.prototype.getSnippetByName=function(A,L){var I=this.snippetNameMap,T;return this.getActiveScopes(L).some(function(N){var S=I[N];return S&&(T=S[A]),!!T},this),T},w}();v.implement(y.prototype,d);var b=function(w,A,L){function I(J){for(var ae=[],me=0;me<J.length;me++){var ve=J[me];if(typeof ve=="object"){if(O[ve.tabstopId])continue;var pe=J.lastIndexOf(ve,me-1);ve=ae[pe]||{tabstopId:ve.tabstopId}}ae[me]=ve}return ae}L===void 0&&(L={});var T=w.getCursorPosition(),N=w.session.getLine(T.row),S=w.session.getTabString(),_=N.match(/^\s*/)[0];T.column<_.length&&(_=_.slice(0,T.column)),A=A.replace(/\r/g,"");var $=this.tokenizeTmSnippet(A);$=this.resolveVariables($,w),$=$.map(function(J){return J==`
1113
+ `&&!L.excludeExtraIndent?J+_:typeof J=="string"?J.replace(/\t/g,S):J});var R=[];$.forEach(function(J,ae){if(typeof J=="object"){var me=J.tabstopId,ve=R[me];if(ve||(ve=R[me]=[],ve.index=me,ve.value="",ve.parents={}),ve.indexOf(J)===-1){J.choices&&!ve.choices&&(ve.choices=J.choices),ve.push(J);var pe=$.indexOf(J,ae+1);if(pe!==-1){var Ce=$.slice(ae+1,pe),lt=Ce.some(function(Wt){return typeof Wt=="object"});lt&&!ve.value?ve.value=Ce:Ce.length&&(!ve.value||typeof ve.value!="string")&&(ve.value=Ce.join(""))}}}}),R.forEach(function(J){J.length=0});for(var O={},F=0;F<$.length;F++){var B=$[F];if(typeof B=="object"){var W=B.tabstopId,V=R[W],q=$.indexOf(B,F+1);if(O[W]){O[W]===B&&(delete O[W],Object.keys(O).forEach(function(J){V.parents[J]=!0}));continue}O[W]=B;var X=V.value;typeof X!="string"?X=I(X):B.fmt&&(X=this.tmStrFormat(X,B,w)),$.splice.apply($,[F+1,Math.max(0,q-F)].concat(X,B)),V.indexOf(B)===-1&&V.push(B)}}var G=0,Z=0,re="";return $.forEach(function(J){if(typeof J=="string"){var ae=J.split(`
1114
+ `);ae.length>1?(Z=ae[ae.length-1].length,G+=ae.length-1):Z+=J.length,re+=J}else J&&(J.start?J.end={row:G,column:Z}:J.start={row:G,column:Z})}),{text:re,tabstops:R,tokens:$}},x=function(){function w(A){if(this.index=0,this.ranges=[],this.tabstops=[],A.tabstopManager)return A.tabstopManager;A.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=g.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(A)}return w.prototype.attach=function(A){this.$openTabstops=null,this.selectedTabstop=null,this.editor=A,this.session=A.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},w.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},w.prototype.onChange=function(A){for(var L=A.action[0]=="r",I=this.selectedTabstop||{},T=I.parents||{},N=this.tabstops.slice(),S=0;S<N.length;S++){var _=N[S],$=_==I||T[_.index];if(_.rangeList.$bias=$?0:1,A.action=="remove"&&_!==I){var R=_.parents&&_.parents[I.index],O=_.rangeList.pointIndex(A.start,R);O=O<0?-O-1:O+1;var F=_.rangeList.pointIndex(A.end,R);F=F<0?-F-1:F-1;for(var B=_.rangeList.ranges.slice(O,F),W=0;W<B.length;W++)this.removeRange(B[W])}_.rangeList.$onChange(A)}var V=this.session;!this.$inChange&&L&&V.getLength()==1&&!V.getValue()&&this.detach()},w.prototype.updateLinkedFields=function(){var A=this.selectedTabstop;if(!(!A||!A.hasLinkedRanges||!A.firstNonLinked)){this.$inChange=!0;for(var L=this.session,I=L.getTextRange(A.firstNonLinked),T=0;T<A.length;T++){var N=A[T];if(N.linked){var S=N.original,_=r.snippetManager.tmStrFormat(I,S,this.editor);L.replace(N,_)}}this.$inChange=!1}},w.prototype.onAfterExec=function(A){A.command&&!A.command.readOnly&&this.updateLinkedFields()},w.prototype.onChangeSelection=function(){if(this.editor){for(var A=this.editor.selection.lead,L=this.editor.selection.anchor,I=this.editor.selection.isEmpty(),T=0;T<this.ranges.length;T++)if(!this.ranges[T].linked){var N=this.ranges[T].contains(A.row,A.column),S=I||this.ranges[T].contains(L.row,L.column);if(N&&S)return}this.detach()}},w.prototype.onChangeSession=function(){this.detach()},w.prototype.tabNext=function(A){var L=this.tabstops.length,I=this.index+(A||1);I=Math.min(Math.max(I,1),L),I==L&&(I=0),this.selectTabstop(I),this.updateTabstopMarkers(),I===0&&this.detach()},w.prototype.selectTabstop=function(A){this.$openTabstops=null;var L=this.tabstops[this.index];if(L&&this.addTabstopMarkers(L),this.index=A,L=this.tabstops[this.index],!(!L||!L.length)){this.selectedTabstop=L;var I=L.firstNonLinked||L;if(L.choices&&(I.cursor=I.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(I);else{var T=this.editor.multiSelect;T.toSingleRange(I);for(var N=0;N<L.length;N++)L.hasLinkedRanges&&L[N].linked||T.addRange(L[N].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},w.prototype.addTabstops=function(A,L,I){var T=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!A[0]){var N=s.fromPoints(I,I);C(N.start,L),C(N.end,L),A[0]=[N],A[0].index=0}var S=this.index,_=[S+1,0],$=this.ranges,R=this.snippetId=(this.snippetId||0)+1;A.forEach(function(O,F){var B=this.$openTabstops[F]||O;B.snippetId=R;for(var W=0;W<O.length;W++){var V=O[W],q=s.fromPoints(V.start,V.end||V.start);E(q.start,L),E(q.end,L),q.original=V,q.tabstop=B,$.push(q),B!=O?B.unshift(q):B[W]=q,V.fmtString||B.firstNonLinked&&T?(q.linked=!0,B.hasLinkedRanges=!0):B.firstNonLinked||(B.firstNonLinked=q)}B.firstNonLinked||(B.hasLinkedRanges=!1),B===O&&(_.push(B),this.$openTabstops[F]=B),this.addTabstopMarkers(B),B.rangeList=B.rangeList||new l,B.rangeList.$bias=0,B.rangeList.addList(B)},this),_.length>2&&(this.tabstops.length&&_.push(_.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,_))},w.prototype.addTabstopMarkers=function(A){var L=this.session;A.forEach(function(I){I.markerId||(I.markerId=L.addMarker(I,"ace_snippet-marker","text"))})},w.prototype.removeTabstopMarkers=function(A){var L=this.session;A.forEach(function(I){L.removeMarker(I.markerId),I.markerId=null})},w.prototype.updateTabstopMarkers=function(){if(this.selectedTabstop){var A=this.selectedTabstop.snippetId;this.selectedTabstop.index===0&&A--,this.tabstops.forEach(function(L){L.snippetId===A?this.addTabstopMarkers(L):this.removeTabstopMarkers(L)},this)}},w.prototype.removeRange=function(A){var L=A.tabstop.indexOf(A);L!=-1&&A.tabstop.splice(L,1),L=this.ranges.indexOf(A),L!=-1&&this.ranges.splice(L,1),L=A.tabstop.rangeList.ranges.indexOf(A),L!=-1&&A.tabstop.splice(L,1),this.session.removeMarker(A.markerId),A.tabstop.length||(L=this.tabstops.indexOf(A.tabstop),L!=-1&&this.tabstops.splice(L,1),this.tabstops.length||this.detach())},w}();x.prototype.keyboardHandler=new a,x.prototype.keyboardHandler.bindKeys({Tab:function(w){r.snippetManager&&r.snippetManager.expandWithTab(w)||(w.tabstopManager.tabNext(1),w.renderer.scrollCursorIntoView())},"Shift-Tab":function(w){w.tabstopManager.tabNext(-1),w.renderer.scrollCursorIntoView()},Esc:function(w){w.tabstopManager.detach()}});var E=function(w,A){w.row==0&&(w.column+=A.column),w.row+=A.row},C=function(w,A){w.row==A.row&&(w.column-=A.column),w.row-=A.row};p.importCssString(`
1115
+ .ace_snippet-marker {
1116
+ -moz-box-sizing: border-box;
1117
+ box-sizing: border-box;
1118
+ background: rgba(194, 193, 208, 0.09);
1119
+ border: 1px dotted rgba(211, 208, 235, 0.62);
1120
+ position: absolute;
1121
+ }`,"snippets.css",!1),r.snippetManager=new y;var k=t("./editor").Editor;(function(){this.insertSnippet=function(w,A){return r.snippetManager.insertSnippet(this,w,A)},this.expandSnippet=function(w){return r.snippetManager.expandWithTab(this,w)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(t,r,f){var h=t("../virtual_renderer").VirtualRenderer,p=t("../editor").Editor,v=t("../range").Range,d=t("../lib/event"),g=t("../lib/lang"),s=t("../lib/dom"),l=t("../config").nls,a=t("./../lib/useragent"),c=function(E){return"suggest-aria-id:".concat(E)},o=a.isSafari?"menu":"listbox",u=a.isSafari?"menuitem":"option",y=a.isSafari?"aria-current":"aria-selected",b=function(E){var C=new h(E);C.$maxLines=4;var k=new p(C);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function E(C){var k=s.createElement("div"),w=b(k);C&&C.appendChild(k),k.style.display="none",w.renderer.content.style.cursor="default",w.renderer.setStyle("ace_autocomplete"),w.renderer.$textLayer.element.setAttribute("role",o),w.renderer.$textLayer.element.setAttribute("aria-roledescription",l("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),w.renderer.$textLayer.element.setAttribute("aria-label",l("autocomplete.popup.aria-label","Autocomplete suggestions")),w.renderer.textarea.setAttribute("aria-hidden","true"),w.setOption("displayIndentGuides",!1),w.setOption("dragDelay",150);var A=function(){};w.focus=A,w.$isFocused=!0,w.renderer.$cursorLayer.restartTimer=A,w.renderer.$cursorLayer.element.style.opacity="0",w.renderer.$maxLines=8,w.renderer.$keepTextAreaAtCursor=!1,w.setHighlightActiveLine(!1),w.session.highlight(""),w.session.$searchHighlight.clazz="ace_highlight-marker",w.on("mousedown",function($){var R=$.getDocumentPosition();w.selection.moveToPosition(R),T.start.row=T.end.row=R.row,$.stop()});var L,I=new v(-1,0,-1,1/0),T=new v(-1,0,-1,1/0);T.id=w.session.addMarker(T,"ace_active-line","fullLine"),w.setSelectOnHover=function($){$?I.id&&(w.session.removeMarker(I.id),I.id=null):I.id=w.session.addMarker(I,"ace_line-hover","fullLine")},w.setSelectOnHover(!1),w.on("mousemove",function($){if(!L){L=$;return}if(!(L.x==$.x&&L.y==$.y)){L=$,L.scrollTop=w.renderer.scrollTop,w.isMouseOver=!0;var R=L.getDocumentPosition().row;I.start.row!=R&&(I.id||w.setRow(R),S(R))}}),w.renderer.on("beforeRender",function(){if(L&&I.start.row!=-1){L.$pos=null;var $=L.getDocumentPosition().row;I.id||w.setRow($),S($,!0)}}),w.renderer.on("afterRender",function(){var $=w.getRow(),R=w.renderer.$textLayer,O=R.element.childNodes[$-R.config.firstRow],F=document.activeElement;if(O!==w.selectedNode&&w.selectedNode&&(s.removeCssClass(w.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),w.selectedNode.removeAttribute(y),w.selectedNode.removeAttribute("id")),w.selectedNode=O,O){s.addCssClass(O,"ace_selected");var B=c($);O.id=B,R.element.setAttribute("aria-activedescendant",B),F.setAttribute("aria-activedescendant",B),O.setAttribute("role",u),O.setAttribute("aria-roledescription",l("autocomplete.popup.item.aria-roledescription","item")),O.setAttribute("aria-label",w.getData($).caption||w.getData($).value),O.setAttribute("aria-setsize",w.data.length),O.setAttribute("aria-posinset",$+1),O.setAttribute("aria-describedby","doc-tooltip"),O.setAttribute(y,"true")}});var N=function(){S(-1)},S=function($,R){$!==I.start.row&&(I.start.row=I.end.row=$,R||w.session._emit("changeBackMarker"),w._emit("changeHoverMarker"))};w.getHoveredRow=function(){return I.start.row},d.addListener(w.container,"mouseout",function(){w.isMouseOver=!1,N()}),w.on("hide",N),w.on("changeSelection",N),w.session.doc.getLength=function(){return w.data.length},w.session.doc.getLine=function($){var R=w.data[$];return typeof R=="string"?R:R&&R.value||""};var _=w.session.bgTokenizer;return _.$tokenizeRow=function($){function R(J,ae){J&&F.push({type:(O.className||"")+(ae||""),value:J})}var O=w.data[$],F=[];if(!O)return F;typeof O=="string"&&(O={value:O});for(var B=O.caption||O.value||O.name,W=B.toLowerCase(),V=(w.filterText||"").toLowerCase(),q=0,X=0,G=0;G<=V.length;G++)if(G!=X&&(O.matchMask&1<<G||G==V.length)){var Z=V.slice(X,G);X=G;var re=W.indexOf(Z,q);if(re==-1)continue;R(B.slice(q,re),""),q=re+Z.length,R(B.slice(re,q),"completion-highlight")}return R(B.slice(q,B.length),""),F.push({type:"completion-spacer",value:" "}),O.meta&&F.push({type:"completion-meta",value:O.meta}),O.message&&F.push({type:"completion-message",value:O.message}),F},_.$updateOnChange=A,_.start=A,w.session.$computeWidth=function(){return this.screenWidth=0},w.isOpen=!1,w.isTopdown=!1,w.autoSelect=!0,w.filterText="",w.isMouseOver=!1,w.data=[],w.setData=function($,R){w.filterText=R||"",w.setValue(g.stringRepeat(`
1122
+ `,$.length),-1),w.data=$||[],w.setRow(0)},w.getData=function($){return w.data[$]},w.getRow=function(){return T.start.row},w.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),T.start.row!=$&&(w.selection.clearSelection(),T.start.row=T.end.row=$||0,w.session._emit("changeBackMarker"),w.moveCursorTo($||0,0),w.isOpen&&w._signal("select"))},w.on("changeSelection",function(){w.isOpen&&w.setRow(w.selection.lead.row),w.renderer.scrollCursorIntoView()}),w.hide=function(){this.container.style.display="none",w.anchorPos=null,w.anchor=null,w.isOpen&&(w.isOpen=!1,this._signal("hide"))},w.tryShow=function($,R,O,F){if(!F&&w.isOpen&&w.anchorPos&&w.anchor&&w.anchorPos.top===$.top&&w.anchorPos.left===$.left&&w.anchor===O)return!0;var B=this.container,W=window.innerHeight,V=window.innerWidth,q=this.renderer,X=q.$maxLines*R*1.4,G={top:0,bottom:0,left:0},Z=W-$.top-3*this.$borderSize-R,re=$.top-3*this.$borderSize;O||(re<=Z||Z>=X?O="bottom":O="top"),O==="top"?(G.bottom=$.top-this.$borderSize,G.top=G.bottom-X):O==="bottom"&&(G.top=$.top+R+this.$borderSize,G.bottom=G.top+X);var J=G.top>=0&&G.bottom<=W;if(!F&&!J)return!1;J?q.$maxPixelHeight=null:O==="top"?q.$maxPixelHeight=re:q.$maxPixelHeight=Z,O==="top"?(B.style.top="",B.style.bottom=W-G.bottom+"px",w.isTopdown=!1):(B.style.top=G.top+"px",B.style.bottom="",w.isTopdown=!0),B.style.display="";var ae=$.left;return ae+B.offsetWidth>V&&(ae=V-B.offsetWidth),B.style.left=ae+"px",B.style.right="",w.isOpen||(w.isOpen=!0,this._signal("show"),L=null),w.anchorPos=$,w.anchor=O,!0},w.show=function($,R,O){this.tryShow($,R,O?"bottom":void 0,!0)},w.goTo=function($){var R=this.getRow(),O=this.session.getLength()-1;switch($){case"up":R=R<=0?O:R-1;break;case"down":R=R>=O?-1:R+1;break;case"start":R=0;break;case"end":R=O}this.setRow(R)},w.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},w.$imageSize=0,w.$borderSize=1,w}return E}();s.importCssString(`
1123
+ .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1124
+ background-color: #CAD6FA;
1125
+ z-index: 1;
1126
+ }
1127
+ .ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
1128
+ background-color: #3a674e;
1129
+ }
1130
+ .ace_editor.ace_autocomplete .ace_line-hover {
1131
+ border: 1px solid #abbffe;
1132
+ margin-top: -1px;
1133
+ background: rgba(233,233,253,0.4);
1134
+ position: absolute;
1135
+ z-index: 2;
1136
+ }
1137
+ .ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
1138
+ border: 1px solid rgba(109, 150, 13, 0.8);
1139
+ background: rgba(58, 103, 78, 0.62);
1140
+ }
1141
+ .ace_completion-meta {
1142
+ opacity: 0.5;
1143
+ margin-left: 0.9em;
1144
+ }
1145
+ .ace_completion-message {
1146
+ margin-left: 0.9em;
1147
+ color: blue;
1148
+ }
1149
+ .ace_editor.ace_autocomplete .ace_completion-highlight{
1150
+ color: #2d69c7;
1151
+ }
1152
+ .ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
1153
+ color: #93ca12;
1154
+ }
1155
+ .ace_editor.ace_autocomplete {
1156
+ width: 300px;
1157
+ z-index: 200000;
1158
+ border: 1px lightgray solid;
1159
+ position: fixed;
1160
+ box-shadow: 2px 3px 5px rgba(0,0,0,.2);
1161
+ line-height: 1.4;
1162
+ background: #fefefe;
1163
+ color: #111;
1164
+ }
1165
+ .ace_dark.ace_editor.ace_autocomplete {
1166
+ border: 1px #484747 solid;
1167
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
1168
+ line-height: 1.4;
1169
+ background: #25282c;
1170
+ color: #c1c1c1;
1171
+ }
1172
+ .ace_autocomplete .ace_text-layer {
1173
+ width: calc(100% - 8px);
1174
+ }
1175
+ .ace_autocomplete .ace_line {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ }
1179
+ .ace_autocomplete .ace_line > * {
1180
+ min-width: 0;
1181
+ flex: 0 0 auto;
1182
+ }
1183
+ .ace_autocomplete .ace_line .ace_ {
1184
+ flex: 0 1 auto;
1185
+ overflow: hidden;
1186
+ text-overflow: ellipsis;
1187
+ }
1188
+ .ace_autocomplete .ace_completion-spacer {
1189
+ flex: 1;
1190
+ }
1191
+ .ace_autocomplete.ace_loading:after {
1192
+ content: "";
1193
+ position: absolute;
1194
+ top: 0px;
1195
+ height: 2px;
1196
+ width: 8%;
1197
+ background: blue;
1198
+ z-index: 100;
1199
+ animation: ace_progress 3s infinite linear;
1200
+ animation-delay: 300ms;
1201
+ transform: translateX(-100%) scaleX(1);
1202
+ }
1203
+ @keyframes ace_progress {
1204
+ 0% { transform: translateX(-100%) scaleX(1) }
1205
+ 50% { transform: translateX(625%) scaleX(2) }
1206
+ 100% { transform: translateX(1500%) scaleX(3) }
1207
+ }
1208
+ @media (prefers-reduced-motion) {
1209
+ .ace_autocomplete.ace_loading:after {
1210
+ transform: translateX(625%) scaleX(2);
1211
+ animation: none;
1212
+ }
1213
+ }
1214
+ `,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=b,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(t,r,f){var h=function(){function p(v){this.editor=v,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return p.prototype.setScreenReaderContent=function(v){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),s=this.popup.renderer.$textLayer,l=s.element.childNodes[g-s.config.firstRow];if(l){for(var a="doc-tooltip ",c=0;c<this._lines.length;c++)a+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",a)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=v.split(/\r\n|\r|\n/);var d=this.createCodeBlock();this.screenReaderDiv.appendChild(d)},p.prototype.destroy=function(){this.screenReaderDiv.remove()},p.prototype.createCodeBlock=function(){var v=document.createElement("pre");v.setAttribute("id","ace-inline-screenreader");for(var d=0;d<this._lines.length;d++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(d));var s=document.createTextNode(this._lines[d]);g.appendChild(s),v.appendChild(g)}return v},p}();r.AceInlineScreenReader=h}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(t,r,f){var h=t("../snippets").snippetManager,p=t("./inline_screenreader").AceInlineScreenReader,v=function(){function d(){this.editor=null}return d.prototype.show=function(g,s,l){if(l=l||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new p(g));var a=s.snippet?h.getDisplayTextForSnippet(g,s.snippet):s.value;return s.hideInlinePreview||!a||!a.startsWith(l)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(a),a=a.slice(l.length),a===""?g.removeGhostText():g.setGhostText(a),!0)},d.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},d.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},d.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},d}();r.AceInline=v}),ace.define("ace/autocomplete/util",["require","exports","module"],function(t,r,f){r.parForEach=function(p,v,d){var g=0,s=p.length;s===0&&d();for(var l=0;l<s;l++)v(p[l],function(a,c){g++,g===s&&d(a,c)})};var h=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(p,v,d){d=d||h;for(var g=[],s=v-1;s>=0&&d.test(p[s]);s--)g.push(p[s]);return g.reverse().join("")},r.retrieveFollowingIdentifier=function(p,v,d){d=d||h;for(var g=[],s=v;s<p.length&&d.test(p[s]);s++)g.push(p[s]);return g},r.getCompletionPrefix=function(p){var v=p.getCursorPosition(),d=p.session.getLine(v.row),g;return p.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(l){!g&&l&&(g=this.retrievePrecedingIdentifier(d,v.column,l))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(d,v.column)},r.triggerAutocomplete=function(p,d){var d=d??p.session.getPrecedingCharacter();return p.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(d)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(t,r,f){var h=t("./keyboard/hash_handler").HashHandler,p=t("./autocomplete/popup").AcePopup,v=t("./autocomplete/inline").AceInline,d=t("./autocomplete/popup").getAriaId,g=t("./autocomplete/util"),s=t("./lib/lang"),l=t("./lib/dom"),a=t("./snippets").snippetManager,c=t("./config"),o=t("./lib/event"),u=t("./lib/scroll").preventParentScroll,y=function(C,k){k.completer&&k.completer.destroy()},b=function(){function C(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new h,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new E(C.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(C,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),C.prototype.$init=function(){return this.popup=new p(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},C.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new v,this.inlineRenderer},C.prototype.getPopup=function(){return this.popup||this.$init()},C.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},C.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},C.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var w=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(w),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},C.prototype.$updateGhostText=function(k){var w=this.base.row,A=this.base.column,L=this.editor.getCursorPosition().column,I=this.editor.session.getLine(w).slice(A,L);this.inlineRenderer.show(this.editor,k,I)?this.$seen(k):this.inlineRenderer.hide()},C.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var w=this.popup.getFirstVisibleRow();w<=this.popup.getLastVisibleRow();w++){var A=this.popup.getData(w);A&&(!k||A.hideInlinePreview)&&this.$seen(A)}},C.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},C.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,w=[];k;)w.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=w}},C.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(w){w.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},C.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},C.prototype.$updatePopupPosition=function(){var k=this.editor,w=k.renderer,A=w.layerConfig.lineHeight,L=w.$cursorLayer.getPixelPosition(this.base,!0);L.left-=this.popup.getTextLeftOffset();var I=k.container.getBoundingClientRect();L.top+=I.top-w.layerConfig.offset,L.left+=I.left-k.renderer.scrollLeft,L.left+=w.gutterWidth;var T={top:L.top,left:L.left};w.$ghostText&&w.$ghostTextWidget&&this.base.row===w.$ghostText.position.row&&(T.top+=w.$ghostTextWidget.el.offsetHeight);var N=k.container.getBoundingClientRect().bottom-A,S=N<T.top?{top:N,left:T.left}:T;this.popup.tryShow(S,A,"bottom")||this.popup.tryShow(L,A,"top")||this.popup.show(L,A)},C.prototype.openPopup=function(k,w,A){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var L=this.popup.getRow(),I=this.popup.data[L];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:d(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var T;this.stickySelection&&(T=this.popup.data.indexOf(I)),(!T||T===-1)&&(T=0),this.popup.setRow(this.autoSelect?T:-1),T===L&&I!==this.completions.filtered[T]&&this.$onPopupChange();var N=this.inlineRenderer&&this.inlineEnabled;if(T===L&&N){var S=this.popup.getData(this.popup.getRow());this.$updateGhostText(S)}A||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},C.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},C.prototype.changeListener=function(k){var w=this.editor.selection.lead;(w.row!=this.base.row||w.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},C.prototype.blurListener=function(k){var w=document.activeElement,A=this.editor.textInput.getElement(),L=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;w!=A&&w.parentNode!=I&&!L&&w!=this.tooltipNode&&k.relatedTarget!=A&&this.detach()},C.prototype.mousedownListener=function(k){this.detach()},C.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},C.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},C.prototype.goTo=function(k){this.popup.goTo(k)},C.prototype.insertMatch=function(k,w){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var A=this.completions,L=this.getCompletionProvider().insertMatch(this.editor,k,A.filterText,w);return this.completions==A&&this.detach(),L},C.prototype.showPopup=function(k,w){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,w)},C.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},C.prototype.gatherCompletions=function(k,w){return this.getCompletionProvider().gatherCompletions(k,w)},C.prototype.updateCompletions=function(k,w){if(k&&this.base&&this.completions){var L=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:L});if(I==this.completions.filterText)return;if(this.completions.setFilter(I),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==I&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,I,k);return}if(w&&w.matches){var L=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(L.row,L.column),this.base.$insertRight=!0,this.completions=new E(w.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var A=this.editor.getSession(),L=this.editor.getCursorPosition(),I=g.getCompletionPrefix(this.editor);this.base=A.doc.createAnchor(L.row,L.column-I.length),this.base.$insertRight=!0;var T={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:L}).provideCompletions(this.editor,T,(function(N,S,_){var $=S.filtered,R=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!$.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(R)),O){var F=[{caption:O,value:""}];this.completions=new E(F),this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==R&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!_&&this.showLoadingState?new E(C.completionsForLoading.concat($),S.filterText):S,this.openPopup(this.editor,R,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},C.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},C.prototype.updateDocTooltip=function(){var k=this.popup,w=this.completions.filtered,A=w&&(w[k.getHoveredRow()]||w[k.getRow()]),L=null;if(!A||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,T=0;T<I;T++){var N=this.editor.completers[T];if(N.getDocTooltip&&A.completerId===N.id){L=N.getDocTooltip(A);break}}if(!L&&typeof A!="string"&&(L=A),typeof L=="string"&&(L={docText:L}),!L||!L.docHTML&&!L.docText)return this.hideDocTooltip();this.showDocTooltip(L)},C.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",u));var w=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(w.isDark?"ace_dark ":"")+(w.cssClass||"");var A=this.tooltipNode;k.docHTML?A.innerHTML=k.docHTML:k.docText&&(A.textContent=k.docText),A.parentNode||this.popup.container.appendChild(this.tooltipNode);var L=this.popup,I=L.container.getBoundingClientRect();A.style.top=L.container.style.top,A.style.bottom=L.container.style.bottom,A.style.display="block",window.innerWidth-I.right<320?I.left<320?L.isTopdown?(A.style.top=I.bottom+"px",A.style.left=I.left+"px",A.style.right="",A.style.bottom=""):(A.style.top=L.container.offsetTop-A.offsetHeight+"px",A.style.left=I.left+"px",A.style.right="",A.style.bottom=""):(A.style.right=window.innerWidth-I.left+"px",A.style.left=""):(A.style.left=I.right+1+"px",A.style.right="")},C.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},C.prototype.onTooltipClick=function(k){for(var w=k.target;w&&w!=this.tooltipNode;){if(w.nodeName=="A"&&w.href){w.rel="noreferrer",w.target="_blank";break}w=w.parentNode}},C.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",y),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},C.for=function(k){return k.completer instanceof C||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(C.$sharedInstance||(C.$sharedInstance=new C),k.completer=C.$sharedInstance):(k.completer=new C,k.once("destroy",y))),k.completer},C}();b.prototype.commands={Up:function(C){C.completer.goTo("up")},Down:function(C){C.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(C){C.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(C){C.completer.goTo("end")},Esc:function(C){C.completer.detach()},Return:function(C){return C.completer.insertMatch()},"Shift-Return":function(C){C.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(C){var k=C.completer.insertMatch();if(k||C.tabstopManager)return k;C.completer.goTo("down")},Backspace:function(C){C.execCommand("backspace");var k=g.getCompletionPrefix(C);!k&&C.completer&&C.completer.detach()},PageUp:function(C){C.completer.popup.gotoPageUp()},PageDown:function(C){C.completer.popup.gotoPageDown()}},b.startCommand={name:"startAutocomplete",exec:function(C,k){var w=b.for(C);w.autoInsert=!1,w.autoSelect=!0,w.autoShown=!1,w.showPopup(C,k),w.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function C(k){this.initialPosition=k,this.active=!0}return C.prototype.insertByIndex=function(k,w,A){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[w],A)},C.prototype.insertMatch=function(k,w,A){if(!w)return!1;if(k.startOperation({command:{name:"insertMatch"}}),w.completer&&w.completer.insertMatch)w.completer.insertMatch(k,w);else{if(!this.completions)return!1;var L=this.completions.filterText.length,I=0;if(w.range&&w.range.start.row===w.range.end.row&&(L-=this.initialPosition.prefix.length,L+=this.initialPosition.pos.column-w.range.start.column,I+=w.range.end.column-this.initialPosition.pos.column),L||I){var T;k.selection.getAllRanges?T=k.selection.getAllRanges():T=[k.getSelectionRange()];for(var N=0,S;S=T[N];N++)S.start.column-=L,S.end.column+=I,k.session.remove(S)}w.snippet?a.insertSnippet(k,w.snippet):this.$insertString(k,w),w.completer&&w.completer.onInsert&&typeof w.completer.onInsert=="function"&&w.completer.onInsert(k,w),w.command&&w.command==="startAutocomplete"&&k.execCommand(w.command)}return k.endOperation(),!0},C.prototype.$insertString=function(k,w){var A=w.value||w;k.execCommand("insertstring",A)},C.prototype.gatherCompletions=function(k,w){var A=k.getSession(),L=k.getCursorPosition(),I=g.getCompletionPrefix(k),T=[];this.completers=k.completers;var N=k.completers.length;return k.completers.forEach(function(S,_){S.getCompletions(k,A,L,I,function($,R){S.hideInlinePreview&&(R=R.map(function(O){return Object.assign(O,{hideInlinePreview:S.hideInlinePreview})})),!$&&R&&(T=T.concat(R)),w(null,{prefix:g.getCompletionPrefix(k),matches:T,finished:--N===0})})}),!0},C.prototype.provideCompletions=function(k,w,A){var L=(function(S){var _=S.prefix,$=S.matches;this.completions=new E($),w.exactMatch&&(this.completions.exactMatch=!0),w.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),(S.finished||this.completions.filtered.length)&&A(null,this.completions,S.finished)}).bind(this),I=!0,T=null;if(this.gatherCompletions(k,(function(S,_){if(this.active){S&&(A(S,[],!0),this.detach());var $=_.prefix;if($.indexOf(_.prefix)===0){if(I){T=_;return}L(_)}}}).bind(this)),I=!1,T){var N=T;T=null,L(N)}},C.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},C}(),E=function(){function C(k,w){this.all=k,this.filtered=k,this.filterText=w||"",this.exactMatch=!1,this.ignoreCaption=!1}return C.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var w=this.filtered;else var w=this.all;this.filterText=k,w=this.filterCompletions(w,this.filterText),w=w.sort(function(L,I){return I.exactMatch-L.exactMatch||I.$score-L.$score||(L.caption||L.value).localeCompare(I.caption||I.value)});var A=null;w=w.filter(function(L){var I=L.snippet||L.caption||L.value;return I===A?!1:(A=I,!0)}),this.filtered=w},C.prototype.filterCompletions=function(k,w){var A=[],L=w.toUpperCase(),I=w.toLowerCase();e:for(var T=0,N;N=k[T];T++){var S=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(S){var _=-1,$=0,R=0,O,F;if(this.exactMatch){if(w!==S.substr(0,w.length))continue e}else{var B=S.toLowerCase().indexOf(I);if(B>-1)R=B;else for(var W=0;W<w.length;W++){var V=S.indexOf(I[W],_+1),q=S.indexOf(L[W],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(R+=10),R+=F,$|=1<<W),_=O}}N.matchMask=$,N.exactMatch=R?0:1,N.$score=(N.score||0)-R,A.push(N)}}return A},C}();r.Autocomplete=b,r.CompletionProvider=x,r.FilteredList=E}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(t,r,f){function h(g,s){var l=g.getTextRange(v.fromPoints({row:0,column:0},s));return l.split(d).length-1}function p(g,s){var l=h(g,s),a=g.getValue().split(d),c=Object.create(null),o=a[l];return a.forEach(function(u,y){if(!(!u||u===o)){var b=Math.abs(l-y),x=a.length-b;c[u]?c[u]=Math.max(x,c[u]):c[u]=x}}),c}var v=t("../range").Range,d=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(g,s,l,a,c){var o=p(s,l),u=Object.keys(o);c(null,u.map(function(y){return{caption:y,value:y,score:o[y],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(t,r,f){var h=t("../snippets").snippetManager,p=t("../autocomplete").Autocomplete,v=t("../config"),d=t("../lib/lang"),g=t("../autocomplete/util"),s=t("../autocomplete/text_completer"),l={getCompletions:function(L,I,T,N,S){if(I.$mode.completer)return I.$mode.completer.getCompletions(L,I,T,N,S);var _=L.session.getState(T.row),$=I.$mode.getCompletions(_,I,T,N);$=$.map(function(R){return R.completerId=l.id,R}),S(null,$)},id:"keywordCompleter"},a=function(L){var I={};return L.replace(/\${(\d+)(:(.*?))?}/g,function(T,N,S,_){return I[N]=_||""}).replace(/\$(\d+?)/g,function(T,N){return I[N]})},c={getCompletions:function(L,I,T,N,S){var _=[],$=I.getTokenAt(T.row,T.column);$&&$.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=h.getActiveScopes(L);var R=h.snippetMap,O=[];_.forEach(function(F){for(var B=R[F]||[],W=B.length;W--;){var V=B[W],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:c.id})}},this),S(null,O)},getDocTooltip:function(L){L.snippet&&!L.docHTML&&(L.docHTML=["<b>",d.escapeHTML(L.caption),"</b>","<hr></hr>",d.escapeHTML(a(L.snippet))].join(""))},id:"snippetCompleter"},o=[c,s,l];r.setCompleters=function(L){o.length=0,L&&o.push.apply(o,L)},r.addCompleter=function(L){o.push(L)},r.textCompleter=s,r.keyWordCompleter=l,r.snippetCompleter=c;var u={name:"expandSnippet",exec:function(L){return h.expandWithTab(L)},bindKey:"Tab"},y=function(L,I){b(I.session.$mode)},b=function(L){typeof L=="string"&&(L=v.$modes[L]),L&&(h.files||(h.files={}),x(L.$id,L.snippetFileId),L.modes&&L.modes.forEach(b))},x=function(L,I){!I||!L||h.files[L]||(h.files[L]={},v.loadModule(I,function(T){T&&(h.files[L]=T,!T.snippets&&T.snippetText&&(T.snippets=h.parseSnippetFile(T.snippetText)),h.register(T.snippets||[],T.scope),T.includeScopes&&(h.snippetMap[T.scope].includeScopes=T.includeScopes,T.includeScopes.forEach(function(N){b("ace/mode/"+N)})))}))},E=function(L){var I=L.editor,T=I.completer&&I.completer.activated;if(L.command.name==="backspace")T&&!g.getCompletionPrefix(I)&&I.completer.detach();else if(L.command.name==="insertstring"&&!T){C=L;var N=L.editor.$liveAutocompletionDelay;N?k.delay(N):w(L)}},C,k=d.delayedCall(function(){w(C)},0),w=function(L){var I=L.editor,T=g.getCompletionPrefix(I),N=L.args,S=g.triggerAutocomplete(I,N);if(T&&T.length>=I.$liveAutocompletionThreshold||S){var _=p.for(I);_.autoShown=!0,_.showPopup(I)}},A=t("../editor").Editor;t("../config").defineOptions(A.prototype,"editor",{enableBasicAutocompletion:{set:function(L){L?(this.completers||(this.completers=Array.isArray(L)?L:o),this.commands.addCommand(p.startCommand)):this.commands.removeCommand(p.startCommand)},value:!1},enableLiveAutocompletion:{set:function(L){L?(this.completers||(this.completers=Array.isArray(L)?L:o),this.commands.on("afterExec",E)):this.commands.off("afterExec",E)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(L){L?(this.commands.addCommand(u),this.on("changeMode",y),y(null,this)):(this.commands.removeCommand(u),this.off("changeMode",y))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(t){n.exports=t})}()}(Vf)),Vf.exports}Ew();var Gf={exports:{}},Yf;function Lw(){return Yf||(Yf=1,function(n,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(t,r,f){f.exports=`
1215
+
1216
+ /* ------------------------------------------------------------------------------------------
1217
+ * Editor Search Form
1218
+ * --------------------------------------------------------------------------------------- */
1219
+ .ace_search {
1220
+ background-color: #ddd;
1221
+ color: #666;
1222
+ border: 1px solid #cbcbcb;
1223
+ border-top: 0 none;
1224
+ overflow: hidden;
1225
+ margin: 0;
1226
+ padding: 4px 6px 0 4px;
1227
+ position: absolute;
1228
+ top: 0;
1229
+ z-index: 99;
1230
+ white-space: normal;
1231
+ }
1232
+ .ace_search.left {
1233
+ border-left: 0 none;
1234
+ border-radius: 0px 0px 5px 0px;
1235
+ left: 0;
1236
+ }
1237
+ .ace_search.right {
1238
+ border-radius: 0px 0px 0px 5px;
1239
+ border-right: 0 none;
1240
+ right: 0;
1241
+ }
1242
+
1243
+ .ace_search_form, .ace_replace_form {
1244
+ margin: 0 20px 4px 0;
1245
+ overflow: hidden;
1246
+ line-height: 1.9;
1247
+ }
1248
+ .ace_replace_form {
1249
+ margin-right: 0;
1250
+ }
1251
+ .ace_search_form.ace_nomatch {
1252
+ outline: 1px solid red;
1253
+ }
1254
+
1255
+ .ace_search_field {
1256
+ border-radius: 3px 0 0 3px;
1257
+ background-color: white;
1258
+ color: black;
1259
+ border: 1px solid #cbcbcb;
1260
+ border-right: 0 none;
1261
+ outline: 0;
1262
+ padding: 0;
1263
+ font-size: inherit;
1264
+ margin: 0;
1265
+ line-height: inherit;
1266
+ padding: 0 6px;
1267
+ min-width: 17em;
1268
+ vertical-align: top;
1269
+ min-height: 1.8em;
1270
+ box-sizing: content-box;
1271
+ }
1272
+ .ace_searchbtn {
1273
+ border: 1px solid #cbcbcb;
1274
+ line-height: inherit;
1275
+ display: inline-block;
1276
+ padding: 0 6px;
1277
+ background: #fff;
1278
+ border-right: 0 none;
1279
+ border-left: 1px solid #dcdcdc;
1280
+ cursor: pointer;
1281
+ margin: 0;
1282
+ position: relative;
1283
+ color: #666;
1284
+ }
1285
+ .ace_searchbtn:last-child {
1286
+ border-radius: 0 3px 3px 0;
1287
+ border-right: 1px solid #cbcbcb;
1288
+ }
1289
+ .ace_searchbtn:disabled {
1290
+ background: none;
1291
+ cursor: default;
1292
+ }
1293
+ .ace_searchbtn:hover {
1294
+ background-color: #eef1f6;
1295
+ }
1296
+ .ace_searchbtn.prev, .ace_searchbtn.next {
1297
+ padding: 0px 0.7em
1298
+ }
1299
+ .ace_searchbtn.prev:after, .ace_searchbtn.next:after {
1300
+ content: "";
1301
+ border: solid 2px #888;
1302
+ width: 0.5em;
1303
+ height: 0.5em;
1304
+ border-width: 2px 0 0 2px;
1305
+ display:inline-block;
1306
+ transform: rotate(-45deg);
1307
+ }
1308
+ .ace_searchbtn.next:after {
1309
+ border-width: 0 2px 2px 0 ;
1310
+ }
1311
+ .ace_searchbtn_close {
1312
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;
1313
+ border-radius: 50%;
1314
+ border: 0 none;
1315
+ color: #656565;
1316
+ cursor: pointer;
1317
+ font: 16px/16px Arial;
1318
+ padding: 0;
1319
+ height: 14px;
1320
+ width: 14px;
1321
+ top: 9px;
1322
+ right: 7px;
1323
+ position: absolute;
1324
+ }
1325
+ .ace_searchbtn_close:hover {
1326
+ background-color: #656565;
1327
+ background-position: 50% 100%;
1328
+ color: white;
1329
+ }
1330
+
1331
+ .ace_button {
1332
+ margin-left: 2px;
1333
+ cursor: pointer;
1334
+ -webkit-user-select: none;
1335
+ -moz-user-select: none;
1336
+ -o-user-select: none;
1337
+ -ms-user-select: none;
1338
+ user-select: none;
1339
+ overflow: hidden;
1340
+ opacity: 0.7;
1341
+ border: 1px solid rgba(100,100,100,0.23);
1342
+ padding: 1px;
1343
+ box-sizing: border-box!important;
1344
+ color: black;
1345
+ }
1346
+
1347
+ .ace_button:hover {
1348
+ background-color: #eee;
1349
+ opacity:1;
1350
+ }
1351
+ .ace_button:active {
1352
+ background-color: #ddd;
1353
+ }
1354
+
1355
+ .ace_button.checked {
1356
+ border-color: #3399ff;
1357
+ opacity:1;
1358
+ }
1359
+
1360
+ .ace_search_options{
1361
+ margin-bottom: 3px;
1362
+ text-align: right;
1363
+ -webkit-user-select: none;
1364
+ -moz-user-select: none;
1365
+ -o-user-select: none;
1366
+ -ms-user-select: none;
1367
+ user-select: none;
1368
+ clear: both;
1369
+ }
1370
+
1371
+ .ace_search_counter {
1372
+ float: left;
1373
+ font-family: arial;
1374
+ padding: 0 8px;
1375
+ }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(t,r,f){var h=t("../lib/dom"),p=t("../lib/lang"),v=t("../lib/event"),d=t("./searchbox-css"),g=t("../keyboard/hash_handler").HashHandler,s=t("../lib/keys"),l=t("../config").nls,a=999;h.importCssString(d,"ace_searchbox",!1);var c=function(){function y(b,x,E){this.activeInput;var C=h.createElement("div");h.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:l("search-box.find.placeholder","Search for"),spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},l("search-box.find-all.text","All")]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:l("search-box.replace.placeholder","Replace with"),spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},l("search-box.replace-next.text","Replace")],["span",{action:"replaceAll",class:"ace_searchbtn"},l("search-box.replace-all.text","All")]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:l("search-box.toggle-replace.title","Toggle Replace mode"),style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:l("search-box.toggle-regexp.title","RegExp Search")},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:l("search-box.toggle-case.title","CaseSensitive Search")},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:l("search-box.toggle-whole-word.title","Whole Word Search")},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:l("search-box.toggle-in-selection.title","Search In Selection")},"S"]]],C),this.element=C.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(b),h.importCssString(d,"ace_searchbox",b.container)}return y.prototype.setEditor=function(b){b.searchBox=this,b.renderer.scroller.appendChild(this.element),this.editor=b},y.prototype.setSession=function(b){this.searchRange=null,this.$syncOptions(!0)},y.prototype.$initElements=function(b){this.searchBox=b.querySelector(".ace_search_form"),this.replaceBox=b.querySelector(".ace_replace_form"),this.searchOption=b.querySelector("[action=searchInSelection]"),this.replaceOption=b.querySelector("[action=toggleReplace]"),this.regExpOption=b.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=b.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=b.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=b.querySelector(".ace_search_counter")},y.prototype.$init=function(){var b=this.element;this.$initElements(b);var x=this;v.addListener(b,"mousedown",function(E){setTimeout(function(){x.activeInput.focus()},0),v.stopPropagation(E)}),v.addListener(b,"click",function(E){var C=E.target||E.srcElement,k=C.getAttribute("action");k&&x[k]?x[k]():x.$searchBarKb.commands[k]&&x.$searchBarKb.commands[k].exec(x),v.stopPropagation(E)}),v.addCommandKeyListener(b,function(E,C,k){var w=s.keyCodeToString(k),A=x.$searchBarKb.findKeyCommand(C,w);A&&A.exec&&(A.exec(x),v.stopEvent(E))}),this.$onChange=p.delayedCall(function(){x.find(!1,!1)}),v.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),v.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),v.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},y.prototype.setSearchRange=function(b){this.searchRange=b,b?this.searchRangeMarker=this.editor.session.addMarker(b,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},y.prototype.$syncOptions=function(b){h.setCssClass(this.replaceOption,"checked",this.searchRange),h.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",h.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),h.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),h.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,b)},y.prototype.highlight=function(b){this.editor.session.highlight(b||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},y.prototype.find=function(b,x,E){var C=this.editor.find(this.searchInput.value,{skipCurrent:b,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:E,range:this.searchRange}),k=!C&&this.searchInput.value;h.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},y.prototype.updateCounter=function(){var b=this.editor,x=b.$search.$options.re,E=x.unicode,C=0,k=0;if(x){var w=this.searchRange?b.session.getTextRange(this.searchRange):b.getValue(),A=b.session.doc.positionToIndex(b.selection.anchor);this.searchRange&&(A-=b.session.doc.positionToIndex(this.searchRange.start));for(var L=x.lastIndex=0,I;(I=x.exec(w))&&(C++,L=I.index,L<=A&&k++,!(C>a||!I[0]&&(x.lastIndex=L+=p.skipEmptyMatch(w,L,E),L>=w.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[k,C>a?a+"+":C])},y.prototype.findNext=function(){this.find(!0,!1)},y.prototype.findPrev=function(){this.find(!0,!0)},y.prototype.findAll=function(){var b=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!b&&this.searchInput.value;h.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},y.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},y.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},y.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},y.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},y.prototype.show=function(b,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,b&&(this.searchInput.value=b),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},y.prototype.isFocused=function(){var b=document.activeElement;return b==this.searchInput||b==this.replaceInput},y}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(y){var b=y.isReplace=!y.isReplace;y.replaceBox.style.display=b?"":"none",y.replaceOption.checked=!1,y.$syncOptions(),y.searchInput.focus()},"Ctrl-H|Command-Option-F":function(y){y.editor.getReadOnly()||(y.replaceOption.checked=!0,y.$syncOptions(),y.replaceInput.focus())},"Ctrl-G|Command-G":function(y){y.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(y){y.findPrev()},esc:function(y){setTimeout(function(){y.hide()})},Return:function(y){y.activeInput==y.replaceInput&&y.replace(),y.findNext()},"Shift-Return":function(y){y.activeInput==y.replaceInput&&y.replace(),y.findPrev()},"Alt-Return":function(y){y.activeInput==y.replaceInput&&y.replaceAll(),y.findAll()},Tab:function(y){(y.activeInput==y.replaceInput?y.searchInput:y.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(y){y.regExpOption.checked=!y.regExpOption.checked,y.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(y){y.caseSensitiveOption.checked=!y.caseSensitiveOption.checked,y.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(y){y.wholeWordOption.checked=!y.wholeWordOption.checked,y.$syncOptions()}},{name:"toggleReplace",exec:function(y){y.replaceOption.checked=!y.replaceOption.checked,y.$syncOptions()}},{name:"searchInSelection",exec:function(y){y.searchOption.checked=!y.searchRange,y.setSearchRange(y.searchOption.checked&&y.editor.getSelectionRange()),y.$syncOptions()}}]);var u=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(y){y.searchBox.hide()}}]);c.prototype.$searchBarKb=o,c.prototype.$closeSearchBarKb=u,r.SearchBox=c,r.Search=function(y,b){var x=y.searchBox||new c(y);x.show(y.session.getTextRange(),b)}}),function(){ace.require(["ace/ext/searchbox"],function(t){n.exports=t})}()}(Gf)),Gf.exports}Lw();var Rw=Object.defineProperty,Iw=(n,e,t)=>e in n?Rw(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Ow=(n,e,t)=>Iw(n,e+"",t);function Kf(n,e){return function(){return n.apply(e,arguments)}}const{toString:Dw}=Object.prototype,{getPrototypeOf:Uc}=Object,Fa=(n=>e=>{const t=Dw.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Pr=n=>(n=n.toLowerCase(),e=>Fa(e)===n),Pa=n=>e=>typeof e===n,{isArray:Ho}=Array,Ms=Pa("undefined");function Nw(n){return n!==null&&!Ms(n)&&n.constructor!==null&&!Ms(n.constructor)&&gr(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Qf=Pr("ArrayBuffer");function Fw(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Qf(n.buffer),e}const Pw=Pa("string"),gr=Pa("function"),Zf=Pa("number"),Ha=n=>n!==null&&typeof n=="object",Hw=n=>n===!0||n===!1,Ba=n=>{if(Fa(n)!=="object")return!1;const e=Uc(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Bw=Pr("Date"),jw=Pr("File"),zw=Pr("Blob"),Ww=Pr("FileList"),Uw=n=>Ha(n)&&gr(n.pipe),Vw=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||gr(n.append)&&((e=Fa(n))==="formdata"||e==="object"&&gr(n.toString)&&n.toString()==="[object FormData]"))},qw=Pr("URLSearchParams"),[Gw,Yw,Kw,Qw]=["ReadableStream","Request","Response","Headers"].map(Pr),Zw=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function As(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),Ho(n))for(r=0,f=n.length;r<f;r++)e.call(null,n[r],r,n);else{const h=t?Object.getOwnPropertyNames(n):Object.keys(n),p=h.length;let v;for(r=0;r<p;r++)v=h[r],e.call(null,n[v],v,n)}}function Jf(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,f;for(;r-- >0;)if(f=t[r],e===f.toLowerCase())return f;return null}const so=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xf=n=>!Ms(n)&&n!==so;function Vc(){const{caseless:n}=Xf(this)&&this||{},e={},t=(r,f)=>{const h=n&&Jf(e,f)||f;Ba(e[h])&&Ba(r)?e[h]=Vc(e[h],r):Ba(r)?e[h]=Vc({},r):Ho(r)?e[h]=r.slice():e[h]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&As(arguments[r],t);return e}const Jw=(n,e,t,{allOwnKeys:r}={})=>(As(e,(f,h)=>{t&&gr(f)?n[h]=Kf(f,t):n[h]=f},{allOwnKeys:r}),n),Xw=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),e1=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},t1=(n,e,t,r)=>{let f,h,p;const v={};if(e=e||{},n==null)return e;do{for(f=Object.getOwnPropertyNames(n),h=f.length;h-- >0;)p=f[h],(!r||r(p,n,e))&&!v[p]&&(e[p]=n[p],v[p]=!0);n=t!==!1&&Uc(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},n1=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},r1=n=>{if(!n)return null;if(Ho(n))return n;let e=n.length;if(!Zf(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},i1=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Uc(Uint8Array)),o1=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const f=r.value;e.call(n,f[0],f[1])}},s1=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},a1=Pr("HTMLFormElement"),l1=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),ep=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),c1=Pr("RegExp"),tp=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};As(t,(f,h)=>{let p;(p=e(f,h,n))!==!1&&(r[h]=p||f)}),Object.defineProperties(n,r)},u1=n=>{tp(n,(e,t)=>{if(gr(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(gr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},h1=(n,e)=>{const t={},r=f=>{f.forEach(h=>{t[h]=!0})};return Ho(n)?r(n):r(String(n).split(e)),t},d1=()=>{},f1=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,qc="abcdefghijklmnopqrstuvwxyz",np="0123456789",rp={DIGIT:np,ALPHA:qc,ALPHA_DIGIT:qc+qc.toUpperCase()+np},p1=(n=16,e=rp.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function g1(n){return!!(n&&gr(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const m1=n=>{const e=new Array(10),t=(r,f)=>{if(Ha(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[f]=r;const h=Ho(r)?[]:{};return As(r,(p,v)=>{const d=t(p,f+1);!Ms(d)&&(h[v]=d)}),e[f]=void 0,h}}return r};return t(n,0)},y1=Pr("AsyncFunction"),v1=n=>n&&(Ha(n)||gr(n))&&gr(n.then)&&gr(n.catch),ip=((n,e)=>n?setImmediate:e?((t,r)=>(so.addEventListener("message",({source:f,data:h})=>{f===so&&h===t&&r.length&&r.shift()()},!1),f=>{r.push(f),so.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",gr(so.postMessage)),b1=typeof queueMicrotask<"u"?queueMicrotask.bind(so):typeof process<"u"&&process.nextTick||ip,ue={isArray:Ho,isArrayBuffer:Qf,isBuffer:Nw,isFormData:Vw,isArrayBufferView:Fw,isString:Pw,isNumber:Zf,isBoolean:Hw,isObject:Ha,isPlainObject:Ba,isReadableStream:Gw,isRequest:Yw,isResponse:Kw,isHeaders:Qw,isUndefined:Ms,isDate:Bw,isFile:jw,isBlob:zw,isRegExp:c1,isFunction:gr,isStream:Uw,isURLSearchParams:qw,isTypedArray:i1,isFileList:Ww,forEach:As,merge:Vc,extend:Jw,trim:Zw,stripBOM:Xw,inherits:e1,toFlatObject:t1,kindOf:Fa,kindOfTest:Pr,endsWith:n1,toArray:r1,forEachEntry:o1,matchAll:s1,isHTMLForm:a1,hasOwnProperty:ep,hasOwnProp:ep,reduceDescriptors:tp,freezeMethods:u1,toObjectSet:h1,toCamelCase:l1,noop:d1,toFiniteNumber:f1,findKey:Jf,global:so,isContextDefined:Xf,ALPHABET:rp,generateString:p1,isSpecCompliantForm:g1,toJSONObject:m1,isAsyncFn:y1,isThenable:v1,setImmediate:ip,asap:b1};function rt(n,e,t,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}ue.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const op=rt.prototype,sp={};["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=>{sp[n]={value:n}}),Object.defineProperties(rt,sp),Object.defineProperty(op,"isAxiosError",{value:!0}),rt.from=(n,e,t,r,f,h)=>{const p=Object.create(op);return ue.toFlatObject(n,p,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),rt.call(p,n.message,e,t,r,f),p.cause=n,p.name=n.name,h&&Object.assign(p,h),p};const w1=null;function Gc(n){return ue.isPlainObject(n)||ue.isArray(n)}function ap(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function lp(n,e,t){return n?n.concat(e).map(function(r,f){return r=ap(r),!t&&f?"["+r+"]":r}).join(t?".":""):e}function x1(n){return ue.isArray(n)&&!n.some(Gc)}const _1=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function ja(n,e,t){if(!ue.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=ue.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!ue.isUndefined(o[c])});const r=t.metaTokens,f=t.visitor||g,h=t.dots,p=t.indexes,v=(t.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(e);if(!ue.isFunction(f))throw new TypeError("visitor must be a function");function d(c){if(c===null)return"";if(ue.isDate(c))return c.toISOString();if(!v&&ue.isBlob(c))throw new rt("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(c)||ue.isTypedArray(c)?v&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,o,u){let y=c;if(c&&!u&&typeof c=="object"){if(ue.endsWith(o,"{}"))o=r?o:o.slice(0,-2),c=JSON.stringify(c);else if(ue.isArray(c)&&x1(c)||(ue.isFileList(c)||ue.endsWith(o,"[]"))&&(y=ue.toArray(c)))return o=ap(o),y.forEach(function(b,x){!(ue.isUndefined(b)||b===null)&&e.append(p===!0?lp([o],x,h):p===null?o:o+"[]",d(b))}),!1}return Gc(c)?!0:(e.append(lp(u,o,h),d(c)),!1)}const s=[],l=Object.assign(_1,{defaultVisitor:g,convertValue:d,isVisitable:Gc});function a(c,o){if(!ue.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(c),ue.forEach(c,function(u,y){(!(ue.isUndefined(u)||u===null)&&f.call(e,u,ue.isString(y)?y.trim():y,o,l))===!0&&a(u,o?o.concat(y):[y])}),s.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return a(n),e}function cp(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Yc(n,e){this._pairs=[],n&&ja(n,this,e)}const up=Yc.prototype;up.append=function(n,e){this._pairs.push([n,e])},up.toString=function(n){const e=n?function(t){return n.call(this,t,cp)}:cp;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function k1(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hp(n,e,t){if(!e)return n;const r=t&&t.encode||k1;ue.isFunction(t)&&(t={serialize:t});const f=t&&t.serialize;let h;if(f?h=f(e,t):h=ue.isURLSearchParams(e)?e.toString():new Yc(e,t).toString(r),h){const p=n.indexOf("#");p!==-1&&(n=n.slice(0,p)),n+=(n.indexOf("?")===-1?"?":"&")+h}return n}class dp{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ue.forEach(this.handlers,function(t){t!==null&&e(t)})}}const fp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},S1=typeof URLSearchParams<"u"?URLSearchParams:Yc,$1=typeof FormData<"u"?FormData:null,C1=typeof Blob<"u"?Blob:null,M1={isBrowser:!0,classes:{URLSearchParams:S1,FormData:$1,Blob:C1},protocols:["http","https","file","blob","url","data"]},Kc=typeof window<"u"&&typeof document<"u",Qc=typeof navigator=="object"&&navigator||void 0,A1=Kc&&(!Qc||["ReactNative","NativeScript","NS"].indexOf(Qc.product)<0),T1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",E1=Kc&&window.location.href||"http://localhost",L1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kc,hasStandardBrowserEnv:A1,hasStandardBrowserWebWorkerEnv:T1,navigator:Qc,origin:E1},Symbol.toStringTag,{value:"Module"})),jn={...L1,...M1};function R1(n,e){return ja(n,new jn.classes.URLSearchParams,Object.assign({visitor:function(t,r,f,h){return jn.isNode&&ue.isBuffer(t)?(this.append(r,t.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function I1(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function O1(n){const e={},t=Object.keys(n);let r;const f=t.length;let h;for(r=0;r<f;r++)h=t[r],e[h]=n[h];return e}function pp(n){function e(t,r,f,h){let p=t[h++];if(p==="__proto__")return!0;const v=Number.isFinite(+p),d=h>=t.length;return p=!p&&ue.isArray(f)?f.length:p,d?(ue.hasOwnProp(f,p)?f[p]=[f[p],r]:f[p]=r,!v):((!f[p]||!ue.isObject(f[p]))&&(f[p]=[]),e(t,r,f[p],h)&&ue.isArray(f[p])&&(f[p]=O1(f[p])),!v)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const t={};return ue.forEachEntry(n,(r,f)=>{e(I1(r),f,t,0)}),t}return null}function D1(n,e,t){if(ue.isString(n))try{return(e||JSON.parse)(n),ue.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(n)}const Ts={transitional:fp,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,f=ue.isObject(n);if(f&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return r?JSON.stringify(pp(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let h;if(f){if(t.indexOf("application/x-www-form-urlencoded")>-1)return R1(n,this.formSerializer).toString();if((h=ue.isFileList(n))||t.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return ja(h?{"files[]":n}:n,p&&new p,this.formSerializer)}}return f||r?(e.setContentType("application/json",!1),D1(n)):n}],transformResponse:[function(n){const e=this.transitional||Ts.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(t&&!this.responseType||r)){const f=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(h){if(f)throw h.name==="SyntaxError"?rt.from(h,rt.ERR_BAD_RESPONSE,this,null,this.response):h}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jn.classes.FormData,Blob:jn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{Ts.headers[n]={}});const N1=ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),F1=n=>{const e={};let t,r,f;return n&&n.split(`
1376
+ `).forEach(function(h){f=h.indexOf(":"),t=h.substring(0,f).trim().toLowerCase(),r=h.substring(f+1).trim(),!(!t||e[t]&&N1[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},gp=Symbol("internals");function Es(n){return n&&String(n).trim().toLowerCase()}function za(n){return n===!1||n==null?n:ue.isArray(n)?n.map(za):String(n)}function P1(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const H1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Zc(n,e,t,r,f){if(ue.isFunction(r))return r.call(this,e,t);if(f&&(e=t),!!ue.isString(e)){if(ue.isString(r))return e.indexOf(r)!==-1;if(ue.isRegExp(r))return r.test(e)}}function B1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function j1(n,e){const t=ue.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(f,h,p){return this[r].call(this,e,f,h,p)},configurable:!0})})}class or{constructor(e){e&&this.set(e)}set(e,t,r){const f=this;function h(v,d,g){const s=Es(d);if(!s)throw new Error("header name must be a non-empty string");const l=ue.findKey(f,s);(!l||f[l]===void 0||g===!0||g===void 0&&f[l]!==!1)&&(f[l||d]=za(v))}const p=(v,d)=>ue.forEach(v,(g,s)=>h(g,s,d));if(ue.isPlainObject(e)||e instanceof this.constructor)p(e,t);else if(ue.isString(e)&&(e=e.trim())&&!H1(e))p(F1(e),t);else if(ue.isHeaders(e))for(const[v,d]of e.entries())h(d,v,r);else e!=null&&h(t,e,r);return this}get(e,t){if(e=Es(e),e){const r=ue.findKey(this,e);if(r){const f=this[r];if(!t)return f;if(t===!0)return P1(f);if(ue.isFunction(t))return t.call(this,f,r);if(ue.isRegExp(t))return t.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Es(e),e){const r=ue.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Zc(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let f=!1;function h(p){if(p=Es(p),p){const v=ue.findKey(r,p);v&&(!t||Zc(r,r[v],v,t))&&(delete r[v],f=!0)}}return ue.isArray(e)?e.forEach(h):h(e),f}clear(e){const t=Object.keys(this);let r=t.length,f=!1;for(;r--;){const h=t[r];(!e||Zc(this,this[h],h,e,!0))&&(delete this[h],f=!0)}return f}normalize(e){const t=this,r={};return ue.forEach(this,(f,h)=>{const p=ue.findKey(r,h);if(p){t[p]=za(f),delete t[h];return}const v=e?B1(h):String(h).trim();v!==h&&delete t[h],t[v]=za(f),r[v]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ue.forEach(this,(r,f)=>{r!=null&&r!==!1&&(t[f]=e&&ue.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
1377
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(f=>r.set(f)),r}static accessor(e){const t=(this[gp]=this[gp]={accessors:{}}).accessors,r=this.prototype;function f(h){const p=Es(h);t[p]||(j1(r,h),t[p]=!0)}return ue.isArray(e)?e.forEach(f):f(e),this}}or.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(or.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),ue.freezeMethods(or);function Jc(n,e){const t=this||Ts,r=e||t,f=or.from(r.headers);let h=r.data;return ue.forEach(n,function(p){h=p.call(t,h,f.normalize(),e?e.status:void 0)}),f.normalize(),h}function mp(n){return!!(n&&n.__CANCEL__)}function Bo(n,e,t){rt.call(this,n??"canceled",rt.ERR_CANCELED,e,t),this.name="CanceledError"}ue.inherits(Bo,rt,{__CANCEL__:!0});function yp(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new rt("Request failed with status code "+t.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function z1(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function W1(n,e){n=n||10;const t=new Array(n),r=new Array(n);let f=0,h=0,p;return e=e!==void 0?e:1e3,function(v){const d=Date.now(),g=r[h];p||(p=d),t[f]=v,r[f]=d;let s=h,l=0;for(;s!==f;)l+=t[s++],s=s%n;if(f=(f+1)%n,f===h&&(h=(h+1)%n),d-p<e)return;const a=g&&d-g;return a?Math.round(l*1e3/a):void 0}}function U1(n,e){let t=0,r=1e3/e,f,h;const p=(v,d=Date.now())=>{t=d,f=null,h&&(clearTimeout(h),h=null),n.apply(null,v)};return[(...v)=>{const d=Date.now(),g=d-t;g>=r?p(v,d):(f=v,h||(h=setTimeout(()=>{h=null,p(f)},r-g)))},()=>f&&p(f)]}const Wa=(n,e,t=3)=>{let r=0;const f=W1(50,250);return U1(h=>{const p=h.loaded,v=h.lengthComputable?h.total:void 0,d=p-r,g=f(d),s=p<=v;r=p;const l={loaded:p,total:v,progress:v?p/v:void 0,bytes:d,rate:g||void 0,estimated:g&&v&&s?(v-p)/g:void 0,event:h,lengthComputable:v!=null,[e?"download":"upload"]:!0};n(l)},t)},vp=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},bp=n=>(...e)=>ue.asap(()=>n(...e)),V1=jn.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,jn.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(jn.origin),jn.navigator&&/(msie|trident)/i.test(jn.navigator.userAgent)):()=>!0,q1=jn.hasStandardBrowserEnv?{write(n,e,t,r,f,h){const p=[n+"="+encodeURIComponent(e)];ue.isNumber(t)&&p.push("expires="+new Date(t).toGMTString()),ue.isString(r)&&p.push("path="+r),ue.isString(f)&&p.push("domain="+f),h===!0&&p.push("secure"),document.cookie=p.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function G1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Y1(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function wp(n,e){return n&&!G1(e)?Y1(n,e):e}const xp=n=>n instanceof or?{...n}:n;function ao(n,e){e=e||{};const t={};function r(g,s,l,a){return ue.isPlainObject(g)&&ue.isPlainObject(s)?ue.merge.call({caseless:a},g,s):ue.isPlainObject(s)?ue.merge({},s):ue.isArray(s)?s.slice():s}function f(g,s,l,a){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return r(void 0,g,l,a)}else return r(g,s,l,a)}function h(g,s){if(!ue.isUndefined(s))return r(void 0,s)}function p(g,s){if(ue.isUndefined(s)){if(!ue.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function v(g,s,l){if(l in e)return r(g,s);if(l in n)return r(void 0,g)}const d={url:h,method:h,data:h,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:v,headers:(g,s,l)=>f(xp(g),xp(s),l,!0)};return ue.forEach(Object.keys(Object.assign({},n,e)),function(g){const s=d[g]||f,l=s(n[g],e[g],g);ue.isUndefined(l)&&s!==v||(t[g]=l)}),t}const _p=n=>{const e=ao({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:h,headers:p,auth:v}=e;e.headers=p=or.from(p),e.url=hp(wp(e.baseURL,e.url),n.params,n.paramsSerializer),v&&p.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let d;if(ue.isFormData(t)){if(jn.hasStandardBrowserEnv||jn.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((d=p.getContentType())!==!1){const[g,...s]=d?d.split(";").map(l=>l.trim()).filter(Boolean):[];p.setContentType([g||"multipart/form-data",...s].join("; "))}}if(jn.hasStandardBrowserEnv&&(r&&ue.isFunction(r)&&(r=r(e)),r||r!==!1&&V1(e.url))){const g=f&&h&&q1.read(h);g&&p.set(f,g)}return e},K1=typeof XMLHttpRequest<"u",Q1=K1&&function(n){return new Promise(function(e,t){const r=_p(n);let f=r.data;const h=or.from(r.headers).normalize();let{responseType:p,onUploadProgress:v,onDownloadProgress:d}=r,g,s,l,a,c;function o(){a&&a(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function y(){if(!u)return;const x=or.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),E={data:!p||p==="text"||p==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};yp(function(C){e(C),o()},function(C){t(C),o()},E),u=null}"onloadend"in u?u.onloadend=y:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(y)},u.onabort=function(){u&&(t(new rt("Request aborted",rt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new rt("Network Error",rt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||fp;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),t(new rt(x,E.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,n,u)),u=null},f===void 0&&h.setContentType(null),"setRequestHeader"in u&&ue.forEach(h.toJSON(),function(x,E){u.setRequestHeader(E,x)}),ue.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),p&&p!=="json"&&(u.responseType=r.responseType),d&&([l,c]=Wa(d,!0),u.addEventListener("progress",l)),v&&u.upload&&([s,a]=Wa(v),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=x=>{u&&(t(!x||x.type?new Bo(null,n,u):x),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const b=z1(r.url);if(b&&jn.protocols.indexOf(b)===-1){t(new rt("Unsupported protocol "+b+":",rt.ERR_BAD_REQUEST,n));return}u.send(f||null)})},Z1=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,f;const h=function(g){if(!f){f=!0,v();const s=g instanceof Error?g:this.reason;r.abort(s instanceof rt?s:new Bo(s instanceof Error?s.message:s))}};let p=e&&setTimeout(()=>{p=null,h(new rt(`timeout ${e} of ms exceeded`,rt.ETIMEDOUT))},e);const v=()=>{n&&(p&&clearTimeout(p),p=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),n=null)};n.forEach(g=>g.addEventListener("abort",h));const{signal:d}=r;return d.unsubscribe=()=>ue.asap(v),d}},J1=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,f;for(;r<t;)f=r+e,yield n.slice(r,f),r=f},X1=async function*(n,e){for await(const t of ex(n))yield*J1(t,e)},ex=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},kp=(n,e,t,r)=>{const f=X1(n,e);let h=0,p,v=d=>{p||(p=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:g,value:s}=await f.next();if(g){v(),d.close();return}let l=s.byteLength;if(t){let a=h+=l;t(a)}d.enqueue(new Uint8Array(s))}catch(g){throw v(g),g}},cancel(d){return v(d),f.return()}},{highWaterMark:2})},Ua=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sp=Ua&&typeof ReadableStream=="function",tx=Ua&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),$p=(n,...e)=>{try{return!!n(...e)}catch{return!1}},nx=Sp&&$p(()=>{let n=!1;const e=new Request(jn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),Cp=64*1024,Xc=Sp&&$p(()=>ue.isReadableStream(new Response("").body)),Va={stream:Xc&&(n=>n.body)};Ua&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Va[e]&&(Va[e]=ue.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new rt(`Response type '${e}' is not supported`,rt.ERR_NOT_SUPPORT,r)})})})(new Response);const rx=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(jn.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await tx(n)).byteLength},ix=async(n,e)=>ue.toFiniteNumber(n.getContentLength())??rx(e),ox=Ua&&(async n=>{let{url:e,method:t,data:r,signal:f,cancelToken:h,timeout:p,onDownloadProgress:v,onUploadProgress:d,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:a}=_p(n);g=g?(g+"").toLowerCase():"text";let c=Z1([f,h&&h.toAbortSignal()],p),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let y;try{if(d&&nx&&t!=="get"&&t!=="head"&&(y=await ix(s,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),w;if(ue.isFormData(r)&&(w=k.headers.get("content-type"))&&s.setContentType(w),k.body){const[A,L]=vp(y,Wa(bp(d)));r=kp(k.body,Cp,A,L)}}ue.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;o=new Request(e,{...a,signal:c,method:t.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:b?l:void 0});let x=await fetch(o);const E=Xc&&(g==="stream"||g==="response");if(Xc&&(v||E&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const w=ue.toFiniteNumber(x.headers.get("content-length")),[A,L]=v&&vp(w,Wa(bp(v),!0))||[];x=new Response(kp(x.body,Cp,A,()=>{L&&L(),u&&u()}),k)}g=g||"text";let C=await Va[ue.findKey(Va,g)||"text"](x,n);return!E&&u&&u(),await new Promise((k,w)=>{yp(k,w,{data:C,headers:or.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(b){throw u&&u(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,n,o),{cause:b.cause||b}):rt.from(b,b&&b.code,n,o)}}),eu={http:w1,xhr:Q1,fetch:ox};ue.forEach(eu,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Mp=n=>`- ${n}`,sx=n=>ue.isFunction(n)||n===null||n===!1,Ap={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:e}=n;let t,r;const f={};for(let h=0;h<e;h++){t=n[h];let p;if(r=t,!sx(t)&&(r=eu[(p=String(t)).toLowerCase()],r===void 0))throw new rt(`Unknown adapter '${p}'`);if(r)break;f[p||"#"+h]=r}if(!r){const h=Object.entries(f).map(([v,d])=>`adapter ${v} `+(d===!1?"is not supported by the environment":"is not available in the build"));let p=e?h.length>1?`since :
1378
+ `+h.map(Mp).join(`
1379
+ `):" "+Mp(h[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return r},adapters:eu};function tu(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Bo(null,n)}function Tp(n){return tu(n),n.headers=or.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),Ap.getAdapter(n.adapter||Ts.adapter)(n).then(function(e){return tu(n),e.data=Jc.call(n,n.transformResponse,e),e.headers=or.from(e.headers),e},function(e){return mp(e)||(tu(n),e&&e.response&&(e.response.data=Jc.call(n,n.transformResponse,e.response),e.response.headers=or.from(e.response.headers))),Promise.reject(e)})}const Ep="1.7.9",qa={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{qa[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Lp={};qa.transitional=function(n,e,t){function r(f,h){return"[Axios v"+Ep+"] Transitional option '"+f+"'"+h+(t?". "+t:"")}return(f,h,p)=>{if(n===!1)throw new rt(r(h," has been removed"+(e?" in "+e:"")),rt.ERR_DEPRECATED);return e&&!Lp[h]&&(Lp[h]=!0,console.warn(r(h," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(f,h,p):!0}},qa.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function ax(n,e,t){if(typeof n!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const h=r[f],p=e[h];if(p){const v=n[h],d=v===void 0||p(v,h,n);if(d!==!0)throw new rt("option "+h+" must be "+d,rt.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new rt("Unknown option "+h,rt.ERR_BAD_OPTION)}}const Ga={assertOptions:ax,validators:qa},Kr=Ga.validators;class lo{constructor(e){this.defaults=e,this.interceptors={request:new dp,response:new dp}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const h=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1380
+ `+h):r.stack=h}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ao(this.defaults,t);const{transitional:r,paramsSerializer:f,headers:h}=t;r!==void 0&&Ga.assertOptions(r,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1),f!=null&&(ue.isFunction(f)?t.paramsSerializer={serialize:f}:Ga.assertOptions(f,{encode:Kr.function,serialize:Kr.function},!0)),Ga.assertOptions(t,{baseUrl:Kr.spelling("baseURL"),withXsrfToken:Kr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let p=h&&ue.merge(h.common,h[t.method]);h&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),t.headers=or.concat(p,h);const v=[];let d=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(t)===!1||(d=d&&o.synchronous,v.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!d){const o=[Tp.bind(this),void 0];for(o.unshift.apply(o,v),o.push.apply(o,g),a=o.length,s=Promise.resolve(t);l<a;)s=s.then(o[l++],o[l++]);return s}a=v.length;let c=t;for(l=0;l<a;){const o=v[l++],u=v[l++];try{c=o(c)}catch(y){u.call(this,y);break}}try{s=Tp.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,a=g.length;l<a;)s=s.then(g[l++],g[l++]);return s}getUri(e){e=ao(this.defaults,e);const t=wp(e.baseURL,e.url);return hp(t,e.params,e.paramsSerializer)}}ue.forEach(["delete","get","head","options"],function(n){lo.prototype[n]=function(e,t){return this.request(ao(t||{},{method:n,url:e,data:(t||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function e(t){return function(r,f,h){return this.request(ao(h||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}lo.prototype[n]=e(),lo.prototype[n+"Form"]=e(!0)});class nu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(f){t=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](f);r._listeners=null}),this.promise.then=f=>{let h;const p=new Promise(v=>{r.subscribe(v),h=v}).then(f);return p.cancel=function(){r.unsubscribe(h)},p},e(function(f,h,p){r.reason||(r.reason=new Bo(f,h,p),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new nu(function(t){e=t}),cancel:e}}}function lx(n){return function(e){return n.apply(null,e)}}function cx(n){return ue.isObject(n)&&n.isAxiosError===!0}const ru={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(ru).forEach(([n,e])=>{ru[e]=n});function Rp(n){const e=new lo(n),t=Kf(lo.prototype.request,e);return ue.extend(t,lo.prototype,e,{allOwnKeys:!0}),ue.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Rp(ao(n,r))},t}const vn=Rp(Ts);vn.Axios=lo,vn.CanceledError=Bo,vn.CancelToken=nu,vn.isCancel=mp,vn.VERSION=Ep,vn.toFormData=ja,vn.AxiosError=rt,vn.Cancel=vn.CanceledError,vn.all=function(n){return Promise.all(n)},vn.spread=lx,vn.isAxiosError=cx,vn.mergeConfig=ao,vn.AxiosHeaders=or,vn.formToJSON=n=>pp(ue.isHTMLForm(n)?new FormData(n):n),vn.getAdapter=Ap.getAdapter,vn.HttpStatusCode=ru,vn.default=vn;const iu=vn.create({baseURL:location.origin,timeout:6e4,params:{}});iu.interceptors.response.use(n=>n,n=>{var e,t,r,f,h,p,v,d,g,s,l;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(o){o&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let a=`HTTP ${n.response.status} - `;(e=n.response)!=null&&e.statusText&&(a+=`${n.response.statusText} `),(r=(t=n.response)==null?void 0:t.config)!=null&&r.data&&(a+=`${n.response.config.data} `),(h=(f=n.response)==null?void 0:f.data)!=null&&h.message?a+=`${n.response.data.message}`:(v=(p=n.response)==null?void 0:p.data)!=null&&v.exception?a+=`${n.response.data.exception}`:(s=(g=(d=n.response)==null?void 0:d.data)==null?void 0:g.error)!=null&&s.message?(n.response.data.error.class&&(a+=`${n.response.data.error.class} `),a+=`${n.response.data.error.message}`):a+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:c}=window;throw c&&c.serious({title:"Network error",body:a}),n}else throw n});const Ya=async function(n,e,{data:t,params:r={},headers:f,noAuth:h=!1,noScope:p=!1,onUploadProgress:v=!1}={}){if(!h){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!p&&!r.scope&&(r.scope=window.openc3Scope),iu({method:n,url:e,data:t,params:r,headers:f,onUploadProgress:v})},ou={Accept:"application/json"},Ip={...ou,"Content-Type":"application/json"},ux=Dn("I",{get:function(n,{params:e,headers:t=ou,noScope:r,noAuth:f,onUploadProgress:h}={}){return Ya("get",n,{params:e,headers:t,noScope:r,noAuth:f,onUploadProgress:h})},put:function(n,{data:e,params:t,headers:r=Ip,noScope:f,noAuth:h,onUploadProgress:p}={}){return Ya("put",n,{data:e,params:t,headers:r,noScope:f,noAuth:h,onUploadProgress:p})},post:function(n,{data:e,params:t,headers:r=Ip,noScope:f,noAuth:h,onUploadProgress:p}={}){return Ya("post",n,{data:e,params:t,headers:r,noScope:f,noAuth:h,onUploadProgress:p})},delete:function(n,{params:e,headers:t=ou,noScope:r,noAuth:f,onUploadProgress:h}={}){return Ya("delete",n,{params:e,headers:t,noScope:r,noAuth:f,onUploadProgress:h})}});var Ka={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Xt={log(...n){this.enabled&&(n.push(Date.now()),Ka.logger.log("[ActionCable]",...n))}};const Ls=()=>new Date().getTime(),Qa=n=>(Ls()-n)/1e3;class Za{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=Ls(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Xt.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=Ls(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Xt.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=Ls()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Xt.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=Ls(),Xt.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:t}=this.constructor,r=Math.pow(1+t,Math.min(this.reconnectAttempts,10)),f=(this.reconnectAttempts===0?1:t)*Math.random();return e*1e3*r*(1+f)}reconnectIfStale(){this.connectionIsStale()&&(Xt.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Qa(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Xt.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Qa(this.disconnectedAt)} s`):(Xt.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Qa(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Qa(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Xt.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Za.staleThreshold=6,Za.reconnectionBackoffRate=.15;var Op={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:Rs,protocols:su}=Op,hx=su.slice(0,su.length-1),Dp=[].indexOf;class au{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new Za(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return Xt.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...su,...this.consumer.subprotocols||[]];return Xt.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new Ka.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Xt.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){Xt.log("Failed to reopen WebSocket",e)}finally{Xt.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 Dp.call(hx,this.getProtocol())>=0}isState(...e){return Dp.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in Ka.WebSocket)if(Ka.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const t=this.events[e].bind(this);this.webSocket[`on${e}`]=t}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}au.reopenDelay=500,au.prototype.events={message(n){if(!this.isProtocolSupported())return;const{identifier:e,message:t,reason:r,reconnect:f,type:h}=JSON.parse(n.data);switch(h){case Rs.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case Rs.disconnect:return Xt.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:f});case Rs.ping:return this.monitor.recordPing();case Rs.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case Rs.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",t)}},open(){if(Xt.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Xt.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(Xt.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Xt.log("WebSocket onerror event")}};const dx=function(n,e){if(e!=null)for(let t in e){const r=e[t];n[t]=r}return n};class fx{constructor(e,t={},r){this.consumer=e,this.identifier=JSON.stringify(t),dx(this,r)}perform(e,t={}){return t.action=e,this.send(t)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class px{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(Xt.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):Xt.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){Xt.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(t=>t!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{Xt.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class gx{constructor(e){this.consumer=e,this.guarantor=new px(this),this.subscriptions=[]}create(e,t){const r=e,f=typeof r=="object"?r:{channel:r},h=new fx(this.consumer,f,t);return this.add(h)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(t=>(this.forget(t),this.notify(t,"rejected"),t))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(t=>t!==e),e}findAll(e){return this.subscriptions.filter(t=>t.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...t){return this.subscriptions.map(r=>this.notify(r,e,...t))}notify(e,t,...r){let f;return typeof e=="string"?f=this.findAll(e):f=[e],f.map(h=>typeof h[t]=="function"?h[t](...r):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){Xt.log(`Subscription confirmed ${e}`),this.findAll(e).map(t=>this.guarantor.forget(t))}sendCommand(e,t){const{identifier:r}=e;return this.consumer.send({command:t,identifier:r})}}class mx{constructor(e){this._url=e,this.subscriptions=new gx(this),this.connection=new au(this),this.subprotocols=[]}get url(){return yx(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function yx(n){if(typeof n=="function"&&(n=n()),n&&!/^wss?:/i.test(n)){const e=document.createElement("a");return e.href=n,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return n}function vx(n=bx("url")||Op.default_mount_path){return new mx(n)}function bx(n){const e=document.head.querySelector(`meta[name='action-cable-${n}']`);if(e)return e.getAttribute("content")}Za.staleThreshold=10;let tO=Dn("O",class{constructor(n="/openc3-api/cable"){this._cable=null,this._url=n}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(n,e,t={},r={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(f=>{if(f&&OpenC3Auth.setTokens(),this._cable==null){let h=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=vx(h)}return this._cable.subscriptions.create({channel:n,...r},t)})}recordPing(){this._cable.connection.monitor.recordPing()}});class wx{constructor(e,t,r="",f=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=r,this.url=f}}Dn("a",wx);class xx{constructor(){Ow(this,"id",1)}async exec(e,t,r={},f={},h=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,f.manual=!0,(await iu.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...f},timeout:h})).data.result}catch(p){let v=new Error;throw p.response?(v.name=p.response.data.error.data.class,v.message=p.response.data.error.data.message,v.object=p.response.data.error):p.request?(v.name="Request error",v.message="Request error, no response received"):v.name="Unknown error",v}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...r){return this.exec("interface_cmd",[e,t,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,r){return this.exec("get_item",[e,t,r])}get_param(e,t,r){return this.exec("get_param",[e,t,r])}get_parameter(e,t,r){return this.exec("get_param",[e,t,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_tlm",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,t=!1){return this.exec("get_all_tlm_names",[e],{hidden:t})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,t,r,f=30){const h=await this.exec("get_tlm_packet",[e,t],{type:r,stale_time:f});if(h!=null){let p=h.length,v=null;for(let d=0;d<p;d++)v=this.decode_openc3_type(h[d][1]),v!==null&&(h[d][1]=v)}return h}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,r=null){let f={stale_time:t};r!==null&&(f.cache_timeout=r);const h=await this.exec("get_tlm_values",[e],f,{},1e4);let p=h[0].length,v=null;for(let d=0;d<p;d++)v=this.decode_openc3_type(h[0][d]),v!==null&&(h[0][d]=v);return h}get_limits(e,t,r){return this.exec("get_limits",[e,t,r])}async tlm(e,t,r,f="CONVERTED"){let h=null;if(t===void 0)h=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t))h=await this.exec("tlm",[e],{type:t});else{let v=new Error;throw v.name="TypeError",v.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,v}else h=await this.exec("tlm",[e,t,r],{type:f});let p=this.decode_openc3_type(h);return p!==null&&(h=p),h}async inject_tlm(e,t,r=null,f="CONVERTED"){data=await this.exec("inject_tlm",[e,t,r],{type:f})}set_tlm(e,t,r,f){return this.exec("set_tlm",[e,t,r],{type:f})}override_tlm(e,t,r,f){return this.exec("override_tlm",[e,t,r],{type:f})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,r,f){return this.exec("normalize_tlm",[e,t,r],{type:f})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,t=!1){return this.exec("get_all_cmd_names",[e],{hidden:t})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_cmd",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,r,f="CONVERTED"){return this.exec("get_cmd_value",[e,t,r,f])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,r,f,h){let p=null;for(let v in f)Object.prototype.hasOwnProperty.call(f,v)&&(p=this.encode_openc3_type(f[v]),p!==null&&(f[v]=p));return this.exec(e,[t,r,f],{},h)}get_cmd_hazardous(e,t,r,f={}){return t===void 0?this.exec("get_cmd_hazardous",e,{},f):this._cmd("get_cmd_hazardous",e,t,r,f)}cmd(e,t,r,f={}){return t===void 0?this.exec("cmd",e,{},f):this._cmd("cmd",e,t,r,f)}cmd_no_range_check(e,t,r,f={}){return t===void 0?this.exec("cmd_no_range_check",e,{},f):this._cmd("cmd_no_range_check",e,t,r,f)}cmd_raw(e,t,r,f={}){return t===void 0?this.exec("cmd_raw",e,{},f):this._cmd("cmd_raw",e,t,r,f)}cmd_raw_no_range_check(e,t,r,f={}){return t===void 0?this.exec("cmd_raw_no_range_check",e,{},f):this._cmd("cmd_raw_no_range_check",e,t,r,f)}cmd_no_hazardous_check(e,t,r,f={}){return t===void 0?this.exec("cmd_no_hazardous_check",e,{},f):this._cmd("cmd_no_hazardous_check",e,t,r,f)}cmd_no_checks(e,t,r,f={}){return t===void 0?this.exec("cmd_no_checks",e,{},f):this._cmd("cmd_no_checks",e,t,r,f)}cmd_raw_no_hazardous_check(e,t,r,f={}){return t===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},f):this._cmd("cmd_raw_no_hazardous_check",e,t,r,f)}cmd_raw_no_checks(e,t,r,f={}){return t===void 0?this.exec("cmd_raw_no_checks",e,{},f):this._cmd("cmd_raw_no_checks",e,t,r,f)}build_cmd(e,t,r){return t===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,r)}build_command(e,t,r){return t===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,r)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,r){return this.exec("save_config",[e,t,r])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,r){return this.exec("enable_limits",[e,t,r])}disable_limits(e,t,r){return this.exec("disable_limits",[e,t,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("set_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",t),f=new Uint8Array(r);return Array.from(f).map(h=>h.toString(16).padStart(2,"0")).join("")}}}Dn("F",xx);const _x={props:{config:{type:Object},packets:{type:Array}},data:function(){return{currentConfig:{},currentPackets:[],latestData:null}},computed:{hasRaw:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="RAW")return!0;return!1},hasDecom:function(){for(let n=0;n<this.currentPackets.length;n++)if(this.currentPackets[n].mode==="DECOM")return!0;return!1}},watch:{currentConfig:{deep:!0,handler:function(n){this.$emit("config",n)}}},created:function(){this.config&&(this.currentConfig={...this.config}),this.packets&&(this.currentPackets=[...this.packets])},methods:{receive:function(n){this.latestData=n}}};var Ja={exports:{}};/**
1381
+ * @license
1382
+ * Lodash <https://lodash.com/>
1383
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1384
+ * Released under MIT license <https://lodash.com/license>
1385
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1386
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1387
+ */var kx=Ja.exports,Np;function Sx(){return Np||(Np=1,function(n,e){(function(){var t,r="4.17.21",f=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",p="Expected a function",v="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",g=500,s="__lodash_placeholder__",l=1,a=2,c=4,o=1,u=2,y=1,b=2,x=4,E=8,C=16,k=32,w=64,A=128,L=256,I=512,T=30,N="...",S=800,_=16,$=1,R=2,O=3,F=1/0,B=9007199254740991,W=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",A],["bind",y],["bindKey",b],["curry",E],["curryRight",C],["flip",I],["partial",k],["partialRight",w],["rearg",L]],re="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",ve="[object Date]",pe="[object DOMException]",Ce="[object Error]",lt="[object Function]",Wt="[object GeneratorFunction]",gt="[object Map]",vt="[object Number]",pn="[object Null]",Ft="[object Object]",nn="[object Promise]",ei="[object Proxy]",An="[object RegExp]",ln="[object Set]",Be="[object String]",We="[object Symbol]",cn="[object Undefined]",Ve="[object WeakMap]",ce="[object WeakSet]",Ee="[object ArrayBuffer]",Ie="[object DataView]",Ye="[object Float32Array]",Qe="[object Float64Array]",mt="[object Int8Array]",yt="[object Int16Array]",ht="[object Int32Array]",dt="[object Uint8Array]",ot="[object Uint8ClampedArray]",Yt="[object Uint16Array]",Vn="[object Uint32Array]",fi=/\b__p \+= '';/g,ar=/\b(__p \+=) '' \+/g,Ys=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ks=/&(?:amp|lt|gt|quot|#39);/g,Il=/[&<>"']/g,Kh=RegExp(Ks.source),Qh=RegExp(Il.source),Zh=/<%-([\s\S]+?)%>/g,Jh=/<%([\s\S]+?)%>/g,je=/<%=([\s\S]+?)%>/g,pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fn=/^\w*$/,ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ni=/[\\^$.*+?()[\]{}|]/g,Di=RegExp(ni.source),qn=/^\s+/,Ni=/\s/,Fi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ol=/\{\n\/\* \[wrapped with (.+)\] \*/,Dl=/,? & /,Xh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ed=/[()=,{}\[\]\/\s]/,gi=/\\(\\)?/g,td=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,Nl=/^[-+]0x[0-9a-f]+$/i,ri=/^0b[01]+$/i,Tn=/^\[object .+?Constructor\]$/,xn=/^0o[0-7]+$/i,_n=/^(?:0|[1-9]\d*)$/,ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gn=/($^)/,bo=/['\n\r\u2028\u2029\\]/g,wo="\\ud800-\\udfff",Qs="\\u0300-\\u036f",ns="\\ufe20-\\ufe2f",Hi="\\u20d0-\\u20ff",rs=Qs+ns+Hi,is="\\u2700-\\u27bf",os="a-z\\xdf-\\xf6\\xf8-\\xff",Zs="\\xac\\xb1\\xd7\\xf7",Js="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xs="\\u2000-\\u206f",ea=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ar="A-Z\\xc0-\\xd6\\xd8-\\xde",ta="\\ufe0e\\ufe0f",na=Zs+Js+Xs+ea,xo="['’]",Fl="["+wo+"]",Pl="["+na+"]",ss="["+rs+"]",Hl="\\d+",Bl="["+is+"]",ra="["+os+"]",jl="[^"+wo+na+Hl+is+os+Ar+"]",as="\\ud83c[\\udffb-\\udfff]",ia="(?:"+ss+"|"+as+")",_o="[^"+wo+"]",Bi="(?:\\ud83c[\\udde6-\\uddff]){2}",oa="[\\ud800-\\udbff][\\udc00-\\udfff]",ii="["+Ar+"]",zl="\\u200d",Wl="(?:"+ra+"|"+jl+")",nd="(?:"+ii+"|"+jl+")",mi="(?:"+xo+"(?:d|ll|m|re|s|t|ve))?",ko="(?:"+xo+"(?:D|LL|M|RE|S|T|VE))?",ls=ia+"?",ji="["+ta+"]?",rd="(?:"+zl+"(?:"+[_o,Bi,oa].join("|")+")"+ji+ls+")*",zi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",id="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sa=ji+ls+rd,aa="(?:"+[Bl,Bi,oa].join("|")+")"+sa,la="(?:"+[_o+ss+"?",ss,Bi,oa,Fl].join("|")+")",ca=RegExp(xo,"g"),Wi=RegExp(ss,"g"),oi=RegExp(as+"(?="+as+")|"+la+sa,"g"),Ul=RegExp([ii+"?"+ra+"+"+mi+"(?="+[Pl,ii,"$"].join("|")+")",nd+"+"+ko+"(?="+[Pl,ii+Wl,"$"].join("|")+")",ii+"?"+Wl+"+"+mi,ii+"+"+ko,id,zi,Hl,aa].join("|"),"g"),Vl=RegExp("["+zl+wo+rs+ta+"]"),Ui=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ql=-1,Ot={};Ot[Ye]=Ot[Qe]=Ot[mt]=Ot[yt]=Ot[ht]=Ot[dt]=Ot[ot]=Ot[Yt]=Ot[Vn]=!0,Ot[re]=Ot[J]=Ot[Ee]=Ot[me]=Ot[Ie]=Ot[ve]=Ot[Ce]=Ot[lt]=Ot[gt]=Ot[vt]=Ot[Ft]=Ot[An]=Ot[ln]=Ot[Be]=Ot[Ve]=!1;var ze={};ze[re]=ze[J]=ze[Ee]=ze[Ie]=ze[me]=ze[ve]=ze[Ye]=ze[Qe]=ze[mt]=ze[yt]=ze[ht]=ze[gt]=ze[vt]=ze[Ft]=ze[An]=ze[ln]=ze[Be]=ze[We]=ze[dt]=ze[ot]=ze[Yt]=ze[Vn]=!0,ze[Ce]=ze[lt]=ze[Ve]=!1;var Ut={À:"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"},si={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},En={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},kn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sn=parseFloat,Pt=parseInt,yi=typeof Ri=="object"&&Ri&&Ri.Object===Object&&Ri,cs=typeof self=="object"&&self&&self.Object===Object&&self,Ln=yi||cs||Function("return this")(),Tr=e&&!e.nodeType&&e,Pn=Tr&&!0&&n&&!n.nodeType&&n,Gl=Pn&&Pn.exports===Tr,ua=Gl&&yi.process,lr=function(){try{var ne=Pn&&Pn.require&&Pn.require("util").types;return ne||ua&&ua.binding&&ua.binding("util")}catch{}}(),Yl=lr&&lr.isArrayBuffer,Er=lr&&lr.isDate,zr=lr&&lr.isMap,ai=lr&&lr.isRegExp,vi=lr&&lr.isSet,Kl=lr&&lr.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 od(ne,le,se,Me){for(var He=-1,Je=ne==null?0:ne.length;++He<Je;){var Tt=ne[He];le(Me,Tt,se(Tt),ne)}return Me}function Xn(ne,le){for(var se=-1,Me=ne==null?0:ne.length;++se<Me&&le(ne[se],se,ne)!==!1;);return ne}function Ql(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function qi(ne,le){for(var se=-1,Me=ne==null?0:ne.length;++se<Me;)if(!le(ne[se],se,ne))return!1;return!0}function cr(ne,le){for(var se=-1,Me=ne==null?0:ne.length,He=0,Je=[];++se<Me;){var Tt=ne[se];le(Tt,se,ne)&&(Je[He++]=Tt)}return Je}function us(ne,le){var se=ne==null?0:ne.length;return!!se&&bi(ne,le,0)>-1}function So(ne,le,se){for(var Me=-1,He=ne==null?0:ne.length;++Me<He;)if(se(le,ne[Me]))return!0;return!1}function Vt(ne,le){for(var se=-1,Me=ne==null?0:ne.length,He=Array(Me);++se<Me;)He[se]=le(ne[se],se,ne);return He}function Yn(ne,le){for(var se=-1,Me=le.length,He=ne.length;++se<Me;)ne[He+se]=le[se];return ne}function Lr(ne,le,se,Me){var He=-1,Je=ne==null?0:ne.length;for(Me&&Je&&(se=ne[++He]);++He<Je;)se=le(se,ne[He],He,ne);return se}function $o(ne,le,se,Me){var He=ne==null?0:ne.length;for(Me&&He&&(se=ne[--He]);He--;)se=le(se,ne[He],He,ne);return se}function hs(ne,le){for(var se=-1,Me=ne==null?0:ne.length;++se<Me;)if(le(ne[se],se,ne))return!0;return!1}var ha=ma("length");function da(ne){return ne.split("")}function ds(ne){return ne.match(Xh)||[]}function fa(ne,le,se){var Me;return se(ne,function(He,Je,Tt){if(le(He,Je,Tt))return Me=Je,!1}),Me}function Co(ne,le,se,Me){for(var He=ne.length,Je=se+(Me?1:-1);Me?Je--:++Je<He;)if(le(ne[Je],Je,ne))return Je;return-1}function bi(ne,le,se){return le===le?Ze(ne,le,se):Co(ne,pa,se)}function Zl(ne,le,se,Me){for(var He=se-1,Je=ne.length;++He<Je;)if(Me(ne[He],le))return He;return-1}function pa(ne){return ne!==ne}function ga(ne,le){var se=ne==null?0:ne.length;return se?Yi(ne,le)/se:V}function ma(ne){return function(le){return le==null?t:le[ne]}}function fs(ne){return function(le){return ne==null?t:ne[le]}}function ya(ne,le,se,Me,He){return He(ne,function(Je,Tt,et){se=Me?(Me=!1,Je):le(se,Je,Tt,et)}),se}function Gi(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Yi(ne,le){for(var se,Me=-1,He=ne.length;++Me<He;){var Je=le(ne[Me]);Je!==t&&(se=se===t?Je:se+Je)}return se}function un(ne,le){for(var se=-1,Me=Array(ne);++se<ne;)Me[se]=le(se);return Me}function Jl(ne,le){return Vt(le,function(se){return[se,ne[se]]})}function rn(ne){return ne&&ne.slice(0,Xe(ne)+1).replace(qn,"")}function Kn(ne){return function(le){return ne(le)}}function Mo(ne,le){return Vt(le,function(se){return ne[se]})}function Wr(ne,le){return ne.has(le)}function Xl(ne,le){for(var se=-1,Me=ne.length;++se<Me&&bi(le,ne[se],0)>-1;);return se}function ec(ne,le){for(var se=ne.length;se--&&bi(le,ne[se],0)>-1;);return se}function va(ne,le){for(var se=ne.length,Me=0;se--;)ne[se]===le&&++Me;return Me}var P=fs(Ut),j=fs(si);function Y(ne){return"\\"+kn[ne]}function K(ne,le){return ne==null?t:ne[le]}function te(ne){return Vl.test(ne)}function oe(ne){return Ui.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function be(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Me,He){se[++le]=[He,Me]}),se}function ke(ne,le){return function(se){return ne(le(se))}}function $e(ne,le){for(var se=-1,Me=ne.length,He=0,Je=[];++se<Me;){var Tt=ne[se];(Tt===le||Tt===s)&&(ne[se]=s,Je[He++]=se)}return Je}function Ae(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Me){se[++le]=Me}),se}function Le(ne){var le=-1,se=Array(ne.size);return ne.forEach(function(Me){se[++le]=[Me,Me]}),se}function Ze(ne,le,se){for(var Me=se-1,He=ne.length;++Me<He;)if(ne[Me]===le)return Me;return-1}function Rt(ne,le,se){for(var Me=se+1;Me--;)if(ne[Me]===le)return Me;return Me}function st(ne){return te(ne)?At(ne):ha(ne)}function Ke(ne){return te(ne)?on(ne):da(ne)}function Xe(ne){for(var le=ne.length;le--&&Ni.test(ne.charAt(le)););return le}var Ne=fs(En);function At(ne){for(var le=oi.lastIndex=0;oi.test(ne);)++le;return le}function on(ne){return ne.match(oi)||[]}function Jt(ne){return ne.match(Ul)||[]}var Ht=function ne(le){le=le==null?Ln:Bt.defaults(Ln.Object(),le,Bt.pick(Ln,Vi));var se=le.Array,Me=le.Date,He=le.Error,Je=le.Function,Tt=le.Math,et=le.Object,Rn=le.RegExp,er=le.String,In=le.TypeError,wr=se.prototype,ur=Je.prototype,ps=et.prototype,tc=le["__core-js_shared__"],nc=ur.toString,It=ps.hasOwnProperty,GA=0,$0=function(){var i=/[^.]+$/.exec(tc&&tc.keys&&tc.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),rc=ps.toString,YA=nc.call(et),KA=Ln._,QA=Rn("^"+nc.call(It).replace(ni,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ic=Gl?le.Buffer:t,Ki=le.Symbol,oc=le.Uint8Array,C0=ic?ic.allocUnsafe:t,sc=ke(et.getPrototypeOf,et),M0=et.create,A0=ps.propertyIsEnumerable,ac=wr.splice,T0=Ki?Ki.isConcatSpreadable:t,ba=Ki?Ki.iterator:t,Ao=Ki?Ki.toStringTag:t,lc=function(){try{var i=Io(et,"defineProperty");return i({},"",{}),i}catch{}}(),ZA=le.clearTimeout!==Ln.clearTimeout&&le.clearTimeout,JA=Me&&Me.now!==Ln.Date.now&&Me.now,XA=le.setTimeout!==Ln.setTimeout&&le.setTimeout,cc=Tt.ceil,uc=Tt.floor,sd=et.getOwnPropertySymbols,eT=ic?ic.isBuffer:t,E0=le.isFinite,tT=wr.join,nT=ke(et.keys,et),On=Tt.max,Qn=Tt.min,rT=Me.now,iT=le.parseInt,L0=Tt.random,oT=wr.reverse,ad=Io(le,"DataView"),wa=Io(le,"Map"),ld=Io(le,"Promise"),gs=Io(le,"Set"),xa=Io(le,"WeakMap"),_a=Io(et,"create"),hc=xa&&new xa,ms={},sT=Oo(ad),aT=Oo(wa),lT=Oo(ld),cT=Oo(gs),uT=Oo(xa),dc=Ki?Ki.prototype:t,ka=dc?dc.valueOf:t,R0=dc?dc.toString:t;function z(i){if(hn(i)&&!tt(i)&&!(i instanceof xt)){if(i instanceof Rr)return i;if(It.call(i,"__wrapped__"))return Iv(i)}return new Rr(i)}var ys=function(){function i(){}return function(m){if(!sn(m))return{};if(M0)return M0(m);i.prototype=m;var M=new i;return i.prototype=t,M}}();function fc(){}function Rr(i,m){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=t}z.templateSettings={escape:Zh,evaluate:Jh,interpolate:je,variable:"",imports:{_:z}},z.prototype=fc.prototype,z.prototype.constructor=z,Rr.prototype=ys(fc.prototype),Rr.prototype.constructor=Rr;function xt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function hT(){var i=new xt(this.__wrapped__);return i.__actions__=hr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=hr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=hr(this.__views__),i}function dT(){if(this.__filtered__){var i=new xt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function fT(){var i=this.__wrapped__.value(),m=this.__dir__,M=tt(i),D=m<0,H=M?i.length:0,U=$E(0,H,this.__views__),Q=U.start,ee=U.end,ie=ee-Q,fe=D?ee:Q-1,ge=this.__iteratees__,ye=ge.length,Te=0,Fe=Qn(ie,this.__takeCount__);if(!M||!D&&H==ie&&Fe==ie)return nv(i,this.__actions__);var qe=[];e:for(;ie--&&Te<Fe;){fe+=m;for(var ct=-1,Ge=i[fe];++ct<ye;){var bt=ge[ct],_t=bt.iteratee,kr=bt.type,rr=_t(Ge);if(kr==R)Ge=rr;else if(!rr){if(kr==$)continue e;break e}}qe[Te++]=Ge}return qe}xt.prototype=ys(fc.prototype),xt.prototype.constructor=xt;function To(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var D=i[m];this.set(D[0],D[1])}}function pT(){this.__data__=_a?_a(null):{},this.size=0}function gT(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}function mT(i){var m=this.__data__;if(_a){var M=m[i];return M===d?t:M}return It.call(m,i)?m[i]:t}function yT(i){var m=this.__data__;return _a?m[i]!==t:It.call(m,i)}function vT(i,m){var M=this.__data__;return this.size+=this.has(i)?0:1,M[i]=_a&&m===t?d:m,this}To.prototype.clear=pT,To.prototype.delete=gT,To.prototype.get=mT,To.prototype.has=yT,To.prototype.set=vT;function wi(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var D=i[m];this.set(D[0],D[1])}}function bT(){this.__data__=[],this.size=0}function wT(i){var m=this.__data__,M=pc(m,i);if(M<0)return!1;var D=m.length-1;return M==D?m.pop():ac.call(m,M,1),--this.size,!0}function xT(i){var m=this.__data__,M=pc(m,i);return M<0?t:m[M][1]}function _T(i){return pc(this.__data__,i)>-1}function kT(i,m){var M=this.__data__,D=pc(M,i);return D<0?(++this.size,M.push([i,m])):M[D][1]=m,this}wi.prototype.clear=bT,wi.prototype.delete=wT,wi.prototype.get=xT,wi.prototype.has=_T,wi.prototype.set=kT;function xi(i){var m=-1,M=i==null?0:i.length;for(this.clear();++m<M;){var D=i[m];this.set(D[0],D[1])}}function ST(){this.size=0,this.__data__={hash:new To,map:new(wa||wi),string:new To}}function $T(i){var m=Cc(this,i).delete(i);return this.size-=m?1:0,m}function CT(i){return Cc(this,i).get(i)}function MT(i){return Cc(this,i).has(i)}function AT(i,m){var M=Cc(this,i),D=M.size;return M.set(i,m),this.size+=M.size==D?0:1,this}xi.prototype.clear=ST,xi.prototype.delete=$T,xi.prototype.get=CT,xi.prototype.has=MT,xi.prototype.set=AT;function Eo(i){var m=-1,M=i==null?0:i.length;for(this.__data__=new xi;++m<M;)this.add(i[m])}function TT(i){return this.__data__.set(i,d),this}function ET(i){return this.__data__.has(i)}Eo.prototype.add=Eo.prototype.push=TT,Eo.prototype.has=ET;function Ur(i){var m=this.__data__=new wi(i);this.size=m.size}function LT(){this.__data__=new wi,this.size=0}function RT(i){var m=this.__data__,M=m.delete(i);return this.size=m.size,M}function IT(i){return this.__data__.get(i)}function OT(i){return this.__data__.has(i)}function DT(i,m){var M=this.__data__;if(M instanceof wi){var D=M.__data__;if(!wa||D.length<f-1)return D.push([i,m]),this.size=++M.size,this;M=this.__data__=new xi(D)}return M.set(i,m),this.size=M.size,this}Ur.prototype.clear=LT,Ur.prototype.delete=RT,Ur.prototype.get=IT,Ur.prototype.has=OT,Ur.prototype.set=DT;function I0(i,m){var M=tt(i),D=!M&&Do(i),H=!M&&!D&&eo(i),U=!M&&!D&&!H&&xs(i),Q=M||D||H||U,ee=Q?un(i.length,er):[],ie=ee.length;for(var fe in i)(m||It.call(i,fe))&&!(Q&&(fe=="length"||H&&(fe=="offset"||fe=="parent")||U&&(fe=="buffer"||fe=="byteLength"||fe=="byteOffset")||$i(fe,ie)))&&ee.push(fe);return ee}function O0(i){var m=i.length;return m?i[bd(0,m-1)]:t}function NT(i,m){return Mc(hr(i),Lo(m,0,i.length))}function FT(i){return Mc(hr(i))}function cd(i,m,M){(M!==t&&!Vr(i[m],M)||M===t&&!(m in i))&&_i(i,m,M)}function Sa(i,m,M){var D=i[m];(!(It.call(i,m)&&Vr(D,M))||M===t&&!(m in i))&&_i(i,m,M)}function pc(i,m){for(var M=i.length;M--;)if(Vr(i[M][0],m))return M;return-1}function PT(i,m,M,D){return Qi(i,function(H,U,Q){m(D,H,M(H),Q)}),D}function D0(i,m){return i&&ci(m,Hn(m),i)}function HT(i,m){return i&&ci(m,fr(m),i)}function _i(i,m,M){m=="__proto__"&&lc?lc(i,m,{configurable:!0,enumerable:!0,value:M,writable:!0}):i[m]=M}function ud(i,m){for(var M=-1,D=m.length,H=se(D),U=i==null;++M<D;)H[M]=U?t:Ud(i,m[M]);return H}function Lo(i,m,M){return i===i&&(M!==t&&(i=i<=M?i:M),m!==t&&(i=i>=m?i:m)),i}function Ir(i,m,M,D,H,U){var Q,ee=m&l,ie=m&a,fe=m&c;if(M&&(Q=H?M(i,D,H,U):M(i)),Q!==t)return Q;if(!sn(i))return i;var ge=tt(i);if(ge){if(Q=ME(i),!ee)return hr(i,Q)}else{var ye=Zn(i),Te=ye==lt||ye==Wt;if(eo(i))return ov(i,ee);if(ye==Ft||ye==re||Te&&!H){if(Q=ie||Te?{}:Sv(i),!ee)return ie?mE(i,HT(Q,i)):gE(i,D0(Q,i))}else{if(!ze[ye])return H?i:{};Q=AE(i,ye,ee)}}U||(U=new Ur);var Fe=U.get(i);if(Fe)return Fe;U.set(i,Q),Xv(i)?i.forEach(function(Ge){Q.add(Ir(Ge,m,M,Ge,i,U))}):Zv(i)&&i.forEach(function(Ge,bt){Q.set(bt,Ir(Ge,m,M,bt,i,U))});var qe=fe?ie?Ed:Td:ie?fr:Hn,ct=ge?t:qe(i);return Xn(ct||i,function(Ge,bt){ct&&(bt=Ge,Ge=i[bt]),Sa(Q,bt,Ir(Ge,m,M,bt,i,U))}),Q}function BT(i){var m=Hn(i);return function(M){return N0(M,i,m)}}function N0(i,m,M){var D=M.length;if(i==null)return!D;for(i=et(i);D--;){var H=M[D],U=m[H],Q=i[H];if(Q===t&&!(H in i)||!U(Q))return!1}return!0}function F0(i,m,M){if(typeof i!="function")throw new In(p);return La(function(){i.apply(t,M)},m)}function $a(i,m,M,D){var H=-1,U=us,Q=!0,ee=i.length,ie=[],fe=m.length;if(!ee)return ie;M&&(m=Vt(m,Kn(M))),D?(U=So,Q=!1):m.length>=f&&(U=Wr,Q=!1,m=new Eo(m));e:for(;++H<ee;){var ge=i[H],ye=M==null?ge:M(ge);if(ge=D||ge!==0?ge:0,Q&&ye===ye){for(var Te=fe;Te--;)if(m[Te]===ye)continue e;ie.push(ge)}else U(m,ye,D)||ie.push(ge)}return ie}var Qi=uv(li),P0=uv(dd,!0);function jT(i,m){var M=!0;return Qi(i,function(D,H,U){return M=!!m(D,H,U),M}),M}function gc(i,m,M){for(var D=-1,H=i.length;++D<H;){var U=i[D],Q=m(U);if(Q!=null&&(ee===t?Q===Q&&!_r(Q):M(Q,ee)))var ee=Q,ie=U}return ie}function zT(i,m,M,D){var H=i.length;for(M=at(M),M<0&&(M=-M>H?0:H+M),D=D===t||D>H?H:at(D),D<0&&(D+=H),D=M>D?0:tb(D);M<D;)i[M++]=m;return i}function H0(i,m){var M=[];return Qi(i,function(D,H,U){m(D,H,U)&&M.push(D)}),M}function Bn(i,m,M,D,H){var U=-1,Q=i.length;for(M||(M=EE),H||(H=[]);++U<Q;){var ee=i[U];m>0&&M(ee)?m>1?Bn(ee,m-1,M,D,H):Yn(H,ee):D||(H[H.length]=ee)}return H}var hd=hv(),B0=hv(!0);function li(i,m){return i&&hd(i,m,Hn)}function dd(i,m){return i&&B0(i,m,Hn)}function mc(i,m){return cr(m,function(M){return Ci(i[M])})}function Ro(i,m){m=Ji(m,i);for(var M=0,D=m.length;i!=null&&M<D;)i=i[ui(m[M++])];return M&&M==D?i:t}function j0(i,m,M){var D=m(i);return tt(i)?D:Yn(D,M(i))}function tr(i){return i==null?i===t?cn:pn:Ao&&Ao in et(i)?SE(i):FE(i)}function fd(i,m){return i>m}function WT(i,m){return i!=null&&It.call(i,m)}function UT(i,m){return i!=null&&m in et(i)}function VT(i,m,M){return i>=Qn(m,M)&&i<On(m,M)}function pd(i,m,M){for(var D=M?So:us,H=i[0].length,U=i.length,Q=U,ee=se(U),ie=1/0,fe=[];Q--;){var ge=i[Q];Q&&m&&(ge=Vt(ge,Kn(m))),ie=Qn(ge.length,ie),ee[Q]=!M&&(m||H>=120&&ge.length>=120)?new Eo(Q&&ge):t}ge=i[0];var ye=-1,Te=ee[0];e:for(;++ye<H&&fe.length<ie;){var Fe=ge[ye],qe=m?m(Fe):Fe;if(Fe=M||Fe!==0?Fe:0,!(Te?Wr(Te,qe):D(fe,qe,M))){for(Q=U;--Q;){var ct=ee[Q];if(!(ct?Wr(ct,qe):D(i[Q],qe,M)))continue e}Te&&Te.push(qe),fe.push(Fe)}}return fe}function qT(i,m,M,D){return li(i,function(H,U,Q){m(D,M(H),U,Q)}),D}function Ca(i,m,M){m=Ji(m,i),i=Av(i,m);var D=i==null?i:i[ui(Dr(m))];return D==null?t:Zt(D,i,M)}function z0(i){return hn(i)&&tr(i)==re}function GT(i){return hn(i)&&tr(i)==Ee}function YT(i){return hn(i)&&tr(i)==ve}function Ma(i,m,M,D,H){return i===m?!0:i==null||m==null||!hn(i)&&!hn(m)?i!==i&&m!==m:KT(i,m,M,D,Ma,H)}function KT(i,m,M,D,H,U){var Q=tt(i),ee=tt(m),ie=Q?J:Zn(i),fe=ee?J:Zn(m);ie=ie==re?Ft:ie,fe=fe==re?Ft:fe;var ge=ie==Ft,ye=fe==Ft,Te=ie==fe;if(Te&&eo(i)){if(!eo(m))return!1;Q=!0,ge=!1}if(Te&&!ge)return U||(U=new Ur),Q||xs(i)?xv(i,m,M,D,H,U):_E(i,m,ie,M,D,H,U);if(!(M&o)){var Fe=ge&&It.call(i,"__wrapped__"),qe=ye&&It.call(m,"__wrapped__");if(Fe||qe){var ct=Fe?i.value():i,Ge=qe?m.value():m;return U||(U=new Ur),H(ct,Ge,M,D,U)}}return Te?(U||(U=new Ur),kE(i,m,M,D,H,U)):!1}function QT(i){return hn(i)&&Zn(i)==gt}function gd(i,m,M,D){var H=M.length,U=H,Q=!D;if(i==null)return!U;for(i=et(i);H--;){var ee=M[H];if(Q&&ee[2]?ee[1]!==i[ee[0]]:!(ee[0]in i))return!1}for(;++H<U;){ee=M[H];var ie=ee[0],fe=i[ie],ge=ee[1];if(Q&&ee[2]){if(fe===t&&!(ie in i))return!1}else{var ye=new Ur;if(D)var Te=D(fe,ge,ie,i,m,ye);if(!(Te===t?Ma(ge,fe,o|u,D,ye):Te))return!1}}return!0}function W0(i){if(!sn(i)||RE(i))return!1;var m=Ci(i)?QA:Tn;return m.test(Oo(i))}function ZT(i){return hn(i)&&tr(i)==An}function JT(i){return hn(i)&&Zn(i)==ln}function XT(i){return hn(i)&&Ic(i.length)&&!!Ot[tr(i)]}function U0(i){return typeof i=="function"?i:i==null?pr:typeof i=="object"?tt(i)?G0(i[0],i[1]):q0(i):db(i)}function md(i){if(!Ea(i))return nT(i);var m=[];for(var M in et(i))It.call(i,M)&&M!="constructor"&&m.push(M);return m}function eE(i){if(!sn(i))return NE(i);var m=Ea(i),M=[];for(var D in i)D=="constructor"&&(m||!It.call(i,D))||M.push(D);return M}function yd(i,m){return i<m}function V0(i,m){var M=-1,D=dr(i)?se(i.length):[];return Qi(i,function(H,U,Q){D[++M]=m(H,U,Q)}),D}function q0(i){var m=Rd(i);return m.length==1&&m[0][2]?Cv(m[0][0],m[0][1]):function(M){return M===i||gd(M,i,m)}}function G0(i,m){return Od(i)&&$v(m)?Cv(ui(i),m):function(M){var D=Ud(M,i);return D===t&&D===m?Vd(M,i):Ma(m,D,o|u)}}function yc(i,m,M,D,H){i!==m&&hd(m,function(U,Q){if(H||(H=new Ur),sn(U))tE(i,m,Q,M,yc,D,H);else{var ee=D?D(Nd(i,Q),U,Q+"",i,m,H):t;ee===t&&(ee=U),cd(i,Q,ee)}},fr)}function tE(i,m,M,D,H,U,Q){var ee=Nd(i,M),ie=Nd(m,M),fe=Q.get(ie);if(fe){cd(i,M,fe);return}var ge=U?U(ee,ie,M+"",i,m,Q):t,ye=ge===t;if(ye){var Te=tt(ie),Fe=!Te&&eo(ie),qe=!Te&&!Fe&&xs(ie);ge=ie,Te||Fe||qe?tt(ee)?ge=ee:gn(ee)?ge=hr(ee):Fe?(ye=!1,ge=ov(ie,!0)):qe?(ye=!1,ge=sv(ie,!0)):ge=[]:Ra(ie)||Do(ie)?(ge=ee,Do(ee)?ge=nb(ee):(!sn(ee)||Ci(ee))&&(ge=Sv(ie))):ye=!1}ye&&(Q.set(ie,ge),H(ge,ie,D,U,Q),Q.delete(ie)),cd(i,M,ge)}function Y0(i,m){var M=i.length;if(M)return m+=m<0?M:0,$i(m,M)?i[m]:t}function K0(i,m,M){m.length?m=Vt(m,function(U){return tt(U)?function(Q){return Ro(Q,U.length===1?U[0]:U)}:U}):m=[pr];var D=-1;m=Vt(m,Kn(Ue()));var H=V0(i,function(U,Q,ee){var ie=Vt(m,function(fe){return fe(U)});return{criteria:ie,index:++D,value:U}});return Gi(H,function(U,Q){return pE(U,Q,M)})}function nE(i,m){return Q0(i,m,function(M,D){return Vd(i,D)})}function Q0(i,m,M){for(var D=-1,H=m.length,U={};++D<H;){var Q=m[D],ee=Ro(i,Q);M(ee,Q)&&Aa(U,Ji(Q,i),ee)}return U}function rE(i){return function(m){return Ro(m,i)}}function vd(i,m,M,D){var H=D?Zl:bi,U=-1,Q=m.length,ee=i;for(i===m&&(m=hr(m)),M&&(ee=Vt(i,Kn(M)));++U<Q;)for(var ie=0,fe=m[U],ge=M?M(fe):fe;(ie=H(ee,ge,ie,D))>-1;)ee!==i&&ac.call(ee,ie,1),ac.call(i,ie,1);return i}function Z0(i,m){for(var M=i?m.length:0,D=M-1;M--;){var H=m[M];if(M==D||H!==U){var U=H;$i(H)?ac.call(i,H,1):_d(i,H)}}return i}function bd(i,m){return i+uc(L0()*(m-i+1))}function iE(i,m,M,D){for(var H=-1,U=On(cc((m-i)/(M||1)),0),Q=se(U);U--;)Q[D?U:++H]=i,i+=M;return Q}function wd(i,m){var M="";if(!i||m<1||m>B)return M;do m%2&&(M+=i),m=uc(m/2),m&&(i+=i);while(m);return M}function ft(i,m){return Fd(Mv(i,m,pr),i+"")}function oE(i){return O0(_s(i))}function sE(i,m){var M=_s(i);return Mc(M,Lo(m,0,M.length))}function Aa(i,m,M,D){if(!sn(i))return i;m=Ji(m,i);for(var H=-1,U=m.length,Q=U-1,ee=i;ee!=null&&++H<U;){var ie=ui(m[H]),fe=M;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return i;if(H!=Q){var ge=ee[ie];fe=D?D(ge,ie,ee):t,fe===t&&(fe=sn(ge)?ge:$i(m[H+1])?[]:{})}Sa(ee,ie,fe),ee=ee[ie]}return i}var J0=hc?function(i,m){return hc.set(i,m),i}:pr,aE=lc?function(i,m){return lc(i,"toString",{configurable:!0,enumerable:!1,value:Gd(m),writable:!0})}:pr;function lE(i){return Mc(_s(i))}function Or(i,m,M){var D=-1,H=i.length;m<0&&(m=-m>H?0:H+m),M=M>H?H:M,M<0&&(M+=H),H=m>M?0:M-m>>>0,m>>>=0;for(var U=se(H);++D<H;)U[D]=i[D+m];return U}function cE(i,m){var M;return Qi(i,function(D,H,U){return M=m(D,H,U),!M}),!!M}function vc(i,m,M){var D=0,H=i==null?D:i.length;if(typeof m=="number"&&m===m&&H<=G){for(;D<H;){var U=D+H>>>1,Q=i[U];Q!==null&&!_r(Q)&&(M?Q<=m:Q<m)?D=U+1:H=U}return H}return xd(i,m,pr,M)}function xd(i,m,M,D){var H=0,U=i==null?0:i.length;if(U===0)return 0;m=M(m);for(var Q=m!==m,ee=m===null,ie=_r(m),fe=m===t;H<U;){var ge=uc((H+U)/2),ye=M(i[ge]),Te=ye!==t,Fe=ye===null,qe=ye===ye,ct=_r(ye);if(Q)var Ge=D||qe;else fe?Ge=qe&&(D||Te):ee?Ge=qe&&Te&&(D||!Fe):ie?Ge=qe&&Te&&!Fe&&(D||!ct):Fe||ct?Ge=!1:Ge=D?ye<=m:ye<m;Ge?H=ge+1:U=ge}return Qn(U,X)}function X0(i,m){for(var M=-1,D=i.length,H=0,U=[];++M<D;){var Q=i[M],ee=m?m(Q):Q;if(!M||!Vr(ee,ie)){var ie=ee;U[H++]=Q===0?0:Q}}return U}function ev(i){return typeof i=="number"?i:_r(i)?V:+i}function xr(i){if(typeof i=="string")return i;if(tt(i))return Vt(i,xr)+"";if(_r(i))return R0?R0.call(i):"";var m=i+"";return m=="0"&&1/i==-1/0?"-0":m}function Zi(i,m,M){var D=-1,H=us,U=i.length,Q=!0,ee=[],ie=ee;if(M)Q=!1,H=So;else if(U>=f){var fe=m?null:wE(i);if(fe)return Ae(fe);Q=!1,H=Wr,ie=new Eo}else ie=m?[]:ee;e:for(;++D<U;){var ge=i[D],ye=m?m(ge):ge;if(ge=M||ge!==0?ge:0,Q&&ye===ye){for(var Te=ie.length;Te--;)if(ie[Te]===ye)continue e;m&&ie.push(ye),ee.push(ge)}else H(ie,ye,M)||(ie!==ee&&ie.push(ye),ee.push(ge))}return ee}function _d(i,m){return m=Ji(m,i),i=Av(i,m),i==null||delete i[ui(Dr(m))]}function tv(i,m,M,D){return Aa(i,m,M(Ro(i,m)),D)}function bc(i,m,M,D){for(var H=i.length,U=D?H:-1;(D?U--:++U<H)&&m(i[U],U,i););return M?Or(i,D?0:U,D?U+1:H):Or(i,D?U+1:0,D?H:U)}function nv(i,m){var M=i;return M instanceof xt&&(M=M.value()),Lr(m,function(D,H){return H.func.apply(H.thisArg,Yn([D],H.args))},M)}function kd(i,m,M){var D=i.length;if(D<2)return D?Zi(i[0]):[];for(var H=-1,U=se(D);++H<D;)for(var Q=i[H],ee=-1;++ee<D;)ee!=H&&(U[H]=$a(U[H]||Q,i[ee],m,M));return Zi(Bn(U,1),m,M)}function rv(i,m,M){for(var D=-1,H=i.length,U=m.length,Q={};++D<H;){var ee=D<U?m[D]:t;M(Q,i[D],ee)}return Q}function Sd(i){return gn(i)?i:[]}function $d(i){return typeof i=="function"?i:pr}function Ji(i,m){return tt(i)?i:Od(i,m)?[i]:Rv(Et(i))}var uE=ft;function Xi(i,m,M){var D=i.length;return M=M===t?D:M,!m&&M>=D?i:Or(i,m,M)}var iv=ZA||function(i){return Ln.clearTimeout(i)};function ov(i,m){if(m)return i.slice();var M=i.length,D=C0?C0(M):new i.constructor(M);return i.copy(D),D}function Cd(i){var m=new i.constructor(i.byteLength);return new oc(m).set(new oc(i)),m}function hE(i,m){var M=m?Cd(i.buffer):i.buffer;return new i.constructor(M,i.byteOffset,i.byteLength)}function dE(i){var m=new i.constructor(i.source,Pi.exec(i));return m.lastIndex=i.lastIndex,m}function fE(i){return ka?et(ka.call(i)):{}}function sv(i,m){var M=m?Cd(i.buffer):i.buffer;return new i.constructor(M,i.byteOffset,i.length)}function av(i,m){if(i!==m){var M=i!==t,D=i===null,H=i===i,U=_r(i),Q=m!==t,ee=m===null,ie=m===m,fe=_r(m);if(!ee&&!fe&&!U&&i>m||U&&Q&&ie&&!ee&&!fe||D&&Q&&ie||!M&&ie||!H)return 1;if(!D&&!U&&!fe&&i<m||fe&&M&&H&&!D&&!U||ee&&M&&H||!Q&&H||!ie)return-1}return 0}function pE(i,m,M){for(var D=-1,H=i.criteria,U=m.criteria,Q=H.length,ee=M.length;++D<Q;){var ie=av(H[D],U[D]);if(ie){if(D>=ee)return ie;var fe=M[D];return ie*(fe=="desc"?-1:1)}}return i.index-m.index}function lv(i,m,M,D){for(var H=-1,U=i.length,Q=M.length,ee=-1,ie=m.length,fe=On(U-Q,0),ge=se(ie+fe),ye=!D;++ee<ie;)ge[ee]=m[ee];for(;++H<Q;)(ye||H<U)&&(ge[M[H]]=i[H]);for(;fe--;)ge[ee++]=i[H++];return ge}function cv(i,m,M,D){for(var H=-1,U=i.length,Q=-1,ee=M.length,ie=-1,fe=m.length,ge=On(U-ee,0),ye=se(ge+fe),Te=!D;++H<ge;)ye[H]=i[H];for(var Fe=H;++ie<fe;)ye[Fe+ie]=m[ie];for(;++Q<ee;)(Te||H<U)&&(ye[Fe+M[Q]]=i[H++]);return ye}function hr(i,m){var M=-1,D=i.length;for(m||(m=se(D));++M<D;)m[M]=i[M];return m}function ci(i,m,M,D){var H=!M;M||(M={});for(var U=-1,Q=m.length;++U<Q;){var ee=m[U],ie=D?D(M[ee],i[ee],ee,M,i):t;ie===t&&(ie=i[ee]),H?_i(M,ee,ie):Sa(M,ee,ie)}return M}function gE(i,m){return ci(i,Id(i),m)}function mE(i,m){return ci(i,_v(i),m)}function wc(i,m){return function(M,D){var H=tt(M)?od:PT,U=m?m():{};return H(M,i,Ue(D,2),U)}}function vs(i){return ft(function(m,M){var D=-1,H=M.length,U=H>1?M[H-1]:t,Q=H>2?M[2]:t;for(U=i.length>3&&typeof U=="function"?(H--,U):t,Q&&nr(M[0],M[1],Q)&&(U=H<3?t:U,H=1),m=et(m);++D<H;){var ee=M[D];ee&&i(m,ee,D,U)}return m})}function uv(i,m){return function(M,D){if(M==null)return M;if(!dr(M))return i(M,D);for(var H=M.length,U=m?H:-1,Q=et(M);(m?U--:++U<H)&&D(Q[U],U,Q)!==!1;);return M}}function hv(i){return function(m,M,D){for(var H=-1,U=et(m),Q=D(m),ee=Q.length;ee--;){var ie=Q[i?ee:++H];if(M(U[ie],ie,U)===!1)break}return m}}function yE(i,m,M){var D=m&y,H=Ta(i);function U(){var Q=this&&this!==Ln&&this instanceof U?H:i;return Q.apply(D?M:this,arguments)}return U}function dv(i){return function(m){m=Et(m);var M=te(m)?Ke(m):t,D=M?M[0]:m.charAt(0),H=M?Xi(M,1).join(""):m.slice(1);return D[i]()+H}}function bs(i){return function(m){return Lr(ub(cb(m).replace(ca,"")),i,"")}}function Ta(i){return function(){var m=arguments;switch(m.length){case 0:return new i;case 1:return new i(m[0]);case 2:return new i(m[0],m[1]);case 3:return new i(m[0],m[1],m[2]);case 4:return new i(m[0],m[1],m[2],m[3]);case 5:return new i(m[0],m[1],m[2],m[3],m[4]);case 6:return new i(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new i(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var M=ys(i.prototype),D=i.apply(M,m);return sn(D)?D:M}}function vE(i,m,M){var D=Ta(i);function H(){for(var U=arguments.length,Q=se(U),ee=U,ie=ws(H);ee--;)Q[ee]=arguments[ee];var fe=U<3&&Q[0]!==ie&&Q[U-1]!==ie?[]:$e(Q,ie);if(U-=fe.length,U<M)return yv(i,m,xc,H.placeholder,t,Q,fe,t,t,M-U);var ge=this&&this!==Ln&&this instanceof H?D:i;return Zt(ge,this,Q)}return H}function fv(i){return function(m,M,D){var H=et(m);if(!dr(m)){var U=Ue(M,3);m=Hn(m),M=function(ee){return U(H[ee],ee,H)}}var Q=i(m,M,D);return Q>-1?H[U?m[Q]:Q]:t}}function pv(i){return Si(function(m){var M=m.length,D=M,H=Rr.prototype.thru;for(i&&m.reverse();D--;){var U=m[D];if(typeof U!="function")throw new In(p);if(H&&!Q&&$c(U)=="wrapper")var Q=new Rr([],!0)}for(D=Q?D:M;++D<M;){U=m[D];var ee=$c(U),ie=ee=="wrapper"?Ld(U):t;ie&&Dd(ie[0])&&ie[1]==(A|E|k|L)&&!ie[4].length&&ie[9]==1?Q=Q[$c(ie[0])].apply(Q,ie[3]):Q=U.length==1&&Dd(U)?Q[ee]():Q.thru(U)}return function(){var fe=arguments,ge=fe[0];if(Q&&fe.length==1&&tt(ge))return Q.plant(ge).value();for(var ye=0,Te=M?m[ye].apply(this,fe):ge;++ye<M;)Te=m[ye].call(this,Te);return Te}})}function xc(i,m,M,D,H,U,Q,ee,ie,fe){var ge=m&A,ye=m&y,Te=m&b,Fe=m&(E|C),qe=m&I,ct=Te?t:Ta(i);function Ge(){for(var bt=arguments.length,_t=se(bt),kr=bt;kr--;)_t[kr]=arguments[kr];if(Fe)var rr=ws(Ge),Sr=va(_t,rr);if(D&&(_t=lv(_t,D,H,Fe)),U&&(_t=cv(_t,U,Q,Fe)),bt-=Sr,Fe&&bt<fe){var mn=$e(_t,rr);return yv(i,m,xc,Ge.placeholder,M,_t,mn,ee,ie,fe-bt)}var qr=ye?M:this,Ai=Te?qr[i]:i;return bt=_t.length,ee?_t=PE(_t,ee):qe&&bt>1&&_t.reverse(),ge&&ie<bt&&(_t.length=ie),this&&this!==Ln&&this instanceof Ge&&(Ai=ct||Ta(Ai)),Ai.apply(qr,_t)}return Ge}function gv(i,m){return function(M,D){return qT(M,i,m(D),{})}}function _c(i,m){return function(M,D){var H;if(M===t&&D===t)return m;if(M!==t&&(H=M),D!==t){if(H===t)return D;typeof M=="string"||typeof D=="string"?(M=xr(M),D=xr(D)):(M=ev(M),D=ev(D)),H=i(M,D)}return H}}function Md(i){return Si(function(m){return m=Vt(m,Kn(Ue())),ft(function(M){var D=this;return i(m,function(H){return Zt(H,D,M)})})})}function kc(i,m){m=m===t?" ":xr(m);var M=m.length;if(M<2)return M?wd(m,i):m;var D=wd(m,cc(i/st(m)));return te(m)?Xi(Ke(D),0,i).join(""):D.slice(0,i)}function bE(i,m,M,D){var H=m&y,U=Ta(i);function Q(){for(var ee=-1,ie=arguments.length,fe=-1,ge=D.length,ye=se(ge+ie),Te=this&&this!==Ln&&this instanceof Q?U:i;++fe<ge;)ye[fe]=D[fe];for(;ie--;)ye[fe++]=arguments[++ee];return Zt(Te,H?M:this,ye)}return Q}function mv(i){return function(m,M,D){return D&&typeof D!="number"&&nr(m,M,D)&&(M=D=t),m=Mi(m),M===t?(M=m,m=0):M=Mi(M),D=D===t?m<M?1:-1:Mi(D),iE(m,M,D,i)}}function Sc(i){return function(m,M){return typeof m=="string"&&typeof M=="string"||(m=Nr(m),M=Nr(M)),i(m,M)}}function yv(i,m,M,D,H,U,Q,ee,ie,fe){var ge=m&E,ye=ge?Q:t,Te=ge?t:Q,Fe=ge?U:t,qe=ge?t:U;m|=ge?k:w,m&=~(ge?w:k),m&x||(m&=-4);var ct=[i,m,H,Fe,ye,qe,Te,ee,ie,fe],Ge=M.apply(t,ct);return Dd(i)&&Tv(Ge,ct),Ge.placeholder=D,Ev(Ge,i,m)}function Ad(i){var m=Tt[i];return function(M,D){if(M=Nr(M),D=D==null?0:Qn(at(D),292),D&&E0(M)){var H=(Et(M)+"e").split("e"),U=m(H[0]+"e"+(+H[1]+D));return H=(Et(U)+"e").split("e"),+(H[0]+"e"+(+H[1]-D))}return m(M)}}var wE=gs&&1/Ae(new gs([,-0]))[1]==F?function(i){return new gs(i)}:Qd;function vv(i){return function(m){var M=Zn(m);return M==gt?be(m):M==ln?Le(m):Jl(m,i(m))}}function ki(i,m,M,D,H,U,Q,ee){var ie=m&b;if(!ie&&typeof i!="function")throw new In(p);var fe=D?D.length:0;if(fe||(m&=-97,D=H=t),Q=Q===t?Q:On(at(Q),0),ee=ee===t?ee:at(ee),fe-=H?H.length:0,m&w){var ge=D,ye=H;D=H=t}var Te=ie?t:Ld(i),Fe=[i,m,M,D,H,ge,ye,U,Q,ee];if(Te&&DE(Fe,Te),i=Fe[0],m=Fe[1],M=Fe[2],D=Fe[3],H=Fe[4],ee=Fe[9]=Fe[9]===t?ie?0:i.length:On(Fe[9]-fe,0),!ee&&m&(E|C)&&(m&=-25),!m||m==y)var qe=yE(i,m,M);else m==E||m==C?qe=vE(i,m,ee):(m==k||m==(y|k))&&!H.length?qe=bE(i,m,M,D):qe=xc.apply(t,Fe);var ct=Te?J0:Tv;return Ev(ct(qe,Fe),i,m)}function bv(i,m,M,D){return i===t||Vr(i,ps[M])&&!It.call(D,M)?m:i}function wv(i,m,M,D,H,U){return sn(i)&&sn(m)&&(U.set(m,i),yc(i,m,t,wv,U),U.delete(m)),i}function xE(i){return Ra(i)?t:i}function xv(i,m,M,D,H,U){var Q=M&o,ee=i.length,ie=m.length;if(ee!=ie&&!(Q&&ie>ee))return!1;var fe=U.get(i),ge=U.get(m);if(fe&&ge)return fe==m&&ge==i;var ye=-1,Te=!0,Fe=M&u?new Eo:t;for(U.set(i,m),U.set(m,i);++ye<ee;){var qe=i[ye],ct=m[ye];if(D)var Ge=Q?D(ct,qe,ye,m,i,U):D(qe,ct,ye,i,m,U);if(Ge!==t){if(Ge)continue;Te=!1;break}if(Fe){if(!hs(m,function(bt,_t){if(!Wr(Fe,_t)&&(qe===bt||H(qe,bt,M,D,U)))return Fe.push(_t)})){Te=!1;break}}else if(!(qe===ct||H(qe,ct,M,D,U))){Te=!1;break}}return U.delete(i),U.delete(m),Te}function _E(i,m,M,D,H,U,Q){switch(M){case Ie:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case Ee:return!(i.byteLength!=m.byteLength||!U(new oc(i),new oc(m)));case me:case ve:case vt:return Vr(+i,+m);case Ce:return i.name==m.name&&i.message==m.message;case An:case Be:return i==m+"";case gt:var ee=be;case ln:var ie=D&o;if(ee||(ee=Ae),i.size!=m.size&&!ie)return!1;var fe=Q.get(i);if(fe)return fe==m;D|=u,Q.set(i,m);var ge=xv(ee(i),ee(m),D,H,U,Q);return Q.delete(i),ge;case We:if(ka)return ka.call(i)==ka.call(m)}return!1}function kE(i,m,M,D,H,U){var Q=M&o,ee=Td(i),ie=ee.length,fe=Td(m),ge=fe.length;if(ie!=ge&&!Q)return!1;for(var ye=ie;ye--;){var Te=ee[ye];if(!(Q?Te in m:It.call(m,Te)))return!1}var Fe=U.get(i),qe=U.get(m);if(Fe&&qe)return Fe==m&&qe==i;var ct=!0;U.set(i,m),U.set(m,i);for(var Ge=Q;++ye<ie;){Te=ee[ye];var bt=i[Te],_t=m[Te];if(D)var kr=Q?D(_t,bt,Te,m,i,U):D(bt,_t,Te,i,m,U);if(!(kr===t?bt===_t||H(bt,_t,M,D,U):kr)){ct=!1;break}Ge||(Ge=Te=="constructor")}if(ct&&!Ge){var rr=i.constructor,Sr=m.constructor;rr!=Sr&&"constructor"in i&&"constructor"in m&&!(typeof rr=="function"&&rr instanceof rr&&typeof Sr=="function"&&Sr instanceof Sr)&&(ct=!1)}return U.delete(i),U.delete(m),ct}function Si(i){return Fd(Mv(i,t,Nv),i+"")}function Td(i){return j0(i,Hn,Id)}function Ed(i){return j0(i,fr,_v)}var Ld=hc?function(i){return hc.get(i)}:Qd;function $c(i){for(var m=i.name+"",M=ms[m],D=It.call(ms,m)?M.length:0;D--;){var H=M[D],U=H.func;if(U==null||U==i)return H.name}return m}function ws(i){var m=It.call(z,"placeholder")?z:i;return m.placeholder}function Ue(){var i=z.iteratee||Yd;return i=i===Yd?U0:i,arguments.length?i(arguments[0],arguments[1]):i}function Cc(i,m){var M=i.__data__;return LE(m)?M[typeof m=="string"?"string":"hash"]:M.map}function Rd(i){for(var m=Hn(i),M=m.length;M--;){var D=m[M],H=i[D];m[M]=[D,H,$v(H)]}return m}function Io(i,m){var M=K(i,m);return W0(M)?M:t}function SE(i){var m=It.call(i,Ao),M=i[Ao];try{i[Ao]=t;var D=!0}catch{}var H=rc.call(i);return D&&(m?i[Ao]=M:delete i[Ao]),H}var Id=sd?function(i){return i==null?[]:(i=et(i),cr(sd(i),function(m){return A0.call(i,m)}))}:Zd,_v=sd?function(i){for(var m=[];i;)Yn(m,Id(i)),i=sc(i);return m}:Zd,Zn=tr;(ad&&Zn(new ad(new ArrayBuffer(1)))!=Ie||wa&&Zn(new wa)!=gt||ld&&Zn(ld.resolve())!=nn||gs&&Zn(new gs)!=ln||xa&&Zn(new xa)!=Ve)&&(Zn=function(i){var m=tr(i),M=m==Ft?i.constructor:t,D=M?Oo(M):"";if(D)switch(D){case sT:return Ie;case aT:return gt;case lT:return nn;case cT:return ln;case uT:return Ve}return m});function $E(i,m,M){for(var D=-1,H=M.length;++D<H;){var U=M[D],Q=U.size;switch(U.type){case"drop":i+=Q;break;case"dropRight":m-=Q;break;case"take":m=Qn(m,i+Q);break;case"takeRight":i=On(i,m-Q);break}}return{start:i,end:m}}function CE(i){var m=i.match(Ol);return m?m[1].split(Dl):[]}function kv(i,m,M){m=Ji(m,i);for(var D=-1,H=m.length,U=!1;++D<H;){var Q=ui(m[D]);if(!(U=i!=null&&M(i,Q)))break;i=i[Q]}return U||++D!=H?U:(H=i==null?0:i.length,!!H&&Ic(H)&&$i(Q,H)&&(tt(i)||Do(i)))}function ME(i){var m=i.length,M=new i.constructor(m);return m&&typeof i[0]=="string"&&It.call(i,"index")&&(M.index=i.index,M.input=i.input),M}function Sv(i){return typeof i.constructor=="function"&&!Ea(i)?ys(sc(i)):{}}function AE(i,m,M){var D=i.constructor;switch(m){case Ee:return Cd(i);case me:case ve:return new D(+i);case Ie:return hE(i,M);case Ye:case Qe:case mt:case yt:case ht:case dt:case ot:case Yt:case Vn:return sv(i,M);case gt:return new D;case vt:case Be:return new D(i);case An:return dE(i);case ln:return new D;case We:return fE(i)}}function TE(i,m){var M=m.length;if(!M)return i;var D=M-1;return m[D]=(M>1?"& ":"")+m[D],m=m.join(M>2?", ":" "),i.replace(Fi,`{
1388
+ /* [wrapped with `+m+`] */
1389
+ `)}function EE(i){return tt(i)||Do(i)||!!(T0&&i&&i[T0])}function $i(i,m){var M=typeof i;return m=m??B,!!m&&(M=="number"||M!="symbol"&&_n.test(i))&&i>-1&&i%1==0&&i<m}function nr(i,m,M){if(!sn(M))return!1;var D=typeof m;return(D=="number"?dr(M)&&$i(m,M.length):D=="string"&&m in M)?Vr(M[m],i):!1}function Od(i,m){if(tt(i))return!1;var M=typeof i;return M=="number"||M=="symbol"||M=="boolean"||i==null||_r(i)?!0:Fn.test(i)||!pi.test(i)||m!=null&&i in et(m)}function LE(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}function Dd(i){var m=$c(i),M=z[m];if(typeof M!="function"||!(m in xt.prototype))return!1;if(i===M)return!0;var D=Ld(M);return!!D&&i===D[0]}function RE(i){return!!$0&&$0 in i}var IE=tc?Ci:Jd;function Ea(i){var m=i&&i.constructor,M=typeof m=="function"&&m.prototype||ps;return i===M}function $v(i){return i===i&&!sn(i)}function Cv(i,m){return function(M){return M==null?!1:M[i]===m&&(m!==t||i in et(M))}}function OE(i){var m=Lc(i,function(D){return M.size===g&&M.clear(),D}),M=m.cache;return m}function DE(i,m){var M=i[1],D=m[1],H=M|D,U=H<(y|b|A),Q=D==A&&M==E||D==A&&M==L&&i[7].length<=m[8]||D==(A|L)&&m[7].length<=m[8]&&M==E;if(!(U||Q))return i;D&y&&(i[2]=m[2],H|=M&y?0:x);var ee=m[3];if(ee){var ie=i[3];i[3]=ie?lv(ie,ee,m[4]):ee,i[4]=ie?$e(i[3],s):m[4]}return ee=m[5],ee&&(ie=i[5],i[5]=ie?cv(ie,ee,m[6]):ee,i[6]=ie?$e(i[5],s):m[6]),ee=m[7],ee&&(i[7]=ee),D&A&&(i[8]=i[8]==null?m[8]:Qn(i[8],m[8])),i[9]==null&&(i[9]=m[9]),i[0]=m[0],i[1]=H,i}function NE(i){var m=[];if(i!=null)for(var M in et(i))m.push(M);return m}function FE(i){return rc.call(i)}function Mv(i,m,M){return m=On(m===t?i.length-1:m,0),function(){for(var D=arguments,H=-1,U=On(D.length-m,0),Q=se(U);++H<U;)Q[H]=D[m+H];H=-1;for(var ee=se(m+1);++H<m;)ee[H]=D[H];return ee[m]=M(Q),Zt(i,this,ee)}}function Av(i,m){return m.length<2?i:Ro(i,Or(m,0,-1))}function PE(i,m){for(var M=i.length,D=Qn(m.length,M),H=hr(i);D--;){var U=m[D];i[D]=$i(U,M)?H[U]:t}return i}function Nd(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Tv=Lv(J0),La=XA||function(i,m){return Ln.setTimeout(i,m)},Fd=Lv(aE);function Ev(i,m,M){var D=m+"";return Fd(i,TE(D,HE(CE(D),M)))}function Lv(i){var m=0,M=0;return function(){var D=rT(),H=_-(D-M);if(M=D,H>0){if(++m>=S)return arguments[0]}else m=0;return i.apply(t,arguments)}}function Mc(i,m){var M=-1,D=i.length,H=D-1;for(m=m===t?D:m;++M<m;){var U=bd(M,H),Q=i[U];i[U]=i[M],i[M]=Q}return i.length=m,i}var Rv=OE(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(ti,function(M,D,H,U){m.push(H?U.replace(gi,"$1"):D||M)}),m});function ui(i){if(typeof i=="string"||_r(i))return i;var m=i+"";return m=="0"&&1/i==-1/0?"-0":m}function Oo(i){if(i!=null){try{return nc.call(i)}catch{}try{return i+""}catch{}}return""}function HE(i,m){return Xn(Z,function(M){var D="_."+M[0];m&M[1]&&!us(i,D)&&i.push(D)}),i.sort()}function Iv(i){if(i instanceof xt)return i.clone();var m=new Rr(i.__wrapped__,i.__chain__);return m.__actions__=hr(i.__actions__),m.__index__=i.__index__,m.__values__=i.__values__,m}function BE(i,m,M){(M?nr(i,m,M):m===t)?m=1:m=On(at(m),0);var D=i==null?0:i.length;if(!D||m<1)return[];for(var H=0,U=0,Q=se(cc(D/m));H<D;)Q[U++]=Or(i,H,H+=m);return Q}function jE(i){for(var m=-1,M=i==null?0:i.length,D=0,H=[];++m<M;){var U=i[m];U&&(H[D++]=U)}return H}function zE(){var i=arguments.length;if(!i)return[];for(var m=se(i-1),M=arguments[0],D=i;D--;)m[D-1]=arguments[D];return Yn(tt(M)?hr(M):[M],Bn(m,1))}var WE=ft(function(i,m){return gn(i)?$a(i,Bn(m,1,gn,!0)):[]}),UE=ft(function(i,m){var M=Dr(m);return gn(M)&&(M=t),gn(i)?$a(i,Bn(m,1,gn,!0),Ue(M,2)):[]}),VE=ft(function(i,m){var M=Dr(m);return gn(M)&&(M=t),gn(i)?$a(i,Bn(m,1,gn,!0),t,M):[]});function qE(i,m,M){var D=i==null?0:i.length;return D?(m=M||m===t?1:at(m),Or(i,m<0?0:m,D)):[]}function GE(i,m,M){var D=i==null?0:i.length;return D?(m=M||m===t?1:at(m),m=D-m,Or(i,0,m<0?0:m)):[]}function YE(i,m){return i&&i.length?bc(i,Ue(m,3),!0,!0):[]}function KE(i,m){return i&&i.length?bc(i,Ue(m,3),!0):[]}function QE(i,m,M,D){var H=i==null?0:i.length;return H?(M&&typeof M!="number"&&nr(i,m,M)&&(M=0,D=H),zT(i,m,M,D)):[]}function Ov(i,m,M){var D=i==null?0:i.length;if(!D)return-1;var H=M==null?0:at(M);return H<0&&(H=On(D+H,0)),Co(i,Ue(m,3),H)}function Dv(i,m,M){var D=i==null?0:i.length;if(!D)return-1;var H=D-1;return M!==t&&(H=at(M),H=M<0?On(D+H,0):Qn(H,D-1)),Co(i,Ue(m,3),H,!0)}function Nv(i){var m=i==null?0:i.length;return m?Bn(i,1):[]}function ZE(i){var m=i==null?0:i.length;return m?Bn(i,F):[]}function JE(i,m){var M=i==null?0:i.length;return M?(m=m===t?1:at(m),Bn(i,m)):[]}function XE(i){for(var m=-1,M=i==null?0:i.length,D={};++m<M;){var H=i[m];D[H[0]]=H[1]}return D}function Fv(i){return i&&i.length?i[0]:t}function eL(i,m,M){var D=i==null?0:i.length;if(!D)return-1;var H=M==null?0:at(M);return H<0&&(H=On(D+H,0)),bi(i,m,H)}function tL(i){var m=i==null?0:i.length;return m?Or(i,0,-1):[]}var nL=ft(function(i){var m=Vt(i,Sd);return m.length&&m[0]===i[0]?pd(m):[]}),rL=ft(function(i){var m=Dr(i),M=Vt(i,Sd);return m===Dr(M)?m=t:M.pop(),M.length&&M[0]===i[0]?pd(M,Ue(m,2)):[]}),iL=ft(function(i){var m=Dr(i),M=Vt(i,Sd);return m=typeof m=="function"?m:t,m&&M.pop(),M.length&&M[0]===i[0]?pd(M,t,m):[]});function oL(i,m){return i==null?"":tT.call(i,m)}function Dr(i){var m=i==null?0:i.length;return m?i[m-1]:t}function sL(i,m,M){var D=i==null?0:i.length;if(!D)return-1;var H=D;return M!==t&&(H=at(M),H=H<0?On(D+H,0):Qn(H,D-1)),m===m?Rt(i,m,H):Co(i,pa,H,!0)}function aL(i,m){return i&&i.length?Y0(i,at(m)):t}var lL=ft(Pv);function Pv(i,m){return i&&i.length&&m&&m.length?vd(i,m):i}function cL(i,m,M){return i&&i.length&&m&&m.length?vd(i,m,Ue(M,2)):i}function uL(i,m,M){return i&&i.length&&m&&m.length?vd(i,m,t,M):i}var hL=Si(function(i,m){var M=i==null?0:i.length,D=ud(i,m);return Z0(i,Vt(m,function(H){return $i(H,M)?+H:H}).sort(av)),D});function dL(i,m){var M=[];if(!(i&&i.length))return M;var D=-1,H=[],U=i.length;for(m=Ue(m,3);++D<U;){var Q=i[D];m(Q,D,i)&&(M.push(Q),H.push(D))}return Z0(i,H),M}function Pd(i){return i==null?i:oT.call(i)}function fL(i,m,M){var D=i==null?0:i.length;return D?(M&&typeof M!="number"&&nr(i,m,M)?(m=0,M=D):(m=m==null?0:at(m),M=M===t?D:at(M)),Or(i,m,M)):[]}function pL(i,m){return vc(i,m)}function gL(i,m,M){return xd(i,m,Ue(M,2))}function mL(i,m){var M=i==null?0:i.length;if(M){var D=vc(i,m);if(D<M&&Vr(i[D],m))return D}return-1}function yL(i,m){return vc(i,m,!0)}function vL(i,m,M){return xd(i,m,Ue(M,2),!0)}function bL(i,m){var M=i==null?0:i.length;if(M){var D=vc(i,m,!0)-1;if(Vr(i[D],m))return D}return-1}function wL(i){return i&&i.length?X0(i):[]}function xL(i,m){return i&&i.length?X0(i,Ue(m,2)):[]}function _L(i){var m=i==null?0:i.length;return m?Or(i,1,m):[]}function kL(i,m,M){return i&&i.length?(m=M||m===t?1:at(m),Or(i,0,m<0?0:m)):[]}function SL(i,m,M){var D=i==null?0:i.length;return D?(m=M||m===t?1:at(m),m=D-m,Or(i,m<0?0:m,D)):[]}function $L(i,m){return i&&i.length?bc(i,Ue(m,3),!1,!0):[]}function CL(i,m){return i&&i.length?bc(i,Ue(m,3)):[]}var ML=ft(function(i){return Zi(Bn(i,1,gn,!0))}),AL=ft(function(i){var m=Dr(i);return gn(m)&&(m=t),Zi(Bn(i,1,gn,!0),Ue(m,2))}),TL=ft(function(i){var m=Dr(i);return m=typeof m=="function"?m:t,Zi(Bn(i,1,gn,!0),t,m)});function EL(i){return i&&i.length?Zi(i):[]}function LL(i,m){return i&&i.length?Zi(i,Ue(m,2)):[]}function RL(i,m){return m=typeof m=="function"?m:t,i&&i.length?Zi(i,t,m):[]}function Hd(i){if(!(i&&i.length))return[];var m=0;return i=cr(i,function(M){if(gn(M))return m=On(M.length,m),!0}),un(m,function(M){return Vt(i,ma(M))})}function Hv(i,m){if(!(i&&i.length))return[];var M=Hd(i);return m==null?M:Vt(M,function(D){return Zt(m,t,D)})}var IL=ft(function(i,m){return gn(i)?$a(i,m):[]}),OL=ft(function(i){return kd(cr(i,gn))}),DL=ft(function(i){var m=Dr(i);return gn(m)&&(m=t),kd(cr(i,gn),Ue(m,2))}),NL=ft(function(i){var m=Dr(i);return m=typeof m=="function"?m:t,kd(cr(i,gn),t,m)}),FL=ft(Hd);function PL(i,m){return rv(i||[],m||[],Sa)}function HL(i,m){return rv(i||[],m||[],Aa)}var BL=ft(function(i){var m=i.length,M=m>1?i[m-1]:t;return M=typeof M=="function"?(i.pop(),M):t,Hv(i,M)});function Bv(i){var m=z(i);return m.__chain__=!0,m}function jL(i,m){return m(i),i}function Ac(i,m){return m(i)}var zL=Si(function(i){var m=i.length,M=m?i[0]:0,D=this.__wrapped__,H=function(U){return ud(U,i)};return m>1||this.__actions__.length||!(D instanceof xt)||!$i(M)?this.thru(H):(D=D.slice(M,+M+(m?1:0)),D.__actions__.push({func:Ac,args:[H],thisArg:t}),new Rr(D,this.__chain__).thru(function(U){return m&&!U.length&&U.push(t),U}))});function WL(){return Bv(this)}function UL(){return new Rr(this.value(),this.__chain__)}function VL(){this.__values__===t&&(this.__values__=eb(this.value()));var i=this.__index__>=this.__values__.length,m=i?t:this.__values__[this.__index__++];return{done:i,value:m}}function qL(){return this}function GL(i){for(var m,M=this;M instanceof fc;){var D=Iv(M);D.__index__=0,D.__values__=t,m?H.__wrapped__=D:m=D;var H=D;M=M.__wrapped__}return H.__wrapped__=i,m}function YL(){var i=this.__wrapped__;if(i instanceof xt){var m=i;return this.__actions__.length&&(m=new xt(this)),m=m.reverse(),m.__actions__.push({func:Ac,args:[Pd],thisArg:t}),new Rr(m,this.__chain__)}return this.thru(Pd)}function KL(){return nv(this.__wrapped__,this.__actions__)}var QL=wc(function(i,m,M){It.call(i,M)?++i[M]:_i(i,M,1)});function ZL(i,m,M){var D=tt(i)?qi:jT;return M&&nr(i,m,M)&&(m=t),D(i,Ue(m,3))}function JL(i,m){var M=tt(i)?cr:H0;return M(i,Ue(m,3))}var XL=fv(Ov),eR=fv(Dv);function tR(i,m){return Bn(Tc(i,m),1)}function nR(i,m){return Bn(Tc(i,m),F)}function rR(i,m,M){return M=M===t?1:at(M),Bn(Tc(i,m),M)}function jv(i,m){var M=tt(i)?Xn:Qi;return M(i,Ue(m,3))}function zv(i,m){var M=tt(i)?Ql:P0;return M(i,Ue(m,3))}var iR=wc(function(i,m,M){It.call(i,M)?i[M].push(m):_i(i,M,[m])});function oR(i,m,M,D){i=dr(i)?i:_s(i),M=M&&!D?at(M):0;var H=i.length;return M<0&&(M=On(H+M,0)),Oc(i)?M<=H&&i.indexOf(m,M)>-1:!!H&&bi(i,m,M)>-1}var sR=ft(function(i,m,M){var D=-1,H=typeof m=="function",U=dr(i)?se(i.length):[];return Qi(i,function(Q){U[++D]=H?Zt(m,Q,M):Ca(Q,m,M)}),U}),aR=wc(function(i,m,M){_i(i,M,m)});function Tc(i,m){var M=tt(i)?Vt:V0;return M(i,Ue(m,3))}function lR(i,m,M,D){return i==null?[]:(tt(m)||(m=m==null?[]:[m]),M=D?t:M,tt(M)||(M=M==null?[]:[M]),K0(i,m,M))}var cR=wc(function(i,m,M){i[M?0:1].push(m)},function(){return[[],[]]});function uR(i,m,M){var D=tt(i)?Lr:ya,H=arguments.length<3;return D(i,Ue(m,4),M,H,Qi)}function hR(i,m,M){var D=tt(i)?$o:ya,H=arguments.length<3;return D(i,Ue(m,4),M,H,P0)}function dR(i,m){var M=tt(i)?cr:H0;return M(i,Rc(Ue(m,3)))}function fR(i){var m=tt(i)?O0:oE;return m(i)}function pR(i,m,M){(M?nr(i,m,M):m===t)?m=1:m=at(m);var D=tt(i)?NT:sE;return D(i,m)}function gR(i){var m=tt(i)?FT:lE;return m(i)}function mR(i){if(i==null)return 0;if(dr(i))return Oc(i)?st(i):i.length;var m=Zn(i);return m==gt||m==ln?i.size:md(i).length}function yR(i,m,M){var D=tt(i)?hs:cE;return M&&nr(i,m,M)&&(m=t),D(i,Ue(m,3))}var vR=ft(function(i,m){if(i==null)return[];var M=m.length;return M>1&&nr(i,m[0],m[1])?m=[]:M>2&&nr(m[0],m[1],m[2])&&(m=[m[0]]),K0(i,Bn(m,1),[])}),Ec=JA||function(){return Ln.Date.now()};function bR(i,m){if(typeof m!="function")throw new In(p);return i=at(i),function(){if(--i<1)return m.apply(this,arguments)}}function Wv(i,m,M){return m=M?t:m,m=i&&m==null?i.length:m,ki(i,A,t,t,t,t,m)}function Uv(i,m){var M;if(typeof m!="function")throw new In(p);return i=at(i),function(){return--i>0&&(M=m.apply(this,arguments)),i<=1&&(m=t),M}}var Bd=ft(function(i,m,M){var D=y;if(M.length){var H=$e(M,ws(Bd));D|=k}return ki(i,D,m,M,H)}),Vv=ft(function(i,m,M){var D=y|b;if(M.length){var H=$e(M,ws(Vv));D|=k}return ki(m,D,i,M,H)});function qv(i,m,M){m=M?t:m;var D=ki(i,E,t,t,t,t,t,m);return D.placeholder=qv.placeholder,D}function Gv(i,m,M){m=M?t:m;var D=ki(i,C,t,t,t,t,t,m);return D.placeholder=Gv.placeholder,D}function Yv(i,m,M){var D,H,U,Q,ee,ie,fe=0,ge=!1,ye=!1,Te=!0;if(typeof i!="function")throw new In(p);m=Nr(m)||0,sn(M)&&(ge=!!M.leading,ye="maxWait"in M,U=ye?On(Nr(M.maxWait)||0,m):U,Te="trailing"in M?!!M.trailing:Te);function Fe(mn){var qr=D,Ai=H;return D=H=t,fe=mn,Q=i.apply(Ai,qr),Q}function qe(mn){return fe=mn,ee=La(bt,m),ge?Fe(mn):Q}function ct(mn){var qr=mn-ie,Ai=mn-fe,fb=m-qr;return ye?Qn(fb,U-Ai):fb}function Ge(mn){var qr=mn-ie,Ai=mn-fe;return ie===t||qr>=m||qr<0||ye&&Ai>=U}function bt(){var mn=Ec();if(Ge(mn))return _t(mn);ee=La(bt,ct(mn))}function _t(mn){return ee=t,Te&&D?Fe(mn):(D=H=t,Q)}function kr(){ee!==t&&iv(ee),fe=0,D=ie=H=ee=t}function rr(){return ee===t?Q:_t(Ec())}function Sr(){var mn=Ec(),qr=Ge(mn);if(D=arguments,H=this,ie=mn,qr){if(ee===t)return qe(ie);if(ye)return iv(ee),ee=La(bt,m),Fe(ie)}return ee===t&&(ee=La(bt,m)),Q}return Sr.cancel=kr,Sr.flush=rr,Sr}var wR=ft(function(i,m){return F0(i,1,m)}),xR=ft(function(i,m,M){return F0(i,Nr(m)||0,M)});function _R(i){return ki(i,I)}function Lc(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new In(p);var M=function(){var D=arguments,H=m?m.apply(this,D):D[0],U=M.cache;if(U.has(H))return U.get(H);var Q=i.apply(this,D);return M.cache=U.set(H,Q)||U,Q};return M.cache=new(Lc.Cache||xi),M}Lc.Cache=xi;function Rc(i){if(typeof i!="function")throw new In(p);return function(){var m=arguments;switch(m.length){case 0:return!i.call(this);case 1:return!i.call(this,m[0]);case 2:return!i.call(this,m[0],m[1]);case 3:return!i.call(this,m[0],m[1],m[2])}return!i.apply(this,m)}}function kR(i){return Uv(2,i)}var SR=uE(function(i,m){m=m.length==1&&tt(m[0])?Vt(m[0],Kn(Ue())):Vt(Bn(m,1),Kn(Ue()));var M=m.length;return ft(function(D){for(var H=-1,U=Qn(D.length,M);++H<U;)D[H]=m[H].call(this,D[H]);return Zt(i,this,D)})}),jd=ft(function(i,m){var M=$e(m,ws(jd));return ki(i,k,t,m,M)}),Kv=ft(function(i,m){var M=$e(m,ws(Kv));return ki(i,w,t,m,M)}),$R=Si(function(i,m){return ki(i,L,t,t,t,m)});function CR(i,m){if(typeof i!="function")throw new In(p);return m=m===t?m:at(m),ft(i,m)}function MR(i,m){if(typeof i!="function")throw new In(p);return m=m==null?0:On(at(m),0),ft(function(M){var D=M[m],H=Xi(M,0,m);return D&&Yn(H,D),Zt(i,this,H)})}function AR(i,m,M){var D=!0,H=!0;if(typeof i!="function")throw new In(p);return sn(M)&&(D="leading"in M?!!M.leading:D,H="trailing"in M?!!M.trailing:H),Yv(i,m,{leading:D,maxWait:m,trailing:H})}function TR(i){return Wv(i,1)}function ER(i,m){return jd($d(m),i)}function LR(){if(!arguments.length)return[];var i=arguments[0];return tt(i)?i:[i]}function RR(i){return Ir(i,c)}function IR(i,m){return m=typeof m=="function"?m:t,Ir(i,c,m)}function OR(i){return Ir(i,l|c)}function DR(i,m){return m=typeof m=="function"?m:t,Ir(i,l|c,m)}function NR(i,m){return m==null||N0(i,m,Hn(m))}function Vr(i,m){return i===m||i!==i&&m!==m}var FR=Sc(fd),PR=Sc(function(i,m){return i>=m}),Do=z0(function(){return arguments}())?z0:function(i){return hn(i)&&It.call(i,"callee")&&!A0.call(i,"callee")},tt=se.isArray,HR=Yl?Kn(Yl):GT;function dr(i){return i!=null&&Ic(i.length)&&!Ci(i)}function gn(i){return hn(i)&&dr(i)}function BR(i){return i===!0||i===!1||hn(i)&&tr(i)==me}var eo=eT||Jd,jR=Er?Kn(Er):YT;function zR(i){return hn(i)&&i.nodeType===1&&!Ra(i)}function WR(i){if(i==null)return!0;if(dr(i)&&(tt(i)||typeof i=="string"||typeof i.splice=="function"||eo(i)||xs(i)||Do(i)))return!i.length;var m=Zn(i);if(m==gt||m==ln)return!i.size;if(Ea(i))return!md(i).length;for(var M in i)if(It.call(i,M))return!1;return!0}function UR(i,m){return Ma(i,m)}function VR(i,m,M){M=typeof M=="function"?M:t;var D=M?M(i,m):t;return D===t?Ma(i,m,t,M):!!D}function zd(i){if(!hn(i))return!1;var m=tr(i);return m==Ce||m==pe||typeof i.message=="string"&&typeof i.name=="string"&&!Ra(i)}function qR(i){return typeof i=="number"&&E0(i)}function Ci(i){if(!sn(i))return!1;var m=tr(i);return m==lt||m==Wt||m==ae||m==ei}function Qv(i){return typeof i=="number"&&i==at(i)}function Ic(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=B}function sn(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}function hn(i){return i!=null&&typeof i=="object"}var Zv=zr?Kn(zr):QT;function GR(i,m){return i===m||gd(i,m,Rd(m))}function YR(i,m,M){return M=typeof M=="function"?M:t,gd(i,m,Rd(m),M)}function KR(i){return Jv(i)&&i!=+i}function QR(i){if(IE(i))throw new He(h);return W0(i)}function ZR(i){return i===null}function JR(i){return i==null}function Jv(i){return typeof i=="number"||hn(i)&&tr(i)==vt}function Ra(i){if(!hn(i)||tr(i)!=Ft)return!1;var m=sc(i);if(m===null)return!0;var M=It.call(m,"constructor")&&m.constructor;return typeof M=="function"&&M instanceof M&&nc.call(M)==YA}var Wd=ai?Kn(ai):ZT;function XR(i){return Qv(i)&&i>=-9007199254740991&&i<=B}var Xv=vi?Kn(vi):JT;function Oc(i){return typeof i=="string"||!tt(i)&&hn(i)&&tr(i)==Be}function _r(i){return typeof i=="symbol"||hn(i)&&tr(i)==We}var xs=Kl?Kn(Kl):XT;function e2(i){return i===t}function t2(i){return hn(i)&&Zn(i)==Ve}function n2(i){return hn(i)&&tr(i)==ce}var r2=Sc(yd),i2=Sc(function(i,m){return i<=m});function eb(i){if(!i)return[];if(dr(i))return Oc(i)?Ke(i):hr(i);if(ba&&i[ba])return de(i[ba]());var m=Zn(i),M=m==gt?be:m==ln?Ae:_s;return M(i)}function Mi(i){if(!i)return i===0?i:0;if(i=Nr(i),i===F||i===-1/0){var m=i<0?-1:1;return m*W}return i===i?i:0}function at(i){var m=Mi(i),M=m%1;return m===m?M?m-M:m:0}function tb(i){return i?Lo(at(i),0,q):0}function Nr(i){if(typeof i=="number")return i;if(_r(i))return V;if(sn(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=sn(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=rn(i);var M=ri.test(i);return M||xn.test(i)?Pt(i.slice(2),M?2:8):Nl.test(i)?V:+i}function nb(i){return ci(i,fr(i))}function o2(i){return i?Lo(at(i),-9007199254740991,B):i===0?i:0}function Et(i){return i==null?"":xr(i)}var s2=vs(function(i,m){if(Ea(m)||dr(m)){ci(m,Hn(m),i);return}for(var M in m)It.call(m,M)&&Sa(i,M,m[M])}),rb=vs(function(i,m){ci(m,fr(m),i)}),Dc=vs(function(i,m,M,D){ci(m,fr(m),i,D)}),a2=vs(function(i,m,M,D){ci(m,Hn(m),i,D)}),l2=Si(ud);function c2(i,m){var M=ys(i);return m==null?M:D0(M,m)}var u2=ft(function(i,m){i=et(i);var M=-1,D=m.length,H=D>2?m[2]:t;for(H&&nr(m[0],m[1],H)&&(D=1);++M<D;)for(var U=m[M],Q=fr(U),ee=-1,ie=Q.length;++ee<ie;){var fe=Q[ee],ge=i[fe];(ge===t||Vr(ge,ps[fe])&&!It.call(i,fe))&&(i[fe]=U[fe])}return i}),h2=ft(function(i){return i.push(t,wv),Zt(ib,t,i)});function d2(i,m){return fa(i,Ue(m,3),li)}function f2(i,m){return fa(i,Ue(m,3),dd)}function p2(i,m){return i==null?i:hd(i,Ue(m,3),fr)}function g2(i,m){return i==null?i:B0(i,Ue(m,3),fr)}function m2(i,m){return i&&li(i,Ue(m,3))}function y2(i,m){return i&&dd(i,Ue(m,3))}function v2(i){return i==null?[]:mc(i,Hn(i))}function b2(i){return i==null?[]:mc(i,fr(i))}function Ud(i,m,M){var D=i==null?t:Ro(i,m);return D===t?M:D}function w2(i,m){return i!=null&&kv(i,m,WT)}function Vd(i,m){return i!=null&&kv(i,m,UT)}var x2=gv(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=rc.call(m)),i[m]=M},Gd(pr)),_2=gv(function(i,m,M){m!=null&&typeof m.toString!="function"&&(m=rc.call(m)),It.call(i,m)?i[m].push(M):i[m]=[M]},Ue),k2=ft(Ca);function Hn(i){return dr(i)?I0(i):md(i)}function fr(i){return dr(i)?I0(i,!0):eE(i)}function S2(i,m){var M={};return m=Ue(m,3),li(i,function(D,H,U){_i(M,m(D,H,U),D)}),M}function $2(i,m){var M={};return m=Ue(m,3),li(i,function(D,H,U){_i(M,H,m(D,H,U))}),M}var C2=vs(function(i,m,M){yc(i,m,M)}),ib=vs(function(i,m,M,D){yc(i,m,M,D)}),M2=Si(function(i,m){var M={};if(i==null)return M;var D=!1;m=Vt(m,function(U){return U=Ji(U,i),D||(D=U.length>1),U}),ci(i,Ed(i),M),D&&(M=Ir(M,l|a|c,xE));for(var H=m.length;H--;)_d(M,m[H]);return M});function A2(i,m){return ob(i,Rc(Ue(m)))}var T2=Si(function(i,m){return i==null?{}:nE(i,m)});function ob(i,m){if(i==null)return{};var M=Vt(Ed(i),function(D){return[D]});return m=Ue(m),Q0(i,M,function(D,H){return m(D,H[0])})}function E2(i,m,M){m=Ji(m,i);var D=-1,H=m.length;for(H||(H=1,i=t);++D<H;){var U=i==null?t:i[ui(m[D])];U===t&&(D=H,U=M),i=Ci(U)?U.call(i):U}return i}function L2(i,m,M){return i==null?i:Aa(i,m,M)}function R2(i,m,M,D){return D=typeof D=="function"?D:t,i==null?i:Aa(i,m,M,D)}var sb=vv(Hn),ab=vv(fr);function I2(i,m,M){var D=tt(i),H=D||eo(i)||xs(i);if(m=Ue(m,4),M==null){var U=i&&i.constructor;H?M=D?new U:[]:sn(i)?M=Ci(U)?ys(sc(i)):{}:M={}}return(H?Xn:li)(i,function(Q,ee,ie){return m(M,Q,ee,ie)}),M}function O2(i,m){return i==null?!0:_d(i,m)}function D2(i,m,M){return i==null?i:tv(i,m,$d(M))}function N2(i,m,M,D){return D=typeof D=="function"?D:t,i==null?i:tv(i,m,$d(M),D)}function _s(i){return i==null?[]:Mo(i,Hn(i))}function F2(i){return i==null?[]:Mo(i,fr(i))}function P2(i,m,M){return M===t&&(M=m,m=t),M!==t&&(M=Nr(M),M=M===M?M:0),m!==t&&(m=Nr(m),m=m===m?m:0),Lo(Nr(i),m,M)}function H2(i,m,M){return m=Mi(m),M===t?(M=m,m=0):M=Mi(M),i=Nr(i),VT(i,m,M)}function B2(i,m,M){if(M&&typeof M!="boolean"&&nr(i,m,M)&&(m=M=t),M===t&&(typeof m=="boolean"?(M=m,m=t):typeof i=="boolean"&&(M=i,i=t)),i===t&&m===t?(i=0,m=1):(i=Mi(i),m===t?(m=i,i=0):m=Mi(m)),i>m){var D=i;i=m,m=D}if(M||i%1||m%1){var H=L0();return Qn(i+H*(m-i+Sn("1e-"+((H+"").length-1))),m)}return bd(i,m)}var j2=bs(function(i,m,M){return m=m.toLowerCase(),i+(M?lb(m):m)});function lb(i){return qd(Et(i).toLowerCase())}function cb(i){return i=Et(i),i&&i.replace(ts,P).replace(Wi,"")}function z2(i,m,M){i=Et(i),m=xr(m);var D=i.length;M=M===t?D:Lo(at(M),0,D);var H=M;return M-=m.length,M>=0&&i.slice(M,H)==m}function W2(i){return i=Et(i),i&&Qh.test(i)?i.replace(Il,j):i}function U2(i){return i=Et(i),i&&Di.test(i)?i.replace(ni,"\\$&"):i}var V2=bs(function(i,m,M){return i+(M?"-":"")+m.toLowerCase()}),q2=bs(function(i,m,M){return i+(M?" ":"")+m.toLowerCase()}),G2=dv("toLowerCase");function Y2(i,m,M){i=Et(i),m=at(m);var D=m?st(i):0;if(!m||D>=m)return i;var H=(m-D)/2;return kc(uc(H),M)+i+kc(cc(H),M)}function K2(i,m,M){i=Et(i),m=at(m);var D=m?st(i):0;return m&&D<m?i+kc(m-D,M):i}function Q2(i,m,M){i=Et(i),m=at(m);var D=m?st(i):0;return m&&D<m?kc(m-D,M)+i:i}function Z2(i,m,M){return M||m==null?m=0:m&&(m=+m),iT(Et(i).replace(qn,""),m||0)}function J2(i,m,M){return(M?nr(i,m,M):m===t)?m=1:m=at(m),wd(Et(i),m)}function X2(){var i=arguments,m=Et(i[0]);return i.length<3?m:m.replace(i[1],i[2])}var eI=bs(function(i,m,M){return i+(M?"_":"")+m.toLowerCase()});function tI(i,m,M){return M&&typeof M!="number"&&nr(i,m,M)&&(m=M=t),M=M===t?q:M>>>0,M?(i=Et(i),i&&(typeof m=="string"||m!=null&&!Wd(m))&&(m=xr(m),!m&&te(i))?Xi(Ke(i),0,M):i.split(m,M)):[]}var nI=bs(function(i,m,M){return i+(M?" ":"")+qd(m)});function rI(i,m,M){return i=Et(i),M=M==null?0:Lo(at(M),0,i.length),m=xr(m),i.slice(M,M+m.length)==m}function iI(i,m,M){var D=z.templateSettings;M&&nr(i,m,M)&&(m=t),i=Et(i),m=Dc({},m,D,bv);var H=Dc({},m.imports,D.imports,bv),U=Hn(H),Q=Mo(H,U),ee,ie,fe=0,ge=m.interpolate||Gn,ye="__p += '",Te=Rn((m.escape||Gn).source+"|"+ge.source+"|"+(ge===je?td:Gn).source+"|"+(m.evaluate||Gn).source+"|$","g"),Fe="//# sourceURL="+(It.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ql+"]")+`
1390
+ `;i.replace(Te,function(Ge,bt,_t,kr,rr,Sr){return _t||(_t=kr),ye+=i.slice(fe,Sr).replace(bo,Y),bt&&(ee=!0,ye+=`' +
1391
+ __e(`+bt+`) +
1392
+ '`),rr&&(ie=!0,ye+=`';
1393
+ `+rr+`;
1394
+ __p += '`),_t&&(ye+=`' +
1395
+ ((__t = (`+_t+`)) == null ? '' : __t) +
1396
+ '`),fe=Sr+Ge.length,Ge}),ye+=`';
1397
+ `;var qe=It.call(m,"variable")&&m.variable;if(!qe)ye=`with (obj) {
1398
+ `+ye+`
1399
+ }
1400
+ `;else if(ed.test(qe))throw new He(v);ye=(ie?ye.replace(fi,""):ye).replace(ar,"$1").replace(Ys,"$1;"),ye="function("+(qe||"obj")+`) {
1401
+ `+(qe?"":`obj || (obj = {});
1402
+ `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
1403
+ function print() { __p += __j.call(arguments, '') }
1404
+ `:`;
1405
+ `)+ye+`return __p
1406
+ }`;var ct=hb(function(){return Je(U,Fe+"return "+ye).apply(t,Q)});if(ct.source=ye,zd(ct))throw ct;return ct}function oI(i){return Et(i).toLowerCase()}function sI(i){return Et(i).toUpperCase()}function aI(i,m,M){if(i=Et(i),i&&(M||m===t))return rn(i);if(!i||!(m=xr(m)))return i;var D=Ke(i),H=Ke(m),U=Xl(D,H),Q=ec(D,H)+1;return Xi(D,U,Q).join("")}function lI(i,m,M){if(i=Et(i),i&&(M||m===t))return i.slice(0,Xe(i)+1);if(!i||!(m=xr(m)))return i;var D=Ke(i),H=ec(D,Ke(m))+1;return Xi(D,0,H).join("")}function cI(i,m,M){if(i=Et(i),i&&(M||m===t))return i.replace(qn,"");if(!i||!(m=xr(m)))return i;var D=Ke(i),H=Xl(D,Ke(m));return Xi(D,H).join("")}function uI(i,m){var M=T,D=N;if(sn(m)){var H="separator"in m?m.separator:H;M="length"in m?at(m.length):M,D="omission"in m?xr(m.omission):D}i=Et(i);var U=i.length;if(te(i)){var Q=Ke(i);U=Q.length}if(M>=U)return i;var ee=M-st(D);if(ee<1)return D;var ie=Q?Xi(Q,0,ee).join(""):i.slice(0,ee);if(H===t)return ie+D;if(Q&&(ee+=ie.length-ee),Wd(H)){if(i.slice(ee).search(H)){var fe,ge=ie;for(H.global||(H=Rn(H.source,Et(Pi.exec(H))+"g")),H.lastIndex=0;fe=H.exec(ge);)var ye=fe.index;ie=ie.slice(0,ye===t?ee:ye)}}else if(i.indexOf(xr(H),ee)!=ee){var Te=ie.lastIndexOf(H);Te>-1&&(ie=ie.slice(0,Te))}return ie+D}function hI(i){return i=Et(i),i&&Kh.test(i)?i.replace(Ks,Ne):i}var dI=bs(function(i,m,M){return i+(M?" ":"")+m.toUpperCase()}),qd=dv("toUpperCase");function ub(i,m,M){return i=Et(i),m=M?t:m,m===t?oe(i)?Jt(i):ds(i):i.match(m)||[]}var hb=ft(function(i,m){try{return Zt(i,t,m)}catch(M){return zd(M)?M:new He(M)}}),fI=Si(function(i,m){return Xn(m,function(M){M=ui(M),_i(i,M,Bd(i[M],i))}),i});function pI(i){var m=i==null?0:i.length,M=Ue();return i=m?Vt(i,function(D){if(typeof D[1]!="function")throw new In(p);return[M(D[0]),D[1]]}):[],ft(function(D){for(var H=-1;++H<m;){var U=i[H];if(Zt(U[0],this,D))return Zt(U[1],this,D)}})}function gI(i){return BT(Ir(i,l))}function Gd(i){return function(){return i}}function mI(i,m){return i==null||i!==i?m:i}var yI=pv(),vI=pv(!0);function pr(i){return i}function Yd(i){return U0(typeof i=="function"?i:Ir(i,l))}function bI(i){return q0(Ir(i,l))}function wI(i,m){return G0(i,Ir(m,l))}var xI=ft(function(i,m){return function(M){return Ca(M,i,m)}}),_I=ft(function(i,m){return function(M){return Ca(i,M,m)}});function Kd(i,m,M){var D=Hn(m),H=mc(m,D);M==null&&!(sn(m)&&(H.length||!D.length))&&(M=m,m=i,i=this,H=mc(m,Hn(m)));var U=!(sn(M)&&"chain"in M)||!!M.chain,Q=Ci(i);return Xn(H,function(ee){var ie=m[ee];i[ee]=ie,Q&&(i.prototype[ee]=function(){var fe=this.__chain__;if(U||fe){var ge=i(this.__wrapped__),ye=ge.__actions__=hr(this.__actions__);return ye.push({func:ie,args:arguments,thisArg:i}),ge.__chain__=fe,ge}return ie.apply(i,Yn([this.value()],arguments))})}),i}function kI(){return Ln._===this&&(Ln._=KA),this}function Qd(){}function SI(i){return i=at(i),ft(function(m){return Y0(m,i)})}var $I=Md(Vt),CI=Md(qi),MI=Md(hs);function db(i){return Od(i)?ma(ui(i)):rE(i)}function AI(i){return function(m){return i==null?t:Ro(i,m)}}var TI=mv(),EI=mv(!0);function Zd(){return[]}function Jd(){return!1}function LI(){return{}}function RI(){return""}function II(){return!0}function OI(i,m){if(i=at(i),i<1||i>B)return[];var M=q,D=Qn(i,q);m=Ue(m),i-=q;for(var H=un(D,m);++M<i;)m(M);return H}function DI(i){return tt(i)?Vt(i,ui):_r(i)?[i]:hr(Rv(Et(i)))}function NI(i){var m=++GA;return Et(i)+m}var FI=_c(function(i,m){return i+m},0),PI=Ad("ceil"),HI=_c(function(i,m){return i/m},1),BI=Ad("floor");function jI(i){return i&&i.length?gc(i,pr,fd):t}function zI(i,m){return i&&i.length?gc(i,Ue(m,2),fd):t}function WI(i){return ga(i,pr)}function UI(i,m){return ga(i,Ue(m,2))}function VI(i){return i&&i.length?gc(i,pr,yd):t}function qI(i,m){return i&&i.length?gc(i,Ue(m,2),yd):t}var GI=_c(function(i,m){return i*m},1),YI=Ad("round"),KI=_c(function(i,m){return i-m},0);function QI(i){return i&&i.length?Yi(i,pr):0}function ZI(i,m){return i&&i.length?Yi(i,Ue(m,2)):0}return z.after=bR,z.ary=Wv,z.assign=s2,z.assignIn=rb,z.assignInWith=Dc,z.assignWith=a2,z.at=l2,z.before=Uv,z.bind=Bd,z.bindAll=fI,z.bindKey=Vv,z.castArray=LR,z.chain=Bv,z.chunk=BE,z.compact=jE,z.concat=zE,z.cond=pI,z.conforms=gI,z.constant=Gd,z.countBy=QL,z.create=c2,z.curry=qv,z.curryRight=Gv,z.debounce=Yv,z.defaults=u2,z.defaultsDeep=h2,z.defer=wR,z.delay=xR,z.difference=WE,z.differenceBy=UE,z.differenceWith=VE,z.drop=qE,z.dropRight=GE,z.dropRightWhile=YE,z.dropWhile=KE,z.fill=QE,z.filter=JL,z.flatMap=tR,z.flatMapDeep=nR,z.flatMapDepth=rR,z.flatten=Nv,z.flattenDeep=ZE,z.flattenDepth=JE,z.flip=_R,z.flow=yI,z.flowRight=vI,z.fromPairs=XE,z.functions=v2,z.functionsIn=b2,z.groupBy=iR,z.initial=tL,z.intersection=nL,z.intersectionBy=rL,z.intersectionWith=iL,z.invert=x2,z.invertBy=_2,z.invokeMap=sR,z.iteratee=Yd,z.keyBy=aR,z.keys=Hn,z.keysIn=fr,z.map=Tc,z.mapKeys=S2,z.mapValues=$2,z.matches=bI,z.matchesProperty=wI,z.memoize=Lc,z.merge=C2,z.mergeWith=ib,z.method=xI,z.methodOf=_I,z.mixin=Kd,z.negate=Rc,z.nthArg=SI,z.omit=M2,z.omitBy=A2,z.once=kR,z.orderBy=lR,z.over=$I,z.overArgs=SR,z.overEvery=CI,z.overSome=MI,z.partial=jd,z.partialRight=Kv,z.partition=cR,z.pick=T2,z.pickBy=ob,z.property=db,z.propertyOf=AI,z.pull=lL,z.pullAll=Pv,z.pullAllBy=cL,z.pullAllWith=uL,z.pullAt=hL,z.range=TI,z.rangeRight=EI,z.rearg=$R,z.reject=dR,z.remove=dL,z.rest=CR,z.reverse=Pd,z.sampleSize=pR,z.set=L2,z.setWith=R2,z.shuffle=gR,z.slice=fL,z.sortBy=vR,z.sortedUniq=wL,z.sortedUniqBy=xL,z.split=tI,z.spread=MR,z.tail=_L,z.take=kL,z.takeRight=SL,z.takeRightWhile=$L,z.takeWhile=CL,z.tap=jL,z.throttle=AR,z.thru=Ac,z.toArray=eb,z.toPairs=sb,z.toPairsIn=ab,z.toPath=DI,z.toPlainObject=nb,z.transform=I2,z.unary=TR,z.union=ML,z.unionBy=AL,z.unionWith=TL,z.uniq=EL,z.uniqBy=LL,z.uniqWith=RL,z.unset=O2,z.unzip=Hd,z.unzipWith=Hv,z.update=D2,z.updateWith=N2,z.values=_s,z.valuesIn=F2,z.without=IL,z.words=ub,z.wrap=ER,z.xor=OL,z.xorBy=DL,z.xorWith=NL,z.zip=FL,z.zipObject=PL,z.zipObjectDeep=HL,z.zipWith=BL,z.entries=sb,z.entriesIn=ab,z.extend=rb,z.extendWith=Dc,Kd(z,z),z.add=FI,z.attempt=hb,z.camelCase=j2,z.capitalize=lb,z.ceil=PI,z.clamp=P2,z.clone=RR,z.cloneDeep=OR,z.cloneDeepWith=DR,z.cloneWith=IR,z.conformsTo=NR,z.deburr=cb,z.defaultTo=mI,z.divide=HI,z.endsWith=z2,z.eq=Vr,z.escape=W2,z.escapeRegExp=U2,z.every=ZL,z.find=XL,z.findIndex=Ov,z.findKey=d2,z.findLast=eR,z.findLastIndex=Dv,z.findLastKey=f2,z.floor=BI,z.forEach=jv,z.forEachRight=zv,z.forIn=p2,z.forInRight=g2,z.forOwn=m2,z.forOwnRight=y2,z.get=Ud,z.gt=FR,z.gte=PR,z.has=w2,z.hasIn=Vd,z.head=Fv,z.identity=pr,z.includes=oR,z.indexOf=eL,z.inRange=H2,z.invoke=k2,z.isArguments=Do,z.isArray=tt,z.isArrayBuffer=HR,z.isArrayLike=dr,z.isArrayLikeObject=gn,z.isBoolean=BR,z.isBuffer=eo,z.isDate=jR,z.isElement=zR,z.isEmpty=WR,z.isEqual=UR,z.isEqualWith=VR,z.isError=zd,z.isFinite=qR,z.isFunction=Ci,z.isInteger=Qv,z.isLength=Ic,z.isMap=Zv,z.isMatch=GR,z.isMatchWith=YR,z.isNaN=KR,z.isNative=QR,z.isNil=JR,z.isNull=ZR,z.isNumber=Jv,z.isObject=sn,z.isObjectLike=hn,z.isPlainObject=Ra,z.isRegExp=Wd,z.isSafeInteger=XR,z.isSet=Xv,z.isString=Oc,z.isSymbol=_r,z.isTypedArray=xs,z.isUndefined=e2,z.isWeakMap=t2,z.isWeakSet=n2,z.join=oL,z.kebabCase=V2,z.last=Dr,z.lastIndexOf=sL,z.lowerCase=q2,z.lowerFirst=G2,z.lt=r2,z.lte=i2,z.max=jI,z.maxBy=zI,z.mean=WI,z.meanBy=UI,z.min=VI,z.minBy=qI,z.stubArray=Zd,z.stubFalse=Jd,z.stubObject=LI,z.stubString=RI,z.stubTrue=II,z.multiply=GI,z.nth=aL,z.noConflict=kI,z.noop=Qd,z.now=Ec,z.pad=Y2,z.padEnd=K2,z.padStart=Q2,z.parseInt=Z2,z.random=B2,z.reduce=uR,z.reduceRight=hR,z.repeat=J2,z.replace=X2,z.result=E2,z.round=YI,z.runInContext=ne,z.sample=fR,z.size=mR,z.snakeCase=eI,z.some=yR,z.sortedIndex=pL,z.sortedIndexBy=gL,z.sortedIndexOf=mL,z.sortedLastIndex=yL,z.sortedLastIndexBy=vL,z.sortedLastIndexOf=bL,z.startCase=nI,z.startsWith=rI,z.subtract=KI,z.sum=QI,z.sumBy=ZI,z.template=iI,z.times=OI,z.toFinite=Mi,z.toInteger=at,z.toLength=tb,z.toLower=oI,z.toNumber=Nr,z.toSafeInteger=o2,z.toString=Et,z.toUpper=sI,z.trim=aI,z.trimEnd=lI,z.trimStart=cI,z.truncate=uI,z.unescape=hI,z.uniqueId=NI,z.upperCase=dI,z.upperFirst=qd,z.each=jv,z.eachRight=zv,z.first=Fv,Kd(z,function(){var i={};return li(z,function(m,M){It.call(z.prototype,M)||(i[M]=m)}),i}(),{chain:!1}),z.VERSION=r,Xn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){z[i].placeholder=z}),Xn(["drop","take"],function(i,m){xt.prototype[i]=function(M){M=M===t?1:On(at(M),0);var D=this.__filtered__&&!m?new xt(this):this.clone();return D.__filtered__?D.__takeCount__=Qn(M,D.__takeCount__):D.__views__.push({size:Qn(M,q),type:i+(D.__dir__<0?"Right":"")}),D},xt.prototype[i+"Right"]=function(M){return this.reverse()[i](M).reverse()}}),Xn(["filter","map","takeWhile"],function(i,m){var M=m+1,D=M==$||M==O;xt.prototype[i]=function(H){var U=this.clone();return U.__iteratees__.push({iteratee:Ue(H,3),type:M}),U.__filtered__=U.__filtered__||D,U}}),Xn(["head","last"],function(i,m){var M="take"+(m?"Right":"");xt.prototype[i]=function(){return this[M](1).value()[0]}}),Xn(["initial","tail"],function(i,m){var M="drop"+(m?"":"Right");xt.prototype[i]=function(){return this.__filtered__?new xt(this):this[M](1)}}),xt.prototype.compact=function(){return this.filter(pr)},xt.prototype.find=function(i){return this.filter(i).head()},xt.prototype.findLast=function(i){return this.reverse().find(i)},xt.prototype.invokeMap=ft(function(i,m){return typeof i=="function"?new xt(this):this.map(function(M){return Ca(M,i,m)})}),xt.prototype.reject=function(i){return this.filter(Rc(Ue(i)))},xt.prototype.slice=function(i,m){i=at(i);var M=this;return M.__filtered__&&(i>0||m<0)?new xt(M):(i<0?M=M.takeRight(-i):i&&(M=M.drop(i)),m!==t&&(m=at(m),M=m<0?M.dropRight(-m):M.take(m-i)),M)},xt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},xt.prototype.toArray=function(){return this.take(q)},li(xt.prototype,function(i,m){var M=/^(?:filter|find|map|reject)|While$/.test(m),D=/^(?:head|last)$/.test(m),H=z[D?"take"+(m=="last"?"Right":""):m],U=D||/^find/.test(m);H&&(z.prototype[m]=function(){var Q=this.__wrapped__,ee=D?[1]:arguments,ie=Q instanceof xt,fe=ee[0],ge=ie||tt(Q),ye=function(bt){var _t=H.apply(z,Yn([bt],ee));return D&&Te?_t[0]:_t};ge&&M&&typeof fe=="function"&&fe.length!=1&&(ie=ge=!1);var Te=this.__chain__,Fe=!!this.__actions__.length,qe=U&&!Te,ct=ie&&!Fe;if(!U&&ge){Q=ct?Q:new xt(this);var Ge=i.apply(Q,ee);return Ge.__actions__.push({func:Ac,args:[ye],thisArg:t}),new Rr(Ge,Te)}return qe&&ct?i.apply(this,ee):(Ge=this.thru(ye),qe?D?Ge.value()[0]:Ge.value():Ge)})}),Xn(["pop","push","shift","sort","splice","unshift"],function(i){var m=wr[i],M=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",D=/^(?:pop|shift)$/.test(i);z.prototype[i]=function(){var H=arguments;if(D&&!this.__chain__){var U=this.value();return m.apply(tt(U)?U:[],H)}return this[M](function(Q){return m.apply(tt(Q)?Q:[],H)})}}),li(xt.prototype,function(i,m){var M=z[m];if(M){var D=M.name+"";It.call(ms,D)||(ms[D]=[]),ms[D].push({name:m,func:M})}}),ms[xc(t,b).name]=[{name:"wrapper",func:t}],xt.prototype.clone=hT,xt.prototype.reverse=dT,xt.prototype.value=fT,z.prototype.at=zL,z.prototype.chain=WL,z.prototype.commit=UL,z.prototype.next=VL,z.prototype.plant=GL,z.prototype.reverse=YL,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=KL,z.prototype.first=z.prototype.head,ba&&(z.prototype[ba]=qL),z},Bt=Ht();Pn?((Pn.exports=Bt)._=Bt,Tr._=Bt):Ln._=Bt}).call(kx)}(Ja,Ja.exports)),Ja.exports}var $x=Sx();Dn("K",Na($x)).debounce(function(){this.rebuildDisplayText()},300);var Fp={exports:{}},Pp;function Cx(){return Pp||(Pp=1,function(n,e){(function(){ace.require(["ace/mode/text"],function(t){n.exports=t})})()}(Fp)),Fp.exports}Cx();const Mx=!0,$n="u-",Ax="uplot",Tx=$n+"hz",Ex=$n+"vt",Lx=$n+"title",Rx=$n+"wrap",Ix=$n+"under",Ox=$n+"over",Dx=$n+"axis",co=$n+"off",Nx=$n+"select",Fx=$n+"cursor-x",Px=$n+"cursor-y",Hx=$n+"cursor-pt",Bx=$n+"legend",jx=$n+"live",zx=$n+"inline",Wx=$n+"series",Ux=$n+"marker",Hp=$n+"label",Vx=$n+"value",Is="width",Os="height",Ds="top",Bp="bottom",jo="left",lu="right",cu="#000",jp=cu+"0",zp="mousemove",Wp="mousedown",uu="mouseup",Up="mouseenter",Vp="mouseleave",qp="dblclick",qx="resize",Gx="scroll",Gp="change",Xa="dppxchange",hu="--",zo=typeof window<"u",du=zo?document:null,Wo=zo?window:null,Yx=zo?navigator:null;let $t,el;function fu(){let n=devicePixelRatio;$t!=n&&($t=n,el&&mu(Gp,el,fu),el=matchMedia(`(min-resolution: ${$t-.001}dppx) and (max-resolution: ${$t+.001}dppx)`),uo(Gp,el,fu),Wo.dispatchEvent(new CustomEvent(Xa)))}function mr(n,e){if(e!=null){let t=n.classList;!t.contains(e)&&t.add(e)}}function pu(n,e){let t=n.classList;t.contains(e)&&t.remove(e)}function qt(n,e,t){n.style[e]=t+"px"}function Hr(n,e,t,r){let f=du.createElement(n);return e!=null&&mr(f,e),t!=null&&t.insertBefore(f,r),f}function $r(n,e){return Hr("div",n,e)}const Yp=new WeakMap;function Qr(n,e,t,r,f){let h="translate("+e+"px,"+t+"px)",p=Yp.get(n);h!=p&&(n.style.transform=h,Yp.set(n,h),e<0||t<0||e>r||t>f?mr(n,co):pu(n,co))}const Kp=new WeakMap;function Qp(n,e,t){let r=e+t,f=Kp.get(n);r!=f&&(Kp.set(n,r),n.style.background=e,n.style.borderColor=t)}const Zp=new WeakMap;function Jp(n,e,t,r){let f=e+""+t,h=Zp.get(n);f!=h&&(Zp.set(n,f),n.style.height=t+"px",n.style.width=e+"px",n.style.marginLeft=r?-e/2+"px":0,n.style.marginTop=r?-t/2+"px":0)}const gu={passive:!0},Kx={...gu,capture:!0};function uo(n,e,t,r){e.addEventListener(n,t,r?Kx:gu)}function mu(n,e,t,r){e.removeEventListener(n,t,gu)}zo&&fu();function Br(n,e,t,r){let f;t=t||0,r=r||e.length-1;let h=r<=2147483647;for(;r-t>1;)f=h?t+r>>1:vr((t+r)/2),e[f]<n?t=f:r=f;return n-e[t]<=e[r]-n?t:r}function Uo(n,e,t,r){for(let f=r==1?e:t;f>=e&&f<=t;f+=r)if(n[f]!=null)return f;return-1}function Qx(n,e,t,r){let f=en,h=-1/0;if(r==1)f=n[e],h=n[t];else if(r==-1)f=n[t],h=n[e];else for(let p=e;p<=t;p++){let v=n[p];v!=null&&(v<f&&(f=v),v>h&&(h=v))}return[f,h]}function Zx(n,e,t){let r=en,f=-1/0;for(let h=e;h<=t;h++){let p=n[h];p!=null&&p>0&&(p<r&&(r=p),p>f&&(f=p))}return[r,f]}function tl(n,e,t,r){let f=tg(n),h=tg(e);n==e&&(f==-1?(n*=t,e/=t):(n/=t,e*=t));let p=t==10?hi:ng,v=f==1?vr:Cr,d=h==1?Cr:vr,g=v(p(Cn(n))),s=d(p(Cn(e))),l=Vo(t,g),a=Vo(t,s);return t==10&&(g<0&&(l=Nt(l,-g)),s<0&&(a=Nt(a,-s))),r||t==2?(n=l*f,e=a*h):(n=lg(n,l),e=il(e,a)),[n,e]}function yu(n,e,t,r){let f=tl(n,e,t,r);return n==0&&(f[0]=0),e==0&&(f[1]=0),f}const vu=.1,Xp={mode:3,pad:vu},Ns={pad:0,soft:null,mode:0},Jx={min:Ns,max:Ns};function nl(n,e,t,r){return ol(t)?eg(n,e,t):(Ns.pad=t,Ns.soft=r?0:null,Ns.mode=r?3:0,eg(n,e,Jx))}function St(n,e){return n??e}function Xx(n,e,t){for(e=St(e,0),t=St(t,n.length-1);e<=t;){if(n[e]!=null)return!0;e++}return!1}function eg(n,e,t){let r=t.min,f=t.max,h=St(r.pad,0),p=St(f.pad,0),v=St(r.hard,-1/0),d=St(f.hard,en),g=St(r.soft,en),s=St(f.soft,-1/0),l=St(r.mode,0),a=St(f.mode,0),c=e-n,o=hi(c),u=zn(Cn(n),Cn(e)),y=hi(u),b=Cn(y-o);(c<1e-24||b>10)&&(c=0,(n==0||e==0)&&(c=1e-24,l==2&&g!=en&&(h=0),a==2&&s!=-1/0&&(p=0)));let x=c||u||1e3,E=hi(x),C=Vo(10,vr(E)),k=x*(c==0?n==0?.1:1:h),w=Nt(lg(n-k,C/10),24),A=n>=g&&(l==1||l==3&&w<=g||l==2&&w>=g)?g:en,L=zn(v,w<A&&n>=A?A:Mr(A,w)),I=x*(c==0?e==0?.1:1:p),T=Nt(il(e+I,C/10),24),N=e<=s&&(a==1||a==3&&T>=s||a==2&&T<=s)?s:-1/0,S=Mr(d,T>N&&e<=N?N:zn(N,T));return L==S&&L==0&&(S=100),[L,S]}const e_=new Intl.NumberFormat(zo?Yx.language:"en-US"),bu=n=>e_.format(n),yr=Math,rl=yr.PI,Cn=yr.abs,vr=yr.floor,Mn=yr.round,Cr=yr.ceil,Mr=yr.min,zn=yr.max,Vo=yr.pow,tg=yr.sign,hi=yr.log10,ng=yr.log2,t_=(n,e=1)=>yr.sinh(n)*e,wu=(n,e=1)=>yr.asinh(n/e),en=1/0;function rg(n){return(hi((n^n>>31)-(n>>31))|0)+1}function xu(n,e,t){return Mr(zn(n,e),t)}function wt(n){return typeof n=="function"?n:()=>n}const n_=()=>{},ig=n=>n,og=(n,e)=>e,sg=n=>!0,ag=(n,e)=>n==e,r_=/\.\d*?(?=9{6,}|0{6,})/gm,ho=n=>{if(ug(n)||Ii.has(n))return n;const e=`${n}`,t=e.match(r_);if(t==null)return n;let r=t[0].length-1;if(e.indexOf("e-")!=-1){let[f,h]=e.split("e");return+`${ho(f)}e${h}`}return Nt(n,r)};function fo(n,e){return ho(Nt(ho(n/e))*e)}function il(n,e){return ho(Cr(ho(n/e))*e)}function lg(n,e){return ho(vr(ho(n/e))*e)}function Nt(n,e=0){if(ug(n))return n;let t=10**e,r=n*t*(1+Number.EPSILON);return Mn(r)/t}const Ii=new Map;function cg(n){return((""+n).split(".")[1]||"").length}function Fs(n,e,t,r){let f=[],h=r.map(cg);for(let p=e;p<t;p++){let v=Cn(p),d=Nt(Vo(n,p),v);for(let g=0;g<r.length;g++){let s=n==10?+`${r[g]}e${p}`:r[g]*d,l=(p>=0?0:v)+(p>=h[g]?0:h[g]),a=n==10?s:Nt(s,l);f.push(a),Ii.set(a,l)}}return f}const Ps={},_u=[],qo=[null,null],Oi=Array.isArray,ug=Number.isInteger,i_=n=>n===void 0;function hg(n){return typeof n=="string"}function ol(n){let e=!1;if(n!=null){let t=n.constructor;e=t==null||t==Object}return e}function o_(n){return n!=null&&typeof n=="object"}const s_=Object.getPrototypeOf(Uint8Array),dg="__proto__";function Go(n,e=ol){let t;if(Oi(n)){let r=n.find(f=>f!=null);if(Oi(r)||e(r)){t=Array(n.length);for(let f=0;f<n.length;f++)t[f]=Go(n[f],e)}else t=n.slice()}else if(n instanceof s_)t=n.slice();else if(e(n)){t={};for(let r in n)r!=dg&&(t[r]=Go(n[r],e))}else t=n;return t}function bn(n){let e=arguments;for(let t=1;t<e.length;t++){let r=e[t];for(let f in r)f!=dg&&(ol(n[f])?bn(n[f],Go(r[f])):n[f]=Go(r[f]))}return n}const a_=0,l_=1,c_=2;function u_(n,e,t){for(let r=0,f,h=-1;r<e.length;r++){let p=e[r];if(p>h){for(f=p-1;f>=0&&n[f]==null;)n[f--]=null;for(f=p+1;f<t&&n[f]==null;)n[h=f++]=null}}}function h_(n,e){if(p_(n)){let p=n[0].slice();for(let v=1;v<n.length;v++)p.push(...n[v].slice(1));return g_(p[0])||(p=f_(p)),p}let t=new Set;for(let p=0;p<n.length;p++){let v=n[p][0],d=v.length;for(let g=0;g<d;g++)t.add(v[g])}let r=[Array.from(t).sort((p,v)=>p-v)],f=r[0].length,h=new Map;for(let p=0;p<f;p++)h.set(r[0][p],p);for(let p=0;p<n.length;p++){let v=n[p],d=v[0];for(let g=1;g<v.length;g++){let s=v[g],l=Array(f).fill(void 0),a=e?e[p][g]:l_,c=[];for(let o=0;o<s.length;o++){let u=s[o],y=h.get(d[o]);u===null?a!=a_&&(l[y]=u,a==c_&&c.push(y)):l[y]=u}u_(l,c,f),r.push(l)}}return r}const d_=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function f_(n){let e=n[0],t=e.length,r=Array(t);for(let h=0;h<r.length;h++)r[h]=h;r.sort((h,p)=>e[h]-e[p]);let f=[];for(let h=0;h<n.length;h++){let p=n[h],v=Array(t);for(let d=0;d<t;d++)v[d]=p[r[d]];f.push(v)}return f}function p_(n){let e=n[0][0],t=e.length;for(let r=1;r<n.length;r++){let f=n[r][0];if(f.length!=t)return!1;if(f!=e){for(let h=0;h<t;h++)if(f[h]!=e[h])return!1}}return!0}function g_(n,e=100){const t=n.length;if(t<=1)return!0;let r=0,f=t-1;for(;r<=f&&n[r]==null;)r++;for(;f>=r&&n[f]==null;)f--;if(f<=r)return!0;const h=zn(1,vr((f-r+1)/e));for(let p=n[r],v=r+h;v<=f;v+=h){const d=n[v];if(d!=null){if(d<=p)return!1;p=d}}return!0}const fg=["January","February","March","April","May","June","July","August","September","October","November","December"],pg=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function gg(n){return n.slice(0,3)}const m_=pg.map(gg),y_=fg.map(gg),v_={MMMM:fg,MMM:y_,WWWW:pg,WWW:m_};function Hs(n){return(n<10?"0":"")+n}function b_(n){return(n<10?"00":n<100?"0":"")+n}const w_={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,e)=>e.MMMM[n.getMonth()],MMM:(n,e)=>e.MMM[n.getMonth()],MM:n=>Hs(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Hs(n.getDate()),D:n=>n.getDate(),WWWW:(n,e)=>e.WWWW[n.getDay()],WWW:(n,e)=>e.WWW[n.getDay()],HH:n=>Hs(n.getHours()),H:n=>n.getHours(),h:n=>{let e=n.getHours();return e==0?12:e>12?e-12:e},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Hs(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Hs(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>b_(n.getMilliseconds())};function ku(n,e){e=e||v_;let t=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)t.push(f[0][0]=="{"?w_[f[1]]:f[0]);return h=>{let p="";for(let v=0;v<t.length;v++)p+=typeof t[v]=="string"?t[v]:t[v](h,e);return p}}const x_=new Intl.DateTimeFormat().resolvedOptions().timeZone;function __(n,e){let t;return e=="UTC"||e=="Etc/UTC"?t=new Date(+n+n.getTimezoneOffset()*6e4):e==x_?t=n:(t=new Date(n.toLocaleString("en-US",{timeZone:e})),t.setMilliseconds(n.getMilliseconds())),t}const mg=n=>n%1==0,sl=[1,2,2.5,5],k_=Fs(10,-32,0,sl),yg=Fs(10,0,32,sl),S_=yg.filter(mg),po=k_.concat(yg),Su=`
1407
+ `,vg="{YYYY}",bg=Su+vg,wg="{M}/{D}",Bs=Su+wg,al=Bs+"/{YY}",xg="{aa}",$_="{h}:{mm}",Yo=$_+xg,_g=Su+Yo,kg=":{ss}",Mt=null;function Sg(n){let e=n*1e3,t=e*60,r=t*60,f=r*24,h=f*30,p=f*365,v=(n==1?Fs(10,0,3,sl).filter(mg):Fs(10,-3,0,sl)).concat([e,e*5,e*10,e*15,e*30,t,t*5,t*10,t*15,t*30,r,r*2,r*3,r*4,r*6,r*8,r*12,f,f*2,f*3,f*4,f*5,f*6,f*7,f*8,f*9,f*10,f*15,h,h*2,h*3,h*4,h*6,p,p*2,p*5,p*10,p*25,p*50,p*100]);const d=[[p,vg,Mt,Mt,Mt,Mt,Mt,Mt,1],[f*28,"{MMM}",bg,Mt,Mt,Mt,Mt,Mt,1],[f,wg,bg,Mt,Mt,Mt,Mt,Mt,1],[r,"{h}"+xg,al,Mt,Bs,Mt,Mt,Mt,1],[t,Yo,al,Mt,Bs,Mt,Mt,Mt,1],[e,kg,al+" "+Yo,Mt,Bs+" "+Yo,Mt,_g,Mt,1],[n,kg+".{fff}",al+" "+Yo,Mt,Bs+" "+Yo,Mt,_g,Mt,1]];function g(s){return(l,a,c,o,u,y)=>{let b=[],x=u>=p,E=u>=h&&u<p,C=s(c),k=Nt(C*n,3),w=$u(C.getFullYear(),x?0:C.getMonth(),E||x?1:C.getDate()),A=Nt(w*n,3);if(E||x){let L=E?u/h:0,I=x?u/p:0,T=k==A?k:Nt($u(w.getFullYear()+I,w.getMonth()+L,1)*n,3),N=new Date(Mn(T/n)),S=N.getFullYear(),_=N.getMonth();for(let $=0;T<=o;$++){let R=$u(S+I*$,_+L*$,1),O=R-s(Nt(R*n,3));T=Nt((+R+O)*n,3),T<=o&&b.push(T)}}else{let L=u>=f?f:u,I=vr(c)-vr(k),T=A+I+il(k-A,L);b.push(T);let N=s(T),S=N.getHours()+N.getMinutes()/t+N.getSeconds()/r,_=u/r,$=l.axes[a]._space,R=y/$;for(;T=Nt(T+u,n==1?0:3),!(T>o);)if(_>1){let O=vr(Nt(S+_,6))%24,F=s(T).getHours()-O;F>1&&(F=-1),T-=F*r,S=(S+_)%24;let B=b[b.length-1];Nt((T-B)/u,3)*R>=.7&&b.push(T)}else b.push(T)}return b}}return[v,d,g]}const[C_,M_,A_]=Sg(1),[T_,E_,L_]=Sg(.001);Fs(2,-53,53,[1]);function $g(n,e){return n.map(t=>t.map((r,f)=>f==0||f==8||r==null?r:e(f==1||t[8]==0?r:t[1]+r)))}function Cg(n,e){return(t,r,f,h,p)=>{let v=e.find(o=>p>=o[0])||e[e.length-1],d,g,s,l,a,c;return r.map(o=>{let u=n(o),y=u.getFullYear(),b=u.getMonth(),x=u.getDate(),E=u.getHours(),C=u.getMinutes(),k=u.getSeconds(),w=y!=d&&v[2]||b!=g&&v[3]||x!=s&&v[4]||E!=l&&v[5]||C!=a&&v[6]||k!=c&&v[7]||v[1];return d=y,g=b,s=x,l=E,a=C,c=k,w(u)})}}function R_(n,e){let t=ku(e);return(r,f,h,p,v)=>f.map(d=>t(n(d)))}function $u(n,e,t){return new Date(n,e,t)}function Mg(n,e){return e(n)}const I_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Ag(n,e){return(t,r,f,h)=>h==null?hu:e(n(r))}function O_(n,e){let t=n.series[e];return t.width?t.stroke(n,e):t.points.width?t.points.stroke(n,e):null}function D_(n,e){return n.series[e].fill(n,e)}const N_={show:!0,live:!0,isolate:!1,mount:n_,markers:{show:!0,width:2,stroke:O_,fill:D_,dash:"solid"},idx:null,idxs:null,values:[]};function F_(n,e){let t=n.cursor.points,r=$r(),f=t.size(n,e);qt(r,Is,f),qt(r,Os,f);let h=f/-2;qt(r,"marginLeft",h),qt(r,"marginTop",h);let p=t.width(n,e,f);return p&&qt(r,"borderWidth",p),r}function P_(n,e){let t=n.series[e].points;return t._fill||t._stroke}function H_(n,e){let t=n.series[e].points;return t._stroke||t._fill}function B_(n,e){return n.series[e].points.size}const Cu=[0,0];function j_(n,e,t){return Cu[0]=e,Cu[1]=t,Cu}function ll(n,e,t,r=!0){return f=>{f.button==0&&(!r||f.target==e)&&t(f)}}function Mu(n,e,t,r=!0){return f=>{(!r||f.target==e)&&t(f)}}const z_={show:!0,x:!0,y:!0,lock:!1,move:j_,points:{one:!1,show:F_,size:B_,width:0,stroke:H_,fill:P_},bind:{mousedown:ll,mouseup:ll,click:ll,dblclick:ll,mousemove:Mu,mouseleave:Mu,mouseenter:Mu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,e,t,r,f)=>r-f,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Tg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Au=bn({},Tg,{filter:og}),Eg=bn({},Au,{size:10}),Lg=bn({},Tg,{show:!1}),Tu='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Rg="bold "+Tu,Ig=1.5,Og={show:!0,scale:"x",stroke:cu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Rg,side:2,grid:Au,ticks:Eg,border:Lg,font:Tu,lineGap:Ig,rotate:0},W_="Value",U_="Time",Dg={show:!0,scale:"x",auto:!1,sorted:1,min:en,max:-1/0,idxs:[]};function V_(n,e,t,r,f){return e.map(h=>h==null?"":bu(h))}function q_(n,e,t,r,f,h,p){let v=[],d=Ii.get(f)||0;t=p?t:Nt(il(t,f),d);for(let g=t;g<=r;g=Nt(g+f,d))v.push(Object.is(g,-0)?0:g);return v}function Eu(n,e,t,r,f,h,p){const v=[],d=n.scales[n.axes[e].scale].log,g=d==10?hi:ng,s=vr(g(t));f=Vo(d,s),d==10&&(f=po[Br(f,po)]);let l=t,a=f*d;d==10&&(a=po[Br(a,po)]);do v.push(l),l=l+f,d==10&&!Ii.has(l)&&(l=Nt(l,Ii.get(f))),l>=a&&(f=l,a=f*d,d==10&&(a=po[Br(a,po)]));while(l<=r);return v}function G_(n,e,t,r,f,h,p){let v=n.scales[n.axes[e].scale].asinh,d=r>v?Eu(n,e,zn(v,t),r,f):[v],g=r>=0&&t<=0?[0]:[];return(t<-v?Eu(n,e,zn(v,-r),-t,f):[v]).reverse().map(s=>-s).concat(g,d)}const Ng=/./,Y_=/[12357]/,K_=/[125]/,Fg=/1/,Lu=(n,e,t,r)=>n.map((f,h)=>e==4&&f==0||h%r==0&&t.test(f.toExponential()[f<0?1:0])?f:null);function Q_(n,e,t,r,f){let h=n.axes[t],p=h.scale,v=n.scales[p],d=n.valToPos,g=h._space,s=d(10,p),l=d(9,p)-s>=g?Ng:d(7,p)-s>=g?Y_:d(5,p)-s>=g?K_:Fg;if(l==Fg){let a=Cn(d(1,p)-s);if(a<g)return Lu(e.slice().reverse(),v.distr,l,Cr(g/a)).reverse()}return Lu(e,v.distr,l,1)}function Z_(n,e,t,r,f){let h=n.axes[t],p=h.scale,v=h._space,d=n.valToPos,g=Cn(d(1,p)-d(2,p));return g<v?Lu(e.slice().reverse(),3,Ng,Cr(v/g)).reverse():e}function J_(n,e,t,r){return r==null?hu:e==null?"":bu(e)}const Pg={show:!0,scale:"y",stroke:cu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Rg,side:3,grid:Au,ticks:Eg,border:Lg,font:Tu,lineGap:Ig,rotate:0};function X_(n,e){let t=3+(n||1)*2;return Nt(t*e,3)}function ek(n,e){let{scale:t,idxs:r}=n.series[0],f=n._data[0],h=n.valToPos(f[r[0]],t,!0),p=n.valToPos(f[r[1]],t,!0),v=Cn(p-h),d=n.series[e],g=v/(d.points.space*$t);return r[1]-r[0]<=g}const Hg={scale:null,auto:!0,sorted:0,min:en,max:-1/0},Bg=(n,e,t,r,f)=>f,jg={show:!0,auto:!0,sorted:0,gaps:Bg,alpha:1,facets:[bn({},Hg,{scale:"x"}),bn({},Hg,{scale:"y"})]},zg={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Bg,alpha:1,points:{show:ek,filter:null},values:null,min:en,max:-1/0,idxs:[],path:null,clip:null};function tk(n,e,t,r,f){return t/10}const Wg={time:Mx,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},nk=bn({},Wg,{time:!1,ori:1}),Ug={};function Vg(n,e){let t=Ug[n];return t||(t={key:n,plots:[],sub(r){t.plots.push(r)},unsub(r){t.plots=t.plots.filter(f=>f!=r)},pub(r,f,h,p,v,d,g){for(let s=0;s<t.plots.length;s++)t.plots[s]!=f&&t.plots[s].pub(r,f,h,p,v,d,g)}},n!=null&&(Ug[n]=t)),t}const Ko=1,Ru=2;function go(n,e,t){const r=n.mode,f=n.series[e],h=r==2?n._data[e]:n._data,p=n.scales,v=n.bbox;let d=h[0],g=r==2?h[1]:h[e],s=r==2?p[f.facets[0].scale]:p[n.series[0].scale],l=r==2?p[f.facets[1].scale]:p[f.scale],a=v.left,c=v.top,o=v.width,u=v.height,y=n.valToPosH,b=n.valToPosV;return s.ori==0?t(f,d,g,s,l,y,b,a,c,o,u,ul,Qo,dl,Yg,Qg):t(f,d,g,s,l,b,y,c,a,u,o,hl,Zo,Du,Kg,Zg)}function Iu(n,e){let t=0,r=0,f=St(n.bands,_u);for(let h=0;h<f.length;h++){let p=f[h];p.series[0]==e?t=p.dir:p.series[1]==e&&(p.dir==1?r|=1:r|=2)}return[t,r==1?-1:r==2?1:r==3?2:0]}function rk(n,e,t,r,f){let h=n.mode,p=n.series[e],v=h==2?p.facets[1].scale:p.scale,d=n.scales[v];return f==-1?d.min:f==1?d.max:d.distr==3?d.dir==1?d.min:d.max:0}function di(n,e,t,r,f,h){return go(n,e,(p,v,d,g,s,l,a,c,o,u,y)=>{let b=p.pxRound;const x=g.dir*(g.ori==0?1:-1),E=g.ori==0?Qo:Zo;let C,k;x==1?(C=t,k=r):(C=r,k=t);let w=b(l(v[C],g,u,c)),A=b(a(d[C],s,y,o)),L=b(l(v[k],g,u,c)),I=b(a(h==1?s.max:s.min,s,y,o)),T=new Path2D(f);return E(T,L,I),E(T,w,I),E(T,w,A),T})}function cl(n,e,t,r,f,h){let p=null;if(n.length>0){p=new Path2D;const v=e==0?dl:Du;let d=t;for(let l=0;l<n.length;l++){let a=n[l];if(a[1]>a[0]){let c=a[0]-d;c>0&&v(p,d,r,c,r+h),d=a[1]}}let g=t+f-d,s=10;g>0&&v(p,d,r-s/2,g,r+h+s)}return p}function ik(n,e,t){let r=n[n.length-1];r&&r[0]==e?r[1]=t:n.push([e,t])}function Ou(n,e,t,r,f,h,p){let v=[],d=n.length;for(let g=f==1?t:r;g>=t&&g<=r;g+=f)if(e[g]===null){let s=g,l=g;if(f==1)for(;++g<=r&&e[g]===null;)l=g;else for(;--g>=t&&e[g]===null;)l=g;let a=h(n[s]),c=l==s?a:h(n[l]),o=s-f;a=p<=0&&o>=0&&o<d?h(n[o]):a;let u=l+f;c=p>=0&&u>=0&&u<d?h(n[u]):c,c>=a&&v.push([a,c])}return v}function qg(n){return n==0?ig:n==1?Mn:e=>fo(e,n)}function Gg(n){let e=n==0?ul:hl,t=n==0?(f,h,p,v,d,g)=>{f.arcTo(h,p,v,d,g)}:(f,h,p,v,d,g)=>{f.arcTo(p,h,d,v,g)},r=n==0?(f,h,p,v,d)=>{f.rect(h,p,v,d)}:(f,h,p,v,d)=>{f.rect(p,h,d,v)};return(f,h,p,v,d,g=0,s=0)=>{g==0&&s==0?r(f,h,p,v,d):(g=Mr(g,v/2,d/2),s=Mr(s,v/2,d/2),e(f,h+g,p),t(f,h+v,p,h+v,p+d,g),t(f,h+v,p+d,h,p+d,s),t(f,h,p+d,h,p,s),t(f,h,p,h+v,p,g),f.closePath())}}const ul=(n,e,t)=>{n.moveTo(e,t)},hl=(n,e,t)=>{n.moveTo(t,e)},Qo=(n,e,t)=>{n.lineTo(e,t)},Zo=(n,e,t)=>{n.lineTo(t,e)},dl=Gg(0),Du=Gg(1),Yg=(n,e,t,r,f,h)=>{n.arc(e,t,r,f,h)},Kg=(n,e,t,r,f,h)=>{n.arc(t,e,r,f,h)},Qg=(n,e,t,r,f,h,p)=>{n.bezierCurveTo(e,t,r,f,h,p)},Zg=(n,e,t,r,f,h,p)=>{n.bezierCurveTo(t,e,f,r,p,h)};function Jg(n){return(e,t,r,f,h)=>go(e,t,(p,v,d,g,s,l,a,c,o,u,y)=>{let{pxRound:b,points:x}=p,E,C;g.ori==0?(E=ul,C=Yg):(E=hl,C=Kg);const k=Nt(x.width*$t,3);let w=(x.size-x.width)/2*$t,A=Nt(w*2,3),L=new Path2D,I=new Path2D,{left:T,top:N,width:S,height:_}=e.bbox;dl(I,T-A,N-A,S+A*2,_+A*2);const $=R=>{if(d[R]!=null){let O=b(l(v[R],g,u,c)),F=b(a(d[R],s,y,o));E(L,O+w,F),C(L,O,F,w,0,rl*2)}};if(h)h.forEach($);else for(let R=r;R<=f;R++)$(R);return{stroke:k>0?L:null,fill:L,clip:I,flags:Ko|Ru}})}function Xg(n){return(e,t,r,f,h,p)=>{r!=f&&(h!=r&&p!=r&&n(e,t,r),h!=f&&p!=f&&n(e,t,f),n(e,t,p))}}const ok=Xg(Qo),sk=Xg(Zo);function em(n){const e=St(n==null?void 0:n.alignGaps,0);return(t,r,f,h)=>go(t,r,(p,v,d,g,s,l,a,c,o,u,y)=>{let b=p.pxRound,x=X=>b(l(X,g,u,c)),E=X=>b(a(X,s,y,o)),C,k;g.ori==0?(C=Qo,k=ok):(C=Zo,k=sk);const w=g.dir*(g.ori==0?1:-1),A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Ko},L=A.stroke;let I=en,T=-1/0,N,S,_,$=x(v[w==1?f:h]),R=Uo(d,f,h,1*w),O=Uo(d,f,h,-1*w),F=x(v[R]),B=x(v[O]),W=!1;for(let X=w==1?f:h;X>=f&&X<=h;X+=w){let G=x(v[X]),Z=d[X];G==$?Z!=null?(S=E(Z),I==en&&(C(L,G,S),N=S),I=Mr(S,I),T=zn(S,T)):Z===null&&(W=!0):(I!=en&&(k(L,$,I,T,N,S),_=$),Z!=null?(S=E(Z),C(L,G,S),I=T=N=S):(I=en,T=-1/0,Z===null&&(W=!0)),$=G)}I!=en&&I!=T&&_!=$&&k(L,$,I,T,N,S);let[V,q]=Iu(t,r);if(p.fill!=null||V!=0){let X=A.fill=new Path2D(L),G=p.fillTo(t,r,p.min,p.max,V),Z=E(G);C(X,B,Z),C(X,F,Z)}if(!p.spanGaps){let X=[];W&&X.push(...Ou(v,d,f,h,w,x,e)),A.gaps=X=p.gaps(t,r,f,h,X),A.clip=cl(X,g.ori,c,o,u,y)}return q!=0&&(A.band=q==2?[di(t,r,f,h,L,-1),di(t,r,f,h,L,1)]:di(t,r,f,h,L,q)),A})}function ak(n){const e=St(n.align,1),t=St(n.ascDesc,!1),r=St(n.alignGaps,0),f=St(n.extend,!1);return(h,p,v,d)=>go(h,p,(g,s,l,a,c,o,u,y,b,x,E)=>{let C=g.pxRound,{left:k,width:w}=h.bbox,A=V=>C(o(V,a,x,y)),L=V=>C(u(V,c,E,b)),I=a.ori==0?Qo:Zo;const T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Ko},N=T.stroke,S=a.dir*(a.ori==0?1:-1);v=Uo(l,v,d,1),d=Uo(l,v,d,-1);let _=L(l[S==1?v:d]),$=A(s[S==1?v:d]),R=$,O=$;f&&e==-1&&(O=k,I(N,O,_)),I(N,$,_);for(let V=S==1?v:d;V>=v&&V<=d;V+=S){let q=l[V];if(q==null)continue;let X=A(s[V]),G=L(q);e==1?I(N,X,_):I(N,R,G),I(N,X,G),_=G,R=X}let F=R;f&&e==1&&(F=k+w,I(N,F,_));let[B,W]=Iu(h,p);if(g.fill!=null||B!=0){let V=T.fill=new Path2D(N),q=g.fillTo(h,p,g.min,g.max,B),X=L(q);I(V,F,X),I(V,O,X)}if(!g.spanGaps){let V=[];V.push(...Ou(s,l,v,d,S,A,r));let q=g.width*$t/2,X=t||e==1?q:-q,G=t||e==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),T.gaps=V=g.gaps(h,p,v,d,V),T.clip=cl(V,a.ori,y,b,x,E)}return W!=0&&(T.band=W==2?[di(h,p,v,d,N,-1),di(h,p,v,d,N,1)]:di(h,p,v,d,N,W)),T})}function tm(n,e,t,r,f,h,p=en){if(n.length>1){let v=null;for(let d=0,g=1/0;d<n.length;d++)if(e[d]!==void 0){if(v!=null){let s=Cn(n[d]-n[v]);s<g&&(g=s,p=Cn(t(n[d],r,f,h)-t(n[v],r,f,h)))}v=d}}return p}function lk(n){n=n||Ps;const e=St(n.size,[.6,en,1]),t=n.align||0,r=n.gap||0;let f=n.radius;f=f==null?[0,0]:typeof f=="number"?[f,0]:f;const h=wt(f),p=1-e[0],v=St(e[1],en),d=St(e[2],1),g=St(n.disp,Ps),s=St(n.each,c=>{}),{fill:l,stroke:a}=g;return(c,o,u,y)=>go(c,o,(b,x,E,C,k,w,A,L,I,T,N)=>{let S=b.pxRound,_=t,$=r*$t,R=v*$t,O=d*$t,F,B;C.ori==0?[F,B]=h(c,o):[B,F]=h(c,o);const W=C.dir*(C.ori==0?1:-1);let V=C.ori==0?dl:Du,q=C.ori==0?s:(Ve,ce,Ee,Ie,Ye,Qe,mt)=>{s(Ve,ce,Ee,Ye,Ie,mt,Qe)},X=St(c.bands,_u).find(Ve=>Ve.series[0]==o),G=X!=null?X.dir:0,Z=b.fillTo(c,o,b.min,b.max,G),re=S(A(Z,k,N,I)),J,ae,me,ve=T,pe=S(b.width*$t),Ce=!1,lt=null,Wt=null,gt=null,vt=null;l!=null&&(pe==0||a!=null)&&(Ce=!0,lt=l.values(c,o,u,y),Wt=new Map,new Set(lt).forEach(Ve=>{Ve!=null&&Wt.set(Ve,new Path2D)}),pe>0&&(gt=a.values(c,o,u,y),vt=new Map,new Set(gt).forEach(Ve=>{Ve!=null&&vt.set(Ve,new Path2D)})));let{x0:pn,size:Ft}=g;if(pn!=null&&Ft!=null){_=1,x=pn.values(c,o,u,y),pn.unit==2&&(x=x.map(ce=>c.posToVal(L+ce*T,C.key,!0)));let Ve=Ft.values(c,o,u,y);Ft.unit==2?ae=Ve[0]*T:ae=w(Ve[0],C,T,L)-w(0,C,T,L),ve=tm(x,E,w,C,T,L,ve),me=ve-ae+$}else ve=tm(x,E,w,C,T,L,ve),me=ve*p+$,ae=ve-me;me<1&&(me=0),pe>=ae/2&&(pe=0),me<5&&(S=ig);let nn=me>0,ei=ve-me-(nn?pe:0);ae=S(xu(ei,O,R)),J=(_==0?ae/2:_==W?0:ae)-_*W*((_==0?$/2:0)+(nn?pe/2:0));const An={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},ln=Ce?null:new Path2D;let Be=null;if(X!=null)Be=c.data[X.series[1]];else{let{y0:Ve,y1:ce}=g;Ve!=null&&ce!=null&&(E=ce.values(c,o,u,y),Be=Ve.values(c,o,u,y))}let We=F*ae,cn=B*ae;for(let Ve=W==1?u:y;Ve>=u&&Ve<=y;Ve+=W){let ce=E[Ve];if(ce==null)continue;if(Be!=null){let dt=Be[Ve]??0;if(ce-dt==0)continue;re=A(dt,k,N,I)}let Ee=C.distr!=2||g!=null?x[Ve]:Ve,Ie=w(Ee,C,T,L),Ye=A(St(ce,Z),k,N,I),Qe=S(Ie-J),mt=S(zn(Ye,re)),yt=S(Mr(Ye,re)),ht=mt-yt;if(ce!=null){let dt=ce<0?cn:We,ot=ce<0?We:cn;Ce?(pe>0&&gt[Ve]!=null&&V(vt.get(gt[Ve]),Qe,yt+vr(pe/2),ae,zn(0,ht-pe),dt,ot),lt[Ve]!=null&&V(Wt.get(lt[Ve]),Qe,yt+vr(pe/2),ae,zn(0,ht-pe),dt,ot)):V(ln,Qe,yt+vr(pe/2),ae,zn(0,ht-pe),dt,ot),q(c,o,Ve,Qe-pe/2,yt,ae+pe,ht)}}return pe>0?An.stroke=Ce?vt:ln:Ce||(An._fill=b.width==0?b._fill:b._stroke??b._fill,An.width=0),An.fill=Ce?Wt:ln,An})}function ck(n,e){const t=St(e==null?void 0:e.alignGaps,0);return(r,f,h,p)=>go(r,f,(v,d,g,s,l,a,c,o,u,y,b)=>{let x=v.pxRound,E=F=>x(a(F,s,y,o)),C=F=>x(c(F,l,b,u)),k,w,A;s.ori==0?(k=ul,A=Qo,w=Qg):(k=hl,A=Zo,w=Zg);const L=s.dir*(s.ori==0?1:-1);h=Uo(g,h,p,1),p=Uo(g,h,p,-1);let I=E(d[L==1?h:p]),T=I,N=[],S=[];for(let F=L==1?h:p;F>=h&&F<=p;F+=L)if(g[F]!=null){let B=d[F],W=E(B);N.push(T=W),S.push(C(g[F]))}const _={stroke:n(N,S,k,A,w,x),fill:null,clip:null,band:null,gaps:null,flags:Ko},$=_.stroke;let[R,O]=Iu(r,f);if(v.fill!=null||R!=0){let F=_.fill=new Path2D($),B=v.fillTo(r,f,v.min,v.max,R),W=C(B);A(F,T,W),A(F,I,W)}if(!v.spanGaps){let F=[];F.push(...Ou(d,g,h,p,L,E,t)),_.gaps=F=v.gaps(r,f,h,p,F),_.clip=cl(F,s.ori,o,u,y,b)}return O!=0&&(_.band=O==2?[di(r,f,h,p,$,-1),di(r,f,h,p,$,1)]:di(r,f,h,p,$,O)),_})}function uk(n){return ck(hk,n)}function hk(n,e,t,r,f,h){const p=n.length;if(p<2)return null;const v=new Path2D;if(t(v,n[0],e[0]),p==2)r(v,n[1],e[1]);else{let d=Array(p),g=Array(p-1),s=Array(p-1),l=Array(p-1);for(let a=0;a<p-1;a++)s[a]=e[a+1]-e[a],l[a]=n[a+1]-n[a],g[a]=s[a]/l[a];d[0]=g[0];for(let a=1;a<p-1;a++)g[a]===0||g[a-1]===0||g[a-1]>0!=g[a]>0?d[a]=0:(d[a]=3*(l[a-1]+l[a])/((2*l[a]+l[a-1])/g[a-1]+(l[a]+2*l[a-1])/g[a]),isFinite(d[a])||(d[a]=0));d[p-1]=g[p-2];for(let a=0;a<p-1;a++)f(v,n[a]+l[a]/3,e[a]+d[a]*l[a]/3,n[a+1]-l[a]/3,e[a+1]-d[a+1]*l[a]/3,n[a+1],e[a+1])}return v}const Nu=new Set;function nm(){for(let n of Nu)n.syncRect(!0)}zo&&(uo(qx,Wo,nm),uo(Gx,Wo,nm,!0),uo(Xa,Wo,()=>{Wn.pxRatio=$t}));const dk=em(),fk=Jg();function rm(n,e,t,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,h)=>Fu(f,h,e,t))}function pk(n,e){return n.map((t,r)=>r==0?{}:bn({},e,t))}function Fu(n,e,t,r){return bn({},e==0?t:r,n)}function im(n,e,t){return e==null?qo:[e,t]}const gk=im;function mk(n,e,t){return e==null?qo:nl(e,t,vu,!0)}function om(n,e,t,r){return e==null?qo:tl(e,t,n.scales[r].log,!1)}const yk=om;function sm(n,e,t,r){return e==null?qo:yu(e,t,n.scales[r].log,!1)}const vk=sm;function bk(n,e,t,r,f){let h=zn(rg(n),rg(e)),p=e-n,v=Br(f/r*p,t);do{let d=t[v],g=r*d/p;if(g>=f&&h+(d<5?Ii.get(d):0)<=17)return[d,g]}while(++v<t.length);return[0,0]}function am(n){let e,t;return n=n.replace(/(\d+)px/,(r,f)=>(e=Mn((t=+f)*$t))+"px"),[n,e,t]}function wk(n){n.show&&[n.font,n.labelFont].forEach(e=>{let t=Nt(e[2]*$t,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t})}function Wn(n,e,t){const r={mode:St(n.mode,1)},f=r.mode;function h(P,j){return((j.distr==3?hi(P>0?P:j.clamp(r,P,j.min,j.max,j.key)):j.distr==4?wu(P,j.asinh):j.distr==100?j.fwd(P):P)-j._min)/(j._max-j._min)}function p(P,j,Y,K){let te=h(P,j);return K+Y*(j.dir==-1?1-te:te)}function v(P,j,Y,K){let te=h(P,j);return K+Y*(j.dir==-1?te:1-te)}function d(P,j,Y,K){return j.ori==0?p(P,j,Y,K):v(P,j,Y,K)}r.valToPosH=p,r.valToPosV=v;let g=!1;r.status=0;const s=r.root=$r(Ax);if(n.id!=null&&(s.id=n.id),mr(s,n.class),n.title){let P=$r(Lx,s);P.textContent=n.title}const l=Hr("canvas"),a=r.ctx=l.getContext("2d"),c=$r(Rx,s);uo("click",c,P=>{P.target===u&&(ze!=Ui||Ut!=Vi)&&En.click(r,P)},!0);const o=r.under=$r(Ix,c);c.appendChild(l);const u=r.over=$r(Ox,c);n=Go(n);const y=+St(n.pxAlign,1),b=qg(y);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(r,n)||n)});const x=n.ms||.001,E=r.series=f==1?rm(n.series||[],Dg,zg,!1):pk(n.series||[null],jg),C=r.axes=rm(n.axes||[],Og,Pg,!0),k=r.scales={},w=r.bands=n.bands||[];w.forEach(P=>{P.fill=wt(P.fill||null),P.dir=St(P.dir,-1)});const A=f==2?E[1].facets[0].scale:E[0].scale,L={axes:nd,series:Hl},I=(n.drawOrder||["axes","series"]).map(P=>L[P]);function T(P){let j=k[P];if(j==null){let Y=(n.scales||Ps)[P]||Ps;if(Y.from!=null)T(Y.from),k[P]=bn({},k[Y.from],Y,{key:P});else{j=k[P]=bn({},P==A?Wg:nk,Y),j.key=P;let K=j.time,te=j.range,oe=Oi(te);if((P!=A||f==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Xp:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Xp:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&ol(te))){let de=te;te=(be,ke,$e)=>ke==null?qo:nl(ke,$e,de)}j.range=wt(te||(K?gk:P==A?j.distr==3?yk:j.distr==4?vk:im:j.distr==3?om:j.distr==4?sm:mk)),j.auto=wt(oe?!1:j.auto),j.clamp=wt(j.clamp||tk),j._min=j._max=null}}}T("x"),T("y"),f==1&&E.forEach(P=>{T(P.scale)}),C.forEach(P=>{T(P.scale)});for(let P in n.scales)T(P);const N=k[A],S=N.distr;let _,$;N.ori==0?(mr(s,Tx),_=p,$=v):(mr(s,Ex),_=v,$=p);const R={};for(let P in k){let j=k[P];(j.min!=null||j.max!=null)&&(R[P]={min:j.min,max:j.max},j.min=j.max=null)}const O=n.tzDate||(P=>new Date(Mn(P/x))),F=n.fmtDate||ku,B=x==1?A_(O):L_(O),W=Cg(O,$g(x==1?M_:E_,F)),V=Ag(O,Mg(I_,F)),q=[],X=r.legend=bn({},N_,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=wt(Z.width),Z.dash=wt(Z.dash),Z.stroke=wt(Z.stroke),Z.fill=wt(Z.fill);let re,J,ae,me=[],ve=[],pe,Ce=!1,lt={};if(X.live){const P=E[1]?E[1].values:null;Ce=P!=null,pe=Ce?P(r,1,0):{_:0};for(let j in pe)lt[j]=hu}if(G)if(re=Hr("table",Bx,s),ae=Hr("tbody",null,re),X.mount(r,re),Ce){J=Hr("thead",null,re,ae);let P=Hr("tr",null,J);Hr("th",null,P);for(var Wt in pe)Hr("th",Hp,P).textContent=Wt}else mr(re,zx),X.live&&mr(re,jx);const gt={show:!0},vt={show:!1};function pn(P,j){if(j==0&&(Ce||!X.live||f==2))return qo;let Y=[],K=Hr("tr",Wx,ae,ae.childNodes[j]);mr(K,P.class),P.show||mr(K,co);let te=Hr("th",null,K);if(Z.show){let be=$r(Ux,te);if(j>0){let ke=Z.width(r,j);ke&&(be.style.border=ke+"px "+Z.dash(r,j)+" "+Z.stroke(r,j)),be.style.background=Z.fill(r,j)}}let oe=$r(Hp,te);oe.textContent=P.label,j>0&&(Z.show||(oe.style.color=P.width>0?Z.stroke(r,j):Z.fill(r,j)),nn("click",te,be=>{if(je._lock)return;pi(be);let ke=E.indexOf(P);if((be.ctrlKey||be.metaKey)!=X.isolate){let $e=E.some((Ae,Le)=>Le>0&&Le!=ke&&Ae.show);E.forEach((Ae,Le)=>{Le>0&&Pn(Le,$e?Le==ke?gt:vt:gt,!0,rn.setSeries)})}else Pn(ke,{show:!P.show},!0,rn.setSeries)},!1),ni&&nn(Up,te,be=>{je._lock||(pi(be),Pn(E.indexOf(P),vi,!0,rn.setSeries))},!1));for(var de in pe){let be=Hr("td",Vx,K);be.textContent="--",Y.push(be)}return[K,Y]}const Ft=new Map;function nn(P,j,Y,K=!0){const te=Ft.get(j)||{},oe=je.bind[P](r,j,Y,K);oe&&(uo(P,j,te[P]=oe),Ft.set(j,te))}function ei(P,j,Y){const K=Ft.get(j)||{};for(let te in K)(P==null||te==P)&&(mu(te,j,K[te]),delete K[te]);P==null&&Ft.delete(j)}let An=0,ln=0,Be=0,We=0,cn=0,Ve=0,ce=cn,Ee=Ve,Ie=Be,Ye=We,Qe=0,mt=0,yt=0,ht=0;r.bbox={};let dt=!1,ot=!1,Yt=!1,Vn=!1,fi=!1,ar=!1;function Ys(P,j,Y){(Y||P!=r.width||j!=r.height)&&Ks(P,j),mi(!1),Yt=!0,ot=!0,zi()}function Ks(P,j){r.width=An=Be=P,r.height=ln=We=j,cn=Ve=0,Zh(),Jh();let Y=r.bbox;Qe=Y.left=fo(cn*$t,.5),mt=Y.top=fo(Ve*$t,.5),yt=Y.width=fo(Be*$t,.5),ht=Y.height=fo(We*$t,.5)}const Il=3;function Kh(){let P=!1,j=0;for(;!P;){j++;let Y=zl(j),K=Wl(j);P=j==Il||Y&&K,P||(Ks(r.width,r.height),ot=!0)}}function Qh({width:P,height:j}){Ys(P,j)}r.setSize=Qh;function Zh(){let P=!1,j=!1,Y=!1,K=!1;C.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:be}=te,ke=de%2,$e=te.label!=null?te.labelSize:0,Ae=be+$e;Ae>0&&(ke?(Be-=Ae,de==3?(cn+=Ae,K=!0):Y=!0):(We-=Ae,de==0?(Ve+=Ae,P=!0):j=!0))}}),gi[0]=P,gi[1]=Y,gi[2]=j,gi[3]=K,Be-=ri[1]+ri[3],cn+=ri[3],We-=ri[2]+ri[0],Ve+=ri[0]}function Jh(){let P=cn+Be,j=Ve+We,Y=cn,K=Ve;function te(oe,de){switch(oe){case 1:return P+=de,P-de;case 2:return j+=de,j-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}C.forEach((oe,de)=>{if(oe.show&&oe._show){let be=oe.side;oe._pos=te(be,oe._size),oe.label!=null&&(oe._lpos=te(be,oe.labelSize))}})}const je=r.cursor=bn({},z_,{drag:{y:f==2}},n.cursor);if(je.dataIdx==null){let P=je.hover,j=P.skip=new Set(P.skip??[]);j.add(void 0);let Y=P.prox=wt(P.prox),K=P.bias??(P.bias=0);je.dataIdx=(te,oe,de,be)=>{if(oe==0)return de;let ke=de,$e=Y(te,oe,de,be)??en,Ae=$e>=0&&$e<en,Le=N.ori==0?Be:We,Ze=je.left,Rt=e[0],st=e[oe];if(j.has(st[de])){ke=null;let Ke=null,Xe=null,Ne;if(K==0||K==-1)for(Ne=de;Ke==null&&Ne-- >0;)j.has(st[Ne])||(Ke=Ne);if(K==0||K==1)for(Ne=de;Xe==null&&Ne++<st.length;)j.has(st[Ne])||(Xe=Ne);if(Ke!=null||Xe!=null)if(Ae){let At=Ke==null?-1/0:_(Rt[Ke],N,Le,0),on=Xe==null?1/0:_(Rt[Xe],N,Le,0),Jt=Ze-At,Ht=on-Ze;Jt<=Ht?Jt<=$e&&(ke=Ke):Ht<=$e&&(ke=Xe)}else ke=Xe==null?Ke:Ke==null?Xe:de-Ke<=Xe-de?Ke:Xe}else Ae&&Cn(Ze-_(Rt[de],N,Le,0))>$e&&(ke=null);return ke}}const pi=P=>{je.event=P};je.idxs=q,je._lock=!1;let Fn=je.points;Fn.show=wt(Fn.show),Fn.size=wt(Fn.size),Fn.stroke=wt(Fn.stroke),Fn.width=wt(Fn.width),Fn.fill=wt(Fn.fill);const ti=r.focus=bn({},n.focus||{alpha:.3},je.focus),ni=ti.prox>=0,Di=ni&&Fn.one;let qn=[],Ni=[],Fi=[];function Ol(P,j){let Y=Fn.show(r,j);if(Y)return mr(Y,Hx),mr(Y,P.class),Qr(Y,-10,-10,Be,We),u.insertBefore(Y,qn[j]),Y}function Dl(P,j){if(f==1||j>0){let Y=f==1&&k[P.scale].time,K=P.value;P.value=Y?hg(K)?Ag(O,Mg(K,F)):K||V:K||J_,P.label=P.label||(Y?U_:W_)}if(Di||j>0){P.width=P.width==null?1:P.width,P.paths=P.paths||dk,P.fillTo=wt(P.fillTo||rk),P.pxAlign=+St(P.pxAlign,y),P.pxRound=qg(P.pxAlign),P.stroke=wt(P.stroke||null),P.fill=wt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=X_(zn(1,P.width),1),K=P.points=bn({},{size:Y,width:zn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:fk,_stroke:null,_fill:null},P.points);K.show=wt(K.show),K.filter=wt(K.filter),K.fill=wt(K.fill),K.stroke=wt(K.stroke),K.paths=wt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=pn(P,j);me.splice(j,0,Y[0]),ve.splice(j,0,Y[1]),X.values.push(null)}if(je.show){q.splice(j,0,null);let Y=null;Di?j==0&&(Y=Ol(P,j)):j>0&&(Y=Ol(P,j)),qn.splice(j,0,Y),Ni.splice(j,0,0),Fi.splice(j,0,0)}un("addSeries",j)}function Xh(P,j){j=j??E.length,P=f==1?Fu(P,j,Dg,zg):Fu(P,j,{},jg),E.splice(j,0,P),Dl(E[j],j)}r.addSeries=Xh;function ed(P){if(E.splice(P,1),G){X.values.splice(P,1),ve.splice(P,1);let j=me.splice(P,1)[0];ei(null,j.firstChild),j.remove()}je.show&&(q.splice(P,1),qn.splice(P,1)[0].remove(),Ni.splice(P,1),Fi.splice(P,1)),un("delSeries",P)}r.delSeries=ed;const gi=[!1,!1,!1,!1];function td(P,j){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?E[1].scale:A,K=k[P.scale]);let te=K.time;P.size=wt(P.size),P.space=wt(P.space),P.rotate=wt(P.rotate),Oi(P.incrs)&&P.incrs.forEach(de=>{!Ii.has(de)&&Ii.set(de,cg(de))}),P.incrs=wt(P.incrs||(K.distr==2?S_:te?x==1?C_:T_:po)),P.splits=wt(P.splits||(te&&K.distr==1?B:K.distr==3?Eu:K.distr==4?G_:q_)),P.stroke=wt(P.stroke),P.grid.stroke=wt(P.grid.stroke),P.ticks.stroke=wt(P.ticks.stroke),P.border.stroke=wt(P.border.stroke);let oe=P.values;P.values=Oi(oe)&&!Oi(oe[0])?wt(oe):te?Oi(oe)?Cg(O,$g(oe,F)):hg(oe)?R_(O,oe):oe||W:oe||V_,P.filter=wt(P.filter||(K.distr>=3&&K.log==10?Q_:K.distr==3&&K.log==2?Z_:og)),P.font=am(P.font),P.labelFont=am(P.labelFont),P._size=P.size(r,null,j,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(gi[j]=!0,P._el=$r(Dx,c))}}function Pi(P,j,Y,K){let[te,oe,de,be]=Y,ke=j%2,$e=0;return ke==0&&(be||oe)&&($e=j==0&&!te||j==2&&!de?Mn(Og.size/3):0),ke==1&&(te||de)&&($e=j==1&&!oe||j==3&&!be?Mn(Pg.size/2):0),$e}const Nl=r.padding=(n.padding||[Pi,Pi,Pi,Pi]).map(P=>wt(St(P,Pi))),ri=r._padding=Nl.map((P,j)=>P(r,j,gi,0));let Tn,xn=null,_n=null;const ts=f==1?E[0].idxs:null;let Gn=null,bo=!1;function wo(P,j){if(e=P??[],r.data=r._data=e,f==2){Tn=0;for(let Y=1;Y<E.length;Y++)Tn+=e[Y][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),Gn=e[0],Tn=Gn.length;let Y=e;if(S==2){Y=e.slice();let K=Y[0]=Array(Tn);for(let te=0;te<Tn;te++)K[te]=te}r._data=e=Y}if(mi(!0),un("setData"),S==2&&(Yt=!0),j!==!1){let Y=N;Y.auto(r,bo)?Qs():Tr(A,Y.min,Y.max),Vn=Vn||je.left>=0,ar=!0,zi()}}r.setData=wo;function Qs(){bo=!0;let P,j;f==1&&(Tn>0?(xn=ts[0]=0,_n=ts[1]=Tn-1,P=e[0][xn],j=e[0][_n],S==2?(P=xn,j=_n):P==j&&(S==3?[P,j]=tl(P,P,N.log,!1):S==4?[P,j]=yu(P,P,N.log,!1):N.time?j=P+Mn(86400/x):[P,j]=nl(P,j,vu,!0))):(xn=ts[0]=P=null,_n=ts[1]=j=null)),Tr(A,P,j)}let ns,Hi,rs,is,os,Zs,Js,Xs,ea,Ar;function ta(P,j,Y,K,te,oe){P??(P=jp),Y??(Y=_u),K??(K="butt"),te??(te=jp),oe??(oe="round"),P!=ns&&(a.strokeStyle=ns=P),te!=Hi&&(a.fillStyle=Hi=te),j!=rs&&(a.lineWidth=rs=j),oe!=os&&(a.lineJoin=os=oe),K!=Zs&&(a.lineCap=Zs=K),Y!=is&&a.setLineDash(is=Y)}function na(P,j,Y,K){j!=Hi&&(a.fillStyle=Hi=j),P!=Js&&(a.font=Js=P),Y!=Xs&&(a.textAlign=Xs=Y),K!=ea&&(a.textBaseline=ea=K)}function xo(P,j,Y,K,te=0){if(K.length>0&&P.auto(r,bo)&&(j==null||j.min==null)){let oe=St(xn,0),de=St(_n,K.length-1),be=Y.min==null?P.distr==3?Zx(K,oe,de):Qx(K,oe,de,te):[Y.min,Y.max];P.min=Mr(P.min,Y.min=be[0]),P.max=zn(P.max,Y.max=be[1])}}const Fl={min:null,max:null};function Pl(){for(let K in k){let te=k[K];R[K]==null&&(te.min==null||R[A]!=null&&te.auto(r,bo))&&(R[K]=Fl)}for(let K in k){let te=k[K];R[K]==null&&te.from!=null&&R[te.from]!=null&&(R[K]=Fl)}R[A]!=null&&mi(!0);let P={};for(let K in R){let te=R[K];if(te!=null){let oe=P[K]=Go(k[K],o_);if(te.min!=null)bn(oe,te);else if(K!=A||f==2)if(Tn==0&&oe.from==null){let de=oe.range(r,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=en,oe.max=-1/0}}if(Tn>0){E.forEach((K,te)=>{if(f==1){let oe=K.scale,de=R[oe];if(de==null)return;let be=P[oe];if(te==0){let ke=be.range(r,be.min,be.max,oe);be.min=ke[0],be.max=ke[1],xn=Br(be.min,e[0]),_n=Br(be.max,e[0]),_n-xn>1&&(e[0][xn]<be.min&&xn++,e[0][_n]>be.max&&_n--),K.min=Gn[xn],K.max=Gn[_n]}else K.show&&K.auto&&xo(be,de,K,e[te],K.sorted);K.idxs[0]=xn,K.idxs[1]=_n}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,be=oe.scale,ke=de.scale,[$e,Ae]=e[te],Le=P[be],Ze=P[ke];Le!=null&&xo(Le,R[be],oe,$e,oe.sorted),Ze!=null&&xo(Ze,R[ke],de,Ae,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=R[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(r,te.min==en?null:te.min,te.max==-1/0?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(r,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let j={},Y=!1;for(let K in P){let te=P[K],oe=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?hi(oe.min):de==4?wu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?hi(oe.max):de==4?wu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,j[K]=Y=!0}}if(Y){E.forEach((K,te)=>{f==2?te>0&&j.y&&(K._paths=null):j[K.scale]&&(K._paths=null)});for(let K in j)Yt=!0,un("setScale",K);je.show&&je.left>=0&&(Vn=ar=!0)}for(let K in R)R[K]=null}function ss(P){let j=xu(xn-1,0,Tn-1),Y=xu(_n+1,0,Tn-1);for(;P[j]==null&&j>0;)j--;for(;P[Y]==null&&Y<Tn-1;)Y++;return[j,Y]}function Hl(){Tn>0&&(E.forEach((P,j)=>{if(j>0&&P.show&&(Bl(j,!1),Bl(j,!0),P._paths==null)){Ar!=P.alpha&&(a.globalAlpha=Ar=P.alpha);let Y=f==2?[0,e[j][0].length-1]:ss(e[j]);P._paths=P.paths(r,j,Y[0],Y[1]),Ar!=1&&(a.globalAlpha=Ar=1)}}),E.forEach((P,j)=>{if(j>0&&P.show){Ar!=P.alpha&&(a.globalAlpha=Ar=P.alpha),P._paths!=null&&ra(j,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(r,j,xn,_n,Y),te=P.points.filter(r,j,K,Y);(K||te)&&(P.points._paths=P.points.paths(r,j,xn,_n,te),ra(j,!0))}Ar!=1&&(a.globalAlpha=Ar=1),un("drawSeries",j)}}))}function Bl(P,j){let Y=j?E[P].points:E[P];Y._stroke=Y.stroke(r,P),Y._fill=Y.fill(r,P)}function ra(P,j){let Y=j?E[P].points:E[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:be=Y._stroke,_fill:ke=Y._fill,_width:$e=Y.width}=Y._paths;$e=Nt($e*$t,3);let Ae=null,Le=$e%2/2;j&&ke==null&&(ke=$e>0?"#fff":be);let Ze=Y.pxAlign==1&&Le>0;if(Ze&&a.translate(Le,Le),!j){let Rt=Qe-$e/2,st=mt-$e/2,Ke=yt+$e,Xe=ht+$e;Ae=new Path2D,Ae.rect(Rt,st,Ke,Xe)}j?ia(be,$e,Y.dash,Y.cap,ke,K,te,de,oe):jl(P,be,$e,Y.dash,Y.cap,ke,K,te,de,Ae,oe),Ze&&a.translate(-Le,-Le)}function jl(P,j,Y,K,te,oe,de,be,ke,$e,Ae){let Le=!1;ke!=0&&w.forEach((Ze,Rt)=>{if(Ze.series[0]==P){let st=E[Ze.series[1]],Ke=e[Ze.series[1]],Xe=(st._paths||Ps).band;Oi(Xe)&&(Xe=Ze.dir==1?Xe[0]:Xe[1]);let Ne,At=null;st.show&&Xe&&Xx(Ke,xn,_n)?(At=Ze.fill(r,Rt)||oe,Ne=st._paths.clip):Xe=null,ia(j,Y,K,te,At,de,be,ke,$e,Ae,Ne,Xe),Le=!0}}),Le||ia(j,Y,K,te,oe,de,be,ke,$e,Ae)}const as=Ko|Ru;function ia(P,j,Y,K,te,oe,de,be,ke,$e,Ae,Le){ta(P,j,Y,K,te),(ke||$e||Le)&&(a.save(),ke&&a.clip(ke),$e&&a.clip($e)),Le?(be&as)==as?(a.clip(Le),Ae&&a.clip(Ae),Bi(te,de),_o(P,oe,j)):be&Ru?(Bi(te,de),a.clip(Le),_o(P,oe,j)):be&Ko&&(a.save(),a.clip(Le),Ae&&a.clip(Ae),Bi(te,de),a.restore(),_o(P,oe,j)):(Bi(te,de),_o(P,oe,j)),(ke||$e||Le)&&a.restore()}function _o(P,j,Y){Y>0&&(j instanceof Map?j.forEach((K,te)=>{a.strokeStyle=ns=te,a.stroke(K)}):j!=null&&P&&a.stroke(j))}function Bi(P,j){j instanceof Map?j.forEach((Y,K)=>{a.fillStyle=Hi=K,a.fill(Y)}):j!=null&&P&&a.fill(j)}function oa(P,j,Y,K){let te=C[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(r,P,j,Y,K),be=te._incrs=te.incrs(r,P,j,Y,K,de);oe=bk(j,Y,be,K,de)}return te._found=oe}function ii(P,j,Y,K,te,oe,de,be,ke,$e){let Ae=de%2/2;y==1&&a.translate(Ae,Ae),ta(be,de,ke,$e,be),a.beginPath();let Le,Ze,Rt,st,Ke=te+(K==0||K==3?-oe:oe);Y==0?(Ze=te,st=Ke):(Le=te,Rt=Ke);for(let Xe=0;Xe<P.length;Xe++)j[Xe]!=null&&(Y==0?Le=Rt=P[Xe]:Ze=st=P[Xe],a.moveTo(Le,Ze),a.lineTo(Rt,st));a.stroke(),y==1&&a.translate(-Ae,-Ae)}function zl(P){let j=!0;return C.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(j=!1,Y._show=!1,mi(!1));return}else Y._show||(j=!1,Y._show=!0,mi(!1));let oe=Y.side,de=oe%2,{min:be,max:ke}=te,[$e,Ae]=oa(K,be,ke,de==0?Be:We);if(Ae==0)return;let Le=te.distr==2,Ze=Y._splits=Y.splits(r,K,be,ke,$e,Ae,Le),Rt=te.distr==2?Ze.map(Ne=>Gn[Ne]):Ze,st=te.distr==2?Gn[Ze[1]]-Gn[Ze[0]]:$e,Ke=Y._values=Y.values(r,Y.filter(r,Rt,K,Ae,st),K,Ae,st);Y._rotate=oe==2?Y.rotate(r,Ke,K,Ae):0;let Xe=Y._size;Y._size=Cr(Y.size(r,Ke,K,P)),Xe!=null&&Y._size!=Xe&&(j=!1)}),j}function Wl(P){let j=!0;return Nl.forEach((Y,K)=>{let te=Y(r,K,gi,P);te!=ri[K]&&(j=!1),ri[K]=te}),j}function nd(){for(let P=0;P<C.length;P++){let j=C[P];if(!j.show||!j._show)continue;let Y=j.side,K=Y%2,te,oe,de=j.stroke(r,P),be=Y==0||Y==3?-1:1;if(j.label){let Rn=j.labelGap*be,er=Mn((j._lpos+Rn)*$t);na(j.labelFont[0],de,"center",Y==2?Ds:Bp),a.save(),K==1?(te=oe=0,a.translate(er,Mn(mt+ht/2)),a.rotate((Y==3?-rl:rl)/2)):(te=Mn(Qe+yt/2),oe=er),a.fillText(j.label,te,oe),a.restore()}let[ke,$e]=j._found;if($e==0)continue;let Ae=k[j.scale],Le=K==0?yt:ht,Ze=K==0?Qe:mt,Rt=Mn(j.gap*$t),st=j._splits,Ke=Ae.distr==2?st.map(Rn=>Gn[Rn]):st,Xe=Ae.distr==2?Gn[st[1]]-Gn[st[0]]:ke,Ne=j.ticks,At=j.border,on=Ne.show?Mn(Ne.size*$t):0,Jt=j._rotate*-rl/180,Ht=b(j._pos*$t),Bt=(on+Rt)*be,ne=Ht+Bt;oe=K==0?ne:0,te=K==1?ne:0;let le=j.font[0],se=j.align==1?jo:j.align==2?lu:Jt>0?jo:Jt<0?lu:K==0?"center":Y==3?lu:jo,Me=Jt||K==1?"middle":Y==2?Ds:Bp;na(le,de,se,Me);let He=j.font[1]*j.lineGap,Je=st.map(Rn=>b(d(Rn,Ae,Le,Ze))),Tt=j._values;for(let Rn=0;Rn<Tt.length;Rn++){let er=Tt[Rn];if(er!=null){K==0?te=Je[Rn]:oe=Je[Rn],er=""+er;let In=er.indexOf(`
1408
+ `)==-1?[er]:er.split(/\n/gm);for(let wr=0;wr<In.length;wr++){let ur=In[wr];Jt?(a.save(),a.translate(te,oe+wr*He),a.rotate(Jt),a.fillText(ur,0,0),a.restore()):a.fillText(ur,te,oe+wr*He)}}}Ne.show&&ii(Je,Ne.filter(r,Ke,P,$e,Xe),K,Y,Ht,on,Nt(Ne.width*$t,3),Ne.stroke(r,P),Ne.dash,Ne.cap);let et=j.grid;et.show&&ii(Je,et.filter(r,Ke,P,$e,Xe),K,K==0?2:1,K==0?mt:Qe,K==0?ht:yt,Nt(et.width*$t,3),et.stroke(r,P),et.dash,et.cap),At.show&&ii([Ht],[1],K==0?1:0,K==0?1:2,K==1?mt:Qe,K==1?ht:yt,Nt(At.width*$t,3),At.stroke(r,P),At.dash,At.cap)}un("drawAxes")}function mi(P){E.forEach((j,Y)=>{Y>0&&(j._paths=null,P&&(f==1?(j.min=null,j.max=null):j.facets.forEach(K=>{K.min=null,K.max=null})))})}let ko=!1,ls=!1,ji=[];function rd(){ls=!1;for(let P=0;P<ji.length;P++)un(...ji[P]);ji.length=0}function zi(){ko||(d_(sa),ko=!0)}function id(P,j=!1){ko=!0,ls=j,P(r),sa(),j&&ji.length>0&&queueMicrotask(rd)}r.batch=id;function sa(){if(dt&&(Pl(),dt=!1),Yt&&(Kh(),Yt=!1),ot){if(qt(o,jo,cn),qt(o,Ds,Ve),qt(o,Is,Be),qt(o,Os,We),qt(u,jo,cn),qt(u,Ds,Ve),qt(u,Is,Be),qt(u,Os,We),qt(c,Is,An),qt(c,Os,ln),l.width=Mn(An*$t),l.height=Mn(ln*$t),C.forEach(({_el:P,_show:j,_size:Y,_pos:K,side:te})=>{if(P!=null)if(j){let oe=te===3||te===0?Y:0,de=te%2==1;qt(P,de?"left":"top",K-oe),qt(P,de?"width":"height",Y),qt(P,de?"top":"left",de?Ve:cn),qt(P,de?"height":"width",de?We:Be),pu(P,co)}else mr(P,co)}),ns=Hi=rs=os=Zs=Js=Xs=ea=is=null,Ar=1,$o(!0),cn!=ce||Ve!=Ee||Be!=Ie||We!=Ye){mi(!1);let P=Be/Ie,j=We/Ye;if(je.show&&!Vn&&je.left>=0){je.left*=P,je.top*=j,Wi&&Qr(Wi,Mn(je.left),0,Be,We),oi&&Qr(oi,0,Mn(je.top),Be,We);for(let Y=0;Y<qn.length;Y++){let K=qn[Y];K!=null&&(Ni[Y]*=P,Fi[Y]*=j,Qr(K,Cr(Ni[Y]),Cr(Fi[Y]),Be,We))}}if(Pt.show&&!fi&&Pt.left>=0&&Pt.width>0){Pt.left*=P,Pt.width*=P,Pt.top*=j,Pt.height*=j;for(let Y in da)qt(yi,Y,Pt[Y])}ce=cn,Ee=Ve,Ie=Be,Ye=We}un("setSize"),ot=!1}An>0&&ln>0&&(a.clearRect(0,0,l.width,l.height),un("drawClear"),I.forEach(P=>P()),un("draw")),Pt.show&&fi&&(cs(Pt),fi=!1),je.show&&Vn&&(Yn(null,!0,!1),Vn=!1),X.show&&X.live&&ar&&(So(),ar=!1),g||(g=!0,r.status=1,un("ready")),bo=!1,ko=!1}r.redraw=(P,j)=>{Yt=j||!1,P!==!1?Tr(A,N.min,N.max):zi()};function aa(P,j){let Y=k[P];if(Y.from==null){if(Tn==0){let K=Y.range(r,j.min,j.max,P);j.min=K[0],j.max=K[1]}if(j.min>j.max){let K=j.min;j.min=j.max,j.max=K}if(Tn>1&&j.min!=null&&j.max!=null&&j.max-j.min<1e-16)return;P==A&&Y.distr==2&&Tn>0&&(j.min=Br(j.min,e[0]),j.max=Br(j.max,e[0]),j.min==j.max&&j.max++),R[P]=j,dt=!0,zi()}}r.setScale=aa;let la,ca,Wi,oi,Ul,Vl,Ui,Vi,ql,Ot,ze,Ut,si=!1;const En=je.drag;let kn=En.x,Sn=En.y;je.show&&(je.x&&(la=$r(Fx,u)),je.y&&(ca=$r(Px,u)),N.ori==0?(Wi=la,oi=ca):(Wi=ca,oi=la),ze=je.left,Ut=je.top);const Pt=r.select=bn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),yi=Pt.show?$r(Nx,Pt.over?u:o):null;function cs(P,j){if(Pt.show){for(let Y in P)Pt[Y]=P[Y],Y in da&&qt(yi,Y,P[Y]);j!==!1&&un("setSelect")}}r.setSelect=cs;function Ln(P,j){let Y=E[P],K=G?me[P]:null;if(Y.show)K&&pu(K,co);else{K&&mr(K,co);let te=Di?qn[0]:qn[P];Qr(te,-10,-10,Be,We)}}function Tr(P,j,Y){aa(P,{min:j,max:Y})}function Pn(P,j,Y,K){j.focus!=null&&Kl(P),j.show!=null&&E.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=j.show,Ln(oe,j.show),f==2?(Tr(te.facets[0].scale,null,null),Tr(te.facets[1].scale,null,null)):Tr(te.scale,null,null),zi())}),Y!==!1&&un("setSeries",P,j),K&&Wr("setSeries",r,P,j)}r.setSeries=Pn;function Gl(P,j){bn(w[P],j)}function ua(P,j){P.fill=wt(P.fill||null),P.dir=St(P.dir,-1),j=j??w.length,w.splice(j,0,P)}function lr(P){P==null?w.length=0:w.splice(P,1)}r.addBand=ua,r.setBand=Gl,r.delBand=lr;function Yl(P,j){E[P].alpha=j,je.show&&qn[P]&&(qn[P].style.opacity=j),G&&me[P]&&(me[P].style.opacity=j)}let Er,zr,ai;const vi={focus:!0};function Kl(P){if(P!=ai){let j=P==null,Y=ti.alpha!=1;E.forEach((K,te)=>{if(f==1||te>0){let oe=j||te==0||te==P;K._focus=j?null:oe,Y&&Yl(te,oe?1:ti.alpha)}}),ai=P,Y&&zi()}}G&&ni&&nn(Vp,re,P=>{je._lock||(pi(P),ai!=null&&Pn(null,vi,!0,rn.setSeries))});function Zt(P,j,Y){let K=k[j];Y&&(P=P/$t-(K.ori==1?Ve:cn));let te=Be;K.ori==1&&(te=We,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,be=P/te,ke=oe+(de-oe)*be,$e=K.distr;return $e==3?Vo(10,ke):$e==4?t_(ke,K.asinh):$e==100?K.bwd(ke):ke}function od(P,j){let Y=Zt(P,A,j);return Br(Y,e[0],xn,_n)}r.valToIdx=P=>Br(P,e[0]),r.posToIdx=od,r.posToVal=Zt,r.valToPos=(P,j,Y)=>k[j].ori==0?p(P,k[j],Y?yt:Be,Y?Qe:0):v(P,k[j],Y?ht:We,Y?mt:0),r.setCursor=(P,j,Y)=>{ze=P.left,Ut=P.top,Yn(null,j,Y)};function Xn(P,j){qt(yi,jo,Pt.left=P),qt(yi,Is,Pt.width=j)}function Ql(P,j){qt(yi,Ds,Pt.top=P),qt(yi,Os,Pt.height=j)}let qi=N.ori==0?Xn:Ql,cr=N.ori==1?Xn:Ql;function us(){if(G&&X.live)for(let P=f==2?1:0;P<E.length;P++){if(P==0&&Ce)continue;let j=X.values[P],Y=0;for(let K in j)ve[P][Y++].firstChild.nodeValue=j[K]}}function So(P,j){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):i_(P.idx)||q.fill(P.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<E.length;Y++)(Y>0||f==1&&!Ce)&&Vt(Y,q[Y]);us()}ar=!1,j!==!1&&un("setLegend")}r.setLegend=So;function Vt(P,j){let Y=E[P],K=P==0&&S==2?Gn:e[P],te;Ce?te=Y.values(r,P,j)??lt:(te=Y.value(r,j==null?null:K[j],P,j),te=te==null?lt:{_:te}),X.values[P]=te}function Yn(P,j,Y){ql=ze,Ot=Ut,[ze,Ut]=je.move(r,ze,Ut),je.left=ze,je.top=Ut,je.show&&(Wi&&Qr(Wi,Mn(ze),0,Be,We),oi&&Qr(oi,0,Mn(Ut),Be,We));let K,te=xn>_n;Er=en,zr=null;let oe=N.ori==0?Be:We,de=N.ori==1?Be:We;if(ze<0||Tn==0||te){K=je.idx=null;for(let be=0;be<E.length;be++){let ke=qn[be];ke!=null&&Qr(ke,-10,-10,Be,We)}ni&&Pn(null,vi,!0,P==null&&rn.setSeries),X.live&&(q.fill(K),ar=!0)}else{let be,ke,$e;f==1&&(be=N.ori==0?ze:Ut,ke=Zt(be,A),K=je.idx=Br(ke,e[0],xn,_n),$e=_(e[0][K],N,oe,0));let Ae=-10,Le=-10,Ze=0,Rt=0,st=!0,Ke="",Xe="";for(let Ne=f==2?1:0;Ne<E.length;Ne++){let At=E[Ne],on=q[Ne],Jt=on==null?null:f==1?e[Ne][on]:e[Ne][1][on],Ht=je.dataIdx(r,Ne,K,ke),Bt=Ht==null?null:f==1?e[Ne][Ht]:e[Ne][1][Ht];ar=ar||Bt!=Jt||Ht!=on,q[Ne]=Ht;let ne=Ht==K?$e:_(f==1?e[0][Ht]:e[Ne][0][Ht],N,oe,0);if(Ne>0&&At.show){let le=Bt==null?-10:$(Bt,f==1?k[At.scale]:k[At.facets[1].scale],de,0);if(ni&&Bt!=null){let se=N.ori==1?ze:Ut,Me=Cn(ti.dist(r,Ne,Ht,le,se));if(Me<Er){let He=ti.bias;if(He!=0){let Je=Zt(se,At.scale),Tt=Bt>=0?1:-1,et=Je>=0?1:-1;et==Tt&&(et==1?He==1?Bt>=Je:Bt<=Je:He==1?Bt<=Je:Bt>=Je)&&(Er=Me,zr=Ne)}else Er=Me,zr=Ne}}if(ar||Di){let se,Me;N.ori==0?(se=ne,Me=le):(se=le,Me=ne);let He,Je,Tt,et,Rn,er,In=!0,wr=Fn.bbox;if(wr!=null){In=!1;let ur=wr(r,Ne);Tt=ur.left,et=ur.top,He=ur.width,Je=ur.height}else Tt=se,et=Me,He=Je=Fn.size(r,Ne);if(er=Fn.fill(r,Ne),Rn=Fn.stroke(r,Ne),Di)Ne==zr&&Er<=ti.prox&&(Ae=Tt,Le=et,Ze=He,Rt=Je,st=In,Ke=er,Xe=Rn);else{let ur=qn[Ne];ur!=null&&(Ni[Ne]=Tt,Fi[Ne]=et,Jp(ur,He,Je,In),Qp(ur,er,Rn),Qr(ur,Cr(Tt),Cr(et),Be,We))}}}}if(Di){let Ne=ti.prox,At=ai==null?Er<=Ne:Er>Ne||zr!=ai;if(ar||At){let on=qn[0];Ni[0]=Ae,Fi[0]=Le,Jp(on,Ze,Rt,st),Qp(on,Ke,Xe),Qr(on,Cr(Ae),Cr(Le),Be,We)}}}if(Pt.show&&si)if(P!=null){let[be,ke]=rn.scales,[$e,Ae]=rn.match,[Le,Ze]=P.cursor.sync.scales,Rt=P.cursor.drag;if(kn=Rt._x,Sn=Rt._y,kn||Sn){let{left:st,top:Ke,width:Xe,height:Ne}=P.select,At=P.scales[Le].ori,on=P.posToVal,Jt,Ht,Bt,ne,le,se=be!=null&&$e(be,Le),Me=ke!=null&&Ae(ke,Ze);se&&kn?(At==0?(Jt=st,Ht=Xe):(Jt=Ke,Ht=Ne),Bt=k[be],ne=_(on(Jt,Le),Bt,oe,0),le=_(on(Jt+Ht,Le),Bt,oe,0),qi(Mr(ne,le),Cn(le-ne))):qi(0,oe),Me&&Sn?(At==1?(Jt=st,Ht=Xe):(Jt=Ke,Ht=Ne),Bt=k[ke],ne=$(on(Jt,Ze),Bt,de,0),le=$(on(Jt+Ht,Ze),Bt,de,0),cr(Mr(ne,le),Cn(le-ne))):cr(0,de)}else ds()}else{let be=Cn(ql-Ul),ke=Cn(Ot-Vl);if(N.ori==1){let Ze=be;be=ke,ke=Ze}kn=En.x&&be>=En.dist,Sn=En.y&&ke>=En.dist;let $e=En.uni;$e!=null?kn&&Sn&&(kn=be>=$e,Sn=ke>=$e,!kn&&!Sn&&(ke>be?Sn=!0:kn=!0)):En.x&&En.y&&(kn||Sn)&&(kn=Sn=!0);let Ae,Le;kn&&(N.ori==0?(Ae=Ui,Le=ze):(Ae=Vi,Le=Ut),qi(Mr(Ae,Le),Cn(Le-Ae)),Sn||cr(0,de)),Sn&&(N.ori==1?(Ae=Ui,Le=ze):(Ae=Vi,Le=Ut),cr(Mr(Ae,Le),Cn(Le-Ae)),kn||qi(0,oe)),!kn&&!Sn&&(qi(0,0),cr(0,0))}if(En._x=kn,En._y=Sn,P==null){if(Y){if(Kn!=null){let[be,ke]=rn.scales;rn.values[0]=be!=null?Zt(N.ori==0?ze:Ut,be):null,rn.values[1]=ke!=null?Zt(N.ori==1?ze:Ut,ke):null}Wr(zp,r,ze,Ut,Be,We,K)}if(ni){let be=Y&&rn.setSeries,ke=ti.prox;ai==null?Er<=ke&&Pn(zr,vi,!0,be):Er>ke?Pn(null,vi,!0,be):zr!=ai&&Pn(zr,vi,!0,be)}}ar&&(X.idx=K,So()),j!==!1&&un("setCursor")}let Lr=null;Object.defineProperty(r,"rect",{get(){return Lr==null&&$o(!1),Lr}});function $o(P=!1){P?Lr=null:(Lr=u.getBoundingClientRect(),un("syncRect",Lr))}function hs(P,j,Y,K,te,oe,de){je._lock||si&&P!=null&&P.movementX==0&&P.movementY==0||(ha(P,j,Y,K,te,oe,de,!1,P!=null),P!=null?Yn(null,!0,!0):Yn(j,!0,!1))}function ha(P,j,Y,K,te,oe,de,be,ke){if(Lr==null&&$o(!1),pi(P),P!=null)Y=P.clientX-Lr.left,K=P.clientY-Lr.top;else{if(Y<0||K<0){ze=-10,Ut=-10;return}let[$e,Ae]=rn.scales,Le=j.cursor.sync,[Ze,Rt]=Le.values,[st,Ke]=Le.scales,[Xe,Ne]=rn.match,At=j.axes[0].side%2==1,on=N.ori==0?Be:We,Jt=N.ori==1?Be:We,Ht=At?oe:te,Bt=At?te:oe,ne=At?K:Y,le=At?Y:K;if(st!=null?Y=Xe($e,st)?d(Ze,k[$e],on,0):-10:Y=on*(ne/Ht),Ke!=null?K=Ne(Ae,Ke)?d(Rt,k[Ae],Jt,0):-10:K=Jt*(le/Bt),N.ori==1){let se=Y;Y=K,K=se}}ke&&((Y<=1||Y>=Be-1)&&(Y=fo(Y,Be)),(K<=1||K>=We-1)&&(K=fo(K,We))),be?(Ul=Y,Vl=K,[Ui,Vi]=je.move(r,Y,K)):(ze=Y,Ut=K)}const da={width:0,height:0,left:0,top:0};function ds(){cs(da,!1)}let fa,Co,bi,Zl;function pa(P,j,Y,K,te,oe,de){si=!0,kn=Sn=En._x=En._y=!1,ha(P,j,Y,K,te,oe,de,!0,!1),P!=null&&(nn(uu,du,ga,!1),Wr(Wp,r,Ui,Vi,Be,We,null));let{left:be,top:ke,width:$e,height:Ae}=Pt;fa=be,Co=ke,bi=$e,Zl=Ae,ds()}function ga(P,j,Y,K,te,oe,de){si=En._x=En._y=!1,ha(P,j,Y,K,te,oe,de,!1,!0);let{left:be,top:ke,width:$e,height:Ae}=Pt,Le=$e>0||Ae>0,Ze=fa!=be||Co!=ke||bi!=$e||Zl!=Ae;if(Le&&Ze&&cs(Pt),En.setScale&&Le&&Ze){let Rt=be,st=$e,Ke=ke,Xe=Ae;if(N.ori==1&&(Rt=ke,st=Ae,Ke=be,Xe=$e),kn&&Tr(A,Zt(Rt,A),Zt(Rt+st,A)),Sn)for(let Ne in k){let At=k[Ne];Ne!=A&&At.from==null&&At.min!=en&&Tr(Ne,Zt(Ke+Xe,Ne),Zt(Ke,Ne))}ds()}else je.lock&&(je._lock=!je._lock,Yn(null,!0,!1));P!=null&&(ei(uu,du),Wr(uu,r,ze,Ut,Be,We,null))}function ma(P,j,Y,K,te,oe,de){if(je._lock)return;pi(P);let be=si;if(si){let ke=!0,$e=!0,Ae=10,Le,Ze;N.ori==0?(Le=kn,Ze=Sn):(Le=Sn,Ze=kn),Le&&Ze&&(ke=ze<=Ae||ze>=Be-Ae,$e=Ut<=Ae||Ut>=We-Ae),Le&&ke&&(ze=ze<Ui?0:Be),Ze&&$e&&(Ut=Ut<Vi?0:We),Yn(null,!0,!0),si=!1}ze=-10,Ut=-10,Yn(null,!0,!0),be&&(si=be)}function fs(P,j,Y,K,te,oe,de){je._lock||(pi(P),Qs(),ds(),P!=null&&Wr(qp,r,ze,Ut,Be,We,null))}function ya(){C.forEach(wk),Ys(r.width,r.height,!0)}uo(Xa,Wo,ya);const Gi={};Gi.mousedown=pa,Gi.mousemove=hs,Gi.mouseup=ga,Gi.dblclick=fs,Gi.setSeries=(P,j,Y,K)=>{let te=rn.match[2];Y=te(r,j,Y),Y!=-1&&Pn(Y,K,!0,!1)},je.show&&(nn(Wp,u,pa),nn(zp,u,hs),nn(Up,u,P=>{pi(P),$o(!1)}),nn(Vp,u,ma),nn(qp,u,fs),Nu.add(r),r.syncRect=$o);const Yi=r.hooks=n.hooks||{};function un(P,j,Y){ls?ji.push([P,j,Y]):P in Yi&&Yi[P].forEach(K=>{K.call(null,r,j,Y)})}(n.plugins||[]).forEach(P=>{for(let j in P.hooks)Yi[j]=(Yi[j]||[]).concat(P.hooks[j])});const Jl=(P,j,Y)=>Y,rn=bn({key:null,setSeries:!1,filters:{pub:sg,sub:sg},scales:[A,E[1]?E[1].scale:null],match:[ag,ag,Jl],values:[null,null]},je.sync);rn.match.length==2&&rn.match.push(Jl),je.sync=rn;const Kn=rn.key,Mo=Vg(Kn);function Wr(P,j,Y,K,te,oe,de){rn.filters.pub(P,j,Y,K,te,oe,de)&&Mo.pub(P,j,Y,K,te,oe,de)}Mo.sub(r);function Xl(P,j,Y,K,te,oe,de){rn.filters.sub(P,j,Y,K,te,oe,de)&&Gi[P](null,j,Y,K,te,oe,de)}r.pub=Xl;function ec(){Mo.unsub(r),Nu.delete(r),Ft.clear(),mu(Xa,Wo,ya),s.remove(),re==null||re.remove(),un("destroy")}r.destroy=ec;function va(){un("init",n,e),wo(e||n.data,!1),R[A]?aa(A,R[A]):Qs(),fi=Pt.show&&(Pt.width>0||Pt.height>0),Vn=ar=!0,Ys(n.width,n.height)}return E.forEach(Dl),C.forEach(td),t?t instanceof HTMLElement?(t.appendChild(s),va()):t(r,va):va(),r}Wn.assign=bn,Wn.fmtNum=bu,Wn.rangeNum=nl,Wn.rangeLog=tl,Wn.rangeAsinh=yu,Wn.orient=go,Wn.pxRatio=$t,Wn.join=h_,Wn.fmtDate=ku,Wn.tzDate=__,Wn.sync=Vg;{Wn.addGap=ik,Wn.clipGaps=cl;let n=Wn.paths={points:Jg};n.linear=em,n.stepped=ak,n.bars=lk,n.spline=uk}var lm,cm;function xk(){return cm||(cm=1,lm=function(n,e,t,r,f){var h,p;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(f===void 0)f=n.length-1;else if(f=f|0,f<r||f>=n.length)throw new RangeError("invalid upper bound");for(;r<=f;)if(h=r+(f-r>>>1),p=+t(n[h],e,h,n),p<0)r=h+1;else if(p>0)f=h-1;else return h;return~r}),lm}var _k=xk();const rO=Dn("c",Na(_k));var Pu,um;function kk(){if(um)return Pu;um=1;function n(e,t,r){var f=-1,h=e.length;t<0&&(t=-t>h?0:h+t),r=r>h?h:r,r<0&&(r+=h),h=t>r?0:r-t>>>0,t>>>=0;for(var p=Array(h);++f<h;)p[f]=e[f+t];return p}return Pu=n,Pu}var Hu,hm;function Sk(){if(hm)return Hu;hm=1;var n=kk();function e(t,r,f){var h=t.length;return f=f===void 0?h:f,!r&&f>=h?t:n(t,r,f)}return Hu=e,Hu}var Bu,dm;function fm(){if(dm)return Bu;dm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=e+t+r,h="\\ufe0e\\ufe0f",p="\\u200d",v=RegExp("["+p+n+f+h+"]");function d(g){return v.test(g)}return Bu=d,Bu}var ju,pm;function $k(){if(pm)return ju;pm=1;function n(e){return e.split("")}return ju=n,ju}var zu,gm;function Ck(){if(gm)return zu;gm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=e+t+r,h="\\ufe0e\\ufe0f",p="["+n+"]",v="["+f+"]",d="\\ud83c[\\udffb-\\udfff]",g="(?:"+v+"|"+d+")",s="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",o=g+"?",u="["+h+"]?",y="(?:"+c+"(?:"+[s,l,a].join("|")+")"+u+o+")*",b=u+o+y,x="(?:"+[s+v+"?",v,l,a,p].join("|")+")",E=RegExp(d+"(?="+d+")|"+x+b,"g");function C(k){return k.match(E)||[]}return zu=C,zu}var Wu,mm;function Mk(){if(mm)return Wu;mm=1;var n=$k(),e=fm(),t=Ck();function r(f){return e(f)?t(f):n(f)}return Wu=r,Wu}var Uu,ym;function Ak(){if(ym)return Uu;ym=1;var n=typeof Ri=="object"&&Ri&&Ri.Object===Object&&Ri;return Uu=n,Uu}var Vu,vm;function Tk(){if(vm)return Vu;vm=1;var n=Ak(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Vu=t,Vu}var qu,bm;function Gu(){if(bm)return qu;bm=1;var n=Tk(),e=n.Symbol;return qu=e,qu}var Yu,wm;function Ek(){if(wm)return Yu;wm=1;function n(e,t){for(var r=-1,f=e==null?0:e.length,h=Array(f);++r<f;)h[r]=t(e[r],r,e);return h}return Yu=n,Yu}var Ku,xm;function Lk(){if(xm)return Ku;xm=1;var n=Array.isArray;return Ku=n,Ku}var Qu,_m;function Rk(){if(_m)return Qu;_m=1;var n=Gu(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,f=n?n.toStringTag:void 0;function h(p){var v=t.call(p,f),d=p[f];try{p[f]=void 0;var g=!0}catch{}var s=r.call(p);return g&&(v?p[f]=d:delete p[f]),s}return Qu=h,Qu}var Zu,km;function Ik(){if(km)return Zu;km=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return Zu=t,Zu}var Ju,Sm;function Ok(){if(Sm)return Ju;Sm=1;var n=Gu(),e=Rk(),t=Ik(),r="[object Null]",f="[object Undefined]",h=n?n.toStringTag:void 0;function p(v){return v==null?v===void 0?f:r:h&&h in Object(v)?e(v):t(v)}return Ju=p,Ju}var Xu,$m;function Dk(){if($m)return Xu;$m=1;function n(e){return e!=null&&typeof e=="object"}return Xu=n,Xu}var eh,Cm;function Nk(){if(Cm)return eh;Cm=1;var n=Ok(),e=Dk(),t="[object Symbol]";function r(f){return typeof f=="symbol"||e(f)&&n(f)==t}return eh=r,eh}var th,Mm;function Fk(){if(Mm)return th;Mm=1;var n=Gu(),e=Ek(),t=Lk(),r=Nk(),f=n?n.prototype:void 0,h=f?f.toString:void 0;function p(v){if(typeof v=="string")return v;if(t(v))return e(v,p)+"";if(r(v))return h?h.call(v):"";var d=v+"";return d=="0"&&1/v==-1/0?"-0":d}return th=p,th}var nh,Am;function fl(){if(Am)return nh;Am=1;var n=Fk();function e(t){return t==null?"":n(t)}return nh=e,nh}var rh,Tm;function Pk(){if(Tm)return rh;Tm=1;var n=Sk(),e=fm(),t=Mk(),r=fl();function f(h){return function(p){p=r(p);var v=e(p)?t(p):void 0,d=v?v[0]:p.charAt(0),g=v?n(v,1).join(""):p.slice(1);return d[h]()+g}}return rh=f,rh}var ih,Em;function Lm(){if(Em)return ih;Em=1;var n=Pk(),e=n("toUpperCase");return ih=e,ih}var Hk=Lm();const Bk=Na(Hk);var oh,Rm;function jk(){if(Rm)return oh;Rm=1;var n=fl(),e=Lm();function t(r){return e(n(r).toLowerCase())}return oh=t,oh}var sh,Im;function zk(){if(Im)return sh;Im=1;function n(e,t,r,f){var h=-1,p=e==null?0:e.length;for(f&&p&&(r=e[++h]);++h<p;)r=t(r,e[h],h,e);return r}return sh=n,sh}var ah,Om;function Wk(){if(Om)return ah;Om=1;function n(e){return function(t){return e==null?void 0:e[t]}}return ah=n,ah}var lh,Dm;function Uk(){if(Dm)return lh;Dm=1;var n=Wk(),e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},t=n(e);return lh=t,lh}var ch,Nm;function Vk(){if(Nm)return ch;Nm=1;var n=Uk(),e=fl(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",h="\\u20d0-\\u20ff",p=r+f+h,v="["+p+"]",d=RegExp(v,"g");function g(s){return s=e(s),s&&s.replace(t,n).replace(d,"")}return ch=g,ch}var uh,Fm;function qk(){if(Fm)return uh;Fm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(t){return t.match(n)||[]}return uh=e,uh}var hh,Pm;function Gk(){if(Pm)return hh;Pm=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(t){return n.test(t)}return hh=e,hh}var dh,Hm;function Yk(){if(Hm)return dh;Hm=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=e+t+r,h="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",v="\\xac\\xb1\\xd7\\xf7",d="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\ufe0e\\ufe0f",c=v+d+g+s,o="['’]",u="["+c+"]",y="["+f+"]",b="\\d+",x="["+h+"]",E="["+p+"]",C="[^"+n+c+b+h+p+l+"]",k="\\ud83c[\\udffb-\\udfff]",w="(?:"+y+"|"+k+")",A="[^"+n+"]",L="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",T="["+l+"]",N="\\u200d",S="(?:"+E+"|"+C+")",_="(?:"+T+"|"+C+")",$="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",R="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=w+"?",F="["+a+"]?",B="(?:"+N+"(?:"+[A,L,I].join("|")+")"+F+O+")*",W="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+B,X="(?:"+[x,L,I].join("|")+")"+q,G=RegExp([T+"?"+E+"+"+$+"(?="+[u,T,"$"].join("|")+")",_+"+"+R+"(?="+[u,T+S,"$"].join("|")+")",T+"?"+S+"+"+$,T+"+"+R,V,W,b,X].join("|"),"g");function Z(re){return re.match(G)||[]}return dh=Z,dh}var fh,Bm;function Kk(){if(Bm)return fh;Bm=1;var n=qk(),e=Gk(),t=fl(),r=Yk();function f(h,p,v){return h=t(h),p=v?void 0:p,p===void 0?e(h)?r(h):n(h):h.match(p)||[]}return fh=f,fh}var ph,jm;function Qk(){if(jm)return ph;jm=1;var n=zk(),e=Vk(),t=Kk(),r="['’]",f=RegExp(r,"g");function h(p){return function(v){return n(t(e(v).replace(f,"")),p,"")}}return ph=h,ph}var gh,zm;function Zk(){if(zm)return gh;zm=1;var n=jk(),e=Qk(),t=e(function(r,f,h){return f=f.toLowerCase(),r+(h?n(f):f)});return gh=t,gh}var Jk=Zk();const Xk=Na(Jk),eS=Object.assign({"./ArrayWidget.vue":()=>De(()=>Oe.import("./ArrayWidget-DBpEoQ1y-51f8d58800a41ceb5965.js"),void 0),"./BlockWidget.vue":()=>De(()=>Oe.import("./BlockWidget-Bmi0UcUW-6e239a53a5ce4bba9c07.js"),void 0),"./ButtonWidget.vue":()=>De(()=>Oe.import("./ButtonWidget-CHrHS_Bw-4dc21e7684ae5277a10c.js"),void 0),"./CanvasWidget.vue":()=>De(()=>Oe.import("./CanvasWidget-BqdyLbQz-8f0095f7e34d8c6f066f.js"),void 0),"./CanvasdotWidget.vue":()=>De(()=>Oe.import("./CanvasdotWidget-YYwca104-3e6a9038614586babd1c.js"),void 0),"./CanvasimageWidget.vue":()=>De(()=>Oe.import("./CanvasimageWidget-BrYlPQCf-99a2f7e1d841f8a80652.js"),void 0),"./CanvasimagevalueWidget.vue":()=>De(()=>Oe.import("./CanvasimagevalueWidget-HnEOXmZy-f4c2e448abcd2dc9b369.js"),void 0),"./CanvaslabelWidget.vue":()=>De(()=>Oe.import("./CanvaslabelWidget-BfMHNei--7bf566730263148d3f38.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>De(()=>Oe.import("./CanvaslabelvalueWidget-0zRDJav3-b25fde925a4dde4f4459.js"),void 0),"./CanvaslineWidget.vue":()=>De(()=>Oe.import("./CanvaslineWidget-BmOwJP_G-a4bfe595d4095ac8a656.js"),void 0),"./CanvaslinevalueWidget.vue":()=>De(()=>Oe.import("./CanvaslinevalueWidget-H3L1aUKM-ef990dd1d9d0093e3346.js"),void 0),"./CheckbuttonWidget.vue":()=>De(()=>Oe.import("./CheckbuttonWidget-BnT9X7wE-b6041611ca3a02a77f4f.js"),void 0),"./ComboboxWidget.vue":()=>De(()=>Oe.import("./ComboboxWidget-BykAAoxH-df2f4da5632c7ac4d614.js"),void 0),"./DateWidget.vue":()=>De(()=>Oe.import("./DateWidget-FtYD86xW-ed78614e5361796e3247.js"),void 0),"./DynamicWidget.vue":()=>De(()=>Oe.import("./DynamicWidget-m9EliUR2-f9ce5441cacabbe60173.js"),void 0),"./FormatvalueWidget.vue":()=>De(()=>Oe.import("./FormatvalueWidget-OykwwCrw-5ee46e53f13ac3d6701e.js"),void 0),"./HorizontalWidget.vue":()=>De(()=>Oe.import("./HorizontalWidget-B7YdcFVN-4a39cc6c6467fa45c8c9.js"),void 0),"./HorizontalboxWidget.vue":()=>De(()=>Oe.import("./HorizontalboxWidget-D-kCNwI3-bf19c666513dd697768b.js"),void 0),"./HorizontallineWidget.vue":()=>De(()=>Oe.import("./HorizontallineWidget-BdlNB951-fcd3e7810f970240faa3.js"),void 0),"./IframeWidget.vue":()=>De(()=>Oe.import("./IframeWidget-0C7GYEVc-e7376740a6235e4812db.js"),void 0),"./ImageviewerWidget.vue":()=>De(()=>Oe.import("./ImageviewerWidget-B4HbUIfR-a00a0d3b8fe6d84d7306.js"),void 0),"./LabelWidget.vue":()=>De(()=>Oe.import("./LabelWidget-D1JhQAzR-3b197382850460b21e5a.js"),void 0),"./LabelledWidget.vue":()=>De(()=>Oe.import("./LabelledWidget-C2VGJ5OJ-df9b3b7fce21b2fd3c0c.js"),void 0),"./LabelprogressbarWidget.vue":()=>De(()=>Oe.import("./LabelprogressbarWidget-DN0cAeLK-cc27e24e29aff05d667d.js"),void 0),"./LabelsparklineWidget.vue":()=>De(()=>Oe.import("./LabelsparklineWidget--sxBENxs-cbe369d2ca5aa7df9b85.js"),void 0),"./LabelvalueWidget.vue":()=>De(()=>Oe.import("./LabelvalueWidget-BWpP5KX6-ef5769b7ec88b403bcd2.js"),void 0),"./LabelvaluedescWidget.vue":()=>De(()=>Oe.import("./LabelvaluedescWidget-DtJwggDu-8f5ffd383ebe39917112.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>De(()=>Oe.import("./LabelvaluelimitsbarWidget-Bj6UVK-5-3bc80d16b026ae53a8c3.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>De(()=>Oe.import("./LabelvaluelimitscolumnWidget-BVcEEcUx-bca1e0a997b6558e0437.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>De(()=>Oe.import("./LabelvaluerangebarWidget-DCJ42bmf-e52d8579650ec3d75800.js"),void 0),"./LedWidget.vue":()=>De(()=>Oe.import("./LedWidget-hN9JHxjr-b0dea4cca417c25b5f03.js"),void 0),"./LimitsbarWidget.vue":()=>De(()=>Oe.import("./LimitsbarWidget-D-wfz_St-85844bd4c9a6e5782f57.js"),void 0),"./LimitscolorWidget.vue":()=>De(()=>Oe.import("./LimitscolorWidget-B0AVGdkz-c473b45d46ee31cdfa59.js"),void 0),"./LimitscolumnWidget.vue":()=>De(()=>Oe.import("./LimitscolumnWidget-Dt5ce4hN-391c67ae85d2fa51055e.js"),void 0),"./LinegraphWidget.vue":()=>De(()=>Oe.import("./LinegraphWidget-CTjtvtPd-fe55f8974a605da0efa2.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>De(()=>Oe.import("./MatrixbycolumnsWidget-wLx4NvXV-72377a621dc0bae83cdf.js"),void 0),"./ProgressbarWidget.vue":()=>De(()=>Oe.import("./ProgressbarWidget-B7l0BBiX-a5031b61d856a8da1127.js"),void 0),"./RadiobuttonWidget.vue":()=>De(()=>Oe.import("./RadiobuttonWidget-B032jKIw-92c89dce8e32b5b77b86.js"),void 0),"./RadiogroupWidget.vue":()=>De(()=>Oe.import("./RadiogroupWidget-Busjqikr-ccb5f63580cfa3a6669b.js"),void 0),"./RangebarWidget.vue":()=>De(()=>Oe.import("./RangebarWidget-DbYrwEfC-80ec2d6bc7c71c951f35.js"),void 0),"./RollupWidget.vue":()=>De(()=>Oe.import("./RollupWidget-rKxLXuCv-1c2837bf382916555b3c.js"),void 0),"./ScrollwindowWidget.vue":()=>De(()=>Oe.import("./ScrollwindowWidget-D4NKIzQO-b14879101eba10ab2f0a.js"),void 0),"./SignalWidget.vue":()=>De(()=>Oe.import("./SignalWidget-h-oivReC-3878f2f049be552eda7d.js"),void 0),"./SpacerWidget.vue":()=>De(()=>Oe.import("./SpacerWidget-BSy9eOlB-b6eb70cd771cb8926322.js"),void 0),"./SparklineWidget.vue":()=>De(()=>Oe.import("./SparklineWidget-C9vdxar--4f7468446f8ba99d20b2.js"),void 0),"./TabbookWidget.vue":()=>De(()=>Oe.import("./TabbookWidget-DTFTKURm-c15c659eae60d609ba8d.js"),void 0),"./TextboxWidget.vue":()=>De(()=>Oe.import("./TextboxWidget-BZyYHmBq-a8684205e51e26d6f751.js"),void 0),"./TextfieldWidget.vue":()=>De(()=>Oe.import("./TextfieldWidget-aVRdXRsT-6406eef0f7234e3e3a8e.js"),void 0),"./TimeWidget.vue":()=>De(()=>Oe.import("./TimeWidget-BE2rtMxg-cd22b9d2e868bc2ed385.js"),void 0),"./TitleWidget.vue":()=>De(()=>Oe.import("./TitleWidget-BB29MZb2-56d767993d5f9646996a.js"),void 0),"./ValueWidget.vue":()=>De(()=>Oe.import("./ValueWidget-h3905woQ-f35a0b783e2d2b53c1b7.js"),void 0),"./ValuelimitsbarWidget.vue":()=>De(()=>Oe.import("./ValuelimitsbarWidget-LMXYjWtS-8830e5349c4443d13b06.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>De(()=>Oe.import("./ValuelimitscolumnWidget-gA3ZcfAT-1c66306a40b51c6cba4c.js"),void 0),"./ValuerangebarWidget.vue":()=>De(()=>Oe.import("./ValuerangebarWidget-DwZ9KQ0O-3ab0abfd6fa6e5124d25.js"),void 0),"./VerticalWidget.vue":()=>De(()=>Oe.import("./VerticalWidget-DziyURNu-f2c65d60bc0e02f724a1.js"),void 0),"./VerticalboxWidget.vue":()=>De(()=>Oe.import("./VerticalboxWidget-OcoZBsFU-a1bcd4a60d355e686386.js"),void 0)}),tS=Object.entries(eS).reduce((n,[e,t])=>{e=e.split("/").pop();const r=Bk(Xk(e.replace(/\.\w+$/,"")));return{...n,[r]:Xd(t)}},{}),iO=Dn("B",{components:tS});function Wm(n,e){return function(){return n.apply(e,arguments)}}const{toString:nS}=Object.prototype,{getPrototypeOf:mh}=Object,pl=(n=>e=>{const t=nS.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),jr=n=>(n=n.toLowerCase(),e=>pl(e)===n),gl=n=>e=>typeof e===n,{isArray:Jo}=Array,js=gl("undefined");function rS(n){return n!==null&&!js(n)&&n.constructor!==null&&!js(n.constructor)&&br(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Um=jr("ArrayBuffer");function iS(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Um(n.buffer),e}const oS=gl("string"),br=gl("function"),Vm=gl("number"),ml=n=>n!==null&&typeof n=="object",sS=n=>n===!0||n===!1,yl=n=>{if(pl(n)!=="object")return!1;const e=mh(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},aS=jr("Date"),lS=jr("File"),cS=jr("Blob"),uS=jr("FileList"),hS=n=>ml(n)&&br(n.pipe),dS=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||br(n.append)&&((e=pl(n))==="formdata"||e==="object"&&br(n.toString)&&n.toString()==="[object FormData]"))},fS=jr("URLSearchParams"),[pS,gS,mS,yS]=["ReadableStream","Request","Response","Headers"].map(jr),vS=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),Jo(n))for(r=0,f=n.length;r<f;r++)e.call(null,n[r],r,n);else{const h=t?Object.getOwnPropertyNames(n):Object.keys(n),p=h.length;let v;for(r=0;r<p;r++)v=h[r],e.call(null,n[v],v,n)}}function qm(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,f;for(;r-- >0;)if(f=t[r],e===f.toLowerCase())return f;return null}const mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Gm=n=>!js(n)&&n!==mo;function yh(){const{caseless:n}=Gm(this)&&this||{},e={},t=(r,f)=>{const h=n&&qm(e,f)||f;yl(e[h])&&yl(r)?e[h]=yh(e[h],r):yl(r)?e[h]=yh({},r):Jo(r)?e[h]=r.slice():e[h]=r};for(let r=0,f=arguments.length;r<f;r++)arguments[r]&&zs(arguments[r],t);return e}const bS=(n,e,t,{allOwnKeys:r}={})=>(zs(e,(f,h)=>{t&&br(f)?n[h]=Wm(f,t):n[h]=f},{allOwnKeys:r}),n),wS=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),xS=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},_S=(n,e,t,r)=>{let f,h,p;const v={};if(e=e||{},n==null)return e;do{for(f=Object.getOwnPropertyNames(n),h=f.length;h-- >0;)p=f[h],(!r||r(p,n,e))&&!v[p]&&(e[p]=n[p],v[p]=!0);n=t!==!1&&mh(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},kS=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},SS=n=>{if(!n)return null;if(Jo(n))return n;let e=n.length;if(!Vm(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},$S=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&mh(Uint8Array)),CS=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const f=r.value;e.call(n,f[0],f[1])}},MS=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},AS=jr("HTMLFormElement"),TS=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),Ym=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),ES=jr("RegExp"),Km=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};zs(t,(f,h)=>{let p;(p=e(f,h,n))!==!1&&(r[h]=p||f)}),Object.defineProperties(n,r)},LS=n=>{Km(n,(e,t)=>{if(br(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(br(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},RS=(n,e)=>{const t={},r=f=>{f.forEach(h=>{t[h]=!0})};return Jo(n)?r(n):r(String(n).split(e)),t},IS=()=>{},OS=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,vh="abcdefghijklmnopqrstuvwxyz",Qm="0123456789",Zm={DIGIT:Qm,ALPHA:vh,ALPHA_DIGIT:vh+vh.toUpperCase()+Qm},DS=(n=16,e=Zm.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function NS(n){return!!(n&&br(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const FS=n=>{const e=new Array(10),t=(r,f)=>{if(ml(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[f]=r;const h=Jo(r)?[]:{};return zs(r,(p,v)=>{const d=t(p,f+1);!js(d)&&(h[v]=d)}),e[f]=void 0,h}}return r};return t(n,0)},PS=jr("AsyncFunction"),HS=n=>n&&(ml(n)||br(n))&&br(n.then)&&br(n.catch),Jm=((n,e)=>n?setImmediate:e?((t,r)=>(mo.addEventListener("message",({source:f,data:h})=>{f===mo&&h===t&&r.length&&r.shift()()},!1),f=>{r.push(f),mo.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",br(mo.postMessage)),BS=typeof queueMicrotask<"u"?queueMicrotask.bind(mo):typeof process<"u"&&process.nextTick||Jm,he={isArray:Jo,isArrayBuffer:Um,isBuffer:rS,isFormData:dS,isArrayBufferView:iS,isString:oS,isNumber:Vm,isBoolean:sS,isObject:ml,isPlainObject:yl,isReadableStream:pS,isRequest:gS,isResponse:mS,isHeaders:yS,isUndefined:js,isDate:aS,isFile:lS,isBlob:cS,isRegExp:ES,isFunction:br,isStream:hS,isURLSearchParams:fS,isTypedArray:$S,isFileList:uS,forEach:zs,merge:yh,extend:bS,trim:vS,stripBOM:wS,inherits:xS,toFlatObject:_S,kindOf:pl,kindOfTest:jr,endsWith:kS,toArray:SS,forEachEntry:CS,matchAll:MS,isHTMLForm:AS,hasOwnProperty:Ym,hasOwnProp:Ym,reduceDescriptors:Km,freezeMethods:LS,toObjectSet:RS,toCamelCase:TS,noop:IS,toFiniteNumber:OS,findKey:qm,global:mo,isContextDefined:Gm,ALPHABET:Zm,generateString:DS,isSpecCompliantForm:NS,toJSONObject:FS,isAsyncFn:PS,isThenable:HS,setImmediate:Jm,asap:BS};function it(n,e,t,r,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}he.inherits(it,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});const Xm=it.prototype,ey={};["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=>{ey[n]={value:n}}),Object.defineProperties(it,ey),Object.defineProperty(Xm,"isAxiosError",{value:!0}),it.from=(n,e,t,r,f,h)=>{const p=Object.create(Xm);return he.toFlatObject(n,p,function(v){return v!==Error.prototype},v=>v!=="isAxiosError"),it.call(p,n.message,e,t,r,f),p.cause=n,p.name=n.name,h&&Object.assign(p,h),p};const jS=null;function bh(n){return he.isPlainObject(n)||he.isArray(n)}function ty(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function ny(n,e,t){return n?n.concat(e).map(function(r,f){return r=ty(r),!t&&f?"["+r+"]":r}).join(t?".":""):e}function zS(n){return he.isArray(n)&&!n.some(bh)}const WS=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function vl(n,e,t){if(!he.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=he.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!he.isUndefined(o[c])});const r=t.metaTokens,f=t.visitor||g,h=t.dots,p=t.indexes,v=(t.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(e);if(!he.isFunction(f))throw new TypeError("visitor must be a function");function d(c){if(c===null)return"";if(he.isDate(c))return c.toISOString();if(!v&&he.isBlob(c))throw new it("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(c)||he.isTypedArray(c)?v&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,o,u){let y=c;if(c&&!u&&typeof c=="object"){if(he.endsWith(o,"{}"))o=r?o:o.slice(0,-2),c=JSON.stringify(c);else if(he.isArray(c)&&zS(c)||(he.isFileList(c)||he.endsWith(o,"[]"))&&(y=he.toArray(c)))return o=ty(o),y.forEach(function(b,x){!(he.isUndefined(b)||b===null)&&e.append(p===!0?ny([o],x,h):p===null?o:o+"[]",d(b))}),!1}return bh(c)?!0:(e.append(ny(u,o,h),d(c)),!1)}const s=[],l=Object.assign(WS,{defaultVisitor:g,convertValue:d,isVisitable:bh});function a(c,o){if(!he.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));s.push(c),he.forEach(c,function(u,y){(!(he.isUndefined(u)||u===null)&&f.call(e,u,he.isString(y)?y.trim():y,o,l))===!0&&a(u,o?o.concat(y):[y])}),s.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return a(n),e}function ry(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function wh(n,e){this._pairs=[],n&&vl(n,this,e)}const iy=wh.prototype;iy.append=function(n,e){this._pairs.push([n,e])},iy.toString=function(n){const e=n?function(t){return n.call(this,t,ry)}:ry;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function US(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oy(n,e,t){if(!e)return n;const r=t&&t.encode||US;he.isFunction(t)&&(t={serialize:t});const f=t&&t.serialize;let h;if(f?h=f(e,t):h=he.isURLSearchParams(e)?e.toString():new wh(e,t).toString(r),h){const p=n.indexOf("#");p!==-1&&(n=n.slice(0,p)),n+=(n.indexOf("?")===-1?"?":"&")+h}return n}let sy=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,function(t){t!==null&&e(t)})}};const ay={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},VS=typeof URLSearchParams<"u"?URLSearchParams:wh,qS=typeof FormData<"u"?FormData:null,GS=typeof Blob<"u"?Blob:null,YS={isBrowser:!0,classes:{URLSearchParams:VS,FormData:qS,Blob:GS},protocols:["http","https","file","blob","url","data"]},xh=typeof window<"u"&&typeof document<"u",_h=typeof navigator=="object"&&navigator||void 0,KS=xh&&(!_h||["ReactNative","NativeScript","NS"].indexOf(_h.product)<0),QS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ZS=xh&&window.location.href||"http://localhost",JS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xh,hasStandardBrowserEnv:KS,hasStandardBrowserWebWorkerEnv:QS,navigator:_h,origin:ZS},Symbol.toStringTag,{value:"Module"})),Un={...JS,...YS};function XS(n,e){return vl(n,new Un.classes.URLSearchParams,Object.assign({visitor:function(t,r,f,h){return Un.isNode&&he.isBuffer(t)?(this.append(r,t.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)}},e))}function e$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function t$(n){const e={},t=Object.keys(n);let r;const f=t.length;let h;for(r=0;r<f;r++)h=t[r],e[h]=n[h];return e}function ly(n){function e(t,r,f,h){let p=t[h++];if(p==="__proto__")return!0;const v=Number.isFinite(+p),d=h>=t.length;return p=!p&&he.isArray(f)?f.length:p,d?(he.hasOwnProp(f,p)?f[p]=[f[p],r]:f[p]=r,!v):((!f[p]||!he.isObject(f[p]))&&(f[p]=[]),e(t,r,f[p],h)&&he.isArray(f[p])&&(f[p]=t$(f[p])),!v)}if(he.isFormData(n)&&he.isFunction(n.entries)){const t={};return he.forEachEntry(n,(r,f)=>{e(e$(r),f,t,0)}),t}return null}function n$(n,e,t){if(he.isString(n))try{return(e||JSON.parse)(n),he.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(n)}const Ws={transitional:ay,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,f=he.isObject(n);if(f&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return r?JSON.stringify(ly(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let h;if(f){if(t.indexOf("application/x-www-form-urlencoded")>-1)return XS(n,this.formSerializer).toString();if((h=he.isFileList(n))||t.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return vl(h?{"files[]":n}:n,p&&new p,this.formSerializer)}}return f||r?(e.setContentType("application/json",!1),n$(n)):n}],transformResponse:[function(n){const e=this.transitional||Ws.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(t&&!this.responseType||r)){const f=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(h){if(f)throw h.name==="SyntaxError"?it.from(h,it.ERR_BAD_RESPONSE,this,null,this.response):h}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Un.classes.FormData,Blob:Un.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{Ws.headers[n]={}});const r$=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"]),i$=n=>{const e={};let t,r,f;return n&&n.split(`
1409
+ `).forEach(function(h){f=h.indexOf(":"),t=h.substring(0,f).trim().toLowerCase(),r=h.substring(f+1).trim(),!(!t||e[t]&&r$[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},cy=Symbol("internals");function Us(n){return n&&String(n).trim().toLowerCase()}function bl(n){return n===!1||n==null?n:he.isArray(n)?n.map(bl):String(n)}function o$(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const s$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function kh(n,e,t,r,f){if(he.isFunction(r))return r.call(this,e,t);if(f&&(e=t),!!he.isString(e)){if(he.isString(r))return e.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(e)}}function a$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function l$(n,e){const t=he.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(f,h,p){return this[r].call(this,e,f,h,p)},configurable:!0})})}let sr=class{constructor(e){e&&this.set(e)}set(e,t,r){const f=this;function h(v,d,g){const s=Us(d);if(!s)throw new Error("header name must be a non-empty string");const l=he.findKey(f,s);(!l||f[l]===void 0||g===!0||g===void 0&&f[l]!==!1)&&(f[l||d]=bl(v))}const p=(v,d)=>he.forEach(v,(g,s)=>h(g,s,d));if(he.isPlainObject(e)||e instanceof this.constructor)p(e,t);else if(he.isString(e)&&(e=e.trim())&&!s$(e))p(i$(e),t);else if(he.isHeaders(e))for(const[v,d]of e.entries())h(d,v,r);else e!=null&&h(t,e,r);return this}get(e,t){if(e=Us(e),e){const r=he.findKey(this,e);if(r){const f=this[r];if(!t)return f;if(t===!0)return o$(f);if(he.isFunction(t))return t.call(this,f,r);if(he.isRegExp(t))return t.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Us(e),e){const r=he.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||kh(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let f=!1;function h(p){if(p=Us(p),p){const v=he.findKey(r,p);v&&(!t||kh(r,r[v],v,t))&&(delete r[v],f=!0)}}return he.isArray(e)?e.forEach(h):h(e),f}clear(e){const t=Object.keys(this);let r=t.length,f=!1;for(;r--;){const h=t[r];(!e||kh(this,this[h],h,e,!0))&&(delete this[h],f=!0)}return f}normalize(e){const t=this,r={};return he.forEach(this,(f,h)=>{const p=he.findKey(r,h);if(p){t[p]=bl(f),delete t[h];return}const v=e?a$(h):String(h).trim();v!==h&&delete t[h],t[v]=bl(f),r[v]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(r,f)=>{r!=null&&r!==!1&&(t[f]=e&&he.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
1410
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(f=>r.set(f)),r}static accessor(e){const t=(this[cy]=this[cy]={accessors:{}}).accessors,r=this.prototype;function f(h){const p=Us(h);t[p]||(l$(r,h),t[p]=!0)}return he.isArray(e)?e.forEach(f):f(e),this}};sr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(sr.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),he.freezeMethods(sr);function Sh(n,e){const t=this||Ws,r=e||t,f=sr.from(r.headers);let h=r.data;return he.forEach(n,function(p){h=p.call(t,h,f.normalize(),e?e.status:void 0)}),f.normalize(),h}function uy(n){return!!(n&&n.__CANCEL__)}function Xo(n,e,t){it.call(this,n??"canceled",it.ERR_CANCELED,e,t),this.name="CanceledError"}he.inherits(Xo,it,{__CANCEL__:!0});function hy(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new it("Request failed with status code "+t.status,[it.ERR_BAD_REQUEST,it.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function c$(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function u$(n,e){n=n||10;const t=new Array(n),r=new Array(n);let f=0,h=0,p;return e=e!==void 0?e:1e3,function(v){const d=Date.now(),g=r[h];p||(p=d),t[f]=v,r[f]=d;let s=h,l=0;for(;s!==f;)l+=t[s++],s=s%n;if(f=(f+1)%n,f===h&&(h=(h+1)%n),d-p<e)return;const a=g&&d-g;return a?Math.round(l*1e3/a):void 0}}function h$(n,e){let t=0,r=1e3/e,f,h;const p=(v,d=Date.now())=>{t=d,f=null,h&&(clearTimeout(h),h=null),n.apply(null,v)};return[(...v)=>{const d=Date.now(),g=d-t;g>=r?p(v,d):(f=v,h||(h=setTimeout(()=>{h=null,p(f)},r-g)))},()=>f&&p(f)]}const wl=(n,e,t=3)=>{let r=0;const f=u$(50,250);return h$(h=>{const p=h.loaded,v=h.lengthComputable?h.total:void 0,d=p-r,g=f(d),s=p<=v;r=p;const l={loaded:p,total:v,progress:v?p/v:void 0,bytes:d,rate:g||void 0,estimated:g&&v&&s?(v-p)/g:void 0,event:h,lengthComputable:v!=null,[e?"download":"upload"]:!0};n(l)},t)},dy=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},fy=n=>(...e)=>he.asap(()=>n(...e)),d$=Un.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Un.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Un.origin),Un.navigator&&/(msie|trident)/i.test(Un.navigator.userAgent)):()=>!0,f$=Un.hasStandardBrowserEnv?{write(n,e,t,r,f,h){const p=[n+"="+encodeURIComponent(e)];he.isNumber(t)&&p.push("expires="+new Date(t).toGMTString()),he.isString(r)&&p.push("path="+r),he.isString(f)&&p.push("domain="+f),h===!0&&p.push("secure"),document.cookie=p.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function p$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function g$(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function py(n,e){return n&&!p$(e)?g$(n,e):e}const gy=n=>n instanceof sr?{...n}:n;function yo(n,e){e=e||{};const t={};function r(g,s,l,a){return he.isPlainObject(g)&&he.isPlainObject(s)?he.merge.call({caseless:a},g,s):he.isPlainObject(s)?he.merge({},s):he.isArray(s)?s.slice():s}function f(g,s,l,a){if(he.isUndefined(s)){if(!he.isUndefined(g))return r(void 0,g,l,a)}else return r(g,s,l,a)}function h(g,s){if(!he.isUndefined(s))return r(void 0,s)}function p(g,s){if(he.isUndefined(s)){if(!he.isUndefined(g))return r(void 0,g)}else return r(void 0,s)}function v(g,s,l){if(l in e)return r(g,s);if(l in n)return r(void 0,g)}const d={url:h,method:h,data:h,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:v,headers:(g,s,l)=>f(gy(g),gy(s),l,!0)};return he.forEach(Object.keys(Object.assign({},n,e)),function(g){const s=d[g]||f,l=s(n[g],e[g],g);he.isUndefined(l)&&s!==v||(t[g]=l)}),t}const my=n=>{const e=yo({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:h,headers:p,auth:v}=e;e.headers=p=sr.from(p),e.url=oy(py(e.baseURL,e.url),n.params,n.paramsSerializer),v&&p.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):"")));let d;if(he.isFormData(t)){if(Un.hasStandardBrowserEnv||Un.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((d=p.getContentType())!==!1){const[g,...s]=d?d.split(";").map(l=>l.trim()).filter(Boolean):[];p.setContentType([g||"multipart/form-data",...s].join("; "))}}if(Un.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(e)),r||r!==!1&&d$(e.url))){const g=f&&h&&f$.read(h);g&&p.set(f,g)}return e},m$=typeof XMLHttpRequest<"u",y$=m$&&function(n){return new Promise(function(e,t){const r=my(n);let f=r.data;const h=sr.from(r.headers).normalize();let{responseType:p,onUploadProgress:v,onDownloadProgress:d}=r,g,s,l,a,c;function o(){a&&a(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(g),r.signal&&r.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function y(){if(!u)return;const x=sr.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),E={data:!p||p==="text"||p==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};hy(function(C){e(C),o()},function(C){t(C),o()},E),u=null}"onloadend"in u?u.onloadend=y:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(y)},u.onabort=function(){u&&(t(new it("Request aborted",it.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new it("Network Error",it.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||ay;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),t(new it(x,E.clarifyTimeoutError?it.ETIMEDOUT:it.ECONNABORTED,n,u)),u=null},f===void 0&&h.setContentType(null),"setRequestHeader"in u&&he.forEach(h.toJSON(),function(x,E){u.setRequestHeader(E,x)}),he.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),p&&p!=="json"&&(u.responseType=r.responseType),d&&([l,c]=wl(d,!0),u.addEventListener("progress",l)),v&&u.upload&&([s,a]=wl(v),u.upload.addEventListener("progress",s),u.upload.addEventListener("loadend",a)),(r.cancelToken||r.signal)&&(g=x=>{u&&(t(!x||x.type?new Xo(null,n,u):x),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(g),r.signal&&(r.signal.aborted?g():r.signal.addEventListener("abort",g)));const b=c$(r.url);if(b&&Un.protocols.indexOf(b)===-1){t(new it("Unsupported protocol "+b+":",it.ERR_BAD_REQUEST,n));return}u.send(f||null)})},v$=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,f;const h=function(g){if(!f){f=!0,v();const s=g instanceof Error?g:this.reason;r.abort(s instanceof it?s:new Xo(s instanceof Error?s.message:s))}};let p=e&&setTimeout(()=>{p=null,h(new it(`timeout ${e} of ms exceeded`,it.ETIMEDOUT))},e);const v=()=>{n&&(p&&clearTimeout(p),p=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(h):g.removeEventListener("abort",h)}),n=null)};n.forEach(g=>g.addEventListener("abort",h));const{signal:d}=r;return d.unsubscribe=()=>he.asap(v),d}},b$=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,f;for(;r<t;)f=r+e,yield n.slice(r,f),r=f},w$=async function*(n,e){for await(const t of x$(n))yield*b$(t,e)},x$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},yy=(n,e,t,r)=>{const f=w$(n,e);let h=0,p,v=d=>{p||(p=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:g,value:s}=await f.next();if(g){v(),d.close();return}let l=s.byteLength;if(t){let a=h+=l;t(a)}d.enqueue(new Uint8Array(s))}catch(g){throw v(g),g}},cancel(d){return v(d),f.return()}},{highWaterMark:2})},xl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vy=xl&&typeof ReadableStream=="function",_$=xl&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),by=(n,...e)=>{try{return!!n(...e)}catch{return!1}},k$=vy&&by(()=>{let n=!1;const e=new Request(Un.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),wy=64*1024,$h=vy&&by(()=>he.isReadableStream(new Response("").body)),_l={stream:$h&&(n=>n.body)};xl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!_l[e]&&(_l[e]=he.isFunction(n[e])?t=>t[e]():(t,r)=>{throw new it(`Response type '${e}' is not supported`,it.ERR_NOT_SUPPORT,r)})})})(new Response);const S$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Un.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(he.isArrayBufferView(n)||he.isArrayBuffer(n))return n.byteLength;if(he.isURLSearchParams(n)&&(n=n+""),he.isString(n))return(await _$(n)).byteLength},$$=async(n,e)=>he.toFiniteNumber(n.getContentLength())??S$(e),C$=xl&&(async n=>{let{url:e,method:t,data:r,signal:f,cancelToken:h,timeout:p,onDownloadProgress:v,onUploadProgress:d,responseType:g,headers:s,withCredentials:l="same-origin",fetchOptions:a}=my(n);g=g?(g+"").toLowerCase():"text";let c=v$([f,h&&h.toAbortSignal()],p),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let y;try{if(d&&k$&&t!=="get"&&t!=="head"&&(y=await $$(s,r))!==0){let k=new Request(e,{method:"POST",body:r,duplex:"half"}),w;if(he.isFormData(r)&&(w=k.headers.get("content-type"))&&s.setContentType(w),k.body){const[A,L]=dy(y,wl(fy(d)));r=yy(k.body,wy,A,L)}}he.isString(l)||(l=l?"include":"omit");const b="credentials"in Request.prototype;o=new Request(e,{...a,signal:c,method:t.toUpperCase(),headers:s.normalize().toJSON(),body:r,duplex:"half",credentials:b?l:void 0});let x=await fetch(o);const E=$h&&(g==="stream"||g==="response");if($h&&(v||E&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const w=he.toFiniteNumber(x.headers.get("content-length")),[A,L]=v&&dy(w,wl(fy(v),!0))||[];x=new Response(yy(x.body,wy,A,()=>{L&&L(),u&&u()}),k)}g=g||"text";let C=await _l[he.findKey(_l,g)||"text"](x,n);return!E&&u&&u(),await new Promise((k,w)=>{hy(k,w,{data:C,headers:sr.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(b){throw u&&u(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new it("Network Error",it.ERR_NETWORK,n,o),{cause:b.cause||b}):it.from(b,b&&b.code,n,o)}}),Ch={http:jS,xhr:y$,fetch:C$};he.forEach(Ch,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const xy=n=>`- ${n}`,M$=n=>he.isFunction(n)||n===null||n===!1,_y={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:e}=n;let t,r;const f={};for(let h=0;h<e;h++){t=n[h];let p;if(r=t,!M$(t)&&(r=Ch[(p=String(t)).toLowerCase()],r===void 0))throw new it(`Unknown adapter '${p}'`);if(r)break;f[p||"#"+h]=r}if(!r){const h=Object.entries(f).map(([v,d])=>`adapter ${v} `+(d===!1?"is not supported by the environment":"is not available in the build"));let p=e?h.length>1?`since :
1411
+ `+h.map(xy).join(`
1412
+ `):" "+xy(h[0]):"as no adapter specified";throw new it("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return r},adapters:Ch};function Mh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Xo(null,n)}function ky(n){return Mh(n),n.headers=sr.from(n.headers),n.data=Sh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),_y.getAdapter(n.adapter||Ws.adapter)(n).then(function(e){return Mh(n),e.data=Sh.call(n,n.transformResponse,e),e.headers=sr.from(e.headers),e},function(e){return uy(e)||(Mh(n),e&&e.response&&(e.response.data=Sh.call(n,n.transformResponse,e.response),e.response.headers=sr.from(e.response.headers))),Promise.reject(e)})}const Sy="1.7.9",kl={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{kl[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const $y={};kl.transitional=function(n,e,t){function r(f,h){return"[Axios v"+Sy+"] Transitional option '"+f+"'"+h+(t?". "+t:"")}return(f,h,p)=>{if(n===!1)throw new it(r(h," has been removed"+(e?" in "+e:"")),it.ERR_DEPRECATED);return e&&!$y[h]&&($y[h]=!0,console.warn(r(h," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(f,h,p):!0}},kl.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function A$(n,e,t){if(typeof n!="object")throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const h=r[f],p=e[h];if(p){const v=n[h],d=v===void 0||p(v,h,n);if(d!==!0)throw new it("option "+h+" must be "+d,it.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new it("Unknown option "+h,it.ERR_BAD_OPTION)}}const Sl={assertOptions:A$,validators:kl},Zr=Sl.validators;let vo=class{constructor(e){this.defaults=e,this.interceptors={request:new sy,response:new sy}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const h=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1413
+ `+h):r.stack=h}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=yo(this.defaults,t);const{transitional:r,paramsSerializer:f,headers:h}=t;r!==void 0&&Sl.assertOptions(r,{silentJSONParsing:Zr.transitional(Zr.boolean),forcedJSONParsing:Zr.transitional(Zr.boolean),clarifyTimeoutError:Zr.transitional(Zr.boolean)},!1),f!=null&&(he.isFunction(f)?t.paramsSerializer={serialize:f}:Sl.assertOptions(f,{encode:Zr.function,serialize:Zr.function},!0)),Sl.assertOptions(t,{baseUrl:Zr.spelling("baseURL"),withXsrfToken:Zr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let p=h&&he.merge(h.common,h[t.method]);h&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete h[o]}),t.headers=sr.concat(p,h);const v=[];let d=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(t)===!1||(d=d&&o.synchronous,v.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let s,l=0,a;if(!d){const o=[ky.bind(this),void 0];for(o.unshift.apply(o,v),o.push.apply(o,g),a=o.length,s=Promise.resolve(t);l<a;)s=s.then(o[l++],o[l++]);return s}a=v.length;let c=t;for(l=0;l<a;){const o=v[l++],u=v[l++];try{c=o(c)}catch(y){u.call(this,y);break}}try{s=ky.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,a=g.length;l<a;)s=s.then(g[l++],g[l++]);return s}getUri(e){e=yo(this.defaults,e);const t=py(e.baseURL,e.url);return oy(t,e.params,e.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){vo.prototype[n]=function(e,t){return this.request(yo(t||{},{method:n,url:e,data:(t||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function e(t){return function(r,f,h){return this.request(yo(h||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}vo.prototype[n]=e(),vo.prototype[n+"Form"]=e(!0)});let T$=class pb{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(f){t=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](f);r._listeners=null}),this.promise.then=f=>{let h;const p=new Promise(v=>{r.subscribe(v),h=v}).then(f);return p.cancel=function(){r.unsubscribe(h)},p},e(function(f,h,p){r.reason||(r.reason=new Xo(f,h,p),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new pb(function(t){e=t}),cancel:e}}};function E$(n){return function(e){return n.apply(null,e)}}function L$(n){return he.isObject(n)&&n.isAxiosError===!0}const Ah={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(Ah).forEach(([n,e])=>{Ah[e]=n});function Cy(n){const e=new vo(n),t=Wm(vo.prototype.request,e);return he.extend(t,vo.prototype,e,{allOwnKeys:!0}),he.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Cy(yo(n,r))},t}const wn=Dn("S",Cy(Ws));wn.Axios=vo,wn.CanceledError=Xo,wn.CancelToken=T$,wn.isCancel=uy,wn.VERSION=Sy,wn.toFormData=vl,wn.AxiosError=it,wn.Cancel=wn.CanceledError,wn.all=function(n){return Promise.all(n)},wn.spread=E$,wn.isAxiosError=L$,wn.mergeConfig=yo,wn.AxiosHeaders=sr,wn.formToJSON=n=>ly(he.isHTMLForm(n)?new FormData(n):n),wn.getAdapter=_y.getAdapter,wn.HttpStatusCode=Ah,wn.default=wn;function R$(n,e,t){const r=Qt(n,void 0);return r.setTime(r.getTime()+e*Oa),r}function My(){return Object.assign({},No())}function I$(n,e){const t=()=>yn(void 0,NaN),r=F$(n);let f;if(r.date){const d=P$(r.date,2);f=H$(d.restDateString,d.year)}if(!f||isNaN(+f))return t();const h=+f;let p=0,v;if(r.time&&(p=B$(r.time),isNaN(p)))return t();if(r.timezone){if(v=j$(r.timezone),isNaN(v))return t()}else{const d=new Date(h+p),g=Qt(0,void 0);return g.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),g.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),g}return Qt(h+p+v,void 0)}const $l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},O$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,D$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,N$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function F$(n){const e={},t=n.split($l.dateTimeDelimiter);let r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],$l.timeZoneDelimiter.test(e.date)&&(e.date=n.split($l.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){const f=$l.timezone.exec(r);f?(e.time=r.replace(f[1],""),e.timezone=f[1]):e.time=r}return e}function P$(n,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};const f=r[1]?parseInt(r[1]):null,h=r[2]?parseInt(r[2]):null;return{year:h===null?f:h*100,restDateString:n.slice((r[1]||r[2]).length)}}function H$(n,e){if(e===null)return new Date(NaN);const t=n.match(O$);if(!t)return new Date(NaN);const r=!!t[4],f=Vs(t[1]),h=Vs(t[2])-1,p=Vs(t[3]),v=Vs(t[4]),d=Vs(t[5])-1;if(r)return q$(e,v,d)?z$(e,v,d):new Date(NaN);{const g=new Date(0);return!U$(e,h,p)||!V$(e,f)?new Date(NaN):(g.setUTCFullYear(e,h,Math.max(f,p)),g)}}function Vs(n){return n?parseInt(n):1}function B$(n){const e=n.match(D$);if(!e)return NaN;const t=Th(e[1]),r=Th(e[2]),f=Th(e[3]);return G$(t,r,f)?t*Hc+r*Oa+f*1e3:NaN}function Th(n){return n&&parseFloat(n.replace(",","."))||0}function j$(n){if(n==="Z")return 0;const e=n.match(N$);if(!e)return 0;const t=e[1]==="+"?-1:1,r=parseInt(e[2]),f=e[3]&&parseInt(e[3])||0;return Y$(r,f)?t*(r*Hc+f*Oa):NaN}function z$(n,e,t){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,h=(e-1)*7+t+1-f;return r.setUTCDate(r.getUTCDate()+h),r}const W$=[31,null,31,30,31,30,31,31,30,31,30,31];function Ay(n){return n%400===0||n%4===0&&n%100!==0}function U$(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(W$[e]||(Ay(n)?29:28))}function V$(n,e){return e>=1&&e<=(Ay(n)?366:365)}function q$(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function G$(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function Y$(n,e){return e>=0&&e<=59}function K$(n,e,t){return R$(n,-e)}function Ty(n,e,t){const r=My(),f=J$(n,t.timeZone,t.locale??r.locale);return"formatToParts"in f?Q$(f,e):Z$(f,e)}function Q$(n,e){const t=n.formatToParts(e);for(let r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function Z$(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function J$(n,e,t){return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:e,timeZoneName:n})}function X$(n,e){const t=iC(e);return"formatToParts"in t?tC(t,n):nC(t,n)}const eC={year:0,month:1,day:2,hour:3,minute:4,second:5};function tC(n,e){try{const t=n.formatToParts(e),r=[];for(let f=0;f<t.length;f++){const h=eC[t[f].type];h!==void 0&&(r[h]=parseInt(t[f].value,10))}return r}catch(t){if(t instanceof RangeError)return[NaN];throw t}}function nC(n,e){const t=n.format(e),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const Eh={},Ey=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")),rC=Ey==="06/25/2014, 00:00:00"||Ey==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function iC(n){return Eh[n]||(Eh[n]=rC?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Eh[n]}function Ly(n,e,t,r,f,h,p){const v=new Date(0);return v.setUTCFullYear(n,e,t),v.setUTCHours(r,f,h,p),v}const Ry=36e5,oC=6e4,Lh={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Rh(n,e,t){if(!n)return 0;let r=Lh.timezoneZ.exec(n);if(r)return 0;let f,h;if(r=Lh.timezoneHH.exec(n),r)return f=parseInt(r[1],10),Iy(f)?-(f*Ry):NaN;if(r=Lh.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const p=parseInt(r[3],10);return Iy(f,p)?(h=Math.abs(f)*Ry+p*oC,r[1]==="+"?-h:h):NaN}if(lC(n)){e=new Date(e||Date.now());const p=t?e:sC(e),v=Ih(p,n);return-(t?v:aC(e,v,n))}return NaN}function sC(n){return Ly(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function Ih(n,e){const t=X$(n,e),r=Ly(t[0],t[1]-1,t[2],t[3]%24,t[4],t[5],0).getTime();let f=n.getTime();const h=f%1e3;return f-=h>=0?h:1e3+h,r-f}function aC(n,e,t){let r=n.getTime()-e;const f=Ih(new Date(r),t);if(e===f)return e;r-=f-e;const h=Ih(new Date(r),t);return f===h?f:Math.max(f,h)}function Iy(n,e){return-23<=n&&n<=23&&(e==null||0<=e&&e<=59)}const Oy={};function lC(n){if(Oy[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Oy[n]=!0,!0}catch{return!1}}const cC=60*1e3,uC={X:function(n,e,t){const r=Oh(t.timeZone,n);if(r===0)return"Z";switch(e){case"X":return Dy(r);case"XXXX":case"XX":return es(r);case"XXXXX":case"XXX":default:return es(r,":")}},x:function(n,e,t){const r=Oh(t.timeZone,n);switch(e){case"x":return Dy(r);case"xxxx":case"xx":return es(r);case"xxxxx":case"xxx":default:return es(r,":")}},O:function(n,e,t){const r=Oh(t.timeZone,n);switch(e){case"O":case"OO":case"OOO":return"GMT"+hC(r,":");case"OOOO":default:return"GMT"+es(r,":")}},z:function(n,e,t){switch(e){case"z":case"zz":case"zzz":return Ty("short",n,t);case"zzzz":default:return Ty("long",n,t)}}};function Oh(n,e){const t=n?Rh(n,e,!0)/cC:(e==null?void 0:e.getTimezoneOffset())??0;if(Number.isNaN(t))throw new RangeError("Invalid time zone specified: "+n);return t}function Cl(n,e){const t=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<e;)r="0"+r;return t+r}function es(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),f=Cl(Math.floor(r/60),2),h=Cl(Math.floor(r%60),2);return t+f+e+h}function Dy(n,e){return n%60===0?(n>0?"-":"+")+Cl(Math.abs(n)/60,2):es(n,e)}function hC(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),h=r%60;return h===0?t+String(f):t+String(f)+e+Cl(h,2)}function Ny(n){const e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+n-+e}const dC=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Dh=36e5,Fy=6e4,fC=2,Jn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:dC};function Py(n,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const t=e.additionalDigits==null?fC:Number(e.additionalDigits);if(t!==2&&t!==1&&t!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const r=pC(n),{year:f,restDateString:h}=gC(r.date,t),p=mC(h,f);if(p===null||isNaN(p.getTime()))return new Date(NaN);if(p){const v=p.getTime();let d=0,g;if(r.time&&(d=yC(r.time),d===null||isNaN(d)))return new Date(NaN);if(r.timeZone||e.timeZone){if(g=Rh(r.timeZone||e.timeZone,new Date(v+d)),isNaN(g))return new Date(NaN)}else g=Ny(new Date(v+d)),g=Ny(new Date(v+d+g));return new Date(v+d+g)}else return new Date(NaN)}function pC(n){const e={};let t=Jn.dateTimePattern.exec(n),r;if(t?(e.date=t[1],r=t[3]):(t=Jn.datePattern.exec(n),t?(e.date=t[1],r=t[2]):(e.date=null,r=n)),r){const f=Jn.timeZone.exec(r);f?(e.time=r.replace(f[1],""),e.timeZone=f[1].trim()):e.time=r}return e}function gC(n,e){if(n){const t=Jn.YYY[e],r=Jn.YYYYY[e];let f=Jn.YYYY.exec(n)||r.exec(n);if(f){const h=f[1];return{year:parseInt(h,10),restDateString:n.slice(h.length)}}if(f=Jn.YY.exec(n)||t.exec(n),f){const h=f[1];return{year:parseInt(h,10)*100,restDateString:n.slice(h.length)}}}return{year:null}}function mC(n,e){if(e===null)return null;let t,r,f;if(!n||!n.length)return t=new Date(0),t.setUTCFullYear(e),t;let h=Jn.MM.exec(n);if(h)return t=new Date(0),r=parseInt(h[1],10)-1,jy(e,r)?(t.setUTCFullYear(e,r),t):new Date(NaN);if(h=Jn.DDD.exec(n),h){t=new Date(0);const p=parseInt(h[1],10);return wC(e,p)?(t.setUTCFullYear(e,0,p),t):new Date(NaN)}if(h=Jn.MMDD.exec(n),h){t=new Date(0),r=parseInt(h[1],10)-1;const p=parseInt(h[2],10);return jy(e,r,p)?(t.setUTCFullYear(e,r,p),t):new Date(NaN)}if(h=Jn.Www.exec(n),h)return f=parseInt(h[1],10)-1,zy(f)?Hy(e,f):new Date(NaN);if(h=Jn.WwwD.exec(n),h){f=parseInt(h[1],10)-1;const p=parseInt(h[2],10)-1;return zy(f,p)?Hy(e,f,p):new Date(NaN)}return null}function yC(n){let e,t,r=Jn.HH.exec(n);if(r)return e=parseFloat(r[1].replace(",",".")),Nh(e)?e%24*Dh:NaN;if(r=Jn.HHMM.exec(n),r)return e=parseInt(r[1],10),t=parseFloat(r[2].replace(",",".")),Nh(e,t)?e%24*Dh+t*Fy:NaN;if(r=Jn.HHMMSS.exec(n),r){e=parseInt(r[1],10),t=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return Nh(e,t,f)?e%24*Dh+t*Fy+f*1e3:NaN}return null}function Hy(n,e,t){e=e||0,t=t||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,h=e*7+t+1-f;return r.setUTCDate(r.getUTCDate()+h),r}const vC=[31,28,31,30,31,30,31,31,30,31,30,31],bC=[31,29,31,30,31,30,31,31,30,31,30,31];function By(n){return n%400===0||n%4===0&&n%100!==0}function jy(n,e,t){if(e<0||e>11)return!1;if(t!=null){if(t<1)return!1;const r=By(n);if(r&&t>bC[e]||!r&&t>vC[e])return!1}return!0}function wC(n,e){if(e<1)return!1;const t=By(n);return!(t&&e>366||!t&&e>365)}function zy(n,e){return!(n<0||n>52||e!=null&&(e<0||e>6))}function Nh(n,e,t){return!(n<0||n>=25||e!=null&&(e<0||e>=60)||t!=null&&(t<0||t>=60))}const xC=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function _C(n,e,t={}){e=String(e);const r=e.match(xC);if(r){const f=Py(t.originalDate||n,t);e=r.reduce(function(h,p){if(p[0]==="'")return h;const v=h.indexOf(p),d=h[v-1]==="'",g=h.replace(p,"'"+uC[p[0]](f,p,t)+"'");return d?g.substring(0,v-1)+g.substring(v+1):g},e)}return Li(n,e,t)}function kC(n,e,t){n=Py(n,t);const r=Rh(e,n,!0),f=new Date(n.getTime()-r),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}function Fh(n,e,t,r){return r={...r,timeZone:e,originalDate:n},_C(kC(n,e,{timeZone:r.timeZone}),t,r)}const Ph="yyyy-MM-dd",Wy="HH:mm:ss.SSS",SC="HH:mm:ss",Ml=`${Ph} ${Wy}`,oO=Dn("P",{methods:{parseDateTime(n,e){return n.includes(" ")&&(n=n.replace(" ","T")),e&&e==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,e){return Li(!e||e==="local"?K$(n,n.getTimezoneOffset()):n,Ml)},formatDateTime(n,e){return!e||e==="local"?Li(n,Ml):Fh(n,e,Ml)},formatDate:function(n,e){return!e||e==="local"?Li(n,Ph):Fh(n,this.timeZone,Ph)},formatTime:function(n,e,t=Wy){return!e||e==="local"?Li(n,t):Fh(n,this.timeZone,t)},formatTimeHMS:function(n,e){return this.formatTime(n,e,SC)},formatTimestamp(n,e){return this.formatDateTime(I$(n),e)},formatSeconds(n,e){return this.formatDateTime(new Date(n*1e3),e)},formatNanoseconds(n,e){return this.formatDateTime(new Date(parseInt(n)/1e6),e)}}});var $C=Object.defineProperty,CC=(n,e,t)=>e in n?$C(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Re=(n,e,t)=>CC(n,typeof e!="symbol"?e+"":e,t);function Hh(n,e,t){const r=Qt(n,t==null?void 0:t.in);return isNaN(e)?yn((t==null?void 0:t.in)||n,NaN):(e&&r.setDate(r.getDate()+e),r)}function MC(n,e){const t=Qt(n,void 0).getDay();return t===0?7:t}function AC(n,e){const t=TC(e)?new e(0):yn(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function TC(n){var e;return typeof n=="function"&&((e=n.prototype)==null?void 0:e.constructor)===n}const EC=10;let Uy=class{constructor(){Re(this,"subPriority",0)}validate(e,t){return!0}},LC=class extends Uy{constructor(e,t,r,f,h){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=f,h&&(this.subPriority=h)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}},RC=class extends Uy{constructor(e,t){super(),Re(this,"priority",EC),Re(this,"subPriority",-1),this.context=e||(r=>yn(t,r))}set(e,t){return t.timestampIsSet?e:yn(e,AC(e,this.context))}};class Ct{run(e,t,r,f){const h=this.parse(e,t,r,f);return h?{setter:new LC(h.value,this.validate,this.set,this.priority,this.subPriority),rest:h.rest}:null}validate(e,t,r){return!0}}let IC=class extends Ct{constructor(){super(...arguments),Re(this,"priority",140),Re(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};const dn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Jr={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 fn(n,e){return n&&{value:e(n.value),rest:n.rest}}function tn(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Xr(n,e){const t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const r=t[1]==="+"?1:-1,f=t[2]?parseInt(t[2],10):0,h=t[3]?parseInt(t[3],10):0,p=t[5]?parseInt(t[5],10):0;return{value:r*(f*Hc+h*Oa+p*Cb),rest:e.slice(t[0].length)}}function Vy(n){return tn(dn.anyDigitsSigned,n)}function an(n,e){switch(n){case 1:return tn(dn.singleDigit,e);case 2:return tn(dn.twoDigits,e);case 3:return tn(dn.threeDigits,e);case 4:return tn(dn.fourDigits,e);default:return tn(new RegExp("^\\d{1,"+n+"}"),e)}}function qy(n,e){switch(n){case 1:return tn(dn.singleDigitSigned,e);case 2:return tn(dn.twoDigitsSigned,e);case 3:return tn(dn.threeDigitsSigned,e);case 4:return tn(dn.fourDigitsSigned,e);default:return tn(new RegExp("^-?\\d{1,"+n+"}"),e)}}function Bh(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Gy(n,e){const t=e>0,r=t?e:1-e;let f;if(r<=50)f=n||100;else{const h=r+50,p=Math.trunc(h/100)*100,v=n>=h%100;f=n+p-(v?100:0)}return t?f:1-f}function Yy(n){return n%400===0||n%4===0&&n%100!==0}let OC=class extends Ct{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,r){const f=h=>({year:h,isTwoDigitYear:t==="yy"});switch(t){case"y":return fn(an(4,e),f);case"yo":return fn(r.ordinalNumber(e,{unit:"year"}),f);default:return fn(an(t.length,e),f)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const f=e.getFullYear();if(r.isTwoDigitYear){const p=Gy(r.year,f);return e.setFullYear(p,0,1),e.setHours(0,0,0,0),e}const h=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(h,0,1),e.setHours(0,0,0,0),e}},DC=class extends Ct{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,r){const f=h=>({year:h,isTwoDigitYear:t==="YY"});switch(t){case"Y":return fn(an(4,e),f);case"Yo":return fn(r.ordinalNumber(e,{unit:"year"}),f);default:return fn(an(t.length,e),f)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,f){const h=jc(e,f);if(r.isTwoDigitYear){const v=Gy(r.year,h);return e.setFullYear(v,0,f.firstWeekContainsDate),e.setHours(0,0,0,0),Ti(e,f)}const p=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(p,0,f.firstWeekContainsDate),e.setHours(0,0,0,0),Ti(e,f)}};class NC extends Ct{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return qy(t==="R"?4:t.length,e)}set(e,t,r){const f=yn(e,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Fo(f)}}class FC extends Ct{constructor(){super(...arguments),Re(this,"priority",130),Re(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return qy(t==="u"?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}}class PC extends Ct{constructor(){super(...arguments),Re(this,"priority",120),Re(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"Q":case"QQ":return an(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}}let HC=class extends Ct{constructor(){super(...arguments),Re(this,"priority",120),Re(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"q":case"qq":return an(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}};class BC extends Ct{constructor(){super(...arguments),Re(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Re(this,"priority",110)}parse(e,t,r){const f=h=>h-1;switch(t){case"M":return fn(tn(dn.month,e),f);case"MM":return fn(an(2,e),f);case"Mo":return fn(r.ordinalNumber(e,{unit:"month"}),f);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class jC extends Ct{constructor(){super(...arguments),Re(this,"priority",110),Re(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,r){const f=h=>h-1;switch(t){case"L":return fn(tn(dn.month,e),f);case"LL":return fn(an(2,e),f);case"Lo":return fn(r.ordinalNumber(e,{unit:"month"}),f);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}function zC(n,e,t){const r=Qt(n,t==null?void 0:t.in),f=$f(r,t)-e;return r.setDate(r.getDate()-f*7),Qt(r,t==null?void 0:t.in)}class WC extends Ct{constructor(){super(...arguments),Re(this,"priority",100),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,r){switch(t){case"w":return tn(dn.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return an(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,f){return Ti(zC(e,r,f),f)}}function UC(n,e,t){const r=Qt(n,void 0),f=Sf(r)-e;return r.setDate(r.getDate()-f*7),r}class VC extends Ct{constructor(){super(...arguments),Re(this,"priority",100),Re(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,r){switch(t){case"I":return tn(dn.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return an(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return Fo(UC(e,r))}}const qC=[31,28,31,30,31,30,31,31,30,31,30,31],GC=[31,29,31,30,31,30,31,31,30,31,30,31];class YC extends Ct{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"subPriority",1),Re(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"d":return tn(dn.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return an(t.length,e)}}validate(e,t){const r=e.getFullYear(),f=Yy(r),h=e.getMonth();return f?t>=1&&t<=GC[h]:t>=1&&t<=qC[h]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}}class KC extends Ct{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"subpriority",1),Re(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,r){switch(t){case"D":case"DD":return tn(dn.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return an(t.length,e)}}validate(e,t){const r=e.getFullYear();return Yy(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}}function jh(n,e,t){var r,f,h,p;const v=No(),d=(t==null?void 0:t.weekStartsOn)??((f=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:f.weekStartsOn)??v.weekStartsOn??((p=(h=v.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,g=Qt(n,t==null?void 0:t.in),s=g.getDay(),l=(e%7+7)%7,a=7-d,c=e<0||e>6?e-(s+a)%7:(l+a)%7-(s+a)%7;return Hh(g,c,t)}class QC extends Ct{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,f){return e=jh(e,r,f),e.setHours(0,0,0,0),e}}class ZC extends Ct{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,r,f){const h=p=>{const v=Math.floor((p-1)/7)*7;return(p+f.weekStartsOn+6)%7+v};switch(t){case"e":case"ee":return fn(an(t.length,e),h);case"eo":return fn(r.ordinalNumber(e,{unit:"day"}),h);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,f){return e=jh(e,r,f),e.setHours(0,0,0,0),e}}class JC extends Ct{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,r,f){const h=p=>{const v=Math.floor((p-1)/7)*7;return(p+f.weekStartsOn+6)%7+v};switch(t){case"c":case"cc":return fn(an(t.length,e),h);case"co":return fn(r.ordinalNumber(e,{unit:"day"}),h);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,f){return e=jh(e,r,f),e.setHours(0,0,0,0),e}}function XC(n,e,t){const r=Qt(n,void 0),f=MC(r),h=e-f;return Hh(r,h,t)}class eM extends Ct{constructor(){super(...arguments),Re(this,"priority",90),Re(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,r){const f=h=>h===0?7:h;switch(t){case"i":case"ii":return an(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return fn(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),f);case"iiiii":return fn(r.day(e,{width:"narrow",context:"formatting"}),f);case"iiiiii":return fn(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),f);case"iiii":default:return fn(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),f)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return e=XC(e,r),e.setHours(0,0,0,0),e}}class tM extends Ct{constructor(){super(...arguments),Re(this,"priority",80),Re(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Bh(r),0,0,0),e}}class nM extends Ct{constructor(){super(...arguments),Re(this,"priority",80),Re(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Bh(r),0,0,0),e}}class rM extends Ct{constructor(){super(...arguments),Re(this,"priority",80),Re(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Bh(r),0,0,0),e}}class iM extends Ct{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,r){switch(t){case"h":return tn(dn.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return an(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const f=e.getHours()>=12;return f&&r<12?e.setHours(r+12,0,0,0):!f&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}}class oM extends Ct{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,r){switch(t){case"H":return tn(dn.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return an(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}}class sM extends Ct{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,r){switch(t){case"K":return tn(dn.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return an(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}}class aM extends Ct{constructor(){super(...arguments),Re(this,"priority",70),Re(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,r){switch(t){case"k":return tn(dn.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return an(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const f=r<=24?r%24:r;return e.setHours(f,0,0,0),e}}class lM extends Ct{constructor(){super(...arguments),Re(this,"priority",60),Re(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"m":return tn(dn.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return an(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}}class cM extends Ct{constructor(){super(...arguments),Re(this,"priority",50),Re(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"s":return tn(dn.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return an(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}}class uM extends Ct{constructor(){super(...arguments),Re(this,"priority",30),Re(this,"incompatibleTokens",["t","T"])}parse(e,t){const r=f=>Math.trunc(f*Math.pow(10,-t.length+3));return fn(an(t.length,e),r)}set(e,t,r){return e.setMilliseconds(r),e}}class hM extends Ct{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Xr(Jr.basicOptionalMinutes,e);case"XX":return Xr(Jr.basic,e);case"XXXX":return Xr(Jr.basicOptionalSeconds,e);case"XXXXX":return Xr(Jr.extendedOptionalSeconds,e);case"XXX":default:return Xr(Jr.extended,e)}}set(e,t,r){return t.timestampIsSet?e:yn(e,e.getTime()-Da(e)-r)}}class dM extends Ct{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Xr(Jr.basicOptionalMinutes,e);case"xx":return Xr(Jr.basic,e);case"xxxx":return Xr(Jr.basicOptionalSeconds,e);case"xxxxx":return Xr(Jr.extendedOptionalSeconds,e);case"xxx":default:return Xr(Jr.extended,e)}}set(e,t,r){return t.timestampIsSet?e:yn(e,e.getTime()-Da(e)-r)}}class fM extends Ct{constructor(){super(...arguments),Re(this,"priority",40),Re(this,"incompatibleTokens","*")}parse(e){return Vy(e)}set(e,t,r){return[yn(e,r*1e3),{timestampIsSet:!0}]}}class pM extends Ct{constructor(){super(...arguments),Re(this,"priority",20),Re(this,"incompatibleTokens","*")}parse(e){return Vy(e)}set(e,t,r){return[yn(e,r),{timestampIsSet:!0}]}}const gM={G:new IC,y:new OC,Y:new DC,R:new NC,u:new FC,Q:new PC,q:new HC,M:new BC,L:new jC,w:new WC,I:new VC,d:new YC,D:new KC,E:new QC,e:new ZC,c:new JC,i:new eM,a:new tM,b:new nM,B:new rM,h:new iM,H:new oM,K:new sM,k:new aM,m:new lM,s:new cM,S:new uM,X:new hM,x:new dM,t:new fM,T:new pM},mM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vM=/^'([^]*?)'?$/,bM=/''/g,wM=/\S/,xM=/[a-zA-Z]/;function _M(n,e,t,r){var f,h,p,v;const d=()=>yn(t,NaN),g=My(),s=g.locale??kf,l=g.firstWeekContainsDate??((h=(f=g.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,a=g.weekStartsOn??((v=(p=g.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0;if(!e)return n?d():Qt(t,void 0);const c={firstWeekContainsDate:l,weekStartsOn:a,locale:s},o=[new RC(void 0,t)],u=e.match(yM).map(C=>{const k=C[0];if(k in zc){const w=zc[k];return w(C,s.formatLong)}return C}).join("").match(mM),y=[];for(let C of u){Rf(C)&&Wc(C,e,n),Lf(C)&&Wc(C,e,n);const k=C[0],w=gM[k];if(w){const{incompatibleTokens:A}=w;if(Array.isArray(A)){const I=y.find(T=>A.includes(T.token)||T.token===k);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${C}\` at the same time`)}else if(w.incompatibleTokens==="*"&&y.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);y.push({token:k,fullToken:C});const L=w.run(n,C,s.match,c);if(!L)return d();o.push(L.setter),n=L.rest}else{if(k.match(xM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(C==="''"?C="'":k==="'"&&(C=kM(C)),n.indexOf(C)===0)n=n.slice(C.length);else return d()}}if(n.length>0&&wM.test(n))return d();const b=o.map(C=>C.priority).sort((C,k)=>k-C).filter((C,k,w)=>w.indexOf(C)===k).map(C=>o.filter(k=>k.priority===C).sort((k,w)=>w.subPriority-k.subPriority)).map(C=>C[0]);let x=Qt(t,void 0);if(isNaN(+x))return d();const E={};for(const C of b){if(!C.validate(x,c))return d();const k=C.set(x,E,c);Array.isArray(k)?(x=k[0],Object.assign(E,k[1])):x=k}return x}function kM(n){return n.match(vM)[1].replace(bM,"'")}const SM={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function $M(n,e,t,r,f,h){const p=Se("rux-icon");return Pe(),kt(p,{size:t.size,icon:t.icon,style:to(h.colorStyle)},null,8,["size","icon","style"])}const CM=Yr(SM,[["render",$M],["__scopeId","data-v-9af48e85"]]),MM="/icons/status-dark.png",AM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return MM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=RM.indexOf(Ky[this.status]),e=1-(n-1)*.05,t=224*this.scaleFactor*e,r=32*this.scaleFactor*e,f=32*this.scaleFactor*e;return[`background-image: url(${this.icons});`,`background-position-x: -${n*f}px;`,`background-size: ${t}px ${r}px;`,`height: ${f}px;`,`width: ${f}px;`,`padding-top: ${n-1}px;`].join("")}}};function TM(n,e,t,r,f,h){return Pe(),Dt("div",{style:to(h.iconStyle)},null,4)}const EM=Yr(AM,[["render",TM]]),Ky={fatal:"critical",FATAL:"critical",error:"critical",ERROR:"critical",warn:"caution",WARN:"caution",info:"normal",INFO:"normal",debug:"off",DEBUG:"off",critical:"critical",CRITICAL:"critical",serious:"serious",SERIOUS:"serious",caution:"caution",CAUTION:"caution",normal:"normal",NORMAL:"normal",standby:"standby",STANDBY:"standby",off:"off",OFF:"OFF"},zh={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},LM=function(n){const e="#000000",t="#ffffff",r=zh[Ky[n]];if(r){const f=+`0x${r.slice(1,3)}`,h=+`0x${r.slice(3,5)}`,p=+`0x${r.slice(5,7)}`;if((f*299+h*587+p*114)/1e3>128)return e}return t},RM=Object.keys(zh),IM={astro:{component:n=>ks(CM,{...n})},"astro-status":{component:n=>ks(EM,{...n,status:n.icon})}},OM={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(n){return n.replaceAll(" ","-").toLowerCase()},subMenuClick(n){n.command(n),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},DM={class:"app-title mr-2"};function NM(n,e,t,r,f,h){const p=Se("v-col"),v=Se("v-row"),d=Se("v-icon"),g=Se("v-btn"),s=Se("v-divider"),l=Se("v-list-item-title"),a=Se("v-list-item"),c=Se("v-list"),o=Se("v-menu"),u=Se("v-radio"),y=Se("v-list-item-action"),b=Se("v-radio-group"),x=Se("v-checkbox");return Pe(),kt(ef,{to:"#openc3-menu"},[_e(v,{"no-gutters":""},{default:xe(()=>[_e(p,{"align-self":"end"},{default:xe(()=>[Nn("span",DM,Kt(t.title),1)]),_:1})]),_:1}),_e(v,{dense:"",class:"flex-nowrap"},{default:xe(()=>[(Pe(!0),Dt(Fr,null,Gr(t.menus,(E,C)=>(Pe(),kt(o,{ref_for:!0,ref:"topmenu",key:C},{activator:xe(({props:k})=>[_e(g,Ss({ref_for:!0},k,{variant:"outlined",class:"mx-1 menu-button",text:E.label,"data-test":h.formatDT(`${t.title} ${E.label}`)}),{append:xe(()=>[_e(d,{class:"menu-button-icon"},{default:xe(()=>e[0]||(e[0]=[pt(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:xe(()=>[_e(c,null,{default:xe(()=>[(Pe(!0),Dt(Fr,null,Gr(E.items,(k,w)=>(Pe(),Dt(Fr,null,[k.divider?(Pe(),kt(s,{key:w+"-divider"})):k.subMenu&&k.subMenu.length>0?(Pe(),Dt("div",{key:w+"-submenu"},[(Pe(),kt(o,{"open-on-hover":"",location:"right",key:w},{activator:xe(({props:A})=>[(Pe(),kt(a,Ss({ref_for:!0},A,{disabled:k.disabled,key:w}),Nc({append:xe(()=>[_e(d,null,{default:xe(()=>e[1]||(e[1]=[pt(" mdi-chevron-right ")])),_:1})]),default:xe(()=>[!k.radio&&!k.checkbox?(Pe(),kt(l,{key:0,style:to("cursor: pointer;"+(k.disabled?"opacity: 0.2":""))},{default:xe(()=>[pt(Kt(k.label),1)]),_:2},1032,["style"])):ir("",!0)]),_:2},[k.icon?{name:"prepend",fn:xe(()=>[_e(d,{disabled:k.disabled},{default:xe(()=>[pt(Kt(k.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:xe(()=>[_e(c,null,{default:xe(()=>[(Pe(!0),Dt(Fr,null,Gr(k.subMenu,(A,L)=>(Pe(),kt(a,{key:L,"prepend-icon":A.icon,onClick:I=>h.subMenuClick(A)},{default:xe(()=>[_e(l,null,{default:xe(()=>[pt(Kt(A.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):k.radioGroup?(Pe(),kt(b,{"model-value":k.value,"onUpdate:modelValue":k.command,key:w+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:xe(()=>[(Pe(!0),Dt(Fr,null,Gr(k.choices,(A,L)=>(Pe(),kt(a,{key:L+"-choice"},{default:xe(()=>[_e(y,{class:"list-action"},{default:xe(()=>[_e(u,{color:"secondary",label:A.label,value:A.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(Pe(),kt(a,{onClick:A=>k.command(k),disabled:k.disabled,"data-test":h.formatDT(`${t.title} ${E.label} ${k.label}`),key:w+"-list"},Nc({default:xe(()=>[k.checkbox?(Pe(),kt(y,{key:0,class:"list-action"},{default:xe(()=>[_e(x,{modelValue:k.checked,"onUpdate:modelValue":A=>k.checked=A,label:k.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):ir("",!0),!k.radio&&!k.checkbox?(Pe(),kt(l,{key:1,style:to("cursor: pointer;"+(k.disabled?"opacity: 0.2":""))},{default:xe(()=>[pt(Kt(k.label),1)]),_:2},1032,["style"])):ir("",!0)]),_:2},[k.icon?{name:"prepend",fn:xe(()=>[_e(d,{icon:k.icon,disabled:k.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const FM=Yr(OM,[["render",NM],["__scopeId","data-v-4d454b93"]]),Qy="single-spa:app-change",PM={data(){return{show:!1}},created(){window.addEventListener(Qy,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=pf().length===0},150)},unmounted(){window.removeEventListener(Qy,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},HM={class:"mx-1"};function BM(n,e,t,r,f,h){const p=Se("v-card-title"),v=Se("v-card-text"),d=Se("v-card");return f.show?(Pe(),kt(d,{key:0},{default:xe(()=>[_e(p,null,{default:xe(()=>e[0]||(e[0]=[pt(" 404 Not Found ")])),_:1}),_e(v,{class:"d-flex align-center mt-3"},{default:xe(()=>[e[1]||(e[1]=pt(" The requested URL ")),Nn("code",HM,Kt(n.$route.fullPath),1),e[2]||(e[2]=pt(" was not routable. ")),e[3]||(e[3]=Nn("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):ir("",!0)}const jM=Yr(PM,[["render",BM]]),zM={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const n=/\w+.gem/;return this.response.tree.filter(e=>n.exec(e.path)).map(e=>({name:e.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`}))},getResponse:function(){this.disableSearch=!0,wn.get(this.url).then(n=>{this.response=n.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(n){const e=document.createElement("a");e.href=n.url,e.setAttribute("download",n.name),e.click(),e.remove()}}},WM={class:"pa-3"},UM={class:"px-2"},VM={key:0,class:"mt-4"},qM={key:1,class:"mt-4"},GM={key:0},YM={key:1};function KM(n,e,t,r,f,h){const p=Se("v-spacer"),v=Se("v-toolbar"),d=Se("v-row"),g=Se("v-icon"),s=Se("v-btn"),l=Se("v-col"),a=Se("v-list-item-title"),c=Se("v-progress-circular"),o=Se("v-tooltip"),u=Se("v-list-item"),y=Se("v-divider"),b=Se("v-card-text"),x=Se("v-card"),E=Se("v-dialog");return Pe(),kt(E,{modelValue:h.show,"onUpdate:modelValue":e[0]||(e[0]=C=>h.show=C),width:"600"},{default:xe(()=>[_e(x,null,{default:xe(()=>[_e(v,{height:"24"},{default:xe(()=>[_e(p),e[1]||(e[1]=Nn("span",null," Download Gems ",-1)),_e(p)]),_:1}),_e(b,null,{default:xe(()=>[Nn("div",WM,[_e(d,{class:"my-2"},{default:xe(()=>e[2]||(e[2]=[pt(" Select a download option ")])),_:1}),_e(d,null,{default:xe(()=>[_e(l,null,{default:xe(()=>[Nn("div",UM,[_e(s,{onClick:h.searchGithub,block:"","data-test":"searchGithub",color:"primary",disabled:f.disableSearch},{default:xe(()=>[e[4]||(e[4]=pt(" Github ")),_e(g,{end:"",theme:"dark"},{default:xe(()=>e[3]||(e[3]=[pt(" mdi-github ")])),_:1})]),_:1},8,["onClick","disabled"])])]),_:1})]),_:1}),_e(d,{class:"mt-5"},{default:xe(()=>e[5]||(e[5]=[pt(" Community Gems ")])),_:1}),h.listData.length<1?(Pe(),Dt("div",VM,[_e(d,{class:"mx-2"},{default:xe(()=>e[6]||(e[6]=[Nn("span",null," I’m sorry, Dave. No gems available.... ",-1)])),_:1})])):(Pe(),Dt("div",qM,[(Pe(!0),Dt(Fr,null,Gr(h.listData,(C,k)=>(Pe(),Dt("div",{key:k},[_e(u,null,{default:xe(()=>[_e(a,null,{default:xe(()=>[pt(Kt(C.name),1)]),_:2},1024),_e(u,{icon:""},{default:xe(()=>[f.activeDownload?(Pe(),Dt("div",GM,[_e(c,{indeterminate:"",color:"primary"})])):(Pe(),Dt("div",YM,[_e(o,{location:"top"},{activator:xe(({props:w})=>[_e(g,Ss({ref_for:!0},w,{onClick:A=>h.downloadGem(C),disabled:f.activeDownload}),{default:xe(()=>e[7]||(e[7]=[pt(" mdi-cloud-download ")])),_:2},1040,["onClick","disabled"])]),default:xe(()=>[e[8]||(e[8]=Nn("span",null,"Download Gem",-1))]),_:2},1024)]))]),_:2},1024)]),_:2},1024),k<h.listData.length-1?(Pe(),kt(y,{key:k})):ir("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const sO=Dn("b",Yr(zM,[["render",KM]])),QM={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},created(){for(const n of this.targets)ux.get(`/openc3-api/targets/${n.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:n.name,files:e.data})})}};function ZM(n,e,t,r,f,h){const p=Se("v-spacer"),v=Se("v-toolbar"),d=Se("v-list-item-title"),g=Se("v-list-item-subtitle"),s=Se("v-list-item"),l=Se("v-checkbox"),a=Se("v-card-text"),c=Se("v-btn"),o=Se("v-card-actions"),u=Se("v-card"),y=Se("v-dialog");return Pe(),kt(y,{modelValue:h.show,"onUpdate:modelValue":e[3]||(e[3]=b=>h.show=b),width:"600"},{default:xe(()=>[_e(u,null,{default:xe(()=>[_e(v,{height:"24"},{default:xe(()=>[_e(p),e[4]||(e[4]=Nn("span",null," Modified Plugin ",-1)),_e(p)]),_:1}),_e(a,{class:"pa-3"},{default:xe(()=>[Nn("div",null," Plugin "+Kt(t.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(Pe(!0),Dt(Fr,null,Gr(f.modifiedTargets,(b,x)=>(Pe(),kt(s,{lines:"two",key:x},{default:xe(()=>[_e(d,null,{default:xe(()=>[pt(Kt(b.name),1)]),_:2},1024),(Pe(!0),Dt(Fr,null,Gr(b.files,(E,C)=>(Pe(),kt(g,{key:C},{default:xe(()=>[pt(Kt(E),1)]),_:2},1024))),128))]),_:2},1024))),128)),_e(l,{modelValue:f.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=b=>f.deleteModified=b),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),_e(o,{class:"px-2"},{default:xe(()=>[_e(p),_e(c,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:e[1]||(e[1]=()=>{h.show=!1,n.$emit("cancel")})},{default:xe(()=>e[5]||(e[5]=[pt(" Cancel ")])),_:1}),_e(c,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[2]||(e[2]=()=>{h.show=!1,n.$emit("submit",f.deleteModified)})},{default:xe(()=>e[6]||(e[6]=[pt(" Confirm ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const aO=Dn("w",Yr(QM,[["render",ZM]])),Wh=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>De(()=>Oe.import("./PluginsTab-CJXN3NPm-dfd0735009f8867c79bc.js"),void 0)},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>De(()=>Oe.import("./TargetsTab-LyhY8e5l-97cd8f57a37fbec3189a.js"),void 0)},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>De(()=>Oe.import("./InterfacesTab-Byu6IcaT-95abcb5574592a90078b.js"),void 0)},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>De(()=>Oe.import("./RoutersTab-DHNCXBbM-1a90a758680839afe5bd.js"),void 0)},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>De(()=>Oe.import("./MicroservicesTab-CWf6UOgI-b4b60ecff4d31dae4aa8.js"),void 0)},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>De(()=>Oe.import("./PackagesTab-_Sm5Sh1M-cf16003c47a30de4cc75.js"),void 0)},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>De(()=>Oe.import("./ToolsTab-jhSXe5zM-d0ac19c0d72366628752.js"),void 0)},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>De(()=>Oe.import("./RedisTab-BwSYwFqz-3119c9906a91eaf4d7be.js"),void 0)},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>De(()=>Oe.import("./SecretsTab-Dn8_2IXp-734c000bb5e97fff6d7d.js"),void 0)},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>De(()=>Oe.import("./SettingsTab-BZBJZWtN-d8e376586fa303549fab.js"),void 0)}],JM={components:{TopBar:FM},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return Wh.map(n=>({displayName:n.displayName,path:{name:n.name}}))}}};function XM(n,e,t,r,f,h){const p=Se("top-bar"),v=Se("v-tab"),d=Se("v-tabs"),g=Se("router-view"),s=Se("v-card");return Pe(),Dt("div",null,[_e(p,{title:f.title},null,8,["title"]),_e(s,null,{default:xe(()=>[_e(d,{modelValue:f.curTab,"onUpdate:modelValue":e[0]||(e[0]=l=>f.curTab=l),"fixed-tabs":""},{default:xe(()=>[(Pe(!0),Dt(Fr,null,Gr(h.tabs,(l,a)=>(Pe(),kt(v,{key:a,to:l.path},{default:xe(()=>[pt(Kt(l.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),_e(g)]),_:1})])}const eA=Yr(JM,[["render",XM]]);var we=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},jt=-1,Gt=1,ut=0;we.Diff=function(n,e){this[0]=n,this[1]=e},we.Diff.prototype.length=2,we.Diff.prototype.toString=function(){return this[0]+","+this[1]},we.prototype.diff_main=function(n,e,t,r){typeof r>"u"&&(this.Diff_Timeout<=0?r=Number.MAX_VALUE:r=new Date().getTime()+this.Diff_Timeout*1e3);var f=r;if(n==null||e==null)throw new Error("Null input. (diff_main)");if(n==e)return n?[new we.Diff(ut,n)]:[];typeof t>"u"&&(t=!0);var h=t,p=this.diff_commonPrefix(n,e),v=n.substring(0,p);n=n.substring(p),e=e.substring(p),p=this.diff_commonSuffix(n,e);var d=n.substring(n.length-p);n=n.substring(0,n.length-p),e=e.substring(0,e.length-p);var g=this.diff_compute_(n,e,h,f);return v&&g.unshift(new we.Diff(ut,v)),d&&g.push(new we.Diff(ut,d)),this.diff_cleanupMerge(g),g},we.prototype.diff_compute_=function(n,e,t,r){var f;if(!n)return[new we.Diff(Gt,e)];if(!e)return[new we.Diff(jt,n)];var h=n.length>e.length?n:e,p=n.length>e.length?e:n,v=h.indexOf(p);return v!=-1?(f=[new we.Diff(Gt,h.substring(0,v)),new we.Diff(ut,p),new we.Diff(Gt,h.substring(v+p.length))],n.length>e.length&&(f[0][0]=f[2][0]=jt),f):p.length==1?[new we.Diff(jt,n),new we.Diff(Gt,e)]:t&&n.length>100&&e.length>100?this.diff_lineMode_(n,e,r):this.diff_bisect_(n,e,r)},we.prototype.diff_lineMode_=function(n,e,t){var r=this.diff_linesToChars_(n,e);n=r.chars1,e=r.chars2;var f=r.lineArray,h=this.diff_main(n,e,!1,t);this.diff_charsToLines_(h,f),this.diff_cleanupSemantic(h),h.push(new we.Diff(ut,""));for(var p=0,v=0,d=0,g="",s="";p<h.length;){switch(h[p][0]){case Gt:d++,s+=h[p][1];break;case jt:v++,g+=h[p][1];break;case ut:if(v>=1&&d>=1){h.splice(p-v-d,v+d),p=p-v-d;for(var l=this.diff_main(g,s,!1,t),a=l.length-1;a>=0;a--)h.splice(p,0,l[a]);p=p+l.length}d=0,v=0,g="",s="";break}p++}return h.pop(),h},we.prototype.diff_bisect_=function(n,e,t){for(var r=n.length,f=e.length,h=Math.ceil((r+f)/2),p=h,v=2*h,d=new Array(v),g=new Array(v),s=0;s<v;s++)d[s]=-1,g[s]=-1;d[p+1]=0,g[p+1]=0;for(var l=r-f,a=l%2!=0,c=0,o=0,u=0,y=0,b=0;b<h&&!(new Date().getTime()>t);b++){for(var x=-b+c;x<=b-o;x+=2){var E=p+x,C;x==-b||x!=b&&d[E-1]<d[E+1]?C=d[E+1]:C=d[E-1]+1;for(var k=C-x;C<r&&k<f&&n.charAt(C)==e.charAt(k);)C++,k++;if(d[E]=C,C>r)o+=2;else if(k>f)c+=2;else if(a){var w=p+l-x;if(w>=0&&w<v&&g[w]!=-1){var A=r-g[w];if(C>=A)return this.diff_bisectSplit_(n,e,C,k,t)}}}for(var L=-b+u;L<=b-y;L+=2){var w=p+L,A;L==-b||L!=b&&g[w-1]<g[w+1]?A=g[w+1]:A=g[w-1]+1;for(var I=A-L;A<r&&I<f&&n.charAt(r-A-1)==e.charAt(f-I-1);)A++,I++;if(g[w]=A,A>r)y+=2;else if(I>f)u+=2;else if(!a){var E=p+l-L;if(E>=0&&E<v&&d[E]!=-1){var C=d[E],k=p+C-E;if(A=r-A,C>=A)return this.diff_bisectSplit_(n,e,C,k,t)}}}}return[new we.Diff(jt,n),new we.Diff(Gt,e)]},we.prototype.diff_bisectSplit_=function(n,e,t,r,f){var h=n.substring(0,t),p=e.substring(0,r),v=n.substring(t),d=e.substring(r),g=this.diff_main(h,p,!1,f),s=this.diff_main(v,d,!1,f);return g.concat(s)},we.prototype.diff_linesToChars_=function(n,e){var t=[],r={};t[0]="";function f(d){for(var g="",s=0,l=-1,a=t.length;l<d.length-1;){l=d.indexOf(`
1414
+ `,s),l==-1&&(l=d.length-1);var c=d.substring(s,l+1);(r.hasOwnProperty?r.hasOwnProperty(c):r[c]!==void 0)?g+=String.fromCharCode(r[c]):(a==h&&(c=d.substring(s),l=d.length),g+=String.fromCharCode(a),r[c]=a,t[a++]=c),s=l+1}return g}var h=4e4,p=f(n);h=65535;var v=f(e);return{chars1:p,chars2:v,lineArray:t}},we.prototype.diff_charsToLines_=function(n,e){for(var t=0;t<n.length;t++){for(var r=n[t][1],f=[],h=0;h<r.length;h++)f[h]=e[r.charCodeAt(h)];n[t][1]=f.join("")}},we.prototype.diff_commonPrefix=function(n,e){if(!n||!e||n.charAt(0)!=e.charAt(0))return 0;for(var t=0,r=Math.min(n.length,e.length),f=r,h=0;t<f;)n.substring(h,f)==e.substring(h,f)?(t=f,h=t):r=f,f=Math.floor((r-t)/2+t);return f},we.prototype.diff_commonSuffix=function(n,e){if(!n||!e||n.charAt(n.length-1)!=e.charAt(e.length-1))return 0;for(var t=0,r=Math.min(n.length,e.length),f=r,h=0;t<f;)n.substring(n.length-f,n.length-h)==e.substring(e.length-f,e.length-h)?(t=f,h=t):r=f,f=Math.floor((r-t)/2+t);return f},we.prototype.diff_commonOverlap_=function(n,e){var t=n.length,r=e.length;if(t==0||r==0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));var f=Math.min(t,r);if(n==e)return f;for(var h=0,p=1;;){var v=n.substring(f-p),d=e.indexOf(v);if(d==-1)return h;p+=d,(d==0||n.substring(f-p)==e.substring(0,p))&&(h=p,p++)}},we.prototype.diff_halfMatch_=function(n,e){if(this.Diff_Timeout<=0)return null;var t=n.length>e.length?n:e,r=n.length>e.length?e:n;if(t.length<4||r.length*2<t.length)return null;var f=this;function h(o,u,y){for(var b=o.substring(y,y+Math.floor(o.length/4)),x=-1,E="",C,k,w,A;(x=u.indexOf(b,x+1))!=-1;){var L=f.diff_commonPrefix(o.substring(y),u.substring(x)),I=f.diff_commonSuffix(o.substring(0,y),u.substring(0,x));E.length<I+L&&(E=u.substring(x-I,x)+u.substring(x,x+L),C=o.substring(0,y-I),k=o.substring(y+L),w=u.substring(0,x-I),A=u.substring(x+L))}return E.length*2>=o.length?[C,k,w,A,E]:null}var p=h(t,r,Math.ceil(t.length/4)),v=h(t,r,Math.ceil(t.length/2)),d;if(!p&&!v)return null;v?p?d=p[4].length>v[4].length?p:v:d=v:d=p;var g,s,l,a;n.length>e.length?(g=d[0],s=d[1],l=d[2],a=d[3]):(l=d[0],a=d[1],g=d[2],s=d[3]);var c=d[4];return[g,s,l,a,c]},we.prototype.diff_cleanupSemantic=function(n){for(var e=!1,t=[],r=0,f=null,h=0,p=0,v=0,d=0,g=0;h<n.length;)n[h][0]==ut?(t[r++]=h,p=d,v=g,d=0,g=0,f=n[h][1]):(n[h][0]==Gt?d+=n[h][1].length:g+=n[h][1].length,f&&f.length<=Math.max(p,v)&&f.length<=Math.max(d,g)&&(n.splice(t[r-1],0,new we.Diff(jt,f)),n[t[r-1]+1][0]=Gt,r--,r--,h=r>0?t[r-1]:-1,p=0,v=0,d=0,g=0,f=null,e=!0)),h++;for(e&&this.diff_cleanupMerge(n),this.diff_cleanupSemanticLossless(n),h=1;h<n.length;){if(n[h-1][0]==jt&&n[h][0]==Gt){var s=n[h-1][1],l=n[h][1],a=this.diff_commonOverlap_(s,l),c=this.diff_commonOverlap_(l,s);a>=c?(a>=s.length/2||a>=l.length/2)&&(n.splice(h,0,new we.Diff(ut,l.substring(0,a))),n[h-1][1]=s.substring(0,s.length-a),n[h+1][1]=l.substring(a),h++):(c>=s.length/2||c>=l.length/2)&&(n.splice(h,0,new we.Diff(ut,s.substring(0,c))),n[h-1][0]=Gt,n[h-1][1]=l.substring(0,l.length-c),n[h+1][0]=jt,n[h+1][1]=s.substring(c),h++),h++}h++}},we.prototype.diff_cleanupSemanticLossless=function(n){function e(c,o){if(!c||!o)return 6;var u=c.charAt(c.length-1),y=o.charAt(0),b=u.match(we.nonAlphaNumericRegex_),x=y.match(we.nonAlphaNumericRegex_),E=b&&u.match(we.whitespaceRegex_),C=x&&y.match(we.whitespaceRegex_),k=E&&u.match(we.linebreakRegex_),w=C&&y.match(we.linebreakRegex_),A=k&&c.match(we.blanklineEndRegex_),L=w&&o.match(we.blanklineStartRegex_);return A||L?5:k||w?4:b&&!E&&C?3:E||C?2:b||x?1:0}for(var t=1;t<n.length-1;){if(n[t-1][0]==ut&&n[t+1][0]==ut){var r=n[t-1][1],f=n[t][1],h=n[t+1][1],p=this.diff_commonSuffix(r,f);if(p){r[r.length-p]===`
1415
+ `&&(p-=1);var v=f.substring(f.length-p);r=r.substring(0,r.length-p),f=v+f.substring(0,f.length-p),h=v+h}for(var d=r,g=f,s=h,l=e(r,f)+e(f,h);f.charAt(0)===h.charAt(0);){r+=f.charAt(0),f=f.substring(1)+h.charAt(0),h=h.substring(1);var a=e(r,f)+e(f,h);a>=l&&(l=a,d=r,g=f,s=h)}n[t-1][1]!=d&&(d?n[t-1][1]=d:(n.splice(t-1,1),t--),n[t][1]=g,s?n[t+1][1]=s:(n.splice(t+1,1),t--))}t++}},we.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,we.whitespaceRegex_=/\s/,we.linebreakRegex_=/[\r\n]/,we.blanklineEndRegex_=/\n\r?\n$/,we.blanklineStartRegex_=/^\r?\n\r?\n/,we.prototype.diff_cleanupEfficiency=function(n){for(var e=!1,t=[],r=0,f=null,h=0,p=!1,v=!1,d=!1,g=!1;h<n.length;)n[h][0]==ut?(n[h][1].length<this.Diff_EditCost&&(d||g)?(t[r++]=h,p=d,v=g,f=n[h][1]):(r=0,f=null),d=g=!1):(n[h][0]==jt?g=!0:d=!0,f&&(p&&v&&d&&g||f.length<this.Diff_EditCost/2&&p+v+d+g==3)&&(n.splice(t[r-1],0,new we.Diff(jt,f)),n[t[r-1]+1][0]=Gt,r--,f=null,p&&v?(d=g=!0,r=0):(r--,h=r>0?t[r-1]:-1,d=g=!1),e=!0)),h++;e&&this.diff_cleanupMerge(n)},we.prototype.diff_cleanupMerge=function(n){n.push(new we.Diff(ut,""));for(var e=0,t=0,r=0,f="",h="",p;e<n.length;)switch(n[e][0]){case Gt:r++,h+=n[e][1],e++;break;case jt:t++,f+=n[e][1],e++;break;case ut:t+r>1?(t!==0&&r!==0&&(p=this.diff_commonPrefix(h,f),p!==0&&(e-t-r>0&&n[e-t-r-1][0]==ut?n[e-t-r-1][1]+=h.substring(0,p):(n.splice(0,0,new we.Diff(ut,h.substring(0,p))),e++),h=h.substring(p),f=f.substring(p)),p=this.diff_commonSuffix(h,f),p!==0&&(n[e][1]=h.substring(h.length-p)+n[e][1],h=h.substring(0,h.length-p),f=f.substring(0,f.length-p))),e-=t+r,n.splice(e,t+r),f.length&&(n.splice(e,0,new we.Diff(jt,f)),e++),h.length&&(n.splice(e,0,new we.Diff(Gt,h)),e++),e++):e!==0&&n[e-1][0]==ut?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,f="",h="";break}n[n.length-1][1]===""&&n.pop();var v=!1;for(e=1;e<n.length-1;)n[e-1][0]==ut&&n[e+1][0]==ut&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)==n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),v=!0):n[e][1].substring(0,n[e+1][1].length)==n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),v=!0)),e++;v&&this.diff_cleanupMerge(n)},we.prototype.diff_cleanupSplitSurrogates=function(n){for(var e,t=0;t<n.length;t++){var r=n[t],f=r[1][0],h=r[1][r[1].length-1];if(r[1].length===0){n.splice(t--,1);continue}if(h&&this.isHighSurrogate(h)&&(e=h,r[1]=r[1].slice(0,-1)),e&&f&&this.isHighSurrogate(e)&&this.isLowSurrogate(f)&&(r[1]=e+r[1]),r[1].length===0){n.splice(t--,1);continue}}return n},we.prototype.isHighSurrogate=function(n){var e=n.charCodeAt(0);return e>=55296&&e<=56319},we.prototype.isLowSurrogate=function(n){var e=n.charCodeAt(0);return e>=56320&&e<=57343},we.prototype.digit16=function(n){switch(n){case"0":return 0;case"1":return 1;case"2":return 2;case"3":return 3;case"4":return 4;case"5":return 5;case"6":return 6;case"7":return 7;case"8":return 8;case"9":return 9;case"A":case"a":return 10;case"B":case"b":return 11;case"C":case"c":return 12;case"D":case"d":return 13;case"E":case"e":return 14;case"F":case"f":return 15;default:throw new Error("Invalid hex-code")}},we.prototype.decodeURI=function(n){try{return decodeURI(n)}catch{for(var e=0,t="";e<n.length;){if(n[e]!=="%"){t+=n[e++];continue}var r=(this.digit16(n[e+1])<<4)+this.digit16(n[e+2]);if(!(r&128)){t+=String.fromCharCode(r),e+=3;continue}if(n[e+3]!=="%")throw new URIError("URI malformed");var f=(this.digit16(n[e+4])<<4)+this.digit16(n[e+5]);if((f&192)!==128)throw new URIError("URI malformed");if(f=f&63,(r&224)===192){t+=String.fromCharCode((r&31)<<6|f),e+=6;continue}if(n[e+6]!=="%")throw new URIError("URI malformed");var h=(this.digit16(n[e+7])<<4)+this.digit16(n[e+8]);if((h&192)!==128)throw new URIError("URI malformed");if(h=h&63,(r&240)===224){t+=String.fromCharCode((r&15)<<12|f<<6|h),e+=9;continue}if(n[e+9]!=="%")throw new URIError("URI malformed");var p=(this.digit16(n[e+10])<<4)+this.digit16(n[e+11]);if((p&192)!==128)throw new URIError("URI malformed");if(p=p&63,(r&248)===240){var v=(r&7)<<18|f<<12|h<<6|p;if(v>=65536&&v<=1114111){t+=String.fromCharCode((v&65535)>>>10&1023|55296),t+=String.fromCharCode(56320|v&65535&1023),e+=12;continue}}throw new URIError("URI malformed")}return t}},we.prototype.diff_xIndex=function(n,e){var t=0,r=0,f=0,h=0,p;for(p=0;p<n.length&&(n[p][0]!==Gt&&(t+=n[p][1].length),n[p][0]!==jt&&(r+=n[p][1].length),!(t>e));p++)f=t,h=r;return n.length!=p&&n[p][0]===jt?h:h+(e-f)},we.prototype.diff_prettyHtml=function(n){n=this.diff_cleanupSplitSurrogates(n);for(var e=[],t=/&/g,r=/</g,f=/>/g,h=/\n/g,p=0;p<n.length;p++){var v=n[p][0],d=n[p][1],g=d.replace(t,"&amp;").replace(r,"&lt;").replace(f,"&gt;").replace(h,"&para;<br>");switch(v){case Gt:e[p]='<ins style="background:#e6ffe6;">'+g+"</ins>";break;case jt:e[p]='<del style="background:#ffe6e6;">'+g+"</del>";break;case ut:e[p]="<span>"+g+"</span>";break}}return e.join("")},we.prototype.diff_text1=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==Gt&&(e[t]=n[t][1]);return e.join("")},we.prototype.diff_text2=function(n){for(var e=[],t=0;t<n.length;t++)n[t][0]!==jt&&(e[t]=n[t][1]);return e.join("")},we.prototype.diff_levenshtein=function(n){for(var e=0,t=0,r=0,f=0;f<n.length;f++){var h=n[f][0],p=n[f][1];switch(h){case Gt:t+=p.length;break;case jt:r+=p.length;break;case ut:e+=Math.max(t,r),t=0,r=0;break}}return e+=Math.max(t,r),e},we.prototype.diff_toDelta=function(n){n=this.diff_cleanupSplitSurrogates(n);for(var e=[],t=0;t<n.length;t++)switch(n[t][0]){case Gt:e[t]="+"+encodeURI(n[t][1]);break;case jt:e[t]="-"+n[t][1].length;break;case ut:e[t]="="+n[t][1].length;break}return e.join(" ").replace(/%20/g," ")},we.prototype.diff_fromDelta=function(n,e){for(var t=[],r=0,f=0,h=e.split(/\t/g),p=0;p<h.length;p++){var v=h[p].substring(1);switch(h[p].charAt(0)){case"+":try{t[r++]=new we.Diff(Gt,this.decodeURI(v))}catch{throw new Error("Illegal escape in diff_fromDelta: "+v)}break;case"-":case"=":var d=parseInt(v,10);if(isNaN(d)||d<0)throw new Error("Invalid number in diff_fromDelta: "+v);var g=n.substring(f,f+=d);h[p].charAt(0)=="="?t[r++]=new we.Diff(ut,g):t[r++]=new we.Diff(jt,g);break;default:if(h[p])throw new Error("Invalid diff operation in diff_fromDelta: "+h[p])}}if(f!=n.length)throw new Error("Delta length ("+f+") does not equal source text length ("+n.length+").");return t},we.prototype.match_main=function(n,e,t){if(n==null||e==null||t==null)throw new Error("Null input. (match_main)");return t=Math.max(0,Math.min(t,n.length)),n==e?0:n.length?n.substring(t,t+e.length)==e?t:this.match_bitap_(n,e,t):-1},we.prototype.match_bitap_=function(n,e,t){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(e),f=this;function h(C,k){var w=C/e.length,A=Math.abs(t-k);return f.Match_Distance?w+A/f.Match_Distance:A?1:w}var p=this.Match_Threshold,v=n.indexOf(e,t);v!=-1&&(p=Math.min(h(0,v),p),v=n.lastIndexOf(e,t+e.length),v!=-1&&(p=Math.min(h(0,v),p)));var d=1<<e.length-1;v=-1;for(var g,s,l=e.length+n.length,a,c=0;c<e.length;c++){for(g=0,s=l;g<s;)h(c,t+s)<=p?g=s:l=s,s=Math.floor((l-g)/2+g);l=s;var o=Math.max(1,t-s+1),u=Math.min(t+s,n.length)+e.length,y=Array(u+2);y[u+1]=(1<<c)-1;for(var b=u;b>=o;b--){var x=r[n.charAt(b-1)];if(c===0?y[b]=(y[b+1]<<1|1)&x:y[b]=(y[b+1]<<1|1)&x|((a[b+1]|a[b])<<1|1)|a[b+1],y[b]&d){var E=h(c,b-1);if(E<=p)if(p=E,v=b-1,v>t)o=Math.max(1,2*t-v);else break}}if(h(c+1,t)>p)break;a=y}return v},we.prototype.match_alphabet_=function(n){for(var e={},t=0;t<n.length;t++)e[n.charAt(t)]=0;for(var t=0;t<n.length;t++)e[n.charAt(t)]|=1<<n.length-t-1;return e},we.prototype.patch_addContext_=function(n,e){if(e.length!=0){if(n.start2===null)throw Error("patch not initialized");for(var t=e.substring(n.start2,n.start2+n.length1),r=0;e.indexOf(t)!=e.lastIndexOf(t)&&t.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,t=e.substring(n.start2-r,n.start2+n.length1+r);r+=this.Patch_Margin,n.start2-r>0&&we.prototype.isLowSurrogate(e[n.start2-r])&&r++;var f=e.substring(n.start2-r,n.start2);f&&n.diffs.unshift(new we.Diff(ut,f)),n.start2+n.length1+r<e.length&&we.prototype.isHighSurrogate(e[n.start2+n.length1+r])&&r++;var h=e.substring(n.start2+n.length1,n.start2+n.length1+r);h&&n.diffs.push(new we.Diff(ut,h)),n.start1-=f.length,n.start2-=f.length,n.length1+=f.length+h.length,n.length2+=f.length+h.length}},we.prototype.patch_make=function(n,e,t){var r,f;if(typeof n=="string"&&typeof e=="string"&&typeof t>"u")r=n,f=this.diff_main(r,e,!0),f.length>2&&(this.diff_cleanupSemantic(f),this.diff_cleanupEfficiency(f));else if(n&&typeof n=="object"&&typeof e>"u"&&typeof t>"u")f=n,r=this.diff_text1(f);else if(typeof n=="string"&&e&&typeof e=="object"&&typeof t>"u")r=n,f=e;else if(typeof n=="string"&&typeof e=="string"&&t&&typeof t=="object")r=n,f=t;else throw new Error("Unknown call format to patch_make.");if(f.length===0)return[];f=this.diff_cleanupSplitSurrogates(f);for(var h=[],p=new we.patch_obj,v=0,d=0,g=0,s=r,l=r,a=0;a<f.length;a++){var c=f[a][0],o=f[a][1];switch(!v&&c!==ut&&(p.start1=d,p.start2=g),c){case Gt:p.diffs[v++]=f[a],p.length2+=o.length,l=l.substring(0,g)+o+l.substring(g);break;case jt:p.length1+=o.length,p.diffs[v++]=f[a],l=l.substring(0,g)+l.substring(g+o.length);break;case ut:o.length<=2*this.Patch_Margin&&v&&f.length!=a+1?(p.diffs[v++]=f[a],p.length1+=o.length,p.length2+=o.length):o.length>=2*this.Patch_Margin&&v&&(this.patch_addContext_(p,s),h.push(p),p=new we.patch_obj,v=0,s=l,d=g);break}c!==Gt&&(d+=o.length),c!==jt&&(g+=o.length)}return v&&(this.patch_addContext_(p,s),h.push(p)),h},we.prototype.patch_deepCopy=function(n){for(var e=[],t=0;t<n.length;t++){var r=n[t],f=new we.patch_obj;f.diffs=[];for(var h=0;h<r.diffs.length;h++)f.diffs[h]=new we.Diff(r.diffs[h][0],r.diffs[h][1]);f.start1=r.start1,f.start2=r.start2,f.length1=r.length1,f.length2=r.length2,e[t]=f}return e},we.prototype.patch_apply=function(n,e){if(n.length==0)return[e,[]];n=this.patch_deepCopy(n);var t=this.patch_addPadding(n);e=t+e+t,this.patch_splitMax(n);for(var r=0,f=[],h=0;h<n.length;h++){var p=n[h].start2+r,v=this.diff_text1(n[h].diffs),d,g=-1;if(v.length>this.Match_MaxBits?(d=this.match_main(e,v.substring(0,this.Match_MaxBits),p),d!=-1&&(g=this.match_main(e,v.substring(v.length-this.Match_MaxBits),p+v.length-this.Match_MaxBits),(g==-1||d>=g)&&(d=-1))):d=this.match_main(e,v,p),d==-1)f[h]=!1,r-=n[h].length2-n[h].length1;else{f[h]=!0,r=d-p;var s;if(g==-1?s=e.substring(d,d+v.length):s=e.substring(d,g+this.Match_MaxBits),v==s)e=e.substring(0,d)+this.diff_text2(n[h].diffs)+e.substring(d+v.length);else{var l=this.diff_main(v,s,!1);if(v.length>this.Match_MaxBits&&this.diff_levenshtein(l)/v.length>this.Patch_DeleteThreshold)f[h]=!1;else{this.diff_cleanupSemanticLossless(l);for(var a=0,c,o=0;o<n[h].diffs.length;o++){var u=n[h].diffs[o];u[0]!==ut&&(c=this.diff_xIndex(l,a)),u[0]===Gt?e=e.substring(0,d+c)+u[1]+e.substring(d+c):u[0]===jt&&(e=e.substring(0,d+c)+e.substring(d+this.diff_xIndex(l,a+u[1].length))),u[0]!==jt&&(a+=u[1].length)}}}}}return e=e.substring(t.length,e.length-t.length),[e,f]},we.prototype.patch_addPadding=function(n){for(var e=this.Patch_Margin,t="",r=1;r<=e;r++)t+=String.fromCharCode(r);for(var r=0;r<n.length;r++)n[r].start1+=e,n[r].start2+=e;var f=n[0],h=f.diffs;if(h.length==0||h[0][0]!=ut)h.unshift(new we.Diff(ut,t)),f.start1-=e,f.start2-=e,f.length1+=e,f.length2+=e;else if(e>h[0][1].length){var p=e-h[0][1].length;h[0][1]=t.substring(h[0][1].length)+h[0][1],f.start1-=p,f.start2-=p,f.length1+=p,f.length2+=p}if(f=n[n.length-1],h=f.diffs,h.length==0||h[h.length-1][0]!=ut)h.push(new we.Diff(ut,t)),f.length1+=e,f.length2+=e;else if(e>h[h.length-1][1].length){var p=e-h[h.length-1][1].length;h[h.length-1][1]+=t.substring(0,p),f.length1+=p,f.length2+=p}return t},we.prototype.patch_splitMax=function(n){for(var e=this.Match_MaxBits,t=0;t<n.length;t++)if(!(n[t].length1<=e)){var r=n[t];n.splice(t--,1);for(var f=r.start1,h=r.start2,p="";r.diffs.length!==0;){var v=new we.patch_obj,d=!0;for(v.start1=f-p.length,v.start2=h-p.length,p!==""&&(v.length1=v.length2=p.length,v.diffs.push(new we.Diff(ut,p)));r.diffs.length!==0&&v.length1<e-this.Patch_Margin;){var g=r.diffs[0][0],s=r.diffs[0][1];g===Gt?(v.length2+=s.length,h+=s.length,v.diffs.push(r.diffs.shift()),d=!1):g===jt&&v.diffs.length==1&&v.diffs[0][0]==ut&&s.length>2*e?(v.length1+=s.length,f+=s.length,d=!1,v.diffs.push(new we.Diff(g,s)),r.diffs.shift()):(s=s.substring(0,e-v.length1-this.Patch_Margin),v.length1+=s.length,f+=s.length,g===ut?(v.length2+=s.length,h+=s.length):d=!1,v.diffs.push(new we.Diff(g,s)),s==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(s.length))}p=this.diff_text2(v.diffs),p=p.substring(p.length-this.Patch_Margin);var l=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);l!==""&&(v.length1+=l.length,v.length2+=l.length,v.diffs.length!==0&&v.diffs[v.diffs.length-1][0]===ut?v.diffs[v.diffs.length-1][1]+=l:v.diffs.push(new we.Diff(ut,l))),d||n.splice(++t,0,v)}}},we.prototype.patch_toText=function(n){for(var e=[],t=0;t<n.length;t++)e[t]=n[t];return e.join("")},we.prototype.patch_fromText=function(n){var e=[];if(!n)return e;for(var t=n.split(`
1416
+ `),r=0,f=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<t.length;){var h=t[r].match(f);if(!h)throw new Error("Invalid patch string: "+t[r]);var p=new we.patch_obj;for(e.push(p),p.start1=parseInt(h[1],10),h[2]===""?(p.start1--,p.length1=1):h[2]=="0"?p.length1=0:(p.start1--,p.length1=parseInt(h[2],10)),p.start2=parseInt(h[3],10),h[4]===""?(p.start2--,p.length2=1):h[4]=="0"?p.length2=0:(p.start2--,p.length2=parseInt(h[4],10)),r++;r<t.length;){var v=t[r].charAt(0);try{var d=decodeURI(t[r].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+d)}if(v=="-")p.diffs.push(new we.Diff(jt,d));else if(v=="+")p.diffs.push(new we.Diff(Gt,d));else if(v==" ")p.diffs.push(new we.Diff(ut,d));else{if(v=="@")break;if(v!=="")throw new Error('Invalid patch mode "'+v+'" in: '+d)}r++}}return e},we.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},we.patch_obj.prototype.toString=function(){var n,e;this.length1===0?n=this.start1+",0":this.length1==1?n=this.start1+1:n=this.start1+1+","+this.length1,this.length2===0?e=this.start2+",0":this.length2==1?e=this.start2+1:e=this.start2+1+","+this.length2;var t=["@@ -"+n+" +"+e+` @@
1417
+ `],r;we.prototype.diff_cleanupSplitSurrogates(this.diffs);for(var f=0;f<this.diffs.length;f++){switch(this.diffs[f][0]){case Gt:r="+";break;case jt:r="-";break;case ut:r=" ";break}t[f+1]=r+encodeURI(this.diffs[f][1])+`
1418
+ `}return t.join("").replace(/%20/g," ")};function Al(n){return n&&typeof n=="object"&&!Array.isArray(n)&&n!==null}function Uh(n,e){return Al(n)&&Al(e)&&Object.keys(e).forEach(t=>{Al(e[t])?((!n[t]||!Al(n[t]))&&(n[t]=e[t]),Uh(n[t],e[t])):Object.assign(n,{[t]:e[t]})}),n}function Zy(n,e,t=!1){let r=null,f=!0;return(...h)=>{const p=t&&f,v=()=>{n.apply(this,h),r=null};p&&(f=!1,v()),r||(r=setTimeout(v,e))}}function tA(n,e){let t;return(...r)=>{const f=this;clearTimeout(t),t=setTimeout(()=>n.apply(f,r),e)}}function Jy(n=""){return n.replace(/\r\n/g,`
1419
+ `)}function Xy(n,e,t,r){const f=t-n,h=n+f/2;return`M ${n} ${e} C ${h},${e} ${h},${r} ${t},${r}`}const zt={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function e0(n,e){let{mode:t}=n.options;return e===zt.EDITOR_LEFT&&n.options.left.mode!==null&&(t=n.options.left.mode),e===zt.EDITOR_RIGHT&&n.options.right.mode!==null&&(t=n.options.right.mode),t}function t0(n,e){let{theme:t}=n.options;return e===zt.EDITOR_LEFT&&n.options.left.theme!==null&&(t=n.options.left.theme),e===zt.EDITOR_RIGHT&&n.options.right.theme!==null&&(t=n.options.right.theme),t}function n0(n,e){return n.ace.getSession().doc.getLine(e)}function nA(n){return document.getElementById(n.options.left.id).offsetHeight}function r0(n){const e=document.createElement("div"),t={class:n.className,style:`top:${n.topOffset}px`,title:n.tooltip,"data-diff-index":n.diffIndex};for(const r in t)e.setAttribute(r,t[r]);return e.innerHTML=n.arrowContent,e}function Vh(n,e){const t=Math.random().toString(36).substr(2,5),r=`js-${e}-${t}`,f=n.querySelector(`.${e}`);if(f)return f.id=f.id||r,f.id;const h=document.createElement("div");return n.appendChild(h),h.className=e,h.id=r,h.id}function i0(n,e,t,r){const f=n==="document"?document:document.querySelector(n);f.addEventListener(e,h=>{const p=f.querySelectorAll(t),{target:v}=h;for(let d=0,g=p.length;d<g;d+=1){let s=v;const l=p[d];for(;s&&s!==f;)s===l&&r.call(l,h),s=s.parentNode}})}let Tl;function rA(n){if(n.Range)return n.Range;const e=n.acequire||n.require;return e?e("ace/range"):!1}function El(n={}){if(!(this instanceof El))return new El(n);const e=this,t=()=>window?window.ace:void 0;e.options=Uh({ace:t(),mode:null,theme:null,element:null,diffGranularity:zt.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"&#8594;",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"&#8592;",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},n);const{ace:r}=e.options;if(!r){const f="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(f),new Error(f)}if(Tl=rA(r),!Tl){const f="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(f),new Error(f)}if(e.options.element===null){const f="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(f),new Error(f)}if(e.options.element instanceof HTMLElement?e.el=e.options.element:e.el=document.body.querySelector(e.options.element),!e.el){const f=`Can't find the specified element ${e.options.element}`;return console.error(f),new Error(f)}e.options.left.id=Vh(e.el,"acediff__left"),e.options.classes.gutterID=Vh(e.el,"acediff__gutter"),e.options.right.id=Vh(e.el,"acediff__right"),e.el.innerHTML=`<div class="acediff__wrap">${e.el.innerHTML}</div>`,e.editors={left:{ace:r.edit(e.options.left.id),markers:[],lineLengths:[]},right:{ace:r.edit(e.options.right.id),markers:[],lineLengths:[]},editorHeight:null},e.editors.left.ace.getSession().setMode(e0(e,zt.EDITOR_LEFT)),e.editors.right.ace.getSession().setMode(e0(e,zt.EDITOR_RIGHT)),e.editors.left.ace.setReadOnly(!e.options.left.editable),e.editors.right.ace.setReadOnly(!e.options.right.editable),e.editors.left.ace.setTheme(t0(e,zt.EDITOR_LEFT)),e.editors.right.ace.setTheme(t0(e,zt.EDITOR_RIGHT)),e.editors.left.ace.setValue(Jy(e.options.left.content),-1),e.editors.right.ace.setValue(Jy(e.options.right.content),-1),e.editors.editorHeight=nA(e),setTimeout(()=>{e.lineHeight=e.editors.left.ace.renderer.lineHeight,iA(e),lA(e),p0(e),e.diff()},1)}El.prototype={setOptions(n){Uh(this.options,n),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const n=new we,e=this.editors.left.ace.getSession().getValue(),t=this.editors.right.ace.getSession().getValue(),r=n.diff_main(t,e);n.diff_cleanupSemantic(r),this.editors.left.lineLengths=a0(this.editors.left),this.editors.right.lineLengths=a0(this.editors.right);const f=[],h={left:0,right:0};r.forEach(p=>{const v=p[0];let d=p[1];d.length!==0&&(v===zt.DIFF_EQUAL?(h.left+=d.length,h.right+=d.length):v===zt.DIFF_DELETE?(f.push(h0(this,zt.DIFF_DELETE,h.left,h.right,d)),h.right+=d.length):v===zt.DIFF_INSERT&&(f.push(h0(this,zt.DIFF_INSERT,h.left,h.right,d)),h.left+=d.length))},this),this.diffs=hA(this,f),!(this.diffs.length>this.options.maxDiffs)&&(u0(this),m0(this))},destroy(){const n=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let e=this.editors.left.ace.container,t=e.cloneNode(!1);t.textContent=n,e.parentNode.replaceChild(t,e);const r=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),e=this.editors.right.ace.container,t=e.cloneNode(!1),t.textContent=r,e.parentNode.replaceChild(t,e),document.getElementById(this.options.classes.gutterID).innerHTML="",o0()}};let o0=()=>{};function iA(n){n.editors.left.ace.getSession().on("changeScrollTop",Zy(()=>{c0(n)},16)),n.editors.right.ace.getSession().on("changeScrollTop",Zy(()=>{c0(n)},16));const e=n.diff.bind(n);n.editors.left.ace.on("change",e),n.editors.right.ace.on("change",e),n.options.left.copyLinkEnabled&&i0(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.newCodeConnectorLink}`,r=>{s0(n,r,zt.LTR)}),n.options.right.copyLinkEnabled&&i0(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.deletedCodeConnectorLink}`,r=>{s0(n,r,zt.RTL)});const t=tA(()=>{n.editors.availableHeight=document.getElementById(n.options.left.id).offsetHeight,n.diff()},250);window.addEventListener("resize",t),o0=()=>{window.removeEventListener("resize",t)}}function s0(n,e,t){const r=parseInt(e.target.getAttribute("data-diff-index"),10),f=n.diffs[r];let h,p,v,d,g,s;t===zt.LTR?(h=n.editors.left,p=n.editors.right,v=f.leftStartLine,d=f.leftEndLine,g=f.rightStartLine,s=f.rightEndLine):(h=n.editors.right,p=n.editors.left,v=f.rightStartLine,d=f.rightEndLine,g=f.leftStartLine,s=f.leftEndLine);let l="";for(let c=v;c<d;c+=1)l+=n0(h,c),c===v&&l===""&&g!=0&&(l+=`
1420
+ `),c<h.ace.getSession().getLength()-1&&(l+=`
1421
+ `);const a=p.ace.getSession().getScrollTop();p.ace.getSession().replace(new Tl(g,0,s,0),l),p.ace.getSession().setScrollTop(parseInt(a,10)),n.diff()}function a0(n){const e=n.ace.getSession().doc.getAllLines(),t=[];return e.forEach(r=>{t.push(r.length+1)}),t}function l0(n,e,t,r,f){const h=n.editors[e];r<t&&(r=t);const p=`${f} ${r>t?"lines":"targetOnly"}`;r>t&&(r-=1),h.markers.push(h.ace.session.addMarker(new Tl(t,0,r,1),p,"fullLine"))}function c0(n){u0(n),m0(n),aA(n)}function u0(n){n.editors.left.markers.forEach(e=>{n.editors.left.ace.getSession().removeMarker(e)},n),n.editors.right.markers.forEach(e=>{n.editors.right.ace.getSession().removeMarker(e)},n)}function oA(n,e,t,r,f){const h=n.editors.left.ace.getSession().getScrollTop(),p=n.editors.right.ace.getSession().getScrollTop();n.connectorYOffset=1;const v=-1,d=e*n.lineHeight-h+.5,g=n.gutterWidth+1,s=r*n.lineHeight-p+.5,l=-1,a=t*n.lineHeight-h+n.connectorYOffset+.5,c=n.gutterWidth+1,o=f*n.lineHeight-p+n.connectorYOffset+.5,u=Xy(v,d,g,s),y=Xy(c,o,l,a),b=`L${g},${s} ${c},${o}`,x=`L${l},${a} ${v},${d}`,E=`${u} ${b} ${y} ${x}`,C=document.createElementNS(zt.SVG_NS,"path");C.setAttribute("d",E),C.setAttribute("class",n.options.classes.connector),n.gutterSVG.appendChild(C)}function sA(n,e,t){if(e.leftEndLine>e.leftStartLine&&n.options.left.copyLinkEnabled){const r=r0({className:n.options.classes.newCodeConnectorLink,topOffset:e.leftStartLine*n.lineHeight,tooltip:"Copy to right",diffIndex:t,arrowContent:n.options.classes.newCodeConnectorLinkContent});n.copyRightContainer.appendChild(r)}if(e.rightEndLine>e.rightStartLine&&n.options.right.copyLinkEnabled){const r=r0({className:n.options.classes.deletedCodeConnectorLink,topOffset:e.rightStartLine*n.lineHeight,tooltip:"Copy to left",diffIndex:t,arrowContent:n.options.classes.deletedCodeConnectorLinkContent});n.copyLeftContainer.appendChild(r)}}function aA(n){const e=n.editors.left.ace.getSession().getScrollTop(),t=n.editors.right.ace.getSession().getScrollTop();n.copyRightContainer.style.cssText=`top: ${-e}px`,n.copyLeftContainer.style.cssText=`top: ${-t}px`}function h0(n,e,t,r,f){let h={};if(e===zt.DIFF_INSERT){let p=d0(n.editors.left,t,f),v=f0(n.editors.right,r),d=qs(n.editors.right,v);const g=qs(n.editors.left,p.startLine);let s=v,l=p.startLine===p.endLine,a=0;(p.startChar>0||l&&f.length<g)&&d>0&&p.startChar<g&&a++,h={leftStartLine:p.startLine,leftEndLine:p.endLine+1,rightStartLine:s,rightEndLine:s+a}}else{let p=d0(n.editors.right,r,f),v=f0(n.editors.left,t),d=qs(n.editors.left,v);const g=qs(n.editors.right,p.startLine);let s=v,l=p.startLine===p.endLine,a=0;(p.startChar>0||l&&f.length<g)&&d>0&&p.startChar<g&&a++,h={leftStartLine:s,leftEndLine:s+a,rightStartLine:p.startLine,rightEndLine:p.endLine+1}}return h}function d0(n,e,t){const r={startLine:0,startChar:0,endLine:0,endChar:0},f=e+t.length;let h=0,p=!1,v=!1;n.lineLengths.forEach((g,s)=>{h+=g,!p&&e<h&&(r.startLine=s,r.startChar=e-h+g,p=!0),!v&&f<=h&&(r.endLine=s,r.endChar=f-h+g,v=!0)}),r.startChar>0&&qs(n,r.startLine)===r.startChar&&(r.startLine++,r.startChar=0),r.endChar===0&&r.endLine--;const d=/\n$/.test(t);return r.startChar>0&&d&&r.endLine++,r}function qs(n,e){return n0(n,e).length}function f0(n,e){const t=n.ace.getSession().doc.getAllLines();let r=0,f=0;for(let h=0;h<t.length;h+=1)if(f+=t[h].length+1,e<f){r=h;break}return f>n.ace.getSession().getValue().length&&(r+=1),r}function p0(n){n.gutterHeight=document.getElementById(n.options.classes.gutterID).clientHeight,n.gutterWidth=document.getElementById(n.options.classes.gutterID).clientWidth;const e=g0(n,zt.EDITOR_LEFT),t=g0(n,zt.EDITOR_RIGHT),r=Math.max(e,t,n.gutterHeight);n.gutterSVG=document.createElementNS(zt.SVG_NS,"svg"),n.gutterSVG.setAttribute("width",n.gutterWidth),n.gutterSVG.setAttribute("height",r),document.getElementById(n.options.classes.gutterID).appendChild(n.gutterSVG)}function g0(n,e){return(e===zt.EDITOR_LEFT?n.editors.left:n.editors.right).ace.getSession().getLength()*n.lineHeight}function lA(n){n.copyRightContainer=document.createElement("div"),n.copyRightContainer.setAttribute("class",n.options.classes.copyRightContainer),n.copyLeftContainer=document.createElement("div"),n.copyLeftContainer.setAttribute("class",n.options.classes.copyLeftContainer),document.getElementById(n.options.classes.gutterID).appendChild(n.copyRightContainer),document.getElementById(n.options.classes.gutterID).appendChild(n.copyLeftContainer)}function cA(n){document.getElementById(n.options.classes.gutterID).removeChild(n.gutterSVG),p0(n)}function uA(n){n.copyLeftContainer.innerHTML="",n.copyRightContainer.innerHTML=""}function hA(n,e){const t=[];function r(h){return n.options.diffGranularity===zt.DIFF_GRANULARITY_SPECIFIC?h<1:h<=1}e.forEach((h,p)=>{if(p===0){t.push(h);return}let v=!1;for(let d=0;d<t.length;d+=1)if(r(Math.abs(h.leftStartLine-t[d].leftEndLine))&&r(Math.abs(h.rightStartLine-t[d].rightEndLine))){t[d].leftStartLine=Math.min(h.leftStartLine,t[d].leftStartLine),t[d].rightStartLine=Math.min(h.rightStartLine,t[d].rightStartLine),t[d].leftEndLine=Math.max(h.leftEndLine,t[d].leftEndLine),t[d].rightEndLine=Math.max(h.rightEndLine,t[d].rightEndLine),v=!0;break}v||t.push(h)});const f=[];return t.forEach(h=>{h.leftStartLine===h.leftEndLine&&h.rightStartLine===h.rightEndLine||f.push(h)}),f}function m0(n){cA(n),uA(n),n.diffs.forEach((e,t)=>{n.options.showDiffs&&(l0(n,zt.EDITOR_LEFT,e.leftStartLine,e.leftEndLine,n.options.classes.diff),l0(n,zt.EDITOR_RIGHT,e.rightStartLine,e.rightEndLine,n.options.classes.diff),n.options.showConnectors&&oA(n,e.leftStartLine,e.leftEndLine,e.rightStartLine,e.rightEndLine),sA(n,e,t))},n)}const dA={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1},modelValue:Boolean},data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null}},mounted(){const n=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=oo.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new n),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),this.editor.focus()):(this.tab=1,this.differ=new El({element:this.$refs.editor,mode:new n,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let n=this.differ.diffs[this.curDiff].leftStartLine,e=this.differ.diffs[this.curDiff].rightStartLine;n>5&&(n-=5),e>5&&(e-=5),this.differ.getEditors().left.scrollToLine(n),this.differ.getEditors().right.scrollToLine(e)},buildPluginMode(){let n=oo.require("ace/lib/oop"),e=oo.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,t=["VARIABLE"],r=new RegExp(`(\\b${t.join("\\b|\\b")}\\b)`),f=function(){e.call(this);for(let s in this.$rules)this.$rules[s].unshift({regex:r,token:"support.function"})};n.inherits(f,e);let h=oo.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,p=oo.require("ace/mode/behaviour/cstyle").CstyleBehaviour,v=oo.require("ace/mode/folding/ruby").FoldMode,d=function(){this.HighlightRules=f,this.$outdent=new h,this.$behaviour=new p,this.foldingRules=new v,this.indentKeywords=this.foldingRules.indentKeywords},g=oo.require("ace/mode/ruby").Mode;return n.inherits(d,g),(function(){this.$id="ace/mode/openc3"}).call(d.prototype),d},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
1422
+ `)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
1423
+ `)):this.$dialog.confirm("Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",{okText:"Install",cancelText:"Cancel"}).then(n=>{this.emitSubmit(this.differ.getEditors().left.getValue().split(`
1424
+ `))}).catch(n=>{})},emitSubmit(n){let e={name:this.pluginName,variables:tf(this.localVariables),plugin_txt_lines:n};this.$emit("callback",e)},close:function(){this.show=!this.show}}},fA={style:{flex:"1"}},pA={class:"pa-3"},gA={ref:"editor",class:"editor"},mA={ref:"editor",class:"editor"},yA={key:0};function vA(n,e,t,r,f,h){const p=Se("v-card-title"),v=Se("v-icon"),d=Se("v-row"),g=Se("v-tab"),s=Se("v-tabs"),l=Se("v-text-field"),a=Se("v-col"),c=Se("v-window-item"),o=Se("v-window"),u=Se("v-btn"),y=Se("v-spacer"),b=Se("v-card-actions"),x=Se("v-card-text"),E=Se("v-card"),C=Se("v-dialog");return Pe(),kt(C,{persistent:"",modelValue:h.show,"onUpdate:modelValue":e[3]||(e[3]=k=>h.show=k),width:"80vw"},{default:xe(()=>[_e(E,null,{default:xe(()=>[_e(x,null,{default:xe(()=>[_e(p,null,{default:xe(()=>[pt(Kt(t.pluginName),1)]),_:1}),t.existingPluginTxt!==null?(Pe(),kt(d,{key:0,class:"notice d-flex flex-row"},{default:xe(()=>[_e(v,{size:"x-large",start:"",color:"yellow"},{default:xe(()=>e[4]||(e[4]=[pt(" mdi-alert-box ")])),_:1}),Nn("div",fA," The existing plugin.txt is different from the "+Kt(t.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+Kt(t.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):ir("",!0),_e(d,{class:"pb-3 pr-3"},{default:xe(()=>[_e(s,{modelValue:f.tab,"onUpdate:modelValue":e[0]||(e[0]=k=>f.tab=k),class:"ml-3"},{default:xe(()=>[(Pe(),kt(g,{key:0},{default:xe(()=>e[5]||(e[5]=[pt(" Variables ")])),_:1})),(Pe(),kt(g,{key:1},{default:xe(()=>e[6]||(e[6]=[pt(" plugin.txt ")])),_:1}))]),_:1},8,["modelValue"])]),_:1}),Nn("form",{onSubmit:e[2]||(e[2]=Ia((...k)=>n.onSubmit&&n.onSubmit(...k),["prevent"]))},[_e(o,{modelValue:f.tab,"onUpdate:modelValue":e[1]||(e[1]=k=>f.tab=k)},{default:xe(()=>[(Pe(),kt(c,{key:0,eager:"true",class:"tab"},{default:xe(()=>[Nn("div",pA,[_e(d,{class:"mt-3"},{default:xe(()=>[(Pe(!0),Dt(Fr,null,Gr(f.localVariables,(k,w)=>(Pe(),Dt("div",{key:w},[_e(a,{style:{width:"220px"}},{default:xe(()=>[_e(l,{clearable:"",type:"text",label:w,modelValue:f.localVariables[w],"onUpdate:modelValue":A=>f.localVariables[w]=A},null,8,["label","modelValue","onUpdate:modelValue"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),t.existingPluginTxt===null?(Pe(),kt(c,{key:"1-new",eager:"true",class:"tab"},{default:xe(()=>[_e(d,{class:"pa-3"},{default:xe(()=>[_e(a,null,{default:xe(()=>e[7]||(e[7]=[pt(" This can be edited before installation. ")])),_:1})]),_:1}),Nn("pre",gA,null,512)]),_:1})):(Pe(),kt(c,{key:"1-existing",eager:"true",class:"tab"},{default:xe(()=>[_e(d,{class:"pa-3"},{default:xe(()=>[_e(a,null,{default:xe(()=>e[8]||(e[8]=[pt(" Existing plugin.txt. This can be edited before installation. ")])),_:1}),_e(a,{class:"ml-6"},{default:xe(()=>e[9]||(e[9]=[pt(" Uneditable plugin.txt from the new plugin. ")])),_:1})]),_:1}),Nn("pre",mA,null,512)]),_:1}))]),_:1},8,["modelValue"]),_e(b,{class:"px-2 mt-2"},{default:xe(()=>[t.existingPluginTxt!==null?(Pe(),Dt("div",yA,[_e(u,{variant:"text",onClick:h.nextDiff},{default:xe(()=>e[10]||(e[10]=[pt(" Next Diff ")])),_:1},8,["onClick"]),_e(u,{variant:"text",onClick:h.previousDiff},{default:xe(()=>e[11]||(e[11]=[pt(" Previous Diff ")])),_:1},8,["onClick"])])):ir("",!0),_e(y),_e(u,{variant:"outlined",onClick:Ia(h.close,["prevent"]),"data-test":"edit-cancel"},{default:xe(()=>e[12]||(e[12]=[pt(" Cancel ")])),_:1},8,["onClick"]),_e(u,{variant:"flat",onClick:h.submit,"data-test":"edit-submit"},{default:xe(()=>e[13]||(e[13]=[pt(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const lO=Dn("x",Yr(dA,[["render",vA],["__scopeId","data-v-4a504453"]])),bA=Wh.find(n=>n.name==="PluginsTab"),y0=[{path:"/",component:eA,children:[{component:bA.component,path:""},...Wh]},{path:"/:pathMatch(.*)*",name:"NotFound",component:jM}];y0.forEach(vf);const wA=df({history:ff(),routes:y0}),xA={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"}},_A={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,e,t){this.params=n,this.show=!0,this.resolve=e,this.reject=t},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},kA=["innerHTML"],SA={key:2},$A={key:3,class:"validate mt-4"};function CA(n,e,t,r,f,h){const p=Se("v-spacer"),v=Se("v-toolbar"),d=Se("v-icon"),g=Se("v-text-field"),s=Se("v-card-text"),l=Se("v-btn"),a=Se("v-card-actions"),c=Se("v-card"),o=Se("v-dialog"),u=Se("v-app");return Pe(),kt(u,null,{default:xe(()=>[_e(o,{modelValue:n.show,"onUpdate:modelValue":e[1]||(e[1]=y=>n.show=y),width:"600"},{default:xe(()=>[_e(c,null,{default:xe(()=>[_e(v,{height:"24"},{default:xe(()=>[_e(p),Nn("span",null,Kt(n.params.title),1),_e(p)]),_:1}),_e(s,{class:"mt-4 pa-3"},{default:xe(()=>[n.params.validateText?(Pe(),kt(d,{key:0,class:"mr-2"},{default:xe(()=>e[2]||(e[2]=[pt(" mdi-alert ")])),_:1})):ir("",!0),n.params.html?(Pe(),Dt("span",{key:1,innerHTML:n.params.text},null,8,kA)):(Pe(),Dt("span",SA,Kt(n.params.text),1)),n.params.validateText?(Pe(),Dt("div",$A,[pt(" Enter "+Kt(n.params.validateText)+" to confirm! ",1),_e(g,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":e[0]||(e[0]=y=>n.validationText=y),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):ir("",!0)]),_:1}),_e(a,{class:"px-2"},{default:xe(()=>[_e(p),n.params.cancelText?(Pe(),kt(l,{key:0,variant:"outlined","data-test":h.dataTestCancel,onClick:h.cancel},{default:xe(()=>[pt(Kt(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):ir("",!0),_e(l,{variant:"flat",color:n.params.okClass,"data-test":h.dataTestOk,onClick:h.ok},{default:xe(()=>[pt(Kt(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const MA=Yr(_A,[["render",CA],["__scopeId","data-v-581c0293"]]);class AA{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const e=window.Vue.createApp(MA);e.use(Gh);const t=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(t),this.$root=e.mount(t),this.mounted=!0}open({title:e,text:t,okText:r,okClass:f,validateText:h,cancelText:p,html:v}){return this.mount(),new Promise((d,g)=>{this.$root.dialog({title:e,text:t,okText:r,okClass:f,validateText:h,cancelText:p,html:v},d,g)})}confirm(e,{okText:t="Ok",cancelText:r="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:f,validateText:null,cancelText:r,html:!1})}alert(e,{okText:t="Ok",html:r=!1,okClass:f="primary"}){return this.open({title:"Alert",text:e,okText:t,okClass:f,validateText:null,cancelText:null,html:r})}validate(e,{okText:t="Ok",validateText:r="CONFIRM",cancelText:f="Cancel",okClass:h="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:h,validateText:r,cancelText:f,html:!1})}}const TA={install(n,e){const t=new AA;n.provide("dialog",t),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=t)}},EA={data:function(){return{showToast:!1,expanded:!1,toastNotification:{title:"Title here",body:"This is the notification body",message:"Overall message here"},timeout:null,noToastPaths:["/login"]}},computed:{toastNotificationIcon:function(){switch(this.toastNotification.type){case"notification":return"mdi-bell";case"alert":default:return"mdi-alert-box"}},toastStyle:function(){return`
1425
+ --toast-bg-color:${zh[this.toastNotification.level]};
1426
+ --toast-fg-color:${LM(this.toastNotification.level)};
1427
+ `},contentStyle:function(){return`
1428
+ white-space: ${this.expanded?"normal":"nowrap"};
1429
+ overflow-x: ${this.expanded?"visible":"hidden"};
1430
+ text-overflow: ${this.expanded?"unset":"ellipsis"};
1431
+ `}},methods:{toast:function(n,e){this.noToastPaths.includes(window.location.pathname)||(e===void 0&&(e=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),e&&(this.timeout=setTimeout(()=>{this.hide()},e)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},LA={key:0,class:"text-subtitle-1 mr-1 notification-text"},RA={key:1,class:"text-body-2 notification-text"},IA={key:2,class:"text-body-2 notification-text"};function OA(n,e,t,r,f,h){const p=Se("v-icon"),v=Se("v-spacer"),d=Se("v-btn"),g=Se("v-sheet"),s=Se("v-slide-y-transition");return Pe(),kt(s,null,{default:xe(()=>[uf(_e(g,{style:to(h.toastStyle),class:"toast-notification",onClick:h.expand},{default:xe(()=>[_e(p,{class:"mr-1 notification-text"},{default:xe(()=>[pt(Kt(h.toastNotificationIcon),1)]),_:1}),Nn("div",{class:"toast-content",style:to(h.contentStyle)},[n.toastNotification.title?(Pe(),Dt("span",LA,Kt(n.toastNotification.title)+": ",1)):ir("",!0),n.toastNotification.body?(Pe(),Dt("span",RA,Kt(n.toastNotification.body),1)):ir("",!0),n.toastNotification.message?(Pe(),Dt("span",IA,Kt(n.toastNotification.message),1)):ir("",!0)],4),_e(v),_e(d,{variant:"text",onClick:Ia(h.hide,["stop"]),class:"notification-text"},{default:xe(()=>e[0]||(e[0]=[pt(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[hf,n.showToast]])]),_:1})}const DA=Yr(EA,[["render",OA],["__scopeId","data-v-b0459ba8"]]);class NA{constructor(e={}){var t;this.$store=e.store,this.mounted=!1,this.$root=null,(t=window.$cosmosNotify)!=null&&t.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const e=Pc(DA);e.use(Gh);const t=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(t),this.$root=e.mount(t),this.mounted=!0}open({method:e,title:t,body:r,message:f,level:h,duration:p,type:v="alert",logToConsole:d=!1,saveToHistory:g=!0}){this.mount(),d&&console.log(f?`${h.toUpperCase()} - ${f}`:`${h.toUpperCase()} - ${t}: ${r}`),g&&this.$store.commit("notifyAddHistory",{title:t,body:r,message:f,level:h}),this[e]({title:t,body:r,message:f,level:h,duration:p,type:v})}toast({title:e,body:t,message:r,level:f,duration:h,type:p}){this.$root.toast({title:e,body:t,message:r,level:f,type:p},h)}critical({title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v}){this.open({method:"toast",level:"critical",title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v})}FATAL(e){this.critical(e)}ERROR(e){this.critical(e)}serious({title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v}){this.open({method:"toast",level:"serious",title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v})}caution({title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v}){this.open({method:"toast",level:"caution",title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v})}WARN(e){this.caution(e)}normal({title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v}){this.open({method:"toast",level:"normal",title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v})}INFO(e){this.normal(e)}DEBUG(e){this.normal(e)}standby({title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v}){this.open({method:"toast",level:"standby",title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v})}off({title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v}){this.open({method:"toast",level:"off",title:e,body:t,message:r,type:f,duration:h,logToConsole:p,saveToHistory:v})}}const FA={install(n,e){const t=new NA(e);n.provide("notify",t),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=t)}},v0=100,b0=gf({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>e=>n.namedWidgets[e]},mutations:{notifyAddHistory:(n,e)=>{n.notifyHistory.length>=v0&&(n.notifyHistory.length=v0-1),n.notifyHistory.unshift(e)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,e)=>{Object.assign(n.namedWidgets,e)},clearNamedWidget:(n,e)=>{delete n.namedWidgets[e]}},modules:{}});function w0(n){let e;return n!==null&&typeof n=="object"&&((e=Object.getPrototypeOf(n))===Object.prototype||e===null)}function PA(n,e){const t={},r=new Set(Object.keys(n));for(const f of e)r.has(f)&&(t[f]=n[f]);return t}function x0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const r={};for(const f in n)r[f]=n[f];for(const f in e){const h=n[f],p=e[f];if(w0(h)&&w0(p)){r[f]=x0(h,p,t);continue}if(t&&Array.isArray(h)&&Array.isArray(p)){r[f]=t(h,p);continue}r[f]=p}return r}function Gs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Gs.cache.has(n))return Gs.cache.get(n);const e=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Gs.cache.set(n,e),e}Gs.cache=new Map;function HA(n){rf(`Vuetify: ${n}`)}function _0(n,e){return t=>Object.keys(n).reduce((r,f)=>{const h=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return t&&f in t?r[f]={...h,default:t[f]}:r[f]=h,e&&!r[f].source&&(r[f].source=e),r},{})}function k0(n,e){const t=lf();if(!t)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return t}function BA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k0("injectSelf");const{provides:t}=e;if(t&&n in t)return t[n]}const qh=Symbol.for("vuetify:defaults");function S0(){const n=of(qh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function jA(n,e){var t,r;return typeof((t=n.props)==null?void 0:t[e])<"u"||typeof((r=n.props)==null?void 0:r[Gs(e)])<"u"}function zA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S0();const r=k0("useDefaults");if(e=e??r.type.name??r.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const f=Fc(()=>{var d;return(d=t.value)==null?void 0:d[n._as??e]}),h=new Proxy(n,{get(d,g){var s,l,a,c,o,u,y;const b=Reflect.get(d,g);return g==="class"||g==="style"?[(s=f.value)==null?void 0:s[g],b].filter(x=>x!=null):typeof g=="string"&&!jA(r.vnode,g)?((l=f.value)==null?void 0:l[g])!==void 0?(a=f.value)==null?void 0:a[g]:((o=(c=t.value)==null?void 0:c.global)==null?void 0:o[g])!==void 0?(y=(u=t.value)==null?void 0:u.global)==null?void 0:y[g]:b:b}}),p=sf();af(()=>{if(f.value){const d=Object.entries(f.value).filter(g=>{let[s]=g;return s.startsWith(s[0].toUpperCase())});p.value=d.length?Object.fromEntries(d):void 0}else p.value=void 0});function v(){const d=BA(qh,r);cf(qh,Fc(()=>p.value?x0((d==null?void 0:d.value)??{},p.value):d==null?void 0:d.value))}return{props:h,provideSubDefaults:v}}function Ll(n){if(n._setup=n._setup??n.setup,!n.name)return HA("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=_0(n.props??{},n.name)();const e=Object.keys(n.props).filter(t=>t!=="class"&&t!=="style");n.filterProps=function(t){return PA(t,e)},n.props._as=String,n.setup=function(t,r){const f=S0();if(!f.value)return n._setup(t,r);const{props:h,provideSubDefaults:p}=zA(t,t._as??n.name,f),v=n._setup(h,r);return p(),v}}return n}function WA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(n?Ll:nf)(e)}const UA=[String,Function,Object,Array],Rl=_0({icon:{type:UA},tag:{type:String,required:!0}},"icon");WA()({name:"VComponentIcon",props:Rl(),setup(n,e){let{slots:t}=e;return()=>{const r=n.icon;return _e(n.tag,null,{default:()=>{var f;return[n.icon?_e(r,null,null):(f=t.default)==null?void 0:f.call(t)]}})}}}),Ll({name:"VSvgIcon",inheritAttrs:!1,props:Rl(),setup(n,e){let{attrs:t}=e;return()=>_e(n.tag,Ss(t,{style:null}),{default:()=>[_e("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(r=>Array.isArray(r)?_e("path",{d:r[0],"fill-opacity":r[1]},null):_e("path",{d:r},null)):_e("path",{d:n.icon},null)])]})}}),Ll({name:"VLigatureIcon",props:Rl(),setup(n){return()=>_e(n.tag,null,{default:()=>[n.icon]})}});const VA=Ll({name:"VClassIcon",props:Rl(),setup(n){return()=>_e(n.tag,{class:n.icon},null)}}),qA={component:n=>ks(VA,{...n,class:"mdi"})},Gh=mf({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:xA}},icons:{defaultSet:"mdi",sets:{mdi:qA,...IM}}}),Yh=yb({createApp:Pc,appOptions:{render(){return ks($b,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(wA),n.use(b0),n.use(Gh),n.use(TA),n.use(FA,{store:b0})}}),cO=Dn("f",Yh.bootstrap),uO=Dn("m",Yh.mount),hO=Dn("u",Yh.unmount)}}});