openc3-cosmos-tool-dataviewer 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/tools/dataviewer/ArrayWidget-BTxChSds-729d960cfdc5cc610e36.js +2 -0
  3. data/tools/dataviewer/BarColumn-Cdu3OoMa-f6c6e26ea60505eded81.js +1 -0
  4. data/tools/dataviewer/BlockWidget-PmjzrkXF-cba5a98e5febe43a4e53.js +2 -0
  5. data/tools/dataviewer/ButtonWidget-nwDlOBJT-635e7452329728609016.js +2 -0
  6. data/tools/dataviewer/CanvasWidget-BL8930eT-c0dc35f83e2020b1a2d8.js +1 -0
  7. data/tools/dataviewer/CanvasdotWidget-VCf1fL-G-9ecb3a5db74cc9c67935.js +1 -0
  8. data/tools/dataviewer/CanvasimageWidget-BIw7Wbf2-f1352b515e2b88a6a73c.js +1 -0
  9. data/tools/dataviewer/CanvasimagevalueWidget-CE3Dj5bH-ac79c783af67d46f5b47.js +1 -0
  10. data/tools/dataviewer/CanvaslabelWidget-DWmb356h-3b1a90c192aece51ec1f.js +1 -0
  11. data/tools/dataviewer/CanvaslabelvalueWidget-CI3yYwFs-4c342d1601a75e800125.js +1 -0
  12. data/tools/dataviewer/CanvaslineWidget-COeapH3P-ce3fad277910fba2ca61.js +1 -0
  13. data/tools/dataviewer/CanvaslinevalueWidget-CI-Bbzfi-20d6088d739c787067d0.js +1 -0
  14. data/tools/dataviewer/CheckbuttonWidget-BQhggcZ2-872fe692dfd53c9d02e0.js +1 -0
  15. data/tools/dataviewer/ComboboxWidget-BzsbOv54-8b26861255458ab5820f.js +1 -0
  16. data/tools/dataviewer/DataViewer-413ff580439088fa437d.js +39 -0
  17. data/tools/dataviewer/DateWidget-B5R_9rA8-dbabc77b41062cd53025.js +1 -0
  18. data/tools/dataviewer/{DetailsDialog-EWjtBjle-c05025117b8375d47378.js → DetailsDialog-DLRMqetn-aaacd4f38a31b9d03623.js} +1 -1
  19. data/tools/dataviewer/DynamicWidget-m9EliUR2-8bca697b5d9d171b6d41.js +1 -0
  20. data/tools/dataviewer/FormatvalueWidget-DZkRJce8-42b595ab1529218d039e.js +1 -0
  21. data/tools/dataviewer/GraphWidget-amwxyH1r-dd3f319a2dc54c7a1506.js +1 -0
  22. data/tools/dataviewer/HorizontalWidget-CirtfuL8-4995cdc63f3b921ace50.js +1 -0
  23. data/tools/dataviewer/HorizontalboxWidget-CyTDt2nl-795b4cdc3bb3d16540e5.js +1 -0
  24. data/tools/dataviewer/HorizontallineWidget-BdlNB951-a0bfc5989c04ad91a5f8.js +1 -0
  25. data/tools/dataviewer/IframeWidget-DnJmCrCA-94ef2d4c20115de08932.js +1 -0
  26. data/tools/dataviewer/{ImageLoader-CDLQopxJ-a623539e4fbe007660a4.js → ImageLoader-CpcR6tPi-44ceeaf2b14a88757c4b.js} +1 -1
  27. data/tools/dataviewer/ImageviewerWidget-DIkmb_C9-36a25ca0482a3629c597.js +1 -0
  28. data/tools/dataviewer/LabelWidget-BDsypYho-681229896f8ec10f5332.js +1 -0
  29. data/tools/dataviewer/LabelledWidget-DjturGl5-9d20f8d8724e3d52e4d2.js +1 -0
  30. data/tools/dataviewer/LabelprogressbarWidget-RADJGLj3-d900ae201f53aa27d53c.js +1 -0
  31. data/tools/dataviewer/LabelsparklineWidget-BlJoICxu-9d6e7b928328d9b6faa4.js +1 -0
  32. data/tools/dataviewer/LabelvalueWidget-DVWJqnlY-7c73bc06324918673158.js +1 -0
  33. data/tools/dataviewer/LabelvaluedescWidget-CsUP7J4U-d36a1e64ddb2cd189973.js +1 -0
  34. data/tools/dataviewer/LabelvaluelimitsbarWidget-Blj1QXV8-fcbf1b7a09ba6fc2c9ae.js +1 -0
  35. data/tools/dataviewer/LabelvaluelimitscolumnWidget-CvCo-uCe-321f72c8a352d3d14fe1.js +1 -0
  36. data/tools/dataviewer/LabelvaluerangebarWidget-DpcXhlfF-c2f849b93273f25e8925.js +1 -0
  37. data/tools/dataviewer/{Layout-klOVw-YN-4b432d0aff9e2d4d3031.js → Layout-C1HoM4Kl-9468ed1ea3c6f828dafb.js} +1 -1
  38. data/tools/dataviewer/LedWidget-B_K2e5tq-a4cf7dd4c91bd9687edc.js +1 -0
  39. data/tools/dataviewer/LimitsbarWidget-DXbqsi4J-6f4947746fb14ece021c.js +1 -0
  40. data/tools/dataviewer/LimitscolorWidget-Ckmuw0YX-9d08a0c35288ab6437a4.js +1 -0
  41. data/tools/dataviewer/LimitscolumnWidget-BfY4su5U-723e911820532f1ac331.js +1 -0
  42. data/tools/dataviewer/LinegraphWidget-y-Qy9P0R-5f5705e25f9cd84669d8.js +1 -0
  43. data/tools/dataviewer/MatrixbycolumnsWidget-BTBColrs-e17854cc153744707907.js +1 -0
  44. data/tools/dataviewer/ProgressbarWidget-DpA_-vy9-24903741422cf1df54e4.js +1 -0
  45. data/tools/dataviewer/RadiobuttonWidget-BO8zpgwW-4f8ecf9cd90bdea325a8.js +1 -0
  46. data/tools/dataviewer/RadiogroupWidget-Oy7V4S-V-54cf81f3f5e3212e888e.js +1 -0
  47. data/tools/dataviewer/RangebarWidget-DHS7S3vI-ebfac3b63bbdba316dcf.js +1 -0
  48. data/tools/dataviewer/RollupWidget-CTk9Kjwr-270be1fdd5c1eb250ecb.js +1 -0
  49. data/tools/dataviewer/ScrollwindowWidget-DD0TOW6s-ec4a38cdf3bfd8e935cf.js +1 -0
  50. data/tools/dataviewer/SignalWidget-CC33KMTW-4256e058af9a2f5ffcf6.js +1 -0
  51. data/tools/dataviewer/SpacerWidget-BnJe_Hq6-67addc8b6c315643ed73.js +1 -0
  52. data/tools/dataviewer/SparklineWidget-DMvMQCPm-e78d9a86f5442934fabd.js +1 -0
  53. data/tools/dataviewer/TabbookWidget-B3w0JtWe-b2af8af0cf94eb9e516c.js +1 -0
  54. data/tools/dataviewer/TextboxWidget-D2f0-eol-5f337e38de949d5dab7f.js +1 -0
  55. data/tools/dataviewer/TextfieldWidget-DXSdgqVP-9045c2a185d013a4c13f.js +1 -0
  56. data/tools/dataviewer/TimeWidget-DvrRaEMz-c19be3754a0a61e180e8.js +1 -0
  57. data/tools/dataviewer/TitleWidget-DqViFQl--3e2765e9ec25f88228fe.js +1 -0
  58. data/tools/dataviewer/{VWidget-Dmqf_jKM-65879a06e527ae1e3583.js → VWidget-02CG-3Av-eabacc54e6e638532288.js} +1 -1
  59. data/tools/dataviewer/ValueWidget-KLYY8L8U-2f04753640b33d0d6695.js +1 -0
  60. data/tools/dataviewer/ValuelimitsbarWidget-SR8XNZFB-3b0499b09e0a5456f7f9.js +1 -0
  61. data/tools/dataviewer/ValuelimitscolumnWidget-xYZSp6YZ-3e38c9591b45b511e317.js +1 -0
  62. data/tools/dataviewer/ValuerangebarWidget-B6M02a9d-2e62f95f2859cf82f80c.js +1 -0
  63. data/tools/dataviewer/VerticalWidget-z6xUM-ql-764ba777a9e2b0036921.js +1 -0
  64. data/tools/dataviewer/VerticalboxWidget-3a9cVsW--53886da00cb04f9a6ddc.js +1 -0
  65. data/tools/dataviewer/{Widget-orNSvnOh-c2a94ca25551f743ceef.js → Widget-C4QVI4IH-6422d83069f2c7a43fcd.js} +1 -1
  66. data/tools/dataviewer/{main-e67fa93ee8ee2348fa86.js → main-c5225145687c4dce3ede.js} +37 -37
  67. data/tools/dataviewer/main.js +1 -1
  68. metadata +67 -67
  69. data/tools/dataviewer/ArrayWidget-By62tXtU-8bbe7298739e850bfe18.js +0 -2
  70. data/tools/dataviewer/BarColumn-Dm3D1Lhp-526e23f414fccd8d35d5.js +0 -1
  71. data/tools/dataviewer/BlockWidget-CrT45ode-eb1537386ed01b4ca7a8.js +0 -2
  72. data/tools/dataviewer/ButtonWidget-CKyBBv6m-6a1f5c30d09f366d825b.js +0 -2
  73. data/tools/dataviewer/CanvasWidget-PqkppHC7-7f4710a46315eb789c30.js +0 -1
  74. data/tools/dataviewer/CanvasdotWidget-BUbJgM2d-619fc40c8997d5d7fea5.js +0 -1
  75. data/tools/dataviewer/CanvasimageWidget-DPVBY7mi-8c255da15addff7cd7ed.js +0 -1
  76. data/tools/dataviewer/CanvasimagevalueWidget-GX37zzNc-a4c90ba174579915fa60.js +0 -1
  77. data/tools/dataviewer/CanvaslabelWidget-P2_Y6Edw-1889fff3520ccb2d591b.js +0 -1
  78. data/tools/dataviewer/CanvaslabelvalueWidget-Cuas1i9P-821d500ef5052bfa1f55.js +0 -1
  79. data/tools/dataviewer/CanvaslineWidget-BYOYgPya-fc952e856c2e641ff2c7.js +0 -1
  80. data/tools/dataviewer/CanvaslinevalueWidget-3cVJMFo7-36de6935166b89acf071.js +0 -1
  81. data/tools/dataviewer/CheckbuttonWidget-B3wgSMuB-921dfb41856b10f4e3d2.js +0 -1
  82. data/tools/dataviewer/ComboboxWidget-Dzr4Scvf-1c49930a72a457565f4f.js +0 -1
  83. data/tools/dataviewer/DataViewer-e7201855078bff6f415f.js +0 -39
  84. data/tools/dataviewer/DateWidget-BWh76Ibb-f4492b09e29ad6fcd3e4.js +0 -1
  85. data/tools/dataviewer/DynamicWidget-m9EliUR2-e07442aa62eb6c370e74.js +0 -1
  86. data/tools/dataviewer/FormatvalueWidget-Rk0_eeIm-f77ac321fe0ae2a1ae05.js +0 -1
  87. data/tools/dataviewer/GraphWidget-LqekkNDr-7c4bc2811e40f1a0eda4.js +0 -1
  88. data/tools/dataviewer/HorizontalWidget-BcfJ24Zn-d10969e9eb6b31981e5d.js +0 -1
  89. data/tools/dataviewer/HorizontalboxWidget-CQy1Hv9E-79bc168a39cf33b8fa77.js +0 -1
  90. data/tools/dataviewer/HorizontallineWidget-BdlNB951-97d1618f13f926c9fead.js +0 -1
  91. data/tools/dataviewer/IframeWidget-BBaDrRLo-f7c37244b988644f60e0.js +0 -1
  92. data/tools/dataviewer/ImageviewerWidget-BgO3Pq6I-39d91c1f56e433c223ff.js +0 -1
  93. data/tools/dataviewer/LabelWidget-B_C6lKOE-2262f31f6af2709eadef.js +0 -1
  94. data/tools/dataviewer/LabelledWidget-B_UGivhr-a856807b089199c04c48.js +0 -1
  95. data/tools/dataviewer/LabelprogressbarWidget-BJWCmsYC-ed2174ab83eec25a4932.js +0 -1
  96. data/tools/dataviewer/LabelsparklineWidget-DILCIh3q-d10dd6a1cee9e3f8ff09.js +0 -1
  97. data/tools/dataviewer/LabelvalueWidget-CCZd1NXE-7640f00f75429e54ac71.js +0 -1
  98. data/tools/dataviewer/LabelvaluedescWidget-Bsllq8W6-c70757e2c771b63eeaf3.js +0 -1
  99. data/tools/dataviewer/LabelvaluelimitsbarWidget-BV-cfaD--e70ddc36890234455fc8.js +0 -1
  100. data/tools/dataviewer/LabelvaluelimitscolumnWidget-DwA0eRBw-c29416bf4524ae556578.js +0 -1
  101. data/tools/dataviewer/LabelvaluerangebarWidget-3GDJz3dj-8a7718383ec6189eb810.js +0 -1
  102. data/tools/dataviewer/LedWidget-BAt02s0J-34e9cd8f31aa1d44ed32.js +0 -1
  103. data/tools/dataviewer/LimitsbarWidget-JJiyzZjb-1a3a9e7900b14a237016.js +0 -1
  104. data/tools/dataviewer/LimitscolorWidget-CYzXKbYd-b51bf7bd9f9140a5886d.js +0 -1
  105. data/tools/dataviewer/LimitscolumnWidget-Cd76tBo7-7cfdb6c29f7b363d998d.js +0 -1
  106. data/tools/dataviewer/LinegraphWidget-DWRtO6Ej-3c29ceb540e6c40ee56b.js +0 -1
  107. data/tools/dataviewer/MatrixbycolumnsWidget-cwsyjNV2-d96691fcc4322e9cc164.js +0 -1
  108. data/tools/dataviewer/ProgressbarWidget-CYDziFej-78bbd793fd448510d701.js +0 -1
  109. data/tools/dataviewer/RadiobuttonWidget-U6jcQZoD-b0547b7c8fb7a415c0b2.js +0 -1
  110. data/tools/dataviewer/RadiogroupWidget-HTPJnsB0-d3466645fc020b8f8c64.js +0 -1
  111. data/tools/dataviewer/RangebarWidget-DW0FJK6y-2513730abbade6224242.js +0 -1
  112. data/tools/dataviewer/RollupWidget-B2qrx55f-e10afdf560c4680b2f8d.js +0 -1
  113. data/tools/dataviewer/ScrollwindowWidget-CwIDxgO6-9a55ff533e3806746dbd.js +0 -1
  114. data/tools/dataviewer/SignalWidget-Bosa3AbW-2e3a2e8849456660ab78.js +0 -1
  115. data/tools/dataviewer/SpacerWidget-DYAlt5mt-9ad3440a97d08df18115.js +0 -1
  116. data/tools/dataviewer/SparklineWidget-CDrVXOFV-127f0c1510b33bbacc3a.js +0 -1
  117. data/tools/dataviewer/TabbookWidget-DDdlzCkv-a40f453adab909b9cff2.js +0 -1
  118. data/tools/dataviewer/TextboxWidget-5euFelEq-d779b87126b2e89c920c.js +0 -1
  119. data/tools/dataviewer/TextfieldWidget-BFripYeh-faeed76a09829f8d7aca.js +0 -1
  120. data/tools/dataviewer/TimeWidget-BBSbsUYJ-6a0511ab7401093febd0.js +0 -1
  121. data/tools/dataviewer/TitleWidget-p8cjo-Bs-7739c4b110fbadb842fa.js +0 -1
  122. data/tools/dataviewer/ValueWidget-CZh7JWwT-ca2b22c2a83b95a0a04a.js +0 -1
  123. data/tools/dataviewer/ValuelimitsbarWidget-DU7ybswC-d9cde71b24bef099532d.js +0 -1
  124. data/tools/dataviewer/ValuelimitscolumnWidget-DMw-h5jM-4fa6393b410f2c7703e8.js +0 -1
  125. data/tools/dataviewer/ValuerangebarWidget-DPpofDpA-73a5076a222f23f531f6.js +0 -1
  126. data/tools/dataviewer/VerticalWidget-Ch7VAEmz-93fef677e4f97f1afc2b.js +0 -1
  127. data/tools/dataviewer/VerticalboxWidget-DYx-TFT4-34d6019e2ca16d8addc9.js +0 -1
@@ -1,4 +1,4 @@
1
- System.register(["vue","vue-router","vuex","vuetify"],function(rn,Ne){"use strict";var Ie,kt,on,Se,be,zd,Bi,Zn,Cc,Zt,Jn,jd,ms,vs,Ac,To,Sa,In,Ca,Wd,Ud,Vd,Tc,qd,Gd,Mc,Yd,Kd,Qd,Zd,Jd,Xd;return{setters:[pt=>{Ie=pt.resolveComponent,kt=pt.openBlock,on=pt.createBlock,Se=pt.withCtx,be=pt.createVNode,zd=pt.defineAsyncComponent,Bi=pt.createElementBlock,Zn=pt.createElementVNode,Cc=pt.mergeProps,Zt=pt.createTextVNode,Jn=pt.createCommentVNode,jd=pt.normalizeClass,ms=pt.h,vs=pt.normalizeStyle,Ac=pt.withKeys,To=pt.withModifiers,Sa=pt.withDirectives,In=pt.toDisplayString,Ca=pt.vShow,Wd=pt.defineComponent,Ud=pt.warn,Vd=pt.inject,Tc=pt.computed,qd=pt.shallowRef,Gd=pt.watchEffect,Mc=pt.createApp,Yd=pt.getCurrentInstance,Kd=pt.provide},pt=>{Qd=pt.createRouter,Zd=pt.createWebHistory},pt=>{Jd=pt.createStore},pt=>{Xd=pt.createVuetify}],execute:function(){rn({c:Dn,d:op,e:UC,f:Eh,l:jt,y:hn});var pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ep(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(m){return Object.getOwnPropertyDescriptor(n,m).enumerable})),e.push.apply(e,i)}return e}function Yr(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ep(Object(e),!0).forEach(function(i){Ly(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ep(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Ly(n,t,e){return(t=function(i){var m=function(f,v){if(Kr(f)!=="object"||f===null)return f;var w=f[Symbol.toPrimitive];if(w!==void 0){var h=w.call(f,v||"default");if(Kr(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(f)}(i,"string");return Kr(m)==="symbol"?m:String(m)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Kr(n){return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i,m=String(e),f=m.length,v=-1,w="",h=m.charCodeAt(0);++v<f;)(i=m.charCodeAt(v))!=0?w+=i>=1&&i<=31||i==127||v==0&&i>=48&&i<=57||v==1&&i>=48&&i<=57&&h==45?"\\"+i.toString(16)+" ":v==0&&f==1&&i==45||!(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122)?"\\"+m.charAt(v):m.charAt(v):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(pt);var Iy={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Oy(n){if(Kr(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=Yr(Yr({},Iy),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(Kr(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:Ny.bind(null,t,e),mount:Dy.bind(null,t,e),unmount:Py.bind(null,t,e),update:Fy.bind(null,t,e)}}function Ny(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Dy(n,t,e){var i={};return Promise.resolve().then(function(){return function(m,f){return typeof m.appOptions=="function"?m.appOptions(f):Promise.resolve(Yr({},m.appOptions))}(n,e).then(function(m){var f;if(e.domElement&&!m.el&&(m.el=e.domElement),m.el)if(typeof m.el=="string"){if(!(f=document.querySelector(m.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(m.el))}else(f=m.el).id||(f.id="single-spa-application:".concat(e.name)),m.el="#".concat(CSS.escape(f.id));else{var v="single-spa-application:".concat(e.name);m.el="#".concat(CSS.escape(v)),(f=document.getElementById(v))||((f=document.createElement("div")).id=v,document.body.appendChild(f))}if(!n.replaceMode&&(m.el=m.el+" .single-spa-container",!f.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",f.appendChild(w)}i.domEl=f,m.render||m.template||!n.rootComponent||(m.render=function(g){return g(n.rootComponent)}),m.data||(m.data={});var h=m.data;if(m.data=function(){return Yr(Yr({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(i.vueInstance=n.createApp(m),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return i.root=i.vueInstance.mount(m.el),t[e.name]=i,i.vueInstance});i.root=i.vueInstance.mount(m.el)}else if(i.vueInstance=new n.Vue(m),i.vueInstance.bind&&(i.vueInstance=i.vueInstance.bind(i.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return t[e.name]=i,i.vueInstance});return t[e.name]=i,i.vueInstance})})}function Fy(n,t,e){return Promise.resolve().then(function(){var i=t[e.name],m=Yr(Yr({},n.appOptions.data||{}),e),f=i.root||i.vueInstance;for(var v in m)f[v]=m[v]})}function Py(n,t,e){return Promise.resolve().then(function(){var i=t[e.name];n.createApp?i.vueInstance.unmount(i.domEl):(i.vueInstance.$destroy(),i.vueInstance.$el.innerHTML=""),delete i.vueInstance,i.domEl&&(i.domEl.innerHTML="",delete i.domEl)})}const Hy=rn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),By={};function zy(n,t){const e=Ie("router-view"),i=Ie("v-app");return kt(),on(i,{id:"innerapp"},{default:Se(()=>[be(e)]),_:1})}const jy=Hy(By,[["render",zy]]),YI="modulepreload",KI=function(n){return"/"+n},QI={},De=function(t,e,i){let m=Promise.resolve();function f(v){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=v,window.dispatchEvent(w),!w.defaultPrevented)throw v}return m.then(v=>{for(const w of v||[])w.status==="rejected"&&f(w.reason);return t().catch(f)})},tp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/dataviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(tp)},ir=rn("s",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Aa=6e4,Ec=36e5,Wy=1e3,np=Symbol.for("constructDateFrom");function hn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&np in n?n[np](t):n instanceof Date?new n.constructor(t):new Date(t)}function jt(n,t){return hn(t||n,n)}let Uy={};function Mo(){return Uy}function _r(n,t){var e,i,m,f;const v=Mo(),w=(t==null?void 0:t.weekStartsOn)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.weekStartsOn)??v.weekStartsOn??((f=(m=v.locale)==null?void 0:m.options)==null?void 0:f.weekStartsOn)??0,h=jt(n,t==null?void 0:t.in),g=h.getDay(),a=(g<w?7:0)+g-w;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Eo(n,t){return _r(n,{...t,weekStartsOn:1})}function ip(n,t){const e=jt(n,void 0),i=e.getFullYear(),m=hn(e,0);m.setFullYear(i+1,0,4),m.setHours(0,0,0,0);const f=Eo(m),v=hn(e,0);v.setFullYear(i,0,4),v.setHours(0,0,0,0);const w=Eo(v);return e.getTime()>=f.getTime()?i+1:e.getTime()>=w.getTime()?i:i-1}function Ta(n){const t=jt(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Vy(n,...t){const e=hn.bind(null,t.find(i=>typeof i=="object"));return t.map(e)}function rp(n,t){const e=jt(n,void 0);return e.setHours(0,0,0,0),e}function qy(n,t,e){const[i,m]=Vy(void 0,n,t),f=rp(i),v=rp(m),w=+f-Ta(f),h=+v-Ta(v);return Math.round((w-h)/864e5)}function Gy(n,t){const e=ip(n),i=hn(n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Eo(i)}function Yy(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function op(n){return!(!Yy(n)&&typeof n!="number"||isNaN(+jt(n)))}function Ky(n,t){const e=jt(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Qy={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"}},Zy=(n,t,e)=>{let i;const m=Qy[n];return typeof m=="string"?i=m:t===1?i=m.one:i=m.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Rc(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Jy={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xy={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ew={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tw={date:Rc({formats:Jy,defaultWidth:"full"}),time:Rc({formats:Xy,defaultWidth:"full"}),dateTime:Rc({formats:ew,defaultWidth:"full"})},nw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},iw=(n,t,e,i)=>nw[n];function ys(n){return(t,e)=>{const i=e!=null&&e.context?String(e.context):"standalone";let m;if(i==="formatting"&&n.formattingValues){const v=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):v;m=n.formattingValues[w]||n.formattingValues[v]}else{const v=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;m=n.values[w]||n.values[v]}const f=n.argumentCallback?n.argumentCallback(t):t;return m[f]}}const rw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ow={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sw={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"]},aw={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"]},lw={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"}},cw={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"}},uw=(n,t)=>{const e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},hw={ordinalNumber:uw,era:ys({values:rw,defaultWidth:"wide"}),quarter:ys({values:ow,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ys({values:sw,defaultWidth:"wide"}),day:ys({values:aw,defaultWidth:"wide"}),dayPeriod:ys({values:lw,defaultWidth:"wide",formattingValues:cw,defaultFormattingWidth:"wide"})};function ws(n){return(t,e={})=>{const i=e.width,m=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],f=t.match(m);if(!f)return null;const v=f[0],w=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?pw(w,l=>l.test(v)):dw(w,l=>l.test(v));let g;g=n.valueCallback?n.valueCallback(h):h,g=e.valueCallback?e.valueCallback(g):g;const a=t.slice(v.length);return{value:g,rest:a}}}function dw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function pw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function fw(n){return(t,e={})=>{const i=t.match(n.matchPattern);if(!i)return null;const m=i[0],f=t.match(n.parsePattern);if(!f)return null;let v=n.valueCallback?n.valueCallback(f[0]):f[0];v=e.valueCallback?e.valueCallback(v):v;const w=t.slice(m.length);return{value:v,rest:w}}}const gw=/^(\d+)(th|st|nd|rd)?/i,mw=/\d+/i,vw={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},yw={any:[/^b/i,/^(a|c)/i]},ww={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bw={any:[/1/i,/2/i,/3/i,/4/i]},xw={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},_w={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]},kw={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},$w={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]},Sw={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}},Aw={ordinalNumber:fw({matchPattern:gw,parsePattern:mw,valueCallback:n=>parseInt(n,10)}),era:ws({matchPatterns:vw,defaultMatchWidth:"wide",parsePatterns:yw,defaultParseWidth:"any"}),quarter:ws({matchPatterns:ww,defaultMatchWidth:"wide",parsePatterns:bw,defaultParseWidth:"any",valueCallback:n=>n+1}),month:ws({matchPatterns:xw,defaultMatchWidth:"wide",parsePatterns:_w,defaultParseWidth:"any"}),day:ws({matchPatterns:kw,defaultMatchWidth:"wide",parsePatterns:$w,defaultParseWidth:"any"}),dayPeriod:ws({matchPatterns:Sw,defaultMatchWidth:"any",parsePatterns:Cw,defaultParseWidth:"any"})},sp={code:"en-US",formatDistance:Zy,formatLong:tw,formatRelative:iw,localize:hw,match:Aw,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Tw(n,t){const e=jt(n,void 0);return qy(e,Ky(e))+1}function ap(n,t){const e=jt(n,void 0),i=+Eo(e)-+Gy(e);return Math.round(i/6048e5)+1}function Lc(n,t){var e,i,m,f;const v=jt(n,t==null?void 0:t.in),w=v.getFullYear(),h=Mo(),g=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??h.firstWeekContainsDate??((f=(m=h.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,a=hn((t==null?void 0:t.in)||n,0);a.setFullYear(w+1,0,g),a.setHours(0,0,0,0);const l=_r(a,t),s=hn((t==null?void 0:t.in)||n,0);s.setFullYear(w,0,g),s.setHours(0,0,0,0);const c=_r(s,t);return+v>=+l?w+1:+v>=+c?w:w-1}function Mw(n,t){var e,i,m,f;const v=Mo(),w=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??v.firstWeekContainsDate??((f=(m=v.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,h=Lc(n,t),g=hn((t==null?void 0:t.in)||n,0);return g.setFullYear(h,0,w),g.setHours(0,0,0,0),_r(g,t)}function lp(n,t){const e=jt(n,t==null?void 0:t.in),i=+_r(e,t)-+Mw(e,t);return Math.round(i/6048e5)+1}function Tt(n,t){const e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}const kr={y(n,t){const e=n.getFullYear(),i=e>0?e:1-e;return Tt(t==="yy"?i%100:i,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):Tt(e+1,2)},d(n,t){return Tt(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return Tt(n.getHours()%12||12,t.length)},H(n,t){return Tt(n.getHours(),t.length)},m(n,t){return Tt(n.getMinutes(),t.length)},s(n,t){return Tt(n.getSeconds(),t.length)},S(n,t){const e=t.length,i=n.getMilliseconds(),m=Math.trunc(i*Math.pow(10,e-3));return Tt(m,t.length)}},Ro={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cp={G:function(n,t,e){const i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const i=n.getFullYear(),m=i>0?i:1-i;return e.ordinalNumber(m,{unit:"year"})}return kr.y(n,t)},Y:function(n,t,e,i){const m=Lc(n,i),f=m>0?m:1-m;if(t==="YY"){const v=f%100;return Tt(v,2)}return t==="Yo"?e.ordinalNumber(f,{unit:"year"}):Tt(f,t.length)},R:function(n,t){const e=ip(n);return Tt(e,t.length)},u:function(n,t){const e=n.getFullYear();return Tt(e,t.length)},Q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Tt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Tt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){const i=n.getMonth();switch(t){case"M":case"MM":return kr.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){const i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return Tt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){const m=lp(n,i);return t==="wo"?e.ordinalNumber(m,{unit:"week"}):Tt(m,t.length)},I:function(n,t,e){const i=ap(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):Tt(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):kr.d(n,t)},D:function(n,t,e){const i=Tw(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):Tt(i,t.length)},E:function(n,t,e){const i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){const m=n.getDay(),f=(m-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return Tt(f,2);case"eo":return e.ordinalNumber(f,{unit:"day"});case"eee":return e.day(m,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(m,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(m,{width:"short",context:"formatting"});case"eeee":default:return e.day(m,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){const m=n.getDay(),f=(m-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return Tt(f,t.length);case"co":return e.ordinalNumber(f,{unit:"day"});case"ccc":return e.day(m,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(m,{width:"narrow",context:"standalone"});case"cccccc":return e.day(m,{width:"short",context:"standalone"});case"cccc":default:return e.day(m,{width:"wide",context:"standalone"})}},i:function(n,t,e){const i=n.getDay(),m=i===0?7:i;switch(t){case"i":return String(m);case"ii":return Tt(m,t.length);case"io":return e.ordinalNumber(m,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){const i=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,t,e){const i=n.getHours();let m;switch(i===12?m=Ro.noon:i===0?m=Ro.midnight:m=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},B:function(n,t,e){const i=n.getHours();let m;switch(i>=17?m=Ro.evening:i>=12?m=Ro.afternoon:i>=4?m=Ro.morning:m=Ro.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return kr.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):kr.H(n,t)},K:function(n,t,e){const i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):Tt(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):Tt(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):kr.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):kr.s(n,t)},S:function(n,t){return kr.S(n,t)},X:function(n,t,e){const i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return hp(i);case"XXXX":case"XX":return Qr(i);case"XXXXX":case"XXX":default:return Qr(i,":")}},x:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"x":return hp(i);case"xxxx":case"xx":return Qr(i);case"xxxxx":case"xxx":default:return Qr(i,":")}},O:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+up(i,":");case"OOOO":default:return"GMT"+Qr(i,":")}},z:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+up(i,":");case"zzzz":default:return"GMT"+Qr(i,":")}},t:function(n,t,e){const i=Math.trunc(+n/1e3);return Tt(i,t.length)},T:function(n,t,e){return Tt(+n,t.length)}};function up(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.trunc(i/60),f=i%60;return f===0?e+String(m):e+String(m)+t+Tt(f,2)}function hp(n,t){return n%60===0?(n>0?"-":"+")+Tt(Math.abs(n)/60,2):Qr(n,t)}function Qr(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Tt(Math.trunc(i/60),2),f=Tt(i%60,2);return e+m+t+f}const dp=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},pp=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ew=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],i=e[1],m=e[2];if(!m)return dp(n,t);let f;switch(i){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",dp(i,t)).replace("{{time}}",pp(m,t))},Ic={p:pp,P:Ew},Rw=/^D+$/,Lw=/^Y+$/,Iw=["D","DD","YY","YYYY"];function fp(n){return Rw.test(n)}function gp(n){return Lw.test(n)}function Oc(n,t,e){const i=Ow(n,t,e);if(console.warn(i),Iw.includes(n))throw new RangeError(i)}function Ow(n,t,e){const i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Nw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fw=/^'([^]*?)'?$/,Pw=/''/g,Hw=/[a-zA-Z]/;function Zr(n,t,e){var i,m,f,v,w,h,g,a;const l=Mo(),s=(e==null?void 0:e.locale)??l.locale??sp,c=(e==null?void 0:e.firstWeekContainsDate)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.firstWeekContainsDate)??l.firstWeekContainsDate??((v=(f=l.locale)==null?void 0:f.options)==null?void 0:v.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((a=(g=l.locale)==null?void 0:g.options)==null?void 0:a.weekStartsOn)??0,u=jt(n,e==null?void 0:e.in);if(!op(u))throw new RangeError("Invalid time value");let p=t.match(Dw).map(x=>{const R=x[0];if(R==="p"||R==="P"){const A=Ic[R];return A(x,s.formatLong)}return x}).join("").match(Nw).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const R=x[0];if(R==="'")return{isToken:!1,value:Bw(x)};if(cp[R])return{isToken:!0,value:x};if(R.match(Hw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:x}});s.localize.preprocessor&&(p=s.localize.preprocessor(u,p));const y={firstWeekContainsDate:c,weekStartsOn:o,locale:s};return p.map(x=>{if(!x.isToken)return x.value;const R=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&gp(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&fp(R))&&Oc(R,t,String(n));const A=cp[R[0]];return A(u,R,s.localize,y)}).join("")}function Bw(n){const t=n.match(Fw);return t?t[1].replace(Pw,"'"):n}var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ma(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mp={exports:{}},vp;function zw(){return vp||(vp=1,function(n,t){(function(){var e="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var m=function(a,l,s){if(typeof a!="string"){m.original?m.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(s=l),m.modules[a]||(m.payloads[a]=s,m.modules[a]=null)};m.modules={},m.payloads={};var f=function(a,l,s){if(typeof l=="string"){var c=h(a,l);if(c!=null)return s&&s(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],u=0,p=l.length;u<p;++u){var y=h(a,l[u]);if(y==null&&v.original)return;o.push(y)}return s&&s.apply(null,o)||!0}},v=function(a,l){var s=f("",a,l);return s==null&&v.original?v.original.apply(this,arguments):s},w=function(a,l){if(l.indexOf("!")!==-1){var s=l.split("!");return w(a,s[0])+"!"+w(a,s[1])}if(l.charAt(0)=="."){var c=a.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&o!=l;){var o=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var s=m.modules[l];if(!s){if(s=m.payloads[l],typeof s=="function"){var c={},o={id:l,uri:"",exports:c,packaged:!0},u=function(y,x){return f(l,y,x)},p=s(u,c,o);c=p||o.exports,m.modules[l]=c,delete m.payloads[l]}s=m.modules[l]=c||s}return s};function g(a){var l=i;i[a]||(i[a]={}),l=i[a],(!l.define||!l.define.packaged)&&(m.original=l.define,l.define=m,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(v.original=l.require,l.require=v,l.require.packaged=!0)}g(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,i,m){function f(v,w,h){Object.defineProperty(v,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||f(String.prototype,"startsWith",function(v,w){return w=w||0,this.lastIndexOf(v,w)===w}),String.prototype.endsWith||f(String.prototype,"endsWith",function(v,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=v.length;var g=h.indexOf(v,w);return g!==-1&&g===w}),String.prototype.repeat||f(String.prototype,"repeat",function(v){for(var w="",h=this;v>0;)v&1&&(w+=h),(v>>=1)&&(h+=h);return w}),String.prototype.includes||f(String.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Object.assign||(Object.assign=function(v){if(v==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(v),h=1;h<arguments.length;h++){var g=arguments[h];g!=null&&Object.keys(g).forEach(function(a){w[a]=g[a]})}return w}),Object.values||(Object.values=function(v){return Object.keys(v).map(function(w){return v[w]})}),Array.prototype.find||f(Array.prototype,"find",function(v){for(var w=this.length,h=arguments[1],g=0;g<w;g++){var a=this[g];if(v.call(h,a,g,this))return a}}),Array.prototype.findIndex||f(Array.prototype,"findIndex",function(v){for(var w=this.length,h=arguments[1],g=0;g<w;g++){var a=this[g];if(v.call(h,a,g,this))return g}}),Array.prototype.includes||f(Array.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Array.prototype.fill||f(Array.prototype,"fill",function(v){for(var w=this,h=w.length>>>0,g=arguments[1],a=g>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),s=arguments[2],c=s===void 0?h:s>>0,o=c<0?Math.max(h+c,0):Math.min(c,h);l<o;)w[l]=v,l++;return w}),Array.of||f(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,i,m){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,i,m){i.deepCopy=function f(v){if(typeof v!="object"||!v)return v;var w;if(Array.isArray(v)){w=[];for(var h=0;h<v.length;h++)w[h]=f(v[h]);return w}if(Object.prototype.toString.call(v)!=="[object Object]")return v;w={};for(var h in v)w[h]=f(v[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){i.last=function(w){return w[w.length-1]},i.stringReverse=function(w){return w.split("").reverse().join("")},i.stringRepeat=function(w,h){for(var g="";h>0;)h&1&&(g+=w),(h>>=1)&&(w+=w);return g};var f=/^\s\s*/,v=/\s\s*$/;i.stringTrimLeft=function(w){return w.replace(f,"")},i.stringTrimRight=function(w){return w.replace(v,"")},i.copyObject=function(w){var h={};for(var g in w)h[g]=w[g];return h},i.copyArray=function(w){for(var h=[],g=0,a=w.length;g<a;g++)w[g]&&typeof w[g]=="object"?h[g]=this.copyObject(w[g]):h[g]=w[g];return h},i.deepCopy=e("./deep_copy").deepCopy,i.arrayToMap=function(w){for(var h={},g=0;g<w.length;g++)h[w[g]]=1;return h},i.createMap=function(w){var h=Object.create(null);for(var g in w)h[g]=w[g];return h},i.arrayRemove=function(w,h){for(var g=0;g<=w.length;g++)h===w[g]&&w.splice(g,1)},i.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(w){return(""+w).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},i.getMatchOffsets=function(w,h){var g=[];return w.replace(h,function(a){g.push({offset:arguments[arguments.length-2],length:a.length})}),g},i.deferredCall=function(w){var h=null,g=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(g,l||0),a};return a.schedule=a,a.call=function(){return this.cancel(),w(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},i.delayedCall=function(w,h){var g=null,a=function(){g=null,w()},l=function(s){g==null&&(g=setTimeout(a,s||h))};return l.delay=function(s){g&&clearTimeout(g),g=setTimeout(a,s||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){g&&clearTimeout(g),g=null},l.isPending=function(){return g},l},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(w,h,g){return g&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,i,m){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var f=typeof navigator=="object"?navigator:{},v=(/mac|win|linux/i.exec(f.platform)||["other"])[0].toLowerCase(),w=f.userAgent||"",h=f.appName||"";i.isWin=v=="win",i.isMac=v=="mac",i.isLinux=v=="linux",i.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=w.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(w.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,i.isAIR=w.indexOf("AdobeAIR")>=0,i.isAndroid=w.indexOf("Android")>=0,i.isChromeOS=w.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,i,m){var f=e("./useragent"),v="http://www.w3.org/1999/xhtml";i.buildDom=function s(c,o,u){if(typeof c=="string"&&c){var p=document.createTextNode(c);return o&&o.appendChild(p),p}if(!Array.isArray(c))return c&&c.appendChild&&o&&o.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var y=[],x=0;x<c.length;x++){var R=s(c[x],o,u);R&&y.push(R)}return y}var A=document.createElement(c[0]),k=c[1],b=1;k&&typeof k=="object"&&!Array.isArray(k)&&(b=2);for(var x=b;x<c.length;x++)s(c[x],A,u);return b==2&&Object.keys(k).forEach(function(T){var E=k[T];T==="class"?A.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||T=="value"||T[0]=="$"?A[T]=E:T==="ref"?u&&(u[E]=A):T==="style"?typeof E=="string"&&(A.style.cssText=E):E!=null&&A.setAttribute(T,E)}),o&&o.appendChild(A),A},i.getDocumentHead=function(s){return s||(s=document),s.head||s.getElementsByTagName("head")[0]||s.documentElement},i.createElement=function(s,c){return document.createElementNS?document.createElementNS(c||v,s):document.createElement(s)},i.removeChildren=function(s){s.innerHTML=""},i.createTextNode=function(s,c){var o=c?c.ownerDocument:document;return o.createTextNode(s)},i.createFragment=function(s){var c=s?s.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(s,c){var o=(s.className+"").split(/\s+/g);return o.indexOf(c)!==-1},i.addCssClass=function(s,c){i.hasCssClass(s,c)||(s.className+=" "+c)},i.removeCssClass=function(s,c){for(var o=s.className.split(/\s+/g);;){var u=o.indexOf(c);if(u==-1)break;o.splice(u,1)}s.className=o.join(" ")},i.toggleCssClass=function(s,c){for(var o=s.className.split(/\s+/g),u=!0;;){var p=o.indexOf(c);if(p==-1)break;u=!1,o.splice(p,1)}return u&&o.push(c),s.className=o.join(" "),u},i.setCssClass=function(s,c,o){o?i.addCssClass(s,c):i.removeCssClass(s,c)},i.hasCssString=function(s,c){var o=0,u;if(c=c||document,u=c.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===s)return!0}},i.removeElementById=function(s,c){c=c||document,c.getElementById(s)&&c.getElementById(s).remove()};var w,h=[];i.useStrictCSP=function(s){w=s,s==!1?g():h||(h=[])};function g(){var s=h;h=null,s&&s.forEach(function(c){a(c[0],c[1])})}function a(s,c,o){if(!(typeof document>"u")){if(h){if(o)g();else if(o===!1)return h.push([s,c])}if(!w){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var p=u.ownerDocument||u;if(c&&i.hasCssString(c,u))return null;c&&(s+=`
1
+ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(rn,Ne){"use strict";var Ie,kt,on,Se,be,Bd,zi,Vn,Cc,Zt,qn,jd,ms,vs,Ac,To,Sa,In,Ca,Wd,Ud,Vd,Tc,qd,Gd,Mc,Yd,Kd,Qd,Zd,Jd,Xd,ep;return{setters:[at=>{Ie=at.resolveComponent,kt=at.openBlock,on=at.createBlock,Se=at.withCtx,be=at.createVNode,Bd=at.defineAsyncComponent,zi=at.createElementBlock,Vn=at.createElementVNode,Cc=at.mergeProps,Zt=at.createTextVNode,qn=at.createCommentVNode,jd=at.normalizeClass,ms=at.h,vs=at.normalizeStyle,Ac=at.withKeys,To=at.withModifiers,Sa=at.withDirectives,In=at.toDisplayString,Ca=at.vShow,Wd=at.defineComponent,Ud=at.warn,Vd=at.inject,Tc=at.computed,qd=at.shallowRef,Gd=at.watchEffect,Mc=at.createApp,Yd=at.getCurrentInstance,Kd=at.provide},at=>{Qd=at.createRouter,Zd=at.createWebHistory},at=>{Jd=at.getMountedApps},at=>{Xd=at.createStore},at=>{ep=at.createVuetify}],execute:function(){rn({$:Dn,c:sp,d:VC,l:jt,y:hn,z:Eh});var at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tp(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(m){return Object.getOwnPropertyDescriptor(n,m).enumerable})),e.push.apply(e,i)}return e}function Yr(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?tp(Object(e),!0).forEach(function(i){Oy(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):tp(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function Oy(n,t,e){return(t=function(i){var m=function(f,v){if(Kr(f)!=="object"||f===null)return f;var w=f[Symbol.toPrimitive];if(w!==void 0){var h=w.call(f,v||"default");if(Kr(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(f)}(i,"string");return Kr(m)==="symbol"?m:String(m)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Kr(n){return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i,m=String(e),f=m.length,v=-1,w="",h=m.charCodeAt(0);++v<f;)(i=m.charCodeAt(v))!=0?w+=i>=1&&i<=31||i==127||v==0&&i>=48&&i<=57||v==1&&i>=48&&i<=57&&h==45?"\\"+i.toString(16)+" ":v==0&&f==1&&i==45||!(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122)?"\\"+m.charAt(v):m.charAt(v):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(at);var Ny={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Dy(n){if(Kr(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=Yr(Yr({},Ny),n);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(Kr(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:Fy.bind(null,t,e),mount:Py.bind(null,t,e),unmount:zy.bind(null,t,e),update:Hy.bind(null,t,e)}}function Fy(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function Py(n,t,e){var i={};return Promise.resolve().then(function(){return function(m,f){return typeof m.appOptions=="function"?m.appOptions(f):Promise.resolve(Yr({},m.appOptions))}(n,e).then(function(m){var f;if(e.domElement&&!m.el&&(m.el=e.domElement),m.el)if(typeof m.el=="string"){if(!(f=document.querySelector(m.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(m.el))}else(f=m.el).id||(f.id="single-spa-application:".concat(e.name)),m.el="#".concat(CSS.escape(f.id));else{var v="single-spa-application:".concat(e.name);m.el="#".concat(CSS.escape(v)),(f=document.getElementById(v))||((f=document.createElement("div")).id=v,document.body.appendChild(f))}if(!n.replaceMode&&(m.el=m.el+" .single-spa-container",!f.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",f.appendChild(w)}i.domEl=f,m.render||m.template||!n.rootComponent||(m.render=function(g){return g(n.rootComponent)}),m.data||(m.data={});var h=m.data;if(m.data=function(){return Yr(Yr({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(i.vueInstance=n.createApp(m),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return i.root=i.vueInstance.mount(m.el),t[e.name]=i,i.vueInstance});i.root=i.vueInstance.mount(m.el)}else if(i.vueInstance=new n.Vue(m),i.vueInstance.bind&&(i.vueInstance=i.vueInstance.bind(i.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(i.vueInstance,e)).then(function(){return t[e.name]=i,i.vueInstance});return t[e.name]=i,i.vueInstance})})}function Hy(n,t,e){return Promise.resolve().then(function(){var i=t[e.name],m=Yr(Yr({},n.appOptions.data||{}),e),f=i.root||i.vueInstance;for(var v in m)f[v]=m[v]})}function zy(n,t,e){return Promise.resolve().then(function(){var i=t[e.name];n.createApp?i.vueInstance.unmount(i.domEl):(i.vueInstance.$destroy(),i.vueInstance.$el.innerHTML=""),delete i.vueInstance,i.domEl&&(i.domEl.innerHTML="",delete i.domEl)})}const By=rn("_",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),jy={};function Wy(n,t){const e=Ie("router-view"),i=Ie("v-app");return kt(),on(i,{id:"innerapp"},{default:Se(()=>[be(e)]),_:1})}const Uy=By(jy,[["render",Wy]]),QI="modulepreload",ZI=function(n){return"/"+n},JI={},De=function(t,e,i){let m=Promise.resolve();function f(v){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=v,window.dispatchEvent(w),!w.defaultPrevented)throw v}return m.then(v=>{for(const w of v||[])w.status==="rejected"&&f(w.reason);return t().catch(f)})},np=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/dataviewer/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(np)},ir=rn("s",(n,t)=>{const e=n.__vccOpts||n;for(const[i,m]of t)e[i]=m;return e}),Aa=6e4,Ec=36e5,Vy=1e3,ip=Symbol.for("constructDateFrom");function hn(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&ip in n?n[ip](t):n instanceof Date?new n.constructor(t):new Date(t)}function jt(n,t){return hn(t||n,n)}let qy={};function Mo(){return qy}function _r(n,t){var e,i,m,f;const v=Mo(),w=(t==null?void 0:t.weekStartsOn)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.weekStartsOn)??v.weekStartsOn??((f=(m=v.locale)==null?void 0:m.options)==null?void 0:f.weekStartsOn)??0,h=jt(n,t==null?void 0:t.in),g=h.getDay(),a=(g<w?7:0)+g-w;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Eo(n,t){return _r(n,{...t,weekStartsOn:1})}function rp(n,t){const e=jt(n,void 0),i=e.getFullYear(),m=hn(e,0);m.setFullYear(i+1,0,4),m.setHours(0,0,0,0);const f=Eo(m),v=hn(e,0);v.setFullYear(i,0,4),v.setHours(0,0,0,0);const w=Eo(v);return e.getTime()>=f.getTime()?i+1:e.getTime()>=w.getTime()?i:i-1}function Ta(n){const t=jt(n),e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),+n-+e}function Gy(n,...t){const e=hn.bind(null,t.find(i=>typeof i=="object"));return t.map(e)}function op(n,t){const e=jt(n,void 0);return e.setHours(0,0,0,0),e}function Yy(n,t,e){const[i,m]=Gy(void 0,n,t),f=op(i),v=op(m),w=+f-Ta(f),h=+v-Ta(v);return Math.round((w-h)/864e5)}function Ky(n,t){const e=rp(n),i=hn(n,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),Eo(i)}function Qy(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function sp(n){return!(!Qy(n)&&typeof n!="number"||isNaN(+jt(n)))}function Zy(n,t){const e=jt(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Jy={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"}},Xy=(n,t,e)=>{let i;const m=Jy[n];return typeof m=="string"?i=m:t===1?i=m.one:i=m.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Rc(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const ew={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iw={date:Rc({formats:ew,defaultWidth:"full"}),time:Rc({formats:tw,defaultWidth:"full"}),dateTime:Rc({formats:nw,defaultWidth:"full"})},rw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ow=(n,t,e,i)=>rw[n];function ys(n){return(t,e)=>{const i=e!=null&&e.context?String(e.context):"standalone";let m;if(i==="formatting"&&n.formattingValues){const v=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):v;m=n.formattingValues[w]||n.formattingValues[v]}else{const v=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;m=n.values[w]||n.values[v]}const f=n.argumentCallback?n.argumentCallback(t):t;return m[f]}}const sw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},aw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lw={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"]},cw={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"]},uw={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"}},hw={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"}},dw=(n,t)=>{const e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},pw={ordinalNumber:dw,era:ys({values:sw,defaultWidth:"wide"}),quarter:ys({values:aw,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ys({values:lw,defaultWidth:"wide"}),day:ys({values:cw,defaultWidth:"wide"}),dayPeriod:ys({values:uw,defaultWidth:"wide",formattingValues:hw,defaultFormattingWidth:"wide"})};function ws(n){return(t,e={})=>{const i=e.width,m=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],f=t.match(m);if(!f)return null;const v=f[0],w=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?gw(w,l=>l.test(v)):fw(w,l=>l.test(v));let g;g=n.valueCallback?n.valueCallback(h):h,g=e.valueCallback?e.valueCallback(g):g;const a=t.slice(v.length);return{value:g,rest:a}}}function fw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function gw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function mw(n){return(t,e={})=>{const i=t.match(n.matchPattern);if(!i)return null;const m=i[0],f=t.match(n.parsePattern);if(!f)return null;let v=n.valueCallback?n.valueCallback(f[0]):f[0];v=e.valueCallback?e.valueCallback(v):v;const w=t.slice(m.length);return{value:v,rest:w}}}const vw=/^(\d+)(th|st|nd|rd)?/i,yw=/\d+/i,ww={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},bw={any:[/^b/i,/^(a|c)/i]},xw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_w={any:[/1/i,/2/i,/3/i,/4/i]},kw={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},$w={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},Cw={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]},Aw={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},Tw={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}},Mw={ordinalNumber:mw({matchPattern:vw,parsePattern:yw,valueCallback:n=>parseInt(n,10)}),era:ws({matchPatterns:ww,defaultMatchWidth:"wide",parsePatterns:bw,defaultParseWidth:"any"}),quarter:ws({matchPatterns:xw,defaultMatchWidth:"wide",parsePatterns:_w,defaultParseWidth:"any",valueCallback:n=>n+1}),month:ws({matchPatterns:kw,defaultMatchWidth:"wide",parsePatterns:$w,defaultParseWidth:"any"}),day:ws({matchPatterns:Sw,defaultMatchWidth:"wide",parsePatterns:Cw,defaultParseWidth:"any"}),dayPeriod:ws({matchPatterns:Aw,defaultMatchWidth:"any",parsePatterns:Tw,defaultParseWidth:"any"})},ap={code:"en-US",formatDistance:Xy,formatLong:iw,formatRelative:ow,localize:pw,match:Mw,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ew(n,t){const e=jt(n,void 0);return Yy(e,Zy(e))+1}function lp(n,t){const e=jt(n,void 0),i=+Eo(e)-+Ky(e);return Math.round(i/6048e5)+1}function Lc(n,t){var e,i,m,f;const v=jt(n,t==null?void 0:t.in),w=v.getFullYear(),h=Mo(),g=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??h.firstWeekContainsDate??((f=(m=h.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,a=hn((t==null?void 0:t.in)||n,0);a.setFullYear(w+1,0,g),a.setHours(0,0,0,0);const l=_r(a,t),s=hn((t==null?void 0:t.in)||n,0);s.setFullYear(w,0,g),s.setHours(0,0,0,0);const c=_r(s,t);return+v>=+l?w+1:+v>=+c?w:w-1}function Rw(n,t){var e,i,m,f;const v=Mo(),w=(t==null?void 0:t.firstWeekContainsDate)??((i=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:i.firstWeekContainsDate)??v.firstWeekContainsDate??((f=(m=v.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,h=Lc(n,t),g=hn((t==null?void 0:t.in)||n,0);return g.setFullYear(h,0,w),g.setHours(0,0,0,0),_r(g,t)}function cp(n,t){const e=jt(n,t==null?void 0:t.in),i=+_r(e,t)-+Rw(e,t);return Math.round(i/6048e5)+1}function Tt(n,t){const e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}const kr={y(n,t){const e=n.getFullYear(),i=e>0?e:1-e;return Tt(t==="yy"?i%100:i,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):Tt(e+1,2)},d(n,t){return Tt(n.getDate(),t.length)},a(n,t){const e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return Tt(n.getHours()%12||12,t.length)},H(n,t){return Tt(n.getHours(),t.length)},m(n,t){return Tt(n.getMinutes(),t.length)},s(n,t){return Tt(n.getSeconds(),t.length)},S(n,t){const e=t.length,i=n.getMilliseconds(),m=Math.trunc(i*Math.pow(10,e-3));return Tt(m,t.length)}},Ro={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},up={G:function(n,t,e){const i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const i=n.getFullYear(),m=i>0?i:1-i;return e.ordinalNumber(m,{unit:"year"})}return kr.y(n,t)},Y:function(n,t,e,i){const m=Lc(n,i),f=m>0?m:1-m;if(t==="YY"){const v=f%100;return Tt(v,2)}return t==="Yo"?e.ordinalNumber(f,{unit:"year"}):Tt(f,t.length)},R:function(n,t){const e=rp(n);return Tt(e,t.length)},u:function(n,t){const e=n.getFullYear();return Tt(e,t.length)},Q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return Tt(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){const i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return Tt(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){const i=n.getMonth();switch(t){case"M":case"MM":return kr.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){const i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return Tt(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){const m=cp(n,i);return t==="wo"?e.ordinalNumber(m,{unit:"week"}):Tt(m,t.length)},I:function(n,t,e){const i=lp(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):Tt(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):kr.d(n,t)},D:function(n,t,e){const i=Ew(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):Tt(i,t.length)},E:function(n,t,e){const i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){const m=n.getDay(),f=(m-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return Tt(f,2);case"eo":return e.ordinalNumber(f,{unit:"day"});case"eee":return e.day(m,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(m,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(m,{width:"short",context:"formatting"});case"eeee":default:return e.day(m,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){const m=n.getDay(),f=(m-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return Tt(f,t.length);case"co":return e.ordinalNumber(f,{unit:"day"});case"ccc":return e.day(m,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(m,{width:"narrow",context:"standalone"});case"cccccc":return e.day(m,{width:"short",context:"standalone"});case"cccc":default:return e.day(m,{width:"wide",context:"standalone"})}},i:function(n,t,e){const i=n.getDay(),m=i===0?7:i;switch(t){case"i":return String(m);case"ii":return Tt(m,t.length);case"io":return e.ordinalNumber(m,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){const i=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,t,e){const i=n.getHours();let m;switch(i===12?m=Ro.noon:i===0?m=Ro.midnight:m=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},B:function(n,t,e){const i=n.getHours();let m;switch(i>=17?m=Ro.evening:i>=12?m=Ro.afternoon:i>=4?m=Ro.morning:m=Ro.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(m,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(m,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(m,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return kr.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):kr.H(n,t)},K:function(n,t,e){const i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):Tt(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):Tt(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):kr.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):kr.s(n,t)},S:function(n,t){return kr.S(n,t)},X:function(n,t,e){const i=n.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return dp(i);case"XXXX":case"XX":return Qr(i);case"XXXXX":case"XXX":default:return Qr(i,":")}},x:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"x":return dp(i);case"xxxx":case"xx":return Qr(i);case"xxxxx":case"xxx":default:return Qr(i,":")}},O:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hp(i,":");case"OOOO":default:return"GMT"+Qr(i,":")}},z:function(n,t,e){const i=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hp(i,":");case"zzzz":default:return"GMT"+Qr(i,":")}},t:function(n,t,e){const i=Math.trunc(+n/1e3);return Tt(i,t.length)},T:function(n,t,e){return Tt(+n,t.length)}};function hp(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.trunc(i/60),f=i%60;return f===0?e+String(m):e+String(m)+t+Tt(f,2)}function dp(n,t){return n%60===0?(n>0?"-":"+")+Tt(Math.abs(n)/60,2):Qr(n,t)}function Qr(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Tt(Math.trunc(i/60),2),f=Tt(i%60,2);return e+m+t+f}const pp=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},fp=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Lw=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],i=e[1],m=e[2];if(!m)return pp(n,t);let f;switch(i){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",pp(i,t)).replace("{{time}}",fp(m,t))},Ic={p:fp,P:Lw},Iw=/^D+$/,Ow=/^Y+$/,Nw=["D","DD","YY","YYYY"];function gp(n){return Iw.test(n)}function mp(n){return Ow.test(n)}function Oc(n,t,e){const i=Dw(n,t,e);if(console.warn(i),Nw.includes(n))throw new RangeError(i)}function Dw(n,t,e){const i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Fw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Hw=/^'([^]*?)'?$/,zw=/''/g,Bw=/[a-zA-Z]/;function Zr(n,t,e){var i,m,f,v,w,h,g,a;const l=Mo(),s=(e==null?void 0:e.locale)??l.locale??ap,c=(e==null?void 0:e.firstWeekContainsDate)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.firstWeekContainsDate)??l.firstWeekContainsDate??((v=(f=l.locale)==null?void 0:f.options)==null?void 0:v.firstWeekContainsDate)??1,o=(e==null?void 0:e.weekStartsOn)??((h=(w=e==null?void 0:e.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)??l.weekStartsOn??((a=(g=l.locale)==null?void 0:g.options)==null?void 0:a.weekStartsOn)??0,u=jt(n,e==null?void 0:e.in);if(!sp(u))throw new RangeError("Invalid time value");let p=t.match(Pw).map(x=>{const R=x[0];if(R==="p"||R==="P"){const A=Ic[R];return A(x,s.formatLong)}return x}).join("").match(Fw).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const R=x[0];if(R==="'")return{isToken:!1,value:jw(x)};if(up[R])return{isToken:!0,value:x};if(R.match(Bw))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:x}});s.localize.preprocessor&&(p=s.localize.preprocessor(u,p));const y={firstWeekContainsDate:c,weekStartsOn:o,locale:s};return p.map(x=>{if(!x.isToken)return x.value;const R=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&mp(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&gp(R))&&Oc(R,t,String(n));const A=up[R[0]];return A(u,R,s.localize,y)}).join("")}function jw(n){const t=n.match(Hw);return t?t[1].replace(zw,"'"):n}var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ma(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vp={exports:{}},yp;function Ww(){return yp||(yp=1,function(n,t){(function(){var e="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var m=function(a,l,s){if(typeof a!="string"){m.original?m.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(s=l),m.modules[a]||(m.payloads[a]=s,m.modules[a]=null)};m.modules={},m.payloads={};var f=function(a,l,s){if(typeof l=="string"){var c=h(a,l);if(c!=null)return s&&s(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var o=[],u=0,p=l.length;u<p;++u){var y=h(a,l[u]);if(y==null&&v.original)return;o.push(y)}return s&&s.apply(null,o)||!0}},v=function(a,l){var s=f("",a,l);return s==null&&v.original?v.original.apply(this,arguments):s},w=function(a,l){if(l.indexOf("!")!==-1){var s=l.split("!");return w(a,s[0])+"!"+w(a,s[1])}if(l.charAt(0)=="."){var c=a.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&o!=l;){var o=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var s=m.modules[l];if(!s){if(s=m.payloads[l],typeof s=="function"){var c={},o={id:l,uri:"",exports:c,packaged:!0},u=function(y,x){return f(l,y,x)},p=s(u,c,o);c=p||o.exports,m.modules[l]=c,delete m.payloads[l]}s=m.modules[l]=c||s}return s};function g(a){var l=i;i[a]||(i[a]={}),l=i[a],(!l.define||!l.define.packaged)&&(m.original=l.define,l.define=m,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(v.original=l.require,l.require=v,l.require.packaged=!0)}g(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,i,m){function f(v,w,h){Object.defineProperty(v,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||f(String.prototype,"startsWith",function(v,w){return w=w||0,this.lastIndexOf(v,w)===w}),String.prototype.endsWith||f(String.prototype,"endsWith",function(v,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=v.length;var g=h.indexOf(v,w);return g!==-1&&g===w}),String.prototype.repeat||f(String.prototype,"repeat",function(v){for(var w="",h=this;v>0;)v&1&&(w+=h),(v>>=1)&&(h+=h);return w}),String.prototype.includes||f(String.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Object.assign||(Object.assign=function(v){if(v==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(v),h=1;h<arguments.length;h++){var g=arguments[h];g!=null&&Object.keys(g).forEach(function(a){w[a]=g[a]})}return w}),Object.values||(Object.values=function(v){return Object.keys(v).map(function(w){return v[w]})}),Array.prototype.find||f(Array.prototype,"find",function(v){for(var w=this.length,h=arguments[1],g=0;g<w;g++){var a=this[g];if(v.call(h,a,g,this))return a}}),Array.prototype.findIndex||f(Array.prototype,"findIndex",function(v){for(var w=this.length,h=arguments[1],g=0;g<w;g++){var a=this[g];if(v.call(h,a,g,this))return g}}),Array.prototype.includes||f(Array.prototype,"includes",function(v,w){return this.indexOf(v,w)!=-1}),Array.prototype.fill||f(Array.prototype,"fill",function(v){for(var w=this,h=w.length>>>0,g=arguments[1],a=g>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),s=arguments[2],c=s===void 0?h:s>>0,o=c<0?Math.max(h+c,0):Math.min(c,h);l<o;)w[l]=v,l++;return w}),Array.of||f(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,i,m){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,i,m){i.deepCopy=function f(v){if(typeof v!="object"||!v)return v;var w;if(Array.isArray(v)){w=[];for(var h=0;h<v.length;h++)w[h]=f(v[h]);return w}if(Object.prototype.toString.call(v)!=="[object Object]")return v;w={};for(var h in v)w[h]=f(v[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){i.last=function(w){return w[w.length-1]},i.stringReverse=function(w){return w.split("").reverse().join("")},i.stringRepeat=function(w,h){for(var g="";h>0;)h&1&&(g+=w),(h>>=1)&&(w+=w);return g};var f=/^\s\s*/,v=/\s\s*$/;i.stringTrimLeft=function(w){return w.replace(f,"")},i.stringTrimRight=function(w){return w.replace(v,"")},i.copyObject=function(w){var h={};for(var g in w)h[g]=w[g];return h},i.copyArray=function(w){for(var h=[],g=0,a=w.length;g<a;g++)w[g]&&typeof w[g]=="object"?h[g]=this.copyObject(w[g]):h[g]=w[g];return h},i.deepCopy=e("./deep_copy").deepCopy,i.arrayToMap=function(w){for(var h={},g=0;g<w.length;g++)h[w[g]]=1;return h},i.createMap=function(w){var h=Object.create(null);for(var g in w)h[g]=w[g];return h},i.arrayRemove=function(w,h){for(var g=0;g<=w.length;g++)h===w[g]&&w.splice(g,1)},i.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},i.escapeHTML=function(w){return(""+w).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},i.getMatchOffsets=function(w,h){var g=[];return w.replace(h,function(a){g.push({offset:arguments[arguments.length-2],length:a.length})}),g},i.deferredCall=function(w){var h=null,g=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(g,l||0),a};return a.schedule=a,a.call=function(){return this.cancel(),w(),a},a.cancel=function(){return clearTimeout(h),h=null,a},a.isPending=function(){return h},a},i.delayedCall=function(w,h){var g=null,a=function(){g=null,w()},l=function(s){g==null&&(g=setTimeout(a,s||h))};return l.delay=function(s){g&&clearTimeout(g),g=setTimeout(a,s||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){g&&clearTimeout(g),g=null},l.isPending=function(){return g},l},i.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},i.skipEmptyMatch=function(w,h,g){return g&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,i,m){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var f=typeof navigator=="object"?navigator:{},v=(/mac|win|linux/i.exec(f.platform)||["other"])[0].toLowerCase(),w=f.userAgent||"",h=f.appName||"";i.isWin=v=="win",i.isMac=v=="mac",i.isLinux=v=="linux",i.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((w.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((w.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=w.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(w.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,i.isAIR=w.indexOf("AdobeAIR")>=0,i.isAndroid=w.indexOf("Android")>=0,i.isChromeOS=w.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,i,m){var f=e("./useragent"),v="http://www.w3.org/1999/xhtml";i.buildDom=function s(c,o,u){if(typeof c=="string"&&c){var p=document.createTextNode(c);return o&&o.appendChild(p),p}if(!Array.isArray(c))return c&&c.appendChild&&o&&o.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var y=[],x=0;x<c.length;x++){var R=s(c[x],o,u);R&&y.push(R)}return y}var A=document.createElement(c[0]),k=c[1],b=1;k&&typeof k=="object"&&!Array.isArray(k)&&(b=2);for(var x=b;x<c.length;x++)s(c[x],A,u);return b==2&&Object.keys(k).forEach(function(T){var E=k[T];T==="class"?A.className=Array.isArray(E)?E.join(" "):E:typeof E=="function"||T=="value"||T[0]=="$"?A[T]=E:T==="ref"?u&&(u[E]=A):T==="style"?typeof E=="string"&&(A.style.cssText=E):E!=null&&A.setAttribute(T,E)}),o&&o.appendChild(A),A},i.getDocumentHead=function(s){return s||(s=document),s.head||s.getElementsByTagName("head")[0]||s.documentElement},i.createElement=function(s,c){return document.createElementNS?document.createElementNS(c||v,s):document.createElement(s)},i.removeChildren=function(s){s.innerHTML=""},i.createTextNode=function(s,c){var o=c?c.ownerDocument:document;return o.createTextNode(s)},i.createFragment=function(s){var c=s?s.ownerDocument:document;return c.createDocumentFragment()},i.hasCssClass=function(s,c){var o=(s.className+"").split(/\s+/g);return o.indexOf(c)!==-1},i.addCssClass=function(s,c){i.hasCssClass(s,c)||(s.className+=" "+c)},i.removeCssClass=function(s,c){for(var o=s.className.split(/\s+/g);;){var u=o.indexOf(c);if(u==-1)break;o.splice(u,1)}s.className=o.join(" ")},i.toggleCssClass=function(s,c){for(var o=s.className.split(/\s+/g),u=!0;;){var p=o.indexOf(c);if(p==-1)break;u=!1,o.splice(p,1)}return u&&o.push(c),s.className=o.join(" "),u},i.setCssClass=function(s,c,o){o?i.addCssClass(s,c):i.removeCssClass(s,c)},i.hasCssString=function(s,c){var o=0,u;if(c=c||document,u=c.querySelectorAll("style")){for(;o<u.length;)if(u[o++].id===s)return!0}},i.removeElementById=function(s,c){c=c||document,c.getElementById(s)&&c.getElementById(s).remove()};var w,h=[];i.useStrictCSP=function(s){w=s,s==!1?g():h||(h=[])};function g(){var s=h;h=null,s&&s.forEach(function(c){a(c[0],c[1])})}function a(s,c,o){if(!(typeof document>"u")){if(h){if(o)g();else if(o===!1)return h.push([s,c])}if(!w){var u=o;!o||!o.getRootNode?u=document:(u=o.getRootNode(),(!u||u==o)&&(u=document));var p=u.ownerDocument||u;if(c&&i.hasCssString(c,u))return null;c&&(s+=`
2
2
  /*# sourceURL=ace/css/`+c+" */");var y=i.createElement("style");y.appendChild(p.createTextNode(s)),c&&(y.id=c),u==p&&(u=i.getDocumentHead(p)),u.insertBefore(y,u.firstChild)}}}if(i.importCssString=a,i.importCssStylsheet=function(s,c){i.buildDom(["link",{rel:"stylesheet",href:s}],i.getDocumentHead(c))},i.scrollbarWidth=function(s){var c=i.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var o=i.createElement("ace_outer"),u=o.style;u.position="absolute",u.left="-10000px",u.overflow="hidden",u.width="200px",u.minWidth="0px",u.height="150px",u.display="block",o.appendChild(c);var p=s&&s.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(o);var y=c.offsetWidth;u.overflow="scroll";var x=c.offsetWidth;return y===x&&(x=o.clientWidth),p.removeChild(o),y-x},i.computedStyle=function(s,c){return window.getComputedStyle(s,"")||{}},i.setStyle=function(s,c,o){s[c]!==o&&(s[c]=o)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=f.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,f.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");i.HI_DPI&&l.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!f.isEdge&&typeof l.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),l=null}i.HAS_CSS_TRANSFORMS?i.translate=function(s,c,o){s.style.transform="translate("+Math.round(c)+"px, "+Math.round(o)+"px)"}:i.translate=function(s,c,o){s.style.top=Math.round(o)+"px",s.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,i,m){/*
3
3
  * based on code from:
4
4
  *
@@ -165,17 +165,17 @@ System.register(["vue","vue-router","vuex","vuetify"],function(rn,Ne){"use stric
165
165
  }
166
166
  `}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,i,m){i.isDark=!1,i.cssClass="ace-tm",i.cssText=e("./textmate-css"),i.$id="ace/theme/textmate";var f=e("../lib/dom");f.importCssString(i.cssText,i.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(e,i,m){"no use strict";var f=e("./lib/lang"),v=e("./lib/net"),w=e("./lib/dom"),h=e("./lib/app_config").AppConfig;m.exports=i=new h;var g={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};i.get=function(c){if(!g.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return g[c]},i.set=function(c,o){if(g.hasOwnProperty(c))g[c]=o;else if(this.setDefaultValue("",c,o)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&w.useStrictCSP(o)},i.all=function(){return f.copyObject(g)},i.$modes={},i.moduleUrl=function(c,o){if(g.$moduleUrls[c])return g.$moduleUrls[c];var u=c.split("/");o=o||u[u.length-2]||"";var p=o=="snippets"?"/":"-",y=u[u.length-1];if(o=="worker"&&p=="-"){var x=new RegExp("^"+o+"[\\-_]|[\\-_]"+o+"$","g");y=y.replace(x,"")}(!y||y==o)&&u.length>1&&(y=u[u.length-2]);var R=g[o+"Path"];return R==null?R=g.basePath:p=="/"&&(o=p=""),R&&R.slice(-1)!="/"&&(R+="/"),R+o+p+y+this.get("suffix")},i.setModuleUrl=function(c,o){return g.$moduleUrls[c]=o};var a=function(c,o){if(c==="ace/theme/textmate"||c==="./theme/textmate")return o(null,e("./theme/textmate"));if(l)return l(c,o);console.error("loader is not configured")},l;i.setLoader=function(c){l=c},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(c,o){var u;if(Array.isArray(c))var p=c[0],y=c[1];else if(typeof c=="string")var y=c;var x=function(R){if(R&&!i.$loading[y])return o&&o(R);if(i.$loading[y]||(i.$loading[y]=[]),i.$loading[y].push(o),!(i.$loading[y].length>1)){var A=function(){a(y,function(k,b){b&&(i.$loaded[y]=b),i._emit("load.module",{name:y,module:b});var T=i.$loading[y];i.$loading[y]=null,T.forEach(function(E){E&&E(b)})})};if(!i.get("packaged"))return A();v.loadScript(i.moduleUrl(y,p),A),s()}};if(i.dynamicModules[y])i.dynamicModules[y]().then(function(R){R.default?x(R.default):x(R)});else{try{u=this.$require(y)}catch{}x(u||i.$loaded[y])}},i.$require=function(c){if(typeof m.require=="function"){var o="require";return m[o](c)}},i.setModuleLoader=function(c,o){i.dynamicModules[c]=o};var s=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"),s=function(){})};i.version="1.37.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,i,m){e("./lib/fixoldbrowsers");var f=e("./config");f.setLoader(function(g,a){e([g],function(l){a(null,l)})});var v=function(){return this||typeof window<"u"&&window}();m.exports=function(g){f.init=w,f.$require=e,g.require=e},w(!0);function w(g){if(!(!v||!v.document)){f.set("packaged",g||e.packaged||m.packaged||v.define&&(void 0).packaged);var a={},l="",s=document.currentScript||document._currentScript,c=s&&s.ownerDocument||document;s&&s.src&&(l=s.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var o=c.getElementsByTagName("script"),u=0;u<o.length;u++){var p=o[u],y=p.src||p.getAttribute("src");if(y){for(var x=p.attributes,R=0,A=x.length;R<A;R++){var k=x[R];k.name.indexOf("data-ace-")===0&&(a[h(k.name.replace(/^data-ace-/,""))]=k.value)}var b=y.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(l=b[1])}}l&&(a.base=a.base||l,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base;for(var T in a)typeof a[T]<"u"&&f.set(T,a[T])}}function h(g){return g.replace(/-(.)/g,function(a,l){return l.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(e,i,m){var f=function(){function v(w,h,g,a){this.start={row:w,column:h},this.end={row:g,column:a}}return v.prototype.isEqual=function(w){return this.start.row===w.start.row&&this.end.row===w.end.row&&this.start.column===w.start.column&&this.end.column===w.end.column},v.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},v.prototype.contains=function(w,h){return this.compare(w,h)==0},v.prototype.compareRange=function(w){var h,g=w.end,a=w.start;return h=this.compare(g.row,g.column),h==1?(h=this.compare(a.row,a.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(a.row,a.column),h==-1?-1:h==1?42:0)},v.prototype.comparePoint=function(w){return this.compare(w.row,w.column)},v.prototype.containsRange=function(w){return this.comparePoint(w.start)==0&&this.comparePoint(w.end)==0},v.prototype.intersects=function(w){var h=this.compareRange(w);return h==-1||h==0||h==1},v.prototype.isEnd=function(w,h){return this.end.row==w&&this.end.column==h},v.prototype.isStart=function(w,h){return this.start.row==w&&this.start.column==h},v.prototype.setStart=function(w,h){typeof w=="object"?(this.start.column=w.column,this.start.row=w.row):(this.start.row=w,this.start.column=h)},v.prototype.setEnd=function(w,h){typeof w=="object"?(this.end.column=w.column,this.end.row=w.row):(this.end.row=w,this.end.column=h)},v.prototype.inside=function(w,h){return this.compare(w,h)==0?!(this.isEnd(w,h)||this.isStart(w,h)):!1},v.prototype.insideStart=function(w,h){return this.compare(w,h)==0?!this.isEnd(w,h):!1},v.prototype.insideEnd=function(w,h){return this.compare(w,h)==0?!this.isStart(w,h):!1},v.prototype.compare=function(w,h){return!this.isMultiLine()&&w===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:w<this.start.row?-1:w>this.end.row?1:this.start.row===w?h>=this.start.column?0:-1:this.end.row===w?h<=this.end.column?0:1:0},v.prototype.compareStart=function(w,h){return this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},v.prototype.compareEnd=function(w,h){return this.end.row==w&&this.end.column==h?1:this.compare(w,h)},v.prototype.compareInside=function(w,h){return this.end.row==w&&this.end.column==h?1:this.start.row==w&&this.start.column==h?-1:this.compare(w,h)},v.prototype.clipRows=function(w,h){if(this.end.row>h)var g={row:h+1,column:0};else if(this.end.row<w)var g={row:w,column:0};if(this.start.row>h)var a={row:h+1,column:0};else if(this.start.row<w)var a={row:w,column:0};return v.fromPoints(a||this.start,g||this.end)},v.prototype.extend=function(w,h){var g=this.compare(w,h);if(g==0)return this;if(g==-1)var a={row:w,column:h};else var l={row:w,column:h};return v.fromPoints(a||this.start,l||this.end)},v.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},v.prototype.isMultiLine=function(){return this.start.row!==this.end.row},v.prototype.clone=function(){return v.fromPoints(this.start,this.end)},v.prototype.collapseRows=function(){return this.end.column==0?new v(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new v(this.start.row,0,this.end.row,0)},v.prototype.toScreenRange=function(w){var h=w.documentToScreenPosition(this.start),g=w.documentToScreenPosition(this.end);return new v(h.row,h.column,g.row,g.column)},v.prototype.moveBy=function(w,h){this.start.row+=w,this.start.column+=h,this.end.row+=w,this.end.column+=h},v}();f.fromPoints=function(v,w){return new f(v.row,v.column,w.row,w.column)},f.comparePoints=function(v,w){return v.row-w.row||v.column-w.column},i.Range=f}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,i,m){for(var f=e("./oop"),v={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},w={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)w["Digit"+h]=48+h,w["Numpad"+h]=96+h,v.PRINTABLE_KEYS[48+h]=""+h,v.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var g=String.fromCharCode(h+32);w["Key"+g.toUpperCase()]=h,v.PRINTABLE_KEYS[h]=g}for(var h=1;h<13;h++)w["F"+h]=111+h,v.FUNCTION_KEYS[111+h]="F"+h;var a={Shift:16,Control:17,Alt:18,Meta:224};for(var l in a)w[l]=w[l+"Left"]=w[l+"Right"]=a[l];i.$codeToKeyCode=w,v.PRINTABLE_KEYS[173]="-";for(var s in v.FUNCTION_KEYS){var c=v.FUNCTION_KEYS[s].toLowerCase();v[c]=parseInt(s,10)}for(var s in v.PRINTABLE_KEYS){var c=v.PRINTABLE_KEYS[s].toLowerCase();v[c]=parseInt(s,10)}f.mixin(v,v.MODIFIER_KEYS),f.mixin(v,v.PRINTABLE_KEYS),f.mixin(v,v.FUNCTION_KEYS),v.enter=v.return,v.escape=v.esc,v.del=v.delete,function(){for(var o=["cmd","ctrl","alt","shift"],u=Math.pow(2,o.length);u--;)v.KEY_MODS[u]=o.filter(function(p){return u&v.KEY_MODS[p]}).join("-")+"-"}(),v.KEY_MODS[0]="",v.KEY_MODS[-1]="input-",f.mixin(i,v),i.default=i,i.keyCodeToString=function(o){var u=v[o];return typeof u!="string"&&(u=String.fromCharCode(o)),u.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,i,m){var f=e("./keys"),v=e("./useragent"),w=null,h=0,g;function a(){g=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return g={passive:!1},!0}})}catch{}}function l(){return g==null&&a(),g}function s(R,A,k){this.elem=R,this.type=A,this.callback=k}s.prototype.destroy=function(){o(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=i.addListener=function(R,A,k,b){R.addEventListener(A,k,l()),b&&b.$toDestroy.push(new s(R,A,k))},o=i.removeListener=function(R,A,k){R.removeEventListener(A,k,l())};i.stopEvent=function(R){return i.stopPropagation(R),i.preventDefault(R),!1},i.stopPropagation=function(R){R.stopPropagation&&R.stopPropagation()},i.preventDefault=function(R){R.preventDefault&&R.preventDefault()},i.getButton=function(R){return R.type=="dblclick"?0:R.type=="contextmenu"||v.isMac&&R.ctrlKey&&!R.altKey&&!R.shiftKey?2:R.button},i.capture=function(R,A,k){var b=R&&R.ownerDocument||document;function T(E){A&&A(E),k&&k(E),o(b,"mousemove",A),o(b,"mouseup",T),o(b,"dragstart",T)}return c(b,"mousemove",A),c(b,"mouseup",T),c(b,"dragstart",T),T},i.addMouseWheelListener=function(R,A,k){c(R,"wheel",function(b){var T=.15,E=b.deltaX||0,I=b.deltaY||0;switch(b.deltaMode){case b.DOM_DELTA_PIXEL:b.wheelX=E*T,b.wheelY=I*T;break;case b.DOM_DELTA_LINE:var M=15;b.wheelX=E*M,b.wheelY=I*M;break;case b.DOM_DELTA_PAGE:var D=150;b.wheelX=E*D,b.wheelY=I*D;break}A(b)},k)},i.addMultiMouseDownListener=function(R,A,k,b,T){var E=0,I,M,D,$={2:"dblclick",3:"tripleclick",4:"quadclick"};function _(S){if(i.getButton(S)!==0?E=0:S.detail>1?(E++,E>4&&(E=1)):E=1,v.isIE){var L=Math.abs(S.clientX-I)>5||Math.abs(S.clientY-M)>5;(!D||L)&&(E=1),D&&clearTimeout(D),D=setTimeout(function(){D=null},A[E-1]||600),E==1&&(I=S.clientX,M=S.clientY)}if(S._clicks=E,k[b]("mousedown",S),E>4)E=0;else if(E>1)return k[b]($[E],S)}Array.isArray(R)||(R=[R]),R.forEach(function(S){c(S,"mousedown",_,T)})};function u(R){return 0|(R.ctrlKey?1:0)|(R.altKey?2:0)|(R.shiftKey?4:0)|(R.metaKey?8:0)}i.getModifierString=function(R){return f.KEY_MODS[u(R)]};function p(R,A,k){var b=u(A);if(!k&&A.code&&(k=f.$codeToKeyCode[A.code]||k),!v.isMac&&w){if(A.getModifierState&&(A.getModifierState("OS")||A.getModifierState("Win"))&&(b|=8),w.altGr)if((3&b)!=3)w.altGr=0;else return;if(k===18||k===17){var T=A.location;if(k===17&&T===1)w[k]==1&&(h=A.timeStamp);else if(k===18&&b===3&&T===2){var E=A.timeStamp-h;E<50&&(w.altGr=!0)}}}if(k in f.MODIFIER_KEYS&&(k=-1),!(!b&&k===13&&A.location===3&&(R(A,b,-k),A.defaultPrevented))){if(v.isChromeOS&&b&8){if(R(A,b,k),A.defaultPrevented)return;b&=-9}return!b&&!(k in f.FUNCTION_KEYS)&&!(k in f.PRINTABLE_KEYS)?!1:R(A,b,k)}}i.addCommandKeyListener=function(R,A,k){var b=null;c(R,"keydown",function(T){w[T.keyCode]=(w[T.keyCode]||0)+1;var E=p(A,T,T.keyCode);return b=T.defaultPrevented,E},k),c(R,"keypress",function(T){b&&(T.ctrlKey||T.altKey||T.shiftKey||T.metaKey)&&(i.stopEvent(T),b=null)},k),c(R,"keyup",function(T){w[T.keyCode]=null},k),w||(y(),c(window,"focus",y))};function y(){w=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!v.isOldIE){var x=1;i.nextTick=function(R,A){A=A||window;var k="zero-timeout-message-"+x++,b=function(T){T.data==k&&(i.stopPropagation(T),o(A,"message",b),R())};c(A,"message",b),A.postMessage(k,"*")}}i.$idleBlocked=!1,i.onIdle=function(R,A){return setTimeout(function k(){i.$idleBlocked?setTimeout(k,100):R()},A)},i.$idleBlockId=null,i.blockIdle=function(R){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},R||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function(R){setTimeout(R,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(e,i,m){var f;m.exports={lineMode:!1,pasteCancelled:function(){return f&&f>Date.now()-50?!0:f=!1},cancel:function(){f=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,i,m){var f=e("../lib/event"),v=e("../config").nls,w=e("../lib/useragent"),h=e("../lib/dom"),g=e("../lib/lang"),a=e("../clipboard"),l=w.isChrome<18,s=w.isIE,c=w.isChrome>63,o=400,u=e("../lib/keys"),p=u.KEY_MODS,y=w.isIOS,x=y?/\s/:/\n/,R=w.isMobile,A;A=function(k,b){var T=h.createElement("textarea");T.className="ace_text-input",T.setAttribute("wrap","off"),T.setAttribute("autocorrect","off"),T.setAttribute("autocapitalize","off"),T.setAttribute("spellcheck","false"),T.style.opacity="0",k.insertBefore(T,k.firstChild);var E=!1,I=!1,M=!1,D=!1,$="";R||(T.style.fontSize="1px");var _=!1,S=!1,L="",O=0,F=0,H=0,W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,q=0;try{var X=document.activeElement===T}catch{}this.setNumberOfExtraLines=function(ce){if(W=Number.MAX_SAFE_INTEGER,V=Number.MIN_SAFE_INTEGER,ce<0){q=0;return}q=ce},this.setAriaLabel=function(){var ce="";if(b.$textInputAriaLabel&&(ce+="".concat(b.$textInputAriaLabel,", ")),b.session){var Te=b.session.selection.cursor.row;ce+=v("text-input.aria-label","Cursor at row $0",[Te+1])}T.setAttribute("aria-label",ce)},this.setAriaOptions=function(ce){ce.activeDescendant?(T.setAttribute("aria-haspopup","true"),T.setAttribute("aria-autocomplete",ce.inline?"both":"list"),T.setAttribute("aria-activedescendant",ce.activeDescendant)):(T.setAttribute("aria-haspopup","false"),T.setAttribute("aria-autocomplete","both"),T.removeAttribute("aria-activedescendant")),ce.role&&T.setAttribute("role",ce.role),ce.setLabel&&(T.setAttribute("aria-roledescription",v("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),f.addListener(T,"blur",function(ce){S||(b.onBlur(ce),X=!1)},b),f.addListener(T,"focus",function(ce){if(!S){if(X=!0,w.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(ce),w.isEdge?setTimeout(Z):Z()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),$||c||this.$focusScroll=="browser")return T.focus({preventScroll:!0});var ce=T.style.top;T.style.position="fixed",T.style.top="0px";try{var Te=T.getBoundingClientRect().top!=0}catch{return}var Re=[];if(Te)for(var qe=T.parentElement;qe&&qe.nodeType==1;)Re.push(qe),qe.setAttribute("ace_nocontext","true"),!qe.parentElement&&qe.getRootNode?qe=qe.getRootNode().host:qe=qe.parentElement;T.focus({preventScroll:!0}),Te&&Re.forEach(function(Ye){Ye.removeAttribute("ace_nocontext")}),setTimeout(function(){T.style.position="",T.style.top=="0px"&&(T.style.top=ce)},0)},this.blur=function(){T.blur()},this.isFocused=function(){return X},b.on("beforeEndOperation",function(){var ce=b.curOp,Te=ce&&ce.command&&ce.command.name;if(Te!="insertstring"){var Re=Te&&(ce.docChanged||ce.selectionChanged);M&&Re&&(L=T.value="",Gt()),Z()}}),b.on("changeSelection",this.setAriaLabel);var G=function(ce,Te){for(var Re=Te,qe=1;qe<=ce-W&&qe<2*q+1;qe++)Re+=b.session.getLine(ce-qe).length+1;return Re},Z=y?function(ce){if(!(!X||E&&!ce||D)){ce||(ce="");var Te=`
167
167
  ab`+ce+`cde fg
168
- `;Te!=T.value&&(T.value=L=Te);var Re=4,qe=4+(ce.length||(b.selection.isEmpty()?0:1));(O!=Re||F!=qe)&&T.setSelectionRange(Re,qe),O=Re,F=qe}}:function(){if(!(M||D)&&!(!X&&!me)){M=!0;var ce=0,Te=0,Re="";if(b.session){var qe=b.selection,Ye=qe.getRange(),ht=qe.cursor.row;ht===V+1?(W=V+1,V=W+2*q):ht===W-1?(V=W-1,W=V-2*q):(ht<W-1||ht>V+1)&&(W=ht>q?ht-q:0,V=ht>q?ht+q:2*q);for(var dt=[],at=W;at<=V;at++)dt.push(b.session.getLine(at));if(Re=dt.join(`
169
- `),ce=G(Ye.start.row,Ye.start.column),Te=G(Ye.end.row,Ye.end.column),Ye.start.row<W){var lt=b.session.getLine(W-1);ce=Ye.start.row<W-1?0:ce,Te+=lt.length+1,Re=lt+`
168
+ `;Te!=T.value&&(T.value=L=Te);var Re=4,qe=4+(ce.length||(b.selection.isEmpty()?0:1));(O!=Re||F!=qe)&&T.setSelectionRange(Re,qe),O=Re,F=qe}}:function(){if(!(M||D)&&!(!X&&!me)){M=!0;var ce=0,Te=0,Re="";if(b.session){var qe=b.selection,Ye=qe.getRange(),dt=qe.cursor.row;dt===V+1?(W=V+1,V=W+2*q):dt===W-1?(V=W-1,W=V-2*q):(dt<W-1||dt>V+1)&&(W=dt>q?dt-q:0,V=dt>q?dt+q:2*q);for(var pt=[],lt=W;lt<=V;lt++)pt.push(b.session.getLine(lt));if(Re=pt.join(`
169
+ `),ce=G(Ye.start.row,Ye.start.column),Te=G(Ye.end.row,Ye.end.column),Ye.start.row<W){var ct=b.session.getLine(W-1);ce=Ye.start.row<W-1?0:ce,Te+=ct.length+1,Re=ct+`
170
170
  `+Re}else if(Ye.end.row>V){var nt=b.session.getLine(V+1);Te=Ye.end.row>V+1?nt.length:Ye.end.column,Te+=Re.length+1,Re=Re+`
171
- `+nt}else R&&ht>0&&(Re=`
171
+ `+nt}else R&&dt>0&&(Re=`
172
172
  `+Re,Te+=1,ce+=1);Re.length>o&&(ce<o&&Te<o?Re=Re.slice(0,o):(Re=`
173
- `,ce==Te?ce=Te=0:(ce=0,Te=1)));var zt=Re+`
173
+ `,ce==Te?ce=Te=0:(ce=0,Te=1)));var Bt=Re+`
174
174
 
175
- `;zt!=L&&(T.value=L=zt,O=F=zt.length)}if(me&&(O=T.selectionStart,F=T.selectionEnd),F!=Te||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Te),O=ce,F=Te}catch{}M=!1}};this.resetSelection=Z,X&&b.onFocus();var ie=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=L.length&&ce.value===L&&L&&ce.selectionEnd!==F},J=function(ce){M||(E?E=!1:ie(T)?(b.selectAll(),Z()):R&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,ye=function(ce,Te){if(me&&(me=!1),I)return Z(),ce&&b.onPaste(ce),I=!1,"";for(var Re=T.selectionStart,qe=T.selectionEnd,Ye=O,ht=L.length-F,dt=ce,at=ce.length-Re,lt=ce.length-qe,nt=0;Ye>0&&L[nt]==ce[nt];)nt++,Ye--;for(dt=dt.slice(nt),nt=1;ht>0&&L.length-nt>O-1&&L[L.length-nt]==ce[ce.length-nt];)nt++,ht--;at-=nt-1,lt-=nt-1;var zt=dt.length-nt+1;if(zt<0&&(Ye=-zt,zt=0),dt=dt.slice(0,zt),!Te&&!dt&&!at&&!Ye&&!ht&&!lt)return"";D=!0;var Pn=!1;return w.isAndroid&&dt==". "&&(dt=" ",Pn=!0),dt&&!Ye&&!ht&&!at&&!lt||_?b.onTextInput(dt):b.onTextInput(dt,{extendLeft:Ye,extendRight:ht,restoreStart:at,restoreEnd:lt}),D=!1,L=ce,O=Re,F=qe,H=lt,Pn?`
176
- `:dt},fe=function(ce){if(M)return It();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return b.execCommand("undo");if(ce.inputType=="historyRedo")return b.execCommand("redo")}var Te=T.value,Re=ye(Te,!0);(Te.length>o+100||x.test(Re)||R&&O<1&&O==F)&&Z()},ke=function(ce,Te,Re){var qe=ce.clipboardData||window.clipboardData;if(!(!qe||l)){var Ye=s||Re?"Text":"text/plain";try{return Te?qe.setData(Ye,Te)!==!1:qe.getData(Ye)}catch(ht){if(!Re)return ke(ht,Te,!0)}}},ot=function(ce,Te){var Re=b.getCopyText();if(!Re)return f.preventDefault(ce);ke(ce,Re)?(y&&(Z(Re),E=Re,setTimeout(function(){E=!1},10)),Te?b.onCut():b.onCopy(),f.preventDefault(ce)):(E=!0,T.value=Re,T.select(),setTimeout(function(){E=!1,Z(),Te?b.onCut():b.onCopy()}))},Ft=function(ce){ot(ce,!0)},ut=function(ce){ot(ce,!1)},ft=function(ce){var Te=ke(ce);a.pasteCancelled()||(typeof Te=="string"?(Te&&b.onPaste(Te,ce),w.isIE&&setTimeout(Z),f.preventDefault(ce)):(T.value="",I=!0))};f.addCommandKeyListener(T,function(ce,Te,Re){if(!M)return b.onCommandKey(ce,Te,Re)},b),f.addListener(T,"select",J,b),f.addListener(T,"input",fe,b),f.addListener(T,"cut",Ft,b),f.addListener(T,"copy",ut,b),f.addListener(T,"paste",ft,b),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&f.addListener(k,"keydown",function(ce){if(!(w.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:ut(ce);break;case 86:ft(ce);break;case 88:Ft(ce);break}},b);var ln=function(ce){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!_)){ce.data&&(M.useTextareaForIME=!1),setTimeout(It,0),b._signal("compositionStart"),b.on("mousedown",qi);var Te=b.getSelectionRange();Te.end.row=Te.start.row,Te.end.column=Te.start.column,M.markerRange=Te,M.selectionStart=O,b.onCompositionStart(M),M.useTextareaForIME?(L=T.value="",O=0,F=0):(T.msGetInputContext&&(M.context=T.msGetInputContext()),T.getInputContext&&(M.context=T.getInputContext()))}},It=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if(_)return qi();if(M.useTextareaForIME)b.onCompositionUpdate(T.value);else{var ce=T.value;ye(ce),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+F-M.selectionStart+H)}}},Gt=function(ce){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",qi),ce&&fe())};function qi(){S=!0,T.blur(),T.focus(),S=!1}var _n=g.delayedCall(It,50).schedule.bind(null,null);function Xt(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(M||(L=T.value),O=F=-1,Z()),_n()}f.addListener(T,"compositionstart",ln,b),f.addListener(T,"compositionupdate",It,b),f.addListener(T,"keyup",Xt,b),f.addListener(T,"keydown",_n,b),f.addListener(T,"compositionend",Gt,b),this.getElement=function(){return T},this.setCommandMode=function(ce){_=ce,T.readOnly=!1},this.setReadOnly=function(ce){_||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),b._emit("nativecontextmenu",{target:b,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Te){$||($=T.style.cssText),T.style.cssText=(Te?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*b.renderer.characterWidth*.5+"px;";var Re=b.container.getBoundingClientRect(),qe=h.computedStyle(b.container),Ye=Re.top+(parseInt(qe.borderTopWidth)||0),ht=Re.left+(parseInt(Re.borderLeftWidth)||0),dt=Re.bottom-Ye-T.clientHeight-2,at=function(lt){h.translate(T,lt.clientX-ht-2,Math.min(lt.clientY-Ye-2,dt))};at(ce),ce.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(Pe),w.isWin&&f.capture(b.container,at,ze))},this.onContextMenuClose=ze;var Pe;function ze(){clearTimeout(Pe),Pe=setTimeout(function(){$&&(T.style.cssText=$,$=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var en=function(ce){b.textInput.onContextMenu(ce),ze()};f.addListener(T,"mouseup",en,b),f.addListener(T,"mousedown",function(ce){ce.preventDefault(),ze()},b),f.addListener(b.renderer.scroller,"contextmenu",en,b),f.addListener(T,"contextmenu",en,b),y&&We(k,b,T);function We(ce,Te,Re){var qe=null,Ye=!1;Re.addEventListener("keydown",function(dt){qe&&clearTimeout(qe),Ye=!0},!0),Re.addEventListener("keyup",function(dt){qe=setTimeout(function(){Ye=!1},100)},!0);var ht=function(dt){if(document.activeElement===Re&&!(Ye||M||Te.$mouseHandler.isMousePressed)&&!E){var at=Re.selectionStart,lt=Re.selectionEnd,nt=null,zt=0;if(at==0?nt=u.up:at==1?nt=u.home:lt>F&&L[lt]==`
177
- `?nt=u.end:at<O&&L[at-1]==" "?(nt=u.left,zt=p.option):at<O||at==O&&F!=O&&at==lt?nt=u.left:lt>F&&L.slice(0,lt).split(`
178
- `).length>2?nt=u.down:lt>F&&L[lt-1]==" "?(nt=u.right,zt=p.option):(lt>F||lt==F&&F!=O&&at==lt)&&(nt=u.right),at!==lt&&(zt|=p.shift),nt){var Pn=Te.onCommandKey({},zt,nt);if(!Pn&&Te.commands){nt=u.keyCodeToString(nt);var sr=Te.commands.findKeyCommand(zt,nt);sr&&Te.execCommand(sr)}O=at,F=lt,Z("")}}};document.addEventListener("selectionchange",ht),Te.on("destroy",function(){document.removeEventListener("selectionchange",ht)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},i.TextInput=A,i.$setUserAgentForTests=function(k,b){R=k,y=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,i,m){var f=e("../lib/useragent"),v=0,w=550,h=function(){function l(s){s.$clickSelection=null;var c=s.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){s[u]=this[u]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}return l.prototype.onMouseDown=function(s){var c=s.inSelection(),o=s.getDocumentPosition();this.mousedownEvent=s;var u=this.editor,p=s.getButton();if(p!==0){var y=u.getSelectionRange(),x=y.isEmpty();(x||p==1)&&u.selection.moveToPosition(o),p==2&&(u.textInput.onContextMenu(s.domEvent),f.isMozilla||s.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(s);return}return this.captureMouse(s),this.startSelect(o,s.domEvent._clicks>1),s.preventDefault()},l.prototype.startSelect=function(s,c){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(s):c||o.selection.moveToPosition(s),c||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var s,c=this.editor,o=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)s=this.$clickSelection.end;else if(u==1)s=this.$clickSelection.start;else{var p=a(this.$clickSelection,o);o=p.cursor,s=p.anchor}c.selection.setSelectionAnchor(s.row,s.column)}c.selection.selectToPosition(o),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(s){var c,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),p=o.selection[s](u.row,u.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(p.start),x=this.$clickSelection.comparePoint(p.end);if(y==-1&&x<=0)c=this.$clickSelection.end,(p.end.row!=u.row||p.end.column!=u.column)&&(u=p.start);else if(x==1&&y>=0)c=this.$clickSelection.start,(p.start.row!=u.row||p.start.column!=u.column)&&(u=p.end);else if(y==-1&&x==1)u=p.end,c=p.start;else{var R=a(this.$clickSelection,u);u=R.cursor,c=R.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 s=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(s>v||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(s){var c=s.getDocumentPosition(),o=this.editor,u=o.session,p=u.getBracketRange(c);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=o.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},l.prototype.onTripleClick=function(s){var c=s.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(s){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=s.domEvent.timeStamp,p=u-o.t,y=p?s.wheelX/p:o.vx,x=p?s.wheelY/p:o.vy;p<w&&(y=(y+o.vx)/2,x=(x+o.vy)/2);var R=Math.abs(y/x),A=!1;if(R>=1&&c.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(A=!0),R<=1&&c.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(A=!0),A)o.allowed=u;else if(u-o.allowed<w){var k=Math.abs(y)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);k?(A=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=y,o.vy=x,A)return c.renderer.scrollBy(s.wheelX*s.speed,s.wheelY*s.speed),s.stop()}},l}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,i.DefaultHandlers=h;function g(l,s,c,o){return Math.sqrt(Math.pow(c-l,2)+Math.pow(o-s,2))}function a(l,s){if(l.start.row==l.end.row)var c=2*s.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var c=s.column-4;else var c=2*s.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(e,i,m){i.preventParentScroll=function(f){f.stopPropagation();var v=f.currentTarget,w=v.scrollHeight>v.clientHeight;w||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,i,m){var f=this&&this.__extends||function(){var u=function(p,y){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,R){x.__proto__=R}||function(x,R){for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&(x[A]=R[A])},u(p,y)};return function(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");u(p,y);function x(){this.constructor=p}p.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),v=this&&this.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,y=p&&u[p],x=0;if(y)return y.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&x>=u.length&&(u=void 0),{value:u&&u[x++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,g=e("./lib/scroll").preventParentScroll,a="ace_tooltip",l=function(){function u(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}return u.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(p){this.getElement().textContent=p},u.prototype.setHtml=function(p){this.getElement().innerHTML=p},u.prototype.setPosition=function(p,y){this.getElement().style.left=p+"px",this.getElement().style.top=y+"px"},u.prototype.setClassName=function(p){w.addCssClass(this.getElement(),p)},u.prototype.setTheme=function(p){this.$element.className=a+" "+(p.isDark?"ace_dark ":"")+(p.cssClass||"")},u.prototype.show=function(p,y,x){p!=null&&this.setText(p),y!=null&&x!=null&&this.setPosition(y,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(p){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),s=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(p){this.popups.push(p),this.updatePopups()},u.prototype.removePopup=function(p){var y=this.popups.indexOf(p);y!==-1&&(this.popups.splice(y,1),this.updatePopups())},u.prototype.updatePopups=function(){var p,y,x,R;this.popups.sort(function($,_){return _.priority-$.priority});var A=[];try{for(var k=v(this.popups),b=k.next();!b.done;b=k.next()){var T=b.value,E=!0;try{for(var I=(x=void 0,v(A)),M=I.next();!M.done;M=I.next()){var D=M.value;if(this.doPopupsOverlap(D,T)){E=!1;break}}}catch($){x={error:$}}finally{try{M&&!M.done&&(R=I.return)&&R.call(I)}finally{if(x)throw x.error}}E?A.push(T):T.hide()}}catch($){p={error:$}}finally{try{b&&!b.done&&(y=k.return)&&y.call(k)}finally{if(p)throw p.error}}},u.prototype.doPopupsOverlap=function(p,y){var x=p.getElement().getBoundingClientRect(),R=y.getElement().getBoundingClientRect();return x.left<R.right&&x.right>R.left&&x.top<R.bottom&&x.bottom>R.top},u}(),c=new s;i.popupManager=c,i.Tooltip=l;var o=function(u){f(p,u);function p(y){y===void 0&&(y=document.body);var x=u.call(this,y)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var R=x.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",x.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(x)),R.addEventListener("wheel",g),x}return p.prototype.addToEditor=function(y){y.on("mousemove",this.onMouseMove),y.on("mousedown",this.hide),y.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},p.prototype.removeFromEditor=function(y){y.off("mousemove",this.onMouseMove),y.off("mousedown",this.hide),y.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.onMouseMove=function(y,x){this.lastEvent=y,this.lastT=Date.now();var R=x.$mouseHandler.isMousePressed;if(this.isOpen){var A=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(A.row,A.column)||R||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||R||(this.lastEvent=y,this.timeout=setTimeout(this.waitForHover,this.idleTime))},p.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var y=Date.now()-this.lastT;if(this.idleTime-y>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-y);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},p.prototype.isOutsideOfText=function(y){var x=y.editor,R=y.getDocumentPosition(),A=x.session.getLine(R.row);if(R.column==A.length){var k=x.renderer.pixelToScreenCoordinates(y.clientX,y.clientY),b=x.session.documentToScreenPosition(R.row,R.column);if(b.column!=k.column||b.row!=k.row)return!0}return!1},p.prototype.setDataProvider=function(y){this.$gatherData=y},p.prototype.showForRange=function(y,x,R,A){var k=10;if(!(A&&A!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=y.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(x,y.session),this.range=h.fromPoints(x.start,x.end);var T=b.textToScreenCoordinates(x.start.row,x.start.column),E=b.scroller.getBoundingClientRect();T.pageX<E.left&&(T.pageX=E.left);var I=this.getElement();I.innerHTML="",I.appendChild(R),I.style.maxHeight="",I.style.display="block";var M=I.clientHeight,D=I.clientWidth,$=window.innerHeight-T.pageY-b.lineHeight,_=!0;T.pageY-M<0&&T.pageY<$&&(_=!1),I.style.maxHeight=(_?T.pageY:$)-k+"px",I.style.top=_?"":T.pageY+b.lineHeight+"px",I.style.bottom=_?window.innerHeight-T.pageY+"px":"",I.style.left=Math.min(T.pageX,window.innerWidth-D-k)+"px"}},p.prototype.addMarker=function(y,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(y,"ace_highlight-marker","text")},p.prototype.hide=function(y){!y&&document.activeElement==this.getElement()||y&&y.target&&(y.type!="keydown"||y.ctrlKey||y.metaKey)&&this.$element.contains(y.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},p.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},p.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},p.prototype.onMouseOut=function(y){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!y.relatedTarget||this.getElement().contains(y.relatedTarget)||y&&y.currentTarget.contains(y.relatedTarget)||y.relatedTarget.classList.contains("ace_content")||this.hide())},p}(l);i.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,i,m){var f=this&&this.__extends||function(){var c=function(o,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(p[x]=y[x])},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 p(){this.constructor=o}o.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}}(),v=this&&this.__values||function(c){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&c[o],p=0;if(u)return u.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&p>=c.length&&(c=void 0),{value:c&&c[p++],done:!c}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("../lib/event"),g=e("../tooltip").Tooltip,a=e("../config").nls;e("../lib/lang");function l(c){var o=c.editor,u=o.renderer.$gutterLayer,p=new s(o);c.editor.setDefaultHandler("guttermousedown",function(b){if(!(!o.isFocused()||b.getButton()!=0)){var T=u.getRegion(b);if(T!="foldWidgets"){var E=b.getDocumentPosition().row,I=o.session.selection;if(b.getShiftKey())I.selectTo(E,0);else{if(b.domEvent.detail==2)return o.selectAll(),b.preventDefault();c.$clickSelection=o.selection.getLineRange(E)}return c.setState("selectByLines"),c.captureMouse(b),b.preventDefault()}}});var y,x;function R(){var b=x.getDocumentPosition().row,T=o.session.getLength();if(b==T){var E=o.renderer.pixelToScreenCoordinates(0,x.y).row,I=x.$pos;if(E>o.session.documentToScreenRow(I.row,I.column))return A()}if(p.showTooltip(b),!!p.isOpen)if(o.on("mousewheel",A),c.$tooltipFollowsMouse)k(x);else{var M=x.getGutterRow(),D=u.$lines.get(M);if(D){var $=D.element.querySelector(".ace_gutter_annotation"),_=$.getBoundingClientRect(),S=p.getElement().style;S.left=_.right+"px",S.top=_.bottom+"px"}else k(x)}}function A(){y&&(y=clearTimeout(y)),p.isOpen&&(p.hideTooltip(),o.off("mousewheel",A))}function k(b){p.setPosition(b.x,b.y)}c.editor.setDefaultHandler("guttermousemove",function(b){var T=b.domEvent.target||b.domEvent.srcElement;if(w.hasCssClass(T,"ace_fold-widget"))return A();p.isOpen&&c.$tooltipFollowsMouse&&k(b),x=b,!y&&(y=setTimeout(function(){y=null,x&&!c.isMousePressed?R():A()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(b){x=null,!(!p.isOpen||y)&&(y=setTimeout(function(){y=null,A()},50))},o),o.on("changeSession",A),o.on("input",A)}i.GutterHandler=l;var s=function(c){f(o,c);function o(u){var p=c.call(this,u.container)||this;return p.editor=u,p}return o.prototype.setPosition=function(u,p){var y=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,R=this.getWidth(),A=this.getHeight();u+=15,p+=15,u+R>y&&(u-=u+R-y),p+A>x&&(p-=20+A),g.prototype.setPosition.call(this,u,p)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:a("gutter-tooltip.aria-label.error.singular","error"),plural:a("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:a("gutter-tooltip.aria-label.security.singular","security finding"),plural:a("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:a("gutter-tooltip.aria-label.warning.singular","warning"),plural:a("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:a("gutter-tooltip.aria-label.info.singular","information message"),plural:a("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:a("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:a("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(u){var p,y=this.editor.renderer.$gutterLayer,x=y.$annotations[u],R;x?R={displayText:Array.from(x.displayText),type:Array.from(x.type)}:R={displayText:[],type:[]};var A=y.session.getFoldLine(u);if(A&&y.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},T,E=u+1;E<=A.end.row;E++)if(y.$annotations[E])for(var I=0;I<y.$annotations[E].text.length;I++){var M=y.$annotations[E].type[I];k[M].push(y.$annotations[E].text[I]),(!T||b[M]<b[T])&&(T=M)}if(["error","security","warning"].includes(T)){var D="".concat(o.annotationsToSummaryString(k)," in folded code.");R.displayText.push(D),R.type.push(T+"_fold")}}if(R.displayText.length===0)return this.hide();for(var $={error:[],security:[],warning:[],info:[],hint:[]},_=y.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<R.displayText.length;E++){var S=w.createElement("span"),L=w.createElement("span");(p=L.classList).add.apply(p,["ace_".concat(R.type[E]),_]),L.setAttribute("aria-label","".concat(o.annotationLabels[R.type[E].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(w.createTextNode(" ")),S.appendChild(L),S.appendChild(w.createTextNode(R.displayText[E])),S.appendChild(w.createElement("br")),$[R.type[E].replace("_fold","")].push(S)}var O=this.getElement();w.removeChildren(O),$.error.forEach(function(F){return O.appendChild(F)}),$.security.forEach(function(F){return O.appendChild(F)}),$.warning.forEach(function(F){return O.appendChild(F)}),$.info.forEach(function(F){return O.appendChild(F)}),$.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 p,y,x=[],R=["error","security","warning","info","hint"];try{for(var A=v(R),k=A.next();!k.done;k=A.next()){var b=k.value;if(u[b].length){var T=u[b].length===1?o.annotationLabels[b].singular:o.annotationLabels[b].plural;x.push("".concat(u[b].length," ").concat(T))}}}catch(E){p={error:E}}finally{try{k&&!k.done&&(y=A.return)&&y.call(A)}finally{if(p)throw p.error}}return x.join(", ")},o}(g);i.GutterTooltip=s}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var f=e("../lib/event"),v=e("../lib/useragent"),w=function(){function h(g,a){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=a,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 h.prototype.stopPropagation=function(){f.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){f.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(g,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,a=g.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=a.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return f.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return v.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();i.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,i,m){var f=e("../lib/dom"),v=e("../lib/event"),w=e("../lib/useragent"),h=200,g=200,a=5;function l(c){var o=c.editor,u=f.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(G){c[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(c));var y=o.container,x,R,A,k,b,T,E=0,I,M,D,$,_;this.onDragStart=function(G){if(this.cancelDrag||!y.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}b=o.getSelectionRange();var ie=G.dataTransfer;ie.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),ie.setDragImage&&ie.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),ie.clearData(),ie.setData("Text",o.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(G){if(y.draggable=!1,M=!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 R=G.clientX,A=G.clientY,x||F(),E++,G.dataTransfer.dropEffect=I=X(G),v.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return R=G.clientX,A=G.clientY,x||(F(),E++),W!==null&&(W=null),G.dataTransfer.dropEffect=I=X(G),v.preventDefault(G)},this.onDragLeave=function(G){if(E--,E<=0&&x)return H(),I=null,v.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(M)switch(I){case"move":b.contains(T.row,T.column)?b={start:T,end:T}:b=o.moveText(b,T);break;case"copy":b=o.moveText(b,T,!0);break}else{var ie=Z.getData("Text");b={start:T,end:o.session.insert(T,ie)},o.focus(),I=null}return H(),v.preventDefault(G)}},v.addListener(y,"dragstart",this.onDragStart.bind(c),o),v.addListener(y,"dragend",this.onDragEnd.bind(c),o),v.addListener(y,"dragenter",this.onDragEnter.bind(c),o),v.addListener(y,"dragover",this.onDragOver.bind(c),o),v.addListener(y,"dragleave",this.onDragLeave.bind(c),o),v.addListener(y,"drop",this.onDrop.bind(c),o);function S(G,Z){var ie=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!$||J||ae)o.moveCursorToPosition(G),$=ie,_={x:R,y:A};else{var me=s(_.x,_.y,R,A);me>a?$=null:ie-$>=g&&(o.renderer.scrollCursorIntoView(),$=null)}}function L(G,Z){var ie=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),ye={x:{left:R-me.left,right:me.right-R},y:{top:A-me.top,bottom:me.bottom-A}},fe=Math.min(ye.x.left,ye.x.right),ke=Math.min(ye.y.top,ye.y.bottom),ot={row:G.row,column:G.column};fe/ae<=2&&(ot.column+=ye.x.left<ye.x.right?-3:2),ke/J<=1&&(ot.row+=ye.y.top<ye.y.bottom?-1:1);var Ft=G.row!=ot.row,ut=G.column!=ot.column,ft=!Z||G.row!=Z.row;Ft||ut&&!ft?D?ie-D>=h&&o.renderer.scrollCursorIntoView(ot):D=ie:D=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(R,A),S(T,G),L(T,G)}function F(){b=o.selection.toOrientedRange(),x=o.session.addMarker(b,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),O(),k=setInterval(O,20),E=0,v.addListener(document,"mousemove",V)}function H(){clearInterval(k),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(b),o.isFocused()&&!M&&o.$resetCursorStyle(),b=null,T=null,E=0,D=null,$=null,v.removeListener(document,"mousemove",V)}var W=null;function V(){W==null&&(W=setTimeout(function(){W!=null&&x&&H()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(ie){return ie=="text/plain"||ie=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],ie=["move","copymove","linkmove","all","uninitialized"],J=w.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":ie.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var 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=w.isWin?"default":"move";c.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(c){var o=this.editor.container;if(w.isIE&&this.state=="dragReady"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var o=this.editor,u=c.inSelection(),p=c.getButton(),y=c.domEvent.detail||1;if(y===1&&p===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(w.isWebKit){this.cancelDrag=!0;var R=o.container;R.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function s(c,o,u,p){return Math.sqrt(Math.pow(u-c,2)+Math.pow(p-o,2))}i.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,i,m){var f=e("./mouse_event").MouseEvent,v=e("../lib/event"),w=e("../lib/dom");i.addTouchListeners=function(h,g){var a="scroll",l,s,c,o,u,p,y=0,x,R=0,A=0,k=0,b,T;function E(){var S=window.navigator&&window.navigator.clipboard,L=!1,O=function(){var W=g.getCopyText(),V=g.session.getUndoManager().hasUndo();T.replaceChild(w.buildDom(L?["span",!W&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],S&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(W){return g.commands.canExecute(W,g)},H=function(W){var V=W.target.getAttribute("action");if(V=="more"||!L)return L=!L,O();V=="paste"?S.readText().then(function(q){g.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(S?S.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(V)),T.firstChild.style.display="none",L=!1,V!="openCommandPalette"&&g.focus()};T=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){a="menu",W.stopPropagation(),W.preventDefault(),g.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),H(W)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function I(){if(!g.getOption("enableMobileMenu")){T&&M();return}T||E();var S=g.selection.cursor,L=g.renderer.textToScreenCoordinates(S.row,S.column),O=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,H=g.container.getBoundingClientRect();T.style.top=L.pageY-H.top-3+"px",L.pageX-H.left<H.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-H.left+"px"),T.style.display="",T.firstChild.style.display="none",g.on("input",M)}function M(S){T&&(T.style.display="none"),g.off("input",M)}function D(){u=null,clearTimeout(u);var S=g.selection.getRange(),L=S.contains(x.row,x.column);(S.isEmpty()||!L)&&(g.selection.moveToPosition(x),g.selection.selectWord()),a="wait",I()}function $(){u=null,clearTimeout(u),g.selection.moveToPosition(x);var S=R>=2?g.selection.getLineRange(x.row):g.session.getBracketRange(x);S&&!S.isEmpty()?g.selection.setRange(S):g.selection.selectWord(),a="wait"}v.addListener(h,"contextmenu",function(S){if(b){var L=g.textInput.getElement();L.focus()}},g),v.addListener(h,"touchstart",function(S){var L=S.touches;if(u||L.length>1){clearTimeout(u),u=null,c=-1,a="zoom";return}b=g.$mouseHandler.isMousePressed=!0;var O=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,H=S.timeStamp;o=H;var W=L[0],V=W.clientX,q=W.clientY;Math.abs(l-V)+Math.abs(s-q)>O&&(c=-1),l=S.clientX=V,s=S.clientY=q,A=k=0;var X=new f(S,g);if(x=X.getDocumentPosition(),H-c<500&&L.length==1&&!y)R++,S.preventDefault(),S.button=0,$();else{R=0;var G=g.selection.cursor,Z=g.selection.isEmpty()?G:g.selection.anchor,ie=g.renderer.$cursorLayer.getPixelPosition(G,!0),J=g.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=g.renderer.scroller.getBoundingClientRect(),me=g.renderer.layerConfig.offset,ye=g.renderer.scrollLeft,fe=function(Ft,ut){return Ft=Ft/F,ut=ut/O-.75,Ft*Ft+ut*ut};if(S.clientX<ae.left){a="zoom";return}var ke=fe(S.clientX-ae.left-ie.left+ye,S.clientY-ae.top-ie.top+me),ot=fe(S.clientX-ae.left-J.left+ye,S.clientY-ae.top-J.top+me);ke<3.5&&ot<3.5&&(a=ke>ot?"cursor":"anchor"),ot<3.5?a="anchor":ke<3.5?a="cursor":a="scroll",u=setTimeout(D,450)}c=H},g),v.addListener(h,"touchend",function(S){b=g.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),a=="zoom"?(a="",y=0):u?(g.selection.moveToPosition(x),y=0,I()):a=="scroll"?(_(),M()):I(),clearTimeout(u),u=null},g),v.addListener(h,"touchmove",function(S){u&&(clearTimeout(u),u=null);var L=S.touches;if(!(L.length>1||a=="zoom")){var O=L[0],F=l-O.clientX,H=s-O.clientY;if(a=="wait")if(F*F+H*H>4)a="cursor";else return S.preventDefault();l=O.clientX,s=O.clientY,S.clientX=O.clientX,S.clientY=O.clientY;var W=S.timeStamp,V=W-o;if(o=W,a=="scroll"){var q=new f(S,g);q.speed=1,q.wheelX=F,q.wheelY=H,10*Math.abs(F)<Math.abs(H)&&(F=0),10*Math.abs(H)<Math.abs(F)&&(H=0),V!=0&&(A=F/V,k=H/V),g._emit("mousewheel",q),q.propagationStopped||(A=k=0)}else{var X=new f(S,g),G=X.getDocumentPosition();a=="cursor"?g.selection.moveCursorToPosition(G):a=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),S.preventDefault()}}},g);function _(){y+=60,p=setInterval(function(){y--<=0&&(clearInterval(p),p=null),Math.abs(A)<.01&&(A=0),Math.abs(k)<.01&&(k=0),y<20&&(A=.9*A),y<20&&(k=.9*k);var S=g.session.getScrollTop();g.renderer.scrollBy(10*A,10*k),S==g.session.getScrollTop()&&(y=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,i,m){var f=e("../lib/event"),v=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,g=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,s=e("../config"),c=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var p=this;this.editor=u,new w(this),new h(this),new a(this);var y=function(A){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},x=u.renderer.getMouseEventTarget();f.addListener(x,"click",this.onMouseEvent.bind(this,"click"),u),f.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),f.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),f.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),l(u.container,u);var R=u.renderer.$gutter;f.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),f.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),u),f.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),f.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),f.addListener(x,"mousedown",y,u),f.addListener(R,"mousedown",y,u),v.isIE&&u.renderer.scrollBarV&&(f.addListener(u.renderer.scrollBarV.element,"mousedown",y,u),f.addListener(u.renderer.scrollBarH.element,"mousedown",y,u)),u.on("mousemove",function(A){if(!(p.state||p.$dragDelay||!p.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(A.x,A.y),b=u.session.selection.getRange(),T=u.renderer;!b.isEmpty()&&b.insideStart(k.row,k.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,p){this.editor.session&&this.editor._emit(u,new g(p,this.editor))},o.prototype.onMouseMove=function(u,p){var y=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!y||!y.length||this.editor._emit(u,new g(p,this.editor))},o.prototype.onMouseWheel=function(u,p){var y=new g(p,this.editor);y.speed=this.$scrollSpeed*2,y.wheelX=p.wheelX,y.wheelY=p.wheelY,this.editor._emit(u,y)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,p){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var y=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var R=this,A=function(I){if(I){if(v.isWebKit&&!I.which&&R.releaseMouse)return R.releaseMouse();R.x=I.clientX,R.y=I.clientY,p&&p(I),R.mouseEvent=new g(I,R.editor),R.$mouseMoved=!0}},k=function(I){y.off("beforeEndOperation",T),clearInterval(E),y.session&&b(),R[R.state+"End"]&&R[R.state+"End"](I),R.state="",R.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,I&&R.onMouseEvent("mouseup",I),y.endOperation()},b=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1};if(v.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var T=function(I){R.releaseMouse&&y.curOp.command.name&&y.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};y.on("beforeEndOperation",T),y.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=A,R.releaseMouse=f.capture(this.editor.container,A,k);var E=setInterval(b,20)},o.prototype.cancelContextMenu=function(){var u=(function(p){p&&p.domEvent&&p.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),p&&p.domEvent&&f.stopEvent(p.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();c.prototype.releaseMouse=null,s.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:v.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,i,m){var f=e("../lib/dom"),v=function(){function w(h){h.on("click",function(g){var a=g.getDocumentPosition(),l=h.session,s=l.getFoldAt(a.row,a.column,1);s&&(g.getAccelKey()?l.removeFold(s):l.expandFold(s),g.stop());var c=g.domEvent&&g.domEvent.target;c&&f.hasCssClass(c,"ace_inline_button")&&f.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(g){var a=h.renderer.$gutterLayer.getRegion(g);if(a=="foldWidgets"){var l=g.getDocumentPosition().row,s=h.session;s.foldWidgets&&s.foldWidgets[l]&&h.session.onFoldWidgetClick(l,g),h.isFocused()||h.focus(),g.stop()}}),h.on("gutterdblclick",function(g){var a=h.renderer.$gutterLayer.getRegion(g);if(a=="foldWidgets"){var l=g.getDocumentPosition().row,s=h.session,c=s.getParentFoldRangeData(l,!0),o=c.range||c.firstRange;if(o){l=o.start.row;var u=s.getFoldAt(l,s.getLine(l).length,1);u?s.removeFold(u):(s.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return w}();i.FoldHandler=v}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,i,m){var f=e("../lib/keys"),v=e("../lib/event"),w=function(){function h(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return h.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},h.prototype.setKeyboardHandler=function(g){var a=this.$handlers;if(a[a.length-1]!=g){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(g,1)}},h.prototype.addKeyboardHandler=function(g,a){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var l=this.$handlers.indexOf(g);l!=-1&&this.$handlers.splice(l,1),a==null?this.$handlers.push(g):this.$handlers.splice(a,0,g),l==-1&&g.attach&&g.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(g){var a=this.$handlers.indexOf(g);return a==-1?!1:(this.$handlers.splice(a,1),g.detach&&g.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var g=this.$data,a=g.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(a,g)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(g,a,l,s){for(var c,o=!1,u=this.$editor.commands,p=this.$handlers.length;p--&&(c=this.$handlers[p].handleKeyboard(this.$data,g,a,l,s),!(!(!c||!c.command)&&(c.command=="null"?o=!0:o=u.exec(c.command,this.$editor,c.args,s),o&&s&&g!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&v.stopEvent(s),o))););return!o&&g==-1&&(c={command:"insertstring"},o=u.exec("insertstring",this.$editor,a)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),o},h.prototype.onCommandKey=function(g,a,l){var s=f.keyCodeToString(l);return this.$callKeyboardHandlers(a,s,l,g)},h.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},h}();i.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,i,m){var f=0,v=0,w=!1,h=!1,g=!1,a=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],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]],s=0,c=1,o=0,u=1,p=2,y=3,x=4,R=5,A=6,k=7,b=8,T=9,E=10,I=11,M=12,D=13,$=14,_=15,S=16,L=17,O=18,F=[O,O,O,O,O,O,O,O,O,A,R,A,b,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,R,R,R,A,b,x,x,I,I,I,x,x,x,x,x,E,T,E,T,T,p,p,p,p,p,p,p,p,p,p,T,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,O,O,O,O,O,O,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,x,I,I,I,I,x,x,x,x,o,x,x,O,x,x,I,I,p,p,x,o,x,x,x,p,o,x,x,x,x,x],H=[b,b,b,b,b,b,b,b,b,b,b,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,b,R,D,$,_,S,L,T,I,I,I,I,I,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,T,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,b];function W(G,Z,ie,J){var ae=f?l:a,me=null,ye=null,fe=null,ke=0,ot=null,Ft=null,ut=-1,ft=null,ln=null,It=[];if(!J)for(ft=0,J=[];ft<ie;ft++)J[ft]=X(G[ft]);for(v=f,w=!1,h=!1,g=!1,ln=0;ln<ie;ln++){if(me=ke,It[ln]=ye=q(G,J,It,ln),ke=ae[me][ye],ot=ke&240,ke&=15,Z[ln]=fe=ae[ke][5],ot>0)if(ot==16){for(ft=ut;ft<ln;ft++)Z[ft]=1;ut=-1}else ut=-1;if(Ft=ae[ke][6],Ft)ut==-1&&(ut=ln);else if(ut>-1){for(ft=ut;ft<ln;ft++)Z[ft]=fe;ut=-1}J[ln]==R&&(Z[ln]=0),v|=fe}if(g){for(ft=0;ft<ie;ft++)if(J[ft]==A){Z[ft]=f;for(var Gt=ft-1;Gt>=0&&J[Gt]==b;Gt--)Z[Gt]=f}}}function V(G,Z,ie){if(!(v<G)){if(G==1&&f==c&&!h){ie.reverse();return}for(var J=ie.length,ae=0,me,ye,fe,ke;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(ye=ae,fe=me-1;ye<fe;ye++,fe--)ke=ie[ye],ie[ye]=ie[fe],ie[fe]=ke;ae=me}ae++}}}function q(G,Z,ie,J){var ae=Z[J],me,ye,fe,ke;switch(ae){case o:case u:w=!1;case x:case y:return ae;case p:return w?y:p;case k:return w=!0,u;case b:return x;case T:return J<1||J+1>=Z.length||(me=ie[J-1])!=p&&me!=y||(ye=Z[J+1])!=p&&ye!=y?x:(w&&(ye=y),ye==me?ye:x);case E:return me=J>0?ie[J-1]:R,me==p&&J+1<Z.length&&Z[J+1]==p?p:x;case I:if(J>0&&ie[J-1]==p)return p;if(w)return x;for(ke=J+1,fe=Z.length;ke<fe&&Z[ke]==I;)ke++;return ke<fe&&Z[ke]==p?p:x;case M:for(fe=Z.length,ke=J+1;ke<fe&&Z[ke]==M;)ke++;if(ke<fe){var ot=G[J],Ft=ot>=1425&&ot<=2303||ot==64286;if(me=Z[ke],Ft&&(me==u||me==k))return u}return J<1||(me=Z[J-1])==R?x:ie[J-1];case R:return w=!1,h=!0,f;case A:return g=!0,x;case D:case $:case S:case L:case _:w=!1;case O:return x}}function X(G){var Z=G.charCodeAt(0),ie=Z>>8;return ie==0?Z>191?o:F[Z]:ie==5?/[\u0591-\u05f4]/.test(G)?u:o:ie==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?M:/[\u0660-\u0669\u066b-\u066c]/.test(G)?y:Z==1642?I:/[\u06f0-\u06f9]/.test(G)?p:k:ie==32&&Z<=8287?H[Z&255]:ie==254&&Z>=65136?k:x}i.L=o,i.R=u,i.EN=p,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(G,Z,ie){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),ye=[];f=ie?c:s,W(J,ye,J.length,Z);for(var fe=0;fe<ae.length;ae[fe]=fe,fe++);V(2,ye,ae),V(1,ye,ae);for(var fe=0;fe<ae.length-1;fe++)Z[fe]===y?ye[fe]=i.AN:ye[fe]===u&&(Z[fe]>k&&Z[fe]<D||Z[fe]===x||Z[fe]===O)?ye[fe]=i.ON_R:fe>0&&J[fe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[fe])&&(ye[fe-1]=ye[fe]=i.R_H,fe++);J[J.length-1]===i.DOT&&(ye[J.length-1]=i.B),J[0]==="‫"&&(ye[0]=i.RLE);for(var fe=0;fe<ae.length;fe++)me[fe]=ye[ae[fe]];return{logicalFromVisual:ae,bidiLevels:me}},i.hasBidiCharacters=function(G,Z){for(var ie=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!ie&&(Z[J]==u||Z[J]==k||Z[J]==y)&&(ie=!0);return ie},i.getVisualFromLogicalIdx=function(G,Z){for(var ie=0;ie<Z.logicalFromVisual.length;ie++)if(Z.logicalFromVisual[ie]==G)return ie;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,i,m){var f=e("./lib/bidiutil"),v=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function g(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=f,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(a.getValue())}return g.prototype.isBidiRow=function(a,l,s){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(l,s),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&w.test(a.lines.join(`
175
+ `;Bt!=L&&(T.value=L=Bt,O=F=Bt.length)}if(me&&(O=T.selectionStart,F=T.selectionEnd),F!=Te||O!=ce||T.selectionEnd!=F)try{T.setSelectionRange(ce,Te),O=ce,F=Te}catch{}M=!1}};this.resetSelection=Z,X&&b.onFocus();var ie=function(ce){return ce.selectionStart===0&&ce.selectionEnd>=L.length&&ce.value===L&&L&&ce.selectionEnd!==F},J=function(ce){M||(E?E=!1:ie(T)?(b.selectAll(),Z()):R&&T.selectionStart!=O&&Z())},ae=null;this.setInputHandler=function(ce){ae=ce},this.getInputHandler=function(){return ae};var me=!1,ye=function(ce,Te){if(me&&(me=!1),I)return Z(),ce&&b.onPaste(ce),I=!1,"";for(var Re=T.selectionStart,qe=T.selectionEnd,Ye=O,dt=L.length-F,pt=ce,lt=ce.length-Re,ct=ce.length-qe,nt=0;Ye>0&&L[nt]==ce[nt];)nt++,Ye--;for(pt=pt.slice(nt),nt=1;dt>0&&L.length-nt>O-1&&L[L.length-nt]==ce[ce.length-nt];)nt++,dt--;lt-=nt-1,ct-=nt-1;var Bt=pt.length-nt+1;if(Bt<0&&(Ye=-Bt,Bt=0),pt=pt.slice(0,Bt),!Te&&!pt&&!lt&&!Ye&&!dt&&!ct)return"";D=!0;var Pn=!1;return w.isAndroid&&pt==". "&&(pt=" ",Pn=!0),pt&&!Ye&&!dt&&!lt&&!ct||_?b.onTextInput(pt):b.onTextInput(pt,{extendLeft:Ye,extendRight:dt,restoreStart:lt,restoreEnd:ct}),D=!1,L=ce,O=Re,F=qe,H=ct,Pn?`
176
+ `:pt},fe=function(ce){if(M)return It();if(ce&&ce.inputType){if(ce.inputType=="historyUndo")return b.execCommand("undo");if(ce.inputType=="historyRedo")return b.execCommand("redo")}var Te=T.value,Re=ye(Te,!0);(Te.length>o+100||x.test(Re)||R&&O<1&&O==F)&&Z()},ke=function(ce,Te,Re){var qe=ce.clipboardData||window.clipboardData;if(!(!qe||l)){var Ye=s||Re?"Text":"text/plain";try{return Te?qe.setData(Ye,Te)!==!1:qe.getData(Ye)}catch(dt){if(!Re)return ke(dt,Te,!0)}}},ot=function(ce,Te){var Re=b.getCopyText();if(!Re)return f.preventDefault(ce);ke(ce,Re)?(y&&(Z(Re),E=Re,setTimeout(function(){E=!1},10)),Te?b.onCut():b.onCopy(),f.preventDefault(ce)):(E=!0,T.value=Re,T.select(),setTimeout(function(){E=!1,Z(),Te?b.onCut():b.onCopy()}))},Ft=function(ce){ot(ce,!0)},ht=function(ce){ot(ce,!1)},ft=function(ce){var Te=ke(ce);a.pasteCancelled()||(typeof Te=="string"?(Te&&b.onPaste(Te,ce),w.isIE&&setTimeout(Z),f.preventDefault(ce)):(T.value="",I=!0))};f.addCommandKeyListener(T,function(ce,Te,Re){if(!M)return b.onCommandKey(ce,Te,Re)},b),f.addListener(T,"select",J,b),f.addListener(T,"input",fe,b),f.addListener(T,"cut",Ft,b),f.addListener(T,"copy",ht,b),f.addListener(T,"paste",ft,b),(!("oncut"in T)||!("oncopy"in T)||!("onpaste"in T))&&f.addListener(k,"keydown",function(ce){if(!(w.isMac&&!ce.metaKey||!ce.ctrlKey))switch(ce.keyCode){case 67:ht(ce);break;case 86:ft(ce);break;case 88:Ft(ce);break}},b);var ln=function(ce){if(!(M||!b.onCompositionStart||b.$readOnly)&&(M={},!_)){ce.data&&(M.useTextareaForIME=!1),setTimeout(It,0),b._signal("compositionStart"),b.on("mousedown",qi);var Te=b.getSelectionRange();Te.end.row=Te.start.row,Te.end.column=Te.start.column,M.markerRange=Te,M.selectionStart=O,b.onCompositionStart(M),M.useTextareaForIME?(L=T.value="",O=0,F=0):(T.msGetInputContext&&(M.context=T.msGetInputContext()),T.getInputContext&&(M.context=T.getInputContext()))}},It=function(){if(!(!M||!b.onCompositionUpdate||b.$readOnly)){if(_)return qi();if(M.useTextareaForIME)b.onCompositionUpdate(T.value);else{var ce=T.value;ye(ce),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+F-M.selectionStart+H)}}},Gt=function(ce){!b.onCompositionEnd||b.$readOnly||(M=!1,b.onCompositionEnd(),b.off("mousedown",qi),ce&&fe())};function qi(){S=!0,T.blur(),T.focus(),S=!1}var _n=g.delayedCall(It,50).schedule.bind(null,null);function Xt(ce){ce.keyCode==27&&T.value.length<T.selectionStart&&(M||(L=T.value),O=F=-1,Z()),_n()}f.addListener(T,"compositionstart",ln,b),f.addListener(T,"compositionupdate",It,b),f.addListener(T,"keyup",Xt,b),f.addListener(T,"keydown",_n,b),f.addListener(T,"compositionend",Gt,b),this.getElement=function(){return T},this.setCommandMode=function(ce){_=ce,T.readOnly=!1},this.setReadOnly=function(ce){_||(T.readOnly=ce)},this.setCopyWithEmptySelection=function(ce){},this.onContextMenu=function(ce){me=!0,Z(),b._emit("nativecontextmenu",{target:b,domEvent:ce}),this.moveToMouse(ce,!0)},this.moveToMouse=function(ce,Te){$||($=T.style.cssText),T.style.cssText=(Te?"z-index:100000;":"")+(w.isIE?"opacity:0.1;":"")+"text-indent: -"+(O+F)*b.renderer.characterWidth*.5+"px;";var Re=b.container.getBoundingClientRect(),qe=h.computedStyle(b.container),Ye=Re.top+(parseInt(qe.borderTopWidth)||0),dt=Re.left+(parseInt(Re.borderLeftWidth)||0),pt=Re.bottom-Ye-T.clientHeight-2,lt=function(ct){h.translate(T,ct.clientX-dt-2,Math.min(ct.clientY-Ye-2,pt))};lt(ce),ce.type=="mousedown"&&(b.renderer.$isMousePressed=!0,clearTimeout(Pe),w.isWin&&f.capture(b.container,lt,Be))},this.onContextMenuClose=Be;var Pe;function Be(){clearTimeout(Pe),Pe=setTimeout(function(){$&&(T.style.cssText=$,$=""),b.renderer.$isMousePressed=!1,b.renderer.$keepTextAreaAtCursor&&b.renderer.$moveTextAreaToCursor()},0)}var en=function(ce){b.textInput.onContextMenu(ce),Be()};f.addListener(T,"mouseup",en,b),f.addListener(T,"mousedown",function(ce){ce.preventDefault(),Be()},b),f.addListener(b.renderer.scroller,"contextmenu",en,b),f.addListener(T,"contextmenu",en,b),y&&We(k,b,T);function We(ce,Te,Re){var qe=null,Ye=!1;Re.addEventListener("keydown",function(pt){qe&&clearTimeout(qe),Ye=!0},!0),Re.addEventListener("keyup",function(pt){qe=setTimeout(function(){Ye=!1},100)},!0);var dt=function(pt){if(document.activeElement===Re&&!(Ye||M||Te.$mouseHandler.isMousePressed)&&!E){var lt=Re.selectionStart,ct=Re.selectionEnd,nt=null,Bt=0;if(lt==0?nt=u.up:lt==1?nt=u.home:ct>F&&L[ct]==`
177
+ `?nt=u.end:lt<O&&L[lt-1]==" "?(nt=u.left,Bt=p.option):lt<O||lt==O&&F!=O&&lt==ct?nt=u.left:ct>F&&L.slice(0,ct).split(`
178
+ `).length>2?nt=u.down:ct>F&&L[ct-1]==" "?(nt=u.right,Bt=p.option):(ct>F||ct==F&&F!=O&&lt==ct)&&(nt=u.right),lt!==ct&&(Bt|=p.shift),nt){var Pn=Te.onCommandKey({},Bt,nt);if(!Pn&&Te.commands){nt=u.keyCodeToString(nt);var sr=Te.commands.findKeyCommand(Bt,nt);sr&&Te.execCommand(sr)}O=lt,F=ct,Z("")}}};document.addEventListener("selectionchange",dt),Te.on("destroy",function(){document.removeEventListener("selectionchange",dt)})}this.destroy=function(){T.parentElement&&T.parentElement.removeChild(T)}},i.TextInput=A,i.$setUserAgentForTests=function(k,b){R=k,y=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,i,m){var f=e("../lib/useragent"),v=0,w=550,h=function(){function l(s){s.$clickSelection=null;var c=s.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(s)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(s)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(s)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(s)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(s));var o=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];o.forEach(function(u){s[u]=this[u]},this),s.selectByLines=this.extendSelectionBy.bind(s,"getLineRange"),s.selectByWords=this.extendSelectionBy.bind(s,"getWordRange")}return l.prototype.onMouseDown=function(s){var c=s.inSelection(),o=s.getDocumentPosition();this.mousedownEvent=s;var u=this.editor,p=s.getButton();if(p!==0){var y=u.getSelectionRange(),x=y.isEmpty();(x||p==1)&&u.selection.moveToPosition(o),p==2&&(u.textInput.onContextMenu(s.domEvent),f.isMozilla||s.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!u.isFocused()&&(u.focus(),this.$focusTimeout&&!this.$clickSelection&&!u.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(s);return}return this.captureMouse(s),this.startSelect(o,s.domEvent._clicks>1),s.preventDefault()},l.prototype.startSelect=function(s,c){s=s||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var o=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?o.selection.selectToPosition(s):c||o.selection.moveToPosition(s),c||this.select(),o.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var s,c=this.editor,o=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var u=this.$clickSelection.comparePoint(o);if(u==-1)s=this.$clickSelection.end;else if(u==1)s=this.$clickSelection.start;else{var p=a(this.$clickSelection,o);o=p.cursor,s=p.anchor}c.selection.setSelectionAnchor(s.row,s.column)}c.selection.selectToPosition(o),c.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(s){var c,o=this.editor,u=o.renderer.screenToTextCoordinates(this.x,this.y),p=o.selection[s](u.row,u.column);if(this.$clickSelection){var y=this.$clickSelection.comparePoint(p.start),x=this.$clickSelection.comparePoint(p.end);if(y==-1&&x<=0)c=this.$clickSelection.end,(p.end.row!=u.row||p.end.column!=u.column)&&(u=p.start);else if(x==1&&y>=0)c=this.$clickSelection.start,(p.start.row!=u.row||p.start.column!=u.column)&&(u=p.end);else if(y==-1&&x==1)u=p.end,c=p.start;else{var R=a(this.$clickSelection,u);u=R.cursor,c=R.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 s=g(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(s>v||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(s){var c=s.getDocumentPosition(),o=this.editor,u=o.session,p=u.getBracketRange(c);p?(p.isEmpty()&&(p.start.column--,p.end.column++),this.setState("select")):(p=o.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=p,this.select()},l.prototype.onTripleClick=function(s){var c=s.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(s){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(s){if(!s.getAccelKey()){s.getShiftKey()&&s.wheelY&&!s.wheelX&&(s.wheelX=s.wheelY,s.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var o=this.$lastScroll,u=s.domEvent.timeStamp,p=u-o.t,y=p?s.wheelX/p:o.vx,x=p?s.wheelY/p:o.vy;p<w&&(y=(y+o.vx)/2,x=(x+o.vy)/2);var R=Math.abs(y/x),A=!1;if(R>=1&&c.renderer.isScrollableBy(s.wheelX*s.speed,0)&&(A=!0),R<=1&&c.renderer.isScrollableBy(0,s.wheelY*s.speed)&&(A=!0),A)o.allowed=u;else if(u-o.allowed<w){var k=Math.abs(y)<=1.5*Math.abs(o.vx)&&Math.abs(x)<=1.5*Math.abs(o.vy);k?(A=!0,o.allowed=u):o.allowed=0}if(o.t=u,o.vx=y,o.vy=x,A)return c.renderer.scrollBy(s.wheelX*s.speed,s.wheelY*s.speed),s.stop()}},l}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,i.DefaultHandlers=h;function g(l,s,c,o){return Math.sqrt(Math.pow(c-l,2)+Math.pow(o-s,2))}function a(l,s){if(l.start.row==l.end.row)var c=2*s.column-l.start.column-l.end.column;else if(l.start.row==l.end.row-1&&!l.start.column&&!l.end.column)var c=s.column-4;else var c=2*s.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(e,i,m){i.preventParentScroll=function(f){f.stopPropagation();var v=f.currentTarget,w=v.scrollHeight>v.clientHeight;w||f.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,i,m){var f=this&&this.__extends||function(){var u=function(p,y){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,R){x.__proto__=R}||function(x,R){for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&(x[A]=R[A])},u(p,y)};return function(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");u(p,y);function x(){this.constructor=p}p.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}(),v=this&&this.__values||function(u){var p=typeof Symbol=="function"&&Symbol.iterator,y=p&&u[p],x=0;if(y)return y.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&x>=u.length&&(u=void 0),{value:u&&u[x++],done:!u}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("./lib/dom");e("./lib/event");var h=e("./range").Range,g=e("./lib/scroll").preventParentScroll,a="ace_tooltip",l=function(){function u(p){this.isOpen=!1,this.$element=null,this.$parentNode=p}return u.prototype.$init=function(){return this.$element=w.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(p){this.getElement().textContent=p},u.prototype.setHtml=function(p){this.getElement().innerHTML=p},u.prototype.setPosition=function(p,y){this.getElement().style.left=p+"px",this.getElement().style.top=y+"px"},u.prototype.setClassName=function(p){w.addCssClass(this.getElement(),p)},u.prototype.setTheme=function(p){this.$element.className=a+" "+(p.isDark?"ace_dark ":"")+(p.cssClass||"")},u.prototype.show=function(p,y,x){p!=null&&this.setText(p),y!=null&&x!=null&&this.setPosition(y,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(p){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),s=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(p){this.popups.push(p),this.updatePopups()},u.prototype.removePopup=function(p){var y=this.popups.indexOf(p);y!==-1&&(this.popups.splice(y,1),this.updatePopups())},u.prototype.updatePopups=function(){var p,y,x,R;this.popups.sort(function($,_){return _.priority-$.priority});var A=[];try{for(var k=v(this.popups),b=k.next();!b.done;b=k.next()){var T=b.value,E=!0;try{for(var I=(x=void 0,v(A)),M=I.next();!M.done;M=I.next()){var D=M.value;if(this.doPopupsOverlap(D,T)){E=!1;break}}}catch($){x={error:$}}finally{try{M&&!M.done&&(R=I.return)&&R.call(I)}finally{if(x)throw x.error}}E?A.push(T):T.hide()}}catch($){p={error:$}}finally{try{b&&!b.done&&(y=k.return)&&y.call(k)}finally{if(p)throw p.error}}},u.prototype.doPopupsOverlap=function(p,y){var x=p.getElement().getBoundingClientRect(),R=y.getElement().getBoundingClientRect();return x.left<R.right&&x.right>R.left&&x.top<R.bottom&&x.bottom>R.top},u}(),c=new s;i.popupManager=c,i.Tooltip=l;var o=function(u){f(p,u);function p(y){y===void 0&&(y=document.body);var x=u.call(this,y)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var R=x.getElement();return R.style.whiteSpace="pre-wrap",R.style.pointerEvents="auto",R.addEventListener("mouseout",x.onMouseOut),R.tabIndex=-1,R.addEventListener("blur",(function(){R.contains(document.activeElement)||this.hide()}).bind(x)),R.addEventListener("wheel",g),x}return p.prototype.addToEditor=function(y){y.on("mousemove",this.onMouseMove),y.on("mousedown",this.hide),y.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},p.prototype.removeFromEditor=function(y){y.off("mousemove",this.onMouseMove),y.off("mousedown",this.hide),y.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.onMouseMove=function(y,x){this.lastEvent=y,this.lastT=Date.now();var R=x.$mouseHandler.isMousePressed;if(this.isOpen){var A=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(A.row,A.column)||R||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||R||(this.lastEvent=y,this.timeout=setTimeout(this.waitForHover,this.idleTime))},p.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var y=Date.now()-this.lastT;if(this.idleTime-y>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-y);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},p.prototype.isOutsideOfText=function(y){var x=y.editor,R=y.getDocumentPosition(),A=x.session.getLine(R.row);if(R.column==A.length){var k=x.renderer.pixelToScreenCoordinates(y.clientX,y.clientY),b=x.session.documentToScreenPosition(R.row,R.column);if(b.column!=k.column||b.row!=k.row)return!0}return!1},p.prototype.setDataProvider=function(y){this.$gatherData=y},p.prototype.showForRange=function(y,x,R,A){var k=10;if(!(A&&A!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=y.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(x,y.session),this.range=h.fromPoints(x.start,x.end);var T=b.textToScreenCoordinates(x.start.row,x.start.column),E=b.scroller.getBoundingClientRect();T.pageX<E.left&&(T.pageX=E.left);var I=this.getElement();I.innerHTML="",I.appendChild(R),I.style.maxHeight="",I.style.display="block";var M=I.clientHeight,D=I.clientWidth,$=window.innerHeight-T.pageY-b.lineHeight,_=!0;T.pageY-M<0&&T.pageY<$&&(_=!1),I.style.maxHeight=(_?T.pageY:$)-k+"px",I.style.top=_?"":T.pageY+b.lineHeight+"px",I.style.bottom=_?window.innerHeight-T.pageY+"px":"",I.style.left=Math.min(T.pageX,window.innerWidth-D-k)+"px"}},p.prototype.addMarker=function(y,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(y,"ace_highlight-marker","text")},p.prototype.hide=function(y){!y&&document.activeElement==this.getElement()||y&&y.target&&(y.type!="keydown"||y.ctrlKey||y.metaKey)&&this.$element.contains(y.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},p.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},p.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},p.prototype.onMouseOut=function(y){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!y.relatedTarget||this.getElement().contains(y.relatedTarget)||y&&y.currentTarget.contains(y.relatedTarget)||y.relatedTarget.classList.contains("ace_content")||this.hide())},p}(l);i.HoverTooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config","ace/lib/lang"],function(e,i,m){var f=this&&this.__extends||function(){var c=function(o,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,y){p.__proto__=y}||function(p,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(p[x]=y[x])},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 p(){this.constructor=o}o.prototype=u===null?Object.create(u):(p.prototype=u.prototype,new p)}}(),v=this&&this.__values||function(c){var o=typeof Symbol=="function"&&Symbol.iterator,u=o&&c[o],p=0;if(u)return u.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&p>=c.length&&(c=void 0),{value:c&&c[p++],done:!c}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},w=e("../lib/dom"),h=e("../lib/event"),g=e("../tooltip").Tooltip,a=e("../config").nls;e("../lib/lang");function l(c){var o=c.editor,u=o.renderer.$gutterLayer,p=new s(o);c.editor.setDefaultHandler("guttermousedown",function(b){if(!(!o.isFocused()||b.getButton()!=0)){var T=u.getRegion(b);if(T!="foldWidgets"){var E=b.getDocumentPosition().row,I=o.session.selection;if(b.getShiftKey())I.selectTo(E,0);else{if(b.domEvent.detail==2)return o.selectAll(),b.preventDefault();c.$clickSelection=o.selection.getLineRange(E)}return c.setState("selectByLines"),c.captureMouse(b),b.preventDefault()}}});var y,x;function R(){var b=x.getDocumentPosition().row,T=o.session.getLength();if(b==T){var E=o.renderer.pixelToScreenCoordinates(0,x.y).row,I=x.$pos;if(E>o.session.documentToScreenRow(I.row,I.column))return A()}if(p.showTooltip(b),!!p.isOpen)if(o.on("mousewheel",A),c.$tooltipFollowsMouse)k(x);else{var M=x.getGutterRow(),D=u.$lines.get(M);if(D){var $=D.element.querySelector(".ace_gutter_annotation"),_=$.getBoundingClientRect(),S=p.getElement().style;S.left=_.right+"px",S.top=_.bottom+"px"}else k(x)}}function A(){y&&(y=clearTimeout(y)),p.isOpen&&(p.hideTooltip(),o.off("mousewheel",A))}function k(b){p.setPosition(b.x,b.y)}c.editor.setDefaultHandler("guttermousemove",function(b){var T=b.domEvent.target||b.domEvent.srcElement;if(w.hasCssClass(T,"ace_fold-widget"))return A();p.isOpen&&c.$tooltipFollowsMouse&&k(b),x=b,!y&&(y=setTimeout(function(){y=null,x&&!c.isMousePressed?R():A()},50))}),h.addListener(o.renderer.$gutter,"mouseout",function(b){x=null,!(!p.isOpen||y)&&(y=setTimeout(function(){y=null,A()},50))},o),o.on("changeSession",A),o.on("input",A)}i.GutterHandler=l;var s=function(c){f(o,c);function o(u){var p=c.call(this,u.container)||this;return p.editor=u,p}return o.prototype.setPosition=function(u,p){var y=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,R=this.getWidth(),A=this.getHeight();u+=15,p+=15,u+R>y&&(u-=u+R-y),p+A>x&&(p-=20+A),g.prototype.setPosition.call(this,u,p)},Object.defineProperty(o,"annotationLabels",{get:function(){return{error:{singular:a("gutter-tooltip.aria-label.error.singular","error"),plural:a("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:a("gutter-tooltip.aria-label.security.singular","security finding"),plural:a("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:a("gutter-tooltip.aria-label.warning.singular","warning"),plural:a("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:a("gutter-tooltip.aria-label.info.singular","information message"),plural:a("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:a("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:a("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),o.prototype.showTooltip=function(u){var p,y=this.editor.renderer.$gutterLayer,x=y.$annotations[u],R;x?R={displayText:Array.from(x.displayText),type:Array.from(x.type)}:R={displayText:[],type:[]};var A=y.session.getFoldLine(u);if(A&&y.$showFoldedAnnotations){for(var k={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},T,E=u+1;E<=A.end.row;E++)if(y.$annotations[E])for(var I=0;I<y.$annotations[E].text.length;I++){var M=y.$annotations[E].type[I];k[M].push(y.$annotations[E].text[I]),(!T||b[M]<b[T])&&(T=M)}if(["error","security","warning"].includes(T)){var D="".concat(o.annotationsToSummaryString(k)," in folded code.");R.displayText.push(D),R.type.push(T+"_fold")}}if(R.displayText.length===0)return this.hide();for(var $={error:[],security:[],warning:[],info:[],hint:[]},_=y.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",E=0;E<R.displayText.length;E++){var S=w.createElement("span"),L=w.createElement("span");(p=L.classList).add.apply(p,["ace_".concat(R.type[E]),_]),L.setAttribute("aria-label","".concat(o.annotationLabels[R.type[E].replace("_fold","")].singular)),L.setAttribute("role","img"),L.appendChild(w.createTextNode(" ")),S.appendChild(L),S.appendChild(w.createTextNode(R.displayText[E])),S.appendChild(w.createElement("br")),$[R.type[E].replace("_fold","")].push(S)}var O=this.getElement();w.removeChildren(O),$.error.forEach(function(F){return O.appendChild(F)}),$.security.forEach(function(F){return O.appendChild(F)}),$.warning.forEach(function(F){return O.appendChild(F)}),$.info.forEach(function(F){return O.appendChild(F)}),$.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 p,y,x=[],R=["error","security","warning","info","hint"];try{for(var A=v(R),k=A.next();!k.done;k=A.next()){var b=k.value;if(u[b].length){var T=u[b].length===1?o.annotationLabels[b].singular:o.annotationLabels[b].plural;x.push("".concat(u[b].length," ").concat(T))}}}catch(E){p={error:E}}finally{try{k&&!k.done&&(y=A.return)&&y.call(A)}finally{if(p)throw p.error}}return x.join(", ")},o}(g);i.GutterTooltip=s}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,i,m){var f=e("../lib/event"),v=e("../lib/useragent"),w=function(){function h(g,a){this.speed,this.wheelX,this.wheelY,this.domEvent=g,this.editor=a,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 h.prototype.stopPropagation=function(){f.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){f.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var g=this.getDocumentPosition().row,a=this.editor.session.documentToScreenRow(g,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return a-l},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var g=this.editor,a=g.getSelectionRange();if(a.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=a.contains(l.row,l.column)}return this.$inSelection},h.prototype.getButton=function(){return f.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return v.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();i.MouseEvent=w}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,i,m){var f=e("../lib/dom"),v=e("../lib/event"),w=e("../lib/useragent"),h=200,g=200,a=5;function l(c){var o=c.editor,u=f.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent=" ";var p=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];p.forEach(function(G){c[G]=this[G]},this),o.on("mousedown",this.onMouseDown.bind(c));var y=o.container,x,R,A,k,b,T,E=0,I,M,D,$,_;this.onDragStart=function(G){if(this.cancelDrag||!y.draggable){var Z=this;return setTimeout(function(){Z.startSelect(),Z.captureMouse(G)},0),G.preventDefault()}b=o.getSelectionRange();var ie=G.dataTransfer;ie.effectAllowed=o.getReadOnly()?"copy":"copyMove",o.container.appendChild(u),ie.setDragImage&&ie.setDragImage(u,0,0),setTimeout(function(){o.container.removeChild(u)}),ie.clearData(),ie.setData("Text",o.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(G){if(y.draggable=!1,M=!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 R=G.clientX,A=G.clientY,x||F(),E++,G.dataTransfer.dropEffect=I=X(G),v.preventDefault(G)},this.onDragOver=function(G){if(!(o.getReadOnly()||!q(G.dataTransfer)))return R=G.clientX,A=G.clientY,x||(F(),E++),W!==null&&(W=null),G.dataTransfer.dropEffect=I=X(G),v.preventDefault(G)},this.onDragLeave=function(G){if(E--,E<=0&&x)return H(),I=null,v.preventDefault(G)},this.onDrop=function(G){if(T){var Z=G.dataTransfer;if(M)switch(I){case"move":b.contains(T.row,T.column)?b={start:T,end:T}:b=o.moveText(b,T);break;case"copy":b=o.moveText(b,T,!0);break}else{var ie=Z.getData("Text");b={start:T,end:o.session.insert(T,ie)},o.focus(),I=null}return H(),v.preventDefault(G)}},v.addListener(y,"dragstart",this.onDragStart.bind(c),o),v.addListener(y,"dragend",this.onDragEnd.bind(c),o),v.addListener(y,"dragenter",this.onDragEnter.bind(c),o),v.addListener(y,"dragover",this.onDragOver.bind(c),o),v.addListener(y,"dragleave",this.onDragLeave.bind(c),o),v.addListener(y,"drop",this.onDrop.bind(c),o);function S(G,Z){var ie=Date.now(),J=!Z||G.row!=Z.row,ae=!Z||G.column!=Z.column;if(!$||J||ae)o.moveCursorToPosition(G),$=ie,_={x:R,y:A};else{var me=s(_.x,_.y,R,A);me>a?$=null:ie-$>=g&&(o.renderer.scrollCursorIntoView(),$=null)}}function L(G,Z){var ie=Date.now(),J=o.renderer.layerConfig.lineHeight,ae=o.renderer.layerConfig.characterWidth,me=o.renderer.scroller.getBoundingClientRect(),ye={x:{left:R-me.left,right:me.right-R},y:{top:A-me.top,bottom:me.bottom-A}},fe=Math.min(ye.x.left,ye.x.right),ke=Math.min(ye.y.top,ye.y.bottom),ot={row:G.row,column:G.column};fe/ae<=2&&(ot.column+=ye.x.left<ye.x.right?-3:2),ke/J<=1&&(ot.row+=ye.y.top<ye.y.bottom?-1:1);var Ft=G.row!=ot.row,ht=G.column!=ot.column,ft=!Z||G.row!=Z.row;Ft||ht&&!ft?D?ie-D>=h&&o.renderer.scrollCursorIntoView(ot):D=ie:D=null}function O(){var G=T;T=o.renderer.screenToTextCoordinates(R,A),S(T,G),L(T,G)}function F(){b=o.selection.toOrientedRange(),x=o.session.addMarker(b,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),O(),k=setInterval(O,20),E=0,v.addListener(document,"mousemove",V)}function H(){clearInterval(k),o.session.removeMarker(x),x=null,o.selection.fromOrientedRange(b),o.isFocused()&&!M&&o.$resetCursorStyle(),b=null,T=null,E=0,D=null,$=null,v.removeListener(document,"mousemove",V)}var W=null;function V(){W==null&&(W=setTimeout(function(){W!=null&&x&&H()},20))}function q(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,function(ie){return ie=="text/plain"||ie=="Text"})}function X(G){var Z=["copy","copymove","all","uninitialized"],ie=["move","copymove","linkmove","all","uninitialized"],J=w.isMac?G.altKey:G.ctrlKey,ae="uninitialized";try{ae=G.dataTransfer.effectAllowed.toLowerCase()}catch{}var me="none";return J&&Z.indexOf(ae)>=0?me="copy":ie.indexOf(ae)>=0?me="move":Z.indexOf(ae)>=0&&(me="copy"),me}}(function(){this.dragWait=function(){var 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=w.isWin?"default":"move";c.renderer.setCursorStyle(u),this.setState("dragReady")},this.onMouseDrag=function(c){var o=this.editor.container;if(w.isIE&&this.state=="dragReady"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>3&&o.dragDrop()}if(this.state==="dragWait"){var u=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);u>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var o=this.editor,u=c.inSelection(),p=c.getButton(),y=c.domEvent.detail||1;if(y===1&&p===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(w.isWebKit){this.cancelDrag=!0;var R=o.container;R.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(l.prototype);function s(c,o,u,p){return Math.sqrt(Math.pow(u-c,2)+Math.pow(p-o,2))}i.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,i,m){var f=e("./mouse_event").MouseEvent,v=e("../lib/event"),w=e("../lib/dom");i.addTouchListeners=function(h,g){var a="scroll",l,s,c,o,u,p,y=0,x,R=0,A=0,k=0,b,T;function E(){var S=window.navigator&&window.navigator.clipboard,L=!1,O=function(){var W=g.getCopyText(),V=g.session.getUndoManager().hasUndo();T.replaceChild(w.buildDom(L?["span",!W&&F("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],W&&F("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],W&&F("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],S&&F("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],V&&F("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],F("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],F("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),T.firstChild)},F=function(W){return g.commands.canExecute(W,g)},H=function(W){var V=W.target.getAttribute("action");if(V=="more"||!L)return L=!L,O();V=="paste"?S.readText().then(function(q){g.execCommand(V,q)}):V&&((V=="cut"||V=="copy")&&(S?S.writeText(g.getCopyText()):document.execCommand("copy")),g.execCommand(V)),T.firstChild.style.display="none",L=!1,V!="openCommandPalette"&&g.focus()};T=w.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(W){a="menu",W.stopPropagation(),W.preventDefault(),g.textInput.focus()},ontouchend:function(W){W.stopPropagation(),W.preventDefault(),H(W)},onclick:H},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],g.container)}function I(){if(!g.getOption("enableMobileMenu")){T&&M();return}T||E();var S=g.selection.cursor,L=g.renderer.textToScreenCoordinates(S.row,S.column),O=g.renderer.textToScreenCoordinates(0,0).pageX,F=g.renderer.scrollLeft,H=g.container.getBoundingClientRect();T.style.top=L.pageY-H.top-3+"px",L.pageX-H.left<H.width-70?(T.style.left="",T.style.right="10px"):(T.style.right="",T.style.left=O+F-H.left+"px"),T.style.display="",T.firstChild.style.display="none",g.on("input",M)}function M(S){T&&(T.style.display="none"),g.off("input",M)}function D(){u=null,clearTimeout(u);var S=g.selection.getRange(),L=S.contains(x.row,x.column);(S.isEmpty()||!L)&&(g.selection.moveToPosition(x),g.selection.selectWord()),a="wait",I()}function $(){u=null,clearTimeout(u),g.selection.moveToPosition(x);var S=R>=2?g.selection.getLineRange(x.row):g.session.getBracketRange(x);S&&!S.isEmpty()?g.selection.setRange(S):g.selection.selectWord(),a="wait"}v.addListener(h,"contextmenu",function(S){if(b){var L=g.textInput.getElement();L.focus()}},g),v.addListener(h,"touchstart",function(S){var L=S.touches;if(u||L.length>1){clearTimeout(u),u=null,c=-1,a="zoom";return}b=g.$mouseHandler.isMousePressed=!0;var O=g.renderer.layerConfig.lineHeight,F=g.renderer.layerConfig.lineHeight,H=S.timeStamp;o=H;var W=L[0],V=W.clientX,q=W.clientY;Math.abs(l-V)+Math.abs(s-q)>O&&(c=-1),l=S.clientX=V,s=S.clientY=q,A=k=0;var X=new f(S,g);if(x=X.getDocumentPosition(),H-c<500&&L.length==1&&!y)R++,S.preventDefault(),S.button=0,$();else{R=0;var G=g.selection.cursor,Z=g.selection.isEmpty()?G:g.selection.anchor,ie=g.renderer.$cursorLayer.getPixelPosition(G,!0),J=g.renderer.$cursorLayer.getPixelPosition(Z,!0),ae=g.renderer.scroller.getBoundingClientRect(),me=g.renderer.layerConfig.offset,ye=g.renderer.scrollLeft,fe=function(Ft,ht){return Ft=Ft/F,ht=ht/O-.75,Ft*Ft+ht*ht};if(S.clientX<ae.left){a="zoom";return}var ke=fe(S.clientX-ae.left-ie.left+ye,S.clientY-ae.top-ie.top+me),ot=fe(S.clientX-ae.left-J.left+ye,S.clientY-ae.top-J.top+me);ke<3.5&&ot<3.5&&(a=ke>ot?"cursor":"anchor"),ot<3.5?a="anchor":ke<3.5?a="cursor":a="scroll",u=setTimeout(D,450)}c=H},g),v.addListener(h,"touchend",function(S){b=g.$mouseHandler.isMousePressed=!1,p&&clearInterval(p),a=="zoom"?(a="",y=0):u?(g.selection.moveToPosition(x),y=0,I()):a=="scroll"?(_(),M()):I(),clearTimeout(u),u=null},g),v.addListener(h,"touchmove",function(S){u&&(clearTimeout(u),u=null);var L=S.touches;if(!(L.length>1||a=="zoom")){var O=L[0],F=l-O.clientX,H=s-O.clientY;if(a=="wait")if(F*F+H*H>4)a="cursor";else return S.preventDefault();l=O.clientX,s=O.clientY,S.clientX=O.clientX,S.clientY=O.clientY;var W=S.timeStamp,V=W-o;if(o=W,a=="scroll"){var q=new f(S,g);q.speed=1,q.wheelX=F,q.wheelY=H,10*Math.abs(F)<Math.abs(H)&&(F=0),10*Math.abs(H)<Math.abs(F)&&(H=0),V!=0&&(A=F/V,k=H/V),g._emit("mousewheel",q),q.propagationStopped||(A=k=0)}else{var X=new f(S,g),G=X.getDocumentPosition();a=="cursor"?g.selection.moveCursorToPosition(G):a=="anchor"&&g.selection.setSelectionAnchor(G.row,G.column),g.renderer.scrollCursorIntoView(G),S.preventDefault()}}},g);function _(){y+=60,p=setInterval(function(){y--<=0&&(clearInterval(p),p=null),Math.abs(A)<.01&&(A=0),Math.abs(k)<.01&&(k=0),y<20&&(A=.9*A),y<20&&(k=.9*k);var S=g.session.getScrollTop();g.renderer.scrollBy(10*A,10*k),S==g.session.getScrollTop()&&(y=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,i,m){var f=e("../lib/event"),v=e("../lib/useragent"),w=e("./default_handlers").DefaultHandlers,h=e("./default_gutter_handler").GutterHandler,g=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,s=e("../config"),c=function(){function o(u){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var p=this;this.editor=u,new w(this),new h(this),new a(this);var y=function(A){var k=!document.hasFocus||!document.hasFocus()||!u.isFocused()&&document.activeElement==(u.textInput&&u.textInput.getElement());k&&window.focus(),u.focus(),setTimeout(function(){u.isFocused()||u.focus()})},x=u.renderer.getMouseEventTarget();f.addListener(x,"click",this.onMouseEvent.bind(this,"click"),u),f.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),u),f.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),f.addMouseWheelListener(u.container,this.onMouseWheel.bind(this,"mousewheel"),u),l(u.container,u);var R=u.renderer.$gutter;f.addListener(R,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),u),f.addListener(R,"click",this.onMouseEvent.bind(this,"gutterclick"),u),f.addListener(R,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),u),f.addListener(R,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),u),f.addListener(x,"mousedown",y,u),f.addListener(R,"mousedown",y,u),v.isIE&&u.renderer.scrollBarV&&(f.addListener(u.renderer.scrollBarV.element,"mousedown",y,u),f.addListener(u.renderer.scrollBarH.element,"mousedown",y,u)),u.on("mousemove",function(A){if(!(p.state||p.$dragDelay||!p.$dragEnabled)){var k=u.renderer.screenToTextCoordinates(A.x,A.y),b=u.session.selection.getRange(),T=u.renderer;!b.isEmpty()&&b.insideStart(k.row,k.column)?T.setCursorStyle("default"):T.setCursorStyle("")}},u)}return o.prototype.onMouseEvent=function(u,p){this.editor.session&&this.editor._emit(u,new g(p,this.editor))},o.prototype.onMouseMove=function(u,p){var y=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!y||!y.length||this.editor._emit(u,new g(p,this.editor))},o.prototype.onMouseWheel=function(u,p){var y=new g(p,this.editor);y.speed=this.$scrollSpeed*2,y.wheelX=p.wheelX,y.wheelY=p.wheelY,this.editor._emit(u,y)},o.prototype.setState=function(u){this.state=u},o.prototype.captureMouse=function(u,p){this.x=u.x,this.y=u.y,this.isMousePressed=!0;var y=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var R=this,A=function(I){if(I){if(v.isWebKit&&!I.which&&R.releaseMouse)return R.releaseMouse();R.x=I.clientX,R.y=I.clientY,p&&p(I),R.mouseEvent=new g(I,R.editor),R.$mouseMoved=!0}},k=function(I){y.off("beforeEndOperation",T),clearInterval(E),y.session&&b(),R[R.state+"End"]&&R[R.state+"End"](I),R.state="",R.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),R.$onCaptureMouseMove=R.releaseMouse=null,I&&R.onMouseEvent("mouseup",I),y.endOperation()},b=function(){R[R.state]&&R[R.state](),R.$mouseMoved=!1};if(v.isOldIE&&u.domEvent.type=="dblclick")return setTimeout(function(){k(u)});var T=function(I){R.releaseMouse&&y.curOp.command.name&&y.curOp.selectionChanged&&(R[R.state+"End"]&&R[R.state+"End"](),R.state="",R.releaseMouse())};y.on("beforeEndOperation",T),y.startOperation({command:{name:"mouse"}}),R.$onCaptureMouseMove=A,R.releaseMouse=f.capture(this.editor.container,A,k);var E=setInterval(b,20)},o.prototype.cancelContextMenu=function(){var u=(function(p){p&&p.domEvent&&p.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",u),p&&p.domEvent&&f.stopEvent(p.domEvent))}).bind(this);setTimeout(u,10),this.editor.on("nativecontextmenu",u)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o}();c.prototype.releaseMouse=null,s.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:v.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),i.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,i,m){var f=e("../lib/dom"),v=function(){function w(h){h.on("click",function(g){var a=g.getDocumentPosition(),l=h.session,s=l.getFoldAt(a.row,a.column,1);s&&(g.getAccelKey()?l.removeFold(s):l.expandFold(s),g.stop());var c=g.domEvent&&g.domEvent.target;c&&f.hasCssClass(c,"ace_inline_button")&&f.hasCssClass(c,"ace_toggle_wrap")&&(l.setOption("wrap",!l.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(g){var a=h.renderer.$gutterLayer.getRegion(g);if(a=="foldWidgets"){var l=g.getDocumentPosition().row,s=h.session;s.foldWidgets&&s.foldWidgets[l]&&h.session.onFoldWidgetClick(l,g),h.isFocused()||h.focus(),g.stop()}}),h.on("gutterdblclick",function(g){var a=h.renderer.$gutterLayer.getRegion(g);if(a=="foldWidgets"){var l=g.getDocumentPosition().row,s=h.session,c=s.getParentFoldRangeData(l,!0),o=c.range||c.firstRange;if(o){l=o.start.row;var u=s.getFoldAt(l,s.getLine(l).length,1);u?s.removeFold(u):(s.addFold("...",o),h.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}g.stop()}})}return w}();i.FoldHandler=v}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,i,m){var f=e("../lib/keys"),v=e("../lib/event"),w=function(){function h(g){this.$editor=g,this.$data={editor:g},this.$handlers=[],this.setDefaultHandler(g.commands)}return h.prototype.setDefaultHandler=function(g){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=g,this.addKeyboardHandler(g,0)},h.prototype.setKeyboardHandler=function(g){var a=this.$handlers;if(a[a.length-1]!=g){for(;a[a.length-1]&&a[a.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(a[a.length-1]);this.addKeyboardHandler(g,1)}},h.prototype.addKeyboardHandler=function(g,a){if(g){typeof g=="function"&&!g.handleKeyboard&&(g.handleKeyboard=g);var l=this.$handlers.indexOf(g);l!=-1&&this.$handlers.splice(l,1),a==null?this.$handlers.push(g):this.$handlers.splice(a,0,g),l==-1&&g.attach&&g.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(g){var a=this.$handlers.indexOf(g);return a==-1?!1:(this.$handlers.splice(a,1),g.detach&&g.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var g=this.$data,a=g.editor;return this.$handlers.map(function(l){return l.getStatusText&&l.getStatusText(a,g)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(g,a,l,s){for(var c,o=!1,u=this.$editor.commands,p=this.$handlers.length;p--&&(c=this.$handlers[p].handleKeyboard(this.$data,g,a,l,s),!(!(!c||!c.command)&&(c.command=="null"?o=!0:o=u.exec(c.command,this.$editor,c.args,s),o&&s&&g!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&v.stopEvent(s),o))););return!o&&g==-1&&(c={command:"insertstring"},o=u.exec("insertstring",this.$editor,a)),o&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),o},h.prototype.onCommandKey=function(g,a,l){var s=f.keyCodeToString(l);return this.$callKeyboardHandlers(a,s,l,g)},h.prototype.onTextInput=function(g){return this.$callKeyboardHandlers(-1,g)},h}();i.KeyBinding=w}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,i,m){var f=0,v=0,w=!1,h=!1,g=!1,a=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],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]],s=0,c=1,o=0,u=1,p=2,y=3,x=4,R=5,A=6,k=7,b=8,T=9,E=10,I=11,M=12,D=13,$=14,_=15,S=16,L=17,O=18,F=[O,O,O,O,O,O,O,O,O,A,R,A,b,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,R,R,R,A,b,x,x,I,I,I,x,x,x,x,x,E,T,E,T,T,p,p,p,p,p,p,p,p,p,p,T,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,x,x,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,o,x,x,x,x,O,O,O,O,O,O,R,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,T,x,I,I,I,I,x,x,x,x,o,x,x,O,x,x,I,I,p,p,x,o,x,x,x,p,o,x,x,x,x,x],H=[b,b,b,b,b,b,b,b,b,b,b,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,b,R,D,$,_,S,L,T,I,I,I,I,I,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,T,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,b];function W(G,Z,ie,J){var ae=f?l:a,me=null,ye=null,fe=null,ke=0,ot=null,Ft=null,ht=-1,ft=null,ln=null,It=[];if(!J)for(ft=0,J=[];ft<ie;ft++)J[ft]=X(G[ft]);for(v=f,w=!1,h=!1,g=!1,ln=0;ln<ie;ln++){if(me=ke,It[ln]=ye=q(G,J,It,ln),ke=ae[me][ye],ot=ke&240,ke&=15,Z[ln]=fe=ae[ke][5],ot>0)if(ot==16){for(ft=ht;ft<ln;ft++)Z[ft]=1;ht=-1}else ht=-1;if(Ft=ae[ke][6],Ft)ht==-1&&(ht=ln);else if(ht>-1){for(ft=ht;ft<ln;ft++)Z[ft]=fe;ht=-1}J[ln]==R&&(Z[ln]=0),v|=fe}if(g){for(ft=0;ft<ie;ft++)if(J[ft]==A){Z[ft]=f;for(var Gt=ft-1;Gt>=0&&J[Gt]==b;Gt--)Z[Gt]=f}}}function V(G,Z,ie){if(!(v<G)){if(G==1&&f==c&&!h){ie.reverse();return}for(var J=ie.length,ae=0,me,ye,fe,ke;ae<J;){if(Z[ae]>=G){for(me=ae+1;me<J&&Z[me]>=G;)me++;for(ye=ae,fe=me-1;ye<fe;ye++,fe--)ke=ie[ye],ie[ye]=ie[fe],ie[fe]=ke;ae=me}ae++}}}function q(G,Z,ie,J){var ae=Z[J],me,ye,fe,ke;switch(ae){case o:case u:w=!1;case x:case y:return ae;case p:return w?y:p;case k:return w=!0,u;case b:return x;case T:return J<1||J+1>=Z.length||(me=ie[J-1])!=p&&me!=y||(ye=Z[J+1])!=p&&ye!=y?x:(w&&(ye=y),ye==me?ye:x);case E:return me=J>0?ie[J-1]:R,me==p&&J+1<Z.length&&Z[J+1]==p?p:x;case I:if(J>0&&ie[J-1]==p)return p;if(w)return x;for(ke=J+1,fe=Z.length;ke<fe&&Z[ke]==I;)ke++;return ke<fe&&Z[ke]==p?p:x;case M:for(fe=Z.length,ke=J+1;ke<fe&&Z[ke]==M;)ke++;if(ke<fe){var ot=G[J],Ft=ot>=1425&&ot<=2303||ot==64286;if(me=Z[ke],Ft&&(me==u||me==k))return u}return J<1||(me=Z[J-1])==R?x:ie[J-1];case R:return w=!1,h=!0,f;case A:return g=!0,x;case D:case $:case S:case L:case _:w=!1;case O:return x}}function X(G){var Z=G.charCodeAt(0),ie=Z>>8;return ie==0?Z>191?o:F[Z]:ie==5?/[\u0591-\u05f4]/.test(G)?u:o:ie==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?M:/[\u0660-\u0669\u066b-\u066c]/.test(G)?y:Z==1642?I:/[\u06f0-\u06f9]/.test(G)?p:k:ie==32&&Z<=8287?H[Z&255]:ie==254&&Z>=65136?k:x}i.L=o,i.R=u,i.EN=p,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(G,Z,ie){if(G.length<2)return{};var J=G.split(""),ae=new Array(J.length),me=new Array(J.length),ye=[];f=ie?c:s,W(J,ye,J.length,Z);for(var fe=0;fe<ae.length;ae[fe]=fe,fe++);V(2,ye,ae),V(1,ye,ae);for(var fe=0;fe<ae.length-1;fe++)Z[fe]===y?ye[fe]=i.AN:ye[fe]===u&&(Z[fe]>k&&Z[fe]<D||Z[fe]===x||Z[fe]===O)?ye[fe]=i.ON_R:fe>0&&J[fe-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(J[fe])&&(ye[fe-1]=ye[fe]=i.R_H,fe++);J[J.length-1]===i.DOT&&(ye[J.length-1]=i.B),J[0]==="‫"&&(ye[0]=i.RLE);for(var fe=0;fe<ae.length;fe++)me[fe]=ye[ae[fe]];return{logicalFromVisual:ae,bidiLevels:me}},i.hasBidiCharacters=function(G,Z){for(var ie=!1,J=0;J<G.length;J++)Z[J]=X(G.charAt(J)),!ie&&(Z[J]==u||Z[J]==k||Z[J]==y)&&(ie=!0);return ie},i.getVisualFromLogicalIdx=function(G,Z){for(var ie=0;ie<Z.logicalFromVisual.length;ie++)if(Z.logicalFromVisual[ie]==G)return ie;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,i,m){var f=e("./lib/bidiutil"),v=e("./lib/lang"),w=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function g(a){this.session=a,this.bidiMap={},this.currentRow=null,this.bidiUtil=f,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=w.test(a.getValue())}return g.prototype.isBidiRow=function(a,l,s){return this.seenBidi?(a!==this.currentRow&&(this.currentRow=a,this.updateRowLine(l,s),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},g.prototype.onChange=function(a){this.seenBidi?this.currentRow=null:a.action=="insert"&&w.test(a.lines.join(`
179
179
  `))&&(this.seenBidi=!0,this.currentRow=null)},g.prototype.getDocumentRow=function(){var a=0,l=this.session.$screenRowCache;if(l.length){var s=this.session.$getRowCacheIndex(l,this.currentRow);s>=0&&(a=this.session.$docRowCache[s])}return a},g.prototype.getSplitIndex=function(){var a=0,l=this.session.$screenRowCache;if(l.length)for(var s,c=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-a>0&&(s=this.session.$getRowCacheIndex(l,this.currentRow-a-1),s===c);)c=s,a++;else a=this.currentRow;return a},g.prototype.updateRowLine=function(a,l){a===void 0&&(a=this.getDocumentRow());var s=a===this.session.getLength()-1,c=s?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[a];o&&(l===void 0&&(l=this.getSplitIndex()),l>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[f.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:f.DOT))}else this.line+=this.showInvisibles?c:f.DOT;var u=this.session,p=0,y;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,R){return x===" "||u.isFullWidth(x.charCodeAt(0))?(y=x===" "?u.getScreenTabSize(R+p):2,p+=y-1,v.stringRepeat(f.DOT,y)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==f.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 a=[];f.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=f.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},g.prototype.markAsDirty=function(){this.currentRow=null},g.prototype.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var l=this.characterWidth=a.$characterSize.width,s=a.$measureCharWidth("ה");this.charWidths[f.L]=this.charWidths[f.EN]=this.charWidths[f.ON_R]=l,this.charWidths[f.R]=this.charWidths[f.AN]=s,this.charWidths[f.R_H]=s*.45,this.charWidths[f.B]=this.charWidths[f.RLE]=0,this.currentRow=null}},g.prototype.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},g.prototype.setEolChar=function(a){this.EOL=a},g.prototype.setContentWidth=function(a){this.contentWidth=a},g.prototype.isRtlLine=function(a){return this.$isRtl?!0:a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},g.prototype.setRtlDirection=function(a,l){for(var s=a.getCursorPosition(),c=a.selection.getSelectionAnchor().row;c<=s.row;c++)!l&&a.session.getLine(c).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(c,0,1):l&&a.session.getLine(c).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:c},a.session.$bidiHandler.RLE)},g.prototype.getPosLeft=function(a){a-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,s=a>l?this.session.getOverwrite()?a:a-1:l,c=f.getVisualFromLogicalIdx(s,this.bidiMap),o=this.bidiMap.bidiLevels,u=0;!this.session.getOverwrite()&&a<=l&&o[c]%2!==0&&c++;for(var p=0;p<c;p++)u+=this.charWidths[o[p]];return!this.session.getOverwrite()&&a>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(a,l){var s=this.bidiMap,c=s.bidiLevels,o,u=[],p=0,y=Math.min(a,l)-this.wrapIndent,x=Math.max(a,l)-this.wrapIndent,R=!1,A=!1,k=0;this.wrapIndent&&(p+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,T=0;T<c.length;T++)b=s.logicalFromVisual[T],o=c[T],R=b>=y&&b<x,R&&!A?k=p:!R&&A&&u.push({left:k,width:p-k}),p+=this.charWidths[o],A=R;if(R&&T===c.length&&u.push({left:k,width:p-k}),this.isRtlDir)for(var E=0;E<u.length;E++)u[E].left+=this.rtlLineOffset;return u},g.prototype.offsetToCol=function(s){this.isRtlDir&&(s-=this.rtlLineOffset);var l=0,s=Math.max(s,0),c=0,o=0,u=this.bidiMap.bidiLevels,p=this.charWidths[u[o]];for(this.wrapIndent&&(s-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);s>c+p/2;){if(c+=p,o===u.length-1){p=0;break}p=this.charWidths[u[++o]]}return o>0&&u[o-1]%2!==0&&u[o]%2===0?(s<c&&o--,l=this.bidiMap.logicalFromVisual[o]):o>0&&u[o-1]%2===0&&u[o]%2!==0?l=1+(s>c?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===u.length-1&&p===0&&u[o-1]%2===0||!this.isRtlDir&&o===0&&u[o]%2!==0?l=1+this.bidiMap.logicalFromVisual[o]:(o>0&&u[o-1]%2!==0&&p!==0&&o--,l=this.bidiMap.logicalFromVisual[o]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},g}();i.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,i,m){var f=e("./lib/oop"),v=e("./lib/lang"),w=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,g=function(){function a(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 s=this;this.cursor.on("change",function(c){s.$cursorChanged=!0,s.$silent||s._emit("changeCursor"),!s.$isEmpty&&!s.$silent&&s._emit("changeSelection"),!s.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(s.$desiredColumn=null)}),this.anchor.on("change",function(){s.$anchorChanged=!0,!s.$isEmpty&&!s.$silent&&s._emit("changeSelection")})}return a.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},a.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},a.prototype.getCursor=function(){return this.lead.getPosition()},a.prototype.setAnchor=function(l,s){this.$isEmpty=!1,this.anchor.setPosition(l,s)},a.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},a.prototype.getSelectionLead=function(){return this.lead.getPosition()},a.prototype.isBackwards=function(){var l=this.anchor,s=this.lead;return l.row>s.row||l.row==s.row&&l.column>s.column},a.prototype.getRange=function(){var l=this.anchor,s=this.lead;return this.$isEmpty?h.fromPoints(s,s):this.isBackwards()?h.fromPoints(s,l):h.fromPoints(l,s)},a.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},a.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},a.prototype.setRange=function(l,s){var c=s?l.end:l.start,o=s?l.start:l.end;this.$setSelection(c.row,c.column,o.row,o.column)},a.prototype.$setSelection=function(l,s,c,o){if(!this.$silent){var u=this.$isEmpty,p=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,s),this.cursor.setPosition(c,o),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||u!=this.$isEmpty||p)&&this._emit("changeSelection")}},a.prototype.$moveSelection=function(l){var s=this.lead;this.$isEmpty&&this.setSelectionAnchor(s.row,s.column),l.call(this)},a.prototype.selectTo=function(l,s){this.$moveSelection(function(){this.moveCursorTo(l,s)})},a.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},a.prototype.moveTo=function(l,s){this.clearSelection(),this.moveCursorTo(l,s)},a.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},a.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},a.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},a.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},a.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},a.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},a.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},a.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},a.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},a.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},a.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},a.prototype.getWordRange=function(l,s){if(typeof s>"u"){var c=l||this.lead;l=c.row,s=c.column}return this.session.getWordRange(l,s)},a.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},a.prototype.selectAWord=function(){var l=this.getCursor(),s=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(s)},a.prototype.getLineRange=function(l,s){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,s===!0?new h(c,0,o,this.session.getLine(o).length):new h(c,0,o+1,0)},a.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},a.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},a.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},a.prototype.wouldMoveIntoSoftTab=function(l,s,c){var o=l.column,u=l.column+s;return c<0&&(o=l.column-s,u=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(o,u).split(" ").length-1==s},a.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),s;if(s=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(s.start.row,s.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)}},a.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),s;if(s=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(s.end.row,s.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var c=this.session.getTabSize(),l=this.lead;this.wouldMoveIntoSoftTab(l,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},a.prototype.moveCursorLineStart=function(){var l=this.lead.row,s=this.lead.column,c=this.session.documentToScreenRow(l,s),o=this.session.screenToDocumentPosition(c,0),u=this.session.getDisplayLine(l,null,o.row,o.column),p=u.match(/^\s*/);p[0].length!=s&&!this.session.$useEmacsStyleLineStart&&(o.column+=p[0].length),this.moveCursorToPosition(o)},a.prototype.moveCursorLineEnd=function(){var l=this.lead,s=this.session.getDocumentLastRowColumnPosition(l.row,l.column);if(this.lead.column==s.column){var c=this.session.getLine(s.row);if(s.column==c.length){var o=c.search(/\s+$/);o>0&&(s.column=o)}}this.moveCursorTo(s.row,s.column)},a.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,s=this.doc.getLine(l).length;this.moveCursorTo(l,s)},a.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},a.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,s=this.lead.column,c=this.doc.getLine(l),o=c.substring(s);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var u=this.session.getFoldAt(l,s,1);if(u){this.moveCursorTo(u.end.row,u.end.column);return}if(this.session.nonTokenRe.exec(o)&&(s+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=c.substring(s)),s>=c.length){this.moveCursorTo(l,c.length),this.moveCursorRight(),l<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(o)&&(s+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,s)},a.prototype.moveCursorLongWordLeft=function(){var l=this.lead.row,s=this.lead.column,c;if(c=this.session.getFoldAt(l,s,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var o=this.session.getFoldStringAt(l,s,-1);o==null&&(o=this.doc.getLine(l).substring(0,s));var u=v.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(u)&&(s-=this.session.nonTokenRe.lastIndex,u=u.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),s<=0){this.moveCursorTo(l,0),this.moveCursorLeft(),l>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(u)&&(s-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,s)},a.prototype.$shortWordEndIndex=function(l){var s=0,c,o=/\s/,u=this.session.tokenRe;if(u.lastIndex=0,this.session.tokenRe.exec(l))s=this.session.tokenRe.lastIndex;else{for(;(c=l[s])&&o.test(c);)s++;if(s<1){for(u.lastIndex=0;(c=l[s])&&!u.test(c);)if(u.lastIndex=0,s++,o.test(c))if(s>2){s--;break}else{for(;(c=l[s])&&o.test(c);)s++;if(s>2)break}}}return u.lastIndex=0,s},a.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,s=this.lead.column,c=this.doc.getLine(l),o=c.substring(s),u=this.session.getFoldAt(l,s,1);if(u)return this.moveCursorTo(u.end.row,u.end.column);if(s==c.length){var p=this.doc.getLength();do l++,o=this.doc.getLine(l);while(l<p&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),s=0}var y=this.$shortWordEndIndex(o);this.moveCursorTo(l,s+y)},a.prototype.moveCursorShortWordLeft=function(){var l=this.lead.row,s=this.lead.column,c;if(c=this.session.getFoldAt(l,s,-1))return this.moveCursorTo(c.start.row,c.start.column);var o=this.session.getLine(l).substring(0,s);if(s===0){do l--,o=this.doc.getLine(l);while(l>0&&/^\s*$/.test(o));s=o.length,/\s+$/.test(o)||(o="")}var u=v.stringReverse(o),p=this.$shortWordEndIndex(u);return this.moveCursorTo(l,s-p)},a.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},a.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},a.prototype.moveCursorBy=function(l,s){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o;if(s===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 p=this.session.screenToDocumentPosition(c.row+l,c.column,o);l!==0&&s===0&&p.row===this.lead.row&&(p.column,this.lead.column),this.moveCursorTo(p.row,p.column+s,s===0)},a.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},a.prototype.moveCursorTo=function(l,s,c){var o=this.session.getFoldAt(l,s,1);o&&(l=o.start.row,s=o.start.column),this.$keepDesiredColumnOnChange=!0;var u=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(u.charAt(s))&&u.charAt(s-1)&&(this.lead.row==l&&this.lead.column==s+1?s=s-1:s=s+1),this.lead.setPosition(l,s),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},a.prototype.moveCursorToScreen=function(l,s,c){var o=this.session.screenToDocumentPosition(l,s);this.moveCursorTo(o.row,o.column,c)},a.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},a.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},a.prototype.toOrientedRange=function(l){var s=this.getRange();return l?(l.start.column=s.start.column,l.start.row=s.start.row,l.end.column=s.end.column,l.end.row=s.end.row):l=s,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},a.prototype.getRangeOfMovements=function(l){var s=this.getCursor();try{l(this);var c=this.getCursor();return h.fromPoints(s,c)}catch{return h.fromPoints(s,s)}finally{this.moveCursorToPosition(s)}},a.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(s){var c=s.clone();return c.isBackwards=s.cursor==s.start,c});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},a.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var s=l.length;s--;){var c=h.fromPoints(l[s].start,l[s].end);l[s].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},a.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 s=this.ranges.length;s--;)if(!this.ranges[s].isEqual(l[s]))return!1;return!0},a}();g.prototype.setSelectionAnchor=g.prototype.setAnchor,g.prototype.getSelectionAnchor=g.prototype.getAnchor,g.prototype.setSelectionRange=g.prototype.setRange,f.implement(g.prototype,w),i.Selection=g}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,i,m){var f=e("./lib/report_error").reportError,v=2e3,w=function(){function h(g){this.splitRegex,this.states=g,this.regExps={},this.matchMappings={};for(var a in this.states){for(var l=this.states[a],s=[],c=0,o=this.matchMappings[a]={defaultToken:"text"},u="g",p=[],y=0;y<l.length;y++){var x=l[y];if(x.defaultToken&&(o.defaultToken=x.defaultToken),x.caseInsensitive&&u.indexOf("i")===-1&&(u+="i"),x.unicode&&u.indexOf("u")===-1&&(u+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var R=x.regex,A=new RegExp("(?:("+R+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||A==1?x.token=x.token[0]:A-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:A-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(A>1?x.onMatch=this.$applyToken:x.onMatch=x.token),A>1&&(/\\\d/.test(x.regex)?R=x.regex.replace(/\\([0-9]+)/g,function(k,b){return"\\"+(parseInt(b,10)+c+1)}):(A=1,R=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&p.push(x)),o[c]=y,c+=A,s.push(R),x.onMatch||(x.onMatch=null)}}s.length||(o[0]=0,s.push("$")),p.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,u)},this),this.regExps[a]=new RegExp("("+s.join(")|(")+")|($)",u)}}return h.prototype.$setMaxTokenCount=function(g){v=g|0},h.prototype.$applyToken=function(g){var a=this.splitRegex.exec(g).slice(1),l=this.token.apply(this,a);if(typeof l=="string")return[{type:l,value:g}];for(var s=[],c=0,o=l.length;c<o;c++)a[c]&&(s[s.length]={type:l[c],value:a[c]});return s},h.prototype.$arrayTokens=function(g){if(!g)return[];var a=this.splitRegex.exec(g);if(!a)return"text";for(var l=[],s=this.tokenArray,c=0,o=s.length;c<o;c++)a[c+1]&&(l[l.length]={type:s[c],value:a[c+1]});return l},h.prototype.removeCapturingGroups=function(g){var a=g.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(l,s){return s?"(?:":l});return a},h.prototype.createSplitterRegexp=function(g,a){if(g.indexOf("(?=")!=-1){var l=0,s=!1,c={};g.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(o,u,p,y,x,R){return s?s=x!="]":x?s=!0:y?(l==c.stack&&(c.end=R+1,c.stack=-1),l--):p&&(l++,p.length!=1&&(c.stack=l,c.start=R)),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,(a||"").replace("g",""))},h.prototype.getLineTokens=function(g,a){if(a&&typeof a!="string"){var l=a.slice(0);a=l[0],a==="#tmp"&&(l.shift(),a=l.shift())}else var l=[];var s=a||"start",c=this.states[s];c||(s="start",c=this.states[s]);var o=this.matchMappings[s],u=this.regExps[s];u.lastIndex=0;for(var p,y=[],x=0,R=0,A={type:null,value:""};p=u.exec(g);){var k=o.defaultToken,b=null,T=p[0],E=u.lastIndex;if(E-T.length>x){var I=g.substring(x,E-T.length);A.type==k?A.value+=I:(A.type&&y.push(A),A={type:k,value:I})}for(var M=0;M<p.length-2;M++)if(p[M+1]!==void 0){b=c[o[M]],b.onMatch?k=b.onMatch(T,s,l,g):k=b.token,b.next&&(typeof b.next=="string"?s=b.next:s=b.next(s,l),c=this.states[s],c||(this.reportError("state doesn't exist",s),s="start",c=this.states[s]),o=this.matchMappings[s],x=E,u=this.regExps[s],u.lastIndex=E),b.consumeLineEnd&&(x=E);break}if(T){if(typeof k=="string")(!b||b.merge!==!1)&&A.type===k?A.value+=T:(A.type&&y.push(A),A={type:k,value:T});else if(k){A.type&&y.push(A),A={type:null,value:""};for(var M=0;M<k.length;M++)y.push(k[M])}}if(x==g.length)break;if(x=E,R++>v){for(R>2*g.length&&this.reportError("infinite loop with in ace tokenizer",{startState:a,line:g});x<g.length;)A.type&&y.push(A),A={value:g.substring(x,x+=500),type:"overflow"};s="start",l=[];break}}return A.type&&y.push(A),l.length>1&&l[0]!==s&&l.unshift("#tmp",s),{tokens:y,state:l.length?l:s}},h}();w.prototype.reportError=f,i.Tokenizer=w}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,i,m){var f=e("../lib/deep_copy").deepCopy,v;v=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(g,a){if(!a){for(var l in g)this.$rules[l]=g[l];return}for(var l in g){for(var s=g[l],c=0;c<s.length;c++){var o=s[c];(o.next||o.onMatch)&&(typeof o.next=="string"&&o.next.indexOf(a)!==0&&(o.next=a+o.next),o.nextState&&o.nextState.indexOf(a)!==0&&(o.nextState=a+o.nextState))}this.$rules[a+l]=s}},this.getRules=function(){return this.$rules},this.embedRules=function(g,a,l,s,c){var o=typeof g=="function"?new g().getRules():g;if(s)for(var u=0;u<s.length;u++)s[u]=a+s[u];else{s=[];for(var p in o)s.push(a+p)}if(this.addRules(o,a),l)for(var y=Array.prototype[c?"push":"unshift"],u=0;u<s.length;u++)y.apply(this.$rules[s[u]],f(l));this.$embeds||(this.$embeds=[]),this.$embeds.push(a)},this.getEmbeds=function(){return this.$embeds};var w=function(g,a){return(g!="start"||a.length)&&a.unshift(this.nextState,g),this.nextState},h=function(g,a){return a.shift(),a.shift()||"start"};this.normalizeRules=function(){var g=0,a=this.$rules;function l(s){var c=a[s];c.processed=!0;for(var o=0;o<c.length;o++){var u=c[o],p=null;Array.isArray(u)&&(p=u,u={}),!u.regex&&u.start&&(u.regex=u.start,u.next||(u.next=[]),u.next.push({defaultToken:u.token},{token:u.token+".end",regex:u.end||u.start,next:"pop"}),u.token=u.token+".start",u.push=!0);var y=u.next||u.push;if(y&&Array.isArray(y)){var x=u.stateName;x||(x=u.token,typeof x!="string"&&(x=x[0]||""),a[x]&&(x+=g++)),a[x]=y,u.next=x,l(x)}else y=="pop"&&(u.next=h);if(u.push&&(u.nextState=u.next||u.push,u.next=w,delete u.push),u.rules)for(var R in u.rules)a[R]?a[R].push&&a[R].push.apply(a[R],u.rules[R]):a[R]=u.rules[R];var A=typeof u=="string"?u:u.include;if(A&&(A==="$self"&&(A="start"),Array.isArray(A)?p=A.map(function(b){return a[b]}):p=a[A]),p){var k=[o,1].concat(p);u.noEscape&&(k=k.filter(function(b){return!b.next})),c.splice.apply(c,k),o--}u.keywordMap&&(u.token=this.createKeywordMapper(u.keywordMap,u.defaultToken||"text",u.caseInsensitive),delete u.defaultToken)}}Object.keys(a).forEach(l,this)},this.createKeywordMapper=function(g,a,l,s){var c=Object.create(null);return this.$keywordList=[],Object.keys(g).forEach(function(o){for(var u=g[o],p=u.split(s||"|"),y=p.length;y--;){var x=p[y];this.$keywordList.push(x),l&&(x=x.toLowerCase()),c[x]=o}},this),g=null,l?function(o){return c[o.toLowerCase()]||a}:function(o){return c[o]||a}},this.getKeywords=function(){return this.$keywords}}).call(v.prototype),i.TextHighlightRules=v}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,i,m){var f;f=function(){this.$behaviours={}},(function(){this.add=function(v,w,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[v]:this.$behaviours[v]={}}this.$behaviours[v][w]=h},this.addBehaviours=function(v){for(var w in v)for(var h in v[w])this.add(w,h,v[w][h])},this.remove=function(v){this.$behaviours&&this.$behaviours[v]&&delete this.$behaviours[v]},this.inherit=function(v,w){if(typeof v=="function")var h=new v().getBehaviours(w);else var h=v.getBehaviours(w);this.addBehaviours(h)},this.getBehaviours=function(v){if(v){for(var w={},h=0;h<v.length;h++)this.$behaviours[v[h]]&&(w[v[h]]=this.$behaviours[v[h]]);return w}else return this.$behaviours}}).call(f.prototype),i.Behaviour=f}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,i,m){var f=e("./range").Range,v=function(){function w(h,g,a){this.$session=h,this.$row=g,this.$rowTokens=h.getTokens(g);var l=h.getTokenAt(g,a);this.$tokenIndex=l?l.index:-1}return w.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},w.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},w.prototype.getCurrentTokenRow=function(){return this.$row},w.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,g=this.$tokenIndex,a=h[g].start;if(a!==void 0)return a;for(a=0;g>0;)g-=1,a+=h[g].value.length;return a},w.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},w.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],g=this.getCurrentTokenColumn();return new f(this.$row,g,this.$row,g+h.value.length)},w}();i.TokenIterator=v}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,i,m){var f=e("../../lib/oop"),v=e("../behaviour").Behaviour,w=e("../../token_iterator").TokenIterator,h=e("../../lib/lang"),g=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,s={},c={'"':'"',"'":"'"},o=function(y){var x=-1;if(y.multiSelect&&(x=y.selection.index,s.rangeCount!=y.multiSelect.rangeCount&&(s={rangeCount:y.multiSelect.rangeCount})),s[x])return l=s[x];l=s[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(y,x,R,A){var k=y.end.row-y.start.row;return{text:R+x+A,selection:[0,y.start.column+1,k,y.end.column+(k?0:1)]}},p;p=function(y){y=y||{},this.add("braces","insertion",function(x,R,A,k,b){var T=A.getCursorPosition(),E=k.doc.getLine(T.row);if(b=="{"){o(A);var I=A.getSelectionRange(),M=k.doc.getTextRange(I),D=k.getTokenAt(T.row,T.column);if(M!==""&&M!=="{"&&A.getWrapBehavioursEnabled())return u(I,M,"{","}");if(D&&/(?:string)\.quasi|\.xml/.test(D.type)){var $=[/tag\-(?:open|name)/,/attribute\-name/];return $.some(function(W){return W.test(D.type)})||/(string)\.quasi/.test(D.type)&&D.value[T.column-D.start-1]!=="$"?void 0:(p.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]})}else if(p.isSaneInsertion(A,k))return/[\]\}\)]/.test(E[T.column])||A.inMultiSelectMode||y.braces?(p.recordAutoInsert(A,k,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(A,k,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){o(A);var _=E.substring(T.column,T.column+1);if(_=="}"){var S=k.$findOpeningBracket("}",{column:T.column+1,row:T.row});if(S!==null&&p.isAutoInsertedClosing(T,E,b))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==`
180
180
  `||b==`\r
181
181
  `){o(A);var L="";p.isMaybeInsertedClosing(T,E)&&(L=h.stringRepeat("}",l.maybeInsertedBrackets),p.clearMaybeInsertedClosing());var _=E.substring(T.column,T.column+1);if(_==="}"){var O=k.findMatchingBracket({row:T.row,column:T.column+1},"}");if(!O)return null;var F=this.$getIndent(k.getLine(O.row))}else if(L)var F=this.$getIndent(E);else{p.clearMaybeInsertedClosing();return}var H=F+k.getTabString();return{text:`
@@ -967,15 +967,15 @@ System.register(["vue","vue-router","vuex","vuetify"],function(rn,Ne){"use stric
967
967
  border-left-color: transparent!important;
968
968
  top: -5px;
969
969
  }
970
- `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,i,m){e("./loader_build")(i);var f=e("./lib/dom"),v=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,g=e("./undomanager").UndoManager,a=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),i.config=e("./config"),i.edit=function(s,c){if(typeof s=="string"){var o=s;if(s=document.getElementById(o),!s)throw new Error("ace.edit can't find div #"+o)}if(s&&s.env&&s.env.editor instanceof w)return s.env.editor;var u="";if(s&&/input|textarea/i.test(s.tagName)){var p=s;u=p.value,s=f.createElement("pre"),p.parentNode.replaceChild(s,p)}else s&&(u=s.textContent,s.innerHTML="");var y=i.createEditSession(u),x=new w(new a(s),y,c),R={document:y,editor:x,onResize:x.resize.bind(x,null)};return p&&(R.textarea=p),x.on("destroy",function(){R.editor.container.env=null}),x.container.env=x.env=R,x},i.createEditSession=function(s,c){var o=new h(s,c);return o.setUndoManager(new g),o},i.Range=v,i.Editor=w,i.EditSession=h,i.UndoManager=g,i.VirtualRenderer=a;var l=i.config.version;i.version=l}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=e);for(var m in e)e.hasOwnProperty(m)&&(i.ace[m]=e[m]);i.ace.default=i.ace,n&&(n.exports=i.ace)})}()}(mp)),mp.exports}zw();var yp={exports:{}},wp;function jw(){return wp||(wp=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};i.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},i.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},i.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=i.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},g=i.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},a=i.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=i.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},s=i.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=i.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=i.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=i.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},p=function(){var y="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",R="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",A="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":R,"variable.language":A,"support.function":y,"invalid.deprecated":"debugger"},"identifier"),b=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,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\\?(?:"+b+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},s,c,w,h,o,g,a,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(E,I,M){var D=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",$=E.split(this.splitRegex);return M.push(D,$[3]),[{type:"constant",value:$[1]},{type:"string",value:$[2]},{type:"support.class",value:$[3]},{type:"string",value:$[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(E,I,M){return E===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,I,M){return E===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(E,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:E}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(E,I,M){return this.next="",E=="}"&&M.length>1&&M[1]!="start"&&(M.shift(),this.next=M.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(E,I,M){return M.length&&E[0]===T[M[0]]?(M.shift(),this.next=M.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()};f.inherits(p,v),i.RubyHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var g=w.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,s=w.findMatchingBracket({row:h,column:l});if(!s||s.row==h)return 0;var c=this.$getIndent(w.getLine(s.row));w.replace(new f(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,g=i.FoldMode=function(){};f.inherits(g,v),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(a,l,s){var c=a.getLine(s),o=this.foldingStartMarker.test(c),u=this.foldingStopMarker.test(c);if(o&&!u){var p=c.match(this.foldingStartMarker);if(p[1]){if((p[1]=="if"||p[1]=="else"||p[1]=="while"||p[1]=="until"||p[1]=="unless")&&(p[1]=="else"&&/^\s*else\s*$/.test(c)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(c)===!1)||p[1]=="when"&&/\sthen\s/.test(c)===!0)return;if(a.getTokenAt(s,p.index+2).type==="keyword")return"start"}else if(!p[3]||a.getTokenAt(s,p.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!u||o&&u)return"";var p=c.match(this.foldingStopMarker);if(p[3]==="end"){if(a.getTokenAt(s,p.index+1).type==="keyword")return"end"}else if(!p[1]||a.getTokenAt(s,p.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,l,s){var c=a.doc.getLine(s),o=this.foldingStartMarker.exec(c);if(o)return o[1]||o[3]?this.rubyBlock(a,s,o.index+2):this.openingBracketBlock(a,"{",s,o.index);var o=this.foldingStopMarker.exec(c);if(o)return o[3]==="end"&&a.getTokenAt(s,o.index+1).type==="keyword"?this.rubyBlock(a,s,o.index+1):o[1]==="=end"&&a.getTokenAt(s,o.index+1).type==="comment.multiline"?this.rubyBlock(a,s,o.index+1):this.closingBracketBlock(a,"}",s,o.index+o[0].length)},this.rubyBlock=function(a,l,s,c){var o=new h(a,l,s),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var p=u.value,y=a.getLine(l);switch(u.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);if(!x.test(y))return;var R=this.indentKeywords[p];break;case"when":if(/\sthen\s/.test(y))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");if(!x.test(y))return;var R=1;break;default:var R=this.indentKeywords[p]}var A=[p];if(R){var k=R===-1?a.getLine(l-1).length:a.getLine(l).length,b=l,T=[];if(T.push(o.getCurrentTokenRange()),o.step=R===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(R==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var E=!1;if(u.type==="keyword"){var I=R*this.indentKeywords[u.value];switch(y=a.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var M=o.$tokenIndex-1;M>=0;M--){var D=o.$rowTokens[M];if(D&&(D.value=="while"||D.value=="until"||D.value=="for")){I=0;break}}break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");(!x.test(y)||p=="case")&&(I=0,E=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);x.test(y)||(I=0,E=!0);break;case"when":(/\sthen\s/.test(y)||p=="case")&&(I=0,E=!0)}if(I>0)A.unshift(u.value);else if(I<=0&&E===!1){if(A.shift(),!A.length&&((p=="while"||p=="until"||p=="for")&&u.value!="do"||u.value=="do"&&R==-1&&I!=0||u.value!="do"))break;I===0&&A.unshift(u.value)}}}if(!u)return null;if(c)return T.push(o.getCurrentTokenRange()),T;var l=o.getCurrentTokenRow();if(R===-1){if(u.type==="comment.multiline")var $=6;else var $=a.getLine(l).length;return new w(l,$,b-1,k)}return new w(b,k,l-1,a.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(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../range").Range,a=e("./folding/ruby").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords};f.inherits(l,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,c,o){var u=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,s),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(s=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),R=c.match(/^\s*(class|def|module)\s.*$/),A=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||R||A||k)&&(u+=o)}return u},this.checkOutdent=function(s,c,o){return/^\s+(end|else|rescue|ensure)$/.test(c+o)||this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(s,c,o){var u=c.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(c,o);var p=this.$getIndent(u),y=c.getLine(o-1),x=this.$getIndent(y),R=c.getTabString();x.length<=p.length&&p.slice(-R.length)==R&&c.remove(new g(o,p.length-R.length,o,p.length))},this.getMatching=function(s,c,o){if(c==null){var u=s.selection.lead;o=u.column,c=u.row}var p=s.getTokenAt(c,o);if(p&&p.value in this.indentKeywords)return this.foldingRules.rubyBlock(s,c,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),i.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(e){n&&(n.exports=e)})}()}(yp)),yp.exports}jw();var bp={exports:{}},xp;function Ww(){return xp||(xp=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",g="True|False|None|NotImplemented|Ellipsis|__debug__",a="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":a,"variable.language":"self|cls","constant.language":g,keyword:h},"identifier"),s="[uU]?",c="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",p="(?:(?:[1-9]\\d*)|(?:0))",y="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",A="(?:"+p+"|"+y+"|"+x+"|"+R+")",k="(?:[eE][+-]?\\d+)",b="(?:\\.\\d+)",T="(?:\\d+)",E="(?:(?:"+T+"?"+b+")|(?:"+T+"\\.))",I="(?:(?:"+E+"|"+T+")"+k+")",M="(?:"+I+"|"+E+")",D=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:s+'"{3}',next:"qqstring3"},{token:"string",regex:s+'"(?=.)',next:"qqstring"},{token:"string",regex:s+"'{3}",next:"qstring3"},{token:"string",regex:s+"'(?=.)",next:"qstring"},{token:"string",regex: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:D},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:D},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:D},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:D},{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:D},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:D},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:D},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:D},{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:"(?:"+M+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:M},{token:"constant.numeric",regex:A+"[lL]\\b"},{token:"constant.numeric",regex:A+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};f.inherits(w,v),i.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};f.inherits(w,v),(function(){this.getFoldWidgetRange=function(h,g,a){var l=h.getLine(a),s=l.match(this.foldingStartMarker);if(s)return s[1]?this.openingBracketBlock(h,s[1],a,s.index):s[2]?this.indentationBlock(h,a,s.index+s[2].length):this.indentationBlock(h,a)}}).call(w.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,g=e("../range").Range,a=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};f.inherits(a,v),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(s,c,o){var u=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,s),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(s=="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(s,c,o){if(o!==`\r
970
+ `,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,i,m){e("./loader_build")(i);var f=e("./lib/dom"),v=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,g=e("./undomanager").UndoManager,a=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),i.config=e("./config"),i.edit=function(s,c){if(typeof s=="string"){var o=s;if(s=document.getElementById(o),!s)throw new Error("ace.edit can't find div #"+o)}if(s&&s.env&&s.env.editor instanceof w)return s.env.editor;var u="";if(s&&/input|textarea/i.test(s.tagName)){var p=s;u=p.value,s=f.createElement("pre"),p.parentNode.replaceChild(s,p)}else s&&(u=s.textContent,s.innerHTML="");var y=i.createEditSession(u),x=new w(new a(s),y,c),R={document:y,editor:x,onResize:x.resize.bind(x,null)};return p&&(R.textarea=p),x.on("destroy",function(){R.editor.container.env=null}),x.container.env=x.env=R,x},i.createEditSession=function(s,c){var o=new h(s,c);return o.setUndoManager(new g),o},i.Range=v,i.Editor=w,i.EditSession=h,i.UndoManager=g,i.VirtualRenderer=a;var l=i.config.version;i.version=l}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var i=function(){return this}();!i&&typeof window<"u"&&(i=window),!i&&typeof self<"u"&&(i=self),i.ace||(i.ace=e);for(var m in e)e.hasOwnProperty(m)&&(i.ace[m]=e[m]);i.ace.default=i.ace,n.exports=i.ace})}()}(vp)),vp.exports}Ww();var wp={exports:{}},bp;function Uw(){return bp||(bp=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};i.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},i.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},i.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=i.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},g=i.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},a=i.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=i.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},s=i.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=i.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},o=i.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},u=i.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},p=function(){var y="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",R="true|TRUE|false|FALSE|nil|NIL|ARGF|ARGV|DATA|ENV|RUBY_PLATFORM|RUBY_RELEASE_DATE|RUBY_VERSION|STDERR|STDIN|STDOUT|TOPLEVEL_BINDING|RUBY_PATCHLEVEL|RUBY_REVISION|RUBY_COPYRIGHT|RUBY_ENGINE|RUBY_ENGINE_VERSION|RUBY_DESCRIPTION",A="$DEBUG|$defout|$FILENAME|$LOAD_PATH|$SAFE|$stdin|$stdout|$stderr|$VERBOSE|$!|root_url|flash|session|cookies|params|request|response|logger|self",k=this.$keywords=this.createKeywordMapper({keyword:x,"constant.language":R,"variable.language":A,"support.function":y,"invalid.deprecated":"debugger"},"identifier"),b=`\\\\(?:n(?:[1-7][0-7]{0,2}|0)|[nsrtvfbae'"\\\\]|c(?:\\\\M-)?.|M-(?:\\\\C-|\\\\c)?.|C-(?:\\\\M-)?.|[0-7]{3}|x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|u{[\\da-fA-F]{1,6}(?:\\s[\\da-fA-F]{1,6})*})`,T={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"comment.multiline",regex:"^=begin(?=$|\\s.*$)",next:"comment"},{token:"string.regexp",regex:/[/](?=.*\/)/,next:"regex"},[{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(")/,push:[{token:"constant.language.escape",regex:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:b},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/`/,next:"pop"},{defaultToken:"string"}]},{token:["constant.other.symbol.ruby","string.start"],regex:/(:)?(')/,push:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string.end",regex:/'/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/%[qwx]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,I),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,I),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,I),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,I),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(E,I,M){M.length&&(M=[]);var D=E[E.length-1];return M.unshift(D,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\\?(?:"+b+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},s,c,w,h,o,g,a,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(E,I,M){var D=E[2]=="-"||E[2]=="~"?"indentedHeredoc":"heredoc",$=E.split(this.splitRegex);return M.push(D,$[3]),[{type:"constant",value:$[1]},{type:"string",value:$[2]},{type:"support.class",value:$[3]},{type:"string",value:$[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(E,I,M){return E===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(E,I,M){return E===M[1]?(M.shift(),M.shift(),this.next=M[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(E,I){return I[0]==="heredoc"||I[0]==="indentedHeredoc"?I[0]:E}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(E,I,M){return this.next="",E=="}"&&M.length>1&&M[1]!="start"&&(M.shift(),this.next=M.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:b},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(E,I,M){return M.length&&E===T[M[0]]?(M.shift(),this.next=M.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(E,I,M){return M.length&&E===M[0]?(M.unshift(E,I),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(E,I,M){return M.length&&E[0]===T[M[0]]?(M.shift(),this.next=M.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()};f.inherits(p,v),i.RubyHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var g=w.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,s=w.findMatchingBracket({row:h,column:l});if(!s||s.row==h)return 0;var c=this.$getIndent(w.getLine(s.row));w.replace(new f(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,g=i.FoldMode=function(){};f.inherits(g,v),(function(){this.indentKeywords={class:1,def:1,module:1,do:1,unless:1,if:1,while:1,for:1,until:1,begin:1,else:0,elsif:0,rescue:0,ensure:0,when:0,end:-1,case:1,"=begin":1,"=end":-1},this.foldingStartMarker=/(?:\s|^)(def|do|while|class|unless|module|if|for|until|begin|else|elsif|case|rescue|ensure|when)\b|({\s*$)|(=begin)/,this.foldingStopMarker=/(=end(?=$|\s.*$))|(^\s*})|\b(end)\b/,this.getFoldWidget=function(a,l,s){var c=a.getLine(s),o=this.foldingStartMarker.test(c),u=this.foldingStopMarker.test(c);if(o&&!u){var p=c.match(this.foldingStartMarker);if(p[1]){if((p[1]=="if"||p[1]=="else"||p[1]=="while"||p[1]=="until"||p[1]=="unless")&&(p[1]=="else"&&/^\s*else\s*$/.test(c)===!1||/^\s*(?:if|else|while|until|unless)\s*/.test(c)===!1)||p[1]=="when"&&/\sthen\s/.test(c)===!0)return;if(a.getTokenAt(s,p.index+2).type==="keyword")return"start"}else if(!p[3]||a.getTokenAt(s,p.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!u||o&&u)return"";var p=c.match(this.foldingStopMarker);if(p[3]==="end"){if(a.getTokenAt(s,p.index+1).type==="keyword")return"end"}else if(!p[1]||a.getTokenAt(s,p.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,l,s){var c=a.doc.getLine(s),o=this.foldingStartMarker.exec(c);if(o)return o[1]||o[3]?this.rubyBlock(a,s,o.index+2):this.openingBracketBlock(a,"{",s,o.index);var o=this.foldingStopMarker.exec(c);if(o)return o[3]==="end"&&a.getTokenAt(s,o.index+1).type==="keyword"?this.rubyBlock(a,s,o.index+1):o[1]==="=end"&&a.getTokenAt(s,o.index+1).type==="comment.multiline"?this.rubyBlock(a,s,o.index+1):this.closingBracketBlock(a,"}",s,o.index+o[0].length)},this.rubyBlock=function(a,l,s,c){var o=new h(a,l,s),u=o.getCurrentToken();if(!(!u||u.type!="keyword"&&u.type!="comment.multiline")){var p=u.value,y=a.getLine(l);switch(u.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);if(!x.test(y))return;var R=this.indentKeywords[p];break;case"when":if(/\sthen\s/.test(y))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");if(!x.test(y))return;var R=1;break;default:var R=this.indentKeywords[p]}var A=[p];if(R){var k=R===-1?a.getLine(l-1).length:a.getLine(l).length,b=l,T=[];if(T.push(o.getCurrentTokenRange()),o.step=R===-1?o.stepBackward:o.stepForward,u.type=="comment.multiline"){for(;u=o.step();)if(u.type==="comment.multiline"){if(R==1){if(k=6,u.value=="=end")break}else if(u.value=="=begin")break}}else for(;u=o.step();){var E=!1;if(u.type==="keyword"){var I=R*this.indentKeywords[u.value];switch(y=a.getLine(o.getCurrentTokenRow()),u.value){case"do":for(var M=o.$tokenIndex-1;M>=0;M--){var D=o.$rowTokens[M];if(D&&(D.value=="while"||D.value=="until"||D.value=="for")){I=0;break}}break;case"else":var x=new RegExp("^\\s*"+u.value+"\\s*$");(!x.test(y)||p=="case")&&(I=0,E=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+u.value);x.test(y)||(I=0,E=!0);break;case"when":(/\sthen\s/.test(y)||p=="case")&&(I=0,E=!0)}if(I>0)A.unshift(u.value);else if(I<=0&&E===!1){if(A.shift(),!A.length&&((p=="while"||p=="until"||p=="for")&&u.value!="do"||u.value=="do"&&R==-1&&I!=0||u.value!="do"))break;I===0&&A.unshift(u.value)}}}if(!u)return null;if(c)return T.push(o.getCurrentTokenRange()),T;var l=o.getCurrentTokenRow();if(R===-1){if(u.type==="comment.multiline")var $=6;else var $=a.getLine(l).length;return new w(l,$,b-1,k)}return new w(b,k,l-1,a.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(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../range").Range,a=e("./folding/ruby").FoldMode,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a,this.indentKeywords=this.foldingRules.indentKeywords};f.inherits(l,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,c,o){var u=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,s),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(s=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),R=c.match(/^\s*(class|def|module)\s.*$/),A=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||R||A||k)&&(u+=o)}return u},this.checkOutdent=function(s,c,o){return/^\s+(end|else|rescue|ensure)$/.test(c+o)||this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(s,c,o){var u=c.getLine(o);if(/}/.test(u))return this.$outdent.autoOutdent(c,o);var p=this.$getIndent(u),y=c.getLine(o-1),x=this.$getIndent(y),R=c.getTabString();x.length<=p.length&&p.slice(-R.length)==R&&c.remove(new g(o,p.length-R.length,o,p.length))},this.getMatching=function(s,c,o){if(c==null){var u=s.selection.lead;o=u.column,c=u.row}var p=s.getTokenAt(c,o);if(p&&p.value in this.indentKeywords)return this.foldingRules.rubyBlock(s,c,o,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),i.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(e){n.exports=e})}()}(wp)),wp.exports}Uw();var xp={exports:{}},_p;function Vw(){return _p||(_p=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){var h="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",g="True|False|None|NotImplemented|Ellipsis|__debug__",a="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":a,"variable.language":"self|cls","constant.language":g,keyword:h},"identifier"),s="[uU]?",c="[rR]",o="[fF]",u="(?:[rR][fF]|[fF][rR])",p="(?:(?:[1-9]\\d*)|(?:0))",y="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",A="(?:"+p+"|"+y+"|"+x+"|"+R+")",k="(?:[eE][+-]?\\d+)",b="(?:\\.\\d+)",T="(?:\\d+)",E="(?:(?:"+T+"?"+b+")|(?:"+T+"\\.))",I="(?:(?:"+E+"|"+T+")"+k+")",M="(?:"+I+"|"+E+")",D=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:s+'"{3}',next:"qqstring3"},{token:"string",regex:s+'"(?=.)',next:"qqstring"},{token:"string",regex:s+"'{3}",next:"qstring3"},{token:"string",regex:s+"'(?=.)",next:"qstring"},{token:"string",regex: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:D},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:D},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:D},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:D},{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:D},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:D},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:D},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:D},{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:"(?:"+M+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:M},{token:"constant.numeric",regex:A+"[lL]\\b"},{token:"constant.numeric",regex:A+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};f.inherits(w,v),i.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};f.inherits(w,v),(function(){this.getFoldWidgetRange=function(h,g,a){var l=h.getLine(a),s=l.match(this.foldingStartMarker);if(s)return s[1]?this.openingBracketBlock(h,s[1],a,s.index):s[2]?this.indentationBlock(h,a,s.index+s[2].length):this.indentationBlock(h,a)}}).call(w.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,g=e("../range").Range,a=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};f.inherits(a,v),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(s,c,o){var u=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,s),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(s=="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(s,c,o){if(o!==`\r
971
971
  `&&o!=="\r"&&o!==`
972
- `)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),s).tokens;if(!u)return!1;do var p=u.pop();while(p&&(p.type=="comment"||p.type=="text"&&p.value.match(/^\s+$/)));return p?p.type=="keyword"&&l[p.value]:!1},this.autoOutdent=function(s,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),p=c.getTabString();u.slice(-p.length)==p&&c.remove(new g(o,u.length-p.length,o,u.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(a.prototype),i.Mode=a}),function(){ace.require(["ace/mode/python"],function(e){n&&(n.exports=e)})}()}(bp)),bp.exports}Ww();var _p={exports:{}},kp;function Uw(){return kp||(kp=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};f.inherits(w,v),i.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var g=w.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,s=w.findMatchingBracket({row:h,column:l});if(!s||s.row==h)return 0;var c=this.$getIndent(w.getLine(s.row));w.replace(new f(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){var f=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};f.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,a,l){var s=g.getLine(l);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var c=this._getFoldWidgetBase(g,a,l);return!c&&this.startRegionRe.test(s)?"start":c},this.getFoldWidgetRange=function(g,a,l,s){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 p=g.getCommentFoldRange(l,u+o[0].length,1);return p&&!p.isMultiLine()&&(s?p=this.getSectionRange(g,l):a!="all"&&(p=null)),p}if(a!=="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,a){var l=g.getLine(a),s=l.search(/\S/),c=a,o=l.length;a+=1;for(var u=a,p=g.getLength();++a<p;){l=g.getLine(a);var y=l.search(/\S/);if(y!==-1){if(s>y)break;var x=this.getFoldWidgetRange(g,"all",a);if(x){if(x.start.row<=c)break;if(x.isMultiLine())a=x.end.row;else if(s==y)break}u=a}}return new v(c,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,a,l){for(var s=a.search(/\s*$/),c=g.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++l<c;){a=g.getLine(l);var y=u.exec(a);if(y&&(y[1]?p--:p++,!p))break}var x=l;if(x>o)return new v(o,s,x,a.length)}}).call(h.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("./folding/cstyle").FoldMode,a=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};f.inherits(l,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(s,c,o){var u=this.$getIndent(c);if(s=="start"){var p=c.match(/^.*[\{\(\[]\s*$/);p&&(u+=o)}return u},this.checkOutdent=function(s,c,o){return this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(s,c,o){this.$outdent.autoOutdent(c,o)},this.createWorker=function(s){var c=new a(["ace"],"ace/mode/json_worker","JsonWorker");return c.attachToDocument(s.getDocument()),c.on("annotate",function(o){s.setAnnotations(o.data)}),c.on("terminate",function(){s.clearAnnotations()}),c},this.$id="ace/mode/json"}).call(l.prototype),i.Mode=l}),function(){ace.require(["ace/mode/json"],function(e){n&&(n.exports=e)})}()}(_p)),_p.exports}Uw();var $p={exports:{}},Sp;function Vw(){return Sp||(Sp=1,function(n,t){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop");e("../lib/lang");var v=e("./text_highlight_rules").TextHighlightRules,w=i.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",h=i.supportFunction="rgb|rgba|url|attr|counter|counters",g=i.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=i.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=i.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",s=i.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=i.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=i.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",u=function(){var p=this.createKeywordMapper({"support.function":h,"support.constant":g,"support.type":w,"support.constant.color":a,"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:s},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+s+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:s},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:c},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:p,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};f.inherits(u,v),i.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};f.inherits(w,v),w.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},w.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},i.JsDocCommentHighlightRules=w}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,i,m){function f(){var s=a.replace("\\d","\\d\\-"),c={onMatch:function(u,p,y){var x=u.charAt(1)=="/"?2:1;return x==1?(p!=this.nextState?y.unshift(this.next,this.nextState,0):y.unshift(this.next),y[2]++):x==2&&p==this.nextState&&(y[1]--,(!y[1]||y[1]<0)&&(y.shift(),y.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:u.slice(0,x)},{type:"meta.tag.tag-name.xml",value:u.substr(x)}]},regex:"</?(?:"+s+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(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,p,y){return p==y[0]&&y.shift(),u.length==2&&(y[0]==this.nextState&&y[1]--,(!y[1]||y[1]<0)&&y.splice(0,2)),this.next=y[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,v("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:s},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},c],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function v(s){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",l=function(s){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",p="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",y="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(c).join("|")+"\\b)"+a+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),v("no_regex"),x,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:y+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),v("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[v("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:p},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:p},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!s||!s.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(R,A,k){if(this.next=R=="{"?this.nextState:"",R=="{"&&k.length)k.unshift("start",A);else if(R=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return R=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:p},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!s||s.jsx!=0)&&f.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(l,g),i.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(h){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===w&&this.normalizeRules()};(function(){this.embedTagRules=function(h,g,a){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(<)("+a+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:g+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,s,c){return c.splice(0),this.token}}],this.embedRules(h,g,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(</)("+a+"(?=\\s|>|$))",next:a+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(v.prototype),f.inherits(w,v),i.XmlHighlightRules=w}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,g=e("./xml_highlight_rules").XmlHighlightRules,a=v.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),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(s,c){var o=a[c];return["meta.tag.punctuation."+(s=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(w,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};f.inherits(l,g),i.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,i,m){var f=e("../config").$modes,v=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,g=e("./html_highlight_rules").HtmlHighlightRules,a=function(s){return"(?:[^"+w.escapeRegExp(s)+"\\\\]|\\\\.)*"},l=function(){g.call(this);var s={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,p,y){var x=o.match(/^(\s*)([`~]+)(.*)/),R=/[\w-]+|$/.exec(x[3])[0];return f[R]||(R=""),p.unshift("githubblock",[],[x[1],x[2],R],u),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(o,u,p,y){var x=p[1],R=p[2][0],A=p[2][1],k=p[2][2],b=/^(\s*)(`+|~+)\s*$/.exec(o);if(b&&b[1].length<R.length+3&&b[2].length>=A.length&&b[2][0]==A[0])return p.splice(0,3),this.next=p.shift(),this.token;if(this.next="",k&&f[k]){var T=f[k].getTokenizer().getLineTokens(o,x.slice(0));return p[1]=T.state,T.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},s,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+a("]")+")(\\]\\s*\\[)("+a("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+a("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+a('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},s,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:c}),this.normalizeRules()};v.inherits(l,h),i.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=i.FoldMode=function(){};f.inherits(h,v),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,a,l){var s=g.getLine(l);return this.foldingStartMarker.test(s)?s[0]=="`"&&g.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,a,l){function s(E){return R=g.getTokens(E)[0],R&&R.type.lastIndexOf(A,0)===0}function c(){var E=R.value[0];return E=="="?6:E=="-"?5:7-R.value.search(/[^#]|$/)}var o=g.getLine(l),u=o.length,p=g.getLength(),y=l,x=l;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(l)!=="start"){for(;++l<p&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(y,u,l,0)}for(;l-- >0&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(l,o.length,y,0)}var R,A="markup.heading";if(s(l)){for(var k=c();++l<p;)if(s(l)){var b=c();if(b>=k)break}if(x=l-(!R||["=","-"].indexOf(R.value[0])==-1?1:2),x>y)for(;x>y&&/^\s*$/.test(g.getLine(x));)x--;if(x>y){var T=g.getLine(x).length;return new w(y,u,x,T)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var g=w.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,s=w.findMatchingBracket({row:h,column:l});if(!s||s.row==h)return 0;var c=this.$getIndent(w.getLine(s.row));w.replace(new f(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,i,m){function f(a,l){return a&&a.type.lastIndexOf(l+".xml")>-1}var v=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(a,l,s,c,o){if(o=='"'||o=="'"){var u=o,p=c.doc.getTextRange(s.getSelectionRange());if(p!==""&&p!=="'"&&p!='"'&&s.getWrapBehavioursEnabled())return{text:u+p+u,selection:!1};var y=s.getCursorPosition(),x=c.doc.getLine(y.row),R=x.substring(y.column,y.column+1),A=new h(c,y.row,y.column),k=A.getCurrentToken();if(R==u&&(f(k,"attribute-value")||f(k,"string")))return{text:"",selection:[1,1]};if(k||(k=A.stepBackward()),!k)return;for(;f(k,"tag-whitespace")||f(k,"whitespace");)k=A.stepBackward();var b=!R||R.match(/\s/);if(f(k,"attribute-equals")&&(b||R==">")||f(k,"decl-attribute-equals")&&(b||R=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,l,s,c,o){var u=c.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var p=c.doc.getLine(o.start.row),y=p.substring(o.start.column+1,o.start.column+2);if(y==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(a,l,s,c,o){if(o==">"){var u=s.getSelectionRange().start,p=new h(c,u.row,u.column),y=p.getCurrentToken()||p.stepBackward();if(!y||!(f(y,"tag-name")||f(y,"tag-whitespace")||f(y,"attribute-name")||f(y,"attribute-equals")||f(y,"attribute-value"))||f(y,"reference.attribute-value"))return;if(f(y,"attribute-value")){var x=p.getCurrentTokenColumn()+y.value.length;if(u.column<x)return;if(u.column==x){var R=p.stepForward();if(R&&f(R,"attribute-value"))return;p.stepBackward()}}if(/^\s*>/.test(c.getLine(u.row).slice(u.column)))return;for(;!f(y,"tag-name");)if(y=p.stepBackward(),y.value=="<"){y=p.stepForward();break}var A=p.getCurrentTokenRow(),k=p.getCurrentTokenColumn();if(f(p.stepBackward(),"end-tag-open"))return;var b=y.value;return A==u.row&&(b=b.substring(0,u.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(b.toLowerCase())?void 0:{text:"></"+b+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,l,s,c,o){if(o==`
972
+ `)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),s).tokens;if(!u)return!1;do var p=u.pop();while(p&&(p.type=="comment"||p.type=="text"&&p.value.match(/^\s+$/)));return p?p.type=="keyword"&&l[p.value]:!1},this.autoOutdent=function(s,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),p=c.getTabString();u.slice(-p.length)==p&&c.remove(new g(o,u.length-p.length,o,u.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(a.prototype),i.Mode=a}),function(){ace.require(["ace/mode/python"],function(e){n.exports=e})}()}(xp)),xp.exports}Vw();var kp={exports:{}},$p;function qw(){return $p||($p=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};f.inherits(w,v),i.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var g=w.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,s=w.findMatchingBracket({row:h,column:l});if(!s||s.row==h)return 0;var c=this.$getIndent(w.getLine(s.row));w.replace(new f(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){var f=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};f.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,a,l){var s=g.getLine(l);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var c=this._getFoldWidgetBase(g,a,l);return!c&&this.startRegionRe.test(s)?"start":c},this.getFoldWidgetRange=function(g,a,l,s){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 p=g.getCommentFoldRange(l,u+o[0].length,1);return p&&!p.isMultiLine()&&(s?p=this.getSectionRange(g,l):a!="all"&&(p=null)),p}if(a!=="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,a){var l=g.getLine(a),s=l.search(/\S/),c=a,o=l.length;a+=1;for(var u=a,p=g.getLength();++a<p;){l=g.getLine(a);var y=l.search(/\S/);if(y!==-1){if(s>y)break;var x=this.getFoldWidgetRange(g,"all",a);if(x){if(x.start.row<=c)break;if(x.isMultiLine())a=x.end.row;else if(s==y)break}u=a}}return new v(c,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,a,l){for(var s=a.search(/\s*$/),c=g.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++l<c;){a=g.getLine(l);var y=u.exec(a);if(y&&(y[1]?p--:p++,!p))break}var x=l;if(x>o)return new v(o,s,x,a.length)}}).call(h.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("./folding/cstyle").FoldMode,a=e("../worker/worker_client").WorkerClient,l=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new g};f.inherits(l,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(s,c,o){var u=this.$getIndent(c);if(s=="start"){var p=c.match(/^.*[\{\(\[]\s*$/);p&&(u+=o)}return u},this.checkOutdent=function(s,c,o){return this.$outdent.checkOutdent(c,o)},this.autoOutdent=function(s,c,o){this.$outdent.autoOutdent(c,o)},this.createWorker=function(s){var c=new a(["ace"],"ace/mode/json_worker","JsonWorker");return c.attachToDocument(s.getDocument()),c.on("annotate",function(o){s.setAnnotations(o.data)}),c.on("terminate",function(){s.clearAnnotations()}),c},this.$id="ace/mode/json"}).call(l.prototype),i.Mode=l}),function(){ace.require(["ace/mode/json"],function(e){n.exports=e})}()}(kp)),kp.exports}qw();var Sp={exports:{}},Cp;function Gw(){return Cp||(Cp=1,function(n,t){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop");e("../lib/lang");var v=e("./text_highlight_rules").TextHighlightRules,w=i.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",h=i.supportFunction="rgb|rgba|url|attr|counter|counters",g=i.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=i.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=i.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",s=i.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=i.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",o=i.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",u=function(){var p=this.createKeywordMapper({"support.function":h,"support.constant":g,"support.type":w,"support.constant.color":a,"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:s},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+s+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:s},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:c},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:o},{include:"url"},{token:p,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};f.inherits(u,v),i.CssHighlightRules=u}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};f.inherits(w,v),w.getTagRule=function(h){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},w.getStartRule=function(h){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:h}},w.getEndRule=function(h){return{token:"comment.doc",regex:"\\*\\/",next:h}},i.JsDocCommentHighlightRules=w}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,i,m){function f(){var s=a.replace("\\d","\\d\\-"),c={onMatch:function(u,p,y){var x=u.charAt(1)=="/"?2:1;return x==1?(p!=this.nextState?y.unshift(this.next,this.nextState,0):y.unshift(this.next),y[2]++):x==2&&p==this.nextState&&(y[1]--,(!y[1]||y[1]<0)&&(y.shift(),y.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:u.slice(0,x)},{type:"meta.tag.tag-name.xml",value:u.substr(x)}]},regex:"</?(?:"+s+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(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,p,y){return p==y[0]&&y.shift(),u.length==2&&(y[0]==this.nextState&&y[1]--,(!y[1]||y[1]<0)&&y.splice(0,2)),this.next=y[0]||"start",[{type:this.token,value:u}]},nextState:"jsx"},o,v("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:s},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},c],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function v(s){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:s||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,g=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",l=function(s){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",p="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",y="(function)(\\s*)(\\*?)",x={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(c).join("|")+"\\b)"+a+")(\\s*)(\\()"};this.$rules={no_regex:[h.getStartRule("doc-start"),v("no_regex"),x,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+y+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:o,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:y+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),v("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[v("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:p},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:p},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!s||!s.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(R,A,k){if(this.next=R=="{"?this.nextState:"",R=="{"&&k.length)k.unshift("start",A);else if(R=="}"&&k.length&&(k.shift(),this.next=k.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return R=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:p},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!s||s.jsx!=0)&&f.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(l,g),i.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=function(h){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===w&&this.normalizeRules()};(function(){this.embedTagRules=function(h,g,a){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(<)("+a+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:g+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,s,c){return c.splice(0),this.token}}],this.embedRules(h,g,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+a+".tag-name.xml"],regex:"(</)("+a+"(?=\\s|>|$))",next:a+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(v.prototype),f.inherits(w,v),i.XmlHighlightRules=w}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,g=e("./xml_highlight_rules").XmlHighlightRules,a=v.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),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(s,c){var o=a[c];return["meta.tag.punctuation."+(s=="<"?"":"end-")+"tag-open.xml","meta.tag"+(o?"."+o:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(w,"css-","style"),this.embedTagRules(new h({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};f.inherits(l,g),i.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,i,m){var f=e("../config").$modes,v=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,g=e("./html_highlight_rules").HtmlHighlightRules,a=function(s){return"(?:[^"+w.escapeRegExp(s)+"\\\\]|\\\\.)*"},l=function(){g.call(this);var s={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(o,u,p,y){var x=o.match(/^(\s*)([`~]+)(.*)/),R=/[\w-]+|$/.exec(x[3])[0];return f[R]||(R=""),p.unshift("githubblock",[],[x[1],x[2],R],u),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(o,u,p,y){var x=p[1],R=p[2][0],A=p[2][1],k=p[2][2],b=/^(\s*)(`+|~+)\s*$/.exec(o);if(b&&b[1].length<R.length+3&&b[2].length>=A.length&&b[2][0]==A[0])return p.splice(0,3),this.next=p.shift(),this.token;if(this.next="",k&&f[k]){var T=f[k].getTokenizer().getLineTokens(o,x.slice(0));return p[1]=T.state,T.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(o){return"markup.heading."+o.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},s,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+a("]")+")(\\]\\s*\\[)("+a("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+a("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+a('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},s,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:c}),this.normalizeRules()};v.inherits(l,h),i.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=e("../../range").Range,h=i.FoldMode=function(){};f.inherits(h,v),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(g,a,l){var s=g.getLine(l);return this.foldingStartMarker.test(s)?s[0]=="`"&&g.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(g,a,l){function s(E){return R=g.getTokens(E)[0],R&&R.type.lastIndexOf(A,0)===0}function c(){var E=R.value[0];return E=="="?6:E=="-"?5:7-R.value.search(/[^#]|$/)}var o=g.getLine(l),u=o.length,p=g.getLength(),y=l,x=l;if(o.match(this.foldingStartMarker)){if(o[0]=="`"){if(g.bgTokenizer.getState(l)!=="start"){for(;++l<p&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(y,u,l,0)}for(;l-- >0&&(o=g.getLine(l),!(o[0]=="`"&o.substring(0,3)=="```")););return new w(l,o.length,y,0)}var R,A="markup.heading";if(s(l)){for(var k=c();++l<p;)if(s(l)){var b=c();if(b>=k)break}if(x=l-(!R||["=","-"].indexOf(R.value[0])==-1?1:2),x>y)for(;x>y&&/^\s*$/.test(g.getLine(x));)x--;if(x>y){var T=g.getLine(x).length;return new w(y,u,x,T)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,i,m){var f=e("../range").Range,v=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var g=w.getLine(h),a=g.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,s=w.findMatchingBracket({row:h,column:l});if(!s||s.row==h)return 0;var c=this.$getIndent(w.getLine(s.row));w.replace(new f(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(v.prototype),i.MatchingBraceOutdent=v}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,i,m){function f(a,l){return a&&a.type.lastIndexOf(l+".xml")>-1}var v=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,g=function(){this.add("string_dquotes","insertion",function(a,l,s,c,o){if(o=='"'||o=="'"){var u=o,p=c.doc.getTextRange(s.getSelectionRange());if(p!==""&&p!=="'"&&p!='"'&&s.getWrapBehavioursEnabled())return{text:u+p+u,selection:!1};var y=s.getCursorPosition(),x=c.doc.getLine(y.row),R=x.substring(y.column,y.column+1),A=new h(c,y.row,y.column),k=A.getCurrentToken();if(R==u&&(f(k,"attribute-value")||f(k,"string")))return{text:"",selection:[1,1]};if(k||(k=A.stepBackward()),!k)return;for(;f(k,"tag-whitespace")||f(k,"whitespace");)k=A.stepBackward();var b=!R||R.match(/\s/);if(f(k,"attribute-equals")&&(b||R==">")||f(k,"decl-attribute-equals")&&(b||R=="?"))return{text:u+u,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,l,s,c,o){var u=c.doc.getTextRange(o);if(!o.isMultiLine()&&(u=='"'||u=="'")){var p=c.doc.getLine(o.start.row),y=p.substring(o.start.column+1,o.start.column+2);if(y==u)return o.end.column++,o}}),this.add("autoclosing","insertion",function(a,l,s,c,o){if(o==">"){var u=s.getSelectionRange().start,p=new h(c,u.row,u.column),y=p.getCurrentToken()||p.stepBackward();if(!y||!(f(y,"tag-name")||f(y,"tag-whitespace")||f(y,"attribute-name")||f(y,"attribute-equals")||f(y,"attribute-value"))||f(y,"reference.attribute-value"))return;if(f(y,"attribute-value")){var x=p.getCurrentTokenColumn()+y.value.length;if(u.column<x)return;if(u.column==x){var R=p.stepForward();if(R&&f(R,"attribute-value"))return;p.stepBackward()}}if(/^\s*>/.test(c.getLine(u.row).slice(u.column)))return;for(;!f(y,"tag-name");)if(y=p.stepBackward(),y.value=="<"){y=p.stepForward();break}var A=p.getCurrentTokenRow(),k=p.getCurrentTokenColumn();if(f(p.stepBackward(),"end-tag-open"))return;var b=y.value;return A==u.row&&(b=b.substring(0,u.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(b.toLowerCase())?void 0:{text:"></"+b+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,l,s,c,o){if(o==`
973
973
  `){var u=s.getCursorPosition(),p=c.getLine(u.row),y=new h(c,u.row,u.column),x=y.getCurrentToken();if(f(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=y.stepBackward();if(!x)return;var R=x.value,A=y.getCurrentTokenRow();if(x=y.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[R]||!this.voidElements){var k=c.getTokenAt(u.row,u.column+1),p=c.getLine(A),b=this.$getIndent(p),T=b+c.getTabString();return k&&k.value==="</"?{text:`
974
974
  `+T+`
975
975
  `+b,selection:[1,T.length,1,T.length]}:{text:`
976
976
  `+T}}}}})};v.inherits(g,w),i.XmlBehaviour=g}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(e,i,m){var f=e("../../lib/oop"),v=e("../../token_iterator").TokenIterator,w=e("../behaviour/cstyle").CstyleBehaviour,h=e("../behaviour/xml").XmlBehaviour,g=function(){var a=new h({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(a),this.inherit(w),this.add("autoclosing-fragment","insertion",function(l,s,c,o,u){if(u==">"){var p=c.getSelectionRange().start,y=new v(o,p.row,p.column),x=y.getCurrentToken()||y.stepBackward();if(!x)return;if(x.value=="<")return{text:"></>",selection:[1,1]}}})};f.inherits(g,w),i.JavaScriptBehaviour=g}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,i,m){function f(l,s){return l.type.lastIndexOf(s+".xml")>-1}var v=e("../../lib/oop"),w=e("../../range").Range,h=e("./fold_mode").FoldMode,g=i.FoldMode=function(l,s){h.call(this),this.voidElements=l||{},this.optionalEndTags=v.mixin({},this.voidElements),s&&v.mixin(this.optionalEndTags,s)};v.inherits(g,h);var a=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(l,s,c){var o=this._getFirstTagInLine(l,c);return o?o.closing||!o.tagName&&o.selfClosing?s==="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,s){return/comment/.test(l.getState(s))&&/<!-/.test(l.getLine(s))?"start":""},this._getFirstTagInLine=function(l,s){for(var c=l.getTokens(s),o=new a,u=0;u<c.length;u++){var p=c[u];if(f(p,"tag-open")){if(o.end.column=o.start.column+p.value.length,o.closing=f(p,"end-tag-open"),p=c[++u],!p)return null;if(o.tagName=p.value,p.value===""){if(p=c[++u],!p)return null;o.tagName=p.value}for(o.end.column+=p.value.length,u++;u<c.length;u++)if(p=c[u],o.end.column+=p.value.length,f(p,"tag-close")){o.selfClosing=p.value=="/>";break}return o}if(f(p,"tag-close"))return o.selfClosing=p.value=="/>",o;o.start.column+=p.value.length}return null},this._findEndTagInLine=function(l,s,c,o){for(var u=l.getTokens(s),p=0,y=0;y<u.length;y++){var x=u[y];if(p+=x.value.length,!(p<o-1)&&f(x,"end-tag-open")&&(x=u[y+1],f(x,"tag-name")&&x.value===""&&(x=u[y+2]),x&&x.value==c))return!0}return!1},this.getFoldWidgetRange=function(l,s,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 w(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(e,i,m){var f=e("../../lib/oop"),v=e("../../range").Range,w=e("./fold_mode").FoldMode,h=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end)))};f.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,a,l){var s=g.getLine(l);if(this.singleLineBlockCommentRe.test(s)&&!this.startRegionRe.test(s)&&!this.tripleStarBlockCommentRe.test(s))return"";var c=this._getFoldWidgetBase(g,a,l);return!c&&this.startRegionRe.test(s)?"start":c},this.getFoldWidgetRange=function(g,a,l,s){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 p=g.getCommentFoldRange(l,u+o[0].length,1);return p&&!p.isMultiLine()&&(s?p=this.getSectionRange(g,l):a!="all"&&(p=null)),p}if(a!=="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,a){var l=g.getLine(a),s=l.search(/\S/),c=a,o=l.length;a+=1;for(var u=a,p=g.getLength();++a<p;){l=g.getLine(a);var y=l.search(/\S/);if(y!==-1){if(s>y)break;var x=this.getFoldWidgetRange(g,"all",a);if(x){if(x.start.row<=c)break;if(x.isMultiLine())a=x.end.row;else if(s==y)break}u=a}}return new v(c,o,u,g.getLine(u).length)},this.getCommentRegionBlock=function(g,a,l){for(var s=a.search(/\s*$/),c=g.getLength(),o=l,u=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++l<c;){a=g.getLine(l);var y=u.exec(a);if(y&&(y[1]?p--:p++,!p))break}var x=l;if(x>o)return new v(o,s,x,a.length)}}).call(h.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,i,m){var f=e("../../lib/oop"),v=e("./xml").FoldMode,w=e("./cstyle").FoldMode,h=i.FoldMode=function(g){g&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+g.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+g.end))),this.xmlFoldMode=new v};f.inherits(h,w),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(g,a,l){var s=this.getFoldWidgetBase(g,a,l);return s||this.xmlFoldMode.getFoldWidget(g,a,l)},this.getFoldWidgetRange=function(g,a,l,s){var c=this.getFoldWidgetRangeBase(g,a,l,s);return c||this.xmlFoldMode.getFoldWidgetRange(g,a,l)}}).call(h.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./javascript_highlight_rules").JavaScriptHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,a=e("./behaviour/javascript").JavaScriptBehaviour,l=e("./folding/javascript").FoldMode,s=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new a,this.foldingRules=new l};f.inherits(s,v),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(c,o,u){var p=this.$getIndent(o),y=this.getTokenizer().getLineTokens(o,c),x=y.tokens,R=y.state;if(x.length&&x[x.length-1].type=="comment")return p;if(c=="start"||c=="no_regex"){var A=o.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);A&&(p+=u)}else if(c=="doc-start"&&(R=="start"||R=="no_regex"))return"";return p},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(s.prototype),i.Mode=s}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,i,m){var f={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},v=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var w=document.createElement("c").style;for(var h in w)if(typeof w[h]=="string"){var g=h.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});f.hasOwnProperty(g)||(f[g]=1)}}this.completionsDefined=!0},this.getCompletions=function(w,h,g,a){if(this.completionsDefined||this.defineCompletions(),w==="ruleset"||h.$mode.$id=="ace/mode/scss"){var l=h.getLine(g.row).substr(0,g.column),s=/\([^)]*$/.test(l);return s&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(w,h,g,a):this.getPropertyCompletions(w,h,g,a,s)}return[]},this.getPropertyCompletions=function(w,h,g,a,l){l=l||!1;var s=Object.keys(f);return s.map(function(c){return{caption:c,snippet:c+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(w,h,g,a){var l=h.getLine(g.row).substr(0,g.column),s=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!s)return[];var c=[];return s in f&&typeof f[s]=="object"&&(c=Object.keys(f[s])),c.map(function(o){return{caption:o,snippet:o,meta:"property value",score:1e6}})}}).call(v.prototype),i.CssCompletions=v}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,i,m){var f=e("../../lib/oop");e("../behaviour").Behaviour;var v=e("./cstyle").CstyleBehaviour,w=e("../../token_iterator").TokenIterator,h=function(){this.inherit(v),this.add("colon","insertion",function(g,a,l,s,c){if(c===":"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=new w(s,o.row,o.column),p=u.getCurrentToken();if(p&&p.value.match(/\s+/)&&(p=u.stepBackward()),p&&p.type==="support.type"){var y=s.doc.getLine(o.row),x=y.substring(o.column,o.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(y.substring(o.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(g,a,l,s,c){var o=s.doc.getTextRange(c);if(!c.isMultiLine()&&o===":"){var u=l.getCursorPosition(),p=new w(s,u.row,u.column),y=p.getCurrentToken();if(y&&y.value.match(/\s+/)&&(y=p.stepBackward()),y&&y.type==="support.type"){var x=s.doc.getLine(c.start.row),R=x.substring(c.end.column,c.end.column+1);if(R===";")return c.end.column++,c}}}),this.add("semicolon","insertion",function(g,a,l,s,c){if(c===";"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=s.doc.getLine(o.row),p=u.substring(o.column,o.column+1);if(p===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(g,a,l,s,c){if(c==="!"&&l.selection.isEmpty()){var o=l.getCursorPosition(),u=s.doc.getLine(o.row);if(/^\s*(;|}|$)/.test(u.substring(o.column)))return{text:"!important",selection:[10,10]}}})};f.inherits(h,v),i.CssBehaviour=h}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./css_highlight_rules").CssHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,g=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,s=e("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=w,this.$outdent=new h,this.$behaviour=new l,this.$completer=new a,this.foldingRules=new s};f.inherits(c,v),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(o,u,p){var y=this.$getIndent(u),x=this.getTokenizer().getLineTokens(u,o).tokens;if(x.length&&x[x.length-1].type=="comment")return y;var R=u.match(/^.*\{\s*$/);return R&&(y+=p),y},this.checkOutdent=function(o,u,p){return this.$outdent.checkOutdent(u,p)},this.autoOutdent=function(o,u,p){this.$outdent.autoOutdent(u,p)},this.getCompletions=function(o,u,p,y){return this.$completer.getCompletions(o,u,p,y)},this.createWorker=function(o){var u=new g(["ace"],"ace/mode/css_worker","Worker");return u.attachToDocument(o.getDocument()),u.on("annotate",function(p){o.setAnnotations(p.data)}),u.on("terminate",function(){o.clearAnnotations()}),u},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(c.prototype),i.Mode=c}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,i,m){var f=e("../../lib/oop"),v=e("./fold_mode").FoldMode,w=i.FoldMode=function(h,g){this.defaultMode=h,this.subModes=g};f.inherits(w,v),(function(){this.$getMode=function(h){typeof h!="string"&&(h=h[0]);for(var g in this.subModes)if(h.indexOf(g)===0)return this.subModes[g];return null},this.$tryMode=function(h,g,a,l){var s=this.$getMode(h);return s?s.getFoldWidget(g,a,l):""},this.getFoldWidget=function(h,g,a){return this.$tryMode(h.getState(a-1),h,g,a)||this.$tryMode(h.getState(a),h,g,a)||this.defaultMode.getFoldWidget(h,g,a)},this.getFoldWidgetRange=function(h,g,a){var l=this.$getMode(h.getState(a-1));return(!l||!l.getFoldWidget(h,g,a))&&(l=this.$getMode(h.getState(a))),(!l||!l.getFoldWidget(h,g,a))&&(l=this.defaultMode),l.getFoldWidgetRange(h,g,a)}}).call(w.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,i,m){var f=e("../../lib/oop"),v=e("./mixed").FoldMode,w=e("./xml").FoldMode,h=e("./cstyle").FoldMode,g=i.FoldMode=function(a,l){v.call(this,new w(a,l),{"js-":new h,"css-":new h})};f.inherits(g,v)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,i,m){function f(u,p){return u.type.lastIndexOf(p+".xml")>-1}function v(u,p){for(var y=new h(u,p.row,p.column),x=y.getCurrentToken();x&&!f(x,"tag-name");)x=y.stepBackward();if(x)return x.value}function w(u,p){for(var y=new h(u,p.row,p.column),x=y.getCurrentToken();x&&!f(x,"attribute-name");)x=y.stepBackward();if(x)return x.value}var h=e("../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"],a=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],l=g.concat(a),s={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,for:1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{for:1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,default:1},section:{},summary:{},u:{},ul:{},var:{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},c=Object.keys(s),o=function(){};(function(){this.getCompletions=function(u,p,y,x){var R=p.getTokenAt(y.row,y.column);if(!R)return[];if(f(R,"tag-name")||f(R,"tag-open")||f(R,"end-tag-open"))return this.getTagCompletions(u,p,y,x);if(f(R,"tag-whitespace")||f(R,"attribute-name"))return this.getAttributeCompletions(u,p,y,x);if(f(R,"attribute-value"))return this.getAttributeValueCompletions(u,p,y,x);var A=p.getLine(y.row).substr(0,y.column);return/&[a-z]*$/i.test(A)?this.getHTMLEntityCompletions(u,p,y,x):[]},this.getTagCompletions=function(u,p,y,x){return c.map(function(R){return{value:R,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(u,p,y,x){var R=v(p,y);if(!R)return[];var A=l;return R in s&&(A=A.concat(Object.keys(s[R]))),A.map(function(k){return{caption:k,snippet:k+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(u,p,y,x){var R=v(p,y),A=w(p,y);if(!R)return[];var k=[];return R in s&&A in s[R]&&typeof s[R][A]=="object"&&(k=Object.keys(s[R][A])),k.map(function(b){return{caption:b,snippet:b,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(u,p,y,x){var R=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return R.map(function(A){return{caption:A,snippet:A,meta:"html entity",score:1e6}})}}).call(o.prototype),i.HtmlCompletions=o}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,i,m){var f=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./javascript").Mode,g=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,s=e("./folding/html").FoldMode,c=e("./html_completions").HtmlCompletions,o=e("../worker/worker_client").WorkerClient,u=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],p=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],y=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=a,this.$behaviour=new l,this.$completer=new c,this.createModeDelegates({"js-":h,"css-":g}),this.foldingRules=new s(this.voidElements,v.arrayToMap(p))};f.inherits(y,w),(function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=v.arrayToMap(u),this.getNextLineIndent=function(x,R,A){return this.$getIndent(R)},this.checkOutdent=function(x,R,A){return!1},this.getCompletions=function(x,R,A,k){return this.$completer.getCompletions(x,R,A,k)},this.createWorker=function(x){if(this.constructor==y){var R=new o(["ace"],"ace/mode/html_worker","Worker");return R.attachToDocument(x.getDocument()),this.fragmentContext&&R.call("setOptions",[{context:this.fragmentContext}]),R.on("error",function(A){x.setAnnotations(A.data)}),R.on("terminate",function(){x.clearAnnotations()}),R}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(y.prototype),i.Mode=y}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,i,m){var f=e("../lib/oop"),v=e("./text_highlight_rules").TextHighlightRules,w=i.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",h=i.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",g=function(){var a=this.createKeywordMapper({keyword:w,"support.function.builtin":h,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",s="(?:\\.\\d+)",c="(?:\\d+)",o="(?:(?:"+c+"?"+s+")|(?:"+c+"\\.))",u="(?:(?:"+o+"|"+c+"))",p="(?:"+u+"|"+o+")",y="(?:&"+c+")",x="[a-zA-Z_][a-zA-Z0-9_]*",R="(?:"+x+"(?==))",A="(?:\\$(?:SHLVL|\\$|\\!|\\?))",k="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(b,T,E){var I=b[2]=="-"?"indentedHeredoc":"heredoc",M=b.split(this.splitRegex);return E.push(I,M[4]),[{type:"constant",value:M[1]},{type:"text",value:M[2]},{type:"string",value:M[3]},{type:"support.class",value:M[4]},{type:"string",value:M[5]}]},rules:{heredoc:[{onMatch:function(b,T,E){return b===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(b,T,E){return b===E[1]?(E.shift(),E.shift(),this.next=E[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(b,T){return T[0]==="heredoc"||T[0]==="indentedHeredoc"?T[0]:b}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:A},{token:"variable",regex:R},{include:"variables"},{token:"support.function",regex:k},{token:"support.function",regex:y},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:p},{token:"constant.numeric",regex:l+"\\b"},{token:a,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};f.inherits(g,v),i.ShHighlightRules=g}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(e,i,m){var f=e("../lib/oop"),v=e("./text").Mode,w=e("./sh_highlight_rules").ShHighlightRules,h=e("../range").Range,g=e("./folding/cstyle").FoldMode,a=function(){this.HighlightRules=w,this.foldingRules=new g,this.$behaviour=this.$defaultBehaviour};f.inherits(a,v),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(s,c,o){var u=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,s),y=p.tokens;if(y.length&&y[y.length-1].type=="comment")return u;if(s=="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(s,c,o){if(o!==`\r
977
977
  `&&o!=="\r"&&o!==`
978
- `)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),s).tokens;if(!u)return!1;do var p=u.pop();while(p&&(p.type=="comment"||p.type=="text"&&p.value.match(/^\s+$/)));return p?p.type=="keyword"&&l[p.value]:!1},this.autoOutdent=function(s,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),p=c.getTabString();u.slice(-p.length)==p&&c.remove(new h(o,u.length-p.length,o,u.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(a.prototype),i.Mode=a}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(e,i,m){var f=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,g=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,s=function(){this.HighlightRules=h,this.$behaviour=new g,this.foldingRules=new a};f.inherits(s,w),(function(){this.voidElements=v.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(s.prototype),i.Mode=s}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(e,i,m){var f=e("../lib/oop"),v=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,g=e("./folding/markdown").FoldMode,a=function(){this.HighlightRules=h,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new g,this.$behaviour=new v({braces:!0})};f.inherits(a,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,s,c){if(l=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(s);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(s)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(a.prototype),i.Mode=a}),function(){ace.require(["ace/mode/markdown"],function(e){n&&(n.exports=e)})}()}($p)),$p.exports}Vw();var Cp={exports:{}},Ap;function qw(){return Ap||(Ap=1,function(n,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,i,m){m.exports=`.ace-twilight .ace_gutter {
978
+ `)return!1;var u=this.getTokenizer().getLineTokens(c.trim(),s).tokens;if(!u)return!1;do var p=u.pop();while(p&&(p.type=="comment"||p.type=="text"&&p.value.match(/^\s+$/)));return p?p.type=="keyword"&&l[p.value]:!1},this.autoOutdent=function(s,c,o){o+=1;var u=this.$getIndent(c.getLine(o)),p=c.getTabString();u.slice(-p.length)==p&&c.remove(new h(o,u.length-p.length,o,u.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(a.prototype),i.Mode=a}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(e,i,m){var f=e("../lib/oop"),v=e("../lib/lang"),w=e("./text").Mode,h=e("./xml_highlight_rules").XmlHighlightRules,g=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,s=function(){this.HighlightRules=h,this.$behaviour=new g,this.foldingRules=new a};f.inherits(s,w),(function(){this.voidElements=v.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(s.prototype),i.Mode=s}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(e,i,m){var f=e("../lib/oop"),v=e("./behaviour/cstyle").CstyleBehaviour,w=e("./text").Mode,h=e("./markdown_highlight_rules").MarkdownHighlightRules,g=e("./folding/markdown").FoldMode,a=function(){this.HighlightRules=h,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new g,this.$behaviour=new v({braces:!0})};f.inherits(a,w),(function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,s,c){if(l=="listblock"){var o=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(s);if(!o)return"";var u=o[2];return u||(u=parseInt(o[3],10)+1+"."),o[1]+u+o[4]}return this.$getIndent(s)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(a.prototype),i.Mode=a}),function(){ace.require(["ace/mode/markdown"],function(e){n.exports=e})}()}(Sp)),Sp.exports}Gw();var Ap={exports:{}},Tp;function Yw(){return Tp||(Tp=1,function(n,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(e,i,m){m.exports=`.ace-twilight .ace_gutter {
979
979
  background: #232323;
980
980
  color: #E2E2E2
981
981
  }
@@ -1105,7 +1105,7 @@ System.register(["vue","vue-router","vuex","vuetify"],function(rn,Ne){"use stric
1105
1105
  .ace-twilight .ace_indent-guide-active {
1106
1106
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
1107
1107
  }
1108
- `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,i,m){i.isDark=!0,i.cssClass="ace-twilight",i.cssText=e("./twilight-css");var f=e("../lib/dom");f.importCssString(i.cssText,i.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){n&&(n.exports=e)})}()}(Cp)),Cp.exports}qw();var Tp={exports:{}},Mp;function Gw(){return Mp||(Mp=1,function(n,t){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,i,m){function f(b){var T=new Date().toLocaleString("en-us",b);return T.length==1?"0"+T:T}var v=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,g=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,s=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(b){return b.session.getTextRange(b.session.getWordRange())},SELECTION:function(b,T,E){var I=b.session.getTextRange();return E?I.replace(/\n\r?([ \t]*\S)/g,`
1108
+ `}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(e,i,m){i.isDark=!0,i.cssClass="ace-twilight",i.cssText=e("./twilight-css");var f=e("../lib/dom");f.importCssString(i.cssText,i.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(e){n.exports=e})}()}(Ap)),Ap.exports}Yw();var Mp={exports:{}},Ep;function Kw(){return Ep||(Ep=1,function(n,t){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,i,m){function f(b){var T=new Date().toLocaleString("en-us",b);return T.length==1?"0"+T:T}var v=e("./lib/dom"),w=e("./lib/oop"),h=e("./lib/event_emitter").EventEmitter,g=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,s=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,o=e("./clipboard"),u={CURRENT_WORD:function(b){return b.session.getTextRange(b.session.getWordRange())},SELECTION:function(b,T,E){var I=b.session.getTextRange();return E?I.replace(/\n\r?([ \t]*\S)/g,`
1109
1109
  `+E+"$1"):I},CURRENT_LINE:function(b){return b.session.getLine(b.getCursorPosition().row)},PREV_LINE:function(b){return b.session.getLine(b.getCursorPosition().row-1)},LINE_INDEX:function(b){return b.getCursorPosition().row},LINE_NUMBER:function(b){return b.getCursorPosition().row+1},SOFT_TABS:function(b){return b.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(b){return b.session.getTabSize()},CLIPBOARD:function(b){return o.getText&&o.getText()},FILENAME:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0]},FILENAME_BASE:function(b){return/[^/\\]*$/.exec(this.FILEPATH(b))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(b){return this.FILEPATH(b).replace(/[^/\\]*$/,"")},FILEPATH:function(b){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.start||""},BLOCK_COMMENT_END:function(b){var T=b.session.$mode||{};return T.blockComment&&T.blockComment.end||""},LINE_COMMENT:function(b){var T=b.session.$mode||{};return T.lineCommentStart||""},CURRENT_YEAR:f.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:f.bind(null,{year:"2-digit"}),CURRENT_MONTH:f.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:f.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:f.bind(null,{month:"short"}),CURRENT_DATE:f.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:f.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:f.bind(null,{weekday:"short"}),CURRENT_HOUR:f.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:f.bind(null,{minute:"2-digit"}),CURRENT_SECOND:f.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;var p=function(){function b(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return b.prototype.getTokenizer=function(){return b.$tokenizer||this.createTokenizer()},b.prototype.createTokenizer=function(){function T(M){return M=M.substr(1),/^\d+$/.test(M)?[{tabstopId:parseInt(M,10)}]:[{text:M}]}function E(M){return"(?:[^\\\\"+M+"]|\\\\.)"}var I={regex:"/("+E("/")+"+)/",onMatch:function(M,D,$){var _=$[0];return _.fmtString=!0,_.guard=M.slice(1,-1),_.flag="",""},next:"formatString"};return b.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(M,D,$){var _=M[1];return(_=="}"&&$.length||"`$\\".indexOf(_)!=-1)&&(M=_),[M]}},{regex:/}/,onMatch:function(M,D,$){return[$.length?$.shift():M]}},{regex:/\$(?:\d+|\w+)/,onMatch:T},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(M,D,$){var _=T(M.substr(1));return $.unshift(_[0]),_},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+E("\\|")+"*\\|",onMatch:function(M,D,$){var _=M.slice(1,-1).replace(/\\[,|\\]|,/g,function(S){return S.length==2?S[1]:"\0"}).split("\0").map(function(S){return{value:S}});return $[0].choices=_,[_[0]]},next:"start"},I,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(M,D,$){return $.length&&$[0].expectElse?($[0].expectElse=!1,$[0].ifEnd={elseEnd:$[0]},[$[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(M,D,$){var _=M[1];return _=="}"&&$.length||"`$\\".indexOf(_)!=-1?M=_:_=="n"?M=`
1110
1110
  `:_=="t"?M=" ":"ulULE".indexOf(_)!=-1&&(M={changeCase:_,local:_>"a"}),[M]}},{regex:"/\\w*}",onMatch:function(M,D,$){var _=$.shift();return _&&(_.flag=M.slice(1,-1)),this.next=_&&_.tabstopId?"start":"",[_||M]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(M,D,$){return[{text:M.slice(1)}]}},{regex:/\${\w+/,onMatch:function(M,D,$){var _={text:M.slice(2)};return $.unshift(_),[_]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(M,D,$){var _=$.shift();return this.next=_&&_.tabstopId?"start":"",[_||M]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(M,D,$){var _=$[0];return _.formatFunction=M.slice(2,-1),[$.shift()]},next:"formatString"},I,{regex:/:[\?\-+]?/,onMatch:function(M,D,$){M[1]=="+"&&($[0].ifEnd=$[0]),M[1]=="?"&&($[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),b.$tokenizer},b.prototype.tokenizeTmSnippet=function(T,E){return this.getTokenizer().getLineTokens(T,E).tokens.map(function(I){return I.value||I})},b.prototype.getVariableValue=function(T,E,I){if(/^\d+$/.test(E))return(this.variables.__||{})[E]||"";if(/^[A-Z]\d+$/.test(E))return(this.variables[E[0]+"__"]||{})[E.substr(1)]||"";if(E=E.replace(/^TM_/,""),!this.variables.hasOwnProperty(E))return"";var M=this.variables[E];return typeof M=="function"&&(M=this.variables[E](T,E,I)),M??""},b.prototype.tmStrFormat=function(T,E,I){if(!E.fmt)return T;var M=E.flag||"",D=E.guard;D=new RegExp(D,M.replace(/[^gim]/g,""));var $=typeof E.fmt=="string"?this.tokenizeTmSnippet(E.fmt,"formatString"):E.fmt,_=this,S=T.replace(D,function(){var L=_.variables.__;_.variables.__=[].slice.call(arguments);for(var O=_.resolveVariables($,I),F="E",H=0;H<O.length;H++){var W=O[H];if(typeof W=="object")if(O[H]="",W.changeCase&&W.local){var V=O[H+1];V&&typeof V=="string"&&(W.changeCase=="u"?O[H]=V[0].toUpperCase():O[H]=V[0].toLowerCase(),O[H+1]=V.substr(1))}else W.changeCase&&(F=W.changeCase);else F=="U"?O[H]=W.toUpperCase():F=="L"&&(O[H]=W.toLowerCase())}return _.variables.__=L,O.join("")});return S},b.prototype.tmFormatFunction=function(T,E,I){return E.formatFunction=="upcase"?T.toUpperCase():E.formatFunction=="downcase"?T.toLowerCase():T},b.prototype.resolveVariables=function(T,E){function I(F){var H=T.indexOf(F,_+1);H!=-1&&(_=H)}for(var M=[],D="",$=!0,_=0;_<T.length;_++){var S=T[_];if(typeof S=="string"){M.push(S),S==`
1111
1111
  `?($=!0,D=""):$&&(D=/^\t*/.exec(S)[0],$=/\S/.test(S));continue}if(S){if($=!1,S.fmtString){var L=T.indexOf(S,_+1);L==-1&&(L=T.length),S.fmt=T.slice(_+1,L),_=L}if(S.text){var O=this.getVariableValue(E,S.text,D)+"";S.fmtString&&(O=this.tmStrFormat(O,S,E)),S.formatFunction&&(O=this.tmFormatFunction(O,S,E)),O&&!S.ifEnd?(M.push(O),I(S)):!O&&S.ifEnd&&I(S.ifEnd)}else S.elseEnd?I(S.elseEnd):(S.tabstopId!=null||S.changeCase!=null)&&M.push(S)}}return M},b.prototype.getDisplayTextForSnippet=function(T,E){var I=y.call(this,T,E);return I.text},b.prototype.insertSnippetForSelection=function(T,E,I){I===void 0&&(I={});var M=y.call(this,T,E,I),D=T.getSelectionRange(),$=T.session.replace(D,M.text),_=new x(T),S=T.inVirtualSelectionMode&&T.selection.index;_.addTabstops(M.tabstops,D.start,$,S)},b.prototype.insertSnippet=function(T,E,I){I===void 0&&(I={});var M=this;if(T.inVirtualSelectionMode)return M.insertSnippetForSelection(T,E,I);T.forEachSelection(function(){M.insertSnippetForSelection(T,E,I)},null,{keepOrder:!0}),T.tabstopManager&&T.tabstopManager.tabNext()},b.prototype.$getScope=function(T){var E=T.session.$mode.$id||"";if(E=E.split("/").pop(),E==="html"||E==="php"){E==="php"&&!T.session.$mode.inlinePhp&&(E="html");var I=T.getCursorPosition(),M=T.session.getState(I.row);typeof M=="object"&&(M=M[0]),M.substring&&(M.substring(0,3)=="js-"?E="javascript":M.substring(0,4)=="css-"?E="css":M.substring(0,4)=="php-"&&(E="php"))}return E},b.prototype.getActiveScopes=function(T){var E=this.$getScope(T),I=[E],M=this.snippetMap;return M[E]&&M[E].includeScopes&&I.push.apply(I,M[E].includeScopes),I.push("_"),I},b.prototype.expandWithTab=function(T,E){var I=this,M=T.forEachSelection(function(){return I.expandSnippetForSelection(T,E)},null,{keepOrder:!0});return M&&T.tabstopManager&&T.tabstopManager.tabNext(),M},b.prototype.expandSnippetForSelection=function(T,E){var I=T.getCursorPosition(),M=T.session.getLine(I.row),D=M.substring(0,I.column),$=M.substr(I.column),_=this.snippetMap,S;return this.getActiveScopes(T).some(function(L){var O=_[L];return O&&(S=this.findMatchingSnippet(O,D,$)),!!S},this),S?(E&&E.dryRun||(T.session.doc.removeInLine(I.row,I.column-S.replaceBefore.length,I.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(T,S.content),this.variables.M__=this.variables.T__=null),!0):!1},b.prototype.findMatchingSnippet=function(T,E,I){for(var M=T.length;M--;){var D=T[M];if(!(D.startRe&&!D.startRe.test(E))&&!(D.endRe&&!D.endRe.test(I))&&!(!D.startRe&&!D.endRe))return D.matchBefore=D.startRe?D.startRe.exec(E):[""],D.matchAfter=D.endRe?D.endRe.exec(I):[""],D.replaceBefore=D.triggerRe?D.triggerRe.exec(E)[0]:"",D.replaceAfter=D.endTriggerRe?D.endTriggerRe.exec(I)[0]:"",D}},b.prototype.register=function(T,E){function I(L){return L&&!/^\^?\(.*\)\$?$|^\\b$/.test(L)&&(L="(?:"+L+")"),L||""}function M(L,O,F){return L=I(L),O=I(O),L=O+L,L&&L[L.length-1]!="$"&&(L+="$"),new RegExp(L)}function D(L){L.scope||(L.scope=E||"_"),E=L.scope,$[E]||($[E]=[],_[E]={});var O=_[E];if(L.name){var F=O[L.name];F&&S.unregister(F),O[L.name]=L}$[E].push(L),L.prefix&&(L.tabTrigger=L.prefix),!L.content&&L.body&&(L.content=Array.isArray(L.body)?L.body.join(`
@@ -1211,7 +1211,7 @@ System.register(["vue","vue-router","vuex","vuetify"],function(rn,Ne){"use stric
1211
1211
  animation: none;
1212
1212
  }
1213
1213
  }
1214
- `,"autocompletion.css",!1),i.AcePopup=x,i.$singleLineEditor=y,i.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,i,m){var f=function(){function v(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return v.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),a=this.popup.renderer.$textLayer,l=a.element.childNodes[g-a.config.firstRow];if(l){for(var s="doc-tooltip ",c=0;c<this._lines.length;c++)s+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",s)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},v.prototype.destroy=function(){this.screenReaderDiv.remove()},v.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);g.appendChild(a),w.appendChild(g)}return w},v}();i.AceInlineScreenReader=f}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,i,m){var f=e("../snippets").snippetManager,v=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(g,a,l){if(l=l||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new v(g));var s=a.snippet?f.getDisplayTextForSnippet(g,a.snippet):a.value;return a.hideInlinePreview||!s||!s.startsWith(l)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(s),s=s.slice(l.length),s===""?g.removeGhostText():g.setGhostText(s),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();i.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,i,m){i.parForEach=function(v,w,h){var g=0,a=v.length;a===0&&h();for(var l=0;l<a;l++)w(v[l],function(s,c){g++,g===a&&h(s,c)})};var f=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;i.retrievePrecedingIdentifier=function(v,w,h){h=h||f;for(var g=[],a=w-1;a>=0&&h.test(v[a]);a--)g.push(v[a]);return g.reverse().join("")},i.retrieveFollowingIdentifier=function(v,w,h){h=h||f;for(var g=[],a=w;a<v.length&&h.test(v[a]);a++)g.push(v[a]);return g},i.getCompletionPrefix=function(v){var w=v.getCursorPosition(),h=v.session.getLine(w.row),g;return v.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(l){!g&&l&&(g=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(h,w.column)},i.triggerAutocomplete=function(v,h){var h=h??v.session.getPrecedingCharacter();return v.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,i,m){var f=e("./keyboard/hash_handler").HashHandler,v=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,g=e("./autocomplete/util"),a=e("./lib/lang"),l=e("./lib/dom"),s=e("./snippets").snippetManager,c=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,p=function(A,k){k.completer&&k.completer.destroy()},y=function(){function A(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new f,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=a.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=a.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=a.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new R(A.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(A,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),A.prototype.$init=function(){return this.popup=new v(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},A.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},A.prototype.getPopup=function(){return this.popup||this.$init()},A.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},A.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},A.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var b=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(b),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},A.prototype.$updateGhostText=function(k){var b=this.base.row,T=this.base.column,E=this.editor.getCursorPosition().column,I=this.editor.session.getLine(b).slice(T,E);this.inlineRenderer.show(this.editor,k,I)?this.$seen(k):this.inlineRenderer.hide()},A.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var b=this.popup.getFirstVisibleRow();b<=this.popup.getLastVisibleRow();b++){var T=this.popup.getData(b);T&&(!k||T.hideInlinePreview)&&this.$seen(T)}},A.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},A.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,b=[];k;)b.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=b}},A.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(b){b.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},A.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},A.prototype.$updatePopupPosition=function(){var k=this.editor,b=k.renderer,T=b.layerConfig.lineHeight,E=b.$cursorLayer.getPixelPosition(this.base,!0);E.left-=this.popup.getTextLeftOffset();var I=k.container.getBoundingClientRect();E.top+=I.top-b.layerConfig.offset,E.left+=I.left-k.renderer.scrollLeft,E.left+=b.gutterWidth;var M={top:E.top,left:E.left};b.$ghostText&&b.$ghostTextWidget&&this.base.row===b.$ghostText.position.row&&(M.top+=b.$ghostTextWidget.el.offsetHeight);var D=k.container.getBoundingClientRect().bottom-T,$=D<M.top?{top:D,left:M.left}:M;this.popup.tryShow($,T,"bottom")||this.popup.tryShow(E,T,"top")||this.popup.show(E,T)},A.prototype.openPopup=function(k,b,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var E=this.popup.getRow(),I=this.popup.data[E];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var M;this.stickySelection&&(M=this.popup.data.indexOf(I)),(!M||M===-1)&&(M=0),this.popup.setRow(this.autoSelect?M:-1),M===E&&I!==this.completions.filtered[M]&&this.$onPopupChange();var D=this.inlineRenderer&&this.inlineEnabled;if(M===E&&D){var $=this.popup.getData(this.popup.getRow());this.$updateGhostText($)}T||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},A.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},A.prototype.changeListener=function(k){var b=this.editor.selection.lead;(b.row!=this.base.row||b.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},A.prototype.blurListener=function(k){var b=document.activeElement,T=this.editor.textInput.getElement(),E=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;b!=T&&b.parentNode!=I&&!E&&b!=this.tooltipNode&&k.relatedTarget!=T&&this.detach()},A.prototype.mousedownListener=function(k){this.detach()},A.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},A.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},A.prototype.goTo=function(k){this.popup.goTo(k)},A.prototype.insertMatch=function(k,b){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var T=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,k,T.filterText,b);return this.completions==T&&this.detach(),E},A.prototype.showPopup=function(k,b){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,b)},A.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},A.prototype.gatherCompletions=function(k,b){return this.getCompletionProvider().gatherCompletions(k,b)},A.prototype.updateCompletions=function(k,b){if(k&&this.base&&this.completions){var E=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:E});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(b&&b.matches){var E=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(E.row,E.column),this.base.$insertRight=!0,this.completions=new R(b.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var T=this.editor.getSession(),E=this.editor.getCursorPosition(),I=g.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(E.row,E.column-I.length),this.base.$insertRight=!0;var M={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:E}).provideCompletions(this.editor,M,(function(D,$,_){var S=$.filtered,L=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!S.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(L)),O){var F=[{caption:O,value:""}];this.completions=new R(F),this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(S.length==1&&S[0].value==L&&!S[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&S.length==1)return this.insertMatch(S[0])}this.completions=!_&&this.showLoadingState?new R(A.completionsForLoading.concat(S),$.filterText):$,this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},A.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},A.prototype.updateDocTooltip=function(){var k=this.popup,b=this.completions.filtered,T=b&&(b[k.getHoveredRow()]||b[k.getRow()]),E=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,M=0;M<I;M++){var D=this.editor.completers[M];if(D.getDocTooltip&&T.completerId===D.id){E=D.getDocTooltip(T);break}}if(!E&&typeof T!="string"&&(E=T),typeof E=="string"&&(E={docText:E}),!E||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},A.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=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 b=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(b.isDark?"ace_dark ":"")+(b.cssClass||"");var T=this.tooltipNode;k.docHTML?T.innerHTML=k.docHTML:k.docText&&(T.textContent=k.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,I=E.container.getBoundingClientRect();T.style.top=E.container.style.top,T.style.bottom=E.container.style.bottom,T.style.display="block",window.innerWidth-I.right<320?I.left<320?E.isTopdown?(T.style.top=I.bottom+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=E.container.offsetTop-T.offsetHeight+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-I.left+"px",T.style.left=""):(T.style.left=I.right+1+"px",T.style.right="")},A.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},A.prototype.onTooltipClick=function(k){for(var b=k.target;b&&b!=this.tooltipNode;){if(b.nodeName=="A"&&b.href){b.rel="noreferrer",b.target="_blank";break}b=b.parentNode}},A.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},A.for=function(k){return k.completer instanceof A||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),k.completer=A.$sharedInstance):(k.completer=new A,k.once("destroy",p))),k.completer},A}();y.prototype.commands={Up:function(A){A.completer.goTo("up")},Down:function(A){A.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(A){A.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(A){A.completer.goTo("end")},Esc:function(A){A.completer.detach()},Return:function(A){return A.completer.insertMatch()},"Shift-Return":function(A){A.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(A){var k=A.completer.insertMatch();if(k||A.tabstopManager)return k;A.completer.goTo("down")},Backspace:function(A){A.execCommand("backspace");var k=g.getCompletionPrefix(A);!k&&A.completer&&A.completer.detach()},PageUp:function(A){A.completer.popup.gotoPageUp()},PageDown:function(A){A.completer.popup.gotoPageDown()}},y.startCommand={name:"startAutocomplete",exec:function(A,k){var b=y.for(A);b.autoInsert=!1,b.autoSelect=!0,b.autoShown=!1,b.showPopup(A,k),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function A(k){this.initialPosition=k,this.active=!0}return A.prototype.insertByIndex=function(k,b,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[b],T)},A.prototype.insertMatch=function(k,b,T){if(!b)return!1;if(k.startOperation({command:{name:"insertMatch"}}),b.completer&&b.completer.insertMatch)b.completer.insertMatch(k,b);else{if(!this.completions)return!1;var E=this.completions.filterText.length,I=0;if(b.range&&b.range.start.row===b.range.end.row&&(E-=this.initialPosition.prefix.length,E+=this.initialPosition.pos.column-b.range.start.column,I+=b.range.end.column-this.initialPosition.pos.column),E||I){var M;k.selection.getAllRanges?M=k.selection.getAllRanges():M=[k.getSelectionRange()];for(var D=0,$;$=M[D];D++)$.start.column-=E,$.end.column+=I,k.session.remove($)}b.snippet?s.insertSnippet(k,b.snippet):this.$insertString(k,b),b.completer&&b.completer.onInsert&&typeof b.completer.onInsert=="function"&&b.completer.onInsert(k,b),b.command&&b.command==="startAutocomplete"&&k.execCommand(b.command)}return k.endOperation(),!0},A.prototype.$insertString=function(k,b){var T=b.value||b;k.execCommand("insertstring",T)},A.prototype.gatherCompletions=function(k,b){var T=k.getSession(),E=k.getCursorPosition(),I=g.getCompletionPrefix(k),M=[];this.completers=k.completers;var D=k.completers.length;return k.completers.forEach(function($,_){$.getCompletions(k,T,E,I,function(S,L){$.hideInlinePreview&&(L=L.map(function(O){return Object.assign(O,{hideInlinePreview:$.hideInlinePreview})})),!S&&L&&(M=M.concat(L)),b(null,{prefix:g.getCompletionPrefix(k),matches:M,finished:--D===0})})}),!0},A.prototype.provideCompletions=function(k,b,T){var E=(function($){var _=$.prefix,S=$.matches;this.completions=new R(S),b.exactMatch&&(this.completions.exactMatch=!0),b.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),($.finished||this.completions.filtered.length)&&T(null,this.completions,$.finished)}).bind(this),I=!0,M=null;if(this.gatherCompletions(k,(function($,_){if(this.active){$&&(T($,[],!0),this.detach());var S=_.prefix;if(S.indexOf(_.prefix)===0){if(I){M=_;return}E(_)}}}).bind(this)),I=!1,M){var D=M;M=null,E(D)}},A.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},A}(),R=function(){function A(k,b){this.all=k,this.filtered=k,this.filterText=b||"",this.exactMatch=!1,this.ignoreCaption=!1}return A.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var b=this.filtered;else var b=this.all;this.filterText=k,b=this.filterCompletions(b,this.filterText),b=b.sort(function(E,I){return I.exactMatch-E.exactMatch||I.$score-E.$score||(E.caption||E.value).localeCompare(I.caption||I.value)});var T=null;b=b.filter(function(E){var I=E.snippet||E.caption||E.value;return I===T?!1:(T=I,!0)}),this.filtered=b},A.prototype.filterCompletions=function(k,b){var T=[],E=b.toUpperCase(),I=b.toLowerCase();e:for(var M=0,D;D=k[M];M++){var $=!this.ignoreCaption&&D.caption||D.value||D.snippet;if($){var _=-1,S=0,L=0,O,F;if(this.exactMatch){if(b!==$.substr(0,b.length))continue e}else{var H=$.toLowerCase().indexOf(I);if(H>-1)L=H;else for(var W=0;W<b.length;W++){var V=$.indexOf(I[W],_+1),q=$.indexOf(E[W],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(L+=10),L+=F,S|=1<<W),_=O}}D.matchMask=S,D.exactMatch=L?0:1,D.$score=(D.score||0)-L,T.push(D)}}return T},A}();i.Autocomplete=y,i.CompletionProvider=x,i.FilteredList=R}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,i,m){function f(g,a){var l=g.getTextRange(w.fromPoints({row:0,column:0},a));return l.split(h).length-1}function v(g,a){var l=f(g,a),s=g.getValue().split(h),c=Object.create(null),o=s[l];return s.forEach(function(u,p){if(!(!u||u===o)){var y=Math.abs(l-p),x=s.length-y;c[u]?c[u]=Math.max(x,c[u]):c[u]=x}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;i.getCompletions=function(g,a,l,s,c){var o=v(a,l),u=Object.keys(o);c(null,u.map(function(p){return{caption:p,value:p,score:o[p],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,i,m){var f=e("../snippets").snippetManager,v=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),g=e("../autocomplete/util"),a=e("../autocomplete/text_completer"),l={getCompletions:function(E,I,M,D,$){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,M,D,$);var _=E.session.getState(M.row),S=I.$mode.getCompletions(_,I,M,D);S=S.map(function(L){return L.completerId=l.id,L}),$(null,S)},id:"keywordCompleter"},s=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(M,D,$,_){return I[D]=_||""}).replace(/\$(\d+?)/g,function(M,D){return I[D]})},c={getCompletions:function(E,I,M,D,$){var _=[],S=I.getTokenAt(M.row,M.column);S&&S.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=f.getActiveScopes(E);var L=f.snippetMap,O=[];_.forEach(function(F){for(var H=L[F]||[],W=H.length;W--;){var V=H[W],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:c.id})}},this),$(null,O)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(s(E.snippet))].join(""))},id:"snippetCompleter"},o=[c,a,l];i.setCompleters=function(E){o.length=0,E&&o.push.apply(o,E)},i.addCompleter=function(E){o.push(E)},i.textCompleter=a,i.keyWordCompleter=l,i.snippetCompleter=c;var u={name:"expandSnippet",exec:function(E){return f.expandWithTab(E)},bindKey:"Tab"},p=function(E,I){y(I.session.$mode)},y=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(f.files||(f.files={}),x(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(y))},x=function(E,I){!I||!E||f.files[E]||(f.files[E]={},w.loadModule(I,function(M){M&&(f.files[E]=M,!M.snippets&&M.snippetText&&(M.snippets=f.parseSnippetFile(M.snippetText)),f.register(M.snippets||[],M.scope),M.includeScopes&&(f.snippetMap[M.scope].includeScopes=M.includeScopes,M.includeScopes.forEach(function(D){y("ace/mode/"+D)})))}))},R=function(E){var I=E.editor,M=I.completer&&I.completer.activated;if(E.command.name==="backspace")M&&!g.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!M){A=E;var D=E.editor.$liveAutocompletionDelay;D?k.delay(D):b(E)}},A,k=h.delayedCall(function(){b(A)},0),b=function(E){var I=E.editor,M=g.getCompletionPrefix(I),D=E.args,$=g.triggerAutocomplete(I,D);if(M&&M.length>=I.$liveAutocompletionThreshold||$){var _=v.for(I);_.autoShown=!0,_.showPopup(I)}},T=e("../editor").Editor;e("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.addCommand(v.startCommand)):this.commands.removeCommand(v.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.on("afterExec",R)):this.commands.off("afterExec",R)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(u),this.on("changeMode",p),p(null,this)):(this.commands.removeCommand(u),this.off("changeMode",p))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n&&(n.exports=e)})}()}(Tp)),Tp.exports}Gw();var Ep={exports:{}},Rp;function Yw(){return Rp||(Rp=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,i,m){m.exports=`
1214
+ `,"autocompletion.css",!1),i.AcePopup=x,i.$singleLineEditor=y,i.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(e,i,m){var f=function(){function v(w){this.editor=w,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return v.prototype.setScreenReaderContent=function(w){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var g=this.popup.getRow(),a=this.popup.renderer.$textLayer,l=a.element.childNodes[g-a.config.firstRow];if(l){for(var s="doc-tooltip ",c=0;c<this._lines.length;c++)s+="ace-inline-screenreader-line-".concat(c," ");l.setAttribute("aria-describedby",s)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=w.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},v.prototype.destroy=function(){this.screenReaderDiv.remove()},v.prototype.createCodeBlock=function(){var w=document.createElement("pre");w.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var g=document.createElement("code");g.setAttribute("id","ace-inline-screenreader-line-".concat(h));var a=document.createTextNode(this._lines[h]);g.appendChild(a),w.appendChild(g)}return w},v}();i.AceInlineScreenReader=f}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(e,i,m){var f=e("../snippets").snippetManager,v=e("./inline_screenreader").AceInlineScreenReader,w=function(){function h(){this.editor=null}return h.prototype.show=function(g,a,l){if(l=l||"",g&&this.editor&&this.editor!==g&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!g||!a)return!1;this.inlineScreenReader||(this.inlineScreenReader=new v(g));var s=a.snippet?f.getDisplayTextForSnippet(g,a.snippet):a.value;return a.hideInlinePreview||!s||!s.startsWith(l)?!1:(this.editor=g,this.inlineScreenReader.setScreenReaderContent(s),s=s.slice(l.length),s===""?g.removeGhostText():g.setGhostText(s),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();i.AceInline=w}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,i,m){i.parForEach=function(v,w,h){var g=0,a=v.length;a===0&&h();for(var l=0;l<a;l++)w(v[l],function(s,c){g++,g===a&&h(s,c)})};var f=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;i.retrievePrecedingIdentifier=function(v,w,h){h=h||f;for(var g=[],a=w-1;a>=0&&h.test(v[a]);a--)g.push(v[a]);return g.reverse().join("")},i.retrieveFollowingIdentifier=function(v,w,h){h=h||f;for(var g=[],a=w;a<v.length&&h.test(v[a]);a++)g.push(v[a]);return g},i.getCompletionPrefix=function(v){var w=v.getCursorPosition(),h=v.session.getLine(w.row),g;return v.completers.forEach((function(a){a.identifierRegexps&&a.identifierRegexps.forEach((function(l){!g&&l&&(g=this.retrievePrecedingIdentifier(h,w.column,l))}).bind(this))}).bind(this)),g||this.retrievePrecedingIdentifier(h,w.column)},i.triggerAutocomplete=function(v,h){var h=h??v.session.getPrecedingCharacter();return v.completers.some(function(g){if(g.triggerCharacters&&Array.isArray(g.triggerCharacters))return g.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(e,i,m){var f=e("./keyboard/hash_handler").HashHandler,v=e("./autocomplete/popup").AcePopup,w=e("./autocomplete/inline").AceInline,h=e("./autocomplete/popup").getAriaId,g=e("./autocomplete/util"),a=e("./lib/lang"),l=e("./lib/dom"),s=e("./snippets").snippetManager,c=e("./config"),o=e("./lib/event"),u=e("./lib/scroll").preventParentScroll,p=function(A,k){k.completer&&k.completer.destroy()},y=function(){function A(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new f,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=a.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=a.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=a.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new R(A.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(A,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),A.prototype.$init=function(){return this.popup=new v(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),o.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},A.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new w,this.inlineRenderer},A.prototype.getPopup=function(){return this.popup||this.$init()},A.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},A.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},A.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var b=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(b),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},A.prototype.$updateGhostText=function(k){var b=this.base.row,T=this.base.column,E=this.editor.getCursorPosition().column,I=this.editor.session.getLine(b).slice(T,E);this.inlineRenderer.show(this.editor,k,I)?this.$seen(k):this.inlineRenderer.hide()},A.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var b=this.popup.getFirstVisibleRow();b<=this.popup.getLastVisibleRow();b++){var T=this.popup.getData(b);T&&(!k||T.hideInlinePreview)&&this.$seen(T)}},A.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},A.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,b=[];k;)b.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=b}},A.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(b){b.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},A.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},A.prototype.$updatePopupPosition=function(){var k=this.editor,b=k.renderer,T=b.layerConfig.lineHeight,E=b.$cursorLayer.getPixelPosition(this.base,!0);E.left-=this.popup.getTextLeftOffset();var I=k.container.getBoundingClientRect();E.top+=I.top-b.layerConfig.offset,E.left+=I.left-k.renderer.scrollLeft,E.left+=b.gutterWidth;var M={top:E.top,left:E.left};b.$ghostText&&b.$ghostTextWidget&&this.base.row===b.$ghostText.position.row&&(M.top+=b.$ghostTextWidget.el.offsetHeight);var D=k.container.getBoundingClientRect().bottom-T,$=D<M.top?{top:D,left:M.left}:M;this.popup.tryShow($,T,"bottom")||this.popup.tryShow(E,T,"top")||this.popup.show(E,T)},A.prototype.openPopup=function(k,b,T){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var E=this.popup.getRow(),I=this.popup.data[E];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var M;this.stickySelection&&(M=this.popup.data.indexOf(I)),(!M||M===-1)&&(M=0),this.popup.setRow(this.autoSelect?M:-1),M===E&&I!==this.completions.filtered[M]&&this.$onPopupChange();var D=this.inlineRenderer&&this.inlineEnabled;if(M===E&&D){var $=this.popup.getData(this.popup.getRow());this.$updateGhostText($)}T||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},A.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},A.prototype.changeListener=function(k){var b=this.editor.selection.lead;(b.row!=this.base.row||b.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},A.prototype.blurListener=function(k){var b=document.activeElement,T=this.editor.textInput.getElement(),E=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),I=this.popup&&this.popup.container;b!=T&&b.parentNode!=I&&!E&&b!=this.tooltipNode&&k.relatedTarget!=T&&this.detach()},A.prototype.mousedownListener=function(k){this.detach()},A.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},A.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},A.prototype.goTo=function(k){this.popup.goTo(k)},A.prototype.insertMatch=function(k,b){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var T=this.completions,E=this.getCompletionProvider().insertMatch(this.editor,k,T.filterText,b);return this.completions==T&&this.detach(),E},A.prototype.showPopup=function(k,b){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,b)},A.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},A.prototype.gatherCompletions=function(k,b){return this.getCompletionProvider().gatherCompletions(k,b)},A.prototype.updateCompletions=function(k,b){if(k&&this.base&&this.completions){var E=this.editor.getCursorPosition(),I=this.editor.session.getTextRange({start:this.base,end:E});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(b&&b.matches){var E=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(E.row,E.column),this.base.$insertRight=!0,this.completions=new R(b.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var T=this.editor.getSession(),E=this.editor.getCursorPosition(),I=g.getCompletionPrefix(this.editor);this.base=T.doc.createAnchor(E.row,E.column-I.length),this.base.$insertRight=!0;var M={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:I,pos:E}).provideCompletions(this.editor,M,(function(D,$,_){var S=$.filtered,L=g.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),_){if(!S.length){var O=!this.autoShown&&this.emptyMessage;if(typeof O=="function"&&(O=this.emptyMessage(L)),O){var F=[{caption:O,value:""}];this.completions=new R(F),this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if(S.length==1&&S[0].value==L&&!S[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&S.length==1)return this.insertMatch(S[0])}this.completions=!_&&this.showLoadingState?new R(A.completionsForLoading.concat(S),$.filterText):$,this.openPopup(this.editor,L,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!_)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},A.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},A.prototype.updateDocTooltip=function(){var k=this.popup,b=this.completions.filtered,T=b&&(b[k.getHoveredRow()]||b[k.getRow()]),E=null;if(!T||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var I=this.editor.completers.length,M=0;M<I;M++){var D=this.editor.completers[M];if(D.getDocTooltip&&T.completerId===D.id){E=D.getDocTooltip(T);break}}if(!E&&typeof T!="string"&&(E=T),typeof E=="string"&&(E={docText:E}),!E||!E.docHTML&&!E.docText)return this.hideDocTooltip();this.showDocTooltip(E)},A.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=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 b=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(b.isDark?"ace_dark ":"")+(b.cssClass||"");var T=this.tooltipNode;k.docHTML?T.innerHTML=k.docHTML:k.docText&&(T.textContent=k.docText),T.parentNode||this.popup.container.appendChild(this.tooltipNode);var E=this.popup,I=E.container.getBoundingClientRect();T.style.top=E.container.style.top,T.style.bottom=E.container.style.bottom,T.style.display="block",window.innerWidth-I.right<320?I.left<320?E.isTopdown?(T.style.top=I.bottom+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.top=E.container.offsetTop-T.offsetHeight+"px",T.style.left=I.left+"px",T.style.right="",T.style.bottom=""):(T.style.right=window.innerWidth-I.left+"px",T.style.left=""):(T.style.left=I.right+1+"px",T.style.right="")},A.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},A.prototype.onTooltipClick=function(k){for(var b=k.target;b&&b!=this.tooltipNode;){if(b.nodeName=="A"&&b.href){b.rel="noreferrer",b.target="_blank";break}b=b.parentNode}},A.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",p),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},A.for=function(k){return k.completer instanceof A||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(A.$sharedInstance||(A.$sharedInstance=new A),k.completer=A.$sharedInstance):(k.completer=new A,k.once("destroy",p))),k.completer},A}();y.prototype.commands={Up:function(A){A.completer.goTo("up")},Down:function(A){A.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(A){A.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(A){A.completer.goTo("end")},Esc:function(A){A.completer.detach()},Return:function(A){return A.completer.insertMatch()},"Shift-Return":function(A){A.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(A){var k=A.completer.insertMatch();if(k||A.tabstopManager)return k;A.completer.goTo("down")},Backspace:function(A){A.execCommand("backspace");var k=g.getCompletionPrefix(A);!k&&A.completer&&A.completer.detach()},PageUp:function(A){A.completer.popup.gotoPageUp()},PageDown:function(A){A.completer.popup.gotoPageDown()}},y.startCommand={name:"startAutocomplete",exec:function(A,k){var b=y.for(A);b.autoInsert=!1,b.autoSelect=!0,b.autoShown=!1,b.showPopup(A,k),b.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function A(k){this.initialPosition=k,this.active=!0}return A.prototype.insertByIndex=function(k,b,T){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[b],T)},A.prototype.insertMatch=function(k,b,T){if(!b)return!1;if(k.startOperation({command:{name:"insertMatch"}}),b.completer&&b.completer.insertMatch)b.completer.insertMatch(k,b);else{if(!this.completions)return!1;var E=this.completions.filterText.length,I=0;if(b.range&&b.range.start.row===b.range.end.row&&(E-=this.initialPosition.prefix.length,E+=this.initialPosition.pos.column-b.range.start.column,I+=b.range.end.column-this.initialPosition.pos.column),E||I){var M;k.selection.getAllRanges?M=k.selection.getAllRanges():M=[k.getSelectionRange()];for(var D=0,$;$=M[D];D++)$.start.column-=E,$.end.column+=I,k.session.remove($)}b.snippet?s.insertSnippet(k,b.snippet):this.$insertString(k,b),b.completer&&b.completer.onInsert&&typeof b.completer.onInsert=="function"&&b.completer.onInsert(k,b),b.command&&b.command==="startAutocomplete"&&k.execCommand(b.command)}return k.endOperation(),!0},A.prototype.$insertString=function(k,b){var T=b.value||b;k.execCommand("insertstring",T)},A.prototype.gatherCompletions=function(k,b){var T=k.getSession(),E=k.getCursorPosition(),I=g.getCompletionPrefix(k),M=[];this.completers=k.completers;var D=k.completers.length;return k.completers.forEach(function($,_){$.getCompletions(k,T,E,I,function(S,L){$.hideInlinePreview&&(L=L.map(function(O){return Object.assign(O,{hideInlinePreview:$.hideInlinePreview})})),!S&&L&&(M=M.concat(L)),b(null,{prefix:g.getCompletionPrefix(k),matches:M,finished:--D===0})})}),!0},A.prototype.provideCompletions=function(k,b,T){var E=(function($){var _=$.prefix,S=$.matches;this.completions=new R(S),b.exactMatch&&(this.completions.exactMatch=!0),b.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(_),($.finished||this.completions.filtered.length)&&T(null,this.completions,$.finished)}).bind(this),I=!0,M=null;if(this.gatherCompletions(k,(function($,_){if(this.active){$&&(T($,[],!0),this.detach());var S=_.prefix;if(S.indexOf(_.prefix)===0){if(I){M=_;return}E(_)}}}).bind(this)),I=!1,M){var D=M;M=null,E(D)}},A.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},A}(),R=function(){function A(k,b){this.all=k,this.filtered=k,this.filterText=b||"",this.exactMatch=!1,this.ignoreCaption=!1}return A.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var b=this.filtered;else var b=this.all;this.filterText=k,b=this.filterCompletions(b,this.filterText),b=b.sort(function(E,I){return I.exactMatch-E.exactMatch||I.$score-E.$score||(E.caption||E.value).localeCompare(I.caption||I.value)});var T=null;b=b.filter(function(E){var I=E.snippet||E.caption||E.value;return I===T?!1:(T=I,!0)}),this.filtered=b},A.prototype.filterCompletions=function(k,b){var T=[],E=b.toUpperCase(),I=b.toLowerCase();e:for(var M=0,D;D=k[M];M++){var $=!this.ignoreCaption&&D.caption||D.value||D.snippet;if($){var _=-1,S=0,L=0,O,F;if(this.exactMatch){if(b!==$.substr(0,b.length))continue e}else{var H=$.toLowerCase().indexOf(I);if(H>-1)L=H;else for(var W=0;W<b.length;W++){var V=$.indexOf(I[W],_+1),q=$.indexOf(E[W],_+1);if(O=V>=0&&(q<0||V<q)?V:q,O<0)continue e;F=O-_-1,F>0&&(_===-1&&(L+=10),L+=F,S|=1<<W),_=O}}D.matchMask=S,D.exactMatch=L?0:1,D.$score=(D.score||0)-L,T.push(D)}}return T},A}();i.Autocomplete=y,i.CompletionProvider=x,i.FilteredList=R}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,i,m){function f(g,a){var l=g.getTextRange(w.fromPoints({row:0,column:0},a));return l.split(h).length-1}function v(g,a){var l=f(g,a),s=g.getValue().split(h),c=Object.create(null),o=s[l];return s.forEach(function(u,p){if(!(!u||u===o)){var y=Math.abs(l-p),x=s.length-y;c[u]?c[u]=Math.max(x,c[u]):c[u]=x}}),c}var w=e("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;i.getCompletions=function(g,a,l,s,c){var o=v(a,l),u=Object.keys(o);c(null,u.map(function(p){return{caption:p,value:p,score:o[p],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,i,m){var f=e("../snippets").snippetManager,v=e("../autocomplete").Autocomplete,w=e("../config"),h=e("../lib/lang"),g=e("../autocomplete/util"),a=e("../autocomplete/text_completer"),l={getCompletions:function(E,I,M,D,$){if(I.$mode.completer)return I.$mode.completer.getCompletions(E,I,M,D,$);var _=E.session.getState(M.row),S=I.$mode.getCompletions(_,I,M,D);S=S.map(function(L){return L.completerId=l.id,L}),$(null,S)},id:"keywordCompleter"},s=function(E){var I={};return E.replace(/\${(\d+)(:(.*?))?}/g,function(M,D,$,_){return I[D]=_||""}).replace(/\$(\d+?)/g,function(M,D){return I[D]})},c={getCompletions:function(E,I,M,D,$){var _=[],S=I.getTokenAt(M.row,M.column);S&&S.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?_.push("html-tag"):_=f.getActiveScopes(E);var L=f.snippetMap,O=[];_.forEach(function(F){for(var H=L[F]||[],W=H.length;W--;){var V=H[W],q=V.name||V.tabTrigger;q&&O.push({caption:q,snippet:V.content,meta:V.tabTrigger&&!V.name?V.tabTrigger+"⇥ ":"snippet",completerId:c.id})}},this),$(null,O)},getDocTooltip:function(E){E.snippet&&!E.docHTML&&(E.docHTML=["<b>",h.escapeHTML(E.caption),"</b>","<hr></hr>",h.escapeHTML(s(E.snippet))].join(""))},id:"snippetCompleter"},o=[c,a,l];i.setCompleters=function(E){o.length=0,E&&o.push.apply(o,E)},i.addCompleter=function(E){o.push(E)},i.textCompleter=a,i.keyWordCompleter=l,i.snippetCompleter=c;var u={name:"expandSnippet",exec:function(E){return f.expandWithTab(E)},bindKey:"Tab"},p=function(E,I){y(I.session.$mode)},y=function(E){typeof E=="string"&&(E=w.$modes[E]),E&&(f.files||(f.files={}),x(E.$id,E.snippetFileId),E.modes&&E.modes.forEach(y))},x=function(E,I){!I||!E||f.files[E]||(f.files[E]={},w.loadModule(I,function(M){M&&(f.files[E]=M,!M.snippets&&M.snippetText&&(M.snippets=f.parseSnippetFile(M.snippetText)),f.register(M.snippets||[],M.scope),M.includeScopes&&(f.snippetMap[M.scope].includeScopes=M.includeScopes,M.includeScopes.forEach(function(D){y("ace/mode/"+D)})))}))},R=function(E){var I=E.editor,M=I.completer&&I.completer.activated;if(E.command.name==="backspace")M&&!g.getCompletionPrefix(I)&&I.completer.detach();else if(E.command.name==="insertstring"&&!M){A=E;var D=E.editor.$liveAutocompletionDelay;D?k.delay(D):b(E)}},A,k=h.delayedCall(function(){b(A)},0),b=function(E){var I=E.editor,M=g.getCompletionPrefix(I),D=E.args,$=g.triggerAutocomplete(I,D);if(M&&M.length>=I.$liveAutocompletionThreshold||$){var _=v.for(I);_.autoShown=!0,_.showPopup(I)}},T=e("../editor").Editor;e("../config").defineOptions(T.prototype,"editor",{enableBasicAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.addCommand(v.startCommand)):this.commands.removeCommand(v.startCommand)},value:!1},enableLiveAutocompletion:{set:function(E){E?(this.completers||(this.completers=Array.isArray(E)?E:o),this.commands.on("afterExec",R)):this.commands.off("afterExec",R)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(E){E?(this.commands.addCommand(u),this.on("changeMode",p),p(null,this)):(this.commands.removeCommand(u),this.off("changeMode",p))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(e){n.exports=e})}()}(Mp)),Mp.exports}Kw();var Rp={exports:{}},Lp;function Qw(){return Lp||(Lp=1,function(n,t){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(e,i,m){m.exports=`
1215
1215
 
1216
1216
  /* ------------------------------------------------------------------------------------------
1217
1217
  * Editor Search Form
@@ -1372,54 +1372,54 @@ System.register(["vue","vue-router","vuex","vuetify"],function(rn,Ne){"use stric
1372
1372
  float: left;
1373
1373
  font-family: arial;
1374
1374
  padding: 0 8px;
1375
- }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,i,m){var f=e("../lib/dom"),v=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),g=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),l=e("../config").nls,s=999;f.importCssString(h,"ace_searchbox",!1);var c=function(){function p(y,x,R){this.activeInput;var A=f.createElement("div");f.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"]]],A),this.element=A.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(y),f.importCssString(h,"ace_searchbox",y.container)}return p.prototype.setEditor=function(y){y.searchBox=this,y.renderer.scroller.appendChild(this.element),this.editor=y},p.prototype.setSession=function(y){this.searchRange=null,this.$syncOptions(!0)},p.prototype.$initElements=function(y){this.searchBox=y.querySelector(".ace_search_form"),this.replaceBox=y.querySelector(".ace_replace_form"),this.searchOption=y.querySelector("[action=searchInSelection]"),this.replaceOption=y.querySelector("[action=toggleReplace]"),this.regExpOption=y.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=y.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=y.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=y.querySelector(".ace_search_counter")},p.prototype.$init=function(){var y=this.element;this.$initElements(y);var x=this;w.addListener(y,"mousedown",function(R){setTimeout(function(){x.activeInput.focus()},0),w.stopPropagation(R)}),w.addListener(y,"click",function(R){var A=R.target||R.srcElement,k=A.getAttribute("action");k&&x[k]?x[k]():x.$searchBarKb.commands[k]&&x.$searchBarKb.commands[k].exec(x),w.stopPropagation(R)}),w.addCommandKeyListener(y,function(R,A,k){var b=a.keyCodeToString(k),T=x.$searchBarKb.findKeyCommand(A,b);T&&T.exec&&(T.exec(x),w.stopEvent(R))}),this.$onChange=v.delayedCall(function(){x.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),w.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},p.prototype.setSearchRange=function(y){this.searchRange=y,y?this.searchRangeMarker=this.editor.session.addMarker(y,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},p.prototype.$syncOptions=function(y){f.setCssClass(this.replaceOption,"checked",this.searchRange),f.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",f.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),f.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),f.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,y)},p.prototype.highlight=function(y){this.editor.session.highlight(y||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},p.prototype.find=function(y,x,R){var A=this.editor.find(this.searchInput.value,{skipCurrent:y,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:R,range:this.searchRange}),k=!A&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},p.prototype.updateCounter=function(){var y=this.editor,x=y.$search.$options.re,R=x.unicode,A=0,k=0;if(x){var b=this.searchRange?y.session.getTextRange(this.searchRange):y.getValue(),T=y.session.doc.positionToIndex(y.selection.anchor);this.searchRange&&(T-=y.session.doc.positionToIndex(this.searchRange.start));for(var E=x.lastIndex=0,I;(I=x.exec(b))&&(A++,E=I.index,E<=T&&k++,!(A>s||!I[0]&&(x.lastIndex=E+=v.skipEmptyMatch(b,E,R),E>=b.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[k,A>s?s+"+":A])},p.prototype.findNext=function(){this.find(!0,!1)},p.prototype.findPrev=function(){this.find(!0,!0)},p.prototype.findAll=function(){var y=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!y&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},p.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},p.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},p.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},p.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},p.prototype.show=function(y,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,y&&(this.searchInput.value=y),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},p.prototype.isFocused=function(){var y=document.activeElement;return y==this.searchInput||y==this.replaceInput},p}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(p){var y=p.isReplace=!p.isReplace;p.replaceBox.style.display=y?"":"none",p.replaceOption.checked=!1,p.$syncOptions(),p.searchInput.focus()},"Ctrl-H|Command-Option-F":function(p){p.editor.getReadOnly()||(p.replaceOption.checked=!0,p.$syncOptions(),p.replaceInput.focus())},"Ctrl-G|Command-G":function(p){p.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(p){p.findPrev()},esc:function(p){setTimeout(function(){p.hide()})},Return:function(p){p.activeInput==p.replaceInput&&p.replace(),p.findNext()},"Shift-Return":function(p){p.activeInput==p.replaceInput&&p.replace(),p.findPrev()},"Alt-Return":function(p){p.activeInput==p.replaceInput&&p.replaceAll(),p.findAll()},Tab:function(p){(p.activeInput==p.replaceInput?p.searchInput:p.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(p){p.regExpOption.checked=!p.regExpOption.checked,p.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(p){p.caseSensitiveOption.checked=!p.caseSensitiveOption.checked,p.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(p){p.wholeWordOption.checked=!p.wholeWordOption.checked,p.$syncOptions()}},{name:"toggleReplace",exec:function(p){p.replaceOption.checked=!p.replaceOption.checked,p.$syncOptions()}},{name:"searchInSelection",exec:function(p){p.searchOption.checked=!p.searchRange,p.setSearchRange(p.searchOption.checked&&p.editor.getSelectionRange()),p.$syncOptions()}}]);var u=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(p){p.searchBox.hide()}}]);c.prototype.$searchBarKb=o,c.prototype.$closeSearchBarKb=u,i.SearchBox=c,i.Search=function(p,y){var x=p.searchBox||new c(p);x.show(p.session.getTextRange(),y)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n&&(n.exports=e)})}()}(Ep)),Ep.exports}Yw();var Kw=Object.defineProperty,Qw=(n,t,e)=>t in n?Kw(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Zw=(n,t,e)=>Qw(n,t+"",e);function Lp(n,t){return function(){return n.apply(t,arguments)}}const{toString:Jw}=Object.prototype,{getPrototypeOf:Nc}=Object,Ea=(n=>t=>{const e=Jw.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ri=n=>(n=n.toLowerCase(),t=>Ea(t)===n),Ra=n=>t=>typeof t===n,{isArray:Lo}=Array,bs=Ra("undefined");function Xw(n){return n!==null&&!bs(n)&&n.constructor!==null&&!bs(n.constructor)&&ci(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Ip=Ri("ArrayBuffer");function eb(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Ip(n.buffer),t}const tb=Ra("string"),ci=Ra("function"),Op=Ra("number"),La=n=>n!==null&&typeof n=="object",nb=n=>n===!0||n===!1,Ia=n=>{if(Ea(n)!=="object")return!1;const t=Nc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},ib=Ri("Date"),rb=Ri("File"),ob=Ri("Blob"),sb=Ri("FileList"),ab=n=>La(n)&&ci(n.pipe),lb=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ci(n.append)&&((t=Ea(n))==="formdata"||t==="object"&&ci(n.toString)&&n.toString()==="[object FormData]"))},cb=Ri("URLSearchParams"),[ub,hb,db,pb]=["ReadableStream","Request","Response","Headers"].map(Ri),fb=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xs(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Lo(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const f=e?Object.getOwnPropertyNames(n):Object.keys(n),v=f.length;let w;for(i=0;i<v;i++)w=f[i],t.call(null,n[w],w,n)}}function Np(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const Jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dp=n=>!bs(n)&&n!==Jr;function Dc(){const{caseless:n}=Dp(this)&&this||{},t={},e=(i,m)=>{const f=n&&Np(t,m)||m;Ia(t[f])&&Ia(i)?t[f]=Dc(t[f],i):Ia(i)?t[f]=Dc({},i):Lo(i)?t[f]=i.slice():t[f]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&xs(arguments[i],e);return t}const gb=(n,t,e,{allOwnKeys:i}={})=>(xs(t,(m,f)=>{e&&ci(m)?n[f]=Lp(m,e):n[f]=m},{allOwnKeys:i}),n),mb=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),vb=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},yb=(n,t,e,i)=>{let m,f,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),f=m.length;f-- >0;)v=m[f],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&Nc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},wb=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},bb=n=>{if(!n)return null;if(Lo(n))return n;let t=n.length;if(!Op(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},xb=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Nc(Uint8Array)),_b=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},kb=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},$b=Ri("HTMLFormElement"),Sb=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Fp=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Cb=Ri("RegExp"),Pp=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};xs(e,(m,f)=>{let v;(v=t(m,f,n))!==!1&&(i[f]=v||m)}),Object.defineProperties(n,i)},Ab=n=>{Pp(n,(t,e)=>{if(ci(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(ci(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Tb=(n,t)=>{const e={},i=m=>{m.forEach(f=>{e[f]=!0})};return Lo(n)?i(n):i(String(n).split(t)),e},Mb=()=>{},Eb=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,Fc="abcdefghijklmnopqrstuvwxyz",Hp="0123456789",Bp={DIGIT:Hp,ALPHA:Fc,ALPHA_DIGIT:Fc+Fc.toUpperCase()+Hp},Rb=(n=16,t=Bp.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function Lb(n){return!!(n&&ci(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Ib=n=>{const t=new Array(10),e=(i,m)=>{if(La(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const f=Lo(i)?[]:{};return xs(i,(v,w)=>{const h=e(v,m+1);!bs(h)&&(f[w]=h)}),t[m]=void 0,f}}return i};return e(n,0)},Ob=Ri("AsyncFunction"),Nb=n=>n&&(La(n)||ci(n))&&ci(n.then)&&ci(n.catch),zp=((n,t)=>n?setImmediate:t?((e,i)=>(Jr.addEventListener("message",({source:m,data:f})=>{m===Jr&&f===e&&i.length&&i.shift()()},!1),m=>{i.push(m),Jr.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ci(Jr.postMessage)),Db=typeof queueMicrotask<"u"?queueMicrotask.bind(Jr):typeof process<"u"&&process.nextTick||zp,ue={isArray:Lo,isArrayBuffer:Ip,isBuffer:Xw,isFormData:lb,isArrayBufferView:eb,isString:tb,isNumber:Op,isBoolean:nb,isObject:La,isPlainObject:Ia,isReadableStream:ub,isRequest:hb,isResponse:db,isHeaders:pb,isUndefined:bs,isDate:ib,isFile:rb,isBlob:ob,isRegExp:Cb,isFunction:ci,isStream:ab,isURLSearchParams:cb,isTypedArray:xb,isFileList:sb,forEach:xs,merge:Dc,extend:gb,trim:fb,stripBOM:mb,inherits:vb,toFlatObject:yb,kindOf:Ea,kindOfTest:Ri,endsWith:wb,toArray:bb,forEachEntry:_b,matchAll:kb,isHTMLForm:$b,hasOwnProperty:Fp,hasOwnProp:Fp,reduceDescriptors:Pp,freezeMethods:Ab,toObjectSet:Tb,toCamelCase:Sb,noop:Mb,toFiniteNumber:Eb,findKey:Np,global:Jr,isContextDefined:Dp,ALPHABET:Bp,generateString:Rb,isSpecCompliantForm:Lb,toJSONObject:Ib,isAsyncFn:Ob,isThenable:Nb,setImmediate:zp,asap:Db};function et(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.status:null)}ue.inherits(et,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ue.toJSONObject(this.config),code:this.code,status:this.status}}});const jp=et.prototype,Wp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Wp[n]={value:n}}),Object.defineProperties(et,Wp),Object.defineProperty(jp,"isAxiosError",{value:!0}),et.from=(n,t,e,i,m,f)=>{const v=Object.create(jp);return ue.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),et.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,f&&Object.assign(v,f),v};const Fb=null;function Pc(n){return ue.isPlainObject(n)||ue.isArray(n)}function Up(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function Vp(n,t,e){return n?n.concat(t).map(function(i,m){return i=Up(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function Pb(n){return ue.isArray(n)&&!n.some(Pc)}const Hb=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Oa(n,t,e){if(!ue.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=ue.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!ue.isUndefined(o[c])});const i=e.metaTokens,m=e.visitor||g,f=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(t);if(!ue.isFunction(m))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(ue.isDate(c))return c.toISOString();if(!w&&ue.isBlob(c))throw new et("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(c)||ue.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,o,u){let p=c;if(c&&!u&&typeof c=="object"){if(ue.endsWith(o,"{}"))o=i?o:o.slice(0,-2),c=JSON.stringify(c);else if(ue.isArray(c)&&Pb(c)||(ue.isFileList(c)||ue.endsWith(o,"[]"))&&(p=ue.toArray(c)))return o=Up(o),p.forEach(function(y,x){!(ue.isUndefined(y)||y===null)&&t.append(v===!0?Vp([o],x,f):v===null?o:o+"[]",h(y))}),!1}return Pc(c)?!0:(t.append(Vp(u,o,f),h(c)),!1)}const a=[],l=Object.assign(Hb,{defaultVisitor:g,convertValue:h,isVisitable:Pc});function s(c,o){if(!ue.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(c),ue.forEach(c,function(u,p){(!(ue.isUndefined(u)||u===null)&&m.call(t,u,ue.isString(p)?p.trim():p,o,l))===!0&&s(u,o?o.concat(p):[p])}),a.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return s(n),t}function qp(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Hc(n,t){this._pairs=[],n&&Oa(n,this,t)}const Gp=Hc.prototype;Gp.append=function(n,t){this._pairs.push([n,t])},Gp.toString=function(n){const t=n?function(e){return n.call(this,e,qp)}:qp;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function Bb(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yp(n,t,e){if(!t)return n;const i=e&&e.encode||Bb;ue.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let f;if(m?f=m(t,e):f=ue.isURLSearchParams(t)?t.toString():new Hc(t,e).toString(i),f){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class Kp{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(e){e!==null&&t(e)})}}const Qp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zb=typeof URLSearchParams<"u"?URLSearchParams:Hc,jb=typeof FormData<"u"?FormData:null,Wb=typeof Blob<"u"?Blob:null,Ub={isBrowser:!0,classes:{URLSearchParams:zb,FormData:jb,Blob:Wb},protocols:["http","https","file","blob","url","data"]},Bc=typeof window<"u"&&typeof document<"u",zc=typeof navigator=="object"&&navigator||void 0,Vb=Bc&&(!zc||["ReactNative","NativeScript","NS"].indexOf(zc.product)<0),qb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gb=Bc&&window.location.href||"http://localhost",Yb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bc,hasStandardBrowserEnv:Vb,hasStandardBrowserWebWorkerEnv:qb,navigator:zc,origin:Gb},Symbol.toStringTag,{value:"Module"})),On={...Yb,...Ub};function Kb(n,t){return Oa(n,new On.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,f){return On.isNode&&ue.isBuffer(e)?(this.append(i,e.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},t))}function Qb(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zb(n){const t={},e=Object.keys(n);let i;const m=e.length;let f;for(i=0;i<m;i++)f=e[i],t[f]=n[f];return t}function Zp(n){function t(e,i,m,f){let v=e[f++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=f>=e.length;return v=!v&&ue.isArray(m)?m.length:v,h?(ue.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!ue.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],f)&&ue.isArray(m[v])&&(m[v]=Zb(m[v])),!w)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(i,m)=>{t(Qb(i),m,e,0)}),e}return null}function Jb(n,t,e){if(ue.isString(n))try{return(t||JSON.parse)(n),ue.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const _s={transitional:Qp,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=ue.isObject(n);if(m&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return i?JSON.stringify(Zp(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return Kb(n,this.formSerializer).toString();if((f=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Oa(f?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),Jb(n)):n}],transformResponse:[function(n){const t=this.transitional||_s.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(f){if(m)throw f.name==="SyntaxError"?et.from(f,et.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:On.classes.FormData,Blob:On.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{_s.headers[n]={}});const Xb=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"]),e1=n=>{const t={};let e,i,m;return n&&n.split(`
1376
- `).forEach(function(f){m=f.indexOf(":"),e=f.substring(0,m).trim().toLowerCase(),i=f.substring(m+1).trim(),!(!e||t[e]&&Xb[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},Jp=Symbol("internals");function ks(n){return n&&String(n).trim().toLowerCase()}function Na(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Na):String(n)}function t1(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const n1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function jc(n,t,e,i,m){if(ue.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!ue.isString(t)){if(ue.isString(i))return t.indexOf(i)!==-1;if(ue.isRegExp(i))return i.test(t)}}function i1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function r1(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,f,v){return this[i].call(this,t,m,f,v)},configurable:!0})})}class Xn{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function f(w,h,g){const a=ks(h);if(!a)throw new Error("header name must be a non-empty string");const l=ue.findKey(m,a);(!l||m[l]===void 0||g===!0||g===void 0&&m[l]!==!1)&&(m[l||h]=Na(w))}const v=(w,h)=>ue.forEach(w,(g,a)=>f(g,a,h));if(ue.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(ue.isString(t)&&(t=t.trim())&&!n1(t))v(e1(t),e);else if(ue.isHeaders(t))for(const[w,h]of t.entries())f(h,w,i);else t!=null&&f(e,t,i);return this}get(t,e){if(t=ks(t),t){const i=ue.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return t1(m);if(ue.isFunction(e))return e.call(this,m,i);if(ue.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ks(t),t){const i=ue.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||jc(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function f(v){if(v=ks(v),v){const w=ue.findKey(i,v);w&&(!e||jc(i,i[w],w,e))&&(delete i[w],m=!0)}}return ue.isArray(t)?t.forEach(f):f(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const f=e[i];(!t||jc(this,this[f],f,t,!0))&&(delete this[f],m=!0)}return m}normalize(t){const e=this,i={};return ue.forEach(this,(m,f)=>{const v=ue.findKey(i,f);if(v){e[v]=Na(m),delete e[f];return}const w=t?i1(f):String(f).trim();w!==f&&delete e[f],e[w]=Na(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ue.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&ue.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1377
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[Jp]=this[Jp]={accessors:{}}).accessors,i=this.prototype;function m(f){const v=ks(f);e[v]||(r1(i,f),e[v]=!0)}return ue.isArray(t)?t.forEach(m):m(t),this}}Xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Xn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),ue.freezeMethods(Xn);function Wc(n,t){const e=this||_s,i=t||e,m=Xn.from(i.headers);let f=i.data;return ue.forEach(n,function(v){f=v.call(e,f,m.normalize(),t?t.status:void 0)}),m.normalize(),f}function Xp(n){return!!(n&&n.__CANCEL__)}function Io(n,t,e){et.call(this,n??"canceled",et.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Io,et,{__CANCEL__:!0});function ef(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new et("Request failed with status code "+e.status,[et.ERR_BAD_REQUEST,et.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function o1(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function s1(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,f=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),g=i[f];v||(v=h),e[m]=w,i[m]=h;let a=f,l=0;for(;a!==m;)l+=e[a++],a=a%n;if(m=(m+1)%n,m===f&&(f=(f+1)%n),h-v<t)return;const s=g&&h-g;return s?Math.round(l*1e3/s):void 0}}function a1(n,t){let e=0,i=1e3/t,m,f;const v=(w,h=Date.now())=>{e=h,m=null,f&&(clearTimeout(f),f=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),g=h-e;g>=i?v(w,h):(m=w,f||(f=setTimeout(()=>{f=null,v(m)},i-g)))},()=>m&&v(m)]}const Da=(n,t,e=3)=>{let i=0;const m=s1(50,250);return a1(f=>{const v=f.loaded,w=f.lengthComputable?f.total:void 0,h=v-i,g=m(h),a=v<=w;i=v;const l={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:g||void 0,estimated:g&&w&&a?(w-v)/g:void 0,event:f,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},tf=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},nf=n=>(...t)=>ue.asap(()=>n(...t)),l1=On.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,On.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(On.origin),On.navigator&&/(msie|trident)/i.test(On.navigator.userAgent)):()=>!0,c1=On.hasStandardBrowserEnv?{write(n,t,e,i,m,f){const v=[n+"="+encodeURIComponent(t)];ue.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),ue.isString(i)&&v.push("path="+i),ue.isString(m)&&v.push("domain="+m),f===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function u1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function h1(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function rf(n,t){return n&&!u1(t)?h1(n,t):t}const of=n=>n instanceof Xn?{...n}:n;function Xr(n,t){t=t||{};const e={};function i(g,a,l,s){return ue.isPlainObject(g)&&ue.isPlainObject(a)?ue.merge.call({caseless:s},g,a):ue.isPlainObject(a)?ue.merge({},a):ue.isArray(a)?a.slice():a}function m(g,a,l,s){if(ue.isUndefined(a)){if(!ue.isUndefined(g))return i(void 0,g,l,s)}else return i(g,a,l,s)}function f(g,a){if(!ue.isUndefined(a))return i(void 0,a)}function v(g,a){if(ue.isUndefined(a)){if(!ue.isUndefined(g))return i(void 0,g)}else return i(void 0,a)}function w(g,a,l){if(l in t)return i(g,a);if(l in n)return i(void 0,g)}const h={url:f,method:f,data:f,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(g,a,l)=>m(of(g),of(a),l,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(g){const a=h[g]||m,l=a(n[g],t[g],g);ue.isUndefined(l)&&a!==w||(e[g]=l)}),e}const sf=n=>{const t=Xr({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:f,headers:v,auth:w}=t;t.headers=v=Xn.from(v),t.url=Yp(rf(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(ue.isFormData(e)){if(On.hasStandardBrowserEnv||On.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[g,...a]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];v.setContentType([g||"multipart/form-data",...a].join("; "))}}if(On.hasStandardBrowserEnv&&(i&&ue.isFunction(i)&&(i=i(t)),i||i!==!1&&l1(t.url))){const g=m&&f&&c1.read(f);g&&v.set(m,g)}return t},d1=typeof XMLHttpRequest<"u",p1=d1&&function(n){return new Promise(function(t,e){const i=sf(n);let m=i.data;const f=Xn.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,g,a,l,s,c;function o(){s&&s(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function p(){if(!u)return;const x=Xn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};ef(function(A){t(A),o()},function(A){e(A),o()},R),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(e(new et("Request aborted",et.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new et("Network Error",et.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||Qp;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),e(new et(x,R.clarifyTimeoutError?et.ETIMEDOUT:et.ECONNABORTED,n,u)),u=null},m===void 0&&f.setContentType(null),"setRequestHeader"in u&&ue.forEach(f.toJSON(),function(x,R){u.setRequestHeader(R,x)}),ue.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([l,c]=Da(h,!0),u.addEventListener("progress",l)),w&&u.upload&&([a,s]=Da(w),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(i.cancelToken||i.signal)&&(g=x=>{u&&(e(!x||x.type?new Io(null,n,u):x),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const y=o1(i.url);if(y&&On.protocols.indexOf(y)===-1){e(new et("Unsupported protocol "+y+":",et.ERR_BAD_REQUEST,n));return}u.send(m||null)})},f1=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const f=function(g){if(!m){m=!0,w();const a=g instanceof Error?g:this.reason;i.abort(a instanceof et?a:new Io(a instanceof Error?a.message:a))}};let v=t&&setTimeout(()=>{v=null,f(new et(`timeout ${t} of ms exceeded`,et.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(f):g.removeEventListener("abort",f)}),n=null)};n.forEach(g=>g.addEventListener("abort",f));const{signal:h}=i;return h.unsubscribe=()=>ue.asap(w),h}},g1=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},m1=async function*(n,t){for await(const e of v1(n))yield*g1(e,t)},v1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},af=(n,t,e,i)=>{const m=m1(n,t);let f=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:g,value:a}=await m.next();if(g){w(),h.close();return}let l=a.byteLength;if(e){let s=f+=l;e(s)}h.enqueue(new Uint8Array(a))}catch(g){throw w(g),g}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},Fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lf=Fa&&typeof ReadableStream=="function",y1=Fa&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),cf=(n,...t)=>{try{return!!n(...t)}catch{return!1}},w1=lf&&cf(()=>{let n=!1;const t=new Request(On.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),uf=64*1024,Uc=lf&&cf(()=>ue.isReadableStream(new Response("").body)),Pa={stream:Uc&&(n=>n.body)};Fa&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Pa[t]&&(Pa[t]=ue.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new et(`Response type '${t}' is not supported`,et.ERR_NOT_SUPPORT,i)})})})(new Response);const b1=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(On.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await y1(n)).byteLength},x1=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??b1(t),_1=Fa&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:f,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:g,headers:a,withCredentials:l="same-origin",fetchOptions:s}=sf(n);g=g?(g+"").toLowerCase():"text";let c=f1([m,f&&f.toAbortSignal()],v),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let p;try{if(h&&w1&&e!=="get"&&e!=="head"&&(p=await x1(a,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),b;if(ue.isFormData(i)&&(b=k.headers.get("content-type"))&&a.setContentType(b),k.body){const[T,E]=tf(p,Da(nf(h)));i=af(k.body,uf,T,E)}}ue.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...s,signal:c,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:i,duplex:"half",credentials:y?l:void 0});let x=await fetch(o);const R=Uc&&(g==="stream"||g==="response");if(Uc&&(w||R&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const b=ue.toFiniteNumber(x.headers.get("content-length")),[T,E]=w&&tf(b,Da(nf(w),!0))||[];x=new Response(af(x.body,uf,T,()=>{E&&E(),u&&u()}),k)}g=g||"text";let A=await Pa[ue.findKey(Pa,g)||"text"](x,n);return!R&&u&&u(),await new Promise((k,b)=>{ef(k,b,{data:A,headers:Xn.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new et("Network Error",et.ERR_NETWORK,n,o),{cause:y.cause||y}):et.from(y,y&&y.code,n,o)}}),Vc={http:Fb,xhr:p1,fetch:_1};ue.forEach(Vc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const hf=n=>`- ${n}`,k1=n=>ue.isFunction(n)||n===null||n===!1,df={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let f=0;f<t;f++){e=n[f];let v;if(i=e,!k1(e)&&(i=Vc[(v=String(e)).toLowerCase()],i===void 0))throw new et(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+f]=i}if(!i){const f=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?f.length>1?`since :
1378
- `+f.map(hf).join(`
1379
- `):" "+hf(f[0]):"as no adapter specified";throw new et("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:Vc};function qc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Io(null,n)}function pf(n){return qc(n),n.headers=Xn.from(n.headers),n.data=Wc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),df.getAdapter(n.adapter||_s.adapter)(n).then(function(t){return qc(n),t.data=Wc.call(n,n.transformResponse,t),t.headers=Xn.from(t.headers),t},function(t){return Xp(t)||(qc(n),t&&t.response&&(t.response.data=Wc.call(n,n.transformResponse,t.response),t.response.headers=Xn.from(t.response.headers))),Promise.reject(t)})}const ff="1.7.9",Ha={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Ha[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const gf={};Ha.transitional=function(n,t,e){function i(m,f){return"[Axios v"+ff+"] Transitional option '"+m+"'"+f+(e?". "+e:"")}return(m,f,v)=>{if(n===!1)throw new et(i(f," has been removed"+(t?" in "+t:"")),et.ERR_DEPRECATED);return t&&!gf[f]&&(gf[f]=!0,console.warn(i(f," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,f,v):!0}},Ha.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function $1(n,t,e){if(typeof n!="object")throw new et("options must be an object",et.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const f=i[m],v=t[f];if(v){const w=n[f],h=w===void 0||v(w,f,n);if(h!==!0)throw new et("option "+f+" must be "+h,et.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new et("Unknown option "+f,et.ERR_BAD_OPTION)}}const Ba={assertOptions:$1,validators:Ha},zi=Ba.validators;class eo{constructor(t){this.defaults=t,this.interceptors={request:new Kp,response:new Kp}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const f=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?f&&!String(i.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1380
- `+f):i.stack=f}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Xr(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:f}=e;i!==void 0&&Ba.assertOptions(i,{silentJSONParsing:zi.transitional(zi.boolean),forcedJSONParsing:zi.transitional(zi.boolean),clarifyTimeoutError:zi.transitional(zi.boolean)},!1),m!=null&&(ue.isFunction(m)?e.paramsSerializer={serialize:m}:Ba.assertOptions(m,{encode:zi.function,serialize:zi.function},!0)),Ba.assertOptions(e,{baseUrl:zi.spelling("baseURL"),withXsrfToken:zi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=f&&ue.merge(f.common,f[e.method]);f&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete f[o]}),e.headers=Xn.concat(v,f);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let a,l=0,s;if(!h){const o=[pf.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),s=o.length,a=Promise.resolve(e);l<s;)a=a.then(o[l++],o[l++]);return a}s=w.length;let c=e;for(l=0;l<s;){const o=w[l++],u=w[l++];try{c=o(c)}catch(p){u.call(this,p);break}}try{a=pf.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,s=g.length;l<s;)a=a.then(g[l++],g[l++]);return a}getUri(t){t=Xr(this.defaults,t);const e=rf(t.baseURL,t.url);return Yp(e,t.params,t.paramsSerializer)}}ue.forEach(["delete","get","head","options"],function(n){eo.prototype[n]=function(t,e){return this.request(Xr(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,f){return this.request(Xr(f||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}eo.prototype[n]=t(),eo.prototype[n+"Form"]=t(!0)});class Gc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let f=i._listeners.length;for(;f-- >0;)i._listeners[f](m);i._listeners=null}),this.promise.then=m=>{let f;const v=new Promise(w=>{i.subscribe(w),f=w}).then(m);return v.cancel=function(){i.unsubscribe(f)},v},t(function(m,f,v){i.reason||(i.reason=new Io(m,f,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Gc(function(e){t=e}),cancel:t}}}function S1(n){return function(t){return n.apply(null,t)}}function C1(n){return ue.isObject(n)&&n.isAxiosError===!0}const Yc={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(Yc).forEach(([n,t])=>{Yc[t]=n});function mf(n){const t=new eo(n),e=Lp(eo.prototype.request,t);return ue.extend(e,eo.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return mf(Xr(n,i))},e}const dn=mf(_s);dn.Axios=eo,dn.CanceledError=Io,dn.CancelToken=Gc,dn.isCancel=Xp,dn.VERSION=ff,dn.toFormData=Oa,dn.AxiosError=et,dn.Cancel=dn.CanceledError,dn.all=function(n){return Promise.all(n)},dn.spread=S1,dn.isAxiosError=C1,dn.mergeConfig=Xr,dn.AxiosHeaders=Xn,dn.formToJSON=n=>Zp(ue.isHTMLForm(n)?new FormData(n):n),dn.getAdapter=df.getAdapter,dn.HttpStatusCode=Yc,dn.default=dn;const Kc=dn.create({baseURL:location.origin,timeout:6e4,params:{}});Kc.interceptors.response.use(n=>n,n=>{var t,e,i,m,f,v,w,h,g,a,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 s=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(s+=`${n.response.statusText} `),(i=(e=n.response)==null?void 0:e.config)!=null&&i.data&&(s+=`${n.response.config.data} `),(f=(m=n.response)==null?void 0:m.data)!=null&&f.message?s+=`${n.response.data.message}`:(w=(v=n.response)==null?void 0:v.data)!=null&&w.exception?s+=`${n.response.data.exception}`:(a=(g=(h=n.response)==null?void 0:h.data)==null?void 0:g.error)!=null&&a.message?(n.response.data.error.class&&(s+=`${n.response.data.error.class} `),s+=`${n.response.data.error.message}`):s+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:c}=window;throw c&&c.serious({title:"Network error",body:s}),n}else throw n});const za=async function(n,t,{data:e,params:i={},headers:m,noAuth:f=!1,noScope:v=!1,onUploadProgress:w=!1}={}){if(!f){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}m.Authorization=localStorage.openc3Token}return m.manual=!0,!v&&!i.scope&&(i.scope=window.openc3Scope),Kc({method:n,url:t,data:e,params:i,headers:m,onUploadProgress:w})},Qc={Accept:"application/json"},vf={...Qc,"Content-Type":"application/json"},ZI=rn("O",{get:function(n,{params:t,headers:e=Qc,noScope:i,noAuth:m,onUploadProgress:f}={}){return za("get",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:f})},put:function(n,{data:t,params:e,headers:i=vf,noScope:m,noAuth:f,onUploadProgress:v}={}){return za("put",n,{data:t,params:e,headers:i,noScope:m,noAuth:f,onUploadProgress:v})},post:function(n,{data:t,params:e,headers:i=vf,noScope:m,noAuth:f,onUploadProgress:v}={}){return za("post",n,{data:t,params:e,headers:i,noScope:m,noAuth:f,onUploadProgress:v})},delete:function(n,{params:t,headers:e=Qc,noScope:i,noAuth:m,onUploadProgress:f}={}){return za("delete",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:f})}});var ja={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Vt={log(...n){this.enabled&&(n.push(Date.now()),ja.logger.log("[ActionCable]",...n))}};const $s=()=>new Date().getTime(),Wa=n=>($s()-n)/1e3;class Ua{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=$s(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Vt.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=$s(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Vt.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=$s()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Vt.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=$s(),Vt.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor,i=Math.pow(1+e,Math.min(this.reconnectAttempts,10)),m=(this.reconnectAttempts===0?1:e)*Math.random();return t*1e3*i*(1+m)}reconnectIfStale(){this.connectionIsStale()&&(Vt.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Wa(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Vt.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Wa(this.disconnectedAt)} s`):(Vt.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Wa(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Wa(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Vt.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Ua.staleThreshold=6,Ua.reconnectionBackoffRate=.15;var yf={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:Ss,protocols:Zc}=yf,A1=Zc.slice(0,Zc.length-1),wf=[].indexOf;class Jc{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new Ua(this),this.disconnected=!0}send(t){return this.isOpen()?(this.webSocket.send(JSON.stringify(t)),!0):!1}open(){if(this.isActive())return Vt.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...Zc,...this.consumer.subprotocols||[]];return Vt.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new ja.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Vt.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(t){Vt.log("Failed to reopen WebSocket",t)}finally{Vt.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 wf.call(A1,this.getProtocol())>=0}isState(...t){return wf.call(t,this.getState())>=0}getState(){if(this.webSocket){for(let t in ja.WebSocket)if(ja.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase()}return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}Jc.reopenDelay=500,Jc.prototype.events={message(n){if(!this.isProtocolSupported())return;const{identifier:t,message:e,reason:i,reconnect:m,type:f}=JSON.parse(n.data);switch(f){case Ss.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case Ss.disconnect:return Vt.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:m});case Ss.ping:return this.monitor.recordPing();case Ss.confirmation:return this.subscriptions.confirmSubscription(t),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(t,"connected",{reconnected:!0})):this.subscriptions.notify(t,"connected",{reconnected:!1});case Ss.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",e)}},open(){if(Vt.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Vt.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(Vt.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Vt.log("WebSocket onerror event")}};const T1=function(n,t){if(t!=null)for(let e in t){const i=t[e];n[e]=i}return n};class M1{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),T1(this,i)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class E1{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){this.pendingSubscriptions.indexOf(t)==-1?(Vt.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):Vt.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){Vt.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(e=>e!==t)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(t=>{Vt.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)})},500)}}class R1{constructor(t){this.consumer=t,this.guarantor=new E1(this),this.subscriptions=[]}create(t,e){const i=t,m=typeof i=="object"?i:{channel:i},f=new M1(this.consumer,m,e);return this.add(f)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map(e=>(this.forget(e),this.notify(e,"rejected"),e))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(e=>e!==t),t}findAll(t){return this.subscriptions.filter(e=>e.identifier===t)}reload(){return this.subscriptions.map(t=>this.subscribe(t))}notifyAll(t,...e){return this.subscriptions.map(i=>this.notify(i,t,...e))}notify(t,e,...i){let m;return typeof t=="string"?m=this.findAll(t):m=[t],m.map(f=>typeof f[e]=="function"?f[e](...i):void 0)}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){Vt.log(`Subscription confirmed ${t}`),this.findAll(t).map(e=>this.guarantor.forget(e))}sendCommand(t,e){const{identifier:i}=t;return this.consumer.send({command:e,identifier:i})}}class L1{constructor(t){this._url=t,this.subscriptions=new R1(this),this.connection=new Jc(this),this.subprotocols=[]}get url(){return I1(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(t){this.subprotocols=[...this.subprotocols,t]}}function I1(n){if(typeof n=="function"&&(n=n()),n&&!/^wss?:/i.test(n)){const t=document.createElement("a");return t.href=n,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}else return n}function O1(n=N1("url")||yf.default_mount_path){return new L1(n)}function N1(n){const t=document.head.querySelector(`meta[name='action-cable-${n}']`);if(t)return t.getAttribute("content")}Ua.staleThreshold=10;let JI=rn("D",class{constructor(n="/openc3-api/cable"){this._cable=null,this._url=n}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(n,t,e={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(m=>{if(m&&OpenC3Auth.setTokens(),this._cable==null){let f=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=O1(f)}return this._cable.subscriptions.create({channel:n,...i},e)})}recordPing(){this._cable.connection.monitor.recordPing()}});class D1{constructor(t,e,i="",m=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=i,this.url=m}}rn("b",D1);class Sr{constructor(){Zw(this,"id",1)}async exec(t,e,i={},m={},f=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,m.manual=!0,(await Kc.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...m},timeout:f})).data.result}catch(v){let w=new Error;throw v.response?(w.name=v.response.data.error.data.class,w.message=v.response.data.error.data.message,w.object=v.response.data.error):v.request?(w.name="Request error",w.message="Request error, no response received"):w.name="Unknown error",w}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...i){return this.exec("interface_cmd",[t,e,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,i){return this.exec("get_item",[t,e,i])}get_param(t,e,i){return this.exec("get_param",[t,e,i])}get_parameter(t,e,i){return this.exec("get_param",[t,e,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}async get_tlm_packet(t,e,i,m=30){const f=await this.exec("get_tlm_packet",[t,e],{type:i,stale_time:m});if(f!=null){let v=f.length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(f[h][1]),w!==null&&(f[h][1]=w)}return f}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,i=null){let m={stale_time:e};i!==null&&(m.cache_timeout=i);const f=await this.exec("get_tlm_values",[t],m,{},1e4);let v=f[0].length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(f[0][h]),w!==null&&(f[0][h]=w);return f}get_limits(t,e,i){return this.exec("get_limits",[t,e,i])}async tlm(t,e,i,m="CONVERTED"){let f=null;if(e===void 0)f=await this.exec("tlm",[t]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))f=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else f=await this.exec("tlm",[t,e,i],{type:m});let v=this.decode_openc3_type(f);return v!==null&&(f=v),f}async inject_tlm(t,e,i=null,m="CONVERTED"){data=await this.exec("inject_tlm",[t,e,i],{type:m})}set_tlm(t,e,i,m){return this.exec("set_tlm",[t,e,i],{type:m})}override_tlm(t,e,i,m){return this.exec("override_tlm",[t,e,i],{type:m})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,i,m){return this.exec("normalize_tlm",[t,e,i],{type:m})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,i,m="CONVERTED"){return this.exec("get_cmd_value",[t,e,i,m])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,i,m,f){let v=null;for(let w in m)Object.prototype.hasOwnProperty.call(m,w)&&(v=this.encode_openc3_type(m[w]),v!==null&&(m[w]=v));return this.exec(t,[e,i,m],{},f)}get_cmd_hazardous(t,e,i,m={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},m):this._cmd("get_cmd_hazardous",t,e,i,m)}cmd(t,e,i,m={}){return e===void 0?this.exec("cmd",t,{},m):this._cmd("cmd",t,e,i,m)}cmd_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_range_check",t,{},m):this._cmd("cmd_no_range_check",t,e,i,m)}cmd_raw(t,e,i,m={}){return e===void 0?this.exec("cmd_raw",t,{},m):this._cmd("cmd_raw",t,e,i,m)}cmd_raw_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},m):this._cmd("cmd_raw_no_range_check",t,e,i,m)}cmd_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},m):this._cmd("cmd_no_hazardous_check",t,e,i,m)}cmd_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_no_checks",t,{},m):this._cmd("cmd_no_checks",t,e,i,m)}cmd_raw_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},m):this._cmd("cmd_raw_no_hazardous_check",t,e,i,m)}cmd_raw_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},m):this._cmd("cmd_raw_no_checks",t,e,i,m)}build_cmd(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}build_command(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,i){return this.exec("save_config",[t,e,i])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,i){return this.exec("enable_limits",[t,e,i])}disable_limits(t,e,i){return this.exec("disable_limits",[t,e,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",e),m=new Uint8Array(i);return Array.from(m).map(f=>f.toString(16).padStart(2,"0")).join("")}}}rn("W",Sr);const F1=rn("U",{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 Va={exports:{}};/**
1375
+ }`}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/ext/searchbox-css","ace/keyboard/hash_handler","ace/lib/keys","ace/config"],function(e,i,m){var f=e("../lib/dom"),v=e("../lib/lang"),w=e("../lib/event"),h=e("./searchbox-css"),g=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),l=e("../config").nls,s=999;f.importCssString(h,"ace_searchbox",!1);var c=function(){function p(y,x,R){this.activeInput;var A=f.createElement("div");f.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"]]],A),this.element=A.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(y),f.importCssString(h,"ace_searchbox",y.container)}return p.prototype.setEditor=function(y){y.searchBox=this,y.renderer.scroller.appendChild(this.element),this.editor=y},p.prototype.setSession=function(y){this.searchRange=null,this.$syncOptions(!0)},p.prototype.$initElements=function(y){this.searchBox=y.querySelector(".ace_search_form"),this.replaceBox=y.querySelector(".ace_replace_form"),this.searchOption=y.querySelector("[action=searchInSelection]"),this.replaceOption=y.querySelector("[action=toggleReplace]"),this.regExpOption=y.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=y.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=y.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=y.querySelector(".ace_search_counter")},p.prototype.$init=function(){var y=this.element;this.$initElements(y);var x=this;w.addListener(y,"mousedown",function(R){setTimeout(function(){x.activeInput.focus()},0),w.stopPropagation(R)}),w.addListener(y,"click",function(R){var A=R.target||R.srcElement,k=A.getAttribute("action");k&&x[k]?x[k]():x.$searchBarKb.commands[k]&&x.$searchBarKb.commands[k].exec(x),w.stopPropagation(R)}),w.addCommandKeyListener(y,function(R,A,k){var b=a.keyCodeToString(k),T=x.$searchBarKb.findKeyCommand(A,b);T&&T.exec&&(T.exec(x),w.stopEvent(R))}),this.$onChange=v.delayedCall(function(){x.find(!1,!1)}),w.addListener(this.searchInput,"input",function(){x.$onChange.schedule(20)}),w.addListener(this.searchInput,"focus",function(){x.activeInput=x.searchInput,x.searchInput.value&&x.highlight()}),w.addListener(this.replaceInput,"focus",function(){x.activeInput=x.replaceInput,x.searchInput.value&&x.highlight()})},p.prototype.setSearchRange=function(y){this.searchRange=y,y?this.searchRangeMarker=this.editor.session.addMarker(y,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},p.prototype.$syncOptions=function(y){f.setCssClass(this.replaceOption,"checked",this.searchRange),f.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",f.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),f.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),f.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var x=this.editor.getReadOnly();this.replaceOption.style.display=x?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!x?"":"none",this.find(!1,!1,y)},p.prototype.highlight=function(y){this.editor.session.highlight(y||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},p.prototype.find=function(y,x,R){var A=this.editor.find(this.searchInput.value,{skipCurrent:y,backwards:x,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:R,range:this.searchRange}),k=!A&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",k),this.editor._emit("findSearchBox",{match:!k}),this.highlight(),this.updateCounter()},p.prototype.updateCounter=function(){var y=this.editor,x=y.$search.$options.re,R=x.unicode,A=0,k=0;if(x){var b=this.searchRange?y.session.getTextRange(this.searchRange):y.getValue(),T=y.session.doc.positionToIndex(y.selection.anchor);this.searchRange&&(T-=y.session.doc.positionToIndex(this.searchRange.start));for(var E=x.lastIndex=0,I;(I=x.exec(b))&&(A++,E=I.index,E<=T&&k++,!(A>s||!I[0]&&(x.lastIndex=E+=v.skipEmptyMatch(b,E,R),E>=b.length))););}this.searchCounter.textContent=l("search-box.search-counter","$0 of $1",[k,A>s?s+"+":A])},p.prototype.findNext=function(){this.find(!0,!1)},p.prototype.findPrev=function(){this.find(!0,!0)},p.prototype.findAll=function(){var y=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),x=!y&&this.searchInput.value;f.setCssClass(this.searchBox,"ace_nomatch",x),this.editor._emit("findSearchBox",{match:!x}),this.highlight(),this.hide()},p.prototype.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},p.prototype.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},p.prototype.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},p.prototype.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},p.prototype.show=function(y,x){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=x,y&&(this.searchInput.value=y),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},p.prototype.isFocused=function(){var y=document.activeElement;return y==this.searchInput||y==this.replaceInput},p}(),o=new g;o.bindKeys({"Ctrl-f|Command-f":function(p){var y=p.isReplace=!p.isReplace;p.replaceBox.style.display=y?"":"none",p.replaceOption.checked=!1,p.$syncOptions(),p.searchInput.focus()},"Ctrl-H|Command-Option-F":function(p){p.editor.getReadOnly()||(p.replaceOption.checked=!0,p.$syncOptions(),p.replaceInput.focus())},"Ctrl-G|Command-G":function(p){p.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(p){p.findPrev()},esc:function(p){setTimeout(function(){p.hide()})},Return:function(p){p.activeInput==p.replaceInput&&p.replace(),p.findNext()},"Shift-Return":function(p){p.activeInput==p.replaceInput&&p.replace(),p.findPrev()},"Alt-Return":function(p){p.activeInput==p.replaceInput&&p.replaceAll(),p.findAll()},Tab:function(p){(p.activeInput==p.replaceInput?p.searchInput:p.replaceInput).focus()}}),o.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(p){p.regExpOption.checked=!p.regExpOption.checked,p.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(p){p.caseSensitiveOption.checked=!p.caseSensitiveOption.checked,p.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(p){p.wholeWordOption.checked=!p.wholeWordOption.checked,p.$syncOptions()}},{name:"toggleReplace",exec:function(p){p.replaceOption.checked=!p.replaceOption.checked,p.$syncOptions()}},{name:"searchInSelection",exec:function(p){p.searchOption.checked=!p.searchRange,p.setSearchRange(p.searchOption.checked&&p.editor.getSelectionRange()),p.$syncOptions()}}]);var u=new g([{bindKey:"Esc",name:"closeSearchBar",exec:function(p){p.searchBox.hide()}}]);c.prototype.$searchBarKb=o,c.prototype.$closeSearchBarKb=u,i.SearchBox=c,i.Search=function(p,y){var x=p.searchBox||new c(p);x.show(p.session.getTextRange(),y)}}),function(){ace.require(["ace/ext/searchbox"],function(e){n.exports=e})}()}(Rp)),Rp.exports}Qw();var Zw=Object.defineProperty,Jw=(n,t,e)=>t in n?Zw(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Xw=(n,t,e)=>Jw(n,t+"",e);function Ip(n,t){return function(){return n.apply(t,arguments)}}const{toString:eb}=Object.prototype,{getPrototypeOf:Nc}=Object,Ea=(n=>t=>{const e=eb.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ri=n=>(n=n.toLowerCase(),t=>Ea(t)===n),Ra=n=>t=>typeof t===n,{isArray:Lo}=Array,bs=Ra("undefined");function tb(n){return n!==null&&!bs(n)&&n.constructor!==null&&!bs(n.constructor)&&ci(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Op=Ri("ArrayBuffer");function nb(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Op(n.buffer),t}const ib=Ra("string"),ci=Ra("function"),Np=Ra("number"),La=n=>n!==null&&typeof n=="object",rb=n=>n===!0||n===!1,Ia=n=>{if(Ea(n)!=="object")return!1;const t=Nc(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},ob=Ri("Date"),sb=Ri("File"),ab=Ri("Blob"),lb=Ri("FileList"),cb=n=>La(n)&&ci(n.pipe),ub=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ci(n.append)&&((t=Ea(n))==="formdata"||t==="object"&&ci(n.toString)&&n.toString()==="[object FormData]"))},hb=Ri("URLSearchParams"),[db,pb,fb,gb]=["ReadableStream","Request","Response","Headers"].map(Ri),mb=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xs(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Lo(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const f=e?Object.getOwnPropertyNames(n):Object.keys(n),v=f.length;let w;for(i=0;i<v;i++)w=f[i],t.call(null,n[w],w,n)}}function Dp(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const Jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fp=n=>!bs(n)&&n!==Jr;function Dc(){const{caseless:n}=Fp(this)&&this||{},t={},e=(i,m)=>{const f=n&&Dp(t,m)||m;Ia(t[f])&&Ia(i)?t[f]=Dc(t[f],i):Ia(i)?t[f]=Dc({},i):Lo(i)?t[f]=i.slice():t[f]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&xs(arguments[i],e);return t}const vb=(n,t,e,{allOwnKeys:i}={})=>(xs(t,(m,f)=>{e&&ci(m)?n[f]=Ip(m,e):n[f]=m},{allOwnKeys:i}),n),yb=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),wb=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},bb=(n,t,e,i)=>{let m,f,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),f=m.length;f-- >0;)v=m[f],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&Nc(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},xb=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},_b=n=>{if(!n)return null;if(Lo(n))return n;let t=n.length;if(!Np(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},kb=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Nc(Uint8Array)),$b=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},Sb=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Cb=Ri("HTMLFormElement"),Ab=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Pp=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Tb=Ri("RegExp"),Hp=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};xs(e,(m,f)=>{let v;(v=t(m,f,n))!==!1&&(i[f]=v||m)}),Object.defineProperties(n,i)},Mb=n=>{Hp(n,(t,e)=>{if(ci(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(ci(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Eb=(n,t)=>{const e={},i=m=>{m.forEach(f=>{e[f]=!0})};return Lo(n)?i(n):i(String(n).split(t)),e},Rb=()=>{},Lb=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,Fc="abcdefghijklmnopqrstuvwxyz",zp="0123456789",Bp={DIGIT:zp,ALPHA:Fc,ALPHA_DIGIT:Fc+Fc.toUpperCase()+zp},Ib=(n=16,t=Bp.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function Ob(n){return!!(n&&ci(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const Nb=n=>{const t=new Array(10),e=(i,m)=>{if(La(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const f=Lo(i)?[]:{};return xs(i,(v,w)=>{const h=e(v,m+1);!bs(h)&&(f[w]=h)}),t[m]=void 0,f}}return i};return e(n,0)},Db=Ri("AsyncFunction"),Fb=n=>n&&(La(n)||ci(n))&&ci(n.then)&&ci(n.catch),jp=((n,t)=>n?setImmediate:t?((e,i)=>(Jr.addEventListener("message",({source:m,data:f})=>{m===Jr&&f===e&&i.length&&i.shift()()},!1),m=>{i.push(m),Jr.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ci(Jr.postMessage)),Pb=typeof queueMicrotask<"u"?queueMicrotask.bind(Jr):typeof process<"u"&&process.nextTick||jp,ue={isArray:Lo,isArrayBuffer:Op,isBuffer:tb,isFormData:ub,isArrayBufferView:nb,isString:ib,isNumber:Np,isBoolean:rb,isObject:La,isPlainObject:Ia,isReadableStream:db,isRequest:pb,isResponse:fb,isHeaders:gb,isUndefined:bs,isDate:ob,isFile:sb,isBlob:ab,isRegExp:Tb,isFunction:ci,isStream:cb,isURLSearchParams:hb,isTypedArray:kb,isFileList:lb,forEach:xs,merge:Dc,extend:vb,trim:mb,stripBOM:yb,inherits:wb,toFlatObject:bb,kindOf:Ea,kindOfTest:Ri,endsWith:xb,toArray:_b,forEachEntry:$b,matchAll:Sb,isHTMLForm:Cb,hasOwnProperty:Pp,hasOwnProp:Pp,reduceDescriptors:Hp,freezeMethods:Mb,toObjectSet:Eb,toCamelCase:Ab,noop:Rb,toFiniteNumber:Lb,findKey:Dp,global:Jr,isContextDefined:Fp,ALPHABET:Bp,generateString:Ib,isSpecCompliantForm:Ob,toJSONObject:Nb,isAsyncFn:Db,isThenable:Fb,setImmediate:jp,asap:Pb};function et(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.status:null)}ue.inherits(et,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 Wp=et.prototype,Up={};["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=>{Up[n]={value:n}}),Object.defineProperties(et,Up),Object.defineProperty(Wp,"isAxiosError",{value:!0}),et.from=(n,t,e,i,m,f)=>{const v=Object.create(Wp);return ue.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),et.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,f&&Object.assign(v,f),v};const Hb=null;function Pc(n){return ue.isPlainObject(n)||ue.isArray(n)}function Vp(n){return ue.endsWith(n,"[]")?n.slice(0,-2):n}function qp(n,t,e){return n?n.concat(t).map(function(i,m){return i=Vp(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function zb(n){return ue.isArray(n)&&!n.some(Pc)}const Bb=ue.toFlatObject(ue,{},null,function(n){return/^is[A-Z]/.test(n)});function Oa(n,t,e){if(!ue.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=ue.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!ue.isUndefined(o[c])});const i=e.metaTokens,m=e.visitor||g,f=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&ue.isSpecCompliantForm(t);if(!ue.isFunction(m))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(ue.isDate(c))return c.toISOString();if(!w&&ue.isBlob(c))throw new et("Blob is not supported. Use a Buffer instead.");return ue.isArrayBuffer(c)||ue.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,o,u){let p=c;if(c&&!u&&typeof c=="object"){if(ue.endsWith(o,"{}"))o=i?o:o.slice(0,-2),c=JSON.stringify(c);else if(ue.isArray(c)&&zb(c)||(ue.isFileList(c)||ue.endsWith(o,"[]"))&&(p=ue.toArray(c)))return o=Vp(o),p.forEach(function(y,x){!(ue.isUndefined(y)||y===null)&&t.append(v===!0?qp([o],x,f):v===null?o:o+"[]",h(y))}),!1}return Pc(c)?!0:(t.append(qp(u,o,f),h(c)),!1)}const a=[],l=Object.assign(Bb,{defaultVisitor:g,convertValue:h,isVisitable:Pc});function s(c,o){if(!ue.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(c),ue.forEach(c,function(u,p){(!(ue.isUndefined(u)||u===null)&&m.call(t,u,ue.isString(p)?p.trim():p,o,l))===!0&&s(u,o?o.concat(p):[p])}),a.pop()}}if(!ue.isObject(n))throw new TypeError("data must be an object");return s(n),t}function Gp(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Hc(n,t){this._pairs=[],n&&Oa(n,this,t)}const Yp=Hc.prototype;Yp.append=function(n,t){this._pairs.push([n,t])},Yp.toString=function(n){const t=n?function(e){return n.call(this,e,Gp)}:Gp;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function jb(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kp(n,t,e){if(!t)return n;const i=e&&e.encode||jb;ue.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let f;if(m?f=m(t,e):f=ue.isURLSearchParams(t)?t.toString():new Hc(t,e).toString(i),f){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}class Qp{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ue.forEach(this.handlers,function(e){e!==null&&t(e)})}}const Zp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wb=typeof URLSearchParams<"u"?URLSearchParams:Hc,Ub=typeof FormData<"u"?FormData:null,Vb=typeof Blob<"u"?Blob:null,qb={isBrowser:!0,classes:{URLSearchParams:Wb,FormData:Ub,Blob:Vb},protocols:["http","https","file","blob","url","data"]},zc=typeof window<"u"&&typeof document<"u",Bc=typeof navigator=="object"&&navigator||void 0,Gb=zc&&(!Bc||["ReactNative","NativeScript","NS"].indexOf(Bc.product)<0),Yb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kb=zc&&window.location.href||"http://localhost",Qb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:zc,hasStandardBrowserEnv:Gb,hasStandardBrowserWebWorkerEnv:Yb,navigator:Bc,origin:Kb},Symbol.toStringTag,{value:"Module"})),On={...Qb,...qb};function Zb(n,t){return Oa(n,new On.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,f){return On.isNode&&ue.isBuffer(e)?(this.append(i,e.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},t))}function Jb(n){return ue.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xb(n){const t={},e=Object.keys(n);let i;const m=e.length;let f;for(i=0;i<m;i++)f=e[i],t[f]=n[f];return t}function Jp(n){function t(e,i,m,f){let v=e[f++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=f>=e.length;return v=!v&&ue.isArray(m)?m.length:v,h?(ue.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!ue.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],f)&&ue.isArray(m[v])&&(m[v]=Xb(m[v])),!w)}if(ue.isFormData(n)&&ue.isFunction(n.entries)){const e={};return ue.forEachEntry(n,(i,m)=>{t(Jb(i),m,e,0)}),e}return null}function e1(n,t,e){if(ue.isString(n))try{return(t||JSON.parse)(n),ue.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const _s={transitional:Zp,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=ue.isObject(n);if(m&&ue.isHTMLForm(n)&&(n=new FormData(n)),ue.isFormData(n))return i?JSON.stringify(Jp(n)):n;if(ue.isArrayBuffer(n)||ue.isBuffer(n)||ue.isStream(n)||ue.isFile(n)||ue.isBlob(n)||ue.isReadableStream(n))return n;if(ue.isArrayBufferView(n))return n.buffer;if(ue.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return Zb(n,this.formSerializer).toString();if((f=ue.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return Oa(f?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),e1(n)):n}],transformResponse:[function(n){const t=this.transitional||_s.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(ue.isResponse(n)||ue.isReadableStream(n))return n;if(n&&ue.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(f){if(m)throw f.name==="SyntaxError"?et.from(f,et.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:On.classes.FormData,Blob:On.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ue.forEach(["delete","get","head","post","put","patch"],n=>{_s.headers[n]={}});const t1=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"]),n1=n=>{const t={};let e,i,m;return n&&n.split(`
1376
+ `).forEach(function(f){m=f.indexOf(":"),e=f.substring(0,m).trim().toLowerCase(),i=f.substring(m+1).trim(),!(!e||t[e]&&t1[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},Xp=Symbol("internals");function ks(n){return n&&String(n).trim().toLowerCase()}function Na(n){return n===!1||n==null?n:ue.isArray(n)?n.map(Na):String(n)}function i1(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const r1=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function jc(n,t,e,i,m){if(ue.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!ue.isString(t)){if(ue.isString(i))return t.indexOf(i)!==-1;if(ue.isRegExp(i))return i.test(t)}}function o1(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function s1(n,t){const e=ue.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,f,v){return this[i].call(this,t,m,f,v)},configurable:!0})})}class Xn{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function f(w,h,g){const a=ks(h);if(!a)throw new Error("header name must be a non-empty string");const l=ue.findKey(m,a);(!l||m[l]===void 0||g===!0||g===void 0&&m[l]!==!1)&&(m[l||h]=Na(w))}const v=(w,h)=>ue.forEach(w,(g,a)=>f(g,a,h));if(ue.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(ue.isString(t)&&(t=t.trim())&&!r1(t))v(n1(t),e);else if(ue.isHeaders(t))for(const[w,h]of t.entries())f(h,w,i);else t!=null&&f(e,t,i);return this}get(t,e){if(t=ks(t),t){const i=ue.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return i1(m);if(ue.isFunction(e))return e.call(this,m,i);if(ue.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ks(t),t){const i=ue.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||jc(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function f(v){if(v=ks(v),v){const w=ue.findKey(i,v);w&&(!e||jc(i,i[w],w,e))&&(delete i[w],m=!0)}}return ue.isArray(t)?t.forEach(f):f(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const f=e[i];(!t||jc(this,this[f],f,t,!0))&&(delete this[f],m=!0)}return m}normalize(t){const e=this,i={};return ue.forEach(this,(m,f)=>{const v=ue.findKey(i,f);if(v){e[v]=Na(m),delete e[f];return}const w=t?o1(f):String(f).trim();w!==f&&delete e[f],e[w]=Na(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ue.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&ue.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1377
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[Xp]=this[Xp]={accessors:{}}).accessors,i=this.prototype;function m(f){const v=ks(f);e[v]||(s1(i,f),e[v]=!0)}return ue.isArray(t)?t.forEach(m):m(t),this}}Xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ue.reduceDescriptors(Xn.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),ue.freezeMethods(Xn);function Wc(n,t){const e=this||_s,i=t||e,m=Xn.from(i.headers);let f=i.data;return ue.forEach(n,function(v){f=v.call(e,f,m.normalize(),t?t.status:void 0)}),m.normalize(),f}function ef(n){return!!(n&&n.__CANCEL__)}function Io(n,t,e){et.call(this,n??"canceled",et.ERR_CANCELED,t,e),this.name="CanceledError"}ue.inherits(Io,et,{__CANCEL__:!0});function tf(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new et("Request failed with status code "+e.status,[et.ERR_BAD_REQUEST,et.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function a1(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function l1(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,f=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),g=i[f];v||(v=h),e[m]=w,i[m]=h;let a=f,l=0;for(;a!==m;)l+=e[a++],a=a%n;if(m=(m+1)%n,m===f&&(f=(f+1)%n),h-v<t)return;const s=g&&h-g;return s?Math.round(l*1e3/s):void 0}}function c1(n,t){let e=0,i=1e3/t,m,f;const v=(w,h=Date.now())=>{e=h,m=null,f&&(clearTimeout(f),f=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),g=h-e;g>=i?v(w,h):(m=w,f||(f=setTimeout(()=>{f=null,v(m)},i-g)))},()=>m&&v(m)]}const Da=(n,t,e=3)=>{let i=0;const m=l1(50,250);return c1(f=>{const v=f.loaded,w=f.lengthComputable?f.total:void 0,h=v-i,g=m(h),a=v<=w;i=v;const l={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:g||void 0,estimated:g&&w&&a?(w-v)/g:void 0,event:f,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},nf=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},rf=n=>(...t)=>ue.asap(()=>n(...t)),u1=On.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,On.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(On.origin),On.navigator&&/(msie|trident)/i.test(On.navigator.userAgent)):()=>!0,h1=On.hasStandardBrowserEnv?{write(n,t,e,i,m,f){const v=[n+"="+encodeURIComponent(t)];ue.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),ue.isString(i)&&v.push("path="+i),ue.isString(m)&&v.push("domain="+m),f===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function d1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function p1(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function of(n,t){return n&&!d1(t)?p1(n,t):t}const sf=n=>n instanceof Xn?{...n}:n;function Xr(n,t){t=t||{};const e={};function i(g,a,l,s){return ue.isPlainObject(g)&&ue.isPlainObject(a)?ue.merge.call({caseless:s},g,a):ue.isPlainObject(a)?ue.merge({},a):ue.isArray(a)?a.slice():a}function m(g,a,l,s){if(ue.isUndefined(a)){if(!ue.isUndefined(g))return i(void 0,g,l,s)}else return i(g,a,l,s)}function f(g,a){if(!ue.isUndefined(a))return i(void 0,a)}function v(g,a){if(ue.isUndefined(a)){if(!ue.isUndefined(g))return i(void 0,g)}else return i(void 0,a)}function w(g,a,l){if(l in t)return i(g,a);if(l in n)return i(void 0,g)}const h={url:f,method:f,data:f,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(g,a,l)=>m(sf(g),sf(a),l,!0)};return ue.forEach(Object.keys(Object.assign({},n,t)),function(g){const a=h[g]||m,l=a(n[g],t[g],g);ue.isUndefined(l)&&a!==w||(e[g]=l)}),e}const af=n=>{const t=Xr({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:f,headers:v,auth:w}=t;t.headers=v=Xn.from(v),t.url=Kp(of(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(ue.isFormData(e)){if(On.hasStandardBrowserEnv||On.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[g,...a]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];v.setContentType([g||"multipart/form-data",...a].join("; "))}}if(On.hasStandardBrowserEnv&&(i&&ue.isFunction(i)&&(i=i(t)),i||i!==!1&&u1(t.url))){const g=m&&f&&h1.read(f);g&&v.set(m,g)}return t},f1=typeof XMLHttpRequest<"u",g1=f1&&function(n){return new Promise(function(t,e){const i=af(n);let m=i.data;const f=Xn.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,g,a,l,s,c;function o(){s&&s(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function p(){if(!u)return;const x=Xn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};tf(function(A){t(A),o()},function(A){e(A),o()},R),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(e(new et("Request aborted",et.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new et("Network Error",et.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||Zp;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),e(new et(x,R.clarifyTimeoutError?et.ETIMEDOUT:et.ECONNABORTED,n,u)),u=null},m===void 0&&f.setContentType(null),"setRequestHeader"in u&&ue.forEach(f.toJSON(),function(x,R){u.setRequestHeader(R,x)}),ue.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([l,c]=Da(h,!0),u.addEventListener("progress",l)),w&&u.upload&&([a,s]=Da(w),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(i.cancelToken||i.signal)&&(g=x=>{u&&(e(!x||x.type?new Io(null,n,u):x),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const y=a1(i.url);if(y&&On.protocols.indexOf(y)===-1){e(new et("Unsupported protocol "+y+":",et.ERR_BAD_REQUEST,n));return}u.send(m||null)})},m1=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const f=function(g){if(!m){m=!0,w();const a=g instanceof Error?g:this.reason;i.abort(a instanceof et?a:new Io(a instanceof Error?a.message:a))}};let v=t&&setTimeout(()=>{v=null,f(new et(`timeout ${t} of ms exceeded`,et.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(f):g.removeEventListener("abort",f)}),n=null)};n.forEach(g=>g.addEventListener("abort",f));const{signal:h}=i;return h.unsubscribe=()=>ue.asap(w),h}},v1=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},y1=async function*(n,t){for await(const e of w1(n))yield*v1(e,t)},w1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},lf=(n,t,e,i)=>{const m=y1(n,t);let f=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:g,value:a}=await m.next();if(g){w(),h.close();return}let l=a.byteLength;if(e){let s=f+=l;e(s)}h.enqueue(new Uint8Array(a))}catch(g){throw w(g),g}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},Fa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",cf=Fa&&typeof ReadableStream=="function",b1=Fa&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),uf=(n,...t)=>{try{return!!n(...t)}catch{return!1}},x1=cf&&uf(()=>{let n=!1;const t=new Request(On.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),hf=64*1024,Uc=cf&&uf(()=>ue.isReadableStream(new Response("").body)),Pa={stream:Uc&&(n=>n.body)};Fa&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Pa[t]&&(Pa[t]=ue.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new et(`Response type '${t}' is not supported`,et.ERR_NOT_SUPPORT,i)})})})(new Response);const _1=async n=>{if(n==null)return 0;if(ue.isBlob(n))return n.size;if(ue.isSpecCompliantForm(n))return(await new Request(On.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(ue.isArrayBufferView(n)||ue.isArrayBuffer(n))return n.byteLength;if(ue.isURLSearchParams(n)&&(n=n+""),ue.isString(n))return(await b1(n)).byteLength},k1=async(n,t)=>ue.toFiniteNumber(n.getContentLength())??_1(t),$1=Fa&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:f,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:g,headers:a,withCredentials:l="same-origin",fetchOptions:s}=af(n);g=g?(g+"").toLowerCase():"text";let c=m1([m,f&&f.toAbortSignal()],v),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let p;try{if(h&&x1&&e!=="get"&&e!=="head"&&(p=await k1(a,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),b;if(ue.isFormData(i)&&(b=k.headers.get("content-type"))&&a.setContentType(b),k.body){const[T,E]=nf(p,Da(rf(h)));i=lf(k.body,hf,T,E)}}ue.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...s,signal:c,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:i,duplex:"half",credentials:y?l:void 0});let x=await fetch(o);const R=Uc&&(g==="stream"||g==="response");if(Uc&&(w||R&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const b=ue.toFiniteNumber(x.headers.get("content-length")),[T,E]=w&&nf(b,Da(rf(w),!0))||[];x=new Response(lf(x.body,hf,T,()=>{E&&E(),u&&u()}),k)}g=g||"text";let A=await Pa[ue.findKey(Pa,g)||"text"](x,n);return!R&&u&&u(),await new Promise((k,b)=>{tf(k,b,{data:A,headers:Xn.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new et("Network Error",et.ERR_NETWORK,n,o),{cause:y.cause||y}):et.from(y,y&&y.code,n,o)}}),Vc={http:Hb,xhr:g1,fetch:$1};ue.forEach(Vc,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const df=n=>`- ${n}`,S1=n=>ue.isFunction(n)||n===null||n===!1,pf={getAdapter:n=>{n=ue.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let f=0;f<t;f++){e=n[f];let v;if(i=e,!S1(e)&&(i=Vc[(v=String(e)).toLowerCase()],i===void 0))throw new et(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+f]=i}if(!i){const f=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?f.length>1?`since :
1378
+ `+f.map(df).join(`
1379
+ `):" "+df(f[0]):"as no adapter specified";throw new et("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:Vc};function qc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Io(null,n)}function ff(n){return qc(n),n.headers=Xn.from(n.headers),n.data=Wc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),pf.getAdapter(n.adapter||_s.adapter)(n).then(function(t){return qc(n),t.data=Wc.call(n,n.transformResponse,t),t.headers=Xn.from(t.headers),t},function(t){return ef(t)||(qc(n),t&&t.response&&(t.response.data=Wc.call(n,n.transformResponse,t.response),t.response.headers=Xn.from(t.response.headers))),Promise.reject(t)})}const gf="1.7.9",Ha={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{Ha[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const mf={};Ha.transitional=function(n,t,e){function i(m,f){return"[Axios v"+gf+"] Transitional option '"+m+"'"+f+(e?". "+e:"")}return(m,f,v)=>{if(n===!1)throw new et(i(f," has been removed"+(t?" in "+t:"")),et.ERR_DEPRECATED);return t&&!mf[f]&&(mf[f]=!0,console.warn(i(f," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,f,v):!0}},Ha.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function C1(n,t,e){if(typeof n!="object")throw new et("options must be an object",et.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const f=i[m],v=t[f];if(v){const w=n[f],h=w===void 0||v(w,f,n);if(h!==!0)throw new et("option "+f+" must be "+h,et.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new et("Unknown option "+f,et.ERR_BAD_OPTION)}}const za={assertOptions:C1,validators:Ha},Bi=za.validators;class eo{constructor(t){this.defaults=t,this.interceptors={request:new Qp,response:new Qp}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const f=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?f&&!String(i.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1380
+ `+f):i.stack=f}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Xr(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:f}=e;i!==void 0&&za.assertOptions(i,{silentJSONParsing:Bi.transitional(Bi.boolean),forcedJSONParsing:Bi.transitional(Bi.boolean),clarifyTimeoutError:Bi.transitional(Bi.boolean)},!1),m!=null&&(ue.isFunction(m)?e.paramsSerializer={serialize:m}:za.assertOptions(m,{encode:Bi.function,serialize:Bi.function},!0)),za.assertOptions(e,{baseUrl:Bi.spelling("baseURL"),withXsrfToken:Bi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=f&&ue.merge(f.common,f[e.method]);f&&ue.forEach(["delete","get","head","post","put","patch","common"],o=>{delete f[o]}),e.headers=Xn.concat(v,f);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let a,l=0,s;if(!h){const o=[ff.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),s=o.length,a=Promise.resolve(e);l<s;)a=a.then(o[l++],o[l++]);return a}s=w.length;let c=e;for(l=0;l<s;){const o=w[l++],u=w[l++];try{c=o(c)}catch(p){u.call(this,p);break}}try{a=ff.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,s=g.length;l<s;)a=a.then(g[l++],g[l++]);return a}getUri(t){t=Xr(this.defaults,t);const e=of(t.baseURL,t.url);return Kp(e,t.params,t.paramsSerializer)}}ue.forEach(["delete","get","head","options"],function(n){eo.prototype[n]=function(t,e){return this.request(Xr(e||{},{method:n,url:t,data:(e||{}).data}))}}),ue.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,f){return this.request(Xr(f||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}eo.prototype[n]=t(),eo.prototype[n+"Form"]=t(!0)});class Gc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let f=i._listeners.length;for(;f-- >0;)i._listeners[f](m);i._listeners=null}),this.promise.then=m=>{let f;const v=new Promise(w=>{i.subscribe(w),f=w}).then(m);return v.cancel=function(){i.unsubscribe(f)},v},t(function(m,f,v){i.reason||(i.reason=new Io(m,f,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Gc(function(e){t=e}),cancel:t}}}function A1(n){return function(t){return n.apply(null,t)}}function T1(n){return ue.isObject(n)&&n.isAxiosError===!0}const Yc={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(Yc).forEach(([n,t])=>{Yc[t]=n});function vf(n){const t=new eo(n),e=Ip(eo.prototype.request,t);return ue.extend(e,eo.prototype,t,{allOwnKeys:!0}),ue.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return vf(Xr(n,i))},e}const dn=vf(_s);dn.Axios=eo,dn.CanceledError=Io,dn.CancelToken=Gc,dn.isCancel=ef,dn.VERSION=gf,dn.toFormData=Oa,dn.AxiosError=et,dn.Cancel=dn.CanceledError,dn.all=function(n){return Promise.all(n)},dn.spread=A1,dn.isAxiosError=T1,dn.mergeConfig=Xr,dn.AxiosHeaders=Xn,dn.formToJSON=n=>Jp(ue.isHTMLForm(n)?new FormData(n):n),dn.getAdapter=pf.getAdapter,dn.HttpStatusCode=Yc,dn.default=dn;const Kc=dn.create({baseURL:location.origin,timeout:6e4,params:{}});Kc.interceptors.response.use(n=>n,n=>{var t,e,i,m,f,v,w,h,g,a,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 s=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(s+=`${n.response.statusText} `),(i=(e=n.response)==null?void 0:e.config)!=null&&i.data&&(s+=`${n.response.config.data} `),(f=(m=n.response)==null?void 0:m.data)!=null&&f.message?s+=`${n.response.data.message}`:(w=(v=n.response)==null?void 0:v.data)!=null&&w.exception?s+=`${n.response.data.exception}`:(a=(g=(h=n.response)==null?void 0:h.data)==null?void 0:g.error)!=null&&a.message?(n.response.data.error.class&&(s+=`${n.response.data.error.class} `),s+=`${n.response.data.error.message}`):s+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:c}=window;throw c&&c.serious({title:"Network error",body:s}),n}else throw n});const Ba=async function(n,t,{data:e,params:i={},headers:m,noAuth:f=!1,noScope:v=!1,onUploadProgress:w=!1}={}){if(!f){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}m.Authorization=localStorage.openc3Token}return m.manual=!0,!v&&!i.scope&&(i.scope=window.openc3Scope),Kc({method:n,url:t,data:e,params:i,headers:m,onUploadProgress:w})},Qc={Accept:"application/json"},yf={...Qc,"Content-Type":"application/json"},XI=rn("I",{get:function(n,{params:t,headers:e=Qc,noScope:i,noAuth:m,onUploadProgress:f}={}){return Ba("get",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:f})},put:function(n,{data:t,params:e,headers:i=yf,noScope:m,noAuth:f,onUploadProgress:v}={}){return Ba("put",n,{data:t,params:e,headers:i,noScope:m,noAuth:f,onUploadProgress:v})},post:function(n,{data:t,params:e,headers:i=yf,noScope:m,noAuth:f,onUploadProgress:v}={}){return Ba("post",n,{data:t,params:e,headers:i,noScope:m,noAuth:f,onUploadProgress:v})},delete:function(n,{params:t,headers:e=Qc,noScope:i,noAuth:m,onUploadProgress:f}={}){return Ba("delete",n,{params:t,headers:e,noScope:i,noAuth:m,onUploadProgress:f})}});var ja={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},Vt={log(...n){this.enabled&&(n.push(Date.now()),ja.logger.log("[ActionCable]",...n))}};const $s=()=>new Date().getTime(),Wa=n=>($s()-n)/1e3;class Ua{constructor(t){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=t,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=$s(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Vt.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=$s(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Vt.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=$s()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,Vt.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=$s(),Vt.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:t,reconnectionBackoffRate:e}=this.constructor,i=Math.pow(1+e,Math.min(this.reconnectAttempts,10)),m=(this.reconnectAttempts===0?1:e)*Math.random();return t*1e3*i*(1+m)}reconnectIfStale(){this.connectionIsStale()&&(Vt.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Wa(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Vt.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Wa(this.disconnectedAt)} s`):(Vt.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Wa(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Wa(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Vt.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}Ua.staleThreshold=6,Ua.reconnectionBackoffRate=.15;var wf={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:Ss,protocols:Zc}=wf,M1=Zc.slice(0,Zc.length-1),bf=[].indexOf;class Jc{constructor(t){this.open=this.open.bind(this),this.consumer=t,this.subscriptions=this.consumer.subscriptions,this.monitor=new Ua(this),this.disconnected=!0}send(t){return this.isOpen()?(this.webSocket.send(JSON.stringify(t)),!0):!1}open(){if(this.isActive())return Vt.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const t=[...Zc,...this.consumer.subprotocols||[]];return Vt.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${t}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new ja.WebSocket(this.consumer.url,t),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:t}={allowReconnect:!0}){if(t||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Vt.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(t){Vt.log("Failed to reopen WebSocket",t)}finally{Vt.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 bf.call(M1,this.getProtocol())>=0}isState(...t){return bf.call(t,this.getState())>=0}getState(){if(this.webSocket){for(let t in ja.WebSocket)if(ja.WebSocket[t]===this.webSocket.readyState)return t.toLowerCase()}return null}installEventHandlers(){for(let t in this.events){const e=this.events[t].bind(this);this.webSocket[`on${t}`]=e}}uninstallEventHandlers(){for(let t in this.events)this.webSocket[`on${t}`]=function(){}}}Jc.reopenDelay=500,Jc.prototype.events={message(n){if(!this.isProtocolSupported())return;const{identifier:t,message:e,reason:i,reconnect:m,type:f}=JSON.parse(n.data);switch(f){case Ss.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case Ss.disconnect:return Vt.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:m});case Ss.ping:return this.monitor.recordPing();case Ss.confirmation:return this.subscriptions.confirmSubscription(t),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(t,"connected",{reconnected:!0})):this.subscriptions.notify(t,"connected",{reconnected:!1});case Ss.rejection:return this.subscriptions.reject(t);default:return this.subscriptions.notify(t,"received",e)}},open(){if(Vt.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Vt.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(n){if(Vt.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Vt.log("WebSocket onerror event")}};const E1=function(n,t){if(t!=null)for(let e in t){const i=t[e];n[e]=i}return n};class R1{constructor(t,e={},i){this.consumer=t,this.identifier=JSON.stringify(e),E1(this,i)}perform(t,e={}){return e.action=t,this.send(e)}send(t){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(t)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class L1{constructor(t){this.subscriptions=t,this.pendingSubscriptions=[]}guarantee(t){this.pendingSubscriptions.indexOf(t)==-1?(Vt.log(`SubscriptionGuarantor guaranteeing ${t.identifier}`),this.pendingSubscriptions.push(t)):Vt.log(`SubscriptionGuarantor already guaranteeing ${t.identifier}`),this.startGuaranteeing()}forget(t){Vt.log(`SubscriptionGuarantor forgetting ${t.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(e=>e!==t)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(t=>{Vt.log(`SubscriptionGuarantor resubscribing ${t.identifier}`),this.subscriptions.subscribe(t)})},500)}}class I1{constructor(t){this.consumer=t,this.guarantor=new L1(this),this.subscriptions=[]}create(t,e){const i=t,m=typeof i=="object"?i:{channel:i},f=new R1(this.consumer,m,e);return this.add(f)}add(t){return this.subscriptions.push(t),this.consumer.ensureActiveConnection(),this.notify(t,"initialized"),this.subscribe(t),t}remove(t){return this.forget(t),this.findAll(t.identifier).length||this.sendCommand(t,"unsubscribe"),t}reject(t){return this.findAll(t).map(e=>(this.forget(e),this.notify(e,"rejected"),e))}forget(t){return this.guarantor.forget(t),this.subscriptions=this.subscriptions.filter(e=>e!==t),t}findAll(t){return this.subscriptions.filter(e=>e.identifier===t)}reload(){return this.subscriptions.map(t=>this.subscribe(t))}notifyAll(t,...e){return this.subscriptions.map(i=>this.notify(i,t,...e))}notify(t,e,...i){let m;return typeof t=="string"?m=this.findAll(t):m=[t],m.map(f=>typeof f[e]=="function"?f[e](...i):void 0)}subscribe(t){this.sendCommand(t,"subscribe")&&this.guarantor.guarantee(t)}confirmSubscription(t){Vt.log(`Subscription confirmed ${t}`),this.findAll(t).map(e=>this.guarantor.forget(e))}sendCommand(t,e){const{identifier:i}=t;return this.consumer.send({command:e,identifier:i})}}class O1{constructor(t){this._url=t,this.subscriptions=new I1(this),this.connection=new Jc(this),this.subprotocols=[]}get url(){return N1(this._url)}send(t){return this.connection.send(t)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(t){this.subprotocols=[...this.subprotocols,t]}}function N1(n){if(typeof n=="function"&&(n=n()),n&&!/^wss?:/i.test(n)){const t=document.createElement("a");return t.href=n,t.href=t.href,t.protocol=t.protocol.replace("http","ws"),t.href}else return n}function D1(n=F1("url")||wf.default_mount_path){return new O1(n)}function F1(n){const t=document.head.querySelector(`meta[name='action-cable-${n}']`);if(t)return t.getAttribute("content")}Ua.staleThreshold=10;let eO=rn("O",class{constructor(n="/openc3-api/cable"){this._cable=null,this._url=n}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(n,t,e={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(m=>{if(m&&OpenC3Auth.setTokens(),this._cable==null){let f=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=D1(f)}return this._cable.subscriptions.create({channel:n,...i},e)})}recordPing(){this._cable.connection.monitor.recordPing()}});class P1{constructor(t,e,i="",m=""){this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=e,this.usage=i,this.url=m}}rn("a",P1);class Sr{constructor(){Xw(this,"id",1)}async exec(t,e,i={},m={},f=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,m.manual=!0,(await Kc.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...m},timeout:f})).data.result}catch(v){let w=new Error;throw v.response?(w.name=v.response.data.error.data.class,w.message=v.response.data.error.data.message,w.object=v.response.data.error):v.request?(w.name="Request error",w.message="Request error, no response received"):w.name="Unknown error",w}}decode_openc3_type(t){if(t!==null&&typeof t=="object"&&t.json_class=="Float"&&t.raw){if(t.raw=="NaN")return NaN;if(t.raw=="Infinity")return 1/0;if(t.raw=="-Infinity")return-1/0}return null}encode_openc3_type(t){return Number.isNaN(t)?{json_class:"Float",raw:"NaN"}:t==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:t==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(t=>{t&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(t){return this.exec("set_offline_access",[t])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(t,e){return this.exec("map_target_to_interface",[t,e])}connect_interface(t,...e){return e.length>0?this.exec("connect_interface",[t,...e]):this.exec("connect_interface",[t])}disconnect_interface(t){return this.exec("disconnect_interface",[t])}interface_cmd(t,e,...i){return this.exec("interface_cmd",[t,e,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(t){return this.exec("get_tlm_cnts",[t])}get_item(t,e,i){return this.exec("get_item",[t,e,i])}get_param(t,e,i){return this.exec("get_param",[t,e,i])}get_parameter(t,e,i){return this.exec("get_param",[t,e,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(t){return this.exec("set_limits_set",[t])}get_target(t){return this.exec("get_target",[t])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(t,e){return this.exec("get_tlm",[t,e])}get_telemetry(t,e){return this.exec("get_tlm",[t,e])}get_all_tlm(t){return this.exec("get_all_tlm",[t])}get_all_telemetry(t){return this.exec("get_all_tlm",[t])}get_all_tlm_names(t,e=!1){return this.exec("get_all_tlm_names",[t],{hidden:e})}get_all_telemetry_names(t){return this.exec("get_all_tlm_names",[t])}async get_tlm_packet(t,e,i,m=30){const f=await this.exec("get_tlm_packet",[t,e],{type:i,stale_time:m});if(f!=null){let v=f.length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(f[h][1]),w!==null&&(f[h][1]=w)}return f}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}async get_tlm_values(t,e=30,i=null){let m={stale_time:e};i!==null&&(m.cache_timeout=i);const f=await this.exec("get_tlm_values",[t],m,{},1e4);let v=f[0].length,w=null;for(let h=0;h<v;h++)w=this.decode_openc3_type(f[0][h]),w!==null&&(f[0][h]=w);return f}get_limits(t,e,i){return this.exec("get_limits",[t,e,i])}async tlm(t,e,i,m="CONVERTED"){let f=null;if(e===void 0)f=await this.exec("tlm",[t]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))f=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else f=await this.exec("tlm",[t,e,i],{type:m});let v=this.decode_openc3_type(f);return v!==null&&(f=v),f}async inject_tlm(t,e,i=null,m="CONVERTED"){data=await this.exec("inject_tlm",[t,e,i],{type:m})}set_tlm(t,e,i,m){return this.exec("set_tlm",[t,e,i],{type:m})}override_tlm(t,e,i,m){return this.exec("override_tlm",[t,e,i],{type:m})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,i,m){return this.exec("normalize_tlm",[t,e,i],{type:m})}get_all_cmds(t){return this.exec("get_all_cmds",[t])}get_all_commands(t){return this.exec("get_all_cmds",[t])}get_all_cmd_names(t,e=!1){return this.exec("get_all_cmd_names",[t],{hidden:e})}get_all_command_names(t){return this.exec("get_all_cmd_names",[t])}get_cmd(t,e){return this.exec("get_cmd",[t,e])}get_command(t,e){return this.exec("get_cmd",[t,e])}get_cmd_cnts(t){return this.exec("get_cmd_cnts",[t])}get_cmd_value(t,e,i,m="CONVERTED"){return this.exec("get_cmd_value",[t,e,i,m])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,i,m,f){let v=null;for(let w in m)Object.prototype.hasOwnProperty.call(m,w)&&(v=this.encode_openc3_type(m[w]),v!==null&&(m[w]=v));return this.exec(t,[e,i,m],{},f)}get_cmd_hazardous(t,e,i,m={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},m):this._cmd("get_cmd_hazardous",t,e,i,m)}cmd(t,e,i,m={}){return e===void 0?this.exec("cmd",t,{},m):this._cmd("cmd",t,e,i,m)}cmd_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_range_check",t,{},m):this._cmd("cmd_no_range_check",t,e,i,m)}cmd_raw(t,e,i,m={}){return e===void 0?this.exec("cmd_raw",t,{},m):this._cmd("cmd_raw",t,e,i,m)}cmd_raw_no_range_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,{},m):this._cmd("cmd_raw_no_range_check",t,e,i,m)}cmd_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,{},m):this._cmd("cmd_no_hazardous_check",t,e,i,m)}cmd_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_no_checks",t,{},m):this._cmd("cmd_no_checks",t,e,i,m)}cmd_raw_no_hazardous_check(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,{},m):this._cmd("cmd_raw_no_hazardous_check",t,e,i,m)}cmd_raw_no_checks(t,e,i,m={}){return e===void 0?this.exec("cmd_raw_no_checks",t,{},m):this._cmd("cmd_raw_no_checks",t,e,i,m)}build_cmd(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}build_command(t,e,i){return e===void 0?this.exec("build_cmd",t):this._cmd("build_cmd",t,e,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(t,e){return this.exec("send_raw",[t,e])}list_configs(t){return this.exec("list_configs",[t])}load_config(t,e){return this.exec("load_config",[t,e])}save_config(t,e,i){return this.exec("save_config",[t,e,i])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,i){return this.exec("enable_limits",[t,e,i])}disable_limits(t,e,i){return this.exec("disable_limits",[t,e,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(t){return this.exec("get_overall_limits_state",[t])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(t){return this.exec("get_setting",[t])}get_settings(t){return this.exec("get_settings",t)}set_setting(t,e){return this.exec("set_setting",[t,e])}save_setting(t,e){return this.exec("set_setting",[t,e])}get_metrics(){return this.exec("get_metrics",[])}async hashString(t){if(window.isSecureContext){const e=new TextEncoder().encode(t),i=await crypto.subtle.digest("SHA-256",e),m=new Uint8Array(i);return Array.from(m).map(f=>f.toString(16).padStart(2,"0")).join("")}}}rn("F",Sr);const H1=rn("U",{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 Va={exports:{}};/**
1381
1381
  * @license
1382
1382
  * Lodash <https://lodash.com/>
1383
1383
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1384
1384
  * Released under MIT license <https://lodash.com/license>
1385
1385
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1386
1386
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1387
- */var P1=Va.exports,bf;function H1(){return bf||(bf=1,function(n,t){(function(){var e,i="4.17.21",m=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,a="__lodash_placeholder__",l=1,s=2,c=4,o=1,u=2,p=1,y=2,x=4,R=8,A=16,k=32,b=64,T=128,E=256,I=512,M=30,D="...",$=800,_=16,S=1,L=2,O=3,F=1/0,H=9007199254740991,W=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",T],["bind",p],["bindKey",y],["curry",R],["curryRight",A],["flip",I],["partial",k],["partialRight",b],["rearg",E]],ie="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",ye="[object Date]",fe="[object DOMException]",ke="[object Error]",ot="[object Function]",Ft="[object GeneratorFunction]",ut="[object Map]",ft="[object Number]",ln="[object Null]",It="[object Object]",Gt="[object Promise]",qi="[object Proxy]",_n="[object RegExp]",Xt="[object Set]",Pe="[object String]",ze="[object Symbol]",en="[object Undefined]",We="[object WeakMap]",ce="[object WeakSet]",Te="[object ArrayBuffer]",Re="[object DataView]",qe="[object Float32Array]",Ye="[object Float64Array]",ht="[object Int8Array]",dt="[object Int16Array]",at="[object Int32Array]",lt="[object Uint8Array]",nt="[object Uint8ClampedArray]",zt="[object Uint16Array]",Pn="[object Uint32Array]",sr=/\b__p \+= '';/g,ti=/\b(__p \+=) '' \+/g,Bs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zs=/&(?:amp|lt|gt|quot|#39);/g,kl=/[&<>"']/g,Fh=RegExp(zs.source),Ph=RegExp(kl.source),Hh=/<%-([\s\S]+?)%>/g,Bh=/<%([\s\S]+?)%>/g,He=/<%=([\s\S]+?)%>/g,ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mn=/^\w*$/,Gi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yi=/[\\^$.*+?()[\]{}|]/g,Tr=RegExp(Yi.source),Hn=/^\s+/,Mr=/\s/,Er=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$l=/\{\n\/\* \[wrapped with (.+)\] \*/,Sl=/,? & /,zh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jh=/[()=,{}\[\]\/\s]/,lr=/\\(\\)?/g,Wh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Rr=/\w*$/,Cl=/^[-+]0x[0-9a-f]+$/i,Ki=/^0b[01]+$/i,kn=/^\[object .+?Constructor\]$/,fn=/^0o[0-7]+$/i,gn=/^(?:0|[1-9]\d*)$/,Yo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bn=/($^)/,uo=/['\n\r\u2028\u2029\\]/g,ho="\\ud800-\\udfff",js="\\u0300-\\u036f",Ko="\\ufe20-\\ufe2f",Lr="\\u20d0-\\u20ff",Qo=js+Ko+Lr,Zo="\\u2700-\\u27bf",Jo="a-z\\xdf-\\xf6\\xf8-\\xff",Ws="\\xac\\xb1\\xd7\\xf7",Us="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vs="\\u2000-\\u206f",qs=" \\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",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",Gs="\\ufe0e\\ufe0f",Ys=Ws+Us+Vs+qs,po="['’]",Al="["+ho+"]",Tl="["+Ys+"]",Xo="["+Qo+"]",Ml="\\d+",El="["+Zo+"]",Ks="["+Jo+"]",Rl="[^"+ho+Ys+Ml+Zo+Jo+_i+"]",es="\\ud83c[\\udffb-\\udfff]",Qs="(?:"+Xo+"|"+es+")",fo="[^"+ho+"]",Ir="(?:\\ud83c[\\udde6-\\uddff]){2}",Zs="[\\ud800-\\udbff][\\udc00-\\udfff]",Qi="["+_i+"]",Ll="\\u200d",Il="(?:"+Ks+"|"+Rl+")",Uh="(?:"+Qi+"|"+Rl+")",cr="(?:"+po+"(?:d|ll|m|re|s|t|ve))?",go="(?:"+po+"(?:D|LL|M|RE|S|T|VE))?",ts=Qs+"?",Or="["+Gs+"]?",Vh="(?:"+Ll+"(?:"+[fo,Ir,Zs].join("|")+")"+Or+ts+")*",Nr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Js=Or+ts+Vh,Xs="(?:"+[El,Ir,Zs].join("|")+")"+Js,ea="(?:"+[fo+Xo+"?",Xo,Ir,Zs,Al].join("|")+")",ta=RegExp(po,"g"),Dr=RegExp(Xo,"g"),Zi=RegExp(es+"(?="+es+")|"+ea+Js,"g"),Ol=RegExp([Qi+"?"+Ks+"+"+cr+"(?="+[Tl,Qi,"$"].join("|")+")",Uh+"+"+go+"(?="+[Tl,Qi+Il,"$"].join("|")+")",Qi+"?"+Il+"+"+cr,Qi+"+"+go,qh,Nr,Ml,Xs].join("|"),"g"),Nl=RegExp("["+Ll+ho+Qo+Gs+"]"),Fr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pr=["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"],Dl=-1,Rt={};Rt[qe]=Rt[Ye]=Rt[ht]=Rt[dt]=Rt[at]=Rt[lt]=Rt[nt]=Rt[zt]=Rt[Pn]=!0,Rt[ie]=Rt[J]=Rt[Te]=Rt[me]=Rt[Re]=Rt[ye]=Rt[ke]=Rt[ot]=Rt[ut]=Rt[ft]=Rt[It]=Rt[_n]=Rt[Xt]=Rt[Pe]=Rt[We]=!1;var Be={};Be[ie]=Be[J]=Be[Te]=Be[Re]=Be[me]=Be[ye]=Be[qe]=Be[Ye]=Be[ht]=Be[dt]=Be[at]=Be[ut]=Be[ft]=Be[It]=Be[_n]=Be[Xt]=Be[Pe]=Be[ze]=Be[lt]=Be[nt]=Be[zt]=Be[Pn]=!0,Be[ke]=Be[ot]=Be[We]=!1;var Pt={À:"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"},Ji={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},mn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vn=parseFloat,Ot=parseInt,ur=typeof $r=="object"&&$r&&$r.Object===Object&&$r,ns=typeof self=="object"&&self&&self.Object===Object&&self,Sn=ur||ns||Function("return this")(),ki=t&&!t.nodeType&&t,En=ki&&!0&&n&&!n.nodeType&&n,Fl=En&&En.exports===ki,na=Fl&&ur.process,ni=function(){try{var ne=En&&En.require&&En.require("util").types;return ne||na&&na.binding&&na.binding("util")}catch{}}(),Pl=ni&&ni.isArrayBuffer,$i=ni&&ni.isDate,Ni=ni&&ni.isMap,Xi=ni&&ni.isRegExp,hr=ni&&ni.isSet,Hl=ni&&ni.isTypedArray;function Wt(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 Gh(ne,le,se,$e){for(var Fe=-1,Qe=ne==null?0:ne.length;++Fe<Qe;){var Ct=ne[Fe];le($e,Ct,se(Ct),ne)}return $e}function qn(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e&&le(ne[se],se,ne)!==!1;);return ne}function Bl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Hr(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e;)if(!le(ne[se],se,ne))return!1;return!0}function ii(ne,le){for(var se=-1,$e=ne==null?0:ne.length,Fe=0,Qe=[];++se<$e;){var Ct=ne[se];le(Ct,se,ne)&&(Qe[Fe++]=Ct)}return Qe}function is(ne,le){var se=ne==null?0:ne.length;return!!se&&dr(ne,le,0)>-1}function mo(ne,le,se){for(var $e=-1,Fe=ne==null?0:ne.length;++$e<Fe;)if(se(le,ne[$e]))return!0;return!1}function Ht(ne,le){for(var se=-1,$e=ne==null?0:ne.length,Fe=Array($e);++se<$e;)Fe[se]=le(ne[se],se,ne);return Fe}function zn(ne,le){for(var se=-1,$e=le.length,Fe=ne.length;++se<$e;)ne[Fe+se]=le[se];return ne}function Si(ne,le,se,$e){var Fe=-1,Qe=ne==null?0:ne.length;for($e&&Qe&&(se=ne[++Fe]);++Fe<Qe;)se=le(se,ne[Fe],Fe,ne);return se}function vo(ne,le,se,$e){var Fe=ne==null?0:ne.length;for($e&&Fe&&(se=ne[--Fe]);Fe--;)se=le(se,ne[Fe],Fe,ne);return se}function rs(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e;)if(le(ne[se],se,ne))return!0;return!1}var ia=la("length");function ra(ne){return ne.split("")}function os(ne){return ne.match(zh)||[]}function oa(ne,le,se){var $e;return se(ne,function(Fe,Qe,Ct){if(le(Fe,Qe,Ct))return $e=Qe,!1}),$e}function yo(ne,le,se,$e){for(var Fe=ne.length,Qe=se+($e?1:-1);$e?Qe--:++Qe<Fe;)if(le(ne[Qe],Qe,ne))return Qe;return-1}function dr(ne,le,se){return le===le?Ke(ne,le,se):yo(ne,sa,se)}function zl(ne,le,se,$e){for(var Fe=se-1,Qe=ne.length;++Fe<Qe;)if($e(ne[Fe],le))return Fe;return-1}function sa(ne){return ne!==ne}function aa(ne,le){var se=ne==null?0:ne.length;return se?zr(ne,le)/se:V}function la(ne){return function(le){return le==null?e:le[ne]}}function ss(ne){return function(le){return ne==null?e:ne[le]}}function ca(ne,le,se,$e,Fe){return Fe(ne,function(Qe,Ct,Je){se=$e?($e=!1,Qe):le(se,Qe,Ct,Je)}),se}function Br(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function zr(ne,le){for(var se,$e=-1,Fe=ne.length;++$e<Fe;){var Qe=le(ne[$e]);Qe!==e&&(se=se===e?Qe:se+Qe)}return se}function tn(ne,le){for(var se=-1,$e=Array(ne);++se<ne;)$e[se]=le(se);return $e}function jl(ne,le){return Ht(le,function(se){return[se,ne[se]]})}function Yt(ne){return ne&&ne.slice(0,Ze(ne)+1).replace(Hn,"")}function jn(ne){return function(le){return ne(le)}}function wo(ne,le){return Ht(le,function(se){return ne[se]})}function Di(ne,le){return ne.has(le)}function Wl(ne,le){for(var se=-1,$e=ne.length;++se<$e&&dr(le,ne[se],0)>-1;);return se}function Ul(ne,le){for(var se=ne.length;se--&&dr(le,ne[se],0)>-1;);return se}function ua(ne,le){for(var se=ne.length,$e=0;se--;)ne[se]===le&&++$e;return $e}var P=ss(Pt),z=ss(Ji);function Y(ne){return"\\"+mn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Nl.test(ne)}function oe(ne){return Fr.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function we(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e,Fe){se[++le]=[Fe,$e]}),se}function xe(ne,le){return function(se){return ne(le(se))}}function _e(ne,le){for(var se=-1,$e=ne.length,Fe=0,Qe=[];++se<$e;){var Ct=ne[se];(Ct===le||Ct===a)&&(ne[se]=a,Qe[Fe++]=se)}return Qe}function Ce(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e){se[++le]=$e}),se}function Me(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e){se[++le]=[$e,$e]}),se}function Ke(ne,le,se){for(var $e=se-1,Fe=ne.length;++$e<Fe;)if(ne[$e]===le)return $e;return-1}function Mt(ne,le,se){for(var $e=se+1;$e--;)if(ne[$e]===le)return $e;return $e}function it(ne){return te(ne)?St(ne):ia(ne)}function Ge(ne){return te(ne)?Kt(ne):ra(ne)}function Ze(ne){for(var le=ne.length;le--&&Mr.test(ne.charAt(le)););return le}var Le=ss($n);function St(ne){for(var le=Zi.lastIndex=0;Zi.test(ne);)++le;return le}function Kt(ne){return ne.match(Zi)||[]}function Ut(ne){return ne.match(Ol)||[]}var Nt=function ne(le){le=le==null?Sn:Dt.defaults(Sn.Object(),le,Dt.pick(Sn,Pr));var se=le.Array,$e=le.Date,Fe=le.Error,Qe=le.Function,Ct=le.Math,Je=le.Object,Cn=le.RegExp,Gn=le.String,An=le.TypeError,fi=se.prototype,ri=Qe.prototype,as=Je.prototype,Vl=le["__core-js_shared__"],ql=ri.toString,Et=as.hasOwnProperty,WA=0,j0=function(){var r=/[^.]+$/.exec(Vl&&Vl.keys&&Vl.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Gl=as.toString,UA=ql.call(Je),VA=Sn._,qA=Cn("^"+ql.call(Et).replace(Yi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yl=Fl?le.Buffer:e,jr=le.Symbol,Kl=le.Uint8Array,W0=Yl?Yl.allocUnsafe:e,Ql=xe(Je.getPrototypeOf,Je),U0=Je.create,V0=as.propertyIsEnumerable,Zl=fi.splice,q0=jr?jr.isConcatSpreadable:e,ha=jr?jr.iterator:e,bo=jr?jr.toStringTag:e,Jl=function(){try{var r=So(Je,"defineProperty");return r({},"",{}),r}catch{}}(),GA=le.clearTimeout!==Sn.clearTimeout&&le.clearTimeout,YA=$e&&$e.now!==Sn.Date.now&&$e.now,KA=le.setTimeout!==Sn.setTimeout&&le.setTimeout,Xl=Ct.ceil,ec=Ct.floor,Yh=Je.getOwnPropertySymbols,QA=Yl?Yl.isBuffer:e,G0=le.isFinite,ZA=fi.join,JA=xe(Je.keys,Je),Tn=Ct.max,Wn=Ct.min,XA=$e.now,eT=le.parseInt,Y0=Ct.random,tT=fi.reverse,Kh=So(le,"DataView"),da=So(le,"Map"),Qh=So(le,"Promise"),ls=So(le,"Set"),pa=So(le,"WeakMap"),fa=So(Je,"create"),tc=pa&&new pa,cs={},nT=Co(Kh),iT=Co(da),rT=Co(Qh),oT=Co(ls),sT=Co(pa),nc=jr?jr.prototype:e,ga=nc?nc.valueOf:e,K0=nc?nc.toString:e;function j(r){if(nn(r)&&!Xe(r)&&!(r instanceof yt)){if(r instanceof Ci)return r;if(Et.call(r,"__wrapped__"))return Qv(r)}return new Ci(r)}var us=function(){function r(){}return function(d){if(!Qt(d))return{};if(U0)return U0(d);r.prototype=d;var C=new r;return r.prototype=e,C}}();function ic(){}function Ci(r,d){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}j.templateSettings={escape:Hh,evaluate:Bh,interpolate:He,variable:"",imports:{_:j}},j.prototype=ic.prototype,j.prototype.constructor=j,Ci.prototype=us(ic.prototype),Ci.prototype.constructor=Ci;function yt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function aT(){var r=new yt(this.__wrapped__);return r.__actions__=oi(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=oi(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=oi(this.__views__),r}function lT(){if(this.__filtered__){var r=new yt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function cT(){var r=this.__wrapped__.value(),d=this.__dir__,C=Xe(r),N=d<0,B=C?r.length:0,U=xM(0,B,this.__views__),Q=U.start,ee=U.end,re=ee-Q,pe=N?ee:Q-1,ge=this.__iteratees__,ve=ge.length,Ae=0,Oe=Wn(re,this.__takeCount__);if(!C||!N&&B==re&&Oe==re)return wv(r,this.__actions__);var Ue=[];e:for(;re--&&Ae<Oe;){pe+=d;for(var st=-1,Ve=r[pe];++st<ve;){var gt=ge[st],wt=gt.iteratee,vi=gt.type,Qn=wt(Ve);if(vi==L)Ve=Qn;else if(!Qn){if(vi==S)continue e;break e}}Ue[Ae++]=Ve}return Ue}yt.prototype=us(ic.prototype),yt.prototype.constructor=yt;function xo(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var N=r[d];this.set(N[0],N[1])}}function uT(){this.__data__=fa?fa(null):{},this.size=0}function hT(r){var d=this.has(r)&&delete this.__data__[r];return this.size-=d?1:0,d}function dT(r){var d=this.__data__;if(fa){var C=d[r];return C===h?e:C}return Et.call(d,r)?d[r]:e}function pT(r){var d=this.__data__;return fa?d[r]!==e:Et.call(d,r)}function fT(r,d){var C=this.__data__;return this.size+=this.has(r)?0:1,C[r]=fa&&d===e?h:d,this}xo.prototype.clear=uT,xo.prototype.delete=hT,xo.prototype.get=dT,xo.prototype.has=pT,xo.prototype.set=fT;function pr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var N=r[d];this.set(N[0],N[1])}}function gT(){this.__data__=[],this.size=0}function mT(r){var d=this.__data__,C=rc(d,r);if(C<0)return!1;var N=d.length-1;return C==N?d.pop():Zl.call(d,C,1),--this.size,!0}function vT(r){var d=this.__data__,C=rc(d,r);return C<0?e:d[C][1]}function yT(r){return rc(this.__data__,r)>-1}function wT(r,d){var C=this.__data__,N=rc(C,r);return N<0?(++this.size,C.push([r,d])):C[N][1]=d,this}pr.prototype.clear=gT,pr.prototype.delete=mT,pr.prototype.get=vT,pr.prototype.has=yT,pr.prototype.set=wT;function fr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var N=r[d];this.set(N[0],N[1])}}function bT(){this.size=0,this.__data__={hash:new xo,map:new(da||pr),string:new xo}}function xT(r){var d=mc(this,r).delete(r);return this.size-=d?1:0,d}function _T(r){return mc(this,r).get(r)}function kT(r){return mc(this,r).has(r)}function $T(r,d){var C=mc(this,r),N=C.size;return C.set(r,d),this.size+=C.size==N?0:1,this}fr.prototype.clear=bT,fr.prototype.delete=xT,fr.prototype.get=_T,fr.prototype.has=kT,fr.prototype.set=$T;function _o(r){var d=-1,C=r==null?0:r.length;for(this.__data__=new fr;++d<C;)this.add(r[d])}function ST(r){return this.__data__.set(r,h),this}function CT(r){return this.__data__.has(r)}_o.prototype.add=_o.prototype.push=ST,_o.prototype.has=CT;function Fi(r){var d=this.__data__=new pr(r);this.size=d.size}function AT(){this.__data__=new pr,this.size=0}function TT(r){var d=this.__data__,C=d.delete(r);return this.size=d.size,C}function MT(r){return this.__data__.get(r)}function ET(r){return this.__data__.has(r)}function RT(r,d){var C=this.__data__;if(C instanceof pr){var N=C.__data__;if(!da||N.length<m-1)return N.push([r,d]),this.size=++C.size,this;C=this.__data__=new fr(N)}return C.set(r,d),this.size=C.size,this}Fi.prototype.clear=AT,Fi.prototype.delete=TT,Fi.prototype.get=MT,Fi.prototype.has=ET,Fi.prototype.set=RT;function Q0(r,d){var C=Xe(r),N=!C&&Ao(r),B=!C&&!N&&Gr(r),U=!C&&!N&&!B&&fs(r),Q=C||N||B||U,ee=Q?tn(r.length,Gn):[],re=ee.length;for(var pe in r)(d||Et.call(r,pe))&&!(Q&&(pe=="length"||B&&(pe=="offset"||pe=="parent")||U&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||yr(pe,re)))&&ee.push(pe);return ee}function Z0(r){var d=r.length;return d?r[ad(0,d-1)]:e}function LT(r,d){return vc(oi(r),ko(d,0,r.length))}function IT(r){return vc(oi(r))}function Zh(r,d,C){(C!==e&&!Pi(r[d],C)||C===e&&!(d in r))&&gr(r,d,C)}function ma(r,d,C){var N=r[d];(!(Et.call(r,d)&&Pi(N,C))||C===e&&!(d in r))&&gr(r,d,C)}function rc(r,d){for(var C=r.length;C--;)if(Pi(r[C][0],d))return C;return-1}function OT(r,d,C,N){return Wr(r,function(B,U,Q){d(N,B,C(B),Q)}),N}function J0(r,d){return r&&tr(d,Rn(d),r)}function NT(r,d){return r&&tr(d,ai(d),r)}function gr(r,d,C){d=="__proto__"&&Jl?Jl(r,d,{configurable:!0,enumerable:!0,value:C,writable:!0}):r[d]=C}function Jh(r,d){for(var C=-1,N=d.length,B=se(N),U=r==null;++C<N;)B[C]=U?e:Ld(r,d[C]);return B}function ko(r,d,C){return r===r&&(C!==e&&(r=r<=C?r:C),d!==e&&(r=r>=d?r:d)),r}function Ai(r,d,C,N,B,U){var Q,ee=d&l,re=d&s,pe=d&c;if(C&&(Q=B?C(r,N,B,U):C(r)),Q!==e)return Q;if(!Qt(r))return r;var ge=Xe(r);if(ge){if(Q=kM(r),!ee)return oi(r,Q)}else{var ve=Un(r),Ae=ve==ot||ve==Ft;if(Gr(r))return _v(r,ee);if(ve==It||ve==ie||Ae&&!B){if(Q=re||Ae?{}:zv(r),!ee)return re?dM(r,NT(Q,r)):hM(r,J0(Q,r))}else{if(!Be[ve])return B?r:{};Q=$M(r,ve,ee)}}U||(U=new Fi);var Oe=U.get(r);if(Oe)return Oe;U.set(r,Q),my(r)?r.forEach(function(Ve){Q.add(Ai(Ve,d,C,Ve,r,U))}):fy(r)&&r.forEach(function(Ve,gt){Q.set(gt,Ai(Ve,d,C,gt,r,U))});var Ue=pe?re?yd:vd:re?ai:Rn,st=ge?e:Ue(r);return qn(st||r,function(Ve,gt){st&&(gt=Ve,Ve=r[gt]),ma(Q,gt,Ai(Ve,d,C,gt,r,U))}),Q}function DT(r){var d=Rn(r);return function(C){return X0(C,r,d)}}function X0(r,d,C){var N=C.length;if(r==null)return!N;for(r=Je(r);N--;){var B=C[N],U=d[B],Q=r[B];if(Q===e&&!(B in r)||!U(Q))return!1}return!0}function ev(r,d,C){if(typeof r!="function")throw new An(v);return ka(function(){r.apply(e,C)},d)}function va(r,d,C,N){var B=-1,U=is,Q=!0,ee=r.length,re=[],pe=d.length;if(!ee)return re;C&&(d=Ht(d,jn(C))),N?(U=mo,Q=!1):d.length>=m&&(U=Di,Q=!1,d=new _o(d));e:for(;++B<ee;){var ge=r[B],ve=C==null?ge:C(ge);if(ge=N||ge!==0?ge:0,Q&&ve===ve){for(var Ae=pe;Ae--;)if(d[Ae]===ve)continue e;re.push(ge)}else U(d,ve,N)||re.push(ge)}return re}var Wr=Av(er),tv=Av(ed,!0);function FT(r,d){var C=!0;return Wr(r,function(N,B,U){return C=!!d(N,B,U),C}),C}function oc(r,d,C){for(var N=-1,B=r.length;++N<B;){var U=r[N],Q=d(U);if(Q!=null&&(ee===e?Q===Q&&!mi(Q):C(Q,ee)))var ee=Q,re=U}return re}function PT(r,d,C,N){var B=r.length;for(C=rt(C),C<0&&(C=-C>B?0:B+C),N=N===e||N>B?B:rt(N),N<0&&(N+=B),N=C>N?0:yy(N);C<N;)r[C++]=d;return r}function nv(r,d){var C=[];return Wr(r,function(N,B,U){d(N,B,U)&&C.push(N)}),C}function Ln(r,d,C,N,B){var U=-1,Q=r.length;for(C||(C=CM),B||(B=[]);++U<Q;){var ee=r[U];d>0&&C(ee)?d>1?Ln(ee,d-1,C,N,B):zn(B,ee):N||(B[B.length]=ee)}return B}var Xh=Tv(),iv=Tv(!0);function er(r,d){return r&&Xh(r,d,Rn)}function ed(r,d){return r&&iv(r,d,Rn)}function sc(r,d){return ii(d,function(C){return wr(r[C])})}function $o(r,d){d=Vr(d,r);for(var C=0,N=d.length;r!=null&&C<N;)r=r[nr(d[C++])];return C&&C==N?r:e}function rv(r,d,C){var N=d(r);return Xe(r)?N:zn(N,C(r))}function Yn(r){return r==null?r===e?en:ln:bo&&bo in Je(r)?bM(r):IM(r)}function td(r,d){return r>d}function HT(r,d){return r!=null&&Et.call(r,d)}function BT(r,d){return r!=null&&d in Je(r)}function zT(r,d,C){return r>=Wn(d,C)&&r<Tn(d,C)}function nd(r,d,C){for(var N=C?mo:is,B=r[0].length,U=r.length,Q=U,ee=se(U),re=1/0,pe=[];Q--;){var ge=r[Q];Q&&d&&(ge=Ht(ge,jn(d))),re=Wn(ge.length,re),ee[Q]=!C&&(d||B>=120&&ge.length>=120)?new _o(Q&&ge):e}ge=r[0];var ve=-1,Ae=ee[0];e:for(;++ve<B&&pe.length<re;){var Oe=ge[ve],Ue=d?d(Oe):Oe;if(Oe=C||Oe!==0?Oe:0,!(Ae?Di(Ae,Ue):N(pe,Ue,C))){for(Q=U;--Q;){var st=ee[Q];if(!(st?Di(st,Ue):N(r[Q],Ue,C)))continue e}Ae&&Ae.push(Ue),pe.push(Oe)}}return pe}function jT(r,d,C,N){return er(r,function(B,U,Q){d(N,C(B),U,Q)}),N}function ya(r,d,C){d=Vr(d,r),r=Vv(r,d);var N=r==null?r:r[nr(Mi(d))];return N==null?e:Wt(N,r,C)}function ov(r){return nn(r)&&Yn(r)==ie}function WT(r){return nn(r)&&Yn(r)==Te}function UT(r){return nn(r)&&Yn(r)==ye}function wa(r,d,C,N,B){return r===d?!0:r==null||d==null||!nn(r)&&!nn(d)?r!==r&&d!==d:VT(r,d,C,N,wa,B)}function VT(r,d,C,N,B,U){var Q=Xe(r),ee=Xe(d),re=Q?J:Un(r),pe=ee?J:Un(d);re=re==ie?It:re,pe=pe==ie?It:pe;var ge=re==It,ve=pe==It,Ae=re==pe;if(Ae&&Gr(r)){if(!Gr(d))return!1;Q=!0,ge=!1}if(Ae&&!ge)return U||(U=new Fi),Q||fs(r)?Pv(r,d,C,N,B,U):yM(r,d,re,C,N,B,U);if(!(C&o)){var Oe=ge&&Et.call(r,"__wrapped__"),Ue=ve&&Et.call(d,"__wrapped__");if(Oe||Ue){var st=Oe?r.value():r,Ve=Ue?d.value():d;return U||(U=new Fi),B(st,Ve,C,N,U)}}return Ae?(U||(U=new Fi),wM(r,d,C,N,B,U)):!1}function qT(r){return nn(r)&&Un(r)==ut}function id(r,d,C,N){var B=C.length,U=B,Q=!N;if(r==null)return!U;for(r=Je(r);B--;){var ee=C[B];if(Q&&ee[2]?ee[1]!==r[ee[0]]:!(ee[0]in r))return!1}for(;++B<U;){ee=C[B];var re=ee[0],pe=r[re],ge=ee[1];if(Q&&ee[2]){if(pe===e&&!(re in r))return!1}else{var ve=new Fi;if(N)var Ae=N(pe,ge,re,r,d,ve);if(!(Ae===e?wa(ge,pe,o|u,N,ve):Ae))return!1}}return!0}function sv(r){if(!Qt(r)||TM(r))return!1;var d=wr(r)?qA:kn;return d.test(Co(r))}function GT(r){return nn(r)&&Yn(r)==_n}function YT(r){return nn(r)&&Un(r)==Xt}function KT(r){return nn(r)&&kc(r.length)&&!!Rt[Yn(r)]}function av(r){return typeof r=="function"?r:r==null?li:typeof r=="object"?Xe(r)?uv(r[0],r[1]):cv(r):My(r)}function rd(r){if(!_a(r))return JA(r);var d=[];for(var C in Je(r))Et.call(r,C)&&C!="constructor"&&d.push(C);return d}function QT(r){if(!Qt(r))return LM(r);var d=_a(r),C=[];for(var N in r)N=="constructor"&&(d||!Et.call(r,N))||C.push(N);return C}function od(r,d){return r<d}function lv(r,d){var C=-1,N=si(r)?se(r.length):[];return Wr(r,function(B,U,Q){N[++C]=d(B,U,Q)}),N}function cv(r){var d=bd(r);return d.length==1&&d[0][2]?Wv(d[0][0],d[0][1]):function(C){return C===r||id(C,r,d)}}function uv(r,d){return _d(r)&&jv(d)?Wv(nr(r),d):function(C){var N=Ld(C,r);return N===e&&N===d?Id(C,r):wa(d,N,o|u)}}function ac(r,d,C,N,B){r!==d&&Xh(d,function(U,Q){if(B||(B=new Fi),Qt(U))ZT(r,d,Q,C,ac,N,B);else{var ee=N?N($d(r,Q),U,Q+"",r,d,B):e;ee===e&&(ee=U),Zh(r,Q,ee)}},ai)}function ZT(r,d,C,N,B,U,Q){var ee=$d(r,C),re=$d(d,C),pe=Q.get(re);if(pe){Zh(r,C,pe);return}var ge=U?U(ee,re,C+"",r,d,Q):e,ve=ge===e;if(ve){var Ae=Xe(re),Oe=!Ae&&Gr(re),Ue=!Ae&&!Oe&&fs(re);ge=re,Ae||Oe||Ue?Xe(ee)?ge=ee:cn(ee)?ge=oi(ee):Oe?(ve=!1,ge=_v(re,!0)):Ue?(ve=!1,ge=kv(re,!0)):ge=[]:$a(re)||Ao(re)?(ge=ee,Ao(ee)?ge=wy(ee):(!Qt(ee)||wr(ee))&&(ge=zv(re))):ve=!1}ve&&(Q.set(re,ge),B(ge,re,N,U,Q),Q.delete(re)),Zh(r,C,ge)}function hv(r,d){var C=r.length;if(C)return d+=d<0?C:0,yr(d,C)?r[d]:e}function dv(r,d,C){d.length?d=Ht(d,function(U){return Xe(U)?function(Q){return $o(Q,U.length===1?U[0]:U)}:U}):d=[li];var N=-1;d=Ht(d,jn(je()));var B=lv(r,function(U,Q,ee){var re=Ht(d,function(pe){return pe(U)});return{criteria:re,index:++N,value:U}});return Br(B,function(U,Q){return uM(U,Q,C)})}function JT(r,d){return pv(r,d,function(C,N){return Id(r,N)})}function pv(r,d,C){for(var N=-1,B=d.length,U={};++N<B;){var Q=d[N],ee=$o(r,Q);C(ee,Q)&&ba(U,Vr(Q,r),ee)}return U}function XT(r){return function(d){return $o(d,r)}}function sd(r,d,C,N){var B=N?zl:dr,U=-1,Q=d.length,ee=r;for(r===d&&(d=oi(d)),C&&(ee=Ht(r,jn(C)));++U<Q;)for(var re=0,pe=d[U],ge=C?C(pe):pe;(re=B(ee,ge,re,N))>-1;)ee!==r&&Zl.call(ee,re,1),Zl.call(r,re,1);return r}function fv(r,d){for(var C=r?d.length:0,N=C-1;C--;){var B=d[C];if(C==N||B!==U){var U=B;yr(B)?Zl.call(r,B,1):ud(r,B)}}return r}function ad(r,d){return r+ec(Y0()*(d-r+1))}function eM(r,d,C,N){for(var B=-1,U=Tn(Xl((d-r)/(C||1)),0),Q=se(U);U--;)Q[N?U:++B]=r,r+=C;return Q}function ld(r,d){var C="";if(!r||d<1||d>H)return C;do d%2&&(C+=r),d=ec(d/2),d&&(r+=r);while(d);return C}function ct(r,d){return Sd(Uv(r,d,li),r+"")}function tM(r){return Z0(gs(r))}function nM(r,d){var C=gs(r);return vc(C,ko(d,0,C.length))}function ba(r,d,C,N){if(!Qt(r))return r;d=Vr(d,r);for(var B=-1,U=d.length,Q=U-1,ee=r;ee!=null&&++B<U;){var re=nr(d[B]),pe=C;if(re==="__proto__"||re==="constructor"||re==="prototype")return r;if(B!=Q){var ge=ee[re];pe=N?N(ge,re,ee):e,pe===e&&(pe=Qt(ge)?ge:yr(d[B+1])?[]:{})}ma(ee,re,pe),ee=ee[re]}return r}var gv=tc?function(r,d){return tc.set(r,d),r}:li,iM=Jl?function(r,d){return Jl(r,"toString",{configurable:!0,enumerable:!1,value:Nd(d),writable:!0})}:li;function rM(r){return vc(gs(r))}function Ti(r,d,C){var N=-1,B=r.length;d<0&&(d=-d>B?0:B+d),C=C>B?B:C,C<0&&(C+=B),B=d>C?0:C-d>>>0,d>>>=0;for(var U=se(B);++N<B;)U[N]=r[N+d];return U}function oM(r,d){var C;return Wr(r,function(N,B,U){return C=d(N,B,U),!C}),!!C}function lc(r,d,C){var N=0,B=r==null?N:r.length;if(typeof d=="number"&&d===d&&B<=G){for(;N<B;){var U=N+B>>>1,Q=r[U];Q!==null&&!mi(Q)&&(C?Q<=d:Q<d)?N=U+1:B=U}return B}return cd(r,d,li,C)}function cd(r,d,C,N){var B=0,U=r==null?0:r.length;if(U===0)return 0;d=C(d);for(var Q=d!==d,ee=d===null,re=mi(d),pe=d===e;B<U;){var ge=ec((B+U)/2),ve=C(r[ge]),Ae=ve!==e,Oe=ve===null,Ue=ve===ve,st=mi(ve);if(Q)var Ve=N||Ue;else pe?Ve=Ue&&(N||Ae):ee?Ve=Ue&&Ae&&(N||!Oe):re?Ve=Ue&&Ae&&!Oe&&(N||!st):Oe||st?Ve=!1:Ve=N?ve<=d:ve<d;Ve?B=ge+1:U=ge}return Wn(U,X)}function mv(r,d){for(var C=-1,N=r.length,B=0,U=[];++C<N;){var Q=r[C],ee=d?d(Q):Q;if(!C||!Pi(ee,re)){var re=ee;U[B++]=Q===0?0:Q}}return U}function vv(r){return typeof r=="number"?r:mi(r)?V:+r}function gi(r){if(typeof r=="string")return r;if(Xe(r))return Ht(r,gi)+"";if(mi(r))return K0?K0.call(r):"";var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Ur(r,d,C){var N=-1,B=is,U=r.length,Q=!0,ee=[],re=ee;if(C)Q=!1,B=mo;else if(U>=m){var pe=d?null:mM(r);if(pe)return Ce(pe);Q=!1,B=Di,re=new _o}else re=d?[]:ee;e:for(;++N<U;){var ge=r[N],ve=d?d(ge):ge;if(ge=C||ge!==0?ge:0,Q&&ve===ve){for(var Ae=re.length;Ae--;)if(re[Ae]===ve)continue e;d&&re.push(ve),ee.push(ge)}else B(re,ve,C)||(re!==ee&&re.push(ve),ee.push(ge))}return ee}function ud(r,d){return d=Vr(d,r),r=Vv(r,d),r==null||delete r[nr(Mi(d))]}function yv(r,d,C,N){return ba(r,d,C($o(r,d)),N)}function cc(r,d,C,N){for(var B=r.length,U=N?B:-1;(N?U--:++U<B)&&d(r[U],U,r););return C?Ti(r,N?0:U,N?U+1:B):Ti(r,N?U+1:0,N?B:U)}function wv(r,d){var C=r;return C instanceof yt&&(C=C.value()),Si(d,function(N,B){return B.func.apply(B.thisArg,zn([N],B.args))},C)}function hd(r,d,C){var N=r.length;if(N<2)return N?Ur(r[0]):[];for(var B=-1,U=se(N);++B<N;)for(var Q=r[B],ee=-1;++ee<N;)ee!=B&&(U[B]=va(U[B]||Q,r[ee],d,C));return Ur(Ln(U,1),d,C)}function bv(r,d,C){for(var N=-1,B=r.length,U=d.length,Q={};++N<B;){var ee=N<U?d[N]:e;C(Q,r[N],ee)}return Q}function dd(r){return cn(r)?r:[]}function pd(r){return typeof r=="function"?r:li}function Vr(r,d){return Xe(r)?r:_d(r,d)?[r]:Kv(At(r))}var sM=ct;function qr(r,d,C){var N=r.length;return C=C===e?N:C,!d&&C>=N?r:Ti(r,d,C)}var xv=GA||function(r){return Sn.clearTimeout(r)};function _v(r,d){if(d)return r.slice();var C=r.length,N=W0?W0(C):new r.constructor(C);return r.copy(N),N}function fd(r){var d=new r.constructor(r.byteLength);return new Kl(d).set(new Kl(r)),d}function aM(r,d){var C=d?fd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.byteLength)}function lM(r){var d=new r.constructor(r.source,Rr.exec(r));return d.lastIndex=r.lastIndex,d}function cM(r){return ga?Je(ga.call(r)):{}}function kv(r,d){var C=d?fd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.length)}function $v(r,d){if(r!==d){var C=r!==e,N=r===null,B=r===r,U=mi(r),Q=d!==e,ee=d===null,re=d===d,pe=mi(d);if(!ee&&!pe&&!U&&r>d||U&&Q&&re&&!ee&&!pe||N&&Q&&re||!C&&re||!B)return 1;if(!N&&!U&&!pe&&r<d||pe&&C&&B&&!N&&!U||ee&&C&&B||!Q&&B||!re)return-1}return 0}function uM(r,d,C){for(var N=-1,B=r.criteria,U=d.criteria,Q=B.length,ee=C.length;++N<Q;){var re=$v(B[N],U[N]);if(re){if(N>=ee)return re;var pe=C[N];return re*(pe=="desc"?-1:1)}}return r.index-d.index}function Sv(r,d,C,N){for(var B=-1,U=r.length,Q=C.length,ee=-1,re=d.length,pe=Tn(U-Q,0),ge=se(re+pe),ve=!N;++ee<re;)ge[ee]=d[ee];for(;++B<Q;)(ve||B<U)&&(ge[C[B]]=r[B]);for(;pe--;)ge[ee++]=r[B++];return ge}function Cv(r,d,C,N){for(var B=-1,U=r.length,Q=-1,ee=C.length,re=-1,pe=d.length,ge=Tn(U-ee,0),ve=se(ge+pe),Ae=!N;++B<ge;)ve[B]=r[B];for(var Oe=B;++re<pe;)ve[Oe+re]=d[re];for(;++Q<ee;)(Ae||B<U)&&(ve[Oe+C[Q]]=r[B++]);return ve}function oi(r,d){var C=-1,N=r.length;for(d||(d=se(N));++C<N;)d[C]=r[C];return d}function tr(r,d,C,N){var B=!C;C||(C={});for(var U=-1,Q=d.length;++U<Q;){var ee=d[U],re=N?N(C[ee],r[ee],ee,C,r):e;re===e&&(re=r[ee]),B?gr(C,ee,re):ma(C,ee,re)}return C}function hM(r,d){return tr(r,xd(r),d)}function dM(r,d){return tr(r,Hv(r),d)}function uc(r,d){return function(C,N){var B=Xe(C)?Gh:OT,U=d?d():{};return B(C,r,je(N,2),U)}}function hs(r){return ct(function(d,C){var N=-1,B=C.length,U=B>1?C[B-1]:e,Q=B>2?C[2]:e;for(U=r.length>3&&typeof U=="function"?(B--,U):e,Q&&Kn(C[0],C[1],Q)&&(U=B<3?e:U,B=1),d=Je(d);++N<B;){var ee=C[N];ee&&r(d,ee,N,U)}return d})}function Av(r,d){return function(C,N){if(C==null)return C;if(!si(C))return r(C,N);for(var B=C.length,U=d?B:-1,Q=Je(C);(d?U--:++U<B)&&N(Q[U],U,Q)!==!1;);return C}}function Tv(r){return function(d,C,N){for(var B=-1,U=Je(d),Q=N(d),ee=Q.length;ee--;){var re=Q[r?ee:++B];if(C(U[re],re,U)===!1)break}return d}}function pM(r,d,C){var N=d&p,B=xa(r);function U(){var Q=this&&this!==Sn&&this instanceof U?B:r;return Q.apply(N?C:this,arguments)}return U}function Mv(r){return function(d){d=At(d);var C=te(d)?Ge(d):e,N=C?C[0]:d.charAt(0),B=C?qr(C,1).join(""):d.slice(1);return N[r]()+B}}function ds(r){return function(d){return Si(Ay(Cy(d).replace(ta,"")),r,"")}}function xa(r){return function(){var d=arguments;switch(d.length){case 0:return new r;case 1:return new r(d[0]);case 2:return new r(d[0],d[1]);case 3:return new r(d[0],d[1],d[2]);case 4:return new r(d[0],d[1],d[2],d[3]);case 5:return new r(d[0],d[1],d[2],d[3],d[4]);case 6:return new r(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new r(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var C=us(r.prototype),N=r.apply(C,d);return Qt(N)?N:C}}function fM(r,d,C){var N=xa(r);function B(){for(var U=arguments.length,Q=se(U),ee=U,re=ps(B);ee--;)Q[ee]=arguments[ee];var pe=U<3&&Q[0]!==re&&Q[U-1]!==re?[]:_e(Q,re);if(U-=pe.length,U<C)return Ov(r,d,hc,B.placeholder,e,Q,pe,e,e,C-U);var ge=this&&this!==Sn&&this instanceof B?N:r;return Wt(ge,this,Q)}return B}function Ev(r){return function(d,C,N){var B=Je(d);if(!si(d)){var U=je(C,3);d=Rn(d),C=function(ee){return U(B[ee],ee,B)}}var Q=r(d,C,N);return Q>-1?B[U?d[Q]:Q]:e}}function Rv(r){return vr(function(d){var C=d.length,N=C,B=Ci.prototype.thru;for(r&&d.reverse();N--;){var U=d[N];if(typeof U!="function")throw new An(v);if(B&&!Q&&gc(U)=="wrapper")var Q=new Ci([],!0)}for(N=Q?N:C;++N<C;){U=d[N];var ee=gc(U),re=ee=="wrapper"?wd(U):e;re&&kd(re[0])&&re[1]==(T|R|k|E)&&!re[4].length&&re[9]==1?Q=Q[gc(re[0])].apply(Q,re[3]):Q=U.length==1&&kd(U)?Q[ee]():Q.thru(U)}return function(){var pe=arguments,ge=pe[0];if(Q&&pe.length==1&&Xe(ge))return Q.plant(ge).value();for(var ve=0,Ae=C?d[ve].apply(this,pe):ge;++ve<C;)Ae=d[ve].call(this,Ae);return Ae}})}function hc(r,d,C,N,B,U,Q,ee,re,pe){var ge=d&T,ve=d&p,Ae=d&y,Oe=d&(R|A),Ue=d&I,st=Ae?e:xa(r);function Ve(){for(var gt=arguments.length,wt=se(gt),vi=gt;vi--;)wt[vi]=arguments[vi];if(Oe)var Qn=ps(Ve),yi=ua(wt,Qn);if(N&&(wt=Sv(wt,N,B,Oe)),U&&(wt=Cv(wt,U,Q,Oe)),gt-=yi,Oe&&gt<pe){var un=_e(wt,Qn);return Ov(r,d,hc,Ve.placeholder,C,wt,un,ee,re,pe-gt)}var Hi=ve?C:this,xr=Ae?Hi[r]:r;return gt=wt.length,ee?wt=OM(wt,ee):Ue&&gt>1&&wt.reverse(),ge&&re<gt&&(wt.length=re),this&&this!==Sn&&this instanceof Ve&&(xr=st||xa(xr)),xr.apply(Hi,wt)}return Ve}function Lv(r,d){return function(C,N){return jT(C,r,d(N),{})}}function dc(r,d){return function(C,N){var B;if(C===e&&N===e)return d;if(C!==e&&(B=C),N!==e){if(B===e)return N;typeof C=="string"||typeof N=="string"?(C=gi(C),N=gi(N)):(C=vv(C),N=vv(N)),B=r(C,N)}return B}}function gd(r){return vr(function(d){return d=Ht(d,jn(je())),ct(function(C){var N=this;return r(d,function(B){return Wt(B,N,C)})})})}function pc(r,d){d=d===e?" ":gi(d);var C=d.length;if(C<2)return C?ld(d,r):d;var N=ld(d,Xl(r/it(d)));return te(d)?qr(Ge(N),0,r).join(""):N.slice(0,r)}function gM(r,d,C,N){var B=d&p,U=xa(r);function Q(){for(var ee=-1,re=arguments.length,pe=-1,ge=N.length,ve=se(ge+re),Ae=this&&this!==Sn&&this instanceof Q?U:r;++pe<ge;)ve[pe]=N[pe];for(;re--;)ve[pe++]=arguments[++ee];return Wt(Ae,B?C:this,ve)}return Q}function Iv(r){return function(d,C,N){return N&&typeof N!="number"&&Kn(d,C,N)&&(C=N=e),d=br(d),C===e?(C=d,d=0):C=br(C),N=N===e?d<C?1:-1:br(N),eM(d,C,N,r)}}function fc(r){return function(d,C){return typeof d=="string"&&typeof C=="string"||(d=Ei(d),C=Ei(C)),r(d,C)}}function Ov(r,d,C,N,B,U,Q,ee,re,pe){var ge=d&R,ve=ge?Q:e,Ae=ge?e:Q,Oe=ge?U:e,Ue=ge?e:U;d|=ge?k:b,d&=~(ge?b:k),d&x||(d&=~(p|y));var st=[r,d,B,Oe,ve,Ue,Ae,ee,re,pe],Ve=C.apply(e,st);return kd(r)&&qv(Ve,st),Ve.placeholder=N,Gv(Ve,r,d)}function md(r){var d=Ct[r];return function(C,N){if(C=Ei(C),N=N==null?0:Wn(rt(N),292),N&&G0(C)){var B=(At(C)+"e").split("e"),U=d(B[0]+"e"+(+B[1]+N));return B=(At(U)+"e").split("e"),+(B[0]+"e"+(+B[1]-N))}return d(C)}}var mM=ls&&1/Ce(new ls([,-0]))[1]==F?function(r){return new ls(r)}:Pd;function Nv(r){return function(d){var C=Un(d);return C==ut?we(d):C==Xt?Me(d):jl(d,r(d))}}function mr(r,d,C,N,B,U,Q,ee){var re=d&y;if(!re&&typeof r!="function")throw new An(v);var pe=N?N.length:0;if(pe||(d&=~(k|b),N=B=e),Q=Q===e?Q:Tn(rt(Q),0),ee=ee===e?ee:rt(ee),pe-=B?B.length:0,d&b){var ge=N,ve=B;N=B=e}var Ae=re?e:wd(r),Oe=[r,d,C,N,B,ge,ve,U,Q,ee];if(Ae&&RM(Oe,Ae),r=Oe[0],d=Oe[1],C=Oe[2],N=Oe[3],B=Oe[4],ee=Oe[9]=Oe[9]===e?re?0:r.length:Tn(Oe[9]-pe,0),!ee&&d&(R|A)&&(d&=~(R|A)),!d||d==p)var Ue=pM(r,d,C);else d==R||d==A?Ue=fM(r,d,ee):(d==k||d==(p|k))&&!B.length?Ue=gM(r,d,C,N):Ue=hc.apply(e,Oe);var st=Ae?gv:qv;return Gv(st(Ue,Oe),r,d)}function Dv(r,d,C,N){return r===e||Pi(r,as[C])&&!Et.call(N,C)?d:r}function Fv(r,d,C,N,B,U){return Qt(r)&&Qt(d)&&(U.set(d,r),ac(r,d,e,Fv,U),U.delete(d)),r}function vM(r){return $a(r)?e:r}function Pv(r,d,C,N,B,U){var Q=C&o,ee=r.length,re=d.length;if(ee!=re&&!(Q&&re>ee))return!1;var pe=U.get(r),ge=U.get(d);if(pe&&ge)return pe==d&&ge==r;var ve=-1,Ae=!0,Oe=C&u?new _o:e;for(U.set(r,d),U.set(d,r);++ve<ee;){var Ue=r[ve],st=d[ve];if(N)var Ve=Q?N(st,Ue,ve,d,r,U):N(Ue,st,ve,r,d,U);if(Ve!==e){if(Ve)continue;Ae=!1;break}if(Oe){if(!rs(d,function(gt,wt){if(!Di(Oe,wt)&&(Ue===gt||B(Ue,gt,C,N,U)))return Oe.push(wt)})){Ae=!1;break}}else if(!(Ue===st||B(Ue,st,C,N,U))){Ae=!1;break}}return U.delete(r),U.delete(d),Ae}function yM(r,d,C,N,B,U,Q){switch(C){case Re:if(r.byteLength!=d.byteLength||r.byteOffset!=d.byteOffset)return!1;r=r.buffer,d=d.buffer;case Te:return!(r.byteLength!=d.byteLength||!U(new Kl(r),new Kl(d)));case me:case ye:case ft:return Pi(+r,+d);case ke:return r.name==d.name&&r.message==d.message;case _n:case Pe:return r==d+"";case ut:var ee=we;case Xt:var re=N&o;if(ee||(ee=Ce),r.size!=d.size&&!re)return!1;var pe=Q.get(r);if(pe)return pe==d;N|=u,Q.set(r,d);var ge=Pv(ee(r),ee(d),N,B,U,Q);return Q.delete(r),ge;case ze:if(ga)return ga.call(r)==ga.call(d)}return!1}function wM(r,d,C,N,B,U){var Q=C&o,ee=vd(r),re=ee.length,pe=vd(d),ge=pe.length;if(re!=ge&&!Q)return!1;for(var ve=re;ve--;){var Ae=ee[ve];if(!(Q?Ae in d:Et.call(d,Ae)))return!1}var Oe=U.get(r),Ue=U.get(d);if(Oe&&Ue)return Oe==d&&Ue==r;var st=!0;U.set(r,d),U.set(d,r);for(var Ve=Q;++ve<re;){Ae=ee[ve];var gt=r[Ae],wt=d[Ae];if(N)var vi=Q?N(wt,gt,Ae,d,r,U):N(gt,wt,Ae,r,d,U);if(!(vi===e?gt===wt||B(gt,wt,C,N,U):vi)){st=!1;break}Ve||(Ve=Ae=="constructor")}if(st&&!Ve){var Qn=r.constructor,yi=d.constructor;Qn!=yi&&"constructor"in r&&"constructor"in d&&!(typeof Qn=="function"&&Qn instanceof Qn&&typeof yi=="function"&&yi instanceof yi)&&(st=!1)}return U.delete(r),U.delete(d),st}function vr(r){return Sd(Uv(r,e,Xv),r+"")}function vd(r){return rv(r,Rn,xd)}function yd(r){return rv(r,ai,Hv)}var wd=tc?function(r){return tc.get(r)}:Pd;function gc(r){for(var d=r.name+"",C=cs[d],N=Et.call(cs,d)?C.length:0;N--;){var B=C[N],U=B.func;if(U==null||U==r)return B.name}return d}function ps(r){var d=Et.call(j,"placeholder")?j:r;return d.placeholder}function je(){var r=j.iteratee||Dd;return r=r===Dd?av:r,arguments.length?r(arguments[0],arguments[1]):r}function mc(r,d){var C=r.__data__;return AM(d)?C[typeof d=="string"?"string":"hash"]:C.map}function bd(r){for(var d=Rn(r),C=d.length;C--;){var N=d[C],B=r[N];d[C]=[N,B,jv(B)]}return d}function So(r,d){var C=K(r,d);return sv(C)?C:e}function bM(r){var d=Et.call(r,bo),C=r[bo];try{r[bo]=e;var N=!0}catch{}var B=Gl.call(r);return N&&(d?r[bo]=C:delete r[bo]),B}var xd=Yh?function(r){return r==null?[]:(r=Je(r),ii(Yh(r),function(d){return V0.call(r,d)}))}:Hd,Hv=Yh?function(r){for(var d=[];r;)zn(d,xd(r)),r=Ql(r);return d}:Hd,Un=Yn;(Kh&&Un(new Kh(new ArrayBuffer(1)))!=Re||da&&Un(new da)!=ut||Qh&&Un(Qh.resolve())!=Gt||ls&&Un(new ls)!=Xt||pa&&Un(new pa)!=We)&&(Un=function(r){var d=Yn(r),C=d==It?r.constructor:e,N=C?Co(C):"";if(N)switch(N){case nT:return Re;case iT:return ut;case rT:return Gt;case oT:return Xt;case sT:return We}return d});function xM(r,d,C){for(var N=-1,B=C.length;++N<B;){var U=C[N],Q=U.size;switch(U.type){case"drop":r+=Q;break;case"dropRight":d-=Q;break;case"take":d=Wn(d,r+Q);break;case"takeRight":r=Tn(r,d-Q);break}}return{start:r,end:d}}function _M(r){var d=r.match($l);return d?d[1].split(Sl):[]}function Bv(r,d,C){d=Vr(d,r);for(var N=-1,B=d.length,U=!1;++N<B;){var Q=nr(d[N]);if(!(U=r!=null&&C(r,Q)))break;r=r[Q]}return U||++N!=B?U:(B=r==null?0:r.length,!!B&&kc(B)&&yr(Q,B)&&(Xe(r)||Ao(r)))}function kM(r){var d=r.length,C=new r.constructor(d);return d&&typeof r[0]=="string"&&Et.call(r,"index")&&(C.index=r.index,C.input=r.input),C}function zv(r){return typeof r.constructor=="function"&&!_a(r)?us(Ql(r)):{}}function $M(r,d,C){var N=r.constructor;switch(d){case Te:return fd(r);case me:case ye:return new N(+r);case Re:return aM(r,C);case qe:case Ye:case ht:case dt:case at:case lt:case nt:case zt:case Pn:return kv(r,C);case ut:return new N;case ft:case Pe:return new N(r);case _n:return lM(r);case Xt:return new N;case ze:return cM(r)}}function SM(r,d){var C=d.length;if(!C)return r;var N=C-1;return d[N]=(C>1?"& ":"")+d[N],d=d.join(C>2?", ":" "),r.replace(Er,`{
1387
+ */var z1=Va.exports,xf;function B1(){return xf||(xf=1,function(n,t){(function(){var e,i="4.17.21",m=200,f="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,a="__lodash_placeholder__",l=1,s=2,c=4,o=1,u=2,p=1,y=2,x=4,R=8,A=16,k=32,b=64,T=128,E=256,I=512,M=30,D="...",$=800,_=16,S=1,L=2,O=3,F=1/0,H=9007199254740991,W=17976931348623157e292,V=NaN,q=4294967295,X=q-1,G=q>>>1,Z=[["ary",T],["bind",p],["bindKey",y],["curry",R],["curryRight",A],["flip",I],["partial",k],["partialRight",b],["rearg",E]],ie="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",me="[object Boolean]",ye="[object Date]",fe="[object DOMException]",ke="[object Error]",ot="[object Function]",Ft="[object GeneratorFunction]",ht="[object Map]",ft="[object Number]",ln="[object Null]",It="[object Object]",Gt="[object Promise]",qi="[object Proxy]",_n="[object RegExp]",Xt="[object Set]",Pe="[object String]",Be="[object Symbol]",en="[object Undefined]",We="[object WeakMap]",ce="[object WeakSet]",Te="[object ArrayBuffer]",Re="[object DataView]",qe="[object Float32Array]",Ye="[object Float64Array]",dt="[object Int8Array]",pt="[object Int16Array]",lt="[object Int32Array]",ct="[object Uint8Array]",nt="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Pn="[object Uint32Array]",sr=/\b__p \+= '';/g,ti=/\b(__p \+=) '' \+/g,zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bs=/&(?:amp|lt|gt|quot|#39);/g,kl=/[&<>"']/g,Fh=RegExp(Bs.source),Ph=RegExp(kl.source),Hh=/<%-([\s\S]+?)%>/g,zh=/<%([\s\S]+?)%>/g,He=/<%=([\s\S]+?)%>/g,ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mn=/^\w*$/,Gi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yi=/[\\^$.*+?()[\]{}|]/g,Tr=RegExp(Yi.source),Hn=/^\s+/,Mr=/\s/,Er=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$l=/\{\n\/\* \[wrapped with (.+)\] \*/,Sl=/,? & /,Bh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jh=/[()=,{}\[\]\/\s]/,lr=/\\(\\)?/g,Wh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Rr=/\w*$/,Cl=/^[-+]0x[0-9a-f]+$/i,Ki=/^0b[01]+$/i,kn=/^\[object .+?Constructor\]$/,fn=/^0o[0-7]+$/i,gn=/^(?:0|[1-9]\d*)$/,Yo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zn=/($^)/,uo=/['\n\r\u2028\u2029\\]/g,ho="\\ud800-\\udfff",js="\\u0300-\\u036f",Ko="\\ufe20-\\ufe2f",Lr="\\u20d0-\\u20ff",Qo=js+Ko+Lr,Zo="\\u2700-\\u27bf",Jo="a-z\\xdf-\\xf6\\xf8-\\xff",Ws="\\xac\\xb1\\xd7\\xf7",Us="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vs="\\u2000-\\u206f",qs=" \\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",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",Gs="\\ufe0e\\ufe0f",Ys=Ws+Us+Vs+qs,po="['’]",Al="["+ho+"]",Tl="["+Ys+"]",Xo="["+Qo+"]",Ml="\\d+",El="["+Zo+"]",Ks="["+Jo+"]",Rl="[^"+ho+Ys+Ml+Zo+Jo+_i+"]",es="\\ud83c[\\udffb-\\udfff]",Qs="(?:"+Xo+"|"+es+")",fo="[^"+ho+"]",Ir="(?:\\ud83c[\\udde6-\\uddff]){2}",Zs="[\\ud800-\\udbff][\\udc00-\\udfff]",Qi="["+_i+"]",Ll="\\u200d",Il="(?:"+Ks+"|"+Rl+")",Uh="(?:"+Qi+"|"+Rl+")",cr="(?:"+po+"(?:d|ll|m|re|s|t|ve))?",go="(?:"+po+"(?:D|LL|M|RE|S|T|VE))?",ts=Qs+"?",Or="["+Gs+"]?",Vh="(?:"+Ll+"(?:"+[fo,Ir,Zs].join("|")+")"+Or+ts+")*",Nr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Js=Or+ts+Vh,Xs="(?:"+[El,Ir,Zs].join("|")+")"+Js,ea="(?:"+[fo+Xo+"?",Xo,Ir,Zs,Al].join("|")+")",ta=RegExp(po,"g"),Dr=RegExp(Xo,"g"),Zi=RegExp(es+"(?="+es+")|"+ea+Js,"g"),Ol=RegExp([Qi+"?"+Ks+"+"+cr+"(?="+[Tl,Qi,"$"].join("|")+")",Uh+"+"+go+"(?="+[Tl,Qi+Il,"$"].join("|")+")",Qi+"?"+Il+"+"+cr,Qi+"+"+go,qh,Nr,Ml,Xs].join("|"),"g"),Nl=RegExp("["+Ll+ho+Qo+Gs+"]"),Fr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pr=["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"],Dl=-1,Rt={};Rt[qe]=Rt[Ye]=Rt[dt]=Rt[pt]=Rt[lt]=Rt[ct]=Rt[nt]=Rt[Bt]=Rt[Pn]=!0,Rt[ie]=Rt[J]=Rt[Te]=Rt[me]=Rt[Re]=Rt[ye]=Rt[ke]=Rt[ot]=Rt[ht]=Rt[ft]=Rt[It]=Rt[_n]=Rt[Xt]=Rt[Pe]=Rt[We]=!1;var ze={};ze[ie]=ze[J]=ze[Te]=ze[Re]=ze[me]=ze[ye]=ze[qe]=ze[Ye]=ze[dt]=ze[pt]=ze[lt]=ze[ht]=ze[ft]=ze[It]=ze[_n]=ze[Xt]=ze[Pe]=ze[Be]=ze[ct]=ze[nt]=ze[Bt]=ze[Pn]=!0,ze[ke]=ze[ot]=ze[We]=!1;var Pt={À:"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"},Ji={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},$n={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},mn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vn=parseFloat,Ot=parseInt,ur=typeof $r=="object"&&$r&&$r.Object===Object&&$r,ns=typeof self=="object"&&self&&self.Object===Object&&self,Sn=ur||ns||Function("return this")(),ki=t&&!t.nodeType&&t,En=ki&&!0&&n&&!n.nodeType&&n,Fl=En&&En.exports===ki,na=Fl&&ur.process,ni=function(){try{var ne=En&&En.require&&En.require("util").types;return ne||na&&na.binding&&na.binding("util")}catch{}}(),Pl=ni&&ni.isArrayBuffer,$i=ni&&ni.isDate,Ni=ni&&ni.isMap,Xi=ni&&ni.isRegExp,hr=ni&&ni.isSet,Hl=ni&&ni.isTypedArray;function Wt(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 Gh(ne,le,se,$e){for(var Fe=-1,Qe=ne==null?0:ne.length;++Fe<Qe;){var Ct=ne[Fe];le($e,Ct,se(Ct),ne)}return $e}function Yn(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e&&le(ne[se],se,ne)!==!1;);return ne}function zl(ne,le){for(var se=ne==null?0:ne.length;se--&&le(ne[se],se,ne)!==!1;);return ne}function Hr(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e;)if(!le(ne[se],se,ne))return!1;return!0}function ii(ne,le){for(var se=-1,$e=ne==null?0:ne.length,Fe=0,Qe=[];++se<$e;){var Ct=ne[se];le(Ct,se,ne)&&(Qe[Fe++]=Ct)}return Qe}function is(ne,le){var se=ne==null?0:ne.length;return!!se&&dr(ne,le,0)>-1}function mo(ne,le,se){for(var $e=-1,Fe=ne==null?0:ne.length;++$e<Fe;)if(se(le,ne[$e]))return!0;return!1}function Ht(ne,le){for(var se=-1,$e=ne==null?0:ne.length,Fe=Array($e);++se<$e;)Fe[se]=le(ne[se],se,ne);return Fe}function Bn(ne,le){for(var se=-1,$e=le.length,Fe=ne.length;++se<$e;)ne[Fe+se]=le[se];return ne}function Si(ne,le,se,$e){var Fe=-1,Qe=ne==null?0:ne.length;for($e&&Qe&&(se=ne[++Fe]);++Fe<Qe;)se=le(se,ne[Fe],Fe,ne);return se}function vo(ne,le,se,$e){var Fe=ne==null?0:ne.length;for($e&&Fe&&(se=ne[--Fe]);Fe--;)se=le(se,ne[Fe],Fe,ne);return se}function rs(ne,le){for(var se=-1,$e=ne==null?0:ne.length;++se<$e;)if(le(ne[se],se,ne))return!0;return!1}var ia=la("length");function ra(ne){return ne.split("")}function os(ne){return ne.match(Bh)||[]}function oa(ne,le,se){var $e;return se(ne,function(Fe,Qe,Ct){if(le(Fe,Qe,Ct))return $e=Qe,!1}),$e}function yo(ne,le,se,$e){for(var Fe=ne.length,Qe=se+($e?1:-1);$e?Qe--:++Qe<Fe;)if(le(ne[Qe],Qe,ne))return Qe;return-1}function dr(ne,le,se){return le===le?Ke(ne,le,se):yo(ne,sa,se)}function Bl(ne,le,se,$e){for(var Fe=se-1,Qe=ne.length;++Fe<Qe;)if($e(ne[Fe],le))return Fe;return-1}function sa(ne){return ne!==ne}function aa(ne,le){var se=ne==null?0:ne.length;return se?Br(ne,le)/se:V}function la(ne){return function(le){return le==null?e:le[ne]}}function ss(ne){return function(le){return ne==null?e:ne[le]}}function ca(ne,le,se,$e,Fe){return Fe(ne,function(Qe,Ct,Je){se=$e?($e=!1,Qe):le(se,Qe,Ct,Je)}),se}function zr(ne,le){var se=ne.length;for(ne.sort(le);se--;)ne[se]=ne[se].value;return ne}function Br(ne,le){for(var se,$e=-1,Fe=ne.length;++$e<Fe;){var Qe=le(ne[$e]);Qe!==e&&(se=se===e?Qe:se+Qe)}return se}function tn(ne,le){for(var se=-1,$e=Array(ne);++se<ne;)$e[se]=le(se);return $e}function jl(ne,le){return Ht(le,function(se){return[se,ne[se]]})}function Yt(ne){return ne&&ne.slice(0,Ze(ne)+1).replace(Hn,"")}function jn(ne){return function(le){return ne(le)}}function wo(ne,le){return Ht(le,function(se){return ne[se]})}function Di(ne,le){return ne.has(le)}function Wl(ne,le){for(var se=-1,$e=ne.length;++se<$e&&dr(le,ne[se],0)>-1;);return se}function Ul(ne,le){for(var se=ne.length;se--&&dr(le,ne[se],0)>-1;);return se}function ua(ne,le){for(var se=ne.length,$e=0;se--;)ne[se]===le&&++$e;return $e}var P=ss(Pt),B=ss(Ji);function Y(ne){return"\\"+mn[ne]}function K(ne,le){return ne==null?e:ne[le]}function te(ne){return Nl.test(ne)}function oe(ne){return Fr.test(ne)}function de(ne){for(var le,se=[];!(le=ne.next()).done;)se.push(le.value);return se}function we(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e,Fe){se[++le]=[Fe,$e]}),se}function xe(ne,le){return function(se){return ne(le(se))}}function _e(ne,le){for(var se=-1,$e=ne.length,Fe=0,Qe=[];++se<$e;){var Ct=ne[se];(Ct===le||Ct===a)&&(ne[se]=a,Qe[Fe++]=se)}return Qe}function Ce(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e){se[++le]=$e}),se}function Me(ne){var le=-1,se=Array(ne.size);return ne.forEach(function($e){se[++le]=[$e,$e]}),se}function Ke(ne,le,se){for(var $e=se-1,Fe=ne.length;++$e<Fe;)if(ne[$e]===le)return $e;return-1}function Mt(ne,le,se){for(var $e=se+1;$e--;)if(ne[$e]===le)return $e;return $e}function it(ne){return te(ne)?St(ne):ia(ne)}function Ge(ne){return te(ne)?Kt(ne):ra(ne)}function Ze(ne){for(var le=ne.length;le--&&Mr.test(ne.charAt(le)););return le}var Le=ss($n);function St(ne){for(var le=Zi.lastIndex=0;Zi.test(ne);)++le;return le}function Kt(ne){return ne.match(Zi)||[]}function Ut(ne){return ne.match(Ol)||[]}var Nt=function ne(le){le=le==null?Sn:Dt.defaults(Sn.Object(),le,Dt.pick(Sn,Pr));var se=le.Array,$e=le.Date,Fe=le.Error,Qe=le.Function,Ct=le.Math,Je=le.Object,Cn=le.RegExp,Kn=le.String,An=le.TypeError,fi=se.prototype,ri=Qe.prototype,as=Je.prototype,Vl=le["__core-js_shared__"],ql=ri.toString,Et=as.hasOwnProperty,VA=0,U0=function(){var r=/[^.]+$/.exec(Vl&&Vl.keys&&Vl.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Gl=as.toString,qA=ql.call(Je),GA=Sn._,YA=Cn("^"+ql.call(Et).replace(Yi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yl=Fl?le.Buffer:e,jr=le.Symbol,Kl=le.Uint8Array,V0=Yl?Yl.allocUnsafe:e,Ql=xe(Je.getPrototypeOf,Je),q0=Je.create,G0=as.propertyIsEnumerable,Zl=fi.splice,Y0=jr?jr.isConcatSpreadable:e,ha=jr?jr.iterator:e,bo=jr?jr.toStringTag:e,Jl=function(){try{var r=So(Je,"defineProperty");return r({},"",{}),r}catch{}}(),KA=le.clearTimeout!==Sn.clearTimeout&&le.clearTimeout,QA=$e&&$e.now!==Sn.Date.now&&$e.now,ZA=le.setTimeout!==Sn.setTimeout&&le.setTimeout,Xl=Ct.ceil,ec=Ct.floor,Yh=Je.getOwnPropertySymbols,JA=Yl?Yl.isBuffer:e,K0=le.isFinite,XA=fi.join,eT=xe(Je.keys,Je),Tn=Ct.max,Wn=Ct.min,tT=$e.now,nT=le.parseInt,Q0=Ct.random,iT=fi.reverse,Kh=So(le,"DataView"),da=So(le,"Map"),Qh=So(le,"Promise"),ls=So(le,"Set"),pa=So(le,"WeakMap"),fa=So(Je,"create"),tc=pa&&new pa,cs={},rT=Co(Kh),oT=Co(da),sT=Co(Qh),aT=Co(ls),lT=Co(pa),nc=jr?jr.prototype:e,ga=nc?nc.valueOf:e,Z0=nc?nc.toString:e;function j(r){if(nn(r)&&!Xe(r)&&!(r instanceof yt)){if(r instanceof Ci)return r;if(Et.call(r,"__wrapped__"))return Jv(r)}return new Ci(r)}var us=function(){function r(){}return function(d){if(!Qt(d))return{};if(q0)return q0(d);r.prototype=d;var C=new r;return r.prototype=e,C}}();function ic(){}function Ci(r,d){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=e}j.templateSettings={escape:Hh,evaluate:zh,interpolate:He,variable:"",imports:{_:j}},j.prototype=ic.prototype,j.prototype.constructor=j,Ci.prototype=us(ic.prototype),Ci.prototype.constructor=Ci;function yt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function cT(){var r=new yt(this.__wrapped__);return r.__actions__=oi(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=oi(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=oi(this.__views__),r}function uT(){if(this.__filtered__){var r=new yt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function hT(){var r=this.__wrapped__.value(),d=this.__dir__,C=Xe(r),N=d<0,z=C?r.length:0,U=kM(0,z,this.__views__),Q=U.start,ee=U.end,re=ee-Q,pe=N?ee:Q-1,ge=this.__iteratees__,ve=ge.length,Ae=0,Oe=Wn(re,this.__takeCount__);if(!C||!N&&z==re&&Oe==re)return xv(r,this.__actions__);var Ue=[];e:for(;re--&&Ae<Oe;){pe+=d;for(var st=-1,Ve=r[pe];++st<ve;){var gt=ge[st],wt=gt.iteratee,vi=gt.type,Jn=wt(Ve);if(vi==L)Ve=Jn;else if(!Jn){if(vi==S)continue e;break e}}Ue[Ae++]=Ve}return Ue}yt.prototype=us(ic.prototype),yt.prototype.constructor=yt;function xo(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var N=r[d];this.set(N[0],N[1])}}function dT(){this.__data__=fa?fa(null):{},this.size=0}function pT(r){var d=this.has(r)&&delete this.__data__[r];return this.size-=d?1:0,d}function fT(r){var d=this.__data__;if(fa){var C=d[r];return C===h?e:C}return Et.call(d,r)?d[r]:e}function gT(r){var d=this.__data__;return fa?d[r]!==e:Et.call(d,r)}function mT(r,d){var C=this.__data__;return this.size+=this.has(r)?0:1,C[r]=fa&&d===e?h:d,this}xo.prototype.clear=dT,xo.prototype.delete=pT,xo.prototype.get=fT,xo.prototype.has=gT,xo.prototype.set=mT;function pr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var N=r[d];this.set(N[0],N[1])}}function vT(){this.__data__=[],this.size=0}function yT(r){var d=this.__data__,C=rc(d,r);if(C<0)return!1;var N=d.length-1;return C==N?d.pop():Zl.call(d,C,1),--this.size,!0}function wT(r){var d=this.__data__,C=rc(d,r);return C<0?e:d[C][1]}function bT(r){return rc(this.__data__,r)>-1}function xT(r,d){var C=this.__data__,N=rc(C,r);return N<0?(++this.size,C.push([r,d])):C[N][1]=d,this}pr.prototype.clear=vT,pr.prototype.delete=yT,pr.prototype.get=wT,pr.prototype.has=bT,pr.prototype.set=xT;function fr(r){var d=-1,C=r==null?0:r.length;for(this.clear();++d<C;){var N=r[d];this.set(N[0],N[1])}}function _T(){this.size=0,this.__data__={hash:new xo,map:new(da||pr),string:new xo}}function kT(r){var d=mc(this,r).delete(r);return this.size-=d?1:0,d}function $T(r){return mc(this,r).get(r)}function ST(r){return mc(this,r).has(r)}function CT(r,d){var C=mc(this,r),N=C.size;return C.set(r,d),this.size+=C.size==N?0:1,this}fr.prototype.clear=_T,fr.prototype.delete=kT,fr.prototype.get=$T,fr.prototype.has=ST,fr.prototype.set=CT;function _o(r){var d=-1,C=r==null?0:r.length;for(this.__data__=new fr;++d<C;)this.add(r[d])}function AT(r){return this.__data__.set(r,h),this}function TT(r){return this.__data__.has(r)}_o.prototype.add=_o.prototype.push=AT,_o.prototype.has=TT;function Fi(r){var d=this.__data__=new pr(r);this.size=d.size}function MT(){this.__data__=new pr,this.size=0}function ET(r){var d=this.__data__,C=d.delete(r);return this.size=d.size,C}function RT(r){return this.__data__.get(r)}function LT(r){return this.__data__.has(r)}function IT(r,d){var C=this.__data__;if(C instanceof pr){var N=C.__data__;if(!da||N.length<m-1)return N.push([r,d]),this.size=++C.size,this;C=this.__data__=new fr(N)}return C.set(r,d),this.size=C.size,this}Fi.prototype.clear=MT,Fi.prototype.delete=ET,Fi.prototype.get=RT,Fi.prototype.has=LT,Fi.prototype.set=IT;function J0(r,d){var C=Xe(r),N=!C&&Ao(r),z=!C&&!N&&Gr(r),U=!C&&!N&&!z&&fs(r),Q=C||N||z||U,ee=Q?tn(r.length,Kn):[],re=ee.length;for(var pe in r)(d||Et.call(r,pe))&&!(Q&&(pe=="length"||z&&(pe=="offset"||pe=="parent")||U&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||yr(pe,re)))&&ee.push(pe);return ee}function X0(r){var d=r.length;return d?r[ad(0,d-1)]:e}function OT(r,d){return vc(oi(r),ko(d,0,r.length))}function NT(r){return vc(oi(r))}function Zh(r,d,C){(C!==e&&!Pi(r[d],C)||C===e&&!(d in r))&&gr(r,d,C)}function ma(r,d,C){var N=r[d];(!(Et.call(r,d)&&Pi(N,C))||C===e&&!(d in r))&&gr(r,d,C)}function rc(r,d){for(var C=r.length;C--;)if(Pi(r[C][0],d))return C;return-1}function DT(r,d,C,N){return Wr(r,function(z,U,Q){d(N,z,C(z),Q)}),N}function ev(r,d){return r&&tr(d,Rn(d),r)}function FT(r,d){return r&&tr(d,ai(d),r)}function gr(r,d,C){d=="__proto__"&&Jl?Jl(r,d,{configurable:!0,enumerable:!0,value:C,writable:!0}):r[d]=C}function Jh(r,d){for(var C=-1,N=d.length,z=se(N),U=r==null;++C<N;)z[C]=U?e:Ld(r,d[C]);return z}function ko(r,d,C){return r===r&&(C!==e&&(r=r<=C?r:C),d!==e&&(r=r>=d?r:d)),r}function Ai(r,d,C,N,z,U){var Q,ee=d&l,re=d&s,pe=d&c;if(C&&(Q=z?C(r,N,z,U):C(r)),Q!==e)return Q;if(!Qt(r))return r;var ge=Xe(r);if(ge){if(Q=SM(r),!ee)return oi(r,Q)}else{var ve=Un(r),Ae=ve==ot||ve==Ft;if(Gr(r))return $v(r,ee);if(ve==It||ve==ie||Ae&&!z){if(Q=re||Ae?{}:Wv(r),!ee)return re?fM(r,FT(Q,r)):pM(r,ev(Q,r))}else{if(!ze[ve])return z?r:{};Q=CM(r,ve,ee)}}U||(U=new Fi);var Oe=U.get(r);if(Oe)return Oe;U.set(r,Q),yy(r)?r.forEach(function(Ve){Q.add(Ai(Ve,d,C,Ve,r,U))}):my(r)&&r.forEach(function(Ve,gt){Q.set(gt,Ai(Ve,d,C,gt,r,U))});var Ue=pe?re?yd:vd:re?ai:Rn,st=ge?e:Ue(r);return Yn(st||r,function(Ve,gt){st&&(gt=Ve,Ve=r[gt]),ma(Q,gt,Ai(Ve,d,C,gt,r,U))}),Q}function PT(r){var d=Rn(r);return function(C){return tv(C,r,d)}}function tv(r,d,C){var N=C.length;if(r==null)return!N;for(r=Je(r);N--;){var z=C[N],U=d[z],Q=r[z];if(Q===e&&!(z in r)||!U(Q))return!1}return!0}function nv(r,d,C){if(typeof r!="function")throw new An(v);return ka(function(){r.apply(e,C)},d)}function va(r,d,C,N){var z=-1,U=is,Q=!0,ee=r.length,re=[],pe=d.length;if(!ee)return re;C&&(d=Ht(d,jn(C))),N?(U=mo,Q=!1):d.length>=m&&(U=Di,Q=!1,d=new _o(d));e:for(;++z<ee;){var ge=r[z],ve=C==null?ge:C(ge);if(ge=N||ge!==0?ge:0,Q&&ve===ve){for(var Ae=pe;Ae--;)if(d[Ae]===ve)continue e;re.push(ge)}else U(d,ve,N)||re.push(ge)}return re}var Wr=Mv(er),iv=Mv(ed,!0);function HT(r,d){var C=!0;return Wr(r,function(N,z,U){return C=!!d(N,z,U),C}),C}function oc(r,d,C){for(var N=-1,z=r.length;++N<z;){var U=r[N],Q=d(U);if(Q!=null&&(ee===e?Q===Q&&!mi(Q):C(Q,ee)))var ee=Q,re=U}return re}function zT(r,d,C,N){var z=r.length;for(C=rt(C),C<0&&(C=-C>z?0:z+C),N=N===e||N>z?z:rt(N),N<0&&(N+=z),N=C>N?0:by(N);C<N;)r[C++]=d;return r}function rv(r,d){var C=[];return Wr(r,function(N,z,U){d(N,z,U)&&C.push(N)}),C}function Ln(r,d,C,N,z){var U=-1,Q=r.length;for(C||(C=TM),z||(z=[]);++U<Q;){var ee=r[U];d>0&&C(ee)?d>1?Ln(ee,d-1,C,N,z):Bn(z,ee):N||(z[z.length]=ee)}return z}var Xh=Ev(),ov=Ev(!0);function er(r,d){return r&&Xh(r,d,Rn)}function ed(r,d){return r&&ov(r,d,Rn)}function sc(r,d){return ii(d,function(C){return wr(r[C])})}function $o(r,d){d=Vr(d,r);for(var C=0,N=d.length;r!=null&&C<N;)r=r[nr(d[C++])];return C&&C==N?r:e}function sv(r,d,C){var N=d(r);return Xe(r)?N:Bn(N,C(r))}function Qn(r){return r==null?r===e?en:ln:bo&&bo in Je(r)?_M(r):NM(r)}function td(r,d){return r>d}function BT(r,d){return r!=null&&Et.call(r,d)}function jT(r,d){return r!=null&&d in Je(r)}function WT(r,d,C){return r>=Wn(d,C)&&r<Tn(d,C)}function nd(r,d,C){for(var N=C?mo:is,z=r[0].length,U=r.length,Q=U,ee=se(U),re=1/0,pe=[];Q--;){var ge=r[Q];Q&&d&&(ge=Ht(ge,jn(d))),re=Wn(ge.length,re),ee[Q]=!C&&(d||z>=120&&ge.length>=120)?new _o(Q&&ge):e}ge=r[0];var ve=-1,Ae=ee[0];e:for(;++ve<z&&pe.length<re;){var Oe=ge[ve],Ue=d?d(Oe):Oe;if(Oe=C||Oe!==0?Oe:0,!(Ae?Di(Ae,Ue):N(pe,Ue,C))){for(Q=U;--Q;){var st=ee[Q];if(!(st?Di(st,Ue):N(r[Q],Ue,C)))continue e}Ae&&Ae.push(Ue),pe.push(Oe)}}return pe}function UT(r,d,C,N){return er(r,function(z,U,Q){d(N,C(z),U,Q)}),N}function ya(r,d,C){d=Vr(d,r),r=Gv(r,d);var N=r==null?r:r[nr(Mi(d))];return N==null?e:Wt(N,r,C)}function av(r){return nn(r)&&Qn(r)==ie}function VT(r){return nn(r)&&Qn(r)==Te}function qT(r){return nn(r)&&Qn(r)==ye}function wa(r,d,C,N,z){return r===d?!0:r==null||d==null||!nn(r)&&!nn(d)?r!==r&&d!==d:GT(r,d,C,N,wa,z)}function GT(r,d,C,N,z,U){var Q=Xe(r),ee=Xe(d),re=Q?J:Un(r),pe=ee?J:Un(d);re=re==ie?It:re,pe=pe==ie?It:pe;var ge=re==It,ve=pe==It,Ae=re==pe;if(Ae&&Gr(r)){if(!Gr(d))return!1;Q=!0,ge=!1}if(Ae&&!ge)return U||(U=new Fi),Q||fs(r)?zv(r,d,C,N,z,U):bM(r,d,re,C,N,z,U);if(!(C&o)){var Oe=ge&&Et.call(r,"__wrapped__"),Ue=ve&&Et.call(d,"__wrapped__");if(Oe||Ue){var st=Oe?r.value():r,Ve=Ue?d.value():d;return U||(U=new Fi),z(st,Ve,C,N,U)}}return Ae?(U||(U=new Fi),xM(r,d,C,N,z,U)):!1}function YT(r){return nn(r)&&Un(r)==ht}function id(r,d,C,N){var z=C.length,U=z,Q=!N;if(r==null)return!U;for(r=Je(r);z--;){var ee=C[z];if(Q&&ee[2]?ee[1]!==r[ee[0]]:!(ee[0]in r))return!1}for(;++z<U;){ee=C[z];var re=ee[0],pe=r[re],ge=ee[1];if(Q&&ee[2]){if(pe===e&&!(re in r))return!1}else{var ve=new Fi;if(N)var Ae=N(pe,ge,re,r,d,ve);if(!(Ae===e?wa(ge,pe,o|u,N,ve):Ae))return!1}}return!0}function lv(r){if(!Qt(r)||EM(r))return!1;var d=wr(r)?YA:kn;return d.test(Co(r))}function KT(r){return nn(r)&&Qn(r)==_n}function QT(r){return nn(r)&&Un(r)==Xt}function ZT(r){return nn(r)&&kc(r.length)&&!!Rt[Qn(r)]}function cv(r){return typeof r=="function"?r:r==null?li:typeof r=="object"?Xe(r)?dv(r[0],r[1]):hv(r):Ry(r)}function rd(r){if(!_a(r))return eT(r);var d=[];for(var C in Je(r))Et.call(r,C)&&C!="constructor"&&d.push(C);return d}function JT(r){if(!Qt(r))return OM(r);var d=_a(r),C=[];for(var N in r)N=="constructor"&&(d||!Et.call(r,N))||C.push(N);return C}function od(r,d){return r<d}function uv(r,d){var C=-1,N=si(r)?se(r.length):[];return Wr(r,function(z,U,Q){N[++C]=d(z,U,Q)}),N}function hv(r){var d=bd(r);return d.length==1&&d[0][2]?Vv(d[0][0],d[0][1]):function(C){return C===r||id(C,r,d)}}function dv(r,d){return _d(r)&&Uv(d)?Vv(nr(r),d):function(C){var N=Ld(C,r);return N===e&&N===d?Id(C,r):wa(d,N,o|u)}}function ac(r,d,C,N,z){r!==d&&Xh(d,function(U,Q){if(z||(z=new Fi),Qt(U))XT(r,d,Q,C,ac,N,z);else{var ee=N?N($d(r,Q),U,Q+"",r,d,z):e;ee===e&&(ee=U),Zh(r,Q,ee)}},ai)}function XT(r,d,C,N,z,U,Q){var ee=$d(r,C),re=$d(d,C),pe=Q.get(re);if(pe){Zh(r,C,pe);return}var ge=U?U(ee,re,C+"",r,d,Q):e,ve=ge===e;if(ve){var Ae=Xe(re),Oe=!Ae&&Gr(re),Ue=!Ae&&!Oe&&fs(re);ge=re,Ae||Oe||Ue?Xe(ee)?ge=ee:cn(ee)?ge=oi(ee):Oe?(ve=!1,ge=$v(re,!0)):Ue?(ve=!1,ge=Sv(re,!0)):ge=[]:$a(re)||Ao(re)?(ge=ee,Ao(ee)?ge=xy(ee):(!Qt(ee)||wr(ee))&&(ge=Wv(re))):ve=!1}ve&&(Q.set(re,ge),z(ge,re,N,U,Q),Q.delete(re)),Zh(r,C,ge)}function pv(r,d){var C=r.length;if(C)return d+=d<0?C:0,yr(d,C)?r[d]:e}function fv(r,d,C){d.length?d=Ht(d,function(U){return Xe(U)?function(Q){return $o(Q,U.length===1?U[0]:U)}:U}):d=[li];var N=-1;d=Ht(d,jn(je()));var z=uv(r,function(U,Q,ee){var re=Ht(d,function(pe){return pe(U)});return{criteria:re,index:++N,value:U}});return zr(z,function(U,Q){return dM(U,Q,C)})}function eM(r,d){return gv(r,d,function(C,N){return Id(r,N)})}function gv(r,d,C){for(var N=-1,z=d.length,U={};++N<z;){var Q=d[N],ee=$o(r,Q);C(ee,Q)&&ba(U,Vr(Q,r),ee)}return U}function tM(r){return function(d){return $o(d,r)}}function sd(r,d,C,N){var z=N?Bl:dr,U=-1,Q=d.length,ee=r;for(r===d&&(d=oi(d)),C&&(ee=Ht(r,jn(C)));++U<Q;)for(var re=0,pe=d[U],ge=C?C(pe):pe;(re=z(ee,ge,re,N))>-1;)ee!==r&&Zl.call(ee,re,1),Zl.call(r,re,1);return r}function mv(r,d){for(var C=r?d.length:0,N=C-1;C--;){var z=d[C];if(C==N||z!==U){var U=z;yr(z)?Zl.call(r,z,1):ud(r,z)}}return r}function ad(r,d){return r+ec(Q0()*(d-r+1))}function nM(r,d,C,N){for(var z=-1,U=Tn(Xl((d-r)/(C||1)),0),Q=se(U);U--;)Q[N?U:++z]=r,r+=C;return Q}function ld(r,d){var C="";if(!r||d<1||d>H)return C;do d%2&&(C+=r),d=ec(d/2),d&&(r+=r);while(d);return C}function ut(r,d){return Sd(qv(r,d,li),r+"")}function iM(r){return X0(gs(r))}function rM(r,d){var C=gs(r);return vc(C,ko(d,0,C.length))}function ba(r,d,C,N){if(!Qt(r))return r;d=Vr(d,r);for(var z=-1,U=d.length,Q=U-1,ee=r;ee!=null&&++z<U;){var re=nr(d[z]),pe=C;if(re==="__proto__"||re==="constructor"||re==="prototype")return r;if(z!=Q){var ge=ee[re];pe=N?N(ge,re,ee):e,pe===e&&(pe=Qt(ge)?ge:yr(d[z+1])?[]:{})}ma(ee,re,pe),ee=ee[re]}return r}var vv=tc?function(r,d){return tc.set(r,d),r}:li,oM=Jl?function(r,d){return Jl(r,"toString",{configurable:!0,enumerable:!1,value:Nd(d),writable:!0})}:li;function sM(r){return vc(gs(r))}function Ti(r,d,C){var N=-1,z=r.length;d<0&&(d=-d>z?0:z+d),C=C>z?z:C,C<0&&(C+=z),z=d>C?0:C-d>>>0,d>>>=0;for(var U=se(z);++N<z;)U[N]=r[N+d];return U}function aM(r,d){var C;return Wr(r,function(N,z,U){return C=d(N,z,U),!C}),!!C}function lc(r,d,C){var N=0,z=r==null?N:r.length;if(typeof d=="number"&&d===d&&z<=G){for(;N<z;){var U=N+z>>>1,Q=r[U];Q!==null&&!mi(Q)&&(C?Q<=d:Q<d)?N=U+1:z=U}return z}return cd(r,d,li,C)}function cd(r,d,C,N){var z=0,U=r==null?0:r.length;if(U===0)return 0;d=C(d);for(var Q=d!==d,ee=d===null,re=mi(d),pe=d===e;z<U;){var ge=ec((z+U)/2),ve=C(r[ge]),Ae=ve!==e,Oe=ve===null,Ue=ve===ve,st=mi(ve);if(Q)var Ve=N||Ue;else pe?Ve=Ue&&(N||Ae):ee?Ve=Ue&&Ae&&(N||!Oe):re?Ve=Ue&&Ae&&!Oe&&(N||!st):Oe||st?Ve=!1:Ve=N?ve<=d:ve<d;Ve?z=ge+1:U=ge}return Wn(U,X)}function yv(r,d){for(var C=-1,N=r.length,z=0,U=[];++C<N;){var Q=r[C],ee=d?d(Q):Q;if(!C||!Pi(ee,re)){var re=ee;U[z++]=Q===0?0:Q}}return U}function wv(r){return typeof r=="number"?r:mi(r)?V:+r}function gi(r){if(typeof r=="string")return r;if(Xe(r))return Ht(r,gi)+"";if(mi(r))return Z0?Z0.call(r):"";var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Ur(r,d,C){var N=-1,z=is,U=r.length,Q=!0,ee=[],re=ee;if(C)Q=!1,z=mo;else if(U>=m){var pe=d?null:yM(r);if(pe)return Ce(pe);Q=!1,z=Di,re=new _o}else re=d?[]:ee;e:for(;++N<U;){var ge=r[N],ve=d?d(ge):ge;if(ge=C||ge!==0?ge:0,Q&&ve===ve){for(var Ae=re.length;Ae--;)if(re[Ae]===ve)continue e;d&&re.push(ve),ee.push(ge)}else z(re,ve,C)||(re!==ee&&re.push(ve),ee.push(ge))}return ee}function ud(r,d){return d=Vr(d,r),r=Gv(r,d),r==null||delete r[nr(Mi(d))]}function bv(r,d,C,N){return ba(r,d,C($o(r,d)),N)}function cc(r,d,C,N){for(var z=r.length,U=N?z:-1;(N?U--:++U<z)&&d(r[U],U,r););return C?Ti(r,N?0:U,N?U+1:z):Ti(r,N?U+1:0,N?z:U)}function xv(r,d){var C=r;return C instanceof yt&&(C=C.value()),Si(d,function(N,z){return z.func.apply(z.thisArg,Bn([N],z.args))},C)}function hd(r,d,C){var N=r.length;if(N<2)return N?Ur(r[0]):[];for(var z=-1,U=se(N);++z<N;)for(var Q=r[z],ee=-1;++ee<N;)ee!=z&&(U[z]=va(U[z]||Q,r[ee],d,C));return Ur(Ln(U,1),d,C)}function _v(r,d,C){for(var N=-1,z=r.length,U=d.length,Q={};++N<z;){var ee=N<U?d[N]:e;C(Q,r[N],ee)}return Q}function dd(r){return cn(r)?r:[]}function pd(r){return typeof r=="function"?r:li}function Vr(r,d){return Xe(r)?r:_d(r,d)?[r]:Zv(At(r))}var lM=ut;function qr(r,d,C){var N=r.length;return C=C===e?N:C,!d&&C>=N?r:Ti(r,d,C)}var kv=KA||function(r){return Sn.clearTimeout(r)};function $v(r,d){if(d)return r.slice();var C=r.length,N=V0?V0(C):new r.constructor(C);return r.copy(N),N}function fd(r){var d=new r.constructor(r.byteLength);return new Kl(d).set(new Kl(r)),d}function cM(r,d){var C=d?fd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.byteLength)}function uM(r){var d=new r.constructor(r.source,Rr.exec(r));return d.lastIndex=r.lastIndex,d}function hM(r){return ga?Je(ga.call(r)):{}}function Sv(r,d){var C=d?fd(r.buffer):r.buffer;return new r.constructor(C,r.byteOffset,r.length)}function Cv(r,d){if(r!==d){var C=r!==e,N=r===null,z=r===r,U=mi(r),Q=d!==e,ee=d===null,re=d===d,pe=mi(d);if(!ee&&!pe&&!U&&r>d||U&&Q&&re&&!ee&&!pe||N&&Q&&re||!C&&re||!z)return 1;if(!N&&!U&&!pe&&r<d||pe&&C&&z&&!N&&!U||ee&&C&&z||!Q&&z||!re)return-1}return 0}function dM(r,d,C){for(var N=-1,z=r.criteria,U=d.criteria,Q=z.length,ee=C.length;++N<Q;){var re=Cv(z[N],U[N]);if(re){if(N>=ee)return re;var pe=C[N];return re*(pe=="desc"?-1:1)}}return r.index-d.index}function Av(r,d,C,N){for(var z=-1,U=r.length,Q=C.length,ee=-1,re=d.length,pe=Tn(U-Q,0),ge=se(re+pe),ve=!N;++ee<re;)ge[ee]=d[ee];for(;++z<Q;)(ve||z<U)&&(ge[C[z]]=r[z]);for(;pe--;)ge[ee++]=r[z++];return ge}function Tv(r,d,C,N){for(var z=-1,U=r.length,Q=-1,ee=C.length,re=-1,pe=d.length,ge=Tn(U-ee,0),ve=se(ge+pe),Ae=!N;++z<ge;)ve[z]=r[z];for(var Oe=z;++re<pe;)ve[Oe+re]=d[re];for(;++Q<ee;)(Ae||z<U)&&(ve[Oe+C[Q]]=r[z++]);return ve}function oi(r,d){var C=-1,N=r.length;for(d||(d=se(N));++C<N;)d[C]=r[C];return d}function tr(r,d,C,N){var z=!C;C||(C={});for(var U=-1,Q=d.length;++U<Q;){var ee=d[U],re=N?N(C[ee],r[ee],ee,C,r):e;re===e&&(re=r[ee]),z?gr(C,ee,re):ma(C,ee,re)}return C}function pM(r,d){return tr(r,xd(r),d)}function fM(r,d){return tr(r,Bv(r),d)}function uc(r,d){return function(C,N){var z=Xe(C)?Gh:DT,U=d?d():{};return z(C,r,je(N,2),U)}}function hs(r){return ut(function(d,C){var N=-1,z=C.length,U=z>1?C[z-1]:e,Q=z>2?C[2]:e;for(U=r.length>3&&typeof U=="function"?(z--,U):e,Q&&Zn(C[0],C[1],Q)&&(U=z<3?e:U,z=1),d=Je(d);++N<z;){var ee=C[N];ee&&r(d,ee,N,U)}return d})}function Mv(r,d){return function(C,N){if(C==null)return C;if(!si(C))return r(C,N);for(var z=C.length,U=d?z:-1,Q=Je(C);(d?U--:++U<z)&&N(Q[U],U,Q)!==!1;);return C}}function Ev(r){return function(d,C,N){for(var z=-1,U=Je(d),Q=N(d),ee=Q.length;ee--;){var re=Q[r?ee:++z];if(C(U[re],re,U)===!1)break}return d}}function gM(r,d,C){var N=d&p,z=xa(r);function U(){var Q=this&&this!==Sn&&this instanceof U?z:r;return Q.apply(N?C:this,arguments)}return U}function Rv(r){return function(d){d=At(d);var C=te(d)?Ge(d):e,N=C?C[0]:d.charAt(0),z=C?qr(C,1).join(""):d.slice(1);return N[r]()+z}}function ds(r){return function(d){return Si(My(Ty(d).replace(ta,"")),r,"")}}function xa(r){return function(){var d=arguments;switch(d.length){case 0:return new r;case 1:return new r(d[0]);case 2:return new r(d[0],d[1]);case 3:return new r(d[0],d[1],d[2]);case 4:return new r(d[0],d[1],d[2],d[3]);case 5:return new r(d[0],d[1],d[2],d[3],d[4]);case 6:return new r(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new r(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var C=us(r.prototype),N=r.apply(C,d);return Qt(N)?N:C}}function mM(r,d,C){var N=xa(r);function z(){for(var U=arguments.length,Q=se(U),ee=U,re=ps(z);ee--;)Q[ee]=arguments[ee];var pe=U<3&&Q[0]!==re&&Q[U-1]!==re?[]:_e(Q,re);if(U-=pe.length,U<C)return Dv(r,d,hc,z.placeholder,e,Q,pe,e,e,C-U);var ge=this&&this!==Sn&&this instanceof z?N:r;return Wt(ge,this,Q)}return z}function Lv(r){return function(d,C,N){var z=Je(d);if(!si(d)){var U=je(C,3);d=Rn(d),C=function(ee){return U(z[ee],ee,z)}}var Q=r(d,C,N);return Q>-1?z[U?d[Q]:Q]:e}}function Iv(r){return vr(function(d){var C=d.length,N=C,z=Ci.prototype.thru;for(r&&d.reverse();N--;){var U=d[N];if(typeof U!="function")throw new An(v);if(z&&!Q&&gc(U)=="wrapper")var Q=new Ci([],!0)}for(N=Q?N:C;++N<C;){U=d[N];var ee=gc(U),re=ee=="wrapper"?wd(U):e;re&&kd(re[0])&&re[1]==(T|R|k|E)&&!re[4].length&&re[9]==1?Q=Q[gc(re[0])].apply(Q,re[3]):Q=U.length==1&&kd(U)?Q[ee]():Q.thru(U)}return function(){var pe=arguments,ge=pe[0];if(Q&&pe.length==1&&Xe(ge))return Q.plant(ge).value();for(var ve=0,Ae=C?d[ve].apply(this,pe):ge;++ve<C;)Ae=d[ve].call(this,Ae);return Ae}})}function hc(r,d,C,N,z,U,Q,ee,re,pe){var ge=d&T,ve=d&p,Ae=d&y,Oe=d&(R|A),Ue=d&I,st=Ae?e:xa(r);function Ve(){for(var gt=arguments.length,wt=se(gt),vi=gt;vi--;)wt[vi]=arguments[vi];if(Oe)var Jn=ps(Ve),yi=ua(wt,Jn);if(N&&(wt=Av(wt,N,z,Oe)),U&&(wt=Tv(wt,U,Q,Oe)),gt-=yi,Oe&&gt<pe){var un=_e(wt,Jn);return Dv(r,d,hc,Ve.placeholder,C,wt,un,ee,re,pe-gt)}var Hi=ve?C:this,xr=Ae?Hi[r]:r;return gt=wt.length,ee?wt=DM(wt,ee):Ue&&gt>1&&wt.reverse(),ge&&re<gt&&(wt.length=re),this&&this!==Sn&&this instanceof Ve&&(xr=st||xa(xr)),xr.apply(Hi,wt)}return Ve}function Ov(r,d){return function(C,N){return UT(C,r,d(N),{})}}function dc(r,d){return function(C,N){var z;if(C===e&&N===e)return d;if(C!==e&&(z=C),N!==e){if(z===e)return N;typeof C=="string"||typeof N=="string"?(C=gi(C),N=gi(N)):(C=wv(C),N=wv(N)),z=r(C,N)}return z}}function gd(r){return vr(function(d){return d=Ht(d,jn(je())),ut(function(C){var N=this;return r(d,function(z){return Wt(z,N,C)})})})}function pc(r,d){d=d===e?" ":gi(d);var C=d.length;if(C<2)return C?ld(d,r):d;var N=ld(d,Xl(r/it(d)));return te(d)?qr(Ge(N),0,r).join(""):N.slice(0,r)}function vM(r,d,C,N){var z=d&p,U=xa(r);function Q(){for(var ee=-1,re=arguments.length,pe=-1,ge=N.length,ve=se(ge+re),Ae=this&&this!==Sn&&this instanceof Q?U:r;++pe<ge;)ve[pe]=N[pe];for(;re--;)ve[pe++]=arguments[++ee];return Wt(Ae,z?C:this,ve)}return Q}function Nv(r){return function(d,C,N){return N&&typeof N!="number"&&Zn(d,C,N)&&(C=N=e),d=br(d),C===e?(C=d,d=0):C=br(C),N=N===e?d<C?1:-1:br(N),nM(d,C,N,r)}}function fc(r){return function(d,C){return typeof d=="string"&&typeof C=="string"||(d=Ei(d),C=Ei(C)),r(d,C)}}function Dv(r,d,C,N,z,U,Q,ee,re,pe){var ge=d&R,ve=ge?Q:e,Ae=ge?e:Q,Oe=ge?U:e,Ue=ge?e:U;d|=ge?k:b,d&=~(ge?b:k),d&x||(d&=~(p|y));var st=[r,d,z,Oe,ve,Ue,Ae,ee,re,pe],Ve=C.apply(e,st);return kd(r)&&Yv(Ve,st),Ve.placeholder=N,Kv(Ve,r,d)}function md(r){var d=Ct[r];return function(C,N){if(C=Ei(C),N=N==null?0:Wn(rt(N),292),N&&K0(C)){var z=(At(C)+"e").split("e"),U=d(z[0]+"e"+(+z[1]+N));return z=(At(U)+"e").split("e"),+(z[0]+"e"+(+z[1]-N))}return d(C)}}var yM=ls&&1/Ce(new ls([,-0]))[1]==F?function(r){return new ls(r)}:Pd;function Fv(r){return function(d){var C=Un(d);return C==ht?we(d):C==Xt?Me(d):jl(d,r(d))}}function mr(r,d,C,N,z,U,Q,ee){var re=d&y;if(!re&&typeof r!="function")throw new An(v);var pe=N?N.length:0;if(pe||(d&=~(k|b),N=z=e),Q=Q===e?Q:Tn(rt(Q),0),ee=ee===e?ee:rt(ee),pe-=z?z.length:0,d&b){var ge=N,ve=z;N=z=e}var Ae=re?e:wd(r),Oe=[r,d,C,N,z,ge,ve,U,Q,ee];if(Ae&&IM(Oe,Ae),r=Oe[0],d=Oe[1],C=Oe[2],N=Oe[3],z=Oe[4],ee=Oe[9]=Oe[9]===e?re?0:r.length:Tn(Oe[9]-pe,0),!ee&&d&(R|A)&&(d&=~(R|A)),!d||d==p)var Ue=gM(r,d,C);else d==R||d==A?Ue=mM(r,d,ee):(d==k||d==(p|k))&&!z.length?Ue=vM(r,d,C,N):Ue=hc.apply(e,Oe);var st=Ae?vv:Yv;return Kv(st(Ue,Oe),r,d)}function Pv(r,d,C,N){return r===e||Pi(r,as[C])&&!Et.call(N,C)?d:r}function Hv(r,d,C,N,z,U){return Qt(r)&&Qt(d)&&(U.set(d,r),ac(r,d,e,Hv,U),U.delete(d)),r}function wM(r){return $a(r)?e:r}function zv(r,d,C,N,z,U){var Q=C&o,ee=r.length,re=d.length;if(ee!=re&&!(Q&&re>ee))return!1;var pe=U.get(r),ge=U.get(d);if(pe&&ge)return pe==d&&ge==r;var ve=-1,Ae=!0,Oe=C&u?new _o:e;for(U.set(r,d),U.set(d,r);++ve<ee;){var Ue=r[ve],st=d[ve];if(N)var Ve=Q?N(st,Ue,ve,d,r,U):N(Ue,st,ve,r,d,U);if(Ve!==e){if(Ve)continue;Ae=!1;break}if(Oe){if(!rs(d,function(gt,wt){if(!Di(Oe,wt)&&(Ue===gt||z(Ue,gt,C,N,U)))return Oe.push(wt)})){Ae=!1;break}}else if(!(Ue===st||z(Ue,st,C,N,U))){Ae=!1;break}}return U.delete(r),U.delete(d),Ae}function bM(r,d,C,N,z,U,Q){switch(C){case Re:if(r.byteLength!=d.byteLength||r.byteOffset!=d.byteOffset)return!1;r=r.buffer,d=d.buffer;case Te:return!(r.byteLength!=d.byteLength||!U(new Kl(r),new Kl(d)));case me:case ye:case ft:return Pi(+r,+d);case ke:return r.name==d.name&&r.message==d.message;case _n:case Pe:return r==d+"";case ht:var ee=we;case Xt:var re=N&o;if(ee||(ee=Ce),r.size!=d.size&&!re)return!1;var pe=Q.get(r);if(pe)return pe==d;N|=u,Q.set(r,d);var ge=zv(ee(r),ee(d),N,z,U,Q);return Q.delete(r),ge;case Be:if(ga)return ga.call(r)==ga.call(d)}return!1}function xM(r,d,C,N,z,U){var Q=C&o,ee=vd(r),re=ee.length,pe=vd(d),ge=pe.length;if(re!=ge&&!Q)return!1;for(var ve=re;ve--;){var Ae=ee[ve];if(!(Q?Ae in d:Et.call(d,Ae)))return!1}var Oe=U.get(r),Ue=U.get(d);if(Oe&&Ue)return Oe==d&&Ue==r;var st=!0;U.set(r,d),U.set(d,r);for(var Ve=Q;++ve<re;){Ae=ee[ve];var gt=r[Ae],wt=d[Ae];if(N)var vi=Q?N(wt,gt,Ae,d,r,U):N(gt,wt,Ae,r,d,U);if(!(vi===e?gt===wt||z(gt,wt,C,N,U):vi)){st=!1;break}Ve||(Ve=Ae=="constructor")}if(st&&!Ve){var Jn=r.constructor,yi=d.constructor;Jn!=yi&&"constructor"in r&&"constructor"in d&&!(typeof Jn=="function"&&Jn instanceof Jn&&typeof yi=="function"&&yi instanceof yi)&&(st=!1)}return U.delete(r),U.delete(d),st}function vr(r){return Sd(qv(r,e,ty),r+"")}function vd(r){return sv(r,Rn,xd)}function yd(r){return sv(r,ai,Bv)}var wd=tc?function(r){return tc.get(r)}:Pd;function gc(r){for(var d=r.name+"",C=cs[d],N=Et.call(cs,d)?C.length:0;N--;){var z=C[N],U=z.func;if(U==null||U==r)return z.name}return d}function ps(r){var d=Et.call(j,"placeholder")?j:r;return d.placeholder}function je(){var r=j.iteratee||Dd;return r=r===Dd?cv:r,arguments.length?r(arguments[0],arguments[1]):r}function mc(r,d){var C=r.__data__;return MM(d)?C[typeof d=="string"?"string":"hash"]:C.map}function bd(r){for(var d=Rn(r),C=d.length;C--;){var N=d[C],z=r[N];d[C]=[N,z,Uv(z)]}return d}function So(r,d){var C=K(r,d);return lv(C)?C:e}function _M(r){var d=Et.call(r,bo),C=r[bo];try{r[bo]=e;var N=!0}catch{}var z=Gl.call(r);return N&&(d?r[bo]=C:delete r[bo]),z}var xd=Yh?function(r){return r==null?[]:(r=Je(r),ii(Yh(r),function(d){return G0.call(r,d)}))}:Hd,Bv=Yh?function(r){for(var d=[];r;)Bn(d,xd(r)),r=Ql(r);return d}:Hd,Un=Qn;(Kh&&Un(new Kh(new ArrayBuffer(1)))!=Re||da&&Un(new da)!=ht||Qh&&Un(Qh.resolve())!=Gt||ls&&Un(new ls)!=Xt||pa&&Un(new pa)!=We)&&(Un=function(r){var d=Qn(r),C=d==It?r.constructor:e,N=C?Co(C):"";if(N)switch(N){case rT:return Re;case oT:return ht;case sT:return Gt;case aT:return Xt;case lT:return We}return d});function kM(r,d,C){for(var N=-1,z=C.length;++N<z;){var U=C[N],Q=U.size;switch(U.type){case"drop":r+=Q;break;case"dropRight":d-=Q;break;case"take":d=Wn(d,r+Q);break;case"takeRight":r=Tn(r,d-Q);break}}return{start:r,end:d}}function $M(r){var d=r.match($l);return d?d[1].split(Sl):[]}function jv(r,d,C){d=Vr(d,r);for(var N=-1,z=d.length,U=!1;++N<z;){var Q=nr(d[N]);if(!(U=r!=null&&C(r,Q)))break;r=r[Q]}return U||++N!=z?U:(z=r==null?0:r.length,!!z&&kc(z)&&yr(Q,z)&&(Xe(r)||Ao(r)))}function SM(r){var d=r.length,C=new r.constructor(d);return d&&typeof r[0]=="string"&&Et.call(r,"index")&&(C.index=r.index,C.input=r.input),C}function Wv(r){return typeof r.constructor=="function"&&!_a(r)?us(Ql(r)):{}}function CM(r,d,C){var N=r.constructor;switch(d){case Te:return fd(r);case me:case ye:return new N(+r);case Re:return cM(r,C);case qe:case Ye:case dt:case pt:case lt:case ct:case nt:case Bt:case Pn:return Sv(r,C);case ht:return new N;case ft:case Pe:return new N(r);case _n:return uM(r);case Xt:return new N;case Be:return hM(r)}}function AM(r,d){var C=d.length;if(!C)return r;var N=C-1;return d[N]=(C>1?"& ":"")+d[N],d=d.join(C>2?", ":" "),r.replace(Er,`{
1388
1388
  /* [wrapped with `+d+`] */
1389
- `)}function CM(r){return Xe(r)||Ao(r)||!!(q0&&r&&r[q0])}function yr(r,d){var C=typeof r;return d=d??H,!!d&&(C=="number"||C!="symbol"&&gn.test(r))&&r>-1&&r%1==0&&r<d}function Kn(r,d,C){if(!Qt(C))return!1;var N=typeof d;return(N=="number"?si(C)&&yr(d,C.length):N=="string"&&d in C)?Pi(C[d],r):!1}function _d(r,d){if(Xe(r))return!1;var C=typeof r;return C=="number"||C=="symbol"||C=="boolean"||r==null||mi(r)?!0:Mn.test(r)||!ar.test(r)||d!=null&&r in Je(d)}function AM(r){var d=typeof r;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?r!=="__proto__":r===null}function kd(r){var d=gc(r),C=j[d];if(typeof C!="function"||!(d in yt.prototype))return!1;if(r===C)return!0;var N=wd(C);return!!N&&r===N[0]}function TM(r){return!!j0&&j0 in r}var MM=Vl?wr:Bd;function _a(r){var d=r&&r.constructor,C=typeof d=="function"&&d.prototype||as;return r===C}function jv(r){return r===r&&!Qt(r)}function Wv(r,d){return function(C){return C==null?!1:C[r]===d&&(d!==e||r in Je(C))}}function EM(r){var d=xc(r,function(N){return C.size===g&&C.clear(),N}),C=d.cache;return d}function RM(r,d){var C=r[1],N=d[1],B=C|N,U=B<(p|y|T),Q=N==T&&C==R||N==T&&C==E&&r[7].length<=d[8]||N==(T|E)&&d[7].length<=d[8]&&C==R;if(!(U||Q))return r;N&p&&(r[2]=d[2],B|=C&p?0:x);var ee=d[3];if(ee){var re=r[3];r[3]=re?Sv(re,ee,d[4]):ee,r[4]=re?_e(r[3],a):d[4]}return ee=d[5],ee&&(re=r[5],r[5]=re?Cv(re,ee,d[6]):ee,r[6]=re?_e(r[5],a):d[6]),ee=d[7],ee&&(r[7]=ee),N&T&&(r[8]=r[8]==null?d[8]:Wn(r[8],d[8])),r[9]==null&&(r[9]=d[9]),r[0]=d[0],r[1]=B,r}function LM(r){var d=[];if(r!=null)for(var C in Je(r))d.push(C);return d}function IM(r){return Gl.call(r)}function Uv(r,d,C){return d=Tn(d===e?r.length-1:d,0),function(){for(var N=arguments,B=-1,U=Tn(N.length-d,0),Q=se(U);++B<U;)Q[B]=N[d+B];B=-1;for(var ee=se(d+1);++B<d;)ee[B]=N[B];return ee[d]=C(Q),Wt(r,this,ee)}}function Vv(r,d){return d.length<2?r:$o(r,Ti(d,0,-1))}function OM(r,d){for(var C=r.length,N=Wn(d.length,C),B=oi(r);N--;){var U=d[N];r[N]=yr(U,C)?B[U]:e}return r}function $d(r,d){if(!(d==="constructor"&&typeof r[d]=="function")&&d!="__proto__")return r[d]}var qv=Yv(gv),ka=KA||function(r,d){return Sn.setTimeout(r,d)},Sd=Yv(iM);function Gv(r,d,C){var N=d+"";return Sd(r,SM(N,NM(_M(N),C)))}function Yv(r){var d=0,C=0;return function(){var N=XA(),B=_-(N-C);if(C=N,B>0){if(++d>=$)return arguments[0]}else d=0;return r.apply(e,arguments)}}function vc(r,d){var C=-1,N=r.length,B=N-1;for(d=d===e?N:d;++C<d;){var U=ad(C,B),Q=r[U];r[U]=r[C],r[C]=Q}return r.length=d,r}var Kv=EM(function(r){var d=[];return r.charCodeAt(0)===46&&d.push(""),r.replace(Gi,function(C,N,B,U){d.push(B?U.replace(lr,"$1"):N||C)}),d});function nr(r){if(typeof r=="string"||mi(r))return r;var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Co(r){if(r!=null){try{return ql.call(r)}catch{}try{return r+""}catch{}}return""}function NM(r,d){return qn(Z,function(C){var N="_."+C[0];d&C[1]&&!is(r,N)&&r.push(N)}),r.sort()}function Qv(r){if(r instanceof yt)return r.clone();var d=new Ci(r.__wrapped__,r.__chain__);return d.__actions__=oi(r.__actions__),d.__index__=r.__index__,d.__values__=r.__values__,d}function DM(r,d,C){(C?Kn(r,d,C):d===e)?d=1:d=Tn(rt(d),0);var N=r==null?0:r.length;if(!N||d<1)return[];for(var B=0,U=0,Q=se(Xl(N/d));B<N;)Q[U++]=Ti(r,B,B+=d);return Q}function FM(r){for(var d=-1,C=r==null?0:r.length,N=0,B=[];++d<C;){var U=r[d];U&&(B[N++]=U)}return B}function PM(){var r=arguments.length;if(!r)return[];for(var d=se(r-1),C=arguments[0],N=r;N--;)d[N-1]=arguments[N];return zn(Xe(C)?oi(C):[C],Ln(d,1))}var HM=ct(function(r,d){return cn(r)?va(r,Ln(d,1,cn,!0)):[]}),BM=ct(function(r,d){var C=Mi(d);return cn(C)&&(C=e),cn(r)?va(r,Ln(d,1,cn,!0),je(C,2)):[]}),zM=ct(function(r,d){var C=Mi(d);return cn(C)&&(C=e),cn(r)?va(r,Ln(d,1,cn,!0),e,C):[]});function jM(r,d,C){var N=r==null?0:r.length;return N?(d=C||d===e?1:rt(d),Ti(r,d<0?0:d,N)):[]}function WM(r,d,C){var N=r==null?0:r.length;return N?(d=C||d===e?1:rt(d),d=N-d,Ti(r,0,d<0?0:d)):[]}function UM(r,d){return r&&r.length?cc(r,je(d,3),!0,!0):[]}function VM(r,d){return r&&r.length?cc(r,je(d,3),!0):[]}function qM(r,d,C,N){var B=r==null?0:r.length;return B?(C&&typeof C!="number"&&Kn(r,d,C)&&(C=0,N=B),PT(r,d,C,N)):[]}function Zv(r,d,C){var N=r==null?0:r.length;if(!N)return-1;var B=C==null?0:rt(C);return B<0&&(B=Tn(N+B,0)),yo(r,je(d,3),B)}function Jv(r,d,C){var N=r==null?0:r.length;if(!N)return-1;var B=N-1;return C!==e&&(B=rt(C),B=C<0?Tn(N+B,0):Wn(B,N-1)),yo(r,je(d,3),B,!0)}function Xv(r){var d=r==null?0:r.length;return d?Ln(r,1):[]}function GM(r){var d=r==null?0:r.length;return d?Ln(r,F):[]}function YM(r,d){var C=r==null?0:r.length;return C?(d=d===e?1:rt(d),Ln(r,d)):[]}function KM(r){for(var d=-1,C=r==null?0:r.length,N={};++d<C;){var B=r[d];N[B[0]]=B[1]}return N}function ey(r){return r&&r.length?r[0]:e}function QM(r,d,C){var N=r==null?0:r.length;if(!N)return-1;var B=C==null?0:rt(C);return B<0&&(B=Tn(N+B,0)),dr(r,d,B)}function ZM(r){var d=r==null?0:r.length;return d?Ti(r,0,-1):[]}var JM=ct(function(r){var d=Ht(r,dd);return d.length&&d[0]===r[0]?nd(d):[]}),XM=ct(function(r){var d=Mi(r),C=Ht(r,dd);return d===Mi(C)?d=e:C.pop(),C.length&&C[0]===r[0]?nd(C,je(d,2)):[]}),eE=ct(function(r){var d=Mi(r),C=Ht(r,dd);return d=typeof d=="function"?d:e,d&&C.pop(),C.length&&C[0]===r[0]?nd(C,e,d):[]});function tE(r,d){return r==null?"":ZA.call(r,d)}function Mi(r){var d=r==null?0:r.length;return d?r[d-1]:e}function nE(r,d,C){var N=r==null?0:r.length;if(!N)return-1;var B=N;return C!==e&&(B=rt(C),B=B<0?Tn(N+B,0):Wn(B,N-1)),d===d?Mt(r,d,B):yo(r,sa,B,!0)}function iE(r,d){return r&&r.length?hv(r,rt(d)):e}var rE=ct(ty);function ty(r,d){return r&&r.length&&d&&d.length?sd(r,d):r}function oE(r,d,C){return r&&r.length&&d&&d.length?sd(r,d,je(C,2)):r}function sE(r,d,C){return r&&r.length&&d&&d.length?sd(r,d,e,C):r}var aE=vr(function(r,d){var C=r==null?0:r.length,N=Jh(r,d);return fv(r,Ht(d,function(B){return yr(B,C)?+B:B}).sort($v)),N});function lE(r,d){var C=[];if(!(r&&r.length))return C;var N=-1,B=[],U=r.length;for(d=je(d,3);++N<U;){var Q=r[N];d(Q,N,r)&&(C.push(Q),B.push(N))}return fv(r,B),C}function Cd(r){return r==null?r:tT.call(r)}function cE(r,d,C){var N=r==null?0:r.length;return N?(C&&typeof C!="number"&&Kn(r,d,C)?(d=0,C=N):(d=d==null?0:rt(d),C=C===e?N:rt(C)),Ti(r,d,C)):[]}function uE(r,d){return lc(r,d)}function hE(r,d,C){return cd(r,d,je(C,2))}function dE(r,d){var C=r==null?0:r.length;if(C){var N=lc(r,d);if(N<C&&Pi(r[N],d))return N}return-1}function pE(r,d){return lc(r,d,!0)}function fE(r,d,C){return cd(r,d,je(C,2),!0)}function gE(r,d){var C=r==null?0:r.length;if(C){var N=lc(r,d,!0)-1;if(Pi(r[N],d))return N}return-1}function mE(r){return r&&r.length?mv(r):[]}function vE(r,d){return r&&r.length?mv(r,je(d,2)):[]}function yE(r){var d=r==null?0:r.length;return d?Ti(r,1,d):[]}function wE(r,d,C){return r&&r.length?(d=C||d===e?1:rt(d),Ti(r,0,d<0?0:d)):[]}function bE(r,d,C){var N=r==null?0:r.length;return N?(d=C||d===e?1:rt(d),d=N-d,Ti(r,d<0?0:d,N)):[]}function xE(r,d){return r&&r.length?cc(r,je(d,3),!1,!0):[]}function _E(r,d){return r&&r.length?cc(r,je(d,3)):[]}var kE=ct(function(r){return Ur(Ln(r,1,cn,!0))}),$E=ct(function(r){var d=Mi(r);return cn(d)&&(d=e),Ur(Ln(r,1,cn,!0),je(d,2))}),SE=ct(function(r){var d=Mi(r);return d=typeof d=="function"?d:e,Ur(Ln(r,1,cn,!0),e,d)});function CE(r){return r&&r.length?Ur(r):[]}function AE(r,d){return r&&r.length?Ur(r,je(d,2)):[]}function TE(r,d){return d=typeof d=="function"?d:e,r&&r.length?Ur(r,e,d):[]}function Ad(r){if(!(r&&r.length))return[];var d=0;return r=ii(r,function(C){if(cn(C))return d=Tn(C.length,d),!0}),tn(d,function(C){return Ht(r,la(C))})}function ny(r,d){if(!(r&&r.length))return[];var C=Ad(r);return d==null?C:Ht(C,function(N){return Wt(d,e,N)})}var ME=ct(function(r,d){return cn(r)?va(r,d):[]}),EE=ct(function(r){return hd(ii(r,cn))}),RE=ct(function(r){var d=Mi(r);return cn(d)&&(d=e),hd(ii(r,cn),je(d,2))}),LE=ct(function(r){var d=Mi(r);return d=typeof d=="function"?d:e,hd(ii(r,cn),e,d)}),IE=ct(Ad);function OE(r,d){return bv(r||[],d||[],ma)}function NE(r,d){return bv(r||[],d||[],ba)}var DE=ct(function(r){var d=r.length,C=d>1?r[d-1]:e;return C=typeof C=="function"?(r.pop(),C):e,ny(r,C)});function iy(r){var d=j(r);return d.__chain__=!0,d}function FE(r,d){return d(r),r}function yc(r,d){return d(r)}var PE=vr(function(r){var d=r.length,C=d?r[0]:0,N=this.__wrapped__,B=function(U){return Jh(U,r)};return d>1||this.__actions__.length||!(N instanceof yt)||!yr(C)?this.thru(B):(N=N.slice(C,+C+(d?1:0)),N.__actions__.push({func:yc,args:[B],thisArg:e}),new Ci(N,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function HE(){return iy(this)}function BE(){return new Ci(this.value(),this.__chain__)}function zE(){this.__values__===e&&(this.__values__=vy(this.value()));var r=this.__index__>=this.__values__.length,d=r?e:this.__values__[this.__index__++];return{done:r,value:d}}function jE(){return this}function WE(r){for(var d,C=this;C instanceof ic;){var N=Qv(C);N.__index__=0,N.__values__=e,d?B.__wrapped__=N:d=N;var B=N;C=C.__wrapped__}return B.__wrapped__=r,d}function UE(){var r=this.__wrapped__;if(r instanceof yt){var d=r;return this.__actions__.length&&(d=new yt(this)),d=d.reverse(),d.__actions__.push({func:yc,args:[Cd],thisArg:e}),new Ci(d,this.__chain__)}return this.thru(Cd)}function VE(){return wv(this.__wrapped__,this.__actions__)}var qE=uc(function(r,d,C){Et.call(r,C)?++r[C]:gr(r,C,1)});function GE(r,d,C){var N=Xe(r)?Hr:FT;return C&&Kn(r,d,C)&&(d=e),N(r,je(d,3))}function YE(r,d){var C=Xe(r)?ii:nv;return C(r,je(d,3))}var KE=Ev(Zv),QE=Ev(Jv);function ZE(r,d){return Ln(wc(r,d),1)}function JE(r,d){return Ln(wc(r,d),F)}function XE(r,d,C){return C=C===e?1:rt(C),Ln(wc(r,d),C)}function ry(r,d){var C=Xe(r)?qn:Wr;return C(r,je(d,3))}function oy(r,d){var C=Xe(r)?Bl:tv;return C(r,je(d,3))}var eR=uc(function(r,d,C){Et.call(r,C)?r[C].push(d):gr(r,C,[d])});function tR(r,d,C,N){r=si(r)?r:gs(r),C=C&&!N?rt(C):0;var B=r.length;return C<0&&(C=Tn(B+C,0)),$c(r)?C<=B&&r.indexOf(d,C)>-1:!!B&&dr(r,d,C)>-1}var nR=ct(function(r,d,C){var N=-1,B=typeof d=="function",U=si(r)?se(r.length):[];return Wr(r,function(Q){U[++N]=B?Wt(d,Q,C):ya(Q,d,C)}),U}),iR=uc(function(r,d,C){gr(r,C,d)});function wc(r,d){var C=Xe(r)?Ht:lv;return C(r,je(d,3))}function rR(r,d,C,N){return r==null?[]:(Xe(d)||(d=d==null?[]:[d]),C=N?e:C,Xe(C)||(C=C==null?[]:[C]),dv(r,d,C))}var oR=uc(function(r,d,C){r[C?0:1].push(d)},function(){return[[],[]]});function sR(r,d,C){var N=Xe(r)?Si:ca,B=arguments.length<3;return N(r,je(d,4),C,B,Wr)}function aR(r,d,C){var N=Xe(r)?vo:ca,B=arguments.length<3;return N(r,je(d,4),C,B,tv)}function lR(r,d){var C=Xe(r)?ii:nv;return C(r,_c(je(d,3)))}function cR(r){var d=Xe(r)?Z0:tM;return d(r)}function uR(r,d,C){(C?Kn(r,d,C):d===e)?d=1:d=rt(d);var N=Xe(r)?LT:nM;return N(r,d)}function hR(r){var d=Xe(r)?IT:rM;return d(r)}function dR(r){if(r==null)return 0;if(si(r))return $c(r)?it(r):r.length;var d=Un(r);return d==ut||d==Xt?r.size:rd(r).length}function pR(r,d,C){var N=Xe(r)?rs:oM;return C&&Kn(r,d,C)&&(d=e),N(r,je(d,3))}var fR=ct(function(r,d){if(r==null)return[];var C=d.length;return C>1&&Kn(r,d[0],d[1])?d=[]:C>2&&Kn(d[0],d[1],d[2])&&(d=[d[0]]),dv(r,Ln(d,1),[])}),bc=YA||function(){return Sn.Date.now()};function gR(r,d){if(typeof d!="function")throw new An(v);return r=rt(r),function(){if(--r<1)return d.apply(this,arguments)}}function sy(r,d,C){return d=C?e:d,d=r&&d==null?r.length:d,mr(r,T,e,e,e,e,d)}function ay(r,d){var C;if(typeof d!="function")throw new An(v);return r=rt(r),function(){return--r>0&&(C=d.apply(this,arguments)),r<=1&&(d=e),C}}var Td=ct(function(r,d,C){var N=p;if(C.length){var B=_e(C,ps(Td));N|=k}return mr(r,N,d,C,B)}),ly=ct(function(r,d,C){var N=p|y;if(C.length){var B=_e(C,ps(ly));N|=k}return mr(d,N,r,C,B)});function cy(r,d,C){d=C?e:d;var N=mr(r,R,e,e,e,e,e,d);return N.placeholder=cy.placeholder,N}function uy(r,d,C){d=C?e:d;var N=mr(r,A,e,e,e,e,e,d);return N.placeholder=uy.placeholder,N}function hy(r,d,C){var N,B,U,Q,ee,re,pe=0,ge=!1,ve=!1,Ae=!0;if(typeof r!="function")throw new An(v);d=Ei(d)||0,Qt(C)&&(ge=!!C.leading,ve="maxWait"in C,U=ve?Tn(Ei(C.maxWait)||0,d):U,Ae="trailing"in C?!!C.trailing:Ae);function Oe(un){var Hi=N,xr=B;return N=B=e,pe=un,Q=r.apply(xr,Hi),Q}function Ue(un){return pe=un,ee=ka(gt,d),ge?Oe(un):Q}function st(un){var Hi=un-re,xr=un-pe,Ey=d-Hi;return ve?Wn(Ey,U-xr):Ey}function Ve(un){var Hi=un-re,xr=un-pe;return re===e||Hi>=d||Hi<0||ve&&xr>=U}function gt(){var un=bc();if(Ve(un))return wt(un);ee=ka(gt,st(un))}function wt(un){return ee=e,Ae&&N?Oe(un):(N=B=e,Q)}function vi(){ee!==e&&xv(ee),pe=0,N=re=B=ee=e}function Qn(){return ee===e?Q:wt(bc())}function yi(){var un=bc(),Hi=Ve(un);if(N=arguments,B=this,re=un,Hi){if(ee===e)return Ue(re);if(ve)return xv(ee),ee=ka(gt,d),Oe(re)}return ee===e&&(ee=ka(gt,d)),Q}return yi.cancel=vi,yi.flush=Qn,yi}var mR=ct(function(r,d){return ev(r,1,d)}),vR=ct(function(r,d,C){return ev(r,Ei(d)||0,C)});function yR(r){return mr(r,I)}function xc(r,d){if(typeof r!="function"||d!=null&&typeof d!="function")throw new An(v);var C=function(){var N=arguments,B=d?d.apply(this,N):N[0],U=C.cache;if(U.has(B))return U.get(B);var Q=r.apply(this,N);return C.cache=U.set(B,Q)||U,Q};return C.cache=new(xc.Cache||fr),C}xc.Cache=fr;function _c(r){if(typeof r!="function")throw new An(v);return function(){var d=arguments;switch(d.length){case 0:return!r.call(this);case 1:return!r.call(this,d[0]);case 2:return!r.call(this,d[0],d[1]);case 3:return!r.call(this,d[0],d[1],d[2])}return!r.apply(this,d)}}function wR(r){return ay(2,r)}var bR=sM(function(r,d){d=d.length==1&&Xe(d[0])?Ht(d[0],jn(je())):Ht(Ln(d,1),jn(je()));var C=d.length;return ct(function(N){for(var B=-1,U=Wn(N.length,C);++B<U;)N[B]=d[B].call(this,N[B]);return Wt(r,this,N)})}),Md=ct(function(r,d){var C=_e(d,ps(Md));return mr(r,k,e,d,C)}),dy=ct(function(r,d){var C=_e(d,ps(dy));return mr(r,b,e,d,C)}),xR=vr(function(r,d){return mr(r,E,e,e,e,d)});function _R(r,d){if(typeof r!="function")throw new An(v);return d=d===e?d:rt(d),ct(r,d)}function kR(r,d){if(typeof r!="function")throw new An(v);return d=d==null?0:Tn(rt(d),0),ct(function(C){var N=C[d],B=qr(C,0,d);return N&&zn(B,N),Wt(r,this,B)})}function $R(r,d,C){var N=!0,B=!0;if(typeof r!="function")throw new An(v);return Qt(C)&&(N="leading"in C?!!C.leading:N,B="trailing"in C?!!C.trailing:B),hy(r,d,{leading:N,maxWait:d,trailing:B})}function SR(r){return sy(r,1)}function CR(r,d){return Md(pd(d),r)}function AR(){if(!arguments.length)return[];var r=arguments[0];return Xe(r)?r:[r]}function TR(r){return Ai(r,c)}function MR(r,d){return d=typeof d=="function"?d:e,Ai(r,c,d)}function ER(r){return Ai(r,l|c)}function RR(r,d){return d=typeof d=="function"?d:e,Ai(r,l|c,d)}function LR(r,d){return d==null||X0(r,d,Rn(d))}function Pi(r,d){return r===d||r!==r&&d!==d}var IR=fc(td),OR=fc(function(r,d){return r>=d}),Ao=ov(function(){return arguments}())?ov:function(r){return nn(r)&&Et.call(r,"callee")&&!V0.call(r,"callee")},Xe=se.isArray,NR=Pl?jn(Pl):WT;function si(r){return r!=null&&kc(r.length)&&!wr(r)}function cn(r){return nn(r)&&si(r)}function DR(r){return r===!0||r===!1||nn(r)&&Yn(r)==me}var Gr=QA||Bd,FR=$i?jn($i):UT;function PR(r){return nn(r)&&r.nodeType===1&&!$a(r)}function HR(r){if(r==null)return!0;if(si(r)&&(Xe(r)||typeof r=="string"||typeof r.splice=="function"||Gr(r)||fs(r)||Ao(r)))return!r.length;var d=Un(r);if(d==ut||d==Xt)return!r.size;if(_a(r))return!rd(r).length;for(var C in r)if(Et.call(r,C))return!1;return!0}function BR(r,d){return wa(r,d)}function zR(r,d,C){C=typeof C=="function"?C:e;var N=C?C(r,d):e;return N===e?wa(r,d,e,C):!!N}function Ed(r){if(!nn(r))return!1;var d=Yn(r);return d==ke||d==fe||typeof r.message=="string"&&typeof r.name=="string"&&!$a(r)}function jR(r){return typeof r=="number"&&G0(r)}function wr(r){if(!Qt(r))return!1;var d=Yn(r);return d==ot||d==Ft||d==ae||d==qi}function py(r){return typeof r=="number"&&r==rt(r)}function kc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=H}function Qt(r){var d=typeof r;return r!=null&&(d=="object"||d=="function")}function nn(r){return r!=null&&typeof r=="object"}var fy=Ni?jn(Ni):qT;function WR(r,d){return r===d||id(r,d,bd(d))}function UR(r,d,C){return C=typeof C=="function"?C:e,id(r,d,bd(d),C)}function VR(r){return gy(r)&&r!=+r}function qR(r){if(MM(r))throw new Fe(f);return sv(r)}function GR(r){return r===null}function YR(r){return r==null}function gy(r){return typeof r=="number"||nn(r)&&Yn(r)==ft}function $a(r){if(!nn(r)||Yn(r)!=It)return!1;var d=Ql(r);if(d===null)return!0;var C=Et.call(d,"constructor")&&d.constructor;return typeof C=="function"&&C instanceof C&&ql.call(C)==UA}var Rd=Xi?jn(Xi):GT;function KR(r){return py(r)&&r>=-H&&r<=H}var my=hr?jn(hr):YT;function $c(r){return typeof r=="string"||!Xe(r)&&nn(r)&&Yn(r)==Pe}function mi(r){return typeof r=="symbol"||nn(r)&&Yn(r)==ze}var fs=Hl?jn(Hl):KT;function QR(r){return r===e}function ZR(r){return nn(r)&&Un(r)==We}function JR(r){return nn(r)&&Yn(r)==ce}var XR=fc(od),eL=fc(function(r,d){return r<=d});function vy(r){if(!r)return[];if(si(r))return $c(r)?Ge(r):oi(r);if(ha&&r[ha])return de(r[ha]());var d=Un(r),C=d==ut?we:d==Xt?Ce:gs;return C(r)}function br(r){if(!r)return r===0?r:0;if(r=Ei(r),r===F||r===-F){var d=r<0?-1:1;return d*W}return r===r?r:0}function rt(r){var d=br(r),C=d%1;return d===d?C?d-C:d:0}function yy(r){return r?ko(rt(r),0,q):0}function Ei(r){if(typeof r=="number")return r;if(mi(r))return V;if(Qt(r)){var d=typeof r.valueOf=="function"?r.valueOf():r;r=Qt(d)?d+"":d}if(typeof r!="string")return r===0?r:+r;r=Yt(r);var C=Ki.test(r);return C||fn.test(r)?Ot(r.slice(2),C?2:8):Cl.test(r)?V:+r}function wy(r){return tr(r,ai(r))}function tL(r){return r?ko(rt(r),-H,H):r===0?r:0}function At(r){return r==null?"":gi(r)}var nL=hs(function(r,d){if(_a(d)||si(d)){tr(d,Rn(d),r);return}for(var C in d)Et.call(d,C)&&ma(r,C,d[C])}),by=hs(function(r,d){tr(d,ai(d),r)}),Sc=hs(function(r,d,C,N){tr(d,ai(d),r,N)}),iL=hs(function(r,d,C,N){tr(d,Rn(d),r,N)}),rL=vr(Jh);function oL(r,d){var C=us(r);return d==null?C:J0(C,d)}var sL=ct(function(r,d){r=Je(r);var C=-1,N=d.length,B=N>2?d[2]:e;for(B&&Kn(d[0],d[1],B)&&(N=1);++C<N;)for(var U=d[C],Q=ai(U),ee=-1,re=Q.length;++ee<re;){var pe=Q[ee],ge=r[pe];(ge===e||Pi(ge,as[pe])&&!Et.call(r,pe))&&(r[pe]=U[pe])}return r}),aL=ct(function(r){return r.push(e,Fv),Wt(xy,e,r)});function lL(r,d){return oa(r,je(d,3),er)}function cL(r,d){return oa(r,je(d,3),ed)}function uL(r,d){return r==null?r:Xh(r,je(d,3),ai)}function hL(r,d){return r==null?r:iv(r,je(d,3),ai)}function dL(r,d){return r&&er(r,je(d,3))}function pL(r,d){return r&&ed(r,je(d,3))}function fL(r){return r==null?[]:sc(r,Rn(r))}function gL(r){return r==null?[]:sc(r,ai(r))}function Ld(r,d,C){var N=r==null?e:$o(r,d);return N===e?C:N}function mL(r,d){return r!=null&&Bv(r,d,HT)}function Id(r,d){return r!=null&&Bv(r,d,BT)}var vL=Lv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Gl.call(d)),r[d]=C},Nd(li)),yL=Lv(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Gl.call(d)),Et.call(r,d)?r[d].push(C):r[d]=[C]},je),wL=ct(ya);function Rn(r){return si(r)?Q0(r):rd(r)}function ai(r){return si(r)?Q0(r,!0):QT(r)}function bL(r,d){var C={};return d=je(d,3),er(r,function(N,B,U){gr(C,d(N,B,U),N)}),C}function xL(r,d){var C={};return d=je(d,3),er(r,function(N,B,U){gr(C,B,d(N,B,U))}),C}var _L=hs(function(r,d,C){ac(r,d,C)}),xy=hs(function(r,d,C,N){ac(r,d,C,N)}),kL=vr(function(r,d){var C={};if(r==null)return C;var N=!1;d=Ht(d,function(U){return U=Vr(U,r),N||(N=U.length>1),U}),tr(r,yd(r),C),N&&(C=Ai(C,l|s|c,vM));for(var B=d.length;B--;)ud(C,d[B]);return C});function $L(r,d){return _y(r,_c(je(d)))}var SL=vr(function(r,d){return r==null?{}:JT(r,d)});function _y(r,d){if(r==null)return{};var C=Ht(yd(r),function(N){return[N]});return d=je(d),pv(r,C,function(N,B){return d(N,B[0])})}function CL(r,d,C){d=Vr(d,r);var N=-1,B=d.length;for(B||(B=1,r=e);++N<B;){var U=r==null?e:r[nr(d[N])];U===e&&(N=B,U=C),r=wr(U)?U.call(r):U}return r}function AL(r,d,C){return r==null?r:ba(r,d,C)}function TL(r,d,C,N){return N=typeof N=="function"?N:e,r==null?r:ba(r,d,C,N)}var ky=Nv(Rn),$y=Nv(ai);function ML(r,d,C){var N=Xe(r),B=N||Gr(r)||fs(r);if(d=je(d,4),C==null){var U=r&&r.constructor;B?C=N?new U:[]:Qt(r)?C=wr(U)?us(Ql(r)):{}:C={}}return(B?qn:er)(r,function(Q,ee,re){return d(C,Q,ee,re)}),C}function EL(r,d){return r==null?!0:ud(r,d)}function RL(r,d,C){return r==null?r:yv(r,d,pd(C))}function LL(r,d,C,N){return N=typeof N=="function"?N:e,r==null?r:yv(r,d,pd(C),N)}function gs(r){return r==null?[]:wo(r,Rn(r))}function IL(r){return r==null?[]:wo(r,ai(r))}function OL(r,d,C){return C===e&&(C=d,d=e),C!==e&&(C=Ei(C),C=C===C?C:0),d!==e&&(d=Ei(d),d=d===d?d:0),ko(Ei(r),d,C)}function NL(r,d,C){return d=br(d),C===e?(C=d,d=0):C=br(C),r=Ei(r),zT(r,d,C)}function DL(r,d,C){if(C&&typeof C!="boolean"&&Kn(r,d,C)&&(d=C=e),C===e&&(typeof d=="boolean"?(C=d,d=e):typeof r=="boolean"&&(C=r,r=e)),r===e&&d===e?(r=0,d=1):(r=br(r),d===e?(d=r,r=0):d=br(d)),r>d){var N=r;r=d,d=N}if(C||r%1||d%1){var B=Y0();return Wn(r+B*(d-r+vn("1e-"+((B+"").length-1))),d)}return ad(r,d)}var FL=ds(function(r,d,C){return d=d.toLowerCase(),r+(C?Sy(d):d)});function Sy(r){return Od(At(r).toLowerCase())}function Cy(r){return r=At(r),r&&r.replace(Yo,P).replace(Dr,"")}function PL(r,d,C){r=At(r),d=gi(d);var N=r.length;C=C===e?N:ko(rt(C),0,N);var B=C;return C-=d.length,C>=0&&r.slice(C,B)==d}function HL(r){return r=At(r),r&&Ph.test(r)?r.replace(kl,z):r}function BL(r){return r=At(r),r&&Tr.test(r)?r.replace(Yi,"\\$&"):r}var zL=ds(function(r,d,C){return r+(C?"-":"")+d.toLowerCase()}),jL=ds(function(r,d,C){return r+(C?" ":"")+d.toLowerCase()}),WL=Mv("toLowerCase");function UL(r,d,C){r=At(r),d=rt(d);var N=d?it(r):0;if(!d||N>=d)return r;var B=(d-N)/2;return pc(ec(B),C)+r+pc(Xl(B),C)}function VL(r,d,C){r=At(r),d=rt(d);var N=d?it(r):0;return d&&N<d?r+pc(d-N,C):r}function qL(r,d,C){r=At(r),d=rt(d);var N=d?it(r):0;return d&&N<d?pc(d-N,C)+r:r}function GL(r,d,C){return C||d==null?d=0:d&&(d=+d),eT(At(r).replace(Hn,""),d||0)}function YL(r,d,C){return(C?Kn(r,d,C):d===e)?d=1:d=rt(d),ld(At(r),d)}function KL(){var r=arguments,d=At(r[0]);return r.length<3?d:d.replace(r[1],r[2])}var QL=ds(function(r,d,C){return r+(C?"_":"")+d.toLowerCase()});function ZL(r,d,C){return C&&typeof C!="number"&&Kn(r,d,C)&&(d=C=e),C=C===e?q:C>>>0,C?(r=At(r),r&&(typeof d=="string"||d!=null&&!Rd(d))&&(d=gi(d),!d&&te(r))?qr(Ge(r),0,C):r.split(d,C)):[]}var JL=ds(function(r,d,C){return r+(C?" ":"")+Od(d)});function XL(r,d,C){return r=At(r),C=C==null?0:ko(rt(C),0,r.length),d=gi(d),r.slice(C,C+d.length)==d}function eI(r,d,C){var N=j.templateSettings;C&&Kn(r,d,C)&&(d=e),r=At(r),d=Sc({},d,N,Dv);var B=Sc({},d.imports,N.imports,Dv),U=Rn(B),Q=wo(B,U),ee,re,pe=0,ge=d.interpolate||Bn,ve="__p += '",Ae=Cn((d.escape||Bn).source+"|"+ge.source+"|"+(ge===He?Wh:Bn).source+"|"+(d.evaluate||Bn).source+"|$","g"),Oe="//# sourceURL="+(Et.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Dl+"]")+`
1390
- `;r.replace(Ae,function(Ve,gt,wt,vi,Qn,yi){return wt||(wt=vi),ve+=r.slice(pe,yi).replace(uo,Y),gt&&(ee=!0,ve+=`' +
1389
+ `)}function TM(r){return Xe(r)||Ao(r)||!!(Y0&&r&&r[Y0])}function yr(r,d){var C=typeof r;return d=d??H,!!d&&(C=="number"||C!="symbol"&&gn.test(r))&&r>-1&&r%1==0&&r<d}function Zn(r,d,C){if(!Qt(C))return!1;var N=typeof d;return(N=="number"?si(C)&&yr(d,C.length):N=="string"&&d in C)?Pi(C[d],r):!1}function _d(r,d){if(Xe(r))return!1;var C=typeof r;return C=="number"||C=="symbol"||C=="boolean"||r==null||mi(r)?!0:Mn.test(r)||!ar.test(r)||d!=null&&r in Je(d)}function MM(r){var d=typeof r;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?r!=="__proto__":r===null}function kd(r){var d=gc(r),C=j[d];if(typeof C!="function"||!(d in yt.prototype))return!1;if(r===C)return!0;var N=wd(C);return!!N&&r===N[0]}function EM(r){return!!U0&&U0 in r}var RM=Vl?wr:zd;function _a(r){var d=r&&r.constructor,C=typeof d=="function"&&d.prototype||as;return r===C}function Uv(r){return r===r&&!Qt(r)}function Vv(r,d){return function(C){return C==null?!1:C[r]===d&&(d!==e||r in Je(C))}}function LM(r){var d=xc(r,function(N){return C.size===g&&C.clear(),N}),C=d.cache;return d}function IM(r,d){var C=r[1],N=d[1],z=C|N,U=z<(p|y|T),Q=N==T&&C==R||N==T&&C==E&&r[7].length<=d[8]||N==(T|E)&&d[7].length<=d[8]&&C==R;if(!(U||Q))return r;N&p&&(r[2]=d[2],z|=C&p?0:x);var ee=d[3];if(ee){var re=r[3];r[3]=re?Av(re,ee,d[4]):ee,r[4]=re?_e(r[3],a):d[4]}return ee=d[5],ee&&(re=r[5],r[5]=re?Tv(re,ee,d[6]):ee,r[6]=re?_e(r[5],a):d[6]),ee=d[7],ee&&(r[7]=ee),N&T&&(r[8]=r[8]==null?d[8]:Wn(r[8],d[8])),r[9]==null&&(r[9]=d[9]),r[0]=d[0],r[1]=z,r}function OM(r){var d=[];if(r!=null)for(var C in Je(r))d.push(C);return d}function NM(r){return Gl.call(r)}function qv(r,d,C){return d=Tn(d===e?r.length-1:d,0),function(){for(var N=arguments,z=-1,U=Tn(N.length-d,0),Q=se(U);++z<U;)Q[z]=N[d+z];z=-1;for(var ee=se(d+1);++z<d;)ee[z]=N[z];return ee[d]=C(Q),Wt(r,this,ee)}}function Gv(r,d){return d.length<2?r:$o(r,Ti(d,0,-1))}function DM(r,d){for(var C=r.length,N=Wn(d.length,C),z=oi(r);N--;){var U=d[N];r[N]=yr(U,C)?z[U]:e}return r}function $d(r,d){if(!(d==="constructor"&&typeof r[d]=="function")&&d!="__proto__")return r[d]}var Yv=Qv(vv),ka=ZA||function(r,d){return Sn.setTimeout(r,d)},Sd=Qv(oM);function Kv(r,d,C){var N=d+"";return Sd(r,AM(N,FM($M(N),C)))}function Qv(r){var d=0,C=0;return function(){var N=tT(),z=_-(N-C);if(C=N,z>0){if(++d>=$)return arguments[0]}else d=0;return r.apply(e,arguments)}}function vc(r,d){var C=-1,N=r.length,z=N-1;for(d=d===e?N:d;++C<d;){var U=ad(C,z),Q=r[U];r[U]=r[C],r[C]=Q}return r.length=d,r}var Zv=LM(function(r){var d=[];return r.charCodeAt(0)===46&&d.push(""),r.replace(Gi,function(C,N,z,U){d.push(z?U.replace(lr,"$1"):N||C)}),d});function nr(r){if(typeof r=="string"||mi(r))return r;var d=r+"";return d=="0"&&1/r==-F?"-0":d}function Co(r){if(r!=null){try{return ql.call(r)}catch{}try{return r+""}catch{}}return""}function FM(r,d){return Yn(Z,function(C){var N="_."+C[0];d&C[1]&&!is(r,N)&&r.push(N)}),r.sort()}function Jv(r){if(r instanceof yt)return r.clone();var d=new Ci(r.__wrapped__,r.__chain__);return d.__actions__=oi(r.__actions__),d.__index__=r.__index__,d.__values__=r.__values__,d}function PM(r,d,C){(C?Zn(r,d,C):d===e)?d=1:d=Tn(rt(d),0);var N=r==null?0:r.length;if(!N||d<1)return[];for(var z=0,U=0,Q=se(Xl(N/d));z<N;)Q[U++]=Ti(r,z,z+=d);return Q}function HM(r){for(var d=-1,C=r==null?0:r.length,N=0,z=[];++d<C;){var U=r[d];U&&(z[N++]=U)}return z}function zM(){var r=arguments.length;if(!r)return[];for(var d=se(r-1),C=arguments[0],N=r;N--;)d[N-1]=arguments[N];return Bn(Xe(C)?oi(C):[C],Ln(d,1))}var BM=ut(function(r,d){return cn(r)?va(r,Ln(d,1,cn,!0)):[]}),jM=ut(function(r,d){var C=Mi(d);return cn(C)&&(C=e),cn(r)?va(r,Ln(d,1,cn,!0),je(C,2)):[]}),WM=ut(function(r,d){var C=Mi(d);return cn(C)&&(C=e),cn(r)?va(r,Ln(d,1,cn,!0),e,C):[]});function UM(r,d,C){var N=r==null?0:r.length;return N?(d=C||d===e?1:rt(d),Ti(r,d<0?0:d,N)):[]}function VM(r,d,C){var N=r==null?0:r.length;return N?(d=C||d===e?1:rt(d),d=N-d,Ti(r,0,d<0?0:d)):[]}function qM(r,d){return r&&r.length?cc(r,je(d,3),!0,!0):[]}function GM(r,d){return r&&r.length?cc(r,je(d,3),!0):[]}function YM(r,d,C,N){var z=r==null?0:r.length;return z?(C&&typeof C!="number"&&Zn(r,d,C)&&(C=0,N=z),zT(r,d,C,N)):[]}function Xv(r,d,C){var N=r==null?0:r.length;if(!N)return-1;var z=C==null?0:rt(C);return z<0&&(z=Tn(N+z,0)),yo(r,je(d,3),z)}function ey(r,d,C){var N=r==null?0:r.length;if(!N)return-1;var z=N-1;return C!==e&&(z=rt(C),z=C<0?Tn(N+z,0):Wn(z,N-1)),yo(r,je(d,3),z,!0)}function ty(r){var d=r==null?0:r.length;return d?Ln(r,1):[]}function KM(r){var d=r==null?0:r.length;return d?Ln(r,F):[]}function QM(r,d){var C=r==null?0:r.length;return C?(d=d===e?1:rt(d),Ln(r,d)):[]}function ZM(r){for(var d=-1,C=r==null?0:r.length,N={};++d<C;){var z=r[d];N[z[0]]=z[1]}return N}function ny(r){return r&&r.length?r[0]:e}function JM(r,d,C){var N=r==null?0:r.length;if(!N)return-1;var z=C==null?0:rt(C);return z<0&&(z=Tn(N+z,0)),dr(r,d,z)}function XM(r){var d=r==null?0:r.length;return d?Ti(r,0,-1):[]}var eE=ut(function(r){var d=Ht(r,dd);return d.length&&d[0]===r[0]?nd(d):[]}),tE=ut(function(r){var d=Mi(r),C=Ht(r,dd);return d===Mi(C)?d=e:C.pop(),C.length&&C[0]===r[0]?nd(C,je(d,2)):[]}),nE=ut(function(r){var d=Mi(r),C=Ht(r,dd);return d=typeof d=="function"?d:e,d&&C.pop(),C.length&&C[0]===r[0]?nd(C,e,d):[]});function iE(r,d){return r==null?"":XA.call(r,d)}function Mi(r){var d=r==null?0:r.length;return d?r[d-1]:e}function rE(r,d,C){var N=r==null?0:r.length;if(!N)return-1;var z=N;return C!==e&&(z=rt(C),z=z<0?Tn(N+z,0):Wn(z,N-1)),d===d?Mt(r,d,z):yo(r,sa,z,!0)}function oE(r,d){return r&&r.length?pv(r,rt(d)):e}var sE=ut(iy);function iy(r,d){return r&&r.length&&d&&d.length?sd(r,d):r}function aE(r,d,C){return r&&r.length&&d&&d.length?sd(r,d,je(C,2)):r}function lE(r,d,C){return r&&r.length&&d&&d.length?sd(r,d,e,C):r}var cE=vr(function(r,d){var C=r==null?0:r.length,N=Jh(r,d);return mv(r,Ht(d,function(z){return yr(z,C)?+z:z}).sort(Cv)),N});function uE(r,d){var C=[];if(!(r&&r.length))return C;var N=-1,z=[],U=r.length;for(d=je(d,3);++N<U;){var Q=r[N];d(Q,N,r)&&(C.push(Q),z.push(N))}return mv(r,z),C}function Cd(r){return r==null?r:iT.call(r)}function hE(r,d,C){var N=r==null?0:r.length;return N?(C&&typeof C!="number"&&Zn(r,d,C)?(d=0,C=N):(d=d==null?0:rt(d),C=C===e?N:rt(C)),Ti(r,d,C)):[]}function dE(r,d){return lc(r,d)}function pE(r,d,C){return cd(r,d,je(C,2))}function fE(r,d){var C=r==null?0:r.length;if(C){var N=lc(r,d);if(N<C&&Pi(r[N],d))return N}return-1}function gE(r,d){return lc(r,d,!0)}function mE(r,d,C){return cd(r,d,je(C,2),!0)}function vE(r,d){var C=r==null?0:r.length;if(C){var N=lc(r,d,!0)-1;if(Pi(r[N],d))return N}return-1}function yE(r){return r&&r.length?yv(r):[]}function wE(r,d){return r&&r.length?yv(r,je(d,2)):[]}function bE(r){var d=r==null?0:r.length;return d?Ti(r,1,d):[]}function xE(r,d,C){return r&&r.length?(d=C||d===e?1:rt(d),Ti(r,0,d<0?0:d)):[]}function _E(r,d,C){var N=r==null?0:r.length;return N?(d=C||d===e?1:rt(d),d=N-d,Ti(r,d<0?0:d,N)):[]}function kE(r,d){return r&&r.length?cc(r,je(d,3),!1,!0):[]}function $E(r,d){return r&&r.length?cc(r,je(d,3)):[]}var SE=ut(function(r){return Ur(Ln(r,1,cn,!0))}),CE=ut(function(r){var d=Mi(r);return cn(d)&&(d=e),Ur(Ln(r,1,cn,!0),je(d,2))}),AE=ut(function(r){var d=Mi(r);return d=typeof d=="function"?d:e,Ur(Ln(r,1,cn,!0),e,d)});function TE(r){return r&&r.length?Ur(r):[]}function ME(r,d){return r&&r.length?Ur(r,je(d,2)):[]}function EE(r,d){return d=typeof d=="function"?d:e,r&&r.length?Ur(r,e,d):[]}function Ad(r){if(!(r&&r.length))return[];var d=0;return r=ii(r,function(C){if(cn(C))return d=Tn(C.length,d),!0}),tn(d,function(C){return Ht(r,la(C))})}function ry(r,d){if(!(r&&r.length))return[];var C=Ad(r);return d==null?C:Ht(C,function(N){return Wt(d,e,N)})}var RE=ut(function(r,d){return cn(r)?va(r,d):[]}),LE=ut(function(r){return hd(ii(r,cn))}),IE=ut(function(r){var d=Mi(r);return cn(d)&&(d=e),hd(ii(r,cn),je(d,2))}),OE=ut(function(r){var d=Mi(r);return d=typeof d=="function"?d:e,hd(ii(r,cn),e,d)}),NE=ut(Ad);function DE(r,d){return _v(r||[],d||[],ma)}function FE(r,d){return _v(r||[],d||[],ba)}var PE=ut(function(r){var d=r.length,C=d>1?r[d-1]:e;return C=typeof C=="function"?(r.pop(),C):e,ry(r,C)});function oy(r){var d=j(r);return d.__chain__=!0,d}function HE(r,d){return d(r),r}function yc(r,d){return d(r)}var zE=vr(function(r){var d=r.length,C=d?r[0]:0,N=this.__wrapped__,z=function(U){return Jh(U,r)};return d>1||this.__actions__.length||!(N instanceof yt)||!yr(C)?this.thru(z):(N=N.slice(C,+C+(d?1:0)),N.__actions__.push({func:yc,args:[z],thisArg:e}),new Ci(N,this.__chain__).thru(function(U){return d&&!U.length&&U.push(e),U}))});function BE(){return oy(this)}function jE(){return new Ci(this.value(),this.__chain__)}function WE(){this.__values__===e&&(this.__values__=wy(this.value()));var r=this.__index__>=this.__values__.length,d=r?e:this.__values__[this.__index__++];return{done:r,value:d}}function UE(){return this}function VE(r){for(var d,C=this;C instanceof ic;){var N=Jv(C);N.__index__=0,N.__values__=e,d?z.__wrapped__=N:d=N;var z=N;C=C.__wrapped__}return z.__wrapped__=r,d}function qE(){var r=this.__wrapped__;if(r instanceof yt){var d=r;return this.__actions__.length&&(d=new yt(this)),d=d.reverse(),d.__actions__.push({func:yc,args:[Cd],thisArg:e}),new Ci(d,this.__chain__)}return this.thru(Cd)}function GE(){return xv(this.__wrapped__,this.__actions__)}var YE=uc(function(r,d,C){Et.call(r,C)?++r[C]:gr(r,C,1)});function KE(r,d,C){var N=Xe(r)?Hr:HT;return C&&Zn(r,d,C)&&(d=e),N(r,je(d,3))}function QE(r,d){var C=Xe(r)?ii:rv;return C(r,je(d,3))}var ZE=Lv(Xv),JE=Lv(ey);function XE(r,d){return Ln(wc(r,d),1)}function eR(r,d){return Ln(wc(r,d),F)}function tR(r,d,C){return C=C===e?1:rt(C),Ln(wc(r,d),C)}function sy(r,d){var C=Xe(r)?Yn:Wr;return C(r,je(d,3))}function ay(r,d){var C=Xe(r)?zl:iv;return C(r,je(d,3))}var nR=uc(function(r,d,C){Et.call(r,C)?r[C].push(d):gr(r,C,[d])});function iR(r,d,C,N){r=si(r)?r:gs(r),C=C&&!N?rt(C):0;var z=r.length;return C<0&&(C=Tn(z+C,0)),$c(r)?C<=z&&r.indexOf(d,C)>-1:!!z&&dr(r,d,C)>-1}var rR=ut(function(r,d,C){var N=-1,z=typeof d=="function",U=si(r)?se(r.length):[];return Wr(r,function(Q){U[++N]=z?Wt(d,Q,C):ya(Q,d,C)}),U}),oR=uc(function(r,d,C){gr(r,C,d)});function wc(r,d){var C=Xe(r)?Ht:uv;return C(r,je(d,3))}function sR(r,d,C,N){return r==null?[]:(Xe(d)||(d=d==null?[]:[d]),C=N?e:C,Xe(C)||(C=C==null?[]:[C]),fv(r,d,C))}var aR=uc(function(r,d,C){r[C?0:1].push(d)},function(){return[[],[]]});function lR(r,d,C){var N=Xe(r)?Si:ca,z=arguments.length<3;return N(r,je(d,4),C,z,Wr)}function cR(r,d,C){var N=Xe(r)?vo:ca,z=arguments.length<3;return N(r,je(d,4),C,z,iv)}function uR(r,d){var C=Xe(r)?ii:rv;return C(r,_c(je(d,3)))}function hR(r){var d=Xe(r)?X0:iM;return d(r)}function dR(r,d,C){(C?Zn(r,d,C):d===e)?d=1:d=rt(d);var N=Xe(r)?OT:rM;return N(r,d)}function pR(r){var d=Xe(r)?NT:sM;return d(r)}function fR(r){if(r==null)return 0;if(si(r))return $c(r)?it(r):r.length;var d=Un(r);return d==ht||d==Xt?r.size:rd(r).length}function gR(r,d,C){var N=Xe(r)?rs:aM;return C&&Zn(r,d,C)&&(d=e),N(r,je(d,3))}var mR=ut(function(r,d){if(r==null)return[];var C=d.length;return C>1&&Zn(r,d[0],d[1])?d=[]:C>2&&Zn(d[0],d[1],d[2])&&(d=[d[0]]),fv(r,Ln(d,1),[])}),bc=QA||function(){return Sn.Date.now()};function vR(r,d){if(typeof d!="function")throw new An(v);return r=rt(r),function(){if(--r<1)return d.apply(this,arguments)}}function ly(r,d,C){return d=C?e:d,d=r&&d==null?r.length:d,mr(r,T,e,e,e,e,d)}function cy(r,d){var C;if(typeof d!="function")throw new An(v);return r=rt(r),function(){return--r>0&&(C=d.apply(this,arguments)),r<=1&&(d=e),C}}var Td=ut(function(r,d,C){var N=p;if(C.length){var z=_e(C,ps(Td));N|=k}return mr(r,N,d,C,z)}),uy=ut(function(r,d,C){var N=p|y;if(C.length){var z=_e(C,ps(uy));N|=k}return mr(d,N,r,C,z)});function hy(r,d,C){d=C?e:d;var N=mr(r,R,e,e,e,e,e,d);return N.placeholder=hy.placeholder,N}function dy(r,d,C){d=C?e:d;var N=mr(r,A,e,e,e,e,e,d);return N.placeholder=dy.placeholder,N}function py(r,d,C){var N,z,U,Q,ee,re,pe=0,ge=!1,ve=!1,Ae=!0;if(typeof r!="function")throw new An(v);d=Ei(d)||0,Qt(C)&&(ge=!!C.leading,ve="maxWait"in C,U=ve?Tn(Ei(C.maxWait)||0,d):U,Ae="trailing"in C?!!C.trailing:Ae);function Oe(un){var Hi=N,xr=z;return N=z=e,pe=un,Q=r.apply(xr,Hi),Q}function Ue(un){return pe=un,ee=ka(gt,d),ge?Oe(un):Q}function st(un){var Hi=un-re,xr=un-pe,Ly=d-Hi;return ve?Wn(Ly,U-xr):Ly}function Ve(un){var Hi=un-re,xr=un-pe;return re===e||Hi>=d||Hi<0||ve&&xr>=U}function gt(){var un=bc();if(Ve(un))return wt(un);ee=ka(gt,st(un))}function wt(un){return ee=e,Ae&&N?Oe(un):(N=z=e,Q)}function vi(){ee!==e&&kv(ee),pe=0,N=re=z=ee=e}function Jn(){return ee===e?Q:wt(bc())}function yi(){var un=bc(),Hi=Ve(un);if(N=arguments,z=this,re=un,Hi){if(ee===e)return Ue(re);if(ve)return kv(ee),ee=ka(gt,d),Oe(re)}return ee===e&&(ee=ka(gt,d)),Q}return yi.cancel=vi,yi.flush=Jn,yi}var yR=ut(function(r,d){return nv(r,1,d)}),wR=ut(function(r,d,C){return nv(r,Ei(d)||0,C)});function bR(r){return mr(r,I)}function xc(r,d){if(typeof r!="function"||d!=null&&typeof d!="function")throw new An(v);var C=function(){var N=arguments,z=d?d.apply(this,N):N[0],U=C.cache;if(U.has(z))return U.get(z);var Q=r.apply(this,N);return C.cache=U.set(z,Q)||U,Q};return C.cache=new(xc.Cache||fr),C}xc.Cache=fr;function _c(r){if(typeof r!="function")throw new An(v);return function(){var d=arguments;switch(d.length){case 0:return!r.call(this);case 1:return!r.call(this,d[0]);case 2:return!r.call(this,d[0],d[1]);case 3:return!r.call(this,d[0],d[1],d[2])}return!r.apply(this,d)}}function xR(r){return cy(2,r)}var _R=lM(function(r,d){d=d.length==1&&Xe(d[0])?Ht(d[0],jn(je())):Ht(Ln(d,1),jn(je()));var C=d.length;return ut(function(N){for(var z=-1,U=Wn(N.length,C);++z<U;)N[z]=d[z].call(this,N[z]);return Wt(r,this,N)})}),Md=ut(function(r,d){var C=_e(d,ps(Md));return mr(r,k,e,d,C)}),fy=ut(function(r,d){var C=_e(d,ps(fy));return mr(r,b,e,d,C)}),kR=vr(function(r,d){return mr(r,E,e,e,e,d)});function $R(r,d){if(typeof r!="function")throw new An(v);return d=d===e?d:rt(d),ut(r,d)}function SR(r,d){if(typeof r!="function")throw new An(v);return d=d==null?0:Tn(rt(d),0),ut(function(C){var N=C[d],z=qr(C,0,d);return N&&Bn(z,N),Wt(r,this,z)})}function CR(r,d,C){var N=!0,z=!0;if(typeof r!="function")throw new An(v);return Qt(C)&&(N="leading"in C?!!C.leading:N,z="trailing"in C?!!C.trailing:z),py(r,d,{leading:N,maxWait:d,trailing:z})}function AR(r){return ly(r,1)}function TR(r,d){return Md(pd(d),r)}function MR(){if(!arguments.length)return[];var r=arguments[0];return Xe(r)?r:[r]}function ER(r){return Ai(r,c)}function RR(r,d){return d=typeof d=="function"?d:e,Ai(r,c,d)}function LR(r){return Ai(r,l|c)}function IR(r,d){return d=typeof d=="function"?d:e,Ai(r,l|c,d)}function OR(r,d){return d==null||tv(r,d,Rn(d))}function Pi(r,d){return r===d||r!==r&&d!==d}var NR=fc(td),DR=fc(function(r,d){return r>=d}),Ao=av(function(){return arguments}())?av:function(r){return nn(r)&&Et.call(r,"callee")&&!G0.call(r,"callee")},Xe=se.isArray,FR=Pl?jn(Pl):VT;function si(r){return r!=null&&kc(r.length)&&!wr(r)}function cn(r){return nn(r)&&si(r)}function PR(r){return r===!0||r===!1||nn(r)&&Qn(r)==me}var Gr=JA||zd,HR=$i?jn($i):qT;function zR(r){return nn(r)&&r.nodeType===1&&!$a(r)}function BR(r){if(r==null)return!0;if(si(r)&&(Xe(r)||typeof r=="string"||typeof r.splice=="function"||Gr(r)||fs(r)||Ao(r)))return!r.length;var d=Un(r);if(d==ht||d==Xt)return!r.size;if(_a(r))return!rd(r).length;for(var C in r)if(Et.call(r,C))return!1;return!0}function jR(r,d){return wa(r,d)}function WR(r,d,C){C=typeof C=="function"?C:e;var N=C?C(r,d):e;return N===e?wa(r,d,e,C):!!N}function Ed(r){if(!nn(r))return!1;var d=Qn(r);return d==ke||d==fe||typeof r.message=="string"&&typeof r.name=="string"&&!$a(r)}function UR(r){return typeof r=="number"&&K0(r)}function wr(r){if(!Qt(r))return!1;var d=Qn(r);return d==ot||d==Ft||d==ae||d==qi}function gy(r){return typeof r=="number"&&r==rt(r)}function kc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=H}function Qt(r){var d=typeof r;return r!=null&&(d=="object"||d=="function")}function nn(r){return r!=null&&typeof r=="object"}var my=Ni?jn(Ni):YT;function VR(r,d){return r===d||id(r,d,bd(d))}function qR(r,d,C){return C=typeof C=="function"?C:e,id(r,d,bd(d),C)}function GR(r){return vy(r)&&r!=+r}function YR(r){if(RM(r))throw new Fe(f);return lv(r)}function KR(r){return r===null}function QR(r){return r==null}function vy(r){return typeof r=="number"||nn(r)&&Qn(r)==ft}function $a(r){if(!nn(r)||Qn(r)!=It)return!1;var d=Ql(r);if(d===null)return!0;var C=Et.call(d,"constructor")&&d.constructor;return typeof C=="function"&&C instanceof C&&ql.call(C)==qA}var Rd=Xi?jn(Xi):KT;function ZR(r){return gy(r)&&r>=-H&&r<=H}var yy=hr?jn(hr):QT;function $c(r){return typeof r=="string"||!Xe(r)&&nn(r)&&Qn(r)==Pe}function mi(r){return typeof r=="symbol"||nn(r)&&Qn(r)==Be}var fs=Hl?jn(Hl):ZT;function JR(r){return r===e}function XR(r){return nn(r)&&Un(r)==We}function eL(r){return nn(r)&&Qn(r)==ce}var tL=fc(od),nL=fc(function(r,d){return r<=d});function wy(r){if(!r)return[];if(si(r))return $c(r)?Ge(r):oi(r);if(ha&&r[ha])return de(r[ha]());var d=Un(r),C=d==ht?we:d==Xt?Ce:gs;return C(r)}function br(r){if(!r)return r===0?r:0;if(r=Ei(r),r===F||r===-F){var d=r<0?-1:1;return d*W}return r===r?r:0}function rt(r){var d=br(r),C=d%1;return d===d?C?d-C:d:0}function by(r){return r?ko(rt(r),0,q):0}function Ei(r){if(typeof r=="number")return r;if(mi(r))return V;if(Qt(r)){var d=typeof r.valueOf=="function"?r.valueOf():r;r=Qt(d)?d+"":d}if(typeof r!="string")return r===0?r:+r;r=Yt(r);var C=Ki.test(r);return C||fn.test(r)?Ot(r.slice(2),C?2:8):Cl.test(r)?V:+r}function xy(r){return tr(r,ai(r))}function iL(r){return r?ko(rt(r),-H,H):r===0?r:0}function At(r){return r==null?"":gi(r)}var rL=hs(function(r,d){if(_a(d)||si(d)){tr(d,Rn(d),r);return}for(var C in d)Et.call(d,C)&&ma(r,C,d[C])}),_y=hs(function(r,d){tr(d,ai(d),r)}),Sc=hs(function(r,d,C,N){tr(d,ai(d),r,N)}),oL=hs(function(r,d,C,N){tr(d,Rn(d),r,N)}),sL=vr(Jh);function aL(r,d){var C=us(r);return d==null?C:ev(C,d)}var lL=ut(function(r,d){r=Je(r);var C=-1,N=d.length,z=N>2?d[2]:e;for(z&&Zn(d[0],d[1],z)&&(N=1);++C<N;)for(var U=d[C],Q=ai(U),ee=-1,re=Q.length;++ee<re;){var pe=Q[ee],ge=r[pe];(ge===e||Pi(ge,as[pe])&&!Et.call(r,pe))&&(r[pe]=U[pe])}return r}),cL=ut(function(r){return r.push(e,Hv),Wt(ky,e,r)});function uL(r,d){return oa(r,je(d,3),er)}function hL(r,d){return oa(r,je(d,3),ed)}function dL(r,d){return r==null?r:Xh(r,je(d,3),ai)}function pL(r,d){return r==null?r:ov(r,je(d,3),ai)}function fL(r,d){return r&&er(r,je(d,3))}function gL(r,d){return r&&ed(r,je(d,3))}function mL(r){return r==null?[]:sc(r,Rn(r))}function vL(r){return r==null?[]:sc(r,ai(r))}function Ld(r,d,C){var N=r==null?e:$o(r,d);return N===e?C:N}function yL(r,d){return r!=null&&jv(r,d,BT)}function Id(r,d){return r!=null&&jv(r,d,jT)}var wL=Ov(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Gl.call(d)),r[d]=C},Nd(li)),bL=Ov(function(r,d,C){d!=null&&typeof d.toString!="function"&&(d=Gl.call(d)),Et.call(r,d)?r[d].push(C):r[d]=[C]},je),xL=ut(ya);function Rn(r){return si(r)?J0(r):rd(r)}function ai(r){return si(r)?J0(r,!0):JT(r)}function _L(r,d){var C={};return d=je(d,3),er(r,function(N,z,U){gr(C,d(N,z,U),N)}),C}function kL(r,d){var C={};return d=je(d,3),er(r,function(N,z,U){gr(C,z,d(N,z,U))}),C}var $L=hs(function(r,d,C){ac(r,d,C)}),ky=hs(function(r,d,C,N){ac(r,d,C,N)}),SL=vr(function(r,d){var C={};if(r==null)return C;var N=!1;d=Ht(d,function(U){return U=Vr(U,r),N||(N=U.length>1),U}),tr(r,yd(r),C),N&&(C=Ai(C,l|s|c,wM));for(var z=d.length;z--;)ud(C,d[z]);return C});function CL(r,d){return $y(r,_c(je(d)))}var AL=vr(function(r,d){return r==null?{}:eM(r,d)});function $y(r,d){if(r==null)return{};var C=Ht(yd(r),function(N){return[N]});return d=je(d),gv(r,C,function(N,z){return d(N,z[0])})}function TL(r,d,C){d=Vr(d,r);var N=-1,z=d.length;for(z||(z=1,r=e);++N<z;){var U=r==null?e:r[nr(d[N])];U===e&&(N=z,U=C),r=wr(U)?U.call(r):U}return r}function ML(r,d,C){return r==null?r:ba(r,d,C)}function EL(r,d,C,N){return N=typeof N=="function"?N:e,r==null?r:ba(r,d,C,N)}var Sy=Fv(Rn),Cy=Fv(ai);function RL(r,d,C){var N=Xe(r),z=N||Gr(r)||fs(r);if(d=je(d,4),C==null){var U=r&&r.constructor;z?C=N?new U:[]:Qt(r)?C=wr(U)?us(Ql(r)):{}:C={}}return(z?Yn:er)(r,function(Q,ee,re){return d(C,Q,ee,re)}),C}function LL(r,d){return r==null?!0:ud(r,d)}function IL(r,d,C){return r==null?r:bv(r,d,pd(C))}function OL(r,d,C,N){return N=typeof N=="function"?N:e,r==null?r:bv(r,d,pd(C),N)}function gs(r){return r==null?[]:wo(r,Rn(r))}function NL(r){return r==null?[]:wo(r,ai(r))}function DL(r,d,C){return C===e&&(C=d,d=e),C!==e&&(C=Ei(C),C=C===C?C:0),d!==e&&(d=Ei(d),d=d===d?d:0),ko(Ei(r),d,C)}function FL(r,d,C){return d=br(d),C===e?(C=d,d=0):C=br(C),r=Ei(r),WT(r,d,C)}function PL(r,d,C){if(C&&typeof C!="boolean"&&Zn(r,d,C)&&(d=C=e),C===e&&(typeof d=="boolean"?(C=d,d=e):typeof r=="boolean"&&(C=r,r=e)),r===e&&d===e?(r=0,d=1):(r=br(r),d===e?(d=r,r=0):d=br(d)),r>d){var N=r;r=d,d=N}if(C||r%1||d%1){var z=Q0();return Wn(r+z*(d-r+vn("1e-"+((z+"").length-1))),d)}return ad(r,d)}var HL=ds(function(r,d,C){return d=d.toLowerCase(),r+(C?Ay(d):d)});function Ay(r){return Od(At(r).toLowerCase())}function Ty(r){return r=At(r),r&&r.replace(Yo,P).replace(Dr,"")}function zL(r,d,C){r=At(r),d=gi(d);var N=r.length;C=C===e?N:ko(rt(C),0,N);var z=C;return C-=d.length,C>=0&&r.slice(C,z)==d}function BL(r){return r=At(r),r&&Ph.test(r)?r.replace(kl,B):r}function jL(r){return r=At(r),r&&Tr.test(r)?r.replace(Yi,"\\$&"):r}var WL=ds(function(r,d,C){return r+(C?"-":"")+d.toLowerCase()}),UL=ds(function(r,d,C){return r+(C?" ":"")+d.toLowerCase()}),VL=Rv("toLowerCase");function qL(r,d,C){r=At(r),d=rt(d);var N=d?it(r):0;if(!d||N>=d)return r;var z=(d-N)/2;return pc(ec(z),C)+r+pc(Xl(z),C)}function GL(r,d,C){r=At(r),d=rt(d);var N=d?it(r):0;return d&&N<d?r+pc(d-N,C):r}function YL(r,d,C){r=At(r),d=rt(d);var N=d?it(r):0;return d&&N<d?pc(d-N,C)+r:r}function KL(r,d,C){return C||d==null?d=0:d&&(d=+d),nT(At(r).replace(Hn,""),d||0)}function QL(r,d,C){return(C?Zn(r,d,C):d===e)?d=1:d=rt(d),ld(At(r),d)}function ZL(){var r=arguments,d=At(r[0]);return r.length<3?d:d.replace(r[1],r[2])}var JL=ds(function(r,d,C){return r+(C?"_":"")+d.toLowerCase()});function XL(r,d,C){return C&&typeof C!="number"&&Zn(r,d,C)&&(d=C=e),C=C===e?q:C>>>0,C?(r=At(r),r&&(typeof d=="string"||d!=null&&!Rd(d))&&(d=gi(d),!d&&te(r))?qr(Ge(r),0,C):r.split(d,C)):[]}var eI=ds(function(r,d,C){return r+(C?" ":"")+Od(d)});function tI(r,d,C){return r=At(r),C=C==null?0:ko(rt(C),0,r.length),d=gi(d),r.slice(C,C+d.length)==d}function nI(r,d,C){var N=j.templateSettings;C&&Zn(r,d,C)&&(d=e),r=At(r),d=Sc({},d,N,Pv);var z=Sc({},d.imports,N.imports,Pv),U=Rn(z),Q=wo(z,U),ee,re,pe=0,ge=d.interpolate||zn,ve="__p += '",Ae=Cn((d.escape||zn).source+"|"+ge.source+"|"+(ge===He?Wh:zn).source+"|"+(d.evaluate||zn).source+"|$","g"),Oe="//# sourceURL="+(Et.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Dl+"]")+`
1390
+ `;r.replace(Ae,function(Ve,gt,wt,vi,Jn,yi){return wt||(wt=vi),ve+=r.slice(pe,yi).replace(uo,Y),gt&&(ee=!0,ve+=`' +
1391
1391
  __e(`+gt+`) +
1392
- '`),Qn&&(re=!0,ve+=`';
1393
- `+Qn+`;
1392
+ '`),Jn&&(re=!0,ve+=`';
1393
+ `+Jn+`;
1394
1394
  __p += '`),wt&&(ve+=`' +
1395
1395
  ((__t = (`+wt+`)) == null ? '' : __t) +
1396
1396
  '`),pe=yi+Ve.length,Ve}),ve+=`';
1397
1397
  `;var Ue=Et.call(d,"variable")&&d.variable;if(!Ue)ve=`with (obj) {
1398
1398
  `+ve+`
1399
1399
  }
1400
- `;else if(jh.test(Ue))throw new Fe(w);ve=(re?ve.replace(sr,""):ve).replace(ti,"$1").replace(Bs,"$1;"),ve="function("+(Ue||"obj")+`) {
1400
+ `;else if(jh.test(Ue))throw new Fe(w);ve=(re?ve.replace(sr,""):ve).replace(ti,"$1").replace(zs,"$1;"),ve="function("+(Ue||"obj")+`) {
1401
1401
  `+(Ue?"":`obj || (obj = {});
1402
1402
  `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(re?`, __j = Array.prototype.join;
1403
1403
  function print() { __p += __j.call(arguments, '') }
1404
1404
  `:`;
1405
1405
  `)+ve+`return __p
1406
- }`;var st=Ty(function(){return Qe(U,Oe+"return "+ve).apply(e,Q)});if(st.source=ve,Ed(st))throw st;return st}function tI(r){return At(r).toLowerCase()}function nI(r){return At(r).toUpperCase()}function iI(r,d,C){if(r=At(r),r&&(C||d===e))return Yt(r);if(!r||!(d=gi(d)))return r;var N=Ge(r),B=Ge(d),U=Wl(N,B),Q=Ul(N,B)+1;return qr(N,U,Q).join("")}function rI(r,d,C){if(r=At(r),r&&(C||d===e))return r.slice(0,Ze(r)+1);if(!r||!(d=gi(d)))return r;var N=Ge(r),B=Ul(N,Ge(d))+1;return qr(N,0,B).join("")}function oI(r,d,C){if(r=At(r),r&&(C||d===e))return r.replace(Hn,"");if(!r||!(d=gi(d)))return r;var N=Ge(r),B=Wl(N,Ge(d));return qr(N,B).join("")}function sI(r,d){var C=M,N=D;if(Qt(d)){var B="separator"in d?d.separator:B;C="length"in d?rt(d.length):C,N="omission"in d?gi(d.omission):N}r=At(r);var U=r.length;if(te(r)){var Q=Ge(r);U=Q.length}if(C>=U)return r;var ee=C-it(N);if(ee<1)return N;var re=Q?qr(Q,0,ee).join(""):r.slice(0,ee);if(B===e)return re+N;if(Q&&(ee+=re.length-ee),Rd(B)){if(r.slice(ee).search(B)){var pe,ge=re;for(B.global||(B=Cn(B.source,At(Rr.exec(B))+"g")),B.lastIndex=0;pe=B.exec(ge);)var ve=pe.index;re=re.slice(0,ve===e?ee:ve)}}else if(r.indexOf(gi(B),ee)!=ee){var Ae=re.lastIndexOf(B);Ae>-1&&(re=re.slice(0,Ae))}return re+N}function aI(r){return r=At(r),r&&Fh.test(r)?r.replace(zs,Le):r}var lI=ds(function(r,d,C){return r+(C?" ":"")+d.toUpperCase()}),Od=Mv("toUpperCase");function Ay(r,d,C){return r=At(r),d=C?e:d,d===e?oe(r)?Ut(r):os(r):r.match(d)||[]}var Ty=ct(function(r,d){try{return Wt(r,e,d)}catch(C){return Ed(C)?C:new Fe(C)}}),cI=vr(function(r,d){return qn(d,function(C){C=nr(C),gr(r,C,Td(r[C],r))}),r});function uI(r){var d=r==null?0:r.length,C=je();return r=d?Ht(r,function(N){if(typeof N[1]!="function")throw new An(v);return[C(N[0]),N[1]]}):[],ct(function(N){for(var B=-1;++B<d;){var U=r[B];if(Wt(U[0],this,N))return Wt(U[1],this,N)}})}function hI(r){return DT(Ai(r,l))}function Nd(r){return function(){return r}}function dI(r,d){return r==null||r!==r?d:r}var pI=Rv(),fI=Rv(!0);function li(r){return r}function Dd(r){return av(typeof r=="function"?r:Ai(r,l))}function gI(r){return cv(Ai(r,l))}function mI(r,d){return uv(r,Ai(d,l))}var vI=ct(function(r,d){return function(C){return ya(C,r,d)}}),yI=ct(function(r,d){return function(C){return ya(r,C,d)}});function Fd(r,d,C){var N=Rn(d),B=sc(d,N);C==null&&!(Qt(d)&&(B.length||!N.length))&&(C=d,d=r,r=this,B=sc(d,Rn(d)));var U=!(Qt(C)&&"chain"in C)||!!C.chain,Q=wr(r);return qn(B,function(ee){var re=d[ee];r[ee]=re,Q&&(r.prototype[ee]=function(){var pe=this.__chain__;if(U||pe){var ge=r(this.__wrapped__),ve=ge.__actions__=oi(this.__actions__);return ve.push({func:re,args:arguments,thisArg:r}),ge.__chain__=pe,ge}return re.apply(r,zn([this.value()],arguments))})}),r}function wI(){return Sn._===this&&(Sn._=VA),this}function Pd(){}function bI(r){return r=rt(r),ct(function(d){return hv(d,r)})}var xI=gd(Ht),_I=gd(Hr),kI=gd(rs);function My(r){return _d(r)?la(nr(r)):XT(r)}function $I(r){return function(d){return r==null?e:$o(r,d)}}var SI=Iv(),CI=Iv(!0);function Hd(){return[]}function Bd(){return!1}function AI(){return{}}function TI(){return""}function MI(){return!0}function EI(r,d){if(r=rt(r),r<1||r>H)return[];var C=q,N=Wn(r,q);d=je(d),r-=q;for(var B=tn(N,d);++C<r;)d(C);return B}function RI(r){return Xe(r)?Ht(r,nr):mi(r)?[r]:oi(Kv(At(r)))}function LI(r){var d=++WA;return At(r)+d}var II=dc(function(r,d){return r+d},0),OI=md("ceil"),NI=dc(function(r,d){return r/d},1),DI=md("floor");function FI(r){return r&&r.length?oc(r,li,td):e}function PI(r,d){return r&&r.length?oc(r,je(d,2),td):e}function HI(r){return aa(r,li)}function BI(r,d){return aa(r,je(d,2))}function zI(r){return r&&r.length?oc(r,li,od):e}function jI(r,d){return r&&r.length?oc(r,je(d,2),od):e}var WI=dc(function(r,d){return r*d},1),UI=md("round"),VI=dc(function(r,d){return r-d},0);function qI(r){return r&&r.length?zr(r,li):0}function GI(r,d){return r&&r.length?zr(r,je(d,2)):0}return j.after=gR,j.ary=sy,j.assign=nL,j.assignIn=by,j.assignInWith=Sc,j.assignWith=iL,j.at=rL,j.before=ay,j.bind=Td,j.bindAll=cI,j.bindKey=ly,j.castArray=AR,j.chain=iy,j.chunk=DM,j.compact=FM,j.concat=PM,j.cond=uI,j.conforms=hI,j.constant=Nd,j.countBy=qE,j.create=oL,j.curry=cy,j.curryRight=uy,j.debounce=hy,j.defaults=sL,j.defaultsDeep=aL,j.defer=mR,j.delay=vR,j.difference=HM,j.differenceBy=BM,j.differenceWith=zM,j.drop=jM,j.dropRight=WM,j.dropRightWhile=UM,j.dropWhile=VM,j.fill=qM,j.filter=YE,j.flatMap=ZE,j.flatMapDeep=JE,j.flatMapDepth=XE,j.flatten=Xv,j.flattenDeep=GM,j.flattenDepth=YM,j.flip=yR,j.flow=pI,j.flowRight=fI,j.fromPairs=KM,j.functions=fL,j.functionsIn=gL,j.groupBy=eR,j.initial=ZM,j.intersection=JM,j.intersectionBy=XM,j.intersectionWith=eE,j.invert=vL,j.invertBy=yL,j.invokeMap=nR,j.iteratee=Dd,j.keyBy=iR,j.keys=Rn,j.keysIn=ai,j.map=wc,j.mapKeys=bL,j.mapValues=xL,j.matches=gI,j.matchesProperty=mI,j.memoize=xc,j.merge=_L,j.mergeWith=xy,j.method=vI,j.methodOf=yI,j.mixin=Fd,j.negate=_c,j.nthArg=bI,j.omit=kL,j.omitBy=$L,j.once=wR,j.orderBy=rR,j.over=xI,j.overArgs=bR,j.overEvery=_I,j.overSome=kI,j.partial=Md,j.partialRight=dy,j.partition=oR,j.pick=SL,j.pickBy=_y,j.property=My,j.propertyOf=$I,j.pull=rE,j.pullAll=ty,j.pullAllBy=oE,j.pullAllWith=sE,j.pullAt=aE,j.range=SI,j.rangeRight=CI,j.rearg=xR,j.reject=lR,j.remove=lE,j.rest=_R,j.reverse=Cd,j.sampleSize=uR,j.set=AL,j.setWith=TL,j.shuffle=hR,j.slice=cE,j.sortBy=fR,j.sortedUniq=mE,j.sortedUniqBy=vE,j.split=ZL,j.spread=kR,j.tail=yE,j.take=wE,j.takeRight=bE,j.takeRightWhile=xE,j.takeWhile=_E,j.tap=FE,j.throttle=$R,j.thru=yc,j.toArray=vy,j.toPairs=ky,j.toPairsIn=$y,j.toPath=RI,j.toPlainObject=wy,j.transform=ML,j.unary=SR,j.union=kE,j.unionBy=$E,j.unionWith=SE,j.uniq=CE,j.uniqBy=AE,j.uniqWith=TE,j.unset=EL,j.unzip=Ad,j.unzipWith=ny,j.update=RL,j.updateWith=LL,j.values=gs,j.valuesIn=IL,j.without=ME,j.words=Ay,j.wrap=CR,j.xor=EE,j.xorBy=RE,j.xorWith=LE,j.zip=IE,j.zipObject=OE,j.zipObjectDeep=NE,j.zipWith=DE,j.entries=ky,j.entriesIn=$y,j.extend=by,j.extendWith=Sc,Fd(j,j),j.add=II,j.attempt=Ty,j.camelCase=FL,j.capitalize=Sy,j.ceil=OI,j.clamp=OL,j.clone=TR,j.cloneDeep=ER,j.cloneDeepWith=RR,j.cloneWith=MR,j.conformsTo=LR,j.deburr=Cy,j.defaultTo=dI,j.divide=NI,j.endsWith=PL,j.eq=Pi,j.escape=HL,j.escapeRegExp=BL,j.every=GE,j.find=KE,j.findIndex=Zv,j.findKey=lL,j.findLast=QE,j.findLastIndex=Jv,j.findLastKey=cL,j.floor=DI,j.forEach=ry,j.forEachRight=oy,j.forIn=uL,j.forInRight=hL,j.forOwn=dL,j.forOwnRight=pL,j.get=Ld,j.gt=IR,j.gte=OR,j.has=mL,j.hasIn=Id,j.head=ey,j.identity=li,j.includes=tR,j.indexOf=QM,j.inRange=NL,j.invoke=wL,j.isArguments=Ao,j.isArray=Xe,j.isArrayBuffer=NR,j.isArrayLike=si,j.isArrayLikeObject=cn,j.isBoolean=DR,j.isBuffer=Gr,j.isDate=FR,j.isElement=PR,j.isEmpty=HR,j.isEqual=BR,j.isEqualWith=zR,j.isError=Ed,j.isFinite=jR,j.isFunction=wr,j.isInteger=py,j.isLength=kc,j.isMap=fy,j.isMatch=WR,j.isMatchWith=UR,j.isNaN=VR,j.isNative=qR,j.isNil=YR,j.isNull=GR,j.isNumber=gy,j.isObject=Qt,j.isObjectLike=nn,j.isPlainObject=$a,j.isRegExp=Rd,j.isSafeInteger=KR,j.isSet=my,j.isString=$c,j.isSymbol=mi,j.isTypedArray=fs,j.isUndefined=QR,j.isWeakMap=ZR,j.isWeakSet=JR,j.join=tE,j.kebabCase=zL,j.last=Mi,j.lastIndexOf=nE,j.lowerCase=jL,j.lowerFirst=WL,j.lt=XR,j.lte=eL,j.max=FI,j.maxBy=PI,j.mean=HI,j.meanBy=BI,j.min=zI,j.minBy=jI,j.stubArray=Hd,j.stubFalse=Bd,j.stubObject=AI,j.stubString=TI,j.stubTrue=MI,j.multiply=WI,j.nth=iE,j.noConflict=wI,j.noop=Pd,j.now=bc,j.pad=UL,j.padEnd=VL,j.padStart=qL,j.parseInt=GL,j.random=DL,j.reduce=sR,j.reduceRight=aR,j.repeat=YL,j.replace=KL,j.result=CL,j.round=UI,j.runInContext=ne,j.sample=cR,j.size=dR,j.snakeCase=QL,j.some=pR,j.sortedIndex=uE,j.sortedIndexBy=hE,j.sortedIndexOf=dE,j.sortedLastIndex=pE,j.sortedLastIndexBy=fE,j.sortedLastIndexOf=gE,j.startCase=JL,j.startsWith=XL,j.subtract=VI,j.sum=qI,j.sumBy=GI,j.template=eI,j.times=EI,j.toFinite=br,j.toInteger=rt,j.toLength=yy,j.toLower=tI,j.toNumber=Ei,j.toSafeInteger=tL,j.toString=At,j.toUpper=nI,j.trim=iI,j.trimEnd=rI,j.trimStart=oI,j.truncate=sI,j.unescape=aI,j.uniqueId=LI,j.upperCase=lI,j.upperFirst=Od,j.each=ry,j.eachRight=oy,j.first=ey,Fd(j,function(){var r={};return er(j,function(d,C){Et.call(j.prototype,C)||(r[C]=d)}),r}(),{chain:!1}),j.VERSION=i,qn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){j[r].placeholder=j}),qn(["drop","take"],function(r,d){yt.prototype[r]=function(C){C=C===e?1:Tn(rt(C),0);var N=this.__filtered__&&!d?new yt(this):this.clone();return N.__filtered__?N.__takeCount__=Wn(C,N.__takeCount__):N.__views__.push({size:Wn(C,q),type:r+(N.__dir__<0?"Right":"")}),N},yt.prototype[r+"Right"]=function(C){return this.reverse()[r](C).reverse()}}),qn(["filter","map","takeWhile"],function(r,d){var C=d+1,N=C==S||C==O;yt.prototype[r]=function(B){var U=this.clone();return U.__iteratees__.push({iteratee:je(B,3),type:C}),U.__filtered__=U.__filtered__||N,U}}),qn(["head","last"],function(r,d){var C="take"+(d?"Right":"");yt.prototype[r]=function(){return this[C](1).value()[0]}}),qn(["initial","tail"],function(r,d){var C="drop"+(d?"":"Right");yt.prototype[r]=function(){return this.__filtered__?new yt(this):this[C](1)}}),yt.prototype.compact=function(){return this.filter(li)},yt.prototype.find=function(r){return this.filter(r).head()},yt.prototype.findLast=function(r){return this.reverse().find(r)},yt.prototype.invokeMap=ct(function(r,d){return typeof r=="function"?new yt(this):this.map(function(C){return ya(C,r,d)})}),yt.prototype.reject=function(r){return this.filter(_c(je(r)))},yt.prototype.slice=function(r,d){r=rt(r);var C=this;return C.__filtered__&&(r>0||d<0)?new yt(C):(r<0?C=C.takeRight(-r):r&&(C=C.drop(r)),d!==e&&(d=rt(d),C=d<0?C.dropRight(-d):C.take(d-r)),C)},yt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},yt.prototype.toArray=function(){return this.take(q)},er(yt.prototype,function(r,d){var C=/^(?:filter|find|map|reject)|While$/.test(d),N=/^(?:head|last)$/.test(d),B=j[N?"take"+(d=="last"?"Right":""):d],U=N||/^find/.test(d);B&&(j.prototype[d]=function(){var Q=this.__wrapped__,ee=N?[1]:arguments,re=Q instanceof yt,pe=ee[0],ge=re||Xe(Q),ve=function(gt){var wt=B.apply(j,zn([gt],ee));return N&&Ae?wt[0]:wt};ge&&C&&typeof pe=="function"&&pe.length!=1&&(re=ge=!1);var Ae=this.__chain__,Oe=!!this.__actions__.length,Ue=U&&!Ae,st=re&&!Oe;if(!U&&ge){Q=st?Q:new yt(this);var Ve=r.apply(Q,ee);return Ve.__actions__.push({func:yc,args:[ve],thisArg:e}),new Ci(Ve,Ae)}return Ue&&st?r.apply(this,ee):(Ve=this.thru(ve),Ue?N?Ve.value()[0]:Ve.value():Ve)})}),qn(["pop","push","shift","sort","splice","unshift"],function(r){var d=fi[r],C=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",N=/^(?:pop|shift)$/.test(r);j.prototype[r]=function(){var B=arguments;if(N&&!this.__chain__){var U=this.value();return d.apply(Xe(U)?U:[],B)}return this[C](function(Q){return d.apply(Xe(Q)?Q:[],B)})}}),er(yt.prototype,function(r,d){var C=j[d];if(C){var N=C.name+"";Et.call(cs,N)||(cs[N]=[]),cs[N].push({name:d,func:C})}}),cs[hc(e,y).name]=[{name:"wrapper",func:e}],yt.prototype.clone=aT,yt.prototype.reverse=lT,yt.prototype.value=cT,j.prototype.at=PE,j.prototype.chain=HE,j.prototype.commit=BE,j.prototype.next=zE,j.prototype.plant=WE,j.prototype.reverse=UE,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=VE,j.prototype.first=j.prototype.head,ha&&(j.prototype[ha]=jE),j},Dt=Nt();En?((En.exports=Dt)._=Dt,ki._=Dt):Sn._=Dt}).call(P1)}(Va,Va.exports)),Va.exports}var B1=H1();const z1=rn("K",Ma(B1)),j1={props:["calculatePacketText"],mixins:[F1],data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:n=>!!n||"Required.",min:n=>n>=1||"Minimum: 1",max:n=>parseInt(n)<=this.currentConfig.history||`Maximum: ${this.currentConfig.history}`}}},computed:{allInstantSettings:function(){return`${this.currentConfig.showLineAddress}|${this.currentConfig.showTimestamp}|${this.currentConfig.showAscii}|${this.currentConfig.newestAtTop}|${this.pauseOffset}`},allDebouncedSettings:function(){return`${this.currentConfig.bytesPerLine}|${this.currentConfig.packetsToShow}|${this.filterText}`}},watch:{latestData:function(n){n.forEach(t=>{"buffer"in t&&(t.buffer=atob(t.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=t,this.paused||this.rebuildDisplayText()})},paused:function(n){n?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:z1.debounce(function(){this.rebuildDisplayText()},300)},created:function(){const n={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...n,...this.currentConfig}},methods:{rebuildDisplayText:function(){let n=this.paused?this.pausedHistory:this.history;const t=this.paused?this.pausedAt:this.historyPointer;if(n=n.filter(m=>m).slice(t+1,this.currentConfig.history).concat(n.slice(0,t+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const m=Math.max(n.length+this.pauseOffset,1);n=n.slice(0,m)}const e=Math.max(this.currentConfig.packetsToShow,1);n=n.slice(-e),this.currentConfig.newestAtTop&&(n=n.reverse());let i=`
1406
+ }`;var st=Ey(function(){return Qe(U,Oe+"return "+ve).apply(e,Q)});if(st.source=ve,Ed(st))throw st;return st}function iI(r){return At(r).toLowerCase()}function rI(r){return At(r).toUpperCase()}function oI(r,d,C){if(r=At(r),r&&(C||d===e))return Yt(r);if(!r||!(d=gi(d)))return r;var N=Ge(r),z=Ge(d),U=Wl(N,z),Q=Ul(N,z)+1;return qr(N,U,Q).join("")}function sI(r,d,C){if(r=At(r),r&&(C||d===e))return r.slice(0,Ze(r)+1);if(!r||!(d=gi(d)))return r;var N=Ge(r),z=Ul(N,Ge(d))+1;return qr(N,0,z).join("")}function aI(r,d,C){if(r=At(r),r&&(C||d===e))return r.replace(Hn,"");if(!r||!(d=gi(d)))return r;var N=Ge(r),z=Wl(N,Ge(d));return qr(N,z).join("")}function lI(r,d){var C=M,N=D;if(Qt(d)){var z="separator"in d?d.separator:z;C="length"in d?rt(d.length):C,N="omission"in d?gi(d.omission):N}r=At(r);var U=r.length;if(te(r)){var Q=Ge(r);U=Q.length}if(C>=U)return r;var ee=C-it(N);if(ee<1)return N;var re=Q?qr(Q,0,ee).join(""):r.slice(0,ee);if(z===e)return re+N;if(Q&&(ee+=re.length-ee),Rd(z)){if(r.slice(ee).search(z)){var pe,ge=re;for(z.global||(z=Cn(z.source,At(Rr.exec(z))+"g")),z.lastIndex=0;pe=z.exec(ge);)var ve=pe.index;re=re.slice(0,ve===e?ee:ve)}}else if(r.indexOf(gi(z),ee)!=ee){var Ae=re.lastIndexOf(z);Ae>-1&&(re=re.slice(0,Ae))}return re+N}function cI(r){return r=At(r),r&&Fh.test(r)?r.replace(Bs,Le):r}var uI=ds(function(r,d,C){return r+(C?" ":"")+d.toUpperCase()}),Od=Rv("toUpperCase");function My(r,d,C){return r=At(r),d=C?e:d,d===e?oe(r)?Ut(r):os(r):r.match(d)||[]}var Ey=ut(function(r,d){try{return Wt(r,e,d)}catch(C){return Ed(C)?C:new Fe(C)}}),hI=vr(function(r,d){return Yn(d,function(C){C=nr(C),gr(r,C,Td(r[C],r))}),r});function dI(r){var d=r==null?0:r.length,C=je();return r=d?Ht(r,function(N){if(typeof N[1]!="function")throw new An(v);return[C(N[0]),N[1]]}):[],ut(function(N){for(var z=-1;++z<d;){var U=r[z];if(Wt(U[0],this,N))return Wt(U[1],this,N)}})}function pI(r){return PT(Ai(r,l))}function Nd(r){return function(){return r}}function fI(r,d){return r==null||r!==r?d:r}var gI=Iv(),mI=Iv(!0);function li(r){return r}function Dd(r){return cv(typeof r=="function"?r:Ai(r,l))}function vI(r){return hv(Ai(r,l))}function yI(r,d){return dv(r,Ai(d,l))}var wI=ut(function(r,d){return function(C){return ya(C,r,d)}}),bI=ut(function(r,d){return function(C){return ya(r,C,d)}});function Fd(r,d,C){var N=Rn(d),z=sc(d,N);C==null&&!(Qt(d)&&(z.length||!N.length))&&(C=d,d=r,r=this,z=sc(d,Rn(d)));var U=!(Qt(C)&&"chain"in C)||!!C.chain,Q=wr(r);return Yn(z,function(ee){var re=d[ee];r[ee]=re,Q&&(r.prototype[ee]=function(){var pe=this.__chain__;if(U||pe){var ge=r(this.__wrapped__),ve=ge.__actions__=oi(this.__actions__);return ve.push({func:re,args:arguments,thisArg:r}),ge.__chain__=pe,ge}return re.apply(r,Bn([this.value()],arguments))})}),r}function xI(){return Sn._===this&&(Sn._=GA),this}function Pd(){}function _I(r){return r=rt(r),ut(function(d){return pv(d,r)})}var kI=gd(Ht),$I=gd(Hr),SI=gd(rs);function Ry(r){return _d(r)?la(nr(r)):tM(r)}function CI(r){return function(d){return r==null?e:$o(r,d)}}var AI=Nv(),TI=Nv(!0);function Hd(){return[]}function zd(){return!1}function MI(){return{}}function EI(){return""}function RI(){return!0}function LI(r,d){if(r=rt(r),r<1||r>H)return[];var C=q,N=Wn(r,q);d=je(d),r-=q;for(var z=tn(N,d);++C<r;)d(C);return z}function II(r){return Xe(r)?Ht(r,nr):mi(r)?[r]:oi(Zv(At(r)))}function OI(r){var d=++VA;return At(r)+d}var NI=dc(function(r,d){return r+d},0),DI=md("ceil"),FI=dc(function(r,d){return r/d},1),PI=md("floor");function HI(r){return r&&r.length?oc(r,li,td):e}function zI(r,d){return r&&r.length?oc(r,je(d,2),td):e}function BI(r){return aa(r,li)}function jI(r,d){return aa(r,je(d,2))}function WI(r){return r&&r.length?oc(r,li,od):e}function UI(r,d){return r&&r.length?oc(r,je(d,2),od):e}var VI=dc(function(r,d){return r*d},1),qI=md("round"),GI=dc(function(r,d){return r-d},0);function YI(r){return r&&r.length?Br(r,li):0}function KI(r,d){return r&&r.length?Br(r,je(d,2)):0}return j.after=vR,j.ary=ly,j.assign=rL,j.assignIn=_y,j.assignInWith=Sc,j.assignWith=oL,j.at=sL,j.before=cy,j.bind=Td,j.bindAll=hI,j.bindKey=uy,j.castArray=MR,j.chain=oy,j.chunk=PM,j.compact=HM,j.concat=zM,j.cond=dI,j.conforms=pI,j.constant=Nd,j.countBy=YE,j.create=aL,j.curry=hy,j.curryRight=dy,j.debounce=py,j.defaults=lL,j.defaultsDeep=cL,j.defer=yR,j.delay=wR,j.difference=BM,j.differenceBy=jM,j.differenceWith=WM,j.drop=UM,j.dropRight=VM,j.dropRightWhile=qM,j.dropWhile=GM,j.fill=YM,j.filter=QE,j.flatMap=XE,j.flatMapDeep=eR,j.flatMapDepth=tR,j.flatten=ty,j.flattenDeep=KM,j.flattenDepth=QM,j.flip=bR,j.flow=gI,j.flowRight=mI,j.fromPairs=ZM,j.functions=mL,j.functionsIn=vL,j.groupBy=nR,j.initial=XM,j.intersection=eE,j.intersectionBy=tE,j.intersectionWith=nE,j.invert=wL,j.invertBy=bL,j.invokeMap=rR,j.iteratee=Dd,j.keyBy=oR,j.keys=Rn,j.keysIn=ai,j.map=wc,j.mapKeys=_L,j.mapValues=kL,j.matches=vI,j.matchesProperty=yI,j.memoize=xc,j.merge=$L,j.mergeWith=ky,j.method=wI,j.methodOf=bI,j.mixin=Fd,j.negate=_c,j.nthArg=_I,j.omit=SL,j.omitBy=CL,j.once=xR,j.orderBy=sR,j.over=kI,j.overArgs=_R,j.overEvery=$I,j.overSome=SI,j.partial=Md,j.partialRight=fy,j.partition=aR,j.pick=AL,j.pickBy=$y,j.property=Ry,j.propertyOf=CI,j.pull=sE,j.pullAll=iy,j.pullAllBy=aE,j.pullAllWith=lE,j.pullAt=cE,j.range=AI,j.rangeRight=TI,j.rearg=kR,j.reject=uR,j.remove=uE,j.rest=$R,j.reverse=Cd,j.sampleSize=dR,j.set=ML,j.setWith=EL,j.shuffle=pR,j.slice=hE,j.sortBy=mR,j.sortedUniq=yE,j.sortedUniqBy=wE,j.split=XL,j.spread=SR,j.tail=bE,j.take=xE,j.takeRight=_E,j.takeRightWhile=kE,j.takeWhile=$E,j.tap=HE,j.throttle=CR,j.thru=yc,j.toArray=wy,j.toPairs=Sy,j.toPairsIn=Cy,j.toPath=II,j.toPlainObject=xy,j.transform=RL,j.unary=AR,j.union=SE,j.unionBy=CE,j.unionWith=AE,j.uniq=TE,j.uniqBy=ME,j.uniqWith=EE,j.unset=LL,j.unzip=Ad,j.unzipWith=ry,j.update=IL,j.updateWith=OL,j.values=gs,j.valuesIn=NL,j.without=RE,j.words=My,j.wrap=TR,j.xor=LE,j.xorBy=IE,j.xorWith=OE,j.zip=NE,j.zipObject=DE,j.zipObjectDeep=FE,j.zipWith=PE,j.entries=Sy,j.entriesIn=Cy,j.extend=_y,j.extendWith=Sc,Fd(j,j),j.add=NI,j.attempt=Ey,j.camelCase=HL,j.capitalize=Ay,j.ceil=DI,j.clamp=DL,j.clone=ER,j.cloneDeep=LR,j.cloneDeepWith=IR,j.cloneWith=RR,j.conformsTo=OR,j.deburr=Ty,j.defaultTo=fI,j.divide=FI,j.endsWith=zL,j.eq=Pi,j.escape=BL,j.escapeRegExp=jL,j.every=KE,j.find=ZE,j.findIndex=Xv,j.findKey=uL,j.findLast=JE,j.findLastIndex=ey,j.findLastKey=hL,j.floor=PI,j.forEach=sy,j.forEachRight=ay,j.forIn=dL,j.forInRight=pL,j.forOwn=fL,j.forOwnRight=gL,j.get=Ld,j.gt=NR,j.gte=DR,j.has=yL,j.hasIn=Id,j.head=ny,j.identity=li,j.includes=iR,j.indexOf=JM,j.inRange=FL,j.invoke=xL,j.isArguments=Ao,j.isArray=Xe,j.isArrayBuffer=FR,j.isArrayLike=si,j.isArrayLikeObject=cn,j.isBoolean=PR,j.isBuffer=Gr,j.isDate=HR,j.isElement=zR,j.isEmpty=BR,j.isEqual=jR,j.isEqualWith=WR,j.isError=Ed,j.isFinite=UR,j.isFunction=wr,j.isInteger=gy,j.isLength=kc,j.isMap=my,j.isMatch=VR,j.isMatchWith=qR,j.isNaN=GR,j.isNative=YR,j.isNil=QR,j.isNull=KR,j.isNumber=vy,j.isObject=Qt,j.isObjectLike=nn,j.isPlainObject=$a,j.isRegExp=Rd,j.isSafeInteger=ZR,j.isSet=yy,j.isString=$c,j.isSymbol=mi,j.isTypedArray=fs,j.isUndefined=JR,j.isWeakMap=XR,j.isWeakSet=eL,j.join=iE,j.kebabCase=WL,j.last=Mi,j.lastIndexOf=rE,j.lowerCase=UL,j.lowerFirst=VL,j.lt=tL,j.lte=nL,j.max=HI,j.maxBy=zI,j.mean=BI,j.meanBy=jI,j.min=WI,j.minBy=UI,j.stubArray=Hd,j.stubFalse=zd,j.stubObject=MI,j.stubString=EI,j.stubTrue=RI,j.multiply=VI,j.nth=oE,j.noConflict=xI,j.noop=Pd,j.now=bc,j.pad=qL,j.padEnd=GL,j.padStart=YL,j.parseInt=KL,j.random=PL,j.reduce=lR,j.reduceRight=cR,j.repeat=QL,j.replace=ZL,j.result=TL,j.round=qI,j.runInContext=ne,j.sample=hR,j.size=fR,j.snakeCase=JL,j.some=gR,j.sortedIndex=dE,j.sortedIndexBy=pE,j.sortedIndexOf=fE,j.sortedLastIndex=gE,j.sortedLastIndexBy=mE,j.sortedLastIndexOf=vE,j.startCase=eI,j.startsWith=tI,j.subtract=GI,j.sum=YI,j.sumBy=KI,j.template=nI,j.times=LI,j.toFinite=br,j.toInteger=rt,j.toLength=by,j.toLower=iI,j.toNumber=Ei,j.toSafeInteger=iL,j.toString=At,j.toUpper=rI,j.trim=oI,j.trimEnd=sI,j.trimStart=aI,j.truncate=lI,j.unescape=cI,j.uniqueId=OI,j.upperCase=uI,j.upperFirst=Od,j.each=sy,j.eachRight=ay,j.first=ny,Fd(j,function(){var r={};return er(j,function(d,C){Et.call(j.prototype,C)||(r[C]=d)}),r}(),{chain:!1}),j.VERSION=i,Yn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){j[r].placeholder=j}),Yn(["drop","take"],function(r,d){yt.prototype[r]=function(C){C=C===e?1:Tn(rt(C),0);var N=this.__filtered__&&!d?new yt(this):this.clone();return N.__filtered__?N.__takeCount__=Wn(C,N.__takeCount__):N.__views__.push({size:Wn(C,q),type:r+(N.__dir__<0?"Right":"")}),N},yt.prototype[r+"Right"]=function(C){return this.reverse()[r](C).reverse()}}),Yn(["filter","map","takeWhile"],function(r,d){var C=d+1,N=C==S||C==O;yt.prototype[r]=function(z){var U=this.clone();return U.__iteratees__.push({iteratee:je(z,3),type:C}),U.__filtered__=U.__filtered__||N,U}}),Yn(["head","last"],function(r,d){var C="take"+(d?"Right":"");yt.prototype[r]=function(){return this[C](1).value()[0]}}),Yn(["initial","tail"],function(r,d){var C="drop"+(d?"":"Right");yt.prototype[r]=function(){return this.__filtered__?new yt(this):this[C](1)}}),yt.prototype.compact=function(){return this.filter(li)},yt.prototype.find=function(r){return this.filter(r).head()},yt.prototype.findLast=function(r){return this.reverse().find(r)},yt.prototype.invokeMap=ut(function(r,d){return typeof r=="function"?new yt(this):this.map(function(C){return ya(C,r,d)})}),yt.prototype.reject=function(r){return this.filter(_c(je(r)))},yt.prototype.slice=function(r,d){r=rt(r);var C=this;return C.__filtered__&&(r>0||d<0)?new yt(C):(r<0?C=C.takeRight(-r):r&&(C=C.drop(r)),d!==e&&(d=rt(d),C=d<0?C.dropRight(-d):C.take(d-r)),C)},yt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},yt.prototype.toArray=function(){return this.take(q)},er(yt.prototype,function(r,d){var C=/^(?:filter|find|map|reject)|While$/.test(d),N=/^(?:head|last)$/.test(d),z=j[N?"take"+(d=="last"?"Right":""):d],U=N||/^find/.test(d);z&&(j.prototype[d]=function(){var Q=this.__wrapped__,ee=N?[1]:arguments,re=Q instanceof yt,pe=ee[0],ge=re||Xe(Q),ve=function(gt){var wt=z.apply(j,Bn([gt],ee));return N&&Ae?wt[0]:wt};ge&&C&&typeof pe=="function"&&pe.length!=1&&(re=ge=!1);var Ae=this.__chain__,Oe=!!this.__actions__.length,Ue=U&&!Ae,st=re&&!Oe;if(!U&&ge){Q=st?Q:new yt(this);var Ve=r.apply(Q,ee);return Ve.__actions__.push({func:yc,args:[ve],thisArg:e}),new Ci(Ve,Ae)}return Ue&&st?r.apply(this,ee):(Ve=this.thru(ve),Ue?N?Ve.value()[0]:Ve.value():Ve)})}),Yn(["pop","push","shift","sort","splice","unshift"],function(r){var d=fi[r],C=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",N=/^(?:pop|shift)$/.test(r);j.prototype[r]=function(){var z=arguments;if(N&&!this.__chain__){var U=this.value();return d.apply(Xe(U)?U:[],z)}return this[C](function(Q){return d.apply(Xe(Q)?Q:[],z)})}}),er(yt.prototype,function(r,d){var C=j[d];if(C){var N=C.name+"";Et.call(cs,N)||(cs[N]=[]),cs[N].push({name:d,func:C})}}),cs[hc(e,y).name]=[{name:"wrapper",func:e}],yt.prototype.clone=cT,yt.prototype.reverse=uT,yt.prototype.value=hT,j.prototype.at=zE,j.prototype.chain=BE,j.prototype.commit=jE,j.prototype.next=WE,j.prototype.plant=VE,j.prototype.reverse=qE,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=GE,j.prototype.first=j.prototype.head,ha&&(j.prototype[ha]=UE),j},Dt=Nt();En?((En.exports=Dt)._=Dt,ki._=Dt):Sn._=Dt}).call(z1)}(Va,Va.exports)),Va.exports}var j1=B1();const W1=rn("K",Ma(j1)),U1={props:["calculatePacketText"],mixins:[H1],data:function(){return{history:[],historyPointer:-1,filterText:null,paused:!1,pausedAt:0,pauseOffset:0,pausedHistory:[],rows:1,textarea:null,displayText:"",rules:{required:n=>!!n||"Required.",min:n=>n>=1||"Minimum: 1",max:n=>parseInt(n)<=this.currentConfig.history||`Maximum: ${this.currentConfig.history}`}}},computed:{allInstantSettings:function(){return`${this.currentConfig.showLineAddress}|${this.currentConfig.showTimestamp}|${this.currentConfig.showAscii}|${this.currentConfig.newestAtTop}|${this.pauseOffset}`},allDebouncedSettings:function(){return`${this.currentConfig.bytesPerLine}|${this.currentConfig.packetsToShow}|${this.filterText}`}},watch:{latestData:function(n){n.forEach(t=>{"buffer"in t&&(t.buffer=atob(t.buffer)),this.historyPointer=++this.historyPointer%this.currentConfig.history,isNaN(this.historyPointer)&&(this.historyPointer=0),this.history[this.historyPointer]=t,this.paused||this.rebuildDisplayText()})},paused:function(n){n?(this.pausedAt=this.historyPointer,this.pausedHistory=this.history.slice()):(this.pauseOffset=0,this.rebuildDisplayText())},allInstantSettings:function(){this.rebuildDisplayText()},allDebouncedSettings:W1.debounce(function(){this.rebuildDisplayText()},300)},created:function(){const n={history:300,showTimestamp:!0,showAscii:!0,showLineAddress:!0,packetsToShow:1,bytesPerLine:16,newestAtTop:!0};this.currentConfig={...n,...this.currentConfig}},methods:{rebuildDisplayText:function(){let n=this.paused?this.pausedHistory:this.history;const t=this.paused?this.pausedAt:this.historyPointer;if(n=n.filter(m=>m).slice(t+1,this.currentConfig.history).concat(n.slice(0,t+1)).map(this.calculatePacketText).map(this.matchesSearch),this.paused){const m=Math.max(n.length+this.pauseOffset,1);n=n.slice(0,m)}const e=Math.max(this.currentConfig.packetsToShow,1);n=n.slice(-e),this.currentConfig.newestAtTop&&(n=n.reverse());let i=`
1407
1407
  `;this.filterText!==null&&(i+=`
1408
1408
  `),this.displayText=n.join(i),this.rows=this.displayText.split(`
1409
1409
  `).length},matchesSearch:function(n){return this.filterText===null?n:n.split(`
1410
1410
  `).filter(t=>t.toLowerCase().includes(this.filterText.toLowerCase())).join(`
1411
- `)},download:function(){const n=new Blob([this.displayText],{type:"text/plain"}),t=document.createElement("a");let e=URL.createObjectURL(n);t.href=e,t.setAttribute("download",`${Zr(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),t.click(),window.URL.revokeObjectURL(e)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},W1={class:"pa-2"},U1={class:"text-area-container"},V1={class:"floating-buttons"};function q1(n,t,e,i,m,f){const v=Ie("v-text-field"),w=Ie("v-col"),h=Ie("v-slider"),g=Ie("v-row"),a=Ie("v-textarea"),l=Ie("v-icon"),s=Ie("v-btn"),c=Ie("v-card-title"),o=Ie("v-switch"),u=Ie("v-radio"),p=Ie("v-radio-group"),y=Ie("v-card-text"),x=Ie("v-card"),R=Ie("v-menu");return kt(),Bi("div",W1,[be(g,{dense:"",class:"mb-2"},{default:Se(()=>[be(w,{cols:"4"},{default:Se(()=>[be(v,{modelValue:n.filterText,"onUpdate:modelValue":t[0]||(t[0]=A=>n.filterText=A),label:"Search",class:"search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"history-component-search"},null,8,["modelValue"])]),_:1}),be(w,{cols:"8",class:"mt-1"},{default:Se(()=>[be(h,{modelValue:n.pauseOffset,"onUpdate:modelValue":t[1]||(t[1]=A=>n.pauseOffset=A),onMousedown:f.pause,"onClick:prepend":f.stepBackward,"onClick:append":f.stepForward,"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-n.currentConfig.history,max:0,"hide-details":""},null,8,["modelValue","onMousedown","onClick:prepend","onClick:append","min"])]),_:1})]),_:1}),be(g,{dense:"","no-gutters":""},{default:Se(()=>[be(w,null,{default:Se(()=>[Zn("div",U1,[be(a,{"model-value":n.displayText,rows:n.rows,"no-resize":"",readonly:"",variant:"solo",flat:"","hide-details":"","data-test":"history-component-text-area"},null,8,["model-value","rows"]),Zn("div",V1,[be(R,{"close-on-content-click":!1,"min-width":700},{activator:Se(({props:A})=>[be(s,Cc({class:"ml-2",color:"secondary"},A,{icon:"",size:"small","data-test":"history-component-open-settings"}),{default:Se(()=>[be(l,null,{default:Se(()=>t[9]||(t[9]=[Zt("astro:settings")])),_:1})]),_:2},1040)]),default:Se(()=>[be(x,null,{default:Se(()=>[be(c,{"data-test":"display-settings-card"},{default:Se(()=>t[10]||(t[10]=[Zt(" Display settings ")])),_:1}),be(y,null,{default:Se(()=>[be(g,null,{default:Se(()=>[be(w,null,{default:Se(()=>[be(o,{modelValue:n.currentConfig.showTimestamp,"onUpdate:modelValue":t[2]||(t[2]=A=>n.currentConfig.showTimestamp=A),label:"Show timestamp",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-timestamp"},null,8,["modelValue"]),n.hasRaw?(kt(),on(o,{key:0,modelValue:n.currentConfig.showAscii,"onUpdate:modelValue":t[3]||(t[3]=A=>n.currentConfig.showAscii=A),label:"Show ASCII",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-ascii"},null,8,["modelValue"])):Jn("",!0),n.hasRaw?(kt(),on(o,{key:1,modelValue:n.currentConfig.showLineAddress,"onUpdate:modelValue":t[4]||(t[4]=A=>n.currentConfig.showLineAddress=A),label:"Show line address",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-address"},null,8,["modelValue"])):Jn("",!0)]),_:1}),be(w,null,{default:Se(()=>[be(p,{modelValue:n.currentConfig.newestAtTop,"onUpdate:modelValue":t[5]||(t[5]=A=>n.currentConfig.newestAtTop=A),label:"Print newest to the"},{default:Se(()=>[be(u,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),be(u,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),be(w,null,{default:Se(()=>[be(v,{modelValue:n.currentConfig.history,"onUpdate:modelValue":t[6]||(t[6]=A=>n.currentConfig.history=A),label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[n.rules.required,n.rules.min],"data-test":"history-component-settings-history"},null,8,["modelValue","rules"]),n.hasRaw?(kt(),on(v,{key:0,modelValue:n.currentConfig.bytesPerLine,"onUpdate:modelValue":t[7]||(t[7]=A=>n.currentConfig.bytesPerLine=A),label:"Bytes per line",type:"number",min:"1",rules:[n.rules.required,n.rules.min],"data-test":"history-component-settings-num-bytes"},null,8,["modelValue","rules"])):Jn("",!0),be(v,{modelValue:n.currentConfig.packetsToShow,"onUpdate:modelValue":t[8]||(t[8]=A=>n.currentConfig.packetsToShow=A),label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${n.currentConfig.history}`,"persistent-hint":"",rules:[n.rules.required,n.rules.min,n.rules.max],"data-test":"history-component-settings-num-packets"},null,8,["modelValue","hint","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),be(s,{class:"ml-2",onClick:f.download,color:"secondary",icon:"",size:"small","data-test":"history-component-download"},{default:Se(()=>[be(l,null,{default:Se(()=>t[11]||(t[11]=[Zt("mdi-file-download")])),_:1})]),_:1},8,["onClick"]),be(s,{class:jd(["ml-2",{pulse:n.paused}]),onClick:f.togglePlayPause,color:"primary",icon:"","data-test":"history-component-play-pause"},{default:Se(()=>[n.paused?(kt(),on(l,{key:0,size:"large"},{default:Se(()=>t[12]||(t[12]=[Zt("mdi-play")])),_:1})):(kt(),on(l,{key:1,size:"large"},{default:Se(()=>t[13]||(t[13]=[Zt("mdi-pause")])),_:1}))]),_:1},8,["class","onClick"])])])]),_:1})]),_:1})])}const XI=rn("P",ir(j1,[["render",q1],["__scopeId","data-v-90852ac7"]]));var xf={exports:{}},_f;function G1(){return _f||(_f=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(xf)),xf.exports}G1();const Y1=!0,yn="u-",K1="uplot",Q1=yn+"hz",Z1=yn+"vt",J1=yn+"title",X1=yn+"wrap",ex=yn+"under",tx=yn+"over",nx=yn+"axis",to=yn+"off",ix=yn+"select",rx=yn+"cursor-x",ox=yn+"cursor-y",sx=yn+"cursor-pt",ax=yn+"legend",lx=yn+"live",cx=yn+"inline",ux=yn+"series",hx=yn+"marker",kf=yn+"label",dx=yn+"value",Cs="width",As="height",Ts="top",$f="bottom",Oo="left",Xc="right",eu="#000",Sf=eu+"0",Cf="mousemove",Af="mousedown",tu="mouseup",Tf="mouseenter",Mf="mouseleave",Ef="dblclick",px="resize",fx="scroll",Rf="change",qa="dppxchange",nu="--",No=typeof window<"u",iu=No?document:null,Do=No?window:null,gx=No?navigator:null;let xt,Ga;function ru(){let n=devicePixelRatio;xt!=n&&(xt=n,Ga&&au(Rf,Ga,ru),Ga=matchMedia(`(min-resolution: ${xt-.001}dppx) and (max-resolution: ${xt+.001}dppx)`),no(Rf,Ga,ru),Do.dispatchEvent(new CustomEvent(qa)))}function ui(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function ou(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function Bt(n,t,e){n.style[t]=e+"px"}function Li(n,t,e,i){let m=iu.createElement(n);return t!=null&&ui(m,t),e!=null&&e.insertBefore(m,i),m}function wi(n,t){return Li("div",n,t)}const Lf=new WeakMap;function ji(n,t,e,i,m){let f="translate("+t+"px,"+e+"px)",v=Lf.get(n);f!=v&&(n.style.transform=f,Lf.set(n,f),t<0||e<0||t>i||e>m?ui(n,to):ou(n,to))}const If=new WeakMap;function Of(n,t,e){let i=t+e,m=If.get(n);i!=m&&(If.set(n,i),n.style.background=t,n.style.borderColor=e)}const Nf=new WeakMap;function Df(n,t,e,i){let m=t+""+e,f=Nf.get(n);m!=f&&(Nf.set(n,m),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=i?-t/2+"px":0,n.style.marginTop=i?-e/2+"px":0)}const su={passive:!0},mx={...su,capture:!0};function no(n,t,e,i){t.addEventListener(n,e,i?mx:su)}function au(n,t,e,i){t.removeEventListener(n,e,su)}No&&ru();function Ii(n,t,e,i){let m;e=e||0,i=i||t.length-1;let f=i<=2147483647;for(;i-e>1;)m=f?e+i>>1:di((e+i)/2),t[m]<n?e=m:i=m;return n-t[e]<=t[i]-n?e:i}function Fo(n,t,e,i){for(let m=i==1?t:e;m>=t&&m<=e;m+=i)if(n[m]!=null)return m;return-1}function vx(n,t,e,i){let m=mt,f=-mt;if(i==1)m=n[t],f=n[e];else if(i==-1)m=n[e],f=n[t];else for(let v=t;v<=e;v++){let w=n[v];w!=null&&(w<m&&(m=w),w>f&&(f=w))}return[m,f]}function yx(n,t,e){let i=mt,m=-mt;for(let f=t;f<=e;f++){let v=n[f];v!=null&&v>0&&(v<i&&(i=v),v>m&&(m=v))}return[i,m]}function Ya(n,t,e,i){let m=Hf(n),f=Hf(t);n==t&&(m==-1?(n*=e,t/=e):(n/=e,t*=e));let v=e==10?rr:Bf,w=m==1?di:bi,h=f==1?bi:di,g=w(v(wn(n))),a=h(v(wn(t))),l=Po(e,g),s=Po(e,a);return e==10&&(g<0&&(l=Lt(l,-g)),a<0&&(s=Lt(s,-a))),i||e==2?(n=l*m,t=s*f):(n=qf(n,l),t=Za(t,s)),[n,t]}function lu(n,t,e,i){let m=Ya(n,t,e,i);return n==0&&(m[0]=0),t==0&&(m[1]=0),m}const cu=.1,Ff={mode:3,pad:cu},Ms={pad:0,soft:null,mode:0},wx={min:Ms,max:Ms};function Ka(n,t,e,i){return Ja(e)?Pf(n,t,e):(Ms.pad=e,Ms.soft=i?0:null,Ms.mode=i?3:0,Pf(n,t,wx))}function bt(n,t){return n??t}function bx(n,t,e){for(t=bt(t,0),e=bt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Pf(n,t,e){let i=e.min,m=e.max,f=bt(i.pad,0),v=bt(m.pad,0),w=bt(i.hard,-mt),h=bt(m.hard,mt),g=bt(i.soft,mt),a=bt(m.soft,-mt),l=bt(i.mode,0),s=bt(m.mode,0),c=t-n,o=rr(c),u=Nn(wn(n),wn(t)),p=rr(u),y=wn(p-o);(c<1e-24||y>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&g!=mt&&(f=0),s==2&&a!=-mt&&(v=0)));let x=c||u||1e3,R=rr(x),A=Po(10,di(R)),k=x*(c==0?n==0?.1:1:f),b=Lt(qf(n-k,A/10),24),T=n>=g&&(l==1||l==3&&b<=g||l==2&&b>=g)?g:mt,E=Nn(w,b<T&&n>=T?T:xi(T,b)),I=x*(c==0?t==0?.1:1:v),M=Lt(Za(t+I,A/10),24),D=t<=a&&(s==1||s==3&&M>=a||s==2&&M<=a)?a:-mt,$=xi(h,M>D&&t<=D?D:Nn(D,M));return E==$&&E==0&&($=100),[E,$]}const xx=new Intl.NumberFormat(No?gx.language:"en-US"),uu=n=>xx.format(n),hi=Math,Qa=hi.PI,wn=hi.abs,di=hi.floor,bn=hi.round,bi=hi.ceil,xi=hi.min,Nn=hi.max,Po=hi.pow,Hf=hi.sign,rr=hi.log10,Bf=hi.log2,_x=(n,t=1)=>hi.sinh(n)*t,hu=(n,t=1)=>hi.asinh(n/t),mt=1/0;function zf(n){return(rr((n^n>>31)-(n>>31))|0)+1}function du(n,t,e){return xi(Nn(n,t),e)}function vt(n){return typeof n=="function"?n:()=>n}const kx=()=>{},jf=n=>n,Wf=(n,t)=>t,$x=n=>null,Uf=n=>!0,Vf=(n,t)=>n==t,Sx=/\.\d*?(?=9{6,}|0{6,})/gm,io=n=>{if(Yf(n)||Cr.has(n))return n;const t=`${n}`,e=t.match(Sx);if(e==null)return n;let i=e[0].length-1;if(t.indexOf("e-")!=-1){let[m,f]=t.split("e");return+`${io(m)}e${f}`}return Lt(n,i)};function ro(n,t){return io(Lt(io(n/t))*t)}function Za(n,t){return io(bi(io(n/t))*t)}function qf(n,t){return io(di(io(n/t))*t)}function Lt(n,t=0){if(Yf(n))return n;let e=10**t,i=n*e*(1+Number.EPSILON);return bn(i)/e}const Cr=new Map;function Gf(n){return((""+n).split(".")[1]||"").length}function Es(n,t,e,i){let m=[],f=i.map(Gf);for(let v=t;v<e;v++){let w=wn(v),h=Lt(Po(n,v),w);for(let g=0;g<i.length;g++){let a=n==10?+`${i[g]}e${v}`:i[g]*h,l=(v>=0?0:w)+(v>=f[g]?0:f[g]),s=n==10?a:Lt(a,l);m.push(s),Cr.set(s,l)}}return m}const Rs={},pu=[],Ho=[null,null],Ar=Array.isArray,Yf=Number.isInteger,Cx=n=>n===void 0;function Kf(n){return typeof n=="string"}function Ja(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function Ax(n){return n!=null&&typeof n=="object"}const Tx=Object.getPrototypeOf(Uint8Array),Qf="__proto__";function Bo(n,t=Ja){let e;if(Ar(n)){let i=n.find(m=>m!=null);if(Ar(i)||t(i)){e=Array(n.length);for(let m=0;m<n.length;m++)e[m]=Bo(n[m],t)}else e=n.slice()}else if(n instanceof Tx)e=n.slice();else if(t(n)){e={};for(let i in n)i!=Qf&&(e[i]=Bo(n[i],t))}else e=n;return e}function pn(n){let t=arguments;for(let e=1;e<t.length;e++){let i=t[e];for(let m in i)m!=Qf&&(Ja(n[m])?pn(n[m],Bo(i[m])):n[m]=Bo(i[m]))}return n}const Mx=0,Ex=1,Rx=2;function Lx(n,t,e){for(let i=0,m,f=-1;i<t.length;i++){let v=t[i];if(v>f){for(m=v-1;m>=0&&n[m]==null;)n[m--]=null;for(m=v+1;m<e&&n[m]==null;)n[f=m++]=null}}}function Ix(n,t){if(Dx(n)){let v=n[0].slice();for(let w=1;w<n.length;w++)v.push(...n[w].slice(1));return Fx(v[0])||(v=Nx(v)),v}let e=new Set;for(let v=0;v<n.length;v++){let w=n[v][0],h=w.length;for(let g=0;g<h;g++)e.add(w[g])}let i=[Array.from(e).sort((v,w)=>v-w)],m=i[0].length,f=new Map;for(let v=0;v<m;v++)f.set(i[0][v],v);for(let v=0;v<n.length;v++){let w=n[v],h=w[0];for(let g=1;g<w.length;g++){let a=w[g],l=Array(m).fill(void 0),s=t?t[v][g]:Ex,c=[];for(let o=0;o<a.length;o++){let u=a[o],p=f.get(h[o]);u===null?s!=Mx&&(l[p]=u,s==Rx&&c.push(p)):l[p]=u}Lx(l,c,m),i.push(l)}}return i}const Ox=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Nx(n){let t=n[0],e=t.length,i=Array(e);for(let f=0;f<i.length;f++)i[f]=f;i.sort((f,v)=>t[f]-t[v]);let m=[];for(let f=0;f<n.length;f++){let v=n[f],w=Array(e);for(let h=0;h<e;h++)w[h]=v[i[h]];m.push(w)}return m}function Dx(n){let t=n[0][0],e=t.length;for(let i=1;i<n.length;i++){let m=n[i][0];if(m.length!=e)return!1;if(m!=t){for(let f=0;f<e;f++)if(m[f]!=t[f])return!1}}return!0}function Fx(n,t=100){const e=n.length;if(e<=1)return!0;let i=0,m=e-1;for(;i<=m&&n[i]==null;)i++;for(;m>=i&&n[m]==null;)m--;if(m<=i)return!0;const f=Nn(1,di((m-i+1)/t));for(let v=n[i],w=i+f;w<=m;w+=f){const h=n[w];if(h!=null){if(h<=v)return!1;v=h}}return!0}const Zf=["January","February","March","April","May","June","July","August","September","October","November","December"],Jf=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Xf(n){return n.slice(0,3)}const Px=Jf.map(Xf),Hx=Zf.map(Xf),Bx={MMMM:Zf,MMM:Hx,WWWW:Jf,WWW:Px};function Ls(n){return(n<10?"0":"")+n}function zx(n){return(n<10?"00":n<100?"0":"")+n}const jx={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Ls(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Ls(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Ls(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Ls(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Ls(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>zx(n.getMilliseconds())};function fu(n,t){t=t||Bx;let e=[],i=/\{([a-z]+)\}|[^{]+/gi,m;for(;m=i.exec(n);)e.push(m[0][0]=="{"?jx[m[1]]:m[0]);return f=>{let v="";for(let w=0;w<e.length;w++)v+=typeof e[w]=="string"?e[w]:e[w](f,t);return v}}const Wx=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Ux(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==Wx?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const eg=n=>n%1==0,Xa=[1,2,2.5,5],Vx=Es(10,-32,0,Xa),tg=Es(10,0,32,Xa),qx=tg.filter(eg),oo=Vx.concat(tg),gu=`
1412
- `,ng="{YYYY}",ig=gu+ng,rg="{M}/{D}",Is=gu+rg,el=Is+"/{YY}",og="{aa}",Gx="{h}:{mm}",zo=Gx+og,sg=gu+zo,ag=":{ss}",$t=null;function lg(n){let t=n*1e3,e=t*60,i=e*60,m=i*24,f=m*30,v=m*365,w=(n==1?Es(10,0,3,Xa).filter(eg):Es(10,-3,0,Xa)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,i,i*2,i*3,i*4,i*6,i*8,i*12,m,m*2,m*3,m*4,m*5,m*6,m*7,m*8,m*9,m*10,m*15,f,f*2,f*3,f*4,f*6,v,v*2,v*5,v*10,v*25,v*50,v*100]);const h=[[v,ng,$t,$t,$t,$t,$t,$t,1],[m*28,"{MMM}",ig,$t,$t,$t,$t,$t,1],[m,rg,ig,$t,$t,$t,$t,$t,1],[i,"{h}"+og,el,$t,Is,$t,$t,$t,1],[e,zo,el,$t,Is,$t,$t,$t,1],[t,ag,el+" "+zo,$t,Is+" "+zo,$t,sg,$t,1],[n,ag+".{fff}",el+" "+zo,$t,Is+" "+zo,$t,sg,$t,1]];function g(a){return(l,s,c,o,u,p)=>{let y=[],x=u>=v,R=u>=f&&u<v,A=a(c),k=Lt(A*n,3),b=mu(A.getFullYear(),x?0:A.getMonth(),R||x?1:A.getDate()),T=Lt(b*n,3);if(R||x){let E=R?u/f:0,I=x?u/v:0,M=k==T?k:Lt(mu(b.getFullYear()+I,b.getMonth()+E,1)*n,3),D=new Date(bn(M/n)),$=D.getFullYear(),_=D.getMonth();for(let S=0;M<=o;S++){let L=mu($+I*S,_+E*S,1),O=L-a(Lt(L*n,3));M=Lt((+L+O)*n,3),M<=o&&y.push(M)}}else{let E=u>=m?m:u,I=di(c)-di(k),M=T+I+Za(k-T,E);y.push(M);let D=a(M),$=D.getHours()+D.getMinutes()/e+D.getSeconds()/i,_=u/i,S=l.axes[s]._space,L=p/S;for(;M=Lt(M+u,n==1?0:3),!(M>o);)if(_>1){let O=di(Lt($+_,6))%24,F=a(M).getHours()-O;F>1&&(F=-1),M-=F*i,$=($+_)%24;let H=y[y.length-1];Lt((M-H)/u,3)*L>=.7&&y.push(M)}else y.push(M)}return y}}return[w,h,g]}const[Yx,Kx,Qx]=lg(1),[Zx,Jx,Xx]=lg(.001);Es(2,-53,53,[1]);function cg(n,t){return n.map(e=>e.map((i,m)=>m==0||m==8||i==null?i:t(m==1||e[8]==0?i:e[1]+i)))}function ug(n,t){return(e,i,m,f,v)=>{let w=t.find(o=>v>=o[0])||t[t.length-1],h,g,a,l,s,c;return i.map(o=>{let u=n(o),p=u.getFullYear(),y=u.getMonth(),x=u.getDate(),R=u.getHours(),A=u.getMinutes(),k=u.getSeconds(),b=p!=h&&w[2]||y!=g&&w[3]||x!=a&&w[4]||R!=l&&w[5]||A!=s&&w[6]||k!=c&&w[7]||w[1];return h=p,g=y,a=x,l=R,s=A,c=k,b(u)})}}function e_(n,t){let e=fu(t);return(i,m,f,v,w)=>m.map(h=>e(n(h)))}function mu(n,t,e){return new Date(n,t,e)}function hg(n,t){return t(n)}const t_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function dg(n,t){return(e,i,m,f)=>f==null?nu:t(n(i))}function n_(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function i_(n,t){return n.series[t].fill(n,t)}const r_={show:!0,live:!0,isolate:!1,mount:kx,markers:{show:!0,width:2,stroke:n_,fill:i_,dash:"solid"},idx:null,idxs:null,values:[]};function o_(n,t){let e=n.cursor.points,i=wi(),m=e.size(n,t);Bt(i,Cs,m),Bt(i,As,m);let f=m/-2;Bt(i,"marginLeft",f),Bt(i,"marginTop",f);let v=e.width(n,t,m);return v&&Bt(i,"borderWidth",v),i}function s_(n,t){let e=n.series[t].points;return e._fill||e._stroke}function a_(n,t){let e=n.series[t].points;return e._stroke||e._fill}function l_(n,t){return n.series[t].points.size}const vu=[0,0];function c_(n,t,e){return vu[0]=t,vu[1]=e,vu}function tl(n,t,e,i=!0){return m=>{m.button==0&&(!i||m.target==t)&&e(m)}}function yu(n,t,e,i=!0){return m=>{(!i||m.target==t)&&e(m)}}const u_={show:!0,x:!0,y:!0,lock:!1,move:c_,points:{one:!1,show:o_,size:l_,width:0,stroke:a_,fill:s_},bind:{mousedown:tl,mouseup:tl,click:tl,dblclick:tl,mousemove:yu,mouseleave:yu,mouseenter:yu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,i,m)=>i-m,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},pg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},wu=pn({},pg,{filter:Wf}),fg=pn({},wu,{size:10}),gg=pn({},pg,{show:!1}),bu='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"',mg="bold "+bu,vg=1.5,yg={show:!0,scale:"x",stroke:eu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:mg,side:2,grid:wu,ticks:fg,border:gg,font:bu,lineGap:vg,rotate:0},h_="Value",d_="Time",wg={show:!0,scale:"x",auto:!1,sorted:1,min:mt,max:-mt,idxs:[]};function p_(n,t,e,i,m){return t.map(f=>f==null?"":uu(f))}function f_(n,t,e,i,m,f,v){let w=[],h=Cr.get(m)||0;e=v?e:Lt(Za(e,m),h);for(let g=e;g<=i;g=Lt(g+m,h))w.push(Object.is(g,-0)?0:g);return w}function xu(n,t,e,i,m,f,v){const w=[],h=n.scales[n.axes[t].scale].log,g=h==10?rr:Bf,a=di(g(e));m=Po(h,a),h==10&&(m=oo[Ii(m,oo)]);let l=e,s=m*h;h==10&&(s=oo[Ii(s,oo)]);do w.push(l),l=l+m,h==10&&!Cr.has(l)&&(l=Lt(l,Cr.get(m))),l>=s&&(m=l,s=m*h,h==10&&(s=oo[Ii(s,oo)]));while(l<=i);return w}function g_(n,t,e,i,m,f,v){let w=n.scales[n.axes[t].scale].asinh,h=i>w?xu(n,t,Nn(w,e),i,m):[w],g=i>=0&&e<=0?[0]:[];return(e<-w?xu(n,t,Nn(w,-i),-e,m):[w]).reverse().map(a=>-a).concat(g,h)}const bg=/./,m_=/[12357]/,v_=/[125]/,xg=/1/,_u=(n,t,e,i)=>n.map((m,f)=>t==4&&m==0||f%i==0&&e.test(m.toExponential()[m<0?1:0])?m:null);function y_(n,t,e,i,m){let f=n.axes[e],v=f.scale,w=n.scales[v],h=n.valToPos,g=f._space,a=h(10,v),l=h(9,v)-a>=g?bg:h(7,v)-a>=g?m_:h(5,v)-a>=g?v_:xg;if(l==xg){let s=wn(h(1,v)-a);if(s<g)return _u(t.slice().reverse(),w.distr,l,bi(g/s)).reverse()}return _u(t,w.distr,l,1)}function w_(n,t,e,i,m){let f=n.axes[e],v=f.scale,w=f._space,h=n.valToPos,g=wn(h(1,v)-h(2,v));return g<w?_u(t.slice().reverse(),3,bg,bi(w/g)).reverse():t}function b_(n,t,e,i){return i==null?nu:t==null?"":uu(t)}const _g={show:!0,scale:"y",stroke:eu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:mg,side:3,grid:wu,ticks:fg,border:gg,font:bu,lineGap:vg,rotate:0};function x_(n,t){let e=3+(n||1)*2;return Lt(e*t,3)}function __(n,t){let{scale:e,idxs:i}=n.series[0],m=n._data[0],f=n.valToPos(m[i[0]],e,!0),v=n.valToPos(m[i[1]],e,!0),w=wn(v-f),h=n.series[t],g=w/(h.points.space*xt);return i[1]-i[0]<=g}const kg={scale:null,auto:!0,sorted:0,min:mt,max:-mt},$g=(n,t,e,i,m)=>m,Sg={show:!0,auto:!0,sorted:0,gaps:$g,alpha:1,facets:[pn({},kg,{scale:"x"}),pn({},kg,{scale:"y"})]},Cg={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:$g,alpha:1,points:{show:__,filter:null},values:null,min:mt,max:-mt,idxs:[],path:null,clip:null};function k_(n,t,e,i,m){return e/10}const Ag={time:Y1,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},$_=pn({},Ag,{time:!1,ori:1}),Tg={};function Mg(n,t){let e=Tg[n];return e||(e={key:n,plots:[],sub(i){e.plots.push(i)},unsub(i){e.plots=e.plots.filter(m=>m!=i)},pub(i,m,f,v,w,h,g){for(let a=0;a<e.plots.length;a++)e.plots[a]!=m&&e.plots[a].pub(i,m,f,v,w,h,g)}},n!=null&&(Tg[n]=e)),e}const jo=1,ku=2;function so(n,t,e){const i=n.mode,m=n.series[t],f=i==2?n._data[t]:n._data,v=n.scales,w=n.bbox;let h=f[0],g=i==2?f[1]:f[t],a=i==2?v[m.facets[0].scale]:v[n.series[0].scale],l=i==2?v[m.facets[1].scale]:v[m.scale],s=w.left,c=w.top,o=w.width,u=w.height,p=n.valToPosH,y=n.valToPosV;return a.ori==0?e(m,h,g,a,l,p,y,s,c,o,u,il,Wo,ol,Lg,Og):e(m,h,g,a,l,y,p,c,s,u,o,rl,Uo,Cu,Ig,Ng)}function $u(n,t){let e=0,i=0,m=bt(n.bands,pu);for(let f=0;f<m.length;f++){let v=m[f];v.series[0]==t?e=v.dir:v.series[1]==t&&(v.dir==1?i|=1:i|=2)}return[e,i==1?-1:i==2?1:i==3?2:0]}function S_(n,t,e,i,m){let f=n.mode,v=n.series[t],w=f==2?v.facets[1].scale:v.scale,h=n.scales[w];return m==-1?h.min:m==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function or(n,t,e,i,m,f){return so(n,t,(v,w,h,g,a,l,s,c,o,u,p)=>{let y=v.pxRound;const x=g.dir*(g.ori==0?1:-1),R=g.ori==0?Wo:Uo;let A,k;x==1?(A=e,k=i):(A=i,k=e);let b=y(l(w[A],g,u,c)),T=y(s(h[A],a,p,o)),E=y(l(w[k],g,u,c)),I=y(s(f==1?a.max:a.min,a,p,o)),M=new Path2D(m);return R(M,E,I),R(M,b,I),R(M,b,T),M})}function nl(n,t,e,i,m,f){let v=null;if(n.length>0){v=new Path2D;const w=t==0?ol:Cu;let h=e;for(let l=0;l<n.length;l++){let s=n[l];if(s[1]>s[0]){let c=s[0]-h;c>0&&w(v,h,i,c,i+f),h=s[1]}}let g=e+m-h,a=10;g>0&&w(v,h,i-a/2,g,i+f+a)}return v}function C_(n,t,e){let i=n[n.length-1];i&&i[0]==t?i[1]=e:n.push([t,e])}function Su(n,t,e,i,m,f,v){let w=[],h=n.length;for(let g=m==1?e:i;g>=e&&g<=i;g+=m)if(t[g]===null){let a=g,l=g;if(m==1)for(;++g<=i&&t[g]===null;)l=g;else for(;--g>=e&&t[g]===null;)l=g;let s=f(n[a]),c=l==a?s:f(n[l]),o=a-m;s=v<=0&&o>=0&&o<h?f(n[o]):s;let u=l+m;c=v>=0&&u>=0&&u<h?f(n[u]):c,c>=s&&w.push([s,c])}return w}function Eg(n){return n==0?jf:n==1?bn:t=>ro(t,n)}function Rg(n){let t=n==0?il:rl,e=n==0?(m,f,v,w,h,g)=>{m.arcTo(f,v,w,h,g)}:(m,f,v,w,h,g)=>{m.arcTo(v,f,h,w,g)},i=n==0?(m,f,v,w,h)=>{m.rect(f,v,w,h)}:(m,f,v,w,h)=>{m.rect(v,f,h,w)};return(m,f,v,w,h,g=0,a=0)=>{g==0&&a==0?i(m,f,v,w,h):(g=xi(g,w/2,h/2),a=xi(a,w/2,h/2),t(m,f+g,v),e(m,f+w,v,f+w,v+h,g),e(m,f+w,v+h,f,v+h,a),e(m,f,v+h,f,v,a),e(m,f,v,f+w,v,g),m.closePath())}}const il=(n,t,e)=>{n.moveTo(t,e)},rl=(n,t,e)=>{n.moveTo(e,t)},Wo=(n,t,e)=>{n.lineTo(t,e)},Uo=(n,t,e)=>{n.lineTo(e,t)},ol=Rg(0),Cu=Rg(1),Lg=(n,t,e,i,m,f)=>{n.arc(t,e,i,m,f)},Ig=(n,t,e,i,m,f)=>{n.arc(e,t,i,m,f)},Og=(n,t,e,i,m,f,v)=>{n.bezierCurveTo(t,e,i,m,f,v)},Ng=(n,t,e,i,m,f,v)=>{n.bezierCurveTo(e,t,m,i,v,f)};function Dg(n){return(t,e,i,m,f)=>so(t,e,(v,w,h,g,a,l,s,c,o,u,p)=>{let{pxRound:y,points:x}=v,R,A;g.ori==0?(R=il,A=Lg):(R=rl,A=Ig);const k=Lt(x.width*xt,3);let b=(x.size-x.width)/2*xt,T=Lt(b*2,3),E=new Path2D,I=new Path2D,{left:M,top:D,width:$,height:_}=t.bbox;ol(I,M-T,D-T,$+T*2,_+T*2);const S=L=>{if(h[L]!=null){let O=y(l(w[L],g,u,c)),F=y(s(h[L],a,p,o));R(E,O+b,F),A(E,O,F,b,0,Qa*2)}};if(f)f.forEach(S);else for(let L=i;L<=m;L++)S(L);return{stroke:k>0?E:null,fill:E,clip:I,flags:jo|ku}})}function Fg(n){return(t,e,i,m,f,v)=>{i!=m&&(f!=i&&v!=i&&n(t,e,i),f!=m&&v!=m&&n(t,e,m),n(t,e,v))}}const A_=Fg(Wo),T_=Fg(Uo);function Pg(n){const t=bt(n==null?void 0:n.alignGaps,0);return(e,i,m,f)=>so(e,i,(v,w,h,g,a,l,s,c,o,u,p)=>{let y=v.pxRound,x=X=>y(l(X,g,u,c)),R=X=>y(s(X,a,p,o)),A,k;g.ori==0?(A=Wo,k=A_):(A=Uo,k=T_);const b=g.dir*(g.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:jo},E=T.stroke;let I=mt,M=-mt,D,$,_,S=x(w[b==1?m:f]),L=Fo(h,m,f,1*b),O=Fo(h,m,f,-1*b),F=x(w[L]),H=x(w[O]),W=!1;for(let X=b==1?m:f;X>=m&&X<=f;X+=b){let G=x(w[X]),Z=h[X];G==S?Z!=null?($=R(Z),I==mt&&(A(E,G,$),D=$),I=xi($,I),M=Nn($,M)):Z===null&&(W=!0):(I!=mt&&(k(E,S,I,M,D,$),_=S),Z!=null?($=R(Z),A(E,G,$),I=M=D=$):(I=mt,M=-mt,Z===null&&(W=!0)),S=G)}I!=mt&&I!=M&&_!=S&&k(E,S,I,M,D,$);let[V,q]=$u(e,i);if(v.fill!=null||V!=0){let X=T.fill=new Path2D(E),G=v.fillTo(e,i,v.min,v.max,V),Z=R(G);A(X,H,Z),A(X,F,Z)}if(!v.spanGaps){let X=[];W&&X.push(...Su(w,h,m,f,b,x,t)),T.gaps=X=v.gaps(e,i,m,f,X),T.clip=nl(X,g.ori,c,o,u,p)}return q!=0&&(T.band=q==2?[or(e,i,m,f,E,-1),or(e,i,m,f,E,1)]:or(e,i,m,f,E,q)),T})}function M_(n){const t=bt(n.align,1),e=bt(n.ascDesc,!1),i=bt(n.alignGaps,0),m=bt(n.extend,!1);return(f,v,w,h)=>so(f,v,(g,a,l,s,c,o,u,p,y,x,R)=>{let A=g.pxRound,{left:k,width:b}=f.bbox,T=V=>A(o(V,s,x,p)),E=V=>A(u(V,c,R,y)),I=s.ori==0?Wo:Uo;const M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:jo},D=M.stroke,$=s.dir*(s.ori==0?1:-1);w=Fo(l,w,h,1),h=Fo(l,w,h,-1);let _=E(l[$==1?w:h]),S=T(a[$==1?w:h]),L=S,O=S;m&&t==-1&&(O=k,I(D,O,_)),I(D,S,_);for(let V=$==1?w:h;V>=w&&V<=h;V+=$){let q=l[V];if(q==null)continue;let X=T(a[V]),G=E(q);t==1?I(D,X,_):I(D,L,G),I(D,X,G),_=G,L=X}let F=L;m&&t==1&&(F=k+b,I(D,F,_));let[H,W]=$u(f,v);if(g.fill!=null||H!=0){let V=M.fill=new Path2D(D),q=g.fillTo(f,v,g.min,g.max,H),X=E(q);I(V,F,X),I(V,O,X)}if(!g.spanGaps){let V=[];V.push(...Su(a,l,w,h,$,T,i));let q=g.width*xt/2,X=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),M.gaps=V=g.gaps(f,v,w,h,V),M.clip=nl(V,s.ori,p,y,x,R)}return W!=0&&(M.band=W==2?[or(f,v,w,h,D,-1),or(f,v,w,h,D,1)]:or(f,v,w,h,D,W)),M})}function Hg(n,t,e,i,m,f,v=mt){if(n.length>1){let w=null;for(let h=0,g=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let a=wn(n[h]-n[w]);a<g&&(g=a,v=wn(e(n[h],i,m,f)-e(n[w],i,m,f)))}w=h}}return v}function E_(n){n=n||Rs;const t=bt(n.size,[.6,mt,1]),e=n.align||0,i=n.gap||0;let m=n.radius;m=m==null?[0,0]:typeof m=="number"?[m,0]:m;const f=vt(m),v=1-t[0],w=bt(t[1],mt),h=bt(t[2],1),g=bt(n.disp,Rs),a=bt(n.each,c=>{}),{fill:l,stroke:s}=g;return(c,o,u,p)=>so(c,o,(y,x,R,A,k,b,T,E,I,M,D)=>{let $=y.pxRound,_=e,S=i*xt,L=w*xt,O=h*xt,F,H;A.ori==0?[F,H]=f(c,o):[H,F]=f(c,o);const W=A.dir*(A.ori==0?1:-1);let V=A.ori==0?ol:Cu,q=A.ori==0?a:(We,ce,Te,Re,qe,Ye,ht)=>{a(We,ce,Te,qe,Re,ht,Ye)},X=bt(c.bands,pu).find(We=>We.series[0]==o),G=X!=null?X.dir:0,Z=y.fillTo(c,o,y.min,y.max,G),ie=$(T(Z,k,D,I)),J,ae,me,ye=M,fe=$(y.width*xt),ke=!1,ot=null,Ft=null,ut=null,ft=null;l!=null&&(fe==0||s!=null)&&(ke=!0,ot=l.values(c,o,u,p),Ft=new Map,new Set(ot).forEach(We=>{We!=null&&Ft.set(We,new Path2D)}),fe>0&&(ut=s.values(c,o,u,p),ft=new Map,new Set(ut).forEach(We=>{We!=null&&ft.set(We,new Path2D)})));let{x0:ln,size:It}=g;if(ln!=null&&It!=null){_=1,x=ln.values(c,o,u,p),ln.unit==2&&(x=x.map(ce=>c.posToVal(E+ce*M,A.key,!0)));let We=It.values(c,o,u,p);It.unit==2?ae=We[0]*M:ae=b(We[0],A,M,E)-b(0,A,M,E),ye=Hg(x,R,b,A,M,E,ye),me=ye-ae+S}else ye=Hg(x,R,b,A,M,E,ye),me=ye*v+S,ae=ye-me;me<1&&(me=0),fe>=ae/2&&(fe=0),me<5&&($=jf);let Gt=me>0,qi=ye-me-(Gt?fe:0);ae=$(du(qi,O,L)),J=(_==0?ae/2:_==W?0:ae)-_*W*((_==0?S/2:0)+(Gt?fe/2:0));const _n={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Xt=ke?null:new Path2D;let Pe=null;if(X!=null)Pe=c.data[X.series[1]];else{let{y0:We,y1:ce}=g;We!=null&&ce!=null&&(R=ce.values(c,o,u,p),Pe=We.values(c,o,u,p))}let ze=F*ae,en=H*ae;for(let We=W==1?u:p;We>=u&&We<=p;We+=W){let ce=R[We];if(ce==null)continue;if(Pe!=null){let lt=Pe[We]??0;if(ce-lt==0)continue;ie=T(lt,k,D,I)}let Te=A.distr!=2||g!=null?x[We]:We,Re=b(Te,A,M,E),qe=T(bt(ce,Z),k,D,I),Ye=$(Re-J),ht=$(Nn(qe,ie)),dt=$(xi(qe,ie)),at=ht-dt;if(ce!=null){let lt=ce<0?en:ze,nt=ce<0?ze:en;ke?(fe>0&&ut[We]!=null&&V(ft.get(ut[We]),Ye,dt+di(fe/2),ae,Nn(0,at-fe),lt,nt),ot[We]!=null&&V(Ft.get(ot[We]),Ye,dt+di(fe/2),ae,Nn(0,at-fe),lt,nt)):V(Xt,Ye,dt+di(fe/2),ae,Nn(0,at-fe),lt,nt),q(c,o,We,Ye-fe/2,dt,ae+fe,at)}}return fe>0?_n.stroke=ke?ft:Xt:ke||(_n._fill=y.width==0?y._fill:y._stroke??y._fill,_n.width=0),_n.fill=ke?Ft:Xt,_n})}function R_(n,t){const e=bt(t==null?void 0:t.alignGaps,0);return(i,m,f,v)=>so(i,m,(w,h,g,a,l,s,c,o,u,p,y)=>{let x=w.pxRound,R=F=>x(s(F,a,p,o)),A=F=>x(c(F,l,y,u)),k,b,T;a.ori==0?(k=il,T=Wo,b=Og):(k=rl,T=Uo,b=Ng);const E=a.dir*(a.ori==0?1:-1);f=Fo(g,f,v,1),v=Fo(g,f,v,-1);let I=R(h[E==1?f:v]),M=I,D=[],$=[];for(let F=E==1?f:v;F>=f&&F<=v;F+=E)if(g[F]!=null){let H=h[F],W=R(H);D.push(M=W),$.push(A(g[F]))}const _={stroke:n(D,$,k,T,b,x),fill:null,clip:null,band:null,gaps:null,flags:jo},S=_.stroke;let[L,O]=$u(i,m);if(w.fill!=null||L!=0){let F=_.fill=new Path2D(S),H=w.fillTo(i,m,w.min,w.max,L),W=A(H);T(F,M,W),T(F,I,W)}if(!w.spanGaps){let F=[];F.push(...Su(h,g,f,v,E,R,e)),_.gaps=F=w.gaps(i,m,f,v,F),_.clip=nl(F,a.ori,o,u,p,y)}return O!=0&&(_.band=O==2?[or(i,m,f,v,S,-1),or(i,m,f,v,S,1)]:or(i,m,f,v,S,O)),_})}function L_(n){return R_(I_,n)}function I_(n,t,e,i,m,f){const v=n.length;if(v<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),v==2)i(w,n[1],t[1]);else{let h=Array(v),g=Array(v-1),a=Array(v-1),l=Array(v-1);for(let s=0;s<v-1;s++)a[s]=t[s+1]-t[s],l[s]=n[s+1]-n[s],g[s]=a[s]/l[s];h[0]=g[0];for(let s=1;s<v-1;s++)g[s]===0||g[s-1]===0||g[s-1]>0!=g[s]>0?h[s]=0:(h[s]=3*(l[s-1]+l[s])/((2*l[s]+l[s-1])/g[s-1]+(l[s]+2*l[s-1])/g[s]),isFinite(h[s])||(h[s]=0));h[v-1]=g[v-2];for(let s=0;s<v-1;s++)m(w,n[s]+l[s]/3,t[s]+h[s]*l[s]/3,n[s+1]-l[s]/3,t[s+1]-h[s+1]*l[s]/3,n[s+1],t[s+1])}return w}const Au=new Set;function Bg(){for(let n of Au)n.syncRect(!0)}No&&(no(px,Do,Bg),no(fx,Do,Bg,!0),no(qa,Do,()=>{Dn.pxRatio=xt}));const O_=Pg(),N_=Dg();function zg(n,t,e,i){return(i?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((m,f)=>Tu(m,f,t,e))}function D_(n,t){return n.map((e,i)=>i==0?{}:pn({},t,e))}function Tu(n,t,e,i){return pn({},t==0?e:i,n)}function jg(n,t,e){return t==null?Ho:[t,e]}const F_=jg;function P_(n,t,e){return t==null?Ho:Ka(t,e,cu,!0)}function Wg(n,t,e,i){return t==null?Ho:Ya(t,e,n.scales[i].log,!1)}const H_=Wg;function Ug(n,t,e,i){return t==null?Ho:lu(t,e,n.scales[i].log,!1)}const B_=Ug;function z_(n,t,e,i,m){let f=Nn(zf(n),zf(t)),v=t-n,w=Ii(m/i*v,e);do{let h=e[w],g=i*h/v;if(g>=m&&f+(h<5?Cr.get(h):0)<=17)return[h,g]}while(++w<e.length);return[0,0]}function Vg(n){let t,e;return n=n.replace(/(\d+)px/,(i,m)=>(t=bn((e=+m)*xt))+"px"),[n,t,e]}function j_(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Lt(t[2]*xt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Dn(n,t,e){const i={mode:bt(n.mode,1)},m=i.mode;function f(P,z){return((z.distr==3?rr(P>0?P:z.clamp(i,P,z.min,z.max,z.key)):z.distr==4?hu(P,z.asinh):z.distr==100?z.fwd(P):P)-z._min)/(z._max-z._min)}function v(P,z,Y,K){let te=f(P,z);return K+Y*(z.dir==-1?1-te:te)}function w(P,z,Y,K){let te=f(P,z);return K+Y*(z.dir==-1?te:1-te)}function h(P,z,Y,K){return z.ori==0?v(P,z,Y,K):w(P,z,Y,K)}i.valToPosH=v,i.valToPosV=w;let g=!1;i.status=0;const a=i.root=wi(K1);if(n.id!=null&&(a.id=n.id),ui(a,n.class),n.title){let P=wi(J1,a);P.textContent=n.title}const l=Li("canvas"),s=i.ctx=l.getContext("2d"),c=wi(X1,a);no("click",c,P=>{P.target===u&&(Be!=Fr||Pt!=Pr)&&$n.click(i,P)},!0);const o=i.under=wi(ex,c);c.appendChild(l);const u=i.over=wi(tx,c);n=Bo(n);const p=+bt(n.pxAlign,1),y=Eg(p);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(i,n)||n)});const x=n.ms||.001,R=i.series=m==1?zg(n.series||[],wg,Cg,!1):D_(n.series||[null],Sg),A=i.axes=zg(n.axes||[],yg,_g,!0),k=i.scales={},b=i.bands=n.bands||[];b.forEach(P=>{P.fill=vt(P.fill||null),P.dir=bt(P.dir,-1)});const T=m==2?R[1].facets[0].scale:R[0].scale,E={axes:Uh,series:Ml},I=(n.drawOrder||["axes","series"]).map(P=>E[P]);function M(P){let z=k[P];if(z==null){let Y=(n.scales||Rs)[P]||Rs;if(Y.from!=null)M(Y.from),k[P]=pn({},k[Y.from],Y,{key:P});else{z=k[P]=pn({},P==T?Ag:$_,Y),z.key=P;let K=z.time,te=z.range,oe=Ar(te);if((P!=T||m==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Ff:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Ff:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&Ja(te))){let de=te;te=(we,xe,_e)=>xe==null?Ho:Ka(xe,_e,de)}z.range=vt(te||(K?F_:P==T?z.distr==3?H_:z.distr==4?B_:jg:z.distr==3?Wg:z.distr==4?Ug:P_)),z.auto=vt(oe?!1:z.auto),z.clamp=vt(z.clamp||k_),z._min=z._max=null}}}M("x"),M("y"),m==1&&R.forEach(P=>{M(P.scale)}),A.forEach(P=>{M(P.scale)});for(let P in n.scales)M(P);const D=k[T],$=D.distr;let _,S;D.ori==0?(ui(a,Q1),_=v,S=w):(ui(a,Z1),_=w,S=v);const L={};for(let P in k){let z=k[P];(z.min!=null||z.max!=null)&&(L[P]={min:z.min,max:z.max},z.min=z.max=null)}const O=n.tzDate||(P=>new Date(bn(P/x))),F=n.fmtDate||fu,H=x==1?Qx(O):Xx(O),W=ug(O,cg(x==1?Kx:Jx,F)),V=dg(O,hg(t_,F)),q=[],X=i.legend=pn({},r_,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=vt(Z.width),Z.dash=vt(Z.dash),Z.stroke=vt(Z.stroke),Z.fill=vt(Z.fill);let ie,J,ae,me=[],ye=[],fe,ke=!1,ot={};if(X.live){const P=R[1]?R[1].values:null;ke=P!=null,fe=ke?P(i,1,0):{_:0};for(let z in fe)ot[z]=nu}if(G)if(ie=Li("table",ax,a),ae=Li("tbody",null,ie),X.mount(i,ie),ke){J=Li("thead",null,ie,ae);let P=Li("tr",null,J);Li("th",null,P);for(var Ft in fe)Li("th",kf,P).textContent=Ft}else ui(ie,cx),X.live&&ui(ie,lx);const ut={show:!0},ft={show:!1};function ln(P,z){if(z==0&&(ke||!X.live||m==2))return Ho;let Y=[],K=Li("tr",ux,ae,ae.childNodes[z]);ui(K,P.class),P.show||ui(K,to);let te=Li("th",null,K);if(Z.show){let we=wi(hx,te);if(z>0){let xe=Z.width(i,z);xe&&(we.style.border=xe+"px "+Z.dash(i,z)+" "+Z.stroke(i,z)),we.style.background=Z.fill(i,z)}}let oe=wi(kf,te);oe.textContent=P.label,z>0&&(Z.show||(oe.style.color=P.width>0?Z.stroke(i,z):Z.fill(i,z)),Gt("click",te,we=>{if(He._lock)return;ar(we);let xe=R.indexOf(P);if((we.ctrlKey||we.metaKey)!=X.isolate){let _e=R.some((Ce,Me)=>Me>0&&Me!=xe&&Ce.show);R.forEach((Ce,Me)=>{Me>0&&En(Me,_e?Me==xe?ut:ft:ut,!0,Yt.setSeries)})}else En(xe,{show:!P.show},!0,Yt.setSeries)},!1),Yi&&Gt(Tf,te,we=>{He._lock||(ar(we),En(R.indexOf(P),hr,!0,Yt.setSeries))},!1));for(var de in fe){let we=Li("td",dx,K);we.textContent="--",Y.push(we)}return[K,Y]}const It=new Map;function Gt(P,z,Y,K=!0){const te=It.get(z)||{},oe=He.bind[P](i,z,Y,K);oe&&(no(P,z,te[P]=oe),It.set(z,te))}function qi(P,z,Y){const K=It.get(z)||{};for(let te in K)(P==null||te==P)&&(au(te,z,K[te]),delete K[te]);P==null&&It.delete(z)}let _n=0,Xt=0,Pe=0,ze=0,en=0,We=0,ce=en,Te=We,Re=Pe,qe=ze,Ye=0,ht=0,dt=0,at=0;i.bbox={};let lt=!1,nt=!1,zt=!1,Pn=!1,sr=!1,ti=!1;function Bs(P,z,Y){(Y||P!=i.width||z!=i.height)&&zs(P,z),cr(!1),zt=!0,nt=!0,Nr()}function zs(P,z){i.width=_n=Pe=P,i.height=Xt=ze=z,en=We=0,Hh(),Bh();let Y=i.bbox;Ye=Y.left=ro(en*xt,.5),ht=Y.top=ro(We*xt,.5),dt=Y.width=ro(Pe*xt,.5),at=Y.height=ro(ze*xt,.5)}const kl=3;function Fh(){let P=!1,z=0;for(;!P;){z++;let Y=Ll(z),K=Il(z);P=z==kl||Y&&K,P||(zs(i.width,i.height),nt=!0)}}function Ph({width:P,height:z}){Bs(P,z)}i.setSize=Ph;function Hh(){let P=!1,z=!1,Y=!1,K=!1;A.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:we}=te,xe=de%2,_e=te.label!=null?te.labelSize:0,Ce=we+_e;Ce>0&&(xe?(Pe-=Ce,de==3?(en+=Ce,K=!0):Y=!0):(ze-=Ce,de==0?(We+=Ce,P=!0):z=!0))}}),lr[0]=P,lr[1]=Y,lr[2]=z,lr[3]=K,Pe-=Ki[1]+Ki[3],en+=Ki[3],ze-=Ki[2]+Ki[0],We+=Ki[0]}function Bh(){let P=en+Pe,z=We+ze,Y=en,K=We;function te(oe,de){switch(oe){case 1:return P+=de,P-de;case 2:return z+=de,z-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}A.forEach((oe,de)=>{if(oe.show&&oe._show){let we=oe.side;oe._pos=te(we,oe._size),oe.label!=null&&(oe._lpos=te(we,oe.labelSize))}})}const He=i.cursor=pn({},u_,{drag:{y:m==2}},n.cursor);if(He.dataIdx==null){let P=He.hover,z=P.skip=new Set(P.skip??[]);z.add(void 0);let Y=P.prox=vt(P.prox),K=P.bias??(P.bias=0);He.dataIdx=(te,oe,de,we)=>{if(oe==0)return de;let xe=de,_e=Y(te,oe,de,we)??mt,Ce=_e>=0&&_e<mt,Me=D.ori==0?Pe:ze,Ke=He.left,Mt=t[0],it=t[oe];if(z.has(it[de])){xe=null;let Ge=null,Ze=null,Le;if(K==0||K==-1)for(Le=de;Ge==null&&Le-- >0;)z.has(it[Le])||(Ge=Le);if(K==0||K==1)for(Le=de;Ze==null&&Le++<it.length;)z.has(it[Le])||(Ze=Le);if(Ge!=null||Ze!=null)if(Ce){let St=Ge==null?-1/0:_(Mt[Ge],D,Me,0),Kt=Ze==null?1/0:_(Mt[Ze],D,Me,0),Ut=Ke-St,Nt=Kt-Ke;Ut<=Nt?Ut<=_e&&(xe=Ge):Nt<=_e&&(xe=Ze)}else xe=Ze==null?Ge:Ge==null?Ze:de-Ge<=Ze-de?Ge:Ze}else Ce&&wn(Ke-_(Mt[de],D,Me,0))>_e&&(xe=null);return xe}}const ar=P=>{He.event=P};He.idxs=q,He._lock=!1;let Mn=He.points;Mn.show=vt(Mn.show),Mn.size=vt(Mn.size),Mn.stroke=vt(Mn.stroke),Mn.width=vt(Mn.width),Mn.fill=vt(Mn.fill);const Gi=i.focus=pn({},n.focus||{alpha:.3},He.focus),Yi=Gi.prox>=0,Tr=Yi&&Mn.one;let Hn=[],Mr=[],Er=[];function $l(P,z){let Y=Mn.show(i,z);if(Y)return ui(Y,sx),ui(Y,P.class),ji(Y,-10,-10,Pe,ze),u.insertBefore(Y,Hn[z]),Y}function Sl(P,z){if(m==1||z>0){let Y=m==1&&k[P.scale].time,K=P.value;P.value=Y?Kf(K)?dg(O,hg(K,F)):K||V:K||b_,P.label=P.label||(Y?d_:h_)}if(Tr||z>0){P.width=P.width==null?1:P.width,P.paths=P.paths||O_||$x,P.fillTo=vt(P.fillTo||S_),P.pxAlign=+bt(P.pxAlign,p),P.pxRound=Eg(P.pxAlign),P.stroke=vt(P.stroke||null),P.fill=vt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=x_(Nn(1,P.width),1),K=P.points=pn({},{size:Y,width:Nn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:N_,_stroke:null,_fill:null},P.points);K.show=vt(K.show),K.filter=vt(K.filter),K.fill=vt(K.fill),K.stroke=vt(K.stroke),K.paths=vt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=ln(P,z);me.splice(z,0,Y[0]),ye.splice(z,0,Y[1]),X.values.push(null)}if(He.show){q.splice(z,0,null);let Y=null;Tr?z==0&&(Y=$l(P,z)):z>0&&(Y=$l(P,z)),Hn.splice(z,0,Y),Mr.splice(z,0,0),Er.splice(z,0,0)}tn("addSeries",z)}function zh(P,z){z=z??R.length,P=m==1?Tu(P,z,wg,Cg):Tu(P,z,{},Sg),R.splice(z,0,P),Sl(R[z],z)}i.addSeries=zh;function jh(P){if(R.splice(P,1),G){X.values.splice(P,1),ye.splice(P,1);let z=me.splice(P,1)[0];qi(null,z.firstChild),z.remove()}He.show&&(q.splice(P,1),Hn.splice(P,1)[0].remove(),Mr.splice(P,1),Er.splice(P,1)),tn("delSeries",P)}i.delSeries=jh;const lr=[!1,!1,!1,!1];function Wh(P,z){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?R[1].scale:T,K=k[P.scale]);let te=K.time;P.size=vt(P.size),P.space=vt(P.space),P.rotate=vt(P.rotate),Ar(P.incrs)&&P.incrs.forEach(de=>{!Cr.has(de)&&Cr.set(de,Gf(de))}),P.incrs=vt(P.incrs||(K.distr==2?qx:te?x==1?Yx:Zx:oo)),P.splits=vt(P.splits||(te&&K.distr==1?H:K.distr==3?xu:K.distr==4?g_:f_)),P.stroke=vt(P.stroke),P.grid.stroke=vt(P.grid.stroke),P.ticks.stroke=vt(P.ticks.stroke),P.border.stroke=vt(P.border.stroke);let oe=P.values;P.values=Ar(oe)&&!Ar(oe[0])?vt(oe):te?Ar(oe)?ug(O,cg(oe,F)):Kf(oe)?e_(O,oe):oe||W:oe||p_,P.filter=vt(P.filter||(K.distr>=3&&K.log==10?y_:K.distr==3&&K.log==2?w_:Wf)),P.font=Vg(P.font),P.labelFont=Vg(P.labelFont),P._size=P.size(i,null,z,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(lr[z]=!0,P._el=wi(nx,c))}}function Rr(P,z,Y,K){let[te,oe,de,we]=Y,xe=z%2,_e=0;return xe==0&&(we||oe)&&(_e=z==0&&!te||z==2&&!de?bn(yg.size/3):0),xe==1&&(te||de)&&(_e=z==1&&!oe||z==3&&!we?bn(_g.size/2):0),_e}const Cl=i.padding=(n.padding||[Rr,Rr,Rr,Rr]).map(P=>vt(bt(P,Rr))),Ki=i._padding=Cl.map((P,z)=>P(i,z,lr,0));let kn,fn=null,gn=null;const Yo=m==1?R[0].idxs:null;let Bn=null,uo=!1;function ho(P,z){if(t=P??[],i.data=i._data=t,m==2){kn=0;for(let Y=1;Y<R.length;Y++)kn+=t[Y][0].length}else{t.length==0&&(i.data=i._data=t=[[]]),Bn=t[0],kn=Bn.length;let Y=t;if($==2){Y=t.slice();let K=Y[0]=Array(kn);for(let te=0;te<kn;te++)K[te]=te}i._data=t=Y}if(cr(!0),tn("setData"),$==2&&(zt=!0),z!==!1){let Y=D;Y.auto(i,uo)?js():ki(T,Y.min,Y.max),Pn=Pn||He.left>=0,ti=!0,Nr()}}i.setData=ho;function js(){uo=!0;let P,z;m==1&&(kn>0?(fn=Yo[0]=0,gn=Yo[1]=kn-1,P=t[0][fn],z=t[0][gn],$==2?(P=fn,z=gn):P==z&&($==3?[P,z]=Ya(P,P,D.log,!1):$==4?[P,z]=lu(P,P,D.log,!1):D.time?z=P+bn(86400/x):[P,z]=Ka(P,z,cu,!0))):(fn=Yo[0]=P=null,gn=Yo[1]=z=null)),ki(T,P,z)}let Ko,Lr,Qo,Zo,Jo,Ws,Us,Vs,qs,_i;function Gs(P,z,Y,K,te,oe){P??(P=Sf),Y??(Y=pu),K??(K="butt"),te??(te=Sf),oe??(oe="round"),P!=Ko&&(s.strokeStyle=Ko=P),te!=Lr&&(s.fillStyle=Lr=te),z!=Qo&&(s.lineWidth=Qo=z),oe!=Jo&&(s.lineJoin=Jo=oe),K!=Ws&&(s.lineCap=Ws=K),Y!=Zo&&s.setLineDash(Zo=Y)}function Ys(P,z,Y,K){z!=Lr&&(s.fillStyle=Lr=z),P!=Us&&(s.font=Us=P),Y!=Vs&&(s.textAlign=Vs=Y),K!=qs&&(s.textBaseline=qs=K)}function po(P,z,Y,K,te=0){if(K.length>0&&P.auto(i,uo)&&(z==null||z.min==null)){let oe=bt(fn,0),de=bt(gn,K.length-1),we=Y.min==null?P.distr==3?yx(K,oe,de):vx(K,oe,de,te):[Y.min,Y.max];P.min=xi(P.min,Y.min=we[0]),P.max=Nn(P.max,Y.max=we[1])}}const Al={min:null,max:null};function Tl(){for(let K in k){let te=k[K];L[K]==null&&(te.min==null||L[T]!=null&&te.auto(i,uo))&&(L[K]=Al)}for(let K in k){let te=k[K];L[K]==null&&te.from!=null&&L[te.from]!=null&&(L[K]=Al)}L[T]!=null&&cr(!0);let P={};for(let K in L){let te=L[K];if(te!=null){let oe=P[K]=Bo(k[K],Ax);if(te.min!=null)pn(oe,te);else if(K!=T||m==2)if(kn==0&&oe.from==null){let de=oe.range(i,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=mt,oe.max=-mt}}if(kn>0){R.forEach((K,te)=>{if(m==1){let oe=K.scale,de=L[oe];if(de==null)return;let we=P[oe];if(te==0){let xe=we.range(i,we.min,we.max,oe);we.min=xe[0],we.max=xe[1],fn=Ii(we.min,t[0]),gn=Ii(we.max,t[0]),gn-fn>1&&(t[0][fn]<we.min&&fn++,t[0][gn]>we.max&&gn--),K.min=Bn[fn],K.max=Bn[gn]}else K.show&&K.auto&&po(we,de,K,t[te],K.sorted);K.idxs[0]=fn,K.idxs[1]=gn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,we=oe.scale,xe=de.scale,[_e,Ce]=t[te],Me=P[we],Ke=P[xe];Me!=null&&po(Me,L[we],oe,_e,oe.sorted),Ke!=null&&po(Ke,L[xe],de,Ce,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=L[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(i,te.min==mt?null:te.min,te.max==-mt?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(i,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let z={},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?rr(oe.min):de==4?hu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?rr(oe.max):de==4?hu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,z[K]=Y=!0}}if(Y){R.forEach((K,te)=>{m==2?te>0&&z.y&&(K._paths=null):z[K.scale]&&(K._paths=null)});for(let K in z)zt=!0,tn("setScale",K);He.show&&He.left>=0&&(Pn=ti=!0)}for(let K in L)L[K]=null}function Xo(P){let z=du(fn-1,0,kn-1),Y=du(gn+1,0,kn-1);for(;P[z]==null&&z>0;)z--;for(;P[Y]==null&&Y<kn-1;)Y++;return[z,Y]}function Ml(){kn>0&&(R.forEach((P,z)=>{if(z>0&&P.show&&(El(z,!1),El(z,!0),P._paths==null)){_i!=P.alpha&&(s.globalAlpha=_i=P.alpha);let Y=m==2?[0,t[z][0].length-1]:Xo(t[z]);P._paths=P.paths(i,z,Y[0],Y[1]),_i!=1&&(s.globalAlpha=_i=1)}}),R.forEach((P,z)=>{if(z>0&&P.show){_i!=P.alpha&&(s.globalAlpha=_i=P.alpha),P._paths!=null&&Ks(z,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(i,z,fn,gn,Y),te=P.points.filter(i,z,K,Y);(K||te)&&(P.points._paths=P.points.paths(i,z,fn,gn,te),Ks(z,!0))}_i!=1&&(s.globalAlpha=_i=1),tn("drawSeries",z)}}))}function El(P,z){let Y=z?R[P].points:R[P];Y._stroke=Y.stroke(i,P),Y._fill=Y.fill(i,P)}function Ks(P,z){let Y=z?R[P].points:R[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:we=Y._stroke,_fill:xe=Y._fill,_width:_e=Y.width}=Y._paths;_e=Lt(_e*xt,3);let Ce=null,Me=_e%2/2;z&&xe==null&&(xe=_e>0?"#fff":we);let Ke=Y.pxAlign==1&&Me>0;if(Ke&&s.translate(Me,Me),!z){let Mt=Ye-_e/2,it=ht-_e/2,Ge=dt+_e,Ze=at+_e;Ce=new Path2D,Ce.rect(Mt,it,Ge,Ze)}z?Qs(we,_e,Y.dash,Y.cap,xe,K,te,de,oe):Rl(P,we,_e,Y.dash,Y.cap,xe,K,te,de,Ce,oe),Ke&&s.translate(-Me,-Me)}function Rl(P,z,Y,K,te,oe,de,we,xe,_e,Ce){let Me=!1;xe!=0&&b.forEach((Ke,Mt)=>{if(Ke.series[0]==P){let it=R[Ke.series[1]],Ge=t[Ke.series[1]],Ze=(it._paths||Rs).band;Ar(Ze)&&(Ze=Ke.dir==1?Ze[0]:Ze[1]);let Le,St=null;it.show&&Ze&&bx(Ge,fn,gn)?(St=Ke.fill(i,Mt)||oe,Le=it._paths.clip):Ze=null,Qs(z,Y,K,te,St,de,we,xe,_e,Ce,Le,Ze),Me=!0}}),Me||Qs(z,Y,K,te,oe,de,we,xe,_e,Ce)}const es=jo|ku;function Qs(P,z,Y,K,te,oe,de,we,xe,_e,Ce,Me){Gs(P,z,Y,K,te),(xe||_e||Me)&&(s.save(),xe&&s.clip(xe),_e&&s.clip(_e)),Me?(we&es)==es?(s.clip(Me),Ce&&s.clip(Ce),Ir(te,de),fo(P,oe,z)):we&ku?(Ir(te,de),s.clip(Me),fo(P,oe,z)):we&jo&&(s.save(),s.clip(Me),Ce&&s.clip(Ce),Ir(te,de),s.restore(),fo(P,oe,z)):(Ir(te,de),fo(P,oe,z)),(xe||_e||Me)&&s.restore()}function fo(P,z,Y){Y>0&&(z instanceof Map?z.forEach((K,te)=>{s.strokeStyle=Ko=te,s.stroke(K)}):z!=null&&P&&s.stroke(z))}function Ir(P,z){z instanceof Map?z.forEach((Y,K)=>{s.fillStyle=Lr=K,s.fill(Y)}):z!=null&&P&&s.fill(z)}function Zs(P,z,Y,K){let te=A[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(i,P,z,Y,K),we=te._incrs=te.incrs(i,P,z,Y,K,de);oe=z_(z,Y,we,K,de)}return te._found=oe}function Qi(P,z,Y,K,te,oe,de,we,xe,_e){let Ce=de%2/2;p==1&&s.translate(Ce,Ce),Gs(we,de,xe,_e,we),s.beginPath();let Me,Ke,Mt,it,Ge=te+(K==0||K==3?-oe:oe);Y==0?(Ke=te,it=Ge):(Me=te,Mt=Ge);for(let Ze=0;Ze<P.length;Ze++)z[Ze]!=null&&(Y==0?Me=Mt=P[Ze]:Ke=it=P[Ze],s.moveTo(Me,Ke),s.lineTo(Mt,it));s.stroke(),p==1&&s.translate(-Ce,-Ce)}function Ll(P){let z=!0;return A.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(z=!1,Y._show=!1,cr(!1));return}else Y._show||(z=!1,Y._show=!0,cr(!1));let oe=Y.side,de=oe%2,{min:we,max:xe}=te,[_e,Ce]=Zs(K,we,xe,de==0?Pe:ze);if(Ce==0)return;let Me=te.distr==2,Ke=Y._splits=Y.splits(i,K,we,xe,_e,Ce,Me),Mt=te.distr==2?Ke.map(Le=>Bn[Le]):Ke,it=te.distr==2?Bn[Ke[1]]-Bn[Ke[0]]:_e,Ge=Y._values=Y.values(i,Y.filter(i,Mt,K,Ce,it),K,Ce,it);Y._rotate=oe==2?Y.rotate(i,Ge,K,Ce):0;let Ze=Y._size;Y._size=bi(Y.size(i,Ge,K,P)),Ze!=null&&Y._size!=Ze&&(z=!1)}),z}function Il(P){let z=!0;return Cl.forEach((Y,K)=>{let te=Y(i,K,lr,P);te!=Ki[K]&&(z=!1),Ki[K]=te}),z}function Uh(){for(let P=0;P<A.length;P++){let z=A[P];if(!z.show||!z._show)continue;let Y=z.side,K=Y%2,te,oe,de=z.stroke(i,P),we=Y==0||Y==3?-1:1;if(z.label){let Cn=z.labelGap*we,Gn=bn((z._lpos+Cn)*xt);Ys(z.labelFont[0],de,"center",Y==2?Ts:$f),s.save(),K==1?(te=oe=0,s.translate(Gn,bn(ht+at/2)),s.rotate((Y==3?-Qa:Qa)/2)):(te=bn(Ye+dt/2),oe=Gn),s.fillText(z.label,te,oe),s.restore()}let[xe,_e]=z._found;if(_e==0)continue;let Ce=k[z.scale],Me=K==0?dt:at,Ke=K==0?Ye:ht,Mt=bn(z.gap*xt),it=z._splits,Ge=Ce.distr==2?it.map(Cn=>Bn[Cn]):it,Ze=Ce.distr==2?Bn[it[1]]-Bn[it[0]]:xe,Le=z.ticks,St=z.border,Kt=Le.show?bn(Le.size*xt):0,Ut=z._rotate*-Qa/180,Nt=y(z._pos*xt),Dt=(Kt+Mt)*we,ne=Nt+Dt;oe=K==0?ne:0,te=K==1?ne:0;let le=z.font[0],se=z.align==1?Oo:z.align==2?Xc:Ut>0?Oo:Ut<0?Xc:K==0?"center":Y==3?Xc:Oo,$e=Ut||K==1?"middle":Y==2?Ts:$f;Ys(le,de,se,$e);let Fe=z.font[1]*z.lineGap,Qe=it.map(Cn=>y(h(Cn,Ce,Me,Ke))),Ct=z._values;for(let Cn=0;Cn<Ct.length;Cn++){let Gn=Ct[Cn];if(Gn!=null){K==0?te=Qe[Cn]:oe=Qe[Cn],Gn=""+Gn;let An=Gn.indexOf(`
1413
- `)==-1?[Gn]:Gn.split(/\n/gm);for(let fi=0;fi<An.length;fi++){let ri=An[fi];Ut?(s.save(),s.translate(te,oe+fi*Fe),s.rotate(Ut),s.fillText(ri,0,0),s.restore()):s.fillText(ri,te,oe+fi*Fe)}}}Le.show&&Qi(Qe,Le.filter(i,Ge,P,_e,Ze),K,Y,Nt,Kt,Lt(Le.width*xt,3),Le.stroke(i,P),Le.dash,Le.cap);let Je=z.grid;Je.show&&Qi(Qe,Je.filter(i,Ge,P,_e,Ze),K,K==0?2:1,K==0?ht:Ye,K==0?at:dt,Lt(Je.width*xt,3),Je.stroke(i,P),Je.dash,Je.cap),St.show&&Qi([Nt],[1],K==0?1:0,K==0?1:2,K==1?ht:Ye,K==1?at:dt,Lt(St.width*xt,3),St.stroke(i,P),St.dash,St.cap)}tn("drawAxes")}function cr(P){R.forEach((z,Y)=>{Y>0&&(z._paths=null,P&&(m==1?(z.min=null,z.max=null):z.facets.forEach(K=>{K.min=null,K.max=null})))})}let go=!1,ts=!1,Or=[];function Vh(){ts=!1;for(let P=0;P<Or.length;P++)tn(...Or[P]);Or.length=0}function Nr(){go||(Ox(Js),go=!0)}function qh(P,z=!1){go=!0,ts=z,P(i),Js(),z&&Or.length>0&&queueMicrotask(Vh)}i.batch=qh;function Js(){if(lt&&(Tl(),lt=!1),zt&&(Fh(),zt=!1),nt){if(Bt(o,Oo,en),Bt(o,Ts,We),Bt(o,Cs,Pe),Bt(o,As,ze),Bt(u,Oo,en),Bt(u,Ts,We),Bt(u,Cs,Pe),Bt(u,As,ze),Bt(c,Cs,_n),Bt(c,As,Xt),l.width=bn(_n*xt),l.height=bn(Xt*xt),A.forEach(({_el:P,_show:z,_size:Y,_pos:K,side:te})=>{if(P!=null)if(z){let oe=te===3||te===0?Y:0,de=te%2==1;Bt(P,de?"left":"top",K-oe),Bt(P,de?"width":"height",Y),Bt(P,de?"top":"left",de?We:en),Bt(P,de?"height":"width",de?ze:Pe),ou(P,to)}else ui(P,to)}),Ko=Lr=Qo=Jo=Ws=Us=Vs=qs=Zo=null,_i=1,vo(!0),en!=ce||We!=Te||Pe!=Re||ze!=qe){cr(!1);let P=Pe/Re,z=ze/qe;if(He.show&&!Pn&&He.left>=0){He.left*=P,He.top*=z,Dr&&ji(Dr,bn(He.left),0,Pe,ze),Zi&&ji(Zi,0,bn(He.top),Pe,ze);for(let Y=0;Y<Hn.length;Y++){let K=Hn[Y];K!=null&&(Mr[Y]*=P,Er[Y]*=z,ji(K,bi(Mr[Y]),bi(Er[Y]),Pe,ze))}}if(Ot.show&&!sr&&Ot.left>=0&&Ot.width>0){Ot.left*=P,Ot.width*=P,Ot.top*=z,Ot.height*=z;for(let Y in ra)Bt(ur,Y,Ot[Y])}ce=en,Te=We,Re=Pe,qe=ze}tn("setSize"),nt=!1}_n>0&&Xt>0&&(s.clearRect(0,0,l.width,l.height),tn("drawClear"),I.forEach(P=>P()),tn("draw")),Ot.show&&sr&&(ns(Ot),sr=!1),He.show&&Pn&&(zn(null,!0,!1),Pn=!1),X.show&&X.live&&ti&&(mo(),ti=!1),g||(g=!0,i.status=1,tn("ready")),uo=!1,go=!1}i.redraw=(P,z)=>{zt=z||!1,P!==!1?ki(T,D.min,D.max):Nr()};function Xs(P,z){let Y=k[P];if(Y.from==null){if(kn==0){let K=Y.range(i,z.min,z.max,P);z.min=K[0],z.max=K[1]}if(z.min>z.max){let K=z.min;z.min=z.max,z.max=K}if(kn>1&&z.min!=null&&z.max!=null&&z.max-z.min<1e-16)return;P==T&&Y.distr==2&&kn>0&&(z.min=Ii(z.min,t[0]),z.max=Ii(z.max,t[0]),z.min==z.max&&z.max++),L[P]=z,lt=!0,Nr()}}i.setScale=Xs;let ea,ta,Dr,Zi,Ol,Nl,Fr,Pr,Dl,Rt,Be,Pt,Ji=!1;const $n=He.drag;let mn=$n.x,vn=$n.y;He.show&&(He.x&&(ea=wi(rx,u)),He.y&&(ta=wi(ox,u)),D.ori==0?(Dr=ea,Zi=ta):(Dr=ta,Zi=ea),Be=He.left,Pt=He.top);const Ot=i.select=pn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),ur=Ot.show?wi(ix,Ot.over?u:o):null;function ns(P,z){if(Ot.show){for(let Y in P)Ot[Y]=P[Y],Y in ra&&Bt(ur,Y,P[Y]);z!==!1&&tn("setSelect")}}i.setSelect=ns;function Sn(P,z){let Y=R[P],K=G?me[P]:null;if(Y.show)K&&ou(K,to);else{K&&ui(K,to);let te=Tr?Hn[0]:Hn[P];ji(te,-10,-10,Pe,ze)}}function ki(P,z,Y){Xs(P,{min:z,max:Y})}function En(P,z,Y,K){z.focus!=null&&Hl(P),z.show!=null&&R.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=z.show,Sn(oe,z.show),m==2?(ki(te.facets[0].scale,null,null),ki(te.facets[1].scale,null,null)):ki(te.scale,null,null),Nr())}),Y!==!1&&tn("setSeries",P,z),K&&Di("setSeries",i,P,z)}i.setSeries=En;function Fl(P,z){pn(b[P],z)}function na(P,z){P.fill=vt(P.fill||null),P.dir=bt(P.dir,-1),z=z??b.length,b.splice(z,0,P)}function ni(P){P==null?b.length=0:b.splice(P,1)}i.addBand=na,i.setBand=Fl,i.delBand=ni;function Pl(P,z){R[P].alpha=z,He.show&&Hn[P]&&(Hn[P].style.opacity=z),G&&me[P]&&(me[P].style.opacity=z)}let $i,Ni,Xi;const hr={focus:!0};function Hl(P){if(P!=Xi){let z=P==null,Y=Gi.alpha!=1;R.forEach((K,te)=>{if(m==1||te>0){let oe=z||te==0||te==P;K._focus=z?null:oe,Y&&Pl(te,oe?1:Gi.alpha)}}),Xi=P,Y&&Nr()}}G&&Yi&&Gt(Mf,ie,P=>{He._lock||(ar(P),Xi!=null&&En(null,hr,!0,Yt.setSeries))});function Wt(P,z,Y){let K=k[z];Y&&(P=P/xt-(K.ori==1?We:en));let te=Pe;K.ori==1&&(te=ze,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,we=P/te,xe=oe+(de-oe)*we,_e=K.distr;return _e==3?Po(10,xe):_e==4?_x(xe,K.asinh):_e==100?K.bwd(xe):xe}function Gh(P,z){let Y=Wt(P,T,z);return Ii(Y,t[0],fn,gn)}i.valToIdx=P=>Ii(P,t[0]),i.posToIdx=Gh,i.posToVal=Wt,i.valToPos=(P,z,Y)=>k[z].ori==0?v(P,k[z],Y?dt:Pe,Y?Ye:0):w(P,k[z],Y?at:ze,Y?ht:0),i.setCursor=(P,z,Y)=>{Be=P.left,Pt=P.top,zn(null,z,Y)};function qn(P,z){Bt(ur,Oo,Ot.left=P),Bt(ur,Cs,Ot.width=z)}function Bl(P,z){Bt(ur,Ts,Ot.top=P),Bt(ur,As,Ot.height=z)}let Hr=D.ori==0?qn:Bl,ii=D.ori==1?qn:Bl;function is(){if(G&&X.live)for(let P=m==2?1:0;P<R.length;P++){if(P==0&&ke)continue;let z=X.values[P],Y=0;for(let K in z)ye[P][Y++].firstChild.nodeValue=z[K]}}function mo(P,z){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):Cx(P.idx)||q.fill(P.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<R.length;Y++)(Y>0||m==1&&!ke)&&Ht(Y,q[Y]);is()}ti=!1,z!==!1&&tn("setLegend")}i.setLegend=mo;function Ht(P,z){let Y=R[P],K=P==0&&$==2?Bn:t[P],te;ke?te=Y.values(i,P,z)??ot:(te=Y.value(i,z==null?null:K[z],P,z),te=te==null?ot:{_:te}),X.values[P]=te}function zn(P,z,Y){Dl=Be,Rt=Pt,[Be,Pt]=He.move(i,Be,Pt),He.left=Be,He.top=Pt,He.show&&(Dr&&ji(Dr,bn(Be),0,Pe,ze),Zi&&ji(Zi,0,bn(Pt),Pe,ze));let K,te=fn>gn;$i=mt,Ni=null;let oe=D.ori==0?Pe:ze,de=D.ori==1?Pe:ze;if(Be<0||kn==0||te){K=He.idx=null;for(let we=0;we<R.length;we++){let xe=Hn[we];xe!=null&&ji(xe,-10,-10,Pe,ze)}Yi&&En(null,hr,!0,P==null&&Yt.setSeries),X.live&&(q.fill(K),ti=!0)}else{let we,xe,_e;m==1&&(we=D.ori==0?Be:Pt,xe=Wt(we,T),K=He.idx=Ii(xe,t[0],fn,gn),_e=_(t[0][K],D,oe,0));let Ce=-10,Me=-10,Ke=0,Mt=0,it=!0,Ge="",Ze="";for(let Le=m==2?1:0;Le<R.length;Le++){let St=R[Le],Kt=q[Le],Ut=Kt==null?null:m==1?t[Le][Kt]:t[Le][1][Kt],Nt=He.dataIdx(i,Le,K,xe),Dt=Nt==null?null:m==1?t[Le][Nt]:t[Le][1][Nt];ti=ti||Dt!=Ut||Nt!=Kt,q[Le]=Nt;let ne=Nt==K?_e:_(m==1?t[0][Nt]:t[Le][0][Nt],D,oe,0);if(Le>0&&St.show){let le=Dt==null?-10:S(Dt,m==1?k[St.scale]:k[St.facets[1].scale],de,0);if(Yi&&Dt!=null){let se=D.ori==1?Be:Pt,$e=wn(Gi.dist(i,Le,Nt,le,se));if($e<$i){let Fe=Gi.bias;if(Fe!=0){let Qe=Wt(se,St.scale),Ct=Dt>=0?1:-1,Je=Qe>=0?1:-1;Je==Ct&&(Je==1?Fe==1?Dt>=Qe:Dt<=Qe:Fe==1?Dt<=Qe:Dt>=Qe)&&($i=$e,Ni=Le)}else $i=$e,Ni=Le}}if(ti||Tr){let se,$e;D.ori==0?(se=ne,$e=le):(se=le,$e=ne);let Fe,Qe,Ct,Je,Cn,Gn,An=!0,fi=Mn.bbox;if(fi!=null){An=!1;let ri=fi(i,Le);Ct=ri.left,Je=ri.top,Fe=ri.width,Qe=ri.height}else Ct=se,Je=$e,Fe=Qe=Mn.size(i,Le);if(Gn=Mn.fill(i,Le),Cn=Mn.stroke(i,Le),Tr)Le==Ni&&$i<=Gi.prox&&(Ce=Ct,Me=Je,Ke=Fe,Mt=Qe,it=An,Ge=Gn,Ze=Cn);else{let ri=Hn[Le];ri!=null&&(Mr[Le]=Ct,Er[Le]=Je,Df(ri,Fe,Qe,An),Of(ri,Gn,Cn),ji(ri,bi(Ct),bi(Je),Pe,ze))}}}}if(Tr){let Le=Gi.prox,St=Xi==null?$i<=Le:$i>Le||Ni!=Xi;if(ti||St){let Kt=Hn[0];Mr[0]=Ce,Er[0]=Me,Df(Kt,Ke,Mt,it),Of(Kt,Ge,Ze),ji(Kt,bi(Ce),bi(Me),Pe,ze)}}}if(Ot.show&&Ji)if(P!=null){let[we,xe]=Yt.scales,[_e,Ce]=Yt.match,[Me,Ke]=P.cursor.sync.scales,Mt=P.cursor.drag;if(mn=Mt._x,vn=Mt._y,mn||vn){let{left:it,top:Ge,width:Ze,height:Le}=P.select,St=P.scales[Me].ori,Kt=P.posToVal,Ut,Nt,Dt,ne,le,se=we!=null&&_e(we,Me),$e=xe!=null&&Ce(xe,Ke);se&&mn?(St==0?(Ut=it,Nt=Ze):(Ut=Ge,Nt=Le),Dt=k[we],ne=_(Kt(Ut,Me),Dt,oe,0),le=_(Kt(Ut+Nt,Me),Dt,oe,0),Hr(xi(ne,le),wn(le-ne))):Hr(0,oe),$e&&vn?(St==1?(Ut=it,Nt=Ze):(Ut=Ge,Nt=Le),Dt=k[xe],ne=S(Kt(Ut,Ke),Dt,de,0),le=S(Kt(Ut+Nt,Ke),Dt,de,0),ii(xi(ne,le),wn(le-ne))):ii(0,de)}else os()}else{let we=wn(Dl-Ol),xe=wn(Rt-Nl);if(D.ori==1){let Ke=we;we=xe,xe=Ke}mn=$n.x&&we>=$n.dist,vn=$n.y&&xe>=$n.dist;let _e=$n.uni;_e!=null?mn&&vn&&(mn=we>=_e,vn=xe>=_e,!mn&&!vn&&(xe>we?vn=!0:mn=!0)):$n.x&&$n.y&&(mn||vn)&&(mn=vn=!0);let Ce,Me;mn&&(D.ori==0?(Ce=Fr,Me=Be):(Ce=Pr,Me=Pt),Hr(xi(Ce,Me),wn(Me-Ce)),vn||ii(0,de)),vn&&(D.ori==1?(Ce=Fr,Me=Be):(Ce=Pr,Me=Pt),ii(xi(Ce,Me),wn(Me-Ce)),mn||Hr(0,oe)),!mn&&!vn&&(Hr(0,0),ii(0,0))}if($n._x=mn,$n._y=vn,P==null){if(Y){if(jn!=null){let[we,xe]=Yt.scales;Yt.values[0]=we!=null?Wt(D.ori==0?Be:Pt,we):null,Yt.values[1]=xe!=null?Wt(D.ori==1?Be:Pt,xe):null}Di(Cf,i,Be,Pt,Pe,ze,K)}if(Yi){let we=Y&&Yt.setSeries,xe=Gi.prox;Xi==null?$i<=xe&&En(Ni,hr,!0,we):$i>xe?En(null,hr,!0,we):Ni!=Xi&&En(Ni,hr,!0,we)}}ti&&(X.idx=K,mo()),z!==!1&&tn("setCursor")}let Si=null;Object.defineProperty(i,"rect",{get(){return Si==null&&vo(!1),Si}});function vo(P=!1){P?Si=null:(Si=u.getBoundingClientRect(),tn("syncRect",Si))}function rs(P,z,Y,K,te,oe,de){He._lock||Ji&&P!=null&&P.movementX==0&&P.movementY==0||(ia(P,z,Y,K,te,oe,de,!1,P!=null),P!=null?zn(null,!0,!0):zn(z,!0,!1))}function ia(P,z,Y,K,te,oe,de,we,xe){if(Si==null&&vo(!1),ar(P),P!=null)Y=P.clientX-Si.left,K=P.clientY-Si.top;else{if(Y<0||K<0){Be=-10,Pt=-10;return}let[_e,Ce]=Yt.scales,Me=z.cursor.sync,[Ke,Mt]=Me.values,[it,Ge]=Me.scales,[Ze,Le]=Yt.match,St=z.axes[0].side%2==1,Kt=D.ori==0?Pe:ze,Ut=D.ori==1?Pe:ze,Nt=St?oe:te,Dt=St?te:oe,ne=St?K:Y,le=St?Y:K;if(it!=null?Y=Ze(_e,it)?h(Ke,k[_e],Kt,0):-10:Y=Kt*(ne/Nt),Ge!=null?K=Le(Ce,Ge)?h(Mt,k[Ce],Ut,0):-10:K=Ut*(le/Dt),D.ori==1){let se=Y;Y=K,K=se}}xe&&((Y<=1||Y>=Pe-1)&&(Y=ro(Y,Pe)),(K<=1||K>=ze-1)&&(K=ro(K,ze))),we?(Ol=Y,Nl=K,[Fr,Pr]=He.move(i,Y,K)):(Be=Y,Pt=K)}const ra={width:0,height:0,left:0,top:0};function os(){ns(ra,!1)}let oa,yo,dr,zl;function sa(P,z,Y,K,te,oe,de){Ji=!0,mn=vn=$n._x=$n._y=!1,ia(P,z,Y,K,te,oe,de,!0,!1),P!=null&&(Gt(tu,iu,aa,!1),Di(Af,i,Fr,Pr,Pe,ze,null));let{left:we,top:xe,width:_e,height:Ce}=Ot;oa=we,yo=xe,dr=_e,zl=Ce,os()}function aa(P,z,Y,K,te,oe,de){Ji=$n._x=$n._y=!1,ia(P,z,Y,K,te,oe,de,!1,!0);let{left:we,top:xe,width:_e,height:Ce}=Ot,Me=_e>0||Ce>0,Ke=oa!=we||yo!=xe||dr!=_e||zl!=Ce;if(Me&&Ke&&ns(Ot),$n.setScale&&Me&&Ke){let Mt=we,it=_e,Ge=xe,Ze=Ce;if(D.ori==1&&(Mt=xe,it=Ce,Ge=we,Ze=_e),mn&&ki(T,Wt(Mt,T),Wt(Mt+it,T)),vn)for(let Le in k){let St=k[Le];Le!=T&&St.from==null&&St.min!=mt&&ki(Le,Wt(Ge+Ze,Le),Wt(Ge,Le))}os()}else He.lock&&(He._lock=!He._lock,zn(null,!0,!1));P!=null&&(qi(tu,iu),Di(tu,i,Be,Pt,Pe,ze,null))}function la(P,z,Y,K,te,oe,de){if(He._lock)return;ar(P);let we=Ji;if(Ji){let xe=!0,_e=!0,Ce=10,Me,Ke;D.ori==0?(Me=mn,Ke=vn):(Me=vn,Ke=mn),Me&&Ke&&(xe=Be<=Ce||Be>=Pe-Ce,_e=Pt<=Ce||Pt>=ze-Ce),Me&&xe&&(Be=Be<Fr?0:Pe),Ke&&_e&&(Pt=Pt<Pr?0:ze),zn(null,!0,!0),Ji=!1}Be=-10,Pt=-10,zn(null,!0,!0),we&&(Ji=we)}function ss(P,z,Y,K,te,oe,de){He._lock||(ar(P),js(),os(),P!=null&&Di(Ef,i,Be,Pt,Pe,ze,null))}function ca(){A.forEach(j_),Bs(i.width,i.height,!0)}no(qa,Do,ca);const Br={};Br.mousedown=sa,Br.mousemove=rs,Br.mouseup=aa,Br.dblclick=ss,Br.setSeries=(P,z,Y,K)=>{let te=Yt.match[2];Y=te(i,z,Y),Y!=-1&&En(Y,K,!0,!1)},He.show&&(Gt(Af,u,sa),Gt(Cf,u,rs),Gt(Tf,u,P=>{ar(P),vo(!1)}),Gt(Mf,u,la),Gt(Ef,u,ss),Au.add(i),i.syncRect=vo);const zr=i.hooks=n.hooks||{};function tn(P,z,Y){ts?Or.push([P,z,Y]):P in zr&&zr[P].forEach(K=>{K.call(null,i,z,Y)})}(n.plugins||[]).forEach(P=>{for(let z in P.hooks)zr[z]=(zr[z]||[]).concat(P.hooks[z])});const jl=(P,z,Y)=>Y,Yt=pn({key:null,setSeries:!1,filters:{pub:Uf,sub:Uf},scales:[T,R[1]?R[1].scale:null],match:[Vf,Vf,jl],values:[null,null]},He.sync);Yt.match.length==2&&Yt.match.push(jl),He.sync=Yt;const jn=Yt.key,wo=Mg(jn);function Di(P,z,Y,K,te,oe,de){Yt.filters.pub(P,z,Y,K,te,oe,de)&&wo.pub(P,z,Y,K,te,oe,de)}wo.sub(i);function Wl(P,z,Y,K,te,oe,de){Yt.filters.sub(P,z,Y,K,te,oe,de)&&Br[P](null,z,Y,K,te,oe,de)}i.pub=Wl;function Ul(){wo.unsub(i),Au.delete(i),It.clear(),au(qa,Do,ca),a.remove(),ie==null||ie.remove(),tn("destroy")}i.destroy=Ul;function ua(){tn("init",n,t),ho(t||n.data,!1),L[T]?Xs(T,L[T]):js(),sr=Ot.show&&(Ot.width>0||Ot.height>0),Pn=ti=!0,Bs(n.width,n.height)}return R.forEach(Sl),A.forEach(Wh),e?e instanceof HTMLElement?(e.appendChild(a),ua()):e(i,ua):ua(),i}Dn.assign=pn,Dn.fmtNum=uu,Dn.rangeNum=Ka,Dn.rangeLog=Ya,Dn.rangeAsinh=lu,Dn.orient=so,Dn.pxRatio=xt,Dn.join=Ix,Dn.fmtDate=fu,Dn.tzDate=Ux,Dn.sync=Mg;{Dn.addGap=C_,Dn.clipGaps=nl;let n=Dn.paths={points:Dg};n.linear=Pg,n.stepped=M_,n.bars=E_,n.spline=L_}var qg,Gg;function W_(){return Gg||(Gg=1,qg=function(n,t,e,i,m){var f,v;if(i===void 0)i=0;else if(i=i|0,i<0||i>=n.length)throw new RangeError("invalid lower bound");if(m===void 0)m=n.length-1;else if(m=m|0,m<i||m>=n.length)throw new RangeError("invalid upper bound");for(;i<=m;)if(f=i+(m-i>>>1),v=+e(n[f],t,f,n),v<0)i=f+1;else if(v>0)m=f-1;else return f;return~i}),qg}var U_=W_();const eO=rn("B",Ma(U_));var Mu,Yg;function V_(){if(Yg)return Mu;Yg=1;function n(t,e,i){var m=-1,f=t.length;e<0&&(e=-e>f?0:f+e),i=i>f?f:i,i<0&&(i+=f),f=e>i?0:i-e>>>0,e>>>=0;for(var v=Array(f);++m<f;)v[m]=t[m+e];return v}return Mu=n,Mu}var Eu,Kg;function q_(){if(Kg)return Eu;Kg=1;var n=V_();function t(e,i,m){var f=e.length;return m=m===void 0?f:m,!i&&m>=f?e:n(e,i,m)}return Eu=t,Eu}var Ru,Qg;function Zg(){if(Qg)return Ru;Qg=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\ufe0e\\ufe0f",v="\\u200d",w=RegExp("["+v+n+m+f+"]");function h(g){return w.test(g)}return Ru=h,Ru}var Lu,Jg;function G_(){if(Jg)return Lu;Jg=1;function n(t){return t.split("")}return Lu=n,Lu}var Iu,Xg;function Y_(){if(Xg)return Iu;Xg=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\ufe0e\\ufe0f",v="["+n+"]",w="["+m+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+w+"|"+h+")",a="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",o=g+"?",u="["+f+"]?",p="(?:"+c+"(?:"+[a,l,s].join("|")+")"+u+o+")*",y=u+o+p,x="(?:"+[a+w+"?",w,l,s,v].join("|")+")",R=RegExp(h+"(?="+h+")|"+x+y,"g");function A(k){return k.match(R)||[]}return Iu=A,Iu}var Ou,em;function K_(){if(em)return Ou;em=1;var n=G_(),t=Zg(),e=Y_();function i(m){return t(m)?e(m):n(m)}return Ou=i,Ou}var Nu,tm;function Q_(){if(tm)return Nu;tm=1;var n=typeof $r=="object"&&$r&&$r.Object===Object&&$r;return Nu=n,Nu}var Du,nm;function Z_(){if(nm)return Du;nm=1;var n=Q_(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Du=e,Du}var Fu,im;function Pu(){if(im)return Fu;im=1;var n=Z_(),t=n.Symbol;return Fu=t,Fu}var Hu,rm;function J_(){if(rm)return Hu;rm=1;function n(t,e){for(var i=-1,m=t==null?0:t.length,f=Array(m);++i<m;)f[i]=e(t[i],i,t);return f}return Hu=n,Hu}var Bu,om;function X_(){if(om)return Bu;om=1;var n=Array.isArray;return Bu=n,Bu}var zu,sm;function ek(){if(sm)return zu;sm=1;var n=Pu(),t=Object.prototype,e=t.hasOwnProperty,i=t.toString,m=n?n.toStringTag:void 0;function f(v){var w=e.call(v,m),h=v[m];try{v[m]=void 0;var g=!0}catch{}var a=i.call(v);return g&&(w?v[m]=h:delete v[m]),a}return zu=f,zu}var ju,am;function tk(){if(am)return ju;am=1;var n=Object.prototype,t=n.toString;function e(i){return t.call(i)}return ju=e,ju}var Wu,lm;function nk(){if(lm)return Wu;lm=1;var n=Pu(),t=ek(),e=tk(),i="[object Null]",m="[object Undefined]",f=n?n.toStringTag:void 0;function v(w){return w==null?w===void 0?m:i:f&&f in Object(w)?t(w):e(w)}return Wu=v,Wu}var Uu,cm;function ik(){if(cm)return Uu;cm=1;function n(t){return t!=null&&typeof t=="object"}return Uu=n,Uu}var Vu,um;function rk(){if(um)return Vu;um=1;var n=nk(),t=ik(),e="[object Symbol]";function i(m){return typeof m=="symbol"||t(m)&&n(m)==e}return Vu=i,Vu}var qu,hm;function ok(){if(hm)return qu;hm=1;var n=Pu(),t=J_(),e=X_(),i=rk(),m=1/0,f=n?n.prototype:void 0,v=f?f.toString:void 0;function w(h){if(typeof h=="string")return h;if(e(h))return t(h,w)+"";if(i(h))return v?v.call(h):"";var g=h+"";return g=="0"&&1/h==-m?"-0":g}return qu=w,qu}var Gu,dm;function sl(){if(dm)return Gu;dm=1;var n=ok();function t(e){return e==null?"":n(e)}return Gu=t,Gu}var Yu,pm;function sk(){if(pm)return Yu;pm=1;var n=q_(),t=Zg(),e=K_(),i=sl();function m(f){return function(v){v=i(v);var w=t(v)?e(v):void 0,h=w?w[0]:v.charAt(0),g=w?n(w,1).join(""):v.slice(1);return h[f]()+g}}return Yu=m,Yu}var Ku,fm;function gm(){if(fm)return Ku;fm=1;var n=sk(),t=n("toUpperCase");return Ku=t,Ku}var ak=gm();const lk=Ma(ak);var Qu,mm;function ck(){if(mm)return Qu;mm=1;var n=sl(),t=gm();function e(i){return t(n(i).toLowerCase())}return Qu=e,Qu}var Zu,vm;function uk(){if(vm)return Zu;vm=1;function n(t,e,i,m){var f=-1,v=t==null?0:t.length;for(m&&v&&(i=t[++f]);++f<v;)i=e(i,t[f],f,t);return i}return Zu=n,Zu}var Ju,ym;function hk(){if(ym)return Ju;ym=1;function n(t){return function(e){return t==null?void 0:t[e]}}return Ju=n,Ju}var Xu,wm;function dk(){if(wm)return Xu;wm=1;var n=hk(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e=n(t);return Xu=e,Xu}var eh,bm;function pk(){if(bm)return eh;bm=1;var n=dk(),t=sl(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\u0300-\\u036f",m="\\ufe20-\\ufe2f",f="\\u20d0-\\u20ff",v=i+m+f,w="["+v+"]",h=RegExp(w,"g");function g(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return eh=g,eh}var th,xm;function fk(){if(xm)return th;xm=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return th=t,th}var nh,_m;function gk(){if(_m)return nh;_m=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(e){return n.test(e)}return nh=t,nh}var ih,km;function mk(){if(km)return ih;km=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\u2700-\\u27bf",v="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",a=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",c=w+h+g+a,o="['’]",u="["+c+"]",p="["+m+"]",y="\\d+",x="["+f+"]",R="["+v+"]",A="[^"+n+c+y+f+v+l+"]",k="\\ud83c[\\udffb-\\udfff]",b="(?:"+p+"|"+k+")",T="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",M="["+l+"]",D="\\u200d",$="(?:"+R+"|"+A+")",_="(?:"+M+"|"+A+")",S="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=b+"?",F="["+s+"]?",H="(?:"+D+"(?:"+[T,E,I].join("|")+")"+F+O+")*",W="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+H,X="(?:"+[x,E,I].join("|")+")"+q,G=RegExp([M+"?"+R+"+"+S+"(?="+[u,M,"$"].join("|")+")",_+"+"+L+"(?="+[u,M+$,"$"].join("|")+")",M+"?"+$+"+"+S,M+"+"+L,V,W,y,X].join("|"),"g");function Z(ie){return ie.match(G)||[]}return ih=Z,ih}var rh,$m;function vk(){if($m)return rh;$m=1;var n=fk(),t=gk(),e=sl(),i=mk();function m(f,v,w){return f=e(f),v=w?void 0:v,v===void 0?t(f)?i(f):n(f):f.match(v)||[]}return rh=m,rh}var oh,Sm;function yk(){if(Sm)return oh;Sm=1;var n=uk(),t=pk(),e=vk(),i="['’]",m=RegExp(i,"g");function f(v){return function(w){return n(e(t(w).replace(m,"")),v,"")}}return oh=f,oh}var sh,Cm;function wk(){if(Cm)return sh;Cm=1;var n=ck(),t=yk(),e=t(function(i,m,f){return m=m.toLowerCase(),i+(f?n(m):m)});return sh=e,sh}var bk=wk();const xk=Ma(bk),_k=Object.assign({"./ArrayWidget.vue":()=>De(()=>Ne.import("./ArrayWidget-By62tXtU-8bbe7298739e850bfe18.js"),void 0),"./BlockWidget.vue":()=>De(()=>Ne.import("./BlockWidget-CrT45ode-eb1537386ed01b4ca7a8.js"),void 0),"./ButtonWidget.vue":()=>De(()=>Ne.import("./ButtonWidget-CKyBBv6m-6a1f5c30d09f366d825b.js"),void 0),"./CanvasWidget.vue":()=>De(()=>Ne.import("./CanvasWidget-PqkppHC7-7f4710a46315eb789c30.js"),void 0),"./CanvasdotWidget.vue":()=>De(()=>Ne.import("./CanvasdotWidget-BUbJgM2d-619fc40c8997d5d7fea5.js"),void 0),"./CanvasimageWidget.vue":()=>De(()=>Ne.import("./CanvasimageWidget-DPVBY7mi-8c255da15addff7cd7ed.js"),void 0),"./CanvasimagevalueWidget.vue":()=>De(()=>Ne.import("./CanvasimagevalueWidget-GX37zzNc-a4c90ba174579915fa60.js"),void 0),"./CanvaslabelWidget.vue":()=>De(()=>Ne.import("./CanvaslabelWidget-P2_Y6Edw-1889fff3520ccb2d591b.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>De(()=>Ne.import("./CanvaslabelvalueWidget-Cuas1i9P-821d500ef5052bfa1f55.js"),void 0),"./CanvaslineWidget.vue":()=>De(()=>Ne.import("./CanvaslineWidget-BYOYgPya-fc952e856c2e641ff2c7.js"),void 0),"./CanvaslinevalueWidget.vue":()=>De(()=>Ne.import("./CanvaslinevalueWidget-3cVJMFo7-36de6935166b89acf071.js"),void 0),"./CheckbuttonWidget.vue":()=>De(()=>Ne.import("./CheckbuttonWidget-B3wgSMuB-921dfb41856b10f4e3d2.js"),void 0),"./ComboboxWidget.vue":()=>De(()=>Ne.import("./ComboboxWidget-Dzr4Scvf-1c49930a72a457565f4f.js"),void 0),"./DateWidget.vue":()=>De(()=>Ne.import("./DateWidget-BWh76Ibb-f4492b09e29ad6fcd3e4.js"),void 0),"./DynamicWidget.vue":()=>De(()=>Ne.import("./DynamicWidget-m9EliUR2-e07442aa62eb6c370e74.js"),void 0),"./FormatvalueWidget.vue":()=>De(()=>Ne.import("./FormatvalueWidget-Rk0_eeIm-f77ac321fe0ae2a1ae05.js"),void 0),"./HorizontalWidget.vue":()=>De(()=>Ne.import("./HorizontalWidget-BcfJ24Zn-d10969e9eb6b31981e5d.js"),void 0),"./HorizontalboxWidget.vue":()=>De(()=>Ne.import("./HorizontalboxWidget-CQy1Hv9E-79bc168a39cf33b8fa77.js"),void 0),"./HorizontallineWidget.vue":()=>De(()=>Ne.import("./HorizontallineWidget-BdlNB951-97d1618f13f926c9fead.js"),void 0),"./IframeWidget.vue":()=>De(()=>Ne.import("./IframeWidget-BBaDrRLo-f7c37244b988644f60e0.js"),void 0),"./ImageviewerWidget.vue":()=>De(()=>Ne.import("./ImageviewerWidget-BgO3Pq6I-39d91c1f56e433c223ff.js"),void 0),"./LabelWidget.vue":()=>De(()=>Ne.import("./LabelWidget-B_C6lKOE-2262f31f6af2709eadef.js"),void 0),"./LabelledWidget.vue":()=>De(()=>Ne.import("./LabelledWidget-B_UGivhr-a856807b089199c04c48.js"),void 0),"./LabelprogressbarWidget.vue":()=>De(()=>Ne.import("./LabelprogressbarWidget-BJWCmsYC-ed2174ab83eec25a4932.js"),void 0),"./LabelsparklineWidget.vue":()=>De(()=>Ne.import("./LabelsparklineWidget-DILCIh3q-d10dd6a1cee9e3f8ff09.js"),void 0),"./LabelvalueWidget.vue":()=>De(()=>Ne.import("./LabelvalueWidget-CCZd1NXE-7640f00f75429e54ac71.js"),void 0),"./LabelvaluedescWidget.vue":()=>De(()=>Ne.import("./LabelvaluedescWidget-Bsllq8W6-c70757e2c771b63eeaf3.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>De(()=>Ne.import("./LabelvaluelimitsbarWidget-BV-cfaD--e70ddc36890234455fc8.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>De(()=>Ne.import("./LabelvaluelimitscolumnWidget-DwA0eRBw-c29416bf4524ae556578.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>De(()=>Ne.import("./LabelvaluerangebarWidget-3GDJz3dj-8a7718383ec6189eb810.js"),void 0),"./LedWidget.vue":()=>De(()=>Ne.import("./LedWidget-BAt02s0J-34e9cd8f31aa1d44ed32.js"),void 0),"./LimitsbarWidget.vue":()=>De(()=>Ne.import("./LimitsbarWidget-JJiyzZjb-1a3a9e7900b14a237016.js"),void 0),"./LimitscolorWidget.vue":()=>De(()=>Ne.import("./LimitscolorWidget-CYzXKbYd-b51bf7bd9f9140a5886d.js"),void 0),"./LimitscolumnWidget.vue":()=>De(()=>Ne.import("./LimitscolumnWidget-Cd76tBo7-7cfdb6c29f7b363d998d.js"),void 0),"./LinegraphWidget.vue":()=>De(()=>Ne.import("./LinegraphWidget-DWRtO6Ej-3c29ceb540e6c40ee56b.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>De(()=>Ne.import("./MatrixbycolumnsWidget-cwsyjNV2-d96691fcc4322e9cc164.js"),void 0),"./ProgressbarWidget.vue":()=>De(()=>Ne.import("./ProgressbarWidget-CYDziFej-78bbd793fd448510d701.js"),void 0),"./RadiobuttonWidget.vue":()=>De(()=>Ne.import("./RadiobuttonWidget-U6jcQZoD-b0547b7c8fb7a415c0b2.js"),void 0),"./RadiogroupWidget.vue":()=>De(()=>Ne.import("./RadiogroupWidget-HTPJnsB0-d3466645fc020b8f8c64.js"),void 0),"./RangebarWidget.vue":()=>De(()=>Ne.import("./RangebarWidget-DW0FJK6y-2513730abbade6224242.js"),void 0),"./RollupWidget.vue":()=>De(()=>Ne.import("./RollupWidget-B2qrx55f-e10afdf560c4680b2f8d.js"),void 0),"./ScrollwindowWidget.vue":()=>De(()=>Ne.import("./ScrollwindowWidget-CwIDxgO6-9a55ff533e3806746dbd.js"),void 0),"./SignalWidget.vue":()=>De(()=>Ne.import("./SignalWidget-Bosa3AbW-2e3a2e8849456660ab78.js"),void 0),"./SpacerWidget.vue":()=>De(()=>Ne.import("./SpacerWidget-DYAlt5mt-9ad3440a97d08df18115.js"),void 0),"./SparklineWidget.vue":()=>De(()=>Ne.import("./SparklineWidget-CDrVXOFV-127f0c1510b33bbacc3a.js"),void 0),"./TabbookWidget.vue":()=>De(()=>Ne.import("./TabbookWidget-DDdlzCkv-a40f453adab909b9cff2.js"),void 0),"./TextboxWidget.vue":()=>De(()=>Ne.import("./TextboxWidget-5euFelEq-d779b87126b2e89c920c.js"),void 0),"./TextfieldWidget.vue":()=>De(()=>Ne.import("./TextfieldWidget-BFripYeh-faeed76a09829f8d7aca.js"),void 0),"./TimeWidget.vue":()=>De(()=>Ne.import("./TimeWidget-BBSbsUYJ-6a0511ab7401093febd0.js"),void 0),"./TitleWidget.vue":()=>De(()=>Ne.import("./TitleWidget-p8cjo-Bs-7739c4b110fbadb842fa.js"),void 0),"./ValueWidget.vue":()=>De(()=>Ne.import("./ValueWidget-CZh7JWwT-ca2b22c2a83b95a0a04a.js"),void 0),"./ValuelimitsbarWidget.vue":()=>De(()=>Ne.import("./ValuelimitsbarWidget-DU7ybswC-d9cde71b24bef099532d.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>De(()=>Ne.import("./ValuelimitscolumnWidget-DMw-h5jM-4fa6393b410f2c7703e8.js"),void 0),"./ValuerangebarWidget.vue":()=>De(()=>Ne.import("./ValuerangebarWidget-DPpofDpA-73a5076a222f23f531f6.js"),void 0),"./VerticalWidget.vue":()=>De(()=>Ne.import("./VerticalWidget-Ch7VAEmz-93fef677e4f97f1afc2b.js"),void 0),"./VerticalboxWidget.vue":()=>De(()=>Ne.import("./VerticalboxWidget-DYx-TFT4-34d6019e2ca16d8addc9.js"),void 0)}),kk=Object.entries(_k).reduce((n,[t,e])=>{t=t.split("/").pop();const i=lk(xk(t.replace(/\.\w+$/,"")));return{...n,[i]:zd(e)}},{}),tO=rn("z",{components:kk});function Am(n,t){return function(){return n.apply(t,arguments)}}const{toString:$k}=Object.prototype,{getPrototypeOf:ah}=Object,al=(n=>t=>{const e=$k.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Oi=n=>(n=n.toLowerCase(),t=>al(t)===n),ll=n=>t=>typeof t===n,{isArray:Vo}=Array,Os=ll("undefined");function Sk(n){return n!==null&&!Os(n)&&n.constructor!==null&&!Os(n.constructor)&&pi(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Tm=Oi("ArrayBuffer");function Ck(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Tm(n.buffer),t}const Ak=ll("string"),pi=ll("function"),Mm=ll("number"),cl=n=>n!==null&&typeof n=="object",Tk=n=>n===!0||n===!1,ul=n=>{if(al(n)!=="object")return!1;const t=ah(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Mk=Oi("Date"),Ek=Oi("File"),Rk=Oi("Blob"),Lk=Oi("FileList"),Ik=n=>cl(n)&&pi(n.pipe),Ok=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||pi(n.append)&&((t=al(n))==="formdata"||t==="object"&&pi(n.toString)&&n.toString()==="[object FormData]"))},Nk=Oi("URLSearchParams"),[Dk,Fk,Pk,Hk]=["ReadableStream","Request","Response","Headers"].map(Oi),Bk=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Vo(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const f=e?Object.getOwnPropertyNames(n):Object.keys(n),v=f.length;let w;for(i=0;i<v;i++)w=f[i],t.call(null,n[w],w,n)}}function Em(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rm=n=>!Os(n)&&n!==ao;function lh(){const{caseless:n}=Rm(this)&&this||{},t={},e=(i,m)=>{const f=n&&Em(t,m)||m;ul(t[f])&&ul(i)?t[f]=lh(t[f],i):ul(i)?t[f]=lh({},i):Vo(i)?t[f]=i.slice():t[f]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&Ns(arguments[i],e);return t}const zk=(n,t,e,{allOwnKeys:i}={})=>(Ns(t,(m,f)=>{e&&pi(m)?n[f]=Am(m,e):n[f]=m},{allOwnKeys:i}),n),jk=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Wk=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Uk=(n,t,e,i)=>{let m,f,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),f=m.length;f-- >0;)v=m[f],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&ah(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},Vk=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},qk=n=>{if(!n)return null;if(Vo(n))return n;let t=n.length;if(!Mm(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Gk=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&ah(Uint8Array)),Yk=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},Kk=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Qk=Oi("HTMLFormElement"),Zk=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Lm=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Jk=Oi("RegExp"),Im=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Ns(e,(m,f)=>{let v;(v=t(m,f,n))!==!1&&(i[f]=v||m)}),Object.defineProperties(n,i)},Xk=n=>{Im(n,(t,e)=>{if(pi(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(pi(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},e$=(n,t)=>{const e={},i=m=>{m.forEach(f=>{e[f]=!0})};return Vo(n)?i(n):i(String(n).split(t)),e},t$=()=>{},n$=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,ch="abcdefghijklmnopqrstuvwxyz",Om="0123456789",Nm={DIGIT:Om,ALPHA:ch,ALPHA_DIGIT:ch+ch.toUpperCase()+Om},i$=(n=16,t=Nm.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function r$(n){return!!(n&&pi(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const o$=n=>{const t=new Array(10),e=(i,m)=>{if(cl(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const f=Vo(i)?[]:{};return Ns(i,(v,w)=>{const h=e(v,m+1);!Os(h)&&(f[w]=h)}),t[m]=void 0,f}}return i};return e(n,0)},s$=Oi("AsyncFunction"),a$=n=>n&&(cl(n)||pi(n))&&pi(n.then)&&pi(n.catch),Dm=((n,t)=>n?setImmediate:t?((e,i)=>(ao.addEventListener("message",({source:m,data:f})=>{m===ao&&f===e&&i.length&&i.shift()()},!1),m=>{i.push(m),ao.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",pi(ao.postMessage)),l$=typeof queueMicrotask<"u"?queueMicrotask.bind(ao):typeof process<"u"&&process.nextTick||Dm,he={isArray:Vo,isArrayBuffer:Tm,isBuffer:Sk,isFormData:Ok,isArrayBufferView:Ck,isString:Ak,isNumber:Mm,isBoolean:Tk,isObject:cl,isPlainObject:ul,isReadableStream:Dk,isRequest:Fk,isResponse:Pk,isHeaders:Hk,isUndefined:Os,isDate:Mk,isFile:Ek,isBlob:Rk,isRegExp:Jk,isFunction:pi,isStream:Ik,isURLSearchParams:Nk,isTypedArray:Gk,isFileList:Lk,forEach:Ns,merge:lh,extend:zk,trim:Bk,stripBOM:jk,inherits:Wk,toFlatObject:Uk,kindOf:al,kindOfTest:Oi,endsWith:Vk,toArray:qk,forEachEntry:Yk,matchAll:Kk,isHTMLForm:Qk,hasOwnProperty:Lm,hasOwnProp:Lm,reduceDescriptors:Im,freezeMethods:Xk,toObjectSet:e$,toCamelCase:Zk,noop:t$,toFiniteNumber:n$,findKey:Em,global:ao,isContextDefined:Rm,ALPHABET:Nm,generateString:i$,isSpecCompliantForm:r$,toJSONObject:o$,isAsyncFn:s$,isThenable:a$,setImmediate:Dm,asap:l$};function tt(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.status:null)}he.inherits(tt,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 Fm=tt.prototype,Pm={};["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=>{Pm[n]={value:n}}),Object.defineProperties(tt,Pm),Object.defineProperty(Fm,"isAxiosError",{value:!0}),tt.from=(n,t,e,i,m,f)=>{const v=Object.create(Fm);return he.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),tt.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,f&&Object.assign(v,f),v};const c$=null;function uh(n){return he.isPlainObject(n)||he.isArray(n)}function Hm(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Bm(n,t,e){return n?n.concat(t).map(function(i,m){return i=Hm(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function u$(n){return he.isArray(n)&&!n.some(uh)}const h$=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function hl(n,t,e){if(!he.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=he.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!he.isUndefined(o[c])});const i=e.metaTokens,m=e.visitor||g,f=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(m))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(he.isDate(c))return c.toISOString();if(!w&&he.isBlob(c))throw new tt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(c)||he.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,o,u){let p=c;if(c&&!u&&typeof c=="object"){if(he.endsWith(o,"{}"))o=i?o:o.slice(0,-2),c=JSON.stringify(c);else if(he.isArray(c)&&u$(c)||(he.isFileList(c)||he.endsWith(o,"[]"))&&(p=he.toArray(c)))return o=Hm(o),p.forEach(function(y,x){!(he.isUndefined(y)||y===null)&&t.append(v===!0?Bm([o],x,f):v===null?o:o+"[]",h(y))}),!1}return uh(c)?!0:(t.append(Bm(u,o,f),h(c)),!1)}const a=[],l=Object.assign(h$,{defaultVisitor:g,convertValue:h,isVisitable:uh});function s(c,o){if(!he.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(c),he.forEach(c,function(u,p){(!(he.isUndefined(u)||u===null)&&m.call(t,u,he.isString(p)?p.trim():p,o,l))===!0&&s(u,o?o.concat(p):[p])}),a.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return s(n),t}function zm(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function hh(n,t){this._pairs=[],n&&hl(n,this,t)}const jm=hh.prototype;jm.append=function(n,t){this._pairs.push([n,t])},jm.toString=function(n){const t=n?function(e){return n.call(this,e,zm)}:zm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function d$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wm(n,t,e){if(!t)return n;const i=e&&e.encode||d$;he.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let f;if(m?f=m(t,e):f=he.isURLSearchParams(t)?t.toString():new hh(t,e).toString(i),f){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}let Um=class{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(e){e!==null&&t(e)})}};const Vm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},p$=typeof URLSearchParams<"u"?URLSearchParams:hh,f$=typeof FormData<"u"?FormData:null,g$=typeof Blob<"u"?Blob:null,m$={isBrowser:!0,classes:{URLSearchParams:p$,FormData:f$,Blob:g$},protocols:["http","https","file","blob","url","data"]},dh=typeof window<"u"&&typeof document<"u",ph=typeof navigator=="object"&&navigator||void 0,v$=dh&&(!ph||["ReactNative","NativeScript","NS"].indexOf(ph.product)<0),y$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",w$=dh&&window.location.href||"http://localhost",b$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dh,hasStandardBrowserEnv:v$,hasStandardBrowserWebWorkerEnv:y$,navigator:ph,origin:w$},Symbol.toStringTag,{value:"Module"})),Fn={...b$,...m$};function x$(n,t){return hl(n,new Fn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,f){return Fn.isNode&&he.isBuffer(e)?(this.append(i,e.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},t))}function _$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function k$(n){const t={},e=Object.keys(n);let i;const m=e.length;let f;for(i=0;i<m;i++)f=e[i],t[f]=n[f];return t}function qm(n){function t(e,i,m,f){let v=e[f++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=f>=e.length;return v=!v&&he.isArray(m)?m.length:v,h?(he.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!he.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],f)&&he.isArray(m[v])&&(m[v]=k$(m[v])),!w)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(i,m)=>{t(_$(i),m,e,0)}),e}return null}function $$(n,t,e){if(he.isString(n))try{return(t||JSON.parse)(n),he.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const Ds={transitional:Vm,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=he.isObject(n);if(m&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return i?JSON.stringify(qm(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return x$(n,this.formSerializer).toString();if((f=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return hl(f?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),$$(n)):n}],transformResponse:[function(n){const t=this.transitional||Ds.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(f){if(m)throw f.name==="SyntaxError"?tt.from(f,tt.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fn.classes.FormData,Blob:Fn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{Ds.headers[n]={}});const S$=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"]),C$=n=>{const t={};let e,i,m;return n&&n.split(`
1414
- `).forEach(function(f){m=f.indexOf(":"),e=f.substring(0,m).trim().toLowerCase(),i=f.substring(m+1).trim(),!(!e||t[e]&&S$[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},Gm=Symbol("internals");function Fs(n){return n&&String(n).trim().toLowerCase()}function dl(n){return n===!1||n==null?n:he.isArray(n)?n.map(dl):String(n)}function A$(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const T$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function fh(n,t,e,i,m){if(he.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!he.isString(t)){if(he.isString(i))return t.indexOf(i)!==-1;if(he.isRegExp(i))return i.test(t)}}function M$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function E$(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,f,v){return this[i].call(this,t,m,f,v)},configurable:!0})})}let ei=class{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function f(w,h,g){const a=Fs(h);if(!a)throw new Error("header name must be a non-empty string");const l=he.findKey(m,a);(!l||m[l]===void 0||g===!0||g===void 0&&m[l]!==!1)&&(m[l||h]=dl(w))}const v=(w,h)=>he.forEach(w,(g,a)=>f(g,a,h));if(he.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(he.isString(t)&&(t=t.trim())&&!T$(t))v(C$(t),e);else if(he.isHeaders(t))for(const[w,h]of t.entries())f(h,w,i);else t!=null&&f(e,t,i);return this}get(t,e){if(t=Fs(t),t){const i=he.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return A$(m);if(he.isFunction(e))return e.call(this,m,i);if(he.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Fs(t),t){const i=he.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||fh(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function f(v){if(v=Fs(v),v){const w=he.findKey(i,v);w&&(!e||fh(i,i[w],w,e))&&(delete i[w],m=!0)}}return he.isArray(t)?t.forEach(f):f(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const f=e[i];(!t||fh(this,this[f],f,t,!0))&&(delete this[f],m=!0)}return m}normalize(t){const e=this,i={};return he.forEach(this,(m,f)=>{const v=he.findKey(i,f);if(v){e[v]=dl(m),delete e[f];return}const w=t?M$(f):String(f).trim();w!==f&&delete e[f],e[w]=dl(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return he.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&he.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1415
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[Gm]=this[Gm]={accessors:{}}).accessors,i=this.prototype;function m(f){const v=Fs(f);e[v]||(E$(i,f),e[v]=!0)}return he.isArray(t)?t.forEach(m):m(t),this}};ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(ei.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),he.freezeMethods(ei);function gh(n,t){const e=this||Ds,i=t||e,m=ei.from(i.headers);let f=i.data;return he.forEach(n,function(v){f=v.call(e,f,m.normalize(),t?t.status:void 0)}),m.normalize(),f}function Ym(n){return!!(n&&n.__CANCEL__)}function qo(n,t,e){tt.call(this,n??"canceled",tt.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(qo,tt,{__CANCEL__:!0});function Km(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new tt("Request failed with status code "+e.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function R$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function L$(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,f=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),g=i[f];v||(v=h),e[m]=w,i[m]=h;let a=f,l=0;for(;a!==m;)l+=e[a++],a=a%n;if(m=(m+1)%n,m===f&&(f=(f+1)%n),h-v<t)return;const s=g&&h-g;return s?Math.round(l*1e3/s):void 0}}function I$(n,t){let e=0,i=1e3/t,m,f;const v=(w,h=Date.now())=>{e=h,m=null,f&&(clearTimeout(f),f=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),g=h-e;g>=i?v(w,h):(m=w,f||(f=setTimeout(()=>{f=null,v(m)},i-g)))},()=>m&&v(m)]}const pl=(n,t,e=3)=>{let i=0;const m=L$(50,250);return I$(f=>{const v=f.loaded,w=f.lengthComputable?f.total:void 0,h=v-i,g=m(h),a=v<=w;i=v;const l={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:g||void 0,estimated:g&&w&&a?(w-v)/g:void 0,event:f,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},Qm=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},Zm=n=>(...t)=>he.asap(()=>n(...t)),O$=Fn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Fn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Fn.origin),Fn.navigator&&/(msie|trident)/i.test(Fn.navigator.userAgent)):()=>!0,N$=Fn.hasStandardBrowserEnv?{write(n,t,e,i,m,f){const v=[n+"="+encodeURIComponent(t)];he.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),he.isString(i)&&v.push("path="+i),he.isString(m)&&v.push("domain="+m),f===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function D$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function F$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Jm(n,t){return n&&!D$(t)?F$(n,t):t}const Xm=n=>n instanceof ei?{...n}:n;function lo(n,t){t=t||{};const e={};function i(g,a,l,s){return he.isPlainObject(g)&&he.isPlainObject(a)?he.merge.call({caseless:s},g,a):he.isPlainObject(a)?he.merge({},a):he.isArray(a)?a.slice():a}function m(g,a,l,s){if(he.isUndefined(a)){if(!he.isUndefined(g))return i(void 0,g,l,s)}else return i(g,a,l,s)}function f(g,a){if(!he.isUndefined(a))return i(void 0,a)}function v(g,a){if(he.isUndefined(a)){if(!he.isUndefined(g))return i(void 0,g)}else return i(void 0,a)}function w(g,a,l){if(l in t)return i(g,a);if(l in n)return i(void 0,g)}const h={url:f,method:f,data:f,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(g,a,l)=>m(Xm(g),Xm(a),l,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(g){const a=h[g]||m,l=a(n[g],t[g],g);he.isUndefined(l)&&a!==w||(e[g]=l)}),e}const e0=n=>{const t=lo({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:f,headers:v,auth:w}=t;t.headers=v=ei.from(v),t.url=Wm(Jm(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(he.isFormData(e)){if(Fn.hasStandardBrowserEnv||Fn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[g,...a]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];v.setContentType([g||"multipart/form-data",...a].join("; "))}}if(Fn.hasStandardBrowserEnv&&(i&&he.isFunction(i)&&(i=i(t)),i||i!==!1&&O$(t.url))){const g=m&&f&&N$.read(f);g&&v.set(m,g)}return t},P$=typeof XMLHttpRequest<"u",H$=P$&&function(n){return new Promise(function(t,e){const i=e0(n);let m=i.data;const f=ei.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,g,a,l,s,c;function o(){s&&s(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function p(){if(!u)return;const x=ei.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};Km(function(A){t(A),o()},function(A){e(A),o()},R),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(e(new tt("Request aborted",tt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new tt("Network Error",tt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||Vm;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),e(new tt(x,R.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,n,u)),u=null},m===void 0&&f.setContentType(null),"setRequestHeader"in u&&he.forEach(f.toJSON(),function(x,R){u.setRequestHeader(R,x)}),he.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([l,c]=pl(h,!0),u.addEventListener("progress",l)),w&&u.upload&&([a,s]=pl(w),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(i.cancelToken||i.signal)&&(g=x=>{u&&(e(!x||x.type?new qo(null,n,u):x),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const y=R$(i.url);if(y&&Fn.protocols.indexOf(y)===-1){e(new tt("Unsupported protocol "+y+":",tt.ERR_BAD_REQUEST,n));return}u.send(m||null)})},B$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const f=function(g){if(!m){m=!0,w();const a=g instanceof Error?g:this.reason;i.abort(a instanceof tt?a:new qo(a instanceof Error?a.message:a))}};let v=t&&setTimeout(()=>{v=null,f(new tt(`timeout ${t} of ms exceeded`,tt.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(f):g.removeEventListener("abort",f)}),n=null)};n.forEach(g=>g.addEventListener("abort",f));const{signal:h}=i;return h.unsubscribe=()=>he.asap(w),h}},z$=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},j$=async function*(n,t){for await(const e of W$(n))yield*z$(e,t)},W$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},t0=(n,t,e,i)=>{const m=j$(n,t);let f=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:g,value:a}=await m.next();if(g){w(),h.close();return}let l=a.byteLength;if(e){let s=f+=l;e(s)}h.enqueue(new Uint8Array(a))}catch(g){throw w(g),g}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},fl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",n0=fl&&typeof ReadableStream=="function",U$=fl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),i0=(n,...t)=>{try{return!!n(...t)}catch{return!1}},V$=n0&&i0(()=>{let n=!1;const t=new Request(Fn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),r0=64*1024,mh=n0&&i0(()=>he.isReadableStream(new Response("").body)),gl={stream:mh&&(n=>n.body)};fl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!gl[t]&&(gl[t]=he.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new tt(`Response type '${t}' is not supported`,tt.ERR_NOT_SUPPORT,i)})})})(new Response);const q$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Fn.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 U$(n)).byteLength},G$=async(n,t)=>he.toFiniteNumber(n.getContentLength())??q$(t),Y$=fl&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:f,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:g,headers:a,withCredentials:l="same-origin",fetchOptions:s}=e0(n);g=g?(g+"").toLowerCase():"text";let c=B$([m,f&&f.toAbortSignal()],v),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let p;try{if(h&&V$&&e!=="get"&&e!=="head"&&(p=await G$(a,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),b;if(he.isFormData(i)&&(b=k.headers.get("content-type"))&&a.setContentType(b),k.body){const[T,E]=Qm(p,pl(Zm(h)));i=t0(k.body,r0,T,E)}}he.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...s,signal:c,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:i,duplex:"half",credentials:y?l:void 0});let x=await fetch(o);const R=mh&&(g==="stream"||g==="response");if(mh&&(w||R&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const b=he.toFiniteNumber(x.headers.get("content-length")),[T,E]=w&&Qm(b,pl(Zm(w),!0))||[];x=new Response(t0(x.body,r0,T,()=>{E&&E(),u&&u()}),k)}g=g||"text";let A=await gl[he.findKey(gl,g)||"text"](x,n);return!R&&u&&u(),await new Promise((k,b)=>{Km(k,b,{data:A,headers:ei.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,n,o),{cause:y.cause||y}):tt.from(y,y&&y.code,n,o)}}),vh={http:c$,xhr:H$,fetch:Y$};he.forEach(vh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const o0=n=>`- ${n}`,K$=n=>he.isFunction(n)||n===null||n===!1,s0={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let f=0;f<t;f++){e=n[f];let v;if(i=e,!K$(e)&&(i=vh[(v=String(e)).toLowerCase()],i===void 0))throw new tt(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+f]=i}if(!i){const f=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?f.length>1?`since :
1416
- `+f.map(o0).join(`
1417
- `):" "+o0(f[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:vh};function yh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new qo(null,n)}function a0(n){return yh(n),n.headers=ei.from(n.headers),n.data=gh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),s0.getAdapter(n.adapter||Ds.adapter)(n).then(function(t){return yh(n),t.data=gh.call(n,n.transformResponse,t),t.headers=ei.from(t.headers),t},function(t){return Ym(t)||(yh(n),t&&t.response&&(t.response.data=gh.call(n,n.transformResponse,t.response),t.response.headers=ei.from(t.response.headers))),Promise.reject(t)})}const l0="1.7.9",ml={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{ml[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const c0={};ml.transitional=function(n,t,e){function i(m,f){return"[Axios v"+l0+"] Transitional option '"+m+"'"+f+(e?". "+e:"")}return(m,f,v)=>{if(n===!1)throw new tt(i(f," has been removed"+(t?" in "+t:"")),tt.ERR_DEPRECATED);return t&&!c0[f]&&(c0[f]=!0,console.warn(i(f," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,f,v):!0}},ml.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function Q$(n,t,e){if(typeof n!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const f=i[m],v=t[f];if(v){const w=n[f],h=w===void 0||v(w,f,n);if(h!==!0)throw new tt("option "+f+" must be "+h,tt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new tt("Unknown option "+f,tt.ERR_BAD_OPTION)}}const vl={assertOptions:Q$,validators:ml},Wi=vl.validators;let co=class{constructor(t){this.defaults=t,this.interceptors={request:new Um,response:new Um}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const f=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?f&&!String(i.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1418
- `+f):i.stack=f}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=lo(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:f}=e;i!==void 0&&vl.assertOptions(i,{silentJSONParsing:Wi.transitional(Wi.boolean),forcedJSONParsing:Wi.transitional(Wi.boolean),clarifyTimeoutError:Wi.transitional(Wi.boolean)},!1),m!=null&&(he.isFunction(m)?e.paramsSerializer={serialize:m}:vl.assertOptions(m,{encode:Wi.function,serialize:Wi.function},!0)),vl.assertOptions(e,{baseUrl:Wi.spelling("baseURL"),withXsrfToken:Wi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=f&&he.merge(f.common,f[e.method]);f&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete f[o]}),e.headers=ei.concat(v,f);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let a,l=0,s;if(!h){const o=[a0.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),s=o.length,a=Promise.resolve(e);l<s;)a=a.then(o[l++],o[l++]);return a}s=w.length;let c=e;for(l=0;l<s;){const o=w[l++],u=w[l++];try{c=o(c)}catch(p){u.call(this,p);break}}try{a=a0.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,s=g.length;l<s;)a=a.then(g[l++],g[l++]);return a}getUri(t){t=lo(this.defaults,t);const e=Jm(t.baseURL,t.url);return Wm(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){co.prototype[n]=function(t,e){return this.request(lo(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,f){return this.request(lo(f||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}co.prototype[n]=t(),co.prototype[n+"Form"]=t(!0)});let Z$=class Ry{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let f=i._listeners.length;for(;f-- >0;)i._listeners[f](m);i._listeners=null}),this.promise.then=m=>{let f;const v=new Promise(w=>{i.subscribe(w),f=w}).then(m);return v.cancel=function(){i.unsubscribe(f)},v},t(function(m,f,v){i.reason||(i.reason=new qo(m,f,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Ry(function(e){t=e}),cancel:t}}};function J$(n){return function(t){return n.apply(null,t)}}function X$(n){return he.isObject(n)&&n.isAxiosError===!0}const wh={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(wh).forEach(([n,t])=>{wh[t]=n});function u0(n){const t=new co(n),e=Am(co.prototype.request,t);return he.extend(e,co.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return u0(lo(n,i))},e}const xn=rn("S",u0(Ds));xn.Axios=co,xn.CanceledError=qo,xn.CancelToken=Z$,xn.isCancel=Ym,xn.VERSION=l0,xn.toFormData=hl,xn.AxiosError=tt,xn.Cancel=xn.CanceledError,xn.all=function(n){return Promise.all(n)},xn.spread=J$,xn.isAxiosError=X$,xn.mergeConfig=lo,xn.AxiosHeaders=ei,xn.formToJSON=n=>qm(he.isHTMLForm(n)?new FormData(n):n),xn.getAdapter=s0.getAdapter,xn.HttpStatusCode=wh,xn.default=xn;function eS(n,t,e){const i=jt(n,void 0);return i.setTime(i.getTime()+t*Aa),i}function h0(){return Object.assign({},Mo())}function tS(n,t){const e=()=>hn(void 0,NaN),i=oS(n);let m;if(i.date){const h=sS(i.date,2);m=aS(h.restDateString,h.year)}if(!m||isNaN(+m))return e();const f=+m;let v=0,w;if(i.time&&(v=lS(i.time),isNaN(v)))return e();if(i.timezone){if(w=cS(i.timezone),isNaN(w))return e()}else{const h=new Date(f+v),g=jt(0,void 0);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return jt(f+v+w,void 0)}const yl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},nS=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,iS=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,rS=/^([+-])(\d{2})(?::?(\d{2}))?$/;function oS(n){const t={},e=n.split(yl.dateTimeDelimiter);let i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],yl.timeZoneDelimiter.test(t.date)&&(t.date=n.split(yl.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){const m=yl.timezone.exec(i);m?(t.time=i.replace(m[1],""),t.timezone=m[1]):t.time=i}return t}function sS(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};const m=i[1]?parseInt(i[1]):null,f=i[2]?parseInt(i[2]):null;return{year:f===null?m:f*100,restDateString:n.slice((i[1]||i[2]).length)}}function aS(n,t){if(t===null)return new Date(NaN);const e=n.match(nS);if(!e)return new Date(NaN);const i=!!e[4],m=Ps(e[1]),f=Ps(e[2])-1,v=Ps(e[3]),w=Ps(e[4]),h=Ps(e[5])-1;if(i)return fS(t,w,h)?uS(t,w,h):new Date(NaN);{const g=new Date(0);return!dS(t,f,v)||!pS(t,m)?new Date(NaN):(g.setUTCFullYear(t,f,Math.max(m,v)),g)}}function Ps(n){return n?parseInt(n):1}function lS(n){const t=n.match(iS);if(!t)return NaN;const e=bh(t[1]),i=bh(t[2]),m=bh(t[3]);return gS(e,i,m)?e*Ec+i*Aa+m*1e3:NaN}function bh(n){return n&&parseFloat(n.replace(",","."))||0}function cS(n){if(n==="Z")return 0;const t=n.match(rS);if(!t)return 0;const e=t[1]==="+"?-1:1,i=parseInt(t[2]),m=t[3]&&parseInt(t[3])||0;return mS(i,m)?e*(i*Ec+m*Aa):NaN}function uS(n,t,e){const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,f=(t-1)*7+e+1-m;return i.setUTCDate(i.getUTCDate()+f),i}const hS=[31,null,31,30,31,30,31,31,30,31,30,31];function d0(n){return n%400===0||n%4===0&&n%100!==0}function dS(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(hS[t]||(d0(n)?29:28))}function pS(n,t){return t>=1&&t<=(d0(n)?366:365)}function fS(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function gS(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function mS(n,t){return t>=0&&t<=59}function vS(n,t,e){return eS(n,-t)}function p0(n,t,e){const i=h0(),m=bS(n,e.timeZone,e.locale??i.locale);return"formatToParts"in m?yS(m,t):wS(m,t)}function yS(n,t){const e=n.formatToParts(t);for(let i=e.length-1;i>=0;--i)if(e[i].type==="timeZoneName")return e[i].value}function wS(n,t){const e=n.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(e);return i?i[0].substr(1):""}function bS(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function xS(n,t){const e=CS(t);return"formatToParts"in e?kS(e,n):$S(e,n)}const _S={year:0,month:1,day:2,hour:3,minute:4,second:5};function kS(n,t){try{const e=n.formatToParts(t),i=[];for(let m=0;m<e.length;m++){const f=_S[e[m].type];f!==void 0&&(i[f]=parseInt(e[m].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function $S(n,t){const e=n.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(i[3],10),parseInt(i[1],10),parseInt(i[2],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)]}const xh={},f0=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")),SS=f0==="06/25/2014, 00:00:00"||f0==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function CS(n){return xh[n]||(xh[n]=SS?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"})),xh[n]}function g0(n,t,e,i,m,f,v){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(i,m,f,v),w}const m0=36e5,AS=6e4,_h={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function kh(n,t,e){if(!n)return 0;let i=_h.timezoneZ.exec(n);if(i)return 0;let m,f;if(i=_h.timezoneHH.exec(n),i)return m=parseInt(i[1],10),v0(m)?-(m*m0):NaN;if(i=_h.timezoneHHMM.exec(n),i){m=parseInt(i[2],10);const v=parseInt(i[3],10);return v0(m,v)?(f=Math.abs(m)*m0+v*AS,i[1]==="+"?-f:f):NaN}if(ES(n)){t=new Date(t||Date.now());const v=e?t:TS(t),w=$h(v,n);return-(e?w:MS(t,w,n))}return NaN}function TS(n){return g0(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function $h(n,t){const e=xS(n,t),i=g0(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let m=n.getTime();const f=m%1e3;return m-=f>=0?f:1e3+f,i-m}function MS(n,t,e){let i=n.getTime()-t;const m=$h(new Date(i),e);if(t===m)return t;i-=m-t;const f=$h(new Date(i),e);return m===f?m:Math.max(m,f)}function v0(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const y0={};function ES(n){if(y0[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),y0[n]=!0,!0}catch{return!1}}const RS=60*1e3,LS={X:function(n,t,e){const i=Sh(e.timeZone,n);if(i===0)return"Z";switch(t){case"X":return w0(i);case"XXXX":case"XX":return Go(i);case"XXXXX":case"XXX":default:return Go(i,":")}},x:function(n,t,e){const i=Sh(e.timeZone,n);switch(t){case"x":return w0(i);case"xxxx":case"xx":return Go(i);case"xxxxx":case"xxx":default:return Go(i,":")}},O:function(n,t,e){const i=Sh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+IS(i,":");case"OOOO":default:return"GMT"+Go(i,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return p0("short",n,e);case"zzzz":default:return p0("long",n,e)}}};function Sh(n,t){const e=n?kh(n,t,!0)/RS:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function wl(n,t){const e=n<0?"-":"";let i=Math.abs(n).toString();for(;i.length<t;)i="0"+i;return e+i}function Go(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=wl(Math.floor(i/60),2),f=wl(Math.floor(i%60),2);return e+m+t+f}function w0(n,t){return n%60===0?(n>0?"-":"+")+wl(Math.abs(n)/60,2):Go(n,t)}function IS(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.floor(i/60),f=i%60;return f===0?e+String(m):e+String(m)+t+wl(f,2)}function b0(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const OS=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Ch=36e5,x0=6e4,NS=2,Vn={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:OS};function _0(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?NS:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const i=DS(n),{year:m,restDateString:f}=FS(i.date,e),v=PS(f,m);if(v===null||isNaN(v.getTime()))return new Date(NaN);if(v){const w=v.getTime();let h=0,g;if(i.time&&(h=HS(i.time),h===null||isNaN(h)))return new Date(NaN);if(i.timeZone||t.timeZone){if(g=kh(i.timeZone||t.timeZone,new Date(w+h)),isNaN(g))return new Date(NaN)}else g=b0(new Date(w+h)),g=b0(new Date(w+h+g));return new Date(w+h+g)}else return new Date(NaN)}function DS(n){const t={};let e=Vn.dateTimePattern.exec(n),i;if(e?(t.date=e[1],i=e[3]):(e=Vn.datePattern.exec(n),e?(t.date=e[1],i=e[2]):(t.date=null,i=n)),i){const m=Vn.timeZone.exec(i);m?(t.time=i.replace(m[1],""),t.timeZone=m[1].trim()):t.time=i}return t}function FS(n,t){if(n){const e=Vn.YYY[t],i=Vn.YYYYY[t];let m=Vn.YYYY.exec(n)||i.exec(n);if(m){const f=m[1];return{year:parseInt(f,10),restDateString:n.slice(f.length)}}if(m=Vn.YY.exec(n)||e.exec(n),m){const f=m[1];return{year:parseInt(f,10)*100,restDateString:n.slice(f.length)}}}return{year:null}}function PS(n,t){if(t===null)return null;let e,i,m;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let f=Vn.MM.exec(n);if(f)return e=new Date(0),i=parseInt(f[1],10)-1,S0(t,i)?(e.setUTCFullYear(t,i),e):new Date(NaN);if(f=Vn.DDD.exec(n),f){e=new Date(0);const v=parseInt(f[1],10);return jS(t,v)?(e.setUTCFullYear(t,0,v),e):new Date(NaN)}if(f=Vn.MMDD.exec(n),f){e=new Date(0),i=parseInt(f[1],10)-1;const v=parseInt(f[2],10);return S0(t,i,v)?(e.setUTCFullYear(t,i,v),e):new Date(NaN)}if(f=Vn.Www.exec(n),f)return m=parseInt(f[1],10)-1,C0(m)?k0(t,m):new Date(NaN);if(f=Vn.WwwD.exec(n),f){m=parseInt(f[1],10)-1;const v=parseInt(f[2],10)-1;return C0(m,v)?k0(t,m,v):new Date(NaN)}return null}function HS(n){let t,e,i=Vn.HH.exec(n);if(i)return t=parseFloat(i[1].replace(",",".")),Ah(t)?t%24*Ch:NaN;if(i=Vn.HHMM.exec(n),i)return t=parseInt(i[1],10),e=parseFloat(i[2].replace(",",".")),Ah(t,e)?t%24*Ch+e*x0:NaN;if(i=Vn.HHMMSS.exec(n),i){t=parseInt(i[1],10),e=parseInt(i[2],10);const m=parseFloat(i[3].replace(",","."));return Ah(t,e,m)?t%24*Ch+e*x0+m*1e3:NaN}return null}function k0(n,t,e){t=t||0,e=e||0;const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,f=t*7+e+1-m;return i.setUTCDate(i.getUTCDate()+f),i}const BS=[31,28,31,30,31,30,31,31,30,31,30,31],zS=[31,29,31,30,31,30,31,31,30,31,30,31];function $0(n){return n%400===0||n%4===0&&n%100!==0}function S0(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const i=$0(n);if(i&&e>zS[t]||!i&&e>BS[t])return!1}return!0}function jS(n,t){if(t<1)return!1;const e=$0(n);return!(e&&t>366||!e&&t>365)}function C0(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function Ah(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const WS=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function US(n,t,e={}){t=String(t);const i=t.match(WS);if(i){const m=_0(e.originalDate||n,e);t=i.reduce(function(f,v){if(v[0]==="'")return f;const w=f.indexOf(v),h=f[w-1]==="'",g=f.replace(v,"'"+LS[v[0]](m,v,e)+"'");return h?g.substring(0,w-1)+g.substring(w+1):g},t)}return Zr(n,t,e)}function VS(n,t,e){n=_0(n,e);const i=kh(t,n,!0),m=new Date(n.getTime()-i),f=new Date(0);return f.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),f.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),f}function Th(n,t,e,i){return i={...i,timeZone:t,originalDate:n},US(VS(n,t,{timeZone:i.timeZone}),e,i)}const Mh="yyyy-MM-dd",A0="HH:mm:ss.SSS",qS="HH:mm:ss",bl=`${Mh} ${A0}`,nO=rn("a",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Zr(!t||t==="local"?vS(n,n.getTimezoneOffset()):n,bl)},formatDateTime(n,t){return!t||t==="local"?Zr(n,bl):Th(n,t,bl)},formatDate:function(n,t){return!t||t==="local"?Zr(n,Mh):Th(n,this.timeZone,Mh)},formatTime:function(n,t,e=A0){return!t||t==="local"?Zr(n,e):Th(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,qS)},formatTimestamp(n,t){return this.formatDateTime(tS(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var GS=Object.defineProperty,YS=(n,t,e)=>t in n?GS(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Ee=(n,t,e)=>YS(n,typeof t!="symbol"?t+"":t,e);function Eh(n,t,e){const i=jt(n,e==null?void 0:e.in);return isNaN(t)?hn((e==null?void 0:e.in)||n,NaN):(t&&i.setDate(i.getDate()+t),i)}function KS(n,t){const e=jt(n,void 0).getDay();return e===0?7:e}function QS(n,t){const e=ZS(t)?new t(0):hn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function ZS(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const JS=10;class T0{constructor(){Ee(this,"subPriority",0)}validate(t,e){return!0}}class XS extends T0{constructor(t,e,i,m,f){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=m,f&&(this.subPriority=f)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}}class eC extends T0{constructor(t,e){super(),Ee(this,"priority",JS),Ee(this,"subPriority",-1),this.context=t||(i=>hn(e,i))}set(t,e){return e.timestampIsSet?t:hn(t,QS(t,this.context))}}class _t{run(t,e,i,m){const f=this.parse(t,e,i,m);return f?{setter:new XS(f.value,this.validate,this.set,this.priority,this.subPriority),rest:f.rest}:null}validate(t,e,i){return!0}}class tC extends _t{constructor(){super(...arguments),Ee(this,"priority",140),Ee(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}const sn={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}/},Ui={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 an(n,t){return n&&{value:t(n.value),rest:n.rest}}function qt(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Vi(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const i=e[1]==="+"?1:-1,m=e[2]?parseInt(e[2],10):0,f=e[3]?parseInt(e[3],10):0,v=e[5]?parseInt(e[5],10):0;return{value:i*(m*Ec+f*Aa+v*Wy),rest:t.slice(e[0].length)}}function M0(n){return qt(sn.anyDigitsSigned,n)}function Jt(n,t){switch(n){case 1:return qt(sn.singleDigit,t);case 2:return qt(sn.twoDigits,t);case 3:return qt(sn.threeDigits,t);case 4:return qt(sn.fourDigits,t);default:return qt(new RegExp("^\\d{1,"+n+"}"),t)}}function E0(n,t){switch(n){case 1:return qt(sn.singleDigitSigned,t);case 2:return qt(sn.twoDigitsSigned,t);case 3:return qt(sn.threeDigitsSigned,t);case 4:return qt(sn.fourDigitsSigned,t);default:return qt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Rh(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 R0(n,t){const e=t>0,i=e?t:1-t;let m;if(i<=50)m=n||100;else{const f=i+50,v=Math.trunc(f/100)*100,w=n>=f%100;m=n+v-(w?100:0)}return e?m:1-m}function L0(n){return n%400===0||n%4===0&&n%100!==0}class nC extends _t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,i){const m=f=>({year:f,isTwoDigitYear:e==="yy"});switch(e){case"y":return an(Jt(4,t),m);case"yo":return an(i.ordinalNumber(t,{unit:"year"}),m);default:return an(Jt(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){const m=t.getFullYear();if(i.isTwoDigitYear){const v=R0(i.year,m);return t.setFullYear(v,0,1),t.setHours(0,0,0,0),t}const f=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(f,0,1),t.setHours(0,0,0,0),t}}class iC extends _t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,i){const m=f=>({year:f,isTwoDigitYear:e==="YY"});switch(e){case"Y":return an(Jt(4,t),m);case"Yo":return an(i.ordinalNumber(t,{unit:"year"}),m);default:return an(Jt(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,m){const f=Lc(t,m);if(i.isTwoDigitYear){const w=R0(i.year,f);return t.setFullYear(w,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),_r(t,m)}const v=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(v,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),_r(t,m)}}class rC extends _t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return E0(e==="R"?4:e.length,t)}set(t,e,i){const m=hn(t,0);return m.setFullYear(i,0,4),m.setHours(0,0,0,0),Eo(m)}}class oC extends _t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return E0(e==="u"?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class sC extends _t{constructor(){super(...arguments),Ee(this,"priority",120),Ee(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"Q":case"QQ":return Jt(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}}let aC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",120),Ee(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"q":case"qq":return Jt(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}};class lC extends _t{constructor(){super(...arguments),Ee(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ee(this,"priority",110)}parse(t,e,i){const m=f=>f-1;switch(e){case"M":return an(qt(sn.month,t),m);case"MM":return an(Jt(2,t),m);case"Mo":return an(i.ordinalNumber(t,{unit:"month"}),m);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}class cC extends _t{constructor(){super(...arguments),Ee(this,"priority",110),Ee(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,i){const m=f=>f-1;switch(e){case"L":return an(qt(sn.month,t),m);case"LL":return an(Jt(2,t),m);case"Lo":return an(i.ordinalNumber(t,{unit:"month"}),m);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}function uC(n,t,e){const i=jt(n,e==null?void 0:e.in),m=lp(i,e)-t;return i.setDate(i.getDate()-m*7),jt(i,e==null?void 0:e.in)}class hC extends _t{constructor(){super(...arguments),Ee(this,"priority",100),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,i){switch(e){case"w":return qt(sn.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return Jt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,m){return _r(uC(t,i,m),m)}}function dC(n,t,e){const i=jt(n,void 0),m=ap(i)-t;return i.setDate(i.getDate()-m*7),i}class pC extends _t{constructor(){super(...arguments),Ee(this,"priority",100),Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,i){switch(e){case"I":return qt(sn.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return Jt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return Eo(dC(t,i))}}const fC=[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];let mC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"subPriority",1),Ee(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"d":return qt(sn.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return Jt(e.length,t)}}validate(t,e){const i=t.getFullYear(),m=L0(i),f=t.getMonth();return m?e>=1&&e<=gC[f]:e>=1&&e<=fC[f]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}};class vC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"subpriority",1),Ee(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,i){switch(e){case"D":case"DD":return qt(sn.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return Jt(e.length,t)}}validate(t,e){const i=t.getFullYear();return L0(i)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}}function Lh(n,t,e){var i,m,f,v;const w=Mo(),h=(e==null?void 0:e.weekStartsOn)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.weekStartsOn)??w.weekStartsOn??((v=(f=w.locale)==null?void 0:f.options)==null?void 0:v.weekStartsOn)??0,g=jt(n,e==null?void 0:e.in),a=g.getDay(),l=(t%7+7)%7,s=7-h,c=t<0||t>6?t-(a+s)%7:(l+s)%7-(a+s)%7;return Eh(g,c,e)}class yC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Lh(t,i,m),t.setHours(0,0,0,0),t}}let wC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,i,m){const f=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return an(Jt(e.length,t),f);case"eo":return an(i.ordinalNumber(t,{unit:"day"}),f);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Lh(t,i,m),t.setHours(0,0,0,0),t}};class bC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,i,m){const f=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return an(Jt(e.length,t),f);case"co":return an(i.ordinalNumber(t,{unit:"day"}),f);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Lh(t,i,m),t.setHours(0,0,0,0),t}}function xC(n,t,e){const i=jt(n,void 0),m=KS(i),f=t-m;return Eh(i,f,e)}class _C extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,i){const m=f=>f===0?7:f;switch(e){case"i":case"ii":return Jt(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return an(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiii":return an(i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiiii":return an(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiii":default:return an(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return t=xC(t,i),t.setHours(0,0,0,0),t}}class kC extends _t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Rh(i),0,0,0),t}}class $C extends _t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Rh(i),0,0,0),t}}class SC extends _t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Rh(i),0,0,0),t}}class CC extends _t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,i){switch(e){case"h":return qt(sn.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return Jt(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){const m=t.getHours()>=12;return m&&i<12?t.setHours(i+12,0,0,0):!m&&i===12?t.setHours(0,0,0,0):t.setHours(i,0,0,0),t}}let AC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,i){switch(e){case"H":return qt(sn.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return Jt(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}};class TC extends _t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,i){switch(e){case"K":return qt(sn.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return Jt(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}}class MC extends _t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,i){switch(e){case"k":return qt(sn.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return Jt(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){const m=i<=24?i%24:i;return t.setHours(m,0,0,0),t}}class EC extends _t{constructor(){super(...arguments),Ee(this,"priority",60),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"m":return qt(sn.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return Jt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}}class RC extends _t{constructor(){super(...arguments),Ee(this,"priority",50),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"s":return qt(sn.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return Jt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}}let LC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",30),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e){const i=m=>Math.trunc(m*Math.pow(10,-e.length+3));return an(Jt(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}};class IC extends _t{constructor(){super(...arguments),Ee(this,"priority",10),Ee(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Vi(Ui.basicOptionalMinutes,t);case"XX":return Vi(Ui.basic,t);case"XXXX":return Vi(Ui.basicOptionalSeconds,t);case"XXXXX":return Vi(Ui.extendedOptionalSeconds,t);case"XXX":default:return Vi(Ui.extended,t)}}set(t,e,i){return e.timestampIsSet?t:hn(t,t.getTime()-Ta(t)-i)}}let OC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",10),Ee(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Vi(Ui.basicOptionalMinutes,t);case"xx":return Vi(Ui.basic,t);case"xxxx":return Vi(Ui.basicOptionalSeconds,t);case"xxxxx":return Vi(Ui.extendedOptionalSeconds,t);case"xxx":default:return Vi(Ui.extended,t)}}set(t,e,i){return e.timestampIsSet?t:hn(t,t.getTime()-Ta(t)-i)}};class NC extends _t{constructor(){super(...arguments),Ee(this,"priority",40),Ee(this,"incompatibleTokens","*")}parse(t){return M0(t)}set(t,e,i){return[hn(t,i*1e3),{timestampIsSet:!0}]}}class DC extends _t{constructor(){super(...arguments),Ee(this,"priority",20),Ee(this,"incompatibleTokens","*")}parse(t){return M0(t)}set(t,e,i){return[hn(t,i),{timestampIsSet:!0}]}}const FC={G:new tC,y:new nC,Y:new iC,R:new rC,u:new oC,Q:new sC,q:new aC,M:new lC,L:new cC,w:new hC,I:new pC,d:new mC,D:new vC,E:new yC,e:new wC,c:new bC,i:new _C,a:new kC,b:new $C,B:new SC,h:new CC,H:new AC,K:new TC,k:new MC,m:new EC,s:new RC,S:new LC,X:new IC,x:new OC,t:new NC,T:new DC},PC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,BC=/^'([^]*?)'?$/,zC=/''/g,jC=/\S/,WC=/[a-zA-Z]/;function UC(n,t,e,i){var m,f,v,w;const h=()=>hn(e,NaN),g=h0(),a=g.locale??sp,l=g.firstWeekContainsDate??((f=(m=g.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,s=g.weekStartsOn??((w=(v=g.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():jt(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:s,locale:a},o=[new eC(void 0,e)],u=t.match(HC).map(A=>{const k=A[0];if(k in Ic){const b=Ic[k];return b(A,a.formatLong)}return A}).join("").match(PC),p=[];for(let A of u){gp(A)&&Oc(A,t,n),fp(A)&&Oc(A,t,n);const k=A[0],b=FC[k];if(b){const{incompatibleTokens:T}=b;if(Array.isArray(T)){const I=p.find(M=>T.includes(M.token)||M.token===k);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${A}\` at the same time`)}else if(b.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);p.push({token:k,fullToken:A});const E=b.run(n,A,a.match,c);if(!E)return h();o.push(E.setter),n=E.rest}else{if(k.match(WC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(A==="''"?A="'":k==="'"&&(A=VC(A)),n.indexOf(A)===0)n=n.slice(A.length);else return h()}}if(n.length>0&&jC.test(n))return h();const y=o.map(A=>A.priority).sort((A,k)=>k-A).filter((A,k,b)=>b.indexOf(A)===k).map(A=>o.filter(k=>k.priority===A).sort((k,b)=>b.subPriority-k.subPriority)).map(A=>A[0]);let x=jt(e,void 0);if(isNaN(+x))return h();const R={};for(const A of y){if(!A.validate(x,c))return h();const k=A.set(x,R,c);Array.isArray(k)?(x=k[0],Object.assign(R,k[1])):x=k}return x}function VC(n){return n.match(BC)[1].replace(zC,"'")}const qC={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function GC(n,t,e,i,m,f){const v=Ie("rux-icon");return kt(),on(v,{size:e.size,icon:e.icon,style:vs(f.colorStyle)},null,8,["size","icon","style"])}const YC=ir(qC,[["render",GC],["__scopeId","data-v-9af48e85"]]),KC="/icons/status-dark.png",QC={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return KC},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=eA.indexOf(I0[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,i=32*this.scaleFactor*t,m=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*m}px;`,`background-size: ${e}px ${i}px;`,`height: ${m}px;`,`width: ${m}px;`,`padding-top: ${n-1}px;`].join("")}}};function ZC(n,t,e,i,m,f){return kt(),Bi("div",{style:vs(f.iconStyle)},null,4)}const JC=ir(QC,[["render",ZC]]),I0={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"},Ih={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},XC=function(n){const t="#000000",e="#ffffff",i=Ih[I0[n]];if(i){const m=+`0x${i.slice(1,3)}`,f=+`0x${i.slice(3,5)}`,v=+`0x${i.slice(5,7)}`;if((m*299+f*587+v*114)/1e3>128)return t}return e},eA=Object.keys(Ih),tA={astro:{component:n=>ms(YC,{...n})},"astro-status":{component:n=>ms(JC,{...n,status:n.icon})}},iO=rn("G",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(n){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(n))},openConfigBase:function(n,t=!1,e=null){new Sr().load_config(this.configKey,n).then(i=>{i?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(i)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(i=>{i&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:i})})},saveConfigBase:function(n,t){new Sr().save_config(this.configKey,n,JSON.stringify(t)).then(()=>{this.$notify.normal({title:"Saved configuration",body:n})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${n}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const n={...this.$route.query};delete n.config,this.$router.replace({query:n})}}}),nA={props:{configKey:String,modelValue:Boolean},data(){return{configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new Sr().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.selectedItem&&(this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedRows=[])},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[]},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(n),1),new Sr().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},iA={class:"mt-4 pa-3"},rA=["textContent"];function oA(n,t,e,i,m,f){const v=Ie("v-spacer"),w=Ie("v-toolbar"),h=Ie("v-text-field"),g=Ie("v-row"),a=Ie("v-btn"),l=Ie("v-data-table"),s=Ie("v-card-text"),c=Ie("v-card-actions"),o=Ie("v-card"),u=Ie("v-dialog");return kt(),on(u,{modelValue:f.show,"onUpdate:modelValue":t[4]||(t[4]=p=>f.show=p),onKeydown:Ac(f.cancel,["esc"]),width:"600"},{default:Se(()=>[be(o,null,{default:Se(()=>[Zn("form",{onSubmit:t[3]||(t[3]=To((...p)=>f.success&&f.success(...p),["prevent"]))},[be(w,{height:"24"},{default:Se(()=>[be(v),t[5]||(t[5]=Zn("span",null,"Open Configuration",-1)),be(v)]),_:1}),be(s,null,{default:Se(()=>[Zn("div",iA,[be(g,{dense:""},{default:Se(()=>[be(h,{label:"search",modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=p=>m.search=p),type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),be(l,{modelValue:m.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>m.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:m.search,headers:m.headers,items:m.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,y)=>f.selectRow(y))},{"item.actions":Se(({item:p})=>[be(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:y=>f.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),be(g,{dense:""},{default:Se(()=>[Sa(Zn("span",{class:"ma-2 text-red",textContent:In(f.error)},null,8,rA),[[Ca,f.error]])]),_:1})])]),_:1}),be(c,{class:"px-2"},{default:Se(()=>[be(v),be(a,{variant:"outlined",onClick:f.cancel,"data-test":"open-config-cancel-btn"},{default:Se(()=>t[6]||(t[6]=[Zt(" Cancel ")])),_:1},8,["onClick"]),be(a,{variant:"flat",onClick:To(f.success,["prevent"]),type:"submit","data-test":"open-config-submit-btn",disabled:!!f.error},{default:Se(()=>t[7]||(t[7]=[Zt(" Ok ")])),_:1},8,["onClick","disabled"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const rO=rn("Z",ir(nA,[["render",oA]])),sA={props:{configKey:String,modelValue:Boolean},data(){return{configName:"",configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.configName?null:"Config must have a name"},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new Sr().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(n),1),new Sr().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}}},aA={class:"mt-4 pa-3"},lA=["textContent"];function cA(n,t,e,i,m,f){const v=Ie("v-spacer"),w=Ie("v-toolbar"),h=Ie("v-text-field"),g=Ie("v-row"),a=Ie("v-btn"),l=Ie("v-data-table"),s=Ie("v-card-text"),c=Ie("v-card-actions"),o=Ie("v-card"),u=Ie("v-dialog");return kt(),on(u,{modelValue:f.show,"onUpdate:modelValue":t[5]||(t[5]=p=>f.show=p),onKeydown:Ac(f.cancel,["esc"]),width:"600"},{default:Se(()=>[be(o,null,{default:Se(()=>[Zn("form",{onSubmit:t[4]||(t[4]=To((...p)=>f.success&&f.success(...p),["prevent"]))},[be(w,{height:"24"},{default:Se(()=>[be(v),t[6]||(t[6]=Zn("span",null,"Save Configuration",-1)),be(v)]),_:1}),be(s,null,{default:Se(()=>[Zn("div",aA,[be(g,{dense:""},{default:Se(()=>[be(h,{label:"search",modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=p=>m.search=p),type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),be(l,{modelValue:m.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>m.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:m.search,headers:m.headers,items:m.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,y)=>f.selectRow(y))},{"item.actions":Se(({item:p})=>[be(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:y=>f.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),be(g,{dense:""},{default:Se(()=>[be(h,{modelValue:m.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>m.configName=p),"hide-details":"",autofocus:"",disabled:!!f.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),be(g,{dense:""},{default:Se(()=>[Sa(Zn("span",{class:"ma-2 text-red",textContent:In(f.error)},null,8,lA),[[Ca,f.error]])]),_:1})])]),_:1}),be(c,{class:"px-2"},{default:Se(()=>[be(v),be(a,{variant:"outlined",onClick:f.cancel},{default:Se(()=>t[7]||(t[7]=[Zt(" Cancel ")])),_:1},8,["onClick"]),be(a,{variant:"flat",onClick:To(f.success,["prevent"]),type:"submit","data-test":"save-config-submit-btn",disabled:!!f.error},{default:Se(()=>t[8]||(t[8]=[Zt(" Ok ")])),_:1},8,["onClick","disabled"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const oO=rn("H",ir(sA,[["render",cA]])),uA={};function hA(n,t){const e=Ie("v-card-title"),i=Ie("v-card-text"),m=Ie("v-card");return kt(),on(m,null,{default:Se(()=>[be(e,null,{default:Se(()=>t[0]||(t[0]=[Zt("404 Not Found Error")])),_:1}),be(i,null,{default:Se(()=>[t[1]||(t[1]=Zt("The requested URL ")),Zn("code",null,In(n.$route.fullPath),1),t[2]||(t[2]=Zt(" was not routable."))]),_:1})]),_:1})}const dA=ir(uA,[["render",hA]]),pA={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:n=>["cmd","tlm"].includes(n)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}},data(){var n,t,e;return{targetNames:[],selectedTargetName:(n=this.initialTargetName)==null?void 0:n.toUpperCase(),packetNames:[],selectedPacketName:(t=this.initialPacketName)==null?void 0:t.toUpperCase(),itemNames:[],selectedItemName:(e=this.initialItemName)==null?void 0:e.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created(){this.internalDisabled=!0,this.api=new Sr,this.api.get_target_names().then(n=>{this.targetNames=n.flatMap(t=>t=="UNKNOWN"?[]:{label:t,value:t}),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName?this.updatePackets():(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.unknown&&this.targetNames.push(this.UNKNOWN)})},computed:{actualButtonText:function(){return this.selectedPacketName==="ALL"?"Add Target":this.selectedItemName==="ALL"?"Add Packet":this.buttonText},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||this.selectedTargetName===null||this.selectedPacketName===null||this.selectedItemNameWIndex===null},colSize:function(){return this.vertical?12:!1},selectedItemNameWIndex:function(){return this.itemIsArray()&&this.selectedArrayIndex!==null&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName}},watch:{mode:function(n,t){this.selectedPacketName=null,this.selectedItemName=null,this.targetNameChanged(this.selectedTargetName)},chooseItem:function(n,t){n?this.updateItems():this.itemNames=[]}},methods:{updatePackets:function(){if(this.selectedTargetName==="UNKNOWN"){this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),this.description="UNKNOWN";return}if(this.selectedTargetName==="ALL"){this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),this.description="ALL";return}this.internalDisabled=!0;const n=this.mode==="tlm"?"get_all_tlm_names":"get_all_cmd_names";this.api[n](this.selectedTargetName,this.hidden).then(t=>{this.packetNames=t.map(e=>({label:e,value:e})),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName),this.packetNames.find(e=>e.value===this.selectedPacketName)&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1})},updateItems:function(){if(this.selectedPacketName==="ALL")return;this.internalDisabled=!0;const n=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[n](this.selectedTargetName,this.selectedPacketName).then(t=>{this.itemNames=t.items.map(e=>{let i=e.name;return e.data_type=="DERIVED"&&(i+=" *"),[{label:i,value:e.name,description:e.description,array:e.array_size/e.bit_size}]}).reduce((e,i)=>e.concat(i),[]),this.itemNames.sort((e,i)=>e.label>i.label?1:-1),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.itemIsArray(),this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1})},itemIsArray:function(){let n=this.itemNames.findIndex(t=>t.value===this.selectedItemName);return n===-1?(this.selectedArrayIndex=null,!1):isNaN(this.itemNames[n].array)?(this.selectedArrayIndex=null,!1):(this.selectedArrayIndex===null&&(this.selectedArrayIndex=0),!0)},arrayIndexes:function(){let n=this.itemNames.findIndex(e=>e.value===this.selectedItemName),t=[...Array(this.itemNames[n].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},targetNameChanged:function(n){this.selectedTargetName=n,this.selectedPacketName="",this.selectedItemName="",n!==null&&this.updatePackets()},packetNameChanged:function(n){this.selectedItemName="",n!==null&&this.updatePacketDetails(n)},updatePacketDetails:function(n){if(n==="ALL")this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;const t=this.packetNames.find(e=>n===e.value);if(t){this.selectedPacketName=t.value;const e=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then(i=>{this.description=i.description,this.hazardous=i.hazardous})}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(n){const t=this.itemNames.find(e=>n===e.value);t&&(this.itemIsArray(),this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(n){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){this.selectedPacketName==="ALL"?this.allTargetPacketItems():this.selectedItemName==="ALL"?this.allPacketItems():this.chooseItem?this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach(n=>{if(n===this.ALL)return;const t=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,n.value).then(e=>{e.items.forEach(i=>{this.$emit("addItem",{targetName:this.selectedTargetName,packetName:n.value,itemName:i.name,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})})})},allPacketItems:function(){this.itemNames.forEach(n=>{n!==this.ALL&&this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:n.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})}}},fA={class:"pt-4 pb-4"};function gA(n,t,e,i,m,f){const v=Ie("v-autocomplete"),w=Ie("v-col"),h=Ie("v-combobox"),g=Ie("v-btn"),a=Ie("v-row");return kt(),Bi("div",fA,[be(a,{"no-gutters":!e.vertical},{default:Se(()=>[be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:Se(()=>[be(v,{label:"Select Target","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[f.targetNameChanged,t[0]||(t[0]=l=>m.selectedTargetName=l)],items:m.targetNames,"item-title":"label","item-value":"value",modelValue:m.selectedTargetName},null,8,["onUpdate:modelValue","items","modelValue"])]),_:1},8,["cols"]),be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:Se(()=>[be(v,{label:"Select Packet","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[f.packetNameChanged,t[1]||(t[1]=l=>m.selectedPacketName=l)],disabled:m.packetsDisabled||f.autocompleteDisabled,items:m.packetNames,"item-title":"label","item-value":"value",modelValue:m.selectedPacketName},null,8,["onUpdate:modelValue","disabled","items","modelValue"])]),_:1},8,["cols"]),e.chooseItem?(kt(),on(w,{key:0,cols:f.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:Se(()=>[be(v,{label:"Select Item","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[t[2]||(t[2]=l=>f.itemNameChanged(l)),t[3]||(t[3]=l=>m.selectedItemName=l)],disabled:m.itemsDisabled||f.autocompleteDisabled,items:m.itemNames,"item-title":"label","item-value":"value",modelValue:m.selectedItemName},null,8,["disabled","items","modelValue"])]),_:1},8,["cols"])):Jn("",!0),e.chooseItem&&f.itemIsArray()?(kt(),on(w,{key:1,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:Se(()=>[be(h,{label:"Index","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[t[4]||(t[4]=l=>f.indexChanged(l)),t[5]||(t[5]=l=>m.selectedArrayIndex=l)],disabled:m.itemsDisabled||f.autocompleteDisabled,items:f.arrayIndexes(),"item-title":"label","item-value":"value",modelValue:m.selectedArrayIndex},null,8,["disabled","items","modelValue"])]),_:1})):Jn("",!0),e.buttonText?(kt(),on(w,{key:2,cols:f.colSize,style:{"max-width":"140px"}},{default:Se(()=>[be(g,{disabled:f.buttonDisabled,color:"primary","data-test":"select-send",onClick:f.buttonPressed},{default:Se(()=>[Zt(In(f.actualButtonText),1)]),_:1},8,["disabled","onClick"])]),_:1},8,["cols"])):Jn("",!0)]),_:1},8,["no-gutters"]),e.selectTypes?(kt(),on(a,{key:0,"no-gutters":"",class:"pt-6"},{default:Se(()=>[be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:Se(()=>[be(v,{label:"Value Type","hide-details":"",density:"compact",variant:"outlined",items:m.valueTypes,modelValue:m.selectedValueType,"onUpdate:modelValue":t[6]||(t[6]=l=>m.selectedValueType=l)},null,8,["items","modelValue"])]),_:1},8,["cols"]),be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:Se(()=>[be(v,{label:"Reduced","hide-details":"",density:"compact",variant:"outlined",items:m.reductionModes,modelValue:m.selectedReduced,"onUpdate:modelValue":t[7]||(t[7]=l=>m.selectedReduced=l)},null,8,["items","modelValue"])]),_:1},8,["cols"]),be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:Se(()=>[be(v,{label:"Reduced Type","hide-details":"",density:"compact",variant:"outlined",disabled:m.selectedReduced==="DECOM",items:m.reducedTypes,modelValue:m.selectedReducedType,"onUpdate:modelValue":t[8]||(t[8]=l=>m.selectedReducedType=l)},null,8,["disabled","items","modelValue"])]),_:1},8,["cols"]),be(w,{cols:f.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):Jn("",!0),be(a,{"no-gutters":"",class:"pa-3"},{default:Se(()=>[m.hazardous?(kt(),on(w,{key:0,cols:f.colSize,class:"openc3-yellow"},{default:Se(()=>[Zt("Description: "+In(m.description)+" (HAZARDOUS)",1)]),_:1},8,["cols"])):(kt(),on(w,{key:1,cols:f.colSize},{default:Se(()=>[Zt("Description: "+In(m.description),1)]),_:1},8,["cols"]))]),_:1})])}const sO=rn("$",ir(pA,[["render",gA],["__scopeId","data-v-980a401d"]])),O0=[{path:"/",name:"DataViewer",component:()=>De(()=>Ne.import("./DataViewer-e7201855078bff6f415f.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:dA}];O0.forEach(tp);const mA=Qd({history:Zd(),routes:O0}),vA={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"}},yA={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},wA=["innerHTML"],bA={key:2},xA={key:3,class:"validate mt-4"};function _A(n,t,e,i,m,f){const v=Ie("v-spacer"),w=Ie("v-toolbar"),h=Ie("v-icon"),g=Ie("v-text-field"),a=Ie("v-card-text"),l=Ie("v-btn"),s=Ie("v-card-actions"),c=Ie("v-card"),o=Ie("v-dialog"),u=Ie("v-app");return kt(),on(u,null,{default:Se(()=>[be(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=p=>n.show=p),width:"600"},{default:Se(()=>[be(c,null,{default:Se(()=>[be(w,{height:"24"},{default:Se(()=>[be(v),Zn("span",null,In(n.params.title),1),be(v)]),_:1}),be(a,{class:"mt-4 pa-3"},{default:Se(()=>[n.params.validateText?(kt(),on(h,{key:0,class:"mr-2"},{default:Se(()=>t[2]||(t[2]=[Zt(" mdi-alert ")])),_:1})):Jn("",!0),n.params.html?(kt(),Bi("span",{key:1,innerHTML:n.params.text},null,8,wA)):(kt(),Bi("span",bA,In(n.params.text),1)),n.params.validateText?(kt(),Bi("div",xA,[Zt(" Enter "+In(n.params.validateText)+" to confirm! ",1),be(g,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=p=>n.validationText=p),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):Jn("",!0)]),_:1}),be(s,{class:"px-2"},{default:Se(()=>[be(v),n.params.cancelText?(kt(),on(l,{key:0,variant:"outlined","data-test":f.dataTestCancel,onClick:f.cancel},{default:Se(()=>[Zt(In(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):Jn("",!0),be(l,{variant:"flat",color:n.params.okClass,"data-test":f.dataTestOk,onClick:f.ok},{default:Se(()=>[Zt(In(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const kA=ir(yA,[["render",_A],["__scopeId","data-v-581c0293"]]);class $A{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(kA);t.use(Nh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:i,okClass:m,validateText:f,cancelText:v,html:w}){return this.mount(),new Promise((h,g)=>{this.$root.dialog({title:t,text:e,okText:i,okClass:m,validateText:f,cancelText:v,html:w},h,g)})}confirm(t,{okText:e="Ok",cancelText:i="Cancel",okClass:m="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:m,validateText:null,cancelText:i,html:!1})}alert(t,{okText:e="Ok",html:i=!1,okClass:m="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:m,validateText:null,cancelText:null,html:i})}validate(t,{okText:e="Ok",validateText:i="CONFIRM",cancelText:m="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:i,cancelText:m,html:!1})}}const SA={install(n,t){const e=new $A;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},CA={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`
1411
+ `)},download:function(){const n=new Blob([this.displayText],{type:"text/plain"}),t=document.createElement("a");let e=URL.createObjectURL(n);t.href=e,t.setAttribute("download",`${Zr(new Date,"yyyy_MM_dd_HH_mm_ss")}.txt`),t.click(),window.URL.revokeObjectURL(e)},pause:function(){this.paused=!0},togglePlayPause:function(){this.paused=!this.paused},stepBackward:function(){this.pause(),this.pauseOffset--},stepForward:function(){this.pause(),this.pauseOffset++}}},V1={class:"pa-2"},q1={class:"text-area-container"},G1={class:"floating-buttons"};function Y1(n,t,e,i,m,f){const v=Ie("v-text-field"),w=Ie("v-col"),h=Ie("v-slider"),g=Ie("v-row"),a=Ie("v-textarea"),l=Ie("v-icon"),s=Ie("v-btn"),c=Ie("v-card-title"),o=Ie("v-switch"),u=Ie("v-radio"),p=Ie("v-radio-group"),y=Ie("v-card-text"),x=Ie("v-card"),R=Ie("v-menu");return kt(),zi("div",V1,[be(g,{dense:"",class:"mb-2"},{default:Se(()=>[be(w,{cols:"4"},{default:Se(()=>[be(v,{modelValue:n.filterText,"onUpdate:modelValue":t[0]||(t[0]=A=>n.filterText=A),label:"Search",class:"search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"","data-test":"history-component-search"},null,8,["modelValue"])]),_:1}),be(w,{cols:"8",class:"mt-1"},{default:Se(()=>[be(h,{modelValue:n.pauseOffset,"onUpdate:modelValue":t[1]||(t[1]=A=>n.pauseOffset=A),onMousedown:f.pause,"onClick:prepend":f.stepBackward,"onClick:append":f.stepForward,"prepend-icon":"mdi-step-backward","append-icon":"mdi-step-forward",min:1-n.currentConfig.history,max:0,"hide-details":""},null,8,["modelValue","onMousedown","onClick:prepend","onClick:append","min"])]),_:1})]),_:1}),be(g,{dense:"","no-gutters":""},{default:Se(()=>[be(w,null,{default:Se(()=>[Vn("div",q1,[be(a,{"model-value":n.displayText,rows:n.rows,"no-resize":"",readonly:"",variant:"solo",flat:"","hide-details":"","data-test":"history-component-text-area"},null,8,["model-value","rows"]),Vn("div",G1,[be(R,{"close-on-content-click":!1,"min-width":700},{activator:Se(({props:A})=>[be(s,Cc({class:"ml-2",color:"secondary"},A,{icon:"",size:"small","data-test":"history-component-open-settings"}),{default:Se(()=>[be(l,null,{default:Se(()=>t[9]||(t[9]=[Zt("astro:settings")])),_:1})]),_:2},1040)]),default:Se(()=>[be(x,null,{default:Se(()=>[be(c,{"data-test":"display-settings-card"},{default:Se(()=>t[10]||(t[10]=[Zt(" Display settings ")])),_:1}),be(y,null,{default:Se(()=>[be(g,null,{default:Se(()=>[be(w,null,{default:Se(()=>[be(o,{modelValue:n.currentConfig.showTimestamp,"onUpdate:modelValue":t[2]||(t[2]=A=>n.currentConfig.showTimestamp=A),label:"Show timestamp",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-timestamp"},null,8,["modelValue"]),n.hasRaw?(kt(),on(o,{key:0,modelValue:n.currentConfig.showAscii,"onUpdate:modelValue":t[3]||(t[3]=A=>n.currentConfig.showAscii=A),label:"Show ASCII",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-ascii"},null,8,["modelValue"])):qn("",!0),n.hasRaw?(kt(),on(o,{key:1,modelValue:n.currentConfig.showLineAddress,"onUpdate:modelValue":t[4]||(t[4]=A=>n.currentConfig.showLineAddress=A),label:"Show line address",density:"compact",color:"primary","hide-details":"","data-test":"history-component-settings-show-address"},null,8,["modelValue"])):qn("",!0)]),_:1}),be(w,null,{default:Se(()=>[be(p,{modelValue:n.currentConfig.newestAtTop,"onUpdate:modelValue":t[5]||(t[5]=A=>n.currentConfig.newestAtTop=A),label:"Print newest to the"},{default:Se(()=>[be(u,{label:"Top",value:!0,"data-test":"history-component-settings-newest-top"}),be(u,{label:"Bottom",value:!1,"data-test":"history-component-settings-newest-bottom"})]),_:1},8,["modelValue"])]),_:1}),be(w,null,{default:Se(()=>[be(v,{modelValue:n.currentConfig.history,"onUpdate:modelValue":t[6]||(t[6]=A=>n.currentConfig.history=A),label:"History Buffer",type:"number",min:"1","persistent-hint":"",rules:[n.rules.required,n.rules.min],"data-test":"history-component-settings-history"},null,8,["modelValue","rules"]),n.hasRaw?(kt(),on(v,{key:0,modelValue:n.currentConfig.bytesPerLine,"onUpdate:modelValue":t[7]||(t[7]=A=>n.currentConfig.bytesPerLine=A),label:"Bytes per line",type:"number",min:"1",rules:[n.rules.required,n.rules.min],"data-test":"history-component-settings-num-bytes"},null,8,["modelValue","rules"])):qn("",!0),be(v,{modelValue:n.currentConfig.packetsToShow,"onUpdate:modelValue":t[8]||(t[8]=A=>n.currentConfig.packetsToShow=A),label:"Entries to show",type:"number",min:"1",hint:`Maximum: ${n.currentConfig.history}`,"persistent-hint":"",rules:[n.rules.required,n.rules.min,n.rules.max],"data-test":"history-component-settings-num-packets"},null,8,["modelValue","hint","rules"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),be(s,{class:"ml-2",onClick:f.download,color:"secondary",icon:"",size:"small","data-test":"history-component-download"},{default:Se(()=>[be(l,null,{default:Se(()=>t[11]||(t[11]=[Zt("mdi-file-download")])),_:1})]),_:1},8,["onClick"]),be(s,{class:jd(["ml-2",{pulse:n.paused}]),onClick:f.togglePlayPause,color:"primary",icon:"","data-test":"history-component-play-pause"},{default:Se(()=>[n.paused?(kt(),on(l,{key:0,size:"large"},{default:Se(()=>t[12]||(t[12]=[Zt("mdi-play")])),_:1})):(kt(),on(l,{key:1,size:"large"},{default:Se(()=>t[13]||(t[13]=[Zt("mdi-pause")])),_:1}))]),_:1},8,["class","onClick"])])])]),_:1})]),_:1})])}const tO=rn("W",ir(U1,[["render",Y1],["__scopeId","data-v-90852ac7"]]));var _f={exports:{}},kf;function K1(){return kf||(kf=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n.exports=e})})()}(_f)),_f.exports}K1();const Q1=!0,yn="u-",Z1="uplot",J1=yn+"hz",X1=yn+"vt",ex=yn+"title",tx=yn+"wrap",nx=yn+"under",ix=yn+"over",rx=yn+"axis",to=yn+"off",ox=yn+"select",sx=yn+"cursor-x",ax=yn+"cursor-y",lx=yn+"cursor-pt",cx=yn+"legend",ux=yn+"live",hx=yn+"inline",dx=yn+"series",px=yn+"marker",$f=yn+"label",fx=yn+"value",Cs="width",As="height",Ts="top",Sf="bottom",Oo="left",Xc="right",eu="#000",Cf=eu+"0",Af="mousemove",Tf="mousedown",tu="mouseup",Mf="mouseenter",Ef="mouseleave",Rf="dblclick",gx="resize",mx="scroll",Lf="change",qa="dppxchange",nu="--",No=typeof window<"u",iu=No?document:null,Do=No?window:null,vx=No?navigator:null;let xt,Ga;function ru(){let n=devicePixelRatio;xt!=n&&(xt=n,Ga&&au(Lf,Ga,ru),Ga=matchMedia(`(min-resolution: ${xt-.001}dppx) and (max-resolution: ${xt+.001}dppx)`),no(Lf,Ga,ru),Do.dispatchEvent(new CustomEvent(qa)))}function ui(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function ou(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function zt(n,t,e){n.style[t]=e+"px"}function Li(n,t,e,i){let m=iu.createElement(n);return t!=null&&ui(m,t),e!=null&&e.insertBefore(m,i),m}function wi(n,t){return Li("div",n,t)}const If=new WeakMap;function ji(n,t,e,i,m){let f="translate("+t+"px,"+e+"px)",v=If.get(n);f!=v&&(n.style.transform=f,If.set(n,f),t<0||e<0||t>i||e>m?ui(n,to):ou(n,to))}const Of=new WeakMap;function Nf(n,t,e){let i=t+e,m=Of.get(n);i!=m&&(Of.set(n,i),n.style.background=t,n.style.borderColor=e)}const Df=new WeakMap;function Ff(n,t,e,i){let m=t+""+e,f=Df.get(n);m!=f&&(Df.set(n,m),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=i?-t/2+"px":0,n.style.marginTop=i?-e/2+"px":0)}const su={passive:!0},yx={...su,capture:!0};function no(n,t,e,i){t.addEventListener(n,e,i?yx:su)}function au(n,t,e,i){t.removeEventListener(n,e,su)}No&&ru();function Ii(n,t,e,i){let m;e=e||0,i=i||t.length-1;let f=i<=2147483647;for(;i-e>1;)m=f?e+i>>1:di((e+i)/2),t[m]<n?e=m:i=m;return n-t[e]<=t[i]-n?e:i}function Fo(n,t,e,i){for(let m=i==1?t:e;m>=t&&m<=e;m+=i)if(n[m]!=null)return m;return-1}function wx(n,t,e,i){let m=mt,f=-mt;if(i==1)m=n[t],f=n[e];else if(i==-1)m=n[e],f=n[t];else for(let v=t;v<=e;v++){let w=n[v];w!=null&&(w<m&&(m=w),w>f&&(f=w))}return[m,f]}function bx(n,t,e){let i=mt,m=-mt;for(let f=t;f<=e;f++){let v=n[f];v!=null&&v>0&&(v<i&&(i=v),v>m&&(m=v))}return[i,m]}function Ya(n,t,e,i){let m=zf(n),f=zf(t);n==t&&(m==-1?(n*=e,t/=e):(n/=e,t*=e));let v=e==10?rr:Bf,w=m==1?di:bi,h=f==1?bi:di,g=w(v(wn(n))),a=h(v(wn(t))),l=Po(e,g),s=Po(e,a);return e==10&&(g<0&&(l=Lt(l,-g)),a<0&&(s=Lt(s,-a))),i||e==2?(n=l*m,t=s*f):(n=Gf(n,l),t=Za(t,s)),[n,t]}function lu(n,t,e,i){let m=Ya(n,t,e,i);return n==0&&(m[0]=0),t==0&&(m[1]=0),m}const cu=.1,Pf={mode:3,pad:cu},Ms={pad:0,soft:null,mode:0},xx={min:Ms,max:Ms};function Ka(n,t,e,i){return Ja(e)?Hf(n,t,e):(Ms.pad=e,Ms.soft=i?0:null,Ms.mode=i?3:0,Hf(n,t,xx))}function bt(n,t){return n??t}function _x(n,t,e){for(t=bt(t,0),e=bt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Hf(n,t,e){let i=e.min,m=e.max,f=bt(i.pad,0),v=bt(m.pad,0),w=bt(i.hard,-mt),h=bt(m.hard,mt),g=bt(i.soft,mt),a=bt(m.soft,-mt),l=bt(i.mode,0),s=bt(m.mode,0),c=t-n,o=rr(c),u=Nn(wn(n),wn(t)),p=rr(u),y=wn(p-o);(c<1e-24||y>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&g!=mt&&(f=0),s==2&&a!=-mt&&(v=0)));let x=c||u||1e3,R=rr(x),A=Po(10,di(R)),k=x*(c==0?n==0?.1:1:f),b=Lt(Gf(n-k,A/10),24),T=n>=g&&(l==1||l==3&&b<=g||l==2&&b>=g)?g:mt,E=Nn(w,b<T&&n>=T?T:xi(T,b)),I=x*(c==0?t==0?.1:1:v),M=Lt(Za(t+I,A/10),24),D=t<=a&&(s==1||s==3&&M>=a||s==2&&M<=a)?a:-mt,$=xi(h,M>D&&t<=D?D:Nn(D,M));return E==$&&E==0&&($=100),[E,$]}const kx=new Intl.NumberFormat(No?vx.language:"en-US"),uu=n=>kx.format(n),hi=Math,Qa=hi.PI,wn=hi.abs,di=hi.floor,bn=hi.round,bi=hi.ceil,xi=hi.min,Nn=hi.max,Po=hi.pow,zf=hi.sign,rr=hi.log10,Bf=hi.log2,$x=(n,t=1)=>hi.sinh(n)*t,hu=(n,t=1)=>hi.asinh(n/t),mt=1/0;function jf(n){return(rr((n^n>>31)-(n>>31))|0)+1}function du(n,t,e){return xi(Nn(n,t),e)}function vt(n){return typeof n=="function"?n:()=>n}const Sx=()=>{},Wf=n=>n,Uf=(n,t)=>t,Vf=n=>!0,qf=(n,t)=>n==t,Cx=/\.\d*?(?=9{6,}|0{6,})/gm,io=n=>{if(Kf(n)||Cr.has(n))return n;const t=`${n}`,e=t.match(Cx);if(e==null)return n;let i=e[0].length-1;if(t.indexOf("e-")!=-1){let[m,f]=t.split("e");return+`${io(m)}e${f}`}return Lt(n,i)};function ro(n,t){return io(Lt(io(n/t))*t)}function Za(n,t){return io(bi(io(n/t))*t)}function Gf(n,t){return io(di(io(n/t))*t)}function Lt(n,t=0){if(Kf(n))return n;let e=10**t,i=n*e*(1+Number.EPSILON);return bn(i)/e}const Cr=new Map;function Yf(n){return((""+n).split(".")[1]||"").length}function Es(n,t,e,i){let m=[],f=i.map(Yf);for(let v=t;v<e;v++){let w=wn(v),h=Lt(Po(n,v),w);for(let g=0;g<i.length;g++){let a=n==10?+`${i[g]}e${v}`:i[g]*h,l=(v>=0?0:w)+(v>=f[g]?0:f[g]),s=n==10?a:Lt(a,l);m.push(s),Cr.set(s,l)}}return m}const Rs={},pu=[],Ho=[null,null],Ar=Array.isArray,Kf=Number.isInteger,Ax=n=>n===void 0;function Qf(n){return typeof n=="string"}function Ja(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function Tx(n){return n!=null&&typeof n=="object"}const Mx=Object.getPrototypeOf(Uint8Array),Zf="__proto__";function zo(n,t=Ja){let e;if(Ar(n)){let i=n.find(m=>m!=null);if(Ar(i)||t(i)){e=Array(n.length);for(let m=0;m<n.length;m++)e[m]=zo(n[m],t)}else e=n.slice()}else if(n instanceof Mx)e=n.slice();else if(t(n)){e={};for(let i in n)i!=Zf&&(e[i]=zo(n[i],t))}else e=n;return e}function pn(n){let t=arguments;for(let e=1;e<t.length;e++){let i=t[e];for(let m in i)m!=Zf&&(Ja(n[m])?pn(n[m],zo(i[m])):n[m]=zo(i[m]))}return n}const Ex=0,Rx=1,Lx=2;function Ix(n,t,e){for(let i=0,m,f=-1;i<t.length;i++){let v=t[i];if(v>f){for(m=v-1;m>=0&&n[m]==null;)n[m--]=null;for(m=v+1;m<e&&n[m]==null;)n[f=m++]=null}}}function Ox(n,t){if(Fx(n)){let v=n[0].slice();for(let w=1;w<n.length;w++)v.push(...n[w].slice(1));return Px(v[0])||(v=Dx(v)),v}let e=new Set;for(let v=0;v<n.length;v++){let w=n[v][0],h=w.length;for(let g=0;g<h;g++)e.add(w[g])}let i=[Array.from(e).sort((v,w)=>v-w)],m=i[0].length,f=new Map;for(let v=0;v<m;v++)f.set(i[0][v],v);for(let v=0;v<n.length;v++){let w=n[v],h=w[0];for(let g=1;g<w.length;g++){let a=w[g],l=Array(m).fill(void 0),s=t?t[v][g]:Rx,c=[];for(let o=0;o<a.length;o++){let u=a[o],p=f.get(h[o]);u===null?s!=Ex&&(l[p]=u,s==Lx&&c.push(p)):l[p]=u}Ix(l,c,m),i.push(l)}}return i}const Nx=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function Dx(n){let t=n[0],e=t.length,i=Array(e);for(let f=0;f<i.length;f++)i[f]=f;i.sort((f,v)=>t[f]-t[v]);let m=[];for(let f=0;f<n.length;f++){let v=n[f],w=Array(e);for(let h=0;h<e;h++)w[h]=v[i[h]];m.push(w)}return m}function Fx(n){let t=n[0][0],e=t.length;for(let i=1;i<n.length;i++){let m=n[i][0];if(m.length!=e)return!1;if(m!=t){for(let f=0;f<e;f++)if(m[f]!=t[f])return!1}}return!0}function Px(n,t=100){const e=n.length;if(e<=1)return!0;let i=0,m=e-1;for(;i<=m&&n[i]==null;)i++;for(;m>=i&&n[m]==null;)m--;if(m<=i)return!0;const f=Nn(1,di((m-i+1)/t));for(let v=n[i],w=i+f;w<=m;w+=f){const h=n[w];if(h!=null){if(h<=v)return!1;v=h}}return!0}const Jf=["January","February","March","April","May","June","July","August","September","October","November","December"],Xf=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function eg(n){return n.slice(0,3)}const Hx=Xf.map(eg),zx=Jf.map(eg),Bx={MMMM:Jf,MMM:zx,WWWW:Xf,WWW:Hx};function Ls(n){return(n<10?"0":"")+n}function jx(n){return(n<10?"00":n<100?"0":"")+n}const Wx={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,t)=>t.MMMM[n.getMonth()],MMM:(n,t)=>t.MMM[n.getMonth()],MM:n=>Ls(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Ls(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Ls(n.getHours()),H:n=>n.getHours(),h:n=>{let t=n.getHours();return t==0?12:t>12?t-12:t},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>Ls(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Ls(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>jx(n.getMilliseconds())};function fu(n,t){t=t||Bx;let e=[],i=/\{([a-z]+)\}|[^{]+/gi,m;for(;m=i.exec(n);)e.push(m[0][0]=="{"?Wx[m[1]]:m[0]);return f=>{let v="";for(let w=0;w<e.length;w++)v+=typeof e[w]=="string"?e[w]:e[w](f,t);return v}}const Ux=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Vx(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==Ux?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const tg=n=>n%1==0,Xa=[1,2,2.5,5],qx=Es(10,-32,0,Xa),ng=Es(10,0,32,Xa),Gx=ng.filter(tg),oo=qx.concat(ng),gu=`
1412
+ `,ig="{YYYY}",rg=gu+ig,og="{M}/{D}",Is=gu+og,el=Is+"/{YY}",sg="{aa}",Yx="{h}:{mm}",Bo=Yx+sg,ag=gu+Bo,lg=":{ss}",$t=null;function cg(n){let t=n*1e3,e=t*60,i=e*60,m=i*24,f=m*30,v=m*365,w=(n==1?Es(10,0,3,Xa).filter(tg):Es(10,-3,0,Xa)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,i,i*2,i*3,i*4,i*6,i*8,i*12,m,m*2,m*3,m*4,m*5,m*6,m*7,m*8,m*9,m*10,m*15,f,f*2,f*3,f*4,f*6,v,v*2,v*5,v*10,v*25,v*50,v*100]);const h=[[v,ig,$t,$t,$t,$t,$t,$t,1],[m*28,"{MMM}",rg,$t,$t,$t,$t,$t,1],[m,og,rg,$t,$t,$t,$t,$t,1],[i,"{h}"+sg,el,$t,Is,$t,$t,$t,1],[e,Bo,el,$t,Is,$t,$t,$t,1],[t,lg,el+" "+Bo,$t,Is+" "+Bo,$t,ag,$t,1],[n,lg+".{fff}",el+" "+Bo,$t,Is+" "+Bo,$t,ag,$t,1]];function g(a){return(l,s,c,o,u,p)=>{let y=[],x=u>=v,R=u>=f&&u<v,A=a(c),k=Lt(A*n,3),b=mu(A.getFullYear(),x?0:A.getMonth(),R||x?1:A.getDate()),T=Lt(b*n,3);if(R||x){let E=R?u/f:0,I=x?u/v:0,M=k==T?k:Lt(mu(b.getFullYear()+I,b.getMonth()+E,1)*n,3),D=new Date(bn(M/n)),$=D.getFullYear(),_=D.getMonth();for(let S=0;M<=o;S++){let L=mu($+I*S,_+E*S,1),O=L-a(Lt(L*n,3));M=Lt((+L+O)*n,3),M<=o&&y.push(M)}}else{let E=u>=m?m:u,I=di(c)-di(k),M=T+I+Za(k-T,E);y.push(M);let D=a(M),$=D.getHours()+D.getMinutes()/e+D.getSeconds()/i,_=u/i,S=l.axes[s]._space,L=p/S;for(;M=Lt(M+u,n==1?0:3),!(M>o);)if(_>1){let O=di(Lt($+_,6))%24,F=a(M).getHours()-O;F>1&&(F=-1),M-=F*i,$=($+_)%24;let H=y[y.length-1];Lt((M-H)/u,3)*L>=.7&&y.push(M)}else y.push(M)}return y}}return[w,h,g]}const[Kx,Qx,Zx]=cg(1),[Jx,Xx,e_]=cg(.001);Es(2,-53,53,[1]);function ug(n,t){return n.map(e=>e.map((i,m)=>m==0||m==8||i==null?i:t(m==1||e[8]==0?i:e[1]+i)))}function hg(n,t){return(e,i,m,f,v)=>{let w=t.find(o=>v>=o[0])||t[t.length-1],h,g,a,l,s,c;return i.map(o=>{let u=n(o),p=u.getFullYear(),y=u.getMonth(),x=u.getDate(),R=u.getHours(),A=u.getMinutes(),k=u.getSeconds(),b=p!=h&&w[2]||y!=g&&w[3]||x!=a&&w[4]||R!=l&&w[5]||A!=s&&w[6]||k!=c&&w[7]||w[1];return h=p,g=y,a=x,l=R,s=A,c=k,b(u)})}}function t_(n,t){let e=fu(t);return(i,m,f,v,w)=>m.map(h=>e(n(h)))}function mu(n,t,e){return new Date(n,t,e)}function dg(n,t){return t(n)}const n_="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function pg(n,t){return(e,i,m,f)=>f==null?nu:t(n(i))}function i_(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function r_(n,t){return n.series[t].fill(n,t)}const o_={show:!0,live:!0,isolate:!1,mount:Sx,markers:{show:!0,width:2,stroke:i_,fill:r_,dash:"solid"},idx:null,idxs:null,values:[]};function s_(n,t){let e=n.cursor.points,i=wi(),m=e.size(n,t);zt(i,Cs,m),zt(i,As,m);let f=m/-2;zt(i,"marginLeft",f),zt(i,"marginTop",f);let v=e.width(n,t,m);return v&&zt(i,"borderWidth",v),i}function a_(n,t){let e=n.series[t].points;return e._fill||e._stroke}function l_(n,t){let e=n.series[t].points;return e._stroke||e._fill}function c_(n,t){return n.series[t].points.size}const vu=[0,0];function u_(n,t,e){return vu[0]=t,vu[1]=e,vu}function tl(n,t,e,i=!0){return m=>{m.button==0&&(!i||m.target==t)&&e(m)}}function yu(n,t,e,i=!0){return m=>{(!i||m.target==t)&&e(m)}}const h_={show:!0,x:!0,y:!0,lock:!1,move:u_,points:{one:!1,show:s_,size:c_,width:0,stroke:l_,fill:a_},bind:{mousedown:tl,mouseup:tl,click:tl,dblclick:tl,mousemove:yu,mouseleave:yu,mouseenter:yu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,t,e,i,m)=>i-m,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},fg={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},wu=pn({},fg,{filter:Uf}),gg=pn({},wu,{size:10}),mg=pn({},fg,{show:!1}),bu='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"',vg="bold "+bu,yg=1.5,wg={show:!0,scale:"x",stroke:eu,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:vg,side:2,grid:wu,ticks:gg,border:mg,font:bu,lineGap:yg,rotate:0},d_="Value",p_="Time",bg={show:!0,scale:"x",auto:!1,sorted:1,min:mt,max:-mt,idxs:[]};function f_(n,t,e,i,m){return t.map(f=>f==null?"":uu(f))}function g_(n,t,e,i,m,f,v){let w=[],h=Cr.get(m)||0;e=v?e:Lt(Za(e,m),h);for(let g=e;g<=i;g=Lt(g+m,h))w.push(Object.is(g,-0)?0:g);return w}function xu(n,t,e,i,m,f,v){const w=[],h=n.scales[n.axes[t].scale].log,g=h==10?rr:Bf,a=di(g(e));m=Po(h,a),h==10&&(m=oo[Ii(m,oo)]);let l=e,s=m*h;h==10&&(s=oo[Ii(s,oo)]);do w.push(l),l=l+m,h==10&&!Cr.has(l)&&(l=Lt(l,Cr.get(m))),l>=s&&(m=l,s=m*h,h==10&&(s=oo[Ii(s,oo)]));while(l<=i);return w}function m_(n,t,e,i,m,f,v){let w=n.scales[n.axes[t].scale].asinh,h=i>w?xu(n,t,Nn(w,e),i,m):[w],g=i>=0&&e<=0?[0]:[];return(e<-w?xu(n,t,Nn(w,-i),-e,m):[w]).reverse().map(a=>-a).concat(g,h)}const xg=/./,v_=/[12357]/,y_=/[125]/,_g=/1/,_u=(n,t,e,i)=>n.map((m,f)=>t==4&&m==0||f%i==0&&e.test(m.toExponential()[m<0?1:0])?m:null);function w_(n,t,e,i,m){let f=n.axes[e],v=f.scale,w=n.scales[v],h=n.valToPos,g=f._space,a=h(10,v),l=h(9,v)-a>=g?xg:h(7,v)-a>=g?v_:h(5,v)-a>=g?y_:_g;if(l==_g){let s=wn(h(1,v)-a);if(s<g)return _u(t.slice().reverse(),w.distr,l,bi(g/s)).reverse()}return _u(t,w.distr,l,1)}function b_(n,t,e,i,m){let f=n.axes[e],v=f.scale,w=f._space,h=n.valToPos,g=wn(h(1,v)-h(2,v));return g<w?_u(t.slice().reverse(),3,xg,bi(w/g)).reverse():t}function x_(n,t,e,i){return i==null?nu:t==null?"":uu(t)}const kg={show:!0,scale:"y",stroke:eu,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:vg,side:3,grid:wu,ticks:gg,border:mg,font:bu,lineGap:yg,rotate:0};function __(n,t){let e=3+(n||1)*2;return Lt(e*t,3)}function k_(n,t){let{scale:e,idxs:i}=n.series[0],m=n._data[0],f=n.valToPos(m[i[0]],e,!0),v=n.valToPos(m[i[1]],e,!0),w=wn(v-f),h=n.series[t],g=w/(h.points.space*xt);return i[1]-i[0]<=g}const $g={scale:null,auto:!0,sorted:0,min:mt,max:-mt},Sg=(n,t,e,i,m)=>m,Cg={show:!0,auto:!0,sorted:0,gaps:Sg,alpha:1,facets:[pn({},$g,{scale:"x"}),pn({},$g,{scale:"y"})]},Ag={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Sg,alpha:1,points:{show:k_,filter:null},values:null,min:mt,max:-mt,idxs:[],path:null,clip:null};function $_(n,t,e,i,m){return e/10}const Tg={time:Q1,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},S_=pn({},Tg,{time:!1,ori:1}),Mg={};function Eg(n,t){let e=Mg[n];return e||(e={key:n,plots:[],sub(i){e.plots.push(i)},unsub(i){e.plots=e.plots.filter(m=>m!=i)},pub(i,m,f,v,w,h,g){for(let a=0;a<e.plots.length;a++)e.plots[a]!=m&&e.plots[a].pub(i,m,f,v,w,h,g)}},n!=null&&(Mg[n]=e)),e}const jo=1,ku=2;function so(n,t,e){const i=n.mode,m=n.series[t],f=i==2?n._data[t]:n._data,v=n.scales,w=n.bbox;let h=f[0],g=i==2?f[1]:f[t],a=i==2?v[m.facets[0].scale]:v[n.series[0].scale],l=i==2?v[m.facets[1].scale]:v[m.scale],s=w.left,c=w.top,o=w.width,u=w.height,p=n.valToPosH,y=n.valToPosV;return a.ori==0?e(m,h,g,a,l,p,y,s,c,o,u,il,Wo,ol,Ig,Ng):e(m,h,g,a,l,y,p,c,s,u,o,rl,Uo,Cu,Og,Dg)}function $u(n,t){let e=0,i=0,m=bt(n.bands,pu);for(let f=0;f<m.length;f++){let v=m[f];v.series[0]==t?e=v.dir:v.series[1]==t&&(v.dir==1?i|=1:i|=2)}return[e,i==1?-1:i==2?1:i==3?2:0]}function C_(n,t,e,i,m){let f=n.mode,v=n.series[t],w=f==2?v.facets[1].scale:v.scale,h=n.scales[w];return m==-1?h.min:m==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function or(n,t,e,i,m,f){return so(n,t,(v,w,h,g,a,l,s,c,o,u,p)=>{let y=v.pxRound;const x=g.dir*(g.ori==0?1:-1),R=g.ori==0?Wo:Uo;let A,k;x==1?(A=e,k=i):(A=i,k=e);let b=y(l(w[A],g,u,c)),T=y(s(h[A],a,p,o)),E=y(l(w[k],g,u,c)),I=y(s(f==1?a.max:a.min,a,p,o)),M=new Path2D(m);return R(M,E,I),R(M,b,I),R(M,b,T),M})}function nl(n,t,e,i,m,f){let v=null;if(n.length>0){v=new Path2D;const w=t==0?ol:Cu;let h=e;for(let l=0;l<n.length;l++){let s=n[l];if(s[1]>s[0]){let c=s[0]-h;c>0&&w(v,h,i,c,i+f),h=s[1]}}let g=e+m-h,a=10;g>0&&w(v,h,i-a/2,g,i+f+a)}return v}function A_(n,t,e){let i=n[n.length-1];i&&i[0]==t?i[1]=e:n.push([t,e])}function Su(n,t,e,i,m,f,v){let w=[],h=n.length;for(let g=m==1?e:i;g>=e&&g<=i;g+=m)if(t[g]===null){let a=g,l=g;if(m==1)for(;++g<=i&&t[g]===null;)l=g;else for(;--g>=e&&t[g]===null;)l=g;let s=f(n[a]),c=l==a?s:f(n[l]),o=a-m;s=v<=0&&o>=0&&o<h?f(n[o]):s;let u=l+m;c=v>=0&&u>=0&&u<h?f(n[u]):c,c>=s&&w.push([s,c])}return w}function Rg(n){return n==0?Wf:n==1?bn:t=>ro(t,n)}function Lg(n){let t=n==0?il:rl,e=n==0?(m,f,v,w,h,g)=>{m.arcTo(f,v,w,h,g)}:(m,f,v,w,h,g)=>{m.arcTo(v,f,h,w,g)},i=n==0?(m,f,v,w,h)=>{m.rect(f,v,w,h)}:(m,f,v,w,h)=>{m.rect(v,f,h,w)};return(m,f,v,w,h,g=0,a=0)=>{g==0&&a==0?i(m,f,v,w,h):(g=xi(g,w/2,h/2),a=xi(a,w/2,h/2),t(m,f+g,v),e(m,f+w,v,f+w,v+h,g),e(m,f+w,v+h,f,v+h,a),e(m,f,v+h,f,v,a),e(m,f,v,f+w,v,g),m.closePath())}}const il=(n,t,e)=>{n.moveTo(t,e)},rl=(n,t,e)=>{n.moveTo(e,t)},Wo=(n,t,e)=>{n.lineTo(t,e)},Uo=(n,t,e)=>{n.lineTo(e,t)},ol=Lg(0),Cu=Lg(1),Ig=(n,t,e,i,m,f)=>{n.arc(t,e,i,m,f)},Og=(n,t,e,i,m,f)=>{n.arc(e,t,i,m,f)},Ng=(n,t,e,i,m,f,v)=>{n.bezierCurveTo(t,e,i,m,f,v)},Dg=(n,t,e,i,m,f,v)=>{n.bezierCurveTo(e,t,m,i,v,f)};function Fg(n){return(t,e,i,m,f)=>so(t,e,(v,w,h,g,a,l,s,c,o,u,p)=>{let{pxRound:y,points:x}=v,R,A;g.ori==0?(R=il,A=Ig):(R=rl,A=Og);const k=Lt(x.width*xt,3);let b=(x.size-x.width)/2*xt,T=Lt(b*2,3),E=new Path2D,I=new Path2D,{left:M,top:D,width:$,height:_}=t.bbox;ol(I,M-T,D-T,$+T*2,_+T*2);const S=L=>{if(h[L]!=null){let O=y(l(w[L],g,u,c)),F=y(s(h[L],a,p,o));R(E,O+b,F),A(E,O,F,b,0,Qa*2)}};if(f)f.forEach(S);else for(let L=i;L<=m;L++)S(L);return{stroke:k>0?E:null,fill:E,clip:I,flags:jo|ku}})}function Pg(n){return(t,e,i,m,f,v)=>{i!=m&&(f!=i&&v!=i&&n(t,e,i),f!=m&&v!=m&&n(t,e,m),n(t,e,v))}}const T_=Pg(Wo),M_=Pg(Uo);function Hg(n){const t=bt(n==null?void 0:n.alignGaps,0);return(e,i,m,f)=>so(e,i,(v,w,h,g,a,l,s,c,o,u,p)=>{let y=v.pxRound,x=X=>y(l(X,g,u,c)),R=X=>y(s(X,a,p,o)),A,k;g.ori==0?(A=Wo,k=T_):(A=Uo,k=M_);const b=g.dir*(g.ori==0?1:-1),T={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:jo},E=T.stroke;let I=mt,M=-mt,D,$,_,S=x(w[b==1?m:f]),L=Fo(h,m,f,1*b),O=Fo(h,m,f,-1*b),F=x(w[L]),H=x(w[O]),W=!1;for(let X=b==1?m:f;X>=m&&X<=f;X+=b){let G=x(w[X]),Z=h[X];G==S?Z!=null?($=R(Z),I==mt&&(A(E,G,$),D=$),I=xi($,I),M=Nn($,M)):Z===null&&(W=!0):(I!=mt&&(k(E,S,I,M,D,$),_=S),Z!=null?($=R(Z),A(E,G,$),I=M=D=$):(I=mt,M=-mt,Z===null&&(W=!0)),S=G)}I!=mt&&I!=M&&_!=S&&k(E,S,I,M,D,$);let[V,q]=$u(e,i);if(v.fill!=null||V!=0){let X=T.fill=new Path2D(E),G=v.fillTo(e,i,v.min,v.max,V),Z=R(G);A(X,H,Z),A(X,F,Z)}if(!v.spanGaps){let X=[];W&&X.push(...Su(w,h,m,f,b,x,t)),T.gaps=X=v.gaps(e,i,m,f,X),T.clip=nl(X,g.ori,c,o,u,p)}return q!=0&&(T.band=q==2?[or(e,i,m,f,E,-1),or(e,i,m,f,E,1)]:or(e,i,m,f,E,q)),T})}function E_(n){const t=bt(n.align,1),e=bt(n.ascDesc,!1),i=bt(n.alignGaps,0),m=bt(n.extend,!1);return(f,v,w,h)=>so(f,v,(g,a,l,s,c,o,u,p,y,x,R)=>{let A=g.pxRound,{left:k,width:b}=f.bbox,T=V=>A(o(V,s,x,p)),E=V=>A(u(V,c,R,y)),I=s.ori==0?Wo:Uo;const M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:jo},D=M.stroke,$=s.dir*(s.ori==0?1:-1);w=Fo(l,w,h,1),h=Fo(l,w,h,-1);let _=E(l[$==1?w:h]),S=T(a[$==1?w:h]),L=S,O=S;m&&t==-1&&(O=k,I(D,O,_)),I(D,S,_);for(let V=$==1?w:h;V>=w&&V<=h;V+=$){let q=l[V];if(q==null)continue;let X=T(a[V]),G=E(q);t==1?I(D,X,_):I(D,L,G),I(D,X,G),_=G,L=X}let F=L;m&&t==1&&(F=k+b,I(D,F,_));let[H,W]=$u(f,v);if(g.fill!=null||H!=0){let V=M.fill=new Path2D(D),q=g.fillTo(f,v,g.min,g.max,H),X=E(q);I(V,F,X),I(V,O,X)}if(!g.spanGaps){let V=[];V.push(...Su(a,l,w,h,$,T,i));let q=g.width*xt/2,X=e||t==1?q:-q,G=e||t==-1?-q:q;V.forEach(Z=>{Z[0]+=X,Z[1]+=G}),M.gaps=V=g.gaps(f,v,w,h,V),M.clip=nl(V,s.ori,p,y,x,R)}return W!=0&&(M.band=W==2?[or(f,v,w,h,D,-1),or(f,v,w,h,D,1)]:or(f,v,w,h,D,W)),M})}function zg(n,t,e,i,m,f,v=mt){if(n.length>1){let w=null;for(let h=0,g=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let a=wn(n[h]-n[w]);a<g&&(g=a,v=wn(e(n[h],i,m,f)-e(n[w],i,m,f)))}w=h}}return v}function R_(n){n=n||Rs;const t=bt(n.size,[.6,mt,1]),e=n.align||0,i=n.gap||0;let m=n.radius;m=m==null?[0,0]:typeof m=="number"?[m,0]:m;const f=vt(m),v=1-t[0],w=bt(t[1],mt),h=bt(t[2],1),g=bt(n.disp,Rs),a=bt(n.each,c=>{}),{fill:l,stroke:s}=g;return(c,o,u,p)=>so(c,o,(y,x,R,A,k,b,T,E,I,M,D)=>{let $=y.pxRound,_=e,S=i*xt,L=w*xt,O=h*xt,F,H;A.ori==0?[F,H]=f(c,o):[H,F]=f(c,o);const W=A.dir*(A.ori==0?1:-1);let V=A.ori==0?ol:Cu,q=A.ori==0?a:(We,ce,Te,Re,qe,Ye,dt)=>{a(We,ce,Te,qe,Re,dt,Ye)},X=bt(c.bands,pu).find(We=>We.series[0]==o),G=X!=null?X.dir:0,Z=y.fillTo(c,o,y.min,y.max,G),ie=$(T(Z,k,D,I)),J,ae,me,ye=M,fe=$(y.width*xt),ke=!1,ot=null,Ft=null,ht=null,ft=null;l!=null&&(fe==0||s!=null)&&(ke=!0,ot=l.values(c,o,u,p),Ft=new Map,new Set(ot).forEach(We=>{We!=null&&Ft.set(We,new Path2D)}),fe>0&&(ht=s.values(c,o,u,p),ft=new Map,new Set(ht).forEach(We=>{We!=null&&ft.set(We,new Path2D)})));let{x0:ln,size:It}=g;if(ln!=null&&It!=null){_=1,x=ln.values(c,o,u,p),ln.unit==2&&(x=x.map(ce=>c.posToVal(E+ce*M,A.key,!0)));let We=It.values(c,o,u,p);It.unit==2?ae=We[0]*M:ae=b(We[0],A,M,E)-b(0,A,M,E),ye=zg(x,R,b,A,M,E,ye),me=ye-ae+S}else ye=zg(x,R,b,A,M,E,ye),me=ye*v+S,ae=ye-me;me<1&&(me=0),fe>=ae/2&&(fe=0),me<5&&($=Wf);let Gt=me>0,qi=ye-me-(Gt?fe:0);ae=$(du(qi,O,L)),J=(_==0?ae/2:_==W?0:ae)-_*W*((_==0?S/2:0)+(Gt?fe/2:0));const _n={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Xt=ke?null:new Path2D;let Pe=null;if(X!=null)Pe=c.data[X.series[1]];else{let{y0:We,y1:ce}=g;We!=null&&ce!=null&&(R=ce.values(c,o,u,p),Pe=We.values(c,o,u,p))}let Be=F*ae,en=H*ae;for(let We=W==1?u:p;We>=u&&We<=p;We+=W){let ce=R[We];if(ce==null)continue;if(Pe!=null){let ct=Pe[We]??0;if(ce-ct==0)continue;ie=T(ct,k,D,I)}let Te=A.distr!=2||g!=null?x[We]:We,Re=b(Te,A,M,E),qe=T(bt(ce,Z),k,D,I),Ye=$(Re-J),dt=$(Nn(qe,ie)),pt=$(xi(qe,ie)),lt=dt-pt;if(ce!=null){let ct=ce<0?en:Be,nt=ce<0?Be:en;ke?(fe>0&&ht[We]!=null&&V(ft.get(ht[We]),Ye,pt+di(fe/2),ae,Nn(0,lt-fe),ct,nt),ot[We]!=null&&V(Ft.get(ot[We]),Ye,pt+di(fe/2),ae,Nn(0,lt-fe),ct,nt)):V(Xt,Ye,pt+di(fe/2),ae,Nn(0,lt-fe),ct,nt),q(c,o,We,Ye-fe/2,pt,ae+fe,lt)}}return fe>0?_n.stroke=ke?ft:Xt:ke||(_n._fill=y.width==0?y._fill:y._stroke??y._fill,_n.width=0),_n.fill=ke?Ft:Xt,_n})}function L_(n,t){const e=bt(t==null?void 0:t.alignGaps,0);return(i,m,f,v)=>so(i,m,(w,h,g,a,l,s,c,o,u,p,y)=>{let x=w.pxRound,R=F=>x(s(F,a,p,o)),A=F=>x(c(F,l,y,u)),k,b,T;a.ori==0?(k=il,T=Wo,b=Ng):(k=rl,T=Uo,b=Dg);const E=a.dir*(a.ori==0?1:-1);f=Fo(g,f,v,1),v=Fo(g,f,v,-1);let I=R(h[E==1?f:v]),M=I,D=[],$=[];for(let F=E==1?f:v;F>=f&&F<=v;F+=E)if(g[F]!=null){let H=h[F],W=R(H);D.push(M=W),$.push(A(g[F]))}const _={stroke:n(D,$,k,T,b,x),fill:null,clip:null,band:null,gaps:null,flags:jo},S=_.stroke;let[L,O]=$u(i,m);if(w.fill!=null||L!=0){let F=_.fill=new Path2D(S),H=w.fillTo(i,m,w.min,w.max,L),W=A(H);T(F,M,W),T(F,I,W)}if(!w.spanGaps){let F=[];F.push(...Su(h,g,f,v,E,R,e)),_.gaps=F=w.gaps(i,m,f,v,F),_.clip=nl(F,a.ori,o,u,p,y)}return O!=0&&(_.band=O==2?[or(i,m,f,v,S,-1),or(i,m,f,v,S,1)]:or(i,m,f,v,S,O)),_})}function I_(n){return L_(O_,n)}function O_(n,t,e,i,m,f){const v=n.length;if(v<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),v==2)i(w,n[1],t[1]);else{let h=Array(v),g=Array(v-1),a=Array(v-1),l=Array(v-1);for(let s=0;s<v-1;s++)a[s]=t[s+1]-t[s],l[s]=n[s+1]-n[s],g[s]=a[s]/l[s];h[0]=g[0];for(let s=1;s<v-1;s++)g[s]===0||g[s-1]===0||g[s-1]>0!=g[s]>0?h[s]=0:(h[s]=3*(l[s-1]+l[s])/((2*l[s]+l[s-1])/g[s-1]+(l[s]+2*l[s-1])/g[s]),isFinite(h[s])||(h[s]=0));h[v-1]=g[v-2];for(let s=0;s<v-1;s++)m(w,n[s]+l[s]/3,t[s]+h[s]*l[s]/3,n[s+1]-l[s]/3,t[s+1]-h[s+1]*l[s]/3,n[s+1],t[s+1])}return w}const Au=new Set;function Bg(){for(let n of Au)n.syncRect(!0)}No&&(no(gx,Do,Bg),no(mx,Do,Bg,!0),no(qa,Do,()=>{Dn.pxRatio=xt}));const N_=Hg(),D_=Fg();function jg(n,t,e,i){return(i?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((m,f)=>Tu(m,f,t,e))}function F_(n,t){return n.map((e,i)=>i==0?{}:pn({},t,e))}function Tu(n,t,e,i){return pn({},t==0?e:i,n)}function Wg(n,t,e){return t==null?Ho:[t,e]}const P_=Wg;function H_(n,t,e){return t==null?Ho:Ka(t,e,cu,!0)}function Ug(n,t,e,i){return t==null?Ho:Ya(t,e,n.scales[i].log,!1)}const z_=Ug;function Vg(n,t,e,i){return t==null?Ho:lu(t,e,n.scales[i].log,!1)}const B_=Vg;function j_(n,t,e,i,m){let f=Nn(jf(n),jf(t)),v=t-n,w=Ii(m/i*v,e);do{let h=e[w],g=i*h/v;if(g>=m&&f+(h<5?Cr.get(h):0)<=17)return[h,g]}while(++w<e.length);return[0,0]}function qg(n){let t,e;return n=n.replace(/(\d+)px/,(i,m)=>(t=bn((e=+m)*xt))+"px"),[n,t,e]}function W_(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=Lt(t[2]*xt,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Dn(n,t,e){const i={mode:bt(n.mode,1)},m=i.mode;function f(P,B){return((B.distr==3?rr(P>0?P:B.clamp(i,P,B.min,B.max,B.key)):B.distr==4?hu(P,B.asinh):B.distr==100?B.fwd(P):P)-B._min)/(B._max-B._min)}function v(P,B,Y,K){let te=f(P,B);return K+Y*(B.dir==-1?1-te:te)}function w(P,B,Y,K){let te=f(P,B);return K+Y*(B.dir==-1?te:1-te)}function h(P,B,Y,K){return B.ori==0?v(P,B,Y,K):w(P,B,Y,K)}i.valToPosH=v,i.valToPosV=w;let g=!1;i.status=0;const a=i.root=wi(Z1);if(n.id!=null&&(a.id=n.id),ui(a,n.class),n.title){let P=wi(ex,a);P.textContent=n.title}const l=Li("canvas"),s=i.ctx=l.getContext("2d"),c=wi(tx,a);no("click",c,P=>{P.target===u&&(ze!=Fr||Pt!=Pr)&&$n.click(i,P)},!0);const o=i.under=wi(nx,c);c.appendChild(l);const u=i.over=wi(ix,c);n=zo(n);const p=+bt(n.pxAlign,1),y=Rg(p);(n.plugins||[]).forEach(P=>{P.opts&&(n=P.opts(i,n)||n)});const x=n.ms||.001,R=i.series=m==1?jg(n.series||[],bg,Ag,!1):F_(n.series||[null],Cg),A=i.axes=jg(n.axes||[],wg,kg,!0),k=i.scales={},b=i.bands=n.bands||[];b.forEach(P=>{P.fill=vt(P.fill||null),P.dir=bt(P.dir,-1)});const T=m==2?R[1].facets[0].scale:R[0].scale,E={axes:Uh,series:Ml},I=(n.drawOrder||["axes","series"]).map(P=>E[P]);function M(P){let B=k[P];if(B==null){let Y=(n.scales||Rs)[P]||Rs;if(Y.from!=null)M(Y.from),k[P]=pn({},k[Y.from],Y,{key:P});else{B=k[P]=pn({},P==T?Tg:S_,Y),B.key=P;let K=B.time,te=B.range,oe=Ar(te);if((P!=T||m==2&&!K)&&(oe&&(te[0]==null||te[1]==null)&&(te={min:te[0]==null?Pf:{mode:1,hard:te[0],soft:te[0]},max:te[1]==null?Pf:{mode:1,hard:te[1],soft:te[1]}},oe=!1),!oe&&Ja(te))){let de=te;te=(we,xe,_e)=>xe==null?Ho:Ka(xe,_e,de)}B.range=vt(te||(K?P_:P==T?B.distr==3?z_:B.distr==4?B_:Wg:B.distr==3?Ug:B.distr==4?Vg:H_)),B.auto=vt(oe?!1:B.auto),B.clamp=vt(B.clamp||$_),B._min=B._max=null}}}M("x"),M("y"),m==1&&R.forEach(P=>{M(P.scale)}),A.forEach(P=>{M(P.scale)});for(let P in n.scales)M(P);const D=k[T],$=D.distr;let _,S;D.ori==0?(ui(a,J1),_=v,S=w):(ui(a,X1),_=w,S=v);const L={};for(let P in k){let B=k[P];(B.min!=null||B.max!=null)&&(L[P]={min:B.min,max:B.max},B.min=B.max=null)}const O=n.tzDate||(P=>new Date(bn(P/x))),F=n.fmtDate||fu,H=x==1?Zx(O):e_(O),W=hg(O,ug(x==1?Qx:Xx,F)),V=pg(O,dg(n_,F)),q=[],X=i.legend=pn({},o_,n.legend),G=X.show,Z=X.markers;X.idxs=q,Z.width=vt(Z.width),Z.dash=vt(Z.dash),Z.stroke=vt(Z.stroke),Z.fill=vt(Z.fill);let ie,J,ae,me=[],ye=[],fe,ke=!1,ot={};if(X.live){const P=R[1]?R[1].values:null;ke=P!=null,fe=ke?P(i,1,0):{_:0};for(let B in fe)ot[B]=nu}if(G)if(ie=Li("table",cx,a),ae=Li("tbody",null,ie),X.mount(i,ie),ke){J=Li("thead",null,ie,ae);let P=Li("tr",null,J);Li("th",null,P);for(var Ft in fe)Li("th",$f,P).textContent=Ft}else ui(ie,hx),X.live&&ui(ie,ux);const ht={show:!0},ft={show:!1};function ln(P,B){if(B==0&&(ke||!X.live||m==2))return Ho;let Y=[],K=Li("tr",dx,ae,ae.childNodes[B]);ui(K,P.class),P.show||ui(K,to);let te=Li("th",null,K);if(Z.show){let we=wi(px,te);if(B>0){let xe=Z.width(i,B);xe&&(we.style.border=xe+"px "+Z.dash(i,B)+" "+Z.stroke(i,B)),we.style.background=Z.fill(i,B)}}let oe=wi($f,te);oe.textContent=P.label,B>0&&(Z.show||(oe.style.color=P.width>0?Z.stroke(i,B):Z.fill(i,B)),Gt("click",te,we=>{if(He._lock)return;ar(we);let xe=R.indexOf(P);if((we.ctrlKey||we.metaKey)!=X.isolate){let _e=R.some((Ce,Me)=>Me>0&&Me!=xe&&Ce.show);R.forEach((Ce,Me)=>{Me>0&&En(Me,_e?Me==xe?ht:ft:ht,!0,Yt.setSeries)})}else En(xe,{show:!P.show},!0,Yt.setSeries)},!1),Yi&&Gt(Mf,te,we=>{He._lock||(ar(we),En(R.indexOf(P),hr,!0,Yt.setSeries))},!1));for(var de in fe){let we=Li("td",fx,K);we.textContent="--",Y.push(we)}return[K,Y]}const It=new Map;function Gt(P,B,Y,K=!0){const te=It.get(B)||{},oe=He.bind[P](i,B,Y,K);oe&&(no(P,B,te[P]=oe),It.set(B,te))}function qi(P,B,Y){const K=It.get(B)||{};for(let te in K)(P==null||te==P)&&(au(te,B,K[te]),delete K[te]);P==null&&It.delete(B)}let _n=0,Xt=0,Pe=0,Be=0,en=0,We=0,ce=en,Te=We,Re=Pe,qe=Be,Ye=0,dt=0,pt=0,lt=0;i.bbox={};let ct=!1,nt=!1,Bt=!1,Pn=!1,sr=!1,ti=!1;function zs(P,B,Y){(Y||P!=i.width||B!=i.height)&&Bs(P,B),cr(!1),Bt=!0,nt=!0,Nr()}function Bs(P,B){i.width=_n=Pe=P,i.height=Xt=Be=B,en=We=0,Hh(),zh();let Y=i.bbox;Ye=Y.left=ro(en*xt,.5),dt=Y.top=ro(We*xt,.5),pt=Y.width=ro(Pe*xt,.5),lt=Y.height=ro(Be*xt,.5)}const kl=3;function Fh(){let P=!1,B=0;for(;!P;){B++;let Y=Ll(B),K=Il(B);P=B==kl||Y&&K,P||(Bs(i.width,i.height),nt=!0)}}function Ph({width:P,height:B}){zs(P,B)}i.setSize=Ph;function Hh(){let P=!1,B=!1,Y=!1,K=!1;A.forEach((te,oe)=>{if(te.show&&te._show){let{side:de,_size:we}=te,xe=de%2,_e=te.label!=null?te.labelSize:0,Ce=we+_e;Ce>0&&(xe?(Pe-=Ce,de==3?(en+=Ce,K=!0):Y=!0):(Be-=Ce,de==0?(We+=Ce,P=!0):B=!0))}}),lr[0]=P,lr[1]=Y,lr[2]=B,lr[3]=K,Pe-=Ki[1]+Ki[3],en+=Ki[3],Be-=Ki[2]+Ki[0],We+=Ki[0]}function zh(){let P=en+Pe,B=We+Be,Y=en,K=We;function te(oe,de){switch(oe){case 1:return P+=de,P-de;case 2:return B+=de,B-de;case 3:return Y-=de,Y+de;case 0:return K-=de,K+de}}A.forEach((oe,de)=>{if(oe.show&&oe._show){let we=oe.side;oe._pos=te(we,oe._size),oe.label!=null&&(oe._lpos=te(we,oe.labelSize))}})}const He=i.cursor=pn({},h_,{drag:{y:m==2}},n.cursor);if(He.dataIdx==null){let P=He.hover,B=P.skip=new Set(P.skip??[]);B.add(void 0);let Y=P.prox=vt(P.prox),K=P.bias??(P.bias=0);He.dataIdx=(te,oe,de,we)=>{if(oe==0)return de;let xe=de,_e=Y(te,oe,de,we)??mt,Ce=_e>=0&&_e<mt,Me=D.ori==0?Pe:Be,Ke=He.left,Mt=t[0],it=t[oe];if(B.has(it[de])){xe=null;let Ge=null,Ze=null,Le;if(K==0||K==-1)for(Le=de;Ge==null&&Le-- >0;)B.has(it[Le])||(Ge=Le);if(K==0||K==1)for(Le=de;Ze==null&&Le++<it.length;)B.has(it[Le])||(Ze=Le);if(Ge!=null||Ze!=null)if(Ce){let St=Ge==null?-1/0:_(Mt[Ge],D,Me,0),Kt=Ze==null?1/0:_(Mt[Ze],D,Me,0),Ut=Ke-St,Nt=Kt-Ke;Ut<=Nt?Ut<=_e&&(xe=Ge):Nt<=_e&&(xe=Ze)}else xe=Ze==null?Ge:Ge==null?Ze:de-Ge<=Ze-de?Ge:Ze}else Ce&&wn(Ke-_(Mt[de],D,Me,0))>_e&&(xe=null);return xe}}const ar=P=>{He.event=P};He.idxs=q,He._lock=!1;let Mn=He.points;Mn.show=vt(Mn.show),Mn.size=vt(Mn.size),Mn.stroke=vt(Mn.stroke),Mn.width=vt(Mn.width),Mn.fill=vt(Mn.fill);const Gi=i.focus=pn({},n.focus||{alpha:.3},He.focus),Yi=Gi.prox>=0,Tr=Yi&&Mn.one;let Hn=[],Mr=[],Er=[];function $l(P,B){let Y=Mn.show(i,B);if(Y)return ui(Y,lx),ui(Y,P.class),ji(Y,-10,-10,Pe,Be),u.insertBefore(Y,Hn[B]),Y}function Sl(P,B){if(m==1||B>0){let Y=m==1&&k[P.scale].time,K=P.value;P.value=Y?Qf(K)?pg(O,dg(K,F)):K||V:K||x_,P.label=P.label||(Y?p_:d_)}if(Tr||B>0){P.width=P.width==null?1:P.width,P.paths=P.paths||N_,P.fillTo=vt(P.fillTo||C_),P.pxAlign=+bt(P.pxAlign,p),P.pxRound=Rg(P.pxAlign),P.stroke=vt(P.stroke||null),P.fill=vt(P.fill||null),P._stroke=P._fill=P._paths=P._focus=null;let Y=__(Nn(1,P.width),1),K=P.points=pn({},{size:Y,width:Nn(1,Y*.2),stroke:P.stroke,space:Y*2,paths:D_,_stroke:null,_fill:null},P.points);K.show=vt(K.show),K.filter=vt(K.filter),K.fill=vt(K.fill),K.stroke=vt(K.stroke),K.paths=vt(K.paths),K.pxAlign=P.pxAlign}if(G){let Y=ln(P,B);me.splice(B,0,Y[0]),ye.splice(B,0,Y[1]),X.values.push(null)}if(He.show){q.splice(B,0,null);let Y=null;Tr?B==0&&(Y=$l(P,B)):B>0&&(Y=$l(P,B)),Hn.splice(B,0,Y),Mr.splice(B,0,0),Er.splice(B,0,0)}tn("addSeries",B)}function Bh(P,B){B=B??R.length,P=m==1?Tu(P,B,bg,Ag):Tu(P,B,{},Cg),R.splice(B,0,P),Sl(R[B],B)}i.addSeries=Bh;function jh(P){if(R.splice(P,1),G){X.values.splice(P,1),ye.splice(P,1);let B=me.splice(P,1)[0];qi(null,B.firstChild),B.remove()}He.show&&(q.splice(P,1),Hn.splice(P,1)[0].remove(),Mr.splice(P,1),Er.splice(P,1)),tn("delSeries",P)}i.delSeries=jh;const lr=[!1,!1,!1,!1];function Wh(P,B){if(P._show=P.show,P.show){let Y=P.side%2,K=k[P.scale];K==null&&(P.scale=Y?R[1].scale:T,K=k[P.scale]);let te=K.time;P.size=vt(P.size),P.space=vt(P.space),P.rotate=vt(P.rotate),Ar(P.incrs)&&P.incrs.forEach(de=>{!Cr.has(de)&&Cr.set(de,Yf(de))}),P.incrs=vt(P.incrs||(K.distr==2?Gx:te?x==1?Kx:Jx:oo)),P.splits=vt(P.splits||(te&&K.distr==1?H:K.distr==3?xu:K.distr==4?m_:g_)),P.stroke=vt(P.stroke),P.grid.stroke=vt(P.grid.stroke),P.ticks.stroke=vt(P.ticks.stroke),P.border.stroke=vt(P.border.stroke);let oe=P.values;P.values=Ar(oe)&&!Ar(oe[0])?vt(oe):te?Ar(oe)?hg(O,ug(oe,F)):Qf(oe)?t_(O,oe):oe||W:oe||f_,P.filter=vt(P.filter||(K.distr>=3&&K.log==10?w_:K.distr==3&&K.log==2?b_:Uf)),P.font=qg(P.font),P.labelFont=qg(P.labelFont),P._size=P.size(i,null,B,0),P._space=P._rotate=P._incrs=P._found=P._splits=P._values=null,P._size>0&&(lr[B]=!0,P._el=wi(rx,c))}}function Rr(P,B,Y,K){let[te,oe,de,we]=Y,xe=B%2,_e=0;return xe==0&&(we||oe)&&(_e=B==0&&!te||B==2&&!de?bn(wg.size/3):0),xe==1&&(te||de)&&(_e=B==1&&!oe||B==3&&!we?bn(kg.size/2):0),_e}const Cl=i.padding=(n.padding||[Rr,Rr,Rr,Rr]).map(P=>vt(bt(P,Rr))),Ki=i._padding=Cl.map((P,B)=>P(i,B,lr,0));let kn,fn=null,gn=null;const Yo=m==1?R[0].idxs:null;let zn=null,uo=!1;function ho(P,B){if(t=P??[],i.data=i._data=t,m==2){kn=0;for(let Y=1;Y<R.length;Y++)kn+=t[Y][0].length}else{t.length==0&&(i.data=i._data=t=[[]]),zn=t[0],kn=zn.length;let Y=t;if($==2){Y=t.slice();let K=Y[0]=Array(kn);for(let te=0;te<kn;te++)K[te]=te}i._data=t=Y}if(cr(!0),tn("setData"),$==2&&(Bt=!0),B!==!1){let Y=D;Y.auto(i,uo)?js():ki(T,Y.min,Y.max),Pn=Pn||He.left>=0,ti=!0,Nr()}}i.setData=ho;function js(){uo=!0;let P,B;m==1&&(kn>0?(fn=Yo[0]=0,gn=Yo[1]=kn-1,P=t[0][fn],B=t[0][gn],$==2?(P=fn,B=gn):P==B&&($==3?[P,B]=Ya(P,P,D.log,!1):$==4?[P,B]=lu(P,P,D.log,!1):D.time?B=P+bn(86400/x):[P,B]=Ka(P,B,cu,!0))):(fn=Yo[0]=P=null,gn=Yo[1]=B=null)),ki(T,P,B)}let Ko,Lr,Qo,Zo,Jo,Ws,Us,Vs,qs,_i;function Gs(P,B,Y,K,te,oe){P??(P=Cf),Y??(Y=pu),K??(K="butt"),te??(te=Cf),oe??(oe="round"),P!=Ko&&(s.strokeStyle=Ko=P),te!=Lr&&(s.fillStyle=Lr=te),B!=Qo&&(s.lineWidth=Qo=B),oe!=Jo&&(s.lineJoin=Jo=oe),K!=Ws&&(s.lineCap=Ws=K),Y!=Zo&&s.setLineDash(Zo=Y)}function Ys(P,B,Y,K){B!=Lr&&(s.fillStyle=Lr=B),P!=Us&&(s.font=Us=P),Y!=Vs&&(s.textAlign=Vs=Y),K!=qs&&(s.textBaseline=qs=K)}function po(P,B,Y,K,te=0){if(K.length>0&&P.auto(i,uo)&&(B==null||B.min==null)){let oe=bt(fn,0),de=bt(gn,K.length-1),we=Y.min==null?P.distr==3?bx(K,oe,de):wx(K,oe,de,te):[Y.min,Y.max];P.min=xi(P.min,Y.min=we[0]),P.max=Nn(P.max,Y.max=we[1])}}const Al={min:null,max:null};function Tl(){for(let K in k){let te=k[K];L[K]==null&&(te.min==null||L[T]!=null&&te.auto(i,uo))&&(L[K]=Al)}for(let K in k){let te=k[K];L[K]==null&&te.from!=null&&L[te.from]!=null&&(L[K]=Al)}L[T]!=null&&cr(!0);let P={};for(let K in L){let te=L[K];if(te!=null){let oe=P[K]=zo(k[K],Tx);if(te.min!=null)pn(oe,te);else if(K!=T||m==2)if(kn==0&&oe.from==null){let de=oe.range(i,null,null,K);oe.min=de[0],oe.max=de[1]}else oe.min=mt,oe.max=-mt}}if(kn>0){R.forEach((K,te)=>{if(m==1){let oe=K.scale,de=L[oe];if(de==null)return;let we=P[oe];if(te==0){let xe=we.range(i,we.min,we.max,oe);we.min=xe[0],we.max=xe[1],fn=Ii(we.min,t[0]),gn=Ii(we.max,t[0]),gn-fn>1&&(t[0][fn]<we.min&&fn++,t[0][gn]>we.max&&gn--),K.min=zn[fn],K.max=zn[gn]}else K.show&&K.auto&&po(we,de,K,t[te],K.sorted);K.idxs[0]=fn,K.idxs[1]=gn}else if(te>0&&K.show&&K.auto){let[oe,de]=K.facets,we=oe.scale,xe=de.scale,[_e,Ce]=t[te],Me=P[we],Ke=P[xe];Me!=null&&po(Me,L[we],oe,_e,oe.sorted),Ke!=null&&po(Ke,L[xe],de,Ce,de.sorted),K.min=de.min,K.max=de.max}});for(let K in P){let te=P[K],oe=L[K];if(te.from==null&&(oe==null||oe.min==null)){let de=te.range(i,te.min==mt?null:te.min,te.max==-mt?null:te.max,K);te.min=de[0],te.max=de[1]}}}for(let K in P){let te=P[K];if(te.from!=null){let oe=P[te.from];if(oe.min==null)te.min=te.max=null;else{let de=te.range(i,oe.min,oe.max,K);te.min=de[0],te.max=de[1]}}}let B={},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?rr(oe.min):de==4?hu(oe.min,oe.asinh):de==100?oe.fwd(oe.min):oe.min,oe._max=de==3?rr(oe.max):de==4?hu(oe.max,oe.asinh):de==100?oe.fwd(oe.max):oe.max,B[K]=Y=!0}}if(Y){R.forEach((K,te)=>{m==2?te>0&&B.y&&(K._paths=null):B[K.scale]&&(K._paths=null)});for(let K in B)Bt=!0,tn("setScale",K);He.show&&He.left>=0&&(Pn=ti=!0)}for(let K in L)L[K]=null}function Xo(P){let B=du(fn-1,0,kn-1),Y=du(gn+1,0,kn-1);for(;P[B]==null&&B>0;)B--;for(;P[Y]==null&&Y<kn-1;)Y++;return[B,Y]}function Ml(){kn>0&&(R.forEach((P,B)=>{if(B>0&&P.show&&(El(B,!1),El(B,!0),P._paths==null)){_i!=P.alpha&&(s.globalAlpha=_i=P.alpha);let Y=m==2?[0,t[B][0].length-1]:Xo(t[B]);P._paths=P.paths(i,B,Y[0],Y[1]),_i!=1&&(s.globalAlpha=_i=1)}}),R.forEach((P,B)=>{if(B>0&&P.show){_i!=P.alpha&&(s.globalAlpha=_i=P.alpha),P._paths!=null&&Ks(B,!1);{let Y=P._paths!=null?P._paths.gaps:null,K=P.points.show(i,B,fn,gn,Y),te=P.points.filter(i,B,K,Y);(K||te)&&(P.points._paths=P.points.paths(i,B,fn,gn,te),Ks(B,!0))}_i!=1&&(s.globalAlpha=_i=1),tn("drawSeries",B)}}))}function El(P,B){let Y=B?R[P].points:R[P];Y._stroke=Y.stroke(i,P),Y._fill=Y.fill(i,P)}function Ks(P,B){let Y=B?R[P].points:R[P],{stroke:K,fill:te,clip:oe,flags:de,_stroke:we=Y._stroke,_fill:xe=Y._fill,_width:_e=Y.width}=Y._paths;_e=Lt(_e*xt,3);let Ce=null,Me=_e%2/2;B&&xe==null&&(xe=_e>0?"#fff":we);let Ke=Y.pxAlign==1&&Me>0;if(Ke&&s.translate(Me,Me),!B){let Mt=Ye-_e/2,it=dt-_e/2,Ge=pt+_e,Ze=lt+_e;Ce=new Path2D,Ce.rect(Mt,it,Ge,Ze)}B?Qs(we,_e,Y.dash,Y.cap,xe,K,te,de,oe):Rl(P,we,_e,Y.dash,Y.cap,xe,K,te,de,Ce,oe),Ke&&s.translate(-Me,-Me)}function Rl(P,B,Y,K,te,oe,de,we,xe,_e,Ce){let Me=!1;xe!=0&&b.forEach((Ke,Mt)=>{if(Ke.series[0]==P){let it=R[Ke.series[1]],Ge=t[Ke.series[1]],Ze=(it._paths||Rs).band;Ar(Ze)&&(Ze=Ke.dir==1?Ze[0]:Ze[1]);let Le,St=null;it.show&&Ze&&_x(Ge,fn,gn)?(St=Ke.fill(i,Mt)||oe,Le=it._paths.clip):Ze=null,Qs(B,Y,K,te,St,de,we,xe,_e,Ce,Le,Ze),Me=!0}}),Me||Qs(B,Y,K,te,oe,de,we,xe,_e,Ce)}const es=jo|ku;function Qs(P,B,Y,K,te,oe,de,we,xe,_e,Ce,Me){Gs(P,B,Y,K,te),(xe||_e||Me)&&(s.save(),xe&&s.clip(xe),_e&&s.clip(_e)),Me?(we&es)==es?(s.clip(Me),Ce&&s.clip(Ce),Ir(te,de),fo(P,oe,B)):we&ku?(Ir(te,de),s.clip(Me),fo(P,oe,B)):we&jo&&(s.save(),s.clip(Me),Ce&&s.clip(Ce),Ir(te,de),s.restore(),fo(P,oe,B)):(Ir(te,de),fo(P,oe,B)),(xe||_e||Me)&&s.restore()}function fo(P,B,Y){Y>0&&(B instanceof Map?B.forEach((K,te)=>{s.strokeStyle=Ko=te,s.stroke(K)}):B!=null&&P&&s.stroke(B))}function Ir(P,B){B instanceof Map?B.forEach((Y,K)=>{s.fillStyle=Lr=K,s.fill(Y)}):B!=null&&P&&s.fill(B)}function Zs(P,B,Y,K){let te=A[P],oe;if(K<=0)oe=[0,0];else{let de=te._space=te.space(i,P,B,Y,K),we=te._incrs=te.incrs(i,P,B,Y,K,de);oe=j_(B,Y,we,K,de)}return te._found=oe}function Qi(P,B,Y,K,te,oe,de,we,xe,_e){let Ce=de%2/2;p==1&&s.translate(Ce,Ce),Gs(we,de,xe,_e,we),s.beginPath();let Me,Ke,Mt,it,Ge=te+(K==0||K==3?-oe:oe);Y==0?(Ke=te,it=Ge):(Me=te,Mt=Ge);for(let Ze=0;Ze<P.length;Ze++)B[Ze]!=null&&(Y==0?Me=Mt=P[Ze]:Ke=it=P[Ze],s.moveTo(Me,Ke),s.lineTo(Mt,it));s.stroke(),p==1&&s.translate(-Ce,-Ce)}function Ll(P){let B=!0;return A.forEach((Y,K)=>{if(!Y.show)return;let te=k[Y.scale];if(te.min==null){Y._show&&(B=!1,Y._show=!1,cr(!1));return}else Y._show||(B=!1,Y._show=!0,cr(!1));let oe=Y.side,de=oe%2,{min:we,max:xe}=te,[_e,Ce]=Zs(K,we,xe,de==0?Pe:Be);if(Ce==0)return;let Me=te.distr==2,Ke=Y._splits=Y.splits(i,K,we,xe,_e,Ce,Me),Mt=te.distr==2?Ke.map(Le=>zn[Le]):Ke,it=te.distr==2?zn[Ke[1]]-zn[Ke[0]]:_e,Ge=Y._values=Y.values(i,Y.filter(i,Mt,K,Ce,it),K,Ce,it);Y._rotate=oe==2?Y.rotate(i,Ge,K,Ce):0;let Ze=Y._size;Y._size=bi(Y.size(i,Ge,K,P)),Ze!=null&&Y._size!=Ze&&(B=!1)}),B}function Il(P){let B=!0;return Cl.forEach((Y,K)=>{let te=Y(i,K,lr,P);te!=Ki[K]&&(B=!1),Ki[K]=te}),B}function Uh(){for(let P=0;P<A.length;P++){let B=A[P];if(!B.show||!B._show)continue;let Y=B.side,K=Y%2,te,oe,de=B.stroke(i,P),we=Y==0||Y==3?-1:1;if(B.label){let Cn=B.labelGap*we,Kn=bn((B._lpos+Cn)*xt);Ys(B.labelFont[0],de,"center",Y==2?Ts:Sf),s.save(),K==1?(te=oe=0,s.translate(Kn,bn(dt+lt/2)),s.rotate((Y==3?-Qa:Qa)/2)):(te=bn(Ye+pt/2),oe=Kn),s.fillText(B.label,te,oe),s.restore()}let[xe,_e]=B._found;if(_e==0)continue;let Ce=k[B.scale],Me=K==0?pt:lt,Ke=K==0?Ye:dt,Mt=bn(B.gap*xt),it=B._splits,Ge=Ce.distr==2?it.map(Cn=>zn[Cn]):it,Ze=Ce.distr==2?zn[it[1]]-zn[it[0]]:xe,Le=B.ticks,St=B.border,Kt=Le.show?bn(Le.size*xt):0,Ut=B._rotate*-Qa/180,Nt=y(B._pos*xt),Dt=(Kt+Mt)*we,ne=Nt+Dt;oe=K==0?ne:0,te=K==1?ne:0;let le=B.font[0],se=B.align==1?Oo:B.align==2?Xc:Ut>0?Oo:Ut<0?Xc:K==0?"center":Y==3?Xc:Oo,$e=Ut||K==1?"middle":Y==2?Ts:Sf;Ys(le,de,se,$e);let Fe=B.font[1]*B.lineGap,Qe=it.map(Cn=>y(h(Cn,Ce,Me,Ke))),Ct=B._values;for(let Cn=0;Cn<Ct.length;Cn++){let Kn=Ct[Cn];if(Kn!=null){K==0?te=Qe[Cn]:oe=Qe[Cn],Kn=""+Kn;let An=Kn.indexOf(`
1413
+ `)==-1?[Kn]:Kn.split(/\n/gm);for(let fi=0;fi<An.length;fi++){let ri=An[fi];Ut?(s.save(),s.translate(te,oe+fi*Fe),s.rotate(Ut),s.fillText(ri,0,0),s.restore()):s.fillText(ri,te,oe+fi*Fe)}}}Le.show&&Qi(Qe,Le.filter(i,Ge,P,_e,Ze),K,Y,Nt,Kt,Lt(Le.width*xt,3),Le.stroke(i,P),Le.dash,Le.cap);let Je=B.grid;Je.show&&Qi(Qe,Je.filter(i,Ge,P,_e,Ze),K,K==0?2:1,K==0?dt:Ye,K==0?lt:pt,Lt(Je.width*xt,3),Je.stroke(i,P),Je.dash,Je.cap),St.show&&Qi([Nt],[1],K==0?1:0,K==0?1:2,K==1?dt:Ye,K==1?lt:pt,Lt(St.width*xt,3),St.stroke(i,P),St.dash,St.cap)}tn("drawAxes")}function cr(P){R.forEach((B,Y)=>{Y>0&&(B._paths=null,P&&(m==1?(B.min=null,B.max=null):B.facets.forEach(K=>{K.min=null,K.max=null})))})}let go=!1,ts=!1,Or=[];function Vh(){ts=!1;for(let P=0;P<Or.length;P++)tn(...Or[P]);Or.length=0}function Nr(){go||(Nx(Js),go=!0)}function qh(P,B=!1){go=!0,ts=B,P(i),Js(),B&&Or.length>0&&queueMicrotask(Vh)}i.batch=qh;function Js(){if(ct&&(Tl(),ct=!1),Bt&&(Fh(),Bt=!1),nt){if(zt(o,Oo,en),zt(o,Ts,We),zt(o,Cs,Pe),zt(o,As,Be),zt(u,Oo,en),zt(u,Ts,We),zt(u,Cs,Pe),zt(u,As,Be),zt(c,Cs,_n),zt(c,As,Xt),l.width=bn(_n*xt),l.height=bn(Xt*xt),A.forEach(({_el:P,_show:B,_size:Y,_pos:K,side:te})=>{if(P!=null)if(B){let oe=te===3||te===0?Y:0,de=te%2==1;zt(P,de?"left":"top",K-oe),zt(P,de?"width":"height",Y),zt(P,de?"top":"left",de?We:en),zt(P,de?"height":"width",de?Be:Pe),ou(P,to)}else ui(P,to)}),Ko=Lr=Qo=Jo=Ws=Us=Vs=qs=Zo=null,_i=1,vo(!0),en!=ce||We!=Te||Pe!=Re||Be!=qe){cr(!1);let P=Pe/Re,B=Be/qe;if(He.show&&!Pn&&He.left>=0){He.left*=P,He.top*=B,Dr&&ji(Dr,bn(He.left),0,Pe,Be),Zi&&ji(Zi,0,bn(He.top),Pe,Be);for(let Y=0;Y<Hn.length;Y++){let K=Hn[Y];K!=null&&(Mr[Y]*=P,Er[Y]*=B,ji(K,bi(Mr[Y]),bi(Er[Y]),Pe,Be))}}if(Ot.show&&!sr&&Ot.left>=0&&Ot.width>0){Ot.left*=P,Ot.width*=P,Ot.top*=B,Ot.height*=B;for(let Y in ra)zt(ur,Y,Ot[Y])}ce=en,Te=We,Re=Pe,qe=Be}tn("setSize"),nt=!1}_n>0&&Xt>0&&(s.clearRect(0,0,l.width,l.height),tn("drawClear"),I.forEach(P=>P()),tn("draw")),Ot.show&&sr&&(ns(Ot),sr=!1),He.show&&Pn&&(Bn(null,!0,!1),Pn=!1),X.show&&X.live&&ti&&(mo(),ti=!1),g||(g=!0,i.status=1,tn("ready")),uo=!1,go=!1}i.redraw=(P,B)=>{Bt=B||!1,P!==!1?ki(T,D.min,D.max):Nr()};function Xs(P,B){let Y=k[P];if(Y.from==null){if(kn==0){let K=Y.range(i,B.min,B.max,P);B.min=K[0],B.max=K[1]}if(B.min>B.max){let K=B.min;B.min=B.max,B.max=K}if(kn>1&&B.min!=null&&B.max!=null&&B.max-B.min<1e-16)return;P==T&&Y.distr==2&&kn>0&&(B.min=Ii(B.min,t[0]),B.max=Ii(B.max,t[0]),B.min==B.max&&B.max++),L[P]=B,ct=!0,Nr()}}i.setScale=Xs;let ea,ta,Dr,Zi,Ol,Nl,Fr,Pr,Dl,Rt,ze,Pt,Ji=!1;const $n=He.drag;let mn=$n.x,vn=$n.y;He.show&&(He.x&&(ea=wi(sx,u)),He.y&&(ta=wi(ax,u)),D.ori==0?(Dr=ea,Zi=ta):(Dr=ta,Zi=ea),ze=He.left,Pt=He.top);const Ot=i.select=pn({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),ur=Ot.show?wi(ox,Ot.over?u:o):null;function ns(P,B){if(Ot.show){for(let Y in P)Ot[Y]=P[Y],Y in ra&&zt(ur,Y,P[Y]);B!==!1&&tn("setSelect")}}i.setSelect=ns;function Sn(P,B){let Y=R[P],K=G?me[P]:null;if(Y.show)K&&ou(K,to);else{K&&ui(K,to);let te=Tr?Hn[0]:Hn[P];ji(te,-10,-10,Pe,Be)}}function ki(P,B,Y){Xs(P,{min:B,max:Y})}function En(P,B,Y,K){B.focus!=null&&Hl(P),B.show!=null&&R.forEach((te,oe)=>{oe>0&&(P==oe||P==null)&&(te.show=B.show,Sn(oe,B.show),m==2?(ki(te.facets[0].scale,null,null),ki(te.facets[1].scale,null,null)):ki(te.scale,null,null),Nr())}),Y!==!1&&tn("setSeries",P,B),K&&Di("setSeries",i,P,B)}i.setSeries=En;function Fl(P,B){pn(b[P],B)}function na(P,B){P.fill=vt(P.fill||null),P.dir=bt(P.dir,-1),B=B??b.length,b.splice(B,0,P)}function ni(P){P==null?b.length=0:b.splice(P,1)}i.addBand=na,i.setBand=Fl,i.delBand=ni;function Pl(P,B){R[P].alpha=B,He.show&&Hn[P]&&(Hn[P].style.opacity=B),G&&me[P]&&(me[P].style.opacity=B)}let $i,Ni,Xi;const hr={focus:!0};function Hl(P){if(P!=Xi){let B=P==null,Y=Gi.alpha!=1;R.forEach((K,te)=>{if(m==1||te>0){let oe=B||te==0||te==P;K._focus=B?null:oe,Y&&Pl(te,oe?1:Gi.alpha)}}),Xi=P,Y&&Nr()}}G&&Yi&&Gt(Ef,ie,P=>{He._lock||(ar(P),Xi!=null&&En(null,hr,!0,Yt.setSeries))});function Wt(P,B,Y){let K=k[B];Y&&(P=P/xt-(K.ori==1?We:en));let te=Pe;K.ori==1&&(te=Be,P=te-P),K.dir==-1&&(P=te-P);let oe=K._min,de=K._max,we=P/te,xe=oe+(de-oe)*we,_e=K.distr;return _e==3?Po(10,xe):_e==4?$x(xe,K.asinh):_e==100?K.bwd(xe):xe}function Gh(P,B){let Y=Wt(P,T,B);return Ii(Y,t[0],fn,gn)}i.valToIdx=P=>Ii(P,t[0]),i.posToIdx=Gh,i.posToVal=Wt,i.valToPos=(P,B,Y)=>k[B].ori==0?v(P,k[B],Y?pt:Pe,Y?Ye:0):w(P,k[B],Y?lt:Be,Y?dt:0),i.setCursor=(P,B,Y)=>{ze=P.left,Pt=P.top,Bn(null,B,Y)};function Yn(P,B){zt(ur,Oo,Ot.left=P),zt(ur,Cs,Ot.width=B)}function zl(P,B){zt(ur,Ts,Ot.top=P),zt(ur,As,Ot.height=B)}let Hr=D.ori==0?Yn:zl,ii=D.ori==1?Yn:zl;function is(){if(G&&X.live)for(let P=m==2?1:0;P<R.length;P++){if(P==0&&ke)continue;let B=X.values[P],Y=0;for(let K in B)ye[P][Y++].firstChild.nodeValue=B[K]}}function mo(P,B){if(P!=null&&(P.idxs?P.idxs.forEach((Y,K)=>{q[K]=Y}):Ax(P.idx)||q.fill(P.idx),X.idx=q[0]),G&&X.live){for(let Y=0;Y<R.length;Y++)(Y>0||m==1&&!ke)&&Ht(Y,q[Y]);is()}ti=!1,B!==!1&&tn("setLegend")}i.setLegend=mo;function Ht(P,B){let Y=R[P],K=P==0&&$==2?zn:t[P],te;ke?te=Y.values(i,P,B)??ot:(te=Y.value(i,B==null?null:K[B],P,B),te=te==null?ot:{_:te}),X.values[P]=te}function Bn(P,B,Y){Dl=ze,Rt=Pt,[ze,Pt]=He.move(i,ze,Pt),He.left=ze,He.top=Pt,He.show&&(Dr&&ji(Dr,bn(ze),0,Pe,Be),Zi&&ji(Zi,0,bn(Pt),Pe,Be));let K,te=fn>gn;$i=mt,Ni=null;let oe=D.ori==0?Pe:Be,de=D.ori==1?Pe:Be;if(ze<0||kn==0||te){K=He.idx=null;for(let we=0;we<R.length;we++){let xe=Hn[we];xe!=null&&ji(xe,-10,-10,Pe,Be)}Yi&&En(null,hr,!0,P==null&&Yt.setSeries),X.live&&(q.fill(K),ti=!0)}else{let we,xe,_e;m==1&&(we=D.ori==0?ze:Pt,xe=Wt(we,T),K=He.idx=Ii(xe,t[0],fn,gn),_e=_(t[0][K],D,oe,0));let Ce=-10,Me=-10,Ke=0,Mt=0,it=!0,Ge="",Ze="";for(let Le=m==2?1:0;Le<R.length;Le++){let St=R[Le],Kt=q[Le],Ut=Kt==null?null:m==1?t[Le][Kt]:t[Le][1][Kt],Nt=He.dataIdx(i,Le,K,xe),Dt=Nt==null?null:m==1?t[Le][Nt]:t[Le][1][Nt];ti=ti||Dt!=Ut||Nt!=Kt,q[Le]=Nt;let ne=Nt==K?_e:_(m==1?t[0][Nt]:t[Le][0][Nt],D,oe,0);if(Le>0&&St.show){let le=Dt==null?-10:S(Dt,m==1?k[St.scale]:k[St.facets[1].scale],de,0);if(Yi&&Dt!=null){let se=D.ori==1?ze:Pt,$e=wn(Gi.dist(i,Le,Nt,le,se));if($e<$i){let Fe=Gi.bias;if(Fe!=0){let Qe=Wt(se,St.scale),Ct=Dt>=0?1:-1,Je=Qe>=0?1:-1;Je==Ct&&(Je==1?Fe==1?Dt>=Qe:Dt<=Qe:Fe==1?Dt<=Qe:Dt>=Qe)&&($i=$e,Ni=Le)}else $i=$e,Ni=Le}}if(ti||Tr){let se,$e;D.ori==0?(se=ne,$e=le):(se=le,$e=ne);let Fe,Qe,Ct,Je,Cn,Kn,An=!0,fi=Mn.bbox;if(fi!=null){An=!1;let ri=fi(i,Le);Ct=ri.left,Je=ri.top,Fe=ri.width,Qe=ri.height}else Ct=se,Je=$e,Fe=Qe=Mn.size(i,Le);if(Kn=Mn.fill(i,Le),Cn=Mn.stroke(i,Le),Tr)Le==Ni&&$i<=Gi.prox&&(Ce=Ct,Me=Je,Ke=Fe,Mt=Qe,it=An,Ge=Kn,Ze=Cn);else{let ri=Hn[Le];ri!=null&&(Mr[Le]=Ct,Er[Le]=Je,Ff(ri,Fe,Qe,An),Nf(ri,Kn,Cn),ji(ri,bi(Ct),bi(Je),Pe,Be))}}}}if(Tr){let Le=Gi.prox,St=Xi==null?$i<=Le:$i>Le||Ni!=Xi;if(ti||St){let Kt=Hn[0];Mr[0]=Ce,Er[0]=Me,Ff(Kt,Ke,Mt,it),Nf(Kt,Ge,Ze),ji(Kt,bi(Ce),bi(Me),Pe,Be)}}}if(Ot.show&&Ji)if(P!=null){let[we,xe]=Yt.scales,[_e,Ce]=Yt.match,[Me,Ke]=P.cursor.sync.scales,Mt=P.cursor.drag;if(mn=Mt._x,vn=Mt._y,mn||vn){let{left:it,top:Ge,width:Ze,height:Le}=P.select,St=P.scales[Me].ori,Kt=P.posToVal,Ut,Nt,Dt,ne,le,se=we!=null&&_e(we,Me),$e=xe!=null&&Ce(xe,Ke);se&&mn?(St==0?(Ut=it,Nt=Ze):(Ut=Ge,Nt=Le),Dt=k[we],ne=_(Kt(Ut,Me),Dt,oe,0),le=_(Kt(Ut+Nt,Me),Dt,oe,0),Hr(xi(ne,le),wn(le-ne))):Hr(0,oe),$e&&vn?(St==1?(Ut=it,Nt=Ze):(Ut=Ge,Nt=Le),Dt=k[xe],ne=S(Kt(Ut,Ke),Dt,de,0),le=S(Kt(Ut+Nt,Ke),Dt,de,0),ii(xi(ne,le),wn(le-ne))):ii(0,de)}else os()}else{let we=wn(Dl-Ol),xe=wn(Rt-Nl);if(D.ori==1){let Ke=we;we=xe,xe=Ke}mn=$n.x&&we>=$n.dist,vn=$n.y&&xe>=$n.dist;let _e=$n.uni;_e!=null?mn&&vn&&(mn=we>=_e,vn=xe>=_e,!mn&&!vn&&(xe>we?vn=!0:mn=!0)):$n.x&&$n.y&&(mn||vn)&&(mn=vn=!0);let Ce,Me;mn&&(D.ori==0?(Ce=Fr,Me=ze):(Ce=Pr,Me=Pt),Hr(xi(Ce,Me),wn(Me-Ce)),vn||ii(0,de)),vn&&(D.ori==1?(Ce=Fr,Me=ze):(Ce=Pr,Me=Pt),ii(xi(Ce,Me),wn(Me-Ce)),mn||Hr(0,oe)),!mn&&!vn&&(Hr(0,0),ii(0,0))}if($n._x=mn,$n._y=vn,P==null){if(Y){if(jn!=null){let[we,xe]=Yt.scales;Yt.values[0]=we!=null?Wt(D.ori==0?ze:Pt,we):null,Yt.values[1]=xe!=null?Wt(D.ori==1?ze:Pt,xe):null}Di(Af,i,ze,Pt,Pe,Be,K)}if(Yi){let we=Y&&Yt.setSeries,xe=Gi.prox;Xi==null?$i<=xe&&En(Ni,hr,!0,we):$i>xe?En(null,hr,!0,we):Ni!=Xi&&En(Ni,hr,!0,we)}}ti&&(X.idx=K,mo()),B!==!1&&tn("setCursor")}let Si=null;Object.defineProperty(i,"rect",{get(){return Si==null&&vo(!1),Si}});function vo(P=!1){P?Si=null:(Si=u.getBoundingClientRect(),tn("syncRect",Si))}function rs(P,B,Y,K,te,oe,de){He._lock||Ji&&P!=null&&P.movementX==0&&P.movementY==0||(ia(P,B,Y,K,te,oe,de,!1,P!=null),P!=null?Bn(null,!0,!0):Bn(B,!0,!1))}function ia(P,B,Y,K,te,oe,de,we,xe){if(Si==null&&vo(!1),ar(P),P!=null)Y=P.clientX-Si.left,K=P.clientY-Si.top;else{if(Y<0||K<0){ze=-10,Pt=-10;return}let[_e,Ce]=Yt.scales,Me=B.cursor.sync,[Ke,Mt]=Me.values,[it,Ge]=Me.scales,[Ze,Le]=Yt.match,St=B.axes[0].side%2==1,Kt=D.ori==0?Pe:Be,Ut=D.ori==1?Pe:Be,Nt=St?oe:te,Dt=St?te:oe,ne=St?K:Y,le=St?Y:K;if(it!=null?Y=Ze(_e,it)?h(Ke,k[_e],Kt,0):-10:Y=Kt*(ne/Nt),Ge!=null?K=Le(Ce,Ge)?h(Mt,k[Ce],Ut,0):-10:K=Ut*(le/Dt),D.ori==1){let se=Y;Y=K,K=se}}xe&&((Y<=1||Y>=Pe-1)&&(Y=ro(Y,Pe)),(K<=1||K>=Be-1)&&(K=ro(K,Be))),we?(Ol=Y,Nl=K,[Fr,Pr]=He.move(i,Y,K)):(ze=Y,Pt=K)}const ra={width:0,height:0,left:0,top:0};function os(){ns(ra,!1)}let oa,yo,dr,Bl;function sa(P,B,Y,K,te,oe,de){Ji=!0,mn=vn=$n._x=$n._y=!1,ia(P,B,Y,K,te,oe,de,!0,!1),P!=null&&(Gt(tu,iu,aa,!1),Di(Tf,i,Fr,Pr,Pe,Be,null));let{left:we,top:xe,width:_e,height:Ce}=Ot;oa=we,yo=xe,dr=_e,Bl=Ce,os()}function aa(P,B,Y,K,te,oe,de){Ji=$n._x=$n._y=!1,ia(P,B,Y,K,te,oe,de,!1,!0);let{left:we,top:xe,width:_e,height:Ce}=Ot,Me=_e>0||Ce>0,Ke=oa!=we||yo!=xe||dr!=_e||Bl!=Ce;if(Me&&Ke&&ns(Ot),$n.setScale&&Me&&Ke){let Mt=we,it=_e,Ge=xe,Ze=Ce;if(D.ori==1&&(Mt=xe,it=Ce,Ge=we,Ze=_e),mn&&ki(T,Wt(Mt,T),Wt(Mt+it,T)),vn)for(let Le in k){let St=k[Le];Le!=T&&St.from==null&&St.min!=mt&&ki(Le,Wt(Ge+Ze,Le),Wt(Ge,Le))}os()}else He.lock&&(He._lock=!He._lock,Bn(null,!0,!1));P!=null&&(qi(tu,iu),Di(tu,i,ze,Pt,Pe,Be,null))}function la(P,B,Y,K,te,oe,de){if(He._lock)return;ar(P);let we=Ji;if(Ji){let xe=!0,_e=!0,Ce=10,Me,Ke;D.ori==0?(Me=mn,Ke=vn):(Me=vn,Ke=mn),Me&&Ke&&(xe=ze<=Ce||ze>=Pe-Ce,_e=Pt<=Ce||Pt>=Be-Ce),Me&&xe&&(ze=ze<Fr?0:Pe),Ke&&_e&&(Pt=Pt<Pr?0:Be),Bn(null,!0,!0),Ji=!1}ze=-10,Pt=-10,Bn(null,!0,!0),we&&(Ji=we)}function ss(P,B,Y,K,te,oe,de){He._lock||(ar(P),js(),os(),P!=null&&Di(Rf,i,ze,Pt,Pe,Be,null))}function ca(){A.forEach(W_),zs(i.width,i.height,!0)}no(qa,Do,ca);const zr={};zr.mousedown=sa,zr.mousemove=rs,zr.mouseup=aa,zr.dblclick=ss,zr.setSeries=(P,B,Y,K)=>{let te=Yt.match[2];Y=te(i,B,Y),Y!=-1&&En(Y,K,!0,!1)},He.show&&(Gt(Tf,u,sa),Gt(Af,u,rs),Gt(Mf,u,P=>{ar(P),vo(!1)}),Gt(Ef,u,la),Gt(Rf,u,ss),Au.add(i),i.syncRect=vo);const Br=i.hooks=n.hooks||{};function tn(P,B,Y){ts?Or.push([P,B,Y]):P in Br&&Br[P].forEach(K=>{K.call(null,i,B,Y)})}(n.plugins||[]).forEach(P=>{for(let B in P.hooks)Br[B]=(Br[B]||[]).concat(P.hooks[B])});const jl=(P,B,Y)=>Y,Yt=pn({key:null,setSeries:!1,filters:{pub:Vf,sub:Vf},scales:[T,R[1]?R[1].scale:null],match:[qf,qf,jl],values:[null,null]},He.sync);Yt.match.length==2&&Yt.match.push(jl),He.sync=Yt;const jn=Yt.key,wo=Eg(jn);function Di(P,B,Y,K,te,oe,de){Yt.filters.pub(P,B,Y,K,te,oe,de)&&wo.pub(P,B,Y,K,te,oe,de)}wo.sub(i);function Wl(P,B,Y,K,te,oe,de){Yt.filters.sub(P,B,Y,K,te,oe,de)&&zr[P](null,B,Y,K,te,oe,de)}i.pub=Wl;function Ul(){wo.unsub(i),Au.delete(i),It.clear(),au(qa,Do,ca),a.remove(),ie==null||ie.remove(),tn("destroy")}i.destroy=Ul;function ua(){tn("init",n,t),ho(t||n.data,!1),L[T]?Xs(T,L[T]):js(),sr=Ot.show&&(Ot.width>0||Ot.height>0),Pn=ti=!0,zs(n.width,n.height)}return R.forEach(Sl),A.forEach(Wh),e?e instanceof HTMLElement?(e.appendChild(a),ua()):e(i,ua):ua(),i}Dn.assign=pn,Dn.fmtNum=uu,Dn.rangeNum=Ka,Dn.rangeLog=Ya,Dn.rangeAsinh=lu,Dn.orient=so,Dn.pxRatio=xt,Dn.join=Ox,Dn.fmtDate=fu,Dn.tzDate=Vx,Dn.sync=Eg;{Dn.addGap=A_,Dn.clipGaps=nl;let n=Dn.paths={points:Fg};n.linear=Hg,n.stepped=E_,n.bars=R_,n.spline=I_}var Gg,Yg;function U_(){return Yg||(Yg=1,Gg=function(n,t,e,i,m){var f,v;if(i===void 0)i=0;else if(i=i|0,i<0||i>=n.length)throw new RangeError("invalid lower bound");if(m===void 0)m=n.length-1;else if(m=m|0,m<i||m>=n.length)throw new RangeError("invalid upper bound");for(;i<=m;)if(f=i+(m-i>>>1),v=+e(n[f],t,f,n),v<0)i=f+1;else if(v>0)m=f-1;else return f;return~i}),Gg}var V_=U_();const nO=rn("b",Ma(V_));var Mu,Kg;function q_(){if(Kg)return Mu;Kg=1;function n(t,e,i){var m=-1,f=t.length;e<0&&(e=-e>f?0:f+e),i=i>f?f:i,i<0&&(i+=f),f=e>i?0:i-e>>>0,e>>>=0;for(var v=Array(f);++m<f;)v[m]=t[m+e];return v}return Mu=n,Mu}var Eu,Qg;function G_(){if(Qg)return Eu;Qg=1;var n=q_();function t(e,i,m){var f=e.length;return m=m===void 0?f:m,!i&&m>=f?e:n(e,i,m)}return Eu=t,Eu}var Ru,Zg;function Jg(){if(Zg)return Ru;Zg=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\ufe0e\\ufe0f",v="\\u200d",w=RegExp("["+v+n+m+f+"]");function h(g){return w.test(g)}return Ru=h,Ru}var Lu,Xg;function Y_(){if(Xg)return Lu;Xg=1;function n(t){return t.split("")}return Lu=n,Lu}var Iu,em;function K_(){if(em)return Iu;em=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\ufe0e\\ufe0f",v="["+n+"]",w="["+m+"]",h="\\ud83c[\\udffb-\\udfff]",g="(?:"+w+"|"+h+")",a="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",o=g+"?",u="["+f+"]?",p="(?:"+c+"(?:"+[a,l,s].join("|")+")"+u+o+")*",y=u+o+p,x="(?:"+[a+w+"?",w,l,s,v].join("|")+")",R=RegExp(h+"(?="+h+")|"+x+y,"g");function A(k){return k.match(R)||[]}return Iu=A,Iu}var Ou,tm;function Q_(){if(tm)return Ou;tm=1;var n=Y_(),t=Jg(),e=K_();function i(m){return t(m)?e(m):n(m)}return Ou=i,Ou}var Nu,nm;function Z_(){if(nm)return Nu;nm=1;var n=typeof $r=="object"&&$r&&$r.Object===Object&&$r;return Nu=n,Nu}var Du,im;function J_(){if(im)return Du;im=1;var n=Z_(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Du=e,Du}var Fu,rm;function Pu(){if(rm)return Fu;rm=1;var n=J_(),t=n.Symbol;return Fu=t,Fu}var Hu,om;function X_(){if(om)return Hu;om=1;function n(t,e){for(var i=-1,m=t==null?0:t.length,f=Array(m);++i<m;)f[i]=e(t[i],i,t);return f}return Hu=n,Hu}var zu,sm;function ek(){if(sm)return zu;sm=1;var n=Array.isArray;return zu=n,zu}var Bu,am;function tk(){if(am)return Bu;am=1;var n=Pu(),t=Object.prototype,e=t.hasOwnProperty,i=t.toString,m=n?n.toStringTag:void 0;function f(v){var w=e.call(v,m),h=v[m];try{v[m]=void 0;var g=!0}catch{}var a=i.call(v);return g&&(w?v[m]=h:delete v[m]),a}return Bu=f,Bu}var ju,lm;function nk(){if(lm)return ju;lm=1;var n=Object.prototype,t=n.toString;function e(i){return t.call(i)}return ju=e,ju}var Wu,cm;function ik(){if(cm)return Wu;cm=1;var n=Pu(),t=tk(),e=nk(),i="[object Null]",m="[object Undefined]",f=n?n.toStringTag:void 0;function v(w){return w==null?w===void 0?m:i:f&&f in Object(w)?t(w):e(w)}return Wu=v,Wu}var Uu,um;function rk(){if(um)return Uu;um=1;function n(t){return t!=null&&typeof t=="object"}return Uu=n,Uu}var Vu,hm;function ok(){if(hm)return Vu;hm=1;var n=ik(),t=rk(),e="[object Symbol]";function i(m){return typeof m=="symbol"||t(m)&&n(m)==e}return Vu=i,Vu}var qu,dm;function sk(){if(dm)return qu;dm=1;var n=Pu(),t=X_(),e=ek(),i=ok(),m=1/0,f=n?n.prototype:void 0,v=f?f.toString:void 0;function w(h){if(typeof h=="string")return h;if(e(h))return t(h,w)+"";if(i(h))return v?v.call(h):"";var g=h+"";return g=="0"&&1/h==-m?"-0":g}return qu=w,qu}var Gu,pm;function sl(){if(pm)return Gu;pm=1;var n=sk();function t(e){return e==null?"":n(e)}return Gu=t,Gu}var Yu,fm;function ak(){if(fm)return Yu;fm=1;var n=G_(),t=Jg(),e=Q_(),i=sl();function m(f){return function(v){v=i(v);var w=t(v)?e(v):void 0,h=w?w[0]:v.charAt(0),g=w?n(w,1).join(""):v.slice(1);return h[f]()+g}}return Yu=m,Yu}var Ku,gm;function mm(){if(gm)return Ku;gm=1;var n=ak(),t=n("toUpperCase");return Ku=t,Ku}var lk=mm();const ck=Ma(lk);var Qu,vm;function uk(){if(vm)return Qu;vm=1;var n=sl(),t=mm();function e(i){return t(n(i).toLowerCase())}return Qu=e,Qu}var Zu,ym;function hk(){if(ym)return Zu;ym=1;function n(t,e,i,m){var f=-1,v=t==null?0:t.length;for(m&&v&&(i=t[++f]);++f<v;)i=e(i,t[f],f,t);return i}return Zu=n,Zu}var Ju,wm;function dk(){if(wm)return Ju;wm=1;function n(t){return function(e){return t==null?void 0:t[e]}}return Ju=n,Ju}var Xu,bm;function pk(){if(bm)return Xu;bm=1;var n=dk(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},e=n(t);return Xu=e,Xu}var eh,xm;function fk(){if(xm)return eh;xm=1;var n=pk(),t=sl(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\u0300-\\u036f",m="\\ufe20-\\ufe2f",f="\\u20d0-\\u20ff",v=i+m+f,w="["+v+"]",h=RegExp(w,"g");function g(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return eh=g,eh}var th,_m;function gk(){if(_m)return th;_m=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return th=t,th}var nh,km;function mk(){if(km)return nh;km=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(e){return n.test(e)}return nh=t,nh}var ih,$m;function vk(){if($m)return ih;$m=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+e+i,f="\\u2700-\\u27bf",v="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g="\\u2000-\\u206f",a=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",l="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",c=w+h+g+a,o="['’]",u="["+c+"]",p="["+m+"]",y="\\d+",x="["+f+"]",R="["+v+"]",A="[^"+n+c+y+f+v+l+"]",k="\\ud83c[\\udffb-\\udfff]",b="(?:"+p+"|"+k+")",T="[^"+n+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",M="["+l+"]",D="\\u200d",$="(?:"+R+"|"+A+")",_="(?:"+M+"|"+A+")",S="(?:"+o+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+o+"(?:D|LL|M|RE|S|T|VE))?",O=b+"?",F="["+s+"]?",H="(?:"+D+"(?:"+[T,E,I].join("|")+")"+F+O+")*",W="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",V="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q=F+O+H,X="(?:"+[x,E,I].join("|")+")"+q,G=RegExp([M+"?"+R+"+"+S+"(?="+[u,M,"$"].join("|")+")",_+"+"+L+"(?="+[u,M+$,"$"].join("|")+")",M+"?"+$+"+"+S,M+"+"+L,V,W,y,X].join("|"),"g");function Z(ie){return ie.match(G)||[]}return ih=Z,ih}var rh,Sm;function yk(){if(Sm)return rh;Sm=1;var n=gk(),t=mk(),e=sl(),i=vk();function m(f,v,w){return f=e(f),v=w?void 0:v,v===void 0?t(f)?i(f):n(f):f.match(v)||[]}return rh=m,rh}var oh,Cm;function wk(){if(Cm)return oh;Cm=1;var n=hk(),t=fk(),e=yk(),i="['’]",m=RegExp(i,"g");function f(v){return function(w){return n(e(t(w).replace(m,"")),v,"")}}return oh=f,oh}var sh,Am;function bk(){if(Am)return sh;Am=1;var n=uk(),t=wk(),e=t(function(i,m,f){return m=m.toLowerCase(),i+(f?n(m):m)});return sh=e,sh}var xk=bk();const _k=Ma(xk),kk=Object.assign({"./ArrayWidget.vue":()=>De(()=>Ne.import("./ArrayWidget-BTxChSds-729d960cfdc5cc610e36.js"),void 0),"./BlockWidget.vue":()=>De(()=>Ne.import("./BlockWidget-PmjzrkXF-cba5a98e5febe43a4e53.js"),void 0),"./ButtonWidget.vue":()=>De(()=>Ne.import("./ButtonWidget-nwDlOBJT-635e7452329728609016.js"),void 0),"./CanvasWidget.vue":()=>De(()=>Ne.import("./CanvasWidget-BL8930eT-c0dc35f83e2020b1a2d8.js"),void 0),"./CanvasdotWidget.vue":()=>De(()=>Ne.import("./CanvasdotWidget-VCf1fL-G-9ecb3a5db74cc9c67935.js"),void 0),"./CanvasimageWidget.vue":()=>De(()=>Ne.import("./CanvasimageWidget-BIw7Wbf2-f1352b515e2b88a6a73c.js"),void 0),"./CanvasimagevalueWidget.vue":()=>De(()=>Ne.import("./CanvasimagevalueWidget-CE3Dj5bH-ac79c783af67d46f5b47.js"),void 0),"./CanvaslabelWidget.vue":()=>De(()=>Ne.import("./CanvaslabelWidget-DWmb356h-3b1a90c192aece51ec1f.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>De(()=>Ne.import("./CanvaslabelvalueWidget-CI3yYwFs-4c342d1601a75e800125.js"),void 0),"./CanvaslineWidget.vue":()=>De(()=>Ne.import("./CanvaslineWidget-COeapH3P-ce3fad277910fba2ca61.js"),void 0),"./CanvaslinevalueWidget.vue":()=>De(()=>Ne.import("./CanvaslinevalueWidget-CI-Bbzfi-20d6088d739c787067d0.js"),void 0),"./CheckbuttonWidget.vue":()=>De(()=>Ne.import("./CheckbuttonWidget-BQhggcZ2-872fe692dfd53c9d02e0.js"),void 0),"./ComboboxWidget.vue":()=>De(()=>Ne.import("./ComboboxWidget-BzsbOv54-8b26861255458ab5820f.js"),void 0),"./DateWidget.vue":()=>De(()=>Ne.import("./DateWidget-B5R_9rA8-dbabc77b41062cd53025.js"),void 0),"./DynamicWidget.vue":()=>De(()=>Ne.import("./DynamicWidget-m9EliUR2-8bca697b5d9d171b6d41.js"),void 0),"./FormatvalueWidget.vue":()=>De(()=>Ne.import("./FormatvalueWidget-DZkRJce8-42b595ab1529218d039e.js"),void 0),"./HorizontalWidget.vue":()=>De(()=>Ne.import("./HorizontalWidget-CirtfuL8-4995cdc63f3b921ace50.js"),void 0),"./HorizontalboxWidget.vue":()=>De(()=>Ne.import("./HorizontalboxWidget-CyTDt2nl-795b4cdc3bb3d16540e5.js"),void 0),"./HorizontallineWidget.vue":()=>De(()=>Ne.import("./HorizontallineWidget-BdlNB951-a0bfc5989c04ad91a5f8.js"),void 0),"./IframeWidget.vue":()=>De(()=>Ne.import("./IframeWidget-DnJmCrCA-94ef2d4c20115de08932.js"),void 0),"./ImageviewerWidget.vue":()=>De(()=>Ne.import("./ImageviewerWidget-DIkmb_C9-36a25ca0482a3629c597.js"),void 0),"./LabelWidget.vue":()=>De(()=>Ne.import("./LabelWidget-BDsypYho-681229896f8ec10f5332.js"),void 0),"./LabelledWidget.vue":()=>De(()=>Ne.import("./LabelledWidget-DjturGl5-9d20f8d8724e3d52e4d2.js"),void 0),"./LabelprogressbarWidget.vue":()=>De(()=>Ne.import("./LabelprogressbarWidget-RADJGLj3-d900ae201f53aa27d53c.js"),void 0),"./LabelsparklineWidget.vue":()=>De(()=>Ne.import("./LabelsparklineWidget-BlJoICxu-9d6e7b928328d9b6faa4.js"),void 0),"./LabelvalueWidget.vue":()=>De(()=>Ne.import("./LabelvalueWidget-DVWJqnlY-7c73bc06324918673158.js"),void 0),"./LabelvaluedescWidget.vue":()=>De(()=>Ne.import("./LabelvaluedescWidget-CsUP7J4U-d36a1e64ddb2cd189973.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>De(()=>Ne.import("./LabelvaluelimitsbarWidget-Blj1QXV8-fcbf1b7a09ba6fc2c9ae.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>De(()=>Ne.import("./LabelvaluelimitscolumnWidget-CvCo-uCe-321f72c8a352d3d14fe1.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>De(()=>Ne.import("./LabelvaluerangebarWidget-DpcXhlfF-c2f849b93273f25e8925.js"),void 0),"./LedWidget.vue":()=>De(()=>Ne.import("./LedWidget-B_K2e5tq-a4cf7dd4c91bd9687edc.js"),void 0),"./LimitsbarWidget.vue":()=>De(()=>Ne.import("./LimitsbarWidget-DXbqsi4J-6f4947746fb14ece021c.js"),void 0),"./LimitscolorWidget.vue":()=>De(()=>Ne.import("./LimitscolorWidget-Ckmuw0YX-9d08a0c35288ab6437a4.js"),void 0),"./LimitscolumnWidget.vue":()=>De(()=>Ne.import("./LimitscolumnWidget-BfY4su5U-723e911820532f1ac331.js"),void 0),"./LinegraphWidget.vue":()=>De(()=>Ne.import("./LinegraphWidget-y-Qy9P0R-5f5705e25f9cd84669d8.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>De(()=>Ne.import("./MatrixbycolumnsWidget-BTBColrs-e17854cc153744707907.js"),void 0),"./ProgressbarWidget.vue":()=>De(()=>Ne.import("./ProgressbarWidget-DpA_-vy9-24903741422cf1df54e4.js"),void 0),"./RadiobuttonWidget.vue":()=>De(()=>Ne.import("./RadiobuttonWidget-BO8zpgwW-4f8ecf9cd90bdea325a8.js"),void 0),"./RadiogroupWidget.vue":()=>De(()=>Ne.import("./RadiogroupWidget-Oy7V4S-V-54cf81f3f5e3212e888e.js"),void 0),"./RangebarWidget.vue":()=>De(()=>Ne.import("./RangebarWidget-DHS7S3vI-ebfac3b63bbdba316dcf.js"),void 0),"./RollupWidget.vue":()=>De(()=>Ne.import("./RollupWidget-CTk9Kjwr-270be1fdd5c1eb250ecb.js"),void 0),"./ScrollwindowWidget.vue":()=>De(()=>Ne.import("./ScrollwindowWidget-DD0TOW6s-ec4a38cdf3bfd8e935cf.js"),void 0),"./SignalWidget.vue":()=>De(()=>Ne.import("./SignalWidget-CC33KMTW-4256e058af9a2f5ffcf6.js"),void 0),"./SpacerWidget.vue":()=>De(()=>Ne.import("./SpacerWidget-BnJe_Hq6-67addc8b6c315643ed73.js"),void 0),"./SparklineWidget.vue":()=>De(()=>Ne.import("./SparklineWidget-DMvMQCPm-e78d9a86f5442934fabd.js"),void 0),"./TabbookWidget.vue":()=>De(()=>Ne.import("./TabbookWidget-B3w0JtWe-b2af8af0cf94eb9e516c.js"),void 0),"./TextboxWidget.vue":()=>De(()=>Ne.import("./TextboxWidget-D2f0-eol-5f337e38de949d5dab7f.js"),void 0),"./TextfieldWidget.vue":()=>De(()=>Ne.import("./TextfieldWidget-DXSdgqVP-9045c2a185d013a4c13f.js"),void 0),"./TimeWidget.vue":()=>De(()=>Ne.import("./TimeWidget-DvrRaEMz-c19be3754a0a61e180e8.js"),void 0),"./TitleWidget.vue":()=>De(()=>Ne.import("./TitleWidget-DqViFQl--3e2765e9ec25f88228fe.js"),void 0),"./ValueWidget.vue":()=>De(()=>Ne.import("./ValueWidget-KLYY8L8U-2f04753640b33d0d6695.js"),void 0),"./ValuelimitsbarWidget.vue":()=>De(()=>Ne.import("./ValuelimitsbarWidget-SR8XNZFB-3b0499b09e0a5456f7f9.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>De(()=>Ne.import("./ValuelimitscolumnWidget-xYZSp6YZ-3e38c9591b45b511e317.js"),void 0),"./ValuerangebarWidget.vue":()=>De(()=>Ne.import("./ValuerangebarWidget-B6M02a9d-2e62f95f2859cf82f80c.js"),void 0),"./VerticalWidget.vue":()=>De(()=>Ne.import("./VerticalWidget-z6xUM-ql-764ba777a9e2b0036921.js"),void 0),"./VerticalboxWidget.vue":()=>De(()=>Ne.import("./VerticalboxWidget-3a9cVsW--53886da00cb04f9a6ddc.js"),void 0)}),$k=Object.entries(kk).reduce((n,[t,e])=>{t=t.split("/").pop();const i=ck(_k(t.replace(/\.\w+$/,"")));return{...n,[i]:Bd(e)}},{}),iO=rn("B",{components:$k});function Tm(n,t){return function(){return n.apply(t,arguments)}}const{toString:Sk}=Object.prototype,{getPrototypeOf:ah}=Object,al=(n=>t=>{const e=Sk.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Oi=n=>(n=n.toLowerCase(),t=>al(t)===n),ll=n=>t=>typeof t===n,{isArray:Vo}=Array,Os=ll("undefined");function Ck(n){return n!==null&&!Os(n)&&n.constructor!==null&&!Os(n.constructor)&&pi(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Mm=Oi("ArrayBuffer");function Ak(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Mm(n.buffer),t}const Tk=ll("string"),pi=ll("function"),Em=ll("number"),cl=n=>n!==null&&typeof n=="object",Mk=n=>n===!0||n===!1,ul=n=>{if(al(n)!=="object")return!1;const t=ah(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},Ek=Oi("Date"),Rk=Oi("File"),Lk=Oi("Blob"),Ik=Oi("FileList"),Ok=n=>cl(n)&&pi(n.pipe),Nk=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||pi(n.append)&&((t=al(n))==="formdata"||t==="object"&&pi(n.toString)&&n.toString()==="[object FormData]"))},Dk=Oi("URLSearchParams"),[Fk,Pk,Hk,zk]=["ReadableStream","Request","Response","Headers"].map(Oi),Bk=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,m;if(typeof n!="object"&&(n=[n]),Vo(n))for(i=0,m=n.length;i<m;i++)t.call(null,n[i],i,n);else{const f=e?Object.getOwnPropertyNames(n):Object.keys(n),v=f.length;let w;for(i=0;i<v;i++)w=f[i],t.call(null,n[w],w,n)}}function Rm(n,t){t=t.toLowerCase();const e=Object.keys(n);let i=e.length,m;for(;i-- >0;)if(m=e[i],t===m.toLowerCase())return m;return null}const ao=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Lm=n=>!Os(n)&&n!==ao;function lh(){const{caseless:n}=Lm(this)&&this||{},t={},e=(i,m)=>{const f=n&&Rm(t,m)||m;ul(t[f])&&ul(i)?t[f]=lh(t[f],i):ul(i)?t[f]=lh({},i):Vo(i)?t[f]=i.slice():t[f]=i};for(let i=0,m=arguments.length;i<m;i++)arguments[i]&&Ns(arguments[i],e);return t}const jk=(n,t,e,{allOwnKeys:i}={})=>(Ns(t,(m,f)=>{e&&pi(m)?n[f]=Tm(m,e):n[f]=m},{allOwnKeys:i}),n),Wk=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Uk=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Vk=(n,t,e,i)=>{let m,f,v;const w={};if(t=t||{},n==null)return t;do{for(m=Object.getOwnPropertyNames(n),f=m.length;f-- >0;)v=m[f],(!i||i(v,n,t))&&!w[v]&&(t[v]=n[v],w[v]=!0);n=e!==!1&&ah(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},qk=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},Gk=n=>{if(!n)return null;if(Vo(n))return n;let t=n.length;if(!Em(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Yk=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&ah(Uint8Array)),Kk=(n,t)=>{const e=(n&&n[Symbol.iterator]).call(n);let i;for(;(i=e.next())&&!i.done;){const m=i.value;t.call(n,m[0],m[1])}},Qk=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Zk=Oi("HTMLFormElement"),Jk=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,i){return e.toUpperCase()+i}),Im=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Xk=Oi("RegExp"),Om=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};Ns(e,(m,f)=>{let v;(v=t(m,f,n))!==!1&&(i[f]=v||m)}),Object.defineProperties(n,i)},e$=n=>{Om(n,(t,e)=>{if(pi(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(pi(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},t$=(n,t)=>{const e={},i=m=>{m.forEach(f=>{e[f]=!0})};return Vo(n)?i(n):i(String(n).split(t)),e},n$=()=>{},i$=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t,ch="abcdefghijklmnopqrstuvwxyz",Nm="0123456789",Dm={DIGIT:Nm,ALPHA:ch,ALPHA_DIGIT:ch+ch.toUpperCase()+Nm},r$=(n=16,t=Dm.ALPHA_DIGIT)=>{let e="";const{length:i}=t;for(;n--;)e+=t[Math.random()*i|0];return e};function o$(n){return!!(n&&pi(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const s$=n=>{const t=new Array(10),e=(i,m)=>{if(cl(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[m]=i;const f=Vo(i)?[]:{};return Ns(i,(v,w)=>{const h=e(v,m+1);!Os(h)&&(f[w]=h)}),t[m]=void 0,f}}return i};return e(n,0)},a$=Oi("AsyncFunction"),l$=n=>n&&(cl(n)||pi(n))&&pi(n.then)&&pi(n.catch),Fm=((n,t)=>n?setImmediate:t?((e,i)=>(ao.addEventListener("message",({source:m,data:f})=>{m===ao&&f===e&&i.length&&i.shift()()},!1),m=>{i.push(m),ao.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",pi(ao.postMessage)),c$=typeof queueMicrotask<"u"?queueMicrotask.bind(ao):typeof process<"u"&&process.nextTick||Fm,he={isArray:Vo,isArrayBuffer:Mm,isBuffer:Ck,isFormData:Nk,isArrayBufferView:Ak,isString:Tk,isNumber:Em,isBoolean:Mk,isObject:cl,isPlainObject:ul,isReadableStream:Fk,isRequest:Pk,isResponse:Hk,isHeaders:zk,isUndefined:Os,isDate:Ek,isFile:Rk,isBlob:Lk,isRegExp:Xk,isFunction:pi,isStream:Ok,isURLSearchParams:Dk,isTypedArray:Yk,isFileList:Ik,forEach:Ns,merge:lh,extend:jk,trim:Bk,stripBOM:Wk,inherits:Uk,toFlatObject:Vk,kindOf:al,kindOfTest:Oi,endsWith:qk,toArray:Gk,forEachEntry:Kk,matchAll:Qk,isHTMLForm:Zk,hasOwnProperty:Im,hasOwnProp:Im,reduceDescriptors:Om,freezeMethods:e$,toObjectSet:t$,toCamelCase:Jk,noop:n$,toFiniteNumber:i$,findKey:Rm,global:ao,isContextDefined:Lm,ALPHABET:Dm,generateString:r$,isSpecCompliantForm:o$,toJSONObject:s$,isAsyncFn:a$,isThenable:l$,setImmediate:Fm,asap:c$};function tt(n,t,e,i,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),m&&(this.response=m,this.status=m.status?m.status:null)}he.inherits(tt,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 Pm=tt.prototype,Hm={};["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=>{Hm[n]={value:n}}),Object.defineProperties(tt,Hm),Object.defineProperty(Pm,"isAxiosError",{value:!0}),tt.from=(n,t,e,i,m,f)=>{const v=Object.create(Pm);return he.toFlatObject(n,v,function(w){return w!==Error.prototype},w=>w!=="isAxiosError"),tt.call(v,n.message,t,e,i,m),v.cause=n,v.name=n.name,f&&Object.assign(v,f),v};const u$=null;function uh(n){return he.isPlainObject(n)||he.isArray(n)}function zm(n){return he.endsWith(n,"[]")?n.slice(0,-2):n}function Bm(n,t,e){return n?n.concat(t).map(function(i,m){return i=zm(i),!e&&m?"["+i+"]":i}).join(e?".":""):t}function h$(n){return he.isArray(n)&&!n.some(uh)}const d$=he.toFlatObject(he,{},null,function(n){return/^is[A-Z]/.test(n)});function hl(n,t,e){if(!he.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=he.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,o){return!he.isUndefined(o[c])});const i=e.metaTokens,m=e.visitor||g,f=e.dots,v=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(m))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(he.isDate(c))return c.toISOString();if(!w&&he.isBlob(c))throw new tt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(c)||he.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function g(c,o,u){let p=c;if(c&&!u&&typeof c=="object"){if(he.endsWith(o,"{}"))o=i?o:o.slice(0,-2),c=JSON.stringify(c);else if(he.isArray(c)&&h$(c)||(he.isFileList(c)||he.endsWith(o,"[]"))&&(p=he.toArray(c)))return o=zm(o),p.forEach(function(y,x){!(he.isUndefined(y)||y===null)&&t.append(v===!0?Bm([o],x,f):v===null?o:o+"[]",h(y))}),!1}return uh(c)?!0:(t.append(Bm(u,o,f),h(c)),!1)}const a=[],l=Object.assign(d$,{defaultVisitor:g,convertValue:h,isVisitable:uh});function s(c,o){if(!he.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+o.join("."));a.push(c),he.forEach(c,function(u,p){(!(he.isUndefined(u)||u===null)&&m.call(t,u,he.isString(p)?p.trim():p,o,l))===!0&&s(u,o?o.concat(p):[p])}),a.pop()}}if(!he.isObject(n))throw new TypeError("data must be an object");return s(n),t}function jm(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function hh(n,t){this._pairs=[],n&&hl(n,this,t)}const Wm=hh.prototype;Wm.append=function(n,t){this._pairs.push([n,t])},Wm.toString=function(n){const t=n?function(e){return n.call(this,e,jm)}:jm;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function p$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Um(n,t,e){if(!t)return n;const i=e&&e.encode||p$;he.isFunction(e)&&(e={serialize:e});const m=e&&e.serialize;let f;if(m?f=m(t,e):f=he.isURLSearchParams(t)?t.toString():new hh(t,e).toString(i),f){const v=n.indexOf("#");v!==-1&&(n=n.slice(0,v)),n+=(n.indexOf("?")===-1?"?":"&")+f}return n}let Vm=class{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(e){e!==null&&t(e)})}};const qm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},f$=typeof URLSearchParams<"u"?URLSearchParams:hh,g$=typeof FormData<"u"?FormData:null,m$=typeof Blob<"u"?Blob:null,v$={isBrowser:!0,classes:{URLSearchParams:f$,FormData:g$,Blob:m$},protocols:["http","https","file","blob","url","data"]},dh=typeof window<"u"&&typeof document<"u",ph=typeof navigator=="object"&&navigator||void 0,y$=dh&&(!ph||["ReactNative","NativeScript","NS"].indexOf(ph.product)<0),w$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b$=dh&&window.location.href||"http://localhost",x$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dh,hasStandardBrowserEnv:y$,hasStandardBrowserWebWorkerEnv:w$,navigator:ph,origin:b$},Symbol.toStringTag,{value:"Module"})),Fn={...x$,...v$};function _$(n,t){return hl(n,new Fn.classes.URLSearchParams,Object.assign({visitor:function(e,i,m,f){return Fn.isNode&&he.isBuffer(e)?(this.append(i,e.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},t))}function k$(n){return he.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $$(n){const t={},e=Object.keys(n);let i;const m=e.length;let f;for(i=0;i<m;i++)f=e[i],t[f]=n[f];return t}function Gm(n){function t(e,i,m,f){let v=e[f++];if(v==="__proto__")return!0;const w=Number.isFinite(+v),h=f>=e.length;return v=!v&&he.isArray(m)?m.length:v,h?(he.hasOwnProp(m,v)?m[v]=[m[v],i]:m[v]=i,!w):((!m[v]||!he.isObject(m[v]))&&(m[v]=[]),t(e,i,m[v],f)&&he.isArray(m[v])&&(m[v]=$$(m[v])),!w)}if(he.isFormData(n)&&he.isFunction(n.entries)){const e={};return he.forEachEntry(n,(i,m)=>{t(k$(i),m,e,0)}),e}return null}function S$(n,t,e){if(he.isString(n))try{return(t||JSON.parse)(n),he.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(n)}const Ds={transitional:qm,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",i=e.indexOf("application/json")>-1,m=he.isObject(n);if(m&&he.isHTMLForm(n)&&(n=new FormData(n)),he.isFormData(n))return i?JSON.stringify(Gm(n)):n;if(he.isArrayBuffer(n)||he.isBuffer(n)||he.isStream(n)||he.isFile(n)||he.isBlob(n)||he.isReadableStream(n))return n;if(he.isArrayBufferView(n))return n.buffer;if(he.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(m){if(e.indexOf("application/x-www-form-urlencoded")>-1)return _$(n,this.formSerializer).toString();if((f=he.isFileList(n))||e.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return hl(f?{"files[]":n}:n,v&&new v,this.formSerializer)}}return m||i?(t.setContentType("application/json",!1),S$(n)):n}],transformResponse:[function(n){const t=this.transitional||Ds.transitional,e=t&&t.forcedJSONParsing,i=this.responseType==="json";if(he.isResponse(n)||he.isReadableStream(n))return n;if(n&&he.isString(n)&&(e&&!this.responseType||i)){const m=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(n)}catch(f){if(m)throw f.name==="SyntaxError"?tt.from(f,tt.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fn.classes.FormData,Blob:Fn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],n=>{Ds.headers[n]={}});const C$=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"]),A$=n=>{const t={};let e,i,m;return n&&n.split(`
1414
+ `).forEach(function(f){m=f.indexOf(":"),e=f.substring(0,m).trim().toLowerCase(),i=f.substring(m+1).trim(),!(!e||t[e]&&C$[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},Ym=Symbol("internals");function Fs(n){return n&&String(n).trim().toLowerCase()}function dl(n){return n===!1||n==null?n:he.isArray(n)?n.map(dl):String(n)}function T$(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const M$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function fh(n,t,e,i,m){if(he.isFunction(i))return i.call(this,t,e);if(m&&(t=e),!!he.isString(t)){if(he.isString(i))return t.indexOf(i)!==-1;if(he.isRegExp(i))return i.test(t)}}function E$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function R$(n,t){const e=he.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(m,f,v){return this[i].call(this,t,m,f,v)},configurable:!0})})}let ei=class{constructor(t){t&&this.set(t)}set(t,e,i){const m=this;function f(w,h,g){const a=Fs(h);if(!a)throw new Error("header name must be a non-empty string");const l=he.findKey(m,a);(!l||m[l]===void 0||g===!0||g===void 0&&m[l]!==!1)&&(m[l||h]=dl(w))}const v=(w,h)=>he.forEach(w,(g,a)=>f(g,a,h));if(he.isPlainObject(t)||t instanceof this.constructor)v(t,e);else if(he.isString(t)&&(t=t.trim())&&!M$(t))v(A$(t),e);else if(he.isHeaders(t))for(const[w,h]of t.entries())f(h,w,i);else t!=null&&f(e,t,i);return this}get(t,e){if(t=Fs(t),t){const i=he.findKey(this,t);if(i){const m=this[i];if(!e)return m;if(e===!0)return T$(m);if(he.isFunction(e))return e.call(this,m,i);if(he.isRegExp(e))return e.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Fs(t),t){const i=he.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||fh(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let m=!1;function f(v){if(v=Fs(v),v){const w=he.findKey(i,v);w&&(!e||fh(i,i[w],w,e))&&(delete i[w],m=!0)}}return he.isArray(t)?t.forEach(f):f(t),m}clear(t){const e=Object.keys(this);let i=e.length,m=!1;for(;i--;){const f=e[i];(!t||fh(this,this[f],f,t,!0))&&(delete this[f],m=!0)}return m}normalize(t){const e=this,i={};return he.forEach(this,(m,f)=>{const v=he.findKey(i,f);if(v){e[v]=dl(m),delete e[f];return}const w=t?E$(f):String(f).trim();w!==f&&delete e[f],e[w]=dl(m),i[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return he.forEach(this,(i,m)=>{i!=null&&i!==!1&&(e[m]=t&&he.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
1415
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(m=>i.set(m)),i}static accessor(t){const e=(this[Ym]=this[Ym]={accessors:{}}).accessors,i=this.prototype;function m(f){const v=Fs(f);e[v]||(R$(i,f),e[v]=!0)}return he.isArray(t)?t.forEach(m):m(t),this}};ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(ei.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}}),he.freezeMethods(ei);function gh(n,t){const e=this||Ds,i=t||e,m=ei.from(i.headers);let f=i.data;return he.forEach(n,function(v){f=v.call(e,f,m.normalize(),t?t.status:void 0)}),m.normalize(),f}function Km(n){return!!(n&&n.__CANCEL__)}function qo(n,t,e){tt.call(this,n??"canceled",tt.ERR_CANCELED,t,e),this.name="CanceledError"}he.inherits(qo,tt,{__CANCEL__:!0});function Qm(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new tt("Request failed with status code "+e.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function L$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function I$(n,t){n=n||10;const e=new Array(n),i=new Array(n);let m=0,f=0,v;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),g=i[f];v||(v=h),e[m]=w,i[m]=h;let a=f,l=0;for(;a!==m;)l+=e[a++],a=a%n;if(m=(m+1)%n,m===f&&(f=(f+1)%n),h-v<t)return;const s=g&&h-g;return s?Math.round(l*1e3/s):void 0}}function O$(n,t){let e=0,i=1e3/t,m,f;const v=(w,h=Date.now())=>{e=h,m=null,f&&(clearTimeout(f),f=null),n.apply(null,w)};return[(...w)=>{const h=Date.now(),g=h-e;g>=i?v(w,h):(m=w,f||(f=setTimeout(()=>{f=null,v(m)},i-g)))},()=>m&&v(m)]}const pl=(n,t,e=3)=>{let i=0;const m=I$(50,250);return O$(f=>{const v=f.loaded,w=f.lengthComputable?f.total:void 0,h=v-i,g=m(h),a=v<=w;i=v;const l={loaded:v,total:w,progress:w?v/w:void 0,bytes:h,rate:g||void 0,estimated:g&&w&&a?(w-v)/g:void 0,event:f,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},Zm=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},Jm=n=>(...t)=>he.asap(()=>n(...t)),N$=Fn.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Fn.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Fn.origin),Fn.navigator&&/(msie|trident)/i.test(Fn.navigator.userAgent)):()=>!0,D$=Fn.hasStandardBrowserEnv?{write(n,t,e,i,m,f){const v=[n+"="+encodeURIComponent(t)];he.isNumber(e)&&v.push("expires="+new Date(e).toGMTString()),he.isString(i)&&v.push("path="+i),he.isString(m)&&v.push("domain="+m),f===!0&&v.push("secure"),document.cookie=v.join("; ")},read(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function F$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function P$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Xm(n,t){return n&&!F$(t)?P$(n,t):t}const e0=n=>n instanceof ei?{...n}:n;function lo(n,t){t=t||{};const e={};function i(g,a,l,s){return he.isPlainObject(g)&&he.isPlainObject(a)?he.merge.call({caseless:s},g,a):he.isPlainObject(a)?he.merge({},a):he.isArray(a)?a.slice():a}function m(g,a,l,s){if(he.isUndefined(a)){if(!he.isUndefined(g))return i(void 0,g,l,s)}else return i(g,a,l,s)}function f(g,a){if(!he.isUndefined(a))return i(void 0,a)}function v(g,a){if(he.isUndefined(a)){if(!he.isUndefined(g))return i(void 0,g)}else return i(void 0,a)}function w(g,a,l){if(l in t)return i(g,a);if(l in n)return i(void 0,g)}const h={url:f,method:f,data:f,baseURL:v,transformRequest:v,transformResponse:v,paramsSerializer:v,timeout:v,timeoutMessage:v,withCredentials:v,withXSRFToken:v,adapter:v,responseType:v,xsrfCookieName:v,xsrfHeaderName:v,onUploadProgress:v,onDownloadProgress:v,decompress:v,maxContentLength:v,maxBodyLength:v,beforeRedirect:v,transport:v,httpAgent:v,httpsAgent:v,cancelToken:v,socketPath:v,responseEncoding:v,validateStatus:w,headers:(g,a,l)=>m(e0(g),e0(a),l,!0)};return he.forEach(Object.keys(Object.assign({},n,t)),function(g){const a=h[g]||m,l=a(n[g],t[g],g);he.isUndefined(l)&&a!==w||(e[g]=l)}),e}const t0=n=>{const t=lo({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:m,xsrfCookieName:f,headers:v,auth:w}=t;t.headers=v=ei.from(v),t.url=Um(Xm(t.baseURL,t.url),n.params,n.paramsSerializer),w&&v.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):"")));let h;if(he.isFormData(e)){if(Fn.hasStandardBrowserEnv||Fn.hasStandardBrowserWebWorkerEnv)v.setContentType(void 0);else if((h=v.getContentType())!==!1){const[g,...a]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];v.setContentType([g||"multipart/form-data",...a].join("; "))}}if(Fn.hasStandardBrowserEnv&&(i&&he.isFunction(i)&&(i=i(t)),i||i!==!1&&N$(t.url))){const g=m&&f&&D$.read(f);g&&v.set(m,g)}return t},H$=typeof XMLHttpRequest<"u",z$=H$&&function(n){return new Promise(function(t,e){const i=t0(n);let m=i.data;const f=ei.from(i.headers).normalize();let{responseType:v,onUploadProgress:w,onDownloadProgress:h}=i,g,a,l,s,c;function o(){s&&s(),c&&c(),i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function p(){if(!u)return;const x=ei.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),R={data:!v||v==="text"||v==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:x,config:n,request:u};Qm(function(A){t(A),o()},function(A){e(A),o()},R),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(e(new tt("Request aborted",tt.ECONNABORTED,n,u)),u=null)},u.onerror=function(){e(new tt("Network Error",tt.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||qm;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),e(new tt(x,R.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,n,u)),u=null},m===void 0&&f.setContentType(null),"setRequestHeader"in u&&he.forEach(f.toJSON(),function(x,R){u.setRequestHeader(R,x)}),he.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),v&&v!=="json"&&(u.responseType=i.responseType),h&&([l,c]=pl(h,!0),u.addEventListener("progress",l)),w&&u.upload&&([a,s]=pl(w),u.upload.addEventListener("progress",a),u.upload.addEventListener("loadend",s)),(i.cancelToken||i.signal)&&(g=x=>{u&&(e(!x||x.type?new qo(null,n,u):x),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const y=L$(i.url);if(y&&Fn.protocols.indexOf(y)===-1){e(new tt("Unsupported protocol "+y+":",tt.ERR_BAD_REQUEST,n));return}u.send(m||null)})},B$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let i=new AbortController,m;const f=function(g){if(!m){m=!0,w();const a=g instanceof Error?g:this.reason;i.abort(a instanceof tt?a:new qo(a instanceof Error?a.message:a))}};let v=t&&setTimeout(()=>{v=null,f(new tt(`timeout ${t} of ms exceeded`,tt.ETIMEDOUT))},t);const w=()=>{n&&(v&&clearTimeout(v),v=null,n.forEach(g=>{g.unsubscribe?g.unsubscribe(f):g.removeEventListener("abort",f)}),n=null)};n.forEach(g=>g.addEventListener("abort",f));const{signal:h}=i;return h.unsubscribe=()=>he.asap(w),h}},j$=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let i=0,m;for(;i<e;)m=i+t,yield n.slice(i,m),i=m},W$=async function*(n,t){for await(const e of U$(n))yield*j$(e,t)},U$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},n0=(n,t,e,i)=>{const m=W$(n,t);let f=0,v,w=h=>{v||(v=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:g,value:a}=await m.next();if(g){w(),h.close();return}let l=a.byteLength;if(e){let s=f+=l;e(s)}h.enqueue(new Uint8Array(a))}catch(g){throw w(g),g}},cancel(h){return w(h),m.return()}},{highWaterMark:2})},fl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",i0=fl&&typeof ReadableStream=="function",V$=fl&&(typeof TextEncoder=="function"?(n=>t=>n.encode(t))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),r0=(n,...t)=>{try{return!!n(...t)}catch{return!1}},q$=i0&&r0(()=>{let n=!1;const t=new Request(Fn.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!t}),o0=64*1024,mh=i0&&r0(()=>he.isReadableStream(new Response("").body)),gl={stream:mh&&(n=>n.body)};fl&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!gl[t]&&(gl[t]=he.isFunction(n[t])?e=>e[t]():(e,i)=>{throw new tt(`Response type '${t}' is not supported`,tt.ERR_NOT_SUPPORT,i)})})})(new Response);const G$=async n=>{if(n==null)return 0;if(he.isBlob(n))return n.size;if(he.isSpecCompliantForm(n))return(await new Request(Fn.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 V$(n)).byteLength},Y$=async(n,t)=>he.toFiniteNumber(n.getContentLength())??G$(t),K$=fl&&(async n=>{let{url:t,method:e,data:i,signal:m,cancelToken:f,timeout:v,onDownloadProgress:w,onUploadProgress:h,responseType:g,headers:a,withCredentials:l="same-origin",fetchOptions:s}=t0(n);g=g?(g+"").toLowerCase():"text";let c=B$([m,f&&f.toAbortSignal()],v),o;const u=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let p;try{if(h&&q$&&e!=="get"&&e!=="head"&&(p=await Y$(a,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),b;if(he.isFormData(i)&&(b=k.headers.get("content-type"))&&a.setContentType(b),k.body){const[T,E]=Zm(p,pl(Jm(h)));i=n0(k.body,o0,T,E)}}he.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;o=new Request(t,{...s,signal:c,method:e.toUpperCase(),headers:a.normalize().toJSON(),body:i,duplex:"half",credentials:y?l:void 0});let x=await fetch(o);const R=mh&&(g==="stream"||g==="response");if(mh&&(w||R&&u)){const k={};["status","statusText","headers"].forEach(I=>{k[I]=x[I]});const b=he.toFiniteNumber(x.headers.get("content-length")),[T,E]=w&&Zm(b,pl(Jm(w),!0))||[];x=new Response(n0(x.body,o0,T,()=>{E&&E(),u&&u()}),k)}g=g||"text";let A=await gl[he.findKey(gl,g)||"text"](x,n);return!R&&u&&u(),await new Promise((k,b)=>{Qm(k,b,{data:A,headers:ei.from(x.headers),status:x.status,statusText:x.statusText,config:n,request:o})})}catch(y){throw u&&u(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,n,o),{cause:y.cause||y}):tt.from(y,y&&y.code,n,o)}}),vh={http:u$,xhr:z$,fetch:K$};he.forEach(vh,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const s0=n=>`- ${n}`,Q$=n=>he.isFunction(n)||n===null||n===!1,a0={getAdapter:n=>{n=he.isArray(n)?n:[n];const{length:t}=n;let e,i;const m={};for(let f=0;f<t;f++){e=n[f];let v;if(i=e,!Q$(e)&&(i=vh[(v=String(e)).toLowerCase()],i===void 0))throw new tt(`Unknown adapter '${v}'`);if(i)break;m[v||"#"+f]=i}if(!i){const f=Object.entries(m).map(([w,h])=>`adapter ${w} `+(h===!1?"is not supported by the environment":"is not available in the build"));let v=t?f.length>1?`since :
1416
+ `+f.map(s0).join(`
1417
+ `):" "+s0(f[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return i},adapters:vh};function yh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new qo(null,n)}function l0(n){return yh(n),n.headers=ei.from(n.headers),n.data=gh.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),a0.getAdapter(n.adapter||Ds.adapter)(n).then(function(t){return yh(n),t.data=gh.call(n,n.transformResponse,t),t.headers=ei.from(t.headers),t},function(t){return Km(t)||(yh(n),t&&t.response&&(t.response.data=gh.call(n,n.transformResponse,t.response),t.response.headers=ei.from(t.response.headers))),Promise.reject(t)})}const c0="1.7.9",ml={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{ml[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const u0={};ml.transitional=function(n,t,e){function i(m,f){return"[Axios v"+c0+"] Transitional option '"+m+"'"+f+(e?". "+e:"")}return(m,f,v)=>{if(n===!1)throw new tt(i(f," has been removed"+(t?" in "+t:"")),tt.ERR_DEPRECATED);return t&&!u0[f]&&(u0[f]=!0,console.warn(i(f," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(m,f,v):!0}},ml.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function Z$(n,t,e){if(typeof n!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let m=i.length;for(;m-- >0;){const f=i[m],v=t[f];if(v){const w=n[f],h=w===void 0||v(w,f,n);if(h!==!0)throw new tt("option "+f+" must be "+h,tt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new tt("Unknown option "+f,tt.ERR_BAD_OPTION)}}const vl={assertOptions:Z$,validators:ml},Wi=vl.validators;let co=class{constructor(t){this.defaults=t,this.interceptors={request:new Vm,response:new Vm}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const f=m.stack?m.stack.replace(/^.+\n/,""):"";try{i.stack?f&&!String(i.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(i.stack+=`
1418
+ `+f):i.stack=f}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=lo(this.defaults,e);const{transitional:i,paramsSerializer:m,headers:f}=e;i!==void 0&&vl.assertOptions(i,{silentJSONParsing:Wi.transitional(Wi.boolean),forcedJSONParsing:Wi.transitional(Wi.boolean),clarifyTimeoutError:Wi.transitional(Wi.boolean)},!1),m!=null&&(he.isFunction(m)?e.paramsSerializer={serialize:m}:vl.assertOptions(m,{encode:Wi.function,serialize:Wi.function},!0)),vl.assertOptions(e,{baseUrl:Wi.spelling("baseURL"),withXsrfToken:Wi.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let v=f&&he.merge(f.common,f[e.method]);f&&he.forEach(["delete","get","head","post","put","patch","common"],o=>{delete f[o]}),e.headers=ei.concat(v,f);const w=[];let h=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(e)===!1||(h=h&&o.synchronous,w.unshift(o.fulfilled,o.rejected))});const g=[];this.interceptors.response.forEach(function(o){g.push(o.fulfilled,o.rejected)});let a,l=0,s;if(!h){const o=[l0.bind(this),void 0];for(o.unshift.apply(o,w),o.push.apply(o,g),s=o.length,a=Promise.resolve(e);l<s;)a=a.then(o[l++],o[l++]);return a}s=w.length;let c=e;for(l=0;l<s;){const o=w[l++],u=w[l++];try{c=o(c)}catch(p){u.call(this,p);break}}try{a=l0.call(this,c)}catch(o){return Promise.reject(o)}for(l=0,s=g.length;l<s;)a=a.then(g[l++],g[l++]);return a}getUri(t){t=lo(this.defaults,t);const e=Xm(t.baseURL,t.url);return Um(e,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(n){co.prototype[n]=function(t,e){return this.request(lo(e||{},{method:n,url:t,data:(e||{}).data}))}}),he.forEach(["post","put","patch"],function(n){function t(e){return function(i,m,f){return this.request(lo(f||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:m}))}}co.prototype[n]=t(),co.prototype[n+"Form"]=t(!0)});let J$=class Iy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(m){e=m});const i=this;this.promise.then(m=>{if(!i._listeners)return;let f=i._listeners.length;for(;f-- >0;)i._listeners[f](m);i._listeners=null}),this.promise.then=m=>{let f;const v=new Promise(w=>{i.subscribe(w),f=w}).then(m);return v.cancel=function(){i.unsubscribe(f)},v},t(function(m,f,v){i.reason||(i.reason=new qo(m,f,v),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Iy(function(e){t=e}),cancel:t}}};function X$(n){return function(t){return n.apply(null,t)}}function eS(n){return he.isObject(n)&&n.isAxiosError===!0}const wh={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(wh).forEach(([n,t])=>{wh[t]=n});function h0(n){const t=new co(n),e=Tm(co.prototype.request,t);return he.extend(e,co.prototype,t,{allOwnKeys:!0}),he.extend(e,t,null,{allOwnKeys:!0}),e.create=function(i){return h0(lo(n,i))},e}const xn=rn("S",h0(Ds));xn.Axios=co,xn.CanceledError=qo,xn.CancelToken=J$,xn.isCancel=Km,xn.VERSION=c0,xn.toFormData=hl,xn.AxiosError=tt,xn.Cancel=xn.CanceledError,xn.all=function(n){return Promise.all(n)},xn.spread=X$,xn.isAxiosError=eS,xn.mergeConfig=lo,xn.AxiosHeaders=ei,xn.formToJSON=n=>Gm(he.isHTMLForm(n)?new FormData(n):n),xn.getAdapter=a0.getAdapter,xn.HttpStatusCode=wh,xn.default=xn;function tS(n,t,e){const i=jt(n,void 0);return i.setTime(i.getTime()+t*Aa),i}function d0(){return Object.assign({},Mo())}function nS(n,t){const e=()=>hn(void 0,NaN),i=sS(n);let m;if(i.date){const h=aS(i.date,2);m=lS(h.restDateString,h.year)}if(!m||isNaN(+m))return e();const f=+m;let v=0,w;if(i.time&&(v=cS(i.time),isNaN(v)))return e();if(i.timezone){if(w=uS(i.timezone),isNaN(w))return e()}else{const h=new Date(f+v),g=jt(0,void 0);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return jt(f+v+w,void 0)}const yl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},iS=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,rS=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,oS=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sS(n){const t={},e=n.split(yl.dateTimeDelimiter);let i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],yl.timeZoneDelimiter.test(t.date)&&(t.date=n.split(yl.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){const m=yl.timezone.exec(i);m?(t.time=i.replace(m[1],""),t.timezone=m[1]):t.time=i}return t}function aS(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};const m=i[1]?parseInt(i[1]):null,f=i[2]?parseInt(i[2]):null;return{year:f===null?m:f*100,restDateString:n.slice((i[1]||i[2]).length)}}function lS(n,t){if(t===null)return new Date(NaN);const e=n.match(iS);if(!e)return new Date(NaN);const i=!!e[4],m=Ps(e[1]),f=Ps(e[2])-1,v=Ps(e[3]),w=Ps(e[4]),h=Ps(e[5])-1;if(i)return gS(t,w,h)?hS(t,w,h):new Date(NaN);{const g=new Date(0);return!pS(t,f,v)||!fS(t,m)?new Date(NaN):(g.setUTCFullYear(t,f,Math.max(m,v)),g)}}function Ps(n){return n?parseInt(n):1}function cS(n){const t=n.match(rS);if(!t)return NaN;const e=bh(t[1]),i=bh(t[2]),m=bh(t[3]);return mS(e,i,m)?e*Ec+i*Aa+m*1e3:NaN}function bh(n){return n&&parseFloat(n.replace(",","."))||0}function uS(n){if(n==="Z")return 0;const t=n.match(oS);if(!t)return 0;const e=t[1]==="+"?-1:1,i=parseInt(t[2]),m=t[3]&&parseInt(t[3])||0;return vS(i,m)?e*(i*Ec+m*Aa):NaN}function hS(n,t,e){const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,f=(t-1)*7+e+1-m;return i.setUTCDate(i.getUTCDate()+f),i}const dS=[31,null,31,30,31,30,31,31,30,31,30,31];function p0(n){return n%400===0||n%4===0&&n%100!==0}function pS(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(dS[t]||(p0(n)?29:28))}function fS(n,t){return t>=1&&t<=(p0(n)?366:365)}function gS(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function mS(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function vS(n,t){return t>=0&&t<=59}function yS(n,t,e){return tS(n,-t)}function f0(n,t,e){const i=d0(),m=xS(n,e.timeZone,e.locale??i.locale);return"formatToParts"in m?wS(m,t):bS(m,t)}function wS(n,t){const e=n.formatToParts(t);for(let i=e.length-1;i>=0;--i)if(e[i].type==="timeZoneName")return e[i].value}function bS(n,t){const e=n.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(e);return i?i[0].substr(1):""}function xS(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function _S(n,t){const e=AS(t);return"formatToParts"in e?$S(e,n):SS(e,n)}const kS={year:0,month:1,day:2,hour:3,minute:4,second:5};function $S(n,t){try{const e=n.formatToParts(t),i=[];for(let m=0;m<e.length;m++){const f=kS[e[m].type];f!==void 0&&(i[f]=parseInt(e[m].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function SS(n,t){const e=n.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(i[3],10),parseInt(i[1],10),parseInt(i[2],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)]}const xh={},g0=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")),CS=g0==="06/25/2014, 00:00:00"||g0==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";function AS(n){return xh[n]||(xh[n]=CS?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"})),xh[n]}function m0(n,t,e,i,m,f,v){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(i,m,f,v),w}const v0=36e5,TS=6e4,_h={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function kh(n,t,e){if(!n)return 0;let i=_h.timezoneZ.exec(n);if(i)return 0;let m,f;if(i=_h.timezoneHH.exec(n),i)return m=parseInt(i[1],10),y0(m)?-(m*v0):NaN;if(i=_h.timezoneHHMM.exec(n),i){m=parseInt(i[2],10);const v=parseInt(i[3],10);return y0(m,v)?(f=Math.abs(m)*v0+v*TS,i[1]==="+"?-f:f):NaN}if(RS(n)){t=new Date(t||Date.now());const v=e?t:MS(t),w=$h(v,n);return-(e?w:ES(t,w,n))}return NaN}function MS(n){return m0(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function $h(n,t){const e=_S(n,t),i=m0(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let m=n.getTime();const f=m%1e3;return m-=f>=0?f:1e3+f,i-m}function ES(n,t,e){let i=n.getTime()-t;const m=$h(new Date(i),e);if(t===m)return t;i-=m-t;const f=$h(new Date(i),e);return m===f?m:Math.max(m,f)}function y0(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const w0={};function RS(n){if(w0[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),w0[n]=!0,!0}catch{return!1}}const LS=60*1e3,IS={X:function(n,t,e){const i=Sh(e.timeZone,n);if(i===0)return"Z";switch(t){case"X":return b0(i);case"XXXX":case"XX":return Go(i);case"XXXXX":case"XXX":default:return Go(i,":")}},x:function(n,t,e){const i=Sh(e.timeZone,n);switch(t){case"x":return b0(i);case"xxxx":case"xx":return Go(i);case"xxxxx":case"xxx":default:return Go(i,":")}},O:function(n,t,e){const i=Sh(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+OS(i,":");case"OOOO":default:return"GMT"+Go(i,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return f0("short",n,e);case"zzzz":default:return f0("long",n,e)}}};function Sh(n,t){const e=n?kh(n,t,!0)/LS:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function wl(n,t){const e=n<0?"-":"";let i=Math.abs(n).toString();for(;i.length<t;)i="0"+i;return e+i}function Go(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=wl(Math.floor(i/60),2),f=wl(Math.floor(i%60),2);return e+m+t+f}function b0(n,t){return n%60===0?(n>0?"-":"+")+wl(Math.abs(n)/60,2):Go(n,t)}function OS(n,t=""){const e=n>0?"-":"+",i=Math.abs(n),m=Math.floor(i/60),f=i%60;return f===0?e+String(m):e+String(m)+t+wl(f,2)}function x0(n){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+n-+t}const NS=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Ch=36e5,_0=6e4,DS=2,Gn={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:NS};function k0(n,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const e=t.additionalDigits==null?DS:Number(t.additionalDigits);if(e!==2&&e!==1&&e!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const i=FS(n),{year:m,restDateString:f}=PS(i.date,e),v=HS(f,m);if(v===null||isNaN(v.getTime()))return new Date(NaN);if(v){const w=v.getTime();let h=0,g;if(i.time&&(h=zS(i.time),h===null||isNaN(h)))return new Date(NaN);if(i.timeZone||t.timeZone){if(g=kh(i.timeZone||t.timeZone,new Date(w+h)),isNaN(g))return new Date(NaN)}else g=x0(new Date(w+h)),g=x0(new Date(w+h+g));return new Date(w+h+g)}else return new Date(NaN)}function FS(n){const t={};let e=Gn.dateTimePattern.exec(n),i;if(e?(t.date=e[1],i=e[3]):(e=Gn.datePattern.exec(n),e?(t.date=e[1],i=e[2]):(t.date=null,i=n)),i){const m=Gn.timeZone.exec(i);m?(t.time=i.replace(m[1],""),t.timeZone=m[1].trim()):t.time=i}return t}function PS(n,t){if(n){const e=Gn.YYY[t],i=Gn.YYYYY[t];let m=Gn.YYYY.exec(n)||i.exec(n);if(m){const f=m[1];return{year:parseInt(f,10),restDateString:n.slice(f.length)}}if(m=Gn.YY.exec(n)||e.exec(n),m){const f=m[1];return{year:parseInt(f,10)*100,restDateString:n.slice(f.length)}}}return{year:null}}function HS(n,t){if(t===null)return null;let e,i,m;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let f=Gn.MM.exec(n);if(f)return e=new Date(0),i=parseInt(f[1],10)-1,C0(t,i)?(e.setUTCFullYear(t,i),e):new Date(NaN);if(f=Gn.DDD.exec(n),f){e=new Date(0);const v=parseInt(f[1],10);return WS(t,v)?(e.setUTCFullYear(t,0,v),e):new Date(NaN)}if(f=Gn.MMDD.exec(n),f){e=new Date(0),i=parseInt(f[1],10)-1;const v=parseInt(f[2],10);return C0(t,i,v)?(e.setUTCFullYear(t,i,v),e):new Date(NaN)}if(f=Gn.Www.exec(n),f)return m=parseInt(f[1],10)-1,A0(m)?$0(t,m):new Date(NaN);if(f=Gn.WwwD.exec(n),f){m=parseInt(f[1],10)-1;const v=parseInt(f[2],10)-1;return A0(m,v)?$0(t,m,v):new Date(NaN)}return null}function zS(n){let t,e,i=Gn.HH.exec(n);if(i)return t=parseFloat(i[1].replace(",",".")),Ah(t)?t%24*Ch:NaN;if(i=Gn.HHMM.exec(n),i)return t=parseInt(i[1],10),e=parseFloat(i[2].replace(",",".")),Ah(t,e)?t%24*Ch+e*_0:NaN;if(i=Gn.HHMMSS.exec(n),i){t=parseInt(i[1],10),e=parseInt(i[2],10);const m=parseFloat(i[3].replace(",","."));return Ah(t,e,m)?t%24*Ch+e*_0+m*1e3:NaN}return null}function $0(n,t,e){t=t||0,e=e||0;const i=new Date(0);i.setUTCFullYear(n,0,4);const m=i.getUTCDay()||7,f=t*7+e+1-m;return i.setUTCDate(i.getUTCDate()+f),i}const BS=[31,28,31,30,31,30,31,31,30,31,30,31],jS=[31,29,31,30,31,30,31,31,30,31,30,31];function S0(n){return n%400===0||n%4===0&&n%100!==0}function C0(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const i=S0(n);if(i&&e>jS[t]||!i&&e>BS[t])return!1}return!0}function WS(n,t){if(t<1)return!1;const e=S0(n);return!(e&&t>366||!e&&t>365)}function A0(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function Ah(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const US=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function VS(n,t,e={}){t=String(t);const i=t.match(US);if(i){const m=k0(e.originalDate||n,e);t=i.reduce(function(f,v){if(v[0]==="'")return f;const w=f.indexOf(v),h=f[w-1]==="'",g=f.replace(v,"'"+IS[v[0]](m,v,e)+"'");return h?g.substring(0,w-1)+g.substring(w+1):g},t)}return Zr(n,t,e)}function qS(n,t,e){n=k0(n,e);const i=kh(t,n,!0),m=new Date(n.getTime()-i),f=new Date(0);return f.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),f.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),f}function Th(n,t,e,i){return i={...i,timeZone:t,originalDate:n},VS(qS(n,t,{timeZone:i.timeZone}),e,i)}const Mh="yyyy-MM-dd",T0="HH:mm:ss.SSS",GS="HH:mm:ss",bl=`${Mh} ${T0}`,rO=rn("P",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return Zr(!t||t==="local"?yS(n,n.getTimezoneOffset()):n,bl)},formatDateTime(n,t){return!t||t==="local"?Zr(n,bl):Th(n,t,bl)},formatDate:function(n,t){return!t||t==="local"?Zr(n,Mh):Th(n,this.timeZone,Mh)},formatTime:function(n,t,e=T0){return!t||t==="local"?Zr(n,e):Th(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,GS)},formatTimestamp(n,t){return this.formatDateTime(nS(n),t)},formatSeconds(n,t){return this.formatDateTime(new Date(n*1e3),t)},formatNanoseconds(n,t){return this.formatDateTime(new Date(parseInt(n)/1e6),t)}}});var YS=Object.defineProperty,KS=(n,t,e)=>t in n?YS(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Ee=(n,t,e)=>KS(n,typeof t!="symbol"?t+"":t,e);function Eh(n,t,e){const i=jt(n,e==null?void 0:e.in);return isNaN(t)?hn((e==null?void 0:e.in)||n,NaN):(t&&i.setDate(i.getDate()+t),i)}function QS(n,t){const e=jt(n,void 0).getDay();return e===0?7:e}function ZS(n,t){const e=JS(t)?new t(0):hn(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function JS(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const XS=10;class M0{constructor(){Ee(this,"subPriority",0)}validate(t,e){return!0}}class eC extends M0{constructor(t,e,i,m,f){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=m,f&&(this.subPriority=f)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}}class tC extends M0{constructor(t,e){super(),Ee(this,"priority",XS),Ee(this,"subPriority",-1),this.context=t||(i=>hn(e,i))}set(t,e){return e.timestampIsSet?t:hn(t,ZS(t,this.context))}}class _t{run(t,e,i,m){const f=this.parse(t,e,i,m);return f?{setter:new eC(f.value,this.validate,this.set,this.priority,this.subPriority),rest:f.rest}:null}validate(t,e,i){return!0}}class nC extends _t{constructor(){super(...arguments),Ee(this,"priority",140),Ee(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}const sn={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}/},Ui={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 an(n,t){return n&&{value:t(n.value),rest:n.rest}}function qt(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function Vi(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const i=e[1]==="+"?1:-1,m=e[2]?parseInt(e[2],10):0,f=e[3]?parseInt(e[3],10):0,v=e[5]?parseInt(e[5],10):0;return{value:i*(m*Ec+f*Aa+v*Vy),rest:t.slice(e[0].length)}}function E0(n){return qt(sn.anyDigitsSigned,n)}function Jt(n,t){switch(n){case 1:return qt(sn.singleDigit,t);case 2:return qt(sn.twoDigits,t);case 3:return qt(sn.threeDigits,t);case 4:return qt(sn.fourDigits,t);default:return qt(new RegExp("^\\d{1,"+n+"}"),t)}}function R0(n,t){switch(n){case 1:return qt(sn.singleDigitSigned,t);case 2:return qt(sn.twoDigitsSigned,t);case 3:return qt(sn.threeDigitsSigned,t);case 4:return qt(sn.fourDigitsSigned,t);default:return qt(new RegExp("^-?\\d{1,"+n+"}"),t)}}function Rh(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 L0(n,t){const e=t>0,i=e?t:1-t;let m;if(i<=50)m=n||100;else{const f=i+50,v=Math.trunc(f/100)*100,w=n>=f%100;m=n+v-(w?100:0)}return e?m:1-m}function I0(n){return n%400===0||n%4===0&&n%100!==0}class iC extends _t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,i){const m=f=>({year:f,isTwoDigitYear:e==="yy"});switch(e){case"y":return an(Jt(4,t),m);case"yo":return an(i.ordinalNumber(t,{unit:"year"}),m);default:return an(Jt(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){const m=t.getFullYear();if(i.isTwoDigitYear){const v=L0(i.year,m);return t.setFullYear(v,0,1),t.setHours(0,0,0,0),t}const f=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(f,0,1),t.setHours(0,0,0,0),t}}class rC extends _t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,i){const m=f=>({year:f,isTwoDigitYear:e==="YY"});switch(e){case"Y":return an(Jt(4,t),m);case"Yo":return an(i.ordinalNumber(t,{unit:"year"}),m);default:return an(Jt(e.length,t),m)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,m){const f=Lc(t,m);if(i.isTwoDigitYear){const w=L0(i.year,f);return t.setFullYear(w,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),_r(t,m)}const v=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(v,0,m.firstWeekContainsDate),t.setHours(0,0,0,0),_r(t,m)}}class oC extends _t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return R0(e==="R"?4:e.length,t)}set(t,e,i){const m=hn(t,0);return m.setFullYear(i,0,4),m.setHours(0,0,0,0),Eo(m)}}class sC extends _t{constructor(){super(...arguments),Ee(this,"priority",130),Ee(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return R0(e==="u"?4:e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class aC extends _t{constructor(){super(...arguments),Ee(this,"priority",120),Ee(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"Q":case"QQ":return Jt(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}}let lC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",120),Ee(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"q":case"qq":return Jt(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}};class cC extends _t{constructor(){super(...arguments),Ee(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Ee(this,"priority",110)}parse(t,e,i){const m=f=>f-1;switch(e){case"M":return an(qt(sn.month,t),m);case"MM":return an(Jt(2,t),m);case"Mo":return an(i.ordinalNumber(t,{unit:"month"}),m);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}class uC extends _t{constructor(){super(...arguments),Ee(this,"priority",110),Ee(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,i){const m=f=>f-1;switch(e){case"L":return an(qt(sn.month,t),m);case"LL":return an(Jt(2,t),m);case"Lo":return an(i.ordinalNumber(t,{unit:"month"}),m);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}function hC(n,t,e){const i=jt(n,e==null?void 0:e.in),m=cp(i,e)-t;return i.setDate(i.getDate()-m*7),jt(i,e==null?void 0:e.in)}class dC extends _t{constructor(){super(...arguments),Ee(this,"priority",100),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,i){switch(e){case"w":return qt(sn.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return Jt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,m){return _r(hC(t,i,m),m)}}function pC(n,t,e){const i=jt(n,void 0),m=lp(i)-t;return i.setDate(i.getDate()-m*7),i}let fC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",100),Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,i){switch(e){case"I":return qt(sn.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return Jt(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return Eo(pC(t,i))}};const gC=[31,28,31,30,31,30,31,31,30,31,30,31],mC=[31,29,31,30,31,30,31,31,30,31,30,31];class vC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"subPriority",1),Ee(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"d":return qt(sn.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return Jt(e.length,t)}}validate(t,e){const i=t.getFullYear(),m=I0(i),f=t.getMonth();return m?e>=1&&e<=mC[f]:e>=1&&e<=gC[f]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}}class yC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"subpriority",1),Ee(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,i){switch(e){case"D":case"DD":return qt(sn.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return Jt(e.length,t)}}validate(t,e){const i=t.getFullYear();return I0(i)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}}function Lh(n,t,e){var i,m,f,v;const w=Mo(),h=(e==null?void 0:e.weekStartsOn)??((m=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:m.weekStartsOn)??w.weekStartsOn??((v=(f=w.locale)==null?void 0:f.options)==null?void 0:v.weekStartsOn)??0,g=jt(n,e==null?void 0:e.in),a=g.getDay(),l=(t%7+7)%7,s=7-h,c=t<0||t>6?t-(a+s)%7:(l+s)%7-(a+s)%7;return Eh(g,c,e)}class wC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Lh(t,i,m),t.setHours(0,0,0,0),t}}class bC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,i,m){const f=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return an(Jt(e.length,t),f);case"eo":return an(i.ordinalNumber(t,{unit:"day"}),f);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Lh(t,i,m),t.setHours(0,0,0,0),t}}class xC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,i,m){const f=v=>{const w=Math.floor((v-1)/7)*7;return(v+m.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return an(Jt(e.length,t),f);case"co":return an(i.ordinalNumber(t,{unit:"day"}),f);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,m){return t=Lh(t,i,m),t.setHours(0,0,0,0),t}}function _C(n,t,e){const i=jt(n,void 0),m=QS(i),f=t-m;return Eh(i,f,e)}class kC extends _t{constructor(){super(...arguments),Ee(this,"priority",90),Ee(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,i){const m=f=>f===0?7:f;switch(e){case"i":case"ii":return Jt(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return an(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiii":return an(i.day(t,{width:"narrow",context:"formatting"}),m);case"iiiiii":return an(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m);case"iiii":default:return an(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),m)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return t=_C(t,i),t.setHours(0,0,0,0),t}}class $C extends _t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Rh(i),0,0,0),t}}class SC extends _t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Rh(i),0,0,0),t}}class CC extends _t{constructor(){super(...arguments),Ee(this,"priority",80),Ee(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(Rh(i),0,0,0),t}}class AC extends _t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,i){switch(e){case"h":return qt(sn.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return Jt(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){const m=t.getHours()>=12;return m&&i<12?t.setHours(i+12,0,0,0):!m&&i===12?t.setHours(0,0,0,0):t.setHours(i,0,0,0),t}}class TC extends _t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,i){switch(e){case"H":return qt(sn.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return Jt(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}}let MC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,i){switch(e){case"K":return qt(sn.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return Jt(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}};class EC extends _t{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,i){switch(e){case"k":return qt(sn.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return Jt(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){const m=i<=24?i%24:i;return t.setHours(m,0,0,0),t}}class RC extends _t{constructor(){super(...arguments),Ee(this,"priority",60),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"m":return qt(sn.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return Jt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}}class LC extends _t{constructor(){super(...arguments),Ee(this,"priority",50),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e,i){switch(e){case"s":return qt(sn.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return Jt(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}}let IC=class extends _t{constructor(){super(...arguments),Ee(this,"priority",30),Ee(this,"incompatibleTokens",["t","T"])}parse(t,e){const i=m=>Math.trunc(m*Math.pow(10,-e.length+3));return an(Jt(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}};class OC extends _t{constructor(){super(...arguments),Ee(this,"priority",10),Ee(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return Vi(Ui.basicOptionalMinutes,t);case"XX":return Vi(Ui.basic,t);case"XXXX":return Vi(Ui.basicOptionalSeconds,t);case"XXXXX":return Vi(Ui.extendedOptionalSeconds,t);case"XXX":default:return Vi(Ui.extended,t)}}set(t,e,i){return e.timestampIsSet?t:hn(t,t.getTime()-Ta(t)-i)}}class NC extends _t{constructor(){super(...arguments),Ee(this,"priority",10),Ee(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return Vi(Ui.basicOptionalMinutes,t);case"xx":return Vi(Ui.basic,t);case"xxxx":return Vi(Ui.basicOptionalSeconds,t);case"xxxxx":return Vi(Ui.extendedOptionalSeconds,t);case"xxx":default:return Vi(Ui.extended,t)}}set(t,e,i){return e.timestampIsSet?t:hn(t,t.getTime()-Ta(t)-i)}}class DC extends _t{constructor(){super(...arguments),Ee(this,"priority",40),Ee(this,"incompatibleTokens","*")}parse(t){return E0(t)}set(t,e,i){return[hn(t,i*1e3),{timestampIsSet:!0}]}}class FC extends _t{constructor(){super(...arguments),Ee(this,"priority",20),Ee(this,"incompatibleTokens","*")}parse(t){return E0(t)}set(t,e,i){return[hn(t,i),{timestampIsSet:!0}]}}const PC={G:new nC,y:new iC,Y:new rC,R:new oC,u:new sC,Q:new aC,q:new lC,M:new cC,L:new uC,w:new dC,I:new fC,d:new vC,D:new yC,E:new wC,e:new bC,c:new xC,i:new kC,a:new $C,b:new SC,B:new CC,h:new AC,H:new TC,K:new MC,k:new EC,m:new RC,s:new LC,S:new IC,X:new OC,x:new NC,t:new DC,T:new FC},HC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zC=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,BC=/^'([^]*?)'?$/,jC=/''/g,WC=/\S/,UC=/[a-zA-Z]/;function VC(n,t,e,i){var m,f,v,w;const h=()=>hn(e,NaN),g=d0(),a=g.locale??ap,l=g.firstWeekContainsDate??((f=(m=g.locale)==null?void 0:m.options)==null?void 0:f.firstWeekContainsDate)??1,s=g.weekStartsOn??((w=(v=g.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():jt(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:s,locale:a},o=[new tC(void 0,e)],u=t.match(zC).map(A=>{const k=A[0];if(k in Ic){const b=Ic[k];return b(A,a.formatLong)}return A}).join("").match(HC),p=[];for(let A of u){mp(A)&&Oc(A,t,n),gp(A)&&Oc(A,t,n);const k=A[0],b=PC[k];if(b){const{incompatibleTokens:T}=b;if(Array.isArray(T)){const I=p.find(M=>T.includes(M.token)||M.token===k);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${A}\` at the same time`)}else if(b.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${A}\` and any other token at the same time`);p.push({token:k,fullToken:A});const E=b.run(n,A,a.match,c);if(!E)return h();o.push(E.setter),n=E.rest}else{if(k.match(UC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(A==="''"?A="'":k==="'"&&(A=qC(A)),n.indexOf(A)===0)n=n.slice(A.length);else return h()}}if(n.length>0&&WC.test(n))return h();const y=o.map(A=>A.priority).sort((A,k)=>k-A).filter((A,k,b)=>b.indexOf(A)===k).map(A=>o.filter(k=>k.priority===A).sort((k,b)=>b.subPriority-k.subPriority)).map(A=>A[0]);let x=jt(e,void 0);if(isNaN(+x))return h();const R={};for(const A of y){if(!A.validate(x,c))return h();const k=A.set(x,R,c);Array.isArray(k)?(x=k[0],Object.assign(R,k[1])):x=k}return x}function qC(n){return n.match(BC)[1].replace(jC,"'")}const GC={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function YC(n,t,e,i,m,f){const v=Ie("rux-icon");return kt(),on(v,{size:e.size,icon:e.icon,style:vs(f.colorStyle)},null,8,["size","icon","style"])}const KC=ir(GC,[["render",YC],["__scopeId","data-v-9af48e85"]]),QC="/icons/status-dark.png",ZC={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return QC},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=tA.indexOf(O0[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,i=32*this.scaleFactor*t,m=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*m}px;`,`background-size: ${e}px ${i}px;`,`height: ${m}px;`,`width: ${m}px;`,`padding-top: ${n-1}px;`].join("")}}};function JC(n,t,e,i,m,f){return kt(),zi("div",{style:vs(f.iconStyle)},null,4)}const XC=ir(ZC,[["render",JC]]),O0={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"},Ih={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},eA=function(n){const t="#000000",e="#ffffff",i=Ih[O0[n]];if(i){const m=+`0x${i.slice(1,3)}`,f=+`0x${i.slice(3,5)}`,v=+`0x${i.slice(5,7)}`;if((m*299+f*587+v*114)/1e3>128)return t}return e},tA=Object.keys(Ih),nA={astro:{component:n=>ms(KC,{...n})},"astro-status":{component:n=>ms(XC,{...n,status:n.icon})}},oO=rn("Z",{data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(n){this.dontSaveDefaultConfig!==!0&&(localStorage[`${this.configKey}__default`]=JSON.stringify(n))},openConfigBase:function(n,t=!1,e=null){new Sr().load_config(this.configKey,n).then(i=>{i?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(i)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(i=>{i&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:i})})},saveConfigBase:function(n,t){new Sr().save_config(this.configKey,n,JSON.stringify(t)).then(()=>{this.$notify.normal({title:"Saved configuration",body:n})}).catch(e=>{e&&this.$notify.serious({title:`Error saving configuration: ${n}`,body:e})})},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`);const n={...this.$route.query};delete n.config,this.$router.replace({query:n})}}}),iA={props:{configKey:String,modelValue:Boolean},data(){return{configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.selectedItem===""||this.selectedItem===null?"Must select a config":null},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new Sr().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.selectedItem&&(this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedRows=[])},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[]},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[]),this.configs.splice(this.configs.indexOf(n),1),new Sr().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},rA={class:"mt-4 pa-3"},oA=["textContent"];function sA(n,t,e,i,m,f){const v=Ie("v-spacer"),w=Ie("v-toolbar"),h=Ie("v-text-field"),g=Ie("v-row"),a=Ie("v-btn"),l=Ie("v-data-table"),s=Ie("v-card-text"),c=Ie("v-card-actions"),o=Ie("v-card"),u=Ie("v-dialog");return kt(),on(u,{modelValue:f.show,"onUpdate:modelValue":t[4]||(t[4]=p=>f.show=p),onKeydown:Ac(f.cancel,["esc"]),width:"600"},{default:Se(()=>[be(o,null,{default:Se(()=>[Vn("form",{onSubmit:t[3]||(t[3]=To((...p)=>f.success&&f.success(...p),["prevent"]))},[be(w,{height:"24"},{default:Se(()=>[be(v),t[5]||(t[5]=Vn("span",null,"Open Configuration",-1)),be(v)]),_:1}),be(s,null,{default:Se(()=>[Vn("div",rA,[be(g,{dense:""},{default:Se(()=>[be(h,{label:"search",modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=p=>m.search=p),type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline",autofocus:"","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),be(l,{modelValue:m.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>m.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:m.search,headers:m.headers,items:m.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,y)=>f.selectRow(y))},{"item.actions":Se(({item:p})=>[be(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:y=>f.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),be(g,{dense:""},{default:Se(()=>[Sa(Vn("span",{class:"ma-2 text-red",textContent:In(f.error)},null,8,oA),[[Ca,f.error]])]),_:1})])]),_:1}),be(c,{class:"px-2"},{default:Se(()=>[be(v),be(a,{variant:"outlined",onClick:f.cancel,"data-test":"open-config-cancel-btn"},{default:Se(()=>t[6]||(t[6]=[Zt(" Cancel ")])),_:1},8,["onClick"]),be(a,{variant:"flat",onClick:To(f.success,["prevent"]),type:"submit","data-test":"open-config-submit-btn",disabled:!!f.error},{default:Se(()=>t[7]||(t[7]=[Zt(" Ok ")])),_:1},8,["onClick","disabled"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const sO=rn("X",ir(iA,[["render",sA]])),aA={props:{configKey:String,modelValue:Boolean},data(){return{configName:"",configs:[],headers:[{title:"Configuration",value:"config"},{title:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedRows:[]}},computed:{selectedItem:function(){return this.selectedRows.length?this.configs.find(n=>n.configId===this.selectedRows[0]):null},error:function(){return this.configName?null:"Config must have a name"},show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},mounted(){let n=-1;new Sr().list_configs(this.configKey).then(t=>{this.configs=t.map(e=>(n+=1,{configId:n,config:e}))}).catch(t=>{this.$emit("warning",`Failed to connect to OpenC3. ${t}`)})},methods:{selectRow:function(n){this.selectedRows=[n.item.configId]},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedRows=[],this.configName=""},deleteConfig:function(n){this.$dialog.confirm(`Are you sure you want to delete: ${n.config}`,{okText:"Delete",cancelText:"Cancel"}).then(t=>{var e;((e=this.selectedItem)==null?void 0:e.config)===n.config&&(this.selectedRows=[],this.configName=""),this.configs.splice(this.configs.indexOf(n),1),new Sr().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}}},lA={class:"mt-4 pa-3"},cA=["textContent"];function uA(n,t,e,i,m,f){const v=Ie("v-spacer"),w=Ie("v-toolbar"),h=Ie("v-text-field"),g=Ie("v-row"),a=Ie("v-btn"),l=Ie("v-data-table"),s=Ie("v-card-text"),c=Ie("v-card-actions"),o=Ie("v-card"),u=Ie("v-dialog");return kt(),on(u,{modelValue:f.show,"onUpdate:modelValue":t[5]||(t[5]=p=>f.show=p),onKeydown:Ac(f.cancel,["esc"]),width:"600"},{default:Se(()=>[be(o,null,{default:Se(()=>[Vn("form",{onSubmit:t[4]||(t[4]=To((...p)=>f.success&&f.success(...p),["prevent"]))},[be(w,{height:"24"},{default:Se(()=>[be(v),t[6]||(t[6]=Vn("span",null,"Save Configuration",-1)),be(v)]),_:1}),be(s,null,{default:Se(()=>[Vn("div",lA,[be(g,{dense:""},{default:Se(()=>[be(h,{label:"search",modelValue:m.search,"onUpdate:modelValue":t[0]||(t[0]=p=>m.search=p),type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","clear-icon":"mdi-close-circle-outline","single-line":"","hide-details":"","data-test":"search"},null,8,["modelValue"])]),_:1}),be(l,{modelValue:m.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>m.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:m.search,headers:m.headers,items:m.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,y)=>f.selectRow(y))},{"item.actions":Se(({item:p})=>[be(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:y=>f.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),be(g,{dense:""},{default:Se(()=>[be(h,{modelValue:m.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>m.configName=p),"hide-details":"",autofocus:"",disabled:!!f.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),be(g,{dense:""},{default:Se(()=>[Sa(Vn("span",{class:"ma-2 text-red",textContent:In(f.error)},null,8,cA),[[Ca,f.error]])]),_:1})])]),_:1}),be(c,{class:"px-2"},{default:Se(()=>[be(v),be(a,{variant:"outlined",onClick:f.cancel},{default:Se(()=>t[7]||(t[7]=[Zt(" Cancel ")])),_:1},8,["onClick"]),be(a,{variant:"flat",onClick:To(f.success,["prevent"]),type:"submit","data-test":"save-config-submit-btn",disabled:!!f.error},{default:Se(()=>t[8]||(t[8]=[Zt(" Ok ")])),_:1},8,["onClick","disabled"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const aO=rn("Y",ir(aA,[["render",uA]])),N0="single-spa:app-change",hA={data(){return{show:!1}},created(){window.addEventListener(N0,this.handleAppChange)},mounted(){setTimeout(()=>{this.show=Jd().length===0},150)},unmounted(){window.removeEventListener(N0,this.handleAppChange)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED}}},dA={class:"mx-1"};function pA(n,t,e,i,m,f){const v=Ie("v-card-title"),w=Ie("v-card-text"),h=Ie("v-card");return m.show?(kt(),on(h,{key:0},{default:Se(()=>[be(v,null,{default:Se(()=>t[0]||(t[0]=[Zt(" 404 Not Found ")])),_:1}),be(w,{class:"d-flex align-center mt-3"},{default:Se(()=>[t[1]||(t[1]=Zt(" The requested URL ")),Vn("code",dA,In(n.$route.fullPath),1),t[2]||(t[2]=Zt(" was not routable. ")),t[3]||(t[3]=Vn("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):qn("",!0)}const fA=ir(hA,[["render",pA]]),gA={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:n=>["cmd","tlm"].includes(n)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1}},data(){var n,t,e;return{targetNames:[],selectedTargetName:(n=this.initialTargetName)==null?void 0:n.toUpperCase(),packetNames:[],selectedPacketName:(t=this.initialPacketName)==null?void 0:t.toUpperCase(),itemNames:[],selectedItemName:(e=this.initialItemName)==null?void 0:e.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{title:"NONE",value:"DECOM"},{title:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{title:"REDUCED_HOUR",value:"REDUCED_HOUR"},{title:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created(){this.internalDisabled=!0,this.api=new Sr,this.api.get_target_names().then(n=>{this.targetNames=n.flatMap(t=>t=="UNKNOWN"?[]:{label:t,value:t}),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName?this.updatePackets():(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.unknown&&this.targetNames.push(this.UNKNOWN)})},computed:{actualButtonText:function(){return this.selectedPacketName==="ALL"?"Add Target":this.selectedItemName==="ALL"?"Add Packet":this.buttonText},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||this.selectedTargetName===null||this.selectedPacketName===null||this.selectedItemNameWIndex===null},colSize:function(){return this.vertical?12:!1},selectedItemNameWIndex:function(){return this.itemIsArray()&&this.selectedArrayIndex!==null&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName}},watch:{mode:function(n,t){this.selectedPacketName=null,this.selectedItemName=null,this.targetNameChanged(this.selectedTargetName)},chooseItem:function(n,t){n?this.updateItems():this.itemNames=[]}},methods:{updatePackets:function(){if(this.selectedTargetName==="UNKNOWN"){this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),this.description="UNKNOWN";return}if(this.selectedTargetName==="ALL"){this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),this.description="ALL";return}this.internalDisabled=!0;const n=this.mode==="tlm"?"get_all_tlm_names":"get_all_cmd_names";this.api[n](this.selectedTargetName,this.hidden).then(t=>{this.packetNames=t.map(e=>({label:e,value:e})),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName),this.packetNames.find(e=>e.value===this.selectedPacketName)&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1})},updateItems:function(){if(this.selectedPacketName==="ALL")return;this.internalDisabled=!0;const n=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[n](this.selectedTargetName,this.selectedPacketName).then(t=>{this.itemNames=t.items.map(e=>{let i=e.name;return e.data_type=="DERIVED"&&(i+=" *"),[{label:i,value:e.name,description:e.description,array:e.array_size/e.bit_size}]}).reduce((e,i)=>e.concat(i),[]),this.itemNames.sort((e,i)=>e.label>i.label?1:-1),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.itemIsArray(),this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1})},itemIsArray:function(){let n=this.itemNames.findIndex(t=>t.value===this.selectedItemName);return n===-1?(this.selectedArrayIndex=null,!1):isNaN(this.itemNames[n].array)?(this.selectedArrayIndex=null,!1):(this.selectedArrayIndex===null&&(this.selectedArrayIndex=0),!0)},arrayIndexes:function(){let n=this.itemNames.findIndex(e=>e.value===this.selectedItemName),t=[...Array(this.itemNames[n].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},targetNameChanged:function(n){this.selectedTargetName=n,this.selectedPacketName="",this.selectedItemName="",n!==null&&this.updatePackets()},packetNameChanged:function(n){this.selectedItemName="",n!==null&&this.updatePacketDetails(n)},updatePacketDetails:function(n){if(n==="ALL")this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;const t=this.packetNames.find(e=>n===e.value);if(t){this.selectedPacketName=t.value;const e=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then(i=>{this.description=i.description,this.hazardous=i.hazardous})}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(n){const t=this.itemNames.find(e=>n===e.value);t&&(this.itemIsArray(),this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(n){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){this.selectedPacketName==="ALL"?this.allTargetPacketItems():this.selectedItemName==="ALL"?this.allPacketItems():this.chooseItem?this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach(n=>{if(n===this.ALL)return;const t=this.mode==="tlm"?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,n.value).then(e=>{e.items.forEach(i=>{this.$emit("addItem",{targetName:this.selectedTargetName,packetName:n.value,itemName:i.name,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})})})},allPacketItems:function(){this.itemNames.forEach(n=>{n!==this.ALL&&this.$emit("addItem",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:n.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})})}}},mA={class:"pt-4 pb-4"};function vA(n,t,e,i,m,f){const v=Ie("v-autocomplete"),w=Ie("v-col"),h=Ie("v-combobox"),g=Ie("v-btn"),a=Ie("v-row");return kt(),zi("div",mA,[be(a,{"no-gutters":!e.vertical},{default:Se(()=>[be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"select-target"},{default:Se(()=>[be(v,{label:"Select Target","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[f.targetNameChanged,t[0]||(t[0]=l=>m.selectedTargetName=l)],items:m.targetNames,"item-title":"label","item-value":"value",modelValue:m.selectedTargetName},null,8,["onUpdate:modelValue","items","modelValue"])]),_:1},8,["cols"]),be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"select-packet"},{default:Se(()=>[be(v,{label:"Select Packet","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[f.packetNameChanged,t[1]||(t[1]=l=>m.selectedPacketName=l)],disabled:m.packetsDisabled||f.autocompleteDisabled,items:m.packetNames,"item-title":"label","item-value":"value",modelValue:m.selectedPacketName},null,8,["onUpdate:modelValue","disabled","items","modelValue"])]),_:1},8,["cols"]),e.chooseItem?(kt(),on(w,{key:0,cols:f.colSize,class:"tpic-select pr-4","data-test":"select-item"},{default:Se(()=>[be(v,{label:"Select Item","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[t[2]||(t[2]=l=>f.itemNameChanged(l)),t[3]||(t[3]=l=>m.selectedItemName=l)],disabled:m.itemsDisabled||f.autocompleteDisabled,items:m.itemNames,"item-title":"label","item-value":"value",modelValue:m.selectedItemName},null,8,["disabled","items","modelValue"])]),_:1},8,["cols"])):qn("",!0),e.chooseItem&&f.itemIsArray()?(kt(),on(w,{key:1,cols:"1",class:"tpic-select pr-4","data-test":"array-index",style:{"min-width":"105px"}},{default:Se(()=>[be(h,{label:"Index","hide-details":"",density:"compact",variant:"outlined","onUpdate:modelValue":[t[4]||(t[4]=l=>f.indexChanged(l)),t[5]||(t[5]=l=>m.selectedArrayIndex=l)],disabled:m.itemsDisabled||f.autocompleteDisabled,items:f.arrayIndexes(),"item-title":"label","item-value":"value",modelValue:m.selectedArrayIndex},null,8,["disabled","items","modelValue"])]),_:1})):qn("",!0),e.buttonText?(kt(),on(w,{key:2,cols:f.colSize,style:{"max-width":"140px"}},{default:Se(()=>[be(g,{disabled:f.buttonDisabled,color:"primary","data-test":"select-send",onClick:f.buttonPressed},{default:Se(()=>[Zt(In(f.actualButtonText),1)]),_:1},8,["disabled","onClick"])]),_:1},8,["cols"])):qn("",!0)]),_:1},8,["no-gutters"]),e.selectTypes?(kt(),on(a,{key:0,"no-gutters":"",class:"pt-6"},{default:Se(()=>[be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"data-type"},{default:Se(()=>[be(v,{label:"Value Type","hide-details":"",density:"compact",variant:"outlined",items:m.valueTypes,modelValue:m.selectedValueType,"onUpdate:modelValue":t[6]||(t[6]=l=>m.selectedValueType=l)},null,8,["items","modelValue"])]),_:1},8,["cols"]),be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"reduced"},{default:Se(()=>[be(v,{label:"Reduced","hide-details":"",density:"compact",variant:"outlined",items:m.reductionModes,modelValue:m.selectedReduced,"onUpdate:modelValue":t[7]||(t[7]=l=>m.selectedReduced=l)},null,8,["items","modelValue"])]),_:1},8,["cols"]),be(w,{cols:f.colSize,class:"tpic-select pr-4","data-test":"reduced-type"},{default:Se(()=>[be(v,{label:"Reduced Type","hide-details":"",density:"compact",variant:"outlined",disabled:m.selectedReduced==="DECOM",items:m.reducedTypes,modelValue:m.selectedReducedType,"onUpdate:modelValue":t[8]||(t[8]=l=>m.selectedReducedType=l)},null,8,["disabled","items","modelValue"])]),_:1},8,["cols"]),be(w,{cols:f.colSize,style:{"max-width":"140px"}},null,8,["cols"])]),_:1})):qn("",!0),be(a,{"no-gutters":"",class:"pa-3"},{default:Se(()=>[m.hazardous?(kt(),on(w,{key:0,cols:f.colSize,class:"openc3-yellow"},{default:Se(()=>[Zt("Description: "+In(m.description)+" (HAZARDOUS)",1)]),_:1},8,["cols"])):(kt(),on(w,{key:1,cols:f.colSize},{default:Se(()=>[Zt("Description: "+In(m.description),1)]),_:1},8,["cols"]))]),_:1})])}const lO=rn("e",ir(gA,[["render",vA],["__scopeId","data-v-980a401d"]])),D0=[{path:"/",name:"DataViewer",component:()=>De(()=>Ne.import("./DataViewer-413ff580439088fa437d.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:fA}];D0.forEach(np);const yA=Qd({history:Zd(),routes:D0}),wA={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"}},bA={data:function(){return{show:!1,params:{title:"Title",text:"The text that is displayed",okText:"Ok",okClass:"primary",validateText:"CONFIRM",cancelText:"Cancel",html:!1},resolve:null,reject:null,validationText:null,rules:{required:n=>!!n||"Required.",match:n=>n===this.params.validateText||"Value mismatch."}}},computed:{dataTestOk:function(){return`confirm-dialog-${this.params.okText.toLowerCase()}`},dataTestCancel:function(){return`confirm-dialog-${this.params.cancelText.toLowerCase()}`}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){this.params.validateText===this.validationText&&(this.show=!1,this.resolve(!0))},cancel:function(){this.show=!1,this.reject(!0)}}},xA=["innerHTML"],_A={key:2},kA={key:3,class:"validate mt-4"};function $A(n,t,e,i,m,f){const v=Ie("v-spacer"),w=Ie("v-toolbar"),h=Ie("v-icon"),g=Ie("v-text-field"),a=Ie("v-card-text"),l=Ie("v-btn"),s=Ie("v-card-actions"),c=Ie("v-card"),o=Ie("v-dialog"),u=Ie("v-app");return kt(),on(u,null,{default:Se(()=>[be(o,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=p=>n.show=p),width:"600"},{default:Se(()=>[be(c,null,{default:Se(()=>[be(w,{height:"24"},{default:Se(()=>[be(v),Vn("span",null,In(n.params.title),1),be(v)]),_:1}),be(a,{class:"mt-4 pa-3"},{default:Se(()=>[n.params.validateText?(kt(),on(h,{key:0,class:"mr-2"},{default:Se(()=>t[2]||(t[2]=[Zt(" mdi-alert ")])),_:1})):qn("",!0),n.params.html?(kt(),zi("span",{key:1,innerHTML:n.params.text},null,8,xA)):(kt(),zi("span",_A,In(n.params.text),1)),n.params.validateText?(kt(),zi("div",kA,[Zt(" Enter "+In(n.params.validateText)+" to confirm! ",1),be(g,{variant:"solo",density:"compact","single-line":"",modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=p=>n.validationText=p),rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):qn("",!0)]),_:1}),be(s,{class:"px-2"},{default:Se(()=>[be(v),n.params.cancelText?(kt(),on(l,{key:0,variant:"outlined","data-test":f.dataTestCancel,onClick:f.cancel},{default:Se(()=>[Zt(In(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):qn("",!0),be(l,{variant:"flat",color:n.params.okClass,"data-test":f.dataTestOk,onClick:f.ok},{default:Se(()=>[Zt(In(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const SA=ir(bA,[["render",$A],["__scopeId","data-v-581c0293"]]);class CA{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(SA);t.use(Nh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({title:t,text:e,okText:i,okClass:m,validateText:f,cancelText:v,html:w}){return this.mount(),new Promise((h,g)=>{this.$root.dialog({title:t,text:e,okText:i,okClass:m,validateText:f,cancelText:v,html:w},h,g)})}confirm(t,{okText:e="Ok",cancelText:i="Cancel",okClass:m="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:m,validateText:null,cancelText:i,html:!1})}alert(t,{okText:e="Ok",html:i=!1,okClass:m="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:m,validateText:null,cancelText:null,html:i})}validate(t,{okText:e="Ok",validateText:i="CONFIRM",cancelText:m="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:i,cancelText:m,html:!1})}}const AA={install(n,t){const e=new CA;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},TA={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`
1419
1419
  --toast-bg-color:${Ih[this.toastNotification.level]};
1420
- --toast-fg-color:${XC(this.toastNotification.level)};
1420
+ --toast-fg-color:${eA(this.toastNotification.level)};
1421
1421
  `},contentStyle:function(){return`
1422
1422
  white-space: ${this.expanded?"normal":"nowrap"};
1423
1423
  overflow-x: ${this.expanded?"visible":"hidden"};
1424
1424
  text-overflow: ${this.expanded?"unset":"ellipsis"};
1425
- `}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},AA={key:0,class:"text-subtitle-1 mr-1 notification-text"},TA={key:1,class:"text-body-2 notification-text"},MA={key:2,class:"text-body-2 notification-text"};function EA(n,t,e,i,m,f){const v=Ie("v-icon"),w=Ie("v-spacer"),h=Ie("v-btn"),g=Ie("v-sheet"),a=Ie("v-slide-y-transition");return kt(),on(a,null,{default:Se(()=>[Sa(be(g,{style:vs(f.toastStyle),class:"toast-notification",onClick:f.expand},{default:Se(()=>[be(v,{class:"mr-1 notification-text"},{default:Se(()=>[Zt(In(f.toastNotificationIcon),1)]),_:1}),Zn("div",{class:"toast-content",style:vs(f.contentStyle)},[n.toastNotification.title?(kt(),Bi("span",AA,In(n.toastNotification.title)+": ",1)):Jn("",!0),n.toastNotification.body?(kt(),Bi("span",TA,In(n.toastNotification.body),1)):Jn("",!0),n.toastNotification.message?(kt(),Bi("span",MA,In(n.toastNotification.message),1)):Jn("",!0)],4),be(w),be(h,{variant:"text",onClick:To(f.hide,["stop"]),class:"notification-text"},{default:Se(()=>t[0]||(t[0]=[Zt(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Ca,n.showToast]])]),_:1})}const RA=ir(CA,[["render",EA],["__scopeId","data-v-b0459ba8"]]);class LA{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Mc(RA);t.use(Nh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:i,message:m,level:f,duration:v,type:w="alert",logToConsole:h=!1,saveToHistory:g=!0}){this.mount(),h&&console.log(m?`${f.toUpperCase()} - ${m}`:`${f.toUpperCase()} - ${e}: ${i}`),g&&this.$store.commit("notifyAddHistory",{title:e,body:i,message:m,level:f}),this[t]({title:e,body:i,message:m,level:f,duration:v,type:w})}toast({title:t,body:e,message:i,level:m,duration:f,type:v}){this.$root.toast({title:t,body:e,message:i,level:m,type:v},f)}critical({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}caution({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}off({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}}const IA={install(n,t){const e=new LA(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},N0=100,D0=Jd({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=N0&&(n.notifyHistory.length=N0-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function F0(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function OA(n,t){const e={},i=new Set(Object.keys(n));for(const m of t)i.has(m)&&(e[m]=n[m]);return e}function P0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const i={};for(const m in n)i[m]=n[m];for(const m in t){const f=n[m],v=t[m];if(F0(f)&&F0(v)){i[m]=P0(f,v,e);continue}if(e&&Array.isArray(f)&&Array.isArray(v)){i[m]=e(f,v);continue}i[m]=v}return i}function Hs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Hs.cache.has(n))return Hs.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Hs.cache.set(n,t),t}Hs.cache=new Map;function NA(n){Ud(`Vuetify: ${n}`)}function H0(n,t){return e=>Object.keys(n).reduce((i,m)=>{const f=typeof n[m]=="object"&&n[m]!=null&&!Array.isArray(n[m])?n[m]:{type:n[m]};return e&&m in e?i[m]={...f,default:e[m]}:i[m]=f,t&&!i[m].source&&(i[m].source=t),i},{})}function B0(n,t){const e=Yd();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function DA(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B0("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Oh=Symbol.for("vuetify:defaults");function z0(){const n=Vd(Oh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function FA(n,t){var e,i;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((i=n.props)==null?void 0:i[Hs(t)])<"u"}function PA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:z0();const i=B0("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const m=Tc(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),f=new Proxy(n,{get(h,g){var a,l,s,c,o,u,p;const y=Reflect.get(h,g);return g==="class"||g==="style"?[(a=m.value)==null?void 0:a[g],y].filter(x=>x!=null):typeof g=="string"&&!FA(i.vnode,g)?((l=m.value)==null?void 0:l[g])!==void 0?(s=m.value)==null?void 0:s[g]:((o=(c=e.value)==null?void 0:c.global)==null?void 0:o[g])!==void 0?(p=(u=e.value)==null?void 0:u.global)==null?void 0:p[g]:y:y}}),v=qd();Gd(()=>{if(m.value){const h=Object.entries(m.value).filter(g=>{let[a]=g;return a.startsWith(a[0].toUpperCase())});v.value=h.length?Object.fromEntries(h):void 0}else v.value=void 0});function w(){const h=DA(Oh,i);Kd(Oh,Tc(()=>v.value?P0((h==null?void 0:h.value)??{},v.value):h==null?void 0:h.value))}return{props:f,provideSubDefaults:w}}function xl(n){if(n._setup=n._setup??n.setup,!n.name)return NA("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=H0(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return OA(e,t)},n.props._as=String,n.setup=function(e,i){const m=z0();if(!m.value)return n._setup(e,i);const{props:f,provideSubDefaults:v}=PA(e,e._as??n.name,m),w=n._setup(f,i);return v(),w}}return n}function HA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?xl:Wd)(t)}const BA=[String,Function,Object,Array],_l=H0({icon:{type:BA},tag:{type:String,required:!0}},"icon");HA()({name:"VComponentIcon",props:_l(),setup(n,t){let{slots:e}=t;return()=>{const i=n.icon;return be(n.tag,null,{default:()=>{var m;return[n.icon?be(i,null,null):(m=e.default)==null?void 0:m.call(e)]}})}}}),xl({name:"VSvgIcon",inheritAttrs:!1,props:_l(),setup(n,t){let{attrs:e}=t;return()=>be(n.tag,Cc(e,{style:null}),{default:()=>[be("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(i=>Array.isArray(i)?be("path",{d:i[0],"fill-opacity":i[1]},null):be("path",{d:i},null)):be("path",{d:n.icon},null)])]})}}),xl({name:"VLigatureIcon",props:_l(),setup(n){return()=>be(n.tag,null,{default:()=>[n.icon]})}});const zA=xl({name:"VClassIcon",props:_l(),setup(n){return()=>be(n.tag,{class:n.icon},null)}}),jA={component:n=>ms(zA,{...n,class:"mdi"})},Nh=Xd({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:vA}},icons:{defaultSet:"mdi",sets:{mdi:jA,...tA}}}),Dh=Oy({createApp:Mc,appOptions:{render(){return ms(jy,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(mA),n.use(D0),n.use(Nh),n.use(SA),n.use(IA,{store:D0})}}),aO=rn("g",Dh.bootstrap),lO=rn("m",Dh.mount),cO=rn("u",Dh.unmount)}}});
1425
+ `}},methods:{toast:function(n,t){this.noToastPaths.includes(window.location.pathname)||(t===void 0&&(t=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),t&&(this.timeout=setTimeout(()=>{this.hide()},t)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},MA={key:0,class:"text-subtitle-1 mr-1 notification-text"},EA={key:1,class:"text-body-2 notification-text"},RA={key:2,class:"text-body-2 notification-text"};function LA(n,t,e,i,m,f){const v=Ie("v-icon"),w=Ie("v-spacer"),h=Ie("v-btn"),g=Ie("v-sheet"),a=Ie("v-slide-y-transition");return kt(),on(a,null,{default:Se(()=>[Sa(be(g,{style:vs(f.toastStyle),class:"toast-notification",onClick:f.expand},{default:Se(()=>[be(v,{class:"mr-1 notification-text"},{default:Se(()=>[Zt(In(f.toastNotificationIcon),1)]),_:1}),Vn("div",{class:"toast-content",style:vs(f.contentStyle)},[n.toastNotification.title?(kt(),zi("span",MA,In(n.toastNotification.title)+": ",1)):qn("",!0),n.toastNotification.body?(kt(),zi("span",EA,In(n.toastNotification.body),1)):qn("",!0),n.toastNotification.message?(kt(),zi("span",RA,In(n.toastNotification.message),1)):qn("",!0)],4),be(w),be(h,{variant:"text",onClick:To(f.hide,["stop"]),class:"notification-text"},{default:Se(()=>t[0]||(t[0]=[Zt(" Dismiss ")])),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Ca,n.showToast]])]),_:1})}const IA=ir(TA,[["render",LA],["__scopeId","data-v-b0459ba8"]]);class OA{constructor(t={}){var e;this.$store=t.store,this.mounted=!1,this.$root=null,(e=window.$cosmosNotify)!=null&&e.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const t=Mc(IA);t.use(Nh);const e=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(e),this.$root=t.mount(e),this.mounted=!0}open({method:t,title:e,body:i,message:m,level:f,duration:v,type:w="alert",logToConsole:h=!1,saveToHistory:g=!0}){this.mount(),h&&console.log(m?`${f.toUpperCase()} - ${m}`:`${f.toUpperCase()} - ${e}: ${i}`),g&&this.$store.commit("notifyAddHistory",{title:e,body:i,message:m,level:f}),this[t]({title:e,body:i,message:m,level:f,duration:v,type:w})}toast({title:t,body:e,message:i,level:m,duration:f,type:v}){this.$root.toast({title:t,body:e,message:i,level:m,type:v},f)}critical({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}caution({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}off({title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:i,type:m,duration:f,logToConsole:v,saveToHistory:w})}}const NA={install(n,t){const e=new OA(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},F0=100,P0=Xd({state:{notifyHistory:[],namedWidgets:{}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory:(n,t)=>{n.notifyHistory.length>=F0&&(n.notifyHistory.length=F0-1),n.notifyHistory.unshift(t)},notifyClearHistory:n=>{n.notifyHistory=[]},setNamedWidget:(n,t)=>{Object.assign(n.namedWidgets,t)},clearNamedWidget:(n,t)=>{delete n.namedWidgets[t]}},modules:{}});function H0(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function DA(n,t){const e={},i=new Set(Object.keys(n));for(const m of t)i.has(m)&&(e[m]=n[m]);return e}function z0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const i={};for(const m in n)i[m]=n[m];for(const m in t){const f=n[m],v=t[m];if(H0(f)&&H0(v)){i[m]=z0(f,v,e);continue}if(e&&Array.isArray(f)&&Array.isArray(v)){i[m]=e(f,v);continue}i[m]=v}return i}function Hs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Hs.cache.has(n))return Hs.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Hs.cache.set(n,t),t}Hs.cache=new Map;function FA(n){Ud(`Vuetify: ${n}`)}function B0(n,t){return e=>Object.keys(n).reduce((i,m)=>{const f=typeof n[m]=="object"&&n[m]!=null&&!Array.isArray(n[m])?n[m]:{type:n[m]};return e&&m in e?i[m]={...f,default:e[m]}:i[m]=f,t&&!i[m].source&&(i[m].source=t),i},{})}function j0(n,t){const e=Yd();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function PA(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j0("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Oh=Symbol.for("vuetify:defaults");function W0(){const n=Vd(Oh);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function HA(n,t){var e,i;return typeof((e=n.props)==null?void 0:e[t])<"u"||typeof((i=n.props)==null?void 0:i[Hs(t)])<"u"}function zA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:W0();const i=j0("useDefaults");if(t=t??i.type.name??i.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const m=Tc(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),f=new Proxy(n,{get(h,g){var a,l,s,c,o,u,p;const y=Reflect.get(h,g);return g==="class"||g==="style"?[(a=m.value)==null?void 0:a[g],y].filter(x=>x!=null):typeof g=="string"&&!HA(i.vnode,g)?((l=m.value)==null?void 0:l[g])!==void 0?(s=m.value)==null?void 0:s[g]:((o=(c=e.value)==null?void 0:c.global)==null?void 0:o[g])!==void 0?(p=(u=e.value)==null?void 0:u.global)==null?void 0:p[g]:y:y}}),v=qd();Gd(()=>{if(m.value){const h=Object.entries(m.value).filter(g=>{let[a]=g;return a.startsWith(a[0].toUpperCase())});v.value=h.length?Object.fromEntries(h):void 0}else v.value=void 0});function w(){const h=PA(Oh,i);Kd(Oh,Tc(()=>v.value?z0((h==null?void 0:h.value)??{},v.value):h==null?void 0:h.value))}return{props:f,provideSubDefaults:w}}function xl(n){if(n._setup=n._setup??n.setup,!n.name)return FA("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=B0(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return DA(e,t)},n.props._as=String,n.setup=function(e,i){const m=W0();if(!m.value)return n._setup(e,i);const{props:f,provideSubDefaults:v}=zA(e,e._as??n.name,m),w=n._setup(f,i);return v(),w}}return n}function BA(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?xl:Wd)(t)}const jA=[String,Function,Object,Array],_l=B0({icon:{type:jA},tag:{type:String,required:!0}},"icon");BA()({name:"VComponentIcon",props:_l(),setup(n,t){let{slots:e}=t;return()=>{const i=n.icon;return be(n.tag,null,{default:()=>{var m;return[n.icon?be(i,null,null):(m=e.default)==null?void 0:m.call(e)]}})}}}),xl({name:"VSvgIcon",inheritAttrs:!1,props:_l(),setup(n,t){let{attrs:e}=t;return()=>be(n.tag,Cc(e,{style:null}),{default:()=>[be("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(i=>Array.isArray(i)?be("path",{d:i[0],"fill-opacity":i[1]},null):be("path",{d:i},null)):be("path",{d:n.icon},null)])]})}}),xl({name:"VLigatureIcon",props:_l(),setup(n){return()=>be(n.tag,null,{default:()=>[n.icon]})}});const WA=xl({name:"VClassIcon",props:_l(),setup(n){return()=>be(n.tag,{class:n.icon},null)}}),UA={component:n=>ms(WA,{...n,class:"mdi"})},Nh=ep({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:wA}},icons:{defaultSet:"mdi",sets:{mdi:UA,...nA}}}),Dh=Dy({createApp:Mc,appOptions:{render(){return ms(Uy,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(yA),n.use(P0),n.use(Nh),n.use(AA),n.use(NA,{store:P0})}}),cO=rn("f",Dh.bootstrap),uO=rn("m",Dh.mount),hO=rn("u",Dh.unmount)}}});