openc3-cosmos-tool-tlmgrapher 6.10.2 → 6.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tools/tlmgrapher/ArrayWidget-Bc-Awsbn-8d51a59b16aea7c26829.js +2 -0
- data/tools/tlmgrapher/{ArrayplotWidget-DDEd-jRJ-d743be1e20e87128bbe6.js → ArrayplotWidget-B9UGCr4--d7be23cf1a79828ecf6e.js} +1 -1
- data/tools/tlmgrapher/BarColumn-ClLBRGll-c5e9d80740dd64c85bef.js +1 -0
- data/tools/tlmgrapher/BlockWidget-CoQp-LZM-b31db07450208f93f1f1.js +2 -0
- data/tools/tlmgrapher/ButtonWidget-CTTwpFec-8940575490dd3c88f861.js +2 -0
- data/tools/tlmgrapher/CanvasWidget-jFarbJ3t-bcf3152948bad4e87030.js +1 -0
- data/tools/tlmgrapher/{CanvasdotWidget--awMOWyz-3a785daaffb3a09febea.js → CanvasdotWidget-BoyUcwiB-1eee2a5053b3a9a55b8c.js} +1 -1
- data/tools/tlmgrapher/CanvasimageWidget-DmyCSnuQ-6b52e4887e49277163bb.js +1 -0
- data/tools/tlmgrapher/CanvasimagevalueWidget-CmbngMqv-b6d5afc34151bdfadd21.js +1 -0
- data/tools/tlmgrapher/{CanvaslabelWidget-DoMplTTO-c5eeedf02c8b5155c203.js → CanvaslabelWidget-D8NzLKqi-241ebc3d5c79eec79919.js} +1 -1
- data/tools/tlmgrapher/CanvaslabelvalueWidget-DOybGI9D-5c9f42660dedfa2358e8.js +1 -0
- data/tools/tlmgrapher/{CanvaslineWidget-D7W1TIxm-4e9041cc8ddedd697614.js → CanvaslineWidget-D2NEei7j-36b8e59d259b17e3db4f.js} +1 -1
- data/tools/tlmgrapher/CanvaslinevalueWidget-Ctvv9owf-4f817ef45f25c4439994.js +1 -0
- data/tools/tlmgrapher/CheckbuttonWidget-CQeR0BMF-c848b6165a3c1b52d39b.js +1 -0
- data/tools/tlmgrapher/ComboboxWidget-4N-MagvN-138129febb58dc072895.js +1 -0
- data/tools/tlmgrapher/DateWidget-rYTjwUdb-17db617466686323190c.js +1 -0
- data/tools/tlmgrapher/DetailsDialog-p_vutijL-f9387e40287a4bc69707.js +1 -0
- data/tools/tlmgrapher/DynamicWidget-DEHWYr8i-a3dbac565705628c12a4.js +1 -0
- data/tools/tlmgrapher/FilechecksumWidget-gcmXxJHl-dd7b6b960c0ed08ed909.js +1 -0
- data/tools/tlmgrapher/FiledisplayWidget-CqM549A4-588b407242c201d19aa5.js +1 -0
- data/tools/tlmgrapher/FormatvalueWidget-BEwH0C7S-2841e2a07a91db5a938b.js +1 -0
- data/tools/tlmgrapher/Graph-CbjlChwf-2d00366d8e61fb1864e5.js +1 -0
- data/tools/tlmgrapher/{GraphWidget-BpkPpAbd-ee4cfe825439cfe5abc9.js → GraphWidget-CjxnC0Dc-747cbce99738726d1190.js} +1 -1
- data/tools/tlmgrapher/HorizontalWidget-Dt8bkM3k-7c1f71f13b46b6e89760.js +1 -0
- data/tools/tlmgrapher/{HorizontalboxWidget-CTomf_Iy-304104865c4011abe5fa.js → HorizontalboxWidget-CdAZ5Sa6-7ade30d265470ec663ac.js} +1 -1
- data/tools/tlmgrapher/HorizontallineWidget-CXZJTeU2-2d5022f53ea198c9182f.js +1 -0
- data/tools/tlmgrapher/{IframeWidget-DK7rbULe-6a2b6dfd46fc9bd53611.js → IframeWidget-CrcWiAVE-cf24944d92adf2b91254.js} +1 -1
- data/tools/tlmgrapher/{ImageLoader-C9rN_pSY-b304d9d37bc21329c021.js → ImageLoader-DPqax8yu-ee67cf8d10e6beafd43f.js} +1 -1
- data/tools/tlmgrapher/ImageviewerWidget-CTEl6iPg-1b9ed4d70ccc2a4fa353.js +1 -0
- data/tools/tlmgrapher/{LabelWidget-D71FfOSw-da0af6df7cdba0a19559.js → LabelWidget-CPqKGMx0-acefb9959306066d0019.js} +1 -1
- data/tools/tlmgrapher/LabelledWidget-BHYzRMFd-5ac79bf802fb21d75f53.js +1 -0
- data/tools/tlmgrapher/LabelprogressbarWidget-D9deeUo7-5fae5e004814c8ccf579.js +1 -0
- data/tools/tlmgrapher/LabelsparklineWidget-7mYre3CP-15d613901f8dc23e6fc3.js +1 -0
- data/tools/tlmgrapher/LabelvalueWidget-NLsD60n4-68f2818be31b977ded2c.js +1 -0
- data/tools/tlmgrapher/LabelvaluedescWidget-DXROG4Gs-efda8ef0e87f17348da2.js +1 -0
- data/tools/tlmgrapher/LabelvaluelimitsbarWidget-DqVqHF4W-71090b38e4787f21ec3d.js +1 -0
- data/tools/tlmgrapher/LabelvaluelimitscolumnWidget-BK6_31pC-96e48c41db2bac272eb8.js +1 -0
- data/tools/tlmgrapher/LabelvaluerangebarWidget-DR7C8gqw-eed75702c8ce812e8d4e.js +1 -0
- data/tools/tlmgrapher/Layout-B_Hgw3gd-cfff31ce85604a4b71b8.js +1 -0
- data/tools/tlmgrapher/LedWidget-CiAVs2tj-9572937ccbbb2b49e731.js +1 -0
- data/tools/tlmgrapher/LimitsBar-_UQG-M6e-026c7ccdd10ce0cb1d34.js +1 -0
- data/tools/tlmgrapher/LimitsbarWidget-CIwcOhC8-de745a82f23816e3a66e.js +1 -0
- data/tools/tlmgrapher/LimitscolorWidget-CGPfJwvT-b0672fead7a4b8dcec9d.js +1 -0
- data/tools/tlmgrapher/{LimitscolumnWidget-CjBy-CCI-1996f6e1f1f8ee93e0fd.js → LimitscolumnWidget-Bj_UPEC8-dc6748b4dfdbf28edb3b.js} +1 -1
- data/tools/tlmgrapher/LinegraphWidget-DccnHbWa-1c3a278b41004bc930ed.js +1 -0
- data/tools/tlmgrapher/MatrixbycolumnsWidget-U_NZ6aW--a189ed2265e2712e9d33.js +1 -0
- data/tools/tlmgrapher/ProgressbarWidget-D4JtVzyk-a9a725a5a63affafcc01.js +1 -0
- data/tools/tlmgrapher/RadiobuttonWidget-BUaW7pRx-17a1b745a13fdb3a020d.js +1 -0
- data/tools/tlmgrapher/RadiogroupWidget-NIv4CaUQ-0d5a4e38a84d08ab3ada.js +1 -0
- data/tools/tlmgrapher/RangebarWidget-1-CsFpcl-c8967622010d243c3cfd.js +1 -0
- data/tools/tlmgrapher/RollupWidget-ChasTJYP-922498fb955cb2b0e7db.js +1 -0
- data/tools/tlmgrapher/ScrollwindowWidget-Y2J758y6-26d7ac6099caa8f69e39.js +1 -0
- data/tools/tlmgrapher/SignalWidget-DFhHDicI-51bbf2ffbce66f066c28.js +1 -0
- data/tools/tlmgrapher/SpacerWidget-D4KojaGb-99e6d20f836601c8bb52.js +1 -0
- data/tools/tlmgrapher/SparklineWidget-DMHFzw8L-b2f521910f0672e0239c.js +1 -0
- data/tools/tlmgrapher/TabbookWidget-NVLYMdFG-64c9d545477335399b45.js +1 -0
- data/tools/tlmgrapher/TextboxWidget-CrMYPQIF-ea2d84aeb5c6eb716ede.js +1 -0
- data/tools/tlmgrapher/TextfieldWidget-DMBQwtnb-6773b9b3fc2c2dd3f579.js +1 -0
- data/tools/tlmgrapher/{TimeWidget-Dy8zpkC6-d80853a19127a39ee30f.js → TimeWidget-CWLJZ2bt-af7593bd6035e1d0b0a3.js} +1 -1
- data/tools/tlmgrapher/TitleWidget-V1FGI8l3-dea12e9291f16d7c23ef.js +1 -0
- data/tools/tlmgrapher/{TlmGrapher-c28d464418c530a5a18f.js → TlmGrapher-fbeac690834023a4dc7d.js} +1 -1
- data/tools/tlmgrapher/{VWidget-CBmUpKSV-bffe152e2846291c62d8.js → VWidget-rAFU-0vj-6bd02e68ecf80a892f67.js} +1 -1
- data/tools/tlmgrapher/ValueWidget-BI3uXmda-fd5d4b2c739743d862c7.js +1 -0
- data/tools/tlmgrapher/ValuelimitsbarWidget-BGSJLpw4-2eca335fc5c217d199fa.js +1 -0
- data/tools/tlmgrapher/ValuelimitscolumnWidget-CaNjHy4v-1215b02e923cb393b1eb.js +1 -0
- data/tools/tlmgrapher/ValuerangebarWidget-Do40-aaL-55e164d621e520a1e77c.js +1 -0
- data/tools/tlmgrapher/VerticalWidget-DZqghqIm-716c0527f945972b7437.js +1 -0
- data/tools/tlmgrapher/VerticalboxWidget-CQ__4FcS-b1e92a2d2fc44e243ac1.js +1 -0
- data/tools/tlmgrapher/Widget-6-Nvewdp-8961ac607ee82ce2dc98.js +1 -0
- data/tools/tlmgrapher/{main-b794f6a8104b31e8abdc.js → main-8ac68e6ba14de0720d30.js} +19 -19
- data/tools/tlmgrapher/main.js +1 -1
- metadata +71 -68
- data/tools/tlmgrapher/ArrayWidget-CR7Wpw3N-176887f853f7d6bb2a36.js +0 -2
- data/tools/tlmgrapher/BarColumn-XWs-3Cwb-c26e94070a684d396d72.js +0 -1
- data/tools/tlmgrapher/BlockWidget-CfFgdNSv-267f136d2a5b4dc039d9.js +0 -2
- data/tools/tlmgrapher/ButtonWidget-BaSvtElA-14645e244ce5c36e42ed.js +0 -2
- data/tools/tlmgrapher/CanvasWidget-DcwDi5Zk-7dd5d6aae08f54c7b819.js +0 -1
- data/tools/tlmgrapher/CanvasimageWidget-YP1pCtvb-27d1f2ec1b91ebbda99b.js +0 -1
- data/tools/tlmgrapher/CanvasimagevalueWidget-CjVHb2uj-35e6d2e9087dad569a1d.js +0 -1
- data/tools/tlmgrapher/CanvaslabelvalueWidget-Dyo_ogHn-a0ba678ec01e399ed7cc.js +0 -1
- data/tools/tlmgrapher/CanvaslinevalueWidget-BOZyJuLE-160e46ae27784014e69f.js +0 -1
- data/tools/tlmgrapher/CheckbuttonWidget-B1E4BC6v-c44eef21d25d430b589f.js +0 -1
- data/tools/tlmgrapher/ComboboxWidget-BExUBH57-46b621490a86870b0bf3.js +0 -1
- data/tools/tlmgrapher/DateWidget-_ZmPsi2l-5dfa47982ea359d4c95f.js +0 -1
- data/tools/tlmgrapher/DetailsDialog-Bq7SS7bc-b08d82f4412d051eaa50.js +0 -1
- data/tools/tlmgrapher/DynamicWidget-DHL7pbgW-fd40bfb8d009f46cb184.js +0 -1
- data/tools/tlmgrapher/FormatvalueWidget-4C0vrL2i-444ffcd5e77248e56b89.js +0 -1
- data/tools/tlmgrapher/Graph-B7KPo9Ul-3e82cd814ec6ffa46eb3.js +0 -1
- data/tools/tlmgrapher/HorizontalWidget-DbEQYjFC-be957fb5d0b8ede6553d.js +0 -1
- data/tools/tlmgrapher/HorizontallineWidget-B7xx7ofY-7cf2af508651e82de819.js +0 -1
- data/tools/tlmgrapher/ImageviewerWidget-6d6Kl3W_-bd7fbbb24a269953ad2b.js +0 -1
- data/tools/tlmgrapher/LabelledWidget-D2ir5kVU-4220940ca6fff3811eaf.js +0 -1
- data/tools/tlmgrapher/LabelprogressbarWidget-C4_YbROz-af1348f20f36fc17a452.js +0 -1
- data/tools/tlmgrapher/LabelsparklineWidget-CdZ_pM2B-38755849b3ee9a9464f1.js +0 -1
- data/tools/tlmgrapher/LabelvalueWidget-BS0EPY5h-ace628444c25b6872258.js +0 -1
- data/tools/tlmgrapher/LabelvaluedescWidget-Cpr8_Voq-3a4e5345caf9d7dc788e.js +0 -1
- data/tools/tlmgrapher/LabelvaluelimitsbarWidget-DTcYbEQS-3456f71ab4e6256da910.js +0 -1
- data/tools/tlmgrapher/LabelvaluelimitscolumnWidget-D0ltQ9Ta-6909187f129b9dde8c57.js +0 -1
- data/tools/tlmgrapher/LabelvaluerangebarWidget-O8IHjvHs-14f31ecb6c931aeb9fa4.js +0 -1
- data/tools/tlmgrapher/Layout-DW5yNlp7-708067ed3f7c527c043a.js +0 -1
- data/tools/tlmgrapher/LedWidget-DUvJ2v8k-8a33f47de1ed346752ed.js +0 -1
- data/tools/tlmgrapher/LimitsbarWidget-BehZv0-k-6de9e1e05ac2a5e6488e.js +0 -1
- data/tools/tlmgrapher/LimitscolorWidget-FXT0ZPPH-532322ea8170b9cb1ee3.js +0 -1
- data/tools/tlmgrapher/LinegraphWidget-lmu_tFKd-230c6a69f0169bc621ba.js +0 -1
- data/tools/tlmgrapher/MatrixbycolumnsWidget-CCF7rCkV-fcc589a3edc77ef908e1.js +0 -1
- data/tools/tlmgrapher/ProgressbarWidget-B5WN658S-29d45f87c22e23995b39.js +0 -1
- data/tools/tlmgrapher/RadiobuttonWidget-B_3nys46-3071468cc686a5c8f9a0.js +0 -1
- data/tools/tlmgrapher/RadiogroupWidget-BiMIL9li-a0f3b03b061a94b1545e.js +0 -1
- data/tools/tlmgrapher/RangebarWidget-Dn0GASdi-82fd8f392b9cf2969771.js +0 -1
- data/tools/tlmgrapher/RollupWidget-b62qcG5K-9a70ff49748658b3817b.js +0 -1
- data/tools/tlmgrapher/ScrollwindowWidget-Dn29gs-U-eec17a402fee2624423c.js +0 -1
- data/tools/tlmgrapher/SignalWidget-CLi6qask-d93f35aa7f06ca55449c.js +0 -1
- data/tools/tlmgrapher/SpacerWidget-BCA3gdap-3c796580921227fa147d.js +0 -1
- data/tools/tlmgrapher/SparklineWidget-D8mb4zLt-2838e4c7c52fda4bf4b6.js +0 -1
- data/tools/tlmgrapher/TabbookWidget-Bkt4g02d-c8abb71a69eec88aa938.js +0 -1
- data/tools/tlmgrapher/TextboxWidget-CR05wO-t-c5a73cf6ce7b53ecf053.js +0 -1
- data/tools/tlmgrapher/TextfieldWidget-Be_Pz2bF-1f54121643c0f4fb19fc.js +0 -1
- data/tools/tlmgrapher/TitleWidget-BcmxUDzM-65ad2782f8634576d5dc.js +0 -1
- data/tools/tlmgrapher/ValueWidget-BxWrHkYY-3c7bdbf03b9009a62497.js +0 -1
- data/tools/tlmgrapher/ValuelimitsbarWidget-BdY02gqc-ca64f9c5d5b10156f431.js +0 -1
- data/tools/tlmgrapher/ValuelimitscolumnWidget-CuJ6rqtC-3a7e0dd7a421717d20d4.js +0 -1
- data/tools/tlmgrapher/ValuerangebarWidget-C5rolGDi-62745c9b744c5038a9e3.js +0 -1
- data/tools/tlmgrapher/VerticalWidget-DsnEzKZ2-e29dfe83757fcc80eb21.js +0 -1
- data/tools/tlmgrapher/VerticalboxWidget-CzDgveBl-d03cc4541d28091a07cd.js +0 -1
- data/tools/tlmgrapher/Widget-VCl8Ts8s-8f3899ca470428dbaa15.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(gr,it){"use strict";var xt,lo,Rn,Rt,ht,ri,mr,Ap,Sp,Xs,Ra,Sl,So,Rr,ii,_l,Zs,$l,Tl,_p,$p,Tp,hu,Mp,Ip,Ep,Rp,Lp,du,Op,Np,Dp,pu,Fp,Pp;return{setters:[Tt=>{xt=Tt.resolveComponent,lo=Tt.createBlock,Rn=Tt.openBlock,Rt=Tt.withCtx,ht=Tt.createVNode,ri=Tt.createElementBlock,mr=Tt.createElementVNode,Ap=Tt.useCssVars,Sp=Tt.defineAsyncComponent,Xs=Tt.h,Ra=Tt.normalizeStyle,Sl=Tt.Fragment,So=Tt.createCommentVNode,Rr=Tt.createTextVNode,ii=Tt.toDisplayString,_l=Tt.withKeys,Zs=Tt.withModifiers,$l=Tt.withDirectives,Tl=Tt.vShow,_p=Tt.defineComponent,$p=Tt.warn,Tp=Tt.inject,hu=Tt.computed,Mp=Tt.shallowRef,Ip=Tt.watchEffect,Ep=Tt.normalizeClass,Rp=Tt.getCurrentInstance,Lp=Tt.provide,du=Tt.createApp,Op=Tt.mergeProps},Tt=>{Np=Tt.createRouter,Dp=Tt.createWebHistory},Tt=>{pu=Tt.getMountedApps},Tt=>{Fp=Tt.createStore},Tt=>{Pp=Tt.createVuetify}],execute:function(){gr({$:qp,b:gd,c:wM,f:Or,l:_n,y:er});var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wp(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),e.push.apply(e,r)}return e}function gs(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Wp(Object(e),!0).forEach(function(r){sw(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Wp(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function sw(n,t,e){return(t=function(r){var f=function(g,m){if(ms(g)!=="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var h=w.call(g,m);if(ms(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}(r,"string");return ms(f)==="symbol"?f:String(f)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function ms(n){return ms=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},ms(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 r,f=String(e),g=f.length,m=-1,w="",h=f.charCodeAt(0);++m<g;)(r=f.charCodeAt(m))!=0?w+=r>=1&&r<=31||r==127||m==0&&r>=48&&r<=57||m==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":m==0&&g==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(m):f.charAt(m):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(Tt);var aw={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function lw(n){if(ms(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=gs(gs({},aw),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(ms(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:cw.bind(null,t,e),mount:uw.bind(null,t,e),unmount:dw.bind(null,t,e),update:hw.bind(null,t,e)}}function cw(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function uw(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,g){return typeof f.appOptions=="function"?f.appOptions(g):Promise.resolve(gs({},f.appOptions))}(n,e).then(function(f){var g;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(g=document.querySelector(f.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(f.el))}else(g=f.el).id||(g.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(g.id));else{var m="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(m)),(g=document.getElementById(m))||((g=document.createElement("div")).id=m,document.body.appendChild(g))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!g.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",g.appendChild(w)}r.domEl=g,f.render||f.template||!n.rootComponent||(f.render=function(d){return d(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return gs(gs({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(r.vueInstance=n.createApp(f),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return r.root=r.vueInstance.mount(f.el),t[e.name]=r,r.vueInstance});r.root=r.vueInstance.mount(f.el)}else if(r.vueInstance=new n.Vue(f),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return t[e.name]=r,r.vueInstance});return t[e.name]=r,r.vueInstance})})}function hw(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=gs(gs({},n.appOptions.data||{}),e),g=r.root||r.vueInstance;for(var m in f)g[m]=f[m]})}function dw(n,t,e){return Promise.resolve().then(function(){var r=t[e.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const pw=gr("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),fw={};function gw(n,t){const e=xt("router-view"),r=xt("v-app");return Rn(),lo(r,{id:"innerapp"},{default:Rt(()=>[ht(e)]),_:1})}const mw=pw(fw,[["render",gw]]),KN="modulepreload",GN=function(n){return"/"+n},YN={},ot=function(t,e,r){let f=Promise.resolve();function g(m){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=m,window.dispatchEvent(w),!w.defaultPrevented)throw m}return f.then(m=>{for(const w of m||[])w.status==="rejected"&&g(w.reason);return t().catch(g)})},Bp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/tlmgrapher/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(Bp)},qo=gr("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),vw="/icons/customIcons.svg",fu={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return vw+"#"+this.icon}}},zp=()=>{Ap(n=>({v259824e2:n.color}))},Hp=fu.setup;fu.setup=Hp?(n,t)=>(zp(),Hp(n,t)):zp;const yw={class:"cosmos-custom-icon"},bw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},ww=["href"];function xw(n,t,e,r,f,g){return Rn(),ri("span",yw,[(Rn(),ri("svg",bw,[mr("use",{href:g.iconSrc},null,8,ww)]))])}const Cw=qo(fu,[["render",xw],["__scopeId","data-v-4b6f1199"]]),Ml=6e4,gu=36e5,kw=1e3,jp=Symbol.for("constructDateFrom");function er(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&jp in n?n[jp](t):n instanceof Date?new n.constructor(t):new Date(t)}function _n(n,t){return er(t||n,n)}let Aw={};function Qs(){return Aw}function Ko(n,t){var e,r,f,g;const m=Qs(),w=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??m.weekStartsOn??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,h=_n(n,t==null?void 0:t.in),d=h.getDay(),a=(d<w?7:0)+d-w;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Js(n,t){return Ko(n,{...t,weekStartsOn:1})}function Up(n,t){const e=_n(n,void 0),r=e.getFullYear(),f=er(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const g=Js(f),m=er(e,0);m.setFullYear(r,0,4),m.setHours(0,0,0,0);const w=Js(m);return e.getTime()>=g.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function Il(n){const t=_n(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 Sw(n,...t){const e=er.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function Vp(n,t){const e=_n(n,void 0);return e.setHours(0,0,0,0),e}function _w(n,t,e){const[r,f]=Sw(void 0,n,t),g=Vp(r),m=Vp(f),w=+g-Il(g),h=+m-Il(m);return Math.round((w-h)/864e5)}function $w(n,t){const e=Up(n),r=er(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Js(r)}function Tw(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function qp(n){return!(!Tw(n)&&typeof n!="number"||isNaN(+_n(n)))}function Mw(n,t){const e=_n(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Iw={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"}},Ew=(n,t,e)=>{let r;const f=Iw[n];return typeof f=="string"?r=f:t===1?r=f.one:r=f.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function mu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Rw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ow={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nw={date:mu({formats:Rw,defaultWidth:"full"}),time:mu({formats:Lw,defaultWidth:"full"}),dateTime:mu({formats:Ow,defaultWidth:"full"})},Dw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fw=(n,t,e,r)=>Dw[n];function La(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const m=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):m;f=n.formattingValues[w]||n.formattingValues[m]}else{const m=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[w]||n.values[m]}const g=n.argumentCallback?n.argumentCallback(t):t;return f[g]}}const Pw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ww={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bw={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"]},zw={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"]},Hw={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"}},jw={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),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Vw={ordinalNumber:Uw,era:La({values:Pw,defaultWidth:"wide"}),quarter:La({values:Ww,defaultWidth:"wide",argumentCallback:n=>n-1}),month:La({values:Bw,defaultWidth:"wide"}),day:La({values:zw,defaultWidth:"wide"}),dayPeriod:La({values:Hw,defaultWidth:"wide",formattingValues:jw,defaultFormattingWidth:"wide"})};function Oa(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],g=t.match(f);if(!g)return null;const m=g[0],w=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?Kw(w,l=>l.test(m)):qw(w,l=>l.test(m));let d;d=n.valueCallback?n.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const a=t.slice(m.length);return{value:d,rest:a}}}function qw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Kw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Gw(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],g=t.match(n.parsePattern);if(!g)return null;let m=n.valueCallback?n.valueCallback(g[0]):g[0];m=e.valueCallback?e.valueCallback(m):m;const w=t.slice(f.length);return{value:m,rest:w}}}const Yw=/^(\d+)(th|st|nd|rd)?/i,Xw=/\d+/i,Zw={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},Qw={any:[/^b/i,/^(a|c)/i]},Jw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ex={any:[/1/i,/2/i,/3/i,/4/i]},tx={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},nx={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]},rx={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},ix={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]},ox={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},sx={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}},ax={ordinalNumber:Gw({matchPattern:Yw,parsePattern:Xw,valueCallback:n=>parseInt(n,10)}),era:Oa({matchPatterns:Zw,defaultMatchWidth:"wide",parsePatterns:Qw,defaultParseWidth:"any"}),quarter:Oa({matchPatterns:Jw,defaultMatchWidth:"wide",parsePatterns:ex,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Oa({matchPatterns:tx,defaultMatchWidth:"wide",parsePatterns:nx,defaultParseWidth:"any"}),day:Oa({matchPatterns:rx,defaultMatchWidth:"wide",parsePatterns:ix,defaultParseWidth:"any"}),dayPeriod:Oa({matchPatterns:ox,defaultMatchWidth:"any",parsePatterns:sx,defaultParseWidth:"any"})},Kp={code:"en-US",formatDistance:Ew,formatLong:Nw,formatRelative:Fw,localize:Vw,match:ax,options:{weekStartsOn:0,firstWeekContainsDate:1}};function lx(n,t){const e=_n(n,void 0);return _w(e,Mw(e))+1}function Gp(n,t){const e=_n(n,void 0),r=+Js(e)-+$w(e);return Math.round(r/6048e5)+1}function vu(n,t){var e,r,f,g;const m=_n(n,t==null?void 0:t.in),w=m.getFullYear(),h=Qs(),d=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((g=(f=h.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,a=er((t==null?void 0:t.in)||n,0);a.setFullYear(w+1,0,d),a.setHours(0,0,0,0);const l=Ko(a,t),u=er((t==null?void 0:t.in)||n,0);u.setFullYear(w,0,d),u.setHours(0,0,0,0);const c=Ko(u,t);return+m>=+l?w+1:+m>=+c?w:w-1}function cx(n,t){var e,r,f,g;const m=Qs(),w=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??m.firstWeekContainsDate??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,h=vu(n,t),d=er((t==null?void 0:t.in)||n,0);return d.setFullYear(h,0,w),d.setHours(0,0,0,0),Ko(d,t)}function Yp(n,t){const e=_n(n,t==null?void 0:t.in),r=+Ko(e,t)-+cx(e,t);return Math.round(r/6048e5)+1}function an(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Go={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return an(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):an(e+1,2)},d(n,t){return an(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 an(n.getHours()%12||12,t.length)},H(n,t){return an(n.getHours(),t.length)},m(n,t){return an(n.getMinutes(),t.length)},s(n,t){return an(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return an(f,t.length)}},ea={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xp={G:function(n,t,e){const r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const r=n.getFullYear(),f=r>0?r:1-r;return e.ordinalNumber(f,{unit:"year"})}return Go.y(n,t)},Y:function(n,t,e,r){const f=vu(n,r),g=f>0?f:1-f;if(t==="YY"){const m=g%100;return an(m,2)}return t==="Yo"?e.ordinalNumber(g,{unit:"year"}):an(g,t.length)},R:function(n,t){const e=Up(n);return an(e,t.length)},u:function(n,t){const e=n.getFullYear();return an(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return an(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return an(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return Go.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return an(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const f=Yp(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):an(f,t.length)},I:function(n,t,e){const r=Gp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):an(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Go.d(n,t)},D:function(n,t,e){const r=lx(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):an(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(g);case"ee":return an(g,2);case"eo":return e.ordinalNumber(g,{unit:"day"});case"eee":return e.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(f,{width:"short",context:"formatting"});case"eeee":default:return e.day(f,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const f=n.getDay(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(g);case"cc":return an(g,t.length);case"co":return e.ordinalNumber(g,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return an(f,t.length);case"io":return e.ordinalNumber(f,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let f;switch(r===12?f=ea.noon:r===0?f=ea.midnight:f=r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,t,e){const r=n.getHours();let f;switch(r>=17?f=ea.evening:r>=12?f=ea.afternoon:r>=4?f=ea.morning:f=ea.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return Go.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Go.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Go.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Go.s(n,t)},S:function(n,t){return Go.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Qp(r);case"XXXX":case"XX":return vs(r);case"XXXXX":case"XXX":default:return vs(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Qp(r);case"xxxx":case"xx":return vs(r);case"xxxxx":case"xxx":default:return vs(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Zp(r,":");case"OOOO":default:return"GMT"+vs(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Zp(r,":");case"zzzz":default:return"GMT"+vs(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return an(r,t.length)},T:function(n,t,e){return an(+n,t.length)}};function Zp(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+an(g,2)}function Qp(n,t){return n%60===0?(n>0?"-":"+")+an(Math.abs(n)/60,2):vs(n,t)}function vs(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=an(Math.trunc(r/60),2),g=an(r%60,2);return e+f+t+g}const Jp=(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"})}},ef=(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"})}},ux=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return Jp(n,t);let g;switch(r){case"P":g=t.dateTime({width:"short"});break;case"PP":g=t.dateTime({width:"medium"});break;case"PPP":g=t.dateTime({width:"long"});break;case"PPPP":default:g=t.dateTime({width:"full"});break}return g.replace("{{date}}",Jp(r,t)).replace("{{time}}",ef(f,t))},yu={p:ef,P:ux},hx=/^D+$/,dx=/^Y+$/,px=["D","DD","YY","YYYY"];function tf(n){return hx.test(n)}function nf(n){return dx.test(n)}function bu(n,t,e){const r=fx(n,t,e);if(console.warn(r),px.includes(n))throw new RangeError(r)}function fx(n,t,e){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const gx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vx=/^'([^]*?)'?$/,yx=/''/g,bx=/[a-zA-Z]/;function ys(n,t,e){var r,f,g,m,w,h,d,a;const l=Qs(),u=(e==null?void 0:e.locale)??l.locale??Kp,c=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??l.firstWeekContainsDate??((m=(g=l.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,i=(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=(d=l.locale)==null?void 0:d.options)==null?void 0:a.weekStartsOn)??0,s=_n(n,e==null?void 0:e.in);if(!qp(s))throw new RangeError("Invalid time value");let p=t.match(mx).map(x=>{const R=x[0];if(R==="p"||R==="P"){const _=yu[R];return _(x,u.formatLong)}return x}).join("").match(gx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const R=x[0];if(R==="'")return{isToken:!1,value:wx(x)};if(Xp[R])return{isToken:!0,value:x};if(R.match(bx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(p=u.localize.preprocessor(s,p));const b={firstWeekContainsDate:c,weekStartsOn:i,locale:u};return p.map(x=>{if(!x.isToken)return x.value;const R=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&nf(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&tf(R))&&bu(R,t,String(n));const _=Xp[R[0]];return _(s,R,u.localize,b)}).join("")}function wx(n){const t=n.match(vx);return t?t[1].replace(yx,"'"):n}var Yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function El(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var rf={exports:{}},of;function xx(){return of||(of=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(a,l,u){if(typeof a!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),f.modules[a]||(f.payloads[a]=u,f.modules[a]=null)};f.modules={},f.payloads={};var g=function(a,l,u){if(typeof l=="string"){var c=h(a,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],s=0,p=l.length;s<p;++s){var b=h(a,l[s]);if(b==null&&m.original)return;i.push(b)}return u&&u.apply(null,i)||!0}},m=function(a,l){var u=g("",a,l);return u==null&&m.original?m.original.apply(this,arguments):u},w=function(a,l){if(l.indexOf("!")!==-1){var u=l.split("!");return w(a,u[0])+"!"+w(a,u[1])}if(l.charAt(0)=="."){var c=a.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var u=f.modules[l];if(!u){if(u=f.payloads[l],typeof u=="function"){var c={},i={id:l,uri:"",exports:c,packaged:!0},s=function(b,x){return g(l,b,x)},p=u(s,c,i);c=p||i.exports,f.modules[l]=c,delete f.payloads[l]}u=f.modules[l]=c||u}return u};function d(a){var l=r;r[a]||(r[a]={}),l=r[a],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(m.original=l.require,l.require=m,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function g(m,w,h){Object.defineProperty(m,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||g(String.prototype,"startsWith",function(m,w){return w=w||0,this.lastIndexOf(m,w)===w}),String.prototype.endsWith||g(String.prototype,"endsWith",function(m,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=m.length;var d=h.indexOf(m,w);return d!==-1&&d===w}),String.prototype.repeat||g(String.prototype,"repeat",function(m){for(var w="",h=this;m>0;)m&1&&(w+=h),(m>>=1)&&(h+=h);return w}),String.prototype.includes||g(String.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Object.assign||(Object.assign=function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(m),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(a){w[a]=d[a]})}return w}),Object.values||(Object.values=function(m){return Object.keys(m).map(function(w){return m[w]})}),Array.prototype.find||g(Array.prototype,"find",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(m.call(h,a,d,this))return a}}),Array.prototype.findIndex||g(Array.prototype,"findIndex",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(m.call(h,a,d,this))return d}}),Array.prototype.includes||g(Array.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Array.prototype.fill||g(Array.prototype,"fill",function(m){for(var w=this,h=w.length>>>0,d=arguments[1],a=d>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);l<i;)w[l]=m,l++;return w}),Array.of||g(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,f){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,f){r.deepCopy=function g(m){if(typeof m!="object"||!m)return m;var w;if(Array.isArray(m)){w=[];for(var h=0;h<m.length;h++)w[h]=g(m[h]);return w}if(Object.prototype.toString.call(m)!=="[object Object]")return m;w={};for(var h in m)w[h]=g(m[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var g=/^\s\s*/,m=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(g,"")},r.stringTrimRight=function(w){return w.replace(m,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,a=w.length;d<a;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(a){d.push({offset:arguments[arguments.length-2],length:a.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(d,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},r.delayedCall=function(w,h){var d=null,a=function(){d=null,w()},l=function(u){d==null&&(d=setTimeout(a,u||h))};return l.delay=function(u){d&&clearTimeout(d),d=setTimeout(a,u||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,f){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var g=typeof navigator=="object"?navigator:{},m=(/mac|win|linux/i.exec(g.platform)||["other"])[0].toLowerCase(),w=g.userAgent||"",h=g.appName||"";r.isWin=m=="win",r.isMac=m=="mac",r.isLinux=m=="linux",r.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]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,f){var g=e("./useragent"),m="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,s){if(typeof c=="string"&&c){var p=document.createTextNode(c);return i&&i.appendChild(p),p}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var R=u(c[x],i,s);R&&b.push(R)}return b}var _=document.createElement(c[0]),k=c[1],C=1;k&&typeof k=="object"&&!Array.isArray(k)&&(C=2);for(var x=C;x<c.length;x++)u(c[x],_,s);return C==2&&Object.keys(k).forEach(function(L){var D=k[L];L==="class"?_.className=Array.isArray(D)?D.join(" "):D:typeof D=="function"||L=="value"||L[0]=="$"?_[L]=D:L==="ref"?s&&(s[D]=_):L==="style"?typeof D=="string"&&(_.style.cssText=D):D!=null&&_.setAttribute(L,D)}),i&&i.appendChild(_),_},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||m,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var i=c?c.ownerDocument:document;return i.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var i=(u.className+"").split(/\s+/g);return i.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var i=u.className.split(/\s+/g);;){var s=i.indexOf(c);if(s==-1)break;i.splice(s,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),s=!0;;){var p=i.indexOf(c);if(p==-1)break;s=!1,i.splice(p,1)}return s&&i.push(c),u.className=i.join(" "),s},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,s;if(c=c||document,s=c.querySelectorAll("style")){for(;i<s.length;)if(s[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var w,h=[];r.useStrictCSP=function(u){w=u,u==!1?d():h||(h=[])};function d(){var u=h;h=null,u&&u.forEach(function(c){a(c[0],c[1])})}function a(u,c,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([u,c])}if(!w){var s=i;!i||!i.getRootNode?s=document:(s=i.getRootNode(),(!s||s==i)&&(s=document));var p=s.ownerDocument||s;if(c&&r.hasCssString(c,s))return null;c&&(u+=`
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(sr,nt){"use strict";var xt,lo,Rn,Rt,ht,ri,mr,Ap,Sp,Xs,Ra,Sl,So,Rr,ii,_l,Zs,$l,Tl,_p,$p,Tp,hu,Mp,Ip,Ep,Rp,Lp,du,Op,Np,Dp,pu,Fp,Pp;return{setters:[Tt=>{xt=Tt.resolveComponent,lo=Tt.createBlock,Rn=Tt.openBlock,Rt=Tt.withCtx,ht=Tt.createVNode,ri=Tt.createElementBlock,mr=Tt.createElementVNode,Ap=Tt.useCssVars,Sp=Tt.defineAsyncComponent,Xs=Tt.h,Ra=Tt.normalizeStyle,Sl=Tt.Fragment,So=Tt.createCommentVNode,Rr=Tt.createTextVNode,ii=Tt.toDisplayString,_l=Tt.withKeys,Zs=Tt.withModifiers,$l=Tt.withDirectives,Tl=Tt.vShow,_p=Tt.defineComponent,$p=Tt.warn,Tp=Tt.inject,hu=Tt.computed,Mp=Tt.shallowRef,Ip=Tt.watchEffect,Ep=Tt.normalizeClass,Rp=Tt.getCurrentInstance,Lp=Tt.provide,du=Tt.createApp,Op=Tt.mergeProps},Tt=>{Np=Tt.createRouter,Dp=Tt.createWebHistory},Tt=>{pu=Tt.getMountedApps},Tt=>{Fp=Tt.createStore},Tt=>{Pp=Tt.createVuetify}],execute:function(){sr({$:qp,c:wM,e:gd,f:Or,l:_n,y:er});var Tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wp(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),e.push.apply(e,r)}return e}function gs(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Wp(Object(e),!0).forEach(function(r){sw(n,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Wp(Object(e)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r))})}return n}function sw(n,t,e){return(t=function(r){var f=function(g,m){if(ms(g)!=="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var h=w.call(g,m);if(ms(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(g)}(r,"string");return ms(f)==="symbol"?f:String(f)}(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function ms(n){return ms=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},ms(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 r,f=String(e),g=f.length,m=-1,w="",h=f.charCodeAt(0);++m<g;)(r=f.charCodeAt(m))!=0?w+=r>=1&&r<=31||r==127||m==0&&r>=48&&r<=57||m==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":m==0&&g==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+f.charAt(m):f.charAt(m):w+="�";return w};n.CSS||(n.CSS={}),n.CSS.escape=t})(Tt);var aw={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function lw(n){if(ms(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=gs(gs({},aw),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(ms(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var e={};return{bootstrap:cw.bind(null,t,e),mount:uw.bind(null,t,e),unmount:dw.bind(null,t,e),update:hw.bind(null,t,e)}}function cw(n){return n.loadRootComponent?n.loadRootComponent().then(function(t){return n.rootComponent=t}):Promise.resolve()}function uw(n,t,e){var r={};return Promise.resolve().then(function(){return function(f,g){return typeof f.appOptions=="function"?f.appOptions(g):Promise.resolve(gs({},f.appOptions))}(n,e).then(function(f){var g;if(e.domElement&&!f.el&&(f.el=e.domElement),f.el)if(typeof f.el=="string"){if(!(g=document.querySelector(f.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(f.el))}else(g=f.el).id||(g.id="single-spa-application:".concat(e.name)),f.el="#".concat(CSS.escape(g.id));else{var m="single-spa-application:".concat(e.name);f.el="#".concat(CSS.escape(m)),(g=document.getElementById(m))||((g=document.createElement("div")).id=m,document.body.appendChild(g))}if(!n.replaceMode&&(f.el=f.el+" .single-spa-container",!g.querySelector(".single-spa-container"))){var w=document.createElement("div");w.className="single-spa-container",g.appendChild(w)}r.domEl=g,f.render||f.template||!n.rootComponent||(f.render=function(d){return d(n.rootComponent)}),f.data||(f.data={});var h=f.data;if(f.data=function(){return gs(gs({},typeof h=="function"?h.call(this,this):h),e)},n.createApp){if(r.vueInstance=n.createApp(f),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return r.root=r.vueInstance.mount(f.el),t[e.name]=r,r.vueInstance});r.root=r.vueInstance.mount(f.el)}else if(r.vueInstance=new n.Vue(f),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,e)).then(function(){return t[e.name]=r,r.vueInstance});return t[e.name]=r,r.vueInstance})})}function hw(n,t,e){return Promise.resolve().then(function(){var r=t[e.name],f=gs(gs({},n.appOptions.data||{}),e),g=r.root||r.vueInstance;for(var m in f)g[m]=f[m]})}function dw(n,t,e){return Promise.resolve().then(function(){var r=t[e.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const pw=sr("_",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),fw={};function gw(n,t){const e=xt("router-view"),r=xt("v-app");return Rn(),lo(r,{id:"innerapp"},{default:Rt(()=>[ht(e)]),_:1})}const mw=pw(fw,[["render",gw]]),KN="modulepreload",GN=function(n){return"/"+n},YN={},rt=function(t,e,r){let f=Promise.resolve();function g(m){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=m,window.dispatchEvent(w),!w.defaultPrevented)throw m}return f.then(m=>{for(const w of m||[])w.status==="rejected"&&g(w.reason);return t().catch(g)})},Bp=function(n){var t;!n.name!=="NotFound"&&(n.path=`/tools/tlmgrapher/${n.path.replace(/^\//,"")}`),(t=n.children)==null||t.forEach(Bp)},qo=sr("d",(n,t)=>{const e=n.__vccOpts||n;for(const[r,f]of t)e[r]=f;return e}),vw="/icons/customIcons.svg",fu={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return vw+"#"+this.icon}}},zp=()=>{Ap(n=>({v6d77344f:n.color}))},Hp=fu.setup;fu.setup=Hp?(n,t)=>(zp(),Hp(n,t)):zp;const yw={class:"cosmos-custom-icon"},bw={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},ww=["href"];function xw(n,t,e,r,f,g){return Rn(),ri("span",yw,[(Rn(),ri("svg",bw,[mr("use",{href:g.iconSrc},null,8,ww)]))])}const Cw=qo(fu,[["render",xw],["__scopeId","data-v-c00c8204"]]),Ml=6e4,gu=36e5,kw=1e3,jp=Symbol.for("constructDateFrom");function er(n,t){return typeof n=="function"?n(t):n&&typeof n=="object"&&jp in n?n[jp](t):n instanceof Date?new n.constructor(t):new Date(t)}function _n(n,t){return er(t||n,n)}let Aw={};function Qs(){return Aw}function Ko(n,t){var e,r,f,g;const m=Qs(),w=(t==null?void 0:t.weekStartsOn)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.weekStartsOn)??m.weekStartsOn??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,h=_n(n,t==null?void 0:t.in),d=h.getDay(),a=(d<w?7:0)+d-w;return h.setDate(h.getDate()-a),h.setHours(0,0,0,0),h}function Js(n,t){return Ko(n,{...t,weekStartsOn:1})}function Up(n,t){const e=_n(n,void 0),r=e.getFullYear(),f=er(e,0);f.setFullYear(r+1,0,4),f.setHours(0,0,0,0);const g=Js(f),m=er(e,0);m.setFullYear(r,0,4),m.setHours(0,0,0,0);const w=Js(m);return e.getTime()>=g.getTime()?r+1:e.getTime()>=w.getTime()?r:r-1}function Il(n){const t=_n(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 Sw(n,...t){const e=er.bind(null,t.find(r=>typeof r=="object"));return t.map(e)}function Vp(n,t){const e=_n(n,void 0);return e.setHours(0,0,0,0),e}function _w(n,t,e){const[r,f]=Sw(void 0,n,t),g=Vp(r),m=Vp(f),w=+g-Il(g),h=+m-Il(m);return Math.round((w-h)/864e5)}function $w(n,t){const e=Up(n),r=er(n,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),Js(r)}function Tw(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function qp(n){return!(!Tw(n)&&typeof n!="number"||isNaN(+_n(n)))}function Mw(n,t){const e=_n(n,void 0);return e.setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e}const Iw={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"}},Ew=(n,t,e)=>{let r;const f=Iw[n];return typeof f=="string"?r=f:t===1?r=f.one:r=f.other.replace("{{count}}",t.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+r:r+" ago":r};function mu(n){return(t={})=>{const e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Rw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ow={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nw={date:mu({formats:Rw,defaultWidth:"full"}),time:mu({formats:Lw,defaultWidth:"full"}),dateTime:mu({formats:Ow,defaultWidth:"full"})},Dw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fw=(n,t,e,r)=>Dw[n];function La(n){return(t,e)=>{const r=e!=null&&e.context?String(e.context):"standalone";let f;if(r==="formatting"&&n.formattingValues){const m=n.defaultFormattingWidth||n.defaultWidth,w=e!=null&&e.width?String(e.width):m;f=n.formattingValues[w]||n.formattingValues[m]}else{const m=n.defaultWidth,w=e!=null&&e.width?String(e.width):n.defaultWidth;f=n.values[w]||n.values[m]}const g=n.argumentCallback?n.argumentCallback(t):t;return f[g]}}const Pw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ww={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bw={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"]},zw={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"]},Hw={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"}},jw={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),r=e%100;if(r>20||r<10)switch(r%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},Vw={ordinalNumber:Uw,era:La({values:Pw,defaultWidth:"wide"}),quarter:La({values:Ww,defaultWidth:"wide",argumentCallback:n=>n-1}),month:La({values:Bw,defaultWidth:"wide"}),day:La({values:zw,defaultWidth:"wide"}),dayPeriod:La({values:Hw,defaultWidth:"wide",formattingValues:jw,defaultFormattingWidth:"wide"})};function Oa(n){return(t,e={})=>{const r=e.width,f=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],g=t.match(f);if(!g)return null;const m=g[0],w=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(w)?Kw(w,l=>l.test(m)):qw(w,l=>l.test(m));let d;d=n.valueCallback?n.valueCallback(h):h,d=e.valueCallback?e.valueCallback(d):d;const a=t.slice(m.length);return{value:d,rest:a}}}function qw(n,t){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Kw(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Gw(n){return(t,e={})=>{const r=t.match(n.matchPattern);if(!r)return null;const f=r[0],g=t.match(n.parsePattern);if(!g)return null;let m=n.valueCallback?n.valueCallback(g[0]):g[0];m=e.valueCallback?e.valueCallback(m):m;const w=t.slice(f.length);return{value:m,rest:w}}}const Yw=/^(\d+)(th|st|nd|rd)?/i,Xw=/\d+/i,Zw={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},Qw={any:[/^b/i,/^(a|c)/i]},Jw={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ex={any:[/1/i,/2/i,/3/i,/4/i]},tx={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},nx={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]},rx={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},ix={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]},ox={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},sx={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}},ax={ordinalNumber:Gw({matchPattern:Yw,parsePattern:Xw,valueCallback:n=>parseInt(n,10)}),era:Oa({matchPatterns:Zw,defaultMatchWidth:"wide",parsePatterns:Qw,defaultParseWidth:"any"}),quarter:Oa({matchPatterns:Jw,defaultMatchWidth:"wide",parsePatterns:ex,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Oa({matchPatterns:tx,defaultMatchWidth:"wide",parsePatterns:nx,defaultParseWidth:"any"}),day:Oa({matchPatterns:rx,defaultMatchWidth:"wide",parsePatterns:ix,defaultParseWidth:"any"}),dayPeriod:Oa({matchPatterns:ox,defaultMatchWidth:"any",parsePatterns:sx,defaultParseWidth:"any"})},Kp={code:"en-US",formatDistance:Ew,formatLong:Nw,formatRelative:Fw,localize:Vw,match:ax,options:{weekStartsOn:0,firstWeekContainsDate:1}};function lx(n,t){const e=_n(n,void 0);return _w(e,Mw(e))+1}function Gp(n,t){const e=_n(n,void 0),r=+Js(e)-+$w(e);return Math.round(r/6048e5)+1}function vu(n,t){var e,r,f,g;const m=_n(n,t==null?void 0:t.in),w=m.getFullYear(),h=Qs(),d=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((g=(f=h.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,a=er((t==null?void 0:t.in)||n,0);a.setFullYear(w+1,0,d),a.setHours(0,0,0,0);const l=Ko(a,t),u=er((t==null?void 0:t.in)||n,0);u.setFullYear(w,0,d),u.setHours(0,0,0,0);const c=Ko(u,t);return+m>=+l?w+1:+m>=+c?w:w-1}function cx(n,t){var e,r,f,g;const m=Qs(),w=(t==null?void 0:t.firstWeekContainsDate)??((r=(e=t==null?void 0:t.locale)==null?void 0:e.options)==null?void 0:r.firstWeekContainsDate)??m.firstWeekContainsDate??((g=(f=m.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,h=vu(n,t),d=er((t==null?void 0:t.in)||n,0);return d.setFullYear(h,0,w),d.setHours(0,0,0,0),Ko(d,t)}function Yp(n,t){const e=_n(n,t==null?void 0:t.in),r=+Ko(e,t)-+cx(e,t);return Math.round(r/6048e5)+1}function an(n,t){const e=n<0?"-":"",r=Math.abs(n).toString().padStart(t,"0");return e+r}const Go={y(n,t){const e=n.getFullYear(),r=e>0?e:1-e;return an(t==="yy"?r%100:r,t.length)},M(n,t){const e=n.getMonth();return t==="M"?String(e+1):an(e+1,2)},d(n,t){return an(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 an(n.getHours()%12||12,t.length)},H(n,t){return an(n.getHours(),t.length)},m(n,t){return an(n.getMinutes(),t.length)},s(n,t){return an(n.getSeconds(),t.length)},S(n,t){const e=t.length,r=n.getMilliseconds(),f=Math.trunc(r*Math.pow(10,e-3));return an(f,t.length)}},ea={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Xp={G:function(n,t,e){const r=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){const r=n.getFullYear(),f=r>0?r:1-r;return e.ordinalNumber(f,{unit:"year"})}return Go.y(n,t)},Y:function(n,t,e,r){const f=vu(n,r),g=f>0?f:1-f;if(t==="YY"){const m=g%100;return an(m,2)}return t==="Yo"?e.ordinalNumber(g,{unit:"year"}):an(g,t.length)},R:function(n,t){const e=Up(n);return an(e,t.length)},u:function(n,t){const e=n.getFullYear();return an(e,t.length)},Q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return an(r,2);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,t,e){const r=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return an(r,2);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,t,e){const r=n.getMonth();switch(t){case"M":case"MM":return Go.M(n,t);case"Mo":return e.ordinalNumber(r+1,{unit:"month"});case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})}},L:function(n,t,e){const r=n.getMonth();switch(t){case"L":return String(r+1);case"LL":return an(r+1,2);case"Lo":return e.ordinalNumber(r+1,{unit:"month"});case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})}},w:function(n,t,e,r){const f=Yp(n,r);return t==="wo"?e.ordinalNumber(f,{unit:"week"}):an(f,t.length)},I:function(n,t,e){const r=Gp(n);return t==="Io"?e.ordinalNumber(r,{unit:"week"}):an(r,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Go.d(n,t)},D:function(n,t,e){const r=lx(n);return t==="Do"?e.ordinalNumber(r,{unit:"dayOfYear"}):an(r,t.length)},E:function(n,t,e){const r=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})}},e:function(n,t,e,r){const f=n.getDay(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(g);case"ee":return an(g,2);case"eo":return e.ordinalNumber(g,{unit:"day"});case"eee":return e.day(f,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(f,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(f,{width:"short",context:"formatting"});case"eeee":default:return e.day(f,{width:"wide",context:"formatting"})}},c:function(n,t,e,r){const f=n.getDay(),g=(f-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(g);case"cc":return an(g,t.length);case"co":return e.ordinalNumber(g,{unit:"day"});case"ccc":return e.day(f,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(f,{width:"narrow",context:"standalone"});case"cccccc":return e.day(f,{width:"short",context:"standalone"});case"cccc":default:return e.day(f,{width:"wide",context:"standalone"})}},i:function(n,t,e){const r=n.getDay(),f=r===0?7:r;switch(t){case"i":return String(f);case"ii":return an(f,t.length);case"io":return e.ordinalNumber(f,{unit:"day"});case"iii":return e.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(r,{width:"short",context:"formatting"});case"iiii":default:return e.day(r,{width:"wide",context:"formatting"})}},a:function(n,t,e){const r=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,t,e){const r=n.getHours();let f;switch(r===12?f=ea.noon:r===0?f=ea.midnight:f=r/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},B:function(n,t,e){const r=n.getHours();let f;switch(r>=17?f=ea.evening:r>=12?f=ea.afternoon:r>=4?f=ea.morning:f=ea.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(f,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(f,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(f,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let r=n.getHours()%12;return r===0&&(r=12),e.ordinalNumber(r,{unit:"hour"})}return Go.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Go.H(n,t)},K:function(n,t,e){const r=n.getHours()%12;return t==="Ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},k:function(n,t,e){let r=n.getHours();return r===0&&(r=24),t==="ko"?e.ordinalNumber(r,{unit:"hour"}):an(r,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Go.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Go.s(n,t)},S:function(n,t){return Go.S(n,t)},X:function(n,t,e){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Qp(r);case"XXXX":case"XX":return vs(r);case"XXXXX":case"XXX":default:return vs(r,":")}},x:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"x":return Qp(r);case"xxxx":case"xx":return vs(r);case"xxxxx":case"xxx":default:return vs(r,":")}},O:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Zp(r,":");case"OOOO":default:return"GMT"+vs(r,":")}},z:function(n,t,e){const r=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Zp(r,":");case"zzzz":default:return"GMT"+vs(r,":")}},t:function(n,t,e){const r=Math.trunc(+n/1e3);return an(r,t.length)},T:function(n,t,e){return an(+n,t.length)}};function Zp(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.trunc(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+an(g,2)}function Qp(n,t){return n%60===0?(n>0?"-":"+")+an(Math.abs(n)/60,2):vs(n,t)}function vs(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=an(Math.trunc(r/60),2),g=an(r%60,2);return e+f+t+g}const Jp=(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"})}},ef=(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"})}},ux=(n,t)=>{const e=n.match(/(P+)(p+)?/)||[],r=e[1],f=e[2];if(!f)return Jp(n,t);let g;switch(r){case"P":g=t.dateTime({width:"short"});break;case"PP":g=t.dateTime({width:"medium"});break;case"PPP":g=t.dateTime({width:"long"});break;case"PPPP":default:g=t.dateTime({width:"full"});break}return g.replace("{{date}}",Jp(r,t)).replace("{{time}}",ef(f,t))},yu={p:ef,P:ux},hx=/^D+$/,dx=/^Y+$/,px=["D","DD","YY","YYYY"];function tf(n){return hx.test(n)}function nf(n){return dx.test(n)}function bu(n,t,e){const r=fx(n,t,e);if(console.warn(r),px.includes(n))throw new RangeError(r)}function fx(n,t,e){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${r} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const gx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vx=/^'([^]*?)'?$/,yx=/''/g,bx=/[a-zA-Z]/;function ys(n,t,e){var r,f,g,m,w,h,d,a;const l=Qs(),u=(e==null?void 0:e.locale)??l.locale??Kp,c=(e==null?void 0:e.firstWeekContainsDate)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.firstWeekContainsDate)??l.firstWeekContainsDate??((m=(g=l.locale)==null?void 0:g.options)==null?void 0:m.firstWeekContainsDate)??1,i=(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=(d=l.locale)==null?void 0:d.options)==null?void 0:a.weekStartsOn)??0,s=_n(n,e==null?void 0:e.in);if(!qp(s))throw new RangeError("Invalid time value");let p=t.match(mx).map(x=>{const R=x[0];if(R==="p"||R==="P"){const _=yu[R];return _(x,u.formatLong)}return x}).join("").match(gx).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const R=x[0];if(R==="'")return{isToken:!1,value:wx(x)};if(Xp[R])return{isToken:!0,value:x};if(R.match(bx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(p=u.localize.preprocessor(s,p));const b={firstWeekContainsDate:c,weekStartsOn:i,locale:u};return p.map(x=>{if(!x.isToken)return x.value;const R=x.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&nf(R)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&tf(R))&&bu(R,t,String(n));const _=Xp[R[0]];return _(s,R,u.localize,b)}).join("")}function wx(n){const t=n.match(vx);return t?t[1].replace(yx,"'"):n}var Yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function El(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var rf={exports:{}},of;function xx(){return of||(of=1,function(n,t){(function(){var e="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var f=function(a,l,u){if(typeof a!="string"){f.original?f.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=l),f.modules[a]||(f.payloads[a]=u,f.modules[a]=null)};f.modules={},f.payloads={};var g=function(a,l,u){if(typeof l=="string"){var c=h(a,l);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var i=[],s=0,p=l.length;s<p;++s){var b=h(a,l[s]);if(b==null&&m.original)return;i.push(b)}return u&&u.apply(null,i)||!0}},m=function(a,l){var u=g("",a,l);return u==null&&m.original?m.original.apply(this,arguments):u},w=function(a,l){if(l.indexOf("!")!==-1){var u=l.split("!");return w(a,u[0])+"!"+w(a,u[1])}if(l.charAt(0)=="."){var c=a.split("/").slice(0,-1).join("/");for(l=c+"/"+l;l.indexOf(".")!==-1&&i!=l;){var i=l;l=l.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return l},h=function(a,l){l=w(a,l);var u=f.modules[l];if(!u){if(u=f.payloads[l],typeof u=="function"){var c={},i={id:l,uri:"",exports:c,packaged:!0},s=function(b,x){return g(l,b,x)},p=u(s,c,i);c=p||i.exports,f.modules[l]=c,delete f.payloads[l]}u=f.modules[l]=c||u}return u};function d(a){var l=r;r[a]||(r[a]={}),l=r[a],(!l.define||!l.define.packaged)&&(f.original=l.define,l.define=f,l.define.packaged=!0),(!l.require||!l.require.packaged)&&(m.original=l.require,l.require=m,l.require.packaged=!0)}d(e)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(e,r,f){function g(m,w,h){Object.defineProperty(m,w,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||g(String.prototype,"startsWith",function(m,w){return w=w||0,this.lastIndexOf(m,w)===w}),String.prototype.endsWith||g(String.prototype,"endsWith",function(m,w){var h=this;(w===void 0||w>h.length)&&(w=h.length),w-=m.length;var d=h.indexOf(m,w);return d!==-1&&d===w}),String.prototype.repeat||g(String.prototype,"repeat",function(m){for(var w="",h=this;m>0;)m&1&&(w+=h),(m>>=1)&&(h+=h);return w}),String.prototype.includes||g(String.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Object.assign||(Object.assign=function(m){if(m==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(m),h=1;h<arguments.length;h++){var d=arguments[h];d!=null&&Object.keys(d).forEach(function(a){w[a]=d[a]})}return w}),Object.values||(Object.values=function(m){return Object.keys(m).map(function(w){return m[w]})}),Array.prototype.find||g(Array.prototype,"find",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(m.call(h,a,d,this))return a}}),Array.prototype.findIndex||g(Array.prototype,"findIndex",function(m){for(var w=this.length,h=arguments[1],d=0;d<w;d++){var a=this[d];if(m.call(h,a,d,this))return d}}),Array.prototype.includes||g(Array.prototype,"includes",function(m,w){return this.indexOf(m,w)!=-1}),Array.prototype.fill||g(Array.prototype,"fill",function(m){for(var w=this,h=w.length>>>0,d=arguments[1],a=d>>0,l=a<0?Math.max(h+a,0):Math.min(a,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);l<i;)w[l]=m,l++;return w}),Array.of||g(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,r,f){e("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(e,r,f){r.deepCopy=function g(m){if(typeof m!="object"||!m)return m;var w;if(Array.isArray(m)){w=[];for(var h=0;h<m.length;h++)w[h]=g(m[h]);return w}if(Object.prototype.toString.call(m)!=="[object Object]")return m;w={};for(var h in m)w[h]=g(m[h]);return w}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,r,f){r.last=function(w){return w[w.length-1]},r.stringReverse=function(w){return w.split("").reverse().join("")},r.stringRepeat=function(w,h){for(var d="";h>0;)h&1&&(d+=w),(h>>=1)&&(w+=w);return d};var g=/^\s\s*/,m=/\s\s*$/;r.stringTrimLeft=function(w){return w.replace(g,"")},r.stringTrimRight=function(w){return w.replace(m,"")},r.copyObject=function(w){var h={};for(var d in w)h[d]=w[d];return h},r.copyArray=function(w){for(var h=[],d=0,a=w.length;d<a;d++)w[d]&&typeof w[d]=="object"?h[d]=this.copyObject(w[d]):h[d]=w[d];return h},r.deepCopy=e("./deep_copy").deepCopy,r.arrayToMap=function(w){for(var h={},d=0;d<w.length;d++)h[w[d]]=1;return h},r.createMap=function(w){var h=Object.create(null);for(var d in w)h[d]=w[d];return h},r.arrayRemove=function(w,h){for(var d=0;d<=w.length;d++)h===w[d]&&w.splice(d,1)},r.escapeRegExp=function(w){return w.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(w){return(""+w).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(w,h){var d=[];return w.replace(h,function(a){d.push({offset:arguments[arguments.length-2],length:a.length})}),d},r.deferredCall=function(w){var h=null,d=function(){h=null,w()},a=function(l){return a.cancel(),h=setTimeout(d,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},r.delayedCall=function(w,h){var d=null,a=function(){d=null,w()},l=function(u){d==null&&(d=setTimeout(a,u||h))};return l.delay=function(u){d&&clearTimeout(d),d=setTimeout(a,u||h)},l.schedule=l,l.call=function(){this.cancel(),w()},l.cancel=function(){d&&clearTimeout(d),d=null},l.isPending=function(){return d},l},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(w,h,d){return d&&w.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,r,f){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var g=typeof navigator=="object"?navigator:{},m=(/mac|win|linux/i.exec(g.platform)||["other"])[0].toLowerCase(),w=g.userAgent||"",h=g.appName||"";r.isWin=m=="win",r.isMac=m=="mac",r.isLinux=m=="linux",r.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]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=w.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(w.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(w.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(w.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(w.split(" Edge/")[1])||void 0,r.isAIR=w.indexOf("AdobeAIR")>=0,r.isAndroid=w.indexOf("Android")>=0,r.isChromeOS=w.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(w)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,f){var g=e("./useragent"),m="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,s){if(typeof c=="string"&&c){var p=document.createTextNode(c);return i&&i.appendChild(p),p}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var b=[],x=0;x<c.length;x++){var R=u(c[x],i,s);R&&b.push(R)}return b}var _=document.createElement(c[0]),k=c[1],C=1;k&&typeof k=="object"&&!Array.isArray(k)&&(C=2);for(var x=C;x<c.length;x++)u(c[x],_,s);return C==2&&Object.keys(k).forEach(function(L){var D=k[L];L==="class"?_.className=Array.isArray(D)?D.join(" "):D:typeof D=="function"||L=="value"||L[0]=="$"?_[L]=D:L==="ref"?s&&(s[D]=_):L==="style"?typeof D=="string"&&(_.style.cssText=D):D!=null&&_.setAttribute(L,D)}),i&&i.appendChild(_),_},r.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},r.createElement=function(u,c){return document.createElementNS?document.createElementNS(c||m,u):document.createElement(u)},r.removeChildren=function(u){u.innerHTML=""},r.createTextNode=function(u,c){var i=c?c.ownerDocument:document;return i.createTextNode(u)},r.createFragment=function(u){var c=u?u.ownerDocument:document;return c.createDocumentFragment()},r.hasCssClass=function(u,c){var i=(u.className+"").split(/\s+/g);return i.indexOf(c)!==-1},r.addCssClass=function(u,c){r.hasCssClass(u,c)||(u.className+=" "+c)},r.removeCssClass=function(u,c){for(var i=u.className.split(/\s+/g);;){var s=i.indexOf(c);if(s==-1)break;i.splice(s,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),s=!0;;){var p=i.indexOf(c);if(p==-1)break;s=!1,i.splice(p,1)}return s&&i.push(c),u.className=i.join(" "),s},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,s;if(c=c||document,s=c.querySelectorAll("style")){for(;i<s.length;)if(s[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var w,h=[];r.useStrictCSP=function(u){w=u,u==!1?d():h||(h=[])};function d(){var u=h;h=null,u&&u.forEach(function(c){a(c[0],c[1])})}function a(u,c,i){if(!(typeof document>"u")){if(h){if(i)d();else if(i===!1)return h.push([u,c])}if(!w){var s=i;!i||!i.getRootNode?s=document:(s=i.getRootNode(),(!s||s==i)&&(s=document));var p=s.ownerDocument||s;if(c&&r.hasCssString(c,s))return null;c&&(u+=`
|
|
2
2
|
/*# sourceURL=ace/css/`+c+" */");var b=r.createElement("style");b.appendChild(p.createTextNode(u)),c&&(b.id=c),s==p&&(s=r.getDocumentHead(p)),s.insertBefore(b,s.firstChild)}}}if(r.importCssString=a,r.importCssStylsheet=function(u,c){r.buildDom(["link",{rel:"stylesheet",href:u}],r.getDocumentHead(c))},r.$fixPositionBug=function(u){var c=u.getBoundingClientRect();if(u.style.left){var i=parseFloat(u.style.left),s=+c.left;Math.abs(i-s)>1&&(u.style.left=2*i-s+"px")}if(u.style.right){var i=parseFloat(u.style.right),s=window.innerWidth-c.right;Math.abs(i-s)>1&&(u.style.right=2*i-s+"px")}if(u.style.top){var i=parseFloat(u.style.top),s=+c.top;Math.abs(i-s)>1&&(u.style.top=2*i-s+"px")}if(u.style.bottom){var i=parseFloat(u.style.bottom),s=window.innerHeight-c.bottom;Math.abs(i-s)>1&&(u.style.bottom=2*i-s+"px")}},r.scrollbarWidth=function(u){var c=r.createElement("ace_inner");c.style.width="100%",c.style.minWidth="0px",c.style.height="200px",c.style.display="block";var i=r.createElement("ace_outer"),s=i.style;s.position="absolute",s.left="-10000px",s.overflow="hidden",s.width="200px",s.minWidth="0px",s.height="150px",s.display="block",i.appendChild(c);var p=u&&u.documentElement||document&&document.documentElement;if(!p)return 0;p.appendChild(i);var b=c.offsetWidth;s.overflow="scroll";var x=c.offsetWidth;return b===x&&(x=i.clientWidth),p.removeChild(i),b-x},r.computedStyle=function(u,c){return window.getComputedStyle(u,"")||{}},r.setStyle=function(u,c,i){u[c]!==i&&(u[c]=i)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=g.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,g.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");r.HI_DPI&&l.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!g.isEdge&&typeof l.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),l=null}r.HAS_CSS_TRANSFORMS?r.translate=function(u,c,i){u.style.transform="translate("+Math.round(c)+"px, "+Math.round(i)+"px)"}:r.translate=function(u,c,i){u.style.top=Math.round(i)+"px",u.style.left=Math.round(c)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,r,f){/*
|
|
3
3
|
* based on code from:
|
|
4
4
|
*
|
|
@@ -982,7 +982,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(gr,i
|
|
|
982
982
|
border-left-color: transparent!important;
|
|
983
983
|
top: -5px;
|
|
984
984
|
}
|
|
985
|
-
`,"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,r,f){e("./loader_build")(r);var g=e("./lib/dom"),m=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,d=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"),r.config=e("./config"),r.edit=function(u,c){if(typeof u=="string"){var i=u;if(u=document.getElementById(i),!u)throw new Error("ace.edit can't find div #"+i)}if(u&&u.env&&u.env.editor instanceof w)return u.env.editor;var s="";if(u&&/input|textarea/i.test(u.tagName)){var p=u;s=p.value,u=g.createElement("pre"),p.parentNode.replaceChild(u,p)}else u&&(s=u.textContent,u.innerHTML="");var b=r.createEditSession(s),x=new w(new a(u),b,c),R={document:b,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},r.createEditSession=function(u,c){var i=new h(u,c);return i.setUndoManager(new d),i},r.Range=m,r.Editor=w,r.EditSession=h,r.UndoManager=d,r.VirtualRenderer=a;var l=r.config.version;r.version=l}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=e);for(var f in e)e.hasOwnProperty(f)&&(r.ace[f]=e[f]);r.ace.default=r.ace,n&&(n.exports=r.ace)})}()}(rf)),rf.exports}xx();var sf={exports:{}},af;function Cx(){return af||(af=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var g=e("../lib/oop"),m=e("./text_highlight_rules").TextHighlightRules,w=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},d=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},a=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},u=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},i=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},s=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},p=function(){var b="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",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",_="$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":_,"support.function":b,"invalid.deprecated":"debugger"},"identifier"),C=`\\\\(?: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})*})`,L={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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:C},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:C},{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(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},s,{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\\?(?:"+C+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},u,c,w,h,i,d,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(D,E,I){var z=D[2]=="-"||D[2]=="~"?"indentedHeredoc":"heredoc",P=D.split(this.splitRegex);return I.push(z,P[3]),[{type:"constant",value:P[1]},{type:"string",value:P[2]},{type:"support.class",value:P[3]},{type:"string",value:P[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(D,E,I){return D===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(D,E,I){return D===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(D,E){return E[0]==="heredoc"||E[0]==="indentedHeredoc"?E[0]:D}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(D,E,I){return this.next="",D=="}"&&I.length>1&&I[1]!="start"&&(I.shift(),this.next=I.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"string"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(D,E,I){return I.length&&D===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(D,E,I){return I.length&&D===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(D,E,I){return I.length&&D===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(D,E,I){return I.length&&D===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(D,E,I){return I.length&&D[0]===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};g.inherits(p,m),r.RubyHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var g=e("../range").Range,m=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new g(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(m.prototype),r.MatchingBraceOutdent=m}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,r,f){var g=e("../../lib/oop"),m=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,d=r.FoldMode=function(){};g.inherits(d,m),(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,u){var c=a.getLine(u),i=this.foldingStartMarker.test(c),s=this.foldingStopMarker.test(c);if(i&&!s){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(u,p.index+2).type==="keyword")return"start"}else if(!p[3]||a.getTokenAt(u,p.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!s||i&&s)return"";var p=c.match(this.foldingStopMarker);if(p[3]==="end"){if(a.getTokenAt(u,p.index+1).type==="keyword")return"end"}else if(!p[1]||a.getTokenAt(u,p.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,l,u){var c=a.doc.getLine(u),i=this.foldingStartMarker.exec(c);if(i)return i[1]||i[3]?this.rubyBlock(a,u,i.index+2):this.openingBracketBlock(a,"{",u,i.index);var i=this.foldingStopMarker.exec(c);if(i)return i[3]==="end"&&a.getTokenAt(u,i.index+1).type==="keyword"?this.rubyBlock(a,u,i.index+1):i[1]==="=end"&&a.getTokenAt(u,i.index+1).type==="comment.multiline"?this.rubyBlock(a,u,i.index+1):this.closingBracketBlock(a,"}",u,i.index+i[0].length)},this.rubyBlock=function(a,l,u,c){var i=new h(a,l,u),s=i.getCurrentToken();if(!(!s||s.type!="keyword"&&s.type!="comment.multiline")){var p=s.value,b=a.getLine(l);switch(s.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);if(!x.test(b))return;var R=this.indentKeywords[p];break;case"when":if(/\sthen\s/.test(b))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");if(!x.test(b))return;var R=1;break;default:var R=this.indentKeywords[p]}var _=[p];if(R){var k=R===-1?a.getLine(l-1).length:a.getLine(l).length,C=l,L=[];if(L.push(i.getCurrentTokenRange()),i.step=R===-1?i.stepBackward:i.stepForward,s.type=="comment.multiline"){for(;s=i.step();)if(s.type==="comment.multiline"){if(R==1){if(k=6,s.value=="=end")break}else if(s.value=="=begin")break}}else for(;s=i.step();){var D=!1;if(s.type==="keyword"){var E=R*this.indentKeywords[s.value];switch(b=a.getLine(i.getCurrentTokenRow()),s.value){case"do":for(var I=i.$tokenIndex-1;I>=0;I--){var z=i.$rowTokens[I];if(z&&(z.value=="while"||z.value=="until"||z.value=="for")){E=0;break}}break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");(!x.test(b)||p=="case")&&(E=0,D=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);x.test(b)||(E=0,D=!0);break;case"when":(/\sthen\s/.test(b)||p=="case")&&(E=0,D=!0)}if(E>0)_.unshift(s.value);else if(E<=0&&D===!1){if(_.shift(),!_.length&&((p=="while"||p=="until"||p=="for")&&s.value!="do"||s.value=="do"&&R==-1&&E!=0||s.value!="do"))break;E===0&&_.unshift(s.value)}}}if(!s)return null;if(c)return L.push(i.getCurrentTokenRange()),L;var l=i.getCurrentTokenRow();if(R===-1){if(s.type==="comment.multiline")var P=6;else var P=a.getLine(l).length;return new w(l,P,C-1,k)}return new w(C,k,l-1,a.getLine(l-1).length)}}}}).call(d.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,r,f){var g=e("../lib/oop"),m=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=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};g.inherits(l,m),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,u),b=p.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),R=c.match(/^\s*(class|def|module)\s.*$/),_=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||R||_||k)&&(s+=i)}return s},this.checkOutdent=function(u,c,i){return/^\s+(end|else|rescue|ensure)$/.test(c+i)||this.$outdent.checkOutdent(c,i)},this.autoOutdent=function(u,c,i){var s=c.getLine(i);if(/}/.test(s))return this.$outdent.autoOutdent(c,i);var p=this.$getIndent(s),b=c.getLine(i-1),x=this.$getIndent(b),R=c.getTabString();x.length<=p.length&&p.slice(-R.length)==R&&c.remove(new d(i,p.length-R.length,i,p.length))},this.getMatching=function(u,c,i){if(c==null){var s=u.selection.lead;i=s.column,c=s.row}var p=u.getTokenAt(c,i);if(p&&p.value in this.indentKeywords)return this.foldingRules.rubyBlock(u,c,i,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),r.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(e){n&&(n.exports=e)})}()}(sf)),sf.exports}Cx();var lf={exports:{}},cf;function kx(){return cf||(cf=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var g=e("../lib/oop"),m=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",d="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":d,keyword:h},"identifier"),u="[uU]?",c="[rR]",i="[fF]",s="(?:[rR][fF]|[fF][rR])",p="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",_="(?:"+p+"|"+b+"|"+x+"|"+R+")",k="(?:[eE][+-]?\\d+)",C="(?:\\.\\d+)",L="(?:\\d+)",D="(?:(?:"+L+"?"+C+")|(?:"+L+"\\.))",E="(?:(?:"+D+"|"+L+")"+k+")",I="(?:"+E+"|"+D+")",z=`\\\\(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:u+'"{3}',next:"qqstring3"},{token:"string",regex:u+'"(?=.)',next:"qqstring"},{token:"string",regex:u+"'{3}",next:"qstring3"},{token:"string",regex:u+"'(?=.)",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:i+'"{3}',next:"fqqstring3"},{token:"string",regex:i+'"(?=.)',next:"fqqstring"},{token:"string",regex:i+"'{3}",next:"fqstring3"},{token:"string",regex:i+"'(?=.)",next:"fqstring"},{token:"string",regex:s+'"{3}',next:"rfqqstring3"},{token:"string",regex:s+'"(?=.)',next:"rfqqstring"},{token:"string",regex:s+"'{3}",next:"rfqstring3"},{token:"string",regex:s+"'(?=.)",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:z},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:z},{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:z},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+I+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:I},{token:"constant.numeric",regex:_+"[lL]\\b"},{token:"constant.numeric",regex:_+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};g.inherits(w,m),r.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,f){var g=e("../../lib/oop"),m=e("./fold_mode").FoldMode,w=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};g.inherits(w,m),(function(){this.getFoldWidgetRange=function(h,d,a){var l=h.getLine(a),u=l.match(this.foldingStartMarker);if(u)return u[1]?this.openingBracketBlock(h,u[1],a,u.index):u[2]?this.indentationBlock(h,a,u.index+u[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,r,f){var g=e("../lib/oop"),m=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,d=e("../range").Range,a=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};g.inherits(a,m),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,u),b=p.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(s+=i)}return s};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(u,c,i){if(i!==`\r
|
|
985
|
+
`,"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,r,f){e("./loader_build")(r);var g=e("./lib/dom"),m=e("./range").Range,w=e("./editor").Editor,h=e("./edit_session").EditSession,d=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"),r.config=e("./config"),r.edit=function(u,c){if(typeof u=="string"){var i=u;if(u=document.getElementById(i),!u)throw new Error("ace.edit can't find div #"+i)}if(u&&u.env&&u.env.editor instanceof w)return u.env.editor;var s="";if(u&&/input|textarea/i.test(u.tagName)){var p=u;s=p.value,u=g.createElement("pre"),p.parentNode.replaceChild(u,p)}else u&&(s=u.textContent,u.innerHTML="");var b=r.createEditSession(s),x=new w(new a(u),b,c),R={document:b,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},r.createEditSession=function(u,c){var i=new h(u,c);return i.setUndoManager(new d),i},r.Range=m,r.Editor=w,r.EditSession=h,r.UndoManager=d,r.VirtualRenderer=a;var l=r.config.version;r.version=l}),function(){ace.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=ace.define);var r=function(){return this}();!r&&typeof window<"u"&&(r=window),!r&&typeof self<"u"&&(r=self),r.ace||(r.ace=e);for(var f in e)e.hasOwnProperty(f)&&(r.ace[f]=e[f]);r.ace.default=r.ace,n&&(n.exports=r.ace)})}()}(rf)),rf.exports}var XN=sr("b",xx()),sf={exports:{}},af;function Cx(){return af||(af=1,function(n,t){ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var g=e("../lib/oop"),m=e("./text_highlight_rules").TextHighlightRules,w=r.constantOtherSymbol={token:"constant.other.symbol.ruby",regex:"[:](?:[A-Za-z_]|[@$](?=[a-zA-Z0-9_]))[a-zA-Z0-9_]*[!=?]?"};r.qString={token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},r.qqString={token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},r.tString={token:"string",regex:"[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"};var h=r.constantNumericHex={token:"constant.numeric",regex:"0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_(?=[0-9a-fA-F]))*\\b"},d=r.constantNumericBinary={token:"constant.numeric",regex:/\b(0[bB][01](?:[01]|_(?=[01]))*)\b/},a=r.constantNumericDecimal={token:"constant.numeric",regex:/\b(0[dD](?:[1-9](?:[\d]|_(?=[\d]))*|0))\b/},l=r.constantNumericOctal={token:"constant.numeric",regex:/\b(0[oO]?(?:[1-7](?:[0-7]|_(?=[0-7]))*|0))\b/},u=r.constantNumericRational={token:"constant.numeric",regex:/\b([\d]+(?:[./][\d]+)?ri?)\b/},c=r.constantNumericComplex={token:"constant.numeric",regex:/\b([\d]i)\b/},i=r.constantNumericFloat={token:"constant.numeric",regex:"[+-]?\\d(?:\\d|_(?=\\d))*(?:(?:\\.\\d(?:\\d|_(?=\\d))*)?(?:[eE][+-]?\\d+)?)?i?\\b"},s=r.instanceVariable={token:"variable.instance",regex:"@{1,2}[a-zA-Z_\\d]+"},p=function(){var b="abort|Array|assert|assert_equal|assert_not_equal|assert_same|assert_not_same|assert_nil|assert_not_nil|assert_match|assert_no_match|assert_in_delta|assert_throws|assert_raise|assert_nothing_raised|assert_instance_of|assert_kind_of|assert_respond_to|assert_operator|assert_send|assert_difference|assert_no_difference|assert_recognizes|assert_generates|assert_response|assert_redirected_to|assert_template|assert_select|assert_select_email|assert_select_rjs|assert_select_encoded|css_select|at_exit|attr|attr_writer|attr_reader|attr_accessor|attr_accessible|autoload|binding|block_given?|callcc|caller|catch|chomp|chomp!|chop|chop!|defined?|delete_via_redirect|eval|exec|exit|exit!|fail|Float|flunk|follow_redirect!|fork|form_for|form_tag|format|gets|global_variables|gsub|gsub!|get_via_redirect|host!|https?|https!|include|Integer|lambda|link_to|link_to_unless_current|link_to_function|link_to_remote|load|local_variables|loop|open|open_session|p|print|printf|proc|putc|puts|post_via_redirect|put_via_redirect|raise|rand|raw|readline|readlines|redirect?|request_via_redirect|require|scan|select|set_trace_func|sleep|split|sprintf|srand|String|stylesheet_link_tag|syscall|system|sub|sub!|test|throw|trace_var|trap|untrace_var|atan2|cos|exp|frexp|ldexp|log|log10|sin|sqrt|tan|render|javascript_include_tag|csrf_meta_tag|label_tag|text_field_tag|submit_tag|check_box_tag|content_tag|radio_button_tag|text_area_tag|password_field_tag|hidden_field_tag|fields_for|select_tag|options_for_select|options_from_collection_for_select|collection_select|time_zone_select|select_date|select_time|select_datetime|date_select|time_select|datetime_select|select_year|select_month|select_day|select_hour|select_minute|select_second|file_field_tag|file_field|respond_to|skip_before_filter|around_filter|after_filter|verify|protect_from_forgery|rescue_from|helper_method|redirect_to|before_filter|send_data|send_file|validates_presence_of|validates_uniqueness_of|validates_length_of|validates_format_of|validates_acceptance_of|validates_associated|validates_exclusion_of|validates_inclusion_of|validates_numericality_of|validates_with|validates_each|authenticate_or_request_with_http_basic|authenticate_or_request_with_http_digest|filter_parameter_logging|match|get|post|resources|redirect|scope|assert_routing|translate|localize|extract_locale_from_tld|caches_page|expire_page|caches_action|expire_action|cache|expire_fragment|expire_cache_for|observe|cache_sweeper|has_many|has_one|belongs_to|has_and_belongs_to_many|p|warn|refine|using|module_function|extend|alias_method|private_class_method|remove_method|undef_method",x="alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|__FILE__|finally|for|gem|if|in|__LINE__|module|next|not|or|private|protected|public|redo|rescue|retry|return|super|then|undef|unless|until|when|while|yield|__ENCODING__|prepend",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",_="$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":_,"support.function":b,"invalid.deprecated":"debugger"},"identifier"),C=`\\\\(?: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})*})`,L={"(":")","[":"]","{":"}","<":">","^":"^","|":"|","%":"%"};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:C},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/"/,next:"pop"},{defaultToken:"string"}]},{token:"string.start",regex:/`/,push:[{token:"constant.language.escape",regex:C},{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(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="qStateWithoutInterpolation",this.token}},{token:"string.start",regex:/%[QWX]?([(\[<{^|%])/,onMatch:function(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="qStateWithInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[si]([(\[<{^|%])/,onMatch:function(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="sStateWithoutInterpolation",this.token}},{token:"constant.other.symbol.ruby",regex:/%[SI]([(\[<{^|%])/,onMatch:function(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="sStateWithInterpolation",this.token}},{token:"string.regexp",regex:/%[r]([(\[<{^|%])/,onMatch:function(D,E,I){I.length&&(I=[]);var z=D[D.length-1];return I.unshift(z,E),this.next="rState",this.token}}],{token:"punctuation",regex:"::"},s,{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\\?(?:"+C+"|\\S)"},{token:"punctuation.operator",regex:/\?(?=.+:)/},u,c,w,h,i,d,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(D,E,I){var z=D[2]=="-"||D[2]=="~"?"indentedHeredoc":"heredoc",P=D.split(this.splitRegex);return I.push(z,P[3]),[{type:"constant",value:P[1]},{type:"string",value:P[2]},{type:"support.class",value:P[3]},{type:"string",value:P[4]}]},regex:"(<<[-~]?)(['\"`]?)([\\w]+)(['\"`]?)",rules:{heredoc:[{onMatch:function(D,E,I){return D===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(D,E,I){return D===I[1]?(I.shift(),I.shift(),this.next=I[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(D,E){return E[0]==="heredoc"||E[0]==="indentedHeredoc"?E[0]:D}},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\||\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]",onMatch:function(D,E,I){return this.next="",D=="}"&&I.length>1&&I[1]!="start"&&(I.shift(),this.next=I.shift()),this.token}},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:/[?:,;.]/}],comment:[{token:"comment.multiline",regex:"^=end(?=$|\\s.*$)",next:"start"},{token:"comment",regex:".+"}],qStateWithInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"string"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(D,E,I){return I.length&&D===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],qStateWithoutInterpolation:[{token:"string.start",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"string"}},{token:"constant.language.escape",regex:/\\['\\]/},{token:"constant.language.escape",regex:/\\./},{token:"string.end",regex:/[)\]>}^|%]/,onMatch:function(D,E,I){return I.length&&D===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","string")}},{defaultToken:"string"}],sStateWithoutInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"constant.other.symbol.ruby"}},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(D,E,I){return I.length&&D===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],sStateWithInterpolation:[{token:"constant.other.symbol.ruby",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"constant.other.symbol.ruby"}},{token:"constant.language.escape",regex:C},{token:"constant.language.escape",regex:/\\./},{token:"paren.start",regex:/#{/,push:"start"},{token:"constant.other.symbol.ruby",regex:/[)\]>}^|%]/,onMatch:function(D,E,I){return I.length&&D===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.other.symbol.ruby")}},{defaultToken:"constant.other.symbol.ruby"}],rState:[{token:"string.regexp",regex:/[(\[<{]/,onMatch:function(D,E,I){return I.length&&D===I[0]?(I.unshift(D,E),this.token):"constant.language.escape"}},{token:"paren.start",regex:/#{/,push:"start"},{token:"string.regexp",regex:/\//},{token:"string.regexp",regex:/[)\]>}^|%][imxouesn]*/,onMatch:function(D,E,I){return I.length&&D[0]===L[I[0]]?(I.shift(),this.next=I.shift(),this.token):(this.next="","constant.language.escape")}},{include:"regex"},{defaultToken:"string.regexp"}],regex:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"constant.language.escape",regex:/\\[AGbBzZ]/},{token:"constant.language.escape",regex:/\\g<[a-zA-Z0-9]*>/},{token:["constant.language.escape","regexp.keyword","constant.language.escape"],regex:/(\\p{\^?)(Alnum|Alpha|Blank|Cntrl|Digit|Graph|Lower|Print|Punct|Space|Upper|XDigit|Word|ASCII|Any|Assigned|Arabic|Armenian|Balinese|Bengali|Bopomofo|Braille|Buginese|Buhid|Canadian_Aboriginal|Carian|Cham|Cherokee|Common|Coptic|Cuneiform|Cypriot|Cyrillic|Deseret|Devanagari|Ethiopic|Georgian|Glagolitic|Gothic|Greek|Gujarati|Gurmukhi|Han|Hangul|Hanunoo|Hebrew|Hiragana|Inherited|Kannada|Katakana|Kayah_Li|Kharoshthi|Khmer|Lao|Latin|Lepcha|Limbu|Linear_B|Lycian|Lydian|Malayalam|Mongolian|Myanmar|New_Tai_Lue|Nko|Ogham|Ol_Chiki|Old_Italic|Old_Persian|Oriya|Osmanya|Phags_Pa|Phoenician|Rejang|Runic|Saurashtra|Shavian|Sinhala|Sundanese|Syloti_Nagri|Syriac|Tagalog|Tagbanwa|Tai_Le|Tamil|Telugu|Thaana|Thai|Tibetan|Tifinagh|Ugaritic|Vai|Yi|Ll|Lm|Lt|Lu|Lo|Mn|Mc|Me|Nd|Nl|Pc|Pd|Ps|Pe|Pi|Pf|Po|No|Sm|Sc|Sk|So|Zs|Zl|Zp|Cc|Cf|Cn|Co|Cs|N|L|M|P|S|Z|C)(})/},{token:["constant.language.escape","invalid","constant.language.escape"],regex:/(\\p{\^?)([^/]*)(})/},{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:/[/][imxouesn]*/,next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?(?:[:=!>]|<'?[a-zA-Z]*'?>|<[=!])|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"regexp.keyword",regex:/\[\[:(?:alnum|alpha|blank|cntrl|digit|graph|lower|print|punct|space|upper|xdigit|word|ascii):\]\]/},{token:"constant.language.escape",regex:/\[\^?/,push:"regex_character_class"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.keyword",regex:/\\[wWdDhHsS]/},{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:/&?&?\[\^?/,push:"regex_character_class"},{token:"constant.language.escape",regex:"]",next:"pop"},{token:"constant.language.escape",regex:"-"},{defaultToken:"string.regexp.characterclass"}]},this.normalizeRules()};g.inherits(p,m),r.RubyHighlightRules=p}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var g=e("../range").Range,m=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new g(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(m.prototype),r.MatchingBraceOutdent=m}),ace.define("ace/mode/folding/ruby",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,r,f){var g=e("../../lib/oop"),m=e("./fold_mode").FoldMode,w=e("../../range").Range,h=e("../../token_iterator").TokenIterator,d=r.FoldMode=function(){};g.inherits(d,m),(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,u){var c=a.getLine(u),i=this.foldingStartMarker.test(c),s=this.foldingStopMarker.test(c);if(i&&!s){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(u,p.index+2).type==="keyword")return"start"}else if(!p[3]||a.getTokenAt(u,p.index+1).type==="comment.multiline")return"start"}if(l!="markbeginend"||!s||i&&s)return"";var p=c.match(this.foldingStopMarker);if(p[3]==="end"){if(a.getTokenAt(u,p.index+1).type==="keyword")return"end"}else if(!p[1]||a.getTokenAt(u,p.index+1).type==="comment.multiline")return"end"},this.getFoldWidgetRange=function(a,l,u){var c=a.doc.getLine(u),i=this.foldingStartMarker.exec(c);if(i)return i[1]||i[3]?this.rubyBlock(a,u,i.index+2):this.openingBracketBlock(a,"{",u,i.index);var i=this.foldingStopMarker.exec(c);if(i)return i[3]==="end"&&a.getTokenAt(u,i.index+1).type==="keyword"?this.rubyBlock(a,u,i.index+1):i[1]==="=end"&&a.getTokenAt(u,i.index+1).type==="comment.multiline"?this.rubyBlock(a,u,i.index+1):this.closingBracketBlock(a,"}",u,i.index+i[0].length)},this.rubyBlock=function(a,l,u,c){var i=new h(a,l,u),s=i.getCurrentToken();if(!(!s||s.type!="keyword"&&s.type!="comment.multiline")){var p=s.value,b=a.getLine(l);switch(s.value){case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);if(!x.test(b))return;var R=this.indentKeywords[p];break;case"when":if(/\sthen\s/.test(b))return;case"elsif":case"rescue":case"ensure":var R=1;break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");if(!x.test(b))return;var R=1;break;default:var R=this.indentKeywords[p]}var _=[p];if(R){var k=R===-1?a.getLine(l-1).length:a.getLine(l).length,C=l,L=[];if(L.push(i.getCurrentTokenRange()),i.step=R===-1?i.stepBackward:i.stepForward,s.type=="comment.multiline"){for(;s=i.step();)if(s.type==="comment.multiline"){if(R==1){if(k=6,s.value=="=end")break}else if(s.value=="=begin")break}}else for(;s=i.step();){var D=!1;if(s.type==="keyword"){var E=R*this.indentKeywords[s.value];switch(b=a.getLine(i.getCurrentTokenRow()),s.value){case"do":for(var I=i.$tokenIndex-1;I>=0;I--){var z=i.$rowTokens[I];if(z&&(z.value=="while"||z.value=="until"||z.value=="for")){E=0;break}}break;case"else":var x=new RegExp("^\\s*"+s.value+"\\s*$");(!x.test(b)||p=="case")&&(E=0,D=!0);break;case"if":case"unless":case"while":case"until":var x=new RegExp("^\\s*"+s.value);x.test(b)||(E=0,D=!0);break;case"when":(/\sthen\s/.test(b)||p=="case")&&(E=0,D=!0)}if(E>0)_.unshift(s.value);else if(E<=0&&D===!1){if(_.shift(),!_.length&&((p=="while"||p=="until"||p=="for")&&s.value!="do"||s.value=="do"&&R==-1&&E!=0||s.value!="do"))break;E===0&&_.unshift(s.value)}}}if(!s)return null;if(c)return L.push(i.getCurrentTokenRange()),L;var l=i.getCurrentTokenRow();if(R===-1){if(s.type==="comment.multiline")var P=6;else var P=a.getLine(l).length;return new w(l,P,C-1,k)}return new w(C,k,l-1,a.getLine(l-1).length)}}}}).call(d.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,r,f){var g=e("../lib/oop"),m=e("./text").Mode,w=e("./ruby_highlight_rules").RubyHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=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};g.inherits(l,m),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,u),b=p.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[]\s*$/),R=c.match(/^\s*(class|def|module)\s.*$/),_=c.match(/.*do(\s*|\s+\|.*\|\s*)$/),k=c.match(/^\s*(if|else|when|elsif|unless|while|for|begin|rescue|ensure)\s*/);(x||R||_||k)&&(s+=i)}return s},this.checkOutdent=function(u,c,i){return/^\s+(end|else|rescue|ensure)$/.test(c+i)||this.$outdent.checkOutdent(c,i)},this.autoOutdent=function(u,c,i){var s=c.getLine(i);if(/}/.test(s))return this.$outdent.autoOutdent(c,i);var p=this.$getIndent(s),b=c.getLine(i-1),x=this.$getIndent(b),R=c.getTabString();x.length<=p.length&&p.slice(-R.length)==R&&c.remove(new d(i,p.length-R.length,i,p.length))},this.getMatching=function(u,c,i){if(c==null){var s=u.selection.lead;i=s.column,c=s.row}var p=u.getTokenAt(c,i);if(p&&p.value in this.indentKeywords)return this.foldingRules.rubyBlock(u,c,i,!0)},this.$id="ace/mode/ruby",this.snippetFileId="ace/snippets/ruby"}).call(l.prototype),r.Mode=l}),function(){ace.require(["ace/mode/ruby"],function(e){n&&(n.exports=e)})}()}(sf)),sf.exports}Cx();var lf={exports:{}},cf;function kx(){return cf||(cf=1,function(n,t){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var g=e("../lib/oop"),m=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",d="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":d,keyword:h},"identifier"),u="[uU]?",c="[rR]",i="[fF]",s="(?:[rR][fF]|[fF][rR])",p="(?:(?:[1-9]\\d*)|(?:0))",b="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",R="(?:0[bB][01]+)",_="(?:"+p+"|"+b+"|"+x+"|"+R+")",k="(?:[eE][+-]?\\d+)",C="(?:\\.\\d+)",L="(?:\\d+)",D="(?:(?:"+L+"?"+C+")|(?:"+L+"\\.))",E="(?:(?:"+D+"|"+L+")"+k+")",I="(?:"+E+"|"+D+")",z=`\\\\(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:u+'"{3}',next:"qqstring3"},{token:"string",regex:u+'"(?=.)',next:"qqstring"},{token:"string",regex:u+"'{3}",next:"qstring3"},{token:"string",regex:u+"'(?=.)",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:i+'"{3}',next:"fqqstring3"},{token:"string",regex:i+'"(?=.)',next:"fqqstring"},{token:"string",regex:i+"'{3}",next:"fqstring3"},{token:"string",regex:i+"'(?=.)",next:"fqstring"},{token:"string",regex:s+'"{3}',next:"rfqqstring3"},{token:"string",regex:s+'"(?=.)',next:"rfqqstring"},{token:"string",regex:s+"'{3}",next:"rfqstring3"},{token:"string",regex:s+"'(?=.)",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:z},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:z},{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:z},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:z},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+I+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:I},{token:"constant.numeric",regex:_+"[lL]\\b"},{token:"constant.numeric",regex:_+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};g.inherits(w,m),r.PythonHighlightRules=w}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,r,f){var g=e("../../lib/oop"),m=e("./fold_mode").FoldMode,w=r.FoldMode=function(h){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+h+")(?:\\s*)(?:#.*)?$")};g.inherits(w,m),(function(){this.getFoldWidgetRange=function(h,d,a){var l=h.getLine(a),u=l.match(this.foldingStartMarker);if(u)return u[1]?this.openingBracketBlock(h,u[1],a,u.index):u[2]?this.indentationBlock(h,a,u.index+u[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,r,f){var g=e("../lib/oop"),m=e("./text").Mode,w=e("./python_highlight_rules").PythonHighlightRules,h=e("./folding/pythonic").FoldMode,d=e("../range").Range,a=function(){this.HighlightRules=w,this.foldingRules=new h("\\:"),this.$behaviour=this.$defaultBehaviour};g.inherits(a,m),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c),p=this.getTokenizer().getLineTokens(c,u),b=p.tokens;if(b.length&&b[b.length-1].type=="comment")return s;if(u=="start"){var x=c.match(/^.*[\{\(\[:]\s*$/);x&&(s+=i)}return s};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(u,c,i){if(i!==`\r
|
|
986
986
|
`&&i!=="\r"&&i!==`
|
|
987
987
|
`)return!1;var s=this.getTokenizer().getLineTokens(c.trim(),u).tokens;if(!s)return!1;do var p=s.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(u,c,i){i+=1;var s=this.$getIndent(c.getLine(i)),p=c.getTabString();s.slice(-p.length)==p&&c.remove(new d(i,s.length-p.length,i,s.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(a.prototype),r.Mode=a}),function(){ace.require(["ace/mode/python"],function(e){n&&(n.exports=e)})}()}(lf)),lf.exports}kx();var uf={exports:{}},hf;function Ax(){return hf||(hf=1,function(n,t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var g=e("../lib/oop"),m=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};g.inherits(w,m),r.JsonHighlightRules=w}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var g=e("../range").Range,m=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new g(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(m.prototype),r.MatchingBraceOutdent=m}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,r,f){var g=e("../../lib/oop"),m=e("../../range").Range,w=e("./fold_mode").FoldMode,h=r.FoldMode=function(d){d&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+d.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+d.end)))};g.inherits(h,w),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(d,a,l){var u=d.getLine(l);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var c=this._getFoldWidgetBase(d,a,l);return!c&&this.startRegionRe.test(u)?"start":c},this.getFoldWidgetRange=function(d,a,l,u){var c=d.getLine(l);if(this.startRegionRe.test(c))return this.getCommentRegionBlock(d,c,l);var i=c.match(this.foldingStartMarker);if(i){var s=i.index;if(i[1])return this.openingBracketBlock(d,i[1],l,s);var p=d.getCommentFoldRange(l,s+i[0].length,1);return p&&!p.isMultiLine()&&(u?p=this.getSectionRange(d,l):a!="all"&&(p=null)),p}if(a!=="markbegin"){var i=c.match(this.foldingStopMarker);if(i){var s=i.index+i[0].length;return i[1]?this.closingBracketBlock(d,i[1],l,s):d.getCommentFoldRange(l,s,-1)}}},this.getSectionRange=function(d,a){var l=d.getLine(a),u=l.search(/\S/),c=a,i=l.length;a+=1;for(var s=a,p=d.getLength();++a<p;){l=d.getLine(a);var b=l.search(/\S/);if(b!==-1){if(u>b)break;var x=this.getFoldWidgetRange(d,"all",a);if(x){if(x.start.row<=c)break;if(x.isMultiLine())a=x.end.row;else if(u==b)break}s=a}}return new m(c,i,s,d.getLine(s).length)},this.getCommentRegionBlock=function(d,a,l){for(var u=a.search(/\s*$/),c=d.getLength(),i=l,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,p=1;++l<c;){a=d.getLine(l);var b=s.exec(a);if(b&&(b[1]?p--:p++,!p))break}var x=l;if(x>i)return new m(i,u,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,r,f){var g=e("../lib/oop"),m=e("./text").Mode,w=e("./json_highlight_rules").JsonHighlightRules,h=e("./matching_brace_outdent").MatchingBraceOutdent,d=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 d};g.inherits(l,m),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(u,c,i){var s=this.$getIndent(c);if(u=="start"){var p=c.match(/^.*[\{\(\[]\s*$/);p&&(s+=i)}return s},this.checkOutdent=function(u,c,i){return this.$outdent.checkOutdent(c,i)},this.autoOutdent=function(u,c,i){this.$outdent.autoOutdent(c,i)},this.createWorker=function(u){var c=new a(["ace"],"ace/mode/json_worker","JsonWorker");return c.attachToDocument(u.getDocument()),c.on("annotate",function(i){u.setAnnotations(i.data)}),c.on("terminate",function(){u.clearAnnotations()}),c},this.$id="ace/mode/json"}).call(l.prototype),r.Mode=l}),function(){ace.require(["ace/mode/json"],function(e){n&&(n.exports=e)})}()}(uf)),uf.exports}Ax();var df={exports:{}},pf;function Sx(){return pf||(pf=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,r,f){var g=e("../lib/oop");e("../lib/lang");var m=e("./text_highlight_rules").TextHighlightRules,w=r.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",h=r.supportFunction="rgb|rgba|url|attr|counter|counters",d=r.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=r.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=r.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=r.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",c=r.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",i=r.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",s=function(){var p=this.createKeywordMapper({"support.function":h,"support.constant":d,"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:u},{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:"("+u+")(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:u},{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:i},{include:"url"},{token:p,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{token:"paren.lparen",regex:"\\{"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};g.inherits(s,m),r.CssHighlightRules=s}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var g=e("../lib/oop"),m=e("./text_highlight_rules").TextHighlightRules,w=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},w.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};g.inherits(w,m),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}},r.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,r,f){function g(){var u=a.replace("\\d","\\d\\-"),c={onMatch:function(s,p,b){var x=s.charAt(1)=="/"?2:1;return x==1?(p!=this.nextState?b.unshift(this.next,this.nextState,0):b.unshift(this.next),b[2]++):x==2&&p==this.nextState&&(b[1]--,(!b[1]||b[1]<0)&&(b.shift(),b.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:s.slice(0,x)},{type:"meta.tag.tag-name.xml",value:s.substr(x)}]},regex:"</?(?:"+u+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(c);var i={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[i,c,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(s,p,b){return p==b[0]&&b.shift(),s.length==2&&(b[0]==this.nextState&&b[1]--,(!b[1]||b[1]<0)&&b.splice(0,2)),this.next=b[0]||"start",[{type:this.token,value:s}]},nextState:"jsx"},i,m("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:u},{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 m(u){return[{token:"comment",regex:/\/\*/,next:[h.getTagRule(),{token:"comment",regex:"\\*\\/",next:u||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[h.getTagRule(),{token:"comment",regex:"$|^",next:u||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var w=e("../lib/oop"),h=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,d=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",l=function(u){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"},i=this.createKeywordMapper(c,"identifier"),s="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]?|.)",b="(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"),m("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*)"+b+"(\\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*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+b+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+s+")\\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:i,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:b+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[h.getStartRule("doc-start"),m("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:[m("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"}]},(!u||!u.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(R,_,k){if(this.next=R=="{"?this.nextState:"",R=="{"&&k.length)k.unshift("start",_);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"}),(!u||u.jsx!=0)&&g.call(this)),this.embedRules(h,"doc-",[h.getEndRule("no_regex")]),this.normalizeRules()};w.inherits(l,d),r.JavaScriptHighlightRules=l}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,r,f){var g=e("../lib/oop"),m=e("./text_highlight_rules").TextHighlightRules,w=function(h){var d="[_: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:"(<\\?)("+d+")",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:d},{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:"(<\\!)("+d+")",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:"(?:(<)|(</))((?:"+d+":)?"+d+")",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:d},{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,d,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:d+"start"}]}),this.$rules[a+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,u,c){return c.splice(0),this.token}}],this.embedRules(h,d,[{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(m.prototype),g.inherits(w,m),r.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,r,f){var g=e("../lib/oop"),m=e("../lib/lang"),w=e("./css_highlight_rules").CssHighlightRules,h=e("./javascript_highlight_rules").JavaScriptHighlightRules,d=e("./xml_highlight_rules").XmlHighlightRules,a=m.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(){d.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(u,c){var i=a[c];return["meta.tag.punctuation."+(u=="<"?"":"end-")+"tag-open.xml","meta.tag"+(i?"."+i:"")+".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()};g.inherits(l,d),r.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,r,f){var g=e("../config").$modes,m=e("../lib/oop"),w=e("../lib/lang"),h=e("./text_highlight_rules").TextHighlightRules,d=e("./html_highlight_rules").HtmlHighlightRules,a=function(u){return"(?:[^"+w.escapeRegExp(u)+"\\\\]|\\\\.)*"},l=function(){d.call(this);var u={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(i,s,p,b){var x=i.match(/^(\s*)([`~]+)(.*)/),R=/[\w-]+|$/.exec(x[3])[0];return g[R]||(R=""),p.unshift("githubblock",[],[x[1],x[2],R],s),this.token},next:"githubblock"},c=[{token:"support.function",regex:".*",onMatch:function(i,s,p,b){var x=p[1],R=p[2][0],_=p[2][1],k=p[2][2],C=/^(\s*)(`+|~+)\s*$/.exec(i);if(C&&C[1].length<R.length+3&&C[2].length>=_.length&&C[2][0]==_[0])return p.splice(0,3),this.next=p.shift(),this.token;if(this.next="",k&&g[k]){var L=g[k].getTokenizer().getLineTokens(i,x.slice(0));return p[1]=L.state,L.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(i){return"markup.heading."+i.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},u,{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},u,{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()};m.inherits(l,h),r.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,r,f){var g=e("../../lib/oop"),m=e("./fold_mode").FoldMode,w=e("../../range").Range,h=r.FoldMode=function(){};g.inherits(h,m),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(d,a,l){var u=d.getLine(l);return this.foldingStartMarker.test(u)?u[0]=="`"&&d.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(d,a,l){function u(D){return R=d.getTokens(D)[0],R&&R.type.lastIndexOf(_,0)===0}function c(){var D=R.value[0];return D=="="?6:D=="-"?5:7-R.value.search(/[^#]|$/)}var i=d.getLine(l),s=i.length,p=d.getLength(),b=l,x=l;if(i.match(this.foldingStartMarker)){if(i[0]=="`"){if(d.bgTokenizer.getState(l)!=="start"){for(;++l<p&&(i=d.getLine(l),!(i[0]=="`"&i.substring(0,3)=="```")););return new w(b,s,l,0)}for(;l-- >0&&(i=d.getLine(l),!(i[0]=="`"&i.substring(0,3)=="```")););return new w(l,i.length,b,0)}var R,_="markup.heading";if(u(l)){for(var k=c();++l<p;)if(u(l)){var C=c();if(C>=k)break}if(x=l-(!R||["=","-"].indexOf(R.value[0])==-1?1:2),x>b)for(;x>b&&/^\s*$/.test(d.getLine(x));)x--;if(x>b){var L=d.getLine(x).length;return new w(b,s,x,L)}}}}}).call(h.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,r,f){var g=e("../range").Range,m=function(){};(function(){this.checkOutdent=function(w,h){return/^\s+$/.test(w)?/^\s*\}/.test(h):!1},this.autoOutdent=function(w,h){var d=w.getLine(h),a=d.match(/^(\s*\})/);if(!a)return 0;var l=a[1].length,u=w.findMatchingBracket({row:h,column:l});if(!u||u.row==h)return 0;var c=this.$getIndent(w.getLine(u.row));w.replace(new g(h,0,h,l-1),c)},this.$getIndent=function(w){return w.match(/^\s*/)[0]}}).call(m.prototype),r.MatchingBraceOutdent=m}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(e,r,f){function g(a,l){return a&&a.type.lastIndexOf(l+".xml")>-1}var m=e("../../lib/oop"),w=e("../behaviour").Behaviour,h=e("../../token_iterator").TokenIterator,d=function(){this.add("string_dquotes","insertion",function(a,l,u,c,i){if(i=='"'||i=="'"){var s=i,p=c.doc.getTextRange(u.getSelectionRange());if(p!==""&&p!=="'"&&p!='"'&&u.getWrapBehavioursEnabled())return{text:s+p+s,selection:!1};var b=u.getCursorPosition(),x=c.doc.getLine(b.row),R=x.substring(b.column,b.column+1),_=new h(c,b.row,b.column),k=_.getCurrentToken();if(R==s&&(g(k,"attribute-value")||g(k,"string")))return{text:"",selection:[1,1]};if(k||(k=_.stepBackward()),!k)return;for(;g(k,"tag-whitespace")||g(k,"whitespace");)k=_.stepBackward();var C=!R||R.match(/\s/);if(g(k,"attribute-equals")&&(C||R==">")||g(k,"decl-attribute-equals")&&(C||R=="?"))return{text:s+s,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(a,l,u,c,i){var s=c.doc.getTextRange(i);if(!i.isMultiLine()&&(s=='"'||s=="'")){var p=c.doc.getLine(i.start.row),b=p.substring(i.start.column+1,i.start.column+2);if(b==s)return i.end.column++,i}}),this.add("autoclosing","insertion",function(a,l,u,c,i){if(i==">"){var s=u.getSelectionRange().start,p=new h(c,s.row,s.column),b=p.getCurrentToken()||p.stepBackward();if(!b||!(g(b,"tag-name")||g(b,"tag-whitespace")||g(b,"attribute-name")||g(b,"attribute-equals")||g(b,"attribute-value"))||g(b,"reference.attribute-value"))return;if(g(b,"attribute-value")){var x=p.getCurrentTokenColumn()+b.value.length;if(s.column<x)return;if(s.column==x){var R=p.stepForward();if(R&&g(R,"attribute-value"))return;p.stepBackward()}}if(/^\s*>/.test(c.getLine(s.row).slice(s.column)))return;for(;!g(b,"tag-name");)if(b=p.stepBackward(),b.value=="<"){b=p.stepForward();break}var _=p.getCurrentTokenRow(),k=p.getCurrentTokenColumn();if(g(p.stepBackward(),"end-tag-open"))return;var C=b.value;return _==s.row&&(C=C.substring(0,s.column-k)),this.voidElements&&this.voidElements.hasOwnProperty(C.toLowerCase())?void 0:{text:"></"+C+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(a,l,u,c,i){if(i==`
|
|
988
988
|
`){var s=u.getCursorPosition(),p=c.getLine(s.row),b=new h(c,s.row,s.column),x=b.getCurrentToken();if(g(x,"")&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=b.stepBackward();if(!x)return;var R=x.value,_=b.getCurrentTokenRow();if(x=b.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[R]||!this.voidElements){var k=c.getTokenAt(s.row,s.column+1),p=c.getLine(_),C=this.$getIndent(p),L=C+c.getTabString();return k&&k.value==="</"?{text:`
|
|
@@ -1394,17 +1394,17 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(gr,i
|
|
|
1394
1394
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const e=new this(n);return t.forEach(r=>e.set(r)),e}static accessor(n){const t=(this[Wf]=this[Wf]={accessors:{}}).accessors,e=this.prototype;function r(f){const g=Wa(f);t[g]||(F1(e,f),t[g]=!0)}return Ae.isArray(n)?n.forEach(r):r(n),this}};si.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(si.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),Ae.freezeMethods(si);function $u(n,t){const e=this||Pa,r=t||e,f=si.from(r.headers);let g=r.data;return Ae.forEach(n,function(m){g=m.call(e,g,f.normalize(),t?t.status:void 0)}),f.normalize(),g}function Bf(n){return!!(n&&n.__CANCEL__)}function ra(n,t,e){kt.call(this,n??"canceled",kt.ERR_CANCELED,t,e),this.name="CanceledError"}Ae.inherits(ra,kt,{__CANCEL__:!0});function zf(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new kt("Request failed with status code "+e.status,[kt.ERR_BAD_REQUEST,kt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function P1(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function W1(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,g=0,m;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),d=r[g];m||(m=h),e[f]=w,r[f]=h;let a=g,l=0;for(;a!==f;)l+=e[a++],a=a%n;if(f=(f+1)%n,f===g&&(g=(g+1)%n),h-m<t)return;const u=d&&h-d;return u?Math.round(l*1e3/u):void 0}}function B1(n,t){let e=0,r=1e3/t,f,g;const m=(w,h=Date.now())=>{e=h,f=null,g&&(clearTimeout(g),g=null),n(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?m(w,h):(f=w,g||(g=setTimeout(()=>{g=null,m(f)},r-d)))},()=>f&&m(f)]}const Wl=(n,t,e=3)=>{let r=0;const f=W1(50,250);return B1(g=>{const m=g.loaded,w=g.lengthComputable?g.total:void 0,h=m-r,d=f(h),a=m<=w;r=m;const l={loaded:m,total:w,progress:w?m/w:void 0,bytes:h,rate:d||void 0,estimated:d&&w&&a?(w-m)/d:void 0,event:g,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},Hf=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},jf=n=>(...t)=>Ae.asap(()=>n(...t)),z1=Lr.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Lr.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Lr.origin),Lr.navigator&&/(msie|trident)/i.test(Lr.navigator.userAgent)):()=>!0,H1=Lr.hasStandardBrowserEnv?{write(n,t,e,r,f,g,m){if(typeof document>"u")return;const w=[`${n}=${encodeURIComponent(t)}`];Ae.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),Ae.isString(r)&&w.push(`path=${r}`),Ae.isString(f)&&w.push(`domain=${f}`),g===!0&&w.push("secure"),Ae.isString(m)&&w.push(`SameSite=${m}`),document.cookie=w.join("; ")},read(n){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function j1(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function U1(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function Uf(n,t,e){let r=!j1(t);return n&&(r||e==!1)?U1(n,t):t}const Vf=n=>n instanceof si?{...n}:n;function ws(n,t){t=t||{};const e={};function r(d,a,l,u){return Ae.isPlainObject(d)&&Ae.isPlainObject(a)?Ae.merge.call({caseless:u},d,a):Ae.isPlainObject(a)?Ae.merge({},a):Ae.isArray(a)?a.slice():a}function f(d,a,l,u){if(Ae.isUndefined(a)){if(!Ae.isUndefined(d))return r(void 0,d,l,u)}else return r(d,a,l,u)}function g(d,a){if(!Ae.isUndefined(a))return r(void 0,a)}function m(d,a){if(Ae.isUndefined(a)){if(!Ae.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(l in t)return r(d,a);if(l in n)return r(void 0,d)}const h={url:g,method:g,data:g,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:w,headers:(d,a,l)=>f(Vf(d),Vf(a),l,!0)};return Ae.forEach(Object.keys({...n,...t}),function(d){const a=h[d]||f,l=a(n[d],t[d],d);Ae.isUndefined(l)&&a!==w||(e[d]=l)}),e}const qf=n=>{const t=ws({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:g,headers:m,auth:w}=t;if(t.headers=m=si.from(m),t.url=Nf(Uf(t.baseURL,t.url,t.allowAbsoluteUrls),n.params,n.paramsSerializer),w&&m.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):""))),Ae.isFormData(e)){if(Lr.hasStandardBrowserEnv||Lr.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if(Ae.isFunction(e.getHeaders)){const h=e.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([a,l])=>{d.includes(a.toLowerCase())&&m.set(a,l)})}}if(Lr.hasStandardBrowserEnv&&(r&&Ae.isFunction(r)&&(r=r(t)),r||r!==!1&&z1(t.url))){const h=f&&g&&H1.read(g);h&&m.set(f,h)}return t},V1=typeof XMLHttpRequest<"u",q1=V1&&function(n){return new Promise(function(t,e){const r=qf(n);let f=r.data;const g=si.from(r.headers).normalize();let{responseType:m,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function p(){if(!s)return;const x=si.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),R={data:!m||m==="text"||m==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:n,request:s};zf(function(_){t(_),i()},function(_){e(_),i()},R),s=null}"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(p)},s.onabort=function(){s&&(e(new kt("Request aborted",kt.ECONNABORTED,n,s)),s=null)},s.onerror=function(x){const R=x&&x.message?x.message:"Network Error",_=new kt(R,kt.ERR_NETWORK,n,s);_.event=x||null,e(_),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||Ff;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new kt(x,R.clarifyTimeoutError?kt.ETIMEDOUT:kt.ECONNABORTED,n,s)),s=null},f===void 0&&g.setContentType(null),"setRequestHeader"in s&&Ae.forEach(g.toJSON(),function(x,R){s.setRequestHeader(R,x)}),Ae.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),m&&m!=="json"&&(s.responseType=r.responseType),h&&([l,c]=Wl(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,u]=Wl(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new ra(null,n,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=P1(r.url);if(b&&Lr.protocols.indexOf(b)===-1){e(new kt("Unsupported protocol "+b+":",kt.ERR_BAD_REQUEST,n));return}s.send(f||null)})},K1=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const g=function(d){if(!f){f=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof kt?a:new ra(a instanceof Error?a.message:a))}};let m=t&&setTimeout(()=>{m=null,g(new kt(`timeout ${t} of ms exceeded`,kt.ETIMEDOUT))},t);const w=()=>{n&&(m&&clearTimeout(m),m=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(g):d.removeEventListener("abort",g)}),n=null)};n.forEach(d=>d.addEventListener("abort",g));const{signal:h}=r;return h.unsubscribe=()=>Ae.asap(w),h}},G1=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,f;for(;r<e;)f=r+t,yield n.slice(r,f),r=f},Y1=async function*(n,t){for await(const e of X1(n))yield*G1(e,t)},X1=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Kf=(n,t,e,r)=>{const f=Y1(n,t);let g=0,m,w=h=>{m||(m=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await f.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let u=g+=l;e(u)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),f.return()}},{highWaterMark:2})},Gf=64*1024,{isFunction:Bl}=Ae,Z1=(({Request:n,Response:t})=>({Request:n,Response:t}))(Ae.global),{ReadableStream:Yf,TextEncoder:Xf}=Ae.global,Zf=(n,...t)=>{try{return!!n(...t)}catch{return!1}},Q1=n=>{n=Ae.merge.call({skipUndefined:!0},Z1,n);const{fetch:t,Request:e,Response:r}=n,f=t?Bl(t):typeof fetch=="function",g=Bl(e),m=Bl(r);if(!f)return!1;const w=f&&Bl(Yf),h=f&&(typeof Xf=="function"?(i=>s=>i.encode(s))(new Xf):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=g&&w&&Zf(()=>{let i=!1;const s=new e(Lr.origin,{body:new Yf,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!s}),a=m&&w&&Zf(()=>Ae.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,p)=>{let b=s&&s[i];if(b)return b.call(s);throw new kt(`Response type '${i}' is not supported`,kt.ERR_NOT_SUPPORT,p)})});const u=async i=>{if(i==null)return 0;if(Ae.isBlob(i))return i.size;if(Ae.isSpecCompliantForm(i))return(await new e(Lr.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(Ae.isArrayBufferView(i)||Ae.isArrayBuffer(i))return i.byteLength;if(Ae.isURLSearchParams(i)&&(i=i+""),Ae.isString(i))return(await h(i)).byteLength},c=async(i,s)=>Ae.toFiniteNumber(i.getContentLength())??u(s);return async i=>{let{url:s,method:p,data:b,signal:x,cancelToken:R,timeout:_,onDownloadProgress:k,onUploadProgress:C,responseType:L,headers:D,withCredentials:E="same-origin",fetchOptions:I}=qf(i),z=t||fetch;L=L?(L+"").toLowerCase():"text";let P=K1([x,R&&R.toAbortSignal()],_),O=null;const $=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let A;try{if(C&&d&&p!=="get"&&p!=="head"&&(A=await c(D,b))!==0){let J=new e(s,{method:"POST",body:b,duplex:"half"}),he;if(Ae.isFormData(b)&&(he=J.headers.get("content-type"))&&D.setContentType(he),J.body){const[ne,le]=Hf(A,Wl(jf(C)));b=Kf(J.body,Gf,ne,le)}}Ae.isString(E)||(E=E?"include":"omit");const N=g&&"credentials"in e.prototype,B={...I,signal:P,method:p.toUpperCase(),headers:D.normalize().toJSON(),body:b,duplex:"half",credentials:N?E:void 0};O=g&&new e(s,B);let U=await(g?z(O,I):z(s,B));const K=a&&(L==="stream"||L==="response");if(a&&(k||K&&$)){const J={};["status","statusText","headers"].forEach(se=>{J[se]=U[se]});const he=Ae.toFiniteNumber(U.headers.get("content-length")),[ne,le]=k&&Hf(he,Wl(jf(k),!0))||[];U=new r(Kf(U.body,Gf,ne,()=>{le&&le(),$&&$()}),J)}L=L||"text";let Q=await l[Ae.findKey(l,L)||"text"](U,i);return!K&&$&&$(),await new Promise((J,he)=>{zf(J,he,{data:Q,headers:si.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:O})})}catch(N){throw $&&$(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new kt("Network Error",kt.ERR_NETWORK,i,O),{cause:N.cause||N}):kt.from(N,N&&N.code,i,O)}}},J1=new Map,Qf=n=>{let t=n&&n.env||{};const{fetch:e,Request:r,Response:f}=t,g=[r,f,e];let m=g.length,w=m,h,d,a=J1;for(;w--;)h=g[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:Q1(t)),a=d;return d};Qf();const Tu={http:m1,xhr:q1,fetch:{get:Qf}};Ae.forEach(Tu,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const Jf=n=>`- ${n}`,eC=n=>Ae.isFunction(n)||n===null||n===!1;function tC(n,t){n=Ae.isArray(n)?n:[n];const{length:e}=n;let r,f;const g={};for(let m=0;m<e;m++){r=n[m];let w;if(f=r,!eC(r)&&(f=Tu[(w=String(r)).toLowerCase()],f===void 0))throw new kt(`Unknown adapter '${w}'`);if(f&&(Ae.isFunction(f)||(f=f.get(t))))break;g[w||"#"+m]=f}if(!f){const m=Object.entries(g).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?m.length>1?`since :
|
|
1395
1395
|
`+m.map(Jf).join(`
|
|
1396
1396
|
`):" "+Jf(m[0]):"as no adapter specified";throw new kt("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return f}const eg={getAdapter:tC,adapters:Tu};function Mu(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ra(null,n)}function tg(n){return Mu(n),n.headers=si.from(n.headers),n.data=$u.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),eg.getAdapter(n.adapter||Pa.adapter,n)(n).then(function(t){return Mu(n),t.data=$u.call(n,n.transformResponse,t),t.headers=si.from(t.headers),t},function(t){return Bf(t)||(Mu(n),t&&t.response&&(t.response.data=$u.call(n,n.transformResponse,t.response),t.response.headers=si.from(t.response.headers))),Promise.reject(t)})}const ng="1.13.2",zl={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{zl[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const rg={};zl.transitional=function(n,t,e){function r(f,g){return"[Axios v"+ng+"] Transitional option '"+f+"'"+g+(e?". "+e:"")}return(f,g,m)=>{if(n===!1)throw new kt(r(g," has been removed"+(t?" in "+t:"")),kt.ERR_DEPRECATED);return t&&!rg[g]&&(rg[g]=!0,console.warn(r(g," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,g,m):!0}},zl.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function nC(n,t,e){if(typeof n!="object")throw new kt("options must be an object",kt.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const g=r[f],m=t[g];if(m){const w=n[g],h=w===void 0||m(w,g,n);if(h!==!0)throw new kt("option "+g+" must be "+h,kt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new kt("Unknown option "+g,kt.ERR_BAD_OPTION)}}const Hl={assertOptions:nC,validators:zl},co=Hl.validators;let xs=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Df,response:new Df}}async request(n,t){try{return await this._request(n,t)}catch(e){if(e instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const f=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.stack?f&&!String(e.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(e.stack+=`
|
|
1397
|
-
`+f):e.stack=f}catch{}}throw e}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=ws(this.defaults,t);const{transitional:e,paramsSerializer:r,headers:f}=t;e!==void 0&&Hl.assertOptions(e,{silentJSONParsing:co.transitional(co.boolean),forcedJSONParsing:co.transitional(co.boolean),clarifyTimeoutError:co.transitional(co.boolean)},!1),r!=null&&(Ae.isFunction(r)?t.paramsSerializer={serialize:r}:Hl.assertOptions(r,{encode:co.function,serialize:co.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Hl.assertOptions(t,{baseUrl:co.spelling("baseURL"),withXsrfToken:co.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let g=f&&Ae.merge(f.common,f[t.method]);f&&Ae.forEach(["delete","get","head","post","put","patch","common"],c=>{delete f[c]}),t.headers=si.concat(g,f);const m=[];let w=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(t)===!1||(w=w&&c.synchronous,m.unshift(c.fulfilled,c.rejected))});const h=[];this.interceptors.response.forEach(function(c){h.push(c.fulfilled,c.rejected)});let d,a=0,l;if(!w){const c=[tg.bind(this),void 0];for(c.unshift(...m),c.push(...h),l=c.length,d=Promise.resolve(t);a<l;)d=d.then(c[a++],c[a++]);return d}l=m.length;let u=t;for(;a<l;){const c=m[a++],i=m[a++];try{u=c(u)}catch(s){i.call(this,s);break}}try{d=tg.call(this,u)}catch(c){return Promise.reject(c)}for(a=0,l=h.length;a<l;)d=d.then(h[a++],h[a++]);return d}getUri(n){n=ws(this.defaults,n);const t=Uf(n.baseURL,n.url,n.allowAbsoluteUrls);return Nf(t,n.params,n.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(n){xs.prototype[n]=function(t,e){return this.request(ws(e||{},{method:n,url:t,data:(e||{}).data}))}}),Ae.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(ws(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}xs.prototype[n]=t(),xs.prototype[n+"Form"]=t(!0)});let rC=class iw{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new ra(f,g,m),e(r.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=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new iw(function(e){t=e}),cancel:t}}};function iC(n){return function(t){return n.apply(null,t)}}function oC(n){return Ae.isObject(n)&&n.isAxiosError===!0}const Iu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Iu).forEach(([n,t])=>{Iu[t]=n});function ig(n){const t=new xs(n),e=wf(xs.prototype.request,t);return Ae.extend(e,xs.prototype,t,{allOwnKeys:!0}),Ae.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return ig(ws(n,r))},e}const Kn=ig(Pa);Kn.Axios=xs,Kn.CanceledError=ra,Kn.CancelToken=rC,Kn.isCancel=Bf,Kn.VERSION=ng,Kn.toFormData=Fl,Kn.AxiosError=kt,Kn.Cancel=Kn.CanceledError,Kn.all=function(n){return Promise.all(n)},Kn.spread=iC,Kn.isAxiosError=oC,Kn.mergeConfig=ws,Kn.AxiosHeaders=si,Kn.formToJSON=n=>Pf(Ae.isHTMLForm(n)?new FormData(n):n),Kn.getAdapter=eg.getAdapter,Kn.HttpStatusCode=Iu,Kn.default=Kn;const{Axios:XN,AxiosError:ZN,CanceledError:QN,isCancel:JN,CancelToken:eD,VERSION:tD,all:nD,Cancel:rD,isAxiosError:iD,spread:oD,toFormData:sD,AxiosHeaders:aD,HttpStatusCode:lD,formToJSON:cD,getAdapter:uD,mergeConfig:hD}=Kn,Eu=Kn.create({baseURL:location.origin,timeout:6e4,params:{}});Eu.interceptors.response.use(n=>n,n=>{var t,e,r,f,g,m,w,h,d,a,l;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(i){i&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let u=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(u+=`${n.response.statusText} `),(r=(e=n.response)==null?void 0:e.config)!=null&&r.data&&(u+=`${n.response.config.data} `),(g=(f=n.response)==null?void 0:f.data)!=null&&g.message?u+=`${n.response.data.message}`:(w=(m=n.response)==null?void 0:m.data)!=null&&w.exception?u+=`${n.response.data.exception}`:(a=(d=(h=n.response)==null?void 0:h.data)==null?void 0:d.error)!=null&&a.message?(n.response.data.error.class&&(u+=`${n.response.data.error.class} `),u+=`${n.response.data.error.message}`):u+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:c}=window;throw c&&c.serious({title:"Network error",body:u}),n}else throw n});const jl=async function(n,t,{data:e,params:r={},headers:f,noAuth:g=!1,noScope:m=!1,onUploadProgress:w=!1}={}){if(!g){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!m&&!r.scope&&(r.scope=window.openc3Scope),Eu({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:w})},Ru={Accept:"application/json"},og={...Ru,"Content-Type":"application/json"},dD=gr("F",{get:function(n,{params:t,headers:e=Ru,noScope:r,noAuth:f,onUploadProgress:g}={}){return jl("get",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:g})},put:function(n,{data:t,params:e,headers:r=og,noScope:f,noAuth:g,onUploadProgress:m}={}){return jl("put",n,{data:t,params:e,headers:r,noScope:f,noAuth:g,onUploadProgress:m})},post:function(n,{data:t,params:e,headers:r=og,noScope:f,noAuth:g,onUploadProgress:m}={}){return jl("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:g,onUploadProgress:m})},delete:function(n,{params:t,headers:e=Ru,noScope:r,noAuth:f,onUploadProgress:g}={}){return jl("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:g})}});let Ul=()=>({emit(n,...t){for(let e=this.events[n]||[],r=0,f=e.length;r<f;r++)e[r](...t)},events:{},on(n,t){var e;return((e=this.events)[n]||(e[n]=[])).push(t),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(f=>t!==f)}}});class Ba extends Error{constructor(t,e){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=e,this.name="ReasonError"}}class Lu extends Ba{constructor(t){super("Rejected",t),this.name="SubscriptionRejectedError"}}class sC extends Ba{constructor(t){super(t||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Yi extends Ba{constructor(t,e){e?super(t,e):super("Disconnected",t),this.name="DisconnectedError"}}class aC extends Yi{constructor(t){super(t,"stale_connection"),this.name="StaleConnectionError"}}function sg(n){return n?`{${Object.keys(n).sort().filter(t=>n[t]!==void 0).map(t=>{let e=JSON.stringify(n[t]);return`${JSON.stringify(t)}:${e}`}).join(",")}}`:""}class lC{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,e){if(!this._info)return this._info={id:t,info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((e,{id:r,info:f})=>(e[r]=f,e),{})}}const Cs=Symbol("state");class ag{constructor(t={}){this.emitter=Ul(),this.params=Object.freeze(t),this.presence=new lC(this),this.initialConnect=!0,this[Cs]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=sg({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Cs]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[Cs]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Cs]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[Cs]="connected";let t=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[Cs]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[Cs]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,e)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(t,e){this.emit("message",t,e)}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}emit(t,...e){return this.emitter.emit(t,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((t,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(f=>f()),t()})),r.push(this.on("close",f=>{r.forEach(g=>g()),e(f||new Ba("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class cC{constructor(t){this.id=t,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(t){this.channels.includes(t)||this.channels.push(t)}remove(t){let e=this.channels.indexOf(t);e>-1&&this.channels.splice(e,1)}notify(t,...e){this.state=t==="restored"?"connected":t,e.length===1?this.channels.forEach(r=>r[t](e[0])):this.channels.forEach(r=>r[t]())}pending(t){this._checkIntent(t);let e=this._pendings[0];return!e||e.intent!==t?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(t){this._checkIntent(t);let e,r={promise:new Promise(g=>{e=g}),intent:t,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},f=this._pendingTop;return this._pendings.push(r),f&&await f.promise,this.gvl&&await this.gvl.acquire(r,t),r.acquired=!0,r}close(t){this.disposed=!0,this.intent=void 0,this.notify("closed",t)}_checkIntent(t){if(!(t==="unsubscribed"||t==="subscribed"))throw Error(`Unknown subscription intent: ${t}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(t){let e=this._pendingTop;return!e||e.acquired||e.intent!==t?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class uC{constructor(){this.queue=[]}async acquire(t,e){e==="subscribed"&&(this.queue.push(t.promise.then(()=>{this.queue.splice(this.queue.indexOf(t),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class hC{constructor(t){t.concurrentSubscribes===!1&&(this.glv=new uC),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(t){return this._subscriptions[t]}create(t,{subscribe:e,unsubscribe:r}){let f=this._subscriptions[t]=new cC(t);return f.remoteId=this._localToRemote[t],f.subscriber=e,f.unsubscriber=r,f.gvl=this.glv,f}remove(t){delete this._subscriptions[t],delete this._localToRemote[t]}storeRemoteId(t,e){this._localToRemote[t]=e;let r=this.get(t);r&&(r.remoteId=e)}}class dC{constructor(t={}){this.subscriptions=new hC(t),this._pendingMessages=[],this._remoteToLocal={}}subscribe(t,e){this._remoteToLocal[e]=t,this.subscriptions.storeRemoteId(t,e),this.flush(e)}unsubscribe(t){let e=this.subscriptions.get(t);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(t)}transmit(t,e,r){let f=this._remoteToLocal[t];if(!f){this._pendingMessages.push([t,e,r]);return}let g=this.subscriptions.get(f);g&&g.channels.forEach(m=>{m.receive(e,r)})}notify(t,e,r){let f=this._remoteToLocal[t];if(!f)return;let g=this.subscriptions.get(f);g&&g.channels.forEach(m=>m.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(t=>t.channels)}flush(t){let e=[];for(let r of this._pendingMessages)r[0]===t?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const lg={debug:0,info:1,warn:2,error:3};class cg{constructor(t){this.level=t||"warn"}log(t,e,r){lg[t]<lg[this.level]||this.writeLogEntry(t,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}}class za extends cg{writeLogEntry(){}}class pC{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch{}}}let fC=0;class ug{constructor(t={}){let{logger:e}=t;this.logger=e||new za,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=t.subscribeCooldownInterval||250,this.subscribeRetryInterval=t.subscribeRetryInterval||5e3}attached(t){this.cable=t}subscribe(t,e){let r={channel:t};e&&Object.assign(r,e);let f=sg(r);if(this.pendingUnsubscriptions[f]){let m=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${m}`,f),new Promise(w=>{setTimeout(()=>{w(this.subscribe(t,e))},m)})}if(this.pendingSubscriptions[f])return this.logger.warn("subscription is already pending, skipping",f),Promise.reject(Error("Already subscribing"));let g=this.subscribeRetryInterval;return new Promise((m,w)=>{let h=++fC;this.pendingSubscriptions[f]={resolve:m,reject:w,id:h},this.cable.send(this.buildSubscribeRequest(f)),this.maybeRetrySubscribe(h,f,g)})}buildSubscribeRequest(t){return{command:"subscribe",identifier:t}}maybeRetrySubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(t,e,r))},r)}maybeExpireSubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(delete this.pendingSubscriptions[e],f.reject(new sC(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(t){return this.cable.send({command:"unsubscribe",identifier:t}),this.pendingUnsubscriptions[t]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[t]},this.subscribeCooldownInterval),Promise.resolve()}perform(t,e,r){return e==="$whisper"?this.whisper(t,r):(r||(r={}),r.action=e,this.cable.send({command:"message",identifier:t,data:JSON.stringify(r)}),Promise.resolve())}whisper(t,e){return this.cable.send({command:"whisper",identifier:t,data:e}),Promise.resolve()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f,reason:g,reconnect:m}=t;if(e==="ping")return this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="welcome"){let w=t.sid;return w&&this.cable.setSessionId(w),this.cable.connected()}if(e==="disconnect"){let w=new Yi(g);this.reset(w),m===!1?this.cable.closed(w):this.cable.disconnected(w);return}if(e==="confirm_subscription"){let w=this.pendingSubscriptions[r];if(!w){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],w.resolve(r)}if(e==="reject_subscription"){let w=this.pendingSubscriptions[r];return w?(delete this.pendingSubscriptions[r],w.reject(new Lu)):this.logger.error("subscription not found",{type:e,identifier:r})}if(f)return{identifier:r,message:f};this.logger.warn(`unknown message type: ${e}`,{message:t})}reset(t){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(t);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const hg=()=>Date.now()/1e3|0;class gC extends ug{constructor(t={}){super(t),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=t.historyTimestamp,this.disableSessionRecovery=t.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=hg()),this.sessionId=void 0,this.sendPongs=t.pongs}reset(t){for(let e in this.pendingPresence)this.pendingPresence[e].reject(t);return this.pendingPresence={},super.reset()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f}=t;if(e==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(t);if(e==="reject_subscription")return super.receive(t);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(t);if(e==="ping")return this.restoreSince&&(this.restoreSince=hg()),this.sendPongs&&this.sendPong(),this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",t),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",t),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.disableSessionRecovery||(this.sessionId=t.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),t.restored){let g=t.restored_ids||Object.keys(this.subscriptionStreams);for(let m of g)this.cable.send({identifier:m,command:"history",history:this.historyRequestFor(m)}),this.presenceInfo[m]&&this.cable.send({identifier:m,command:"join",presence:this.presenceInfo[m]});return this.cable.restored(g)}return this.cable.connected(this.sessionId)}if(e==="presence"){let g=f.type;if(g==="info"){let m=this.pendingPresence[r];m&&(delete this.pendingPresence[r],m.resolve(f))}else if(g==="error"){let m=this.pendingPresence[r];m&&(delete this.pendingPresence[r],m.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:f}}if(f){let g=this.trackStreamPosition(r,t.stream_id,t.epoch,t.offset);return{identifier:r,message:f,meta:g}}this.logger.warn(`unknown message type: ${e}`,{message:t})}perform(t,e,r){switch(e){case"$presence:join":return this.join(t,r);case"$presence:leave":return this.leave(t,r);case"$presence:info":return this.presence(t,r)}return super.perform(t,e,r)}unsubscribe(t){return delete this.presenceInfo[t],super.unsubscribe(t)}buildSubscribeRequest(t){let e=super.buildSubscribeRequest(t),r=this.historyRequestFor(t);r&&(e.history=r,this.pendingHistory[t]=!0);let f=this.presenceInfo[t];return f&&(e.presence=f),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(t){let e={},r=!1;if(this.subscriptionStreams[t])for(let f of this.subscriptionStreams[t]){let g=this.streamsPositions[f];g&&(r=!0,e[f]=g)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(t,e,r,f){if(!(!e||!r))return this.subscriptionStreams[t]||(this.subscriptionStreams[t]=new Set),this.subscriptionStreams[t].add(e),this.streamsPositions[e]={epoch:r,offset:f},{stream:e,epoch:r,offset:f}}async sendPong(){await new Promise(t=>setTimeout(t,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(t,e){return this.presenceInfo[t]=e,this.cable.send({command:"join",identifier:t,presence:e}),Promise.resolve()}async leave(t,e){return delete this.presenceInfo[t],this.cable.send({command:"leave",identifier:t,presence:e}),Promise.resolve()}presence(t,e){return this.pendingPresence[t]?(this.logger.warn("presence is already pending, skipping",t),Promise.reject(Error("presence request is already pending"))):new Promise((r,f)=>{this.pendingPresence[t]={resolve:r,reject:f},this.cable.send({command:"presence",identifier:t,data:e})})}}class mC extends Ba{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Ou extends ag{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}Rl(Ou,"identifier","__ghost__");const vC="$pubsub";class Nu extends ag{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}Rl(Nu,"identifier",vC);const ks=Symbol("state");let yC=class{constructor({transport:n,protocol:t,encoder:e,logger:r,lazy:f,hubOptions:g,performFailures:m,transportConfigurator:w}){this.emitter=Ul(),this.transport=n,this.encoder=e,this.logger=r||new za,this.protocol=t,this.performFailures=m||"throw",this.protocol.attached(this),this.hub=new dC(g||{}),this[ks]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=w,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,f===!1&&this.connect().catch(()=>{})}get state(){return this[ks]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[ks]="connecting";let t=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:n}),await this.transport.open()}catch(e){this.handleClose(e)}return t}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ks]="connected",this.recovering&&this.hub.subscriptions.all().forEach(t=>t.notify("disconnected",new Yi("recovery_failed"))),this.hub.subscriptions.all().forEach(t=>this._resubscribe(t));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[ks]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Yi("recovery_failed")),this._resubscribe(r))});let t=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}notify(n,t,e){t&&typeof t!="string"&&(e=t,t=void 0),t?this.hub.notify(t,"info",{type:n,data:e}):this.emit("info",{type:n,data:e})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Yi(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[ks]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(t=>t.notify("connecting")):this.hub.subscriptions.all().forEach(t=>{t.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let t;n&&(t=n instanceof Yi?n:new Yi(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[ks]="closed";let e=t||new Yi("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",t)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let t=this.encoder.decode(n);if(t===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",t);let e=this.protocol.receive(t);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:f,message:g,meta:m}=e;r?this.hub.notify(f,r,g):this.hub.transmit(f,g,m)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let t=this.encoder.encode(n);if(t===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(t)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let t=new Nu({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new Nu({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=Ou),e=r?new n(r,t):new n(t),this.subscribe(e)}subscribe(n){if(!n.attached(this))return n;let t=n.identifier;n.connecting();let e=this.hub.subscriptions.get(t)||this.hub.subscriptions.create(t,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(n),e.intent==="subscribed"&&e.state==="connected"&&n.connected(),e.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,t,e){let r=n.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let f=await n.acquire("subscribed");if(f.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),f.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),f.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),f.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),f.release();return}let g={identifier:t,params:e};this.logger.debug("subscribing",g);try{let m=await this.protocol.subscribe(t,e);this.hub.subscribe(r,m),this.logger.debug("subscribed",{...g,remoteId:m}),n.notify("connected")}catch(m){if(m){if(m instanceof Lu&&this.logger.warn("rejected",g),m instanceof Yi){this.logger.debug("disconnected during subscription; will retry on connect",g),f.release();return}this.logger.error("failed to subscribe",{error:m,...g})}n.close(m),this.hub.unsubscribe(r)}f.release()}unsubscribe(n){let t=n.identifier,e=this.hub.subscriptions.get(t);if(!e)throw Error(`Subscription not found: ${t}`);e.remove(n),n.closed(),e.maybeUnsubscribe()}async _unsubscribe(n){let t=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:t});let e=await n.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:t}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:t}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:t,intent:n.intent}),e.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:t}),e.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:t}),n.close(),this.hub.unsubscribe(t),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:t})}catch(f){f&&(f instanceof Yi?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:t,error:f}):this.logger.error("unsubscribe failed",{id:t,error:f}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(t)):n.state="closed",e.release()}async perform(n,t,e){if(this.performFailures==="throw")return this._perform(n,t,e);try{return await this._perform(n,t,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,t,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new mC;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let f=r.remoteId,g={id:f,action:t,payload:e};this.logger.debug("perform",g);try{let m=await this.protocol.perform(f,t,e);return m&&this.logger.debug("perform result",{message:m,request:g}),m}catch(m){throw this.logger.error("perform failed",{error:m,request:g}),m}}on(n,t){return this.emitter.on(n,t)}once(n,t){let e=this.emitter.on(n,(...r)=>{e(),t(...r)});return e}emit(n,...t){return this.emitter.emit(n,...t)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,t)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),n()})),e.push(this.on("close",r=>{e.forEach(f=>f()),t(r)})),e.push(this.on("disconnect",r=>{e.forEach(f=>f()),t(r)}))}),this._pendingConnect)}};const bC={maxMissingPings:2,maxReconnectAttempts:1/0},ia=()=>Date.now(),dg=(n,t)=>{t=t||{};let{backoffRate:e,jitterRatio:r,maxInterval:f}=t;return e=e||2,r===void 0&&(r=.5),g=>{let m=n*e**g,w=m*e,h=m+(w-m)*Math.random(),d=2*(Math.random()-.5)*r;return h=h*(1+d),f&&f<h&&(h=f),h}};let pg=class{constructor({pingInterval:n,...t}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(t=Object.assign({},bC,t),this.strategy=t.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=t.maxMissingPings,this.maxReconnectAttempts=t.maxReconnectAttempts,this.logger=t.logger||new za,this.state="pending_connect",this.attempts=0,this.disconnectedAt=ia()}watch(n){this.target=n,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=ia(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=ia(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=ia(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=ia()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=ia()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new aC))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class wC{constructor(t,e={}){this.transports=t,this.transport=null,this.emitter=Ul(),this.unbind=[],this.logger=e.logger||new za}displayName(){return"fallbacked transport"}async open(){for(let t=0;t<this.transports.length;t++){let e=this.transports[t];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${e.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(t){if(!this.transport)throw new Error("No transport is open");this.transport.send(t)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(t,e){this.transports.forEach(r=>{r.setParam(t,e)})}setToken(t,e){this.transports.forEach(r=>{r.setToken(t,e)})}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(t=>t()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",t=>{this.emitter.emit("data",t)}),this.transport.on("close",t=>{this.emitter.emit("close",t)}),this.transport.on("error",t=>{this.emitter.emit("error",t)}))}}class xC{constructor(t,e={}){this.url=t;let r=e.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Ul();let{format:f,subprotocol:g,authStrategy:m}=e;this.format=f||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=m||"param",this.authProtocol="",this.subprotocol=g}displayName(){return"WebSocket("+this.url+")"}open(){let t=this.subprotocol;return this.authStrategy==="sub-protocol"&&(t=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,t,this.connectionOptions):this.ws=new this.Impl(this.url,t),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,r)=>{let f=[];f.push(this.once("open",()=>{f.forEach(g=>g()),e()})),f.push(this.once("close",()=>{f.forEach(g=>g()),r(Error("WS connection closed"))}))})}setURL(t){this.url=t}setParam(t,e){let r=new URL(this.url);r.searchParams.set(t,e);let f=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(f)}setToken(t,e="jid"){if(this.authStrategy==="param")this.setParam(e,t);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${e}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(f=>f.toLowerCase()===r)||r,this.connectionOptions.headers[r]=t}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${t}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(t){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(t)}close(){this.ws?this.onclose():this.connected=!1}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}initListeners(){this.ws.onerror=t=>{this.connected&&this.emitter.emit("error",t.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=t=>{let e=t.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const fg={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function CC(n,t){if(typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),t=t||{},!n&&!t.transport)throw Error("URL or transport must be specified");t=Object.assign({},fg,t);let{protocol:e,websocketImplementation:r,websocketFormat:f,websocketOptions:g,websocketAuthStrategy:m,fallbacks:w,logLevel:h,logger:d,transport:a,encoder:l,lazy:u,monitor:c,pingInterval:i,reconnectStrategy:s,maxMissingPings:p,maxReconnectAttempts:b,subprotocol:x,tokenRefresher:R,historyTimestamp:_,protocolOptions:k,concurrentSubscribes:C,performFailures:L,transportConfigurator:D,auth:E}=t;if(d=d||new za(h),typeof e=="string"){x=x||e;let P=e.substring(0,e.lastIndexOf("-")),O=e.substring(e.lastIndexOf("-")+1);if(k=k||{},P==="actioncable-v1")e=new ug({logger:d,...k});else if(P==="actioncable-v1-ext")e=new gC({logger:d,historyTimestamp:_,...k});else throw Error(`Protocol is not supported yet: ${e}`);if(O==="json")l=l||new pC,f=f||"text";else if(O==="msgpack"){if(f="binary",!l)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(O==="protobuf"){if(f=f||"binary",!l)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");a=a||new xC(n,{websocketImplementation:r,websocketOptions:g,subprotocol:x,authStrategy:m,format:f}),w&&(a=new wC([a,...w],{logger:d})),E&&E.token&&a.setToken(E.token,E.param||"jid"),s=s||dg(i),c!==!1&&(c=c||new pg({pingInterval:i,reconnectStrategy:s,maxMissingPings:p,maxReconnectAttempts:b,logger:d}));let I={concurrentSubscribes:C},z=new yC({protocol:e,transport:a,encoder:l,logger:d,lazy:u,hubOptions:I,performFailures:L,transportConfigurator:D});return c&&(c.watch(z),z.monitor=c),R&&kC(z,async()=>{try{await R(a)}catch(P){return d.error("Failed to refresh authentication token: "+P),!1}return z.connect().catch(()=>{}),!0}),z}function kC(n,t){let e=!1;n.on("connect",()=>e=!1),n.on("close",async r=>{if(r){if(e){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await t())}})}class AC{constructor(t){this.channel=t}notify(t,...e){typeof this[t]=="function"&&this[t](...e)}perform(t,e={}){this.channel.perform(t,e)}send(t){this.channel.send(t)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class SC extends Ou{constructor(t,e,r){super(t,e),this.subscription=new AC(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:f})=>this.subscription.notify("connected",{reconnected:f})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",f=>this.subscription.notify("received",f)),this.on("close",f=>{f&&f instanceof Lu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class _C{constructor(t){this.cable=t}create(t,e){let r,f;typeof t=="object"?(r=t.channel,delete t.channel,f=t):(r=t,f={});let g=new SC(r,f,e);return g.subscription.notify("initialized"),this.cable.subscribe(g),g.subscription}findAll(t){return this.cable.hub.channels.filter(e=>e.identifier===t).map(e=>e.subscription)}}class $C{constructor(t){this.cable=t,this.subscriptions=new _C(t)}}class TC extends cg{writeLogEntry(t,e,r){r?console[t](e,r):console[t](e)}}class MC extends pg{watch(t){super.watch(t),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let t=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=f=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:f})},r=()=>this.disconnect(new Yi("page_frozen"));document.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",t,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(t){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:t.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(t))}}const IC=["cable","action-cable"],EC="/cable",Vl=(n,t)=>{for(let e of IC){let r=n.head.querySelector(`meta[name='${e}-${t}']`);if(r)return r.getAttribute("content")}},gg=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,RC=()=>{if(typeof document<"u"&&document.head){let n=Vl(document,"url");if(n)return gg(n)}return gg(EC)},LC=()=>{if(typeof document<"u"&&document.head){let n=Vl(document,"history-timestamp");if(n)return n|0}},OC=()=>{if(typeof document<"u"&&document.head)return Vl(document,"token")},NC=()=>{if(typeof document<"u"&&document.head)return Vl(document,"token-param")};function DC(n,t){typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),n=n||RC(),t=t||{},t.historyTimestamp||(t.historyTimestamp=LC());let e=OC();if(e){let d=NC();t.auth=Object.assign({token:e,param:d},t.auth||{})}t=Object.assign({},fg,t);let{logLevel:r,logger:f,pingInterval:g,reconnectStrategy:m,maxMissingPings:w,maxReconnectAttempts:h}=t;return f=t.logger=t.logger||new TC(r),m=t.reconnectStrategy=t.reconnectStrategy||dg(g),t.monitor!==!1&&(t.monitor=t.monitor||new MC({pingInterval:g,reconnectStrategy:m,maxMissingPings:w,maxReconnectAttempts:h,logger:f})),CC(n,t)}function FC(n,t){let e=DC(n,t);return new $C(e)}class PC{constructor(t="/openc3-api/cable"){this._cable=null,this._url=t}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(t,e,r={},f={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(g=>{if(g&&OpenC3Auth.setTokens(),this._cable==null){let m=this._url+"?scope="+encodeURIComponent(e)+"&authorization="+encodeURIComponent(localStorage.openc3Token);m=new URL(m,document.baseURI).href,this._cable=FC(m)}return this._cable.subscriptions.create({channel:t,...f},r)})}recordPing(){}}gr("P",PC);class WC{constructor(t,e,r="",f=""){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=r,this.url=f}}gr("k",WC);function Ha(n){return BC.test(n)}const BC=/^-?[0-9]+$/;function mg(n){return zC.test(n)}const zC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function vg(n,t){if(Ha(n))return Number.isSafeInteger(Number.parseInt(n,10));const e=Number.parseFloat(n),r=String(e);if(n===r)return!0;const f=yg(n),g=yg(r);return!!(f===g||(t==null?void 0:t.approx)===!0&&!Ha(n)&&g.length>=14&&f.startsWith(g.substring(0,14)))}let ja=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function HC(n){if(vg(n,{approx:!1}))return;if(Ha(n))return ja.truncate_integer;const t=Number.parseFloat(n);return Number.isFinite(t)?t===0?ja.underflow:ja.truncate_float:ja.overflow}function yg(n){const{start:t,end:e}=jC(n),r=n.substring(t,e),f=r.indexOf(".");return f===-1?r:r.substring(0,f)+r.substring(f+1)}function jC(n){let t=0;for(n[0]==="-"&&t++;n[t]==="0"||n[t]===".";)t++;let e=n.lastIndexOf("e");for(e===-1&&(e=n.lastIndexOf("E")),e===-1&&(e=n.length);(n[e-1]==="0"||n[e-1]===".")&&e>t;)e--;return{start:t,end:e}}class UC{constructor(t){if(Rl(this,"isLosslessNumber",!0),!mg(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=HC(this.value);if(t===void 0||t===ja.truncate_float)return Number.parseFloat(this.value);if(Ha(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function VC(n){return n&&typeof n=="object"&&n.isLosslessNumber||!1}function qC(n){return new UC(n)}function KC(n,t){return Du({"":n},"",n,t)}function Du(n,t,e,r){return Array.isArray(e)?r.call(n,t,YC(e,r)):e&&typeof e=="object"&&!VC(e)?r.call(n,t,GC(e,r)):r.call(n,t,e)}function GC(n,t){for(const e of Object.keys(n)){const r=Du(n,e,n[e],t);r!==void 0?n[e]=r:delete n[e]}return n}function YC(n,t){for(let e=0;e<n.length;e++)n[e]=Du(n,String(e),n[e],t);return n}function XC(n,t,e){const r=typeof e=="function"?{parseNumber:e}:e,f=(r==null?void 0:r.parseNumber)??qC,g=(r==null?void 0:r.onDuplicateKey)??L;let m=0;const w=a();return b(w),R(),t?KC(w,t):w;function h(){if(n.charCodeAt(m)===nk){m++,u();const B={};let U=!0;for(;m<n.length&&n.charCodeAt(m)!==wg;){U?U=!1:(s(),u());const K=m,Q=c();if(Q===void 0){C();return}u(),p();const J=a();if(J===void 0){P();return}if(Object.prototype.hasOwnProperty.call(B,Q)&&!Fu(J,B[Q])){const he=g({key:Q,position:K+1,oldValue:B[Q],newValue:J});he!==void 0&&(B[Q]=he)}else B[Q]=J}return n.charCodeAt(m)!==wg&&D(),m++,B}}function d(){if(n.charCodeAt(m)===rk){m++,u();const B=[];let U=!0;for(;m<n.length&&n.charCodeAt(m)!==xg;){U?U=!1:s();const K=a();x(K),B.push(K)}return n.charCodeAt(m)!==xg&&E(),m++,B}}function a(){u();const B=c()??i()??h()??d()??l("true",!0)??l("false",!1)??l("null",null);return u(),B}function l(B,U){if(n.slice(m,m+B.length)===B)return m+=B.length,U}function u(){for(;ZC(n.charCodeAt(m));)m++}function c(){if(n.charCodeAt(m)===Pu){m++;let B="";for(;m<n.length&&n.charCodeAt(m)!==Pu;){if(n.charCodeAt(m)===tk){const U=n[m+1],K=ek[U];K!==void 0?(B+=K,m++):U==="u"?ql(n.charCodeAt(m+2))&&ql(n.charCodeAt(m+3))&&ql(n.charCodeAt(m+4))&&ql(n.charCodeAt(m+5))?(B+=String.fromCharCode(Number.parseInt(n.slice(m+2,m+6),16)),m+=5):O(m):z(m)}else JC(n.charCodeAt(m))?B+=n[m]:I(n[m]);m++}return k(),m++,B}}function i(){const B=m;if(n.charCodeAt(m)===Cg&&(m++,_(B)),n.charCodeAt(m)===Wu)m++;else if(QC(n.charCodeAt(m)))for(m++;Kl(n.charCodeAt(m));)m++;if(n.charCodeAt(m)===hk)for(m++,_(B);Kl(n.charCodeAt(m));)m++;if(n.charCodeAt(m)===mk||n.charCodeAt(m)===gk)for(m++,(n.charCodeAt(m)===Cg||n.charCodeAt(m)===lk)&&m++,_(B);Kl(n.charCodeAt(m));)m++;if(m>B)return f(n.slice(B,m))}function s(){if(n.charCodeAt(m)!==uk)throw new SyntaxError(`Comma ',' expected after value ${N()}`);m++}function p(){if(n.charCodeAt(m)!==dk)throw new SyntaxError(`Colon ':' expected after property name ${N()}`);m++}function b(B){if(B===void 0)throw new SyntaxError(`JSON value expected ${N()}`)}function x(B){if(B===void 0)throw new SyntaxError(`Array item expected ${N()}`)}function R(){if(m<n.length)throw new SyntaxError(`Expected end of input ${N()}`)}function _(B){if(!Kl(n.charCodeAt(m))){const U=n.slice(B,m);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${N()}`)}}function k(){if(n.charCodeAt(m)!==Pu)throw new SyntaxError(`End of string '"' expected ${N()}`)}function C(){throw new SyntaxError(`Quoted object key expected ${N()}`)}function L(B){let{key:U,position:K}=B;throw new SyntaxError(`Duplicate key '${U}' encountered at position ${K}`)}function D(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${N()}`)}function E(){throw new SyntaxError(`Array item or end of array ']' expected ${N()}`)}function I(B){throw new SyntaxError(`Invalid character '${B}' ${$()}`)}function z(B){const U=n.slice(B,B+2);throw new SyntaxError(`Invalid escape character '${U}' ${$()}`)}function P(){throw new SyntaxError(`Object value expected after ':' ${$()}`)}function O(B){const U=n.slice(B,B+6);throw new SyntaxError(`Invalid unicode character '${U}' ${$()}`)}function $(){return`at position ${m}`}function A(){return m<n.length?`but got '${n[m]}'`:"but reached end of input"}function N(){return`${A()} ${$()}`}}function ZC(n){return n===ik||n===ok||n===sk||n===ak}function ql(n){return n>=Wu&&n<=Bu||n>=pk&&n<=vk||n>=fk&&n<=yk}function Kl(n){return n>=Wu&&n<=Bu}function QC(n){return n>=ck&&n<=Bu}function JC(n){return n>=32&&n<=1114111}function Fu(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>Fu(e,t[r])):bg(n)&&bg(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>Fu(n[e],t[e])):!1}function bg(n){return typeof n=="object"&&n!==null}const ek={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
1398
|
-
`,r:"\r",t:" "},tk=92,nk=123,wg=125,rk=91,xg=93,ik=32,ok=10,sk=9,ak=13,Pu=34,lk=43,Cg=45,Wu=48,ck=49,Bu=57,uk=44,hk=46,dk=58,pk=65,fk=97,gk=69,mk=101,vk=70,yk=102;function kg(n,t,e,r){return f(n);function f(h,d){if(Array.isArray(r)){const a=r.find(l=>l.test(h));if(a){const l=a.stringify(h);if(typeof l!="string"||!mg(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h!=null&&h.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return g(h);if(h&&typeof h=="object")return m(h)}function g(h,d){if(h.length===0)return"[]";let a="[";for(let l=0;l<h.length;l++){const u=h[l];typeof u<"u"&&typeof u!="function"?a+=f(u):a+="null",l<h.length-1&&(a+=",")}return a+="]",a}function m(h,d){if(typeof h.toJSON=="function")return kg(h.toJSON(),t,e,void 0);const a=Array.isArray(t)?t.map(String):Object.keys(h);if(a.length===0)return"{}";let l=!0,u="{";for(const c of a){const i=h[c];if(w(c,i)){l?l=!1:u+=",";const s=JSON.stringify(c);u+=`${s}:`,u+=f(i)}}return u+="}",u}function w(h,d){return typeof d<"u"&&typeof d!="function"&&typeof d!="symbol"}}function bk(n){return Ha(n)&&!vg(n)?BigInt(n):parseFloat(n)}class As{constructor(){Rl(this,"id",1)}async exec(t,e,r={},f={},g=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,f.manual=!0,(await Eu.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...f},timeout:g,transformRequest:[(m,w)=>kg(m)],transformResponse:[m=>XC(m,void 0,bk)]})).data.result}catch(m){let w=new Error;throw m.response?(w.name=m.response.data.error.data.class,w.message=m.response.data.error.data.message,w.object=m.response.data.error):m.request?(w.name="Request error",w.message="Request error, no response received"):w=m,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,r,f,g){return this.exec("map_target_to_interface",[t,e],{cmd_only:r,tlm_only:f,unmap_old:g})}unmap_target_from_interface(t,e,r,f){return this.exec("unmap_target_from_interface",[t,e],{cmd_only:r,tlm_only:f})}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,...r){return this.exec("interface_cmd",[t,e,...r])}interface_target_enable(t,e,r=!1,f=!1){return this.exec("interface_target_enable",[t,e],{cmd_only:r,tlm_only:f})}interface_target_disable(t,e,r=!1,f=!1){return this.exec("interface_target_disable",[t,e],{cmd_only:r,tlm_only:f})}interface_details(t){return this.exec("interface_details",[t])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(t,e,r,f,g){return this.exec("map_target_to_router",[t,e],{cmd_only:r,tlm_only:f,unmap_old:g})}unmap_target_from_router(t,e,r,f){return this.exec("unmap_target_from_router",[t,e],{cmd_only:r,tlm_only:f})}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}router_target_enable(t,e,r=!1,f=!1){return this.exec("router_target_enable",[t,e],{cmd_only:r,tlm_only:f})}router_target_disable(t,e,r=!1,f=!1){return this.exec("router_target_disable",[t,e],{cmd_only:r,tlm_only:f})}router_details(t){return this.exec("router_details",[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,r){return this.exec("get_item",[t,e,r])}get_param(t,e,r){return this.exec("get_param",[t,e,r])}get_parameter(t,e,r){return this.exec("get_param",[t,e,r])}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])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,e,r,f=30){const g=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(g!=null){let m=g.length,w=null;for(let h=0;h<m;h++)w=this.decode_openc3_type(g[h][1]),w!==null&&(g[h][1]=w)}return g}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}get_tlm_available(t){return this.exec("get_tlm_available",[t])}async get_tlm_values(t,e=30,r=null,f=null,g=null){let m={stale_time:e};r!==null&&(m.cache_timeout=r),f!==null&&(m.start_time=f.toISOString()),g!==null&&(m.end_time=g.toISOString());const w=await this.exec("get_tlm_values",[t],m,{},1e4);if(w&&w.length>0){let h=w.length,d=null;for(let a=0;a<h;a++)d=this.decode_openc3_type(w[a][0]),d!==null&&(w[a][0]=d)}return w}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let g=null;if(e===void 0)g=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))g=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else g=await this.exec("tlm",[t,e,r],{type:f});let m=this.decode_openc3_type(g);return m!==null&&(g=m),g}async inject_tlm(t,e,r=null,f="CONVERTED"){await this.exec("inject_tlm",[t,e,r],{type:f})}set_tlm(t,e,r,f){return this.exec("set_tlm",[t,e,r],{type:f})}override_tlm(t,e,r,f){return this.exec("override_tlm",[t,e,r],{type:f})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,r,f){return this.exec("normalize_tlm",[t,e,r],{type:f})}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,r,f="CONVERTED"){return this.exec("get_cmd_value",[t,e,r,f])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,r,f,g,m={}){let w=null;for(let h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w=this.encode_openc3_type(f[h]),w!==null&&(f[h]=w));return this.exec(t,[e,r,f],m,g)}get_cmd_hazardous(t,e,r,f={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},f):this._cmd("get_cmd_hazardous",t,e,r,f)}cmd(t,e,r,f={},g={}){return e===void 0?this.exec("cmd",t,g,f):this._cmd("cmd",t,e,r,f,g)}cmd_no_range_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_range_check",t,g,f):this._cmd("cmd_no_range_check",t,e,r,f,g)}cmd_raw(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw",t,g,f):this._cmd("cmd_raw",t,e,r,f,g)}cmd_raw_no_range_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,g,f):this._cmd("cmd_raw_no_range_check",t,e,r,f,g)}cmd_no_hazardous_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,g,f):this._cmd("cmd_no_hazardous_check",t,e,r,f,g)}cmd_no_checks(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_checks",t,g,f):this._cmd("cmd_no_checks",t,e,r,f,g)}cmd_raw_no_hazardous_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,g,f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f,g)}cmd_raw_no_checks(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_checks",t,g,f):this._cmd("cmd_raw_no_checks",t,e,r,f,g)}build_cmd(t,e,r,f={},g={}){return e===void 0?this.exec("build_cmd",t,g,f):this._cmd("build_cmd",t,e,r,f,g)}build_command(t,e,r,f={},g={}){return e===void 0?this.exec("build_cmd",t,g,f):this._cmd("build_cmd",t,e,r,f,g)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_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,r){return this.exec("save_config",[t,e,r])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,r){return this.exec("enable_limits",[t,e,r])}disable_limits(t,e,r){return this.exec("disable_limits",[t,e,r])}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,e){return this.exec("get_setting",[t],e)}get_settings(t,e){return this.exec("get_settings",t,e)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}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),r=await crypto.subtle.digest("SHA-256",e),f=new Uint8Array(r);return Array.from(f).map(g=>g.toString(16).padStart(2,"0")).join("")}}}gr("B",As);var Ag={exports:{}},Sg;function wk(){return Sg||(Sg=1,function(n,t){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,f){function g(d,a){function l(E,I,z){if(!(E.length<I)){var P=E.slice(0,I),O=E.slice(I),$=/^(?:(\s+)|(\S+)(\s+))/.exec(O),A=/(?:(\s+)|(\s+)(\S+))$/.exec(P),N=0,B=0;if(A&&!A[2]&&(N=I-A[1].length,B=I),$&&!$[2]&&(N||(N=I),B=I+$[1].length),N)return{start:N,end:B};if(A&&A[2]&&A.index>z)return{start:A.index,end:A.index+A[2].length};if($&&$[2])return N=I+$[2].length,{start:N,end:N+$[3].length}}}for(var u=a.column||d.getOption("printMarginColumn"),c=a.allowMerge!=0,i=Math.min(a.startRow,a.endRow),s=Math.max(a.startRow,a.endRow),p=d.session;i<=s;){var b=p.getLine(i);if(b.length>u){var x=l(b,u,5);if(x){var R=/^\s*/.exec(b)[0];p.replace(new w(i,x.start,i,x.end),`
|
|
1397
|
+
`+f):e.stack=f}catch{}}throw e}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=ws(this.defaults,t);const{transitional:e,paramsSerializer:r,headers:f}=t;e!==void 0&&Hl.assertOptions(e,{silentJSONParsing:co.transitional(co.boolean),forcedJSONParsing:co.transitional(co.boolean),clarifyTimeoutError:co.transitional(co.boolean)},!1),r!=null&&(Ae.isFunction(r)?t.paramsSerializer={serialize:r}:Hl.assertOptions(r,{encode:co.function,serialize:co.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Hl.assertOptions(t,{baseUrl:co.spelling("baseURL"),withXsrfToken:co.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let g=f&&Ae.merge(f.common,f[t.method]);f&&Ae.forEach(["delete","get","head","post","put","patch","common"],c=>{delete f[c]}),t.headers=si.concat(g,f);const m=[];let w=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(t)===!1||(w=w&&c.synchronous,m.unshift(c.fulfilled,c.rejected))});const h=[];this.interceptors.response.forEach(function(c){h.push(c.fulfilled,c.rejected)});let d,a=0,l;if(!w){const c=[tg.bind(this),void 0];for(c.unshift(...m),c.push(...h),l=c.length,d=Promise.resolve(t);a<l;)d=d.then(c[a++],c[a++]);return d}l=m.length;let u=t;for(;a<l;){const c=m[a++],i=m[a++];try{u=c(u)}catch(s){i.call(this,s);break}}try{d=tg.call(this,u)}catch(c){return Promise.reject(c)}for(a=0,l=h.length;a<l;)d=d.then(h[a++],h[a++]);return d}getUri(n){n=ws(this.defaults,n);const t=Uf(n.baseURL,n.url,n.allowAbsoluteUrls);return Nf(t,n.params,n.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(n){xs.prototype[n]=function(t,e){return this.request(ws(e||{},{method:n,url:t,data:(e||{}).data}))}}),Ae.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(ws(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}xs.prototype[n]=t(),xs.prototype[n+"Form"]=t(!0)});let rC=class iw{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new ra(f,g,m),e(r.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=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new iw(function(e){t=e}),cancel:t}}};function iC(n){return function(t){return n.apply(null,t)}}function oC(n){return Ae.isObject(n)&&n.isAxiosError===!0}const Iu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Iu).forEach(([n,t])=>{Iu[t]=n});function ig(n){const t=new xs(n),e=wf(xs.prototype.request,t);return Ae.extend(e,xs.prototype,t,{allOwnKeys:!0}),Ae.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return ig(ws(n,r))},e}const Kn=ig(Pa);Kn.Axios=xs,Kn.CanceledError=ra,Kn.CancelToken=rC,Kn.isCancel=Bf,Kn.VERSION=ng,Kn.toFormData=Fl,Kn.AxiosError=kt,Kn.Cancel=Kn.CanceledError,Kn.all=function(n){return Promise.all(n)},Kn.spread=iC,Kn.isAxiosError=oC,Kn.mergeConfig=ws,Kn.AxiosHeaders=si,Kn.formToJSON=n=>Pf(Ae.isHTMLForm(n)?new FormData(n):n),Kn.getAdapter=eg.getAdapter,Kn.HttpStatusCode=Iu,Kn.default=Kn;const{Axios:ZN,AxiosError:QN,CanceledError:JN,isCancel:eD,CancelToken:tD,VERSION:nD,all:rD,Cancel:iD,isAxiosError:oD,spread:sD,toFormData:aD,AxiosHeaders:lD,HttpStatusCode:cD,formToJSON:uD,getAdapter:hD,mergeConfig:dD}=Kn,Eu=Kn.create({baseURL:location.origin,timeout:6e4,params:{}});Eu.interceptors.response.use(n=>n,n=>{var t,e,r,f,g,m,w,h,d,a,l;if(n.response){if(n.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(i){i&&OpenC3Auth.setTokens()}),n.response.config.headers["Ignore-Errors"]&&n.response.config.headers["Ignore-Errors"].includes(n.response.status.toString()))return Promise.reject(n);let u=`HTTP ${n.response.status} - `;(t=n.response)!=null&&t.statusText&&(u+=`${n.response.statusText} `),(r=(e=n.response)==null?void 0:e.config)!=null&&r.data&&(u+=`${n.response.config.data} `),(g=(f=n.response)==null?void 0:f.data)!=null&&g.message?u+=`${n.response.data.message}`:(w=(m=n.response)==null?void 0:m.data)!=null&&w.exception?u+=`${n.response.data.exception}`:(a=(d=(h=n.response)==null?void 0:h.data)==null?void 0:d.error)!=null&&a.message?(n.response.data.error.class&&(u+=`${n.response.data.error.class} `),u+=`${n.response.data.error.message}`):u+=`${(l=n.response)==null?void 0:l.data}`;const{$cosmosNotify:c}=window;throw c&&c.serious({title:"Network error",body:u}),n}else throw n});const jl=async function(n,t,{data:e,params:r={},headers:f,noAuth:g=!1,noScope:m=!1,onUploadProgress:w=!1}={}){if(!g){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}f.Authorization=localStorage.openc3Token}return f.manual=!0,!m&&!r.scope&&(r.scope=window.openc3Scope),Eu({method:n,url:t,data:e,params:r,headers:f,onUploadProgress:w})},Ru={Accept:"application/json"},og={...Ru,"Content-Type":"application/json"},pD=sr("F",{get:function(n,{params:t,headers:e=Ru,noScope:r,noAuth:f,onUploadProgress:g}={}){return jl("get",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:g})},put:function(n,{data:t,params:e,headers:r=og,noScope:f,noAuth:g,onUploadProgress:m}={}){return jl("put",n,{data:t,params:e,headers:r,noScope:f,noAuth:g,onUploadProgress:m})},post:function(n,{data:t,params:e,headers:r=og,noScope:f,noAuth:g,onUploadProgress:m}={}){return jl("post",n,{data:t,params:e,headers:r,noScope:f,noAuth:g,onUploadProgress:m})},delete:function(n,{params:t,headers:e=Ru,noScope:r,noAuth:f,onUploadProgress:g}={}){return jl("delete",n,{params:t,headers:e,noScope:r,noAuth:f,onUploadProgress:g})}});let Ul=()=>({emit(n,...t){for(let e=this.events[n]||[],r=0,f=e.length;r<f;r++)e[r](...t)},events:{},on(n,t){var e;return((e=this.events)[n]||(e[n]=[])).push(t),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(f=>t!==f)}}});class Ba extends Error{constructor(t,e){t instanceof Error?(super(t.message),this.cause=t):super(t),this.reason=e,this.name="ReasonError"}}class Lu extends Ba{constructor(t){super("Rejected",t),this.name="SubscriptionRejectedError"}}class sC extends Ba{constructor(t){super(t||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class Yi extends Ba{constructor(t,e){e?super(t,e):super("Disconnected",t),this.name="DisconnectedError"}}class aC extends Yi{constructor(t){super(t,"stale_connection"),this.name="StaleConnectionError"}}function sg(n){return n?`{${Object.keys(n).sort().filter(t=>n[t]!==void 0).map(t=>{let e=JSON.stringify(n[t]);return`${JSON.stringify(t)}:${e}`}).join(",")}}`:""}class lC{constructor(t){this.channel=t,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",t=>{if(t.type==="info"){this._state||(this._state=this.stateFromInfo(t));return}this._state&&(t.type==="join"?this._state[t.id]=t.info:t.type==="leave"&&delete this._state[t.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(t=>t()),this.listeners.length=0}async join(t,e){if(!this._info)return this._info={id:t,info:e},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let t=await this.channel.perform("$presence:leave");return delete this._info,t}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let t=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(t),this._state}finally{delete this._promise}}stateFromInfo(t){return t.records.reduce((e,{id:r,info:f})=>(e[r]=f,e),{})}}const Cs=Symbol("state");class ag{constructor(t={}){this.emitter=Ul(),this.params=Object.freeze(t),this.presence=new lC(this),this.initialConnect=!0,this[Cs]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=sg({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Cs]}attached(t){if(this.receiver){if(this.receiver!==t)throw Error("Already connected to a different receiver");return!1}return this.receiver=t,!0}connecting(){this[Cs]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Cs]="connected";let t=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(){if(this.state==="connected")throw Error("Already connected");this[Cs]="connected";let t=!0,e=!0;this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}disconnected(t){this.state==="disconnected"||this.state==="closed"||(this[Cs]="disconnected",this.presence.reset(),this.emit("disconnect",t))}closed(t){this.state!=="closed"&&(this[Cs]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",t))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(t,e){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,t,e)}async send(t){return this.perform(void 0,t)}async whisper(t){try{await this.perform("$whisper",t)}catch(e){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",e)}}receive(t,e){this.emit("message",t,e)}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}emit(t,...e){return this.emitter.emit(t,...e)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((t,e)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(f=>f()),t()})),r.push(this.on("close",f=>{r.forEach(g=>g()),e(f||new Ba("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class cC{constructor(t){this.id=t,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(t){this.channels.includes(t)||this.channels.push(t)}remove(t){let e=this.channels.indexOf(t);e>-1&&this.channels.splice(e,1)}notify(t,...e){this.state=t==="restored"?"connected":t,e.length===1?this.channels.forEach(r=>r[t](e[0])):this.channels.forEach(r=>r[t]())}pending(t){this._checkIntent(t);let e=this._pendings[0];return!e||e.intent!==t?Promise.resolve():e.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(t){this._checkIntent(t);let e,r={promise:new Promise(g=>{e=g}),intent:t,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),e(r)},canceled:!1,acquired:!1},f=this._pendingTop;return this._pendings.push(r),f&&await f.promise,this.gvl&&await this.gvl.acquire(r,t),r.acquired=!0,r}close(t){this.disposed=!0,this.intent=void 0,this.notify("closed",t)}_checkIntent(t){if(!(t==="unsubscribed"||t==="subscribed"))throw Error(`Unknown subscription intent: ${t}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(t){let e=this._pendingTop;return!e||e.acquired||e.intent!==t?!1:(this._pendings.pop(),e.canceled=!0,!0)}}class uC{constructor(){this.queue=[]}async acquire(t,e){e==="subscribed"&&(this.queue.push(t.promise.then(()=>{this.queue.splice(this.queue.indexOf(t),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class hC{constructor(t){t.concurrentSubscribes===!1&&(this.glv=new uC),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(t){return this._subscriptions[t]}create(t,{subscribe:e,unsubscribe:r}){let f=this._subscriptions[t]=new cC(t);return f.remoteId=this._localToRemote[t],f.subscriber=e,f.unsubscriber=r,f.gvl=this.glv,f}remove(t){delete this._subscriptions[t],delete this._localToRemote[t]}storeRemoteId(t,e){this._localToRemote[t]=e;let r=this.get(t);r&&(r.remoteId=e)}}class dC{constructor(t={}){this.subscriptions=new hC(t),this._pendingMessages=[],this._remoteToLocal={}}subscribe(t,e){this._remoteToLocal[e]=t,this.subscriptions.storeRemoteId(t,e),this.flush(e)}unsubscribe(t){let e=this.subscriptions.get(t);if(!e)return;let r=e.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(t)}transmit(t,e,r){let f=this._remoteToLocal[t];if(!f){this._pendingMessages.push([t,e,r]);return}let g=this.subscriptions.get(f);g&&g.channels.forEach(m=>{m.receive(e,r)})}notify(t,e,r){let f=this._remoteToLocal[t];if(!f)return;let g=this.subscriptions.get(f);g&&g.channels.forEach(m=>m.emit(e,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(t=>t.channels)}flush(t){let e=[];for(let r of this._pendingMessages)r[0]===t?this.transmit(r[0],r[1],r[2]):e.push(r);this._pendingMessages=e}}const lg={debug:0,info:1,warn:2,error:3};class cg{constructor(t){this.level=t||"warn"}log(t,e,r){lg[t]<lg[this.level]||this.writeLogEntry(t,e,r)}writeLogEntry(){throw Error("Not implemented")}debug(t,e){this.log("debug",t,e)}info(t,e){this.log("info",t,e)}warn(t,e){this.log("warn",t,e)}error(t,e){this.log("error",t,e)}}class za extends cg{writeLogEntry(){}}class pC{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch{}}}let fC=0;class ug{constructor(t={}){let{logger:e}=t;this.logger=e||new za,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=t.subscribeCooldownInterval||250,this.subscribeRetryInterval=t.subscribeRetryInterval||5e3}attached(t){this.cable=t}subscribe(t,e){let r={channel:t};e&&Object.assign(r,e);let f=sg(r);if(this.pendingUnsubscriptions[f]){let m=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${m}`,f),new Promise(w=>{setTimeout(()=>{w(this.subscribe(t,e))},m)})}if(this.pendingSubscriptions[f])return this.logger.warn("subscription is already pending, skipping",f),Promise.reject(Error("Already subscribing"));let g=this.subscribeRetryInterval;return new Promise((m,w)=>{let h=++fC;this.pendingSubscriptions[f]={resolve:m,reject:w,id:h},this.cable.send(this.buildSubscribeRequest(f)),this.maybeRetrySubscribe(h,f,g)})}buildSubscribeRequest(t){return{command:"subscribe",identifier:t}}maybeRetrySubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,e),this.cable.send(this.buildSubscribeRequest(e)),this.maybeExpireSubscribe(t,e,r))},r)}maybeExpireSubscribe(t,e,r){setTimeout(()=>{let f=this.pendingSubscriptions[e];f&&f.id===t&&(delete this.pendingSubscriptions[e],f.reject(new sC(`Haven't received subscription ack in ${r*2}ms for ${e}`)))},r)}unsubscribe(t){return this.cable.send({command:"unsubscribe",identifier:t}),this.pendingUnsubscriptions[t]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[t]},this.subscribeCooldownInterval),Promise.resolve()}perform(t,e,r){return e==="$whisper"?this.whisper(t,r):(r||(r={}),r.action=e,this.cable.send({command:"message",identifier:t,data:JSON.stringify(r)}),Promise.resolve())}whisper(t,e){return this.cable.send({command:"whisper",identifier:t,data:e}),Promise.resolve()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f,reason:g,reconnect:m}=t;if(e==="ping")return this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="welcome"){let w=t.sid;return w&&this.cable.setSessionId(w),this.cable.connected()}if(e==="disconnect"){let w=new Yi(g);this.reset(w),m===!1?this.cable.closed(w):this.cable.disconnected(w);return}if(e==="confirm_subscription"){let w=this.pendingSubscriptions[r];if(!w){this.logger.error("subscription not found, unsubscribing",{type:e,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],w.resolve(r)}if(e==="reject_subscription"){let w=this.pendingSubscriptions[r];return w?(delete this.pendingSubscriptions[r],w.reject(new Lu)):this.logger.error("subscription not found",{type:e,identifier:r})}if(f)return{identifier:r,message:f};this.logger.warn(`unknown message type: ${e}`,{message:t})}reset(t){for(let e in this.pendingSubscriptions)this.pendingSubscriptions[e].reject(t);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const hg=()=>Date.now()/1e3|0;class gC extends ug{constructor(t={}){super(t),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=t.historyTimestamp,this.disableSessionRecovery=t.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=hg()),this.sessionId=void 0,this.sendPongs=t.pongs}reset(t){for(let e in this.pendingPresence)this.pendingPresence[e].reject(t);return this.pendingPresence={},super.reset()}receive(t){if(typeof t!="object"){this.logger.error("unsupported message format",{message:t});return}let{type:e,identifier:r,message:f}=t;if(e==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(t);if(e==="reject_subscription")return super.receive(t);if(e==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(t);if(e==="ping")return this.restoreSince&&(this.restoreSince=hg()),this.sendPongs&&this.sendPong(),this.cable.keepalive(t.message);if(this.cable.keepalive(),e==="confirm_history"){this.logger.debug("history result received",t),this.cable.notify("history_received",r);return}if(e==="reject_history"){this.logger.warn("failed to retrieve history",t),this.cable.notify("history_not_found",r);return}if(e==="welcome"){if(this.disableSessionRecovery||(this.sessionId=t.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),t.restored){let g=t.restored_ids||Object.keys(this.subscriptionStreams);for(let m of g)this.cable.send({identifier:m,command:"history",history:this.historyRequestFor(m)}),this.presenceInfo[m]&&this.cable.send({identifier:m,command:"join",presence:this.presenceInfo[m]});return this.cable.restored(g)}return this.cable.connected(this.sessionId)}if(e==="presence"){let g=f.type;if(g==="info"){let m=this.pendingPresence[r];m&&(delete this.pendingPresence[r],m.resolve(f))}else if(g==="error"){let m=this.pendingPresence[r];m&&(delete this.pendingPresence[r],m.reject(new Error("failed to retrieve presence")))}return{type:e,identifier:r,message:f}}if(f){let g=this.trackStreamPosition(r,t.stream_id,t.epoch,t.offset);return{identifier:r,message:f,meta:g}}this.logger.warn(`unknown message type: ${e}`,{message:t})}perform(t,e,r){switch(e){case"$presence:join":return this.join(t,r);case"$presence:leave":return this.leave(t,r);case"$presence:info":return this.presence(t,r)}return super.perform(t,e,r)}unsubscribe(t){return delete this.presenceInfo[t],super.unsubscribe(t)}buildSubscribeRequest(t){let e=super.buildSubscribeRequest(t),r=this.historyRequestFor(t);r&&(e.history=r,this.pendingHistory[t]=!0);let f=this.presenceInfo[t];return f&&(e.presence=f),e}recoverableClosure(){return!!this.sessionId}historyRequestFor(t){let e={},r=!1;if(this.subscriptionStreams[t])for(let f of this.subscriptionStreams[t]){let g=this.streamsPositions[f];g&&(r=!0,e[f]=g)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:e}}trackStreamPosition(t,e,r,f){if(!(!e||!r))return this.subscriptionStreams[t]||(this.subscriptionStreams[t]=new Set),this.subscriptionStreams[t].add(e),this.streamsPositions[e]={epoch:r,offset:f},{stream:e,epoch:r,offset:f}}async sendPong(){await new Promise(t=>setTimeout(t,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(t,e){return this.presenceInfo[t]=e,this.cable.send({command:"join",identifier:t,presence:e}),Promise.resolve()}async leave(t,e){return delete this.presenceInfo[t],this.cable.send({command:"leave",identifier:t,presence:e}),Promise.resolve()}presence(t,e){return this.pendingPresence[t]?(this.logger.warn("presence is already pending, skipping",t),Promise.reject(Error("presence request is already pending"))):new Promise((r,f)=>{this.pendingPresence[t]={resolve:r,reject:f},this.cable.send({command:"presence",identifier:t,data:e})})}}class mC extends Ba{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Ou extends ag{constructor(t,e){super(e),this.channelId=t}set channelId(t){this._channelId=t}get channelId(){return this._channelId}}Rl(Ou,"identifier","__ghost__");const vC="$pubsub";class Nu extends ag{async perform(t,e){if(t.startsWith("$"))return super.perform(t,e);throw Error("not implemented")}}Rl(Nu,"identifier",vC);const ks=Symbol("state");let yC=class{constructor({transport:n,protocol:t,encoder:e,logger:r,lazy:f,hubOptions:g,performFailures:m,transportConfigurator:w}){this.emitter=Ul(),this.transport=n,this.encoder=e,this.logger=r||new za,this.protocol=t,this.performFailures=m||"throw",this.protocol.attached(this),this.hub=new dC(g||{}),this[ks]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=w,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,f===!1&&this.connect().catch(()=>{})}get state(){return this[ks]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[ks]="connecting";let t=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:n}),await this.transport.open()}catch(e){this.handleClose(e)}return t}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[ks]="connected",this.recovering&&this.hub.subscriptions.all().forEach(t=>t.notify("disconnected",new Yi("recovery_failed"))),this.hub.subscriptions.all().forEach(t=>this._resubscribe(t));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[ks]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new Yi("recovery_failed")),this._resubscribe(r))});let t=!this.initialConnect,e=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}notify(n,t,e){t&&typeof t!="string"&&(e=t,t=void 0),t?this.hub.notify(t,"info",{type:n,data:e}):this.emit("info",{type:n,data:e})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new Yi(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[ks]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(t=>t.notify("connecting")):this.hub.subscriptions.all().forEach(t=>{t.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let t;n&&(t=n instanceof Yi?n:new Yi(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[ks]="closed";let e=t||new Yi("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",e)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",t)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let t=this.encoder.decode(n);if(t===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",t);let e=this.protocol.receive(t);if(e){this.logger.debug("processed incoming message",e);let{type:r,identifier:f,message:g,meta:m}=e;r?this.hub.notify(f,r,g):this.hub.transmit(f,g,m)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let t=this.encoder.encode(n);if(t===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(t)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let t=new Nu({stream_name:n});return this.subscribe(t)}streamFromSigned(n){let t=new Nu({signed_stream_name:n});return this.subscribe(t)}subscribeTo(n,t){let e,r;return typeof n=="string"&&(r=n,n=Ou),e=r?new n(r,t):new n(t),this.subscribe(e)}subscribe(n){if(!n.attached(this))return n;let t=n.identifier;n.connecting();let e=this.hub.subscriptions.get(t)||this.hub.subscriptions.create(t,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return e.add(n),e.intent==="subscribed"&&e.state==="connected"&&n.connected(),e.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,t,e){let r=n.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let f=await n.acquire("subscribed");if(f.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),f.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),f.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),f.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),f.release();return}let g={identifier:t,params:e};this.logger.debug("subscribing",g);try{let m=await this.protocol.subscribe(t,e);this.hub.subscribe(r,m),this.logger.debug("subscribed",{...g,remoteId:m}),n.notify("connected")}catch(m){if(m){if(m instanceof Lu&&this.logger.warn("rejected",g),m instanceof Yi){this.logger.debug("disconnected during subscription; will retry on connect",g),f.release();return}this.logger.error("failed to subscribe",{error:m,...g})}n.close(m),this.hub.unsubscribe(r)}f.release()}unsubscribe(n){let t=n.identifier,e=this.hub.subscriptions.get(t);if(!e)throw Error(`Subscription not found: ${t}`);e.remove(n),n.closed(),e.maybeUnsubscribe()}async _unsubscribe(n){let t=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:t});let e=await n.acquire("unsubscribed");if(e.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:t}),e.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:t}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:t,intent:n.intent}),e.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:t}),e.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:t}),n.close(),this.hub.unsubscribe(t),e.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:t})}catch(f){f&&(f instanceof Yi?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:t,error:f}):this.logger.error("unsubscribe failed",{id:t,error:f}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(t)):n.state="closed",e.release()}async perform(n,t,e){if(this.performFailures==="throw")return this._perform(n,t,e);try{return await this._perform(n,t,e)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,t,e){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new mC;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let f=r.remoteId,g={id:f,action:t,payload:e};this.logger.debug("perform",g);try{let m=await this.protocol.perform(f,t,e);return m&&this.logger.debug("perform result",{message:m,request:g}),m}catch(m){throw this.logger.error("perform failed",{error:m,request:g}),m}}on(n,t){return this.emitter.on(n,t)}once(n,t){let e=this.emitter.on(n,(...r)=>{e(),t(...r)});return e}emit(n,...t){return this.emitter.emit(n,...t)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,t)=>{let e=[()=>delete this._pendingConnect];e.push(this.on("connect",()=>{e.forEach(r=>r()),n()})),e.push(this.on("close",r=>{e.forEach(f=>f()),t(r)})),e.push(this.on("disconnect",r=>{e.forEach(f=>f()),t(r)}))}),this._pendingConnect)}};const bC={maxMissingPings:2,maxReconnectAttempts:1/0},ia=()=>Date.now(),dg=(n,t)=>{t=t||{};let{backoffRate:e,jitterRatio:r,maxInterval:f}=t;return e=e||2,r===void 0&&(r=.5),g=>{let m=n*e**g,w=m*e,h=m+(w-m)*Math.random(),d=2*(Math.random()-.5)*r;return h=h*(1+d),f&&f<h&&(h=f),h}};let pg=class{constructor({pingInterval:n,...t}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(t=Object.assign({},bC,t),this.strategy=t.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=t.maxMissingPings,this.maxReconnectAttempts=t.maxReconnectAttempts,this.logger=t.logger||new za,this.state="pending_connect",this.attempts=0,this.disconnectedAt=ia()}watch(n){this.target=n,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(n=>{this.logger.info("Failed at reconnecting: "+n)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=ia(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=ia(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=ia(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=ia()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(n=>n()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let n=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},n)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let n=ia()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new aC))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let n=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${n}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),n)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class wC{constructor(t,e={}){this.transports=t,this.transport=null,this.emitter=Ul(),this.unbind=[],this.logger=e.logger||new za}displayName(){return"fallbacked transport"}async open(){for(let t=0;t<this.transports.length;t++){let e=this.transports[t];try{this.transport=e,this.resetListeners(),this.logger.debug(`Trying to connect via ${e.displayName()}`),await e.open(),this.logger.debug(`Connected via ${e.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${e.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(t){if(!this.transport)throw new Error("No transport is open");this.transport.send(t)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(t,e){this.transports.forEach(r=>{r.setParam(t,e)})}setToken(t,e){this.transports.forEach(r=>{r.setToken(t,e)})}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(t=>t()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",t=>{this.emitter.emit("data",t)}),this.transport.on("close",t=>{this.emitter.emit("close",t)}),this.transport.on("error",t=>{this.emitter.emit("error",t)}))}}class xC{constructor(t,e={}){this.url=t;let r=e.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Ul();let{format:f,subprotocol:g,authStrategy:m}=e;this.format=f||"text",this.connectionOptions=e.websocketOptions,this.authStrategy=m||"param",this.authProtocol="",this.subprotocol=g}displayName(){return"WebSocket("+this.url+")"}open(){let t=this.subprotocol;return this.authStrategy==="sub-protocol"&&(t=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,t,this.connectionOptions):this.ws=new this.Impl(this.url,t),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,r)=>{let f=[];f.push(this.once("open",()=>{f.forEach(g=>g()),e()})),f.push(this.once("close",()=>{f.forEach(g=>g()),r(Error("WS connection closed"))}))})}setURL(t){this.url=t}setParam(t,e){let r=new URL(this.url);r.searchParams.set(t,e);let f=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(f)}setToken(t,e="jid"){if(this.authStrategy==="param")this.setParam(e,t);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${e}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(f=>f.toLowerCase()===r)||r,this.connectionOptions.headers[r]=t}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${t}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(t){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(t)}close(){this.ws?this.onclose():this.connected=!1}on(t,e){return this.emitter.on(t,e)}once(t,e){let r=this.emitter.on(t,(...f)=>{r(),e(...f)});return r}initListeners(){this.ws.onerror=t=>{this.connected&&this.emitter.emit("error",t.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=t=>{let e=t.data;this.format==="binary"&&(e=new Uint8Array(e)),this.emitter.emit("data",e)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const fg={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function CC(n,t){if(typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),t=t||{},!n&&!t.transport)throw Error("URL or transport must be specified");t=Object.assign({},fg,t);let{protocol:e,websocketImplementation:r,websocketFormat:f,websocketOptions:g,websocketAuthStrategy:m,fallbacks:w,logLevel:h,logger:d,transport:a,encoder:l,lazy:u,monitor:c,pingInterval:i,reconnectStrategy:s,maxMissingPings:p,maxReconnectAttempts:b,subprotocol:x,tokenRefresher:R,historyTimestamp:_,protocolOptions:k,concurrentSubscribes:C,performFailures:L,transportConfigurator:D,auth:E}=t;if(d=d||new za(h),typeof e=="string"){x=x||e;let P=e.substring(0,e.lastIndexOf("-")),O=e.substring(e.lastIndexOf("-")+1);if(k=k||{},P==="actioncable-v1")e=new ug({logger:d,...k});else if(P==="actioncable-v1-ext")e=new gC({logger:d,historyTimestamp:_,...k});else throw Error(`Protocol is not supported yet: ${e}`);if(O==="json")l=l||new pC,f=f||"text";else if(O==="msgpack"){if(f="binary",!l)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(O==="protobuf"){if(f=f||"binary",!l)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${e}`)}if(!e)throw Error("Protocol must be specified");a=a||new xC(n,{websocketImplementation:r,websocketOptions:g,subprotocol:x,authStrategy:m,format:f}),w&&(a=new wC([a,...w],{logger:d})),E&&E.token&&a.setToken(E.token,E.param||"jid"),s=s||dg(i),c!==!1&&(c=c||new pg({pingInterval:i,reconnectStrategy:s,maxMissingPings:p,maxReconnectAttempts:b,logger:d}));let I={concurrentSubscribes:C},z=new yC({protocol:e,transport:a,encoder:l,logger:d,lazy:u,hubOptions:I,performFailures:L,transportConfigurator:D});return c&&(c.watch(z),z.monitor=c),R&&kC(z,async()=>{try{await R(a)}catch(P){return d.error("Failed to refresh authentication token: "+P),!1}return z.connect().catch(()=>{}),!0}),z}function kC(n,t){let e=!1;n.on("connect",()=>e=!1),n.on("close",async r=>{if(r){if(e){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(e=!0,await t())}})}class AC{constructor(t){this.channel=t}notify(t,...e){typeof this[t]=="function"&&this[t](...e)}perform(t,e={}){this.channel.perform(t,e)}send(t){this.channel.send(t)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class SC extends Ou{constructor(t,e,r){super(t,e),this.subscription=new AC(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:f})=>this.subscription.notify("connected",{reconnected:f})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",f=>this.subscription.notify("received",f)),this.on("close",f=>{f&&f instanceof Lu?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class _C{constructor(t){this.cable=t}create(t,e){let r,f;typeof t=="object"?(r=t.channel,delete t.channel,f=t):(r=t,f={});let g=new SC(r,f,e);return g.subscription.notify("initialized"),this.cable.subscribe(g),g.subscription}findAll(t){return this.cable.hub.channels.filter(e=>e.identifier===t).map(e=>e.subscription)}}class $C{constructor(t){this.cable=t,this.subscriptions=new _C(t)}}class TC extends cg{writeLogEntry(t,e,r){r?console[t](e,r):console[t](e)}}class MC extends pg{watch(t){super.watch(t),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let t=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},e=f=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:f})},r=()=>this.disconnect(new Yi("page_frozen"));document.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",e,!1),window.addEventListener("resume",e,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",t,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("online",e,!1),window.removeEventListener("resume",e,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(t){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:t.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(t))}}const IC=["cable","action-cable"],EC="/cable",Vl=(n,t)=>{for(let e of IC){let r=n.head.querySelector(`meta[name='${e}-${t}']`);if(r)return r.getAttribute("content")}},gg=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,RC=()=>{if(typeof document<"u"&&document.head){let n=Vl(document,"url");if(n)return gg(n)}return gg(EC)},LC=()=>{if(typeof document<"u"&&document.head){let n=Vl(document,"history-timestamp");if(n)return n|0}},OC=()=>{if(typeof document<"u"&&document.head)return Vl(document,"token")},NC=()=>{if(typeof document<"u"&&document.head)return Vl(document,"token-param")};function DC(n,t){typeof n=="object"&&typeof t>"u"&&(t=n,n=void 0),n=n||RC(),t=t||{},t.historyTimestamp||(t.historyTimestamp=LC());let e=OC();if(e){let d=NC();t.auth=Object.assign({token:e,param:d},t.auth||{})}t=Object.assign({},fg,t);let{logLevel:r,logger:f,pingInterval:g,reconnectStrategy:m,maxMissingPings:w,maxReconnectAttempts:h}=t;return f=t.logger=t.logger||new TC(r),m=t.reconnectStrategy=t.reconnectStrategy||dg(g),t.monitor!==!1&&(t.monitor=t.monitor||new MC({pingInterval:g,reconnectStrategy:m,maxMissingPings:w,maxReconnectAttempts:h,logger:f})),CC(n,t)}function FC(n,t){let e=DC(n,t);return new $C(e)}class PC{constructor(t="/openc3-api/cable"){this._cable=null,this._url=t}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(t,e,r={},f={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(g=>{if(g&&OpenC3Auth.setTokens(),this._cable==null){let m=this._url+"?scope="+encodeURIComponent(e)+"&authorization="+encodeURIComponent(localStorage.openc3Token);m=new URL(m,document.baseURI).href,this._cable=FC(m)}return this._cable.subscriptions.create({channel:t,...f},r)})}recordPing(){}}sr("P",PC);class WC{constructor(t,e,r="",f=""){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=r,this.url=f}}sr("k",WC);function Ha(n){return BC.test(n)}const BC=/^-?[0-9]+$/;function mg(n){return zC.test(n)}const zC=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function vg(n,t){if(Ha(n))return Number.isSafeInteger(Number.parseInt(n,10));const e=Number.parseFloat(n),r=String(e);if(n===r)return!0;const f=yg(n),g=yg(r);return!!(f===g||(t==null?void 0:t.approx)===!0&&!Ha(n)&&g.length>=14&&f.startsWith(g.substring(0,14)))}let ja=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function HC(n){if(vg(n,{approx:!1}))return;if(Ha(n))return ja.truncate_integer;const t=Number.parseFloat(n);return Number.isFinite(t)?t===0?ja.underflow:ja.truncate_float:ja.overflow}function yg(n){const{start:t,end:e}=jC(n),r=n.substring(t,e),f=r.indexOf(".");return f===-1?r:r.substring(0,f)+r.substring(f+1)}function jC(n){let t=0;for(n[0]==="-"&&t++;n[t]==="0"||n[t]===".";)t++;let e=n.lastIndexOf("e");for(e===-1&&(e=n.lastIndexOf("E")),e===-1&&(e=n.length);(n[e-1]==="0"||n[e-1]===".")&&e>t;)e--;return{start:t,end:e}}class UC{constructor(t){if(Rl(this,"isLosslessNumber",!0),!mg(t))throw new Error(`Invalid number (value: "${t}")`);this.value=t}valueOf(){const t=HC(this.value);if(t===void 0||t===ja.truncate_float)return Number.parseFloat(this.value);if(Ha(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${t} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function VC(n){return n&&typeof n=="object"&&n.isLosslessNumber||!1}function qC(n){return new UC(n)}function KC(n,t){return Du({"":n},"",n,t)}function Du(n,t,e,r){return Array.isArray(e)?r.call(n,t,YC(e,r)):e&&typeof e=="object"&&!VC(e)?r.call(n,t,GC(e,r)):r.call(n,t,e)}function GC(n,t){for(const e of Object.keys(n)){const r=Du(n,e,n[e],t);r!==void 0?n[e]=r:delete n[e]}return n}function YC(n,t){for(let e=0;e<n.length;e++)n[e]=Du(n,String(e),n[e],t);return n}function XC(n,t,e){const r=typeof e=="function"?{parseNumber:e}:e,f=(r==null?void 0:r.parseNumber)??qC,g=(r==null?void 0:r.onDuplicateKey)??L;let m=0;const w=a();return b(w),R(),t?KC(w,t):w;function h(){if(n.charCodeAt(m)===nk){m++,u();const B={};let U=!0;for(;m<n.length&&n.charCodeAt(m)!==wg;){U?U=!1:(s(),u());const K=m,Q=c();if(Q===void 0){C();return}u(),p();const J=a();if(J===void 0){P();return}if(Object.prototype.hasOwnProperty.call(B,Q)&&!Fu(J,B[Q])){const he=g({key:Q,position:K+1,oldValue:B[Q],newValue:J});he!==void 0&&(B[Q]=he)}else B[Q]=J}return n.charCodeAt(m)!==wg&&D(),m++,B}}function d(){if(n.charCodeAt(m)===rk){m++,u();const B=[];let U=!0;for(;m<n.length&&n.charCodeAt(m)!==xg;){U?U=!1:s();const K=a();x(K),B.push(K)}return n.charCodeAt(m)!==xg&&E(),m++,B}}function a(){u();const B=c()??i()??h()??d()??l("true",!0)??l("false",!1)??l("null",null);return u(),B}function l(B,U){if(n.slice(m,m+B.length)===B)return m+=B.length,U}function u(){for(;ZC(n.charCodeAt(m));)m++}function c(){if(n.charCodeAt(m)===Pu){m++;let B="";for(;m<n.length&&n.charCodeAt(m)!==Pu;){if(n.charCodeAt(m)===tk){const U=n[m+1],K=ek[U];K!==void 0?(B+=K,m++):U==="u"?ql(n.charCodeAt(m+2))&&ql(n.charCodeAt(m+3))&&ql(n.charCodeAt(m+4))&&ql(n.charCodeAt(m+5))?(B+=String.fromCharCode(Number.parseInt(n.slice(m+2,m+6),16)),m+=5):O(m):z(m)}else JC(n.charCodeAt(m))?B+=n[m]:I(n[m]);m++}return k(),m++,B}}function i(){const B=m;if(n.charCodeAt(m)===Cg&&(m++,_(B)),n.charCodeAt(m)===Wu)m++;else if(QC(n.charCodeAt(m)))for(m++;Kl(n.charCodeAt(m));)m++;if(n.charCodeAt(m)===hk)for(m++,_(B);Kl(n.charCodeAt(m));)m++;if(n.charCodeAt(m)===mk||n.charCodeAt(m)===gk)for(m++,(n.charCodeAt(m)===Cg||n.charCodeAt(m)===lk)&&m++,_(B);Kl(n.charCodeAt(m));)m++;if(m>B)return f(n.slice(B,m))}function s(){if(n.charCodeAt(m)!==uk)throw new SyntaxError(`Comma ',' expected after value ${N()}`);m++}function p(){if(n.charCodeAt(m)!==dk)throw new SyntaxError(`Colon ':' expected after property name ${N()}`);m++}function b(B){if(B===void 0)throw new SyntaxError(`JSON value expected ${N()}`)}function x(B){if(B===void 0)throw new SyntaxError(`Array item expected ${N()}`)}function R(){if(m<n.length)throw new SyntaxError(`Expected end of input ${N()}`)}function _(B){if(!Kl(n.charCodeAt(m))){const U=n.slice(B,m);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${N()}`)}}function k(){if(n.charCodeAt(m)!==Pu)throw new SyntaxError(`End of string '"' expected ${N()}`)}function C(){throw new SyntaxError(`Quoted object key expected ${N()}`)}function L(B){let{key:U,position:K}=B;throw new SyntaxError(`Duplicate key '${U}' encountered at position ${K}`)}function D(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${N()}`)}function E(){throw new SyntaxError(`Array item or end of array ']' expected ${N()}`)}function I(B){throw new SyntaxError(`Invalid character '${B}' ${$()}`)}function z(B){const U=n.slice(B,B+2);throw new SyntaxError(`Invalid escape character '${U}' ${$()}`)}function P(){throw new SyntaxError(`Object value expected after ':' ${$()}`)}function O(B){const U=n.slice(B,B+6);throw new SyntaxError(`Invalid unicode character '${U}' ${$()}`)}function $(){return`at position ${m}`}function A(){return m<n.length?`but got '${n[m]}'`:"but reached end of input"}function N(){return`${A()} ${$()}`}}function ZC(n){return n===ik||n===ok||n===sk||n===ak}function ql(n){return n>=Wu&&n<=Bu||n>=pk&&n<=vk||n>=fk&&n<=yk}function Kl(n){return n>=Wu&&n<=Bu}function QC(n){return n>=ck&&n<=Bu}function JC(n){return n>=32&&n<=1114111}function Fu(n,t){return n===t?!0:Array.isArray(n)&&Array.isArray(t)?n.length===t.length&&n.every((e,r)=>Fu(e,t[r])):bg(n)&&bg(t)?[...new Set([...Object.keys(n),...Object.keys(t)])].every(e=>Fu(n[e],t[e])):!1}function bg(n){return typeof n=="object"&&n!==null}const ek={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
1398
|
+
`,r:"\r",t:" "},tk=92,nk=123,wg=125,rk=91,xg=93,ik=32,ok=10,sk=9,ak=13,Pu=34,lk=43,Cg=45,Wu=48,ck=49,Bu=57,uk=44,hk=46,dk=58,pk=65,fk=97,gk=69,mk=101,vk=70,yk=102;function kg(n,t,e,r){return f(n);function f(h,d){if(Array.isArray(r)){const a=r.find(l=>l.test(h));if(a){const l=a.stringify(h);if(typeof l!="string"||!mg(l))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${l})`);return l}}if(typeof h=="boolean"||typeof h=="number"||typeof h=="string"||h===null||h instanceof Date||h instanceof Boolean||h instanceof Number||h instanceof String)return JSON.stringify(h);if(h!=null&&h.isLosslessNumber||typeof h=="bigint")return h.toString();if(Array.isArray(h))return g(h);if(h&&typeof h=="object")return m(h)}function g(h,d){if(h.length===0)return"[]";let a="[";for(let l=0;l<h.length;l++){const u=h[l];typeof u<"u"&&typeof u!="function"?a+=f(u):a+="null",l<h.length-1&&(a+=",")}return a+="]",a}function m(h,d){if(typeof h.toJSON=="function")return kg(h.toJSON(),t,e,void 0);const a=Array.isArray(t)?t.map(String):Object.keys(h);if(a.length===0)return"{}";let l=!0,u="{";for(const c of a){const i=h[c];if(w(c,i)){l?l=!1:u+=",";const s=JSON.stringify(c);u+=`${s}:`,u+=f(i)}}return u+="}",u}function w(h,d){return typeof d<"u"&&typeof d!="function"&&typeof d!="symbol"}}function bk(n){return Ha(n)&&!vg(n)?BigInt(n):parseFloat(n)}class As{constructor(){Rl(this,"id",1)}async exec(t,e,r={},f={},g=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,f.manual=!0,(await Eu.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:e,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...f},timeout:g,transformRequest:[(m,w)=>kg(m)],transformResponse:[m=>XC(m,void 0,bk)]})).data.result}catch(m){let w=new Error;throw m.response?(w.name=m.response.data.error.data.class,w.message=m.response.data.error.data.message,w.object=m.response.data.error):m.request?(w.name="Request error",w.message="Request error, no response received"):w=m,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,r,f,g){return this.exec("map_target_to_interface",[t,e],{cmd_only:r,tlm_only:f,unmap_old:g})}unmap_target_from_interface(t,e,r,f){return this.exec("unmap_target_from_interface",[t,e],{cmd_only:r,tlm_only:f})}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,...r){return this.exec("interface_cmd",[t,e,...r])}interface_target_enable(t,e,r=!1,f=!1){return this.exec("interface_target_enable",[t,e],{cmd_only:r,tlm_only:f})}interface_target_disable(t,e,r=!1,f=!1){return this.exec("interface_target_disable",[t,e],{cmd_only:r,tlm_only:f})}interface_details(t){return this.exec("interface_details",[t])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(t,e,r,f,g){return this.exec("map_target_to_router",[t,e],{cmd_only:r,tlm_only:f,unmap_old:g})}unmap_target_from_router(t,e,r,f){return this.exec("unmap_target_from_router",[t,e],{cmd_only:r,tlm_only:f})}connect_router(t){return this.exec("connect_router",[t])}disconnect_router(t){return this.exec("disconnect_router",[t])}router_target_enable(t,e,r=!1,f=!1){return this.exec("router_target_enable",[t,e],{cmd_only:r,tlm_only:f})}router_target_disable(t,e,r=!1,f=!1){return this.exec("router_target_disable",[t,e],{cmd_only:r,tlm_only:f})}router_details(t){return this.exec("router_details",[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,r){return this.exec("get_item",[t,e,r])}get_param(t,e,r){return this.exec("get_param",[t,e,r])}get_parameter(t,e,r){return this.exec("get_param",[t,e,r])}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])}get_all_tlm_item_names(t){return this.exec("get_all_tlm_item_names",[t])}async get_tlm_packet(t,e,r,f=30){const g=await this.exec("get_tlm_packet",[t,e],{type:r,stale_time:f});if(g!=null){let m=g.length,w=null;for(let h=0;h<m;h++)w=this.decode_openc3_type(g[h][1]),w!==null&&(g[h][1]=w)}return g}get_packet_derived_items(t,e){return this.exec("get_packet_derived_items",[t,e])}get_tlm_buffer(t,e){return this.exec("get_tlm_buffer",[t,e])}get_tlm_available(t){return this.exec("get_tlm_available",[t])}async get_tlm_values(t,e=30,r=null,f=null,g=null){let m={stale_time:e};r!==null&&(m.cache_timeout=r),f!==null&&(m.start_time=f.toISOString()),g!==null&&(m.end_time=g.toISOString());const w=await this.exec("get_tlm_values",[t],m,{},1e4);if(w&&w.length>0){let h=w.length,d=null;for(let a=0;a<h;a++)d=this.decode_openc3_type(w[a][0]),d!==null&&(w[a][0]=d)}return w}get_limits(t,e,r){return this.exec("get_limits",[t,e,r])}async tlm(t,e,r,f="CONVERTED"){let g=null;if(e===void 0)g=await this.exec("tlm",[t]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(e))g=await this.exec("tlm",[t],{type:e});else{let w=new Error;throw w.name="TypeError",w.message=`Invalid data type ${e}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,w}else g=await this.exec("tlm",[t,e,r],{type:f});let m=this.decode_openc3_type(g);return m!==null&&(g=m),g}async inject_tlm(t,e,r=null,f="CONVERTED"){await this.exec("inject_tlm",[t,e,r],{type:f})}set_tlm(t,e,r,f){return this.exec("set_tlm",[t,e,r],{type:f})}override_tlm(t,e,r,f){return this.exec("override_tlm",[t,e,r],{type:f})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(t,e,r,f){return this.exec("normalize_tlm",[t,e,r],{type:f})}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,r,f="CONVERTED"){return this.exec("get_cmd_value",[t,e,r,f])}get_cmd_buffer(t,e){return this.exec("get_cmd_buffer",[t,e])}_cmd(t,e,r,f,g,m={}){let w=null;for(let h in f)Object.prototype.hasOwnProperty.call(f,h)&&(w=this.encode_openc3_type(f[h]),w!==null&&(f[h]=w));return this.exec(t,[e,r,f],m,g)}get_cmd_hazardous(t,e,r,f={}){return e===void 0?this.exec("get_cmd_hazardous",t,{},f):this._cmd("get_cmd_hazardous",t,e,r,f)}cmd(t,e,r,f={},g={}){return e===void 0?this.exec("cmd",t,g,f):this._cmd("cmd",t,e,r,f,g)}cmd_no_range_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_range_check",t,g,f):this._cmd("cmd_no_range_check",t,e,r,f,g)}cmd_raw(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw",t,g,f):this._cmd("cmd_raw",t,e,r,f,g)}cmd_raw_no_range_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_range_check",t,g,f):this._cmd("cmd_raw_no_range_check",t,e,r,f,g)}cmd_no_hazardous_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_hazardous_check",t,g,f):this._cmd("cmd_no_hazardous_check",t,e,r,f,g)}cmd_no_checks(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_no_checks",t,g,f):this._cmd("cmd_no_checks",t,e,r,f,g)}cmd_raw_no_hazardous_check(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_hazardous_check",t,g,f):this._cmd("cmd_raw_no_hazardous_check",t,e,r,f,g)}cmd_raw_no_checks(t,e,r,f={},g={}){return e===void 0?this.exec("cmd_raw_no_checks",t,g,f):this._cmd("cmd_raw_no_checks",t,e,r,f,g)}build_cmd(t,e,r,f={},g={}){return e===void 0?this.exec("build_cmd",t,g,f):this._cmd("build_cmd",t,e,r,f,g)}build_command(t,e,r,f={},g={}){return e===void 0?this.exec("build_cmd",t,g,f):this._cmd("build_cmd",t,e,r,f,g)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_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,r){return this.exec("save_config",[t,e,r])}delete_config(t,e){return this.exec("delete_config",[t,e])}enable_limits(t,e,r){return this.exec("enable_limits",[t,e,r])}disable_limits(t,e,r){return this.exec("disable_limits",[t,e,r])}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,e){return this.exec("get_setting",[t],e)}get_settings(t,e){return this.exec("get_settings",t,e)}set_setting(t,e){return this.exec("set_setting",[t,e])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}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),r=await crypto.subtle.digest("SHA-256",e),f=new Uint8Array(r);return Array.from(f).map(g=>g.toString(16).padStart(2,"0")).join("")}}}sr("B",As);var Ag={exports:{}},Sg;function wk(){return Sg||(Sg=1,function(n,t){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(e,r,f){function g(d,a){function l(E,I,z){if(!(E.length<I)){var P=E.slice(0,I),O=E.slice(I),$=/^(?:(\s+)|(\S+)(\s+))/.exec(O),A=/(?:(\s+)|(\s+)(\S+))$/.exec(P),N=0,B=0;if(A&&!A[2]&&(N=I-A[1].length,B=I),$&&!$[2]&&(N||(N=I),B=I+$[1].length),N)return{start:N,end:B};if(A&&A[2]&&A.index>z)return{start:A.index,end:A.index+A[2].length};if($&&$[2])return N=I+$[2].length,{start:N,end:N+$[3].length}}}for(var u=a.column||d.getOption("printMarginColumn"),c=a.allowMerge!=0,i=Math.min(a.startRow,a.endRow),s=Math.max(a.startRow,a.endRow),p=d.session;i<=s;){var b=p.getLine(i);if(b.length>u){var x=l(b,u,5);if(x){var R=/^\s*/.exec(b)[0];p.replace(new w(i,x.start,i,x.end),`
|
|
1399
1399
|
`+R)}s++}else if(c&&/\S/.test(b)&&i!=s){var _=p.getLine(i+1);if(_&&/\S/.test(_)){var k=b.replace(/\s+$/,""),C=_.replace(/^\s+/,""),L=k+" "+C,x=l(L,u,5);if(x&&x.start>k.length||L.length<u){var D=new w(i,k.length,i+1,_.length-C.length);p.replace(D," "),i--,s--}else k.length<b.length&&p.remove(new w(i,k.length,i,b.length))}}i++}}function m(d){if(d.command.name=="insertstring"&&/\S/.test(d.args)){var a=d.editor,l=a.selection.cursor;if(l.column<=a.renderer.$printMarginColumn)return;var u=a.session.$undoManager.$lastDelta;g(a,{startRow:l.row,endRow:l.row,allowMerge:!1}),u!=a.session.$undoManager.$lastDelta&&a.session.markUndoGroup()}}var w=e("../range").Range,h=e("../editor").Editor;e("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(d){d?this.commands.on("afterExec",m):this.commands.off("afterExec",m)},value:!1}}),r.hardWrap=g}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/ext/hardwrap","ace/multi_select"],function(e,r,f){function g(y){return{row:y.line,column:y.ch}}function m(y){return new Ne(y.row,y.column)}function w(y,T,S){if(T.line===S.line&&T.ch>=S.ch-1){var F=y.getLine(T.line),W=F.charCodeAt(T.ch);55296<=W&&W<=55551&&(S.ch+=1)}return{start:T,end:S}}function h(y){y.setOption("disableInput",!0),y.setOption("showCursorWhenSelecting",!1),We.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",ns),L(y),We.on(y.getInputField(),"paste",a(y))}function d(y){y.setOption("disableInput",!1),y.off("cursorActivity",ns),We.off(y.getInputField(),"paste",a(y)),y.state.vim=null,Ar&&clearTimeout(Ar)}function a(y){var T=y.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Un.enterInsertMode(y,{},T))}),T.onPasteFn}function l(y,T){return T>=y.firstLine()&&T<=y.lastLine()}function u(y){return/^[a-z]$/.test(y)}function c(y){return"()[]{}".indexOf(y)!=-1}function i(y){return ka.test(y)}function s(y){return rn.test(y)}function p(y){return/^\s*$/.test(y)}function b(y){return".?!".indexOf(y)!=-1}function x(y,T){for(var S=0;S<T.length;S++)if(T[S]==y)return!0;return!1}function R(y,T,S,F,W){if(T===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(S||(S="string"),Ut[y]={type:S,defaultValue:T,callback:W},F)for(var H=0;H<F.length;H++)Ut[F[H]]=Ut[y];T&&_(y,T)}function _(y,T,S,F){var W=Ut[y];F=F||{};var H=F.scope;if(!W)return new Error("Unknown option: "+y);if(W.type=="boolean"){if(T&&T!==!0)return new Error("Invalid argument: "+y+"="+T);T!==!1&&(T=!0)}W.callback?(H!=="local"&&W.callback(T,void 0),H!=="global"&&S&&W.callback(T,S)):(H!=="local"&&(W.value=W.type=="boolean"?!!T:T),H!=="global"&&S&&(S.state.vim.options[y]={value:T}))}function k(y,T,S){var F=Ut[y];S=S||{};var W=S.scope;if(!F)return new Error("Unknown option: "+y);if(F.callback){var H=T&&F.callback(void 0,T);return W!=="global"&&H!==void 0?H:W!=="local"?F.callback():void 0}var H=W!=="global"&&T&&T.state.vim.options[y];return(H||W!=="local"&&F||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Hn()}function L(y){return y.state.vim||(y.state.vim={inputState:new $,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{},expectLiteralNext:!1}),y.state.vim}function D(){He={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Wi(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var y in Ut){var T=Ut[y];T.value=T.defaultValue}}function E(y){function T(Y){typeof Y=="string"?Sn.value=Y:Sn=null}if(y[0]=="<"){var S=y.toLowerCase().slice(1,-1),F=S.split("-");if(S=F.pop()||"",S=="lt")y="<";else if(S=="space")y=" ";else if(S=="cr")y=`
|
|
1400
1400
|
`;else if(Bi[S]){var W=Sn.value,H={key:Bi[S],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};Sn.onKeyDown&&Sn.onKeyDown(H,Sn.value,T),Sn&&Sn.onKeyUp&&Sn.onKeyUp(H,Sn.value,T);return}}if(y==`
|
|
1401
1401
|
`){var q=Sn;Sn=null,q.onClose&&q.onClose(q.value)}else Sn.value=(Sn.value||"")+y}function I(y,T,S){var F=hn;if(S){if(Zr.indexOf(S)!=-1)return;Zr.push(S),hn=S.noremap!=0}try{for(var W=L(y),H=/<(?:[CSMA]-)*\w+>|./gi,q;q=H.exec(T);){var Y=q[0],Z=W.insertMode;if(Sn){E(Y);continue}var re=vt.handleKey(y,Y,"mapping");if(!re&&Z&&W.insertMode){if(Y[0]=="<"){var ae=Y.toLowerCase().slice(1,-1),be=ae.split("-");if(ae=be.pop()||"",ae=="lt")Y="<";else if(ae=="space")Y=" ";else if(ae=="cr")Y=`
|
|
1402
1402
|
`;else{if(Bi.hasOwnProperty(ae)){Y=Bi[ae],is(y,Y);continue}Y=Y[0],H.lastIndex=q.index+1}}y.replaceSelection(Y)}}}finally{if(Zr.pop(),hn=Zr.length?F:!1,!Zr.length&&Sn){var ke=Sn;Sn=null,wr(y,ke)}}}function z(y,T){var S=y.key;if(!Qr[S]){S.length>1&&S[0]=="n"&&(S=S.replace("Numpad","")),S=rr[S]||S;var F="";if(y.ctrlKey&&(F+="C-"),y.altKey&&(F+="A-"),y.metaKey&&(F+="M-"),We.isMac&&y.altKey&&!y.metaKey&&!y.ctrlKey&&(F=F.slice(2)),(F||S.length>1)&&y.shiftKey&&(F+="S-"),T&&!T.expectLiteralNext&&S.length==1){if(Zn.keymap&&S in Zn.keymap)(Zn.remapCtrl!=0||!F)&&(S=Zn.keymap[S]);else if(S.charCodeAt(0)>255){var W=y.code&&y.code.slice(-1)||"";y.shiftKey||(W=W.toLowerCase()),W&&(S=W)}}return F+=S,F.length>1&&(F="<"+F+">"),F}}function P(y,T){Zn.string!==y&&(Zn=O(y)),Zn.remapCtrl=T}function O(y){function T(F){return F.split(/\\?(.)/).filter(Boolean)}var S={};return y?(y.split(/((?:[^\\,]|\\.)+),/).map(function(F){if(F){var W=F.split(/((?:[^\\;]|\\.)+);/);if(W.length==3){var H=T(W[1]),q=T(W[2]);if(H.length!==q.length)return;for(var Y=0;Y<H.length;++Y)S[H[Y]]=q[Y]}else if(W.length==1){var Z=T(F);if(Z.length%2!==0)return;for(var Y=0;Y<Z.length;Y+=2)S[Z[Y]]=Z[Y+1]}}}),{keymap:S,string:y}):{keymap:S,string:""}}function $(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null,this.changeQueue=null}function A(y,T){y.state.vim.inputState=new $,y.state.vim.expectLiteralNext=!1,We.signal(y,"vim-command-done",T)}function N(){this.removed=[],this.inserted=""}function B(y,T,S){this.clear(),this.keyBuffer=[y||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!T,this.blockwise=!!S}function U(y,T){var S=He.registerController.registers;if(!y||y.length!=1)throw Error("Register name must be 1 character");S[y]=T,nn.push(y)}function K(y){this.registers=y,this.unnamedRegister=y['"']=new B,y["."]=new B,y[":"]=new B,y["/"]=new B,y["+"]=new B}function Q(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function J(y,T){mi[y]=T}function he(y,T){for(var S=[],F=0;F<T;F++)S.push(y);return S}function ne(y,T){ls[y]=T}function le(y,T){Un[y]=T}function se(y,T,S){var F=y.state.vim,W=F.insertMode||F.visualMode,H=Math.min(Math.max(y.firstLine(),T.line),y.lastLine()),q=y.getLine(H),Y=q.length-1+ +!!W,Z=Math.min(Math.max(0,T.ch),Y),re=q.charCodeAt(Z);if(56320<=re&&re<=57343){var ae=1;S&&S.line==H&&S.ch>Z&&(ae=-1),Z+=ae,Z>Y&&(Z-=2)}return new Ne(H,Z)}function de(y){var T={};for(var S in y)y.hasOwnProperty(S)&&(T[S]=y[S]);return T}function me(y,T,S){return typeof T=="object"&&(S=T.ch,T=T.line),new Ne(y.line+T,y.ch+S)}function _e(y,T,S,F){F.operator&&(S="operatorPending");for(var W,H=[],q=[],Y=hn?T.length-Oo:0,Z=Y;Z<T.length;Z++){var re=T[Z];S=="insert"&&re.context!="insert"||re.context&&re.context!=S||F.operator&&re.type=="action"||!(W=Te(y,re.keys))||(W=="partial"&&H.push(re),W=="full"&&q.push(re))}return{partial:H.length&&H,full:q.length&&q}}function Te(y,T){var S=T.slice(-11)=="<character>",F=T.slice(-10)=="<register>";if(S||F){var W=T.length-(S?11:10),H=y.slice(0,W),q=T.slice(0,W);return H==q&&y.length>W?"full":q.indexOf(H)==0?"partial":!1}return y==T?"full":T.indexOf(y)==0?"partial":!1}function Me(y){var T=/^.*(<[^>]+>)$/.exec(y),S=T?T[1]:y.slice(-1);if(S.length>1)switch(S){case"<CR>":S=`
|
|
1403
|
-
`;break;case"<Space>":S=" ";break;default:S=""}return S}function Xe(y,T,S){return function(){for(var F=0;F<S;F++)T(y)}}function Ke(y){return new Ne(y.line,y.ch)}function at(y,T){return y.ch==T.ch&&y.line==T.line}function et(y,T){return y.line<T.line?!0:y.line==T.line&&y.ch<T.ch}function lt(y,T){return arguments.length>2&&(T=lt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(y,T)?y:T}function Xt(y,T){return arguments.length>2&&(T=Xt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(y,T)?T:y}function xn(y,T,S){var F=et(y,T),W=et(T,S);return F&&W}function Wt(y,T){return y.getLine(T).length}function vr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function un(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function On(y,T,S){var F=Wt(y,T),W=new Array(S-F+1).join(" ");y.setCursor(new Ne(T,F)),y.replaceRange(W,y.getCursor())}function Xn(y,T){var S=[],F=y.listSelections(),W=Ke(y.clipPos(T)),H=!at(T,W),q=y.getCursor("head"),Y=mt(F,q),Z=at(F[Y].head,F[Y].anchor),re=F.length-1,ae=re-Y>Y?re:0,be=F[ae].anchor,ke=Math.min(be.line,W.line),ve=Math.max(be.line,W.line),we=be.ch,Oe=W.ch,Le=F[ae].head.ch-we,Ve=Oe-we;Le>0&&Ve<=0?(we++,H||Oe--):Le<0&&Ve>=0?(we--,Z||Oe++):Le<0&&Ve==-1&&(we--,Oe++);for(var st=ke;st<=ve;st++){var Ze={anchor:new Ne(st,we),head:new Ne(st,Oe)};S.push(Ze)}return y.setSelections(S),T.ch=Oe,be.ch=we,be}function Tr(y,T,S){for(var F=[],W=0;W<S;W++){var H=me(T,W,0);F.push({anchor:H,head:H})}y.setSelections(F,0)}function mt(y,T,S){for(var F=0;F<y.length;F++){var W=at(y[F].anchor,T),H=at(y[F].head,T);if(W||H)return F}return-1}function je(y,T){var S=T.lastSelection,F=function(){var H=y.listSelections(),q=H[0],Y=H[H.length-1],Z=et(q.anchor,q.head)?q.anchor:q.head,re=et(Y.anchor,Y.head)?Y.head:Y.anchor;return[Z,re]},W=function(){var H=y.getCursor(),q=y.getCursor(),Y=S.visualBlock;if(Y){var Z=Y.width,re=Y.height;q=new Ne(H.line+re,H.ch+Z);for(var ae=[],be=H.line;be<q.line;be++){var ke=new Ne(be,H.ch),ve=new Ne(be,q.ch),we={anchor:ke,head:ve};ae.push(we)}y.setSelections(ae)}else{var Oe=S.anchorMark.find(),Le=S.headMark.find(),Ve=Le.line-Oe.line,st=Le.ch-Oe.ch;q={line:q.line+Ve,ch:Ve?q.ch:st+q.ch},S.visualLine&&(H=new Ne(H.line,0),q=new Ne(q.line,Wt(y,q.line))),y.setSelection(H,q)}return[H,q]};return T.visualMode?F():W()}function Lt(y,T){var S=T.sel.anchor,F=T.sel.head;T.lastPastedText&&(F=y.posFromIndex(y.indexFromPos(S)+T.lastPastedText.length),T.lastPastedText=null),T.lastSelection={anchorMark:y.setBookmark(S),headMark:y.setBookmark(F),anchor:Ke(S),head:Ke(F),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function Ht(y,T,S,F){var W=y.state.vim.sel,H=F?T:W.head,q=F?T:W.anchor,Y;return et(S,T)&&(Y=S,S=T,T=Y),et(H,q)?(H=lt(T,H),q=Xt(q,S)):(q=lt(T,q),H=Xt(H,S),H=me(H,0,-1),H.ch==-1&&H.line!=y.firstLine()&&(H=new Ne(H.line-1,Wt(y,H.line-1)))),[q,H]}function $n(y,T,W){var F=y.state.vim;T=T||F.sel;var W=W||F.visualLine?"line":F.visualBlock?"block":"char",H=yr(y,T,W);y.setSelections(H.ranges,H.primary)}function yr(y,T,S,F){var W=Ke(T.head),H=Ke(T.anchor);if(S=="char"){var q=!F&&!et(T.head,T.anchor)?1:0,Y=et(T.head,T.anchor)?1:0;return W=me(T.head,0,q),H=me(T.anchor,0,Y),{ranges:[{anchor:H,head:W}],primary:0}}if(S=="line"){if(et(T.head,T.anchor))W.ch=0,H.ch=Wt(y,H.line);else{H.ch=0;var Z=y.lastLine();W.line>Z&&(W.line=Z),W.ch=Wt(y,W.line)}return{ranges:[{anchor:H,head:W}],primary:0}}if(S=="block"){var re=Math.min(H.line,W.line),ae=H.ch,be=Math.max(H.line,W.line),ke=W.ch;ae<ke?ke+=1:ae+=1;for(var ve=be-re+1,we=W.line==re?0:ve-1,Oe=[],Le=0;Le<ve;Le++)Oe.push({anchor:new Ne(re+Le,ae),head:new Ne(re+Le,ke)});return{ranges:Oe,primary:we}}}function
|
|
1404
|
-
`);W.pop();for(var H,H=W.pop();W.length>0&&H&&p(H);H=W.pop())S.line--,S.ch=0;H?(S.line--,S.ch=Wt(y,S.line)):S.ch=0}}function Nn(y,T,S){T.ch=0,S.ch=0,S.line++}function Gt(y){if(!y)return 0;var T=y.search(/\S/);return T==-1?y.length:T}function ln(y,T,S){var F=T.inclusive,W=T.innerWord,H=T.bigWord,q=T.noSymbol,Y=T.multiline,Z=S||cr(y),re=y.getLine(Z.line),ae=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=q?No[0]:Pi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(bn){return/\s/.test(bn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=ci(y,Z,!0,H,!0);break}H?Oe=Pi[0]:(Oe=No[0],Oe(re.charAt(ve))||(Oe=No[1]))}for(var Le=ve,Ve=ve;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,we)Le=we.to,ke=we.line,ae=y.getLine(ke),!ae&&Le==0&&Le++;else for(;Oe(re.charAt(Le))&&Le<re.length;)Le++;if(F){var st=Le,Ze=Z.ch<=Ve&&/\s/.test(re.charAt(Z.ch));if(!Ze)for(;/\s/.test(ae.charAt(Le))&&Le<ae.length;)Le++;if(st==Le||Ze){for(var tt=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Ze&&(Ve=tt)}}return{start:new Ne(be,Ve),end:new Ne(ke,Le)}}function Dr(y,T,S){var F=T;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:F,end:F};var W=We.findMatchingTag(y,T)||We.findEnclosingTag(y,T);return!W||!W.open||!W.close?{start:F,end:F}:S?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function Kr(y,T,S){at(T,S)||He.jumpList.add(y,T,S)}function Gr(y,T){He.lastCharacterSearch.increment=y,He.lastCharacterSearch.forward=T.forward,He.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Ai(y,T,S,F){var W=Ke(y.getCursor()),H=S?1:-1,q=S?y.lineCount():-1,Y=W.ch,Z=W.line,re=y.getLine(Z),ae={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:F,reverseSymb:(S?{")":"(","}":"{"}:{"(":")","{":"}"})[F],forward:S,depth:0,curMoveThrough:!1},be=_i[F];if(!be)return W;var ke=$i[be].init,ve=$i[be].isComplete;for(ke&&ke(ae);Z!==q&&T;){if(ae.index+=H,ae.nextCh=ae.lineText.charAt(ae.index),!ae.nextCh){if(Z+=H,ae.lineText=y.getLine(Z)||"",H>0)ae.index=0;else{var we=ae.lineText.length;ae.index=we>0?we-1:0}ae.nextCh=ae.lineText.charAt(ae.index)}ve(ae)&&(W.line=Z,W.ch=ae.index,T--)}return ae.nextCh||ae.curMoveThrough?new Ne(Z,ae.index):W}function ci(y,T,S,F,W){var H=T.line,q=T.ch,Y=y.getLine(H),Z=S?1:-1,re=F?Pi:No;if(W&&Y==""){if(H+=Z,Y=y.getLine(H),!l(y,H))return null;q=S?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:H};for(var ae=Z>0?Y.length:-1,be=ae,ke=ae;q!=ae;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(q))){for(be=q;q!=ae&&re[we](Y.charAt(q));)q+=Z;if(ke=q,ve=be!=ke,be==T.ch&&H==T.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:H}}ve||(q+=Z)}if(H+=Z,!l(y,H))return null;Y=y.getLine(H),q=Z>0?0:Y.length}}function Bn(y,T,S,F,W,H){var q=Ke(T),Y=[];(F&&!W||!F&&W)&&S++;for(var Z=!F||!W,re=0;re<S;re++){var ae=ci(y,T,F,H,Z);if(!ae){var be=Wt(y,y.lastLine());Y.push(F?{line:y.lastLine(),from:be,to:be}:{line:0,from:0,to:0});break}Y.push(ae),T=new Ne(ae.line,F?ae.to-1:ae.from)}var ke=Y.length!=S,ve=Y[0],we=Y.pop();return F&&!W?(!ke&&(ve.from!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.from)):F&&W?new Ne(we.line,we.to-1):!F&&W?(!ke&&(ve.to!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function to(y,T,S,F,W){var H=T,q=new Ne(H.line+S.repeat-1,1/0),Y=y.clipPos(q);return Y.ch--,W||(F.lastHPos=1/0,F.lastHSPos=y.charCoords(Y,"div").left),q}function ui(y,T,S,F,W){for(var H=W||y.getCursor(),q=H.ch,Y,Z=0;Z<T;Z++){var re=y.getLine(H.line);if(Y=Cn(q,re,F,S),Y==-1)return null;q=Y}return new Ne(y.getCursor().line,Y)}function Os(y,T){var S=y.getCursor().line;return se(y,new Ne(S,T-1))}function Yr(y,T,S,F){!x(S,xo)&&!Jt.test(S)||(T.marks[S]&&T.marks[S].clear(),T.marks[S]=y.setBookmark(F))}function Cn(y,T,S,F,W){var H;return F?(H=T.indexOf(S,y+1),H!=-1):(H=T.lastIndexOf(S,y-1),H!=-1),H}function hi(y,T,S,F,W){function H(Ve){return!/\S/.test(y.getLine(Ve))}function q(Ve,st,Ze){return Ze?H(Ve)!=H(Ve+st):!H(Ve)&&H(Ve+st)}function Y(Ve){F=F>0?1:-1;var st=y.ace.session.getFoldLine(Ve);st&&Ve+F>st.start.row&&Ve+F<st.end.row&&(F=(F>0?st.end.row:st.start.row)-Ve)}var Z=T.line,re=y.firstLine(),ae=y.lastLine(),be,ke,ve=Z;if(F){for(;re<=ve&&ve<=ae&&S>0;)Y(ve),q(ve,F)&&S--,ve+=F;return new Ne(ve,0)}var we=y.state.vim;if(we.visualLine&&q(Z,1,!0)){var Oe=we.sel.anchor;q(Oe.line,-1,!0)&&(!W||Oe.line!=Z)&&(Z+=1)}var Le=H(Z);for(ve=Z;ve<=ae&&S;ve++)q(ve,1,!0)&&(!W||H(ve)!=Le)&&S--;for(ke=new Ne(ve,0),ve>ae&&!Le?Le=!0:W=!1,ve=Z;ve>re&&!((!W||H(ve)==Le||ve==Z)&&q(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function Qo(y,T,S,F,W){function H(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function q(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(H(we);we.line!==null&&p(we.line[we.pos]);)Oe=we.pos,H(we);return{ln:we.ln,pos:Oe+1}}H(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(!p(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return W?p(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};H(we)}return we.line=ve,W&&p(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Z={ln:T.line,pos:T.ch};S>0;)F<0?Z=Y(y,Z.ln,Z.pos,F):Z=q(y,Z.ln,Z.pos,F),S--;return new Ne(Z.ln,Z.pos)}function di(y,T,S,F){function W(Z,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Z,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Z.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function H(Z,re,ae,be){var Le=Z.getLine(re),ke=Le==="",ve={line:Le,ln:re,pos:ae,dir:be},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(W(Z,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(ke&&ve.line!==""&&!p(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||p(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Le=Z.getLine(we.ln);we.pos=0;for(var Ve=Le.length-1;Ve>=0;--Ve)if(!p(Le[Ve])){we.pos=Ve;break}return we}function q(Z,re,ae,be){var Oe=Z.getLine(re),ke={line:Oe,ln:re,pos:ae,dir:be},ve={ln:ke.ln,pos:null},we=ke.line==="";for(W(Z,ke);ke.line!==null;){if(ke.line===""&&!we)return ve.pos!==null?ve:{ln:ke.ln,pos:ke.pos};if(!(!b(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!p(ke.line[ke.pos])&&(we=!1,ve={ln:ke.ln,pos:ke.pos}),W(Z,ke)}var Oe=Z.getLine(ve.ln);ve.pos=0;for(var Le=0;Le<Oe.length;++Le)if(!p(Oe[Le])){ve.pos=Le;break}return ve}for(var Y={ln:T.line,pos:T.ch};S>0;)F<0?Y=q(y,Y.ln,Y.pos,F):Y=H(y,Y.ln,Y.pos,F),S--;return new Ne(Y.ln,Y.pos)}function kn(y,T,S,F){var W=T,H,q,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[S],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[S],re=y.getLine(W.line).charAt(W.ch),ae=re===Z?1:0;if(H=y.scanForBracket(new Ne(W.line,W.ch+ae),-1,void 0,{bracketRegex:Y}),q=y.scanForBracket(new Ne(W.line,W.ch+ae),1,void 0,{bracketRegex:Y}),!H||!q)return null;if(H=H.pos,q=q.pos,H.line==q.line&&H.ch>q.ch||H.line>q.line){var be=H;H=q,q=be}return F?q.ch+=1:H.ch+=1,{start:H,end:q}}function ur(y,T,S,F){var W=Ke(T),H=y.getLine(W.line),q=H.split(""),Y,Z,re,ae,be=q.indexOf(S);if(W.ch<be)W.ch=be;else if(be<W.ch&&q[W.ch]==S){var ke=/string/.test(y.getTokenTypeAt(me(T,0,1))),ve=/string/.test(y.getTokenTypeAt(T)),we=ke&&!ve;we||(Z=W.ch,--W.ch)}if(q[W.ch]==S&&!Z)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)q[re]==S&&(Y=re+1);if(Y&&!Z)for(re=Y,ae=q.length;re<ae&&!Z;re++)q[re]==S&&(Z=re);return!Y||!Z?{start:W,end:W}:(F&&(--Y,++Z),{start:new Ne(W.line,Y),end:new Ne(W.line,Z)})}function pi(){}function An(y){var T=y.state.vim;return T.searchState_||(T.searchState_=new pi)}function Tn(y){return fi(y,"/")}function br(y){return mo(y,"/")}function fi(y,T){var S=mo(y,T)||[];if(!S.length)return[];var F=[];if(S[0]===0){for(var W=0;W<S.length;W++)typeof S[W]=="number"&&F.push(y.substring(S[W]+1,S[W+1]));return F}}function mo(y,T){T||(T="/");for(var S=!1,F=[],W=0;W<y.length;W++){var H=y.charAt(W);!S&&H==T&&F.push(W),S=!S&&H=="\\"}return F}function vo(y){for(var T="|(){",S="}",F=!1,W=[],H=-1;H<y.length;H++){var q=y.charAt(H)||"",Y=y.charAt(H+1)||"",Z=Y&&T.indexOf(Y)!=-1;F?((q!=="\\"||!Z)&&W.push(q),F=!1):q==="\\"?(F=!0,Y&&S.indexOf(Y)!=-1&&(Z=!0),(!Z||Y==="\\")&&W.push(q)):(W.push(q),Z&&Y!=="\\"&&W.push("\\"))}return W.join("")}function Jo(y){for(var T=!1,S=[],F=-1;F<y.length;F++){var W=y.charAt(F)||"",H=y.charAt(F+1)||"";zi[W+H]?(S.push(zi[W+H]),F++):T?(S.push(W),T=!1):W==="\\"?(T=!0,i(H)||H==="$"?S.push("$"):H!=="/"&&H!=="\\"&&S.push("\\")):(W==="$"&&S.push("$"),S.push(W),H==="/"&&S.push("\\"))}return S.join("")}function Xr(y){for(var T=new We.StringStream(y),S=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)S.push(T.next());var F=!1;for(var W in kr)if(T.match(W,!0)){F=!0,S.push(kr[W]);break}F||S.push(T.next())}return S.join("")}function gi(y,T,S){var F=He.registerController.getRegister("/");if(F.setText(y),y instanceof RegExp)return y;var W=br(y),H,q;if(!W.length)H=y;else{H=y.substring(0,W[0]);var Y=y.substring(W[0]);q=Y.indexOf("i")!=-1}if(!H)return null;k("pcre")||(H=vo(H)),S&&(T=/^[^A-Z]*$/.test(H));var Z=new RegExp(H,T||q?"im":"m");return Z}function Fr(y){typeof y=="string"&&(y=document.createElement(y));for(var T,S=1;S<arguments.length;S++)if(T=arguments[S])if(typeof T!="object"&&(T=document.createTextNode(T)),T.nodeType)y.appendChild(T);else for(var F in T)Object.prototype.hasOwnProperty.call(T,F)&&(F[0]==="$"?y.style[F.slice(1)]=T[F]:y.setAttribute(F,T[F]));return y}function Ot(y,T){var S=Fr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);y.openNotification?y.openNotification(S,{bottom:!0,duration:5e3}):alert(S.innerText)}function To(y,T){return Fr("div",{$display:"flex"},Fr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Fr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&Fr("span",{$color:"#888"},T))}function wr(y,T){if(Zr.length){T.value||(T.value=""),Sn=T;return}var S=To(T.prefix,T.desc);if(y.openDialog)y.openDialog(S,T.onClose,{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:T.value});else{var F="";typeof T.prefix!="string"&&T.prefix&&(F+=T.prefix.textContent),T.desc&&(F+=" "+T.desc),T.onClose(prompt(F,""))}}function ce(y,T){if(y instanceof RegExp&&T instanceof RegExp){for(var S=["global","multiline","ignoreCase","source"],F=0;F<S.length;F++){var W=S[F];if(y[W]!==T[W])return!1}return!0}return!1}function ze(y,T,S,F){if(T){var W=An(y),H=gi(T,!!S,!!F);if(H)return St(y,H),ce(H,W.getQuery())||W.setQuery(H),H}}function Fe(y){if(y.source.charAt(0)=="^")var T=!0;return{token:function(S){if(T&&!S.sol()){S.skipToEnd();return}var F=S.match(y,!1);if(F)return F[0].length==0?(S.next(),"searching"):!S.sol()&&(S.backUp(1),!y.exec(S.next()+F[0]))?(S.next(),null):(S.match(y),"searching");for(;!S.eol()&&(S.next(),!S.match(y,!1)););},query:y}}function St(y,T){clearTimeout(Ar);var S=An(y);S.highlightTimeout=Ar,Ar=setTimeout(function(){if(y.state.vim){var F=An(y);F.highlightTimeout=null;var W=F.getOverlay();(!W||T!=W.query)&&(W&&y.removeOverlay(W),W=Fe(T),y.addOverlay(W),y.showMatchesOnScrollbar&&(F.getScrollbarAnnotate()&&F.getScrollbarAnnotate().clear(),F.setScrollbarAnnotate(y.showMatchesOnScrollbar(T))),F.setOverlay(W))}},50)}function Yt(y,T,S,F){return F===void 0&&(F=1),y.operation(function(){for(var W=y.getCursor(),H=y.getSearchCursor(S,W),q=0;q<F;q++){var Y=H.find(T);if(q==0&&Y&&at(H.from(),W)){var Z=T?H.from():H.to();Y=H.find(T),Y&&!Y[0]&&at(H.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=H.find(T))}if(!Y&&(H=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!H.find(T)))return}return H.from()})}function jt(y,T,S,F,W){return F===void 0&&(F=1),y.operation(function(){var H=y.getCursor(),q=y.getSearchCursor(S,H),Y=q.find(!T);!W.visualMode&&Y&&at(q.from(),H)&&q.find(!T);for(var Z=0;Z<F;Z++)if(Y=q.find(T),!Y&&(q=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!q.find(T)))return;return[q.from(),q.to()]})}function xr(y){var T=An(y);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),y.removeOverlay(An(y).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function hr(y,T,S){return typeof y!="number"&&(y=y.line),T instanceof Array?x(y,T):typeof S=="number"?y>=T&&y<=S:y==T}function zn(y){var T=y.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Cr(y,T,S){if(S=="'"||S=="`")return He.jumpList.find(y,-1)||new Ne(0,0);if(S==".")return mn(y);var F=T.marks[S];return F&&F.find()}function mn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var T=y.doc.history.done,S=T.length;S--;)if(T[S].changes)return Ke(T[S].changes[0].to)}function no(y,T,S,F,W,H,q,Y,Z){function re(){y.operation(function(){for(;!Oe;)ae(),ke();ve()})}function ae(){var Ze=y.getRange(H.from(),H.to()),tt=Ze.replace(q,Y),bn=H.to().line;H.replace(tt),Ve=H.to().line,W+=Ve-bn,st=Ve<bn}function be(){var Ze=Le&&Ke(H.to()),tt=H.findNext();return tt&&!tt[0]&&Ze&&at(H.from(),Ze)&&(tt=H.findNext()),tt}function ke(){for(;be()&&hr(H.from(),F,W);)if(!(!S&&H.from().line==Ve&&!st)){y.scrollIntoView(H.from(),30),y.setSelection(H.from(),H.to()),Le=H.from(),Oe=!1;return}Oe=!0}function ve(Ze){if(Ze&&Ze(),y.focus(),Le){y.setCursor(Le);var tt=y.state.vim;tt.exMode=!1,tt.lastHPos=tt.lastHSPos=Le.ch}Z&&Z()}function we(Ze,tt,bn){We.e_stop(Ze);var ct=z(Ze);switch(ct){case"y":ae(),ke();break;case"n":ke();break;case"a":var Mn=Z;Z=void 0,y.operation(re),Z=Mn;break;case"l":ae();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(bn)}return Oe&&ve(bn),!0}y.state.vim.exMode=!0;var Oe=!1,Le,Ve,st;if(ke(),Oe){Ot(y,"No matches for "+q.source);return}if(!T){re(),Z&&Z();return}wr(y,{prefix:Fr("span","replace with ",Fr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Pr(y,T){var S=y.state.vim,F=He.macroModeState,W=He.registerController.getRegister("."),H=F.isPlaying,q=F.lastInsertModeChanges;H||(y.off("change",Mo),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=null,We.off(y.getInputField(),"keydown",Ps)),!H&&S.insertModeRepeat>1&&(ba(y,S,S.insertModeRepeat-1,!0),S.lastEditInputState.repeatOverride=S.insertModeRepeat),delete S.insertModeRepeat,S.insertMode=!1,T||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),W.setText(q.changes.join("")),We.signal(y,"vim-mode-change",{mode:"normal"}),F.isRecording&&dr(F)}function es(y){Dn.unshift(y)}function Ns(y,T,S,F,W){var H={keys:y,type:T};H[T]=S,H[T+"Args"]=F;for(var q in W)H[q]=W[q];es(H)}function Ds(y,T,S,F){var W=He.registerController.getRegister(F);if(F==":"){W.keyBuffer[0]&&Ir.processCommand(y,W.keyBuffer[0]),S.isPlaying=!1;return}var H=W.keyBuffer,q=0;S.isPlaying=!0,S.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<H.length;Y++)for(var Z=H[Y],re,ae;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ae=re[0],Z=Z.substring(re.index+ae.length),vt.handleKey(y,ae,"macro"),T.insertMode){var be=W.insertModeChanges[q++].changes;He.macroModeState.lastInsertModeChanges.changes=be,os(y,be,1),Pr(y)}S.isPlaying=!1}function ts(y,T){if(!y.isPlaying){var S=y.latestRegister,F=He.registerController.getRegister(S);F&&F.pushText(T)}}function dr(y){if(!y.isPlaying){var T=y.latestRegister,S=He.registerController.getRegister(T);S&&S.pushInsertModeChanges&&S.pushInsertModeChanges(y.lastInsertModeChanges)}}function Fs(y,T){if(!y.isPlaying){var S=y.latestRegister,F=He.registerController.getRegister(S);F&&F.pushSearchQuery&&F.pushSearchQuery(T)}}function Mo(y,T){var S=He.macroModeState,F=S.lastInsertModeChanges;if(!S.isPlaying)for(var W=y.state.vim;T;){if(F.expectCursorActivityForChange=!0,F.ignoreCount>1)F.ignoreCount--;else if(T.origin=="+input"||T.origin=="paste"||T.origin===void 0){var H=y.listSelections().length;H>1&&(F.ignoreCount=H);var q=T.text.join(`
|
|
1405
|
-
`);if(F.maybeReset&&(F.changes=[],F.maybeReset=!1),q)if(y.state.overwrite&&!/\n/.test(q))F.changes.push([q]);else{if(q.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Z=y.getCursor();if(Y&&Y.line==Z.line){var re=Y.ch-Z.ch;re>0&&re<q.length&&(F.changes.push([q,re]),q="")}}q&&F.changes.push(q)}}T=T.next}}function ns(y){var T=y.state.vim;if(T.insertMode){var S=He.macroModeState;if(S.isPlaying)return;var F=S.lastInsertModeChanges;F.expectCursorActivityForChange?F.expectCursorActivityForChange=!1:(F.maybeReset=!0,T.insertEnd&&T.insertEnd.clear(),T.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||rs(y,T)}function rs(y,T,S){var F=y.getCursor("anchor"),W=y.getCursor("head");if(T.visualMode&&!y.somethingSelected()?gn(y,!1):!T.visualMode&&!T.insertMode&&y.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,We.signal(y,"vim-mode-change",{mode:"visual"})),T.visualMode){var H=et(W,F)?0:-1,q=et(W,F)?-1:0;W=me(W,0,H),F=me(F,0,q),T.sel={anchor:F,head:W},Yr(y,T,"<",lt(W,F)),Yr(y,T,">",Xt(W,F))}else!T.insertMode&&!S&&(T.lastHPos=y.getCursor().ch)}function yo(y,T){this.keyName=y,this.key=T.key,this.ctrlKey=T.ctrlKey,this.altKey=T.altKey,this.metaKey=T.metaKey,this.shiftKey=T.shiftKey}function Ps(y){var T=He.macroModeState,S=T.lastInsertModeChanges,F=We.keyName?We.keyName(y):y.key;F&&(F.indexOf("Delete")!=-1||F.indexOf("Backspace")!=-1)&&(S.maybeReset&&(S.changes=[],S.maybeReset=!1),S.changes.push(new yo(F,y)))}function ba(y,T,S,F){function W(){Y?jn.processAction(y,T,T.lastEditActionCommand):jn.evalInput(y,T)}function H(ae){if(q.lastInsertModeChanges.changes.length>0){ae=T.lastEditActionCommand?ae:1;var be=q.lastInsertModeChanges;os(y,be.changes,ae)}}var q=He.macroModeState;q.isPlaying=!0;var Y=!!T.lastEditActionCommand,Z=T.inputState;if(T.inputState=T.lastEditInputState,Y&&T.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<S;re++)W(),H(1);else F||W(),H(S);T.inputState=Z,T.insertMode&&!F&&Pr(y),q.isPlaying=!1}function is(y,T){We.lookupKey(T,"vim-insert",function(S){return typeof S=="string"?We.commands[S](y):S(y),!0})}function os(y,T,S){var F=y.getCursor("head"),W=He.macroModeState.lastInsertModeChanges.visualBlock;W&&(Tr(y,F,W+1),S=y.listSelections().length,y.setCursor(F));for(var H=0;H<S;H++){W&&y.setCursor(me(F,H,0));for(var q=0;q<T.length;q++){var Y=T[q];if(Y instanceof yo)is(y,Y.keyName);else if(typeof Y=="string")y.replaceSelection(Y);else{var Z=y.getCursor(),re=me(Z,0,Y[0].length-(Y[1]||0));y.replaceRange(Y[0],Z,Y[1]?Z:re),y.setCursor(re)}}}W&&y.setCursor(me(F,0,1))}function Ws(y,T,S,F){T.length>1&&T[0]=="n"&&(T=T.replace("numpad","")),T=Wr[T]||T;var W="";if(S.ctrlKey&&(W+="C-"),S.altKey&&(W+="A-"),(W||T.length>1)&&S.shiftKey&&(W+="S-"),F&&!F.expectLiteralNext&&T.length==1){if(Zn.keymap&&T in Zn.keymap)(Zn.remapCtrl!==!1||!W)&&(T=Zn.keymap[T]);else if(T.charCodeAt(0)>255){var H=S.code&&S.code.slice(-1)||"";S.shiftKey||(H=H.toLowerCase()),H&&(T=H)}}return W+=T,W.length>1&&(W="<"+W+">"),W}function ss(y){var T=new y.constructor;return Object.keys(y).forEach(function(S){if(S!="insertEnd"){var F=y[S];Array.isArray(F)?F=F.slice():F&&typeof F=="object"&&F.constructor!=Object&&(F=ss(F)),T[S]=F}}),y.sel&&(T.sel={head:y.sel.head&&Ke(y.sel.head),anchor:y.sel.anchor&&Ke(y.sel.anchor)}),T}function Io(y,T,S){var F=!1,W=vt.maybeInitVimState_(y),H=W.visualBlock||W.wasInVisualBlock,q=y.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!q?W.wasInVisualBlock=!1:q&&W.visualBlock&&(W.wasInVisualBlock=!0),T=="<Esc>"&&!W.insertMode&&!W.visualMode&&q)y.ace.exitMultiSelectMode();else if(H||!q||y.ace.inVirtualSelectionMode)F=vt.handleKey(y,T,S);else{var Y=ss(W),Z=W.inputState.changeQueueList||[];y.operation(function(){y.curOp.isVimOp=!0;var re=0;y.ace.forEachSelection(function(){var ae=y.ace.selection;y.state.vim.lastHPos=ae.$desiredColumn==null?ae.lead.column:ae.$desiredColumn,y.state.vim.inputState.changeQueue=Z[re];var be=y.getCursor("head"),ke=y.getCursor("anchor"),ve=et(be,ke)?0:-1,we=et(be,ke)?-1:0;be=me(be,0,ve),ke=me(ke,0,we),y.state.vim.sel.head=be,y.state.vim.sel.anchor=ke,F=Ti(y,T,S),ae.$desiredColumn=y.state.vim.lastHPos==-1?null:y.state.vim.lastHPos,y.ace.inVirtualSelectionMode&&(Z[re]=y.state.vim.inputState.changeQueue),y.virtualSelectionMode()&&(y.state.vim=ss(Y)),re++}),y.curOp.cursorActivity&&!F&&(y.curOp.cursorActivity=!1),W.status=y.state.vim.status,y.state.vim=W,W.inputState.changeQueueList=Z,W.inputState.changeQueue=null},!0)}return F&&!W.visualMode&&!W.insert&&W.visualMode!=y.somethingSelected()&&rs(y,W,!0),F}function Fi(y,T){T.off("beforeEndOperation",Fi);var S=T.state.cm.vimCmd;S&&T.execCommand(S.exec?S:S.name,S.args),T.curOp=T.prevOp}var
|
|
1406
|
-
`)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=Eo.stopEvent,We.keyName=function(y){var T=ul[y.keyCode]||y.key||"";return T.length==1&&(T=T.toUpperCase()),T=Eo.getModifierString(y).replace(/(^|-)\w/g,function(S){return S.toUpperCase()})+T,T},We.keyMap.default=function(y){return function(T){var S=T.ace.commands.commandKeyBinding[y.toLowerCase()];return S&&T.ace.execCommand(S)!==!1}},We.lookupKey=function y(T,S,F){S||(S="default"),typeof S=="string"&&(S=We.keyMap[S]||We.keyMap.default);var W=typeof S=="function"?S(T):S[T];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&F(W))return"handled";if(S.fallthrough){if(!Array.isArray(S.fallthrough))return y(T,S.fallthrough,F);for(var H=0;H<S.fallthrough.length;H++){var q=y(T,S.fallthrough[H],F);if(q)return q}}},We.findMatchingTag=function(y,T){return y.findMatchingTag(T)},We.findEnclosingTag=function(y,T){},We.signal=function(y,T,S){return y._signal(T,S)},We.on=Eo.addListener,We.off=Eo.removeListener,We.isWordChar=function(y){return y<""?/^\w$/.test(y):(xa.lastIndex=0,xa.test(y))},(function(){wa.implement(We.prototype,bo),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(S){this.$lineHandleChanges&&this.$lineHandleChanges.push(S);var F={text:S.action[0]=="i"?S.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=F:W.lastChange=W.change=F,this.$updateMarkers(S)},this.onSelectionChange=function(){var S=this.curOp=this.curOp||{};S.cursorActivityHandlers||(S.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(Lo.keyboardHandler)},this.operation=function(S,F){if(!F&&this.curOp||F&&this.curOp&&this.curOp.force)return S();if((F||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var H=this.curOp=this.curOp||{};this.curOp.force=F;var q=S();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!H.cursorActivity&&!H.lastChange&&W&&(this.ace.prevOp=W)),(F||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),q},this.onBeforeEndOperation=function(){var S=this.curOp;S&&(S.change&&this.signal("change",S.change,S),S&&S.cursorActivity&&this.signal("cursorActivity",null,S),this.curOp=null)},this.signal=function(S,F,W){var H=W?W[S+"Handlers"]:(this._eventRegistry||{})[S];if(H){H=H.slice();for(var q=0;q<H.length;q++)H[q](this,F)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(S,F){typeof S=="object"&&(F=S.ch,S=S.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:S,column:F}),this.ace.selection.moveTo(S,F),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(S){var F=this.ace.selection,W=S=="anchor"?F.isEmpty()?F.lead:F.anchor:S=="head"||!S?F.lead:F.getRange()[S];return m(W)},this.listSelections=function(S){var F=this.ace.multiSelect.rangeList.ranges;return!F.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:F.map(function(W){return{anchor:this.clipPos(m(W.cursor==W.end?W.start:W.end)),head:this.clipPos(m(W.cursor))}},this)},this.setSelections=function(S,F){var W=this.ace.multiSelect,H=S.map(function(re){var ae=g(re.anchor),be=g(re.head),ke=
|
|
1407
|
-
`,q=!1);var Y=new io;F.ch==null&&(F.ch=Number.MAX_VALUE);var Z={row:F.line,column:F.ch},re=this,ae=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(be){Y.setOptions({needle:S,caseSensitive:H,wrap:!1,backwards:be,regExp:q,start:ae||Z});var ke=Y.find(re.ace.session);return ae=ke,ae&&[!ae.isEmpty()]},from:function(){return ae&&m(ae.start)},to:function(){return ae&&m(ae.end)},replace:function(be){ae&&(ae.end=re.ace.session.doc.replace(ae,be))}}},this.scrollTo=function(S,F){var W=this.ace.renderer,H=W.layerConfig,q=H.maxHeight;q-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,F!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(F,q))),S!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(S,H.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(S,F){if(S){var W=this.ace.renderer,H={top:0,bottom:F};W.scrollCursorIntoView(g(S),W.lineHeight*2/W.$size.scrollerHeight,H)}},this.getLine=function(S){return this.ace.session.getLine(S)},this.getRange=function(S,F){return this.ace.session.getTextRange(new
|
|
1403
|
+
`;break;case"<Space>":S=" ";break;default:S=""}return S}function Xe(y,T,S){return function(){for(var F=0;F<S;F++)T(y)}}function Ke(y){return new Ne(y.line,y.ch)}function at(y,T){return y.ch==T.ch&&y.line==T.line}function et(y,T){return y.line<T.line?!0:y.line==T.line&&y.ch<T.ch}function lt(y,T){return arguments.length>2&&(T=lt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(y,T)?y:T}function Xt(y,T){return arguments.length>2&&(T=Xt.apply(void 0,Array.prototype.slice.call(arguments,1))),et(y,T)?T:y}function xn(y,T,S){var F=et(y,T),W=et(T,S);return F&&W}function Wt(y,T){return y.getLine(T).length}function vr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function un(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function On(y,T,S){var F=Wt(y,T),W=new Array(S-F+1).join(" ");y.setCursor(new Ne(T,F)),y.replaceRange(W,y.getCursor())}function Xn(y,T){var S=[],F=y.listSelections(),W=Ke(y.clipPos(T)),H=!at(T,W),q=y.getCursor("head"),Y=mt(F,q),Z=at(F[Y].head,F[Y].anchor),re=F.length-1,ae=re-Y>Y?re:0,be=F[ae].anchor,ke=Math.min(be.line,W.line),ve=Math.max(be.line,W.line),we=be.ch,Oe=W.ch,Le=F[ae].head.ch-we,Ve=Oe-we;Le>0&&Ve<=0?(we++,H||Oe--):Le<0&&Ve>=0?(we--,Z||Oe++):Le<0&&Ve==-1&&(we--,Oe++);for(var st=ke;st<=ve;st++){var Ze={anchor:new Ne(st,we),head:new Ne(st,Oe)};S.push(Ze)}return y.setSelections(S),T.ch=Oe,be.ch=we,be}function Tr(y,T,S){for(var F=[],W=0;W<S;W++){var H=me(T,W,0);F.push({anchor:H,head:H})}y.setSelections(F,0)}function mt(y,T,S){for(var F=0;F<y.length;F++){var W=at(y[F].anchor,T),H=at(y[F].head,T);if(W||H)return F}return-1}function je(y,T){var S=T.lastSelection,F=function(){var H=y.listSelections(),q=H[0],Y=H[H.length-1],Z=et(q.anchor,q.head)?q.anchor:q.head,re=et(Y.anchor,Y.head)?Y.head:Y.anchor;return[Z,re]},W=function(){var H=y.getCursor(),q=y.getCursor(),Y=S.visualBlock;if(Y){var Z=Y.width,re=Y.height;q=new Ne(H.line+re,H.ch+Z);for(var ae=[],be=H.line;be<q.line;be++){var ke=new Ne(be,H.ch),ve=new Ne(be,q.ch),we={anchor:ke,head:ve};ae.push(we)}y.setSelections(ae)}else{var Oe=S.anchorMark.find(),Le=S.headMark.find(),Ve=Le.line-Oe.line,st=Le.ch-Oe.ch;q={line:q.line+Ve,ch:Ve?q.ch:st+q.ch},S.visualLine&&(H=new Ne(H.line,0),q=new Ne(q.line,Wt(y,q.line))),y.setSelection(H,q)}return[H,q]};return T.visualMode?F():W()}function Lt(y,T){var S=T.sel.anchor,F=T.sel.head;T.lastPastedText&&(F=y.posFromIndex(y.indexFromPos(S)+T.lastPastedText.length),T.lastPastedText=null),T.lastSelection={anchorMark:y.setBookmark(S),headMark:y.setBookmark(F),anchor:Ke(S),head:Ke(F),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function Ht(y,T,S,F){var W=y.state.vim.sel,H=F?T:W.head,q=F?T:W.anchor,Y;return et(S,T)&&(Y=S,S=T,T=Y),et(H,q)?(H=lt(T,H),q=Xt(q,S)):(q=lt(T,q),H=Xt(H,S),H=me(H,0,-1),H.ch==-1&&H.line!=y.firstLine()&&(H=new Ne(H.line-1,Wt(y,H.line-1)))),[q,H]}function $n(y,T,W){var F=y.state.vim;T=T||F.sel;var W=W||F.visualLine?"line":F.visualBlock?"block":"char",H=yr(y,T,W);y.setSelections(H.ranges,H.primary)}function yr(y,T,S,F){var W=Ke(T.head),H=Ke(T.anchor);if(S=="char"){var q=!F&&!et(T.head,T.anchor)?1:0,Y=et(T.head,T.anchor)?1:0;return W=me(T.head,0,q),H=me(T.anchor,0,Y),{ranges:[{anchor:H,head:W}],primary:0}}if(S=="line"){if(et(T.head,T.anchor))W.ch=0,H.ch=Wt(y,H.line);else{H.ch=0;var Z=y.lastLine();W.line>Z&&(W.line=Z),W.ch=Wt(y,W.line)}return{ranges:[{anchor:H,head:W}],primary:0}}if(S=="block"){var re=Math.min(H.line,W.line),ae=H.ch,be=Math.max(H.line,W.line),ke=W.ch;ae<ke?ke+=1:ae+=1;for(var ve=be-re+1,we=W.line==re?0:ve-1,Oe=[],Le=0;Le<ve;Le++)Oe.push({anchor:new Ne(re+Le,ae),head:new Ne(re+Le,ke)});return{ranges:Oe,primary:we}}}function ur(y){var T=y.getCursor("head");return y.getSelection().length==1&&(T=lt(T,y.getCursor("anchor"))),T}function gn(y,T){var S=y.state.vim;T!==!1&&y.setCursor(se(y,S.sel.head)),Lt(y,S),S.visualMode=!1,S.visualLine=!1,S.visualBlock=!1,S.insertMode||We.signal(y,"vim-mode-change",{mode:"normal"})}function Wn(y,T,S){var F=y.getRange(T,S);if(/\n\s*$/.test(F)){var W=F.split(`
|
|
1404
|
+
`);W.pop();for(var H,H=W.pop();W.length>0&&H&&p(H);H=W.pop())S.line--,S.ch=0;H?(S.line--,S.ch=Wt(y,S.line)):S.ch=0}}function Nn(y,T,S){T.ch=0,S.ch=0,S.line++}function Gt(y){if(!y)return 0;var T=y.search(/\S/);return T==-1?y.length:T}function ln(y,T,S){var F=T.inclusive,W=T.innerWord,H=T.bigWord,q=T.noSymbol,Y=T.multiline,Z=S||ur(y),re=y.getLine(Z.line),ae=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=q?No[0]:Pi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(bn){return/\s/.test(bn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=ci(y,Z,!0,H,!0);break}H?Oe=Pi[0]:(Oe=No[0],Oe(re.charAt(ve))||(Oe=No[1]))}for(var Le=ve,Ve=ve;Oe(re.charAt(Ve))&&Ve>=0;)Ve--;if(Ve++,we)Le=we.to,ke=we.line,ae=y.getLine(ke),!ae&&Le==0&&Le++;else for(;Oe(re.charAt(Le))&&Le<re.length;)Le++;if(F){var st=Le,Ze=Z.ch<=Ve&&/\s/.test(re.charAt(Z.ch));if(!Ze)for(;/\s/.test(ae.charAt(Le))&&Le<ae.length;)Le++;if(st==Le||Ze){for(var tt=Ve;/\s/.test(re.charAt(Ve-1))&&Ve>0;)Ve--;!Ve&&!Ze&&(Ve=tt)}}return{start:new Ne(be,Ve),end:new Ne(ke,Le)}}function Dr(y,T,S){var F=T;if(!We.findMatchingTag||!We.findEnclosingTag)return{start:F,end:F};var W=We.findMatchingTag(y,T)||We.findEnclosingTag(y,T);return!W||!W.open||!W.close?{start:F,end:F}:S?{start:W.open.from,end:W.close.to}:{start:W.open.to,end:W.close.from}}function Kr(y,T,S){at(T,S)||He.jumpList.add(y,T,S)}function Gr(y,T){He.lastCharacterSearch.increment=y,He.lastCharacterSearch.forward=T.forward,He.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Ai(y,T,S,F){var W=Ke(y.getCursor()),H=S?1:-1,q=S?y.lineCount():-1,Y=W.ch,Z=W.line,re=y.getLine(Z),ae={lineText:re,nextCh:re.charAt(Y),lastCh:null,index:Y,symb:F,reverseSymb:(S?{")":"(","}":"{"}:{"(":")","{":"}"})[F],forward:S,depth:0,curMoveThrough:!1},be=_i[F];if(!be)return W;var ke=$i[be].init,ve=$i[be].isComplete;for(ke&&ke(ae);Z!==q&&T;){if(ae.index+=H,ae.nextCh=ae.lineText.charAt(ae.index),!ae.nextCh){if(Z+=H,ae.lineText=y.getLine(Z)||"",H>0)ae.index=0;else{var we=ae.lineText.length;ae.index=we>0?we-1:0}ae.nextCh=ae.lineText.charAt(ae.index)}ve(ae)&&(W.line=Z,W.ch=ae.index,T--)}return ae.nextCh||ae.curMoveThrough?new Ne(Z,ae.index):W}function ci(y,T,S,F,W){var H=T.line,q=T.ch,Y=y.getLine(H),Z=S?1:-1,re=F?Pi:No;if(W&&Y==""){if(H+=Z,Y=y.getLine(H),!l(y,H))return null;q=S?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:H};for(var ae=Z>0?Y.length:-1,be=ae,ke=ae;q!=ae;){for(var ve=!1,we=0;we<re.length&&!ve;++we)if(re[we](Y.charAt(q))){for(be=q;q!=ae&&re[we](Y.charAt(q));)q+=Z;if(ke=q,ve=be!=ke,be==T.ch&&H==T.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:H}}ve||(q+=Z)}if(H+=Z,!l(y,H))return null;Y=y.getLine(H),q=Z>0?0:Y.length}}function Bn(y,T,S,F,W,H){var q=Ke(T),Y=[];(F&&!W||!F&&W)&&S++;for(var Z=!F||!W,re=0;re<S;re++){var ae=ci(y,T,F,H,Z);if(!ae){var be=Wt(y,y.lastLine());Y.push(F?{line:y.lastLine(),from:be,to:be}:{line:0,from:0,to:0});break}Y.push(ae),T=new Ne(ae.line,F?ae.to-1:ae.from)}var ke=Y.length!=S,ve=Y[0],we=Y.pop();return F&&!W?(!ke&&(ve.from!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.from)):F&&W?new Ne(we.line,we.to-1):!F&&W?(!ke&&(ve.to!=q.ch||ve.line!=q.line)&&(we=Y.pop()),new Ne(we.line,we.to)):new Ne(we.line,we.from)}function to(y,T,S,F,W){var H=T,q=new Ne(H.line+S.repeat-1,1/0),Y=y.clipPos(q);return Y.ch--,W||(F.lastHPos=1/0,F.lastHSPos=y.charCoords(Y,"div").left),q}function ui(y,T,S,F,W){for(var H=W||y.getCursor(),q=H.ch,Y,Z=0;Z<T;Z++){var re=y.getLine(H.line);if(Y=Cn(q,re,F,S),Y==-1)return null;q=Y}return new Ne(y.getCursor().line,Y)}function Os(y,T){var S=y.getCursor().line;return se(y,new Ne(S,T-1))}function Yr(y,T,S,F){!x(S,xo)&&!Jt.test(S)||(T.marks[S]&&T.marks[S].clear(),T.marks[S]=y.setBookmark(F))}function Cn(y,T,S,F,W){var H;return F?(H=T.indexOf(S,y+1),H!=-1):(H=T.lastIndexOf(S,y-1),H!=-1),H}function hi(y,T,S,F,W){function H(Ve){return!/\S/.test(y.getLine(Ve))}function q(Ve,st,Ze){return Ze?H(Ve)!=H(Ve+st):!H(Ve)&&H(Ve+st)}function Y(Ve){F=F>0?1:-1;var st=y.ace.session.getFoldLine(Ve);st&&Ve+F>st.start.row&&Ve+F<st.end.row&&(F=(F>0?st.end.row:st.start.row)-Ve)}var Z=T.line,re=y.firstLine(),ae=y.lastLine(),be,ke,ve=Z;if(F){for(;re<=ve&&ve<=ae&&S>0;)Y(ve),q(ve,F)&&S--,ve+=F;return new Ne(ve,0)}var we=y.state.vim;if(we.visualLine&&q(Z,1,!0)){var Oe=we.sel.anchor;q(Oe.line,-1,!0)&&(!W||Oe.line!=Z)&&(Z+=1)}var Le=H(Z);for(ve=Z;ve<=ae&&S;ve++)q(ve,1,!0)&&(!W||H(ve)!=Le)&&S--;for(ke=new Ne(ve,0),ve>ae&&!Le?Le=!0:W=!1,ve=Z;ve>re&&!((!W||H(ve)==Le||ve==Z)&&q(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function Qo(y,T,S,F,W){function H(re){re.pos+re.dir<0||re.pos+re.dir>=re.line.length?re.line=null:re.pos+=re.dir}function q(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(Oe=we.pos,b(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(H(we);we.line!==null&&p(we.line[we.pos]);)Oe=we.pos,H(we);return{ln:we.ln,pos:Oe+1}}H(we)}return{ln:we.ln,pos:Oe+1}}function Y(re,ae,be,ke){var ve=re.getLine(ae),we={line:ve,ln:ae,pos:be,dir:ke};if(we.line==="")return{ln:we.ln,pos:we.pos};var Oe=we.pos;for(H(we);we.line!==null;){if(!p(we.line[we.pos])&&!b(we.line[we.pos]))Oe=we.pos;else if(b(we.line[we.pos]))return W?p(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};H(we)}return we.line=ve,W&&p(we.line[we.pos])?{ln:we.ln,pos:we.pos}:{ln:we.ln,pos:Oe}}for(var Z={ln:T.line,pos:T.ch};S>0;)F<0?Z=Y(y,Z.ln,Z.pos,F):Z=q(y,Z.ln,Z.pos,F),S--;return new Ne(Z.ln,Z.pos)}function di(y,T,S,F){function W(Z,re){if(re.pos+re.dir<0||re.pos+re.dir>=re.line.length){if(re.ln+=re.dir,!l(Z,re.ln)){re.line=null,re.ln=null,re.pos=null;return}re.line=Z.getLine(re.ln),re.pos=re.dir>0?0:re.line.length-1}else re.pos+=re.dir}function H(Z,re,ae,be){var Le=Z.getLine(re),ke=Le==="",ve={line:Le,ln:re,pos:ae,dir:be},we={ln:ve.ln,pos:ve.pos},Oe=ve.line==="";for(W(Z,ve);ve.line!==null;){if(we.ln=ve.ln,we.pos=ve.pos,ve.line===""&&!Oe)return{ln:ve.ln,pos:ve.pos};if(ke&&ve.line!==""&&!p(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};b(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||p(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Le=Z.getLine(we.ln);we.pos=0;for(var Ve=Le.length-1;Ve>=0;--Ve)if(!p(Le[Ve])){we.pos=Ve;break}return we}function q(Z,re,ae,be){var Oe=Z.getLine(re),ke={line:Oe,ln:re,pos:ae,dir:be},ve={ln:ke.ln,pos:null},we=ke.line==="";for(W(Z,ke);ke.line!==null;){if(ke.line===""&&!we)return ve.pos!==null?ve:{ln:ke.ln,pos:ke.pos};if(!(!b(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!p(ke.line[ke.pos])&&(we=!1,ve={ln:ke.ln,pos:ke.pos}),W(Z,ke)}var Oe=Z.getLine(ve.ln);ve.pos=0;for(var Le=0;Le<Oe.length;++Le)if(!p(Oe[Le])){ve.pos=Le;break}return ve}for(var Y={ln:T.line,pos:T.ch};S>0;)F<0?Y=q(y,Y.ln,Y.pos,F):Y=H(y,Y.ln,Y.pos,F),S--;return new Ne(Y.ln,Y.pos)}function kn(y,T,S,F){var W=T,H,q,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[S],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[S],re=y.getLine(W.line).charAt(W.ch),ae=re===Z?1:0;if(H=y.scanForBracket(new Ne(W.line,W.ch+ae),-1,void 0,{bracketRegex:Y}),q=y.scanForBracket(new Ne(W.line,W.ch+ae),1,void 0,{bracketRegex:Y}),!H||!q)return null;if(H=H.pos,q=q.pos,H.line==q.line&&H.ch>q.ch||H.line>q.line){var be=H;H=q,q=be}return F?q.ch+=1:H.ch+=1,{start:H,end:q}}function hr(y,T,S,F){var W=Ke(T),H=y.getLine(W.line),q=H.split(""),Y,Z,re,ae,be=q.indexOf(S);if(W.ch<be)W.ch=be;else if(be<W.ch&&q[W.ch]==S){var ke=/string/.test(y.getTokenTypeAt(me(T,0,1))),ve=/string/.test(y.getTokenTypeAt(T)),we=ke&&!ve;we||(Z=W.ch,--W.ch)}if(q[W.ch]==S&&!Z)Y=W.ch+1;else for(re=W.ch;re>-1&&!Y;re--)q[re]==S&&(Y=re+1);if(Y&&!Z)for(re=Y,ae=q.length;re<ae&&!Z;re++)q[re]==S&&(Z=re);return!Y||!Z?{start:W,end:W}:(F&&(--Y,++Z),{start:new Ne(W.line,Y),end:new Ne(W.line,Z)})}function pi(){}function An(y){var T=y.state.vim;return T.searchState_||(T.searchState_=new pi)}function Tn(y){return fi(y,"/")}function br(y){return mo(y,"/")}function fi(y,T){var S=mo(y,T)||[];if(!S.length)return[];var F=[];if(S[0]===0){for(var W=0;W<S.length;W++)typeof S[W]=="number"&&F.push(y.substring(S[W]+1,S[W+1]));return F}}function mo(y,T){T||(T="/");for(var S=!1,F=[],W=0;W<y.length;W++){var H=y.charAt(W);!S&&H==T&&F.push(W),S=!S&&H=="\\"}return F}function vo(y){for(var T="|(){",S="}",F=!1,W=[],H=-1;H<y.length;H++){var q=y.charAt(H)||"",Y=y.charAt(H+1)||"",Z=Y&&T.indexOf(Y)!=-1;F?((q!=="\\"||!Z)&&W.push(q),F=!1):q==="\\"?(F=!0,Y&&S.indexOf(Y)!=-1&&(Z=!0),(!Z||Y==="\\")&&W.push(q)):(W.push(q),Z&&Y!=="\\"&&W.push("\\"))}return W.join("")}function Jo(y){for(var T=!1,S=[],F=-1;F<y.length;F++){var W=y.charAt(F)||"",H=y.charAt(F+1)||"";zi[W+H]?(S.push(zi[W+H]),F++):T?(S.push(W),T=!1):W==="\\"?(T=!0,i(H)||H==="$"?S.push("$"):H!=="/"&&H!=="\\"&&S.push("\\")):(W==="$"&&S.push("$"),S.push(W),H==="/"&&S.push("\\"))}return S.join("")}function Xr(y){for(var T=new We.StringStream(y),S=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)S.push(T.next());var F=!1;for(var W in kr)if(T.match(W,!0)){F=!0,S.push(kr[W]);break}F||S.push(T.next())}return S.join("")}function gi(y,T,S){var F=He.registerController.getRegister("/");if(F.setText(y),y instanceof RegExp)return y;var W=br(y),H,q;if(!W.length)H=y;else{H=y.substring(0,W[0]);var Y=y.substring(W[0]);q=Y.indexOf("i")!=-1}if(!H)return null;k("pcre")||(H=vo(H)),S&&(T=/^[^A-Z]*$/.test(H));var Z=new RegExp(H,T||q?"im":"m");return Z}function Fr(y){typeof y=="string"&&(y=document.createElement(y));for(var T,S=1;S<arguments.length;S++)if(T=arguments[S])if(typeof T!="object"&&(T=document.createTextNode(T)),T.nodeType)y.appendChild(T);else for(var F in T)Object.prototype.hasOwnProperty.call(T,F)&&(F[0]==="$"?y.style[F.slice(1)]=T[F]:y.setAttribute(F,T[F]));return y}function Ot(y,T){var S=Fr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);y.openNotification?y.openNotification(S,{bottom:!0,duration:5e3}):alert(S.innerText)}function To(y,T){return Fr("div",{$display:"flex"},Fr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,Fr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&Fr("span",{$color:"#888"},T))}function wr(y,T){if(Zr.length){T.value||(T.value=""),Sn=T;return}var S=To(T.prefix,T.desc);if(y.openDialog)y.openDialog(S,T.onClose,{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:T.value});else{var F="";typeof T.prefix!="string"&&T.prefix&&(F+=T.prefix.textContent),T.desc&&(F+=" "+T.desc),T.onClose(prompt(F,""))}}function ce(y,T){if(y instanceof RegExp&&T instanceof RegExp){for(var S=["global","multiline","ignoreCase","source"],F=0;F<S.length;F++){var W=S[F];if(y[W]!==T[W])return!1}return!0}return!1}function ze(y,T,S,F){if(T){var W=An(y),H=gi(T,!!S,!!F);if(H)return St(y,H),ce(H,W.getQuery())||W.setQuery(H),H}}function Fe(y){if(y.source.charAt(0)=="^")var T=!0;return{token:function(S){if(T&&!S.sol()){S.skipToEnd();return}var F=S.match(y,!1);if(F)return F[0].length==0?(S.next(),"searching"):!S.sol()&&(S.backUp(1),!y.exec(S.next()+F[0]))?(S.next(),null):(S.match(y),"searching");for(;!S.eol()&&(S.next(),!S.match(y,!1)););},query:y}}function St(y,T){clearTimeout(Ar);var S=An(y);S.highlightTimeout=Ar,Ar=setTimeout(function(){if(y.state.vim){var F=An(y);F.highlightTimeout=null;var W=F.getOverlay();(!W||T!=W.query)&&(W&&y.removeOverlay(W),W=Fe(T),y.addOverlay(W),y.showMatchesOnScrollbar&&(F.getScrollbarAnnotate()&&F.getScrollbarAnnotate().clear(),F.setScrollbarAnnotate(y.showMatchesOnScrollbar(T))),F.setOverlay(W))}},50)}function Yt(y,T,S,F){return F===void 0&&(F=1),y.operation(function(){for(var W=y.getCursor(),H=y.getSearchCursor(S,W),q=0;q<F;q++){var Y=H.find(T);if(q==0&&Y&&at(H.from(),W)){var Z=T?H.from():H.to();Y=H.find(T),Y&&!Y[0]&&at(H.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=H.find(T))}if(!Y&&(H=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!H.find(T)))return}return H.from()})}function jt(y,T,S,F,W){return F===void 0&&(F=1),y.operation(function(){var H=y.getCursor(),q=y.getSearchCursor(S,H),Y=q.find(!T);!W.visualMode&&Y&&at(q.from(),H)&&q.find(!T);for(var Z=0;Z<F;Z++)if(Y=q.find(T),!Y&&(q=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!q.find(T)))return;return[q.from(),q.to()]})}function xr(y){var T=An(y);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),y.removeOverlay(An(y).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function dr(y,T,S){return typeof y!="number"&&(y=y.line),T instanceof Array?x(y,T):typeof S=="number"?y>=T&&y<=S:y==T}function zn(y){var T=y.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Cr(y,T,S){if(S=="'"||S=="`")return He.jumpList.find(y,-1)||new Ne(0,0);if(S==".")return mn(y);var F=T.marks[S];return F&&F.find()}function mn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var T=y.doc.history.done,S=T.length;S--;)if(T[S].changes)return Ke(T[S].changes[0].to)}function no(y,T,S,F,W,H,q,Y,Z){function re(){y.operation(function(){for(;!Oe;)ae(),ke();ve()})}function ae(){var Ze=y.getRange(H.from(),H.to()),tt=Ze.replace(q,Y),bn=H.to().line;H.replace(tt),Ve=H.to().line,W+=Ve-bn,st=Ve<bn}function be(){var Ze=Le&&Ke(H.to()),tt=H.findNext();return tt&&!tt[0]&&Ze&&at(H.from(),Ze)&&(tt=H.findNext()),tt}function ke(){for(;be()&&dr(H.from(),F,W);)if(!(!S&&H.from().line==Ve&&!st)){y.scrollIntoView(H.from(),30),y.setSelection(H.from(),H.to()),Le=H.from(),Oe=!1;return}Oe=!0}function ve(Ze){if(Ze&&Ze(),y.focus(),Le){y.setCursor(Le);var tt=y.state.vim;tt.exMode=!1,tt.lastHPos=tt.lastHSPos=Le.ch}Z&&Z()}function we(Ze,tt,bn){We.e_stop(Ze);var ct=z(Ze);switch(ct){case"y":ae(),ke();break;case"n":ke();break;case"a":var Mn=Z;Z=void 0,y.operation(re),Z=Mn;break;case"l":ae();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(bn)}return Oe&&ve(bn),!0}y.state.vim.exMode=!0;var Oe=!1,Le,Ve,st;if(ke(),Oe){Ot(y,"No matches for "+q.source);return}if(!T){re(),Z&&Z();return}wr(y,{prefix:Fr("span","replace with ",Fr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function Pr(y,T){var S=y.state.vim,F=He.macroModeState,W=He.registerController.getRegister("."),H=F.isPlaying,q=F.lastInsertModeChanges;H||(y.off("change",Mo),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=null,We.off(y.getInputField(),"keydown",Ps)),!H&&S.insertModeRepeat>1&&(ba(y,S,S.insertModeRepeat-1,!0),S.lastEditInputState.repeatOverride=S.insertModeRepeat),delete S.insertModeRepeat,S.insertMode=!1,T||y.setCursor(y.getCursor().line,y.getCursor().ch-1),y.setOption("keyMap","vim"),y.setOption("disableInput",!0),y.toggleOverwrite(!1),W.setText(q.changes.join("")),We.signal(y,"vim-mode-change",{mode:"normal"}),F.isRecording&&pr(F)}function es(y){Dn.unshift(y)}function Ns(y,T,S,F,W){var H={keys:y,type:T};H[T]=S,H[T+"Args"]=F;for(var q in W)H[q]=W[q];es(H)}function Ds(y,T,S,F){var W=He.registerController.getRegister(F);if(F==":"){W.keyBuffer[0]&&Ir.processCommand(y,W.keyBuffer[0]),S.isPlaying=!1;return}var H=W.keyBuffer,q=0;S.isPlaying=!0,S.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<H.length;Y++)for(var Z=H[Y],re,ae;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ae=re[0],Z=Z.substring(re.index+ae.length),vt.handleKey(y,ae,"macro"),T.insertMode){var be=W.insertModeChanges[q++].changes;He.macroModeState.lastInsertModeChanges.changes=be,os(y,be,1),Pr(y)}S.isPlaying=!1}function ts(y,T){if(!y.isPlaying){var S=y.latestRegister,F=He.registerController.getRegister(S);F&&F.pushText(T)}}function pr(y){if(!y.isPlaying){var T=y.latestRegister,S=He.registerController.getRegister(T);S&&S.pushInsertModeChanges&&S.pushInsertModeChanges(y.lastInsertModeChanges)}}function Fs(y,T){if(!y.isPlaying){var S=y.latestRegister,F=He.registerController.getRegister(S);F&&F.pushSearchQuery&&F.pushSearchQuery(T)}}function Mo(y,T){var S=He.macroModeState,F=S.lastInsertModeChanges;if(!S.isPlaying)for(var W=y.state.vim;T;){if(F.expectCursorActivityForChange=!0,F.ignoreCount>1)F.ignoreCount--;else if(T.origin=="+input"||T.origin=="paste"||T.origin===void 0){var H=y.listSelections().length;H>1&&(F.ignoreCount=H);var q=T.text.join(`
|
|
1405
|
+
`);if(F.maybeReset&&(F.changes=[],F.maybeReset=!1),q)if(y.state.overwrite&&!/\n/.test(q))F.changes.push([q]);else{if(q.length>1){var Y=W&&W.insertEnd&&W.insertEnd.find(),Z=y.getCursor();if(Y&&Y.line==Z.line){var re=Y.ch-Z.ch;re>0&&re<q.length&&(F.changes.push([q,re]),q="")}}q&&F.changes.push(q)}}T=T.next}}function ns(y){var T=y.state.vim;if(T.insertMode){var S=He.macroModeState;if(S.isPlaying)return;var F=S.lastInsertModeChanges;F.expectCursorActivityForChange?F.expectCursorActivityForChange=!1:(F.maybeReset=!0,T.insertEnd&&T.insertEnd.clear(),T.insertEnd=y.setBookmark(y.getCursor(),{insertLeft:!0}))}else y.curOp.isVimOp||rs(y,T)}function rs(y,T,S){var F=y.getCursor("anchor"),W=y.getCursor("head");if(T.visualMode&&!y.somethingSelected()?gn(y,!1):!T.visualMode&&!T.insertMode&&y.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,We.signal(y,"vim-mode-change",{mode:"visual"})),T.visualMode){var H=et(W,F)?0:-1,q=et(W,F)?-1:0;W=me(W,0,H),F=me(F,0,q),T.sel={anchor:F,head:W},Yr(y,T,"<",lt(W,F)),Yr(y,T,">",Xt(W,F))}else!T.insertMode&&!S&&(T.lastHPos=y.getCursor().ch)}function yo(y,T){this.keyName=y,this.key=T.key,this.ctrlKey=T.ctrlKey,this.altKey=T.altKey,this.metaKey=T.metaKey,this.shiftKey=T.shiftKey}function Ps(y){var T=He.macroModeState,S=T.lastInsertModeChanges,F=We.keyName?We.keyName(y):y.key;F&&(F.indexOf("Delete")!=-1||F.indexOf("Backspace")!=-1)&&(S.maybeReset&&(S.changes=[],S.maybeReset=!1),S.changes.push(new yo(F,y)))}function ba(y,T,S,F){function W(){Y?jn.processAction(y,T,T.lastEditActionCommand):jn.evalInput(y,T)}function H(ae){if(q.lastInsertModeChanges.changes.length>0){ae=T.lastEditActionCommand?ae:1;var be=q.lastInsertModeChanges;os(y,be.changes,ae)}}var q=He.macroModeState;q.isPlaying=!0;var Y=!!T.lastEditActionCommand,Z=T.inputState;if(T.inputState=T.lastEditInputState,Y&&T.lastEditActionCommand.interlaceInsertRepeat)for(var re=0;re<S;re++)W(),H(1);else F||W(),H(S);T.inputState=Z,T.insertMode&&!F&&Pr(y),q.isPlaying=!1}function is(y,T){We.lookupKey(T,"vim-insert",function(S){return typeof S=="string"?We.commands[S](y):S(y),!0})}function os(y,T,S){var F=y.getCursor("head"),W=He.macroModeState.lastInsertModeChanges.visualBlock;W&&(Tr(y,F,W+1),S=y.listSelections().length,y.setCursor(F));for(var H=0;H<S;H++){W&&y.setCursor(me(F,H,0));for(var q=0;q<T.length;q++){var Y=T[q];if(Y instanceof yo)is(y,Y.keyName);else if(typeof Y=="string")y.replaceSelection(Y);else{var Z=y.getCursor(),re=me(Z,0,Y[0].length-(Y[1]||0));y.replaceRange(Y[0],Z,Y[1]?Z:re),y.setCursor(re)}}}W&&y.setCursor(me(F,0,1))}function Ws(y,T,S,F){T.length>1&&T[0]=="n"&&(T=T.replace("numpad","")),T=Wr[T]||T;var W="";if(S.ctrlKey&&(W+="C-"),S.altKey&&(W+="A-"),(W||T.length>1)&&S.shiftKey&&(W+="S-"),F&&!F.expectLiteralNext&&T.length==1){if(Zn.keymap&&T in Zn.keymap)(Zn.remapCtrl!==!1||!W)&&(T=Zn.keymap[T]);else if(T.charCodeAt(0)>255){var H=S.code&&S.code.slice(-1)||"";S.shiftKey||(H=H.toLowerCase()),H&&(T=H)}}return W+=T,W.length>1&&(W="<"+W+">"),W}function ss(y){var T=new y.constructor;return Object.keys(y).forEach(function(S){if(S!="insertEnd"){var F=y[S];Array.isArray(F)?F=F.slice():F&&typeof F=="object"&&F.constructor!=Object&&(F=ss(F)),T[S]=F}}),y.sel&&(T.sel={head:y.sel.head&&Ke(y.sel.head),anchor:y.sel.anchor&&Ke(y.sel.anchor)}),T}function Io(y,T,S){var F=!1,W=vt.maybeInitVimState_(y),H=W.visualBlock||W.wasInVisualBlock,q=y.ace.inMultiSelectMode;if(W.wasInVisualBlock&&!q?W.wasInVisualBlock=!1:q&&W.visualBlock&&(W.wasInVisualBlock=!0),T=="<Esc>"&&!W.insertMode&&!W.visualMode&&q)y.ace.exitMultiSelectMode();else if(H||!q||y.ace.inVirtualSelectionMode)F=vt.handleKey(y,T,S);else{var Y=ss(W),Z=W.inputState.changeQueueList||[];y.operation(function(){y.curOp.isVimOp=!0;var re=0;y.ace.forEachSelection(function(){var ae=y.ace.selection;y.state.vim.lastHPos=ae.$desiredColumn==null?ae.lead.column:ae.$desiredColumn,y.state.vim.inputState.changeQueue=Z[re];var be=y.getCursor("head"),ke=y.getCursor("anchor"),ve=et(be,ke)?0:-1,we=et(be,ke)?-1:0;be=me(be,0,ve),ke=me(ke,0,we),y.state.vim.sel.head=be,y.state.vim.sel.anchor=ke,F=Ti(y,T,S),ae.$desiredColumn=y.state.vim.lastHPos==-1?null:y.state.vim.lastHPos,y.ace.inVirtualSelectionMode&&(Z[re]=y.state.vim.inputState.changeQueue),y.virtualSelectionMode()&&(y.state.vim=ss(Y)),re++}),y.curOp.cursorActivity&&!F&&(y.curOp.cursorActivity=!1),W.status=y.state.vim.status,y.state.vim=W,W.inputState.changeQueueList=Z,W.inputState.changeQueue=null},!0)}return F&&!W.visualMode&&!W.insert&&W.visualMode!=y.somethingSelected()&&rs(y,W,!0),F}function Fi(y,T){T.off("beforeEndOperation",Fi);var S=T.state.cm.vimCmd;S&&T.execCommand(S.exec?S:S.name,S.args),T.curOp=T.prevOp}var fr=e("../range").Range,bo=e("../lib/event_emitter").EventEmitter,ro=e("../lib/dom"),wa=e("../lib/oop"),ul=e("../lib/keys"),Eo=e("../lib/event"),io=e("../search").Search,Ro=e("../lib/useragent"),as=e("../search_highlight").SearchHighlight,Lo=e("../commands/multi_select_commands"),xa=e("../mode/text").Mode.prototype.tokenRe,wo=e("../ext/hardwrap").hardWrap;e("../multi_select");var We=function(y){this.ace=y,this.state={},this.marks={},this.options={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};We.Pos=function(y,T){if(!(this instanceof Ne))return new Ne(y,T);this.line=y,this.ch=T},We.defineOption=function(y,T,S){},We.commands={redo:function(y){y.ace.redo()},undo:function(y){y.ace.undo()},newlineAndIndent:function(y){y.ace.insert(`
|
|
1406
|
+
`)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},We.keyMap={},We.addClass=We.rmClass=function(){},We.e_stop=We.e_preventDefault=Eo.stopEvent,We.keyName=function(y){var T=ul[y.keyCode]||y.key||"";return T.length==1&&(T=T.toUpperCase()),T=Eo.getModifierString(y).replace(/(^|-)\w/g,function(S){return S.toUpperCase()})+T,T},We.keyMap.default=function(y){return function(T){var S=T.ace.commands.commandKeyBinding[y.toLowerCase()];return S&&T.ace.execCommand(S)!==!1}},We.lookupKey=function y(T,S,F){S||(S="default"),typeof S=="string"&&(S=We.keyMap[S]||We.keyMap.default);var W=typeof S=="function"?S(T):S[T];if(W===!1)return"nothing";if(W==="...")return"multi";if(W!=null&&F(W))return"handled";if(S.fallthrough){if(!Array.isArray(S.fallthrough))return y(T,S.fallthrough,F);for(var H=0;H<S.fallthrough.length;H++){var q=y(T,S.fallthrough[H],F);if(q)return q}}},We.findMatchingTag=function(y,T){return y.findMatchingTag(T)},We.findEnclosingTag=function(y,T){},We.signal=function(y,T,S){return y._signal(T,S)},We.on=Eo.addListener,We.off=Eo.removeListener,We.isWordChar=function(y){return y<""?/^\w$/.test(y):(xa.lastIndex=0,xa.test(y))},(function(){wa.implement(We.prototype,bo),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(S){this.$lineHandleChanges&&this.$lineHandleChanges.push(S);var F={text:S.action[0]=="i"?S.lines:[]},W=this.curOp=this.curOp||{};W.changeHandlers||(W.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),W.lastChange?W.lastChange.next=W.lastChange=F:W.lastChange=W.change=F,this.$updateMarkers(S)},this.onSelectionChange=function(){var S=this.curOp=this.curOp||{};S.cursorActivityHandlers||(S.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(Lo.keyboardHandler)},this.operation=function(S,F){if(!F&&this.curOp||F&&this.curOp&&this.curOp.force)return S();if((F||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var W=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var H=this.curOp=this.curOp||{};this.curOp.force=F;var q=S();return this.ace.curOp&&this.ace.curOp.command.name=="vim"&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=this.ace.curOp.vimDialogScroll),this.ace.endOperation(),!H.cursorActivity&&!H.lastChange&&W&&(this.ace.prevOp=W)),(F||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),q},this.onBeforeEndOperation=function(){var S=this.curOp;S&&(S.change&&this.signal("change",S.change,S),S&&S.cursorActivity&&this.signal("cursorActivity",null,S),this.curOp=null)},this.signal=function(S,F,W){var H=W?W[S+"Handlers"]:(this._eventRegistry||{})[S];if(H){H=H.slice();for(var q=0;q<H.length;q++)H[q](this,F)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(S,F){typeof S=="object"&&(F=S.ch,S=S.line);var W=!this.curOp&&!this.ace.inVirtualSelectionMode;this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:S,column:F}),this.ace.selection.moveTo(S,F),W&&(this.ace.renderer.scrollCursorIntoView(),this.ace.endOperation())},this.getCursor=function(S){var F=this.ace.selection,W=S=="anchor"?F.isEmpty()?F.lead:F.anchor:S=="head"||!S?F.lead:F.getRange()[S];return m(W)},this.listSelections=function(S){var F=this.ace.multiSelect.rangeList.ranges;return!F.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:F.map(function(W){return{anchor:this.clipPos(m(W.cursor==W.end?W.start:W.end)),head:this.clipPos(m(W.cursor))}},this)},this.setSelections=function(S,F){var W=this.ace.multiSelect,H=S.map(function(re){var ae=g(re.anchor),be=g(re.head),ke=fr.comparePoints(ae,be)<0?new fr.fromPoints(ae,be):new fr.fromPoints(be,ae);return ke.cursor=fr.comparePoints(ke.start,be)?ke.end:ke.start,ke});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(H[0]);return}F?H[F]&&H.push(H.splice(F,1)[0]):H=H.reverse(),W.toSingleRange(H[0].clone());for(var q=this.ace.session,Y=0;Y<H.length;Y++){var Z=q.$clipRangeToDocument(H[Y]);W.addRange(Z)}},this.setSelection=function(S,F,W){var H=this.ace.selection;H.moveTo(S.line,S.ch),H.selectTo(F.line,F.ch),W&&W.origin=="*mouse"&&this.onBeforeEndOperation()},this.somethingSelected=function(S){return!this.ace.selection.isEmpty()},this.clipPos=function(S){var F=this.ace.session.$clipPositionToDocument(S.line,S.ch);return m(F)},this.foldCode=function(S){this.ace.session.$toggleFoldWidget(S.line,{})},this.markText=function(S){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(S){var F=S.action=="insert",W=S.start,H=S.end,q=(H.row-W.row)*(F?1:-1),Y=(H.column-W.column)*(F?1:-1);F&&(H=W);for(var Z in this.marks){var re=this.marks[Z],ae=fr.comparePoints(re,W);if(!(ae<0)){if(ae===0&&F)if(!re.$insertRight)ae=1;else{if(re.bias!=1){re.bias=-1;continue}ae=1}var be=F?ae:fr.comparePoints(re,H);if(be>0){re.row+=q,re.column+=re.row==H.row?Y:0;continue}!F&&be<=0&&(re.row=W.row,re.column=W.column,be===0&&(re.bias=1))}}};var y=function(S,F,W,H){this.cm=S,this.id=F,this.row=W,this.column=H,S.marks[this.id]=this};y.prototype.clear=function(){delete this.cm.marks[this.id]},y.prototype.find=function(){return m(this)},this.setBookmark=function(S,F){var W=new y(this,this.$uid++,S.line,S.ch);return(!F||!F.insertLeft)&&(W.$insertRight=!0),this.marks[W.id]=W,W},this.moveH=function(S,F){if(F=="char"){var W=this.ace.selection;W.clearSelection(),W.moveCursorBy(0,S)}},this.findPosV=function(S,F,W,H){if(W=="page"){var q=this.ace.renderer,Y=q.layerConfig;F*=Math.floor(Y.height/Y.lineHeight),W="line"}if(W=="line"){var Z=this.ace.session.documentToScreenPosition(S.line,S.ch);H!=null&&(Z.column=H),Z.row+=F,Z.row=Math.min(Math.max(0,Z.row),this.ace.session.getScreenLength()-1);var re=this.ace.session.screenToDocumentPosition(Z.row,Z.column);return m(re)}debugger},this.charCoords=function(S,F){if(F=="div"||!F){var W=this.ace.session.documentToScreenPosition(S.line,S.ch);return{left:W.column,top:W.row}}if(F=="local"){var H=this.ace.renderer,W=this.ace.session.documentToScreenPosition(S.line,S.ch),q=H.layerConfig.lineHeight,Y=H.layerConfig.characterWidth,Z=q*W.row;return{left:W.column*Y,top:Z,bottom:Z+q}}},this.coordsChar=function(S,F){var W=this.ace.renderer;if(F=="local"){var H=Math.max(0,Math.floor(S.top/W.lineHeight)),q=Math.max(0,Math.floor(S.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(H,q);return m(Y)}if(F=="div")throw"not implemented"},this.getSearchCursor=function(S,F,W){var H=!1,q=!1;S instanceof RegExp&&!S.global&&(H=!S.ignoreCase,S=S.source,q=!0),S=="\\n"&&(S=`
|
|
1407
|
+
`,q=!1);var Y=new io;F.ch==null&&(F.ch=Number.MAX_VALUE);var Z={row:F.line,column:F.ch},re=this,ae=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(be){Y.setOptions({needle:S,caseSensitive:H,wrap:!1,backwards:be,regExp:q,start:ae||Z});var ke=Y.find(re.ace.session);return ae=ke,ae&&[!ae.isEmpty()]},from:function(){return ae&&m(ae.start)},to:function(){return ae&&m(ae.end)},replace:function(be){ae&&(ae.end=re.ace.session.doc.replace(ae,be))}}},this.scrollTo=function(S,F){var W=this.ace.renderer,H=W.layerConfig,q=H.maxHeight;q-=(W.$size.scrollerHeight-W.lineHeight)*W.$scrollPastEnd,F!=null&&this.ace.session.setScrollTop(Math.max(0,Math.min(F,q))),S!=null&&this.ace.session.setScrollLeft(Math.max(0,Math.min(S,H.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(S,F){if(S){var W=this.ace.renderer,H={top:0,bottom:F};W.scrollCursorIntoView(g(S),W.lineHeight*2/W.$size.scrollerHeight,H)}},this.getLine=function(S){return this.ace.session.getLine(S)},this.getRange=function(S,F){return this.ace.session.getTextRange(new fr(S.line,S.ch,F.line,F.ch))},this.replaceRange=function(S,F,W){W||(W=F);var H=new fr(F.line,F.ch,W.line,W.ch);return this.ace.session.$clipRangeToDocument(H),this.ace.session.replace(H,S)},this.replaceSelection=this.replaceSelections=function(S){var F=Array.isArray(S)&&S,W=this.ace.selection;if(this.ace.inVirtualSelectionMode){this.ace.session.replace(W.getRange(),F?S[0]||"":S);return}W.inVirtualSelectionMode=!0;var H=W.rangeList.ranges;H.length||(H=[this.ace.multiSelect.getRange()]);for(var q=H.length;q--;)this.ace.session.replace(H[q],F?S[q]||"":S);W.inVirtualSelectionMode=!1},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(S){return this.getRange(S.anchor,S.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var T={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(S,F){switch(this.state[S]=F,S){case"indentWithTabs":S=T[S],F=!F;break;case"keyMap":this.state.$keyMap=F;return;default:S=T[S]}S&&this.ace.setOption(S,F)},this.getOption=function(S){var F,W=T[S];switch(W&&(F=this.ace.getOption(W)),S){case"indentWithTabs":return S=T[S],!F;case"keyMap":return this.state.$keyMap||"vim"}return W?F:this.state[S]},this.toggleOverwrite=function(S){return this.state.overwrite=S,this.ace.setOverwrite(S)},this.addOverlay=function(S){if(!this.$searchHighlight||!this.$searchHighlight.session){var F=new as(null,"ace_highlight-marker","text"),W=this.ace.session.addDynamicMarker(F);F.id=W.id,F.session=this.ace.session,F.destroy=function(q){F.session.off("change",F.updateOnChange),F.session.off("changeEditor",F.destroy),F.session.removeMarker(F.id),F.session=null},F.updateOnChange=function(q){var Y=q.start.row;Y==q.end.row?F.cache[Y]=void 0:F.cache.splice(Y,F.cache.length)},F.session.on("changeEditor",F.destroy),F.session.on("change",F.updateOnChange)}var H=new RegExp(S.query.source,"gmi");this.$searchHighlight=S.highlight=F,this.$searchHighlight.setRegexp(H),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(S){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var S=this.ace.renderer,F=S.layerConfig;return{left:S.scrollLeft,top:S.scrollTop,height:F.maxHeight,width:F.width,clientHeight:F.height,clientWidth:F.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(S){return this.ace.setValue(S,-1)},this.getTokenTypeAt=function(S){var F=this.ace.session.getTokenAt(S.line,S.ch);return F&&/comment|string/.test(F.type)?"string":""},this.findMatchingBracket=function(S){var F=this.ace.session.findMatchingBracket(g(S));return{to:F&&m(F)}},this.findMatchingTag=function(S){var F=this.ace.session.getMatchingTags(g(S));if(F)return{open:{from:m(F.openTag.start),to:m(F.openTag.end)},close:{from:m(F.closeTag.start),to:m(F.closeTag.end)}}},this.indentLine=function(S,F){F===!0?this.ace.session.indentRows(S,S," "):F===!1&&this.ace.session.outdentRows(new fr(S,0,S,0))},this.indexFromPos=function(S){return this.ace.session.doc.positionToIndex(g(S))},this.posFromIndex=function(S){return m(this.ace.session.doc.indexToPosition(S))},this.focus=function(S){return this.ace.textInput.focus()},this.blur=function(S){return this.ace.blur()},this.defaultTextHeight=function(S){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(S,F,W,H){var q=H.bracketRegex.source,Y=/paren|text|operator|tag/;if(F==1)var Z=this.ace.session.$findClosingBracket(q.slice(1,2),g(S),Y);else{var Z=this.ace.session.$findOpeningBracket(q.slice(-2,-1),{row:S.line,column:S.ch+1},Y);!Z&&H.bracketRegex&&H.bracketRegex.test(this.getLine(S.line)[S.ch-1])&&(Z={row:S.line,column:S.ch-1})}return Z&&{pos:m(Z)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(S){if(We.commands.hasOwnProperty(S))return We.commands[S](this);if(S=="indentAuto")return this.ace.execCommand("autoindent");console.log(S+" is not implemented")},this.getLineNumber=function(S){var F=this.$lineHandleChanges;if(!F)return null;for(var W=S.row,H=0;H<F.length;H++){var q=F[H];if(q.start.row!=q.end.row){if(q.action[0]=="i")q.start.row<W&&(W+=q.end.row-q.start.row);else if(q.start.row<W){if(W<q.end.row||W==q.end.row&&q.start.column>0)return null;W-=q.end.row-q.start.row}}}return W},this.getLineHandle=function(S){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{text:this.ace.session.getLine(S),row:S}},this.releaseLineHandles=function(){this.$lineHandleChanges=void 0},this.getLastEditEnd=function(){var S=this.ace.session.$undoManager;if(S&&S.$lastDelta)return m(S.$lastDelta.end)}}).call(We.prototype);var Ca=We.StringStream=function(y,T){this.pos=this.start=0,this.string=y,this.tabSize=T||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Ca.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(y){var T=this.string.charAt(this.pos);if(typeof y=="string")var S=T==y;else var S=T&&(y.test?y.test(T):y(T));if(S)return++this.pos,T},eatWhile:function(y){for(var T=this.pos;this.eat(y););return this.pos>T},eatSpace:function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},skipToEnd:function(){this.pos=this.string.length},skipTo:function(y){var T=this.string.indexOf(y,this.pos);if(T>-1)return this.pos=T,!0},backUp:function(y){this.pos-=y},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(y,T,S){if(typeof y!="string"){var F=this.string.slice(this.pos).match(y);return F&&F.index>0?null:(F&&T!==!1&&(this.pos+=F[0].length),F)}var W=function(q){return S?q.toLowerCase():q},H=this.string.substr(this.pos,y.length);if(W(H)==W(y))return T!==!1&&(this.pos+=y.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(y,T){this.lineStart+=y;try{return T()}finally{this.lineStart-=y}}},We.defineExtension=function(y,T){We.prototype[y]=T},ro.importCssString(`.normal-mode .ace_cursor{
|
|
1408
1408
|
border: none;
|
|
1409
1409
|
background-color: rgba(255,0,0,0.5);
|
|
1410
1410
|
}
|
|
@@ -1441,7 +1441,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(gr,i
|
|
|
1441
1441
|
`),this.linewise=!0),this.keyBuffer.push(y)},pushInsertModeChanges:function(y){this.insertModeChanges.push(Hn(y))},pushSearchQuery:function(y){this.searchQueries.push(y)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},K.prototype={pushText:function(y,T,S,F,W){if(y!=="_"){F&&S.charAt(S.length-1)!==`
|
|
1442
1442
|
`&&(S+=`
|
|
1443
1443
|
`);var H=this.isValidRegister(y)?this.getRegister(y):null;if(!H){switch(T){case"yank":this.registers[0]=new B(S,F,W);break;case"delete":case"change":S.indexOf(`
|
|
1444
|
-
`)==-1?this.registers["-"]=new B(S,F):(this.shiftNumericRegisters_(),this.registers[1]=new B(S,F))}this.unnamedRegister.setText(S,F,W);return}var q=s(y);q?H.pushText(S,F):H.setText(S,F,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(S),this.unnamedRegister.setText(H.toString(),F)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new B),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,nn)||Jt.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Q.prototype={nextMatch:function(y,T){var S=this.historyBuffer,F=T?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var W=this.iterator+F;T?W>=0:W<S.length;W+=F)for(var H=S[W],q=0;q<=H.length;q++)if(this.initialPrefix==H.substring(0,q))return this.iterator=W,H;if(W>=S.length)return this.iterator=S.length,this.initialPrefix;if(W<0)return y},pushInput:function(y){var T=this.historyBuffer.indexOf(y);T>-1&&this.historyBuffer.splice(T,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var jn={matchCommand:function(y,T,S,F){var W=_e(y,T,F,S);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var H,q=0;q<W.full.length;q++){var Y=W.full[q];H||(H=Y)}if(H.keys.slice(-11)=="<character>"||H.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};S.selectedCharacter=Z}return{type:"full",command:H}},processCommand:function(y,T,S){switch(T.inputState.repeatOverride=S.repeatOverride,S.type){case"motion":this.processMotion(y,T,S);break;case"operator":this.processOperator(y,T,S);break;case"operatorMotion":this.processOperatorMotion(y,T,S);break;case"action":this.processAction(y,T,S);break;case"search":this.processSearch(y,T,S);break;case"ex":case"keyToEx":this.processEx(y,T,S);break}},processMotion:function(y,T,S){T.inputState.motion=S.motion,T.inputState.motionArgs=de(S.motionArgs),this.evalInput(y,T)},processOperator:function(y,T,S){var F=T.inputState;if(F.operator){if(F.operator==S.operator){F.motion="expandToLine",F.motionArgs={linewise:!0},this.evalInput(y,T);return}A(y)}F.operator=S.operator,F.operatorArgs=de(S.operatorArgs),S.keys.length>1&&(F.operatorShortcut=S.keys),S.exitVisualBlock&&(T.visualBlock=!1,$n(y)),T.visualMode&&this.evalInput(y,T)},processOperatorMotion:function(y,T,S){var F=T.visualMode,W=de(S.operatorMotionArgs);W&&F&&W.visualLine&&(T.visualLine=!0),this.processOperator(y,T,S),F||this.processMotion(y,T,S)},processAction:function(y,T,S){var F=T.inputState,W=F.getRepeat(),H=!!W,q=de(S.actionArgs)||{};F.selectedCharacter&&(q.selectedCharacter=F.selectedCharacter),S.operator&&this.processOperator(y,T,S),S.motion&&this.processMotion(y,T,S),(S.motion||S.operator)&&this.evalInput(y,T),q.repeat=W||1,q.repeatIsExplicit=H,q.registerName=F.registerName,A(y),T.lastMotion=null,S.isEdit&&this.recordLastEdit(T,F,S),Un[S.action](y,q,T)},processSearch:function(y,T,S){function F(Le,Ve,st){He.searchHistoryController.pushInput(Le),He.searchHistoryController.reset();try{ze(y,Le,Ve,st)}catch{Ot(y,"Invalid regex: "+Le),A(y);return}jn.processMotion(y,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:S.searchArgs.toJumplist}})}function W(Le){F(Le,!0,!0);var Ve=He.macroModeState;Ve.isRecording&&Fs(Ve,Le)}function H(Le,Ve,st){var Ze=z(Le),tt,bn;Ze=="<Up>"||Ze=="<Down>"?(tt=Ze=="<Up>",bn=Le.target?Le.target.selectionEnd:0,Ve=He.searchHistoryController.nextMatch(Ve,tt)||"",st(Ve),bn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(bn,Le.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&He.searchHistoryController.reset();var ct;try{ct=ze(y,Ve,!0,!0)}catch{}ct?y.scrollIntoView(Yt(y,!Y,ct),30):(xr(y),y.scrollTo(be.left,be.top))}function q(Le,Ve,st){var Ze=z(Le);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ve==""?(He.searchHistoryController.pushInput(Ve),He.searchHistoryController.reset(),ze(y,ae),xr(y),y.scrollTo(be.left,be.top),We.e_stop(Le),A(y),st(),y.focus()):Ze=="<Up>"||Ze=="<Down>"?We.e_stop(Le):Ze=="<C-u>"&&(We.e_stop(Le),st(""))}if(y.getSearchCursor){var Y=S.searchArgs.forward,Z=S.searchArgs.wholeWordOnly;An(y).setReversed(!Y);var re=Y?"/":"?",ae=An(y).getQuery(),be=y.getScrollInfo();switch(S.searchArgs.querySrc){case"prompt":var ke=He.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();F(Oe,!0,!1)}else wr(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:H,onKeyDown:q});break;case"wordUnderCursor":var ve=ln(y,{noSymbol:!0}),we=!0;if(ve||(ve=ln(y,{noSymbol:!1}),we=!1),!ve){Ot(y,"No word under cursor"),A(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&Z?Oe="\\b"+Oe+"\\b":Oe=un(Oe),He.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),F(Oe,!0,!1)}}},processEx:function(y,T,S){function F(H){He.exCommandHistoryController.pushInput(H),He.exCommandHistoryController.reset(),Ir.processCommand(y,H),y.state.vim&&A(y)}function W(H,q,Y){var Z=z(H),re,ae;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&q=="")&&(He.exCommandHistoryController.pushInput(q),He.exCommandHistoryController.reset(),We.e_stop(H),A(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(We.e_stop(H),re=Z=="<Up>",ae=H.target?H.target.selectionEnd:0,q=He.exCommandHistoryController.nextMatch(q,re)||"",Y(q),ae&&H.target&&(H.target.selectionEnd=H.target.selectionStart=Math.min(ae,H.target.value.length))):Z=="<C-u>"?(We.e_stop(H),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&He.exCommandHistoryController.reset()}S.type=="keyToEx"?Ir.processCommand(y,S.exArgs.input):T.visualMode?wr(y,{onClose:F,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):wr(y,{onClose:F,prefix:":",onKeyDown:W})},evalInput:function(y,T){var S=T.inputState,F=S.motion,W=S.motionArgs||{},H=S.operator,q=S.operatorArgs||{},Y=S.registerName,Z=T.sel,re=Ke(T.visualMode?se(y,Z.head):y.getCursor("head")),ae=Ke(T.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=Ke(re),ke=Ke(ae),ve,we,Oe;if(H&&this.recordLastEdit(T,S),S.repeatOverride!==void 0?Oe=S.repeatOverride:Oe=S.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),S.selectedCharacter&&(W.selectedCharacter=q.selectedCharacter=S.selectedCharacter),W.repeat=Oe,A(y),F){var Le=mi[F](y,re,W,T,S);if(T.lastMotion=mi[F],!Le)return;if(W.toJumplist){!H&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ve=He.jumpList,st=Ve.cachedCursor;st?(Kr(y,st,Le),delete Ve.cachedCursor):Kr(y,re,Le)}Le instanceof Array?(we=Le[0],ve=Le[1]):ve=Le,ve||(ve=Ke(re)),T.visualMode?((!T.visualBlock||ve.ch!==1/0)&&(ve=se(y,ve,be)),we&&(we=se(y,we)),we=we||ke,Z.anchor=we,Z.head=ve,$n(y),Yr(y,T,"<",et(we,ve)?we:ve),Yr(y,T,">",et(we,ve)?ve:we)):H||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(H){if(q.lastSel){we=ke;var Ze=q.lastSel,tt=Math.abs(Ze.head.line-Ze.anchor.line),bn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?ve=new Ne(ke.line+tt,ke.ch):Ze.visualBlock?ve=new Ne(ke.line+tt,ke.ch+bn):Ze.head.line==Ze.anchor.line?ve=new Ne(ke.line,ke.ch+bn):ve=new Ne(ke.line+tt,ke.ch),T.visualMode=!0,T.visualLine=Ze.visualLine,T.visualBlock=Ze.visualBlock,Z=T.sel={anchor:we,head:ve},$n(y)}else T.visualMode&&(q.lastSel={anchor:Ke(Z.anchor),head:Ke(Z.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var ct,Mn,bt,_t,ir;if(T.visualMode){ct=lt(Z.head,Z.anchor),Mn=Xt(Z.head,Z.anchor),bt=T.visualLine||q.linewise,_t=T.visualBlock?"block":bt?"line":"char";var Sr=w(y,ct,Mn);if(ir=yr(y,{anchor:Sr.start,head:Sr.end},_t),bt){var In=ir.ranges;if(_t=="block")for(var V=0;V<In.length;V++)In[V].head.ch=Wt(y,In[V].head.line);else _t=="line"&&(In[0].head=new Ne(In[0].head.line+1,0))}}else{if(ct=Ke(we||ke),Mn=Ke(ve||be),et(Mn,ct)){var X=ct;ct=Mn,Mn=X}bt=W.linewise||q.linewise,bt?Nn(y,ct,Mn):W.forward&&Wn(y,ct,Mn),_t="char";var ie=!W.inclusive||bt,Sr=w(y,ct,Mn);ir=yr(y,{anchor:Sr.start,head:Sr.end},_t,ie)}y.setSelections(ir.ranges,ir.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=bt;var oe=ls[H](y,q,ir.ranges,ke,ve);T.visualMode&&gn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,T,S){var F=He.macroModeState;F.isPlaying||(y.lastEditInputState=T,y.lastEditActionCommand=S,F.lastInsertModeChanges.changes=[],F.lastInsertModeChanges.expectCursorActivityForChange=!1,F.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},mi={moveToTopLine:function(y,T,S){var F=zn(y).top+S.repeat-1;return new Ne(F,Gt(y.getLine(F)))},moveToMiddleLine:function(y){var T=zn(y),S=Math.floor((T.top+T.bottom)*.5);return new Ne(S,Gt(y.getLine(S)))},moveToBottomLine:function(y,T,S){var F=zn(y).bottom-S.repeat+1;return new Ne(F,Gt(y.getLine(F)))},expandToLine:function(y,T,S){var F=T;return new Ne(F.line+S.repeat-1,1/0)},findNext:function(y,T,S){var F=An(y),W=F.getQuery();if(W){var H=!S.forward;return H=F.isReversed()?!H:H,St(y,W),Yt(y,H,W,S.repeat)}},findAndSelectNextInclusive:function(y,T,S,F,W){var H=An(y),q=H.getQuery();if(q){var Y=!S.forward;Y=H.isReversed()?!Y:Y;var Z=jt(y,Y,q,S.repeat,F);if(Z){if(W.operator)return Z;var re=Z[0],ae=new Ne(Z[1].line,Z[1].ch-1);if(F.visualMode){(F.visualLine||F.visualBlock)&&(F.visualLine=!1,F.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=F.sel.anchor;if(be)return H.isReversed()?S.forward?[be,re]:[be,ae]:S.forward?[be,ae]:[be,re]}else F.visualMode=!0,F.visualLine=!1,F.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ae,re]:[re,ae]}}},goToMark:function(y,T,S,F){var W=Cr(y,F,S.selectedCharacter);return W?S.linewise?{line:W.line,ch:Gt(y.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(y,T,S,F){if(F.visualBlock&&S.sameLine){var W=F.sel;return[se(y,new Ne(W.anchor.line,W.head.ch)),se(y,new Ne(W.head.line,W.anchor.ch))]}return[F.sel.head,F.sel.anchor]},jumpToMark:function(y,T,S,F){for(var W=T,H=0;H<S.repeat;H++){var q=W;for(var Y in F.marks)if(u(Y)){var Z=F.marks[Y].find(),re=S.forward?et(Z,q):et(q,Z);if(!re&&!(S.linewise&&Z.line==q.line)){var ae=at(q,W),be=S.forward?xn(q,Z,W):xn(W,Z,q);(ae||be)&&(W=Z)}}}return S.linewise&&(W=new Ne(W.line,Gt(y.getLine(W.line)))),W},moveByCharacters:function(y,T,S){var F=T,W=S.repeat,H=S.forward?F.ch+W:F.ch-W;return new Ne(F.line,H)},moveByLines:function(y,T,S,F){var W=T,H=W.ch;switch(F.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:H=F.lastHPos;break;default:F.lastHPos=H}var q=S.repeat+(S.repeatOffset||0),Y=S.forward?W.line+q:W.line-q,Z=y.firstLine(),re=y.lastLine();if(Y<Z&&W.line==Z)return this.moveToStartOfLine(y,T,S,F);if(Y>re&&W.line==re)return to(y,T,S,F,!0);var ae=y.ace.session.getFoldLine(Y);return ae&&(S.forward?Y>ae.start.row&&(Y=ae.end.row+1):Y=ae.start.row),S.toFirstChar&&(H=Gt(y.getLine(Y)),F.lastHPos=H),F.lastHSPos=y.charCoords(new Ne(Y,H),"div").left,new Ne(Y,H)},moveByDisplayLines:function(y,T,S,F){var W=T;switch(F.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:F.lastHSPos=y.charCoords(W,"div").left}var H=S.repeat,Z=y.findPosV(W,S.forward?H:-H,"line",F.lastHSPos);if(Z.hitSide)if(S.forward)var q=y.charCoords(Z,"div"),Y={top:q.top+8,left:F.lastHSPos},Z=y.coordsChar(Y,"div");else{var re=y.charCoords(new Ne(y.firstLine(),0),"div");re.left=F.lastHSPos,Z=y.coordsChar(re,"div")}return F.lastHPos=Z.ch,Z},moveByPage:function(y,T,S){var F=T,W=S.repeat;return y.findPosV(F,S.forward?W:-W,"page")},moveByParagraph:function(y,T,S){var F=S.forward?1:-1;return hi(y,T,S.repeat,F)},moveBySentence:function(y,T,S){var F=S.forward?1:-1;return di(y,T,S.repeat,F)},moveByScroll:function(y,T,S,F){var W=y.getScrollInfo(),H=null,q=S.repeat;q||(q=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(T,"local");if(S.repeat=q,H=mi.moveByDisplayLines(y,T,S,F),!H)return null;var Z=y.charCoords(H,"local");return y.scrollTo(null,W.top+Z.top-Y.top),H},moveByWords:function(y,T,S){return Bn(y,T,S.repeat,!!S.forward,!!S.wordEnd,!!S.bigWord)},moveTillCharacter:function(y,T,S){var F=S.repeat,W=ui(y,F,S.forward,S.selectedCharacter,T),H=S.forward?-1:1;return Gr(H,S),W?(W.ch+=H,W):null},moveToCharacter:function(y,T,S){var F=S.repeat;return Gr(0,S),ui(y,F,S.forward,S.selectedCharacter,T)||T},moveToSymbol:function(y,T,S){var F=S.repeat;return Ai(y,F,S.forward,S.selectedCharacter)||T},moveToColumn:function(y,T,S,F){var W=S.repeat;return F.lastHPos=W-1,F.lastHSPos=y.charCoords(T,"div").left,Os(y,W)},moveToEol:function(y,T,S,F){return to(y,T,S,F,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,T){var S=T;return new Ne(S.line,Gt(y.getLine(S.line)))},moveToMatchedSymbol:function(y,T){for(var S=T,F=S.line,W=S.ch,H=y.getLine(F),q;W<H.length;W++)if(q=H.charAt(W),q&&c(q)){var Y=y.getTokenTypeAt(new Ne(F,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<H.length){var Z=/[<>]/.test(H[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new Ne(F,W+1),{bracketRegex:Z});return re.to}return S},moveToStartOfLine:function(y,T){return new Ne(T.line,0)},moveToLineOrEdgeOfDocument:function(y,T,S){var F=S.forward?y.lastLine():y.firstLine();return S.repeatIsExplicit&&(F=S.repeat-y.getOption("firstLineNumber")),new Ne(F,Gt(y.getLine(F)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var T=y.getCursor();return T.sticky=="before"&&T.ch--,T},textObjectManipulation:function(y,T,S,F){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},H={"'":!0,'"':!0,"`":!0},q=S.selectedCharacter;q=="b"?q="(":q=="B"&&(q="{");var Y=!S.textObjectInner,Z,re;if(W[q]){if(re=!0,Z=kn(y,T,q,Y),!Z){var ae=y.getSearchCursor(new RegExp("\\"+q,"g"),T);ae.find()&&(Z=kn(y,ae.from(),q,Y))}}else if(H[q])re=!0,Z=ur(y,T,q,Y);else if(q==="W"||q==="w")for(var be=S.repeat||1;be-- >0;){var ke=ln(y,{inclusive:Y,innerWord:!Y,bigWord:q==="W",noSymbol:q==="W",multiline:!0},Z&&Z.end);ke&&(Z||(Z=ke),Z.end=ke.end)}else if(q==="p")if(Z=hi(y,T,S.repeat,0,Y),S.linewise=!0,F.visualMode)F.visualLine||(F.visualLine=!0);else{var ve=F.inputState.operatorArgs;ve&&(ve.linewise=!0),Z.end.line--}else if(q==="t")Z=Dr(y,T,Y);else if(q==="s"){var we=y.getLine(T.line);T.ch>0&&b(we[T.ch])&&(T.ch-=1);var Oe=Qo(y,T,S.repeat,1,Y),Le=Qo(y,T,S.repeat,-1,Y);p(y.getLine(Le.line)[Le.ch])&&p(y.getLine(Oe.line)[Oe.ch-1])&&(Le={line:Le.line,ch:Le.ch+1}),Z={start:Le,end:Oe}}return Z?y.state.vim.visualMode?Ht(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,T,S){var F=He.lastCharacterSearch,W=S.repeat,H=S.forward===F.forward,q=(F.increment?1:0)*(H?-1:1);y.moveH(-q,"char"),S.inclusive=!!H;var Y=ui(y,W,H,F.selectedCharacter);return Y?(Y.ch+=q,Y):(y.moveH(q,"char"),T)}},ls={change:function(y,T,S){var F,W,H=y.state.vim,q=S[0].anchor,Y=S[0].head;if(H.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(q,Y),W=y.getSelection(),y.replaceSelection(""),F=q;else{W=y.getSelection();var Z=he("",S.length);y.replaceSelections(Z),F=lt(S[0].head,S[0].anchor)}else{W=y.getRange(q,Y);var re=H.lastEditInputState||{};if(re.motion=="moveByWords"&&!p(W)){var ae=/\s+$/.exec(W);ae&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-ae[0].length),W=W.slice(0,-ae[0].length))}T.linewise&&(q=new Ne(q.line,Gt(y.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",q,Y),F=q}He.registerController.pushText(T.registerName,"change",W,T.linewise,S.length>1),Un.enterInsertMode(y,{head:F},y.state.vim)},delete:function(y,T,S){var F,W,H=y.state.vim;if(H.visualBlock){W=y.getSelection();var q=he("",S.length);y.replaceSelections(q),F=lt(S[0].head,S[0].anchor)}else{var Y=S[0].anchor,Z=S[0].head;T.linewise&&Z.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==Z.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Wt(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),F=Y,T.linewise&&(F=mi.moveToFirstNonWhiteSpaceCharacter(y,Y))}return He.registerController.pushText(T.registerName,"delete",W,T.linewise,H.visualBlock),se(y,F)},indent:function(y,T,S){var F=y.state.vim,W=F.visualMode?T.repeat:1;if(F.visualBlock){for(var H=y.getOption("tabSize"),q=y.getOption("indentWithTabs")?" ":" ".repeat(H),Y,Z=S.length-1;Z>=0;Z--)if(Y=lt(S[Z].anchor,S[Z].head),T.indentRight)y.replaceRange(q.repeat(W),Y,Y);else{for(var re=y.getLine(Y.line),ae=0,be=0;be<W;be++){var ke=re[Y.ch+ae];if(ke==" ")ae++;else{if(ke!=" ")break;ae++;for(var ve=1;ve<q.length&&(ke=re[Y.ch+ae],ke===" ");ve++)ae++}}y.replaceRange("",Y,me(Y,0,ae))}return Y}if(y.indentMore)for(var be=0;be<W;be++)T.indentRight?y.indentMore():y.indentLess();else{var we=S[0].anchor.line,Oe=F.visualBlock?S[S.length-1].anchor.line:S[0].head.line;T.linewise&&Oe--;for(var Z=we;Z<=Oe;Z++)for(var be=0;be<W;be++)y.indentLine(Z,T.indentRight)}return mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},indentAuto:function(y,T,S){return y.execCommand("indentAuto"),mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},hardWrap:function(y,T,S,F,W){if(y.hardWrap){var H=S[0].anchor.line,q=S[0].head.line;T.linewise&&q--;var Y=y.hardWrap({from:H,to:q});return Y>H&&T.linewise&&Y--,T.keepCursor?F:new Ne(Y,0)}},changeCase:function(y,T,S,F,W){for(var H=y.getSelections(),q=[],Y=T.toLower,Z=0;Z<H.length;Z++){var re=H[Z],ae="";if(Y===!0)ae=re.toLowerCase();else if(Y===!1)ae=re.toUpperCase();else for(var be=0;be<re.length;be++){var ke=re.charAt(be);ae+=s(ke)?ke.toLowerCase():ke.toUpperCase()}q.push(ae)}return y.replaceSelections(q),T.shouldMoveCursor?W:!y.state.vim.visualMode&&T.linewise&&S[0].anchor.line+1==S[0].head.line?mi.moveToFirstNonWhiteSpaceCharacter(y,F):T.linewise?F:lt(S[0].anchor,S[0].head)},yank:function(y,T,S,F){var W=y.state.vim,H=y.getSelection(),q=W.visualMode?lt(W.sel.anchor,W.sel.head,S[0].head,S[0].anchor):F;return He.registerController.pushText(T.registerName,"yank",H,T.linewise,W.visualBlock),q}},Un={jumpListWalk:function(y,T,S){if(!S.visualMode){var F=T.repeat,W=T.forward,H=He.jumpList,q=H.move(y,W?F:-F),Y=q?q.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,T,S){if(!S.visualMode){var F=T.repeat||1,W=y.defaultTextHeight(),H=y.getScrollInfo().top,q=W*F,Y=T.forward?H+q:H-q,Z=Ke(y.getCursor()),re=y.charCoords(Z,"local");if(T.forward)Y>re.top?(Z.line+=(Y-re.top)/W,Z.line=Math.ceil(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var ae=Y+y.getScrollInfo().clientHeight;ae<re.bottom?(Z.line-=(re.bottom-ae)/W,Z.line=Math.floor(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,T){var S=y.getCursor().line,F=y.charCoords(new Ne(S,0),"local"),W=y.getScrollInfo().clientHeight,H=F.top;switch(T.position){case"center":H=F.bottom-W/2;break;case"bottom":var q=new Ne(S,y.getLine(S).length-1),Y=y.charCoords(q,"local"),Z=Y.bottom-H;H=H-W+Z}y.scrollTo(null,H)},replayMacro:function(y,T,S){var F=T.selectedCharacter,W=T.repeat,H=He.macroModeState;for(F=="@"?F=H.latestRegister:H.latestRegister=F;W--;)Ds(y,S,H,F)},enterMacroRecordMode:function(y,T){var S=He.macroModeState,F=T.selectedCharacter;He.registerController.isValidRegister(F)&&S.enterMacroRecordMode(y,F)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,T,S){if(!y.getOption("readOnly")){S.insertMode=!0,S.insertModeRepeat=T&&T.repeat||1;var F=T?T.insertAt:null,W=S.sel,H=T.head||y.getCursor("head"),q=y.listSelections().length;if(F=="eol")H=new Ne(H.line,Wt(y,H.line));else if(F=="bol")H=new Ne(H.line,0);else if(F=="charAfter"){var Y=w(y,H,me(H,0,1));H=Y.end}else if(F=="firstNonBlank"){var Y=w(y,H,mi.moveToFirstNonWhiteSpaceCharacter(y,H));H=Y.end}else if(F=="startOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=new Ne(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),q=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?H=W.head:H=new Ne(W.anchor.line,0)}else if(F=="endOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=new Ne(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),q=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?H=me(W.head,0,1):H=new Ne(W.anchor.line,0)}else if(F=="inplace"){if(S.visualMode)return}else F=="lastEdit"&&(H=mn(y)||H);y.setOption("disableInput",!1),T&&T.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})),He.macroModeState.isPlaying||(y.on("change",Mo),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(H,{insertLeft:!0}),We.on(y.getInputField(),"keydown",Ps)),S.visualMode&&gn(y),Tr(y,H,q)}},toggleVisualMode:function(y,T,S){var F=T.repeat,W=y.getCursor(),H;if(S.visualMode)S.visualLine^T.linewise||S.visualBlock^T.blockwise?(S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),$n(y)):gn(y);else{S.visualMode=!0,S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,H=se(y,new Ne(W.line,W.ch+F-1));var q=w(y,W,H);S.sel={anchor:q.start,head:q.end},We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),$n(y),Yr(y,S,"<",lt(W,H)),Yr(y,S,">",Xt(W,H))}},reselectLastSelection:function(y,T,S){var F=S.lastSelection;if(S.visualMode&&Lt(y,S),F){var W=F.anchorMark.find(),H=F.headMark.find();if(!W||!H)return;S.sel={anchor:W,head:H},S.visualMode=!0,S.visualLine=F.visualLine,S.visualBlock=F.visualBlock,$n(y),Yr(y,S,"<",lt(W,H)),Yr(y,S,">",Xt(W,H)),We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""})}},joinLines:function(y,T,S){var F,W;if(S.visualMode){if(F=y.getCursor("anchor"),W=y.getCursor("head"),et(W,F)){var H=W;W=F,F=H}W.ch=Wt(y,W.line)-1}else{var q=Math.max(T.repeat,2);F=y.getCursor(),W=se(y,new Ne(F.line+q-1,1/0))}for(var Y=0,Z=F.line;Z<W.line;Z++){Y=Wt(y,F.line);var re="",ae=0;if(!T.keepSpaces){var be=y.getLine(F.line+1);ae=be.search(/\S/),ae==-1?ae=be.length:re=" "}y.replaceRange(re,new Ne(F.line,Y),new Ne(F.line+1,ae))}var ke=se(y,new Ne(F.line,Y));S.visualMode&&gn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,T,S){S.insertMode=!0;var F=Ke(y.getCursor());if(F.line===y.firstLine()&&!T.after)y.replaceRange(`
|
|
1444
|
+
`)==-1?this.registers["-"]=new B(S,F):(this.shiftNumericRegisters_(),this.registers[1]=new B(S,F))}this.unnamedRegister.setText(S,F,W);return}var q=s(y);q?H.pushText(S,F):H.setText(S,F,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(S),this.unnamedRegister.setText(H.toString(),F)}},getRegister:function(y){return this.isValidRegister(y)?(y=y.toLowerCase(),this.registers[y]||(this.registers[y]=new B),this.registers[y]):this.unnamedRegister},isValidRegister:function(y){return y&&(x(y,nn)||Jt.test(y))},shiftNumericRegisters_:function(){for(var y=9;y>=2;y--)this.registers[y]=this.getRegister(""+(y-1))}},Q.prototype={nextMatch:function(y,T){var S=this.historyBuffer,F=T?-1:1;this.initialPrefix===null&&(this.initialPrefix=y);for(var W=this.iterator+F;T?W>=0:W<S.length;W+=F)for(var H=S[W],q=0;q<=H.length;q++)if(this.initialPrefix==H.substring(0,q))return this.iterator=W,H;if(W>=S.length)return this.iterator=S.length,this.initialPrefix;if(W<0)return y},pushInput:function(y){var T=this.historyBuffer.indexOf(y);T>-1&&this.historyBuffer.splice(T,1),y.length&&this.historyBuffer.push(y)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var jn={matchCommand:function(y,T,S,F){var W=_e(y,T,F,S);if(!W.full&&!W.partial)return{type:"none"};if(!W.full&&W.partial)return{type:"partial",expectLiteralNext:W.partial.length==1&&W.partial[0].keys.slice(-11)=="<character>"};for(var H,q=0;q<W.full.length;q++){var Y=W.full[q];H||(H=Y)}if(H.keys.slice(-11)=="<character>"||H.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};S.selectedCharacter=Z}return{type:"full",command:H}},processCommand:function(y,T,S){switch(T.inputState.repeatOverride=S.repeatOverride,S.type){case"motion":this.processMotion(y,T,S);break;case"operator":this.processOperator(y,T,S);break;case"operatorMotion":this.processOperatorMotion(y,T,S);break;case"action":this.processAction(y,T,S);break;case"search":this.processSearch(y,T,S);break;case"ex":case"keyToEx":this.processEx(y,T,S);break}},processMotion:function(y,T,S){T.inputState.motion=S.motion,T.inputState.motionArgs=de(S.motionArgs),this.evalInput(y,T)},processOperator:function(y,T,S){var F=T.inputState;if(F.operator){if(F.operator==S.operator){F.motion="expandToLine",F.motionArgs={linewise:!0},this.evalInput(y,T);return}A(y)}F.operator=S.operator,F.operatorArgs=de(S.operatorArgs),S.keys.length>1&&(F.operatorShortcut=S.keys),S.exitVisualBlock&&(T.visualBlock=!1,$n(y)),T.visualMode&&this.evalInput(y,T)},processOperatorMotion:function(y,T,S){var F=T.visualMode,W=de(S.operatorMotionArgs);W&&F&&W.visualLine&&(T.visualLine=!0),this.processOperator(y,T,S),F||this.processMotion(y,T,S)},processAction:function(y,T,S){var F=T.inputState,W=F.getRepeat(),H=!!W,q=de(S.actionArgs)||{};F.selectedCharacter&&(q.selectedCharacter=F.selectedCharacter),S.operator&&this.processOperator(y,T,S),S.motion&&this.processMotion(y,T,S),(S.motion||S.operator)&&this.evalInput(y,T),q.repeat=W||1,q.repeatIsExplicit=H,q.registerName=F.registerName,A(y),T.lastMotion=null,S.isEdit&&this.recordLastEdit(T,F,S),Un[S.action](y,q,T)},processSearch:function(y,T,S){function F(Le,Ve,st){He.searchHistoryController.pushInput(Le),He.searchHistoryController.reset();try{ze(y,Le,Ve,st)}catch{Ot(y,"Invalid regex: "+Le),A(y);return}jn.processMotion(y,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:S.searchArgs.toJumplist}})}function W(Le){F(Le,!0,!0);var Ve=He.macroModeState;Ve.isRecording&&Fs(Ve,Le)}function H(Le,Ve,st){var Ze=z(Le),tt,bn;Ze=="<Up>"||Ze=="<Down>"?(tt=Ze=="<Up>",bn=Le.target?Le.target.selectionEnd:0,Ve=He.searchHistoryController.nextMatch(Ve,tt)||"",st(Ve),bn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(bn,Le.target.value.length))):Ze&&Ze!="<Left>"&&Ze!="<Right>"&&He.searchHistoryController.reset();var ct;try{ct=ze(y,Ve,!0,!0)}catch{}ct?y.scrollIntoView(Yt(y,!Y,ct),30):(xr(y),y.scrollTo(be.left,be.top))}function q(Le,Ve,st){var Ze=z(Le);Ze=="<Esc>"||Ze=="<C-c>"||Ze=="<C-[>"||Ze=="<BS>"&&Ve==""?(He.searchHistoryController.pushInput(Ve),He.searchHistoryController.reset(),ze(y,ae),xr(y),y.scrollTo(be.left,be.top),We.e_stop(Le),A(y),st(),y.focus()):Ze=="<Up>"||Ze=="<Down>"?We.e_stop(Le):Ze=="<C-u>"&&(We.e_stop(Le),st(""))}if(y.getSearchCursor){var Y=S.searchArgs.forward,Z=S.searchArgs.wholeWordOnly;An(y).setReversed(!Y);var re=Y?"/":"?",ae=An(y).getQuery(),be=y.getScrollInfo();switch(S.searchArgs.querySrc){case"prompt":var ke=He.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();F(Oe,!0,!1)}else wr(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:H,onKeyDown:q});break;case"wordUnderCursor":var ve=ln(y,{noSymbol:!0}),we=!0;if(ve||(ve=ln(y,{noSymbol:!1}),we=!1),!ve){Ot(y,"No word under cursor"),A(y);return}var Oe=y.getLine(ve.start.line).substring(ve.start.ch,ve.end.ch);we&&Z?Oe="\\b"+Oe+"\\b":Oe=un(Oe),He.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),F(Oe,!0,!1)}}},processEx:function(y,T,S){function F(H){He.exCommandHistoryController.pushInput(H),He.exCommandHistoryController.reset(),Ir.processCommand(y,H),y.state.vim&&A(y)}function W(H,q,Y){var Z=z(H),re,ae;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&q=="")&&(He.exCommandHistoryController.pushInput(q),He.exCommandHistoryController.reset(),We.e_stop(H),A(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(We.e_stop(H),re=Z=="<Up>",ae=H.target?H.target.selectionEnd:0,q=He.exCommandHistoryController.nextMatch(q,re)||"",Y(q),ae&&H.target&&(H.target.selectionEnd=H.target.selectionStart=Math.min(ae,H.target.value.length))):Z=="<C-u>"?(We.e_stop(H),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&He.exCommandHistoryController.reset()}S.type=="keyToEx"?Ir.processCommand(y,S.exArgs.input):T.visualMode?wr(y,{onClose:F,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):wr(y,{onClose:F,prefix:":",onKeyDown:W})},evalInput:function(y,T){var S=T.inputState,F=S.motion,W=S.motionArgs||{},H=S.operator,q=S.operatorArgs||{},Y=S.registerName,Z=T.sel,re=Ke(T.visualMode?se(y,Z.head):y.getCursor("head")),ae=Ke(T.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=Ke(re),ke=Ke(ae),ve,we,Oe;if(H&&this.recordLastEdit(T,S),S.repeatOverride!==void 0?Oe=S.repeatOverride:Oe=S.getRepeat(),Oe>0&&W.explicitRepeat?W.repeatIsExplicit=!0:(W.noRepeat||!W.explicitRepeat&&Oe===0)&&(Oe=1,W.repeatIsExplicit=!1),S.selectedCharacter&&(W.selectedCharacter=q.selectedCharacter=S.selectedCharacter),W.repeat=Oe,A(y),F){var Le=mi[F](y,re,W,T,S);if(T.lastMotion=mi[F],!Le)return;if(W.toJumplist){!H&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ve=He.jumpList,st=Ve.cachedCursor;st?(Kr(y,st,Le),delete Ve.cachedCursor):Kr(y,re,Le)}Le instanceof Array?(we=Le[0],ve=Le[1]):ve=Le,ve||(ve=Ke(re)),T.visualMode?((!T.visualBlock||ve.ch!==1/0)&&(ve=se(y,ve,be)),we&&(we=se(y,we)),we=we||ke,Z.anchor=we,Z.head=ve,$n(y),Yr(y,T,"<",et(we,ve)?we:ve),Yr(y,T,">",et(we,ve)?ve:we)):H||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(H){if(q.lastSel){we=ke;var Ze=q.lastSel,tt=Math.abs(Ze.head.line-Ze.anchor.line),bn=Math.abs(Ze.head.ch-Ze.anchor.ch);Ze.visualLine?ve=new Ne(ke.line+tt,ke.ch):Ze.visualBlock?ve=new Ne(ke.line+tt,ke.ch+bn):Ze.head.line==Ze.anchor.line?ve=new Ne(ke.line,ke.ch+bn):ve=new Ne(ke.line+tt,ke.ch),T.visualMode=!0,T.visualLine=Ze.visualLine,T.visualBlock=Ze.visualBlock,Z=T.sel={anchor:we,head:ve},$n(y)}else T.visualMode&&(q.lastSel={anchor:Ke(Z.anchor),head:Ke(Z.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var ct,Mn,bt,_t,ir;if(T.visualMode){ct=lt(Z.head,Z.anchor),Mn=Xt(Z.head,Z.anchor),bt=T.visualLine||q.linewise,_t=T.visualBlock?"block":bt?"line":"char";var Sr=w(y,ct,Mn);if(ir=yr(y,{anchor:Sr.start,head:Sr.end},_t),bt){var In=ir.ranges;if(_t=="block")for(var V=0;V<In.length;V++)In[V].head.ch=Wt(y,In[V].head.line);else _t=="line"&&(In[0].head=new Ne(In[0].head.line+1,0))}}else{if(ct=Ke(we||ke),Mn=Ke(ve||be),et(Mn,ct)){var X=ct;ct=Mn,Mn=X}bt=W.linewise||q.linewise,bt?Nn(y,ct,Mn):W.forward&&Wn(y,ct,Mn),_t="char";var ie=!W.inclusive||bt,Sr=w(y,ct,Mn);ir=yr(y,{anchor:Sr.start,head:Sr.end},_t,ie)}y.setSelections(ir.ranges,ir.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=bt;var oe=ls[H](y,q,ir.ranges,ke,ve);T.visualMode&&gn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,T,S){var F=He.macroModeState;F.isPlaying||(y.lastEditInputState=T,y.lastEditActionCommand=S,F.lastInsertModeChanges.changes=[],F.lastInsertModeChanges.expectCursorActivityForChange=!1,F.lastInsertModeChanges.visualBlock=y.visualBlock?y.sel.head.line-y.sel.anchor.line:0)}},mi={moveToTopLine:function(y,T,S){var F=zn(y).top+S.repeat-1;return new Ne(F,Gt(y.getLine(F)))},moveToMiddleLine:function(y){var T=zn(y),S=Math.floor((T.top+T.bottom)*.5);return new Ne(S,Gt(y.getLine(S)))},moveToBottomLine:function(y,T,S){var F=zn(y).bottom-S.repeat+1;return new Ne(F,Gt(y.getLine(F)))},expandToLine:function(y,T,S){var F=T;return new Ne(F.line+S.repeat-1,1/0)},findNext:function(y,T,S){var F=An(y),W=F.getQuery();if(W){var H=!S.forward;return H=F.isReversed()?!H:H,St(y,W),Yt(y,H,W,S.repeat)}},findAndSelectNextInclusive:function(y,T,S,F,W){var H=An(y),q=H.getQuery();if(q){var Y=!S.forward;Y=H.isReversed()?!Y:Y;var Z=jt(y,Y,q,S.repeat,F);if(Z){if(W.operator)return Z;var re=Z[0],ae=new Ne(Z[1].line,Z[1].ch-1);if(F.visualMode){(F.visualLine||F.visualBlock)&&(F.visualLine=!1,F.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=F.sel.anchor;if(be)return H.isReversed()?S.forward?[be,re]:[be,ae]:S.forward?[be,ae]:[be,re]}else F.visualMode=!0,F.visualLine=!1,F.visualBlock=!1,We.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ae,re]:[re,ae]}}},goToMark:function(y,T,S,F){var W=Cr(y,F,S.selectedCharacter);return W?S.linewise?{line:W.line,ch:Gt(y.getLine(W.line))}:W:null},moveToOtherHighlightedEnd:function(y,T,S,F){if(F.visualBlock&&S.sameLine){var W=F.sel;return[se(y,new Ne(W.anchor.line,W.head.ch)),se(y,new Ne(W.head.line,W.anchor.ch))]}return[F.sel.head,F.sel.anchor]},jumpToMark:function(y,T,S,F){for(var W=T,H=0;H<S.repeat;H++){var q=W;for(var Y in F.marks)if(u(Y)){var Z=F.marks[Y].find(),re=S.forward?et(Z,q):et(q,Z);if(!re&&!(S.linewise&&Z.line==q.line)){var ae=at(q,W),be=S.forward?xn(q,Z,W):xn(W,Z,q);(ae||be)&&(W=Z)}}}return S.linewise&&(W=new Ne(W.line,Gt(y.getLine(W.line)))),W},moveByCharacters:function(y,T,S){var F=T,W=S.repeat,H=S.forward?F.ch+W:F.ch-W;return new Ne(F.line,H)},moveByLines:function(y,T,S,F){var W=T,H=W.ch;switch(F.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:H=F.lastHPos;break;default:F.lastHPos=H}var q=S.repeat+(S.repeatOffset||0),Y=S.forward?W.line+q:W.line-q,Z=y.firstLine(),re=y.lastLine();if(Y<Z&&W.line==Z)return this.moveToStartOfLine(y,T,S,F);if(Y>re&&W.line==re)return to(y,T,S,F,!0);var ae=y.ace.session.getFoldLine(Y);return ae&&(S.forward?Y>ae.start.row&&(Y=ae.end.row+1):Y=ae.start.row),S.toFirstChar&&(H=Gt(y.getLine(Y)),F.lastHPos=H),F.lastHSPos=y.charCoords(new Ne(Y,H),"div").left,new Ne(Y,H)},moveByDisplayLines:function(y,T,S,F){var W=T;switch(F.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:F.lastHSPos=y.charCoords(W,"div").left}var H=S.repeat,Z=y.findPosV(W,S.forward?H:-H,"line",F.lastHSPos);if(Z.hitSide)if(S.forward)var q=y.charCoords(Z,"div"),Y={top:q.top+8,left:F.lastHSPos},Z=y.coordsChar(Y,"div");else{var re=y.charCoords(new Ne(y.firstLine(),0),"div");re.left=F.lastHSPos,Z=y.coordsChar(re,"div")}return F.lastHPos=Z.ch,Z},moveByPage:function(y,T,S){var F=T,W=S.repeat;return y.findPosV(F,S.forward?W:-W,"page")},moveByParagraph:function(y,T,S){var F=S.forward?1:-1;return hi(y,T,S.repeat,F)},moveBySentence:function(y,T,S){var F=S.forward?1:-1;return di(y,T,S.repeat,F)},moveByScroll:function(y,T,S,F){var W=y.getScrollInfo(),H=null,q=S.repeat;q||(q=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(T,"local");if(S.repeat=q,H=mi.moveByDisplayLines(y,T,S,F),!H)return null;var Z=y.charCoords(H,"local");return y.scrollTo(null,W.top+Z.top-Y.top),H},moveByWords:function(y,T,S){return Bn(y,T,S.repeat,!!S.forward,!!S.wordEnd,!!S.bigWord)},moveTillCharacter:function(y,T,S){var F=S.repeat,W=ui(y,F,S.forward,S.selectedCharacter,T),H=S.forward?-1:1;return Gr(H,S),W?(W.ch+=H,W):null},moveToCharacter:function(y,T,S){var F=S.repeat;return Gr(0,S),ui(y,F,S.forward,S.selectedCharacter,T)||T},moveToSymbol:function(y,T,S){var F=S.repeat;return Ai(y,F,S.forward,S.selectedCharacter)||T},moveToColumn:function(y,T,S,F){var W=S.repeat;return F.lastHPos=W-1,F.lastHSPos=y.charCoords(T,"div").left,Os(y,W)},moveToEol:function(y,T,S,F){return to(y,T,S,F,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,T){var S=T;return new Ne(S.line,Gt(y.getLine(S.line)))},moveToMatchedSymbol:function(y,T){for(var S=T,F=S.line,W=S.ch,H=y.getLine(F),q;W<H.length;W++)if(q=H.charAt(W),q&&c(q)){var Y=y.getTokenTypeAt(new Ne(F,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<H.length){var Z=/[<>]/.test(H[W])?/[(){}[\]<>]/:/[(){}[\]]/,re=y.findMatchingBracket(new Ne(F,W+1),{bracketRegex:Z});return re.to}return S},moveToStartOfLine:function(y,T){return new Ne(T.line,0)},moveToLineOrEdgeOfDocument:function(y,T,S){var F=S.forward?y.lastLine():y.firstLine();return S.repeatIsExplicit&&(F=S.repeat-y.getOption("firstLineNumber")),new Ne(F,Gt(y.getLine(F)))},moveToStartOfDisplayLine:function(y){return y.execCommand("goLineLeft"),y.getCursor()},moveToEndOfDisplayLine:function(y){y.execCommand("goLineRight");var T=y.getCursor();return T.sticky=="before"&&T.ch--,T},textObjectManipulation:function(y,T,S,F){var W={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},H={"'":!0,'"':!0,"`":!0},q=S.selectedCharacter;q=="b"?q="(":q=="B"&&(q="{");var Y=!S.textObjectInner,Z,re;if(W[q]){if(re=!0,Z=kn(y,T,q,Y),!Z){var ae=y.getSearchCursor(new RegExp("\\"+q,"g"),T);ae.find()&&(Z=kn(y,ae.from(),q,Y))}}else if(H[q])re=!0,Z=hr(y,T,q,Y);else if(q==="W"||q==="w")for(var be=S.repeat||1;be-- >0;){var ke=ln(y,{inclusive:Y,innerWord:!Y,bigWord:q==="W",noSymbol:q==="W",multiline:!0},Z&&Z.end);ke&&(Z||(Z=ke),Z.end=ke.end)}else if(q==="p")if(Z=hi(y,T,S.repeat,0,Y),S.linewise=!0,F.visualMode)F.visualLine||(F.visualLine=!0);else{var ve=F.inputState.operatorArgs;ve&&(ve.linewise=!0),Z.end.line--}else if(q==="t")Z=Dr(y,T,Y);else if(q==="s"){var we=y.getLine(T.line);T.ch>0&&b(we[T.ch])&&(T.ch-=1);var Oe=Qo(y,T,S.repeat,1,Y),Le=Qo(y,T,S.repeat,-1,Y);p(y.getLine(Le.line)[Le.ch])&&p(y.getLine(Oe.line)[Oe.ch-1])&&(Le={line:Le.line,ch:Le.ch+1}),Z={start:Le,end:Oe}}return Z?y.state.vim.visualMode?Ht(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,T,S){var F=He.lastCharacterSearch,W=S.repeat,H=S.forward===F.forward,q=(F.increment?1:0)*(H?-1:1);y.moveH(-q,"char"),S.inclusive=!!H;var Y=ui(y,W,H,F.selectedCharacter);return Y?(Y.ch+=q,Y):(y.moveH(q,"char"),T)}},ls={change:function(y,T,S){var F,W,H=y.state.vim,q=S[0].anchor,Y=S[0].head;if(H.visualMode)if(T.fullLine)Y.ch=Number.MAX_VALUE,Y.line--,y.setSelection(q,Y),W=y.getSelection(),y.replaceSelection(""),F=q;else{W=y.getSelection();var Z=he("",S.length);y.replaceSelections(Z),F=lt(S[0].head,S[0].anchor)}else{W=y.getRange(q,Y);var re=H.lastEditInputState||{};if(re.motion=="moveByWords"&&!p(W)){var ae=/\s+$/.exec(W);ae&&re.motionArgs&&re.motionArgs.forward&&(Y=me(Y,0,-ae[0].length),W=W.slice(0,-ae[0].length))}T.linewise&&(q=new Ne(q.line,Gt(y.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",q,Y),F=q}He.registerController.pushText(T.registerName,"change",W,T.linewise,S.length>1),Un.enterInsertMode(y,{head:F},y.state.vim)},delete:function(y,T,S){var F,W,H=y.state.vim;if(H.visualBlock){W=y.getSelection();var q=he("",S.length);y.replaceSelections(q),F=lt(S[0].head,S[0].anchor)}else{var Y=S[0].anchor,Z=S[0].head;T.linewise&&Z.line!=y.firstLine()&&Y.line==y.lastLine()&&Y.line==Z.line-1&&(Y.line==y.firstLine()?Y.ch=0:Y=new Ne(Y.line-1,Wt(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),F=Y,T.linewise&&(F=mi.moveToFirstNonWhiteSpaceCharacter(y,Y))}return He.registerController.pushText(T.registerName,"delete",W,T.linewise,H.visualBlock),se(y,F)},indent:function(y,T,S){var F=y.state.vim,W=F.visualMode?T.repeat:1;if(F.visualBlock){for(var H=y.getOption("tabSize"),q=y.getOption("indentWithTabs")?" ":" ".repeat(H),Y,Z=S.length-1;Z>=0;Z--)if(Y=lt(S[Z].anchor,S[Z].head),T.indentRight)y.replaceRange(q.repeat(W),Y,Y);else{for(var re=y.getLine(Y.line),ae=0,be=0;be<W;be++){var ke=re[Y.ch+ae];if(ke==" ")ae++;else{if(ke!=" ")break;ae++;for(var ve=1;ve<q.length&&(ke=re[Y.ch+ae],ke===" ");ve++)ae++}}y.replaceRange("",Y,me(Y,0,ae))}return Y}if(y.indentMore)for(var be=0;be<W;be++)T.indentRight?y.indentMore():y.indentLess();else{var we=S[0].anchor.line,Oe=F.visualBlock?S[S.length-1].anchor.line:S[0].head.line;T.linewise&&Oe--;for(var Z=we;Z<=Oe;Z++)for(var be=0;be<W;be++)y.indentLine(Z,T.indentRight)}return mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},indentAuto:function(y,T,S){return y.execCommand("indentAuto"),mi.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},hardWrap:function(y,T,S,F,W){if(y.hardWrap){var H=S[0].anchor.line,q=S[0].head.line;T.linewise&&q--;var Y=y.hardWrap({from:H,to:q});return Y>H&&T.linewise&&Y--,T.keepCursor?F:new Ne(Y,0)}},changeCase:function(y,T,S,F,W){for(var H=y.getSelections(),q=[],Y=T.toLower,Z=0;Z<H.length;Z++){var re=H[Z],ae="";if(Y===!0)ae=re.toLowerCase();else if(Y===!1)ae=re.toUpperCase();else for(var be=0;be<re.length;be++){var ke=re.charAt(be);ae+=s(ke)?ke.toLowerCase():ke.toUpperCase()}q.push(ae)}return y.replaceSelections(q),T.shouldMoveCursor?W:!y.state.vim.visualMode&&T.linewise&&S[0].anchor.line+1==S[0].head.line?mi.moveToFirstNonWhiteSpaceCharacter(y,F):T.linewise?F:lt(S[0].anchor,S[0].head)},yank:function(y,T,S,F){var W=y.state.vim,H=y.getSelection(),q=W.visualMode?lt(W.sel.anchor,W.sel.head,S[0].head,S[0].anchor):F;return He.registerController.pushText(T.registerName,"yank",H,T.linewise,W.visualBlock),q}},Un={jumpListWalk:function(y,T,S){if(!S.visualMode){var F=T.repeat,W=T.forward,H=He.jumpList,q=H.move(y,W?F:-F),Y=q?q.find():void 0;Y=Y||y.getCursor(),y.setCursor(Y),y.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(y,T,S){if(!S.visualMode){var F=T.repeat||1,W=y.defaultTextHeight(),H=y.getScrollInfo().top,q=W*F,Y=T.forward?H+q:H-q,Z=Ke(y.getCursor()),re=y.charCoords(Z,"local");if(T.forward)Y>re.top?(Z.line+=(Y-re.top)/W,Z.line=Math.ceil(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.top)):y.scrollTo(null,Y);else{var ae=Y+y.getScrollInfo().clientHeight;ae<re.bottom?(Z.line-=(re.bottom-ae)/W,Z.line=Math.floor(Z.line),y.setCursor(Z),re=y.charCoords(Z,"local"),y.scrollTo(null,re.bottom-y.getScrollInfo().clientHeight)):y.scrollTo(null,Y)}}},scrollToCursor:function(y,T){var S=y.getCursor().line,F=y.charCoords(new Ne(S,0),"local"),W=y.getScrollInfo().clientHeight,H=F.top;switch(T.position){case"center":H=F.bottom-W/2;break;case"bottom":var q=new Ne(S,y.getLine(S).length-1),Y=y.charCoords(q,"local"),Z=Y.bottom-H;H=H-W+Z}y.scrollTo(null,H)},replayMacro:function(y,T,S){var F=T.selectedCharacter,W=T.repeat,H=He.macroModeState;for(F=="@"?F=H.latestRegister:H.latestRegister=F;W--;)Ds(y,S,H,F)},enterMacroRecordMode:function(y,T){var S=He.macroModeState,F=T.selectedCharacter;He.registerController.isValidRegister(F)&&S.enterMacroRecordMode(y,F)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(y,T,S){if(!y.getOption("readOnly")){S.insertMode=!0,S.insertModeRepeat=T&&T.repeat||1;var F=T?T.insertAt:null,W=S.sel,H=T.head||y.getCursor("head"),q=y.listSelections().length;if(F=="eol")H=new Ne(H.line,Wt(y,H.line));else if(F=="bol")H=new Ne(H.line,0);else if(F=="charAfter"){var Y=w(y,H,me(H,0,1));H=Y.end}else if(F=="firstNonBlank"){var Y=w(y,H,mi.moveToFirstNonWhiteSpaceCharacter(y,H));H=Y.end}else if(F=="startOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=new Ne(Math.min(W.head.line,W.anchor.line),Math.min(W.head.ch,W.anchor.ch)),q=Math.abs(W.head.line-W.anchor.line)+1):W.head.line<W.anchor.line?H=W.head:H=new Ne(W.anchor.line,0)}else if(F=="endOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(H=new Ne(Math.min(W.head.line,W.anchor.line),Math.max(W.head.ch,W.anchor.ch)+1),q=Math.abs(W.head.line-W.anchor.line)+1):W.head.line>=W.anchor.line?H=me(W.head,0,1):H=new Ne(W.anchor.line,0)}else if(F=="inplace"){if(S.visualMode)return}else F=="lastEdit"&&(H=mn(y)||H);y.setOption("disableInput",!1),T&&T.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),We.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),We.signal(y,"vim-mode-change",{mode:"insert"})),He.macroModeState.isPlaying||(y.on("change",Mo),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(H,{insertLeft:!0}),We.on(y.getInputField(),"keydown",Ps)),S.visualMode&&gn(y),Tr(y,H,q)}},toggleVisualMode:function(y,T,S){var F=T.repeat,W=y.getCursor(),H;if(S.visualMode)S.visualLine^T.linewise||S.visualBlock^T.blockwise?(S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),$n(y)):gn(y);else{S.visualMode=!0,S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,H=se(y,new Ne(W.line,W.ch+F-1));var q=w(y,W,H);S.sel={anchor:q.start,head:q.end},We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),$n(y),Yr(y,S,"<",lt(W,H)),Yr(y,S,">",Xt(W,H))}},reselectLastSelection:function(y,T,S){var F=S.lastSelection;if(S.visualMode&&Lt(y,S),F){var W=F.anchorMark.find(),H=F.headMark.find();if(!W||!H)return;S.sel={anchor:W,head:H},S.visualMode=!0,S.visualLine=F.visualLine,S.visualBlock=F.visualBlock,$n(y),Yr(y,S,"<",lt(W,H)),Yr(y,S,">",Xt(W,H)),We.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""})}},joinLines:function(y,T,S){var F,W;if(S.visualMode){if(F=y.getCursor("anchor"),W=y.getCursor("head"),et(W,F)){var H=W;W=F,F=H}W.ch=Wt(y,W.line)-1}else{var q=Math.max(T.repeat,2);F=y.getCursor(),W=se(y,new Ne(F.line+q-1,1/0))}for(var Y=0,Z=F.line;Z<W.line;Z++){Y=Wt(y,F.line);var re="",ae=0;if(!T.keepSpaces){var be=y.getLine(F.line+1);ae=be.search(/\S/),ae==-1?ae=be.length:re=" "}y.replaceRange(re,new Ne(F.line,Y),new Ne(F.line+1,ae))}var ke=se(y,new Ne(F.line,Y));S.visualMode&&gn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,T,S){S.insertMode=!0;var F=Ke(y.getCursor());if(F.line===y.firstLine()&&!T.after)y.replaceRange(`
|
|
1445
1445
|
`,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{F.line=T.after?F.line:F.line-1,F.ch=Wt(y,F.line),y.setCursor(F);var W=We.commands.newlineAndIndentContinueComment||We.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:T.repeat},S)},paste:function(y,T,S){var F=this,W=He.registerController.getRegister(T.registerName),H=function(){var q=W.toString();F.continuePaste(y,T,S,q,W)};T.registerName==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"?navigator.clipboard.readText().then(function(q){F.continuePaste(y,T,S,q,W)},function(){H()}):H()},continuePaste:function(y,T,S,F,W){var H=Ke(y.getCursor());if(F){if(T.matchIndent){var q=y.getOption("tabSize"),Y=function(In){var V=In.split(" ").length-1,X=In.split(" ").length-1;return V*q+X*1},Z=y.getLine(y.getCursor().line),re=Y(Z.match(/^\s*/)[0]),ae=F.replace(/\n$/,""),be=F!==ae,ke=Y(F.match(/^\s*/)[0]),F=ae.replace(/^\s*/gm,function(In){var V=re+(Y(In)-ke);if(V<0)return"";if(y.getOption("indentWithTabs")){var X=Math.floor(V/q);return Array(X+1).join(" ")}return Array(V+1).join(" ")});F+=be?`
|
|
1446
1446
|
`:""}if(T.repeat>1)var F=Array(T.repeat+1).join(F);var ve=W.linewise,we=W.blockwise;if(we){F=F.split(`
|
|
1447
1447
|
`),ve&&F.pop();for(var Oe=0;Oe<F.length;Oe++)F[Oe]=F[Oe]==""?" ":F[Oe];H.ch+=T.after?1:0,H.ch=Math.min(Wt(y,H.line),H.ch)}else ve?S.visualMode?F=S.visualLine?F.slice(0,-1):`
|
|
@@ -1459,16 +1459,16 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(gr,i
|
|
|
1459
1459
|
`)}Ot(y,W)},sort:function(y,T){function S(){if(T.argString){var bt=new We.StringStream(T.argString);if(bt.eat("!")&&(H=!0),bt.eol())return;if(!bt.eatSpace())return"Invalid arguments";var _t=bt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!_t&&!bt.eol())return"Invalid arguments";if(_t[1]){q=_t[1].indexOf("i")!=-1,Y=_t[1].indexOf("u")!=-1;var ir=_t[1].indexOf("d")!=-1||_t[1].indexOf("n")!=-1&&1,Sr=_t[1].indexOf("x")!=-1&&1,In=_t[1].indexOf("o")!=-1&&1;if(ir+Sr+In>1)return"Invalid arguments";Z=ir&&"decimal"||Sr&&"hex"||In&&"octal"}_t[2]&&(re=new RegExp(_t[2].substr(1,_t[2].length-2),q?"i":""))}}function F(bt,_t){if(H){var ir;ir=bt,bt=_t,_t=ir}q&&(bt=bt.toLowerCase(),_t=_t.toLowerCase());var Sr=Z&&Le.exec(bt),In=Z&&Le.exec(_t);return Sr?(Sr=parseInt((Sr[1]+Sr[2]).toLowerCase(),Ve),In=parseInt((In[1]+In[2]).toLowerCase(),Ve),Sr-In):bt<_t?-1:1}function W(bt,_t){if(H){var ir;ir=bt,bt=_t,_t=ir}return q&&(bt[0]=bt[0].toLowerCase(),_t[0]=_t[0].toLowerCase()),bt[0]<_t[0]?-1:1}var H,q,Y,Z,re,ae=S();if(ae){Ot(y,ae+": "+T.argString);return}var be=T.line||y.firstLine(),ke=T.lineEnd||T.line||y.lastLine();if(be!=ke){var ve=new Ne(be,0),we=new Ne(ke,Wt(y,ke)),Oe=y.getRange(ve,we).split(`
|
|
1460
1460
|
`),Le=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),Ve=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,st=[],Ze=[];if(Z||re)for(var tt=0;tt<Oe.length;tt++){var bn=re?Oe[tt].match(re):null;bn&&bn[0]!=""?st.push(bn):!re&&Le.exec(Oe[tt])?st.push(Oe[tt]):Ze.push(Oe[tt])}else Ze=Oe;if(st.sort(re?W:F),re)for(var tt=0;tt<st.length;tt++)st[tt]=st[tt].input;else Z||Ze.sort(F);if(Oe=H?st.concat(Ze):Ze.concat(st),Y){var ct=Oe,Mn;Oe=[];for(var tt=0;tt<ct.length;tt++)ct[tt]!=Mn&&Oe.push(ct[tt]),Mn=ct[tt]}y.replaceRange(Oe.join(`
|
|
1461
1461
|
`),ve,we)}},vglobal:function(y,T){this.global(y,T)},normal:function(y,T){var S=T.argString;if(S&&S[0]=="!"&&(S=S.slice(1),hn=!0),S=S.trimStart(),!S){Ot(y,"Argument is required.");return}var F=T.line;if(typeof F=="number")for(var W=isNaN(T.lineEnd)?F:T.lineEnd,H=F;H<=W;H++)y.setCursor(H,0),I(y,T.argString.trimStart()),y.state.vim.insertMode&&Pr(y,!0);else I(y,T.argString.trimStart()),y.state.vim.insertMode&&Pr(y,!0)},global:function(y,T){var S=T.argString;if(!S){Ot(y,"Regular Expression missing from global");return}var F=T.commandName[0]==="v";S[0]==="!"&&T.commandName[0]==="g"&&(F=!0,S=S.slice(1));var W=T.line!==void 0?T.line:y.firstLine(),H=T.lineEnd||T.line||y.lastLine(),q=Tn(S),Y=S,Z;if(q.length&&(Y=q[0],Z=q.slice(1,q.length).join("/")),Y)try{ze(y,Y,!0,!0)}catch{Ot(y,"Invalid regex: "+Y);return}for(var re=An(y).getQuery(),ae=[],be=W;be<=H;be++){var ke=y.getLine(be),ve=re.test(ke);ve!==F&&ae.push(Z?y.getLineHandle(be):ke)}if(!Z){Ot(y,ae.join(`
|
|
1462
|
-
`));return}var we=0,Oe=function(){if(we<ae.length){var Le=ae[we++],Ve=y.getLineNumber(Le);if(Ve==null){Oe();return}var st=Ve+1+Z;Ir.processCommand(y,st,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,T){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var S=T.argString,F=S?fi(S,S[0]):[],W,H="",q,Y,Z,re=!1,ae=!1;if(F.length)W=F[0],k("pcre")&&W!==""&&(W=new RegExp(W).source),H=F[1],H!==void 0&&(k("pcre")?H=Xr(H.replace(/([^\\])&/g,"$1$$&")):H=Jo(H),He.lastSubstituteReplacePart=H),q=F[2]?F[2].split(" "):[];else if(S&&S.length){Ot(y,"Substitutions should be of the form :s/pattern/replace/");return}if(q&&(Y=q[0],Z=parseInt(q[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(ae=!0),k("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{ze(y,W,!0,!0)}catch{Ot(y,"Invalid regex: "+W);return}if(H=H||He.lastSubstituteReplacePart,H===void 0){Ot(y,"No previous substitute regular expression");return}var be=An(y),ke=be.getQuery(),ve=T.line!==void 0?T.line:y.getCursor().line,we=T.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),Z&&(ve=we,we=ve+Z-1);var Oe=se(y,new Ne(ve,0)),Le=y.getSearchCursor(ke,Oe);no(y,re,ae,ve,we,Le,ke,H,T.callback)},startinsert:function(y,T){I(y,T.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(y){We.commands.save?We.commands.save(y):y.save&&y.save()},nohlsearch:function(y){xr(y)},yank:function(y){var T=Ke(y.getCursor()),S=T.line,F=y.getLine(S);He.registerController.pushText("0","yank",F,!0,!0)},delete:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;ls.delete(y,{linewise:!0},[{anchor:new Ne(S,0),head:new Ne(F+1,0)}])},join:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;y.setCursor(new Ne(S,0)),Un.joinLines(y,{repeat:F-S},y.state.vim)},delmarks:function(y,T){if(!T.argString||!vr(T.argString)){Ot(y,"Argument required");return}for(var S=y.state.vim,F=new We.StringStream(vr(T.argString));!F.eol();){F.eatSpace();var W=F.pos;if(!F.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var H=F.next();if(F.match("-",!0)){if(!F.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var q=H,Y=F.next();if(!(u(q)&&u(Y)||s(q)&&s(Y))){Ot(y,"Invalid argument: "+q+"-");return}var Z=q.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Ot(y,"Invalid argument: "+T.argString.substring(W));return}for(var ae=0;ae<=re-Z;ae++){var be=String.fromCharCode(Z+ae);delete S.marks[be]}}else delete S.marks[H]}}},Ir=new Mr;R("insertModeEscKeysTimeout",200,"number"),We.Vim=vt;var Wr={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},Ti=vt.handleKey.bind(vt);vt.handleKey=function(y,T,S){return y.operation(function(){return Ti(y,T,S)},!0)},D(),r.CodeMirror=We;var Mi=vt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,T,S,F,W){var H=this.state.vim||{},q=S.characterWidth,Y=S.lineHeight,Z=T.top,re=T.left;if(!H.insertMode){var ae=F.cursor?pr.comparePoints(F.cursor,F.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ae&&re>q&&(re-=q)}!H.insertMode&&H.status&&(Y/=2,Z+=Y),ro.translate(y,re,Z),ro.setStyle(y.style,"width",q+"px"),ro.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var T=y.state.cm,S=Mi(T);if(!S.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,T,S,F,W){var H=y.editor,q=H.state.cm,Y=Mi(q);if(F!=-1){if(Y.insertMode||(T==-1?(S.charCodeAt(0)>255&&y.inputKey&&(S=y.inputKey,S&&y.inputHash==4&&(S=S.toUpperCase())),y.inputChar=S):T==4||T==0?y.inputKey==S&&y.inputHash==T&&y.inputChar?(S=y.inputChar,T=-1):(y.inputChar=null,y.inputKey=S,y.inputHash=T):y.inputChar=y.inputKey=null),q.state.overwrite&&Y.insertMode&&S=="backspace"&&T==0)return{command:"gotoleft"};if(S=="c"&&T==1&&!Ro.isMac&&H.getCopyText())return H.once("copy",function(){Y.insertMode?H.selection.clearSelection():q.operation(function(){gn(q)})}),{command:"null",passEvent:!0};if(S=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Z=An(q),re=Z.getOverlay();re&&q.removeOverlay(re)}if(T==-1||T&1||T===0&&S.length>1){var ae=Y.insertMode,be=Ws(T,S,W||{},Y);Y.status==null&&(Y.status="");var ke=Io(q,be,"user");return Y=Mi(q),ke&&Y.status!=null?Y.status+=be:Y.status==null&&(Y.status=""),q._signal("changeStatus"),!ke&&(T!=-1||ae)?void 0:{command:"null",passEvent:!ke}}}},attach:function(y){function T(){var F=Mi(S).insertMode;S.ace.renderer.setStyle("normal-mode",!F),y.textInput.setCommandMode(!F),y.renderer.$keepTextAreaAtCursor=F,y.renderer.$blockCursor=!F}y.state||(y.state={});var S=new We(y);y.state.cm=S,y.$vimModeHandler=this,h(S),Mi(S).status=null,S.on("vim-command-done",function(){S.virtualSelectionMode()||(Mi(S).status=null,S.ace._signal("changeStatus"),S.ace.session.markUndoGroup())}),S.on("changeStatus",function(){S.ace.renderer.updateCursor(),S.ace._signal("changeStatus")}),S.on("vim-mode-change",function(){S.virtualSelectionMode()||(T(),S._signal("changeStatus"))}),T(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(S)},detach:function(y){var T=y.state.cm;d(T),T.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var T=y.state.cm,S=Mi(T);if(S.insertMode)return"INSERT";var F="";return S.visualMode&&(F+="VISUAL",S.visualLine&&(F+=" LINE"),S.visualBlock&&(F+=" BLOCK")),S.status&&(F+=(F?" ":"")+S.status),F}},vt.defineOption({name:"wrap",set:function(y,T){T&&T.ace.setOption("wrap",y)},type:"boolean"},!1),vt.defineEx("write","w",function(){console.log(":write is not implemented")}),Dn.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Dn.push({keys:"gq",type:"operator",operator:"hardWrap"}),vt.defineOperator("hardWrap",function(y,T,S,F,W){var H=S[0].anchor.line,q=S[0].head.line;return T.linewise&&q--,wo(y.ace,{startRow:H,endRow:q}),Ne(q,0)}),R("textwidth",void 0,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.ace.getOption("printMarginColumn");return S}var F=Math.round(y);F>1&&T.ace.setOption("printMarginColumn",F)}}),Un.aceCommand=function(y,T,S){y.vimCmd=T,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Fi):Fi(null,y.ace)},Un.fold=function(y,T,S){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},Oo=Dn.length,r.handler.defaultKeymap=Dn,r.handler.actions=Un,r.Vim=vt}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(Ag)),Ag.exports}wk();var _g={},$g;function xk(){return $g||($g=1,function(n){(function(){var t={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return f(m(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function f(w,h){var d=1,a=w.length,l,u="",c,i,s,p,b,x,R,_;for(c=0;c<a;c++)if(typeof w[c]=="string")u+=w[c];else if(typeof w[c]=="object"){if(s=w[c],s.keys)for(l=h[d],i=0;i<s.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));l=l[s.keys[i]]}else s.param_no?l=h[s.param_no]:l=h[d++];if(t.not_type.test(s.type)&&t.not_primitive.test(s.type)&&l instanceof Function&&(l=l()),t.numeric_arg.test(s.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(t.number.test(s.type)&&(R=l>=0),s.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,s.width?parseInt(s.width):0);break;case"e":l=s.precision?parseFloat(l).toExponential(s.precision):parseFloat(l).toExponential();break;case"f":l=s.precision?parseFloat(l).toFixed(s.precision):parseFloat(l);break;case"g":l=s.precision?String(Number(l.toPrecision(s.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=s.precision?l.substring(0,s.precision):l;break;case"t":l=String(!!l),l=s.precision?l.substring(0,s.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=s.precision?l.substring(0,s.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=s.precision?l.substring(0,s.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}t.json.test(s.type)?u+=l:(t.number.test(s.type)&&(!R||s.sign)?(_=R?"+":"-",l=l.toString().replace(t.sign,"")):_="",b=s.pad_char?s.pad_char==="0"?"0":s.pad_char.charAt(1):" ",x=s.width-(_+l).length,p=s.width&&x>0?b.repeat(x):"",u+=s.align?_+l+p:b==="0"?_+p+l:p+_+l)}return u}var g=Object.create(null);function m(w){if(g[w])return g[w];for(var h=w,d,a=[],l=0;h;){if((d=t.text.exec(h))!==null)a.push(d[0]);else if((d=t.modulo.exec(h))!==null)a.push("%");else if((d=t.placeholder.exec(h))!==null){if(d[2]){l|=1;var u=[],c=d[2],i=[];if((i=t.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=t.key_access.exec(c))!==null)u.push(i[1]);else if((i=t.index_access.exec(c))!==null)u.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=u}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return g[w]=a}n.sprintf=e,n.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()}(_g)),_g}xk();var Gl={exports:{}};/**
|
|
1462
|
+
`));return}var we=0,Oe=function(){if(we<ae.length){var Le=ae[we++],Ve=y.getLineNumber(Le);if(Ve==null){Oe();return}var st=Ve+1+Z;Ir.processCommand(y,st,{callback:Oe})}else y.releaseLineHandles&&y.releaseLineHandles()};Oe()},substitute:function(y,T){if(!y.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var S=T.argString,F=S?fi(S,S[0]):[],W,H="",q,Y,Z,re=!1,ae=!1;if(F.length)W=F[0],k("pcre")&&W!==""&&(W=new RegExp(W).source),H=F[1],H!==void 0&&(k("pcre")?H=Xr(H.replace(/([^\\])&/g,"$1$$&")):H=Jo(H),He.lastSubstituteReplacePart=H),q=F[2]?F[2].split(" "):[];else if(S&&S.length){Ot(y,"Substitutions should be of the form :s/pattern/replace/");return}if(q&&(Y=q[0],Z=parseInt(q[1]),Y&&(Y.indexOf("c")!=-1&&(re=!0),Y.indexOf("g")!=-1&&(ae=!0),k("pcre")?W=W+"/"+Y:W=W.replace(/\//g,"\\/")+"/"+Y)),W)try{ze(y,W,!0,!0)}catch{Ot(y,"Invalid regex: "+W);return}if(H=H||He.lastSubstituteReplacePart,H===void 0){Ot(y,"No previous substitute regular expression");return}var be=An(y),ke=be.getQuery(),ve=T.line!==void 0?T.line:y.getCursor().line,we=T.lineEnd||ve;ve==y.firstLine()&&we==y.lastLine()&&(we=1/0),Z&&(ve=we,we=ve+Z-1);var Oe=se(y,new Ne(ve,0)),Le=y.getSearchCursor(ke,Oe);no(y,re,ae,ve,we,Le,ke,H,T.callback)},startinsert:function(y,T){I(y,T.argString=="!"?"A":"i",{})},redo:We.commands.redo,undo:We.commands.undo,write:function(y){We.commands.save?We.commands.save(y):y.save&&y.save()},nohlsearch:function(y){xr(y)},yank:function(y){var T=Ke(y.getCursor()),S=T.line,F=y.getLine(S);He.registerController.pushText("0","yank",F,!0,!0)},delete:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;ls.delete(y,{linewise:!0},[{anchor:new Ne(S,0),head:new Ne(F+1,0)}])},join:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;y.setCursor(new Ne(S,0)),Un.joinLines(y,{repeat:F-S},y.state.vim)},delmarks:function(y,T){if(!T.argString||!vr(T.argString)){Ot(y,"Argument required");return}for(var S=y.state.vim,F=new We.StringStream(vr(T.argString));!F.eol();){F.eatSpace();var W=F.pos;if(!F.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var H=F.next();if(F.match("-",!0)){if(!F.match(/[a-zA-Z]/,!1)){Ot(y,"Invalid argument: "+T.argString.substring(W));return}var q=H,Y=F.next();if(!(u(q)&&u(Y)||s(q)&&s(Y))){Ot(y,"Invalid argument: "+q+"-");return}var Z=q.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Ot(y,"Invalid argument: "+T.argString.substring(W));return}for(var ae=0;ae<=re-Z;ae++){var be=String.fromCharCode(Z+ae);delete S.marks[be]}}else delete S.marks[H]}}},Ir=new Mr;R("insertModeEscKeysTimeout",200,"number"),We.Vim=vt;var Wr={return:"CR",backspace:"BS",delete:"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",insert:"Ins",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},Ti=vt.handleKey.bind(vt);vt.handleKey=function(y,T,S){return y.operation(function(){return Ti(y,T,S)},!0)},D(),r.CodeMirror=We;var Mi=vt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,T,S,F,W){var H=this.state.vim||{},q=S.characterWidth,Y=S.lineHeight,Z=T.top,re=T.left;if(!H.insertMode){var ae=F.cursor?fr.comparePoints(F.cursor,F.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ae&&re>q&&(re-=q)}!H.insertMode&&H.status&&(Y/=2,Z+=Y),ro.translate(y,re,Z),ro.setStyle(y.style,"width",q+"px"),ro.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var T=y.state.cm,S=Mi(T);if(!S.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,T,S,F,W){var H=y.editor,q=H.state.cm,Y=Mi(q);if(F!=-1){if(Y.insertMode||(T==-1?(S.charCodeAt(0)>255&&y.inputKey&&(S=y.inputKey,S&&y.inputHash==4&&(S=S.toUpperCase())),y.inputChar=S):T==4||T==0?y.inputKey==S&&y.inputHash==T&&y.inputChar?(S=y.inputChar,T=-1):(y.inputChar=null,y.inputKey=S,y.inputHash=T):y.inputChar=y.inputKey=null),q.state.overwrite&&Y.insertMode&&S=="backspace"&&T==0)return{command:"gotoleft"};if(S=="c"&&T==1&&!Ro.isMac&&H.getCopyText())return H.once("copy",function(){Y.insertMode?H.selection.clearSelection():q.operation(function(){gn(q)})}),{command:"null",passEvent:!0};if(S=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Z=An(q),re=Z.getOverlay();re&&q.removeOverlay(re)}if(T==-1||T&1||T===0&&S.length>1){var ae=Y.insertMode,be=Ws(T,S,W||{},Y);Y.status==null&&(Y.status="");var ke=Io(q,be,"user");return Y=Mi(q),ke&&Y.status!=null?Y.status+=be:Y.status==null&&(Y.status=""),q._signal("changeStatus"),!ke&&(T!=-1||ae)?void 0:{command:"null",passEvent:!ke}}}},attach:function(y){function T(){var F=Mi(S).insertMode;S.ace.renderer.setStyle("normal-mode",!F),y.textInput.setCommandMode(!F),y.renderer.$keepTextAreaAtCursor=F,y.renderer.$blockCursor=!F}y.state||(y.state={});var S=new We(y);y.state.cm=S,y.$vimModeHandler=this,h(S),Mi(S).status=null,S.on("vim-command-done",function(){S.virtualSelectionMode()||(Mi(S).status=null,S.ace._signal("changeStatus"),S.ace.session.markUndoGroup())}),S.on("changeStatus",function(){S.ace.renderer.updateCursor(),S.ace._signal("changeStatus")}),S.on("vim-mode-change",function(){S.virtualSelectionMode()||(T(),S._signal("changeStatus"))}),T(),y.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(S)},detach:function(y){var T=y.state.cm;d(T),T.destroy(),y.state.cm=null,y.$vimModeHandler=null,y.renderer.$cursorLayer.drawCursor=null,y.renderer.setStyle("normal-mode",!1),y.textInput.setCommandMode(!1),y.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(y){var T=y.state.cm,S=Mi(T);if(S.insertMode)return"INSERT";var F="";return S.visualMode&&(F+="VISUAL",S.visualLine&&(F+=" LINE"),S.visualBlock&&(F+=" BLOCK")),S.status&&(F+=(F?" ":"")+S.status),F}},vt.defineOption({name:"wrap",set:function(y,T){T&&T.ace.setOption("wrap",y)},type:"boolean"},!1),vt.defineEx("write","w",function(){console.log(":write is not implemented")}),Dn.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Dn.push({keys:"gq",type:"operator",operator:"hardWrap"}),vt.defineOperator("hardWrap",function(y,T,S,F,W){var H=S[0].anchor.line,q=S[0].head.line;return T.linewise&&q--,wo(y.ace,{startRow:H,endRow:q}),Ne(q,0)}),R("textwidth",void 0,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.ace.getOption("printMarginColumn");return S}var F=Math.round(y);F>1&&T.ace.setOption("printMarginColumn",F)}}),Un.aceCommand=function(y,T,S){y.vimCmd=T,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Fi):Fi(null,y.ace)},Un.fold=function(y,T,S){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},Oo=Dn.length,r.handler.defaultKeymap=Dn,r.handler.actions=Un,r.Vim=vt}),function(){ace.require(["ace/keyboard/vim"],function(e){n&&(n.exports=e)})}()}(Ag)),Ag.exports}wk();var _g={},$g;function xk(){return $g||($g=1,function(n){(function(){var t={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(w){return f(m(w),arguments)}function r(w,h){return e.apply(null,[w].concat(h||[]))}function f(w,h){var d=1,a=w.length,l,u="",c,i,s,p,b,x,R,_;for(c=0;c<a;c++)if(typeof w[c]=="string")u+=w[c];else if(typeof w[c]=="object"){if(s=w[c],s.keys)for(l=h[d],i=0;i<s.keys.length;i++){if(l==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[i],s.keys[i-1]));l=l[s.keys[i]]}else s.param_no?l=h[s.param_no]:l=h[d++];if(t.not_type.test(s.type)&&t.not_primitive.test(s.type)&&l instanceof Function&&(l=l()),t.numeric_arg.test(s.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(e("[sprintf] expecting number but found %T",l));switch(t.number.test(s.type)&&(R=l>=0),s.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,s.width?parseInt(s.width):0);break;case"e":l=s.precision?parseFloat(l).toExponential(s.precision):parseFloat(l).toExponential();break;case"f":l=s.precision?parseFloat(l).toFixed(s.precision):parseFloat(l);break;case"g":l=s.precision?String(Number(l.toPrecision(s.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=s.precision?l.substring(0,s.precision):l;break;case"t":l=String(!!l),l=s.precision?l.substring(0,s.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=s.precision?l.substring(0,s.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=s.precision?l.substring(0,s.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}t.json.test(s.type)?u+=l:(t.number.test(s.type)&&(!R||s.sign)?(_=R?"+":"-",l=l.toString().replace(t.sign,"")):_="",b=s.pad_char?s.pad_char==="0"?"0":s.pad_char.charAt(1):" ",x=s.width-(_+l).length,p=s.width&&x>0?b.repeat(x):"",u+=s.align?_+l+p:b==="0"?_+p+l:p+_+l)}return u}var g=Object.create(null);function m(w){if(g[w])return g[w];for(var h=w,d,a=[],l=0;h;){if((d=t.text.exec(h))!==null)a.push(d[0]);else if((d=t.modulo.exec(h))!==null)a.push("%");else if((d=t.placeholder.exec(h))!==null){if(d[2]){l|=1;var u=[],c=d[2],i=[];if((i=t.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=t.key_access.exec(c))!==null)u.push(i[1]);else if((i=t.index_access.exec(c))!==null)u.push(i[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");d[2]=u}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:d[0],param_no:d[1],keys:d[2],sign:d[3],pad_char:d[4],align:d[5],width:d[6],precision:d[7],type:d[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(d[0].length)}return g[w]=a}n.sprintf=e,n.vsprintf=r,typeof window<"u"&&(window.sprintf=e,window.vsprintf=r)})()}(_g)),_g}xk();var Gl={exports:{}};/**
|
|
1463
1463
|
* @license
|
|
1464
1464
|
* Lodash <https://lodash.com/>
|
|
1465
1465
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1466
1466
|
* Released under MIT license <https://lodash.com/license>
|
|
1467
1467
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1468
1468
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1469
|
-
*/var Ck=Gl.exports,Tg;function kk(){return Tg||(Tg=1,function(n,t){(function(){var e,r="4.17.21",f=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,a="__lodash_placeholder__",l=1,u=2,c=4,i=1,s=2,p=1,b=2,x=4,R=8,_=16,k=32,C=64,L=128,D=256,E=512,I=30,z="...",P=800,O=16,$=1,A=2,N=3,B=1/0,U=9007199254740991,K=17976931348623157e292,Q=NaN,J=4294967295,he=J-1,ne=J>>>1,le=[["ary",L],["bind",p],["bindKey",b],["curry",R],["curryRight",_],["flip",E],["partial",k],["partialRight",C],["rearg",D]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Xe="[object Error]",Ke="[object Function]",at="[object GeneratorFunction]",et="[object Map]",lt="[object Number]",Xt="[object Null]",xn="[object Object]",Wt="[object Promise]",vr="[object Proxy]",un="[object RegExp]",On="[object Set]",Xn="[object String]",Tr="[object Symbol]",mt="[object Undefined]",je="[object WeakMap]",Lt="[object WeakSet]",Ht="[object ArrayBuffer]",$n="[object DataView]",yr="[object Float32Array]",cr="[object Float64Array]",gn="[object Int8Array]",Wn="[object Int16Array]",Nn="[object Int32Array]",Gt="[object Uint8Array]",ln="[object Uint8ClampedArray]",Dr="[object Uint16Array]",Kr="[object Uint32Array]",Gr=/\b__p \+= '';/g,Ai=/\b(__p \+=) '' \+/g,ci=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,to=/[&<>"']/g,ui=RegExp(Bn.source),Os=RegExp(to.source),Yr=/<%-([\s\S]+?)%>/g,Cn=/<%([\s\S]+?)%>/g,hi=/<%=([\s\S]+?)%>/g,Qo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ur=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(ur.source),An=/^\s+/,Tn=/\s/,br=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fi=/\{\n\/\* \[wrapped with (.+)\] \*/,mo=/,? & /,vo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jo=/[()=,{}\[\]\/\s]/,Xr=/\\(\\)?/g,gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fr=/\w*$/,Ot=/^[-+]0x[0-9a-f]+$/i,To=/^0b[01]+$/i,wr=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",xr="\\u0300-\\u036f",hr="\\ufe20-\\ufe2f",zn="\\u20d0-\\u20ff",Cr=xr+hr+zn,mn="\\u2700-\\u27bf",no="a-z\\xdf-\\xf6\\xf8-\\xff",Pr="\\xac\\xb1\\xd7\\xf7",es="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ns="\\u2000-\\u206f",Ds=" \\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",ts="A-Z\\xc0-\\xd6\\xd8-\\xde",dr="\\ufe0e\\ufe0f",Fs=Pr+es+Ns+Ds,Mo="['’]",ns="["+jt+"]",rs="["+Fs+"]",yo="["+Cr+"]",Ps="\\d+",ba="["+mn+"]",is="["+no+"]",os="[^"+jt+Fs+Ps+mn+no+ts+"]",Ws="\\ud83c[\\udffb-\\udfff]",ss="(?:"+yo+"|"+Ws+")",Io="[^"+jt+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",pr="[\\ud800-\\udbff][\\udc00-\\udfff]",bo="["+ts+"]",ro="\\u200d",wa="(?:"+is+"|"+os+")",ul="(?:"+bo+"|"+os+")",Eo="(?:"+Mo+"(?:d|ll|m|re|s|t|ve))?",io="(?:"+Mo+"(?:D|LL|M|RE|S|T|VE))?",Ro=ss+"?",as="["+dr+"]?",Lo="(?:"+ro+"(?:"+[Io,Fi,pr].join("|")+")"+as+Ro+")*",xa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=as+Ro+Lo,Ca="(?:"+[ba,Fi,pr].join("|")+")"+We,Ne="(?:"+[Io+yo+"?",yo,Fi,pr,ns].join("|")+")",Dn=RegExp(Mo,"g"),Oo=RegExp(yo,"g"),Si=RegExp(Ws+"(?="+Ws+")|"+Ne+We,"g"),Zn=RegExp([bo+"?"+is+"+"+Eo+"(?="+[rs,bo,"$"].join("|")+")",ul+"+"+io+"(?="+[rs,bo+wa,"$"].join("|")+")",bo+"?"+wa+"+"+Eo,bo+"+"+io,wo,xa,Ps,Ca].join("|"),"g"),ka=RegExp("["+ro+jt+Cr+dr+"]"),No=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pi=["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"],xo=-1,nn={};nn[yr]=nn[cr]=nn[gn]=nn[Wn]=nn[Nn]=nn[Gt]=nn[ln]=nn[Dr]=nn[Kr]=!0,nn[se]=nn[de]=nn[Ht]=nn[_e]=nn[$n]=nn[Te]=nn[Xe]=nn[Ke]=nn[et]=nn[lt]=nn[xn]=nn[un]=nn[On]=nn[Xn]=nn[je]=!1;var Jt={};Jt[se]=Jt[de]=Jt[Ht]=Jt[$n]=Jt[_e]=Jt[Te]=Jt[yr]=Jt[cr]=Jt[gn]=Jt[Wn]=Jt[Nn]=Jt[et]=Jt[lt]=Jt[xn]=Jt[un]=Jt[On]=Jt[Xn]=Jt[Tr]=Jt[Gt]=Jt[ln]=Jt[Dr]=Jt[Kr]=!0,Jt[Xe]=Jt[Ke]=Jt[je]=!1;var rn={À:"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"},Ut={"&":"&","<":"<",">":">",'"':""","'":"'"},Wi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,yn=parseInt,vt=typeof Yo=="object"&&Yo&&Yo.Object===Object&&Yo,Zr=typeof self=="object"&&self&&self.Object===Object&&self,hn=vt||Zr||Function("return this")(),Sn=t&&!t.nodeType&&t,rr=Sn&&!0&&n&&!n.nodeType&&n,Qr=rr&&rr.exports===Sn,Bi=Qr&&vt.process,jn=function(){try{var fe=rr&&rr.require&&rr.require("util").types;return fe||Bi&&Bi.binding&&Bi.binding("util")}catch{}}(),mi=jn&&jn.isArrayBuffer,ls=jn&&jn.isDate,Un=jn&&jn.isMap,_i=jn&&jn.isRegExp,$i=jn&&jn.isSet,zi=jn&&jn.isTypedArray;function kr(fe,$e,Ce){switch(Ce.length){case 0:return fe.call($e);case 1:return fe.call($e,Ce[0]);case 2:return fe.call($e,Ce[0],Ce[1]);case 3:return fe.call($e,Ce[0],Ce[1],Ce[2])}return fe.apply($e,Ce)}function Ar(fe,$e,Ce,Ue){for(var ut=-1,$t=fe==null?0:fe.length;++ut<$t;){var Zt=fe[ut];$e(Ue,Zt,Ce(Zt),fe)}return Ue}function Mr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Bs(fe,$e){for(var Ce=fe==null?0:fe.length;Ce--&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Ir(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if(!$e(fe[Ce],Ce,fe))return!1;return!0}function Wr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,ut=0,$t=[];++Ce<Ue;){var Zt=fe[Ce];$e(Zt,Ce,fe)&&($t[ut++]=Zt)}return $t}function Ti(fe,$e){var Ce=fe==null?0:fe.length;return!!Ce&&ae(fe,$e,0)>-1}function Mi(fe,$e,Ce){for(var Ue=-1,ut=fe==null?0:fe.length;++Ue<ut;)if(Ce($e,fe[Ue]))return!0;return!1}function y(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,ut=Array(Ue);++Ce<Ue;)ut[Ce]=$e(fe[Ce],Ce,fe);return ut}function T(fe,$e){for(var Ce=-1,Ue=$e.length,ut=fe.length;++Ce<Ue;)fe[ut+Ce]=$e[Ce];return fe}function S(fe,$e,Ce,Ue){var ut=-1,$t=fe==null?0:fe.length;for(Ue&&$t&&(Ce=fe[++ut]);++ut<$t;)Ce=$e(Ce,fe[ut],ut,fe);return Ce}function F(fe,$e,Ce,Ue){var ut=fe==null?0:fe.length;for(Ue&&ut&&(Ce=fe[--ut]);ut--;)Ce=$e(Ce,fe[ut],ut,fe);return Ce}function W(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if($e(fe[Ce],Ce,fe))return!0;return!1}var H=we("length");function q(fe){return fe.split("")}function Y(fe){return fe.match(vo)||[]}function Z(fe,$e,Ce){var Ue;return Ce(fe,function(ut,$t,Zt){if($e(ut,$t,Zt))return Ue=$t,!1}),Ue}function re(fe,$e,Ce,Ue){for(var ut=fe.length,$t=Ce+(Ue?1:-1);Ue?$t--:++$t<ut;)if($e(fe[$t],$t,fe))return $t;return-1}function ae(fe,$e,Ce){return $e===$e?Qe(fe,$e,Ce):re(fe,ke,Ce)}function be(fe,$e,Ce,Ue){for(var ut=Ce-1,$t=fe.length;++ut<$t;)if(Ue(fe[ut],$e))return ut;return-1}function ke(fe){return fe!==fe}function ve(fe,$e){var Ce=fe==null?0:fe.length;return Ce?st(fe,$e)/Ce:Q}function we(fe){return function($e){return $e==null?e:$e[fe]}}function Oe(fe){return function($e){return fe==null?e:fe[$e]}}function Le(fe,$e,Ce,Ue,ut){return ut(fe,function($t,Zt,It){Ce=Ue?(Ue=!1,$t):$e(Ce,$t,Zt,It)}),Ce}function Ve(fe,$e){var Ce=fe.length;for(fe.sort($e);Ce--;)fe[Ce]=fe[Ce].value;return fe}function st(fe,$e){for(var Ce,Ue=-1,ut=fe.length;++Ue<ut;){var $t=$e(fe[Ue]);$t!==e&&(Ce=Ce===e?$t:Ce+$t)}return Ce}function Ze(fe,$e){for(var Ce=-1,Ue=Array(fe);++Ce<fe;)Ue[Ce]=$e(Ce);return Ue}function tt(fe,$e){return y($e,function(Ce){return[Ce,fe[Ce]]})}function bn(fe){return fe&&fe.slice(0,Nt(fe)+1).replace(An,"")}function ct(fe){return function($e){return fe($e)}}function Mn(fe,$e){return y($e,function(Ce){return fe[Ce]})}function bt(fe,$e){return fe.has($e)}function _t(fe,$e){for(var Ce=-1,Ue=fe.length;++Ce<Ue&&ae($e,fe[Ce],0)>-1;);return Ce}function ir(fe,$e){for(var Ce=fe.length;Ce--&&ae($e,fe[Ce],0)>-1;);return Ce}function Sr(fe,$e){for(var Ce=fe.length,Ue=0;Ce--;)fe[Ce]===$e&&++Ue;return Ue}var In=Oe(rn),V=Oe(Ut);function X(fe){return"\\"+Hn[fe]}function ie(fe,$e){return fe==null?e:fe[$e]}function oe(fe){return ka.test(fe)}function ge(fe){return No.test(fe)}function xe(fe){for(var $e,Ce=[];!($e=fe.next()).done;)Ce.push($e.value);return Ce}function Ie(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue,ut){Ce[++$e]=[ut,Ue]}),Ce}function Pe(fe,$e){return function(Ce){return fe($e(Ce))}}function Be(fe,$e){for(var Ce=-1,Ue=fe.length,ut=0,$t=[];++Ce<Ue;){var Zt=fe[Ce];(Zt===$e||Zt===a)&&(fe[Ce]=a,$t[ut++]=Ce)}return $t}function qe(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=Ue}),Ce}function Ye(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=[Ue,Ue]}),Ce}function Qe(fe,$e,Ce){for(var Ue=Ce-1,ut=fe.length;++Ue<ut;)if(fe[Ue]===$e)return Ue;return-1}function yt(fe,$e,Ce){for(var Ue=Ce+1;Ue--;)if(fe[Ue]===$e)return Ue;return Ue}function Pt(fe){return oe(fe)?rt(fe):H(fe)}function wt(fe){return oe(fe)?vn(fe):q(fe)}function Nt(fe){for(var $e=fe.length;$e--&&Tn.test(fe.charAt($e)););return $e}var dt=Oe(Wi);function rt(fe){for(var $e=Si.lastIndex=0;Si.test(fe);)++$e;return $e}function vn(fe){return fe.match(Si)||[]}function En(fe){return fe.match(Zn)||[]}var or=function fe($e){$e=$e==null?hn:qt.defaults(hn.Object(),$e,qt.pick(hn,Pi));var Ce=$e.Array,Ue=$e.Date,ut=$e.Error,$t=$e.Function,Zt=$e.Math,It=$e.Object,Jr=$e.RegExp,Hi=$e.String,dn=$e.TypeError,_r=Ce.prototype,Do=$t.prototype,Vn=It.prototype,zs=$e["__core-js_shared__"],Ec=Do.toString,cn=Vn.hasOwnProperty,HI=0,gb=function(){var o=/[^.]+$/.exec(zs&&zs.keys&&zs.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Rc=Vn.toString,jI=Ec.call(It),UI=hn._,VI=Jr("^"+Ec.call(cn).replace(ur,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lc=Qr?$e.Buffer:e,cs=$e.Symbol,Oc=$e.Uint8Array,mb=Lc?Lc.allocUnsafe:e,Nc=Pe(It.getPrototypeOf,It),vb=It.create,yb=Vn.propertyIsEnumerable,Dc=_r.splice,bb=cs?cs.isConcatSpreadable:e,hl=cs?cs.iterator:e,Hs=cs?cs.toStringTag:e,Fc=function(){try{var o=Ks(It,"defineProperty");return o({},"",{}),o}catch{}}(),qI=$e.clearTimeout!==hn.clearTimeout&&$e.clearTimeout,KI=Ue&&Ue.now!==hn.Date.now&&Ue.now,GI=$e.setTimeout!==hn.setTimeout&&$e.setTimeout,Pc=Zt.ceil,Wc=Zt.floor,Ed=It.getOwnPropertySymbols,YI=Lc?Lc.isBuffer:e,wb=$e.isFinite,XI=_r.join,ZI=Pe(It.keys,It),fr=Zt.max,Br=Zt.min,QI=Ue.now,JI=$e.parseInt,xb=Zt.random,eE=_r.reverse,Rd=Ks($e,"DataView"),dl=Ks($e,"Map"),Ld=Ks($e,"Promise"),Aa=Ks($e,"Set"),pl=Ks($e,"WeakMap"),fl=Ks(It,"create"),Bc=pl&&new pl,Sa={},tE=Gs(Rd),nE=Gs(dl),rE=Gs(Ld),iE=Gs(Aa),oE=Gs(pl),zc=cs?cs.prototype:e,gl=zc?zc.valueOf:e,Cb=zc?zc.toString:e;function ee(o){if(qn(o)&&!Ct(o)&&!(o instanceof Vt)){if(o instanceof ji)return o;if(cn.call(o,"__wrapped__"))return k0(o)}return new ji(o)}var _a=function(){function o(){}return function(v){if(!Fn(v))return{};if(vb)return vb(v);o.prototype=v;var M=new o;return o.prototype=e,M}}();function Hc(){}function ji(o,v){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=e}ee.templateSettings={escape:Yr,evaluate:Cn,interpolate:hi,variable:"",imports:{_:ee}},ee.prototype=Hc.prototype,ee.prototype.constructor=ee,ji.prototype=_a(Hc.prototype),ji.prototype.constructor=ji;function Vt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function sE(){var o=new Vt(this.__wrapped__);return o.__actions__=vi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=vi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=vi(this.__views__),o}function aE(){if(this.__filtered__){var o=new Vt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function lE(){var o=this.__wrapped__.value(),v=this.__dir__,M=Ct(o),j=v<0,G=M?o.length:0,te=wR(0,G,this.__views__),ue=te.start,pe=te.end,ye=pe-ue,Ee=j?pe:ue-1,Re=this.__iteratees__,De=Re.length,Ge=0,nt=Br(ye,this.__takeCount__);if(!M||!j&&G==ye&&nt==ye)return qb(o,this.__actions__);var ft=[];e:for(;ye--&&Ge<nt;){Ee+=v;for(var Et=-1,gt=o[Ee];++Et<De;){var Bt=Re[Et],Kt=Bt.iteratee,Ri=Bt.type,ni=Kt(gt);if(Ri==A)gt=ni;else if(!ni){if(Ri==$)continue e;break e}}ft[Ge++]=gt}return ft}Vt.prototype=_a(Hc.prototype),Vt.prototype.constructor=Vt;function js(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function cE(){this.__data__=fl?fl(null):{},this.size=0}function uE(o){var v=this.has(o)&&delete this.__data__[o];return this.size-=v?1:0,v}function hE(o){var v=this.__data__;if(fl){var M=v[o];return M===h?e:M}return cn.call(v,o)?v[o]:e}function dE(o){var v=this.__data__;return fl?v[o]!==e:cn.call(v,o)}function pE(o,v){var M=this.__data__;return this.size+=this.has(o)?0:1,M[o]=fl&&v===e?h:v,this}js.prototype.clear=cE,js.prototype.delete=uE,js.prototype.get=hE,js.prototype.has=dE,js.prototype.set=pE;function Fo(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function fE(){this.__data__=[],this.size=0}function gE(o){var v=this.__data__,M=jc(v,o);if(M<0)return!1;var j=v.length-1;return M==j?v.pop():Dc.call(v,M,1),--this.size,!0}function mE(o){var v=this.__data__,M=jc(v,o);return M<0?e:v[M][1]}function vE(o){return jc(this.__data__,o)>-1}function yE(o,v){var M=this.__data__,j=jc(M,o);return j<0?(++this.size,M.push([o,v])):M[j][1]=v,this}Fo.prototype.clear=fE,Fo.prototype.delete=gE,Fo.prototype.get=mE,Fo.prototype.has=vE,Fo.prototype.set=yE;function Po(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function bE(){this.size=0,this.__data__={hash:new js,map:new(dl||Fo),string:new js}}function wE(o){var v=tu(this,o).delete(o);return this.size-=v?1:0,v}function xE(o){return tu(this,o).get(o)}function CE(o){return tu(this,o).has(o)}function kE(o,v){var M=tu(this,o),j=M.size;return M.set(o,v),this.size+=M.size==j?0:1,this}Po.prototype.clear=bE,Po.prototype.delete=wE,Po.prototype.get=xE,Po.prototype.has=CE,Po.prototype.set=kE;function Us(o){var v=-1,M=o==null?0:o.length;for(this.__data__=new Po;++v<M;)this.add(o[v])}function AE(o){return this.__data__.set(o,h),this}function SE(o){return this.__data__.has(o)}Us.prototype.add=Us.prototype.push=AE,Us.prototype.has=SE;function oo(o){var v=this.__data__=new Fo(o);this.size=v.size}function _E(){this.__data__=new Fo,this.size=0}function $E(o){var v=this.__data__,M=v.delete(o);return this.size=v.size,M}function TE(o){return this.__data__.get(o)}function ME(o){return this.__data__.has(o)}function IE(o,v){var M=this.__data__;if(M instanceof Fo){var j=M.__data__;if(!dl||j.length<f-1)return j.push([o,v]),this.size=++M.size,this;M=this.__data__=new Po(j)}return M.set(o,v),this.size=M.size,this}oo.prototype.clear=_E,oo.prototype.delete=$E,oo.prototype.get=TE,oo.prototype.has=ME,oo.prototype.set=IE;function kb(o,v){var M=Ct(o),j=!M&&Ys(o),G=!M&&!j&&fs(o),te=!M&&!j&&!G&&Ia(o),ue=M||j||G||te,pe=ue?Ze(o.length,Hi):[],ye=pe.length;for(var Ee in o)(v||cn.call(o,Ee))&&!(ue&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||te&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||Ho(Ee,ye)))&&pe.push(Ee);return pe}function Ab(o){var v=o.length;return v?o[Ud(0,v-1)]:e}function EE(o,v){return nu(vi(o),Vs(v,0,o.length))}function RE(o){return nu(vi(o))}function Od(o,v,M){(M!==e&&!so(o[v],M)||M===e&&!(v in o))&&Wo(o,v,M)}function ml(o,v,M){var j=o[v];(!(cn.call(o,v)&&so(j,M))||M===e&&!(v in o))&&Wo(o,v,M)}function jc(o,v){for(var M=o.length;M--;)if(so(o[M][0],v))return M;return-1}function LE(o,v,M,j){return us(o,function(G,te,ue){v(j,G,M(G),ue)}),j}function Sb(o,v){return o&&ko(v,$r(v),o)}function OE(o,v){return o&&ko(v,bi(v),o)}function Wo(o,v,M){v=="__proto__"&&Fc?Fc(o,v,{configurable:!0,enumerable:!0,value:M,writable:!0}):o[v]=M}function Nd(o,v){for(var M=-1,j=v.length,G=Ce(j),te=o==null;++M<j;)G[M]=te?e:gp(o,v[M]);return G}function Vs(o,v,M){return o===o&&(M!==e&&(o=o<=M?o:M),v!==e&&(o=o>=v?o:v)),o}function Ui(o,v,M,j,G,te){var ue,pe=v&l,ye=v&u,Ee=v&c;if(M&&(ue=G?M(o,j,G,te):M(o)),ue!==e)return ue;if(!Fn(o))return o;var Re=Ct(o);if(Re){if(ue=CR(o),!pe)return vi(o,ue)}else{var De=zr(o),Ge=De==Ke||De==at;if(fs(o))return Yb(o,pe);if(De==xn||De==se||Ge&&!G){if(ue=ye||Ge?{}:f0(o),!pe)return ye?hR(o,OE(ue,o)):uR(o,Sb(ue,o))}else{if(!Jt[De])return G?o:{};ue=kR(o,De,pe)}}te||(te=new oo);var nt=te.get(o);if(nt)return nt;te.set(o,ue),j0(o)?o.forEach(function(gt){ue.add(Ui(gt,v,M,gt,o,te))}):z0(o)&&o.forEach(function(gt,Bt){ue.set(Bt,Ui(gt,v,M,Bt,o,te))});var ft=Ee?ye?tp:ep:ye?bi:$r,Et=Re?e:ft(o);return Mr(Et||o,function(gt,Bt){Et&&(Bt=gt,gt=o[Bt]),ml(ue,Bt,Ui(gt,v,M,Bt,o,te))}),ue}function NE(o){var v=$r(o);return function(M){return _b(M,o,v)}}function _b(o,v,M){var j=M.length;if(o==null)return!j;for(o=It(o);j--;){var G=M[j],te=v[G],ue=o[G];if(ue===e&&!(G in o)||!te(ue))return!1}return!0}function $b(o,v,M){if(typeof o!="function")throw new dn(m);return kl(function(){o.apply(e,M)},v)}function vl(o,v,M,j){var G=-1,te=Ti,ue=!0,pe=o.length,ye=[],Ee=v.length;if(!pe)return ye;M&&(v=y(v,ct(M))),j?(te=Mi,ue=!1):v.length>=f&&(te=bt,ue=!1,v=new Us(v));e:for(;++G<pe;){var Re=o[G],De=M==null?Re:M(Re);if(Re=j||Re!==0?Re:0,ue&&De===De){for(var Ge=Ee;Ge--;)if(v[Ge]===De)continue e;ye.push(Re)}else te(v,De,j)||ye.push(Re)}return ye}var us=e0(Co),Tb=e0(Fd,!0);function DE(o,v){var M=!0;return us(o,function(j,G,te){return M=!!v(j,G,te),M}),M}function Uc(o,v,M){for(var j=-1,G=o.length;++j<G;){var te=o[j],ue=v(te);if(ue!=null&&(pe===e?ue===ue&&!Ei(ue):M(ue,pe)))var pe=ue,ye=te}return ye}function FE(o,v,M,j){var G=o.length;for(M=Mt(M),M<0&&(M=-M>G?0:G+M),j=j===e||j>G?G:Mt(j),j<0&&(j+=G),j=M>j?0:V0(j);M<j;)o[M++]=v;return o}function Mb(o,v){var M=[];return us(o,function(j,G,te){v(j,G,te)&&M.push(j)}),M}function Er(o,v,M,j,G){var te=-1,ue=o.length;for(M||(M=SR),G||(G=[]);++te<ue;){var pe=o[te];v>0&&M(pe)?v>1?Er(pe,v-1,M,j,G):T(G,pe):j||(G[G.length]=pe)}return G}var Dd=t0(),Ib=t0(!0);function Co(o,v){return o&&Dd(o,v,$r)}function Fd(o,v){return o&&Ib(o,v,$r)}function Vc(o,v){return Wr(v,function(M){return jo(o[M])})}function qs(o,v){v=ds(v,o);for(var M=0,j=v.length;o!=null&&M<j;)o=o[Ao(v[M++])];return M&&M==j?o:e}function Eb(o,v,M){var j=v(o);return Ct(o)?j:T(j,M(o))}function ei(o){return o==null?o===e?mt:Xt:Hs&&Hs in It(o)?bR(o):RR(o)}function Pd(o,v){return o>v}function PE(o,v){return o!=null&&cn.call(o,v)}function WE(o,v){return o!=null&&v in It(o)}function BE(o,v,M){return o>=Br(v,M)&&o<fr(v,M)}function Wd(o,v,M){for(var j=M?Mi:Ti,G=o[0].length,te=o.length,ue=te,pe=Ce(te),ye=1/0,Ee=[];ue--;){var Re=o[ue];ue&&v&&(Re=y(Re,ct(v))),ye=Br(Re.length,ye),pe[ue]=!M&&(v||G>=120&&Re.length>=120)?new Us(ue&&Re):e}Re=o[0];var De=-1,Ge=pe[0];e:for(;++De<G&&Ee.length<ye;){var nt=Re[De],ft=v?v(nt):nt;if(nt=M||nt!==0?nt:0,!(Ge?bt(Ge,ft):j(Ee,ft,M))){for(ue=te;--ue;){var Et=pe[ue];if(!(Et?bt(Et,ft):j(o[ue],ft,M)))continue e}Ge&&Ge.push(ft),Ee.push(nt)}}return Ee}function zE(o,v,M,j){return Co(o,function(G,te,ue){v(j,M(G),te,ue)}),j}function yl(o,v,M){v=ds(v,o),o=y0(o,v);var j=o==null?o:o[Ao(qi(v))];return j==null?e:kr(j,o,M)}function Rb(o){return qn(o)&&ei(o)==se}function HE(o){return qn(o)&&ei(o)==Ht}function jE(o){return qn(o)&&ei(o)==Te}function bl(o,v,M,j,G){return o===v?!0:o==null||v==null||!qn(o)&&!qn(v)?o!==o&&v!==v:UE(o,v,M,j,bl,G)}function UE(o,v,M,j,G,te){var ue=Ct(o),pe=Ct(v),ye=ue?de:zr(o),Ee=pe?de:zr(v);ye=ye==se?xn:ye,Ee=Ee==se?xn:Ee;var Re=ye==xn,De=Ee==xn,Ge=ye==Ee;if(Ge&&fs(o)){if(!fs(v))return!1;ue=!0,Re=!1}if(Ge&&!Re)return te||(te=new oo),ue||Ia(o)?h0(o,v,M,j,G,te):vR(o,v,ye,M,j,G,te);if(!(M&i)){var nt=Re&&cn.call(o,"__wrapped__"),ft=De&&cn.call(v,"__wrapped__");if(nt||ft){var Et=nt?o.value():o,gt=ft?v.value():v;return te||(te=new oo),G(Et,gt,M,j,te)}}return Ge?(te||(te=new oo),yR(o,v,M,j,G,te)):!1}function VE(o){return qn(o)&&zr(o)==et}function Bd(o,v,M,j){var G=M.length,te=G,ue=!j;if(o==null)return!te;for(o=It(o);G--;){var pe=M[G];if(ue&&pe[2]?pe[1]!==o[pe[0]]:!(pe[0]in o))return!1}for(;++G<te;){pe=M[G];var ye=pe[0],Ee=o[ye],Re=pe[1];if(ue&&pe[2]){if(Ee===e&&!(ye in o))return!1}else{var De=new oo;if(j)var Ge=j(Ee,Re,ye,o,v,De);if(!(Ge===e?bl(Re,Ee,i|s,j,De):Ge))return!1}}return!0}function Lb(o){if(!Fn(o)||$R(o))return!1;var v=jo(o)?VI:wr;return v.test(Gs(o))}function qE(o){return qn(o)&&ei(o)==un}function KE(o){return qn(o)&&zr(o)==On}function GE(o){return qn(o)&&lu(o.length)&&!!nn[ei(o)]}function Ob(o){return typeof o=="function"?o:o==null?wi:typeof o=="object"?Ct(o)?Fb(o[0],o[1]):Db(o):nw(o)}function zd(o){if(!Cl(o))return ZI(o);var v=[];for(var M in It(o))cn.call(o,M)&&M!="constructor"&&v.push(M);return v}function YE(o){if(!Fn(o))return ER(o);var v=Cl(o),M=[];for(var j in o)j=="constructor"&&(v||!cn.call(o,j))||M.push(j);return M}function Hd(o,v){return o<v}function Nb(o,v){var M=-1,j=yi(o)?Ce(o.length):[];return us(o,function(G,te,ue){j[++M]=v(G,te,ue)}),j}function Db(o){var v=rp(o);return v.length==1&&v[0][2]?m0(v[0][0],v[0][1]):function(M){return M===o||Bd(M,o,v)}}function Fb(o,v){return op(o)&&g0(v)?m0(Ao(o),v):function(M){var j=gp(M,o);return j===e&&j===v?mp(M,o):bl(v,j,i|s)}}function qc(o,v,M,j,G){o!==v&&Dd(v,function(te,ue){if(G||(G=new oo),Fn(te))XE(o,v,ue,M,qc,j,G);else{var pe=j?j(ap(o,ue),te,ue+"",o,v,G):e;pe===e&&(pe=te),Od(o,ue,pe)}},bi)}function XE(o,v,M,j,G,te,ue){var pe=ap(o,M),ye=ap(v,M),Ee=ue.get(ye);if(Ee){Od(o,M,Ee);return}var Re=te?te(pe,ye,M+"",o,v,ue):e,De=Re===e;if(De){var Ge=Ct(ye),nt=!Ge&&fs(ye),ft=!Ge&&!nt&&Ia(ye);Re=ye,Ge||nt||ft?Ct(pe)?Re=pe:Qn(pe)?Re=vi(pe):nt?(De=!1,Re=Yb(ye,!0)):ft?(De=!1,Re=Xb(ye,!0)):Re=[]:Al(ye)||Ys(ye)?(Re=pe,Ys(pe)?Re=q0(pe):(!Fn(pe)||jo(pe))&&(Re=f0(ye))):De=!1}De&&(ue.set(ye,Re),G(Re,ye,j,te,ue),ue.delete(ye)),Od(o,M,Re)}function Pb(o,v){var M=o.length;if(M)return v+=v<0?M:0,Ho(v,M)?o[v]:e}function Wb(o,v,M){v.length?v=y(v,function(te){return Ct(te)?function(ue){return qs(ue,te.length===1?te[0]:te)}:te}):v=[wi];var j=-1;v=y(v,ct(pt()));var G=Nb(o,function(te,ue,pe){var ye=y(v,function(Ee){return Ee(te)});return{criteria:ye,index:++j,value:te}});return Ve(G,function(te,ue){return cR(te,ue,M)})}function ZE(o,v){return Bb(o,v,function(M,j){return mp(o,j)})}function Bb(o,v,M){for(var j=-1,G=v.length,te={};++j<G;){var ue=v[j],pe=qs(o,ue);M(pe,ue)&&wl(te,ds(ue,o),pe)}return te}function QE(o){return function(v){return qs(v,o)}}function jd(o,v,M,j){var G=j?be:ae,te=-1,ue=v.length,pe=o;for(o===v&&(v=vi(v)),M&&(pe=y(o,ct(M)));++te<ue;)for(var ye=0,Ee=v[te],Re=M?M(Ee):Ee;(ye=G(pe,Re,ye,j))>-1;)pe!==o&&Dc.call(pe,ye,1),Dc.call(o,ye,1);return o}function zb(o,v){for(var M=o?v.length:0,j=M-1;M--;){var G=v[M];if(M==j||G!==te){var te=G;Ho(G)?Dc.call(o,G,1):Kd(o,G)}}return o}function Ud(o,v){return o+Wc(xb()*(v-o+1))}function JE(o,v,M,j){for(var G=-1,te=fr(Pc((v-o)/(M||1)),0),ue=Ce(te);te--;)ue[j?te:++G]=o,o+=M;return ue}function Vd(o,v){var M="";if(!o||v<1||v>U)return M;do v%2&&(M+=o),v=Wc(v/2),v&&(o+=o);while(v);return M}function Dt(o,v){return lp(v0(o,v,wi),o+"")}function eR(o){return Ab(Ea(o))}function tR(o,v){var M=Ea(o);return nu(M,Vs(v,0,M.length))}function wl(o,v,M,j){if(!Fn(o))return o;v=ds(v,o);for(var G=-1,te=v.length,ue=te-1,pe=o;pe!=null&&++G<te;){var ye=Ao(v[G]),Ee=M;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Re=pe[ye];Ee=j?j(Re,ye,pe):e,Ee===e&&(Ee=Fn(Re)?Re:Ho(v[G+1])?[]:{})}ml(pe,ye,Ee),pe=pe[ye]}return o}var Hb=Bc?function(o,v){return Bc.set(o,v),o}:wi,nR=Fc?function(o,v){return Fc(o,"toString",{configurable:!0,enumerable:!1,value:yp(v),writable:!0})}:wi;function rR(o){return nu(Ea(o))}function Vi(o,v,M){var j=-1,G=o.length;v<0&&(v=-v>G?0:G+v),M=M>G?G:M,M<0&&(M+=G),G=v>M?0:M-v>>>0,v>>>=0;for(var te=Ce(G);++j<G;)te[j]=o[j+v];return te}function iR(o,v){var M;return us(o,function(j,G,te){return M=v(j,G,te),!M}),!!M}function Kc(o,v,M){var j=0,G=o==null?j:o.length;if(typeof v=="number"&&v===v&&G<=ne){for(;j<G;){var te=j+G>>>1,ue=o[te];ue!==null&&!Ei(ue)&&(M?ue<=v:ue<v)?j=te+1:G=te}return G}return qd(o,v,wi,M)}function qd(o,v,M,j){var G=0,te=o==null?0:o.length;if(te===0)return 0;v=M(v);for(var ue=v!==v,pe=v===null,ye=Ei(v),Ee=v===e;G<te;){var Re=Wc((G+te)/2),De=M(o[Re]),Ge=De!==e,nt=De===null,ft=De===De,Et=Ei(De);if(ue)var gt=j||ft;else Ee?gt=ft&&(j||Ge):pe?gt=ft&&Ge&&(j||!nt):ye?gt=ft&&Ge&&!nt&&(j||!Et):nt||Et?gt=!1:gt=j?De<=v:De<v;gt?G=Re+1:te=Re}return Br(te,he)}function jb(o,v){for(var M=-1,j=o.length,G=0,te=[];++M<j;){var ue=o[M],pe=v?v(ue):ue;if(!M||!so(pe,ye)){var ye=pe;te[G++]=ue===0?0:ue}}return te}function Ub(o){return typeof o=="number"?o:Ei(o)?Q:+o}function Ii(o){if(typeof o=="string")return o;if(Ct(o))return y(o,Ii)+"";if(Ei(o))return Cb?Cb.call(o):"";var v=o+"";return v=="0"&&1/o==-B?"-0":v}function hs(o,v,M){var j=-1,G=Ti,te=o.length,ue=!0,pe=[],ye=pe;if(M)ue=!1,G=Mi;else if(te>=f){var Ee=v?null:gR(o);if(Ee)return qe(Ee);ue=!1,G=bt,ye=new Us}else ye=v?[]:pe;e:for(;++j<te;){var Re=o[j],De=v?v(Re):Re;if(Re=M||Re!==0?Re:0,ue&&De===De){for(var Ge=ye.length;Ge--;)if(ye[Ge]===De)continue e;v&&ye.push(De),pe.push(Re)}else G(ye,De,M)||(ye!==pe&&ye.push(De),pe.push(Re))}return pe}function Kd(o,v){return v=ds(v,o),o=y0(o,v),o==null||delete o[Ao(qi(v))]}function Vb(o,v,M,j){return wl(o,v,M(qs(o,v)),j)}function Gc(o,v,M,j){for(var G=o.length,te=j?G:-1;(j?te--:++te<G)&&v(o[te],te,o););return M?Vi(o,j?0:te,j?te+1:G):Vi(o,j?te+1:0,j?G:te)}function qb(o,v){var M=o;return M instanceof Vt&&(M=M.value()),S(v,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Gd(o,v,M){var j=o.length;if(j<2)return j?hs(o[0]):[];for(var G=-1,te=Ce(j);++G<j;)for(var ue=o[G],pe=-1;++pe<j;)pe!=G&&(te[G]=vl(te[G]||ue,o[pe],v,M));return hs(Er(te,1),v,M)}function Kb(o,v,M){for(var j=-1,G=o.length,te=v.length,ue={};++j<G;){var pe=j<te?v[j]:e;M(ue,o[j],pe)}return ue}function Yd(o){return Qn(o)?o:[]}function Xd(o){return typeof o=="function"?o:wi}function ds(o,v){return Ct(o)?o:op(o,v)?[o]:C0(sn(o))}var oR=Dt;function ps(o,v,M){var j=o.length;return M=M===e?j:M,!v&&M>=j?o:Vi(o,v,M)}var Gb=qI||function(o){return hn.clearTimeout(o)};function Yb(o,v){if(v)return o.slice();var M=o.length,j=mb?mb(M):new o.constructor(M);return o.copy(j),j}function Zd(o){var v=new o.constructor(o.byteLength);return new Oc(v).set(new Oc(o)),v}function sR(o,v){var M=v?Zd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.byteLength)}function aR(o){var v=new o.constructor(o.source,Fr.exec(o));return v.lastIndex=o.lastIndex,v}function lR(o){return gl?It(gl.call(o)):{}}function Xb(o,v){var M=v?Zd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.length)}function Zb(o,v){if(o!==v){var M=o!==e,j=o===null,G=o===o,te=Ei(o),ue=v!==e,pe=v===null,ye=v===v,Ee=Ei(v);if(!pe&&!Ee&&!te&&o>v||te&&ue&&ye&&!pe&&!Ee||j&&ue&&ye||!M&&ye||!G)return 1;if(!j&&!te&&!Ee&&o<v||Ee&&M&&G&&!j&&!te||pe&&M&&G||!ue&&G||!ye)return-1}return 0}function cR(o,v,M){for(var j=-1,G=o.criteria,te=v.criteria,ue=G.length,pe=M.length;++j<ue;){var ye=Zb(G[j],te[j]);if(ye){if(j>=pe)return ye;var Ee=M[j];return ye*(Ee=="desc"?-1:1)}}return o.index-v.index}function Qb(o,v,M,j){for(var G=-1,te=o.length,ue=M.length,pe=-1,ye=v.length,Ee=fr(te-ue,0),Re=Ce(ye+Ee),De=!j;++pe<ye;)Re[pe]=v[pe];for(;++G<ue;)(De||G<te)&&(Re[M[G]]=o[G]);for(;Ee--;)Re[pe++]=o[G++];return Re}function Jb(o,v,M,j){for(var G=-1,te=o.length,ue=-1,pe=M.length,ye=-1,Ee=v.length,Re=fr(te-pe,0),De=Ce(Re+Ee),Ge=!j;++G<Re;)De[G]=o[G];for(var nt=G;++ye<Ee;)De[nt+ye]=v[ye];for(;++ue<pe;)(Ge||G<te)&&(De[nt+M[ue]]=o[G++]);return De}function vi(o,v){var M=-1,j=o.length;for(v||(v=Ce(j));++M<j;)v[M]=o[M];return v}function ko(o,v,M,j){var G=!M;M||(M={});for(var te=-1,ue=v.length;++te<ue;){var pe=v[te],ye=j?j(M[pe],o[pe],pe,M,o):e;ye===e&&(ye=o[pe]),G?Wo(M,pe,ye):ml(M,pe,ye)}return M}function uR(o,v){return ko(o,ip(o),v)}function hR(o,v){return ko(o,d0(o),v)}function Yc(o,v){return function(M,j){var G=Ct(M)?Ar:LE,te=v?v():{};return G(M,o,pt(j,2),te)}}function $a(o){return Dt(function(v,M){var j=-1,G=M.length,te=G>1?M[G-1]:e,ue=G>2?M[2]:e;for(te=o.length>3&&typeof te=="function"?(G--,te):e,ue&&ti(M[0],M[1],ue)&&(te=G<3?e:te,G=1),v=It(v);++j<G;){var pe=M[j];pe&&o(v,pe,j,te)}return v})}function e0(o,v){return function(M,j){if(M==null)return M;if(!yi(M))return o(M,j);for(var G=M.length,te=v?G:-1,ue=It(M);(v?te--:++te<G)&&j(ue[te],te,ue)!==!1;);return M}}function t0(o){return function(v,M,j){for(var G=-1,te=It(v),ue=j(v),pe=ue.length;pe--;){var ye=ue[o?pe:++G];if(M(te[ye],ye,te)===!1)break}return v}}function dR(o,v,M){var j=v&p,G=xl(o);function te(){var ue=this&&this!==hn&&this instanceof te?G:o;return ue.apply(j?M:this,arguments)}return te}function n0(o){return function(v){v=sn(v);var M=oe(v)?wt(v):e,j=M?M[0]:v.charAt(0),G=M?ps(M,1).join(""):v.slice(1);return j[o]()+G}}function Ta(o){return function(v){return S(ew(J0(v).replace(Dn,"")),o,"")}}function xl(o){return function(){var v=arguments;switch(v.length){case 0:return new o;case 1:return new o(v[0]);case 2:return new o(v[0],v[1]);case 3:return new o(v[0],v[1],v[2]);case 4:return new o(v[0],v[1],v[2],v[3]);case 5:return new o(v[0],v[1],v[2],v[3],v[4]);case 6:return new o(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new o(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var M=_a(o.prototype),j=o.apply(M,v);return Fn(j)?j:M}}function pR(o,v,M){var j=xl(o);function G(){for(var te=arguments.length,ue=Ce(te),pe=te,ye=Ma(G);pe--;)ue[pe]=arguments[pe];var Ee=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:Be(ue,ye);if(te-=Ee.length,te<M)return a0(o,v,Xc,G.placeholder,e,ue,Ee,e,e,M-te);var Re=this&&this!==hn&&this instanceof G?j:o;return kr(Re,this,ue)}return G}function r0(o){return function(v,M,j){var G=It(v);if(!yi(v)){var te=pt(M,3);v=$r(v),M=function(pe){return te(G[pe],pe,G)}}var ue=o(v,M,j);return ue>-1?G[te?v[ue]:ue]:e}}function i0(o){return zo(function(v){var M=v.length,j=M,G=ji.prototype.thru;for(o&&v.reverse();j--;){var te=v[j];if(typeof te!="function")throw new dn(m);if(G&&!ue&&eu(te)=="wrapper")var ue=new ji([],!0)}for(j=ue?j:M;++j<M;){te=v[j];var pe=eu(te),ye=pe=="wrapper"?np(te):e;ye&&sp(ye[0])&&ye[1]==(L|R|k|D)&&!ye[4].length&&ye[9]==1?ue=ue[eu(ye[0])].apply(ue,ye[3]):ue=te.length==1&&sp(te)?ue[pe]():ue.thru(te)}return function(){var Ee=arguments,Re=Ee[0];if(ue&&Ee.length==1&&Ct(Re))return ue.plant(Re).value();for(var De=0,Ge=M?v[De].apply(this,Ee):Re;++De<M;)Ge=v[De].call(this,Ge);return Ge}})}function Xc(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&L,De=v&p,Ge=v&b,nt=v&(R|_),ft=v&E,Et=Ge?e:xl(o);function gt(){for(var Bt=arguments.length,Kt=Ce(Bt),Ri=Bt;Ri--;)Kt[Ri]=arguments[Ri];if(nt)var ni=Ma(gt),Li=Sr(Kt,ni);if(j&&(Kt=Qb(Kt,j,G,nt)),te&&(Kt=Jb(Kt,te,ue,nt)),Bt-=Li,nt&&Bt<Ee){var Jn=Be(Kt,ni);return a0(o,v,Xc,gt.placeholder,M,Kt,Jn,pe,ye,Ee-Bt)}var ao=De?M:this,Vo=Ge?ao[o]:o;return Bt=Kt.length,pe?Kt=LR(Kt,pe):ft&&Bt>1&&Kt.reverse(),Re&&ye<Bt&&(Kt.length=ye),this&&this!==hn&&this instanceof gt&&(Vo=Et||xl(Vo)),Vo.apply(ao,Kt)}return gt}function o0(o,v){return function(M,j){return zE(M,o,v(j),{})}}function Zc(o,v){return function(M,j){var G;if(M===e&&j===e)return v;if(M!==e&&(G=M),j!==e){if(G===e)return j;typeof M=="string"||typeof j=="string"?(M=Ii(M),j=Ii(j)):(M=Ub(M),j=Ub(j)),G=o(M,j)}return G}}function Qd(o){return zo(function(v){return v=y(v,ct(pt())),Dt(function(M){var j=this;return o(v,function(G){return kr(G,j,M)})})})}function Qc(o,v){v=v===e?" ":Ii(v);var M=v.length;if(M<2)return M?Vd(v,o):v;var j=Vd(v,Pc(o/Pt(v)));return oe(v)?ps(wt(j),0,o).join(""):j.slice(0,o)}function fR(o,v,M,j){var G=v&p,te=xl(o);function ue(){for(var pe=-1,ye=arguments.length,Ee=-1,Re=j.length,De=Ce(Re+ye),Ge=this&&this!==hn&&this instanceof ue?te:o;++Ee<Re;)De[Ee]=j[Ee];for(;ye--;)De[Ee++]=arguments[++pe];return kr(Ge,G?M:this,De)}return ue}function s0(o){return function(v,M,j){return j&&typeof j!="number"&&ti(v,M,j)&&(M=j=e),v=Uo(v),M===e?(M=v,v=0):M=Uo(M),j=j===e?v<M?1:-1:Uo(j),JE(v,M,j,o)}}function Jc(o){return function(v,M){return typeof v=="string"&&typeof M=="string"||(v=Ki(v),M=Ki(M)),o(v,M)}}function a0(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&R,De=Re?ue:e,Ge=Re?e:ue,nt=Re?te:e,ft=Re?e:te;v|=Re?k:C,v&=~(Re?C:k),v&x||(v&=-4);var Et=[o,v,G,nt,De,ft,Ge,pe,ye,Ee],gt=M.apply(e,Et);return sp(o)&&b0(gt,Et),gt.placeholder=j,w0(gt,o,v)}function Jd(o){var v=Zt[o];return function(M,j){if(M=Ki(M),j=j==null?0:Br(Mt(j),292),j&&wb(M)){var G=(sn(M)+"e").split("e"),te=v(G[0]+"e"+(+G[1]+j));return G=(sn(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return v(M)}}var gR=Aa&&1/qe(new Aa([,-0]))[1]==B?function(o){return new Aa(o)}:xp;function l0(o){return function(v){var M=zr(v);return M==et?Ie(v):M==On?Ye(v):tt(v,o(v))}}function Bo(o,v,M,j,G,te,ue,pe){var ye=v&b;if(!ye&&typeof o!="function")throw new dn(m);var Ee=j?j.length:0;if(Ee||(v&=-97,j=G=e),ue=ue===e?ue:fr(Mt(ue),0),pe=pe===e?pe:Mt(pe),Ee-=G?G.length:0,v&C){var Re=j,De=G;j=G=e}var Ge=ye?e:np(o),nt=[o,v,M,j,G,Re,De,te,ue,pe];if(Ge&&IR(nt,Ge),o=nt[0],v=nt[1],M=nt[2],j=nt[3],G=nt[4],pe=nt[9]=nt[9]===e?ye?0:o.length:fr(nt[9]-Ee,0),!pe&&v&(R|_)&&(v&=-25),!v||v==p)var ft=dR(o,v,M);else v==R||v==_?ft=pR(o,v,pe):(v==k||v==(p|k))&&!G.length?ft=fR(o,v,M,j):ft=Xc.apply(e,nt);var Et=Ge?Hb:b0;return w0(Et(ft,nt),o,v)}function c0(o,v,M,j){return o===e||so(o,Vn[M])&&!cn.call(j,M)?v:o}function u0(o,v,M,j,G,te){return Fn(o)&&Fn(v)&&(te.set(v,o),qc(o,v,e,u0,te),te.delete(v)),o}function mR(o){return Al(o)?e:o}function h0(o,v,M,j,G,te){var ue=M&i,pe=o.length,ye=v.length;if(pe!=ye&&!(ue&&ye>pe))return!1;var Ee=te.get(o),Re=te.get(v);if(Ee&&Re)return Ee==v&&Re==o;var De=-1,Ge=!0,nt=M&s?new Us:e;for(te.set(o,v),te.set(v,o);++De<pe;){var ft=o[De],Et=v[De];if(j)var gt=ue?j(Et,ft,De,v,o,te):j(ft,Et,De,o,v,te);if(gt!==e){if(gt)continue;Ge=!1;break}if(nt){if(!W(v,function(Bt,Kt){if(!bt(nt,Kt)&&(ft===Bt||G(ft,Bt,M,j,te)))return nt.push(Kt)})){Ge=!1;break}}else if(!(ft===Et||G(ft,Et,M,j,te))){Ge=!1;break}}return te.delete(o),te.delete(v),Ge}function vR(o,v,M,j,G,te,ue){switch(M){case $n:if(o.byteLength!=v.byteLength||o.byteOffset!=v.byteOffset)return!1;o=o.buffer,v=v.buffer;case Ht:return!(o.byteLength!=v.byteLength||!te(new Oc(o),new Oc(v)));case _e:case Te:case lt:return so(+o,+v);case Xe:return o.name==v.name&&o.message==v.message;case un:case Xn:return o==v+"";case et:var pe=Ie;case On:var ye=j&i;if(pe||(pe=qe),o.size!=v.size&&!ye)return!1;var Ee=ue.get(o);if(Ee)return Ee==v;j|=s,ue.set(o,v);var Re=h0(pe(o),pe(v),j,G,te,ue);return ue.delete(o),Re;case Tr:if(gl)return gl.call(o)==gl.call(v)}return!1}function yR(o,v,M,j,G,te){var ue=M&i,pe=ep(o),ye=pe.length,Ee=ep(v),Re=Ee.length;if(ye!=Re&&!ue)return!1;for(var De=ye;De--;){var Ge=pe[De];if(!(ue?Ge in v:cn.call(v,Ge)))return!1}var nt=te.get(o),ft=te.get(v);if(nt&&ft)return nt==v&&ft==o;var Et=!0;te.set(o,v),te.set(v,o);for(var gt=ue;++De<ye;){Ge=pe[De];var Bt=o[Ge],Kt=v[Ge];if(j)var Ri=ue?j(Kt,Bt,Ge,v,o,te):j(Bt,Kt,Ge,o,v,te);if(!(Ri===e?Bt===Kt||G(Bt,Kt,M,j,te):Ri)){Et=!1;break}gt||(gt=Ge=="constructor")}if(Et&&!gt){var ni=o.constructor,Li=v.constructor;ni!=Li&&"constructor"in o&&"constructor"in v&&!(typeof ni=="function"&&ni instanceof ni&&typeof Li=="function"&&Li instanceof Li)&&(Et=!1)}return te.delete(o),te.delete(v),Et}function zo(o){return lp(v0(o,e,_0),o+"")}function ep(o){return Eb(o,$r,ip)}function tp(o){return Eb(o,bi,d0)}var np=Bc?function(o){return Bc.get(o)}:xp;function eu(o){for(var v=o.name+"",M=Sa[v],j=cn.call(Sa,v)?M.length:0;j--;){var G=M[j],te=G.func;if(te==null||te==o)return G.name}return v}function Ma(o){var v=cn.call(ee,"placeholder")?ee:o;return v.placeholder}function pt(){var o=ee.iteratee||bp;return o=o===bp?Ob:o,arguments.length?o(arguments[0],arguments[1]):o}function tu(o,v){var M=o.__data__;return _R(v)?M[typeof v=="string"?"string":"hash"]:M.map}function rp(o){for(var v=$r(o),M=v.length;M--;){var j=v[M],G=o[j];v[M]=[j,G,g0(G)]}return v}function Ks(o,v){var M=ie(o,v);return Lb(M)?M:e}function bR(o){var v=cn.call(o,Hs),M=o[Hs];try{o[Hs]=e;var j=!0}catch{}var G=Rc.call(o);return j&&(v?o[Hs]=M:delete o[Hs]),G}var ip=Ed?function(o){return o==null?[]:(o=It(o),Wr(Ed(o),function(v){return yb.call(o,v)}))}:Cp,d0=Ed?function(o){for(var v=[];o;)T(v,ip(o)),o=Nc(o);return v}:Cp,zr=ei;(Rd&&zr(new Rd(new ArrayBuffer(1)))!=$n||dl&&zr(new dl)!=et||Ld&&zr(Ld.resolve())!=Wt||Aa&&zr(new Aa)!=On||pl&&zr(new pl)!=je)&&(zr=function(o){var v=ei(o),M=v==xn?o.constructor:e,j=M?Gs(M):"";if(j)switch(j){case tE:return $n;case nE:return et;case rE:return Wt;case iE:return On;case oE:return je}return v});function wR(o,v,M){for(var j=-1,G=M.length;++j<G;){var te=M[j],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":v-=ue;break;case"take":v=Br(v,o+ue);break;case"takeRight":o=fr(o,v-ue);break}}return{start:o,end:v}}function xR(o){var v=o.match(fi);return v?v[1].split(mo):[]}function p0(o,v,M){v=ds(v,o);for(var j=-1,G=v.length,te=!1;++j<G;){var ue=Ao(v[j]);if(!(te=o!=null&&M(o,ue)))break;o=o[ue]}return te||++j!=G?te:(G=o==null?0:o.length,!!G&&lu(G)&&Ho(ue,G)&&(Ct(o)||Ys(o)))}function CR(o){var v=o.length,M=new o.constructor(v);return v&&typeof o[0]=="string"&&cn.call(o,"index")&&(M.index=o.index,M.input=o.input),M}function f0(o){return typeof o.constructor=="function"&&!Cl(o)?_a(Nc(o)):{}}function kR(o,v,M){var j=o.constructor;switch(v){case Ht:return Zd(o);case _e:case Te:return new j(+o);case $n:return sR(o,M);case yr:case cr:case gn:case Wn:case Nn:case Gt:case ln:case Dr:case Kr:return Xb(o,M);case et:return new j;case lt:case Xn:return new j(o);case un:return aR(o);case On:return new j;case Tr:return lR(o)}}function AR(o,v){var M=v.length;if(!M)return o;var j=M-1;return v[j]=(M>1?"& ":"")+v[j],v=v.join(M>2?", ":" "),o.replace(br,`{
|
|
1469
|
+
*/var Ck=Gl.exports,Tg;function kk(){return Tg||(Tg=1,function(n,t){(function(){var e,r="4.17.21",f=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",w="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",d=500,a="__lodash_placeholder__",l=1,u=2,c=4,i=1,s=2,p=1,b=2,x=4,R=8,_=16,k=32,C=64,L=128,D=256,E=512,I=30,z="...",P=800,O=16,$=1,A=2,N=3,B=1/0,U=9007199254740991,K=17976931348623157e292,Q=NaN,J=4294967295,he=J-1,ne=J>>>1,le=[["ary",L],["bind",p],["bindKey",b],["curry",R],["curryRight",_],["flip",E],["partial",k],["partialRight",C],["rearg",D]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Xe="[object Error]",Ke="[object Function]",at="[object GeneratorFunction]",et="[object Map]",lt="[object Number]",Xt="[object Null]",xn="[object Object]",Wt="[object Promise]",vr="[object Proxy]",un="[object RegExp]",On="[object Set]",Xn="[object String]",Tr="[object Symbol]",mt="[object Undefined]",je="[object WeakMap]",Lt="[object WeakSet]",Ht="[object ArrayBuffer]",$n="[object DataView]",yr="[object Float32Array]",ur="[object Float64Array]",gn="[object Int8Array]",Wn="[object Int16Array]",Nn="[object Int32Array]",Gt="[object Uint8Array]",ln="[object Uint8ClampedArray]",Dr="[object Uint16Array]",Kr="[object Uint32Array]",Gr=/\b__p \+= '';/g,Ai=/\b(__p \+=) '' \+/g,ci=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,to=/[&<>"']/g,ui=RegExp(Bn.source),Os=RegExp(to.source),Yr=/<%-([\s\S]+?)%>/g,Cn=/<%([\s\S]+?)%>/g,hi=/<%=([\s\S]+?)%>/g,Qo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,di=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(hr.source),An=/^\s+/,Tn=/\s/,br=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fi=/\{\n\/\* \[wrapped with (.+)\] \*/,mo=/,? & /,vo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Jo=/[()=,{}\[\]\/\s]/,Xr=/\\(\\)?/g,gi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fr=/\w*$/,Ot=/^[-+]0x[0-9a-f]+$/i,To=/^0b[01]+$/i,wr=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",xr="\\u0300-\\u036f",dr="\\ufe20-\\ufe2f",zn="\\u20d0-\\u20ff",Cr=xr+dr+zn,mn="\\u2700-\\u27bf",no="a-z\\xdf-\\xf6\\xf8-\\xff",Pr="\\xac\\xb1\\xd7\\xf7",es="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ns="\\u2000-\\u206f",Ds=" \\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",ts="A-Z\\xc0-\\xd6\\xd8-\\xde",pr="\\ufe0e\\ufe0f",Fs=Pr+es+Ns+Ds,Mo="['’]",ns="["+jt+"]",rs="["+Fs+"]",yo="["+Cr+"]",Ps="\\d+",ba="["+mn+"]",is="["+no+"]",os="[^"+jt+Fs+Ps+mn+no+ts+"]",Ws="\\ud83c[\\udffb-\\udfff]",ss="(?:"+yo+"|"+Ws+")",Io="[^"+jt+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",fr="[\\ud800-\\udbff][\\udc00-\\udfff]",bo="["+ts+"]",ro="\\u200d",wa="(?:"+is+"|"+os+")",ul="(?:"+bo+"|"+os+")",Eo="(?:"+Mo+"(?:d|ll|m|re|s|t|ve))?",io="(?:"+Mo+"(?:D|LL|M|RE|S|T|VE))?",Ro=ss+"?",as="["+pr+"]?",Lo="(?:"+ro+"(?:"+[Io,Fi,fr].join("|")+")"+as+Ro+")*",xa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",We=as+Ro+Lo,Ca="(?:"+[ba,Fi,fr].join("|")+")"+We,Ne="(?:"+[Io+yo+"?",yo,Fi,fr,ns].join("|")+")",Dn=RegExp(Mo,"g"),Oo=RegExp(yo,"g"),Si=RegExp(Ws+"(?="+Ws+")|"+Ne+We,"g"),Zn=RegExp([bo+"?"+is+"+"+Eo+"(?="+[rs,bo,"$"].join("|")+")",ul+"+"+io+"(?="+[rs,bo+wa,"$"].join("|")+")",bo+"?"+wa+"+"+Eo,bo+"+"+io,wo,xa,Ps,Ca].join("|"),"g"),ka=RegExp("["+ro+jt+Cr+pr+"]"),No=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pi=["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"],xo=-1,nn={};nn[yr]=nn[ur]=nn[gn]=nn[Wn]=nn[Nn]=nn[Gt]=nn[ln]=nn[Dr]=nn[Kr]=!0,nn[se]=nn[de]=nn[Ht]=nn[_e]=nn[$n]=nn[Te]=nn[Xe]=nn[Ke]=nn[et]=nn[lt]=nn[xn]=nn[un]=nn[On]=nn[Xn]=nn[je]=!1;var Jt={};Jt[se]=Jt[de]=Jt[Ht]=Jt[$n]=Jt[_e]=Jt[Te]=Jt[yr]=Jt[ur]=Jt[gn]=Jt[Wn]=Jt[Nn]=Jt[et]=Jt[lt]=Jt[xn]=Jt[un]=Jt[On]=Jt[Xn]=Jt[Tr]=Jt[Gt]=Jt[ln]=Jt[Dr]=Jt[Kr]=!0,Jt[Xe]=Jt[Ke]=Jt[je]=!1;var rn={À:"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"},Ut={"&":"&","<":"<",">":">",'"':""","'":"'"},Wi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Hn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,yn=parseInt,vt=typeof Yo=="object"&&Yo&&Yo.Object===Object&&Yo,Zr=typeof self=="object"&&self&&self.Object===Object&&self,hn=vt||Zr||Function("return this")(),Sn=t&&!t.nodeType&&t,rr=Sn&&!0&&n&&!n.nodeType&&n,Qr=rr&&rr.exports===Sn,Bi=Qr&&vt.process,jn=function(){try{var fe=rr&&rr.require&&rr.require("util").types;return fe||Bi&&Bi.binding&&Bi.binding("util")}catch{}}(),mi=jn&&jn.isArrayBuffer,ls=jn&&jn.isDate,Un=jn&&jn.isMap,_i=jn&&jn.isRegExp,$i=jn&&jn.isSet,zi=jn&&jn.isTypedArray;function kr(fe,$e,Ce){switch(Ce.length){case 0:return fe.call($e);case 1:return fe.call($e,Ce[0]);case 2:return fe.call($e,Ce[0],Ce[1]);case 3:return fe.call($e,Ce[0],Ce[1],Ce[2])}return fe.apply($e,Ce)}function Ar(fe,$e,Ce,Ue){for(var ut=-1,$t=fe==null?0:fe.length;++ut<$t;){var Zt=fe[ut];$e(Ue,Zt,Ce(Zt),fe)}return Ue}function Mr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Bs(fe,$e){for(var Ce=fe==null?0:fe.length;Ce--&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Ir(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if(!$e(fe[Ce],Ce,fe))return!1;return!0}function Wr(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,ut=0,$t=[];++Ce<Ue;){var Zt=fe[Ce];$e(Zt,Ce,fe)&&($t[ut++]=Zt)}return $t}function Ti(fe,$e){var Ce=fe==null?0:fe.length;return!!Ce&&ae(fe,$e,0)>-1}function Mi(fe,$e,Ce){for(var Ue=-1,ut=fe==null?0:fe.length;++Ue<ut;)if(Ce($e,fe[Ue]))return!0;return!1}function y(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length,ut=Array(Ue);++Ce<Ue;)ut[Ce]=$e(fe[Ce],Ce,fe);return ut}function T(fe,$e){for(var Ce=-1,Ue=$e.length,ut=fe.length;++Ce<Ue;)fe[ut+Ce]=$e[Ce];return fe}function S(fe,$e,Ce,Ue){var ut=-1,$t=fe==null?0:fe.length;for(Ue&&$t&&(Ce=fe[++ut]);++ut<$t;)Ce=$e(Ce,fe[ut],ut,fe);return Ce}function F(fe,$e,Ce,Ue){var ut=fe==null?0:fe.length;for(Ue&&ut&&(Ce=fe[--ut]);ut--;)Ce=$e(Ce,fe[ut],ut,fe);return Ce}function W(fe,$e){for(var Ce=-1,Ue=fe==null?0:fe.length;++Ce<Ue;)if($e(fe[Ce],Ce,fe))return!0;return!1}var H=we("length");function q(fe){return fe.split("")}function Y(fe){return fe.match(vo)||[]}function Z(fe,$e,Ce){var Ue;return Ce(fe,function(ut,$t,Zt){if($e(ut,$t,Zt))return Ue=$t,!1}),Ue}function re(fe,$e,Ce,Ue){for(var ut=fe.length,$t=Ce+(Ue?1:-1);Ue?$t--:++$t<ut;)if($e(fe[$t],$t,fe))return $t;return-1}function ae(fe,$e,Ce){return $e===$e?Qe(fe,$e,Ce):re(fe,ke,Ce)}function be(fe,$e,Ce,Ue){for(var ut=Ce-1,$t=fe.length;++ut<$t;)if(Ue(fe[ut],$e))return ut;return-1}function ke(fe){return fe!==fe}function ve(fe,$e){var Ce=fe==null?0:fe.length;return Ce?st(fe,$e)/Ce:Q}function we(fe){return function($e){return $e==null?e:$e[fe]}}function Oe(fe){return function($e){return fe==null?e:fe[$e]}}function Le(fe,$e,Ce,Ue,ut){return ut(fe,function($t,Zt,It){Ce=Ue?(Ue=!1,$t):$e(Ce,$t,Zt,It)}),Ce}function Ve(fe,$e){var Ce=fe.length;for(fe.sort($e);Ce--;)fe[Ce]=fe[Ce].value;return fe}function st(fe,$e){for(var Ce,Ue=-1,ut=fe.length;++Ue<ut;){var $t=$e(fe[Ue]);$t!==e&&(Ce=Ce===e?$t:Ce+$t)}return Ce}function Ze(fe,$e){for(var Ce=-1,Ue=Array(fe);++Ce<fe;)Ue[Ce]=$e(Ce);return Ue}function tt(fe,$e){return y($e,function(Ce){return[Ce,fe[Ce]]})}function bn(fe){return fe&&fe.slice(0,Nt(fe)+1).replace(An,"")}function ct(fe){return function($e){return fe($e)}}function Mn(fe,$e){return y($e,function(Ce){return fe[Ce]})}function bt(fe,$e){return fe.has($e)}function _t(fe,$e){for(var Ce=-1,Ue=fe.length;++Ce<Ue&&ae($e,fe[Ce],0)>-1;);return Ce}function ir(fe,$e){for(var Ce=fe.length;Ce--&&ae($e,fe[Ce],0)>-1;);return Ce}function Sr(fe,$e){for(var Ce=fe.length,Ue=0;Ce--;)fe[Ce]===$e&&++Ue;return Ue}var In=Oe(rn),V=Oe(Ut);function X(fe){return"\\"+Hn[fe]}function ie(fe,$e){return fe==null?e:fe[$e]}function oe(fe){return ka.test(fe)}function ge(fe){return No.test(fe)}function xe(fe){for(var $e,Ce=[];!($e=fe.next()).done;)Ce.push($e.value);return Ce}function Ie(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue,ut){Ce[++$e]=[ut,Ue]}),Ce}function Pe(fe,$e){return function(Ce){return fe($e(Ce))}}function Be(fe,$e){for(var Ce=-1,Ue=fe.length,ut=0,$t=[];++Ce<Ue;){var Zt=fe[Ce];(Zt===$e||Zt===a)&&(fe[Ce]=a,$t[ut++]=Ce)}return $t}function qe(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=Ue}),Ce}function Ye(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ue){Ce[++$e]=[Ue,Ue]}),Ce}function Qe(fe,$e,Ce){for(var Ue=Ce-1,ut=fe.length;++Ue<ut;)if(fe[Ue]===$e)return Ue;return-1}function yt(fe,$e,Ce){for(var Ue=Ce+1;Ue--;)if(fe[Ue]===$e)return Ue;return Ue}function Pt(fe){return oe(fe)?ot(fe):H(fe)}function wt(fe){return oe(fe)?vn(fe):q(fe)}function Nt(fe){for(var $e=fe.length;$e--&&Tn.test(fe.charAt($e)););return $e}var dt=Oe(Wi);function ot(fe){for(var $e=Si.lastIndex=0;Si.test(fe);)++$e;return $e}function vn(fe){return fe.match(Si)||[]}function En(fe){return fe.match(Zn)||[]}var or=function fe($e){$e=$e==null?hn:qt.defaults(hn.Object(),$e,qt.pick(hn,Pi));var Ce=$e.Array,Ue=$e.Date,ut=$e.Error,$t=$e.Function,Zt=$e.Math,It=$e.Object,Jr=$e.RegExp,Hi=$e.String,dn=$e.TypeError,_r=Ce.prototype,Do=$t.prototype,Vn=It.prototype,zs=$e["__core-js_shared__"],Ec=Do.toString,cn=Vn.hasOwnProperty,HI=0,gb=function(){var o=/[^.]+$/.exec(zs&&zs.keys&&zs.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Rc=Vn.toString,jI=Ec.call(It),UI=hn._,VI=Jr("^"+Ec.call(cn).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lc=Qr?$e.Buffer:e,cs=$e.Symbol,Oc=$e.Uint8Array,mb=Lc?Lc.allocUnsafe:e,Nc=Pe(It.getPrototypeOf,It),vb=It.create,yb=Vn.propertyIsEnumerable,Dc=_r.splice,bb=cs?cs.isConcatSpreadable:e,hl=cs?cs.iterator:e,Hs=cs?cs.toStringTag:e,Fc=function(){try{var o=Ks(It,"defineProperty");return o({},"",{}),o}catch{}}(),qI=$e.clearTimeout!==hn.clearTimeout&&$e.clearTimeout,KI=Ue&&Ue.now!==hn.Date.now&&Ue.now,GI=$e.setTimeout!==hn.setTimeout&&$e.setTimeout,Pc=Zt.ceil,Wc=Zt.floor,Ed=It.getOwnPropertySymbols,YI=Lc?Lc.isBuffer:e,wb=$e.isFinite,XI=_r.join,ZI=Pe(It.keys,It),gr=Zt.max,Br=Zt.min,QI=Ue.now,JI=$e.parseInt,xb=Zt.random,eE=_r.reverse,Rd=Ks($e,"DataView"),dl=Ks($e,"Map"),Ld=Ks($e,"Promise"),Aa=Ks($e,"Set"),pl=Ks($e,"WeakMap"),fl=Ks(It,"create"),Bc=pl&&new pl,Sa={},tE=Gs(Rd),nE=Gs(dl),rE=Gs(Ld),iE=Gs(Aa),oE=Gs(pl),zc=cs?cs.prototype:e,gl=zc?zc.valueOf:e,Cb=zc?zc.toString:e;function ee(o){if(qn(o)&&!Ct(o)&&!(o instanceof Vt)){if(o instanceof ji)return o;if(cn.call(o,"__wrapped__"))return k0(o)}return new ji(o)}var _a=function(){function o(){}return function(v){if(!Fn(v))return{};if(vb)return vb(v);o.prototype=v;var M=new o;return o.prototype=e,M}}();function Hc(){}function ji(o,v){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=e}ee.templateSettings={escape:Yr,evaluate:Cn,interpolate:hi,variable:"",imports:{_:ee}},ee.prototype=Hc.prototype,ee.prototype.constructor=ee,ji.prototype=_a(Hc.prototype),ji.prototype.constructor=ji;function Vt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function sE(){var o=new Vt(this.__wrapped__);return o.__actions__=vi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=vi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=vi(this.__views__),o}function aE(){if(this.__filtered__){var o=new Vt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function lE(){var o=this.__wrapped__.value(),v=this.__dir__,M=Ct(o),j=v<0,G=M?o.length:0,te=wR(0,G,this.__views__),ue=te.start,pe=te.end,ye=pe-ue,Ee=j?pe:ue-1,Re=this.__iteratees__,De=Re.length,Ge=0,it=Br(ye,this.__takeCount__);if(!M||!j&&G==ye&&it==ye)return qb(o,this.__actions__);var ft=[];e:for(;ye--&&Ge<it;){Ee+=v;for(var Et=-1,gt=o[Ee];++Et<De;){var Bt=Re[Et],Kt=Bt.iteratee,Ri=Bt.type,ni=Kt(gt);if(Ri==A)gt=ni;else if(!ni){if(Ri==$)continue e;break e}}ft[Ge++]=gt}return ft}Vt.prototype=_a(Hc.prototype),Vt.prototype.constructor=Vt;function js(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function cE(){this.__data__=fl?fl(null):{},this.size=0}function uE(o){var v=this.has(o)&&delete this.__data__[o];return this.size-=v?1:0,v}function hE(o){var v=this.__data__;if(fl){var M=v[o];return M===h?e:M}return cn.call(v,o)?v[o]:e}function dE(o){var v=this.__data__;return fl?v[o]!==e:cn.call(v,o)}function pE(o,v){var M=this.__data__;return this.size+=this.has(o)?0:1,M[o]=fl&&v===e?h:v,this}js.prototype.clear=cE,js.prototype.delete=uE,js.prototype.get=hE,js.prototype.has=dE,js.prototype.set=pE;function Fo(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function fE(){this.__data__=[],this.size=0}function gE(o){var v=this.__data__,M=jc(v,o);if(M<0)return!1;var j=v.length-1;return M==j?v.pop():Dc.call(v,M,1),--this.size,!0}function mE(o){var v=this.__data__,M=jc(v,o);return M<0?e:v[M][1]}function vE(o){return jc(this.__data__,o)>-1}function yE(o,v){var M=this.__data__,j=jc(M,o);return j<0?(++this.size,M.push([o,v])):M[j][1]=v,this}Fo.prototype.clear=fE,Fo.prototype.delete=gE,Fo.prototype.get=mE,Fo.prototype.has=vE,Fo.prototype.set=yE;function Po(o){var v=-1,M=o==null?0:o.length;for(this.clear();++v<M;){var j=o[v];this.set(j[0],j[1])}}function bE(){this.size=0,this.__data__={hash:new js,map:new(dl||Fo),string:new js}}function wE(o){var v=tu(this,o).delete(o);return this.size-=v?1:0,v}function xE(o){return tu(this,o).get(o)}function CE(o){return tu(this,o).has(o)}function kE(o,v){var M=tu(this,o),j=M.size;return M.set(o,v),this.size+=M.size==j?0:1,this}Po.prototype.clear=bE,Po.prototype.delete=wE,Po.prototype.get=xE,Po.prototype.has=CE,Po.prototype.set=kE;function Us(o){var v=-1,M=o==null?0:o.length;for(this.__data__=new Po;++v<M;)this.add(o[v])}function AE(o){return this.__data__.set(o,h),this}function SE(o){return this.__data__.has(o)}Us.prototype.add=Us.prototype.push=AE,Us.prototype.has=SE;function oo(o){var v=this.__data__=new Fo(o);this.size=v.size}function _E(){this.__data__=new Fo,this.size=0}function $E(o){var v=this.__data__,M=v.delete(o);return this.size=v.size,M}function TE(o){return this.__data__.get(o)}function ME(o){return this.__data__.has(o)}function IE(o,v){var M=this.__data__;if(M instanceof Fo){var j=M.__data__;if(!dl||j.length<f-1)return j.push([o,v]),this.size=++M.size,this;M=this.__data__=new Po(j)}return M.set(o,v),this.size=M.size,this}oo.prototype.clear=_E,oo.prototype.delete=$E,oo.prototype.get=TE,oo.prototype.has=ME,oo.prototype.set=IE;function kb(o,v){var M=Ct(o),j=!M&&Ys(o),G=!M&&!j&&fs(o),te=!M&&!j&&!G&&Ia(o),ue=M||j||G||te,pe=ue?Ze(o.length,Hi):[],ye=pe.length;for(var Ee in o)(v||cn.call(o,Ee))&&!(ue&&(Ee=="length"||G&&(Ee=="offset"||Ee=="parent")||te&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||Ho(Ee,ye)))&&pe.push(Ee);return pe}function Ab(o){var v=o.length;return v?o[Ud(0,v-1)]:e}function EE(o,v){return nu(vi(o),Vs(v,0,o.length))}function RE(o){return nu(vi(o))}function Od(o,v,M){(M!==e&&!so(o[v],M)||M===e&&!(v in o))&&Wo(o,v,M)}function ml(o,v,M){var j=o[v];(!(cn.call(o,v)&&so(j,M))||M===e&&!(v in o))&&Wo(o,v,M)}function jc(o,v){for(var M=o.length;M--;)if(so(o[M][0],v))return M;return-1}function LE(o,v,M,j){return us(o,function(G,te,ue){v(j,G,M(G),ue)}),j}function Sb(o,v){return o&&ko(v,$r(v),o)}function OE(o,v){return o&&ko(v,bi(v),o)}function Wo(o,v,M){v=="__proto__"&&Fc?Fc(o,v,{configurable:!0,enumerable:!0,value:M,writable:!0}):o[v]=M}function Nd(o,v){for(var M=-1,j=v.length,G=Ce(j),te=o==null;++M<j;)G[M]=te?e:gp(o,v[M]);return G}function Vs(o,v,M){return o===o&&(M!==e&&(o=o<=M?o:M),v!==e&&(o=o>=v?o:v)),o}function Ui(o,v,M,j,G,te){var ue,pe=v&l,ye=v&u,Ee=v&c;if(M&&(ue=G?M(o,j,G,te):M(o)),ue!==e)return ue;if(!Fn(o))return o;var Re=Ct(o);if(Re){if(ue=CR(o),!pe)return vi(o,ue)}else{var De=zr(o),Ge=De==Ke||De==at;if(fs(o))return Yb(o,pe);if(De==xn||De==se||Ge&&!G){if(ue=ye||Ge?{}:f0(o),!pe)return ye?hR(o,OE(ue,o)):uR(o,Sb(ue,o))}else{if(!Jt[De])return G?o:{};ue=kR(o,De,pe)}}te||(te=new oo);var it=te.get(o);if(it)return it;te.set(o,ue),j0(o)?o.forEach(function(gt){ue.add(Ui(gt,v,M,gt,o,te))}):z0(o)&&o.forEach(function(gt,Bt){ue.set(Bt,Ui(gt,v,M,Bt,o,te))});var ft=Ee?ye?tp:ep:ye?bi:$r,Et=Re?e:ft(o);return Mr(Et||o,function(gt,Bt){Et&&(Bt=gt,gt=o[Bt]),ml(ue,Bt,Ui(gt,v,M,Bt,o,te))}),ue}function NE(o){var v=$r(o);return function(M){return _b(M,o,v)}}function _b(o,v,M){var j=M.length;if(o==null)return!j;for(o=It(o);j--;){var G=M[j],te=v[G],ue=o[G];if(ue===e&&!(G in o)||!te(ue))return!1}return!0}function $b(o,v,M){if(typeof o!="function")throw new dn(m);return kl(function(){o.apply(e,M)},v)}function vl(o,v,M,j){var G=-1,te=Ti,ue=!0,pe=o.length,ye=[],Ee=v.length;if(!pe)return ye;M&&(v=y(v,ct(M))),j?(te=Mi,ue=!1):v.length>=f&&(te=bt,ue=!1,v=new Us(v));e:for(;++G<pe;){var Re=o[G],De=M==null?Re:M(Re);if(Re=j||Re!==0?Re:0,ue&&De===De){for(var Ge=Ee;Ge--;)if(v[Ge]===De)continue e;ye.push(Re)}else te(v,De,j)||ye.push(Re)}return ye}var us=e0(Co),Tb=e0(Fd,!0);function DE(o,v){var M=!0;return us(o,function(j,G,te){return M=!!v(j,G,te),M}),M}function Uc(o,v,M){for(var j=-1,G=o.length;++j<G;){var te=o[j],ue=v(te);if(ue!=null&&(pe===e?ue===ue&&!Ei(ue):M(ue,pe)))var pe=ue,ye=te}return ye}function FE(o,v,M,j){var G=o.length;for(M=Mt(M),M<0&&(M=-M>G?0:G+M),j=j===e||j>G?G:Mt(j),j<0&&(j+=G),j=M>j?0:V0(j);M<j;)o[M++]=v;return o}function Mb(o,v){var M=[];return us(o,function(j,G,te){v(j,G,te)&&M.push(j)}),M}function Er(o,v,M,j,G){var te=-1,ue=o.length;for(M||(M=SR),G||(G=[]);++te<ue;){var pe=o[te];v>0&&M(pe)?v>1?Er(pe,v-1,M,j,G):T(G,pe):j||(G[G.length]=pe)}return G}var Dd=t0(),Ib=t0(!0);function Co(o,v){return o&&Dd(o,v,$r)}function Fd(o,v){return o&&Ib(o,v,$r)}function Vc(o,v){return Wr(v,function(M){return jo(o[M])})}function qs(o,v){v=ds(v,o);for(var M=0,j=v.length;o!=null&&M<j;)o=o[Ao(v[M++])];return M&&M==j?o:e}function Eb(o,v,M){var j=v(o);return Ct(o)?j:T(j,M(o))}function ei(o){return o==null?o===e?mt:Xt:Hs&&Hs in It(o)?bR(o):RR(o)}function Pd(o,v){return o>v}function PE(o,v){return o!=null&&cn.call(o,v)}function WE(o,v){return o!=null&&v in It(o)}function BE(o,v,M){return o>=Br(v,M)&&o<gr(v,M)}function Wd(o,v,M){for(var j=M?Mi:Ti,G=o[0].length,te=o.length,ue=te,pe=Ce(te),ye=1/0,Ee=[];ue--;){var Re=o[ue];ue&&v&&(Re=y(Re,ct(v))),ye=Br(Re.length,ye),pe[ue]=!M&&(v||G>=120&&Re.length>=120)?new Us(ue&&Re):e}Re=o[0];var De=-1,Ge=pe[0];e:for(;++De<G&&Ee.length<ye;){var it=Re[De],ft=v?v(it):it;if(it=M||it!==0?it:0,!(Ge?bt(Ge,ft):j(Ee,ft,M))){for(ue=te;--ue;){var Et=pe[ue];if(!(Et?bt(Et,ft):j(o[ue],ft,M)))continue e}Ge&&Ge.push(ft),Ee.push(it)}}return Ee}function zE(o,v,M,j){return Co(o,function(G,te,ue){v(j,M(G),te,ue)}),j}function yl(o,v,M){v=ds(v,o),o=y0(o,v);var j=o==null?o:o[Ao(qi(v))];return j==null?e:kr(j,o,M)}function Rb(o){return qn(o)&&ei(o)==se}function HE(o){return qn(o)&&ei(o)==Ht}function jE(o){return qn(o)&&ei(o)==Te}function bl(o,v,M,j,G){return o===v?!0:o==null||v==null||!qn(o)&&!qn(v)?o!==o&&v!==v:UE(o,v,M,j,bl,G)}function UE(o,v,M,j,G,te){var ue=Ct(o),pe=Ct(v),ye=ue?de:zr(o),Ee=pe?de:zr(v);ye=ye==se?xn:ye,Ee=Ee==se?xn:Ee;var Re=ye==xn,De=Ee==xn,Ge=ye==Ee;if(Ge&&fs(o)){if(!fs(v))return!1;ue=!0,Re=!1}if(Ge&&!Re)return te||(te=new oo),ue||Ia(o)?h0(o,v,M,j,G,te):vR(o,v,ye,M,j,G,te);if(!(M&i)){var it=Re&&cn.call(o,"__wrapped__"),ft=De&&cn.call(v,"__wrapped__");if(it||ft){var Et=it?o.value():o,gt=ft?v.value():v;return te||(te=new oo),G(Et,gt,M,j,te)}}return Ge?(te||(te=new oo),yR(o,v,M,j,G,te)):!1}function VE(o){return qn(o)&&zr(o)==et}function Bd(o,v,M,j){var G=M.length,te=G,ue=!j;if(o==null)return!te;for(o=It(o);G--;){var pe=M[G];if(ue&&pe[2]?pe[1]!==o[pe[0]]:!(pe[0]in o))return!1}for(;++G<te;){pe=M[G];var ye=pe[0],Ee=o[ye],Re=pe[1];if(ue&&pe[2]){if(Ee===e&&!(ye in o))return!1}else{var De=new oo;if(j)var Ge=j(Ee,Re,ye,o,v,De);if(!(Ge===e?bl(Re,Ee,i|s,j,De):Ge))return!1}}return!0}function Lb(o){if(!Fn(o)||$R(o))return!1;var v=jo(o)?VI:wr;return v.test(Gs(o))}function qE(o){return qn(o)&&ei(o)==un}function KE(o){return qn(o)&&zr(o)==On}function GE(o){return qn(o)&&lu(o.length)&&!!nn[ei(o)]}function Ob(o){return typeof o=="function"?o:o==null?wi:typeof o=="object"?Ct(o)?Fb(o[0],o[1]):Db(o):nw(o)}function zd(o){if(!Cl(o))return ZI(o);var v=[];for(var M in It(o))cn.call(o,M)&&M!="constructor"&&v.push(M);return v}function YE(o){if(!Fn(o))return ER(o);var v=Cl(o),M=[];for(var j in o)j=="constructor"&&(v||!cn.call(o,j))||M.push(j);return M}function Hd(o,v){return o<v}function Nb(o,v){var M=-1,j=yi(o)?Ce(o.length):[];return us(o,function(G,te,ue){j[++M]=v(G,te,ue)}),j}function Db(o){var v=rp(o);return v.length==1&&v[0][2]?m0(v[0][0],v[0][1]):function(M){return M===o||Bd(M,o,v)}}function Fb(o,v){return op(o)&&g0(v)?m0(Ao(o),v):function(M){var j=gp(M,o);return j===e&&j===v?mp(M,o):bl(v,j,i|s)}}function qc(o,v,M,j,G){o!==v&&Dd(v,function(te,ue){if(G||(G=new oo),Fn(te))XE(o,v,ue,M,qc,j,G);else{var pe=j?j(ap(o,ue),te,ue+"",o,v,G):e;pe===e&&(pe=te),Od(o,ue,pe)}},bi)}function XE(o,v,M,j,G,te,ue){var pe=ap(o,M),ye=ap(v,M),Ee=ue.get(ye);if(Ee){Od(o,M,Ee);return}var Re=te?te(pe,ye,M+"",o,v,ue):e,De=Re===e;if(De){var Ge=Ct(ye),it=!Ge&&fs(ye),ft=!Ge&&!it&&Ia(ye);Re=ye,Ge||it||ft?Ct(pe)?Re=pe:Qn(pe)?Re=vi(pe):it?(De=!1,Re=Yb(ye,!0)):ft?(De=!1,Re=Xb(ye,!0)):Re=[]:Al(ye)||Ys(ye)?(Re=pe,Ys(pe)?Re=q0(pe):(!Fn(pe)||jo(pe))&&(Re=f0(ye))):De=!1}De&&(ue.set(ye,Re),G(Re,ye,j,te,ue),ue.delete(ye)),Od(o,M,Re)}function Pb(o,v){var M=o.length;if(M)return v+=v<0?M:0,Ho(v,M)?o[v]:e}function Wb(o,v,M){v.length?v=y(v,function(te){return Ct(te)?function(ue){return qs(ue,te.length===1?te[0]:te)}:te}):v=[wi];var j=-1;v=y(v,ct(pt()));var G=Nb(o,function(te,ue,pe){var ye=y(v,function(Ee){return Ee(te)});return{criteria:ye,index:++j,value:te}});return Ve(G,function(te,ue){return cR(te,ue,M)})}function ZE(o,v){return Bb(o,v,function(M,j){return mp(o,j)})}function Bb(o,v,M){for(var j=-1,G=v.length,te={};++j<G;){var ue=v[j],pe=qs(o,ue);M(pe,ue)&&wl(te,ds(ue,o),pe)}return te}function QE(o){return function(v){return qs(v,o)}}function jd(o,v,M,j){var G=j?be:ae,te=-1,ue=v.length,pe=o;for(o===v&&(v=vi(v)),M&&(pe=y(o,ct(M)));++te<ue;)for(var ye=0,Ee=v[te],Re=M?M(Ee):Ee;(ye=G(pe,Re,ye,j))>-1;)pe!==o&&Dc.call(pe,ye,1),Dc.call(o,ye,1);return o}function zb(o,v){for(var M=o?v.length:0,j=M-1;M--;){var G=v[M];if(M==j||G!==te){var te=G;Ho(G)?Dc.call(o,G,1):Kd(o,G)}}return o}function Ud(o,v){return o+Wc(xb()*(v-o+1))}function JE(o,v,M,j){for(var G=-1,te=gr(Pc((v-o)/(M||1)),0),ue=Ce(te);te--;)ue[j?te:++G]=o,o+=M;return ue}function Vd(o,v){var M="";if(!o||v<1||v>U)return M;do v%2&&(M+=o),v=Wc(v/2),v&&(o+=o);while(v);return M}function Dt(o,v){return lp(v0(o,v,wi),o+"")}function eR(o){return Ab(Ea(o))}function tR(o,v){var M=Ea(o);return nu(M,Vs(v,0,M.length))}function wl(o,v,M,j){if(!Fn(o))return o;v=ds(v,o);for(var G=-1,te=v.length,ue=te-1,pe=o;pe!=null&&++G<te;){var ye=Ao(v[G]),Ee=M;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Re=pe[ye];Ee=j?j(Re,ye,pe):e,Ee===e&&(Ee=Fn(Re)?Re:Ho(v[G+1])?[]:{})}ml(pe,ye,Ee),pe=pe[ye]}return o}var Hb=Bc?function(o,v){return Bc.set(o,v),o}:wi,nR=Fc?function(o,v){return Fc(o,"toString",{configurable:!0,enumerable:!1,value:yp(v),writable:!0})}:wi;function rR(o){return nu(Ea(o))}function Vi(o,v,M){var j=-1,G=o.length;v<0&&(v=-v>G?0:G+v),M=M>G?G:M,M<0&&(M+=G),G=v>M?0:M-v>>>0,v>>>=0;for(var te=Ce(G);++j<G;)te[j]=o[j+v];return te}function iR(o,v){var M;return us(o,function(j,G,te){return M=v(j,G,te),!M}),!!M}function Kc(o,v,M){var j=0,G=o==null?j:o.length;if(typeof v=="number"&&v===v&&G<=ne){for(;j<G;){var te=j+G>>>1,ue=o[te];ue!==null&&!Ei(ue)&&(M?ue<=v:ue<v)?j=te+1:G=te}return G}return qd(o,v,wi,M)}function qd(o,v,M,j){var G=0,te=o==null?0:o.length;if(te===0)return 0;v=M(v);for(var ue=v!==v,pe=v===null,ye=Ei(v),Ee=v===e;G<te;){var Re=Wc((G+te)/2),De=M(o[Re]),Ge=De!==e,it=De===null,ft=De===De,Et=Ei(De);if(ue)var gt=j||ft;else Ee?gt=ft&&(j||Ge):pe?gt=ft&&Ge&&(j||!it):ye?gt=ft&&Ge&&!it&&(j||!Et):it||Et?gt=!1:gt=j?De<=v:De<v;gt?G=Re+1:te=Re}return Br(te,he)}function jb(o,v){for(var M=-1,j=o.length,G=0,te=[];++M<j;){var ue=o[M],pe=v?v(ue):ue;if(!M||!so(pe,ye)){var ye=pe;te[G++]=ue===0?0:ue}}return te}function Ub(o){return typeof o=="number"?o:Ei(o)?Q:+o}function Ii(o){if(typeof o=="string")return o;if(Ct(o))return y(o,Ii)+"";if(Ei(o))return Cb?Cb.call(o):"";var v=o+"";return v=="0"&&1/o==-B?"-0":v}function hs(o,v,M){var j=-1,G=Ti,te=o.length,ue=!0,pe=[],ye=pe;if(M)ue=!1,G=Mi;else if(te>=f){var Ee=v?null:gR(o);if(Ee)return qe(Ee);ue=!1,G=bt,ye=new Us}else ye=v?[]:pe;e:for(;++j<te;){var Re=o[j],De=v?v(Re):Re;if(Re=M||Re!==0?Re:0,ue&&De===De){for(var Ge=ye.length;Ge--;)if(ye[Ge]===De)continue e;v&&ye.push(De),pe.push(Re)}else G(ye,De,M)||(ye!==pe&&ye.push(De),pe.push(Re))}return pe}function Kd(o,v){return v=ds(v,o),o=y0(o,v),o==null||delete o[Ao(qi(v))]}function Vb(o,v,M,j){return wl(o,v,M(qs(o,v)),j)}function Gc(o,v,M,j){for(var G=o.length,te=j?G:-1;(j?te--:++te<G)&&v(o[te],te,o););return M?Vi(o,j?0:te,j?te+1:G):Vi(o,j?te+1:0,j?G:te)}function qb(o,v){var M=o;return M instanceof Vt&&(M=M.value()),S(v,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},M)}function Gd(o,v,M){var j=o.length;if(j<2)return j?hs(o[0]):[];for(var G=-1,te=Ce(j);++G<j;)for(var ue=o[G],pe=-1;++pe<j;)pe!=G&&(te[G]=vl(te[G]||ue,o[pe],v,M));return hs(Er(te,1),v,M)}function Kb(o,v,M){for(var j=-1,G=o.length,te=v.length,ue={};++j<G;){var pe=j<te?v[j]:e;M(ue,o[j],pe)}return ue}function Yd(o){return Qn(o)?o:[]}function Xd(o){return typeof o=="function"?o:wi}function ds(o,v){return Ct(o)?o:op(o,v)?[o]:C0(sn(o))}var oR=Dt;function ps(o,v,M){var j=o.length;return M=M===e?j:M,!v&&M>=j?o:Vi(o,v,M)}var Gb=qI||function(o){return hn.clearTimeout(o)};function Yb(o,v){if(v)return o.slice();var M=o.length,j=mb?mb(M):new o.constructor(M);return o.copy(j),j}function Zd(o){var v=new o.constructor(o.byteLength);return new Oc(v).set(new Oc(o)),v}function sR(o,v){var M=v?Zd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.byteLength)}function aR(o){var v=new o.constructor(o.source,Fr.exec(o));return v.lastIndex=o.lastIndex,v}function lR(o){return gl?It(gl.call(o)):{}}function Xb(o,v){var M=v?Zd(o.buffer):o.buffer;return new o.constructor(M,o.byteOffset,o.length)}function Zb(o,v){if(o!==v){var M=o!==e,j=o===null,G=o===o,te=Ei(o),ue=v!==e,pe=v===null,ye=v===v,Ee=Ei(v);if(!pe&&!Ee&&!te&&o>v||te&&ue&&ye&&!pe&&!Ee||j&&ue&&ye||!M&&ye||!G)return 1;if(!j&&!te&&!Ee&&o<v||Ee&&M&&G&&!j&&!te||pe&&M&&G||!ue&&G||!ye)return-1}return 0}function cR(o,v,M){for(var j=-1,G=o.criteria,te=v.criteria,ue=G.length,pe=M.length;++j<ue;){var ye=Zb(G[j],te[j]);if(ye){if(j>=pe)return ye;var Ee=M[j];return ye*(Ee=="desc"?-1:1)}}return o.index-v.index}function Qb(o,v,M,j){for(var G=-1,te=o.length,ue=M.length,pe=-1,ye=v.length,Ee=gr(te-ue,0),Re=Ce(ye+Ee),De=!j;++pe<ye;)Re[pe]=v[pe];for(;++G<ue;)(De||G<te)&&(Re[M[G]]=o[G]);for(;Ee--;)Re[pe++]=o[G++];return Re}function Jb(o,v,M,j){for(var G=-1,te=o.length,ue=-1,pe=M.length,ye=-1,Ee=v.length,Re=gr(te-pe,0),De=Ce(Re+Ee),Ge=!j;++G<Re;)De[G]=o[G];for(var it=G;++ye<Ee;)De[it+ye]=v[ye];for(;++ue<pe;)(Ge||G<te)&&(De[it+M[ue]]=o[G++]);return De}function vi(o,v){var M=-1,j=o.length;for(v||(v=Ce(j));++M<j;)v[M]=o[M];return v}function ko(o,v,M,j){var G=!M;M||(M={});for(var te=-1,ue=v.length;++te<ue;){var pe=v[te],ye=j?j(M[pe],o[pe],pe,M,o):e;ye===e&&(ye=o[pe]),G?Wo(M,pe,ye):ml(M,pe,ye)}return M}function uR(o,v){return ko(o,ip(o),v)}function hR(o,v){return ko(o,d0(o),v)}function Yc(o,v){return function(M,j){var G=Ct(M)?Ar:LE,te=v?v():{};return G(M,o,pt(j,2),te)}}function $a(o){return Dt(function(v,M){var j=-1,G=M.length,te=G>1?M[G-1]:e,ue=G>2?M[2]:e;for(te=o.length>3&&typeof te=="function"?(G--,te):e,ue&&ti(M[0],M[1],ue)&&(te=G<3?e:te,G=1),v=It(v);++j<G;){var pe=M[j];pe&&o(v,pe,j,te)}return v})}function e0(o,v){return function(M,j){if(M==null)return M;if(!yi(M))return o(M,j);for(var G=M.length,te=v?G:-1,ue=It(M);(v?te--:++te<G)&&j(ue[te],te,ue)!==!1;);return M}}function t0(o){return function(v,M,j){for(var G=-1,te=It(v),ue=j(v),pe=ue.length;pe--;){var ye=ue[o?pe:++G];if(M(te[ye],ye,te)===!1)break}return v}}function dR(o,v,M){var j=v&p,G=xl(o);function te(){var ue=this&&this!==hn&&this instanceof te?G:o;return ue.apply(j?M:this,arguments)}return te}function n0(o){return function(v){v=sn(v);var M=oe(v)?wt(v):e,j=M?M[0]:v.charAt(0),G=M?ps(M,1).join(""):v.slice(1);return j[o]()+G}}function Ta(o){return function(v){return S(ew(J0(v).replace(Dn,"")),o,"")}}function xl(o){return function(){var v=arguments;switch(v.length){case 0:return new o;case 1:return new o(v[0]);case 2:return new o(v[0],v[1]);case 3:return new o(v[0],v[1],v[2]);case 4:return new o(v[0],v[1],v[2],v[3]);case 5:return new o(v[0],v[1],v[2],v[3],v[4]);case 6:return new o(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new o(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var M=_a(o.prototype),j=o.apply(M,v);return Fn(j)?j:M}}function pR(o,v,M){var j=xl(o);function G(){for(var te=arguments.length,ue=Ce(te),pe=te,ye=Ma(G);pe--;)ue[pe]=arguments[pe];var Ee=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:Be(ue,ye);if(te-=Ee.length,te<M)return a0(o,v,Xc,G.placeholder,e,ue,Ee,e,e,M-te);var Re=this&&this!==hn&&this instanceof G?j:o;return kr(Re,this,ue)}return G}function r0(o){return function(v,M,j){var G=It(v);if(!yi(v)){var te=pt(M,3);v=$r(v),M=function(pe){return te(G[pe],pe,G)}}var ue=o(v,M,j);return ue>-1?G[te?v[ue]:ue]:e}}function i0(o){return zo(function(v){var M=v.length,j=M,G=ji.prototype.thru;for(o&&v.reverse();j--;){var te=v[j];if(typeof te!="function")throw new dn(m);if(G&&!ue&&eu(te)=="wrapper")var ue=new ji([],!0)}for(j=ue?j:M;++j<M;){te=v[j];var pe=eu(te),ye=pe=="wrapper"?np(te):e;ye&&sp(ye[0])&&ye[1]==(L|R|k|D)&&!ye[4].length&&ye[9]==1?ue=ue[eu(ye[0])].apply(ue,ye[3]):ue=te.length==1&&sp(te)?ue[pe]():ue.thru(te)}return function(){var Ee=arguments,Re=Ee[0];if(ue&&Ee.length==1&&Ct(Re))return ue.plant(Re).value();for(var De=0,Ge=M?v[De].apply(this,Ee):Re;++De<M;)Ge=v[De].call(this,Ge);return Ge}})}function Xc(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&L,De=v&p,Ge=v&b,it=v&(R|_),ft=v&E,Et=Ge?e:xl(o);function gt(){for(var Bt=arguments.length,Kt=Ce(Bt),Ri=Bt;Ri--;)Kt[Ri]=arguments[Ri];if(it)var ni=Ma(gt),Li=Sr(Kt,ni);if(j&&(Kt=Qb(Kt,j,G,it)),te&&(Kt=Jb(Kt,te,ue,it)),Bt-=Li,it&&Bt<Ee){var Jn=Be(Kt,ni);return a0(o,v,Xc,gt.placeholder,M,Kt,Jn,pe,ye,Ee-Bt)}var ao=De?M:this,Vo=Ge?ao[o]:o;return Bt=Kt.length,pe?Kt=LR(Kt,pe):ft&&Bt>1&&Kt.reverse(),Re&&ye<Bt&&(Kt.length=ye),this&&this!==hn&&this instanceof gt&&(Vo=Et||xl(Vo)),Vo.apply(ao,Kt)}return gt}function o0(o,v){return function(M,j){return zE(M,o,v(j),{})}}function Zc(o,v){return function(M,j){var G;if(M===e&&j===e)return v;if(M!==e&&(G=M),j!==e){if(G===e)return j;typeof M=="string"||typeof j=="string"?(M=Ii(M),j=Ii(j)):(M=Ub(M),j=Ub(j)),G=o(M,j)}return G}}function Qd(o){return zo(function(v){return v=y(v,ct(pt())),Dt(function(M){var j=this;return o(v,function(G){return kr(G,j,M)})})})}function Qc(o,v){v=v===e?" ":Ii(v);var M=v.length;if(M<2)return M?Vd(v,o):v;var j=Vd(v,Pc(o/Pt(v)));return oe(v)?ps(wt(j),0,o).join(""):j.slice(0,o)}function fR(o,v,M,j){var G=v&p,te=xl(o);function ue(){for(var pe=-1,ye=arguments.length,Ee=-1,Re=j.length,De=Ce(Re+ye),Ge=this&&this!==hn&&this instanceof ue?te:o;++Ee<Re;)De[Ee]=j[Ee];for(;ye--;)De[Ee++]=arguments[++pe];return kr(Ge,G?M:this,De)}return ue}function s0(o){return function(v,M,j){return j&&typeof j!="number"&&ti(v,M,j)&&(M=j=e),v=Uo(v),M===e?(M=v,v=0):M=Uo(M),j=j===e?v<M?1:-1:Uo(j),JE(v,M,j,o)}}function Jc(o){return function(v,M){return typeof v=="string"&&typeof M=="string"||(v=Ki(v),M=Ki(M)),o(v,M)}}function a0(o,v,M,j,G,te,ue,pe,ye,Ee){var Re=v&R,De=Re?ue:e,Ge=Re?e:ue,it=Re?te:e,ft=Re?e:te;v|=Re?k:C,v&=~(Re?C:k),v&x||(v&=-4);var Et=[o,v,G,it,De,ft,Ge,pe,ye,Ee],gt=M.apply(e,Et);return sp(o)&&b0(gt,Et),gt.placeholder=j,w0(gt,o,v)}function Jd(o){var v=Zt[o];return function(M,j){if(M=Ki(M),j=j==null?0:Br(Mt(j),292),j&&wb(M)){var G=(sn(M)+"e").split("e"),te=v(G[0]+"e"+(+G[1]+j));return G=(sn(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return v(M)}}var gR=Aa&&1/qe(new Aa([,-0]))[1]==B?function(o){return new Aa(o)}:xp;function l0(o){return function(v){var M=zr(v);return M==et?Ie(v):M==On?Ye(v):tt(v,o(v))}}function Bo(o,v,M,j,G,te,ue,pe){var ye=v&b;if(!ye&&typeof o!="function")throw new dn(m);var Ee=j?j.length:0;if(Ee||(v&=-97,j=G=e),ue=ue===e?ue:gr(Mt(ue),0),pe=pe===e?pe:Mt(pe),Ee-=G?G.length:0,v&C){var Re=j,De=G;j=G=e}var Ge=ye?e:np(o),it=[o,v,M,j,G,Re,De,te,ue,pe];if(Ge&&IR(it,Ge),o=it[0],v=it[1],M=it[2],j=it[3],G=it[4],pe=it[9]=it[9]===e?ye?0:o.length:gr(it[9]-Ee,0),!pe&&v&(R|_)&&(v&=-25),!v||v==p)var ft=dR(o,v,M);else v==R||v==_?ft=pR(o,v,pe):(v==k||v==(p|k))&&!G.length?ft=fR(o,v,M,j):ft=Xc.apply(e,it);var Et=Ge?Hb:b0;return w0(Et(ft,it),o,v)}function c0(o,v,M,j){return o===e||so(o,Vn[M])&&!cn.call(j,M)?v:o}function u0(o,v,M,j,G,te){return Fn(o)&&Fn(v)&&(te.set(v,o),qc(o,v,e,u0,te),te.delete(v)),o}function mR(o){return Al(o)?e:o}function h0(o,v,M,j,G,te){var ue=M&i,pe=o.length,ye=v.length;if(pe!=ye&&!(ue&&ye>pe))return!1;var Ee=te.get(o),Re=te.get(v);if(Ee&&Re)return Ee==v&&Re==o;var De=-1,Ge=!0,it=M&s?new Us:e;for(te.set(o,v),te.set(v,o);++De<pe;){var ft=o[De],Et=v[De];if(j)var gt=ue?j(Et,ft,De,v,o,te):j(ft,Et,De,o,v,te);if(gt!==e){if(gt)continue;Ge=!1;break}if(it){if(!W(v,function(Bt,Kt){if(!bt(it,Kt)&&(ft===Bt||G(ft,Bt,M,j,te)))return it.push(Kt)})){Ge=!1;break}}else if(!(ft===Et||G(ft,Et,M,j,te))){Ge=!1;break}}return te.delete(o),te.delete(v),Ge}function vR(o,v,M,j,G,te,ue){switch(M){case $n:if(o.byteLength!=v.byteLength||o.byteOffset!=v.byteOffset)return!1;o=o.buffer,v=v.buffer;case Ht:return!(o.byteLength!=v.byteLength||!te(new Oc(o),new Oc(v)));case _e:case Te:case lt:return so(+o,+v);case Xe:return o.name==v.name&&o.message==v.message;case un:case Xn:return o==v+"";case et:var pe=Ie;case On:var ye=j&i;if(pe||(pe=qe),o.size!=v.size&&!ye)return!1;var Ee=ue.get(o);if(Ee)return Ee==v;j|=s,ue.set(o,v);var Re=h0(pe(o),pe(v),j,G,te,ue);return ue.delete(o),Re;case Tr:if(gl)return gl.call(o)==gl.call(v)}return!1}function yR(o,v,M,j,G,te){var ue=M&i,pe=ep(o),ye=pe.length,Ee=ep(v),Re=Ee.length;if(ye!=Re&&!ue)return!1;for(var De=ye;De--;){var Ge=pe[De];if(!(ue?Ge in v:cn.call(v,Ge)))return!1}var it=te.get(o),ft=te.get(v);if(it&&ft)return it==v&&ft==o;var Et=!0;te.set(o,v),te.set(v,o);for(var gt=ue;++De<ye;){Ge=pe[De];var Bt=o[Ge],Kt=v[Ge];if(j)var Ri=ue?j(Kt,Bt,Ge,v,o,te):j(Bt,Kt,Ge,o,v,te);if(!(Ri===e?Bt===Kt||G(Bt,Kt,M,j,te):Ri)){Et=!1;break}gt||(gt=Ge=="constructor")}if(Et&&!gt){var ni=o.constructor,Li=v.constructor;ni!=Li&&"constructor"in o&&"constructor"in v&&!(typeof ni=="function"&&ni instanceof ni&&typeof Li=="function"&&Li instanceof Li)&&(Et=!1)}return te.delete(o),te.delete(v),Et}function zo(o){return lp(v0(o,e,_0),o+"")}function ep(o){return Eb(o,$r,ip)}function tp(o){return Eb(o,bi,d0)}var np=Bc?function(o){return Bc.get(o)}:xp;function eu(o){for(var v=o.name+"",M=Sa[v],j=cn.call(Sa,v)?M.length:0;j--;){var G=M[j],te=G.func;if(te==null||te==o)return G.name}return v}function Ma(o){var v=cn.call(ee,"placeholder")?ee:o;return v.placeholder}function pt(){var o=ee.iteratee||bp;return o=o===bp?Ob:o,arguments.length?o(arguments[0],arguments[1]):o}function tu(o,v){var M=o.__data__;return _R(v)?M[typeof v=="string"?"string":"hash"]:M.map}function rp(o){for(var v=$r(o),M=v.length;M--;){var j=v[M],G=o[j];v[M]=[j,G,g0(G)]}return v}function Ks(o,v){var M=ie(o,v);return Lb(M)?M:e}function bR(o){var v=cn.call(o,Hs),M=o[Hs];try{o[Hs]=e;var j=!0}catch{}var G=Rc.call(o);return j&&(v?o[Hs]=M:delete o[Hs]),G}var ip=Ed?function(o){return o==null?[]:(o=It(o),Wr(Ed(o),function(v){return yb.call(o,v)}))}:Cp,d0=Ed?function(o){for(var v=[];o;)T(v,ip(o)),o=Nc(o);return v}:Cp,zr=ei;(Rd&&zr(new Rd(new ArrayBuffer(1)))!=$n||dl&&zr(new dl)!=et||Ld&&zr(Ld.resolve())!=Wt||Aa&&zr(new Aa)!=On||pl&&zr(new pl)!=je)&&(zr=function(o){var v=ei(o),M=v==xn?o.constructor:e,j=M?Gs(M):"";if(j)switch(j){case tE:return $n;case nE:return et;case rE:return Wt;case iE:return On;case oE:return je}return v});function wR(o,v,M){for(var j=-1,G=M.length;++j<G;){var te=M[j],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":v-=ue;break;case"take":v=Br(v,o+ue);break;case"takeRight":o=gr(o,v-ue);break}}return{start:o,end:v}}function xR(o){var v=o.match(fi);return v?v[1].split(mo):[]}function p0(o,v,M){v=ds(v,o);for(var j=-1,G=v.length,te=!1;++j<G;){var ue=Ao(v[j]);if(!(te=o!=null&&M(o,ue)))break;o=o[ue]}return te||++j!=G?te:(G=o==null?0:o.length,!!G&&lu(G)&&Ho(ue,G)&&(Ct(o)||Ys(o)))}function CR(o){var v=o.length,M=new o.constructor(v);return v&&typeof o[0]=="string"&&cn.call(o,"index")&&(M.index=o.index,M.input=o.input),M}function f0(o){return typeof o.constructor=="function"&&!Cl(o)?_a(Nc(o)):{}}function kR(o,v,M){var j=o.constructor;switch(v){case Ht:return Zd(o);case _e:case Te:return new j(+o);case $n:return sR(o,M);case yr:case ur:case gn:case Wn:case Nn:case Gt:case ln:case Dr:case Kr:return Xb(o,M);case et:return new j;case lt:case Xn:return new j(o);case un:return aR(o);case On:return new j;case Tr:return lR(o)}}function AR(o,v){var M=v.length;if(!M)return o;var j=M-1;return v[j]=(M>1?"& ":"")+v[j],v=v.join(M>2?", ":" "),o.replace(br,`{
|
|
1470
1470
|
/* [wrapped with `+v+`] */
|
|
1471
|
-
`)}function SR(o){return Ct(o)||Ys(o)||!!(bb&&o&&o[bb])}function Ho(o,v){var M=typeof o;return v=v??U,!!v&&(M=="number"||M!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<v}function ti(o,v,M){if(!Fn(M))return!1;var j=typeof v;return(j=="number"?yi(M)&&Ho(v,M.length):j=="string"&&v in M)?so(M[v],o):!1}function op(o,v){if(Ct(o))return!1;var M=typeof o;return M=="number"||M=="symbol"||M=="boolean"||o==null||Ei(o)?!0:di.test(o)||!Qo.test(o)||v!=null&&o in It(v)}function _R(o){var v=typeof o;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?o!=="__proto__":o===null}function sp(o){var v=eu(o),M=ee[v];if(typeof M!="function"||!(v in Vt.prototype))return!1;if(o===M)return!0;var j=np(M);return!!j&&o===j[0]}function $R(o){return!!gb&&gb in o}var TR=zs?jo:kp;function Cl(o){var v=o&&o.constructor,M=typeof v=="function"&&v.prototype||Vn;return o===M}function g0(o){return o===o&&!Fn(o)}function m0(o,v){return function(M){return M==null?!1:M[o]===v&&(v!==e||o in It(M))}}function MR(o){var v=su(o,function(j){return M.size===d&&M.clear(),j}),M=v.cache;return v}function IR(o,v){var M=o[1],j=v[1],G=M|j,te=G<(p|b|L),ue=j==L&&M==R||j==L&&M==D&&o[7].length<=v[8]||j==(L|D)&&v[7].length<=v[8]&&M==R;if(!(te||ue))return o;j&p&&(o[2]=v[2],G|=M&p?0:x);var pe=v[3];if(pe){var ye=o[3];o[3]=ye?Qb(ye,pe,v[4]):pe,o[4]=ye?Be(o[3],a):v[4]}return pe=v[5],pe&&(ye=o[5],o[5]=ye?Jb(ye,pe,v[6]):pe,o[6]=ye?Be(o[5],a):v[6]),pe=v[7],pe&&(o[7]=pe),j&L&&(o[8]=o[8]==null?v[8]:Br(o[8],v[8])),o[9]==null&&(o[9]=v[9]),o[0]=v[0],o[1]=G,o}function ER(o){var v=[];if(o!=null)for(var M in It(o))v.push(M);return v}function RR(o){return Rc.call(o)}function v0(o,v,M){return v=fr(v===e?o.length-1:v,0),function(){for(var j=arguments,G=-1,te=fr(j.length-v,0),ue=Ce(te);++G<te;)ue[G]=j[v+G];G=-1;for(var pe=Ce(v+1);++G<v;)pe[G]=j[G];return pe[v]=M(ue),kr(o,this,pe)}}function y0(o,v){return v.length<2?o:qs(o,Vi(v,0,-1))}function LR(o,v){for(var M=o.length,j=Br(v.length,M),G=vi(o);j--;){var te=v[j];o[j]=Ho(te,M)?G[te]:e}return o}function ap(o,v){if(!(v==="constructor"&&typeof o[v]=="function")&&v!="__proto__")return o[v]}var b0=x0(Hb),kl=GI||function(o,v){return hn.setTimeout(o,v)},lp=x0(nR);function w0(o,v,M){var j=v+"";return lp(o,AR(j,OR(xR(j),M)))}function x0(o){var v=0,M=0;return function(){var j=QI(),G=O-(j-M);if(M=j,G>0){if(++v>=P)return arguments[0]}else v=0;return o.apply(e,arguments)}}function nu(o,v){var M=-1,j=o.length,G=j-1;for(v=v===e?j:v;++M<v;){var te=Ud(M,G),ue=o[te];o[te]=o[M],o[M]=ue}return o.length=v,o}var C0=MR(function(o){var v=[];return o.charCodeAt(0)===46&&v.push(""),o.replace(kn,function(M,j,G,te){v.push(G?te.replace(Xr,"$1"):j||M)}),v});function Ao(o){if(typeof o=="string"||Ei(o))return o;var v=o+"";return v=="0"&&1/o==-B?"-0":v}function Gs(o){if(o!=null){try{return Ec.call(o)}catch{}try{return o+""}catch{}}return""}function OR(o,v){return Mr(le,function(M){var j="_."+M[0];v&M[1]&&!Ti(o,j)&&o.push(j)}),o.sort()}function k0(o){if(o instanceof Vt)return o.clone();var v=new ji(o.__wrapped__,o.__chain__);return v.__actions__=vi(o.__actions__),v.__index__=o.__index__,v.__values__=o.__values__,v}function NR(o,v,M){(M?ti(o,v,M):v===e)?v=1:v=fr(Mt(v),0);var j=o==null?0:o.length;if(!j||v<1)return[];for(var G=0,te=0,ue=Ce(Pc(j/v));G<j;)ue[te++]=Vi(o,G,G+=v);return ue}function DR(o){for(var v=-1,M=o==null?0:o.length,j=0,G=[];++v<M;){var te=o[v];te&&(G[j++]=te)}return G}function FR(){var o=arguments.length;if(!o)return[];for(var v=Ce(o-1),M=arguments[0],j=o;j--;)v[j-1]=arguments[j];return T(Ct(M)?vi(M):[M],Er(v,1))}var PR=Dt(function(o,v){return Qn(o)?vl(o,Er(v,1,Qn,!0)):[]}),WR=Dt(function(o,v){var M=qi(v);return Qn(M)&&(M=e),Qn(o)?vl(o,Er(v,1,Qn,!0),pt(M,2)):[]}),BR=Dt(function(o,v){var M=qi(v);return Qn(M)&&(M=e),Qn(o)?vl(o,Er(v,1,Qn,!0),e,M):[]});function zR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),Vi(o,v<0?0:v,j)):[]}function HR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),v=j-v,Vi(o,0,v<0?0:v)):[]}function jR(o,v){return o&&o.length?Gc(o,pt(v,3),!0,!0):[]}function UR(o,v){return o&&o.length?Gc(o,pt(v,3),!0):[]}function VR(o,v,M,j){var G=o==null?0:o.length;return G?(M&&typeof M!="number"&&ti(o,v,M)&&(M=0,j=G),FE(o,v,M,j)):[]}function A0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:Mt(M);return G<0&&(G=fr(j+G,0)),re(o,pt(v,3),G)}function S0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j-1;return M!==e&&(G=Mt(M),G=M<0?fr(j+G,0):Br(G,j-1)),re(o,pt(v,3),G,!0)}function _0(o){var v=o==null?0:o.length;return v?Er(o,1):[]}function qR(o){var v=o==null?0:o.length;return v?Er(o,B):[]}function KR(o,v){var M=o==null?0:o.length;return M?(v=v===e?1:Mt(v),Er(o,v)):[]}function GR(o){for(var v=-1,M=o==null?0:o.length,j={};++v<M;){var G=o[v];j[G[0]]=G[1]}return j}function $0(o){return o&&o.length?o[0]:e}function YR(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:Mt(M);return G<0&&(G=fr(j+G,0)),ae(o,v,G)}function XR(o){var v=o==null?0:o.length;return v?Vi(o,0,-1):[]}var ZR=Dt(function(o){var v=y(o,Yd);return v.length&&v[0]===o[0]?Wd(v):[]}),QR=Dt(function(o){var v=qi(o),M=y(o,Yd);return v===qi(M)?v=e:M.pop(),M.length&&M[0]===o[0]?Wd(M,pt(v,2)):[]}),JR=Dt(function(o){var v=qi(o),M=y(o,Yd);return v=typeof v=="function"?v:e,v&&M.pop(),M.length&&M[0]===o[0]?Wd(M,e,v):[]});function eL(o,v){return o==null?"":XI.call(o,v)}function qi(o){var v=o==null?0:o.length;return v?o[v-1]:e}function tL(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j;return M!==e&&(G=Mt(M),G=G<0?fr(j+G,0):Br(G,j-1)),v===v?yt(o,v,G):re(o,ke,G,!0)}function nL(o,v){return o&&o.length?Pb(o,Mt(v)):e}var rL=Dt(T0);function T0(o,v){return o&&o.length&&v&&v.length?jd(o,v):o}function iL(o,v,M){return o&&o.length&&v&&v.length?jd(o,v,pt(M,2)):o}function oL(o,v,M){return o&&o.length&&v&&v.length?jd(o,v,e,M):o}var sL=zo(function(o,v){var M=o==null?0:o.length,j=Nd(o,v);return zb(o,y(v,function(G){return Ho(G,M)?+G:G}).sort(Zb)),j});function aL(o,v){var M=[];if(!(o&&o.length))return M;var j=-1,G=[],te=o.length;for(v=pt(v,3);++j<te;){var ue=o[j];v(ue,j,o)&&(M.push(ue),G.push(j))}return zb(o,G),M}function cp(o){return o==null?o:eE.call(o)}function lL(o,v,M){var j=o==null?0:o.length;return j?(M&&typeof M!="number"&&ti(o,v,M)?(v=0,M=j):(v=v==null?0:Mt(v),M=M===e?j:Mt(M)),Vi(o,v,M)):[]}function cL(o,v){return Kc(o,v)}function uL(o,v,M){return qd(o,v,pt(M,2))}function hL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v);if(j<M&&so(o[j],v))return j}return-1}function dL(o,v){return Kc(o,v,!0)}function pL(o,v,M){return qd(o,v,pt(M,2),!0)}function fL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v,!0)-1;if(so(o[j],v))return j}return-1}function gL(o){return o&&o.length?jb(o):[]}function mL(o,v){return o&&o.length?jb(o,pt(v,2)):[]}function vL(o){var v=o==null?0:o.length;return v?Vi(o,1,v):[]}function yL(o,v,M){return o&&o.length?(v=M||v===e?1:Mt(v),Vi(o,0,v<0?0:v)):[]}function bL(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),v=j-v,Vi(o,v<0?0:v,j)):[]}function wL(o,v){return o&&o.length?Gc(o,pt(v,3),!1,!0):[]}function xL(o,v){return o&&o.length?Gc(o,pt(v,3)):[]}var CL=Dt(function(o){return hs(Er(o,1,Qn,!0))}),kL=Dt(function(o){var v=qi(o);return Qn(v)&&(v=e),hs(Er(o,1,Qn,!0),pt(v,2))}),AL=Dt(function(o){var v=qi(o);return v=typeof v=="function"?v:e,hs(Er(o,1,Qn,!0),e,v)});function SL(o){return o&&o.length?hs(o):[]}function _L(o,v){return o&&o.length?hs(o,pt(v,2)):[]}function $L(o,v){return v=typeof v=="function"?v:e,o&&o.length?hs(o,e,v):[]}function up(o){if(!(o&&o.length))return[];var v=0;return o=Wr(o,function(M){if(Qn(M))return v=fr(M.length,v),!0}),Ze(v,function(M){return y(o,we(M))})}function M0(o,v){if(!(o&&o.length))return[];var M=up(o);return v==null?M:y(M,function(j){return kr(v,e,j)})}var TL=Dt(function(o,v){return Qn(o)?vl(o,v):[]}),ML=Dt(function(o){return Gd(Wr(o,Qn))}),IL=Dt(function(o){var v=qi(o);return Qn(v)&&(v=e),Gd(Wr(o,Qn),pt(v,2))}),EL=Dt(function(o){var v=qi(o);return v=typeof v=="function"?v:e,Gd(Wr(o,Qn),e,v)}),RL=Dt(up);function LL(o,v){return Kb(o||[],v||[],ml)}function OL(o,v){return Kb(o||[],v||[],wl)}var NL=Dt(function(o){var v=o.length,M=v>1?o[v-1]:e;return M=typeof M=="function"?(o.pop(),M):e,M0(o,M)});function I0(o){var v=ee(o);return v.__chain__=!0,v}function DL(o,v){return v(o),o}function ru(o,v){return v(o)}var FL=zo(function(o){var v=o.length,M=v?o[0]:0,j=this.__wrapped__,G=function(te){return Nd(te,o)};return v>1||this.__actions__.length||!(j instanceof Vt)||!Ho(M)?this.thru(G):(j=j.slice(M,+M+(v?1:0)),j.__actions__.push({func:ru,args:[G],thisArg:e}),new ji(j,this.__chain__).thru(function(te){return v&&!te.length&&te.push(e),te}))});function PL(){return I0(this)}function WL(){return new ji(this.value(),this.__chain__)}function BL(){this.__values__===e&&(this.__values__=U0(this.value()));var o=this.__index__>=this.__values__.length,v=o?e:this.__values__[this.__index__++];return{done:o,value:v}}function zL(){return this}function HL(o){for(var v,M=this;M instanceof Hc;){var j=k0(M);j.__index__=0,j.__values__=e,v?G.__wrapped__=j:v=j;var G=j;M=M.__wrapped__}return G.__wrapped__=o,v}function jL(){var o=this.__wrapped__;if(o instanceof Vt){var v=o;return this.__actions__.length&&(v=new Vt(this)),v=v.reverse(),v.__actions__.push({func:ru,args:[cp],thisArg:e}),new ji(v,this.__chain__)}return this.thru(cp)}function UL(){return qb(this.__wrapped__,this.__actions__)}var VL=Yc(function(o,v,M){cn.call(o,M)?++o[M]:Wo(o,M,1)});function qL(o,v,M){var j=Ct(o)?Ir:DE;return M&&ti(o,v,M)&&(v=e),j(o,pt(v,3))}function KL(o,v){var M=Ct(o)?Wr:Mb;return M(o,pt(v,3))}var GL=r0(A0),YL=r0(S0);function XL(o,v){return Er(iu(o,v),1)}function ZL(o,v){return Er(iu(o,v),B)}function QL(o,v,M){return M=M===e?1:Mt(M),Er(iu(o,v),M)}function E0(o,v){var M=Ct(o)?Mr:us;return M(o,pt(v,3))}function R0(o,v){var M=Ct(o)?Bs:Tb;return M(o,pt(v,3))}var JL=Yc(function(o,v,M){cn.call(o,M)?o[M].push(v):Wo(o,M,[v])});function eO(o,v,M,j){o=yi(o)?o:Ea(o),M=M&&!j?Mt(M):0;var G=o.length;return M<0&&(M=fr(G+M,0)),cu(o)?M<=G&&o.indexOf(v,M)>-1:!!G&&ae(o,v,M)>-1}var tO=Dt(function(o,v,M){var j=-1,G=typeof v=="function",te=yi(o)?Ce(o.length):[];return us(o,function(ue){te[++j]=G?kr(v,ue,M):yl(ue,v,M)}),te}),nO=Yc(function(o,v,M){Wo(o,M,v)});function iu(o,v){var M=Ct(o)?y:Nb;return M(o,pt(v,3))}function rO(o,v,M,j){return o==null?[]:(Ct(v)||(v=v==null?[]:[v]),M=j?e:M,Ct(M)||(M=M==null?[]:[M]),Wb(o,v,M))}var iO=Yc(function(o,v,M){o[M?0:1].push(v)},function(){return[[],[]]});function oO(o,v,M){var j=Ct(o)?S:Le,G=arguments.length<3;return j(o,pt(v,4),M,G,us)}function sO(o,v,M){var j=Ct(o)?F:Le,G=arguments.length<3;return j(o,pt(v,4),M,G,Tb)}function aO(o,v){var M=Ct(o)?Wr:Mb;return M(o,au(pt(v,3)))}function lO(o){var v=Ct(o)?Ab:eR;return v(o)}function cO(o,v,M){(M?ti(o,v,M):v===e)?v=1:v=Mt(v);var j=Ct(o)?EE:tR;return j(o,v)}function uO(o){var v=Ct(o)?RE:rR;return v(o)}function hO(o){if(o==null)return 0;if(yi(o))return cu(o)?Pt(o):o.length;var v=zr(o);return v==et||v==On?o.size:zd(o).length}function dO(o,v,M){var j=Ct(o)?W:iR;return M&&ti(o,v,M)&&(v=e),j(o,pt(v,3))}var pO=Dt(function(o,v){if(o==null)return[];var M=v.length;return M>1&&ti(o,v[0],v[1])?v=[]:M>2&&ti(v[0],v[1],v[2])&&(v=[v[0]]),Wb(o,Er(v,1),[])}),ou=KI||function(){return hn.Date.now()};function fO(o,v){if(typeof v!="function")throw new dn(m);return o=Mt(o),function(){if(--o<1)return v.apply(this,arguments)}}function L0(o,v,M){return v=M?e:v,v=o&&v==null?o.length:v,Bo(o,L,e,e,e,e,v)}function O0(o,v){var M;if(typeof v!="function")throw new dn(m);return o=Mt(o),function(){return--o>0&&(M=v.apply(this,arguments)),o<=1&&(v=e),M}}var hp=Dt(function(o,v,M){var j=p;if(M.length){var G=Be(M,Ma(hp));j|=k}return Bo(o,j,v,M,G)}),N0=Dt(function(o,v,M){var j=p|b;if(M.length){var G=Be(M,Ma(N0));j|=k}return Bo(v,j,o,M,G)});function D0(o,v,M){v=M?e:v;var j=Bo(o,R,e,e,e,e,e,v);return j.placeholder=D0.placeholder,j}function F0(o,v,M){v=M?e:v;var j=Bo(o,_,e,e,e,e,e,v);return j.placeholder=F0.placeholder,j}function P0(o,v,M){var j,G,te,ue,pe,ye,Ee=0,Re=!1,De=!1,Ge=!0;if(typeof o!="function")throw new dn(m);v=Ki(v)||0,Fn(M)&&(Re=!!M.leading,De="maxWait"in M,te=De?fr(Ki(M.maxWait)||0,v):te,Ge="trailing"in M?!!M.trailing:Ge);function nt(Jn){var ao=j,Vo=G;return j=G=e,Ee=Jn,ue=o.apply(Vo,ao),ue}function ft(Jn){return Ee=Jn,pe=kl(Bt,v),Re?nt(Jn):ue}function Et(Jn){var ao=Jn-ye,Vo=Jn-Ee,rw=v-ao;return De?Br(rw,te-Vo):rw}function gt(Jn){var ao=Jn-ye,Vo=Jn-Ee;return ye===e||ao>=v||ao<0||De&&Vo>=te}function Bt(){var Jn=ou();if(gt(Jn))return Kt(Jn);pe=kl(Bt,Et(Jn))}function Kt(Jn){return pe=e,Ge&&j?nt(Jn):(j=G=e,ue)}function Ri(){pe!==e&&Gb(pe),Ee=0,j=ye=G=pe=e}function ni(){return pe===e?ue:Kt(ou())}function Li(){var Jn=ou(),ao=gt(Jn);if(j=arguments,G=this,ye=Jn,ao){if(pe===e)return ft(ye);if(De)return Gb(pe),pe=kl(Bt,v),nt(ye)}return pe===e&&(pe=kl(Bt,v)),ue}return Li.cancel=Ri,Li.flush=ni,Li}var gO=Dt(function(o,v){return $b(o,1,v)}),mO=Dt(function(o,v,M){return $b(o,Ki(v)||0,M)});function vO(o){return Bo(o,E)}function su(o,v){if(typeof o!="function"||v!=null&&typeof v!="function")throw new dn(m);var M=function(){var j=arguments,G=v?v.apply(this,j):j[0],te=M.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,j);return M.cache=te.set(G,ue)||te,ue};return M.cache=new(su.Cache||Po),M}su.Cache=Po;function au(o){if(typeof o!="function")throw new dn(m);return function(){var v=arguments;switch(v.length){case 0:return!o.call(this);case 1:return!o.call(this,v[0]);case 2:return!o.call(this,v[0],v[1]);case 3:return!o.call(this,v[0],v[1],v[2])}return!o.apply(this,v)}}function yO(o){return O0(2,o)}var bO=oR(function(o,v){v=v.length==1&&Ct(v[0])?y(v[0],ct(pt())):y(Er(v,1),ct(pt()));var M=v.length;return Dt(function(j){for(var G=-1,te=Br(j.length,M);++G<te;)j[G]=v[G].call(this,j[G]);return kr(o,this,j)})}),dp=Dt(function(o,v){var M=Be(v,Ma(dp));return Bo(o,k,e,v,M)}),W0=Dt(function(o,v){var M=Be(v,Ma(W0));return Bo(o,C,e,v,M)}),wO=zo(function(o,v){return Bo(o,D,e,e,e,v)});function xO(o,v){if(typeof o!="function")throw new dn(m);return v=v===e?v:Mt(v),Dt(o,v)}function CO(o,v){if(typeof o!="function")throw new dn(m);return v=v==null?0:fr(Mt(v),0),Dt(function(M){var j=M[v],G=ps(M,0,v);return j&&T(G,j),kr(o,this,G)})}function kO(o,v,M){var j=!0,G=!0;if(typeof o!="function")throw new dn(m);return Fn(M)&&(j="leading"in M?!!M.leading:j,G="trailing"in M?!!M.trailing:G),P0(o,v,{leading:j,maxWait:v,trailing:G})}function AO(o){return L0(o,1)}function SO(o,v){return dp(Xd(v),o)}function _O(){if(!arguments.length)return[];var o=arguments[0];return Ct(o)?o:[o]}function $O(o){return Ui(o,c)}function TO(o,v){return v=typeof v=="function"?v:e,Ui(o,c,v)}function MO(o){return Ui(o,l|c)}function IO(o,v){return v=typeof v=="function"?v:e,Ui(o,l|c,v)}function EO(o,v){return v==null||_b(o,v,$r(v))}function so(o,v){return o===v||o!==o&&v!==v}var RO=Jc(Pd),LO=Jc(function(o,v){return o>=v}),Ys=Rb(function(){return arguments}())?Rb:function(o){return qn(o)&&cn.call(o,"callee")&&!yb.call(o,"callee")},Ct=Ce.isArray,OO=mi?ct(mi):HE;function yi(o){return o!=null&&lu(o.length)&&!jo(o)}function Qn(o){return qn(o)&&yi(o)}function NO(o){return o===!0||o===!1||qn(o)&&ei(o)==_e}var fs=YI||kp,DO=ls?ct(ls):jE;function FO(o){return qn(o)&&o.nodeType===1&&!Al(o)}function PO(o){if(o==null)return!0;if(yi(o)&&(Ct(o)||typeof o=="string"||typeof o.splice=="function"||fs(o)||Ia(o)||Ys(o)))return!o.length;var v=zr(o);if(v==et||v==On)return!o.size;if(Cl(o))return!zd(o).length;for(var M in o)if(cn.call(o,M))return!1;return!0}function WO(o,v){return bl(o,v)}function BO(o,v,M){M=typeof M=="function"?M:e;var j=M?M(o,v):e;return j===e?bl(o,v,e,M):!!j}function pp(o){if(!qn(o))return!1;var v=ei(o);return v==Xe||v==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Al(o)}function zO(o){return typeof o=="number"&&wb(o)}function jo(o){if(!Fn(o))return!1;var v=ei(o);return v==Ke||v==at||v==me||v==vr}function B0(o){return typeof o=="number"&&o==Mt(o)}function lu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function Fn(o){var v=typeof o;return o!=null&&(v=="object"||v=="function")}function qn(o){return o!=null&&typeof o=="object"}var z0=Un?ct(Un):VE;function HO(o,v){return o===v||Bd(o,v,rp(v))}function jO(o,v,M){return M=typeof M=="function"?M:e,Bd(o,v,rp(v),M)}function UO(o){return H0(o)&&o!=+o}function VO(o){if(TR(o))throw new ut(g);return Lb(o)}function qO(o){return o===null}function KO(o){return o==null}function H0(o){return typeof o=="number"||qn(o)&&ei(o)==lt}function Al(o){if(!qn(o)||ei(o)!=xn)return!1;var v=Nc(o);if(v===null)return!0;var M=cn.call(v,"constructor")&&v.constructor;return typeof M=="function"&&M instanceof M&&Ec.call(M)==jI}var fp=_i?ct(_i):qE;function GO(o){return B0(o)&&o>=-U&&o<=U}var j0=$i?ct($i):KE;function cu(o){return typeof o=="string"||!Ct(o)&&qn(o)&&ei(o)==Xn}function Ei(o){return typeof o=="symbol"||qn(o)&&ei(o)==Tr}var Ia=zi?ct(zi):GE;function YO(o){return o===e}function XO(o){return qn(o)&&zr(o)==je}function ZO(o){return qn(o)&&ei(o)==Lt}var QO=Jc(Hd),JO=Jc(function(o,v){return o<=v});function U0(o){if(!o)return[];if(yi(o))return cu(o)?wt(o):vi(o);if(hl&&o[hl])return xe(o[hl]());var v=zr(o),M=v==et?Ie:v==On?qe:Ea;return M(o)}function Uo(o){if(!o)return o===0?o:0;if(o=Ki(o),o===B||o===-B){var v=o<0?-1:1;return v*K}return o===o?o:0}function Mt(o){var v=Uo(o),M=v%1;return v===v?M?v-M:v:0}function V0(o){return o?Vs(Mt(o),0,J):0}function Ki(o){if(typeof o=="number")return o;if(Ei(o))return Q;if(Fn(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=Fn(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=bn(o);var M=To.test(o);return M||ce.test(o)?yn(o.slice(2),M?2:8):Ot.test(o)?Q:+o}function q0(o){return ko(o,bi(o))}function e2(o){return o?Vs(Mt(o),-U,U):o===0?o:0}function sn(o){return o==null?"":Ii(o)}var t2=$a(function(o,v){if(Cl(v)||yi(v)){ko(v,$r(v),o);return}for(var M in v)cn.call(v,M)&&ml(o,M,v[M])}),K0=$a(function(o,v){ko(v,bi(v),o)}),uu=$a(function(o,v,M,j){ko(v,bi(v),o,j)}),n2=$a(function(o,v,M,j){ko(v,$r(v),o,j)}),r2=zo(Nd);function i2(o,v){var M=_a(o);return v==null?M:Sb(M,v)}var o2=Dt(function(o,v){o=It(o);var M=-1,j=v.length,G=j>2?v[2]:e;for(G&&ti(v[0],v[1],G)&&(j=1);++M<j;)for(var te=v[M],ue=bi(te),pe=-1,ye=ue.length;++pe<ye;){var Ee=ue[pe],Re=o[Ee];(Re===e||so(Re,Vn[Ee])&&!cn.call(o,Ee))&&(o[Ee]=te[Ee])}return o}),s2=Dt(function(o){return o.push(e,u0),kr(G0,e,o)});function a2(o,v){return Z(o,pt(v,3),Co)}function l2(o,v){return Z(o,pt(v,3),Fd)}function c2(o,v){return o==null?o:Dd(o,pt(v,3),bi)}function u2(o,v){return o==null?o:Ib(o,pt(v,3),bi)}function h2(o,v){return o&&Co(o,pt(v,3))}function d2(o,v){return o&&Fd(o,pt(v,3))}function p2(o){return o==null?[]:Vc(o,$r(o))}function f2(o){return o==null?[]:Vc(o,bi(o))}function gp(o,v,M){var j=o==null?e:qs(o,v);return j===e?M:j}function g2(o,v){return o!=null&&p0(o,v,PE)}function mp(o,v){return o!=null&&p0(o,v,WE)}var m2=o0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),o[v]=M},yp(wi)),v2=o0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),cn.call(o,v)?o[v].push(M):o[v]=[M]},pt),y2=Dt(yl);function $r(o){return yi(o)?kb(o):zd(o)}function bi(o){return yi(o)?kb(o,!0):YE(o)}function b2(o,v){var M={};return v=pt(v,3),Co(o,function(j,G,te){Wo(M,v(j,G,te),j)}),M}function w2(o,v){var M={};return v=pt(v,3),Co(o,function(j,G,te){Wo(M,G,v(j,G,te))}),M}var x2=$a(function(o,v,M){qc(o,v,M)}),G0=$a(function(o,v,M,j){qc(o,v,M,j)}),C2=zo(function(o,v){var M={};if(o==null)return M;var j=!1;v=y(v,function(te){return te=ds(te,o),j||(j=te.length>1),te}),ko(o,tp(o),M),j&&(M=Ui(M,l|u|c,mR));for(var G=v.length;G--;)Kd(M,v[G]);return M});function k2(o,v){return Y0(o,au(pt(v)))}var A2=zo(function(o,v){return o==null?{}:ZE(o,v)});function Y0(o,v){if(o==null)return{};var M=y(tp(o),function(j){return[j]});return v=pt(v),Bb(o,M,function(j,G){return v(j,G[0])})}function S2(o,v,M){v=ds(v,o);var j=-1,G=v.length;for(G||(G=1,o=e);++j<G;){var te=o==null?e:o[Ao(v[j])];te===e&&(j=G,te=M),o=jo(te)?te.call(o):te}return o}function _2(o,v,M){return o==null?o:wl(o,v,M)}function $2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:wl(o,v,M,j)}var X0=l0($r),Z0=l0(bi);function T2(o,v,M){var j=Ct(o),G=j||fs(o)||Ia(o);if(v=pt(v,4),M==null){var te=o&&o.constructor;G?M=j?new te:[]:Fn(o)?M=jo(te)?_a(Nc(o)):{}:M={}}return(G?Mr:Co)(o,function(ue,pe,ye){return v(M,ue,pe,ye)}),M}function M2(o,v){return o==null?!0:Kd(o,v)}function I2(o,v,M){return o==null?o:Vb(o,v,Xd(M))}function E2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:Vb(o,v,Xd(M),j)}function Ea(o){return o==null?[]:Mn(o,$r(o))}function R2(o){return o==null?[]:Mn(o,bi(o))}function L2(o,v,M){return M===e&&(M=v,v=e),M!==e&&(M=Ki(M),M=M===M?M:0),v!==e&&(v=Ki(v),v=v===v?v:0),Vs(Ki(o),v,M)}function O2(o,v,M){return v=Uo(v),M===e?(M=v,v=0):M=Uo(M),o=Ki(o),BE(o,v,M)}function N2(o,v,M){if(M&&typeof M!="boolean"&&ti(o,v,M)&&(v=M=e),M===e&&(typeof v=="boolean"?(M=v,v=e):typeof o=="boolean"&&(M=o,o=e)),o===e&&v===e?(o=0,v=1):(o=Uo(o),v===e?(v=o,o=0):v=Uo(v)),o>v){var j=o;o=v,v=j}if(M||o%1||v%1){var G=xb();return Br(o+G*(v-o+He("1e-"+((G+"").length-1))),v)}return Ud(o,v)}var D2=Ta(function(o,v,M){return v=v.toLowerCase(),o+(M?Q0(v):v)});function Q0(o){return vp(sn(o).toLowerCase())}function J0(o){return o=sn(o),o&&o.replace(Fe,In).replace(Oo,"")}function F2(o,v,M){o=sn(o),v=Ii(v);var j=o.length;M=M===e?j:Vs(Mt(M),0,j);var G=M;return M-=v.length,M>=0&&o.slice(M,G)==v}function P2(o){return o=sn(o),o&&Os.test(o)?o.replace(to,V):o}function W2(o){return o=sn(o),o&&pi.test(o)?o.replace(ur,"\\$&"):o}var B2=Ta(function(o,v,M){return o+(M?"-":"")+v.toLowerCase()}),z2=Ta(function(o,v,M){return o+(M?" ":"")+v.toLowerCase()}),H2=n0("toLowerCase");function j2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;if(!v||j>=v)return o;var G=(v-j)/2;return Qc(Wc(G),M)+o+Qc(Pc(G),M)}function U2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;return v&&j<v?o+Qc(v-j,M):o}function V2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;return v&&j<v?Qc(v-j,M)+o:o}function q2(o,v,M){return M||v==null?v=0:v&&(v=+v),JI(sn(o).replace(An,""),v||0)}function K2(o,v,M){return(M?ti(o,v,M):v===e)?v=1:v=Mt(v),Vd(sn(o),v)}function G2(){var o=arguments,v=sn(o[0]);return o.length<3?v:v.replace(o[1],o[2])}var Y2=Ta(function(o,v,M){return o+(M?"_":"")+v.toLowerCase()});function X2(o,v,M){return M&&typeof M!="number"&&ti(o,v,M)&&(v=M=e),M=M===e?J:M>>>0,M?(o=sn(o),o&&(typeof v=="string"||v!=null&&!fp(v))&&(v=Ii(v),!v&&oe(o))?ps(wt(o),0,M):o.split(v,M)):[]}var Z2=Ta(function(o,v,M){return o+(M?" ":"")+vp(v)});function Q2(o,v,M){return o=sn(o),M=M==null?0:Vs(Mt(M),0,o.length),v=Ii(v),o.slice(M,M+v.length)==v}function J2(o,v,M){var j=ee.templateSettings;M&&ti(o,v,M)&&(v=e),o=sn(o),v=uu({},v,j,c0);var G=uu({},v.imports,j.imports,c0),te=$r(G),ue=Mn(G,te),pe,ye,Ee=0,Re=v.interpolate||St,De="__p += '",Ge=Jr((v.escape||St).source+"|"+Re.source+"|"+(Re===hi?gi:St).source+"|"+(v.evaluate||St).source+"|$","g"),nt="//# sourceURL="+(cn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xo+"]")+`
|
|
1471
|
+
`)}function SR(o){return Ct(o)||Ys(o)||!!(bb&&o&&o[bb])}function Ho(o,v){var M=typeof o;return v=v??U,!!v&&(M=="number"||M!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<v}function ti(o,v,M){if(!Fn(M))return!1;var j=typeof v;return(j=="number"?yi(M)&&Ho(v,M.length):j=="string"&&v in M)?so(M[v],o):!1}function op(o,v){if(Ct(o))return!1;var M=typeof o;return M=="number"||M=="symbol"||M=="boolean"||o==null||Ei(o)?!0:di.test(o)||!Qo.test(o)||v!=null&&o in It(v)}function _R(o){var v=typeof o;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?o!=="__proto__":o===null}function sp(o){var v=eu(o),M=ee[v];if(typeof M!="function"||!(v in Vt.prototype))return!1;if(o===M)return!0;var j=np(M);return!!j&&o===j[0]}function $R(o){return!!gb&&gb in o}var TR=zs?jo:kp;function Cl(o){var v=o&&o.constructor,M=typeof v=="function"&&v.prototype||Vn;return o===M}function g0(o){return o===o&&!Fn(o)}function m0(o,v){return function(M){return M==null?!1:M[o]===v&&(v!==e||o in It(M))}}function MR(o){var v=su(o,function(j){return M.size===d&&M.clear(),j}),M=v.cache;return v}function IR(o,v){var M=o[1],j=v[1],G=M|j,te=G<(p|b|L),ue=j==L&&M==R||j==L&&M==D&&o[7].length<=v[8]||j==(L|D)&&v[7].length<=v[8]&&M==R;if(!(te||ue))return o;j&p&&(o[2]=v[2],G|=M&p?0:x);var pe=v[3];if(pe){var ye=o[3];o[3]=ye?Qb(ye,pe,v[4]):pe,o[4]=ye?Be(o[3],a):v[4]}return pe=v[5],pe&&(ye=o[5],o[5]=ye?Jb(ye,pe,v[6]):pe,o[6]=ye?Be(o[5],a):v[6]),pe=v[7],pe&&(o[7]=pe),j&L&&(o[8]=o[8]==null?v[8]:Br(o[8],v[8])),o[9]==null&&(o[9]=v[9]),o[0]=v[0],o[1]=G,o}function ER(o){var v=[];if(o!=null)for(var M in It(o))v.push(M);return v}function RR(o){return Rc.call(o)}function v0(o,v,M){return v=gr(v===e?o.length-1:v,0),function(){for(var j=arguments,G=-1,te=gr(j.length-v,0),ue=Ce(te);++G<te;)ue[G]=j[v+G];G=-1;for(var pe=Ce(v+1);++G<v;)pe[G]=j[G];return pe[v]=M(ue),kr(o,this,pe)}}function y0(o,v){return v.length<2?o:qs(o,Vi(v,0,-1))}function LR(o,v){for(var M=o.length,j=Br(v.length,M),G=vi(o);j--;){var te=v[j];o[j]=Ho(te,M)?G[te]:e}return o}function ap(o,v){if(!(v==="constructor"&&typeof o[v]=="function")&&v!="__proto__")return o[v]}var b0=x0(Hb),kl=GI||function(o,v){return hn.setTimeout(o,v)},lp=x0(nR);function w0(o,v,M){var j=v+"";return lp(o,AR(j,OR(xR(j),M)))}function x0(o){var v=0,M=0;return function(){var j=QI(),G=O-(j-M);if(M=j,G>0){if(++v>=P)return arguments[0]}else v=0;return o.apply(e,arguments)}}function nu(o,v){var M=-1,j=o.length,G=j-1;for(v=v===e?j:v;++M<v;){var te=Ud(M,G),ue=o[te];o[te]=o[M],o[M]=ue}return o.length=v,o}var C0=MR(function(o){var v=[];return o.charCodeAt(0)===46&&v.push(""),o.replace(kn,function(M,j,G,te){v.push(G?te.replace(Xr,"$1"):j||M)}),v});function Ao(o){if(typeof o=="string"||Ei(o))return o;var v=o+"";return v=="0"&&1/o==-B?"-0":v}function Gs(o){if(o!=null){try{return Ec.call(o)}catch{}try{return o+""}catch{}}return""}function OR(o,v){return Mr(le,function(M){var j="_."+M[0];v&M[1]&&!Ti(o,j)&&o.push(j)}),o.sort()}function k0(o){if(o instanceof Vt)return o.clone();var v=new ji(o.__wrapped__,o.__chain__);return v.__actions__=vi(o.__actions__),v.__index__=o.__index__,v.__values__=o.__values__,v}function NR(o,v,M){(M?ti(o,v,M):v===e)?v=1:v=gr(Mt(v),0);var j=o==null?0:o.length;if(!j||v<1)return[];for(var G=0,te=0,ue=Ce(Pc(j/v));G<j;)ue[te++]=Vi(o,G,G+=v);return ue}function DR(o){for(var v=-1,M=o==null?0:o.length,j=0,G=[];++v<M;){var te=o[v];te&&(G[j++]=te)}return G}function FR(){var o=arguments.length;if(!o)return[];for(var v=Ce(o-1),M=arguments[0],j=o;j--;)v[j-1]=arguments[j];return T(Ct(M)?vi(M):[M],Er(v,1))}var PR=Dt(function(o,v){return Qn(o)?vl(o,Er(v,1,Qn,!0)):[]}),WR=Dt(function(o,v){var M=qi(v);return Qn(M)&&(M=e),Qn(o)?vl(o,Er(v,1,Qn,!0),pt(M,2)):[]}),BR=Dt(function(o,v){var M=qi(v);return Qn(M)&&(M=e),Qn(o)?vl(o,Er(v,1,Qn,!0),e,M):[]});function zR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),Vi(o,v<0?0:v,j)):[]}function HR(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),v=j-v,Vi(o,0,v<0?0:v)):[]}function jR(o,v){return o&&o.length?Gc(o,pt(v,3),!0,!0):[]}function UR(o,v){return o&&o.length?Gc(o,pt(v,3),!0):[]}function VR(o,v,M,j){var G=o==null?0:o.length;return G?(M&&typeof M!="number"&&ti(o,v,M)&&(M=0,j=G),FE(o,v,M,j)):[]}function A0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:Mt(M);return G<0&&(G=gr(j+G,0)),re(o,pt(v,3),G)}function S0(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j-1;return M!==e&&(G=Mt(M),G=M<0?gr(j+G,0):Br(G,j-1)),re(o,pt(v,3),G,!0)}function _0(o){var v=o==null?0:o.length;return v?Er(o,1):[]}function qR(o){var v=o==null?0:o.length;return v?Er(o,B):[]}function KR(o,v){var M=o==null?0:o.length;return M?(v=v===e?1:Mt(v),Er(o,v)):[]}function GR(o){for(var v=-1,M=o==null?0:o.length,j={};++v<M;){var G=o[v];j[G[0]]=G[1]}return j}function $0(o){return o&&o.length?o[0]:e}function YR(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=M==null?0:Mt(M);return G<0&&(G=gr(j+G,0)),ae(o,v,G)}function XR(o){var v=o==null?0:o.length;return v?Vi(o,0,-1):[]}var ZR=Dt(function(o){var v=y(o,Yd);return v.length&&v[0]===o[0]?Wd(v):[]}),QR=Dt(function(o){var v=qi(o),M=y(o,Yd);return v===qi(M)?v=e:M.pop(),M.length&&M[0]===o[0]?Wd(M,pt(v,2)):[]}),JR=Dt(function(o){var v=qi(o),M=y(o,Yd);return v=typeof v=="function"?v:e,v&&M.pop(),M.length&&M[0]===o[0]?Wd(M,e,v):[]});function eL(o,v){return o==null?"":XI.call(o,v)}function qi(o){var v=o==null?0:o.length;return v?o[v-1]:e}function tL(o,v,M){var j=o==null?0:o.length;if(!j)return-1;var G=j;return M!==e&&(G=Mt(M),G=G<0?gr(j+G,0):Br(G,j-1)),v===v?yt(o,v,G):re(o,ke,G,!0)}function nL(o,v){return o&&o.length?Pb(o,Mt(v)):e}var rL=Dt(T0);function T0(o,v){return o&&o.length&&v&&v.length?jd(o,v):o}function iL(o,v,M){return o&&o.length&&v&&v.length?jd(o,v,pt(M,2)):o}function oL(o,v,M){return o&&o.length&&v&&v.length?jd(o,v,e,M):o}var sL=zo(function(o,v){var M=o==null?0:o.length,j=Nd(o,v);return zb(o,y(v,function(G){return Ho(G,M)?+G:G}).sort(Zb)),j});function aL(o,v){var M=[];if(!(o&&o.length))return M;var j=-1,G=[],te=o.length;for(v=pt(v,3);++j<te;){var ue=o[j];v(ue,j,o)&&(M.push(ue),G.push(j))}return zb(o,G),M}function cp(o){return o==null?o:eE.call(o)}function lL(o,v,M){var j=o==null?0:o.length;return j?(M&&typeof M!="number"&&ti(o,v,M)?(v=0,M=j):(v=v==null?0:Mt(v),M=M===e?j:Mt(M)),Vi(o,v,M)):[]}function cL(o,v){return Kc(o,v)}function uL(o,v,M){return qd(o,v,pt(M,2))}function hL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v);if(j<M&&so(o[j],v))return j}return-1}function dL(o,v){return Kc(o,v,!0)}function pL(o,v,M){return qd(o,v,pt(M,2),!0)}function fL(o,v){var M=o==null?0:o.length;if(M){var j=Kc(o,v,!0)-1;if(so(o[j],v))return j}return-1}function gL(o){return o&&o.length?jb(o):[]}function mL(o,v){return o&&o.length?jb(o,pt(v,2)):[]}function vL(o){var v=o==null?0:o.length;return v?Vi(o,1,v):[]}function yL(o,v,M){return o&&o.length?(v=M||v===e?1:Mt(v),Vi(o,0,v<0?0:v)):[]}function bL(o,v,M){var j=o==null?0:o.length;return j?(v=M||v===e?1:Mt(v),v=j-v,Vi(o,v<0?0:v,j)):[]}function wL(o,v){return o&&o.length?Gc(o,pt(v,3),!1,!0):[]}function xL(o,v){return o&&o.length?Gc(o,pt(v,3)):[]}var CL=Dt(function(o){return hs(Er(o,1,Qn,!0))}),kL=Dt(function(o){var v=qi(o);return Qn(v)&&(v=e),hs(Er(o,1,Qn,!0),pt(v,2))}),AL=Dt(function(o){var v=qi(o);return v=typeof v=="function"?v:e,hs(Er(o,1,Qn,!0),e,v)});function SL(o){return o&&o.length?hs(o):[]}function _L(o,v){return o&&o.length?hs(o,pt(v,2)):[]}function $L(o,v){return v=typeof v=="function"?v:e,o&&o.length?hs(o,e,v):[]}function up(o){if(!(o&&o.length))return[];var v=0;return o=Wr(o,function(M){if(Qn(M))return v=gr(M.length,v),!0}),Ze(v,function(M){return y(o,we(M))})}function M0(o,v){if(!(o&&o.length))return[];var M=up(o);return v==null?M:y(M,function(j){return kr(v,e,j)})}var TL=Dt(function(o,v){return Qn(o)?vl(o,v):[]}),ML=Dt(function(o){return Gd(Wr(o,Qn))}),IL=Dt(function(o){var v=qi(o);return Qn(v)&&(v=e),Gd(Wr(o,Qn),pt(v,2))}),EL=Dt(function(o){var v=qi(o);return v=typeof v=="function"?v:e,Gd(Wr(o,Qn),e,v)}),RL=Dt(up);function LL(o,v){return Kb(o||[],v||[],ml)}function OL(o,v){return Kb(o||[],v||[],wl)}var NL=Dt(function(o){var v=o.length,M=v>1?o[v-1]:e;return M=typeof M=="function"?(o.pop(),M):e,M0(o,M)});function I0(o){var v=ee(o);return v.__chain__=!0,v}function DL(o,v){return v(o),o}function ru(o,v){return v(o)}var FL=zo(function(o){var v=o.length,M=v?o[0]:0,j=this.__wrapped__,G=function(te){return Nd(te,o)};return v>1||this.__actions__.length||!(j instanceof Vt)||!Ho(M)?this.thru(G):(j=j.slice(M,+M+(v?1:0)),j.__actions__.push({func:ru,args:[G],thisArg:e}),new ji(j,this.__chain__).thru(function(te){return v&&!te.length&&te.push(e),te}))});function PL(){return I0(this)}function WL(){return new ji(this.value(),this.__chain__)}function BL(){this.__values__===e&&(this.__values__=U0(this.value()));var o=this.__index__>=this.__values__.length,v=o?e:this.__values__[this.__index__++];return{done:o,value:v}}function zL(){return this}function HL(o){for(var v,M=this;M instanceof Hc;){var j=k0(M);j.__index__=0,j.__values__=e,v?G.__wrapped__=j:v=j;var G=j;M=M.__wrapped__}return G.__wrapped__=o,v}function jL(){var o=this.__wrapped__;if(o instanceof Vt){var v=o;return this.__actions__.length&&(v=new Vt(this)),v=v.reverse(),v.__actions__.push({func:ru,args:[cp],thisArg:e}),new ji(v,this.__chain__)}return this.thru(cp)}function UL(){return qb(this.__wrapped__,this.__actions__)}var VL=Yc(function(o,v,M){cn.call(o,M)?++o[M]:Wo(o,M,1)});function qL(o,v,M){var j=Ct(o)?Ir:DE;return M&&ti(o,v,M)&&(v=e),j(o,pt(v,3))}function KL(o,v){var M=Ct(o)?Wr:Mb;return M(o,pt(v,3))}var GL=r0(A0),YL=r0(S0);function XL(o,v){return Er(iu(o,v),1)}function ZL(o,v){return Er(iu(o,v),B)}function QL(o,v,M){return M=M===e?1:Mt(M),Er(iu(o,v),M)}function E0(o,v){var M=Ct(o)?Mr:us;return M(o,pt(v,3))}function R0(o,v){var M=Ct(o)?Bs:Tb;return M(o,pt(v,3))}var JL=Yc(function(o,v,M){cn.call(o,M)?o[M].push(v):Wo(o,M,[v])});function eO(o,v,M,j){o=yi(o)?o:Ea(o),M=M&&!j?Mt(M):0;var G=o.length;return M<0&&(M=gr(G+M,0)),cu(o)?M<=G&&o.indexOf(v,M)>-1:!!G&&ae(o,v,M)>-1}var tO=Dt(function(o,v,M){var j=-1,G=typeof v=="function",te=yi(o)?Ce(o.length):[];return us(o,function(ue){te[++j]=G?kr(v,ue,M):yl(ue,v,M)}),te}),nO=Yc(function(o,v,M){Wo(o,M,v)});function iu(o,v){var M=Ct(o)?y:Nb;return M(o,pt(v,3))}function rO(o,v,M,j){return o==null?[]:(Ct(v)||(v=v==null?[]:[v]),M=j?e:M,Ct(M)||(M=M==null?[]:[M]),Wb(o,v,M))}var iO=Yc(function(o,v,M){o[M?0:1].push(v)},function(){return[[],[]]});function oO(o,v,M){var j=Ct(o)?S:Le,G=arguments.length<3;return j(o,pt(v,4),M,G,us)}function sO(o,v,M){var j=Ct(o)?F:Le,G=arguments.length<3;return j(o,pt(v,4),M,G,Tb)}function aO(o,v){var M=Ct(o)?Wr:Mb;return M(o,au(pt(v,3)))}function lO(o){var v=Ct(o)?Ab:eR;return v(o)}function cO(o,v,M){(M?ti(o,v,M):v===e)?v=1:v=Mt(v);var j=Ct(o)?EE:tR;return j(o,v)}function uO(o){var v=Ct(o)?RE:rR;return v(o)}function hO(o){if(o==null)return 0;if(yi(o))return cu(o)?Pt(o):o.length;var v=zr(o);return v==et||v==On?o.size:zd(o).length}function dO(o,v,M){var j=Ct(o)?W:iR;return M&&ti(o,v,M)&&(v=e),j(o,pt(v,3))}var pO=Dt(function(o,v){if(o==null)return[];var M=v.length;return M>1&&ti(o,v[0],v[1])?v=[]:M>2&&ti(v[0],v[1],v[2])&&(v=[v[0]]),Wb(o,Er(v,1),[])}),ou=KI||function(){return hn.Date.now()};function fO(o,v){if(typeof v!="function")throw new dn(m);return o=Mt(o),function(){if(--o<1)return v.apply(this,arguments)}}function L0(o,v,M){return v=M?e:v,v=o&&v==null?o.length:v,Bo(o,L,e,e,e,e,v)}function O0(o,v){var M;if(typeof v!="function")throw new dn(m);return o=Mt(o),function(){return--o>0&&(M=v.apply(this,arguments)),o<=1&&(v=e),M}}var hp=Dt(function(o,v,M){var j=p;if(M.length){var G=Be(M,Ma(hp));j|=k}return Bo(o,j,v,M,G)}),N0=Dt(function(o,v,M){var j=p|b;if(M.length){var G=Be(M,Ma(N0));j|=k}return Bo(v,j,o,M,G)});function D0(o,v,M){v=M?e:v;var j=Bo(o,R,e,e,e,e,e,v);return j.placeholder=D0.placeholder,j}function F0(o,v,M){v=M?e:v;var j=Bo(o,_,e,e,e,e,e,v);return j.placeholder=F0.placeholder,j}function P0(o,v,M){var j,G,te,ue,pe,ye,Ee=0,Re=!1,De=!1,Ge=!0;if(typeof o!="function")throw new dn(m);v=Ki(v)||0,Fn(M)&&(Re=!!M.leading,De="maxWait"in M,te=De?gr(Ki(M.maxWait)||0,v):te,Ge="trailing"in M?!!M.trailing:Ge);function it(Jn){var ao=j,Vo=G;return j=G=e,Ee=Jn,ue=o.apply(Vo,ao),ue}function ft(Jn){return Ee=Jn,pe=kl(Bt,v),Re?it(Jn):ue}function Et(Jn){var ao=Jn-ye,Vo=Jn-Ee,rw=v-ao;return De?Br(rw,te-Vo):rw}function gt(Jn){var ao=Jn-ye,Vo=Jn-Ee;return ye===e||ao>=v||ao<0||De&&Vo>=te}function Bt(){var Jn=ou();if(gt(Jn))return Kt(Jn);pe=kl(Bt,Et(Jn))}function Kt(Jn){return pe=e,Ge&&j?it(Jn):(j=G=e,ue)}function Ri(){pe!==e&&Gb(pe),Ee=0,j=ye=G=pe=e}function ni(){return pe===e?ue:Kt(ou())}function Li(){var Jn=ou(),ao=gt(Jn);if(j=arguments,G=this,ye=Jn,ao){if(pe===e)return ft(ye);if(De)return Gb(pe),pe=kl(Bt,v),it(ye)}return pe===e&&(pe=kl(Bt,v)),ue}return Li.cancel=Ri,Li.flush=ni,Li}var gO=Dt(function(o,v){return $b(o,1,v)}),mO=Dt(function(o,v,M){return $b(o,Ki(v)||0,M)});function vO(o){return Bo(o,E)}function su(o,v){if(typeof o!="function"||v!=null&&typeof v!="function")throw new dn(m);var M=function(){var j=arguments,G=v?v.apply(this,j):j[0],te=M.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,j);return M.cache=te.set(G,ue)||te,ue};return M.cache=new(su.Cache||Po),M}su.Cache=Po;function au(o){if(typeof o!="function")throw new dn(m);return function(){var v=arguments;switch(v.length){case 0:return!o.call(this);case 1:return!o.call(this,v[0]);case 2:return!o.call(this,v[0],v[1]);case 3:return!o.call(this,v[0],v[1],v[2])}return!o.apply(this,v)}}function yO(o){return O0(2,o)}var bO=oR(function(o,v){v=v.length==1&&Ct(v[0])?y(v[0],ct(pt())):y(Er(v,1),ct(pt()));var M=v.length;return Dt(function(j){for(var G=-1,te=Br(j.length,M);++G<te;)j[G]=v[G].call(this,j[G]);return kr(o,this,j)})}),dp=Dt(function(o,v){var M=Be(v,Ma(dp));return Bo(o,k,e,v,M)}),W0=Dt(function(o,v){var M=Be(v,Ma(W0));return Bo(o,C,e,v,M)}),wO=zo(function(o,v){return Bo(o,D,e,e,e,v)});function xO(o,v){if(typeof o!="function")throw new dn(m);return v=v===e?v:Mt(v),Dt(o,v)}function CO(o,v){if(typeof o!="function")throw new dn(m);return v=v==null?0:gr(Mt(v),0),Dt(function(M){var j=M[v],G=ps(M,0,v);return j&&T(G,j),kr(o,this,G)})}function kO(o,v,M){var j=!0,G=!0;if(typeof o!="function")throw new dn(m);return Fn(M)&&(j="leading"in M?!!M.leading:j,G="trailing"in M?!!M.trailing:G),P0(o,v,{leading:j,maxWait:v,trailing:G})}function AO(o){return L0(o,1)}function SO(o,v){return dp(Xd(v),o)}function _O(){if(!arguments.length)return[];var o=arguments[0];return Ct(o)?o:[o]}function $O(o){return Ui(o,c)}function TO(o,v){return v=typeof v=="function"?v:e,Ui(o,c,v)}function MO(o){return Ui(o,l|c)}function IO(o,v){return v=typeof v=="function"?v:e,Ui(o,l|c,v)}function EO(o,v){return v==null||_b(o,v,$r(v))}function so(o,v){return o===v||o!==o&&v!==v}var RO=Jc(Pd),LO=Jc(function(o,v){return o>=v}),Ys=Rb(function(){return arguments}())?Rb:function(o){return qn(o)&&cn.call(o,"callee")&&!yb.call(o,"callee")},Ct=Ce.isArray,OO=mi?ct(mi):HE;function yi(o){return o!=null&&lu(o.length)&&!jo(o)}function Qn(o){return qn(o)&&yi(o)}function NO(o){return o===!0||o===!1||qn(o)&&ei(o)==_e}var fs=YI||kp,DO=ls?ct(ls):jE;function FO(o){return qn(o)&&o.nodeType===1&&!Al(o)}function PO(o){if(o==null)return!0;if(yi(o)&&(Ct(o)||typeof o=="string"||typeof o.splice=="function"||fs(o)||Ia(o)||Ys(o)))return!o.length;var v=zr(o);if(v==et||v==On)return!o.size;if(Cl(o))return!zd(o).length;for(var M in o)if(cn.call(o,M))return!1;return!0}function WO(o,v){return bl(o,v)}function BO(o,v,M){M=typeof M=="function"?M:e;var j=M?M(o,v):e;return j===e?bl(o,v,e,M):!!j}function pp(o){if(!qn(o))return!1;var v=ei(o);return v==Xe||v==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Al(o)}function zO(o){return typeof o=="number"&&wb(o)}function jo(o){if(!Fn(o))return!1;var v=ei(o);return v==Ke||v==at||v==me||v==vr}function B0(o){return typeof o=="number"&&o==Mt(o)}function lu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function Fn(o){var v=typeof o;return o!=null&&(v=="object"||v=="function")}function qn(o){return o!=null&&typeof o=="object"}var z0=Un?ct(Un):VE;function HO(o,v){return o===v||Bd(o,v,rp(v))}function jO(o,v,M){return M=typeof M=="function"?M:e,Bd(o,v,rp(v),M)}function UO(o){return H0(o)&&o!=+o}function VO(o){if(TR(o))throw new ut(g);return Lb(o)}function qO(o){return o===null}function KO(o){return o==null}function H0(o){return typeof o=="number"||qn(o)&&ei(o)==lt}function Al(o){if(!qn(o)||ei(o)!=xn)return!1;var v=Nc(o);if(v===null)return!0;var M=cn.call(v,"constructor")&&v.constructor;return typeof M=="function"&&M instanceof M&&Ec.call(M)==jI}var fp=_i?ct(_i):qE;function GO(o){return B0(o)&&o>=-U&&o<=U}var j0=$i?ct($i):KE;function cu(o){return typeof o=="string"||!Ct(o)&&qn(o)&&ei(o)==Xn}function Ei(o){return typeof o=="symbol"||qn(o)&&ei(o)==Tr}var Ia=zi?ct(zi):GE;function YO(o){return o===e}function XO(o){return qn(o)&&zr(o)==je}function ZO(o){return qn(o)&&ei(o)==Lt}var QO=Jc(Hd),JO=Jc(function(o,v){return o<=v});function U0(o){if(!o)return[];if(yi(o))return cu(o)?wt(o):vi(o);if(hl&&o[hl])return xe(o[hl]());var v=zr(o),M=v==et?Ie:v==On?qe:Ea;return M(o)}function Uo(o){if(!o)return o===0?o:0;if(o=Ki(o),o===B||o===-B){var v=o<0?-1:1;return v*K}return o===o?o:0}function Mt(o){var v=Uo(o),M=v%1;return v===v?M?v-M:v:0}function V0(o){return o?Vs(Mt(o),0,J):0}function Ki(o){if(typeof o=="number")return o;if(Ei(o))return Q;if(Fn(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=Fn(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=bn(o);var M=To.test(o);return M||ce.test(o)?yn(o.slice(2),M?2:8):Ot.test(o)?Q:+o}function q0(o){return ko(o,bi(o))}function e2(o){return o?Vs(Mt(o),-U,U):o===0?o:0}function sn(o){return o==null?"":Ii(o)}var t2=$a(function(o,v){if(Cl(v)||yi(v)){ko(v,$r(v),o);return}for(var M in v)cn.call(v,M)&&ml(o,M,v[M])}),K0=$a(function(o,v){ko(v,bi(v),o)}),uu=$a(function(o,v,M,j){ko(v,bi(v),o,j)}),n2=$a(function(o,v,M,j){ko(v,$r(v),o,j)}),r2=zo(Nd);function i2(o,v){var M=_a(o);return v==null?M:Sb(M,v)}var o2=Dt(function(o,v){o=It(o);var M=-1,j=v.length,G=j>2?v[2]:e;for(G&&ti(v[0],v[1],G)&&(j=1);++M<j;)for(var te=v[M],ue=bi(te),pe=-1,ye=ue.length;++pe<ye;){var Ee=ue[pe],Re=o[Ee];(Re===e||so(Re,Vn[Ee])&&!cn.call(o,Ee))&&(o[Ee]=te[Ee])}return o}),s2=Dt(function(o){return o.push(e,u0),kr(G0,e,o)});function a2(o,v){return Z(o,pt(v,3),Co)}function l2(o,v){return Z(o,pt(v,3),Fd)}function c2(o,v){return o==null?o:Dd(o,pt(v,3),bi)}function u2(o,v){return o==null?o:Ib(o,pt(v,3),bi)}function h2(o,v){return o&&Co(o,pt(v,3))}function d2(o,v){return o&&Fd(o,pt(v,3))}function p2(o){return o==null?[]:Vc(o,$r(o))}function f2(o){return o==null?[]:Vc(o,bi(o))}function gp(o,v,M){var j=o==null?e:qs(o,v);return j===e?M:j}function g2(o,v){return o!=null&&p0(o,v,PE)}function mp(o,v){return o!=null&&p0(o,v,WE)}var m2=o0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),o[v]=M},yp(wi)),v2=o0(function(o,v,M){v!=null&&typeof v.toString!="function"&&(v=Rc.call(v)),cn.call(o,v)?o[v].push(M):o[v]=[M]},pt),y2=Dt(yl);function $r(o){return yi(o)?kb(o):zd(o)}function bi(o){return yi(o)?kb(o,!0):YE(o)}function b2(o,v){var M={};return v=pt(v,3),Co(o,function(j,G,te){Wo(M,v(j,G,te),j)}),M}function w2(o,v){var M={};return v=pt(v,3),Co(o,function(j,G,te){Wo(M,G,v(j,G,te))}),M}var x2=$a(function(o,v,M){qc(o,v,M)}),G0=$a(function(o,v,M,j){qc(o,v,M,j)}),C2=zo(function(o,v){var M={};if(o==null)return M;var j=!1;v=y(v,function(te){return te=ds(te,o),j||(j=te.length>1),te}),ko(o,tp(o),M),j&&(M=Ui(M,l|u|c,mR));for(var G=v.length;G--;)Kd(M,v[G]);return M});function k2(o,v){return Y0(o,au(pt(v)))}var A2=zo(function(o,v){return o==null?{}:ZE(o,v)});function Y0(o,v){if(o==null)return{};var M=y(tp(o),function(j){return[j]});return v=pt(v),Bb(o,M,function(j,G){return v(j,G[0])})}function S2(o,v,M){v=ds(v,o);var j=-1,G=v.length;for(G||(G=1,o=e);++j<G;){var te=o==null?e:o[Ao(v[j])];te===e&&(j=G,te=M),o=jo(te)?te.call(o):te}return o}function _2(o,v,M){return o==null?o:wl(o,v,M)}function $2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:wl(o,v,M,j)}var X0=l0($r),Z0=l0(bi);function T2(o,v,M){var j=Ct(o),G=j||fs(o)||Ia(o);if(v=pt(v,4),M==null){var te=o&&o.constructor;G?M=j?new te:[]:Fn(o)?M=jo(te)?_a(Nc(o)):{}:M={}}return(G?Mr:Co)(o,function(ue,pe,ye){return v(M,ue,pe,ye)}),M}function M2(o,v){return o==null?!0:Kd(o,v)}function I2(o,v,M){return o==null?o:Vb(o,v,Xd(M))}function E2(o,v,M,j){return j=typeof j=="function"?j:e,o==null?o:Vb(o,v,Xd(M),j)}function Ea(o){return o==null?[]:Mn(o,$r(o))}function R2(o){return o==null?[]:Mn(o,bi(o))}function L2(o,v,M){return M===e&&(M=v,v=e),M!==e&&(M=Ki(M),M=M===M?M:0),v!==e&&(v=Ki(v),v=v===v?v:0),Vs(Ki(o),v,M)}function O2(o,v,M){return v=Uo(v),M===e?(M=v,v=0):M=Uo(M),o=Ki(o),BE(o,v,M)}function N2(o,v,M){if(M&&typeof M!="boolean"&&ti(o,v,M)&&(v=M=e),M===e&&(typeof v=="boolean"?(M=v,v=e):typeof o=="boolean"&&(M=o,o=e)),o===e&&v===e?(o=0,v=1):(o=Uo(o),v===e?(v=o,o=0):v=Uo(v)),o>v){var j=o;o=v,v=j}if(M||o%1||v%1){var G=xb();return Br(o+G*(v-o+He("1e-"+((G+"").length-1))),v)}return Ud(o,v)}var D2=Ta(function(o,v,M){return v=v.toLowerCase(),o+(M?Q0(v):v)});function Q0(o){return vp(sn(o).toLowerCase())}function J0(o){return o=sn(o),o&&o.replace(Fe,In).replace(Oo,"")}function F2(o,v,M){o=sn(o),v=Ii(v);var j=o.length;M=M===e?j:Vs(Mt(M),0,j);var G=M;return M-=v.length,M>=0&&o.slice(M,G)==v}function P2(o){return o=sn(o),o&&Os.test(o)?o.replace(to,V):o}function W2(o){return o=sn(o),o&&pi.test(o)?o.replace(hr,"\\$&"):o}var B2=Ta(function(o,v,M){return o+(M?"-":"")+v.toLowerCase()}),z2=Ta(function(o,v,M){return o+(M?" ":"")+v.toLowerCase()}),H2=n0("toLowerCase");function j2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;if(!v||j>=v)return o;var G=(v-j)/2;return Qc(Wc(G),M)+o+Qc(Pc(G),M)}function U2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;return v&&j<v?o+Qc(v-j,M):o}function V2(o,v,M){o=sn(o),v=Mt(v);var j=v?Pt(o):0;return v&&j<v?Qc(v-j,M)+o:o}function q2(o,v,M){return M||v==null?v=0:v&&(v=+v),JI(sn(o).replace(An,""),v||0)}function K2(o,v,M){return(M?ti(o,v,M):v===e)?v=1:v=Mt(v),Vd(sn(o),v)}function G2(){var o=arguments,v=sn(o[0]);return o.length<3?v:v.replace(o[1],o[2])}var Y2=Ta(function(o,v,M){return o+(M?"_":"")+v.toLowerCase()});function X2(o,v,M){return M&&typeof M!="number"&&ti(o,v,M)&&(v=M=e),M=M===e?J:M>>>0,M?(o=sn(o),o&&(typeof v=="string"||v!=null&&!fp(v))&&(v=Ii(v),!v&&oe(o))?ps(wt(o),0,M):o.split(v,M)):[]}var Z2=Ta(function(o,v,M){return o+(M?" ":"")+vp(v)});function Q2(o,v,M){return o=sn(o),M=M==null?0:Vs(Mt(M),0,o.length),v=Ii(v),o.slice(M,M+v.length)==v}function J2(o,v,M){var j=ee.templateSettings;M&&ti(o,v,M)&&(v=e),o=sn(o),v=uu({},v,j,c0);var G=uu({},v.imports,j.imports,c0),te=$r(G),ue=Mn(G,te),pe,ye,Ee=0,Re=v.interpolate||St,De="__p += '",Ge=Jr((v.escape||St).source+"|"+Re.source+"|"+(Re===hi?gi:St).source+"|"+(v.evaluate||St).source+"|$","g"),it="//# sourceURL="+(cn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xo+"]")+`
|
|
1472
1472
|
`;o.replace(Ge,function(gt,Bt,Kt,Ri,ni,Li){return Kt||(Kt=Ri),De+=o.slice(Ee,Li).replace(Yt,X),Bt&&(pe=!0,De+=`' +
|
|
1473
1473
|
__e(`+Bt+`) +
|
|
1474
1474
|
'`),ni&&(ye=!0,De+=`';
|
|
@@ -1485,19 +1485,19 @@ __p += '`),Kt&&(De+=`' +
|
|
|
1485
1485
|
function print() { __p += __j.call(arguments, '') }
|
|
1486
1486
|
`:`;
|
|
1487
1487
|
`)+De+`return __p
|
|
1488
|
-
}`;var Et=tw(function(){return $t(te,nt+"return "+De).apply(e,ue)});if(Et.source=De,pp(Et))throw Et;return Et}function eN(o){return sn(o).toLowerCase()}function tN(o){return sn(o).toUpperCase()}function nN(o,v,M){if(o=sn(o),o&&(M||v===e))return bn(o);if(!o||!(v=Ii(v)))return o;var j=wt(o),G=wt(v),te=_t(j,G),ue=ir(j,G)+1;return ps(j,te,ue).join("")}function rN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.slice(0,Nt(o)+1);if(!o||!(v=Ii(v)))return o;var j=wt(o),G=ir(j,wt(v))+1;return ps(j,0,G).join("")}function iN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.replace(An,"");if(!o||!(v=Ii(v)))return o;var j=wt(o),G=_t(j,wt(v));return ps(j,G).join("")}function oN(o,v){var M=I,j=z;if(Fn(v)){var G="separator"in v?v.separator:G;M="length"in v?Mt(v.length):M,j="omission"in v?Ii(v.omission):j}o=sn(o);var te=o.length;if(oe(o)){var ue=wt(o);te=ue.length}if(M>=te)return o;var pe=M-Pt(j);if(pe<1)return j;var ye=ue?ps(ue,0,pe).join(""):o.slice(0,pe);if(G===e)return ye+j;if(ue&&(pe+=ye.length-pe),fp(G)){if(o.slice(pe).search(G)){var Ee,Re=ye;for(G.global||(G=Jr(G.source,sn(Fr.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Re);)var De=Ee.index;ye=ye.slice(0,De===e?pe:De)}}else if(o.indexOf(Ii(G),pe)!=pe){var Ge=ye.lastIndexOf(G);Ge>-1&&(ye=ye.slice(0,Ge))}return ye+j}function sN(o){return o=sn(o),o&&ui.test(o)?o.replace(Bn,dt):o}var aN=Ta(function(o,v,M){return o+(M?" ":"")+v.toUpperCase()}),vp=n0("toUpperCase");function ew(o,v,M){return o=sn(o),v=M?e:v,v===e?ge(o)?En(o):Y(o):o.match(v)||[]}var tw=Dt(function(o,v){try{return kr(o,e,v)}catch(M){return pp(M)?M:new ut(M)}}),lN=zo(function(o,v){return Mr(v,function(M){M=Ao(M),Wo(o,M,hp(o[M],o))}),o});function cN(o){var v=o==null?0:o.length,M=pt();return o=v?y(o,function(j){if(typeof j[1]!="function")throw new dn(m);return[M(j[0]),j[1]]}):[],Dt(function(j){for(var G=-1;++G<v;){var te=o[G];if(kr(te[0],this,j))return kr(te[1],this,j)}})}function uN(o){return NE(Ui(o,l))}function yp(o){return function(){return o}}function hN(o,v){return o==null||o!==o?v:o}var dN=i0(),pN=i0(!0);function wi(o){return o}function bp(o){return Ob(typeof o=="function"?o:Ui(o,l))}function fN(o){return Db(Ui(o,l))}function gN(o,v){return Fb(o,Ui(v,l))}var mN=Dt(function(o,v){return function(M){return yl(M,o,v)}}),vN=Dt(function(o,v){return function(M){return yl(o,M,v)}});function wp(o,v,M){var j=$r(v),G=Vc(v,j);M==null&&!(Fn(v)&&(G.length||!j.length))&&(M=v,v=o,o=this,G=Vc(v,$r(v)));var te=!(Fn(M)&&"chain"in M)||!!M.chain,ue=jo(o);return Mr(G,function(pe){var ye=v[pe];o[pe]=ye,ue&&(o.prototype[pe]=function(){var Ee=this.__chain__;if(te||Ee){var Re=o(this.__wrapped__),De=Re.__actions__=vi(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Re.__chain__=Ee,Re}return ye.apply(o,T([this.value()],arguments))})}),o}function yN(){return hn._===this&&(hn._=UI),this}function xp(){}function bN(o){return o=Mt(o),Dt(function(v){return Pb(v,o)})}var wN=Qd(y),xN=Qd(Ir),CN=Qd(W);function nw(o){return op(o)?we(Ao(o)):QE(o)}function kN(o){return function(v){return o==null?e:qs(o,v)}}var AN=s0(),SN=s0(!0);function Cp(){return[]}function kp(){return!1}function _N(){return{}}function $N(){return""}function TN(){return!0}function MN(o,v){if(o=Mt(o),o<1||o>U)return[];var M=J,j=Br(o,J);v=pt(v),o-=J;for(var G=Ze(j,v);++M<o;)v(M);return G}function IN(o){return Ct(o)?y(o,Ao):Ei(o)?[o]:vi(C0(sn(o)))}function EN(o){var v=++HI;return sn(o)+v}var RN=Zc(function(o,v){return o+v},0),LN=Jd("ceil"),ON=Zc(function(o,v){return o/v},1),NN=Jd("floor");function DN(o){return o&&o.length?Uc(o,wi,Pd):e}function FN(o,v){return o&&o.length?Uc(o,pt(v,2),Pd):e}function PN(o){return ve(o,wi)}function WN(o,v){return ve(o,pt(v,2))}function BN(o){return o&&o.length?Uc(o,wi,Hd):e}function zN(o,v){return o&&o.length?Uc(o,pt(v,2),Hd):e}var HN=Zc(function(o,v){return o*v},1),jN=Jd("round"),UN=Zc(function(o,v){return o-v},0);function VN(o){return o&&o.length?st(o,wi):0}function qN(o,v){return o&&o.length?st(o,pt(v,2)):0}return ee.after=fO,ee.ary=L0,ee.assign=t2,ee.assignIn=K0,ee.assignInWith=uu,ee.assignWith=n2,ee.at=r2,ee.before=O0,ee.bind=hp,ee.bindAll=lN,ee.bindKey=N0,ee.castArray=_O,ee.chain=I0,ee.chunk=NR,ee.compact=DR,ee.concat=FR,ee.cond=cN,ee.conforms=uN,ee.constant=yp,ee.countBy=VL,ee.create=i2,ee.curry=D0,ee.curryRight=F0,ee.debounce=P0,ee.defaults=o2,ee.defaultsDeep=s2,ee.defer=gO,ee.delay=mO,ee.difference=PR,ee.differenceBy=WR,ee.differenceWith=BR,ee.drop=zR,ee.dropRight=HR,ee.dropRightWhile=jR,ee.dropWhile=UR,ee.fill=VR,ee.filter=KL,ee.flatMap=XL,ee.flatMapDeep=ZL,ee.flatMapDepth=QL,ee.flatten=_0,ee.flattenDeep=qR,ee.flattenDepth=KR,ee.flip=vO,ee.flow=dN,ee.flowRight=pN,ee.fromPairs=GR,ee.functions=p2,ee.functionsIn=f2,ee.groupBy=JL,ee.initial=XR,ee.intersection=ZR,ee.intersectionBy=QR,ee.intersectionWith=JR,ee.invert=m2,ee.invertBy=v2,ee.invokeMap=tO,ee.iteratee=bp,ee.keyBy=nO,ee.keys=$r,ee.keysIn=bi,ee.map=iu,ee.mapKeys=b2,ee.mapValues=w2,ee.matches=fN,ee.matchesProperty=gN,ee.memoize=su,ee.merge=x2,ee.mergeWith=G0,ee.method=mN,ee.methodOf=vN,ee.mixin=wp,ee.negate=au,ee.nthArg=bN,ee.omit=C2,ee.omitBy=k2,ee.once=yO,ee.orderBy=rO,ee.over=wN,ee.overArgs=bO,ee.overEvery=xN,ee.overSome=CN,ee.partial=dp,ee.partialRight=W0,ee.partition=iO,ee.pick=A2,ee.pickBy=Y0,ee.property=nw,ee.propertyOf=kN,ee.pull=rL,ee.pullAll=T0,ee.pullAllBy=iL,ee.pullAllWith=oL,ee.pullAt=sL,ee.range=AN,ee.rangeRight=SN,ee.rearg=wO,ee.reject=aO,ee.remove=aL,ee.rest=xO,ee.reverse=cp,ee.sampleSize=cO,ee.set=_2,ee.setWith=$2,ee.shuffle=uO,ee.slice=lL,ee.sortBy=pO,ee.sortedUniq=gL,ee.sortedUniqBy=mL,ee.split=X2,ee.spread=CO,ee.tail=vL,ee.take=yL,ee.takeRight=bL,ee.takeRightWhile=wL,ee.takeWhile=xL,ee.tap=DL,ee.throttle=kO,ee.thru=ru,ee.toArray=U0,ee.toPairs=X0,ee.toPairsIn=Z0,ee.toPath=IN,ee.toPlainObject=q0,ee.transform=T2,ee.unary=AO,ee.union=CL,ee.unionBy=kL,ee.unionWith=AL,ee.uniq=SL,ee.uniqBy=_L,ee.uniqWith=$L,ee.unset=M2,ee.unzip=up,ee.unzipWith=M0,ee.update=I2,ee.updateWith=E2,ee.values=Ea,ee.valuesIn=R2,ee.without=TL,ee.words=ew,ee.wrap=SO,ee.xor=ML,ee.xorBy=IL,ee.xorWith=EL,ee.zip=RL,ee.zipObject=LL,ee.zipObjectDeep=OL,ee.zipWith=NL,ee.entries=X0,ee.entriesIn=Z0,ee.extend=K0,ee.extendWith=uu,wp(ee,ee),ee.add=RN,ee.attempt=tw,ee.camelCase=D2,ee.capitalize=Q0,ee.ceil=LN,ee.clamp=L2,ee.clone=$O,ee.cloneDeep=MO,ee.cloneDeepWith=IO,ee.cloneWith=TO,ee.conformsTo=EO,ee.deburr=J0,ee.defaultTo=hN,ee.divide=ON,ee.endsWith=F2,ee.eq=so,ee.escape=P2,ee.escapeRegExp=W2,ee.every=qL,ee.find=GL,ee.findIndex=A0,ee.findKey=a2,ee.findLast=YL,ee.findLastIndex=S0,ee.findLastKey=l2,ee.floor=NN,ee.forEach=E0,ee.forEachRight=R0,ee.forIn=c2,ee.forInRight=u2,ee.forOwn=h2,ee.forOwnRight=d2,ee.get=gp,ee.gt=RO,ee.gte=LO,ee.has=g2,ee.hasIn=mp,ee.head=$0,ee.identity=wi,ee.includes=eO,ee.indexOf=YR,ee.inRange=O2,ee.invoke=y2,ee.isArguments=Ys,ee.isArray=Ct,ee.isArrayBuffer=OO,ee.isArrayLike=yi,ee.isArrayLikeObject=Qn,ee.isBoolean=NO,ee.isBuffer=fs,ee.isDate=DO,ee.isElement=FO,ee.isEmpty=PO,ee.isEqual=WO,ee.isEqualWith=BO,ee.isError=pp,ee.isFinite=zO,ee.isFunction=jo,ee.isInteger=B0,ee.isLength=lu,ee.isMap=z0,ee.isMatch=HO,ee.isMatchWith=jO,ee.isNaN=UO,ee.isNative=VO,ee.isNil=KO,ee.isNull=qO,ee.isNumber=H0,ee.isObject=Fn,ee.isObjectLike=qn,ee.isPlainObject=Al,ee.isRegExp=fp,ee.isSafeInteger=GO,ee.isSet=j0,ee.isString=cu,ee.isSymbol=Ei,ee.isTypedArray=Ia,ee.isUndefined=YO,ee.isWeakMap=XO,ee.isWeakSet=ZO,ee.join=eL,ee.kebabCase=B2,ee.last=qi,ee.lastIndexOf=tL,ee.lowerCase=z2,ee.lowerFirst=H2,ee.lt=QO,ee.lte=JO,ee.max=DN,ee.maxBy=FN,ee.mean=PN,ee.meanBy=WN,ee.min=BN,ee.minBy=zN,ee.stubArray=Cp,ee.stubFalse=kp,ee.stubObject=_N,ee.stubString=$N,ee.stubTrue=TN,ee.multiply=HN,ee.nth=nL,ee.noConflict=yN,ee.noop=xp,ee.now=ou,ee.pad=j2,ee.padEnd=U2,ee.padStart=V2,ee.parseInt=q2,ee.random=N2,ee.reduce=oO,ee.reduceRight=sO,ee.repeat=K2,ee.replace=G2,ee.result=S2,ee.round=jN,ee.runInContext=fe,ee.sample=lO,ee.size=hO,ee.snakeCase=Y2,ee.some=dO,ee.sortedIndex=cL,ee.sortedIndexBy=uL,ee.sortedIndexOf=hL,ee.sortedLastIndex=dL,ee.sortedLastIndexBy=pL,ee.sortedLastIndexOf=fL,ee.startCase=Z2,ee.startsWith=Q2,ee.subtract=UN,ee.sum=VN,ee.sumBy=qN,ee.template=J2,ee.times=MN,ee.toFinite=Uo,ee.toInteger=Mt,ee.toLength=V0,ee.toLower=eN,ee.toNumber=Ki,ee.toSafeInteger=e2,ee.toString=sn,ee.toUpper=tN,ee.trim=nN,ee.trimEnd=rN,ee.trimStart=iN,ee.truncate=oN,ee.unescape=sN,ee.uniqueId=EN,ee.upperCase=aN,ee.upperFirst=vp,ee.each=E0,ee.eachRight=R0,ee.first=$0,wp(ee,function(){var o={};return Co(ee,function(v,M){cn.call(ee.prototype,M)||(o[M]=v)}),o}(),{chain:!1}),ee.VERSION=r,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),Mr(["drop","take"],function(o,v){Vt.prototype[o]=function(M){M=M===e?1:fr(Mt(M),0);var j=this.__filtered__&&!v?new Vt(this):this.clone();return j.__filtered__?j.__takeCount__=Br(M,j.__takeCount__):j.__views__.push({size:Br(M,J),type:o+(j.__dir__<0?"Right":"")}),j},Vt.prototype[o+"Right"]=function(M){return this.reverse()[o](M).reverse()}}),Mr(["filter","map","takeWhile"],function(o,v){var M=v+1,j=M==$||M==N;Vt.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:pt(G,3),type:M}),te.__filtered__=te.__filtered__||j,te}}),Mr(["head","last"],function(o,v){var M="take"+(v?"Right":"");Vt.prototype[o]=function(){return this[M](1).value()[0]}}),Mr(["initial","tail"],function(o,v){var M="drop"+(v?"":"Right");Vt.prototype[o]=function(){return this.__filtered__?new Vt(this):this[M](1)}}),Vt.prototype.compact=function(){return this.filter(wi)},Vt.prototype.find=function(o){return this.filter(o).head()},Vt.prototype.findLast=function(o){return this.reverse().find(o)},Vt.prototype.invokeMap=Dt(function(o,v){return typeof o=="function"?new Vt(this):this.map(function(M){return yl(M,o,v)})}),Vt.prototype.reject=function(o){return this.filter(au(pt(o)))},Vt.prototype.slice=function(o,v){o=Mt(o);var M=this;return M.__filtered__&&(o>0||v<0)?new Vt(M):(o<0?M=M.takeRight(-o):o&&(M=M.drop(o)),v!==e&&(v=Mt(v),M=v<0?M.dropRight(-v):M.take(v-o)),M)},Vt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Vt.prototype.toArray=function(){return this.take(J)},Co(Vt.prototype,function(o,v){var M=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),G=ee[j?"take"+(v=="last"?"Right":""):v],te=j||/^find/.test(v);G&&(ee.prototype[v]=function(){var ue=this.__wrapped__,pe=j?[1]:arguments,ye=ue instanceof Vt,Ee=pe[0],Re=ye||Ct(ue),De=function(Bt){var Kt=G.apply(ee,T([Bt],pe));return j&&Ge?Kt[0]:Kt};Re&&M&&typeof Ee=="function"&&Ee.length!=1&&(ye=Re=!1);var Ge=this.__chain__,nt=!!this.__actions__.length,ft=te&&!Ge,Et=ye&&!nt;if(!te&&Re){ue=Et?ue:new Vt(this);var gt=o.apply(ue,pe);return gt.__actions__.push({func:ru,args:[De],thisArg:e}),new ji(gt,Ge)}return ft&&Et?o.apply(this,pe):(gt=this.thru(De),ft?j?gt.value()[0]:gt.value():gt)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(o){var v=_r[o],M=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",j=/^(?:pop|shift)$/.test(o);ee.prototype[o]=function(){var G=arguments;if(j&&!this.__chain__){var te=this.value();return v.apply(Ct(te)?te:[],G)}return this[M](function(ue){return v.apply(Ct(ue)?ue:[],G)})}}),Co(Vt.prototype,function(o,v){var M=ee[v];if(M){var j=M.name+"";cn.call(Sa,j)||(Sa[j]=[]),Sa[j].push({name:v,func:M})}}),Sa[Xc(e,b).name]=[{name:"wrapper",func:e}],Vt.prototype.clone=sE,Vt.prototype.reverse=aE,Vt.prototype.value=lE,ee.prototype.at=FL,ee.prototype.chain=PL,ee.prototype.commit=WL,ee.prototype.next=BL,ee.prototype.plant=HL,ee.prototype.reverse=jL,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=UL,ee.prototype.first=ee.prototype.head,hl&&(ee.prototype[hl]=zL),ee},qt=or();rr?((rr.exports=qt)._=qt,Sn._=qt):hn._=qt}).call(Ck)}(Gl,Gl.exports)),Gl.exports}var Ak=kk();gr("O",El(Ak)).debounce(function(){this.rebuildDisplayText()},300);var Mg={exports:{}},Ig;function Sk(){return Ig||(Ig=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Mg)),Mg.exports}Sk();const _k=!0,sr="u-",$k="uplot",Tk=sr+"hz",Mk=sr+"vt",Ik=sr+"title",Ek=sr+"wrap",Rk=sr+"under",Lk=sr+"over",Ok=sr+"axis",Ss=sr+"off",Nk=sr+"select",Dk=sr+"cursor-x",Fk=sr+"cursor-y",Pk=sr+"cursor-pt",Wk=sr+"legend",Bk=sr+"live",zk=sr+"inline",Hk=sr+"series",jk=sr+"marker",Eg=sr+"label",Uk=sr+"value",Ua="width",Va="height",qa="top",Rg="bottom",oa="left",zu="right",Hu="#000",Lg=Hu+"0",ju="mousemove",Og="mousedown",Uu="mouseup",Ng="mouseenter",Dg="mouseleave",Fg="dblclick",Vk="resize",qk="scroll",Pg="change",Yl="dppxchange",Vu="--",sa=typeof window<"u",qu=sa?document:null,aa=sa?window:null,Kk=sa?navigator:null;let en,Xl;function Ku(){let n=devicePixelRatio;en!=n&&(en=n,Xl&&Xu(Pg,Xl,Ku),Xl=matchMedia(`(min-resolution: ${en-.001}dppx) and (max-resolution: ${en+.001}dppx)`),_s(Pg,Xl,Ku),aa.dispatchEvent(new CustomEvent(Yl)))}function xi(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Gu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function wn(n,t,e){n.style[t]=e+"px"}function Xi(n,t,e,r){let f=qu.createElement(n);return t!=null&&xi(f,t),e!=null&&e.insertBefore(f,r),f}function Oi(n,t){return Xi("div",n,t)}const Wg=new WeakMap;function uo(n,t,e,r,f){let g="translate("+t+"px,"+e+"px)",m=Wg.get(n);g!=m&&(n.style.transform=g,Wg.set(n,g),t<0||e<0||t>r||e>f?xi(n,Ss):Gu(n,Ss))}const Bg=new WeakMap;function zg(n,t,e){let r=t+e,f=Bg.get(n);r!=f&&(Bg.set(n,r),n.style.background=t,n.style.borderColor=e)}const Hg=new WeakMap;function jg(n,t,e,r){let f=t+""+e,g=Hg.get(n);f!=g&&(Hg.set(n,f),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=r?-t/2+"px":0,n.style.marginTop=r?-e/2+"px":0)}const Yu={passive:!0},Gk={...Yu,capture:!0};function _s(n,t,e,r){t.addEventListener(n,e,r?Gk:Yu)}function Xu(n,t,e,r){t.removeEventListener(n,e,Yu)}sa&&Ku();function Zi(n,t,e,r){let f;e=e||0,r=r||t.length-1;let g=r<=2147483647;for(;r-e>1;)f=g?e+r>>1:ki((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function Ug(n){return(t,e,r)=>{let f=-1,g=-1;for(let m=e;m<=r;m++)if(n(t[m])){f=m;break}for(let m=r;m>=e;m--)if(n(t[m])){g=m;break}return[f,g]}}const Vg=n=>n!=null,qg=n=>n!=null&&n>0,Zl=Ug(Vg),Yk=Ug(qg);function Xk(n,t,e,r=0,f=!1){let g=f?Yk:Zl,m=f?qg:Vg;[t,e]=g(n,t,e);let w=n[t],h=n[t];if(t>-1)if(r==1)w=n[t],h=n[e];else if(r==-1)w=n[e],h=n[t];else for(let d=t;d<=e;d++){let a=n[d];m(a)&&(a<w?w=a:a>h&&(h=a))}return[w??pn,h??-pn]}function Ql(n,t,e,r){let f=Yg(n),g=Yg(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let m=e==10?_o:Xg,w=f==1?ki:Ni,h=g==1?Ni:ki,d=w(m(ar(n))),a=h(m(ar(t))),l=la(e,d),u=la(e,a);return e==10&&(d<0&&(l=fn(l,-d)),a<0&&(u=fn(u,-a))),r||e==2?(n=l*f,t=u*g):(n=rm(n,l),t=tc(t,u)),[n,t]}function Zu(n,t,e,r){let f=Ql(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const Qu=.1,Kg={mode:3,pad:Qu},Ka={pad:0,soft:null,mode:0},Zk={min:Ka,max:Ka};function Jl(n,t,e,r){return nc(e)?Gg(n,t,e):(Ka.pad=e,Ka.soft=r?0:null,Ka.mode=r?3:0,Gg(n,t,Zk))}function Qt(n,t){return n??t}function Qk(n,t,e){for(t=Qt(t,0),e=Qt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Gg(n,t,e){let r=e.min,f=e.max,g=Qt(r.pad,0),m=Qt(f.pad,0),w=Qt(r.hard,-pn),h=Qt(f.hard,pn),d=Qt(r.soft,pn),a=Qt(f.soft,-pn),l=Qt(r.mode,0),u=Qt(f.mode,0),c=t-n,i=_o(c),s=Hr(ar(n),ar(t)),p=_o(s),b=ar(p-i);(c<1e-24||b>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&d!=pn&&(g=0),u==2&&a!=-pn&&(m=0)));let x=c||s||1e3,R=_o(x),_=la(10,ki(R)),k=x*(c==0?n==0?.1:1:g),C=fn(rm(n-k,_/10),24),L=n>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:pn,D=Hr(w,C<L&&n>=L?L:Qi(L,C)),E=x*(c==0?t==0?.1:1:m),I=fn(tc(t+E,_/10),24),z=t<=a&&(u==1||u==3&&I>=a||u==2&&I<=a)?a:-pn,P=Qi(h,I>z&&t<=z?z:Hr(z,I));return D==P&&D==0&&(P=100),[D,P]}const Jk=new Intl.NumberFormat(sa?Kk.language:"en-US"),Ju=n=>Jk.format(n),Ci=Math,ec=Ci.PI,ar=Ci.abs,ki=Ci.floor,lr=Ci.round,Ni=Ci.ceil,Qi=Ci.min,Hr=Ci.max,la=Ci.pow,Yg=Ci.sign,_o=Ci.log10,Xg=Ci.log2,eA=(n,t=1)=>Ci.sinh(n)*t,eh=(n,t=1)=>Ci.asinh(n/t),pn=1/0;function Zg(n){return(_o((n^n>>31)-(n>>31))|0)+1}function th(n,t,e){return Qi(Hr(n,t),e)}function Qg(n){return typeof n=="function"}function zt(n){return Qg(n)?n:()=>n}const tA=()=>{},Jg=n=>n,em=(n,t)=>t,nA=n=>null,tm=n=>!0,nm=(n,t)=>n==t,rA=/\.\d*?(?=9{6,}|0{6,})/gm,$s=n=>{if(om(n)||Xo.has(n))return n;const t=`${n}`,e=t.match(rA);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,g]=t.split("e");return+`${$s(f)}e${g}`}return fn(n,r)};function Ts(n,t){return $s(fn($s(n/t))*t)}function tc(n,t){return $s(Ni($s(n/t))*t)}function rm(n,t){return $s(ki($s(n/t))*t)}function fn(n,t=0){if(om(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return lr(r)/e}const Xo=new Map;function im(n){return((""+n).split(".")[1]||"").length}function Ga(n,t,e,r){let f=[],g=r.map(im);for(let m=t;m<e;m++){let w=ar(m),h=fn(la(n,m),w);for(let d=0;d<r.length;d++){let a=n==10?+`${r[d]}e${m}`:r[d]*h,l=(m>=0?0:w)+(m>=g[d]?0:g[d]),u=n==10?a:fn(a,l);f.push(u),Xo.set(u,l)}}return f}const Ya={},nh=[],ca=[null,null],Zo=Array.isArray,om=Number.isInteger,iA=n=>n===void 0;function sm(n){return typeof n=="string"}function nc(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function oA(n){return n!=null&&typeof n=="object"}const sA=Object.getPrototypeOf(Uint8Array),am="__proto__";function ua(n,t=nc){let e;if(Zo(n)){let r=n.find(f=>f!=null);if(Zo(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=ua(n[f],t)}else e=n.slice()}else if(n instanceof sA)e=n.slice();else if(t(n)){e={};for(let r in n)r!=am&&(e[r]=ua(n[r],t))}else e=n;return e}function tr(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=am&&(nc(n[f])?tr(n[f],ua(r[f])):n[f]=ua(r[f]))}return n}const aA=0,lA=1,cA=2;function uA(n,t,e){for(let r=0,f,g=-1;r<t.length;r++){let m=t[r];if(m>g){for(f=m-1;f>=0&&n[f]==null;)n[f--]=null;for(f=m+1;f<e&&n[f]==null;)n[g=f++]=null}}}function hA(n,t){if(fA(n)){let m=n[0].slice();for(let w=1;w<n.length;w++)m.push(...n[w].slice(1));return gA(m[0])||(m=pA(m)),m}let e=new Set;for(let m=0;m<n.length;m++){let w=n[m][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((m,w)=>m-w)],f=r[0].length,g=new Map;for(let m=0;m<f;m++)g.set(r[0][m],m);for(let m=0;m<n.length;m++){let w=n[m],h=w[0];for(let d=1;d<w.length;d++){let a=w[d],l=Array(f).fill(void 0),u=t?t[m][d]:lA,c=[];for(let i=0;i<a.length;i++){let s=a[i],p=g.get(h[i]);s===null?u!=aA&&(l[p]=s,u==cA&&c.push(p)):l[p]=s}uA(l,c,f),r.push(l)}}return r}const dA=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function pA(n){let t=n[0],e=t.length,r=Array(e);for(let g=0;g<r.length;g++)r[g]=g;r.sort((g,m)=>t[g]-t[m]);let f=[];for(let g=0;g<n.length;g++){let m=n[g],w=Array(e);for(let h=0;h<e;h++)w[h]=m[r[h]];f.push(w)}return f}function fA(n){let t=n[0][0],e=t.length;for(let r=1;r<n.length;r++){let f=n[r][0];if(f.length!=e)return!1;if(f!=t){for(let g=0;g<e;g++)if(f[g]!=t[g])return!1}}return!0}function gA(n,t=100){const e=n.length;if(e<=1)return!0;let r=0,f=e-1;for(;r<=f&&n[r]==null;)r++;for(;f>=r&&n[f]==null;)f--;if(f<=r)return!0;const g=Hr(1,ki((f-r+1)/t));for(let m=n[r],w=r+g;w<=f;w+=g){const h=n[w];if(h!=null){if(h<=m)return!1;m=h}}return!0}const lm=["January","February","March","April","May","June","July","August","September","October","November","December"],cm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function um(n){return n.slice(0,3)}const mA=cm.map(um),vA=lm.map(um),yA={MMMM:lm,MMM:vA,WWWW:cm,WWW:mA};function Xa(n){return(n<10?"0":"")+n}function bA(n){return(n<10?"00":n<100?"0":"")+n}const wA={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=>Xa(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Xa(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Xa(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=>Xa(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Xa(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>bA(n.getMilliseconds())};function rh(n,t){t=t||yA;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?wA[f[1]]:f[0]);return g=>{let m="";for(let w=0;w<e.length;w++)m+=typeof e[w]=="string"?e[w]:e[w](g,t);return m}}const xA=new Intl.DateTimeFormat().resolvedOptions().timeZone;function CA(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==xA?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const hm=n=>n%1==0,rc=[1,2,2.5,5],kA=Ga(10,-32,0,rc),dm=Ga(10,0,32,rc),AA=dm.filter(hm),Ms=kA.concat(dm),ih=`
|
|
1489
|
-
`,pm="{YYYY}",fm=ih+pm,gm="{M}/{D}",Za=ih+gm,ic=Za+"/{YY}",mm="{aa}",SA="{h}:{mm}",ha=SA+mm,vm=ih+ha,ym=":{ss}",on=null;function bm(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,g=f*30,m=f*365,w=(n==1?Ga(10,0,3,rc).filter(hm):Ga(10,-3,0,rc)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,f,f*2,f*3,f*4,f*5,f*6,f*7,f*8,f*9,f*10,f*15,g,g*2,g*3,g*4,g*6,m,m*2,m*5,m*10,m*25,m*50,m*100]);const h=[[m,pm,on,on,on,on,on,on,1],[f*28,"{MMM}",fm,on,on,on,on,on,1],[f,gm,fm,on,on,on,on,on,1],[r,"{h}"+mm,ic,on,Za,on,on,on,1],[e,ha,ic,on,Za,on,on,on,1],[t,ym,ic+" "+ha,on,Za+" "+ha,on,vm,on,1],[n,ym+".{fff}",ic+" "+ha,on,Za+" "+ha,on,vm,on,1]];function d(a){return(l,u,c,i,s,p)=>{let b=[],x=s>=m,R=s>=g&&s<m,_=a(c),k=fn(_*n,3),C=oh(_.getFullYear(),x?0:_.getMonth(),R||x?1:_.getDate()),L=fn(C*n,3);if(R||x){let D=R?s/g:0,E=x?s/m:0,I=k==L?k:fn(oh(C.getFullYear()+E,C.getMonth()+D,1)*n,3),z=new Date(lr(I/n)),P=z.getFullYear(),O=z.getMonth();for(let $=0;I<=i;$++){let A=oh(P+E*$,O+D*$,1),N=A-a(fn(A*n,3));I=fn((+A+N)*n,3),I<=i&&b.push(I)}}else{let D=s>=f?f:s,E=ki(c)-ki(k),I=L+E+tc(k-L,D);b.push(I);let z=a(I),P=z.getHours()+z.getMinutes()/e+z.getSeconds()/r,O=s/r,$=l.axes[u]._space,A=p/$;for(;I=fn(I+s,n==1?0:3),!(I>i);)if(O>1){let N=ki(fn(P+O,6))%24,B=a(I).getHours()-N;B>1&&(B=-1),I-=B*r,P=(P+O)%24;let U=b[b.length-1];fn((I-U)/s,3)*A>=.7&&b.push(I)}else b.push(I)}return b}}return[w,h,d]}const[_A,$A,TA]=bm(1),[MA,IA,EA]=bm(.001);Ga(2,-53,53,[1]);function wm(n,t){return n.map(e=>e.map((r,f)=>f==0||f==8||r==null?r:t(f==1||e[8]==0?r:e[1]+r)))}function xm(n,t){return(e,r,f,g,m)=>{let w=t.find(i=>m>=i[0])||t[t.length-1],h,d,a,l,u,c;return r.map(i=>{let s=n(i),p=s.getFullYear(),b=s.getMonth(),x=s.getDate(),R=s.getHours(),_=s.getMinutes(),k=s.getSeconds(),C=p!=h&&w[2]||b!=d&&w[3]||x!=a&&w[4]||R!=l&&w[5]||_!=u&&w[6]||k!=c&&w[7]||w[1];return h=p,d=b,a=x,l=R,u=_,c=k,C(s)})}}function RA(n,t){let e=rh(t);return(r,f,g,m,w)=>f.map(h=>e(n(h)))}function oh(n,t,e){return new Date(n,t,e)}function Cm(n,t){return t(n)}const LA="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function km(n,t){return(e,r,f,g)=>g==null?Vu:t(n(r))}function OA(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function NA(n,t){return n.series[t].fill(n,t)}const DA={show:!0,live:!0,isolate:!1,mount:tA,markers:{show:!0,width:2,stroke:OA,fill:NA,dash:"solid"},idx:null,idxs:null,values:[]};function FA(n,t){let e=n.cursor.points,r=Oi(),f=e.size(n,t);wn(r,Ua,f),wn(r,Va,f);let g=f/-2;wn(r,"marginLeft",g),wn(r,"marginTop",g);let m=e.width(n,t,f);return m&&wn(r,"borderWidth",m),r}function PA(n,t){let e=n.series[t].points;return e._fill||e._stroke}function WA(n,t){let e=n.series[t].points;return e._stroke||e._fill}function BA(n,t){return n.series[t].points.size}const sh=[0,0];function zA(n,t,e){return sh[0]=t,sh[1]=e,sh}function oc(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function ah(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const HA={show:!0,x:!0,y:!0,lock:!1,move:zA,points:{one:!1,show:FA,size:BA,width:0,stroke:WA,fill:PA},bind:{mousedown:oc,mouseup:oc,click:oc,dblclick:oc,mousemove:ah,mouseleave:ah,mouseenter:ah},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,r,f)=>r-f,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Am={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},lh=tr({},Am,{filter:em}),Sm=tr({},lh,{size:10}),_m=tr({},Am,{show:!1}),ch='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"',$m="bold "+ch,Tm=1.5,Mm={show:!0,scale:"x",stroke:Hu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:$m,side:2,grid:lh,ticks:Sm,border:_m,font:ch,lineGap:Tm,rotate:0},jA="Value",UA="Time",Im={show:!0,scale:"x",auto:!1,sorted:1,min:pn,max:-pn,idxs:[]};function VA(n,t,e,r,f){return t.map(g=>g==null?"":Ju(g))}function qA(n,t,e,r,f,g,m){let w=[],h=Xo.get(f)||0;e=m?e:fn(tc(e,f),h);for(let d=e;d<=r;d=fn(d+f,h))w.push(Object.is(d,-0)?0:d);return w}function uh(n,t,e,r,f,g,m){const w=[],h=n.scales[n.axes[t].scale].log,d=h==10?_o:Xg,a=ki(d(e));f=la(h,a),h==10&&(f=Ms[Zi(f,Ms)]);let l=e,u=f*h;h==10&&(u=Ms[Zi(u,Ms)]);do w.push(l),l=l+f,h==10&&!Xo.has(l)&&(l=fn(l,Xo.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=Ms[Zi(u,Ms)]));while(l<=r);return w}function KA(n,t,e,r,f,g,m){let w=n.scales[n.axes[t].scale].asinh,h=r>w?uh(n,t,Hr(w,e),r,f):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?uh(n,t,Hr(w,-r),-e,f):[w]).reverse().map(a=>-a).concat(d,h)}const Em=/./,GA=/[12357]/,YA=/[125]/,Rm=/1/,hh=(n,t,e,r)=>n.map((f,g)=>t==4&&f==0||g%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function XA(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=n.scales[m],h=n.valToPos,d=g._space,a=h(10,m),l=h(9,m)-a>=d?Em:h(7,m)-a>=d?GA:h(5,m)-a>=d?YA:Rm;if(l==Rm){let u=ar(h(1,m)-a);if(u<d)return hh(t.slice().reverse(),w.distr,l,Ni(d/u)).reverse()}return hh(t,w.distr,l,1)}function ZA(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=g._space,h=n.valToPos,d=ar(h(1,m)-h(2,m));return d<w?hh(t.slice().reverse(),3,Em,Ni(w/d)).reverse():t}function QA(n,t,e,r){return r==null?Vu:t==null?"":Ju(t)}const Lm={show:!0,scale:"y",stroke:Hu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:$m,side:3,grid:lh,ticks:Sm,border:_m,font:ch,lineGap:Tm,rotate:0};function JA(n,t){let e=3+(n||1)*2;return fn(e*t,3)}function eS(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],g=n.valToPos(f[r[0]],e,!0),m=n.valToPos(f[r[1]],e,!0),w=ar(m-g),h=n.series[t],d=w/(h.points.space*en);return r[1]-r[0]<=d}const Om={scale:null,auto:!0,sorted:0,min:pn,max:-pn},Nm=(n,t,e,r,f)=>f,Dm={show:!0,auto:!0,sorted:0,gaps:Nm,alpha:1,facets:[tr({},Om,{scale:"x"}),tr({},Om,{scale:"y"})]},Fm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Nm,alpha:1,points:{show:eS,filter:null},values:null,min:pn,max:-pn,idxs:[],path:null,clip:null};function tS(n,t,e,r,f){return e/10}const Pm={time:_k,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},nS=tr({},Pm,{time:!1,ori:1}),Wm={};function Bm(n,t){let e=Wm[n];return e||(e={key:n,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(f=>f!=r)},pub(r,f,g,m,w,h,d){for(let a=0;a<e.plots.length;a++)e.plots[a]!=f&&e.plots[a].pub(r,f,g,m,w,h,d)}},n!=null&&(Wm[n]=e)),e}const da=1,dh=2;function Is(n,t,e){const r=n.mode,f=n.series[t],g=r==2?n._data[t]:n._data,m=n.scales,w=n.bbox;let h=g[0],d=r==2?g[1]:g[t],a=r==2?m[f.facets[0].scale]:m[n.series[0].scale],l=r==2?m[f.facets[1].scale]:m[f.scale],u=w.left,c=w.top,i=w.width,s=w.height,p=n.valToPosH,b=n.valToPosV;return a.ori==0?e(f,h,d,a,l,p,b,u,c,i,s,ac,pa,cc,jm,Vm):e(f,h,d,a,l,b,p,c,u,s,i,lc,fa,gh,Um,qm)}function ph(n,t){let e=0,r=0,f=Qt(n.bands,nh);for(let g=0;g<f.length;g++){let m=f[g];m.series[0]==t?e=m.dir:m.series[1]==t&&(m.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function rS(n,t,e,r,f){let g=n.mode,m=n.series[t],w=g==2?m.facets[1].scale:m.scale,h=n.scales[w];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function $o(n,t,e,r,f,g){return Is(n,t,(m,w,h,d,a,l,u,c,i,s,p)=>{let b=m.pxRound;const x=d.dir*(d.ori==0?1:-1),R=d.ori==0?pa:fa;let _,k;x==1?(_=e,k=r):(_=r,k=e);let C=b(l(w[_],d,s,c)),L=b(u(h[_],a,p,i)),D=b(l(w[k],d,s,c)),E=b(u(g==1?a.max:a.min,a,p,i)),I=new Path2D(f);return R(I,D,E),R(I,C,E),R(I,C,L),I})}function sc(n,t,e,r,f,g){let m=null;if(n.length>0){m=new Path2D;const w=t==0?cc:gh;let h=e;for(let l=0;l<n.length;l++){let u=n[l];if(u[1]>u[0]){let c=u[0]-h;c>0&&w(m,h,r,c,r+g),h=u[1]}}let d=e+f-h,a=10;d>0&&w(m,h,r-a/2,d,r+g+a)}return m}function iS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function fh(n,t,e,r,f,g,m){let w=[],h=n.length;for(let d=f==1?e:r;d>=e&&d<=r;d+=f)if(t[d]===null){let a=d,l=d;if(f==1)for(;++d<=r&&t[d]===null;)l=d;else for(;--d>=e&&t[d]===null;)l=d;let u=g(n[a]),c=l==a?u:g(n[l]),i=a-f;u=m<=0&&i>=0&&i<h?g(n[i]):u;let s=l+f;c=m>=0&&s>=0&&s<h?g(n[s]):c,c>=u&&w.push([u,c])}return w}function zm(n){return n==0?Jg:n==1?lr:t=>Ts(t,n)}function Hm(n){let t=n==0?ac:lc,e=n==0?(f,g,m,w,h,d)=>{f.arcTo(g,m,w,h,d)}:(f,g,m,w,h,d)=>{f.arcTo(m,g,h,w,d)},r=n==0?(f,g,m,w,h)=>{f.rect(g,m,w,h)}:(f,g,m,w,h)=>{f.rect(m,g,h,w)};return(f,g,m,w,h,d=0,a=0)=>{d==0&&a==0?r(f,g,m,w,h):(d=Qi(d,w/2,h/2),a=Qi(a,w/2,h/2),t(f,g+d,m),e(f,g+w,m,g+w,m+h,d),e(f,g+w,m+h,g,m+h,a),e(f,g,m+h,g,m,a),e(f,g,m,g+w,m,d),f.closePath())}}const ac=(n,t,e)=>{n.moveTo(t,e)},lc=(n,t,e)=>{n.moveTo(e,t)},pa=(n,t,e)=>{n.lineTo(t,e)},fa=(n,t,e)=>{n.lineTo(e,t)},cc=Hm(0),gh=Hm(1),jm=(n,t,e,r,f,g)=>{n.arc(t,e,r,f,g)},Um=(n,t,e,r,f,g)=>{n.arc(e,t,r,f,g)},Vm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(t,e,r,f,g,m)},qm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(e,t,f,r,m,g)};function Km(n){return(t,e,r,f,g)=>Is(t,e,(m,w,h,d,a,l,u,c,i,s,p)=>{let{pxRound:b,points:x}=m,R,_;d.ori==0?(R=ac,_=jm):(R=lc,_=Um);const k=fn(x.width*en,3);let C=(x.size-x.width)/2*en,L=fn(C*2,3),D=new Path2D,E=new Path2D,{left:I,top:z,width:P,height:O}=t.bbox;cc(E,I-L,z-L,P+L*2,O+L*2);const $=A=>{if(h[A]!=null){let N=b(l(w[A],d,s,c)),B=b(u(h[A],a,p,i));R(D,N+C,B),_(D,N,B,C,0,ec*2)}};if(g)g.forEach($);else for(let A=r;A<=f;A++)$(A);return{stroke:k>0?D:null,fill:D,clip:E,flags:da|dh}})}function Gm(n){return(t,e,r,f,g,m)=>{r!=f&&(g!=r&&m!=r&&n(t,e,r),g!=f&&m!=f&&n(t,e,f),n(t,e,m))}}const oS=Gm(pa),sS=Gm(fa);function Ym(n){const t=Qt(n==null?void 0:n.alignGaps,0);return(e,r,f,g)=>Is(e,r,(m,w,h,d,a,l,u,c,i,s,p)=>{[f,g]=Zl(h,f,g);let b=m.pxRound,x=P=>b(l(P,d,s,c)),R=P=>b(u(P,a,p,i)),_,k;d.ori==0?(_=pa,k=oS):(_=fa,k=sS);const C=d.dir*(d.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:da},D=L.stroke;let E=!1;if(g-f>=s*4){let P=he=>e.posToVal(he,d.key,!0),O=null,$=null,A,N,B,U=x(w[C==1?f:g]),K=x(w[f]),Q=x(w[g]),J=P(C==1?K+1:Q-1);for(let he=C==1?f:g;he>=f&&he<=g;he+=C){let ne=w[he],le=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];le==U?se!=null?(N=se,O==null?(_(D,le,R(N)),A=O=$=N):N<O?O=N:N>$&&($=N)):se===null&&(E=!0):(O!=null&&k(D,U,R(O),R($),R(A),R(N)),se!=null?(N=se,_(D,le,R(N)),O=$=A=N):(O=$=null,se===null&&(E=!0)),U=le,J=P(U+C))}O!=null&&O!=$&&B!=U&&k(D,U,R(O),R($),R(A),R(N))}else for(let P=C==1?f:g;P>=f&&P<=g;P+=C){let O=h[P];O===null?E=!0:O!=null&&_(D,x(w[P]),R(O))}let[I,z]=ph(e,r);if(m.fill!=null||I!=0){let P=L.fill=new Path2D(D),O=m.fillTo(e,r,m.min,m.max,I),$=R(O),A=x(w[f]),N=x(w[g]);C==-1&&([N,A]=[A,N]),_(P,N,$),_(P,A,$)}if(!m.spanGaps){let P=[];E&&P.push(...fh(w,h,f,g,C,x,t)),L.gaps=P=m.gaps(e,r,f,g,P),L.clip=sc(P,d.ori,c,i,s,p)}return z!=0&&(L.band=z==2?[$o(e,r,f,g,D,-1),$o(e,r,f,g,D,1)]:$o(e,r,f,g,D,z)),L})}function aS(n){const t=Qt(n.align,1),e=Qt(n.ascDesc,!1),r=Qt(n.alignGaps,0),f=Qt(n.extend,!1);return(g,m,w,h)=>Is(g,m,(d,a,l,u,c,i,s,p,b,x,R)=>{[w,h]=Zl(l,w,h);let _=d.pxRound,{left:k,width:C}=g.bbox,L=Q=>_(i(Q,u,x,p)),D=Q=>_(s(Q,c,R,b)),E=u.ori==0?pa:fa;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:da},z=I.stroke,P=u.dir*(u.ori==0?1:-1);let O=D(l[P==1?w:h]),$=L(a[P==1?w:h]),A=$,N=$;f&&t==-1&&(N=k,E(z,N,O)),E(z,$,O);for(let Q=P==1?w:h;Q>=w&&Q<=h;Q+=P){let J=l[Q];if(J==null)continue;let he=L(a[Q]),ne=D(J);t==1?E(z,he,O):E(z,A,ne),E(z,he,ne),O=ne,A=he}let B=A;f&&t==1&&(B=k+C,E(z,B,O));let[U,K]=ph(g,m);if(d.fill!=null||U!=0){let Q=I.fill=new Path2D(z),J=d.fillTo(g,m,d.min,d.max,U),he=D(J);E(Q,B,he),E(Q,N,he)}if(!d.spanGaps){let Q=[];Q.push(...fh(a,l,w,h,P,L,r));let J=d.width*en/2,he=e||t==1?J:-J,ne=e||t==-1?-J:J;Q.forEach(le=>{le[0]+=he,le[1]+=ne}),I.gaps=Q=d.gaps(g,m,w,h,Q),I.clip=sc(Q,u.ori,p,b,x,R)}return K!=0&&(I.band=K==2?[$o(g,m,w,h,z,-1),$o(g,m,w,h,z,1)]:$o(g,m,w,h,z,K)),I})}function Xm(n,t,e,r,f,g,m=pn){if(n.length>1){let w=null;for(let h=0,d=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let a=ar(n[h]-n[w]);a<d&&(d=a,m=ar(e(n[h],r,f,g)-e(n[w],r,f,g)))}w=h}}return m}function lS(n){n=n||Ya;const t=Qt(n.size,[.6,pn,1]),e=n.align||0,r=n.gap||0;let f=n.radius;f=f==null?[0,0]:typeof f=="number"?[f,0]:f;const g=zt(f),m=1-t[0],w=Qt(t[1],pn),h=Qt(t[2],1),d=Qt(n.disp,Ya),a=Qt(n.each,c=>{}),{fill:l,stroke:u}=d;return(c,i,s,p)=>Is(c,i,(b,x,R,_,k,C,L,D,E,I,z)=>{let P=b.pxRound,O=e,$=r*en,A=w*en,N=h*en,B,U;_.ori==0?[B,U]=g(c,i):[U,B]=g(c,i);const K=_.dir*(_.ori==0?1:-1);let Q=_.ori==0?cc:gh,J=_.ori==0?a:(je,Lt,Ht,$n,yr,cr,gn)=>{a(je,Lt,Ht,yr,$n,gn,cr)},he=Qt(c.bands,nh).find(je=>je.series[0]==i),ne=he!=null?he.dir:0,le=b.fillTo(c,i,b.min,b.max,ne),se=P(L(le,k,z,E)),de,me,_e,Te=I,Me=P(b.width*en),Xe=!1,Ke=null,at=null,et=null,lt=null;l!=null&&(Me==0||u!=null)&&(Xe=!0,Ke=l.values(c,i,s,p),at=new Map,new Set(Ke).forEach(je=>{je!=null&&at.set(je,new Path2D)}),Me>0&&(et=u.values(c,i,s,p),lt=new Map,new Set(et).forEach(je=>{je!=null&<.set(je,new Path2D)})));let{x0:Xt,size:xn}=d;if(Xt!=null&&xn!=null){O=1,x=Xt.values(c,i,s,p),Xt.unit==2&&(x=x.map(Lt=>c.posToVal(D+Lt*I,_.key,!0)));let je=xn.values(c,i,s,p);xn.unit==2?me=je[0]*I:me=C(je[0],_,I,D)-C(0,_,I,D),Te=Xm(x,R,C,_,I,D,Te),_e=Te-me+$}else Te=Xm(x,R,C,_,I,D,Te),_e=Te*m+$,me=Te-_e;_e<1&&(_e=0),Me>=me/2&&(Me=0),_e<5&&(P=Jg);let Wt=_e>0,vr=Te-_e-(Wt?Me:0);me=P(th(vr,N,A)),de=(O==0?me/2:O==K?0:me)-O*K*((O==0?$/2:0)+(Wt?Me/2:0));const un={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},On=Xe?null:new Path2D;let Xn=null;if(he!=null)Xn=c.data[he.series[1]];else{let{y0:je,y1:Lt}=d;je!=null&&Lt!=null&&(R=Lt.values(c,i,s,p),Xn=je.values(c,i,s,p))}let Tr=B*me,mt=U*me;for(let je=K==1?s:p;je>=s&&je<=p;je+=K){let Lt=R[je];if(Lt==null)continue;if(Xn!=null){let Gt=Xn[je]??0;if(Lt-Gt==0)continue;se=L(Gt,k,z,E)}let Ht=_.distr!=2||d!=null?x[je]:je,$n=C(Ht,_,I,D),yr=L(Qt(Lt,le),k,z,E),cr=P($n-de),gn=P(Hr(yr,se)),Wn=P(Qi(yr,se)),Nn=gn-Wn;if(Lt!=null){let Gt=Lt<0?mt:Tr,ln=Lt<0?Tr:mt;Xe?(Me>0&&et[je]!=null&&Q(lt.get(et[je]),cr,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln),Ke[je]!=null&&Q(at.get(Ke[je]),cr,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln)):Q(On,cr,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln),J(c,i,je,cr-Me/2,Wn,me+Me,Nn)}}return Me>0?un.stroke=Xe?lt:On:Xe||(un._fill=b.width==0?b._fill:b._stroke??b._fill,un.width=0),un.fill=Xe?at:On,un})}function cS(n,t){const e=Qt(t==null?void 0:t.alignGaps,0);return(r,f,g,m)=>Is(r,f,(w,h,d,a,l,u,c,i,s,p,b)=>{[g,m]=Zl(d,g,m);let x=w.pxRound,R=B=>x(u(B,a,p,i)),_=B=>x(c(B,l,b,s)),k,C,L;a.ori==0?(k=ac,L=pa,C=Vm):(k=lc,L=fa,C=qm);const D=a.dir*(a.ori==0?1:-1);let E=R(h[D==1?g:m]),I=E,z=[],P=[];for(let B=D==1?g:m;B>=g&&B<=m;B+=D)if(d[B]!=null){let U=h[B],K=R(U);z.push(I=K),P.push(_(d[B]))}const O={stroke:n(z,P,k,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:da},$=O.stroke;let[A,N]=ph(r,f);if(w.fill!=null||A!=0){let B=O.fill=new Path2D($),U=w.fillTo(r,f,w.min,w.max,A),K=_(U);L(B,I,K),L(B,E,K)}if(!w.spanGaps){let B=[];B.push(...fh(h,d,g,m,D,R,e)),O.gaps=B=w.gaps(r,f,g,m,B),O.clip=sc(B,a.ori,i,s,p,b)}return N!=0&&(O.band=N==2?[$o(r,f,g,m,$,-1),$o(r,f,g,m,$,1)]:$o(r,f,g,m,$,N)),O})}function uS(n){return cS(hS,n)}function hS(n,t,e,r,f,g){const m=n.length;if(m<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),m==2)r(w,n[1],t[1]);else{let h=Array(m),d=Array(m-1),a=Array(m-1),l=Array(m-1);for(let u=0;u<m-1;u++)a[u]=t[u+1]-t[u],l[u]=n[u+1]-n[u],d[u]=a[u]/l[u];h[0]=d[0];for(let u=1;u<m-1;u++)d[u]===0||d[u-1]===0||d[u-1]>0!=d[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/d[u-1]+(l[u]+2*l[u-1])/d[u]),isFinite(h[u])||(h[u]=0));h[m-1]=d[m-2];for(let u=0;u<m-1;u++)f(w,n[u]+l[u]/3,t[u]+h[u]*l[u]/3,n[u+1]-l[u]/3,t[u+1]-h[u+1]*l[u]/3,n[u+1],t[u+1])}return w}const mh=new Set;function Zm(){for(let n of mh)n.syncRect(!0)}sa&&(_s(Vk,aa,Zm),_s(qk,aa,Zm,!0),_s(Yl,aa,()=>{Or.pxRatio=en}));const dS=Ym(),pS=Km();function Qm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,g)=>vh(f,g,t,e))}function fS(n,t){return n.map((e,r)=>r==0?{}:tr({},t,e))}function vh(n,t,e,r){return tr({},t==0?e:r,n)}function Jm(n,t,e){return t==null?ca:[t,e]}const gS=Jm;function mS(n,t,e){return t==null?ca:Jl(t,e,Qu,!0)}function ev(n,t,e,r){return t==null?ca:Ql(t,e,n.scales[r].log,!1)}const vS=ev;function tv(n,t,e,r){return t==null?ca:Zu(t,e,n.scales[r].log,!1)}const yS=tv;function bS(n,t,e,r,f){let g=Hr(Zg(n),Zg(t)),m=t-n,w=Zi(f/r*m,e);do{let h=e[w],d=r*h/m;if(d>=f&&g+(h<5?Xo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function nv(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=lr((e=+f)*en))+"px"),[n,t,e]}function wS(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=fn(t[2]*en,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Or(n,t,e){const r={mode:Qt(n.mode,1)},f=r.mode;function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function m(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function w(V,X,ie,oe){return X.ori==0?g(V,X,ie,oe):m(V,X,ie,oe)}r.valToPosH=g,r.valToPosV=m;let h=!1;r.status=0;const d=r.root=Oi($k);if(n.id!=null&&(d.id=n.id),xi(d,n.class),n.title){let V=Oi(Ik,d);V.textContent=n.title}const a=Xi("canvas"),l=r.ctx=a.getContext("2d"),u=Oi(Ek,d);_s("click",u,V=>{V.target===i&&(rn!=Pi||Ut!=xo)&&Hn.click(r,V)},!0);const c=r.under=Oi(Rk,u);u.appendChild(a);const i=r.over=Oi(Lk,u);n=ua(n);const s=+Qt(n.pxAlign,1),p=zm(s);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const b=n.ms||.001,x=r.series=f==1?Qm(n.series||[],Im,Fm,!1):fS(n.series||[null],Dm),R=r.axes=Qm(n.axes||[],Mm,Lm,!0),_=r.scales={},k=r.bands=n.bands||[];k.forEach(V=>{V.fill=zt(V.fill||null),V.dir=Qt(V.dir,-1)});const C=f==2?x[1].facets[0].scale:x[0].scale,L={axes:Eo,series:ba},D=(n.drawOrder||["axes","series"]).map(V=>L[V]);function E(V){const X=V.distr==3?ie=>_o(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>eh(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ie=xe-ge;return(oe-ge)/Ie}}function I(V){let X=_[V];if(X==null){let ie=(n.scales||Ya)[V]||Ya;if(ie.from!=null){I(ie.from);let oe=tr({},_[ie.from],ie,{key:V});oe.valToPct=E(oe),_[V]=oe}else{X=_[V]=tr({},V==C?Pm:nS,ie),X.key=V;let oe=X.time,ge=X.range,xe=Zo(ge);if((V!=C||f==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Kg:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Kg:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&nc(ge))){let Ie=ge;ge=(Pe,Be,qe)=>Be==null?ca:Jl(Be,qe,Ie)}X.range=zt(ge||(oe?gS:V==C?X.distr==3?vS:X.distr==4?yS:Jm:X.distr==3?ev:X.distr==4?tv:mS)),X.auto=zt(xe?!1:X.auto),X.clamp=zt(X.clamp||tS),X._min=X._max=null,X.valToPct=E(X)}}}I("x"),I("y"),f==1&&x.forEach(V=>{I(V.scale)}),R.forEach(V=>{I(V.scale)});for(let V in n.scales)I(V);const z=_[C],P=z.distr;let O,$;z.ori==0?(xi(d,Tk),O=g,$=m):(xi(d,Mk),O=m,$=g);const A={};for(let V in _){let X=_[V];(X.min!=null||X.max!=null)&&(A[V]={min:X.min,max:X.max},X.min=X.max=null)}const N=n.tzDate||(V=>new Date(lr(V/b))),B=n.fmtDate||rh,U=b==1?TA(N):EA(N),K=xm(N,wm(b==1?$A:IA,B)),Q=km(N,Cm(LA,B)),J=[],he=r.legend=tr({},DA,n.legend),ne=r.cursor=tr({},HA,{drag:{y:f==2}},n.cursor),le=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=zt(de.width),de.dash=zt(de.dash),de.stroke=zt(de.stroke),de.fill=zt(de.fill);let me,_e,Te,Me=[],Xe=[],Ke,at=!1,et={};if(he.live){const V=x[1]?x[1].values:null;at=V!=null,Ke=at?V(r,1,0):{_:0};for(let X in Ke)et[X]=Vu}if(le)if(me=Xi("table",Wk,d),Te=Xi("tbody",null,me),he.mount(r,me),at){_e=Xi("thead",null,me,Te);let V=Xi("tr",null,_e);Xi("th",null,V);for(var lt in Ke)Xi("th",Eg,V).textContent=lt}else xi(me,zk),he.live&&xi(me,Bk);const Xt={show:!0},xn={show:!1};function Wt(V,X){if(X==0&&(at||!he.live||f==2))return ca;let ie=[],oe=Xi("tr",Hk,Te,Te.childNodes[X]);xi(oe,V.class),V.show||xi(oe,Ss);let ge=Xi("th",null,oe);if(de.show){let Pe=Oi(jk,ge);if(X>0){let Be=de.width(r,X);Be&&(Pe.style.border=Be+"px "+de.dash(r,X)+" "+de.stroke(r,X)),Pe.style.background=de.fill(r,X)}}let xe=Oi(Eg,ge);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,X>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,X):de.fill(r,X)),un("click",ge,Pe=>{if(ne._lock)return;di(Pe);let Be=x.indexOf(V);if((Pe.ctrlKey||Pe.metaKey)!=he.isolate){let qe=x.some((Ye,Qe)=>Qe>0&&Qe!=Be&&Ye.show);x.forEach((Ye,Qe)=>{Qe>0&&Qr(Qe,qe?Qe==Be?Xt:xn:Xt,!0,ct.setSeries)})}else Qr(Be,{show:!V.show},!0,ct.setSeries)},!1),pi&&un(Ng,ge,Pe=>{ne._lock||(di(Pe),Qr(x.indexOf(V),zi,!0,ct.setSeries))},!1));for(var Ie in Ke){let Pe=Xi("td",Uk,oe);Pe.textContent="--",ie.push(Pe)}return[oe,ie]}const vr=new Map;function un(V,X,ie,oe=!0){const ge=vr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&(_s(V,X,ge[V]=xe),vr.set(X,ge))}function On(V,X,ie){const oe=vr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Xu(ge,X,oe[ge]),delete oe[ge]);V==null&&vr.delete(X)}let Xn=0,Tr=0,mt=0,je=0,Lt=0,Ht=0,$n=Lt,yr=Ht,cr=mt,gn=je,Wn=0,Nn=0,Gt=0,ln=0;r.bbox={};let Dr=!1,Kr=!1,Gr=!1,Ai=!1,ci=!1,Bn=!1;function to(V,X,ie){(ie||V!=r.width||X!=r.height)&&ui(V,X),io(!1),Gr=!0,Kr=!0,wo()}function ui(V,X){r.width=Xn=mt=V,r.height=Tr=je=X,Lt=Ht=0,hi(),Qo();let ie=r.bbox;Wn=ie.left=Ts(Lt*en,.5),Nn=ie.top=Ts(Ht*en,.5),Gt=ie.width=Ts(mt*en,.5),ln=ie.height=Ts(je*en,.5)}const Os=3;function Yr(){let V=!1,X=0;for(;!V;){X++;let ie=wa(X),oe=ul(X);V=X==Os||ie&&oe,V||(ui(r.width,r.height),Kr=!0)}}function Cn({width:V,height:X}){to(V,X)}r.setSize=Cn;function hi(){let V=!1,X=!1,ie=!1,oe=!1;R.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ie,_size:Pe}=ge,Be=Ie%2,qe=ge.label!=null?ge.labelSize:0,Ye=Pe+qe;Ye>0&&(Be?(mt-=Ye,Ie==3?(Lt+=Ye,oe=!0):ie=!0):(je-=Ye,Ie==0?(Ht+=Ye,V=!0):X=!0))}}),gi[0]=V,gi[1]=ie,gi[2]=X,gi[3]=oe,mt-=wr[1]+wr[3],Lt+=wr[3],je-=wr[2]+wr[0],Ht+=wr[0]}function Qo(){let V=Lt+mt,X=Ht+je,ie=Lt,oe=Ht;function ge(xe,Ie){switch(xe){case 1:return V+=Ie,V-Ie;case 2:return X+=Ie,X-Ie;case 3:return ie-=Ie,ie+Ie;case 0:return oe-=Ie,oe+Ie}}R.forEach((xe,Ie)=>{if(xe.show&&xe._show){let Pe=xe.side;xe._pos=ge(Pe,xe._size),xe.label!=null&&(xe._lpos=ge(Pe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=zt(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,xe,Ie,Pe)=>{if(xe==0)return Ie;let Be=Ie,qe=ie(ge,xe,Ie,Pe)??pn,Ye=qe>=0&&qe<pn,Qe=z.ori==0?mt:je,yt=ne.left,Pt=t[0],wt=t[xe];if(X.has(wt[Ie])){Be=null;let Nt=null,dt=null,rt;if(oe==0||oe==-1)for(rt=Ie;Nt==null&&rt-- >0;)X.has(wt[rt])||(Nt=rt);if(oe==0||oe==1)for(rt=Ie;dt==null&&rt++<wt.length;)X.has(wt[rt])||(dt=rt);if(Nt!=null||dt!=null)if(Ye){let vn=Nt==null?-1/0:O(Pt[Nt],z,Qe,0),En=dt==null?1/0:O(Pt[dt],z,Qe,0),or=yt-vn,qt=En-yt;or<=qt?or<=qe&&(Be=Nt):qt<=qe&&(Be=dt)}else Be=dt==null?Nt:Nt==null?dt:Ie-Nt<=dt-Ie?Nt:dt}else Ye&&ar(yt-O(Pt[Ie],z,Qe,0))>qe&&(Be=null);return Be}}const di=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let kn=ne.points;kn.show=zt(kn.show),kn.size=zt(kn.size),kn.stroke=zt(kn.stroke),kn.width=zt(kn.width),kn.fill=zt(kn.fill);const ur=r.focus=tr({},n.focus||{alpha:.3},ne.focus),pi=ur.prox>=0,An=pi&&kn.one;let Tn=[],br=[],fi=[];function mo(V,X){let ie=kn.show(r,X);if(ie instanceof HTMLElement)return xi(ie,Pk),xi(ie,V.class),uo(ie,-10,-10,mt,je),i.insertBefore(ie,Tn[X]),ie}function vo(V,X){if(f==1||X>0){let ie=f==1&&_[V.scale].time,oe=V.value;V.value=ie?sm(oe)?km(N,Cm(oe,B)):oe||Q:oe||QA,V.label=V.label||(ie?UA:jA)}if(An||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||dS||nA,V.fillTo=zt(V.fillTo||rS),V.pxAlign=+Qt(V.pxAlign,s),V.pxRound=zm(V.pxAlign),V.stroke=zt(V.stroke||null),V.fill=zt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=JA(Hr(1,V.width),1),oe=V.points=tr({},{size:ie,width:Hr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:pS,_stroke:null,_fill:null},V.points);oe.show=zt(oe.show),oe.filter=zt(oe.filter),oe.fill=zt(oe.fill),oe.stroke=zt(oe.stroke),oe.paths=zt(oe.paths),oe.pxAlign=V.pxAlign}if(le){let ie=Wt(V,X);Me.splice(X,0,ie[0]),Xe.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;An?X==0&&(ie=mo(V,X)):X>0&&(ie=mo(V,X)),Tn.splice(X,0,ie),br.splice(X,0,0),fi.splice(X,0,0)}tt("addSeries",X)}function Jo(V,X){X=X??x.length,V=f==1?vh(V,X,Im,Fm):vh(V,X,{},Dm),x.splice(X,0,V),vo(x[X],X)}r.addSeries=Jo;function Xr(V){if(x.splice(V,1),le){he.values.splice(V,1),Xe.splice(V,1);let X=Me.splice(V,1)[0];On(null,X.firstChild),X.remove()}se&&(J.splice(V,1),Tn.splice(V,1)[0].remove(),br.splice(V,1),fi.splice(V,1)),tt("delSeries",V)}r.delSeries=Xr;const gi=[!1,!1,!1,!1];function Fr(V,X){if(V._show=V.show,V.show){let ie=V.side%2,oe=_[V.scale];oe==null&&(V.scale=ie?x[1].scale:C,oe=_[V.scale]);let ge=oe.time;V.size=zt(V.size),V.space=zt(V.space),V.rotate=zt(V.rotate),Zo(V.incrs)&&V.incrs.forEach(Ie=>{!Xo.has(Ie)&&Xo.set(Ie,im(Ie))}),V.incrs=zt(V.incrs||(oe.distr==2?AA:ge?b==1?_A:MA:Ms)),V.splits=zt(V.splits||(ge&&oe.distr==1?U:oe.distr==3?uh:oe.distr==4?KA:qA)),V.stroke=zt(V.stroke),V.grid.stroke=zt(V.grid.stroke),V.ticks.stroke=zt(V.ticks.stroke),V.border.stroke=zt(V.border.stroke);let xe=V.values;V.values=Zo(xe)&&!Zo(xe[0])?zt(xe):ge?Zo(xe)?xm(N,wm(xe,B)):sm(xe)?RA(N,xe):xe||K:xe||VA,V.filter=zt(V.filter||(oe.distr>=3&&oe.log==10?XA:oe.distr==3&&oe.log==2?ZA:em)),V.font=nv(V.font),V.labelFont=nv(V.labelFont),V._size=V.size(r,null,X,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(gi[X]=!0,V._el=Oi(Ok,u))}}function Ot(V,X,ie,oe){let[ge,xe,Ie,Pe]=ie,Be=X%2,qe=0;return Be==0&&(Pe||xe)&&(qe=X==0&&!ge||X==2&&!Ie?lr(Mm.size/3):0),Be==1&&(ge||Ie)&&(qe=X==1&&!xe||X==3&&!Pe?lr(Lm.size/2):0),qe}const To=r.padding=(n.padding||[Ot,Ot,Ot,Ot]).map(V=>zt(Qt(V,Ot))),wr=r._padding=To.map((V,X)=>V(r,X,gi,0));let ce,ze=null,Fe=null;const St=f==1?x[0].idxs:null;let Yt=null,jt=!1;function xr(V,X){if(t=V??[],r.data=r._data=t,f==2){ce=0;for(let ie=1;ie<x.length;ie++)ce+=t[ie][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Yt=t[0],ce=Yt.length;let ie=t;if(P==2){ie=t.slice();let oe=ie[0]=Array(ce);for(let ge=0;ge<ce;ge++)oe[ge]=ge}r._data=t=ie}if(io(!0),tt("setData"),P==2&&(Gr=!0),X!==!1){let ie=z;ie.auto(r,jt)?hr():rr(C,ie.min,ie.max),Ai=Ai||ne.left>=0,Bn=!0,wo()}}r.setData=xr;function hr(){jt=!0;let V,X;f==1&&(ce>0?(ze=St[0]=0,Fe=St[1]=ce-1,V=t[0][ze],X=t[0][Fe],P==2?(V=ze,X=Fe):V==X&&(P==3?[V,X]=Ql(V,V,z.log,!1):P==4?[V,X]=Zu(V,V,z.log,!1):z.time?X=V+lr(86400/b):[V,X]=Jl(V,X,Qu,!0))):(ze=St[0]=V=null,Fe=St[1]=X=null)),rr(C,V,X)}let zn,Cr,mn,no,Pr,es,Ns,Ds,ts,dr;function Fs(V,X,ie,oe,ge,xe){V??(V=Lg),ie??(ie=nh),oe??(oe="butt"),ge??(ge=Lg),xe??(xe="round"),V!=zn&&(l.strokeStyle=zn=V),ge!=Cr&&(l.fillStyle=Cr=ge),X!=mn&&(l.lineWidth=mn=X),xe!=Pr&&(l.lineJoin=Pr=xe),oe!=es&&(l.lineCap=es=oe),ie!=no&&l.setLineDash(no=ie)}function Mo(V,X,ie,oe){X!=Cr&&(l.fillStyle=Cr=X),V!=Ns&&(l.font=Ns=V),ie!=Ds&&(l.textAlign=Ds=ie),oe!=ts&&(l.textBaseline=ts=oe)}function ns(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,jt)&&(X==null||X.min==null)){let xe=Qt(ze,0),Ie=Qt(Fe,oe.length-1),Pe=ie.min==null?Xk(oe,xe,Ie,ge,V.distr==3):[ie.min,ie.max];V.min=Qi(V.min,ie.min=Pe[0]),V.max=Hr(V.max,ie.max=Pe[1])}}const rs={min:null,max:null};function yo(){for(let oe in _){let ge=_[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,jt))&&(A[oe]=rs)}for(let oe in _){let ge=_[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=rs)}A[C]!=null&&io(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let xe=V[oe]=ua(_[oe],oA);if(ge.min!=null)tr(xe,ge);else if(oe!=C||f==2)if(ce==0&&xe.from==null){let Ie=xe.range(r,null,null,oe);xe.min=Ie[0],xe.max=Ie[1]}else xe.min=pn,xe.max=-pn}}if(ce>0){x.forEach((oe,ge)=>{if(f==1){let xe=oe.scale,Ie=A[xe];if(Ie==null)return;let Pe=V[xe];if(ge==0){let Be=Pe.range(r,Pe.min,Pe.max,xe);Pe.min=Be[0],Pe.max=Be[1],ze=Zi(Pe.min,t[0]),Fe=Zi(Pe.max,t[0]),Fe-ze>1&&(t[0][ze]<Pe.min&&ze++,t[0][Fe]>Pe.max&&Fe--),oe.min=Yt[ze],oe.max=Yt[Fe]}else oe.show&&oe.auto&&ns(Pe,Ie,oe,t[ge],oe.sorted);oe.idxs[0]=ze,oe.idxs[1]=Fe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ie]=oe.facets,Pe=xe.scale,Be=Ie.scale,[qe,Ye]=t[ge],Qe=V[Pe],yt=V[Be];Qe!=null&&ns(Qe,A[Pe],xe,qe,xe.sorted),yt!=null&&ns(yt,A[Be],Ie,Ye,Ie.sorted),oe.min=Ie.min,oe.max=Ie.max}});for(let oe in V){let ge=V[oe],xe=A[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ie=ge.range(r,ge.min==pn?null:ge.min,ge.max==-pn?null:ge.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let xe=V[ge.from];if(xe.min==null)ge.min=ge.max=null;else{let Ie=ge.range(r,xe.min,xe.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],xe=_[oe];if(xe.min!=ge.min||xe.max!=ge.max){xe.min=ge.min,xe.max=ge.max;let Ie=xe.distr;xe._min=Ie==3?_o(xe.min):Ie==4?eh(xe.min,xe.asinh):Ie==100?xe.fwd(xe.min):xe.min,xe._max=Ie==3?_o(xe.max):Ie==4?eh(xe.max,xe.asinh):Ie==100?xe.fwd(xe.max):xe.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{f==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)Gr=!0,tt("setScale",oe);se&&ne.left>=0&&(Ai=Bn=!0)}for(let oe in A)A[oe]=null}function Ps(V){let X=th(ze-1,0,ce-1),ie=th(Fe+1,0,ce-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ce-1;)ie++;return[X,ie]}function ba(){if(ce>0){let V=x.some(X=>X._focus)&&dr!=ur.alpha;V&&(l.globalAlpha=dr=ur.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(is(ie,!1),is(ie,!0),X._paths==null)){let oe=dr;dr!=X.alpha&&(l.globalAlpha=dr=X.alpha);let ge=f==2?[0,t[ie][0].length-1]:Ps(t[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),dr!=oe&&(l.globalAlpha=dr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=dr;dr!=X.alpha&&(l.globalAlpha=dr=X.alpha),X._paths!=null&&os(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,ze,Fe,ge),Ie=X.points.filter(r,ie,xe,ge);(xe||Ie)&&(X.points._paths=X.points.paths(r,ie,ze,Fe,Ie),os(ie,!0))}dr!=oe&&(l.globalAlpha=dr=oe),tt("drawSeries",ie)}}),V&&(l.globalAlpha=dr=1)}}function is(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function os(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ie,_stroke:Pe=ie._stroke,_fill:Be=ie._fill,_width:qe=ie.width}=ie._paths;qe=fn(qe*en,3);let Ye=null,Qe=qe%2/2;X&&Be==null&&(Be=qe>0?"#fff":Pe);let yt=ie.pxAlign==1&&Qe>0;if(yt&&l.translate(Qe,Qe),!X){let Pt=Wn-qe/2,wt=Nn-qe/2,Nt=Gt+qe,dt=ln+qe;Ye=new Path2D,Ye.rect(Pt,wt,Nt,dt)}X?Io(Pe,qe,ie.dash,ie.cap,Be,oe,ge,Ie,xe):Ws(V,Pe,qe,ie.dash,ie.cap,Be,oe,ge,Ie,Ye,xe),yt&&l.translate(-Qe,-Qe)}function Ws(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye){let Qe=!1;Be!=0&&k.forEach((yt,Pt)=>{if(yt.series[0]==V){let wt=x[yt.series[1]],Nt=t[yt.series[1]],dt=(wt._paths||Ya).band;Zo(dt)&&(dt=yt.dir==1?dt[0]:dt[1]);let rt,vn=null;wt.show&&dt&&Qk(Nt,ze,Fe)?(vn=yt.fill(r,Pt)||xe,rt=wt._paths.clip):dt=null,Io(X,ie,oe,ge,vn,Ie,Pe,Be,qe,Ye,rt,dt),Qe=!0}}),Qe||Io(X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye)}const ss=da|dh;function Io(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye,Qe){Fs(V,X,ie,oe,ge),(Be||qe||Qe)&&(l.save(),Be&&l.clip(Be),qe&&l.clip(qe)),Qe?(Pe&ss)==ss?(l.clip(Qe),Ye&&l.clip(Ye),pr(ge,Ie),Fi(V,xe,X)):Pe&dh?(pr(ge,Ie),l.clip(Qe),Fi(V,xe,X)):Pe&da&&(l.save(),l.clip(Qe),Ye&&l.clip(Ye),pr(ge,Ie),l.restore(),Fi(V,xe,X)):(pr(ge,Ie),Fi(V,xe,X)),(Be||qe||Qe)&&l.restore()}function Fi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=zn=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function pr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=Cr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function bo(V,X,ie,oe){let ge=R[V],xe;if(oe<=0)xe=[0,0];else{let Ie=ge._space=ge.space(r,V,X,ie,oe),Pe=ge._incrs=ge.incrs(r,V,X,ie,oe,Ie);xe=bS(X,ie,Pe,oe,Ie)}return ge._found=xe}function ro(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe){let Ye=Ie%2/2;s==1&&l.translate(Ye,Ye),Fs(Pe,Ie,Be,qe,Pe),l.beginPath();let Qe,yt,Pt,wt,Nt=ge+(oe==0||oe==3?-xe:xe);ie==0?(yt=ge,wt=Nt):(Qe=ge,Pt=Nt);for(let dt=0;dt<V.length;dt++)X[dt]!=null&&(ie==0?Qe=Pt=V[dt]:yt=wt=V[dt],l.moveTo(Qe,yt),l.lineTo(Pt,wt));l.stroke(),s==1&&l.translate(-Ye,-Ye)}function wa(V){let X=!0;return R.forEach((ie,oe)=>{if(!ie.show)return;let ge=_[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,io(!1));return}else ie._show||(X=!1,ie._show=!0,io(!1));let xe=ie.side,Ie=xe%2,{min:Pe,max:Be}=ge,[qe,Ye]=bo(oe,Pe,Be,Ie==0?mt:je);if(Ye==0)return;let Qe=ge.distr==2,yt=ie._splits=ie.splits(r,oe,Pe,Be,qe,Ye,Qe),Pt=ge.distr==2?yt.map(rt=>Yt[rt]):yt,wt=ge.distr==2?Yt[yt[1]]-Yt[yt[0]]:qe,Nt=ie._values=ie.values(r,ie.filter(r,Pt,oe,Ye,wt),oe,Ye,wt);ie._rotate=xe==2?ie.rotate(r,Nt,oe,Ye):0;let dt=ie._size;ie._size=Ni(ie.size(r,Nt,oe,V)),dt!=null&&ie._size!=dt&&(X=!1)}),X}function ul(V){let X=!0;return To.forEach((ie,oe)=>{let ge=ie(r,oe,gi,V);ge!=wr[oe]&&(X=!1),wr[oe]=ge}),X}function Eo(){for(let V=0;V<R.length;V++){let X=R[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,xe,Ie=X.stroke(r,V),Pe=ie==0||ie==3?-1:1,[Be,qe]=X._found;if(X.label!=null){let dn=X.labelGap*Pe,_r=lr((X._lpos+dn)*en);Mo(X.labelFont[0],Ie,"center",ie==2?qa:Rg),l.save(),oe==1?(ge=xe=0,l.translate(_r,lr(Nn+ln/2)),l.rotate((ie==3?-ec:ec)/2)):(ge=lr(Wn+Gt/2),xe=_r);let Do=Qg(X.label)?X.label(r,V,Be,qe):X.label;l.fillText(Do,ge,xe),l.restore()}if(qe==0)continue;let Ye=_[X.scale],Qe=oe==0?Gt:ln,yt=oe==0?Wn:Nn,Pt=X._splits,wt=Ye.distr==2?Pt.map(dn=>Yt[dn]):Pt,Nt=Ye.distr==2?Yt[Pt[1]]-Yt[Pt[0]]:Be,dt=X.ticks,rt=X.border,vn=dt.show?dt.size:0,En=lr(vn*en),or=lr((X.alignTo==2?X._size-vn-X.gap:X.gap)*en),qt=X._rotate*-ec/180,fe=p(X._pos*en),$e=(En+or)*Pe,Ce=fe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ue=X.font[0],ut=X.align==1?oa:X.align==2?zu:qt>0?oa:qt<0?zu:oe==0?"center":ie==3?zu:oa,$t=qt||oe==1?"middle":ie==2?qa:Rg;Mo(Ue,Ie,ut,$t);let Zt=X.font[1]*X.lineGap,It=Pt.map(dn=>p(w(dn,Ye,Qe,yt))),Jr=X._values;for(let dn=0;dn<Jr.length;dn++){let _r=Jr[dn];if(_r!=null){oe==0?ge=It[dn]:xe=It[dn],_r=""+_r;let Do=_r.indexOf(`
|
|
1490
|
-
`)==-1?[_r]:_r.split(/\n/gm);for(let Vn=0;Vn<Do.length;Vn++){let zs=Do[Vn];qt?(l.save(),l.translate(ge,xe+Vn*Zt),l.rotate(qt),l.fillText(zs,0,0),l.restore()):l.fillText(zs,ge,xe+Vn*Zt)}}}dt.show&&ro(It,dt.filter(r,wt,V,qe,Nt),oe,ie,fe,En,fn(dt.width*en,3),dt.stroke(r,V),dt.dash,dt.cap);let Hi=X.grid;Hi.show&&ro(It,Hi.filter(r,wt,V,qe,Nt),oe,oe==0?2:1,oe==0?Nn:Wn,oe==0?ln:Gt,fn(Hi.width*en,3),Hi.stroke(r,V),Hi.dash,Hi.cap),rt.show&&ro([fe],[1],oe==0?1:0,oe==0?1:2,oe==1?Nn:Wn,oe==1?ln:Gt,fn(rt.width*en,3),rt.stroke(r,V),rt.dash,rt.cap)}tt("drawAxes")}function io(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(f==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Ro=!1,as=!1,Lo=[];function xa(){as=!1;for(let V=0;V<Lo.length;V++)tt(...Lo[V]);Lo.length=0}function wo(){Ro||(dA(Ca),Ro=!0)}function We(V,X=!1){Ro=!0,as=X,V(r),Ca(),X&&Lo.length>0&&queueMicrotask(xa)}r.batch=We;function Ca(){if(Dr&&(yo(),Dr=!1),Gr&&(Yr(),Gr=!1),Kr){if(wn(c,oa,Lt),wn(c,qa,Ht),wn(c,Ua,mt),wn(c,Va,je),wn(i,oa,Lt),wn(i,qa,Ht),wn(i,Ua,mt),wn(i,Va,je),wn(u,Ua,Xn),wn(u,Va,Tr),a.width=lr(Xn*en),a.height=lr(Tr*en),R.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ie=ge%2==1;wn(V,Ie?"left":"top",oe-xe),wn(V,Ie?"width":"height",ie),wn(V,Ie?"top":"left",Ie?Ht:Lt),wn(V,Ie?"height":"width",Ie?je:mt),Gu(V,Ss)}else xi(V,Ss)}),zn=Cr=mn=Pr=es=Ns=Ds=ts=no=null,dr=1,W(!0),Lt!=$n||Ht!=yr||mt!=cr||je!=gn){io(!1);let V=mt/cr,X=je/gn;if(se&&!Ai&&ne.left>=0){ne.left*=V,ne.top*=X,Si&&uo(Si,lr(ne.left),0,mt,je),Zn&&uo(Zn,0,lr(ne.top),mt,je);for(let ie=0;ie<Tn.length;ie++){let oe=Tn[ie];oe!=null&&(br[ie]*=V,fi[ie]*=X,uo(oe,Ni(br[ie]),Ni(fi[ie]),mt,je))}}if(vt.show&&!ci&&vt.left>=0&&vt.width>0){vt.left*=V,vt.width*=V,vt.top*=X,vt.height*=X;for(let ie in Y)wn(Zr,ie,vt[ie])}$n=Lt,yr=Ht,cr=mt,gn=je}tt("setSize"),Kr=!1}Xn>0&&Tr>0&&(l.clearRect(0,0,a.width,a.height),tt("drawClear"),D.forEach(V=>V()),tt("draw")),vt.show&&ci&&(hn(vt),ci=!1),se&&Ai&&(S(null,!0,!1),Ai=!1),he.show&&he.live&&Bn&&(y(),Bn=!1),h||(h=!0,r.status=1,tt("ready")),jt=!1,Ro=!1}r.redraw=(V,X)=>{Gr=X||!1,V!==!1?rr(C,z.min,z.max):wo()};function Ne(V,X){let ie=_[V];if(ie.from==null){if(ce==0){let oe=ie.range(r,X.min,X.max,V);X.min=oe[0],X.max=oe[1]}if(X.min>X.max){let oe=X.min;X.min=X.max,X.max=oe}if(ce>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&ce>0&&(X.min=Zi(X.min,t[0]),X.max=Zi(X.max,t[0]),X.min==X.max&&X.max++),A[V]=X,Dr=!0,wo()}}r.setScale=Ne;let Dn,Oo,Si,Zn,ka,No,Pi,xo,nn,Jt,rn,Ut,Wi=!1;const Hn=ne.drag;let He=Hn.x,yn=Hn.y;se&&(ne.x&&(Dn=Oi(Dk,i)),ne.y&&(Oo=Oi(Fk,i)),z.ori==0?(Si=Dn,Zn=Oo):(Si=Oo,Zn=Dn),rn=ne.left,Ut=ne.top);const vt=r.select=tr({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Zr=vt.show?Oi(Nk,vt.over?i:c):null;function hn(V,X){if(vt.show){for(let ie in V)vt[ie]=V[ie],ie in Y&&wn(Zr,ie,V[ie]);X!==!1&&tt("setSelect")}}r.setSelect=hn;function Sn(V){if(x[V].show)le&&Gu(Me[V],Ss);else if(le&&xi(Me[V],Ss),se){let X=An?Tn[0]:Tn[V];X!=null&&uo(X,-10,-10,mt,je)}}function rr(V,X,ie){Ne(V,{min:X,max:ie})}function Qr(V,X,ie,oe){X.focus!=null&&kr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,Sn(xe),f==2?(rr(ge.facets[0].scale,null,null),rr(ge.facets[1].scale,null,null)):rr(ge.scale,null,null),wo())}),ie!==!1&&tt("setSeries",V,X),oe&&_t("setSeries",r,V,X)}r.setSeries=Qr;function Bi(V,X){tr(k[V],X)}function jn(V,X){V.fill=zt(V.fill||null),V.dir=Qt(V.dir,-1),X=X??k.length,k.splice(X,0,V)}function mi(V){V==null?k.length=0:k.splice(V,1)}r.addBand=jn,r.setBand=Bi,r.delBand=mi;function ls(V,X){x[V].alpha=X,se&&Tn[V]!=null&&(Tn[V].style.opacity=X),le&&Me[V]&&(Me[V].style.opacity=X)}let Un,_i,$i;const zi={focus:!0};function kr(V){if(V!=$i){let X=V==null,ie=ur.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&ls(ge,xe?1:ur.alpha)}}),$i=V,ie&&wo()}}le&&pi&&un(Dg,me,V=>{ne._lock||(di(V),$i!=null&&Qr(null,zi,!0,ct.setSeries))});function Ar(V,X,ie){let oe=_[X];ie&&(V=V/en-(oe.ori==1?Ht:Lt));let ge=mt;oe.ori==1&&(ge=je,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ie=oe._max,Pe=V/ge,Be=xe+(Ie-xe)*Pe,qe=oe.distr;return qe==3?la(10,Be):qe==4?eA(Be,oe.asinh):qe==100?oe.bwd(Be):Be}function Mr(V,X){let ie=Ar(V,C,X);return Zi(ie,t[0],ze,Fe)}r.valToIdx=V=>Zi(V,t[0]),r.posToIdx=Mr,r.posToVal=Ar,r.valToPos=(V,X,ie)=>_[X].ori==0?g(V,_[X],ie?Gt:mt,ie?Wn:0):m(V,_[X],ie?ln:je,ie?Nn:0),r.setCursor=(V,X,ie)=>{rn=V.left,Ut=V.top,S(null,X,ie)};function Bs(V,X){wn(Zr,oa,vt.left=V),wn(Zr,Ua,vt.width=X)}function Ir(V,X){wn(Zr,qa,vt.top=V),wn(Zr,Va,vt.height=X)}let Wr=z.ori==0?Bs:Ir,Ti=z.ori==1?Bs:Ir;function Mi(){if(le&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&at)continue;let X=he.values[V],ie=0;for(let oe in X)Xe[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):iA(V.idx)||J.fill(V.idx),he.idx=J[0]),le&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||f==1&&!at)&&T(ie,J[ie]);Mi()}Bn=!1,X!==!1&&tt("setLegend")}r.setLegend=y;function T(V,X){let ie=x[V],oe=V==0&&P==2?Yt:t[V],ge;at?ge=ie.values(r,V,X)??et:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?et:{_:ge}),he.values[V]=ge}function S(V,X,ie){nn=rn,Jt=Ut,[rn,Ut]=ne.move(r,rn,Ut),ne.left=rn,ne.top=Ut,se&&(Si&&uo(Si,lr(rn),0,mt,je),Zn&&uo(Zn,0,lr(Ut),mt,je));let oe,ge=ze>Fe;Un=pn,_i=null;let xe=z.ori==0?mt:je,Ie=z.ori==1?mt:je;if(rn<0||ce==0||ge){oe=ne.idx=null;for(let Pe=0;Pe<x.length;Pe++){let Be=Tn[Pe];Be!=null&&uo(Be,-10,-10,mt,je)}pi&&Qr(null,zi,!0,V==null&&ct.setSeries),he.live&&(J.fill(oe),Bn=!0)}else{let Pe,Be,qe;f==1&&(Pe=z.ori==0?rn:Ut,Be=Ar(Pe,C),oe=ne.idx=Zi(Be,t[0],ze,Fe),qe=O(t[0][oe],z,xe,0));let Ye=-10,Qe=-10,yt=0,Pt=0,wt=!0,Nt="",dt="";for(let rt=f==2?1:0;rt<x.length;rt++){let vn=x[rt],En=J[rt],or=En==null?null:f==1?t[rt][En]:t[rt][1][En],qt=ne.dataIdx(r,rt,oe,Be),fe=qt==null?null:f==1?t[rt][qt]:t[rt][1][qt];if(Bn=Bn||fe!=or||qt!=En,J[rt]=qt,rt>0&&vn.show){let $e=qt==null?-10:qt==oe?qe:O(f==1?t[0][qt]:t[rt][0][qt],z,xe,0),Ce=fe==null?-10:$(fe,f==1?_[vn.scale]:_[vn.facets[1].scale],Ie,0);if(pi&&fe!=null){let Ue=z.ori==1?rn:Ut,ut=ar(ur.dist(r,rt,qt,Ce,Ue));if(ut<Un){let $t=ur.bias;if($t!=0){let Zt=Ar(Ue,vn.scale),It=fe>=0?1:-1,Jr=Zt>=0?1:-1;Jr==It&&(Jr==1?$t==1?fe>=Zt:fe<=Zt:$t==1?fe<=Zt:fe>=Zt)&&(Un=ut,_i=rt)}else Un=ut,_i=rt}}if(Bn||An){let Ue,ut;z.ori==0?(Ue=$e,ut=Ce):(Ue=Ce,ut=$e);let $t,Zt,It,Jr,Hi,dn,_r=!0,Do=kn.bbox;if(Do!=null){_r=!1;let Vn=Do(r,rt);It=Vn.left,Jr=Vn.top,$t=Vn.width,Zt=Vn.height}else It=Ue,Jr=ut,$t=Zt=kn.size(r,rt);if(dn=kn.fill(r,rt),Hi=kn.stroke(r,rt),An)rt==_i&&Un<=ur.prox&&(Ye=It,Qe=Jr,yt=$t,Pt=Zt,wt=_r,Nt=dn,dt=Hi);else{let Vn=Tn[rt];Vn!=null&&(br[rt]=It,fi[rt]=Jr,jg(Vn,$t,Zt,_r),zg(Vn,dn,Hi),uo(Vn,Ni(It),Ni(Jr),mt,je))}}}}if(An){let rt=ur.prox,vn=$i==null?Un<=rt:Un>rt||_i!=$i;if(Bn||vn){let En=Tn[0];En!=null&&(br[0]=Ye,fi[0]=Qe,jg(En,yt,Pt,wt),zg(En,Nt,dt),uo(En,Ni(Ye),Ni(Qe),mt,je))}}}if(vt.show&&Wi)if(V!=null){let[Pe,Be]=ct.scales,[qe,Ye]=ct.match,[Qe,yt]=V.cursor.sync.scales,Pt=V.cursor.drag;if(He=Pt._x,yn=Pt._y,He||yn){let{left:wt,top:Nt,width:dt,height:rt}=V.select,vn=V.scales[Qe].ori,En=V.posToVal,or,qt,fe,$e,Ce,Ue=Pe!=null&&qe(Pe,Qe),ut=Be!=null&&Ye(Be,yt);Ue&&He?(vn==0?(or=wt,qt=dt):(or=Nt,qt=rt),fe=_[Pe],$e=O(En(or,Qe),fe,xe,0),Ce=O(En(or+qt,Qe),fe,xe,0),Wr(Qi($e,Ce),ar(Ce-$e))):Wr(0,xe),ut&&yn?(vn==1?(or=wt,qt=dt):(or=Nt,qt=rt),fe=_[Be],$e=$(En(or,yt),fe,Ie,0),Ce=$(En(or+qt,yt),fe,Ie,0),Ti(Qi($e,Ce),ar(Ce-$e))):Ti(0,Ie)}else Z()}else{let Pe=ar(nn-ka),Be=ar(Jt-No);if(z.ori==1){let yt=Pe;Pe=Be,Be=yt}He=Hn.x&&Pe>=Hn.dist,yn=Hn.y&&Be>=Hn.dist;let qe=Hn.uni;qe!=null?He&&yn&&(He=Pe>=qe,yn=Be>=qe,!He&&!yn&&(Be>Pe?yn=!0:He=!0)):Hn.x&&Hn.y&&(He||yn)&&(He=yn=!0);let Ye,Qe;He&&(z.ori==0?(Ye=Pi,Qe=rn):(Ye=xo,Qe=Ut),Wr(Qi(Ye,Qe),ar(Qe-Ye)),yn||Ti(0,Ie)),yn&&(z.ori==1?(Ye=Pi,Qe=rn):(Ye=xo,Qe=Ut),Ti(Qi(Ye,Qe),ar(Qe-Ye)),He||Wr(0,xe)),!He&&!yn&&(Wr(0,0),Ti(0,0))}if(Hn._x=He,Hn._y=yn,V==null){if(ie){if(Mn!=null){let[Pe,Be]=ct.scales;ct.values[0]=Pe!=null?Ar(z.ori==0?rn:Ut,Pe):null,ct.values[1]=Be!=null?Ar(z.ori==1?rn:Ut,Be):null}_t(ju,r,rn,Ut,mt,je,oe)}if(pi){let Pe=ie&&ct.setSeries,Be=ur.prox;$i==null?Un<=Be&&Qr(_i,zi,!0,Pe):Un>Be?Qr(null,zi,!0,Pe):_i!=$i&&Qr(_i,zi,!0,Pe)}}Bn&&(he.idx=oe,y()),X!==!1&&tt("setCursor")}let F=null;Object.defineProperty(r,"rect",{get(){return F==null&&W(!1),F}});function W(V=!1){V?F=null:(F=i.getBoundingClientRect(),tt("syncRect",F))}function H(V,X,ie,oe,ge,xe,Ie){ne._lock||Wi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,xe,Ie,!1,V!=null),V!=null?S(null,!0,!0):S(X,!0,!1))}function q(V,X,ie,oe,ge,xe,Ie,Pe,Be){if(F==null&&W(!1),di(V),V!=null)ie=V.clientX-F.left,oe=V.clientY-F.top;else{if(ie<0||oe<0){rn=-10,Ut=-10;return}let[qe,Ye]=ct.scales,Qe=X.cursor.sync,[yt,Pt]=Qe.values,[wt,Nt]=Qe.scales,[dt,rt]=ct.match,vn=X.axes[0].side%2==1,En=z.ori==0?mt:je,or=z.ori==1?mt:je,qt=vn?xe:ge,fe=vn?ge:xe,$e=vn?oe:ie,Ce=vn?ie:oe;if(wt!=null?ie=dt(qe,wt)?w(yt,_[qe],En,0):-10:ie=En*($e/qt),Nt!=null?oe=rt(Ye,Nt)?w(Pt,_[Ye],or,0):-10:oe=or*(Ce/fe),z.ori==1){let Ue=ie;ie=oe,oe=Ue}}Be&&(X==null||X.cursor.event.type==ju)&&((ie<=1||ie>=mt-1)&&(ie=Ts(ie,mt)),(oe<=1||oe>=je-1)&&(oe=Ts(oe,je))),Pe?(ka=ie,No=oe,[Pi,xo]=ne.move(r,ie,oe)):(rn=ie,Ut=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){hn(Y,!1)}let re,ae,be,ke;function ve(V,X,ie,oe,ge,xe,Ie){Wi=!0,He=yn=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!0,!1),V!=null&&(un(Uu,qu,we,!1),_t(Og,r,Pi,xo,mt,je,null));let{left:Pe,top:Be,width:qe,height:Ye}=vt;re=Pe,ae=Be,be=qe,ke=Ye}function we(V,X,ie,oe,ge,xe,Ie){Wi=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!1,!0);let{left:Pe,top:Be,width:qe,height:Ye}=vt,Qe=qe>0||Ye>0,yt=re!=Pe||ae!=Be||be!=qe||ke!=Ye;if(Qe&&yt&&hn(vt),Hn.setScale&&Qe&&yt){let Pt=Pe,wt=qe,Nt=Be,dt=Ye;if(z.ori==1&&(Pt=Be,wt=Ye,Nt=Pe,dt=qe),He&&rr(C,Ar(Pt,C),Ar(Pt+wt,C)),yn)for(let rt in _){let vn=_[rt];rt!=C&&vn.from==null&&vn.min!=pn&&rr(rt,Ar(Nt+dt,rt),Ar(Nt,rt))}Z()}else ne.lock&&(ne._lock=!ne._lock,S(X,!0,V!=null));V!=null&&(On(Uu,qu),_t(Uu,r,rn,Ut,mt,je,null))}function Oe(V,X,ie,oe,ge,xe,Ie){if(ne._lock)return;di(V);let Pe=Wi;if(Wi){let Be=!0,qe=!0,Ye=10,Qe,yt;z.ori==0?(Qe=He,yt=yn):(Qe=yn,yt=He),Qe&&yt&&(Be=rn<=Ye||rn>=mt-Ye,qe=Ut<=Ye||Ut>=je-Ye),Qe&&Be&&(rn=rn<Pi?0:mt),yt&&qe&&(Ut=Ut<xo?0:je),S(null,!0,!0),Wi=!1}rn=-10,Ut=-10,J.fill(null),S(null,!0,!0),Pe&&(Wi=Pe)}function Le(V,X,ie,oe,ge,xe,Ie){ne._lock||(di(V),hr(),Z(),V!=null&&_t(Fg,r,rn,Ut,mt,je,null))}function Ve(){R.forEach(wS),to(r.width,r.height,!0)}_s(Yl,aa,Ve);const st={};st.mousedown=ve,st.mousemove=H,st.mouseup=we,st.dblclick=Le,st.setSeries=(V,X,ie,oe)=>{let ge=ct.match[2];ie=ge(r,X,ie),ie!=-1&&Qr(ie,oe,!0,!1)},se&&(un(Og,i,ve),un(ju,i,H),un(Ng,i,V=>{di(V),W(!1)}),un(Dg,i,Oe),un(Fg,i,Le),mh.add(r),r.syncRect=W);const Ze=r.hooks=n.hooks||{};function tt(V,X,ie){as?Lo.push([V,X,ie]):V in Ze&&Ze[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)Ze[X]=(Ze[X]||[]).concat(V.hooks[X])});const bn=(V,X,ie)=>ie,ct=tr({key:null,setSeries:!1,filters:{pub:tm,sub:tm},scales:[C,x[1]?x[1].scale:null],match:[nm,nm,bn],values:[null,null]},ne.sync);ct.match.length==2&&ct.match.push(bn),ne.sync=ct;const Mn=ct.key,bt=Bm(Mn);function _t(V,X,ie,oe,ge,xe,Ie){ct.filters.pub(V,X,ie,oe,ge,xe,Ie)&&bt.pub(V,X,ie,oe,ge,xe,Ie)}bt.sub(r);function ir(V,X,ie,oe,ge,xe,Ie){ct.filters.sub(V,X,ie,oe,ge,xe,Ie)&&st[V](null,X,ie,oe,ge,xe,Ie)}r.pub=ir;function Sr(){bt.unsub(r),mh.delete(r),vr.clear(),Xu(Yl,aa,Ve),d.remove(),me==null||me.remove(),tt("destroy")}r.destroy=Sr;function In(){tt("init",n,t),xr(t||n.data,!1),A[C]?Ne(C,A[C]):hr(),ci=vt.show&&(vt.width>0||vt.height>0),Ai=Bn=!0,to(n.width,n.height)}return x.forEach(vo),R.forEach(Fr),e?e instanceof HTMLElement?(e.appendChild(d),In()):e(r,In):In(),r}Or.assign=tr,Or.fmtNum=Ju,Or.rangeNum=Jl,Or.rangeLog=Ql,Or.rangeAsinh=Zu,Or.orient=Is,Or.pxRatio=en,Or.join=hA,Or.fmtDate=rh,Or.tzDate=CA,Or.sync=Bm;{Or.addGap=iS,Or.clipGaps=sc;let n=Or.paths={points:Km};n.linear=Ym,n.stepped=aS,n.bars=lS,n.spline=uS}var rv,iv;function xS(){return iv||(iv=1,rv=function(n,t,e,r,f){var g,m;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(f===void 0)f=n.length-1;else if(f=f|0,f<r||f>=n.length)throw new RangeError("invalid upper bound");for(;r<=f;)if(g=r+(f-r>>>1),m=+e(n[g],t,g,n),m<0)r=g+1;else if(m>0)f=g-1;else return g;return~r}),rv}var CS=xS();const fD=gr("z",El(CS));var yh,ov;function kS(){if(ov)return yh;ov=1;function n(t,e,r){var f=-1,g=t.length;e<0&&(e=-e>g?0:g+e),r=r>g?g:r,r<0&&(r+=g),g=e>r?0:r-e>>>0,e>>>=0;for(var m=Array(g);++f<g;)m[f]=t[f+e];return m}return yh=n,yh}var bh,sv;function AS(){if(sv)return bh;sv=1;var n=kS();function t(e,r,f){var g=e.length;return f=f===void 0?g:f,!r&&f>=g?e:n(e,r,f)}return bh=t,bh}var wh,av;function lv(){if(av)return wh;av=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="\\u200d",w=RegExp("["+m+n+f+g+"]");function h(d){return w.test(d)}return wh=h,wh}var xh,cv;function SS(){if(cv)return xh;cv=1;function n(t){return t.split("")}return xh=n,xh}var Ch,uv;function _S(){if(uv)return Ch;uv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="["+n+"]",w="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",a="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=d+"?",s="["+g+"]?",p="(?:"+c+"(?:"+[a,l,u].join("|")+")"+s+i+")*",b=s+i+p,x="(?:"+[a+w+"?",w,l,u,m].join("|")+")",R=RegExp(h+"(?="+h+")|"+x+b,"g");function _(k){return k.match(R)||[]}return Ch=_,Ch}var kh,hv;function $S(){if(hv)return kh;hv=1;var n=SS(),t=lv(),e=_S();function r(f){return t(f)?e(f):n(f)}return kh=r,kh}var Ah,dv;function TS(){if(dv)return Ah;dv=1;var n=typeof Yo=="object"&&Yo&&Yo.Object===Object&&Yo;return Ah=n,Ah}var Sh,pv;function MS(){if(pv)return Sh;pv=1;var n=TS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Sh=e,Sh}var _h,fv;function $h(){if(fv)return _h;fv=1;var n=MS(),t=n.Symbol;return _h=t,_h}var Th,gv;function IS(){if(gv)return Th;gv=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,g=Array(f);++r<f;)g[r]=e(t[r],r,t);return g}return Th=n,Th}var Mh,mv;function ES(){if(mv)return Mh;mv=1;var n=Array.isArray;return Mh=n,Mh}var Ih,vv;function RS(){if(vv)return Ih;vv=1;var n=$h(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function g(m){var w=e.call(m,f),h=m[f];try{m[f]=void 0;var d=!0}catch{}var a=r.call(m);return d&&(w?m[f]=h:delete m[f]),a}return Ih=g,Ih}var Eh,yv;function LS(){if(yv)return Eh;yv=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Eh=e,Eh}var Rh,bv;function OS(){if(bv)return Rh;bv=1;var n=$h(),t=RS(),e=LS(),r="[object Null]",f="[object Undefined]",g=n?n.toStringTag:void 0;function m(w){return w==null?w===void 0?f:r:g&&g in Object(w)?t(w):e(w)}return Rh=m,Rh}var Lh,wv;function NS(){if(wv)return Lh;wv=1;function n(t){return t!=null&&typeof t=="object"}return Lh=n,Lh}var Oh,xv;function DS(){if(xv)return Oh;xv=1;var n=OS(),t=NS(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return Oh=r,Oh}var Nh,Cv;function FS(){if(Cv)return Nh;Cv=1;var n=$h(),t=IS(),e=ES(),r=DS(),f=n?n.prototype:void 0,g=f?f.toString:void 0;function m(w){if(typeof w=="string")return w;if(e(w))return t(w,m)+"";if(r(w))return g?g.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Nh=m,Nh}var Dh,kv;function uc(){if(kv)return Dh;kv=1;var n=FS();function t(e){return e==null?"":n(e)}return Dh=t,Dh}var Fh,Av;function PS(){if(Av)return Fh;Av=1;var n=AS(),t=lv(),e=$S(),r=uc();function f(g){return function(m){m=r(m);var w=t(m)?e(m):void 0,h=w?w[0]:m.charAt(0),d=w?n(w,1).join(""):m.slice(1);return h[g]()+d}}return Fh=f,Fh}var Ph,Sv;function _v(){if(Sv)return Ph;Sv=1;var n=PS(),t=n("toUpperCase");return Ph=t,Ph}var WS=_v();const BS=El(WS);var Wh,$v;function zS(){if($v)return Wh;$v=1;var n=uc(),t=_v();function e(r){return t(n(r).toLowerCase())}return Wh=e,Wh}var Bh,Tv;function HS(){if(Tv)return Bh;Tv=1;function n(t,e,r,f){var g=-1,m=t==null?0:t.length;for(f&&m&&(r=t[++g]);++g<m;)r=e(r,t[g],g,t);return r}return Bh=n,Bh}var zh,Mv;function jS(){if(Mv)return zh;Mv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return zh=n,zh}var Hh,Iv;function US(){if(Iv)return Hh;Iv=1;var n=jS(),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 Hh=e,Hh}var jh,Ev;function VS(){if(Ev)return jh;Ev=1;var n=US(),t=uc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",m=r+f+g,w="["+m+"]",h=RegExp(w,"g");function d(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return jh=d,jh}var Uh,Rv;function qS(){if(Rv)return Uh;Rv=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Uh=t,Uh}var Vh,Lv;function KS(){if(Lv)return Vh;Lv=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 Vh=t,Vh}var qh,Ov;function GS(){if(Ov)return qh;Ov=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\u2700-\\u27bf",m="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\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",u="\\ufe0e\\ufe0f",c=w+h+d+a,i="['’]",s="["+c+"]",p="["+f+"]",b="\\d+",x="["+g+"]",R="["+m+"]",_="[^"+n+c+b+g+m+l+"]",k="\\ud83c[\\udffb-\\udfff]",C="(?:"+p+"|"+k+")",L="[^"+n+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+l+"]",z="\\u200d",P="(?:"+R+"|"+_+")",O="(?:"+I+"|"+_+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+z+"(?:"+[L,D,E].join("|")+")"+B+N+")*",K="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=B+N+U,he="(?:"+[x,D,E].join("|")+")"+J,ne=RegExp([I+"?"+R+"+"+$+"(?="+[s,I,"$"].join("|")+")",O+"+"+A+"(?="+[s,I+P,"$"].join("|")+")",I+"?"+P+"+"+$,I+"+"+A,Q,K,b,he].join("|"),"g");function le(se){return se.match(ne)||[]}return qh=le,qh}var Kh,Nv;function YS(){if(Nv)return Kh;Nv=1;var n=qS(),t=KS(),e=uc(),r=GS();function f(g,m,w){return g=e(g),m=w?void 0:m,m===void 0?t(g)?r(g):n(g):g.match(m)||[]}return Kh=f,Kh}var Gh,Dv;function XS(){if(Dv)return Gh;Dv=1;var n=HS(),t=VS(),e=YS(),r="['’]",f=RegExp(r,"g");function g(m){return function(w){return n(e(t(w).replace(f,"")),m,"")}}return Gh=g,Gh}var Yh,Fv;function ZS(){if(Fv)return Yh;Fv=1;var n=zS(),t=XS(),e=t(function(r,f,g){return f=f.toLowerCase(),r+(g?n(f):f)});return Yh=e,Yh}var QS=ZS();const JS=El(QS),e_=Object.assign({"./ArrayWidget.vue":()=>ot(()=>it.import("./ArrayWidget-CR7Wpw3N-176887f853f7d6bb2a36.js"),void 0),"./ArrayplotWidget.vue":()=>ot(()=>it.import("./ArrayplotWidget-DDEd-jRJ-d743be1e20e87128bbe6.js"),void 0),"./BlockWidget.vue":()=>ot(()=>it.import("./BlockWidget-CfFgdNSv-267f136d2a5b4dc039d9.js"),void 0),"./ButtonWidget.vue":()=>ot(()=>it.import("./ButtonWidget-BaSvtElA-14645e244ce5c36e42ed.js"),void 0),"./CanvasWidget.vue":()=>ot(()=>it.import("./CanvasWidget-DcwDi5Zk-7dd5d6aae08f54c7b819.js"),void 0),"./CanvasdotWidget.vue":()=>ot(()=>it.import("./CanvasdotWidget--awMOWyz-3a785daaffb3a09febea.js"),void 0),"./CanvasimageWidget.vue":()=>ot(()=>it.import("./CanvasimageWidget-YP1pCtvb-27d1f2ec1b91ebbda99b.js"),void 0),"./CanvasimagevalueWidget.vue":()=>ot(()=>it.import("./CanvasimagevalueWidget-CjVHb2uj-35e6d2e9087dad569a1d.js"),void 0),"./CanvaslabelWidget.vue":()=>ot(()=>it.import("./CanvaslabelWidget-DoMplTTO-c5eeedf02c8b5155c203.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>ot(()=>it.import("./CanvaslabelvalueWidget-Dyo_ogHn-a0ba678ec01e399ed7cc.js"),void 0),"./CanvaslineWidget.vue":()=>ot(()=>it.import("./CanvaslineWidget-D7W1TIxm-4e9041cc8ddedd697614.js"),void 0),"./CanvaslinevalueWidget.vue":()=>ot(()=>it.import("./CanvaslinevalueWidget-BOZyJuLE-160e46ae27784014e69f.js"),void 0),"./CheckbuttonWidget.vue":()=>ot(()=>it.import("./CheckbuttonWidget-B1E4BC6v-c44eef21d25d430b589f.js"),void 0),"./ComboboxWidget.vue":()=>ot(()=>it.import("./ComboboxWidget-BExUBH57-46b621490a86870b0bf3.js"),void 0),"./DateWidget.vue":()=>ot(()=>it.import("./DateWidget-_ZmPsi2l-5dfa47982ea359d4c95f.js"),void 0),"./DynamicWidget.vue":()=>ot(()=>it.import("./DynamicWidget-DHL7pbgW-fd40bfb8d009f46cb184.js"),void 0),"./FormatvalueWidget.vue":()=>ot(()=>it.import("./FormatvalueWidget-4C0vrL2i-444ffcd5e77248e56b89.js"),void 0),"./HorizontalWidget.vue":()=>ot(()=>it.import("./HorizontalWidget-DbEQYjFC-be957fb5d0b8ede6553d.js"),void 0),"./HorizontalboxWidget.vue":()=>ot(()=>it.import("./HorizontalboxWidget-CTomf_Iy-304104865c4011abe5fa.js"),void 0),"./HorizontallineWidget.vue":()=>ot(()=>it.import("./HorizontallineWidget-B7xx7ofY-7cf2af508651e82de819.js"),void 0),"./IframeWidget.vue":()=>ot(()=>it.import("./IframeWidget-DK7rbULe-6a2b6dfd46fc9bd53611.js"),void 0),"./ImageviewerWidget.vue":()=>ot(()=>it.import("./ImageviewerWidget-6d6Kl3W_-bd7fbbb24a269953ad2b.js"),void 0),"./LabelWidget.vue":()=>ot(()=>it.import("./LabelWidget-D71FfOSw-da0af6df7cdba0a19559.js"),void 0),"./LabelledWidget.vue":()=>ot(()=>it.import("./LabelledWidget-D2ir5kVU-4220940ca6fff3811eaf.js"),void 0),"./LabelprogressbarWidget.vue":()=>ot(()=>it.import("./LabelprogressbarWidget-C4_YbROz-af1348f20f36fc17a452.js"),void 0),"./LabelsparklineWidget.vue":()=>ot(()=>it.import("./LabelsparklineWidget-CdZ_pM2B-38755849b3ee9a9464f1.js"),void 0),"./LabelvalueWidget.vue":()=>ot(()=>it.import("./LabelvalueWidget-BS0EPY5h-ace628444c25b6872258.js"),void 0),"./LabelvaluedescWidget.vue":()=>ot(()=>it.import("./LabelvaluedescWidget-Cpr8_Voq-3a4e5345caf9d7dc788e.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>ot(()=>it.import("./LabelvaluelimitsbarWidget-DTcYbEQS-3456f71ab4e6256da910.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>ot(()=>it.import("./LabelvaluelimitscolumnWidget-D0ltQ9Ta-6909187f129b9dde8c57.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>ot(()=>it.import("./LabelvaluerangebarWidget-O8IHjvHs-14f31ecb6c931aeb9fa4.js"),void 0),"./LedWidget.vue":()=>ot(()=>it.import("./LedWidget-DUvJ2v8k-8a33f47de1ed346752ed.js"),void 0),"./LimitsbarWidget.vue":()=>ot(()=>it.import("./LimitsbarWidget-BehZv0-k-6de9e1e05ac2a5e6488e.js"),void 0),"./LimitscolorWidget.vue":()=>ot(()=>it.import("./LimitscolorWidget-FXT0ZPPH-532322ea8170b9cb1ee3.js"),void 0),"./LimitscolumnWidget.vue":()=>ot(()=>it.import("./LimitscolumnWidget-CjBy-CCI-1996f6e1f1f8ee93e0fd.js"),void 0),"./LinegraphWidget.vue":()=>ot(()=>it.import("./LinegraphWidget-lmu_tFKd-230c6a69f0169bc621ba.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>ot(()=>it.import("./MatrixbycolumnsWidget-CCF7rCkV-fcc589a3edc77ef908e1.js"),void 0),"./ProgressbarWidget.vue":()=>ot(()=>it.import("./ProgressbarWidget-B5WN658S-29d45f87c22e23995b39.js"),void 0),"./RadiobuttonWidget.vue":()=>ot(()=>it.import("./RadiobuttonWidget-B_3nys46-3071468cc686a5c8f9a0.js"),void 0),"./RadiogroupWidget.vue":()=>ot(()=>it.import("./RadiogroupWidget-BiMIL9li-a0f3b03b061a94b1545e.js"),void 0),"./RangebarWidget.vue":()=>ot(()=>it.import("./RangebarWidget-Dn0GASdi-82fd8f392b9cf2969771.js"),void 0),"./RollupWidget.vue":()=>ot(()=>it.import("./RollupWidget-b62qcG5K-9a70ff49748658b3817b.js"),void 0),"./ScrollwindowWidget.vue":()=>ot(()=>it.import("./ScrollwindowWidget-Dn29gs-U-eec17a402fee2624423c.js"),void 0),"./SignalWidget.vue":()=>ot(()=>it.import("./SignalWidget-CLi6qask-d93f35aa7f06ca55449c.js"),void 0),"./SpacerWidget.vue":()=>ot(()=>it.import("./SpacerWidget-BCA3gdap-3c796580921227fa147d.js"),void 0),"./SparklineWidget.vue":()=>ot(()=>it.import("./SparklineWidget-D8mb4zLt-2838e4c7c52fda4bf4b6.js"),void 0),"./TabbookWidget.vue":()=>ot(()=>it.import("./TabbookWidget-Bkt4g02d-c8abb71a69eec88aa938.js"),void 0),"./TextboxWidget.vue":()=>ot(()=>it.import("./TextboxWidget-CR05wO-t-c5a73cf6ce7b53ecf053.js"),void 0),"./TextfieldWidget.vue":()=>ot(()=>it.import("./TextfieldWidget-Be_Pz2bF-1f54121643c0f4fb19fc.js"),void 0),"./TimeWidget.vue":()=>ot(()=>it.import("./TimeWidget-Dy8zpkC6-d80853a19127a39ee30f.js"),void 0),"./TitleWidget.vue":()=>ot(()=>it.import("./TitleWidget-BcmxUDzM-65ad2782f8634576d5dc.js"),void 0),"./ValueWidget.vue":()=>ot(()=>it.import("./ValueWidget-BxWrHkYY-3c7bdbf03b9009a62497.js"),void 0),"./ValuelimitsbarWidget.vue":()=>ot(()=>it.import("./ValuelimitsbarWidget-BdY02gqc-ca64f9c5d5b10156f431.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>ot(()=>it.import("./ValuelimitscolumnWidget-CuJ6rqtC-3a7e0dd7a421717d20d4.js"),void 0),"./ValuerangebarWidget.vue":()=>ot(()=>it.import("./ValuerangebarWidget-C5rolGDi-62745c9b744c5038a9e3.js"),void 0),"./VerticalWidget.vue":()=>ot(()=>it.import("./VerticalWidget-DsnEzKZ2-e29dfe83757fcc80eb21.js"),void 0),"./VerticalboxWidget.vue":()=>ot(()=>it.import("./VerticalboxWidget-CzDgveBl-d03cc4541d28091a07cd.js"),void 0)}),t_=Object.entries(e_).reduce((n,[t,e])=>{t=t.split("/").pop();const r=BS(JS(t.replace(/\.\w+$/,"")));return{...n,[r]:Sp(e)}},{}),gD=gr("U",{components:t_});function Pv(n,t){return function(){return n.apply(t,arguments)}}const{toString:n_}=Object.prototype,{getPrototypeOf:Xh}=Object,{iterator:hc,toStringTag:Wv}=Symbol,dc=(n=>t=>{const e=n_.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ji=n=>(n=n.toLowerCase(),t=>dc(t)===n),pc=n=>t=>typeof t===n,{isArray:ga}=Array,ma=pc("undefined");function Qa(n){return n!==null&&!ma(n)&&n.constructor!==null&&!ma(n.constructor)&&ai(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Bv=Ji("ArrayBuffer");function r_(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Bv(n.buffer),t}const i_=pc("string"),ai=pc("function"),zv=pc("number"),Ja=n=>n!==null&&typeof n=="object",o_=n=>n===!0||n===!1,fc=n=>{if(dc(n)!=="object")return!1;const t=Xh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Wv in n)&&!(hc in n)},s_=n=>{if(!Ja(n)||Qa(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},a_=Ji("Date"),l_=Ji("File"),c_=Ji("Blob"),u_=Ji("FileList"),h_=n=>Ja(n)&&ai(n.pipe),d_=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ai(n.append)&&((t=dc(n))==="formdata"||t==="object"&&ai(n.toString)&&n.toString()==="[object FormData]"))},p_=Ji("URLSearchParams"),[f_,g_,m_,v_]=["ReadableStream","Request","Response","Headers"].map(Ji),y_=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function el(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),ga(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{if(Qa(n))return;const g=e?Object.getOwnPropertyNames(n):Object.keys(n),m=g.length;let w;for(r=0;r<m;r++)w=g[r],t.call(null,n[w],w,n)}}function Hv(n,t){if(Qa(n))return null;t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const Es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jv=n=>!ma(n)&&n!==Es;function Zh(){const{caseless:n,skipUndefined:t}=jv(this)&&this||{},e={},r=(f,g)=>{const m=n&&Hv(e,g)||g;fc(e[m])&&fc(f)?e[m]=Zh(e[m],f):fc(f)?e[m]=Zh({},f):ga(f)?e[m]=f.slice():(!t||!ma(f))&&(e[m]=f)};for(let f=0,g=arguments.length;f<g;f++)arguments[f]&&el(arguments[f],r);return e}const b_=(n,t,e,{allOwnKeys:r}={})=>(el(t,(f,g)=>{e&&ai(f)?n[g]=Pv(f,e):n[g]=f},{allOwnKeys:r}),n),w_=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),x_=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},C_=(n,t,e,r)=>{let f,g,m;const w={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),g=f.length;g-- >0;)m=f[g],(!r||r(m,n,t))&&!w[m]&&(t[m]=n[m],w[m]=!0);n=e!==!1&&Xh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},k_=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},A_=n=>{if(!n)return null;if(ga(n))return n;let t=n.length;if(!zv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},S_=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Xh(Uint8Array)),__=(n,t)=>{const e=(n&&n[hc]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},$_=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},T_=Ji("HTMLFormElement"),M_=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Uv=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),I_=Ji("RegExp"),Vv=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};el(e,(f,g)=>{let m;(m=t(f,g,n))!==!1&&(r[g]=m||f)}),Object.defineProperties(n,r)},E_=n=>{Vv(n,(t,e)=>{if(ai(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(ai(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},R_=(n,t)=>{const e={},r=f=>{f.forEach(g=>{e[g]=!0})};return ga(n)?r(n):r(String(n).split(t)),e},L_=()=>{},O_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function N_(n){return!!(n&&ai(n.append)&&n[Wv]==="FormData"&&n[hc])}const D_=n=>{const t=new Array(10),e=(r,f)=>{if(Ja(r)){if(t.indexOf(r)>=0)return;if(Qa(r))return r;if(!("toJSON"in r)){t[f]=r;const g=ga(r)?[]:{};return el(r,(m,w)=>{const h=e(m,f+1);!ma(h)&&(g[w]=h)}),t[f]=void 0,g}}return r};return e(n,0)},F_=Ji("AsyncFunction"),P_=n=>n&&(Ja(n)||ai(n))&&ai(n.then)&&ai(n.catch),qv=((n,t)=>n?setImmediate:t?((e,r)=>(Es.addEventListener("message",({source:f,data:g})=>{f===Es&&g===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Es.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ai(Es.postMessage)),W_=typeof queueMicrotask<"u"?queueMicrotask.bind(Es):typeof process<"u"&&process.nextTick||qv,B_=n=>n!=null&&ai(n[hc]),Se={isArray:ga,isArrayBuffer:Bv,isBuffer:Qa,isFormData:d_,isArrayBufferView:r_,isString:i_,isNumber:zv,isBoolean:o_,isObject:Ja,isPlainObject:fc,isEmptyObject:s_,isReadableStream:f_,isRequest:g_,isResponse:m_,isHeaders:v_,isUndefined:ma,isDate:a_,isFile:l_,isBlob:c_,isRegExp:I_,isFunction:ai,isStream:h_,isURLSearchParams:p_,isTypedArray:S_,isFileList:u_,forEach:el,merge:Zh,extend:b_,trim:y_,stripBOM:w_,inherits:x_,toFlatObject:C_,kindOf:dc,kindOfTest:Ji,endsWith:k_,toArray:A_,forEachEntry:__,matchAll:$_,isHTMLForm:T_,hasOwnProperty:Uv,hasOwnProp:Uv,reduceDescriptors:Vv,freezeMethods:E_,toObjectSet:R_,toCamelCase:M_,noop:L_,toFiniteNumber:O_,findKey:Hv,global:Es,isContextDefined:jv,isSpecCompliantForm:N_,toJSONObject:D_,isAsyncFn:F_,isThenable:P_,setImmediate:qv,asap:W_,isIterable:B_};function At(n,t,e,r,f){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),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}Se.inherits(At,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:Se.toJSONObject(this.config),code:this.code,status:this.status}}});const Kv=At.prototype,Gv={};["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=>{Gv[n]={value:n}}),Object.defineProperties(At,Gv),Object.defineProperty(Kv,"isAxiosError",{value:!0}),At.from=(n,t,e,r,f,g)=>{const m=Object.create(Kv);Se.toFlatObject(n,m,function(d){return d!==Error.prototype},d=>d!=="isAxiosError");const w=n&&n.message?n.message:"Error",h=t==null&&n?n.code:t;return At.call(m,w,h,e,r,f),n&&m.cause==null&&Object.defineProperty(m,"cause",{value:n,configurable:!0}),m.name=n&&n.name||"Error",g&&Object.assign(m,g),m};const z_=null;function Qh(n){return Se.isPlainObject(n)||Se.isArray(n)}function Yv(n){return Se.endsWith(n,"[]")?n.slice(0,-2):n}function Xv(n,t,e){return n?n.concat(t).map(function(r,f){return r=Yv(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function H_(n){return Se.isArray(n)&&!n.some(Qh)}const j_=Se.toFlatObject(Se,{},null,function(n){return/^is[A-Z]/.test(n)});function gc(n,t,e){if(!Se.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Se.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Se.isUndefined(i[c])});const r=e.metaTokens,f=e.visitor||d,g=e.dots,m=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(f))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(Se.isDate(c))return c.toISOString();if(Se.isBoolean(c))return c.toString();if(!w&&Se.isBlob(c))throw new At("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(c)||Se.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,s){let p=c;if(c&&!s&&typeof c=="object"){if(Se.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Se.isArray(c)&&H_(c)||(Se.isFileList(c)||Se.endsWith(i,"[]"))&&(p=Se.toArray(c)))return i=Yv(i),p.forEach(function(b,x){!(Se.isUndefined(b)||b===null)&&t.append(m===!0?Xv([i],x,g):m===null?i:i+"[]",h(b))}),!1}return Qh(c)?!0:(t.append(Xv(s,i,g),h(c)),!1)}const a=[],l=Object.assign(j_,{defaultVisitor:d,convertValue:h,isVisitable:Qh});function u(c,i){if(!Se.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));a.push(c),Se.forEach(c,function(s,p){(!(Se.isUndefined(s)||s===null)&&f.call(t,s,Se.isString(p)?p.trim():p,i,l))===!0&&u(s,i?i.concat(p):[p])}),a.pop()}}if(!Se.isObject(n))throw new TypeError("data must be an object");return u(n),t}function Zv(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Jh(n,t){this._pairs=[],n&&gc(n,this,t)}const Qv=Jh.prototype;Qv.append=function(n,t){this._pairs.push([n,t])},Qv.toString=function(n){const t=n?function(e){return n.call(this,e,Zv)}:Zv;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function U_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jv(n,t,e){if(!t)return n;const r=e&&e.encode||U_;Se.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let g;if(f?g=f(t,e):g=Se.isURLSearchParams(t)?t.toString():new Jh(t,e).toString(r),g){const m=n.indexOf("#");m!==-1&&(n=n.slice(0,m)),n+=(n.indexOf("?")===-1?"?":"&")+g}return n}let ey=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Se.forEach(this.handlers,function(e){e!==null&&t(e)})}};const ty={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V_=typeof URLSearchParams<"u"?URLSearchParams:Jh,q_=typeof FormData<"u"?FormData:null,K_=typeof Blob<"u"?Blob:null,G_={isBrowser:!0,classes:{URLSearchParams:V_,FormData:q_,Blob:K_},protocols:["http","https","file","blob","url","data"]},ed=typeof window<"u"&&typeof document<"u",td=typeof navigator=="object"&&navigator||void 0,Y_=ed&&(!td||["ReactNative","NativeScript","NS"].indexOf(td.product)<0),X_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Z_=ed&&window.location.href||"http://localhost",Q_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ed,hasStandardBrowserEnv:Y_,hasStandardBrowserWebWorkerEnv:X_,navigator:td,origin:Z_},Symbol.toStringTag,{value:"Module"})),Nr={...Q_,...G_};function J_(n,t){return gc(n,new Nr.classes.URLSearchParams,{visitor:function(e,r,f,g){return Nr.isNode&&Se.isBuffer(e)?(this.append(r,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)},...t})}function e$(n){return Se.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function t$(n){const t={},e=Object.keys(n);let r;const f=e.length;let g;for(r=0;r<f;r++)g=e[r],t[g]=n[g];return t}function ny(n){function t(e,r,f,g){let m=e[g++];if(m==="__proto__")return!0;const w=Number.isFinite(+m),h=g>=e.length;return m=!m&&Se.isArray(f)?f.length:m,h?(Se.hasOwnProp(f,m)?f[m]=[f[m],r]:f[m]=r,!w):((!f[m]||!Se.isObject(f[m]))&&(f[m]=[]),t(e,r,f[m],g)&&Se.isArray(f[m])&&(f[m]=t$(f[m])),!w)}if(Se.isFormData(n)&&Se.isFunction(n.entries)){const e={};return Se.forEachEntry(n,(r,f)=>{t(e$(r),f,e,0)}),e}return null}function n$(n,t,e){if(Se.isString(n))try{return(t||JSON.parse)(n),Se.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const tl={transitional:ty,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=Se.isObject(n);if(f&&Se.isHTMLForm(n)&&(n=new FormData(n)),Se.isFormData(n))return r?JSON.stringify(ny(n)):n;if(Se.isArrayBuffer(n)||Se.isBuffer(n)||Se.isStream(n)||Se.isFile(n)||Se.isBlob(n)||Se.isReadableStream(n))return n;if(Se.isArrayBufferView(n))return n.buffer;if(Se.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let g;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return J_(n,this.formSerializer).toString();if((g=Se.isFileList(n))||e.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return gc(g?{"files[]":n}:n,m&&new m,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),n$(n)):n}],transformResponse:[function(n){const t=this.transitional||tl.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Se.isResponse(n)||Se.isReadableStream(n))return n;if(n&&Se.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(g){if(f)throw g.name==="SyntaxError"?At.from(g,At.ERR_BAD_RESPONSE,this,null,this.response):g}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],n=>{tl.headers[n]={}});const r$=Se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),i$=n=>{const t={};let e,r,f;return n&&n.split(`
|
|
1488
|
+
}`;var Et=tw(function(){return $t(te,it+"return "+De).apply(e,ue)});if(Et.source=De,pp(Et))throw Et;return Et}function eN(o){return sn(o).toLowerCase()}function tN(o){return sn(o).toUpperCase()}function nN(o,v,M){if(o=sn(o),o&&(M||v===e))return bn(o);if(!o||!(v=Ii(v)))return o;var j=wt(o),G=wt(v),te=_t(j,G),ue=ir(j,G)+1;return ps(j,te,ue).join("")}function rN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.slice(0,Nt(o)+1);if(!o||!(v=Ii(v)))return o;var j=wt(o),G=ir(j,wt(v))+1;return ps(j,0,G).join("")}function iN(o,v,M){if(o=sn(o),o&&(M||v===e))return o.replace(An,"");if(!o||!(v=Ii(v)))return o;var j=wt(o),G=_t(j,wt(v));return ps(j,G).join("")}function oN(o,v){var M=I,j=z;if(Fn(v)){var G="separator"in v?v.separator:G;M="length"in v?Mt(v.length):M,j="omission"in v?Ii(v.omission):j}o=sn(o);var te=o.length;if(oe(o)){var ue=wt(o);te=ue.length}if(M>=te)return o;var pe=M-Pt(j);if(pe<1)return j;var ye=ue?ps(ue,0,pe).join(""):o.slice(0,pe);if(G===e)return ye+j;if(ue&&(pe+=ye.length-pe),fp(G)){if(o.slice(pe).search(G)){var Ee,Re=ye;for(G.global||(G=Jr(G.source,sn(Fr.exec(G))+"g")),G.lastIndex=0;Ee=G.exec(Re);)var De=Ee.index;ye=ye.slice(0,De===e?pe:De)}}else if(o.indexOf(Ii(G),pe)!=pe){var Ge=ye.lastIndexOf(G);Ge>-1&&(ye=ye.slice(0,Ge))}return ye+j}function sN(o){return o=sn(o),o&&ui.test(o)?o.replace(Bn,dt):o}var aN=Ta(function(o,v,M){return o+(M?" ":"")+v.toUpperCase()}),vp=n0("toUpperCase");function ew(o,v,M){return o=sn(o),v=M?e:v,v===e?ge(o)?En(o):Y(o):o.match(v)||[]}var tw=Dt(function(o,v){try{return kr(o,e,v)}catch(M){return pp(M)?M:new ut(M)}}),lN=zo(function(o,v){return Mr(v,function(M){M=Ao(M),Wo(o,M,hp(o[M],o))}),o});function cN(o){var v=o==null?0:o.length,M=pt();return o=v?y(o,function(j){if(typeof j[1]!="function")throw new dn(m);return[M(j[0]),j[1]]}):[],Dt(function(j){for(var G=-1;++G<v;){var te=o[G];if(kr(te[0],this,j))return kr(te[1],this,j)}})}function uN(o){return NE(Ui(o,l))}function yp(o){return function(){return o}}function hN(o,v){return o==null||o!==o?v:o}var dN=i0(),pN=i0(!0);function wi(o){return o}function bp(o){return Ob(typeof o=="function"?o:Ui(o,l))}function fN(o){return Db(Ui(o,l))}function gN(o,v){return Fb(o,Ui(v,l))}var mN=Dt(function(o,v){return function(M){return yl(M,o,v)}}),vN=Dt(function(o,v){return function(M){return yl(o,M,v)}});function wp(o,v,M){var j=$r(v),G=Vc(v,j);M==null&&!(Fn(v)&&(G.length||!j.length))&&(M=v,v=o,o=this,G=Vc(v,$r(v)));var te=!(Fn(M)&&"chain"in M)||!!M.chain,ue=jo(o);return Mr(G,function(pe){var ye=v[pe];o[pe]=ye,ue&&(o.prototype[pe]=function(){var Ee=this.__chain__;if(te||Ee){var Re=o(this.__wrapped__),De=Re.__actions__=vi(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Re.__chain__=Ee,Re}return ye.apply(o,T([this.value()],arguments))})}),o}function yN(){return hn._===this&&(hn._=UI),this}function xp(){}function bN(o){return o=Mt(o),Dt(function(v){return Pb(v,o)})}var wN=Qd(y),xN=Qd(Ir),CN=Qd(W);function nw(o){return op(o)?we(Ao(o)):QE(o)}function kN(o){return function(v){return o==null?e:qs(o,v)}}var AN=s0(),SN=s0(!0);function Cp(){return[]}function kp(){return!1}function _N(){return{}}function $N(){return""}function TN(){return!0}function MN(o,v){if(o=Mt(o),o<1||o>U)return[];var M=J,j=Br(o,J);v=pt(v),o-=J;for(var G=Ze(j,v);++M<o;)v(M);return G}function IN(o){return Ct(o)?y(o,Ao):Ei(o)?[o]:vi(C0(sn(o)))}function EN(o){var v=++HI;return sn(o)+v}var RN=Zc(function(o,v){return o+v},0),LN=Jd("ceil"),ON=Zc(function(o,v){return o/v},1),NN=Jd("floor");function DN(o){return o&&o.length?Uc(o,wi,Pd):e}function FN(o,v){return o&&o.length?Uc(o,pt(v,2),Pd):e}function PN(o){return ve(o,wi)}function WN(o,v){return ve(o,pt(v,2))}function BN(o){return o&&o.length?Uc(o,wi,Hd):e}function zN(o,v){return o&&o.length?Uc(o,pt(v,2),Hd):e}var HN=Zc(function(o,v){return o*v},1),jN=Jd("round"),UN=Zc(function(o,v){return o-v},0);function VN(o){return o&&o.length?st(o,wi):0}function qN(o,v){return o&&o.length?st(o,pt(v,2)):0}return ee.after=fO,ee.ary=L0,ee.assign=t2,ee.assignIn=K0,ee.assignInWith=uu,ee.assignWith=n2,ee.at=r2,ee.before=O0,ee.bind=hp,ee.bindAll=lN,ee.bindKey=N0,ee.castArray=_O,ee.chain=I0,ee.chunk=NR,ee.compact=DR,ee.concat=FR,ee.cond=cN,ee.conforms=uN,ee.constant=yp,ee.countBy=VL,ee.create=i2,ee.curry=D0,ee.curryRight=F0,ee.debounce=P0,ee.defaults=o2,ee.defaultsDeep=s2,ee.defer=gO,ee.delay=mO,ee.difference=PR,ee.differenceBy=WR,ee.differenceWith=BR,ee.drop=zR,ee.dropRight=HR,ee.dropRightWhile=jR,ee.dropWhile=UR,ee.fill=VR,ee.filter=KL,ee.flatMap=XL,ee.flatMapDeep=ZL,ee.flatMapDepth=QL,ee.flatten=_0,ee.flattenDeep=qR,ee.flattenDepth=KR,ee.flip=vO,ee.flow=dN,ee.flowRight=pN,ee.fromPairs=GR,ee.functions=p2,ee.functionsIn=f2,ee.groupBy=JL,ee.initial=XR,ee.intersection=ZR,ee.intersectionBy=QR,ee.intersectionWith=JR,ee.invert=m2,ee.invertBy=v2,ee.invokeMap=tO,ee.iteratee=bp,ee.keyBy=nO,ee.keys=$r,ee.keysIn=bi,ee.map=iu,ee.mapKeys=b2,ee.mapValues=w2,ee.matches=fN,ee.matchesProperty=gN,ee.memoize=su,ee.merge=x2,ee.mergeWith=G0,ee.method=mN,ee.methodOf=vN,ee.mixin=wp,ee.negate=au,ee.nthArg=bN,ee.omit=C2,ee.omitBy=k2,ee.once=yO,ee.orderBy=rO,ee.over=wN,ee.overArgs=bO,ee.overEvery=xN,ee.overSome=CN,ee.partial=dp,ee.partialRight=W0,ee.partition=iO,ee.pick=A2,ee.pickBy=Y0,ee.property=nw,ee.propertyOf=kN,ee.pull=rL,ee.pullAll=T0,ee.pullAllBy=iL,ee.pullAllWith=oL,ee.pullAt=sL,ee.range=AN,ee.rangeRight=SN,ee.rearg=wO,ee.reject=aO,ee.remove=aL,ee.rest=xO,ee.reverse=cp,ee.sampleSize=cO,ee.set=_2,ee.setWith=$2,ee.shuffle=uO,ee.slice=lL,ee.sortBy=pO,ee.sortedUniq=gL,ee.sortedUniqBy=mL,ee.split=X2,ee.spread=CO,ee.tail=vL,ee.take=yL,ee.takeRight=bL,ee.takeRightWhile=wL,ee.takeWhile=xL,ee.tap=DL,ee.throttle=kO,ee.thru=ru,ee.toArray=U0,ee.toPairs=X0,ee.toPairsIn=Z0,ee.toPath=IN,ee.toPlainObject=q0,ee.transform=T2,ee.unary=AO,ee.union=CL,ee.unionBy=kL,ee.unionWith=AL,ee.uniq=SL,ee.uniqBy=_L,ee.uniqWith=$L,ee.unset=M2,ee.unzip=up,ee.unzipWith=M0,ee.update=I2,ee.updateWith=E2,ee.values=Ea,ee.valuesIn=R2,ee.without=TL,ee.words=ew,ee.wrap=SO,ee.xor=ML,ee.xorBy=IL,ee.xorWith=EL,ee.zip=RL,ee.zipObject=LL,ee.zipObjectDeep=OL,ee.zipWith=NL,ee.entries=X0,ee.entriesIn=Z0,ee.extend=K0,ee.extendWith=uu,wp(ee,ee),ee.add=RN,ee.attempt=tw,ee.camelCase=D2,ee.capitalize=Q0,ee.ceil=LN,ee.clamp=L2,ee.clone=$O,ee.cloneDeep=MO,ee.cloneDeepWith=IO,ee.cloneWith=TO,ee.conformsTo=EO,ee.deburr=J0,ee.defaultTo=hN,ee.divide=ON,ee.endsWith=F2,ee.eq=so,ee.escape=P2,ee.escapeRegExp=W2,ee.every=qL,ee.find=GL,ee.findIndex=A0,ee.findKey=a2,ee.findLast=YL,ee.findLastIndex=S0,ee.findLastKey=l2,ee.floor=NN,ee.forEach=E0,ee.forEachRight=R0,ee.forIn=c2,ee.forInRight=u2,ee.forOwn=h2,ee.forOwnRight=d2,ee.get=gp,ee.gt=RO,ee.gte=LO,ee.has=g2,ee.hasIn=mp,ee.head=$0,ee.identity=wi,ee.includes=eO,ee.indexOf=YR,ee.inRange=O2,ee.invoke=y2,ee.isArguments=Ys,ee.isArray=Ct,ee.isArrayBuffer=OO,ee.isArrayLike=yi,ee.isArrayLikeObject=Qn,ee.isBoolean=NO,ee.isBuffer=fs,ee.isDate=DO,ee.isElement=FO,ee.isEmpty=PO,ee.isEqual=WO,ee.isEqualWith=BO,ee.isError=pp,ee.isFinite=zO,ee.isFunction=jo,ee.isInteger=B0,ee.isLength=lu,ee.isMap=z0,ee.isMatch=HO,ee.isMatchWith=jO,ee.isNaN=UO,ee.isNative=VO,ee.isNil=KO,ee.isNull=qO,ee.isNumber=H0,ee.isObject=Fn,ee.isObjectLike=qn,ee.isPlainObject=Al,ee.isRegExp=fp,ee.isSafeInteger=GO,ee.isSet=j0,ee.isString=cu,ee.isSymbol=Ei,ee.isTypedArray=Ia,ee.isUndefined=YO,ee.isWeakMap=XO,ee.isWeakSet=ZO,ee.join=eL,ee.kebabCase=B2,ee.last=qi,ee.lastIndexOf=tL,ee.lowerCase=z2,ee.lowerFirst=H2,ee.lt=QO,ee.lte=JO,ee.max=DN,ee.maxBy=FN,ee.mean=PN,ee.meanBy=WN,ee.min=BN,ee.minBy=zN,ee.stubArray=Cp,ee.stubFalse=kp,ee.stubObject=_N,ee.stubString=$N,ee.stubTrue=TN,ee.multiply=HN,ee.nth=nL,ee.noConflict=yN,ee.noop=xp,ee.now=ou,ee.pad=j2,ee.padEnd=U2,ee.padStart=V2,ee.parseInt=q2,ee.random=N2,ee.reduce=oO,ee.reduceRight=sO,ee.repeat=K2,ee.replace=G2,ee.result=S2,ee.round=jN,ee.runInContext=fe,ee.sample=lO,ee.size=hO,ee.snakeCase=Y2,ee.some=dO,ee.sortedIndex=cL,ee.sortedIndexBy=uL,ee.sortedIndexOf=hL,ee.sortedLastIndex=dL,ee.sortedLastIndexBy=pL,ee.sortedLastIndexOf=fL,ee.startCase=Z2,ee.startsWith=Q2,ee.subtract=UN,ee.sum=VN,ee.sumBy=qN,ee.template=J2,ee.times=MN,ee.toFinite=Uo,ee.toInteger=Mt,ee.toLength=V0,ee.toLower=eN,ee.toNumber=Ki,ee.toSafeInteger=e2,ee.toString=sn,ee.toUpper=tN,ee.trim=nN,ee.trimEnd=rN,ee.trimStart=iN,ee.truncate=oN,ee.unescape=sN,ee.uniqueId=EN,ee.upperCase=aN,ee.upperFirst=vp,ee.each=E0,ee.eachRight=R0,ee.first=$0,wp(ee,function(){var o={};return Co(ee,function(v,M){cn.call(ee.prototype,M)||(o[M]=v)}),o}(),{chain:!1}),ee.VERSION=r,Mr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),Mr(["drop","take"],function(o,v){Vt.prototype[o]=function(M){M=M===e?1:gr(Mt(M),0);var j=this.__filtered__&&!v?new Vt(this):this.clone();return j.__filtered__?j.__takeCount__=Br(M,j.__takeCount__):j.__views__.push({size:Br(M,J),type:o+(j.__dir__<0?"Right":"")}),j},Vt.prototype[o+"Right"]=function(M){return this.reverse()[o](M).reverse()}}),Mr(["filter","map","takeWhile"],function(o,v){var M=v+1,j=M==$||M==N;Vt.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:pt(G,3),type:M}),te.__filtered__=te.__filtered__||j,te}}),Mr(["head","last"],function(o,v){var M="take"+(v?"Right":"");Vt.prototype[o]=function(){return this[M](1).value()[0]}}),Mr(["initial","tail"],function(o,v){var M="drop"+(v?"":"Right");Vt.prototype[o]=function(){return this.__filtered__?new Vt(this):this[M](1)}}),Vt.prototype.compact=function(){return this.filter(wi)},Vt.prototype.find=function(o){return this.filter(o).head()},Vt.prototype.findLast=function(o){return this.reverse().find(o)},Vt.prototype.invokeMap=Dt(function(o,v){return typeof o=="function"?new Vt(this):this.map(function(M){return yl(M,o,v)})}),Vt.prototype.reject=function(o){return this.filter(au(pt(o)))},Vt.prototype.slice=function(o,v){o=Mt(o);var M=this;return M.__filtered__&&(o>0||v<0)?new Vt(M):(o<0?M=M.takeRight(-o):o&&(M=M.drop(o)),v!==e&&(v=Mt(v),M=v<0?M.dropRight(-v):M.take(v-o)),M)},Vt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Vt.prototype.toArray=function(){return this.take(J)},Co(Vt.prototype,function(o,v){var M=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),G=ee[j?"take"+(v=="last"?"Right":""):v],te=j||/^find/.test(v);G&&(ee.prototype[v]=function(){var ue=this.__wrapped__,pe=j?[1]:arguments,ye=ue instanceof Vt,Ee=pe[0],Re=ye||Ct(ue),De=function(Bt){var Kt=G.apply(ee,T([Bt],pe));return j&&Ge?Kt[0]:Kt};Re&&M&&typeof Ee=="function"&&Ee.length!=1&&(ye=Re=!1);var Ge=this.__chain__,it=!!this.__actions__.length,ft=te&&!Ge,Et=ye&&!it;if(!te&&Re){ue=Et?ue:new Vt(this);var gt=o.apply(ue,pe);return gt.__actions__.push({func:ru,args:[De],thisArg:e}),new ji(gt,Ge)}return ft&&Et?o.apply(this,pe):(gt=this.thru(De),ft?j?gt.value()[0]:gt.value():gt)})}),Mr(["pop","push","shift","sort","splice","unshift"],function(o){var v=_r[o],M=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",j=/^(?:pop|shift)$/.test(o);ee.prototype[o]=function(){var G=arguments;if(j&&!this.__chain__){var te=this.value();return v.apply(Ct(te)?te:[],G)}return this[M](function(ue){return v.apply(Ct(ue)?ue:[],G)})}}),Co(Vt.prototype,function(o,v){var M=ee[v];if(M){var j=M.name+"";cn.call(Sa,j)||(Sa[j]=[]),Sa[j].push({name:v,func:M})}}),Sa[Xc(e,b).name]=[{name:"wrapper",func:e}],Vt.prototype.clone=sE,Vt.prototype.reverse=aE,Vt.prototype.value=lE,ee.prototype.at=FL,ee.prototype.chain=PL,ee.prototype.commit=WL,ee.prototype.next=BL,ee.prototype.plant=HL,ee.prototype.reverse=jL,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=UL,ee.prototype.first=ee.prototype.head,hl&&(ee.prototype[hl]=zL),ee},qt=or();rr?((rr.exports=qt)._=qt,Sn._=qt):hn._=qt}).call(Ck)}(Gl,Gl.exports)),Gl.exports}var Ak=kk();sr("O",El(Ak)).debounce(function(){this.rebuildDisplayText()},300);var Mg={exports:{}},Ig;function Sk(){return Ig||(Ig=1,function(n,t){(function(){ace.require(["ace/mode/text"],function(e){n&&(n.exports=e)})})()}(Mg)),Mg.exports}Sk();const _k=!0,ar="u-",$k="uplot",Tk=ar+"hz",Mk=ar+"vt",Ik=ar+"title",Ek=ar+"wrap",Rk=ar+"under",Lk=ar+"over",Ok=ar+"axis",Ss=ar+"off",Nk=ar+"select",Dk=ar+"cursor-x",Fk=ar+"cursor-y",Pk=ar+"cursor-pt",Wk=ar+"legend",Bk=ar+"live",zk=ar+"inline",Hk=ar+"series",jk=ar+"marker",Eg=ar+"label",Uk=ar+"value",Ua="width",Va="height",qa="top",Rg="bottom",oa="left",zu="right",Hu="#000",Lg=Hu+"0",ju="mousemove",Og="mousedown",Uu="mouseup",Ng="mouseenter",Dg="mouseleave",Fg="dblclick",Vk="resize",qk="scroll",Pg="change",Yl="dppxchange",Vu="--",sa=typeof window<"u",qu=sa?document:null,aa=sa?window:null,Kk=sa?navigator:null;let en,Xl;function Ku(){let n=devicePixelRatio;en!=n&&(en=n,Xl&&Xu(Pg,Xl,Ku),Xl=matchMedia(`(min-resolution: ${en-.001}dppx) and (max-resolution: ${en+.001}dppx)`),_s(Pg,Xl,Ku),aa.dispatchEvent(new CustomEvent(Yl)))}function xi(n,t){if(t!=null){let e=n.classList;!e.contains(t)&&e.add(t)}}function Gu(n,t){let e=n.classList;e.contains(t)&&e.remove(t)}function wn(n,t,e){n.style[t]=e+"px"}function Xi(n,t,e,r){let f=qu.createElement(n);return t!=null&&xi(f,t),e!=null&&e.insertBefore(f,r),f}function Oi(n,t){return Xi("div",n,t)}const Wg=new WeakMap;function uo(n,t,e,r,f){let g="translate("+t+"px,"+e+"px)",m=Wg.get(n);g!=m&&(n.style.transform=g,Wg.set(n,g),t<0||e<0||t>r||e>f?xi(n,Ss):Gu(n,Ss))}const Bg=new WeakMap;function zg(n,t,e){let r=t+e,f=Bg.get(n);r!=f&&(Bg.set(n,r),n.style.background=t,n.style.borderColor=e)}const Hg=new WeakMap;function jg(n,t,e,r){let f=t+""+e,g=Hg.get(n);f!=g&&(Hg.set(n,f),n.style.height=e+"px",n.style.width=t+"px",n.style.marginLeft=r?-t/2+"px":0,n.style.marginTop=r?-e/2+"px":0)}const Yu={passive:!0},Gk={...Yu,capture:!0};function _s(n,t,e,r){t.addEventListener(n,e,r?Gk:Yu)}function Xu(n,t,e,r){t.removeEventListener(n,e,Yu)}sa&&Ku();function Zi(n,t,e,r){let f;e=e||0,r=r||t.length-1;let g=r<=2147483647;for(;r-e>1;)f=g?e+r>>1:ki((e+r)/2),t[f]<n?e=f:r=f;return n-t[e]<=t[r]-n?e:r}function Ug(n){return(t,e,r)=>{let f=-1,g=-1;for(let m=e;m<=r;m++)if(n(t[m])){f=m;break}for(let m=r;m>=e;m--)if(n(t[m])){g=m;break}return[f,g]}}const Vg=n=>n!=null,qg=n=>n!=null&&n>0,Zl=Ug(Vg),Yk=Ug(qg);function Xk(n,t,e,r=0,f=!1){let g=f?Yk:Zl,m=f?qg:Vg;[t,e]=g(n,t,e);let w=n[t],h=n[t];if(t>-1)if(r==1)w=n[t],h=n[e];else if(r==-1)w=n[e],h=n[t];else for(let d=t;d<=e;d++){let a=n[d];m(a)&&(a<w?w=a:a>h&&(h=a))}return[w??pn,h??-pn]}function Ql(n,t,e,r){let f=Yg(n),g=Yg(t);n==t&&(f==-1?(n*=e,t/=e):(n/=e,t*=e));let m=e==10?_o:Xg,w=f==1?ki:Ni,h=g==1?Ni:ki,d=w(m(lr(n))),a=h(m(lr(t))),l=la(e,d),u=la(e,a);return e==10&&(d<0&&(l=fn(l,-d)),a<0&&(u=fn(u,-a))),r||e==2?(n=l*f,t=u*g):(n=rm(n,l),t=tc(t,u)),[n,t]}function Zu(n,t,e,r){let f=Ql(n,t,e,r);return n==0&&(f[0]=0),t==0&&(f[1]=0),f}const Qu=.1,Kg={mode:3,pad:Qu},Ka={pad:0,soft:null,mode:0},Zk={min:Ka,max:Ka};function Jl(n,t,e,r){return nc(e)?Gg(n,t,e):(Ka.pad=e,Ka.soft=r?0:null,Ka.mode=r?3:0,Gg(n,t,Zk))}function Qt(n,t){return n??t}function Qk(n,t,e){for(t=Qt(t,0),e=Qt(e,n.length-1);t<=e;){if(n[t]!=null)return!0;t++}return!1}function Gg(n,t,e){let r=e.min,f=e.max,g=Qt(r.pad,0),m=Qt(f.pad,0),w=Qt(r.hard,-pn),h=Qt(f.hard,pn),d=Qt(r.soft,pn),a=Qt(f.soft,-pn),l=Qt(r.mode,0),u=Qt(f.mode,0),c=t-n,i=_o(c),s=Hr(lr(n),lr(t)),p=_o(s),b=lr(p-i);(c<1e-24||b>10)&&(c=0,(n==0||t==0)&&(c=1e-24,l==2&&d!=pn&&(g=0),u==2&&a!=-pn&&(m=0)));let x=c||s||1e3,R=_o(x),_=la(10,ki(R)),k=x*(c==0?n==0?.1:1:g),C=fn(rm(n-k,_/10),24),L=n>=d&&(l==1||l==3&&C<=d||l==2&&C>=d)?d:pn,D=Hr(w,C<L&&n>=L?L:Qi(L,C)),E=x*(c==0?t==0?.1:1:m),I=fn(tc(t+E,_/10),24),z=t<=a&&(u==1||u==3&&I>=a||u==2&&I<=a)?a:-pn,P=Qi(h,I>z&&t<=z?z:Hr(z,I));return D==P&&D==0&&(P=100),[D,P]}const Jk=new Intl.NumberFormat(sa?Kk.language:"en-US"),Ju=n=>Jk.format(n),Ci=Math,ec=Ci.PI,lr=Ci.abs,ki=Ci.floor,cr=Ci.round,Ni=Ci.ceil,Qi=Ci.min,Hr=Ci.max,la=Ci.pow,Yg=Ci.sign,_o=Ci.log10,Xg=Ci.log2,eA=(n,t=1)=>Ci.sinh(n)*t,eh=(n,t=1)=>Ci.asinh(n/t),pn=1/0;function Zg(n){return(_o((n^n>>31)-(n>>31))|0)+1}function th(n,t,e){return Qi(Hr(n,t),e)}function Qg(n){return typeof n=="function"}function zt(n){return Qg(n)?n:()=>n}const tA=()=>{},Jg=n=>n,em=(n,t)=>t,nA=n=>null,tm=n=>!0,nm=(n,t)=>n==t,rA=/\.\d*?(?=9{6,}|0{6,})/gm,$s=n=>{if(om(n)||Xo.has(n))return n;const t=`${n}`,e=t.match(rA);if(e==null)return n;let r=e[0].length-1;if(t.indexOf("e-")!=-1){let[f,g]=t.split("e");return+`${$s(f)}e${g}`}return fn(n,r)};function Ts(n,t){return $s(fn($s(n/t))*t)}function tc(n,t){return $s(Ni($s(n/t))*t)}function rm(n,t){return $s(ki($s(n/t))*t)}function fn(n,t=0){if(om(n))return n;let e=10**t,r=n*e*(1+Number.EPSILON);return cr(r)/e}const Xo=new Map;function im(n){return((""+n).split(".")[1]||"").length}function Ga(n,t,e,r){let f=[],g=r.map(im);for(let m=t;m<e;m++){let w=lr(m),h=fn(la(n,m),w);for(let d=0;d<r.length;d++){let a=n==10?+`${r[d]}e${m}`:r[d]*h,l=(m>=0?0:w)+(m>=g[d]?0:g[d]),u=n==10?a:fn(a,l);f.push(u),Xo.set(u,l)}}return f}const Ya={},nh=[],ca=[null,null],Zo=Array.isArray,om=Number.isInteger,iA=n=>n===void 0;function sm(n){return typeof n=="string"}function nc(n){let t=!1;if(n!=null){let e=n.constructor;t=e==null||e==Object}return t}function oA(n){return n!=null&&typeof n=="object"}const sA=Object.getPrototypeOf(Uint8Array),am="__proto__";function ua(n,t=nc){let e;if(Zo(n)){let r=n.find(f=>f!=null);if(Zo(r)||t(r)){e=Array(n.length);for(let f=0;f<n.length;f++)e[f]=ua(n[f],t)}else e=n.slice()}else if(n instanceof sA)e=n.slice();else if(t(n)){e={};for(let r in n)r!=am&&(e[r]=ua(n[r],t))}else e=n;return e}function tr(n){let t=arguments;for(let e=1;e<t.length;e++){let r=t[e];for(let f in r)f!=am&&(nc(n[f])?tr(n[f],ua(r[f])):n[f]=ua(r[f]))}return n}const aA=0,lA=1,cA=2;function uA(n,t,e){for(let r=0,f,g=-1;r<t.length;r++){let m=t[r];if(m>g){for(f=m-1;f>=0&&n[f]==null;)n[f--]=null;for(f=m+1;f<e&&n[f]==null;)n[g=f++]=null}}}function hA(n,t){if(fA(n)){let m=n[0].slice();for(let w=1;w<n.length;w++)m.push(...n[w].slice(1));return gA(m[0])||(m=pA(m)),m}let e=new Set;for(let m=0;m<n.length;m++){let w=n[m][0],h=w.length;for(let d=0;d<h;d++)e.add(w[d])}let r=[Array.from(e).sort((m,w)=>m-w)],f=r[0].length,g=new Map;for(let m=0;m<f;m++)g.set(r[0][m],m);for(let m=0;m<n.length;m++){let w=n[m],h=w[0];for(let d=1;d<w.length;d++){let a=w[d],l=Array(f).fill(void 0),u=t?t[m][d]:lA,c=[];for(let i=0;i<a.length;i++){let s=a[i],p=g.get(h[i]);s===null?u!=aA&&(l[p]=s,u==cA&&c.push(p)):l[p]=s}uA(l,c,f),r.push(l)}}return r}const dA=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function pA(n){let t=n[0],e=t.length,r=Array(e);for(let g=0;g<r.length;g++)r[g]=g;r.sort((g,m)=>t[g]-t[m]);let f=[];for(let g=0;g<n.length;g++){let m=n[g],w=Array(e);for(let h=0;h<e;h++)w[h]=m[r[h]];f.push(w)}return f}function fA(n){let t=n[0][0],e=t.length;for(let r=1;r<n.length;r++){let f=n[r][0];if(f.length!=e)return!1;if(f!=t){for(let g=0;g<e;g++)if(f[g]!=t[g])return!1}}return!0}function gA(n,t=100){const e=n.length;if(e<=1)return!0;let r=0,f=e-1;for(;r<=f&&n[r]==null;)r++;for(;f>=r&&n[f]==null;)f--;if(f<=r)return!0;const g=Hr(1,ki((f-r+1)/t));for(let m=n[r],w=r+g;w<=f;w+=g){const h=n[w];if(h!=null){if(h<=m)return!1;m=h}}return!0}const lm=["January","February","March","April","May","June","July","August","September","October","November","December"],cm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function um(n){return n.slice(0,3)}const mA=cm.map(um),vA=lm.map(um),yA={MMMM:lm,MMM:vA,WWWW:cm,WWW:mA};function Xa(n){return(n<10?"0":"")+n}function bA(n){return(n<10?"00":n<100?"0":"")+n}const wA={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=>Xa(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>Xa(n.getDate()),D:n=>n.getDate(),WWWW:(n,t)=>t.WWWW[n.getDay()],WWW:(n,t)=>t.WWW[n.getDay()],HH:n=>Xa(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=>Xa(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>Xa(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>bA(n.getMilliseconds())};function rh(n,t){t=t||yA;let e=[],r=/\{([a-z]+)\}|[^{]+/gi,f;for(;f=r.exec(n);)e.push(f[0][0]=="{"?wA[f[1]]:f[0]);return g=>{let m="";for(let w=0;w<e.length;w++)m+=typeof e[w]=="string"?e[w]:e[w](g,t);return m}}const xA=new Intl.DateTimeFormat().resolvedOptions().timeZone;function CA(n,t){let e;return t=="UTC"||t=="Etc/UTC"?e=new Date(+n+n.getTimezoneOffset()*6e4):t==xA?e=n:(e=new Date(n.toLocaleString("en-US",{timeZone:t})),e.setMilliseconds(n.getMilliseconds())),e}const hm=n=>n%1==0,rc=[1,2,2.5,5],kA=Ga(10,-32,0,rc),dm=Ga(10,0,32,rc),AA=dm.filter(hm),Ms=kA.concat(dm),ih=`
|
|
1489
|
+
`,pm="{YYYY}",fm=ih+pm,gm="{M}/{D}",Za=ih+gm,ic=Za+"/{YY}",mm="{aa}",SA="{h}:{mm}",ha=SA+mm,vm=ih+ha,ym=":{ss}",on=null;function bm(n){let t=n*1e3,e=t*60,r=e*60,f=r*24,g=f*30,m=f*365,w=(n==1?Ga(10,0,3,rc).filter(hm):Ga(10,-3,0,rc)).concat([t,t*5,t*10,t*15,t*30,e,e*5,e*10,e*15,e*30,r,r*2,r*3,r*4,r*6,r*8,r*12,f,f*2,f*3,f*4,f*5,f*6,f*7,f*8,f*9,f*10,f*15,g,g*2,g*3,g*4,g*6,m,m*2,m*5,m*10,m*25,m*50,m*100]);const h=[[m,pm,on,on,on,on,on,on,1],[f*28,"{MMM}",fm,on,on,on,on,on,1],[f,gm,fm,on,on,on,on,on,1],[r,"{h}"+mm,ic,on,Za,on,on,on,1],[e,ha,ic,on,Za,on,on,on,1],[t,ym,ic+" "+ha,on,Za+" "+ha,on,vm,on,1],[n,ym+".{fff}",ic+" "+ha,on,Za+" "+ha,on,vm,on,1]];function d(a){return(l,u,c,i,s,p)=>{let b=[],x=s>=m,R=s>=g&&s<m,_=a(c),k=fn(_*n,3),C=oh(_.getFullYear(),x?0:_.getMonth(),R||x?1:_.getDate()),L=fn(C*n,3);if(R||x){let D=R?s/g:0,E=x?s/m:0,I=k==L?k:fn(oh(C.getFullYear()+E,C.getMonth()+D,1)*n,3),z=new Date(cr(I/n)),P=z.getFullYear(),O=z.getMonth();for(let $=0;I<=i;$++){let A=oh(P+E*$,O+D*$,1),N=A-a(fn(A*n,3));I=fn((+A+N)*n,3),I<=i&&b.push(I)}}else{let D=s>=f?f:s,E=ki(c)-ki(k),I=L+E+tc(k-L,D);b.push(I);let z=a(I),P=z.getHours()+z.getMinutes()/e+z.getSeconds()/r,O=s/r,$=l.axes[u]._space,A=p/$;for(;I=fn(I+s,n==1?0:3),!(I>i);)if(O>1){let N=ki(fn(P+O,6))%24,B=a(I).getHours()-N;B>1&&(B=-1),I-=B*r,P=(P+O)%24;let U=b[b.length-1];fn((I-U)/s,3)*A>=.7&&b.push(I)}else b.push(I)}return b}}return[w,h,d]}const[_A,$A,TA]=bm(1),[MA,IA,EA]=bm(.001);Ga(2,-53,53,[1]);function wm(n,t){return n.map(e=>e.map((r,f)=>f==0||f==8||r==null?r:t(f==1||e[8]==0?r:e[1]+r)))}function xm(n,t){return(e,r,f,g,m)=>{let w=t.find(i=>m>=i[0])||t[t.length-1],h,d,a,l,u,c;return r.map(i=>{let s=n(i),p=s.getFullYear(),b=s.getMonth(),x=s.getDate(),R=s.getHours(),_=s.getMinutes(),k=s.getSeconds(),C=p!=h&&w[2]||b!=d&&w[3]||x!=a&&w[4]||R!=l&&w[5]||_!=u&&w[6]||k!=c&&w[7]||w[1];return h=p,d=b,a=x,l=R,u=_,c=k,C(s)})}}function RA(n,t){let e=rh(t);return(r,f,g,m,w)=>f.map(h=>e(n(h)))}function oh(n,t,e){return new Date(n,t,e)}function Cm(n,t){return t(n)}const LA="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function km(n,t){return(e,r,f,g)=>g==null?Vu:t(n(r))}function OA(n,t){let e=n.series[t];return e.width?e.stroke(n,t):e.points.width?e.points.stroke(n,t):null}function NA(n,t){return n.series[t].fill(n,t)}const DA={show:!0,live:!0,isolate:!1,mount:tA,markers:{show:!0,width:2,stroke:OA,fill:NA,dash:"solid"},idx:null,idxs:null,values:[]};function FA(n,t){let e=n.cursor.points,r=Oi(),f=e.size(n,t);wn(r,Ua,f),wn(r,Va,f);let g=f/-2;wn(r,"marginLeft",g),wn(r,"marginTop",g);let m=e.width(n,t,f);return m&&wn(r,"borderWidth",m),r}function PA(n,t){let e=n.series[t].points;return e._fill||e._stroke}function WA(n,t){let e=n.series[t].points;return e._stroke||e._fill}function BA(n,t){return n.series[t].points.size}const sh=[0,0];function zA(n,t,e){return sh[0]=t,sh[1]=e,sh}function oc(n,t,e,r=!0){return f=>{f.button==0&&(!r||f.target==t)&&e(f)}}function ah(n,t,e,r=!0){return f=>{(!r||f.target==t)&&e(f)}}const HA={show:!0,x:!0,y:!0,lock:!1,move:zA,points:{one:!1,show:FA,size:BA,width:0,stroke:WA,fill:PA},bind:{mousedown:oc,mouseup:oc,click:oc,dblclick:oc,mousemove:ah,mouseleave:ah,mouseenter:ah},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,r,f)=>r-f,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Am={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},lh=tr({},Am,{filter:em}),Sm=tr({},lh,{size:10}),_m=tr({},Am,{show:!1}),ch='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"',$m="bold "+ch,Tm=1.5,Mm={show:!0,scale:"x",stroke:Hu,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:$m,side:2,grid:lh,ticks:Sm,border:_m,font:ch,lineGap:Tm,rotate:0},jA="Value",UA="Time",Im={show:!0,scale:"x",auto:!1,sorted:1,min:pn,max:-pn,idxs:[]};function VA(n,t,e,r,f){return t.map(g=>g==null?"":Ju(g))}function qA(n,t,e,r,f,g,m){let w=[],h=Xo.get(f)||0;e=m?e:fn(tc(e,f),h);for(let d=e;d<=r;d=fn(d+f,h))w.push(Object.is(d,-0)?0:d);return w}function uh(n,t,e,r,f,g,m){const w=[],h=n.scales[n.axes[t].scale].log,d=h==10?_o:Xg,a=ki(d(e));f=la(h,a),h==10&&(f=Ms[Zi(f,Ms)]);let l=e,u=f*h;h==10&&(u=Ms[Zi(u,Ms)]);do w.push(l),l=l+f,h==10&&!Xo.has(l)&&(l=fn(l,Xo.get(f))),l>=u&&(f=l,u=f*h,h==10&&(u=Ms[Zi(u,Ms)]));while(l<=r);return w}function KA(n,t,e,r,f,g,m){let w=n.scales[n.axes[t].scale].asinh,h=r>w?uh(n,t,Hr(w,e),r,f):[w],d=r>=0&&e<=0?[0]:[];return(e<-w?uh(n,t,Hr(w,-r),-e,f):[w]).reverse().map(a=>-a).concat(d,h)}const Em=/./,GA=/[12357]/,YA=/[125]/,Rm=/1/,hh=(n,t,e,r)=>n.map((f,g)=>t==4&&f==0||g%r==0&&e.test(f.toExponential()[f<0?1:0])?f:null);function XA(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=n.scales[m],h=n.valToPos,d=g._space,a=h(10,m),l=h(9,m)-a>=d?Em:h(7,m)-a>=d?GA:h(5,m)-a>=d?YA:Rm;if(l==Rm){let u=lr(h(1,m)-a);if(u<d)return hh(t.slice().reverse(),w.distr,l,Ni(d/u)).reverse()}return hh(t,w.distr,l,1)}function ZA(n,t,e,r,f){let g=n.axes[e],m=g.scale,w=g._space,h=n.valToPos,d=lr(h(1,m)-h(2,m));return d<w?hh(t.slice().reverse(),3,Em,Ni(w/d)).reverse():t}function QA(n,t,e,r){return r==null?Vu:t==null?"":Ju(t)}const Lm={show:!0,scale:"y",stroke:Hu,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:$m,side:3,grid:lh,ticks:Sm,border:_m,font:ch,lineGap:Tm,rotate:0};function JA(n,t){let e=3+(n||1)*2;return fn(e*t,3)}function eS(n,t){let{scale:e,idxs:r}=n.series[0],f=n._data[0],g=n.valToPos(f[r[0]],e,!0),m=n.valToPos(f[r[1]],e,!0),w=lr(m-g),h=n.series[t],d=w/(h.points.space*en);return r[1]-r[0]<=d}const Om={scale:null,auto:!0,sorted:0,min:pn,max:-pn},Nm=(n,t,e,r,f)=>f,Dm={show:!0,auto:!0,sorted:0,gaps:Nm,alpha:1,facets:[tr({},Om,{scale:"x"}),tr({},Om,{scale:"y"})]},Fm={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Nm,alpha:1,points:{show:eS,filter:null},values:null,min:pn,max:-pn,idxs:[],path:null,clip:null};function tS(n,t,e,r,f){return e/10}const Pm={time:_k,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},nS=tr({},Pm,{time:!1,ori:1}),Wm={};function Bm(n,t){let e=Wm[n];return e||(e={key:n,plots:[],sub(r){e.plots.push(r)},unsub(r){e.plots=e.plots.filter(f=>f!=r)},pub(r,f,g,m,w,h,d){for(let a=0;a<e.plots.length;a++)e.plots[a]!=f&&e.plots[a].pub(r,f,g,m,w,h,d)}},n!=null&&(Wm[n]=e)),e}const da=1,dh=2;function Is(n,t,e){const r=n.mode,f=n.series[t],g=r==2?n._data[t]:n._data,m=n.scales,w=n.bbox;let h=g[0],d=r==2?g[1]:g[t],a=r==2?m[f.facets[0].scale]:m[n.series[0].scale],l=r==2?m[f.facets[1].scale]:m[f.scale],u=w.left,c=w.top,i=w.width,s=w.height,p=n.valToPosH,b=n.valToPosV;return a.ori==0?e(f,h,d,a,l,p,b,u,c,i,s,ac,pa,cc,jm,Vm):e(f,h,d,a,l,b,p,c,u,s,i,lc,fa,gh,Um,qm)}function ph(n,t){let e=0,r=0,f=Qt(n.bands,nh);for(let g=0;g<f.length;g++){let m=f[g];m.series[0]==t?e=m.dir:m.series[1]==t&&(m.dir==1?r|=1:r|=2)}return[e,r==1?-1:r==2?1:r==3?2:0]}function rS(n,t,e,r,f){let g=n.mode,m=n.series[t],w=g==2?m.facets[1].scale:m.scale,h=n.scales[w];return f==-1?h.min:f==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function $o(n,t,e,r,f,g){return Is(n,t,(m,w,h,d,a,l,u,c,i,s,p)=>{let b=m.pxRound;const x=d.dir*(d.ori==0?1:-1),R=d.ori==0?pa:fa;let _,k;x==1?(_=e,k=r):(_=r,k=e);let C=b(l(w[_],d,s,c)),L=b(u(h[_],a,p,i)),D=b(l(w[k],d,s,c)),E=b(u(g==1?a.max:a.min,a,p,i)),I=new Path2D(f);return R(I,D,E),R(I,C,E),R(I,C,L),I})}function sc(n,t,e,r,f,g){let m=null;if(n.length>0){m=new Path2D;const w=t==0?cc:gh;let h=e;for(let l=0;l<n.length;l++){let u=n[l];if(u[1]>u[0]){let c=u[0]-h;c>0&&w(m,h,r,c,r+g),h=u[1]}}let d=e+f-h,a=10;d>0&&w(m,h,r-a/2,d,r+g+a)}return m}function iS(n,t,e){let r=n[n.length-1];r&&r[0]==t?r[1]=e:n.push([t,e])}function fh(n,t,e,r,f,g,m){let w=[],h=n.length;for(let d=f==1?e:r;d>=e&&d<=r;d+=f)if(t[d]===null){let a=d,l=d;if(f==1)for(;++d<=r&&t[d]===null;)l=d;else for(;--d>=e&&t[d]===null;)l=d;let u=g(n[a]),c=l==a?u:g(n[l]),i=a-f;u=m<=0&&i>=0&&i<h?g(n[i]):u;let s=l+f;c=m>=0&&s>=0&&s<h?g(n[s]):c,c>=u&&w.push([u,c])}return w}function zm(n){return n==0?Jg:n==1?cr:t=>Ts(t,n)}function Hm(n){let t=n==0?ac:lc,e=n==0?(f,g,m,w,h,d)=>{f.arcTo(g,m,w,h,d)}:(f,g,m,w,h,d)=>{f.arcTo(m,g,h,w,d)},r=n==0?(f,g,m,w,h)=>{f.rect(g,m,w,h)}:(f,g,m,w,h)=>{f.rect(m,g,h,w)};return(f,g,m,w,h,d=0,a=0)=>{d==0&&a==0?r(f,g,m,w,h):(d=Qi(d,w/2,h/2),a=Qi(a,w/2,h/2),t(f,g+d,m),e(f,g+w,m,g+w,m+h,d),e(f,g+w,m+h,g,m+h,a),e(f,g,m+h,g,m,a),e(f,g,m,g+w,m,d),f.closePath())}}const ac=(n,t,e)=>{n.moveTo(t,e)},lc=(n,t,e)=>{n.moveTo(e,t)},pa=(n,t,e)=>{n.lineTo(t,e)},fa=(n,t,e)=>{n.lineTo(e,t)},cc=Hm(0),gh=Hm(1),jm=(n,t,e,r,f,g)=>{n.arc(t,e,r,f,g)},Um=(n,t,e,r,f,g)=>{n.arc(e,t,r,f,g)},Vm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(t,e,r,f,g,m)},qm=(n,t,e,r,f,g,m)=>{n.bezierCurveTo(e,t,f,r,m,g)};function Km(n){return(t,e,r,f,g)=>Is(t,e,(m,w,h,d,a,l,u,c,i,s,p)=>{let{pxRound:b,points:x}=m,R,_;d.ori==0?(R=ac,_=jm):(R=lc,_=Um);const k=fn(x.width*en,3);let C=(x.size-x.width)/2*en,L=fn(C*2,3),D=new Path2D,E=new Path2D,{left:I,top:z,width:P,height:O}=t.bbox;cc(E,I-L,z-L,P+L*2,O+L*2);const $=A=>{if(h[A]!=null){let N=b(l(w[A],d,s,c)),B=b(u(h[A],a,p,i));R(D,N+C,B),_(D,N,B,C,0,ec*2)}};if(g)g.forEach($);else for(let A=r;A<=f;A++)$(A);return{stroke:k>0?D:null,fill:D,clip:E,flags:da|dh}})}function Gm(n){return(t,e,r,f,g,m)=>{r!=f&&(g!=r&&m!=r&&n(t,e,r),g!=f&&m!=f&&n(t,e,f),n(t,e,m))}}const oS=Gm(pa),sS=Gm(fa);function Ym(n){const t=Qt(n==null?void 0:n.alignGaps,0);return(e,r,f,g)=>Is(e,r,(m,w,h,d,a,l,u,c,i,s,p)=>{[f,g]=Zl(h,f,g);let b=m.pxRound,x=P=>b(l(P,d,s,c)),R=P=>b(u(P,a,p,i)),_,k;d.ori==0?(_=pa,k=oS):(_=fa,k=sS);const C=d.dir*(d.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:da},D=L.stroke;let E=!1;if(g-f>=s*4){let P=he=>e.posToVal(he,d.key,!0),O=null,$=null,A,N,B,U=x(w[C==1?f:g]),K=x(w[f]),Q=x(w[g]),J=P(C==1?K+1:Q-1);for(let he=C==1?f:g;he>=f&&he<=g;he+=C){let ne=w[he],le=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];le==U?se!=null?(N=se,O==null?(_(D,le,R(N)),A=O=$=N):N<O?O=N:N>$&&($=N)):se===null&&(E=!0):(O!=null&&k(D,U,R(O),R($),R(A),R(N)),se!=null?(N=se,_(D,le,R(N)),O=$=A=N):(O=$=null,se===null&&(E=!0)),U=le,J=P(U+C))}O!=null&&O!=$&&B!=U&&k(D,U,R(O),R($),R(A),R(N))}else for(let P=C==1?f:g;P>=f&&P<=g;P+=C){let O=h[P];O===null?E=!0:O!=null&&_(D,x(w[P]),R(O))}let[I,z]=ph(e,r);if(m.fill!=null||I!=0){let P=L.fill=new Path2D(D),O=m.fillTo(e,r,m.min,m.max,I),$=R(O),A=x(w[f]),N=x(w[g]);C==-1&&([N,A]=[A,N]),_(P,N,$),_(P,A,$)}if(!m.spanGaps){let P=[];E&&P.push(...fh(w,h,f,g,C,x,t)),L.gaps=P=m.gaps(e,r,f,g,P),L.clip=sc(P,d.ori,c,i,s,p)}return z!=0&&(L.band=z==2?[$o(e,r,f,g,D,-1),$o(e,r,f,g,D,1)]:$o(e,r,f,g,D,z)),L})}function aS(n){const t=Qt(n.align,1),e=Qt(n.ascDesc,!1),r=Qt(n.alignGaps,0),f=Qt(n.extend,!1);return(g,m,w,h)=>Is(g,m,(d,a,l,u,c,i,s,p,b,x,R)=>{[w,h]=Zl(l,w,h);let _=d.pxRound,{left:k,width:C}=g.bbox,L=Q=>_(i(Q,u,x,p)),D=Q=>_(s(Q,c,R,b)),E=u.ori==0?pa:fa;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:da},z=I.stroke,P=u.dir*(u.ori==0?1:-1);let O=D(l[P==1?w:h]),$=L(a[P==1?w:h]),A=$,N=$;f&&t==-1&&(N=k,E(z,N,O)),E(z,$,O);for(let Q=P==1?w:h;Q>=w&&Q<=h;Q+=P){let J=l[Q];if(J==null)continue;let he=L(a[Q]),ne=D(J);t==1?E(z,he,O):E(z,A,ne),E(z,he,ne),O=ne,A=he}let B=A;f&&t==1&&(B=k+C,E(z,B,O));let[U,K]=ph(g,m);if(d.fill!=null||U!=0){let Q=I.fill=new Path2D(z),J=d.fillTo(g,m,d.min,d.max,U),he=D(J);E(Q,B,he),E(Q,N,he)}if(!d.spanGaps){let Q=[];Q.push(...fh(a,l,w,h,P,L,r));let J=d.width*en/2,he=e||t==1?J:-J,ne=e||t==-1?-J:J;Q.forEach(le=>{le[0]+=he,le[1]+=ne}),I.gaps=Q=d.gaps(g,m,w,h,Q),I.clip=sc(Q,u.ori,p,b,x,R)}return K!=0&&(I.band=K==2?[$o(g,m,w,h,z,-1),$o(g,m,w,h,z,1)]:$o(g,m,w,h,z,K)),I})}function Xm(n,t,e,r,f,g,m=pn){if(n.length>1){let w=null;for(let h=0,d=1/0;h<n.length;h++)if(t[h]!==void 0){if(w!=null){let a=lr(n[h]-n[w]);a<d&&(d=a,m=lr(e(n[h],r,f,g)-e(n[w],r,f,g)))}w=h}}return m}function lS(n){n=n||Ya;const t=Qt(n.size,[.6,pn,1]),e=n.align||0,r=n.gap||0;let f=n.radius;f=f==null?[0,0]:typeof f=="number"?[f,0]:f;const g=zt(f),m=1-t[0],w=Qt(t[1],pn),h=Qt(t[2],1),d=Qt(n.disp,Ya),a=Qt(n.each,c=>{}),{fill:l,stroke:u}=d;return(c,i,s,p)=>Is(c,i,(b,x,R,_,k,C,L,D,E,I,z)=>{let P=b.pxRound,O=e,$=r*en,A=w*en,N=h*en,B,U;_.ori==0?[B,U]=g(c,i):[U,B]=g(c,i);const K=_.dir*(_.ori==0?1:-1);let Q=_.ori==0?cc:gh,J=_.ori==0?a:(je,Lt,Ht,$n,yr,ur,gn)=>{a(je,Lt,Ht,yr,$n,gn,ur)},he=Qt(c.bands,nh).find(je=>je.series[0]==i),ne=he!=null?he.dir:0,le=b.fillTo(c,i,b.min,b.max,ne),se=P(L(le,k,z,E)),de,me,_e,Te=I,Me=P(b.width*en),Xe=!1,Ke=null,at=null,et=null,lt=null;l!=null&&(Me==0||u!=null)&&(Xe=!0,Ke=l.values(c,i,s,p),at=new Map,new Set(Ke).forEach(je=>{je!=null&&at.set(je,new Path2D)}),Me>0&&(et=u.values(c,i,s,p),lt=new Map,new Set(et).forEach(je=>{je!=null&<.set(je,new Path2D)})));let{x0:Xt,size:xn}=d;if(Xt!=null&&xn!=null){O=1,x=Xt.values(c,i,s,p),Xt.unit==2&&(x=x.map(Lt=>c.posToVal(D+Lt*I,_.key,!0)));let je=xn.values(c,i,s,p);xn.unit==2?me=je[0]*I:me=C(je[0],_,I,D)-C(0,_,I,D),Te=Xm(x,R,C,_,I,D,Te),_e=Te-me+$}else Te=Xm(x,R,C,_,I,D,Te),_e=Te*m+$,me=Te-_e;_e<1&&(_e=0),Me>=me/2&&(Me=0),_e<5&&(P=Jg);let Wt=_e>0,vr=Te-_e-(Wt?Me:0);me=P(th(vr,N,A)),de=(O==0?me/2:O==K?0:me)-O*K*((O==0?$/2:0)+(Wt?Me/2:0));const un={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},On=Xe?null:new Path2D;let Xn=null;if(he!=null)Xn=c.data[he.series[1]];else{let{y0:je,y1:Lt}=d;je!=null&&Lt!=null&&(R=Lt.values(c,i,s,p),Xn=je.values(c,i,s,p))}let Tr=B*me,mt=U*me;for(let je=K==1?s:p;je>=s&&je<=p;je+=K){let Lt=R[je];if(Lt==null)continue;if(Xn!=null){let Gt=Xn[je]??0;if(Lt-Gt==0)continue;se=L(Gt,k,z,E)}let Ht=_.distr!=2||d!=null?x[je]:je,$n=C(Ht,_,I,D),yr=L(Qt(Lt,le),k,z,E),ur=P($n-de),gn=P(Hr(yr,se)),Wn=P(Qi(yr,se)),Nn=gn-Wn;if(Lt!=null){let Gt=Lt<0?mt:Tr,ln=Lt<0?Tr:mt;Xe?(Me>0&&et[je]!=null&&Q(lt.get(et[je]),ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln),Ke[je]!=null&&Q(at.get(Ke[je]),ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln)):Q(On,ur,Wn+ki(Me/2),me,Hr(0,Nn-Me),Gt,ln),J(c,i,je,ur-Me/2,Wn,me+Me,Nn)}}return Me>0?un.stroke=Xe?lt:On:Xe||(un._fill=b.width==0?b._fill:b._stroke??b._fill,un.width=0),un.fill=Xe?at:On,un})}function cS(n,t){const e=Qt(t==null?void 0:t.alignGaps,0);return(r,f,g,m)=>Is(r,f,(w,h,d,a,l,u,c,i,s,p,b)=>{[g,m]=Zl(d,g,m);let x=w.pxRound,R=B=>x(u(B,a,p,i)),_=B=>x(c(B,l,b,s)),k,C,L;a.ori==0?(k=ac,L=pa,C=Vm):(k=lc,L=fa,C=qm);const D=a.dir*(a.ori==0?1:-1);let E=R(h[D==1?g:m]),I=E,z=[],P=[];for(let B=D==1?g:m;B>=g&&B<=m;B+=D)if(d[B]!=null){let U=h[B],K=R(U);z.push(I=K),P.push(_(d[B]))}const O={stroke:n(z,P,k,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:da},$=O.stroke;let[A,N]=ph(r,f);if(w.fill!=null||A!=0){let B=O.fill=new Path2D($),U=w.fillTo(r,f,w.min,w.max,A),K=_(U);L(B,I,K),L(B,E,K)}if(!w.spanGaps){let B=[];B.push(...fh(h,d,g,m,D,R,e)),O.gaps=B=w.gaps(r,f,g,m,B),O.clip=sc(B,a.ori,i,s,p,b)}return N!=0&&(O.band=N==2?[$o(r,f,g,m,$,-1),$o(r,f,g,m,$,1)]:$o(r,f,g,m,$,N)),O})}function uS(n){return cS(hS,n)}function hS(n,t,e,r,f,g){const m=n.length;if(m<2)return null;const w=new Path2D;if(e(w,n[0],t[0]),m==2)r(w,n[1],t[1]);else{let h=Array(m),d=Array(m-1),a=Array(m-1),l=Array(m-1);for(let u=0;u<m-1;u++)a[u]=t[u+1]-t[u],l[u]=n[u+1]-n[u],d[u]=a[u]/l[u];h[0]=d[0];for(let u=1;u<m-1;u++)d[u]===0||d[u-1]===0||d[u-1]>0!=d[u]>0?h[u]=0:(h[u]=3*(l[u-1]+l[u])/((2*l[u]+l[u-1])/d[u-1]+(l[u]+2*l[u-1])/d[u]),isFinite(h[u])||(h[u]=0));h[m-1]=d[m-2];for(let u=0;u<m-1;u++)f(w,n[u]+l[u]/3,t[u]+h[u]*l[u]/3,n[u+1]-l[u]/3,t[u+1]-h[u+1]*l[u]/3,n[u+1],t[u+1])}return w}const mh=new Set;function Zm(){for(let n of mh)n.syncRect(!0)}sa&&(_s(Vk,aa,Zm),_s(qk,aa,Zm,!0),_s(Yl,aa,()=>{Or.pxRatio=en}));const dS=Ym(),pS=Km();function Qm(n,t,e,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((f,g)=>vh(f,g,t,e))}function fS(n,t){return n.map((e,r)=>r==0?{}:tr({},t,e))}function vh(n,t,e,r){return tr({},t==0?e:r,n)}function Jm(n,t,e){return t==null?ca:[t,e]}const gS=Jm;function mS(n,t,e){return t==null?ca:Jl(t,e,Qu,!0)}function ev(n,t,e,r){return t==null?ca:Ql(t,e,n.scales[r].log,!1)}const vS=ev;function tv(n,t,e,r){return t==null?ca:Zu(t,e,n.scales[r].log,!1)}const yS=tv;function bS(n,t,e,r,f){let g=Hr(Zg(n),Zg(t)),m=t-n,w=Zi(f/r*m,e);do{let h=e[w],d=r*h/m;if(d>=f&&g+(h<5?Xo.get(h):0)<=17)return[h,d]}while(++w<e.length);return[0,0]}function nv(n){let t,e;return n=n.replace(/(\d+)px/,(r,f)=>(t=cr((e=+f)*en))+"px"),[n,t,e]}function wS(n){n.show&&[n.font,n.labelFont].forEach(t=>{let e=fn(t[2]*en,1);t[0]=t[0].replace(/[0-9.]+px/,e+"px"),t[1]=e})}function Or(n,t,e){const r={mode:Qt(n.mode,1)},f=r.mode;function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function m(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function w(V,X,ie,oe){return X.ori==0?g(V,X,ie,oe):m(V,X,ie,oe)}r.valToPosH=g,r.valToPosV=m;let h=!1;r.status=0;const d=r.root=Oi($k);if(n.id!=null&&(d.id=n.id),xi(d,n.class),n.title){let V=Oi(Ik,d);V.textContent=n.title}const a=Xi("canvas"),l=r.ctx=a.getContext("2d"),u=Oi(Ek,d);_s("click",u,V=>{V.target===i&&(rn!=Pi||Ut!=xo)&&Hn.click(r,V)},!0);const c=r.under=Oi(Rk,u);u.appendChild(a);const i=r.over=Oi(Lk,u);n=ua(n);const s=+Qt(n.pxAlign,1),p=zm(s);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const b=n.ms||.001,x=r.series=f==1?Qm(n.series||[],Im,Fm,!1):fS(n.series||[null],Dm),R=r.axes=Qm(n.axes||[],Mm,Lm,!0),_=r.scales={},k=r.bands=n.bands||[];k.forEach(V=>{V.fill=zt(V.fill||null),V.dir=Qt(V.dir,-1)});const C=f==2?x[1].facets[0].scale:x[0].scale,L={axes:Eo,series:ba},D=(n.drawOrder||["axes","series"]).map(V=>L[V]);function E(V){const X=V.distr==3?ie=>_o(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>eh(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ie=xe-ge;return(oe-ge)/Ie}}function I(V){let X=_[V];if(X==null){let ie=(n.scales||Ya)[V]||Ya;if(ie.from!=null){I(ie.from);let oe=tr({},_[ie.from],ie,{key:V});oe.valToPct=E(oe),_[V]=oe}else{X=_[V]=tr({},V==C?Pm:nS,ie),X.key=V;let oe=X.time,ge=X.range,xe=Zo(ge);if((V!=C||f==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?Kg:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?Kg:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&nc(ge))){let Ie=ge;ge=(Pe,Be,qe)=>Be==null?ca:Jl(Be,qe,Ie)}X.range=zt(ge||(oe?gS:V==C?X.distr==3?vS:X.distr==4?yS:Jm:X.distr==3?ev:X.distr==4?tv:mS)),X.auto=zt(xe?!1:X.auto),X.clamp=zt(X.clamp||tS),X._min=X._max=null,X.valToPct=E(X)}}}I("x"),I("y"),f==1&&x.forEach(V=>{I(V.scale)}),R.forEach(V=>{I(V.scale)});for(let V in n.scales)I(V);const z=_[C],P=z.distr;let O,$;z.ori==0?(xi(d,Tk),O=g,$=m):(xi(d,Mk),O=m,$=g);const A={};for(let V in _){let X=_[V];(X.min!=null||X.max!=null)&&(A[V]={min:X.min,max:X.max},X.min=X.max=null)}const N=n.tzDate||(V=>new Date(cr(V/b))),B=n.fmtDate||rh,U=b==1?TA(N):EA(N),K=xm(N,wm(b==1?$A:IA,B)),Q=km(N,Cm(LA,B)),J=[],he=r.legend=tr({},DA,n.legend),ne=r.cursor=tr({},HA,{drag:{y:f==2}},n.cursor),le=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=zt(de.width),de.dash=zt(de.dash),de.stroke=zt(de.stroke),de.fill=zt(de.fill);let me,_e,Te,Me=[],Xe=[],Ke,at=!1,et={};if(he.live){const V=x[1]?x[1].values:null;at=V!=null,Ke=at?V(r,1,0):{_:0};for(let X in Ke)et[X]=Vu}if(le)if(me=Xi("table",Wk,d),Te=Xi("tbody",null,me),he.mount(r,me),at){_e=Xi("thead",null,me,Te);let V=Xi("tr",null,_e);Xi("th",null,V);for(var lt in Ke)Xi("th",Eg,V).textContent=lt}else xi(me,zk),he.live&&xi(me,Bk);const Xt={show:!0},xn={show:!1};function Wt(V,X){if(X==0&&(at||!he.live||f==2))return ca;let ie=[],oe=Xi("tr",Hk,Te,Te.childNodes[X]);xi(oe,V.class),V.show||xi(oe,Ss);let ge=Xi("th",null,oe);if(de.show){let Pe=Oi(jk,ge);if(X>0){let Be=de.width(r,X);Be&&(Pe.style.border=Be+"px "+de.dash(r,X)+" "+de.stroke(r,X)),Pe.style.background=de.fill(r,X)}}let xe=Oi(Eg,ge);V.label instanceof HTMLElement?xe.appendChild(V.label):xe.textContent=V.label,X>0&&(de.show||(xe.style.color=V.width>0?de.stroke(r,X):de.fill(r,X)),un("click",ge,Pe=>{if(ne._lock)return;di(Pe);let Be=x.indexOf(V);if((Pe.ctrlKey||Pe.metaKey)!=he.isolate){let qe=x.some((Ye,Qe)=>Qe>0&&Qe!=Be&&Ye.show);x.forEach((Ye,Qe)=>{Qe>0&&Qr(Qe,qe?Qe==Be?Xt:xn:Xt,!0,ct.setSeries)})}else Qr(Be,{show:!V.show},!0,ct.setSeries)},!1),pi&&un(Ng,ge,Pe=>{ne._lock||(di(Pe),Qr(x.indexOf(V),zi,!0,ct.setSeries))},!1));for(var Ie in Ke){let Pe=Xi("td",Uk,oe);Pe.textContent="--",ie.push(Pe)}return[oe,ie]}const vr=new Map;function un(V,X,ie,oe=!0){const ge=vr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&(_s(V,X,ge[V]=xe),vr.set(X,ge))}function On(V,X,ie){const oe=vr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(Xu(ge,X,oe[ge]),delete oe[ge]);V==null&&vr.delete(X)}let Xn=0,Tr=0,mt=0,je=0,Lt=0,Ht=0,$n=Lt,yr=Ht,ur=mt,gn=je,Wn=0,Nn=0,Gt=0,ln=0;r.bbox={};let Dr=!1,Kr=!1,Gr=!1,Ai=!1,ci=!1,Bn=!1;function to(V,X,ie){(ie||V!=r.width||X!=r.height)&&ui(V,X),io(!1),Gr=!0,Kr=!0,wo()}function ui(V,X){r.width=Xn=mt=V,r.height=Tr=je=X,Lt=Ht=0,hi(),Qo();let ie=r.bbox;Wn=ie.left=Ts(Lt*en,.5),Nn=ie.top=Ts(Ht*en,.5),Gt=ie.width=Ts(mt*en,.5),ln=ie.height=Ts(je*en,.5)}const Os=3;function Yr(){let V=!1,X=0;for(;!V;){X++;let ie=wa(X),oe=ul(X);V=X==Os||ie&&oe,V||(ui(r.width,r.height),Kr=!0)}}function Cn({width:V,height:X}){to(V,X)}r.setSize=Cn;function hi(){let V=!1,X=!1,ie=!1,oe=!1;R.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ie,_size:Pe}=ge,Be=Ie%2,qe=ge.label!=null?ge.labelSize:0,Ye=Pe+qe;Ye>0&&(Be?(mt-=Ye,Ie==3?(Lt+=Ye,oe=!0):ie=!0):(je-=Ye,Ie==0?(Ht+=Ye,V=!0):X=!0))}}),gi[0]=V,gi[1]=ie,gi[2]=X,gi[3]=oe,mt-=wr[1]+wr[3],Lt+=wr[3],je-=wr[2]+wr[0],Ht+=wr[0]}function Qo(){let V=Lt+mt,X=Ht+je,ie=Lt,oe=Ht;function ge(xe,Ie){switch(xe){case 1:return V+=Ie,V-Ie;case 2:return X+=Ie,X-Ie;case 3:return ie-=Ie,ie+Ie;case 0:return oe-=Ie,oe+Ie}}R.forEach((xe,Ie)=>{if(xe.show&&xe._show){let Pe=xe.side;xe._pos=ge(Pe,xe._size),xe.label!=null&&(xe._lpos=ge(Pe,xe.labelSize))}})}if(ne.dataIdx==null){let V=ne.hover,X=V.skip=new Set(V.skip??[]);X.add(void 0);let ie=V.prox=zt(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,xe,Ie,Pe)=>{if(xe==0)return Ie;let Be=Ie,qe=ie(ge,xe,Ie,Pe)??pn,Ye=qe>=0&&qe<pn,Qe=z.ori==0?mt:je,yt=ne.left,Pt=t[0],wt=t[xe];if(X.has(wt[Ie])){Be=null;let Nt=null,dt=null,ot;if(oe==0||oe==-1)for(ot=Ie;Nt==null&&ot-- >0;)X.has(wt[ot])||(Nt=ot);if(oe==0||oe==1)for(ot=Ie;dt==null&&ot++<wt.length;)X.has(wt[ot])||(dt=ot);if(Nt!=null||dt!=null)if(Ye){let vn=Nt==null?-1/0:O(Pt[Nt],z,Qe,0),En=dt==null?1/0:O(Pt[dt],z,Qe,0),or=yt-vn,qt=En-yt;or<=qt?or<=qe&&(Be=Nt):qt<=qe&&(Be=dt)}else Be=dt==null?Nt:Nt==null?dt:Ie-Nt<=dt-Ie?Nt:dt}else Ye&&lr(yt-O(Pt[Ie],z,Qe,0))>qe&&(Be=null);return Be}}const di=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let kn=ne.points;kn.show=zt(kn.show),kn.size=zt(kn.size),kn.stroke=zt(kn.stroke),kn.width=zt(kn.width),kn.fill=zt(kn.fill);const hr=r.focus=tr({},n.focus||{alpha:.3},ne.focus),pi=hr.prox>=0,An=pi&&kn.one;let Tn=[],br=[],fi=[];function mo(V,X){let ie=kn.show(r,X);if(ie instanceof HTMLElement)return xi(ie,Pk),xi(ie,V.class),uo(ie,-10,-10,mt,je),i.insertBefore(ie,Tn[X]),ie}function vo(V,X){if(f==1||X>0){let ie=f==1&&_[V.scale].time,oe=V.value;V.value=ie?sm(oe)?km(N,Cm(oe,B)):oe||Q:oe||QA,V.label=V.label||(ie?UA:jA)}if(An||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||dS||nA,V.fillTo=zt(V.fillTo||rS),V.pxAlign=+Qt(V.pxAlign,s),V.pxRound=zm(V.pxAlign),V.stroke=zt(V.stroke||null),V.fill=zt(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=JA(Hr(1,V.width),1),oe=V.points=tr({},{size:ie,width:Hr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:pS,_stroke:null,_fill:null},V.points);oe.show=zt(oe.show),oe.filter=zt(oe.filter),oe.fill=zt(oe.fill),oe.stroke=zt(oe.stroke),oe.paths=zt(oe.paths),oe.pxAlign=V.pxAlign}if(le){let ie=Wt(V,X);Me.splice(X,0,ie[0]),Xe.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;An?X==0&&(ie=mo(V,X)):X>0&&(ie=mo(V,X)),Tn.splice(X,0,ie),br.splice(X,0,0),fi.splice(X,0,0)}tt("addSeries",X)}function Jo(V,X){X=X??x.length,V=f==1?vh(V,X,Im,Fm):vh(V,X,{},Dm),x.splice(X,0,V),vo(x[X],X)}r.addSeries=Jo;function Xr(V){if(x.splice(V,1),le){he.values.splice(V,1),Xe.splice(V,1);let X=Me.splice(V,1)[0];On(null,X.firstChild),X.remove()}se&&(J.splice(V,1),Tn.splice(V,1)[0].remove(),br.splice(V,1),fi.splice(V,1)),tt("delSeries",V)}r.delSeries=Xr;const gi=[!1,!1,!1,!1];function Fr(V,X){if(V._show=V.show,V.show){let ie=V.side%2,oe=_[V.scale];oe==null&&(V.scale=ie?x[1].scale:C,oe=_[V.scale]);let ge=oe.time;V.size=zt(V.size),V.space=zt(V.space),V.rotate=zt(V.rotate),Zo(V.incrs)&&V.incrs.forEach(Ie=>{!Xo.has(Ie)&&Xo.set(Ie,im(Ie))}),V.incrs=zt(V.incrs||(oe.distr==2?AA:ge?b==1?_A:MA:Ms)),V.splits=zt(V.splits||(ge&&oe.distr==1?U:oe.distr==3?uh:oe.distr==4?KA:qA)),V.stroke=zt(V.stroke),V.grid.stroke=zt(V.grid.stroke),V.ticks.stroke=zt(V.ticks.stroke),V.border.stroke=zt(V.border.stroke);let xe=V.values;V.values=Zo(xe)&&!Zo(xe[0])?zt(xe):ge?Zo(xe)?xm(N,wm(xe,B)):sm(xe)?RA(N,xe):xe||K:xe||VA,V.filter=zt(V.filter||(oe.distr>=3&&oe.log==10?XA:oe.distr==3&&oe.log==2?ZA:em)),V.font=nv(V.font),V.labelFont=nv(V.labelFont),V._size=V.size(r,null,X,0),V._space=V._rotate=V._incrs=V._found=V._splits=V._values=null,V._size>0&&(gi[X]=!0,V._el=Oi(Ok,u))}}function Ot(V,X,ie,oe){let[ge,xe,Ie,Pe]=ie,Be=X%2,qe=0;return Be==0&&(Pe||xe)&&(qe=X==0&&!ge||X==2&&!Ie?cr(Mm.size/3):0),Be==1&&(ge||Ie)&&(qe=X==1&&!xe||X==3&&!Pe?cr(Lm.size/2):0),qe}const To=r.padding=(n.padding||[Ot,Ot,Ot,Ot]).map(V=>zt(Qt(V,Ot))),wr=r._padding=To.map((V,X)=>V(r,X,gi,0));let ce,ze=null,Fe=null;const St=f==1?x[0].idxs:null;let Yt=null,jt=!1;function xr(V,X){if(t=V??[],r.data=r._data=t,f==2){ce=0;for(let ie=1;ie<x.length;ie++)ce+=t[ie][0].length}else{t.length==0&&(r.data=r._data=t=[[]]),Yt=t[0],ce=Yt.length;let ie=t;if(P==2){ie=t.slice();let oe=ie[0]=Array(ce);for(let ge=0;ge<ce;ge++)oe[ge]=ge}r._data=t=ie}if(io(!0),tt("setData"),P==2&&(Gr=!0),X!==!1){let ie=z;ie.auto(r,jt)?dr():rr(C,ie.min,ie.max),Ai=Ai||ne.left>=0,Bn=!0,wo()}}r.setData=xr;function dr(){jt=!0;let V,X;f==1&&(ce>0?(ze=St[0]=0,Fe=St[1]=ce-1,V=t[0][ze],X=t[0][Fe],P==2?(V=ze,X=Fe):V==X&&(P==3?[V,X]=Ql(V,V,z.log,!1):P==4?[V,X]=Zu(V,V,z.log,!1):z.time?X=V+cr(86400/b):[V,X]=Jl(V,X,Qu,!0))):(ze=St[0]=V=null,Fe=St[1]=X=null)),rr(C,V,X)}let zn,Cr,mn,no,Pr,es,Ns,Ds,ts,pr;function Fs(V,X,ie,oe,ge,xe){V??(V=Lg),ie??(ie=nh),oe??(oe="butt"),ge??(ge=Lg),xe??(xe="round"),V!=zn&&(l.strokeStyle=zn=V),ge!=Cr&&(l.fillStyle=Cr=ge),X!=mn&&(l.lineWidth=mn=X),xe!=Pr&&(l.lineJoin=Pr=xe),oe!=es&&(l.lineCap=es=oe),ie!=no&&l.setLineDash(no=ie)}function Mo(V,X,ie,oe){X!=Cr&&(l.fillStyle=Cr=X),V!=Ns&&(l.font=Ns=V),ie!=Ds&&(l.textAlign=Ds=ie),oe!=ts&&(l.textBaseline=ts=oe)}function ns(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,jt)&&(X==null||X.min==null)){let xe=Qt(ze,0),Ie=Qt(Fe,oe.length-1),Pe=ie.min==null?Xk(oe,xe,Ie,ge,V.distr==3):[ie.min,ie.max];V.min=Qi(V.min,ie.min=Pe[0]),V.max=Hr(V.max,ie.max=Pe[1])}}const rs={min:null,max:null};function yo(){for(let oe in _){let ge=_[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,jt))&&(A[oe]=rs)}for(let oe in _){let ge=_[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=rs)}A[C]!=null&&io(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let xe=V[oe]=ua(_[oe],oA);if(ge.min!=null)tr(xe,ge);else if(oe!=C||f==2)if(ce==0&&xe.from==null){let Ie=xe.range(r,null,null,oe);xe.min=Ie[0],xe.max=Ie[1]}else xe.min=pn,xe.max=-pn}}if(ce>0){x.forEach((oe,ge)=>{if(f==1){let xe=oe.scale,Ie=A[xe];if(Ie==null)return;let Pe=V[xe];if(ge==0){let Be=Pe.range(r,Pe.min,Pe.max,xe);Pe.min=Be[0],Pe.max=Be[1],ze=Zi(Pe.min,t[0]),Fe=Zi(Pe.max,t[0]),Fe-ze>1&&(t[0][ze]<Pe.min&&ze++,t[0][Fe]>Pe.max&&Fe--),oe.min=Yt[ze],oe.max=Yt[Fe]}else oe.show&&oe.auto&&ns(Pe,Ie,oe,t[ge],oe.sorted);oe.idxs[0]=ze,oe.idxs[1]=Fe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ie]=oe.facets,Pe=xe.scale,Be=Ie.scale,[qe,Ye]=t[ge],Qe=V[Pe],yt=V[Be];Qe!=null&&ns(Qe,A[Pe],xe,qe,xe.sorted),yt!=null&&ns(yt,A[Be],Ie,Ye,Ie.sorted),oe.min=Ie.min,oe.max=Ie.max}});for(let oe in V){let ge=V[oe],xe=A[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ie=ge.range(r,ge.min==pn?null:ge.min,ge.max==-pn?null:ge.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}for(let oe in V){let ge=V[oe];if(ge.from!=null){let xe=V[ge.from];if(xe.min==null)ge.min=ge.max=null;else{let Ie=ge.range(r,xe.min,xe.max,oe);ge.min=Ie[0],ge.max=Ie[1]}}}let X={},ie=!1;for(let oe in V){let ge=V[oe],xe=_[oe];if(xe.min!=ge.min||xe.max!=ge.max){xe.min=ge.min,xe.max=ge.max;let Ie=xe.distr;xe._min=Ie==3?_o(xe.min):Ie==4?eh(xe.min,xe.asinh):Ie==100?xe.fwd(xe.min):xe.min,xe._max=Ie==3?_o(xe.max):Ie==4?eh(xe.max,xe.asinh):Ie==100?xe.fwd(xe.max):xe.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{f==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)Gr=!0,tt("setScale",oe);se&&ne.left>=0&&(Ai=Bn=!0)}for(let oe in A)A[oe]=null}function Ps(V){let X=th(ze-1,0,ce-1),ie=th(Fe+1,0,ce-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ce-1;)ie++;return[X,ie]}function ba(){if(ce>0){let V=x.some(X=>X._focus)&&pr!=hr.alpha;V&&(l.globalAlpha=pr=hr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(is(ie,!1),is(ie,!0),X._paths==null)){let oe=pr;pr!=X.alpha&&(l.globalAlpha=pr=X.alpha);let ge=f==2?[0,t[ie][0].length-1]:Ps(t[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),pr!=oe&&(l.globalAlpha=pr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=pr;pr!=X.alpha&&(l.globalAlpha=pr=X.alpha),X._paths!=null&&os(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,ze,Fe,ge),Ie=X.points.filter(r,ie,xe,ge);(xe||Ie)&&(X.points._paths=X.points.paths(r,ie,ze,Fe,Ie),os(ie,!0))}pr!=oe&&(l.globalAlpha=pr=oe),tt("drawSeries",ie)}}),V&&(l.globalAlpha=pr=1)}}function is(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function os(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ie,_stroke:Pe=ie._stroke,_fill:Be=ie._fill,_width:qe=ie.width}=ie._paths;qe=fn(qe*en,3);let Ye=null,Qe=qe%2/2;X&&Be==null&&(Be=qe>0?"#fff":Pe);let yt=ie.pxAlign==1&&Qe>0;if(yt&&l.translate(Qe,Qe),!X){let Pt=Wn-qe/2,wt=Nn-qe/2,Nt=Gt+qe,dt=ln+qe;Ye=new Path2D,Ye.rect(Pt,wt,Nt,dt)}X?Io(Pe,qe,ie.dash,ie.cap,Be,oe,ge,Ie,xe):Ws(V,Pe,qe,ie.dash,ie.cap,Be,oe,ge,Ie,Ye,xe),yt&&l.translate(-Qe,-Qe)}function Ws(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye){let Qe=!1;Be!=0&&k.forEach((yt,Pt)=>{if(yt.series[0]==V){let wt=x[yt.series[1]],Nt=t[yt.series[1]],dt=(wt._paths||Ya).band;Zo(dt)&&(dt=yt.dir==1?dt[0]:dt[1]);let ot,vn=null;wt.show&&dt&&Qk(Nt,ze,Fe)?(vn=yt.fill(r,Pt)||xe,ot=wt._paths.clip):dt=null,Io(X,ie,oe,ge,vn,Ie,Pe,Be,qe,Ye,ot,dt),Qe=!0}}),Qe||Io(X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye)}const ss=da|dh;function Io(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe,Ye,Qe){Fs(V,X,ie,oe,ge),(Be||qe||Qe)&&(l.save(),Be&&l.clip(Be),qe&&l.clip(qe)),Qe?(Pe&ss)==ss?(l.clip(Qe),Ye&&l.clip(Ye),fr(ge,Ie),Fi(V,xe,X)):Pe&dh?(fr(ge,Ie),l.clip(Qe),Fi(V,xe,X)):Pe&da&&(l.save(),l.clip(Qe),Ye&&l.clip(Ye),fr(ge,Ie),l.restore(),Fi(V,xe,X)):(fr(ge,Ie),Fi(V,xe,X)),(Be||qe||Qe)&&l.restore()}function Fi(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{l.strokeStyle=zn=ge,l.stroke(oe)}):X!=null&&V&&l.stroke(X))}function fr(V,X){X instanceof Map?X.forEach((ie,oe)=>{l.fillStyle=Cr=oe,l.fill(ie)}):X!=null&&V&&l.fill(X)}function bo(V,X,ie,oe){let ge=R[V],xe;if(oe<=0)xe=[0,0];else{let Ie=ge._space=ge.space(r,V,X,ie,oe),Pe=ge._incrs=ge.incrs(r,V,X,ie,oe,Ie);xe=bS(X,ie,Pe,oe,Ie)}return ge._found=xe}function ro(V,X,ie,oe,ge,xe,Ie,Pe,Be,qe){let Ye=Ie%2/2;s==1&&l.translate(Ye,Ye),Fs(Pe,Ie,Be,qe,Pe),l.beginPath();let Qe,yt,Pt,wt,Nt=ge+(oe==0||oe==3?-xe:xe);ie==0?(yt=ge,wt=Nt):(Qe=ge,Pt=Nt);for(let dt=0;dt<V.length;dt++)X[dt]!=null&&(ie==0?Qe=Pt=V[dt]:yt=wt=V[dt],l.moveTo(Qe,yt),l.lineTo(Pt,wt));l.stroke(),s==1&&l.translate(-Ye,-Ye)}function wa(V){let X=!0;return R.forEach((ie,oe)=>{if(!ie.show)return;let ge=_[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,io(!1));return}else ie._show||(X=!1,ie._show=!0,io(!1));let xe=ie.side,Ie=xe%2,{min:Pe,max:Be}=ge,[qe,Ye]=bo(oe,Pe,Be,Ie==0?mt:je);if(Ye==0)return;let Qe=ge.distr==2,yt=ie._splits=ie.splits(r,oe,Pe,Be,qe,Ye,Qe),Pt=ge.distr==2?yt.map(ot=>Yt[ot]):yt,wt=ge.distr==2?Yt[yt[1]]-Yt[yt[0]]:qe,Nt=ie._values=ie.values(r,ie.filter(r,Pt,oe,Ye,wt),oe,Ye,wt);ie._rotate=xe==2?ie.rotate(r,Nt,oe,Ye):0;let dt=ie._size;ie._size=Ni(ie.size(r,Nt,oe,V)),dt!=null&&ie._size!=dt&&(X=!1)}),X}function ul(V){let X=!0;return To.forEach((ie,oe)=>{let ge=ie(r,oe,gi,V);ge!=wr[oe]&&(X=!1),wr[oe]=ge}),X}function Eo(){for(let V=0;V<R.length;V++){let X=R[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,xe,Ie=X.stroke(r,V),Pe=ie==0||ie==3?-1:1,[Be,qe]=X._found;if(X.label!=null){let dn=X.labelGap*Pe,_r=cr((X._lpos+dn)*en);Mo(X.labelFont[0],Ie,"center",ie==2?qa:Rg),l.save(),oe==1?(ge=xe=0,l.translate(_r,cr(Nn+ln/2)),l.rotate((ie==3?-ec:ec)/2)):(ge=cr(Wn+Gt/2),xe=_r);let Do=Qg(X.label)?X.label(r,V,Be,qe):X.label;l.fillText(Do,ge,xe),l.restore()}if(qe==0)continue;let Ye=_[X.scale],Qe=oe==0?Gt:ln,yt=oe==0?Wn:Nn,Pt=X._splits,wt=Ye.distr==2?Pt.map(dn=>Yt[dn]):Pt,Nt=Ye.distr==2?Yt[Pt[1]]-Yt[Pt[0]]:Be,dt=X.ticks,ot=X.border,vn=dt.show?dt.size:0,En=cr(vn*en),or=cr((X.alignTo==2?X._size-vn-X.gap:X.gap)*en),qt=X._rotate*-ec/180,fe=p(X._pos*en),$e=(En+or)*Pe,Ce=fe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ue=X.font[0],ut=X.align==1?oa:X.align==2?zu:qt>0?oa:qt<0?zu:oe==0?"center":ie==3?zu:oa,$t=qt||oe==1?"middle":ie==2?qa:Rg;Mo(Ue,Ie,ut,$t);let Zt=X.font[1]*X.lineGap,It=Pt.map(dn=>p(w(dn,Ye,Qe,yt))),Jr=X._values;for(let dn=0;dn<Jr.length;dn++){let _r=Jr[dn];if(_r!=null){oe==0?ge=It[dn]:xe=It[dn],_r=""+_r;let Do=_r.indexOf(`
|
|
1490
|
+
`)==-1?[_r]:_r.split(/\n/gm);for(let Vn=0;Vn<Do.length;Vn++){let zs=Do[Vn];qt?(l.save(),l.translate(ge,xe+Vn*Zt),l.rotate(qt),l.fillText(zs,0,0),l.restore()):l.fillText(zs,ge,xe+Vn*Zt)}}}dt.show&&ro(It,dt.filter(r,wt,V,qe,Nt),oe,ie,fe,En,fn(dt.width*en,3),dt.stroke(r,V),dt.dash,dt.cap);let Hi=X.grid;Hi.show&&ro(It,Hi.filter(r,wt,V,qe,Nt),oe,oe==0?2:1,oe==0?Nn:Wn,oe==0?ln:Gt,fn(Hi.width*en,3),Hi.stroke(r,V),Hi.dash,Hi.cap),ot.show&&ro([fe],[1],oe==0?1:0,oe==0?1:2,oe==1?Nn:Wn,oe==1?ln:Gt,fn(ot.width*en,3),ot.stroke(r,V),ot.dash,ot.cap)}tt("drawAxes")}function io(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(f==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Ro=!1,as=!1,Lo=[];function xa(){as=!1;for(let V=0;V<Lo.length;V++)tt(...Lo[V]);Lo.length=0}function wo(){Ro||(dA(Ca),Ro=!0)}function We(V,X=!1){Ro=!0,as=X,V(r),Ca(),X&&Lo.length>0&&queueMicrotask(xa)}r.batch=We;function Ca(){if(Dr&&(yo(),Dr=!1),Gr&&(Yr(),Gr=!1),Kr){if(wn(c,oa,Lt),wn(c,qa,Ht),wn(c,Ua,mt),wn(c,Va,je),wn(i,oa,Lt),wn(i,qa,Ht),wn(i,Ua,mt),wn(i,Va,je),wn(u,Ua,Xn),wn(u,Va,Tr),a.width=cr(Xn*en),a.height=cr(Tr*en),R.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ie=ge%2==1;wn(V,Ie?"left":"top",oe-xe),wn(V,Ie?"width":"height",ie),wn(V,Ie?"top":"left",Ie?Ht:Lt),wn(V,Ie?"height":"width",Ie?je:mt),Gu(V,Ss)}else xi(V,Ss)}),zn=Cr=mn=Pr=es=Ns=Ds=ts=no=null,pr=1,W(!0),Lt!=$n||Ht!=yr||mt!=ur||je!=gn){io(!1);let V=mt/ur,X=je/gn;if(se&&!Ai&&ne.left>=0){ne.left*=V,ne.top*=X,Si&&uo(Si,cr(ne.left),0,mt,je),Zn&&uo(Zn,0,cr(ne.top),mt,je);for(let ie=0;ie<Tn.length;ie++){let oe=Tn[ie];oe!=null&&(br[ie]*=V,fi[ie]*=X,uo(oe,Ni(br[ie]),Ni(fi[ie]),mt,je))}}if(vt.show&&!ci&&vt.left>=0&&vt.width>0){vt.left*=V,vt.width*=V,vt.top*=X,vt.height*=X;for(let ie in Y)wn(Zr,ie,vt[ie])}$n=Lt,yr=Ht,ur=mt,gn=je}tt("setSize"),Kr=!1}Xn>0&&Tr>0&&(l.clearRect(0,0,a.width,a.height),tt("drawClear"),D.forEach(V=>V()),tt("draw")),vt.show&&ci&&(hn(vt),ci=!1),se&&Ai&&(S(null,!0,!1),Ai=!1),he.show&&he.live&&Bn&&(y(),Bn=!1),h||(h=!0,r.status=1,tt("ready")),jt=!1,Ro=!1}r.redraw=(V,X)=>{Gr=X||!1,V!==!1?rr(C,z.min,z.max):wo()};function Ne(V,X){let ie=_[V];if(ie.from==null){if(ce==0){let oe=ie.range(r,X.min,X.max,V);X.min=oe[0],X.max=oe[1]}if(X.min>X.max){let oe=X.min;X.min=X.max,X.max=oe}if(ce>1&&X.min!=null&&X.max!=null&&X.max-X.min<1e-16)return;V==C&&ie.distr==2&&ce>0&&(X.min=Zi(X.min,t[0]),X.max=Zi(X.max,t[0]),X.min==X.max&&X.max++),A[V]=X,Dr=!0,wo()}}r.setScale=Ne;let Dn,Oo,Si,Zn,ka,No,Pi,xo,nn,Jt,rn,Ut,Wi=!1;const Hn=ne.drag;let He=Hn.x,yn=Hn.y;se&&(ne.x&&(Dn=Oi(Dk,i)),ne.y&&(Oo=Oi(Fk,i)),z.ori==0?(Si=Dn,Zn=Oo):(Si=Oo,Zn=Dn),rn=ne.left,Ut=ne.top);const vt=r.select=tr({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),Zr=vt.show?Oi(Nk,vt.over?i:c):null;function hn(V,X){if(vt.show){for(let ie in V)vt[ie]=V[ie],ie in Y&&wn(Zr,ie,V[ie]);X!==!1&&tt("setSelect")}}r.setSelect=hn;function Sn(V){if(x[V].show)le&&Gu(Me[V],Ss);else if(le&&xi(Me[V],Ss),se){let X=An?Tn[0]:Tn[V];X!=null&&uo(X,-10,-10,mt,je)}}function rr(V,X,ie){Ne(V,{min:X,max:ie})}function Qr(V,X,ie,oe){X.focus!=null&&kr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,Sn(xe),f==2?(rr(ge.facets[0].scale,null,null),rr(ge.facets[1].scale,null,null)):rr(ge.scale,null,null),wo())}),ie!==!1&&tt("setSeries",V,X),oe&&_t("setSeries",r,V,X)}r.setSeries=Qr;function Bi(V,X){tr(k[V],X)}function jn(V,X){V.fill=zt(V.fill||null),V.dir=Qt(V.dir,-1),X=X??k.length,k.splice(X,0,V)}function mi(V){V==null?k.length=0:k.splice(V,1)}r.addBand=jn,r.setBand=Bi,r.delBand=mi;function ls(V,X){x[V].alpha=X,se&&Tn[V]!=null&&(Tn[V].style.opacity=X),le&&Me[V]&&(Me[V].style.opacity=X)}let Un,_i,$i;const zi={focus:!0};function kr(V){if(V!=$i){let X=V==null,ie=hr.alpha!=1;x.forEach((oe,ge)=>{if(f==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&ls(ge,xe?1:hr.alpha)}}),$i=V,ie&&wo()}}le&&pi&&un(Dg,me,V=>{ne._lock||(di(V),$i!=null&&Qr(null,zi,!0,ct.setSeries))});function Ar(V,X,ie){let oe=_[X];ie&&(V=V/en-(oe.ori==1?Ht:Lt));let ge=mt;oe.ori==1&&(ge=je,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ie=oe._max,Pe=V/ge,Be=xe+(Ie-xe)*Pe,qe=oe.distr;return qe==3?la(10,Be):qe==4?eA(Be,oe.asinh):qe==100?oe.bwd(Be):Be}function Mr(V,X){let ie=Ar(V,C,X);return Zi(ie,t[0],ze,Fe)}r.valToIdx=V=>Zi(V,t[0]),r.posToIdx=Mr,r.posToVal=Ar,r.valToPos=(V,X,ie)=>_[X].ori==0?g(V,_[X],ie?Gt:mt,ie?Wn:0):m(V,_[X],ie?ln:je,ie?Nn:0),r.setCursor=(V,X,ie)=>{rn=V.left,Ut=V.top,S(null,X,ie)};function Bs(V,X){wn(Zr,oa,vt.left=V),wn(Zr,Ua,vt.width=X)}function Ir(V,X){wn(Zr,qa,vt.top=V),wn(Zr,Va,vt.height=X)}let Wr=z.ori==0?Bs:Ir,Ti=z.ori==1?Bs:Ir;function Mi(){if(le&&he.live)for(let V=f==2?1:0;V<x.length;V++){if(V==0&&at)continue;let X=he.values[V],ie=0;for(let oe in X)Xe[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):iA(V.idx)||J.fill(V.idx),he.idx=J[0]),le&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||f==1&&!at)&&T(ie,J[ie]);Mi()}Bn=!1,X!==!1&&tt("setLegend")}r.setLegend=y;function T(V,X){let ie=x[V],oe=V==0&&P==2?Yt:t[V],ge;at?ge=ie.values(r,V,X)??et:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?et:{_:ge}),he.values[V]=ge}function S(V,X,ie){nn=rn,Jt=Ut,[rn,Ut]=ne.move(r,rn,Ut),ne.left=rn,ne.top=Ut,se&&(Si&&uo(Si,cr(rn),0,mt,je),Zn&&uo(Zn,0,cr(Ut),mt,je));let oe,ge=ze>Fe;Un=pn,_i=null;let xe=z.ori==0?mt:je,Ie=z.ori==1?mt:je;if(rn<0||ce==0||ge){oe=ne.idx=null;for(let Pe=0;Pe<x.length;Pe++){let Be=Tn[Pe];Be!=null&&uo(Be,-10,-10,mt,je)}pi&&Qr(null,zi,!0,V==null&&ct.setSeries),he.live&&(J.fill(oe),Bn=!0)}else{let Pe,Be,qe;f==1&&(Pe=z.ori==0?rn:Ut,Be=Ar(Pe,C),oe=ne.idx=Zi(Be,t[0],ze,Fe),qe=O(t[0][oe],z,xe,0));let Ye=-10,Qe=-10,yt=0,Pt=0,wt=!0,Nt="",dt="";for(let ot=f==2?1:0;ot<x.length;ot++){let vn=x[ot],En=J[ot],or=En==null?null:f==1?t[ot][En]:t[ot][1][En],qt=ne.dataIdx(r,ot,oe,Be),fe=qt==null?null:f==1?t[ot][qt]:t[ot][1][qt];if(Bn=Bn||fe!=or||qt!=En,J[ot]=qt,ot>0&&vn.show){let $e=qt==null?-10:qt==oe?qe:O(f==1?t[0][qt]:t[ot][0][qt],z,xe,0),Ce=fe==null?-10:$(fe,f==1?_[vn.scale]:_[vn.facets[1].scale],Ie,0);if(pi&&fe!=null){let Ue=z.ori==1?rn:Ut,ut=lr(hr.dist(r,ot,qt,Ce,Ue));if(ut<Un){let $t=hr.bias;if($t!=0){let Zt=Ar(Ue,vn.scale),It=fe>=0?1:-1,Jr=Zt>=0?1:-1;Jr==It&&(Jr==1?$t==1?fe>=Zt:fe<=Zt:$t==1?fe<=Zt:fe>=Zt)&&(Un=ut,_i=ot)}else Un=ut,_i=ot}}if(Bn||An){let Ue,ut;z.ori==0?(Ue=$e,ut=Ce):(Ue=Ce,ut=$e);let $t,Zt,It,Jr,Hi,dn,_r=!0,Do=kn.bbox;if(Do!=null){_r=!1;let Vn=Do(r,ot);It=Vn.left,Jr=Vn.top,$t=Vn.width,Zt=Vn.height}else It=Ue,Jr=ut,$t=Zt=kn.size(r,ot);if(dn=kn.fill(r,ot),Hi=kn.stroke(r,ot),An)ot==_i&&Un<=hr.prox&&(Ye=It,Qe=Jr,yt=$t,Pt=Zt,wt=_r,Nt=dn,dt=Hi);else{let Vn=Tn[ot];Vn!=null&&(br[ot]=It,fi[ot]=Jr,jg(Vn,$t,Zt,_r),zg(Vn,dn,Hi),uo(Vn,Ni(It),Ni(Jr),mt,je))}}}}if(An){let ot=hr.prox,vn=$i==null?Un<=ot:Un>ot||_i!=$i;if(Bn||vn){let En=Tn[0];En!=null&&(br[0]=Ye,fi[0]=Qe,jg(En,yt,Pt,wt),zg(En,Nt,dt),uo(En,Ni(Ye),Ni(Qe),mt,je))}}}if(vt.show&&Wi)if(V!=null){let[Pe,Be]=ct.scales,[qe,Ye]=ct.match,[Qe,yt]=V.cursor.sync.scales,Pt=V.cursor.drag;if(He=Pt._x,yn=Pt._y,He||yn){let{left:wt,top:Nt,width:dt,height:ot}=V.select,vn=V.scales[Qe].ori,En=V.posToVal,or,qt,fe,$e,Ce,Ue=Pe!=null&&qe(Pe,Qe),ut=Be!=null&&Ye(Be,yt);Ue&&He?(vn==0?(or=wt,qt=dt):(or=Nt,qt=ot),fe=_[Pe],$e=O(En(or,Qe),fe,xe,0),Ce=O(En(or+qt,Qe),fe,xe,0),Wr(Qi($e,Ce),lr(Ce-$e))):Wr(0,xe),ut&&yn?(vn==1?(or=wt,qt=dt):(or=Nt,qt=ot),fe=_[Be],$e=$(En(or,yt),fe,Ie,0),Ce=$(En(or+qt,yt),fe,Ie,0),Ti(Qi($e,Ce),lr(Ce-$e))):Ti(0,Ie)}else Z()}else{let Pe=lr(nn-ka),Be=lr(Jt-No);if(z.ori==1){let yt=Pe;Pe=Be,Be=yt}He=Hn.x&&Pe>=Hn.dist,yn=Hn.y&&Be>=Hn.dist;let qe=Hn.uni;qe!=null?He&&yn&&(He=Pe>=qe,yn=Be>=qe,!He&&!yn&&(Be>Pe?yn=!0:He=!0)):Hn.x&&Hn.y&&(He||yn)&&(He=yn=!0);let Ye,Qe;He&&(z.ori==0?(Ye=Pi,Qe=rn):(Ye=xo,Qe=Ut),Wr(Qi(Ye,Qe),lr(Qe-Ye)),yn||Ti(0,Ie)),yn&&(z.ori==1?(Ye=Pi,Qe=rn):(Ye=xo,Qe=Ut),Ti(Qi(Ye,Qe),lr(Qe-Ye)),He||Wr(0,xe)),!He&&!yn&&(Wr(0,0),Ti(0,0))}if(Hn._x=He,Hn._y=yn,V==null){if(ie){if(Mn!=null){let[Pe,Be]=ct.scales;ct.values[0]=Pe!=null?Ar(z.ori==0?rn:Ut,Pe):null,ct.values[1]=Be!=null?Ar(z.ori==1?rn:Ut,Be):null}_t(ju,r,rn,Ut,mt,je,oe)}if(pi){let Pe=ie&&ct.setSeries,Be=hr.prox;$i==null?Un<=Be&&Qr(_i,zi,!0,Pe):Un>Be?Qr(null,zi,!0,Pe):_i!=$i&&Qr(_i,zi,!0,Pe)}}Bn&&(he.idx=oe,y()),X!==!1&&tt("setCursor")}let F=null;Object.defineProperty(r,"rect",{get(){return F==null&&W(!1),F}});function W(V=!1){V?F=null:(F=i.getBoundingClientRect(),tt("syncRect",F))}function H(V,X,ie,oe,ge,xe,Ie){ne._lock||Wi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,xe,Ie,!1,V!=null),V!=null?S(null,!0,!0):S(X,!0,!1))}function q(V,X,ie,oe,ge,xe,Ie,Pe,Be){if(F==null&&W(!1),di(V),V!=null)ie=V.clientX-F.left,oe=V.clientY-F.top;else{if(ie<0||oe<0){rn=-10,Ut=-10;return}let[qe,Ye]=ct.scales,Qe=X.cursor.sync,[yt,Pt]=Qe.values,[wt,Nt]=Qe.scales,[dt,ot]=ct.match,vn=X.axes[0].side%2==1,En=z.ori==0?mt:je,or=z.ori==1?mt:je,qt=vn?xe:ge,fe=vn?ge:xe,$e=vn?oe:ie,Ce=vn?ie:oe;if(wt!=null?ie=dt(qe,wt)?w(yt,_[qe],En,0):-10:ie=En*($e/qt),Nt!=null?oe=ot(Ye,Nt)?w(Pt,_[Ye],or,0):-10:oe=or*(Ce/fe),z.ori==1){let Ue=ie;ie=oe,oe=Ue}}Be&&(X==null||X.cursor.event.type==ju)&&((ie<=1||ie>=mt-1)&&(ie=Ts(ie,mt)),(oe<=1||oe>=je-1)&&(oe=Ts(oe,je))),Pe?(ka=ie,No=oe,[Pi,xo]=ne.move(r,ie,oe)):(rn=ie,Ut=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){hn(Y,!1)}let re,ae,be,ke;function ve(V,X,ie,oe,ge,xe,Ie){Wi=!0,He=yn=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!0,!1),V!=null&&(un(Uu,qu,we,!1),_t(Og,r,Pi,xo,mt,je,null));let{left:Pe,top:Be,width:qe,height:Ye}=vt;re=Pe,ae=Be,be=qe,ke=Ye}function we(V,X,ie,oe,ge,xe,Ie){Wi=Hn._x=Hn._y=!1,q(V,X,ie,oe,ge,xe,Ie,!1,!0);let{left:Pe,top:Be,width:qe,height:Ye}=vt,Qe=qe>0||Ye>0,yt=re!=Pe||ae!=Be||be!=qe||ke!=Ye;if(Qe&&yt&&hn(vt),Hn.setScale&&Qe&&yt){let Pt=Pe,wt=qe,Nt=Be,dt=Ye;if(z.ori==1&&(Pt=Be,wt=Ye,Nt=Pe,dt=qe),He&&rr(C,Ar(Pt,C),Ar(Pt+wt,C)),yn)for(let ot in _){let vn=_[ot];ot!=C&&vn.from==null&&vn.min!=pn&&rr(ot,Ar(Nt+dt,ot),Ar(Nt,ot))}Z()}else ne.lock&&(ne._lock=!ne._lock,S(X,!0,V!=null));V!=null&&(On(Uu,qu),_t(Uu,r,rn,Ut,mt,je,null))}function Oe(V,X,ie,oe,ge,xe,Ie){if(ne._lock)return;di(V);let Pe=Wi;if(Wi){let Be=!0,qe=!0,Ye=10,Qe,yt;z.ori==0?(Qe=He,yt=yn):(Qe=yn,yt=He),Qe&&yt&&(Be=rn<=Ye||rn>=mt-Ye,qe=Ut<=Ye||Ut>=je-Ye),Qe&&Be&&(rn=rn<Pi?0:mt),yt&&qe&&(Ut=Ut<xo?0:je),S(null,!0,!0),Wi=!1}rn=-10,Ut=-10,J.fill(null),S(null,!0,!0),Pe&&(Wi=Pe)}function Le(V,X,ie,oe,ge,xe,Ie){ne._lock||(di(V),dr(),Z(),V!=null&&_t(Fg,r,rn,Ut,mt,je,null))}function Ve(){R.forEach(wS),to(r.width,r.height,!0)}_s(Yl,aa,Ve);const st={};st.mousedown=ve,st.mousemove=H,st.mouseup=we,st.dblclick=Le,st.setSeries=(V,X,ie,oe)=>{let ge=ct.match[2];ie=ge(r,X,ie),ie!=-1&&Qr(ie,oe,!0,!1)},se&&(un(Og,i,ve),un(ju,i,H),un(Ng,i,V=>{di(V),W(!1)}),un(Dg,i,Oe),un(Fg,i,Le),mh.add(r),r.syncRect=W);const Ze=r.hooks=n.hooks||{};function tt(V,X,ie){as?Lo.push([V,X,ie]):V in Ze&&Ze[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)Ze[X]=(Ze[X]||[]).concat(V.hooks[X])});const bn=(V,X,ie)=>ie,ct=tr({key:null,setSeries:!1,filters:{pub:tm,sub:tm},scales:[C,x[1]?x[1].scale:null],match:[nm,nm,bn],values:[null,null]},ne.sync);ct.match.length==2&&ct.match.push(bn),ne.sync=ct;const Mn=ct.key,bt=Bm(Mn);function _t(V,X,ie,oe,ge,xe,Ie){ct.filters.pub(V,X,ie,oe,ge,xe,Ie)&&bt.pub(V,X,ie,oe,ge,xe,Ie)}bt.sub(r);function ir(V,X,ie,oe,ge,xe,Ie){ct.filters.sub(V,X,ie,oe,ge,xe,Ie)&&st[V](null,X,ie,oe,ge,xe,Ie)}r.pub=ir;function Sr(){bt.unsub(r),mh.delete(r),vr.clear(),Xu(Yl,aa,Ve),d.remove(),me==null||me.remove(),tt("destroy")}r.destroy=Sr;function In(){tt("init",n,t),xr(t||n.data,!1),A[C]?Ne(C,A[C]):dr(),ci=vt.show&&(vt.width>0||vt.height>0),Ai=Bn=!0,to(n.width,n.height)}return x.forEach(vo),R.forEach(Fr),e?e instanceof HTMLElement?(e.appendChild(d),In()):e(r,In):In(),r}Or.assign=tr,Or.fmtNum=Ju,Or.rangeNum=Jl,Or.rangeLog=Ql,Or.rangeAsinh=Zu,Or.orient=Is,Or.pxRatio=en,Or.join=hA,Or.fmtDate=rh,Or.tzDate=CA,Or.sync=Bm;{Or.addGap=iS,Or.clipGaps=sc;let n=Or.paths={points:Km};n.linear=Ym,n.stepped=aS,n.bars=lS,n.spline=uS}var rv,iv;function xS(){return iv||(iv=1,rv=function(n,t,e,r,f){var g,m;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(f===void 0)f=n.length-1;else if(f=f|0,f<r||f>=n.length)throw new RangeError("invalid upper bound");for(;r<=f;)if(g=r+(f-r>>>1),m=+e(n[g],t,g,n),m<0)r=g+1;else if(m>0)f=g-1;else return g;return~r}),rv}var CS=xS();const gD=sr("z",El(CS));var yh,ov;function kS(){if(ov)return yh;ov=1;function n(t,e,r){var f=-1,g=t.length;e<0&&(e=-e>g?0:g+e),r=r>g?g:r,r<0&&(r+=g),g=e>r?0:r-e>>>0,e>>>=0;for(var m=Array(g);++f<g;)m[f]=t[f+e];return m}return yh=n,yh}var bh,sv;function AS(){if(sv)return bh;sv=1;var n=kS();function t(e,r,f){var g=e.length;return f=f===void 0?g:f,!r&&f>=g?e:n(e,r,f)}return bh=t,bh}var wh,av;function lv(){if(av)return wh;av=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="\\u200d",w=RegExp("["+m+n+f+g+"]");function h(d){return w.test(d)}return wh=h,wh}var xh,cv;function SS(){if(cv)return xh;cv=1;function n(t){return t.split("")}return xh=n,xh}var Ch,uv;function _S(){if(uv)return Ch;uv=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\ufe0e\\ufe0f",m="["+n+"]",w="["+f+"]",h="\\ud83c[\\udffb-\\udfff]",d="(?:"+w+"|"+h+")",a="[^"+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=d+"?",s="["+g+"]?",p="(?:"+c+"(?:"+[a,l,u].join("|")+")"+s+i+")*",b=s+i+p,x="(?:"+[a+w+"?",w,l,u,m].join("|")+")",R=RegExp(h+"(?="+h+")|"+x+b,"g");function _(k){return k.match(R)||[]}return Ch=_,Ch}var kh,hv;function $S(){if(hv)return kh;hv=1;var n=SS(),t=lv(),e=_S();function r(f){return t(f)?e(f):n(f)}return kh=r,kh}var Ah,dv;function TS(){if(dv)return Ah;dv=1;var n=typeof Yo=="object"&&Yo&&Yo.Object===Object&&Yo;return Ah=n,Ah}var Sh,pv;function MS(){if(pv)return Sh;pv=1;var n=TS(),t=typeof self=="object"&&self&&self.Object===Object&&self,e=n||t||Function("return this")();return Sh=e,Sh}var _h,fv;function $h(){if(fv)return _h;fv=1;var n=MS(),t=n.Symbol;return _h=t,_h}var Th,gv;function IS(){if(gv)return Th;gv=1;function n(t,e){for(var r=-1,f=t==null?0:t.length,g=Array(f);++r<f;)g[r]=e(t[r],r,t);return g}return Th=n,Th}var Mh,mv;function ES(){if(mv)return Mh;mv=1;var n=Array.isArray;return Mh=n,Mh}var Ih,vv;function RS(){if(vv)return Ih;vv=1;var n=$h(),t=Object.prototype,e=t.hasOwnProperty,r=t.toString,f=n?n.toStringTag:void 0;function g(m){var w=e.call(m,f),h=m[f];try{m[f]=void 0;var d=!0}catch{}var a=r.call(m);return d&&(w?m[f]=h:delete m[f]),a}return Ih=g,Ih}var Eh,yv;function LS(){if(yv)return Eh;yv=1;var n=Object.prototype,t=n.toString;function e(r){return t.call(r)}return Eh=e,Eh}var Rh,bv;function OS(){if(bv)return Rh;bv=1;var n=$h(),t=RS(),e=LS(),r="[object Null]",f="[object Undefined]",g=n?n.toStringTag:void 0;function m(w){return w==null?w===void 0?f:r:g&&g in Object(w)?t(w):e(w)}return Rh=m,Rh}var Lh,wv;function NS(){if(wv)return Lh;wv=1;function n(t){return t!=null&&typeof t=="object"}return Lh=n,Lh}var Oh,xv;function DS(){if(xv)return Oh;xv=1;var n=OS(),t=NS(),e="[object Symbol]";function r(f){return typeof f=="symbol"||t(f)&&n(f)==e}return Oh=r,Oh}var Nh,Cv;function FS(){if(Cv)return Nh;Cv=1;var n=$h(),t=IS(),e=ES(),r=DS(),f=n?n.prototype:void 0,g=f?f.toString:void 0;function m(w){if(typeof w=="string")return w;if(e(w))return t(w,m)+"";if(r(w))return g?g.call(w):"";var h=w+"";return h=="0"&&1/w==-1/0?"-0":h}return Nh=m,Nh}var Dh,kv;function uc(){if(kv)return Dh;kv=1;var n=FS();function t(e){return e==null?"":n(e)}return Dh=t,Dh}var Fh,Av;function PS(){if(Av)return Fh;Av=1;var n=AS(),t=lv(),e=$S(),r=uc();function f(g){return function(m){m=r(m);var w=t(m)?e(m):void 0,h=w?w[0]:m.charAt(0),d=w?n(w,1).join(""):m.slice(1);return h[g]()+d}}return Fh=f,Fh}var Ph,Sv;function _v(){if(Sv)return Ph;Sv=1;var n=PS(),t=n("toUpperCase");return Ph=t,Ph}var WS=_v();const BS=El(WS);var Wh,$v;function zS(){if($v)return Wh;$v=1;var n=uc(),t=_v();function e(r){return t(n(r).toLowerCase())}return Wh=e,Wh}var Bh,Tv;function HS(){if(Tv)return Bh;Tv=1;function n(t,e,r,f){var g=-1,m=t==null?0:t.length;for(f&&m&&(r=t[++g]);++g<m;)r=e(r,t[g],g,t);return r}return Bh=n,Bh}var zh,Mv;function jS(){if(Mv)return zh;Mv=1;function n(t){return function(e){return t==null?void 0:t[e]}}return zh=n,zh}var Hh,Iv;function US(){if(Iv)return Hh;Iv=1;var n=jS(),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 Hh=e,Hh}var jh,Ev;function VS(){if(Ev)return jh;Ev=1;var n=US(),t=uc(),e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",f="\\ufe20-\\ufe2f",g="\\u20d0-\\u20ff",m=r+f+g,w="["+m+"]",h=RegExp(w,"g");function d(a){return a=t(a),a&&a.replace(e,n).replace(h,"")}return jh=d,jh}var Uh,Rv;function qS(){if(Rv)return Uh;Rv=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(e){return e.match(n)||[]}return Uh=t,Uh}var Vh,Lv;function KS(){if(Lv)return Vh;Lv=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 Vh=t,Vh}var qh,Ov;function GS(){if(Ov)return qh;Ov=1;var n="\\ud800-\\udfff",t="\\u0300-\\u036f",e="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",f=t+e+r,g="\\u2700-\\u27bf",m="a-z\\xdf-\\xf6\\xf8-\\xff",w="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d="\\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",u="\\ufe0e\\ufe0f",c=w+h+d+a,i="['’]",s="["+c+"]",p="["+f+"]",b="\\d+",x="["+g+"]",R="["+m+"]",_="[^"+n+c+b+g+m+l+"]",k="\\ud83c[\\udffb-\\udfff]",C="(?:"+p+"|"+k+")",L="[^"+n+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",E="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+l+"]",z="\\u200d",P="(?:"+R+"|"+_+")",O="(?:"+I+"|"+_+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+z+"(?:"+[L,D,E].join("|")+")"+B+N+")*",K="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=B+N+U,he="(?:"+[x,D,E].join("|")+")"+J,ne=RegExp([I+"?"+R+"+"+$+"(?="+[s,I,"$"].join("|")+")",O+"+"+A+"(?="+[s,I+P,"$"].join("|")+")",I+"?"+P+"+"+$,I+"+"+A,Q,K,b,he].join("|"),"g");function le(se){return se.match(ne)||[]}return qh=le,qh}var Kh,Nv;function YS(){if(Nv)return Kh;Nv=1;var n=qS(),t=KS(),e=uc(),r=GS();function f(g,m,w){return g=e(g),m=w?void 0:m,m===void 0?t(g)?r(g):n(g):g.match(m)||[]}return Kh=f,Kh}var Gh,Dv;function XS(){if(Dv)return Gh;Dv=1;var n=HS(),t=VS(),e=YS(),r="['’]",f=RegExp(r,"g");function g(m){return function(w){return n(e(t(w).replace(f,"")),m,"")}}return Gh=g,Gh}var Yh,Fv;function ZS(){if(Fv)return Yh;Fv=1;var n=zS(),t=XS(),e=t(function(r,f,g){return f=f.toLowerCase(),r+(g?n(f):f)});return Yh=e,Yh}var QS=ZS();const JS=El(QS),e_=Object.assign({"./ArrayWidget.vue":()=>rt(()=>nt.import("./ArrayWidget-Bc-Awsbn-8d51a59b16aea7c26829.js"),void 0),"./ArrayplotWidget.vue":()=>rt(()=>nt.import("./ArrayplotWidget-B9UGCr4--d7be23cf1a79828ecf6e.js"),void 0),"./BlockWidget.vue":()=>rt(()=>nt.import("./BlockWidget-CoQp-LZM-b31db07450208f93f1f1.js"),void 0),"./ButtonWidget.vue":()=>rt(()=>nt.import("./ButtonWidget-CTTwpFec-8940575490dd3c88f861.js"),void 0),"./CanvasWidget.vue":()=>rt(()=>nt.import("./CanvasWidget-jFarbJ3t-bcf3152948bad4e87030.js"),void 0),"./CanvasdotWidget.vue":()=>rt(()=>nt.import("./CanvasdotWidget-BoyUcwiB-1eee2a5053b3a9a55b8c.js"),void 0),"./CanvasimageWidget.vue":()=>rt(()=>nt.import("./CanvasimageWidget-DmyCSnuQ-6b52e4887e49277163bb.js"),void 0),"./CanvasimagevalueWidget.vue":()=>rt(()=>nt.import("./CanvasimagevalueWidget-CmbngMqv-b6d5afc34151bdfadd21.js"),void 0),"./CanvaslabelWidget.vue":()=>rt(()=>nt.import("./CanvaslabelWidget-D8NzLKqi-241ebc3d5c79eec79919.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>rt(()=>nt.import("./CanvaslabelvalueWidget-DOybGI9D-5c9f42660dedfa2358e8.js"),void 0),"./CanvaslineWidget.vue":()=>rt(()=>nt.import("./CanvaslineWidget-D2NEei7j-36b8e59d259b17e3db4f.js"),void 0),"./CanvaslinevalueWidget.vue":()=>rt(()=>nt.import("./CanvaslinevalueWidget-Ctvv9owf-4f817ef45f25c4439994.js"),void 0),"./CheckbuttonWidget.vue":()=>rt(()=>nt.import("./CheckbuttonWidget-CQeR0BMF-c848b6165a3c1b52d39b.js"),void 0),"./ComboboxWidget.vue":()=>rt(()=>nt.import("./ComboboxWidget-4N-MagvN-138129febb58dc072895.js"),void 0),"./DateWidget.vue":()=>rt(()=>nt.import("./DateWidget-rYTjwUdb-17db617466686323190c.js"),void 0),"./DynamicWidget.vue":()=>rt(()=>nt.import("./DynamicWidget-DEHWYr8i-a3dbac565705628c12a4.js"),void 0),"./FilechecksumWidget.vue":()=>rt(()=>nt.import("./FilechecksumWidget-gcmXxJHl-dd7b6b960c0ed08ed909.js"),void 0),"./FiledisplayWidget.vue":()=>rt(()=>nt.import("./FiledisplayWidget-CqM549A4-588b407242c201d19aa5.js"),void 0),"./FormatvalueWidget.vue":()=>rt(()=>nt.import("./FormatvalueWidget-BEwH0C7S-2841e2a07a91db5a938b.js"),void 0),"./HorizontalWidget.vue":()=>rt(()=>nt.import("./HorizontalWidget-Dt8bkM3k-7c1f71f13b46b6e89760.js"),void 0),"./HorizontalboxWidget.vue":()=>rt(()=>nt.import("./HorizontalboxWidget-CdAZ5Sa6-7ade30d265470ec663ac.js"),void 0),"./HorizontallineWidget.vue":()=>rt(()=>nt.import("./HorizontallineWidget-CXZJTeU2-2d5022f53ea198c9182f.js"),void 0),"./IframeWidget.vue":()=>rt(()=>nt.import("./IframeWidget-CrcWiAVE-cf24944d92adf2b91254.js"),void 0),"./ImageviewerWidget.vue":()=>rt(()=>nt.import("./ImageviewerWidget-CTEl6iPg-1b9ed4d70ccc2a4fa353.js"),void 0),"./LabelWidget.vue":()=>rt(()=>nt.import("./LabelWidget-CPqKGMx0-acefb9959306066d0019.js"),void 0),"./LabelledWidget.vue":()=>rt(()=>nt.import("./LabelledWidget-BHYzRMFd-5ac79bf802fb21d75f53.js"),void 0),"./LabelprogressbarWidget.vue":()=>rt(()=>nt.import("./LabelprogressbarWidget-D9deeUo7-5fae5e004814c8ccf579.js"),void 0),"./LabelsparklineWidget.vue":()=>rt(()=>nt.import("./LabelsparklineWidget-7mYre3CP-15d613901f8dc23e6fc3.js"),void 0),"./LabelvalueWidget.vue":()=>rt(()=>nt.import("./LabelvalueWidget-NLsD60n4-68f2818be31b977ded2c.js"),void 0),"./LabelvaluedescWidget.vue":()=>rt(()=>nt.import("./LabelvaluedescWidget-DXROG4Gs-efda8ef0e87f17348da2.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>rt(()=>nt.import("./LabelvaluelimitsbarWidget-DqVqHF4W-71090b38e4787f21ec3d.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>rt(()=>nt.import("./LabelvaluelimitscolumnWidget-BK6_31pC-96e48c41db2bac272eb8.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>rt(()=>nt.import("./LabelvaluerangebarWidget-DR7C8gqw-eed75702c8ce812e8d4e.js"),void 0),"./LedWidget.vue":()=>rt(()=>nt.import("./LedWidget-CiAVs2tj-9572937ccbbb2b49e731.js"),void 0),"./LimitsbarWidget.vue":()=>rt(()=>nt.import("./LimitsbarWidget-CIwcOhC8-de745a82f23816e3a66e.js"),void 0),"./LimitscolorWidget.vue":()=>rt(()=>nt.import("./LimitscolorWidget-CGPfJwvT-b0672fead7a4b8dcec9d.js"),void 0),"./LimitscolumnWidget.vue":()=>rt(()=>nt.import("./LimitscolumnWidget-Bj_UPEC8-dc6748b4dfdbf28edb3b.js"),void 0),"./LinegraphWidget.vue":()=>rt(()=>nt.import("./LinegraphWidget-DccnHbWa-1c3a278b41004bc930ed.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>rt(()=>nt.import("./MatrixbycolumnsWidget-U_NZ6aW--a189ed2265e2712e9d33.js"),void 0),"./ProgressbarWidget.vue":()=>rt(()=>nt.import("./ProgressbarWidget-D4JtVzyk-a9a725a5a63affafcc01.js"),void 0),"./RadiobuttonWidget.vue":()=>rt(()=>nt.import("./RadiobuttonWidget-BUaW7pRx-17a1b745a13fdb3a020d.js"),void 0),"./RadiogroupWidget.vue":()=>rt(()=>nt.import("./RadiogroupWidget-NIv4CaUQ-0d5a4e38a84d08ab3ada.js"),void 0),"./RangebarWidget.vue":()=>rt(()=>nt.import("./RangebarWidget-1-CsFpcl-c8967622010d243c3cfd.js"),void 0),"./RollupWidget.vue":()=>rt(()=>nt.import("./RollupWidget-ChasTJYP-922498fb955cb2b0e7db.js"),void 0),"./ScrollwindowWidget.vue":()=>rt(()=>nt.import("./ScrollwindowWidget-Y2J758y6-26d7ac6099caa8f69e39.js"),void 0),"./SignalWidget.vue":()=>rt(()=>nt.import("./SignalWidget-DFhHDicI-51bbf2ffbce66f066c28.js"),void 0),"./SpacerWidget.vue":()=>rt(()=>nt.import("./SpacerWidget-D4KojaGb-99e6d20f836601c8bb52.js"),void 0),"./SparklineWidget.vue":()=>rt(()=>nt.import("./SparklineWidget-DMHFzw8L-b2f521910f0672e0239c.js"),void 0),"./TabbookWidget.vue":()=>rt(()=>nt.import("./TabbookWidget-NVLYMdFG-64c9d545477335399b45.js"),void 0),"./TextboxWidget.vue":()=>rt(()=>nt.import("./TextboxWidget-CrMYPQIF-ea2d84aeb5c6eb716ede.js"),void 0),"./TextfieldWidget.vue":()=>rt(()=>nt.import("./TextfieldWidget-DMBQwtnb-6773b9b3fc2c2dd3f579.js"),void 0),"./TimeWidget.vue":()=>rt(()=>nt.import("./TimeWidget-CWLJZ2bt-af7593bd6035e1d0b0a3.js"),void 0),"./TitleWidget.vue":()=>rt(()=>nt.import("./TitleWidget-V1FGI8l3-dea12e9291f16d7c23ef.js"),void 0),"./ValueWidget.vue":()=>rt(()=>nt.import("./ValueWidget-BI3uXmda-fd5d4b2c739743d862c7.js"),void 0),"./ValuelimitsbarWidget.vue":()=>rt(()=>nt.import("./ValuelimitsbarWidget-BGSJLpw4-2eca335fc5c217d199fa.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>rt(()=>nt.import("./ValuelimitscolumnWidget-CaNjHy4v-1215b02e923cb393b1eb.js"),void 0),"./ValuerangebarWidget.vue":()=>rt(()=>nt.import("./ValuerangebarWidget-Do40-aaL-55e164d621e520a1e77c.js"),void 0),"./VerticalWidget.vue":()=>rt(()=>nt.import("./VerticalWidget-DZqghqIm-716c0527f945972b7437.js"),void 0),"./VerticalboxWidget.vue":()=>rt(()=>nt.import("./VerticalboxWidget-CQ__4FcS-b1e92a2d2fc44e243ac1.js"),void 0)}),t_=Object.entries(e_).reduce((n,[t,e])=>{t=t.split("/").pop();const r=BS(JS(t.replace(/\.\w+$/,"")));return{...n,[r]:Sp(e)}},{}),mD=sr("U",{components:t_});function Pv(n,t){return function(){return n.apply(t,arguments)}}const{toString:n_}=Object.prototype,{getPrototypeOf:Xh}=Object,{iterator:hc,toStringTag:Wv}=Symbol,dc=(n=>t=>{const e=n_.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ji=n=>(n=n.toLowerCase(),t=>dc(t)===n),pc=n=>t=>typeof t===n,{isArray:ga}=Array,ma=pc("undefined");function Qa(n){return n!==null&&!ma(n)&&n.constructor!==null&&!ma(n.constructor)&&ai(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Bv=Ji("ArrayBuffer");function r_(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&Bv(n.buffer),t}const i_=pc("string"),ai=pc("function"),zv=pc("number"),Ja=n=>n!==null&&typeof n=="object",o_=n=>n===!0||n===!1,fc=n=>{if(dc(n)!=="object")return!1;const t=Xh(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Wv in n)&&!(hc in n)},s_=n=>{if(!Ja(n)||Qa(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},a_=Ji("Date"),l_=Ji("File"),c_=Ji("Blob"),u_=Ji("FileList"),h_=n=>Ja(n)&&ai(n.pipe),d_=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||ai(n.append)&&((t=dc(n))==="formdata"||t==="object"&&ai(n.toString)&&n.toString()==="[object FormData]"))},p_=Ji("URLSearchParams"),[f_,g_,m_,v_]=["ReadableStream","Request","Response","Headers"].map(Ji),y_=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function el(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let r,f;if(typeof n!="object"&&(n=[n]),ga(n))for(r=0,f=n.length;r<f;r++)t.call(null,n[r],r,n);else{if(Qa(n))return;const g=e?Object.getOwnPropertyNames(n):Object.keys(n),m=g.length;let w;for(r=0;r<m;r++)w=g[r],t.call(null,n[w],w,n)}}function Hv(n,t){if(Qa(n))return null;t=t.toLowerCase();const e=Object.keys(n);let r=e.length,f;for(;r-- >0;)if(f=e[r],t===f.toLowerCase())return f;return null}const Es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jv=n=>!ma(n)&&n!==Es;function Zh(){const{caseless:n,skipUndefined:t}=jv(this)&&this||{},e={},r=(f,g)=>{const m=n&&Hv(e,g)||g;fc(e[m])&&fc(f)?e[m]=Zh(e[m],f):fc(f)?e[m]=Zh({},f):ga(f)?e[m]=f.slice():(!t||!ma(f))&&(e[m]=f)};for(let f=0,g=arguments.length;f<g;f++)arguments[f]&&el(arguments[f],r);return e}const b_=(n,t,e,{allOwnKeys:r}={})=>(el(t,(f,g)=>{e&&ai(f)?n[g]=Pv(f,e):n[g]=f},{allOwnKeys:r}),n),w_=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),x_=(n,t,e,r)=>{n.prototype=Object.create(t.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},C_=(n,t,e,r)=>{let f,g,m;const w={};if(t=t||{},n==null)return t;do{for(f=Object.getOwnPropertyNames(n),g=f.length;g-- >0;)m=f[g],(!r||r(m,n,t))&&!w[m]&&(t[m]=n[m],w[m]=!0);n=e!==!1&&Xh(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},k_=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const r=n.indexOf(t,e);return r!==-1&&r===e},A_=n=>{if(!n)return null;if(ga(n))return n;let t=n.length;if(!zv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},S_=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Xh(Uint8Array)),__=(n,t)=>{const e=(n&&n[hc]).call(n);let r;for(;(r=e.next())&&!r.done;){const f=r.value;t.call(n,f[0],f[1])}},$_=(n,t)=>{let e;const r=[];for(;(e=n.exec(t))!==null;)r.push(e);return r},T_=Ji("HTMLFormElement"),M_=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),Uv=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),I_=Ji("RegExp"),Vv=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),r={};el(e,(f,g)=>{let m;(m=t(f,g,n))!==!1&&(r[g]=m||f)}),Object.defineProperties(n,r)},E_=n=>{Vv(n,(t,e)=>{if(ai(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const r=n[e];if(ai(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},R_=(n,t)=>{const e={},r=f=>{f.forEach(g=>{e[g]=!0})};return ga(n)?r(n):r(String(n).split(t)),e},L_=()=>{},O_=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function N_(n){return!!(n&&ai(n.append)&&n[Wv]==="FormData"&&n[hc])}const D_=n=>{const t=new Array(10),e=(r,f)=>{if(Ja(r)){if(t.indexOf(r)>=0)return;if(Qa(r))return r;if(!("toJSON"in r)){t[f]=r;const g=ga(r)?[]:{};return el(r,(m,w)=>{const h=e(m,f+1);!ma(h)&&(g[w]=h)}),t[f]=void 0,g}}return r};return e(n,0)},F_=Ji("AsyncFunction"),P_=n=>n&&(Ja(n)||ai(n))&&ai(n.then)&&ai(n.catch),qv=((n,t)=>n?setImmediate:t?((e,r)=>(Es.addEventListener("message",({source:f,data:g})=>{f===Es&&g===e&&r.length&&r.shift()()},!1),f=>{r.push(f),Es.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",ai(Es.postMessage)),W_=typeof queueMicrotask<"u"?queueMicrotask.bind(Es):typeof process<"u"&&process.nextTick||qv,B_=n=>n!=null&&ai(n[hc]),Se={isArray:ga,isArrayBuffer:Bv,isBuffer:Qa,isFormData:d_,isArrayBufferView:r_,isString:i_,isNumber:zv,isBoolean:o_,isObject:Ja,isPlainObject:fc,isEmptyObject:s_,isReadableStream:f_,isRequest:g_,isResponse:m_,isHeaders:v_,isUndefined:ma,isDate:a_,isFile:l_,isBlob:c_,isRegExp:I_,isFunction:ai,isStream:h_,isURLSearchParams:p_,isTypedArray:S_,isFileList:u_,forEach:el,merge:Zh,extend:b_,trim:y_,stripBOM:w_,inherits:x_,toFlatObject:C_,kindOf:dc,kindOfTest:Ji,endsWith:k_,toArray:A_,forEachEntry:__,matchAll:$_,isHTMLForm:T_,hasOwnProperty:Uv,hasOwnProp:Uv,reduceDescriptors:Vv,freezeMethods:E_,toObjectSet:R_,toCamelCase:M_,noop:L_,toFiniteNumber:O_,findKey:Hv,global:Es,isContextDefined:jv,isSpecCompliantForm:N_,toJSONObject:D_,isAsyncFn:F_,isThenable:P_,setImmediate:qv,asap:W_,isIterable:B_};function At(n,t,e,r,f){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),r&&(this.request=r),f&&(this.response=f,this.status=f.status?f.status:null)}Se.inherits(At,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:Se.toJSONObject(this.config),code:this.code,status:this.status}}});const Kv=At.prototype,Gv={};["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=>{Gv[n]={value:n}}),Object.defineProperties(At,Gv),Object.defineProperty(Kv,"isAxiosError",{value:!0}),At.from=(n,t,e,r,f,g)=>{const m=Object.create(Kv);Se.toFlatObject(n,m,function(d){return d!==Error.prototype},d=>d!=="isAxiosError");const w=n&&n.message?n.message:"Error",h=t==null&&n?n.code:t;return At.call(m,w,h,e,r,f),n&&m.cause==null&&Object.defineProperty(m,"cause",{value:n,configurable:!0}),m.name=n&&n.name||"Error",g&&Object.assign(m,g),m};const z_=null;function Qh(n){return Se.isPlainObject(n)||Se.isArray(n)}function Yv(n){return Se.endsWith(n,"[]")?n.slice(0,-2):n}function Xv(n,t,e){return n?n.concat(t).map(function(r,f){return r=Yv(r),!e&&f?"["+r+"]":r}).join(e?".":""):t}function H_(n){return Se.isArray(n)&&!n.some(Qh)}const j_=Se.toFlatObject(Se,{},null,function(n){return/^is[A-Z]/.test(n)});function gc(n,t,e){if(!Se.isObject(n))throw new TypeError("target must be an object");t=t||new FormData,e=Se.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Se.isUndefined(i[c])});const r=e.metaTokens,f=e.visitor||d,g=e.dots,m=e.indexes,w=(e.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(t);if(!Se.isFunction(f))throw new TypeError("visitor must be a function");function h(c){if(c===null)return"";if(Se.isDate(c))return c.toISOString();if(Se.isBoolean(c))return c.toString();if(!w&&Se.isBlob(c))throw new At("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(c)||Se.isTypedArray(c)?w&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function d(c,i,s){let p=c;if(c&&!s&&typeof c=="object"){if(Se.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Se.isArray(c)&&H_(c)||(Se.isFileList(c)||Se.endsWith(i,"[]"))&&(p=Se.toArray(c)))return i=Yv(i),p.forEach(function(b,x){!(Se.isUndefined(b)||b===null)&&t.append(m===!0?Xv([i],x,g):m===null?i:i+"[]",h(b))}),!1}return Qh(c)?!0:(t.append(Xv(s,i,g),h(c)),!1)}const a=[],l=Object.assign(j_,{defaultVisitor:d,convertValue:h,isVisitable:Qh});function u(c,i){if(!Se.isUndefined(c)){if(a.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));a.push(c),Se.forEach(c,function(s,p){(!(Se.isUndefined(s)||s===null)&&f.call(t,s,Se.isString(p)?p.trim():p,i,l))===!0&&u(s,i?i.concat(p):[p])}),a.pop()}}if(!Se.isObject(n))throw new TypeError("data must be an object");return u(n),t}function Zv(n){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Jh(n,t){this._pairs=[],n&&gc(n,this,t)}const Qv=Jh.prototype;Qv.append=function(n,t){this._pairs.push([n,t])},Qv.toString=function(n){const t=n?function(e){return n.call(this,e,Zv)}:Zv;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function U_(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jv(n,t,e){if(!t)return n;const r=e&&e.encode||U_;Se.isFunction(e)&&(e={serialize:e});const f=e&&e.serialize;let g;if(f?g=f(t,e):g=Se.isURLSearchParams(t)?t.toString():new Jh(t,e).toString(r),g){const m=n.indexOf("#");m!==-1&&(n=n.slice(0,m)),n+=(n.indexOf("?")===-1?"?":"&")+g}return n}let ey=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Se.forEach(this.handlers,function(e){e!==null&&t(e)})}};const ty={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},V_=typeof URLSearchParams<"u"?URLSearchParams:Jh,q_=typeof FormData<"u"?FormData:null,K_=typeof Blob<"u"?Blob:null,G_={isBrowser:!0,classes:{URLSearchParams:V_,FormData:q_,Blob:K_},protocols:["http","https","file","blob","url","data"]},ed=typeof window<"u"&&typeof document<"u",td=typeof navigator=="object"&&navigator||void 0,Y_=ed&&(!td||["ReactNative","NativeScript","NS"].indexOf(td.product)<0),X_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Z_=ed&&window.location.href||"http://localhost",Q_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ed,hasStandardBrowserEnv:Y_,hasStandardBrowserWebWorkerEnv:X_,navigator:td,origin:Z_},Symbol.toStringTag,{value:"Module"})),Nr={...Q_,...G_};function J_(n,t){return gc(n,new Nr.classes.URLSearchParams,{visitor:function(e,r,f,g){return Nr.isNode&&Se.isBuffer(e)?(this.append(r,e.toString("base64")),!1):g.defaultVisitor.apply(this,arguments)},...t})}function e$(n){return Se.matchAll(/\w+|\[(\w*)]/g,n).map(t=>t[0]==="[]"?"":t[1]||t[0])}function t$(n){const t={},e=Object.keys(n);let r;const f=e.length;let g;for(r=0;r<f;r++)g=e[r],t[g]=n[g];return t}function ny(n){function t(e,r,f,g){let m=e[g++];if(m==="__proto__")return!0;const w=Number.isFinite(+m),h=g>=e.length;return m=!m&&Se.isArray(f)?f.length:m,h?(Se.hasOwnProp(f,m)?f[m]=[f[m],r]:f[m]=r,!w):((!f[m]||!Se.isObject(f[m]))&&(f[m]=[]),t(e,r,f[m],g)&&Se.isArray(f[m])&&(f[m]=t$(f[m])),!w)}if(Se.isFormData(n)&&Se.isFunction(n.entries)){const e={};return Se.forEachEntry(n,(r,f)=>{t(e$(r),f,e,0)}),e}return null}function n$(n,t,e){if(Se.isString(n))try{return(t||JSON.parse)(n),Se.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(e||JSON.stringify)(n)}const tl={transitional:ty,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const e=t.getContentType()||"",r=e.indexOf("application/json")>-1,f=Se.isObject(n);if(f&&Se.isHTMLForm(n)&&(n=new FormData(n)),Se.isFormData(n))return r?JSON.stringify(ny(n)):n;if(Se.isArrayBuffer(n)||Se.isBuffer(n)||Se.isStream(n)||Se.isFile(n)||Se.isBlob(n)||Se.isReadableStream(n))return n;if(Se.isArrayBufferView(n))return n.buffer;if(Se.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let g;if(f){if(e.indexOf("application/x-www-form-urlencoded")>-1)return J_(n,this.formSerializer).toString();if((g=Se.isFileList(n))||e.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return gc(g?{"files[]":n}:n,m&&new m,this.formSerializer)}}return f||r?(t.setContentType("application/json",!1),n$(n)):n}],transformResponse:[function(n){const t=this.transitional||tl.transitional,e=t&&t.forcedJSONParsing,r=this.responseType==="json";if(Se.isResponse(n)||Se.isReadableStream(n))return n;if(n&&Se.isString(n)&&(e&&!this.responseType||r)){const f=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(g){if(f)throw g.name==="SyntaxError"?At.from(g,At.ERR_BAD_RESPONSE,this,null,this.response):g}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nr.classes.FormData,Blob:Nr.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Se.forEach(["delete","get","head","post","put","patch"],n=>{tl.headers[n]={}});const r$=Se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),i$=n=>{const t={};let e,r,f;return n&&n.split(`
|
|
1491
1491
|
`).forEach(function(g){f=g.indexOf(":"),e=g.substring(0,f).trim().toLowerCase(),r=g.substring(f+1).trim(),!(!e||t[e]&&r$[e])&&(e==="set-cookie"?t[e]?t[e].push(r):t[e]=[r]:t[e]=t[e]?t[e]+", "+r:r)}),t},ry=Symbol("internals");function nl(n){return n&&String(n).trim().toLowerCase()}function mc(n){return n===!1||n==null?n:Se.isArray(n)?n.map(mc):String(n)}function o$(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(n);)t[r[1]]=r[2];return t}const s$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function nd(n,t,e,r,f){if(Se.isFunction(r))return r.call(this,t,e);if(f&&(t=e),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function a$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function l$(n,t){const e=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+e,{value:function(f,g,m){return this[r].call(this,t,f,g,m)},configurable:!0})})}let li=class{constructor(t){t&&this.set(t)}set(t,e,r){const f=this;function g(w,h,d){const a=nl(h);if(!a)throw new Error("header name must be a non-empty string");const l=Se.findKey(f,a);(!l||f[l]===void 0||d===!0||d===void 0&&f[l]!==!1)&&(f[l||h]=mc(w))}const m=(w,h)=>Se.forEach(w,(d,a)=>g(d,a,h));if(Se.isPlainObject(t)||t instanceof this.constructor)m(t,e);else if(Se.isString(t)&&(t=t.trim())&&!s$(t))m(i$(t),e);else if(Se.isObject(t)&&Se.isIterable(t)){let w={},h,d;for(const a of t){if(!Se.isArray(a))throw TypeError("Object iterator must return a key-value pair");w[d=a[0]]=(h=w[d])?Se.isArray(h)?[...h,a[1]]:[h,a[1]]:a[1]}m(w,e)}else t!=null&&g(e,t,r);return this}get(t,e){if(t=nl(t),t){const r=Se.findKey(this,t);if(r){const f=this[r];if(!e)return f;if(e===!0)return o$(f);if(Se.isFunction(e))return e.call(this,f,r);if(Se.isRegExp(e))return e.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=nl(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||nd(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let f=!1;function g(m){if(m=nl(m),m){const w=Se.findKey(r,m);w&&(!e||nd(r,r[w],w,e))&&(delete r[w],f=!0)}}return Se.isArray(t)?t.forEach(g):g(t),f}clear(t){const e=Object.keys(this);let r=e.length,f=!1;for(;r--;){const g=e[r];(!t||nd(this,this[g],g,t,!0))&&(delete this[g],f=!0)}return f}normalize(t){const e=this,r={};return Se.forEach(this,(f,g)=>{const m=Se.findKey(r,g);if(m){e[m]=mc(f),delete e[g];return}const w=t?a$(g):String(g).trim();w!==g&&delete e[g],e[w]=mc(f),r[w]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Se.forEach(this,(r,f)=>{r!=null&&r!==!1&&(e[f]=t&&Se.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
|
1492
1492
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(f=>r.set(f)),r}static accessor(t){const e=(this[ry]=this[ry]={accessors:{}}).accessors,r=this.prototype;function f(g){const m=nl(g);e[m]||(l$(r,g),e[m]=!0)}return Se.isArray(t)?t.forEach(f):f(t),this}};li.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Se.reduceDescriptors(li.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(r){this[e]=r}}}),Se.freezeMethods(li);function rd(n,t){const e=this||tl,r=t||e,f=li.from(r.headers);let g=r.data;return Se.forEach(n,function(m){g=m.call(e,g,f.normalize(),t?t.status:void 0)}),f.normalize(),g}function iy(n){return!!(n&&n.__CANCEL__)}function va(n,t,e){At.call(this,n??"canceled",At.ERR_CANCELED,t,e),this.name="CanceledError"}Se.inherits(va,At,{__CANCEL__:!0});function oy(n,t,e){const r=e.config.validateStatus;!e.status||!r||r(e.status)?n(e):t(new At("Request failed with status code "+e.status,[At.ERR_BAD_REQUEST,At.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function c$(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function u$(n,t){n=n||10;const e=new Array(n),r=new Array(n);let f=0,g=0,m;return t=t!==void 0?t:1e3,function(w){const h=Date.now(),d=r[g];m||(m=h),e[f]=w,r[f]=h;let a=g,l=0;for(;a!==f;)l+=e[a++],a=a%n;if(f=(f+1)%n,f===g&&(g=(g+1)%n),h-m<t)return;const u=d&&h-d;return u?Math.round(l*1e3/u):void 0}}function h$(n,t){let e=0,r=1e3/t,f,g;const m=(w,h=Date.now())=>{e=h,f=null,g&&(clearTimeout(g),g=null),n(...w)};return[(...w)=>{const h=Date.now(),d=h-e;d>=r?m(w,h):(f=w,g||(g=setTimeout(()=>{g=null,m(f)},r-d)))},()=>f&&m(f)]}const vc=(n,t,e=3)=>{let r=0;const f=u$(50,250);return h$(g=>{const m=g.loaded,w=g.lengthComputable?g.total:void 0,h=m-r,d=f(h),a=m<=w;r=m;const l={loaded:m,total:w,progress:w?m/w:void 0,bytes:h,rate:d||void 0,estimated:d&&w&&a?(w-m)/d:void 0,event:g,lengthComputable:w!=null,[t?"download":"upload"]:!0};n(l)},e)},sy=(n,t)=>{const e=n!=null;return[r=>t[0]({lengthComputable:e,total:n,loaded:r}),t[1]]},ay=n=>(...t)=>Se.asap(()=>n(...t)),d$=Nr.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,Nr.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(Nr.origin),Nr.navigator&&/(msie|trident)/i.test(Nr.navigator.userAgent)):()=>!0,p$=Nr.hasStandardBrowserEnv?{write(n,t,e,r,f,g,m){if(typeof document>"u")return;const w=[`${n}=${encodeURIComponent(t)}`];Se.isNumber(e)&&w.push(`expires=${new Date(e).toUTCString()}`),Se.isString(r)&&w.push(`path=${r}`),Se.isString(f)&&w.push(`domain=${f}`),g===!0&&w.push("secure"),Se.isString(m)&&w.push(`SameSite=${m}`),document.cookie=w.join("; ")},read(n){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function f$(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function g$(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function ly(n,t,e){let r=!f$(t);return n&&(r||e==!1)?g$(n,t):t}const cy=n=>n instanceof li?{...n}:n;function Rs(n,t){t=t||{};const e={};function r(d,a,l,u){return Se.isPlainObject(d)&&Se.isPlainObject(a)?Se.merge.call({caseless:u},d,a):Se.isPlainObject(a)?Se.merge({},a):Se.isArray(a)?a.slice():a}function f(d,a,l,u){if(Se.isUndefined(a)){if(!Se.isUndefined(d))return r(void 0,d,l,u)}else return r(d,a,l,u)}function g(d,a){if(!Se.isUndefined(a))return r(void 0,a)}function m(d,a){if(Se.isUndefined(a)){if(!Se.isUndefined(d))return r(void 0,d)}else return r(void 0,a)}function w(d,a,l){if(l in t)return r(d,a);if(l in n)return r(void 0,d)}const h={url:g,method:g,data:g,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:w,headers:(d,a,l)=>f(cy(d),cy(a),l,!0)};return Se.forEach(Object.keys({...n,...t}),function(d){const a=h[d]||f,l=a(n[d],t[d],d);Se.isUndefined(l)&&a!==w||(e[d]=l)}),e}const uy=n=>{const t=Rs({},n);let{data:e,withXSRFToken:r,xsrfHeaderName:f,xsrfCookieName:g,headers:m,auth:w}=t;if(t.headers=m=li.from(m),t.url=Jv(ly(t.baseURL,t.url,t.allowAbsoluteUrls),n.params,n.paramsSerializer),w&&m.set("Authorization","Basic "+btoa((w.username||"")+":"+(w.password?unescape(encodeURIComponent(w.password)):""))),Se.isFormData(e)){if(Nr.hasStandardBrowserEnv||Nr.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if(Se.isFunction(e.getHeaders)){const h=e.getHeaders(),d=["content-type","content-length"];Object.entries(h).forEach(([a,l])=>{d.includes(a.toLowerCase())&&m.set(a,l)})}}if(Nr.hasStandardBrowserEnv&&(r&&Se.isFunction(r)&&(r=r(t)),r||r!==!1&&d$(t.url))){const h=f&&g&&p$.read(g);h&&m.set(f,h)}return t},m$=typeof XMLHttpRequest<"u",v$=m$&&function(n){return new Promise(function(t,e){const r=uy(n);let f=r.data;const g=li.from(r.headers).normalize();let{responseType:m,onUploadProgress:w,onDownloadProgress:h}=r,d,a,l,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let s=new XMLHttpRequest;s.open(r.method.toUpperCase(),r.url,!0),s.timeout=r.timeout;function p(){if(!s)return;const x=li.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),R={data:!m||m==="text"||m==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:x,config:n,request:s};oy(function(_){t(_),i()},function(_){e(_),i()},R),s=null}"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(p)},s.onabort=function(){s&&(e(new At("Request aborted",At.ECONNABORTED,n,s)),s=null)},s.onerror=function(x){const R=x&&x.message?x.message:"Network Error",_=new At(R,At.ERR_NETWORK,n,s);_.event=x||null,e(_),s=null},s.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const R=r.transitional||ty;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),e(new At(x,R.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,n,s)),s=null},f===void 0&&g.setContentType(null),"setRequestHeader"in s&&Se.forEach(g.toJSON(),function(x,R){s.setRequestHeader(R,x)}),Se.isUndefined(r.withCredentials)||(s.withCredentials=!!r.withCredentials),m&&m!=="json"&&(s.responseType=r.responseType),h&&([l,c]=vc(h,!0),s.addEventListener("progress",l)),w&&s.upload&&([a,u]=vc(w),s.upload.addEventListener("progress",a),s.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(d=x=>{s&&(e(!x||x.type?new va(null,n,s):x),s.abort(),s=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const b=c$(r.url);if(b&&Nr.protocols.indexOf(b)===-1){e(new At("Unsupported protocol "+b+":",At.ERR_BAD_REQUEST,n));return}s.send(f||null)})},y$=(n,t)=>{const{length:e}=n=n?n.filter(Boolean):[];if(t||e){let r=new AbortController,f;const g=function(d){if(!f){f=!0,w();const a=d instanceof Error?d:this.reason;r.abort(a instanceof At?a:new va(a instanceof Error?a.message:a))}};let m=t&&setTimeout(()=>{m=null,g(new At(`timeout ${t} of ms exceeded`,At.ETIMEDOUT))},t);const w=()=>{n&&(m&&clearTimeout(m),m=null,n.forEach(d=>{d.unsubscribe?d.unsubscribe(g):d.removeEventListener("abort",g)}),n=null)};n.forEach(d=>d.addEventListener("abort",g));const{signal:h}=r;return h.unsubscribe=()=>Se.asap(w),h}},b$=function*(n,t){let e=n.byteLength;if(e<t){yield n;return}let r=0,f;for(;r<e;)f=r+t,yield n.slice(r,f),r=f},w$=async function*(n,t){for await(const e of x$(n))yield*b$(e,t)},x$=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const t=n.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},hy=(n,t,e,r)=>{const f=w$(n,t);let g=0,m,w=h=>{m||(m=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:a}=await f.next();if(d){w(),h.close();return}let l=a.byteLength;if(e){let u=g+=l;e(u)}h.enqueue(new Uint8Array(a))}catch(d){throw w(d),d}},cancel(h){return w(h),f.return()}},{highWaterMark:2})},dy=64*1024,{isFunction:yc}=Se,C$=(({Request:n,Response:t})=>({Request:n,Response:t}))(Se.global),{ReadableStream:py,TextEncoder:fy}=Se.global,gy=(n,...t)=>{try{return!!n(...t)}catch{return!1}},k$=n=>{n=Se.merge.call({skipUndefined:!0},C$,n);const{fetch:t,Request:e,Response:r}=n,f=t?yc(t):typeof fetch=="function",g=yc(e),m=yc(r);if(!f)return!1;const w=f&&yc(py),h=f&&(typeof fy=="function"?(i=>s=>i.encode(s))(new fy):async i=>new Uint8Array(await new e(i).arrayBuffer())),d=g&&w&&gy(()=>{let i=!1;const s=new e(Nr.origin,{body:new py,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!s}),a=m&&w&&gy(()=>Se.isReadableStream(new r("").body)),l={stream:a&&(i=>i.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!l[i]&&(l[i]=(s,p)=>{let b=s&&s[i];if(b)return b.call(s);throw new At(`Response type '${i}' is not supported`,At.ERR_NOT_SUPPORT,p)})});const u=async i=>{if(i==null)return 0;if(Se.isBlob(i))return i.size;if(Se.isSpecCompliantForm(i))return(await new e(Nr.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(Se.isArrayBufferView(i)||Se.isArrayBuffer(i))return i.byteLength;if(Se.isURLSearchParams(i)&&(i=i+""),Se.isString(i))return(await h(i)).byteLength},c=async(i,s)=>Se.toFiniteNumber(i.getContentLength())??u(s);return async i=>{let{url:s,method:p,data:b,signal:x,cancelToken:R,timeout:_,onDownloadProgress:k,onUploadProgress:C,responseType:L,headers:D,withCredentials:E="same-origin",fetchOptions:I}=uy(i),z=t||fetch;L=L?(L+"").toLowerCase():"text";let P=y$([x,R&&R.toAbortSignal()],_),O=null;const $=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let A;try{if(C&&d&&p!=="get"&&p!=="head"&&(A=await c(D,b))!==0){let J=new e(s,{method:"POST",body:b,duplex:"half"}),he;if(Se.isFormData(b)&&(he=J.headers.get("content-type"))&&D.setContentType(he),J.body){const[ne,le]=sy(A,vc(ay(C)));b=hy(J.body,dy,ne,le)}}Se.isString(E)||(E=E?"include":"omit");const N=g&&"credentials"in e.prototype,B={...I,signal:P,method:p.toUpperCase(),headers:D.normalize().toJSON(),body:b,duplex:"half",credentials:N?E:void 0};O=g&&new e(s,B);let U=await(g?z(O,I):z(s,B));const K=a&&(L==="stream"||L==="response");if(a&&(k||K&&$)){const J={};["status","statusText","headers"].forEach(se=>{J[se]=U[se]});const he=Se.toFiniteNumber(U.headers.get("content-length")),[ne,le]=k&&sy(he,vc(ay(k),!0))||[];U=new r(hy(U.body,dy,ne,()=>{le&&le(),$&&$()}),J)}L=L||"text";let Q=await l[Se.findKey(l,L)||"text"](U,i);return!K&&$&&$(),await new Promise((J,he)=>{oy(J,he,{data:Q,headers:li.from(U.headers),status:U.status,statusText:U.statusText,config:i,request:O})})}catch(N){throw $&&$(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new At("Network Error",At.ERR_NETWORK,i,O),{cause:N.cause||N}):At.from(N,N&&N.code,i,O)}}},A$=new Map,my=n=>{let t=n&&n.env||{};const{fetch:e,Request:r,Response:f}=t,g=[r,f,e];let m=g.length,w=m,h,d,a=A$;for(;w--;)h=g[w],d=a.get(h),d===void 0&&a.set(h,d=w?new Map:k$(t)),a=d;return d};my();const id={http:z_,xhr:v$,fetch:{get:my}};Se.forEach(id,(n,t)=>{if(n){try{Object.defineProperty(n,"name",{value:t})}catch{}Object.defineProperty(n,"adapterName",{value:t})}});const vy=n=>`- ${n}`,S$=n=>Se.isFunction(n)||n===null||n===!1;function _$(n,t){n=Se.isArray(n)?n:[n];const{length:e}=n;let r,f;const g={};for(let m=0;m<e;m++){r=n[m];let w;if(f=r,!S$(r)&&(f=id[(w=String(r)).toLowerCase()],f===void 0))throw new At(`Unknown adapter '${w}'`);if(f&&(Se.isFunction(f)||(f=f.get(t))))break;g[w||"#"+m]=f}if(!f){const m=Object.entries(g).map(([h,d])=>`adapter ${h} `+(d===!1?"is not supported by the environment":"is not available in the build"));let w=e?m.length>1?`since :
|
|
1493
1493
|
`+m.map(vy).join(`
|
|
1494
1494
|
`):" "+vy(m[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+w,"ERR_NOT_SUPPORT")}return f}const yy={getAdapter:_$,adapters:id};function od(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new va(null,n)}function by(n){return od(n),n.headers=li.from(n.headers),n.data=rd.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),yy.getAdapter(n.adapter||tl.adapter,n)(n).then(function(t){return od(n),t.data=rd.call(n,n.transformResponse,t),t.headers=li.from(t.headers),t},function(t){return iy(t)||(od(n),t&&t.response&&(t.response.data=rd.call(n,n.transformResponse,t.response),t.response.headers=li.from(t.response.headers))),Promise.reject(t)})}const wy="1.13.2",bc={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{bc[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}});const xy={};bc.transitional=function(n,t,e){function r(f,g){return"[Axios v"+wy+"] Transitional option '"+f+"'"+g+(e?". "+e:"")}return(f,g,m)=>{if(n===!1)throw new At(r(g," has been removed"+(t?" in "+t:"")),At.ERR_DEPRECATED);return t&&!xy[g]&&(xy[g]=!0,console.warn(r(g," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(f,g,m):!0}},bc.spelling=function(n){return(t,e)=>(console.warn(`${e} is likely a misspelling of ${n}`),!0)};function $$(n,t,e){if(typeof n!="object")throw new At("options must be an object",At.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let f=r.length;for(;f-- >0;){const g=r[f],m=t[g];if(m){const w=n[g],h=w===void 0||m(w,g,n);if(h!==!0)throw new At("option "+g+" must be "+h,At.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new At("Unknown option "+g,At.ERR_BAD_OPTION)}}const wc={assertOptions:$$,validators:bc},ho=wc.validators;let Ls=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ey,response:new ey}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const g=f.stack?f.stack.replace(/^.+\n/,""):"";try{r.stack?g&&!String(r.stack).endsWith(g.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
1495
|
-
`+g):r.stack=g}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Rs(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:g}=e;r!==void 0&&wc.assertOptions(r,{silentJSONParsing:ho.transitional(ho.boolean),forcedJSONParsing:ho.transitional(ho.boolean),clarifyTimeoutError:ho.transitional(ho.boolean)},!1),f!=null&&(Se.isFunction(f)?e.paramsSerializer={serialize:f}:wc.assertOptions(f,{encode:ho.function,serialize:ho.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),wc.assertOptions(e,{baseUrl:ho.spelling("baseURL"),withXsrfToken:ho.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let m=g&&Se.merge(g.common,g[e.method]);g&&Se.forEach(["delete","get","head","post","put","patch","common"],i=>{delete g[i]}),e.headers=li.concat(m,g);const w=[];let h=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(e)===!1||(h=h&&i.synchronous,w.unshift(i.fulfilled,i.rejected))});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let a,l=0,u;if(!h){const i=[by.bind(this),void 0];for(i.unshift(...w),i.push(...d),u=i.length,a=Promise.resolve(e);l<u;)a=a.then(i[l++],i[l++]);return a}u=w.length;let c=e;for(;l<u;){const i=w[l++],s=w[l++];try{c=i(c)}catch(p){s.call(this,p);break}}try{a=by.call(this,c)}catch(i){return Promise.reject(i)}for(l=0,u=d.length;l<u;)a=a.then(d[l++],d[l++]);return a}getUri(t){t=Rs(this.defaults,t);const e=ly(t.baseURL,t.url,t.allowAbsoluteUrls);return Jv(e,t.params,t.paramsSerializer)}};Se.forEach(["delete","get","head","options"],function(n){Ls.prototype[n]=function(t,e){return this.request(Rs(e||{},{method:n,url:t,data:(e||{}).data}))}}),Se.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(Rs(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Ls.prototype[n]=t(),Ls.prototype[n+"Form"]=t(!0)});let T$=class ow{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new va(f,g,m),e(r.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=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new ow(function(e){t=e}),cancel:t}}};function M$(n){return function(t){return n.apply(null,t)}}function I$(n){return Se.isObject(n)&&n.isAxiosError===!0}const sd={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(sd).forEach(([n,t])=>{sd[t]=n});function Cy(n){const t=new Ls(n),e=Pv(Ls.prototype.request,t);return Se.extend(e,Ls.prototype,t,{allOwnKeys:!0}),Se.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Cy(Rs(n,r))},e}const nr=gr("w",Cy(tl));nr.Axios=Ls,nr.CanceledError=va,nr.CancelToken=T$,nr.isCancel=iy,nr.VERSION=wy,nr.toFormData=gc,nr.AxiosError=At,nr.Cancel=nr.CanceledError,nr.all=function(n){return Promise.all(n)},nr.spread=M$,nr.isAxiosError=I$,nr.mergeConfig=Rs,nr.AxiosHeaders=li,nr.formToJSON=n=>ny(Se.isHTMLForm(n)?new FormData(n):n),nr.getAdapter=yy.getAdapter,nr.HttpStatusCode=sd,nr.default=nr;const{Axios:mD,AxiosError:vD,CanceledError:yD,isCancel:bD,CancelToken:wD,VERSION:xD,all:CD,Cancel:kD,isAxiosError:AD,spread:SD,toFormData:_D,AxiosHeaders:$D,HttpStatusCode:TD,formToJSON:MD,getAdapter:ID,mergeConfig:ED}=nr;function ky(){return Object.assign({},Qs())}function E$(n,t,e){const r=_n(n,void 0);return r.setTime(r.getTime()+t*Ml),r}function R$(n,t){const e=()=>er(void 0,NaN),r=D$(n);let f;if(r.date){const h=F$(r.date,2);f=P$(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const g=+f;let m=0,w;if(r.time&&(m=W$(r.time),isNaN(m)))return e();if(r.timezone){if(w=B$(r.timezone),isNaN(w))return e()}else{const h=new Date(g+m),d=_n(0,void 0);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return _n(g+m+w,void 0)}const xc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},L$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,O$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,N$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function D$(n){const t={},e=n.split(xc.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],xc.timeZoneDelimiter.test(t.date)&&(t.date=n.split(xc.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=xc.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function F$(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=n.match(e);if(!r)return{year:NaN,restDateString:""};const f=r[1]?parseInt(r[1]):null,g=r[2]?parseInt(r[2]):null;return{year:g===null?f:g*100,restDateString:n.slice((r[1]||r[2]).length)}}function P$(n,t){if(t===null)return new Date(NaN);const e=n.match(L$);if(!e)return new Date(NaN);const r=!!e[4],f=rl(e[1]),g=rl(e[2])-1,m=rl(e[3]),w=rl(e[4]),h=rl(e[5])-1;if(r)return V$(t,w,h)?z$(t,w,h):new Date(NaN);{const d=new Date(0);return!j$(t,g,m)||!U$(t,f)?new Date(NaN):(d.setUTCFullYear(t,g,Math.max(f,m)),d)}}function rl(n){return n?parseInt(n):1}function W$(n){const t=n.match(O$);if(!t)return NaN;const e=ad(t[1]),r=ad(t[2]),f=ad(t[3]);return q$(e,r,f)?e*gu+r*Ml+f*1e3:NaN}function ad(n){return n&&parseFloat(n.replace(",","."))||0}function B$(n){if(n==="Z")return 0;const t=n.match(N$);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return K$(r,f)?e*(r*gu+f*Ml):NaN}function z$(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const H$=[31,null,31,30,31,30,31,31,30,31,30,31];function Ay(n){return n%400===0||n%4===0&&n%100!==0}function j$(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(H$[t]||(Ay(n)?29:28))}function U$(n,t){return t>=1&&t<=(Ay(n)?366:365)}function V$(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function q$(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function K$(n,t){return t>=0&&t<=59}function G$(n,t,e){return E$(n,-t)}function Sy(n,t,e){const r=ky(),f=Z$(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?Y$(f,t):X$(f,t)}function Y$(n,t){const e=n.formatToParts(t);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function X$(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function Z$(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function Q$(n,t){const e=rT(t);return"formatToParts"in e?eT(e,n):tT(e,n)}const J$={year:0,month:1,day:2,hour:3,minute:4,second:5};function eT(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const g=J$[e[f].type];g!==void 0&&(r[g]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function tT(n,t){const e=n.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const ld={},_y=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")),nT=_y==="06/25/2014, 00:00:00"||_y==="06/25/2014 00:00:00";function rT(n){return ld[n]||(ld[n]=nT?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"})),ld[n]}function $y(n,t,e,r,f,g,m){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(r,f,g,m),w}const Ty=36e5,iT=6e4,cd={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ud(n,t,e){if(!n)return 0;let r=cd.timezoneZ.exec(n);if(r)return 0;let f,g;if(r=cd.timezoneHH.exec(n),r)return f=parseInt(r[1],10),My(f)?-(f*Ty):NaN;if(r=cd.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const m=parseInt(r[3],10);return My(f,m)?(g=Math.abs(f)*Ty+m*iT,r[1]==="+"?-g:g):NaN}if(aT(n)){t=new Date(t||Date.now());const m=e?t:oT(t),w=hd(m,n);return-(e?w:sT(t,w,n))}return NaN}function oT(n){return $y(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function hd(n,t){const e=Q$(n,t),r=$y(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const g=f%1e3;return f-=g>=0?g:1e3+g,r-f}function sT(n,t,e){let r=n.getTime()-t;const f=hd(new Date(r),e);if(t===f)return t;r-=f-t;const g=hd(new Date(r),e);return f===g?f:Math.max(f,g)}function My(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const Iy={};function aT(n){if(Iy[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Iy[n]=!0,!0}catch{return!1}}const lT=60*1e3,cT={X:function(n,t,e){const r=dd(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Ey(r);case"XXXX":case"XX":return ya(r);case"XXXXX":case"XXX":default:return ya(r,":")}},x:function(n,t,e){const r=dd(e.timeZone,n);switch(t){case"x":return Ey(r);case"xxxx":case"xx":return ya(r);case"xxxxx":case"xxx":default:return ya(r,":")}},O:function(n,t,e){const r=dd(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+uT(r,":");case"OOOO":default:return"GMT"+ya(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return Sy("short",n,e);case"zzzz":default:return Sy("long",n,e)}}};function dd(n,t){const e=n?ud(n,t,!0)/lT:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function Cc(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function ya(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Cc(Math.floor(r/60),2),g=Cc(Math.floor(r%60),2);return e+f+t+g}function Ey(n,t){return n%60===0?(n>0?"-":"+")+Cc(Math.abs(n)/60,2):ya(n,t)}function uT(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+Cc(g,2)}function Ry(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 hT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,pd=36e5,Ly=6e4,dT=2,jr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:hT};function Oy(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?dT: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 r=pT(n),{year:f,restDateString:g}=fT(r.date,e),m=gT(g,f);if(m===null||isNaN(m.getTime()))return new Date(NaN);if(m){const w=m.getTime();let h=0,d;if(r.time&&(h=mT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=ud(r.timeZone||t.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=Ry(new Date(w+h)),d=Ry(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function pT(n){const t={};let e=jr.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=jr.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=jr.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function fT(n,t){if(n){const e=jr.YYY[t],r=jr.YYYYY[t];let f=jr.YYYY.exec(n)||r.exec(n);if(f){const g=f[1];return{year:parseInt(g,10),restDateString:n.slice(g.length)}}if(f=jr.YY.exec(n)||e.exec(n),f){const g=f[1];return{year:parseInt(g,10)*100,restDateString:n.slice(g.length)}}}return{year:null}}function gT(n,t){if(t===null)return null;let e,r,f;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let g=jr.MM.exec(n);if(g)return e=new Date(0),r=parseInt(g[1],10)-1,Fy(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(g=jr.DDD.exec(n),g){e=new Date(0);const m=parseInt(g[1],10);return bT(t,m)?(e.setUTCFullYear(t,0,m),e):new Date(NaN)}if(g=jr.MMDD.exec(n),g){e=new Date(0),r=parseInt(g[1],10)-1;const m=parseInt(g[2],10);return Fy(t,r,m)?(e.setUTCFullYear(t,r,m),e):new Date(NaN)}if(g=jr.Www.exec(n),g)return f=parseInt(g[1],10)-1,Py(f)?Ny(t,f):new Date(NaN);if(g=jr.WwwD.exec(n),g){f=parseInt(g[1],10)-1;const m=parseInt(g[2],10)-1;return Py(f,m)?Ny(t,f,m):new Date(NaN)}return null}function mT(n){let t,e,r=jr.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),fd(t)?t%24*pd:NaN;if(r=jr.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),fd(t,e)?t%24*pd+e*Ly:NaN;if(r=jr.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return fd(t,e,f)?t%24*pd+e*Ly+f*1e3:NaN}return null}function Ny(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const vT=[31,28,31,30,31,30,31,31,30,31,30,31],yT=[31,29,31,30,31,30,31,31,30,31,30,31];function Dy(n){return n%400===0||n%4===0&&n%100!==0}function Fy(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Dy(n);if(r&&e>yT[t]||!r&&e>vT[t])return!1}return!0}function bT(n,t){if(t<1)return!1;const e=Dy(n);return!(e&&t>366||!e&&t>365)}function Py(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function fd(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const wT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function xT(n,t,e={}){t=String(t);const r=t.match(wT);if(r){const f=Oy(e.originalDate||n,e);t=r.reduce(function(g,m){if(m[0]==="'")return g;const w=g.indexOf(m),h=g[w-1]==="'",d=g.replace(m,"'"+cT[m[0]](f,m,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},t)}return ys(n,t,e)}function CT(n,t,e){n=Oy(n,e);const r=ud(t,n,!0),f=new Date(n.getTime()-r),g=new Date(0);return g.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),g.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),g}function kc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},xT(CT(n,t,{timeZone:r.timeZone}),e,r)}const Ac="yyyy-MM-dd",Wy="HH:mm:ss.SSS",By="HH:mm:ss",Sc=`${Ac} ${Wy}`,zy=`${Ac} ${By}`,RD=gr("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return ys(!t||t==="local"?G$(n,n.getTimezoneOffset()):n,Sc)},formatDateTime(n,t){return!t||t==="local"?ys(n,Sc):kc(n,t,Sc)},formatDateTimeHMS(n,t){return!t||t==="local"?ys(n,zy):kc(n,t,zy)},formatDate:function(n,t){return!t||t==="local"?ys(n,Ac):kc(n,this.timeZone,Ac)},formatTime:function(n,t,e=Wy){return!t||t==="local"?ys(n,e):kc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,By)},formatTimestamp(n,t){return this.formatDateTime(R$(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 kT=Object.defineProperty,AT=(n,t,e)=>t in n?kT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Je=(n,t,e)=>AT(n,typeof t!="symbol"?t+"":t,e);function gd(n,t,e){const r=_n(n,e==null?void 0:e.in);return isNaN(t)?er((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function ST(n,t){const e=_n(n,void 0).getDay();return e===0?7:e}function _T(n,t){const e=$T(t)?new t(0):er(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function $T(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const TT=10;let Hy=class{constructor(){Je(this,"subPriority",0)}validate(t,e){return!0}},MT=class extends Hy{constructor(t,e,r,f,g){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,g&&(this.subPriority=g)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}};class IT extends Hy{constructor(t,e){super(),Je(this,"priority",TT),Je(this,"subPriority",-1),this.context=t||(r=>er(e,r))}set(t,e){return e.timestampIsSet?t:er(t,_T(t,this.context))}}class tn{run(t,e,r,f){const g=this.parse(t,e,r,f);return g?{setter:new MT(g.value,this.validate,this.set,this.priority,this.subPriority),rest:g.rest}:null}validate(t,e,r){return!0}}class ET extends tn{constructor(){super(...arguments),Je(this,"priority",140),Je(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const Gn={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}/},po={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 Yn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Ln(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function fo(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const r=e[1]==="+"?1:-1,f=e[2]?parseInt(e[2],10):0,g=e[3]?parseInt(e[3],10):0,m=e[5]?parseInt(e[5],10):0;return{value:r*(f*gu+g*Ml+m*kw),rest:t.slice(e[0].length)}}function jy(n){return Ln(Gn.anyDigitsSigned,n)}function Pn(n,t){switch(n){case 1:return Ln(Gn.singleDigit,t);case 2:return Ln(Gn.twoDigits,t);case 3:return Ln(Gn.threeDigits,t);case 4:return Ln(Gn.fourDigits,t);default:return Ln(new RegExp("^\\d{1,"+n+"}"),t)}}function Uy(n,t){switch(n){case 1:return Ln(Gn.singleDigitSigned,t);case 2:return Ln(Gn.twoDigitsSigned,t);case 3:return Ln(Gn.threeDigitsSigned,t);case 4:return Ln(Gn.fourDigitsSigned,t);default:return Ln(new RegExp("^-?\\d{1,"+n+"}"),t)}}function md(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 Vy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const g=r+50,m=Math.trunc(g/100)*100,w=n>=g%100;f=n+m-(w?100:0)}return e?f:1-f}function qy(n){return n%400===0||n%4===0&&n%100!==0}let RT=class extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="yy"});switch(e){case"y":return Yn(Pn(4,t),f);case"yo":return Yn(r.ordinalNumber(t,{unit:"year"}),f);default:return Yn(Pn(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){const f=t.getFullYear();if(r.isTwoDigitYear){const m=Vy(r.year,f);return t.setFullYear(m,0,1),t.setHours(0,0,0,0),t}const g=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(g,0,1),t.setHours(0,0,0,0),t}};class LT extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="YY"});switch(e){case"Y":return Yn(Pn(4,t),f);case"Yo":return Yn(r.ordinalNumber(t,{unit:"year"}),f);default:return Yn(Pn(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const g=vu(t,f);if(r.isTwoDigitYear){const w=Vy(r.year,g);return t.setFullYear(w,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,f)}const m=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(m,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,f)}}class OT extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return Uy(e==="R"?4:e.length,t)}set(t,e,r){const f=er(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Js(f)}}let NT=class extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return Uy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}};class DT extends tn{constructor(){super(...arguments),Je(this,"priority",120),Je(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return Pn(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}class FT extends tn{constructor(){super(...arguments),Je(this,"priority",120),Je(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return Pn(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}let PT=class extends tn{constructor(){super(...arguments),Je(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Je(this,"priority",110)}parse(t,e,r){const f=g=>g-1;switch(e){case"M":return Yn(Ln(Gn.month,t),f);case"MM":return Yn(Pn(2,t),f);case"Mo":return Yn(r.ordinalNumber(t,{unit:"month"}),f);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}},WT=class extends tn{constructor(){super(...arguments),Je(this,"priority",110),Je(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=g=>g-1;switch(e){case"L":return Yn(Ln(Gn.month,t),f);case"LL":return Yn(Pn(2,t),f);case"Lo":return Yn(r.ordinalNumber(t,{unit:"month"}),f);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}};function BT(n,t,e){const r=_n(n,e==null?void 0:e.in),f=Yp(r,e)-t;return r.setDate(r.getDate()-f*7),_n(r,e==null?void 0:e.in)}let zT=class extends tn{constructor(){super(...arguments),Je(this,"priority",100),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Ln(Gn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return Ko(BT(t,r,f),f)}};function HT(n,t,e){const r=_n(n,void 0),f=Gp(r)-t;return r.setDate(r.getDate()-f*7),r}class jT extends tn{constructor(){super(...arguments),Je(this,"priority",100),Je(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return Ln(Gn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Js(HT(t,r))}}const UT=[31,28,31,30,31,30,31,31,30,31,30,31],VT=[31,29,31,30,31,30,31,31,30,31,30,31];class qT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"subPriority",1),Je(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Ln(Gn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Pn(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=qy(r),g=t.getMonth();return f?e>=1&&e<=VT[g]:e>=1&&e<=UT[g]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}let KT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"subpriority",1),Je(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return Ln(Gn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Pn(e.length,t)}}validate(t,e){const r=t.getFullYear();return qy(r)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}};function vd(n,t,e){var r,f,g,m;const w=Qs(),h=(e==null?void 0:e.weekStartsOn)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.weekStartsOn)??w.weekStartsOn??((m=(g=w.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,d=_n(n,e==null?void 0:e.in),a=d.getDay(),l=(t%7+7)%7,u=7-h,c=t<0||t>6?t-(a+u)%7:(l+u)%7-(a+u)%7;return gd(d,c,e)}class GT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=vd(t,r,f),t.setHours(0,0,0,0),t}}class YT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return Yn(Pn(e.length,t),g);case"eo":return Yn(r.ordinalNumber(t,{unit:"day"}),g);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=vd(t,r,f),t.setHours(0,0,0,0),t}}class XT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return Yn(Pn(e.length,t),g);case"co":return Yn(r.ordinalNumber(t,{unit:"day"}),g);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=vd(t,r,f),t.setHours(0,0,0,0),t}}function ZT(n,t,e){const r=_n(n,void 0),f=ST(r),g=t-f;return gd(r,g,e)}let QT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=g=>g===0?7:g;switch(e){case"i":case"ii":return Pn(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return Yn(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiii":return Yn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return Yn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return Yn(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return t=ZT(t,r),t.setHours(0,0,0,0),t}};class JT extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(md(r),0,0,0),t}}class eM extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(md(r),0,0,0),t}}let tM=class extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(md(r),0,0,0),t}};class nM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Ln(Gn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){const f=t.getHours()>=12;return f&&r<12?t.setHours(r+12,0,0,0):!f&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}}class rM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Ln(Gn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class iM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Ln(Gn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}}class oM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Ln(Gn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){const f=r<=24?r%24:r;return t.setHours(f,0,0,0),t}}class sM extends tn{constructor(){super(...arguments),Je(this,"priority",60),Je(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Ln(Gn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class aM extends tn{constructor(){super(...arguments),Je(this,"priority",50),Je(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Ln(Gn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class lM extends tn{constructor(){super(...arguments),Je(this,"priority",30),Je(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return Yn(Pn(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class cM extends tn{constructor(){super(...arguments),Je(this,"priority",10),Je(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return fo(po.basicOptionalMinutes,t);case"XX":return fo(po.basic,t);case"XXXX":return fo(po.basicOptionalSeconds,t);case"XXXXX":return fo(po.extendedOptionalSeconds,t);case"XXX":default:return fo(po.extended,t)}}set(t,e,r){return e.timestampIsSet?t:er(t,t.getTime()-Il(t)-r)}}class uM extends tn{constructor(){super(...arguments),Je(this,"priority",10),Je(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return fo(po.basicOptionalMinutes,t);case"xx":return fo(po.basic,t);case"xxxx":return fo(po.basicOptionalSeconds,t);case"xxxxx":return fo(po.extendedOptionalSeconds,t);case"xxx":default:return fo(po.extended,t)}}set(t,e,r){return e.timestampIsSet?t:er(t,t.getTime()-Il(t)-r)}}class hM extends tn{constructor(){super(...arguments),Je(this,"priority",40),Je(this,"incompatibleTokens","*")}parse(t){return jy(t)}set(t,e,r){return[er(t,r*1e3),{timestampIsSet:!0}]}}class dM extends tn{constructor(){super(...arguments),Je(this,"priority",20),Je(this,"incompatibleTokens","*")}parse(t){return jy(t)}set(t,e,r){return[er(t,r),{timestampIsSet:!0}]}}const pM={G:new ET,y:new RT,Y:new LT,R:new OT,u:new NT,Q:new DT,q:new FT,M:new PT,L:new WT,w:new zT,I:new jT,d:new qT,D:new KT,E:new GT,e:new YT,c:new XT,i:new QT,a:new JT,b:new eM,B:new tM,h:new nM,H:new rM,K:new iM,k:new oM,m:new sM,s:new aM,S:new lM,X:new cM,x:new uM,t:new hM,T:new dM},fM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mM=/^'([^]*?)'?$/,vM=/''/g,yM=/\S/,bM=/[a-zA-Z]/;function wM(n,t,e,r){var f,g,m,w;const h=()=>er(e,NaN),d=ky(),a=d.locale??Kp,l=d.firstWeekContainsDate??((g=(f=d.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,u=d.weekStartsOn??((w=(m=d.locale)==null?void 0:m.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():_n(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},i=[new IT(void 0,e)],s=t.match(gM).map(_=>{const k=_[0];if(k in yu){const C=yu[k];return C(_,a.formatLong)}return _}).join("").match(fM),p=[];for(let _ of s){nf(_)&&bu(_,t,n),tf(_)&&bu(_,t,n);const k=_[0],C=pM[k];if(C){const{incompatibleTokens:L}=C;if(Array.isArray(L)){const E=p.find(I=>L.includes(I.token)||I.token===k);if(E)throw new RangeError(`The format string mustn't contain \`${E.fullToken}\` and \`${_}\` at the same time`)}else if(C.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);p.push({token:k,fullToken:_});const D=C.run(n,_,a.match,c);if(!D)return h();i.push(D.setter),n=D.rest}else{if(k.match(bM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(_==="''"?_="'":k==="'"&&(_=xM(_)),n.indexOf(_)===0)n=n.slice(_.length);else return h()}}if(n.length>0&&yM.test(n))return h();const b=i.map(_=>_.priority).sort((_,k)=>k-_).filter((_,k,C)=>C.indexOf(_)===k).map(_=>i.filter(k=>k.priority===_).sort((k,C)=>C.subPriority-k.subPriority)).map(_=>_[0]);let x=_n(e,void 0);if(isNaN(+x))return h();const R={};for(const _ of b){if(!_.validate(x,c))return h();const k=_.set(x,R,c);Array.isArray(k)?(x=k[0],Object.assign(R,k[1])):x=k}return x}function xM(n){return n.match(mM)[1].replace(vM,"'")}const CM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",kM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return CM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=IM.indexOf(Ky[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,r=32*this.scaleFactor*t,f=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*f}px;`,`background-size: ${e}px ${r}px;`,`height: ${f}px;`,`width: ${f}px;`,`padding-top: ${n-1}px;`].join("")}}};function AM(n,t,e,r,f,g){return Rn(),ri("div",{style:Ra(g.iconStyle)},null,4)}const SM=qo(kM,[["render",AM]]),_M={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function $M(n,t,e,r,f,g){const m=xt("rux-icon");return Rn(),lo(m,{size:e.size,icon:e.icon,style:Ra(g.colorStyle)},null,8,["size","icon","style"])}const TM=qo(_M,[["render",$M],["__scopeId","data-v-9af48e85"]]),Ky={fatal:"critical",FATAL:"critical",error:"critical",ERROR:"critical",warn:"caution",WARN:"caution",info:"normal",INFO:"normal",debug:"off",DEBUG:"off",critical:"critical",CRITICAL:"critical",serious:"serious",SERIOUS:"serious",caution:"caution",CAUTION:"caution",normal:"normal",NORMAL:"normal",standby:"standby",STANDBY:"standby",off:"off",OFF:"OFF"},yd={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},MM=function(n){const t="#000000",e="#ffffff",r=yd[Ky[n]];if(r){const f=+`0x${r.slice(1,3)}`,g=+`0x${r.slice(3,5)}`,m=+`0x${r.slice(5,7)}`;if((f*299+g*587+m*114)/1e3>128)return t}return e},IM=Object.keys(yd),EM={astro:{component:n=>Xs(TM,{...n})},"astro-status":{component:n=>Xs(SM,{...n,status:n.icon})}},RM={extras:{component:n=>Xs(Cw,{...n})}},LD=gr("p",{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 As().load_config(this.configKey,n).then(r=>{r?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(r)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(r=>{r&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:r})})},saveConfigBase:function(n,t){new As().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})}}}),LM={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 As().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 As().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},OM={class:"mt-4 pa-3"},NM=["textContent"];function DM(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-text-field"),d=xt("v-row"),a=xt("v-btn"),l=xt("v-data-table"),u=xt("v-card-text"),c=xt("v-card-actions"),i=xt("v-card"),s=xt("v-dialog");return Rn(),lo(s,{modelValue:g.show,"onUpdate:modelValue":t[4]||(t[4]=p=>g.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:Rt(()=>[ht(i,null,{default:Rt(()=>[mr("form",{onSubmit:t[3]||(t[3]=Zs((...p)=>g.success&&g.success(...p),["prevent"]))},[ht(w,{height:"24"},{default:Rt(()=>[ht(m),t[5]||(t[5]=mr("span",null,"Open Configuration",-1)),ht(m)]),_:1}),ht(u,null,{default:Rt(()=>[mr("div",OM,[ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),label:"Search",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}),ht(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,b)=>g.selectRow(b))},{"item.actions":Rt(({item:p})=>[ht(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ht(d,{dense:""},{default:Rt(()=>[$l(mr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,NM),[[Tl,g.error]])]),_:1})])]),_:1}),ht(c,{class:"px-2"},{default:Rt(()=>[ht(m),ht(a,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:g.cancel},{default:Rt(()=>[...t[6]||(t[6]=[Rr(" Cancel ",-1)])]),_:1},8,["onClick"]),ht(a,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!g.error,onClick:Zs(g.success,["prevent"])},{default:Rt(()=>[...t[7]||(t[7]=[Rr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const OD=gr("g",qo(LM,[["render",DM]])),FM={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)}}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}},mounted(){let n=-1;new As().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 As().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},PM={class:"mt-4 pa-3"},WM=["textContent"];function BM(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-text-field"),d=xt("v-row"),a=xt("v-btn"),l=xt("v-data-table"),u=xt("v-card-text"),c=xt("v-card-actions"),i=xt("v-card"),s=xt("v-dialog");return Rn(),lo(s,{modelValue:g.show,"onUpdate:modelValue":t[5]||(t[5]=p=>g.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:Rt(()=>[ht(i,null,{default:Rt(()=>[mr("form",{onSubmit:t[4]||(t[4]=Zs((...p)=>g.success&&g.success(...p),["prevent"]))},[ht(w,{height:"24"},{default:Rt(()=>[ht(m),t[6]||(t[6]=mr("span",null,"Save Configuration",-1)),ht(m)]),_:1}),ht(u,null,{default:Rt(()=>[mr("div",PM,[ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),label:"search",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}),ht(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,b)=>g.selectRow(b))},{"item.actions":Rt(({item:p})=>[ht(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>f.configName=p),"hide-details":"",autofocus:"",disabled:!!g.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),ht(d,{dense:""},{default:Rt(()=>[$l(mr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,WM),[[Tl,g.error]])]),_:1})])]),_:1}),ht(c,{class:"px-2"},{default:Rt(()=>[ht(m),ht(a,{variant:"outlined",onClick:g.cancel},{default:Rt(()=>[...t[7]||(t[7]=[Rr(" Cancel ",-1)])]),_:1},8,["onClick"]),ht(a,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!g.error,onClick:Zs(g.success,["prevent"])},{default:Rt(()=>[...t[8]||(t[8]=[Rr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const ND=gr("a",qo(FM,[["render",BM]])),zM=50,HM=2e3,Gy="single-spa:app-change",jM={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Gy,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},HM)},unmounted(){window.removeEventListener(Gy,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=pu().length>0,pu().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},zM)}}},UM={class:"mx-1"},VM={key:1,class:"d-flex justify-center align-center"};function qM(n,t,e,r,f,g){const m=xt("v-card-title"),w=xt("v-card-text"),h=xt("v-card"),d=xt("v-progress-circular");return Rn(),ri(Sl,null,[f.show?(Rn(),lo(h,{key:0},{default:Rt(()=>[ht(m,null,{default:Rt(()=>[...t[0]||(t[0]=[Rr(" 404 Not Found ",-1)])]),_:1}),ht(w,{class:"d-flex align-center mt-3"},{default:Rt(()=>[t[1]||(t[1]=Rr(" The requested URL ",-1)),mr("code",UM,ii(n.$route.fullPath),1),t[2]||(t[2]=Rr(" was not routable. ",-1)),t[3]||(t[3]=mr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):So("",!0),g.showSpinner?(Rn(),ri("div",VM,[ht(d,{indeterminate:""})])):So("",!0)],64)}const Yy=[{path:"/:target?/:packet?/:item?/",name:"TlmGrapher",component:()=>ot(()=>it.import("./TlmGrapher-c28d464418c530a5a18f.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:qo(jM,[["render",qM]])}];Yy.forEach(Bp);const KM=Np({history:Dp(),routes:Yy});/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Xy,setPrototypeOf:Zy,isFrozen:GM,getPrototypeOf:YM,getOwnPropertyDescriptor:XM}=Object;let{freeze:Ur,seal:Di,create:bd}=Object,{apply:wd,construct:xd}=typeof Reflect<"u"&&Reflect;Ur||(Ur=function(n){return n}),Di||(Di=function(n){return n}),wd||(wd=function(n,t){for(var e=arguments.length,r=new Array(e>2?e-2:0),f=2;f<e;f++)r[f-2]=arguments[f];return n.apply(t,r)}),xd||(xd=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new n(...e)});const _c=qr(Array.prototype.forEach),ZM=qr(Array.prototype.lastIndexOf),Qy=qr(Array.prototype.pop),il=qr(Array.prototype.push),QM=qr(Array.prototype.splice),$c=qr(String.prototype.toLowerCase),Cd=qr(String.prototype.toString),kd=qr(String.prototype.match),ol=qr(String.prototype.replace),JM=qr(String.prototype.indexOf),eI=qr(String.prototype.trim),eo=qr(Object.prototype.hasOwnProperty),Vr=qr(RegExp.prototype.test),sl=tI(TypeError);function qr(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),f=1;f<e;f++)r[f-1]=arguments[f];return wd(n,t,r)}}function tI(n){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return xd(n,e)}}function Ft(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$c;Zy&&Zy(n,null);let r=t.length;for(;r--;){let f=t[r];if(typeof f=="string"){const g=e(f);g!==f&&(GM(t)||(t[r]=g),f=g)}n[f]=!0}return n}function nI(n){for(let t=0;t<n.length;t++)eo(n,t)||(n[t]=null);return n}function go(n){const t=bd(null);for(const[e,r]of Xy(n))eo(n,e)&&(Array.isArray(r)?t[e]=nI(r):r&&typeof r=="object"&&r.constructor===Object?t[e]=go(r):t[e]=r);return t}function al(n,t){for(;n!==null;){const r=XM(n,t);if(r){if(r.get)return qr(r.get);if(typeof r.value=="function")return qr(r.value)}n=YM(n)}function e(){return null}return e}const Jy=Ur(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ad=Ur(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Sd=Ur(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rI=Ur(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_d=Ur(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),iI=Ur(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),eb=Ur(["#text"]),tb=Ur(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),$d=Ur(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nb=Ur(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tc=Ur(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oI=Di(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sI=Di(/<%[\w\W]*|[\w\W]*%>/gm),aI=Di(/\$\{[\w\W]*/gm),lI=Di(/^data-[\-\w.\u00B7-\uFFFF]+$/),cI=Di(/^aria-[\-\w]+$/),rb=Di(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uI=Di(/^(?:\w+script|data):/i),hI=Di(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ib=Di(/^html$/i),dI=Di(/^[a-z][.\w]*(-[.\w]+)+$/i);var ob=Object.freeze({__proto__:null,ARIA_ATTR:cI,ATTR_WHITESPACE:hI,CUSTOM_ELEMENT:dI,DATA_ATTR:lI,DOCTYPE_NAME:ib,ERB_EXPR:sI,IS_ALLOWED_URI:rb,IS_SCRIPT_OR_DATA:uI,MUSTACHE_EXPR:oI,TMPLIT_EXPR:aI});const ll={element:1,text:3,progressingInstruction:7,comment:8,document:9},pI=function(){return typeof window>"u"?null:window},fI=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(e=t.getAttribute(r));const f="dompurify"+(e?"#"+e:"");try{return n.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},sb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ab(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pI();const t=ce=>ab(ce);if(t.version="3.3.1",t.removed=[],!n||!n.document||n.document.nodeType!==ll.document||!n.Element)return t.isSupported=!1,t;let{document:e}=n;const r=e,f=r.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:w,Element:h,NodeFilter:d,NamedNodeMap:a=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:c}=n,i=h.prototype,s=al(i,"cloneNode"),p=al(i,"remove"),b=al(i,"nextSibling"),x=al(i,"childNodes"),R=al(i,"parentNode");if(typeof m=="function"){const ce=e.createElement("template");ce.content&&ce.content.ownerDocument&&(e=ce.content.ownerDocument)}let _,k="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:E}=e,{importNode:I}=r;let z=sb();t.isSupported=typeof Xy=="function"&&typeof R=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:O,TMPLIT_EXPR:$,DATA_ATTR:A,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:K}=ob;let{IS_ALLOWED_URI:Q}=ob,J=null;const he=Ft({},[...Jy,...Ad,...Sd,..._d,...eb]);let ne=null;const le=Ft({},[...tb,...$d,...nb,...Tc]);let se=Object.seal(bd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const _e=Object.seal(bd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Te=!0,Me=!0,Xe=!1,Ke=!0,at=!1,et=!0,lt=!1,Xt=!1,xn=!1,Wt=!1,vr=!1,un=!1,On=!0,Xn=!1;const Tr="user-content-";let mt=!0,je=!1,Lt={},Ht=null;const $n=Ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yr=null;const cr=Ft({},["audio","video","img","source","image","track"]);let gn=null;const Wn=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Gt="http://www.w3.org/2000/svg",ln="http://www.w3.org/1999/xhtml";let Dr=ln,Kr=!1,Gr=null;const Ai=Ft({},[Nn,Gt,ln],Cd);let ci=Ft({},["mi","mo","mn","ms","mtext"]),Bn=Ft({},["annotation-xml"]);const to=Ft({},["title","style","font","a","script"]);let ui=null;const Os=["application/xhtml+xml","text/html"],Yr="text/html";let Cn=null,hi=null;const Qo=e.createElement("form"),di=function(ce){return ce instanceof RegExp||ce instanceof Function},kn=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hi&&hi===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=go(ce),ui=Os.indexOf(ce.PARSER_MEDIA_TYPE)===-1?Yr:ce.PARSER_MEDIA_TYPE,Cn=ui==="application/xhtml+xml"?Cd:$c,J=eo(ce,"ALLOWED_TAGS")?Ft({},ce.ALLOWED_TAGS,Cn):he,ne=eo(ce,"ALLOWED_ATTR")?Ft({},ce.ALLOWED_ATTR,Cn):le,Gr=eo(ce,"ALLOWED_NAMESPACES")?Ft({},ce.ALLOWED_NAMESPACES,Cd):Ai,gn=eo(ce,"ADD_URI_SAFE_ATTR")?Ft(go(Wn),ce.ADD_URI_SAFE_ATTR,Cn):Wn,yr=eo(ce,"ADD_DATA_URI_TAGS")?Ft(go(cr),ce.ADD_DATA_URI_TAGS,Cn):cr,Ht=eo(ce,"FORBID_CONTENTS")?Ft({},ce.FORBID_CONTENTS,Cn):$n,de=eo(ce,"FORBID_TAGS")?Ft({},ce.FORBID_TAGS,Cn):go({}),me=eo(ce,"FORBID_ATTR")?Ft({},ce.FORBID_ATTR,Cn):go({}),Lt=eo(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Te=ce.ALLOW_ARIA_ATTR!==!1,Me=ce.ALLOW_DATA_ATTR!==!1,Xe=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Ke=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,at=ce.SAFE_FOR_TEMPLATES||!1,et=ce.SAFE_FOR_XML!==!1,lt=ce.WHOLE_DOCUMENT||!1,Wt=ce.RETURN_DOM||!1,vr=ce.RETURN_DOM_FRAGMENT||!1,un=ce.RETURN_TRUSTED_TYPE||!1,xn=ce.FORCE_BODY||!1,On=ce.SANITIZE_DOM!==!1,Xn=ce.SANITIZE_NAMED_PROPS||!1,mt=ce.KEEP_CONTENT!==!1,je=ce.IN_PLACE||!1,Q=ce.ALLOWED_URI_REGEXP||rb,Dr=ce.NAMESPACE||ln,ci=ce.MATHML_TEXT_INTEGRATION_POINTS||ci,Bn=ce.HTML_INTEGRATION_POINTS||Bn,se=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&typeof ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),at&&(Me=!1),vr&&(Wt=!0),Lt&&(J=Ft({},eb),ne=[],Lt.html===!0&&(Ft(J,Jy),Ft(ne,tb)),Lt.svg===!0&&(Ft(J,Ad),Ft(ne,$d),Ft(ne,Tc)),Lt.svgFilters===!0&&(Ft(J,Sd),Ft(ne,$d),Ft(ne,Tc)),Lt.mathMl===!0&&(Ft(J,_d),Ft(ne,nb),Ft(ne,Tc))),ce.ADD_TAGS&&(typeof ce.ADD_TAGS=="function"?_e.tagCheck=ce.ADD_TAGS:(J===he&&(J=go(J)),Ft(J,ce.ADD_TAGS,Cn))),ce.ADD_ATTR&&(typeof ce.ADD_ATTR=="function"?_e.attributeCheck=ce.ADD_ATTR:(ne===le&&(ne=go(ne)),Ft(ne,ce.ADD_ATTR,Cn))),ce.ADD_URI_SAFE_ATTR&&Ft(gn,ce.ADD_URI_SAFE_ATTR,Cn),ce.FORBID_CONTENTS&&(Ht===$n&&(Ht=go(Ht)),Ft(Ht,ce.FORBID_CONTENTS,Cn)),ce.ADD_FORBID_CONTENTS&&(Ht===$n&&(Ht=go(Ht)),Ft(Ht,ce.ADD_FORBID_CONTENTS,Cn)),mt&&(J["#text"]=!0),lt&&Ft(J,["html","head","body"]),J.table&&(Ft(J,["tbody"]),delete de.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=ce.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=fI(c,f)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));Ur&&Ur(ce),hi=ce}},ur=Ft({},[...Ad,...Sd,...rI]),pi=Ft({},[..._d,...iI]),An=function(ce){let ze=R(ce);(!ze||!ze.tagName)&&(ze={namespaceURI:Dr,tagName:"template"});const Fe=$c(ce.tagName),St=$c(ze.tagName);return Gr[ce.namespaceURI]?ce.namespaceURI===Gt?ze.namespaceURI===ln?Fe==="svg":ze.namespaceURI===Nn?Fe==="svg"&&(St==="annotation-xml"||ci[St]):!!ur[Fe]:ce.namespaceURI===Nn?ze.namespaceURI===ln?Fe==="math":ze.namespaceURI===Gt?Fe==="math"&&Bn[St]:!!pi[Fe]:ce.namespaceURI===ln?ze.namespaceURI===Gt&&!Bn[St]||ze.namespaceURI===Nn&&!ci[St]?!1:!pi[Fe]&&(to[Fe]||!ur[Fe]):!!(ui==="application/xhtml+xml"&&Gr[ce.namespaceURI]):!1},Tn=function(ce){il(t.removed,{element:ce});try{R(ce).removeChild(ce)}catch{p(ce)}},br=function(ce,ze){try{il(t.removed,{attribute:ze.getAttributeNode(ce),from:ze})}catch{il(t.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ce),ce==="is")if(Wt||vr)try{Tn(ze)}catch{}else try{ze.setAttribute(ce,"")}catch{}},fi=function(ce){let ze=null,Fe=null;if(xn)ce="<remove></remove>"+ce;else{const jt=kd(ce,/^[\r\n\t ]+/);Fe=jt&&jt[0]}ui==="application/xhtml+xml"&&Dr===ln&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const St=_?_.createHTML(ce):ce;if(Dr===ln)try{ze=new u().parseFromString(St,ui)}catch{}if(!ze||!ze.documentElement){ze=C.createDocument(Dr,"template",null);try{ze.documentElement.innerHTML=Kr?k:St}catch{}}const Yt=ze.body||ze.documentElement;return ce&&Fe&&Yt.insertBefore(e.createTextNode(Fe),Yt.childNodes[0]||null),Dr===ln?E.call(ze,lt?"html":"body")[0]:lt?ze.documentElement:Yt},mo=function(ce){return L.call(ce.ownerDocument||ce,ce,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},vo=function(ce){return ce instanceof l&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof a)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},Jo=function(ce){return typeof w=="function"&&ce instanceof w};function Xr(ce,ze,Fe){_c(ce,St=>{St.call(t,ze,Fe,hi)})}const gi=function(ce){let ze=null;if(Xr(z.beforeSanitizeElements,ce,null),vo(ce))return Tn(ce),!0;const Fe=Cn(ce.nodeName);if(Xr(z.uponSanitizeElement,ce,{tagName:Fe,allowedTags:J}),et&&ce.hasChildNodes()&&!Jo(ce.firstElementChild)&&Vr(/<[/\w!]/g,ce.innerHTML)&&Vr(/<[/\w!]/g,ce.textContent)||ce.nodeType===ll.progressingInstruction||et&&ce.nodeType===ll.comment&&Vr(/<[/\w]/g,ce.data))return Tn(ce),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(Fe))&&(!J[Fe]||de[Fe])){if(!de[Fe]&&Ot(Fe)&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe)))return!1;if(mt&&!Ht[Fe]){const St=R(ce)||ce.parentNode,Yt=x(ce)||ce.childNodes;if(Yt&&St){const jt=Yt.length;for(let xr=jt-1;xr>=0;--xr){const hr=s(Yt[xr],!0);hr.__removalCount=(ce.__removalCount||0)+1,St.insertBefore(hr,b(ce))}}}return Tn(ce),!0}return ce instanceof h&&!An(ce)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&Vr(/<\/no(script|embed|frames)/i,ce.innerHTML)?(Tn(ce),!0):(at&&ce.nodeType===ll.text&&(ze=ce.textContent,_c([P,O,$],St=>{ze=ol(ze,St," ")}),ce.textContent!==ze&&(il(t.removed,{element:ce.cloneNode()}),ce.textContent=ze)),Xr(z.afterSanitizeElements,ce,null),!1)},Fr=function(ce,ze,Fe){if(On&&(ze==="id"||ze==="name")&&(Fe in e||Fe in Qo))return!1;if(!(Me&&!me[ze]&&Vr(A,ze))&&!(Te&&Vr(N,ze))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(ze,ce))){if(!ne[ze]||me[ze]){if(!(Ot(ce)&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,ce)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ce))&&(se.attributeNameCheck instanceof RegExp&&Vr(se.attributeNameCheck,ze)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(ze,ce))||ze==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe))))return!1}else if(!gn[ze]&&!Vr(Q,ol(Fe,U,""))&&!((ze==="src"||ze==="xlink:href"||ze==="href")&&ce!=="script"&&JM(Fe,"data:")===0&&yr[ce])&&!(Xe&&!Vr(B,ol(Fe,U,"")))&&Fe)return!1}return!0},Ot=function(ce){return ce!=="annotation-xml"&&kd(ce,K)},To=function(ce){Xr(z.beforeSanitizeAttributes,ce,null);const{attributes:ze}=ce;if(!ze||vo(ce))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let St=ze.length;for(;St--;){const Yt=ze[St],{name:jt,namespaceURI:xr,value:hr}=Yt,zn=Cn(jt),Cr=hr;let mn=jt==="value"?Cr:eI(Cr);if(Fe.attrName=zn,Fe.attrValue=mn,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,Xr(z.uponSanitizeAttribute,ce,Fe),mn=Fe.attrValue,Xn&&(zn==="id"||zn==="name")&&(br(jt,ce),mn=Tr+mn),et&&Vr(/((--!?|])>)|<\/(style|title|textarea)/i,mn)){br(jt,ce);continue}if(zn==="attributename"&&kd(mn,"href")){br(jt,ce);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){br(jt,ce);continue}if(!Ke&&Vr(/\/>/i,mn)){br(jt,ce);continue}at&&_c([P,O,$],Pr=>{mn=ol(mn,Pr," ")});const no=Cn(ce.nodeName);if(!Fr(no,zn,mn)){br(jt,ce);continue}if(_&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!xr)switch(c.getAttributeType(no,zn)){case"TrustedHTML":{mn=_.createHTML(mn);break}case"TrustedScriptURL":{mn=_.createScriptURL(mn);break}}if(mn!==Cr)try{xr?ce.setAttributeNS(xr,jt,mn):ce.setAttribute(jt,mn),vo(ce)?Tn(ce):Qy(t.removed)}catch{br(jt,ce)}}Xr(z.afterSanitizeAttributes,ce,null)},wr=function ce(ze){let Fe=null;const St=mo(ze);for(Xr(z.beforeSanitizeShadowDOM,ze,null);Fe=St.nextNode();)Xr(z.uponSanitizeShadowNode,Fe,null),gi(Fe),To(Fe),Fe.content instanceof g&&ce(Fe.content);Xr(z.afterSanitizeShadowDOM,ze,null)};return t.sanitize=function(ce){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,St=null,Yt=null,jt=null;if(Kr=!ce,Kr&&(ce="<!-->"),typeof ce!="string"&&!Jo(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw sl("dirty is not a string, aborting")}else throw sl("toString is not a function");if(!t.isSupported)return ce;if(Xt||kn(ze),t.removed=[],typeof ce=="string"&&(je=!1),je){if(ce.nodeName){const zn=Cn(ce.nodeName);if(!J[zn]||de[zn])throw sl("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof w)Fe=fi("<!---->"),St=Fe.ownerDocument.importNode(ce,!0),St.nodeType===ll.element&&St.nodeName==="BODY"||St.nodeName==="HTML"?Fe=St:Fe.appendChild(St);else{if(!Wt&&!at&&!lt&&ce.indexOf("<")===-1)return _&&un?_.createHTML(ce):ce;if(Fe=fi(ce),!Fe)return Wt?null:un?k:""}Fe&&xn&&Tn(Fe.firstChild);const xr=mo(je?ce:Fe);for(;Yt=xr.nextNode();)gi(Yt),To(Yt),Yt.content instanceof g&&wr(Yt.content);if(je)return ce;if(Wt){if(vr)for(jt=D.call(Fe.ownerDocument);Fe.firstChild;)jt.appendChild(Fe.firstChild);else jt=Fe;return(ne.shadowroot||ne.shadowrootmode)&&(jt=I.call(r,jt,!0)),jt}let hr=lt?Fe.outerHTML:Fe.innerHTML;return lt&&J["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Vr(ib,Fe.ownerDocument.doctype.name)&&(hr="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
|
|
1496
|
-
`+
|
|
1495
|
+
`+g):r.stack=g}catch{}}throw r}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Rs(this.defaults,e);const{transitional:r,paramsSerializer:f,headers:g}=e;r!==void 0&&wc.assertOptions(r,{silentJSONParsing:ho.transitional(ho.boolean),forcedJSONParsing:ho.transitional(ho.boolean),clarifyTimeoutError:ho.transitional(ho.boolean)},!1),f!=null&&(Se.isFunction(f)?e.paramsSerializer={serialize:f}:wc.assertOptions(f,{encode:ho.function,serialize:ho.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),wc.assertOptions(e,{baseUrl:ho.spelling("baseURL"),withXsrfToken:ho.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let m=g&&Se.merge(g.common,g[e.method]);g&&Se.forEach(["delete","get","head","post","put","patch","common"],i=>{delete g[i]}),e.headers=li.concat(m,g);const w=[];let h=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(e)===!1||(h=h&&i.synchronous,w.unshift(i.fulfilled,i.rejected))});const d=[];this.interceptors.response.forEach(function(i){d.push(i.fulfilled,i.rejected)});let a,l=0,u;if(!h){const i=[by.bind(this),void 0];for(i.unshift(...w),i.push(...d),u=i.length,a=Promise.resolve(e);l<u;)a=a.then(i[l++],i[l++]);return a}u=w.length;let c=e;for(;l<u;){const i=w[l++],s=w[l++];try{c=i(c)}catch(p){s.call(this,p);break}}try{a=by.call(this,c)}catch(i){return Promise.reject(i)}for(l=0,u=d.length;l<u;)a=a.then(d[l++],d[l++]);return a}getUri(t){t=Rs(this.defaults,t);const e=ly(t.baseURL,t.url,t.allowAbsoluteUrls);return Jv(e,t.params,t.paramsSerializer)}};Se.forEach(["delete","get","head","options"],function(n){Ls.prototype[n]=function(t,e){return this.request(Rs(e||{},{method:n,url:t,data:(e||{}).data}))}}),Se.forEach(["post","put","patch"],function(n){function t(e){return function(r,f,g){return this.request(Rs(g||{},{method:n,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:f}))}}Ls.prototype[n]=t(),Ls.prototype[n+"Form"]=t(!0)});let T$=class ow{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(f){e=f});const r=this;this.promise.then(f=>{if(!r._listeners)return;let g=r._listeners.length;for(;g-- >0;)r._listeners[g](f);r._listeners=null}),this.promise.then=f=>{let g;const m=new Promise(w=>{r.subscribe(w),g=w}).then(f);return m.cancel=function(){r.unsubscribe(g)},m},t(function(f,g,m){r.reason||(r.reason=new va(f,g,m),e(r.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=r=>{t.abort(r)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new ow(function(e){t=e}),cancel:t}}};function M$(n){return function(t){return n.apply(null,t)}}function I$(n){return Se.isObject(n)&&n.isAxiosError===!0}const sd={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(sd).forEach(([n,t])=>{sd[t]=n});function Cy(n){const t=new Ls(n),e=Pv(Ls.prototype.request,t);return Se.extend(e,Ls.prototype,t,{allOwnKeys:!0}),Se.extend(e,t,null,{allOwnKeys:!0}),e.create=function(r){return Cy(Rs(n,r))},e}const nr=sr("w",Cy(tl));nr.Axios=Ls,nr.CanceledError=va,nr.CancelToken=T$,nr.isCancel=iy,nr.VERSION=wy,nr.toFormData=gc,nr.AxiosError=At,nr.Cancel=nr.CanceledError,nr.all=function(n){return Promise.all(n)},nr.spread=M$,nr.isAxiosError=I$,nr.mergeConfig=Rs,nr.AxiosHeaders=li,nr.formToJSON=n=>ny(Se.isHTMLForm(n)?new FormData(n):n),nr.getAdapter=yy.getAdapter,nr.HttpStatusCode=sd,nr.default=nr;const{Axios:vD,AxiosError:yD,CanceledError:bD,isCancel:wD,CancelToken:xD,VERSION:CD,all:kD,Cancel:AD,isAxiosError:SD,spread:_D,toFormData:$D,AxiosHeaders:TD,HttpStatusCode:MD,formToJSON:ID,getAdapter:ED,mergeConfig:RD}=nr;function ky(){return Object.assign({},Qs())}function E$(n,t,e){const r=_n(n,void 0);return r.setTime(r.getTime()+t*Ml),r}function R$(n,t){const e=()=>er(void 0,NaN),r=D$(n);let f;if(r.date){const h=F$(r.date,2);f=P$(h.restDateString,h.year)}if(!f||isNaN(+f))return e();const g=+f;let m=0,w;if(r.time&&(m=W$(r.time),isNaN(m)))return e();if(r.timezone){if(w=B$(r.timezone),isNaN(w))return e()}else{const h=new Date(g+m),d=_n(0,void 0);return d.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),d.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),d}return _n(g+m+w,void 0)}const xc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},L$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,O$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,N$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function D$(n){const t={},e=n.split(xc.dateTimeDelimiter);let r;if(e.length>2)return t;if(/:/.test(e[0])?r=e[0]:(t.date=e[0],r=e[1],xc.timeZoneDelimiter.test(t.date)&&(t.date=n.split(xc.timeZoneDelimiter)[0],r=n.substr(t.date.length,n.length))),r){const f=xc.timezone.exec(r);f?(t.time=r.replace(f[1],""),t.timezone=f[1]):t.time=r}return t}function F$(n,t){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=n.match(e);if(!r)return{year:NaN,restDateString:""};const f=r[1]?parseInt(r[1]):null,g=r[2]?parseInt(r[2]):null;return{year:g===null?f:g*100,restDateString:n.slice((r[1]||r[2]).length)}}function P$(n,t){if(t===null)return new Date(NaN);const e=n.match(L$);if(!e)return new Date(NaN);const r=!!e[4],f=rl(e[1]),g=rl(e[2])-1,m=rl(e[3]),w=rl(e[4]),h=rl(e[5])-1;if(r)return V$(t,w,h)?z$(t,w,h):new Date(NaN);{const d=new Date(0);return!j$(t,g,m)||!U$(t,f)?new Date(NaN):(d.setUTCFullYear(t,g,Math.max(f,m)),d)}}function rl(n){return n?parseInt(n):1}function W$(n){const t=n.match(O$);if(!t)return NaN;const e=ad(t[1]),r=ad(t[2]),f=ad(t[3]);return q$(e,r,f)?e*gu+r*Ml+f*1e3:NaN}function ad(n){return n&&parseFloat(n.replace(",","."))||0}function B$(n){if(n==="Z")return 0;const t=n.match(N$);if(!t)return 0;const e=t[1]==="+"?-1:1,r=parseInt(t[2]),f=t[3]&&parseInt(t[3])||0;return K$(r,f)?e*(r*gu+f*Ml):NaN}function z$(n,t,e){const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=(t-1)*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const H$=[31,null,31,30,31,30,31,31,30,31,30,31];function Ay(n){return n%400===0||n%4===0&&n%100!==0}function j$(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(H$[t]||(Ay(n)?29:28))}function U$(n,t){return t>=1&&t<=(Ay(n)?366:365)}function V$(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function q$(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function K$(n,t){return t>=0&&t<=59}function G$(n,t,e){return E$(n,-t)}function Sy(n,t,e){const r=ky(),f=Z$(n,e.timeZone,e.locale??r.locale);return"formatToParts"in f?Y$(f,t):X$(f,t)}function Y$(n,t){const e=n.formatToParts(t);for(let r=e.length-1;r>=0;--r)if(e[r].type==="timeZoneName")return e[r].value}function X$(n,t){const e=n.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(e);return r?r[0].substr(1):""}function Z$(n,t,e){return new Intl.DateTimeFormat(e?[e.code,"en-US"]:void 0,{timeZone:t,timeZoneName:n})}function Q$(n,t){const e=rT(t);return"formatToParts"in e?eT(e,n):tT(e,n)}const J$={year:0,month:1,day:2,hour:3,minute:4,second:5};function eT(n,t){try{const e=n.formatToParts(t),r=[];for(let f=0;f<e.length;f++){const g=J$[e[f].type];g!==void 0&&(r[g]=parseInt(e[f].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function tT(n,t){const e=n.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const ld={},_y=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")),nT=_y==="06/25/2014, 00:00:00"||_y==="06/25/2014 00:00:00";function rT(n){return ld[n]||(ld[n]=nT?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"})),ld[n]}function $y(n,t,e,r,f,g,m){const w=new Date(0);return w.setUTCFullYear(n,t,e),w.setUTCHours(r,f,g,m),w}const Ty=36e5,iT=6e4,cd={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function ud(n,t,e){if(!n)return 0;let r=cd.timezoneZ.exec(n);if(r)return 0;let f,g;if(r=cd.timezoneHH.exec(n),r)return f=parseInt(r[1],10),My(f)?-(f*Ty):NaN;if(r=cd.timezoneHHMM.exec(n),r){f=parseInt(r[2],10);const m=parseInt(r[3],10);return My(f,m)?(g=Math.abs(f)*Ty+m*iT,r[1]==="+"?-g:g):NaN}if(aT(n)){t=new Date(t||Date.now());const m=e?t:oT(t),w=hd(m,n);return-(e?w:sT(t,w,n))}return NaN}function oT(n){return $y(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function hd(n,t){const e=Q$(n,t),r=$y(e[0],e[1]-1,e[2],e[3]%24,e[4],e[5],0).getTime();let f=n.getTime();const g=f%1e3;return f-=g>=0?g:1e3+g,r-f}function sT(n,t,e){let r=n.getTime()-t;const f=hd(new Date(r),e);if(t===f)return t;r-=f-t;const g=hd(new Date(r),e);return f===g?f:Math.max(f,g)}function My(n,t){return-23<=n&&n<=23&&(t==null||0<=t&&t<=59)}const Iy={};function aT(n){if(Iy[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),Iy[n]=!0,!0}catch{return!1}}const lT=60*1e3,cT={X:function(n,t,e){const r=dd(e.timeZone,n);if(r===0)return"Z";switch(t){case"X":return Ey(r);case"XXXX":case"XX":return ya(r);case"XXXXX":case"XXX":default:return ya(r,":")}},x:function(n,t,e){const r=dd(e.timeZone,n);switch(t){case"x":return Ey(r);case"xxxx":case"xx":return ya(r);case"xxxxx":case"xxx":default:return ya(r,":")}},O:function(n,t,e){const r=dd(e.timeZone,n);switch(t){case"O":case"OO":case"OOO":return"GMT"+uT(r,":");case"OOOO":default:return"GMT"+ya(r,":")}},z:function(n,t,e){switch(t){case"z":case"zz":case"zzz":return Sy("short",n,e);case"zzzz":default:return Sy("long",n,e)}}};function dd(n,t){const e=n?ud(n,t,!0)/lT:(t==null?void 0:t.getTimezoneOffset())??0;if(Number.isNaN(e))throw new RangeError("Invalid time zone specified: "+n);return e}function Cc(n,t){const e=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<t;)r="0"+r;return e+r}function ya(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Cc(Math.floor(r/60),2),g=Cc(Math.floor(r%60),2);return e+f+t+g}function Ey(n,t){return n%60===0?(n>0?"-":"+")+Cc(Math.abs(n)/60,2):ya(n,t)}function uT(n,t=""){const e=n>0?"-":"+",r=Math.abs(n),f=Math.floor(r/60),g=r%60;return g===0?e+String(f):e+String(f)+t+Cc(g,2)}function Ry(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 hT=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,pd=36e5,Ly=6e4,dT=2,jr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:hT};function Oy(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?dT: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 r=pT(n),{year:f,restDateString:g}=fT(r.date,e),m=gT(g,f);if(m===null||isNaN(m.getTime()))return new Date(NaN);if(m){const w=m.getTime();let h=0,d;if(r.time&&(h=mT(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||t.timeZone){if(d=ud(r.timeZone||t.timeZone,new Date(w+h)),isNaN(d))return new Date(NaN)}else d=Ry(new Date(w+h)),d=Ry(new Date(w+h+d));return new Date(w+h+d)}else return new Date(NaN)}function pT(n){const t={};let e=jr.dateTimePattern.exec(n),r;if(e?(t.date=e[1],r=e[3]):(e=jr.datePattern.exec(n),e?(t.date=e[1],r=e[2]):(t.date=null,r=n)),r){const f=jr.timeZone.exec(r);f?(t.time=r.replace(f[1],""),t.timeZone=f[1].trim()):t.time=r}return t}function fT(n,t){if(n){const e=jr.YYY[t],r=jr.YYYYY[t];let f=jr.YYYY.exec(n)||r.exec(n);if(f){const g=f[1];return{year:parseInt(g,10),restDateString:n.slice(g.length)}}if(f=jr.YY.exec(n)||e.exec(n),f){const g=f[1];return{year:parseInt(g,10)*100,restDateString:n.slice(g.length)}}}return{year:null}}function gT(n,t){if(t===null)return null;let e,r,f;if(!n||!n.length)return e=new Date(0),e.setUTCFullYear(t),e;let g=jr.MM.exec(n);if(g)return e=new Date(0),r=parseInt(g[1],10)-1,Fy(t,r)?(e.setUTCFullYear(t,r),e):new Date(NaN);if(g=jr.DDD.exec(n),g){e=new Date(0);const m=parseInt(g[1],10);return bT(t,m)?(e.setUTCFullYear(t,0,m),e):new Date(NaN)}if(g=jr.MMDD.exec(n),g){e=new Date(0),r=parseInt(g[1],10)-1;const m=parseInt(g[2],10);return Fy(t,r,m)?(e.setUTCFullYear(t,r,m),e):new Date(NaN)}if(g=jr.Www.exec(n),g)return f=parseInt(g[1],10)-1,Py(f)?Ny(t,f):new Date(NaN);if(g=jr.WwwD.exec(n),g){f=parseInt(g[1],10)-1;const m=parseInt(g[2],10)-1;return Py(f,m)?Ny(t,f,m):new Date(NaN)}return null}function mT(n){let t,e,r=jr.HH.exec(n);if(r)return t=parseFloat(r[1].replace(",",".")),fd(t)?t%24*pd:NaN;if(r=jr.HHMM.exec(n),r)return t=parseInt(r[1],10),e=parseFloat(r[2].replace(",",".")),fd(t,e)?t%24*pd+e*Ly:NaN;if(r=jr.HHMMSS.exec(n),r){t=parseInt(r[1],10),e=parseInt(r[2],10);const f=parseFloat(r[3].replace(",","."));return fd(t,e,f)?t%24*pd+e*Ly+f*1e3:NaN}return null}function Ny(n,t,e){t=t||0,e=e||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const f=r.getUTCDay()||7,g=t*7+e+1-f;return r.setUTCDate(r.getUTCDate()+g),r}const vT=[31,28,31,30,31,30,31,31,30,31,30,31],yT=[31,29,31,30,31,30,31,31,30,31,30,31];function Dy(n){return n%400===0||n%4===0&&n%100!==0}function Fy(n,t,e){if(t<0||t>11)return!1;if(e!=null){if(e<1)return!1;const r=Dy(n);if(r&&e>yT[t]||!r&&e>vT[t])return!1}return!0}function bT(n,t){if(t<1)return!1;const e=Dy(n);return!(e&&t>366||!e&&t>365)}function Py(n,t){return!(n<0||n>52||t!=null&&(t<0||t>6))}function fd(n,t,e){return!(n<0||n>=25||t!=null&&(t<0||t>=60)||e!=null&&(e<0||e>=60))}const wT=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function xT(n,t,e={}){t=String(t);const r=t.match(wT);if(r){const f=Oy(e.originalDate||n,e);t=r.reduce(function(g,m){if(m[0]==="'")return g;const w=g.indexOf(m),h=g[w-1]==="'",d=g.replace(m,"'"+cT[m[0]](f,m,e)+"'");return h?d.substring(0,w-1)+d.substring(w+1):d},t)}return ys(n,t,e)}function CT(n,t,e){n=Oy(n,e);const r=ud(t,n,!0),f=new Date(n.getTime()-r),g=new Date(0);return g.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),g.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),g}function kc(n,t,e,r){return r={...r,timeZone:t,originalDate:n},xT(CT(n,t,{timeZone:r.timeZone}),e,r)}const Ac="yyyy-MM-dd",Wy="HH:mm:ss.SSS",By="HH:mm:ss",Sc=`${Ac} ${Wy}`,zy=`${Ac} ${By}`,LD=sr("R",{methods:{parseDateTime(n,t){return n.includes(" ")&&(n=n.replace(" ","T")),t&&t==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,t){return ys(!t||t==="local"?G$(n,n.getTimezoneOffset()):n,Sc)},formatDateTime(n,t){return!t||t==="local"?ys(n,Sc):kc(n,t,Sc)},formatDateTimeHMS(n,t){return!t||t==="local"?ys(n,zy):kc(n,t,zy)},formatDate:function(n,t){return!t||t==="local"?ys(n,Ac):kc(n,this.timeZone,Ac)},formatTime:function(n,t,e=Wy){return!t||t==="local"?ys(n,e):kc(n,this.timeZone,e)},formatTimeHMS:function(n,t){return this.formatTime(n,t,By)},formatTimestamp(n,t){return this.formatDateTime(R$(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 kT=Object.defineProperty,AT=(n,t,e)=>t in n?kT(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Je=(n,t,e)=>AT(n,typeof t!="symbol"?t+"":t,e);function gd(n,t,e){const r=_n(n,e==null?void 0:e.in);return isNaN(t)?er((e==null?void 0:e.in)||n,NaN):(t&&r.setDate(r.getDate()+t),r)}function ST(n,t){const e=_n(n,void 0).getDay();return e===0?7:e}function _T(n,t){const e=$T(t)?new t(0):er(t,0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}function $T(n){var t;return typeof n=="function"&&((t=n.prototype)==null?void 0:t.constructor)===n}const TT=10;let Hy=class{constructor(){Je(this,"subPriority",0)}validate(t,e){return!0}},MT=class extends Hy{constructor(t,e,r,f,g){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=f,g&&(this.subPriority=g)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}};class IT extends Hy{constructor(t,e){super(),Je(this,"priority",TT),Je(this,"subPriority",-1),this.context=t||(r=>er(e,r))}set(t,e){return e.timestampIsSet?t:er(t,_T(t,this.context))}}class tn{run(t,e,r,f){const g=this.parse(t,e,r,f);return g?{setter:new MT(g.value,this.validate,this.set,this.priority,this.subPriority),rest:g.rest}:null}validate(t,e,r){return!0}}class ET extends tn{constructor(){super(...arguments),Je(this,"priority",140),Je(this,"incompatibleTokens",["R","u","t","T"])}parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});case"GGGG":default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}}const Gn={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}/},po={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 Yn(n,t){return n&&{value:t(n.value),rest:n.rest}}function Ln(n,t){const e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function fo(n,t){const e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};const r=e[1]==="+"?1:-1,f=e[2]?parseInt(e[2],10):0,g=e[3]?parseInt(e[3],10):0,m=e[5]?parseInt(e[5],10):0;return{value:r*(f*gu+g*Ml+m*kw),rest:t.slice(e[0].length)}}function jy(n){return Ln(Gn.anyDigitsSigned,n)}function Pn(n,t){switch(n){case 1:return Ln(Gn.singleDigit,t);case 2:return Ln(Gn.twoDigits,t);case 3:return Ln(Gn.threeDigits,t);case 4:return Ln(Gn.fourDigits,t);default:return Ln(new RegExp("^\\d{1,"+n+"}"),t)}}function Uy(n,t){switch(n){case 1:return Ln(Gn.singleDigitSigned,t);case 2:return Ln(Gn.twoDigitsSigned,t);case 3:return Ln(Gn.threeDigitsSigned,t);case 4:return Ln(Gn.fourDigitsSigned,t);default:return Ln(new RegExp("^-?\\d{1,"+n+"}"),t)}}function md(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 Vy(n,t){const e=t>0,r=e?t:1-t;let f;if(r<=50)f=n||100;else{const g=r+50,m=Math.trunc(g/100)*100,w=n>=g%100;f=n+m-(w?100:0)}return e?f:1-f}function qy(n){return n%400===0||n%4===0&&n%100!==0}let RT=class extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="yy"});switch(e){case"y":return Yn(Pn(4,t),f);case"yo":return Yn(r.ordinalNumber(t,{unit:"year"}),f);default:return Yn(Pn(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){const f=t.getFullYear();if(r.isTwoDigitYear){const m=Vy(r.year,f);return t.setFullYear(m,0,1),t.setHours(0,0,0,0),t}const g=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(g,0,1),t.setHours(0,0,0,0),t}};class LT extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,e,r){const f=g=>({year:g,isTwoDigitYear:e==="YY"});switch(e){case"Y":return Yn(Pn(4,t),f);case"Yo":return Yn(r.ordinalNumber(t,{unit:"year"}),f);default:return Yn(Pn(e.length,t),f)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,f){const g=vu(t,f);if(r.isTwoDigitYear){const w=Vy(r.year,g);return t.setFullYear(w,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,f)}const m=!("era"in e)||e.era===1?r.year:1-r.year;return t.setFullYear(m,0,f.firstWeekContainsDate),t.setHours(0,0,0,0),Ko(t,f)}}class OT extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,e){return Uy(e==="R"?4:e.length,t)}set(t,e,r){const f=er(t,0);return f.setFullYear(r,0,4),f.setHours(0,0,0,0),Js(f)}}let NT=class extends tn{constructor(){super(...arguments),Je(this,"priority",130),Je(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,e){return Uy(e==="u"?4:e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}};class DT extends tn{constructor(){super(...arguments),Je(this,"priority",120),Je(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"Q":case"QQ":return Pn(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}class FT extends tn{constructor(){super(...arguments),Je(this,"priority",120),Je(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"q":case"qq":return Pn(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}}let PT=class extends tn{constructor(){super(...arguments),Je(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Je(this,"priority",110)}parse(t,e,r){const f=g=>g-1;switch(e){case"M":return Yn(Ln(Gn.month,t),f);case"MM":return Yn(Pn(2,t),f);case"Mo":return Yn(r.ordinalNumber(t,{unit:"month"}),f);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}},WT=class extends tn{constructor(){super(...arguments),Je(this,"priority",110),Je(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,e,r){const f=g=>g-1;switch(e){case"L":return Yn(Ln(Gn.month,t),f);case"LL":return Yn(Pn(2,t),f);case"Lo":return Yn(r.ordinalNumber(t,{unit:"month"}),f);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}};function BT(n,t,e){const r=_n(n,e==null?void 0:e.in),f=Yp(r,e)-t;return r.setDate(r.getDate()-f*7),_n(r,e==null?void 0:e.in)}let zT=class extends tn{constructor(){super(...arguments),Je(this,"priority",100),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,e,r){switch(e){case"w":return Ln(Gn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,f){return Ko(BT(t,r,f),f)}};function HT(n,t,e){const r=_n(n,void 0),f=Gp(r)-t;return r.setDate(r.getDate()-f*7),r}class jT extends tn{constructor(){super(...arguments),Je(this,"priority",100),Je(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,e,r){switch(e){case"I":return Ln(Gn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return Js(HT(t,r))}}const UT=[31,28,31,30,31,30,31,31,30,31,30,31],VT=[31,29,31,30,31,30,31,31,30,31,30,31];class qT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"subPriority",1),Je(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"d":return Ln(Gn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Pn(e.length,t)}}validate(t,e){const r=t.getFullYear(),f=qy(r),g=t.getMonth();return f?e>=1&&e<=VT[g]:e>=1&&e<=UT[g]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}}let KT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"subpriority",1),Je(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,e,r){switch(e){case"D":case"DD":return Ln(Gn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Pn(e.length,t)}}validate(t,e){const r=t.getFullYear();return qy(r)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}};function vd(n,t,e){var r,f,g,m;const w=Qs(),h=(e==null?void 0:e.weekStartsOn)??((f=(r=e==null?void 0:e.locale)==null?void 0:r.options)==null?void 0:f.weekStartsOn)??w.weekStartsOn??((m=(g=w.locale)==null?void 0:g.options)==null?void 0:m.weekStartsOn)??0,d=_n(n,e==null?void 0:e.in),a=d.getDay(),l=(t%7+7)%7,u=7-h,c=t<0||t>6?t-(a+u)%7:(l+u)%7-(a+u)%7;return gd(d,c,e)}class GT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=vd(t,r,f),t.setHours(0,0,0,0),t}}class YT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"e":case"ee":return Yn(Pn(e.length,t),g);case"eo":return Yn(r.ordinalNumber(t,{unit:"day"}),g);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=vd(t,r,f),t.setHours(0,0,0,0),t}}class XT extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,e,r,f){const g=m=>{const w=Math.floor((m-1)/7)*7;return(m+f.weekStartsOn+6)%7+w};switch(e){case"c":case"cc":return Yn(Pn(e.length,t),g);case"co":return Yn(r.ordinalNumber(t,{unit:"day"}),g);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,f){return t=vd(t,r,f),t.setHours(0,0,0,0),t}}function ZT(n,t,e){const r=_n(n,void 0),f=ST(r),g=t-f;return gd(r,g,e)}let QT=class extends tn{constructor(){super(...arguments),Je(this,"priority",90),Je(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,e,r){const f=g=>g===0?7:g;switch(e){case"i":case"ii":return Pn(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return Yn(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiii":return Yn(r.day(t,{width:"narrow",context:"formatting"}),f);case"iiiiii":return Yn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f);case"iiii":default:return Yn(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),f)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return t=ZT(t,r),t.setHours(0,0,0,0),t}};class JT extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(md(r),0,0,0),t}}class eM extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(md(r),0,0,0),t}}let tM=class extends tn{constructor(){super(...arguments),Je(this,"priority",80),Je(this,"incompatibleTokens",["a","b","t","T"])}parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(md(r),0,0,0),t}};class nM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,e,r){switch(e){case"h":return Ln(Gn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){const f=t.getHours()>=12;return f&&r<12?t.setHours(r+12,0,0,0):!f&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}}class rM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,e,r){switch(e){case"H":return Ln(Gn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}}class iM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,e,r){switch(e){case"K":return Ln(Gn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}}class oM extends tn{constructor(){super(...arguments),Je(this,"priority",70),Je(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,e,r){switch(e){case"k":return Ln(Gn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Pn(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){const f=r<=24?r%24:r;return t.setHours(f,0,0,0),t}}class sM extends tn{constructor(){super(...arguments),Je(this,"priority",60),Je(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"m":return Ln(Gn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}}class aM extends tn{constructor(){super(...arguments),Je(this,"priority",50),Je(this,"incompatibleTokens",["t","T"])}parse(t,e,r){switch(e){case"s":return Ln(Gn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Pn(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}}class lM extends tn{constructor(){super(...arguments),Je(this,"priority",30),Je(this,"incompatibleTokens",["t","T"])}parse(t,e){const r=f=>Math.trunc(f*Math.pow(10,-e.length+3));return Yn(Pn(e.length,t),r)}set(t,e,r){return t.setMilliseconds(r),t}}class cM extends tn{constructor(){super(...arguments),Je(this,"priority",10),Je(this,"incompatibleTokens",["t","T","x"])}parse(t,e){switch(e){case"X":return fo(po.basicOptionalMinutes,t);case"XX":return fo(po.basic,t);case"XXXX":return fo(po.basicOptionalSeconds,t);case"XXXXX":return fo(po.extendedOptionalSeconds,t);case"XXX":default:return fo(po.extended,t)}}set(t,e,r){return e.timestampIsSet?t:er(t,t.getTime()-Il(t)-r)}}class uM extends tn{constructor(){super(...arguments),Je(this,"priority",10),Je(this,"incompatibleTokens",["t","T","X"])}parse(t,e){switch(e){case"x":return fo(po.basicOptionalMinutes,t);case"xx":return fo(po.basic,t);case"xxxx":return fo(po.basicOptionalSeconds,t);case"xxxxx":return fo(po.extendedOptionalSeconds,t);case"xxx":default:return fo(po.extended,t)}}set(t,e,r){return e.timestampIsSet?t:er(t,t.getTime()-Il(t)-r)}}class hM extends tn{constructor(){super(...arguments),Je(this,"priority",40),Je(this,"incompatibleTokens","*")}parse(t){return jy(t)}set(t,e,r){return[er(t,r*1e3),{timestampIsSet:!0}]}}class dM extends tn{constructor(){super(...arguments),Je(this,"priority",20),Je(this,"incompatibleTokens","*")}parse(t){return jy(t)}set(t,e,r){return[er(t,r),{timestampIsSet:!0}]}}const pM={G:new ET,y:new RT,Y:new LT,R:new OT,u:new NT,Q:new DT,q:new FT,M:new PT,L:new WT,w:new zT,I:new jT,d:new qT,D:new KT,E:new GT,e:new YT,c:new XT,i:new QT,a:new JT,b:new eM,B:new tM,h:new nM,H:new rM,K:new iM,k:new oM,m:new sM,s:new aM,S:new lM,X:new cM,x:new uM,t:new hM,T:new dM},fM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mM=/^'([^]*?)'?$/,vM=/''/g,yM=/\S/,bM=/[a-zA-Z]/;function wM(n,t,e,r){var f,g,m,w;const h=()=>er(e,NaN),d=ky(),a=d.locale??Kp,l=d.firstWeekContainsDate??((g=(f=d.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,u=d.weekStartsOn??((w=(m=d.locale)==null?void 0:m.options)==null?void 0:w.weekStartsOn)??0;if(!t)return n?h():_n(e,void 0);const c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},i=[new IT(void 0,e)],s=t.match(gM).map(_=>{const k=_[0];if(k in yu){const C=yu[k];return C(_,a.formatLong)}return _}).join("").match(fM),p=[];for(let _ of s){nf(_)&&bu(_,t,n),tf(_)&&bu(_,t,n);const k=_[0],C=pM[k];if(C){const{incompatibleTokens:L}=C;if(Array.isArray(L)){const E=p.find(I=>L.includes(I.token)||I.token===k);if(E)throw new RangeError(`The format string mustn't contain \`${E.fullToken}\` and \`${_}\` at the same time`)}else if(C.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);p.push({token:k,fullToken:_});const D=C.run(n,_,a.match,c);if(!D)return h();i.push(D.setter),n=D.rest}else{if(k.match(bM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(_==="''"?_="'":k==="'"&&(_=xM(_)),n.indexOf(_)===0)n=n.slice(_.length);else return h()}}if(n.length>0&&yM.test(n))return h();const b=i.map(_=>_.priority).sort((_,k)=>k-_).filter((_,k,C)=>C.indexOf(_)===k).map(_=>i.filter(k=>k.priority===_).sort((k,C)=>C.subPriority-k.subPriority)).map(_=>_[0]);let x=_n(e,void 0);if(isNaN(+x))return h();const R={};for(const _ of b){if(!_.validate(x,c))return h();const k=_.set(x,R,c);Array.isArray(k)?(x=k[0],Object.assign(R,k[1])):x=k}return x}function xM(n){return n.match(mM)[1].replace(vM,"'")}const CM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAAgCAYAAAALxXRVAAAAxHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabVDbDcMwCPxnio5gc8TB4zhtKnWDjl8IJEranmReh84Are/Xk24OrkIyzdp6a8UgXToPC7QExmZrkc1uWJOy/FIn3gm2EswjUm3Zv9frIRBuWDSdhPSexHIluqS+fgnlz/CJPH6kUE8hcBA1BUasVVrX+bzCcuyW0HjkRvQ69k8+2/Uek/0D5hUVxSwgMQD8gTAsaGYBb6zmhxFeEWiK2UH+3WkHfQAmGFlDwtBoyQAAAYVpQ0NQSUNDIHByb2ZpbGUAAHicfZE9SMNQFIVPW7UiFRE7iIhkqE7WQUUcaxWKUCHUCq06mLz0D5o0JCkujoJrwcGfxaqDi7OuDq6CIPgD4uripOgiJd6XFFrEeOHxPs675/DefYC/Xmaq2REDVM0yUom4kMmuCsFXdGEE/fBhQmKmPieKSXjW1z31Ud1FeZZ335/Vq+RMBvgE4hjTDYt4g3hm09I57xOHWVFSiM+Jxw26IPEj12WX3zgXHPbzzLCRTs0Th4mFQhvLbcyKhko8TRxRVI3y/RmXFc5bnNVylTXvyV8Yymkry1ynNYwEFrEEEQJkVFFCGRaitGukmEjRedzDP+T4RXLJ5CqBkWMBFaiQHD/4H/yerZmfmnSTQnGg88W2P0aB4C7QqNn297FtN06AwDNwpbX8lTow+0l6raVFjoC+beDiuqXJe8DlDjD4pEuG5EgBWv58Hng/o2/KAgO3QM+aO7fmOU4fgDTNKnkDHBwCYwXKXvd4d3f73P7tac7vB5UicrQ0WLbfAAANemlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6R0lNUD0iaHR0cDovL3d3dy5naW1wLm9yZy94bXAvIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgIHhtcE1NOkRvY3VtZW50SUQ9ImdpbXA6ZG9jaWQ6Z2ltcDozYjNlMzQ0NC03YTU4LTQxYjItYTZjYi0wMzljNWI3NjRmN2IiCiAgIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MGUxZjUyNzQtNTMyNC00MzE5LWE3MjYtOGQyNjJlNjI1Y2YwIgogICB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZDkzZGI3ODgtMmQwNi00NjdhLWI2OGItZWJlNmJiNGU1ODQ2IgogICBHSU1QOkFQST0iMi4wIgogICBHSU1QOlBsYXRmb3JtPSJNYWMgT1MiCiAgIEdJTVA6VGltZVN0YW1wPSIxNjg4MTUzMjA5MTAxNDUxIgogICBHSU1QOlZlcnNpb249IjIuMTAuMzQiCiAgIGRjOkZvcm1hdD0iaW1hZ2UvcG5nIgogICB0aWZmOk9yaWVudGF0aW9uPSIxIgogICB4bXA6Q3JlYXRvclRvb2w9IkdJTVAgMi4xMCIKICAgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMzowNjozMFQxMzoyNjo0OC0wNjowMCIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjM6MDY6MzBUMTM6MjY6NDgtMDY6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJzYXZlZCIKICAgICAgc3RFdnQ6Y2hhbmdlZD0iLyIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNWQ3MTYyZi0xYWQ1LTQwNWUtODAxOS03NmExMTI4MDI1YmYiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkdpbXAgMi4xMCAoTWFjIE9TKSIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMy0wNi0zMFQxMzoyNjo0OS0wNjowMCIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5gv8dKAAAABmJLR0QA9QAHANj00CgxAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wYeExoxB4CzXgAAB65JREFUeNrtnF9sFNcVh78z6z8kEwgPTUVxTZqYh2lVbAKVKleuiuEJkGzIAzFSpEQukaoqQUUhiUiLSkRD2hQ1FYmqqnEtUqUK7UPBVozUBzBpUHkproGXrVqXAoKgKg/EZKFre+f0YcftFs967/zz7rrze5y999yd2fn2d8+9ZwZSpUqVKlWqVKmMpb9vcvT9zB90xF6RXo1UYWWllyAcfEzPjKL6ddy7oymEqcJKTBvmmrN7gR8bNt9v550fLG74KIUui3Vft2zN3Ywaf+bm1zTJ79+w4o8Stu/OO7ToNNsUtgJtqqwEEOEGMCEwIo2ceO9+rifx3TvGtdUt0CuwBaVNxRtfuYEwoXDSyjB0Ya1cW1QABoQvEoTa2XkG1W8kc7bygZw7tyFm+GKFsBYB3HmHFneKAyr0oxVmTYIryqDVxIG4QHxsTFcWXF5R2GV4Uw9kLL7/53Vyo+6noCHhAziYa85+L3CvTOZAYmcbIXYF+ACcxTgd7ZukpzBFVmFXRfgAFEthV2GKbN8kPVHHbx/TnhnXG9/0t4JdMy7Z9jHtqWsAI8AXGkI5e/YMIh8k4n5nz55JCL5FCWHfJ+x2lePAAyG6P+Aqx/s+YXfY8dec12fVZQhYGqL7UnUZWnNen61LAGOAL7wTJuGCIWMGgG9RQdg3SY8Lbxi53jxu6MIbYZywfUx7UN6MnrTzZi07oZSBbx9w6J7DN4BXgU7gyTLx3gXOAd+FYoJcopftvPNaVXLBkLlfCPgi54S1kAPuvENLYYpsSOfz06eZJhzTnPCxMV0545It43y3LTgsGYaXN/E3gFtTrNYCPS7sLdenwcKJIye8fPIpe3Sy90WBXkXbihDJhMJQ97Kh1x/Z8k4uEoBlnO8ysAX4C7AK+Caw3we+Q16bNmAUaAm7MKNdXRuYmRmN565r6A46/YwIX2gIawHAJ27xdpCcy3Rh5DfLecbI/f6kvuOLcFoyPF1ulbNjXFu1wFFVNvqNf/Er8kyUcxj87e82UtBB4OEyTa6Qkf7+HY+fjgKg3w1wyIPHzTVnLe9f5vkSCI8D+4C/em3EA/anwOrSQHbeMV6Fi8UFQ7hfTPCFgrDaAO68Q0thmquRpp7+d5qbaWRVJRfsGNdWd4arfvBdXC+bjAA+r6f8ILQaWBV2i8KD75RZuiObTCE0vciPAl/INWfFzjsuMAn8HPgOcB14ZRY+r/3ngM97brngeVuUGDHDV3c5oU6zLXb4vHxQp9lWqZlboNdvCikZnjZmvdj2tmFso2mn53xmKujg5ZNP2XEC2Af0z86v7byjwEcehF3ApVn4cs3Z5cCPvM+aIv1pRl0RDbjymQB8dQeht8letdhSnDnde5MeDuJcF9bKNQsOm8Q20ehk74vzTDv99LDXJzYA8RZWDuaas0tKIJwGrpbA91ngW/Ms0iysCwbomyB89QZhW1Vj69w2kmE48H+vXx8Nd25CcOc07RN0qrEb+FmuOdvkQeiWwLfEc8nX4vzFQrtg0H2/6cIvEoTvvxDqv16taQfUOavXCxp7trysVLOrnUHk18cvtplza1tSfcLM9RuBh8os6Ewn8suFccGgfWTJDiCb6N0t8uE/rCd3kypVSADfBfbYeee653rirYpi5527wCDF1dB479ugLhii6kW25m5i3dedGIRF+DYH3SdaaHmF1VWLLTq3za2p/11JN5FfH7/YZtNJmUiqTxAA9wHP23nn45JjnwEe9bYdAG4BR5OAMJCjhcwbE4OwTuDzNFHV2DK3jRaCV9L49pFw56YwlFQfUwB/CPzazjv/nD3g5Xw/AY4Aa7wtCrXzzk3gV8DmqrhghJrPRCCsL/gQGKlmbIWT9x5zYW/HuLaajtMxrq1eVUzF2CbqXjb0OnAlQJcrXp/YAPzQzjvXSuB7CHib4mrnZor7gF8tccKPKO4FLrwLxrB3GBuEdQYfgDRyAsFNgD5XGjlR8YbM+DrHUi1wNID7HcWnJK1M7Ip6ZMs7OTLSb36fSr/pb+4H4As+xwZzzdkvefDZFCtgSrcatgEvAV/2IFwNHPSJsz9RF4zofrFCWIfwAbx3P9dFGYydP2XQpBb0wlq5JjAwByplY/t5PTWfE3aMa2u5KhiBgSgP6vbvePw0GdlUwQmvBKmC8b7XXM1TjP1t4IuU32o4Afyd4sZ9pGLssv9u89WIhqj5rDjeiL0C9+4o4CwEfGkx9v95MXYJhHE9jgQxv6LCt0Y04tPusUEY0flq5Yn4vkl6XOV45LI0wbWE7ceWBdtMbx/THu9ZwOjua9F7cZ0MU4Mqe3HtvHO4zHS0qvCVzfMSfJLeeDpap9NOPx1bxrAFeyLlg4JrwZ6g8AFcXCfDCM/FkHs+V6vwVVyEiQHCRF7ONCcXjDH3Cw3hIoLvPxA+yBFL2A58GmbaaQnbjz3IkbDjX1ovb4lFLz6F1Qa6LRa9l9bLW7V8jStOLyJAmOyb0UodL8n3yJhAuAjhK3XCTBOOwICRGwquwECmCSeM8/k5YYPljW+eVw00WDi17HwVc8CIOeGCvJZQOzvPACSV+xnlhDHDl76WsLwW42sJ61ra1bVBu7o2VGXsEXuFvp/5pelzX6lSpUqVKlWqVKlSpUpVA/o34/Ptc3zCsREAAAAASUVORK5CYII=",kM={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number,default:1}},computed:{icons:function(){return CM},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=IM.indexOf(Ky[this.status]),t=1-(n-1)*.05,e=224*this.scaleFactor*t,r=32*this.scaleFactor*t,f=32*this.scaleFactor*t;return[`background-image: url(${this.icons});`,`background-position-x: -${n*f}px;`,`background-size: ${e}px ${r}px;`,`height: ${f}px;`,`width: ${f}px;`,`padding-top: ${n-1}px;`].join("")}}};function AM(n,t,e,r,f,g){return Rn(),ri("div",{style:Ra(g.iconStyle)},null,4)}const SM=qo(kM,[["render",AM]]),_M={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function $M(n,t,e,r,f,g){const m=xt("rux-icon");return Rn(),lo(m,{size:e.size,icon:e.icon,style:Ra(g.colorStyle)},null,8,["size","icon","style"])}const TM=qo(_M,[["render",$M],["__scopeId","data-v-5611d859"]]),Ky={fatal:"critical",FATAL:"critical",error:"critical",ERROR:"critical",warn:"caution",WARN:"caution",info:"normal",INFO:"normal",debug:"off",DEBUG:"off",critical:"critical",CRITICAL:"critical",serious:"serious",SERIOUS:"serious",caution:"caution",CAUTION:"caution",normal:"normal",NORMAL:"normal",standby:"standby",STANDBY:"standby",off:"off",OFF:"OFF"},yd={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},MM=function(n){const t="#000000",e="#ffffff",r=yd[Ky[n]];if(r){const f=+`0x${r.slice(1,3)}`,g=+`0x${r.slice(3,5)}`,m=+`0x${r.slice(5,7)}`;if((f*299+g*587+m*114)/1e3>128)return t}return e},IM=Object.keys(yd),EM={astro:{component:n=>Xs(TM,{...n})},"astro-status":{component:n=>Xs(SM,{...n,status:n.icon})}},RM={extras:{component:n=>Xs(Cw,{...n})}},OD=sr("p",{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 As().load_config(this.configKey,n).then(r=>{r?(this.$notify.normal({title:"Loading configuration",body:n}),e&&e(JSON.parse(r)),t||this.$route.fullPath.includes(n)||this.$router.push({query:{config:n}})):this.$notify.caution({title:"Unknown configuration",body:n})}).catch(r=>{r&&this.$notify.serious({title:`Error opening configuration: ${n}`,body:r})})},saveConfigBase:function(n,t){new As().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})}}}),LM={props:{configKey:{type:String,default:null},modelValue:Boolean},emits:["update:modelValue","warning","success"],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 As().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 As().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},OM={class:"mt-4 pa-3"},NM=["textContent"];function DM(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-text-field"),d=xt("v-row"),a=xt("v-btn"),l=xt("v-data-table"),u=xt("v-card-text"),c=xt("v-card-actions"),i=xt("v-card"),s=xt("v-dialog");return Rn(),lo(s,{modelValue:g.show,"onUpdate:modelValue":t[4]||(t[4]=p=>g.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:Rt(()=>[ht(i,null,{default:Rt(()=>[mr("form",{onSubmit:t[3]||(t[3]=Zs((...p)=>g.success&&g.success(...p),["prevent"]))},[ht(w,{height:"24"},{default:Rt(()=>[ht(m),t[5]||(t[5]=mr("span",null,"Open Configuration",-1)),ht(m)]),_:1}),ht(u,null,{default:Rt(()=>[mr("div",OM,[ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),label:"Search",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}),ht(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,b)=>g.selectRow(b))},{"item.actions":Rt(({item:p})=>[ht(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ht(d,{dense:""},{default:Rt(()=>[$l(mr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,NM),[[Tl,g.error]])]),_:1})])]),_:1}),ht(c,{class:"px-2"},{default:Rt(()=>[ht(m),ht(a,{variant:"outlined","data-test":"open-config-cancel-btn",onClick:g.cancel},{default:Rt(()=>[...t[6]||(t[6]=[Rr(" Cancel ",-1)])]),_:1},8,["onClick"]),ht(a,{variant:"flat",type:"submit","data-test":"open-config-submit-btn",disabled:!!g.error,onClick:Zs(g.success,["prevent"])},{default:Rt(()=>[...t[7]||(t[7]=[Rr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const ND=sr("g",qo(LM,[["render",DM]])),FM={props:{configKey:{type:String,default:null},modelValue:Boolean},emits:["update:modelValue","warning","success"],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)}}},watch:{selectedItem:function(n){n&&(this.configName=n.config)}},mounted(){let n=-1;new As().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 As().delete_config(this.configKey,n.config)}).catch(t=>{t!==!0&&this.$emit("warning",`Failed to delete config ${n.config} Error: ${t}`)})}}},PM={class:"mt-4 pa-3"},WM=["textContent"];function BM(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-text-field"),d=xt("v-row"),a=xt("v-btn"),l=xt("v-data-table"),u=xt("v-card-text"),c=xt("v-card-actions"),i=xt("v-card"),s=xt("v-dialog");return Rn(),lo(s,{modelValue:g.show,"onUpdate:modelValue":t[5]||(t[5]=p=>g.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:Rt(()=>[ht(i,null,{default:Rt(()=>[mr("form",{onSubmit:t[4]||(t[4]=Zs((...p)=>g.success&&g.success(...p),["prevent"]))},[ht(w,{height:"24"},{default:Rt(()=>[ht(m),t[6]||(t[6]=mr("span",null,"Save Configuration",-1)),ht(m)]),_:1}),ht(u,null,{default:Rt(()=>[mr("div",PM,[ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.search,"onUpdate:modelValue":t[0]||(t[0]=p=>f.search=p),label:"search",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}),ht(l,{modelValue:f.selectedRows,"onUpdate:modelValue":t[1]||(t[1]=p=>f.selectedRows=p),"show-select":"","select-strategy":"single","item-value":"configId",search:f.search,headers:f.headers,items:f.configs,"items-per-page":5,"items-per-page-options":[5],"onClick:row":t[2]||(t[2]=(p,b)=>g.selectRow(b))},{"item.actions":Rt(({item:p})=>[ht(a,{class:"mt-1",icon:"mdi-delete",variant:"text","data-test":"item-delete",onClick:b=>g.deleteConfig(p)},null,8,["onClick"])]),_:1},8,["modelValue","search","headers","items"]),ht(d,{dense:""},{default:Rt(()=>[ht(h,{modelValue:f.configName,"onUpdate:modelValue":t[3]||(t[3]=p=>f.configName=p),"hide-details":"",autofocus:"",disabled:!!g.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},null,8,["modelValue","disabled"])]),_:1}),ht(d,{dense:""},{default:Rt(()=>[$l(mr("span",{class:"ma-2 text-red",textContent:ii(g.error)},null,8,WM),[[Tl,g.error]])]),_:1})])]),_:1}),ht(c,{class:"px-2"},{default:Rt(()=>[ht(m),ht(a,{variant:"outlined",onClick:g.cancel},{default:Rt(()=>[...t[7]||(t[7]=[Rr(" Cancel ",-1)])]),_:1},8,["onClick"]),ht(a,{variant:"flat",type:"submit","data-test":"save-config-submit-btn",disabled:!!g.error,onClick:Zs(g.success,["prevent"])},{default:Rt(()=>[...t[8]||(t[8]=[Rr(" Ok ",-1)])]),_:1},8,["disabled","onClick"])]),_:1})],32)]),_:1})]),_:1},8,["modelValue","onKeydown"])}const DD=sr("a",qo(FM,[["render",BM]])),zM=50,HM=2e3,Gy="single-spa:app-change",jM={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(Gy,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},HM)},unmounted(){window.removeEventListener(Gy,this.handleAppChange),this.pollInterval&&clearInterval(this.pollInterval)},methods:{handleAppChange:function(n){this.show=!n.detail.appsByNewStatus.MOUNTED,this.hideSpinner=!0},pollForMountedApps:function(){this.pollInterval=setInterval(()=>{this.appsMounted=pu().length>0,pu().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},zM)}}},UM={class:"mx-1"},VM={key:1,class:"d-flex justify-center align-center"};function qM(n,t,e,r,f,g){const m=xt("v-card-title"),w=xt("v-card-text"),h=xt("v-card"),d=xt("v-progress-circular");return Rn(),ri(Sl,null,[f.show?(Rn(),lo(h,{key:0},{default:Rt(()=>[ht(m,null,{default:Rt(()=>[...t[0]||(t[0]=[Rr(" 404 Not Found ",-1)])]),_:1}),ht(w,{class:"d-flex align-center mt-3"},{default:Rt(()=>[t[1]||(t[1]=Rr(" The requested URL ",-1)),mr("code",UM,ii(n.$route.fullPath),1),t[2]||(t[2]=Rr(" was not routable. ",-1)),t[3]||(t[3]=mr("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):So("",!0),g.showSpinner?(Rn(),ri("div",VM,[ht(d,{indeterminate:""})])):So("",!0)],64)}const Yy=[{path:"/:target?/:packet?/:item?/",name:"TlmGrapher",component:()=>rt(()=>nt.import("./TlmGrapher-fbeac690834023a4dc7d.js"),void 0)},{path:"/:pathMatch(.*)*",name:"NotFound",component:qo(jM,[["render",qM]])}];Yy.forEach(Bp);const KM=Np({history:Dp(),routes:Yy});/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Xy,setPrototypeOf:Zy,isFrozen:GM,getPrototypeOf:YM,getOwnPropertyDescriptor:XM}=Object;let{freeze:Ur,seal:Di,create:bd}=Object,{apply:wd,construct:xd}=typeof Reflect<"u"&&Reflect;Ur||(Ur=function(n){return n}),Di||(Di=function(n){return n}),wd||(wd=function(n,t){for(var e=arguments.length,r=new Array(e>2?e-2:0),f=2;f<e;f++)r[f-2]=arguments[f];return n.apply(t,r)}),xd||(xd=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new n(...e)});const _c=qr(Array.prototype.forEach),ZM=qr(Array.prototype.lastIndexOf),Qy=qr(Array.prototype.pop),il=qr(Array.prototype.push),QM=qr(Array.prototype.splice),$c=qr(String.prototype.toLowerCase),Cd=qr(String.prototype.toString),kd=qr(String.prototype.match),ol=qr(String.prototype.replace),JM=qr(String.prototype.indexOf),eI=qr(String.prototype.trim),eo=qr(Object.prototype.hasOwnProperty),Vr=qr(RegExp.prototype.test),sl=tI(TypeError);function qr(n){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,r=new Array(e>1?e-1:0),f=1;f<e;f++)r[f-1]=arguments[f];return wd(n,t,r)}}function tI(n){return function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return xd(n,e)}}function Ft(n,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$c;Zy&&Zy(n,null);let r=t.length;for(;r--;){let f=t[r];if(typeof f=="string"){const g=e(f);g!==f&&(GM(t)||(t[r]=g),f=g)}n[f]=!0}return n}function nI(n){for(let t=0;t<n.length;t++)eo(n,t)||(n[t]=null);return n}function go(n){const t=bd(null);for(const[e,r]of Xy(n))eo(n,e)&&(Array.isArray(r)?t[e]=nI(r):r&&typeof r=="object"&&r.constructor===Object?t[e]=go(r):t[e]=r);return t}function al(n,t){for(;n!==null;){const r=XM(n,t);if(r){if(r.get)return qr(r.get);if(typeof r.value=="function")return qr(r.value)}n=YM(n)}function e(){return null}return e}const Jy=Ur(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ad=Ur(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Sd=Ur(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rI=Ur(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_d=Ur(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),iI=Ur(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),eb=Ur(["#text"]),tb=Ur(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),$d=Ur(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nb=Ur(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tc=Ur(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oI=Di(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sI=Di(/<%[\w\W]*|[\w\W]*%>/gm),aI=Di(/\$\{[\w\W]*/gm),lI=Di(/^data-[\-\w.\u00B7-\uFFFF]+$/),cI=Di(/^aria-[\-\w]+$/),rb=Di(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uI=Di(/^(?:\w+script|data):/i),hI=Di(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ib=Di(/^html$/i),dI=Di(/^[a-z][.\w]*(-[.\w]+)+$/i);var ob=Object.freeze({__proto__:null,ARIA_ATTR:cI,ATTR_WHITESPACE:hI,CUSTOM_ELEMENT:dI,DATA_ATTR:lI,DOCTYPE_NAME:ib,ERB_EXPR:sI,IS_ALLOWED_URI:rb,IS_SCRIPT_OR_DATA:uI,MUSTACHE_EXPR:oI,TMPLIT_EXPR:aI});const ll={element:1,text:3,progressingInstruction:7,comment:8,document:9},pI=function(){return typeof window>"u"?null:window},fI=function(n,t){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let e=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(e=t.getAttribute(r));const f="dompurify"+(e?"#"+e:"");try{return n.createPolicy(f,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},sb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ab(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pI();const t=ce=>ab(ce);if(t.version="3.3.1",t.removed=[],!n||!n.document||n.document.nodeType!==ll.document||!n.Element)return t.isSupported=!1,t;let{document:e}=n;const r=e,f=r.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:w,Element:h,NodeFilter:d,NamedNodeMap:a=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:c}=n,i=h.prototype,s=al(i,"cloneNode"),p=al(i,"remove"),b=al(i,"nextSibling"),x=al(i,"childNodes"),R=al(i,"parentNode");if(typeof m=="function"){const ce=e.createElement("template");ce.content&&ce.content.ownerDocument&&(e=ce.content.ownerDocument)}let _,k="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:E}=e,{importNode:I}=r;let z=sb();t.isSupported=typeof Xy=="function"&&typeof R=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:O,TMPLIT_EXPR:$,DATA_ATTR:A,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:K}=ob;let{IS_ALLOWED_URI:Q}=ob,J=null;const he=Ft({},[...Jy,...Ad,...Sd,..._d,...eb]);let ne=null;const le=Ft({},[...tb,...$d,...nb,...Tc]);let se=Object.seal(bd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,me=null;const _e=Object.seal(bd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Te=!0,Me=!0,Xe=!1,Ke=!0,at=!1,et=!0,lt=!1,Xt=!1,xn=!1,Wt=!1,vr=!1,un=!1,On=!0,Xn=!1;const Tr="user-content-";let mt=!0,je=!1,Lt={},Ht=null;const $n=Ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let yr=null;const ur=Ft({},["audio","video","img","source","image","track"]);let gn=null;const Wn=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Gt="http://www.w3.org/2000/svg",ln="http://www.w3.org/1999/xhtml";let Dr=ln,Kr=!1,Gr=null;const Ai=Ft({},[Nn,Gt,ln],Cd);let ci=Ft({},["mi","mo","mn","ms","mtext"]),Bn=Ft({},["annotation-xml"]);const to=Ft({},["title","style","font","a","script"]);let ui=null;const Os=["application/xhtml+xml","text/html"],Yr="text/html";let Cn=null,hi=null;const Qo=e.createElement("form"),di=function(ce){return ce instanceof RegExp||ce instanceof Function},kn=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hi&&hi===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=go(ce),ui=Os.indexOf(ce.PARSER_MEDIA_TYPE)===-1?Yr:ce.PARSER_MEDIA_TYPE,Cn=ui==="application/xhtml+xml"?Cd:$c,J=eo(ce,"ALLOWED_TAGS")?Ft({},ce.ALLOWED_TAGS,Cn):he,ne=eo(ce,"ALLOWED_ATTR")?Ft({},ce.ALLOWED_ATTR,Cn):le,Gr=eo(ce,"ALLOWED_NAMESPACES")?Ft({},ce.ALLOWED_NAMESPACES,Cd):Ai,gn=eo(ce,"ADD_URI_SAFE_ATTR")?Ft(go(Wn),ce.ADD_URI_SAFE_ATTR,Cn):Wn,yr=eo(ce,"ADD_DATA_URI_TAGS")?Ft(go(ur),ce.ADD_DATA_URI_TAGS,Cn):ur,Ht=eo(ce,"FORBID_CONTENTS")?Ft({},ce.FORBID_CONTENTS,Cn):$n,de=eo(ce,"FORBID_TAGS")?Ft({},ce.FORBID_TAGS,Cn):go({}),me=eo(ce,"FORBID_ATTR")?Ft({},ce.FORBID_ATTR,Cn):go({}),Lt=eo(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Te=ce.ALLOW_ARIA_ATTR!==!1,Me=ce.ALLOW_DATA_ATTR!==!1,Xe=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Ke=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,at=ce.SAFE_FOR_TEMPLATES||!1,et=ce.SAFE_FOR_XML!==!1,lt=ce.WHOLE_DOCUMENT||!1,Wt=ce.RETURN_DOM||!1,vr=ce.RETURN_DOM_FRAGMENT||!1,un=ce.RETURN_TRUSTED_TYPE||!1,xn=ce.FORCE_BODY||!1,On=ce.SANITIZE_DOM!==!1,Xn=ce.SANITIZE_NAMED_PROPS||!1,mt=ce.KEEP_CONTENT!==!1,je=ce.IN_PLACE||!1,Q=ce.ALLOWED_URI_REGEXP||rb,Dr=ce.NAMESPACE||ln,ci=ce.MATHML_TEXT_INTEGRATION_POINTS||ci,Bn=ce.HTML_INTEGRATION_POINTS||Bn,se=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&di(ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=ce.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&typeof ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=ce.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),at&&(Me=!1),vr&&(Wt=!0),Lt&&(J=Ft({},eb),ne=[],Lt.html===!0&&(Ft(J,Jy),Ft(ne,tb)),Lt.svg===!0&&(Ft(J,Ad),Ft(ne,$d),Ft(ne,Tc)),Lt.svgFilters===!0&&(Ft(J,Sd),Ft(ne,$d),Ft(ne,Tc)),Lt.mathMl===!0&&(Ft(J,_d),Ft(ne,nb),Ft(ne,Tc))),ce.ADD_TAGS&&(typeof ce.ADD_TAGS=="function"?_e.tagCheck=ce.ADD_TAGS:(J===he&&(J=go(J)),Ft(J,ce.ADD_TAGS,Cn))),ce.ADD_ATTR&&(typeof ce.ADD_ATTR=="function"?_e.attributeCheck=ce.ADD_ATTR:(ne===le&&(ne=go(ne)),Ft(ne,ce.ADD_ATTR,Cn))),ce.ADD_URI_SAFE_ATTR&&Ft(gn,ce.ADD_URI_SAFE_ATTR,Cn),ce.FORBID_CONTENTS&&(Ht===$n&&(Ht=go(Ht)),Ft(Ht,ce.FORBID_CONTENTS,Cn)),ce.ADD_FORBID_CONTENTS&&(Ht===$n&&(Ht=go(Ht)),Ft(Ht,ce.ADD_FORBID_CONTENTS,Cn)),mt&&(J["#text"]=!0),lt&&Ft(J,["html","head","body"]),J.table&&(Ft(J,["tbody"]),delete de.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=ce.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=fI(c,f)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));Ur&&Ur(ce),hi=ce}},hr=Ft({},[...Ad,...Sd,...rI]),pi=Ft({},[..._d,...iI]),An=function(ce){let ze=R(ce);(!ze||!ze.tagName)&&(ze={namespaceURI:Dr,tagName:"template"});const Fe=$c(ce.tagName),St=$c(ze.tagName);return Gr[ce.namespaceURI]?ce.namespaceURI===Gt?ze.namespaceURI===ln?Fe==="svg":ze.namespaceURI===Nn?Fe==="svg"&&(St==="annotation-xml"||ci[St]):!!hr[Fe]:ce.namespaceURI===Nn?ze.namespaceURI===ln?Fe==="math":ze.namespaceURI===Gt?Fe==="math"&&Bn[St]:!!pi[Fe]:ce.namespaceURI===ln?ze.namespaceURI===Gt&&!Bn[St]||ze.namespaceURI===Nn&&!ci[St]?!1:!pi[Fe]&&(to[Fe]||!hr[Fe]):!!(ui==="application/xhtml+xml"&&Gr[ce.namespaceURI]):!1},Tn=function(ce){il(t.removed,{element:ce});try{R(ce).removeChild(ce)}catch{p(ce)}},br=function(ce,ze){try{il(t.removed,{attribute:ze.getAttributeNode(ce),from:ze})}catch{il(t.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ce),ce==="is")if(Wt||vr)try{Tn(ze)}catch{}else try{ze.setAttribute(ce,"")}catch{}},fi=function(ce){let ze=null,Fe=null;if(xn)ce="<remove></remove>"+ce;else{const jt=kd(ce,/^[\r\n\t ]+/);Fe=jt&&jt[0]}ui==="application/xhtml+xml"&&Dr===ln&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const St=_?_.createHTML(ce):ce;if(Dr===ln)try{ze=new u().parseFromString(St,ui)}catch{}if(!ze||!ze.documentElement){ze=C.createDocument(Dr,"template",null);try{ze.documentElement.innerHTML=Kr?k:St}catch{}}const Yt=ze.body||ze.documentElement;return ce&&Fe&&Yt.insertBefore(e.createTextNode(Fe),Yt.childNodes[0]||null),Dr===ln?E.call(ze,lt?"html":"body")[0]:lt?ze.documentElement:Yt},mo=function(ce){return L.call(ce.ownerDocument||ce,ce,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},vo=function(ce){return ce instanceof l&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof a)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},Jo=function(ce){return typeof w=="function"&&ce instanceof w};function Xr(ce,ze,Fe){_c(ce,St=>{St.call(t,ze,Fe,hi)})}const gi=function(ce){let ze=null;if(Xr(z.beforeSanitizeElements,ce,null),vo(ce))return Tn(ce),!0;const Fe=Cn(ce.nodeName);if(Xr(z.uponSanitizeElement,ce,{tagName:Fe,allowedTags:J}),et&&ce.hasChildNodes()&&!Jo(ce.firstElementChild)&&Vr(/<[/\w!]/g,ce.innerHTML)&&Vr(/<[/\w!]/g,ce.textContent)||ce.nodeType===ll.progressingInstruction||et&&ce.nodeType===ll.comment&&Vr(/<[/\w]/g,ce.data))return Tn(ce),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(Fe))&&(!J[Fe]||de[Fe])){if(!de[Fe]&&Ot(Fe)&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe)))return!1;if(mt&&!Ht[Fe]){const St=R(ce)||ce.parentNode,Yt=x(ce)||ce.childNodes;if(Yt&&St){const jt=Yt.length;for(let xr=jt-1;xr>=0;--xr){const dr=s(Yt[xr],!0);dr.__removalCount=(ce.__removalCount||0)+1,St.insertBefore(dr,b(ce))}}}return Tn(ce),!0}return ce instanceof h&&!An(ce)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&Vr(/<\/no(script|embed|frames)/i,ce.innerHTML)?(Tn(ce),!0):(at&&ce.nodeType===ll.text&&(ze=ce.textContent,_c([P,O,$],St=>{ze=ol(ze,St," ")}),ce.textContent!==ze&&(il(t.removed,{element:ce.cloneNode()}),ce.textContent=ze)),Xr(z.afterSanitizeElements,ce,null),!1)},Fr=function(ce,ze,Fe){if(On&&(ze==="id"||ze==="name")&&(Fe in e||Fe in Qo))return!1;if(!(Me&&!me[ze]&&Vr(A,ze))&&!(Te&&Vr(N,ze))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(ze,ce))){if(!ne[ze]||me[ze]){if(!(Ot(ce)&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,ce)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ce))&&(se.attributeNameCheck instanceof RegExp&&Vr(se.attributeNameCheck,ze)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(ze,ce))||ze==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Vr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe))))return!1}else if(!gn[ze]&&!Vr(Q,ol(Fe,U,""))&&!((ze==="src"||ze==="xlink:href"||ze==="href")&&ce!=="script"&&JM(Fe,"data:")===0&&yr[ce])&&!(Xe&&!Vr(B,ol(Fe,U,"")))&&Fe)return!1}return!0},Ot=function(ce){return ce!=="annotation-xml"&&kd(ce,K)},To=function(ce){Xr(z.beforeSanitizeAttributes,ce,null);const{attributes:ze}=ce;if(!ze||vo(ce))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let St=ze.length;for(;St--;){const Yt=ze[St],{name:jt,namespaceURI:xr,value:dr}=Yt,zn=Cn(jt),Cr=dr;let mn=jt==="value"?Cr:eI(Cr);if(Fe.attrName=zn,Fe.attrValue=mn,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,Xr(z.uponSanitizeAttribute,ce,Fe),mn=Fe.attrValue,Xn&&(zn==="id"||zn==="name")&&(br(jt,ce),mn=Tr+mn),et&&Vr(/((--!?|])>)|<\/(style|title|textarea)/i,mn)){br(jt,ce);continue}if(zn==="attributename"&&kd(mn,"href")){br(jt,ce);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){br(jt,ce);continue}if(!Ke&&Vr(/\/>/i,mn)){br(jt,ce);continue}at&&_c([P,O,$],Pr=>{mn=ol(mn,Pr," ")});const no=Cn(ce.nodeName);if(!Fr(no,zn,mn)){br(jt,ce);continue}if(_&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!xr)switch(c.getAttributeType(no,zn)){case"TrustedHTML":{mn=_.createHTML(mn);break}case"TrustedScriptURL":{mn=_.createScriptURL(mn);break}}if(mn!==Cr)try{xr?ce.setAttributeNS(xr,jt,mn):ce.setAttribute(jt,mn),vo(ce)?Tn(ce):Qy(t.removed)}catch{br(jt,ce)}}Xr(z.afterSanitizeAttributes,ce,null)},wr=function ce(ze){let Fe=null;const St=mo(ze);for(Xr(z.beforeSanitizeShadowDOM,ze,null);Fe=St.nextNode();)Xr(z.uponSanitizeShadowNode,Fe,null),gi(Fe),To(Fe),Fe.content instanceof g&&ce(Fe.content);Xr(z.afterSanitizeShadowDOM,ze,null)};return t.sanitize=function(ce){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,St=null,Yt=null,jt=null;if(Kr=!ce,Kr&&(ce="<!-->"),typeof ce!="string"&&!Jo(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw sl("dirty is not a string, aborting")}else throw sl("toString is not a function");if(!t.isSupported)return ce;if(Xt||kn(ze),t.removed=[],typeof ce=="string"&&(je=!1),je){if(ce.nodeName){const zn=Cn(ce.nodeName);if(!J[zn]||de[zn])throw sl("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof w)Fe=fi("<!---->"),St=Fe.ownerDocument.importNode(ce,!0),St.nodeType===ll.element&&St.nodeName==="BODY"||St.nodeName==="HTML"?Fe=St:Fe.appendChild(St);else{if(!Wt&&!at&&!lt&&ce.indexOf("<")===-1)return _&&un?_.createHTML(ce):ce;if(Fe=fi(ce),!Fe)return Wt?null:un?k:""}Fe&&xn&&Tn(Fe.firstChild);const xr=mo(je?ce:Fe);for(;Yt=xr.nextNode();)gi(Yt),To(Yt),Yt.content instanceof g&&wr(Yt.content);if(je)return ce;if(Wt){if(vr)for(jt=D.call(Fe.ownerDocument);Fe.firstChild;)jt.appendChild(Fe.firstChild);else jt=Fe;return(ne.shadowroot||ne.shadowrootmode)&&(jt=I.call(r,jt,!0)),jt}let dr=lt?Fe.outerHTML:Fe.innerHTML;return lt&&J["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Vr(ib,Fe.ownerDocument.doctype.name)&&(dr="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
|
|
1496
|
+
`+dr),at&&_c([P,O,$],zn=>{dr=ol(dr,zn," ")}),_&&un?_.createHTML(dr):dr},t.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kn(ce),Xt=!0},t.clearConfig=function(){hi=null,Xt=!1},t.isValidAttribute=function(ce,ze,Fe){hi||kn({});const St=Cn(ce),Yt=Cn(ze);return Fr(St,Yt,Fe)},t.addHook=function(ce,ze){typeof ze=="function"&&il(z[ce],ze)},t.removeHook=function(ce,ze){if(ze!==void 0){const Fe=ZM(z[ce],ze);return Fe===-1?void 0:QM(z[ce],Fe,1)[0]}return Qy(z[ce])},t.removeHooks=function(ce){z[ce]=[]},t.removeAllHooks=function(){z=sb()},t}var gI=ab();const mI={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"}},vI={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()}`},sanitizedText:function(){return gI.sanitize(this.params.text)}},methods:{dialog:function(n,t,e){this.params=n,this.show=!0,this.resolve=t,this.reject=e},ok:function(){(!this.params.validateText||this.params.validateText===this.validationText)&&(this.show=!1,this.resolve(!0),this.refresh())},cancel:function(){this.show=!1,this.reject(!0),this.refresh()},refresh:function(){this.validationText=""}}},yI=["innerHTML"],bI={key:2},wI={key:3,class:"validate mt-4"};function xI(n,t,e,r,f,g){const m=xt("v-spacer"),w=xt("v-toolbar"),h=xt("v-icon"),d=xt("v-text-field"),a=xt("v-card-text"),l=xt("v-btn"),u=xt("v-card-actions"),c=xt("v-card"),i=xt("v-dialog"),s=xt("v-app");return Rn(),lo(s,null,{default:Rt(()=>[ht(i,{modelValue:n.show,"onUpdate:modelValue":t[1]||(t[1]=p=>n.show=p),persistent:"",width:"600",onKeydown:_l(g.cancel,["esc"])},{default:Rt(()=>[ht(c,null,{default:Rt(()=>[ht(w,{height:"24"},{default:Rt(()=>[ht(m),mr("span",null,ii(n.params.title),1),ht(m)]),_:1}),ht(a,{class:"mt-4 pa-3"},{default:Rt(()=>[n.params.validateText?(Rn(),lo(h,{key:0,class:"mr-2"},{default:Rt(()=>[...t[2]||(t[2]=[Rr(" mdi-alert ",-1)])]),_:1})):So("",!0),n.params.html?(Rn(),ri("span",{key:1,innerHTML:g.sanitizedText},null,8,yI)):(Rn(),ri("span",bI,ii(g.sanitizedText),1)),n.params.validateText?(Rn(),ri("div",wI,[Rr(" Enter "+ii(n.params.validateText)+" to confirm! ",1),ht(d,{modelValue:n.validationText,"onUpdate:modelValue":t[0]||(t[0]=p=>n.validationText=p),variant:"solo",density:"compact","single-line":"",rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):So("",!0)]),_:1}),ht(u,{class:"px-2"},{default:Rt(()=>[ht(m),n.params.cancelText?(Rn(),lo(l,{key:0,variant:"outlined","data-test":g.dataTestCancel,onClick:g.cancel},{default:Rt(()=>[Rr(ii(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):So("",!0),ht(l,{variant:"flat",color:n.params.okClass,"data-test":g.dataTestOk,onClick:g.ok},{default:Rt(()=>[Rr(ii(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])]),_:1})}const CI=qo(vI,[["render",xI],["__scopeId","data-v-e4f2e627"]]);class kI{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const t=window.Vue.createApp(CI);t.use(Md);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:r,okClass:f,validateText:g,cancelText:m,html:w}){return this.mount(),new Promise((h,d)=>{this.$root.dialog({title:t,text:e,okText:r,okClass:f,validateText:g,cancelText:m,html:w},h,d)})}confirm(t,{okText:e="Ok",cancelText:r="Cancel",okClass:f="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:f,validateText:null,cancelText:r,html:!1})}alert(t,{okText:e="Ok",html:r=!1,okClass:f="primary"}){return this.open({title:"Alert",text:t,okText:e,okClass:f,validateText:null,cancelText:null,html:r})}validate(t,{okText:e="Ok",validateText:r="CONFIRM",cancelText:f="Cancel",okClass:g="primary"}){return this.open({title:"Confirm",text:t,okText:e,okClass:g,validateText:r,cancelText:f,html:!1})}}const AI={install(n,t){const e=new kI;n.provide("dialog",e),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=e)}},SI={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`
|
|
1497
1497
|
--toast-bg-color:${yd[this.toastNotification.level]};
|
|
1498
1498
|
--toast-fg-color:${MM(this.toastNotification.level)};
|
|
1499
1499
|
`},contentStyle:function(){return`
|
|
1500
1500
|
white-space: ${this.expanded?"normal":"nowrap"};
|
|
1501
1501
|
overflow-x: ${this.expanded?"visible":"hidden"};
|
|
1502
1502
|
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
|
1503
|
-
`}},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}}},_I={key:0,class:"text-subtitle-1 mr-1 notification-text"},$I={key:1,class:"text-body-2 notification-text"},TI={key:2,class:"text-body-2 notification-text"};function MI(n,t,e,r,f,g){const m=xt("v-icon"),w=xt("v-spacer"),h=xt("v-btn"),d=xt("v-sheet"),a=xt("v-slide-y-transition");return Rn(),lo(a,null,{default:Rt(()=>[$l(ht(d,{style:Ra(g.toastStyle),class:"toast-notification",onClick:g.expand},{default:Rt(()=>[ht(m,{class:"mr-1 notification-text"},{default:Rt(()=>[Rr(ii(g.toastNotificationIcon),1)]),_:1}),mr("div",{class:"toast-content",style:Ra(g.contentStyle)},[n.toastNotification.title?(Rn(),ri("span",_I,[n.toastNotification.body||n.toastNotification.message?(Rn(),ri(Sl,{key:0},[Rr(ii(n.toastNotification.title)+": ",1)],64)):(Rn(),ri(Sl,{key:1},[Rr(ii(n.toastNotification.title),1)],64))])):So("",!0),n.toastNotification.body?(Rn(),ri("span",$I,ii(n.toastNotification.body),1)):So("",!0),n.toastNotification.message?(Rn(),ri("span",TI,ii(n.toastNotification.message),1)):So("",!0)],4),ht(w),ht(h,{variant:"text",class:"notification-text",onClick:Zs(g.hide,["stop"])},{default:Rt(()=>[...t[0]||(t[0]=[Rr(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Tl,n.showToast]])]),_:1})}const II=qo(SI,[["render",MI],["__scopeId","data-v-84833581"]]);class EI{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=du(II);t.use(Md);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:r,message:f,level:g,duration:m,type:w="alert",logToConsole:h=!1,saveToHistory:d=!0}){this.mount(),h&&console.log(f?`${g.toUpperCase()} - ${f}`:`${g.toUpperCase()} - ${e}: ${r}`),d&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:g}),this[t]({title:e,body:r,message:f,level:g,duration:m,type:w})}toast({title:t,body:e,message:r,level:f,duration:g,type:m}){this.$root.toast({title:t,body:e,message:r,level:f,type:m},g)}critical({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}caution({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}off({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}}const RI={install(n,t){const e=new EI(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},lb=100,cb=Fp({state(){return{notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1}}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory(n,t){n.notifyHistory.length>=lb&&(n.notifyHistory.length=lb-1),n.notifyHistory.unshift(t)},notifyClearHistory(n){n.notifyHistory=[]},setNamedWidget(n,t){Object.assign(n.namedWidgets,t)},clearNamedWidget(n,t){delete n.namedWidgets[t]},playback(n,t){Object.assign(n.playback,t)}},modules:{}});function LI(n){$p(`Vuetify: ${n}`)}function ub(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function OI(n,t){const e={};for(const r of t)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}function hb(){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 r={};for(const f in n)r[f]=n[f];for(const f in t){const g=n[f],m=t[f];if(ub(g)&&ub(m)){r[f]=hb(g,m,e);continue}if(e&&Array.isArray(g)&&Array.isArray(m)){r[f]=e(g,m);continue}r[f]=m}return r}function cl(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(cl.cache.has(n))return cl.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return cl.cache.set(n,t),t}cl.cache=new Map;function db(n,t){return e=>Object.keys(n).reduce((r,f)=>{const g=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...g,default:e[f]}:r[f]=g,t&&!r[f].source&&(r[f].source=t),r},{})}function pb(n,t){const e=Rp();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function NI(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pb("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Td=Symbol.for("vuetify:defaults");function fb(){const n=Tp(Td);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function DI(n,t){return n.props&&(typeof n.props[t]<"u"||typeof n.props[cl(t)]<"u")}function FI(){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]:fb();const r=pb("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=hu(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),g=new Proxy(n,{get(h,d){var a,l,u,c;const i=Reflect.get(h,d);if(d==="class"||d==="style")return[(a=f.value)==null?void 0:a[d],i].filter(b=>b!=null);if(DI(r.vnode,d))return i;const s=(l=f.value)==null?void 0:l[d];if(s!==void 0)return s;const p=(c=(u=e.value)==null?void 0:u.global)==null?void 0:c[d];return p!==void 0?p:i}}),m=Mp();Ip(()=>{if(f.value){const h=Object.entries(f.value).filter(d=>{let[a]=d;return a.startsWith(a[0].toUpperCase())});m.value=h.length?Object.fromEntries(h):void 0}else m.value=void 0});function w(){const h=NI(Td,r);Lp(Td,hu(()=>m.value?hb((h==null?void 0:h.value)??{},m.value):h==null?void 0:h.value))}return{props:g,provideSubDefaults:w}}function Mc(n){if(n._setup=n._setup??n.setup,!n.name)return LI("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=db(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return OI(e,t)},n.props._as=String,n.setup=function(e,r){const f=fb();if(!f.value)return n._setup(e,r);const{props:g,provideSubDefaults:m}=FI(e,e._as??n.name,f),w=n._setup(g,r);return m(),w}}return n}function PI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?Mc:_p)(t)}const WI=[String,Function,Object,Array],Ic=db({icon:{type:WI},tag:{type:[String,Object,Function],required:!0}},"icon");PI()({name:"VComponentIcon",props:Ic(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return ht(n.tag,null,{default:()=>{var f;return[n.icon?ht(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),Mc({name:"VSvgIcon",inheritAttrs:!1,props:Ic(),setup(n,t){let{attrs:e}=t;return()=>ht(n.tag,Op(e,{style:null}),{default:()=>[mr("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(r=>Array.isArray(r)?mr("path",{d:r[0],"fill-opacity":r[1]},null):mr("path",{d:r},null)):mr("path",{d:n.icon},null)])]})}}),Mc({name:"VLigatureIcon",props:Ic(),setup(n){return()=>ht(n.tag,null,{default:()=>[n.icon]})}});const BI=Mc({name:"VClassIcon",props:Ic(),setup(n){return()=>ht(n.tag,{class:Ep(n.icon)},null)}}),zI={component:n=>Xs(BI,{...n,class:"mdi"})},Md=Pp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:mI}},icons:{defaultSet:"mdi",sets:{mdi:zI,...EM,...RM}}}),Id=lw({createApp:du,appOptions:{render(){return Xs(mw,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(KM),n.use(cb),n.use(Md),n.use(AI),n.use(RI,{store:cb})}}),
|
|
1503
|
+
`}},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}}},_I={key:0,class:"text-subtitle-1 mr-1 notification-text"},$I={key:1,class:"text-body-2 notification-text"},TI={key:2,class:"text-body-2 notification-text"};function MI(n,t,e,r,f,g){const m=xt("v-icon"),w=xt("v-spacer"),h=xt("v-btn"),d=xt("v-sheet"),a=xt("v-slide-y-transition");return Rn(),lo(a,null,{default:Rt(()=>[$l(ht(d,{style:Ra(g.toastStyle),class:"toast-notification",onClick:g.expand},{default:Rt(()=>[ht(m,{class:"mr-1 notification-text"},{default:Rt(()=>[Rr(ii(g.toastNotificationIcon),1)]),_:1}),mr("div",{class:"toast-content",style:Ra(g.contentStyle)},[n.toastNotification.title?(Rn(),ri("span",_I,[n.toastNotification.body||n.toastNotification.message?(Rn(),ri(Sl,{key:0},[Rr(ii(n.toastNotification.title)+": ",1)],64)):(Rn(),ri(Sl,{key:1},[Rr(ii(n.toastNotification.title),1)],64))])):So("",!0),n.toastNotification.body?(Rn(),ri("span",$I,ii(n.toastNotification.body),1)):So("",!0),n.toastNotification.message?(Rn(),ri("span",TI,ii(n.toastNotification.message),1)):So("",!0)],4),ht(w),ht(h,{variant:"text",class:"notification-text",onClick:Zs(g.hide,["stop"])},{default:Rt(()=>[...t[0]||(t[0]=[Rr(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[Tl,n.showToast]])]),_:1})}const II=qo(SI,[["render",MI],["__scopeId","data-v-84833581"]]);class EI{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=du(II);t.use(Md);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:r,message:f,level:g,duration:m,type:w="alert",logToConsole:h=!1,saveToHistory:d=!0}){this.mount(),h&&console.log(f?`${g.toUpperCase()} - ${f}`:`${g.toUpperCase()} - ${e}: ${r}`),d&&this.$store.commit("notifyAddHistory",{title:e,body:r,message:f,level:g}),this[t]({title:e,body:r,message:f,level:g,duration:m,type:w})}toast({title:t,body:e,message:r,level:f,duration:g,type:m}){this.$root.toast({title:t,body:e,message:r,level:f,type:m},g)}critical({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"critical",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}FATAL(t){this.critical(t)}ERROR(t){this.critical(t)}serious({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"serious",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}caution({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"caution",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}WARN(t){this.caution(t)}normal({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"normal",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}INFO(t){this.normal(t)}DEBUG(t){this.normal(t)}standby({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"standby",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}off({title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w}){this.open({method:"toast",level:"off",title:t,body:e,message:r,type:f,duration:g,logToConsole:m,saveToHistory:w})}}const RI={install(n,t){const e=new EI(t);n.provide("notify",e),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=e)}},lb=100,cb=Fp({state(){return{notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1,playbackLoading:0}}},getters:{namedWidget:n=>t=>n.namedWidgets[t]},mutations:{notifyAddHistory(n,t){n.notifyHistory.length>=lb&&(n.notifyHistory.length=lb-1),n.notifyHistory.unshift(t)},notifyClearHistory(n){n.notifyHistory=[]},setNamedWidget(n,t){Object.assign(n.namedWidgets,t)},clearNamedWidget(n,t){delete n.namedWidgets[t]},playback(n,t){Object.assign(n.playback,t)}},modules:{}});function LI(n){$p(`Vuetify: ${n}`)}function ub(n){let t;return n!==null&&typeof n=="object"&&((t=Object.getPrototypeOf(n))===Object.prototype||t===null)}function OI(n,t){const e={};for(const r of t)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}function hb(){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 r={};for(const f in n)r[f]=n[f];for(const f in t){const g=n[f],m=t[f];if(ub(g)&&ub(m)){r[f]=hb(g,m,e);continue}if(e&&Array.isArray(g)&&Array.isArray(m)){r[f]=e(g,m);continue}r[f]=m}return r}function cl(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(cl.cache.has(n))return cl.cache.get(n);const t=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return cl.cache.set(n,t),t}cl.cache=new Map;function db(n,t){return e=>Object.keys(n).reduce((r,f)=>{const g=typeof n[f]=="object"&&n[f]!=null&&!Array.isArray(n[f])?n[f]:{type:n[f]};return e&&f in e?r[f]={...g,default:e[f]}:r[f]=g,t&&!r[f].source&&(r[f].source=t),r},{})}function pb(n,t){const e=Rp();if(!e)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return e}function NI(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pb("injectSelf");const{provides:e}=t;if(e&&n in e)return e[n]}const Td=Symbol.for("vuetify:defaults");function fb(){const n=Tp(Td);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function DI(n,t){return n.props&&(typeof n.props[t]<"u"||typeof n.props[cl(t)]<"u")}function FI(){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]:fb();const r=pb("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const f=hu(()=>{var h;return(h=e.value)==null?void 0:h[n._as??t]}),g=new Proxy(n,{get(h,d){var a,l,u,c;const i=Reflect.get(h,d);if(d==="class"||d==="style")return[(a=f.value)==null?void 0:a[d],i].filter(b=>b!=null);if(DI(r.vnode,d))return i;const s=(l=f.value)==null?void 0:l[d];if(s!==void 0)return s;const p=(c=(u=e.value)==null?void 0:u.global)==null?void 0:c[d];return p!==void 0?p:i}}),m=Mp();Ip(()=>{if(f.value){const h=Object.entries(f.value).filter(d=>{let[a]=d;return a.startsWith(a[0].toUpperCase())});m.value=h.length?Object.fromEntries(h):void 0}else m.value=void 0});function w(){const h=NI(Td,r);Lp(Td,hu(()=>m.value?hb((h==null?void 0:h.value)??{},m.value):h==null?void 0:h.value))}return{props:g,provideSubDefaults:w}}function Mc(n){if(n._setup=n._setup??n.setup,!n.name)return LI("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=db(n.props??{},n.name)();const t=Object.keys(n.props).filter(e=>e!=="class"&&e!=="style");n.filterProps=function(e){return OI(e,t)},n.props._as=String,n.setup=function(e,r){const f=fb();if(!f.value)return n._setup(e,r);const{props:g,provideSubDefaults:m}=FI(e,e._as??n.name,f),w=n._setup(g,r);return m(),w}}return n}function PI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(n?Mc:_p)(t)}const WI=[String,Function,Object,Array],Ic=db({icon:{type:WI},tag:{type:[String,Object,Function],required:!0}},"icon");PI()({name:"VComponentIcon",props:Ic(),setup(n,t){let{slots:e}=t;return()=>{const r=n.icon;return ht(n.tag,null,{default:()=>{var f;return[n.icon?ht(r,null,null):(f=e.default)==null?void 0:f.call(e)]}})}}}),Mc({name:"VSvgIcon",inheritAttrs:!1,props:Ic(),setup(n,t){let{attrs:e}=t;return()=>ht(n.tag,Op(e,{style:null}),{default:()=>[mr("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(n.icon)?n.icon.map(r=>Array.isArray(r)?mr("path",{d:r[0],"fill-opacity":r[1]},null):mr("path",{d:r},null)):mr("path",{d:n.icon},null)])]})}}),Mc({name:"VLigatureIcon",props:Ic(),setup(n){return()=>ht(n.tag,null,{default:()=>[n.icon]})}});const BI=Mc({name:"VClassIcon",props:Ic(),setup(n){return()=>ht(n.tag,{class:Ep(n.icon)},null)}}),zI={component:n=>Xs(BI,{...n,class:"mdi"})},Md=Pp({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:mI}},icons:{defaultSet:"mdi",sets:{mdi:zI,...EM,...RM}}}),Id=lw({createApp:du,appOptions:{render(){return Xs(mw,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(KM),n.use(cb),n.use(Md),n.use(AI),n.use(RI,{store:cb})}}),PD=sr("h",Id.bootstrap),WD=sr("m",Id.mount),BD=sr("u",Id.unmount)}}});
|