openc3-cosmos-tool-admin 6.10.1 → 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/admin/ArrayWidget-Bc-Awsbn-5a1d9ebaf5ba58e65eeb.js +2 -0
- data/tools/admin/{ArrayplotWidget-BeSfz3MR-62c6314f2795ec59c2c3.js → ArrayplotWidget-B9UGCr4--e4841947fbc1cd937df7.js} +1 -1
- data/tools/admin/BarColumn-ClLBRGll-572701c09620d10ecff0.js +1 -0
- data/tools/admin/BlockWidget-CoQp-LZM-769924a514409c909f83.js +2 -0
- data/tools/admin/ButtonWidget-CTTwpFec-3d5379f67b499b399f61.js +2 -0
- data/tools/admin/CanvasWidget-jFarbJ3t-c0776286cdb468e1c73c.js +1 -0
- data/tools/admin/CanvasdotWidget-BoyUcwiB-5b8968d3cbb415f81066.js +1 -0
- data/tools/admin/CanvasimageWidget-DmyCSnuQ-ca644207f5afe4d7570c.js +1 -0
- data/tools/admin/CanvasimagevalueWidget-CmbngMqv-dbb6d77a0c4b3e482826.js +1 -0
- data/tools/admin/CanvaslabelWidget-D8NzLKqi-5a6c5d0d7a834885df83.js +1 -0
- data/tools/admin/CanvaslabelvalueWidget-DOybGI9D-0276cd36efa5b8b21c8c.js +1 -0
- data/tools/admin/CanvaslineWidget-D2NEei7j-b97c834aa7985a240884.js +1 -0
- data/tools/admin/CanvaslinevalueWidget-Ctvv9owf-c6a75f8129a220989e96.js +1 -0
- data/tools/admin/CheckbuttonWidget-CQeR0BMF-fa5b02a8efe6c73d6691.js +1 -0
- data/tools/admin/ComboboxWidget-4N-MagvN-8422c68644befe797171.js +1 -0
- data/tools/admin/{DateWidget-BpnMzSBn-568b8523461c5b29d3b6.js → DateWidget-rYTjwUdb-2d2e8c2c53a80a8c66aa.js} +1 -1
- data/tools/admin/DetailsDialog-p_vutijL-76a071d9003f673bb43a.js +1 -0
- data/tools/admin/DynamicWidget-DEHWYr8i-e8f8825de95e4ed788f7.js +1 -0
- data/tools/admin/FilechecksumWidget-gcmXxJHl-d63bde36350aa6357d8e.js +1 -0
- data/tools/admin/FiledisplayWidget-CqM549A4-ebba7b99e9a59558276a.js +1 -0
- data/tools/admin/FormatvalueWidget-BEwH0C7S-45a5a2393368d0b3821b.js +1 -0
- data/tools/admin/Graph-CbjlChwf-52e2ec5c5915ed22c513.js +1 -0
- data/tools/admin/{GraphWidget-CAADBFV--5a0f42f620a95bceb78a.js → GraphWidget-CjxnC0Dc-5fc94ebc28f2be06cd4a.js} +1 -1
- data/tools/admin/HorizontalWidget-Dt8bkM3k-ecbde5177b812ef1e23d.js +1 -0
- data/tools/admin/HorizontalboxWidget-CdAZ5Sa6-a98e8795733c87edb7fe.js +1 -0
- data/tools/admin/{HorizontallineWidget-Cu2dDt7k-ca5bfd2bc99611a7daf6.js → HorizontallineWidget-CXZJTeU2-9a2e0e267c30229a1a06.js} +1 -1
- data/tools/admin/{IframeWidget-BBU3MkSq-3bd357450464e91b6e8a.js → IframeWidget-CrcWiAVE-f0cdcf9b840c392136c7.js} +1 -1
- data/tools/admin/{ImageLoader-XAGgjKkq-1e8835a62d6b86fae045.js → ImageLoader-DPqax8yu-f68ecbd7c46cbbfa9c38.js} +1 -1
- data/tools/admin/ImageviewerWidget-CTEl6iPg-3143b62bd3f0e7d447f3.js +1 -0
- data/tools/admin/{InterfacesTab-6hli9fcg-fa1490edce5e929d406b.js → InterfacesTab-B9ApLB5q-bb96464dd3bfc478c5ac.js} +1 -1
- data/tools/admin/{LabelWidget-BsOpolUL-480fcf63f4a393ec665b.js → LabelWidget-CPqKGMx0-eb6d4acaf548f6445cf7.js} +1 -1
- data/tools/admin/LabelledWidget-BHYzRMFd-d986f910b2bacd8e8ee2.js +1 -0
- data/tools/admin/LabelprogressbarWidget-D9deeUo7-5cb229e499a29b09a4ad.js +1 -0
- data/tools/admin/LabelsparklineWidget-7mYre3CP-2ef07e725fe66586803a.js +1 -0
- data/tools/admin/LabelvalueWidget-NLsD60n4-574557ba12df95aaa182.js +1 -0
- data/tools/admin/LabelvaluedescWidget-DXROG4Gs-cd788e81226c23824988.js +1 -0
- data/tools/admin/LabelvaluelimitsbarWidget-DqVqHF4W-f30ecd07eaf3d71afabe.js +1 -0
- data/tools/admin/LabelvaluelimitscolumnWidget-BK6_31pC-4fede4a06d630efecbd3.js +1 -0
- data/tools/admin/LabelvaluerangebarWidget-DR7C8gqw-b34f3f2d4967d77f16dc.js +1 -0
- data/tools/admin/Layout-B_Hgw3gd-bdff69864bbaf9af4133.js +1 -0
- data/tools/admin/LedWidget-CiAVs2tj-f0925ab9e8c2b5be6f37.js +1 -0
- data/tools/admin/LimitsBar-_UQG-M6e-b8c3d82a4d2cafcf8e4c.js +1 -0
- data/tools/admin/LimitsbarWidget-CIwcOhC8-0cef53ee5b2cccb38afc.js +1 -0
- data/tools/admin/LimitscolorWidget-CGPfJwvT-b8f81cf4eea6f46bff03.js +1 -0
- data/tools/admin/{LimitscolumnWidget-DSsz36tT-6fcdc5688973d90c5fec.js → LimitscolumnWidget-Bj_UPEC8-8264d41a1cea3eb8e1ff.js} +1 -1
- data/tools/admin/{LinegraphWidget-CeBijgDo-2d1fe80cbc5b9b60e16e.js → LinegraphWidget-DccnHbWa-fdda0d41317e3f87a341.js} +1 -1
- data/tools/admin/MatrixbycolumnsWidget-U_NZ6aW--76ce37a0548462d018ac.js +1 -0
- data/tools/admin/MicroservicesTab-DG3rdksb-35f3fc3e162eb6c433a0.js +1 -0
- data/tools/admin/OutputDialog-Di-pSmJE-abdcc64ec68a9fb24179.js +1 -0
- data/tools/admin/{PackagesTab-BascLTCK-cca24f27d8349907a8fa.js → PackagesTab-Bui5q3rX-b1963482967f42c96e55.js} +1 -1
- data/tools/admin/{PluginsTab-Yz9HZqpp-910a6e5d7b19d45b11b7.js → PluginsTab-zR9eZuvc-c57dae61047523f89750.js} +2 -2
- data/tools/admin/ProgressbarWidget-D4JtVzyk-83283130b1429c6828cd.js +1 -0
- data/tools/admin/RadiobuttonWidget-BUaW7pRx-848fe80075b32c47d70b.js +1 -0
- data/tools/admin/RadiogroupWidget-NIv4CaUQ-545c9956ea6936dc8658.js +1 -0
- data/tools/admin/RangebarWidget-1-CsFpcl-9c19b38a9b6312ce2b74.js +1 -0
- data/tools/admin/{RedisTab-C00rFmdl-7e2ccc5bd3fadaa12005.js → RedisTab-DuO-zUV3-21f27e0f3f96b000592e.js} +1 -1
- data/tools/admin/RollupWidget-ChasTJYP-7a4c2edc943344b62451.js +1 -0
- data/tools/admin/{RoutersTab-CEe4oS0x-b49f6b75042daef01df4.js → RoutersTab-C0UHSj-S-ed231a6d8c25eb3cb67e.js} +1 -1
- data/tools/admin/ScrollwindowWidget-Y2J758y6-2df0a4d71fb133314d26.js +1 -0
- data/tools/admin/{SecretsTab-DFrxV8Q8-ca4a28befc3615d0adec.js → SecretsTab-c5g8Zk4g-5d84a9c474815520ba11.js} +1 -1
- data/tools/admin/SettingsTab-CTd3_Ipy-263b3fd497c7ad9c7647.js +2 -0
- data/tools/admin/SignalWidget-DFhHDicI-927c00e00aef21b95c78.js +1 -0
- data/tools/admin/SimpleTextDialog-CXIEKlX0-6b68d042e80fb3611e0b.js +1 -0
- data/tools/admin/{SpacerWidget-CaWx41K7-ee222bd1763dfcd9499b.js → SpacerWidget-D4KojaGb-24b0ca553a20484f4ecb.js} +1 -1
- data/tools/admin/SparklineWidget-DMHFzw8L-be6641d87f4449bf3abe.js +1 -0
- data/tools/admin/TabbookWidget-NVLYMdFG-e3811a0c1facfc366926.js +1 -0
- data/tools/admin/{TargetsTab-B6tf2hKl-20fdeb73e7732330db81.js → TargetsTab-b35HgnRl-e970ebd371c349ffe038.js} +1 -1
- data/tools/admin/TextboxWidget-CrMYPQIF-26e7b0822d504325a606.js +1 -0
- data/tools/admin/TextfieldWidget-DMBQwtnb-a7af187a886f30e870ce.js +1 -0
- data/tools/admin/{TimeWidget-BHybAfg8-2ef3652afaab371b26f8.js → TimeWidget-CWLJZ2bt-a73732192a9307483b41.js} +1 -1
- data/tools/admin/TitleWidget-V1FGI8l3-6c25cbce98d3073cbed3.js +1 -0
- data/tools/admin/{ToolsTab-CXoxIck8-cd6095dc9c1b215c3dde.js → ToolsTab-7qOQPnN3-7f87bbe2b3d53dbc4e60.js} +1 -1
- data/tools/admin/{VWidget-D06LY-Yc-1386bbd0ed7afc886d9d.js → VWidget-rAFU-0vj-222c8edcd992633f73a1.js} +1 -1
- data/tools/admin/ValueWidget-BI3uXmda-bcc8763defb2d1a2ada5.js +1 -0
- data/tools/admin/ValuelimitsbarWidget-BGSJLpw4-835ae41f7708a02adb0d.js +1 -0
- data/tools/admin/ValuelimitscolumnWidget-CaNjHy4v-edac88976e3fdab324d4.js +1 -0
- data/tools/admin/ValuerangebarWidget-Do40-aaL-edc4a5026d136a04d964.js +1 -0
- data/tools/admin/VerticalWidget-DZqghqIm-da2a75fa0fad1efa61b4.js +1 -0
- data/tools/admin/VerticalboxWidget-CQ__4FcS-bec849a14fb1f27df91e.js +1 -0
- data/tools/admin/Widget-6-Nvewdp-ec278e75a8d3b4e6e0ac.js +1 -0
- data/tools/admin/{main-4560cb476d7e9d971b97.js → main-b8fe7a5cb2fa4e35ed6a.js} +35 -35
- data/tools/admin/main.js +1 -1
- data/tools/admin/{settings-DRNFiuf0-6eada366887f768e812b.js → settings-CHPWZcnU-934e5e82b5a20cfda7e6.js} +1 -1
- metadata +83 -80
- data/tools/admin/ArrayWidget-DQRQ7dPa-ec60f1a7547ad6b00d69.js +0 -2
- data/tools/admin/BarColumn-BdIaQfOz-3f372dcbd0e38e94beb7.js +0 -1
- data/tools/admin/BlockWidget-DSFKrUxl-40a0bfee90429f0fbd04.js +0 -2
- data/tools/admin/ButtonWidget-CFbjdxSr-3eb417f150aad49159da.js +0 -2
- data/tools/admin/CanvasWidget-BloYxuKE-bd7432f755c4dd08aadc.js +0 -1
- data/tools/admin/CanvasdotWidget-CZxUOPRd-2c149df34b30a8c42813.js +0 -1
- data/tools/admin/CanvasimageWidget-ULQq3nqZ-68511568bd9671b1395a.js +0 -1
- data/tools/admin/CanvasimagevalueWidget-jFCVXYhi-69a98787a537716d1eca.js +0 -1
- data/tools/admin/CanvaslabelWidget-DQhBI1vZ-5c678abaccd36a449807.js +0 -1
- data/tools/admin/CanvaslabelvalueWidget-C4REgztL-c7278cf0b63aa2576e5e.js +0 -1
- data/tools/admin/CanvaslineWidget-S4PCEvZM-58f0c96eae5b75e0d714.js +0 -1
- data/tools/admin/CanvaslinevalueWidget-597khOSA-8ec57bb2832d2ccf4c7f.js +0 -1
- data/tools/admin/CheckbuttonWidget-BcblKat3-c29e0b0e519f68962e5e.js +0 -1
- data/tools/admin/ComboboxWidget-BMcHS4g5-991790211f0df154fa60.js +0 -1
- data/tools/admin/DetailsDialog-q9piPmHq-5fd592fa0232fc721f08.js +0 -1
- data/tools/admin/DynamicWidget-DHL7pbgW-ddb50949e471ca798597.js +0 -1
- data/tools/admin/FormatvalueWidget-Cm-HmAmw-cc32c9f0e3a6440dc3f7.js +0 -1
- data/tools/admin/Graph-BEodMaxQ-dc069ff0863bb1b79a14.js +0 -1
- data/tools/admin/HorizontalWidget-NcXIXxh7-ac4430c2bd179fac7e53.js +0 -1
- data/tools/admin/HorizontalboxWidget-CW9XX4uH-5b9955591fadf92383d4.js +0 -1
- data/tools/admin/ImageviewerWidget-UByjeO63-6a1aa341aad3f5e3a1fa.js +0 -1
- data/tools/admin/LabelledWidget-DVOGpgZ--be6e8ae8ae73a9e8ac0e.js +0 -1
- data/tools/admin/LabelprogressbarWidget-BeE9fDs6-4c6a74a14a60af91654c.js +0 -1
- data/tools/admin/LabelsparklineWidget-Bj7trKML-366bdc6967968c3df270.js +0 -1
- data/tools/admin/LabelvalueWidget-Dwqsh5o2-eb6928f5259e5721a1cc.js +0 -1
- data/tools/admin/LabelvaluedescWidget-Cfu2vuja-9ff7549a39dfd631a158.js +0 -1
- data/tools/admin/LabelvaluelimitsbarWidget-DYV68AJ_-14ed76ef50306d433241.js +0 -1
- data/tools/admin/LabelvaluelimitscolumnWidget-CtaoTixt-8a607f68160af332179e.js +0 -1
- data/tools/admin/LabelvaluerangebarWidget-3EaUB6E6-9d23a3bdfcc0902cfeae.js +0 -1
- data/tools/admin/Layout-DNR3xnku-a01a9b3a62428bfb1b78.js +0 -1
- data/tools/admin/LedWidget-Gi6GXtrW-dae81febb3ae6042fe79.js +0 -1
- data/tools/admin/LimitsbarWidget-BTZQY9XQ-8c4fb603d49357ccf95a.js +0 -1
- data/tools/admin/LimitscolorWidget-CFnmvlrA-37fbe4cc91eef4c5ecbe.js +0 -1
- data/tools/admin/MatrixbycolumnsWidget-DX9uhjAv-4b1ae2738aef8ffa3842.js +0 -1
- data/tools/admin/MicroservicesTab-BSSCh5Ss-e353932e75faf48047d5.js +0 -1
- data/tools/admin/OutputDialog-BMzp6wy3-6270642e99f9befcc694.js +0 -1
- data/tools/admin/ProgressbarWidget-DJepvOip-8ff70f5f860011c00bc0.js +0 -1
- data/tools/admin/RadiobuttonWidget-4e8ROIfg-8f6efea6ff9b37a4afc4.js +0 -1
- data/tools/admin/RadiogroupWidget-CUucj6aT-4e1289cf1681d9dd871b.js +0 -1
- data/tools/admin/RangebarWidget-Bu4rqlrx-b13f4d05894e17b35f93.js +0 -1
- data/tools/admin/RollupWidget-ByLvEEau-cb3a4775a6f72a2dcd9e.js +0 -1
- data/tools/admin/ScrollwindowWidget-CXJ9QGN1-376ce5b224c4ca4390cf.js +0 -1
- data/tools/admin/SettingsTab-CpLxrjTc-c8622ca1e0fa0aa3c324.js +0 -2
- data/tools/admin/SignalWidget-qvL2YZJA-d4926d5b69e8d205ea30.js +0 -1
- data/tools/admin/SimpleTextDialog--iSWgPgq-dabd517064950fe3d362.js +0 -1
- data/tools/admin/SparklineWidget-BkNSRypJ-578f0450fc9c2ec01ee6.js +0 -1
- data/tools/admin/TabbookWidget-MsrRG1vn-f49576da2086555d3772.js +0 -1
- data/tools/admin/TextboxWidget-DbwpPVGB-965cd84f13108a2dfe6b.js +0 -1
- data/tools/admin/TextfieldWidget-DzMlTMYW-44d5799795c0663b983e.js +0 -1
- data/tools/admin/TitleWidget-DL_sE5YE-2e10d96d64ba14f84323.js +0 -1
- data/tools/admin/ValueWidget-CGT0LV_n-f28fb61ddd02224a739a.js +0 -1
- data/tools/admin/ValuelimitsbarWidget-CmpyPO-1-417db70aadb1a08ea6f3.js +0 -1
- data/tools/admin/ValuelimitscolumnWidget-jzxrQd-f-1f0d66b078567bf94726.js +0 -1
- data/tools/admin/ValuerangebarWidget-C8ckuAeh-a0f589394f5fdcd0125c.js +0 -1
- data/tools/admin/VerticalWidget-qN82km_m-8cc1d779b219f6f880d8.js +0 -1
- data/tools/admin/VerticalboxWidget-CiJZDlHJ-445ff2aa6dd1d842fee3.js +0 -1
- data/tools/admin/Widget-DXvVFSH5-911ef7faeb56d94116a8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(pr,nt){"use strict";var Ue,jt,ot,Pe,je,rn,Fn,Vp,qp,Kp,Cn,ci,vo,Gp,Rt,Ll,Au,Kr,Cs,ia,Ol,Wa,Yp,Xp,Zp,Qp,Su,Jp,ef,tf,nf,rf,_u,of,sf,af,lf,$u,cf,uf;return{setters:[Ct=>{Ue=Ct.resolveComponent,jt=Ct.createBlock,ot=Ct.openBlock,Pe=Ct.withCtx,je=Ct.createVNode,rn=Ct.createElementBlock,Fn=Ct.createElementVNode,Vp=Ct.useCssVars,qp=Ct.defineAsyncComponent,Kp=Ct.Teleport,Cn=Ct.toDisplayString,ci=Ct.Fragment,vo=Ct.renderList,Gp=Ct.ref,Rt=Ct.createTextVNode,Ll=Ct.mergeProps,Au=Ct.createSlots,Kr=Ct.createCommentVNode,Cs=Ct.normalizeStyle,ia=Ct.h,Ol=Ct.withKeys,Wa=Ct.withModifiers,Yp=Ct.toRaw,Xp=Ct.defineComponent,Zp=Ct.warn,Qp=Ct.inject,Su=Ct.computed,Jp=Ct.shallowRef,ef=Ct.watchEffect,tf=Ct.normalizeClass,nf=Ct.getCurrentInstance,rf=Ct.provide,_u=Ct.createApp,of=Ct.withDirectives,sf=Ct.vShow},Ct=>{af=Ct.createRouter,lf=Ct.createWebHistory},Ct=>{$u=Ct.getMountedApps},Ct=>{cf=Ct.createStore},Ct=>{uf=Ct.createVuetify}],execute:function(){pr({$:yf,c:ME,f:Wr,l:In,p:ts,y:lr,z:Ed});var Ct=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hf(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),t.push.apply(t,r)}return t}function ks(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hf(Object(t),!0).forEach(function(r){lx(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):hf(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function lx(n,e,t){return(e=function(r){var d=function(p,g){if(As(p)!=="object"||p===null)return p;var b=p[Symbol.toPrimitive];if(b!==void 0){var h=b.call(p,g);if(As(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(p)}(r,"string");return As(d)==="symbol"?d:String(d)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function As(n){return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var e=function(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,d=String(t),p=d.length,g=-1,b="",h=d.charCodeAt(0);++g<p;)(r=d.charCodeAt(g))!=0?b+=r>=1&&r<=31||r==127||g==0&&r>=48&&r<=57||g==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":g==0&&p==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+d.charAt(g):d.charAt(g):b+="�";return b};n.CSS||(n.CSS={}),n.CSS.escape=e})(Ct);var cx={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function ux(n){if(As(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var e=ks(ks({},cx),n);if(!e.Vue&&!e.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!e.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(e.appOptions.el&&typeof e.appOptions.el!="string"&&!(e.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(As(e.appOptions.el)));e.createApp=e.createApp||e.Vue&&e.Vue.createApp;var t={};return{bootstrap:hx.bind(null,e,t),mount:dx.bind(null,e,t),unmount:fx.bind(null,e,t),update:px.bind(null,e,t)}}function hx(n){return n.loadRootComponent?n.loadRootComponent().then(function(e){return n.rootComponent=e}):Promise.resolve()}function dx(n,e,t){var r={};return Promise.resolve().then(function(){return function(d,p){return typeof d.appOptions=="function"?d.appOptions(p):Promise.resolve(ks({},d.appOptions))}(n,t).then(function(d){var p;if(t.domElement&&!d.el&&(d.el=t.domElement),d.el)if(typeof d.el=="string"){if(!(p=document.querySelector(d.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(d.el))}else(p=d.el).id||(p.id="single-spa-application:".concat(t.name)),d.el="#".concat(CSS.escape(p.id));else{var g="single-spa-application:".concat(t.name);d.el="#".concat(CSS.escape(g)),(p=document.getElementById(g))||((p=document.createElement("div")).id=g,document.body.appendChild(p))}if(!n.replaceMode&&(d.el=d.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var b=document.createElement("div");b.className="single-spa-container",p.appendChild(b)}r.domEl=p,d.render||d.template||!n.rootComponent||(d.render=function(f){return f(n.rootComponent)}),d.data||(d.data={});var h=d.data;if(d.data=function(){return ks(ks({},typeof h=="function"?h.call(this,this):h),t)},n.createApp){if(r.vueInstance=n.createApp(d),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return r.root=r.vueInstance.mount(d.el),e[t.name]=r,r.vueInstance});r.root=r.vueInstance.mount(d.el)}else if(r.vueInstance=new n.Vue(d),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return e[t.name]=r,r.vueInstance});return e[t.name]=r,r.vueInstance})})}function px(n,e,t){return Promise.resolve().then(function(){var r=e[t.name],d=ks(ks({},n.appOptions.data||{}),t),p=r.root||r.vueInstance;for(var g in d)p[g]=d[g]})}function fx(n,e,t){return Promise.resolve().then(function(){var r=e[t.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const gx=(n,e)=>{const t=n.__vccOpts||n;for(const[r,d]of e)t[r]=d;return t},mx={};function vx(n,e){const t=Ue("router-view"),r=Ue("v-app");return ot(),jt(r,{id:"innerapp"},{default:Pe(()=>[je(t)]),_:1})}const yx=gx(mx,[["render",vx]]),df=function(n){var e;!n.name!=="NotFound"&&(n.path=`/tools/admin/${n.path.replace(/^\//,"")}`),(e=n.children)==null||e.forEach(df)},VF="modulepreload",qF=function(n){return"/"+n},KF={},rt=function(e,t,r){let d=Promise.resolve();function p(g){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=g,window.dispatchEvent(b),!b.defaultPrevented)throw g}return d.then(g=>{for(const b of g||[])b.status==="rejected"&&p(b.reason);return e().catch(p)})},to=pr("d",(n,e)=>{const t=n.__vccOpts||n;for(const[r,d]of e)t[r]=d;return t}),bx="/icons/customIcons.svg",Tu={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return bx+"#"+this.icon}}},pf=()=>{Vp(n=>({v259824e2:n.color}))},ff=Tu.setup;Tu.setup=ff?(n,e)=>(pf(),ff(n,e)):pf;const wx={class:"cosmos-custom-icon"},xx={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},Cx=["href"];function kx(n,e,t,r,d,p){return ot(),rn("span",wx,[(ot(),rn("svg",xx,[Fn("use",{href:p.iconSrc},null,8,Cx)]))])}const Ax=to(Tu,[["render",kx],["__scopeId","data-v-4b6f1199"]]),Nl=6e4,Mu=36e5,Sx=1e3,gf=Symbol.for("constructDateFrom");function lr(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&gf in n?n[gf](e):n instanceof Date?new n.constructor(e):new Date(e)}function In(n,e){return lr(e||n,n)}let _x={};function oa(){return _x}function Jo(n,e){var t,r,d,p;const g=oa(),b=(e==null?void 0:e.weekStartsOn)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.weekStartsOn)??g.weekStartsOn??((p=(d=g.locale)==null?void 0:d.options)==null?void 0:p.weekStartsOn)??0,h=In(n,e==null?void 0:e.in),f=h.getDay(),s=(f<b?7:0)+f-b;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function sa(n,e){return Jo(n,{...e,weekStartsOn:1})}function mf(n,e){const t=In(n,void 0),r=t.getFullYear(),d=lr(t,0);d.setFullYear(r+1,0,4),d.setHours(0,0,0,0);const p=sa(d),g=lr(t,0);g.setFullYear(r,0,4),g.setHours(0,0,0,0);const b=sa(g);return t.getTime()>=p.getTime()?r+1:t.getTime()>=b.getTime()?r:r-1}function Dl(n){const e=In(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function $x(n,...e){const t=lr.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function vf(n,e){const t=In(n,void 0);return t.setHours(0,0,0,0),t}function Tx(n,e,t){const[r,d]=$x(void 0,n,e),p=vf(r),g=vf(d),b=+p-Dl(p),h=+g-Dl(g);return Math.round((b-h)/864e5)}function Mx(n,e){const t=mf(n),r=lr(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),sa(r)}function Ex(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function yf(n){return!(!Ex(n)&&typeof n!="number"||isNaN(+In(n)))}function Ix(n,e){const t=In(n,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const Rx={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"}},Lx=(n,e,t)=>{let r;const d=Rx[n];return typeof d=="string"?r=d:e===1?r=d.one:r=d.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Eu(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Ox={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Dx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fx={date:Eu({formats:Ox,defaultWidth:"full"}),time:Eu({formats:Nx,defaultWidth:"full"}),dateTime:Eu({formats:Dx,defaultWidth:"full"})},Px={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wx=(n,e,t,r)=>Px[n];function Ba(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let d;if(r==="formatting"&&n.formattingValues){const g=n.defaultFormattingWidth||n.defaultWidth,b=t!=null&&t.width?String(t.width):g;d=n.formattingValues[b]||n.formattingValues[g]}else{const g=n.defaultWidth,b=t!=null&&t.width?String(t.width):n.defaultWidth;d=n.values[b]||n.values[g]}const p=n.argumentCallback?n.argumentCallback(e):e;return d[p]}}const Bx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Hx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zx={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"]},jx={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"]},Ux={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"}},Vx={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"}},qx=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Kx={ordinalNumber:qx,era:Ba({values:Bx,defaultWidth:"wide"}),quarter:Ba({values:Hx,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Ba({values:zx,defaultWidth:"wide"}),day:Ba({values:jx,defaultWidth:"wide"}),dayPeriod:Ba({values:Ux,defaultWidth:"wide",formattingValues:Vx,defaultFormattingWidth:"wide"})};function Ha(n){return(e,t={})=>{const r=t.width,d=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],p=e.match(d);if(!p)return null;const g=p[0],b=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(b)?Yx(b,a=>a.test(g)):Gx(b,a=>a.test(g));let f;f=n.valueCallback?n.valueCallback(h):h,f=t.valueCallback?t.valueCallback(f):f;const s=e.slice(g.length);return{value:f,rest:s}}}function Gx(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function Yx(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function Xx(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const d=r[0],p=e.match(n.parsePattern);if(!p)return null;let g=n.valueCallback?n.valueCallback(p[0]):p[0];g=t.valueCallback?t.valueCallback(g):g;const b=e.slice(d.length);return{value:g,rest:b}}}const Zx=/^(\d+)(th|st|nd|rd)?/i,Qx=/\d+/i,Jx={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},e1={any:[/^b/i,/^(a|c)/i]},t1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},n1={any:[/1/i,/2/i,/3/i,/4/i]},r1={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},i1={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]},o1={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},s1={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]},a1={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},l1={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}},c1={ordinalNumber:Xx({matchPattern:Zx,parsePattern:Qx,valueCallback:n=>parseInt(n,10)}),era:Ha({matchPatterns:Jx,defaultMatchWidth:"wide",parsePatterns:e1,defaultParseWidth:"any"}),quarter:Ha({matchPatterns:t1,defaultMatchWidth:"wide",parsePatterns:n1,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Ha({matchPatterns:r1,defaultMatchWidth:"wide",parsePatterns:i1,defaultParseWidth:"any"}),day:Ha({matchPatterns:o1,defaultMatchWidth:"wide",parsePatterns:s1,defaultParseWidth:"any"}),dayPeriod:Ha({matchPatterns:a1,defaultMatchWidth:"any",parsePatterns:l1,defaultParseWidth:"any"})},bf={code:"en-US",formatDistance:Lx,formatLong:Fx,formatRelative:Wx,localize:Kx,match:c1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function u1(n,e){const t=In(n,void 0);return Tx(t,Ix(t))+1}function wf(n,e){const t=In(n,void 0),r=+sa(t)-+Mx(t);return Math.round(r/6048e5)+1}function Iu(n,e){var t,r,d,p;const g=In(n,e==null?void 0:e.in),b=g.getFullYear(),h=oa(),f=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((p=(d=h.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=lr((e==null?void 0:e.in)||n,0);s.setFullYear(b+1,0,f),s.setHours(0,0,0,0);const a=Jo(s,e),u=lr((e==null?void 0:e.in)||n,0);u.setFullYear(b,0,f),u.setHours(0,0,0,0);const c=Jo(u,e);return+g>=+a?b+1:+g>=+c?b:b-1}function h1(n,e){var t,r,d,p;const g=oa(),b=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??g.firstWeekContainsDate??((p=(d=g.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,h=Iu(n,e),f=lr((e==null?void 0:e.in)||n,0);return f.setFullYear(h,0,b),f.setHours(0,0,0,0),Jo(f,e)}function xf(n,e){const t=In(n,e==null?void 0:e.in),r=+Jo(t,e)-+h1(t,e);return Math.round(r/6048e5)+1}function hn(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const es={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return hn(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):hn(t+1,2)},d(n,e){return hn(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return hn(n.getHours()%12||12,e.length)},H(n,e){return hn(n.getHours(),e.length)},m(n,e){return hn(n.getMinutes(),e.length)},s(n,e){return hn(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),d=Math.trunc(r*Math.pow(10,t-3));return hn(d,e.length)}},aa={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Cf={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),d=r>0?r:1-r;return t.ordinalNumber(d,{unit:"year"})}return es.y(n,e)},Y:function(n,e,t,r){const d=Iu(n,r),p=d>0?d:1-d;if(e==="YY"){const g=p%100;return hn(g,2)}return e==="Yo"?t.ordinalNumber(p,{unit:"year"}):hn(p,e.length)},R:function(n,e){const t=mf(n);return hn(t,e.length)},u:function(n,e){const t=n.getFullYear();return hn(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return hn(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return hn(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return es.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return hn(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const d=xf(n,r);return e==="wo"?t.ordinalNumber(d,{unit:"week"}):hn(d,e.length)},I:function(n,e,t){const r=wf(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):hn(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):es.d(n,e)},D:function(n,e,t){const r=u1(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):hn(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const d=n.getDay(),p=(d-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(p);case"ee":return hn(p,2);case"eo":return t.ordinalNumber(p,{unit:"day"});case"eee":return t.day(d,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(d,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(d,{width:"short",context:"formatting"});case"eeee":default:return t.day(d,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const d=n.getDay(),p=(d-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(p);case"cc":return hn(p,e.length);case"co":return t.ordinalNumber(p,{unit:"day"});case"ccc":return t.day(d,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(d,{width:"narrow",context:"standalone"});case"cccccc":return t.day(d,{width:"short",context:"standalone"});case"cccc":default:return t.day(d,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),d=r===0?7:r;switch(e){case"i":return String(d);case"ii":return hn(d,e.length);case"io":return t.ordinalNumber(d,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const r=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let d;switch(r===12?d=aa.noon:r===0?d=aa.midnight:d=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(d,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let d;switch(r>=17?d=aa.evening:r>=12?d=aa.afternoon:r>=4?d=aa.morning:d=aa.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(d,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return es.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):es.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):hn(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):hn(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):es.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):es.s(n,e)},S:function(n,e){return es.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Af(r);case"XXXX":case"XX":return Ss(r);case"XXXXX":case"XXX":default:return Ss(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return Af(r);case"xxxx":case"xx":return Ss(r);case"xxxxx":case"xxx":default:return Ss(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+kf(r,":");case"OOOO":default:return"GMT"+Ss(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+kf(r,":");case"zzzz":default:return"GMT"+Ss(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return hn(r,e.length)},T:function(n,e,t){return hn(+n,e.length)}};function kf(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Math.trunc(r/60),p=r%60;return p===0?t+String(d):t+String(d)+e+hn(p,2)}function Af(n,e){return n%60===0?(n>0?"-":"+")+hn(Math.abs(n)/60,2):Ss(n,e)}function Ss(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=hn(Math.trunc(r/60),2),p=hn(r%60,2);return t+d+e+p}const Sf=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},_f=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},d1=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],d=t[2];if(!d)return Sf(n,e);let p;switch(r){case"P":p=e.dateTime({width:"short"});break;case"PP":p=e.dateTime({width:"medium"});break;case"PPP":p=e.dateTime({width:"long"});break;case"PPPP":default:p=e.dateTime({width:"full"});break}return p.replace("{{date}}",Sf(r,e)).replace("{{time}}",_f(d,e))},Ru={p:_f,P:d1},p1=/^D+$/,f1=/^Y+$/,g1=["D","DD","YY","YYYY"];function $f(n){return p1.test(n)}function Tf(n){return f1.test(n)}function Lu(n,e,t){const r=m1(n,e,t);if(console.warn(r),g1.includes(n))throw new RangeError(r)}function m1(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const v1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b1=/^'([^]*?)'?$/,w1=/''/g,x1=/[a-zA-Z]/;function ts(n,e,t){var r,d,p,g,b,h,f,s;const a=oa(),u=(t==null?void 0:t.locale)??a.locale??bf,c=(t==null?void 0:t.firstWeekContainsDate)??((d=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((g=(p=a.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,i=(t==null?void 0:t.weekStartsOn)??((h=(b=t==null?void 0:t.locale)==null?void 0:b.options)==null?void 0:h.weekStartsOn)??a.weekStartsOn??((s=(f=a.locale)==null?void 0:f.options)==null?void 0:s.weekStartsOn)??0,l=In(n,t==null?void 0:t.in);if(!yf(l))throw new RangeError("Invalid time value");let m=e.match(y1).map(x=>{const M=x[0];if(M==="p"||M==="P"){const _=Ru[M];return _(x,u.formatLong)}return x}).join("").match(v1).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const M=x[0];if(M==="'")return{isToken:!1,value:C1(x)};if(Cf[M])return{isToken:!0,value:x};if(M.match(x1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(m=u.localize.preprocessor(l,m));const w={firstWeekContainsDate:c,weekStartsOn:i,locale:u};return m.map(x=>{if(!x.isToken)return x.value;const M=x.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Tf(M)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&$f(M))&&Lu(M,e,String(n));const _=Cf[M[0]];return _(l,M,u.localize,w)}).join("")}function C1(n){const e=n.match(b1);return e?e[1].replace(w1,"'"):n}var ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mf={exports:{}},Ef;function k1(){return Ef||(Ef=1,function(n,e){(function(){var t="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var d=function(s,a,u){if(typeof s!="string"){d.original?d.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=a),d.modules[s]||(d.payloads[s]=u,d.modules[s]=null)};d.modules={},d.payloads={};var p=function(s,a,u){if(typeof a=="string"){var c=h(s,a);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(a)==="[object Array]"){for(var i=[],l=0,m=a.length;l<m;++l){var w=h(s,a[l]);if(w==null&&g.original)return;i.push(w)}return u&&u.apply(null,i)||!0}},g=function(s,a){var u=p("",s,a);return u==null&&g.original?g.original.apply(this,arguments):u},b=function(s,a){if(a.indexOf("!")!==-1){var u=a.split("!");return b(s,u[0])+"!"+b(s,u[1])}if(a.charAt(0)=="."){var c=s.split("/").slice(0,-1).join("/");for(a=c+"/"+a;a.indexOf(".")!==-1&&i!=a;){var i=a;a=a.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},h=function(s,a){a=b(s,a);var u=d.modules[a];if(!u){if(u=d.payloads[a],typeof u=="function"){var c={},i={id:a,uri:"",exports:c,packaged:!0},l=function(w,x){return p(a,w,x)},m=u(l,c,i);c=m||i.exports,d.modules[a]=c,delete d.payloads[a]}u=d.modules[a]=c||u}return u};function f(s){var a=r;r[s]||(r[s]={}),a=r[s],(!a.define||!a.define.packaged)&&(d.original=a.define,a.define=d,a.define.packaged=!0),(!a.require||!a.require.packaged)&&(g.original=a.require,a.require=g,a.require.packaged=!0)}f(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,r,d){function p(g,b,h){Object.defineProperty(g,b,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(g,b){return b=b||0,this.lastIndexOf(g,b)===b}),String.prototype.endsWith||p(String.prototype,"endsWith",function(g,b){var h=this;(b===void 0||b>h.length)&&(b=h.length),b-=g.length;var f=h.indexOf(g,b);return f!==-1&&f===b}),String.prototype.repeat||p(String.prototype,"repeat",function(g){for(var b="",h=this;g>0;)g&1&&(b+=h),(g>>=1)&&(h+=h);return b}),String.prototype.includes||p(String.prototype,"includes",function(g,b){return this.indexOf(g,b)!=-1}),Object.assign||(Object.assign=function(g){if(g==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(g),h=1;h<arguments.length;h++){var f=arguments[h];f!=null&&Object.keys(f).forEach(function(s){b[s]=f[s]})}return b}),Object.values||(Object.values=function(g){return Object.keys(g).map(function(b){return g[b]})}),Array.prototype.find||p(Array.prototype,"find",function(g){for(var b=this.length,h=arguments[1],f=0;f<b;f++){var s=this[f];if(g.call(h,s,f,this))return s}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(g){for(var b=this.length,h=arguments[1],f=0;f<b;f++){var s=this[f];if(g.call(h,s,f,this))return f}}),Array.prototype.includes||p(Array.prototype,"includes",function(g,b){return this.indexOf(g,b)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(g){for(var b=this,h=b.length>>>0,f=arguments[1],s=f>>0,a=s<0?Math.max(h+s,0):Math.min(s,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);a<i;)b[a]=g,a++;return b}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,r,d){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,r,d){r.deepCopy=function p(g){if(typeof g!="object"||!g)return g;var b;if(Array.isArray(g)){b=[];for(var h=0;h<g.length;h++)b[h]=p(g[h]);return b}if(Object.prototype.toString.call(g)!=="[object Object]")return g;b={};for(var h in g)b[h]=p(g[h]);return b}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,r,d){r.last=function(b){return b[b.length-1]},r.stringReverse=function(b){return b.split("").reverse().join("")},r.stringRepeat=function(b,h){for(var f="";h>0;)h&1&&(f+=b),(h>>=1)&&(b+=b);return f};var p=/^\s\s*/,g=/\s\s*$/;r.stringTrimLeft=function(b){return b.replace(p,"")},r.stringTrimRight=function(b){return b.replace(g,"")},r.copyObject=function(b){var h={};for(var f in b)h[f]=b[f];return h},r.copyArray=function(b){for(var h=[],f=0,s=b.length;f<s;f++)b[f]&&typeof b[f]=="object"?h[f]=this.copyObject(b[f]):h[f]=b[f];return h},r.deepCopy=t("./deep_copy").deepCopy,r.arrayToMap=function(b){for(var h={},f=0;f<b.length;f++)h[b[f]]=1;return h},r.createMap=function(b){var h=Object.create(null);for(var f in b)h[f]=b[f];return h},r.arrayRemove=function(b,h){for(var f=0;f<=b.length;f++)h===b[f]&&b.splice(f,1)},r.escapeRegExp=function(b){return b.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(b){return(""+b).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(b,h){var f=[];return b.replace(h,function(s){f.push({offset:arguments[arguments.length-2],length:s.length})}),f},r.deferredCall=function(b){var h=null,f=function(){h=null,b()},s=function(a){return s.cancel(),h=setTimeout(f,a||0),s};return s.schedule=s,s.call=function(){return this.cancel(),b(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},r.delayedCall=function(b,h){var f=null,s=function(){f=null,b()},a=function(u){f==null&&(f=setTimeout(s,u||h))};return a.delay=function(u){f&&clearTimeout(f),f=setTimeout(s,u||h)},a.schedule=a,a.call=function(){this.cancel(),b()},a.cancel=function(){f&&clearTimeout(f),f=null},a.isPending=function(){return f},a},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(b,h,f){return f&&b.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,r,d){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},g=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),b=p.userAgent||"",h=p.appName||"";r.isWin=g=="win",r.isMac=g=="mac",r.isLinux=g=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((b.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((b.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=b.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(b.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(b.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(b.split(" Edge/")[1])||void 0,r.isAIR=b.indexOf("AdobeAIR")>=0,r.isAndroid=b.indexOf("Android")>=0,r.isChromeOS=b.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(b)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,r,d){var p=t("./useragent"),g="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,l){if(typeof c=="string"&&c){var m=document.createTextNode(c);return i&&i.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var w=[],x=0;x<c.length;x++){var M=u(c[x],i,l);M&&w.push(M)}return w}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],_,l);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"?l&&(l[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||g,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 l=i.indexOf(c);if(l==-1)break;i.splice(l,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),l=!0;;){var m=i.indexOf(c);if(m==-1)break;l=!1,i.splice(m,1)}return l&&i.push(c),u.className=i.join(" "),l},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,l;if(c=c||document,l=c.querySelectorAll("style")){for(;i<l.length;)if(l[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var b,h=[];r.useStrictCSP=function(u){b=u,u==!1?f():h||(h=[])};function f(){var u=h;h=null,u&&u.forEach(function(c){s(c[0],c[1])})}function s(u,c,i){if(!(typeof document>"u")){if(h){if(i)f();else if(i===!1)return h.push([u,c])}if(!b){var l=i;!i||!i.getRootNode?l=document:(l=i.getRootNode(),(!l||l==i)&&(l=document));var m=l.ownerDocument||l;if(c&&r.hasCssString(c,l))return null;c&&(u+=`
|
|
1
|
+
System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(pr,tt){"use strict";var Ue,jt,ot,Pe,je,rn,Pn,Vp,qp,Kp,Cn,ci,vo,Gp,Rt,Ll,Au,Kr,Cs,ia,Ol,Wa,Yp,Xp,Zp,Qp,Su,Jp,ef,tf,nf,rf,_u,of,sf,af,lf,$u,cf,uf;return{setters:[Ct=>{Ue=Ct.resolveComponent,jt=Ct.createBlock,ot=Ct.openBlock,Pe=Ct.withCtx,je=Ct.createVNode,rn=Ct.createElementBlock,Pn=Ct.createElementVNode,Vp=Ct.useCssVars,qp=Ct.defineAsyncComponent,Kp=Ct.Teleport,Cn=Ct.toDisplayString,ci=Ct.Fragment,vo=Ct.renderList,Gp=Ct.ref,Rt=Ct.createTextVNode,Ll=Ct.mergeProps,Au=Ct.createSlots,Kr=Ct.createCommentVNode,Cs=Ct.normalizeStyle,ia=Ct.h,Ol=Ct.withKeys,Wa=Ct.withModifiers,Yp=Ct.toRaw,Xp=Ct.defineComponent,Zp=Ct.warn,Qp=Ct.inject,Su=Ct.computed,Jp=Ct.shallowRef,ef=Ct.watchEffect,tf=Ct.normalizeClass,nf=Ct.getCurrentInstance,rf=Ct.provide,_u=Ct.createApp,of=Ct.withDirectives,sf=Ct.vShow},Ct=>{af=Ct.createRouter,lf=Ct.createWebHistory},Ct=>{$u=Ct.getMountedApps},Ct=>{cf=Ct.createStore},Ct=>{uf=Ct.createVuetify}],execute:function(){pr({$:yf,c:ME,f:Wr,l:Rn,p:ts,y:lr,z:Ed});var Ct=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hf(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(d){return Object.getOwnPropertyDescriptor(n,d).enumerable})),t.push.apply(t,r)}return t}function ks(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hf(Object(t),!0).forEach(function(r){lx(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):hf(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function lx(n,e,t){return(e=function(r){var d=function(p,g){if(As(p)!=="object"||p===null)return p;var b=p[Symbol.toPrimitive];if(b!==void 0){var h=b.call(p,g);if(As(h)!=="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(p)}(r,"string");return As(d)==="symbol"?d:String(d)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function As(n){return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(n)}(function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var e=function(t){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var r,d=String(t),p=d.length,g=-1,b="",h=d.charCodeAt(0);++g<p;)(r=d.charCodeAt(g))!=0?b+=r>=1&&r<=31||r==127||g==0&&r>=48&&r<=57||g==1&&r>=48&&r<=57&&h==45?"\\"+r.toString(16)+" ":g==0&&p==1&&r==45||!(r>=128||r==45||r==95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122)?"\\"+d.charAt(g):d.charAt(g):b+="�";return b};n.CSS||(n.CSS={}),n.CSS.escape=e})(Ct);var cx={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function ux(n){if(As(n)!=="object")throw new Error("single-spa-vue requires a configuration object");var e=ks(ks({},cx),n);if(!e.Vue&&!e.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!e.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(e.appOptions.el&&typeof e.appOptions.el!="string"&&!(e.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(As(e.appOptions.el)));e.createApp=e.createApp||e.Vue&&e.Vue.createApp;var t={};return{bootstrap:hx.bind(null,e,t),mount:dx.bind(null,e,t),unmount:fx.bind(null,e,t),update:px.bind(null,e,t)}}function hx(n){return n.loadRootComponent?n.loadRootComponent().then(function(e){return n.rootComponent=e}):Promise.resolve()}function dx(n,e,t){var r={};return Promise.resolve().then(function(){return function(d,p){return typeof d.appOptions=="function"?d.appOptions(p):Promise.resolve(ks({},d.appOptions))}(n,t).then(function(d){var p;if(t.domElement&&!d.el&&(d.el=t.domElement),d.el)if(typeof d.el=="string"){if(!(p=document.querySelector(d.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(d.el))}else(p=d.el).id||(p.id="single-spa-application:".concat(t.name)),d.el="#".concat(CSS.escape(p.id));else{var g="single-spa-application:".concat(t.name);d.el="#".concat(CSS.escape(g)),(p=document.getElementById(g))||((p=document.createElement("div")).id=g,document.body.appendChild(p))}if(!n.replaceMode&&(d.el=d.el+" .single-spa-container",!p.querySelector(".single-spa-container"))){var b=document.createElement("div");b.className="single-spa-container",p.appendChild(b)}r.domEl=p,d.render||d.template||!n.rootComponent||(d.render=function(f){return f(n.rootComponent)}),d.data||(d.data={});var h=d.data;if(d.data=function(){return ks(ks({},typeof h=="function"?h.call(this,this):h),t)},n.createApp){if(r.vueInstance=n.createApp(d),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return r.root=r.vueInstance.mount(d.el),e[t.name]=r,r.vueInstance});r.root=r.vueInstance.mount(d.el)}else if(r.vueInstance=new n.Vue(d),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),n.handleInstance)return Promise.resolve(n.handleInstance(r.vueInstance,t)).then(function(){return e[t.name]=r,r.vueInstance});return e[t.name]=r,r.vueInstance})})}function px(n,e,t){return Promise.resolve().then(function(){var r=e[t.name],d=ks(ks({},n.appOptions.data||{}),t),p=r.root||r.vueInstance;for(var g in d)p[g]=d[g]})}function fx(n,e,t){return Promise.resolve().then(function(){var r=e[t.name];n.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}const gx=(n,e)=>{const t=n.__vccOpts||n;for(const[r,d]of e)t[r]=d;return t},mx={};function vx(n,e){const t=Ue("router-view"),r=Ue("v-app");return ot(),jt(r,{id:"innerapp"},{default:Pe(()=>[je(t)]),_:1})}const yx=gx(mx,[["render",vx]]),df=function(n){var e;!n.name!=="NotFound"&&(n.path=`/tools/admin/${n.path.replace(/^\//,"")}`),(e=n.children)==null||e.forEach(df)},VF="modulepreload",qF=function(n){return"/"+n},KF={},nt=function(e,t,r){let d=Promise.resolve();function p(g){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=g,window.dispatchEvent(b),!b.defaultPrevented)throw g}return d.then(g=>{for(const b of g||[])b.status==="rejected"&&p(b.reason);return e().catch(p)})},to=pr("d",(n,e)=>{const t=n.__vccOpts||n;for(const[r,d]of e)t[r]=d;return t}),bx="/icons/customIcons.svg",Tu={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{iconSrc:function(){return bx+"#"+this.icon}}},pf=()=>{Vp(n=>({v6d77344f:n.color}))},ff=Tu.setup;Tu.setup=ff?(n,e)=>(pf(),ff(n,e)):pf;const wx={class:"cosmos-custom-icon"},xx={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",focusable:"false"},Cx=["href"];function kx(n,e,t,r,d,p){return ot(),rn("span",wx,[(ot(),rn("svg",xx,[Pn("use",{href:p.iconSrc},null,8,Cx)]))])}const Ax=to(Tu,[["render",kx],["__scopeId","data-v-c00c8204"]]),Nl=6e4,Mu=36e5,Sx=1e3,gf=Symbol.for("constructDateFrom");function lr(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&gf in n?n[gf](e):n instanceof Date?new n.constructor(e):new Date(e)}function Rn(n,e){return lr(e||n,n)}let _x={};function oa(){return _x}function Jo(n,e){var t,r,d,p;const g=oa(),b=(e==null?void 0:e.weekStartsOn)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.weekStartsOn)??g.weekStartsOn??((p=(d=g.locale)==null?void 0:d.options)==null?void 0:p.weekStartsOn)??0,h=Rn(n,e==null?void 0:e.in),f=h.getDay(),s=(f<b?7:0)+f-b;return h.setDate(h.getDate()-s),h.setHours(0,0,0,0),h}function sa(n,e){return Jo(n,{...e,weekStartsOn:1})}function mf(n,e){const t=Rn(n,void 0),r=t.getFullYear(),d=lr(t,0);d.setFullYear(r+1,0,4),d.setHours(0,0,0,0);const p=sa(d),g=lr(t,0);g.setFullYear(r,0,4),g.setHours(0,0,0,0);const b=sa(g);return t.getTime()>=p.getTime()?r+1:t.getTime()>=b.getTime()?r:r-1}function Dl(n){const e=Rn(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function $x(n,...e){const t=lr.bind(null,e.find(r=>typeof r=="object"));return e.map(t)}function vf(n,e){const t=Rn(n,void 0);return t.setHours(0,0,0,0),t}function Tx(n,e,t){const[r,d]=$x(void 0,n,e),p=vf(r),g=vf(d),b=+p-Dl(p),h=+g-Dl(g);return Math.round((b-h)/864e5)}function Mx(n,e){const t=mf(n),r=lr(n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),sa(r)}function Ex(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function yf(n){return!(!Ex(n)&&typeof n!="number"||isNaN(+Rn(n)))}function Ix(n,e){const t=Rn(n,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const Rx={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"}},Lx=(n,e,t)=>{let r;const d=Rx[n];return typeof d=="string"?r=d:e===1?r=d.one:r=d.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Eu(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Ox={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Nx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Dx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fx={date:Eu({formats:Ox,defaultWidth:"full"}),time:Eu({formats:Nx,defaultWidth:"full"}),dateTime:Eu({formats:Dx,defaultWidth:"full"})},Px={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Wx=(n,e,t,r)=>Px[n];function Ba(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let d;if(r==="formatting"&&n.formattingValues){const g=n.defaultFormattingWidth||n.defaultWidth,b=t!=null&&t.width?String(t.width):g;d=n.formattingValues[b]||n.formattingValues[g]}else{const g=n.defaultWidth,b=t!=null&&t.width?String(t.width):n.defaultWidth;d=n.values[b]||n.values[g]}const p=n.argumentCallback?n.argumentCallback(e):e;return d[p]}}const Bx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Hx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zx={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"]},jx={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"]},Ux={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"}},Vx={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"}},qx=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Kx={ordinalNumber:qx,era:Ba({values:Bx,defaultWidth:"wide"}),quarter:Ba({values:Hx,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Ba({values:zx,defaultWidth:"wide"}),day:Ba({values:jx,defaultWidth:"wide"}),dayPeriod:Ba({values:Ux,defaultWidth:"wide",formattingValues:Vx,defaultFormattingWidth:"wide"})};function Ha(n){return(e,t={})=>{const r=t.width,d=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],p=e.match(d);if(!p)return null;const g=p[0],b=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],h=Array.isArray(b)?Yx(b,a=>a.test(g)):Gx(b,a=>a.test(g));let f;f=n.valueCallback?n.valueCallback(h):h,f=t.valueCallback?t.valueCallback(f):f;const s=e.slice(g.length);return{value:f,rest:s}}}function Gx(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function Yx(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function Xx(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const d=r[0],p=e.match(n.parsePattern);if(!p)return null;let g=n.valueCallback?n.valueCallback(p[0]):p[0];g=t.valueCallback?t.valueCallback(g):g;const b=e.slice(d.length);return{value:g,rest:b}}}const Zx=/^(\d+)(th|st|nd|rd)?/i,Qx=/\d+/i,Jx={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},e1={any:[/^b/i,/^(a|c)/i]},t1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},n1={any:[/1/i,/2/i,/3/i,/4/i]},r1={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},i1={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]},o1={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},s1={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]},a1={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},l1={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}},c1={ordinalNumber:Xx({matchPattern:Zx,parsePattern:Qx,valueCallback:n=>parseInt(n,10)}),era:Ha({matchPatterns:Jx,defaultMatchWidth:"wide",parsePatterns:e1,defaultParseWidth:"any"}),quarter:Ha({matchPatterns:t1,defaultMatchWidth:"wide",parsePatterns:n1,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Ha({matchPatterns:r1,defaultMatchWidth:"wide",parsePatterns:i1,defaultParseWidth:"any"}),day:Ha({matchPatterns:o1,defaultMatchWidth:"wide",parsePatterns:s1,defaultParseWidth:"any"}),dayPeriod:Ha({matchPatterns:a1,defaultMatchWidth:"any",parsePatterns:l1,defaultParseWidth:"any"})},bf={code:"en-US",formatDistance:Lx,formatLong:Fx,formatRelative:Wx,localize:Kx,match:c1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function u1(n,e){const t=Rn(n,void 0);return Tx(t,Ix(t))+1}function wf(n,e){const t=Rn(n,void 0),r=+sa(t)-+Mx(t);return Math.round(r/6048e5)+1}function Iu(n,e){var t,r,d,p;const g=Rn(n,e==null?void 0:e.in),b=g.getFullYear(),h=oa(),f=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??h.firstWeekContainsDate??((p=(d=h.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,s=lr((e==null?void 0:e.in)||n,0);s.setFullYear(b+1,0,f),s.setHours(0,0,0,0);const a=Jo(s,e),u=lr((e==null?void 0:e.in)||n,0);u.setFullYear(b,0,f),u.setHours(0,0,0,0);const c=Jo(u,e);return+g>=+a?b+1:+g>=+c?b:b-1}function h1(n,e){var t,r,d,p;const g=oa(),b=(e==null?void 0:e.firstWeekContainsDate)??((r=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:r.firstWeekContainsDate)??g.firstWeekContainsDate??((p=(d=g.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,h=Iu(n,e),f=lr((e==null?void 0:e.in)||n,0);return f.setFullYear(h,0,b),f.setHours(0,0,0,0),Jo(f,e)}function xf(n,e){const t=Rn(n,e==null?void 0:e.in),r=+Jo(t,e)-+h1(t,e);return Math.round(r/6048e5)+1}function hn(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const es={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return hn(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):hn(t+1,2)},d(n,e){return hn(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return hn(n.getHours()%12||12,e.length)},H(n,e){return hn(n.getHours(),e.length)},m(n,e){return hn(n.getMinutes(),e.length)},s(n,e){return hn(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),d=Math.trunc(r*Math.pow(10,t-3));return hn(d,e.length)}},aa={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Cf={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),d=r>0?r:1-r;return t.ordinalNumber(d,{unit:"year"})}return es.y(n,e)},Y:function(n,e,t,r){const d=Iu(n,r),p=d>0?d:1-d;if(e==="YY"){const g=p%100;return hn(g,2)}return e==="Yo"?t.ordinalNumber(p,{unit:"year"}):hn(p,e.length)},R:function(n,e){const t=mf(n);return hn(t,e.length)},u:function(n,e){const t=n.getFullYear();return hn(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return hn(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return hn(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return es.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return hn(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const d=xf(n,r);return e==="wo"?t.ordinalNumber(d,{unit:"week"}):hn(d,e.length)},I:function(n,e,t){const r=wf(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):hn(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):es.d(n,e)},D:function(n,e,t){const r=u1(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):hn(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const d=n.getDay(),p=(d-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(p);case"ee":return hn(p,2);case"eo":return t.ordinalNumber(p,{unit:"day"});case"eee":return t.day(d,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(d,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(d,{width:"short",context:"formatting"});case"eeee":default:return t.day(d,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const d=n.getDay(),p=(d-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(p);case"cc":return hn(p,e.length);case"co":return t.ordinalNumber(p,{unit:"day"});case"ccc":return t.day(d,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(d,{width:"narrow",context:"standalone"});case"cccccc":return t.day(d,{width:"short",context:"standalone"});case"cccc":default:return t.day(d,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),d=r===0?7:r;switch(e){case"i":return String(d);case"ii":return hn(d,e.length);case"io":return t.ordinalNumber(d,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const r=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let d;switch(r===12?d=aa.noon:r===0?d=aa.midnight:d=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(d,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(d,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let d;switch(r>=17?d=aa.evening:r>=12?d=aa.afternoon:r>=4?d=aa.morning:d=aa.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(d,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(d,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(d,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return es.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):es.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):hn(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):hn(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):es.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):es.s(n,e)},S:function(n,e){return es.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Af(r);case"XXXX":case"XX":return Ss(r);case"XXXXX":case"XXX":default:return Ss(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return Af(r);case"xxxx":case"xx":return Ss(r);case"xxxxx":case"xxx":default:return Ss(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+kf(r,":");case"OOOO":default:return"GMT"+Ss(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+kf(r,":");case"zzzz":default:return"GMT"+Ss(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return hn(r,e.length)},T:function(n,e,t){return hn(+n,e.length)}};function kf(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Math.trunc(r/60),p=r%60;return p===0?t+String(d):t+String(d)+e+hn(p,2)}function Af(n,e){return n%60===0?(n>0?"-":"+")+hn(Math.abs(n)/60,2):Ss(n,e)}function Ss(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=hn(Math.trunc(r/60),2),p=hn(r%60,2);return t+d+e+p}const Sf=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},_f=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},d1=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],d=t[2];if(!d)return Sf(n,e);let p;switch(r){case"P":p=e.dateTime({width:"short"});break;case"PP":p=e.dateTime({width:"medium"});break;case"PPP":p=e.dateTime({width:"long"});break;case"PPPP":default:p=e.dateTime({width:"full"});break}return p.replace("{{date}}",Sf(r,e)).replace("{{time}}",_f(d,e))},Ru={p:_f,P:d1},p1=/^D+$/,f1=/^Y+$/,g1=["D","DD","YY","YYYY"];function $f(n){return p1.test(n)}function Tf(n){return f1.test(n)}function Lu(n,e,t){const r=m1(n,e,t);if(console.warn(r),g1.includes(n))throw new RangeError(r)}function m1(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const v1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b1=/^'([^]*?)'?$/,w1=/''/g,x1=/[a-zA-Z]/;function ts(n,e,t){var r,d,p,g,b,h,f,s;const a=oa(),u=(t==null?void 0:t.locale)??a.locale??bf,c=(t==null?void 0:t.firstWeekContainsDate)??((d=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:d.firstWeekContainsDate)??a.firstWeekContainsDate??((g=(p=a.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,i=(t==null?void 0:t.weekStartsOn)??((h=(b=t==null?void 0:t.locale)==null?void 0:b.options)==null?void 0:h.weekStartsOn)??a.weekStartsOn??((s=(f=a.locale)==null?void 0:f.options)==null?void 0:s.weekStartsOn)??0,l=Rn(n,t==null?void 0:t.in);if(!yf(l))throw new RangeError("Invalid time value");let m=e.match(y1).map(x=>{const M=x[0];if(M==="p"||M==="P"){const _=Ru[M];return _(x,u.formatLong)}return x}).join("").match(v1).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const M=x[0];if(M==="'")return{isToken:!1,value:C1(x)};if(Cf[M])return{isToken:!0,value:x};if(M.match(x1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:x}});u.localize.preprocessor&&(m=u.localize.preprocessor(l,m));const w={firstWeekContainsDate:c,weekStartsOn:i,locale:u};return m.map(x=>{if(!x.isToken)return x.value;const M=x.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&Tf(M)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&$f(M))&&Lu(M,e,String(n));const _=Cf[M[0]];return _(l,M,u.localize,w)}).join("")}function C1(n){const e=n.match(b1);return e?e[1].replace(w1,"'"):n}var ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mf={exports:{}},Ef;function k1(){return Ef||(Ef=1,function(n,e){(function(){var t="ace",r=function(){return this}();!r&&typeof window<"u"&&(r=window);var d=function(s,a,u){if(typeof s!="string"){d.original?d.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(u=a),d.modules[s]||(d.payloads[s]=u,d.modules[s]=null)};d.modules={},d.payloads={};var p=function(s,a,u){if(typeof a=="string"){var c=h(s,a);if(c!=null)return u&&u(),c}else if(Object.prototype.toString.call(a)==="[object Array]"){for(var i=[],l=0,m=a.length;l<m;++l){var w=h(s,a[l]);if(w==null&&g.original)return;i.push(w)}return u&&u.apply(null,i)||!0}},g=function(s,a){var u=p("",s,a);return u==null&&g.original?g.original.apply(this,arguments):u},b=function(s,a){if(a.indexOf("!")!==-1){var u=a.split("!");return b(s,u[0])+"!"+b(s,u[1])}if(a.charAt(0)=="."){var c=s.split("/").slice(0,-1).join("/");for(a=c+"/"+a;a.indexOf(".")!==-1&&i!=a;){var i=a;a=a.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return a},h=function(s,a){a=b(s,a);var u=d.modules[a];if(!u){if(u=d.payloads[a],typeof u=="function"){var c={},i={id:a,uri:"",exports:c,packaged:!0},l=function(w,x){return p(a,w,x)},m=u(l,c,i);c=m||i.exports,d.modules[a]=c,delete d.payloads[a]}u=d.modules[a]=c||u}return u};function f(s){var a=r;r[s]||(r[s]={}),a=r[s],(!a.define||!a.define.packaged)&&(d.original=a.define,a.define=d,a.define.packaged=!0),(!a.require||!a.require.packaged)&&(g.original=a.require,a.require=g,a.require.packaged=!0)}f(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,r,d){function p(g,b,h){Object.defineProperty(g,b,{value:h,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||p(String.prototype,"startsWith",function(g,b){return b=b||0,this.lastIndexOf(g,b)===b}),String.prototype.endsWith||p(String.prototype,"endsWith",function(g,b){var h=this;(b===void 0||b>h.length)&&(b=h.length),b-=g.length;var f=h.indexOf(g,b);return f!==-1&&f===b}),String.prototype.repeat||p(String.prototype,"repeat",function(g){for(var b="",h=this;g>0;)g&1&&(b+=h),(g>>=1)&&(h+=h);return b}),String.prototype.includes||p(String.prototype,"includes",function(g,b){return this.indexOf(g,b)!=-1}),Object.assign||(Object.assign=function(g){if(g==null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(g),h=1;h<arguments.length;h++){var f=arguments[h];f!=null&&Object.keys(f).forEach(function(s){b[s]=f[s]})}return b}),Object.values||(Object.values=function(g){return Object.keys(g).map(function(b){return g[b]})}),Array.prototype.find||p(Array.prototype,"find",function(g){for(var b=this.length,h=arguments[1],f=0;f<b;f++){var s=this[f];if(g.call(h,s,f,this))return s}}),Array.prototype.findIndex||p(Array.prototype,"findIndex",function(g){for(var b=this.length,h=arguments[1],f=0;f<b;f++){var s=this[f];if(g.call(h,s,f,this))return f}}),Array.prototype.includes||p(Array.prototype,"includes",function(g,b){return this.indexOf(g,b)!=-1}),Array.prototype.fill||p(Array.prototype,"fill",function(g){for(var b=this,h=b.length>>>0,f=arguments[1],s=f>>0,a=s<0?Math.max(h+s,0):Math.min(s,h),u=arguments[2],c=u===void 0?h:u>>0,i=c<0?Math.max(h+c,0):Math.min(c,h);a<i;)b[a]=g,a++;return b}),Array.of||p(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,r,d){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,r,d){r.deepCopy=function p(g){if(typeof g!="object"||!g)return g;var b;if(Array.isArray(g)){b=[];for(var h=0;h<g.length;h++)b[h]=p(g[h]);return b}if(Object.prototype.toString.call(g)!=="[object Object]")return g;b={};for(var h in g)b[h]=p(g[h]);return b}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,r,d){r.last=function(b){return b[b.length-1]},r.stringReverse=function(b){return b.split("").reverse().join("")},r.stringRepeat=function(b,h){for(var f="";h>0;)h&1&&(f+=b),(h>>=1)&&(b+=b);return f};var p=/^\s\s*/,g=/\s\s*$/;r.stringTrimLeft=function(b){return b.replace(p,"")},r.stringTrimRight=function(b){return b.replace(g,"")},r.copyObject=function(b){var h={};for(var f in b)h[f]=b[f];return h},r.copyArray=function(b){for(var h=[],f=0,s=b.length;f<s;f++)b[f]&&typeof b[f]=="object"?h[f]=this.copyObject(b[f]):h[f]=b[f];return h},r.deepCopy=t("./deep_copy").deepCopy,r.arrayToMap=function(b){for(var h={},f=0;f<b.length;f++)h[b[f]]=1;return h},r.createMap=function(b){var h=Object.create(null);for(var f in b)h[f]=b[f];return h},r.arrayRemove=function(b,h){for(var f=0;f<=b.length;f++)h===b[f]&&b.splice(f,1)},r.escapeRegExp=function(b){return b.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},r.escapeHTML=function(b){return(""+b).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},r.getMatchOffsets=function(b,h){var f=[];return b.replace(h,function(s){f.push({offset:arguments[arguments.length-2],length:s.length})}),f},r.deferredCall=function(b){var h=null,f=function(){h=null,b()},s=function(a){return s.cancel(),h=setTimeout(f,a||0),s};return s.schedule=s,s.call=function(){return this.cancel(),b(),s},s.cancel=function(){return clearTimeout(h),h=null,s},s.isPending=function(){return h},s},r.delayedCall=function(b,h){var f=null,s=function(){f=null,b()},a=function(u){f==null&&(f=setTimeout(s,u||h))};return a.delay=function(u){f&&clearTimeout(f),f=setTimeout(s,u||h)},a.schedule=a,a.call=function(){this.cancel(),b()},a.cancel=function(){f&&clearTimeout(f),f=null},a.isPending=function(){return f},a},r.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},r.skipEmptyMatch=function(b,h,f){return f&&b.codePointAt(h)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,r,d){r.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},r.getOS=function(){return r.isMac?r.OS.MAC:r.isLinux?r.OS.LINUX:r.OS.WINDOWS};var p=typeof navigator=="object"?navigator:{},g=(/mac|win|linux/i.exec(p.platform)||["other"])[0].toLowerCase(),b=p.userAgent||"",h=p.appName||"";r.isWin=g=="win",r.isMac=g=="mac",r.isLinux=g=="linux",r.isIE=h=="Microsoft Internet Explorer"||h.indexOf("MSAppHost")>=0?parseFloat((b.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((b.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),r.isOldIE=r.isIE&&r.isIE<9,r.isGecko=r.isMozilla=b.match(/ Gecko\/\d+/),r.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",r.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0,r.isChrome=parseFloat(b.split(" Chrome/")[1])||void 0,r.isSafari=parseFloat(b.split(" Safari/")[1])&&!r.isChrome||void 0,r.isEdge=parseFloat(b.split(" Edge/")[1])||void 0,r.isAIR=b.indexOf("AdobeAIR")>=0,r.isAndroid=b.indexOf("Android")>=0,r.isChromeOS=b.indexOf(" CrOS ")>=0,r.isIOS=/iPad|iPhone|iPod/.test(b)&&!window.MSStream,r.isIOS&&(r.isMac=!0),r.isMobile=r.isIOS||r.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,r,d){var p=t("./useragent"),g="http://www.w3.org/1999/xhtml";r.buildDom=function u(c,i,l){if(typeof c=="string"&&c){var m=document.createTextNode(c);return i&&i.appendChild(m),m}if(!Array.isArray(c))return c&&c.appendChild&&i&&i.appendChild(c),c;if(typeof c[0]!="string"||!c[0]){for(var w=[],x=0;x<c.length;x++){var M=u(c[x],i,l);M&&w.push(M)}return w}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],_,l);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"?l&&(l[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||g,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 l=i.indexOf(c);if(l==-1)break;i.splice(l,1)}u.className=i.join(" ")},r.toggleCssClass=function(u,c){for(var i=u.className.split(/\s+/g),l=!0;;){var m=i.indexOf(c);if(m==-1)break;l=!1,i.splice(m,1)}return l&&i.push(c),u.className=i.join(" "),l},r.setCssClass=function(u,c,i){i?r.addCssClass(u,c):r.removeCssClass(u,c)},r.hasCssString=function(u,c){var i=0,l;if(c=c||document,l=c.querySelectorAll("style")){for(;i<l.length;)if(l[i++].id===u)return!0}},r.removeElementById=function(u,c){c=c||document,c.getElementById(u)&&c.getElementById(u).remove()};var b,h=[];r.useStrictCSP=function(u){b=u,u==!1?f():h||(h=[])};function f(){var u=h;h=null,u&&u.forEach(function(c){s(c[0],c[1])})}function s(u,c,i){if(!(typeof document>"u")){if(h){if(i)f();else if(i===!1)return h.push([u,c])}if(!b){var l=i;!i||!i.getRootNode?l=document:(l=i.getRootNode(),(!l||l==i)&&(l=document));var m=l.ownerDocument||l;if(c&&r.hasCssString(c,l))return null;c&&(u+=`
|
|
2
2
|
/*# sourceURL=ace/css/`+c+" */");var w=r.createElement("style");w.appendChild(m.createTextNode(u)),c&&(w.id=c),l==m&&(l=r.getDocumentHead(m)),l.insertBefore(w,l.firstChild)}}}if(r.importCssString=s,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),l=+c.left;Math.abs(i-l)>1&&(u.style.left=2*i-l+"px")}if(u.style.right){var i=parseFloat(u.style.right),l=window.innerWidth-c.right;Math.abs(i-l)>1&&(u.style.right=2*i-l+"px")}if(u.style.top){var i=parseFloat(u.style.top),l=+c.top;Math.abs(i-l)>1&&(u.style.top=2*i-l+"px")}if(u.style.bottom){var i=parseFloat(u.style.bottom),l=window.innerHeight-c.bottom;Math.abs(i-l)>1&&(u.style.bottom=2*i-l+"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"),l=i.style;l.position="absolute",l.left="-10000px",l.overflow="hidden",l.width="200px",l.minWidth="0px",l.height="150px",l.display="block",i.appendChild(c);var m=u&&u.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(i);var w=c.offsetWidth;l.overflow="scroll";var x=c.offsetWidth;return w===x&&(x=i.clientWidth),m.removeChild(i),w-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=p.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,p.isChromeOS&&(r.HI_DPI=!1),typeof document<"u"){var a=document.createElement("div");r.HI_DPI&&a.style.transform!==void 0&&(r.HAS_CSS_TRANSFORMS=!0),!p.isEdge&&typeof a.style.animationName<"u"&&(r.HAS_CSS_ANIMATION=!0),a=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(t,r,d){/*
|
|
3
3
|
* based on code from:
|
|
4
4
|
*
|
|
@@ -163,7 +163,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(pr,n
|
|
|
163
163
|
.ace-tm .ace_indent-guide-active {
|
|
164
164
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|
165
165
|
}
|
|
166
|
-
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(t,r,d){r.isDark=!1,r.cssClass="ace-tm",r.cssText=t("./textmate-css"),r.$id="ace/theme/textmate";var p=t("../lib/dom");p.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(t,r,d){"no use strict";var p=t("./lib/lang"),g=t("./lib/net"),b=t("./lib/dom"),h=t("./lib/app_config").AppConfig;d.exports=r=new h;var f={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!f.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return f[c]},r.set=function(c,i){if(f.hasOwnProperty(c))f[c]=i;else if(this.setDefaultValue("",c,i)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&b.useStrictCSP(i)},r.all=function(){return p.copyObject(f)},r.$modes={},r.moduleUrl=function(c,i){if(f.$moduleUrls[c])return f.$moduleUrls[c];var l=c.split("/");i=i||l[l.length-2]||"";var m=i=="snippets"?"/":"-",w=l[l.length-1];if(i=="worker"&&m=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");w=w.replace(x,"")}(!w||w==i)&&l.length>1&&(w=l[l.length-2]);var M=f[i+"Path"];return M==null?M=f.basePath:m=="/"&&(i=m=""),M&&M.slice(-1)!="/"&&(M+="/"),M+i+m+w+this.get("suffix")},r.setModuleUrl=function(c,i){return f.$moduleUrls[c]=i};var s=function(c,i){if(c==="ace/theme/textmate"||c==="./theme/textmate")return i(null,t("./theme/textmate"));if(a)return a(c,i);console.error("loader is not configured")},a;r.setLoader=function(c){a=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,i){var l;if(Array.isArray(c))var m=c[0],w=c[1];else if(typeof c=="string")var w=c;var x=function(M){if(M&&!r.$loading[w])return i&&i(M);if(r.$loading[w]||(r.$loading[w]=[]),r.$loading[w].push(i),!(r.$loading[w].length>1)){var _=function(){s(w,function(k,C){C&&(r.$loaded[w]=C),r._emit("load.module",{name:w,module:C});var L=r.$loading[w];r.$loading[w]=null,L.forEach(function(D){D&&D(C)})})};if(!r.get("packaged"))return _();g.loadScript(r.moduleUrl(w,m),_),u()}};if(r.dynamicModules[w])r.dynamicModules[w]().then(function(M){M.default?x(M.default):x(M)});else{try{l=this.$require(w)}catch{}x(l||r.$loaded[w])}},r.$require=function(c){if(typeof d.require=="function"){var i="require";return d[i](c)}},r.setModuleLoader=function(c,i){r.dynamicModules[c]=i};var u=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.4"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,r,d){t("./lib/fixoldbrowsers");var p=t("./config");p.setLoader(function(f,s){t([f],function(a){s(null,a)})});var g=function(){return this||typeof window<"u"&&window}();d.exports=function(f){p.init=b,p.$require=t,f.require=t},b(!0);function b(f){if(!(!g||!g.document)){p.set("packaged",f||t.packaged||d.packaged||g.define&&(void 0).packaged);var s={},a="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(a=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=c.getElementsByTagName("script"),l=0;l<i.length;l++){var m=i[l],w=m.src||m.getAttribute("src");if(w){for(var x=m.attributes,M=0,_=x.length;M<_;M++){var k=x[M];k.name.indexOf("data-ace-")===0&&(s[h(k.name.replace(/^data-ace-/,""))]=k.value)}var C=w.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(a=C[1])}}a&&(s.base=s.base||a,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var L in s)typeof s[L]<"u"&&p.set(L,s[L])}}function h(f){return f.replace(/-(.)/g,function(s,a){return a.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(t,r,d){var p=function(){function g(b,h,f,s){this.start={row:b,column:h},this.end={row:f,column:s}}return g.prototype.isEqual=function(b){return this.start.row===b.start.row&&this.end.row===b.end.row&&this.start.column===b.start.column&&this.end.column===b.end.column},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(b,h){return this.compare(b,h)==0},g.prototype.compareRange=function(b){var h,f=b.end,s=b.start;return h=this.compare(f.row,f.column),h==1?(h=this.compare(s.row,s.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(s.row,s.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(b){return this.compare(b.row,b.column)},g.prototype.containsRange=function(b){return this.comparePoint(b.start)==0&&this.comparePoint(b.end)==0},g.prototype.intersects=function(b){var h=this.compareRange(b);return h==-1||h==0||h==1},g.prototype.isEnd=function(b,h){return this.end.row==b&&this.end.column==h},g.prototype.isStart=function(b,h){return this.start.row==b&&this.start.column==h},g.prototype.setStart=function(b,h){typeof b=="object"?(this.start.column=b.column,this.start.row=b.row):(this.start.row=b,this.start.column=h)},g.prototype.setEnd=function(b,h){typeof b=="object"?(this.end.column=b.column,this.end.row=b.row):(this.end.row=b,this.end.column=h)},g.prototype.inside=function(b,h){return this.compare(b,h)==0?!(this.isEnd(b,h)||this.isStart(b,h)):!1},g.prototype.insideStart=function(b,h){return this.compare(b,h)==0?!this.isEnd(b,h):!1},g.prototype.insideEnd=function(b,h){return this.compare(b,h)==0?!this.isStart(b,h):!1},g.prototype.compare=function(b,h){return!this.isMultiLine()&&b===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:b<this.start.row?-1:b>this.end.row?1:this.start.row===b?h>=this.start.column?0:-1:this.end.row===b?h<=this.end.column?0:1:0},g.prototype.compareStart=function(b,h){return this.start.row==b&&this.start.column==h?-1:this.compare(b,h)},g.prototype.compareEnd=function(b,h){return this.end.row==b&&this.end.column==h?1:this.compare(b,h)},g.prototype.compareInside=function(b,h){return this.end.row==b&&this.end.column==h?1:this.start.row==b&&this.start.column==h?-1:this.compare(b,h)},g.prototype.clipRows=function(b,h){if(this.end.row>h)var f={row:h+1,column:0};else if(this.end.row<b)var f={row:b,column:0};if(this.start.row>h)var s={row:h+1,column:0};else if(this.start.row<b)var s={row:b,column:0};return g.fromPoints(s||this.start,f||this.end)},g.prototype.extend=function(b,h){var f=this.compare(b,h);if(f==0)return this;if(f==-1)var s={row:b,column:h};else var a={row:b,column:h};return g.fromPoints(s||this.start,a||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(b){var h=b.documentToScreenPosition(this.start),f=b.documentToScreenPosition(this.end);return new g(h.row,h.column,f.row,f.column)},g.prototype.moveBy=function(b,h){this.start.row+=b,this.start.column+=h,this.end.row+=b,this.end.column+=h},g}();p.fromPoints=function(g,b){return new p(g.row,g.column,b.row,b.column)},p.comparePoints=function(g,b){return g.row-b.row||g.column-b.column},r.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,r,d){for(var p=t("./oop"),g={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},b={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)b["Digit"+h]=48+h,b["Numpad"+h]=96+h,g.PRINTABLE_KEYS[48+h]=""+h,g.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var f=String.fromCharCode(h+32);b["Key"+f.toUpperCase()]=h,g.PRINTABLE_KEYS[h]=f}for(var h=1;h<13;h++)b["F"+h]=111+h,g.FUNCTION_KEYS[111+h]="F"+h;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var a in s)b[a]=b[a+"Left"]=b[a+"Right"]=s[a];r.$codeToKeyCode=b,g.PRINTABLE_KEYS[173]="-";for(var u in g.FUNCTION_KEYS){var c=g.FUNCTION_KEYS[u].toLowerCase();g[c]=parseInt(u,10)}for(var u in g.PRINTABLE_KEYS){var c=g.PRINTABLE_KEYS[u].toLowerCase();g[c]=parseInt(u,10)}p.mixin(g,g.MODIFIER_KEYS),p.mixin(g,g.PRINTABLE_KEYS),p.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,function(){for(var i=["cmd","ctrl","alt","shift"],l=Math.pow(2,i.length);l--;)g.KEY_MODS[l]=i.filter(function(m){return l&g.KEY_MODS[m]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",p.mixin(r,g),r.default=r,r.keyCodeToString=function(i){var l=g[i];return typeof l!="string"&&(l=String.fromCharCode(i)),l.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,d){var p=t("./keys"),g=t("./useragent"),b=null,h=0,f;function s(){f=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return f={passive:!1},!0}})}catch{}}function a(){return f==null&&s(),f}function u(M,_,k){this.elem=M,this.type=_,this.callback=k}u.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(M,_,k,C){M.addEventListener(_,k,a()),C&&C.$toDestroy.push(new u(M,_,k))},i=r.removeListener=function(M,_,k){M.removeEventListener(_,k,a())};r.stopEvent=function(M){return r.stopPropagation(M),r.preventDefault(M),!1},r.stopPropagation=function(M){M.stopPropagation&&M.stopPropagation()},r.preventDefault=function(M){M.preventDefault&&M.preventDefault()},r.getButton=function(M){return M.type=="dblclick"?0:M.type=="contextmenu"||g.isMac&&M.ctrlKey&&!M.altKey&&!M.shiftKey?2:M.button},r.capture=function(M,_,k){var C=M&&M.ownerDocument||document;function L(D){_&&_(D),k&&k(D),i(C,"mousemove",_),i(C,"mouseup",L),i(C,"dragstart",L)}return c(C,"mousemove",_),c(C,"mouseup",L),c(C,"dragstart",L),L},r.addMouseWheelListener=function(M,_,k){c(M,"wheel",function(C){var L=.15,D=C.deltaX||0,R=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=D*L,C.wheelY=R*L;break;case C.DOM_DELTA_LINE:var I=15;C.wheelX=D*I,C.wheelY=R*I;break;case C.DOM_DELTA_PAGE:var H=150;C.wheelX=D*H,C.wheelY=R*H;break}_(C)},k)},r.addMultiMouseDownListener=function(M,_,k,C,L){var D=0,R,I,H,P={2:"dblclick",3:"tripleclick",4:"quadclick"};function O($){if(r.getButton($)!==0?D=0:$.detail>1?(D++,D>4&&(D=1)):D=1,g.isIE){var A=Math.abs($.clientX-R)>5||Math.abs($.clientY-I)>5;(!H||A)&&(D=1),H&&clearTimeout(H),H=setTimeout(function(){H=null},_[D-1]||600),D==1&&(R=$.clientX,I=$.clientY)}if($._clicks=D,k[C]("mousedown",$),D>4)D=0;else if(D>1)return k[C](P[D],$)}Array.isArray(M)||(M=[M]),M.forEach(function($){c($,"mousedown",O,L)})};function l(M){return 0|(M.ctrlKey?1:0)|(M.altKey?2:0)|(M.shiftKey?4:0)|(M.metaKey?8:0)}r.getModifierString=function(M){return p.KEY_MODS[l(M)]};function m(M,_,k){var C=l(_);if(!k&&_.code&&(k=p.$codeToKeyCode[_.code]||k),!g.isMac&&b){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(C|=8),b.altGr)if((3&C)!=3)b.altGr=0;else return;if(k===18||k===17){var L=_.location;if(k===17&&L===1)b[k]==1&&(h=_.timeStamp);else if(k===18&&C===3&&L===2){var D=_.timeStamp-h;D<50&&(b.altGr=!0)}}}if(k in p.MODIFIER_KEYS&&(k=-1),!(!C&&k===13&&_.location===3&&(M(_,C,-k),_.defaultPrevented))){if(g.isChromeOS&&C&8){if(M(_,C,k),_.defaultPrevented)return;C&=-9}return!C&&!(k in p.FUNCTION_KEYS)&&!(k in p.PRINTABLE_KEYS)?!1:M(_,C,k)}}r.addCommandKeyListener=function(M,_,k){var C=null;c(M,"keydown",function(L){b[L.keyCode]=(b[L.keyCode]||0)+1;var D=m(_,L,L.keyCode);return C=L.defaultPrevented,D},k),c(M,"keypress",function(L){C&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(r.stopEvent(L),C=null)},k),c(M,"keyup",function(L){b[L.keyCode]=null},k),b||(w(),c(window,"focus",w))};function w(){b=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!g.isOldIE){var x=1;r.nextTick=function(M,_){_=_||window;var k="zero-timeout-message-"+x++,C=function(L){L.data==k&&(r.stopPropagation(L),i(_,"message",C),M())};c(_,"message",C),_.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(M,_){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):M()},_)},r.$idleBlockId=null,r.blockIdle=function(M){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},M||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(M){setTimeout(M,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,r,d){var p;d.exports={lineMode:!1,pasteCancelled:function(){return p&&p>Date.now()-50?!0:p=!1},cancel:function(){p=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(t,r,d){var p=t("../lib/event"),g=t("../config").nls,b=t("../lib/useragent"),h=t("../lib/dom"),f=t("../lib/lang"),s=t("../clipboard"),a=b.isChrome<18,u=b.isIE,c=b.isChrome>63,i=400,l=t("../lib/keys"),m=l.KEY_MODS,w=b.isIOS,x=w?/\s/:/\n/,M=b.isMobile,_=function(){function k(C,L){var D=this;this.host=L,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",M||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),p.addListener(this.text,"blur",function(R){D.ignoreFocusEvents||(L.onBlur(R),D.$isFocused=!1)},L),p.addListener(this.text,"focus",function(R){if(!D.ignoreFocusEvents){if(D.$isFocused=!0,b.isEdge)try{if(!document.hasFocus())return}catch{}L.onFocus(R),b.isEdge?setTimeout(D.resetSelection.bind(D)):D.resetSelection()}},L),this.$focusScroll=!1,L.on("beforeEndOperation",function(){var R=L.curOp,I=R&&R.command&&R.command.name;if(I!="insertstring"){var H=I&&(R.docChanged||R.selectionChanged);D.inComposition&&H&&(D.lastValue=D.text.value="",D.onCompositionEnd()),D.resetSelection()}}),L.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=w?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&L.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,p.addCommandKeyListener(this.text,function(R,I,H){if(!D.inComposition)return L.onCommandKey(R,I,H)},L),p.addListener(this.text,"select",this.onSelect.bind(this),L),p.addListener(this.text,"input",this.onInput.bind(this),L),p.addListener(this.text,"cut",this.onCut.bind(this),L),p.addListener(this.text,"copy",this.onCopy.bind(this),L),p.addListener(this.text,"paste",this.onPaste.bind(this),L),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&p.addListener(C,"keydown",function(R){if(!(b.isMac&&!R.metaKey||!R.ctrlKey))switch(R.keyCode){case 67:D.onCopy(R);break;case 86:D.onPaste(R);break;case 88:D.onCut(R);break}},L),this.syncComposition=f.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),p.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),L),p.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),L),p.addListener(this.text,"keyup",this.onKeyup.bind(this),L),p.addListener(this.text,"keydown",this.syncComposition.bind(this),L),p.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),L),this.closeTimeout,p.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),L),p.addListener(this.text,"mousedown",function(R){R.preventDefault(),D.onContextMenuClose()},L),p.addListener(L.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),L),p.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),L),w&&this.addIosSelectionHandler(C,L,this.text)}return k.prototype.addIosSelectionHandler=function(C,L,D){var R=this,I=null,H=!1;D.addEventListener("keydown",function(O){I&&clearTimeout(I),H=!0},!0),D.addEventListener("keyup",function(O){I=setTimeout(function(){H=!1},100)},!0);var P=function(O){if(document.activeElement===D&&!(H||R.inComposition||L.$mouseHandler.isMousePressed)&&!R.copied){var $=D.selectionStart,A=D.selectionEnd,N=null,B=0;if($==0?N=l.up:$==1?N=l.home:A>R.lastSelectionEnd&&R.lastValue[A]==`
|
|
166
|
+
`}),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(t,r,d){r.isDark=!1,r.cssClass="ace-tm",r.cssText=t("./textmate-css"),r.$id="ace/theme/textmate";var p=t("../lib/dom");p.importCssString(r.cssText,r.cssClass,!1)}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(t,r,d){"no use strict";var p=t("./lib/lang"),g=t("./lib/net"),b=t("./lib/dom"),h=t("./lib/app_config").AppConfig;d.exports=r=new h;var f={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};r.get=function(c){if(!f.hasOwnProperty(c))throw new Error("Unknown config key: "+c);return f[c]},r.set=function(c,i){if(f.hasOwnProperty(c))f[c]=i;else if(this.setDefaultValue("",c,i)==!1)throw new Error("Unknown config key: "+c);c=="useStrictCSP"&&b.useStrictCSP(i)},r.all=function(){return p.copyObject(f)},r.$modes={},r.moduleUrl=function(c,i){if(f.$moduleUrls[c])return f.$moduleUrls[c];var l=c.split("/");i=i||l[l.length-2]||"";var m=i=="snippets"?"/":"-",w=l[l.length-1];if(i=="worker"&&m=="-"){var x=new RegExp("^"+i+"[\\-_]|[\\-_]"+i+"$","g");w=w.replace(x,"")}(!w||w==i)&&l.length>1&&(w=l[l.length-2]);var M=f[i+"Path"];return M==null?M=f.basePath:m=="/"&&(i=m=""),M&&M.slice(-1)!="/"&&(M+="/"),M+i+m+w+this.get("suffix")},r.setModuleUrl=function(c,i){return f.$moduleUrls[c]=i};var s=function(c,i){if(c==="ace/theme/textmate"||c==="./theme/textmate")return i(null,t("./theme/textmate"));if(a)return a(c,i);console.error("loader is not configured")},a;r.setLoader=function(c){a=c},r.dynamicModules=Object.create(null),r.$loading={},r.$loaded={},r.loadModule=function(c,i){var l;if(Array.isArray(c))var m=c[0],w=c[1];else if(typeof c=="string")var w=c;var x=function(M){if(M&&!r.$loading[w])return i&&i(M);if(r.$loading[w]||(r.$loading[w]=[]),r.$loading[w].push(i),!(r.$loading[w].length>1)){var _=function(){s(w,function(k,C){C&&(r.$loaded[w]=C),r._emit("load.module",{name:w,module:C});var L=r.$loading[w];r.$loading[w]=null,L.forEach(function(D){D&&D(C)})})};if(!r.get("packaged"))return _();g.loadScript(r.moduleUrl(w,m),_),u()}};if(r.dynamicModules[w])r.dynamicModules[w]().then(function(M){M.default?x(M.default):x(M)});else{try{l=this.$require(w)}catch{}x(l||r.$loaded[w])}},r.$require=function(c){if(typeof d.require=="function"){var i="require";return d[i](c)}},r.setModuleLoader=function(c,i){r.dynamicModules[c]=i};var u=function(){!f.basePath&&!f.workerPath&&!f.modePath&&!f.themePath&&!Object.keys(f.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r.version="1.43.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(t,r,d){t("./lib/fixoldbrowsers");var p=t("./config");p.setLoader(function(f,s){t([f],function(a){s(null,a)})});var g=function(){return this||typeof window<"u"&&window}();d.exports=function(f){p.init=b,p.$require=t,f.require=t},b(!0);function b(f){if(!(!g||!g.document)){p.set("packaged",f||t.packaged||d.packaged||g.define&&(void 0).packaged);var s={},a="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document;u&&u.src&&(a=u.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var i=c.getElementsByTagName("script"),l=0;l<i.length;l++){var m=i[l],w=m.src||m.getAttribute("src");if(w){for(var x=m.attributes,M=0,_=x.length;M<_;M++){var k=x[M];k.name.indexOf("data-ace-")===0&&(s[h(k.name.replace(/^data-ace-/,""))]=k.value)}var C=w.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);C&&(a=C[1])}}a&&(s.base=s.base||a,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base;for(var L in s)typeof s[L]<"u"&&p.set(L,s[L])}}function h(f){return f.replace(/-(.)/g,function(s,a){return a.toUpperCase()})}}),ace.define("ace/range",["require","exports","module"],function(t,r,d){var p=function(){function g(b,h,f,s){this.start={row:b,column:h},this.end={row:f,column:s}}return g.prototype.isEqual=function(b){return this.start.row===b.start.row&&this.end.row===b.end.row&&this.start.column===b.start.column&&this.end.column===b.end.column},g.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},g.prototype.contains=function(b,h){return this.compare(b,h)==0},g.prototype.compareRange=function(b){var h,f=b.end,s=b.start;return h=this.compare(f.row,f.column),h==1?(h=this.compare(s.row,s.column),h==1?2:h==0?1:0):h==-1?-2:(h=this.compare(s.row,s.column),h==-1?-1:h==1?42:0)},g.prototype.comparePoint=function(b){return this.compare(b.row,b.column)},g.prototype.containsRange=function(b){return this.comparePoint(b.start)==0&&this.comparePoint(b.end)==0},g.prototype.intersects=function(b){var h=this.compareRange(b);return h==-1||h==0||h==1},g.prototype.isEnd=function(b,h){return this.end.row==b&&this.end.column==h},g.prototype.isStart=function(b,h){return this.start.row==b&&this.start.column==h},g.prototype.setStart=function(b,h){typeof b=="object"?(this.start.column=b.column,this.start.row=b.row):(this.start.row=b,this.start.column=h)},g.prototype.setEnd=function(b,h){typeof b=="object"?(this.end.column=b.column,this.end.row=b.row):(this.end.row=b,this.end.column=h)},g.prototype.inside=function(b,h){return this.compare(b,h)==0?!(this.isEnd(b,h)||this.isStart(b,h)):!1},g.prototype.insideStart=function(b,h){return this.compare(b,h)==0?!this.isEnd(b,h):!1},g.prototype.insideEnd=function(b,h){return this.compare(b,h)==0?!this.isStart(b,h):!1},g.prototype.compare=function(b,h){return!this.isMultiLine()&&b===this.start.row?h<this.start.column?-1:h>this.end.column?1:0:b<this.start.row?-1:b>this.end.row?1:this.start.row===b?h>=this.start.column?0:-1:this.end.row===b?h<=this.end.column?0:1:0},g.prototype.compareStart=function(b,h){return this.start.row==b&&this.start.column==h?-1:this.compare(b,h)},g.prototype.compareEnd=function(b,h){return this.end.row==b&&this.end.column==h?1:this.compare(b,h)},g.prototype.compareInside=function(b,h){return this.end.row==b&&this.end.column==h?1:this.start.row==b&&this.start.column==h?-1:this.compare(b,h)},g.prototype.clipRows=function(b,h){if(this.end.row>h)var f={row:h+1,column:0};else if(this.end.row<b)var f={row:b,column:0};if(this.start.row>h)var s={row:h+1,column:0};else if(this.start.row<b)var s={row:b,column:0};return g.fromPoints(s||this.start,f||this.end)},g.prototype.extend=function(b,h){var f=this.compare(b,h);if(f==0)return this;if(f==-1)var s={row:b,column:h};else var a={row:b,column:h};return g.fromPoints(s||this.start,a||this.end)},g.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},g.prototype.isMultiLine=function(){return this.start.row!==this.end.row},g.prototype.clone=function(){return g.fromPoints(this.start,this.end)},g.prototype.collapseRows=function(){return this.end.column==0?new g(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new g(this.start.row,0,this.end.row,0)},g.prototype.toScreenRange=function(b){var h=b.documentToScreenPosition(this.start),f=b.documentToScreenPosition(this.end);return new g(h.row,h.column,f.row,f.column)},g.prototype.moveBy=function(b,h){this.start.row+=b,this.start.column+=h,this.end.row+=b,this.end.column+=h},g}();p.fromPoints=function(g,b){return new p(g.row,g.column,b.row,b.column)},p.comparePoints=function(g,b){return g.row-b.row||g.column-b.column},r.Range=p}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(t,r,d){for(var p=t("./oop"),g={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete","-13":"NumpadEnter",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",59:";",61:"=",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},b={Command:224,Backspace:8,Tab:9,Return:13,Enter:13,Pause:19,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Delete:46,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Backquote:192,Minus:189,Equal:187,BracketLeft:219,Backslash:220,BracketRight:221,Semicolon:186,Quote:222,Comma:188,Period:190,Slash:191,Space:32,NumpadAdd:107,NumpadDecimal:110,NumpadSubtract:109,NumpadDivide:111,NumpadMultiply:106},h=0;h<10;h++)b["Digit"+h]=48+h,b["Numpad"+h]=96+h,g.PRINTABLE_KEYS[48+h]=""+h,g.FUNCTION_KEYS[96+h]="Numpad"+h;for(var h=65;h<91;h++){var f=String.fromCharCode(h+32);b["Key"+f.toUpperCase()]=h,g.PRINTABLE_KEYS[h]=f}for(var h=1;h<13;h++)b["F"+h]=111+h,g.FUNCTION_KEYS[111+h]="F"+h;var s={Shift:16,Control:17,Alt:18,Meta:224};for(var a in s)b[a]=b[a+"Left"]=b[a+"Right"]=s[a];r.$codeToKeyCode=b,g.PRINTABLE_KEYS[173]="-";for(var u in g.FUNCTION_KEYS){var c=g.FUNCTION_KEYS[u].toLowerCase();g[c]=parseInt(u,10)}for(var u in g.PRINTABLE_KEYS){var c=g.PRINTABLE_KEYS[u].toLowerCase();g[c]=parseInt(u,10)}p.mixin(g,g.MODIFIER_KEYS),p.mixin(g,g.PRINTABLE_KEYS),p.mixin(g,g.FUNCTION_KEYS),g.enter=g.return,g.escape=g.esc,g.del=g.delete,function(){for(var i=["cmd","ctrl","alt","shift"],l=Math.pow(2,i.length);l--;)g.KEY_MODS[l]=i.filter(function(m){return l&g.KEY_MODS[m]}).join("-")+"-"}(),g.KEY_MODS[0]="",g.KEY_MODS[-1]="input-",p.mixin(r,g),r.default=r,r.keyCodeToString=function(i){var l=g[i];return typeof l!="string"&&(l=String.fromCharCode(i)),l.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(t,r,d){var p=t("./keys"),g=t("./useragent"),b=null,h=0,f;function s(){f=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return f={passive:!1},!0}})}catch{}}function a(){return f==null&&s(),f}function u(M,_,k){this.elem=M,this.type=_,this.callback=k}u.prototype.destroy=function(){i(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=r.addListener=function(M,_,k,C){M.addEventListener(_,k,a()),C&&C.$toDestroy.push(new u(M,_,k))},i=r.removeListener=function(M,_,k){M.removeEventListener(_,k,a())};r.stopEvent=function(M){return r.stopPropagation(M),r.preventDefault(M),!1},r.stopPropagation=function(M){M.stopPropagation&&M.stopPropagation()},r.preventDefault=function(M){M.preventDefault&&M.preventDefault()},r.getButton=function(M){return M.type=="dblclick"?0:M.type=="contextmenu"||g.isMac&&M.ctrlKey&&!M.altKey&&!M.shiftKey?2:M.button},r.capture=function(M,_,k){var C=M&&M.ownerDocument||document;function L(D){_&&_(D),k&&k(D),i(C,"mousemove",_),i(C,"mouseup",L),i(C,"dragstart",L)}return c(C,"mousemove",_),c(C,"mouseup",L),c(C,"dragstart",L),L},r.addMouseWheelListener=function(M,_,k){c(M,"wheel",function(C){var L=.15,D=C.deltaX||0,R=C.deltaY||0;switch(C.deltaMode){case C.DOM_DELTA_PIXEL:C.wheelX=D*L,C.wheelY=R*L;break;case C.DOM_DELTA_LINE:var I=15;C.wheelX=D*I,C.wheelY=R*I;break;case C.DOM_DELTA_PAGE:var H=150;C.wheelX=D*H,C.wheelY=R*H;break}_(C)},k)},r.addMultiMouseDownListener=function(M,_,k,C,L){var D=0,R,I,H,P={2:"dblclick",3:"tripleclick",4:"quadclick"};function O($){if(r.getButton($)!==0?D=0:$.detail>1?(D++,D>4&&(D=1)):D=1,g.isIE){var A=Math.abs($.clientX-R)>5||Math.abs($.clientY-I)>5;(!H||A)&&(D=1),H&&clearTimeout(H),H=setTimeout(function(){H=null},_[D-1]||600),D==1&&(R=$.clientX,I=$.clientY)}if($._clicks=D,k[C]("mousedown",$),D>4)D=0;else if(D>1)return k[C](P[D],$)}Array.isArray(M)||(M=[M]),M.forEach(function($){c($,"mousedown",O,L)})};function l(M){return 0|(M.ctrlKey?1:0)|(M.altKey?2:0)|(M.shiftKey?4:0)|(M.metaKey?8:0)}r.getModifierString=function(M){return p.KEY_MODS[l(M)]};function m(M,_,k){var C=l(_);if(!k&&_.code&&(k=p.$codeToKeyCode[_.code]||k),!g.isMac&&b){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(C|=8),b.altGr)if((3&C)!=3)b.altGr=0;else return;if(k===18||k===17){var L=_.location;if(k===17&&L===1)b[k]==1&&(h=_.timeStamp);else if(k===18&&C===3&&L===2){var D=_.timeStamp-h;D<50&&(b.altGr=!0)}}}if(k in p.MODIFIER_KEYS&&(k=-1),!(!C&&k===13&&_.location===3&&(M(_,C,-k),_.defaultPrevented))){if(g.isChromeOS&&C&8){if(M(_,C,k),_.defaultPrevented)return;C&=-9}return!C&&!(k in p.FUNCTION_KEYS)&&!(k in p.PRINTABLE_KEYS)?!1:M(_,C,k)}}r.addCommandKeyListener=function(M,_,k){var C=null;c(M,"keydown",function(L){b[L.keyCode]=(b[L.keyCode]||0)+1;var D=m(_,L,L.keyCode);return C=L.defaultPrevented,D},k),c(M,"keypress",function(L){C&&(L.ctrlKey||L.altKey||L.shiftKey||L.metaKey)&&(r.stopEvent(L),C=null)},k),c(M,"keyup",function(L){b[L.keyCode]=null},k),b||(w(),c(window,"focus",w))};function w(){b=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!g.isOldIE){var x=1;r.nextTick=function(M,_){_=_||window;var k="zero-timeout-message-"+x++,C=function(L){L.data==k&&(r.stopPropagation(L),i(_,"message",C),M())};c(_,"message",C),_.postMessage(k,"*")}}r.$idleBlocked=!1,r.onIdle=function(M,_){return setTimeout(function k(){r.$idleBlocked?setTimeout(k,100):M()},_)},r.$idleBlockId=null,r.blockIdle=function(M){r.$idleBlockId&&clearTimeout(r.$idleBlockId),r.$idleBlocked=!0,r.$idleBlockId=setTimeout(function(){r.$idleBlocked=!1},M||100)},r.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),r.nextFrame?r.nextFrame=r.nextFrame.bind(window):r.nextFrame=function(M){setTimeout(M,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(t,r,d){var p;d.exports={lineMode:!1,pasteCancelled:function(){return p&&p>Date.now()-50?!0:p=!1},cancel:function(){p=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(t,r,d){var p=t("../lib/event"),g=t("../config").nls,b=t("../lib/useragent"),h=t("../lib/dom"),f=t("../lib/lang"),s=t("../clipboard"),a=b.isChrome<18,u=b.isIE,c=b.isChrome>63,i=400,l=t("../lib/keys"),m=l.KEY_MODS,w=b.isIOS,x=w?/\s/:/\n/,M=b.isMobile,_=function(){function k(C,L){var D=this;this.host=L,this.text=h.createElement("textarea"),this.text.className="ace_text-input",this.text.setAttribute("wrap","off"),this.text.setAttribute("autocomplete","off"),this.text.setAttribute("autocorrect","off"),this.text.setAttribute("autocapitalize","off"),this.text.setAttribute("spellcheck","false"),this.text.style.opacity="0",C.insertBefore(this.text,C.firstChild),this.copied=!1,this.pasted=!1,this.inComposition=!1,this.sendingText=!1,this.tempStyle="",M||(this.text.style.fontSize="1px"),this.commandMode=!1,this.ignoreFocusEvents=!1,this.lastValue="",this.lastSelectionStart=0,this.lastSelectionEnd=0,this.lastRestoreEnd=0,this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,this.numberOfExtraLines=0;try{this.$isFocused=document.activeElement===this.text}catch{}this.cancelComposition=this.cancelComposition.bind(this),this.setAriaOptions({role:"textbox"}),p.addListener(this.text,"blur",function(R){D.ignoreFocusEvents||(L.onBlur(R),D.$isFocused=!1)},L),p.addListener(this.text,"focus",function(R){if(!D.ignoreFocusEvents){if(D.$isFocused=!0,b.isEdge)try{if(!document.hasFocus())return}catch{}L.onFocus(R),b.isEdge?setTimeout(D.resetSelection.bind(D)):D.resetSelection()}},L),this.$focusScroll=!1,L.on("beforeEndOperation",function(){var R=L.curOp,I=R&&R.command&&R.command.name;if(I!="insertstring"){var H=I&&(R.docChanged||R.selectionChanged);D.inComposition&&H&&(D.lastValue=D.text.value="",D.onCompositionEnd()),D.resetSelection()}}),L.on("changeSelection",this.setAriaLabel.bind(this)),this.resetSelection=w?this.$resetSelectionIOS:this.$resetSelection,this.$isFocused&&L.onFocus(),this.inputHandler=null,this.afterContextMenu=!1,p.addCommandKeyListener(this.text,function(R,I,H){if(!D.inComposition)return L.onCommandKey(R,I,H)},L),p.addListener(this.text,"select",this.onSelect.bind(this),L),p.addListener(this.text,"input",this.onInput.bind(this),L),p.addListener(this.text,"cut",this.onCut.bind(this),L),p.addListener(this.text,"copy",this.onCopy.bind(this),L),p.addListener(this.text,"paste",this.onPaste.bind(this),L),(!("oncut"in this.text)||!("oncopy"in this.text)||!("onpaste"in this.text))&&p.addListener(C,"keydown",function(R){if(!(b.isMac&&!R.metaKey||!R.ctrlKey))switch(R.keyCode){case 67:D.onCopy(R);break;case 86:D.onPaste(R);break;case 88:D.onCut(R);break}},L),this.syncComposition=f.delayedCall(this.onCompositionUpdate.bind(this),50).schedule.bind(null,null),p.addListener(this.text,"compositionstart",this.onCompositionStart.bind(this),L),p.addListener(this.text,"compositionupdate",this.onCompositionUpdate.bind(this),L),p.addListener(this.text,"keyup",this.onKeyup.bind(this),L),p.addListener(this.text,"keydown",this.syncComposition.bind(this),L),p.addListener(this.text,"compositionend",this.onCompositionEnd.bind(this),L),this.closeTimeout,p.addListener(this.text,"mouseup",this.$onContextMenu.bind(this),L),p.addListener(this.text,"mousedown",function(R){R.preventDefault(),D.onContextMenuClose()},L),p.addListener(L.renderer.scroller,"contextmenu",this.$onContextMenu.bind(this),L),p.addListener(this.text,"contextmenu",this.$onContextMenu.bind(this),L),w&&this.addIosSelectionHandler(C,L,this.text)}return k.prototype.addIosSelectionHandler=function(C,L,D){var R=this,I=null,H=!1;D.addEventListener("keydown",function(O){I&&clearTimeout(I),H=!0},!0),D.addEventListener("keyup",function(O){I=setTimeout(function(){H=!1},100)},!0);var P=function(O){if(document.activeElement===D&&!(H||R.inComposition||L.$mouseHandler.isMousePressed)&&!R.copied){var $=D.selectionStart,A=D.selectionEnd,N=null,B=0;if($==0?N=l.up:$==1?N=l.home:A>R.lastSelectionEnd&&R.lastValue[A]==`
|
|
167
167
|
`?N=l.end:$<R.lastSelectionStart&&R.lastValue[$-1]==" "?(N=l.left,B=m.option):$<R.lastSelectionStart||$==R.lastSelectionStart&&R.lastSelectionEnd!=R.lastSelectionStart&&$==A?N=l.left:A>R.lastSelectionEnd&&R.lastValue.slice(0,A).split(`
|
|
168
168
|
`).length>2?N=l.down:A>R.lastSelectionEnd&&R.lastValue[A-1]==" "?(N=l.right,B=m.option):(A>R.lastSelectionEnd||A==R.lastSelectionEnd&&R.lastSelectionEnd!=R.lastSelectionStart&&$==A)&&(N=l.right),$!==A&&(B|=m.shift),N){var U=L.onCommandKey({},B,N);if(!U&&L.commands){N=l.keyCodeToString(N);var K=L.commands.findKeyCommand(B,N);K&&L.execCommand(K)}R.lastSelectionStart=$,R.lastSelectionEnd=A,R.resetSelection("")}}};document.addEventListener("selectionchange",P),L.on("destroy",function(){document.removeEventListener("selectionchange",P)})},k.prototype.onContextMenuClose=function(){var C=this;clearTimeout(this.closeTimeout),this.closeTimeout=setTimeout(function(){C.tempStyle&&(C.text.style.cssText=C.tempStyle,C.tempStyle=""),C.host.renderer.$isMousePressed=!1,C.host.renderer.$keepTextAreaAtCursor&&C.host.renderer.$moveTextAreaToCursor()},0)},k.prototype.$onContextMenu=function(C){this.host.textInput.onContextMenu(C),this.onContextMenuClose()},k.prototype.onKeyup=function(C){C.keyCode==27&&this.text.value.length<this.text.selectionStart&&(this.inComposition||(this.lastValue=this.text.value),this.lastSelectionStart=this.lastSelectionEnd=-1,this.resetSelection()),this.syncComposition()},k.prototype.cancelComposition=function(){this.ignoreFocusEvents=!0,this.text.blur(),this.text.focus(),this.ignoreFocusEvents=!1},k.prototype.onCompositionStart=function(C){if(!(this.inComposition||!this.host.onCompositionStart||this.host.$readOnly)&&(this.inComposition={},!this.commandMode)){C.data&&(this.inComposition.useTextareaForIME=!1),setTimeout(this.onCompositionUpdate.bind(this),0),this.host._signal("compositionStart"),this.host.on("mousedown",this.cancelComposition);var L=this.host.getSelectionRange();L.end.row=L.start.row,L.end.column=L.start.column,this.inComposition.markerRange=L,this.inComposition.selectionStart=this.lastSelectionStart,this.host.onCompositionStart(this.inComposition),this.inComposition.useTextareaForIME?(this.lastValue=this.text.value="",this.lastSelectionStart=0,this.lastSelectionEnd=0):(this.text.msGetInputContext&&(this.inComposition.context=this.text.msGetInputContext()),this.text.getInputContext&&(this.inComposition.context=this.text.getInputContext()))}},k.prototype.onCompositionUpdate=function(){if(!(!this.inComposition||!this.host.onCompositionUpdate||this.host.$readOnly)){if(this.commandMode)return this.cancelComposition();if(this.inComposition.useTextareaForIME)this.host.onCompositionUpdate(this.text.value);else{var C=this.text.value;this.sendText(C),this.inComposition.markerRange&&(this.inComposition.context&&(this.inComposition.markerRange.start.column=this.inComposition.selectionStart=this.inComposition.context.compositionStartOffset),this.inComposition.markerRange.end.column=this.inComposition.markerRange.start.column+this.lastSelectionEnd-this.inComposition.selectionStart+this.lastRestoreEnd)}}},k.prototype.onCompositionEnd=function(C){!this.host.onCompositionEnd||this.host.$readOnly||(this.inComposition=!1,this.host.onCompositionEnd(),this.host.off("mousedown",this.cancelComposition),C&&this.onInput())},k.prototype.onCut=function(C){this.doCopy(C,!0)},k.prototype.onCopy=function(C){this.doCopy(C,!1)},k.prototype.onPaste=function(C){var L=this.handleClipboardData(C);s.pasteCancelled()||(typeof L=="string"?(L&&this.host.onPaste(L,C),b.isIE&&setTimeout(this.resetSelection),p.preventDefault(C)):(this.text.value="",this.pasted=!0))},k.prototype.doCopy=function(C,L){var D=this,R=this.host.getCopyText();if(!R)return p.preventDefault(C);this.handleClipboardData(C,R)?(w&&(this.resetSelection(R),this.copied=R,setTimeout(function(){D.copied=!1},10)),L?this.host.onCut():this.host.onCopy(),p.preventDefault(C)):(this.copied=!0,this.text.value=R,this.text.select(),setTimeout(function(){D.copied=!1,D.resetSelection(),L?D.host.onCut():D.host.onCopy()}))},k.prototype.handleClipboardData=function(C,L,D){var R=C.clipboardData||window.clipboardData;if(!(!R||a)){var I=u||D?"Text":"text/plain";try{return L?R.setData(I,L)!==!1:R.getData(I)}catch(H){if(!D)return this.handleClipboardData(H,L,!0)}}},k.prototype.onInput=function(C){if(this.inComposition)return this.onCompositionUpdate();if(C&&C.inputType){if(C.inputType=="historyUndo")return this.host.execCommand("undo");if(C.inputType=="historyRedo")return this.host.execCommand("redo")}var L=this.text.value,D=this.sendText(L,!0);(L.length>i+100||x.test(D)||M&&this.lastSelectionStart<1&&this.lastSelectionStart==this.lastSelectionEnd)&&this.resetSelection()},k.prototype.sendText=function(C,L){if(this.afterContextMenu&&(this.afterContextMenu=!1),this.pasted)return this.resetSelection(),C&&this.host.onPaste(C),this.pasted=!1,"";for(var D=this.text.selectionStart,R=this.text.selectionEnd,I=this.lastSelectionStart,H=this.lastValue.length-this.lastSelectionEnd,P=C,O=C.length-D,$=C.length-R,A=0;I>0&&this.lastValue[A]==C[A];)A++,I--;for(P=P.slice(A),A=1;H>0&&this.lastValue.length-A>this.lastSelectionStart-1&&this.lastValue[this.lastValue.length-A]==C[C.length-A];)A++,H--;O-=A-1,$-=A-1;var N=P.length-A+1;if(N<0&&(I=-N,N=0),P=P.slice(0,N),!L&&!P&&!O&&!I&&!H&&!$)return"";this.sendingText=!0;var B=!1;return b.isAndroid&&P==". "&&(P=" ",B=!0),P&&!I&&!H&&!O&&!$||this.commandMode?this.host.onTextInput(P):this.host.onTextInput(P,{extendLeft:I,extendRight:H,restoreStart:O,restoreEnd:$}),this.sendingText=!1,this.lastValue=C,this.lastSelectionStart=D,this.lastSelectionEnd=R,this.lastRestoreEnd=$,B?`
|
|
169
169
|
`:P},k.prototype.onSelect=function(C){var L=this;if(!this.inComposition){var D=function(R){return R.selectionStart===0&&R.selectionEnd>=L.lastValue.length&&R.value===L.lastValue&&L.lastValue&&R.selectionEnd!==L.lastSelectionEnd};this.copied?this.copied=!1:D(this.text)?(this.host.selectAll(),this.resetSelection()):M&&this.text.selectionStart!=this.lastSelectionStart&&this.resetSelection()}},k.prototype.$resetSelectionIOS=function(C){if(!(!this.$isFocused||this.copied&&!C||this.sendingText)){C||(C="");var L=`
|
|
@@ -175,7 +175,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(pr,n
|
|
|
175
175
|
`+R,D+=1,L+=1);R.length>i&&(L<i&&D<i?R=R.slice(0,i):(R=`
|
|
176
176
|
`,L==D?L=D=0:(L=0,D=1)));var U=R+`
|
|
177
177
|
|
|
178
|
-
`;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=D||this.lastSelectionStart!=L||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(L,D),this.lastSelectionStart=L,this.lastSelectionEnd=D}catch{}this.inComposition=!1}},k.prototype.setHost=function(C){this.host=C},k.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},k.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var L=this.host.session.selection.cursor.row;C+=g("text-input.aria-label","Cursor at row $0",[L+1])}this.text.setAttribute("aria-label",C)},k.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",g("text-input.aria-roledescription","editor")),this.setAriaLabel())},k.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var L=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var D=this.text.getBoundingClientRect().top!=0}catch{return}var R=[];if(D)for(var I=this.text.parentElement;I&&I.nodeType==1;)R.push(I),I.setAttribute("ace_nocontext","true"),!I.parentElement&&I.getRootNode?I=I.getRootNode().host:I=I.parentElement;this.text.focus({preventScroll:!0}),D&&R.forEach(function(H){H.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=L)},0)},k.prototype.blur=function(){this.text.blur()},k.prototype.isFocused=function(){return this.$isFocused},k.prototype.setInputHandler=function(C){this.inputHandler=C},k.prototype.getInputHandler=function(){return this.inputHandler},k.prototype.getElement=function(){return this.text},k.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},k.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},k.prototype.setCopyWithEmptySelection=function(C){},k.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},k.prototype.moveToMouse=function(C,L){var D=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(L?"z-index:100000;":"")+(b.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var R=this.host.container.getBoundingClientRect(),I=h.computedStyle(this.host.container),H=R.top+(parseInt(I.borderTopWidth)||0),P=R.left+(parseInt(I.borderLeftWidth)||0),O=R.bottom-H-this.text.clientHeight-2,$=function(A){h.translate(D.text,A.clientX-P-2,Math.min(A.clientY-H-2,O))};$(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),b.isWin&&p.capture(this.host.container,$,this.onContextMenuClose.bind(this)))},k.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},k}();r.TextInput=_,r.$setUserAgentForTests=function(k,C){M=k,w=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,r,d){var p=t("../lib/useragent"),g=0,b=550,h=function(){function a(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(l){u[l]=this[l]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return a.prototype.onMouseDown=function(u){var c=u.inSelection(),i=u.getDocumentPosition();this.mousedownEvent=u;var l=this.editor,m=u.getButton();if(m!==0){var w=l.getSelectionRange(),x=w.isEmpty();(x||m==1)&&l.selection.moveToPosition(i),m==2&&(l.textInput.onContextMenu(u.domEvent),p.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!l.isFocused()&&(l.focus(),this.$focusTimeout&&!this.$clickSelection&&!l.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(i,u.domEvent._clicks>1),u.preventDefault()},a.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(u):c||i.selection.moveToPosition(u),c||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},a.prototype.select=function(){var u,c=this.editor,i=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var l=this.$clickSelection.comparePoint(i);if(l==-1)u=this.$clickSelection.end;else if(l==1)u=this.$clickSelection.start;else{var m=s(this.$clickSelection,i,c.session);i=m.cursor,u=m.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(i),c.renderer.scrollCursorIntoView()},a.prototype.extendSelectionBy=function(u){var c,i=this.editor,l=i.renderer.screenToTextCoordinates(this.x,this.y),m=i.selection[u](l.row,l.column);if(this.$clickSelection){var w=this.$clickSelection.comparePoint(m.start),x=this.$clickSelection.comparePoint(m.end);if(w==-1&&x<=0)c=this.$clickSelection.end,(m.end.row!=l.row||m.end.column!=l.column)&&(l=m.start);else if(x==1&&w>=0)c=this.$clickSelection.start,(m.start.row!=l.row||m.start.column!=l.column)&&(l=m.end);else if(w==-1&&x==1)l=m.end,c=m.start;else{var M=s(this.$clickSelection,l,i.session);l=M.cursor,c=M.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(l),i.renderer.scrollCursorIntoView()},a.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},a.prototype.focusWait=function(){var u=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>g||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},a.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),i=this.editor,l=i.session,m=l.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=i.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},a.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var l=i.getSelectionRange();l.isMultiLine()&&l.contains(c.row,c.column)?(this.$clickSelection=i.selection.getLineRange(l.start.row),this.$clickSelection.end=i.selection.getLineRange(l.end.row).end):this.$clickSelection=i.selection.getLineRange(c.row),this.select()},a.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},a.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,l=u.domEvent.timeStamp,m=l-i.t,w=m?u.wheelX/m:i.vx,x=m?u.wheelY/m:i.vy;m<b&&(w=(w+i.vx)/2,x=(x+i.vy)/2);var M=Math.abs(w/x),_=!1;if(M>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(_=!0),M<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(_=!0),_)i.allowed=l;else if(l-i.allowed<b){var k=Math.abs(w)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);k?(_=!0,i.allowed=l):i.allowed=0}if(i.t=l,i.vx=w,i.vy=x,_)return c.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},a}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function f(a,u,c,i){return Math.sqrt(Math.pow(c-a,2)+Math.pow(i-u,2))}function s(a,u,c){if(a.start.row==a.end.row)var i=2*u.column-a.start.column-a.end.column;else if(a.start.row==a.end.row-1&&!a.start.column&&!a.end.column)var i=3*u.column-2*c.getLine(a.start.row).length;else var i=2*u.row-a.start.row-a.end.row;return i<0?{cursor:a.start,anchor:a.end}:{cursor:a.end,anchor:a.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,d){var p=t("../lib/event"),g=t("../lib/useragent"),b=function(){function h(f,s){this.speed,this.wheelX,this.wheelY,this.domEvent=f,this.editor=s,this.x=this.clientX=f.clientX,this.y=this.clientY=f.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(f,0),a=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-a},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var f=this.editor,s=f.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=s.contains(a.row,a.column)}return this.$inSelection},h.prototype.getButton=function(){return p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return g.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=b}),ace.define("ace/lib/scroll",["require","exports","module"],function(t,r,d){r.preventParentScroll=function(p){p.stopPropagation();var g=p.currentTarget,b=g.scrollHeight>g.clientHeight;b||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,r,d){var p=this&&this.__extends||function(){var l=function(m,w){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,M){x.__proto__=M}||function(x,M){for(var _ in M)Object.prototype.hasOwnProperty.call(M,_)&&(x[_]=M[_])},l(m,w)};return function(m,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");l(m,w);function x(){this.constructor=m}m.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),g=this&&this.__values||function(l){var m=typeof Symbol=="function"&&Symbol.iterator,w=m&&l[m],x=0;if(w)return w.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&x>=l.length&&(l=void 0),{value:l&&l[x++],done:!l}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},b=t("./lib/dom");t("./lib/event");var h=t("./range").Range,f=t("./lib/scroll").preventParentScroll,s="ace_tooltip",a=function(){function l(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return l.prototype.$init=function(){return this.$element=b.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},l.prototype.getElement=function(){return this.$element||this.$init()},l.prototype.setText=function(m){this.getElement().textContent=m},l.prototype.setHtml=function(m){this.getElement().innerHTML=m},l.prototype.setPosition=function(m,w){this.getElement().style.left=m+"px",this.getElement().style.top=w+"px"},l.prototype.setClassName=function(m){b.addCssClass(this.getElement(),m)},l.prototype.setTheme=function(m){this.theme&&(this.theme.isDark&&b.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&b.removeCssClass(this.getElement(),this.theme.cssClass)),m.isDark&&b.addCssClass(this.getElement(),"ace_dark"),m.cssClass&&b.addCssClass(this.getElement(),m.cssClass),this.theme={isDark:m.isDark,cssClass:m.cssClass}},l.prototype.show=function(m,w,x){m!=null&&this.setText(m),w!=null&&x!=null&&this.setPosition(w,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},l.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},l.prototype.getHeight=function(){return this.getElement().offsetHeight},l.prototype.getWidth=function(){return this.getElement().offsetWidth},l.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},l}(),u=function(){function l(){this.popups=[]}return l.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},l.prototype.removePopup=function(m){var w=this.popups.indexOf(m);w!==-1&&(this.popups.splice(w,1),this.updatePopups())},l.prototype.updatePopups=function(){var m,w,x,M;this.popups.sort(function(P,O){return O.priority-P.priority});var _=[];try{for(var k=g(this.popups),C=k.next();!C.done;C=k.next()){var L=C.value,D=!0;try{for(var R=(x=void 0,g(_)),I=R.next();!I.done;I=R.next()){var H=I.value;if(this.doPopupsOverlap(H,L)){D=!1;break}}}catch(P){x={error:P}}finally{try{I&&!I.done&&(M=R.return)&&M.call(R)}finally{if(x)throw x.error}}D?_.push(L):L.hide()}}catch(P){m={error:P}}finally{try{C&&!C.done&&(w=k.return)&&w.call(k)}finally{if(m)throw m.error}}},l.prototype.doPopupsOverlap=function(m,w){var x=m.getElement().getBoundingClientRect(),M=w.getElement().getBoundingClientRect();return x.left<M.right&&x.right>M.left&&x.top<M.bottom&&x.bottom>M.top},l}(),c=new u;r.popupManager=c,r.Tooltip=a;var i=function(l){p(m,l);function m(w){w===void 0&&(w=document.body);var x=l.call(this,w)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var M=x.getElement();return M.style.whiteSpace="pre-wrap",M.style.pointerEvents="auto",M.addEventListener("mouseout",x.onMouseOut),M.tabIndex=-1,M.addEventListener("blur",(function(){M.contains(document.activeElement)||this.hide()}).bind(x)),M.addEventListener("wheel",f),x}return m.prototype.addToEditor=function(w){w.on("mousemove",this.onMouseMove),w.on("mousedown",this.hide);var x=w.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(w){w.off("mousemove",this.onMouseMove),w.off("mousedown",this.hide);var x=w.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(w,x){this.lastEvent=w,this.lastT=Date.now();var M=x.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||M||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||M||(this.lastEvent=w,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var w=Date.now()-this.lastT;if(this.idleTime-w>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-w);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(w){var x=w.editor,M=w.getDocumentPosition(),_=x.session.getLine(M.row);if(M.column==_.length){var k=x.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),C=x.session.documentToScreenPosition(M.row,M.column);if(C.column!=k.column||C.row!=k.row)return!0}return!1},m.prototype.setDataProvider=function(w){this.$gatherData=w},m.prototype.showForRange=function(w,x,M,_){if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var k=w.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(k.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=k.textToScreenCoordinates(x.start.row,x.start.column),L=k.scroller.getBoundingClientRect();C.pageX<L.left&&(C.pageX=L.left);var D=this.getElement();D.innerHTML="",D.appendChild(M),D.style.maxHeight="",D.style.display="block",this.$setPosition(w,C,!0,x),b.$fixPositionBug(D)}},m.prototype.$setPosition=function(w,x,M,_){var k=10;M&&this.addMarker(_,w.session);var C=w.renderer,L=this.getElement(),D=L.offsetHeight,R=L.offsetWidth,I=x.pageY,H=x.pageX,P=window.innerHeight-I-C.lineHeight,O=this.$shouldPlaceAbove(D,I,P-k);L.style.maxHeight=(O?I:P)-k+"px",L.style.top=O?"":I+C.lineHeight+"px",L.style.bottom=O?window.innerHeight-I+"px":"",L.style.left=Math.min(H,window.innerWidth-R-k)+"px"},m.prototype.$shouldPlaceAbove=function(w,x,M){return!(x-w<0&&x<M)},m.prototype.addMarker=function(w,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(w,"ace_highlight-marker","text")},m.prototype.hide=function(w){w&&this.$fromKeyboard&&w.type=="keydown"&&w.code=="Escape"||!w&&document.activeElement==this.getElement()||w&&w.target&&(w.type!="keydown"||w.ctrlKey||w.metaKey)&&this.$element.contains(w.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(w){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||w.relatedTarget.classList.contains("ace_content")||this.hide())},m}(a);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(t,r,d){var p=this&&this.__extends||function(){var i=function(l,m){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(w[M]=x[M])},i(l,m)};return function(l,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");i(l,m);function w(){this.constructor=l}l.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}}(),g=this&&this.__values||function(i){var l=typeof Symbol=="function"&&Symbol.iterator,m=l&&i[l],w=0;if(m)return m.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&w>=i.length&&(i=void 0),{value:i&&i[w++],done:!i}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},b=t("../lib/dom"),h=t("./mouse_event").MouseEvent,f=t("../tooltip").HoverTooltip,s=t("../config").nls,a=t("../range").Range;function u(i){var l=i.editor,m=l.renderer.$gutterLayer;i.$tooltip=new c(l),i.$tooltip.addToEditor(l),i.$tooltip.setDataProvider(function(w,x){var M=w.getDocumentPosition().row;i.$tooltip.showTooltip(M)}),i.editor.setDefaultHandler("guttermousedown",function(w){if(!(!l.isFocused()||w.getButton()!=0)){var x=m.getRegion(w);if(x!="foldWidgets"){var M=w.getDocumentPosition().row,_=l.session.selection;if(w.getShiftKey())_.selectTo(M,0);else{if(w.domEvent.detail==2)return l.selectAll(),w.preventDefault();i.$clickSelection=l.selection.getLineRange(M)}return i.setState("selectByLines"),i.captureMouse(w),w.preventDefault()}}})}r.GutterHandler=u;var c=function(i){p(l,i);function l(m){var w=i.call(this,m.container)||this;w.id="gt"+ ++l.$uid,w.editor=m,w.visibleTooltipRow;var x=w.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",w.id),x.style.pointerEvents="auto",w.idleTime=50,w.onDomMouseMove=w.onDomMouseMove.bind(w),w.onDomMouseOut=w.onDomMouseOut.bind(w),w.setClassName("ace_gutter-tooltip"),w}return l.prototype.onDomMouseMove=function(m){var w=new h(m,this.editor);this.onMouseMove(w,this.editor)},l.prototype.onDomMouseOut=function(m){var w=new h(m,this.editor);this.onMouseOut(w)},l.prototype.addToEditor=function(m){var w=m.renderer.$gutter;w.addEventListener("mousemove",this.onDomMouseMove),w.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,m)},l.prototype.removeFromEditor=function(m){var w=m.renderer.$gutter;w.removeEventListener("mousemove",this.onDomMouseMove),w.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,m)},l.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(l,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),l.prototype.showTooltip=function(m){var w,x=this.editor.renderer.$gutterLayer,M=x.$annotations[m],_;M?_={displayText:Array.from(M.displayText),type:Array.from(M.type)}:_={displayText:[],type:[]};var k=x.session.getFoldLine(m);if(k&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},D,R=m+1;R<=k.end.row;R++)if(x.$annotations[R])for(var I=0;I<x.$annotations[R].text.length;I++){var H=x.$annotations[R].type[I];C[H].push(x.$annotations[R].text[I]),(!D||L[H]<L[D])&&(D=H)}if(["error","security","warning"].includes(D)){var P="".concat(l.annotationsToSummaryString(C)," in folded code.");_.displayText.push(P),_.type.push(D+"_fold")}}if(_.displayText.length===0)return this.hide();for(var O={error:[],security:[],warning:[],info:[],hint:[]},$=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<_.displayText.length;R++){var A=b.createElement("span"),N=b.createElement("span");(w=N.classList).add.apply(w,["ace_".concat(_.type[R]),$]),N.setAttribute("aria-label","".concat(l.annotationLabels[_.type[R].replace("_fold","")].singular)),N.setAttribute("role","img"),N.appendChild(b.createTextNode(" ")),A.appendChild(N),A.appendChild(b.createTextNode(_.displayText[R])),A.appendChild(b.createElement("br")),O[_.type[R].replace("_fold","")].push(A)}var B=b.createElement("span");O.error.forEach(function(Q){return B.appendChild(Q)}),O.security.forEach(function(Q){return B.appendChild(Q)}),O.warning.forEach(function(Q){return B.appendChild(Q)}),O.info.forEach(function(Q){return B.appendChild(Q)}),O.hint.forEach(function(Q){return B.appendChild(Q)}),B.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(m);U&&U.setAttribute("aria-describedby",this.id);var K=a.fromPoints({row:m,column:0},{row:m,column:0});this.showForRange(this.editor,K,B),this.visibleTooltipRow=m,this.editor._signal("showGutterTooltip",this)},l.prototype.$setPosition=function(m,w,x,M){var _=this.$findCellByRow(M.start.row);if(_){var k=_&&_.element,C=k&&k.querySelector(".ace_gutter_annotation");if(C){var L=C.getBoundingClientRect();if(L){var D={pageX:L.right,pageY:L.top};return i.prototype.$setPosition.call(this,m,D,!1,M)}}}},l.prototype.$shouldPlaceAbove=function(m,w,x){return x<m},l.prototype.$findLinkedAnnotationNode=function(m){var w=this.$findCellByRow(m);if(w){var x=w.element;if(x.childNodes.length>2)return x.childNodes[2]}},l.prototype.$findCellByRow=function(m){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(w){return w.row===m})},l.prototype.hide=function(m){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var w=this.$findLinkedAnnotationNode(this.visibleTooltipRow);w&&w.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,m)}},l.annotationsToSummaryString=function(m){var w,x,M=[],_=["error","security","warning","info","hint"];try{for(var k=g(_),C=k.next();!C.done;C=k.next()){var L=C.value;if(m[L].length){var D=m[L].length===1?l.annotationLabels[L].singular:l.annotationLabels[L].plural;M.push("".concat(m[L].length," ").concat(D))}}}catch(R){w={error:R}}finally{try{C&&!C.done&&(x=k.return)&&x.call(k)}finally{if(w)throw w.error}}return M.join(", ")},l.prototype.isOutsideOfText=function(m){var w=m.editor,x=w.renderer.$gutter.getBoundingClientRect();return!(m.clientX>=x.left&&m.clientX<=x.right&&m.clientY>=x.top&&m.clientY<=x.bottom)},l}(f);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,r,d){var p=t("../lib/dom"),g=t("../lib/event"),b=t("../lib/useragent"),h=200,f=200,s=5;function a(c){var i=c.editor,l=p.createElement("div");l.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",l.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(ne){c[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(c));var w=i.container,x,M,_,k,C,L,D=0,R,I,H,P,O;this.onDragStart=function(ne){if(this.cancelDrag||!w.draggable){var le=this;return setTimeout(function(){le.startSelect(),le.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var se=ne.dataTransfer;se.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(l),se.setDragImage&&se.setDragImage(l,0,0),setTimeout(function(){i.container.removeChild(l)}),se.clearData(),se.setData("Text",i.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(ne){if(w.draggable=!1,I=!1,this.setState(null),!i.getReadOnly()){var le=ne.dataTransfer.dropEffect;!R&&le=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return M=ne.clientX,_=ne.clientY,x||B(),D++,ne.dataTransfer.dropEffect=R=he(ne),g.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return M=ne.clientX,_=ne.clientY,x||(B(),D++),K!==null&&(K=null),ne.dataTransfer.dropEffect=R=he(ne),g.preventDefault(ne)},this.onDragLeave=function(ne){if(D--,D<=0&&x)return U(),R=null,g.preventDefault(ne)},this.onDrop=function(ne){if(L){var le=ne.dataTransfer;if(I)switch(R){case"move":C.contains(L.row,L.column)?C={start:L,end:L}:C=i.moveText(C,L);break;case"copy":C=i.moveText(C,L,!0);break}else{var se=le.getData("Text");C={start:L,end:i.session.insert(L,se)},i.focus(),R=null}return U(),g.preventDefault(ne)}},g.addListener(w,"dragstart",this.onDragStart.bind(c),i),g.addListener(w,"dragend",this.onDragEnd.bind(c),i),g.addListener(w,"dragenter",this.onDragEnter.bind(c),i),g.addListener(w,"dragover",this.onDragOver.bind(c),i),g.addListener(w,"dragleave",this.onDragLeave.bind(c),i),g.addListener(w,"drop",this.onDrop.bind(c),i);function $(ne,le){var se=Date.now(),de=!le||ne.row!=le.row,me=!le||ne.column!=le.column;if(!P||de||me)i.moveCursorToPosition(ne),P=se,O={x:M,y:_};else{var _e=u(O.x,O.y,M,_);_e>s?P=null:se-P>=f&&(i.renderer.scrollCursorIntoView(),P=null)}}function A(ne,le){var se=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,_e=i.renderer.scroller.getBoundingClientRect(),Te={x:{left:M-_e.left,right:_e.right-M},y:{top:_-_e.top,bottom:_e.bottom-_}},Me=Math.min(Te.x.left,Te.x.right),Je=Math.min(Te.y.top,Te.y.bottom),Xe={row:ne.row,column:ne.column};Me/me<=2&&(Xe.column+=Te.x.left<Te.x.right?-3:2),Je/de<=1&&(Xe.row+=Te.y.top<Te.y.bottom?-1:1);var ht=ne.row!=Xe.row,st=ne.column!=Xe.column,dt=!le||ne.row!=le.row;ht||st&&!dt?H?se-H>=h&&i.renderer.scrollCursorIntoView(Xe):H=se:H=null}function N(){var ne=L;L=i.renderer.screenToTextCoordinates(M,_),$(L,ne),A(L,ne)}function B(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),N(),k=setInterval(N,20),D=0,g.addListener(document,"mousemove",Q)}function U(){clearInterval(k),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!I&&i.$resetCursorStyle(),C=null,L=null,D=0,H=null,P=null,g.removeListener(document,"mousemove",Q)}var K=null;function Q(){K==null&&(K=setTimeout(function(){K!=null&&x&&U()},20))}function J(ne){var le=ne.types;return!le||Array.prototype.some.call(le,function(se){return se=="text/plain"||se=="Text"})}function he(ne){var le=["copy","copymove","all","uninitialized"],se=["move","copymove","linkmove","all","uninitialized"],de=b.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var _e="none";return de&&le.indexOf(me)>=0?_e="copy":se.indexOf(me)>=0?_e="move":le.indexOf(me)>=0&&(_e="copy"),_e}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,i=c.container;i.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var l=b.isWin?"default":"move";c.renderer.setCursorStyle(l),this.setState("dragReady")},this.onMouseDrag=function(c){var i=this.editor.container;if(b.isIE&&this.state=="dragReady"){var l=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);l>3&&i.dragDrop()}if(this.state==="dragWait"){var l=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);l>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var i=this.editor,l=c.inSelection(),m=c.getButton(),w=c.domEvent.detail||1;if(w===1&&m===0&&l){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(b.isWebKit){this.cancelDrag=!0;var M=i.container;M.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(a.prototype);function u(c,i,l,m){return Math.sqrt(Math.pow(l-c,2)+Math.pow(m-i,2))}r.DragdropHandler=a}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,r,d){var p=t("./mouse_event").MouseEvent,g=t("../lib/event"),b=t("../lib/dom");r.addTouchListeners=function(h,f){var s="scroll",a,u,c,i,l,m,w=0,x,M=0,_=0,k=0,C,L;function D(){var $=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var K=f.getCopyText(),Q=f.session.getUndoManager().hasUndo();L.replaceChild(b.buildDom(A?["span",!K&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],K&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],K&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Q&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),L.firstChild)},B=function(K){return f.commands.canExecute(K,f)},U=function(K){var Q=K.target.getAttribute("action");if(Q=="more"||!A)return A=!A,N();Q=="paste"?$.readText().then(function(J){f.execCommand(Q,J)}):Q&&((Q=="cut"||Q=="copy")&&($?$.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand(Q)),L.firstChild.style.display="none",A=!1,Q!="openCommandPalette"&&f.focus()};L=b.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(K){s="menu",K.stopPropagation(),K.preventDefault(),f.textInput.focus()},ontouchend:function(K){K.stopPropagation(),K.preventDefault(),U(K)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}function R(){if(!f.getOption("enableMobileMenu")){L&&I();return}L||D();var $=f.selection.cursor,A=f.renderer.textToScreenCoordinates($.row,$.column),N=f.renderer.textToScreenCoordinates(0,0).pageX,B=f.renderer.scrollLeft,U=f.container.getBoundingClientRect();L.style.top=A.pageY-U.top-3+"px",A.pageX-U.left<U.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=N+B-U.left+"px"),L.style.display="",L.firstChild.style.display="none",f.on("input",I)}function I($){L&&(L.style.display="none"),f.off("input",I)}function H(){l=null,clearTimeout(l);var $=f.selection.getRange(),A=$.contains(x.row,x.column);($.isEmpty()||!A)&&(f.selection.moveToPosition(x),f.selection.selectWord()),s="wait",R()}function P(){l=null,clearTimeout(l),f.selection.moveToPosition(x);var $=M>=2?f.selection.getLineRange(x.row):f.session.getBracketRange(x);$&&!$.isEmpty()?f.selection.setRange($):f.selection.selectWord(),s="wait"}g.addListener(h,"contextmenu",function($){if(C){var A=f.textInput.getElement();A.focus()}},f),g.addListener(h,"touchstart",function($){var A=$.touches;if(l||A.length>1){clearTimeout(l),l=null,c=-1,s="zoom";return}C=f.$mouseHandler.isMousePressed=!0;var N=f.renderer.layerConfig.lineHeight,B=f.renderer.layerConfig.lineHeight,U=$.timeStamp;i=U;var K=A[0],Q=K.clientX,J=K.clientY;Math.abs(a-Q)+Math.abs(u-J)>N&&(c=-1),a=$.clientX=Q,u=$.clientY=J,_=k=0;var he=new p($,f);if(x=he.getDocumentPosition(),U-c<500&&A.length==1&&!w)M++,$.preventDefault(),$.button=0,P();else{M=0;var ne=f.selection.cursor,le=f.selection.isEmpty()?ne:f.selection.anchor,se=f.renderer.$cursorLayer.getPixelPosition(ne,!0),de=f.renderer.$cursorLayer.getPixelPosition(le,!0),me=f.renderer.scroller.getBoundingClientRect(),_e=f.renderer.layerConfig.offset,Te=f.renderer.scrollLeft,Me=function(ht,st){return ht=ht/B,st=st/N-.75,ht*ht+st*st};if($.clientX<me.left){s="zoom";return}var Je=Me($.clientX-me.left-se.left+Te,$.clientY-me.top-se.top+_e),Xe=Me($.clientX-me.left-de.left+Te,$.clientY-me.top-de.top+_e);Je<3.5&&Xe<3.5&&(s=Je>Xe?"cursor":"anchor"),Xe<3.5?s="anchor":Je<3.5?s="cursor":s="scroll",l=setTimeout(H,450)}c=U},f),g.addListener(h,"touchend",function($){C=f.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),s=="zoom"?(s="",w=0):l?(f.selection.moveToPosition(x),w=0,R()):s=="scroll"?(O(),I()):R(),clearTimeout(l),l=null},f),g.addListener(h,"touchmove",function($){l&&(clearTimeout(l),l=null);var A=$.touches;if(!(A.length>1||s=="zoom")){var N=A[0],B=a-N.clientX,U=u-N.clientY;if(s=="wait")if(B*B+U*U>4)s="cursor";else return $.preventDefault();a=N.clientX,u=N.clientY,$.clientX=N.clientX,$.clientY=N.clientY;var K=$.timeStamp,Q=K-i;if(i=K,s=="scroll"){var J=new p($,f);J.speed=1,J.wheelX=B,J.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Q!=0&&(_=B/Q,k=U/Q),f._emit("mousewheel",J),J.propagationStopped||(_=k=0)}else{var he=new p($,f),ne=he.getDocumentPosition();s=="cursor"?f.selection.moveCursorToPosition(ne):s=="anchor"&&f.selection.setSelectionAnchor(ne.row,ne.column),f.renderer.scrollCursorIntoView(ne),$.preventDefault()}}},f);function O(){w+=60,m=setInterval(function(){w--<=0&&(clearInterval(m),m=null),Math.abs(_)<.01&&(_=0),Math.abs(k)<.01&&(k=0),w<20&&(_=.9*_),w<20&&(k=.9*k);var $=f.session.getScrollTop();f.renderer.scrollBy(10*_,10*k),$==f.session.getScrollTop()&&(w=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(t,r,d){var p=t("../lib/event"),g=t("../lib/useragent"),b=t("./default_handlers").DefaultHandlers,h=t("./default_gutter_handler").GutterHandler,f=t("./mouse_event").MouseEvent,s=t("./dragdrop_handler").DragdropHandler,a=t("./touch_handler").addTouchListeners,u=t("../config"),c=function(){function i(l){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=l,new b(this),new h(this),new s(this);var w=function(_){var k=!document.hasFocus||!document.hasFocus()||!l.isFocused()&&document.activeElement==(l.textInput&&l.textInput.getElement());k&&window.focus(),l.focus(),setTimeout(function(){l.isFocused()||l.focus()})},x=l.renderer.getMouseEventTarget();p.addListener(x,"click",this.onMouseEvent.bind(this,"click"),l),p.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),l),p.addMultiMouseDownListener([x,l.renderer.scrollBarV&&l.renderer.scrollBarV.inner,l.renderer.scrollBarH&&l.renderer.scrollBarH.inner,l.textInput&&l.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",l),p.addMouseWheelListener(l.container,this.onMouseWheel.bind(this,"mousewheel"),l),a(l.container,l);var M=l.renderer.$gutter;p.addListener(M,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),l),p.addListener(M,"click",this.onMouseEvent.bind(this,"gutterclick"),l),p.addListener(M,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),l),p.addListener(M,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),l),p.addListener(x,"mousedown",w,l),p.addListener(M,"mousedown",w,l),g.isIE&&l.renderer.scrollBarV&&(p.addListener(l.renderer.scrollBarV.element,"mousedown",w,l),p.addListener(l.renderer.scrollBarH.element,"mousedown",w,l)),l.on("mousemove",function(_){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var k=l.renderer.screenToTextCoordinates(_.x,_.y),C=l.session.selection.getRange(),L=l.renderer;!C.isEmpty()&&C.insideStart(k.row,k.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},l)}return i.prototype.onMouseEvent=function(l,m){this.editor.session&&this.editor._emit(l,new f(m,this.editor))},i.prototype.onMouseMove=function(l,m){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!w||!w.length||this.editor._emit(l,new f(m,this.editor))},i.prototype.onMouseWheel=function(l,m){var w=new f(m,this.editor);w.speed=this.$scrollSpeed*2,w.wheelX=m.wheelX,w.wheelY=m.wheelY,this.editor._emit(l,w)},i.prototype.setState=function(l){this.state=l},i.prototype.captureMouse=function(l,m){this.x=l.x,this.y=l.y,this.isMousePressed=!0;var w=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var M=this,_=!0,k=function(I){if(I){if(g.isWebKit&&!I.which&&M.releaseMouse)return M.releaseMouse();M.x=I.clientX,M.y=I.clientY,m&&m(I),M.mouseEvent=new f(I,M.editor),M.$mouseMoved=!0}},C=function(I){w.off("beforeEndOperation",R),_=!1,w.session&&L(),M[M.state+"End"]&&M[M.state+"End"](I),M.state="",M.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),M.$onCaptureMouseMove=M.releaseMouse=null,I&&M.onMouseEvent("mouseup",I),w.endOperation()},L=function(){M[M.state]&&M[M.state](),M.$mouseMoved=!1},D=function(){_&&(L(),p.nextFrame(D))};if(g.isOldIE&&l.domEvent.type=="dblclick")return setTimeout(function(){C(l)});var R=function(I){M.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(M[M.state+"End"]&&M[M.state+"End"](),M.state="",M.releaseMouse())};w.on("beforeEndOperation",R),w.startOperation({command:{name:"mouse"}}),M.$onCaptureMouseMove=k,M.releaseMouse=p.capture(this.editor.container,k,C),D()},i.prototype.cancelContextMenu=function(){var l=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",l),m&&m.domEvent&&p.stopEvent(m.domEvent))}).bind(this);setTimeout(l,10),this.editor.on("nativecontextmenu",l)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i}();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:g.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,r,d){var p=t("../lib/dom"),g=function(){function b(h){h.on("click",function(f){var s=f.getDocumentPosition(),a=h.session,u=a.getFoldAt(s.row,s.column,1);u&&(f.getAccelKey()?a.removeFold(u):a.expandFold(u),f.stop());var c=f.domEvent&&f.domEvent.target;c&&p.hasCssClass(c,"ace_inline_button")&&p.hasCssClass(c,"ace_toggle_wrap")&&(a.setOption("wrap",!a.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(f){var s=h.renderer.$gutterLayer.getRegion(f);if(s=="foldWidgets"){var a=f.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[a]&&h.session.onFoldWidgetClick(a,f),h.isFocused()||h.focus(),f.stop()}}),h.on("gutterdblclick",function(f){var s=h.renderer.$gutterLayer.getRegion(f);if(s=="foldWidgets"){var a=f.getDocumentPosition().row,u=h.session,c=u.getParentFoldRangeData(a,!0),i=c.range||c.firstRange;if(i){a=i.start.row;var l=u.getFoldAt(a,u.getLine(a).length,1);l?u.removeFold(l):(u.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}f.stop()}})}return b}();r.FoldHandler=g}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,r,d){var p=t("../lib/keys"),g=t("../lib/event"),b=function(){function h(f){this.$editor=f,this.$data={editor:f},this.$handlers=[],this.setDefaultHandler(f.commands)}return h.prototype.setDefaultHandler=function(f){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=f,this.addKeyboardHandler(f,0)},h.prototype.setKeyboardHandler=function(f){var s=this.$handlers;if(s[s.length-1]!=f){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(f,1)}},h.prototype.addKeyboardHandler=function(f,s){if(f){typeof f=="function"&&!f.handleKeyboard&&(f.handleKeyboard=f);var a=this.$handlers.indexOf(f);a!=-1&&this.$handlers.splice(a,1),s==null?this.$handlers.push(f):this.$handlers.splice(s,0,f),a==-1&&f.attach&&f.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(f){var s=this.$handlers.indexOf(f);return s==-1?!1:(this.$handlers.splice(s,1),f.detach&&f.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var f=this.$data,s=f.editor;return this.$handlers.map(function(a){return a.getStatusText&&a.getStatusText(s,f)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(f,s,a,u){for(var c,i=!1,l=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,f,s,a,u),!(!(!c||!c.command)&&(c.command=="null"?i=!0:i=l.exec(c.command,this.$editor,c.args,u),i&&u&&f!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&g.stopEvent(u),i))););return!i&&f==-1&&(c={command:"insertstring"},i=l.exec("insertstring",this.$editor,s)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),i},h.prototype.onCommandKey=function(f,s,a){var u=p.keyCodeToString(a);return this.$callKeyboardHandlers(s,u,a,f)},h.prototype.onTextInput=function(f){return this.$callKeyboardHandlers(-1,f)},h}();r.KeyBinding=b}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,r,d){var p=0,g=0,b=!1,h=!1,f=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],a=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,c=1,i=0,l=1,m=2,w=3,x=4,M=5,_=6,k=7,C=8,L=9,D=10,R=11,I=12,H=13,P=14,O=15,$=16,A=17,N=18,B=[N,N,N,N,N,N,N,N,N,_,M,_,C,M,N,N,N,N,N,N,N,N,N,N,N,N,N,N,M,M,M,_,C,x,x,R,R,R,x,x,x,x,x,D,L,D,L,L,m,m,m,m,m,m,m,m,m,m,L,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,N,N,N,N,N,N,M,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,L,x,R,R,R,R,x,x,x,x,i,x,x,N,x,x,R,R,m,m,x,i,x,x,x,m,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,N,N,N,i,l,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,M,H,P,O,$,A,L,R,R,R,R,R,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,L,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function K(ne,le,se,de){var me=p?a:s,_e=null,Te=null,Me=null,Je=0,Xe=null,ht=null,st=-1,dt=null,Qt=null,$n=[];if(!de)for(dt=0,de=[];dt<se;dt++)de[dt]=he(ne[dt]);for(g=p,b=!1,h=!1,f=!1,Qt=0;Qt<se;Qt++){if(_e=Je,$n[Qt]=Te=J(ne,de,$n,Qt),Je=me[_e][Te],Xe=Je&240,Je&=15,le[Qt]=Me=me[Je][5],Xe>0)if(Xe==16){for(dt=st;dt<Qt;dt++)le[dt]=1;st=-1}else st=-1;if(ht=me[Je][6],ht)st==-1&&(st=Qt);else if(st>-1){for(dt=st;dt<Qt;dt++)le[dt]=Me;st=-1}de[Qt]==M&&(le[Qt]=0),g|=Me}if(f){for(dt=0;dt<se;dt++)if(de[dt]==_){le[dt]=p;for(var Ht=dt-1;Ht>=0&&de[Ht]==C;Ht--)le[Ht]=p}}}function Q(ne,le,se){if(!(g<ne)){if(ne==1&&p==c&&!h){se.reverse();return}for(var de=se.length,me=0,_e,Te,Me,Je;me<de;){if(le[me]>=ne){for(_e=me+1;_e<de&&le[_e]>=ne;)_e++;for(Te=me,Me=_e-1;Te<Me;Te++,Me--)Je=se[Te],se[Te]=se[Me],se[Me]=Je;me=_e}me++}}}function J(ne,le,se,de){var me=le[de],_e,Te,Me,Je;switch(me){case i:case l:b=!1;case x:case w:return me;case m:return b?w:m;case k:return b=!0,l;case C:return x;case L:return de<1||de+1>=le.length||(_e=se[de-1])!=m&&_e!=w||(Te=le[de+1])!=m&&Te!=w?x:(b&&(Te=w),Te==_e?Te:x);case D:return _e=de>0?se[de-1]:M,_e==m&&de+1<le.length&&le[de+1]==m?m:x;case R:if(de>0&&se[de-1]==m)return m;if(b)return x;for(Je=de+1,Me=le.length;Je<Me&&le[Je]==R;)Je++;return Je<Me&&le[Je]==m?m:x;case I:for(Me=le.length,Je=de+1;Je<Me&&le[Je]==I;)Je++;if(Je<Me){var Xe=ne[de],ht=Xe>=1425&&Xe<=2303||Xe==64286;if(_e=le[Je],ht&&(_e==l||_e==k))return l}return de<1||(_e=le[de-1])==M?x:se[de-1];case M:return b=!1,h=!0,p;case _:return f=!0,x;case H:case P:case $:case A:case O:b=!1;case N:return x}}function he(ne){var le=ne.charCodeAt(0),se=le>>8;return se==0?le>191?i:B[le]:se==5?/[\u0591-\u05f4]/.test(ne)?l:i:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?I:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?w:le==1642?R:/[\u06f0-\u06f9]/.test(ne)?m:k:se==32&&le<=8287?U[le&255]:se==254&&le>=65136?k:x}r.L=i,r.R=l,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,le,se){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),_e=new Array(de.length),Te=[];p=se?c:u,K(de,Te,de.length,le);for(var Me=0;Me<me.length;me[Me]=Me,Me++);Q(2,Te,me),Q(1,Te,me);for(var Me=0;Me<me.length-1;Me++)le[Me]===w?Te[Me]=r.AN:Te[Me]===l&&(le[Me]>k&&le[Me]<H||le[Me]===x||le[Me]===N)?Te[Me]=r.ON_R:Me>0&&de[Me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Me])&&(Te[Me-1]=Te[Me]=r.R_H,Me++);de[de.length-1]===r.DOT&&(Te[de.length-1]=r.B),de[0]===""&&(Te[0]=r.RLE);for(var Me=0;Me<me.length;Me++)_e[Me]=Te[me[Me]];return{logicalFromVisual:me,bidiLevels:_e}},r.hasBidiCharacters=function(ne,le){for(var se=!1,de=0;de<ne.length;de++)le[de]=he(ne.charAt(de)),!se&&(le[de]==l||le[de]==k||le[de]==w)&&(se=!0);return se},r.getVisualFromLogicalIdx=function(ne,le){for(var se=0;se<le.logicalFromVisual.length;se++)if(le.logicalFromVisual[se]==ne)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(t,r,d){var p=t("./lib/bidiutil"),g=t("./lib/lang"),b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function f(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=b.test(s.getValue())}return f.prototype.isBidiRow=function(s,a,u){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(a,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},f.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&b.test(s.lines.join(`
|
|
178
|
+
`;U!=this.lastValue&&(this.text.value=this.lastValue=U,this.lastSelectionStart=this.lastSelectionEnd=U.length)}if(this.afterContextMenu&&(this.lastSelectionStart=this.text.selectionStart,this.lastSelectionEnd=this.text.selectionEnd),this.lastSelectionEnd!=D||this.lastSelectionStart!=L||this.text.selectionEnd!=this.lastSelectionEnd)try{this.text.setSelectionRange(L,D),this.lastSelectionStart=L,this.lastSelectionEnd=D}catch{}this.inComposition=!1}},k.prototype.setHost=function(C){this.host=C},k.prototype.setNumberOfExtraLines=function(C){if(this.rowStart=Number.MAX_SAFE_INTEGER,this.rowEnd=Number.MIN_SAFE_INTEGER,C<0){this.numberOfExtraLines=0;return}this.numberOfExtraLines=C},k.prototype.setAriaLabel=function(){var C="";if(this.host.$textInputAriaLabel&&(C+="".concat(this.host.$textInputAriaLabel,", ")),this.host.session){var L=this.host.session.selection.cursor.row;C+=g("text-input.aria-label","Cursor at row $0",[L+1])}this.text.setAttribute("aria-label",C)},k.prototype.setAriaOptions=function(C){C.activeDescendant?(this.text.setAttribute("aria-haspopup","true"),this.text.setAttribute("aria-autocomplete",C.inline?"both":"list"),this.text.setAttribute("aria-activedescendant",C.activeDescendant)):(this.text.setAttribute("aria-haspopup","false"),this.text.setAttribute("aria-autocomplete","both"),this.text.removeAttribute("aria-activedescendant")),C.role&&this.text.setAttribute("role",C.role),C.setLabel&&(this.text.setAttribute("aria-roledescription",g("text-input.aria-roledescription","editor")),this.setAriaLabel())},k.prototype.focus=function(){var C=this;if(this.setAriaOptions({setLabel:this.host.renderer.enableKeyboardAccessibility}),this.tempStyle||c||this.$focusScroll=="browser")return this.text.focus({preventScroll:!0});var L=this.text.style.top;this.text.style.position="fixed",this.text.style.top="0px";try{var D=this.text.getBoundingClientRect().top!=0}catch{return}var R=[];if(D)for(var I=this.text.parentElement;I&&I.nodeType==1;)R.push(I),I.setAttribute("ace_nocontext","true"),!I.parentElement&&I.getRootNode?I=I.getRootNode().host:I=I.parentElement;this.text.focus({preventScroll:!0}),D&&R.forEach(function(H){H.removeAttribute("ace_nocontext")}),setTimeout(function(){C.text.style.position="",C.text.style.top=="0px"&&(C.text.style.top=L)},0)},k.prototype.blur=function(){this.text.blur()},k.prototype.isFocused=function(){return this.$isFocused},k.prototype.setInputHandler=function(C){this.inputHandler=C},k.prototype.getInputHandler=function(){return this.inputHandler},k.prototype.getElement=function(){return this.text},k.prototype.setCommandMode=function(C){this.commandMode=C,this.text.readOnly=!1},k.prototype.setReadOnly=function(C){this.commandMode||(this.text.readOnly=C)},k.prototype.setCopyWithEmptySelection=function(C){},k.prototype.onContextMenu=function(C){this.afterContextMenu=!0,this.resetSelection(),this.host._emit("nativecontextmenu",{target:this.host,domEvent:C}),this.moveToMouse(C,!0)},k.prototype.moveToMouse=function(C,L){var D=this;this.tempStyle||(this.tempStyle=this.text.style.cssText),this.text.style.cssText=(L?"z-index:100000;":"")+(b.isIE?"opacity:0.1;":"")+"text-indent: -"+(this.lastSelectionStart+this.lastSelectionEnd)*this.host.renderer.characterWidth*.5+"px;";var R=this.host.container.getBoundingClientRect(),I=h.computedStyle(this.host.container),H=R.top+(parseInt(I.borderTopWidth)||0),P=R.left+(parseInt(I.borderLeftWidth)||0),O=R.bottom-H-this.text.clientHeight-2,$=function(A){h.translate(D.text,A.clientX-P-2,Math.min(A.clientY-H-2,O))};$(C),C.type=="mousedown"&&(this.host.renderer.$isMousePressed=!0,clearTimeout(this.closeTimeout),b.isWin&&p.capture(this.host.container,$,this.onContextMenuClose.bind(this)))},k.prototype.destroy=function(){this.text.parentElement&&this.text.parentElement.removeChild(this.text)},k}();r.TextInput=_,r.$setUserAgentForTests=function(k,C){M=k,w=C}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(t,r,d){var p=t("../lib/useragent"),g=0,b=550,h=function(){function a(u){u.$clickSelection=null;var c=u.editor;c.setDefaultHandler("mousedown",this.onMouseDown.bind(u)),c.setDefaultHandler("dblclick",this.onDoubleClick.bind(u)),c.setDefaultHandler("tripleclick",this.onTripleClick.bind(u)),c.setDefaultHandler("quadclick",this.onQuadClick.bind(u)),c.setDefaultHandler("mousewheel",this.onMouseWheel.bind(u));var i=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];i.forEach(function(l){u[l]=this[l]},this),u.selectByLines=this.extendSelectionBy.bind(u,"getLineRange"),u.selectByWords=this.extendSelectionBy.bind(u,"getWordRange")}return a.prototype.onMouseDown=function(u){var c=u.inSelection(),i=u.getDocumentPosition();this.mousedownEvent=u;var l=this.editor,m=u.getButton();if(m!==0){var w=l.getSelectionRange(),x=w.isEmpty();(x||m==1)&&l.selection.moveToPosition(i),m==2&&(l.textInput.onContextMenu(u.domEvent),p.isMozilla||u.preventDefault());return}if(this.mousedownEvent.time=Date.now(),c&&!l.isFocused()&&(l.focus(),this.$focusTimeout&&!this.$clickSelection&&!l.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(u);return}return this.captureMouse(u),this.startSelect(i,u.domEvent._clicks>1),u.preventDefault()},a.prototype.startSelect=function(u,c){u=u||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(u):c||i.selection.moveToPosition(u),c||this.select(),i.setStyle("ace_selecting"),this.setState("select"))},a.prototype.select=function(){var u,c=this.editor,i=c.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var l=this.$clickSelection.comparePoint(i);if(l==-1)u=this.$clickSelection.end;else if(l==1)u=this.$clickSelection.start;else{var m=s(this.$clickSelection,i,c.session);i=m.cursor,u=m.anchor}c.selection.setSelectionAnchor(u.row,u.column)}c.selection.selectToPosition(i),c.renderer.scrollCursorIntoView()},a.prototype.extendSelectionBy=function(u){var c,i=this.editor,l=i.renderer.screenToTextCoordinates(this.x,this.y),m=i.selection[u](l.row,l.column);if(this.$clickSelection){var w=this.$clickSelection.comparePoint(m.start),x=this.$clickSelection.comparePoint(m.end);if(w==-1&&x<=0)c=this.$clickSelection.end,(m.end.row!=l.row||m.end.column!=l.column)&&(l=m.start);else if(x==1&&w>=0)c=this.$clickSelection.start,(m.start.row!=l.row||m.start.column!=l.column)&&(l=m.end);else if(w==-1&&x==1)l=m.end,c=m.start;else{var M=s(this.$clickSelection,l,i.session);l=M.cursor,c=M.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(l),i.renderer.scrollCursorIntoView()},a.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},a.prototype.focusWait=function(){var u=f(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),c=Date.now();(u>g||c-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},a.prototype.onDoubleClick=function(u){var c=u.getDocumentPosition(),i=this.editor,l=i.session,m=l.getBracketRange(c);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=i.selection.getWordRange(c.row,c.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},a.prototype.onTripleClick=function(u){var c=u.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var l=i.getSelectionRange();l.isMultiLine()&&l.contains(c.row,c.column)?(this.$clickSelection=i.selection.getLineRange(l.start.row),this.$clickSelection.end=i.selection.getLineRange(l.end.row).end):this.$clickSelection=i.selection.getLineRange(c.row),this.select()},a.prototype.onQuadClick=function(u){var c=this.editor;c.selectAll(),this.$clickSelection=c.getSelectionRange(),this.setState("selectAll")},a.prototype.onMouseWheel=function(u){if(!u.getAccelKey()){u.getShiftKey()&&u.wheelY&&!u.wheelX&&(u.wheelX=u.wheelY,u.wheelY=0);var c=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,l=u.domEvent.timeStamp,m=l-i.t,w=m?u.wheelX/m:i.vx,x=m?u.wheelY/m:i.vy;m<b&&(w=(w+i.vx)/2,x=(x+i.vy)/2);var M=Math.abs(w/x),_=!1;if(M>=1&&c.renderer.isScrollableBy(u.wheelX*u.speed,0)&&(_=!0),M<=1&&c.renderer.isScrollableBy(0,u.wheelY*u.speed)&&(_=!0),_)i.allowed=l;else if(l-i.allowed<b){var k=Math.abs(w)<=1.5*Math.abs(i.vx)&&Math.abs(x)<=1.5*Math.abs(i.vy);k?(_=!0,i.allowed=l):i.allowed=0}if(i.t=l,i.vx=w,i.vy=x,_)return c.renderer.scrollBy(u.wheelX*u.speed,u.wheelY*u.speed),u.stop()}},a}();h.prototype.selectEnd=h.prototype.selectByLinesEnd,h.prototype.selectAllEnd=h.prototype.selectByLinesEnd,h.prototype.selectByWordsEnd=h.prototype.selectByLinesEnd,r.DefaultHandlers=h;function f(a,u,c,i){return Math.sqrt(Math.pow(c-a,2)+Math.pow(i-u,2))}function s(a,u,c){if(a.start.row==a.end.row)var i=2*u.column-a.start.column-a.end.column;else if(a.start.row==a.end.row-1&&!a.start.column&&!a.end.column)var i=3*u.column-2*c.getLine(a.start.row).length;else var i=2*u.row-a.start.row-a.end.row;return i<0?{cursor:a.start,anchor:a.end}:{cursor:a.end,anchor:a.start}}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(t,r,d){var p=t("../lib/event"),g=t("../lib/useragent"),b=function(){function h(f,s){this.speed,this.wheelX,this.wheelY,this.domEvent=f,this.editor=s,this.x=this.clientX=f.clientX,this.y=this.clientY=f.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return h.prototype.stopPropagation=function(){p.stopPropagation(this.domEvent),this.propagationStopped=!0},h.prototype.preventDefault=function(){p.preventDefault(this.domEvent),this.defaultPrevented=!0},h.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},h.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},h.prototype.getGutterRow=function(){var f=this.getDocumentPosition().row,s=this.editor.session.documentToScreenRow(f,0),a=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return s-a},h.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var f=this.editor,s=f.getSelectionRange();if(s.isEmpty())this.$inSelection=!1;else{var a=this.getDocumentPosition();this.$inSelection=s.contains(a.row,a.column)}return this.$inSelection},h.prototype.getButton=function(){return p.getButton(this.domEvent)},h.prototype.getShiftKey=function(){return this.domEvent.shiftKey},h.prototype.getAccelKey=function(){return g.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},h}();r.MouseEvent=b}),ace.define("ace/lib/scroll",["require","exports","module"],function(t,r,d){r.preventParentScroll=function(p){p.stopPropagation();var g=p.currentTarget,b=g.scrollHeight>g.clientHeight;b||p.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(t,r,d){var p=this&&this.__extends||function(){var l=function(m,w){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,M){x.__proto__=M}||function(x,M){for(var _ in M)Object.prototype.hasOwnProperty.call(M,_)&&(x[_]=M[_])},l(m,w)};return function(m,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");l(m,w);function x(){this.constructor=m}m.prototype=w===null?Object.create(w):(x.prototype=w.prototype,new x)}}(),g=this&&this.__values||function(l){var m=typeof Symbol=="function"&&Symbol.iterator,w=m&&l[m],x=0;if(w)return w.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&x>=l.length&&(l=void 0),{value:l&&l[x++],done:!l}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},b=t("./lib/dom");t("./lib/event");var h=t("./range").Range,f=t("./lib/scroll").preventParentScroll,s="ace_tooltip",a=function(){function l(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return l.prototype.$init=function(){return this.$element=b.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},l.prototype.getElement=function(){return this.$element||this.$init()},l.prototype.setText=function(m){this.getElement().textContent=m},l.prototype.setHtml=function(m){this.getElement().innerHTML=m},l.prototype.setPosition=function(m,w){this.getElement().style.left=m+"px",this.getElement().style.top=w+"px"},l.prototype.setClassName=function(m){b.addCssClass(this.getElement(),m)},l.prototype.setTheme=function(m){this.theme&&(this.theme.isDark&&b.removeCssClass(this.getElement(),"ace_dark"),this.theme.cssClass&&b.removeCssClass(this.getElement(),this.theme.cssClass)),m.isDark&&b.addCssClass(this.getElement(),"ace_dark"),m.cssClass&&b.addCssClass(this.getElement(),m.cssClass),this.theme={isDark:m.isDark,cssClass:m.cssClass}},l.prototype.show=function(m,w,x){m!=null&&this.setText(m),w!=null&&x!=null&&this.setPosition(w,x),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},l.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},l.prototype.getHeight=function(){return this.getElement().offsetHeight},l.prototype.getWidth=function(){return this.getElement().offsetWidth},l.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},l}(),u=function(){function l(){this.popups=[]}return l.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},l.prototype.removePopup=function(m){var w=this.popups.indexOf(m);w!==-1&&(this.popups.splice(w,1),this.updatePopups())},l.prototype.updatePopups=function(){var m,w,x,M;this.popups.sort(function(P,O){return O.priority-P.priority});var _=[];try{for(var k=g(this.popups),C=k.next();!C.done;C=k.next()){var L=C.value,D=!0;try{for(var R=(x=void 0,g(_)),I=R.next();!I.done;I=R.next()){var H=I.value;if(this.doPopupsOverlap(H,L)){D=!1;break}}}catch(P){x={error:P}}finally{try{I&&!I.done&&(M=R.return)&&M.call(R)}finally{if(x)throw x.error}}D?_.push(L):L.hide()}}catch(P){m={error:P}}finally{try{C&&!C.done&&(w=k.return)&&w.call(k)}finally{if(m)throw m.error}}},l.prototype.doPopupsOverlap=function(m,w){var x=m.getElement().getBoundingClientRect(),M=w.getElement().getBoundingClientRect();return x.left<M.right&&x.right>M.left&&x.top<M.bottom&&x.bottom>M.top},l}(),c=new u;r.popupManager=c,r.Tooltip=a;var i=function(l){p(m,l);function m(w){w===void 0&&(w=document.body);var x=l.call(this,w)||this;x.timeout=void 0,x.lastT=0,x.idleTime=350,x.lastEvent=void 0,x.onMouseOut=x.onMouseOut.bind(x),x.onMouseMove=x.onMouseMove.bind(x),x.waitForHover=x.waitForHover.bind(x),x.hide=x.hide.bind(x);var M=x.getElement();return M.style.whiteSpace="pre-wrap",M.style.pointerEvents="auto",M.addEventListener("mouseout",x.onMouseOut),M.tabIndex=-1,M.addEventListener("blur",(function(){M.contains(document.activeElement)||this.hide()}).bind(x)),M.addEventListener("wheel",f),x}return m.prototype.addToEditor=function(w){w.on("mousemove",this.onMouseMove),w.on("mousedown",this.hide);var x=w.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(w){w.off("mousemove",this.onMouseMove),w.off("mousedown",this.hide);var x=w.renderer.getMouseEventTarget();x&&typeof x.removeEventListener=="function"&&x.removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(w,x){this.lastEvent=w,this.lastT=Date.now();var M=x.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||M||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||M||(this.lastEvent=w,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var w=Date.now()-this.lastT;if(this.idleTime-w>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-w);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(w){var x=w.editor,M=w.getDocumentPosition(),_=x.session.getLine(M.row);if(M.column==_.length){var k=x.renderer.pixelToScreenCoordinates(w.clientX,w.clientY),C=x.session.documentToScreenPosition(M.row,M.column);if(C.column!=k.column||C.row!=k.row)return!0}return!1},m.prototype.setDataProvider=function(w){this.$gatherData=w},m.prototype.showForRange=function(w,x,M,_){if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var k=w.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(k.theme)),this.isOpen=!0,this.range=h.fromPoints(x.start,x.end);var C=k.textToScreenCoordinates(x.start.row,x.start.column),L=k.scroller.getBoundingClientRect();C.pageX<L.left&&(C.pageX=L.left);var D=this.getElement();D.innerHTML="",D.appendChild(M),D.style.maxHeight="",D.style.display="block",this.$setPosition(w,C,!0,x),b.$fixPositionBug(D)}},m.prototype.$setPosition=function(w,x,M,_){var k=10;M&&this.addMarker(_,w.session);var C=w.renderer,L=this.getElement(),D=L.offsetHeight,R=L.offsetWidth,I=x.pageY,H=x.pageX,P=window.innerHeight-I-C.lineHeight,O=this.$shouldPlaceAbove(D,I,P-k);L.style.maxHeight=(O?I:P)-k+"px",L.style.top=O?"":I+C.lineHeight+"px",L.style.bottom=O?window.innerHeight-I+"px":"",L.style.left=Math.min(H,window.innerWidth-R-k)+"px"},m.prototype.$shouldPlaceAbove=function(w,x,M){return!(x-w<0&&x<M)},m.prototype.addMarker=function(w,x){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=x,this.marker=x&&x.addMarker(w,"ace_highlight-marker","text")},m.prototype.hide=function(w){w&&this.$fromKeyboard&&w.type=="keydown"&&w.code=="Escape"||!w&&document.activeElement==this.getElement()||w&&w.target&&(w.type!="keydown"||w.ctrlKey||w.metaKey)&&this.$element.contains(w.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$fromKeyboard=!1,this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},m.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},m.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},m.prototype.onMouseOut=function(w){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!w.relatedTarget||this.getElement().contains(w.relatedTarget)||w&&w.currentTarget.contains(w.relatedTarget)||w.relatedTarget.classList.contains("ace_content")||this.hide())},m}(a);r.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/mouse/mouse_event","ace/tooltip","ace/config","ace/range"],function(t,r,d){var p=this&&this.__extends||function(){var i=function(l,m){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(w[M]=x[M])},i(l,m)};return function(l,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");i(l,m);function w(){this.constructor=l}l.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}}(),g=this&&this.__values||function(i){var l=typeof Symbol=="function"&&Symbol.iterator,m=l&&i[l],w=0;if(m)return m.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&w>=i.length&&(i=void 0),{value:i&&i[w++],done:!i}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},b=t("../lib/dom"),h=t("./mouse_event").MouseEvent,f=t("../tooltip").HoverTooltip,s=t("../config").nls,a=t("../range").Range;function u(i){var l=i.editor,m=l.renderer.$gutterLayer;i.$tooltip=new c(l),i.$tooltip.addToEditor(l),i.$tooltip.setDataProvider(function(w,x){var M=w.getDocumentPosition().row;i.$tooltip.showTooltip(M)}),i.editor.setDefaultHandler("guttermousedown",function(w){if(!(!l.isFocused()||w.getButton()!=0)){var x=m.getRegion(w);if(x!="foldWidgets"){var M=w.getDocumentPosition().row,_=l.session.selection;if(w.getShiftKey())_.selectTo(M,0);else{if(w.domEvent.detail==2)return l.selectAll(),w.preventDefault();i.$clickSelection=l.selection.getLineRange(M)}return i.setState("selectByLines"),i.captureMouse(w),w.preventDefault()}}})}r.GutterHandler=u;var c=function(i){p(l,i);function l(m){var w=i.call(this,m.container)||this;w.id="gt"+ ++l.$uid,w.editor=m,w.visibleTooltipRow;var x=w.getElement();return x.setAttribute("role","tooltip"),x.setAttribute("id",w.id),x.style.pointerEvents="auto",w.idleTime=50,w.onDomMouseMove=w.onDomMouseMove.bind(w),w.onDomMouseOut=w.onDomMouseOut.bind(w),w.setClassName("ace_gutter-tooltip"),w}return l.prototype.onDomMouseMove=function(m){var w=new h(m,this.editor);this.onMouseMove(w,this.editor)},l.prototype.onDomMouseOut=function(m){var w=new h(m,this.editor);this.onMouseOut(w)},l.prototype.addToEditor=function(m){var w=m.renderer.$gutter;w.addEventListener("mousemove",this.onDomMouseMove),w.addEventListener("mouseout",this.onDomMouseOut),i.prototype.addToEditor.call(this,m)},l.prototype.removeFromEditor=function(m){var w=m.renderer.$gutter;w.removeEventListener("mousemove",this.onDomMouseMove),w.removeEventListener("mouseout",this.onDomMouseOut),i.prototype.removeFromEditor.call(this,m)},l.prototype.destroy=function(){this.editor&&this.removeFromEditor(this.editor),i.prototype.destroy.call(this)},Object.defineProperty(l,"annotationLabels",{get:function(){return{error:{singular:s("gutter-tooltip.aria-label.error.singular","error"),plural:s("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:s("gutter-tooltip.aria-label.security.singular","security finding"),plural:s("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:s("gutter-tooltip.aria-label.warning.singular","warning"),plural:s("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:s("gutter-tooltip.aria-label.info.singular","information message"),plural:s("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:s("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:s("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),l.prototype.showTooltip=function(m){var w,x=this.editor.renderer.$gutterLayer,M=x.$annotations[m],_;M?_={displayText:Array.from(M.displayText),type:Array.from(M.type)}:_={displayText:[],type:[]};var k=x.session.getFoldLine(m);if(k&&x.$showFoldedAnnotations){for(var C={error:[],security:[],warning:[],info:[],hint:[]},L={error:1,security:2,warning:3,info:4,hint:5},D,R=m+1;R<=k.end.row;R++)if(x.$annotations[R])for(var I=0;I<x.$annotations[R].text.length;I++){var H=x.$annotations[R].type[I];C[H].push(x.$annotations[R].text[I]),(!D||L[H]<L[D])&&(D=H)}if(["error","security","warning"].includes(D)){var P="".concat(l.annotationsToSummaryString(C)," in folded code.");_.displayText.push(P),_.type.push(D+"_fold")}}if(_.displayText.length===0)return this.hide();for(var O={error:[],security:[],warning:[],info:[],hint:[]},$=x.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=0;R<_.displayText.length;R++){var A=b.createElement("span"),N=b.createElement("span");(w=N.classList).add.apply(w,["ace_".concat(_.type[R]),$]),N.setAttribute("aria-label","".concat(l.annotationLabels[_.type[R].replace("_fold","")].singular)),N.setAttribute("role","img"),N.appendChild(b.createTextNode(" ")),A.appendChild(N),A.appendChild(b.createTextNode(_.displayText[R])),A.appendChild(b.createElement("br")),O[_.type[R].replace("_fold","")].push(A)}var B=b.createElement("span");O.error.forEach(function(Q){return B.appendChild(Q)}),O.security.forEach(function(Q){return B.appendChild(Q)}),O.warning.forEach(function(Q){return B.appendChild(Q)}),O.info.forEach(function(Q){return B.appendChild(Q)}),O.hint.forEach(function(Q){return B.appendChild(Q)}),B.setAttribute("aria-live","polite");var U=this.$findLinkedAnnotationNode(m);U&&U.setAttribute("aria-describedby",this.id);var K=a.fromPoints({row:m,column:0},{row:m,column:0});this.showForRange(this.editor,K,B),this.visibleTooltipRow=m,this.editor._signal("showGutterTooltip",this)},l.prototype.$setPosition=function(m,w,x,M){var _=this.$findCellByRow(M.start.row);if(_){var k=_&&_.element,C=k&&k.querySelector(".ace_gutter_annotation");if(C){var L=C.getBoundingClientRect();if(L){var D={pageX:L.right,pageY:L.top};return i.prototype.$setPosition.call(this,m,D,!1,M)}}}},l.prototype.$shouldPlaceAbove=function(m,w,x){return x<m},l.prototype.$findLinkedAnnotationNode=function(m){var w=this.$findCellByRow(m);if(w){var x=w.element;if(x.childNodes.length>2)return x.childNodes[2]}},l.prototype.$findCellByRow=function(m){return this.editor.renderer.$gutterLayer.$lines.cells.find(function(w){return w.row===m})},l.prototype.hide=function(m){if(this.isOpen){if(this.$element.removeAttribute("aria-live"),this.visibleTooltipRow!=null){var w=this.$findLinkedAnnotationNode(this.visibleTooltipRow);w&&w.removeAttribute("aria-describedby")}this.visibleTooltipRow=void 0,this.editor._signal("hideGutterTooltip",this),i.prototype.hide.call(this,m)}},l.annotationsToSummaryString=function(m){var w,x,M=[],_=["error","security","warning","info","hint"];try{for(var k=g(_),C=k.next();!C.done;C=k.next()){var L=C.value;if(m[L].length){var D=m[L].length===1?l.annotationLabels[L].singular:l.annotationLabels[L].plural;M.push("".concat(m[L].length," ").concat(D))}}}catch(R){w={error:R}}finally{try{C&&!C.done&&(x=k.return)&&x.call(k)}finally{if(w)throw w.error}}return M.join(", ")},l.prototype.isOutsideOfText=function(m){var w=m.editor,x=w.renderer.$gutter.getBoundingClientRect();return!(m.clientX>=x.left&&m.clientX<=x.right&&m.clientY>=x.top&&m.clientY<=x.bottom)},l}(f);c.$uid=0,r.GutterTooltip=c}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(t,r,d){var p=t("../lib/dom"),g=t("../lib/event"),b=t("../lib/useragent"),h=200,f=200,s=5;function a(c){var i=c.editor,l=p.createElement("div");l.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",l.textContent=" ";var m=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];m.forEach(function(ne){c[ne]=this[ne]},this),i.on("mousedown",this.onMouseDown.bind(c));var w=i.container,x,M,_,k,C,L,D=0,R,I,H,P,O;this.onDragStart=function(ne){if(this.cancelDrag||!w.draggable){var le=this;return setTimeout(function(){le.startSelect(),le.captureMouse(ne)},0),ne.preventDefault()}C=i.getSelectionRange();var se=ne.dataTransfer;se.effectAllowed=i.getReadOnly()?"copy":"copyMove",i.container.appendChild(l),se.setDragImage&&se.setDragImage(l,0,0),setTimeout(function(){i.container.removeChild(l)}),se.clearData(),se.setData("Text",i.session.getTextRange()),I=!0,this.setState("drag")},this.onDragEnd=function(ne){if(w.draggable=!1,I=!1,this.setState(null),!i.getReadOnly()){var le=ne.dataTransfer.dropEffect;!R&&le=="move"&&i.session.remove(i.getSelectionRange()),i.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return M=ne.clientX,_=ne.clientY,x||B(),D++,ne.dataTransfer.dropEffect=R=he(ne),g.preventDefault(ne)},this.onDragOver=function(ne){if(!(i.getReadOnly()||!J(ne.dataTransfer)))return M=ne.clientX,_=ne.clientY,x||(B(),D++),K!==null&&(K=null),ne.dataTransfer.dropEffect=R=he(ne),g.preventDefault(ne)},this.onDragLeave=function(ne){if(D--,D<=0&&x)return U(),R=null,g.preventDefault(ne)},this.onDrop=function(ne){if(L){var le=ne.dataTransfer;if(I)switch(R){case"move":C.contains(L.row,L.column)?C={start:L,end:L}:C=i.moveText(C,L);break;case"copy":C=i.moveText(C,L,!0);break}else{var se=le.getData("Text");C={start:L,end:i.session.insert(L,se)},i.focus(),R=null}return U(),g.preventDefault(ne)}},g.addListener(w,"dragstart",this.onDragStart.bind(c),i),g.addListener(w,"dragend",this.onDragEnd.bind(c),i),g.addListener(w,"dragenter",this.onDragEnter.bind(c),i),g.addListener(w,"dragover",this.onDragOver.bind(c),i),g.addListener(w,"dragleave",this.onDragLeave.bind(c),i),g.addListener(w,"drop",this.onDrop.bind(c),i);function $(ne,le){var se=Date.now(),de=!le||ne.row!=le.row,me=!le||ne.column!=le.column;if(!P||de||me)i.moveCursorToPosition(ne),P=se,O={x:M,y:_};else{var _e=u(O.x,O.y,M,_);_e>s?P=null:se-P>=f&&(i.renderer.scrollCursorIntoView(),P=null)}}function A(ne,le){var se=Date.now(),de=i.renderer.layerConfig.lineHeight,me=i.renderer.layerConfig.characterWidth,_e=i.renderer.scroller.getBoundingClientRect(),Te={x:{left:M-_e.left,right:_e.right-M},y:{top:_-_e.top,bottom:_e.bottom-_}},Me=Math.min(Te.x.left,Te.x.right),Je=Math.min(Te.y.top,Te.y.bottom),Xe={row:ne.row,column:ne.column};Me/me<=2&&(Xe.column+=Te.x.left<Te.x.right?-3:2),Je/de<=1&&(Xe.row+=Te.y.top<Te.y.bottom?-1:1);var ht=ne.row!=Xe.row,st=ne.column!=Xe.column,dt=!le||ne.row!=le.row;ht||st&&!dt?H?se-H>=h&&i.renderer.scrollCursorIntoView(Xe):H=se:H=null}function N(){var ne=L;L=i.renderer.screenToTextCoordinates(M,_),$(L,ne),A(L,ne)}function B(){C=i.selection.toOrientedRange(),x=i.session.addMarker(C,"ace_selection",i.getSelectionStyle()),i.clearSelection(),i.isFocused()&&i.renderer.$cursorLayer.setBlinking(!1),clearInterval(k),N(),k=setInterval(N,20),D=0,g.addListener(document,"mousemove",Q)}function U(){clearInterval(k),i.session.removeMarker(x),x=null,i.selection.fromOrientedRange(C),i.isFocused()&&!I&&i.$resetCursorStyle(),C=null,L=null,D=0,H=null,P=null,g.removeListener(document,"mousemove",Q)}var K=null;function Q(){K==null&&(K=setTimeout(function(){K!=null&&x&&U()},20))}function J(ne){var le=ne.types;return!le||Array.prototype.some.call(le,function(se){return se=="text/plain"||se=="Text"})}function he(ne){var le=["copy","copymove","all","uninitialized"],se=["move","copymove","linkmove","all","uninitialized"],de=b.isMac?ne.altKey:ne.ctrlKey,me="uninitialized";try{me=ne.dataTransfer.effectAllowed.toLowerCase()}catch{}var _e="none";return de&&le.indexOf(me)>=0?_e="copy":se.indexOf(me)>=0?_e="move":le.indexOf(me)>=0&&(_e="copy"),_e}}(function(){this.dragWait=function(){var c=Date.now()-this.mousedownEvent.time;c>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var c=this.editor.container;c.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(c){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var c=this.editor,i=c.container;i.draggable=!0,c.renderer.$cursorLayer.setBlinking(!1),c.setStyle("ace_dragging");var l=b.isWin?"default":"move";c.renderer.setCursorStyle(l),this.setState("dragReady")},this.onMouseDrag=function(c){var i=this.editor.container;if(b.isIE&&this.state=="dragReady"){var l=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);l>3&&i.dragDrop()}if(this.state==="dragWait"){var l=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);l>0&&(i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(c){if(this.$dragEnabled){this.mousedownEvent=c;var i=this.editor,l=c.inSelection(),m=c.getButton(),w=c.domEvent.detail||1;if(w===1&&m===0&&l){if(c.editor.inMultiSelectMode&&(c.getAccelKey()||c.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=c.domEvent.target||c.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),i.getDragDelay()){if(b.isWebKit){this.cancelDrag=!0;var M=i.container;M.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(c,this.onMouseDrag.bind(this)),c.defaultPrevented=!0}}}}).call(a.prototype);function u(c,i,l,m){return Math.sqrt(Math.pow(l-c,2)+Math.pow(m-i,2))}r.DragdropHandler=a}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(t,r,d){var p=t("./mouse_event").MouseEvent,g=t("../lib/event"),b=t("../lib/dom");r.addTouchListeners=function(h,f){var s="scroll",a,u,c,i,l,m,w=0,x,M=0,_=0,k=0,C,L;function D(){var $=window.navigator&&window.navigator.clipboard,A=!1,N=function(){var K=f.getCopyText(),Q=f.session.getUndoManager().hasUndo();L.replaceChild(b.buildDom(A?["span",!K&&B("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],K&&B("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],K&&B("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],$&&B("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],Q&&B("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],B("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],B("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),L.firstChild)},B=function(K){return f.commands.canExecute(K,f)},U=function(K){var Q=K.target.getAttribute("action");if(Q=="more"||!A)return A=!A,N();Q=="paste"?$.readText().then(function(J){f.execCommand(Q,J)}):Q&&((Q=="cut"||Q=="copy")&&($?$.writeText(f.getCopyText()):document.execCommand("copy")),f.execCommand(Q)),L.firstChild.style.display="none",A=!1,Q!="openCommandPalette"&&f.focus()};L=b.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(K){s="menu",K.stopPropagation(),K.preventDefault(),f.textInput.focus()},ontouchend:function(K){K.stopPropagation(),K.preventDefault(),U(K)},onclick:U},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],f.container)}function R(){if(!f.getOption("enableMobileMenu")){L&&I();return}L||D();var $=f.selection.cursor,A=f.renderer.textToScreenCoordinates($.row,$.column),N=f.renderer.textToScreenCoordinates(0,0).pageX,B=f.renderer.scrollLeft,U=f.container.getBoundingClientRect();L.style.top=A.pageY-U.top-3+"px",A.pageX-U.left<U.width-70?(L.style.left="",L.style.right="10px"):(L.style.right="",L.style.left=N+B-U.left+"px"),L.style.display="",L.firstChild.style.display="none",f.on("input",I)}function I($){L&&(L.style.display="none"),f.off("input",I)}function H(){l=null,clearTimeout(l);var $=f.selection.getRange(),A=$.contains(x.row,x.column);($.isEmpty()||!A)&&(f.selection.moveToPosition(x),f.selection.selectWord()),s="wait",R()}function P(){l=null,clearTimeout(l),f.selection.moveToPosition(x);var $=M>=2?f.selection.getLineRange(x.row):f.session.getBracketRange(x);$&&!$.isEmpty()?f.selection.setRange($):f.selection.selectWord(),s="wait"}g.addListener(h,"contextmenu",function($){if(C){var A=f.textInput.getElement();A.focus()}},f),g.addListener(h,"touchstart",function($){var A=$.touches;if(l||A.length>1){clearTimeout(l),l=null,c=-1,s="zoom";return}C=f.$mouseHandler.isMousePressed=!0;var N=f.renderer.layerConfig.lineHeight,B=f.renderer.layerConfig.lineHeight,U=$.timeStamp;i=U;var K=A[0],Q=K.clientX,J=K.clientY;Math.abs(a-Q)+Math.abs(u-J)>N&&(c=-1),a=$.clientX=Q,u=$.clientY=J,_=k=0;var he=new p($,f);if(x=he.getDocumentPosition(),U-c<500&&A.length==1&&!w)M++,$.preventDefault(),$.button=0,P();else{M=0;var ne=f.selection.cursor,le=f.selection.isEmpty()?ne:f.selection.anchor,se=f.renderer.$cursorLayer.getPixelPosition(ne,!0),de=f.renderer.$cursorLayer.getPixelPosition(le,!0),me=f.renderer.scroller.getBoundingClientRect(),_e=f.renderer.layerConfig.offset,Te=f.renderer.scrollLeft,Me=function(ht,st){return ht=ht/B,st=st/N-.75,ht*ht+st*st};if($.clientX<me.left){s="zoom";return}var Je=Me($.clientX-me.left-se.left+Te,$.clientY-me.top-se.top+_e),Xe=Me($.clientX-me.left-de.left+Te,$.clientY-me.top-de.top+_e);Je<3.5&&Xe<3.5&&(s=Je>Xe?"cursor":"anchor"),Xe<3.5?s="anchor":Je<3.5?s="cursor":s="scroll",l=setTimeout(H,450)}c=U},f),g.addListener(h,"touchend",function($){C=f.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),s=="zoom"?(s="",w=0):l?(f.selection.moveToPosition(x),w=0,R()):s=="scroll"?(O(),I()):R(),clearTimeout(l),l=null},f),g.addListener(h,"touchmove",function($){l&&(clearTimeout(l),l=null);var A=$.touches;if(!(A.length>1||s=="zoom")){var N=A[0],B=a-N.clientX,U=u-N.clientY;if(s=="wait")if(B*B+U*U>4)s="cursor";else return $.preventDefault();a=N.clientX,u=N.clientY,$.clientX=N.clientX,$.clientY=N.clientY;var K=$.timeStamp,Q=K-i;if(i=K,s=="scroll"){var J=new p($,f);J.speed=1,J.wheelX=B,J.wheelY=U,10*Math.abs(B)<Math.abs(U)&&(B=0),10*Math.abs(U)<Math.abs(B)&&(U=0),Q!=0&&(_=B/Q,k=U/Q),f._emit("mousewheel",J),J.propagationStopped||(_=k=0)}else{var he=new p($,f),ne=he.getDocumentPosition();s=="cursor"?f.selection.moveCursorToPosition(ne):s=="anchor"&&f.selection.setSelectionAnchor(ne.row,ne.column),f.renderer.scrollCursorIntoView(ne),$.preventDefault()}}},f);function O(){w+=60,m=setInterval(function(){w--<=0&&(clearInterval(m),m=null),Math.abs(_)<.01&&(_=0),Math.abs(k)<.01&&(k=0),w<20&&(_=.9*_),w<20&&(k=.9*k);var $=f.session.getScrollTop();f.renderer.scrollBy(10*_,10*k),$==f.session.getScrollTop()&&(w=0)},10)}}}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(t,r,d){var p=t("../lib/event"),g=t("../lib/useragent"),b=t("./default_handlers").DefaultHandlers,h=t("./default_gutter_handler").GutterHandler,f=t("./mouse_event").MouseEvent,s=t("./dragdrop_handler").DragdropHandler,a=t("./touch_handler").addTouchListeners,u=t("../config"),c=function(){function i(l){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;var m=this;this.editor=l,new b(this),new h(this),new s(this);var w=function(_){var k=!document.hasFocus||!document.hasFocus()||!l.isFocused()&&document.activeElement==(l.textInput&&l.textInput.getElement());k&&window.focus(),l.focus(),setTimeout(function(){l.isFocused()||l.focus()})},x=l.renderer.getMouseEventTarget();p.addListener(x,"click",this.onMouseEvent.bind(this,"click"),l),p.addListener(x,"mousemove",this.onMouseMove.bind(this,"mousemove"),l),p.addMultiMouseDownListener([x,l.renderer.scrollBarV&&l.renderer.scrollBarV.inner,l.renderer.scrollBarH&&l.renderer.scrollBarH.inner,l.textInput&&l.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",l),p.addMouseWheelListener(l.container,this.onMouseWheel.bind(this,"mousewheel"),l),a(l.container,l);var M=l.renderer.$gutter;p.addListener(M,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),l),p.addListener(M,"click",this.onMouseEvent.bind(this,"gutterclick"),l),p.addListener(M,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),l),p.addListener(M,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),l),p.addListener(x,"mousedown",w,l),p.addListener(M,"mousedown",w,l),g.isIE&&l.renderer.scrollBarV&&(p.addListener(l.renderer.scrollBarV.element,"mousedown",w,l),p.addListener(l.renderer.scrollBarH.element,"mousedown",w,l)),l.on("mousemove",function(_){if(!(m.state||m.$dragDelay||!m.$dragEnabled)){var k=l.renderer.screenToTextCoordinates(_.x,_.y),C=l.session.selection.getRange(),L=l.renderer;!C.isEmpty()&&C.insideStart(k.row,k.column)?L.setCursorStyle("default"):L.setCursorStyle("")}},l)}return i.prototype.onMouseEvent=function(l,m){this.editor.session&&this.editor._emit(l,new f(m,this.editor))},i.prototype.onMouseMove=function(l,m){var w=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;!w||!w.length||this.editor._emit(l,new f(m,this.editor))},i.prototype.onMouseWheel=function(l,m){var w=new f(m,this.editor);w.speed=this.$scrollSpeed*2,w.wheelX=m.wheelX,w.wheelY=m.wheelY,this.editor._emit(l,w)},i.prototype.setState=function(l){this.state=l},i.prototype.captureMouse=function(l,m){this.x=l.x,this.y=l.y,this.isMousePressed=!0;var w=this.editor,x=this.editor.renderer;x.$isMousePressed=!0;var M=this,_=!0,k=function(I){if(I){if(g.isWebKit&&!I.which&&M.releaseMouse)return M.releaseMouse();M.x=I.clientX,M.y=I.clientY,m&&m(I),M.mouseEvent=new f(I,M.editor),M.$mouseMoved=!0}},C=function(I){w.off("beforeEndOperation",R),_=!1,w.session&&L(),M[M.state+"End"]&&M[M.state+"End"](I),M.state="",M.isMousePressed=x.$isMousePressed=!1,x.$keepTextAreaAtCursor&&x.$moveTextAreaToCursor(),M.$onCaptureMouseMove=M.releaseMouse=null,I&&M.onMouseEvent("mouseup",I),w.endOperation()},L=function(){M[M.state]&&M[M.state](),M.$mouseMoved=!1},D=function(){_&&(L(),p.nextFrame(D))};if(g.isOldIE&&l.domEvent.type=="dblclick")return setTimeout(function(){C(l)});var R=function(I){M.releaseMouse&&w.curOp.command.name&&w.curOp.selectionChanged&&(M[M.state+"End"]&&M[M.state+"End"](),M.state="",M.releaseMouse())};w.on("beforeEndOperation",R),w.startOperation({command:{name:"mouse"}}),M.$onCaptureMouseMove=k,M.releaseMouse=p.capture(this.editor.container,k,C),D()},i.prototype.cancelContextMenu=function(){var l=(function(m){m&&m.domEvent&&m.domEvent.type!="contextmenu"||(this.editor.off("nativecontextmenu",l),m&&m.domEvent&&p.stopEvent(m.domEvent))}).bind(this);setTimeout(l,10),this.editor.on("nativecontextmenu",l)},i.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse(),this.$tooltip&&this.$tooltip.destroy()},i}();c.prototype.releaseMouse=null,u.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:g.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0}}),r.MouseHandler=c}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(t,r,d){var p=t("../lib/dom"),g=function(){function b(h){h.on("click",function(f){var s=f.getDocumentPosition(),a=h.session,u=a.getFoldAt(s.row,s.column,1);u&&(f.getAccelKey()?a.removeFold(u):a.expandFold(u),f.stop());var c=f.domEvent&&f.domEvent.target;c&&p.hasCssClass(c,"ace_inline_button")&&p.hasCssClass(c,"ace_toggle_wrap")&&(a.setOption("wrap",!a.getUseWrapMode()),h.renderer.scrollCursorIntoView())}),h.on("gutterclick",function(f){var s=h.renderer.$gutterLayer.getRegion(f);if(s=="foldWidgets"){var a=f.getDocumentPosition().row,u=h.session;u.foldWidgets&&u.foldWidgets[a]&&h.session.onFoldWidgetClick(a,f),h.isFocused()||h.focus(),f.stop()}}),h.on("gutterdblclick",function(f){var s=h.renderer.$gutterLayer.getRegion(f);if(s=="foldWidgets"){var a=f.getDocumentPosition().row,u=h.session,c=u.getParentFoldRangeData(a,!0),i=c.range||c.firstRange;if(i){a=i.start.row;var l=u.getFoldAt(a,u.getLine(a).length,1);l?u.removeFold(l):(u.addFold("...",i),h.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}f.stop()}})}return b}();r.FoldHandler=g}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(t,r,d){var p=t("../lib/keys"),g=t("../lib/event"),b=function(){function h(f){this.$editor=f,this.$data={editor:f},this.$handlers=[],this.setDefaultHandler(f.commands)}return h.prototype.setDefaultHandler=function(f){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=f,this.addKeyboardHandler(f,0)},h.prototype.setKeyboardHandler=function(f){var s=this.$handlers;if(s[s.length-1]!=f){for(;s[s.length-1]&&s[s.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(s[s.length-1]);this.addKeyboardHandler(f,1)}},h.prototype.addKeyboardHandler=function(f,s){if(f){typeof f=="function"&&!f.handleKeyboard&&(f.handleKeyboard=f);var a=this.$handlers.indexOf(f);a!=-1&&this.$handlers.splice(a,1),s==null?this.$handlers.push(f):this.$handlers.splice(s,0,f),a==-1&&f.attach&&f.attach(this.$editor)}},h.prototype.removeKeyboardHandler=function(f){var s=this.$handlers.indexOf(f);return s==-1?!1:(this.$handlers.splice(s,1),f.detach&&f.detach(this.$editor),!0)},h.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},h.prototype.getStatusText=function(){var f=this.$data,s=f.editor;return this.$handlers.map(function(a){return a.getStatusText&&a.getStatusText(s,f)||""}).filter(Boolean).join(" ")},h.prototype.$callKeyboardHandlers=function(f,s,a,u){for(var c,i=!1,l=this.$editor.commands,m=this.$handlers.length;m--&&(c=this.$handlers[m].handleKeyboard(this.$data,f,s,a,u),!(!(!c||!c.command)&&(c.command=="null"?i=!0:i=l.exec(c.command,this.$editor,c.args,u),i&&u&&f!=-1&&c.passEvent!=!0&&c.command.passEvent!=!0&&g.stopEvent(u),i))););return!i&&f==-1&&(c={command:"insertstring"},i=l.exec("insertstring",this.$editor,s)),i&&this.$editor._signal&&this.$editor._signal("keyboardActivity",c),i},h.prototype.onCommandKey=function(f,s,a){var u=p.keyCodeToString(a);return this.$callKeyboardHandlers(s,u,a,f)},h.prototype.onTextInput=function(f){return this.$callKeyboardHandlers(-1,f)},h}();r.KeyBinding=b}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(t,r,d){var p=0,g=0,b=!1,h=!1,f=!1,s=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],a=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,c=1,i=0,l=1,m=2,w=3,x=4,M=5,_=6,k=7,C=8,L=9,D=10,R=11,I=12,H=13,P=14,O=15,$=16,A=17,N=18,B=[N,N,N,N,N,N,N,N,N,_,M,_,C,M,N,N,N,N,N,N,N,N,N,N,N,N,N,N,M,M,M,_,C,x,x,R,R,R,x,x,x,x,x,D,L,D,L,L,m,m,m,m,m,m,m,m,m,m,L,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,x,x,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,i,x,x,x,x,N,N,N,N,N,N,M,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,L,x,R,R,R,R,x,x,x,x,i,x,x,N,x,x,R,R,m,m,x,i,x,x,x,m,i,x,x,x,x,x],U=[C,C,C,C,C,C,C,C,C,C,C,N,N,N,i,l,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C,M,H,P,O,$,A,L,R,R,R,R,R,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,L,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,C];function K(ne,le,se,de){var me=p?a:s,_e=null,Te=null,Me=null,Je=0,Xe=null,ht=null,st=-1,dt=null,Jt=null,$n=[];if(!de)for(dt=0,de=[];dt<se;dt++)de[dt]=he(ne[dt]);for(g=p,b=!1,h=!1,f=!1,Jt=0;Jt<se;Jt++){if(_e=Je,$n[Jt]=Te=J(ne,de,$n,Jt),Je=me[_e][Te],Xe=Je&240,Je&=15,le[Jt]=Me=me[Je][5],Xe>0)if(Xe==16){for(dt=st;dt<Jt;dt++)le[dt]=1;st=-1}else st=-1;if(ht=me[Je][6],ht)st==-1&&(st=Jt);else if(st>-1){for(dt=st;dt<Jt;dt++)le[dt]=Me;st=-1}de[Jt]==M&&(le[Jt]=0),g|=Me}if(f){for(dt=0;dt<se;dt++)if(de[dt]==_){le[dt]=p;for(var Ht=dt-1;Ht>=0&&de[Ht]==C;Ht--)le[Ht]=p}}}function Q(ne,le,se){if(!(g<ne)){if(ne==1&&p==c&&!h){se.reverse();return}for(var de=se.length,me=0,_e,Te,Me,Je;me<de;){if(le[me]>=ne){for(_e=me+1;_e<de&&le[_e]>=ne;)_e++;for(Te=me,Me=_e-1;Te<Me;Te++,Me--)Je=se[Te],se[Te]=se[Me],se[Me]=Je;me=_e}me++}}}function J(ne,le,se,de){var me=le[de],_e,Te,Me,Je;switch(me){case i:case l:b=!1;case x:case w:return me;case m:return b?w:m;case k:return b=!0,l;case C:return x;case L:return de<1||de+1>=le.length||(_e=se[de-1])!=m&&_e!=w||(Te=le[de+1])!=m&&Te!=w?x:(b&&(Te=w),Te==_e?Te:x);case D:return _e=de>0?se[de-1]:M,_e==m&&de+1<le.length&&le[de+1]==m?m:x;case R:if(de>0&&se[de-1]==m)return m;if(b)return x;for(Je=de+1,Me=le.length;Je<Me&&le[Je]==R;)Je++;return Je<Me&&le[Je]==m?m:x;case I:for(Me=le.length,Je=de+1;Je<Me&&le[Je]==I;)Je++;if(Je<Me){var Xe=ne[de],ht=Xe>=1425&&Xe<=2303||Xe==64286;if(_e=le[Je],ht&&(_e==l||_e==k))return l}return de<1||(_e=le[de-1])==M?x:se[de-1];case M:return b=!1,h=!0,p;case _:return f=!0,x;case H:case P:case $:case A:case O:b=!1;case N:return x}}function he(ne){var le=ne.charCodeAt(0),se=le>>8;return se==0?le>191?i:B[le]:se==5?/[\u0591-\u05f4]/.test(ne)?l:i:se==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ne)?I:/[\u0660-\u0669\u066b-\u066c]/.test(ne)?w:le==1642?R:/[\u06f0-\u06f9]/.test(ne)?m:k:se==32&&le<=8287?U[le&255]:se==254&&le>=65136?k:x}r.L=i,r.R=l,r.EN=m,r.ON_R=3,r.AN=4,r.R_H=5,r.B=6,r.RLE=7,r.DOT="·",r.doBidiReorder=function(ne,le,se){if(ne.length<2)return{};var de=ne.split(""),me=new Array(de.length),_e=new Array(de.length),Te=[];p=se?c:u,K(de,Te,de.length,le);for(var Me=0;Me<me.length;me[Me]=Me,Me++);Q(2,Te,me),Q(1,Te,me);for(var Me=0;Me<me.length-1;Me++)le[Me]===w?Te[Me]=r.AN:Te[Me]===l&&(le[Me]>k&&le[Me]<H||le[Me]===x||le[Me]===N)?Te[Me]=r.ON_R:Me>0&&de[Me-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(de[Me])&&(Te[Me-1]=Te[Me]=r.R_H,Me++);de[de.length-1]===r.DOT&&(Te[de.length-1]=r.B),de[0]===""&&(Te[0]=r.RLE);for(var Me=0;Me<me.length;Me++)_e[Me]=Te[me[Me]];return{logicalFromVisual:me,bidiLevels:_e}},r.hasBidiCharacters=function(ne,le){for(var se=!1,de=0;de<ne.length;de++)le[de]=he(ne.charAt(de)),!se&&(le[de]==l||le[de]==k||le[de]==w)&&(se=!0);return se},r.getVisualFromLogicalIdx=function(ne,le){for(var se=0;se<le.logicalFromVisual.length;se++)if(le.logicalFromVisual[se]==ne)return se;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(t,r,d){var p=t("./lib/bidiutil"),g=t("./lib/lang"),b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,h=function(){function f(s){this.session=s,this.bidiMap={},this.currentRow=null,this.bidiUtil=p,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=b.test(s.getValue())}return f.prototype.isBidiRow=function(s,a,u){return this.seenBidi?(s!==this.currentRow&&(this.currentRow=s,this.updateRowLine(a,u),this.updateBidiMap()),this.bidiMap.bidiLevels):!1},f.prototype.onChange=function(s){this.seenBidi?this.currentRow=null:s.action=="insert"&&b.test(s.lines.join(`
|
|
179
179
|
`))&&(this.seenBidi=!0,this.currentRow=null)},f.prototype.getDocumentRow=function(){var s=0,a=this.session.$screenRowCache;if(a.length){var u=this.session.$getRowCacheIndex(a,this.currentRow);u>=0&&(s=this.session.$docRowCache[u])}return s},f.prototype.getSplitIndex=function(){var s=0,a=this.session.$screenRowCache;if(a.length)for(var u,c=this.session.$getRowCacheIndex(a,this.currentRow);this.currentRow-s>0&&(u=this.session.$getRowCacheIndex(a,this.currentRow-s-1),u===c);)c=u,s++;else s=this.currentRow;return s},f.prototype.updateRowLine=function(s,a){s===void 0&&(s=this.getDocumentRow());var u=s===this.session.getLength()-1,c=u?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(s),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[s];i&&(a===void 0&&(a=this.getSplitIndex()),a>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[p.L],this.line=a<i.length?this.line.substring(i[a-1],i[a]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[a]),a==i.length&&(this.line+=this.showInvisibles?c:p.DOT))}else this.line+=this.showInvisibles?c:p.DOT;var l=this.session,m=0,w;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(x,M){return x===" "||l.isFullWidth(x.charCodeAt(0))?(w=x===" "?l.getScreenTabSize(M+m):2,m+=w-1,g.stringRepeat(p.DOT,w)):x}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==p.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},f.prototype.updateBidiMap=function(){var s=[];p.hasBidiCharacters(this.line,s)||this.isRtlDir?this.bidiMap=p.doBidiReorder(this.line,s,this.isRtlDir):this.bidiMap={}},f.prototype.markAsDirty=function(){this.currentRow=null},f.prototype.updateCharacterWidths=function(s){if(this.characterWidth!==s.$characterSize.width){this.fontMetrics=s;var a=this.characterWidth=s.$characterSize.width,u=s.$measureCharWidth("ה");this.charWidths[p.L]=this.charWidths[p.EN]=this.charWidths[p.ON_R]=a,this.charWidths[p.R]=this.charWidths[p.AN]=u,this.charWidths[p.R_H]=u*.45,this.charWidths[p.B]=this.charWidths[p.RLE]=0,this.currentRow=null}},f.prototype.setShowInvisibles=function(s){this.showInvisibles=s,this.currentRow=null},f.prototype.setEolChar=function(s){this.EOL=s},f.prototype.setContentWidth=function(s){this.contentWidth=s},f.prototype.isRtlLine=function(s){return this.$isRtl?!0:s!=null?this.session.getLine(s).charAt(0)==this.RLE:this.isRtlDir},f.prototype.setRtlDirection=function(s,a){for(var u=s.getCursorPosition(),c=s.selection.getSelectionAnchor().row;c<=u.row;c++)!a&&s.session.getLine(c).charAt(0)===s.session.$bidiHandler.RLE?s.session.doc.removeInLine(c,0,1):a&&s.session.getLine(c).charAt(0)!==s.session.$bidiHandler.RLE&&s.session.doc.insert({column:0,row:c},s.session.$bidiHandler.RLE)},f.prototype.getPosLeft=function(s){s-=this.wrapIndent;var a=this.line.charAt(0)===this.RLE?1:0,u=s>a?this.session.getOverwrite()?s:s-1:a,c=p.getVisualFromLogicalIdx(u,this.bidiMap),i=this.bidiMap.bidiLevels,l=0;!this.session.getOverwrite()&&s<=a&&i[c]%2!==0&&c++;for(var m=0;m<c;m++)l+=this.charWidths[i[m]];return!this.session.getOverwrite()&&s>a&&i[c]%2===0&&(l+=this.charWidths[i[c]]),this.wrapIndent&&(l+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(l+=this.rtlLineOffset),l},f.prototype.getSelections=function(s,a){var u=this.bidiMap,c=u.bidiLevels,i,l=[],m=0,w=Math.min(s,a)-this.wrapIndent,x=Math.max(s,a)-this.wrapIndent,M=!1,_=!1,k=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var C,L=0;L<c.length;L++)C=u.logicalFromVisual[L],i=c[L],M=C>=w&&C<x,M&&!_?k=m:!M&&_&&l.push({left:k,width:m-k}),m+=this.charWidths[i],_=M;if(M&&L===c.length&&l.push({left:k,width:m-k}),this.isRtlDir)for(var D=0;D<l.length;D++)l[D].left+=this.rtlLineOffset;return l},f.prototype.offsetToCol=function(u){this.isRtlDir&&(u-=this.rtlLineOffset);var a=0,u=Math.max(u,0),c=0,i=0,l=this.bidiMap.bidiLevels,m=this.charWidths[l[i]];for(this.wrapIndent&&(u-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);u>c+m/2;){if(c+=m,i===l.length-1){m=0;break}m=this.charWidths[l[++i]]}return i>0&&l[i-1]%2!==0&&l[i]%2===0?(u<c&&i--,a=this.bidiMap.logicalFromVisual[i]):i>0&&l[i-1]%2===0&&l[i]%2!==0?a=1+(u>c?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===l.length-1&&m===0&&l[i-1]%2===0||!this.isRtlDir&&i===0&&l[i]%2!==0?a=1+this.bidiMap.logicalFromVisual[i]:(i>0&&l[i-1]%2!==0&&m!==0&&i--,a=this.bidiMap.logicalFromVisual[i]),a===0&&this.isRtlDir&&a++,a+this.wrapIndent},f}();r.BidiHandler=h}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(t,r,d){var p=t("./lib/oop"),g=t("./lib/lang"),b=t("./lib/event_emitter").EventEmitter,h=t("./range").Range,f=function(){function s(a){this.session=a,this.doc=a.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var u=this;this.cursor.on("change",function(c){u.$cursorChanged=!0,u.$silent||u._emit("changeCursor"),!u.$isEmpty&&!u.$silent&&u._emit("changeSelection"),!u.$keepDesiredColumnOnChange&&c.old.column!=c.value.column&&(u.$desiredColumn=null)}),this.anchor.on("change",function(){u.$anchorChanged=!0,!u.$isEmpty&&!u.$silent&&u._emit("changeSelection")})}return s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(a,u){this.$isEmpty=!1,this.anchor.setPosition(a,u)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var a=this.anchor,u=this.lead;return a.row>u.row||a.row==u.row&&a.column>u.column},s.prototype.getRange=function(){var a=this.anchor,u=this.lead;return this.$isEmpty?h.fromPoints(u,u):this.isBackwards()?h.fromPoints(u,a):h.fromPoints(a,u)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(a,u){var c=u?a.end:a.start,i=u?a.start:a.end;this.$setSelection(c.row,c.column,i.row,i.column)},s.prototype.$setSelection=function(a,u,c,i){if(!this.$silent){var l=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(a,u),this.cursor.setPosition(c,i),this.$isEmpty=!h.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||l!=this.$isEmpty||m)&&this._emit("changeSelection")}},s.prototype.$moveSelection=function(a){var u=this.lead;this.$isEmpty&&this.setSelectionAnchor(u.row,u.column),a.call(this)},s.prototype.selectTo=function(a,u){this.$moveSelection(function(){this.moveCursorTo(a,u)})},s.prototype.selectToPosition=function(a){this.$moveSelection(function(){this.moveCursorToPosition(a)})},s.prototype.moveTo=function(a,u){this.clearSelection(),this.moveCursorTo(a,u)},s.prototype.moveToPosition=function(a){this.clearSelection(),this.moveCursorToPosition(a)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(a,u){if(typeof u>"u"){var c=a||this.lead;a=c.row,u=c.column}return this.session.getWordRange(a,u)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var a=this.getCursor(),u=this.session.getAWordRange(a.row,a.column);this.setSelectionRange(u)},s.prototype.getLineRange=function(a,u){var c=typeof a=="number"?a:this.lead.row,i,l=this.session.getFoldLine(c);return l?(c=l.start.row,i=l.end.row):i=c,u===!0?new h(c,0,i,this.session.getLine(i).length):new h(c,0,i+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(a,u,c){var i=a.column,l=a.column+u;return c<0&&(i=a.column-u,l=a.column),this.session.isTabStop(a)&&this.doc.getLine(a.row).slice(i,l).split(" ").length-1==u},s.prototype.moveCursorLeft=function(){var a=this.lead.getPosition(),u;if(u=this.session.getFoldAt(a.row,a.column,-1))this.moveCursorTo(u.start.row,u.start.column);else if(a.column===0)a.row>0&&this.moveCursorTo(a.row-1,this.doc.getLine(a.row-1).length);else{var c=this.session.getTabSize();this.wouldMoveIntoSoftTab(a,c,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-c):this.moveCursorBy(0,-1)}},s.prototype.moveCursorRight=function(){var a=this.lead.getPosition(),u;if(u=this.session.getFoldAt(a.row,a.column,1))this.moveCursorTo(u.end.row,u.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var c=this.session.getTabSize(),a=this.lead;this.wouldMoveIntoSoftTab(a,c,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,c):this.moveCursorBy(0,1)}},s.prototype.moveCursorLineStart=function(){var a=this.lead.row,u=this.lead.column,c=this.session.documentToScreenRow(a,u),i=this.session.screenToDocumentPosition(c,0),l=this.session.getDisplayLine(a,null,i.row,i.column),m=l.match(/^\s*/);m[0].length!=u&&!this.session.$useEmacsStyleLineStart&&(i.column+=m[0].length),this.moveCursorToPosition(i)},s.prototype.moveCursorLineEnd=function(){var a=this.lead,u=this.session.getDocumentLastRowColumnPosition(a.row,a.column);if(this.lead.column==u.column){var c=this.session.getLine(u.row);if(u.column==c.length){var i=c.search(/\s+$/);i>0&&(u.column=i)}}this.moveCursorTo(u.row,u.column)},s.prototype.moveCursorFileEnd=function(){var a=this.doc.getLength()-1,u=this.doc.getLine(a).length;this.moveCursorTo(a,u)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var a=this.lead.row,u=this.lead.column,c=this.doc.getLine(a),i=c.substring(u);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var l=this.session.getFoldAt(a,u,1);if(l){this.moveCursorTo(l.end.row,l.end.column);return}if(this.session.nonTokenRe.exec(i)&&(u+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=c.substring(u)),u>=c.length){this.moveCursorTo(a,c.length),this.moveCursorRight(),a<this.doc.getLength()-1&&this.moveCursorWordRight();return}this.session.tokenRe.exec(i)&&(u+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,u)},s.prototype.moveCursorLongWordLeft=function(){var a=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(a,u,-1)){this.moveCursorTo(c.start.row,c.start.column);return}var i=this.session.getFoldStringAt(a,u,-1);i==null&&(i=this.doc.getLine(a).substring(0,u));var l=g.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(l)&&(u-=this.session.nonTokenRe.lastIndex,l=l.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),u<=0){this.moveCursorTo(a,0),this.moveCursorLeft(),a>0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(l)&&(u-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(a,u)},s.prototype.$shortWordEndIndex=function(a){var u=0,c,i=/\s/,l=this.session.tokenRe;if(l.lastIndex=0,this.session.tokenRe.exec(a))u=this.session.tokenRe.lastIndex;else{for(;(c=a[u])&&i.test(c);)u++;if(u<1){for(l.lastIndex=0;(c=a[u])&&!l.test(c);)if(l.lastIndex=0,u++,i.test(c))if(u>2){u--;break}else{for(;(c=a[u])&&i.test(c);)u++;if(u>2)break}}}return l.lastIndex=0,u},s.prototype.moveCursorShortWordRight=function(){var a=this.lead.row,u=this.lead.column,c=this.doc.getLine(a),i=c.substring(u),l=this.session.getFoldAt(a,u,1);if(l)return this.moveCursorTo(l.end.row,l.end.column);if(u==c.length){var m=this.doc.getLength();do a++,i=this.doc.getLine(a);while(a<m&&/^\s*$/.test(i));/^\s+/.test(i)||(i=""),u=0}var w=this.$shortWordEndIndex(i);this.moveCursorTo(a,u+w)},s.prototype.moveCursorShortWordLeft=function(){var a=this.lead.row,u=this.lead.column,c;if(c=this.session.getFoldAt(a,u,-1))return this.moveCursorTo(c.start.row,c.start.column);var i=this.session.getLine(a).substring(0,u);if(u===0){do a--,i=this.doc.getLine(a);while(a>0&&/^\s*$/.test(i));u=i.length,/\s+$/.test(i)||(i="")}var l=g.stringReverse(i),m=this.$shortWordEndIndex(l);return this.moveCursorTo(a,u-m)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(a,u){var c=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i;if(u===0&&(a!==0&&(this.session.$bidiHandler.isBidiRow(c.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(c.column),c.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=c.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?c.column=this.$desiredColumn:this.$desiredColumn=c.column),a!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var l=this.session.lineWidgets[this.lead.row];a<0?a-=l.rowsAbove||0:a>0&&(a+=l.rowCount-(l.rowsAbove||0))}var m=this.session.screenToDocumentPosition(c.row+a,c.column,i);a!==0&&u===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+u,u===0)},s.prototype.moveCursorToPosition=function(a){this.moveCursorTo(a.row,a.column)},s.prototype.moveCursorTo=function(a,u,c){var i=this.session.getFoldAt(a,u,1);i&&(a=i.start.row,u=i.start.column),this.$keepDesiredColumnOnChange=!0;var l=this.session.getLine(a);/[\uDC00-\uDFFF]/.test(l.charAt(u))&&l.charAt(u-1)&&(this.lead.row==a&&this.lead.column==u+1?u=u-1:u=u+1),this.lead.setPosition(a,u),this.$keepDesiredColumnOnChange=!1,c||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(a,u,c){var i=this.session.screenToDocumentPosition(a,u);this.moveCursorTo(i.row,i.column,c)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(a){this.setSelectionRange(a,a.cursor==a.start),this.$desiredColumn=a.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(a){var u=this.getRange();return a?(a.start.column=u.start.column,a.start.row=u.start.row,a.end.column=u.end.column,a.end.row=u.end.row):a=u,a.cursor=this.isBackwards()?a.start:a.end,a.desiredColumn=this.$desiredColumn,a},s.prototype.getRangeOfMovements=function(a){var u=this.getCursor();try{a(this);var c=this.getCursor();return h.fromPoints(u,c)}catch{return h.fromPoints(u,u)}finally{this.moveCursorToPosition(u)}},s.prototype.toJSON=function(){if(this.rangeCount)var a=this.ranges.map(function(u){var c=u.clone();return c.isBackwards=u.cursor==u.start,c});else{var a=this.getRange();a.isBackwards=this.isBackwards()}return a},s.prototype.fromJSON=function(a){if(a.start==null)if(this.rangeList&&a.length>1){this.toSingleRange(a[0]);for(var u=a.length;u--;){var c=h.fromPoints(a[u].start,a[u].end);a[u].isBackwards&&(c.cursor=c.start),this.addRange(c,!0)}return}else a=a[0];this.rangeList&&this.toSingleRange(a),this.setSelectionRange(a,a.isBackwards)},s.prototype.isEqual=function(a){if((a.length||this.rangeCount)&&a.length!=this.rangeCount)return!1;if(!a.length||!this.ranges)return this.getRange().isEqual(a);for(var u=this.ranges.length;u--;)if(!this.ranges[u].isEqual(a[u]))return!1;return!0},s}();f.prototype.setSelectionAnchor=f.prototype.setAnchor,f.prototype.getSelectionAnchor=f.prototype.getAnchor,f.prototype.setSelectionRange=f.prototype.setRange,p.implement(f.prototype,b),r.Selection=f}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(t,r,d){var p=t("./lib/report_error").reportError,g=2e3,b=function(){function h(f){this.splitRegex,this.states=f,this.regExps={},this.matchMappings={};for(var s in this.states){for(var a=this.states[s],u=[],c=0,i=this.matchMappings[s]={defaultToken:"text"},l="g",m=[],w=0;w<a.length;w++){var x=a[w];if(x.defaultToken&&(i.defaultToken=x.defaultToken),x.caseInsensitive&&l.indexOf("i")===-1&&(l+="i"),x.unicode&&l.indexOf("u")===-1&&(l+="u"),x.regex!=null){x.regex instanceof RegExp&&(x.regex=x.regex.toString().slice(1,-1));var M=x.regex,_=new RegExp("(?:("+M+")|(.))").exec("a").length-2;Array.isArray(x.token)?x.token.length==1||_==1?x.token=x.token[0]:_-1!=x.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:x,groupCount:_-1}),x.token=x.token[0]):(x.tokenArray=x.token,x.token=null,x.onMatch=this.$arrayTokens):typeof x.token=="function"&&!x.onMatch&&(_>1?x.onMatch=this.$applyToken:x.onMatch=x.token),_>1&&(/\\\d/.test(x.regex)?M=x.regex.replace(/\\([0-9]+)/g,function(k,C){return"\\"+(parseInt(C,10)+c+1)}):(_=1,M=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&m.push(x)),i[c]=w,c+=_,u.push(M),x.onMatch||(x.onMatch=null)}}u.length||(i[0]=0,u.push("$")),m.forEach(function(k){k.splitRegex=this.createSplitterRegexp(k.regex,l)},this),this.regExps[s]=new RegExp("("+u.join(")|(")+")|($)",l)}}return h.prototype.$setMaxTokenCount=function(f){g=f|0},h.prototype.$applyToken=function(f){var s=this.splitRegex.exec(f).slice(1),a=this.token.apply(this,s);if(typeof a=="string")return[{type:a,value:f}];for(var u=[],c=0,i=a.length;c<i;c++)s[c]&&(u[u.length]={type:a[c],value:s[c]});return u},h.prototype.$arrayTokens=function(f){if(!f)return[];var s=this.splitRegex.exec(f);if(!s)return"text";for(var a=[],u=this.tokenArray,c=0,i=u.length;c<i;c++)s[c+1]&&(a[a.length]={type:u[c],value:s[c+1]});return a},h.prototype.removeCapturingGroups=function(f){var s=f.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(a,u){return u?"(?:":a});return s},h.prototype.createSplitterRegexp=function(f,s){if(f.indexOf("(?=")!=-1){var a=0,u=!1,c={};f.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(i,l,m,w,x,M){return u?u=x!="]":x?u=!0:w?(a==c.stack&&(c.end=M+1,c.stack=-1),a--):m&&(a++,m.length!=1&&(c.stack=a,c.start=M)),i}),c.end!=null&&/^\)*$/.test(f.substr(c.end))&&(f=f.substring(0,c.start)+f.substr(c.end))}return f.charAt(0)!="^"&&(f="^"+f),f.charAt(f.length-1)!="$"&&(f+="$"),new RegExp(f,(s||"").replace("g",""))},h.prototype.getLineTokens=function(f,s){if(s&&typeof s!="string"){var a=s.slice(0);s=a[0],s==="#tmp"&&(a.shift(),s=a.shift())}else var a=[];var u=s||"start",c=this.states[u];c||(u="start",c=this.states[u]);var i=this.matchMappings[u],l=this.regExps[u];l.lastIndex=0;for(var m,w=[],x=0,M=0,_={type:null,value:""};m=l.exec(f);){var k=i.defaultToken,C=null,L=m[0],D=l.lastIndex;if(D-L.length>x){var R=f.substring(x,D-L.length);_.type==k?_.value+=R:(_.type&&w.push(_),_={type:k,value:R})}for(var I=0;I<m.length-2;I++)if(m[I+1]!==void 0){C=c[i[I]],C.onMatch?k=C.onMatch(L,u,a,f):k=C.token,C.next&&(typeof C.next=="string"?u=C.next:u=C.next(u,a),c=this.states[u],c||(this.reportError("state doesn't exist",u),u="start",c=this.states[u]),i=this.matchMappings[u],x=D,l=this.regExps[u],l.lastIndex=D),C.consumeLineEnd&&(x=D);break}if(L){if(typeof k=="string")(!C||C.merge!==!1)&&_.type===k?_.value+=L:(_.type&&w.push(_),_={type:k,value:L});else if(k){_.type&&w.push(_),_={type:null,value:""};for(var I=0;I<k.length;I++)w.push(k[I])}}if(x==f.length)break;if(x=D,M++>g){for(M>2*f.length&&this.reportError("infinite loop with in ace tokenizer",{startState:s,line:f});x<f.length;)_.type&&w.push(_),_={value:f.substring(x,x+=500),type:"overflow"};u="start",a=[];break}}return _.type&&w.push(_),a.length>1&&a[0]!==u&&a.unshift("#tmp",u),{tokens:w,state:a.length?a:u}},h}();b.prototype.reportError=p,r.Tokenizer=b}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(t,r,d){var p=t("../lib/deep_copy").deepCopy,g;g=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(f,s){if(!s){for(var a in f)this.$rules[a]=f[a];return}for(var a in f){for(var u=f[a],c=0;c<u.length;c++){var i=u[c];(i.next||i.onMatch)&&(typeof i.next=="string"&&i.next.indexOf(s)!==0&&(i.next=s+i.next),i.nextState&&i.nextState.indexOf(s)!==0&&(i.nextState=s+i.nextState))}this.$rules[s+a]=u}},this.getRules=function(){return this.$rules},this.embedRules=function(f,s,a,u,c){var i=typeof f=="function"?new f().getRules():f;if(u)for(var l=0;l<u.length;l++)u[l]=s+u[l];else{u=[];for(var m in i)u.push(s+m)}if(this.addRules(i,s),a)for(var w=Array.prototype[c?"push":"unshift"],l=0;l<u.length;l++)w.apply(this.$rules[u[l]],p(a));this.$embeds||(this.$embeds=[]),this.$embeds.push(s)},this.getEmbeds=function(){return this.$embeds};var b=function(f,s){return(f!="start"||s.length)&&s.unshift(this.nextState,f),this.nextState},h=function(f,s){return s.shift(),s.shift()||"start"};this.normalizeRules=function(){var f=0,s=this.$rules;function a(u){var c=s[u];c.processed=!0;for(var i=0;i<c.length;i++){var l=c[i],m=null;Array.isArray(l)&&(m=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var w=l.next||l.push;if(w&&Array.isArray(w)){var x=l.stateName;x||(x=l.token,typeof x!="string"&&(x=x[0]||""),s[x]&&(x+=f++)),s[x]=w,l.next=x,a(x)}else w=="pop"&&(l.next=h);if(l.push&&(l.nextState=l.next||l.push,l.next=b,delete l.push),l.rules)for(var M in l.rules)s[M]?s[M].push&&s[M].push.apply(s[M],l.rules[M]):s[M]=l.rules[M];var _=typeof l=="string"?l:l.include;if(_&&(_==="$self"&&(_="start"),Array.isArray(_)?m=_.map(function(C){return s[C]}):m=s[_]),m){var k=[i,1].concat(m);l.noEscape&&(k=k.filter(function(C){return!C.next})),c.splice.apply(c,k),i--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}Object.keys(s).forEach(a,this)},this.createKeywordMapper=function(f,s,a,u){var c=Object.create(null);return this.$keywordList=[],Object.keys(f).forEach(function(i){for(var l=f[i],m=l.split(u||"|"),w=m.length;w--;){var x=m[w];this.$keywordList.push(x),a&&(x=x.toLowerCase()),c[x]=i}},this),f=null,a?function(i){return c[i.toLowerCase()]||s}:function(i){return c[i]||s}},this.getKeywords=function(){return this.$keywords}}).call(g.prototype),r.TextHighlightRules=g}),ace.define("ace/mode/behaviour",["require","exports","module"],function(t,r,d){var p;p=function(){this.$behaviours={}},(function(){this.add=function(g,b,h){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[g]:this.$behaviours[g]={}}this.$behaviours[g][b]=h},this.addBehaviours=function(g){for(var b in g)for(var h in g[b])this.add(b,h,g[b][h])},this.remove=function(g){this.$behaviours&&this.$behaviours[g]&&delete this.$behaviours[g]},this.inherit=function(g,b){if(typeof g=="function")var h=new g().getBehaviours(b);else var h=g.getBehaviours(b);this.addBehaviours(h)},this.getBehaviours=function(g){if(g){for(var b={},h=0;h<g.length;h++)this.$behaviours[g[h]]&&(b[g[h]]=this.$behaviours[g[h]]);return b}else return this.$behaviours}}).call(p.prototype),r.Behaviour=p}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(t,r,d){var p=t("./range").Range,g=function(){function b(h,f,s){this.$session=h,this.$row=f,this.$rowTokens=h.getTokens(f);var a=h.getTokenAt(f,s);this.$tokenIndex=a?a.index:-1}return b.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},b.prototype.stepForward=function(){this.$tokenIndex+=1;for(var h;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,h||(h=this.$session.getLength()),this.$row>=h)return this.$row=h-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},b.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},b.prototype.getCurrentTokenRow=function(){return this.$row},b.prototype.getCurrentTokenColumn=function(){var h=this.$rowTokens,f=this.$tokenIndex,s=h[f].start;if(s!==void 0)return s;for(s=0;f>0;)f-=1,s+=h[f].value.length;return s},b.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},b.prototype.getCurrentTokenRange=function(){var h=this.$rowTokens[this.$tokenIndex],f=this.getCurrentTokenColumn();return new p(this.$row,f,this.$row,f+h.value.length)},b}();r.TokenIterator=g}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(t,r,d){var p=t("../../lib/oop"),g=t("../behaviour").Behaviour,b=t("../../token_iterator").TokenIterator,h=t("../../lib/lang"),f=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],a,u={},c={'"':'"',"'":"'"},i=function(w){var x=-1;if(w.multiSelect&&(x=w.selection.index,u.rangeCount!=w.multiSelect.rangeCount&&(u={rangeCount:w.multiSelect.rangeCount})),u[x])return a=u[x];a=u[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},l=function(w,x,M,_){var k=w.end.row-w.start.row;return{text:M+x+_,selection:[0,w.start.column+1,k,w.end.column+(k?0:1)]}},m;m=function(w){w=w||{},this.add("braces","insertion",function(x,M,_,k,C){var L=_.getCursorPosition(),D=k.doc.getLine(L.row);if(C=="{"){i(_);var R=_.getSelectionRange(),I=k.doc.getTextRange(R),H=k.getTokenAt(L.row,L.column);if(I!==""&&I!=="{"&&_.getWrapBehavioursEnabled())return l(R,I,"{","}");if(H&&/(?:string)\.quasi|\.xml/.test(H.type)){var P=[/tag\-(?:open|name)/,/attribute\-name/];return P.some(function(K){return K.test(H.type)})||/(string)\.quasi/.test(H.type)&&H.value[L.column-H.start-1]!=="$"?void 0:(m.recordAutoInsert(_,k,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(_,k))return/[\]\}\)]/.test(D[L.column])||_.inMultiSelectMode||w.braces?(m.recordAutoInsert(_,k,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(_,k,"{"),{text:"{",selection:[1,1]})}else if(C=="}"){i(_);var O=D.substring(L.column,L.column+1);if(O=="}"){var $=k.$findOpeningBracket("}",{column:L.column+1,row:L.row});if($!==null&&m.isAutoInsertedClosing(L,D,C))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(C==`
|
|
180
180
|
`||C==`\r
|
|
181
181
|
`){i(_);var A="";m.isMaybeInsertedClosing(L,D)&&(A=h.stringRepeat("}",a.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var O=D.substring(L.column,L.column+1);if(O==="}"){var N=k.findMatchingBracket({row:L.row,column:L.column+1},"}");if(!N)return null;var B=this.$getIndent(k.getLine(N.row))}else if(A)var B=this.$getIndent(D);else{m.clearMaybeInsertedClosing();return}var U=B+k.getTabString();return{text:`
|
|
@@ -1134,7 +1134,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(pr,n
|
|
|
1134
1134
|
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|
1135
1135
|
position: absolute;
|
|
1136
1136
|
}`,"snippets.css",!1),r.snippetManager=new m;var k=t("./editor").Editor;(function(){this.insertSnippet=function(C,L){return r.snippetManager.insertSnippet(this,C,L)},this.expandSnippet=function(C){return r.snippetManager.expandWithTab(this,C)}}).call(k.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(t,r,d){var p=t("../virtual_renderer").VirtualRenderer,g=t("../editor").Editor,b=t("../range").Range,h=t("../lib/event"),f=t("../lib/lang"),s=t("../lib/dom"),a=t("../config").nls,u=t("./../lib/useragent"),c=function(M){return"suggest-aria-id:".concat(M)},i=u.isSafari?"menu":"listbox",l=u.isSafari?"menuitem":"option",m=u.isSafari?"aria-current":"aria-selected",w=function(M){var _=new p(M);_.$maxLines=4;var k=new g(_);return k.setHighlightActiveLine(!1),k.setShowPrintMargin(!1),k.renderer.setShowGutter(!1),k.renderer.setHighlightGutterLine(!1),k.$mouseHandler.$focusTimeout=0,k.$highlightTagPending=!0,k},x=function(){function M(_){var k=s.createElement("div"),C=w(k);_&&_.appendChild(k),k.style.display="none",C.renderer.content.style.cursor="default",C.renderer.setStyle("ace_autocomplete"),C.renderer.$textLayer.element.setAttribute("role",i),C.renderer.$textLayer.element.setAttribute("aria-roledescription",a("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),C.renderer.$textLayer.element.setAttribute("aria-label",a("autocomplete.popup.aria-label","Autocomplete suggestions")),C.renderer.textarea.setAttribute("aria-hidden","true"),C.setOption("displayIndentGuides",!1),C.setOption("dragDelay",150);var L=function(){};C.focus=L,C.$isFocused=!0,C.renderer.$cursorLayer.restartTimer=L,C.renderer.$cursorLayer.element.style.opacity="0",C.renderer.$maxLines=8,C.renderer.$keepTextAreaAtCursor=!1,C.setHighlightActiveLine(!1),C.session.highlight(""),C.session.$searchHighlight.clazz="ace_highlight-marker",C.on("mousedown",function($){var A=$.getDocumentPosition();C.selection.moveToPosition(A),I.start.row=I.end.row=A.row,$.stop()});var D,R=new b(-1,0,-1,1/0),I=new b(-1,0,-1,1/0);I.id=C.session.addMarker(I,"ace_active-line","fullLine"),C.setSelectOnHover=function($){$?R.id&&(C.session.removeMarker(R.id),R.id=null):R.id=C.session.addMarker(R,"ace_line-hover","fullLine")},C.setSelectOnHover(!1),C.on("mousemove",function($){if(!D){D=$;return}if(!(D.x==$.x&&D.y==$.y)){D=$,D.scrollTop=C.renderer.scrollTop,C.isMouseOver=!0;var A=D.getDocumentPosition().row;R.start.row!=A&&(R.id||C.setRow(A),P(A))}}),C.renderer.on("beforeRender",function(){if(D&&R.start.row!=-1){D.$pos=null;var $=D.getDocumentPosition().row;R.id||C.setRow($),P($,!0)}}),C.renderer.on("afterRender",function(){for(var $=C.renderer.$textLayer,A=$.config.firstRow,N=$.config.lastRow;A<=N;A++){var B=$.element.childNodes[A-$.config.firstRow];B.setAttribute("role",l),B.setAttribute("aria-roledescription",a("autocomplete.popup.item.aria-roledescription","item")),B.setAttribute("aria-setsize",C.data.length),B.setAttribute("aria-describedby","doc-tooltip"),B.setAttribute("aria-posinset",A+1);var U=C.getData(A);if(U){var K="".concat(U.caption||U.value).concat(U.meta?", ".concat(U.meta):"");B.setAttribute("aria-label",K)}var Q=B.querySelectorAll(".ace_completion-highlight");Q.forEach(function(J){J.setAttribute("role","mark")})}}),C.renderer.on("afterRender",function(){var $=C.getRow(),A=C.renderer.$textLayer,N=A.element.childNodes[$-A.config.firstRow],B=document.activeElement;if(N!==C.selectedNode&&C.selectedNode&&(s.removeCssClass(C.selectedNode,"ace_selected"),C.selectedNode.removeAttribute(m),C.selectedNode.removeAttribute("id")),B.removeAttribute("aria-activedescendant"),C.selectedNode=N,N){var U=c($);s.addCssClass(N,"ace_selected"),N.id=U,A.element.setAttribute("aria-activedescendant",U),B.setAttribute("aria-activedescendant",U),N.setAttribute(m,"true")}});var H=function(){P(-1)},P=function($,A){$!==R.start.row&&(R.start.row=R.end.row=$,A||C.session._emit("changeBackMarker"),C._emit("changeHoverMarker"))};C.getHoveredRow=function(){return R.start.row},h.addListener(C.container,"mouseout",function(){C.isMouseOver=!1,H()}),C.on("hide",H),C.on("changeSelection",H),C.session.doc.getLength=function(){return C.data.length},C.session.doc.getLine=function($){var A=C.data[$];return typeof A=="string"?A:A&&A.value||""};var O=C.session.bgTokenizer;return O.$tokenizeRow=function($){function A(de,me){de&&B.push({type:(N.className||"")+(me||""),value:de})}var N=C.data[$],B=[];if(!N)return B;typeof N=="string"&&(N={value:N});for(var U=N.caption||N.value||N.name,K=U.toLowerCase(),Q=(C.filterText||"").toLowerCase(),J=0,he=0,ne=0;ne<=Q.length;ne++)if(ne!=he&&(N.matchMask&1<<ne||ne==Q.length)){var le=Q.slice(he,ne);he=ne;var se=K.indexOf(le,J);if(se==-1)continue;A(U.slice(J,se),""),J=se+le.length,A(U.slice(se,J),"completion-highlight")}return A(U.slice(J,U.length),""),B.push({type:"completion-spacer",value:" "}),N.meta&&B.push({type:"completion-meta",value:N.meta}),N.message&&B.push({type:"completion-message",value:N.message}),B},O.$updateOnChange=L,O.start=L,C.session.$computeWidth=function(){return this.screenWidth=0},C.isOpen=!1,C.isTopdown=!1,C.autoSelect=!0,C.filterText="",C.isMouseOver=!1,C.data=[],C.setData=function($,A){C.filterText=A||"",C.setValue(f.stringRepeat(`
|
|
1137
|
-
`,$.length),-1),C.data=$||[],C.setRow(0)},C.getData=function($){return C.data[$]},C.getRow=function(){return I.start.row},C.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),I.start.row!=$&&(C.selection.clearSelection(),I.start.row=I.end.row=$||0,C.session._emit("changeBackMarker"),C.moveCursorTo($||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function($,A,N,B){if(!B&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===$.top&&C.anchorPos.left===$.left&&C.anchor===N)return!0;var U=this.container,K=this.renderer.scrollBar.width||10,Q=window.innerHeight-K,J=window.innerWidth-K,he=this.renderer,ne=he.$maxLines*A*1.4,le={top:0,bottom:0},se=Q-$.top-3*this.$borderSize-A,de=$.top-3*this.$borderSize;N||(de<=se||se>=ne?N="bottom":N="top"),N==="top"?(le.bottom=$.top-this.$borderSize,le.top=le.bottom-ne):N==="bottom"&&(le.top=$.top+A+this.$borderSize,le.bottom=le.top+ne);var me=le.top>=0&&le.bottom<=Q;if(!B&&!me)return!1;me?he.$maxPixelHeight=null:N==="top"?he.$maxPixelHeight=de:he.$maxPixelHeight=se,N==="top"?(U.style.top="",U.style.bottom=Q+K-le.bottom+"px",C.isTopdown=!1):(U.style.top=le.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var _e=$.left;return _e+U.offsetWidth>J&&(_e=J-U.offsetWidth),U.style.left=_e+"px",U.style.right="",C.isOpen||(C.isOpen=!0,this._signal("show"),D=null),C.anchorPos=$,C.anchor=N
|
|
1137
|
+
`,$.length),-1),C.data=$||[],C.setRow(0)},C.getData=function($){return C.data[$]},C.getRow=function(){return I.start.row},C.setRow=function($){$=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,$)),I.start.row!=$&&(C.selection.clearSelection(),I.start.row=I.end.row=$||0,C.session._emit("changeBackMarker"),C.moveCursorTo($||0,0),C.isOpen&&C._signal("select"))},C.on("changeSelection",function(){C.isOpen&&C.setRow(C.selection.lead.row),C.renderer.scrollCursorIntoView()}),C.hide=function(){this.container.style.display="none",C.anchorPos=null,C.anchor=null,C.isOpen&&(C.isOpen=!1,this._signal("hide"))},C.tryShow=function($,A,N,B){if(!B&&C.isOpen&&C.anchorPos&&C.anchor&&C.anchorPos.top===$.top&&C.anchorPos.left===$.left&&C.anchor===N)return!0;var U=this.container,K=this.renderer.scrollBar.width||10,Q=window.innerHeight-K,J=window.innerWidth-K,he=this.renderer,ne=he.$maxLines*A*1.4,le={top:0,bottom:0},se=Q-$.top-3*this.$borderSize-A,de=$.top-3*this.$borderSize;N||(de<=se||se>=ne?N="bottom":N="top"),N==="top"?(le.bottom=$.top-this.$borderSize,le.top=le.bottom-ne):N==="bottom"&&(le.top=$.top+A+this.$borderSize,le.bottom=le.top+ne);var me=le.top>=0&&le.bottom<=Q;if(!B&&!me)return!1;me?he.$maxPixelHeight=null:N==="top"?he.$maxPixelHeight=de:he.$maxPixelHeight=se,N==="top"?(U.style.top="",U.style.bottom=Q+K-le.bottom+"px",C.isTopdown=!1):(U.style.top=le.top+"px",U.style.bottom="",C.isTopdown=!0),U.style.display="";var _e=$.left;return _e+U.offsetWidth>J&&(_e=J-U.offsetWidth),U.style.left=_e+"px",U.style.right="",s.$fixPositionBug(U),C.isOpen||(C.isOpen=!0,this._signal("show"),D=null),C.anchorPos=$,C.anchor=N,!0},C.show=function($,A,N){this.tryShow($,A,N?"bottom":void 0,!0)},C.goTo=function($){var A=this.getRow(),N=this.session.getLength()-1;switch($){case"up":A=A<=0?N:A-1;break;case"down":A=A>=N?-1:A+1;break;case"start":A=0;break;case"end":A=N}this.setRow(A)},C.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},C.$imageSize=0,C.$borderSize=1,C}return M}();s.importCssString(`
|
|
1138
1138
|
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|
1139
1139
|
background-color: #CAD6FA;
|
|
1140
1140
|
z-index: 1;
|
|
@@ -1226,7 +1226,7 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(pr,n
|
|
|
1226
1226
|
animation: none;
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=w,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(t,r,d){var p=function(){function g(b){this.editor=b,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return g.prototype.setScreenReaderContent=function(b){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var f=this.popup.getRow(),s=this.popup.renderer.$textLayer,a=s.element.childNodes[f-s.config.firstRow];if(a){for(var u="doc-tooltip ",c=0;c<this._lines.length;c++)u+="ace-inline-screenreader-line-".concat(c," ");a.setAttribute("aria-describedby",u)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=b.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},g.prototype.destroy=function(){this.screenReaderDiv.remove()},g.prototype.createCodeBlock=function(){var b=document.createElement("pre");b.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var f=document.createElement("code");f.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);f.appendChild(s),b.appendChild(f)}return b},g}();r.AceInlineScreenReader=p}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(t,r,d){var p=t("../snippets").snippetManager,g=t("./inline_screenreader").AceInlineScreenReader,b=function(){function h(){this.editor=null}return h.prototype.show=function(f,s,a){if(a=a||"",f&&this.editor&&this.editor!==f&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!f||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new g(f));var u=s.snippet?p.getDisplayTextForSnippet(f,s.snippet):s.value;return s.hideInlinePreview||!u||!u.startsWith(a)?!1:(this.editor=f,this.inlineScreenReader.setScreenReaderContent(u),u=u.slice(a.length),u===""?f.removeGhostText():f.setGhostText(u),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();r.AceInline=b}),ace.define("ace/autocomplete/util",["require","exports","module"],function(t,r,d){r.parForEach=function(g,b,h){var f=0,s=g.length;s===0&&h();for(var a=0;a<s;a++)b(g[a],function(u,c){f++,f===s&&h(u,c)})};var p=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(g,b,h){h=h||p;for(var f=[],s=b-1;s>=0&&h.test(g[s]);s--)f.push(g[s]);return f.reverse().join("")},r.retrieveFollowingIdentifier=function(g,b,h){h=h||p;for(var f=[],s=b;s<g.length&&h.test(g[s]);s++)f.push(g[s]);return f},r.getCompletionPrefix=function(g){var b=g.getCursorPosition(),h=g.session.getLine(b.row),f;return g.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(a){!f&&a&&(f=this.retrievePrecedingIdentifier(h,b.column,a))}).bind(this))}).bind(this)),f||this.retrievePrecedingIdentifier(h,b.column)},r.triggerAutocomplete=function(g,h){var h=h??g.session.getPrecedingCharacter();return g.completers.some(function(f){if(f.triggerCharacters&&Array.isArray(f.triggerCharacters))return f.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(t,r,d){var p=t("./keyboard/hash_handler").HashHandler,g=t("./autocomplete/popup").AcePopup,b=t("./autocomplete/inline").AceInline,h=t("./autocomplete/popup").getAriaId,f=t("./autocomplete/util"),s=t("./lib/lang"),a=t("./lib/dom"),u=t("./snippets").snippetManager,c=t("./config"),i=t("./lib/event"),l=t("./lib/scroll").preventParentScroll,m=function(_,k){k.completer&&k.completer.destroy()},w=function(){function _(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new p,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new M(_.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(_,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),_.prototype.$init=function(){return this.popup=new g(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),i.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},_.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new b,this.inlineRenderer},_.prototype.getPopup=function(){return this.popup||this.$init()},_.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},_.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},_.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var C=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},_.prototype.$updateGhostText=function(k){var C=this.base.row,L=this.base.column,D=this.editor.getCursorPosition().column,R=this.editor.session.getLine(C).slice(L,D);this.inlineRenderer.show(this.editor,k,R)?this.$seen(k):this.inlineRenderer.hide()},_.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var L=this.popup.getData(C);L&&(!k||L.hideInlinePreview)&&this.$seen(L)}},_.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},_.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,C=[];k;)C.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=C}},_.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(C){C.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},_.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},_.prototype.$updatePopupPosition=function(){var k=this.editor,C=k.renderer,L=C.layerConfig.lineHeight,D=C.$cursorLayer.getPixelPosition(this.base,!0);D.left-=this.popup.getTextLeftOffset();var R=k.container.getBoundingClientRect();D.top+=R.top-C.layerConfig.offset,D.left+=R.left-k.renderer.scrollLeft,D.left+=C.gutterWidth;var I={top:D.top,left:D.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(I.top+=C.$ghostTextWidget.el.offsetHeight);var H=k.container.getBoundingClientRect().bottom-L,P=H<I.top?{top:H,left:I.left}:I;this.popup.tryShow(P,L,"bottom")||this.popup.tryShow(D,L,"top")||this.popup.show(D,L)},_.prototype.openPopup=function(k,C,L){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var D=this.popup.getRow(),R=this.popup.data[D];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var I;this.stickySelection&&(I=this.popup.data.indexOf(R)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===D&&R!==this.completions.filtered[I]&&this.$onPopupChange();var H=this.inlineRenderer&&this.inlineEnabled;if(I===D&&H){var P=this.popup.getData(this.popup.getRow());this.$updateGhostText(P)}L||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},_.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},_.prototype.changeListener=function(k){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},_.prototype.blurListener=function(k){var C=document.activeElement,L=this.editor.textInput.getElement(),D=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),R=this.popup&&this.popup.container;C!=L&&C.parentNode!=R&&!D&&C!=this.tooltipNode&&k.relatedTarget!=L&&this.detach()},_.prototype.mousedownListener=function(k){this.detach()},_.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},_.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},_.prototype.goTo=function(k){this.popup.goTo(k)},_.prototype.insertMatch=function(k,C){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var L=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,k,L.filterText,C);return this.completions==L&&this.detach(),D},_.prototype.showPopup=function(k,C){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,C)},_.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},_.prototype.gatherCompletions=function(k,C){return this.getCompletionProvider().gatherCompletions(k,C)},_.prototype.updateCompletions=function(k,C){if(k&&this.base&&this.completions){var D=this.editor.getCursorPosition(),R=this.editor.session.getTextRange({start:this.base,end:D});if(R==this.completions.filterText)return;if(this.completions.setFilter(R),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==R&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,R,k);return}if(C&&C.matches){var D=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(D.row,D.column),this.base.$insertRight=!0,this.completions=new M(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var L=this.editor.getSession(),D=this.editor.getCursorPosition(),R=f.getCompletionPrefix(this.editor);this.base=L.doc.createAnchor(D.row,D.column-R.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:R,pos:D}).provideCompletions(this.editor,I,(function(H,P,O){var $=P.filtered,A=f.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),O){if(!$.length){var N=!this.autoShown&&this.emptyMessage;if(typeof N=="function"&&(N=this.emptyMessage(A)),N){var B=[{caption:N,value:""}];this.completions=new M(B),this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==A&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!O&&this.showLoadingState?new M(_.completionsForLoading.concat($),P.filterText):P,this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!O)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},_.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},_.prototype.updateDocTooltip=function(){var k=this.popup,C=this.completions&&this.completions.filtered,L=C&&(C[k.getHoveredRow()]||C[k.getRow()]),D=null;if(!L||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var R=this.editor.completers.length,I=0;I<R;I++){var H=this.editor.completers[I];if(H.getDocTooltip&&L.completerId===H.id){D=H.getDocTooltip(L);break}}if(!D&&typeof L!="string"&&(D=L),typeof D=="string"&&(D={docText:D}),!D||!D.docHTML&&!D.docText)return this.hideDocTooltip();this.showDocTooltip(D)},_.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=a.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",l));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var L=this.tooltipNode;k.docHTML?L.innerHTML=k.docHTML:k.docText&&(L.textContent=k.docText),L.parentNode||this.popup.container.appendChild(this.tooltipNode);var D=this.popup,R=D.container.getBoundingClientRect(),I=400,H=300,P=D.renderer.scrollBar.width||10,O=R.left,$=window.innerWidth-R.right-P,A=D.isTopdown?R.top:window.innerHeight-P-R.bottom,N=[Math.min($/I,1),Math.min(O/I,1),Math.min(A/H*.9)],B=Math.max.apply(Math,N),U=L.style;U.display="block",B==N[0]?(U.left=R.right+1+"px",U.right="",U.maxWidth=I*B+"px",U.top=R.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-R.top,H)+"px"):B==N[1]?(U.right=window.innerWidth-R.left+"px",U.left="",U.maxWidth=I*B+"px",U.top=R.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-R.top,H)+"px"):B==N[2]&&(U.left=window.innerWidth-R.left+"px",U.maxWidth=Math.min(I,window.innerWidth)+"px",D.isTopdown?(U.top=R.bottom+"px",U.left=R.left+"px",U.right="",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-R.bottom,H)+"px"):(U.top=D.container.offsetTop-L.offsetHeight+"px",U.left=R.left+"px",U.right="",U.bottom="",U.maxHeight=Math.min(D.container.offsetTop,H)+"px"))},_.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},_.prototype.onTooltipClick=function(k){for(var C=k.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},_.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",m),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},_.for=function(k){return k.completer instanceof _||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(_.$sharedInstance||(_.$sharedInstance=new _),k.completer=_.$sharedInstance):(k.completer=new _,k.once("destroy",m))),k.completer},_}();w.prototype.commands={Up:function(_){_.completer.goTo("up")},Down:function(_){_.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(_){_.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(_){_.completer.goTo("end")},Esc:function(_){_.completer.detach()},Return:function(_){return _.completer.insertMatch()},"Shift-Return":function(_){_.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(_){var k=_.completer.insertMatch();if(k||_.tabstopManager)return k;_.completer.goTo("down")},Backspace:function(_){_.execCommand("backspace");var k=f.getCompletionPrefix(_);!k&&_.completer&&_.completer.detach()},PageUp:function(_){_.completer.popup.gotoPageUp()},PageDown:function(_){_.completer.popup.gotoPageDown()}},w.startCommand={name:"startAutocomplete",exec:function(_,k){var C=w.for(_);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(_,k),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function _(k){this.initialPosition=k,this.active=!0}return _.prototype.insertByIndex=function(k,C,L){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[C],L)},_.prototype.insertMatch=function(k,C,L){if(!C)return!1;if(k.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(k,C);else{if(!this.completions)return!1;var D=this.completions.filterText.length,R=0;if(C.range&&C.range.start.row===C.range.end.row&&(D-=this.initialPosition.prefix.length,D+=this.initialPosition.pos.column-C.range.start.column,R+=C.range.end.column-this.initialPosition.pos.column),D||R){var I;k.selection.getAllRanges?I=k.selection.getAllRanges():I=[k.getSelectionRange()];for(var H=0,P;P=I[H];H++)P.start.column-=D,P.end.column+=R,k.session.remove(P)}C.snippet?u.insertSnippet(k,C.snippet):this.$insertString(k,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(k,C),C.command&&C.command==="startAutocomplete"&&k.execCommand(C.command)}return k.endOperation(),!0},_.prototype.$insertString=function(k,C){var L=C.value||C;k.execCommand("insertstring",L)},_.prototype.gatherCompletions=function(k,C){var L=k.getSession(),D=k.getCursorPosition(),R=f.getCompletionPrefix(k),I=[];this.completers=k.completers;var H=k.completers.length;return k.completers.forEach(function(P,O){P.getCompletions(k,L,D,R,function($,A){P.hideInlinePreview&&(A=A.map(function(N){return Object.assign(N,{hideInlinePreview:P.hideInlinePreview})})),!$&&A&&(I=I.concat(A)),C(null,{prefix:f.getCompletionPrefix(k),matches:I,finished:--H===0})})}),!0},_.prototype.provideCompletions=function(k,C,L){var D=(function(P){var O=P.prefix,$=P.matches;this.completions=new M($),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(O),(P.finished||this.completions.filtered.length)&&L(null,this.completions,P.finished)}).bind(this),R=!0,I=null;if(this.gatherCompletions(k,(function(P,O){if(this.active){P&&(L(P,[],!0),this.detach());var $=O.prefix;if($.indexOf(O.prefix)===0){if(R){I=O;return}D(O)}}}).bind(this)),R=!1,I){var H=I;I=null,D(H)}},_.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},_}(),M=function(){function _(k,C){this.all=k,this.filtered=k,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return _.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=k,C=this.filterCompletions(C,this.filterText),C=C.sort(function(D,R){return R.exactMatch-D.exactMatch||R.$score-D.$score||(D.caption||D.value).localeCompare(R.caption||R.value)});var L=null;C=C.filter(function(D){var R=D.snippet||D.caption||D.value;return R===L?!1:(L=R,!0)}),this.filtered=C},_.prototype.filterCompletions=function(k,C){var L=[],D=C.toUpperCase(),R=C.toLowerCase();e:for(var I=0,H;H=k[I];I++){if(H.skipFilter){H.$score=H.score,L.push(H);continue}var P=!this.ignoreCaption&&H.caption||H.value||H.snippet;if(P){var O=-1,$=0,A=0,N,B;if(this.exactMatch){if(C!==P.substr(0,C.length))continue e}else{var U=P.toLowerCase().indexOf(R);if(U>-1)A=U;else for(var K=0;K<C.length;K++){var Q=P.indexOf(R[K],O+1),J=P.indexOf(D[K],O+1);if(N=Q>=0&&(J<0||Q<J)?Q:J,N<0)continue e;B=N-O-1,B>0&&(O===-1&&(A+=10),A+=B,$|=1<<K),O=N}}H.matchMask=$,H.exactMatch=A?0:1,H.$score=(H.score||0)-A,L.push(H)}}return L},_}();r.Autocomplete=w,r.CompletionProvider=x,r.FilteredList=M}),ace.define("ace/marker_group",["require","exports","module"],function(t,r,d){var p=function(){function g(b,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=b,b.addDynamicMarker(this)}return g.prototype.getMarkerAtPosition=function(b){return this.markers.find(function(h){return h.range.contains(b.row,b.column)})},g.prototype.markersComparator=function(b,h){return b.range.start.row-h.range.start.row},g.prototype.setMarkers=function(b){this.markers=b.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},g.prototype.update=function(b,h,f,s){if(!(!this.markers||!this.markers.length))for(var a=s.firstRow,u=s.lastRow,c,i=0,l=0,m=0;m<this.markers.length;m++){var w=this.markers[m];if(!(w.range.end.row<a)&&!(w.range.start.row>u)&&(w.range.start.row===l?i++:(l=w.range.start.row,i=0),!(i>200))){var x=w.range.clipRows(a,u);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var M=x.toScreenRange(f);if(M.isEmpty()){c=f.getNextFoldLine(x.end.row,c),c&&c.end.row>x.end.row&&(a=c.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(b,M,w.className,s):M.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(b,M,w.className,s):h.drawTextMarker(b,M,w.className,s):h.drawSingleLineMarker(b,M,w.className+" ace_br15",s)}}}},g}();p.prototype.MAX_MARKERS=1e4,r.MarkerGroup=p}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(t,r,d){function p(f,s){var a=f.getTextRange(b.fromPoints({row:0,column:0},s));return a.split(h).length-1}function g(f,s){var a=p(f,s),u=f.getValue().split(h),c=Object.create(null),i=u[a];return u.forEach(function(l,m){if(!(!l||l===i)){var w=Math.abs(a-m),x=u.length-w;c[l]?c[l]=Math.max(x,c[l]):c[l]=x}}),c}var b=t("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(f,s,a,u,c){var i=g(s,a),l=Object.keys(i);c(null,l.map(function(m){return{caption:m,value:m,score:i[m],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(t,r,d){var p=t("../snippets").snippetManager,g=t("../autocomplete").Autocomplete,b=t("../config"),h=t("../lib/lang"),f=t("../autocomplete/util"),s=t("../marker_group").MarkerGroup,a=t("../autocomplete/text_completer"),u={getCompletions:function(R,I,H,P,O){if(I.$mode.completer)return I.$mode.completer.getCompletions(R,I,H,P,O);var $=R.session.getState(H.row),A=I.$mode.getCompletions($,I,H,P);A=A.map(function(N){return N.completerId=u.id,N}),O(null,A)},id:"keywordCompleter"},c=function(R){var I={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(H,P,O,$){return I[P]=$||""}).replace(/\$(\d+?)/g,function(H,P){return I[P]})},i={getCompletions:function(R,I,H,P,O){var $=[],A=I.getTokenAt(H.row,H.column);A&&A.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?$.push("html-tag"):$=p.getActiveScopes(R);var N=p.snippetMap,B=[];$.forEach(function(U){for(var K=N[U]||[],Q=K.length;Q--;){var J=K[Q],he=J.name||J.tabTrigger;he&&B.push({caption:he,snippet:J.content,meta:J.tabTrigger&&!J.name?J.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),O(null,B)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",h.escapeHTML(R.caption),"</b>","<hr></hr>",h.escapeHTML(c(R.snippet))].join(""))},id:"snippetCompleter"},l=[i,a,u];r.setCompleters=function(R){l.length=0,R&&l.push.apply(l,R)},r.addCompleter=function(R){l.push(R)},r.textCompleter=a,r.keyWordCompleter=u,r.snippetCompleter=i;var m={name:"expandSnippet",exec:function(R){return p.expandWithTab(R)},bindKey:"Tab"},w=function(R,I){x(I.session.$mode)},x=function(R){typeof R=="string"&&(R=b.$modes[R]),R&&(p.files||(p.files={}),M(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(x))},M=function(R,I){!I||!R||p.files[R]||(p.files[R]={},b.loadModule(I,function(H){H&&(p.files[R]=H,!H.snippets&&H.snippetText&&(H.snippets=p.parseSnippetFile(H.snippetText)),p.register(H.snippets||[],H.scope),H.includeScopes&&(p.snippetMap[H.scope].includeScopes=H.includeScopes,H.includeScopes.forEach(function(P){x("ace/mode/"+P)})))}))},_=function(R){var I=R.editor,H=I.completer&&I.completer.activated;if(R.command.name==="backspace")H&&!f.getCompletionPrefix(I)&&I.completer.detach();else if(R.command.name==="insertstring"&&!H){k=R;var P=R.editor.$liveAutocompletionDelay;P?C.delay(P):L(R)}},k,C=h.delayedCall(function(){L(k)},0),L=function(R){var I=R.editor,H=f.getCompletionPrefix(I),P=R.args,O=f.triggerAutocomplete(I,P);if(H&&H.length>=I.$liveAutocompletionThreshold||O){var $=g.for(I);$.autoShown=!0,$.showPopup(I)}},D=t("../editor").Editor;t("../config").defineOptions(D.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(g.for(this),this.completers||(this.completers=Array.isArray(R)?R:l),this.commands.addCommand(g.startCommand)):this.commands.removeCommand(g.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:l),this.commands.on("afterExec",_)):this.commands.off("afterExec",_)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(m),this.on("changeMode",w),w(null,this)):(this.commands.removeCommand(m),this.off("changeMode",w))},value:!1}}),r.MarkerGroup=s}),function(){ace.require(["ace/ext/language_tools"],function(t){n&&(n.exports=t)})}()}(Hf)),Hf.exports}M1();var jf={exports:{}},Uf;function E1(){return Uf||(Uf=1,function(n,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(t,r,d){d.exports=`
|
|
1229
|
+
`,"autocompletion.css",!1),r.AcePopup=x,r.$singleLineEditor=w,r.getAriaId=c}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(t,r,d){var p=function(){function g(b){this.editor=b,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return g.prototype.setScreenReaderContent=function(b){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var f=this.popup.getRow(),s=this.popup.renderer.$textLayer,a=s.element.childNodes[f-s.config.firstRow];if(a){for(var u="doc-tooltip ",c=0;c<this._lines.length;c++)u+="ace-inline-screenreader-line-".concat(c," ");a.setAttribute("aria-describedby",u)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=b.split(/\r\n|\r|\n/);var h=this.createCodeBlock();this.screenReaderDiv.appendChild(h)},g.prototype.destroy=function(){this.screenReaderDiv.remove()},g.prototype.createCodeBlock=function(){var b=document.createElement("pre");b.setAttribute("id","ace-inline-screenreader");for(var h=0;h<this._lines.length;h++){var f=document.createElement("code");f.setAttribute("id","ace-inline-screenreader-line-".concat(h));var s=document.createTextNode(this._lines[h]);f.appendChild(s),b.appendChild(f)}return b},g}();r.AceInlineScreenReader=p}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(t,r,d){var p=t("../snippets").snippetManager,g=t("./inline_screenreader").AceInlineScreenReader,b=function(){function h(){this.editor=null}return h.prototype.show=function(f,s,a){if(a=a||"",f&&this.editor&&this.editor!==f&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!f||!s)return!1;this.inlineScreenReader||(this.inlineScreenReader=new g(f));var u=s.snippet?p.getDisplayTextForSnippet(f,s.snippet):s.value;return s.hideInlinePreview||!u||!u.startsWith(a)?!1:(this.editor=f,this.inlineScreenReader.setScreenReaderContent(u),u=u.slice(a.length),u===""?f.removeGhostText():f.setGhostText(u),!0)},h.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},h.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},h.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},h}();r.AceInline=b}),ace.define("ace/autocomplete/util",["require","exports","module"],function(t,r,d){r.parForEach=function(g,b,h){var f=0,s=g.length;s===0&&h();for(var a=0;a<s;a++)b(g[a],function(u,c){f++,f===s&&h(u,c)})};var p=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(g,b,h){h=h||p;for(var f=[],s=b-1;s>=0&&h.test(g[s]);s--)f.push(g[s]);return f.reverse().join("")},r.retrieveFollowingIdentifier=function(g,b,h){h=h||p;for(var f=[],s=b;s<g.length&&h.test(g[s]);s++)f.push(g[s]);return f},r.getCompletionPrefix=function(g){var b=g.getCursorPosition(),h=g.session.getLine(b.row),f;return g.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(a){!f&&a&&(f=this.retrievePrecedingIdentifier(h,b.column,a))}).bind(this))}).bind(this)),f||this.retrievePrecedingIdentifier(h,b.column)},r.triggerAutocomplete=function(g,h){var h=h??g.session.getPrecedingCharacter();return g.completers.some(function(f){if(f.triggerCharacters&&Array.isArray(f.triggerCharacters))return f.triggerCharacters.includes(h)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(t,r,d){var p=t("./keyboard/hash_handler").HashHandler,g=t("./autocomplete/popup").AcePopup,b=t("./autocomplete/inline").AceInline,h=t("./autocomplete/popup").getAriaId,f=t("./autocomplete/util"),s=t("./lib/lang"),a=t("./lib/dom"),u=t("./snippets").snippetManager,c=t("./config"),i=t("./lib/event"),l=t("./lib/scroll").preventParentScroll,m=function(_,k){k.completer&&k.completer.destroy()},w=function(){function _(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new p,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.hasSeen=new Set,this.showLoadingState=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=s.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50),this.popupTimer=s.delayedCall(this.$updatePopupPosition.bind(this),50),this.stickySelectionTimer=s.delayedCall((function(){this.stickySelection=!0}).bind(this),this.stickySelectionDelay),this.$firstOpenTimer=s.delayedCall((function(){var k=this.completionProvider&&this.completionProvider.initialPosition;this.autoShown||this.popup&&this.popup.isOpen||!k||this.editor.completers.length===0||(this.completions=new M(_.completionsForLoading),this.openPopup(this.editor,k.prefix,!1),this.popup.renderer.setStyle("ace_loading",!0))}).bind(this),this.stickySelectionDelay)}return Object.defineProperty(_,"completionsForLoading",{get:function(){return[{caption:c.nls("autocomplete.loading","Loading..."),value:""}]},enumerable:!1,configurable:!0}),_.prototype.$init=function(){return this.popup=new g(this.parentNode||document.body||document.documentElement),this.popup.on("click",(function(k){this.insertMatch(),k.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),i.addListener(this.popup.container,"mouseout",this.mouseOutListener.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup.renderer.on("afterRender",this.$onPopupRender.bind(this)),this.popup},_.prototype.$initInline=function(){if(!(!this.inlineEnabled||this.inlineRenderer))return this.inlineRenderer=new b,this.inlineRenderer},_.prototype.getPopup=function(){return this.popup||this.$init()},_.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.popupTimer.cancel(),this.stickySelection=!1},_.prototype.$seen=function(k){!this.hasSeen.has(k)&&k&&k.completer&&k.completer.onSeen&&typeof k.completer.onSeen=="function"&&(k.completer.onSeen(this.editor,k),this.hasSeen.add(k))},_.prototype.$onPopupChange=function(k){if(this.inlineRenderer&&this.inlineEnabled){var C=k?null:this.popup.getData(this.popup.getRow());if(this.$updateGhostText(C),this.popup.isMouseOver&&this.setSelectOnHover){this.tooltipTimer.call(null,null);return}this.popupTimer.schedule(),this.tooltipTimer.schedule()}else this.popupTimer.call(null,null),this.tooltipTimer.call(null,null)},_.prototype.$updateGhostText=function(k){var C=this.base.row,L=this.base.column,D=this.editor.getCursorPosition().column,R=this.editor.session.getLine(C).slice(L,D);this.inlineRenderer.show(this.editor,k,R)?this.$seen(k):this.inlineRenderer.hide()},_.prototype.$onPopupRender=function(){var k=this.inlineRenderer&&this.inlineEnabled;if(this.completions&&this.completions.filtered&&this.completions.filtered.length>0)for(var C=this.popup.getFirstVisibleRow();C<=this.popup.getLastVisibleRow();C++){var L=this.popup.getData(C);L&&(!k||L.hideInlinePreview)&&this.$seen(L)}},_.prototype.$onPopupShow=function(k){this.$onPopupChange(k),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},_.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var k=this.editor.container.parentNode,C=[];k;)C.push(k),k.addEventListener("scroll",this.onLayoutChange,{passive:!0}),k=k.parentNode;this.$elements=C}},_.prototype.unObserveLayoutChanges=function(){var k=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(C){C.removeEventListener("scroll",k.onLayoutChange,{passive:!0})}),this.$elements=null},_.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},_.prototype.$updatePopupPosition=function(){var k=this.editor,C=k.renderer,L=C.layerConfig.lineHeight,D=C.$cursorLayer.getPixelPosition(this.base,!0);D.left-=this.popup.getTextLeftOffset();var R=k.container.getBoundingClientRect();D.top+=R.top-C.layerConfig.offset,D.left+=R.left-k.renderer.scrollLeft,D.left+=C.gutterWidth;var I={top:D.top,left:D.left};C.$ghostText&&C.$ghostTextWidget&&this.base.row===C.$ghostText.position.row&&(I.top+=C.$ghostTextWidget.el.offsetHeight);var H=k.container.getBoundingClientRect().bottom-L,P=H<I.top?{top:H,left:I.left}:I;this.popup.tryShow(P,L,"bottom")||this.popup.tryShow(D,L,"top")||this.popup.show(D,L)},_.prototype.openPopup=function(k,C,L){this.$firstOpenTimer.cancel(),this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var D=this.popup.getRow(),R=this.popup.data[D];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:h(this.popup.getRow()),inline:this.inlineEnabled}),k.keyBinding.addKeyboardHandler(this.keyboardHandler);var I;this.stickySelection&&(I=this.popup.data.indexOf(R)),(!I||I===-1)&&(I=0),this.popup.setRow(this.autoSelect?I:-1),I===D&&R!==this.completions.filtered[I]&&this.$onPopupChange();var H=this.inlineRenderer&&this.inlineEnabled;if(I===D&&H){var P=this.popup.getData(this.popup.getRow());this.$updateGhostText(P)}L||(this.popup.setTheme(k.getTheme()),this.popup.setFontSize(k.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},_.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.$firstOpenTimer.cancel(),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.popup&&this.popup.renderer&&this.popup.renderer.off("afterRender",this.$onPopupRender),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},_.prototype.changeListener=function(k){var C=this.editor.selection.lead;(C.row!=this.base.row||C.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},_.prototype.blurListener=function(k){var C=document.activeElement,L=this.editor.textInput.getElement(),D=k.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(k.relatedTarget),R=this.popup&&this.popup.container;C!=L&&C.parentNode!=R&&!D&&C!=this.tooltipNode&&k.relatedTarget!=L&&this.detach()},_.prototype.mousedownListener=function(k){this.detach()},_.prototype.mousewheelListener=function(k){this.popup&&!this.popup.isMouseOver&&this.detach()},_.prototype.mouseOutListener=function(k){this.popup.isOpen&&this.$updatePopupPosition()},_.prototype.goTo=function(k){this.popup.goTo(k)},_.prototype.insertMatch=function(k,C){if(k||(k=this.popup.getData(this.popup.getRow())),!k)return!1;if(k.value==="")return this.detach();var L=this.completions,D=this.getCompletionProvider().insertMatch(this.editor,k,L.filterText,C);return this.completions==L&&this.detach(),D},_.prototype.showPopup=function(k,C){this.editor&&this.detach(),this.activated=!0,this.editor=k,k.completer!=this&&(k.completer&&k.completer.detach(),k.completer=this),k.on("changeSelection",this.changeListener),k.on("blur",this.blurListener),k.on("mousedown",this.mousedownListener),k.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,C)},_.prototype.getCompletionProvider=function(k){return this.completionProvider||(this.completionProvider=new x(k)),this.completionProvider},_.prototype.gatherCompletions=function(k,C){return this.getCompletionProvider().gatherCompletions(k,C)},_.prototype.updateCompletions=function(k,C){if(k&&this.base&&this.completions){var D=this.editor.getCursorPosition(),R=this.editor.session.getTextRange({start:this.base,end:D});if(R==this.completions.filterText)return;if(this.completions.setFilter(R),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==R&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,R,k);return}if(C&&C.matches){var D=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(D.row,D.column),this.base.$insertRight=!0,this.completions=new M(C.matches),this.getCompletionProvider().completions=this.completions,this.openPopup(this.editor,"",k)}var L=this.editor.getSession(),D=this.editor.getCursorPosition(),R=f.getCompletionPrefix(this.editor);this.base=L.doc.createAnchor(D.row,D.column-R.length),this.base.$insertRight=!0;var I={exactMatch:this.exactMatch,ignoreCaption:this.ignoreCaption};this.getCompletionProvider({prefix:R,pos:D}).provideCompletions(this.editor,I,(function(H,P,O){var $=P.filtered,A=f.getCompletionPrefix(this.editor);if(this.$firstOpenTimer.cancel(),O){if(!$.length){var N=!this.autoShown&&this.emptyMessage;if(typeof N=="function"&&(N=this.emptyMessage(A)),N){var B=[{caption:N,value:""}];this.completions=new M(B),this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_loading",!1),this.popup.renderer.setStyle("ace_empty-message",!0);return}return this.detach()}if($.length==1&&$[0].value==A&&!$[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&$.length==1)return this.insertMatch($[0])}this.completions=!O&&this.showLoadingState?new M(_.completionsForLoading.concat($),P.filterText):P,this.openPopup(this.editor,A,k),this.popup.renderer.setStyle("ace_empty-message",!1),this.popup.renderer.setStyle("ace_loading",!O)}).bind(this)),this.showLoadingState&&!this.autoShown&&(!this.popup||!this.popup.isOpen)&&this.$firstOpenTimer.delay(this.stickySelectionDelay/2)},_.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},_.prototype.updateDocTooltip=function(){var k=this.popup,C=this.completions&&this.completions.filtered,L=C&&(C[k.getHoveredRow()]||C[k.getRow()]),D=null;if(!L||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var R=this.editor.completers.length,I=0;I<R;I++){var H=this.editor.completers[I];if(H.getDocTooltip&&L.completerId===H.id){D=H.getDocTooltip(L);break}}if(!D&&typeof L!="string"&&(D=L),typeof D=="string"&&(D={docText:D}),!D||!D.docHTML&&!D.docText)return this.hideDocTooltip();this.showDocTooltip(D)},_.prototype.showDocTooltip=function(k){this.tooltipNode||(this.tooltipNode=a.createElement("div"),this.tooltipNode.style.margin="0",this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.style.overscrollBehavior="contain",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"),this.tooltipNode.addEventListener("wheel",l));var C=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(C.isDark?"ace_dark ":"")+(C.cssClass||"");var L=this.tooltipNode;k.docHTML?L.innerHTML=k.docHTML:k.docText&&(L.textContent=k.docText),L.parentNode||this.popup.container.appendChild(this.tooltipNode);var D=this.popup,R=D.container.getBoundingClientRect(),I=400,H=300,P=D.renderer.scrollBar.width||10,O=R.left,$=window.innerWidth-R.right-P,A=D.isTopdown?window.innerHeight-P-R.bottom:R.top,N=[Math.min($/I,1),Math.min(O/I,1),Math.min(A/H,1)*.9],B=Math.max.apply(Math,N),U=L.style;U.display="block",B==N[0]||N[0]>=1?(U.left=R.right+1+"px",U.right="",U.maxWidth=I*B+"px",U.top=R.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-R.top,H)+"px"):B==N[1]||N[1]>=1?(U.right=window.innerWidth-R.left+"px",U.left="",U.maxWidth=I*B+"px",U.top=R.top+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-R.top,H)+"px"):B==N[2]&&(U.left=R.left+"px",U.right="",U.maxWidth=Math.min(I,window.innerWidth-R.left)+"px",D.isTopdown?(U.top=R.bottom+"px",U.bottom="",U.maxHeight=Math.min(window.innerHeight-P-R.bottom,H)+"px"):(U.top="",U.bottom=window.innerHeight-R.top+"px",U.maxHeight=Math.min(R.top,H)+"px")),a.$fixPositionBug(L)},_.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var k=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==k&&this.editor.focus(),this.tooltipNode=null,k.parentNode&&k.parentNode.removeChild(k)}},_.prototype.onTooltipClick=function(k){for(var C=k.target;C&&C!=this.tooltipNode;){if(C.nodeName=="A"&&C.href){C.rel="noreferrer",C.target="_blank";break}C=C.parentNode}},_.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var k=this.popup.container;k&&k.parentNode&&k.parentNode.removeChild(k)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",m),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},_.for=function(k){return k.completer instanceof _||(k.completer&&(k.completer.destroy(),k.completer=null),c.get("sharedPopups")?(_.$sharedInstance||(_.$sharedInstance=new _),k.completer=_.$sharedInstance):(k.completer=new _,k.once("destroy",m))),k.completer},_}();w.prototype.commands={Up:function(_){_.completer.goTo("up")},Down:function(_){_.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(_){_.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(_){_.completer.goTo("end")},Esc:function(_){_.completer.detach()},Return:function(_){return _.completer.insertMatch()},"Shift-Return":function(_){_.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(_){var k=_.completer.insertMatch();if(k||_.tabstopManager)return k;_.completer.goTo("down")},Backspace:function(_){_.execCommand("backspace");var k=f.getCompletionPrefix(_);!k&&_.completer&&_.completer.detach()},PageUp:function(_){_.completer.popup.gotoPageUp()},PageDown:function(_){_.completer.popup.gotoPageDown()}},w.startCommand={name:"startAutocomplete",exec:function(_,k){var C=w.for(_);C.autoInsert=!1,C.autoSelect=!0,C.autoShown=!1,C.showPopup(_,k),C.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var x=function(){function _(k){this.initialPosition=k,this.active=!0}return _.prototype.insertByIndex=function(k,C,L){return!this.completions||!this.completions.filtered?!1:this.insertMatch(k,this.completions.filtered[C],L)},_.prototype.insertMatch=function(k,C,L){if(!C)return!1;if(k.startOperation({command:{name:"insertMatch"}}),C.completer&&C.completer.insertMatch)C.completer.insertMatch(k,C);else{if(!this.completions)return!1;var D=this.completions.filterText.length,R=0;if(C.range&&C.range.start.row===C.range.end.row&&(D-=this.initialPosition.prefix.length,D+=this.initialPosition.pos.column-C.range.start.column,R+=C.range.end.column-this.initialPosition.pos.column),D||R){var I;k.selection.getAllRanges?I=k.selection.getAllRanges():I=[k.getSelectionRange()];for(var H=0,P;P=I[H];H++)P.start.column-=D,P.end.column+=R,k.session.remove(P)}C.snippet?u.insertSnippet(k,C.snippet):this.$insertString(k,C),C.completer&&C.completer.onInsert&&typeof C.completer.onInsert=="function"&&C.completer.onInsert(k,C),C.command&&C.command==="startAutocomplete"&&k.execCommand(C.command)}return k.endOperation(),!0},_.prototype.$insertString=function(k,C){var L=C.value||C;k.execCommand("insertstring",L)},_.prototype.gatherCompletions=function(k,C){var L=k.getSession(),D=k.getCursorPosition(),R=f.getCompletionPrefix(k),I=[];this.completers=k.completers;var H=k.completers.length;return k.completers.forEach(function(P,O){P.getCompletions(k,L,D,R,function($,A){P.hideInlinePreview&&(A=A.map(function(N){return Object.assign(N,{hideInlinePreview:P.hideInlinePreview})})),!$&&A&&(I=I.concat(A)),C(null,{prefix:f.getCompletionPrefix(k),matches:I,finished:--H===0})})}),!0},_.prototype.provideCompletions=function(k,C,L){var D=(function(P){var O=P.prefix,$=P.matches;this.completions=new M($),C.exactMatch&&(this.completions.exactMatch=!0),C.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(O),(P.finished||this.completions.filtered.length)&&L(null,this.completions,P.finished)}).bind(this),R=!0,I=null;if(this.gatherCompletions(k,(function(P,O){if(this.active){P&&(L(P,[],!0),this.detach());var $=O.prefix;if($.indexOf(O.prefix)===0){if(R){I=O;return}D(O)}}}).bind(this)),R=!1,I){var H=I;I=null,D(H)}},_.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach(function(k){typeof k.cancel=="function"&&k.cancel()})},_}(),M=function(){function _(k,C){this.all=k,this.filtered=k,this.filterText=C||"",this.exactMatch=!1,this.ignoreCaption=!1}return _.prototype.setFilter=function(k){if(k.length>this.filterText&&k.lastIndexOf(this.filterText,0)===0)var C=this.filtered;else var C=this.all;this.filterText=k,C=this.filterCompletions(C,this.filterText),C=C.sort(function(D,R){return R.exactMatch-D.exactMatch||R.$score-D.$score||(D.caption||D.value).localeCompare(R.caption||R.value)});var L=null;C=C.filter(function(D){var R=D.snippet||D.caption||D.value;return R===L?!1:(L=R,!0)}),this.filtered=C},_.prototype.filterCompletions=function(k,C){var L=[],D=C.toUpperCase(),R=C.toLowerCase();e:for(var I=0,H;H=k[I];I++){if(H.skipFilter){H.$score=H.score,L.push(H);continue}var P=!this.ignoreCaption&&H.caption||H.value||H.snippet;if(P){var O=-1,$=0,A=0,N,B;if(this.exactMatch){if(C!==P.substr(0,C.length))continue e}else{var U=P.toLowerCase().indexOf(R);if(U>-1)A=U;else for(var K=0;K<C.length;K++){var Q=P.indexOf(R[K],O+1),J=P.indexOf(D[K],O+1);if(N=Q>=0&&(J<0||Q<J)?Q:J,N<0)continue e;B=N-O-1,B>0&&(O===-1&&(A+=10),A+=B,$|=1<<K),O=N}}H.matchMask=$,H.exactMatch=A?0:1,H.$score=(H.score||0)-A,L.push(H)}}return L},_}();r.Autocomplete=w,r.CompletionProvider=x,r.FilteredList=M}),ace.define("ace/marker_group",["require","exports","module"],function(t,r,d){var p=function(){function g(b,h){h&&(this.markerType=h.markerType),this.markers=[],this.session=b,b.addDynamicMarker(this)}return g.prototype.getMarkerAtPosition=function(b){return this.markers.find(function(h){return h.range.contains(b.row,b.column)})},g.prototype.markersComparator=function(b,h){return b.range.start.row-h.range.start.row},g.prototype.setMarkers=function(b){this.markers=b.sort(this.markersComparator).slice(0,this.MAX_MARKERS),this.session._signal("changeBackMarker")},g.prototype.update=function(b,h,f,s){if(!(!this.markers||!this.markers.length))for(var a=s.firstRow,u=s.lastRow,c,i=0,l=0,m=0;m<this.markers.length;m++){var w=this.markers[m];if(!(w.range.end.row<a)&&!(w.range.start.row>u)&&(w.range.start.row===l?i++:(l=w.range.start.row,i=0),!(i>200))){var x=w.range.clipRows(a,u);if(!(x.start.row===x.end.row&&x.start.column===x.end.column)){var M=x.toScreenRange(f);if(M.isEmpty()){c=f.getNextFoldLine(x.end.row,c),c&&c.end.row>x.end.row&&(a=c.end.row);continue}this.markerType==="fullLine"?h.drawFullLineMarker(b,M,w.className,s):M.isMultiLine()?this.markerType==="line"?h.drawMultiLineMarker(b,M,w.className,s):h.drawTextMarker(b,M,w.className,s):h.drawSingleLineMarker(b,M,w.className+" ace_br15",s)}}}},g}();p.prototype.MAX_MARKERS=1e4,r.MarkerGroup=p}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(t,r,d){function p(f,s){var a=f.getTextRange(b.fromPoints({row:0,column:0},s));return a.split(h).length-1}function g(f,s){var a=p(f,s),u=f.getValue().split(h),c=Object.create(null),i=u[a];return u.forEach(function(l,m){if(!(!l||l===i)){var w=Math.abs(a-m),x=u.length-w;c[l]?c[l]=Math.max(x,c[l]):c[l]=x}}),c}var b=t("../range").Range,h=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;r.getCompletions=function(f,s,a,u,c){var i=g(s,a),l=Object.keys(i);c(null,l.map(function(m){return{caption:m,value:m,score:i[m],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/marker_group","ace/autocomplete/text_completer","ace/editor","ace/config"],function(t,r,d){var p=t("../snippets").snippetManager,g=t("../autocomplete").Autocomplete,b=t("../config"),h=t("../lib/lang"),f=t("../autocomplete/util"),s=t("../marker_group").MarkerGroup,a=t("../autocomplete/text_completer"),u={getCompletions:function(R,I,H,P,O){if(I.$mode.completer)return I.$mode.completer.getCompletions(R,I,H,P,O);var $=R.session.getState(H.row),A=I.$mode.getCompletions($,I,H,P);A=A.map(function(N){return N.completerId=u.id,N}),O(null,A)},id:"keywordCompleter"},c=function(R){var I={};return R.replace(/\${(\d+)(:(.*?))?}/g,function(H,P,O,$){return I[P]=$||""}).replace(/\$(\d+?)/g,function(H,P){return I[P]})},i={getCompletions:function(R,I,H,P,O){var $=[],A=I.getTokenAt(H.row,H.column);A&&A.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?$.push("html-tag"):$=p.getActiveScopes(R);var N=p.snippetMap,B=[];$.forEach(function(U){for(var K=N[U]||[],Q=K.length;Q--;){var J=K[Q],he=J.name||J.tabTrigger;he&&B.push({caption:he,snippet:J.content,meta:J.tabTrigger&&!J.name?J.tabTrigger+"⇥ ":"snippet",completerId:i.id})}},this),O(null,B)},getDocTooltip:function(R){R.snippet&&!R.docHTML&&(R.docHTML=["<b>",h.escapeHTML(R.caption),"</b>","<hr></hr>",h.escapeHTML(c(R.snippet))].join(""))},id:"snippetCompleter"},l=[i,a,u];r.setCompleters=function(R){l.length=0,R&&l.push.apply(l,R)},r.addCompleter=function(R){l.push(R)},r.textCompleter=a,r.keyWordCompleter=u,r.snippetCompleter=i;var m={name:"expandSnippet",exec:function(R){return p.expandWithTab(R)},bindKey:"Tab"},w=function(R,I){x(I.session.$mode)},x=function(R){typeof R=="string"&&(R=b.$modes[R]),R&&(p.files||(p.files={}),M(R.$id,R.snippetFileId),R.modes&&R.modes.forEach(x))},M=function(R,I){!I||!R||p.files[R]||(p.files[R]={},b.loadModule(I,function(H){H&&(p.files[R]=H,!H.snippets&&H.snippetText&&(H.snippets=p.parseSnippetFile(H.snippetText)),p.register(H.snippets||[],H.scope),H.includeScopes&&(p.snippetMap[H.scope].includeScopes=H.includeScopes,H.includeScopes.forEach(function(P){x("ace/mode/"+P)})))}))},_=function(R){var I=R.editor,H=I.completer&&I.completer.activated;if(R.command.name==="backspace")H&&!f.getCompletionPrefix(I)&&I.completer.detach();else if(R.command.name==="insertstring"&&!H){k=R;var P=R.editor.$liveAutocompletionDelay;P?C.delay(P):L(R)}},k,C=h.delayedCall(function(){L(k)},0),L=function(R){var I=R.editor,H=f.getCompletionPrefix(I),P=R.args,O=f.triggerAutocomplete(I,P);if(H&&H.length>=I.$liveAutocompletionThreshold||O){var $=g.for(I);$.autoShown=!0,$.showPopup(I)}},D=t("../editor").Editor;t("../config").defineOptions(D.prototype,"editor",{enableBasicAutocompletion:{set:function(R){R?(g.for(this),this.completers||(this.completers=Array.isArray(R)?R:l),this.commands.addCommand(g.startCommand)):this.commands.removeCommand(g.startCommand)},value:!1},enableLiveAutocompletion:{set:function(R){R?(this.completers||(this.completers=Array.isArray(R)?R:l),this.commands.on("afterExec",_)):this.commands.off("afterExec",_)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(R){R?(this.commands.addCommand(m),this.on("changeMode",w),w(null,this)):(this.commands.removeCommand(m),this.off("changeMode",w))},value:!1}}),r.MarkerGroup=s}),function(){ace.require(["ace/ext/language_tools"],function(t){n&&(n.exports=t)})}()}(Hf)),Hf.exports}M1();var jf={exports:{}},Uf;function E1(){return Uf||(Uf=1,function(n,e){ace.define("ace/ext/searchbox-css",["require","exports","module"],function(t,r,d){d.exports=`
|
|
1230
1230
|
|
|
1231
1231
|
/* ------------------------------------------------------------------------------------------
|
|
1232
1232
|
* Editor Search Form
|
|
@@ -1396,14 +1396,14 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(pr,n
|
|
|
1396
1396
|
`):" "+Ag(g[0]):"as no adapter specified";throw new _t("There is no suitable adapter to dispatch the request "+b,"ERR_NOT_SUPPORT")}return d}const Sg={getAdapter:rk,adapters:zu};function ju(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ua(null,n)}function _g(n){return ju(n),n.headers=hi.from(n.headers),n.data=Hu.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Sg.getAdapter(n.adapter||Va.adapter,n)(n).then(function(e){return ju(n),e.data=Hu.call(n,n.transformResponse,e),e.headers=hi.from(e.headers),e},function(e){return hg(e)||(ju(n),e&&e.response&&(e.response.data=Hu.call(n,n.transformResponse,e.response),e.response.headers=hi.from(e.response.headers))),Promise.reject(e)})}const $g="1.13.2",Kl={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Kl[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Tg={};Kl.transitional=function(n,e,t){function r(d,p){return"[Axios v"+$g+"] Transitional option '"+d+"'"+p+(t?". "+t:"")}return(d,p,g)=>{if(n===!1)throw new _t(r(p," has been removed"+(e?" in "+e:"")),_t.ERR_DEPRECATED);return e&&!Tg[p]&&(Tg[p]=!0,console.warn(r(p," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(d,p,g):!0}},Kl.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function ik(n,e,t){if(typeof n!="object")throw new _t("options must be an object",_t.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let d=r.length;for(;d-- >0;){const p=r[d],g=e[p];if(g){const b=n[p],h=b===void 0||g(b,p,n);if(h!==!0)throw new _t("option "+p+" must be "+h,_t.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new _t("Unknown option "+p,_t.ERR_BAD_OPTION)}}const Gl={assertOptions:ik,validators:Kl},yo=Gl.validators;let Ms=class{constructor(n){this.defaults=n||{},this.interceptors={request:new ag,response:new ag}}async request(n,e){try{return await this._request(n,e)}catch(t){if(t instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const d=r.stack?r.stack.replace(/^.+\n/,""):"";try{t.stack?d&&!String(t.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(t.stack+=`
|
|
1397
1397
|
`+d):t.stack=d}catch{}}throw t}}_request(n,e){typeof n=="string"?(e=e||{},e.url=n):e=n||{},e=Ts(this.defaults,e);const{transitional:t,paramsSerializer:r,headers:d}=e;t!==void 0&&Gl.assertOptions(t,{silentJSONParsing:yo.transitional(yo.boolean),forcedJSONParsing:yo.transitional(yo.boolean),clarifyTimeoutError:yo.transitional(yo.boolean)},!1),r!=null&&(Ae.isFunction(r)?e.paramsSerializer={serialize:r}:Gl.assertOptions(r,{encode:yo.function,serialize:yo.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Gl.assertOptions(e,{baseUrl:yo.spelling("baseURL"),withXsrfToken:yo.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let p=d&&Ae.merge(d.common,d[e.method]);d&&Ae.forEach(["delete","get","head","post","put","patch","common"],c=>{delete d[c]}),e.headers=hi.concat(p,d);const g=[];let b=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(e)===!1||(b=b&&c.synchronous,g.unshift(c.fulfilled,c.rejected))});const h=[];this.interceptors.response.forEach(function(c){h.push(c.fulfilled,c.rejected)});let f,s=0,a;if(!b){const c=[_g.bind(this),void 0];for(c.unshift(...g),c.push(...h),a=c.length,f=Promise.resolve(e);s<a;)f=f.then(c[s++],c[s++]);return f}a=g.length;let u=e;for(;s<a;){const c=g[s++],i=g[s++];try{u=c(u)}catch(l){i.call(this,l);break}}try{f=_g.call(this,u)}catch(c){return Promise.reject(c)}for(s=0,a=h.length;s<a;)f=f.then(h[s++],h[s++]);return f}getUri(n){n=Ts(this.defaults,n);const e=gg(n.baseURL,n.url,n.allowAbsoluteUrls);return sg(e,n.params,n.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(n){Ms.prototype[n]=function(e,t){return this.request(Ts(t||{},{method:n,url:e,data:(t||{}).data}))}}),Ae.forEach(["post","put","patch"],function(n){function e(t){return function(r,d,p){return this.request(Ts(p||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}Ms.prototype[n]=e(),Ms.prototype[n+"Form"]=e(!0)});let ok=class sx{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(d){t=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](d);r._listeners=null}),this.promise.then=d=>{let p;const g=new Promise(b=>{r.subscribe(b),p=b}).then(d);return g.cancel=function(){r.unsubscribe(p)},g},e(function(d,p,g){r.reason||(r.reason=new ua(d,p,g),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new sx(function(t){e=t}),cancel:e}}};function sk(n){return function(e){return n.apply(null,e)}}function ak(n){return Ae.isObject(n)&&n.isAxiosError===!0}const Uu={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(Uu).forEach(([n,e])=>{Uu[e]=n});function Mg(n){const e=new Ms(n),t=Vf(Ms.prototype.request,e);return Ae.extend(t,Ms.prototype,e,{allOwnKeys:!0}),Ae.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Mg(Ts(n,r))},t}const er=Mg(Va);er.Axios=Ms,er.CanceledError=ua,er.CancelToken=ok,er.isCancel=hg,er.VERSION=$g,er.toFormData=jl,er.AxiosError=_t,er.Cancel=er.CanceledError,er.all=function(n){return Promise.all(n)},er.spread=sk,er.isAxiosError=ak,er.mergeConfig=Ts,er.AxiosHeaders=hi,er.formToJSON=n=>cg(Ae.isHTMLForm(n)?new FormData(n):n),er.getAdapter=Sg.getAdapter,er.HttpStatusCode=Uu,er.default=er;const{Axios:GF,AxiosError:YF,CanceledError:XF,isCancel:ZF,CancelToken:QF,VERSION:JF,all:eP,Cancel:tP,isAxiosError:nP,spread:rP,toFormData:iP,AxiosHeaders:oP,HttpStatusCode:sP,formToJSON:aP,getAdapter:lP,mergeConfig:cP}=er,Vu=er.create({baseURL:location.origin,timeout:6e4,params:{}});Vu.interceptors.response.use(n=>n,n=>{var e,t,r,d,p,g,b,h,f,s,a;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} - `;(e=n.response)!=null&&e.statusText&&(u+=`${n.response.statusText} `),(r=(t=n.response)==null?void 0:t.config)!=null&&r.data&&(u+=`${n.response.config.data} `),(p=(d=n.response)==null?void 0:d.data)!=null&&p.message?u+=`${n.response.data.message}`:(b=(g=n.response)==null?void 0:g.data)!=null&&b.exception?u+=`${n.response.data.exception}`:(s=(f=(h=n.response)==null?void 0:h.data)==null?void 0:f.error)!=null&&s.message?(n.response.data.error.class&&(u+=`${n.response.data.error.class} `),u+=`${n.response.data.error.message}`):u+=`${(a=n.response)==null?void 0:a.data}`;const{$cosmosNotify:c}=window;throw c&&c.serious({title:"Network error",body:u}),n}else throw n});const Yl=async function(n,e,{data:t,params:r={},headers:d,noAuth:p=!1,noScope:g=!1,onUploadProgress:b=!1}={}){if(!p){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}d.Authorization=localStorage.openc3Token}return d.manual=!0,!g&&!r.scope&&(r.scope=window.openc3Scope),Vu({method:n,url:e,data:t,params:r,headers:d,onUploadProgress:b})},qu={Accept:"application/json"},Eg={...qu,"Content-Type":"application/json"},lk=pr("F",{get:function(n,{params:e,headers:t=qu,noScope:r,noAuth:d,onUploadProgress:p}={}){return Yl("get",n,{params:e,headers:t,noScope:r,noAuth:d,onUploadProgress:p})},put:function(n,{data:e,params:t,headers:r=Eg,noScope:d,noAuth:p,onUploadProgress:g}={}){return Yl("put",n,{data:e,params:t,headers:r,noScope:d,noAuth:p,onUploadProgress:g})},post:function(n,{data:e,params:t,headers:r=Eg,noScope:d,noAuth:p,onUploadProgress:g}={}){return Yl("post",n,{data:e,params:t,headers:r,noScope:d,noAuth:p,onUploadProgress:g})},delete:function(n,{params:e,headers:t=qu,noScope:r,noAuth:d,onUploadProgress:p}={}){return Yl("delete",n,{params:e,headers:t,noScope:r,noAuth:d,onUploadProgress:p})}});let Xl=()=>({emit(n,...e){for(let t=this.events[n]||[],r=0,d=t.length;r<d;r++)t[r](...e)},events:{},on(n,e){var t;return((t=this.events)[n]||(t[n]=[])).push(e),()=>{var r;this.events[n]=(r=this.events[n])==null?void 0:r.filter(d=>e!==d)}}});class Ka extends Error{constructor(e,t){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=t,this.name="ReasonError"}}class Ku extends Ka{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class ck extends Ka{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class ro extends Ka{constructor(e,t){t?super(e,t):super("Disconnected",e),this.name="DisconnectedError"}}class uk extends ro{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function Ig(n){return n?`{${Object.keys(n).sort().filter(e=>n[e]!==void 0).map(e=>{let t=JSON.stringify(n[e]);return`${JSON.stringify(e)}:${t}`}).join(",")}}`:""}class hk{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,t){if(!this._info)return this._info={id:e,info:t},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((t,{id:r,info:d})=>(t[r]=d,t),{})}}const Es=Symbol("state");class Rg{constructor(e={}){this.emitter=Xl(),this.params=Object.freeze(e),this.presence=new hk(this),this.initialConnect=!0,this[Es]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=Ig({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Es]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[Es]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Es]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[Es]="connected";let e=!0,t=!0;this.initialConnect=!1,this.emit("connect",{reconnect:t,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[Es]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[Es]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,t){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,t)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(t){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",t)}}receive(e,t){this.emit("message",e,t)}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...d)=>{r(),t(...d)});return r}emit(e,...t){return this.emitter.emit(e,...t)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,t)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(d=>d()),e()})),r.push(this.on("close",d=>{r.forEach(p=>p()),t(d||new Ka("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class dk{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let t=this.channels.indexOf(e);t>-1&&this.channels.splice(t,1)}notify(e,...t){this.state=e==="restored"?"connected":e,t.length===1?this.channels.forEach(r=>r[e](t[0])):this.channels.forEach(r=>r[e]())}pending(e){this._checkIntent(e);let t=this._pendings[0];return!t||t.intent!==e?Promise.resolve():t.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let t,r={promise:new Promise(p=>{t=p}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(r),1),t(r)},canceled:!1,acquired:!1},d=this._pendingTop;return this._pendings.push(r),d&&await d.promise,this.gvl&&await this.gvl.acquire(r,e),r.acquired=!0,r}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let t=this._pendingTop;return!t||t.acquired||t.intent!==e?!1:(this._pendings.pop(),t.canceled=!0,!0)}}class pk{constructor(){this.queue=[]}async acquire(e,t){t==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class fk{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new pk),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:t,unsubscribe:r}){let d=this._subscriptions[e]=new dk(e);return d.remoteId=this._localToRemote[e],d.subscriber=t,d.unsubscriber=r,d.gvl=this.glv,d}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,t){this._localToRemote[e]=t;let r=this.get(e);r&&(r.remoteId=t)}}class gk{constructor(e={}){this.subscriptions=new fk(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,t){this._remoteToLocal[t]=e,this.subscriptions.storeRemoteId(e,t),this.flush(t)}unsubscribe(e){let t=this.subscriptions.get(e);if(!t)return;let r=t.remoteId;r&&delete this._remoteToLocal[r],this.subscriptions.remove(e)}transmit(e,t,r){let d=this._remoteToLocal[e];if(!d){this._pendingMessages.push([e,t,r]);return}let p=this.subscriptions.get(d);p&&p.channels.forEach(g=>{g.receive(t,r)})}notify(e,t,r){let d=this._remoteToLocal[e];if(!d)return;let p=this.subscriptions.get(d);p&&p.channels.forEach(g=>g.emit(t,r))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let t=[];for(let r of this._pendingMessages)r[0]===e?this.transmit(r[0],r[1],r[2]):t.push(r);this._pendingMessages=t}}const Lg={debug:0,info:1,warn:2,error:3};class Og{constructor(e){this.level=e||"warn"}log(e,t,r){Lg[e]<Lg[this.level]||this.writeLogEntry(e,t,r)}writeLogEntry(){throw Error("Not implemented")}debug(e,t){this.log("debug",e,t)}info(e,t){this.log("info",e,t)}warn(e,t){this.log("warn",e,t)}error(e,t){this.log("error",e,t)}}class Ga extends Og{writeLogEntry(){}}class mk{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let vk=0;class Ng{constructor(e={}){let{logger:t}=e;this.logger=t||new Ga,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,t){let r={channel:e};t&&Object.assign(r,t);let d=Ig(r);if(this.pendingUnsubscriptions[d]){let g=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${g}`,d),new Promise(b=>{setTimeout(()=>{b(this.subscribe(e,t))},g)})}if(this.pendingSubscriptions[d])return this.logger.warn("subscription is already pending, skipping",d),Promise.reject(Error("Already subscribing"));let p=this.subscribeRetryInterval;return new Promise((g,b)=>{let h=++vk;this.pendingSubscriptions[d]={resolve:g,reject:b,id:h},this.cable.send(this.buildSubscribeRequest(d)),this.maybeRetrySubscribe(h,d,p)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,t,r){setTimeout(()=>{let d=this.pendingSubscriptions[t];d&&d.id===e&&(this.logger.warn(`no subscription ack received in ${r}ms, retrying subscribe`,t),this.cable.send(this.buildSubscribeRequest(t)),this.maybeExpireSubscribe(e,t,r))},r)}maybeExpireSubscribe(e,t,r){setTimeout(()=>{let d=this.pendingSubscriptions[t];d&&d.id===e&&(delete this.pendingSubscriptions[t],d.reject(new ck(`Haven't received subscription ack in ${r*2}ms for ${t}`)))},r)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,t,r){return t==="$whisper"?this.whisper(e,r):(r||(r={}),r.action=t,this.cable.send({command:"message",identifier:e,data:JSON.stringify(r)}),Promise.resolve())}whisper(e,t){return this.cable.send({command:"whisper",identifier:e,data:t}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:t,identifier:r,message:d,reason:p,reconnect:g}=e;if(t==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),t==="welcome"){let b=e.sid;return b&&this.cable.setSessionId(b),this.cable.connected()}if(t==="disconnect"){let b=new ro(p);this.reset(b),g===!1?this.cable.closed(b):this.cable.disconnected(b);return}if(t==="confirm_subscription"){let b=this.pendingSubscriptions[r];if(!b){this.logger.error("subscription not found, unsubscribing",{type:t,identifier:r}),this.unsubscribe(r);return}return delete this.pendingSubscriptions[r],b.resolve(r)}if(t==="reject_subscription"){let b=this.pendingSubscriptions[r];return b?(delete this.pendingSubscriptions[r],b.reject(new Ku)):this.logger.error("subscription not found",{type:t,identifier:r})}if(d)return{identifier:r,message:d};this.logger.warn(`unknown message type: ${t}`,{message:e})}reset(e){for(let t in this.pendingSubscriptions)this.pendingSubscriptions[t].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const Dg=()=>Date.now()/1e3|0;class yk extends Ng{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.disableSessionRecovery=e.disableSessionRecovery,this.restoreSince===void 0&&(this.restoreSince=Dg()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let t in this.pendingPresence)this.pendingPresence[t].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:t,identifier:r,message:d}=e;if(t==="disconnect")return delete this.sessionId,this.cable.setSessionId(""),super.receive(e);if(t==="reject_subscription")return super.receive(e);if(t==="confirm_subscription")return this.subscriptionStreams[r]||(this.subscriptionStreams[r]=new Set),super.receive(e);if(t==="ping")return this.restoreSince&&(this.restoreSince=Dg()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),t==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",r);return}if(t==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",r);return}if(t==="welcome"){if(this.disableSessionRecovery||(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId)),e.restored){let p=e.restored_ids||Object.keys(this.subscriptionStreams);for(let g of p)this.cable.send({identifier:g,command:"history",history:this.historyRequestFor(g)}),this.presenceInfo[g]&&this.cable.send({identifier:g,command:"join",presence:this.presenceInfo[g]});return this.cable.restored(p)}return this.cable.connected(this.sessionId)}if(t==="presence"){let p=d.type;if(p==="info"){let g=this.pendingPresence[r];g&&(delete this.pendingPresence[r],g.resolve(d))}else if(p==="error"){let g=this.pendingPresence[r];g&&(delete this.pendingPresence[r],g.reject(new Error("failed to retrieve presence")))}return{type:t,identifier:r,message:d}}if(d){let p=this.trackStreamPosition(r,e.stream_id,e.epoch,e.offset);return{identifier:r,message:d,meta:p}}this.logger.warn(`unknown message type: ${t}`,{message:e})}perform(e,t,r){switch(t){case"$presence:join":return this.join(e,r);case"$presence:leave":return this.leave(e,r);case"$presence:info":return this.presence(e,r)}return super.perform(e,t,r)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let t=super.buildSubscribeRequest(e),r=this.historyRequestFor(e);r&&(t.history=r,this.pendingHistory[e]=!0);let d=this.presenceInfo[e];return d&&(t.presence=d),t}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let t={},r=!1;if(this.subscriptionStreams[e])for(let d of this.subscriptionStreams[e]){let p=this.streamsPositions[d];p&&(r=!0,t[d]=p)}if(!(!r&&!this.restoreSince))return{since:this.restoreSince,streams:t}}trackStreamPosition(e,t,r,d){if(!(!t||!r))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(t),this.streamsPositions[t]={epoch:r,offset:d},{stream:t,epoch:r,offset:d}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,t){return this.presenceInfo[e]=t,this.cable.send({command:"join",identifier:e,presence:t}),Promise.resolve()}async leave(e,t){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:t}),Promise.resolve()}presence(e,t){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((r,d)=>{this.pendingPresence[e]={resolve:r,reject:d},this.cable.send({command:"presence",identifier:e,data:t})})}}class bk extends Ka{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Gu extends Rg{constructor(e,t){super(t),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}Pl(Gu,"identifier","__ghost__");const wk="$pubsub";class Yu extends Rg{async perform(e,t){if(e.startsWith("$"))return super.perform(e,t);throw Error("not implemented")}}Pl(Yu,"identifier",wk);const Is=Symbol("state");let xk=class{constructor({transport:n,protocol:e,encoder:t,logger:r,lazy:d,hubOptions:p,performFailures:g,transportConfigurator:b}){this.emitter=Xl(),this.transport=n,this.encoder=t,this.logger=r||new Ga,this.protocol=e,this.performFailures=g||"throw",this.protocol.attached(this),this.hub=new gk(p||{}),this[Is]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transportConfigurator=b,this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,d===!1&&this.connect().catch(()=>{})}get state(){return this[Is]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();let n=this.state==="idle";this[Is]="connecting";let e=this.pendingConnect();this.logger.debug("connecting");try{this.transportConfigurator&&await this.transportConfigurator(this.transport,{initial:n}),await this.transport.open()}catch(t){this.handleClose(t)}return e}setSessionId(n){this.sessionId=n,this.transport.setParam("sid",n)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[Is]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new ro("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let n=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:n})):this.emit("connect",{reconnect:!0,restored:n})}restored(n){this.logger.info("connection recovered",{remoteIds:n}),this[Is]="connected",this.hub.subscriptions.all().forEach(r=>{n&&r.remoteId&&n.includes(r.remoteId)?r.notify("restored"):(r.notify("disconnected",new ro("recovery_failed")),this._resubscribe(r))});let e=!this.initialConnect,t=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:t})}notify(n,e,t){e&&typeof e!="string"&&(t=e,e=void 0),e?this.hub.notify(e,"info",{type:n,data:t}):this.emit("info",{type:n,data:t})}handleClose(n){this.logger.debug("transport closed",{error:n}),this.disconnected(new ro(n,"transport_closed"))}disconnected(n){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:n}),this[Is]="disconnected",this.recovering=this.protocol.recoverableClosure(n),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",n)}),this.protocol.reset(n),this.hub.close(),this.transport.close(),this.emit("disconnect",n))}closed(n){if(this.state==="closed"||this.state==="idle")return;let e;n&&(e=n instanceof ro?n:new ro(n,void 0)),this.logger.info("closed",{reason:n||"user"}),this[Is]="closed";let t=e||new ro("cable_closed");this.hub.subscriptions.all().forEach(r=>r.notify("disconnected",t)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(n){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(n);if(e===void 0){this.logger.error("failed to decode message",{message:n});return}this.logger.debug("incoming data",e);let t=this.protocol.receive(e);if(t){this.logger.debug("processed incoming message",t);let{type:r,identifier:d,message:p,meta:g}=t;r?this.hub.notify(d,r,p):this.hub.transmit(d,p,g)}}send(n){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(n);if(e===void 0){this.logger.error("failed to encode message",{message:n});return}this.logger.debug("outgoing message",n),this.transport.send(e)}keepalive(n){this.emit("keepalive",n)}streamFrom(n){let e=new Yu({stream_name:n});return this.subscribe(e)}streamFromSigned(n){let e=new Yu({signed_stream_name:n});return this.subscribe(e)}subscribeTo(n,e){let t,r;return typeof n=="string"&&(r=n,n=Gu),t=r?new n(r,e):new n(e),this.subscribe(t)}subscribe(n){if(!n.attached(this))return n;let e=n.identifier;n.connecting();let t=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:r=>this._subscribe(r,n.channelId,n.params),unsubscribe:r=>this._unsubscribe(r)});return t.add(n),t.intent==="subscribed"&&t.state==="connected"&&n.connected(),t.ensureSubscribed(),n}async _resubscribe(n){n.intent!=="subscribed"||!n.channels[0]||(n.notify("connecting"),n.ensureResubscribed())}async _subscribe(n,e,t){let r=n.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r});return}this.logger.debug("acquiring subscribe lock",{identifier:r});let d=await n.acquire("subscribed");if(d.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:r}),d.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:r}),n.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),d.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:r}),d.release();return}if(n.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:r}),n.notify("connected"),d.release();return}let p={identifier:e,params:t};this.logger.debug("subscribing",p);try{let g=await this.protocol.subscribe(e,t);this.hub.subscribe(r,g),this.logger.debug("subscribed",{...p,remoteId:g}),n.notify("connected")}catch(g){if(g){if(g instanceof Ku&&this.logger.warn("rejected",p),g instanceof ro){this.logger.debug("disconnected during subscription; will retry on connect",p),d.release();return}this.logger.error("failed to subscribe",{error:g,...p})}n.close(g),this.hub.unsubscribe(r)}d.release()}unsubscribe(n){let e=n.identifier,t=this.hub.subscriptions.get(e);if(!t)throw Error(`Subscription not found: ${e}`);t.remove(n),n.closed(),t.maybeUnsubscribe()}async _unsubscribe(n){let e=n.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let t=await n.acquire("unsubscribed");if(t.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),t.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),n.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:n.intent}),t.release();return}if(n.state==="disconnected"||n.state==="closed"){this.logger.debug(`already ${n.state} connected, skip unsubscribe command`,{identifier:e}),t.release();return}let r=n.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:r}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),n.close(),this.hub.unsubscribe(e),t.release();return}try{await this.protocol.unsubscribe(r),this.logger.debug("unsubscribed remotely",{id:e})}catch(d){d&&(d instanceof ro?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:d}):this.logger.error("unsubscribe failed",{id:e,error:d}))}n.intent==="unsubscribed"?(n.close(),this.hub.unsubscribe(e)):n.state="closed",t.release()}async perform(n,e,t){if(this.performFailures==="throw")return this._perform(n,e,t);try{return await this._perform(n,e,t)}catch(r){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:r});return}}async _perform(n,e,t){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new bk;let r=this.hub.subscriptions.get(n);if(!r)throw Error(`Subscription not found: ${n}`);if(await r.pending("subscribed"),r.intent!=="subscribed")throw Error(`Subscription is closed: ${n}`);let d=r.remoteId,p={id:d,action:e,payload:t};this.logger.debug("perform",p);try{let g=await this.protocol.perform(d,e,t);return g&&this.logger.debug("perform result",{message:g,request:p}),g}catch(g){throw this.logger.error("perform failed",{error:g,request:p}),g}}on(n,e){return this.emitter.on(n,e)}once(n,e){let t=this.emitter.on(n,(...r)=>{t(),e(...r)});return t}emit(n,...e){return this.emitter.emit(n,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((n,e)=>{let t=[()=>delete this._pendingConnect];t.push(this.on("connect",()=>{t.forEach(r=>r()),n()})),t.push(this.on("close",r=>{t.forEach(d=>d()),e(r)})),t.push(this.on("disconnect",r=>{t.forEach(d=>d()),e(r)}))}),this._pendingConnect)}};const Ck={maxMissingPings:2,maxReconnectAttempts:1/0},ha=()=>Date.now(),Fg=(n,e)=>{e=e||{};let{backoffRate:t,jitterRatio:r,maxInterval:d}=e;return t=t||2,r===void 0&&(r=.5),p=>{let g=n*t**p,b=g*t,h=g+(b-g)*Math.random(),f=2*(Math.random()-.5)*r;return h=h*(1+f),d&&d<h&&(h=d),h}};let Pg=class{constructor({pingInterval:n,...e}){if(this.pingInterval=n,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${n}`);if(e=Object.assign({},Ck,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new Ga,this.state="pending_connect",this.attempts=0,this.disconnectedAt=ha()}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=ha(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=ha(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=ha(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=ha()})),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=ha()-this.pingedAt;n>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${n}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new uk))}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 kk{constructor(e,t={}){this.transports=e,this.transport=null,this.emitter=Xl(),this.unbind=[],this.logger=t.logger||new Ga}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let t=this.transports[e];try{this.transport=t,this.resetListeners(),this.logger.debug(`Trying to connect via ${t.displayName()}`),await t.open(),this.logger.debug(`Connected via ${t.displayName()}`);return}catch(r){this.logger.debug(`Failed to connect via ${t.displayName()}: ${r.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,t){this.transports.forEach(r=>{r.setParam(e,t)})}setToken(e,t){this.transports.forEach(r=>{r.setToken(e,t)})}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...d)=>{r(),t(...d)});return r}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Ak{constructor(e,t={}){this.url=e;let r=t.websocketImplementation;if(r)this.Impl=r;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Xl();let{format:d,subprotocol:p,authStrategy:g}=t;this.format=d||"text",this.connectionOptions=t.websocketOptions,this.authStrategy=g||"param",this.authProtocol="",this.subprotocol=p}displayName(){return"WebSocket("+this.url+")"}open(){let e=this.subprotocol;return this.authStrategy==="sub-protocol"&&(e=[this.subprotocol,this.authProtocol]),this.connectionOptions?this.ws=new this.Impl(this.url,e,this.connectionOptions):this.ws=new this.Impl(this.url,e),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((t,r)=>{let d=[];d.push(this.once("open",()=>{d.forEach(p=>p()),t()})),d.push(this.once("close",()=>{d.forEach(p=>p()),r(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,t){let r=new URL(this.url);r.searchParams.set(e,t);let d=`${r.protocol}//${r.host}${r.pathname}?${r.searchParams}`;this.setURL(d)}setToken(e,t="jid"){if(this.authStrategy==="param")this.setParam(t,e);else if(this.authStrategy==="header"){this.connectionOptions=this.connectionOptions||{},this.connectionOptions.headers=this.connectionOptions.headers||{};let r=`x-${t}`.toLowerCase();r=Object.keys(this.connectionOptions.headers).find(d=>d.toLowerCase()===r)||r,this.connectionOptions.headers[r]=e}else if(this.authStrategy==="sub-protocol")this.authProtocol=`anycable-token.${e}`;else throw new Error("Unknown auth strategy: "+this.authStrategy)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,t){return this.emitter.on(e,t)}once(e,t){let r=this.emitter.on(e,(...d)=>{r(),t(...d)});return r}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let t=e.data;this.format==="binary"&&(t=new Uint8Array(t)),this.emitter.emit("data",t)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const Wg={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Sk(n,e){if(typeof n=="object"&&typeof e>"u"&&(e=n,n=void 0),e=e||{},!n&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},Wg,e);let{protocol:t,websocketImplementation:r,websocketFormat:d,websocketOptions:p,websocketAuthStrategy:g,fallbacks:b,logLevel:h,logger:f,transport:s,encoder:a,lazy:u,monitor:c,pingInterval:i,reconnectStrategy:l,maxMissingPings:m,maxReconnectAttempts:w,subprotocol:x,tokenRefresher:M,historyTimestamp:_,protocolOptions:k,concurrentSubscribes:C,performFailures:L,transportConfigurator:D,auth:R}=e;if(f=f||new Ga(h),typeof t=="string"){x=x||t;let P=t.substring(0,t.lastIndexOf("-")),O=t.substring(t.lastIndexOf("-")+1);if(k=k||{},P==="actioncable-v1")t=new Ng({logger:f,...k});else if(P==="actioncable-v1-ext")t=new yk({logger:f,historyTimestamp:_,...k});else throw Error(`Protocol is not supported yet: ${t}`);if(O==="json")a=a||new mk,d=d||"text";else if(O==="msgpack"){if(d="binary",!a)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(O==="protobuf"){if(d=d||"binary",!a)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${t}`)}if(!t)throw Error("Protocol must be specified");s=s||new Ak(n,{websocketImplementation:r,websocketOptions:p,subprotocol:x,authStrategy:g,format:d}),b&&(s=new kk([s,...b],{logger:f})),R&&R.token&&s.setToken(R.token,R.param||"jid"),l=l||Fg(i),c!==!1&&(c=c||new Pg({pingInterval:i,reconnectStrategy:l,maxMissingPings:m,maxReconnectAttempts:w,logger:f}));let I={concurrentSubscribes:C},H=new xk({protocol:t,transport:s,encoder:a,logger:f,lazy:u,hubOptions:I,performFailures:L,transportConfigurator:D});return c&&(c.watch(H),H.monitor=c),M&&_k(H,async()=>{try{await M(s)}catch(P){return f.error("Failed to refresh authentication token: "+P),!1}return H.connect().catch(()=>{}),!0}),H}function _k(n,e){let t=!1;n.on("connect",()=>t=!1),n.on("close",async r=>{if(r){if(t){n.logger.warn("Token auto-refresh is disabled",r);return}r.reason==="token_expired"&&(t=!0,await e())}})}class $k{constructor(e){this.channel=e}notify(e,...t){typeof this[e]=="function"&&this[e](...t)}perform(e,t={}){this.channel.perform(e,t)}send(e){this.channel.send(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class Tk extends Gu{constructor(e,t,r){super(e,t),this.subscription=new $k(this),Object.assign(this.subscription,r),this.on("connect",({reconnect:d})=>this.subscription.notify("connected",{reconnected:d})),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",d=>this.subscription.notify("received",d)),this.on("close",d=>{d&&d instanceof Ku?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class Mk{constructor(e){this.cable=e}create(e,t){let r,d;typeof e=="object"?(r=e.channel,delete e.channel,d=e):(r=e,d={});let p=new Tk(r,d,t);return p.subscription.notify("initialized"),this.cable.subscribe(p),p.subscription}findAll(e){return this.cable.hub.channels.filter(t=>t.identifier===e).map(t=>t.subscription)}}class Ek{constructor(e){this.cable=e,this.subscriptions=new Mk(e)}}class Ik extends Og{writeLogEntry(e,t,r){r?console[e](t,r):console[e](t)}}class Rk extends Pg{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},t=d=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:d})},r=()=>this.disconnect(new ro("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",t,!1),window.addEventListener("online",t,!1),window.addEventListener("resume",t,!1),window.addEventListener("freeze",r,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",t,!1),window.removeEventListener("online",t,!1),window.removeEventListener("resume",t,!1),window.removeEventListener("freeze",r,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const Lk=["cable","action-cable"],Ok="/cable",Zl=(n,e)=>{for(let t of Lk){let r=n.head.querySelector(`meta[name='${t}-${e}']`);if(r)return r.getAttribute("content")}},Bg=n=>n.match(/wss?:\/\//)?n:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${n}`:n,Nk=()=>{if(typeof document<"u"&&document.head){let n=Zl(document,"url");if(n)return Bg(n)}return Bg(Ok)},Dk=()=>{if(typeof document<"u"&&document.head){let n=Zl(document,"history-timestamp");if(n)return n|0}},Fk=()=>{if(typeof document<"u"&&document.head)return Zl(document,"token")},Pk=()=>{if(typeof document<"u"&&document.head)return Zl(document,"token-param")};function Wk(n,e){typeof n=="object"&&typeof e>"u"&&(e=n,n=void 0),n=n||Nk(),e=e||{},e.historyTimestamp||(e.historyTimestamp=Dk());let t=Fk();if(t){let f=Pk();e.auth=Object.assign({token:t,param:f},e.auth||{})}e=Object.assign({},Wg,e);let{logLevel:r,logger:d,pingInterval:p,reconnectStrategy:g,maxMissingPings:b,maxReconnectAttempts:h}=e;return d=e.logger=e.logger||new Ik(r),g=e.reconnectStrategy=e.reconnectStrategy||Fg(p),e.monitor!==!1&&(e.monitor=e.monitor||new Rk({pingInterval:p,reconnectStrategy:g,maxMissingPings:b,maxReconnectAttempts:h,logger:d})),Sk(n,e)}function Bk(n,e){let t=Wk(n,e);return new Ek(t)}class Hk{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}createSubscription(e,t,r={},d={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(p=>{if(p&&OpenC3Auth.setTokens(),this._cable==null){let g=this._url+"?scope="+encodeURIComponent(t)+"&authorization="+encodeURIComponent(localStorage.openc3Token);g=new URL(g,document.baseURI).href,this._cable=Bk(g)}return this._cable.subscriptions.create({channel:e,...d},r)})}recordPing(){}}pr("P",Hk);class zk{constructor(e,t,r="",d=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=r,this.url=d}}pr("k",zk);function Ya(n){return jk.test(n)}const jk=/^-?[0-9]+$/;function Hg(n){return Uk.test(n)}const Uk=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function zg(n,e){if(Ya(n))return Number.isSafeInteger(Number.parseInt(n,10));const t=Number.parseFloat(n),r=String(t);if(n===r)return!0;const d=jg(n),p=jg(r);return!!(d===p||(e==null?void 0:e.approx)===!0&&!Ya(n)&&p.length>=14&&d.startsWith(p.substring(0,14)))}let Xa=function(n){return n.underflow="underflow",n.overflow="overflow",n.truncate_integer="truncate_integer",n.truncate_float="truncate_float",n}({});function Vk(n){if(zg(n,{approx:!1}))return;if(Ya(n))return Xa.truncate_integer;const e=Number.parseFloat(n);return Number.isFinite(e)?e===0?Xa.underflow:Xa.truncate_float:Xa.overflow}function jg(n){const{start:e,end:t}=qk(n),r=n.substring(e,t),d=r.indexOf(".");return d===-1?r:r.substring(0,d)+r.substring(d+1)}function qk(n){let e=0;for(n[0]==="-"&&e++;n[e]==="0"||n[e]===".";)e++;let t=n.lastIndexOf("e");for(t===-1&&(t=n.lastIndexOf("E")),t===-1&&(t=n.length);(n[t-1]==="0"||n[t-1]===".")&&t>e;)t--;return{start:e,end:t}}class Kk{constructor(e){if(Pl(this,"isLosslessNumber",!0),!Hg(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=Vk(this.value);if(e===void 0||e===Xa.truncate_float)return Number.parseFloat(this.value);if(Ya(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function Gk(n){return n&&typeof n=="object"&&n.isLosslessNumber||!1}function Yk(n){return new Kk(n)}function Xk(n,e){return Xu({"":n},"",n,e)}function Xu(n,e,t,r){return Array.isArray(t)?r.call(n,e,Qk(t,r)):t&&typeof t=="object"&&!Gk(t)?r.call(n,e,Zk(t,r)):r.call(n,e,t)}function Zk(n,e){for(const t of Object.keys(n)){const r=Xu(n,t,n[t],e);r!==void 0?n[t]=r:delete n[t]}return n}function Qk(n,e){for(let t=0;t<n.length;t++)n[t]=Xu(n,String(t),n[t],e);return n}function Jk(n,e,t){const r=typeof t=="function"?{parseNumber:t}:t,d=(r==null?void 0:r.parseNumber)??Yk,p=(r==null?void 0:r.onDuplicateKey)??L;let g=0;const b=s();return w(b),M(),e?Xk(b,e):b;function h(){if(n.charCodeAt(g)===oA){g++,u();const B={};let U=!0;for(;g<n.length&&n.charCodeAt(g)!==Vg;){U?U=!1:(l(),u());const K=g,Q=c();if(Q===void 0){C();return}u(),m();const J=s();if(J===void 0){P();return}if(Object.prototype.hasOwnProperty.call(B,Q)&&!Zu(J,B[Q])){const he=p({key:Q,position:K+1,oldValue:B[Q],newValue:J});he!==void 0&&(B[Q]=he)}else B[Q]=J}return n.charCodeAt(g)!==Vg&&D(),g++,B}}function f(){if(n.charCodeAt(g)===sA){g++,u();const B=[];let U=!0;for(;g<n.length&&n.charCodeAt(g)!==qg;){U?U=!1:l();const K=s();x(K),B.push(K)}return n.charCodeAt(g)!==qg&&R(),g++,B}}function s(){u();const B=c()??i()??h()??f()??a("true",!0)??a("false",!1)??a("null",null);return u(),B}function a(B,U){if(n.slice(g,g+B.length)===B)return g+=B.length,U}function u(){for(;eA(n.charCodeAt(g));)g++}function c(){if(n.charCodeAt(g)===Qu){g++;let B="";for(;g<n.length&&n.charCodeAt(g)!==Qu;){if(n.charCodeAt(g)===iA){const U=n[g+1],K=rA[U];K!==void 0?(B+=K,g++):U==="u"?Ql(n.charCodeAt(g+2))&&Ql(n.charCodeAt(g+3))&&Ql(n.charCodeAt(g+4))&&Ql(n.charCodeAt(g+5))?(B+=String.fromCharCode(Number.parseInt(n.slice(g+2,g+6),16)),g+=5):O(g):H(g)}else nA(n.charCodeAt(g))?B+=n[g]:I(n[g]);g++}return k(),g++,B}}function i(){const B=g;if(n.charCodeAt(g)===Kg&&(g++,_(B)),n.charCodeAt(g)===Ju)g++;else if(tA(n.charCodeAt(g)))for(g++;Jl(n.charCodeAt(g));)g++;if(n.charCodeAt(g)===fA)for(g++,_(B);Jl(n.charCodeAt(g));)g++;if(n.charCodeAt(g)===bA||n.charCodeAt(g)===yA)for(g++,(n.charCodeAt(g)===Kg||n.charCodeAt(g)===hA)&&g++,_(B);Jl(n.charCodeAt(g));)g++;if(g>B)return d(n.slice(B,g))}function l(){if(n.charCodeAt(g)!==pA)throw new SyntaxError(`Comma ',' expected after value ${N()}`);g++}function m(){if(n.charCodeAt(g)!==gA)throw new SyntaxError(`Colon ':' expected after property name ${N()}`);g++}function w(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 M(){if(g<n.length)throw new SyntaxError(`Expected end of input ${N()}`)}function _(B){if(!Jl(n.charCodeAt(g))){const U=n.slice(B,g);throw new SyntaxError(`Invalid number '${U}', expecting a digit ${N()}`)}}function k(){if(n.charCodeAt(g)!==Qu)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 R(){throw new SyntaxError(`Array item or end of array ']' expected ${N()}`)}function I(B){throw new SyntaxError(`Invalid character '${B}' ${$()}`)}function H(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 ${g}`}function A(){return g<n.length?`but got '${n[g]}'`:"but reached end of input"}function N(){return`${A()} ${$()}`}}function eA(n){return n===aA||n===lA||n===cA||n===uA}function Ql(n){return n>=Ju&&n<=eh||n>=mA&&n<=wA||n>=vA&&n<=xA}function Jl(n){return n>=Ju&&n<=eh}function tA(n){return n>=dA&&n<=eh}function nA(n){return n>=32&&n<=1114111}function Zu(n,e){return n===e?!0:Array.isArray(n)&&Array.isArray(e)?n.length===e.length&&n.every((t,r)=>Zu(t,e[r])):Ug(n)&&Ug(e)?[...new Set([...Object.keys(n),...Object.keys(e)])].every(t=>Zu(n[t],e[t])):!1}function Ug(n){return typeof n=="object"&&n!==null}const rA={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
1398
1398
|
`,r:"\r",t:" "},iA=92,oA=123,Vg=125,sA=91,qg=93,aA=32,lA=10,cA=9,uA=13,Qu=34,hA=43,Kg=45,Ju=48,dA=49,eh=57,pA=44,fA=46,gA=58,mA=65,vA=97,yA=69,bA=101,wA=70,xA=102;function Gg(n,e,t,r){return d(n);function d(h,f){if(Array.isArray(r)){const s=r.find(a=>a.test(h));if(s){const a=s.stringify(h);if(typeof a!="string"||!Hg(a))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${a})`);return a}}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 p(h);if(h&&typeof h=="object")return g(h)}function p(h,f){if(h.length===0)return"[]";let s="[";for(let a=0;a<h.length;a++){const u=h[a];typeof u<"u"&&typeof u!="function"?s+=d(u):s+="null",a<h.length-1&&(s+=",")}return s+="]",s}function g(h,f){if(typeof h.toJSON=="function")return Gg(h.toJSON(),e,t,void 0);const s=Array.isArray(e)?e.map(String):Object.keys(h);if(s.length===0)return"{}";let a=!0,u="{";for(const c of s){const i=h[c];if(b(c,i)){a?a=!1:u+=",";const l=JSON.stringify(c);u+=`${l}:`,u+=d(i)}}return u+="}",u}function b(h,f){return typeof f<"u"&&typeof f!="function"&&typeof f!="symbol"}}function CA(n){return Ya(n)&&!zg(n)?BigInt(n):parseFloat(n)}class kA{constructor(){Pl(this,"id",1)}async exec(e,t,r={},d={},p=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,d.manual=!0,(await Vu.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...d},timeout:p,transformRequest:[(g,b)=>Gg(g)],transformResponse:[g=>Jk(g,void 0,CA)]})).data.result}catch(g){let b=new Error;throw g.response?(b.name=g.response.data.error.data.class,b.message=g.response.data.error.data.message,b.object=g.response.data.error):g.request?(b.name="Request error",b.message="Request error, no response received"):b=g,b}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t,r,d,p){return this.exec("map_target_to_interface",[e,t],{cmd_only:r,tlm_only:d,unmap_old:p})}unmap_target_from_interface(e,t,r,d){return this.exec("unmap_target_from_interface",[e,t],{cmd_only:r,tlm_only:d})}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...r){return this.exec("interface_cmd",[e,t,...r])}interface_target_enable(e,t,r=!1,d=!1){return this.exec("interface_target_enable",[e,t],{cmd_only:r,tlm_only:d})}interface_target_disable(e,t,r=!1,d=!1){return this.exec("interface_target_disable",[e,t],{cmd_only:r,tlm_only:d})}interface_details(e){return this.exec("interface_details",[e])}get_all_router_info(){return this.exec("get_all_router_info",[])}map_target_to_router(e,t,r,d,p){return this.exec("map_target_to_router",[e,t],{cmd_only:r,tlm_only:d,unmap_old:p})}unmap_target_from_router(e,t,r,d){return this.exec("unmap_target_from_router",[e,t],{cmd_only:r,tlm_only:d})}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}router_target_enable(e,t,r=!1,d=!1){return this.exec("router_target_enable",[e,t],{cmd_only:r,tlm_only:d})}router_target_disable(e,t,r=!1,d=!1){return this.exec("router_target_disable",[e,t],{cmd_only:r,tlm_only:d})}router_details(e){return this.exec("router_details",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,r){return this.exec("get_item",[e,t,r])}get_param(e,t,r){return this.exec("get_param",[e,t,r])}get_parameter(e,t,r){return this.exec("get_param",[e,t,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_tlm",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,t=!1){return this.exec("get_all_tlm_names",[e],{hidden:t})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}get_all_tlm_item_names(e){return this.exec("get_all_tlm_item_names",[e])}async get_tlm_packet(e,t,r,d=30){const p=await this.exec("get_tlm_packet",[e,t],{type:r,stale_time:d});if(p!=null){let g=p.length,b=null;for(let h=0;h<g;h++)b=this.decode_openc3_type(p[h][1]),b!==null&&(p[h][1]=b)}return p}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}get_tlm_available(e){return this.exec("get_tlm_available",[e])}async get_tlm_values(e,t=30,r=null,d=null,p=null){let g={stale_time:t};r!==null&&(g.cache_timeout=r),d!==null&&(g.start_time=d.toISOString()),p!==null&&(g.end_time=p.toISOString());const b=await this.exec("get_tlm_values",[e],g,{},1e4);if(b&&b.length>0){let h=b.length,f=null;for(let s=0;s<h;s++)f=this.decode_openc3_type(b[s][0]),f!==null&&(b[s][0]=f)}return b}get_limits(e,t,r){return this.exec("get_limits",[e,t,r])}async tlm(e,t,r,d="CONVERTED"){let p=null;if(t===void 0)p=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t))p=await this.exec("tlm",[e],{type:t});else{let b=new Error;throw b.name="TypeError",b.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,b}else p=await this.exec("tlm",[e,t,r],{type:d});let g=this.decode_openc3_type(p);return g!==null&&(p=g),p}async inject_tlm(e,t,r=null,d="CONVERTED"){await this.exec("inject_tlm",[e,t,r],{type:d})}set_tlm(e,t,r,d){return this.exec("set_tlm",[e,t,r],{type:d})}override_tlm(e,t,r,d){return this.exec("override_tlm",[e,t,r],{type:d})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,r,d){return this.exec("normalize_tlm",[e,t,r],{type:d})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,t=!1){return this.exec("get_all_cmd_names",[e],{hidden:t})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_cmd",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,r,d="CONVERTED"){return this.exec("get_cmd_value",[e,t,r,d])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,r,d,p,g={}){let b=null;for(let h in d)Object.prototype.hasOwnProperty.call(d,h)&&(b=this.encode_openc3_type(d[h]),b!==null&&(d[h]=b));return this.exec(e,[t,r,d],g,p)}get_cmd_hazardous(e,t,r,d={}){return t===void 0?this.exec("get_cmd_hazardous",e,{},d):this._cmd("get_cmd_hazardous",e,t,r,d)}cmd(e,t,r,d={},p={}){return t===void 0?this.exec("cmd",e,p,d):this._cmd("cmd",e,t,r,d,p)}cmd_no_range_check(e,t,r,d={},p={}){return t===void 0?this.exec("cmd_no_range_check",e,p,d):this._cmd("cmd_no_range_check",e,t,r,d,p)}cmd_raw(e,t,r,d={},p={}){return t===void 0?this.exec("cmd_raw",e,p,d):this._cmd("cmd_raw",e,t,r,d,p)}cmd_raw_no_range_check(e,t,r,d={},p={}){return t===void 0?this.exec("cmd_raw_no_range_check",e,p,d):this._cmd("cmd_raw_no_range_check",e,t,r,d,p)}cmd_no_hazardous_check(e,t,r,d={},p={}){return t===void 0?this.exec("cmd_no_hazardous_check",e,p,d):this._cmd("cmd_no_hazardous_check",e,t,r,d,p)}cmd_no_checks(e,t,r,d={},p={}){return t===void 0?this.exec("cmd_no_checks",e,p,d):this._cmd("cmd_no_checks",e,t,r,d,p)}cmd_raw_no_hazardous_check(e,t,r,d={},p={}){return t===void 0?this.exec("cmd_raw_no_hazardous_check",e,p,d):this._cmd("cmd_raw_no_hazardous_check",e,t,r,d,p)}cmd_raw_no_checks(e,t,r,d={},p={}){return t===void 0?this.exec("cmd_raw_no_checks",e,p,d):this._cmd("cmd_raw_no_checks",e,t,r,d,p)}build_cmd(e,t,r,d={},p={}){return t===void 0?this.exec("build_cmd",e,p,d):this._cmd("build_cmd",e,t,r,d,p)}build_command(e,t,r,d={},p={}){return t===void 0?this.exec("build_cmd",e,p,d):this._cmd("build_cmd",e,t,r,d,p)}get_interface_names(){return this.exec("get_interface_names",[])}get_router_names(){return this.exec("get_router_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,r){return this.exec("save_config",[e,t,r])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,r){return this.exec("enable_limits",[e,t,r])}disable_limits(e,t,r){return this.exec("disable_limits",[e,t,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e,t){return this.exec("get_setting",[e],t)}get_settings(e,t){return this.exec("get_settings",e,t)}set_setting(e,t){return this.exec("set_setting",[e,t])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(e,t){return this.exec("set_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",t),d=new Uint8Array(r);return Array.from(d).map(p=>p.toString(16).padStart(2,"0")).join("")}}}pr("B",kA);var Yg={exports:{}},Xg;function AA(){return Xg||(Xg=1,function(n,e){ace.define("ace/ext/hardwrap",["require","exports","module","ace/range","ace/editor","ace/config"],function(t,r,d){function p(f,s){function a(R,I,H){if(!(R.length<I)){var P=R.slice(0,I),O=R.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>H)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=s.column||f.getOption("printMarginColumn"),c=s.allowMerge!=0,i=Math.min(s.startRow,s.endRow),l=Math.max(s.startRow,s.endRow),m=f.session;i<=l;){var w=m.getLine(i);if(w.length>u){var x=a(w,u,5);if(x){var M=/^\s*/.exec(w)[0];m.replace(new b(i,x.start,i,x.end),`
|
|
1399
|
-
`+M)}l++}else if(c&&/\S/.test(w)&&i!=l){var _=m.getLine(i+1);if(_&&/\S/.test(_)){var k=w.replace(/\s+$/,""),C=_.replace(/^\s+/,""),L=k+" "+C,x=a(L,u,5);if(x&&x.start>k.length||L.length<u){var D=new b(i,k.length,i+1,_.length-C.length);m.replace(D," "),i--,l--}else k.length<w.length&&m.remove(new b(i,k.length,i,w.length))}}i++}}function g(f){if(f.command.name=="insertstring"&&/\S/.test(f.args)){var s=f.editor,a=s.selection.cursor;if(a.column<=s.renderer.$printMarginColumn)return;var u=s.session.$undoManager.$lastDelta;p(s,{startRow:a.row,endRow:a.row,allowMerge:!1}),u!=s.session.$undoManager.$lastDelta&&s.session.markUndoGroup()}}var b=t("../range").Range,h=t("../editor").Editor;t("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(f){f?this.commands.on("afterExec",g):this.commands.off("afterExec",g)},value:!1}}),r.hardWrap=p}),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(t,r,d){function p(y){return{row:y.line,column:y.ch}}function g(y){return new Ne(y.row,y.column)}function b(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),Be.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",cs),L(y),Be.on(y.getInputField(),"paste",s(y))}function f(y){y.setOption("disableInput",!1),y.off("cursorActivity",cs),Be.off(y.getInputField(),"paste",s(y)),y.state.vim=null,Er&&clearTimeout(Er)}function s(y){var T=y.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Zn.enterInsertMode(y,{},T))}),T.onPasteFn}function a(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 Ea.test(y)}function l(y){return ln.test(y)}function m(y){return/^\s*$/.test(y)}function w(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 M(y,T,S,F,W){if(T===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(S||(S="string"),
|
|
1400
|
-
`;else if(Ki[S]){var W=
|
|
1401
|
-
`){var q=
|
|
1402
|
-
`;else{if(Ki.hasOwnProperty(ae)){Y=Ki[ae],hs(y,Y);continue}Y=Y[0],z.lastIndex=q.index+1}}y.replaceSelection(Y)}}}finally{if(ri.pop(),gn=ri.length?F:!1,!ri.length&&
|
|
1403
|
-
`;break;case"<Space>":S=" ";break;default:S=""}return S}function Je(y,T,S){return function(){for(var F=0;F<S;F++)T(y)}}function Xe(y){return new Ne(y.line,y.ch)}function ht(y,T){return y.ch==T.ch&&y.line==T.line}function st(y,T){return y.line<T.line?!0:y.line==T.line&&y.ch<T.ch}function dt(y,T){return arguments.length>2&&(T=dt.apply(void 0,Array.prototype.slice.call(arguments,1))),st(y,T)?y:T}function
|
|
1404
|
-
`);W.pop();for(var z,z=W.pop();W.length>0&&z&&m(z);z=W.pop())S.line--,S.ch=0;z?(S.line--,S.ch=Ht(y,S.line)):S.ch=0}}function Hn(y,T,S){T.ch=0,S.ch=0,S.line++}function Xt(y){if(!y)return 0;var T=y.search(/\S/);return T==-1?y.length:T}function dn(y,T,S){var F=T.inclusive,W=T.innerWord,z=T.bigWord,q=T.noSymbol,Y=T.multiline,Z=S||vr(y),re=y.getLine(Z.line),ae=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=q?zo[0]:Vi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(Sn){return/\s/.test(Sn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=gi(y,Z,!0,z,!0);break}z?Oe=Vi[0]:(Oe=zo[0],Oe(re.charAt(ve))||(Oe=zo[1]))}for(var Le=ve,Ge=ve;Oe(re.charAt(Ge))&&Ge>=0;)Ge--;if(Ge++,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 ut=Le,et=Z.ch<=Ge&&/\s/.test(re.charAt(Z.ch));if(!et)for(;/\s/.test(ae.charAt(Le))&&Le<ae.length;)Le++;if(ut==Le||et){for(var at=Ge;/\s/.test(re.charAt(Ge-1))&&Ge>0;)Ge--;!Ge&&!et&&(Ge=at)}}return{start:new Ne(be,Ge),end:new Ne(ke,Le)}}function Hr(y,T,S){var F=T;if(!Be.findMatchingTag||!Be.findEnclosingTag)return{start:F,end:F};var W=Be.findMatchingTag(y,T)||Be.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 Jr(y,T,S){ht(T,S)||Ve.jumpList.add(y,T,S)}function ei(y,T){Ve.lastCharacterSearch.increment=y,Ve.lastCharacterSearch.forward=T.forward,Ve.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Ii(y,T,S,F){var W=Xe(y.getCursor()),z=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=Li[F];if(!be)return W;var ke=Oi[be].init,ve=Oi[be].isComplete;for(ke&&ke(ae);Z!==q&&T;){if(ae.index+=z,ae.nextCh=ae.lineText.charAt(ae.index),!ae.nextCh){if(Z+=z,ae.lineText=y.getLine(Z)||"",z>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 gi(y,T,S,F,W){var z=T.line,q=T.ch,Y=y.getLine(z),Z=S?1:-1,re=F?Vi:zo;if(W&&Y==""){if(z+=Z,Y=y.getLine(z),!a(y,z))return null;q=S?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:z};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&&z==T.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:z}}ve||(q+=Z)}if(z+=Z,!a(y,z))return null;Y=y.getLine(z),q=Z>0?0:Y.length}}function Kn(y,T,S,F,W,z){var q=Xe(T),Y=[];(F&&!W||!F&&W)&&S++;for(var Z=!F||!W,re=0;re<S;re++){var ae=gi(y,T,F,z,Z);if(!ae){var be=Ht(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 co(y,T,S,F,W){var z=T,q=new Ne(z.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 mi(y,T,S,F,W){for(var z=W||y.getCursor(),q=z.ch,Y,Z=0;Z<T;Z++){var re=y.getLine(z.line);if(Y=Rn(q,re,F,S),Y==-1)return null;q=Y}return new Ne(y.getCursor().line,Y)}function zs(y,T){var S=y.getCursor().line;return se(y,new Ne(S,T-1))}function ti(y,T,S,F){!x(S,To)&&!nn.test(S)||(T.marks[S]&&T.marks[S].clear(),T.marks[S]=y.setBookmark(F))}function Rn(y,T,S,F,W){var z;return F?(z=T.indexOf(S,y+1),z!=-1):(z=T.lastIndexOf(S,y-1),z!=-1),z}function vi(y,T,S,F,W){function z(Ge){return!/\S/.test(y.getLine(Ge))}function q(Ge,ut,et){return et?z(Ge)!=z(Ge+ut):!z(Ge)&&z(Ge+ut)}function Y(Ge){F=F>0?1:-1;var ut=y.ace.session.getFoldLine(Ge);ut&&Ge+F>ut.start.row&&Ge+F<ut.end.row&&(F=(F>0?ut.end.row:ut.start.row)-Ge)}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=z(Z);for(ve=Z;ve<=ae&&S;ve++)q(ve,1,!0)&&(!W||z(ve)!=Le)&&S--;for(ke=new Ne(ve,0),ve>ae&&!Le?Le=!0:W=!1,ve=Z;ve>re&&!((!W||z(ve)==Le||ve==Z)&&q(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function os(y,T,S,F,W){function z(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(z(we);we.line!==null;){if(Oe=we.pos,w(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(z(we);we.line!==null&&m(we.line[we.pos]);)Oe=we.pos,z(we);return{ln:we.ln,pos:Oe+1}}z(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(z(we);we.line!==null;){if(!m(we.line[we.pos])&&!w(we.line[we.pos]))Oe=we.pos;else if(w(we.line[we.pos]))return W?m(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};z(we)}return we.line=ve,W&&m(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 yi(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,!a(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 z(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!==""&&!m(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};w(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||m(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Le=Z.getLine(we.ln);we.pos=0;for(var Ge=Le.length-1;Ge>=0;--Ge)if(!m(Le[Ge])){we.pos=Ge;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(!(!w(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!m(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(!m(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=z(y,Y.ln,Y.pos,F),S--;return new Ne(Y.ln,Y.pos)}function Tn(y,T,S,F){var W=T,z,q,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[S],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[S],re=y.getLine(W.line).charAt(W.ch),ae=re===Z?1:0;if(z=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}),!z||!q)return null;if(z=z.pos,q=q.pos,z.line==q.line&&z.ch>q.ch||z.line>q.line){var be=z;z=q,q=be}return F?q.ch+=1:z.ch+=1,{start:z,end:q}}function yr(y,T,S,F){var W=Xe(T),z=y.getLine(W.line),q=z.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 bi(){}function Mn(y){var T=y.state.vim;return T.searchState_||(T.searchState_=new bi)}function Ln(y){return wi(y,"/")}function Sr(y){return ko(y,"/")}function wi(y,T){var S=ko(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 ko(y,T){T||(T="/");for(var S=!1,F=[],W=0;W<y.length;W++){var z=y.charAt(W);!S&&z==T&&F.push(W),S=!S&&z=="\\"}return F}function Ao(y){for(var T="|(){",S="}",F=!1,W=[],z=-1;z<y.length;z++){var q=y.charAt(z)||"",Y=y.charAt(z+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 ss(y){for(var T=!1,S=[],F=-1;F<y.length;F++){var W=y.charAt(F)||"",z=y.charAt(F+1)||"";Gi[W+z]?(S.push(Gi[W+z]),F++):T?(S.push(W),T=!1):W==="\\"?(T=!0,i(z)||z==="$"?S.push("$"):z!=="/"&&z!=="\\"&&S.push("\\")):(W==="$"&&S.push("$"),S.push(W),z==="/"&&S.push("\\"))}return S.join("")}function ni(y){for(var T=new Be.StringStream(y),S=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)S.push(T.next());var F=!1;for(var W in Mr)if(T.match(W,!0)){F=!0,S.push(Mr[W]);break}F||S.push(T.next())}return S.join("")}function xi(y,T,S){var F=Ve.registerController.getRegister("/");if(F.setText(y),y instanceof RegExp)return y;var W=Sr(y),z,q;if(!W.length)z=y;else{z=y.substring(0,W[0]);var Y=y.substring(W[0]);q=Y.indexOf("i")!=-1}if(!z)return null;k("pcre")||(z=Ao(z)),S&&(T=/^[^A-Z]*$/.test(z));var Z=new RegExp(z,T||q?"im":"m");return Z}function zr(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 Dt(y,T){var S=zr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);y.openNotification?y.openNotification(S,{bottom:!0,duration:5e3}):alert(S.innerText)}function No(y,T){return zr("div",{$display:"flex"},zr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,zr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&zr("span",{$color:"#888"},T))}function _r(y,T){if(ri.length){T.value||(T.value=""),En=T;return}var S=No(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=Mn(y),z=xi(T,!!S,!!F);if(z)return Tt(y,z),ce(z,W.getQuery())||W.setQuery(z),z}}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 Tt(y,T){clearTimeout(Er);var S=Mn(y);S.highlightTimeout=Er,Er=setTimeout(function(){if(y.state.vim){var F=Mn(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 Zt(y,T,S,F){return F===void 0&&(F=1),y.operation(function(){for(var W=y.getCursor(),z=y.getSearchCursor(S,W),q=0;q<F;q++){var Y=z.find(T);if(q==0&&Y&&ht(z.from(),W)){var Z=T?z.from():z.to();Y=z.find(T),Y&&!Y[0]&&ht(z.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=z.find(T))}if(!Y&&(z=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!z.find(T)))return}return z.from()})}function Vt(y,T,S,F,W){return F===void 0&&(F=1),y.operation(function(){var z=y.getCursor(),q=y.getSearchCursor(S,z),Y=q.find(!T);!W.visualMode&&Y&&ht(q.from(),z)&&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 $r(y){var T=Mn(y);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),y.removeOverlay(Mn(y).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function br(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 Gn(y){var T=y.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Tr(y,T,S){if(S=="'"||S=="`")return Ve.jumpList.find(y,-1)||new Ne(0,0);if(S==".")return wn(y);var F=T.marks[S];return F&&F.find()}function wn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var T=y.doc.history.done,S=T.length;S--;)if(T[S].changes)return Xe(T[S].changes[0].to)}function uo(y,T,S,F,W,z,q,Y,Z){function re(){y.operation(function(){for(;!Oe;)ae(),ke();ve()})}function ae(){var et=y.getRange(z.from(),z.to()),at=et.replace(q,Y),Sn=z.to().line;z.replace(at),Ge=z.to().line,W+=Ge-Sn,ut=Ge<Sn}function be(){var et=Le&&Xe(z.to()),at=z.findNext();return at&&!at[0]&&et&&ht(z.from(),et)&&(at=z.findNext()),at}function ke(){for(;be()&&br(z.from(),F,W);)if(!(!S&&z.from().line==Ge&&!ut)){y.scrollIntoView(z.from(),30),y.setSelection(z.from(),z.to()),Le=z.from(),Oe=!1;return}Oe=!0}function ve(et){if(et&&et(),y.focus(),Le){y.setCursor(Le);var at=y.state.vim;at.exMode=!1,at.lastHPos=at.lastHSPos=Le.ch}Z&&Z()}function we(et,at,Sn){Be.e_stop(et);var pt=H(et);switch(pt){case"y":ae(),ke();break;case"n":ke();break;case"a":var On=Z;Z=void 0,y.operation(re),Z=On;break;case"l":ae();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(Sn)}return Oe&&ve(Sn),!0}y.state.vim.exMode=!0;var Oe=!1,Le,Ge,ut;if(ke(),Oe){Dt(y,"No matches for "+q.source);return}if(!T){re(),Z&&Z();return}_r(y,{prefix:zr("span","replace with ",zr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function jr(y,T){var S=y.state.vim,F=Ve.macroModeState,W=Ve.registerController.getRegister("."),z=F.isPlaying,q=F.lastInsertModeChanges;z||(y.off("change",Do),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=null,Be.off(y.getInputField(),"keydown",qs)),!z&&S.insertModeRepeat>1&&(_a(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("")),Be.signal(y,"vim-mode-change",{mode:"normal"}),F.isRecording&&wr(F)}function as(y){zn.unshift(y)}function js(y,T,S,F,W){var z={keys:y,type:T};z[T]=S,z[T+"Args"]=F;for(var q in W)z[q]=W[q];as(z)}function Us(y,T,S,F){var W=Ve.registerController.getRegister(F);if(F==":"){W.keyBuffer[0]&&Dr.processCommand(y,W.keyBuffer[0]),S.isPlaying=!1;return}var z=W.keyBuffer,q=0;S.isPlaying=!0,S.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<z.length;Y++)for(var Z=z[Y],re,ae;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ae=re[0],Z=Z.substring(re.index+ae.length),wt.handleKey(y,ae,"macro"),T.insertMode){var be=W.insertModeChanges[q++].changes;Ve.macroModeState.lastInsertModeChanges.changes=be,ds(y,be,1),jr(y)}S.isPlaying=!1}function ls(y,T){if(!y.isPlaying){var S=y.latestRegister,F=Ve.registerController.getRegister(S);F&&F.pushText(T)}}function wr(y){if(!y.isPlaying){var T=y.latestRegister,S=Ve.registerController.getRegister(T);S&&S.pushInsertModeChanges&&S.pushInsertModeChanges(y.lastInsertModeChanges)}}function Vs(y,T){if(!y.isPlaying){var S=y.latestRegister,F=Ve.registerController.getRegister(S);F&&F.pushSearchQuery&&F.pushSearchQuery(T)}}function Do(y,T){var S=Ve.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 z=y.listSelections().length;z>1&&(F.ignoreCount=z);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 cs(y){var T=y.state.vim;if(T.insertMode){var S=Ve.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||us(y,T)}function us(y,T,S){var F=y.getCursor("anchor"),W=y.getCursor("head");if(T.visualMode&&!y.somethingSelected()?bn(y,!1):!T.visualMode&&!T.insertMode&&y.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,Be.signal(y,"vim-mode-change",{mode:"visual"})),T.visualMode){var z=st(W,F)?0:-1,q=st(W,F)?-1:0;W=me(W,0,z),F=me(F,0,q),T.sel={anchor:F,head:W},ti(y,T,"<",dt(W,F)),ti(y,T,">",
|
|
1406
|
-
`)},goLineLeft:function(y){y.ace.selection.moveCursorLineStart()},goLineRight:function(y){y.ace.selection.moveCursorLineEnd()}},Be.keyMap={},Be.addClass=Be.rmClass=function(){},Be.e_stop=Be.e_preventDefault=Po.stopEvent,Be.keyName=function(y){var T=yl[y.keyCode]||y.key||"";return T.length==1&&(T=T.toUpperCase()),T=Po.getModifierString(y).replace(/(^|-)\w/g,function(S){return S.toUpperCase()})+T,T},Be.keyMap.default=function(y){return function(T){var S=T.ace.commands.commandKeyBinding[y.toLowerCase()];return S&&T.ace.execCommand(S)!==!1}},Be.lookupKey=function y(T,S,F){S||(S="default"),typeof S=="string"&&(S=Be.keyMap[S]||Be.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 z=0;z<S.fallthrough.length;z++){var q=y(T,S.fallthrough[z],F);if(q)return q}}},Be.findMatchingTag=function(y,T){return y.findMatchingTag(T)},Be.findEnclosingTag=function(y,T){},Be.signal=function(y,T,S){return y._signal(T,S)},Be.on=Po.addListener,Be.off=Po.removeListener,Be.isWordChar=function(y){return y<""?/^\w$/.test(y):(Ta.lastIndex=0,Ta.test(y))},(function(){$a.implement(Be.prototype
|
|
1399
|
+
`+M)}l++}else if(c&&/\S/.test(w)&&i!=l){var _=m.getLine(i+1);if(_&&/\S/.test(_)){var k=w.replace(/\s+$/,""),C=_.replace(/^\s+/,""),L=k+" "+C,x=a(L,u,5);if(x&&x.start>k.length||L.length<u){var D=new b(i,k.length,i+1,_.length-C.length);m.replace(D," "),i--,l--}else k.length<w.length&&m.remove(new b(i,k.length,i,w.length))}}i++}}function g(f){if(f.command.name=="insertstring"&&/\S/.test(f.args)){var s=f.editor,a=s.selection.cursor;if(a.column<=s.renderer.$printMarginColumn)return;var u=s.session.$undoManager.$lastDelta;p(s,{startRow:a.row,endRow:a.row,allowMerge:!1}),u!=s.session.$undoManager.$lastDelta&&s.session.markUndoGroup()}}var b=t("../range").Range,h=t("../editor").Editor;t("../config").defineOptions(h.prototype,"editor",{hardWrap:{set:function(f){f?this.commands.on("afterExec",g):this.commands.off("afterExec",g)},value:!1}}),r.hardWrap=p}),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(t,r,d){function p(y){return{row:y.line,column:y.ch}}function g(y){return new Ne(y.row,y.column)}function b(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),Be.signal(y,"vim-mode-change",{mode:"normal"}),y.on("cursorActivity",cs),L(y),Be.on(y.getInputField(),"paste",s(y))}function f(y){y.setOption("disableInput",!1),y.off("cursorActivity",cs),Be.off(y.getInputField(),"paste",s(y)),y.state.vim=null,Er&&clearTimeout(Er)}function s(y){var T=y.state.vim;return T.onPasteFn||(T.onPasteFn=function(){T.insertMode||(y.setCursor(me(y.getCursor(),0,1)),Zn.enterInsertMode(y,{},T))}),T.onPasteFn}function a(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 Ea.test(y)}function l(y){return ln.test(y)}function m(y){return/^\s*$/.test(y)}function w(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 M(y,T,S,F,W){if(T===void 0&&!W)throw Error("defaultValue is required unless callback is provided");if(S||(S="string"),Kt[y]={type:S,defaultValue:T,callback:W},F)for(var z=0;z<F.length;z++)Kt[F[z]]=Kt[y];T&&_(y,T)}function _(y,T,S,F){var W=Kt[y];F=F||{};var z=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?(z!=="local"&&W.callback(T,void 0),z!=="global"&&S&&W.callback(T,S)):(z!=="local"&&(W.value=W.type=="boolean"?!!T:T),z!=="global"&&S&&(S.state.vim.options[y]={value:T}))}function k(y,T,S){var F=Kt[y];S=S||{};var W=S.scope;if(!F)return new Error("Unknown option: "+y);if(F.callback){var z=T&&F.callback(void 0,T);return W!=="global"&&z!==void 0?z:W!=="local"?F.callback():void 0}var z=W!=="global"&&T&&T.state.vim.options[y];return(z||W!=="local"&&F||{}).value}function C(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=Yn()}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(){Ve={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:qi(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),searchHistoryController:new Q,exCommandHistoryController:new Q};for(var y in Kt){var T=Kt[y];T.value=T.defaultValue}}function R(y){function T(Y){typeof Y=="string"?In.value=Y:In=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
|
+
`;else if(Ki[S]){var W=In.value,z={key:Ki[S],target:{value:W,selectionEnd:W.length,selectionStart:W.length}};In.onKeyDown&&In.onKeyDown(z,In.value,T),In&&In.onKeyUp&&In.onKeyUp(z,In.value,T);return}}if(y==`
|
|
1401
|
+
`){var q=In;In=null,q.onClose&&q.onClose(q.value)}else In.value=(In.value||"")+y}function I(y,T,S){var F=gn;if(S){if(ri.indexOf(S)!=-1)return;ri.push(S),gn=S.noremap!=0}try{for(var W=L(y),z=/<(?:[CSMA]-)*\w+>|./gi,q;q=z.exec(T);){var Y=q[0],Z=W.insertMode;if(In){R(Y);continue}var re=wt.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
|
+
`;else{if(Ki.hasOwnProperty(ae)){Y=Ki[ae],hs(y,Y);continue}Y=Y[0],z.lastIndex=q.index+1}}y.replaceSelection(Y)}}}finally{if(ri.pop(),gn=ri.length?F:!1,!ri.length&&In){var ke=In;In=null,_r(y,ke)}}}function H(y,T){var S=y.key;if(!ii[S]){S.length>1&&S[0]=="n"&&(S=S.replace("Numpad","")),S=ur[S]||S;var F="";if(y.ctrlKey&&(F+="C-"),y.altKey&&(F+="A-"),y.metaKey&&(F+="M-"),Be.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(or.keymap&&S in or.keymap)(or.remapCtrl!=0||!F)&&(S=or.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){or.string!==y&&(or=O(y)),or.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 z=T(W[1]),q=T(W[2]);if(z.length!==q.length)return;for(var Y=0;Y<z.length;++Y)S[z[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,Be.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=Ve.registerController.registers;if(!y||y.length!=1)throw Error("Register name must be 1 character");S[y]=T,an.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){Ci[y]=T}function he(y,T){for(var S=[],F=0;F<T;F++)S.push(y);return S}function ne(y,T){gs[y]=T}function le(y,T){Zn[y]=T}function se(y,T,S){var F=y.state.vim,W=F.insertMode||F.visualMode,z=Math.min(Math.max(y.firstLine(),T.line),y.lastLine()),q=y.getLine(z),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==z&&S.ch>Z&&(ae=-1),Z+=ae,Z>Y&&(Z-=2)}return new Ne(z,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,z=[],q=[],Y=gn?T.length-Ho: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"&&z.push(re),W=="full"&&q.push(re))}return{partial:z.length&&z,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),z=y.slice(0,W),q=T.slice(0,W);return z==q&&y.length>W?"full":q.indexOf(z)==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 Je(y,T,S){return function(){for(var F=0;F<S;F++)T(y)}}function Xe(y){return new Ne(y.line,y.ch)}function ht(y,T){return y.ch==T.ch&&y.line==T.line}function st(y,T){return y.line<T.line?!0:y.line==T.line&&y.ch<T.ch}function dt(y,T){return arguments.length>2&&(T=dt.apply(void 0,Array.prototype.slice.call(arguments,1))),st(y,T)?y:T}function Jt(y,T){return arguments.length>2&&(T=Jt.apply(void 0,Array.prototype.slice.call(arguments,1))),st(y,T)?T:y}function $n(y,T,S){var F=st(y,T),W=st(T,S);return F&&W}function Ht(y,T){return y.getLine(T).length}function kr(y){return y.trim?y.trim():y.replace(/^\s+|\s+$/g,"")}function fn(y){return y.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function Bn(y,T,S){var F=Ht(y,T),W=new Array(S-F+1).join(" ");y.setCursor(new Ne(T,F)),y.replaceRange(W,y.getCursor())}function ir(y,T){var S=[],F=y.listSelections(),W=Xe(y.clipPos(T)),z=!ht(T,W),q=y.getCursor("head"),Y=bt(F,q),Z=ht(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,Ge=Oe-we;Le>0&&Ge<=0?(we++,z||Oe--):Le<0&&Ge>=0?(we--,Z||Oe++):Le<0&&Ge==-1&&(we--,Oe++);for(var ut=ke;ut<=ve;ut++){var et={anchor:new Ne(ut,we),head:new Ne(ut,Oe)};S.push(et)}return y.setSelections(S),T.ch=Oe,be.ch=we,be}function Or(y,T,S){for(var F=[],W=0;W<S;W++){var z=me(T,W,0);F.push({anchor:z,head:z})}y.setSelections(F,0)}function bt(y,T,S){for(var F=0;F<y.length;F++){var W=ht(y[F].anchor,T),z=ht(y[F].head,T);if(W||z)return F}return-1}function qe(y,T){var S=T.lastSelection,F=function(){var z=y.listSelections(),q=z[0],Y=z[z.length-1],Z=st(q.anchor,q.head)?q.anchor:q.head,re=st(Y.anchor,Y.head)?Y.head:Y.anchor;return[Z,re]},W=function(){var z=y.getCursor(),q=y.getCursor(),Y=S.visualBlock;if(Y){var Z=Y.width,re=Y.height;q=new Ne(z.line+re,z.ch+Z);for(var ae=[],be=z.line;be<q.line;be++){var ke=new Ne(be,z.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(),Ge=Le.line-Oe.line,ut=Le.ch-Oe.ch;q={line:q.line+Ge,ch:Ge?q.ch:ut+q.ch},S.visualLine&&(z=new Ne(z.line,0),q=new Ne(q.line,Ht(y,q.line))),y.setSelection(z,q)}return[z,q]};return T.visualMode?F():W()}function Nt(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:Xe(S),head:Xe(F),visualMode:T.visualMode,visualLine:T.visualLine,visualBlock:T.visualBlock}}function Vt(y,T,S,F){var W=y.state.vim.sel,z=F?T:W.head,q=F?T:W.anchor,Y;return st(S,T)&&(Y=S,S=T,T=Y),st(z,q)?(z=dt(T,z),q=Jt(q,S)):(q=dt(T,q),z=Jt(z,S),z=me(z,0,-1),z.ch==-1&&z.line!=y.firstLine()&&(z=new Ne(z.line-1,Ht(y,z.line-1)))),[q,z]}function Ln(y,T,W){var F=y.state.vim;T=T||F.sel;var W=W||F.visualLine?"line":F.visualBlock?"block":"char",z=Ar(y,T,W);y.setSelections(z.ranges,z.primary)}function Ar(y,T,S,F){var W=Xe(T.head),z=Xe(T.anchor);if(S=="char"){var q=!F&&!st(T.head,T.anchor)?1:0,Y=st(T.head,T.anchor)?1:0;return W=me(T.head,0,q),z=me(T.anchor,0,Y),{ranges:[{anchor:z,head:W}],primary:0}}if(S=="line"){if(st(T.head,T.anchor))W.ch=0,z.ch=Ht(y,z.line);else{z.ch=0;var Z=y.lastLine();W.line>Z&&(W.line=Z),W.ch=Ht(y,W.line)}return{ranges:[{anchor:z,head:W}],primary:0}}if(S=="block"){var re=Math.min(z.line,W.line),ae=z.ch,be=Math.max(z.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 vr(y){var T=y.getCursor("head");return y.getSelection().length==1&&(T=dt(T,y.getCursor("anchor"))),T}function bn(y,T){var S=y.state.vim;T!==!1&&y.setCursor(se(y,S.sel.head)),Nt(y,S),S.visualMode=!1,S.visualLine=!1,S.visualBlock=!1,S.insertMode||Be.signal(y,"vim-mode-change",{mode:"normal"})}function qn(y,T,S){var F=y.getRange(T,S);if(/\n\s*$/.test(F)){var W=F.split(`
|
|
1404
|
+
`);W.pop();for(var z,z=W.pop();W.length>0&&z&&m(z);z=W.pop())S.line--,S.ch=0;z?(S.line--,S.ch=Ht(y,S.line)):S.ch=0}}function Hn(y,T,S){T.ch=0,S.ch=0,S.line++}function Zt(y){if(!y)return 0;var T=y.search(/\S/);return T==-1?y.length:T}function dn(y,T,S){var F=T.inclusive,W=T.innerWord,z=T.bigWord,q=T.noSymbol,Y=T.multiline,Z=S||vr(y),re=y.getLine(Z.line),ae=re,be=Z.line,ke=be,ve=Z.ch,we,Oe=q?zo[0]:Vi[0];if(W&&/\s/.test(re.charAt(ve)))Oe=function(Sn){return/\s/.test(Sn)};else{for(;!Oe(re.charAt(ve));)if(ve++,ve>=re.length){if(!Y)return null;ve--,we=gi(y,Z,!0,z,!0);break}z?Oe=Vi[0]:(Oe=zo[0],Oe(re.charAt(ve))||(Oe=zo[1]))}for(var Le=ve,Ge=ve;Oe(re.charAt(Ge))&&Ge>=0;)Ge--;if(Ge++,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 ut=Le,et=Z.ch<=Ge&&/\s/.test(re.charAt(Z.ch));if(!et)for(;/\s/.test(ae.charAt(Le))&&Le<ae.length;)Le++;if(ut==Le||et){for(var at=Ge;/\s/.test(re.charAt(Ge-1))&&Ge>0;)Ge--;!Ge&&!et&&(Ge=at)}}return{start:new Ne(be,Ge),end:new Ne(ke,Le)}}function Hr(y,T,S){var F=T;if(!Be.findMatchingTag||!Be.findEnclosingTag)return{start:F,end:F};var W=Be.findMatchingTag(y,T)||Be.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 Jr(y,T,S){ht(T,S)||Ve.jumpList.add(y,T,S)}function ei(y,T){Ve.lastCharacterSearch.increment=y,Ve.lastCharacterSearch.forward=T.forward,Ve.lastCharacterSearch.selectedCharacter=T.selectedCharacter}function Ii(y,T,S,F){var W=Xe(y.getCursor()),z=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=Li[F];if(!be)return W;var ke=Oi[be].init,ve=Oi[be].isComplete;for(ke&&ke(ae);Z!==q&&T;){if(ae.index+=z,ae.nextCh=ae.lineText.charAt(ae.index),!ae.nextCh){if(Z+=z,ae.lineText=y.getLine(Z)||"",z>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 gi(y,T,S,F,W){var z=T.line,q=T.ch,Y=y.getLine(z),Z=S?1:-1,re=F?Vi:zo;if(W&&Y==""){if(z+=Z,Y=y.getLine(z),!a(y,z))return null;q=S?0:Y.length}for(;;){if(W&&Y=="")return{from:0,to:0,line:z};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&&z==T.line&&ke==be+Z)continue;return{from:Math.min(be,ke+1),to:Math.max(be,ke),line:z}}ve||(q+=Z)}if(z+=Z,!a(y,z))return null;Y=y.getLine(z),q=Z>0?0:Y.length}}function Kn(y,T,S,F,W,z){var q=Xe(T),Y=[];(F&&!W||!F&&W)&&S++;for(var Z=!F||!W,re=0;re<S;re++){var ae=gi(y,T,F,z,Z);if(!ae){var be=Ht(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 co(y,T,S,F,W){var z=T,q=new Ne(z.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 mi(y,T,S,F,W){for(var z=W||y.getCursor(),q=z.ch,Y,Z=0;Z<T;Z++){var re=y.getLine(z.line);if(Y=Tn(q,re,F,S),Y==-1)return null;q=Y}return new Ne(y.getCursor().line,Y)}function zs(y,T){var S=y.getCursor().line;return se(y,new Ne(S,T-1))}function ti(y,T,S,F){!x(S,Mo)&&!nn.test(S)||(T.marks[S]&&T.marks[S].clear(),T.marks[S]=y.setBookmark(F))}function Tn(y,T,S,F,W){var z;return F?(z=T.indexOf(S,y+1),z!=-1):(z=T.lastIndexOf(S,y-1),z!=-1),z}function vi(y,T,S,F,W){function z(Ge){return!/\S/.test(y.getLine(Ge))}function q(Ge,ut,et){return et?z(Ge)!=z(Ge+ut):!z(Ge)&&z(Ge+ut)}function Y(Ge){F=F>0?1:-1;var ut=y.ace.session.getFoldLine(Ge);ut&&Ge+F>ut.start.row&&Ge+F<ut.end.row&&(F=(F>0?ut.end.row:ut.start.row)-Ge)}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=z(Z);for(ve=Z;ve<=ae&&S;ve++)q(ve,1,!0)&&(!W||z(ve)!=Le)&&S--;for(ke=new Ne(ve,0),ve>ae&&!Le?Le=!0:W=!1,ve=Z;ve>re&&!((!W||z(ve)==Le||ve==Z)&&q(ve,-1,!0));ve--);return be=new Ne(ve,0),{start:be,end:ke}}function os(y,T,S,F,W){function z(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(z(we);we.line!==null;){if(Oe=we.pos,w(we.line[we.pos])){if(!W)return{ln:we.ln,pos:we.pos+1};for(z(we);we.line!==null&&m(we.line[we.pos]);)Oe=we.pos,z(we);return{ln:we.ln,pos:Oe+1}}z(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(z(we);we.line!==null;){if(!m(we.line[we.pos])&&!w(we.line[we.pos]))Oe=we.pos;else if(w(we.line[we.pos]))return W?m(we.line[we.pos+1])?{ln:we.ln,pos:we.pos+1}:{ln:we.ln,pos:Oe}:{ln:we.ln,pos:Oe};z(we)}return we.line=ve,W&&m(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 yi(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,!a(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 z(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!==""&&!m(ve.line[ve.pos]))return{ln:ve.ln,pos:ve.pos};w(ve.line[ve.pos])&&!ke&&(ve.pos===ve.line.length-1||m(ve.line[ve.pos+1]))&&(ke=!0),W(Z,ve)}var Le=Z.getLine(we.ln);we.pos=0;for(var Ge=Le.length-1;Ge>=0;--Ge)if(!m(Le[Ge])){we.pos=Ge;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(!(!w(ke.line[ke.pos])||ve.pos===null||ke.ln===ve.ln&&ke.pos+1===ve.pos))return ve;ke.line!==""&&!m(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(!m(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=z(y,Y.ln,Y.pos,F),S--;return new Ne(Y.ln,Y.pos)}function Mn(y,T,S,F){var W=T,z,q,Y={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[S],Z={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[S],re=y.getLine(W.line).charAt(W.ch),ae=re===Z?1:0;if(z=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}),!z||!q)return null;if(z=z.pos,q=q.pos,z.line==q.line&&z.ch>q.ch||z.line>q.line){var be=z;z=q,q=be}return F?q.ch+=1:z.ch+=1,{start:z,end:q}}function yr(y,T,S,F){var W=Xe(T),z=y.getLine(W.line),q=z.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 bi(){}function En(y){var T=y.state.vim;return T.searchState_||(T.searchState_=new bi)}function On(y){return wi(y,"/")}function Sr(y){return Ao(y,"/")}function wi(y,T){var S=Ao(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 Ao(y,T){T||(T="/");for(var S=!1,F=[],W=0;W<y.length;W++){var z=y.charAt(W);!S&&z==T&&F.push(W),S=!S&&z=="\\"}return F}function So(y){for(var T="|(){",S="}",F=!1,W=[],z=-1;z<y.length;z++){var q=y.charAt(z)||"",Y=y.charAt(z+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 ss(y){for(var T=!1,S=[],F=-1;F<y.length;F++){var W=y.charAt(F)||"",z=y.charAt(F+1)||"";Gi[W+z]?(S.push(Gi[W+z]),F++):T?(S.push(W),T=!1):W==="\\"?(T=!0,i(z)||z==="$"?S.push("$"):z!=="/"&&z!=="\\"&&S.push("\\")):(W==="$"&&S.push("$"),S.push(W),z==="/"&&S.push("\\"))}return S.join("")}function ni(y){for(var T=new Be.StringStream(y),S=[];!T.eol();){for(;T.peek()&&T.peek()!="\\";)S.push(T.next());var F=!1;for(var W in Mr)if(T.match(W,!0)){F=!0,S.push(Mr[W]);break}F||S.push(T.next())}return S.join("")}function xi(y,T,S){var F=Ve.registerController.getRegister("/");if(F.setText(y),y instanceof RegExp)return y;var W=Sr(y),z,q;if(!W.length)z=y;else{z=y.substring(0,W[0]);var Y=y.substring(W[0]);q=Y.indexOf("i")!=-1}if(!z)return null;k("pcre")||(z=So(z)),S&&(T=/^[^A-Z]*$/.test(z));var Z=new RegExp(z,T||q?"im":"m");return Z}function zr(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 Dt(y,T){var S=zr("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},T);y.openNotification?y.openNotification(S,{bottom:!0,duration:5e3}):alert(S.innerText)}function No(y,T){return zr("div",{$display:"flex"},zr("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1},y,zr("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$width:"100%"})),T&&zr("span",{$color:"#888"},T))}function _r(y,T){if(ri.length){T.value||(T.value=""),In=T;return}var S=No(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=En(y),z=xi(T,!!S,!!F);if(z)return Tt(y,z),ce(z,W.getQuery())||W.setQuery(z),z}}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 Tt(y,T){clearTimeout(Er);var S=En(y);S.highlightTimeout=Er,Er=setTimeout(function(){if(y.state.vim){var F=En(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 Qt(y,T,S,F){return F===void 0&&(F=1),y.operation(function(){for(var W=y.getCursor(),z=y.getSearchCursor(S,W),q=0;q<F;q++){var Y=z.find(T);if(q==0&&Y&&ht(z.from(),W)){var Z=T?z.from():z.to();Y=z.find(T),Y&&!Y[0]&&ht(z.from(),Z)&&y.getLine(Z.line).length==Z.ch&&(Y=z.find(T))}if(!Y&&(z=y.getSearchCursor(S,T?new Ne(y.lastLine()):new Ne(y.firstLine(),0)),!z.find(T)))return}return z.from()})}function qt(y,T,S,F,W){return F===void 0&&(F=1),y.operation(function(){var z=y.getCursor(),q=y.getSearchCursor(S,z),Y=q.find(!T);!W.visualMode&&Y&&ht(q.from(),z)&&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 $r(y){var T=En(y);T.highlightTimeout&&(clearTimeout(T.highlightTimeout),T.highlightTimeout=null),y.removeOverlay(En(y).getOverlay()),T.setOverlay(null),T.getScrollbarAnnotate()&&(T.getScrollbarAnnotate().clear(),T.setScrollbarAnnotate(null))}function br(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 Gn(y){var T=y.ace.renderer;return{top:T.getFirstFullyVisibleRow(),bottom:T.getLastFullyVisibleRow()}}function Tr(y,T,S){if(S=="'"||S=="`")return Ve.jumpList.find(y,-1)||new Ne(0,0);if(S==".")return wn(y);var F=T.marks[S];return F&&F.find()}function wn(y){if(y.getLastEditEnd)return y.getLastEditEnd();for(var T=y.doc.history.done,S=T.length;S--;)if(T[S].changes)return Xe(T[S].changes[0].to)}function uo(y,T,S,F,W,z,q,Y,Z){function re(){y.operation(function(){for(;!Oe;)ae(),ke();ve()})}function ae(){var et=y.getRange(z.from(),z.to()),at=et.replace(q,Y),Sn=z.to().line;z.replace(at),Ge=z.to().line,W+=Ge-Sn,ut=Ge<Sn}function be(){var et=Le&&Xe(z.to()),at=z.findNext();return at&&!at[0]&&et&&ht(z.from(),et)&&(at=z.findNext()),at}function ke(){for(;be()&&br(z.from(),F,W);)if(!(!S&&z.from().line==Ge&&!ut)){y.scrollIntoView(z.from(),30),y.setSelection(z.from(),z.to()),Le=z.from(),Oe=!1;return}Oe=!0}function ve(et){if(et&&et(),y.focus(),Le){y.setCursor(Le);var at=y.state.vim;at.exMode=!1,at.lastHPos=at.lastHSPos=Le.ch}Z&&Z()}function we(et,at,Sn){Be.e_stop(et);var pt=H(et);switch(pt){case"y":ae(),ke();break;case"n":ke();break;case"a":var Nn=Z;Z=void 0,y.operation(re),Z=Nn;break;case"l":ae();case"q":case"<Esc>":case"<C-c>":case"<C-[>":ve(Sn)}return Oe&&ve(Sn),!0}y.state.vim.exMode=!0;var Oe=!1,Le,Ge,ut;if(ke(),Oe){Dt(y,"No matches for "+q.source);return}if(!T){re(),Z&&Z();return}_r(y,{prefix:zr("span","replace with ",zr("strong",Y)," (y/n/a/q/l)"),onKeyDown:we})}function jr(y,T){var S=y.state.vim,F=Ve.macroModeState,W=Ve.registerController.getRegister("."),z=F.isPlaying,q=F.lastInsertModeChanges;z||(y.off("change",Do),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=null,Be.off(y.getInputField(),"keydown",qs)),!z&&S.insertModeRepeat>1&&(_a(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("")),Be.signal(y,"vim-mode-change",{mode:"normal"}),F.isRecording&&wr(F)}function as(y){zn.unshift(y)}function js(y,T,S,F,W){var z={keys:y,type:T};z[T]=S,z[T+"Args"]=F;for(var q in W)z[q]=W[q];as(z)}function Us(y,T,S,F){var W=Ve.registerController.getRegister(F);if(F==":"){W.keyBuffer[0]&&Dr.processCommand(y,W.keyBuffer[0]),S.isPlaying=!1;return}var z=W.keyBuffer,q=0;S.isPlaying=!0,S.replaySearchQueries=W.searchQueries.slice(0);for(var Y=0;Y<z.length;Y++)for(var Z=z[Y],re,ae;Z;)if(re=/<\w+-.+?>|<\w+>|./.exec(Z),ae=re[0],Z=Z.substring(re.index+ae.length),wt.handleKey(y,ae,"macro"),T.insertMode){var be=W.insertModeChanges[q++].changes;Ve.macroModeState.lastInsertModeChanges.changes=be,ds(y,be,1),jr(y)}S.isPlaying=!1}function ls(y,T){if(!y.isPlaying){var S=y.latestRegister,F=Ve.registerController.getRegister(S);F&&F.pushText(T)}}function wr(y){if(!y.isPlaying){var T=y.latestRegister,S=Ve.registerController.getRegister(T);S&&S.pushInsertModeChanges&&S.pushInsertModeChanges(y.lastInsertModeChanges)}}function Vs(y,T){if(!y.isPlaying){var S=y.latestRegister,F=Ve.registerController.getRegister(S);F&&F.pushSearchQuery&&F.pushSearchQuery(T)}}function Do(y,T){var S=Ve.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 z=y.listSelections().length;z>1&&(F.ignoreCount=z);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 cs(y){var T=y.state.vim;if(T.insertMode){var S=Ve.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||us(y,T)}function us(y,T,S){var F=y.getCursor("anchor"),W=y.getCursor("head");if(T.visualMode&&!y.somethingSelected()?bn(y,!1):!T.visualMode&&!T.insertMode&&y.somethingSelected()&&(T.visualMode=!0,T.visualLine=!1,Be.signal(y,"vim-mode-change",{mode:"visual"})),T.visualMode){var z=st(W,F)?0:-1,q=st(W,F)?-1:0;W=me(W,0,z),F=me(F,0,q),T.sel={anchor:F,head:W},ti(y,T,"<",dt(W,F)),ti(y,T,">",Jt(W,F))}else!T.insertMode&&!S&&(T.lastHPos=y.getCursor().ch)}function _o(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 qs(y){var T=Ve.macroModeState,S=T.lastInsertModeChanges,F=Be.keyName?Be.keyName(y):y.key;F&&(F.indexOf("Delete")!=-1||F.indexOf("Backspace")!=-1)&&(S.maybeReset&&(S.changes=[],S.maybeReset=!1),S.changes.push(new _o(F,y)))}function _a(y,T,S,F){function W(){Y?Xn.processAction(y,T,T.lastEditActionCommand):Xn.evalInput(y,T)}function z(ae){if(q.lastInsertModeChanges.changes.length>0){ae=T.lastEditActionCommand?ae:1;var be=q.lastInsertModeChanges;ds(y,be.changes,ae)}}var q=Ve.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(),z(1);else F||W(),z(S);T.inputState=Z,T.insertMode&&!F&&jr(y),q.isPlaying=!1}function hs(y,T){Be.lookupKey(T,"vim-insert",function(S){return typeof S=="string"?Be.commands[S](y):S(y),!0})}function ds(y,T,S){var F=y.getCursor("head"),W=Ve.macroModeState.lastInsertModeChanges.visualBlock;W&&(Or(y,F,W+1),S=y.listSelections().length,y.setCursor(F));for(var z=0;z<S;z++){W&&y.setCursor(me(F,z,0));for(var q=0;q<T.length;q++){var Y=T[q];if(Y instanceof _o)hs(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 Ks(y,T,S,F){T.length>1&&T[0]=="n"&&(T=T.replace("numpad","")),T=Ur[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(or.keymap&&T in or.keymap)(or.remapCtrl!==!1||!W)&&(T=or.keymap[T]);else if(T.charCodeAt(0)>255){var z=S.code&&S.code.slice(-1)||"";S.shiftKey||(z=z.toLowerCase()),z&&(T=z)}}return W+=T,W.length>1&&(W="<"+W+">"),W}function ps(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=ps(F)),T[S]=F}}),y.sel&&(T.sel={head:y.sel.head&&Xe(y.sel.head),anchor:y.sel.anchor&&Xe(y.sel.anchor)}),T}function Fo(y,T,S){var F=!1,W=wt.maybeInitVimState_(y),z=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(z||!q||y.ace.inVirtualSelectionMode)F=wt.handleKey(y,T,S);else{var Y=ps(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=st(be,ke)?0:-1,we=st(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=Ni(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=ps(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()&&us(y,W,!0),F}function Ui(y,T){T.off("beforeEndOperation",Ui);var S=T.state.cm.vimCmd;S&&T.execCommand(S.exec?S:S.name,S.args),T.curOp=T.prevOp}var xr=t("../range").Range,$o=t("../lib/event_emitter").EventEmitter,ho=t("../lib/dom"),$a=t("../lib/oop"),yl=t("../lib/keys"),Po=t("../lib/event"),po=t("../search").Search,Wo=t("../lib/useragent"),fs=t("../search_highlight").SearchHighlight,Bo=t("../commands/multi_select_commands"),Ta=t("../mode/text").Mode.prototype.tokenRe,To=t("../ext/hardwrap").hardWrap;t("../multi_select");var Be=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)};Be.Pos=function(y,T){if(!(this instanceof Ne))return new Ne(y,T);this.line=y,this.ch=T},Be.defineOption=function(y,T,S){},Be.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()}},Be.keyMap={},Be.addClass=Be.rmClass=function(){},Be.e_stop=Be.e_preventDefault=Po.stopEvent,Be.keyName=function(y){var T=yl[y.keyCode]||y.key||"";return T.length==1&&(T=T.toUpperCase()),T=Po.getModifierString(y).replace(/(^|-)\w/g,function(S){return S.toUpperCase()})+T,T},Be.keyMap.default=function(y){return function(T){var S=T.ace.commands.commandKeyBinding[y.toLowerCase()];return S&&T.ace.execCommand(S)!==!1}},Be.lookupKey=function y(T,S,F){S||(S="default"),typeof S=="string"&&(S=Be.keyMap[S]||Be.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 z=0;z<S.fallthrough.length;z++){var q=y(T,S.fallthrough[z],F);if(q)return q}}},Be.findMatchingTag=function(y,T){return y.findMatchingTag(T)},Be.findEnclosingTag=function(y,T){},Be.signal=function(y,T,S){return y._signal(T,S)},Be.on=Po.addListener,Be.off=Po.removeListener,Be.isWordChar=function(y){return y<""?/^\w$/.test(y):(Ta.lastIndex=0,Ta.test(y))},(function(){$a.implement(Be.prototype,$o),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(Bo.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 z=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(),!z.cursorActivity&&!z.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 z=W?W[S+"Handlers"]:(this._eventRegistry||{})[S];if(z){z=z.slice();for(var q=0;q<z.length;q++)z[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 g(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(g(W.cursor==W.end?W.start:W.end)),head:this.clipPos(g(W.cursor))}},this)},this.setSelections=function(S,F){var W=this.ace.multiSelect,z=S.map(function(re){var ae=p(re.anchor),be=p(re.head),ke=xr.comparePoints(ae,be)<0?new xr.fromPoints(ae,be):new xr.fromPoints(be,ae);return ke.cursor=xr.comparePoints(ke.start,be)?ke.end:ke.start,ke});if(this.ace.inVirtualSelectionMode){this.ace.selection.fromOrientedRange(z[0]);return}F?z[F]&&z.push(z.splice(F,1)[0]):z=z.reverse(),W.toSingleRange(z[0].clone());for(var q=this.ace.session,Y=0;Y<z.length;Y++){var Z=q.$clipRangeToDocument(z[Y]);W.addRange(Z)}},this.setSelection=function(S,F,W){var z=this.ace.selection;z.moveTo(S.line,S.ch),z.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 g(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,z=S.end,q=(z.row-W.row)*(F?1:-1),Y=(z.column-W.column)*(F?1:-1);F&&(z=W);for(var Z in this.marks){var re=this.marks[Z],ae=xr.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:xr.comparePoints(re,z);if(be>0){re.row+=q,re.column+=re.row==z.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,z){this.cm=S,this.id=F,this.row=W,this.column=z,S.marks[this.id]=this};y.prototype.clear=function(){delete this.cm.marks[this.id]},y.prototype.find=function(){return g(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,z){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);z!=null&&(Z.column=z),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 g(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 z=this.ace.renderer,W=this.ace.session.documentToScreenPosition(S.line,S.ch),q=z.layerConfig.lineHeight,Y=z.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 z=Math.max(0,Math.floor(S.top/W.lineHeight)),q=Math.max(0,Math.floor(S.left/W.characterWidth)),Y=W.session.screenToDocumentPosition(z,q);return g(Y)}if(F=="div")throw"not implemented"},this.getSearchCursor=function(S,F,W){var z=!1,q=!1;S instanceof RegExp&&!S.global&&(z=!S.ignoreCase,S=S.source,q=!0),S=="\\n"&&(S=`
|
|
1407
1407
|
`,q=!1);var Y=new po;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:z,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&&g(ae.start)},to:function(){return ae&&g(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,z=W.layerConfig,q=z.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,z.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(S,F){if(S){var W=this.ace.renderer,z={top:0,bottom:F};W.scrollCursorIntoView(p(S),W.lineHeight*2/W.$size.scrollerHeight,z)}},this.getLine=function(S){return this.ace.session.getLine(S)},this.getRange=function(S,F){return this.ace.session.getTextRange(new xr(S.line,S.ch,F.line,F.ch))},this.replaceRange=function(S,F,W){W||(W=F);var z=new xr(F.line,F.ch,W.line,W.ch);return this.ace.session.$clipRangeToDocument(z),this.ace.session.replace(z,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 z=W.rangeList.ranges;z.length||(z=[this.ace.multiSelect.getRange()]);for(var q=z.length;q--;)this.ace.session.replace(z[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 fs(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 z=new RegExp(S.query.source,"gmi");this.$searchHighlight=S.highlight=F,this.$searchHighlight.setRegexp(z),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(p(S));return{to:F&&g(F)}},this.findMatchingTag=function(S){var F=this.ace.session.getMatchingTags(p(S));if(F)return{open:{from:g(F.openTag.start),to:g(F.openTag.end)},close:{from:g(F.closeTag.start),to:g(F.closeTag.end)}}},this.indentLine=function(S,F){F===!0?this.ace.session.indentRows(S,S," "):F===!1&&this.ace.session.outdentRows(new xr(S,0,S,0))},this.indexFromPos=function(S){return this.ace.session.doc.positionToIndex(p(S))},this.posFromIndex=function(S){return g(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,z){var q=z.bracketRegex.source,Y=/paren|text|operator|tag/;if(F==1)var Z=this.ace.session.$findClosingBracket(q.slice(1,2),p(S),Y);else{var Z=this.ace.session.$findOpeningBracket(q.slice(-2,-1),{row:S.line,column:S.ch+1},Y);!Z&&z.bracketRegex&&z.bracketRegex.test(this.getLine(S.line)[S.ch-1])&&(Z={row:S.line,column:S.ch-1})}return Z&&{pos:g(Z)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(S){if(Be.commands.hasOwnProperty(S))return Be.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,z=0;z<F.length;z++){var q=F[z];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 g(S.$lastDelta.end)}}).call(Be.prototype);var Ma=Be.StringStream=function(y,T){this.pos=this.start=0,this.string=y,this.tabSize=T||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Ma.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},z=this.string.substr(this.pos,y.length);if(W(z)==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}}},Be.defineExtension=function(y,T){Be.prototype[y]=T},ho.importCssString(`.normal-mode .ace_cursor{
|
|
1408
1408
|
border: none;
|
|
1409
1409
|
background-color: rgba(255,0,0,0.5);
|
|
@@ -1437,44 +1437,44 @@ System.register(["vue","vue-router","single-spa","vuex","vuetify"],function(pr,n
|
|
|
1437
1437
|
width: 20em;
|
|
1438
1438
|
color: inherit;
|
|
1439
1439
|
font-family: monospace;
|
|
1440
|
-
}`,"vimMode",!1),function(){function y(S,F,W){var z=S.ace.container,q;return q=z.appendChild(document.createElement("div")),W?q.className="ace_dialog ace_dialog-bottom":q.className="ace_dialog ace_dialog-top",typeof F=="string"?q.innerHTML=F:q.appendChild(F),q}function T(S,F){S.state.currentNotificationClose&&S.state.currentNotificationClose(),S.state.currentNotificationClose=F}Be.defineExtension("openDialog",function(S,F,W){function z(be){if(typeof be=="string")re.value=be;else{if(Y||be&&be.type=="blur"&&document.activeElement===re)return;Z.state.dialog==q&&(Z.state.dialog=null,Z.focus()),Y=!0,q.remove(),W.onClose&&W.onClose(q);var ke=Z;ke.state.vim&&(ke.state.vim.status=null,ke.ace._signal("changeStatus"),ke.ace.renderer.$loop.schedule(ke.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),T(this,null);var q=y(this,S,W.bottom),Y=!1,Z=this;this.state.dialog=q;var re=q.getElementsByTagName("input")[0],ae;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&Be.on(re,"input",function(be){W.onInput(be,re.value,z)}),W.onKeyUp&&Be.on(re,"keyup",function(be){W.onKeyUp(be,re.value,z)}),Be.on(re,"keydown",function(be){W&&W.onKeyDown&&W.onKeyDown(be,re.value,z)||(be.keyCode==13&&F(re.value),(be.keyCode==27||W.closeOnEnter!==!1&&be.keyCode==13)&&(Be.e_stop(be),z()))}),W.closeOnBlur!==!1&&Be.on(re,"blur",z),re.focus()):(ae=q.getElementsByTagName("button")[0])&&(Be.on(ae,"click",function(){z(),Z.focus()}),W.closeOnBlur!==!1&&Be.on(ae,"blur",z),ae.focus()),z}}),Be.defineExtension("openNotification",function(S,F){function W(){q||(q=!0,clearTimeout(Y),z.remove())}if(!this.virtualSelectionMode()){T(this,W);var z=y(this,S,F&&F.bottom),q=!1,Y,Z=F&&typeof F.duration<"u"?F.duration:5e3;return Be.on(z,"click",function(re){Be.e_preventDefault(re),W()}),Z&&(Y=setTimeout(W,Z)),W}})}();var Ne=Be.Pos,zn=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Ho=zn.length,Ri=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],or=O(""),Ea=/[\d]/,zo=[Be.isWordChar,function(y){return y&&!Be.isWordChar(y)&&!/\s/.test(y)}],Vi=[function(y){return/\S/.test(y)}],To=["<",">"],an=["-",'"',".",":","_","/","+"],nn=/^\w$/,ln;try{ln=new RegExp("^[\\p{Lu}]$","u")}catch{ln=/^[A-Z]$/}var qt={};M("filetype",void 0,"string",["ft"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("mode");return S=="null"?"":S}var S=y==""?"null":y;T.setOption("mode",S)}}),M("textwidth",80,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("textwidth");return S}var F=Math.round(y);F>1&&T.setOption("textwidth",F)}});var qi=function(){function y(Z,re,ae){function be(Oe){var Le=++W%F,Ge=Y[Le];Ge&&Ge.clear(),Y[Le]=Z.setBookmark(Oe)}var ke=W%F,ve=Y[ke];if(ve){var we=ve.find();we&&!ht(we,re)&&be(re)}else be(re);be(ae),z=W,q=W-F+1,q<0&&(q=0)}function T(Z,re){W+=re,W>z?W=z:W<q&&(W=q);var ae=Y[(F+W)%F];if(ae&&!ae.find()){var be=re>0?1:-1,ke,ve=Z.getCursor();do if(W+=be,ae=Y[(F+W)%F],ae&&(ke=ae.find())&&!ht(ve,ke))break;while(W<z&&W>q)}return ae}function S(Z,re){var ae=W,be=T(Z,re);return W=ae,be&&be.find()}var F=100,W=-1,z=0,q=0,Y=new Array(F);return{cachedCursor:void 0,add:y,find:S,move:T}},Yn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=Ve.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,T){var S=Ve.registerController.getRegister(T);if(S){if(S.clear(),this.latestRegister=T,y.openDialog){var F=zr("span",{class:"cm-vim-message"},"recording @"+T);this.onRecordingDone=y.openDialog(F,null,{bottom:!0})}this.isRecording=!0}}};var Ve,An,wt={enterVimMode:h,leaveVimMode:f,buildKeyMap:function(){},getRegisterController:function(){return Ve.registerController},resetVimGlobalState_:D,getVimGlobalState_:function(){return Ve},maybeInitVimState_:L,suppressErrorLogging:!1,InsertModeKey:So,map:function(y,T,S){Dr.map(y,T,S)},unmap:function(y,T){return Dr.unmap(y,T)},noremap:function(y,T,S){Dr.map(y,T,S,!0)},mapclear:function(y){var T=zn.length,S=Ho,F=zn.slice(0,T-S);if(zn=zn.slice(T-S),y)for(var W=F.length-1;W>=0;W--){var z=F[W];if(y!==z.context)if(z.context)this._mapCommand(z);else{var q=["normal","insert","visual"];for(var Y in q)if(q[Y]!==y){var Z={};for(var re in z)Z[re]=z[re];Z.context=q[Y],this._mapCommand(Z)}}}},langmap:P,vimKeyFromEvent:H,setOption:_,getOption:k,defineOption:M,defineEx:function(y,T,S){if(!T)T=y;else if(y.indexOf(T)!==0)throw new Error('(Vim.defineEx) "'+T+'" is not a prefix of "'+y+'", command not registered');Gs[y]=S,Dr.commandMap_[T]={name:y,shortName:T,type:"api"}},handleKey:function(y,T,S){var F=this.findKey(y,T,S);if(typeof F=="function")return F()},multiSelectHandleKey:Fo,findKey:function(y,T,S){function F(){var re=Ve.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(y),!0;S!="mapping"&&ls(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)bn(y);else{if(!Y.insertMode)return;jr(y)}return A(y),!0}}function z(){if(W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join(""),ae=T.length==1,be=Xn.matchCommand(re,zn,Y.inputState,"insert"),ke=Y.inputState.changeQueue;if(be.type=="none")return A(y),!1;if(be.type=="partial"){if(be.expectLiteralNext&&(Y.expectLiteralNext=!0),An&&window.clearTimeout(An),An=ae&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&A(y)},k("insertModeEscKeysTimeout")),ae){var ve=y.listSelections();(!ke||ke.removed.length!=ve.length)&&(ke=Y.inputState.changeQueue=new N),ke.inserted+=T;for(var we=0;we<ve.length;we++){var Oe=dt(ve[we].anchor,ve[we].head),Le=Qt(ve[we].anchor,ve[we].head),Ge=y.getRange(Oe,y.state.overwrite?me(Le,0,1):Le);ke.removed[we]=(ke.removed[we]||"")+Ge}}return!ae}if(Y.expectLiteralNext=!1,An&&window.clearTimeout(An),be.command&&ke){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var ut=ve[we].head;y.replaceRange(ke.removed[we]||"",me(ut,0,-ke.inserted.length),ut,"+input")}Ve.macroModeState.lastInsertModeChanges.changes.pop()}return be.command||A(y),be.command}function q(){if(F()||W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var ae=/^(\d*)(.*)$/.exec(re);if(!ae)return A(y),!1;var be=Y.visualMode?"visual":"normal",ke=ae[2]||ae[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==ke&&(ke=Y.inputState.operatorShortcut);var ve=Xn.matchCommand(ke,zn,Y.inputState,be);return ve.type=="none"?(A(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(A(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,ae=/^(\d*)(.*)$/.exec(re),ae[1]&&ae[1]!="0"&&Y.inputState.pushRepeatDigit(ae[1]),ve.command)}var Y=L(y),Z;return Y.insertMode?Z=z():Z=q(),Z===!1?!Y.insertMode&&T.length===1?function(){return!0}:void 0:Z===!0?function(){return!0}:function(){if(!((Z.operator||Z.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{Z.type=="keyToKey"?I(y,Z.toKeys,Z):Xn.processCommand(y,Y,Z)}catch(re){throw y.state.vim=void 0,L(y),wt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,T){Dr.processCommand(y,T)},defineMotion:J,defineAction:le,defineOperator:ne,mapCommand:js,_mapCommand:as,defineRegister:U,exitVisualMode:bn,exitInsertMode:jr},ri=[],gn=!1,En,ur={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},ii={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Ki={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(ur)).forEach(function(y){Ki[(ur[y]||"").toLowerCase()]=Ki[y.toLowerCase()]=y}),M("langmap",void 0,"string",["lmap"],function(y,T){if(y===void 0)return or.string;P(y)}),$.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},$.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},B.prototype={setText:function(y,T,S){this.keyBuffer=[y||""],this.linewise=!!T,this.blockwise=!!S},pushText:function(y,T){T&&(this.linewise||this.keyBuffer.push(`
|
|
1440
|
+
}`,"vimMode",!1),function(){function y(S,F,W){var z=S.ace.container,q;return q=z.appendChild(document.createElement("div")),W?q.className="ace_dialog ace_dialog-bottom":q.className="ace_dialog ace_dialog-top",typeof F=="string"?q.innerHTML=F:q.appendChild(F),q}function T(S,F){S.state.currentNotificationClose&&S.state.currentNotificationClose(),S.state.currentNotificationClose=F}Be.defineExtension("openDialog",function(S,F,W){function z(be){if(typeof be=="string")re.value=be;else{if(Y||be&&be.type=="blur"&&document.activeElement===re)return;Z.state.dialog==q&&(Z.state.dialog=null,Z.focus()),Y=!0,q.remove(),W.onClose&&W.onClose(q);var ke=Z;ke.state.vim&&(ke.state.vim.status=null,ke.ace._signal("changeStatus"),ke.ace.renderer.$loop.schedule(ke.ace.renderer.CHANGE_CURSOR))}}if(!this.virtualSelectionMode()){W||(W={}),T(this,null);var q=y(this,S,W.bottom),Y=!1,Z=this;this.state.dialog=q;var re=q.getElementsByTagName("input")[0],ae;return re?(W.value&&(re.value=W.value,W.selectValueOnOpen!==!1&&re.select()),W.onInput&&Be.on(re,"input",function(be){W.onInput(be,re.value,z)}),W.onKeyUp&&Be.on(re,"keyup",function(be){W.onKeyUp(be,re.value,z)}),Be.on(re,"keydown",function(be){W&&W.onKeyDown&&W.onKeyDown(be,re.value,z)||(be.keyCode==13&&F(re.value),(be.keyCode==27||W.closeOnEnter!==!1&&be.keyCode==13)&&(Be.e_stop(be),z()))}),W.closeOnBlur!==!1&&Be.on(re,"blur",z),re.focus()):(ae=q.getElementsByTagName("button")[0])&&(Be.on(ae,"click",function(){z(),Z.focus()}),W.closeOnBlur!==!1&&Be.on(ae,"blur",z),ae.focus()),z}}),Be.defineExtension("openNotification",function(S,F){function W(){q||(q=!0,clearTimeout(Y),z.remove())}if(!this.virtualSelectionMode()){T(this,W);var z=y(this,S,F&&F.bottom),q=!1,Y,Z=F&&typeof F.duration<"u"?F.duration:5e3;return Be.on(z,"click",function(re){Be.e_preventDefault(re),W()}),Z&&(Y=setTimeout(W,Z)),W}})}();var Ne=Be.Pos,zn=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Ho=zn.length,Ri=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],or=O(""),Ea=/[\d]/,zo=[Be.isWordChar,function(y){return y&&!Be.isWordChar(y)&&!/\s/.test(y)}],Vi=[function(y){return/\S/.test(y)}],Mo=["<",">"],an=["-",'"',".",":","_","/","+"],nn=/^\w$/,ln;try{ln=new RegExp("^[\\p{Lu}]$","u")}catch{ln=/^[A-Z]$/}var Kt={};M("filetype",void 0,"string",["ft"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("mode");return S=="null"?"":S}var S=y==""?"null":y;T.setOption("mode",S)}}),M("textwidth",80,"number",["tw"],function(y,T){if(T!==void 0){if(y===void 0){var S=T.getOption("textwidth");return S}var F=Math.round(y);F>1&&T.setOption("textwidth",F)}});var qi=function(){function y(Z,re,ae){function be(Oe){var Le=++W%F,Ge=Y[Le];Ge&&Ge.clear(),Y[Le]=Z.setBookmark(Oe)}var ke=W%F,ve=Y[ke];if(ve){var we=ve.find();we&&!ht(we,re)&&be(re)}else be(re);be(ae),z=W,q=W-F+1,q<0&&(q=0)}function T(Z,re){W+=re,W>z?W=z:W<q&&(W=q);var ae=Y[(F+W)%F];if(ae&&!ae.find()){var be=re>0?1:-1,ke,ve=Z.getCursor();do if(W+=be,ae=Y[(F+W)%F],ae&&(ke=ae.find())&&!ht(ve,ke))break;while(W<z&&W>q)}return ae}function S(Z,re){var ae=W,be=T(Z,re);return W=ae,be&&be.find()}var F=100,W=-1,z=0,q=0,Y=new Array(F);return{cachedCursor:void 0,add:y,find:S,move:T}},Yn=function(y){return y?{changes:y.changes,expectCursorActivityForChange:y.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};C.prototype={exitMacroRecordMode:function(){var y=Ve.macroModeState;y.onRecordingDone&&y.onRecordingDone(),y.onRecordingDone=void 0,y.isRecording=!1},enterMacroRecordMode:function(y,T){var S=Ve.registerController.getRegister(T);if(S){if(S.clear(),this.latestRegister=T,y.openDialog){var F=zr("span",{class:"cm-vim-message"},"recording @"+T);this.onRecordingDone=y.openDialog(F,null,{bottom:!0})}this.isRecording=!0}}};var Ve,An,wt={enterVimMode:h,leaveVimMode:f,buildKeyMap:function(){},getRegisterController:function(){return Ve.registerController},resetVimGlobalState_:D,getVimGlobalState_:function(){return Ve},maybeInitVimState_:L,suppressErrorLogging:!1,InsertModeKey:_o,map:function(y,T,S){Dr.map(y,T,S)},unmap:function(y,T){return Dr.unmap(y,T)},noremap:function(y,T,S){Dr.map(y,T,S,!0)},mapclear:function(y){var T=zn.length,S=Ho,F=zn.slice(0,T-S);if(zn=zn.slice(T-S),y)for(var W=F.length-1;W>=0;W--){var z=F[W];if(y!==z.context)if(z.context)this._mapCommand(z);else{var q=["normal","insert","visual"];for(var Y in q)if(q[Y]!==y){var Z={};for(var re in z)Z[re]=z[re];Z.context=q[Y],this._mapCommand(Z)}}}},langmap:P,vimKeyFromEvent:H,setOption:_,getOption:k,defineOption:M,defineEx:function(y,T,S){if(!T)T=y;else if(y.indexOf(T)!==0)throw new Error('(Vim.defineEx) "'+T+'" is not a prefix of "'+y+'", command not registered');Gs[y]=S,Dr.commandMap_[T]={name:y,shortName:T,type:"api"}},handleKey:function(y,T,S){var F=this.findKey(y,T,S);if(typeof F=="function")return F()},multiSelectHandleKey:Fo,findKey:function(y,T,S){function F(){var re=Ve.macroModeState;if(re.isRecording){if(T=="q")return re.exitMacroRecordMode(),A(y),!0;S!="mapping"&&ls(re,T)}}function W(){if(T=="<Esc>"){if(Y.visualMode)bn(y);else{if(!Y.insertMode)return;jr(y)}return A(y),!0}}function z(){if(W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join(""),ae=T.length==1,be=Xn.matchCommand(re,zn,Y.inputState,"insert"),ke=Y.inputState.changeQueue;if(be.type=="none")return A(y),!1;if(be.type=="partial"){if(be.expectLiteralNext&&(Y.expectLiteralNext=!0),An&&window.clearTimeout(An),An=ae&&window.setTimeout(function(){Y.insertMode&&Y.inputState.keyBuffer.length&&A(y)},k("insertModeEscKeysTimeout")),ae){var ve=y.listSelections();(!ke||ke.removed.length!=ve.length)&&(ke=Y.inputState.changeQueue=new N),ke.inserted+=T;for(var we=0;we<ve.length;we++){var Oe=dt(ve[we].anchor,ve[we].head),Le=Jt(ve[we].anchor,ve[we].head),Ge=y.getRange(Oe,y.state.overwrite?me(Le,0,1):Le);ke.removed[we]=(ke.removed[we]||"")+Ge}}return!ae}if(Y.expectLiteralNext=!1,An&&window.clearTimeout(An),be.command&&ke){for(var ve=y.listSelections(),we=0;we<ve.length;we++){var ut=ve[we].head;y.replaceRange(ke.removed[we]||"",me(ut,0,-ke.inserted.length),ut,"+input")}Ve.macroModeState.lastInsertModeChanges.changes.pop()}return be.command||A(y),be.command}function q(){if(F()||W())return!0;Y.inputState.keyBuffer.push(T);var re=Y.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(re))return!0;var ae=/^(\d*)(.*)$/.exec(re);if(!ae)return A(y),!1;var be=Y.visualMode?"visual":"normal",ke=ae[2]||ae[1];Y.inputState.operatorShortcut&&Y.inputState.operatorShortcut.slice(-1)==ke&&(ke=Y.inputState.operatorShortcut);var ve=Xn.matchCommand(ke,zn,Y.inputState,be);return ve.type=="none"?(A(y),!1):ve.type=="partial"?(ve.expectLiteralNext&&(Y.expectLiteralNext=!0),!0):ve.type=="clear"?(A(y),!0):(Y.expectLiteralNext=!1,Y.inputState.keyBuffer.length=0,ae=/^(\d*)(.*)$/.exec(re),ae[1]&&ae[1]!="0"&&Y.inputState.pushRepeatDigit(ae[1]),ve.command)}var Y=L(y),Z;return Y.insertMode?Z=z():Z=q(),Z===!1?!Y.insertMode&&T.length===1?function(){return!0}:void 0:Z===!0?function(){return!0}:function(){if(!((Z.operator||Z.isEdit)&&y.getOption("readOnly")))return y.operation(function(){y.curOp.isVimOp=!0;try{Z.type=="keyToKey"?I(y,Z.toKeys,Z):Xn.processCommand(y,Y,Z)}catch(re){throw y.state.vim=void 0,L(y),wt.suppressErrorLogging||console.log(re),re}return!0})}},handleEx:function(y,T){Dr.processCommand(y,T)},defineMotion:J,defineAction:le,defineOperator:ne,mapCommand:js,_mapCommand:as,defineRegister:U,exitVisualMode:bn,exitInsertMode:jr},ri=[],gn=!1,In,ur={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},ii={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},Ki={};"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(ur)).forEach(function(y){Ki[(ur[y]||"").toLowerCase()]=Ki[y.toLowerCase()]=y}),M("langmap",void 0,"string",["lmap"],function(y,T){if(y===void 0)return or.string;P(y)}),$.prototype.pushRepeatDigit=function(y){this.operator?this.motionRepeat=this.motionRepeat.concat(y):this.prefixRepeat=this.prefixRepeat.concat(y)},$.prototype.getRepeat=function(){var y=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(y=1,this.prefixRepeat.length>0&&(y*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(y*=parseInt(this.motionRepeat.join(""),10))),y},B.prototype={setText:function(y,T,S){this.keyBuffer=[y||""],this.linewise=!!T,this.blockwise=!!S},pushText:function(y,T){T&&(this.linewise||this.keyBuffer.push(`
|
|
1441
1441
|
`),this.linewise=!0),this.keyBuffer.push(y)},pushInsertModeChanges:function(y){this.insertModeChanges.push(Yn(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 z=this.isValidRegister(y)?this.getRegister(y):null;if(!z){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=l(y);q?z.pushText(S,F):z.setText(S,F,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(S),this.unnamedRegister.setText(z.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,an)||nn.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 z=S[W],q=0;q<=z.length;q++)if(this.initialPrefix==z.substring(0,q))return this.iterator=W,z;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 Xn={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 z,q=0;q<W.full.length;q++){var Y=W.full[q];z||(z=Y)}if(z.keys.slice(-11)=="<character>"||z.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};S.selectedCharacter=Z}return{type:"full",command:z}},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,Bn(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(),z=!!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=z,q.registerName=F.registerName,A(y),T.lastMotion=null,S.isEdit&&this.recordLastEdit(T,F,S),Zn[S.action](y,q,T)},processSearch:function(y,T,S){function F(Le,Ge,ut){Ve.searchHistoryController.pushInput(Le),Ve.searchHistoryController.reset();try{ze(y,Le,Ge,ut)}catch{Dt(y,"Invalid regex: "+Le),A(y);return}Xn.processMotion(y,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:S.searchArgs.toJumplist}})}function W(Le){F(Le,!0,!0);var Ge=Ve.macroModeState;Ge.isRecording&&Vs(Ge,Le)}function z(Le,Ge,ut){var et=H(Le),at,Sn;et=="<Up>"||et=="<Down>"?(at=et=="<Up>",Sn=Le.target?Le.target.selectionEnd:0,Ge=Ve.searchHistoryController.nextMatch(Ge,at)||"",ut(Ge),Sn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(Sn,Le.target.value.length))):et&&et!="<Left>"&&et!="<Right>"&&Ve.searchHistoryController.reset();var pt;try{pt=ze(y,Ge,!0,!0)}catch{}pt?y.scrollIntoView(Zt(y,!Y,pt),30):($r(y),y.scrollTo(be.left,be.top))}function q(Le,Ge,ut){var et=H(Le);et=="<Esc>"||et=="<C-c>"||et=="<C-[>"||et=="<BS>"&&Ge==""?(Ve.searchHistoryController.pushInput(Ge),Ve.searchHistoryController.reset(),ze(y,ae),$r(y),y.scrollTo(be.left,be.top),Be.e_stop(Le),A(y),ut(),y.focus()):et=="<Up>"||et=="<Down>"?Be.e_stop(Le):et=="<C-u>"&&(Be.e_stop(Le),ut(""))}if(y.getSearchCursor){var Y=S.searchArgs.forward,Z=S.searchArgs.wholeWordOnly;Mn(y).setReversed(!Y);var re=Y?"/":"?",ae=Mn(y).getQuery(),be=y.getScrollInfo();switch(S.searchArgs.querySrc){case"prompt":var ke=Ve.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();F(Oe,!0,!1)}else _r(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:z,onKeyDown:q});break;case"wordUnderCursor":var ve=dn(y,{noSymbol:!0}),we=!0;if(ve||(ve=dn(y,{noSymbol:!1}),we=!1),!ve){Dt(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=fn(Oe),Ve.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),F(Oe,!0,!1)}}},processEx:function(y,T,S){function F(z){Ve.exCommandHistoryController.pushInput(z),Ve.exCommandHistoryController.reset(),Dr.processCommand(y,z),y.state.vim&&A(y)}function W(z,q,Y){var Z=H(z),re,ae;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&q=="")&&(Ve.exCommandHistoryController.pushInput(q),Ve.exCommandHistoryController.reset(),Be.e_stop(z),A(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(Be.e_stop(z),re=Z=="<Up>",ae=z.target?z.target.selectionEnd:0,q=Ve.exCommandHistoryController.nextMatch(q,re)||"",Y(q),ae&&z.target&&(z.target.selectionEnd=z.target.selectionStart=Math.min(ae,z.target.value.length))):Z=="<C-u>"?(Be.e_stop(z),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&Ve.exCommandHistoryController.reset()}S.type=="keyToEx"?Dr.processCommand(y,S.exArgs.input):T.visualMode?_r(y,{onClose:F,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):_r(y,{onClose:F,prefix:":",onKeyDown:W})},evalInput:function(y,T){var S=T.inputState,F=S.motion,W=S.motionArgs||{},z=S.operator,q=S.operatorArgs||{},Y=S.registerName,Z=T.sel,re=Xe(T.visualMode?se(y,Z.head):y.getCursor("head")),ae=Xe(T.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=Xe(re),ke=Xe(ae),ve,we,Oe;if(z&&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=Ci[F](y,re,W,T,S);if(T.lastMotion=Ci[F],!Le)return;if(W.toJumplist){!z&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ge=Ve.jumpList,ut=Ge.cachedCursor;ut?(Jr(y,ut,Le),delete Ge.cachedCursor):Jr(y,re,Le)}Le instanceof Array?(we=Le[0],ve=Le[1]):ve=Le,ve||(ve=Xe(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,Bn(y),ti(y,T,"<",st(we,ve)?we:ve),ti(y,T,">",st(we,ve)?ve:we)):z||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(z){if(q.lastSel){we=ke;var et=q.lastSel,at=Math.abs(et.head.line-et.anchor.line),Sn=Math.abs(et.head.ch-et.anchor.ch);et.visualLine?ve=new Ne(ke.line+at,ke.ch):et.visualBlock?ve=new Ne(ke.line+at,ke.ch+Sn):et.head.line==et.anchor.line?ve=new Ne(ke.line,ke.ch+Sn):ve=new Ne(ke.line+at,ke.ch),T.visualMode=!0,T.visualLine=et.visualLine,T.visualBlock=et.visualBlock,Z=T.sel={anchor:we,head:ve},Bn(y)}else T.visualMode&&(q.lastSel={anchor:Xe(Z.anchor),head:Xe(Z.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var pt,On,kt,Mt,hr;if(T.visualMode){pt=dt(Z.head,Z.anchor),On=Qt(Z.head,Z.anchor),kt=T.visualLine||q.linewise,Mt=T.visualBlock?"block":kt?"line":"char";var Ir=b(y,pt,On);if(hr=Ar(y,{anchor:Ir.start,head:Ir.end},Mt),kt){var Nn=hr.ranges;if(Mt=="block")for(var V=0;V<Nn.length;V++)Nn[V].head.ch=Ht(y,Nn[V].head.line);else Mt=="line"&&(Nn[0].head=new Ne(Nn[0].head.line+1,0))}}else{if(pt=Xe(we||ke),On=Xe(ve||be),st(On,pt)){var X=pt;pt=On,On=X}kt=W.linewise||q.linewise,kt?Hn(y,pt,On):W.forward&&qn(y,pt,On),Mt="char";var ie=!W.inclusive||kt,Ir=b(y,pt,On);hr=Ar(y,{anchor:Ir.start,head:Ir.end},Mt,ie)}y.setSelections(hr.ranges,hr.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=kt;var oe=gs[z](y,q,hr.ranges,ke,ve);T.visualMode&&bn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,T,S){var F=Ve.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)}},Ci={moveToTopLine:function(y,T,S){var F=Gn(y).top+S.repeat-1;return new Ne(F,Xt(y.getLine(F)))},moveToMiddleLine:function(y){var T=Gn(y),S=Math.floor((T.top+T.bottom)*.5);return new Ne(S,Xt(y.getLine(S)))},moveToBottomLine:function(y,T,S){var F=Gn(y).bottom-S.repeat+1;return new Ne(F,Xt(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=Mn(y),W=F.getQuery();if(W){var z=!S.forward;return z=F.isReversed()?!z:z,Tt(y,W),Zt(y,z,W,S.repeat)}},findAndSelectNextInclusive:function(y,T,S,F,W){var z=Mn(y),q=z.getQuery();if(q){var Y=!S.forward;Y=z.isReversed()?!Y:Y;var Z=Vt(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,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=F.sel.anchor;if(be)return z.isReversed()?S.forward?[be,re]:[be,ae]:S.forward?[be,ae]:[be,re]}else F.visualMode=!0,F.visualLine=!1,F.visualBlock=!1,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ae,re]:[re,ae]}}},goToMark:function(y,T,S,F){var W=Tr(y,F,S.selectedCharacter);return W?S.linewise?{line:W.line,ch:Xt(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,z=0;z<S.repeat;z++){var q=W;for(var Y in F.marks)if(u(Y)){var Z=F.marks[Y].find(),re=S.forward?st(Z,q):st(q,Z);if(!re&&!(S.linewise&&Z.line==q.line)){var ae=ht(q,W),be=S.forward?$n(q,Z,W):$n(W,Z,q);(ae||be)&&(W=Z)}}}return S.linewise&&(W=new Ne(W.line,Xt(y.getLine(W.line)))),W},moveByCharacters:function(y,T,S){var F=T,W=S.repeat,z=S.forward?F.ch+W:F.ch-W;return new Ne(F.line,z)},moveByLines:function(y,T,S,F){var W=T,z=W.ch;switch(F.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:z=F.lastHPos;break;default:F.lastHPos=z}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 co(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&&(z=Xt(y.getLine(Y)),F.lastHPos=z),F.lastHSPos=y.charCoords(new Ne(Y,z),"div").left,new Ne(Y,z)},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 z=S.repeat,Z=y.findPosV(W,S.forward?z:-z,"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 vi(y,T,S.repeat,F)},moveBySentence:function(y,T,S){var F=S.forward?1:-1;return yi(y,T,S.repeat,F)},moveByScroll:function(y,T,S,F){var W=y.getScrollInfo(),z=null,q=S.repeat;q||(q=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(T,"local");if(S.repeat=q,z=Ci.moveByDisplayLines(y,T,S,F),!z)return null;var Z=y.charCoords(z,"local");return y.scrollTo(null,W.top+Z.top-Y.top),z},moveByWords:function(y,T,S){return Kn(y,T,S.repeat,!!S.forward,!!S.wordEnd,!!S.bigWord)},moveTillCharacter:function(y,T,S){var F=S.repeat,W=mi(y,F,S.forward,S.selectedCharacter,T),z=S.forward?-1:1;return ei(z,S),W?(W.ch+=z,W):null},moveToCharacter:function(y,T,S){var F=S.repeat;return ei(0,S),mi(y,F,S.forward,S.selectedCharacter,T)||T},moveToSymbol:function(y,T,S){var F=S.repeat;return Ii(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,zs(y,W)},moveToEol:function(y,T,S,F){return co(y,T,S,F,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,T){var S=T;return new Ne(S.line,Xt(y.getLine(S.line)))},moveToMatchedSymbol:function(y,T){for(var S=T,F=S.line,W=S.ch,z=y.getLine(F),q;W<z.length;W++)if(q=z.charAt(W),q&&c(q)){var Y=y.getTokenTypeAt(new Ne(F,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<z.length){var Z=/[<>]/.test(z[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,Xt(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={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},z={"'":!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=Tn(y,T,q,Y),!Z){var ae=y.getSearchCursor(new RegExp("\\"+q,"g"),T);ae.find()&&(Z=Tn(y,ae.from(),q,Y))}}else if(z[q])re=!0,Z=yr(y,T,q,Y);else if(q==="W"||q==="w")for(var be=S.repeat||1;be-- >0;){var ke=dn(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=vi(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=Hr(y,T,Y);else if(q==="s"){var we=y.getLine(T.line);T.ch>0&&w(we[T.ch])&&(T.ch-=1);var Oe=os(y,T,S.repeat,1,Y),Le=os(y,T,S.repeat,-1,Y);m(y.getLine(Le.line)[Le.ch])&&m(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?tn(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,T,S){var F=Ve.lastCharacterSearch,W=S.repeat,z=S.forward===F.forward,q=(F.increment?1:0)*(z?-1:1);y.moveH(-q,"char"),S.inclusive=!!z;var Y=mi(y,W,z,F.selectedCharacter);return Y?(Y.ch+=q,Y):(y.moveH(q,"char"),T)}},gs={change:function(y,T,S){var F,W,z=y.state.vim,q=S[0].anchor,Y=S[0].head;if(z.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=dt(S[0].head,S[0].anchor)}else{W=y.getRange(q,Y);var re=z.lastEditInputState||{};if(re.motion=="moveByWords"&&!m(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,Xt(y.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",q,Y),F=q}Ve.registerController.pushText(T.registerName,"change",W,T.linewise,S.length>1),Zn.enterInsertMode(y,{head:F},y.state.vim)},delete:function(y,T,S){var F,W,z=y.state.vim;if(z.visualBlock){W=y.getSelection();var q=he("",S.length);y.replaceSelections(q),F=dt(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,Ht(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),F=Y,T.linewise&&(F=Ci.moveToFirstNonWhiteSpaceCharacter(y,Y))}return Ve.registerController.pushText(T.registerName,"delete",W,T.linewise,z.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 z=y.getOption("tabSize"),q=y.getOption("indentWithTabs")?" ":" ".repeat(z),Y,Z=S.length-1;Z>=0;Z--)if(Y=dt(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 Ci.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},indentAuto:function(y,T,S){return y.execCommand("indentAuto"),Ci.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},hardWrap:function(y,T,S,F,W){if(y.hardWrap){var z=S[0].anchor.line,q=S[0].head.line;T.linewise&&q--;var Y=y.hardWrap({from:z,to:q});return Y>z&&T.linewise&&Y--,T.keepCursor?F:new Ne(Y,0)}},changeCase:function(y,T,S,F,W){for(var z=y.getSelections(),q=[],Y=T.toLower,Z=0;Z<z.length;Z++){var re=z[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+=l(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?Ci.moveToFirstNonWhiteSpaceCharacter(y,F):T.linewise?F:dt(S[0].anchor,S[0].head)},yank:function(y,T,S,F){var W=y.state.vim,z=y.getSelection(),q=W.visualMode?dt(W.sel.anchor,W.sel.head,S[0].head,S[0].anchor):F;return Ve.registerController.pushText(T.registerName,"yank",z,T.linewise,W.visualBlock),q}},Zn={jumpListWalk:function(y,T,S){if(!S.visualMode){var F=T.repeat,W=T.forward,z=Ve.jumpList,q=z.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(),z=y.getScrollInfo().top,q=W*F,Y=T.forward?z+q:z-q,Z=Xe(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,z=F.top;switch(T.position){case"center":z=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-z;z=z-W+Z}y.scrollTo(null,z)},replayMacro:function(y,T,S){var F=T.selectedCharacter,W=T.repeat,z=Ve.macroModeState;for(F=="@"?F=z.latestRegister:z.latestRegister=F;W--;)Us(y,S,z,F)},enterMacroRecordMode:function(y,T){var S=Ve.macroModeState,F=T.selectedCharacter;Ve.registerController.isValidRegister(F)&&S.enterMacroRecordMode(y,F)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),Be.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),Be.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,z=T.head||y.getCursor("head"),q=y.listSelections().length;if(F=="eol")z=new Ne(z.line,Ht(y,z.line));else if(F=="bol")z=new Ne(z.line,0);else if(F=="charAfter"){var Y=b(y,z,me(z,0,1));z=Y.end}else if(F=="firstNonBlank"){var Y=b(y,z,Ci.moveToFirstNonWhiteSpaceCharacter(y,z));z=Y.end}else if(F=="startOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(z=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?z=W.head:z=new Ne(W.anchor.line,0)}else if(F=="endOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(z=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?z=me(W.head,0,1):z=new Ne(W.anchor.line,0)}else if(F=="inplace"){if(S.visualMode)return}else F=="lastEdit"&&(z=wn(y)||z);y.setOption("disableInput",!1),T&&T.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),Be.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),Be.signal(y,"vim-mode-change",{mode:"insert"})),Ve.macroModeState.isPlaying||(y.on("change",Do),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(z,{insertLeft:!0}),Be.on(y.getInputField(),"keydown",qs)),S.visualMode&&bn(y),Or(y,z,q)}},toggleVisualMode:function(y,T,S){var F=T.repeat,W=y.getCursor(),z;if(S.visualMode)S.visualLine^T.linewise||S.visualBlock^T.blockwise?(S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),Bn(y)):bn(y);else{S.visualMode=!0,S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,z=se(y,new Ne(W.line,W.ch+F-1));var q=b(y,W,z);S.sel={anchor:q.start,head:q.end},Be.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),Bn(y),ti(y,S,"<",dt(W,z)),ti(y,S,">",Qt(W,z))}},reselectLastSelection:function(y,T,S){var F=S.lastSelection;if(S.visualMode&&Nt(y,S),F){var W=F.anchorMark.find(),z=F.headMark.find();if(!W||!z)return;S.sel={anchor:W,head:z},S.visualMode=!0,S.visualLine=F.visualLine,S.visualBlock=F.visualBlock,Bn(y),ti(y,S,"<",dt(W,z)),ti(y,S,">",Qt(W,z)),Be.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"),st(W,F)){var z=W;W=F,F=z}W.ch=Ht(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=Ht(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&&bn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,T,S){S.insertMode=!0;var F=Xe(y.getCursor());if(F.line===y.firstLine()&&!T.after)y.replaceRange(`
|
|
1445
|
-
`,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{F.line=T.after?F.line:F.line-1,F.ch=Ht(y,F.line),y.setCursor(F);var W=Be.commands.newlineAndIndentContinueComment||Be.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:T.repeat},S)},paste:function(y,T,S){var F=this,W=Ve.registerController.getRegister(T.registerName),z=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(){z()}):z()},continuePaste:function(y,T,S,F,W){var z=Xe(y.getCursor());if(F){if(T.matchIndent){var q=y.getOption("tabSize"),Y=function(
|
|
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=l(y);q?z.pushText(S,F):z.setText(S,F,W),y==="+"&&typeof navigator<"u"&&typeof navigator.clipboard<"u"&&typeof navigator.clipboard.readText=="function"&&navigator.clipboard.writeText(S),this.unnamedRegister.setText(z.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,an)||nn.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 z=S[W],q=0;q<=z.length;q++)if(this.initialPrefix==z.substring(0,q))return this.iterator=W,z;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 Xn={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 z,q=0;q<W.full.length;q++){var Y=W.full[q];z||(z=Y)}if(z.keys.slice(-11)=="<character>"||z.keys.slice(-10)=="<register>"){var Z=Me(y);if(!Z||Z.length>1)return{type:"clear"};S.selectedCharacter=Z}return{type:"full",command:z}},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,Ln(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(),z=!!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=z,q.registerName=F.registerName,A(y),T.lastMotion=null,S.isEdit&&this.recordLastEdit(T,F,S),Zn[S.action](y,q,T)},processSearch:function(y,T,S){function F(Le,Ge,ut){Ve.searchHistoryController.pushInput(Le),Ve.searchHistoryController.reset();try{ze(y,Le,Ge,ut)}catch{Dt(y,"Invalid regex: "+Le),A(y);return}Xn.processMotion(y,T,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:S.searchArgs.toJumplist}})}function W(Le){F(Le,!0,!0);var Ge=Ve.macroModeState;Ge.isRecording&&Vs(Ge,Le)}function z(Le,Ge,ut){var et=H(Le),at,Sn;et=="<Up>"||et=="<Down>"?(at=et=="<Up>",Sn=Le.target?Le.target.selectionEnd:0,Ge=Ve.searchHistoryController.nextMatch(Ge,at)||"",ut(Ge),Sn&&Le.target&&(Le.target.selectionEnd=Le.target.selectionStart=Math.min(Sn,Le.target.value.length))):et&&et!="<Left>"&&et!="<Right>"&&Ve.searchHistoryController.reset();var pt;try{pt=ze(y,Ge,!0,!0)}catch{}pt?y.scrollIntoView(Qt(y,!Y,pt),30):($r(y),y.scrollTo(be.left,be.top))}function q(Le,Ge,ut){var et=H(Le);et=="<Esc>"||et=="<C-c>"||et=="<C-[>"||et=="<BS>"&&Ge==""?(Ve.searchHistoryController.pushInput(Ge),Ve.searchHistoryController.reset(),ze(y,ae),$r(y),y.scrollTo(be.left,be.top),Be.e_stop(Le),A(y),ut(),y.focus()):et=="<Up>"||et=="<Down>"?Be.e_stop(Le):et=="<C-u>"&&(Be.e_stop(Le),ut(""))}if(y.getSearchCursor){var Y=S.searchArgs.forward,Z=S.searchArgs.wholeWordOnly;En(y).setReversed(!Y);var re=Y?"/":"?",ae=En(y).getQuery(),be=y.getScrollInfo();switch(S.searchArgs.querySrc){case"prompt":var ke=Ve.macroModeState;if(ke.isPlaying){var Oe=ke.replaySearchQueries.shift();F(Oe,!0,!1)}else _r(y,{onClose:W,prefix:re,desc:"(JavaScript regexp)",onKeyUp:z,onKeyDown:q});break;case"wordUnderCursor":var ve=dn(y,{noSymbol:!0}),we=!0;if(ve||(ve=dn(y,{noSymbol:!1}),we=!1),!ve){Dt(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=fn(Oe),Ve.jumpList.cachedCursor=y.getCursor(),y.setCursor(ve.start),F(Oe,!0,!1)}}},processEx:function(y,T,S){function F(z){Ve.exCommandHistoryController.pushInput(z),Ve.exCommandHistoryController.reset(),Dr.processCommand(y,z),y.state.vim&&A(y)}function W(z,q,Y){var Z=H(z),re,ae;(Z=="<Esc>"||Z=="<C-c>"||Z=="<C-[>"||Z=="<BS>"&&q=="")&&(Ve.exCommandHistoryController.pushInput(q),Ve.exCommandHistoryController.reset(),Be.e_stop(z),A(y),Y(),y.focus()),Z=="<Up>"||Z=="<Down>"?(Be.e_stop(z),re=Z=="<Up>",ae=z.target?z.target.selectionEnd:0,q=Ve.exCommandHistoryController.nextMatch(q,re)||"",Y(q),ae&&z.target&&(z.target.selectionEnd=z.target.selectionStart=Math.min(ae,z.target.value.length))):Z=="<C-u>"?(Be.e_stop(z),Y("")):Z&&Z!="<Left>"&&Z!="<Right>"&&Ve.exCommandHistoryController.reset()}S.type=="keyToEx"?Dr.processCommand(y,S.exArgs.input):T.visualMode?_r(y,{onClose:F,prefix:":",value:"'<,'>",onKeyDown:W,selectValueOnOpen:!1}):_r(y,{onClose:F,prefix:":",onKeyDown:W})},evalInput:function(y,T){var S=T.inputState,F=S.motion,W=S.motionArgs||{},z=S.operator,q=S.operatorArgs||{},Y=S.registerName,Z=T.sel,re=Xe(T.visualMode?se(y,Z.head):y.getCursor("head")),ae=Xe(T.visualMode?se(y,Z.anchor):y.getCursor("anchor")),be=Xe(re),ke=Xe(ae),ve,we,Oe;if(z&&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=Ci[F](y,re,W,T,S);if(T.lastMotion=Ci[F],!Le)return;if(W.toJumplist){!z&&y.ace.curOp!=null&&(y.ace.curOp.command.scrollIntoView="center-animate");var Ge=Ve.jumpList,ut=Ge.cachedCursor;ut?(Jr(y,ut,Le),delete Ge.cachedCursor):Jr(y,re,Le)}Le instanceof Array?(we=Le[0],ve=Le[1]):ve=Le,ve||(ve=Xe(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,Ln(y),ti(y,T,"<",st(we,ve)?we:ve),ti(y,T,">",st(we,ve)?ve:we)):z||(y.ace.curOp&&(y.ace.curOp.vimDialogScroll="center-animate"),ve=se(y,ve,be),y.setCursor(ve.line,ve.ch))}if(z){if(q.lastSel){we=ke;var et=q.lastSel,at=Math.abs(et.head.line-et.anchor.line),Sn=Math.abs(et.head.ch-et.anchor.ch);et.visualLine?ve=new Ne(ke.line+at,ke.ch):et.visualBlock?ve=new Ne(ke.line+at,ke.ch+Sn):et.head.line==et.anchor.line?ve=new Ne(ke.line,ke.ch+Sn):ve=new Ne(ke.line+at,ke.ch),T.visualMode=!0,T.visualLine=et.visualLine,T.visualBlock=et.visualBlock,Z=T.sel={anchor:we,head:ve},Ln(y)}else T.visualMode&&(q.lastSel={anchor:Xe(Z.anchor),head:Xe(Z.head),visualBlock:T.visualBlock,visualLine:T.visualLine});var pt,Nn,kt,Mt,hr;if(T.visualMode){pt=dt(Z.head,Z.anchor),Nn=Jt(Z.head,Z.anchor),kt=T.visualLine||q.linewise,Mt=T.visualBlock?"block":kt?"line":"char";var Ir=b(y,pt,Nn);if(hr=Ar(y,{anchor:Ir.start,head:Ir.end},Mt),kt){var Dn=hr.ranges;if(Mt=="block")for(var V=0;V<Dn.length;V++)Dn[V].head.ch=Ht(y,Dn[V].head.line);else Mt=="line"&&(Dn[0].head=new Ne(Dn[0].head.line+1,0))}}else{if(pt=Xe(we||ke),Nn=Xe(ve||be),st(Nn,pt)){var X=pt;pt=Nn,Nn=X}kt=W.linewise||q.linewise,kt?Hn(y,pt,Nn):W.forward&&qn(y,pt,Nn),Mt="char";var ie=!W.inclusive||kt,Ir=b(y,pt,Nn);hr=Ar(y,{anchor:Ir.start,head:Ir.end},Mt,ie)}y.setSelections(hr.ranges,hr.primary),T.lastMotion=null,q.repeat=Oe,q.registerName=Y,q.linewise=kt;var oe=gs[z](y,q,hr.ranges,ke,ve);T.visualMode&&bn(y,oe!=null),oe&&y.setCursor(oe)}},recordLastEdit:function(y,T,S){var F=Ve.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)}},Ci={moveToTopLine:function(y,T,S){var F=Gn(y).top+S.repeat-1;return new Ne(F,Zt(y.getLine(F)))},moveToMiddleLine:function(y){var T=Gn(y),S=Math.floor((T.top+T.bottom)*.5);return new Ne(S,Zt(y.getLine(S)))},moveToBottomLine:function(y,T,S){var F=Gn(y).bottom-S.repeat+1;return new Ne(F,Zt(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=En(y),W=F.getQuery();if(W){var z=!S.forward;return z=F.isReversed()?!z:z,Tt(y,W),Qt(y,z,W,S.repeat)}},findAndSelectNextInclusive:function(y,T,S,F,W){var z=En(y),q=z.getQuery();if(q){var Y=!S.forward;Y=z.isReversed()?!Y:Y;var Z=qt(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,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:""}));var be=F.sel.anchor;if(be)return z.isReversed()?S.forward?[be,re]:[be,ae]:S.forward?[be,ae]:[be,re]}else F.visualMode=!0,F.visualLine=!1,F.visualBlock=!1,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:""});return Y?[ae,re]:[re,ae]}}},goToMark:function(y,T,S,F){var W=Tr(y,F,S.selectedCharacter);return W?S.linewise?{line:W.line,ch:Zt(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,z=0;z<S.repeat;z++){var q=W;for(var Y in F.marks)if(u(Y)){var Z=F.marks[Y].find(),re=S.forward?st(Z,q):st(q,Z);if(!re&&!(S.linewise&&Z.line==q.line)){var ae=ht(q,W),be=S.forward?$n(q,Z,W):$n(W,Z,q);(ae||be)&&(W=Z)}}}return S.linewise&&(W=new Ne(W.line,Zt(y.getLine(W.line)))),W},moveByCharacters:function(y,T,S){var F=T,W=S.repeat,z=S.forward?F.ch+W:F.ch-W;return new Ne(F.line,z)},moveByLines:function(y,T,S,F){var W=T,z=W.ch;switch(F.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:z=F.lastHPos;break;default:F.lastHPos=z}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 co(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&&(z=Zt(y.getLine(Y)),F.lastHPos=z),F.lastHSPos=y.charCoords(new Ne(Y,z),"div").left,new Ne(Y,z)},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 z=S.repeat,Z=y.findPosV(W,S.forward?z:-z,"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 vi(y,T,S.repeat,F)},moveBySentence:function(y,T,S){var F=S.forward?1:-1;return yi(y,T,S.repeat,F)},moveByScroll:function(y,T,S,F){var W=y.getScrollInfo(),z=null,q=S.repeat;q||(q=W.clientHeight/(2*y.defaultTextHeight()));var Y=y.charCoords(T,"local");if(S.repeat=q,z=Ci.moveByDisplayLines(y,T,S,F),!z)return null;var Z=y.charCoords(z,"local");return y.scrollTo(null,W.top+Z.top-Y.top),z},moveByWords:function(y,T,S){return Kn(y,T,S.repeat,!!S.forward,!!S.wordEnd,!!S.bigWord)},moveTillCharacter:function(y,T,S){var F=S.repeat,W=mi(y,F,S.forward,S.selectedCharacter,T),z=S.forward?-1:1;return ei(z,S),W?(W.ch+=z,W):null},moveToCharacter:function(y,T,S){var F=S.repeat;return ei(0,S),mi(y,F,S.forward,S.selectedCharacter,T)||T},moveToSymbol:function(y,T,S){var F=S.repeat;return Ii(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,zs(y,W)},moveToEol:function(y,T,S,F){return co(y,T,S,F,!1)},moveToFirstNonWhiteSpaceCharacter:function(y,T){var S=T;return new Ne(S.line,Zt(y.getLine(S.line)))},moveToMatchedSymbol:function(y,T){for(var S=T,F=S.line,W=S.ch,z=y.getLine(F),q;W<z.length;W++)if(q=z.charAt(W),q&&c(q)){var Y=y.getTokenTypeAt(new Ne(F,W+1));if(Y!=="string"&&Y!=="comment")break}if(W<z.length){var Z=/[<>]/.test(z[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,Zt(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={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},z={"'":!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=Mn(y,T,q,Y),!Z){var ae=y.getSearchCursor(new RegExp("\\"+q,"g"),T);ae.find()&&(Z=Mn(y,ae.from(),q,Y))}}else if(z[q])re=!0,Z=yr(y,T,q,Y);else if(q==="W"||q==="w")for(var be=S.repeat||1;be-- >0;){var ke=dn(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=vi(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=Hr(y,T,Y);else if(q==="s"){var we=y.getLine(T.line);T.ch>0&&w(we[T.ch])&&(T.ch-=1);var Oe=os(y,T,S.repeat,1,Y),Le=os(y,T,S.repeat,-1,Y);m(y.getLine(Le.line)[Le.ch])&&m(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?Vt(y,Z.start,Z.end,re):[Z.start,Z.end]:null},repeatLastCharacterSearch:function(y,T,S){var F=Ve.lastCharacterSearch,W=S.repeat,z=S.forward===F.forward,q=(F.increment?1:0)*(z?-1:1);y.moveH(-q,"char"),S.inclusive=!!z;var Y=mi(y,W,z,F.selectedCharacter);return Y?(Y.ch+=q,Y):(y.moveH(q,"char"),T)}},gs={change:function(y,T,S){var F,W,z=y.state.vim,q=S[0].anchor,Y=S[0].head;if(z.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=dt(S[0].head,S[0].anchor)}else{W=y.getRange(q,Y);var re=z.lastEditInputState||{};if(re.motion=="moveByWords"&&!m(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,Zt(y.getLine(q.line))),Y.line>q.line&&(Y=new Ne(Y.line-1,Number.MAX_VALUE))),y.replaceRange("",q,Y),F=q}Ve.registerController.pushText(T.registerName,"change",W,T.linewise,S.length>1),Zn.enterInsertMode(y,{head:F},y.state.vim)},delete:function(y,T,S){var F,W,z=y.state.vim;if(z.visualBlock){W=y.getSelection();var q=he("",S.length);y.replaceSelections(q),F=dt(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,Ht(y,Y.line-1))),W=y.getRange(Y,Z),y.replaceRange("",Y,Z),F=Y,T.linewise&&(F=Ci.moveToFirstNonWhiteSpaceCharacter(y,Y))}return Ve.registerController.pushText(T.registerName,"delete",W,T.linewise,z.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 z=y.getOption("tabSize"),q=y.getOption("indentWithTabs")?" ":" ".repeat(z),Y,Z=S.length-1;Z>=0;Z--)if(Y=dt(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 Ci.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},indentAuto:function(y,T,S){return y.execCommand("indentAuto"),Ci.moveToFirstNonWhiteSpaceCharacter(y,S[0].anchor)},hardWrap:function(y,T,S,F,W){if(y.hardWrap){var z=S[0].anchor.line,q=S[0].head.line;T.linewise&&q--;var Y=y.hardWrap({from:z,to:q});return Y>z&&T.linewise&&Y--,T.keepCursor?F:new Ne(Y,0)}},changeCase:function(y,T,S,F,W){for(var z=y.getSelections(),q=[],Y=T.toLower,Z=0;Z<z.length;Z++){var re=z[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+=l(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?Ci.moveToFirstNonWhiteSpaceCharacter(y,F):T.linewise?F:dt(S[0].anchor,S[0].head)},yank:function(y,T,S,F){var W=y.state.vim,z=y.getSelection(),q=W.visualMode?dt(W.sel.anchor,W.sel.head,S[0].head,S[0].anchor):F;return Ve.registerController.pushText(T.registerName,"yank",z,T.linewise,W.visualBlock),q}},Zn={jumpListWalk:function(y,T,S){if(!S.visualMode){var F=T.repeat,W=T.forward,z=Ve.jumpList,q=z.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(),z=y.getScrollInfo().top,q=W*F,Y=T.forward?z+q:z-q,Z=Xe(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,z=F.top;switch(T.position){case"center":z=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-z;z=z-W+Z}y.scrollTo(null,z)},replayMacro:function(y,T,S){var F=T.selectedCharacter,W=T.repeat,z=Ve.macroModeState;for(F=="@"?F=z.latestRegister:z.latestRegister=F;W--;)Us(y,S,z,F)},enterMacroRecordMode:function(y,T){var S=Ve.macroModeState,F=T.selectedCharacter;Ve.registerController.isValidRegister(F)&&S.enterMacroRecordMode(y,F)},toggleOverwrite:function(y){y.state.overwrite?(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),Be.signal(y,"vim-mode-change",{mode:"insert"})):(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),Be.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,z=T.head||y.getCursor("head"),q=y.listSelections().length;if(F=="eol")z=new Ne(z.line,Ht(y,z.line));else if(F=="bol")z=new Ne(z.line,0);else if(F=="charAfter"){var Y=b(y,z,me(z,0,1));z=Y.end}else if(F=="firstNonBlank"){var Y=b(y,z,Ci.moveToFirstNonWhiteSpaceCharacter(y,z));z=Y.end}else if(F=="startOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(z=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?z=W.head:z=new Ne(W.anchor.line,0)}else if(F=="endOfSelectedArea"){if(!S.visualMode)return;S.visualBlock?(z=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?z=me(W.head,0,1):z=new Ne(W.anchor.line,0)}else if(F=="inplace"){if(S.visualMode)return}else F=="lastEdit"&&(z=wn(y)||z);y.setOption("disableInput",!1),T&&T.replace?(y.toggleOverwrite(!0),y.setOption("keyMap","vim-replace"),Be.signal(y,"vim-mode-change",{mode:"replace"})):(y.toggleOverwrite(!1),y.setOption("keyMap","vim-insert"),Be.signal(y,"vim-mode-change",{mode:"insert"})),Ve.macroModeState.isPlaying||(y.on("change",Do),S.insertEnd&&S.insertEnd.clear(),S.insertEnd=y.setBookmark(z,{insertLeft:!0}),Be.on(y.getInputField(),"keydown",qs)),S.visualMode&&bn(y),Or(y,z,q)}},toggleVisualMode:function(y,T,S){var F=T.repeat,W=y.getCursor(),z;if(S.visualMode)S.visualLine^T.linewise||S.visualBlock^T.blockwise?(S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,Be.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),Ln(y)):bn(y);else{S.visualMode=!0,S.visualLine=!!T.linewise,S.visualBlock=!!T.blockwise,z=se(y,new Ne(W.line,W.ch+F-1));var q=b(y,W,z);S.sel={anchor:q.start,head:q.end},Be.signal(y,"vim-mode-change",{mode:"visual",subMode:S.visualLine?"linewise":S.visualBlock?"blockwise":""}),Ln(y),ti(y,S,"<",dt(W,z)),ti(y,S,">",Jt(W,z))}},reselectLastSelection:function(y,T,S){var F=S.lastSelection;if(S.visualMode&&Nt(y,S),F){var W=F.anchorMark.find(),z=F.headMark.find();if(!W||!z)return;S.sel={anchor:W,head:z},S.visualMode=!0,S.visualLine=F.visualLine,S.visualBlock=F.visualBlock,Ln(y),ti(y,S,"<",dt(W,z)),ti(y,S,">",Jt(W,z)),Be.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"),st(W,F)){var z=W;W=F,F=z}W.ch=Ht(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=Ht(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&&bn(y,!1),y.setCursor(ke)},newLineAndEnterInsertMode:function(y,T,S){S.insertMode=!0;var F=Xe(y.getCursor());if(F.line===y.firstLine()&&!T.after)y.replaceRange(`
|
|
1445
|
+
`,new Ne(y.firstLine(),0)),y.setCursor(y.firstLine(),0);else{F.line=T.after?F.line:F.line-1,F.ch=Ht(y,F.line),y.setCursor(F);var W=Be.commands.newlineAndIndentContinueComment||Be.commands.newlineAndIndent;W(y)}this.enterInsertMode(y,{repeat:T.repeat},S)},paste:function(y,T,S){var F=this,W=Ve.registerController.getRegister(T.registerName),z=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(){z()}):z()},continuePaste:function(y,T,S,F,W){var z=Xe(y.getCursor());if(F){if(T.matchIndent){var q=y.getOption("tabSize"),Y=function(Dn){var V=Dn.split(" ").length-1,X=Dn.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(Dn){var V=re+(Y(Dn)-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];z.ch+=T.after?1:0,z.ch=Math.min(Ht(y,z.line),z.ch)}else ve?S.visualMode?F=S.visualLine?F.slice(0,-1):`
|
|
1448
1448
|
`+F.slice(0,F.length-1)+`
|
|
1449
1449
|
`:T.after?(F=`
|
|
1450
|
-
`+F.slice(0,F.length-1),z.ch=Ht(y,z.line)):z.ch=0:z.ch+=T.after?1:0;var Le;if(S.visualMode){S.lastPastedText=F;var Ge,ut=qe(y,S),et=ut[0],at=ut[1],Sn=y.getSelection(),pt=y.listSelections(),
|
|
1451
|
-
`,new Ne(kt,0));var Mt=Ht(y,kt);Mt<z.ch&&
|
|
1450
|
+
`+F.slice(0,F.length-1),z.ch=Ht(y,z.line)):z.ch=0:z.ch+=T.after?1:0;var Le;if(S.visualMode){S.lastPastedText=F;var Ge,ut=qe(y,S),et=ut[0],at=ut[1],Sn=y.getSelection(),pt=y.listSelections(),Nn=new Array(pt.length).join("1").split("1");S.lastSelection&&(Ge=S.lastSelection.headMark.find()),Ve.registerController.unnamedRegister.setText(Sn),we?(y.replaceSelections(Nn),at=new Ne(et.line+F.length-1,et.ch),y.setCursor(et),ir(y,at),y.replaceSelections(F),Le=et):S.visualBlock?(y.replaceSelections(Nn),y.setCursor(et),y.replaceRange(F,et,et),Le=et):(y.replaceRange(F,et,at),Le=y.posFromIndex(y.indexFromPos(et)+F.length-1)),Ge&&(S.lastSelection.headMark=y.setBookmark(Ge)),ve&&(Le.ch=0)}else if(we){y.setCursor(z);for(var Oe=0;Oe<F.length;Oe++){var kt=z.line+Oe;kt>y.lastLine()&&y.replaceRange(`
|
|
1451
|
+
`,new Ne(kt,0));var Mt=Ht(y,kt);Mt<z.ch&&Bn(y,kt,z.ch)}y.setCursor(z),ir(y,new Ne(z.line+F.length-1,z.ch)),y.replaceSelections(F),Le=z}else if(y.replaceRange(F,z),ve){var kt=T.after?z.line+1:z.line;Le=new Ne(kt,Zt(y.getLine(kt)))}else Le=Xe(z),/\n/.test(F)||(Le.ch+=F.length-(T.after?1:0));S.visualMode&&bn(y,!1),y.setCursor(Le)}},undo:function(y,T){y.operation(function(){Je(y,Be.commands.undo,T.repeat)(),y.setCursor(se(y,y.getCursor("start")))})},redo:function(y,T){Je(y,Be.commands.redo,T.repeat)()},setRegister:function(y,T,S){S.inputState.registerName=T.selectedCharacter},insertRegister:function(y,T,S){var F=T.selectedCharacter,W=Ve.registerController.getRegister(F),z=W&&W.toString();z&&y.replaceSelection(z)},oneNormalCommand:function(y,T,S){jr(y,!0),S.insertModeReturn=!0,Be.on(y,"vim-command-done",function F(){S.visualMode||(S.insertModeReturn&&(S.insertModeReturn=!1,S.insertMode||Zn.enterInsertMode(y,{},S)),Be.off(y,"vim-command-done",F))})},setMark:function(y,T,S){var F=T.selectedCharacter;ti(y,S,F,y.getCursor())},replace:function(y,T,S){var F=T.selectedCharacter,W=y.getCursor(),z,q,Y=y.listSelections();if(S.visualMode)W=y.getCursor("start"),q=y.getCursor("end");else{var Z=y.getLine(W.line);z=W.ch+T.repeat,z>Z.length&&(z=Z.length),q=new Ne(W.line,z)}var re=b(y,W,q);if(W=re.start,q=re.end,F==`
|
|
1452
1452
|
`)S.visualMode||y.replaceRange("",W,q),(Be.commands.newlineAndIndentContinueComment||Be.commands.newlineAndIndent)(y);else{var ae=y.getRange(W,q);if(ae=ae.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F),ae=ae.replace(/[^\n]/g,F),S.visualBlock){var be=new Array(y.getOption("tabSize")+1).join(" ");ae=y.getSelection(),ae=ae.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,F),ae=ae.replace(/\t/g,be).replace(/[^\n]/g,F).split(`
|
|
1453
1453
|
`),y.replaceSelections(ae)}else y.replaceRange(ae,W,q);S.visualMode?(W=st(Y[0].anchor,Y[0].head)?Y[0].anchor:Y[0].head,y.setCursor(W),bn(y,!1)):y.setCursor(me(q,0,-1))}},incrementNumberToken:function(y,T){for(var S=y.getCursor(),F=y.getLine(S.line),W=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,z,q,Y,Z;(z=W.exec(F))!==null&&(q=z.index,Y=q+z[0].length,!(S.ch<Y)););if(!(!T.backtrack&&Y<=S.ch)&&z){var re=z[2]||z[4],ae=z[3]||z[5],be=T.increase?1:-1,ke={"0b":2,0:8,"":10,"0x":16}[re.toLowerCase()],ve=parseInt(z[1]+ae,ke)+be*T.repeat;Z=ve.toString(ke);var we=re?new Array(ae.length-Z.length+1+z[1].length).join("0"):"";Z.charAt(0)==="-"?Z="-"+re+we+Z.substr(1):Z=re+we+Z;var Oe=new Ne(S.line,q),Le=new Ne(S.line,Y);y.replaceRange(Z,Oe,Le),y.setCursor(new Ne(S.line,q+Z.length-1))}},repeatLastEdit:function(y,T,S){var F=S.lastEditInputState;if(F){var W=T.repeat;W&&T.repeatIsExplicit?S.lastEditInputState.repeatOverride=W:W=S.lastEditInputState.repeatOverride||W,_a(y,S,W,!1)}},indent:function(y,T){y.indentLine(y.getCursor().line,T.indentRight)},exitInsertMode:jr},Li={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Oi={bracket:{isComplete:function(y){if(y.nextCh===y.symb){if(y.depth++,y.depth>=1)return!0}else y.nextCh===y.reverseSymb&&y.depth--;return!1}},section:{init:function(y){y.curMoveThrough=!0,y.symb=(y.forward?"]":"[")===y.symb?"{":"}"},isComplete:function(y){return y.index===0&&y.nextCh===y.symb}},comment:{isComplete:function(y){var T=y.lastCh==="*"&&y.nextCh==="/";return y.lastCh=y.nextCh,T}},method:{init:function(y){y.symb=y.symb==="m"?"{":"}",y.reverseSymb=y.symb==="{"?"}":"{"},isComplete:function(y){return y.nextCh===y.symb}},preprocess:{init:function(y){y.index=0},isComplete:function(y){if(y.nextCh==="#"){var T=y.lineText.match(/^#(\w+)/)[1];if(T==="endif"){if(y.forward&&y.depth===0)return!0;y.depth++}else if(T==="if"){if(!y.forward&&y.depth===0)return!0;y.depth--}if(T==="else"&&y.depth===0)return!0}return!1}}};M("pcre",!0,"boolean"),bi.prototype={getQuery:function(){return Ve.query},setQuery:function(y){Ve.query=y},getOverlay:function(){return this.searchOverlay},setOverlay:function(y){this.searchOverlay=y},isReversed:function(){return Ve.isReversed},setReversed:function(y){Ve.isReversed=y},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(y){this.annotate=y}};var Gi={"\\n":`
|
|
1454
1454
|
`,"\\r":"\r","\\t":" "},Mr={"\\/":"/","\\\\":"\\","\\n":`
|
|
1455
|
-
`,"\\r":"\r","\\t":" ","\\&":"&"},Er=0,Nr=function(){this.buildCommandMap_()};Nr.prototype={processCommand:function(y,T,S){var F=this;y.operation(function(){y.curOp.isVimOp=!0,F._processCommand(y,T,S)})},_processCommand:function(y,T,S){var F=y.state.vim,W=Ve.registerController.getRegister(":"),z=W.toString(),q=new Be.StringStream(T);W.setText(T);var Y=S||{};Y.input=T;try{this.parseInput_(y,q,Y)}catch(ae){throw Dt(y,ae.toString()),ae}F.visualMode&&bn(y);var Z,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Z=this.matchCommand_(Y.commandName),Z){if(re=Z.name,Z.excludeFromCommandHistory&&W.setText(z),this.parseCommandArgs_(q,Y,Z),Z.type=="exToKey"){I(y,Z.toKeys,Z);return}if(Z.type=="exToEx"){this.processCommand(y,Z.toInput);return}}if(!re){Dt(y,'Not an editor command ":'+T+'"');return}try{Gs[re](y,Y),(!Z||!Z.possiblyAsync)&&Y.callback&&Y.callback()}catch(ae){throw Dt(y,ae.toString()),ae}},parseInput_:function(y,T,S){if(T.eatWhile(":"),T.eat("%")?(S.line=y.firstLine(),S.lineEnd=y.lastLine()):(S.line=this.parseLineSpec_(y,T),S.line!==void 0&&T.eat(",")&&(S.lineEnd=this.parseLineSpec_(y,T))),S.line==null)if(y.state.vim.visualMode){var F=Tr(y,y.state.vim,"<");S.selectionLine=F&&F.line,F=Tr(y,y.state.vim,">"),S.selectionLineEnd=F&&F.line}else S.selectionLine=y.getCursor().line;else S.selectionLine=S.line,S.selectionLineEnd=S.lineEnd;var W=T.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?S.commandName=W[1]:S.commandName=T.match(/.*/)[0],S},parseLineSpec_:function(y,T){var S=T.match(/^(\d+)/);if(S)return parseInt(S[1],10)-1;switch(T.next()){case".":return this.parseLineSpecOffset_(T,y.getCursor().line);case"$":return this.parseLineSpecOffset_(T,y.lastLine());case"'":var F=T.next(),W=Tr(y,y.state.vim,F);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(T,W.line);case"-":case"+":return T.backUp(1),this.parseLineSpecOffset_(T,y.getCursor().line);default:return T.backUp(1),void 0}},parseLineSpecOffset_:function(y,T){var S=y.match(/^([+-])?(\d+)/);if(S){var F=parseInt(S[2],10);S[1]=="-"?T-=F:T+=F}return T},parseCommandArgs_:function(y,T,S){if(!y.eol()){T.argString=y.match(/.*/)[0];var F=S.argDelimiter||/\s+/,W=kr(T.argString).split(F);W.length&&W[0]&&(T.args=W)}},matchCommand_:function(y){for(var T=y.length;T>0;T--){var S=y.substring(0,T);if(this.commandMap_[S]){var F=this.commandMap_[S];if(F.name.indexOf(y)===0)return F}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<Ri.length;y++){var T=Ri[y],S=T.shortName||T.name;this.commandMap_[S]=T}},map:function(y,T,S,F){if(y!=":"&&y.charAt(0)==":"){if(S)throw Error("Mode not supported for ex mappings");var W=y.substring(1);T!=":"&&T.charAt(0)==":"?this.commandMap_[W]={name:W,type:"exToEx",toInput:T.substring(1),user:!0}:this.commandMap_[W]={name:W,type:"exToKey",toKeys:T,user:!0}}else{var z={keys:y,type:"keyToKey",toKeys:T,noremap:!!F};S&&(z.context=S),zn.unshift(z)}},unmap:function(y,T){if(y!=":"&&y.charAt(0)==":"){if(T)throw Error("Mode not supported for ex mappings");var S=y.substring(1);if(this.commandMap_[S]&&this.commandMap_[S].user)return delete this.commandMap_[S],!0}else for(var F=y,W=0;W<zn.length;W++)if(F==zn[W].keys&&zn[W].context===T)return zn.splice(W,1),!0}};var Gs={colorscheme:function(y,T){if(!T.args||T.args.length<1){Dt(y,y.getOption("theme"));return}y.setOption("theme",T.args[0])},map:function(y,T,S,F){var W=T.args;if(!W||W.length<2){y&&Dt(y,"Invalid mapping: "+T.input);return}Dr.map(W[0],W[1],S,F)},imap:function(y,T){this.map(y,T,"insert")},nmap:function(y,T){this.map(y,T,"normal")},vmap:function(y,T){this.map(y,T,"visual")},omap:function(y,T){this.map(y,T,"operatorPending")},noremap:function(y,T){this.map(y,T,void 0,!0)},inoremap:function(y,T){this.map(y,T,"insert",!0)},nnoremap:function(y,T){this.map(y,T,"normal",!0)},vnoremap:function(y,T){this.map(y,T,"visual",!0)},onoremap:function(y,T){this.map(y,T,"operatorPending",!0)},unmap:function(y,T,S){var F=T.args;(!F||F.length<1||!Dr.unmap(F[0],S))&&y&&Dt(y,"No such mapping: "+T.input)},mapclear:function(y,T){wt.mapclear()},imapclear:function(y,T){wt.mapclear("insert")},nmapclear:function(y,T){wt.mapclear("normal")},vmapclear:function(y,T){wt.mapclear("visual")},omapclear:function(y,T){wt.mapclear("operatorPending")},move:function(y,T){Xn.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:T.line+1})},set:function(y,T){var S=T.args,F=T.setCfg||{};if(!S||S.length<1){y&&Dt(y,"Invalid mapping: "+T.input);return}var W=S[0].split("="),z=W[0],q=W[1],Y=!1,Z=!1;if(z.charAt(z.length-1)=="?"){if(q)throw Error("Trailing characters: "+T.argString);z=z.substring(0,z.length-1),Y=!0}else z.charAt(z.length-1)=="!"&&(z=z.substring(0,z.length-1),Z=!0);q===void 0&&z.substring(0,2)=="no"&&(z=z.substring(2),q=!1);var re=
|
|
1455
|
+
`,"\\r":"\r","\\t":" ","\\&":"&"},Er=0,Nr=function(){this.buildCommandMap_()};Nr.prototype={processCommand:function(y,T,S){var F=this;y.operation(function(){y.curOp.isVimOp=!0,F._processCommand(y,T,S)})},_processCommand:function(y,T,S){var F=y.state.vim,W=Ve.registerController.getRegister(":"),z=W.toString(),q=new Be.StringStream(T);W.setText(T);var Y=S||{};Y.input=T;try{this.parseInput_(y,q,Y)}catch(ae){throw Dt(y,ae.toString()),ae}F.visualMode&&bn(y);var Z,re;if(!Y.commandName)Y.line!==void 0&&(re="move");else if(Z=this.matchCommand_(Y.commandName),Z){if(re=Z.name,Z.excludeFromCommandHistory&&W.setText(z),this.parseCommandArgs_(q,Y,Z),Z.type=="exToKey"){I(y,Z.toKeys,Z);return}if(Z.type=="exToEx"){this.processCommand(y,Z.toInput);return}}if(!re){Dt(y,'Not an editor command ":'+T+'"');return}try{Gs[re](y,Y),(!Z||!Z.possiblyAsync)&&Y.callback&&Y.callback()}catch(ae){throw Dt(y,ae.toString()),ae}},parseInput_:function(y,T,S){if(T.eatWhile(":"),T.eat("%")?(S.line=y.firstLine(),S.lineEnd=y.lastLine()):(S.line=this.parseLineSpec_(y,T),S.line!==void 0&&T.eat(",")&&(S.lineEnd=this.parseLineSpec_(y,T))),S.line==null)if(y.state.vim.visualMode){var F=Tr(y,y.state.vim,"<");S.selectionLine=F&&F.line,F=Tr(y,y.state.vim,">"),S.selectionLineEnd=F&&F.line}else S.selectionLine=y.getCursor().line;else S.selectionLine=S.line,S.selectionLineEnd=S.lineEnd;var W=T.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return W?S.commandName=W[1]:S.commandName=T.match(/.*/)[0],S},parseLineSpec_:function(y,T){var S=T.match(/^(\d+)/);if(S)return parseInt(S[1],10)-1;switch(T.next()){case".":return this.parseLineSpecOffset_(T,y.getCursor().line);case"$":return this.parseLineSpecOffset_(T,y.lastLine());case"'":var F=T.next(),W=Tr(y,y.state.vim,F);if(!W)throw new Error("Mark not set");return this.parseLineSpecOffset_(T,W.line);case"-":case"+":return T.backUp(1),this.parseLineSpecOffset_(T,y.getCursor().line);default:return T.backUp(1),void 0}},parseLineSpecOffset_:function(y,T){var S=y.match(/^([+-])?(\d+)/);if(S){var F=parseInt(S[2],10);S[1]=="-"?T-=F:T+=F}return T},parseCommandArgs_:function(y,T,S){if(!y.eol()){T.argString=y.match(/.*/)[0];var F=S.argDelimiter||/\s+/,W=kr(T.argString).split(F);W.length&&W[0]&&(T.args=W)}},matchCommand_:function(y){for(var T=y.length;T>0;T--){var S=y.substring(0,T);if(this.commandMap_[S]){var F=this.commandMap_[S];if(F.name.indexOf(y)===0)return F}}return null},buildCommandMap_:function(){this.commandMap_={};for(var y=0;y<Ri.length;y++){var T=Ri[y],S=T.shortName||T.name;this.commandMap_[S]=T}},map:function(y,T,S,F){if(y!=":"&&y.charAt(0)==":"){if(S)throw Error("Mode not supported for ex mappings");var W=y.substring(1);T!=":"&&T.charAt(0)==":"?this.commandMap_[W]={name:W,type:"exToEx",toInput:T.substring(1),user:!0}:this.commandMap_[W]={name:W,type:"exToKey",toKeys:T,user:!0}}else{var z={keys:y,type:"keyToKey",toKeys:T,noremap:!!F};S&&(z.context=S),zn.unshift(z)}},unmap:function(y,T){if(y!=":"&&y.charAt(0)==":"){if(T)throw Error("Mode not supported for ex mappings");var S=y.substring(1);if(this.commandMap_[S]&&this.commandMap_[S].user)return delete this.commandMap_[S],!0}else for(var F=y,W=0;W<zn.length;W++)if(F==zn[W].keys&&zn[W].context===T)return zn.splice(W,1),!0}};var Gs={colorscheme:function(y,T){if(!T.args||T.args.length<1){Dt(y,y.getOption("theme"));return}y.setOption("theme",T.args[0])},map:function(y,T,S,F){var W=T.args;if(!W||W.length<2){y&&Dt(y,"Invalid mapping: "+T.input);return}Dr.map(W[0],W[1],S,F)},imap:function(y,T){this.map(y,T,"insert")},nmap:function(y,T){this.map(y,T,"normal")},vmap:function(y,T){this.map(y,T,"visual")},omap:function(y,T){this.map(y,T,"operatorPending")},noremap:function(y,T){this.map(y,T,void 0,!0)},inoremap:function(y,T){this.map(y,T,"insert",!0)},nnoremap:function(y,T){this.map(y,T,"normal",!0)},vnoremap:function(y,T){this.map(y,T,"visual",!0)},onoremap:function(y,T){this.map(y,T,"operatorPending",!0)},unmap:function(y,T,S){var F=T.args;(!F||F.length<1||!Dr.unmap(F[0],S))&&y&&Dt(y,"No such mapping: "+T.input)},mapclear:function(y,T){wt.mapclear()},imapclear:function(y,T){wt.mapclear("insert")},nmapclear:function(y,T){wt.mapclear("normal")},vmapclear:function(y,T){wt.mapclear("visual")},omapclear:function(y,T){wt.mapclear("operatorPending")},move:function(y,T){Xn.processCommand(y,y.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:T.line+1})},set:function(y,T){var S=T.args,F=T.setCfg||{};if(!S||S.length<1){y&&Dt(y,"Invalid mapping: "+T.input);return}var W=S[0].split("="),z=W[0],q=W[1],Y=!1,Z=!1;if(z.charAt(z.length-1)=="?"){if(q)throw Error("Trailing characters: "+T.argString);z=z.substring(0,z.length-1),Y=!0}else z.charAt(z.length-1)=="!"&&(z=z.substring(0,z.length-1),Z=!0);q===void 0&&z.substring(0,2)=="no"&&(z=z.substring(2),q=!1);var re=Kt[z]&&Kt[z].type=="boolean";if(re&&(Z?q=!k(z,y,F):q==null&&(q=!0)),!re&&q===void 0||Y){var ae=k(z,y,F);ae instanceof Error?Dt(y,ae.message):ae===!0||ae===!1?Dt(y," "+(ae?"":"no")+z):Dt(y," "+z+"="+ae)}else{var be=_(z,q,y,F);be instanceof Error&&Dt(y,be.message)}},setlocal:function(y,T){T.setCfg={scope:"local"},this.set(y,T)},setglobal:function(y,T){T.setCfg={scope:"global"},this.set(y,T)},registers:function(y,T){var S=T.args,F=Ve.registerController.registers,W=`----------Registers----------
|
|
1456
1456
|
|
|
1457
1457
|
`;if(S){var z;S=S.join("");for(var q=0;q<S.length;q++)if(z=S.charAt(q),!!Ve.registerController.isValidRegister(z)){var Y=F[z]||new B;W+='"'+z+" "+Y.toString()+`
|
|
1458
1458
|
`}}else for(var z in F){var Z=F[z].toString();Z.length&&(W+='"'+z+" "+Z+`
|
|
1459
|
-
`)}Dt(y,W)},sort:function(y,T){function S(){if(T.argString){var kt=new Be.StringStream(T.argString);if(kt.eat("!")&&(z=!0),kt.eol())return;if(!kt.eatSpace())return"Invalid arguments";var Mt=kt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!Mt&&!kt.eol())return"Invalid arguments";if(Mt[1]){q=Mt[1].indexOf("i")!=-1,Y=Mt[1].indexOf("u")!=-1;var hr=Mt[1].indexOf("d")!=-1||Mt[1].indexOf("n")!=-1&&1,Ir=Mt[1].indexOf("x")!=-1&&1,
|
|
1460
|
-
`),Le=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),Ge=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,ut=[],et=[];if(Z||re)for(var at=0;at<Oe.length;at++){var Sn=re?Oe[at].match(re):null;Sn&&Sn[0]!=""?ut.push(Sn):!re&&Le.exec(Oe[at])?ut.push(Oe[at]):et.push(Oe[at])}else et=Oe;if(ut.sort(re?W:F),re)for(var at=0;at<ut.length;at++)ut[at]=ut[at].input;else Z||et.sort(F);if(Oe=z?ut.concat(et):et.concat(ut),Y){var pt=Oe,
|
|
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),gn=!0),S=S.trimStart(),!S){Dt(y,"Argument is required.");return}var F=T.line;if(typeof F=="number")for(var W=isNaN(T.lineEnd)?F:T.lineEnd,z=F;z<=W;z++)y.setCursor(z,0),I(y,T.argString.trimStart()),y.state.vim.insertMode&&jr(y,!0);else I(y,T.argString.trimStart()),y.state.vim.insertMode&&jr(y,!0)},global:function(y,T){var S=T.argString;if(!S){Dt(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(),z=T.lineEnd||T.line||y.lastLine(),q=
|
|
1462
|
-
`));return}var we=0,Oe=function(){if(we<ae.length){var Le=ae[we++],Ge=y.getLineNumber(Le);if(Ge==null){Oe();return}var ut=Ge+1+Z;Dr.processCommand(y,ut,{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?wi(S,S[0]):[],W,z="",q,Y,Z,re=!1,ae=!1;if(F.length)W=F[0],k("pcre")&&W!==""&&(W=new RegExp(W).source),z=F[1],z!==void 0&&(k("pcre")?z=ni(z.replace(/([^\\])&/g,"$1$$&")):z=ss(z),Ve.lastSubstituteReplacePart=z),q=F[2]?F[2].split(" "):[];else if(S&&S.length){Dt(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{Dt(y,"Invalid regex: "+W);return}if(z=z||Ve.lastSubstituteReplacePart,z===void 0){Dt(y,"No previous substitute regular expression");return}var be=Mn(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);uo(y,re,ae,ve,we,Le,ke,z,T.callback)},startinsert:function(y,T){I(y,T.argString=="!"?"A":"i",{})},redo:Be.commands.redo,undo:Be.commands.undo,write:function(y){Be.commands.save?Be.commands.save(y):y.save&&y.save()},nohlsearch:function(y){$r(y)},yank:function(y){var T=Xe(y.getCursor()),S=T.line,F=y.getLine(S);Ve.registerController.pushText("0","yank",F,!0,!0)},delete:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;gs.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)),Zn.joinLines(y,{repeat:F-S},y.state.vim)},delmarks:function(y,T){if(!T.argString||!kr(T.argString)){Dt(y,"Argument required");return}for(var S=y.state.vim,F=new Be.StringStream(kr(T.argString));!F.eol();){F.eatSpace();var W=F.pos;if(!F.match(/[a-zA-Z]/,!1)){Dt(y,"Invalid argument: "+T.argString.substring(W));return}var z=F.next();if(F.match("-",!0)){if(!F.match(/[a-zA-Z]/,!1)){Dt(y,"Invalid argument: "+T.argString.substring(W));return}var q=z,Y=F.next();if(!(u(q)&&u(Y)||l(q)&&l(Y))){Dt(y,"Invalid argument: "+q+"-");return}var Z=q.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Dt(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[z]}}},Dr=new Nr;M("insertModeEscKeysTimeout",200,"number"),Be.Vim=wt;var Ur={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"},Ni=wt.handleKey.bind(wt);wt.handleKey=function(y,T,S){return y.operation(function(){return Ni(y,T,S)},!0)},D(),r.CodeMirror=Be;var Di=wt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,T,S,F,W){var z=this.state.vim||{},q=S.characterWidth,Y=S.lineHeight,Z=T.top,re=T.left;if(!z.insertMode){var ae=F.cursor?xr.comparePoints(F.cursor,F.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ae&&re>q&&(re-=q)}!z.insertMode&&z.status&&(Y/=2,Z+=Y),ho.translate(y,re,Z),ho.setStyle(y.style,"width",q+"px"),ho.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var T=y.state.cm,S=Di(T);if(!S.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,T,S,F,W){var z=y.editor,q=z.state.cm,Y=Di(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&&!Wo.isMac&&z.getCopyText())return z.once("copy",function(){Y.insertMode?z.selection.clearSelection():q.operation(function(){bn(q)})}),{command:"null",passEvent:!0};if(S=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Z=Mn(q),re=Z.getOverlay();re&&q.removeOverlay(re)}if(T==-1||T&1||T===0&&S.length>1){var ae=Y.insertMode,be=Ks(T,S,W||{},Y);Y.status==null&&(Y.status="");var ke=Fo(q,be,"user");return Y=Di(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=Di(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 Be(y);y.state.cm=S,y.$vimModeHandler=this,h(S),Di(S).status=null,S.on("vim-command-done",function(){S.virtualSelectionMode()||(Di(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;f(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=Di(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}},wt.defineOption({name:"wrap",set:function(y,T){T&&T.ace.setOption("wrap",y)},type:"boolean"},!1),wt.defineEx("write","w",function(){console.log(":write is not implemented")}),zn.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"}}),zn.push({keys:"gq",type:"operator",operator:"hardWrap"}),wt.defineOperator("hardWrap",function(y,T,S,F,W){var z=S[0].anchor.line,q=S[0].head.line;return T.linewise&&q--,$o(y.ace,{startRow:z,endRow:q}),Ne(q,0)}),M("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)}}),Zn.aceCommand=function(y,T,S){y.vimCmd=T,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Ui):Ui(null,y.ace)},Zn.fold=function(y,T,S){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},Ho=zn.length,r.handler.defaultKeymap=zn,r.handler.actions=Zn,r.Vim=wt}),function(){ace.require(["ace/keyboard/vim"],function(t){n&&(n.exports=t)})}()}(Yg)),Yg.exports}AA();var Zg={},Qg;function SA(){return Qg||(Qg=1,function(n){(function(){var e={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 t(b){return d(g(b),arguments)}function r(b,h){return t.apply(null,[b].concat(h||[]))}function d(b,h){var f=1,s=b.length,a,u="",c,i,l,m,w,x,M,_;for(c=0;c<s;c++)if(typeof b[c]=="string")u+=b[c];else if(typeof b[c]=="object"){if(l=b[c],l.keys)for(a=h[f],i=0;i<l.keys.length;i++){if(a==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[i],l.keys[i-1]));a=a[l.keys[i]]}else l.param_no?a=h[l.param_no]:a=h[f++];if(e.not_type.test(l.type)&&e.not_primitive.test(l.type)&&a instanceof Function&&(a=a()),e.numeric_arg.test(l.type)&&typeof a!="number"&&isNaN(a))throw new TypeError(t("[sprintf] expecting number but found %T",a));switch(e.number.test(l.type)&&(M=a>=0),l.type){case"b":a=parseInt(a,10).toString(2);break;case"c":a=String.fromCharCode(parseInt(a,10));break;case"d":case"i":a=parseInt(a,10);break;case"j":a=JSON.stringify(a,null,l.width?parseInt(l.width):0);break;case"e":a=l.precision?parseFloat(a).toExponential(l.precision):parseFloat(a).toExponential();break;case"f":a=l.precision?parseFloat(a).toFixed(l.precision):parseFloat(a);break;case"g":a=l.precision?String(Number(a.toPrecision(l.precision))):parseFloat(a);break;case"o":a=(parseInt(a,10)>>>0).toString(8);break;case"s":a=String(a),a=l.precision?a.substring(0,l.precision):a;break;case"t":a=String(!!a),a=l.precision?a.substring(0,l.precision):a;break;case"T":a=Object.prototype.toString.call(a).slice(8,-1).toLowerCase(),a=l.precision?a.substring(0,l.precision):a;break;case"u":a=parseInt(a,10)>>>0;break;case"v":a=a.valueOf(),a=l.precision?a.substring(0,l.precision):a;break;case"x":a=(parseInt(a,10)>>>0).toString(16);break;case"X":a=(parseInt(a,10)>>>0).toString(16).toUpperCase();break}e.json.test(l.type)?u+=a:(e.number.test(l.type)&&(!M||l.sign)?(_=M?"+":"-",a=a.toString().replace(e.sign,"")):_="",w=l.pad_char?l.pad_char==="0"?"0":l.pad_char.charAt(1):" ",x=l.width-(_+a).length,m=l.width&&x>0?w.repeat(x):"",u+=l.align?_+a+m:w==="0"?_+m+a:m+_+a)}return u}var p=Object.create(null);function g(b){if(p[b])return p[b];for(var h=b,f,s=[],a=0;h;){if((f=e.text.exec(h))!==null)s.push(f[0]);else if((f=e.modulo.exec(h))!==null)s.push("%");else if((f=e.placeholder.exec(h))!==null){if(f[2]){a|=1;var u=[],c=f[2],i=[];if((i=e.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=e.key_access.exec(c))!==null)u.push(i[1]);else if((i=e.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");f[2]=u}else a|=2;if(a===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");s.push({placeholder:f[0],param_no:f[1],keys:f[2],sign:f[3],pad_char:f[4],align:f[5],width:f[6],precision:f[7],type:f[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(f[0].length)}return p[b]=s}n.sprintf=t,n.vsprintf=r,typeof window<"u"&&(window.sprintf=t,window.vsprintf=r)})()}(Zg)),Zg}SA();var ec={exports:{}};/**
|
|
1459
|
+
`)}Dt(y,W)},sort:function(y,T){function S(){if(T.argString){var kt=new Be.StringStream(T.argString);if(kt.eat("!")&&(z=!0),kt.eol())return;if(!kt.eatSpace())return"Invalid arguments";var Mt=kt.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!Mt&&!kt.eol())return"Invalid arguments";if(Mt[1]){q=Mt[1].indexOf("i")!=-1,Y=Mt[1].indexOf("u")!=-1;var hr=Mt[1].indexOf("d")!=-1||Mt[1].indexOf("n")!=-1&&1,Ir=Mt[1].indexOf("x")!=-1&&1,Dn=Mt[1].indexOf("o")!=-1&&1;if(hr+Ir+Dn>1)return"Invalid arguments";Z=hr&&"decimal"||Ir&&"hex"||Dn&&"octal"}Mt[2]&&(re=new RegExp(Mt[2].substr(1,Mt[2].length-2),q?"i":""))}}function F(kt,Mt){if(z){var hr;hr=kt,kt=Mt,Mt=hr}q&&(kt=kt.toLowerCase(),Mt=Mt.toLowerCase());var Ir=Z&&Le.exec(kt),Dn=Z&&Le.exec(Mt);return Ir?(Ir=parseInt((Ir[1]+Ir[2]).toLowerCase(),Ge),Dn=parseInt((Dn[1]+Dn[2]).toLowerCase(),Ge),Ir-Dn):kt<Mt?-1:1}function W(kt,Mt){if(z){var hr;hr=kt,kt=Mt,Mt=hr}return q&&(kt[0]=kt[0].toLowerCase(),Mt[0]=Mt[0].toLowerCase()),kt[0]<Mt[0]?-1:1}var z,q,Y,Z,re,ae=S();if(ae){Dt(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,Ht(y,ke)),Oe=y.getRange(ve,we).split(`
|
|
1460
|
+
`),Le=re||(Z=="decimal"?/(-?)([\d]+)/:Z=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:Z=="octal"?/([0-7]+)/:null),Ge=Z=="decimal"?10:Z=="hex"?16:Z=="octal"?8:null,ut=[],et=[];if(Z||re)for(var at=0;at<Oe.length;at++){var Sn=re?Oe[at].match(re):null;Sn&&Sn[0]!=""?ut.push(Sn):!re&&Le.exec(Oe[at])?ut.push(Oe[at]):et.push(Oe[at])}else et=Oe;if(ut.sort(re?W:F),re)for(var at=0;at<ut.length;at++)ut[at]=ut[at].input;else Z||et.sort(F);if(Oe=z?ut.concat(et):et.concat(ut),Y){var pt=Oe,Nn;Oe=[];for(var at=0;at<pt.length;at++)pt[at]!=Nn&&Oe.push(pt[at]),Nn=pt[at]}y.replaceRange(Oe.join(`
|
|
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),gn=!0),S=S.trimStart(),!S){Dt(y,"Argument is required.");return}var F=T.line;if(typeof F=="number")for(var W=isNaN(T.lineEnd)?F:T.lineEnd,z=F;z<=W;z++)y.setCursor(z,0),I(y,T.argString.trimStart()),y.state.vim.insertMode&&jr(y,!0);else I(y,T.argString.trimStart()),y.state.vim.insertMode&&jr(y,!0)},global:function(y,T){var S=T.argString;if(!S){Dt(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(),z=T.lineEnd||T.line||y.lastLine(),q=On(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{Dt(y,"Invalid regex: "+Y);return}for(var re=En(y).getQuery(),ae=[],be=W;be<=z;be++){var ke=y.getLine(be),ve=re.test(ke);ve!==F&&ae.push(Z?y.getLineHandle(be):ke)}if(!Z){Dt(y,ae.join(`
|
|
1462
|
+
`));return}var we=0,Oe=function(){if(we<ae.length){var Le=ae[we++],Ge=y.getLineNumber(Le);if(Ge==null){Oe();return}var ut=Ge+1+Z;Dr.processCommand(y,ut,{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?wi(S,S[0]):[],W,z="",q,Y,Z,re=!1,ae=!1;if(F.length)W=F[0],k("pcre")&&W!==""&&(W=new RegExp(W).source),z=F[1],z!==void 0&&(k("pcre")?z=ni(z.replace(/([^\\])&/g,"$1$$&")):z=ss(z),Ve.lastSubstituteReplacePart=z),q=F[2]?F[2].split(" "):[];else if(S&&S.length){Dt(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{Dt(y,"Invalid regex: "+W);return}if(z=z||Ve.lastSubstituteReplacePart,z===void 0){Dt(y,"No previous substitute regular expression");return}var be=En(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);uo(y,re,ae,ve,we,Le,ke,z,T.callback)},startinsert:function(y,T){I(y,T.argString=="!"?"A":"i",{})},redo:Be.commands.redo,undo:Be.commands.undo,write:function(y){Be.commands.save?Be.commands.save(y):y.save&&y.save()},nohlsearch:function(y){$r(y)},yank:function(y){var T=Xe(y.getCursor()),S=T.line,F=y.getLine(S);Ve.registerController.pushText("0","yank",F,!0,!0)},delete:function(y,T){var S=T.selectionLine,F=isNaN(T.selectionLineEnd)?S:T.selectionLineEnd;gs.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)),Zn.joinLines(y,{repeat:F-S},y.state.vim)},delmarks:function(y,T){if(!T.argString||!kr(T.argString)){Dt(y,"Argument required");return}for(var S=y.state.vim,F=new Be.StringStream(kr(T.argString));!F.eol();){F.eatSpace();var W=F.pos;if(!F.match(/[a-zA-Z]/,!1)){Dt(y,"Invalid argument: "+T.argString.substring(W));return}var z=F.next();if(F.match("-",!0)){if(!F.match(/[a-zA-Z]/,!1)){Dt(y,"Invalid argument: "+T.argString.substring(W));return}var q=z,Y=F.next();if(!(u(q)&&u(Y)||l(q)&&l(Y))){Dt(y,"Invalid argument: "+q+"-");return}var Z=q.charCodeAt(0),re=Y.charCodeAt(0);if(Z>=re){Dt(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[z]}}},Dr=new Nr;M("insertModeEscKeysTimeout",200,"number"),Be.Vim=wt;var Ur={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"},Ni=wt.handleKey.bind(wt);wt.handleKey=function(y,T,S){return y.operation(function(){return Ni(y,T,S)},!0)},D(),r.CodeMirror=Be;var Di=wt.maybeInitVimState_;r.handler={$id:"ace/keyboard/vim",drawCursor:function(y,T,S,F,W){var z=this.state.vim||{},q=S.characterWidth,Y=S.lineHeight,Z=T.top,re=T.left;if(!z.insertMode){var ae=F.cursor?xr.comparePoints(F.cursor,F.start)<=0:W.selection.isBackwards()||W.selection.isEmpty();!ae&&re>q&&(re-=q)}!z.insertMode&&z.status&&(Y/=2,Z+=Y),ho.translate(y,re,Z),ho.setStyle(y.style,"width",q+"px"),ho.setStyle(y.style,"height",Y+"px")},$getDirectionForHighlight:function(y){var T=y.state.cm,S=Di(T);if(!S.insertMode)return y.session.selection.isBackwards()||y.session.selection.isEmpty()},handleKeyboard:function(y,T,S,F,W){var z=y.editor,q=z.state.cm,Y=Di(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&&!Wo.isMac&&z.getCopyText())return z.once("copy",function(){Y.insertMode?z.selection.clearSelection():q.operation(function(){bn(q)})}),{command:"null",passEvent:!0};if(S=="esc"&&!Y.insertMode&&!Y.visualMode&&!q.ace.inMultiSelectMode){var Z=En(q),re=Z.getOverlay();re&&q.removeOverlay(re)}if(T==-1||T&1||T===0&&S.length>1){var ae=Y.insertMode,be=Ks(T,S,W||{},Y);Y.status==null&&(Y.status="");var ke=Fo(q,be,"user");return Y=Di(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=Di(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 Be(y);y.state.cm=S,y.$vimModeHandler=this,h(S),Di(S).status=null,S.on("vim-command-done",function(){S.virtualSelectionMode()||(Di(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;f(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=Di(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}},wt.defineOption({name:"wrap",set:function(y,T){T&&T.ace.setOption("wrap",y)},type:"boolean"},!1),wt.defineEx("write","w",function(){console.log(":write is not implemented")}),zn.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"}}),zn.push({keys:"gq",type:"operator",operator:"hardWrap"}),wt.defineOperator("hardWrap",function(y,T,S,F,W){var z=S[0].anchor.line,q=S[0].head.line;return T.linewise&&q--,To(y.ace,{startRow:z,endRow:q}),Ne(q,0)}),M("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)}}),Zn.aceCommand=function(y,T,S){y.vimCmd=T,y.ace.inVirtualSelectionMode?y.ace.on("beforeEndOperation",Ui):Ui(null,y.ace)},Zn.fold=function(y,T,S){y.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(T.all?2:0)+(T.open?1:0)])},Ho=zn.length,r.handler.defaultKeymap=zn,r.handler.actions=Zn,r.Vim=wt}),function(){ace.require(["ace/keyboard/vim"],function(t){n&&(n.exports=t)})}()}(Yg)),Yg.exports}AA();var Zg={},Qg;function SA(){return Qg||(Qg=1,function(n){(function(){var e={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 t(b){return d(g(b),arguments)}function r(b,h){return t.apply(null,[b].concat(h||[]))}function d(b,h){var f=1,s=b.length,a,u="",c,i,l,m,w,x,M,_;for(c=0;c<s;c++)if(typeof b[c]=="string")u+=b[c];else if(typeof b[c]=="object"){if(l=b[c],l.keys)for(a=h[f],i=0;i<l.keys.length;i++){if(a==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[i],l.keys[i-1]));a=a[l.keys[i]]}else l.param_no?a=h[l.param_no]:a=h[f++];if(e.not_type.test(l.type)&&e.not_primitive.test(l.type)&&a instanceof Function&&(a=a()),e.numeric_arg.test(l.type)&&typeof a!="number"&&isNaN(a))throw new TypeError(t("[sprintf] expecting number but found %T",a));switch(e.number.test(l.type)&&(M=a>=0),l.type){case"b":a=parseInt(a,10).toString(2);break;case"c":a=String.fromCharCode(parseInt(a,10));break;case"d":case"i":a=parseInt(a,10);break;case"j":a=JSON.stringify(a,null,l.width?parseInt(l.width):0);break;case"e":a=l.precision?parseFloat(a).toExponential(l.precision):parseFloat(a).toExponential();break;case"f":a=l.precision?parseFloat(a).toFixed(l.precision):parseFloat(a);break;case"g":a=l.precision?String(Number(a.toPrecision(l.precision))):parseFloat(a);break;case"o":a=(parseInt(a,10)>>>0).toString(8);break;case"s":a=String(a),a=l.precision?a.substring(0,l.precision):a;break;case"t":a=String(!!a),a=l.precision?a.substring(0,l.precision):a;break;case"T":a=Object.prototype.toString.call(a).slice(8,-1).toLowerCase(),a=l.precision?a.substring(0,l.precision):a;break;case"u":a=parseInt(a,10)>>>0;break;case"v":a=a.valueOf(),a=l.precision?a.substring(0,l.precision):a;break;case"x":a=(parseInt(a,10)>>>0).toString(16);break;case"X":a=(parseInt(a,10)>>>0).toString(16).toUpperCase();break}e.json.test(l.type)?u+=a:(e.number.test(l.type)&&(!M||l.sign)?(_=M?"+":"-",a=a.toString().replace(e.sign,"")):_="",w=l.pad_char?l.pad_char==="0"?"0":l.pad_char.charAt(1):" ",x=l.width-(_+a).length,m=l.width&&x>0?w.repeat(x):"",u+=l.align?_+a+m:w==="0"?_+m+a:m+_+a)}return u}var p=Object.create(null);function g(b){if(p[b])return p[b];for(var h=b,f,s=[],a=0;h;){if((f=e.text.exec(h))!==null)s.push(f[0]);else if((f=e.modulo.exec(h))!==null)s.push("%");else if((f=e.placeholder.exec(h))!==null){if(f[2]){a|=1;var u=[],c=f[2],i=[];if((i=e.key.exec(c))!==null)for(u.push(i[1]);(c=c.substring(i[0].length))!=="";)if((i=e.key_access.exec(c))!==null)u.push(i[1]);else if((i=e.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");f[2]=u}else a|=2;if(a===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");s.push({placeholder:f[0],param_no:f[1],keys:f[2],sign:f[3],pad_char:f[4],align:f[5],width:f[6],precision:f[7],type:f[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");h=h.substring(f[0].length)}return p[b]=s}n.sprintf=t,n.vsprintf=r,typeof window<"u"&&(window.sprintf=t,window.vsprintf=r)})()}(Zg)),Zg}SA();var ec={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 _A=ec.exports,Jg;function $A(){return Jg||(Jg=1,function(n,e){(function(){var t,r="4.17.21",d=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",b="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",f=500,s="__lodash_placeholder__",a=1,u=2,c=4,i=1,l=2,m=1,w=2,x=4,M=8,_=16,k=32,C=64,L=128,D=256,R=512,I=30,H="...",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",m],["bindKey",w],["curry",M],["curryRight",_],["flip",R],["partial",k],["partialRight",C],["rearg",D]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Je="[object Error]",Xe="[object Function]",ht="[object GeneratorFunction]",st="[object Map]",dt="[object Number]",Qt="[object Null]",$n="[object Object]",Ht="[object Promise]",kr="[object Proxy]",fn="[object RegExp]",Wn="[object Set]",ir="[object String]",Or="[object Symbol]",bt="[object Undefined]",qe="[object WeakMap]",Nt="[object WeakSet]",tn="[object ArrayBuffer]",Bn="[object DataView]",Ar="[object Float32Array]",vr="[object Float64Array]",bn="[object Int8Array]",qn="[object Int16Array]",Hn="[object Int32Array]",Xt="[object Uint8Array]",dn="[object Uint8ClampedArray]",Hr="[object Uint16Array]",Jr="[object Uint32Array]",ei=/\b__p \+= '';/g,Ii=/\b(__p \+=) '' \+/g,gi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kn=/&(?:amp|lt|gt|quot|#39);/g,co=/[&<>"']/g,mi=RegExp(Kn.source),zs=RegExp(co.source),ti=/<%-([\s\S]+?)%>/g,Rn=/<%([\s\S]+?)%>/g,vi=/<%=([\s\S]+?)%>/g,os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yi=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,bi=RegExp(yr.source),Mn=/^\s+/,Ln=/\s/,Sr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wi=/\{\n\/\* \[wrapped with (.+)\] \*/,ko=/,? & /,Ao=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ss=/[()=,{}\[\]\/\s]/,ni=/\\(\\)?/g,xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zr=/\w*$/,Dt=/^[-+]0x[0-9a-f]+$/i,No=/^0b[01]+$/i,_r=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tt=/($^)/,Zt=/['\n\r\u2028\u2029\\]/g,Vt="\\ud800-\\udfff",$r="\\u0300-\\u036f",br="\\ufe20-\\ufe2f",Gn="\\u20d0-\\u20ff",Tr=$r+br+Gn,wn="\\u2700-\\u27bf",uo="a-z\\xdf-\\xf6\\xf8-\\xff",jr="\\xac\\xb1\\xd7\\xf7",as="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",js="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ls="A-Z\\xc0-\\xd6\\xd8-\\xde",wr="\\ufe0e\\ufe0f",Vs=jr+as+js+Us,Do="['’]",cs="["+Vt+"]",us="["+Vs+"]",So="["+Tr+"]",qs="\\d+",_a="["+wn+"]",hs="["+uo+"]",ds="[^"+Vt+Vs+qs+wn+uo+ls+"]",Ks="\\ud83c[\\udffb-\\udfff]",ps="(?:"+So+"|"+Ks+")",Fo="[^"+Vt+"]",Ui="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",_o="["+ls+"]",ho="\\u200d",$a="(?:"+hs+"|"+ds+")",yl="(?:"+_o+"|"+ds+")",Po="(?:"+Do+"(?:d|ll|m|re|s|t|ve))?",po="(?:"+Do+"(?:D|LL|M|RE|S|T|VE))?",Wo=ps+"?",fs="["+wr+"]?",Bo="(?:"+ho+"(?:"+[Fo,Ui,xr].join("|")+")"+fs+Wo+")*",Ta="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$o="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Be=fs+Wo+Bo,Ma="(?:"+[_a,Ui,xr].join("|")+")"+Be,Ne="(?:"+[Fo+So+"?",So,Ui,xr,cs].join("|")+")",zn=RegExp(Do,"g"),Ho=RegExp(So,"g"),Ri=RegExp(Ks+"(?="+Ks+")|"+Ne+Be,"g"),or=RegExp([_o+"?"+hs+"+"+Po+"(?="+[us,_o,"$"].join("|")+")",yl+"+"+po+"(?="+[us,_o+$a,"$"].join("|")+")",_o+"?"+$a+"+"+Po,_o+"+"+po,$o,Ta,qs,Ma].join("|"),"g"),Ea=RegExp("["+ho+Vt+Tr+wr+"]"),zo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],To=-1,an={};an[Ar]=an[vr]=an[bn]=an[qn]=an[Hn]=an[Xt]=an[dn]=an[Hr]=an[Jr]=!0,an[se]=an[de]=an[tn]=an[_e]=an[Bn]=an[Te]=an[Je]=an[Xe]=an[st]=an[dt]=an[$n]=an[fn]=an[Wn]=an[ir]=an[qe]=!1;var nn={};nn[se]=nn[de]=nn[tn]=nn[Bn]=nn[_e]=nn[Te]=nn[Ar]=nn[vr]=nn[bn]=nn[qn]=nn[Hn]=nn[st]=nn[dt]=nn[$n]=nn[fn]=nn[Wn]=nn[ir]=nn[Or]=nn[Xt]=nn[dn]=nn[Hr]=nn[Jr]=!0,nn[Je]=nn[Xe]=nn[qe]=!1;var ln={À:"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"},qt={"&":"&","<":"<",">":">",'"':""","'":"'"},qi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Yn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,An=parseInt,wt=typeof ns=="object"&&ns&&ns.Object===Object&&ns,ri=typeof self=="object"&&self&&self.Object===Object&&self,gn=wt||ri||Function("return this")(),En=e&&!e.nodeType&&e,ur=En&&!0&&n&&!n.nodeType&&n,ii=ur&&ur.exports===En,Ki=ii&&wt.process,Xn=function(){try{var fe=ur&&ur.require&&ur.require("util").types;return fe||Ki&&Ki.binding&&Ki.binding("util")}catch{}}(),Ci=Xn&&Xn.isArrayBuffer,gs=Xn&&Xn.isDate,Zn=Xn&&Xn.isMap,Li=Xn&&Xn.isRegExp,Oi=Xn&&Xn.isSet,Gi=Xn&&Xn.isTypedArray;function Mr(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 Er(fe,$e,Ce,Ke){for(var ft=-1,Et=fe==null?0:fe.length;++ft<Et;){var Jt=fe[ft];$e(Ke,Jt,Ce(Jt),fe)}return Ke}function Nr(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length;++Ce<Ke&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Gs(fe,$e){for(var Ce=fe==null?0:fe.length;Ce--&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Dr(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length;++Ce<Ke;)if(!$e(fe[Ce],Ce,fe))return!1;return!0}function Ur(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length,ft=0,Et=[];++Ce<Ke;){var Jt=fe[Ce];$e(Jt,Ce,fe)&&(Et[ft++]=Jt)}return Et}function Ni(fe,$e){var Ce=fe==null?0:fe.length;return!!Ce&&ae(fe,$e,0)>-1}function Di(fe,$e,Ce){for(var Ke=-1,ft=fe==null?0:fe.length;++Ke<ft;)if(Ce($e,fe[Ke]))return!0;return!1}function y(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length,ft=Array(Ke);++Ce<Ke;)ft[Ce]=$e(fe[Ce],Ce,fe);return ft}function T(fe,$e){for(var Ce=-1,Ke=$e.length,ft=fe.length;++Ce<Ke;)fe[ft+Ce]=$e[Ce];return fe}function S(fe,$e,Ce,Ke){var ft=-1,Et=fe==null?0:fe.length;for(Ke&&Et&&(Ce=fe[++ft]);++ft<Et;)Ce=$e(Ce,fe[ft],ft,fe);return Ce}function F(fe,$e,Ce,Ke){var ft=fe==null?0:fe.length;for(Ke&&ft&&(Ce=fe[--ft]);ft--;)Ce=$e(Ce,fe[ft],ft,fe);return Ce}function W(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length;++Ce<Ke;)if($e(fe[Ce],Ce,fe))return!0;return!1}var z=we("length");function q(fe){return fe.split("")}function Y(fe){return fe.match(Ao)||[]}function Z(fe,$e,Ce){var Ke;return Ce(fe,function(ft,Et,Jt){if($e(ft,Et,Jt))return Ke=Et,!1}),Ke}function re(fe,$e,Ce,Ke){for(var ft=fe.length,Et=Ce+(Ke?1:-1);Ke?Et--:++Et<ft;)if($e(fe[Et],Et,fe))return Et;return-1}function ae(fe,$e,Ce){return $e===$e?tt(fe,$e,Ce):re(fe,ke,Ce)}function be(fe,$e,Ce,Ke){for(var ft=Ce-1,Et=fe.length;++ft<Et;)if(Ke(fe[ft],$e))return ft;return-1}function ke(fe){return fe!==fe}function ve(fe,$e){var Ce=fe==null?0:fe.length;return Ce?ut(fe,$e)/Ce:Q}function we(fe){return function($e){return $e==null?t:$e[fe]}}function Oe(fe){return function($e){return fe==null?t:fe[$e]}}function Le(fe,$e,Ce,Ke,ft){return ft(fe,function(Et,Jt,Lt){Ce=Ke?(Ke=!1,Et):$e(Ce,Et,Jt,Lt)}),Ce}function Ge(fe,$e){var Ce=fe.length;for(fe.sort($e);Ce--;)fe[Ce]=fe[Ce].value;return fe}function ut(fe,$e){for(var Ce,Ke=-1,ft=fe.length;++Ke<ft;){var Et=$e(fe[Ke]);Et!==t&&(Ce=Ce===t?Et:Ce+Et)}return Ce}function et(fe,$e){for(var Ce=-1,Ke=Array(fe);++Ce<fe;)Ke[Ce]=$e(Ce);return Ke}function at(fe,$e){return y($e,function(Ce){return[Ce,fe[Ce]]})}function Sn(fe){return fe&&fe.slice(0,Ft(fe)+1).replace(Mn,"")}function pt(fe){return function($e){return fe($e)}}function On(fe,$e){return y($e,function(Ce){return fe[Ce]})}function kt(fe,$e){return fe.has($e)}function Mt(fe,$e){for(var Ce=-1,Ke=fe.length;++Ce<Ke&&ae($e,fe[Ce],0)>-1;);return Ce}function hr(fe,$e){for(var Ce=fe.length;Ce--&&ae($e,fe[Ce],0)>-1;);return Ce}function Ir(fe,$e){for(var Ce=fe.length,Ke=0;Ce--;)fe[Ce]===$e&&++Ke;return Ke}var Nn=Oe(ln),V=Oe(qt);function X(fe){return"\\"+Yn[fe]}function ie(fe,$e){return fe==null?t:fe[$e]}function oe(fe){return Ea.test(fe)}function ge(fe){return zo.test(fe)}function xe(fe){for(var $e,Ce=[];!($e=fe.next()).done;)Ce.push($e.value);return Ce}function Ee(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ke,ft){Ce[++$e]=[ft,Ke]}),Ce}function We(fe,$e){return function(Ce){return fe($e(Ce))}}function He(fe,$e){for(var Ce=-1,Ke=fe.length,ft=0,Et=[];++Ce<Ke;){var Jt=fe[Ce];(Jt===$e||Jt===s)&&(fe[Ce]=s,Et[ft++]=Ce)}return Et}function Ye(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ke){Ce[++$e]=Ke}),Ce}function Qe(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ke){Ce[++$e]=[Ke,Ke]}),Ce}function tt(fe,$e,Ce){for(var Ke=Ce-1,ft=fe.length;++Ke<ft;)if(fe[Ke]===$e)return Ke;return-1}function xt(fe,$e,Ce){for(var Ke=Ce+1;Ke--;)if(fe[Ke]===$e)return Ke;return Ke}function Wt(fe){return oe(fe)?ct(fe):z(fe)}function At(fe){return oe(fe)?xn(fe):q(fe)}function Ft(fe){for(var $e=fe.length;$e--&&Ln.test(fe.charAt($e)););return $e}var gt=Oe(qi);function ct(fe){for(var $e=Ri.lastIndex=0;Ri.test(fe);)++$e;return $e}function xn(fe){return fe.match(Ri)||[]}function Dn(fe){return fe.match(or)||[]}var dr=function fe($e){$e=$e==null?gn:Gt.defaults(gn.Object(),$e,Gt.pick(gn,Vi));var Ce=$e.Array,Ke=$e.Date,ft=$e.Error,Et=$e.Function,Jt=$e.Math,Lt=$e.Object,oi=$e.RegExp,Yi=$e.String,mn=$e.TypeError,Rr=Ce.prototype,jo=Et.prototype,Qn=Lt.prototype,Ys=$e["__core-js_shared__"],Uc=jo.toString,pn=Qn.hasOwnProperty,BR=0,v0=function(){var o=/[^.]+$/.exec(Ys&&Ys.keys&&Ys.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Vc=Qn.toString,HR=Uc.call(Lt),zR=gn._,jR=oi("^"+Uc.call(pn).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qc=ii?$e.Buffer:t,ms=$e.Symbol,Kc=$e.Uint8Array,y0=qc?qc.allocUnsafe:t,Gc=We(Lt.getPrototypeOf,Lt),b0=Lt.create,w0=Qn.propertyIsEnumerable,Yc=Rr.splice,x0=ms?ms.isConcatSpreadable:t,bl=ms?ms.iterator:t,Xs=ms?ms.toStringTag:t,Xc=function(){try{var o=ta(Lt,"defineProperty");return o({},"",{}),o}catch{}}(),UR=$e.clearTimeout!==gn.clearTimeout&&$e.clearTimeout,VR=Ke&&Ke.now!==gn.Date.now&&Ke.now,qR=$e.setTimeout!==gn.setTimeout&&$e.setTimeout,Zc=Jt.ceil,Qc=Jt.floor,Qd=Lt.getOwnPropertySymbols,KR=qc?qc.isBuffer:t,C0=$e.isFinite,GR=Rr.join,YR=We(Lt.keys,Lt),Cr=Jt.max,Vr=Jt.min,XR=Ke.now,ZR=$e.parseInt,k0=Jt.random,QR=Rr.reverse,Jd=ta($e,"DataView"),wl=ta($e,"Map"),ep=ta($e,"Promise"),Ia=ta($e,"Set"),xl=ta($e,"WeakMap"),Cl=ta(Lt,"create"),Jc=xl&&new xl,Ra={},JR=na(Jd),eL=na(wl),tL=na(ep),nL=na(Ia),rL=na(xl),eu=ms?ms.prototype:t,kl=eu?eu.valueOf:t,A0=eu?eu.toString:t;function ee(o){if(Jn(o)&&!St(o)&&!(o instanceof Kt)){if(o instanceof Xi)return o;if(pn.call(o,"__wrapped__"))return Sw(o)}return new Xi(o)}var La=function(){function o(){}return function(v){if(!jn(v))return{};if(b0)return b0(v);o.prototype=v;var E=new o;return o.prototype=t,E}}();function tu(){}function Xi(o,v){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=t}ee.templateSettings={escape:ti,evaluate:Rn,interpolate:vi,variable:"",imports:{_:ee}},ee.prototype=tu.prototype,ee.prototype.constructor=ee,Xi.prototype=La(tu.prototype),Xi.prototype.constructor=Xi;function Kt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function iL(){var o=new Kt(this.__wrapped__);return o.__actions__=ki(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=ki(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=ki(this.__views__),o}function oL(){if(this.__filtered__){var o=new Kt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function sL(){var o=this.__wrapped__.value(),v=this.__dir__,E=St(o),j=v<0,G=E?o.length:0,te=yO(0,G,this.__views__),ue=te.start,pe=te.end,ye=pe-ue,Ie=j?pe:ue-1,Re=this.__iteratees__,De=Re.length,Ze=0,lt=Vr(ye,this.__takeCount__);if(!E||!j&&G==ye&<==ye)return G0(o,this.__actions__);var vt=[];e:for(;ye--&&Ze<lt;){Ie+=v;for(var Ot=-1,yt=o[Ie];++Ot<De;){var zt=Re[Ot],Yt=zt.iteratee,Wi=zt.type,li=Yt(yt);if(Wi==A)yt=li;else if(!li){if(Wi==$)continue e;break e}}vt[Ze++]=yt}return vt}Kt.prototype=La(tu.prototype),Kt.prototype.constructor=Kt;function Zs(o){var v=-1,E=o==null?0:o.length;for(this.clear();++v<E;){var j=o[v];this.set(j[0],j[1])}}function aL(){this.__data__=Cl?Cl(null):{},this.size=0}function lL(o){var v=this.has(o)&&delete this.__data__[o];return this.size-=v?1:0,v}function cL(o){var v=this.__data__;if(Cl){var E=v[o];return E===h?t:E}return pn.call(v,o)?v[o]:t}function uL(o){var v=this.__data__;return Cl?v[o]!==t:pn.call(v,o)}function hL(o,v){var E=this.__data__;return this.size+=this.has(o)?0:1,E[o]=Cl&&v===t?h:v,this}Zs.prototype.clear=aL,Zs.prototype.delete=lL,Zs.prototype.get=cL,Zs.prototype.has=uL,Zs.prototype.set=hL;function Uo(o){var v=-1,E=o==null?0:o.length;for(this.clear();++v<E;){var j=o[v];this.set(j[0],j[1])}}function dL(){this.__data__=[],this.size=0}function pL(o){var v=this.__data__,E=nu(v,o);if(E<0)return!1;var j=v.length-1;return E==j?v.pop():Yc.call(v,E,1),--this.size,!0}function fL(o){var v=this.__data__,E=nu(v,o);return E<0?t:v[E][1]}function gL(o){return nu(this.__data__,o)>-1}function mL(o,v){var E=this.__data__,j=nu(E,o);return j<0?(++this.size,E.push([o,v])):E[j][1]=v,this}Uo.prototype.clear=dL,Uo.prototype.delete=pL,Uo.prototype.get=fL,Uo.prototype.has=gL,Uo.prototype.set=mL;function Vo(o){var v=-1,E=o==null?0:o.length;for(this.clear();++v<E;){var j=o[v];this.set(j[0],j[1])}}function vL(){this.size=0,this.__data__={hash:new Zs,map:new(wl||Uo),string:new Zs}}function yL(o){var v=fu(this,o).delete(o);return this.size-=v?1:0,v}function bL(o){return fu(this,o).get(o)}function wL(o){return fu(this,o).has(o)}function xL(o,v){var E=fu(this,o),j=E.size;return E.set(o,v),this.size+=E.size==j?0:1,this}Vo.prototype.clear=vL,Vo.prototype.delete=yL,Vo.prototype.get=bL,Vo.prototype.has=wL,Vo.prototype.set=xL;function Qs(o){var v=-1,E=o==null?0:o.length;for(this.__data__=new Vo;++v<E;)this.add(o[v])}function CL(o){return this.__data__.set(o,h),this}function kL(o){return this.__data__.has(o)}Qs.prototype.add=Qs.prototype.push=CL,Qs.prototype.has=kL;function fo(o){var v=this.__data__=new Uo(o);this.size=v.size}function AL(){this.__data__=new Uo,this.size=0}function SL(o){var v=this.__data__,E=v.delete(o);return this.size=v.size,E}function _L(o){return this.__data__.get(o)}function $L(o){return this.__data__.has(o)}function TL(o,v){var E=this.__data__;if(E instanceof Uo){var j=E.__data__;if(!wl||j.length<d-1)return j.push([o,v]),this.size=++E.size,this;E=this.__data__=new Vo(j)}return E.set(o,v),this.size=E.size,this}fo.prototype.clear=AL,fo.prototype.delete=SL,fo.prototype.get=_L,fo.prototype.has=$L,fo.prototype.set=TL;function S0(o,v){var E=St(o),j=!E&&ra(o),G=!E&&!j&&xs(o),te=!E&&!j&&!G&&Fa(o),ue=E||j||G||te,pe=ue?et(o.length,Yi):[],ye=pe.length;for(var Ie in o)(v||pn.call(o,Ie))&&!(ue&&(Ie=="length"||G&&(Ie=="offset"||Ie=="parent")||te&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Yo(Ie,ye)))&&pe.push(Ie);return pe}function _0(o){var v=o.length;return v?o[hp(0,v-1)]:t}function ML(o,v){return gu(ki(o),Js(v,0,o.length))}function EL(o){return gu(ki(o))}function tp(o,v,E){(E!==t&&!go(o[v],E)||E===t&&!(v in o))&&qo(o,v,E)}function Al(o,v,E){var j=o[v];(!(pn.call(o,v)&&go(j,E))||E===t&&!(v in o))&&qo(o,v,E)}function nu(o,v){for(var E=o.length;E--;)if(go(o[E][0],v))return E;return-1}function IL(o,v,E,j){return vs(o,function(G,te,ue){v(j,G,E(G),ue)}),j}function $0(o,v){return o&&Eo(v,Lr(v),o)}function RL(o,v){return o&&Eo(v,Si(v),o)}function qo(o,v,E){v=="__proto__"&&Xc?Xc(o,v,{configurable:!0,enumerable:!0,value:E,writable:!0}):o[v]=E}function np(o,v){for(var E=-1,j=v.length,G=Ce(j),te=o==null;++E<j;)G[E]=te?t:Dp(o,v[E]);return G}function Js(o,v,E){return o===o&&(E!==t&&(o=o<=E?o:E),v!==t&&(o=o>=v?o:v)),o}function Zi(o,v,E,j,G,te){var ue,pe=v&a,ye=v&u,Ie=v&c;if(E&&(ue=G?E(o,j,G,te):E(o)),ue!==t)return ue;if(!jn(o))return o;var Re=St(o);if(Re){if(ue=wO(o),!pe)return ki(o,ue)}else{var De=qr(o),Ze=De==Xe||De==ht;if(xs(o))return Z0(o,pe);if(De==$n||De==se||Ze&&!G){if(ue=ye||Ze?{}:mw(o),!pe)return ye?cO(o,RL(ue,o)):lO(o,$0(ue,o))}else{if(!nn[De])return G?o:{};ue=xO(o,De,pe)}}te||(te=new fo);var lt=te.get(o);if(lt)return lt;te.set(o,ue),Vw(o)?o.forEach(function(yt){ue.add(Zi(yt,v,E,yt,o,te))}):jw(o)&&o.forEach(function(yt,zt){ue.set(zt,Zi(yt,v,E,zt,o,te))});var vt=Ie?ye?Cp:xp:ye?Si:Lr,Ot=Re?t:vt(o);return Nr(Ot||o,function(yt,zt){Ot&&(zt=yt,yt=o[zt]),Al(ue,zt,Zi(yt,v,E,zt,o,te))}),ue}function LL(o){var v=Lr(o);return function(E){return T0(E,o,v)}}function T0(o,v,E){var j=E.length;if(o==null)return!j;for(o=Lt(o);j--;){var G=E[j],te=v[G],ue=o[G];if(ue===t&&!(G in o)||!te(ue))return!1}return!0}function M0(o,v,E){if(typeof o!="function")throw new mn(g);return Il(function(){o.apply(t,E)},v)}function Sl(o,v,E,j){var G=-1,te=Ni,ue=!0,pe=o.length,ye=[],Ie=v.length;if(!pe)return ye;E&&(v=y(v,pt(E))),j?(te=Di,ue=!1):v.length>=d&&(te=kt,ue=!1,v=new Qs(v));e:for(;++G<pe;){var Re=o[G],De=E==null?Re:E(Re);if(Re=j||Re!==0?Re:0,ue&&De===De){for(var Ze=Ie;Ze--;)if(v[Ze]===De)continue e;ye.push(Re)}else te(v,De,j)||ye.push(Re)}return ye}var vs=nw(Mo),E0=nw(ip,!0);function OL(o,v){var E=!0;return vs(o,function(j,G,te){return E=!!v(j,G,te),E}),E}function ru(o,v,E){for(var j=-1,G=o.length;++j<G;){var te=o[j],ue=v(te);if(ue!=null&&(pe===t?ue===ue&&!Pi(ue):E(ue,pe)))var pe=ue,ye=te}return ye}function NL(o,v,E,j){var G=o.length;for(E=It(E),E<0&&(E=-E>G?0:G+E),j=j===t||j>G?G:It(j),j<0&&(j+=G),j=E>j?0:Kw(j);E<j;)o[E++]=v;return o}function I0(o,v){var E=[];return vs(o,function(j,G,te){v(j,G,te)&&E.push(j)}),E}function Fr(o,v,E,j,G){var te=-1,ue=o.length;for(E||(E=kO),G||(G=[]);++te<ue;){var pe=o[te];v>0&&E(pe)?v>1?Fr(pe,v-1,E,j,G):T(G,pe):j||(G[G.length]=pe)}return G}var rp=rw(),R0=rw(!0);function Mo(o,v){return o&&rp(o,v,Lr)}function ip(o,v){return o&&R0(o,v,Lr)}function iu(o,v){return Ur(v,function(E){return Xo(o[E])})}function ea(o,v){v=bs(v,o);for(var E=0,j=v.length;o!=null&&E<j;)o=o[Io(v[E++])];return E&&E==j?o:t}function L0(o,v,E){var j=v(o);return St(o)?j:T(j,E(o))}function si(o){return o==null?o===t?bt:Qt:Xs&&Xs in Lt(o)?vO(o):EO(o)}function op(o,v){return o>v}function DL(o,v){return o!=null&&pn.call(o,v)}function FL(o,v){return o!=null&&v in Lt(o)}function PL(o,v,E){return o>=Vr(v,E)&&o<Cr(v,E)}function sp(o,v,E){for(var j=E?Di:Ni,G=o[0].length,te=o.length,ue=te,pe=Ce(te),ye=1/0,Ie=[];ue--;){var Re=o[ue];ue&&v&&(Re=y(Re,pt(v))),ye=Vr(Re.length,ye),pe[ue]=!E&&(v||G>=120&&Re.length>=120)?new Qs(ue&&Re):t}Re=o[0];var De=-1,Ze=pe[0];e:for(;++De<G&&Ie.length<ye;){var lt=Re[De],vt=v?v(lt):lt;if(lt=E||lt!==0?lt:0,!(Ze?kt(Ze,vt):j(Ie,vt,E))){for(ue=te;--ue;){var Ot=pe[ue];if(!(Ot?kt(Ot,vt):j(o[ue],vt,E)))continue e}Ze&&Ze.push(vt),Ie.push(lt)}}return Ie}function WL(o,v,E,j){return Mo(o,function(G,te,ue){v(j,E(G),te,ue)}),j}function _l(o,v,E){v=bs(v,o),o=ww(o,v);var j=o==null?o:o[Io(Ji(v))];return j==null?t:Mr(j,o,E)}function O0(o){return Jn(o)&&si(o)==se}function BL(o){return Jn(o)&&si(o)==tn}function HL(o){return Jn(o)&&si(o)==Te}function $l(o,v,E,j,G){return o===v?!0:o==null||v==null||!Jn(o)&&!Jn(v)?o!==o&&v!==v:zL(o,v,E,j,$l,G)}function zL(o,v,E,j,G,te){var ue=St(o),pe=St(v),ye=ue?de:qr(o),Ie=pe?de:qr(v);ye=ye==se?$n:ye,Ie=Ie==se?$n:Ie;var Re=ye==$n,De=Ie==$n,Ze=ye==Ie;if(Ze&&xs(o)){if(!xs(v))return!1;ue=!0,Re=!1}if(Ze&&!Re)return te||(te=new fo),ue||Fa(o)?pw(o,v,E,j,G,te):gO(o,v,ye,E,j,G,te);if(!(E&i)){var lt=Re&&pn.call(o,"__wrapped__"),vt=De&&pn.call(v,"__wrapped__");if(lt||vt){var Ot=lt?o.value():o,yt=vt?v.value():v;return te||(te=new fo),G(Ot,yt,E,j,te)}}return Ze?(te||(te=new fo),mO(o,v,E,j,G,te)):!1}function jL(o){return Jn(o)&&qr(o)==st}function ap(o,v,E,j){var G=E.length,te=G,ue=!j;if(o==null)return!te;for(o=Lt(o);G--;){var pe=E[G];if(ue&&pe[2]?pe[1]!==o[pe[0]]:!(pe[0]in o))return!1}for(;++G<te;){pe=E[G];var ye=pe[0],Ie=o[ye],Re=pe[1];if(ue&&pe[2]){if(Ie===t&&!(ye in o))return!1}else{var De=new fo;if(j)var Ze=j(Ie,Re,ye,o,v,De);if(!(Ze===t?$l(Re,Ie,i|l,j,De):Ze))return!1}}return!0}function N0(o){if(!jn(o)||SO(o))return!1;var v=Xo(o)?jR:_r;return v.test(na(o))}function UL(o){return Jn(o)&&si(o)==fn}function VL(o){return Jn(o)&&qr(o)==Wn}function qL(o){return Jn(o)&&xu(o.length)&&!!an[si(o)]}function D0(o){return typeof o=="function"?o:o==null?_i:typeof o=="object"?St(o)?W0(o[0],o[1]):P0(o):ix(o)}function lp(o){if(!El(o))return YR(o);var v=[];for(var E in Lt(o))pn.call(o,E)&&E!="constructor"&&v.push(E);return v}function KL(o){if(!jn(o))return MO(o);var v=El(o),E=[];for(var j in o)j=="constructor"&&(v||!pn.call(o,j))||E.push(j);return E}function cp(o,v){return o<v}function F0(o,v){var E=-1,j=Ai(o)?Ce(o.length):[];return vs(o,function(G,te,ue){j[++E]=v(G,te,ue)}),j}function P0(o){var v=Ap(o);return v.length==1&&v[0][2]?yw(v[0][0],v[0][1]):function(E){return E===o||ap(E,o,v)}}function W0(o,v){return _p(o)&&vw(v)?yw(Io(o),v):function(E){var j=Dp(E,o);return j===t&&j===v?Fp(E,o):$l(v,j,i|l)}}function ou(o,v,E,j,G){o!==v&&rp(v,function(te,ue){if(G||(G=new fo),jn(te))GL(o,v,ue,E,ou,j,G);else{var pe=j?j(Tp(o,ue),te,ue+"",o,v,G):t;pe===t&&(pe=te),tp(o,ue,pe)}},Si)}function GL(o,v,E,j,G,te,ue){var pe=Tp(o,E),ye=Tp(v,E),Ie=ue.get(ye);if(Ie){tp(o,E,Ie);return}var Re=te?te(pe,ye,E+"",o,v,ue):t,De=Re===t;if(De){var Ze=St(ye),lt=!Ze&&xs(ye),vt=!Ze&&!lt&&Fa(ye);Re=ye,Ze||lt||vt?St(pe)?Re=pe:sr(pe)?Re=ki(pe):lt?(De=!1,Re=Z0(ye,!0)):vt?(De=!1,Re=Q0(ye,!0)):Re=[]:Rl(ye)||ra(ye)?(Re=pe,ra(pe)?Re=Gw(pe):(!jn(pe)||Xo(pe))&&(Re=mw(ye))):De=!1}De&&(ue.set(ye,Re),G(Re,ye,j,te,ue),ue.delete(ye)),tp(o,E,Re)}function B0(o,v){var E=o.length;if(E)return v+=v<0?E:0,Yo(v,E)?o[v]:t}function H0(o,v,E){v.length?v=y(v,function(te){return St(te)?function(ue){return ea(ue,te.length===1?te[0]:te)}:te}):v=[_i];var j=-1;v=y(v,pt(mt()));var G=F0(o,function(te,ue,pe){var ye=y(v,function(Ie){return Ie(te)});return{criteria:ye,index:++j,value:te}});return Ge(G,function(te,ue){return aO(te,ue,E)})}function YL(o,v){return z0(o,v,function(E,j){return Fp(o,j)})}function z0(o,v,E){for(var j=-1,G=v.length,te={};++j<G;){var ue=v[j],pe=ea(o,ue);E(pe,ue)&&Tl(te,bs(ue,o),pe)}return te}function XL(o){return function(v){return ea(v,o)}}function up(o,v,E,j){var G=j?be:ae,te=-1,ue=v.length,pe=o;for(o===v&&(v=ki(v)),E&&(pe=y(o,pt(E)));++te<ue;)for(var ye=0,Ie=v[te],Re=E?E(Ie):Ie;(ye=G(pe,Re,ye,j))>-1;)pe!==o&&Yc.call(pe,ye,1),Yc.call(o,ye,1);return o}function j0(o,v){for(var E=o?v.length:0,j=E-1;E--;){var G=v[E];if(E==j||G!==te){var te=G;Yo(G)?Yc.call(o,G,1):fp(o,G)}}return o}function hp(o,v){return o+Qc(k0()*(v-o+1))}function ZL(o,v,E,j){for(var G=-1,te=Cr(Zc((v-o)/(E||1)),0),ue=Ce(te);te--;)ue[j?te:++G]=o,o+=E;return ue}function dp(o,v){var E="";if(!o||v<1||v>U)return E;do v%2&&(E+=o),v=Qc(v/2),v&&(o+=o);while(v);return E}function Pt(o,v){return Mp(bw(o,v,_i),o+"")}function QL(o){return _0(Pa(o))}function JL(o,v){var E=Pa(o);return gu(E,Js(v,0,E.length))}function Tl(o,v,E,j){if(!jn(o))return o;v=bs(v,o);for(var G=-1,te=v.length,ue=te-1,pe=o;pe!=null&&++G<te;){var ye=Io(v[G]),Ie=E;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Re=pe[ye];Ie=j?j(Re,ye,pe):t,Ie===t&&(Ie=jn(Re)?Re:Yo(v[G+1])?[]:{})}Al(pe,ye,Ie),pe=pe[ye]}return o}var U0=Jc?function(o,v){return Jc.set(o,v),o}:_i,eO=Xc?function(o,v){return Xc(o,"toString",{configurable:!0,enumerable:!1,value:Wp(v),writable:!0})}:_i;function tO(o){return gu(Pa(o))}function Qi(o,v,E){var j=-1,G=o.length;v<0&&(v=-v>G?0:G+v),E=E>G?G:E,E<0&&(E+=G),G=v>E?0:E-v>>>0,v>>>=0;for(var te=Ce(G);++j<G;)te[j]=o[j+v];return te}function nO(o,v){var E;return vs(o,function(j,G,te){return E=v(j,G,te),!E}),!!E}function su(o,v,E){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&&!Pi(ue)&&(E?ue<=v:ue<v)?j=te+1:G=te}return G}return pp(o,v,_i,E)}function pp(o,v,E,j){var G=0,te=o==null?0:o.length;if(te===0)return 0;v=E(v);for(var ue=v!==v,pe=v===null,ye=Pi(v),Ie=v===t;G<te;){var Re=Qc((G+te)/2),De=E(o[Re]),Ze=De!==t,lt=De===null,vt=De===De,Ot=Pi(De);if(ue)var yt=j||vt;else Ie?yt=vt&&(j||Ze):pe?yt=vt&&Ze&&(j||!lt):ye?yt=vt&&Ze&&!lt&&(j||!Ot):lt||Ot?yt=!1:yt=j?De<=v:De<v;yt?G=Re+1:te=Re}return Vr(te,he)}function V0(o,v){for(var E=-1,j=o.length,G=0,te=[];++E<j;){var ue=o[E],pe=v?v(ue):ue;if(!E||!go(pe,ye)){var ye=pe;te[G++]=ue===0?0:ue}}return te}function q0(o){return typeof o=="number"?o:Pi(o)?Q:+o}function Fi(o){if(typeof o=="string")return o;if(St(o))return y(o,Fi)+"";if(Pi(o))return A0?A0.call(o):"";var v=o+"";return v=="0"&&1/o==-B?"-0":v}function ys(o,v,E){var j=-1,G=Ni,te=o.length,ue=!0,pe=[],ye=pe;if(E)ue=!1,G=Di;else if(te>=d){var Ie=v?null:pO(o);if(Ie)return Ye(Ie);ue=!1,G=kt,ye=new Qs}else ye=v?[]:pe;e:for(;++j<te;){var Re=o[j],De=v?v(Re):Re;if(Re=E||Re!==0?Re:0,ue&&De===De){for(var Ze=ye.length;Ze--;)if(ye[Ze]===De)continue e;v&&ye.push(De),pe.push(Re)}else G(ye,De,E)||(ye!==pe&&ye.push(De),pe.push(Re))}return pe}function fp(o,v){return v=bs(v,o),o=ww(o,v),o==null||delete o[Io(Ji(v))]}function K0(o,v,E,j){return Tl(o,v,E(ea(o,v)),j)}function au(o,v,E,j){for(var G=o.length,te=j?G:-1;(j?te--:++te<G)&&v(o[te],te,o););return E?Qi(o,j?0:te,j?te+1:G):Qi(o,j?te+1:0,j?G:te)}function G0(o,v){var E=o;return E instanceof Kt&&(E=E.value()),S(v,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},E)}function gp(o,v,E){var j=o.length;if(j<2)return j?ys(o[0]):[];for(var G=-1,te=Ce(j);++G<j;)for(var ue=o[G],pe=-1;++pe<j;)pe!=G&&(te[G]=Sl(te[G]||ue,o[pe],v,E));return ys(Fr(te,1),v,E)}function Y0(o,v,E){for(var j=-1,G=o.length,te=v.length,ue={};++j<G;){var pe=j<te?v[j]:t;E(ue,o[j],pe)}return ue}function mp(o){return sr(o)?o:[]}function vp(o){return typeof o=="function"?o:_i}function bs(o,v){return St(o)?o:_p(o,v)?[o]:Aw(un(o))}var rO=Pt;function ws(o,v,E){var j=o.length;return E=E===t?j:E,!v&&E>=j?o:Qi(o,v,E)}var X0=UR||function(o){return gn.clearTimeout(o)};function Z0(o,v){if(v)return o.slice();var E=o.length,j=y0?y0(E):new o.constructor(E);return o.copy(j),j}function yp(o){var v=new o.constructor(o.byteLength);return new Kc(v).set(new Kc(o)),v}function iO(o,v){var E=v?yp(o.buffer):o.buffer;return new o.constructor(E,o.byteOffset,o.byteLength)}function oO(o){var v=new o.constructor(o.source,zr.exec(o));return v.lastIndex=o.lastIndex,v}function sO(o){return kl?Lt(kl.call(o)):{}}function Q0(o,v){var E=v?yp(o.buffer):o.buffer;return new o.constructor(E,o.byteOffset,o.length)}function J0(o,v){if(o!==v){var E=o!==t,j=o===null,G=o===o,te=Pi(o),ue=v!==t,pe=v===null,ye=v===v,Ie=Pi(v);if(!pe&&!Ie&&!te&&o>v||te&&ue&&ye&&!pe&&!Ie||j&&ue&&ye||!E&&ye||!G)return 1;if(!j&&!te&&!Ie&&o<v||Ie&&E&&G&&!j&&!te||pe&&E&&G||!ue&&G||!ye)return-1}return 0}function aO(o,v,E){for(var j=-1,G=o.criteria,te=v.criteria,ue=G.length,pe=E.length;++j<ue;){var ye=J0(G[j],te[j]);if(ye){if(j>=pe)return ye;var Ie=E[j];return ye*(Ie=="desc"?-1:1)}}return o.index-v.index}function ew(o,v,E,j){for(var G=-1,te=o.length,ue=E.length,pe=-1,ye=v.length,Ie=Cr(te-ue,0),Re=Ce(ye+Ie),De=!j;++pe<ye;)Re[pe]=v[pe];for(;++G<ue;)(De||G<te)&&(Re[E[G]]=o[G]);for(;Ie--;)Re[pe++]=o[G++];return Re}function tw(o,v,E,j){for(var G=-1,te=o.length,ue=-1,pe=E.length,ye=-1,Ie=v.length,Re=Cr(te-pe,0),De=Ce(Re+Ie),Ze=!j;++G<Re;)De[G]=o[G];for(var lt=G;++ye<Ie;)De[lt+ye]=v[ye];for(;++ue<pe;)(Ze||G<te)&&(De[lt+E[ue]]=o[G++]);return De}function ki(o,v){var E=-1,j=o.length;for(v||(v=Ce(j));++E<j;)v[E]=o[E];return v}function Eo(o,v,E,j){var G=!E;E||(E={});for(var te=-1,ue=v.length;++te<ue;){var pe=v[te],ye=j?j(E[pe],o[pe],pe,E,o):t;ye===t&&(ye=o[pe]),G?qo(E,pe,ye):Al(E,pe,ye)}return E}function lO(o,v){return Eo(o,Sp(o),v)}function cO(o,v){return Eo(o,fw(o),v)}function lu(o,v){return function(E,j){var G=St(E)?Er:IL,te=v?v():{};return G(E,o,mt(j,2),te)}}function Oa(o){return Pt(function(v,E){var j=-1,G=E.length,te=G>1?E[G-1]:t,ue=G>2?E[2]:t;for(te=o.length>3&&typeof te=="function"?(G--,te):t,ue&&ai(E[0],E[1],ue)&&(te=G<3?t:te,G=1),v=Lt(v);++j<G;){var pe=E[j];pe&&o(v,pe,j,te)}return v})}function nw(o,v){return function(E,j){if(E==null)return E;if(!Ai(E))return o(E,j);for(var G=E.length,te=v?G:-1,ue=Lt(E);(v?te--:++te<G)&&j(ue[te],te,ue)!==!1;);return E}}function rw(o){return function(v,E,j){for(var G=-1,te=Lt(v),ue=j(v),pe=ue.length;pe--;){var ye=ue[o?pe:++G];if(E(te[ye],ye,te)===!1)break}return v}}function uO(o,v,E){var j=v&m,G=Ml(o);function te(){var ue=this&&this!==gn&&this instanceof te?G:o;return ue.apply(j?E:this,arguments)}return te}function iw(o){return function(v){v=un(v);var E=oe(v)?At(v):t,j=E?E[0]:v.charAt(0),G=E?ws(E,1).join(""):v.slice(1);return j[o]()+G}}function Na(o){return function(v){return S(nx(tx(v).replace(zn,"")),o,"")}}function Ml(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 E=La(o.prototype),j=o.apply(E,v);return jn(j)?j:E}}function hO(o,v,E){var j=Ml(o);function G(){for(var te=arguments.length,ue=Ce(te),pe=te,ye=Da(G);pe--;)ue[pe]=arguments[pe];var Ie=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:He(ue,ye);if(te-=Ie.length,te<E)return cw(o,v,cu,G.placeholder,t,ue,Ie,t,t,E-te);var Re=this&&this!==gn&&this instanceof G?j:o;return Mr(Re,this,ue)}return G}function ow(o){return function(v,E,j){var G=Lt(v);if(!Ai(v)){var te=mt(E,3);v=Lr(v),E=function(pe){return te(G[pe],pe,G)}}var ue=o(v,E,j);return ue>-1?G[te?v[ue]:ue]:t}}function sw(o){return Go(function(v){var E=v.length,j=E,G=Xi.prototype.thru;for(o&&v.reverse();j--;){var te=v[j];if(typeof te!="function")throw new mn(g);if(G&&!ue&&pu(te)=="wrapper")var ue=new Xi([],!0)}for(j=ue?j:E;++j<E;){te=v[j];var pe=pu(te),ye=pe=="wrapper"?kp(te):t;ye&&$p(ye[0])&&ye[1]==(L|M|k|D)&&!ye[4].length&&ye[9]==1?ue=ue[pu(ye[0])].apply(ue,ye[3]):ue=te.length==1&&$p(te)?ue[pe]():ue.thru(te)}return function(){var Ie=arguments,Re=Ie[0];if(ue&&Ie.length==1&&St(Re))return ue.plant(Re).value();for(var De=0,Ze=E?v[De].apply(this,Ie):Re;++De<E;)Ze=v[De].call(this,Ze);return Ze}})}function cu(o,v,E,j,G,te,ue,pe,ye,Ie){var Re=v&L,De=v&m,Ze=v&w,lt=v&(M|_),vt=v&R,Ot=Ze?t:Ml(o);function yt(){for(var zt=arguments.length,Yt=Ce(zt),Wi=zt;Wi--;)Yt[Wi]=arguments[Wi];if(lt)var li=Da(yt),Bi=Ir(Yt,li);if(j&&(Yt=ew(Yt,j,G,lt)),te&&(Yt=tw(Yt,te,ue,lt)),zt-=Bi,lt&&zt<Ie){var ar=He(Yt,li);return cw(o,v,cu,yt.placeholder,E,Yt,ar,pe,ye,Ie-zt)}var mo=De?E:this,Qo=Ze?mo[o]:o;return zt=Yt.length,pe?Yt=IO(Yt,pe):vt&&zt>1&&Yt.reverse(),Re&&ye<zt&&(Yt.length=ye),this&&this!==gn&&this instanceof yt&&(Qo=Ot||Ml(Qo)),Qo.apply(mo,Yt)}return yt}function aw(o,v){return function(E,j){return WL(E,o,v(j),{})}}function uu(o,v){return function(E,j){var G;if(E===t&&j===t)return v;if(E!==t&&(G=E),j!==t){if(G===t)return j;typeof E=="string"||typeof j=="string"?(E=Fi(E),j=Fi(j)):(E=q0(E),j=q0(j)),G=o(E,j)}return G}}function bp(o){return Go(function(v){return v=y(v,pt(mt())),Pt(function(E){var j=this;return o(v,function(G){return Mr(G,j,E)})})})}function hu(o,v){v=v===t?" ":Fi(v);var E=v.length;if(E<2)return E?dp(v,o):v;var j=dp(v,Zc(o/Wt(v)));return oe(v)?ws(At(j),0,o).join(""):j.slice(0,o)}function dO(o,v,E,j){var G=v&m,te=Ml(o);function ue(){for(var pe=-1,ye=arguments.length,Ie=-1,Re=j.length,De=Ce(Re+ye),Ze=this&&this!==gn&&this instanceof ue?te:o;++Ie<Re;)De[Ie]=j[Ie];for(;ye--;)De[Ie++]=arguments[++pe];return Mr(Ze,G?E:this,De)}return ue}function lw(o){return function(v,E,j){return j&&typeof j!="number"&&ai(v,E,j)&&(E=j=t),v=Zo(v),E===t?(E=v,v=0):E=Zo(E),j=j===t?v<E?1:-1:Zo(j),ZL(v,E,j,o)}}function du(o){return function(v,E){return typeof v=="string"&&typeof E=="string"||(v=eo(v),E=eo(E)),o(v,E)}}function cw(o,v,E,j,G,te,ue,pe,ye,Ie){var Re=v&M,De=Re?ue:t,Ze=Re?t:ue,lt=Re?te:t,vt=Re?t:te;v|=Re?k:C,v&=~(Re?C:k),v&x||(v&=-4);var Ot=[o,v,G,lt,De,vt,Ze,pe,ye,Ie],yt=E.apply(t,Ot);return $p(o)&&xw(yt,Ot),yt.placeholder=j,Cw(yt,o,v)}function wp(o){var v=Jt[o];return function(E,j){if(E=eo(E),j=j==null?0:Vr(It(j),292),j&&C0(E)){var G=(un(E)+"e").split("e"),te=v(G[0]+"e"+(+G[1]+j));return G=(un(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return v(E)}}var pO=Ia&&1/Ye(new Ia([,-0]))[1]==B?function(o){return new Ia(o)}:zp;function uw(o){return function(v){var E=qr(v);return E==st?Ee(v):E==Wn?Qe(v):at(v,o(v))}}function Ko(o,v,E,j,G,te,ue,pe){var ye=v&w;if(!ye&&typeof o!="function")throw new mn(g);var Ie=j?j.length:0;if(Ie||(v&=-97,j=G=t),ue=ue===t?ue:Cr(It(ue),0),pe=pe===t?pe:It(pe),Ie-=G?G.length:0,v&C){var Re=j,De=G;j=G=t}var Ze=ye?t:kp(o),lt=[o,v,E,j,G,Re,De,te,ue,pe];if(Ze&&TO(lt,Ze),o=lt[0],v=lt[1],E=lt[2],j=lt[3],G=lt[4],pe=lt[9]=lt[9]===t?ye?0:o.length:Cr(lt[9]-Ie,0),!pe&&v&(M|_)&&(v&=-25),!v||v==m)var vt=uO(o,v,E);else v==M||v==_?vt=hO(o,v,pe):(v==k||v==(m|k))&&!G.length?vt=dO(o,v,E,j):vt=cu.apply(t,lt);var Ot=Ze?U0:xw;return Cw(Ot(vt,lt),o,v)}function hw(o,v,E,j){return o===t||go(o,Qn[E])&&!pn.call(j,E)?v:o}function dw(o,v,E,j,G,te){return jn(o)&&jn(v)&&(te.set(v,o),ou(o,v,t,dw,te),te.delete(v)),o}function fO(o){return Rl(o)?t:o}function pw(o,v,E,j,G,te){var ue=E&i,pe=o.length,ye=v.length;if(pe!=ye&&!(ue&&ye>pe))return!1;var Ie=te.get(o),Re=te.get(v);if(Ie&&Re)return Ie==v&&Re==o;var De=-1,Ze=!0,lt=E&l?new Qs:t;for(te.set(o,v),te.set(v,o);++De<pe;){var vt=o[De],Ot=v[De];if(j)var yt=ue?j(Ot,vt,De,v,o,te):j(vt,Ot,De,o,v,te);if(yt!==t){if(yt)continue;Ze=!1;break}if(lt){if(!W(v,function(zt,Yt){if(!kt(lt,Yt)&&(vt===zt||G(vt,zt,E,j,te)))return lt.push(Yt)})){Ze=!1;break}}else if(!(vt===Ot||G(vt,Ot,E,j,te))){Ze=!1;break}}return te.delete(o),te.delete(v),Ze}function gO(o,v,E,j,G,te,ue){switch(E){case Bn:if(o.byteLength!=v.byteLength||o.byteOffset!=v.byteOffset)return!1;o=o.buffer,v=v.buffer;case tn:return!(o.byteLength!=v.byteLength||!te(new Kc(o),new Kc(v)));case _e:case Te:case dt:return go(+o,+v);case Je:return o.name==v.name&&o.message==v.message;case fn:case ir:return o==v+"";case st:var pe=Ee;case Wn:var ye=j&i;if(pe||(pe=Ye),o.size!=v.size&&!ye)return!1;var Ie=ue.get(o);if(Ie)return Ie==v;j|=l,ue.set(o,v);var Re=pw(pe(o),pe(v),j,G,te,ue);return ue.delete(o),Re;case Or:if(kl)return kl.call(o)==kl.call(v)}return!1}function mO(o,v,E,j,G,te){var ue=E&i,pe=xp(o),ye=pe.length,Ie=xp(v),Re=Ie.length;if(ye!=Re&&!ue)return!1;for(var De=ye;De--;){var Ze=pe[De];if(!(ue?Ze in v:pn.call(v,Ze)))return!1}var lt=te.get(o),vt=te.get(v);if(lt&&vt)return lt==v&&vt==o;var Ot=!0;te.set(o,v),te.set(v,o);for(var yt=ue;++De<ye;){Ze=pe[De];var zt=o[Ze],Yt=v[Ze];if(j)var Wi=ue?j(Yt,zt,Ze,v,o,te):j(zt,Yt,Ze,o,v,te);if(!(Wi===t?zt===Yt||G(zt,Yt,E,j,te):Wi)){Ot=!1;break}yt||(yt=Ze=="constructor")}if(Ot&&!yt){var li=o.constructor,Bi=v.constructor;li!=Bi&&"constructor"in o&&"constructor"in v&&!(typeof li=="function"&&li instanceof li&&typeof Bi=="function"&&Bi instanceof Bi)&&(Ot=!1)}return te.delete(o),te.delete(v),Ot}function Go(o){return Mp(bw(o,t,Tw),o+"")}function xp(o){return L0(o,Lr,Sp)}function Cp(o){return L0(o,Si,fw)}var kp=Jc?function(o){return Jc.get(o)}:zp;function pu(o){for(var v=o.name+"",E=Ra[v],j=pn.call(Ra,v)?E.length:0;j--;){var G=E[j],te=G.func;if(te==null||te==o)return G.name}return v}function Da(o){var v=pn.call(ee,"placeholder")?ee:o;return v.placeholder}function mt(){var o=ee.iteratee||Bp;return o=o===Bp?D0:o,arguments.length?o(arguments[0],arguments[1]):o}function fu(o,v){var E=o.__data__;return AO(v)?E[typeof v=="string"?"string":"hash"]:E.map}function Ap(o){for(var v=Lr(o),E=v.length;E--;){var j=v[E],G=o[j];v[E]=[j,G,vw(G)]}return v}function ta(o,v){var E=ie(o,v);return N0(E)?E:t}function vO(o){var v=pn.call(o,Xs),E=o[Xs];try{o[Xs]=t;var j=!0}catch{}var G=Vc.call(o);return j&&(v?o[Xs]=E:delete o[Xs]),G}var Sp=Qd?function(o){return o==null?[]:(o=Lt(o),Ur(Qd(o),function(v){return w0.call(o,v)}))}:jp,fw=Qd?function(o){for(var v=[];o;)T(v,Sp(o)),o=Gc(o);return v}:jp,qr=si;(Jd&&qr(new Jd(new ArrayBuffer(1)))!=Bn||wl&&qr(new wl)!=st||ep&&qr(ep.resolve())!=Ht||Ia&&qr(new Ia)!=Wn||xl&&qr(new xl)!=qe)&&(qr=function(o){var v=si(o),E=v==$n?o.constructor:t,j=E?na(E):"";if(j)switch(j){case JR:return Bn;case eL:return st;case tL:return Ht;case nL:return Wn;case rL:return qe}return v});function yO(o,v,E){for(var j=-1,G=E.length;++j<G;){var te=E[j],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":v-=ue;break;case"take":v=Vr(v,o+ue);break;case"takeRight":o=Cr(o,v-ue);break}}return{start:o,end:v}}function bO(o){var v=o.match(wi);return v?v[1].split(ko):[]}function gw(o,v,E){v=bs(v,o);for(var j=-1,G=v.length,te=!1;++j<G;){var ue=Io(v[j]);if(!(te=o!=null&&E(o,ue)))break;o=o[ue]}return te||++j!=G?te:(G=o==null?0:o.length,!!G&&xu(G)&&Yo(ue,G)&&(St(o)||ra(o)))}function wO(o){var v=o.length,E=new o.constructor(v);return v&&typeof o[0]=="string"&&pn.call(o,"index")&&(E.index=o.index,E.input=o.input),E}function mw(o){return typeof o.constructor=="function"&&!El(o)?La(Gc(o)):{}}function xO(o,v,E){var j=o.constructor;switch(v){case tn:return yp(o);case _e:case Te:return new j(+o);case Bn:return iO(o,E);case Ar:case vr:case bn:case qn:case Hn:case Xt:case dn:case Hr:case Jr:return Q0(o,E);case st:return new j;case dt:case ir:return new j(o);case fn:return oO(o);case Wn:return new j;case Or:return sO(o)}}function CO(o,v){var E=v.length;if(!E)return o;var j=E-1;return v[j]=(E>1?"& ":"")+v[j],v=v.join(E>2?", ":" "),o.replace(Sr,`{
|
|
1469
|
+
*/var _A=ec.exports,Jg;function $A(){return Jg||(Jg=1,function(n,e){(function(){var t,r="4.17.21",d=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",b="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",f=500,s="__lodash_placeholder__",a=1,u=2,c=4,i=1,l=2,m=1,w=2,x=4,M=8,_=16,k=32,C=64,L=128,D=256,R=512,I=30,H="...",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",m],["bindKey",w],["curry",M],["curryRight",_],["flip",R],["partial",k],["partialRight",C],["rearg",D]],se="[object Arguments]",de="[object Array]",me="[object AsyncFunction]",_e="[object Boolean]",Te="[object Date]",Me="[object DOMException]",Je="[object Error]",Xe="[object Function]",ht="[object GeneratorFunction]",st="[object Map]",dt="[object Number]",Jt="[object Null]",$n="[object Object]",Ht="[object Promise]",kr="[object Proxy]",fn="[object RegExp]",Bn="[object Set]",ir="[object String]",Or="[object Symbol]",bt="[object Undefined]",qe="[object WeakMap]",Nt="[object WeakSet]",Vt="[object ArrayBuffer]",Ln="[object DataView]",Ar="[object Float32Array]",vr="[object Float64Array]",bn="[object Int8Array]",qn="[object Int16Array]",Hn="[object Int32Array]",Zt="[object Uint8Array]",dn="[object Uint8ClampedArray]",Hr="[object Uint16Array]",Jr="[object Uint32Array]",ei=/\b__p \+= '';/g,Ii=/\b(__p \+=) '' \+/g,gi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Kn=/&(?:amp|lt|gt|quot|#39);/g,co=/[&<>"']/g,mi=RegExp(Kn.source),zs=RegExp(co.source),ti=/<%-([\s\S]+?)%>/g,Tn=/<%([\s\S]+?)%>/g,vi=/<%=([\s\S]+?)%>/g,os=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yi=/^\w*$/,Mn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,bi=RegExp(yr.source),En=/^\s+/,On=/\s/,Sr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wi=/\{\n\/\* \[wrapped with (.+)\] \*/,Ao=/,? & /,So=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ss=/[()=,{}\[\]\/\s]/,ni=/\\(\\)?/g,xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zr=/\w*$/,Dt=/^[-+]0x[0-9a-f]+$/i,No=/^0b[01]+$/i,_r=/^\[object .+?Constructor\]$/,ce=/^0o[0-7]+$/i,ze=/^(?:0|[1-9]\d*)$/,Fe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tt=/($^)/,Qt=/['\n\r\u2028\u2029\\]/g,qt="\\ud800-\\udfff",$r="\\u0300-\\u036f",br="\\ufe20-\\ufe2f",Gn="\\u20d0-\\u20ff",Tr=$r+br+Gn,wn="\\u2700-\\u27bf",uo="a-z\\xdf-\\xf6\\xf8-\\xff",jr="\\xac\\xb1\\xd7\\xf7",as="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",js="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ls="A-Z\\xc0-\\xd6\\xd8-\\xde",wr="\\ufe0e\\ufe0f",Vs=jr+as+js+Us,Do="['’]",cs="["+qt+"]",us="["+Vs+"]",_o="["+Tr+"]",qs="\\d+",_a="["+wn+"]",hs="["+uo+"]",ds="[^"+qt+Vs+qs+wn+uo+ls+"]",Ks="\\ud83c[\\udffb-\\udfff]",ps="(?:"+_o+"|"+Ks+")",Fo="[^"+qt+"]",Ui="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",$o="["+ls+"]",ho="\\u200d",$a="(?:"+hs+"|"+ds+")",yl="(?:"+$o+"|"+ds+")",Po="(?:"+Do+"(?:d|ll|m|re|s|t|ve))?",po="(?:"+Do+"(?:D|LL|M|RE|S|T|VE))?",Wo=ps+"?",fs="["+wr+"]?",Bo="(?:"+ho+"(?:"+[Fo,Ui,xr].join("|")+")"+fs+Wo+")*",Ta="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",To="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Be=fs+Wo+Bo,Ma="(?:"+[_a,Ui,xr].join("|")+")"+Be,Ne="(?:"+[Fo+_o+"?",_o,Ui,xr,cs].join("|")+")",zn=RegExp(Do,"g"),Ho=RegExp(_o,"g"),Ri=RegExp(Ks+"(?="+Ks+")|"+Ne+Be,"g"),or=RegExp([$o+"?"+hs+"+"+Po+"(?="+[us,$o,"$"].join("|")+")",yl+"+"+po+"(?="+[us,$o+$a,"$"].join("|")+")",$o+"?"+$a+"+"+Po,$o+"+"+po,To,Ta,qs,Ma].join("|"),"g"),Ea=RegExp("["+ho+qt+Tr+wr+"]"),zo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vi=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mo=-1,an={};an[Ar]=an[vr]=an[bn]=an[qn]=an[Hn]=an[Zt]=an[dn]=an[Hr]=an[Jr]=!0,an[se]=an[de]=an[Vt]=an[_e]=an[Ln]=an[Te]=an[Je]=an[Xe]=an[st]=an[dt]=an[$n]=an[fn]=an[Bn]=an[ir]=an[qe]=!1;var nn={};nn[se]=nn[de]=nn[Vt]=nn[Ln]=nn[_e]=nn[Te]=nn[Ar]=nn[vr]=nn[bn]=nn[qn]=nn[Hn]=nn[st]=nn[dt]=nn[$n]=nn[fn]=nn[Bn]=nn[ir]=nn[Or]=nn[Zt]=nn[dn]=nn[Hr]=nn[Jr]=!0,nn[Je]=nn[Xe]=nn[qe]=!1;var ln={À:"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"},Kt={"&":"&","<":"<",">":">",'"':""","'":"'"},qi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Yn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,An=parseInt,wt=typeof ns=="object"&&ns&&ns.Object===Object&&ns,ri=typeof self=="object"&&self&&self.Object===Object&&self,gn=wt||ri||Function("return this")(),In=e&&!e.nodeType&&e,ur=In&&!0&&n&&!n.nodeType&&n,ii=ur&&ur.exports===In,Ki=ii&&wt.process,Xn=function(){try{var fe=ur&&ur.require&&ur.require("util").types;return fe||Ki&&Ki.binding&&Ki.binding("util")}catch{}}(),Ci=Xn&&Xn.isArrayBuffer,gs=Xn&&Xn.isDate,Zn=Xn&&Xn.isMap,Li=Xn&&Xn.isRegExp,Oi=Xn&&Xn.isSet,Gi=Xn&&Xn.isTypedArray;function Mr(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 Er(fe,$e,Ce,Ke){for(var ft=-1,Et=fe==null?0:fe.length;++ft<Et;){var en=fe[ft];$e(Ke,en,Ce(en),fe)}return Ke}function Nr(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length;++Ce<Ke&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Gs(fe,$e){for(var Ce=fe==null?0:fe.length;Ce--&&$e(fe[Ce],Ce,fe)!==!1;);return fe}function Dr(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length;++Ce<Ke;)if(!$e(fe[Ce],Ce,fe))return!1;return!0}function Ur(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length,ft=0,Et=[];++Ce<Ke;){var en=fe[Ce];$e(en,Ce,fe)&&(Et[ft++]=en)}return Et}function Ni(fe,$e){var Ce=fe==null?0:fe.length;return!!Ce&&ae(fe,$e,0)>-1}function Di(fe,$e,Ce){for(var Ke=-1,ft=fe==null?0:fe.length;++Ke<ft;)if(Ce($e,fe[Ke]))return!0;return!1}function y(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length,ft=Array(Ke);++Ce<Ke;)ft[Ce]=$e(fe[Ce],Ce,fe);return ft}function T(fe,$e){for(var Ce=-1,Ke=$e.length,ft=fe.length;++Ce<Ke;)fe[ft+Ce]=$e[Ce];return fe}function S(fe,$e,Ce,Ke){var ft=-1,Et=fe==null?0:fe.length;for(Ke&&Et&&(Ce=fe[++ft]);++ft<Et;)Ce=$e(Ce,fe[ft],ft,fe);return Ce}function F(fe,$e,Ce,Ke){var ft=fe==null?0:fe.length;for(Ke&&ft&&(Ce=fe[--ft]);ft--;)Ce=$e(Ce,fe[ft],ft,fe);return Ce}function W(fe,$e){for(var Ce=-1,Ke=fe==null?0:fe.length;++Ce<Ke;)if($e(fe[Ce],Ce,fe))return!0;return!1}var z=we("length");function q(fe){return fe.split("")}function Y(fe){return fe.match(So)||[]}function Z(fe,$e,Ce){var Ke;return Ce(fe,function(ft,Et,en){if($e(ft,Et,en))return Ke=Et,!1}),Ke}function re(fe,$e,Ce,Ke){for(var ft=fe.length,Et=Ce+(Ke?1:-1);Ke?Et--:++Et<ft;)if($e(fe[Et],Et,fe))return Et;return-1}function ae(fe,$e,Ce){return $e===$e?rt(fe,$e,Ce):re(fe,ke,Ce)}function be(fe,$e,Ce,Ke){for(var ft=Ce-1,Et=fe.length;++ft<Et;)if(Ke(fe[ft],$e))return ft;return-1}function ke(fe){return fe!==fe}function ve(fe,$e){var Ce=fe==null?0:fe.length;return Ce?ut(fe,$e)/Ce:Q}function we(fe){return function($e){return $e==null?t:$e[fe]}}function Oe(fe){return function($e){return fe==null?t:fe[$e]}}function Le(fe,$e,Ce,Ke,ft){return ft(fe,function(Et,en,Lt){Ce=Ke?(Ke=!1,Et):$e(Ce,Et,en,Lt)}),Ce}function Ge(fe,$e){var Ce=fe.length;for(fe.sort($e);Ce--;)fe[Ce]=fe[Ce].value;return fe}function ut(fe,$e){for(var Ce,Ke=-1,ft=fe.length;++Ke<ft;){var Et=$e(fe[Ke]);Et!==t&&(Ce=Ce===t?Et:Ce+Et)}return Ce}function et(fe,$e){for(var Ce=-1,Ke=Array(fe);++Ce<fe;)Ke[Ce]=$e(Ce);return Ke}function at(fe,$e){return y($e,function(Ce){return[Ce,fe[Ce]]})}function Sn(fe){return fe&&fe.slice(0,Ft(fe)+1).replace(En,"")}function pt(fe){return function($e){return fe($e)}}function Nn(fe,$e){return y($e,function(Ce){return fe[Ce]})}function kt(fe,$e){return fe.has($e)}function Mt(fe,$e){for(var Ce=-1,Ke=fe.length;++Ce<Ke&&ae($e,fe[Ce],0)>-1;);return Ce}function hr(fe,$e){for(var Ce=fe.length;Ce--&&ae($e,fe[Ce],0)>-1;);return Ce}function Ir(fe,$e){for(var Ce=fe.length,Ke=0;Ce--;)fe[Ce]===$e&&++Ke;return Ke}var Dn=Oe(ln),V=Oe(Kt);function X(fe){return"\\"+Yn[fe]}function ie(fe,$e){return fe==null?t:fe[$e]}function oe(fe){return Ea.test(fe)}function ge(fe){return zo.test(fe)}function xe(fe){for(var $e,Ce=[];!($e=fe.next()).done;)Ce.push($e.value);return Ce}function Ee(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ke,ft){Ce[++$e]=[ft,Ke]}),Ce}function We(fe,$e){return function(Ce){return fe($e(Ce))}}function He(fe,$e){for(var Ce=-1,Ke=fe.length,ft=0,Et=[];++Ce<Ke;){var en=fe[Ce];(en===$e||en===s)&&(fe[Ce]=s,Et[ft++]=Ce)}return Et}function Ye(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ke){Ce[++$e]=Ke}),Ce}function Qe(fe){var $e=-1,Ce=Array(fe.size);return fe.forEach(function(Ke){Ce[++$e]=[Ke,Ke]}),Ce}function rt(fe,$e,Ce){for(var Ke=Ce-1,ft=fe.length;++Ke<ft;)if(fe[Ke]===$e)return Ke;return-1}function xt(fe,$e,Ce){for(var Ke=Ce+1;Ke--;)if(fe[Ke]===$e)return Ke;return Ke}function Bt(fe){return oe(fe)?ct(fe):z(fe)}function At(fe){return oe(fe)?xn(fe):q(fe)}function Ft(fe){for(var $e=fe.length;$e--&&On.test(fe.charAt($e)););return $e}var gt=Oe(qi);function ct(fe){for(var $e=Ri.lastIndex=0;Ri.test(fe);)++$e;return $e}function xn(fe){return fe.match(Ri)||[]}function Fn(fe){return fe.match(or)||[]}var dr=function fe($e){$e=$e==null?gn:Yt.defaults(gn.Object(),$e,Yt.pick(gn,Vi));var Ce=$e.Array,Ke=$e.Date,ft=$e.Error,Et=$e.Function,en=$e.Math,Lt=$e.Object,oi=$e.RegExp,Yi=$e.String,mn=$e.TypeError,Rr=Ce.prototype,jo=Et.prototype,Qn=Lt.prototype,Ys=$e["__core-js_shared__"],Uc=jo.toString,pn=Qn.hasOwnProperty,BR=0,v0=function(){var o=/[^.]+$/.exec(Ys&&Ys.keys&&Ys.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Vc=Qn.toString,HR=Uc.call(Lt),zR=gn._,jR=oi("^"+Uc.call(pn).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qc=ii?$e.Buffer:t,ms=$e.Symbol,Kc=$e.Uint8Array,y0=qc?qc.allocUnsafe:t,Gc=We(Lt.getPrototypeOf,Lt),b0=Lt.create,w0=Qn.propertyIsEnumerable,Yc=Rr.splice,x0=ms?ms.isConcatSpreadable:t,bl=ms?ms.iterator:t,Xs=ms?ms.toStringTag:t,Xc=function(){try{var o=ta(Lt,"defineProperty");return o({},"",{}),o}catch{}}(),UR=$e.clearTimeout!==gn.clearTimeout&&$e.clearTimeout,VR=Ke&&Ke.now!==gn.Date.now&&Ke.now,qR=$e.setTimeout!==gn.setTimeout&&$e.setTimeout,Zc=en.ceil,Qc=en.floor,Qd=Lt.getOwnPropertySymbols,KR=qc?qc.isBuffer:t,C0=$e.isFinite,GR=Rr.join,YR=We(Lt.keys,Lt),Cr=en.max,Vr=en.min,XR=Ke.now,ZR=$e.parseInt,k0=en.random,QR=Rr.reverse,Jd=ta($e,"DataView"),wl=ta($e,"Map"),ep=ta($e,"Promise"),Ia=ta($e,"Set"),xl=ta($e,"WeakMap"),Cl=ta(Lt,"create"),Jc=xl&&new xl,Ra={},JR=na(Jd),eL=na(wl),tL=na(ep),nL=na(Ia),rL=na(xl),eu=ms?ms.prototype:t,kl=eu?eu.valueOf:t,A0=eu?eu.toString:t;function ee(o){if(Jn(o)&&!St(o)&&!(o instanceof Gt)){if(o instanceof Xi)return o;if(pn.call(o,"__wrapped__"))return Sw(o)}return new Xi(o)}var La=function(){function o(){}return function(v){if(!jn(v))return{};if(b0)return b0(v);o.prototype=v;var E=new o;return o.prototype=t,E}}();function tu(){}function Xi(o,v){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=t}ee.templateSettings={escape:ti,evaluate:Tn,interpolate:vi,variable:"",imports:{_:ee}},ee.prototype=tu.prototype,ee.prototype.constructor=ee,Xi.prototype=La(tu.prototype),Xi.prototype.constructor=Xi;function Gt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function iL(){var o=new Gt(this.__wrapped__);return o.__actions__=ki(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=ki(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=ki(this.__views__),o}function oL(){if(this.__filtered__){var o=new Gt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function sL(){var o=this.__wrapped__.value(),v=this.__dir__,E=St(o),j=v<0,G=E?o.length:0,te=yO(0,G,this.__views__),ue=te.start,pe=te.end,ye=pe-ue,Ie=j?pe:ue-1,Re=this.__iteratees__,De=Re.length,Ze=0,lt=Vr(ye,this.__takeCount__);if(!E||!j&&G==ye&<==ye)return G0(o,this.__actions__);var vt=[];e:for(;ye--&&Ze<lt;){Ie+=v;for(var Ot=-1,yt=o[Ie];++Ot<De;){var zt=Re[Ot],Xt=zt.iteratee,Wi=zt.type,li=Xt(yt);if(Wi==A)yt=li;else if(!li){if(Wi==$)continue e;break e}}vt[Ze++]=yt}return vt}Gt.prototype=La(tu.prototype),Gt.prototype.constructor=Gt;function Zs(o){var v=-1,E=o==null?0:o.length;for(this.clear();++v<E;){var j=o[v];this.set(j[0],j[1])}}function aL(){this.__data__=Cl?Cl(null):{},this.size=0}function lL(o){var v=this.has(o)&&delete this.__data__[o];return this.size-=v?1:0,v}function cL(o){var v=this.__data__;if(Cl){var E=v[o];return E===h?t:E}return pn.call(v,o)?v[o]:t}function uL(o){var v=this.__data__;return Cl?v[o]!==t:pn.call(v,o)}function hL(o,v){var E=this.__data__;return this.size+=this.has(o)?0:1,E[o]=Cl&&v===t?h:v,this}Zs.prototype.clear=aL,Zs.prototype.delete=lL,Zs.prototype.get=cL,Zs.prototype.has=uL,Zs.prototype.set=hL;function Uo(o){var v=-1,E=o==null?0:o.length;for(this.clear();++v<E;){var j=o[v];this.set(j[0],j[1])}}function dL(){this.__data__=[],this.size=0}function pL(o){var v=this.__data__,E=nu(v,o);if(E<0)return!1;var j=v.length-1;return E==j?v.pop():Yc.call(v,E,1),--this.size,!0}function fL(o){var v=this.__data__,E=nu(v,o);return E<0?t:v[E][1]}function gL(o){return nu(this.__data__,o)>-1}function mL(o,v){var E=this.__data__,j=nu(E,o);return j<0?(++this.size,E.push([o,v])):E[j][1]=v,this}Uo.prototype.clear=dL,Uo.prototype.delete=pL,Uo.prototype.get=fL,Uo.prototype.has=gL,Uo.prototype.set=mL;function Vo(o){var v=-1,E=o==null?0:o.length;for(this.clear();++v<E;){var j=o[v];this.set(j[0],j[1])}}function vL(){this.size=0,this.__data__={hash:new Zs,map:new(wl||Uo),string:new Zs}}function yL(o){var v=fu(this,o).delete(o);return this.size-=v?1:0,v}function bL(o){return fu(this,o).get(o)}function wL(o){return fu(this,o).has(o)}function xL(o,v){var E=fu(this,o),j=E.size;return E.set(o,v),this.size+=E.size==j?0:1,this}Vo.prototype.clear=vL,Vo.prototype.delete=yL,Vo.prototype.get=bL,Vo.prototype.has=wL,Vo.prototype.set=xL;function Qs(o){var v=-1,E=o==null?0:o.length;for(this.__data__=new Vo;++v<E;)this.add(o[v])}function CL(o){return this.__data__.set(o,h),this}function kL(o){return this.__data__.has(o)}Qs.prototype.add=Qs.prototype.push=CL,Qs.prototype.has=kL;function fo(o){var v=this.__data__=new Uo(o);this.size=v.size}function AL(){this.__data__=new Uo,this.size=0}function SL(o){var v=this.__data__,E=v.delete(o);return this.size=v.size,E}function _L(o){return this.__data__.get(o)}function $L(o){return this.__data__.has(o)}function TL(o,v){var E=this.__data__;if(E instanceof Uo){var j=E.__data__;if(!wl||j.length<d-1)return j.push([o,v]),this.size=++E.size,this;E=this.__data__=new Vo(j)}return E.set(o,v),this.size=E.size,this}fo.prototype.clear=AL,fo.prototype.delete=SL,fo.prototype.get=_L,fo.prototype.has=$L,fo.prototype.set=TL;function S0(o,v){var E=St(o),j=!E&&ra(o),G=!E&&!j&&xs(o),te=!E&&!j&&!G&&Fa(o),ue=E||j||G||te,pe=ue?et(o.length,Yi):[],ye=pe.length;for(var Ie in o)(v||pn.call(o,Ie))&&!(ue&&(Ie=="length"||G&&(Ie=="offset"||Ie=="parent")||te&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||Yo(Ie,ye)))&&pe.push(Ie);return pe}function _0(o){var v=o.length;return v?o[hp(0,v-1)]:t}function ML(o,v){return gu(ki(o),Js(v,0,o.length))}function EL(o){return gu(ki(o))}function tp(o,v,E){(E!==t&&!go(o[v],E)||E===t&&!(v in o))&&qo(o,v,E)}function Al(o,v,E){var j=o[v];(!(pn.call(o,v)&&go(j,E))||E===t&&!(v in o))&&qo(o,v,E)}function nu(o,v){for(var E=o.length;E--;)if(go(o[E][0],v))return E;return-1}function IL(o,v,E,j){return vs(o,function(G,te,ue){v(j,G,E(G),ue)}),j}function $0(o,v){return o&&Io(v,Lr(v),o)}function RL(o,v){return o&&Io(v,Si(v),o)}function qo(o,v,E){v=="__proto__"&&Xc?Xc(o,v,{configurable:!0,enumerable:!0,value:E,writable:!0}):o[v]=E}function np(o,v){for(var E=-1,j=v.length,G=Ce(j),te=o==null;++E<j;)G[E]=te?t:Dp(o,v[E]);return G}function Js(o,v,E){return o===o&&(E!==t&&(o=o<=E?o:E),v!==t&&(o=o>=v?o:v)),o}function Zi(o,v,E,j,G,te){var ue,pe=v&a,ye=v&u,Ie=v&c;if(E&&(ue=G?E(o,j,G,te):E(o)),ue!==t)return ue;if(!jn(o))return o;var Re=St(o);if(Re){if(ue=wO(o),!pe)return ki(o,ue)}else{var De=qr(o),Ze=De==Xe||De==ht;if(xs(o))return Z0(o,pe);if(De==$n||De==se||Ze&&!G){if(ue=ye||Ze?{}:mw(o),!pe)return ye?cO(o,RL(ue,o)):lO(o,$0(ue,o))}else{if(!nn[De])return G?o:{};ue=xO(o,De,pe)}}te||(te=new fo);var lt=te.get(o);if(lt)return lt;te.set(o,ue),Vw(o)?o.forEach(function(yt){ue.add(Zi(yt,v,E,yt,o,te))}):jw(o)&&o.forEach(function(yt,zt){ue.set(zt,Zi(yt,v,E,zt,o,te))});var vt=Ie?ye?Cp:xp:ye?Si:Lr,Ot=Re?t:vt(o);return Nr(Ot||o,function(yt,zt){Ot&&(zt=yt,yt=o[zt]),Al(ue,zt,Zi(yt,v,E,zt,o,te))}),ue}function LL(o){var v=Lr(o);return function(E){return T0(E,o,v)}}function T0(o,v,E){var j=E.length;if(o==null)return!j;for(o=Lt(o);j--;){var G=E[j],te=v[G],ue=o[G];if(ue===t&&!(G in o)||!te(ue))return!1}return!0}function M0(o,v,E){if(typeof o!="function")throw new mn(g);return Il(function(){o.apply(t,E)},v)}function Sl(o,v,E,j){var G=-1,te=Ni,ue=!0,pe=o.length,ye=[],Ie=v.length;if(!pe)return ye;E&&(v=y(v,pt(E))),j?(te=Di,ue=!1):v.length>=d&&(te=kt,ue=!1,v=new Qs(v));e:for(;++G<pe;){var Re=o[G],De=E==null?Re:E(Re);if(Re=j||Re!==0?Re:0,ue&&De===De){for(var Ze=Ie;Ze--;)if(v[Ze]===De)continue e;ye.push(Re)}else te(v,De,j)||ye.push(Re)}return ye}var vs=nw(Eo),E0=nw(ip,!0);function OL(o,v){var E=!0;return vs(o,function(j,G,te){return E=!!v(j,G,te),E}),E}function ru(o,v,E){for(var j=-1,G=o.length;++j<G;){var te=o[j],ue=v(te);if(ue!=null&&(pe===t?ue===ue&&!Pi(ue):E(ue,pe)))var pe=ue,ye=te}return ye}function NL(o,v,E,j){var G=o.length;for(E=It(E),E<0&&(E=-E>G?0:G+E),j=j===t||j>G?G:It(j),j<0&&(j+=G),j=E>j?0:Kw(j);E<j;)o[E++]=v;return o}function I0(o,v){var E=[];return vs(o,function(j,G,te){v(j,G,te)&&E.push(j)}),E}function Fr(o,v,E,j,G){var te=-1,ue=o.length;for(E||(E=kO),G||(G=[]);++te<ue;){var pe=o[te];v>0&&E(pe)?v>1?Fr(pe,v-1,E,j,G):T(G,pe):j||(G[G.length]=pe)}return G}var rp=rw(),R0=rw(!0);function Eo(o,v){return o&&rp(o,v,Lr)}function ip(o,v){return o&&R0(o,v,Lr)}function iu(o,v){return Ur(v,function(E){return Xo(o[E])})}function ea(o,v){v=bs(v,o);for(var E=0,j=v.length;o!=null&&E<j;)o=o[Ro(v[E++])];return E&&E==j?o:t}function L0(o,v,E){var j=v(o);return St(o)?j:T(j,E(o))}function si(o){return o==null?o===t?bt:Jt:Xs&&Xs in Lt(o)?vO(o):EO(o)}function op(o,v){return o>v}function DL(o,v){return o!=null&&pn.call(o,v)}function FL(o,v){return o!=null&&v in Lt(o)}function PL(o,v,E){return o>=Vr(v,E)&&o<Cr(v,E)}function sp(o,v,E){for(var j=E?Di:Ni,G=o[0].length,te=o.length,ue=te,pe=Ce(te),ye=1/0,Ie=[];ue--;){var Re=o[ue];ue&&v&&(Re=y(Re,pt(v))),ye=Vr(Re.length,ye),pe[ue]=!E&&(v||G>=120&&Re.length>=120)?new Qs(ue&&Re):t}Re=o[0];var De=-1,Ze=pe[0];e:for(;++De<G&&Ie.length<ye;){var lt=Re[De],vt=v?v(lt):lt;if(lt=E||lt!==0?lt:0,!(Ze?kt(Ze,vt):j(Ie,vt,E))){for(ue=te;--ue;){var Ot=pe[ue];if(!(Ot?kt(Ot,vt):j(o[ue],vt,E)))continue e}Ze&&Ze.push(vt),Ie.push(lt)}}return Ie}function WL(o,v,E,j){return Eo(o,function(G,te,ue){v(j,E(G),te,ue)}),j}function _l(o,v,E){v=bs(v,o),o=ww(o,v);var j=o==null?o:o[Ro(Ji(v))];return j==null?t:Mr(j,o,E)}function O0(o){return Jn(o)&&si(o)==se}function BL(o){return Jn(o)&&si(o)==Vt}function HL(o){return Jn(o)&&si(o)==Te}function $l(o,v,E,j,G){return o===v?!0:o==null||v==null||!Jn(o)&&!Jn(v)?o!==o&&v!==v:zL(o,v,E,j,$l,G)}function zL(o,v,E,j,G,te){var ue=St(o),pe=St(v),ye=ue?de:qr(o),Ie=pe?de:qr(v);ye=ye==se?$n:ye,Ie=Ie==se?$n:Ie;var Re=ye==$n,De=Ie==$n,Ze=ye==Ie;if(Ze&&xs(o)){if(!xs(v))return!1;ue=!0,Re=!1}if(Ze&&!Re)return te||(te=new fo),ue||Fa(o)?pw(o,v,E,j,G,te):gO(o,v,ye,E,j,G,te);if(!(E&i)){var lt=Re&&pn.call(o,"__wrapped__"),vt=De&&pn.call(v,"__wrapped__");if(lt||vt){var Ot=lt?o.value():o,yt=vt?v.value():v;return te||(te=new fo),G(Ot,yt,E,j,te)}}return Ze?(te||(te=new fo),mO(o,v,E,j,G,te)):!1}function jL(o){return Jn(o)&&qr(o)==st}function ap(o,v,E,j){var G=E.length,te=G,ue=!j;if(o==null)return!te;for(o=Lt(o);G--;){var pe=E[G];if(ue&&pe[2]?pe[1]!==o[pe[0]]:!(pe[0]in o))return!1}for(;++G<te;){pe=E[G];var ye=pe[0],Ie=o[ye],Re=pe[1];if(ue&&pe[2]){if(Ie===t&&!(ye in o))return!1}else{var De=new fo;if(j)var Ze=j(Ie,Re,ye,o,v,De);if(!(Ze===t?$l(Re,Ie,i|l,j,De):Ze))return!1}}return!0}function N0(o){if(!jn(o)||SO(o))return!1;var v=Xo(o)?jR:_r;return v.test(na(o))}function UL(o){return Jn(o)&&si(o)==fn}function VL(o){return Jn(o)&&qr(o)==Bn}function qL(o){return Jn(o)&&xu(o.length)&&!!an[si(o)]}function D0(o){return typeof o=="function"?o:o==null?_i:typeof o=="object"?St(o)?W0(o[0],o[1]):P0(o):ix(o)}function lp(o){if(!El(o))return YR(o);var v=[];for(var E in Lt(o))pn.call(o,E)&&E!="constructor"&&v.push(E);return v}function KL(o){if(!jn(o))return MO(o);var v=El(o),E=[];for(var j in o)j=="constructor"&&(v||!pn.call(o,j))||E.push(j);return E}function cp(o,v){return o<v}function F0(o,v){var E=-1,j=Ai(o)?Ce(o.length):[];return vs(o,function(G,te,ue){j[++E]=v(G,te,ue)}),j}function P0(o){var v=Ap(o);return v.length==1&&v[0][2]?yw(v[0][0],v[0][1]):function(E){return E===o||ap(E,o,v)}}function W0(o,v){return _p(o)&&vw(v)?yw(Ro(o),v):function(E){var j=Dp(E,o);return j===t&&j===v?Fp(E,o):$l(v,j,i|l)}}function ou(o,v,E,j,G){o!==v&&rp(v,function(te,ue){if(G||(G=new fo),jn(te))GL(o,v,ue,E,ou,j,G);else{var pe=j?j(Tp(o,ue),te,ue+"",o,v,G):t;pe===t&&(pe=te),tp(o,ue,pe)}},Si)}function GL(o,v,E,j,G,te,ue){var pe=Tp(o,E),ye=Tp(v,E),Ie=ue.get(ye);if(Ie){tp(o,E,Ie);return}var Re=te?te(pe,ye,E+"",o,v,ue):t,De=Re===t;if(De){var Ze=St(ye),lt=!Ze&&xs(ye),vt=!Ze&&!lt&&Fa(ye);Re=ye,Ze||lt||vt?St(pe)?Re=pe:sr(pe)?Re=ki(pe):lt?(De=!1,Re=Z0(ye,!0)):vt?(De=!1,Re=Q0(ye,!0)):Re=[]:Rl(ye)||ra(ye)?(Re=pe,ra(pe)?Re=Gw(pe):(!jn(pe)||Xo(pe))&&(Re=mw(ye))):De=!1}De&&(ue.set(ye,Re),G(Re,ye,j,te,ue),ue.delete(ye)),tp(o,E,Re)}function B0(o,v){var E=o.length;if(E)return v+=v<0?E:0,Yo(v,E)?o[v]:t}function H0(o,v,E){v.length?v=y(v,function(te){return St(te)?function(ue){return ea(ue,te.length===1?te[0]:te)}:te}):v=[_i];var j=-1;v=y(v,pt(mt()));var G=F0(o,function(te,ue,pe){var ye=y(v,function(Ie){return Ie(te)});return{criteria:ye,index:++j,value:te}});return Ge(G,function(te,ue){return aO(te,ue,E)})}function YL(o,v){return z0(o,v,function(E,j){return Fp(o,j)})}function z0(o,v,E){for(var j=-1,G=v.length,te={};++j<G;){var ue=v[j],pe=ea(o,ue);E(pe,ue)&&Tl(te,bs(ue,o),pe)}return te}function XL(o){return function(v){return ea(v,o)}}function up(o,v,E,j){var G=j?be:ae,te=-1,ue=v.length,pe=o;for(o===v&&(v=ki(v)),E&&(pe=y(o,pt(E)));++te<ue;)for(var ye=0,Ie=v[te],Re=E?E(Ie):Ie;(ye=G(pe,Re,ye,j))>-1;)pe!==o&&Yc.call(pe,ye,1),Yc.call(o,ye,1);return o}function j0(o,v){for(var E=o?v.length:0,j=E-1;E--;){var G=v[E];if(E==j||G!==te){var te=G;Yo(G)?Yc.call(o,G,1):fp(o,G)}}return o}function hp(o,v){return o+Qc(k0()*(v-o+1))}function ZL(o,v,E,j){for(var G=-1,te=Cr(Zc((v-o)/(E||1)),0),ue=Ce(te);te--;)ue[j?te:++G]=o,o+=E;return ue}function dp(o,v){var E="";if(!o||v<1||v>U)return E;do v%2&&(E+=o),v=Qc(v/2),v&&(o+=o);while(v);return E}function Pt(o,v){return Mp(bw(o,v,_i),o+"")}function QL(o){return _0(Pa(o))}function JL(o,v){var E=Pa(o);return gu(E,Js(v,0,E.length))}function Tl(o,v,E,j){if(!jn(o))return o;v=bs(v,o);for(var G=-1,te=v.length,ue=te-1,pe=o;pe!=null&&++G<te;){var ye=Ro(v[G]),Ie=E;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return o;if(G!=ue){var Re=pe[ye];Ie=j?j(Re,ye,pe):t,Ie===t&&(Ie=jn(Re)?Re:Yo(v[G+1])?[]:{})}Al(pe,ye,Ie),pe=pe[ye]}return o}var U0=Jc?function(o,v){return Jc.set(o,v),o}:_i,eO=Xc?function(o,v){return Xc(o,"toString",{configurable:!0,enumerable:!1,value:Wp(v),writable:!0})}:_i;function tO(o){return gu(Pa(o))}function Qi(o,v,E){var j=-1,G=o.length;v<0&&(v=-v>G?0:G+v),E=E>G?G:E,E<0&&(E+=G),G=v>E?0:E-v>>>0,v>>>=0;for(var te=Ce(G);++j<G;)te[j]=o[j+v];return te}function nO(o,v){var E;return vs(o,function(j,G,te){return E=v(j,G,te),!E}),!!E}function su(o,v,E){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&&!Pi(ue)&&(E?ue<=v:ue<v)?j=te+1:G=te}return G}return pp(o,v,_i,E)}function pp(o,v,E,j){var G=0,te=o==null?0:o.length;if(te===0)return 0;v=E(v);for(var ue=v!==v,pe=v===null,ye=Pi(v),Ie=v===t;G<te;){var Re=Qc((G+te)/2),De=E(o[Re]),Ze=De!==t,lt=De===null,vt=De===De,Ot=Pi(De);if(ue)var yt=j||vt;else Ie?yt=vt&&(j||Ze):pe?yt=vt&&Ze&&(j||!lt):ye?yt=vt&&Ze&&!lt&&(j||!Ot):lt||Ot?yt=!1:yt=j?De<=v:De<v;yt?G=Re+1:te=Re}return Vr(te,he)}function V0(o,v){for(var E=-1,j=o.length,G=0,te=[];++E<j;){var ue=o[E],pe=v?v(ue):ue;if(!E||!go(pe,ye)){var ye=pe;te[G++]=ue===0?0:ue}}return te}function q0(o){return typeof o=="number"?o:Pi(o)?Q:+o}function Fi(o){if(typeof o=="string")return o;if(St(o))return y(o,Fi)+"";if(Pi(o))return A0?A0.call(o):"";var v=o+"";return v=="0"&&1/o==-B?"-0":v}function ys(o,v,E){var j=-1,G=Ni,te=o.length,ue=!0,pe=[],ye=pe;if(E)ue=!1,G=Di;else if(te>=d){var Ie=v?null:pO(o);if(Ie)return Ye(Ie);ue=!1,G=kt,ye=new Qs}else ye=v?[]:pe;e:for(;++j<te;){var Re=o[j],De=v?v(Re):Re;if(Re=E||Re!==0?Re:0,ue&&De===De){for(var Ze=ye.length;Ze--;)if(ye[Ze]===De)continue e;v&&ye.push(De),pe.push(Re)}else G(ye,De,E)||(ye!==pe&&ye.push(De),pe.push(Re))}return pe}function fp(o,v){return v=bs(v,o),o=ww(o,v),o==null||delete o[Ro(Ji(v))]}function K0(o,v,E,j){return Tl(o,v,E(ea(o,v)),j)}function au(o,v,E,j){for(var G=o.length,te=j?G:-1;(j?te--:++te<G)&&v(o[te],te,o););return E?Qi(o,j?0:te,j?te+1:G):Qi(o,j?te+1:0,j?G:te)}function G0(o,v){var E=o;return E instanceof Gt&&(E=E.value()),S(v,function(j,G){return G.func.apply(G.thisArg,T([j],G.args))},E)}function gp(o,v,E){var j=o.length;if(j<2)return j?ys(o[0]):[];for(var G=-1,te=Ce(j);++G<j;)for(var ue=o[G],pe=-1;++pe<j;)pe!=G&&(te[G]=Sl(te[G]||ue,o[pe],v,E));return ys(Fr(te,1),v,E)}function Y0(o,v,E){for(var j=-1,G=o.length,te=v.length,ue={};++j<G;){var pe=j<te?v[j]:t;E(ue,o[j],pe)}return ue}function mp(o){return sr(o)?o:[]}function vp(o){return typeof o=="function"?o:_i}function bs(o,v){return St(o)?o:_p(o,v)?[o]:Aw(un(o))}var rO=Pt;function ws(o,v,E){var j=o.length;return E=E===t?j:E,!v&&E>=j?o:Qi(o,v,E)}var X0=UR||function(o){return gn.clearTimeout(o)};function Z0(o,v){if(v)return o.slice();var E=o.length,j=y0?y0(E):new o.constructor(E);return o.copy(j),j}function yp(o){var v=new o.constructor(o.byteLength);return new Kc(v).set(new Kc(o)),v}function iO(o,v){var E=v?yp(o.buffer):o.buffer;return new o.constructor(E,o.byteOffset,o.byteLength)}function oO(o){var v=new o.constructor(o.source,zr.exec(o));return v.lastIndex=o.lastIndex,v}function sO(o){return kl?Lt(kl.call(o)):{}}function Q0(o,v){var E=v?yp(o.buffer):o.buffer;return new o.constructor(E,o.byteOffset,o.length)}function J0(o,v){if(o!==v){var E=o!==t,j=o===null,G=o===o,te=Pi(o),ue=v!==t,pe=v===null,ye=v===v,Ie=Pi(v);if(!pe&&!Ie&&!te&&o>v||te&&ue&&ye&&!pe&&!Ie||j&&ue&&ye||!E&&ye||!G)return 1;if(!j&&!te&&!Ie&&o<v||Ie&&E&&G&&!j&&!te||pe&&E&&G||!ue&&G||!ye)return-1}return 0}function aO(o,v,E){for(var j=-1,G=o.criteria,te=v.criteria,ue=G.length,pe=E.length;++j<ue;){var ye=J0(G[j],te[j]);if(ye){if(j>=pe)return ye;var Ie=E[j];return ye*(Ie=="desc"?-1:1)}}return o.index-v.index}function ew(o,v,E,j){for(var G=-1,te=o.length,ue=E.length,pe=-1,ye=v.length,Ie=Cr(te-ue,0),Re=Ce(ye+Ie),De=!j;++pe<ye;)Re[pe]=v[pe];for(;++G<ue;)(De||G<te)&&(Re[E[G]]=o[G]);for(;Ie--;)Re[pe++]=o[G++];return Re}function tw(o,v,E,j){for(var G=-1,te=o.length,ue=-1,pe=E.length,ye=-1,Ie=v.length,Re=Cr(te-pe,0),De=Ce(Re+Ie),Ze=!j;++G<Re;)De[G]=o[G];for(var lt=G;++ye<Ie;)De[lt+ye]=v[ye];for(;++ue<pe;)(Ze||G<te)&&(De[lt+E[ue]]=o[G++]);return De}function ki(o,v){var E=-1,j=o.length;for(v||(v=Ce(j));++E<j;)v[E]=o[E];return v}function Io(o,v,E,j){var G=!E;E||(E={});for(var te=-1,ue=v.length;++te<ue;){var pe=v[te],ye=j?j(E[pe],o[pe],pe,E,o):t;ye===t&&(ye=o[pe]),G?qo(E,pe,ye):Al(E,pe,ye)}return E}function lO(o,v){return Io(o,Sp(o),v)}function cO(o,v){return Io(o,fw(o),v)}function lu(o,v){return function(E,j){var G=St(E)?Er:IL,te=v?v():{};return G(E,o,mt(j,2),te)}}function Oa(o){return Pt(function(v,E){var j=-1,G=E.length,te=G>1?E[G-1]:t,ue=G>2?E[2]:t;for(te=o.length>3&&typeof te=="function"?(G--,te):t,ue&&ai(E[0],E[1],ue)&&(te=G<3?t:te,G=1),v=Lt(v);++j<G;){var pe=E[j];pe&&o(v,pe,j,te)}return v})}function nw(o,v){return function(E,j){if(E==null)return E;if(!Ai(E))return o(E,j);for(var G=E.length,te=v?G:-1,ue=Lt(E);(v?te--:++te<G)&&j(ue[te],te,ue)!==!1;);return E}}function rw(o){return function(v,E,j){for(var G=-1,te=Lt(v),ue=j(v),pe=ue.length;pe--;){var ye=ue[o?pe:++G];if(E(te[ye],ye,te)===!1)break}return v}}function uO(o,v,E){var j=v&m,G=Ml(o);function te(){var ue=this&&this!==gn&&this instanceof te?G:o;return ue.apply(j?E:this,arguments)}return te}function iw(o){return function(v){v=un(v);var E=oe(v)?At(v):t,j=E?E[0]:v.charAt(0),G=E?ws(E,1).join(""):v.slice(1);return j[o]()+G}}function Na(o){return function(v){return S(nx(tx(v).replace(zn,"")),o,"")}}function Ml(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 E=La(o.prototype),j=o.apply(E,v);return jn(j)?j:E}}function hO(o,v,E){var j=Ml(o);function G(){for(var te=arguments.length,ue=Ce(te),pe=te,ye=Da(G);pe--;)ue[pe]=arguments[pe];var Ie=te<3&&ue[0]!==ye&&ue[te-1]!==ye?[]:He(ue,ye);if(te-=Ie.length,te<E)return cw(o,v,cu,G.placeholder,t,ue,Ie,t,t,E-te);var Re=this&&this!==gn&&this instanceof G?j:o;return Mr(Re,this,ue)}return G}function ow(o){return function(v,E,j){var G=Lt(v);if(!Ai(v)){var te=mt(E,3);v=Lr(v),E=function(pe){return te(G[pe],pe,G)}}var ue=o(v,E,j);return ue>-1?G[te?v[ue]:ue]:t}}function sw(o){return Go(function(v){var E=v.length,j=E,G=Xi.prototype.thru;for(o&&v.reverse();j--;){var te=v[j];if(typeof te!="function")throw new mn(g);if(G&&!ue&&pu(te)=="wrapper")var ue=new Xi([],!0)}for(j=ue?j:E;++j<E;){te=v[j];var pe=pu(te),ye=pe=="wrapper"?kp(te):t;ye&&$p(ye[0])&&ye[1]==(L|M|k|D)&&!ye[4].length&&ye[9]==1?ue=ue[pu(ye[0])].apply(ue,ye[3]):ue=te.length==1&&$p(te)?ue[pe]():ue.thru(te)}return function(){var Ie=arguments,Re=Ie[0];if(ue&&Ie.length==1&&St(Re))return ue.plant(Re).value();for(var De=0,Ze=E?v[De].apply(this,Ie):Re;++De<E;)Ze=v[De].call(this,Ze);return Ze}})}function cu(o,v,E,j,G,te,ue,pe,ye,Ie){var Re=v&L,De=v&m,Ze=v&w,lt=v&(M|_),vt=v&R,Ot=Ze?t:Ml(o);function yt(){for(var zt=arguments.length,Xt=Ce(zt),Wi=zt;Wi--;)Xt[Wi]=arguments[Wi];if(lt)var li=Da(yt),Bi=Ir(Xt,li);if(j&&(Xt=ew(Xt,j,G,lt)),te&&(Xt=tw(Xt,te,ue,lt)),zt-=Bi,lt&&zt<Ie){var ar=He(Xt,li);return cw(o,v,cu,yt.placeholder,E,Xt,ar,pe,ye,Ie-zt)}var mo=De?E:this,Qo=Ze?mo[o]:o;return zt=Xt.length,pe?Xt=IO(Xt,pe):vt&&zt>1&&Xt.reverse(),Re&&ye<zt&&(Xt.length=ye),this&&this!==gn&&this instanceof yt&&(Qo=Ot||Ml(Qo)),Qo.apply(mo,Xt)}return yt}function aw(o,v){return function(E,j){return WL(E,o,v(j),{})}}function uu(o,v){return function(E,j){var G;if(E===t&&j===t)return v;if(E!==t&&(G=E),j!==t){if(G===t)return j;typeof E=="string"||typeof j=="string"?(E=Fi(E),j=Fi(j)):(E=q0(E),j=q0(j)),G=o(E,j)}return G}}function bp(o){return Go(function(v){return v=y(v,pt(mt())),Pt(function(E){var j=this;return o(v,function(G){return Mr(G,j,E)})})})}function hu(o,v){v=v===t?" ":Fi(v);var E=v.length;if(E<2)return E?dp(v,o):v;var j=dp(v,Zc(o/Bt(v)));return oe(v)?ws(At(j),0,o).join(""):j.slice(0,o)}function dO(o,v,E,j){var G=v&m,te=Ml(o);function ue(){for(var pe=-1,ye=arguments.length,Ie=-1,Re=j.length,De=Ce(Re+ye),Ze=this&&this!==gn&&this instanceof ue?te:o;++Ie<Re;)De[Ie]=j[Ie];for(;ye--;)De[Ie++]=arguments[++pe];return Mr(Ze,G?E:this,De)}return ue}function lw(o){return function(v,E,j){return j&&typeof j!="number"&&ai(v,E,j)&&(E=j=t),v=Zo(v),E===t?(E=v,v=0):E=Zo(E),j=j===t?v<E?1:-1:Zo(j),ZL(v,E,j,o)}}function du(o){return function(v,E){return typeof v=="string"&&typeof E=="string"||(v=eo(v),E=eo(E)),o(v,E)}}function cw(o,v,E,j,G,te,ue,pe,ye,Ie){var Re=v&M,De=Re?ue:t,Ze=Re?t:ue,lt=Re?te:t,vt=Re?t:te;v|=Re?k:C,v&=~(Re?C:k),v&x||(v&=-4);var Ot=[o,v,G,lt,De,vt,Ze,pe,ye,Ie],yt=E.apply(t,Ot);return $p(o)&&xw(yt,Ot),yt.placeholder=j,Cw(yt,o,v)}function wp(o){var v=en[o];return function(E,j){if(E=eo(E),j=j==null?0:Vr(It(j),292),j&&C0(E)){var G=(un(E)+"e").split("e"),te=v(G[0]+"e"+(+G[1]+j));return G=(un(te)+"e").split("e"),+(G[0]+"e"+(+G[1]-j))}return v(E)}}var pO=Ia&&1/Ye(new Ia([,-0]))[1]==B?function(o){return new Ia(o)}:zp;function uw(o){return function(v){var E=qr(v);return E==st?Ee(v):E==Bn?Qe(v):at(v,o(v))}}function Ko(o,v,E,j,G,te,ue,pe){var ye=v&w;if(!ye&&typeof o!="function")throw new mn(g);var Ie=j?j.length:0;if(Ie||(v&=-97,j=G=t),ue=ue===t?ue:Cr(It(ue),0),pe=pe===t?pe:It(pe),Ie-=G?G.length:0,v&C){var Re=j,De=G;j=G=t}var Ze=ye?t:kp(o),lt=[o,v,E,j,G,Re,De,te,ue,pe];if(Ze&&TO(lt,Ze),o=lt[0],v=lt[1],E=lt[2],j=lt[3],G=lt[4],pe=lt[9]=lt[9]===t?ye?0:o.length:Cr(lt[9]-Ie,0),!pe&&v&(M|_)&&(v&=-25),!v||v==m)var vt=uO(o,v,E);else v==M||v==_?vt=hO(o,v,pe):(v==k||v==(m|k))&&!G.length?vt=dO(o,v,E,j):vt=cu.apply(t,lt);var Ot=Ze?U0:xw;return Cw(Ot(vt,lt),o,v)}function hw(o,v,E,j){return o===t||go(o,Qn[E])&&!pn.call(j,E)?v:o}function dw(o,v,E,j,G,te){return jn(o)&&jn(v)&&(te.set(v,o),ou(o,v,t,dw,te),te.delete(v)),o}function fO(o){return Rl(o)?t:o}function pw(o,v,E,j,G,te){var ue=E&i,pe=o.length,ye=v.length;if(pe!=ye&&!(ue&&ye>pe))return!1;var Ie=te.get(o),Re=te.get(v);if(Ie&&Re)return Ie==v&&Re==o;var De=-1,Ze=!0,lt=E&l?new Qs:t;for(te.set(o,v),te.set(v,o);++De<pe;){var vt=o[De],Ot=v[De];if(j)var yt=ue?j(Ot,vt,De,v,o,te):j(vt,Ot,De,o,v,te);if(yt!==t){if(yt)continue;Ze=!1;break}if(lt){if(!W(v,function(zt,Xt){if(!kt(lt,Xt)&&(vt===zt||G(vt,zt,E,j,te)))return lt.push(Xt)})){Ze=!1;break}}else if(!(vt===Ot||G(vt,Ot,E,j,te))){Ze=!1;break}}return te.delete(o),te.delete(v),Ze}function gO(o,v,E,j,G,te,ue){switch(E){case Ln:if(o.byteLength!=v.byteLength||o.byteOffset!=v.byteOffset)return!1;o=o.buffer,v=v.buffer;case Vt:return!(o.byteLength!=v.byteLength||!te(new Kc(o),new Kc(v)));case _e:case Te:case dt:return go(+o,+v);case Je:return o.name==v.name&&o.message==v.message;case fn:case ir:return o==v+"";case st:var pe=Ee;case Bn:var ye=j&i;if(pe||(pe=Ye),o.size!=v.size&&!ye)return!1;var Ie=ue.get(o);if(Ie)return Ie==v;j|=l,ue.set(o,v);var Re=pw(pe(o),pe(v),j,G,te,ue);return ue.delete(o),Re;case Or:if(kl)return kl.call(o)==kl.call(v)}return!1}function mO(o,v,E,j,G,te){var ue=E&i,pe=xp(o),ye=pe.length,Ie=xp(v),Re=Ie.length;if(ye!=Re&&!ue)return!1;for(var De=ye;De--;){var Ze=pe[De];if(!(ue?Ze in v:pn.call(v,Ze)))return!1}var lt=te.get(o),vt=te.get(v);if(lt&&vt)return lt==v&&vt==o;var Ot=!0;te.set(o,v),te.set(v,o);for(var yt=ue;++De<ye;){Ze=pe[De];var zt=o[Ze],Xt=v[Ze];if(j)var Wi=ue?j(Xt,zt,Ze,v,o,te):j(zt,Xt,Ze,o,v,te);if(!(Wi===t?zt===Xt||G(zt,Xt,E,j,te):Wi)){Ot=!1;break}yt||(yt=Ze=="constructor")}if(Ot&&!yt){var li=o.constructor,Bi=v.constructor;li!=Bi&&"constructor"in o&&"constructor"in v&&!(typeof li=="function"&&li instanceof li&&typeof Bi=="function"&&Bi instanceof Bi)&&(Ot=!1)}return te.delete(o),te.delete(v),Ot}function Go(o){return Mp(bw(o,t,Tw),o+"")}function xp(o){return L0(o,Lr,Sp)}function Cp(o){return L0(o,Si,fw)}var kp=Jc?function(o){return Jc.get(o)}:zp;function pu(o){for(var v=o.name+"",E=Ra[v],j=pn.call(Ra,v)?E.length:0;j--;){var G=E[j],te=G.func;if(te==null||te==o)return G.name}return v}function Da(o){var v=pn.call(ee,"placeholder")?ee:o;return v.placeholder}function mt(){var o=ee.iteratee||Bp;return o=o===Bp?D0:o,arguments.length?o(arguments[0],arguments[1]):o}function fu(o,v){var E=o.__data__;return AO(v)?E[typeof v=="string"?"string":"hash"]:E.map}function Ap(o){for(var v=Lr(o),E=v.length;E--;){var j=v[E],G=o[j];v[E]=[j,G,vw(G)]}return v}function ta(o,v){var E=ie(o,v);return N0(E)?E:t}function vO(o){var v=pn.call(o,Xs),E=o[Xs];try{o[Xs]=t;var j=!0}catch{}var G=Vc.call(o);return j&&(v?o[Xs]=E:delete o[Xs]),G}var Sp=Qd?function(o){return o==null?[]:(o=Lt(o),Ur(Qd(o),function(v){return w0.call(o,v)}))}:jp,fw=Qd?function(o){for(var v=[];o;)T(v,Sp(o)),o=Gc(o);return v}:jp,qr=si;(Jd&&qr(new Jd(new ArrayBuffer(1)))!=Ln||wl&&qr(new wl)!=st||ep&&qr(ep.resolve())!=Ht||Ia&&qr(new Ia)!=Bn||xl&&qr(new xl)!=qe)&&(qr=function(o){var v=si(o),E=v==$n?o.constructor:t,j=E?na(E):"";if(j)switch(j){case JR:return Ln;case eL:return st;case tL:return Ht;case nL:return Bn;case rL:return qe}return v});function yO(o,v,E){for(var j=-1,G=E.length;++j<G;){var te=E[j],ue=te.size;switch(te.type){case"drop":o+=ue;break;case"dropRight":v-=ue;break;case"take":v=Vr(v,o+ue);break;case"takeRight":o=Cr(o,v-ue);break}}return{start:o,end:v}}function bO(o){var v=o.match(wi);return v?v[1].split(Ao):[]}function gw(o,v,E){v=bs(v,o);for(var j=-1,G=v.length,te=!1;++j<G;){var ue=Ro(v[j]);if(!(te=o!=null&&E(o,ue)))break;o=o[ue]}return te||++j!=G?te:(G=o==null?0:o.length,!!G&&xu(G)&&Yo(ue,G)&&(St(o)||ra(o)))}function wO(o){var v=o.length,E=new o.constructor(v);return v&&typeof o[0]=="string"&&pn.call(o,"index")&&(E.index=o.index,E.input=o.input),E}function mw(o){return typeof o.constructor=="function"&&!El(o)?La(Gc(o)):{}}function xO(o,v,E){var j=o.constructor;switch(v){case Vt:return yp(o);case _e:case Te:return new j(+o);case Ln:return iO(o,E);case Ar:case vr:case bn:case qn:case Hn:case Zt:case dn:case Hr:case Jr:return Q0(o,E);case st:return new j;case dt:case ir:return new j(o);case fn:return oO(o);case Bn:return new j;case Or:return sO(o)}}function CO(o,v){var E=v.length;if(!E)return o;var j=E-1;return v[j]=(E>1?"& ":"")+v[j],v=v.join(E>2?", ":" "),o.replace(Sr,`{
|
|
1470
1470
|
/* [wrapped with `+v+`] */
|
|
1471
|
-
`)}function kO(o){return St(o)||ra(o)||!!(x0&&o&&o[x0])}function Yo(o,v){var E=typeof o;return v=v??U,!!v&&(E=="number"||E!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<v}function ai(o,v,E){if(!jn(E))return!1;var j=typeof v;return(j=="number"?Ai(E)&&Yo(v,E.length):j=="string"&&v in E)?go(E[v],o):!1}function _p(o,v){if(St(o))return!1;var E=typeof o;return E=="number"||E=="symbol"||E=="boolean"||o==null||Pi(o)?!0:yi.test(o)||!os.test(o)||v!=null&&o in Lt(v)}function AO(o){var v=typeof o;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?o!=="__proto__":o===null}function $p(o){var v=pu(o),E=ee[v];if(typeof E!="function"||!(v in Kt.prototype))return!1;if(o===E)return!0;var j=kp(E);return!!j&&o===j[0]}function SO(o){return!!v0&&v0 in o}var _O=Ys?Xo:Up;function El(o){var v=o&&o.constructor,E=typeof v=="function"&&v.prototype||Qn;return o===E}function vw(o){return o===o&&!jn(o)}function yw(o,v){return function(E){return E==null?!1:E[o]===v&&(v!==t||o in Lt(E))}}function $O(o){var v=bu(o,function(j){return E.size===f&&E.clear(),j}),E=v.cache;return v}function TO(o,v){var E=o[1],j=v[1],G=E|j,te=G<(m|w|L),ue=j==L&&E==M||j==L&&E==D&&o[7].length<=v[8]||j==(L|D)&&v[7].length<=v[8]&&E==M;if(!(te||ue))return o;j&m&&(o[2]=v[2],G|=E&m?0:x);var pe=v[3];if(pe){var ye=o[3];o[3]=ye?ew(ye,pe,v[4]):pe,o[4]=ye?He(o[3],s):v[4]}return pe=v[5],pe&&(ye=o[5],o[5]=ye?tw(ye,pe,v[6]):pe,o[6]=ye?He(o[5],s):v[6]),pe=v[7],pe&&(o[7]=pe),j&L&&(o[8]=o[8]==null?v[8]:Vr(o[8],v[8])),o[9]==null&&(o[9]=v[9]),o[0]=v[0],o[1]=G,o}function MO(o){var v=[];if(o!=null)for(var E in Lt(o))v.push(E);return v}function EO(o){return Vc.call(o)}function bw(o,v,E){return v=Cr(v===t?o.length-1:v,0),function(){for(var j=arguments,G=-1,te=Cr(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]=E(ue),Mr(o,this,pe)}}function ww(o,v){return v.length<2?o:ea(o,Qi(v,0,-1))}function IO(o,v){for(var E=o.length,j=Vr(v.length,E),G=ki(o);j--;){var te=v[j];o[j]=Yo(te,E)?G[te]:t}return o}function Tp(o,v){if(!(v==="constructor"&&typeof o[v]=="function")&&v!="__proto__")return o[v]}var xw=kw(U0),Il=qR||function(o,v){return gn.setTimeout(o,v)},Mp=kw(eO);function Cw(o,v,E){var j=v+"";return Mp(o,CO(j,RO(bO(j),E)))}function kw(o){var v=0,E=0;return function(){var j=XR(),G=O-(j-E);if(E=j,G>0){if(++v>=P)return arguments[0]}else v=0;return o.apply(t,arguments)}}function gu(o,v){var E=-1,j=o.length,G=j-1;for(v=v===t?j:v;++E<v;){var te=hp(E,G),ue=o[te];o[te]=o[E],o[E]=ue}return o.length=v,o}var Aw=$O(function(o){var v=[];return o.charCodeAt(0)===46&&v.push(""),o.replace(Tn,function(E,j,G,te){v.push(G?te.replace(ni,"$1"):j||E)}),v});function Io(o){if(typeof o=="string"||Pi(o))return o;var v=o+"";return v=="0"&&1/o==-B?"-0":v}function na(o){if(o!=null){try{return Uc.call(o)}catch{}try{return o+""}catch{}}return""}function RO(o,v){return Nr(le,function(E){var j="_."+E[0];v&E[1]&&!Ni(o,j)&&o.push(j)}),o.sort()}function Sw(o){if(o instanceof Kt)return o.clone();var v=new Xi(o.__wrapped__,o.__chain__);return v.__actions__=ki(o.__actions__),v.__index__=o.__index__,v.__values__=o.__values__,v}function LO(o,v,E){(E?ai(o,v,E):v===t)?v=1:v=Cr(It(v),0);var j=o==null?0:o.length;if(!j||v<1)return[];for(var G=0,te=0,ue=Ce(Zc(j/v));G<j;)ue[te++]=Qi(o,G,G+=v);return ue}function OO(o){for(var v=-1,E=o==null?0:o.length,j=0,G=[];++v<E;){var te=o[v];te&&(G[j++]=te)}return G}function NO(){var o=arguments.length;if(!o)return[];for(var v=Ce(o-1),E=arguments[0],j=o;j--;)v[j-1]=arguments[j];return T(St(E)?ki(E):[E],Fr(v,1))}var DO=Pt(function(o,v){return sr(o)?Sl(o,Fr(v,1,sr,!0)):[]}),FO=Pt(function(o,v){var E=Ji(v);return sr(E)&&(E=t),sr(o)?Sl(o,Fr(v,1,sr,!0),mt(E,2)):[]}),PO=Pt(function(o,v){var E=Ji(v);return sr(E)&&(E=t),sr(o)?Sl(o,Fr(v,1,sr,!0),t,E):[]});function WO(o,v,E){var j=o==null?0:o.length;return j?(v=E||v===t?1:It(v),Qi(o,v<0?0:v,j)):[]}function BO(o,v,E){var j=o==null?0:o.length;return j?(v=E||v===t?1:It(v),v=j-v,Qi(o,0,v<0?0:v)):[]}function HO(o,v){return o&&o.length?au(o,mt(v,3),!0,!0):[]}function zO(o,v){return o&&o.length?au(o,mt(v,3),!0):[]}function jO(o,v,E,j){var G=o==null?0:o.length;return G?(E&&typeof E!="number"&&ai(o,v,E)&&(E=0,j=G),NL(o,v,E,j)):[]}function _w(o,v,E){var j=o==null?0:o.length;if(!j)return-1;var G=E==null?0:It(E);return G<0&&(G=Cr(j+G,0)),re(o,mt(v,3),G)}function $w(o,v,E){var j=o==null?0:o.length;if(!j)return-1;var G=j-1;return E!==t&&(G=It(E),G=E<0?Cr(j+G,0):Vr(G,j-1)),re(o,mt(v,3),G,!0)}function Tw(o){var v=o==null?0:o.length;return v?Fr(o,1):[]}function UO(o){var v=o==null?0:o.length;return v?Fr(o,B):[]}function VO(o,v){var E=o==null?0:o.length;return E?(v=v===t?1:It(v),Fr(o,v)):[]}function qO(o){for(var v=-1,E=o==null?0:o.length,j={};++v<E;){var G=o[v];j[G[0]]=G[1]}return j}function Mw(o){return o&&o.length?o[0]:t}function KO(o,v,E){var j=o==null?0:o.length;if(!j)return-1;var G=E==null?0:It(E);return G<0&&(G=Cr(j+G,0)),ae(o,v,G)}function GO(o){var v=o==null?0:o.length;return v?Qi(o,0,-1):[]}var YO=Pt(function(o){var v=y(o,mp);return v.length&&v[0]===o[0]?sp(v):[]}),XO=Pt(function(o){var v=Ji(o),E=y(o,mp);return v===Ji(E)?v=t:E.pop(),E.length&&E[0]===o[0]?sp(E,mt(v,2)):[]}),ZO=Pt(function(o){var v=Ji(o),E=y(o,mp);return v=typeof v=="function"?v:t,v&&E.pop(),E.length&&E[0]===o[0]?sp(E,t,v):[]});function QO(o,v){return o==null?"":GR.call(o,v)}function Ji(o){var v=o==null?0:o.length;return v?o[v-1]:t}function JO(o,v,E){var j=o==null?0:o.length;if(!j)return-1;var G=j;return E!==t&&(G=It(E),G=G<0?Cr(j+G,0):Vr(G,j-1)),v===v?xt(o,v,G):re(o,ke,G,!0)}function e2(o,v){return o&&o.length?B0(o,It(v)):t}var t2=Pt(Ew);function Ew(o,v){return o&&o.length&&v&&v.length?up(o,v):o}function n2(o,v,E){return o&&o.length&&v&&v.length?up(o,v,mt(E,2)):o}function r2(o,v,E){return o&&o.length&&v&&v.length?up(o,v,t,E):o}var i2=Go(function(o,v){var E=o==null?0:o.length,j=np(o,v);return j0(o,y(v,function(G){return Yo(G,E)?+G:G}).sort(J0)),j});function o2(o,v){var E=[];if(!(o&&o.length))return E;var j=-1,G=[],te=o.length;for(v=mt(v,3);++j<te;){var ue=o[j];v(ue,j,o)&&(E.push(ue),G.push(j))}return j0(o,G),E}function Ep(o){return o==null?o:QR.call(o)}function s2(o,v,E){var j=o==null?0:o.length;return j?(E&&typeof E!="number"&&ai(o,v,E)?(v=0,E=j):(v=v==null?0:It(v),E=E===t?j:It(E)),Qi(o,v,E)):[]}function a2(o,v){return su(o,v)}function l2(o,v,E){return pp(o,v,mt(E,2))}function c2(o,v){var E=o==null?0:o.length;if(E){var j=su(o,v);if(j<E&&go(o[j],v))return j}return-1}function u2(o,v){return su(o,v,!0)}function h2(o,v,E){return pp(o,v,mt(E,2),!0)}function d2(o,v){var E=o==null?0:o.length;if(E){var j=su(o,v,!0)-1;if(go(o[j],v))return j}return-1}function p2(o){return o&&o.length?V0(o):[]}function f2(o,v){return o&&o.length?V0(o,mt(v,2)):[]}function g2(o){var v=o==null?0:o.length;return v?Qi(o,1,v):[]}function m2(o,v,E){return o&&o.length?(v=E||v===t?1:It(v),Qi(o,0,v<0?0:v)):[]}function v2(o,v,E){var j=o==null?0:o.length;return j?(v=E||v===t?1:It(v),v=j-v,Qi(o,v<0?0:v,j)):[]}function y2(o,v){return o&&o.length?au(o,mt(v,3),!1,!0):[]}function b2(o,v){return o&&o.length?au(o,mt(v,3)):[]}var w2=Pt(function(o){return ys(Fr(o,1,sr,!0))}),x2=Pt(function(o){var v=Ji(o);return sr(v)&&(v=t),ys(Fr(o,1,sr,!0),mt(v,2))}),C2=Pt(function(o){var v=Ji(o);return v=typeof v=="function"?v:t,ys(Fr(o,1,sr,!0),t,v)});function k2(o){return o&&o.length?ys(o):[]}function A2(o,v){return o&&o.length?ys(o,mt(v,2)):[]}function S2(o,v){return v=typeof v=="function"?v:t,o&&o.length?ys(o,t,v):[]}function Ip(o){if(!(o&&o.length))return[];var v=0;return o=Ur(o,function(E){if(sr(E))return v=Cr(E.length,v),!0}),et(v,function(E){return y(o,we(E))})}function Iw(o,v){if(!(o&&o.length))return[];var E=Ip(o);return v==null?E:y(E,function(j){return Mr(v,t,j)})}var _2=Pt(function(o,v){return sr(o)?Sl(o,v):[]}),$2=Pt(function(o){return gp(Ur(o,sr))}),T2=Pt(function(o){var v=Ji(o);return sr(v)&&(v=t),gp(Ur(o,sr),mt(v,2))}),M2=Pt(function(o){var v=Ji(o);return v=typeof v=="function"?v:t,gp(Ur(o,sr),t,v)}),E2=Pt(Ip);function I2(o,v){return Y0(o||[],v||[],Al)}function R2(o,v){return Y0(o||[],v||[],Tl)}var L2=Pt(function(o){var v=o.length,E=v>1?o[v-1]:t;return E=typeof E=="function"?(o.pop(),E):t,Iw(o,E)});function Rw(o){var v=ee(o);return v.__chain__=!0,v}function O2(o,v){return v(o),o}function mu(o,v){return v(o)}var N2=Go(function(o){var v=o.length,E=v?o[0]:0,j=this.__wrapped__,G=function(te){return np(te,o)};return v>1||this.__actions__.length||!(j instanceof Kt)||!Yo(E)?this.thru(G):(j=j.slice(E,+E+(v?1:0)),j.__actions__.push({func:mu,args:[G],thisArg:t}),new Xi(j,this.__chain__).thru(function(te){return v&&!te.length&&te.push(t),te}))});function D2(){return Rw(this)}function F2(){return new Xi(this.value(),this.__chain__)}function P2(){this.__values__===t&&(this.__values__=qw(this.value()));var o=this.__index__>=this.__values__.length,v=o?t:this.__values__[this.__index__++];return{done:o,value:v}}function W2(){return this}function B2(o){for(var v,E=this;E instanceof tu;){var j=Sw(E);j.__index__=0,j.__values__=t,v?G.__wrapped__=j:v=j;var G=j;E=E.__wrapped__}return G.__wrapped__=o,v}function H2(){var o=this.__wrapped__;if(o instanceof Kt){var v=o;return this.__actions__.length&&(v=new Kt(this)),v=v.reverse(),v.__actions__.push({func:mu,args:[Ep],thisArg:t}),new Xi(v,this.__chain__)}return this.thru(Ep)}function z2(){return G0(this.__wrapped__,this.__actions__)}var j2=lu(function(o,v,E){pn.call(o,E)?++o[E]:qo(o,E,1)});function U2(o,v,E){var j=St(o)?Dr:OL;return E&&ai(o,v,E)&&(v=t),j(o,mt(v,3))}function V2(o,v){var E=St(o)?Ur:I0;return E(o,mt(v,3))}var q2=ow(_w),K2=ow($w);function G2(o,v){return Fr(vu(o,v),1)}function Y2(o,v){return Fr(vu(o,v),B)}function X2(o,v,E){return E=E===t?1:It(E),Fr(vu(o,v),E)}function Lw(o,v){var E=St(o)?Nr:vs;return E(o,mt(v,3))}function Ow(o,v){var E=St(o)?Gs:E0;return E(o,mt(v,3))}var Z2=lu(function(o,v,E){pn.call(o,E)?o[E].push(v):qo(o,E,[v])});function Q2(o,v,E,j){o=Ai(o)?o:Pa(o),E=E&&!j?It(E):0;var G=o.length;return E<0&&(E=Cr(G+E,0)),Cu(o)?E<=G&&o.indexOf(v,E)>-1:!!G&&ae(o,v,E)>-1}var J2=Pt(function(o,v,E){var j=-1,G=typeof v=="function",te=Ai(o)?Ce(o.length):[];return vs(o,function(ue){te[++j]=G?Mr(v,ue,E):_l(ue,v,E)}),te}),eN=lu(function(o,v,E){qo(o,E,v)});function vu(o,v){var E=St(o)?y:F0;return E(o,mt(v,3))}function tN(o,v,E,j){return o==null?[]:(St(v)||(v=v==null?[]:[v]),E=j?t:E,St(E)||(E=E==null?[]:[E]),H0(o,v,E))}var nN=lu(function(o,v,E){o[E?0:1].push(v)},function(){return[[],[]]});function rN(o,v,E){var j=St(o)?S:Le,G=arguments.length<3;return j(o,mt(v,4),E,G,vs)}function iN(o,v,E){var j=St(o)?F:Le,G=arguments.length<3;return j(o,mt(v,4),E,G,E0)}function oN(o,v){var E=St(o)?Ur:I0;return E(o,wu(mt(v,3)))}function sN(o){var v=St(o)?_0:QL;return v(o)}function aN(o,v,E){(E?ai(o,v,E):v===t)?v=1:v=It(v);var j=St(o)?ML:JL;return j(o,v)}function lN(o){var v=St(o)?EL:tO;return v(o)}function cN(o){if(o==null)return 0;if(Ai(o))return Cu(o)?Wt(o):o.length;var v=qr(o);return v==st||v==Wn?o.size:lp(o).length}function uN(o,v,E){var j=St(o)?W:nO;return E&&ai(o,v,E)&&(v=t),j(o,mt(v,3))}var hN=Pt(function(o,v){if(o==null)return[];var E=v.length;return E>1&&ai(o,v[0],v[1])?v=[]:E>2&&ai(v[0],v[1],v[2])&&(v=[v[0]]),H0(o,Fr(v,1),[])}),yu=VR||function(){return gn.Date.now()};function dN(o,v){if(typeof v!="function")throw new mn(g);return o=It(o),function(){if(--o<1)return v.apply(this,arguments)}}function Nw(o,v,E){return v=E?t:v,v=o&&v==null?o.length:v,Ko(o,L,t,t,t,t,v)}function Dw(o,v){var E;if(typeof v!="function")throw new mn(g);return o=It(o),function(){return--o>0&&(E=v.apply(this,arguments)),o<=1&&(v=t),E}}var Rp=Pt(function(o,v,E){var j=m;if(E.length){var G=He(E,Da(Rp));j|=k}return Ko(o,j,v,E,G)}),Fw=Pt(function(o,v,E){var j=m|w;if(E.length){var G=He(E,Da(Fw));j|=k}return Ko(v,j,o,E,G)});function Pw(o,v,E){v=E?t:v;var j=Ko(o,M,t,t,t,t,t,v);return j.placeholder=Pw.placeholder,j}function Ww(o,v,E){v=E?t:v;var j=Ko(o,_,t,t,t,t,t,v);return j.placeholder=Ww.placeholder,j}function Bw(o,v,E){var j,G,te,ue,pe,ye,Ie=0,Re=!1,De=!1,Ze=!0;if(typeof o!="function")throw new mn(g);v=eo(v)||0,jn(E)&&(Re=!!E.leading,De="maxWait"in E,te=De?Cr(eo(E.maxWait)||0,v):te,Ze="trailing"in E?!!E.trailing:Ze);function lt(ar){var mo=j,Qo=G;return j=G=t,Ie=ar,ue=o.apply(Qo,mo),ue}function vt(ar){return Ie=ar,pe=Il(zt,v),Re?lt(ar):ue}function Ot(ar){var mo=ar-ye,Qo=ar-Ie,ox=v-mo;return De?Vr(ox,te-Qo):ox}function yt(ar){var mo=ar-ye,Qo=ar-Ie;return ye===t||mo>=v||mo<0||De&&Qo>=te}function zt(){var ar=yu();if(yt(ar))return Yt(ar);pe=Il(zt,Ot(ar))}function Yt(ar){return pe=t,Ze&&j?lt(ar):(j=G=t,ue)}function Wi(){pe!==t&&X0(pe),Ie=0,j=ye=G=pe=t}function li(){return pe===t?ue:Yt(yu())}function Bi(){var ar=yu(),mo=yt(ar);if(j=arguments,G=this,ye=ar,mo){if(pe===t)return vt(ye);if(De)return X0(pe),pe=Il(zt,v),lt(ye)}return pe===t&&(pe=Il(zt,v)),ue}return Bi.cancel=Wi,Bi.flush=li,Bi}var pN=Pt(function(o,v){return M0(o,1,v)}),fN=Pt(function(o,v,E){return M0(o,eo(v)||0,E)});function gN(o){return Ko(o,R)}function bu(o,v){if(typeof o!="function"||v!=null&&typeof v!="function")throw new mn(g);var E=function(){var j=arguments,G=v?v.apply(this,j):j[0],te=E.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,j);return E.cache=te.set(G,ue)||te,ue};return E.cache=new(bu.Cache||Vo),E}bu.Cache=Vo;function wu(o){if(typeof o!="function")throw new mn(g);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 mN(o){return Dw(2,o)}var vN=rO(function(o,v){v=v.length==1&&St(v[0])?y(v[0],pt(mt())):y(Fr(v,1),pt(mt()));var E=v.length;return Pt(function(j){for(var G=-1,te=Vr(j.length,E);++G<te;)j[G]=v[G].call(this,j[G]);return Mr(o,this,j)})}),Lp=Pt(function(o,v){var E=He(v,Da(Lp));return Ko(o,k,t,v,E)}),Hw=Pt(function(o,v){var E=He(v,Da(Hw));return Ko(o,C,t,v,E)}),yN=Go(function(o,v){return Ko(o,D,t,t,t,v)});function bN(o,v){if(typeof o!="function")throw new mn(g);return v=v===t?v:It(v),Pt(o,v)}function wN(o,v){if(typeof o!="function")throw new mn(g);return v=v==null?0:Cr(It(v),0),Pt(function(E){var j=E[v],G=ws(E,0,v);return j&&T(G,j),Mr(o,this,G)})}function xN(o,v,E){var j=!0,G=!0;if(typeof o!="function")throw new mn(g);return jn(E)&&(j="leading"in E?!!E.leading:j,G="trailing"in E?!!E.trailing:G),Bw(o,v,{leading:j,maxWait:v,trailing:G})}function CN(o){return Nw(o,1)}function kN(o,v){return Lp(vp(v),o)}function AN(){if(!arguments.length)return[];var o=arguments[0];return St(o)?o:[o]}function SN(o){return Zi(o,c)}function _N(o,v){return v=typeof v=="function"?v:t,Zi(o,c,v)}function $N(o){return Zi(o,a|c)}function TN(o,v){return v=typeof v=="function"?v:t,Zi(o,a|c,v)}function MN(o,v){return v==null||T0(o,v,Lr(v))}function go(o,v){return o===v||o!==o&&v!==v}var EN=du(op),IN=du(function(o,v){return o>=v}),ra=O0(function(){return arguments}())?O0:function(o){return Jn(o)&&pn.call(o,"callee")&&!w0.call(o,"callee")},St=Ce.isArray,RN=Ci?pt(Ci):BL;function Ai(o){return o!=null&&xu(o.length)&&!Xo(o)}function sr(o){return Jn(o)&&Ai(o)}function LN(o){return o===!0||o===!1||Jn(o)&&si(o)==_e}var xs=KR||Up,ON=gs?pt(gs):HL;function NN(o){return Jn(o)&&o.nodeType===1&&!Rl(o)}function DN(o){if(o==null)return!0;if(Ai(o)&&(St(o)||typeof o=="string"||typeof o.splice=="function"||xs(o)||Fa(o)||ra(o)))return!o.length;var v=qr(o);if(v==st||v==Wn)return!o.size;if(El(o))return!lp(o).length;for(var E in o)if(pn.call(o,E))return!1;return!0}function FN(o,v){return $l(o,v)}function PN(o,v,E){E=typeof E=="function"?E:t;var j=E?E(o,v):t;return j===t?$l(o,v,t,E):!!j}function Op(o){if(!Jn(o))return!1;var v=si(o);return v==Je||v==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Rl(o)}function WN(o){return typeof o=="number"&&C0(o)}function Xo(o){if(!jn(o))return!1;var v=si(o);return v==Xe||v==ht||v==me||v==kr}function zw(o){return typeof o=="number"&&o==It(o)}function xu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function jn(o){var v=typeof o;return o!=null&&(v=="object"||v=="function")}function Jn(o){return o!=null&&typeof o=="object"}var jw=Zn?pt(Zn):jL;function BN(o,v){return o===v||ap(o,v,Ap(v))}function HN(o,v,E){return E=typeof E=="function"?E:t,ap(o,v,Ap(v),E)}function zN(o){return Uw(o)&&o!=+o}function jN(o){if(_O(o))throw new ft(p);return N0(o)}function UN(o){return o===null}function VN(o){return o==null}function Uw(o){return typeof o=="number"||Jn(o)&&si(o)==dt}function Rl(o){if(!Jn(o)||si(o)!=$n)return!1;var v=Gc(o);if(v===null)return!0;var E=pn.call(v,"constructor")&&v.constructor;return typeof E=="function"&&E instanceof E&&Uc.call(E)==HR}var Np=Li?pt(Li):UL;function qN(o){return zw(o)&&o>=-U&&o<=U}var Vw=Oi?pt(Oi):VL;function Cu(o){return typeof o=="string"||!St(o)&&Jn(o)&&si(o)==ir}function Pi(o){return typeof o=="symbol"||Jn(o)&&si(o)==Or}var Fa=Gi?pt(Gi):qL;function KN(o){return o===t}function GN(o){return Jn(o)&&qr(o)==qe}function YN(o){return Jn(o)&&si(o)==Nt}var XN=du(cp),ZN=du(function(o,v){return o<=v});function qw(o){if(!o)return[];if(Ai(o))return Cu(o)?At(o):ki(o);if(bl&&o[bl])return xe(o[bl]());var v=qr(o),E=v==st?Ee:v==Wn?Ye:Pa;return E(o)}function Zo(o){if(!o)return o===0?o:0;if(o=eo(o),o===B||o===-B){var v=o<0?-1:1;return v*K}return o===o?o:0}function It(o){var v=Zo(o),E=v%1;return v===v?E?v-E:v:0}function Kw(o){return o?Js(It(o),0,J):0}function eo(o){if(typeof o=="number")return o;if(Pi(o))return Q;if(jn(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=jn(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=Sn(o);var E=No.test(o);return E||ce.test(o)?An(o.slice(2),E?2:8):Dt.test(o)?Q:+o}function Gw(o){return Eo(o,Si(o))}function QN(o){return o?Js(It(o),-U,U):o===0?o:0}function un(o){return o==null?"":Fi(o)}var JN=Oa(function(o,v){if(El(v)||Ai(v)){Eo(v,Lr(v),o);return}for(var E in v)pn.call(v,E)&&Al(o,E,v[E])}),Yw=Oa(function(o,v){Eo(v,Si(v),o)}),ku=Oa(function(o,v,E,j){Eo(v,Si(v),o,j)}),eD=Oa(function(o,v,E,j){Eo(v,Lr(v),o,j)}),tD=Go(np);function nD(o,v){var E=La(o);return v==null?E:$0(E,v)}var rD=Pt(function(o,v){o=Lt(o);var E=-1,j=v.length,G=j>2?v[2]:t;for(G&&ai(v[0],v[1],G)&&(j=1);++E<j;)for(var te=v[E],ue=Si(te),pe=-1,ye=ue.length;++pe<ye;){var Ie=ue[pe],Re=o[Ie];(Re===t||go(Re,Qn[Ie])&&!pn.call(o,Ie))&&(o[Ie]=te[Ie])}return o}),iD=Pt(function(o){return o.push(t,dw),Mr(Xw,t,o)});function oD(o,v){return Z(o,mt(v,3),Mo)}function sD(o,v){return Z(o,mt(v,3),ip)}function aD(o,v){return o==null?o:rp(o,mt(v,3),Si)}function lD(o,v){return o==null?o:R0(o,mt(v,3),Si)}function cD(o,v){return o&&Mo(o,mt(v,3))}function uD(o,v){return o&&ip(o,mt(v,3))}function hD(o){return o==null?[]:iu(o,Lr(o))}function dD(o){return o==null?[]:iu(o,Si(o))}function Dp(o,v,E){var j=o==null?t:ea(o,v);return j===t?E:j}function pD(o,v){return o!=null&&gw(o,v,DL)}function Fp(o,v){return o!=null&&gw(o,v,FL)}var fD=aw(function(o,v,E){v!=null&&typeof v.toString!="function"&&(v=Vc.call(v)),o[v]=E},Wp(_i)),gD=aw(function(o,v,E){v!=null&&typeof v.toString!="function"&&(v=Vc.call(v)),pn.call(o,v)?o[v].push(E):o[v]=[E]},mt),mD=Pt(_l);function Lr(o){return Ai(o)?S0(o):lp(o)}function Si(o){return Ai(o)?S0(o,!0):KL(o)}function vD(o,v){var E={};return v=mt(v,3),Mo(o,function(j,G,te){qo(E,v(j,G,te),j)}),E}function yD(o,v){var E={};return v=mt(v,3),Mo(o,function(j,G,te){qo(E,G,v(j,G,te))}),E}var bD=Oa(function(o,v,E){ou(o,v,E)}),Xw=Oa(function(o,v,E,j){ou(o,v,E,j)}),wD=Go(function(o,v){var E={};if(o==null)return E;var j=!1;v=y(v,function(te){return te=bs(te,o),j||(j=te.length>1),te}),Eo(o,Cp(o),E),j&&(E=Zi(E,a|u|c,fO));for(var G=v.length;G--;)fp(E,v[G]);return E});function xD(o,v){return Zw(o,wu(mt(v)))}var CD=Go(function(o,v){return o==null?{}:YL(o,v)});function Zw(o,v){if(o==null)return{};var E=y(Cp(o),function(j){return[j]});return v=mt(v),z0(o,E,function(j,G){return v(j,G[0])})}function kD(o,v,E){v=bs(v,o);var j=-1,G=v.length;for(G||(G=1,o=t);++j<G;){var te=o==null?t:o[Io(v[j])];te===t&&(j=G,te=E),o=Xo(te)?te.call(o):te}return o}function AD(o,v,E){return o==null?o:Tl(o,v,E)}function SD(o,v,E,j){return j=typeof j=="function"?j:t,o==null?o:Tl(o,v,E,j)}var Qw=uw(Lr),Jw=uw(Si);function _D(o,v,E){var j=St(o),G=j||xs(o)||Fa(o);if(v=mt(v,4),E==null){var te=o&&o.constructor;G?E=j?new te:[]:jn(o)?E=Xo(te)?La(Gc(o)):{}:E={}}return(G?Nr:Mo)(o,function(ue,pe,ye){return v(E,ue,pe,ye)}),E}function $D(o,v){return o==null?!0:fp(o,v)}function TD(o,v,E){return o==null?o:K0(o,v,vp(E))}function MD(o,v,E,j){return j=typeof j=="function"?j:t,o==null?o:K0(o,v,vp(E),j)}function Pa(o){return o==null?[]:On(o,Lr(o))}function ED(o){return o==null?[]:On(o,Si(o))}function ID(o,v,E){return E===t&&(E=v,v=t),E!==t&&(E=eo(E),E=E===E?E:0),v!==t&&(v=eo(v),v=v===v?v:0),Js(eo(o),v,E)}function RD(o,v,E){return v=Zo(v),E===t?(E=v,v=0):E=Zo(E),o=eo(o),PL(o,v,E)}function LD(o,v,E){if(E&&typeof E!="boolean"&&ai(o,v,E)&&(v=E=t),E===t&&(typeof v=="boolean"?(E=v,v=t):typeof o=="boolean"&&(E=o,o=t)),o===t&&v===t?(o=0,v=1):(o=Zo(o),v===t?(v=o,o=0):v=Zo(v)),o>v){var j=o;o=v,v=j}if(E||o%1||v%1){var G=k0();return Vr(o+G*(v-o+Ve("1e-"+((G+"").length-1))),v)}return hp(o,v)}var OD=Na(function(o,v,E){return v=v.toLowerCase(),o+(E?ex(v):v)});function ex(o){return Pp(un(o).toLowerCase())}function tx(o){return o=un(o),o&&o.replace(Fe,Nn).replace(Ho,"")}function ND(o,v,E){o=un(o),v=Fi(v);var j=o.length;E=E===t?j:Js(It(E),0,j);var G=E;return E-=v.length,E>=0&&o.slice(E,G)==v}function DD(o){return o=un(o),o&&zs.test(o)?o.replace(co,V):o}function FD(o){return o=un(o),o&&bi.test(o)?o.replace(yr,"\\$&"):o}var PD=Na(function(o,v,E){return o+(E?"-":"")+v.toLowerCase()}),WD=Na(function(o,v,E){return o+(E?" ":"")+v.toLowerCase()}),BD=iw("toLowerCase");function HD(o,v,E){o=un(o),v=It(v);var j=v?Wt(o):0;if(!v||j>=v)return o;var G=(v-j)/2;return hu(Qc(G),E)+o+hu(Zc(G),E)}function zD(o,v,E){o=un(o),v=It(v);var j=v?Wt(o):0;return v&&j<v?o+hu(v-j,E):o}function jD(o,v,E){o=un(o),v=It(v);var j=v?Wt(o):0;return v&&j<v?hu(v-j,E)+o:o}function UD(o,v,E){return E||v==null?v=0:v&&(v=+v),ZR(un(o).replace(Mn,""),v||0)}function VD(o,v,E){return(E?ai(o,v,E):v===t)?v=1:v=It(v),dp(un(o),v)}function qD(){var o=arguments,v=un(o[0]);return o.length<3?v:v.replace(o[1],o[2])}var KD=Na(function(o,v,E){return o+(E?"_":"")+v.toLowerCase()});function GD(o,v,E){return E&&typeof E!="number"&&ai(o,v,E)&&(v=E=t),E=E===t?J:E>>>0,E?(o=un(o),o&&(typeof v=="string"||v!=null&&!Np(v))&&(v=Fi(v),!v&&oe(o))?ws(At(o),0,E):o.split(v,E)):[]}var YD=Na(function(o,v,E){return o+(E?" ":"")+Pp(v)});function XD(o,v,E){return o=un(o),E=E==null?0:Js(It(E),0,o.length),v=Fi(v),o.slice(E,E+v.length)==v}function ZD(o,v,E){var j=ee.templateSettings;E&&ai(o,v,E)&&(v=t),o=un(o),v=ku({},v,j,hw);var G=ku({},v.imports,j.imports,hw),te=Lr(G),ue=On(G,te),pe,ye,Ie=0,Re=v.interpolate||Tt,De="__p += '",Ze=oi((v.escape||Tt).source+"|"+Re.source+"|"+(Re===vi?xi:Tt).source+"|"+(v.evaluate||Tt).source+"|$","g"),lt="//# sourceURL="+(pn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++To+"]")+`
|
|
1472
|
-
`;o.replace(Ze,function(yt,zt,
|
|
1471
|
+
`)}function kO(o){return St(o)||ra(o)||!!(x0&&o&&o[x0])}function Yo(o,v){var E=typeof o;return v=v??U,!!v&&(E=="number"||E!="symbol"&&ze.test(o))&&o>-1&&o%1==0&&o<v}function ai(o,v,E){if(!jn(E))return!1;var j=typeof v;return(j=="number"?Ai(E)&&Yo(v,E.length):j=="string"&&v in E)?go(E[v],o):!1}function _p(o,v){if(St(o))return!1;var E=typeof o;return E=="number"||E=="symbol"||E=="boolean"||o==null||Pi(o)?!0:yi.test(o)||!os.test(o)||v!=null&&o in Lt(v)}function AO(o){var v=typeof o;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?o!=="__proto__":o===null}function $p(o){var v=pu(o),E=ee[v];if(typeof E!="function"||!(v in Gt.prototype))return!1;if(o===E)return!0;var j=kp(E);return!!j&&o===j[0]}function SO(o){return!!v0&&v0 in o}var _O=Ys?Xo:Up;function El(o){var v=o&&o.constructor,E=typeof v=="function"&&v.prototype||Qn;return o===E}function vw(o){return o===o&&!jn(o)}function yw(o,v){return function(E){return E==null?!1:E[o]===v&&(v!==t||o in Lt(E))}}function $O(o){var v=bu(o,function(j){return E.size===f&&E.clear(),j}),E=v.cache;return v}function TO(o,v){var E=o[1],j=v[1],G=E|j,te=G<(m|w|L),ue=j==L&&E==M||j==L&&E==D&&o[7].length<=v[8]||j==(L|D)&&v[7].length<=v[8]&&E==M;if(!(te||ue))return o;j&m&&(o[2]=v[2],G|=E&m?0:x);var pe=v[3];if(pe){var ye=o[3];o[3]=ye?ew(ye,pe,v[4]):pe,o[4]=ye?He(o[3],s):v[4]}return pe=v[5],pe&&(ye=o[5],o[5]=ye?tw(ye,pe,v[6]):pe,o[6]=ye?He(o[5],s):v[6]),pe=v[7],pe&&(o[7]=pe),j&L&&(o[8]=o[8]==null?v[8]:Vr(o[8],v[8])),o[9]==null&&(o[9]=v[9]),o[0]=v[0],o[1]=G,o}function MO(o){var v=[];if(o!=null)for(var E in Lt(o))v.push(E);return v}function EO(o){return Vc.call(o)}function bw(o,v,E){return v=Cr(v===t?o.length-1:v,0),function(){for(var j=arguments,G=-1,te=Cr(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]=E(ue),Mr(o,this,pe)}}function ww(o,v){return v.length<2?o:ea(o,Qi(v,0,-1))}function IO(o,v){for(var E=o.length,j=Vr(v.length,E),G=ki(o);j--;){var te=v[j];o[j]=Yo(te,E)?G[te]:t}return o}function Tp(o,v){if(!(v==="constructor"&&typeof o[v]=="function")&&v!="__proto__")return o[v]}var xw=kw(U0),Il=qR||function(o,v){return gn.setTimeout(o,v)},Mp=kw(eO);function Cw(o,v,E){var j=v+"";return Mp(o,CO(j,RO(bO(j),E)))}function kw(o){var v=0,E=0;return function(){var j=XR(),G=O-(j-E);if(E=j,G>0){if(++v>=P)return arguments[0]}else v=0;return o.apply(t,arguments)}}function gu(o,v){var E=-1,j=o.length,G=j-1;for(v=v===t?j:v;++E<v;){var te=hp(E,G),ue=o[te];o[te]=o[E],o[E]=ue}return o.length=v,o}var Aw=$O(function(o){var v=[];return o.charCodeAt(0)===46&&v.push(""),o.replace(Mn,function(E,j,G,te){v.push(G?te.replace(ni,"$1"):j||E)}),v});function Ro(o){if(typeof o=="string"||Pi(o))return o;var v=o+"";return v=="0"&&1/o==-B?"-0":v}function na(o){if(o!=null){try{return Uc.call(o)}catch{}try{return o+""}catch{}}return""}function RO(o,v){return Nr(le,function(E){var j="_."+E[0];v&E[1]&&!Ni(o,j)&&o.push(j)}),o.sort()}function Sw(o){if(o instanceof Gt)return o.clone();var v=new Xi(o.__wrapped__,o.__chain__);return v.__actions__=ki(o.__actions__),v.__index__=o.__index__,v.__values__=o.__values__,v}function LO(o,v,E){(E?ai(o,v,E):v===t)?v=1:v=Cr(It(v),0);var j=o==null?0:o.length;if(!j||v<1)return[];for(var G=0,te=0,ue=Ce(Zc(j/v));G<j;)ue[te++]=Qi(o,G,G+=v);return ue}function OO(o){for(var v=-1,E=o==null?0:o.length,j=0,G=[];++v<E;){var te=o[v];te&&(G[j++]=te)}return G}function NO(){var o=arguments.length;if(!o)return[];for(var v=Ce(o-1),E=arguments[0],j=o;j--;)v[j-1]=arguments[j];return T(St(E)?ki(E):[E],Fr(v,1))}var DO=Pt(function(o,v){return sr(o)?Sl(o,Fr(v,1,sr,!0)):[]}),FO=Pt(function(o,v){var E=Ji(v);return sr(E)&&(E=t),sr(o)?Sl(o,Fr(v,1,sr,!0),mt(E,2)):[]}),PO=Pt(function(o,v){var E=Ji(v);return sr(E)&&(E=t),sr(o)?Sl(o,Fr(v,1,sr,!0),t,E):[]});function WO(o,v,E){var j=o==null?0:o.length;return j?(v=E||v===t?1:It(v),Qi(o,v<0?0:v,j)):[]}function BO(o,v,E){var j=o==null?0:o.length;return j?(v=E||v===t?1:It(v),v=j-v,Qi(o,0,v<0?0:v)):[]}function HO(o,v){return o&&o.length?au(o,mt(v,3),!0,!0):[]}function zO(o,v){return o&&o.length?au(o,mt(v,3),!0):[]}function jO(o,v,E,j){var G=o==null?0:o.length;return G?(E&&typeof E!="number"&&ai(o,v,E)&&(E=0,j=G),NL(o,v,E,j)):[]}function _w(o,v,E){var j=o==null?0:o.length;if(!j)return-1;var G=E==null?0:It(E);return G<0&&(G=Cr(j+G,0)),re(o,mt(v,3),G)}function $w(o,v,E){var j=o==null?0:o.length;if(!j)return-1;var G=j-1;return E!==t&&(G=It(E),G=E<0?Cr(j+G,0):Vr(G,j-1)),re(o,mt(v,3),G,!0)}function Tw(o){var v=o==null?0:o.length;return v?Fr(o,1):[]}function UO(o){var v=o==null?0:o.length;return v?Fr(o,B):[]}function VO(o,v){var E=o==null?0:o.length;return E?(v=v===t?1:It(v),Fr(o,v)):[]}function qO(o){for(var v=-1,E=o==null?0:o.length,j={};++v<E;){var G=o[v];j[G[0]]=G[1]}return j}function Mw(o){return o&&o.length?o[0]:t}function KO(o,v,E){var j=o==null?0:o.length;if(!j)return-1;var G=E==null?0:It(E);return G<0&&(G=Cr(j+G,0)),ae(o,v,G)}function GO(o){var v=o==null?0:o.length;return v?Qi(o,0,-1):[]}var YO=Pt(function(o){var v=y(o,mp);return v.length&&v[0]===o[0]?sp(v):[]}),XO=Pt(function(o){var v=Ji(o),E=y(o,mp);return v===Ji(E)?v=t:E.pop(),E.length&&E[0]===o[0]?sp(E,mt(v,2)):[]}),ZO=Pt(function(o){var v=Ji(o),E=y(o,mp);return v=typeof v=="function"?v:t,v&&E.pop(),E.length&&E[0]===o[0]?sp(E,t,v):[]});function QO(o,v){return o==null?"":GR.call(o,v)}function Ji(o){var v=o==null?0:o.length;return v?o[v-1]:t}function JO(o,v,E){var j=o==null?0:o.length;if(!j)return-1;var G=j;return E!==t&&(G=It(E),G=G<0?Cr(j+G,0):Vr(G,j-1)),v===v?xt(o,v,G):re(o,ke,G,!0)}function e2(o,v){return o&&o.length?B0(o,It(v)):t}var t2=Pt(Ew);function Ew(o,v){return o&&o.length&&v&&v.length?up(o,v):o}function n2(o,v,E){return o&&o.length&&v&&v.length?up(o,v,mt(E,2)):o}function r2(o,v,E){return o&&o.length&&v&&v.length?up(o,v,t,E):o}var i2=Go(function(o,v){var E=o==null?0:o.length,j=np(o,v);return j0(o,y(v,function(G){return Yo(G,E)?+G:G}).sort(J0)),j});function o2(o,v){var E=[];if(!(o&&o.length))return E;var j=-1,G=[],te=o.length;for(v=mt(v,3);++j<te;){var ue=o[j];v(ue,j,o)&&(E.push(ue),G.push(j))}return j0(o,G),E}function Ep(o){return o==null?o:QR.call(o)}function s2(o,v,E){var j=o==null?0:o.length;return j?(E&&typeof E!="number"&&ai(o,v,E)?(v=0,E=j):(v=v==null?0:It(v),E=E===t?j:It(E)),Qi(o,v,E)):[]}function a2(o,v){return su(o,v)}function l2(o,v,E){return pp(o,v,mt(E,2))}function c2(o,v){var E=o==null?0:o.length;if(E){var j=su(o,v);if(j<E&&go(o[j],v))return j}return-1}function u2(o,v){return su(o,v,!0)}function h2(o,v,E){return pp(o,v,mt(E,2),!0)}function d2(o,v){var E=o==null?0:o.length;if(E){var j=su(o,v,!0)-1;if(go(o[j],v))return j}return-1}function p2(o){return o&&o.length?V0(o):[]}function f2(o,v){return o&&o.length?V0(o,mt(v,2)):[]}function g2(o){var v=o==null?0:o.length;return v?Qi(o,1,v):[]}function m2(o,v,E){return o&&o.length?(v=E||v===t?1:It(v),Qi(o,0,v<0?0:v)):[]}function v2(o,v,E){var j=o==null?0:o.length;return j?(v=E||v===t?1:It(v),v=j-v,Qi(o,v<0?0:v,j)):[]}function y2(o,v){return o&&o.length?au(o,mt(v,3),!1,!0):[]}function b2(o,v){return o&&o.length?au(o,mt(v,3)):[]}var w2=Pt(function(o){return ys(Fr(o,1,sr,!0))}),x2=Pt(function(o){var v=Ji(o);return sr(v)&&(v=t),ys(Fr(o,1,sr,!0),mt(v,2))}),C2=Pt(function(o){var v=Ji(o);return v=typeof v=="function"?v:t,ys(Fr(o,1,sr,!0),t,v)});function k2(o){return o&&o.length?ys(o):[]}function A2(o,v){return o&&o.length?ys(o,mt(v,2)):[]}function S2(o,v){return v=typeof v=="function"?v:t,o&&o.length?ys(o,t,v):[]}function Ip(o){if(!(o&&o.length))return[];var v=0;return o=Ur(o,function(E){if(sr(E))return v=Cr(E.length,v),!0}),et(v,function(E){return y(o,we(E))})}function Iw(o,v){if(!(o&&o.length))return[];var E=Ip(o);return v==null?E:y(E,function(j){return Mr(v,t,j)})}var _2=Pt(function(o,v){return sr(o)?Sl(o,v):[]}),$2=Pt(function(o){return gp(Ur(o,sr))}),T2=Pt(function(o){var v=Ji(o);return sr(v)&&(v=t),gp(Ur(o,sr),mt(v,2))}),M2=Pt(function(o){var v=Ji(o);return v=typeof v=="function"?v:t,gp(Ur(o,sr),t,v)}),E2=Pt(Ip);function I2(o,v){return Y0(o||[],v||[],Al)}function R2(o,v){return Y0(o||[],v||[],Tl)}var L2=Pt(function(o){var v=o.length,E=v>1?o[v-1]:t;return E=typeof E=="function"?(o.pop(),E):t,Iw(o,E)});function Rw(o){var v=ee(o);return v.__chain__=!0,v}function O2(o,v){return v(o),o}function mu(o,v){return v(o)}var N2=Go(function(o){var v=o.length,E=v?o[0]:0,j=this.__wrapped__,G=function(te){return np(te,o)};return v>1||this.__actions__.length||!(j instanceof Gt)||!Yo(E)?this.thru(G):(j=j.slice(E,+E+(v?1:0)),j.__actions__.push({func:mu,args:[G],thisArg:t}),new Xi(j,this.__chain__).thru(function(te){return v&&!te.length&&te.push(t),te}))});function D2(){return Rw(this)}function F2(){return new Xi(this.value(),this.__chain__)}function P2(){this.__values__===t&&(this.__values__=qw(this.value()));var o=this.__index__>=this.__values__.length,v=o?t:this.__values__[this.__index__++];return{done:o,value:v}}function W2(){return this}function B2(o){for(var v,E=this;E instanceof tu;){var j=Sw(E);j.__index__=0,j.__values__=t,v?G.__wrapped__=j:v=j;var G=j;E=E.__wrapped__}return G.__wrapped__=o,v}function H2(){var o=this.__wrapped__;if(o instanceof Gt){var v=o;return this.__actions__.length&&(v=new Gt(this)),v=v.reverse(),v.__actions__.push({func:mu,args:[Ep],thisArg:t}),new Xi(v,this.__chain__)}return this.thru(Ep)}function z2(){return G0(this.__wrapped__,this.__actions__)}var j2=lu(function(o,v,E){pn.call(o,E)?++o[E]:qo(o,E,1)});function U2(o,v,E){var j=St(o)?Dr:OL;return E&&ai(o,v,E)&&(v=t),j(o,mt(v,3))}function V2(o,v){var E=St(o)?Ur:I0;return E(o,mt(v,3))}var q2=ow(_w),K2=ow($w);function G2(o,v){return Fr(vu(o,v),1)}function Y2(o,v){return Fr(vu(o,v),B)}function X2(o,v,E){return E=E===t?1:It(E),Fr(vu(o,v),E)}function Lw(o,v){var E=St(o)?Nr:vs;return E(o,mt(v,3))}function Ow(o,v){var E=St(o)?Gs:E0;return E(o,mt(v,3))}var Z2=lu(function(o,v,E){pn.call(o,E)?o[E].push(v):qo(o,E,[v])});function Q2(o,v,E,j){o=Ai(o)?o:Pa(o),E=E&&!j?It(E):0;var G=o.length;return E<0&&(E=Cr(G+E,0)),Cu(o)?E<=G&&o.indexOf(v,E)>-1:!!G&&ae(o,v,E)>-1}var J2=Pt(function(o,v,E){var j=-1,G=typeof v=="function",te=Ai(o)?Ce(o.length):[];return vs(o,function(ue){te[++j]=G?Mr(v,ue,E):_l(ue,v,E)}),te}),eN=lu(function(o,v,E){qo(o,E,v)});function vu(o,v){var E=St(o)?y:F0;return E(o,mt(v,3))}function tN(o,v,E,j){return o==null?[]:(St(v)||(v=v==null?[]:[v]),E=j?t:E,St(E)||(E=E==null?[]:[E]),H0(o,v,E))}var nN=lu(function(o,v,E){o[E?0:1].push(v)},function(){return[[],[]]});function rN(o,v,E){var j=St(o)?S:Le,G=arguments.length<3;return j(o,mt(v,4),E,G,vs)}function iN(o,v,E){var j=St(o)?F:Le,G=arguments.length<3;return j(o,mt(v,4),E,G,E0)}function oN(o,v){var E=St(o)?Ur:I0;return E(o,wu(mt(v,3)))}function sN(o){var v=St(o)?_0:QL;return v(o)}function aN(o,v,E){(E?ai(o,v,E):v===t)?v=1:v=It(v);var j=St(o)?ML:JL;return j(o,v)}function lN(o){var v=St(o)?EL:tO;return v(o)}function cN(o){if(o==null)return 0;if(Ai(o))return Cu(o)?Bt(o):o.length;var v=qr(o);return v==st||v==Bn?o.size:lp(o).length}function uN(o,v,E){var j=St(o)?W:nO;return E&&ai(o,v,E)&&(v=t),j(o,mt(v,3))}var hN=Pt(function(o,v){if(o==null)return[];var E=v.length;return E>1&&ai(o,v[0],v[1])?v=[]:E>2&&ai(v[0],v[1],v[2])&&(v=[v[0]]),H0(o,Fr(v,1),[])}),yu=VR||function(){return gn.Date.now()};function dN(o,v){if(typeof v!="function")throw new mn(g);return o=It(o),function(){if(--o<1)return v.apply(this,arguments)}}function Nw(o,v,E){return v=E?t:v,v=o&&v==null?o.length:v,Ko(o,L,t,t,t,t,v)}function Dw(o,v){var E;if(typeof v!="function")throw new mn(g);return o=It(o),function(){return--o>0&&(E=v.apply(this,arguments)),o<=1&&(v=t),E}}var Rp=Pt(function(o,v,E){var j=m;if(E.length){var G=He(E,Da(Rp));j|=k}return Ko(o,j,v,E,G)}),Fw=Pt(function(o,v,E){var j=m|w;if(E.length){var G=He(E,Da(Fw));j|=k}return Ko(v,j,o,E,G)});function Pw(o,v,E){v=E?t:v;var j=Ko(o,M,t,t,t,t,t,v);return j.placeholder=Pw.placeholder,j}function Ww(o,v,E){v=E?t:v;var j=Ko(o,_,t,t,t,t,t,v);return j.placeholder=Ww.placeholder,j}function Bw(o,v,E){var j,G,te,ue,pe,ye,Ie=0,Re=!1,De=!1,Ze=!0;if(typeof o!="function")throw new mn(g);v=eo(v)||0,jn(E)&&(Re=!!E.leading,De="maxWait"in E,te=De?Cr(eo(E.maxWait)||0,v):te,Ze="trailing"in E?!!E.trailing:Ze);function lt(ar){var mo=j,Qo=G;return j=G=t,Ie=ar,ue=o.apply(Qo,mo),ue}function vt(ar){return Ie=ar,pe=Il(zt,v),Re?lt(ar):ue}function Ot(ar){var mo=ar-ye,Qo=ar-Ie,ox=v-mo;return De?Vr(ox,te-Qo):ox}function yt(ar){var mo=ar-ye,Qo=ar-Ie;return ye===t||mo>=v||mo<0||De&&Qo>=te}function zt(){var ar=yu();if(yt(ar))return Xt(ar);pe=Il(zt,Ot(ar))}function Xt(ar){return pe=t,Ze&&j?lt(ar):(j=G=t,ue)}function Wi(){pe!==t&&X0(pe),Ie=0,j=ye=G=pe=t}function li(){return pe===t?ue:Xt(yu())}function Bi(){var ar=yu(),mo=yt(ar);if(j=arguments,G=this,ye=ar,mo){if(pe===t)return vt(ye);if(De)return X0(pe),pe=Il(zt,v),lt(ye)}return pe===t&&(pe=Il(zt,v)),ue}return Bi.cancel=Wi,Bi.flush=li,Bi}var pN=Pt(function(o,v){return M0(o,1,v)}),fN=Pt(function(o,v,E){return M0(o,eo(v)||0,E)});function gN(o){return Ko(o,R)}function bu(o,v){if(typeof o!="function"||v!=null&&typeof v!="function")throw new mn(g);var E=function(){var j=arguments,G=v?v.apply(this,j):j[0],te=E.cache;if(te.has(G))return te.get(G);var ue=o.apply(this,j);return E.cache=te.set(G,ue)||te,ue};return E.cache=new(bu.Cache||Vo),E}bu.Cache=Vo;function wu(o){if(typeof o!="function")throw new mn(g);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 mN(o){return Dw(2,o)}var vN=rO(function(o,v){v=v.length==1&&St(v[0])?y(v[0],pt(mt())):y(Fr(v,1),pt(mt()));var E=v.length;return Pt(function(j){for(var G=-1,te=Vr(j.length,E);++G<te;)j[G]=v[G].call(this,j[G]);return Mr(o,this,j)})}),Lp=Pt(function(o,v){var E=He(v,Da(Lp));return Ko(o,k,t,v,E)}),Hw=Pt(function(o,v){var E=He(v,Da(Hw));return Ko(o,C,t,v,E)}),yN=Go(function(o,v){return Ko(o,D,t,t,t,v)});function bN(o,v){if(typeof o!="function")throw new mn(g);return v=v===t?v:It(v),Pt(o,v)}function wN(o,v){if(typeof o!="function")throw new mn(g);return v=v==null?0:Cr(It(v),0),Pt(function(E){var j=E[v],G=ws(E,0,v);return j&&T(G,j),Mr(o,this,G)})}function xN(o,v,E){var j=!0,G=!0;if(typeof o!="function")throw new mn(g);return jn(E)&&(j="leading"in E?!!E.leading:j,G="trailing"in E?!!E.trailing:G),Bw(o,v,{leading:j,maxWait:v,trailing:G})}function CN(o){return Nw(o,1)}function kN(o,v){return Lp(vp(v),o)}function AN(){if(!arguments.length)return[];var o=arguments[0];return St(o)?o:[o]}function SN(o){return Zi(o,c)}function _N(o,v){return v=typeof v=="function"?v:t,Zi(o,c,v)}function $N(o){return Zi(o,a|c)}function TN(o,v){return v=typeof v=="function"?v:t,Zi(o,a|c,v)}function MN(o,v){return v==null||T0(o,v,Lr(v))}function go(o,v){return o===v||o!==o&&v!==v}var EN=du(op),IN=du(function(o,v){return o>=v}),ra=O0(function(){return arguments}())?O0:function(o){return Jn(o)&&pn.call(o,"callee")&&!w0.call(o,"callee")},St=Ce.isArray,RN=Ci?pt(Ci):BL;function Ai(o){return o!=null&&xu(o.length)&&!Xo(o)}function sr(o){return Jn(o)&&Ai(o)}function LN(o){return o===!0||o===!1||Jn(o)&&si(o)==_e}var xs=KR||Up,ON=gs?pt(gs):HL;function NN(o){return Jn(o)&&o.nodeType===1&&!Rl(o)}function DN(o){if(o==null)return!0;if(Ai(o)&&(St(o)||typeof o=="string"||typeof o.splice=="function"||xs(o)||Fa(o)||ra(o)))return!o.length;var v=qr(o);if(v==st||v==Bn)return!o.size;if(El(o))return!lp(o).length;for(var E in o)if(pn.call(o,E))return!1;return!0}function FN(o,v){return $l(o,v)}function PN(o,v,E){E=typeof E=="function"?E:t;var j=E?E(o,v):t;return j===t?$l(o,v,t,E):!!j}function Op(o){if(!Jn(o))return!1;var v=si(o);return v==Je||v==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Rl(o)}function WN(o){return typeof o=="number"&&C0(o)}function Xo(o){if(!jn(o))return!1;var v=si(o);return v==Xe||v==ht||v==me||v==kr}function zw(o){return typeof o=="number"&&o==It(o)}function xu(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=U}function jn(o){var v=typeof o;return o!=null&&(v=="object"||v=="function")}function Jn(o){return o!=null&&typeof o=="object"}var jw=Zn?pt(Zn):jL;function BN(o,v){return o===v||ap(o,v,Ap(v))}function HN(o,v,E){return E=typeof E=="function"?E:t,ap(o,v,Ap(v),E)}function zN(o){return Uw(o)&&o!=+o}function jN(o){if(_O(o))throw new ft(p);return N0(o)}function UN(o){return o===null}function VN(o){return o==null}function Uw(o){return typeof o=="number"||Jn(o)&&si(o)==dt}function Rl(o){if(!Jn(o)||si(o)!=$n)return!1;var v=Gc(o);if(v===null)return!0;var E=pn.call(v,"constructor")&&v.constructor;return typeof E=="function"&&E instanceof E&&Uc.call(E)==HR}var Np=Li?pt(Li):UL;function qN(o){return zw(o)&&o>=-U&&o<=U}var Vw=Oi?pt(Oi):VL;function Cu(o){return typeof o=="string"||!St(o)&&Jn(o)&&si(o)==ir}function Pi(o){return typeof o=="symbol"||Jn(o)&&si(o)==Or}var Fa=Gi?pt(Gi):qL;function KN(o){return o===t}function GN(o){return Jn(o)&&qr(o)==qe}function YN(o){return Jn(o)&&si(o)==Nt}var XN=du(cp),ZN=du(function(o,v){return o<=v});function qw(o){if(!o)return[];if(Ai(o))return Cu(o)?At(o):ki(o);if(bl&&o[bl])return xe(o[bl]());var v=qr(o),E=v==st?Ee:v==Bn?Ye:Pa;return E(o)}function Zo(o){if(!o)return o===0?o:0;if(o=eo(o),o===B||o===-B){var v=o<0?-1:1;return v*K}return o===o?o:0}function It(o){var v=Zo(o),E=v%1;return v===v?E?v-E:v:0}function Kw(o){return o?Js(It(o),0,J):0}function eo(o){if(typeof o=="number")return o;if(Pi(o))return Q;if(jn(o)){var v=typeof o.valueOf=="function"?o.valueOf():o;o=jn(v)?v+"":v}if(typeof o!="string")return o===0?o:+o;o=Sn(o);var E=No.test(o);return E||ce.test(o)?An(o.slice(2),E?2:8):Dt.test(o)?Q:+o}function Gw(o){return Io(o,Si(o))}function QN(o){return o?Js(It(o),-U,U):o===0?o:0}function un(o){return o==null?"":Fi(o)}var JN=Oa(function(o,v){if(El(v)||Ai(v)){Io(v,Lr(v),o);return}for(var E in v)pn.call(v,E)&&Al(o,E,v[E])}),Yw=Oa(function(o,v){Io(v,Si(v),o)}),ku=Oa(function(o,v,E,j){Io(v,Si(v),o,j)}),eD=Oa(function(o,v,E,j){Io(v,Lr(v),o,j)}),tD=Go(np);function nD(o,v){var E=La(o);return v==null?E:$0(E,v)}var rD=Pt(function(o,v){o=Lt(o);var E=-1,j=v.length,G=j>2?v[2]:t;for(G&&ai(v[0],v[1],G)&&(j=1);++E<j;)for(var te=v[E],ue=Si(te),pe=-1,ye=ue.length;++pe<ye;){var Ie=ue[pe],Re=o[Ie];(Re===t||go(Re,Qn[Ie])&&!pn.call(o,Ie))&&(o[Ie]=te[Ie])}return o}),iD=Pt(function(o){return o.push(t,dw),Mr(Xw,t,o)});function oD(o,v){return Z(o,mt(v,3),Eo)}function sD(o,v){return Z(o,mt(v,3),ip)}function aD(o,v){return o==null?o:rp(o,mt(v,3),Si)}function lD(o,v){return o==null?o:R0(o,mt(v,3),Si)}function cD(o,v){return o&&Eo(o,mt(v,3))}function uD(o,v){return o&&ip(o,mt(v,3))}function hD(o){return o==null?[]:iu(o,Lr(o))}function dD(o){return o==null?[]:iu(o,Si(o))}function Dp(o,v,E){var j=o==null?t:ea(o,v);return j===t?E:j}function pD(o,v){return o!=null&&gw(o,v,DL)}function Fp(o,v){return o!=null&&gw(o,v,FL)}var fD=aw(function(o,v,E){v!=null&&typeof v.toString!="function"&&(v=Vc.call(v)),o[v]=E},Wp(_i)),gD=aw(function(o,v,E){v!=null&&typeof v.toString!="function"&&(v=Vc.call(v)),pn.call(o,v)?o[v].push(E):o[v]=[E]},mt),mD=Pt(_l);function Lr(o){return Ai(o)?S0(o):lp(o)}function Si(o){return Ai(o)?S0(o,!0):KL(o)}function vD(o,v){var E={};return v=mt(v,3),Eo(o,function(j,G,te){qo(E,v(j,G,te),j)}),E}function yD(o,v){var E={};return v=mt(v,3),Eo(o,function(j,G,te){qo(E,G,v(j,G,te))}),E}var bD=Oa(function(o,v,E){ou(o,v,E)}),Xw=Oa(function(o,v,E,j){ou(o,v,E,j)}),wD=Go(function(o,v){var E={};if(o==null)return E;var j=!1;v=y(v,function(te){return te=bs(te,o),j||(j=te.length>1),te}),Io(o,Cp(o),E),j&&(E=Zi(E,a|u|c,fO));for(var G=v.length;G--;)fp(E,v[G]);return E});function xD(o,v){return Zw(o,wu(mt(v)))}var CD=Go(function(o,v){return o==null?{}:YL(o,v)});function Zw(o,v){if(o==null)return{};var E=y(Cp(o),function(j){return[j]});return v=mt(v),z0(o,E,function(j,G){return v(j,G[0])})}function kD(o,v,E){v=bs(v,o);var j=-1,G=v.length;for(G||(G=1,o=t);++j<G;){var te=o==null?t:o[Ro(v[j])];te===t&&(j=G,te=E),o=Xo(te)?te.call(o):te}return o}function AD(o,v,E){return o==null?o:Tl(o,v,E)}function SD(o,v,E,j){return j=typeof j=="function"?j:t,o==null?o:Tl(o,v,E,j)}var Qw=uw(Lr),Jw=uw(Si);function _D(o,v,E){var j=St(o),G=j||xs(o)||Fa(o);if(v=mt(v,4),E==null){var te=o&&o.constructor;G?E=j?new te:[]:jn(o)?E=Xo(te)?La(Gc(o)):{}:E={}}return(G?Nr:Eo)(o,function(ue,pe,ye){return v(E,ue,pe,ye)}),E}function $D(o,v){return o==null?!0:fp(o,v)}function TD(o,v,E){return o==null?o:K0(o,v,vp(E))}function MD(o,v,E,j){return j=typeof j=="function"?j:t,o==null?o:K0(o,v,vp(E),j)}function Pa(o){return o==null?[]:Nn(o,Lr(o))}function ED(o){return o==null?[]:Nn(o,Si(o))}function ID(o,v,E){return E===t&&(E=v,v=t),E!==t&&(E=eo(E),E=E===E?E:0),v!==t&&(v=eo(v),v=v===v?v:0),Js(eo(o),v,E)}function RD(o,v,E){return v=Zo(v),E===t?(E=v,v=0):E=Zo(E),o=eo(o),PL(o,v,E)}function LD(o,v,E){if(E&&typeof E!="boolean"&&ai(o,v,E)&&(v=E=t),E===t&&(typeof v=="boolean"?(E=v,v=t):typeof o=="boolean"&&(E=o,o=t)),o===t&&v===t?(o=0,v=1):(o=Zo(o),v===t?(v=o,o=0):v=Zo(v)),o>v){var j=o;o=v,v=j}if(E||o%1||v%1){var G=k0();return Vr(o+G*(v-o+Ve("1e-"+((G+"").length-1))),v)}return hp(o,v)}var OD=Na(function(o,v,E){return v=v.toLowerCase(),o+(E?ex(v):v)});function ex(o){return Pp(un(o).toLowerCase())}function tx(o){return o=un(o),o&&o.replace(Fe,Dn).replace(Ho,"")}function ND(o,v,E){o=un(o),v=Fi(v);var j=o.length;E=E===t?j:Js(It(E),0,j);var G=E;return E-=v.length,E>=0&&o.slice(E,G)==v}function DD(o){return o=un(o),o&&zs.test(o)?o.replace(co,V):o}function FD(o){return o=un(o),o&&bi.test(o)?o.replace(yr,"\\$&"):o}var PD=Na(function(o,v,E){return o+(E?"-":"")+v.toLowerCase()}),WD=Na(function(o,v,E){return o+(E?" ":"")+v.toLowerCase()}),BD=iw("toLowerCase");function HD(o,v,E){o=un(o),v=It(v);var j=v?Bt(o):0;if(!v||j>=v)return o;var G=(v-j)/2;return hu(Qc(G),E)+o+hu(Zc(G),E)}function zD(o,v,E){o=un(o),v=It(v);var j=v?Bt(o):0;return v&&j<v?o+hu(v-j,E):o}function jD(o,v,E){o=un(o),v=It(v);var j=v?Bt(o):0;return v&&j<v?hu(v-j,E)+o:o}function UD(o,v,E){return E||v==null?v=0:v&&(v=+v),ZR(un(o).replace(En,""),v||0)}function VD(o,v,E){return(E?ai(o,v,E):v===t)?v=1:v=It(v),dp(un(o),v)}function qD(){var o=arguments,v=un(o[0]);return o.length<3?v:v.replace(o[1],o[2])}var KD=Na(function(o,v,E){return o+(E?"_":"")+v.toLowerCase()});function GD(o,v,E){return E&&typeof E!="number"&&ai(o,v,E)&&(v=E=t),E=E===t?J:E>>>0,E?(o=un(o),o&&(typeof v=="string"||v!=null&&!Np(v))&&(v=Fi(v),!v&&oe(o))?ws(At(o),0,E):o.split(v,E)):[]}var YD=Na(function(o,v,E){return o+(E?" ":"")+Pp(v)});function XD(o,v,E){return o=un(o),E=E==null?0:Js(It(E),0,o.length),v=Fi(v),o.slice(E,E+v.length)==v}function ZD(o,v,E){var j=ee.templateSettings;E&&ai(o,v,E)&&(v=t),o=un(o),v=ku({},v,j,hw);var G=ku({},v.imports,j.imports,hw),te=Lr(G),ue=Nn(G,te),pe,ye,Ie=0,Re=v.interpolate||Tt,De="__p += '",Ze=oi((v.escape||Tt).source+"|"+Re.source+"|"+(Re===vi?xi:Tt).source+"|"+(v.evaluate||Tt).source+"|$","g"),lt="//# sourceURL="+(pn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mo+"]")+`
|
|
1472
|
+
`;o.replace(Ze,function(yt,zt,Xt,Wi,li,Bi){return Xt||(Xt=Wi),De+=o.slice(Ie,Bi).replace(Qt,X),zt&&(pe=!0,De+=`' +
|
|
1473
1473
|
__e(`+zt+`) +
|
|
1474
1474
|
'`),li&&(ye=!0,De+=`';
|
|
1475
1475
|
`+li+`;
|
|
1476
|
-
__p += '`),
|
|
1477
|
-
((__t = (`+
|
|
1476
|
+
__p += '`),Xt&&(De+=`' +
|
|
1477
|
+
((__t = (`+Xt+`)) == null ? '' : __t) +
|
|
1478
1478
|
'`),Ie=Bi+yt.length,yt}),De+=`';
|
|
1479
1479
|
`;var vt=pn.call(v,"variable")&&v.variable;if(!vt)De=`with (obj) {
|
|
1480
1480
|
`+De+`
|
|
@@ -1485,25 +1485,25 @@ __p += '`),Yt&&(De+=`' +
|
|
|
1485
1485
|
function print() { __p += __j.call(arguments, '') }
|
|
1486
1486
|
`:`;
|
|
1487
1487
|
`)+De+`return __p
|
|
1488
|
-
}`;var Ot=rx(function(){return Et(te,lt+"return "+De).apply(t,ue)});if(Ot.source=De,Op(Ot))throw Ot;return Ot}function QD(o){return un(o).toLowerCase()}function JD(o){return un(o).toUpperCase()}function eF(o,v,E){if(o=un(o),o&&(E||v===t))return Sn(o);if(!o||!(v=Fi(v)))return o;var j=At(o),G=At(v),te=Mt(j,G),ue=hr(j,G)+1;return ws(j,te,ue).join("")}function tF(o,v,E){if(o=un(o),o&&(E||v===t))return o.slice(0,Ft(o)+1);if(!o||!(v=Fi(v)))return o;var j=At(o),G=hr(j,At(v))+1;return ws(j,0,G).join("")}function nF(o,v,E){if(o=un(o),o&&(E||v===t))return o.replace(Mn,"");if(!o||!(v=Fi(v)))return o;var j=At(o),G=Mt(j,At(v));return ws(j,G).join("")}function rF(o,v){var E=I,j=H;if(jn(v)){var G="separator"in v?v.separator:G;E="length"in v?It(v.length):E,j="omission"in v?Fi(v.omission):j}o=un(o);var te=o.length;if(oe(o)){var ue=At(o);te=ue.length}if(E>=te)return o;var pe=E-Wt(j);if(pe<1)return j;var ye=ue?ws(ue,0,pe).join(""):o.slice(0,pe);if(G===t)return ye+j;if(ue&&(pe+=ye.length-pe),Np(G)){if(o.slice(pe).search(G)){var Ie,Re=ye;for(G.global||(G=oi(G.source,un(zr.exec(G))+"g")),G.lastIndex=0;Ie=G.exec(Re);)var De=Ie.index;ye=ye.slice(0,De===t?pe:De)}}else if(o.indexOf(Fi(G),pe)!=pe){var Ze=ye.lastIndexOf(G);Ze>-1&&(ye=ye.slice(0,Ze))}return ye+j}function iF(o){return o=un(o),o&&mi.test(o)?o.replace(Kn,gt):o}var oF=Na(function(o,v,E){return o+(E?" ":"")+v.toUpperCase()}),Pp=iw("toUpperCase");function nx(o,v,E){return o=un(o),v=E?t:v,v===t?ge(o)?Dn(o):Y(o):o.match(v)||[]}var rx=Pt(function(o,v){try{return Mr(o,t,v)}catch(E){return Op(E)?E:new ft(E)}}),sF=Go(function(o,v){return Nr(v,function(E){E=Io(E),qo(o,E,Rp(o[E],o))}),o});function aF(o){var v=o==null?0:o.length,E=mt();return o=v?y(o,function(j){if(typeof j[1]!="function")throw new mn(g);return[E(j[0]),j[1]]}):[],Pt(function(j){for(var G=-1;++G<v;){var te=o[G];if(Mr(te[0],this,j))return Mr(te[1],this,j)}})}function lF(o){return LL(Zi(o,a))}function Wp(o){return function(){return o}}function cF(o,v){return o==null||o!==o?v:o}var uF=sw(),hF=sw(!0);function _i(o){return o}function Bp(o){return D0(typeof o=="function"?o:Zi(o,a))}function dF(o){return P0(Zi(o,a))}function pF(o,v){return W0(o,Zi(v,a))}var fF=Pt(function(o,v){return function(E){return _l(E,o,v)}}),gF=Pt(function(o,v){return function(E){return _l(o,E,v)}});function Hp(o,v,E){var j=Lr(v),G=iu(v,j);E==null&&!(jn(v)&&(G.length||!j.length))&&(E=v,v=o,o=this,G=iu(v,Lr(v)));var te=!(jn(E)&&"chain"in E)||!!E.chain,ue=Xo(o);return Nr(G,function(pe){var ye=v[pe];o[pe]=ye,ue&&(o.prototype[pe]=function(){var Ie=this.__chain__;if(te||Ie){var Re=o(this.__wrapped__),De=Re.__actions__=ki(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Re.__chain__=Ie,Re}return ye.apply(o,T([this.value()],arguments))})}),o}function mF(){return gn._===this&&(gn._=zR),this}function zp(){}function vF(o){return o=It(o),Pt(function(v){return B0(v,o)})}var yF=bp(y),bF=bp(Dr),wF=bp(W);function ix(o){return _p(o)?we(Io(o)):XL(o)}function xF(o){return function(v){return o==null?t:ea(o,v)}}var CF=lw(),kF=lw(!0);function jp(){return[]}function Up(){return!1}function AF(){return{}}function SF(){return""}function _F(){return!0}function $F(o,v){if(o=It(o),o<1||o>U)return[];var E=J,j=Vr(o,J);v=mt(v),o-=J;for(var G=et(j,v);++E<o;)v(E);return G}function TF(o){return St(o)?y(o,Io):Pi(o)?[o]:ki(Aw(un(o)))}function MF(o){var v=++BR;return un(o)+v}var EF=uu(function(o,v){return o+v},0),IF=wp("ceil"),RF=uu(function(o,v){return o/v},1),LF=wp("floor");function OF(o){return o&&o.length?ru(o,_i,op):t}function NF(o,v){return o&&o.length?ru(o,mt(v,2),op):t}function DF(o){return ve(o,_i)}function FF(o,v){return ve(o,mt(v,2))}function PF(o){return o&&o.length?ru(o,_i,cp):t}function WF(o,v){return o&&o.length?ru(o,mt(v,2),cp):t}var BF=uu(function(o,v){return o*v},1),HF=wp("round"),zF=uu(function(o,v){return o-v},0);function jF(o){return o&&o.length?ut(o,_i):0}function UF(o,v){return o&&o.length?ut(o,mt(v,2)):0}return ee.after=dN,ee.ary=Nw,ee.assign=JN,ee.assignIn=Yw,ee.assignInWith=ku,ee.assignWith=eD,ee.at=tD,ee.before=Dw,ee.bind=Rp,ee.bindAll=sF,ee.bindKey=Fw,ee.castArray=AN,ee.chain=Rw,ee.chunk=LO,ee.compact=OO,ee.concat=NO,ee.cond=aF,ee.conforms=lF,ee.constant=Wp,ee.countBy=j2,ee.create=nD,ee.curry=Pw,ee.curryRight=Ww,ee.debounce=Bw,ee.defaults=rD,ee.defaultsDeep=iD,ee.defer=pN,ee.delay=fN,ee.difference=DO,ee.differenceBy=FO,ee.differenceWith=PO,ee.drop=WO,ee.dropRight=BO,ee.dropRightWhile=HO,ee.dropWhile=zO,ee.fill=jO,ee.filter=V2,ee.flatMap=G2,ee.flatMapDeep=Y2,ee.flatMapDepth=X2,ee.flatten=Tw,ee.flattenDeep=UO,ee.flattenDepth=VO,ee.flip=gN,ee.flow=uF,ee.flowRight=hF,ee.fromPairs=qO,ee.functions=hD,ee.functionsIn=dD,ee.groupBy=Z2,ee.initial=GO,ee.intersection=YO,ee.intersectionBy=XO,ee.intersectionWith=ZO,ee.invert=fD,ee.invertBy=gD,ee.invokeMap=J2,ee.iteratee=Bp,ee.keyBy=eN,ee.keys=Lr,ee.keysIn=Si,ee.map=vu,ee.mapKeys=vD,ee.mapValues=yD,ee.matches=dF,ee.matchesProperty=pF,ee.memoize=bu,ee.merge=bD,ee.mergeWith=Xw,ee.method=fF,ee.methodOf=gF,ee.mixin=Hp,ee.negate=wu,ee.nthArg=vF,ee.omit=wD,ee.omitBy=xD,ee.once=mN,ee.orderBy=tN,ee.over=yF,ee.overArgs=vN,ee.overEvery=bF,ee.overSome=wF,ee.partial=Lp,ee.partialRight=Hw,ee.partition=nN,ee.pick=CD,ee.pickBy=Zw,ee.property=ix,ee.propertyOf=xF,ee.pull=t2,ee.pullAll=Ew,ee.pullAllBy=n2,ee.pullAllWith=r2,ee.pullAt=i2,ee.range=CF,ee.rangeRight=kF,ee.rearg=yN,ee.reject=oN,ee.remove=o2,ee.rest=bN,ee.reverse=Ep,ee.sampleSize=aN,ee.set=AD,ee.setWith=SD,ee.shuffle=lN,ee.slice=s2,ee.sortBy=hN,ee.sortedUniq=p2,ee.sortedUniqBy=f2,ee.split=GD,ee.spread=wN,ee.tail=g2,ee.take=m2,ee.takeRight=v2,ee.takeRightWhile=y2,ee.takeWhile=b2,ee.tap=O2,ee.throttle=xN,ee.thru=mu,ee.toArray=qw,ee.toPairs=Qw,ee.toPairsIn=Jw,ee.toPath=TF,ee.toPlainObject=Gw,ee.transform=_D,ee.unary=CN,ee.union=w2,ee.unionBy=x2,ee.unionWith=C2,ee.uniq=k2,ee.uniqBy=A2,ee.uniqWith=S2,ee.unset=$D,ee.unzip=Ip,ee.unzipWith=Iw,ee.update=TD,ee.updateWith=MD,ee.values=Pa,ee.valuesIn=ED,ee.without=_2,ee.words=nx,ee.wrap=kN,ee.xor=$2,ee.xorBy=T2,ee.xorWith=M2,ee.zip=E2,ee.zipObject=I2,ee.zipObjectDeep=R2,ee.zipWith=L2,ee.entries=Qw,ee.entriesIn=Jw,ee.extend=Yw,ee.extendWith=ku,Hp(ee,ee),ee.add=EF,ee.attempt=rx,ee.camelCase=OD,ee.capitalize=ex,ee.ceil=IF,ee.clamp=ID,ee.clone=SN,ee.cloneDeep=$N,ee.cloneDeepWith=TN,ee.cloneWith=_N,ee.conformsTo=MN,ee.deburr=tx,ee.defaultTo=cF,ee.divide=RF,ee.endsWith=ND,ee.eq=go,ee.escape=DD,ee.escapeRegExp=FD,ee.every=U2,ee.find=q2,ee.findIndex=_w,ee.findKey=oD,ee.findLast=K2,ee.findLastIndex=$w,ee.findLastKey=sD,ee.floor=LF,ee.forEach=Lw,ee.forEachRight=Ow,ee.forIn=aD,ee.forInRight=lD,ee.forOwn=cD,ee.forOwnRight=uD,ee.get=Dp,ee.gt=EN,ee.gte=IN,ee.has=pD,ee.hasIn=Fp,ee.head=Mw,ee.identity=_i,ee.includes=Q2,ee.indexOf=KO,ee.inRange=RD,ee.invoke=mD,ee.isArguments=ra,ee.isArray=St,ee.isArrayBuffer=RN,ee.isArrayLike=Ai,ee.isArrayLikeObject=sr,ee.isBoolean=LN,ee.isBuffer=xs,ee.isDate=ON,ee.isElement=NN,ee.isEmpty=DN,ee.isEqual=FN,ee.isEqualWith=PN,ee.isError=Op,ee.isFinite=WN,ee.isFunction=Xo,ee.isInteger=zw,ee.isLength=xu,ee.isMap=jw,ee.isMatch=BN,ee.isMatchWith=HN,ee.isNaN=zN,ee.isNative=jN,ee.isNil=VN,ee.isNull=UN,ee.isNumber=Uw,ee.isObject=jn,ee.isObjectLike=Jn,ee.isPlainObject=Rl,ee.isRegExp=Np,ee.isSafeInteger=qN,ee.isSet=Vw,ee.isString=Cu,ee.isSymbol=Pi,ee.isTypedArray=Fa,ee.isUndefined=KN,ee.isWeakMap=GN,ee.isWeakSet=YN,ee.join=QO,ee.kebabCase=PD,ee.last=Ji,ee.lastIndexOf=JO,ee.lowerCase=WD,ee.lowerFirst=BD,ee.lt=XN,ee.lte=ZN,ee.max=OF,ee.maxBy=NF,ee.mean=DF,ee.meanBy=FF,ee.min=PF,ee.minBy=WF,ee.stubArray=jp,ee.stubFalse=Up,ee.stubObject=AF,ee.stubString=SF,ee.stubTrue=_F,ee.multiply=BF,ee.nth=e2,ee.noConflict=mF,ee.noop=zp,ee.now=yu,ee.pad=HD,ee.padEnd=zD,ee.padStart=jD,ee.parseInt=UD,ee.random=LD,ee.reduce=rN,ee.reduceRight=iN,ee.repeat=VD,ee.replace=qD,ee.result=kD,ee.round=HF,ee.runInContext=fe,ee.sample=sN,ee.size=cN,ee.snakeCase=KD,ee.some=uN,ee.sortedIndex=a2,ee.sortedIndexBy=l2,ee.sortedIndexOf=c2,ee.sortedLastIndex=u2,ee.sortedLastIndexBy=h2,ee.sortedLastIndexOf=d2,ee.startCase=YD,ee.startsWith=XD,ee.subtract=zF,ee.sum=jF,ee.sumBy=UF,ee.template=ZD,ee.times=$F,ee.toFinite=Zo,ee.toInteger=It,ee.toLength=Kw,ee.toLower=QD,ee.toNumber=eo,ee.toSafeInteger=QN,ee.toString=un,ee.toUpper=JD,ee.trim=eF,ee.trimEnd=tF,ee.trimStart=nF,ee.truncate=rF,ee.unescape=iF,ee.uniqueId=MF,ee.upperCase=oF,ee.upperFirst=Pp,ee.each=Lw,ee.eachRight=Ow,ee.first=Mw,Hp(ee,function(){var o={};return Mo(ee,function(v,E){pn.call(ee.prototype,E)||(o[E]=v)}),o}(),{chain:!1}),ee.VERSION=r,Nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),Nr(["drop","take"],function(o,v){Kt.prototype[o]=function(E){E=E===t?1:Cr(It(E),0);var j=this.__filtered__&&!v?new Kt(this):this.clone();return j.__filtered__?j.__takeCount__=Vr(E,j.__takeCount__):j.__views__.push({size:Vr(E,J),type:o+(j.__dir__<0?"Right":"")}),j},Kt.prototype[o+"Right"]=function(E){return this.reverse()[o](E).reverse()}}),Nr(["filter","map","takeWhile"],function(o,v){var E=v+1,j=E==$||E==N;Kt.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:mt(G,3),type:E}),te.__filtered__=te.__filtered__||j,te}}),Nr(["head","last"],function(o,v){var E="take"+(v?"Right":"");Kt.prototype[o]=function(){return this[E](1).value()[0]}}),Nr(["initial","tail"],function(o,v){var E="drop"+(v?"":"Right");Kt.prototype[o]=function(){return this.__filtered__?new Kt(this):this[E](1)}}),Kt.prototype.compact=function(){return this.filter(_i)},Kt.prototype.find=function(o){return this.filter(o).head()},Kt.prototype.findLast=function(o){return this.reverse().find(o)},Kt.prototype.invokeMap=Pt(function(o,v){return typeof o=="function"?new Kt(this):this.map(function(E){return _l(E,o,v)})}),Kt.prototype.reject=function(o){return this.filter(wu(mt(o)))},Kt.prototype.slice=function(o,v){o=It(o);var E=this;return E.__filtered__&&(o>0||v<0)?new Kt(E):(o<0?E=E.takeRight(-o):o&&(E=E.drop(o)),v!==t&&(v=It(v),E=v<0?E.dropRight(-v):E.take(v-o)),E)},Kt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Kt.prototype.toArray=function(){return this.take(J)},Mo(Kt.prototype,function(o,v){var E=/^(?: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 Kt,Ie=pe[0],Re=ye||St(ue),De=function(zt){var Yt=G.apply(ee,T([zt],pe));return j&&Ze?Yt[0]:Yt};Re&&E&&typeof Ie=="function"&&Ie.length!=1&&(ye=Re=!1);var Ze=this.__chain__,lt=!!this.__actions__.length,vt=te&&!Ze,Ot=ye&&!lt;if(!te&&Re){ue=Ot?ue:new Kt(this);var yt=o.apply(ue,pe);return yt.__actions__.push({func:mu,args:[De],thisArg:t}),new Xi(yt,Ze)}return vt&&Ot?o.apply(this,pe):(yt=this.thru(De),vt?j?yt.value()[0]:yt.value():yt)})}),Nr(["pop","push","shift","sort","splice","unshift"],function(o){var v=Rr[o],E=/^(?: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(St(te)?te:[],G)}return this[E](function(ue){return v.apply(St(ue)?ue:[],G)})}}),Mo(Kt.prototype,function(o,v){var E=ee[v];if(E){var j=E.name+"";pn.call(Ra,j)||(Ra[j]=[]),Ra[j].push({name:v,func:E})}}),Ra[cu(t,w).name]=[{name:"wrapper",func:t}],Kt.prototype.clone=iL,Kt.prototype.reverse=oL,Kt.prototype.value=sL,ee.prototype.at=N2,ee.prototype.chain=D2,ee.prototype.commit=F2,ee.prototype.next=P2,ee.prototype.plant=B2,ee.prototype.reverse=H2,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=z2,ee.prototype.first=ee.prototype.head,bl&&(ee.prototype[bl]=W2),ee},Gt=dr();ur?((ur.exports=Gt)._=Gt,En._=Gt):gn._=Gt}).call(_A)}(ec,ec.exports)),ec.exports}var TA=$A();pr("O",Fl(TA)).debounce(function(){this.rebuildDisplayText()},300);var em={exports:{}},tm;function MA(){return tm||(tm=1,function(n,e){(function(){ace.require(["ace/mode/text"],function(t){n&&(n.exports=t)})})()}(em)),em.exports}MA();const EA=!0,fr="u-",IA="uplot",RA=fr+"hz",LA=fr+"vt",OA=fr+"title",NA=fr+"wrap",DA=fr+"under",FA=fr+"over",PA=fr+"axis",Rs=fr+"off",WA=fr+"select",BA=fr+"cursor-x",HA=fr+"cursor-y",zA=fr+"cursor-pt",jA=fr+"legend",UA=fr+"live",VA=fr+"inline",qA=fr+"series",KA=fr+"marker",nm=fr+"label",GA=fr+"value",Za="width",Qa="height",Ja="top",rm="bottom",da="left",th="right",nh="#000",im=nh+"0",rh="mousemove",om="mousedown",ih="mouseup",sm="mouseenter",am="mouseleave",lm="dblclick",YA="resize",XA="scroll",cm="change",tc="dppxchange",oh="--",pa=typeof window<"u",sh=pa?document:null,fa=pa?window:null,ZA=pa?navigator:null;let on,nc;function ah(){let n=devicePixelRatio;on!=n&&(on=n,nc&&uh(cm,nc,ah),nc=matchMedia(`(min-resolution: ${on-.001}dppx) and (max-resolution: ${on+.001}dppx)`),Ls(cm,nc,ah),fa.dispatchEvent(new CustomEvent(tc)))}function $i(n,e){if(e!=null){let t=n.classList;!t.contains(e)&&t.add(e)}}function lh(n,e){let t=n.classList;t.contains(e)&&t.remove(e)}function _n(n,e,t){n.style[e]=t+"px"}function io(n,e,t,r){let d=sh.createElement(n);return e!=null&&$i(d,e),t!=null&&t.insertBefore(d,r),d}function Hi(n,e){return io("div",n,e)}const um=new WeakMap;function bo(n,e,t,r,d){let p="translate("+e+"px,"+t+"px)",g=um.get(n);p!=g&&(n.style.transform=p,um.set(n,p),e<0||t<0||e>r||t>d?$i(n,Rs):lh(n,Rs))}const hm=new WeakMap;function dm(n,e,t){let r=e+t,d=hm.get(n);r!=d&&(hm.set(n,r),n.style.background=e,n.style.borderColor=t)}const pm=new WeakMap;function fm(n,e,t,r){let d=e+""+t,p=pm.get(n);d!=p&&(pm.set(n,d),n.style.height=t+"px",n.style.width=e+"px",n.style.marginLeft=r?-e/2+"px":0,n.style.marginTop=r?-t/2+"px":0)}const ch={passive:!0},QA={...ch,capture:!0};function Ls(n,e,t,r){e.addEventListener(n,t,r?QA:ch)}function uh(n,e,t,r){e.removeEventListener(n,t,ch)}pa&&ah();function oo(n,e,t,r){let d;t=t||0,r=r||e.length-1;let p=r<=2147483647;for(;r-t>1;)d=p?t+r>>1:Mi((t+r)/2),e[d]<n?t=d:r=d;return n-e[t]<=e[r]-n?t:r}function gm(n){return(e,t,r)=>{let d=-1,p=-1;for(let g=t;g<=r;g++)if(n(e[g])){d=g;break}for(let g=r;g>=t;g--)if(n(e[g])){p=g;break}return[d,p]}}const mm=n=>n!=null,vm=n=>n!=null&&n>0,rc=gm(mm),JA=gm(vm);function eS(n,e,t,r=0,d=!1){let p=d?JA:rc,g=d?vm:mm;[e,t]=p(n,e,t);let b=n[e],h=n[e];if(e>-1)if(r==1)b=n[e],h=n[t];else if(r==-1)b=n[t],h=n[e];else for(let f=e;f<=t;f++){let s=n[f];g(s)&&(s<b?b=s:s>h&&(h=s))}return[b??vn,h??-vn]}function ic(n,e,t,r){let d=wm(n),p=wm(e);n==e&&(d==-1?(n*=t,e/=t):(n/=t,e*=t));let g=t==10?Ro:xm,b=d==1?Mi:zi,h=p==1?zi:Mi,f=b(g(gr(n))),s=h(g(gr(e))),a=ga(t,f),u=ga(t,s);return t==10&&(f<0&&(a=yn(a,-f)),s<0&&(u=yn(u,-s))),r||t==2?(n=a*d,e=u*p):(n=Tm(n,a),e=ac(e,u)),[n,e]}function hh(n,e,t,r){let d=ic(n,e,t,r);return n==0&&(d[0]=0),e==0&&(d[1]=0),d}const dh=.1,ym={mode:3,pad:dh},el={pad:0,soft:null,mode:0},tS={min:el,max:el};function oc(n,e,t,r){return lc(t)?bm(n,e,t):(el.pad=t,el.soft=r?0:null,el.mode=r?3:0,bm(n,e,tS))}function en(n,e){return n??e}function nS(n,e,t){for(e=en(e,0),t=en(t,n.length-1);e<=t;){if(n[e]!=null)return!0;e++}return!1}function bm(n,e,t){let r=t.min,d=t.max,p=en(r.pad,0),g=en(d.pad,0),b=en(r.hard,-vn),h=en(d.hard,vn),f=en(r.soft,vn),s=en(d.soft,-vn),a=en(r.mode,0),u=en(d.mode,0),c=e-n,i=Ro(c),l=Gr(gr(n),gr(e)),m=Ro(l),w=gr(m-i);(c<1e-24||w>10)&&(c=0,(n==0||e==0)&&(c=1e-24,a==2&&f!=vn&&(p=0),u==2&&s!=-vn&&(g=0)));let x=c||l||1e3,M=Ro(x),_=ga(10,Mi(M)),k=x*(c==0?n==0?.1:1:p),C=yn(Tm(n-k,_/10),24),L=n>=f&&(a==1||a==3&&C<=f||a==2&&C>=f)?f:vn,D=Gr(b,C<L&&n>=L?L:so(L,C)),R=x*(c==0?e==0?.1:1:g),I=yn(ac(e+R,_/10),24),H=e<=s&&(u==1||u==3&&I>=s||u==2&&I<=s)?s:-vn,P=so(h,I>H&&e<=H?H:Gr(H,I));return D==P&&D==0&&(P=100),[D,P]}const rS=new Intl.NumberFormat(pa?ZA.language:"en-US"),ph=n=>rS.format(n),Ti=Math,sc=Ti.PI,gr=Ti.abs,Mi=Ti.floor,mr=Ti.round,zi=Ti.ceil,so=Ti.min,Gr=Ti.max,ga=Ti.pow,wm=Ti.sign,Ro=Ti.log10,xm=Ti.log2,iS=(n,e=1)=>Ti.sinh(n)*e,fh=(n,e=1)=>Ti.asinh(n/e),vn=1/0;function Cm(n){return(Ro((n^n>>31)-(n>>31))|0)+1}function gh(n,e,t){return so(Gr(n,e),t)}function km(n){return typeof n=="function"}function Ut(n){return km(n)?n:()=>n}const oS=()=>{},Am=n=>n,Sm=(n,e)=>e,sS=n=>null,_m=n=>!0,$m=(n,e)=>n==e,aS=/\.\d*?(?=9{6,}|0{6,})/gm,Os=n=>{if(Em(n)||rs.has(n))return n;const e=`${n}`,t=e.match(aS);if(t==null)return n;let r=t[0].length-1;if(e.indexOf("e-")!=-1){let[d,p]=e.split("e");return+`${Os(d)}e${p}`}return yn(n,r)};function Ns(n,e){return Os(yn(Os(n/e))*e)}function ac(n,e){return Os(zi(Os(n/e))*e)}function Tm(n,e){return Os(Mi(Os(n/e))*e)}function yn(n,e=0){if(Em(n))return n;let t=10**e,r=n*t*(1+Number.EPSILON);return mr(r)/t}const rs=new Map;function Mm(n){return((""+n).split(".")[1]||"").length}function tl(n,e,t,r){let d=[],p=r.map(Mm);for(let g=e;g<t;g++){let b=gr(g),h=yn(ga(n,g),b);for(let f=0;f<r.length;f++){let s=n==10?+`${r[f]}e${g}`:r[f]*h,a=(g>=0?0:b)+(g>=p[f]?0:p[f]),u=n==10?s:yn(s,a);d.push(u),rs.set(u,a)}}return d}const nl={},mh=[],ma=[null,null],is=Array.isArray,Em=Number.isInteger,lS=n=>n===void 0;function Im(n){return typeof n=="string"}function lc(n){let e=!1;if(n!=null){let t=n.constructor;e=t==null||t==Object}return e}function cS(n){return n!=null&&typeof n=="object"}const uS=Object.getPrototypeOf(Uint8Array),Rm="__proto__";function va(n,e=lc){let t;if(is(n)){let r=n.find(d=>d!=null);if(is(r)||e(r)){t=Array(n.length);for(let d=0;d<n.length;d++)t[d]=va(n[d],e)}else t=n.slice()}else if(n instanceof uS)t=n.slice();else if(e(n)){t={};for(let r in n)r!=Rm&&(t[r]=va(n[r],e))}else t=n;return t}function cr(n){let e=arguments;for(let t=1;t<e.length;t++){let r=e[t];for(let d in r)d!=Rm&&(lc(n[d])?cr(n[d],va(r[d])):n[d]=va(r[d]))}return n}const hS=0,dS=1,pS=2;function fS(n,e,t){for(let r=0,d,p=-1;r<e.length;r++){let g=e[r];if(g>p){for(d=g-1;d>=0&&n[d]==null;)n[d--]=null;for(d=g+1;d<t&&n[d]==null;)n[p=d++]=null}}}function gS(n,e){if(yS(n)){let g=n[0].slice();for(let b=1;b<n.length;b++)g.push(...n[b].slice(1));return bS(g[0])||(g=vS(g)),g}let t=new Set;for(let g=0;g<n.length;g++){let b=n[g][0],h=b.length;for(let f=0;f<h;f++)t.add(b[f])}let r=[Array.from(t).sort((g,b)=>g-b)],d=r[0].length,p=new Map;for(let g=0;g<d;g++)p.set(r[0][g],g);for(let g=0;g<n.length;g++){let b=n[g],h=b[0];for(let f=1;f<b.length;f++){let s=b[f],a=Array(d).fill(void 0),u=e?e[g][f]:dS,c=[];for(let i=0;i<s.length;i++){let l=s[i],m=p.get(h[i]);l===null?u!=hS&&(a[m]=l,u==pS&&c.push(m)):a[m]=l}fS(a,c,d),r.push(a)}}return r}const mS=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function vS(n){let e=n[0],t=e.length,r=Array(t);for(let p=0;p<r.length;p++)r[p]=p;r.sort((p,g)=>e[p]-e[g]);let d=[];for(let p=0;p<n.length;p++){let g=n[p],b=Array(t);for(let h=0;h<t;h++)b[h]=g[r[h]];d.push(b)}return d}function yS(n){let e=n[0][0],t=e.length;for(let r=1;r<n.length;r++){let d=n[r][0];if(d.length!=t)return!1;if(d!=e){for(let p=0;p<t;p++)if(d[p]!=e[p])return!1}}return!0}function bS(n,e=100){const t=n.length;if(t<=1)return!0;let r=0,d=t-1;for(;r<=d&&n[r]==null;)r++;for(;d>=r&&n[d]==null;)d--;if(d<=r)return!0;const p=Gr(1,Mi((d-r+1)/e));for(let g=n[r],b=r+p;b<=d;b+=p){const h=n[b];if(h!=null){if(h<=g)return!1;g=h}}return!0}const Lm=["January","February","March","April","May","June","July","August","September","October","November","December"],Om=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Nm(n){return n.slice(0,3)}const wS=Om.map(Nm),xS=Lm.map(Nm),CS={MMMM:Lm,MMM:xS,WWWW:Om,WWW:wS};function rl(n){return(n<10?"0":"")+n}function kS(n){return(n<10?"00":n<100?"0":"")+n}const AS={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,e)=>e.MMMM[n.getMonth()],MMM:(n,e)=>e.MMM[n.getMonth()],MM:n=>rl(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>rl(n.getDate()),D:n=>n.getDate(),WWWW:(n,e)=>e.WWWW[n.getDay()],WWW:(n,e)=>e.WWW[n.getDay()],HH:n=>rl(n.getHours()),H:n=>n.getHours(),h:n=>{let e=n.getHours();return e==0?12:e>12?e-12:e},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>rl(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>rl(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>kS(n.getMilliseconds())};function vh(n,e){e=e||CS;let t=[],r=/\{([a-z]+)\}|[^{]+/gi,d;for(;d=r.exec(n);)t.push(d[0][0]=="{"?AS[d[1]]:d[0]);return p=>{let g="";for(let b=0;b<t.length;b++)g+=typeof t[b]=="string"?t[b]:t[b](p,e);return g}}const SS=new Intl.DateTimeFormat().resolvedOptions().timeZone;function _S(n,e){let t;return e=="UTC"||e=="Etc/UTC"?t=new Date(+n+n.getTimezoneOffset()*6e4):e==SS?t=n:(t=new Date(n.toLocaleString("en-US",{timeZone:e})),t.setMilliseconds(n.getMilliseconds())),t}const Dm=n=>n%1==0,cc=[1,2,2.5,5],$S=tl(10,-32,0,cc),Fm=tl(10,0,32,cc),TS=Fm.filter(Dm),Ds=$S.concat(Fm),yh=`
|
|
1489
|
-
`,Pm="{YYYY}",Wm=yh+Pm,Bm="{M}/{D}",il=yh+Bm,uc=il+"/{YY}",Hm="{aa}",MS="{h}:{mm}",ya=MS+Hm,zm=yh+ya,jm=":{ss}",cn=null;function Um(n){let e=n*1e3,t=e*60,r=t*60,d=r*24,p=d*30,g=d*365,b=(n==1?tl(10,0,3,cc).filter(Dm):tl(10,-3,0,cc)).concat([e,e*5,e*10,e*15,e*30,t,t*5,t*10,t*15,t*30,r,r*2,r*3,r*4,r*6,r*8,r*12,d,d*2,d*3,d*4,d*5,d*6,d*7,d*8,d*9,d*10,d*15,p,p*2,p*3,p*4,p*6,g,g*2,g*5,g*10,g*25,g*50,g*100]);const h=[[g,Pm,cn,cn,cn,cn,cn,cn,1],[d*28,"{MMM}",Wm,cn,cn,cn,cn,cn,1],[d,Bm,Wm,cn,cn,cn,cn,cn,1],[r,"{h}"+Hm,uc,cn,il,cn,cn,cn,1],[t,ya,uc,cn,il,cn,cn,cn,1],[e,jm,uc+" "+ya,cn,il+" "+ya,cn,zm,cn,1],[n,jm+".{fff}",uc+" "+ya,cn,il+" "+ya,cn,zm,cn,1]];function f(s){return(a,u,c,i,l,m)=>{let w=[],x=l>=g,M=l>=p&&l<g,_=s(c),k=yn(_*n,3),C=bh(_.getFullYear(),x?0:_.getMonth(),M||x?1:_.getDate()),L=yn(C*n,3);if(M||x){let D=M?l/p:0,R=x?l/g:0,I=k==L?k:yn(bh(C.getFullYear()+R,C.getMonth()+D,1)*n,3),H=new Date(mr(I/n)),P=H.getFullYear(),O=H.getMonth();for(let $=0;I<=i;$++){let A=bh(P+R*$,O+D*$,1),N=A-s(yn(A*n,3));I=yn((+A+N)*n,3),I<=i&&w.push(I)}}else{let D=l>=d?d:l,R=Mi(c)-Mi(k),I=L+R+ac(k-L,D);w.push(I);let H=s(I),P=H.getHours()+H.getMinutes()/t+H.getSeconds()/r,O=l/r,$=a.axes[u]._space,A=m/$;for(;I=yn(I+l,n==1?0:3),!(I>i);)if(O>1){let N=Mi(yn(P+O,6))%24,B=s(I).getHours()-N;B>1&&(B=-1),I-=B*r,P=(P+O)%24;let U=w[w.length-1];yn((I-U)/l,3)*A>=.7&&w.push(I)}else w.push(I)}return w}}return[b,h,f]}const[ES,IS,RS]=Um(1),[LS,OS,NS]=Um(.001);tl(2,-53,53,[1]);function Vm(n,e){return n.map(t=>t.map((r,d)=>d==0||d==8||r==null?r:e(d==1||t[8]==0?r:t[1]+r)))}function qm(n,e){return(t,r,d,p,g)=>{let b=e.find(i=>g>=i[0])||e[e.length-1],h,f,s,a,u,c;return r.map(i=>{let l=n(i),m=l.getFullYear(),w=l.getMonth(),x=l.getDate(),M=l.getHours(),_=l.getMinutes(),k=l.getSeconds(),C=m!=h&&b[2]||w!=f&&b[3]||x!=s&&b[4]||M!=a&&b[5]||_!=u&&b[6]||k!=c&&b[7]||b[1];return h=m,f=w,s=x,a=M,u=_,c=k,C(l)})}}function DS(n,e){let t=vh(e);return(r,d,p,g,b)=>d.map(h=>t(n(h)))}function bh(n,e,t){return new Date(n,e,t)}function Km(n,e){return e(n)}const FS="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Gm(n,e){return(t,r,d,p)=>p==null?oh:e(n(r))}function PS(n,e){let t=n.series[e];return t.width?t.stroke(n,e):t.points.width?t.points.stroke(n,e):null}function WS(n,e){return n.series[e].fill(n,e)}const BS={show:!0,live:!0,isolate:!1,mount:oS,markers:{show:!0,width:2,stroke:PS,fill:WS,dash:"solid"},idx:null,idxs:null,values:[]};function HS(n,e){let t=n.cursor.points,r=Hi(),d=t.size(n,e);_n(r,Za,d),_n(r,Qa,d);let p=d/-2;_n(r,"marginLeft",p),_n(r,"marginTop",p);let g=t.width(n,e,d);return g&&_n(r,"borderWidth",g),r}function zS(n,e){let t=n.series[e].points;return t._fill||t._stroke}function jS(n,e){let t=n.series[e].points;return t._stroke||t._fill}function US(n,e){return n.series[e].points.size}const wh=[0,0];function VS(n,e,t){return wh[0]=e,wh[1]=t,wh}function hc(n,e,t,r=!0){return d=>{d.button==0&&(!r||d.target==e)&&t(d)}}function xh(n,e,t,r=!0){return d=>{(!r||d.target==e)&&t(d)}}const qS={show:!0,x:!0,y:!0,lock:!1,move:VS,points:{one:!1,show:HS,size:US,width:0,stroke:jS,fill:zS},bind:{mousedown:hc,mouseup:hc,click:hc,dblclick:hc,mousemove:xh,mouseleave:xh,mouseenter:xh},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,e,t,r,d)=>r-d,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Ym={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ch=cr({},Ym,{filter:Sm}),Xm=cr({},Ch,{size:10}),Zm=cr({},Ym,{show:!1}),kh='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"',Qm="bold "+kh,Jm=1.5,ev={show:!0,scale:"x",stroke:nh,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Qm,side:2,grid:Ch,ticks:Xm,border:Zm,font:kh,lineGap:Jm,rotate:0},KS="Value",GS="Time",tv={show:!0,scale:"x",auto:!1,sorted:1,min:vn,max:-vn,idxs:[]};function YS(n,e,t,r,d){return e.map(p=>p==null?"":ph(p))}function XS(n,e,t,r,d,p,g){let b=[],h=rs.get(d)||0;t=g?t:yn(ac(t,d),h);for(let f=t;f<=r;f=yn(f+d,h))b.push(Object.is(f,-0)?0:f);return b}function Ah(n,e,t,r,d,p,g){const b=[],h=n.scales[n.axes[e].scale].log,f=h==10?Ro:xm,s=Mi(f(t));d=ga(h,s),h==10&&(d=Ds[oo(d,Ds)]);let a=t,u=d*h;h==10&&(u=Ds[oo(u,Ds)]);do b.push(a),a=a+d,h==10&&!rs.has(a)&&(a=yn(a,rs.get(d))),a>=u&&(d=a,u=d*h,h==10&&(u=Ds[oo(u,Ds)]));while(a<=r);return b}function ZS(n,e,t,r,d,p,g){let b=n.scales[n.axes[e].scale].asinh,h=r>b?Ah(n,e,Gr(b,t),r,d):[b],f=r>=0&&t<=0?[0]:[];return(t<-b?Ah(n,e,Gr(b,-r),-t,d):[b]).reverse().map(s=>-s).concat(f,h)}const nv=/./,QS=/[12357]/,JS=/[125]/,rv=/1/,Sh=(n,e,t,r)=>n.map((d,p)=>e==4&&d==0||p%r==0&&t.test(d.toExponential()[d<0?1:0])?d:null);function e_(n,e,t,r,d){let p=n.axes[t],g=p.scale,b=n.scales[g],h=n.valToPos,f=p._space,s=h(10,g),a=h(9,g)-s>=f?nv:h(7,g)-s>=f?QS:h(5,g)-s>=f?JS:rv;if(a==rv){let u=gr(h(1,g)-s);if(u<f)return Sh(e.slice().reverse(),b.distr,a,zi(f/u)).reverse()}return Sh(e,b.distr,a,1)}function t_(n,e,t,r,d){let p=n.axes[t],g=p.scale,b=p._space,h=n.valToPos,f=gr(h(1,g)-h(2,g));return f<b?Sh(e.slice().reverse(),3,nv,zi(b/f)).reverse():e}function n_(n,e,t,r){return r==null?oh:e==null?"":ph(e)}const iv={show:!0,scale:"y",stroke:nh,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Qm,side:3,grid:Ch,ticks:Xm,border:Zm,font:kh,lineGap:Jm,rotate:0};function r_(n,e){let t=3+(n||1)*2;return yn(t*e,3)}function i_(n,e){let{scale:t,idxs:r}=n.series[0],d=n._data[0],p=n.valToPos(d[r[0]],t,!0),g=n.valToPos(d[r[1]],t,!0),b=gr(g-p),h=n.series[e],f=b/(h.points.space*on);return r[1]-r[0]<=f}const ov={scale:null,auto:!0,sorted:0,min:vn,max:-vn},sv=(n,e,t,r,d)=>d,av={show:!0,auto:!0,sorted:0,gaps:sv,alpha:1,facets:[cr({},ov,{scale:"x"}),cr({},ov,{scale:"y"})]},lv={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:sv,alpha:1,points:{show:i_,filter:null},values:null,min:vn,max:-vn,idxs:[],path:null,clip:null};function o_(n,e,t,r,d){return t/10}const cv={time:EA,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},s_=cr({},cv,{time:!1,ori:1}),uv={};function hv(n,e){let t=uv[n];return t||(t={key:n,plots:[],sub(r){t.plots.push(r)},unsub(r){t.plots=t.plots.filter(d=>d!=r)},pub(r,d,p,g,b,h,f){for(let s=0;s<t.plots.length;s++)t.plots[s]!=d&&t.plots[s].pub(r,d,p,g,b,h,f)}},n!=null&&(uv[n]=t)),t}const ba=1,_h=2;function Fs(n,e,t){const r=n.mode,d=n.series[e],p=r==2?n._data[e]:n._data,g=n.scales,b=n.bbox;let h=p[0],f=r==2?p[1]:p[e],s=r==2?g[d.facets[0].scale]:g[n.series[0].scale],a=r==2?g[d.facets[1].scale]:g[d.scale],u=b.left,c=b.top,i=b.width,l=b.height,m=n.valToPosH,w=n.valToPosV;return s.ori==0?t(d,h,f,s,a,m,w,u,c,i,l,pc,wa,gc,fv,mv):t(d,h,f,s,a,w,m,c,u,l,i,fc,xa,Mh,gv,vv)}function $h(n,e){let t=0,r=0,d=en(n.bands,mh);for(let p=0;p<d.length;p++){let g=d[p];g.series[0]==e?t=g.dir:g.series[1]==e&&(g.dir==1?r|=1:r|=2)}return[t,r==1?-1:r==2?1:r==3?2:0]}function a_(n,e,t,r,d){let p=n.mode,g=n.series[e],b=p==2?g.facets[1].scale:g.scale,h=n.scales[b];return d==-1?h.min:d==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function Lo(n,e,t,r,d,p){return Fs(n,e,(g,b,h,f,s,a,u,c,i,l,m)=>{let w=g.pxRound;const x=f.dir*(f.ori==0?1:-1),M=f.ori==0?wa:xa;let _,k;x==1?(_=t,k=r):(_=r,k=t);let C=w(a(b[_],f,l,c)),L=w(u(h[_],s,m,i)),D=w(a(b[k],f,l,c)),R=w(u(p==1?s.max:s.min,s,m,i)),I=new Path2D(d);return M(I,D,R),M(I,C,R),M(I,C,L),I})}function dc(n,e,t,r,d,p){let g=null;if(n.length>0){g=new Path2D;const b=e==0?gc:Mh;let h=t;for(let a=0;a<n.length;a++){let u=n[a];if(u[1]>u[0]){let c=u[0]-h;c>0&&b(g,h,r,c,r+p),h=u[1]}}let f=t+d-h,s=10;f>0&&b(g,h,r-s/2,f,r+p+s)}return g}function l_(n,e,t){let r=n[n.length-1];r&&r[0]==e?r[1]=t:n.push([e,t])}function Th(n,e,t,r,d,p,g){let b=[],h=n.length;for(let f=d==1?t:r;f>=t&&f<=r;f+=d)if(e[f]===null){let s=f,a=f;if(d==1)for(;++f<=r&&e[f]===null;)a=f;else for(;--f>=t&&e[f]===null;)a=f;let u=p(n[s]),c=a==s?u:p(n[a]),i=s-d;u=g<=0&&i>=0&&i<h?p(n[i]):u;let l=a+d;c=g>=0&&l>=0&&l<h?p(n[l]):c,c>=u&&b.push([u,c])}return b}function dv(n){return n==0?Am:n==1?mr:e=>Ns(e,n)}function pv(n){let e=n==0?pc:fc,t=n==0?(d,p,g,b,h,f)=>{d.arcTo(p,g,b,h,f)}:(d,p,g,b,h,f)=>{d.arcTo(g,p,h,b,f)},r=n==0?(d,p,g,b,h)=>{d.rect(p,g,b,h)}:(d,p,g,b,h)=>{d.rect(g,p,h,b)};return(d,p,g,b,h,f=0,s=0)=>{f==0&&s==0?r(d,p,g,b,h):(f=so(f,b/2,h/2),s=so(s,b/2,h/2),e(d,p+f,g),t(d,p+b,g,p+b,g+h,f),t(d,p+b,g+h,p,g+h,s),t(d,p,g+h,p,g,s),t(d,p,g,p+b,g,f),d.closePath())}}const pc=(n,e,t)=>{n.moveTo(e,t)},fc=(n,e,t)=>{n.moveTo(t,e)},wa=(n,e,t)=>{n.lineTo(e,t)},xa=(n,e,t)=>{n.lineTo(t,e)},gc=pv(0),Mh=pv(1),fv=(n,e,t,r,d,p)=>{n.arc(e,t,r,d,p)},gv=(n,e,t,r,d,p)=>{n.arc(t,e,r,d,p)},mv=(n,e,t,r,d,p,g)=>{n.bezierCurveTo(e,t,r,d,p,g)},vv=(n,e,t,r,d,p,g)=>{n.bezierCurveTo(t,e,d,r,g,p)};function yv(n){return(e,t,r,d,p)=>Fs(e,t,(g,b,h,f,s,a,u,c,i,l,m)=>{let{pxRound:w,points:x}=g,M,_;f.ori==0?(M=pc,_=fv):(M=fc,_=gv);const k=yn(x.width*on,3);let C=(x.size-x.width)/2*on,L=yn(C*2,3),D=new Path2D,R=new Path2D,{left:I,top:H,width:P,height:O}=e.bbox;gc(R,I-L,H-L,P+L*2,O+L*2);const $=A=>{if(h[A]!=null){let N=w(a(b[A],f,l,c)),B=w(u(h[A],s,m,i));M(D,N+C,B),_(D,N,B,C,0,sc*2)}};if(p)p.forEach($);else for(let A=r;A<=d;A++)$(A);return{stroke:k>0?D:null,fill:D,clip:R,flags:ba|_h}})}function bv(n){return(e,t,r,d,p,g)=>{r!=d&&(p!=r&&g!=r&&n(e,t,r),p!=d&&g!=d&&n(e,t,d),n(e,t,g))}}const c_=bv(wa),u_=bv(xa);function wv(n){const e=en(n==null?void 0:n.alignGaps,0);return(t,r,d,p)=>Fs(t,r,(g,b,h,f,s,a,u,c,i,l,m)=>{[d,p]=rc(h,d,p);let w=g.pxRound,x=P=>w(a(P,f,l,c)),M=P=>w(u(P,s,m,i)),_,k;f.ori==0?(_=wa,k=c_):(_=xa,k=u_);const C=f.dir*(f.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ba},D=L.stroke;let R=!1;if(p-d>=l*4){let P=he=>t.posToVal(he,f.key,!0),O=null,$=null,A,N,B,U=x(b[C==1?d:p]),K=x(b[d]),Q=x(b[p]),J=P(C==1?K+1:Q-1);for(let he=C==1?d:p;he>=d&&he<=p;he+=C){let ne=b[he],le=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];le==U?se!=null?(N=se,O==null?(_(D,le,M(N)),A=O=$=N):N<O?O=N:N>$&&($=N)):se===null&&(R=!0):(O!=null&&k(D,U,M(O),M($),M(A),M(N)),se!=null?(N=se,_(D,le,M(N)),O=$=A=N):(O=$=null,se===null&&(R=!0)),U=le,J=P(U+C))}O!=null&&O!=$&&B!=U&&k(D,U,M(O),M($),M(A),M(N))}else for(let P=C==1?d:p;P>=d&&P<=p;P+=C){let O=h[P];O===null?R=!0:O!=null&&_(D,x(b[P]),M(O))}let[I,H]=$h(t,r);if(g.fill!=null||I!=0){let P=L.fill=new Path2D(D),O=g.fillTo(t,r,g.min,g.max,I),$=M(O),A=x(b[d]),N=x(b[p]);C==-1&&([N,A]=[A,N]),_(P,N,$),_(P,A,$)}if(!g.spanGaps){let P=[];R&&P.push(...Th(b,h,d,p,C,x,e)),L.gaps=P=g.gaps(t,r,d,p,P),L.clip=dc(P,f.ori,c,i,l,m)}return H!=0&&(L.band=H==2?[Lo(t,r,d,p,D,-1),Lo(t,r,d,p,D,1)]:Lo(t,r,d,p,D,H)),L})}function h_(n){const e=en(n.align,1),t=en(n.ascDesc,!1),r=en(n.alignGaps,0),d=en(n.extend,!1);return(p,g,b,h)=>Fs(p,g,(f,s,a,u,c,i,l,m,w,x,M)=>{[b,h]=rc(a,b,h);let _=f.pxRound,{left:k,width:C}=p.bbox,L=Q=>_(i(Q,u,x,m)),D=Q=>_(l(Q,c,M,w)),R=u.ori==0?wa:xa;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ba},H=I.stroke,P=u.dir*(u.ori==0?1:-1);let O=D(a[P==1?b:h]),$=L(s[P==1?b:h]),A=$,N=$;d&&e==-1&&(N=k,R(H,N,O)),R(H,$,O);for(let Q=P==1?b:h;Q>=b&&Q<=h;Q+=P){let J=a[Q];if(J==null)continue;let he=L(s[Q]),ne=D(J);e==1?R(H,he,O):R(H,A,ne),R(H,he,ne),O=ne,A=he}let B=A;d&&e==1&&(B=k+C,R(H,B,O));let[U,K]=$h(p,g);if(f.fill!=null||U!=0){let Q=I.fill=new Path2D(H),J=f.fillTo(p,g,f.min,f.max,U),he=D(J);R(Q,B,he),R(Q,N,he)}if(!f.spanGaps){let Q=[];Q.push(...Th(s,a,b,h,P,L,r));let J=f.width*on/2,he=t||e==1?J:-J,ne=t||e==-1?-J:J;Q.forEach(le=>{le[0]+=he,le[1]+=ne}),I.gaps=Q=f.gaps(p,g,b,h,Q),I.clip=dc(Q,u.ori,m,w,x,M)}return K!=0&&(I.band=K==2?[Lo(p,g,b,h,H,-1),Lo(p,g,b,h,H,1)]:Lo(p,g,b,h,H,K)),I})}function xv(n,e,t,r,d,p,g=vn){if(n.length>1){let b=null;for(let h=0,f=1/0;h<n.length;h++)if(e[h]!==void 0){if(b!=null){let s=gr(n[h]-n[b]);s<f&&(f=s,g=gr(t(n[h],r,d,p)-t(n[b],r,d,p)))}b=h}}return g}function d_(n){n=n||nl;const e=en(n.size,[.6,vn,1]),t=n.align||0,r=n.gap||0;let d=n.radius;d=d==null?[0,0]:typeof d=="number"?[d,0]:d;const p=Ut(d),g=1-e[0],b=en(e[1],vn),h=en(e[2],1),f=en(n.disp,nl),s=en(n.each,c=>{}),{fill:a,stroke:u}=f;return(c,i,l,m)=>Fs(c,i,(w,x,M,_,k,C,L,D,R,I,H)=>{let P=w.pxRound,O=t,$=r*on,A=b*on,N=h*on,B,U;_.ori==0?[B,U]=p(c,i):[U,B]=p(c,i);const K=_.dir*(_.ori==0?1:-1);let Q=_.ori==0?gc:Mh,J=_.ori==0?s:(qe,Nt,tn,Bn,Ar,vr,bn)=>{s(qe,Nt,tn,Ar,Bn,bn,vr)},he=en(c.bands,mh).find(qe=>qe.series[0]==i),ne=he!=null?he.dir:0,le=w.fillTo(c,i,w.min,w.max,ne),se=P(L(le,k,H,R)),de,me,_e,Te=I,Me=P(w.width*on),Je=!1,Xe=null,ht=null,st=null,dt=null;a!=null&&(Me==0||u!=null)&&(Je=!0,Xe=a.values(c,i,l,m),ht=new Map,new Set(Xe).forEach(qe=>{qe!=null&&ht.set(qe,new Path2D)}),Me>0&&(st=u.values(c,i,l,m),dt=new Map,new Set(st).forEach(qe=>{qe!=null&&dt.set(qe,new Path2D)})));let{x0:Qt,size:$n}=f;if(Qt!=null&&$n!=null){O=1,x=Qt.values(c,i,l,m),Qt.unit==2&&(x=x.map(Nt=>c.posToVal(D+Nt*I,_.key,!0)));let qe=$n.values(c,i,l,m);$n.unit==2?me=qe[0]*I:me=C(qe[0],_,I,D)-C(0,_,I,D),Te=xv(x,M,C,_,I,D,Te),_e=Te-me+$}else Te=xv(x,M,C,_,I,D,Te),_e=Te*g+$,me=Te-_e;_e<1&&(_e=0),Me>=me/2&&(Me=0),_e<5&&(P=Am);let Ht=_e>0,kr=Te-_e-(Ht?Me:0);me=P(gh(kr,N,A)),de=(O==0?me/2:O==K?0:me)-O*K*((O==0?$/2:0)+(Ht?Me/2:0));const fn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Wn=Je?null:new Path2D;let ir=null;if(he!=null)ir=c.data[he.series[1]];else{let{y0:qe,y1:Nt}=f;qe!=null&&Nt!=null&&(M=Nt.values(c,i,l,m),ir=qe.values(c,i,l,m))}let Or=B*me,bt=U*me;for(let qe=K==1?l:m;qe>=l&&qe<=m;qe+=K){let Nt=M[qe];if(Nt==null)continue;if(ir!=null){let Xt=ir[qe]??0;if(Nt-Xt==0)continue;se=L(Xt,k,H,R)}let tn=_.distr!=2||f!=null?x[qe]:qe,Bn=C(tn,_,I,D),Ar=L(en(Nt,le),k,H,R),vr=P(Bn-de),bn=P(Gr(Ar,se)),qn=P(so(Ar,se)),Hn=bn-qn;if(Nt!=null){let Xt=Nt<0?bt:Or,dn=Nt<0?Or:bt;Je?(Me>0&&st[qe]!=null&&Q(dt.get(st[qe]),vr,qn+Mi(Me/2),me,Gr(0,Hn-Me),Xt,dn),Xe[qe]!=null&&Q(ht.get(Xe[qe]),vr,qn+Mi(Me/2),me,Gr(0,Hn-Me),Xt,dn)):Q(Wn,vr,qn+Mi(Me/2),me,Gr(0,Hn-Me),Xt,dn),J(c,i,qe,vr-Me/2,qn,me+Me,Hn)}}return Me>0?fn.stroke=Je?dt:Wn:Je||(fn._fill=w.width==0?w._fill:w._stroke??w._fill,fn.width=0),fn.fill=Je?ht:Wn,fn})}function p_(n,e){const t=en(e==null?void 0:e.alignGaps,0);return(r,d,p,g)=>Fs(r,d,(b,h,f,s,a,u,c,i,l,m,w)=>{[p,g]=rc(f,p,g);let x=b.pxRound,M=B=>x(u(B,s,m,i)),_=B=>x(c(B,a,w,l)),k,C,L;s.ori==0?(k=pc,L=wa,C=mv):(k=fc,L=xa,C=vv);const D=s.dir*(s.ori==0?1:-1);let R=M(h[D==1?p:g]),I=R,H=[],P=[];for(let B=D==1?p:g;B>=p&&B<=g;B+=D)if(f[B]!=null){let U=h[B],K=M(U);H.push(I=K),P.push(_(f[B]))}const O={stroke:n(H,P,k,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:ba},$=O.stroke;let[A,N]=$h(r,d);if(b.fill!=null||A!=0){let B=O.fill=new Path2D($),U=b.fillTo(r,d,b.min,b.max,A),K=_(U);L(B,I,K),L(B,R,K)}if(!b.spanGaps){let B=[];B.push(...Th(h,f,p,g,D,M,t)),O.gaps=B=b.gaps(r,d,p,g,B),O.clip=dc(B,s.ori,i,l,m,w)}return N!=0&&(O.band=N==2?[Lo(r,d,p,g,$,-1),Lo(r,d,p,g,$,1)]:Lo(r,d,p,g,$,N)),O})}function f_(n){return p_(g_,n)}function g_(n,e,t,r,d,p){const g=n.length;if(g<2)return null;const b=new Path2D;if(t(b,n[0],e[0]),g==2)r(b,n[1],e[1]);else{let h=Array(g),f=Array(g-1),s=Array(g-1),a=Array(g-1);for(let u=0;u<g-1;u++)s[u]=e[u+1]-e[u],a[u]=n[u+1]-n[u],f[u]=s[u]/a[u];h[0]=f[0];for(let u=1;u<g-1;u++)f[u]===0||f[u-1]===0||f[u-1]>0!=f[u]>0?h[u]=0:(h[u]=3*(a[u-1]+a[u])/((2*a[u]+a[u-1])/f[u-1]+(a[u]+2*a[u-1])/f[u]),isFinite(h[u])||(h[u]=0));h[g-1]=f[g-2];for(let u=0;u<g-1;u++)d(b,n[u]+a[u]/3,e[u]+h[u]*a[u]/3,n[u+1]-a[u]/3,e[u+1]-h[u+1]*a[u]/3,n[u+1],e[u+1])}return b}const Eh=new Set;function Cv(){for(let n of Eh)n.syncRect(!0)}pa&&(Ls(YA,fa,Cv),Ls(XA,fa,Cv,!0),Ls(tc,fa,()=>{Wr.pxRatio=on}));const m_=wv(),v_=yv();function kv(n,e,t,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((d,p)=>Ih(d,p,e,t))}function y_(n,e){return n.map((t,r)=>r==0?{}:cr({},e,t))}function Ih(n,e,t,r){return cr({},e==0?t:r,n)}function Av(n,e,t){return e==null?ma:[e,t]}const b_=Av;function w_(n,e,t){return e==null?ma:oc(e,t,dh,!0)}function Sv(n,e,t,r){return e==null?ma:ic(e,t,n.scales[r].log,!1)}const x_=Sv;function _v(n,e,t,r){return e==null?ma:hh(e,t,n.scales[r].log,!1)}const C_=_v;function k_(n,e,t,r,d){let p=Gr(Cm(n),Cm(e)),g=e-n,b=oo(d/r*g,t);do{let h=t[b],f=r*h/g;if(f>=d&&p+(h<5?rs.get(h):0)<=17)return[h,f]}while(++b<t.length);return[0,0]}function $v(n){let e,t;return n=n.replace(/(\d+)px/,(r,d)=>(e=mr((t=+d)*on))+"px"),[n,e,t]}function A_(n){n.show&&[n.font,n.labelFont].forEach(e=>{let t=yn(e[2]*on,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t})}function Wr(n,e,t){const r={mode:en(n.mode,1)},d=r.mode;function p(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function b(V,X,ie,oe){return X.ori==0?p(V,X,ie,oe):g(V,X,ie,oe)}r.valToPosH=p,r.valToPosV=g;let h=!1;r.status=0;const f=r.root=Hi(IA);if(n.id!=null&&(f.id=n.id),$i(f,n.class),n.title){let V=Hi(OA,f);V.textContent=n.title}const s=io("canvas"),a=r.ctx=s.getContext("2d"),u=Hi(NA,f);Ls("click",u,V=>{V.target===i&&(ln!=Vi||qt!=To)&&Yn.click(r,V)},!0);const c=r.under=Hi(DA,u);u.appendChild(s);const i=r.over=Hi(FA,u);n=va(n);const l=+en(n.pxAlign,1),m=dv(l);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const w=n.ms||.001,x=r.series=d==1?kv(n.series||[],tv,lv,!1):y_(n.series||[null],av),M=r.axes=kv(n.axes||[],ev,iv,!0),_=r.scales={},k=r.bands=n.bands||[];k.forEach(V=>{V.fill=Ut(V.fill||null),V.dir=en(V.dir,-1)});const C=d==2?x[1].facets[0].scale:x[0].scale,L={axes:Po,series:_a},D=(n.drawOrder||["axes","series"]).map(V=>L[V]);function R(V){const X=V.distr==3?ie=>Ro(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>fh(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ee=xe-ge;return(oe-ge)/Ee}}function I(V){let X=_[V];if(X==null){let ie=(n.scales||nl)[V]||nl;if(ie.from!=null){I(ie.from);let oe=cr({},_[ie.from],ie,{key:V});oe.valToPct=R(oe),_[V]=oe}else{X=_[V]=cr({},V==C?cv:s_,ie),X.key=V;let oe=X.time,ge=X.range,xe=is(ge);if((V!=C||d==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?ym:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?ym:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&lc(ge))){let Ee=ge;ge=(We,He,Ye)=>He==null?ma:oc(He,Ye,Ee)}X.range=Ut(ge||(oe?b_:V==C?X.distr==3?x_:X.distr==4?C_:Av:X.distr==3?Sv:X.distr==4?_v:w_)),X.auto=Ut(xe?!1:X.auto),X.clamp=Ut(X.clamp||o_),X._min=X._max=null,X.valToPct=R(X)}}}I("x"),I("y"),d==1&&x.forEach(V=>{I(V.scale)}),M.forEach(V=>{I(V.scale)});for(let V in n.scales)I(V);const H=_[C],P=H.distr;let O,$;H.ori==0?($i(f,RA),O=p,$=g):($i(f,LA),O=g,$=p);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(mr(V/w))),B=n.fmtDate||vh,U=w==1?RS(N):NS(N),K=qm(N,Vm(w==1?IS:OS,B)),Q=Gm(N,Km(FS,B)),J=[],he=r.legend=cr({},BS,n.legend),ne=r.cursor=cr({},qS,{drag:{y:d==2}},n.cursor),le=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=Ut(de.width),de.dash=Ut(de.dash),de.stroke=Ut(de.stroke),de.fill=Ut(de.fill);let me,_e,Te,Me=[],Je=[],Xe,ht=!1,st={};if(he.live){const V=x[1]?x[1].values:null;ht=V!=null,Xe=ht?V(r,1,0):{_:0};for(let X in Xe)st[X]=oh}if(le)if(me=io("table",jA,f),Te=io("tbody",null,me),he.mount(r,me),ht){_e=io("thead",null,me,Te);let V=io("tr",null,_e);io("th",null,V);for(var dt in Xe)io("th",nm,V).textContent=dt}else $i(me,VA),he.live&&$i(me,UA);const Qt={show:!0},$n={show:!1};function Ht(V,X){if(X==0&&(ht||!he.live||d==2))return ma;let ie=[],oe=io("tr",qA,Te,Te.childNodes[X]);$i(oe,V.class),V.show||$i(oe,Rs);let ge=io("th",null,oe);if(de.show){let We=Hi(KA,ge);if(X>0){let He=de.width(r,X);He&&(We.style.border=He+"px "+de.dash(r,X)+" "+de.stroke(r,X)),We.style.background=de.fill(r,X)}}let xe=Hi(nm,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)),fn("click",ge,We=>{if(ne._lock)return;yi(We);let He=x.indexOf(V);if((We.ctrlKey||We.metaKey)!=he.isolate){let Ye=x.some((Qe,tt)=>tt>0&&tt!=He&&Qe.show);x.forEach((Qe,tt)=>{tt>0&&ii(tt,Ye?tt==He?Qt:$n:Qt,!0,pt.setSeries)})}else ii(He,{show:!V.show},!0,pt.setSeries)},!1),bi&&fn(sm,ge,We=>{ne._lock||(yi(We),ii(x.indexOf(V),Gi,!0,pt.setSeries))},!1));for(var Ee in Xe){let We=io("td",GA,oe);We.textContent="--",ie.push(We)}return[oe,ie]}const kr=new Map;function fn(V,X,ie,oe=!0){const ge=kr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&(Ls(V,X,ge[V]=xe),kr.set(X,ge))}function Wn(V,X,ie){const oe=kr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(uh(ge,X,oe[ge]),delete oe[ge]);V==null&&kr.delete(X)}let ir=0,Or=0,bt=0,qe=0,Nt=0,tn=0,Bn=Nt,Ar=tn,vr=bt,bn=qe,qn=0,Hn=0,Xt=0,dn=0;r.bbox={};let Hr=!1,Jr=!1,ei=!1,Ii=!1,gi=!1,Kn=!1;function co(V,X,ie){(ie||V!=r.width||X!=r.height)&&mi(V,X),po(!1),ei=!0,Jr=!0,$o()}function mi(V,X){r.width=ir=bt=V,r.height=Or=qe=X,Nt=tn=0,vi(),os();let ie=r.bbox;qn=ie.left=Ns(Nt*on,.5),Hn=ie.top=Ns(tn*on,.5),Xt=ie.width=Ns(bt*on,.5),dn=ie.height=Ns(qe*on,.5)}const zs=3;function ti(){let V=!1,X=0;for(;!V;){X++;let ie=$a(X),oe=yl(X);V=X==zs||ie&&oe,V||(mi(r.width,r.height),Jr=!0)}}function Rn({width:V,height:X}){co(V,X)}r.setSize=Rn;function vi(){let V=!1,X=!1,ie=!1,oe=!1;M.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ee,_size:We}=ge,He=Ee%2,Ye=ge.label!=null?ge.labelSize:0,Qe=We+Ye;Qe>0&&(He?(bt-=Qe,Ee==3?(Nt+=Qe,oe=!0):ie=!0):(qe-=Qe,Ee==0?(tn+=Qe,V=!0):X=!0))}}),xi[0]=V,xi[1]=ie,xi[2]=X,xi[3]=oe,bt-=_r[1]+_r[3],Nt+=_r[3],qe-=_r[2]+_r[0],tn+=_r[0]}function os(){let V=Nt+bt,X=tn+qe,ie=Nt,oe=tn;function ge(xe,Ee){switch(xe){case 1:return V+=Ee,V-Ee;case 2:return X+=Ee,X-Ee;case 3:return ie-=Ee,ie+Ee;case 0:return oe-=Ee,oe+Ee}}M.forEach((xe,Ee)=>{if(xe.show&&xe._show){let We=xe.side;xe._pos=ge(We,xe._size),xe.label!=null&&(xe._lpos=ge(We,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=Ut(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,xe,Ee,We)=>{if(xe==0)return Ee;let He=Ee,Ye=ie(ge,xe,Ee,We)??vn,Qe=Ye>=0&&Ye<vn,tt=H.ori==0?bt:qe,xt=ne.left,Wt=e[0],At=e[xe];if(X.has(At[Ee])){He=null;let Ft=null,gt=null,ct;if(oe==0||oe==-1)for(ct=Ee;Ft==null&&ct-- >0;)X.has(At[ct])||(Ft=ct);if(oe==0||oe==1)for(ct=Ee;gt==null&&ct++<At.length;)X.has(At[ct])||(gt=ct);if(Ft!=null||gt!=null)if(Qe){let xn=Ft==null?-1/0:O(Wt[Ft],H,tt,0),Dn=gt==null?1/0:O(Wt[gt],H,tt,0),dr=xt-xn,Gt=Dn-xt;dr<=Gt?dr<=Ye&&(He=Ft):Gt<=Ye&&(He=gt)}else He=gt==null?Ft:Ft==null?gt:Ee-Ft<=gt-Ee?Ft:gt}else Qe&&gr(xt-O(Wt[Ee],H,tt,0))>Ye&&(He=null);return He}}const yi=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let Tn=ne.points;Tn.show=Ut(Tn.show),Tn.size=Ut(Tn.size),Tn.stroke=Ut(Tn.stroke),Tn.width=Ut(Tn.width),Tn.fill=Ut(Tn.fill);const yr=r.focus=cr({},n.focus||{alpha:.3},ne.focus),bi=yr.prox>=0,Mn=bi&&Tn.one;let Ln=[],Sr=[],wi=[];function ko(V,X){let ie=Tn.show(r,X);if(ie instanceof HTMLElement)return $i(ie,zA),$i(ie,V.class),bo(ie,-10,-10,bt,qe),i.insertBefore(ie,Ln[X]),ie}function Ao(V,X){if(d==1||X>0){let ie=d==1&&_[V.scale].time,oe=V.value;V.value=ie?Im(oe)?Gm(N,Km(oe,B)):oe||Q:oe||n_,V.label=V.label||(ie?GS:KS)}if(Mn||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||m_||sS,V.fillTo=Ut(V.fillTo||a_),V.pxAlign=+en(V.pxAlign,l),V.pxRound=dv(V.pxAlign),V.stroke=Ut(V.stroke||null),V.fill=Ut(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=r_(Gr(1,V.width),1),oe=V.points=cr({},{size:ie,width:Gr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:v_,_stroke:null,_fill:null},V.points);oe.show=Ut(oe.show),oe.filter=Ut(oe.filter),oe.fill=Ut(oe.fill),oe.stroke=Ut(oe.stroke),oe.paths=Ut(oe.paths),oe.pxAlign=V.pxAlign}if(le){let ie=Ht(V,X);Me.splice(X,0,ie[0]),Je.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;Mn?X==0&&(ie=ko(V,X)):X>0&&(ie=ko(V,X)),Ln.splice(X,0,ie),Sr.splice(X,0,0),wi.splice(X,0,0)}at("addSeries",X)}function ss(V,X){X=X??x.length,V=d==1?Ih(V,X,tv,lv):Ih(V,X,{},av),x.splice(X,0,V),Ao(x[X],X)}r.addSeries=ss;function ni(V){if(x.splice(V,1),le){he.values.splice(V,1),Je.splice(V,1);let X=Me.splice(V,1)[0];Wn(null,X.firstChild),X.remove()}se&&(J.splice(V,1),Ln.splice(V,1)[0].remove(),Sr.splice(V,1),wi.splice(V,1)),at("delSeries",V)}r.delSeries=ni;const xi=[!1,!1,!1,!1];function zr(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=Ut(V.size),V.space=Ut(V.space),V.rotate=Ut(V.rotate),is(V.incrs)&&V.incrs.forEach(Ee=>{!rs.has(Ee)&&rs.set(Ee,Mm(Ee))}),V.incrs=Ut(V.incrs||(oe.distr==2?TS:ge?w==1?ES:LS:Ds)),V.splits=Ut(V.splits||(ge&&oe.distr==1?U:oe.distr==3?Ah:oe.distr==4?ZS:XS)),V.stroke=Ut(V.stroke),V.grid.stroke=Ut(V.grid.stroke),V.ticks.stroke=Ut(V.ticks.stroke),V.border.stroke=Ut(V.border.stroke);let xe=V.values;V.values=is(xe)&&!is(xe[0])?Ut(xe):ge?is(xe)?qm(N,Vm(xe,B)):Im(xe)?DS(N,xe):xe||K:xe||YS,V.filter=Ut(V.filter||(oe.distr>=3&&oe.log==10?e_:oe.distr==3&&oe.log==2?t_:Sm)),V.font=$v(V.font),V.labelFont=$v(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&&(xi[X]=!0,V._el=Hi(PA,u))}}function Dt(V,X,ie,oe){let[ge,xe,Ee,We]=ie,He=X%2,Ye=0;return He==0&&(We||xe)&&(Ye=X==0&&!ge||X==2&&!Ee?mr(ev.size/3):0),He==1&&(ge||Ee)&&(Ye=X==1&&!xe||X==3&&!We?mr(iv.size/2):0),Ye}const No=r.padding=(n.padding||[Dt,Dt,Dt,Dt]).map(V=>Ut(en(V,Dt))),_r=r._padding=No.map((V,X)=>V(r,X,xi,0));let ce,ze=null,Fe=null;const Tt=d==1?x[0].idxs:null;let Zt=null,Vt=!1;function $r(V,X){if(e=V??[],r.data=r._data=e,d==2){ce=0;for(let ie=1;ie<x.length;ie++)ce+=e[ie][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),Zt=e[0],ce=Zt.length;let ie=e;if(P==2){ie=e.slice();let oe=ie[0]=Array(ce);for(let ge=0;ge<ce;ge++)oe[ge]=ge}r._data=e=ie}if(po(!0),at("setData"),P==2&&(ei=!0),X!==!1){let ie=H;ie.auto(r,Vt)?br():ur(C,ie.min,ie.max),Ii=Ii||ne.left>=0,Kn=!0,$o()}}r.setData=$r;function br(){Vt=!0;let V,X;d==1&&(ce>0?(ze=Tt[0]=0,Fe=Tt[1]=ce-1,V=e[0][ze],X=e[0][Fe],P==2?(V=ze,X=Fe):V==X&&(P==3?[V,X]=ic(V,V,H.log,!1):P==4?[V,X]=hh(V,V,H.log,!1):H.time?X=V+mr(86400/w):[V,X]=oc(V,X,dh,!0))):(ze=Tt[0]=V=null,Fe=Tt[1]=X=null)),ur(C,V,X)}let Gn,Tr,wn,uo,jr,as,js,Us,ls,wr;function Vs(V,X,ie,oe,ge,xe){V??(V=im),ie??(ie=mh),oe??(oe="butt"),ge??(ge=im),xe??(xe="round"),V!=Gn&&(a.strokeStyle=Gn=V),ge!=Tr&&(a.fillStyle=Tr=ge),X!=wn&&(a.lineWidth=wn=X),xe!=jr&&(a.lineJoin=jr=xe),oe!=as&&(a.lineCap=as=oe),ie!=uo&&a.setLineDash(uo=ie)}function Do(V,X,ie,oe){X!=Tr&&(a.fillStyle=Tr=X),V!=js&&(a.font=js=V),ie!=Us&&(a.textAlign=Us=ie),oe!=ls&&(a.textBaseline=ls=oe)}function cs(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,Vt)&&(X==null||X.min==null)){let xe=en(ze,0),Ee=en(Fe,oe.length-1),We=ie.min==null?eS(oe,xe,Ee,ge,V.distr==3):[ie.min,ie.max];V.min=so(V.min,ie.min=We[0]),V.max=Gr(V.max,ie.max=We[1])}}const us={min:null,max:null};function So(){for(let oe in _){let ge=_[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,Vt))&&(A[oe]=us)}for(let oe in _){let ge=_[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=us)}A[C]!=null&&po(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let xe=V[oe]=va(_[oe],cS);if(ge.min!=null)cr(xe,ge);else if(oe!=C||d==2)if(ce==0&&xe.from==null){let Ee=xe.range(r,null,null,oe);xe.min=Ee[0],xe.max=Ee[1]}else xe.min=vn,xe.max=-vn}}if(ce>0){x.forEach((oe,ge)=>{if(d==1){let xe=oe.scale,Ee=A[xe];if(Ee==null)return;let We=V[xe];if(ge==0){let He=We.range(r,We.min,We.max,xe);We.min=He[0],We.max=He[1],ze=oo(We.min,e[0]),Fe=oo(We.max,e[0]),Fe-ze>1&&(e[0][ze]<We.min&&ze++,e[0][Fe]>We.max&&Fe--),oe.min=Zt[ze],oe.max=Zt[Fe]}else oe.show&&oe.auto&&cs(We,Ee,oe,e[ge],oe.sorted);oe.idxs[0]=ze,oe.idxs[1]=Fe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ee]=oe.facets,We=xe.scale,He=Ee.scale,[Ye,Qe]=e[ge],tt=V[We],xt=V[He];tt!=null&&cs(tt,A[We],xe,Ye,xe.sorted),xt!=null&&cs(xt,A[He],Ee,Qe,Ee.sorted),oe.min=Ee.min,oe.max=Ee.max}});for(let oe in V){let ge=V[oe],xe=A[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ee=ge.range(r,ge.min==vn?null:ge.min,ge.max==-vn?null:ge.max,oe);ge.min=Ee[0],ge.max=Ee[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 Ee=ge.range(r,xe.min,xe.max,oe);ge.min=Ee[0],ge.max=Ee[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 Ee=xe.distr;xe._min=Ee==3?Ro(xe.min):Ee==4?fh(xe.min,xe.asinh):Ee==100?xe.fwd(xe.min):xe.min,xe._max=Ee==3?Ro(xe.max):Ee==4?fh(xe.max,xe.asinh):Ee==100?xe.fwd(xe.max):xe.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{d==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)ei=!0,at("setScale",oe);se&&ne.left>=0&&(Ii=Kn=!0)}for(let oe in A)A[oe]=null}function qs(V){let X=gh(ze-1,0,ce-1),ie=gh(Fe+1,0,ce-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ce-1;)ie++;return[X,ie]}function _a(){if(ce>0){let V=x.some(X=>X._focus)&&wr!=yr.alpha;V&&(a.globalAlpha=wr=yr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(hs(ie,!1),hs(ie,!0),X._paths==null)){let oe=wr;wr!=X.alpha&&(a.globalAlpha=wr=X.alpha);let ge=d==2?[0,e[ie][0].length-1]:qs(e[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),wr!=oe&&(a.globalAlpha=wr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=wr;wr!=X.alpha&&(a.globalAlpha=wr=X.alpha),X._paths!=null&&ds(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,ze,Fe,ge),Ee=X.points.filter(r,ie,xe,ge);(xe||Ee)&&(X.points._paths=X.points.paths(r,ie,ze,Fe,Ee),ds(ie,!0))}wr!=oe&&(a.globalAlpha=wr=oe),at("drawSeries",ie)}}),V&&(a.globalAlpha=wr=1)}}function hs(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function ds(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ee,_stroke:We=ie._stroke,_fill:He=ie._fill,_width:Ye=ie.width}=ie._paths;Ye=yn(Ye*on,3);let Qe=null,tt=Ye%2/2;X&&He==null&&(He=Ye>0?"#fff":We);let xt=ie.pxAlign==1&&tt>0;if(xt&&a.translate(tt,tt),!X){let Wt=qn-Ye/2,At=Hn-Ye/2,Ft=Xt+Ye,gt=dn+Ye;Qe=new Path2D,Qe.rect(Wt,At,Ft,gt)}X?Fo(We,Ye,ie.dash,ie.cap,He,oe,ge,Ee,xe):Ks(V,We,Ye,ie.dash,ie.cap,He,oe,ge,Ee,Qe,xe),xt&&a.translate(-tt,-tt)}function Ks(V,X,ie,oe,ge,xe,Ee,We,He,Ye,Qe){let tt=!1;He!=0&&k.forEach((xt,Wt)=>{if(xt.series[0]==V){let At=x[xt.series[1]],Ft=e[xt.series[1]],gt=(At._paths||nl).band;is(gt)&&(gt=xt.dir==1?gt[0]:gt[1]);let ct,xn=null;At.show&>&&nS(Ft,ze,Fe)?(xn=xt.fill(r,Wt)||xe,ct=At._paths.clip):gt=null,Fo(X,ie,oe,ge,xn,Ee,We,He,Ye,Qe,ct,gt),tt=!0}}),tt||Fo(X,ie,oe,ge,xe,Ee,We,He,Ye,Qe)}const ps=ba|_h;function Fo(V,X,ie,oe,ge,xe,Ee,We,He,Ye,Qe,tt){Vs(V,X,ie,oe,ge),(He||Ye||tt)&&(a.save(),He&&a.clip(He),Ye&&a.clip(Ye)),tt?(We&ps)==ps?(a.clip(tt),Qe&&a.clip(Qe),xr(ge,Ee),Ui(V,xe,X)):We&_h?(xr(ge,Ee),a.clip(tt),Ui(V,xe,X)):We&ba&&(a.save(),a.clip(tt),Qe&&a.clip(Qe),xr(ge,Ee),a.restore(),Ui(V,xe,X)):(xr(ge,Ee),Ui(V,xe,X)),(He||Ye||tt)&&a.restore()}function Ui(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{a.strokeStyle=Gn=ge,a.stroke(oe)}):X!=null&&V&&a.stroke(X))}function xr(V,X){X instanceof Map?X.forEach((ie,oe)=>{a.fillStyle=Tr=oe,a.fill(ie)}):X!=null&&V&&a.fill(X)}function _o(V,X,ie,oe){let ge=M[V],xe;if(oe<=0)xe=[0,0];else{let Ee=ge._space=ge.space(r,V,X,ie,oe),We=ge._incrs=ge.incrs(r,V,X,ie,oe,Ee);xe=k_(X,ie,We,oe,Ee)}return ge._found=xe}function ho(V,X,ie,oe,ge,xe,Ee,We,He,Ye){let Qe=Ee%2/2;l==1&&a.translate(Qe,Qe),Vs(We,Ee,He,Ye,We),a.beginPath();let tt,xt,Wt,At,Ft=ge+(oe==0||oe==3?-xe:xe);ie==0?(xt=ge,At=Ft):(tt=ge,Wt=Ft);for(let gt=0;gt<V.length;gt++)X[gt]!=null&&(ie==0?tt=Wt=V[gt]:xt=At=V[gt],a.moveTo(tt,xt),a.lineTo(Wt,At));a.stroke(),l==1&&a.translate(-Qe,-Qe)}function $a(V){let X=!0;return M.forEach((ie,oe)=>{if(!ie.show)return;let ge=_[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,po(!1));return}else ie._show||(X=!1,ie._show=!0,po(!1));let xe=ie.side,Ee=xe%2,{min:We,max:He}=ge,[Ye,Qe]=_o(oe,We,He,Ee==0?bt:qe);if(Qe==0)return;let tt=ge.distr==2,xt=ie._splits=ie.splits(r,oe,We,He,Ye,Qe,tt),Wt=ge.distr==2?xt.map(ct=>Zt[ct]):xt,At=ge.distr==2?Zt[xt[1]]-Zt[xt[0]]:Ye,Ft=ie._values=ie.values(r,ie.filter(r,Wt,oe,Qe,At),oe,Qe,At);ie._rotate=xe==2?ie.rotate(r,Ft,oe,Qe):0;let gt=ie._size;ie._size=zi(ie.size(r,Ft,oe,V)),gt!=null&&ie._size!=gt&&(X=!1)}),X}function yl(V){let X=!0;return No.forEach((ie,oe)=>{let ge=ie(r,oe,xi,V);ge!=_r[oe]&&(X=!1),_r[oe]=ge}),X}function Po(){for(let V=0;V<M.length;V++){let X=M[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,xe,Ee=X.stroke(r,V),We=ie==0||ie==3?-1:1,[He,Ye]=X._found;if(X.label!=null){let mn=X.labelGap*We,Rr=mr((X._lpos+mn)*on);Do(X.labelFont[0],Ee,"center",ie==2?Ja:rm),a.save(),oe==1?(ge=xe=0,a.translate(Rr,mr(Hn+dn/2)),a.rotate((ie==3?-sc:sc)/2)):(ge=mr(qn+Xt/2),xe=Rr);let jo=km(X.label)?X.label(r,V,He,Ye):X.label;a.fillText(jo,ge,xe),a.restore()}if(Ye==0)continue;let Qe=_[X.scale],tt=oe==0?Xt:dn,xt=oe==0?qn:Hn,Wt=X._splits,At=Qe.distr==2?Wt.map(mn=>Zt[mn]):Wt,Ft=Qe.distr==2?Zt[Wt[1]]-Zt[Wt[0]]:He,gt=X.ticks,ct=X.border,xn=gt.show?gt.size:0,Dn=mr(xn*on),dr=mr((X.alignTo==2?X._size-xn-X.gap:X.gap)*on),Gt=X._rotate*-sc/180,fe=m(X._pos*on),$e=(Dn+dr)*We,Ce=fe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ke=X.font[0],ft=X.align==1?da:X.align==2?th:Gt>0?da:Gt<0?th:oe==0?"center":ie==3?th:da,Et=Gt||oe==1?"middle":ie==2?Ja:rm;Do(Ke,Ee,ft,Et);let Jt=X.font[1]*X.lineGap,Lt=Wt.map(mn=>m(b(mn,Qe,tt,xt))),oi=X._values;for(let mn=0;mn<oi.length;mn++){let Rr=oi[mn];if(Rr!=null){oe==0?ge=Lt[mn]:xe=Lt[mn],Rr=""+Rr;let jo=Rr.indexOf(`
|
|
1490
|
-
`)==-1?[Rr]:Rr.split(/\n/gm);for(let Qn=0;Qn<jo.length;Qn++){let Ys=jo[Qn];Gt?(a.save(),a.translate(ge,xe+Qn*Jt),a.rotate(Gt),a.fillText(Ys,0,0),a.restore()):a.fillText(Ys,ge,xe+Qn*Jt)}}}gt.show&&ho(Lt,gt.filter(r,At,V,Ye,Ft),oe,ie,fe,Dn,yn(gt.width*on,3),gt.stroke(r,V),gt.dash,gt.cap);let Yi=X.grid;Yi.show&&ho(Lt,Yi.filter(r,At,V,Ye,Ft),oe,oe==0?2:1,oe==0?Hn:qn,oe==0?dn:Xt,yn(Yi.width*on,3),Yi.stroke(r,V),Yi.dash,Yi.cap),ct.show&&ho([fe],[1],oe==0?1:0,oe==0?1:2,oe==1?Hn:qn,oe==1?dn:Xt,yn(ct.width*on,3),ct.stroke(r,V),ct.dash,ct.cap)}at("drawAxes")}function po(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(d==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Wo=!1,fs=!1,Bo=[];function Ta(){fs=!1;for(let V=0;V<Bo.length;V++)at(...Bo[V]);Bo.length=0}function $o(){Wo||(mS(Ma),Wo=!0)}function Be(V,X=!1){Wo=!0,fs=X,V(r),Ma(),X&&Bo.length>0&&queueMicrotask(Ta)}r.batch=Be;function Ma(){if(Hr&&(So(),Hr=!1),ei&&(ti(),ei=!1),Jr){if(_n(c,da,Nt),_n(c,Ja,tn),_n(c,Za,bt),_n(c,Qa,qe),_n(i,da,Nt),_n(i,Ja,tn),_n(i,Za,bt),_n(i,Qa,qe),_n(u,Za,ir),_n(u,Qa,Or),s.width=mr(ir*on),s.height=mr(Or*on),M.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ee=ge%2==1;_n(V,Ee?"left":"top",oe-xe),_n(V,Ee?"width":"height",ie),_n(V,Ee?"top":"left",Ee?tn:Nt),_n(V,Ee?"height":"width",Ee?qe:bt),lh(V,Rs)}else $i(V,Rs)}),Gn=Tr=wn=jr=as=js=Us=ls=uo=null,wr=1,W(!0),Nt!=Bn||tn!=Ar||bt!=vr||qe!=bn){po(!1);let V=bt/vr,X=qe/bn;if(se&&!Ii&&ne.left>=0){ne.left*=V,ne.top*=X,Ri&&bo(Ri,mr(ne.left),0,bt,qe),or&&bo(or,0,mr(ne.top),bt,qe);for(let ie=0;ie<Ln.length;ie++){let oe=Ln[ie];oe!=null&&(Sr[ie]*=V,wi[ie]*=X,bo(oe,zi(Sr[ie]),zi(wi[ie]),bt,qe))}}if(wt.show&&!gi&&wt.left>=0&&wt.width>0){wt.left*=V,wt.width*=V,wt.top*=X,wt.height*=X;for(let ie in Y)_n(ri,ie,wt[ie])}Bn=Nt,Ar=tn,vr=bt,bn=qe}at("setSize"),Jr=!1}ir>0&&Or>0&&(a.clearRect(0,0,s.width,s.height),at("drawClear"),D.forEach(V=>V()),at("draw")),wt.show&&gi&&(gn(wt),gi=!1),se&&Ii&&(S(null,!0,!1),Ii=!1),he.show&&he.live&&Kn&&(y(),Kn=!1),h||(h=!0,r.status=1,at("ready")),Vt=!1,Wo=!1}r.redraw=(V,X)=>{ei=X||!1,V!==!1?ur(C,H.min,H.max):$o()};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=oo(X.min,e[0]),X.max=oo(X.max,e[0]),X.min==X.max&&X.max++),A[V]=X,Hr=!0,$o()}}r.setScale=Ne;let zn,Ho,Ri,or,Ea,zo,Vi,To,an,nn,ln,qt,qi=!1;const Yn=ne.drag;let Ve=Yn.x,An=Yn.y;se&&(ne.x&&(zn=Hi(BA,i)),ne.y&&(Ho=Hi(HA,i)),H.ori==0?(Ri=zn,or=Ho):(Ri=Ho,or=zn),ln=ne.left,qt=ne.top);const wt=r.select=cr({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),ri=wt.show?Hi(WA,wt.over?i:c):null;function gn(V,X){if(wt.show){for(let ie in V)wt[ie]=V[ie],ie in Y&&_n(ri,ie,V[ie]);X!==!1&&at("setSelect")}}r.setSelect=gn;function En(V){if(x[V].show)le&&lh(Me[V],Rs);else if(le&&$i(Me[V],Rs),se){let X=Mn?Ln[0]:Ln[V];X!=null&&bo(X,-10,-10,bt,qe)}}function ur(V,X,ie){Ne(V,{min:X,max:ie})}function ii(V,X,ie,oe){X.focus!=null&&Mr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,En(xe),d==2?(ur(ge.facets[0].scale,null,null),ur(ge.facets[1].scale,null,null)):ur(ge.scale,null,null),$o())}),ie!==!1&&at("setSeries",V,X),oe&&Mt("setSeries",r,V,X)}r.setSeries=ii;function Ki(V,X){cr(k[V],X)}function Xn(V,X){V.fill=Ut(V.fill||null),V.dir=en(V.dir,-1),X=X??k.length,k.splice(X,0,V)}function Ci(V){V==null?k.length=0:k.splice(V,1)}r.addBand=Xn,r.setBand=Ki,r.delBand=Ci;function gs(V,X){x[V].alpha=X,se&&Ln[V]!=null&&(Ln[V].style.opacity=X),le&&Me[V]&&(Me[V].style.opacity=X)}let Zn,Li,Oi;const Gi={focus:!0};function Mr(V){if(V!=Oi){let X=V==null,ie=yr.alpha!=1;x.forEach((oe,ge)=>{if(d==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&gs(ge,xe?1:yr.alpha)}}),Oi=V,ie&&$o()}}le&&bi&&fn(am,me,V=>{ne._lock||(yi(V),Oi!=null&&ii(null,Gi,!0,pt.setSeries))});function Er(V,X,ie){let oe=_[X];ie&&(V=V/on-(oe.ori==1?tn:Nt));let ge=bt;oe.ori==1&&(ge=qe,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ee=oe._max,We=V/ge,He=xe+(Ee-xe)*We,Ye=oe.distr;return Ye==3?ga(10,He):Ye==4?iS(He,oe.asinh):Ye==100?oe.bwd(He):He}function Nr(V,X){let ie=Er(V,C,X);return oo(ie,e[0],ze,Fe)}r.valToIdx=V=>oo(V,e[0]),r.posToIdx=Nr,r.posToVal=Er,r.valToPos=(V,X,ie)=>_[X].ori==0?p(V,_[X],ie?Xt:bt,ie?qn:0):g(V,_[X],ie?dn:qe,ie?Hn:0),r.setCursor=(V,X,ie)=>{ln=V.left,qt=V.top,S(null,X,ie)};function Gs(V,X){_n(ri,da,wt.left=V),_n(ri,Za,wt.width=X)}function Dr(V,X){_n(ri,Ja,wt.top=V),_n(ri,Qa,wt.height=X)}let Ur=H.ori==0?Gs:Dr,Ni=H.ori==1?Gs:Dr;function Di(){if(le&&he.live)for(let V=d==2?1:0;V<x.length;V++){if(V==0&&ht)continue;let X=he.values[V],ie=0;for(let oe in X)Je[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):lS(V.idx)||J.fill(V.idx),he.idx=J[0]),le&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||d==1&&!ht)&&T(ie,J[ie]);Di()}Kn=!1,X!==!1&&at("setLegend")}r.setLegend=y;function T(V,X){let ie=x[V],oe=V==0&&P==2?Zt:e[V],ge;ht?ge=ie.values(r,V,X)??st:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?st:{_:ge}),he.values[V]=ge}function S(V,X,ie){an=ln,nn=qt,[ln,qt]=ne.move(r,ln,qt),ne.left=ln,ne.top=qt,se&&(Ri&&bo(Ri,mr(ln),0,bt,qe),or&&bo(or,0,mr(qt),bt,qe));let oe,ge=ze>Fe;Zn=vn,Li=null;let xe=H.ori==0?bt:qe,Ee=H.ori==1?bt:qe;if(ln<0||ce==0||ge){oe=ne.idx=null;for(let We=0;We<x.length;We++){let He=Ln[We];He!=null&&bo(He,-10,-10,bt,qe)}bi&&ii(null,Gi,!0,V==null&&pt.setSeries),he.live&&(J.fill(oe),Kn=!0)}else{let We,He,Ye;d==1&&(We=H.ori==0?ln:qt,He=Er(We,C),oe=ne.idx=oo(He,e[0],ze,Fe),Ye=O(e[0][oe],H,xe,0));let Qe=-10,tt=-10,xt=0,Wt=0,At=!0,Ft="",gt="";for(let ct=d==2?1:0;ct<x.length;ct++){let xn=x[ct],Dn=J[ct],dr=Dn==null?null:d==1?e[ct][Dn]:e[ct][1][Dn],Gt=ne.dataIdx(r,ct,oe,He),fe=Gt==null?null:d==1?e[ct][Gt]:e[ct][1][Gt];if(Kn=Kn||fe!=dr||Gt!=Dn,J[ct]=Gt,ct>0&&xn.show){let $e=Gt==null?-10:Gt==oe?Ye:O(d==1?e[0][Gt]:e[ct][0][Gt],H,xe,0),Ce=fe==null?-10:$(fe,d==1?_[xn.scale]:_[xn.facets[1].scale],Ee,0);if(bi&&fe!=null){let Ke=H.ori==1?ln:qt,ft=gr(yr.dist(r,ct,Gt,Ce,Ke));if(ft<Zn){let Et=yr.bias;if(Et!=0){let Jt=Er(Ke,xn.scale),Lt=fe>=0?1:-1,oi=Jt>=0?1:-1;oi==Lt&&(oi==1?Et==1?fe>=Jt:fe<=Jt:Et==1?fe<=Jt:fe>=Jt)&&(Zn=ft,Li=ct)}else Zn=ft,Li=ct}}if(Kn||Mn){let Ke,ft;H.ori==0?(Ke=$e,ft=Ce):(Ke=Ce,ft=$e);let Et,Jt,Lt,oi,Yi,mn,Rr=!0,jo=Tn.bbox;if(jo!=null){Rr=!1;let Qn=jo(r,ct);Lt=Qn.left,oi=Qn.top,Et=Qn.width,Jt=Qn.height}else Lt=Ke,oi=ft,Et=Jt=Tn.size(r,ct);if(mn=Tn.fill(r,ct),Yi=Tn.stroke(r,ct),Mn)ct==Li&&Zn<=yr.prox&&(Qe=Lt,tt=oi,xt=Et,Wt=Jt,At=Rr,Ft=mn,gt=Yi);else{let Qn=Ln[ct];Qn!=null&&(Sr[ct]=Lt,wi[ct]=oi,fm(Qn,Et,Jt,Rr),dm(Qn,mn,Yi),bo(Qn,zi(Lt),zi(oi),bt,qe))}}}}if(Mn){let ct=yr.prox,xn=Oi==null?Zn<=ct:Zn>ct||Li!=Oi;if(Kn||xn){let Dn=Ln[0];Dn!=null&&(Sr[0]=Qe,wi[0]=tt,fm(Dn,xt,Wt,At),dm(Dn,Ft,gt),bo(Dn,zi(Qe),zi(tt),bt,qe))}}}if(wt.show&&qi)if(V!=null){let[We,He]=pt.scales,[Ye,Qe]=pt.match,[tt,xt]=V.cursor.sync.scales,Wt=V.cursor.drag;if(Ve=Wt._x,An=Wt._y,Ve||An){let{left:At,top:Ft,width:gt,height:ct}=V.select,xn=V.scales[tt].ori,Dn=V.posToVal,dr,Gt,fe,$e,Ce,Ke=We!=null&&Ye(We,tt),ft=He!=null&&Qe(He,xt);Ke&&Ve?(xn==0?(dr=At,Gt=gt):(dr=Ft,Gt=ct),fe=_[We],$e=O(Dn(dr,tt),fe,xe,0),Ce=O(Dn(dr+Gt,tt),fe,xe,0),Ur(so($e,Ce),gr(Ce-$e))):Ur(0,xe),ft&&An?(xn==1?(dr=At,Gt=gt):(dr=Ft,Gt=ct),fe=_[He],$e=$(Dn(dr,xt),fe,Ee,0),Ce=$(Dn(dr+Gt,xt),fe,Ee,0),Ni(so($e,Ce),gr(Ce-$e))):Ni(0,Ee)}else Z()}else{let We=gr(an-Ea),He=gr(nn-zo);if(H.ori==1){let xt=We;We=He,He=xt}Ve=Yn.x&&We>=Yn.dist,An=Yn.y&&He>=Yn.dist;let Ye=Yn.uni;Ye!=null?Ve&&An&&(Ve=We>=Ye,An=He>=Ye,!Ve&&!An&&(He>We?An=!0:Ve=!0)):Yn.x&&Yn.y&&(Ve||An)&&(Ve=An=!0);let Qe,tt;Ve&&(H.ori==0?(Qe=Vi,tt=ln):(Qe=To,tt=qt),Ur(so(Qe,tt),gr(tt-Qe)),An||Ni(0,Ee)),An&&(H.ori==1?(Qe=Vi,tt=ln):(Qe=To,tt=qt),Ni(so(Qe,tt),gr(tt-Qe)),Ve||Ur(0,xe)),!Ve&&!An&&(Ur(0,0),Ni(0,0))}if(Yn._x=Ve,Yn._y=An,V==null){if(ie){if(On!=null){let[We,He]=pt.scales;pt.values[0]=We!=null?Er(H.ori==0?ln:qt,We):null,pt.values[1]=He!=null?Er(H.ori==1?ln:qt,He):null}Mt(rh,r,ln,qt,bt,qe,oe)}if(bi){let We=ie&&pt.setSeries,He=yr.prox;Oi==null?Zn<=He&&ii(Li,Gi,!0,We):Zn>He?ii(null,Gi,!0,We):Li!=Oi&&ii(Li,Gi,!0,We)}}Kn&&(he.idx=oe,y()),X!==!1&&at("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(),at("syncRect",F))}function z(V,X,ie,oe,ge,xe,Ee){ne._lock||qi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,xe,Ee,!1,V!=null),V!=null?S(null,!0,!0):S(X,!0,!1))}function q(V,X,ie,oe,ge,xe,Ee,We,He){if(F==null&&W(!1),yi(V),V!=null)ie=V.clientX-F.left,oe=V.clientY-F.top;else{if(ie<0||oe<0){ln=-10,qt=-10;return}let[Ye,Qe]=pt.scales,tt=X.cursor.sync,[xt,Wt]=tt.values,[At,Ft]=tt.scales,[gt,ct]=pt.match,xn=X.axes[0].side%2==1,Dn=H.ori==0?bt:qe,dr=H.ori==1?bt:qe,Gt=xn?xe:ge,fe=xn?ge:xe,$e=xn?oe:ie,Ce=xn?ie:oe;if(At!=null?ie=gt(Ye,At)?b(xt,_[Ye],Dn,0):-10:ie=Dn*($e/Gt),Ft!=null?oe=ct(Qe,Ft)?b(Wt,_[Qe],dr,0):-10:oe=dr*(Ce/fe),H.ori==1){let Ke=ie;ie=oe,oe=Ke}}He&&(X==null||X.cursor.event.type==rh)&&((ie<=1||ie>=bt-1)&&(ie=Ns(ie,bt)),(oe<=1||oe>=qe-1)&&(oe=Ns(oe,qe))),We?(Ea=ie,zo=oe,[Vi,To]=ne.move(r,ie,oe)):(ln=ie,qt=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){gn(Y,!1)}let re,ae,be,ke;function ve(V,X,ie,oe,ge,xe,Ee){qi=!0,Ve=An=Yn._x=Yn._y=!1,q(V,X,ie,oe,ge,xe,Ee,!0,!1),V!=null&&(fn(ih,sh,we,!1),Mt(om,r,Vi,To,bt,qe,null));let{left:We,top:He,width:Ye,height:Qe}=wt;re=We,ae=He,be=Ye,ke=Qe}function we(V,X,ie,oe,ge,xe,Ee){qi=Yn._x=Yn._y=!1,q(V,X,ie,oe,ge,xe,Ee,!1,!0);let{left:We,top:He,width:Ye,height:Qe}=wt,tt=Ye>0||Qe>0,xt=re!=We||ae!=He||be!=Ye||ke!=Qe;if(tt&&xt&&gn(wt),Yn.setScale&&tt&&xt){let Wt=We,At=Ye,Ft=He,gt=Qe;if(H.ori==1&&(Wt=He,At=Qe,Ft=We,gt=Ye),Ve&&ur(C,Er(Wt,C),Er(Wt+At,C)),An)for(let ct in _){let xn=_[ct];ct!=C&&xn.from==null&&xn.min!=vn&&ur(ct,Er(Ft+gt,ct),Er(Ft,ct))}Z()}else ne.lock&&(ne._lock=!ne._lock,S(X,!0,V!=null));V!=null&&(Wn(ih,sh),Mt(ih,r,ln,qt,bt,qe,null))}function Oe(V,X,ie,oe,ge,xe,Ee){if(ne._lock)return;yi(V);let We=qi;if(qi){let He=!0,Ye=!0,Qe=10,tt,xt;H.ori==0?(tt=Ve,xt=An):(tt=An,xt=Ve),tt&&xt&&(He=ln<=Qe||ln>=bt-Qe,Ye=qt<=Qe||qt>=qe-Qe),tt&&He&&(ln=ln<Vi?0:bt),xt&&Ye&&(qt=qt<To?0:qe),S(null,!0,!0),qi=!1}ln=-10,qt=-10,J.fill(null),S(null,!0,!0),We&&(qi=We)}function Le(V,X,ie,oe,ge,xe,Ee){ne._lock||(yi(V),br(),Z(),V!=null&&Mt(lm,r,ln,qt,bt,qe,null))}function Ge(){M.forEach(A_),co(r.width,r.height,!0)}Ls(tc,fa,Ge);const ut={};ut.mousedown=ve,ut.mousemove=z,ut.mouseup=we,ut.dblclick=Le,ut.setSeries=(V,X,ie,oe)=>{let ge=pt.match[2];ie=ge(r,X,ie),ie!=-1&&ii(ie,oe,!0,!1)},se&&(fn(om,i,ve),fn(rh,i,z),fn(sm,i,V=>{yi(V),W(!1)}),fn(am,i,Oe),fn(lm,i,Le),Eh.add(r),r.syncRect=W);const et=r.hooks=n.hooks||{};function at(V,X,ie){fs?Bo.push([V,X,ie]):V in et&&et[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)et[X]=(et[X]||[]).concat(V.hooks[X])});const Sn=(V,X,ie)=>ie,pt=cr({key:null,setSeries:!1,filters:{pub:_m,sub:_m},scales:[C,x[1]?x[1].scale:null],match:[$m,$m,Sn],values:[null,null]},ne.sync);pt.match.length==2&&pt.match.push(Sn),ne.sync=pt;const On=pt.key,kt=hv(On);function Mt(V,X,ie,oe,ge,xe,Ee){pt.filters.pub(V,X,ie,oe,ge,xe,Ee)&&kt.pub(V,X,ie,oe,ge,xe,Ee)}kt.sub(r);function hr(V,X,ie,oe,ge,xe,Ee){pt.filters.sub(V,X,ie,oe,ge,xe,Ee)&&ut[V](null,X,ie,oe,ge,xe,Ee)}r.pub=hr;function Ir(){kt.unsub(r),Eh.delete(r),kr.clear(),uh(tc,fa,Ge),f.remove(),me==null||me.remove(),at("destroy")}r.destroy=Ir;function Nn(){at("init",n,e),$r(e||n.data,!1),A[C]?Ne(C,A[C]):br(),gi=wt.show&&(wt.width>0||wt.height>0),Ii=Kn=!0,co(n.width,n.height)}return x.forEach(Ao),M.forEach(zr),t?t instanceof HTMLElement?(t.appendChild(f),Nn()):t(r,Nn):Nn(),r}Wr.assign=cr,Wr.fmtNum=ph,Wr.rangeNum=oc,Wr.rangeLog=ic,Wr.rangeAsinh=hh,Wr.orient=Fs,Wr.pxRatio=on,Wr.join=gS,Wr.fmtDate=vh,Wr.tzDate=_S,Wr.sync=hv;{Wr.addGap=l_,Wr.clipGaps=dc;let n=Wr.paths={points:yv};n.linear=wv,n.stepped=h_,n.bars=d_,n.spline=f_}var Tv,Mv;function S_(){return Mv||(Mv=1,Tv=function(n,e,t,r,d){var p,g;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(d===void 0)d=n.length-1;else if(d=d|0,d<r||d>=n.length)throw new RangeError("invalid upper bound");for(;r<=d;)if(p=r+(d-r>>>1),g=+t(n[p],e,p,n),g<0)r=p+1;else if(g>0)d=p-1;else return p;return~r}),Tv}var __=S_();const hP=pr("e",Fl(__));var Rh,Ev;function $_(){if(Ev)return Rh;Ev=1;function n(e,t,r){var d=-1,p=e.length;t<0&&(t=-t>p?0:p+t),r=r>p?p:r,r<0&&(r+=p),p=t>r?0:r-t>>>0,t>>>=0;for(var g=Array(p);++d<p;)g[d]=e[d+t];return g}return Rh=n,Rh}var Lh,Iv;function T_(){if(Iv)return Lh;Iv=1;var n=$_();function e(t,r,d){var p=t.length;return d=d===void 0?p:d,!r&&d>=p?t:n(t,r,d)}return Lh=e,Lh}var Oh,Rv;function Lv(){if(Rv)return Oh;Rv=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,p="\\ufe0e\\ufe0f",g="\\u200d",b=RegExp("["+g+n+d+p+"]");function h(f){return b.test(f)}return Oh=h,Oh}var Nh,Ov;function M_(){if(Ov)return Nh;Ov=1;function n(e){return e.split("")}return Nh=n,Nh}var Dh,Nv;function E_(){if(Nv)return Dh;Nv=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,p="\\ufe0e\\ufe0f",g="["+n+"]",b="["+d+"]",h="\\ud83c[\\udffb-\\udfff]",f="(?:"+b+"|"+h+")",s="[^"+n+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=f+"?",l="["+p+"]?",m="(?:"+c+"(?:"+[s,a,u].join("|")+")"+l+i+")*",w=l+i+m,x="(?:"+[s+b+"?",b,a,u,g].join("|")+")",M=RegExp(h+"(?="+h+")|"+x+w,"g");function _(k){return k.match(M)||[]}return Dh=_,Dh}var Fh,Dv;function I_(){if(Dv)return Fh;Dv=1;var n=M_(),e=Lv(),t=E_();function r(d){return e(d)?t(d):n(d)}return Fh=r,Fh}var Ph,Fv;function R_(){if(Fv)return Ph;Fv=1;var n=typeof ns=="object"&&ns&&ns.Object===Object&&ns;return Ph=n,Ph}var Wh,Pv;function L_(){if(Pv)return Wh;Pv=1;var n=R_(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Wh=t,Wh}var Bh,Wv;function Hh(){if(Wv)return Bh;Wv=1;var n=L_(),e=n.Symbol;return Bh=e,Bh}var zh,Bv;function O_(){if(Bv)return zh;Bv=1;function n(e,t){for(var r=-1,d=e==null?0:e.length,p=Array(d);++r<d;)p[r]=t(e[r],r,e);return p}return zh=n,zh}var jh,Hv;function N_(){if(Hv)return jh;Hv=1;var n=Array.isArray;return jh=n,jh}var Uh,zv;function D_(){if(zv)return Uh;zv=1;var n=Hh(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,d=n?n.toStringTag:void 0;function p(g){var b=t.call(g,d),h=g[d];try{g[d]=void 0;var f=!0}catch{}var s=r.call(g);return f&&(b?g[d]=h:delete g[d]),s}return Uh=p,Uh}var Vh,jv;function F_(){if(jv)return Vh;jv=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return Vh=t,Vh}var qh,Uv;function P_(){if(Uv)return qh;Uv=1;var n=Hh(),e=D_(),t=F_(),r="[object Null]",d="[object Undefined]",p=n?n.toStringTag:void 0;function g(b){return b==null?b===void 0?d:r:p&&p in Object(b)?e(b):t(b)}return qh=g,qh}var Kh,Vv;function W_(){if(Vv)return Kh;Vv=1;function n(e){return e!=null&&typeof e=="object"}return Kh=n,Kh}var Gh,qv;function B_(){if(qv)return Gh;qv=1;var n=P_(),e=W_(),t="[object Symbol]";function r(d){return typeof d=="symbol"||e(d)&&n(d)==t}return Gh=r,Gh}var Yh,Kv;function H_(){if(Kv)return Yh;Kv=1;var n=Hh(),e=O_(),t=N_(),r=B_(),d=n?n.prototype:void 0,p=d?d.toString:void 0;function g(b){if(typeof b=="string")return b;if(t(b))return e(b,g)+"";if(r(b))return p?p.call(b):"";var h=b+"";return h=="0"&&1/b==-1/0?"-0":h}return Yh=g,Yh}var Xh,Gv;function mc(){if(Gv)return Xh;Gv=1;var n=H_();function e(t){return t==null?"":n(t)}return Xh=e,Xh}var Zh,Yv;function z_(){if(Yv)return Zh;Yv=1;var n=T_(),e=Lv(),t=I_(),r=mc();function d(p){return function(g){g=r(g);var b=e(g)?t(g):void 0,h=b?b[0]:g.charAt(0),f=b?n(b,1).join(""):g.slice(1);return h[p]()+f}}return Zh=d,Zh}var Qh,Xv;function Zv(){if(Xv)return Qh;Xv=1;var n=z_(),e=n("toUpperCase");return Qh=e,Qh}var j_=Zv();const U_=Fl(j_);var Jh,Qv;function V_(){if(Qv)return Jh;Qv=1;var n=mc(),e=Zv();function t(r){return e(n(r).toLowerCase())}return Jh=t,Jh}var ed,Jv;function q_(){if(Jv)return ed;Jv=1;function n(e,t,r,d){var p=-1,g=e==null?0:e.length;for(d&&g&&(r=e[++p]);++p<g;)r=t(r,e[p],p,e);return r}return ed=n,ed}var td,ey;function K_(){if(ey)return td;ey=1;function n(e){return function(t){return e==null?void 0:e[t]}}return td=n,td}var nd,ty;function G_(){if(ty)return nd;ty=1;var n=K_(),e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},t=n(e);return nd=t,nd}var rd,ny;function Y_(){if(ny)return rd;ny=1;var n=G_(),e=mc(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",d="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",g=r+d+p,b="["+g+"]",h=RegExp(b,"g");function f(s){return s=e(s),s&&s.replace(t,n).replace(h,"")}return rd=f,rd}var id,ry;function X_(){if(ry)return id;ry=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(t){return t.match(n)||[]}return id=e,id}var od,iy;function Z_(){if(iy)return od;iy=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(t){return n.test(t)}return od=e,od}var sd,oy;function Q_(){if(oy)return sd;oy=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,p="\\u2700-\\u27bf",g="a-z\\xdf-\\xf6\\xf8-\\xff",b="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",c=b+h+f+s,i="['’]",l="["+c+"]",m="["+d+"]",w="\\d+",x="["+p+"]",M="["+g+"]",_="[^"+n+c+w+p+g+a+"]",k="\\ud83c[\\udffb-\\udfff]",C="(?:"+m+"|"+k+")",L="[^"+n+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+a+"]",H="\\u200d",P="(?:"+M+"|"+_+")",O="(?:"+I+"|"+_+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+H+"(?:"+[L,D,R].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,R].join("|")+")"+J,ne=RegExp([I+"?"+M+"+"+$+"(?="+[l,I,"$"].join("|")+")",O+"+"+A+"(?="+[l,I+P,"$"].join("|")+")",I+"?"+P+"+"+$,I+"+"+A,Q,K,w,he].join("|"),"g");function le(se){return se.match(ne)||[]}return sd=le,sd}var ad,sy;function J_(){if(sy)return ad;sy=1;var n=X_(),e=Z_(),t=mc(),r=Q_();function d(p,g,b){return p=t(p),g=b?void 0:g,g===void 0?e(p)?r(p):n(p):p.match(g)||[]}return ad=d,ad}var ld,ay;function e$(){if(ay)return ld;ay=1;var n=q_(),e=Y_(),t=J_(),r="['’]",d=RegExp(r,"g");function p(g){return function(b){return n(t(e(b).replace(d,"")),g,"")}}return ld=p,ld}var cd,ly;function t$(){if(ly)return cd;ly=1;var n=V_(),e=e$(),t=e(function(r,d,p){return d=d.toLowerCase(),r+(p?n(d):d)});return cd=t,cd}var n$=t$();const r$=Fl(n$),i$=Object.assign({"./ArrayWidget.vue":()=>rt(()=>nt.import("./ArrayWidget-DQRQ7dPa-ec60f1a7547ad6b00d69.js"),void 0),"./ArrayplotWidget.vue":()=>rt(()=>nt.import("./ArrayplotWidget-BeSfz3MR-62c6314f2795ec59c2c3.js"),void 0),"./BlockWidget.vue":()=>rt(()=>nt.import("./BlockWidget-DSFKrUxl-40a0bfee90429f0fbd04.js"),void 0),"./ButtonWidget.vue":()=>rt(()=>nt.import("./ButtonWidget-CFbjdxSr-3eb417f150aad49159da.js"),void 0),"./CanvasWidget.vue":()=>rt(()=>nt.import("./CanvasWidget-BloYxuKE-bd7432f755c4dd08aadc.js"),void 0),"./CanvasdotWidget.vue":()=>rt(()=>nt.import("./CanvasdotWidget-CZxUOPRd-2c149df34b30a8c42813.js"),void 0),"./CanvasimageWidget.vue":()=>rt(()=>nt.import("./CanvasimageWidget-ULQq3nqZ-68511568bd9671b1395a.js"),void 0),"./CanvasimagevalueWidget.vue":()=>rt(()=>nt.import("./CanvasimagevalueWidget-jFCVXYhi-69a98787a537716d1eca.js"),void 0),"./CanvaslabelWidget.vue":()=>rt(()=>nt.import("./CanvaslabelWidget-DQhBI1vZ-5c678abaccd36a449807.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>rt(()=>nt.import("./CanvaslabelvalueWidget-C4REgztL-c7278cf0b63aa2576e5e.js"),void 0),"./CanvaslineWidget.vue":()=>rt(()=>nt.import("./CanvaslineWidget-S4PCEvZM-58f0c96eae5b75e0d714.js"),void 0),"./CanvaslinevalueWidget.vue":()=>rt(()=>nt.import("./CanvaslinevalueWidget-597khOSA-8ec57bb2832d2ccf4c7f.js"),void 0),"./CheckbuttonWidget.vue":()=>rt(()=>nt.import("./CheckbuttonWidget-BcblKat3-c29e0b0e519f68962e5e.js"),void 0),"./ComboboxWidget.vue":()=>rt(()=>nt.import("./ComboboxWidget-BMcHS4g5-991790211f0df154fa60.js"),void 0),"./DateWidget.vue":()=>rt(()=>nt.import("./DateWidget-BpnMzSBn-568b8523461c5b29d3b6.js"),void 0),"./DynamicWidget.vue":()=>rt(()=>nt.import("./DynamicWidget-DHL7pbgW-ddb50949e471ca798597.js"),void 0),"./FormatvalueWidget.vue":()=>rt(()=>nt.import("./FormatvalueWidget-Cm-HmAmw-cc32c9f0e3a6440dc3f7.js"),void 0),"./HorizontalWidget.vue":()=>rt(()=>nt.import("./HorizontalWidget-NcXIXxh7-ac4430c2bd179fac7e53.js"),void 0),"./HorizontalboxWidget.vue":()=>rt(()=>nt.import("./HorizontalboxWidget-CW9XX4uH-5b9955591fadf92383d4.js"),void 0),"./HorizontallineWidget.vue":()=>rt(()=>nt.import("./HorizontallineWidget-Cu2dDt7k-ca5bfd2bc99611a7daf6.js"),void 0),"./IframeWidget.vue":()=>rt(()=>nt.import("./IframeWidget-BBU3MkSq-3bd357450464e91b6e8a.js"),void 0),"./ImageviewerWidget.vue":()=>rt(()=>nt.import("./ImageviewerWidget-UByjeO63-6a1aa341aad3f5e3a1fa.js"),void 0),"./LabelWidget.vue":()=>rt(()=>nt.import("./LabelWidget-BsOpolUL-480fcf63f4a393ec665b.js"),void 0),"./LabelledWidget.vue":()=>rt(()=>nt.import("./LabelledWidget-DVOGpgZ--be6e8ae8ae73a9e8ac0e.js"),void 0),"./LabelprogressbarWidget.vue":()=>rt(()=>nt.import("./LabelprogressbarWidget-BeE9fDs6-4c6a74a14a60af91654c.js"),void 0),"./LabelsparklineWidget.vue":()=>rt(()=>nt.import("./LabelsparklineWidget-Bj7trKML-366bdc6967968c3df270.js"),void 0),"./LabelvalueWidget.vue":()=>rt(()=>nt.import("./LabelvalueWidget-Dwqsh5o2-eb6928f5259e5721a1cc.js"),void 0),"./LabelvaluedescWidget.vue":()=>rt(()=>nt.import("./LabelvaluedescWidget-Cfu2vuja-9ff7549a39dfd631a158.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>rt(()=>nt.import("./LabelvaluelimitsbarWidget-DYV68AJ_-14ed76ef50306d433241.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>rt(()=>nt.import("./LabelvaluelimitscolumnWidget-CtaoTixt-8a607f68160af332179e.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>rt(()=>nt.import("./LabelvaluerangebarWidget-3EaUB6E6-9d23a3bdfcc0902cfeae.js"),void 0),"./LedWidget.vue":()=>rt(()=>nt.import("./LedWidget-Gi6GXtrW-dae81febb3ae6042fe79.js"),void 0),"./LimitsbarWidget.vue":()=>rt(()=>nt.import("./LimitsbarWidget-BTZQY9XQ-8c4fb603d49357ccf95a.js"),void 0),"./LimitscolorWidget.vue":()=>rt(()=>nt.import("./LimitscolorWidget-CFnmvlrA-37fbe4cc91eef4c5ecbe.js"),void 0),"./LimitscolumnWidget.vue":()=>rt(()=>nt.import("./LimitscolumnWidget-DSsz36tT-6fcdc5688973d90c5fec.js"),void 0),"./LinegraphWidget.vue":()=>rt(()=>nt.import("./LinegraphWidget-CeBijgDo-2d1fe80cbc5b9b60e16e.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>rt(()=>nt.import("./MatrixbycolumnsWidget-DX9uhjAv-4b1ae2738aef8ffa3842.js"),void 0),"./ProgressbarWidget.vue":()=>rt(()=>nt.import("./ProgressbarWidget-DJepvOip-8ff70f5f860011c00bc0.js"),void 0),"./RadiobuttonWidget.vue":()=>rt(()=>nt.import("./RadiobuttonWidget-4e8ROIfg-8f6efea6ff9b37a4afc4.js"),void 0),"./RadiogroupWidget.vue":()=>rt(()=>nt.import("./RadiogroupWidget-CUucj6aT-4e1289cf1681d9dd871b.js"),void 0),"./RangebarWidget.vue":()=>rt(()=>nt.import("./RangebarWidget-Bu4rqlrx-b13f4d05894e17b35f93.js"),void 0),"./RollupWidget.vue":()=>rt(()=>nt.import("./RollupWidget-ByLvEEau-cb3a4775a6f72a2dcd9e.js"),void 0),"./ScrollwindowWidget.vue":()=>rt(()=>nt.import("./ScrollwindowWidget-CXJ9QGN1-376ce5b224c4ca4390cf.js"),void 0),"./SignalWidget.vue":()=>rt(()=>nt.import("./SignalWidget-qvL2YZJA-d4926d5b69e8d205ea30.js"),void 0),"./SpacerWidget.vue":()=>rt(()=>nt.import("./SpacerWidget-CaWx41K7-ee222bd1763dfcd9499b.js"),void 0),"./SparklineWidget.vue":()=>rt(()=>nt.import("./SparklineWidget-BkNSRypJ-578f0450fc9c2ec01ee6.js"),void 0),"./TabbookWidget.vue":()=>rt(()=>nt.import("./TabbookWidget-MsrRG1vn-f49576da2086555d3772.js"),void 0),"./TextboxWidget.vue":()=>rt(()=>nt.import("./TextboxWidget-DbwpPVGB-965cd84f13108a2dfe6b.js"),void 0),"./TextfieldWidget.vue":()=>rt(()=>nt.import("./TextfieldWidget-DzMlTMYW-44d5799795c0663b983e.js"),void 0),"./TimeWidget.vue":()=>rt(()=>nt.import("./TimeWidget-BHybAfg8-2ef3652afaab371b26f8.js"),void 0),"./TitleWidget.vue":()=>rt(()=>nt.import("./TitleWidget-DL_sE5YE-2e10d96d64ba14f84323.js"),void 0),"./ValueWidget.vue":()=>rt(()=>nt.import("./ValueWidget-CGT0LV_n-f28fb61ddd02224a739a.js"),void 0),"./ValuelimitsbarWidget.vue":()=>rt(()=>nt.import("./ValuelimitsbarWidget-CmpyPO-1-417db70aadb1a08ea6f3.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>rt(()=>nt.import("./ValuelimitscolumnWidget-jzxrQd-f-1f0d66b078567bf94726.js"),void 0),"./ValuerangebarWidget.vue":()=>rt(()=>nt.import("./ValuerangebarWidget-C8ckuAeh-a0f589394f5fdcd0125c.js"),void 0),"./VerticalWidget.vue":()=>rt(()=>nt.import("./VerticalWidget-qN82km_m-8cc1d779b219f6f880d8.js"),void 0),"./VerticalboxWidget.vue":()=>rt(()=>nt.import("./VerticalboxWidget-CiJZDlHJ-445ff2aa6dd1d842fee3.js"),void 0)}),o$=Object.entries(i$).reduce((n,[e,t])=>{e=e.split("/").pop();const r=U_(r$(e.replace(/\.\w+$/,"")));return{...n,[r]:qp(t)}},{}),dP=pr("a",{components:o$}),cy="openc3-ace-vim-mode-enabled",ud="ace/keyboard/vim",uy="openc3-ace-default-scripting-language",vc=pr("Z",{isVimModeEnabled(){return localStorage.getItem(cy)==="true"},setVimMode(n){localStorage.setItem(cy,JSON.stringify(!!n))},toggleVimMode(n){this.isVimModeEnabled()?(n.setKeyboardHandler(null),this.setVimMode(!1)):(n.setKeyboardHandler(ud),this.setVimMode(!0)),n.focus()},applyVimModeIfEnabled(n,{saveFn:e}={}){this.isVimModeEnabled()?(n.setKeyboardHandler(ud),ace.config.loadModule(ud,t=>{t.CodeMirror.Vim.defineEx("write","w",r=>{typeof e=="function"?e():r.ace.execCommand("save")})})):n.setKeyboardHandler(null)},getDefaultScriptingLanguage(){return localStorage.getItem(uy)||"python"},setDefaultScriptingLanguage(n){(n==="ruby"||n==="python")&&localStorage.setItem(uy,n)}}),s$={__name:"TopBarMenu",props:{menu:{type:Object,required:!0},title:{type:String,required:!0}},emits:["submenu-click"],setup(n,{emit:e}){const t=e,r=Gp(!1);function d(){r.value=!1}function p(g){return g.replaceAll(" ","-").toLowerCase()}return(g,b)=>{const h=Ue("v-icon"),f=Ue("v-btn"),s=Ue("v-divider"),a=Ue("v-list-item-title"),u=Ue("v-list-item"),c=Ue("v-list"),i=Ue("v-menu"),l=Ue("v-radio"),m=Ue("v-list-item-action"),w=Ue("v-radio-group"),x=Ue("v-checkbox");return ot(),jt(i,{modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=M=>r.value=M),"close-on-content-click":!1},{activator:Pe(({props:M})=>[je(f,Ll(M,{variant:"outlined",class:"mx-1 menu-button",text:n.menu.label,"data-test":p(`${n.title} ${n.menu.label}`)}),{append:Pe(()=>[je(h,{class:"menu-button-icon"},{default:Pe(()=>[...b[1]||(b[1]=[Rt(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:Pe(()=>[je(c,null,{default:Pe(()=>[(ot(!0),rn(ci,null,vo(n.menu.items,(M,_)=>(ot(),rn(ci,null,[M.divider?(ot(),jt(s,{key:_+"-divider"})):M.subMenu&&M.subMenu.length>0?(ot(),rn("div",{key:_+"-submenu"},[(ot(),jt(i,{key:_,"open-on-hover":"",location:"right"},{activator:Pe(({props:k})=>[(ot(),jt(u,Ll({ref_for:!0},k,{key:_,disabled:M.disabled}),Au({append:Pe(()=>[je(h,null,{default:Pe(()=>[...b[2]||(b[2]=[Rt(" mdi-chevron-right ",-1)])]),_:1})]),default:Pe(()=>[!M.radio&&!M.checkbox?(ot(),jt(a,{key:0,style:Cs("cursor: pointer;"+(M.disabled?"opacity: 0.2":""))},{default:Pe(()=>[Rt(Cn(M.label),1)]),_:2},1032,["style"])):Kr("",!0)]),_:2},[M.icon?{name:"prepend",fn:Pe(()=>[je(h,{disabled:M.disabled},{default:Pe(()=>[Rt(Cn(M.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:Pe(()=>[je(c,null,{default:Pe(()=>[(ot(!0),rn(ci,null,vo(M.subMenu,(k,C)=>(ot(),jt(u,{key:C,"prepend-icon":k.icon,onClick:L=>t("submenu-click",k)},{default:Pe(()=>[je(a,null,{default:Pe(()=>[Rt(Cn(k.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):M.radioGroup?(ot(),jt(w,{key:_+"-radio-group",class:"ma-0 pa-0",density:"compact","hide-details":"","model-value":M.value,"onUpdate:modelValue":M.command},{default:Pe(()=>[(ot(!0),rn(ci,null,vo(M.choices,(k,C)=>(ot(),jt(u,{key:C+"-choice"},{default:Pe(()=>[je(m,{class:"list-action"},{default:Pe(()=>[je(l,{color:"secondary",label:k.label,value:k.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(ot(),jt(u,{key:_+"-list",disabled:M.disabled,"data-test":p(`${n.title} ${n.menu.label} ${M.label}`),onClick:()=>{M.command(M),M.checkbox||d()}},Au({default:Pe(()=>[M.checkbox?(ot(),jt(m,{key:0,class:"list-action"},{default:Pe(()=>[je(x,{modelValue:M.checked,"onUpdate:modelValue":k=>M.checked=k,label:M.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):Kr("",!0),!M.radio&&!M.checkbox?(ot(),jt(a,{key:1,style:Cs("cursor: pointer;"+(M.disabled?"opacity: 0.2":""))},{default:Pe(()=>[Rt(Cn(M.label),1)]),_:2},1032,["style"])):Kr("",!0)]),_:2},[M.icon?{name:"prepend",fn:Pe(()=>[je(h,{icon:M.icon,disabled:M.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["disabled","data-test","onClick"]))],64))),256))]),_:1})]),_:1},8,["modelValue"])}}},a$={components:{TopBarMenu:s$},props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},mounted(){document.title=this.title},methods:{subMenuClick(n){n.command(n),this.$refs.topmenu[0].isActive=!1}}},l$={class:"app-title mr-2"};function c$(n,e,t,r,d,p){const g=Ue("v-col"),b=Ue("v-row"),h=Ue("TopBarMenu");return ot(),jt(Kp,{to:"#openc3-menu"},[je(b,{"no-gutters":""},{default:Pe(()=>[je(g,{"align-self":"end"},{default:Pe(()=>[Fn("span",l$,Cn(t.title),1)]),_:1})]),_:1}),je(b,{dense:"",class:"flex-nowrap"},{default:Pe(()=>[(ot(!0),rn(ci,null,vo(t.menus,(f,s)=>(ot(),jt(h,{key:s+"-top-menu",ref_for:!0,ref:"topmenu",menu:f,title:t.title,onSubmenuClick:p.subMenuClick},null,8,["menu","title","onSubmenuClick"]))),128))]),_:1})])}const u$=to(a$,[["render",c$],["__scopeId","data-v-b6581c4c"]]);function hy(n,e){return function(){return n.apply(e,arguments)}}const{toString:h$}=Object.prototype,{getPrototypeOf:hd}=Object,{iterator:yc,toStringTag:dy}=Symbol,bc=(n=>e=>{const t=h$.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ao=n=>(n=n.toLowerCase(),e=>bc(e)===n),wc=n=>e=>typeof e===n,{isArray:Ca}=Array,ka=wc("undefined");function ol(n){return n!==null&&!ka(n)&&n.constructor!==null&&!ka(n.constructor)&&di(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const py=ao("ArrayBuffer");function d$(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&py(n.buffer),e}const p$=wc("string"),di=wc("function"),fy=wc("number"),sl=n=>n!==null&&typeof n=="object",f$=n=>n===!0||n===!1,xc=n=>{if(bc(n)!=="object")return!1;const e=hd(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(dy in n)&&!(yc in n)},g$=n=>{if(!sl(n)||ol(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},m$=ao("Date"),v$=ao("File"),y$=ao("Blob"),b$=ao("FileList"),w$=n=>sl(n)&&di(n.pipe),x$=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||di(n.append)&&((e=bc(n))==="formdata"||e==="object"&&di(n.toString)&&n.toString()==="[object FormData]"))},C$=ao("URLSearchParams"),[k$,A$,S$,_$]=["ReadableStream","Request","Response","Headers"].map(ao),$$=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function al(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,d;if(typeof n!="object"&&(n=[n]),Ca(n))for(r=0,d=n.length;r<d;r++)e.call(null,n[r],r,n);else{if(ol(n))return;const p=t?Object.getOwnPropertyNames(n):Object.keys(n),g=p.length;let b;for(r=0;r<g;r++)b=p[r],e.call(null,n[b],b,n)}}function gy(n,e){if(ol(n))return null;e=e.toLowerCase();const t=Object.keys(n);let r=t.length,d;for(;r-- >0;)if(d=t[r],e===d.toLowerCase())return d;return null}const Ps=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,my=n=>!ka(n)&&n!==Ps;function dd(){const{caseless:n,skipUndefined:e}=my(this)&&this||{},t={},r=(d,p)=>{const g=n&&gy(t,p)||p;xc(t[g])&&xc(d)?t[g]=dd(t[g],d):xc(d)?t[g]=dd({},d):Ca(d)?t[g]=d.slice():(!e||!ka(d))&&(t[g]=d)};for(let d=0,p=arguments.length;d<p;d++)arguments[d]&&al(arguments[d],r);return t}const T$=(n,e,t,{allOwnKeys:r}={})=>(al(e,(d,p)=>{t&&di(d)?n[p]=hy(d,t):n[p]=d},{allOwnKeys:r}),n),M$=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),E$=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},I$=(n,e,t,r)=>{let d,p,g;const b={};if(e=e||{},n==null)return e;do{for(d=Object.getOwnPropertyNames(n),p=d.length;p-- >0;)g=d[p],(!r||r(g,n,e))&&!b[g]&&(e[g]=n[g],b[g]=!0);n=t!==!1&&hd(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},R$=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},L$=n=>{if(!n)return null;if(Ca(n))return n;let e=n.length;if(!fy(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},O$=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&hd(Uint8Array)),N$=(n,e)=>{const t=(n&&n[yc]).call(n);let r;for(;(r=t.next())&&!r.done;){const d=r.value;e.call(n,d[0],d[1])}},D$=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},F$=ao("HTMLFormElement"),P$=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),vy=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),W$=ao("RegExp"),yy=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};al(t,(d,p)=>{let g;(g=e(d,p,n))!==!1&&(r[p]=g||d)}),Object.defineProperties(n,r)},B$=n=>{yy(n,(e,t)=>{if(di(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(di(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},H$=(n,e)=>{const t={},r=d=>{d.forEach(p=>{t[p]=!0})};return Ca(n)?r(n):r(String(n).split(e)),t},z$=()=>{},j$=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function U$(n){return!!(n&&di(n.append)&&n[dy]==="FormData"&&n[yc])}const V$=n=>{const e=new Array(10),t=(r,d)=>{if(sl(r)){if(e.indexOf(r)>=0)return;if(ol(r))return r;if(!("toJSON"in r)){e[d]=r;const p=Ca(r)?[]:{};return al(r,(g,b)=>{const h=t(g,d+1);!ka(h)&&(p[b]=h)}),e[d]=void 0,p}}return r};return t(n,0)},q$=ao("AsyncFunction"),K$=n=>n&&(sl(n)||di(n))&&di(n.then)&&di(n.catch),by=((n,e)=>n?setImmediate:e?((t,r)=>(Ps.addEventListener("message",({source:d,data:p})=>{d===Ps&&p===t&&r.length&&r.shift()()},!1),d=>{r.push(d),Ps.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",di(Ps.postMessage)),G$=typeof queueMicrotask<"u"?queueMicrotask.bind(Ps):typeof process<"u"&&process.nextTick||by,Y$=n=>n!=null&&di(n[yc]),Se={isArray:Ca,isArrayBuffer:py,isBuffer:ol,isFormData:x$,isArrayBufferView:d$,isString:p$,isNumber:fy,isBoolean:f$,isObject:sl,isPlainObject:xc,isEmptyObject:g$,isReadableStream:k$,isRequest:A$,isResponse:S$,isHeaders:_$,isUndefined:ka,isDate:m$,isFile:v$,isBlob:y$,isRegExp:W$,isFunction:di,isStream:w$,isURLSearchParams:C$,isTypedArray:O$,isFileList:b$,forEach:al,merge:dd,extend:T$,trim:$$,stripBOM:M$,inherits:E$,toFlatObject:I$,kindOf:bc,kindOfTest:ao,endsWith:R$,toArray:L$,forEachEntry:N$,matchAll:D$,isHTMLForm:F$,hasOwnProperty:vy,hasOwnProp:vy,reduceDescriptors:yy,freezeMethods:B$,toObjectSet:H$,toCamelCase:P$,noop:z$,toFiniteNumber:j$,findKey:gy,global:Ps,isContextDefined:my,isSpecCompliantForm:U$,toJSONObject:V$,isAsyncFn:q$,isThenable:K$,setImmediate:by,asap:G$,isIterable:Y$};function $t(n,e,t,r,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),d&&(this.response=d,this.status=d.status?d.status:null)}Se.inherits($t,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 wy=$t.prototype,xy={};["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=>{xy[n]={value:n}}),Object.defineProperties($t,xy),Object.defineProperty(wy,"isAxiosError",{value:!0}),$t.from=(n,e,t,r,d,p)=>{const g=Object.create(wy);Se.toFlatObject(n,g,function(f){return f!==Error.prototype},f=>f!=="isAxiosError");const b=n&&n.message?n.message:"Error",h=e==null&&n?n.code:e;return $t.call(g,b,h,t,r,d),n&&g.cause==null&&Object.defineProperty(g,"cause",{value:n,configurable:!0}),g.name=n&&n.name||"Error",p&&Object.assign(g,p),g};const X$=null;function pd(n){return Se.isPlainObject(n)||Se.isArray(n)}function Cy(n){return Se.endsWith(n,"[]")?n.slice(0,-2):n}function ky(n,e,t){return n?n.concat(e).map(function(r,d){return r=Cy(r),!t&&d?"["+r+"]":r}).join(t?".":""):e}function Z$(n){return Se.isArray(n)&&!n.some(pd)}const Q$=Se.toFlatObject(Se,{},null,function(n){return/^is[A-Z]/.test(n)});function Cc(n,e,t){if(!Se.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=Se.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Se.isUndefined(i[c])});const r=t.metaTokens,d=t.visitor||f,p=t.dots,g=t.indexes,b=(t.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(e);if(!Se.isFunction(d))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(!b&&Se.isBlob(c))throw new $t("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(c)||Se.isTypedArray(c)?b&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,i,l){let m=c;if(c&&!l&&typeof c=="object"){if(Se.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Se.isArray(c)&&Z$(c)||(Se.isFileList(c)||Se.endsWith(i,"[]"))&&(m=Se.toArray(c)))return i=Cy(i),m.forEach(function(w,x){!(Se.isUndefined(w)||w===null)&&e.append(g===!0?ky([i],x,p):g===null?i:i+"[]",h(w))}),!1}return pd(c)?!0:(e.append(ky(l,i,p),h(c)),!1)}const s=[],a=Object.assign(Q$,{defaultVisitor:f,convertValue:h,isVisitable:pd});function u(c,i){if(!Se.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));s.push(c),Se.forEach(c,function(l,m){(!(Se.isUndefined(l)||l===null)&&d.call(e,l,Se.isString(m)?m.trim():m,i,a))===!0&&u(l,i?i.concat(m):[m])}),s.pop()}}if(!Se.isObject(n))throw new TypeError("data must be an object");return u(n),e}function Ay(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function fd(n,e){this._pairs=[],n&&Cc(n,this,e)}const Sy=fd.prototype;Sy.append=function(n,e){this._pairs.push([n,e])},Sy.toString=function(n){const e=n?function(t){return n.call(this,t,Ay)}:Ay;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function J$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _y(n,e,t){if(!e)return n;const r=t&&t.encode||J$;Se.isFunction(t)&&(t={serialize:t});const d=t&&t.serialize;let p;if(d?p=d(e,t):p=Se.isURLSearchParams(e)?e.toString():new fd(e,t).toString(r),p){const g=n.indexOf("#");g!==-1&&(n=n.slice(0,g)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}let $y=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Se.forEach(this.handlers,function(t){t!==null&&e(t)})}};const Ty={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eT=typeof URLSearchParams<"u"?URLSearchParams:fd,tT=typeof FormData<"u"?FormData:null,nT=typeof Blob<"u"?Blob:null,rT={isBrowser:!0,classes:{URLSearchParams:eT,FormData:tT,Blob:nT},protocols:["http","https","file","blob","url","data"]},gd=typeof window<"u"&&typeof document<"u",md=typeof navigator=="object"&&navigator||void 0,iT=gd&&(!md||["ReactNative","NativeScript","NS"].indexOf(md.product)<0),oT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sT=gd&&window.location.href||"http://localhost",aT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gd,hasStandardBrowserEnv:iT,hasStandardBrowserWebWorkerEnv:oT,navigator:md,origin:sT},Symbol.toStringTag,{value:"Module"})),Br={...aT,...rT};function lT(n,e){return Cc(n,new Br.classes.URLSearchParams,{visitor:function(t,r,d,p){return Br.isNode&&Se.isBuffer(t)?(this.append(r,t.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...e})}function cT(n){return Se.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function uT(n){const e={},t=Object.keys(n);let r;const d=t.length;let p;for(r=0;r<d;r++)p=t[r],e[p]=n[p];return e}function My(n){function e(t,r,d,p){let g=t[p++];if(g==="__proto__")return!0;const b=Number.isFinite(+g),h=p>=t.length;return g=!g&&Se.isArray(d)?d.length:g,h?(Se.hasOwnProp(d,g)?d[g]=[d[g],r]:d[g]=r,!b):((!d[g]||!Se.isObject(d[g]))&&(d[g]=[]),e(t,r,d[g],p)&&Se.isArray(d[g])&&(d[g]=uT(d[g])),!b)}if(Se.isFormData(n)&&Se.isFunction(n.entries)){const t={};return Se.forEachEntry(n,(r,d)=>{e(cT(r),d,t,0)}),t}return null}function hT(n,e,t){if(Se.isString(n))try{return(e||JSON.parse)(n),Se.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const ll={transitional:Ty,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,d=Se.isObject(n);if(d&&Se.isHTMLForm(n)&&(n=new FormData(n)),Se.isFormData(n))return r?JSON.stringify(My(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 e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(d){if(t.indexOf("application/x-www-form-urlencoded")>-1)return lT(n,this.formSerializer).toString();if((p=Se.isFileList(n))||t.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Cc(p?{"files[]":n}:n,g&&new g,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),hT(n)):n}],transformResponse:[function(n){const e=this.transitional||ll.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(Se.isResponse(n)||Se.isReadableStream(n))return n;if(n&&Se.isString(n)&&(t&&!this.responseType||r)){const d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(p){if(d)throw p.name==="SyntaxError"?$t.from(p,$t.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Br.classes.FormData,Blob:Br.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=>{ll.headers[n]={}});const dT=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"]),pT=n=>{const e={};let t,r,d;return n&&n.split(`
|
|
1488
|
+
}`;var Ot=rx(function(){return Et(te,lt+"return "+De).apply(t,ue)});if(Ot.source=De,Op(Ot))throw Ot;return Ot}function QD(o){return un(o).toLowerCase()}function JD(o){return un(o).toUpperCase()}function eF(o,v,E){if(o=un(o),o&&(E||v===t))return Sn(o);if(!o||!(v=Fi(v)))return o;var j=At(o),G=At(v),te=Mt(j,G),ue=hr(j,G)+1;return ws(j,te,ue).join("")}function tF(o,v,E){if(o=un(o),o&&(E||v===t))return o.slice(0,Ft(o)+1);if(!o||!(v=Fi(v)))return o;var j=At(o),G=hr(j,At(v))+1;return ws(j,0,G).join("")}function nF(o,v,E){if(o=un(o),o&&(E||v===t))return o.replace(En,"");if(!o||!(v=Fi(v)))return o;var j=At(o),G=Mt(j,At(v));return ws(j,G).join("")}function rF(o,v){var E=I,j=H;if(jn(v)){var G="separator"in v?v.separator:G;E="length"in v?It(v.length):E,j="omission"in v?Fi(v.omission):j}o=un(o);var te=o.length;if(oe(o)){var ue=At(o);te=ue.length}if(E>=te)return o;var pe=E-Bt(j);if(pe<1)return j;var ye=ue?ws(ue,0,pe).join(""):o.slice(0,pe);if(G===t)return ye+j;if(ue&&(pe+=ye.length-pe),Np(G)){if(o.slice(pe).search(G)){var Ie,Re=ye;for(G.global||(G=oi(G.source,un(zr.exec(G))+"g")),G.lastIndex=0;Ie=G.exec(Re);)var De=Ie.index;ye=ye.slice(0,De===t?pe:De)}}else if(o.indexOf(Fi(G),pe)!=pe){var Ze=ye.lastIndexOf(G);Ze>-1&&(ye=ye.slice(0,Ze))}return ye+j}function iF(o){return o=un(o),o&&mi.test(o)?o.replace(Kn,gt):o}var oF=Na(function(o,v,E){return o+(E?" ":"")+v.toUpperCase()}),Pp=iw("toUpperCase");function nx(o,v,E){return o=un(o),v=E?t:v,v===t?ge(o)?Fn(o):Y(o):o.match(v)||[]}var rx=Pt(function(o,v){try{return Mr(o,t,v)}catch(E){return Op(E)?E:new ft(E)}}),sF=Go(function(o,v){return Nr(v,function(E){E=Ro(E),qo(o,E,Rp(o[E],o))}),o});function aF(o){var v=o==null?0:o.length,E=mt();return o=v?y(o,function(j){if(typeof j[1]!="function")throw new mn(g);return[E(j[0]),j[1]]}):[],Pt(function(j){for(var G=-1;++G<v;){var te=o[G];if(Mr(te[0],this,j))return Mr(te[1],this,j)}})}function lF(o){return LL(Zi(o,a))}function Wp(o){return function(){return o}}function cF(o,v){return o==null||o!==o?v:o}var uF=sw(),hF=sw(!0);function _i(o){return o}function Bp(o){return D0(typeof o=="function"?o:Zi(o,a))}function dF(o){return P0(Zi(o,a))}function pF(o,v){return W0(o,Zi(v,a))}var fF=Pt(function(o,v){return function(E){return _l(E,o,v)}}),gF=Pt(function(o,v){return function(E){return _l(o,E,v)}});function Hp(o,v,E){var j=Lr(v),G=iu(v,j);E==null&&!(jn(v)&&(G.length||!j.length))&&(E=v,v=o,o=this,G=iu(v,Lr(v)));var te=!(jn(E)&&"chain"in E)||!!E.chain,ue=Xo(o);return Nr(G,function(pe){var ye=v[pe];o[pe]=ye,ue&&(o.prototype[pe]=function(){var Ie=this.__chain__;if(te||Ie){var Re=o(this.__wrapped__),De=Re.__actions__=ki(this.__actions__);return De.push({func:ye,args:arguments,thisArg:o}),Re.__chain__=Ie,Re}return ye.apply(o,T([this.value()],arguments))})}),o}function mF(){return gn._===this&&(gn._=zR),this}function zp(){}function vF(o){return o=It(o),Pt(function(v){return B0(v,o)})}var yF=bp(y),bF=bp(Dr),wF=bp(W);function ix(o){return _p(o)?we(Ro(o)):XL(o)}function xF(o){return function(v){return o==null?t:ea(o,v)}}var CF=lw(),kF=lw(!0);function jp(){return[]}function Up(){return!1}function AF(){return{}}function SF(){return""}function _F(){return!0}function $F(o,v){if(o=It(o),o<1||o>U)return[];var E=J,j=Vr(o,J);v=mt(v),o-=J;for(var G=et(j,v);++E<o;)v(E);return G}function TF(o){return St(o)?y(o,Ro):Pi(o)?[o]:ki(Aw(un(o)))}function MF(o){var v=++BR;return un(o)+v}var EF=uu(function(o,v){return o+v},0),IF=wp("ceil"),RF=uu(function(o,v){return o/v},1),LF=wp("floor");function OF(o){return o&&o.length?ru(o,_i,op):t}function NF(o,v){return o&&o.length?ru(o,mt(v,2),op):t}function DF(o){return ve(o,_i)}function FF(o,v){return ve(o,mt(v,2))}function PF(o){return o&&o.length?ru(o,_i,cp):t}function WF(o,v){return o&&o.length?ru(o,mt(v,2),cp):t}var BF=uu(function(o,v){return o*v},1),HF=wp("round"),zF=uu(function(o,v){return o-v},0);function jF(o){return o&&o.length?ut(o,_i):0}function UF(o,v){return o&&o.length?ut(o,mt(v,2)):0}return ee.after=dN,ee.ary=Nw,ee.assign=JN,ee.assignIn=Yw,ee.assignInWith=ku,ee.assignWith=eD,ee.at=tD,ee.before=Dw,ee.bind=Rp,ee.bindAll=sF,ee.bindKey=Fw,ee.castArray=AN,ee.chain=Rw,ee.chunk=LO,ee.compact=OO,ee.concat=NO,ee.cond=aF,ee.conforms=lF,ee.constant=Wp,ee.countBy=j2,ee.create=nD,ee.curry=Pw,ee.curryRight=Ww,ee.debounce=Bw,ee.defaults=rD,ee.defaultsDeep=iD,ee.defer=pN,ee.delay=fN,ee.difference=DO,ee.differenceBy=FO,ee.differenceWith=PO,ee.drop=WO,ee.dropRight=BO,ee.dropRightWhile=HO,ee.dropWhile=zO,ee.fill=jO,ee.filter=V2,ee.flatMap=G2,ee.flatMapDeep=Y2,ee.flatMapDepth=X2,ee.flatten=Tw,ee.flattenDeep=UO,ee.flattenDepth=VO,ee.flip=gN,ee.flow=uF,ee.flowRight=hF,ee.fromPairs=qO,ee.functions=hD,ee.functionsIn=dD,ee.groupBy=Z2,ee.initial=GO,ee.intersection=YO,ee.intersectionBy=XO,ee.intersectionWith=ZO,ee.invert=fD,ee.invertBy=gD,ee.invokeMap=J2,ee.iteratee=Bp,ee.keyBy=eN,ee.keys=Lr,ee.keysIn=Si,ee.map=vu,ee.mapKeys=vD,ee.mapValues=yD,ee.matches=dF,ee.matchesProperty=pF,ee.memoize=bu,ee.merge=bD,ee.mergeWith=Xw,ee.method=fF,ee.methodOf=gF,ee.mixin=Hp,ee.negate=wu,ee.nthArg=vF,ee.omit=wD,ee.omitBy=xD,ee.once=mN,ee.orderBy=tN,ee.over=yF,ee.overArgs=vN,ee.overEvery=bF,ee.overSome=wF,ee.partial=Lp,ee.partialRight=Hw,ee.partition=nN,ee.pick=CD,ee.pickBy=Zw,ee.property=ix,ee.propertyOf=xF,ee.pull=t2,ee.pullAll=Ew,ee.pullAllBy=n2,ee.pullAllWith=r2,ee.pullAt=i2,ee.range=CF,ee.rangeRight=kF,ee.rearg=yN,ee.reject=oN,ee.remove=o2,ee.rest=bN,ee.reverse=Ep,ee.sampleSize=aN,ee.set=AD,ee.setWith=SD,ee.shuffle=lN,ee.slice=s2,ee.sortBy=hN,ee.sortedUniq=p2,ee.sortedUniqBy=f2,ee.split=GD,ee.spread=wN,ee.tail=g2,ee.take=m2,ee.takeRight=v2,ee.takeRightWhile=y2,ee.takeWhile=b2,ee.tap=O2,ee.throttle=xN,ee.thru=mu,ee.toArray=qw,ee.toPairs=Qw,ee.toPairsIn=Jw,ee.toPath=TF,ee.toPlainObject=Gw,ee.transform=_D,ee.unary=CN,ee.union=w2,ee.unionBy=x2,ee.unionWith=C2,ee.uniq=k2,ee.uniqBy=A2,ee.uniqWith=S2,ee.unset=$D,ee.unzip=Ip,ee.unzipWith=Iw,ee.update=TD,ee.updateWith=MD,ee.values=Pa,ee.valuesIn=ED,ee.without=_2,ee.words=nx,ee.wrap=kN,ee.xor=$2,ee.xorBy=T2,ee.xorWith=M2,ee.zip=E2,ee.zipObject=I2,ee.zipObjectDeep=R2,ee.zipWith=L2,ee.entries=Qw,ee.entriesIn=Jw,ee.extend=Yw,ee.extendWith=ku,Hp(ee,ee),ee.add=EF,ee.attempt=rx,ee.camelCase=OD,ee.capitalize=ex,ee.ceil=IF,ee.clamp=ID,ee.clone=SN,ee.cloneDeep=$N,ee.cloneDeepWith=TN,ee.cloneWith=_N,ee.conformsTo=MN,ee.deburr=tx,ee.defaultTo=cF,ee.divide=RF,ee.endsWith=ND,ee.eq=go,ee.escape=DD,ee.escapeRegExp=FD,ee.every=U2,ee.find=q2,ee.findIndex=_w,ee.findKey=oD,ee.findLast=K2,ee.findLastIndex=$w,ee.findLastKey=sD,ee.floor=LF,ee.forEach=Lw,ee.forEachRight=Ow,ee.forIn=aD,ee.forInRight=lD,ee.forOwn=cD,ee.forOwnRight=uD,ee.get=Dp,ee.gt=EN,ee.gte=IN,ee.has=pD,ee.hasIn=Fp,ee.head=Mw,ee.identity=_i,ee.includes=Q2,ee.indexOf=KO,ee.inRange=RD,ee.invoke=mD,ee.isArguments=ra,ee.isArray=St,ee.isArrayBuffer=RN,ee.isArrayLike=Ai,ee.isArrayLikeObject=sr,ee.isBoolean=LN,ee.isBuffer=xs,ee.isDate=ON,ee.isElement=NN,ee.isEmpty=DN,ee.isEqual=FN,ee.isEqualWith=PN,ee.isError=Op,ee.isFinite=WN,ee.isFunction=Xo,ee.isInteger=zw,ee.isLength=xu,ee.isMap=jw,ee.isMatch=BN,ee.isMatchWith=HN,ee.isNaN=zN,ee.isNative=jN,ee.isNil=VN,ee.isNull=UN,ee.isNumber=Uw,ee.isObject=jn,ee.isObjectLike=Jn,ee.isPlainObject=Rl,ee.isRegExp=Np,ee.isSafeInteger=qN,ee.isSet=Vw,ee.isString=Cu,ee.isSymbol=Pi,ee.isTypedArray=Fa,ee.isUndefined=KN,ee.isWeakMap=GN,ee.isWeakSet=YN,ee.join=QO,ee.kebabCase=PD,ee.last=Ji,ee.lastIndexOf=JO,ee.lowerCase=WD,ee.lowerFirst=BD,ee.lt=XN,ee.lte=ZN,ee.max=OF,ee.maxBy=NF,ee.mean=DF,ee.meanBy=FF,ee.min=PF,ee.minBy=WF,ee.stubArray=jp,ee.stubFalse=Up,ee.stubObject=AF,ee.stubString=SF,ee.stubTrue=_F,ee.multiply=BF,ee.nth=e2,ee.noConflict=mF,ee.noop=zp,ee.now=yu,ee.pad=HD,ee.padEnd=zD,ee.padStart=jD,ee.parseInt=UD,ee.random=LD,ee.reduce=rN,ee.reduceRight=iN,ee.repeat=VD,ee.replace=qD,ee.result=kD,ee.round=HF,ee.runInContext=fe,ee.sample=sN,ee.size=cN,ee.snakeCase=KD,ee.some=uN,ee.sortedIndex=a2,ee.sortedIndexBy=l2,ee.sortedIndexOf=c2,ee.sortedLastIndex=u2,ee.sortedLastIndexBy=h2,ee.sortedLastIndexOf=d2,ee.startCase=YD,ee.startsWith=XD,ee.subtract=zF,ee.sum=jF,ee.sumBy=UF,ee.template=ZD,ee.times=$F,ee.toFinite=Zo,ee.toInteger=It,ee.toLength=Kw,ee.toLower=QD,ee.toNumber=eo,ee.toSafeInteger=QN,ee.toString=un,ee.toUpper=JD,ee.trim=eF,ee.trimEnd=tF,ee.trimStart=nF,ee.truncate=rF,ee.unescape=iF,ee.uniqueId=MF,ee.upperCase=oF,ee.upperFirst=Pp,ee.each=Lw,ee.eachRight=Ow,ee.first=Mw,Hp(ee,function(){var o={};return Eo(ee,function(v,E){pn.call(ee.prototype,E)||(o[E]=v)}),o}(),{chain:!1}),ee.VERSION=r,Nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){ee[o].placeholder=ee}),Nr(["drop","take"],function(o,v){Gt.prototype[o]=function(E){E=E===t?1:Cr(It(E),0);var j=this.__filtered__&&!v?new Gt(this):this.clone();return j.__filtered__?j.__takeCount__=Vr(E,j.__takeCount__):j.__views__.push({size:Vr(E,J),type:o+(j.__dir__<0?"Right":"")}),j},Gt.prototype[o+"Right"]=function(E){return this.reverse()[o](E).reverse()}}),Nr(["filter","map","takeWhile"],function(o,v){var E=v+1,j=E==$||E==N;Gt.prototype[o]=function(G){var te=this.clone();return te.__iteratees__.push({iteratee:mt(G,3),type:E}),te.__filtered__=te.__filtered__||j,te}}),Nr(["head","last"],function(o,v){var E="take"+(v?"Right":"");Gt.prototype[o]=function(){return this[E](1).value()[0]}}),Nr(["initial","tail"],function(o,v){var E="drop"+(v?"":"Right");Gt.prototype[o]=function(){return this.__filtered__?new Gt(this):this[E](1)}}),Gt.prototype.compact=function(){return this.filter(_i)},Gt.prototype.find=function(o){return this.filter(o).head()},Gt.prototype.findLast=function(o){return this.reverse().find(o)},Gt.prototype.invokeMap=Pt(function(o,v){return typeof o=="function"?new Gt(this):this.map(function(E){return _l(E,o,v)})}),Gt.prototype.reject=function(o){return this.filter(wu(mt(o)))},Gt.prototype.slice=function(o,v){o=It(o);var E=this;return E.__filtered__&&(o>0||v<0)?new Gt(E):(o<0?E=E.takeRight(-o):o&&(E=E.drop(o)),v!==t&&(v=It(v),E=v<0?E.dropRight(-v):E.take(v-o)),E)},Gt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Gt.prototype.toArray=function(){return this.take(J)},Eo(Gt.prototype,function(o,v){var E=/^(?: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 Gt,Ie=pe[0],Re=ye||St(ue),De=function(zt){var Xt=G.apply(ee,T([zt],pe));return j&&Ze?Xt[0]:Xt};Re&&E&&typeof Ie=="function"&&Ie.length!=1&&(ye=Re=!1);var Ze=this.__chain__,lt=!!this.__actions__.length,vt=te&&!Ze,Ot=ye&&!lt;if(!te&&Re){ue=Ot?ue:new Gt(this);var yt=o.apply(ue,pe);return yt.__actions__.push({func:mu,args:[De],thisArg:t}),new Xi(yt,Ze)}return vt&&Ot?o.apply(this,pe):(yt=this.thru(De),vt?j?yt.value()[0]:yt.value():yt)})}),Nr(["pop","push","shift","sort","splice","unshift"],function(o){var v=Rr[o],E=/^(?: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(St(te)?te:[],G)}return this[E](function(ue){return v.apply(St(ue)?ue:[],G)})}}),Eo(Gt.prototype,function(o,v){var E=ee[v];if(E){var j=E.name+"";pn.call(Ra,j)||(Ra[j]=[]),Ra[j].push({name:v,func:E})}}),Ra[cu(t,w).name]=[{name:"wrapper",func:t}],Gt.prototype.clone=iL,Gt.prototype.reverse=oL,Gt.prototype.value=sL,ee.prototype.at=N2,ee.prototype.chain=D2,ee.prototype.commit=F2,ee.prototype.next=P2,ee.prototype.plant=B2,ee.prototype.reverse=H2,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=z2,ee.prototype.first=ee.prototype.head,bl&&(ee.prototype[bl]=W2),ee},Yt=dr();ur?((ur.exports=Yt)._=Yt,In._=Yt):gn._=Yt}).call(_A)}(ec,ec.exports)),ec.exports}var TA=$A();pr("O",Fl(TA)).debounce(function(){this.rebuildDisplayText()},300);var em={exports:{}},tm;function MA(){return tm||(tm=1,function(n,e){(function(){ace.require(["ace/mode/text"],function(t){n&&(n.exports=t)})})()}(em)),em.exports}MA();const EA=!0,fr="u-",IA="uplot",RA=fr+"hz",LA=fr+"vt",OA=fr+"title",NA=fr+"wrap",DA=fr+"under",FA=fr+"over",PA=fr+"axis",Rs=fr+"off",WA=fr+"select",BA=fr+"cursor-x",HA=fr+"cursor-y",zA=fr+"cursor-pt",jA=fr+"legend",UA=fr+"live",VA=fr+"inline",qA=fr+"series",KA=fr+"marker",nm=fr+"label",GA=fr+"value",Za="width",Qa="height",Ja="top",rm="bottom",da="left",th="right",nh="#000",im=nh+"0",rh="mousemove",om="mousedown",ih="mouseup",sm="mouseenter",am="mouseleave",lm="dblclick",YA="resize",XA="scroll",cm="change",tc="dppxchange",oh="--",pa=typeof window<"u",sh=pa?document:null,fa=pa?window:null,ZA=pa?navigator:null;let on,nc;function ah(){let n=devicePixelRatio;on!=n&&(on=n,nc&&uh(cm,nc,ah),nc=matchMedia(`(min-resolution: ${on-.001}dppx) and (max-resolution: ${on+.001}dppx)`),Ls(cm,nc,ah),fa.dispatchEvent(new CustomEvent(tc)))}function $i(n,e){if(e!=null){let t=n.classList;!t.contains(e)&&t.add(e)}}function lh(n,e){let t=n.classList;t.contains(e)&&t.remove(e)}function _n(n,e,t){n.style[e]=t+"px"}function io(n,e,t,r){let d=sh.createElement(n);return e!=null&&$i(d,e),t!=null&&t.insertBefore(d,r),d}function Hi(n,e){return io("div",n,e)}const um=new WeakMap;function bo(n,e,t,r,d){let p="translate("+e+"px,"+t+"px)",g=um.get(n);p!=g&&(n.style.transform=p,um.set(n,p),e<0||t<0||e>r||t>d?$i(n,Rs):lh(n,Rs))}const hm=new WeakMap;function dm(n,e,t){let r=e+t,d=hm.get(n);r!=d&&(hm.set(n,r),n.style.background=e,n.style.borderColor=t)}const pm=new WeakMap;function fm(n,e,t,r){let d=e+""+t,p=pm.get(n);d!=p&&(pm.set(n,d),n.style.height=t+"px",n.style.width=e+"px",n.style.marginLeft=r?-e/2+"px":0,n.style.marginTop=r?-t/2+"px":0)}const ch={passive:!0},QA={...ch,capture:!0};function Ls(n,e,t,r){e.addEventListener(n,t,r?QA:ch)}function uh(n,e,t,r){e.removeEventListener(n,t,ch)}pa&&ah();function oo(n,e,t,r){let d;t=t||0,r=r||e.length-1;let p=r<=2147483647;for(;r-t>1;)d=p?t+r>>1:Mi((t+r)/2),e[d]<n?t=d:r=d;return n-e[t]<=e[r]-n?t:r}function gm(n){return(e,t,r)=>{let d=-1,p=-1;for(let g=t;g<=r;g++)if(n(e[g])){d=g;break}for(let g=r;g>=t;g--)if(n(e[g])){p=g;break}return[d,p]}}const mm=n=>n!=null,vm=n=>n!=null&&n>0,rc=gm(mm),JA=gm(vm);function eS(n,e,t,r=0,d=!1){let p=d?JA:rc,g=d?vm:mm;[e,t]=p(n,e,t);let b=n[e],h=n[e];if(e>-1)if(r==1)b=n[e],h=n[t];else if(r==-1)b=n[t],h=n[e];else for(let f=e;f<=t;f++){let s=n[f];g(s)&&(s<b?b=s:s>h&&(h=s))}return[b??vn,h??-vn]}function ic(n,e,t,r){let d=wm(n),p=wm(e);n==e&&(d==-1?(n*=t,e/=t):(n/=t,e*=t));let g=t==10?Lo:xm,b=d==1?Mi:zi,h=p==1?zi:Mi,f=b(g(gr(n))),s=h(g(gr(e))),a=ga(t,f),u=ga(t,s);return t==10&&(f<0&&(a=yn(a,-f)),s<0&&(u=yn(u,-s))),r||t==2?(n=a*d,e=u*p):(n=Tm(n,a),e=ac(e,u)),[n,e]}function hh(n,e,t,r){let d=ic(n,e,t,r);return n==0&&(d[0]=0),e==0&&(d[1]=0),d}const dh=.1,ym={mode:3,pad:dh},el={pad:0,soft:null,mode:0},tS={min:el,max:el};function oc(n,e,t,r){return lc(t)?bm(n,e,t):(el.pad=t,el.soft=r?0:null,el.mode=r?3:0,bm(n,e,tS))}function tn(n,e){return n??e}function nS(n,e,t){for(e=tn(e,0),t=tn(t,n.length-1);e<=t;){if(n[e]!=null)return!0;e++}return!1}function bm(n,e,t){let r=t.min,d=t.max,p=tn(r.pad,0),g=tn(d.pad,0),b=tn(r.hard,-vn),h=tn(d.hard,vn),f=tn(r.soft,vn),s=tn(d.soft,-vn),a=tn(r.mode,0),u=tn(d.mode,0),c=e-n,i=Lo(c),l=Gr(gr(n),gr(e)),m=Lo(l),w=gr(m-i);(c<1e-24||w>10)&&(c=0,(n==0||e==0)&&(c=1e-24,a==2&&f!=vn&&(p=0),u==2&&s!=-vn&&(g=0)));let x=c||l||1e3,M=Lo(x),_=ga(10,Mi(M)),k=x*(c==0?n==0?.1:1:p),C=yn(Tm(n-k,_/10),24),L=n>=f&&(a==1||a==3&&C<=f||a==2&&C>=f)?f:vn,D=Gr(b,C<L&&n>=L?L:so(L,C)),R=x*(c==0?e==0?.1:1:g),I=yn(ac(e+R,_/10),24),H=e<=s&&(u==1||u==3&&I>=s||u==2&&I<=s)?s:-vn,P=so(h,I>H&&e<=H?H:Gr(H,I));return D==P&&D==0&&(P=100),[D,P]}const rS=new Intl.NumberFormat(pa?ZA.language:"en-US"),ph=n=>rS.format(n),Ti=Math,sc=Ti.PI,gr=Ti.abs,Mi=Ti.floor,mr=Ti.round,zi=Ti.ceil,so=Ti.min,Gr=Ti.max,ga=Ti.pow,wm=Ti.sign,Lo=Ti.log10,xm=Ti.log2,iS=(n,e=1)=>Ti.sinh(n)*e,fh=(n,e=1)=>Ti.asinh(n/e),vn=1/0;function Cm(n){return(Lo((n^n>>31)-(n>>31))|0)+1}function gh(n,e,t){return so(Gr(n,e),t)}function km(n){return typeof n=="function"}function Ut(n){return km(n)?n:()=>n}const oS=()=>{},Am=n=>n,Sm=(n,e)=>e,sS=n=>null,_m=n=>!0,$m=(n,e)=>n==e,aS=/\.\d*?(?=9{6,}|0{6,})/gm,Os=n=>{if(Em(n)||rs.has(n))return n;const e=`${n}`,t=e.match(aS);if(t==null)return n;let r=t[0].length-1;if(e.indexOf("e-")!=-1){let[d,p]=e.split("e");return+`${Os(d)}e${p}`}return yn(n,r)};function Ns(n,e){return Os(yn(Os(n/e))*e)}function ac(n,e){return Os(zi(Os(n/e))*e)}function Tm(n,e){return Os(Mi(Os(n/e))*e)}function yn(n,e=0){if(Em(n))return n;let t=10**e,r=n*t*(1+Number.EPSILON);return mr(r)/t}const rs=new Map;function Mm(n){return((""+n).split(".")[1]||"").length}function tl(n,e,t,r){let d=[],p=r.map(Mm);for(let g=e;g<t;g++){let b=gr(g),h=yn(ga(n,g),b);for(let f=0;f<r.length;f++){let s=n==10?+`${r[f]}e${g}`:r[f]*h,a=(g>=0?0:b)+(g>=p[f]?0:p[f]),u=n==10?s:yn(s,a);d.push(u),rs.set(u,a)}}return d}const nl={},mh=[],ma=[null,null],is=Array.isArray,Em=Number.isInteger,lS=n=>n===void 0;function Im(n){return typeof n=="string"}function lc(n){let e=!1;if(n!=null){let t=n.constructor;e=t==null||t==Object}return e}function cS(n){return n!=null&&typeof n=="object"}const uS=Object.getPrototypeOf(Uint8Array),Rm="__proto__";function va(n,e=lc){let t;if(is(n)){let r=n.find(d=>d!=null);if(is(r)||e(r)){t=Array(n.length);for(let d=0;d<n.length;d++)t[d]=va(n[d],e)}else t=n.slice()}else if(n instanceof uS)t=n.slice();else if(e(n)){t={};for(let r in n)r!=Rm&&(t[r]=va(n[r],e))}else t=n;return t}function cr(n){let e=arguments;for(let t=1;t<e.length;t++){let r=e[t];for(let d in r)d!=Rm&&(lc(n[d])?cr(n[d],va(r[d])):n[d]=va(r[d]))}return n}const hS=0,dS=1,pS=2;function fS(n,e,t){for(let r=0,d,p=-1;r<e.length;r++){let g=e[r];if(g>p){for(d=g-1;d>=0&&n[d]==null;)n[d--]=null;for(d=g+1;d<t&&n[d]==null;)n[p=d++]=null}}}function gS(n,e){if(yS(n)){let g=n[0].slice();for(let b=1;b<n.length;b++)g.push(...n[b].slice(1));return bS(g[0])||(g=vS(g)),g}let t=new Set;for(let g=0;g<n.length;g++){let b=n[g][0],h=b.length;for(let f=0;f<h;f++)t.add(b[f])}let r=[Array.from(t).sort((g,b)=>g-b)],d=r[0].length,p=new Map;for(let g=0;g<d;g++)p.set(r[0][g],g);for(let g=0;g<n.length;g++){let b=n[g],h=b[0];for(let f=1;f<b.length;f++){let s=b[f],a=Array(d).fill(void 0),u=e?e[g][f]:dS,c=[];for(let i=0;i<s.length;i++){let l=s[i],m=p.get(h[i]);l===null?u!=hS&&(a[m]=l,u==pS&&c.push(m)):a[m]=l}fS(a,c,d),r.push(a)}}return r}const mS=typeof queueMicrotask>"u"?n=>Promise.resolve().then(n):queueMicrotask;function vS(n){let e=n[0],t=e.length,r=Array(t);for(let p=0;p<r.length;p++)r[p]=p;r.sort((p,g)=>e[p]-e[g]);let d=[];for(let p=0;p<n.length;p++){let g=n[p],b=Array(t);for(let h=0;h<t;h++)b[h]=g[r[h]];d.push(b)}return d}function yS(n){let e=n[0][0],t=e.length;for(let r=1;r<n.length;r++){let d=n[r][0];if(d.length!=t)return!1;if(d!=e){for(let p=0;p<t;p++)if(d[p]!=e[p])return!1}}return!0}function bS(n,e=100){const t=n.length;if(t<=1)return!0;let r=0,d=t-1;for(;r<=d&&n[r]==null;)r++;for(;d>=r&&n[d]==null;)d--;if(d<=r)return!0;const p=Gr(1,Mi((d-r+1)/e));for(let g=n[r],b=r+p;b<=d;b+=p){const h=n[b];if(h!=null){if(h<=g)return!1;g=h}}return!0}const Lm=["January","February","March","April","May","June","July","August","September","October","November","December"],Om=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Nm(n){return n.slice(0,3)}const wS=Om.map(Nm),xS=Lm.map(Nm),CS={MMMM:Lm,MMM:xS,WWWW:Om,WWW:wS};function rl(n){return(n<10?"0":"")+n}function kS(n){return(n<10?"00":n<100?"0":"")+n}const AS={YYYY:n=>n.getFullYear(),YY:n=>(n.getFullYear()+"").slice(2),MMMM:(n,e)=>e.MMMM[n.getMonth()],MMM:(n,e)=>e.MMM[n.getMonth()],MM:n=>rl(n.getMonth()+1),M:n=>n.getMonth()+1,DD:n=>rl(n.getDate()),D:n=>n.getDate(),WWWW:(n,e)=>e.WWWW[n.getDay()],WWW:(n,e)=>e.WWW[n.getDay()],HH:n=>rl(n.getHours()),H:n=>n.getHours(),h:n=>{let e=n.getHours();return e==0?12:e>12?e-12:e},AA:n=>n.getHours()>=12?"PM":"AM",aa:n=>n.getHours()>=12?"pm":"am",a:n=>n.getHours()>=12?"p":"a",mm:n=>rl(n.getMinutes()),m:n=>n.getMinutes(),ss:n=>rl(n.getSeconds()),s:n=>n.getSeconds(),fff:n=>kS(n.getMilliseconds())};function vh(n,e){e=e||CS;let t=[],r=/\{([a-z]+)\}|[^{]+/gi,d;for(;d=r.exec(n);)t.push(d[0][0]=="{"?AS[d[1]]:d[0]);return p=>{let g="";for(let b=0;b<t.length;b++)g+=typeof t[b]=="string"?t[b]:t[b](p,e);return g}}const SS=new Intl.DateTimeFormat().resolvedOptions().timeZone;function _S(n,e){let t;return e=="UTC"||e=="Etc/UTC"?t=new Date(+n+n.getTimezoneOffset()*6e4):e==SS?t=n:(t=new Date(n.toLocaleString("en-US",{timeZone:e})),t.setMilliseconds(n.getMilliseconds())),t}const Dm=n=>n%1==0,cc=[1,2,2.5,5],$S=tl(10,-32,0,cc),Fm=tl(10,0,32,cc),TS=Fm.filter(Dm),Ds=$S.concat(Fm),yh=`
|
|
1489
|
+
`,Pm="{YYYY}",Wm=yh+Pm,Bm="{M}/{D}",il=yh+Bm,uc=il+"/{YY}",Hm="{aa}",MS="{h}:{mm}",ya=MS+Hm,zm=yh+ya,jm=":{ss}",cn=null;function Um(n){let e=n*1e3,t=e*60,r=t*60,d=r*24,p=d*30,g=d*365,b=(n==1?tl(10,0,3,cc).filter(Dm):tl(10,-3,0,cc)).concat([e,e*5,e*10,e*15,e*30,t,t*5,t*10,t*15,t*30,r,r*2,r*3,r*4,r*6,r*8,r*12,d,d*2,d*3,d*4,d*5,d*6,d*7,d*8,d*9,d*10,d*15,p,p*2,p*3,p*4,p*6,g,g*2,g*5,g*10,g*25,g*50,g*100]);const h=[[g,Pm,cn,cn,cn,cn,cn,cn,1],[d*28,"{MMM}",Wm,cn,cn,cn,cn,cn,1],[d,Bm,Wm,cn,cn,cn,cn,cn,1],[r,"{h}"+Hm,uc,cn,il,cn,cn,cn,1],[t,ya,uc,cn,il,cn,cn,cn,1],[e,jm,uc+" "+ya,cn,il+" "+ya,cn,zm,cn,1],[n,jm+".{fff}",uc+" "+ya,cn,il+" "+ya,cn,zm,cn,1]];function f(s){return(a,u,c,i,l,m)=>{let w=[],x=l>=g,M=l>=p&&l<g,_=s(c),k=yn(_*n,3),C=bh(_.getFullYear(),x?0:_.getMonth(),M||x?1:_.getDate()),L=yn(C*n,3);if(M||x){let D=M?l/p:0,R=x?l/g:0,I=k==L?k:yn(bh(C.getFullYear()+R,C.getMonth()+D,1)*n,3),H=new Date(mr(I/n)),P=H.getFullYear(),O=H.getMonth();for(let $=0;I<=i;$++){let A=bh(P+R*$,O+D*$,1),N=A-s(yn(A*n,3));I=yn((+A+N)*n,3),I<=i&&w.push(I)}}else{let D=l>=d?d:l,R=Mi(c)-Mi(k),I=L+R+ac(k-L,D);w.push(I);let H=s(I),P=H.getHours()+H.getMinutes()/t+H.getSeconds()/r,O=l/r,$=a.axes[u]._space,A=m/$;for(;I=yn(I+l,n==1?0:3),!(I>i);)if(O>1){let N=Mi(yn(P+O,6))%24,B=s(I).getHours()-N;B>1&&(B=-1),I-=B*r,P=(P+O)%24;let U=w[w.length-1];yn((I-U)/l,3)*A>=.7&&w.push(I)}else w.push(I)}return w}}return[b,h,f]}const[ES,IS,RS]=Um(1),[LS,OS,NS]=Um(.001);tl(2,-53,53,[1]);function Vm(n,e){return n.map(t=>t.map((r,d)=>d==0||d==8||r==null?r:e(d==1||t[8]==0?r:t[1]+r)))}function qm(n,e){return(t,r,d,p,g)=>{let b=e.find(i=>g>=i[0])||e[e.length-1],h,f,s,a,u,c;return r.map(i=>{let l=n(i),m=l.getFullYear(),w=l.getMonth(),x=l.getDate(),M=l.getHours(),_=l.getMinutes(),k=l.getSeconds(),C=m!=h&&b[2]||w!=f&&b[3]||x!=s&&b[4]||M!=a&&b[5]||_!=u&&b[6]||k!=c&&b[7]||b[1];return h=m,f=w,s=x,a=M,u=_,c=k,C(l)})}}function DS(n,e){let t=vh(e);return(r,d,p,g,b)=>d.map(h=>t(n(h)))}function bh(n,e,t){return new Date(n,e,t)}function Km(n,e){return e(n)}const FS="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Gm(n,e){return(t,r,d,p)=>p==null?oh:e(n(r))}function PS(n,e){let t=n.series[e];return t.width?t.stroke(n,e):t.points.width?t.points.stroke(n,e):null}function WS(n,e){return n.series[e].fill(n,e)}const BS={show:!0,live:!0,isolate:!1,mount:oS,markers:{show:!0,width:2,stroke:PS,fill:WS,dash:"solid"},idx:null,idxs:null,values:[]};function HS(n,e){let t=n.cursor.points,r=Hi(),d=t.size(n,e);_n(r,Za,d),_n(r,Qa,d);let p=d/-2;_n(r,"marginLeft",p),_n(r,"marginTop",p);let g=t.width(n,e,d);return g&&_n(r,"borderWidth",g),r}function zS(n,e){let t=n.series[e].points;return t._fill||t._stroke}function jS(n,e){let t=n.series[e].points;return t._stroke||t._fill}function US(n,e){return n.series[e].points.size}const wh=[0,0];function VS(n,e,t){return wh[0]=e,wh[1]=t,wh}function hc(n,e,t,r=!0){return d=>{d.button==0&&(!r||d.target==e)&&t(d)}}function xh(n,e,t,r=!0){return d=>{(!r||d.target==e)&&t(d)}}const qS={show:!0,x:!0,y:!0,lock:!1,move:VS,points:{one:!1,show:HS,size:US,width:0,stroke:jS,fill:zS},bind:{mousedown:hc,mouseup:hc,click:hc,dblclick:hc,mousemove:xh,mouseleave:xh,mouseenter:xh},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(n,e)=>{e.stopPropagation(),e.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(n,e,t,r,d)=>r-d,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Ym={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ch=cr({},Ym,{filter:Sm}),Xm=cr({},Ch,{size:10}),Zm=cr({},Ym,{show:!1}),kh='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"',Qm="bold "+kh,Jm=1.5,ev={show:!0,scale:"x",stroke:nh,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Qm,side:2,grid:Ch,ticks:Xm,border:Zm,font:kh,lineGap:Jm,rotate:0},KS="Value",GS="Time",tv={show:!0,scale:"x",auto:!1,sorted:1,min:vn,max:-vn,idxs:[]};function YS(n,e,t,r,d){return e.map(p=>p==null?"":ph(p))}function XS(n,e,t,r,d,p,g){let b=[],h=rs.get(d)||0;t=g?t:yn(ac(t,d),h);for(let f=t;f<=r;f=yn(f+d,h))b.push(Object.is(f,-0)?0:f);return b}function Ah(n,e,t,r,d,p,g){const b=[],h=n.scales[n.axes[e].scale].log,f=h==10?Lo:xm,s=Mi(f(t));d=ga(h,s),h==10&&(d=Ds[oo(d,Ds)]);let a=t,u=d*h;h==10&&(u=Ds[oo(u,Ds)]);do b.push(a),a=a+d,h==10&&!rs.has(a)&&(a=yn(a,rs.get(d))),a>=u&&(d=a,u=d*h,h==10&&(u=Ds[oo(u,Ds)]));while(a<=r);return b}function ZS(n,e,t,r,d,p,g){let b=n.scales[n.axes[e].scale].asinh,h=r>b?Ah(n,e,Gr(b,t),r,d):[b],f=r>=0&&t<=0?[0]:[];return(t<-b?Ah(n,e,Gr(b,-r),-t,d):[b]).reverse().map(s=>-s).concat(f,h)}const nv=/./,QS=/[12357]/,JS=/[125]/,rv=/1/,Sh=(n,e,t,r)=>n.map((d,p)=>e==4&&d==0||p%r==0&&t.test(d.toExponential()[d<0?1:0])?d:null);function e_(n,e,t,r,d){let p=n.axes[t],g=p.scale,b=n.scales[g],h=n.valToPos,f=p._space,s=h(10,g),a=h(9,g)-s>=f?nv:h(7,g)-s>=f?QS:h(5,g)-s>=f?JS:rv;if(a==rv){let u=gr(h(1,g)-s);if(u<f)return Sh(e.slice().reverse(),b.distr,a,zi(f/u)).reverse()}return Sh(e,b.distr,a,1)}function t_(n,e,t,r,d){let p=n.axes[t],g=p.scale,b=p._space,h=n.valToPos,f=gr(h(1,g)-h(2,g));return f<b?Sh(e.slice().reverse(),3,nv,zi(b/f)).reverse():e}function n_(n,e,t,r){return r==null?oh:e==null?"":ph(e)}const iv={show:!0,scale:"y",stroke:nh,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Qm,side:3,grid:Ch,ticks:Xm,border:Zm,font:kh,lineGap:Jm,rotate:0};function r_(n,e){let t=3+(n||1)*2;return yn(t*e,3)}function i_(n,e){let{scale:t,idxs:r}=n.series[0],d=n._data[0],p=n.valToPos(d[r[0]],t,!0),g=n.valToPos(d[r[1]],t,!0),b=gr(g-p),h=n.series[e],f=b/(h.points.space*on);return r[1]-r[0]<=f}const ov={scale:null,auto:!0,sorted:0,min:vn,max:-vn},sv=(n,e,t,r,d)=>d,av={show:!0,auto:!0,sorted:0,gaps:sv,alpha:1,facets:[cr({},ov,{scale:"x"}),cr({},ov,{scale:"y"})]},lv={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:sv,alpha:1,points:{show:i_,filter:null},values:null,min:vn,max:-vn,idxs:[],path:null,clip:null};function o_(n,e,t,r,d){return t/10}const cv={time:EA,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},s_=cr({},cv,{time:!1,ori:1}),uv={};function hv(n,e){let t=uv[n];return t||(t={key:n,plots:[],sub(r){t.plots.push(r)},unsub(r){t.plots=t.plots.filter(d=>d!=r)},pub(r,d,p,g,b,h,f){for(let s=0;s<t.plots.length;s++)t.plots[s]!=d&&t.plots[s].pub(r,d,p,g,b,h,f)}},n!=null&&(uv[n]=t)),t}const ba=1,_h=2;function Fs(n,e,t){const r=n.mode,d=n.series[e],p=r==2?n._data[e]:n._data,g=n.scales,b=n.bbox;let h=p[0],f=r==2?p[1]:p[e],s=r==2?g[d.facets[0].scale]:g[n.series[0].scale],a=r==2?g[d.facets[1].scale]:g[d.scale],u=b.left,c=b.top,i=b.width,l=b.height,m=n.valToPosH,w=n.valToPosV;return s.ori==0?t(d,h,f,s,a,m,w,u,c,i,l,pc,wa,gc,fv,mv):t(d,h,f,s,a,w,m,c,u,l,i,fc,xa,Mh,gv,vv)}function $h(n,e){let t=0,r=0,d=tn(n.bands,mh);for(let p=0;p<d.length;p++){let g=d[p];g.series[0]==e?t=g.dir:g.series[1]==e&&(g.dir==1?r|=1:r|=2)}return[t,r==1?-1:r==2?1:r==3?2:0]}function a_(n,e,t,r,d){let p=n.mode,g=n.series[e],b=p==2?g.facets[1].scale:g.scale,h=n.scales[b];return d==-1?h.min:d==1?h.max:h.distr==3?h.dir==1?h.min:h.max:0}function Oo(n,e,t,r,d,p){return Fs(n,e,(g,b,h,f,s,a,u,c,i,l,m)=>{let w=g.pxRound;const x=f.dir*(f.ori==0?1:-1),M=f.ori==0?wa:xa;let _,k;x==1?(_=t,k=r):(_=r,k=t);let C=w(a(b[_],f,l,c)),L=w(u(h[_],s,m,i)),D=w(a(b[k],f,l,c)),R=w(u(p==1?s.max:s.min,s,m,i)),I=new Path2D(d);return M(I,D,R),M(I,C,R),M(I,C,L),I})}function dc(n,e,t,r,d,p){let g=null;if(n.length>0){g=new Path2D;const b=e==0?gc:Mh;let h=t;for(let a=0;a<n.length;a++){let u=n[a];if(u[1]>u[0]){let c=u[0]-h;c>0&&b(g,h,r,c,r+p),h=u[1]}}let f=t+d-h,s=10;f>0&&b(g,h,r-s/2,f,r+p+s)}return g}function l_(n,e,t){let r=n[n.length-1];r&&r[0]==e?r[1]=t:n.push([e,t])}function Th(n,e,t,r,d,p,g){let b=[],h=n.length;for(let f=d==1?t:r;f>=t&&f<=r;f+=d)if(e[f]===null){let s=f,a=f;if(d==1)for(;++f<=r&&e[f]===null;)a=f;else for(;--f>=t&&e[f]===null;)a=f;let u=p(n[s]),c=a==s?u:p(n[a]),i=s-d;u=g<=0&&i>=0&&i<h?p(n[i]):u;let l=a+d;c=g>=0&&l>=0&&l<h?p(n[l]):c,c>=u&&b.push([u,c])}return b}function dv(n){return n==0?Am:n==1?mr:e=>Ns(e,n)}function pv(n){let e=n==0?pc:fc,t=n==0?(d,p,g,b,h,f)=>{d.arcTo(p,g,b,h,f)}:(d,p,g,b,h,f)=>{d.arcTo(g,p,h,b,f)},r=n==0?(d,p,g,b,h)=>{d.rect(p,g,b,h)}:(d,p,g,b,h)=>{d.rect(g,p,h,b)};return(d,p,g,b,h,f=0,s=0)=>{f==0&&s==0?r(d,p,g,b,h):(f=so(f,b/2,h/2),s=so(s,b/2,h/2),e(d,p+f,g),t(d,p+b,g,p+b,g+h,f),t(d,p+b,g+h,p,g+h,s),t(d,p,g+h,p,g,s),t(d,p,g,p+b,g,f),d.closePath())}}const pc=(n,e,t)=>{n.moveTo(e,t)},fc=(n,e,t)=>{n.moveTo(t,e)},wa=(n,e,t)=>{n.lineTo(e,t)},xa=(n,e,t)=>{n.lineTo(t,e)},gc=pv(0),Mh=pv(1),fv=(n,e,t,r,d,p)=>{n.arc(e,t,r,d,p)},gv=(n,e,t,r,d,p)=>{n.arc(t,e,r,d,p)},mv=(n,e,t,r,d,p,g)=>{n.bezierCurveTo(e,t,r,d,p,g)},vv=(n,e,t,r,d,p,g)=>{n.bezierCurveTo(t,e,d,r,g,p)};function yv(n){return(e,t,r,d,p)=>Fs(e,t,(g,b,h,f,s,a,u,c,i,l,m)=>{let{pxRound:w,points:x}=g,M,_;f.ori==0?(M=pc,_=fv):(M=fc,_=gv);const k=yn(x.width*on,3);let C=(x.size-x.width)/2*on,L=yn(C*2,3),D=new Path2D,R=new Path2D,{left:I,top:H,width:P,height:O}=e.bbox;gc(R,I-L,H-L,P+L*2,O+L*2);const $=A=>{if(h[A]!=null){let N=w(a(b[A],f,l,c)),B=w(u(h[A],s,m,i));M(D,N+C,B),_(D,N,B,C,0,sc*2)}};if(p)p.forEach($);else for(let A=r;A<=d;A++)$(A);return{stroke:k>0?D:null,fill:D,clip:R,flags:ba|_h}})}function bv(n){return(e,t,r,d,p,g)=>{r!=d&&(p!=r&&g!=r&&n(e,t,r),p!=d&&g!=d&&n(e,t,d),n(e,t,g))}}const c_=bv(wa),u_=bv(xa);function wv(n){const e=tn(n==null?void 0:n.alignGaps,0);return(t,r,d,p)=>Fs(t,r,(g,b,h,f,s,a,u,c,i,l,m)=>{[d,p]=rc(h,d,p);let w=g.pxRound,x=P=>w(a(P,f,l,c)),M=P=>w(u(P,s,m,i)),_,k;f.ori==0?(_=wa,k=c_):(_=xa,k=u_);const C=f.dir*(f.ori==0?1:-1),L={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ba},D=L.stroke;let R=!1;if(p-d>=l*4){let P=he=>t.posToVal(he,f.key,!0),O=null,$=null,A,N,B,U=x(b[C==1?d:p]),K=x(b[d]),Q=x(b[p]),J=P(C==1?K+1:Q-1);for(let he=C==1?d:p;he>=d&&he<=p;he+=C){let ne=b[he],le=(C==1?ne<J:ne>J)?U:x(ne),se=h[he];le==U?se!=null?(N=se,O==null?(_(D,le,M(N)),A=O=$=N):N<O?O=N:N>$&&($=N)):se===null&&(R=!0):(O!=null&&k(D,U,M(O),M($),M(A),M(N)),se!=null?(N=se,_(D,le,M(N)),O=$=A=N):(O=$=null,se===null&&(R=!0)),U=le,J=P(U+C))}O!=null&&O!=$&&B!=U&&k(D,U,M(O),M($),M(A),M(N))}else for(let P=C==1?d:p;P>=d&&P<=p;P+=C){let O=h[P];O===null?R=!0:O!=null&&_(D,x(b[P]),M(O))}let[I,H]=$h(t,r);if(g.fill!=null||I!=0){let P=L.fill=new Path2D(D),O=g.fillTo(t,r,g.min,g.max,I),$=M(O),A=x(b[d]),N=x(b[p]);C==-1&&([N,A]=[A,N]),_(P,N,$),_(P,A,$)}if(!g.spanGaps){let P=[];R&&P.push(...Th(b,h,d,p,C,x,e)),L.gaps=P=g.gaps(t,r,d,p,P),L.clip=dc(P,f.ori,c,i,l,m)}return H!=0&&(L.band=H==2?[Oo(t,r,d,p,D,-1),Oo(t,r,d,p,D,1)]:Oo(t,r,d,p,D,H)),L})}function h_(n){const e=tn(n.align,1),t=tn(n.ascDesc,!1),r=tn(n.alignGaps,0),d=tn(n.extend,!1);return(p,g,b,h)=>Fs(p,g,(f,s,a,u,c,i,l,m,w,x,M)=>{[b,h]=rc(a,b,h);let _=f.pxRound,{left:k,width:C}=p.bbox,L=Q=>_(i(Q,u,x,m)),D=Q=>_(l(Q,c,M,w)),R=u.ori==0?wa:xa;const I={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:ba},H=I.stroke,P=u.dir*(u.ori==0?1:-1);let O=D(a[P==1?b:h]),$=L(s[P==1?b:h]),A=$,N=$;d&&e==-1&&(N=k,R(H,N,O)),R(H,$,O);for(let Q=P==1?b:h;Q>=b&&Q<=h;Q+=P){let J=a[Q];if(J==null)continue;let he=L(s[Q]),ne=D(J);e==1?R(H,he,O):R(H,A,ne),R(H,he,ne),O=ne,A=he}let B=A;d&&e==1&&(B=k+C,R(H,B,O));let[U,K]=$h(p,g);if(f.fill!=null||U!=0){let Q=I.fill=new Path2D(H),J=f.fillTo(p,g,f.min,f.max,U),he=D(J);R(Q,B,he),R(Q,N,he)}if(!f.spanGaps){let Q=[];Q.push(...Th(s,a,b,h,P,L,r));let J=f.width*on/2,he=t||e==1?J:-J,ne=t||e==-1?-J:J;Q.forEach(le=>{le[0]+=he,le[1]+=ne}),I.gaps=Q=f.gaps(p,g,b,h,Q),I.clip=dc(Q,u.ori,m,w,x,M)}return K!=0&&(I.band=K==2?[Oo(p,g,b,h,H,-1),Oo(p,g,b,h,H,1)]:Oo(p,g,b,h,H,K)),I})}function xv(n,e,t,r,d,p,g=vn){if(n.length>1){let b=null;for(let h=0,f=1/0;h<n.length;h++)if(e[h]!==void 0){if(b!=null){let s=gr(n[h]-n[b]);s<f&&(f=s,g=gr(t(n[h],r,d,p)-t(n[b],r,d,p)))}b=h}}return g}function d_(n){n=n||nl;const e=tn(n.size,[.6,vn,1]),t=n.align||0,r=n.gap||0;let d=n.radius;d=d==null?[0,0]:typeof d=="number"?[d,0]:d;const p=Ut(d),g=1-e[0],b=tn(e[1],vn),h=tn(e[2],1),f=tn(n.disp,nl),s=tn(n.each,c=>{}),{fill:a,stroke:u}=f;return(c,i,l,m)=>Fs(c,i,(w,x,M,_,k,C,L,D,R,I,H)=>{let P=w.pxRound,O=t,$=r*on,A=b*on,N=h*on,B,U;_.ori==0?[B,U]=p(c,i):[U,B]=p(c,i);const K=_.dir*(_.ori==0?1:-1);let Q=_.ori==0?gc:Mh,J=_.ori==0?s:(qe,Nt,Vt,Ln,Ar,vr,bn)=>{s(qe,Nt,Vt,Ar,Ln,bn,vr)},he=tn(c.bands,mh).find(qe=>qe.series[0]==i),ne=he!=null?he.dir:0,le=w.fillTo(c,i,w.min,w.max,ne),se=P(L(le,k,H,R)),de,me,_e,Te=I,Me=P(w.width*on),Je=!1,Xe=null,ht=null,st=null,dt=null;a!=null&&(Me==0||u!=null)&&(Je=!0,Xe=a.values(c,i,l,m),ht=new Map,new Set(Xe).forEach(qe=>{qe!=null&&ht.set(qe,new Path2D)}),Me>0&&(st=u.values(c,i,l,m),dt=new Map,new Set(st).forEach(qe=>{qe!=null&&dt.set(qe,new Path2D)})));let{x0:Jt,size:$n}=f;if(Jt!=null&&$n!=null){O=1,x=Jt.values(c,i,l,m),Jt.unit==2&&(x=x.map(Nt=>c.posToVal(D+Nt*I,_.key,!0)));let qe=$n.values(c,i,l,m);$n.unit==2?me=qe[0]*I:me=C(qe[0],_,I,D)-C(0,_,I,D),Te=xv(x,M,C,_,I,D,Te),_e=Te-me+$}else Te=xv(x,M,C,_,I,D,Te),_e=Te*g+$,me=Te-_e;_e<1&&(_e=0),Me>=me/2&&(Me=0),_e<5&&(P=Am);let Ht=_e>0,kr=Te-_e-(Ht?Me:0);me=P(gh(kr,N,A)),de=(O==0?me/2:O==K?0:me)-O*K*((O==0?$/2:0)+(Ht?Me/2:0));const fn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Bn=Je?null:new Path2D;let ir=null;if(he!=null)ir=c.data[he.series[1]];else{let{y0:qe,y1:Nt}=f;qe!=null&&Nt!=null&&(M=Nt.values(c,i,l,m),ir=qe.values(c,i,l,m))}let Or=B*me,bt=U*me;for(let qe=K==1?l:m;qe>=l&&qe<=m;qe+=K){let Nt=M[qe];if(Nt==null)continue;if(ir!=null){let Zt=ir[qe]??0;if(Nt-Zt==0)continue;se=L(Zt,k,H,R)}let Vt=_.distr!=2||f!=null?x[qe]:qe,Ln=C(Vt,_,I,D),Ar=L(tn(Nt,le),k,H,R),vr=P(Ln-de),bn=P(Gr(Ar,se)),qn=P(so(Ar,se)),Hn=bn-qn;if(Nt!=null){let Zt=Nt<0?bt:Or,dn=Nt<0?Or:bt;Je?(Me>0&&st[qe]!=null&&Q(dt.get(st[qe]),vr,qn+Mi(Me/2),me,Gr(0,Hn-Me),Zt,dn),Xe[qe]!=null&&Q(ht.get(Xe[qe]),vr,qn+Mi(Me/2),me,Gr(0,Hn-Me),Zt,dn)):Q(Bn,vr,qn+Mi(Me/2),me,Gr(0,Hn-Me),Zt,dn),J(c,i,qe,vr-Me/2,qn,me+Me,Hn)}}return Me>0?fn.stroke=Je?dt:Bn:Je||(fn._fill=w.width==0?w._fill:w._stroke??w._fill,fn.width=0),fn.fill=Je?ht:Bn,fn})}function p_(n,e){const t=tn(e==null?void 0:e.alignGaps,0);return(r,d,p,g)=>Fs(r,d,(b,h,f,s,a,u,c,i,l,m,w)=>{[p,g]=rc(f,p,g);let x=b.pxRound,M=B=>x(u(B,s,m,i)),_=B=>x(c(B,a,w,l)),k,C,L;s.ori==0?(k=pc,L=wa,C=mv):(k=fc,L=xa,C=vv);const D=s.dir*(s.ori==0?1:-1);let R=M(h[D==1?p:g]),I=R,H=[],P=[];for(let B=D==1?p:g;B>=p&&B<=g;B+=D)if(f[B]!=null){let U=h[B],K=M(U);H.push(I=K),P.push(_(f[B]))}const O={stroke:n(H,P,k,L,C,x),fill:null,clip:null,band:null,gaps:null,flags:ba},$=O.stroke;let[A,N]=$h(r,d);if(b.fill!=null||A!=0){let B=O.fill=new Path2D($),U=b.fillTo(r,d,b.min,b.max,A),K=_(U);L(B,I,K),L(B,R,K)}if(!b.spanGaps){let B=[];B.push(...Th(h,f,p,g,D,M,t)),O.gaps=B=b.gaps(r,d,p,g,B),O.clip=dc(B,s.ori,i,l,m,w)}return N!=0&&(O.band=N==2?[Oo(r,d,p,g,$,-1),Oo(r,d,p,g,$,1)]:Oo(r,d,p,g,$,N)),O})}function f_(n){return p_(g_,n)}function g_(n,e,t,r,d,p){const g=n.length;if(g<2)return null;const b=new Path2D;if(t(b,n[0],e[0]),g==2)r(b,n[1],e[1]);else{let h=Array(g),f=Array(g-1),s=Array(g-1),a=Array(g-1);for(let u=0;u<g-1;u++)s[u]=e[u+1]-e[u],a[u]=n[u+1]-n[u],f[u]=s[u]/a[u];h[0]=f[0];for(let u=1;u<g-1;u++)f[u]===0||f[u-1]===0||f[u-1]>0!=f[u]>0?h[u]=0:(h[u]=3*(a[u-1]+a[u])/((2*a[u]+a[u-1])/f[u-1]+(a[u]+2*a[u-1])/f[u]),isFinite(h[u])||(h[u]=0));h[g-1]=f[g-2];for(let u=0;u<g-1;u++)d(b,n[u]+a[u]/3,e[u]+h[u]*a[u]/3,n[u+1]-a[u]/3,e[u+1]-h[u+1]*a[u]/3,n[u+1],e[u+1])}return b}const Eh=new Set;function Cv(){for(let n of Eh)n.syncRect(!0)}pa&&(Ls(YA,fa,Cv),Ls(XA,fa,Cv,!0),Ls(tc,fa,()=>{Wr.pxRatio=on}));const m_=wv(),v_=yv();function kv(n,e,t,r){return(r?[n[0],n[1]].concat(n.slice(2)):[n[0]].concat(n.slice(1))).map((d,p)=>Ih(d,p,e,t))}function y_(n,e){return n.map((t,r)=>r==0?{}:cr({},e,t))}function Ih(n,e,t,r){return cr({},e==0?t:r,n)}function Av(n,e,t){return e==null?ma:[e,t]}const b_=Av;function w_(n,e,t){return e==null?ma:oc(e,t,dh,!0)}function Sv(n,e,t,r){return e==null?ma:ic(e,t,n.scales[r].log,!1)}const x_=Sv;function _v(n,e,t,r){return e==null?ma:hh(e,t,n.scales[r].log,!1)}const C_=_v;function k_(n,e,t,r,d){let p=Gr(Cm(n),Cm(e)),g=e-n,b=oo(d/r*g,t);do{let h=t[b],f=r*h/g;if(f>=d&&p+(h<5?rs.get(h):0)<=17)return[h,f]}while(++b<t.length);return[0,0]}function $v(n){let e,t;return n=n.replace(/(\d+)px/,(r,d)=>(e=mr((t=+d)*on))+"px"),[n,e,t]}function A_(n){n.show&&[n.font,n.labelFont].forEach(e=>{let t=yn(e[2]*on,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t})}function Wr(n,e,t){const r={mode:tn(n.mode,1)},d=r.mode;function p(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?1-ge:ge)}function g(V,X,ie,oe){let ge=X.valToPct(V);return oe+ie*(X.dir==-1?ge:1-ge)}function b(V,X,ie,oe){return X.ori==0?p(V,X,ie,oe):g(V,X,ie,oe)}r.valToPosH=p,r.valToPosV=g;let h=!1;r.status=0;const f=r.root=Hi(IA);if(n.id!=null&&(f.id=n.id),$i(f,n.class),n.title){let V=Hi(OA,f);V.textContent=n.title}const s=io("canvas"),a=r.ctx=s.getContext("2d"),u=Hi(NA,f);Ls("click",u,V=>{V.target===i&&(ln!=Vi||Kt!=Mo)&&Yn.click(r,V)},!0);const c=r.under=Hi(DA,u);u.appendChild(s);const i=r.over=Hi(FA,u);n=va(n);const l=+tn(n.pxAlign,1),m=dv(l);(n.plugins||[]).forEach(V=>{V.opts&&(n=V.opts(r,n)||n)});const w=n.ms||.001,x=r.series=d==1?kv(n.series||[],tv,lv,!1):y_(n.series||[null],av),M=r.axes=kv(n.axes||[],ev,iv,!0),_=r.scales={},k=r.bands=n.bands||[];k.forEach(V=>{V.fill=Ut(V.fill||null),V.dir=tn(V.dir,-1)});const C=d==2?x[1].facets[0].scale:x[0].scale,L={axes:Po,series:_a},D=(n.drawOrder||["axes","series"]).map(V=>L[V]);function R(V){const X=V.distr==3?ie=>Lo(ie>0?ie:V.clamp(r,ie,V.min,V.max,V.key)):V.distr==4?ie=>fh(ie,V.asinh):V.distr==100?ie=>V.fwd(ie):ie=>ie;return ie=>{let oe=X(ie),{_min:ge,_max:xe}=V,Ee=xe-ge;return(oe-ge)/Ee}}function I(V){let X=_[V];if(X==null){let ie=(n.scales||nl)[V]||nl;if(ie.from!=null){I(ie.from);let oe=cr({},_[ie.from],ie,{key:V});oe.valToPct=R(oe),_[V]=oe}else{X=_[V]=cr({},V==C?cv:s_,ie),X.key=V;let oe=X.time,ge=X.range,xe=is(ge);if((V!=C||d==2&&!oe)&&(xe&&(ge[0]==null||ge[1]==null)&&(ge={min:ge[0]==null?ym:{mode:1,hard:ge[0],soft:ge[0]},max:ge[1]==null?ym:{mode:1,hard:ge[1],soft:ge[1]}},xe=!1),!xe&&lc(ge))){let Ee=ge;ge=(We,He,Ye)=>He==null?ma:oc(He,Ye,Ee)}X.range=Ut(ge||(oe?b_:V==C?X.distr==3?x_:X.distr==4?C_:Av:X.distr==3?Sv:X.distr==4?_v:w_)),X.auto=Ut(xe?!1:X.auto),X.clamp=Ut(X.clamp||o_),X._min=X._max=null,X.valToPct=R(X)}}}I("x"),I("y"),d==1&&x.forEach(V=>{I(V.scale)}),M.forEach(V=>{I(V.scale)});for(let V in n.scales)I(V);const H=_[C],P=H.distr;let O,$;H.ori==0?($i(f,RA),O=p,$=g):($i(f,LA),O=g,$=p);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(mr(V/w))),B=n.fmtDate||vh,U=w==1?RS(N):NS(N),K=qm(N,Vm(w==1?IS:OS,B)),Q=Gm(N,Km(FS,B)),J=[],he=r.legend=cr({},BS,n.legend),ne=r.cursor=cr({},qS,{drag:{y:d==2}},n.cursor),le=he.show,se=ne.show,de=he.markers;he.idxs=J,de.width=Ut(de.width),de.dash=Ut(de.dash),de.stroke=Ut(de.stroke),de.fill=Ut(de.fill);let me,_e,Te,Me=[],Je=[],Xe,ht=!1,st={};if(he.live){const V=x[1]?x[1].values:null;ht=V!=null,Xe=ht?V(r,1,0):{_:0};for(let X in Xe)st[X]=oh}if(le)if(me=io("table",jA,f),Te=io("tbody",null,me),he.mount(r,me),ht){_e=io("thead",null,me,Te);let V=io("tr",null,_e);io("th",null,V);for(var dt in Xe)io("th",nm,V).textContent=dt}else $i(me,VA),he.live&&$i(me,UA);const Jt={show:!0},$n={show:!1};function Ht(V,X){if(X==0&&(ht||!he.live||d==2))return ma;let ie=[],oe=io("tr",qA,Te,Te.childNodes[X]);$i(oe,V.class),V.show||$i(oe,Rs);let ge=io("th",null,oe);if(de.show){let We=Hi(KA,ge);if(X>0){let He=de.width(r,X);He&&(We.style.border=He+"px "+de.dash(r,X)+" "+de.stroke(r,X)),We.style.background=de.fill(r,X)}}let xe=Hi(nm,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)),fn("click",ge,We=>{if(ne._lock)return;yi(We);let He=x.indexOf(V);if((We.ctrlKey||We.metaKey)!=he.isolate){let Ye=x.some((Qe,rt)=>rt>0&&rt!=He&&Qe.show);x.forEach((Qe,rt)=>{rt>0&&ii(rt,Ye?rt==He?Jt:$n:Jt,!0,pt.setSeries)})}else ii(He,{show:!V.show},!0,pt.setSeries)},!1),bi&&fn(sm,ge,We=>{ne._lock||(yi(We),ii(x.indexOf(V),Gi,!0,pt.setSeries))},!1));for(var Ee in Xe){let We=io("td",GA,oe);We.textContent="--",ie.push(We)}return[oe,ie]}const kr=new Map;function fn(V,X,ie,oe=!0){const ge=kr.get(X)||{},xe=ne.bind[V](r,X,ie,oe);xe&&(Ls(V,X,ge[V]=xe),kr.set(X,ge))}function Bn(V,X,ie){const oe=kr.get(X)||{};for(let ge in oe)(V==null||ge==V)&&(uh(ge,X,oe[ge]),delete oe[ge]);V==null&&kr.delete(X)}let ir=0,Or=0,bt=0,qe=0,Nt=0,Vt=0,Ln=Nt,Ar=Vt,vr=bt,bn=qe,qn=0,Hn=0,Zt=0,dn=0;r.bbox={};let Hr=!1,Jr=!1,ei=!1,Ii=!1,gi=!1,Kn=!1;function co(V,X,ie){(ie||V!=r.width||X!=r.height)&&mi(V,X),po(!1),ei=!0,Jr=!0,To()}function mi(V,X){r.width=ir=bt=V,r.height=Or=qe=X,Nt=Vt=0,vi(),os();let ie=r.bbox;qn=ie.left=Ns(Nt*on,.5),Hn=ie.top=Ns(Vt*on,.5),Zt=ie.width=Ns(bt*on,.5),dn=ie.height=Ns(qe*on,.5)}const zs=3;function ti(){let V=!1,X=0;for(;!V;){X++;let ie=$a(X),oe=yl(X);V=X==zs||ie&&oe,V||(mi(r.width,r.height),Jr=!0)}}function Tn({width:V,height:X}){co(V,X)}r.setSize=Tn;function vi(){let V=!1,X=!1,ie=!1,oe=!1;M.forEach((ge,xe)=>{if(ge.show&&ge._show){let{side:Ee,_size:We}=ge,He=Ee%2,Ye=ge.label!=null?ge.labelSize:0,Qe=We+Ye;Qe>0&&(He?(bt-=Qe,Ee==3?(Nt+=Qe,oe=!0):ie=!0):(qe-=Qe,Ee==0?(Vt+=Qe,V=!0):X=!0))}}),xi[0]=V,xi[1]=ie,xi[2]=X,xi[3]=oe,bt-=_r[1]+_r[3],Nt+=_r[3],qe-=_r[2]+_r[0],Vt+=_r[0]}function os(){let V=Nt+bt,X=Vt+qe,ie=Nt,oe=Vt;function ge(xe,Ee){switch(xe){case 1:return V+=Ee,V-Ee;case 2:return X+=Ee,X-Ee;case 3:return ie-=Ee,ie+Ee;case 0:return oe-=Ee,oe+Ee}}M.forEach((xe,Ee)=>{if(xe.show&&xe._show){let We=xe.side;xe._pos=ge(We,xe._size),xe.label!=null&&(xe._lpos=ge(We,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=Ut(V.prox),oe=V.bias??(V.bias=0);ne.dataIdx=(ge,xe,Ee,We)=>{if(xe==0)return Ee;let He=Ee,Ye=ie(ge,xe,Ee,We)??vn,Qe=Ye>=0&&Ye<vn,rt=H.ori==0?bt:qe,xt=ne.left,Bt=e[0],At=e[xe];if(X.has(At[Ee])){He=null;let Ft=null,gt=null,ct;if(oe==0||oe==-1)for(ct=Ee;Ft==null&&ct-- >0;)X.has(At[ct])||(Ft=ct);if(oe==0||oe==1)for(ct=Ee;gt==null&&ct++<At.length;)X.has(At[ct])||(gt=ct);if(Ft!=null||gt!=null)if(Qe){let xn=Ft==null?-1/0:O(Bt[Ft],H,rt,0),Fn=gt==null?1/0:O(Bt[gt],H,rt,0),dr=xt-xn,Yt=Fn-xt;dr<=Yt?dr<=Ye&&(He=Ft):Yt<=Ye&&(He=gt)}else He=gt==null?Ft:Ft==null?gt:Ee-Ft<=gt-Ee?Ft:gt}else Qe&&gr(xt-O(Bt[Ee],H,rt,0))>Ye&&(He=null);return He}}const yi=V=>{ne.event=V};ne.idxs=J,ne._lock=!1;let Mn=ne.points;Mn.show=Ut(Mn.show),Mn.size=Ut(Mn.size),Mn.stroke=Ut(Mn.stroke),Mn.width=Ut(Mn.width),Mn.fill=Ut(Mn.fill);const yr=r.focus=cr({},n.focus||{alpha:.3},ne.focus),bi=yr.prox>=0,En=bi&&Mn.one;let On=[],Sr=[],wi=[];function Ao(V,X){let ie=Mn.show(r,X);if(ie instanceof HTMLElement)return $i(ie,zA),$i(ie,V.class),bo(ie,-10,-10,bt,qe),i.insertBefore(ie,On[X]),ie}function So(V,X){if(d==1||X>0){let ie=d==1&&_[V.scale].time,oe=V.value;V.value=ie?Im(oe)?Gm(N,Km(oe,B)):oe||Q:oe||n_,V.label=V.label||(ie?GS:KS)}if(En||X>0){V.width=V.width==null?1:V.width,V.paths=V.paths||m_||sS,V.fillTo=Ut(V.fillTo||a_),V.pxAlign=+tn(V.pxAlign,l),V.pxRound=dv(V.pxAlign),V.stroke=Ut(V.stroke||null),V.fill=Ut(V.fill||null),V._stroke=V._fill=V._paths=V._focus=null;let ie=r_(Gr(1,V.width),1),oe=V.points=cr({},{size:ie,width:Gr(1,ie*.2),stroke:V.stroke,space:ie*2,paths:v_,_stroke:null,_fill:null},V.points);oe.show=Ut(oe.show),oe.filter=Ut(oe.filter),oe.fill=Ut(oe.fill),oe.stroke=Ut(oe.stroke),oe.paths=Ut(oe.paths),oe.pxAlign=V.pxAlign}if(le){let ie=Ht(V,X);Me.splice(X,0,ie[0]),Je.splice(X,0,ie[1]),he.values.push(null)}if(se){J.splice(X,0,null);let ie=null;En?X==0&&(ie=Ao(V,X)):X>0&&(ie=Ao(V,X)),On.splice(X,0,ie),Sr.splice(X,0,0),wi.splice(X,0,0)}at("addSeries",X)}function ss(V,X){X=X??x.length,V=d==1?Ih(V,X,tv,lv):Ih(V,X,{},av),x.splice(X,0,V),So(x[X],X)}r.addSeries=ss;function ni(V){if(x.splice(V,1),le){he.values.splice(V,1),Je.splice(V,1);let X=Me.splice(V,1)[0];Bn(null,X.firstChild),X.remove()}se&&(J.splice(V,1),On.splice(V,1)[0].remove(),Sr.splice(V,1),wi.splice(V,1)),at("delSeries",V)}r.delSeries=ni;const xi=[!1,!1,!1,!1];function zr(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=Ut(V.size),V.space=Ut(V.space),V.rotate=Ut(V.rotate),is(V.incrs)&&V.incrs.forEach(Ee=>{!rs.has(Ee)&&rs.set(Ee,Mm(Ee))}),V.incrs=Ut(V.incrs||(oe.distr==2?TS:ge?w==1?ES:LS:Ds)),V.splits=Ut(V.splits||(ge&&oe.distr==1?U:oe.distr==3?Ah:oe.distr==4?ZS:XS)),V.stroke=Ut(V.stroke),V.grid.stroke=Ut(V.grid.stroke),V.ticks.stroke=Ut(V.ticks.stroke),V.border.stroke=Ut(V.border.stroke);let xe=V.values;V.values=is(xe)&&!is(xe[0])?Ut(xe):ge?is(xe)?qm(N,Vm(xe,B)):Im(xe)?DS(N,xe):xe||K:xe||YS,V.filter=Ut(V.filter||(oe.distr>=3&&oe.log==10?e_:oe.distr==3&&oe.log==2?t_:Sm)),V.font=$v(V.font),V.labelFont=$v(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&&(xi[X]=!0,V._el=Hi(PA,u))}}function Dt(V,X,ie,oe){let[ge,xe,Ee,We]=ie,He=X%2,Ye=0;return He==0&&(We||xe)&&(Ye=X==0&&!ge||X==2&&!Ee?mr(ev.size/3):0),He==1&&(ge||Ee)&&(Ye=X==1&&!xe||X==3&&!We?mr(iv.size/2):0),Ye}const No=r.padding=(n.padding||[Dt,Dt,Dt,Dt]).map(V=>Ut(tn(V,Dt))),_r=r._padding=No.map((V,X)=>V(r,X,xi,0));let ce,ze=null,Fe=null;const Tt=d==1?x[0].idxs:null;let Qt=null,qt=!1;function $r(V,X){if(e=V??[],r.data=r._data=e,d==2){ce=0;for(let ie=1;ie<x.length;ie++)ce+=e[ie][0].length}else{e.length==0&&(r.data=r._data=e=[[]]),Qt=e[0],ce=Qt.length;let ie=e;if(P==2){ie=e.slice();let oe=ie[0]=Array(ce);for(let ge=0;ge<ce;ge++)oe[ge]=ge}r._data=e=ie}if(po(!0),at("setData"),P==2&&(ei=!0),X!==!1){let ie=H;ie.auto(r,qt)?br():ur(C,ie.min,ie.max),Ii=Ii||ne.left>=0,Kn=!0,To()}}r.setData=$r;function br(){qt=!0;let V,X;d==1&&(ce>0?(ze=Tt[0]=0,Fe=Tt[1]=ce-1,V=e[0][ze],X=e[0][Fe],P==2?(V=ze,X=Fe):V==X&&(P==3?[V,X]=ic(V,V,H.log,!1):P==4?[V,X]=hh(V,V,H.log,!1):H.time?X=V+mr(86400/w):[V,X]=oc(V,X,dh,!0))):(ze=Tt[0]=V=null,Fe=Tt[1]=X=null)),ur(C,V,X)}let Gn,Tr,wn,uo,jr,as,js,Us,ls,wr;function Vs(V,X,ie,oe,ge,xe){V??(V=im),ie??(ie=mh),oe??(oe="butt"),ge??(ge=im),xe??(xe="round"),V!=Gn&&(a.strokeStyle=Gn=V),ge!=Tr&&(a.fillStyle=Tr=ge),X!=wn&&(a.lineWidth=wn=X),xe!=jr&&(a.lineJoin=jr=xe),oe!=as&&(a.lineCap=as=oe),ie!=uo&&a.setLineDash(uo=ie)}function Do(V,X,ie,oe){X!=Tr&&(a.fillStyle=Tr=X),V!=js&&(a.font=js=V),ie!=Us&&(a.textAlign=Us=ie),oe!=ls&&(a.textBaseline=ls=oe)}function cs(V,X,ie,oe,ge=0){if(oe.length>0&&V.auto(r,qt)&&(X==null||X.min==null)){let xe=tn(ze,0),Ee=tn(Fe,oe.length-1),We=ie.min==null?eS(oe,xe,Ee,ge,V.distr==3):[ie.min,ie.max];V.min=so(V.min,ie.min=We[0]),V.max=Gr(V.max,ie.max=We[1])}}const us={min:null,max:null};function _o(){for(let oe in _){let ge=_[oe];A[oe]==null&&(ge.min==null||A[C]!=null&&ge.auto(r,qt))&&(A[oe]=us)}for(let oe in _){let ge=_[oe];A[oe]==null&&ge.from!=null&&A[ge.from]!=null&&(A[oe]=us)}A[C]!=null&&po(!0);let V={};for(let oe in A){let ge=A[oe];if(ge!=null){let xe=V[oe]=va(_[oe],cS);if(ge.min!=null)cr(xe,ge);else if(oe!=C||d==2)if(ce==0&&xe.from==null){let Ee=xe.range(r,null,null,oe);xe.min=Ee[0],xe.max=Ee[1]}else xe.min=vn,xe.max=-vn}}if(ce>0){x.forEach((oe,ge)=>{if(d==1){let xe=oe.scale,Ee=A[xe];if(Ee==null)return;let We=V[xe];if(ge==0){let He=We.range(r,We.min,We.max,xe);We.min=He[0],We.max=He[1],ze=oo(We.min,e[0]),Fe=oo(We.max,e[0]),Fe-ze>1&&(e[0][ze]<We.min&&ze++,e[0][Fe]>We.max&&Fe--),oe.min=Qt[ze],oe.max=Qt[Fe]}else oe.show&&oe.auto&&cs(We,Ee,oe,e[ge],oe.sorted);oe.idxs[0]=ze,oe.idxs[1]=Fe}else if(ge>0&&oe.show&&oe.auto){let[xe,Ee]=oe.facets,We=xe.scale,He=Ee.scale,[Ye,Qe]=e[ge],rt=V[We],xt=V[He];rt!=null&&cs(rt,A[We],xe,Ye,xe.sorted),xt!=null&&cs(xt,A[He],Ee,Qe,Ee.sorted),oe.min=Ee.min,oe.max=Ee.max}});for(let oe in V){let ge=V[oe],xe=A[oe];if(ge.from==null&&(xe==null||xe.min==null)){let Ee=ge.range(r,ge.min==vn?null:ge.min,ge.max==-vn?null:ge.max,oe);ge.min=Ee[0],ge.max=Ee[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 Ee=ge.range(r,xe.min,xe.max,oe);ge.min=Ee[0],ge.max=Ee[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 Ee=xe.distr;xe._min=Ee==3?Lo(xe.min):Ee==4?fh(xe.min,xe.asinh):Ee==100?xe.fwd(xe.min):xe.min,xe._max=Ee==3?Lo(xe.max):Ee==4?fh(xe.max,xe.asinh):Ee==100?xe.fwd(xe.max):xe.max,X[oe]=ie=!0}}if(ie){x.forEach((oe,ge)=>{d==2?ge>0&&X.y&&(oe._paths=null):X[oe.scale]&&(oe._paths=null)});for(let oe in X)ei=!0,at("setScale",oe);se&&ne.left>=0&&(Ii=Kn=!0)}for(let oe in A)A[oe]=null}function qs(V){let X=gh(ze-1,0,ce-1),ie=gh(Fe+1,0,ce-1);for(;V[X]==null&&X>0;)X--;for(;V[ie]==null&&ie<ce-1;)ie++;return[X,ie]}function _a(){if(ce>0){let V=x.some(X=>X._focus)&&wr!=yr.alpha;V&&(a.globalAlpha=wr=yr.alpha),x.forEach((X,ie)=>{if(ie>0&&X.show&&(hs(ie,!1),hs(ie,!0),X._paths==null)){let oe=wr;wr!=X.alpha&&(a.globalAlpha=wr=X.alpha);let ge=d==2?[0,e[ie][0].length-1]:qs(e[ie]);X._paths=X.paths(r,ie,ge[0],ge[1]),wr!=oe&&(a.globalAlpha=wr=oe)}}),x.forEach((X,ie)=>{if(ie>0&&X.show){let oe=wr;wr!=X.alpha&&(a.globalAlpha=wr=X.alpha),X._paths!=null&&ds(ie,!1);{let ge=X._paths!=null?X._paths.gaps:null,xe=X.points.show(r,ie,ze,Fe,ge),Ee=X.points.filter(r,ie,xe,ge);(xe||Ee)&&(X.points._paths=X.points.paths(r,ie,ze,Fe,Ee),ds(ie,!0))}wr!=oe&&(a.globalAlpha=wr=oe),at("drawSeries",ie)}}),V&&(a.globalAlpha=wr=1)}}function hs(V,X){let ie=X?x[V].points:x[V];ie._stroke=ie.stroke(r,V),ie._fill=ie.fill(r,V)}function ds(V,X){let ie=X?x[V].points:x[V],{stroke:oe,fill:ge,clip:xe,flags:Ee,_stroke:We=ie._stroke,_fill:He=ie._fill,_width:Ye=ie.width}=ie._paths;Ye=yn(Ye*on,3);let Qe=null,rt=Ye%2/2;X&&He==null&&(He=Ye>0?"#fff":We);let xt=ie.pxAlign==1&&rt>0;if(xt&&a.translate(rt,rt),!X){let Bt=qn-Ye/2,At=Hn-Ye/2,Ft=Zt+Ye,gt=dn+Ye;Qe=new Path2D,Qe.rect(Bt,At,Ft,gt)}X?Fo(We,Ye,ie.dash,ie.cap,He,oe,ge,Ee,xe):Ks(V,We,Ye,ie.dash,ie.cap,He,oe,ge,Ee,Qe,xe),xt&&a.translate(-rt,-rt)}function Ks(V,X,ie,oe,ge,xe,Ee,We,He,Ye,Qe){let rt=!1;He!=0&&k.forEach((xt,Bt)=>{if(xt.series[0]==V){let At=x[xt.series[1]],Ft=e[xt.series[1]],gt=(At._paths||nl).band;is(gt)&&(gt=xt.dir==1?gt[0]:gt[1]);let ct,xn=null;At.show&>&&nS(Ft,ze,Fe)?(xn=xt.fill(r,Bt)||xe,ct=At._paths.clip):gt=null,Fo(X,ie,oe,ge,xn,Ee,We,He,Ye,Qe,ct,gt),rt=!0}}),rt||Fo(X,ie,oe,ge,xe,Ee,We,He,Ye,Qe)}const ps=ba|_h;function Fo(V,X,ie,oe,ge,xe,Ee,We,He,Ye,Qe,rt){Vs(V,X,ie,oe,ge),(He||Ye||rt)&&(a.save(),He&&a.clip(He),Ye&&a.clip(Ye)),rt?(We&ps)==ps?(a.clip(rt),Qe&&a.clip(Qe),xr(ge,Ee),Ui(V,xe,X)):We&_h?(xr(ge,Ee),a.clip(rt),Ui(V,xe,X)):We&ba&&(a.save(),a.clip(rt),Qe&&a.clip(Qe),xr(ge,Ee),a.restore(),Ui(V,xe,X)):(xr(ge,Ee),Ui(V,xe,X)),(He||Ye||rt)&&a.restore()}function Ui(V,X,ie){ie>0&&(X instanceof Map?X.forEach((oe,ge)=>{a.strokeStyle=Gn=ge,a.stroke(oe)}):X!=null&&V&&a.stroke(X))}function xr(V,X){X instanceof Map?X.forEach((ie,oe)=>{a.fillStyle=Tr=oe,a.fill(ie)}):X!=null&&V&&a.fill(X)}function $o(V,X,ie,oe){let ge=M[V],xe;if(oe<=0)xe=[0,0];else{let Ee=ge._space=ge.space(r,V,X,ie,oe),We=ge._incrs=ge.incrs(r,V,X,ie,oe,Ee);xe=k_(X,ie,We,oe,Ee)}return ge._found=xe}function ho(V,X,ie,oe,ge,xe,Ee,We,He,Ye){let Qe=Ee%2/2;l==1&&a.translate(Qe,Qe),Vs(We,Ee,He,Ye,We),a.beginPath();let rt,xt,Bt,At,Ft=ge+(oe==0||oe==3?-xe:xe);ie==0?(xt=ge,At=Ft):(rt=ge,Bt=Ft);for(let gt=0;gt<V.length;gt++)X[gt]!=null&&(ie==0?rt=Bt=V[gt]:xt=At=V[gt],a.moveTo(rt,xt),a.lineTo(Bt,At));a.stroke(),l==1&&a.translate(-Qe,-Qe)}function $a(V){let X=!0;return M.forEach((ie,oe)=>{if(!ie.show)return;let ge=_[ie.scale];if(ge.min==null){ie._show&&(X=!1,ie._show=!1,po(!1));return}else ie._show||(X=!1,ie._show=!0,po(!1));let xe=ie.side,Ee=xe%2,{min:We,max:He}=ge,[Ye,Qe]=$o(oe,We,He,Ee==0?bt:qe);if(Qe==0)return;let rt=ge.distr==2,xt=ie._splits=ie.splits(r,oe,We,He,Ye,Qe,rt),Bt=ge.distr==2?xt.map(ct=>Qt[ct]):xt,At=ge.distr==2?Qt[xt[1]]-Qt[xt[0]]:Ye,Ft=ie._values=ie.values(r,ie.filter(r,Bt,oe,Qe,At),oe,Qe,At);ie._rotate=xe==2?ie.rotate(r,Ft,oe,Qe):0;let gt=ie._size;ie._size=zi(ie.size(r,Ft,oe,V)),gt!=null&&ie._size!=gt&&(X=!1)}),X}function yl(V){let X=!0;return No.forEach((ie,oe)=>{let ge=ie(r,oe,xi,V);ge!=_r[oe]&&(X=!1),_r[oe]=ge}),X}function Po(){for(let V=0;V<M.length;V++){let X=M[V];if(!X.show||!X._show)continue;let ie=X.side,oe=ie%2,ge,xe,Ee=X.stroke(r,V),We=ie==0||ie==3?-1:1,[He,Ye]=X._found;if(X.label!=null){let mn=X.labelGap*We,Rr=mr((X._lpos+mn)*on);Do(X.labelFont[0],Ee,"center",ie==2?Ja:rm),a.save(),oe==1?(ge=xe=0,a.translate(Rr,mr(Hn+dn/2)),a.rotate((ie==3?-sc:sc)/2)):(ge=mr(qn+Zt/2),xe=Rr);let jo=km(X.label)?X.label(r,V,He,Ye):X.label;a.fillText(jo,ge,xe),a.restore()}if(Ye==0)continue;let Qe=_[X.scale],rt=oe==0?Zt:dn,xt=oe==0?qn:Hn,Bt=X._splits,At=Qe.distr==2?Bt.map(mn=>Qt[mn]):Bt,Ft=Qe.distr==2?Qt[Bt[1]]-Qt[Bt[0]]:He,gt=X.ticks,ct=X.border,xn=gt.show?gt.size:0,Fn=mr(xn*on),dr=mr((X.alignTo==2?X._size-xn-X.gap:X.gap)*on),Yt=X._rotate*-sc/180,fe=m(X._pos*on),$e=(Fn+dr)*We,Ce=fe+$e;xe=oe==0?Ce:0,ge=oe==1?Ce:0;let Ke=X.font[0],ft=X.align==1?da:X.align==2?th:Yt>0?da:Yt<0?th:oe==0?"center":ie==3?th:da,Et=Yt||oe==1?"middle":ie==2?Ja:rm;Do(Ke,Ee,ft,Et);let en=X.font[1]*X.lineGap,Lt=Bt.map(mn=>m(b(mn,Qe,rt,xt))),oi=X._values;for(let mn=0;mn<oi.length;mn++){let Rr=oi[mn];if(Rr!=null){oe==0?ge=Lt[mn]:xe=Lt[mn],Rr=""+Rr;let jo=Rr.indexOf(`
|
|
1490
|
+
`)==-1?[Rr]:Rr.split(/\n/gm);for(let Qn=0;Qn<jo.length;Qn++){let Ys=jo[Qn];Yt?(a.save(),a.translate(ge,xe+Qn*en),a.rotate(Yt),a.fillText(Ys,0,0),a.restore()):a.fillText(Ys,ge,xe+Qn*en)}}}gt.show&&ho(Lt,gt.filter(r,At,V,Ye,Ft),oe,ie,fe,Fn,yn(gt.width*on,3),gt.stroke(r,V),gt.dash,gt.cap);let Yi=X.grid;Yi.show&&ho(Lt,Yi.filter(r,At,V,Ye,Ft),oe,oe==0?2:1,oe==0?Hn:qn,oe==0?dn:Zt,yn(Yi.width*on,3),Yi.stroke(r,V),Yi.dash,Yi.cap),ct.show&&ho([fe],[1],oe==0?1:0,oe==0?1:2,oe==1?Hn:qn,oe==1?dn:Zt,yn(ct.width*on,3),ct.stroke(r,V),ct.dash,ct.cap)}at("drawAxes")}function po(V){x.forEach((X,ie)=>{ie>0&&(X._paths=null,V&&(d==1?(X.min=null,X.max=null):X.facets.forEach(oe=>{oe.min=null,oe.max=null})))})}let Wo=!1,fs=!1,Bo=[];function Ta(){fs=!1;for(let V=0;V<Bo.length;V++)at(...Bo[V]);Bo.length=0}function To(){Wo||(mS(Ma),Wo=!0)}function Be(V,X=!1){Wo=!0,fs=X,V(r),Ma(),X&&Bo.length>0&&queueMicrotask(Ta)}r.batch=Be;function Ma(){if(Hr&&(_o(),Hr=!1),ei&&(ti(),ei=!1),Jr){if(_n(c,da,Nt),_n(c,Ja,Vt),_n(c,Za,bt),_n(c,Qa,qe),_n(i,da,Nt),_n(i,Ja,Vt),_n(i,Za,bt),_n(i,Qa,qe),_n(u,Za,ir),_n(u,Qa,Or),s.width=mr(ir*on),s.height=mr(Or*on),M.forEach(({_el:V,_show:X,_size:ie,_pos:oe,side:ge})=>{if(V!=null)if(X){let xe=ge===3||ge===0?ie:0,Ee=ge%2==1;_n(V,Ee?"left":"top",oe-xe),_n(V,Ee?"width":"height",ie),_n(V,Ee?"top":"left",Ee?Vt:Nt),_n(V,Ee?"height":"width",Ee?qe:bt),lh(V,Rs)}else $i(V,Rs)}),Gn=Tr=wn=jr=as=js=Us=ls=uo=null,wr=1,W(!0),Nt!=Ln||Vt!=Ar||bt!=vr||qe!=bn){po(!1);let V=bt/vr,X=qe/bn;if(se&&!Ii&&ne.left>=0){ne.left*=V,ne.top*=X,Ri&&bo(Ri,mr(ne.left),0,bt,qe),or&&bo(or,0,mr(ne.top),bt,qe);for(let ie=0;ie<On.length;ie++){let oe=On[ie];oe!=null&&(Sr[ie]*=V,wi[ie]*=X,bo(oe,zi(Sr[ie]),zi(wi[ie]),bt,qe))}}if(wt.show&&!gi&&wt.left>=0&&wt.width>0){wt.left*=V,wt.width*=V,wt.top*=X,wt.height*=X;for(let ie in Y)_n(ri,ie,wt[ie])}Ln=Nt,Ar=Vt,vr=bt,bn=qe}at("setSize"),Jr=!1}ir>0&&Or>0&&(a.clearRect(0,0,s.width,s.height),at("drawClear"),D.forEach(V=>V()),at("draw")),wt.show&&gi&&(gn(wt),gi=!1),se&&Ii&&(S(null,!0,!1),Ii=!1),he.show&&he.live&&Kn&&(y(),Kn=!1),h||(h=!0,r.status=1,at("ready")),qt=!1,Wo=!1}r.redraw=(V,X)=>{ei=X||!1,V!==!1?ur(C,H.min,H.max):To()};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=oo(X.min,e[0]),X.max=oo(X.max,e[0]),X.min==X.max&&X.max++),A[V]=X,Hr=!0,To()}}r.setScale=Ne;let zn,Ho,Ri,or,Ea,zo,Vi,Mo,an,nn,ln,Kt,qi=!1;const Yn=ne.drag;let Ve=Yn.x,An=Yn.y;se&&(ne.x&&(zn=Hi(BA,i)),ne.y&&(Ho=Hi(HA,i)),H.ori==0?(Ri=zn,or=Ho):(Ri=Ho,or=zn),ln=ne.left,Kt=ne.top);const wt=r.select=cr({show:!0,over:!0,left:0,width:0,top:0,height:0},n.select),ri=wt.show?Hi(WA,wt.over?i:c):null;function gn(V,X){if(wt.show){for(let ie in V)wt[ie]=V[ie],ie in Y&&_n(ri,ie,V[ie]);X!==!1&&at("setSelect")}}r.setSelect=gn;function In(V){if(x[V].show)le&&lh(Me[V],Rs);else if(le&&$i(Me[V],Rs),se){let X=En?On[0]:On[V];X!=null&&bo(X,-10,-10,bt,qe)}}function ur(V,X,ie){Ne(V,{min:X,max:ie})}function ii(V,X,ie,oe){X.focus!=null&&Mr(V),X.show!=null&&x.forEach((ge,xe)=>{xe>0&&(V==xe||V==null)&&(ge.show=X.show,In(xe),d==2?(ur(ge.facets[0].scale,null,null),ur(ge.facets[1].scale,null,null)):ur(ge.scale,null,null),To())}),ie!==!1&&at("setSeries",V,X),oe&&Mt("setSeries",r,V,X)}r.setSeries=ii;function Ki(V,X){cr(k[V],X)}function Xn(V,X){V.fill=Ut(V.fill||null),V.dir=tn(V.dir,-1),X=X??k.length,k.splice(X,0,V)}function Ci(V){V==null?k.length=0:k.splice(V,1)}r.addBand=Xn,r.setBand=Ki,r.delBand=Ci;function gs(V,X){x[V].alpha=X,se&&On[V]!=null&&(On[V].style.opacity=X),le&&Me[V]&&(Me[V].style.opacity=X)}let Zn,Li,Oi;const Gi={focus:!0};function Mr(V){if(V!=Oi){let X=V==null,ie=yr.alpha!=1;x.forEach((oe,ge)=>{if(d==1||ge>0){let xe=X||ge==0||ge==V;oe._focus=X?null:xe,ie&&gs(ge,xe?1:yr.alpha)}}),Oi=V,ie&&To()}}le&&bi&&fn(am,me,V=>{ne._lock||(yi(V),Oi!=null&&ii(null,Gi,!0,pt.setSeries))});function Er(V,X,ie){let oe=_[X];ie&&(V=V/on-(oe.ori==1?Vt:Nt));let ge=bt;oe.ori==1&&(ge=qe,V=ge-V),oe.dir==-1&&(V=ge-V);let xe=oe._min,Ee=oe._max,We=V/ge,He=xe+(Ee-xe)*We,Ye=oe.distr;return Ye==3?ga(10,He):Ye==4?iS(He,oe.asinh):Ye==100?oe.bwd(He):He}function Nr(V,X){let ie=Er(V,C,X);return oo(ie,e[0],ze,Fe)}r.valToIdx=V=>oo(V,e[0]),r.posToIdx=Nr,r.posToVal=Er,r.valToPos=(V,X,ie)=>_[X].ori==0?p(V,_[X],ie?Zt:bt,ie?qn:0):g(V,_[X],ie?dn:qe,ie?Hn:0),r.setCursor=(V,X,ie)=>{ln=V.left,Kt=V.top,S(null,X,ie)};function Gs(V,X){_n(ri,da,wt.left=V),_n(ri,Za,wt.width=X)}function Dr(V,X){_n(ri,Ja,wt.top=V),_n(ri,Qa,wt.height=X)}let Ur=H.ori==0?Gs:Dr,Ni=H.ori==1?Gs:Dr;function Di(){if(le&&he.live)for(let V=d==2?1:0;V<x.length;V++){if(V==0&&ht)continue;let X=he.values[V],ie=0;for(let oe in X)Je[V][ie++].firstChild.nodeValue=X[oe]}}function y(V,X){if(V!=null&&(V.idxs?V.idxs.forEach((ie,oe)=>{J[oe]=ie}):lS(V.idx)||J.fill(V.idx),he.idx=J[0]),le&&he.live){for(let ie=0;ie<x.length;ie++)(ie>0||d==1&&!ht)&&T(ie,J[ie]);Di()}Kn=!1,X!==!1&&at("setLegend")}r.setLegend=y;function T(V,X){let ie=x[V],oe=V==0&&P==2?Qt:e[V],ge;ht?ge=ie.values(r,V,X)??st:(ge=ie.value(r,X==null?null:oe[X],V,X),ge=ge==null?st:{_:ge}),he.values[V]=ge}function S(V,X,ie){an=ln,nn=Kt,[ln,Kt]=ne.move(r,ln,Kt),ne.left=ln,ne.top=Kt,se&&(Ri&&bo(Ri,mr(ln),0,bt,qe),or&&bo(or,0,mr(Kt),bt,qe));let oe,ge=ze>Fe;Zn=vn,Li=null;let xe=H.ori==0?bt:qe,Ee=H.ori==1?bt:qe;if(ln<0||ce==0||ge){oe=ne.idx=null;for(let We=0;We<x.length;We++){let He=On[We];He!=null&&bo(He,-10,-10,bt,qe)}bi&&ii(null,Gi,!0,V==null&&pt.setSeries),he.live&&(J.fill(oe),Kn=!0)}else{let We,He,Ye;d==1&&(We=H.ori==0?ln:Kt,He=Er(We,C),oe=ne.idx=oo(He,e[0],ze,Fe),Ye=O(e[0][oe],H,xe,0));let Qe=-10,rt=-10,xt=0,Bt=0,At=!0,Ft="",gt="";for(let ct=d==2?1:0;ct<x.length;ct++){let xn=x[ct],Fn=J[ct],dr=Fn==null?null:d==1?e[ct][Fn]:e[ct][1][Fn],Yt=ne.dataIdx(r,ct,oe,He),fe=Yt==null?null:d==1?e[ct][Yt]:e[ct][1][Yt];if(Kn=Kn||fe!=dr||Yt!=Fn,J[ct]=Yt,ct>0&&xn.show){let $e=Yt==null?-10:Yt==oe?Ye:O(d==1?e[0][Yt]:e[ct][0][Yt],H,xe,0),Ce=fe==null?-10:$(fe,d==1?_[xn.scale]:_[xn.facets[1].scale],Ee,0);if(bi&&fe!=null){let Ke=H.ori==1?ln:Kt,ft=gr(yr.dist(r,ct,Yt,Ce,Ke));if(ft<Zn){let Et=yr.bias;if(Et!=0){let en=Er(Ke,xn.scale),Lt=fe>=0?1:-1,oi=en>=0?1:-1;oi==Lt&&(oi==1?Et==1?fe>=en:fe<=en:Et==1?fe<=en:fe>=en)&&(Zn=ft,Li=ct)}else Zn=ft,Li=ct}}if(Kn||En){let Ke,ft;H.ori==0?(Ke=$e,ft=Ce):(Ke=Ce,ft=$e);let Et,en,Lt,oi,Yi,mn,Rr=!0,jo=Mn.bbox;if(jo!=null){Rr=!1;let Qn=jo(r,ct);Lt=Qn.left,oi=Qn.top,Et=Qn.width,en=Qn.height}else Lt=Ke,oi=ft,Et=en=Mn.size(r,ct);if(mn=Mn.fill(r,ct),Yi=Mn.stroke(r,ct),En)ct==Li&&Zn<=yr.prox&&(Qe=Lt,rt=oi,xt=Et,Bt=en,At=Rr,Ft=mn,gt=Yi);else{let Qn=On[ct];Qn!=null&&(Sr[ct]=Lt,wi[ct]=oi,fm(Qn,Et,en,Rr),dm(Qn,mn,Yi),bo(Qn,zi(Lt),zi(oi),bt,qe))}}}}if(En){let ct=yr.prox,xn=Oi==null?Zn<=ct:Zn>ct||Li!=Oi;if(Kn||xn){let Fn=On[0];Fn!=null&&(Sr[0]=Qe,wi[0]=rt,fm(Fn,xt,Bt,At),dm(Fn,Ft,gt),bo(Fn,zi(Qe),zi(rt),bt,qe))}}}if(wt.show&&qi)if(V!=null){let[We,He]=pt.scales,[Ye,Qe]=pt.match,[rt,xt]=V.cursor.sync.scales,Bt=V.cursor.drag;if(Ve=Bt._x,An=Bt._y,Ve||An){let{left:At,top:Ft,width:gt,height:ct}=V.select,xn=V.scales[rt].ori,Fn=V.posToVal,dr,Yt,fe,$e,Ce,Ke=We!=null&&Ye(We,rt),ft=He!=null&&Qe(He,xt);Ke&&Ve?(xn==0?(dr=At,Yt=gt):(dr=Ft,Yt=ct),fe=_[We],$e=O(Fn(dr,rt),fe,xe,0),Ce=O(Fn(dr+Yt,rt),fe,xe,0),Ur(so($e,Ce),gr(Ce-$e))):Ur(0,xe),ft&&An?(xn==1?(dr=At,Yt=gt):(dr=Ft,Yt=ct),fe=_[He],$e=$(Fn(dr,xt),fe,Ee,0),Ce=$(Fn(dr+Yt,xt),fe,Ee,0),Ni(so($e,Ce),gr(Ce-$e))):Ni(0,Ee)}else Z()}else{let We=gr(an-Ea),He=gr(nn-zo);if(H.ori==1){let xt=We;We=He,He=xt}Ve=Yn.x&&We>=Yn.dist,An=Yn.y&&He>=Yn.dist;let Ye=Yn.uni;Ye!=null?Ve&&An&&(Ve=We>=Ye,An=He>=Ye,!Ve&&!An&&(He>We?An=!0:Ve=!0)):Yn.x&&Yn.y&&(Ve||An)&&(Ve=An=!0);let Qe,rt;Ve&&(H.ori==0?(Qe=Vi,rt=ln):(Qe=Mo,rt=Kt),Ur(so(Qe,rt),gr(rt-Qe)),An||Ni(0,Ee)),An&&(H.ori==1?(Qe=Vi,rt=ln):(Qe=Mo,rt=Kt),Ni(so(Qe,rt),gr(rt-Qe)),Ve||Ur(0,xe)),!Ve&&!An&&(Ur(0,0),Ni(0,0))}if(Yn._x=Ve,Yn._y=An,V==null){if(ie){if(Nn!=null){let[We,He]=pt.scales;pt.values[0]=We!=null?Er(H.ori==0?ln:Kt,We):null,pt.values[1]=He!=null?Er(H.ori==1?ln:Kt,He):null}Mt(rh,r,ln,Kt,bt,qe,oe)}if(bi){let We=ie&&pt.setSeries,He=yr.prox;Oi==null?Zn<=He&&ii(Li,Gi,!0,We):Zn>He?ii(null,Gi,!0,We):Li!=Oi&&ii(Li,Gi,!0,We)}}Kn&&(he.idx=oe,y()),X!==!1&&at("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(),at("syncRect",F))}function z(V,X,ie,oe,ge,xe,Ee){ne._lock||qi&&V!=null&&V.movementX==0&&V.movementY==0||(q(V,X,ie,oe,ge,xe,Ee,!1,V!=null),V!=null?S(null,!0,!0):S(X,!0,!1))}function q(V,X,ie,oe,ge,xe,Ee,We,He){if(F==null&&W(!1),yi(V),V!=null)ie=V.clientX-F.left,oe=V.clientY-F.top;else{if(ie<0||oe<0){ln=-10,Kt=-10;return}let[Ye,Qe]=pt.scales,rt=X.cursor.sync,[xt,Bt]=rt.values,[At,Ft]=rt.scales,[gt,ct]=pt.match,xn=X.axes[0].side%2==1,Fn=H.ori==0?bt:qe,dr=H.ori==1?bt:qe,Yt=xn?xe:ge,fe=xn?ge:xe,$e=xn?oe:ie,Ce=xn?ie:oe;if(At!=null?ie=gt(Ye,At)?b(xt,_[Ye],Fn,0):-10:ie=Fn*($e/Yt),Ft!=null?oe=ct(Qe,Ft)?b(Bt,_[Qe],dr,0):-10:oe=dr*(Ce/fe),H.ori==1){let Ke=ie;ie=oe,oe=Ke}}He&&(X==null||X.cursor.event.type==rh)&&((ie<=1||ie>=bt-1)&&(ie=Ns(ie,bt)),(oe<=1||oe>=qe-1)&&(oe=Ns(oe,qe))),We?(Ea=ie,zo=oe,[Vi,Mo]=ne.move(r,ie,oe)):(ln=ie,Kt=oe)}const Y={width:0,height:0,left:0,top:0};function Z(){gn(Y,!1)}let re,ae,be,ke;function ve(V,X,ie,oe,ge,xe,Ee){qi=!0,Ve=An=Yn._x=Yn._y=!1,q(V,X,ie,oe,ge,xe,Ee,!0,!1),V!=null&&(fn(ih,sh,we,!1),Mt(om,r,Vi,Mo,bt,qe,null));let{left:We,top:He,width:Ye,height:Qe}=wt;re=We,ae=He,be=Ye,ke=Qe}function we(V,X,ie,oe,ge,xe,Ee){qi=Yn._x=Yn._y=!1,q(V,X,ie,oe,ge,xe,Ee,!1,!0);let{left:We,top:He,width:Ye,height:Qe}=wt,rt=Ye>0||Qe>0,xt=re!=We||ae!=He||be!=Ye||ke!=Qe;if(rt&&xt&&gn(wt),Yn.setScale&&rt&&xt){let Bt=We,At=Ye,Ft=He,gt=Qe;if(H.ori==1&&(Bt=He,At=Qe,Ft=We,gt=Ye),Ve&&ur(C,Er(Bt,C),Er(Bt+At,C)),An)for(let ct in _){let xn=_[ct];ct!=C&&xn.from==null&&xn.min!=vn&&ur(ct,Er(Ft+gt,ct),Er(Ft,ct))}Z()}else ne.lock&&(ne._lock=!ne._lock,S(X,!0,V!=null));V!=null&&(Bn(ih,sh),Mt(ih,r,ln,Kt,bt,qe,null))}function Oe(V,X,ie,oe,ge,xe,Ee){if(ne._lock)return;yi(V);let We=qi;if(qi){let He=!0,Ye=!0,Qe=10,rt,xt;H.ori==0?(rt=Ve,xt=An):(rt=An,xt=Ve),rt&&xt&&(He=ln<=Qe||ln>=bt-Qe,Ye=Kt<=Qe||Kt>=qe-Qe),rt&&He&&(ln=ln<Vi?0:bt),xt&&Ye&&(Kt=Kt<Mo?0:qe),S(null,!0,!0),qi=!1}ln=-10,Kt=-10,J.fill(null),S(null,!0,!0),We&&(qi=We)}function Le(V,X,ie,oe,ge,xe,Ee){ne._lock||(yi(V),br(),Z(),V!=null&&Mt(lm,r,ln,Kt,bt,qe,null))}function Ge(){M.forEach(A_),co(r.width,r.height,!0)}Ls(tc,fa,Ge);const ut={};ut.mousedown=ve,ut.mousemove=z,ut.mouseup=we,ut.dblclick=Le,ut.setSeries=(V,X,ie,oe)=>{let ge=pt.match[2];ie=ge(r,X,ie),ie!=-1&&ii(ie,oe,!0,!1)},se&&(fn(om,i,ve),fn(rh,i,z),fn(sm,i,V=>{yi(V),W(!1)}),fn(am,i,Oe),fn(lm,i,Le),Eh.add(r),r.syncRect=W);const et=r.hooks=n.hooks||{};function at(V,X,ie){fs?Bo.push([V,X,ie]):V in et&&et[V].forEach(oe=>{oe.call(null,r,X,ie)})}(n.plugins||[]).forEach(V=>{for(let X in V.hooks)et[X]=(et[X]||[]).concat(V.hooks[X])});const Sn=(V,X,ie)=>ie,pt=cr({key:null,setSeries:!1,filters:{pub:_m,sub:_m},scales:[C,x[1]?x[1].scale:null],match:[$m,$m,Sn],values:[null,null]},ne.sync);pt.match.length==2&&pt.match.push(Sn),ne.sync=pt;const Nn=pt.key,kt=hv(Nn);function Mt(V,X,ie,oe,ge,xe,Ee){pt.filters.pub(V,X,ie,oe,ge,xe,Ee)&&kt.pub(V,X,ie,oe,ge,xe,Ee)}kt.sub(r);function hr(V,X,ie,oe,ge,xe,Ee){pt.filters.sub(V,X,ie,oe,ge,xe,Ee)&&ut[V](null,X,ie,oe,ge,xe,Ee)}r.pub=hr;function Ir(){kt.unsub(r),Eh.delete(r),kr.clear(),uh(tc,fa,Ge),f.remove(),me==null||me.remove(),at("destroy")}r.destroy=Ir;function Dn(){at("init",n,e),$r(e||n.data,!1),A[C]?Ne(C,A[C]):br(),gi=wt.show&&(wt.width>0||wt.height>0),Ii=Kn=!0,co(n.width,n.height)}return x.forEach(So),M.forEach(zr),t?t instanceof HTMLElement?(t.appendChild(f),Dn()):t(r,Dn):Dn(),r}Wr.assign=cr,Wr.fmtNum=ph,Wr.rangeNum=oc,Wr.rangeLog=ic,Wr.rangeAsinh=hh,Wr.orient=Fs,Wr.pxRatio=on,Wr.join=gS,Wr.fmtDate=vh,Wr.tzDate=_S,Wr.sync=hv;{Wr.addGap=l_,Wr.clipGaps=dc;let n=Wr.paths={points:yv};n.linear=wv,n.stepped=h_,n.bars=d_,n.spline=f_}var Tv,Mv;function S_(){return Mv||(Mv=1,Tv=function(n,e,t,r,d){var p,g;if(r===void 0)r=0;else if(r=r|0,r<0||r>=n.length)throw new RangeError("invalid lower bound");if(d===void 0)d=n.length-1;else if(d=d|0,d<r||d>=n.length)throw new RangeError("invalid upper bound");for(;r<=d;)if(p=r+(d-r>>>1),g=+t(n[p],e,p,n),g<0)r=p+1;else if(g>0)d=p-1;else return p;return~r}),Tv}var __=S_();const hP=pr("e",Fl(__));var Rh,Ev;function $_(){if(Ev)return Rh;Ev=1;function n(e,t,r){var d=-1,p=e.length;t<0&&(t=-t>p?0:p+t),r=r>p?p:r,r<0&&(r+=p),p=t>r?0:r-t>>>0,t>>>=0;for(var g=Array(p);++d<p;)g[d]=e[d+t];return g}return Rh=n,Rh}var Lh,Iv;function T_(){if(Iv)return Lh;Iv=1;var n=$_();function e(t,r,d){var p=t.length;return d=d===void 0?p:d,!r&&d>=p?t:n(t,r,d)}return Lh=e,Lh}var Oh,Rv;function Lv(){if(Rv)return Oh;Rv=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,p="\\ufe0e\\ufe0f",g="\\u200d",b=RegExp("["+g+n+d+p+"]");function h(f){return b.test(f)}return Oh=h,Oh}var Nh,Ov;function M_(){if(Ov)return Nh;Ov=1;function n(e){return e.split("")}return Nh=n,Nh}var Dh,Nv;function E_(){if(Nv)return Dh;Nv=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,p="\\ufe0e\\ufe0f",g="["+n+"]",b="["+d+"]",h="\\ud83c[\\udffb-\\udfff]",f="(?:"+b+"|"+h+")",s="[^"+n+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="\\u200d",i=f+"?",l="["+p+"]?",m="(?:"+c+"(?:"+[s,a,u].join("|")+")"+l+i+")*",w=l+i+m,x="(?:"+[s+b+"?",b,a,u,g].join("|")+")",M=RegExp(h+"(?="+h+")|"+x+w,"g");function _(k){return k.match(M)||[]}return Dh=_,Dh}var Fh,Dv;function I_(){if(Dv)return Fh;Dv=1;var n=M_(),e=Lv(),t=E_();function r(d){return e(d)?t(d):n(d)}return Fh=r,Fh}var Ph,Fv;function R_(){if(Fv)return Ph;Fv=1;var n=typeof ns=="object"&&ns&&ns.Object===Object&&ns;return Ph=n,Ph}var Wh,Pv;function L_(){if(Pv)return Wh;Pv=1;var n=R_(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return Wh=t,Wh}var Bh,Wv;function Hh(){if(Wv)return Bh;Wv=1;var n=L_(),e=n.Symbol;return Bh=e,Bh}var zh,Bv;function O_(){if(Bv)return zh;Bv=1;function n(e,t){for(var r=-1,d=e==null?0:e.length,p=Array(d);++r<d;)p[r]=t(e[r],r,e);return p}return zh=n,zh}var jh,Hv;function N_(){if(Hv)return jh;Hv=1;var n=Array.isArray;return jh=n,jh}var Uh,zv;function D_(){if(zv)return Uh;zv=1;var n=Hh(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,d=n?n.toStringTag:void 0;function p(g){var b=t.call(g,d),h=g[d];try{g[d]=void 0;var f=!0}catch{}var s=r.call(g);return f&&(b?g[d]=h:delete g[d]),s}return Uh=p,Uh}var Vh,jv;function F_(){if(jv)return Vh;jv=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return Vh=t,Vh}var qh,Uv;function P_(){if(Uv)return qh;Uv=1;var n=Hh(),e=D_(),t=F_(),r="[object Null]",d="[object Undefined]",p=n?n.toStringTag:void 0;function g(b){return b==null?b===void 0?d:r:p&&p in Object(b)?e(b):t(b)}return qh=g,qh}var Kh,Vv;function W_(){if(Vv)return Kh;Vv=1;function n(e){return e!=null&&typeof e=="object"}return Kh=n,Kh}var Gh,qv;function B_(){if(qv)return Gh;qv=1;var n=P_(),e=W_(),t="[object Symbol]";function r(d){return typeof d=="symbol"||e(d)&&n(d)==t}return Gh=r,Gh}var Yh,Kv;function H_(){if(Kv)return Yh;Kv=1;var n=Hh(),e=O_(),t=N_(),r=B_(),d=n?n.prototype:void 0,p=d?d.toString:void 0;function g(b){if(typeof b=="string")return b;if(t(b))return e(b,g)+"";if(r(b))return p?p.call(b):"";var h=b+"";return h=="0"&&1/b==-1/0?"-0":h}return Yh=g,Yh}var Xh,Gv;function mc(){if(Gv)return Xh;Gv=1;var n=H_();function e(t){return t==null?"":n(t)}return Xh=e,Xh}var Zh,Yv;function z_(){if(Yv)return Zh;Yv=1;var n=T_(),e=Lv(),t=I_(),r=mc();function d(p){return function(g){g=r(g);var b=e(g)?t(g):void 0,h=b?b[0]:g.charAt(0),f=b?n(b,1).join(""):g.slice(1);return h[p]()+f}}return Zh=d,Zh}var Qh,Xv;function Zv(){if(Xv)return Qh;Xv=1;var n=z_(),e=n("toUpperCase");return Qh=e,Qh}var j_=Zv();const U_=Fl(j_);var Jh,Qv;function V_(){if(Qv)return Jh;Qv=1;var n=mc(),e=Zv();function t(r){return e(n(r).toLowerCase())}return Jh=t,Jh}var ed,Jv;function q_(){if(Jv)return ed;Jv=1;function n(e,t,r,d){var p=-1,g=e==null?0:e.length;for(d&&g&&(r=e[++p]);++p<g;)r=t(r,e[p],p,e);return r}return ed=n,ed}var td,ey;function K_(){if(ey)return td;ey=1;function n(e){return function(t){return e==null?void 0:e[t]}}return td=n,td}var nd,ty;function G_(){if(ty)return nd;ty=1;var n=K_(),e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},t=n(e);return nd=t,nd}var rd,ny;function Y_(){if(ny)return rd;ny=1;var n=G_(),e=mc(),t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r="\\u0300-\\u036f",d="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",g=r+d+p,b="["+g+"]",h=RegExp(b,"g");function f(s){return s=e(s),s&&s.replace(t,n).replace(h,"")}return rd=f,rd}var id,ry;function X_(){if(ry)return id;ry=1;var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(t){return t.match(n)||[]}return id=e,id}var od,iy;function Z_(){if(iy)return od;iy=1;var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(t){return n.test(t)}return od=e,od}var sd,oy;function Q_(){if(oy)return sd;oy=1;var n="\\ud800-\\udfff",e="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",d=e+t+r,p="\\u2700-\\u27bf",g="a-z\\xdf-\\xf6\\xf8-\\xff",b="\\xac\\xb1\\xd7\\xf7",h="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f="\\u2000-\\u206f",s=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\ufe0e\\ufe0f",c=b+h+f+s,i="['’]",l="["+c+"]",m="["+d+"]",w="\\d+",x="["+p+"]",M="["+g+"]",_="[^"+n+c+w+p+g+a+"]",k="\\ud83c[\\udffb-\\udfff]",C="(?:"+m+"|"+k+")",L="[^"+n+"]",D="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",I="["+a+"]",H="\\u200d",P="(?:"+M+"|"+_+")",O="(?:"+I+"|"+_+")",$="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",N=C+"?",B="["+u+"]?",U="(?:"+H+"(?:"+[L,D,R].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,R].join("|")+")"+J,ne=RegExp([I+"?"+M+"+"+$+"(?="+[l,I,"$"].join("|")+")",O+"+"+A+"(?="+[l,I+P,"$"].join("|")+")",I+"?"+P+"+"+$,I+"+"+A,Q,K,w,he].join("|"),"g");function le(se){return se.match(ne)||[]}return sd=le,sd}var ad,sy;function J_(){if(sy)return ad;sy=1;var n=X_(),e=Z_(),t=mc(),r=Q_();function d(p,g,b){return p=t(p),g=b?void 0:g,g===void 0?e(p)?r(p):n(p):p.match(g)||[]}return ad=d,ad}var ld,ay;function e$(){if(ay)return ld;ay=1;var n=q_(),e=Y_(),t=J_(),r="['’]",d=RegExp(r,"g");function p(g){return function(b){return n(t(e(b).replace(d,"")),g,"")}}return ld=p,ld}var cd,ly;function t$(){if(ly)return cd;ly=1;var n=V_(),e=e$(),t=e(function(r,d,p){return d=d.toLowerCase(),r+(p?n(d):d)});return cd=t,cd}var n$=t$();const r$=Fl(n$),i$=Object.assign({"./ArrayWidget.vue":()=>nt(()=>tt.import("./ArrayWidget-Bc-Awsbn-5a1d9ebaf5ba58e65eeb.js"),void 0),"./ArrayplotWidget.vue":()=>nt(()=>tt.import("./ArrayplotWidget-B9UGCr4--e4841947fbc1cd937df7.js"),void 0),"./BlockWidget.vue":()=>nt(()=>tt.import("./BlockWidget-CoQp-LZM-769924a514409c909f83.js"),void 0),"./ButtonWidget.vue":()=>nt(()=>tt.import("./ButtonWidget-CTTwpFec-3d5379f67b499b399f61.js"),void 0),"./CanvasWidget.vue":()=>nt(()=>tt.import("./CanvasWidget-jFarbJ3t-c0776286cdb468e1c73c.js"),void 0),"./CanvasdotWidget.vue":()=>nt(()=>tt.import("./CanvasdotWidget-BoyUcwiB-5b8968d3cbb415f81066.js"),void 0),"./CanvasimageWidget.vue":()=>nt(()=>tt.import("./CanvasimageWidget-DmyCSnuQ-ca644207f5afe4d7570c.js"),void 0),"./CanvasimagevalueWidget.vue":()=>nt(()=>tt.import("./CanvasimagevalueWidget-CmbngMqv-dbb6d77a0c4b3e482826.js"),void 0),"./CanvaslabelWidget.vue":()=>nt(()=>tt.import("./CanvaslabelWidget-D8NzLKqi-5a6c5d0d7a834885df83.js"),void 0),"./CanvaslabelvalueWidget.vue":()=>nt(()=>tt.import("./CanvaslabelvalueWidget-DOybGI9D-0276cd36efa5b8b21c8c.js"),void 0),"./CanvaslineWidget.vue":()=>nt(()=>tt.import("./CanvaslineWidget-D2NEei7j-b97c834aa7985a240884.js"),void 0),"./CanvaslinevalueWidget.vue":()=>nt(()=>tt.import("./CanvaslinevalueWidget-Ctvv9owf-c6a75f8129a220989e96.js"),void 0),"./CheckbuttonWidget.vue":()=>nt(()=>tt.import("./CheckbuttonWidget-CQeR0BMF-fa5b02a8efe6c73d6691.js"),void 0),"./ComboboxWidget.vue":()=>nt(()=>tt.import("./ComboboxWidget-4N-MagvN-8422c68644befe797171.js"),void 0),"./DateWidget.vue":()=>nt(()=>tt.import("./DateWidget-rYTjwUdb-2d2e8c2c53a80a8c66aa.js"),void 0),"./DynamicWidget.vue":()=>nt(()=>tt.import("./DynamicWidget-DEHWYr8i-e8f8825de95e4ed788f7.js"),void 0),"./FilechecksumWidget.vue":()=>nt(()=>tt.import("./FilechecksumWidget-gcmXxJHl-d63bde36350aa6357d8e.js"),void 0),"./FiledisplayWidget.vue":()=>nt(()=>tt.import("./FiledisplayWidget-CqM549A4-ebba7b99e9a59558276a.js"),void 0),"./FormatvalueWidget.vue":()=>nt(()=>tt.import("./FormatvalueWidget-BEwH0C7S-45a5a2393368d0b3821b.js"),void 0),"./HorizontalWidget.vue":()=>nt(()=>tt.import("./HorizontalWidget-Dt8bkM3k-ecbde5177b812ef1e23d.js"),void 0),"./HorizontalboxWidget.vue":()=>nt(()=>tt.import("./HorizontalboxWidget-CdAZ5Sa6-a98e8795733c87edb7fe.js"),void 0),"./HorizontallineWidget.vue":()=>nt(()=>tt.import("./HorizontallineWidget-CXZJTeU2-9a2e0e267c30229a1a06.js"),void 0),"./IframeWidget.vue":()=>nt(()=>tt.import("./IframeWidget-CrcWiAVE-f0cdcf9b840c392136c7.js"),void 0),"./ImageviewerWidget.vue":()=>nt(()=>tt.import("./ImageviewerWidget-CTEl6iPg-3143b62bd3f0e7d447f3.js"),void 0),"./LabelWidget.vue":()=>nt(()=>tt.import("./LabelWidget-CPqKGMx0-eb6d4acaf548f6445cf7.js"),void 0),"./LabelledWidget.vue":()=>nt(()=>tt.import("./LabelledWidget-BHYzRMFd-d986f910b2bacd8e8ee2.js"),void 0),"./LabelprogressbarWidget.vue":()=>nt(()=>tt.import("./LabelprogressbarWidget-D9deeUo7-5cb229e499a29b09a4ad.js"),void 0),"./LabelsparklineWidget.vue":()=>nt(()=>tt.import("./LabelsparklineWidget-7mYre3CP-2ef07e725fe66586803a.js"),void 0),"./LabelvalueWidget.vue":()=>nt(()=>tt.import("./LabelvalueWidget-NLsD60n4-574557ba12df95aaa182.js"),void 0),"./LabelvaluedescWidget.vue":()=>nt(()=>tt.import("./LabelvaluedescWidget-DXROG4Gs-cd788e81226c23824988.js"),void 0),"./LabelvaluelimitsbarWidget.vue":()=>nt(()=>tt.import("./LabelvaluelimitsbarWidget-DqVqHF4W-f30ecd07eaf3d71afabe.js"),void 0),"./LabelvaluelimitscolumnWidget.vue":()=>nt(()=>tt.import("./LabelvaluelimitscolumnWidget-BK6_31pC-4fede4a06d630efecbd3.js"),void 0),"./LabelvaluerangebarWidget.vue":()=>nt(()=>tt.import("./LabelvaluerangebarWidget-DR7C8gqw-b34f3f2d4967d77f16dc.js"),void 0),"./LedWidget.vue":()=>nt(()=>tt.import("./LedWidget-CiAVs2tj-f0925ab9e8c2b5be6f37.js"),void 0),"./LimitsbarWidget.vue":()=>nt(()=>tt.import("./LimitsbarWidget-CIwcOhC8-0cef53ee5b2cccb38afc.js"),void 0),"./LimitscolorWidget.vue":()=>nt(()=>tt.import("./LimitscolorWidget-CGPfJwvT-b8f81cf4eea6f46bff03.js"),void 0),"./LimitscolumnWidget.vue":()=>nt(()=>tt.import("./LimitscolumnWidget-Bj_UPEC8-8264d41a1cea3eb8e1ff.js"),void 0),"./LinegraphWidget.vue":()=>nt(()=>tt.import("./LinegraphWidget-DccnHbWa-fdda0d41317e3f87a341.js"),void 0),"./MatrixbycolumnsWidget.vue":()=>nt(()=>tt.import("./MatrixbycolumnsWidget-U_NZ6aW--76ce37a0548462d018ac.js"),void 0),"./ProgressbarWidget.vue":()=>nt(()=>tt.import("./ProgressbarWidget-D4JtVzyk-83283130b1429c6828cd.js"),void 0),"./RadiobuttonWidget.vue":()=>nt(()=>tt.import("./RadiobuttonWidget-BUaW7pRx-848fe80075b32c47d70b.js"),void 0),"./RadiogroupWidget.vue":()=>nt(()=>tt.import("./RadiogroupWidget-NIv4CaUQ-545c9956ea6936dc8658.js"),void 0),"./RangebarWidget.vue":()=>nt(()=>tt.import("./RangebarWidget-1-CsFpcl-9c19b38a9b6312ce2b74.js"),void 0),"./RollupWidget.vue":()=>nt(()=>tt.import("./RollupWidget-ChasTJYP-7a4c2edc943344b62451.js"),void 0),"./ScrollwindowWidget.vue":()=>nt(()=>tt.import("./ScrollwindowWidget-Y2J758y6-2df0a4d71fb133314d26.js"),void 0),"./SignalWidget.vue":()=>nt(()=>tt.import("./SignalWidget-DFhHDicI-927c00e00aef21b95c78.js"),void 0),"./SpacerWidget.vue":()=>nt(()=>tt.import("./SpacerWidget-D4KojaGb-24b0ca553a20484f4ecb.js"),void 0),"./SparklineWidget.vue":()=>nt(()=>tt.import("./SparklineWidget-DMHFzw8L-be6641d87f4449bf3abe.js"),void 0),"./TabbookWidget.vue":()=>nt(()=>tt.import("./TabbookWidget-NVLYMdFG-e3811a0c1facfc366926.js"),void 0),"./TextboxWidget.vue":()=>nt(()=>tt.import("./TextboxWidget-CrMYPQIF-26e7b0822d504325a606.js"),void 0),"./TextfieldWidget.vue":()=>nt(()=>tt.import("./TextfieldWidget-DMBQwtnb-a7af187a886f30e870ce.js"),void 0),"./TimeWidget.vue":()=>nt(()=>tt.import("./TimeWidget-CWLJZ2bt-a73732192a9307483b41.js"),void 0),"./TitleWidget.vue":()=>nt(()=>tt.import("./TitleWidget-V1FGI8l3-6c25cbce98d3073cbed3.js"),void 0),"./ValueWidget.vue":()=>nt(()=>tt.import("./ValueWidget-BI3uXmda-bcc8763defb2d1a2ada5.js"),void 0),"./ValuelimitsbarWidget.vue":()=>nt(()=>tt.import("./ValuelimitsbarWidget-BGSJLpw4-835ae41f7708a02adb0d.js"),void 0),"./ValuelimitscolumnWidget.vue":()=>nt(()=>tt.import("./ValuelimitscolumnWidget-CaNjHy4v-edac88976e3fdab324d4.js"),void 0),"./ValuerangebarWidget.vue":()=>nt(()=>tt.import("./ValuerangebarWidget-Do40-aaL-edc4a5026d136a04d964.js"),void 0),"./VerticalWidget.vue":()=>nt(()=>tt.import("./VerticalWidget-DZqghqIm-da2a75fa0fad1efa61b4.js"),void 0),"./VerticalboxWidget.vue":()=>nt(()=>tt.import("./VerticalboxWidget-CQ__4FcS-bec849a14fb1f27df91e.js"),void 0)}),o$=Object.entries(i$).reduce((n,[e,t])=>{e=e.split("/").pop();const r=U_(r$(e.replace(/\.\w+$/,"")));return{...n,[r]:qp(t)}},{}),dP=pr("a",{components:o$}),cy="openc3-ace-vim-mode-enabled",ud="ace/keyboard/vim",uy="openc3-ace-default-scripting-language",vc=pr("Z",{isVimModeEnabled(){return localStorage.getItem(cy)==="true"},setVimMode(n){localStorage.setItem(cy,JSON.stringify(!!n))},toggleVimMode(n){this.isVimModeEnabled()?(n.setKeyboardHandler(null),this.setVimMode(!1)):(n.setKeyboardHandler(ud),this.setVimMode(!0)),n.focus()},applyVimModeIfEnabled(n,{saveFn:e}={}){this.isVimModeEnabled()?(n.setKeyboardHandler(ud),ace.config.loadModule(ud,t=>{t.CodeMirror.Vim.defineEx("write","w",r=>{typeof e=="function"?e():r.ace.execCommand("save")})})):n.setKeyboardHandler(null)},getDefaultScriptingLanguage(){return localStorage.getItem(uy)||"python"},setDefaultScriptingLanguage(n){(n==="ruby"||n==="python")&&localStorage.setItem(uy,n)}}),s$={__name:"TopBarMenu",props:{menu:{type:Object,required:!0},title:{type:String,required:!0}},emits:["submenu-click"],setup(n,{emit:e}){const t=e,r=Gp(!1);function d(){r.value=!1}function p(g){return g.replaceAll(" ","-").toLowerCase()}return(g,b)=>{const h=Ue("v-icon"),f=Ue("v-btn"),s=Ue("v-divider"),a=Ue("v-list-item-title"),u=Ue("v-list-item"),c=Ue("v-list"),i=Ue("v-menu"),l=Ue("v-radio"),m=Ue("v-list-item-action"),w=Ue("v-radio-group"),x=Ue("v-checkbox");return ot(),jt(i,{modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=M=>r.value=M),"close-on-content-click":!1},{activator:Pe(({props:M})=>[je(f,Ll(M,{variant:"outlined",class:"mx-1 menu-button",text:n.menu.label,"data-test":p(`${n.title} ${n.menu.label}`)}),{append:Pe(()=>[je(h,{class:"menu-button-icon"},{default:Pe(()=>[...b[1]||(b[1]=[Rt(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:Pe(()=>[je(c,null,{default:Pe(()=>[(ot(!0),rn(ci,null,vo(n.menu.items,(M,_)=>(ot(),rn(ci,null,[M.divider?(ot(),jt(s,{key:_+"-divider"})):M.subMenu&&M.subMenu.length>0?(ot(),rn("div",{key:_+"-submenu"},[(ot(),jt(i,{key:_,"open-on-hover":"",location:"right"},{activator:Pe(({props:k})=>[(ot(),jt(u,Ll({ref_for:!0},k,{key:_,disabled:M.disabled}),Au({append:Pe(()=>[je(h,null,{default:Pe(()=>[...b[2]||(b[2]=[Rt(" mdi-chevron-right ",-1)])]),_:1})]),default:Pe(()=>[!M.radio&&!M.checkbox?(ot(),jt(a,{key:0,style:Cs("cursor: pointer;"+(M.disabled?"opacity: 0.2":""))},{default:Pe(()=>[Rt(Cn(M.label),1)]),_:2},1032,["style"])):Kr("",!0)]),_:2},[M.icon?{name:"prepend",fn:Pe(()=>[je(h,{disabled:M.disabled},{default:Pe(()=>[Rt(Cn(M.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:Pe(()=>[je(c,null,{default:Pe(()=>[(ot(!0),rn(ci,null,vo(M.subMenu,(k,C)=>(ot(),jt(u,{key:C,"prepend-icon":k.icon,onClick:L=>t("submenu-click",k)},{default:Pe(()=>[je(a,null,{default:Pe(()=>[Rt(Cn(k.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):M.radioGroup?(ot(),jt(w,{key:_+"-radio-group",class:"ma-0 pa-0",density:"compact","hide-details":"","model-value":M.value,"onUpdate:modelValue":M.command},{default:Pe(()=>[(ot(!0),rn(ci,null,vo(M.choices,(k,C)=>(ot(),jt(u,{key:C+"-choice"},{default:Pe(()=>[je(m,{class:"list-action"},{default:Pe(()=>[je(l,{color:"secondary",label:k.label,value:k.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(ot(),jt(u,{key:_+"-list",disabled:M.disabled,"data-test":p(`${n.title} ${n.menu.label} ${M.label}`),onClick:()=>{M.command(M),M.checkbox||d()}},Au({default:Pe(()=>[M.checkbox?(ot(),jt(m,{key:0,class:"list-action"},{default:Pe(()=>[je(x,{modelValue:M.checked,"onUpdate:modelValue":k=>M.checked=k,label:M.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):Kr("",!0),!M.radio&&!M.checkbox?(ot(),jt(a,{key:1,style:Cs("cursor: pointer;"+(M.disabled?"opacity: 0.2":""))},{default:Pe(()=>[Rt(Cn(M.label),1)]),_:2},1032,["style"])):Kr("",!0)]),_:2},[M.icon?{name:"prepend",fn:Pe(()=>[je(h,{icon:M.icon,disabled:M.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["disabled","data-test","onClick"]))],64))),256))]),_:1})]),_:1},8,["modelValue"])}}},a$={components:{TopBarMenu:s$},props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},mounted(){document.title=this.title},methods:{subMenuClick(n){n.command(n),this.$refs.topmenu[0].isActive=!1}}},l$={class:"app-title mr-2"};function c$(n,e,t,r,d,p){const g=Ue("v-col"),b=Ue("v-row"),h=Ue("TopBarMenu");return ot(),jt(Kp,{to:"#openc3-menu"},[je(b,{"no-gutters":""},{default:Pe(()=>[je(g,{"align-self":"end"},{default:Pe(()=>[Pn("span",l$,Cn(t.title),1)]),_:1})]),_:1}),je(b,{dense:"",class:"flex-nowrap"},{default:Pe(()=>[(ot(!0),rn(ci,null,vo(t.menus,(f,s)=>(ot(),jt(h,{key:s+"-top-menu",ref_for:!0,ref:"topmenu",menu:f,title:t.title,onSubmenuClick:p.subMenuClick},null,8,["menu","title","onSubmenuClick"]))),128))]),_:1})])}const u$=to(a$,[["render",c$],["__scopeId","data-v-b6581c4c"]]);function hy(n,e){return function(){return n.apply(e,arguments)}}const{toString:h$}=Object.prototype,{getPrototypeOf:hd}=Object,{iterator:yc,toStringTag:dy}=Symbol,bc=(n=>e=>{const t=h$.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ao=n=>(n=n.toLowerCase(),e=>bc(e)===n),wc=n=>e=>typeof e===n,{isArray:Ca}=Array,ka=wc("undefined");function ol(n){return n!==null&&!ka(n)&&n.constructor!==null&&!ka(n.constructor)&&di(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const py=ao("ArrayBuffer");function d$(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&py(n.buffer),e}const p$=wc("string"),di=wc("function"),fy=wc("number"),sl=n=>n!==null&&typeof n=="object",f$=n=>n===!0||n===!1,xc=n=>{if(bc(n)!=="object")return!1;const e=hd(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(dy in n)&&!(yc in n)},g$=n=>{if(!sl(n)||ol(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},m$=ao("Date"),v$=ao("File"),y$=ao("Blob"),b$=ao("FileList"),w$=n=>sl(n)&&di(n.pipe),x$=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||di(n.append)&&((e=bc(n))==="formdata"||e==="object"&&di(n.toString)&&n.toString()==="[object FormData]"))},C$=ao("URLSearchParams"),[k$,A$,S$,_$]=["ReadableStream","Request","Response","Headers"].map(ao),$$=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function al(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,d;if(typeof n!="object"&&(n=[n]),Ca(n))for(r=0,d=n.length;r<d;r++)e.call(null,n[r],r,n);else{if(ol(n))return;const p=t?Object.getOwnPropertyNames(n):Object.keys(n),g=p.length;let b;for(r=0;r<g;r++)b=p[r],e.call(null,n[b],b,n)}}function gy(n,e){if(ol(n))return null;e=e.toLowerCase();const t=Object.keys(n);let r=t.length,d;for(;r-- >0;)if(d=t[r],e===d.toLowerCase())return d;return null}const Ps=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,my=n=>!ka(n)&&n!==Ps;function dd(){const{caseless:n,skipUndefined:e}=my(this)&&this||{},t={},r=(d,p)=>{const g=n&&gy(t,p)||p;xc(t[g])&&xc(d)?t[g]=dd(t[g],d):xc(d)?t[g]=dd({},d):Ca(d)?t[g]=d.slice():(!e||!ka(d))&&(t[g]=d)};for(let d=0,p=arguments.length;d<p;d++)arguments[d]&&al(arguments[d],r);return t}const T$=(n,e,t,{allOwnKeys:r}={})=>(al(e,(d,p)=>{t&&di(d)?n[p]=hy(d,t):n[p]=d},{allOwnKeys:r}),n),M$=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),E$=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},I$=(n,e,t,r)=>{let d,p,g;const b={};if(e=e||{},n==null)return e;do{for(d=Object.getOwnPropertyNames(n),p=d.length;p-- >0;)g=d[p],(!r||r(g,n,e))&&!b[g]&&(e[g]=n[g],b[g]=!0);n=t!==!1&&hd(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},R$=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},L$=n=>{if(!n)return null;if(Ca(n))return n;let e=n.length;if(!fy(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},O$=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&hd(Uint8Array)),N$=(n,e)=>{const t=(n&&n[yc]).call(n);let r;for(;(r=t.next())&&!r.done;){const d=r.value;e.call(n,d[0],d[1])}},D$=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},F$=ao("HTMLFormElement"),P$=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),vy=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),W$=ao("RegExp"),yy=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};al(t,(d,p)=>{let g;(g=e(d,p,n))!==!1&&(r[p]=g||d)}),Object.defineProperties(n,r)},B$=n=>{yy(n,(e,t)=>{if(di(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(di(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},H$=(n,e)=>{const t={},r=d=>{d.forEach(p=>{t[p]=!0})};return Ca(n)?r(n):r(String(n).split(e)),t},z$=()=>{},j$=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function U$(n){return!!(n&&di(n.append)&&n[dy]==="FormData"&&n[yc])}const V$=n=>{const e=new Array(10),t=(r,d)=>{if(sl(r)){if(e.indexOf(r)>=0)return;if(ol(r))return r;if(!("toJSON"in r)){e[d]=r;const p=Ca(r)?[]:{};return al(r,(g,b)=>{const h=t(g,d+1);!ka(h)&&(p[b]=h)}),e[d]=void 0,p}}return r};return t(n,0)},q$=ao("AsyncFunction"),K$=n=>n&&(sl(n)||di(n))&&di(n.then)&&di(n.catch),by=((n,e)=>n?setImmediate:e?((t,r)=>(Ps.addEventListener("message",({source:d,data:p})=>{d===Ps&&p===t&&r.length&&r.shift()()},!1),d=>{r.push(d),Ps.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",di(Ps.postMessage)),G$=typeof queueMicrotask<"u"?queueMicrotask.bind(Ps):typeof process<"u"&&process.nextTick||by,Y$=n=>n!=null&&di(n[yc]),Se={isArray:Ca,isArrayBuffer:py,isBuffer:ol,isFormData:x$,isArrayBufferView:d$,isString:p$,isNumber:fy,isBoolean:f$,isObject:sl,isPlainObject:xc,isEmptyObject:g$,isReadableStream:k$,isRequest:A$,isResponse:S$,isHeaders:_$,isUndefined:ka,isDate:m$,isFile:v$,isBlob:y$,isRegExp:W$,isFunction:di,isStream:w$,isURLSearchParams:C$,isTypedArray:O$,isFileList:b$,forEach:al,merge:dd,extend:T$,trim:$$,stripBOM:M$,inherits:E$,toFlatObject:I$,kindOf:bc,kindOfTest:ao,endsWith:R$,toArray:L$,forEachEntry:N$,matchAll:D$,isHTMLForm:F$,hasOwnProperty:vy,hasOwnProp:vy,reduceDescriptors:yy,freezeMethods:B$,toObjectSet:H$,toCamelCase:P$,noop:z$,toFiniteNumber:j$,findKey:gy,global:Ps,isContextDefined:my,isSpecCompliantForm:U$,toJSONObject:V$,isAsyncFn:q$,isThenable:K$,setImmediate:by,asap:G$,isIterable:Y$};function $t(n,e,t,r,d){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),d&&(this.response=d,this.status=d.status?d.status:null)}Se.inherits($t,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 wy=$t.prototype,xy={};["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=>{xy[n]={value:n}}),Object.defineProperties($t,xy),Object.defineProperty(wy,"isAxiosError",{value:!0}),$t.from=(n,e,t,r,d,p)=>{const g=Object.create(wy);Se.toFlatObject(n,g,function(f){return f!==Error.prototype},f=>f!=="isAxiosError");const b=n&&n.message?n.message:"Error",h=e==null&&n?n.code:e;return $t.call(g,b,h,t,r,d),n&&g.cause==null&&Object.defineProperty(g,"cause",{value:n,configurable:!0}),g.name=n&&n.name||"Error",p&&Object.assign(g,p),g};const X$=null;function pd(n){return Se.isPlainObject(n)||Se.isArray(n)}function Cy(n){return Se.endsWith(n,"[]")?n.slice(0,-2):n}function ky(n,e,t){return n?n.concat(e).map(function(r,d){return r=Cy(r),!t&&d?"["+r+"]":r}).join(t?".":""):e}function Z$(n){return Se.isArray(n)&&!n.some(pd)}const Q$=Se.toFlatObject(Se,{},null,function(n){return/^is[A-Z]/.test(n)});function Cc(n,e,t){if(!Se.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=Se.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,i){return!Se.isUndefined(i[c])});const r=t.metaTokens,d=t.visitor||f,p=t.dots,g=t.indexes,b=(t.Blob||typeof Blob<"u"&&Blob)&&Se.isSpecCompliantForm(e);if(!Se.isFunction(d))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(!b&&Se.isBlob(c))throw new $t("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(c)||Se.isTypedArray(c)?b&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,i,l){let m=c;if(c&&!l&&typeof c=="object"){if(Se.endsWith(i,"{}"))i=r?i:i.slice(0,-2),c=JSON.stringify(c);else if(Se.isArray(c)&&Z$(c)||(Se.isFileList(c)||Se.endsWith(i,"[]"))&&(m=Se.toArray(c)))return i=Cy(i),m.forEach(function(w,x){!(Se.isUndefined(w)||w===null)&&e.append(g===!0?ky([i],x,p):g===null?i:i+"[]",h(w))}),!1}return pd(c)?!0:(e.append(ky(l,i,p),h(c)),!1)}const s=[],a=Object.assign(Q$,{defaultVisitor:f,convertValue:h,isVisitable:pd});function u(c,i){if(!Se.isUndefined(c)){if(s.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));s.push(c),Se.forEach(c,function(l,m){(!(Se.isUndefined(l)||l===null)&&d.call(e,l,Se.isString(m)?m.trim():m,i,a))===!0&&u(l,i?i.concat(m):[m])}),s.pop()}}if(!Se.isObject(n))throw new TypeError("data must be an object");return u(n),e}function Ay(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function fd(n,e){this._pairs=[],n&&Cc(n,this,e)}const Sy=fd.prototype;Sy.append=function(n,e){this._pairs.push([n,e])},Sy.toString=function(n){const e=n?function(t){return n.call(this,t,Ay)}:Ay;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function J$(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _y(n,e,t){if(!e)return n;const r=t&&t.encode||J$;Se.isFunction(t)&&(t={serialize:t});const d=t&&t.serialize;let p;if(d?p=d(e,t):p=Se.isURLSearchParams(e)?e.toString():new fd(e,t).toString(r),p){const g=n.indexOf("#");g!==-1&&(n=n.slice(0,g)),n+=(n.indexOf("?")===-1?"?":"&")+p}return n}let $y=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Se.forEach(this.handlers,function(t){t!==null&&e(t)})}};const Ty={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eT=typeof URLSearchParams<"u"?URLSearchParams:fd,tT=typeof FormData<"u"?FormData:null,nT=typeof Blob<"u"?Blob:null,rT={isBrowser:!0,classes:{URLSearchParams:eT,FormData:tT,Blob:nT},protocols:["http","https","file","blob","url","data"]},gd=typeof window<"u"&&typeof document<"u",md=typeof navigator=="object"&&navigator||void 0,iT=gd&&(!md||["ReactNative","NativeScript","NS"].indexOf(md.product)<0),oT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sT=gd&&window.location.href||"http://localhost",aT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gd,hasStandardBrowserEnv:iT,hasStandardBrowserWebWorkerEnv:oT,navigator:md,origin:sT},Symbol.toStringTag,{value:"Module"})),Br={...aT,...rT};function lT(n,e){return Cc(n,new Br.classes.URLSearchParams,{visitor:function(t,r,d,p){return Br.isNode&&Se.isBuffer(t)?(this.append(r,t.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...e})}function cT(n){return Se.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function uT(n){const e={},t=Object.keys(n);let r;const d=t.length;let p;for(r=0;r<d;r++)p=t[r],e[p]=n[p];return e}function My(n){function e(t,r,d,p){let g=t[p++];if(g==="__proto__")return!0;const b=Number.isFinite(+g),h=p>=t.length;return g=!g&&Se.isArray(d)?d.length:g,h?(Se.hasOwnProp(d,g)?d[g]=[d[g],r]:d[g]=r,!b):((!d[g]||!Se.isObject(d[g]))&&(d[g]=[]),e(t,r,d[g],p)&&Se.isArray(d[g])&&(d[g]=uT(d[g])),!b)}if(Se.isFormData(n)&&Se.isFunction(n.entries)){const t={};return Se.forEachEntry(n,(r,d)=>{e(cT(r),d,t,0)}),t}return null}function hT(n,e,t){if(Se.isString(n))try{return(e||JSON.parse)(n),Se.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const ll={transitional:Ty,adapter:["xhr","http","fetch"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,d=Se.isObject(n);if(d&&Se.isHTMLForm(n)&&(n=new FormData(n)),Se.isFormData(n))return r?JSON.stringify(My(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 e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(d){if(t.indexOf("application/x-www-form-urlencoded")>-1)return lT(n,this.formSerializer).toString();if((p=Se.isFileList(n))||t.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Cc(p?{"files[]":n}:n,g&&new g,this.formSerializer)}}return d||r?(e.setContentType("application/json",!1),hT(n)):n}],transformResponse:[function(n){const e=this.transitional||ll.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(Se.isResponse(n)||Se.isReadableStream(n))return n;if(n&&Se.isString(n)&&(t&&!this.responseType||r)){const d=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n,this.parseReviver)}catch(p){if(d)throw p.name==="SyntaxError"?$t.from(p,$t.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Br.classes.FormData,Blob:Br.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=>{ll.headers[n]={}});const dT=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"]),pT=n=>{const e={};let t,r,d;return n&&n.split(`
|
|
1491
1491
|
`).forEach(function(p){d=p.indexOf(":"),t=p.substring(0,d).trim().toLowerCase(),r=p.substring(d+1).trim(),!(!t||e[t]&&dT[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},Ey=Symbol("internals");function cl(n){return n&&String(n).trim().toLowerCase()}function kc(n){return n===!1||n==null?n:Se.isArray(n)?n.map(kc):String(n)}function fT(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const gT=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function vd(n,e,t,r,d){if(Se.isFunction(r))return r.call(this,e,t);if(d&&(e=t),!!Se.isString(e)){if(Se.isString(r))return e.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(e)}}function mT(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function vT(n,e){const t=Se.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(d,p,g){return this[r].call(this,e,d,p,g)},configurable:!0})})}let pi=class{constructor(e){e&&this.set(e)}set(e,t,r){const d=this;function p(b,h,f){const s=cl(h);if(!s)throw new Error("header name must be a non-empty string");const a=Se.findKey(d,s);(!a||d[a]===void 0||f===!0||f===void 0&&d[a]!==!1)&&(d[a||h]=kc(b))}const g=(b,h)=>Se.forEach(b,(f,s)=>p(f,s,h));if(Se.isPlainObject(e)||e instanceof this.constructor)g(e,t);else if(Se.isString(e)&&(e=e.trim())&&!gT(e))g(pT(e),t);else if(Se.isObject(e)&&Se.isIterable(e)){let b={},h,f;for(const s of e){if(!Se.isArray(s))throw TypeError("Object iterator must return a key-value pair");b[f=s[0]]=(h=b[f])?Se.isArray(h)?[...h,s[1]]:[h,s[1]]:s[1]}g(b,t)}else e!=null&&p(t,e,r);return this}get(e,t){if(e=cl(e),e){const r=Se.findKey(this,e);if(r){const d=this[r];if(!t)return d;if(t===!0)return fT(d);if(Se.isFunction(t))return t.call(this,d,r);if(Se.isRegExp(t))return t.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=cl(e),e){const r=Se.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||vd(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let d=!1;function p(g){if(g=cl(g),g){const b=Se.findKey(r,g);b&&(!t||vd(r,r[b],b,t))&&(delete r[b],d=!0)}}return Se.isArray(e)?e.forEach(p):p(e),d}clear(e){const t=Object.keys(this);let r=t.length,d=!1;for(;r--;){const p=t[r];(!e||vd(this,this[p],p,e,!0))&&(delete this[p],d=!0)}return d}normalize(e){const t=this,r={};return Se.forEach(this,(d,p)=>{const g=Se.findKey(r,p);if(g){t[g]=kc(d),delete t[p];return}const b=e?mT(p):String(p).trim();b!==p&&delete t[p],t[b]=kc(d),r[b]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Se.forEach(this,(r,d)=>{r!=null&&r!==!1&&(t[d]=e&&Se.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
1492
1492
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(d=>r.set(d)),r}static accessor(e){const t=(this[Ey]=this[Ey]={accessors:{}}).accessors,r=this.prototype;function d(p){const g=cl(p);t[g]||(vT(r,p),t[g]=!0)}return Se.isArray(e)?e.forEach(d):d(e),this}};pi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Se.reduceDescriptors(pi.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}}),Se.freezeMethods(pi);function yd(n,e){const t=this||ll,r=e||t,d=pi.from(r.headers);let p=r.data;return Se.forEach(n,function(g){p=g.call(t,p,d.normalize(),e?e.status:void 0)}),d.normalize(),p}function Iy(n){return!!(n&&n.__CANCEL__)}function Aa(n,e,t){$t.call(this,n??"canceled",$t.ERR_CANCELED,e,t),this.name="CanceledError"}Se.inherits(Aa,$t,{__CANCEL__:!0});function Ry(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new $t("Request failed with status code "+t.status,[$t.ERR_BAD_REQUEST,$t.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function yT(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function bT(n,e){n=n||10;const t=new Array(n),r=new Array(n);let d=0,p=0,g;return e=e!==void 0?e:1e3,function(b){const h=Date.now(),f=r[p];g||(g=h),t[d]=b,r[d]=h;let s=p,a=0;for(;s!==d;)a+=t[s++],s=s%n;if(d=(d+1)%n,d===p&&(p=(p+1)%n),h-g<e)return;const u=f&&h-f;return u?Math.round(a*1e3/u):void 0}}function wT(n,e){let t=0,r=1e3/e,d,p;const g=(b,h=Date.now())=>{t=h,d=null,p&&(clearTimeout(p),p=null),n(...b)};return[(...b)=>{const h=Date.now(),f=h-t;f>=r?g(b,h):(d=b,p||(p=setTimeout(()=>{p=null,g(d)},r-f)))},()=>d&&g(d)]}const Ac=(n,e,t=3)=>{let r=0;const d=bT(50,250);return wT(p=>{const g=p.loaded,b=p.lengthComputable?p.total:void 0,h=g-r,f=d(h),s=g<=b;r=g;const a={loaded:g,total:b,progress:b?g/b:void 0,bytes:h,rate:f||void 0,estimated:f&&b&&s?(b-g)/f:void 0,event:p,lengthComputable:b!=null,[e?"download":"upload"]:!0};n(a)},t)},Ly=(n,e)=>{const t=n!=null;return[r=>e[0]({lengthComputable:t,total:n,loaded:r}),e[1]]},Oy=n=>(...e)=>Se.asap(()=>n(...e)),xT=Br.hasStandardBrowserEnv?((n,e)=>t=>(t=new URL(t,Br.origin),n.protocol===t.protocol&&n.host===t.host&&(e||n.port===t.port)))(new URL(Br.origin),Br.navigator&&/(msie|trident)/i.test(Br.navigator.userAgent)):()=>!0,CT=Br.hasStandardBrowserEnv?{write(n,e,t,r,d,p,g){if(typeof document>"u")return;const b=[`${n}=${encodeURIComponent(e)}`];Se.isNumber(t)&&b.push(`expires=${new Date(t).toUTCString()}`),Se.isString(r)&&b.push(`path=${r}`),Se.isString(d)&&b.push(`domain=${d}`),p===!0&&b.push("secure"),Se.isString(g)&&b.push(`SameSite=${g}`),document.cookie=b.join("; ")},read(n){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function kT(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function AT(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function Ny(n,e,t){let r=!kT(e);return n&&(r||t==!1)?AT(n,e):e}const Dy=n=>n instanceof pi?{...n}:n;function Ws(n,e){e=e||{};const t={};function r(f,s,a,u){return Se.isPlainObject(f)&&Se.isPlainObject(s)?Se.merge.call({caseless:u},f,s):Se.isPlainObject(s)?Se.merge({},s):Se.isArray(s)?s.slice():s}function d(f,s,a,u){if(Se.isUndefined(s)){if(!Se.isUndefined(f))return r(void 0,f,a,u)}else return r(f,s,a,u)}function p(f,s){if(!Se.isUndefined(s))return r(void 0,s)}function g(f,s){if(Se.isUndefined(s)){if(!Se.isUndefined(f))return r(void 0,f)}else return r(void 0,s)}function b(f,s,a){if(a in e)return r(f,s);if(a in n)return r(void 0,f)}const h={url:p,method:p,data:p,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:b,headers:(f,s,a)=>d(Dy(f),Dy(s),a,!0)};return Se.forEach(Object.keys({...n,...e}),function(f){const s=h[f]||d,a=s(n[f],e[f],f);Se.isUndefined(a)&&s!==b||(t[f]=a)}),t}const Fy=n=>{const e=Ws({},n);let{data:t,withXSRFToken:r,xsrfHeaderName:d,xsrfCookieName:p,headers:g,auth:b}=e;if(e.headers=g=pi.from(g),e.url=_y(Ny(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),b&&g.set("Authorization","Basic "+btoa((b.username||"")+":"+(b.password?unescape(encodeURIComponent(b.password)):""))),Se.isFormData(t)){if(Br.hasStandardBrowserEnv||Br.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if(Se.isFunction(t.getHeaders)){const h=t.getHeaders(),f=["content-type","content-length"];Object.entries(h).forEach(([s,a])=>{f.includes(s.toLowerCase())&&g.set(s,a)})}}if(Br.hasStandardBrowserEnv&&(r&&Se.isFunction(r)&&(r=r(e)),r||r!==!1&&xT(e.url))){const h=d&&p&&CT.read(p);h&&g.set(d,h)}return e},ST=typeof XMLHttpRequest<"u",_T=ST&&function(n){return new Promise(function(e,t){const r=Fy(n);let d=r.data;const p=pi.from(r.headers).normalize();let{responseType:g,onUploadProgress:b,onDownloadProgress:h}=r,f,s,a,u,c;function i(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(f),r.signal&&r.signal.removeEventListener("abort",f)}let l=new XMLHttpRequest;l.open(r.method.toUpperCase(),r.url,!0),l.timeout=r.timeout;function m(){if(!l)return;const x=pi.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),M={data:!g||g==="text"||g==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:x,config:n,request:l};Ry(function(_){e(_),i()},function(_){t(_),i()},M),l=null}"onloadend"in l?l.onloadend=m:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(m)},l.onabort=function(){l&&(t(new $t("Request aborted",$t.ECONNABORTED,n,l)),l=null)},l.onerror=function(x){const M=x&&x.message?x.message:"Network Error",_=new $t(M,$t.ERR_NETWORK,n,l);_.event=x||null,t(_),l=null},l.ontimeout=function(){let x=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const M=r.transitional||Ty;r.timeoutErrorMessage&&(x=r.timeoutErrorMessage),t(new $t(x,M.clarifyTimeoutError?$t.ETIMEDOUT:$t.ECONNABORTED,n,l)),l=null},d===void 0&&p.setContentType(null),"setRequestHeader"in l&&Se.forEach(p.toJSON(),function(x,M){l.setRequestHeader(M,x)}),Se.isUndefined(r.withCredentials)||(l.withCredentials=!!r.withCredentials),g&&g!=="json"&&(l.responseType=r.responseType),h&&([a,c]=Ac(h,!0),l.addEventListener("progress",a)),b&&l.upload&&([s,u]=Ac(b),l.upload.addEventListener("progress",s),l.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(f=x=>{l&&(t(!x||x.type?new Aa(null,n,l):x),l.abort(),l=null)},r.cancelToken&&r.cancelToken.subscribe(f),r.signal&&(r.signal.aborted?f():r.signal.addEventListener("abort",f)));const w=yT(r.url);if(w&&Br.protocols.indexOf(w)===-1){t(new $t("Unsupported protocol "+w+":",$t.ERR_BAD_REQUEST,n));return}l.send(d||null)})},$T=(n,e)=>{const{length:t}=n=n?n.filter(Boolean):[];if(e||t){let r=new AbortController,d;const p=function(f){if(!d){d=!0,b();const s=f instanceof Error?f:this.reason;r.abort(s instanceof $t?s:new Aa(s instanceof Error?s.message:s))}};let g=e&&setTimeout(()=>{g=null,p(new $t(`timeout ${e} of ms exceeded`,$t.ETIMEDOUT))},e);const b=()=>{n&&(g&&clearTimeout(g),g=null,n.forEach(f=>{f.unsubscribe?f.unsubscribe(p):f.removeEventListener("abort",p)}),n=null)};n.forEach(f=>f.addEventListener("abort",p));const{signal:h}=r;return h.unsubscribe=()=>Se.asap(b),h}},TT=function*(n,e){let t=n.byteLength;if(t<e){yield n;return}let r=0,d;for(;r<t;)d=r+e,yield n.slice(r,d),r=d},MT=async function*(n,e){for await(const t of ET(n))yield*TT(t,e)},ET=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},Py=(n,e,t,r)=>{const d=MT(n,e);let p=0,g,b=h=>{g||(g=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:f,value:s}=await d.next();if(f){b(),h.close();return}let a=s.byteLength;if(t){let u=p+=a;t(u)}h.enqueue(new Uint8Array(s))}catch(f){throw b(f),f}},cancel(h){return b(h),d.return()}},{highWaterMark:2})},Wy=64*1024,{isFunction:Sc}=Se,IT=(({Request:n,Response:e})=>({Request:n,Response:e}))(Se.global),{ReadableStream:By,TextEncoder:Hy}=Se.global,zy=(n,...e)=>{try{return!!n(...e)}catch{return!1}},RT=n=>{n=Se.merge.call({skipUndefined:!0},IT,n);const{fetch:e,Request:t,Response:r}=n,d=e?Sc(e):typeof fetch=="function",p=Sc(t),g=Sc(r);if(!d)return!1;const b=d&&Sc(By),h=d&&(typeof Hy=="function"?(i=>l=>i.encode(l))(new Hy):async i=>new Uint8Array(await new t(i).arrayBuffer())),f=p&&b&&zy(()=>{let i=!1;const l=new t(Br.origin,{body:new By,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!l}),s=g&&b&&zy(()=>Se.isReadableStream(new r("").body)),a={stream:s&&(i=>i.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!a[i]&&(a[i]=(l,m)=>{let w=l&&l[i];if(w)return w.call(l);throw new $t(`Response type '${i}' is not supported`,$t.ERR_NOT_SUPPORT,m)})});const u=async i=>{if(i==null)return 0;if(Se.isBlob(i))return i.size;if(Se.isSpecCompliantForm(i))return(await new t(Br.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,l)=>Se.toFiniteNumber(i.getContentLength())??u(l);return async i=>{let{url:l,method:m,data:w,signal:x,cancelToken:M,timeout:_,onDownloadProgress:k,onUploadProgress:C,responseType:L,headers:D,withCredentials:R="same-origin",fetchOptions:I}=Fy(i),H=e||fetch;L=L?(L+"").toLowerCase():"text";let P=$T([x,M&&M.toAbortSignal()],_),O=null;const $=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let A;try{if(C&&f&&m!=="get"&&m!=="head"&&(A=await c(D,w))!==0){let J=new t(l,{method:"POST",body:w,duplex:"half"}),he;if(Se.isFormData(w)&&(he=J.headers.get("content-type"))&&D.setContentType(he),J.body){const[ne,le]=Ly(A,Ac(Oy(C)));w=Py(J.body,Wy,ne,le)}}Se.isString(R)||(R=R?"include":"omit");const N=p&&"credentials"in t.prototype,B={...I,signal:P,method:m.toUpperCase(),headers:D.normalize().toJSON(),body:w,duplex:"half",credentials:N?R:void 0};O=p&&new t(l,B);let U=await(p?H(O,I):H(l,B));const K=s&&(L==="stream"||L==="response");if(s&&(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&&Ly(he,Ac(Oy(k),!0))||[];U=new r(Py(U.body,Wy,ne,()=>{le&&le(),$&&$()}),J)}L=L||"text";let Q=await a[Se.findKey(a,L)||"text"](U,i);return!K&&$&&$(),await new Promise((J,he)=>{Ry(J,he,{data:Q,headers:pi.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 $t("Network Error",$t.ERR_NETWORK,i,O),{cause:N.cause||N}):$t.from(N,N&&N.code,i,O)}}},LT=new Map,jy=n=>{let e=n&&n.env||{};const{fetch:t,Request:r,Response:d}=e,p=[r,d,t];let g=p.length,b=g,h,f,s=LT;for(;b--;)h=p[b],f=s.get(h),f===void 0&&s.set(h,f=b?new Map:RT(e)),s=f;return f};jy();const bd={http:X$,xhr:_T,fetch:{get:jy}};Se.forEach(bd,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Uy=n=>`- ${n}`,OT=n=>Se.isFunction(n)||n===null||n===!1;function NT(n,e){n=Se.isArray(n)?n:[n];const{length:t}=n;let r,d;const p={};for(let g=0;g<t;g++){r=n[g];let b;if(d=r,!OT(r)&&(d=bd[(b=String(r)).toLowerCase()],d===void 0))throw new $t(`Unknown adapter '${b}'`);if(d&&(Se.isFunction(d)||(d=d.get(e))))break;p[b||"#"+g]=d}if(!d){const g=Object.entries(p).map(([h,f])=>`adapter ${h} `+(f===!1?"is not supported by the environment":"is not available in the build"));let b=t?g.length>1?`since :
|
|
1493
1493
|
`+g.map(Uy).join(`
|
|
1494
1494
|
`):" "+Uy(g[0]):"as no adapter specified";throw new $t("There is no suitable adapter to dispatch the request "+b,"ERR_NOT_SUPPORT")}return d}const Vy={getAdapter:NT,adapters:bd};function wd(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Aa(null,n)}function qy(n){return wd(n),n.headers=pi.from(n.headers),n.data=yd.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Vy.getAdapter(n.adapter||ll.adapter,n)(n).then(function(e){return wd(n),e.data=yd.call(n,n.transformResponse,e),e.headers=pi.from(e.headers),e},function(e){return Iy(e)||(wd(n),e&&e.response&&(e.response.data=yd.call(n,n.transformResponse,e.response),e.response.headers=pi.from(e.response.headers))),Promise.reject(e)})}const Ky="1.13.2",_c={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{_c[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const Gy={};_c.transitional=function(n,e,t){function r(d,p){return"[Axios v"+Ky+"] Transitional option '"+d+"'"+p+(t?". "+t:"")}return(d,p,g)=>{if(n===!1)throw new $t(r(p," has been removed"+(e?" in "+e:"")),$t.ERR_DEPRECATED);return e&&!Gy[p]&&(Gy[p]=!0,console.warn(r(p," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(d,p,g):!0}},_c.spelling=function(n){return(e,t)=>(console.warn(`${t} is likely a misspelling of ${n}`),!0)};function DT(n,e,t){if(typeof n!="object")throw new $t("options must be an object",$t.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let d=r.length;for(;d-- >0;){const p=r[d],g=e[p];if(g){const b=n[p],h=b===void 0||g(b,p,n);if(h!==!0)throw new $t("option "+p+" must be "+h,$t.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new $t("Unknown option "+p,$t.ERR_BAD_OPTION)}}const $c={assertOptions:DT,validators:_c},wo=$c.validators;let Bs=class{constructor(e){this.defaults=e||{},this.interceptors={request:new $y,response:new $y}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const p=d.stack?d.stack.replace(/^.+\n/,""):"";try{r.stack?p&&!String(r.stack).endsWith(p.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
1495
|
-
`+p):r.stack=p}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ws(this.defaults,t);const{transitional:r,paramsSerializer:d,headers:p}=t;r!==void 0&&$c.assertOptions(r,{silentJSONParsing:wo.transitional(wo.boolean),forcedJSONParsing:wo.transitional(wo.boolean),clarifyTimeoutError:wo.transitional(wo.boolean)},!1),d!=null&&(Se.isFunction(d)?t.paramsSerializer={serialize:d}:$c.assertOptions(d,{encode:wo.function,serialize:wo.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),$c.assertOptions(t,{baseUrl:wo.spelling("baseURL"),withXsrfToken:wo.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let g=p&&Se.merge(p.common,p[t.method]);p&&Se.forEach(["delete","get","head","post","put","patch","common"],i=>{delete p[i]}),t.headers=pi.concat(g,p);const b=[];let h=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(t)===!1||(h=h&&i.synchronous,b.unshift(i.fulfilled,i.rejected))});const f=[];this.interceptors.response.forEach(function(i){f.push(i.fulfilled,i.rejected)});let s,a=0,u;if(!h){const i=[qy.bind(this),void 0];for(i.unshift(...b),i.push(...f),u=i.length,s=Promise.resolve(t);a<u;)s=s.then(i[a++],i[a++]);return s}u=b.length;let c=t;for(;a<u;){const i=b[a++],l=b[a++];try{c=i(c)}catch(m){l.call(this,m);break}}try{s=qy.call(this,c)}catch(i){return Promise.reject(i)}for(a=0,u=f.length;a<u;)s=s.then(f[a++],f[a++]);return s}getUri(e){e=Ws(this.defaults,e);const t=Ny(e.baseURL,e.url,e.allowAbsoluteUrls);return _y(t,e.params,e.paramsSerializer)}};Se.forEach(["delete","get","head","options"],function(n){Bs.prototype[n]=function(e,t){return this.request(Ws(t||{},{method:n,url:e,data:(t||{}).data}))}}),Se.forEach(["post","put","patch"],function(n){function e(t){return function(r,d,p){return this.request(Ws(p||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}Bs.prototype[n]=e(),Bs.prototype[n+"Form"]=e(!0)});let FT=class ax{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(d){t=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](d);r._listeners=null}),this.promise.then=d=>{let p;const g=new Promise(b=>{r.subscribe(b),p=b}).then(d);return g.cancel=function(){r.unsubscribe(p)},g},e(function(d,p,g){r.reason||(r.reason=new Aa(d,p,g),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ax(function(t){e=t}),cancel:e}}};function PT(n){return function(e){return n.apply(null,e)}}function WT(n){return Se.isObject(n)&&n.isAxiosError===!0}const xd={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(xd).forEach(([n,e])=>{xd[e]=n});function Yy(n){const e=new Bs(n),t=hy(Bs.prototype.request,e);return Se.extend(t,Bs.prototype,e,{allOwnKeys:!0}),Se.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Yy(Ws(n,r))},t}const tr=pr("w",Yy(ll));tr.Axios=Bs,tr.CanceledError=Aa,tr.CancelToken=FT,tr.isCancel=Iy,tr.VERSION=Ky,tr.toFormData=Cc,tr.AxiosError=$t,tr.Cancel=tr.CanceledError,tr.all=function(n){return Promise.all(n)},tr.spread=PT,tr.isAxiosError=WT,tr.mergeConfig=Ws,tr.AxiosHeaders=pi,tr.formToJSON=n=>My(Se.isHTMLForm(n)?new FormData(n):n),tr.getAdapter=Vy.getAdapter,tr.HttpStatusCode=xd,tr.default=tr;const{Axios:pP,AxiosError:fP,CanceledError:gP,isCancel:mP,CancelToken:vP,VERSION:yP,all:bP,Cancel:wP,isAxiosError:xP,spread:CP,toFormData:kP,AxiosHeaders:AP,HttpStatusCode:SP,formToJSON:_P,getAdapter:$P,mergeConfig:TP}=tr;function Xy(){return Object.assign({},oa())}function BT(n,e,t){const r=In(n,void 0);return r.setTime(r.getTime()+e*Nl),r}function HT(n,e){const t=()=>lr(void 0,NaN),r=VT(n);let d;if(r.date){const h=qT(r.date,2);d=KT(h.restDateString,h.year)}if(!d||isNaN(+d))return t();const p=+d;let g=0,b;if(r.time&&(g=GT(r.time),isNaN(g)))return t();if(r.timezone){if(b=YT(r.timezone),isNaN(b))return t()}else{const h=new Date(p+g),f=In(0,void 0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return In(p+g+b,void 0)}const Tc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zT=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jT=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,UT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function VT(n){const e={},t=n.split(Tc.dateTimeDelimiter);let r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],Tc.timeZoneDelimiter.test(e.date)&&(e.date=n.split(Tc.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){const d=Tc.timezone.exec(r);d?(e.time=r.replace(d[1],""),e.timezone=d[1]):e.time=r}return e}function qT(n,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};const d=r[1]?parseInt(r[1]):null,p=r[2]?parseInt(r[2]):null;return{year:p===null?d:p*100,restDateString:n.slice((r[1]||r[2]).length)}}function KT(n,e){if(e===null)return new Date(NaN);const t=n.match(zT);if(!t)return new Date(NaN);const r=!!t[4],d=ul(t[1]),p=ul(t[2])-1,g=ul(t[3]),b=ul(t[4]),h=ul(t[5])-1;if(r)return eM(e,b,h)?XT(e,b,h):new Date(NaN);{const f=new Date(0);return!QT(e,p,g)||!JT(e,d)?new Date(NaN):(f.setUTCFullYear(e,p,Math.max(d,g)),f)}}function ul(n){return n?parseInt(n):1}function GT(n){const e=n.match(jT);if(!e)return NaN;const t=Cd(e[1]),r=Cd(e[2]),d=Cd(e[3]);return tM(t,r,d)?t*Mu+r*Nl+d*1e3:NaN}function Cd(n){return n&&parseFloat(n.replace(",","."))||0}function YT(n){if(n==="Z")return 0;const e=n.match(UT);if(!e)return 0;const t=e[1]==="+"?-1:1,r=parseInt(e[2]),d=e[3]&&parseInt(e[3])||0;return nM(r,d)?t*(r*Mu+d*Nl):NaN}function XT(n,e,t){const r=new Date(0);r.setUTCFullYear(n,0,4);const d=r.getUTCDay()||7,p=(e-1)*7+t+1-d;return r.setUTCDate(r.getUTCDate()+p),r}const ZT=[31,null,31,30,31,30,31,31,30,31,30,31];function Zy(n){return n%400===0||n%4===0&&n%100!==0}function QT(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(ZT[e]||(Zy(n)?29:28))}function JT(n,e){return e>=1&&e<=(Zy(n)?366:365)}function eM(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function tM(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function nM(n,e){return e>=0&&e<=59}function rM(n,e,t){return BT(n,-e)}function Qy(n,e,t){const r=Xy(),d=sM(n,t.timeZone,t.locale??r.locale);return"formatToParts"in d?iM(d,e):oM(d,e)}function iM(n,e){const t=n.formatToParts(e);for(let r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function oM(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function sM(n,e,t){return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:e,timeZoneName:n})}function aM(n,e){const t=dM(e);return"formatToParts"in t?cM(t,n):uM(t,n)}const lM={year:0,month:1,day:2,hour:3,minute:4,second:5};function cM(n,e){try{const t=n.formatToParts(e),r=[];for(let d=0;d<t.length;d++){const p=lM[t[d].type];p!==void 0&&(r[p]=parseInt(t[d].value,10))}return r}catch(t){if(t instanceof RangeError)return[NaN];throw t}}function uM(n,e){const t=n.format(e),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const kd={},Jy=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")),hM=Jy==="06/25/2014, 00:00:00"||Jy==="06/25/2014 00:00:00";function dM(n){return kd[n]||(kd[n]=hM?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"})),kd[n]}function eb(n,e,t,r,d,p,g){const b=new Date(0);return b.setUTCFullYear(n,e,t),b.setUTCHours(r,d,p,g),b}const tb=36e5,pM=6e4,Ad={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Sd(n,e,t){if(!n)return 0;let r=Ad.timezoneZ.exec(n);if(r)return 0;let d,p;if(r=Ad.timezoneHH.exec(n),r)return d=parseInt(r[1],10),nb(d)?-(d*tb):NaN;if(r=Ad.timezoneHHMM.exec(n),r){d=parseInt(r[2],10);const g=parseInt(r[3],10);return nb(d,g)?(p=Math.abs(d)*tb+g*pM,r[1]==="+"?-p:p):NaN}if(mM(n)){e=new Date(e||Date.now());const g=t?e:fM(e),b=_d(g,n);return-(t?b:gM(e,b,n))}return NaN}function fM(n){return eb(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function _d(n,e){const t=aM(n,e),r=eb(t[0],t[1]-1,t[2],t[3]%24,t[4],t[5],0).getTime();let d=n.getTime();const p=d%1e3;return d-=p>=0?p:1e3+p,r-d}function gM(n,e,t){let r=n.getTime()-e;const d=_d(new Date(r),t);if(e===d)return e;r-=d-e;const p=_d(new Date(r),t);return d===p?d:Math.max(d,p)}function nb(n,e){return-23<=n&&n<=23&&(e==null||0<=e&&e<=59)}const rb={};function mM(n){if(rb[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),rb[n]=!0,!0}catch{return!1}}const vM=60*1e3,yM={X:function(n,e,t){const r=$d(t.timeZone,n);if(r===0)return"Z";switch(e){case"X":return ib(r);case"XXXX":case"XX":return Sa(r);case"XXXXX":case"XXX":default:return Sa(r,":")}},x:function(n,e,t){const r=$d(t.timeZone,n);switch(e){case"x":return ib(r);case"xxxx":case"xx":return Sa(r);case"xxxxx":case"xxx":default:return Sa(r,":")}},O:function(n,e,t){const r=$d(t.timeZone,n);switch(e){case"O":case"OO":case"OOO":return"GMT"+bM(r,":");case"OOOO":default:return"GMT"+Sa(r,":")}},z:function(n,e,t){switch(e){case"z":case"zz":case"zzz":return Qy("short",n,t);case"zzzz":default:return Qy("long",n,t)}}};function $d(n,e){const t=n?Sd(n,e,!0)/vM:(e==null?void 0:e.getTimezoneOffset())??0;if(Number.isNaN(t))throw new RangeError("Invalid time zone specified: "+n);return t}function Mc(n,e){const t=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<e;)r="0"+r;return t+r}function Sa(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Mc(Math.floor(r/60),2),p=Mc(Math.floor(r%60),2);return t+d+e+p}function ib(n,e){return n%60===0?(n>0?"-":"+")+Mc(Math.abs(n)/60,2):Sa(n,e)}function bM(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Math.floor(r/60),p=r%60;return p===0?t+String(d):t+String(d)+e+Mc(p,2)}function ob(n){const e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+n-+e}const wM=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Td=36e5,sb=6e4,xM=2,Yr={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:wM};function ab(n,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const t=e.additionalDigits==null?xM:Number(e.additionalDigits);if(t!==2&&t!==1&&t!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const r=CM(n),{year:d,restDateString:p}=kM(r.date,t),g=AM(p,d);if(g===null||isNaN(g.getTime()))return new Date(NaN);if(g){const b=g.getTime();let h=0,f;if(r.time&&(h=SM(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||e.timeZone){if(f=Sd(r.timeZone||e.timeZone,new Date(b+h)),isNaN(f))return new Date(NaN)}else f=ob(new Date(b+h)),f=ob(new Date(b+h+f));return new Date(b+h+f)}else return new Date(NaN)}function CM(n){const e={};let t=Yr.dateTimePattern.exec(n),r;if(t?(e.date=t[1],r=t[3]):(t=Yr.datePattern.exec(n),t?(e.date=t[1],r=t[2]):(e.date=null,r=n)),r){const d=Yr.timeZone.exec(r);d?(e.time=r.replace(d[1],""),e.timeZone=d[1].trim()):e.time=r}return e}function kM(n,e){if(n){const t=Yr.YYY[e],r=Yr.YYYYY[e];let d=Yr.YYYY.exec(n)||r.exec(n);if(d){const p=d[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(d=Yr.YY.exec(n)||t.exec(n),d){const p=d[1];return{year:parseInt(p,10)*100,restDateString:n.slice(p.length)}}}return{year:null}}function AM(n,e){if(e===null)return null;let t,r,d;if(!n||!n.length)return t=new Date(0),t.setUTCFullYear(e),t;let p=Yr.MM.exec(n);if(p)return t=new Date(0),r=parseInt(p[1],10)-1,ub(e,r)?(t.setUTCFullYear(e,r),t):new Date(NaN);if(p=Yr.DDD.exec(n),p){t=new Date(0);const g=parseInt(p[1],10);return TM(e,g)?(t.setUTCFullYear(e,0,g),t):new Date(NaN)}if(p=Yr.MMDD.exec(n),p){t=new Date(0),r=parseInt(p[1],10)-1;const g=parseInt(p[2],10);return ub(e,r,g)?(t.setUTCFullYear(e,r,g),t):new Date(NaN)}if(p=Yr.Www.exec(n),p)return d=parseInt(p[1],10)-1,hb(d)?lb(e,d):new Date(NaN);if(p=Yr.WwwD.exec(n),p){d=parseInt(p[1],10)-1;const g=parseInt(p[2],10)-1;return hb(d,g)?lb(e,d,g):new Date(NaN)}return null}function SM(n){let e,t,r=Yr.HH.exec(n);if(r)return e=parseFloat(r[1].replace(",",".")),Md(e)?e%24*Td:NaN;if(r=Yr.HHMM.exec(n),r)return e=parseInt(r[1],10),t=parseFloat(r[2].replace(",",".")),Md(e,t)?e%24*Td+t*sb:NaN;if(r=Yr.HHMMSS.exec(n),r){e=parseInt(r[1],10),t=parseInt(r[2],10);const d=parseFloat(r[3].replace(",","."));return Md(e,t,d)?e%24*Td+t*sb+d*1e3:NaN}return null}function lb(n,e,t){e=e||0,t=t||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const d=r.getUTCDay()||7,p=e*7+t+1-d;return r.setUTCDate(r.getUTCDate()+p),r}const _M=[31,28,31,30,31,30,31,31,30,31,30,31],$M=[31,29,31,30,31,30,31,31,30,31,30,31];function cb(n){return n%400===0||n%4===0&&n%100!==0}function ub(n,e,t){if(e<0||e>11)return!1;if(t!=null){if(t<1)return!1;const r=cb(n);if(r&&t>$M[e]||!r&&t>_M[e])return!1}return!0}function TM(n,e){if(e<1)return!1;const t=cb(n);return!(t&&e>366||!t&&e>365)}function hb(n,e){return!(n<0||n>52||e!=null&&(e<0||e>6))}function Md(n,e,t){return!(n<0||n>=25||e!=null&&(e<0||e>=60)||t!=null&&(t<0||t>=60))}const MM=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function EM(n,e,t={}){e=String(e);const r=e.match(MM);if(r){const d=ab(t.originalDate||n,t);e=r.reduce(function(p,g){if(g[0]==="'")return p;const b=p.indexOf(g),h=p[b-1]==="'",f=p.replace(g,"'"+yM[g[0]](d,g,t)+"'");return h?f.substring(0,b-1)+f.substring(b+1):f},e)}return ts(n,e,t)}function IM(n,e,t){n=ab(n,t);const r=Sd(e,n,!0),d=new Date(n.getTime()-r),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}function Ec(n,e,t,r){return r={...r,timeZone:e,originalDate:n},EM(IM(n,e,{timeZone:r.timeZone}),t,r)}const Ic="yyyy-MM-dd",db="HH:mm:ss.SSS",pb="HH:mm:ss",Rc=`${Ic} ${db}`,fb=`${Ic} ${pb}`,MP=pr("R",{methods:{parseDateTime(n,e){return n.includes(" ")&&(n=n.replace(" ","T")),e&&e==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,e){return ts(!e||e==="local"?rM(n,n.getTimezoneOffset()):n,Rc)},formatDateTime(n,e){return!e||e==="local"?ts(n,Rc):Ec(n,e,Rc)},formatDateTimeHMS(n,e){return!e||e==="local"?ts(n,fb):Ec(n,e,fb)},formatDate:function(n,e){return!e||e==="local"?ts(n,Ic):Ec(n,this.timeZone,Ic)},formatTime:function(n,e,t=db){return!e||e==="local"?ts(n,t):Ec(n,this.timeZone,t)},formatTimeHMS:function(n,e){return this.formatTime(n,e,pb)},formatTimestamp(n,e){return this.formatDateTime(HT(n),e)},formatSeconds(n,e){return this.formatDateTime(new Date(n*1e3),e)},formatNanoseconds(n,e){return this.formatDateTime(new Date(parseInt(n)/1e6),e)}}});var RM=Object.defineProperty,LM=(n,e,t)=>e in n?RM(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,it=(n,e,t)=>LM(n,typeof e!="symbol"?e+"":e,t);function Ed(n,e,t){const r=In(n,t==null?void 0:t.in);return isNaN(e)?lr((t==null?void 0:t.in)||n,NaN):(e&&r.setDate(r.getDate()+e),r)}function OM(n,e){const t=In(n,void 0).getDay();return t===0?7:t}function NM(n,e){const t=DM(e)?new e(0):lr(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function DM(n){var e;return typeof n=="function"&&((e=n.prototype)==null?void 0:e.constructor)===n}const FM=10;let gb=class{constructor(){it(this,"subPriority",0)}validate(e,t){return!0}},PM=class extends gb{constructor(e,t,r,d,p){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=d,p&&(this.subPriority=p)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}},WM=class extends gb{constructor(e,t){super(),it(this,"priority",FM),it(this,"subPriority",-1),this.context=e||(r=>lr(t,r))}set(e,t){return t.timestampIsSet?e:lr(e,NM(e,this.context))}};class sn{run(e,t,r,d){const p=this.parse(e,t,r,d);return p?{setter:new PM(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(e,t,r){return!0}}let BM=class extends sn{constructor(){super(...arguments),it(this,"priority",140),it(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};const nr={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}/},xo={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 rr(n,e){return n&&{value:e(n.value),rest:n.rest}}function Pn(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Co(n,e){const t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const r=t[1]==="+"?1:-1,d=t[2]?parseInt(t[2],10):0,p=t[3]?parseInt(t[3],10):0,g=t[5]?parseInt(t[5],10):0;return{value:r*(d*Mu+p*Nl+g*Sx),rest:e.slice(t[0].length)}}function mb(n){return Pn(nr.anyDigitsSigned,n)}function Un(n,e){switch(n){case 1:return Pn(nr.singleDigit,e);case 2:return Pn(nr.twoDigits,e);case 3:return Pn(nr.threeDigits,e);case 4:return Pn(nr.fourDigits,e);default:return Pn(new RegExp("^\\d{1,"+n+"}"),e)}}function vb(n,e){switch(n){case 1:return Pn(nr.singleDigitSigned,e);case 2:return Pn(nr.twoDigitsSigned,e);case 3:return Pn(nr.threeDigitsSigned,e);case 4:return Pn(nr.fourDigitsSigned,e);default:return Pn(new RegExp("^-?\\d{1,"+n+"}"),e)}}function Id(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 yb(n,e){const t=e>0,r=t?e:1-e;let d;if(r<=50)d=n||100;else{const p=r+50,g=Math.trunc(p/100)*100,b=n>=p%100;d=n+g-(b?100:0)}return t?d:1-d}function bb(n){return n%400===0||n%4===0&&n%100!==0}let HM=class extends sn{constructor(){super(...arguments),it(this,"priority",130),it(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,r){const d=p=>({year:p,isTwoDigitYear:t==="yy"});switch(t){case"y":return rr(Un(4,e),d);case"yo":return rr(r.ordinalNumber(e,{unit:"year"}),d);default:return rr(Un(t.length,e),d)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const d=e.getFullYear();if(r.isTwoDigitYear){const g=yb(r.year,d);return e.setFullYear(g,0,1),e.setHours(0,0,0,0),e}const p=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(p,0,1),e.setHours(0,0,0,0),e}},zM=class extends sn{constructor(){super(...arguments),it(this,"priority",130),it(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,r){const d=p=>({year:p,isTwoDigitYear:t==="YY"});switch(t){case"Y":return rr(Un(4,e),d);case"Yo":return rr(r.ordinalNumber(e,{unit:"year"}),d);default:return rr(Un(t.length,e),d)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,d){const p=Iu(e,d);if(r.isTwoDigitYear){const b=yb(r.year,p);return e.setFullYear(b,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),Jo(e,d)}const g=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(g,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),Jo(e,d)}},jM=class extends sn{constructor(){super(...arguments),it(this,"priority",130),it(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return vb(t==="R"?4:t.length,e)}set(e,t,r){const d=lr(e,0);return d.setFullYear(r,0,4),d.setHours(0,0,0,0),sa(d)}},UM=class extends sn{constructor(){super(...arguments),it(this,"priority",130),it(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return vb(t==="u"?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}},VM=class extends sn{constructor(){super(...arguments),it(this,"priority",120),it(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"Q":case"QQ":return Un(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}},qM=class extends sn{constructor(){super(...arguments),it(this,"priority",120),it(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"q":case"qq":return Un(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}},KM=class extends sn{constructor(){super(...arguments),it(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),it(this,"priority",110)}parse(e,t,r){const d=p=>p-1;switch(t){case"M":return rr(Pn(nr.month,e),d);case"MM":return rr(Un(2,e),d);case"Mo":return rr(r.ordinalNumber(e,{unit:"month"}),d);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}},GM=class extends sn{constructor(){super(...arguments),it(this,"priority",110),it(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,r){const d=p=>p-1;switch(t){case"L":return rr(Pn(nr.month,e),d);case"LL":return rr(Un(2,e),d);case"Lo":return rr(r.ordinalNumber(e,{unit:"month"}),d);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}};function YM(n,e,t){const r=In(n,t==null?void 0:t.in),d=xf(r,t)-e;return r.setDate(r.getDate()-d*7),In(r,t==null?void 0:t.in)}let XM=class extends sn{constructor(){super(...arguments),it(this,"priority",100),it(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,r){switch(t){case"w":return Pn(nr.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Un(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,d){return Jo(YM(e,r,d),d)}};function ZM(n,e,t){const r=In(n,void 0),d=wf(r)-e;return r.setDate(r.getDate()-d*7),r}let QM=class extends sn{constructor(){super(...arguments),it(this,"priority",100),it(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,r){switch(t){case"I":return Pn(nr.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Un(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return sa(ZM(e,r))}};const JM=[31,28,31,30,31,30,31,31,30,31,30,31],eE=[31,29,31,30,31,30,31,31,30,31,30,31];class tE extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"subPriority",1),it(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"d":return Pn(nr.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Un(t.length,e)}}validate(e,t){const r=e.getFullYear(),d=bb(r),p=e.getMonth();return d?t>=1&&t<=eE[p]:t>=1&&t<=JM[p]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}}let nE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"subpriority",1),it(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,r){switch(t){case"D":case"DD":return Pn(nr.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Un(t.length,e)}}validate(e,t){const r=e.getFullYear();return bb(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}};function Rd(n,e,t){var r,d,p,g;const b=oa(),h=(t==null?void 0:t.weekStartsOn)??((d=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:d.weekStartsOn)??b.weekStartsOn??((g=(p=b.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??0,f=In(n,t==null?void 0:t.in),s=f.getDay(),a=(e%7+7)%7,u=7-h,c=e<0||e>6?e-(s+u)%7:(a+u)%7-(s+u)%7;return Ed(f,c,t)}let rE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Rd(e,r,d),e.setHours(0,0,0,0),e}},iE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,r,d){const p=g=>{const b=Math.floor((g-1)/7)*7;return(g+d.weekStartsOn+6)%7+b};switch(t){case"e":case"ee":return rr(Un(t.length,e),p);case"eo":return rr(r.ordinalNumber(e,{unit:"day"}),p);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Rd(e,r,d),e.setHours(0,0,0,0),e}},oE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,r,d){const p=g=>{const b=Math.floor((g-1)/7)*7;return(g+d.weekStartsOn+6)%7+b};switch(t){case"c":case"cc":return rr(Un(t.length,e),p);case"co":return rr(r.ordinalNumber(e,{unit:"day"}),p);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Rd(e,r,d),e.setHours(0,0,0,0),e}};function sE(n,e,t){const r=In(n,void 0),d=OM(r),p=e-d;return Ed(r,p,t)}let aE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,r){const d=p=>p===0?7:p;switch(t){case"i":case"ii":return Un(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return rr(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiii":return rr(r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiiii":return rr(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiii":default:return rr(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return e=sE(e,r),e.setHours(0,0,0,0),e}},lE=class extends sn{constructor(){super(...arguments),it(this,"priority",80),it(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Id(r),0,0,0),e}},cE=class extends sn{constructor(){super(...arguments),it(this,"priority",80),it(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Id(r),0,0,0),e}},uE=class extends sn{constructor(){super(...arguments),it(this,"priority",80),it(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Id(r),0,0,0),e}},hE=class extends sn{constructor(){super(...arguments),it(this,"priority",70),it(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,r){switch(t){case"h":return Pn(nr.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Un(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const d=e.getHours()>=12;return d&&r<12?e.setHours(r+12,0,0,0):!d&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}};class dE extends sn{constructor(){super(...arguments),it(this,"priority",70),it(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,r){switch(t){case"H":return Pn(nr.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Un(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}}let pE=class extends sn{constructor(){super(...arguments),it(this,"priority",70),it(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,r){switch(t){case"K":return Pn(nr.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Un(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}};class fE extends sn{constructor(){super(...arguments),it(this,"priority",70),it(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,r){switch(t){case"k":return Pn(nr.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Un(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const d=r<=24?r%24:r;return e.setHours(d,0,0,0),e}}class gE extends sn{constructor(){super(...arguments),it(this,"priority",60),it(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"m":return Pn(nr.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Un(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}}let mE=class extends sn{constructor(){super(...arguments),it(this,"priority",50),it(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"s":return Pn(nr.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Un(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}},vE=class extends sn{constructor(){super(...arguments),it(this,"priority",30),it(this,"incompatibleTokens",["t","T"])}parse(e,t){const r=d=>Math.trunc(d*Math.pow(10,-t.length+3));return rr(Un(t.length,e),r)}set(e,t,r){return e.setMilliseconds(r),e}},yE=class extends sn{constructor(){super(...arguments),it(this,"priority",10),it(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Co(xo.basicOptionalMinutes,e);case"XX":return Co(xo.basic,e);case"XXXX":return Co(xo.basicOptionalSeconds,e);case"XXXXX":return Co(xo.extendedOptionalSeconds,e);case"XXX":default:return Co(xo.extended,e)}}set(e,t,r){return t.timestampIsSet?e:lr(e,e.getTime()-Dl(e)-r)}},bE=class extends sn{constructor(){super(...arguments),it(this,"priority",10),it(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Co(xo.basicOptionalMinutes,e);case"xx":return Co(xo.basic,e);case"xxxx":return Co(xo.basicOptionalSeconds,e);case"xxxxx":return Co(xo.extendedOptionalSeconds,e);case"xxx":default:return Co(xo.extended,e)}}set(e,t,r){return t.timestampIsSet?e:lr(e,e.getTime()-Dl(e)-r)}},wE=class extends sn{constructor(){super(...arguments),it(this,"priority",40),it(this,"incompatibleTokens","*")}parse(e){return mb(e)}set(e,t,r){return[lr(e,r*1e3),{timestampIsSet:!0}]}},xE=class extends sn{constructor(){super(...arguments),it(this,"priority",20),it(this,"incompatibleTokens","*")}parse(e){return mb(e)}set(e,t,r){return[lr(e,r),{timestampIsSet:!0}]}};const CE={G:new BM,y:new HM,Y:new zM,R:new jM,u:new UM,Q:new VM,q:new qM,M:new KM,L:new GM,w:new XM,I:new QM,d:new tE,D:new nE,E:new rE,e:new iE,c:new oE,i:new aE,a:new lE,b:new cE,B:new uE,h:new hE,H:new dE,K:new pE,k:new fE,m:new gE,s:new mE,S:new vE,X:new yE,x:new bE,t:new wE,T:new xE},kE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,SE=/^'([^]*?)'?$/,_E=/''/g,$E=/\S/,TE=/[a-zA-Z]/;function ME(n,e,t,r){var d,p,g,b;const h=()=>lr(t,NaN),f=Xy(),s=f.locale??bf,a=f.firstWeekContainsDate??((p=(d=f.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,u=f.weekStartsOn??((b=(g=f.locale)==null?void 0:g.options)==null?void 0:b.weekStartsOn)??0;if(!e)return n?h():In(t,void 0);const c={firstWeekContainsDate:a,weekStartsOn:u,locale:s},i=[new WM(void 0,t)],l=e.match(AE).map(_=>{const k=_[0];if(k in Ru){const C=Ru[k];return C(_,s.formatLong)}return _}).join("").match(kE),m=[];for(let _ of l){Tf(_)&&Lu(_,e,n),$f(_)&&Lu(_,e,n);const k=_[0],C=CE[k];if(C){const{incompatibleTokens:L}=C;if(Array.isArray(L)){const R=m.find(I=>L.includes(I.token)||I.token===k);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${_}\` at the same time`)}else if(C.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);m.push({token:k,fullToken:_});const D=C.run(n,_,s.match,c);if(!D)return h();i.push(D.setter),n=D.rest}else{if(k.match(TE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(_==="''"?_="'":k==="'"&&(_=EE(_)),n.indexOf(_)===0)n=n.slice(_.length);else return h()}}if(n.length>0&&$E.test(n))return h();const w=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=In(t,void 0);if(isNaN(+x))return h();const M={};for(const _ of w){if(!_.validate(x,c))return h();const k=_.set(x,M,c);Array.isArray(k)?(x=k[0],Object.assign(M,k[1])):x=k}return x}function EE(n){return n.match(SE)[1].replace(_E,"'")}const IE="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=",RE={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number}},computed:{icons:function(){return IE},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=WE.indexOf(wb[this.status]),e=1-(n-1)*.05,t=224*this.scaleFactor*e,r=32*this.scaleFactor*e,d=32*this.scaleFactor*e;return[`background-image: url(${this.icons});`,`background-position-x: -${n*d}px;`,`background-size: ${t}px ${r}px;`,`height: ${d}px;`,`width: ${d}px;`,`padding-top: ${n-1}px;`].join("")}}};function LE(n,e,t,r,d,p){return ot(),rn("div",{style:Cs(p.iconStyle)},null,4)}const OE=to(RE,[["render",LE]]),NE={props:{icon:{type:String},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function DE(n,e,t,r,d,p){const g=Ue("rux-icon");return ot(),jt(g,{size:t.size,icon:t.icon,style:Cs(p.colorStyle)},null,8,["size","icon","style"])}const FE=to(NE,[["render",DE],["__scopeId","data-v-9af48e85"]]),wb={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"},Ld={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},PE=function(n){const e="#000000",t="#ffffff",r=Ld[wb[n]];if(r){const d=+`0x${r.slice(1,3)}`,p=+`0x${r.slice(3,5)}`,g=+`0x${r.slice(5,7)}`;if((d*299+p*587+g*114)/1e3>128)return e}return t},WE=Object.keys(Ld),BE={astro:{component:n=>ia(FE,{...n})},"astro-status":{component:n=>ia(OE,{...n,status:n.icon})}},HE={extras:{component:n=>ia(Ax,{...n})}},zE=50,jE=2e3,xb="single-spa:app-change",UE={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(xb,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},jE)},unmounted(){window.removeEventListener(xb,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=$u().length>0,$u().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},zE)}}},VE={class:"mx-1"},qE={key:1,class:"d-flex justify-center align-center"};function KE(n,e,t,r,d,p){const g=Ue("v-card-title"),b=Ue("v-card-text"),h=Ue("v-card"),f=Ue("v-progress-circular");return ot(),rn(ci,null,[d.show?(ot(),jt(h,{key:0},{default:Pe(()=>[je(g,null,{default:Pe(()=>[...e[0]||(e[0]=[Rt(" 404 Not Found ",-1)])]),_:1}),je(b,{class:"d-flex align-center mt-3"},{default:Pe(()=>[e[1]||(e[1]=Rt(" The requested URL ",-1)),Fn("code",VE,Cn(n.$route.fullPath),1),e[2]||(e[2]=Rt(" was not routable. ",-1)),e[3]||(e[3]=Fn("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):Kr("",!0),p.showSpinner?(ot(),rn("div",qE,[je(f,{indeterminate:""})])):Kr("",!0)],64)}const GE=to(UE,[["render",KE]]),YE={props:{modelValue:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const n=/\w+.gem/;return this.response.tree.filter(e=>n.exec(e.path)).map(e=>({name:e.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`}))},getResponse:function(){this.disableSearch=!0,tr.get(this.url).then(n=>{this.response=n.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(n){const e=document.createElement("a");e.href=n.url,e.setAttribute("download",n.name),e.click(),e.remove()}}},XE={class:"pa-3"},ZE={class:"px-2"},QE={key:0,class:"mt-4"},JE={key:1,class:"mt-4"};function eI(n,e,t,r,d,p){const g=Ue("v-spacer"),b=Ue("v-toolbar"),h=Ue("v-row"),f=Ue("v-icon"),s=Ue("v-btn"),a=Ue("v-col"),u=Ue("v-list-item-title"),c=Ue("v-progress-circular"),i=Ue("v-list-item"),l=Ue("v-divider"),m=Ue("v-card-text"),w=Ue("v-card"),x=Ue("v-dialog");return ot(),jt(x,{modelValue:p.show,"onUpdate:modelValue":e[0]||(e[0]=M=>p.show=M),width:"600"},{default:Pe(()=>[je(w,null,{default:Pe(()=>[je(b,{height:"24"},{default:Pe(()=>[je(g),e[1]||(e[1]=Fn("span",null," Download Gems ",-1)),je(g)]),_:1}),je(m,null,{default:Pe(()=>[Fn("div",XE,[je(h,{class:"my-2"},{default:Pe(()=>[...e[2]||(e[2]=[Rt(" Select a download option ",-1)])]),_:1}),je(h,null,{default:Pe(()=>[je(a,null,{default:Pe(()=>[Fn("div",ZE,[je(s,{block:"","data-test":"searchGithub",color:"primary",disabled:d.disableSearch,onClick:p.searchGithub},{default:Pe(()=>[e[4]||(e[4]=Rt(" Github ",-1)),je(f,{end:"",theme:"dark"},{default:Pe(()=>[...e[3]||(e[3]=[Rt(" mdi-github ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),je(h,{class:"mt-5"},{default:Pe(()=>[...e[5]||(e[5]=[Rt(" Community Gems ",-1)])]),_:1}),p.listData.length<1?(ot(),rn("div",QE,[je(h,{class:"mx-2"},{default:Pe(()=>[...e[6]||(e[6]=[Fn("span",null," I’m sorry, Dave. No gems available.... ",-1)])]),_:1})])):(ot(),rn("div",JE,[(ot(!0),rn(ci,null,vo(p.listData,(M,_)=>(ot(),rn("div",{key:_},[je(i,null,{default:Pe(()=>[je(u,null,{default:Pe(()=>[Rt(Cn(M.name),1)]),_:2},1024),je(i,{icon:""},{default:Pe(()=>[d.activeDownload?(ot(),jt(c,{key:0,indeterminate:"",color:"primary"})):(ot(),jt(s,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:d.activeDownload,onClick:k=>p.downloadGem(M)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),_<p.listData.length-1?(ot(),jt(l,{key:_})):Kr("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const EP=pr("q",to(YE,[["render",eI]])),tI={props:{modelValue:Boolean,plugin:String,targets:Array,pluginDelete:Boolean},data(){return{modifiedTargets:[],deleteModified:!1}},methods:{cancel(){this.show=!1,this.$emit("cancel")}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},created(){for(const n of this.targets)lk.get(`/openc3-api/targets/${n.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:n.name,files:e.data})})}},nI={class:"file-list-container"};function rI(n,e,t,r,d,p){const g=Ue("v-spacer"),b=Ue("v-toolbar"),h=Ue("v-list-item-title"),f=Ue("v-list-item-subtitle"),s=Ue("v-list-item"),a=Ue("v-checkbox"),u=Ue("v-card-text"),c=Ue("v-btn"),i=Ue("v-card-actions"),l=Ue("v-card"),m=Ue("v-dialog");return ot(),jt(m,{modelValue:p.show,"onUpdate:modelValue":e[2]||(e[2]=w=>p.show=w),persistent:"",width:"600",onKeydown:Ol(p.cancel,["esc"])},{default:Pe(()=>[je(l,null,{default:Pe(()=>[je(b,{height:"24"},{default:Pe(()=>[je(g),e[3]||(e[3]=Fn("span",null," Modified Plugin ",-1)),je(g)]),_:1}),je(u,{class:"pa-3 card-container"},{default:Pe(()=>[Fn("div",null," Plugin "+Cn(t.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(ot(!0),rn(ci,null,vo(d.modifiedTargets,(w,x)=>(ot(),jt(s,{key:x,lines:"two"},{default:Pe(()=>[je(h,null,{default:Pe(()=>[Rt(Cn(w.name),1)]),_:2},1024),Fn("div",nI,[(ot(!0),rn(ci,null,vo(w.files,(M,_)=>(ot(),jt(f,{key:_},{default:Pe(()=>[Rt(Cn(M),1)]),_:2},1024))),128))])]),_:2},1024))),128)),je(a,{modelValue:d.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=w=>d.deleteModified=w),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),je(i,{class:"px-2"},{default:Pe(()=>[je(g),je(c,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:p.cancel},{default:Pe(()=>[...e[4]||(e[4]=[Rt(" Cancel ",-1)])]),_:1},8,["onClick"]),je(c,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[1]||(e[1]=()=>{p.show=!1,n.$emit("submit",d.deleteModified)})},{default:Pe(()=>[...e[5]||(e[5]=[Rt(" Confirm ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])}const IP=pr("U",to(tI,[["render",rI],["__scopeId","data-v-13bbb65b"]])),Od=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>rt(()=>nt.import("./PluginsTab-Yz9HZqpp-910a6e5d7b19d45b11b7.js"),void 0)},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>rt(()=>nt.import("./TargetsTab-B6tf2hKl-20fdeb73e7732330db81.js"),void 0)},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>rt(()=>nt.import("./InterfacesTab-6hli9fcg-fa1490edce5e929d406b.js"),void 0)},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>rt(()=>nt.import("./RoutersTab-CEe4oS0x-b49f6b75042daef01df4.js"),void 0)},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>rt(()=>nt.import("./MicroservicesTab-BSSCh5Ss-e353932e75faf48047d5.js"),void 0)},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>rt(()=>nt.import("./PackagesTab-BascLTCK-cca24f27d8349907a8fa.js"),void 0)},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>rt(()=>nt.import("./ToolsTab-CXoxIck8-cd6095dc9c1b215c3dde.js"),void 0)},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>rt(()=>nt.import("./RedisTab-C00rFmdl-7e2ccc5bd3fadaa12005.js"),void 0)},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>rt(()=>nt.import("./SecretsTab-DFrxV8Q8-ca4a28befc3615d0adec.js"),void 0)},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>rt(()=>nt.import("./SettingsTab-CpLxrjTc-c8622ca1e0fa0aa3c324.js"),void 0)}],iI={components:{TopBar:u$},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return Od.map(n=>({displayName:n.displayName,path:{name:n.name}}))}}};function oI(n,e,t,r,d,p){const g=Ue("top-bar"),b=Ue("v-tab"),h=Ue("v-tabs"),f=Ue("router-view"),s=Ue("v-card");return ot(),rn("div",null,[je(g,{title:d.title},null,8,["title"]),je(s,null,{default:Pe(()=>[je(h,{modelValue:d.curTab,"onUpdate:modelValue":e[0]||(e[0]=a=>d.curTab=a),"fixed-tabs":""},{default:Pe(()=>[(ot(!0),rn(ci,null,vo(p.tabs,(a,u)=>(ot(),jt(b,{key:u,to:a.path},{default:Pe(()=>[Rt(Cn(a.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),je(f)]),_:1})])}const sI=to(iI,[["render",oI]]);function Nd(n){const[e,t]=n;return[e,t]}function Cb(n,e){let t=n,r=e;const d=t.length,p=r.length;if(d===0||p===0)return 0;d>p?t=t.substring(d-p):d<p&&(r=r.substring(0,d));const g=Math.min(d,p);if(t===r)return g;let b=0,h=1;for(let f=0;f!==-1;){const s=t.substring(g-h);if(f=r.indexOf(s),f===-1)return b;h+=f,(f===0||t.substring(g-h)===r.substring(0,h))&&(b=h,h++)}return b}function Dd(n,e){if(!n||!e||n[0]!==e[0])return 0;let t=0,r=Math.min(n.length,e.length),d=r,p=0;for(;t<d;)n.substring(p,d)===e.substring(p,d)?(t=d,p=t):r=d,d=Math.floor((r-t)/2+t);return d}function Lc(n,e){if(!n||!e||n[n.length-1]!==e[e.length-1])return 0;let t=0,r=Math.min(n.length,e.length),d=r,p=0;for(;t<d;)n.substring(n.length-d,n.length-p)===e.substring(e.length-d,e.length-p)?(t=d,p=t):r=d,d=Math.floor((r-t)/2+t);return d}function aI(n){const e=n.charCodeAt(0);return e>=55296&&e<=56319}function lI(n){const e=n.charCodeAt(0);return e>=56320&&e<=57343}function cI(n,e,t){const r=n.length,d=e.length,p=Math.ceil((r+d)/2),g=p,b=2*p,h=new Array(b),f=new Array(b);for(let m=0;m<b;m++)h[m]=-1,f[m]=-1;h[g+1]=0,f[g+1]=0;const s=r-d,a=s%2!==0;let u=0,c=0,i=0,l=0;for(let m=0;m<p&&!(Date.now()>t);m++){for(let w=-m+u;w<=m-c;w+=2){const x=g+w;let M;w===-m||w!==m&&h[x-1]<h[x+1]?M=h[x+1]:M=h[x-1]+1;let _=M-w;for(;M<r&&_<d&&n.charAt(M)===e.charAt(_);)M++,_++;if(h[x]=M,M>r)c+=2;else if(_>d)u+=2;else if(a){const k=g+s-w;if(k>=0&&k<b&&f[k]!==-1){const C=r-f[k];if(M>=C)return kb(n,e,M,_,t)}}}for(let w=-m+i;w<=m-l;w+=2){const x=g+w;let M;w===-m||w!==m&&f[x-1]<f[x+1]?M=f[x+1]:M=f[x-1]+1;let _=M-w;for(;M<r&&_<d&&n.charAt(r-M-1)===e.charAt(d-_-1);)M++,_++;if(f[x]=M,M>r)l+=2;else if(_>d)i+=2;else if(!a){const k=g+s-w;if(k>=0&&k<b&&h[k]!==-1){const C=h[k],L=g+C-k;if(M=r-M,C>=M)return kb(n,e,C,L,t)}}}}return[[Ei,n],[fi,e]]}function kb(n,e,t,r,d){const p=n.substring(0,t),g=e.substring(0,r),b=n.substring(t),h=e.substring(r),f=Hs(p,g,{checkLines:!1,deadline:d}),s=Hs(b,h,{checkLines:!1,deadline:d});return f.concat(s)}function uI(n,e,t=1){if(t<=0)return null;const r=n.length>e.length?n:e,d=n.length>e.length?e:n;if(r.length<4||d.length*2<r.length)return null;const p=Ab(r,d,Math.ceil(r.length/4)),g=Ab(r,d,Math.ceil(r.length/2));let b;if(p&&g)b=p[4].length>g[4].length?p:g;else{if(!p&&!g)return null;g?p||(b=g):b=p}if(!b)throw new Error("Unable to find a half match.");let h,f,s,a;n.length>e.length?(h=b[0],f=b[1],s=b[2],a=b[3]):(s=b[0],a=b[1],h=b[2],f=b[3]);const u=b[4];return[h,f,s,a,u]}function Ab(n,e,t){const r=n.slice(t,t+Math.floor(n.length/4));let d=-1,p="",g,b,h,f;for(;(d=e.indexOf(r,d+1))!==-1;){const s=Dd(n.slice(t),e.slice(d)),a=Lc(n.slice(0,t),e.slice(0,d));p.length<a+s&&(p=e.slice(d-a,d)+e.slice(d,d+s),g=n.slice(0,t-a),b=n.slice(t+s),h=e.slice(0,d-a),f=e.slice(d+s))}return p.length*2>=n.length?[g||"",b||"",h||"",f||"",p||""]:null}function hI(n,e){for(let t=0;t<n.length;t++){const r=n[t][1],d=[];for(let p=0;p<r.length;p++)d[p]=e[r.charCodeAt(p)];n[t][1]=d.join("")}}function dI(n,e){const t=[],r={};t[0]="";function d(h){let f="",s=0,a=-1,u=t.length;for(;a<h.length-1;){a=h.indexOf(`
|
|
1495
|
+
`+p):r.stack=p}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ws(this.defaults,t);const{transitional:r,paramsSerializer:d,headers:p}=t;r!==void 0&&$c.assertOptions(r,{silentJSONParsing:wo.transitional(wo.boolean),forcedJSONParsing:wo.transitional(wo.boolean),clarifyTimeoutError:wo.transitional(wo.boolean)},!1),d!=null&&(Se.isFunction(d)?t.paramsSerializer={serialize:d}:$c.assertOptions(d,{encode:wo.function,serialize:wo.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),$c.assertOptions(t,{baseUrl:wo.spelling("baseURL"),withXsrfToken:wo.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let g=p&&Se.merge(p.common,p[t.method]);p&&Se.forEach(["delete","get","head","post","put","patch","common"],i=>{delete p[i]}),t.headers=pi.concat(g,p);const b=[];let h=!0;this.interceptors.request.forEach(function(i){typeof i.runWhen=="function"&&i.runWhen(t)===!1||(h=h&&i.synchronous,b.unshift(i.fulfilled,i.rejected))});const f=[];this.interceptors.response.forEach(function(i){f.push(i.fulfilled,i.rejected)});let s,a=0,u;if(!h){const i=[qy.bind(this),void 0];for(i.unshift(...b),i.push(...f),u=i.length,s=Promise.resolve(t);a<u;)s=s.then(i[a++],i[a++]);return s}u=b.length;let c=t;for(;a<u;){const i=b[a++],l=b[a++];try{c=i(c)}catch(m){l.call(this,m);break}}try{s=qy.call(this,c)}catch(i){return Promise.reject(i)}for(a=0,u=f.length;a<u;)s=s.then(f[a++],f[a++]);return s}getUri(e){e=Ws(this.defaults,e);const t=Ny(e.baseURL,e.url,e.allowAbsoluteUrls);return _y(t,e.params,e.paramsSerializer)}};Se.forEach(["delete","get","head","options"],function(n){Bs.prototype[n]=function(e,t){return this.request(Ws(t||{},{method:n,url:e,data:(t||{}).data}))}}),Se.forEach(["post","put","patch"],function(n){function e(t){return function(r,d,p){return this.request(Ws(p||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:d}))}}Bs.prototype[n]=e(),Bs.prototype[n+"Form"]=e(!0)});let FT=class ax{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(d){t=d});const r=this;this.promise.then(d=>{if(!r._listeners)return;let p=r._listeners.length;for(;p-- >0;)r._listeners[p](d);r._listeners=null}),this.promise.then=d=>{let p;const g=new Promise(b=>{r.subscribe(b),p=b}).then(d);return g.cancel=function(){r.unsubscribe(p)},g},e(function(d,p,g){r.reason||(r.reason=new Aa(d,p,g),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=r=>{e.abort(r)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ax(function(t){e=t}),cancel:e}}};function PT(n){return function(e){return n.apply(null,e)}}function WT(n){return Se.isObject(n)&&n.isAxiosError===!0}const xd={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(xd).forEach(([n,e])=>{xd[e]=n});function Yy(n){const e=new Bs(n),t=hy(Bs.prototype.request,e);return Se.extend(t,Bs.prototype,e,{allOwnKeys:!0}),Se.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Yy(Ws(n,r))},t}const tr=pr("w",Yy(ll));tr.Axios=Bs,tr.CanceledError=Aa,tr.CancelToken=FT,tr.isCancel=Iy,tr.VERSION=Ky,tr.toFormData=Cc,tr.AxiosError=$t,tr.Cancel=tr.CanceledError,tr.all=function(n){return Promise.all(n)},tr.spread=PT,tr.isAxiosError=WT,tr.mergeConfig=Ws,tr.AxiosHeaders=pi,tr.formToJSON=n=>My(Se.isHTMLForm(n)?new FormData(n):n),tr.getAdapter=Vy.getAdapter,tr.HttpStatusCode=xd,tr.default=tr;const{Axios:pP,AxiosError:fP,CanceledError:gP,isCancel:mP,CancelToken:vP,VERSION:yP,all:bP,Cancel:wP,isAxiosError:xP,spread:CP,toFormData:kP,AxiosHeaders:AP,HttpStatusCode:SP,formToJSON:_P,getAdapter:$P,mergeConfig:TP}=tr;function Xy(){return Object.assign({},oa())}function BT(n,e,t){const r=Rn(n,void 0);return r.setTime(r.getTime()+e*Nl),r}function HT(n,e){const t=()=>lr(void 0,NaN),r=VT(n);let d;if(r.date){const h=qT(r.date,2);d=KT(h.restDateString,h.year)}if(!d||isNaN(+d))return t();const p=+d;let g=0,b;if(r.time&&(g=GT(r.time),isNaN(g)))return t();if(r.timezone){if(b=YT(r.timezone),isNaN(b))return t()}else{const h=new Date(p+g),f=Rn(0,void 0);return f.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),f.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),f}return Rn(p+g+b,void 0)}const Tc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zT=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jT=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,UT=/^([+-])(\d{2})(?::?(\d{2}))?$/;function VT(n){const e={},t=n.split(Tc.dateTimeDelimiter);let r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],Tc.timeZoneDelimiter.test(e.date)&&(e.date=n.split(Tc.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){const d=Tc.timezone.exec(r);d?(e.time=r.replace(d[1],""),e.timezone=d[1]):e.time=r}return e}function qT(n,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};const d=r[1]?parseInt(r[1]):null,p=r[2]?parseInt(r[2]):null;return{year:p===null?d:p*100,restDateString:n.slice((r[1]||r[2]).length)}}function KT(n,e){if(e===null)return new Date(NaN);const t=n.match(zT);if(!t)return new Date(NaN);const r=!!t[4],d=ul(t[1]),p=ul(t[2])-1,g=ul(t[3]),b=ul(t[4]),h=ul(t[5])-1;if(r)return eM(e,b,h)?XT(e,b,h):new Date(NaN);{const f=new Date(0);return!QT(e,p,g)||!JT(e,d)?new Date(NaN):(f.setUTCFullYear(e,p,Math.max(d,g)),f)}}function ul(n){return n?parseInt(n):1}function GT(n){const e=n.match(jT);if(!e)return NaN;const t=Cd(e[1]),r=Cd(e[2]),d=Cd(e[3]);return tM(t,r,d)?t*Mu+r*Nl+d*1e3:NaN}function Cd(n){return n&&parseFloat(n.replace(",","."))||0}function YT(n){if(n==="Z")return 0;const e=n.match(UT);if(!e)return 0;const t=e[1]==="+"?-1:1,r=parseInt(e[2]),d=e[3]&&parseInt(e[3])||0;return nM(r,d)?t*(r*Mu+d*Nl):NaN}function XT(n,e,t){const r=new Date(0);r.setUTCFullYear(n,0,4);const d=r.getUTCDay()||7,p=(e-1)*7+t+1-d;return r.setUTCDate(r.getUTCDate()+p),r}const ZT=[31,null,31,30,31,30,31,31,30,31,30,31];function Zy(n){return n%400===0||n%4===0&&n%100!==0}function QT(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(ZT[e]||(Zy(n)?29:28))}function JT(n,e){return e>=1&&e<=(Zy(n)?366:365)}function eM(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function tM(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function nM(n,e){return e>=0&&e<=59}function rM(n,e,t){return BT(n,-e)}function Qy(n,e,t){const r=Xy(),d=sM(n,t.timeZone,t.locale??r.locale);return"formatToParts"in d?iM(d,e):oM(d,e)}function iM(n,e){const t=n.formatToParts(e);for(let r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function oM(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function sM(n,e,t){return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:e,timeZoneName:n})}function aM(n,e){const t=dM(e);return"formatToParts"in t?cM(t,n):uM(t,n)}const lM={year:0,month:1,day:2,hour:3,minute:4,second:5};function cM(n,e){try{const t=n.formatToParts(e),r=[];for(let d=0;d<t.length;d++){const p=lM[t[d].type];p!==void 0&&(r[p]=parseInt(t[d].value,10))}return r}catch(t){if(t instanceof RangeError)return[NaN];throw t}}function uM(n,e){const t=n.format(e),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}const kd={},Jy=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")),hM=Jy==="06/25/2014, 00:00:00"||Jy==="06/25/2014 00:00:00";function dM(n){return kd[n]||(kd[n]=hM?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"})),kd[n]}function eb(n,e,t,r,d,p,g){const b=new Date(0);return b.setUTCFullYear(n,e,t),b.setUTCHours(r,d,p,g),b}const tb=36e5,pM=6e4,Ad={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Sd(n,e,t){if(!n)return 0;let r=Ad.timezoneZ.exec(n);if(r)return 0;let d,p;if(r=Ad.timezoneHH.exec(n),r)return d=parseInt(r[1],10),nb(d)?-(d*tb):NaN;if(r=Ad.timezoneHHMM.exec(n),r){d=parseInt(r[2],10);const g=parseInt(r[3],10);return nb(d,g)?(p=Math.abs(d)*tb+g*pM,r[1]==="+"?-p:p):NaN}if(mM(n)){e=new Date(e||Date.now());const g=t?e:fM(e),b=_d(g,n);return-(t?b:gM(e,b,n))}return NaN}function fM(n){return eb(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())}function _d(n,e){const t=aM(n,e),r=eb(t[0],t[1]-1,t[2],t[3]%24,t[4],t[5],0).getTime();let d=n.getTime();const p=d%1e3;return d-=p>=0?p:1e3+p,r-d}function gM(n,e,t){let r=n.getTime()-e;const d=_d(new Date(r),t);if(e===d)return e;r-=d-e;const p=_d(new Date(r),t);return d===p?d:Math.max(d,p)}function nb(n,e){return-23<=n&&n<=23&&(e==null||0<=e&&e<=59)}const rb={};function mM(n){if(rb[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),rb[n]=!0,!0}catch{return!1}}const vM=60*1e3,yM={X:function(n,e,t){const r=$d(t.timeZone,n);if(r===0)return"Z";switch(e){case"X":return ib(r);case"XXXX":case"XX":return Sa(r);case"XXXXX":case"XXX":default:return Sa(r,":")}},x:function(n,e,t){const r=$d(t.timeZone,n);switch(e){case"x":return ib(r);case"xxxx":case"xx":return Sa(r);case"xxxxx":case"xxx":default:return Sa(r,":")}},O:function(n,e,t){const r=$d(t.timeZone,n);switch(e){case"O":case"OO":case"OOO":return"GMT"+bM(r,":");case"OOOO":default:return"GMT"+Sa(r,":")}},z:function(n,e,t){switch(e){case"z":case"zz":case"zzz":return Qy("short",n,t);case"zzzz":default:return Qy("long",n,t)}}};function $d(n,e){const t=n?Sd(n,e,!0)/vM:(e==null?void 0:e.getTimezoneOffset())??0;if(Number.isNaN(t))throw new RangeError("Invalid time zone specified: "+n);return t}function Mc(n,e){const t=n<0?"-":"";let r=Math.abs(n).toString();for(;r.length<e;)r="0"+r;return t+r}function Sa(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Mc(Math.floor(r/60),2),p=Mc(Math.floor(r%60),2);return t+d+e+p}function ib(n,e){return n%60===0?(n>0?"-":"+")+Mc(Math.abs(n)/60,2):Sa(n,e)}function bM(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),d=Math.floor(r/60),p=r%60;return p===0?t+String(d):t+String(d)+e+Mc(p,2)}function ob(n){const e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),+n-+e}const wM=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Td=36e5,sb=6e4,xM=2,Yr={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:wM};function ab(n,e={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(n===null)return new Date(NaN);const t=e.additionalDigits==null?xM:Number(e.additionalDigits);if(t!==2&&t!==1&&t!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]")return new Date(n.getTime());if(typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]")return new Date(n);if(Object.prototype.toString.call(n)!=="[object String]")return new Date(NaN);const r=CM(n),{year:d,restDateString:p}=kM(r.date,t),g=AM(p,d);if(g===null||isNaN(g.getTime()))return new Date(NaN);if(g){const b=g.getTime();let h=0,f;if(r.time&&(h=SM(r.time),h===null||isNaN(h)))return new Date(NaN);if(r.timeZone||e.timeZone){if(f=Sd(r.timeZone||e.timeZone,new Date(b+h)),isNaN(f))return new Date(NaN)}else f=ob(new Date(b+h)),f=ob(new Date(b+h+f));return new Date(b+h+f)}else return new Date(NaN)}function CM(n){const e={};let t=Yr.dateTimePattern.exec(n),r;if(t?(e.date=t[1],r=t[3]):(t=Yr.datePattern.exec(n),t?(e.date=t[1],r=t[2]):(e.date=null,r=n)),r){const d=Yr.timeZone.exec(r);d?(e.time=r.replace(d[1],""),e.timeZone=d[1].trim()):e.time=r}return e}function kM(n,e){if(n){const t=Yr.YYY[e],r=Yr.YYYYY[e];let d=Yr.YYYY.exec(n)||r.exec(n);if(d){const p=d[1];return{year:parseInt(p,10),restDateString:n.slice(p.length)}}if(d=Yr.YY.exec(n)||t.exec(n),d){const p=d[1];return{year:parseInt(p,10)*100,restDateString:n.slice(p.length)}}}return{year:null}}function AM(n,e){if(e===null)return null;let t,r,d;if(!n||!n.length)return t=new Date(0),t.setUTCFullYear(e),t;let p=Yr.MM.exec(n);if(p)return t=new Date(0),r=parseInt(p[1],10)-1,ub(e,r)?(t.setUTCFullYear(e,r),t):new Date(NaN);if(p=Yr.DDD.exec(n),p){t=new Date(0);const g=parseInt(p[1],10);return TM(e,g)?(t.setUTCFullYear(e,0,g),t):new Date(NaN)}if(p=Yr.MMDD.exec(n),p){t=new Date(0),r=parseInt(p[1],10)-1;const g=parseInt(p[2],10);return ub(e,r,g)?(t.setUTCFullYear(e,r,g),t):new Date(NaN)}if(p=Yr.Www.exec(n),p)return d=parseInt(p[1],10)-1,hb(d)?lb(e,d):new Date(NaN);if(p=Yr.WwwD.exec(n),p){d=parseInt(p[1],10)-1;const g=parseInt(p[2],10)-1;return hb(d,g)?lb(e,d,g):new Date(NaN)}return null}function SM(n){let e,t,r=Yr.HH.exec(n);if(r)return e=parseFloat(r[1].replace(",",".")),Md(e)?e%24*Td:NaN;if(r=Yr.HHMM.exec(n),r)return e=parseInt(r[1],10),t=parseFloat(r[2].replace(",",".")),Md(e,t)?e%24*Td+t*sb:NaN;if(r=Yr.HHMMSS.exec(n),r){e=parseInt(r[1],10),t=parseInt(r[2],10);const d=parseFloat(r[3].replace(",","."));return Md(e,t,d)?e%24*Td+t*sb+d*1e3:NaN}return null}function lb(n,e,t){e=e||0,t=t||0;const r=new Date(0);r.setUTCFullYear(n,0,4);const d=r.getUTCDay()||7,p=e*7+t+1-d;return r.setUTCDate(r.getUTCDate()+p),r}const _M=[31,28,31,30,31,30,31,31,30,31,30,31],$M=[31,29,31,30,31,30,31,31,30,31,30,31];function cb(n){return n%400===0||n%4===0&&n%100!==0}function ub(n,e,t){if(e<0||e>11)return!1;if(t!=null){if(t<1)return!1;const r=cb(n);if(r&&t>$M[e]||!r&&t>_M[e])return!1}return!0}function TM(n,e){if(e<1)return!1;const t=cb(n);return!(t&&e>366||!t&&e>365)}function hb(n,e){return!(n<0||n>52||e!=null&&(e<0||e>6))}function Md(n,e,t){return!(n<0||n>=25||e!=null&&(e<0||e>=60)||t!=null&&(t<0||t>=60))}const MM=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function EM(n,e,t={}){e=String(e);const r=e.match(MM);if(r){const d=ab(t.originalDate||n,t);e=r.reduce(function(p,g){if(g[0]==="'")return p;const b=p.indexOf(g),h=p[b-1]==="'",f=p.replace(g,"'"+yM[g[0]](d,g,t)+"'");return h?f.substring(0,b-1)+f.substring(b+1):f},e)}return ts(n,e,t)}function IM(n,e,t){n=ab(n,t);const r=Sd(e,n,!0),d=new Date(n.getTime()-r),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}function Ec(n,e,t,r){return r={...r,timeZone:e,originalDate:n},EM(IM(n,e,{timeZone:r.timeZone}),t,r)}const Ic="yyyy-MM-dd",db="HH:mm:ss.SSS",pb="HH:mm:ss",Rc=`${Ic} ${db}`,fb=`${Ic} ${pb}`,MP=pr("R",{methods:{parseDateTime(n,e){return n.includes(" ")&&(n=n.replace(" ","T")),e&&e==="UTC"&&(n+="Z"),Date.parse(n)},formatUtcToLocal(n,e){return ts(!e||e==="local"?rM(n,n.getTimezoneOffset()):n,Rc)},formatDateTime(n,e){return!e||e==="local"?ts(n,Rc):Ec(n,e,Rc)},formatDateTimeHMS(n,e){return!e||e==="local"?ts(n,fb):Ec(n,e,fb)},formatDate:function(n,e){return!e||e==="local"?ts(n,Ic):Ec(n,this.timeZone,Ic)},formatTime:function(n,e,t=db){return!e||e==="local"?ts(n,t):Ec(n,this.timeZone,t)},formatTimeHMS:function(n,e){return this.formatTime(n,e,pb)},formatTimestamp(n,e){return this.formatDateTime(HT(n),e)},formatSeconds(n,e){return this.formatDateTime(new Date(n*1e3),e)},formatNanoseconds(n,e){return this.formatDateTime(new Date(parseInt(n)/1e6),e)}}});var RM=Object.defineProperty,LM=(n,e,t)=>e in n?RM(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,it=(n,e,t)=>LM(n,typeof e!="symbol"?e+"":e,t);function Ed(n,e,t){const r=Rn(n,t==null?void 0:t.in);return isNaN(e)?lr((t==null?void 0:t.in)||n,NaN):(e&&r.setDate(r.getDate()+e),r)}function OM(n,e){const t=Rn(n,void 0).getDay();return t===0?7:t}function NM(n,e){const t=DM(e)?new e(0):lr(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function DM(n){var e;return typeof n=="function"&&((e=n.prototype)==null?void 0:e.constructor)===n}const FM=10;let gb=class{constructor(){it(this,"subPriority",0)}validate(e,t){return!0}},PM=class extends gb{constructor(e,t,r,d,p){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=d,p&&(this.subPriority=p)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}},WM=class extends gb{constructor(e,t){super(),it(this,"priority",FM),it(this,"subPriority",-1),this.context=e||(r=>lr(t,r))}set(e,t){return t.timestampIsSet?e:lr(e,NM(e,this.context))}};class sn{run(e,t,r,d){const p=this.parse(e,t,r,d);return p?{setter:new PM(p.value,this.validate,this.set,this.priority,this.subPriority),rest:p.rest}:null}validate(e,t,r){return!0}}let BM=class extends sn{constructor(){super(...arguments),it(this,"priority",140),it(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}};const nr={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}/},xo={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 rr(n,e){return n&&{value:e(n.value),rest:n.rest}}function Wn(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Co(n,e){const t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const r=t[1]==="+"?1:-1,d=t[2]?parseInt(t[2],10):0,p=t[3]?parseInt(t[3],10):0,g=t[5]?parseInt(t[5],10):0;return{value:r*(d*Mu+p*Nl+g*Sx),rest:e.slice(t[0].length)}}function mb(n){return Wn(nr.anyDigitsSigned,n)}function Un(n,e){switch(n){case 1:return Wn(nr.singleDigit,e);case 2:return Wn(nr.twoDigits,e);case 3:return Wn(nr.threeDigits,e);case 4:return Wn(nr.fourDigits,e);default:return Wn(new RegExp("^\\d{1,"+n+"}"),e)}}function vb(n,e){switch(n){case 1:return Wn(nr.singleDigitSigned,e);case 2:return Wn(nr.twoDigitsSigned,e);case 3:return Wn(nr.threeDigitsSigned,e);case 4:return Wn(nr.fourDigitsSigned,e);default:return Wn(new RegExp("^-?\\d{1,"+n+"}"),e)}}function Id(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 yb(n,e){const t=e>0,r=t?e:1-e;let d;if(r<=50)d=n||100;else{const p=r+50,g=Math.trunc(p/100)*100,b=n>=p%100;d=n+g-(b?100:0)}return t?d:1-d}function bb(n){return n%400===0||n%4===0&&n%100!==0}let HM=class extends sn{constructor(){super(...arguments),it(this,"priority",130),it(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,r){const d=p=>({year:p,isTwoDigitYear:t==="yy"});switch(t){case"y":return rr(Un(4,e),d);case"yo":return rr(r.ordinalNumber(e,{unit:"year"}),d);default:return rr(Un(t.length,e),d)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const d=e.getFullYear();if(r.isTwoDigitYear){const g=yb(r.year,d);return e.setFullYear(g,0,1),e.setHours(0,0,0,0),e}const p=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(p,0,1),e.setHours(0,0,0,0),e}},zM=class extends sn{constructor(){super(...arguments),it(this,"priority",130),it(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,r){const d=p=>({year:p,isTwoDigitYear:t==="YY"});switch(t){case"Y":return rr(Un(4,e),d);case"Yo":return rr(r.ordinalNumber(e,{unit:"year"}),d);default:return rr(Un(t.length,e),d)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,d){const p=Iu(e,d);if(r.isTwoDigitYear){const b=yb(r.year,p);return e.setFullYear(b,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),Jo(e,d)}const g=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(g,0,d.firstWeekContainsDate),e.setHours(0,0,0,0),Jo(e,d)}},jM=class extends sn{constructor(){super(...arguments),it(this,"priority",130),it(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return vb(t==="R"?4:t.length,e)}set(e,t,r){const d=lr(e,0);return d.setFullYear(r,0,4),d.setHours(0,0,0,0),sa(d)}},UM=class extends sn{constructor(){super(...arguments),it(this,"priority",130),it(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return vb(t==="u"?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}},VM=class extends sn{constructor(){super(...arguments),it(this,"priority",120),it(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"Q":case"QQ":return Un(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}},qM=class extends sn{constructor(){super(...arguments),it(this,"priority",120),it(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"q":case"qq":return Un(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}},KM=class extends sn{constructor(){super(...arguments),it(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),it(this,"priority",110)}parse(e,t,r){const d=p=>p-1;switch(t){case"M":return rr(Wn(nr.month,e),d);case"MM":return rr(Un(2,e),d);case"Mo":return rr(r.ordinalNumber(e,{unit:"month"}),d);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}},GM=class extends sn{constructor(){super(...arguments),it(this,"priority",110),it(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,r){const d=p=>p-1;switch(t){case"L":return rr(Wn(nr.month,e),d);case"LL":return rr(Un(2,e),d);case"Lo":return rr(r.ordinalNumber(e,{unit:"month"}),d);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}};function YM(n,e,t){const r=Rn(n,t==null?void 0:t.in),d=xf(r,t)-e;return r.setDate(r.getDate()-d*7),Rn(r,t==null?void 0:t.in)}let XM=class extends sn{constructor(){super(...arguments),it(this,"priority",100),it(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,r){switch(t){case"w":return Wn(nr.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Un(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,d){return Jo(YM(e,r,d),d)}};function ZM(n,e,t){const r=Rn(n,void 0),d=wf(r)-e;return r.setDate(r.getDate()-d*7),r}let QM=class extends sn{constructor(){super(...arguments),it(this,"priority",100),it(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,r){switch(t){case"I":return Wn(nr.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Un(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return sa(ZM(e,r))}};const JM=[31,28,31,30,31,30,31,31,30,31,30,31],eE=[31,29,31,30,31,30,31,31,30,31,30,31];class tE extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"subPriority",1),it(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"d":return Wn(nr.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Un(t.length,e)}}validate(e,t){const r=e.getFullYear(),d=bb(r),p=e.getMonth();return d?t>=1&&t<=eE[p]:t>=1&&t<=JM[p]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}}let nE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"subpriority",1),it(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,r){switch(t){case"D":case"DD":return Wn(nr.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Un(t.length,e)}}validate(e,t){const r=e.getFullYear();return bb(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}};function Rd(n,e,t){var r,d,p,g;const b=oa(),h=(t==null?void 0:t.weekStartsOn)??((d=(r=t==null?void 0:t.locale)==null?void 0:r.options)==null?void 0:d.weekStartsOn)??b.weekStartsOn??((g=(p=b.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??0,f=Rn(n,t==null?void 0:t.in),s=f.getDay(),a=(e%7+7)%7,u=7-h,c=e<0||e>6?e-(s+u)%7:(a+u)%7-(s+u)%7;return Ed(f,c,t)}let rE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Rd(e,r,d),e.setHours(0,0,0,0),e}},iE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,r,d){const p=g=>{const b=Math.floor((g-1)/7)*7;return(g+d.weekStartsOn+6)%7+b};switch(t){case"e":case"ee":return rr(Un(t.length,e),p);case"eo":return rr(r.ordinalNumber(e,{unit:"day"}),p);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Rd(e,r,d),e.setHours(0,0,0,0),e}};class oE extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,r,d){const p=g=>{const b=Math.floor((g-1)/7)*7;return(g+d.weekStartsOn+6)%7+b};switch(t){case"c":case"cc":return rr(Un(t.length,e),p);case"co":return rr(r.ordinalNumber(e,{unit:"day"}),p);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,d){return e=Rd(e,r,d),e.setHours(0,0,0,0),e}}function sE(n,e,t){const r=Rn(n,void 0),d=OM(r),p=e-d;return Ed(r,p,t)}let aE=class extends sn{constructor(){super(...arguments),it(this,"priority",90),it(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,r){const d=p=>p===0?7:p;switch(t){case"i":case"ii":return Un(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return rr(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiii":return rr(r.day(e,{width:"narrow",context:"formatting"}),d);case"iiiiii":return rr(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d);case"iiii":default:return rr(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),d)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return e=sE(e,r),e.setHours(0,0,0,0),e}},lE=class extends sn{constructor(){super(...arguments),it(this,"priority",80),it(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Id(r),0,0,0),e}},cE=class extends sn{constructor(){super(...arguments),it(this,"priority",80),it(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Id(r),0,0,0),e}},uE=class extends sn{constructor(){super(...arguments),it(this,"priority",80),it(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(Id(r),0,0,0),e}},hE=class extends sn{constructor(){super(...arguments),it(this,"priority",70),it(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,r){switch(t){case"h":return Wn(nr.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Un(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const d=e.getHours()>=12;return d&&r<12?e.setHours(r+12,0,0,0):!d&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}};class dE extends sn{constructor(){super(...arguments),it(this,"priority",70),it(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,r){switch(t){case"H":return Wn(nr.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Un(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}}let pE=class extends sn{constructor(){super(...arguments),it(this,"priority",70),it(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,r){switch(t){case"K":return Wn(nr.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Un(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}};class fE extends sn{constructor(){super(...arguments),it(this,"priority",70),it(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,r){switch(t){case"k":return Wn(nr.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Un(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const d=r<=24?r%24:r;return e.setHours(d,0,0,0),e}}class gE extends sn{constructor(){super(...arguments),it(this,"priority",60),it(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"m":return Wn(nr.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Un(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}}let mE=class extends sn{constructor(){super(...arguments),it(this,"priority",50),it(this,"incompatibleTokens",["t","T"])}parse(e,t,r){switch(t){case"s":return Wn(nr.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Un(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}},vE=class extends sn{constructor(){super(...arguments),it(this,"priority",30),it(this,"incompatibleTokens",["t","T"])}parse(e,t){const r=d=>Math.trunc(d*Math.pow(10,-t.length+3));return rr(Un(t.length,e),r)}set(e,t,r){return e.setMilliseconds(r),e}},yE=class extends sn{constructor(){super(...arguments),it(this,"priority",10),it(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Co(xo.basicOptionalMinutes,e);case"XX":return Co(xo.basic,e);case"XXXX":return Co(xo.basicOptionalSeconds,e);case"XXXXX":return Co(xo.extendedOptionalSeconds,e);case"XXX":default:return Co(xo.extended,e)}}set(e,t,r){return t.timestampIsSet?e:lr(e,e.getTime()-Dl(e)-r)}},bE=class extends sn{constructor(){super(...arguments),it(this,"priority",10),it(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Co(xo.basicOptionalMinutes,e);case"xx":return Co(xo.basic,e);case"xxxx":return Co(xo.basicOptionalSeconds,e);case"xxxxx":return Co(xo.extendedOptionalSeconds,e);case"xxx":default:return Co(xo.extended,e)}}set(e,t,r){return t.timestampIsSet?e:lr(e,e.getTime()-Dl(e)-r)}},wE=class extends sn{constructor(){super(...arguments),it(this,"priority",40),it(this,"incompatibleTokens","*")}parse(e){return mb(e)}set(e,t,r){return[lr(e,r*1e3),{timestampIsSet:!0}]}},xE=class extends sn{constructor(){super(...arguments),it(this,"priority",20),it(this,"incompatibleTokens","*")}parse(e){return mb(e)}set(e,t,r){return[lr(e,r),{timestampIsSet:!0}]}};const CE={G:new BM,y:new HM,Y:new zM,R:new jM,u:new UM,Q:new VM,q:new qM,M:new KM,L:new GM,w:new XM,I:new QM,d:new tE,D:new nE,E:new rE,e:new iE,c:new oE,i:new aE,a:new lE,b:new cE,B:new uE,h:new hE,H:new dE,K:new pE,k:new fE,m:new gE,s:new mE,S:new vE,X:new yE,x:new bE,t:new wE,T:new xE},kE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,SE=/^'([^]*?)'?$/,_E=/''/g,$E=/\S/,TE=/[a-zA-Z]/;function ME(n,e,t,r){var d,p,g,b;const h=()=>lr(t,NaN),f=Xy(),s=f.locale??bf,a=f.firstWeekContainsDate??((p=(d=f.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,u=f.weekStartsOn??((b=(g=f.locale)==null?void 0:g.options)==null?void 0:b.weekStartsOn)??0;if(!e)return n?h():Rn(t,void 0);const c={firstWeekContainsDate:a,weekStartsOn:u,locale:s},i=[new WM(void 0,t)],l=e.match(AE).map(_=>{const k=_[0];if(k in Ru){const C=Ru[k];return C(_,s.formatLong)}return _}).join("").match(kE),m=[];for(let _ of l){Tf(_)&&Lu(_,e,n),$f(_)&&Lu(_,e,n);const k=_[0],C=CE[k];if(C){const{incompatibleTokens:L}=C;if(Array.isArray(L)){const R=m.find(I=>L.includes(I.token)||I.token===k);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${_}\` at the same time`)}else if(C.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);m.push({token:k,fullToken:_});const D=C.run(n,_,s.match,c);if(!D)return h();i.push(D.setter),n=D.rest}else{if(k.match(TE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(_==="''"?_="'":k==="'"&&(_=EE(_)),n.indexOf(_)===0)n=n.slice(_.length);else return h()}}if(n.length>0&&$E.test(n))return h();const w=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=Rn(t,void 0);if(isNaN(+x))return h();const M={};for(const _ of w){if(!_.validate(x,c))return h();const k=_.set(x,M,c);Array.isArray(k)?(x=k[0],Object.assign(M,k[1])):x=k}return x}function EE(n){return n.match(SE)[1].replace(_E,"'")}const IE="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=",RE={props:{status:{type:String,required:!0},large:{type:Boolean},small:{type:Boolean},scale:{type:Number,default:1}},computed:{icons:function(){return IE},scaleFactor:function(){return this.scale?this.scale:this.large?1:this.small?.3:.5},iconStyle:function(){const n=WE.indexOf(wb[this.status]),e=1-(n-1)*.05,t=224*this.scaleFactor*e,r=32*this.scaleFactor*e,d=32*this.scaleFactor*e;return[`background-image: url(${this.icons});`,`background-position-x: -${n*d}px;`,`background-size: ${t}px ${r}px;`,`height: ${d}px;`,`width: ${d}px;`,`padding-top: ${n-1}px;`].join("")}}};function LE(n,e,t,r,d,p){return ot(),rn("div",{style:Cs(p.iconStyle)},null,4)}const OE=to(RE,[["render",LE]]),NE={props:{icon:{type:String,default:null},size:{type:String,default:"small"},color:{type:String,default:"white"}},computed:{colorStyle:function(){return{"--iconColor":this.color}}}};function DE(n,e,t,r,d,p){const g=Ue("rux-icon");return ot(),jt(g,{size:t.size,icon:t.icon,style:Cs(p.colorStyle)},null,8,["size","icon","style"])}const FE=to(NE,[["render",DE],["__scopeId","data-v-5611d859"]]),wb={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"},Ld={fatal:"#ff69B4",critical:"#ff3838",serious:"#ffb302",caution:"#fce83a",normal:"#56f000",standby:"#2dccff",off:"#a4abb6"},PE=function(n){const e="#000000",t="#ffffff",r=Ld[wb[n]];if(r){const d=+`0x${r.slice(1,3)}`,p=+`0x${r.slice(3,5)}`,g=+`0x${r.slice(5,7)}`;if((d*299+p*587+g*114)/1e3>128)return e}return t},WE=Object.keys(Ld),BE={astro:{component:n=>ia(FE,{...n})},"astro-status":{component:n=>ia(OE,{...n,status:n.icon})}},HE={extras:{component:n=>ia(Ax,{...n})}},zE=50,jE=2e3,xb="single-spa:app-change",UE={data(){return{appsMounted:!1,show:!1,hideSpinner:!1,pollInterval:null}},computed:{showSpinner:function(){return!this.hideSpinner&&!this.show}},created(){window.addEventListener(xb,this.handleAppChange)},mounted(){this.pollForMountedApps(),setTimeout(()=>{this.appsMounted||(this.show=!0,this.pollInterval&&clearInterval(this.pollInterval))},jE)},unmounted(){window.removeEventListener(xb,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=$u().length>0,$u().length>0&&(this.hideSpinner=!0,clearInterval(this.pollInterval))},zE)}}},VE={class:"mx-1"},qE={key:1,class:"d-flex justify-center align-center"};function KE(n,e,t,r,d,p){const g=Ue("v-card-title"),b=Ue("v-card-text"),h=Ue("v-card"),f=Ue("v-progress-circular");return ot(),rn(ci,null,[d.show?(ot(),jt(h,{key:0},{default:Pe(()=>[je(g,null,{default:Pe(()=>[...e[0]||(e[0]=[Rt(" 404 Not Found ",-1)])]),_:1}),je(b,{class:"d-flex align-center mt-3"},{default:Pe(()=>[e[1]||(e[1]=Rt(" The requested URL ",-1)),Pn("code",VE,Cn(n.$route.fullPath),1),e[2]||(e[2]=Rt(" was not routable. ",-1)),e[3]||(e[3]=Pn("span",{class:"text-h3 mx-1"}," 🦄 ",-1))]),_:1})]),_:1})):Kr("",!0),p.showSpinner?(ot(),rn("div",qE,[je(f,{indeterminate:""})])):Kr("",!0)],64)}const GE=to(UE,[["render",KE]]),YE={props:{modelValue:Boolean},emits:["update:modelValue"],data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}},listData:function(){return this.response?this.type==="github"?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const n=/\w+.gem/;return this.response.tree.filter(e=>n.exec(e.path)).map(e=>({name:e.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${e.path}`}))},getResponse:function(){this.disableSearch=!0,tr.get(this.url).then(n=>{this.response=n.data}),setTimeout(()=>{this.disableSearch=!1},1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(n){const e=document.createElement("a");e.href=n.url,e.setAttribute("download",n.name),e.click(),e.remove()}}},XE={class:"pa-3"},ZE={class:"px-2"},QE={key:0,class:"mt-4"},JE={key:1,class:"mt-4"};function eI(n,e,t,r,d,p){const g=Ue("v-spacer"),b=Ue("v-toolbar"),h=Ue("v-row"),f=Ue("v-icon"),s=Ue("v-btn"),a=Ue("v-col"),u=Ue("v-list-item-title"),c=Ue("v-progress-circular"),i=Ue("v-list-item"),l=Ue("v-divider"),m=Ue("v-card-text"),w=Ue("v-card"),x=Ue("v-dialog");return ot(),jt(x,{modelValue:p.show,"onUpdate:modelValue":e[0]||(e[0]=M=>p.show=M),width:"600"},{default:Pe(()=>[je(w,null,{default:Pe(()=>[je(b,{height:"24"},{default:Pe(()=>[je(g),e[1]||(e[1]=Pn("span",null," Download Gems ",-1)),je(g)]),_:1}),je(m,null,{default:Pe(()=>[Pn("div",XE,[je(h,{class:"my-2"},{default:Pe(()=>[...e[2]||(e[2]=[Rt(" Select a download option ",-1)])]),_:1}),je(h,null,{default:Pe(()=>[je(a,null,{default:Pe(()=>[Pn("div",ZE,[je(s,{block:"","data-test":"searchGithub",color:"primary",disabled:d.disableSearch,onClick:p.searchGithub},{default:Pe(()=>[e[4]||(e[4]=Rt(" Github ",-1)),je(f,{end:"",theme:"dark"},{default:Pe(()=>[...e[3]||(e[3]=[Rt(" mdi-github ",-1)])]),_:1})]),_:1},8,["disabled","onClick"])])]),_:1})]),_:1}),je(h,{class:"mt-5"},{default:Pe(()=>[...e[5]||(e[5]=[Rt(" Community Gems ",-1)])]),_:1}),p.listData.length<1?(ot(),rn("div",QE,[je(h,{class:"mx-2"},{default:Pe(()=>[...e[6]||(e[6]=[Pn("span",null," I’m sorry, Dave. No gems available.... ",-1)])]),_:1})])):(ot(),rn("div",JE,[(ot(!0),rn(ci,null,vo(p.listData,(M,_)=>(ot(),rn("div",{key:_},[je(i,null,{default:Pe(()=>[je(u,null,{default:Pe(()=>[Rt(Cn(M.name),1)]),_:2},1024),je(i,{icon:""},{default:Pe(()=>[d.activeDownload?(ot(),jt(c,{key:0,indeterminate:"",color:"primary"})):(ot(),jt(s,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:d.activeDownload,onClick:k=>p.downloadGem(M)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),_<p.listData.length-1?(ot(),jt(l,{key:_})):Kr("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const EP=pr("q",to(YE,[["render",eI]])),tI={props:{modelValue:Boolean,plugin:{type:String,default:null},targets:{type:Array,default:null},pluginDelete:Boolean},emits:["update:modelValue","submit","cancel"],data(){return{modifiedTargets:[],deleteModified:!1}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},created(){for(const n of this.targets)lk.get(`/openc3-api/targets/${n.name}/modified_files`).then(e=>{e.data.length!==0&&this.modifiedTargets.push({name:n.name,files:e.data})})},methods:{cancel(){this.show=!1,this.$emit("cancel")}}},nI={class:"file-list-container"};function rI(n,e,t,r,d,p){const g=Ue("v-spacer"),b=Ue("v-toolbar"),h=Ue("v-list-item-title"),f=Ue("v-list-item-subtitle"),s=Ue("v-list-item"),a=Ue("v-checkbox"),u=Ue("v-card-text"),c=Ue("v-btn"),i=Ue("v-card-actions"),l=Ue("v-card"),m=Ue("v-dialog");return ot(),jt(m,{modelValue:p.show,"onUpdate:modelValue":e[2]||(e[2]=w=>p.show=w),persistent:"",width:"600",onKeydown:Ol(p.cancel,["esc"])},{default:Pe(()=>[je(l,null,{default:Pe(()=>[je(b,{height:"24"},{default:Pe(()=>[je(g),e[3]||(e[3]=Pn("span",null," Modified Plugin ",-1)),je(g)]),_:1}),je(u,{class:"pa-3 card-container"},{default:Pe(()=>[Pn("div",null," Plugin "+Cn(t.plugin)+" was modified. Would you like to delete the existing modified files? ",1),(ot(!0),rn(ci,null,vo(d.modifiedTargets,(w,x)=>(ot(),jt(s,{key:x,lines:"two"},{default:Pe(()=>[je(h,null,{default:Pe(()=>[Rt(Cn(w.name),1)]),_:2},1024),Pn("div",nI,[(ot(!0),rn(ci,null,vo(w.files,(M,_)=>(ot(),jt(f,{key:_},{default:Pe(()=>[Rt(Cn(M),1)]),_:2},1024))),128))])]),_:2},1024))),128)),je(a,{modelValue:d.deleteModified,"onUpdate:modelValue":e[0]||(e[0]=w=>d.deleteModified=w),label:"DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",color:"error","data-test":"modified-plugin-delete-checkbox"},null,8,["modelValue"])]),_:1}),je(i,{class:"px-2"},{default:Pe(()=>[je(g),je(c,{variant:"outlined","data-test":"modified-plugin-cancel",onClick:p.cancel},{default:Pe(()=>[...e[4]||(e[4]=[Rt(" Cancel ",-1)])]),_:1},8,["onClick"]),je(c,{variant:"flat","data-test":"modified-plugin-submit",onClick:e[1]||(e[1]=()=>{p.show=!1,n.$emit("submit",d.deleteModified)})},{default:Pe(()=>[...e[5]||(e[5]=[Rt(" Confirm ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])}const IP=pr("U",to(tI,[["render",rI],["__scopeId","data-v-fb16376a"]])),Od=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>nt(()=>tt.import("./PluginsTab-zR9eZuvc-c57dae61047523f89750.js"),void 0)},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>nt(()=>tt.import("./TargetsTab-b35HgnRl-e970ebd371c349ffe038.js"),void 0)},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>nt(()=>tt.import("./InterfacesTab-B9ApLB5q-bb96464dd3bfc478c5ac.js"),void 0)},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>nt(()=>tt.import("./RoutersTab-C0UHSj-S-ed231a6d8c25eb3cb67e.js"),void 0)},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>nt(()=>tt.import("./MicroservicesTab-DG3rdksb-35f3fc3e162eb6c433a0.js"),void 0)},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>nt(()=>tt.import("./PackagesTab-Bui5q3rX-b1963482967f42c96e55.js"),void 0)},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>nt(()=>tt.import("./ToolsTab-7qOQPnN3-7f87bbe2b3d53dbc4e60.js"),void 0)},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>nt(()=>tt.import("./RedisTab-DuO-zUV3-21f27e0f3f96b000592e.js"),void 0)},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>nt(()=>tt.import("./SecretsTab-c5g8Zk4g-5d84a9c474815520ba11.js"),void 0)},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>nt(()=>tt.import("./SettingsTab-CTd3_Ipy-263b3fd497c7ad9c7647.js"),void 0)}],iI={components:{TopBar:u$},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return Od.map(n=>({displayName:n.displayName,path:{name:n.name}}))}}};function oI(n,e,t,r,d,p){const g=Ue("top-bar"),b=Ue("v-tab"),h=Ue("v-tabs"),f=Ue("router-view"),s=Ue("v-card");return ot(),rn("div",null,[je(g,{title:d.title},null,8,["title"]),je(s,null,{default:Pe(()=>[je(h,{modelValue:d.curTab,"onUpdate:modelValue":e[0]||(e[0]=a=>d.curTab=a),"fixed-tabs":""},{default:Pe(()=>[(ot(!0),rn(ci,null,vo(p.tabs,(a,u)=>(ot(),jt(b,{key:u,to:a.path},{default:Pe(()=>[Rt(Cn(a.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),je(f)]),_:1})])}const sI=to(iI,[["render",oI]]);function Nd(n){const[e,t]=n;return[e,t]}function Cb(n,e){let t=n,r=e;const d=t.length,p=r.length;if(d===0||p===0)return 0;d>p?t=t.substring(d-p):d<p&&(r=r.substring(0,d));const g=Math.min(d,p);if(t===r)return g;let b=0,h=1;for(let f=0;f!==-1;){const s=t.substring(g-h);if(f=r.indexOf(s),f===-1)return b;h+=f,(f===0||t.substring(g-h)===r.substring(0,h))&&(b=h,h++)}return b}function Dd(n,e){if(!n||!e||n[0]!==e[0])return 0;let t=0,r=Math.min(n.length,e.length),d=r,p=0;for(;t<d;)n.substring(p,d)===e.substring(p,d)?(t=d,p=t):r=d,d=Math.floor((r-t)/2+t);return d}function Lc(n,e){if(!n||!e||n[n.length-1]!==e[e.length-1])return 0;let t=0,r=Math.min(n.length,e.length),d=r,p=0;for(;t<d;)n.substring(n.length-d,n.length-p)===e.substring(e.length-d,e.length-p)?(t=d,p=t):r=d,d=Math.floor((r-t)/2+t);return d}function aI(n){const e=n.charCodeAt(0);return e>=55296&&e<=56319}function lI(n){const e=n.charCodeAt(0);return e>=56320&&e<=57343}function cI(n,e,t){const r=n.length,d=e.length,p=Math.ceil((r+d)/2),g=p,b=2*p,h=new Array(b),f=new Array(b);for(let m=0;m<b;m++)h[m]=-1,f[m]=-1;h[g+1]=0,f[g+1]=0;const s=r-d,a=s%2!==0;let u=0,c=0,i=0,l=0;for(let m=0;m<p&&!(Date.now()>t);m++){for(let w=-m+u;w<=m-c;w+=2){const x=g+w;let M;w===-m||w!==m&&h[x-1]<h[x+1]?M=h[x+1]:M=h[x-1]+1;let _=M-w;for(;M<r&&_<d&&n.charAt(M)===e.charAt(_);)M++,_++;if(h[x]=M,M>r)c+=2;else if(_>d)u+=2;else if(a){const k=g+s-w;if(k>=0&&k<b&&f[k]!==-1){const C=r-f[k];if(M>=C)return kb(n,e,M,_,t)}}}for(let w=-m+i;w<=m-l;w+=2){const x=g+w;let M;w===-m||w!==m&&f[x-1]<f[x+1]?M=f[x+1]:M=f[x-1]+1;let _=M-w;for(;M<r&&_<d&&n.charAt(r-M-1)===e.charAt(d-_-1);)M++,_++;if(f[x]=M,M>r)l+=2;else if(_>d)i+=2;else if(!a){const k=g+s-w;if(k>=0&&k<b&&h[k]!==-1){const C=h[k],L=g+C-k;if(M=r-M,C>=M)return kb(n,e,C,L,t)}}}}return[[Ei,n],[fi,e]]}function kb(n,e,t,r,d){const p=n.substring(0,t),g=e.substring(0,r),b=n.substring(t),h=e.substring(r),f=Hs(p,g,{checkLines:!1,deadline:d}),s=Hs(b,h,{checkLines:!1,deadline:d});return f.concat(s)}function uI(n,e,t=1){if(t<=0)return null;const r=n.length>e.length?n:e,d=n.length>e.length?e:n;if(r.length<4||d.length*2<r.length)return null;const p=Ab(r,d,Math.ceil(r.length/4)),g=Ab(r,d,Math.ceil(r.length/2));let b;if(p&&g)b=p[4].length>g[4].length?p:g;else{if(!p&&!g)return null;g?p||(b=g):b=p}if(!b)throw new Error("Unable to find a half match.");let h,f,s,a;n.length>e.length?(h=b[0],f=b[1],s=b[2],a=b[3]):(s=b[0],a=b[1],h=b[2],f=b[3]);const u=b[4];return[h,f,s,a,u]}function Ab(n,e,t){const r=n.slice(t,t+Math.floor(n.length/4));let d=-1,p="",g,b,h,f;for(;(d=e.indexOf(r,d+1))!==-1;){const s=Dd(n.slice(t),e.slice(d)),a=Lc(n.slice(0,t),e.slice(0,d));p.length<a+s&&(p=e.slice(d-a,d)+e.slice(d,d+s),g=n.slice(0,t-a),b=n.slice(t+s),h=e.slice(0,d-a),f=e.slice(d+s))}return p.length*2>=n.length?[g||"",b||"",h||"",f||"",p||""]:null}function hI(n,e){for(let t=0;t<n.length;t++){const r=n[t][1],d=[];for(let p=0;p<r.length;p++)d[p]=e[r.charCodeAt(p)];n[t][1]=d.join("")}}function dI(n,e){const t=[],r={};t[0]="";function d(h){let f="",s=0,a=-1,u=t.length;for(;a<h.length-1;){a=h.indexOf(`
|
|
1496
1496
|
`,s),a===-1&&(a=h.length-1);let c=h.slice(s,a+1);(r.hasOwnProperty?r.hasOwnProperty(c):r[c]!==void 0)?f+=String.fromCharCode(r[c]):(u===p&&(c=h.slice(s),a=h.length),f+=String.fromCharCode(u),r[c]=u,t[u++]=c),s=a+1}return f}let p=4e4;const g=d(n);p=65535;const b=d(e);return{chars1:g,chars2:b,lineArray:t}}function pI(n,e,t){let r=n,d=e;const p=dI(r,d);r=p.chars1,d=p.chars2;const g=p.lineArray;let b=Hs(r,d,{checkLines:!1,deadline:t.deadline});hI(b,g),b=Tb(b),b.push([Vn,""]);let h=0,f=0,s=0,a="",u="";for(;h<b.length;){switch(b[h][0]){case fi:s++,u+=b[h][1];break;case Ei:f++,a+=b[h][1];break;case Vn:if(f>=1&&s>=1){b.splice(h-f-s,f+s),h=h-f-s;const c=Hs(a,u,{checkLines:!1,deadline:t.deadline});for(let i=c.length-1;i>=0;i--)b.splice(h,0,c[i]);h+=c.length}s=0,f=0,a="",u="";break;default:throw new Error("Unknown diff operation.")}h++}return b.pop(),b}function fI(n,e,t){let r;if(!n)return[[fi,e]];if(!e)return[[Ei,n]];const d=n.length>e.length?n:e,p=n.length>e.length?e:n,g=d.indexOf(p);if(g!==-1)return r=[[fi,d.substring(0,g)],[Vn,p],[fi,d.substring(g+p.length)]],n.length>e.length&&(r[0][0]=Ei,r[2][0]=Ei),r;if(p.length===1)return[[Ei,n],[fi,e]];const b=uI(n,e);if(b){const h=b[0],f=b[1],s=b[2],a=b[3],u=b[4],c=Hs(h,s,t),i=Hs(f,a,t);return c.concat([[Vn,u]],i)}return t.checkLines&&n.length>100&&e.length>100?pI(n,e,t):cI(n,e,t.deadline)}var gI=Object.defineProperty,Sb=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,vI=Object.prototype.propertyIsEnumerable,_b=(n,e,t)=>e in n?gI(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,yI=(n,e)=>{for(var t in e||(e={}))mI.call(e,t)&&_b(n,t,e[t]);if(Sb)for(var t of Sb(e))vI.call(e,t)&&_b(n,t,e[t]);return n};const Ei=-1,fi=1,Vn=0;function bI(n,e,t){if(n===null||e===null)throw new Error("Null input. (diff)");const r=Hs(n,e,xI({}));return kI(r),r}function Hs(n,e,t){let r=n,d=e;if(r===d)return r?[[Vn,r]]:[];let p=Dd(r,d);const g=r.substring(0,p);r=r.substring(p),d=d.substring(p),p=Lc(r,d);const b=r.substring(r.length-p);r=r.substring(0,r.length-p),d=d.substring(0,d.length-p);let h=fI(r,d,t);return g&&h.unshift([Vn,g]),b&&h.push([Vn,b]),h=Fd(h),h}function wI(n){let e=1;return typeof n<"u"&&(e=n<=0?Number.MAX_VALUE:n),Date.now()+e*1e3}function xI(n){return yI({checkLines:!0,deadline:wI(n.timeout||1)},n)}function Oc(n,e,t){return t===1?n+e:e+n}function Nc(n,e){return e===1?[n.substring(0,n.length-1),n[n.length-1]]:[n.substring(1),n[0]]}function CI(n,e,t,r){return r===1?n[e][1][n[e][1].length-1]===n[t][1][n[t][1].length-1]:n[e][1][0]===n[t][1][0]}function $b(n,e,t){const r=t===1?-1:1;let d=null,p=null,g=e+t;for(;g>=0&&g<n.length&&(d===null||p===null);g+=t){const[f,s]=n[g];if(s.length!==0){if(f===fi){d===null&&(d=g);continue}else if(f===Ei){p===null&&(p=g);continue}else if(f===Vn){if(d===null&&p===null){const[a,u]=Nc(n[e][1],t);n[e][1]=a,n[g][1]=Oc(n[g][1],u,r);return}break}}}if(d!==null&&p!==null&&CI(n,d,p,t)){const[f,s]=Nc(n[d][1],r),[a]=Nc(n[p][1],r);n[d][1]=f,n[p][1]=a,n[e][1]=Oc(n[e][1],s,t);return}const[b,h]=Nc(n[e][1],t);n[e][1]=b,d===null?(n.splice(g,0,[fi,h]),p!==null&&p>=g&&p++):n[d][1]=Oc(n[d][1],h,r),p===null?n.splice(g,0,[Ei,h]):n[p][1]=Oc(n[p][1],h,r)}function kI(n){for(let e=0;e<n.length;e++){const[t,r]=n[e];if(r.length===0)continue;const d=r[0],p=r[r.length-1];aI(p)&&t===Vn&&$b(n,e,1),lI(d)&&t===Vn&&$b(n,e,-1)}for(let e=0;e<n.length;e++)n[e][1].length===0&&n.splice(e,1)}function Tb(n){let e=n.map(a=>Nd(a)),t=!1;const r=[];let d=0,p=null,g=0,b=0,h=0,f=0,s=0;for(;g<e.length;)e[g][0]===Vn?(r[d++]=g,b=f,h=s,f=0,s=0,p=e[g][1]):(e[g][0]===fi?f+=e[g][1].length:s+=e[g][1].length,p&&p.length<=Math.max(b,h)&&p.length<=Math.max(f,s)&&(e.splice(r[d-1],0,[Ei,p]),e[r[d-1]+1][0]=fi,d--,d--,g=d>0?r[d-1]:-1,b=0,h=0,f=0,s=0,p=null,t=!0)),g++;for(t&&(e=Fd(e)),e=_I(e),g=1;g<e.length;){if(e[g-1][0]===Ei&&e[g][0]===fi){const a=e[g-1][1],u=e[g][1],c=Cb(a,u),i=Cb(u,a);c>=i?(c>=a.length/2||c>=u.length/2)&&(e.splice(g,0,[Vn,u.substring(0,c)]),e[g-1][1]=a.substring(0,a.length-c),e[g+1][1]=u.substring(c),g++):(i>=a.length/2||i>=u.length/2)&&(e.splice(g,0,[Vn,a.substring(0,i)]),e[g-1][0]=fi,e[g-1][1]=u.substring(0,u.length-i),e[g+1][0]=Ei,e[g+1][1]=a.substring(i),g++),g++}g++}return e}const Mb=/[^a-zA-Z0-9]/,Eb=/\s/,Ib=/[\r\n]/,AI=/\n\r?\n$/,SI=/^\r?\n\r?\n/;function _I(n){const e=n.map(d=>Nd(d));function t(d,p){if(!d||!p)return 6;const g=d.charAt(d.length-1),b=p.charAt(0),h=g.match(Mb),f=b.match(Mb),s=h&&g.match(Eb),a=f&&b.match(Eb),u=s&&g.match(Ib),c=a&&b.match(Ib),i=u&&d.match(AI),l=c&&p.match(SI);return i||l?5:u||c?4:h&&!s&&a?3:s||a?2:h||f?1:0}let r=1;for(;r<e.length-1;){if(e[r-1][0]===Vn&&e[r+1][0]===Vn){let d=e[r-1][1],p=e[r][1],g=e[r+1][1];const b=Lc(d,p);if(b){const u=p.substring(p.length-b);d=d.substring(0,d.length-b),p=u+p.substring(0,p.length-b),g=u+g}let h=d,f=p,s=g,a=t(d,p)+t(p,g);for(;p.charAt(0)===g.charAt(0);){d+=p.charAt(0),p=p.substring(1)+g.charAt(0),g=g.substring(1);const u=t(d,p)+t(p,g);u>=a&&(a=u,h=d,f=p,s=g)}e[r-1][1]!==h&&(h?e[r-1][1]=h:(e.splice(r-1,1),r--),e[r][1]=f,s?e[r+1][1]=s:(e.splice(r+1,1),r--))}r++}return e}function Fd(n){let e=n.map(f=>Nd(f));e.push([Vn,""]);let t=0,r=0,d=0,p="",g="",b;for(;t<e.length;)switch(e[t][0]){case fi:d++,g+=e[t][1],t++;break;case Ei:r++,p+=e[t][1],t++;break;case Vn:r+d>1?(r!==0&&d!==0&&(b=Dd(g,p),b!==0&&(t-r-d>0&&e[t-r-d-1][0]===Vn?e[t-r-d-1][1]+=g.substring(0,b):(e.splice(0,0,[Vn,g.substring(0,b)]),t++),g=g.substring(b),p=p.substring(b)),b=Lc(g,p),b!==0&&(e[t][1]=g.substring(g.length-b)+e[t][1],g=g.substring(0,g.length-b),p=p.substring(0,p.length-b))),t-=r+d,e.splice(t,r+d),p.length&&(e.splice(t,0,[Ei,p]),t++),g.length&&(e.splice(t,0,[fi,g]),t++),t++):t!==0&&e[t-1][0]===Vn?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,d=0,r=0,p="",g="";break;default:throw new Error("Unknown diff operation")}e[e.length-1][1]===""&&e.pop();let h=!1;for(t=1;t<e.length-1;)e[t-1][0]===Vn&&e[t+1][0]===Vn&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),h=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),h=!0)),t++;return h&&(e=Fd(e)),e}function Dc(n){return n&&typeof n=="object"&&!Array.isArray(n)&&n!==null}function Pd(n,e){return Dc(n)&&Dc(e)&&Object.keys(e).forEach(t=>{t==="__proto__"||t==="constructor"||(Dc(e[t])?((!n[t]||!Dc(n[t]))&&(n[t]=e[t]),Pd(n[t],e[t])):Object.assign(n,{[t]:e[t]}))}),n}function Rb(n,e,t=!1){let r=null,d=!0;return(...p)=>{const g=t&&d,b=()=>{n.apply(this,p),r=null};g&&(d=!1,b()),r||(r=setTimeout(b,e))}}function $I(n,e){let t;return(...r)=>{const d=this;clearTimeout(t),t=setTimeout(()=>n.apply(d,r),e)}}function Lb(n=""){return n.replace(/\r\n/g,`
|
|
1497
1497
|
`)}function Ob(n,e,t,r){const d=t-n,p=n+d/2;return`M ${n} ${e} C ${p},${e} ${p},${r} ${t},${r}`}var kn={DIFF_EQUAL:0,DIFF_DELETE:-1,DIFF_INSERT:1,EDITOR_RIGHT:"right",EDITOR_LEFT:"left",RTL:"rtl",LTR:"ltr",SVG_NS:"http://www.w3.org/2000/svg",DIFF_GRANULARITY_SPECIFIC:"specific",DIFF_GRANULARITY_BROAD:"broad"};function Nb(n,e){let{mode:t}=n.options;return e===kn.EDITOR_LEFT&&n.options.left.mode!==null&&(t=n.options.left.mode),e===kn.EDITOR_RIGHT&&n.options.right.mode!==null&&(t=n.options.right.mode),t}function Db(n,e){let{theme:t}=n.options;return e===kn.EDITOR_LEFT&&n.options.left.theme!==null&&(t=n.options.left.theme),e===kn.EDITOR_RIGHT&&n.options.right.theme!==null&&(t=n.options.right.theme),t}function Fb(n,e){return n.ace.getSession().doc.getLine(e)}function TI(n){return document.getElementById(n.options.left.id).offsetHeight}function Pb(n){const e=document.createElement("div"),t={class:n.className,style:`top:${n.topOffset}px`,title:n.tooltip,"data-diff-index":n.diffIndex};for(const r in t)e.setAttribute(r,t[r]);return e.innerHTML=n.arrowContent,e}function Wd(n,e){const t=Math.random().toString(36).substr(2,5),r=`js-${e}-${t}`,d=n.querySelector(`.${e}`);if(d)return d.id=d.id||r,d.id;const p=document.createElement("div");return n.appendChild(p),p.className=e,p.id=r,p.id}function Wb(n,e,t,r){const d=n==="document"?document:document.querySelector(n);d.addEventListener(e,p=>{const g=d.querySelectorAll(t),{target:b}=p;for(let h=0,f=g.length;h<f;h+=1){let s=b;const a=g[h];for(;s&&s!==d;)s===a&&r.call(a,p),s=s.parentNode}})}let Fc;function MI(n){if(n.Range)return n.Range;const e=n.acequire||n.require;return e?e("ace/range"):!1}function Pc(n={}){if(!(this instanceof Pc))return new Pc(n);const e=this,t=()=>window?window.ace:void 0;e.options=Pd({ace:t(),mode:null,theme:null,element:null,diffGranularity:kn.DIFF_GRANULARITY_BROAD,lockScrolling:!1,showDiffs:!0,showConnectors:!0,maxDiffs:5e3,left:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},right:{id:null,content:null,mode:null,theme:null,editable:!0,copyLinkEnabled:!0},classes:{gutterID:"acediff__gutter",diff:"acediff__diffLine",connector:"acediff__connector",newCodeConnectorLink:"acediff__newCodeConnector",newCodeConnectorLinkContent:"→",deletedCodeConnectorLink:"acediff__deletedCodeConnector",deletedCodeConnectorLinkContent:"←",copyRightContainer:"acediff__copy--right",copyLeftContainer:"acediff__copy--left"},connectorYOffset:0},n);const{ace:r}=e.options;if(!r){const d="No ace editor found nor supplied - `options.ace` or `window.ace` is missing";return console.error(d),new Error(d)}if(Fc=MI(r),!Fc){const d="Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";return console.error(d),new Error(d)}if(e.options.element===null){const d="You need to specify an element for Ace-diff - `options.element` is missing";return console.error(d),new Error(d)}if(e.options.element instanceof HTMLElement?e.el=e.options.element:e.el=document.body.querySelector(e.options.element),!e.el){const d=`Can't find the specified element ${e.options.element}`;return console.error(d),new Error(d)}e.options.left.id=Wd(e.el,"acediff__left"),e.options.classes.gutterID=Wd(e.el,"acediff__gutter"),e.options.right.id=Wd(e.el,"acediff__right"),e.el.innerHTML=`<div class="acediff__wrap">${e.el.innerHTML}</div>`,e.editors={left:{ace:r.edit(e.options.left.id),markers:[],lineLengths:[]},right:{ace:r.edit(e.options.right.id),markers:[],lineLengths:[]},editorHeight:null},e.editors.left.ace.getSession().setMode(Nb(e,kn.EDITOR_LEFT)),e.editors.right.ace.getSession().setMode(Nb(e,kn.EDITOR_RIGHT)),e.editors.left.ace.setReadOnly(!e.options.left.editable),e.editors.right.ace.setReadOnly(!e.options.right.editable),e.editors.left.ace.setTheme(Db(e,kn.EDITOR_LEFT)),e.editors.right.ace.setTheme(Db(e,kn.EDITOR_RIGHT)),e.editors.left.ace.setValue(Lb(e.options.left.content),-1),e.editors.right.ace.setValue(Lb(e.options.right.content),-1),e.editors.editorHeight=TI(e),setTimeout(()=>{e.lineHeight=e.editors.left.ace.renderer.lineHeight,EI(e),OI(e),Gb(e),e.diff()},1)}Pc.prototype={setOptions(n){Pd(this.options,n),this.diff()},getNumDiffs(){return this.diffs.length},getEditors(){return{left:this.editors.left.ace,right:this.editors.right.ace}},diff(){const n=this.editors.left.ace.getSession().getValue(),e=this.editors.right.ace.getSession().getValue(),t=Tb(bI(e,n));this.editors.left.lineLengths=Hb(this.editors.left),this.editors.right.lineLengths=Hb(this.editors.right);const r=[],d={left:0,right:0};t.forEach(p=>{const g=p[0];let b=p[1];b.length!==0&&(g===kn.DIFF_EQUAL?(d.left+=b.length,d.right+=b.length):g===kn.DIFF_DELETE?(r.push(Vb(this,kn.DIFF_DELETE,d.left,d.right,b)),d.right+=b.length):g===kn.DIFF_INSERT&&(r.push(Vb(this,kn.DIFF_INSERT,d.left,d.right,b)),d.left+=b.length))},this),this.diffs=FI(this,r),!(this.diffs.length>this.options.maxDiffs)&&(Ub(this),Xb(this))},destroy(){const n=this.editors.left.ace.getValue();this.editors.left.ace.destroy();let e=this.editors.left.ace.container,t=e.cloneNode(!1);t.textContent=n,e.parentNode.replaceChild(t,e);const r=this.editors.right.ace.getValue();this.editors.right.ace.destroy(),e=this.editors.right.ace.container,t=e.cloneNode(!1),t.textContent=r,e.parentNode.replaceChild(t,e);const d=document.getElementById(this.options.classes.gutterID);d&&(d.innerHTML=""),this.removeEventHandlers()}};function EI(n){n.editors.left.ace.getSession().on("changeScrollTop",Rb(()=>{jb(n)},16)),n.editors.right.ace.getSession().on("changeScrollTop",Rb(()=>{jb(n)},16));const e=n.diff.bind(n);n.editors.left.ace.on("change",e),n.editors.right.ace.on("change",e),n.options.left.copyLinkEnabled&&Wb(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.newCodeConnectorLink}`,r=>{Bb(n,r,kn.LTR)}),n.options.right.copyLinkEnabled&&Wb(`#${n.options.classes.gutterID}`,"click",`.${n.options.classes.deletedCodeConnectorLink}`,r=>{Bb(n,r,kn.RTL)});const t=$I(()=>{n.editors.availableHeight=document.getElementById(n.options.left.id).offsetHeight,n.diff()},250);window.addEventListener("resize",t),n.removeEventHandlers=()=>{window.removeEventListener("resize",t)}}function Bb(n,e,t){const r=parseInt(e.target.getAttribute("data-diff-index"),10),d=n.diffs[r];let p,g,b,h,f,s;t===kn.LTR?(p=n.editors.left,g=n.editors.right,b=d.leftStartLine,h=d.leftEndLine,f=d.rightStartLine,s=d.rightEndLine):(p=n.editors.right,g=n.editors.left,b=d.rightStartLine,h=d.rightEndLine,f=d.leftStartLine,s=d.leftEndLine);let a="";for(let c=b;c<h;c+=1)a+=Fb(p,c),c<p.ace.getSession().getLength()-1&&(a+=`
|
|
1498
1498
|
`);const u=g.ace.getSession().getScrollTop();g.ace.getSession().replace(new Fc(f,0,s,0),a),g.ace.getSession().setScrollTop(parseInt(u,10)),n.diff()}function Hb(n){const e=n.ace.getSession().doc.getAllLines(),t=[];return e.forEach(r=>{t.push(r.length+1)}),t}function zb(n,e,t,r,d){const p=n.editors[e];r<t&&(r=t);const g=`${d} ${r>t?"lines":"targetOnly"}`;r>t&&(r-=1),p.markers.push(p.ace.session.addMarker(new Fc(t,0,r,1),g,"fullLine"))}function jb(n){Ub(n),Xb(n),LI(n)}function Ub(n){n.editors.left.markers.forEach(e=>{n.editors.left.ace.getSession().removeMarker(e)},n),n.editors.right.markers.forEach(e=>{n.editors.right.ace.getSession().removeMarker(e)},n)}function II(n,e,t,r,d){const p=n.editors.left.ace.getSession().getScrollTop(),g=n.editors.right.ace.getSession().getScrollTop();n.connectorYOffset=1;const b=-1,h=e*n.lineHeight-p+.5,f=n.gutterWidth+1,s=r*n.lineHeight-g+.5,a=-1,u=t*n.lineHeight-p+n.connectorYOffset+.5,c=n.gutterWidth+1,i=d*n.lineHeight-g+n.connectorYOffset+.5,l=Ob(b,h,f,s),m=Ob(c,i,a,u),w=`L${f},${s} ${c},${i}`,x=`L${a},${u} ${b},${h}`,M=`${l} ${w} ${m} ${x}`,_=document.createElementNS(kn.SVG_NS,"path");_.setAttribute("d",M),_.setAttribute("class",n.options.classes.connector),n.gutterSVG.appendChild(_)}function RI(n,e,t){if(e.leftEndLine>e.leftStartLine&&n.options.left.copyLinkEnabled){const r=Pb({className:n.options.classes.newCodeConnectorLink,topOffset:e.leftStartLine*n.lineHeight,tooltip:"Copy to right",diffIndex:t,arrowContent:n.options.classes.newCodeConnectorLinkContent});n.copyRightContainer.appendChild(r)}if(e.rightEndLine>e.rightStartLine&&n.options.right.copyLinkEnabled){const r=Pb({className:n.options.classes.deletedCodeConnectorLink,topOffset:e.rightStartLine*n.lineHeight,tooltip:"Copy to left",diffIndex:t,arrowContent:n.options.classes.deletedCodeConnectorLinkContent});n.copyLeftContainer.appendChild(r)}}function LI(n){const e=n.editors.left.ace.getSession().getScrollTop(),t=n.editors.right.ace.getSession().getScrollTop();n.copyRightContainer.style.cssText=`top: ${-e}px`,n.copyLeftContainer.style.cssText=`top: ${-t}px`}function Vb(n,e,t,r,d){let p={};if(e===kn.DIFF_INSERT){let g=qb(n.editors.left,t,d),b=Kb(n.editors.right,r),h=hl(n.editors.right,b);const f=hl(n.editors.left,g.startLine);let s=b,a=g.startLine===g.endLine,u=0;(g.startChar>0||a&&d.length<f)&&h>0&&g.startChar<f&&u++,p={leftStartLine:g.startLine,leftEndLine:g.endLine+1,rightStartLine:s,rightEndLine:s+u}}else{let g=qb(n.editors.right,r,d),b=Kb(n.editors.left,t),h=hl(n.editors.left,b);const f=hl(n.editors.right,g.startLine);let s=b,a=g.startLine===g.endLine,u=0;(g.startChar>0||a&&d.length<f)&&h>0&&g.startChar<f&&u++,p={leftStartLine:s,leftEndLine:s+u,rightStartLine:g.startLine,rightEndLine:g.endLine+1}}return p}function qb(n,e,t){const r={startLine:0,startChar:0,endLine:0,endChar:0},d=e+t.length;let p=0,g=!1,b=!1;n.lineLengths.forEach((f,s)=>{p+=f,!g&&e<p&&(r.startLine=s,r.startChar=e-p+f,g=!0),!b&&d<=p&&(r.endLine=s,r.endChar=d-p+f,b=!0)}),r.startChar>0&&hl(n,r.startLine)===r.startChar&&(r.startLine++,r.startChar=0),r.endChar===0&&r.endLine--;const h=/\n$/.test(t);return r.startChar>0&&h&&r.endLine++,r}function hl(n,e){return Fb(n,e).length}function Kb(n,e){const t=n.ace.getSession().doc.getAllLines();let r=0,d=0;for(let p=0;p<t.length;p+=1)if(d+=t[p].length+1,e<=d){r=p,e===d&&p<t.length-1&&(r+=1);break}return d>=n.ace.getSession().getValue().length&&(r+=1),r}function Gb(n){n.gutterHeight=document.getElementById(n.options.classes.gutterID).clientHeight,n.gutterWidth=document.getElementById(n.options.classes.gutterID).clientWidth;const e=Yb(n,kn.EDITOR_LEFT),t=Yb(n,kn.EDITOR_RIGHT),r=Math.max(e,t,n.gutterHeight);n.gutterSVG=document.createElementNS(kn.SVG_NS,"svg"),n.gutterSVG.setAttribute("width",n.gutterWidth),n.gutterSVG.setAttribute("height",r),document.getElementById(n.options.classes.gutterID).appendChild(n.gutterSVG)}function Yb(n,e){return(e===kn.EDITOR_LEFT?n.editors.left:n.editors.right).ace.getSession().getLength()*n.lineHeight}function OI(n){n.copyRightContainer=document.createElement("div"),n.copyRightContainer.setAttribute("class",n.options.classes.copyRightContainer),n.copyLeftContainer=document.createElement("div"),n.copyLeftContainer.setAttribute("class",n.options.classes.copyLeftContainer),document.getElementById(n.options.classes.gutterID).appendChild(n.copyRightContainer),document.getElementById(n.options.classes.gutterID).appendChild(n.copyLeftContainer)}function NI(n){document.getElementById(n.options.classes.gutterID).removeChild(n.gutterSVG),Gb(n)}function DI(n){n.copyLeftContainer.innerHTML="",n.copyRightContainer.innerHTML=""}function FI(n,e){const t=[];function r(p){return n.options.diffGranularity===kn.DIFF_GRANULARITY_SPECIFIC?p<1:p<=1}e.forEach((p,g)=>{if(g===0){t.push(p);return}let b=!1;for(let h=0;h<t.length;h+=1)if(r(Math.abs(p.leftStartLine-t[h].leftEndLine))&&r(Math.abs(p.rightStartLine-t[h].rightEndLine))){t[h].leftStartLine=Math.min(p.leftStartLine,t[h].leftStartLine),t[h].rightStartLine=Math.min(p.rightStartLine,t[h].rightStartLine),t[h].leftEndLine=Math.max(p.leftEndLine,t[h].leftEndLine),t[h].rightEndLine=Math.max(p.rightEndLine,t[h].rightEndLine),b=!0;break}b||t.push(p)});const d=[];return t.forEach(p=>{p.leftStartLine===p.leftEndLine&&p.rightStartLine===p.rightEndLine||d.push(p)}),d}function Xb(n){NI(n),DI(n),n.diffs.forEach((e,t)=>{n.options.showDiffs&&(zb(n,kn.EDITOR_LEFT,e.leftStartLine,e.leftEndLine,n.options.classes.diff),zb(n,kn.EDITOR_RIGHT,e.rightStartLine,e.rightEndLine,n.options.classes.diff),n.options.showConnectors&&II(n,e.leftStartLine,e.leftEndLine,e.rightStartLine,e.rightEndLine),RI(n,e,t))},n)}const PI={props:{pluginName:{type:String,required:!0},variables:{type:Object,required:!0},pluginTxt:{type:String,required:!0},existingPluginTxt:{type:String,required:!1,default:null},storeId:{type:Number,required:!1,default:null},modelValue:Boolean},emits:["callback","update:modelValue"],data(){return{tab:0,localVariables:[],localPluginTxt:"",localExistingPluginTxt:null,editor:null,differ:null,contextMenu:!1,menuX:0,menuY:0}},computed:{show:{get(){return this.modelValue},set(n){this.$emit("update:modelValue",n)}}},watch:{value:{immediate:!0,handler:function(){this.localVariables=JSON.parse(JSON.stringify(this.variables)),this.localPluginTxt=this.pluginTxt.slice(),this.existingPluginTxt!==null&&(this.localExistingPluginTxt=this.existingPluginTxt.slice())}}},mounted(){const n=this.buildPluginMode();this.existingPluginTxt===null?(this.editor=_s.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight"),this.editor.session.setMode(new n),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.localPluginTxt),this.editor.clearSelection(),vc.applyVimModeIfEnabled(this.editor),this.editor.focus()):(this.tab=1,this.differ=new Pc({element:this.$refs.editor,mode:new n,theme:"ace/theme/twilight",left:{content:this.localExistingPluginTxt,copyLinkEnabled:!1},right:{content:this.localPluginTxt,editable:!1}}),this.differ.getEditors().left.setFontSize(16),this.differ.getEditors().right.setFontSize(16),vc.applyVimModeIfEnabled(this.differ.getEditors().left),vc.applyVimModeIfEnabled(this.differ.getEditors().right),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},methods:{previousDiff(){this.curDiff--,this.curDiff<0&&(this.curDiff=this.differ.diffs.length-1),this.scrollToCurDiff()},nextDiff(){this.curDiff++,this.curDiff>=this.differ.diffs.length&&(this.curDiff=0),this.scrollToCurDiff()},scrollToCurDiff(){if(this.differ.diffs.length===0)return;let n=this.differ.diffs[this.curDiff].leftStartLine,e=this.differ.diffs[this.curDiff].rightStartLine;n>5&&(n-=5),e>5&&(e-=5),this.differ.getEditors().left.scrollToLine(n),this.differ.getEditors().right.scrollToLine(e)},buildPluginMode(){let n=_s.require("ace/lib/oop"),e=_s.require("ace/mode/ruby_highlight_rules").RubyHighlightRules,t=["VARIABLE"],r=new RegExp(`(\\b${t.join("\\b|\\b")}\\b)`),d=function(){e.call(this);for(let s in this.$rules)this.$rules[s].unshift({regex:r,token:"support.function"})};n.inherits(d,e);let p=_s.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent,g=_s.require("ace/mode/behaviour/cstyle").CstyleBehaviour,b=_s.require("ace/mode/folding/ruby").FoldMode,h=function(){this.HighlightRules=d,this.$outdent=new p,this.$behaviour=new g,this.foldingRules=new b,this.indentKeywords=this.foldingRules.indentKeywords},f=_s.require("ace/mode/ruby").Mode;return n.inherits(h,f),(function(){this.$id="ace/mode/openc3"}).call(h.prototype),h},submit:function(){this.existingPluginTxt===null?this.emitSubmit(this.editor.getValue().split(`
|
|
1499
1499
|
`)):this.differ.diffs.length===0?this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
|
1500
1500
|
`)):this.$dialog.confirm("Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",{okText:"Install",cancelText:"Cancel"}).then(n=>{this.emitSubmit(this.differ.getEditors().left.getValue().split(`
|
|
1501
|
-
`))}).catch(n=>{})},emitSubmit(n){let e={name:this.pluginName,variables:Yp(this.localVariables),plugin_txt_lines:n,store_id:this.storeId};this.$emit("callback",e)},close:function(){this.show=!this.show},showContextMenu:function(n){this.menuX=n.pageX,this.menuY=n.pageY;let e=this.editor.getCursorPosition(),t=this.editor.session.getTokenAt(e.row,e.column);if(t){let r=t.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){this.editor&&vc.toggleVimMode(this.editor)}}},WI={style:{flex:"1"}},BI={class:"pa-3"},HI={ref:"editor",class:"editor"},zI={key:0};function jI(n,e,t,r,d,p){const g=Ue("v-card-title"),b=Ue("v-icon"),h=Ue("v-row"),f=Ue("v-tab"),s=Ue("v-tabs"),a=Ue("v-text-field"),u=Ue("v-col"),c=Ue("v-window-item"),i=Ue("v-list-item-title"),l=Ue("v-list-item"),m=Ue("v-divider"),w=Ue("v-list"),x=Ue("v-menu"),M=Ue("v-window"),_=Ue("v-btn"),k=Ue("v-spacer"),C=Ue("v-card-actions"),L=Ue("v-card-text"),D=Ue("v-card"),R=Ue("v-dialog");return ot(),jt(R,{modelValue:p.show,"onUpdate:modelValue":e[5]||(e[5]=I=>p.show=I),persistent:"",width:"80vw",onKeydown:Ol(p.close,["esc"])},{default:Pe(()=>[je(D,null,{default:Pe(()=>[je(L,null,{default:Pe(()=>[je(g,null,{default:Pe(()=>[Rt(Cn(t.pluginName),1)]),_:1}),t.existingPluginTxt!==null?(ot(),jt(h,{key:0,class:"notice d-flex flex-row"},{default:Pe(()=>[je(b,{size:"x-large",start:"",color:"yellow"},{default:Pe(()=>[...e[6]||(e[6]=[Rt(" mdi-alert-box ",-1)])]),_:1}),Fn("div",WI," The existing plugin.txt is different from the "+Cn(t.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+Cn(t.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):Kr("",!0),je(h,{class:"pb-3 pr-3"},{default:Pe(()=>[je(s,{modelValue:d.tab,"onUpdate:modelValue":e[0]||(e[0]=I=>d.tab=I),class:"ml-3"},{default:Pe(()=>[(ot(),jt(f,{key:0},{default:Pe(()=>[...e[7]||(e[7]=[Rt(" Variables ",-1)])]),_:1})),(ot(),jt(f,{key:1},{default:Pe(()=>[...e[8]||(e[8]=[Rt(" plugin.txt ",-1)])]),_:1}))]),_:1},8,["modelValue"])]),_:1}),Fn("form",{onSubmit:e[4]||(e[4]=Wa((...I)=>n.onSubmit&&n.onSubmit(...I),["prevent"]))},[je(M,{modelValue:d.tab,"onUpdate:modelValue":e[3]||(e[3]=I=>d.tab=I)},{default:Pe(()=>[(ot(),jt(c,{key:0,eager:"true",class:"tab"},{default:Pe(()=>[Fn("div",BI,[je(h,{class:"mt-3"},{default:Pe(()=>[(ot(!0),rn(ci,null,vo(d.localVariables,(I,H)=>(ot(),rn("div",{key:H},[je(u,{style:{width:"220px"}},{default:Pe(()=>[je(a,{modelValue:d.localVariables[H],"onUpdate:modelValue":P=>d.localVariables[H]=P,clearable:"",type:"text",label:H},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),t.existingPluginTxt===null?(ot(),jt(c,{key:"1-new",eager:"true",class:"tab"},{default:Pe(()=>[je(h,{class:"pa-3"},{default:Pe(()=>[je(u,null,{default:Pe(()=>[...e[9]||(e[9]=[Rt(" This can be edited before installation. ",-1)])]),_:1})]),_:1}),Fn("pre",{ref:"editor",class:"editor",onContextmenu:e[1]||(e[1]=Wa((...I)=>p.showContextMenu&&p.showContextMenu(...I),["prevent"]))},null,544),je(x,{modelValue:d.contextMenu,"onUpdate:modelValue":e[2]||(e[2]=I=>d.contextMenu=I),target:[d.menuX,d.menuY]},{default:Pe(()=>[je(w,null,{default:Pe(()=>[je(l,{link:""},{default:Pe(()=>[je(i,{onClick:n.openDocumentation},{default:Pe(()=>[Rt(Cn(n.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1}),je(m),je(l,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:p.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1})):(ot(),jt(c,{key:"1-existing",eager:"true",class:"tab"},{default:Pe(()=>[je(h,{class:"pa-3"},{default:Pe(()=>[je(u,null,{default:Pe(()=>[...e[10]||(e[10]=[Rt(" Existing plugin.txt. This can be edited before installation. ",-1)])]),_:1}),je(u,{class:"ml-6"},{default:Pe(()=>[...e[11]||(e[11]=[Rt(" Uneditable plugin.txt from the new plugin. ",-1)])]),_:1})]),_:1}),Fn("pre",HI,null,512)]),_:1}))]),_:1},8,["modelValue"]),je(C,{class:"px-2 mt-2"},{default:Pe(()=>[t.existingPluginTxt!==null?(ot(),rn("div",zI,[je(_,{variant:"text",onClick:p.nextDiff},{default:Pe(()=>[...e[12]||(e[12]=[Rt(" Next Diff ",-1)])]),_:1},8,["onClick"]),je(_,{variant:"text",onClick:p.previousDiff},{default:Pe(()=>[...e[13]||(e[13]=[Rt(" Previous Diff ",-1)])]),_:1},8,["onClick"])])):Kr("",!0),je(k),je(_,{variant:"outlined","data-test":"edit-cancel",onClick:Wa(p.close,["prevent"])},{default:Pe(()=>[...e[14]||(e[14]=[Rt(" Cancel ",-1)])]),_:1},8,["onClick"]),je(_,{variant:"flat","data-test":"edit-submit",onClick:p.submit},{default:Pe(()=>[...e[15]||(e[15]=[Rt(" Install ",-1)])]),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])}const RP=pr("Y",to(PI,[["render",jI],["__scopeId","data-v-3b685c50"]])),UI=Od.find(n=>n.name==="PluginsTab"),Zb=[{path:"/",component:sI,children:[{component:UI.component,path:""},...Od]},{path:"/:pathMatch(.*)*",name:"NotFound",component:GE}];Zb.forEach(df);const VI=af({history:lf(),routes:Zb});/*! @license DOMPurify 3.3.0 | (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.0/LICENSE */const{entries:Qb,setPrototypeOf:Jb,isFrozen:qI,getPrototypeOf:KI,getOwnPropertyDescriptor:GI}=Object;let{freeze:Xr,seal:ji,create:Bd}=Object,{apply:Hd,construct:zd}=typeof Reflect<"u"&&Reflect;Xr||(Xr=function(n){return n}),ji||(ji=function(n){return n}),Hd||(Hd=function(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),d=2;d<t;d++)r[d-2]=arguments[d];return n.apply(e,r)}),zd||(zd=function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return new n(...t)});const Wc=Qr(Array.prototype.forEach),YI=Qr(Array.prototype.lastIndexOf),e0=Qr(Array.prototype.pop),dl=Qr(Array.prototype.push),XI=Qr(Array.prototype.splice),Bc=Qr(String.prototype.toLowerCase),jd=Qr(String.prototype.toString),Ud=Qr(String.prototype.match),pl=Qr(String.prototype.replace),ZI=Qr(String.prototype.indexOf),QI=Qr(String.prototype.trim),lo=Qr(Object.prototype.hasOwnProperty),Zr=Qr(RegExp.prototype.test),fl=JI(TypeError);function Qr(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),d=1;d<t;d++)r[d-1]=arguments[d];return Hd(n,e,r)}}function JI(n){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return zd(n,t)}}function Bt(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bc;Jb&&Jb(n,null);let r=e.length;for(;r--;){let d=e[r];if(typeof d=="string"){const p=t(d);p!==d&&(qI(e)||(e[r]=p),d=p)}n[d]=!0}return n}function eR(n){for(let e=0;e<n.length;e++)lo(n,e)||(n[e]=null);return n}function Oo(n){const e=Bd(null);for(const[t,r]of Qb(n))lo(n,t)&&(Array.isArray(r)?e[t]=eR(r):r&&typeof r=="object"&&r.constructor===Object?e[t]=Oo(r):e[t]=r);return e}function gl(n,e){for(;n!==null;){const r=GI(n,e);if(r){if(r.get)return Qr(r.get);if(typeof r.value=="function")return Qr(r.value)}n=KI(n)}function t(){return null}return t}const t0=Xr(["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"]),Vd=Xr(["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"]),qd=Xr(["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"]),tR=Xr(["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"]),Kd=Xr(["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"]),nR=Xr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),n0=Xr(["#text"]),r0=Xr(["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"]),Gd=Xr(["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"]),i0=Xr(["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"]),Hc=Xr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rR=ji(/\{\{[\w\W]*|[\w\W]*\}\}/gm),iR=ji(/<%[\w\W]*|[\w\W]*%>/gm),oR=ji(/\$\{[\w\W]*/gm),sR=ji(/^data-[\-\w.\u00B7-\uFFFF]+$/),aR=ji(/^aria-[\-\w]+$/),o0=ji(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lR=ji(/^(?:\w+script|data):/i),cR=ji(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),s0=ji(/^html$/i),uR=ji(/^[a-z][.\w]*(-[.\w]+)+$/i);var a0=Object.freeze({__proto__:null,ARIA_ATTR:aR,ATTR_WHITESPACE:cR,CUSTOM_ELEMENT:uR,DATA_ATTR:sR,DOCTYPE_NAME:s0,ERB_EXPR:iR,IS_ALLOWED_URI:o0,IS_SCRIPT_OR_DATA:lR,MUSTACHE_EXPR:rR,TMPLIT_EXPR:oR});const ml={element:1,text:3,progressingInstruction:7,comment:8,document:9},hR=function(){return typeof window>"u"?null:window},dR=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let t=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(t=e.getAttribute(r));const d="dompurify"+(t?"#"+t:"");try{return n.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},l0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hR();const e=ce=>c0(ce);if(e.version="3.3.0",e.removed=[],!n||!n.document||n.document.nodeType!==ml.document||!n.Element)return e.isSupported=!1,e;let{document:t}=n;const r=t,d=r.currentScript,{DocumentFragment:p,HTMLTemplateElement:g,Node:b,Element:h,NodeFilter:f,NamedNodeMap:s=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:a,DOMParser:u,trustedTypes:c}=n,i=h.prototype,l=gl(i,"cloneNode"),m=gl(i,"remove"),w=gl(i,"nextSibling"),x=gl(i,"childNodes"),M=gl(i,"parentNode");if(typeof g=="function"){const ce=t.createElement("template");ce.content&&ce.content.ownerDocument&&(t=ce.content.ownerDocument)}let _,k="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:R}=t,{importNode:I}=r;let H=l0();e.isSupported=typeof Qb=="function"&&typeof M=="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}=a0;let{IS_ALLOWED_URI:Q}=a0,J=null;const he=Bt({},[...t0,...Vd,...qd,...Kd,...n0]);let ne=null;const le=Bt({},[...r0,...Gd,...i0,...Hc]);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,Je=!1,Xe=!0,ht=!1,st=!0,dt=!1,Qt=!1,$n=!1,Ht=!1,kr=!1,fn=!1,Wn=!0,ir=!1;const Or="user-content-";let bt=!0,qe=!1,Nt={},tn=null;const Bn=Bt({},["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 Ar=null;const vr=Bt({},["audio","video","img","source","image","track"]);let bn=null;const qn=Bt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Hn="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml";let Hr=dn,Jr=!1,ei=null;const Ii=Bt({},[Hn,Xt,dn],jd);let gi=Bt({},["mi","mo","mn","ms","mtext"]),Kn=Bt({},["annotation-xml"]);const co=Bt({},["title","style","font","a","script"]);let mi=null;const zs=["application/xhtml+xml","text/html"],ti="text/html";let Rn=null,vi=null;const os=t.createElement("form"),yi=function(ce){return ce instanceof RegExp||ce instanceof Function},Tn=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vi&&vi===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=Oo(ce),mi=zs.indexOf(ce.PARSER_MEDIA_TYPE)===-1?ti:ce.PARSER_MEDIA_TYPE,Rn=mi==="application/xhtml+xml"?jd:Bc,J=lo(ce,"ALLOWED_TAGS")?Bt({},ce.ALLOWED_TAGS,Rn):he,ne=lo(ce,"ALLOWED_ATTR")?Bt({},ce.ALLOWED_ATTR,Rn):le,ei=lo(ce,"ALLOWED_NAMESPACES")?Bt({},ce.ALLOWED_NAMESPACES,jd):Ii,bn=lo(ce,"ADD_URI_SAFE_ATTR")?Bt(Oo(qn),ce.ADD_URI_SAFE_ATTR,Rn):qn,Ar=lo(ce,"ADD_DATA_URI_TAGS")?Bt(Oo(vr),ce.ADD_DATA_URI_TAGS,Rn):vr,tn=lo(ce,"FORBID_CONTENTS")?Bt({},ce.FORBID_CONTENTS,Rn):Bn,de=lo(ce,"FORBID_TAGS")?Bt({},ce.FORBID_TAGS,Rn):Oo({}),me=lo(ce,"FORBID_ATTR")?Bt({},ce.FORBID_ATTR,Rn):Oo({}),Nt=lo(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Te=ce.ALLOW_ARIA_ATTR!==!1,Me=ce.ALLOW_DATA_ATTR!==!1,Je=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ht=ce.SAFE_FOR_TEMPLATES||!1,st=ce.SAFE_FOR_XML!==!1,dt=ce.WHOLE_DOCUMENT||!1,Ht=ce.RETURN_DOM||!1,kr=ce.RETURN_DOM_FRAGMENT||!1,fn=ce.RETURN_TRUSTED_TYPE||!1,$n=ce.FORCE_BODY||!1,Wn=ce.SANITIZE_DOM!==!1,ir=ce.SANITIZE_NAMED_PROPS||!1,bt=ce.KEEP_CONTENT!==!1,qe=ce.IN_PLACE||!1,Q=ce.ALLOWED_URI_REGEXP||o0,Hr=ce.NAMESPACE||dn,gi=ce.MATHML_TEXT_INTEGRATION_POINTS||gi,Kn=ce.HTML_INTEGRATION_POINTS||Kn,se=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&yi(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&yi(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),ht&&(Me=!1),kr&&(Ht=!0),Nt&&(J=Bt({},n0),ne=[],Nt.html===!0&&(Bt(J,t0),Bt(ne,r0)),Nt.svg===!0&&(Bt(J,Vd),Bt(ne,Gd),Bt(ne,Hc)),Nt.svgFilters===!0&&(Bt(J,qd),Bt(ne,Gd),Bt(ne,Hc)),Nt.mathMl===!0&&(Bt(J,Kd),Bt(ne,i0),Bt(ne,Hc))),ce.ADD_TAGS&&(typeof ce.ADD_TAGS=="function"?_e.tagCheck=ce.ADD_TAGS:(J===he&&(J=Oo(J)),Bt(J,ce.ADD_TAGS,Rn))),ce.ADD_ATTR&&(typeof ce.ADD_ATTR=="function"?_e.attributeCheck=ce.ADD_ATTR:(ne===le&&(ne=Oo(ne)),Bt(ne,ce.ADD_ATTR,Rn))),ce.ADD_URI_SAFE_ATTR&&Bt(bn,ce.ADD_URI_SAFE_ATTR,Rn),ce.FORBID_CONTENTS&&(tn===Bn&&(tn=Oo(tn)),Bt(tn,ce.FORBID_CONTENTS,Rn)),bt&&(J["#text"]=!0),dt&&Bt(J,["html","head","body"]),J.table&&(Bt(J,["tbody"]),delete de.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw fl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=ce.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=dR(c,d)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));Xr&&Xr(ce),vi=ce}},yr=Bt({},[...Vd,...qd,...tR]),bi=Bt({},[...Kd,...nR]),Mn=function(ce){let ze=M(ce);(!ze||!ze.tagName)&&(ze={namespaceURI:Hr,tagName:"template"});const Fe=Bc(ce.tagName),Tt=Bc(ze.tagName);return ei[ce.namespaceURI]?ce.namespaceURI===Xt?ze.namespaceURI===dn?Fe==="svg":ze.namespaceURI===Hn?Fe==="svg"&&(Tt==="annotation-xml"||gi[Tt]):!!yr[Fe]:ce.namespaceURI===Hn?ze.namespaceURI===dn?Fe==="math":ze.namespaceURI===Xt?Fe==="math"&&Kn[Tt]:!!bi[Fe]:ce.namespaceURI===dn?ze.namespaceURI===Xt&&!Kn[Tt]||ze.namespaceURI===Hn&&!gi[Tt]?!1:!bi[Fe]&&(co[Fe]||!yr[Fe]):!!(mi==="application/xhtml+xml"&&ei[ce.namespaceURI]):!1},Ln=function(ce){dl(e.removed,{element:ce});try{M(ce).removeChild(ce)}catch{m(ce)}},Sr=function(ce,ze){try{dl(e.removed,{attribute:ze.getAttributeNode(ce),from:ze})}catch{dl(e.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ce),ce==="is")if(Ht||kr)try{Ln(ze)}catch{}else try{ze.setAttribute(ce,"")}catch{}},wi=function(ce){let ze=null,Fe=null;if($n)ce="<remove></remove>"+ce;else{const Vt=Ud(ce,/^[\r\n\t ]+/);Fe=Vt&&Vt[0]}mi==="application/xhtml+xml"&&Hr===dn&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const Tt=_?_.createHTML(ce):ce;if(Hr===dn)try{ze=new u().parseFromString(Tt,mi)}catch{}if(!ze||!ze.documentElement){ze=C.createDocument(Hr,"template",null);try{ze.documentElement.innerHTML=Jr?k:Tt}catch{}}const Zt=ze.body||ze.documentElement;return ce&&Fe&&Zt.insertBefore(t.createTextNode(Fe),Zt.childNodes[0]||null),Hr===dn?R.call(ze,dt?"html":"body")[0]:dt?ze.documentElement:Zt},ko=function(ce){return L.call(ce.ownerDocument||ce,ce,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Ao=function(ce){return ce instanceof a&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof s)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},ss=function(ce){return typeof b=="function"&&ce instanceof b};function ni(ce,ze,Fe){Wc(ce,Tt=>{Tt.call(e,ze,Fe,vi)})}const xi=function(ce){let ze=null;if(ni(H.beforeSanitizeElements,ce,null),Ao(ce))return Ln(ce),!0;const Fe=Rn(ce.nodeName);if(ni(H.uponSanitizeElement,ce,{tagName:Fe,allowedTags:J}),st&&ce.hasChildNodes()&&!ss(ce.firstElementChild)&&Zr(/<[/\w!]/g,ce.innerHTML)&&Zr(/<[/\w!]/g,ce.textContent)||ce.nodeType===ml.progressingInstruction||st&&ce.nodeType===ml.comment&&Zr(/<[/\w]/g,ce.data))return Ln(ce),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(Fe))&&(!J[Fe]||de[Fe])){if(!de[Fe]&&Dt(Fe)&&(se.tagNameCheck instanceof RegExp&&Zr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe)))return!1;if(bt&&!tn[Fe]){const Tt=M(ce)||ce.parentNode,Zt=x(ce)||ce.childNodes;if(Zt&&Tt){const Vt=Zt.length;for(let $r=Vt-1;$r>=0;--$r){const br=l(Zt[$r],!0);br.__removalCount=(ce.__removalCount||0)+1,Tt.insertBefore(br,w(ce))}}}return Ln(ce),!0}return ce instanceof h&&!Mn(ce)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&Zr(/<\/no(script|embed|frames)/i,ce.innerHTML)?(Ln(ce),!0):(ht&&ce.nodeType===ml.text&&(ze=ce.textContent,Wc([P,O,$],Tt=>{ze=pl(ze,Tt," ")}),ce.textContent!==ze&&(dl(e.removed,{element:ce.cloneNode()}),ce.textContent=ze)),ni(H.afterSanitizeElements,ce,null),!1)},zr=function(ce,ze,Fe){if(Wn&&(ze==="id"||ze==="name")&&(Fe in t||Fe in os))return!1;if(!(Me&&!me[ze]&&Zr(A,ze))&&!(Te&&Zr(N,ze))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(ze,ce))){if(!ne[ze]||me[ze]){if(!(Dt(ce)&&(se.tagNameCheck instanceof RegExp&&Zr(se.tagNameCheck,ce)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ce))&&(se.attributeNameCheck instanceof RegExp&&Zr(se.attributeNameCheck,ze)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(ze,ce))||ze==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Zr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe))))return!1}else if(!bn[ze]&&!Zr(Q,pl(Fe,U,""))&&!((ze==="src"||ze==="xlink:href"||ze==="href")&&ce!=="script"&&ZI(Fe,"data:")===0&&Ar[ce])&&!(Je&&!Zr(B,pl(Fe,U,"")))&&Fe)return!1}return!0},Dt=function(ce){return ce!=="annotation-xml"&&Ud(ce,K)},No=function(ce){ni(H.beforeSanitizeAttributes,ce,null);const{attributes:ze}=ce;if(!ze||Ao(ce))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let Tt=ze.length;for(;Tt--;){const Zt=ze[Tt],{name:Vt,namespaceURI:$r,value:br}=Zt,Gn=Rn(Vt),Tr=br;let wn=Vt==="value"?Tr:QI(Tr);if(Fe.attrName=Gn,Fe.attrValue=wn,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,ni(H.uponSanitizeAttribute,ce,Fe),wn=Fe.attrValue,ir&&(Gn==="id"||Gn==="name")&&(Sr(Vt,ce),wn=Or+wn),st&&Zr(/((--!?|])>)|<\/(style|title|textarea)/i,wn)){Sr(Vt,ce);continue}if(Gn==="attributename"&&Ud(wn,"href")){Sr(Vt,ce);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){Sr(Vt,ce);continue}if(!Xe&&Zr(/\/>/i,wn)){Sr(Vt,ce);continue}ht&&Wc([P,O,$],jr=>{wn=pl(wn,jr," ")});const uo=Rn(ce.nodeName);if(!zr(uo,Gn,wn)){Sr(Vt,ce);continue}if(_&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!$r)switch(c.getAttributeType(uo,Gn)){case"TrustedHTML":{wn=_.createHTML(wn);break}case"TrustedScriptURL":{wn=_.createScriptURL(wn);break}}if(wn!==Tr)try{$r?ce.setAttributeNS($r,Vt,wn):ce.setAttribute(Vt,wn),Ao(ce)?Ln(ce):e0(e.removed)}catch{Sr(Vt,ce)}}ni(H.afterSanitizeAttributes,ce,null)},_r=function ce(ze){let Fe=null;const Tt=ko(ze);for(ni(H.beforeSanitizeShadowDOM,ze,null);Fe=Tt.nextNode();)ni(H.uponSanitizeShadowNode,Fe,null),xi(Fe),No(Fe),Fe.content instanceof p&&ce(Fe.content);ni(H.afterSanitizeShadowDOM,ze,null)};return e.sanitize=function(ce){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,Tt=null,Zt=null,Vt=null;if(Jr=!ce,Jr&&(ce="<!-->"),typeof ce!="string"&&!ss(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw fl("dirty is not a string, aborting")}else throw fl("toString is not a function");if(!e.isSupported)return ce;if(Qt||Tn(ze),e.removed=[],typeof ce=="string"&&(qe=!1),qe){if(ce.nodeName){const Gn=Rn(ce.nodeName);if(!J[Gn]||de[Gn])throw fl("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof b)Fe=wi("<!---->"),Tt=Fe.ownerDocument.importNode(ce,!0),Tt.nodeType===ml.element&&Tt.nodeName==="BODY"||Tt.nodeName==="HTML"?Fe=Tt:Fe.appendChild(Tt);else{if(!Ht&&!ht&&!dt&&ce.indexOf("<")===-1)return _&&fn?_.createHTML(ce):ce;if(Fe=wi(ce),!Fe)return Ht?null:fn?k:""}Fe&&$n&&Ln(Fe.firstChild);const $r=ko(qe?ce:Fe);for(;Zt=$r.nextNode();)xi(Zt),No(Zt),Zt.content instanceof p&&_r(Zt.content);if(qe)return ce;if(Ht){if(kr)for(Vt=D.call(Fe.ownerDocument);Fe.firstChild;)Vt.appendChild(Fe.firstChild);else Vt=Fe;return(ne.shadowroot||ne.shadowrootmode)&&(Vt=I.call(r,Vt,!0)),Vt}let br=dt?Fe.outerHTML:Fe.innerHTML;return dt&&J["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Zr(s0,Fe.ownerDocument.doctype.name)&&(br="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
|
|
1502
|
-
`+br),ht&&Wc([P,O,$],Gn=>{br=pl(br,Gn," ")}),_&&fn?_.createHTML(br):br},e.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};
|
|
1501
|
+
`))}).catch(n=>{})},emitSubmit(n){let e={name:this.pluginName,variables:Yp(this.localVariables),plugin_txt_lines:n,store_id:this.storeId};this.$emit("callback",e)},close:function(){this.show=!this.show},showContextMenu:function(n){this.menuX=n.pageX,this.menuY=n.pageY;let e=this.editor.getCursorPosition(),t=this.editor.session.getTokenAt(e.row,e.column);if(t){let r=t.value.trim();r.includes(" ")?this.docsKeyword=r.split(" ")[0]:this.docsKeyword=r,this.contextMenu=!0}},toggleVimMode:function(){this.editor&&vc.toggleVimMode(this.editor)}}},WI={style:{flex:"1"}},BI={class:"pa-3"},HI={ref:"editor",class:"editor"},zI={key:0};function jI(n,e,t,r,d,p){const g=Ue("v-card-title"),b=Ue("v-icon"),h=Ue("v-row"),f=Ue("v-tab"),s=Ue("v-tabs"),a=Ue("v-text-field"),u=Ue("v-col"),c=Ue("v-window-item"),i=Ue("v-list-item-title"),l=Ue("v-list-item"),m=Ue("v-divider"),w=Ue("v-list"),x=Ue("v-menu"),M=Ue("v-window"),_=Ue("v-btn"),k=Ue("v-spacer"),C=Ue("v-card-actions"),L=Ue("v-card-text"),D=Ue("v-card"),R=Ue("v-dialog");return ot(),jt(R,{modelValue:p.show,"onUpdate:modelValue":e[5]||(e[5]=I=>p.show=I),persistent:"",width:"80vw",onKeydown:Ol(p.close,["esc"])},{default:Pe(()=>[je(D,null,{default:Pe(()=>[je(L,null,{default:Pe(()=>[je(g,null,{default:Pe(()=>[Rt(Cn(t.pluginName),1)]),_:1}),t.existingPluginTxt!==null?(ot(),jt(h,{key:0,class:"notice d-flex flex-row"},{default:Pe(()=>[je(b,{size:"x-large",start:"",color:"yellow"},{default:Pe(()=>[...e[6]||(e[6]=[Rt(" mdi-alert-box ",-1)])]),_:1}),Pn("div",WI," The existing plugin.txt is different from the "+Cn(t.pluginName)+"'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update "+Cn(t.pluginName)+"'s plugin.txt going forward. ",1)]),_:1})):Kr("",!0),je(h,{class:"pb-3 pr-3"},{default:Pe(()=>[je(s,{modelValue:d.tab,"onUpdate:modelValue":e[0]||(e[0]=I=>d.tab=I),class:"ml-3"},{default:Pe(()=>[(ot(),jt(f,{key:0},{default:Pe(()=>[...e[7]||(e[7]=[Rt(" Variables ",-1)])]),_:1})),(ot(),jt(f,{key:1},{default:Pe(()=>[...e[8]||(e[8]=[Rt(" plugin.txt ",-1)])]),_:1}))]),_:1},8,["modelValue"])]),_:1}),Pn("form",{onSubmit:e[4]||(e[4]=Wa((...I)=>n.onSubmit&&n.onSubmit(...I),["prevent"]))},[je(M,{modelValue:d.tab,"onUpdate:modelValue":e[3]||(e[3]=I=>d.tab=I)},{default:Pe(()=>[(ot(),jt(c,{key:0,eager:"true",class:"tab"},{default:Pe(()=>[Pn("div",BI,[je(h,{class:"mt-3"},{default:Pe(()=>[(ot(!0),rn(ci,null,vo(d.localVariables,(I,H)=>(ot(),rn("div",{key:H},[je(u,{style:{width:"220px"}},{default:Pe(()=>[je(a,{modelValue:d.localVariables[H],"onUpdate:modelValue":P=>d.localVariables[H]=P,clearable:"",type:"text",label:H},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)]))),128))]),_:1})])]),_:1})),t.existingPluginTxt===null?(ot(),jt(c,{key:"1-new",eager:"true",class:"tab"},{default:Pe(()=>[je(h,{class:"pa-3"},{default:Pe(()=>[je(u,null,{default:Pe(()=>[...e[9]||(e[9]=[Rt(" This can be edited before installation. ",-1)])]),_:1})]),_:1}),Pn("pre",{ref:"editor",class:"editor",onContextmenu:e[1]||(e[1]=Wa((...I)=>p.showContextMenu&&p.showContextMenu(...I),["prevent"]))},null,544),je(x,{modelValue:d.contextMenu,"onUpdate:modelValue":e[2]||(e[2]=I=>d.contextMenu=I),target:[d.menuX,d.menuY]},{default:Pe(()=>[je(w,null,{default:Pe(()=>[je(l,{link:""},{default:Pe(()=>[je(i,{onClick:n.openDocumentation},{default:Pe(()=>[Rt(Cn(n.docsKeyword)+" documentation ",1)]),_:1},8,["onClick"])]),_:1}),je(m),je(l,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:p.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1})):(ot(),jt(c,{key:"1-existing",eager:"true",class:"tab"},{default:Pe(()=>[je(h,{class:"pa-3"},{default:Pe(()=>[je(u,null,{default:Pe(()=>[...e[10]||(e[10]=[Rt(" Existing plugin.txt. This can be edited before installation. ",-1)])]),_:1}),je(u,{class:"ml-6"},{default:Pe(()=>[...e[11]||(e[11]=[Rt(" Uneditable plugin.txt from the new plugin. ",-1)])]),_:1})]),_:1}),Pn("pre",HI,null,512)]),_:1}))]),_:1},8,["modelValue"]),je(C,{class:"px-2 mt-2"},{default:Pe(()=>[t.existingPluginTxt!==null?(ot(),rn("div",zI,[je(_,{variant:"text",onClick:p.nextDiff},{default:Pe(()=>[...e[12]||(e[12]=[Rt(" Next Diff ",-1)])]),_:1},8,["onClick"]),je(_,{variant:"text",onClick:p.previousDiff},{default:Pe(()=>[...e[13]||(e[13]=[Rt(" Previous Diff ",-1)])]),_:1},8,["onClick"])])):Kr("",!0),je(k),je(_,{variant:"outlined","data-test":"edit-cancel",onClick:Wa(p.close,["prevent"])},{default:Pe(()=>[...e[14]||(e[14]=[Rt(" Cancel ",-1)])]),_:1},8,["onClick"]),je(_,{variant:"flat","data-test":"edit-submit",onClick:p.submit},{default:Pe(()=>[...e[15]||(e[15]=[Rt(" Install ",-1)])]),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])}const RP=pr("Y",to(PI,[["render",jI],["__scopeId","data-v-3b685c50"]])),UI=Od.find(n=>n.name==="PluginsTab"),Zb=[{path:"/",component:sI,children:[{component:UI.component,path:""},...Od]},{path:"/:pathMatch(.*)*",name:"NotFound",component:GE}];Zb.forEach(df);const VI=af({history:lf(),routes:Zb});/*! @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:Qb,setPrototypeOf:Jb,isFrozen:qI,getPrototypeOf:KI,getOwnPropertyDescriptor:GI}=Object;let{freeze:Xr,seal:ji,create:Bd}=Object,{apply:Hd,construct:zd}=typeof Reflect<"u"&&Reflect;Xr||(Xr=function(n){return n}),ji||(ji=function(n){return n}),Hd||(Hd=function(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),d=2;d<t;d++)r[d-2]=arguments[d];return n.apply(e,r)}),zd||(zd=function(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return new n(...t)});const Wc=Qr(Array.prototype.forEach),YI=Qr(Array.prototype.lastIndexOf),e0=Qr(Array.prototype.pop),dl=Qr(Array.prototype.push),XI=Qr(Array.prototype.splice),Bc=Qr(String.prototype.toLowerCase),jd=Qr(String.prototype.toString),Ud=Qr(String.prototype.match),pl=Qr(String.prototype.replace),ZI=Qr(String.prototype.indexOf),QI=Qr(String.prototype.trim),lo=Qr(Object.prototype.hasOwnProperty),Zr=Qr(RegExp.prototype.test),fl=JI(TypeError);function Qr(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),d=1;d<t;d++)r[d-1]=arguments[d];return Hd(n,e,r)}}function JI(n){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return zd(n,t)}}function Wt(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bc;Jb&&Jb(n,null);let r=e.length;for(;r--;){let d=e[r];if(typeof d=="string"){const p=t(d);p!==d&&(qI(e)||(e[r]=p),d=p)}n[d]=!0}return n}function eR(n){for(let e=0;e<n.length;e++)lo(n,e)||(n[e]=null);return n}function ko(n){const e=Bd(null);for(const[t,r]of Qb(n))lo(n,t)&&(Array.isArray(r)?e[t]=eR(r):r&&typeof r=="object"&&r.constructor===Object?e[t]=ko(r):e[t]=r);return e}function gl(n,e){for(;n!==null;){const r=GI(n,e);if(r){if(r.get)return Qr(r.get);if(typeof r.value=="function")return Qr(r.value)}n=KI(n)}function t(){return null}return t}const t0=Xr(["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"]),Vd=Xr(["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"]),qd=Xr(["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"]),tR=Xr(["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"]),Kd=Xr(["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"]),nR=Xr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),n0=Xr(["#text"]),r0=Xr(["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"]),Gd=Xr(["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"]),i0=Xr(["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"]),Hc=Xr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rR=ji(/\{\{[\w\W]*|[\w\W]*\}\}/gm),iR=ji(/<%[\w\W]*|[\w\W]*%>/gm),oR=ji(/\$\{[\w\W]*/gm),sR=ji(/^data-[\-\w.\u00B7-\uFFFF]+$/),aR=ji(/^aria-[\-\w]+$/),o0=ji(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lR=ji(/^(?:\w+script|data):/i),cR=ji(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),s0=ji(/^html$/i),uR=ji(/^[a-z][.\w]*(-[.\w]+)+$/i);var a0=Object.freeze({__proto__:null,ARIA_ATTR:aR,ATTR_WHITESPACE:cR,CUSTOM_ELEMENT:uR,DATA_ATTR:sR,DOCTYPE_NAME:s0,ERB_EXPR:iR,IS_ALLOWED_URI:o0,IS_SCRIPT_OR_DATA:lR,MUSTACHE_EXPR:rR,TMPLIT_EXPR:oR});const ml={element:1,text:3,progressingInstruction:7,comment:8,document:9},hR=function(){return typeof window>"u"?null:window},dR=function(n,e){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let t=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(t=e.getAttribute(r));const d="dompurify"+(t?"#"+t:"");try{return n.createPolicy(d,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},l0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hR();const e=ce=>c0(ce);if(e.version="3.3.1",e.removed=[],!n||!n.document||n.document.nodeType!==ml.document||!n.Element)return e.isSupported=!1,e;let{document:t}=n;const r=t,d=r.currentScript,{DocumentFragment:p,HTMLTemplateElement:g,Node:b,Element:h,NodeFilter:f,NamedNodeMap:s=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:a,DOMParser:u,trustedTypes:c}=n,i=h.prototype,l=gl(i,"cloneNode"),m=gl(i,"remove"),w=gl(i,"nextSibling"),x=gl(i,"childNodes"),M=gl(i,"parentNode");if(typeof g=="function"){const ce=t.createElement("template");ce.content&&ce.content.ownerDocument&&(t=ce.content.ownerDocument)}let _,k="";const{implementation:C,createNodeIterator:L,createDocumentFragment:D,getElementsByTagName:R}=t,{importNode:I}=r;let H=l0();e.isSupported=typeof Qb=="function"&&typeof M=="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}=a0;let{IS_ALLOWED_URI:Q}=a0,J=null;const he=Wt({},[...t0,...Vd,...qd,...Kd,...n0]);let ne=null;const le=Wt({},[...r0,...Gd,...i0,...Hc]);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,Je=!1,Xe=!0,ht=!1,st=!0,dt=!1,Jt=!1,$n=!1,Ht=!1,kr=!1,fn=!1,Bn=!0,ir=!1;const Or="user-content-";let bt=!0,qe=!1,Nt={},Vt=null;const Ln=Wt({},["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 Ar=null;const vr=Wt({},["audio","video","img","source","image","track"]);let bn=null;const qn=Wt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Hn="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml";let Hr=dn,Jr=!1,ei=null;const Ii=Wt({},[Hn,Zt,dn],jd);let gi=Wt({},["mi","mo","mn","ms","mtext"]),Kn=Wt({},["annotation-xml"]);const co=Wt({},["title","style","font","a","script"]);let mi=null;const zs=["application/xhtml+xml","text/html"],ti="text/html";let Tn=null,vi=null;const os=t.createElement("form"),yi=function(ce){return ce instanceof RegExp||ce instanceof Function},Mn=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vi&&vi===ce)){if((!ce||typeof ce!="object")&&(ce={}),ce=ko(ce),mi=zs.indexOf(ce.PARSER_MEDIA_TYPE)===-1?ti:ce.PARSER_MEDIA_TYPE,Tn=mi==="application/xhtml+xml"?jd:Bc,J=lo(ce,"ALLOWED_TAGS")?Wt({},ce.ALLOWED_TAGS,Tn):he,ne=lo(ce,"ALLOWED_ATTR")?Wt({},ce.ALLOWED_ATTR,Tn):le,ei=lo(ce,"ALLOWED_NAMESPACES")?Wt({},ce.ALLOWED_NAMESPACES,jd):Ii,bn=lo(ce,"ADD_URI_SAFE_ATTR")?Wt(ko(qn),ce.ADD_URI_SAFE_ATTR,Tn):qn,Ar=lo(ce,"ADD_DATA_URI_TAGS")?Wt(ko(vr),ce.ADD_DATA_URI_TAGS,Tn):vr,Vt=lo(ce,"FORBID_CONTENTS")?Wt({},ce.FORBID_CONTENTS,Tn):Ln,de=lo(ce,"FORBID_TAGS")?Wt({},ce.FORBID_TAGS,Tn):ko({}),me=lo(ce,"FORBID_ATTR")?Wt({},ce.FORBID_ATTR,Tn):ko({}),Nt=lo(ce,"USE_PROFILES")?ce.USE_PROFILES:!1,Te=ce.ALLOW_ARIA_ATTR!==!1,Me=ce.ALLOW_DATA_ATTR!==!1,Je=ce.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=ce.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ht=ce.SAFE_FOR_TEMPLATES||!1,st=ce.SAFE_FOR_XML!==!1,dt=ce.WHOLE_DOCUMENT||!1,Ht=ce.RETURN_DOM||!1,kr=ce.RETURN_DOM_FRAGMENT||!1,fn=ce.RETURN_TRUSTED_TYPE||!1,$n=ce.FORCE_BODY||!1,Bn=ce.SANITIZE_DOM!==!1,ir=ce.SANITIZE_NAMED_PROPS||!1,bt=ce.KEEP_CONTENT!==!1,qe=ce.IN_PLACE||!1,Q=ce.ALLOWED_URI_REGEXP||o0,Hr=ce.NAMESPACE||dn,gi=ce.MATHML_TEXT_INTEGRATION_POINTS||gi,Kn=ce.HTML_INTEGRATION_POINTS||Kn,se=ce.CUSTOM_ELEMENT_HANDLING||{},ce.CUSTOM_ELEMENT_HANDLING&&yi(ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ce.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ce.CUSTOM_ELEMENT_HANDLING&&yi(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),ht&&(Me=!1),kr&&(Ht=!0),Nt&&(J=Wt({},n0),ne=[],Nt.html===!0&&(Wt(J,t0),Wt(ne,r0)),Nt.svg===!0&&(Wt(J,Vd),Wt(ne,Gd),Wt(ne,Hc)),Nt.svgFilters===!0&&(Wt(J,qd),Wt(ne,Gd),Wt(ne,Hc)),Nt.mathMl===!0&&(Wt(J,Kd),Wt(ne,i0),Wt(ne,Hc))),ce.ADD_TAGS&&(typeof ce.ADD_TAGS=="function"?_e.tagCheck=ce.ADD_TAGS:(J===he&&(J=ko(J)),Wt(J,ce.ADD_TAGS,Tn))),ce.ADD_ATTR&&(typeof ce.ADD_ATTR=="function"?_e.attributeCheck=ce.ADD_ATTR:(ne===le&&(ne=ko(ne)),Wt(ne,ce.ADD_ATTR,Tn))),ce.ADD_URI_SAFE_ATTR&&Wt(bn,ce.ADD_URI_SAFE_ATTR,Tn),ce.FORBID_CONTENTS&&(Vt===Ln&&(Vt=ko(Vt)),Wt(Vt,ce.FORBID_CONTENTS,Tn)),ce.ADD_FORBID_CONTENTS&&(Vt===Ln&&(Vt=ko(Vt)),Wt(Vt,ce.ADD_FORBID_CONTENTS,Tn)),bt&&(J["#text"]=!0),dt&&Wt(J,["html","head","body"]),J.table&&(Wt(J,["tbody"]),delete de.tbody),ce.TRUSTED_TYPES_POLICY){if(typeof ce.TRUSTED_TYPES_POLICY.createHTML!="function")throw fl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ce.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=ce.TRUSTED_TYPES_POLICY,k=_.createHTML("")}else _===void 0&&(_=dR(c,d)),_!==null&&typeof k=="string"&&(k=_.createHTML(""));Xr&&Xr(ce),vi=ce}},yr=Wt({},[...Vd,...qd,...tR]),bi=Wt({},[...Kd,...nR]),En=function(ce){let ze=M(ce);(!ze||!ze.tagName)&&(ze={namespaceURI:Hr,tagName:"template"});const Fe=Bc(ce.tagName),Tt=Bc(ze.tagName);return ei[ce.namespaceURI]?ce.namespaceURI===Zt?ze.namespaceURI===dn?Fe==="svg":ze.namespaceURI===Hn?Fe==="svg"&&(Tt==="annotation-xml"||gi[Tt]):!!yr[Fe]:ce.namespaceURI===Hn?ze.namespaceURI===dn?Fe==="math":ze.namespaceURI===Zt?Fe==="math"&&Kn[Tt]:!!bi[Fe]:ce.namespaceURI===dn?ze.namespaceURI===Zt&&!Kn[Tt]||ze.namespaceURI===Hn&&!gi[Tt]?!1:!bi[Fe]&&(co[Fe]||!yr[Fe]):!!(mi==="application/xhtml+xml"&&ei[ce.namespaceURI]):!1},On=function(ce){dl(e.removed,{element:ce});try{M(ce).removeChild(ce)}catch{m(ce)}},Sr=function(ce,ze){try{dl(e.removed,{attribute:ze.getAttributeNode(ce),from:ze})}catch{dl(e.removed,{attribute:null,from:ze})}if(ze.removeAttribute(ce),ce==="is")if(Ht||kr)try{On(ze)}catch{}else try{ze.setAttribute(ce,"")}catch{}},wi=function(ce){let ze=null,Fe=null;if($n)ce="<remove></remove>"+ce;else{const qt=Ud(ce,/^[\r\n\t ]+/);Fe=qt&&qt[0]}mi==="application/xhtml+xml"&&Hr===dn&&(ce='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ce+"</body></html>");const Tt=_?_.createHTML(ce):ce;if(Hr===dn)try{ze=new u().parseFromString(Tt,mi)}catch{}if(!ze||!ze.documentElement){ze=C.createDocument(Hr,"template",null);try{ze.documentElement.innerHTML=Jr?k:Tt}catch{}}const Qt=ze.body||ze.documentElement;return ce&&Fe&&Qt.insertBefore(t.createTextNode(Fe),Qt.childNodes[0]||null),Hr===dn?R.call(ze,dt?"html":"body")[0]:dt?ze.documentElement:Qt},Ao=function(ce){return L.call(ce.ownerDocument||ce,ce,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},So=function(ce){return ce instanceof a&&(typeof ce.nodeName!="string"||typeof ce.textContent!="string"||typeof ce.removeChild!="function"||!(ce.attributes instanceof s)||typeof ce.removeAttribute!="function"||typeof ce.setAttribute!="function"||typeof ce.namespaceURI!="string"||typeof ce.insertBefore!="function"||typeof ce.hasChildNodes!="function")},ss=function(ce){return typeof b=="function"&&ce instanceof b};function ni(ce,ze,Fe){Wc(ce,Tt=>{Tt.call(e,ze,Fe,vi)})}const xi=function(ce){let ze=null;if(ni(H.beforeSanitizeElements,ce,null),So(ce))return On(ce),!0;const Fe=Tn(ce.nodeName);if(ni(H.uponSanitizeElement,ce,{tagName:Fe,allowedTags:J}),st&&ce.hasChildNodes()&&!ss(ce.firstElementChild)&&Zr(/<[/\w!]/g,ce.innerHTML)&&Zr(/<[/\w!]/g,ce.textContent)||ce.nodeType===ml.progressingInstruction||st&&ce.nodeType===ml.comment&&Zr(/<[/\w]/g,ce.data))return On(ce),!0;if(!(_e.tagCheck instanceof Function&&_e.tagCheck(Fe))&&(!J[Fe]||de[Fe])){if(!de[Fe]&&Dt(Fe)&&(se.tagNameCheck instanceof RegExp&&Zr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe)))return!1;if(bt&&!Vt[Fe]){const Tt=M(ce)||ce.parentNode,Qt=x(ce)||ce.childNodes;if(Qt&&Tt){const qt=Qt.length;for(let $r=qt-1;$r>=0;--$r){const br=l(Qt[$r],!0);br.__removalCount=(ce.__removalCount||0)+1,Tt.insertBefore(br,w(ce))}}}return On(ce),!0}return ce instanceof h&&!En(ce)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&Zr(/<\/no(script|embed|frames)/i,ce.innerHTML)?(On(ce),!0):(ht&&ce.nodeType===ml.text&&(ze=ce.textContent,Wc([P,O,$],Tt=>{ze=pl(ze,Tt," ")}),ce.textContent!==ze&&(dl(e.removed,{element:ce.cloneNode()}),ce.textContent=ze)),ni(H.afterSanitizeElements,ce,null),!1)},zr=function(ce,ze,Fe){if(Bn&&(ze==="id"||ze==="name")&&(Fe in t||Fe in os))return!1;if(!(Me&&!me[ze]&&Zr(A,ze))&&!(Te&&Zr(N,ze))&&!(_e.attributeCheck instanceof Function&&_e.attributeCheck(ze,ce))){if(!ne[ze]||me[ze]){if(!(Dt(ce)&&(se.tagNameCheck instanceof RegExp&&Zr(se.tagNameCheck,ce)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ce))&&(se.attributeNameCheck instanceof RegExp&&Zr(se.attributeNameCheck,ze)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(ze,ce))||ze==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Zr(se.tagNameCheck,Fe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Fe))))return!1}else if(!bn[ze]&&!Zr(Q,pl(Fe,U,""))&&!((ze==="src"||ze==="xlink:href"||ze==="href")&&ce!=="script"&&ZI(Fe,"data:")===0&&Ar[ce])&&!(Je&&!Zr(B,pl(Fe,U,"")))&&Fe)return!1}return!0},Dt=function(ce){return ce!=="annotation-xml"&&Ud(ce,K)},No=function(ce){ni(H.beforeSanitizeAttributes,ce,null);const{attributes:ze}=ce;if(!ze||So(ce))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let Tt=ze.length;for(;Tt--;){const Qt=ze[Tt],{name:qt,namespaceURI:$r,value:br}=Qt,Gn=Tn(qt),Tr=br;let wn=qt==="value"?Tr:QI(Tr);if(Fe.attrName=Gn,Fe.attrValue=wn,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,ni(H.uponSanitizeAttribute,ce,Fe),wn=Fe.attrValue,ir&&(Gn==="id"||Gn==="name")&&(Sr(qt,ce),wn=Or+wn),st&&Zr(/((--!?|])>)|<\/(style|title|textarea)/i,wn)){Sr(qt,ce);continue}if(Gn==="attributename"&&Ud(wn,"href")){Sr(qt,ce);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){Sr(qt,ce);continue}if(!Xe&&Zr(/\/>/i,wn)){Sr(qt,ce);continue}ht&&Wc([P,O,$],jr=>{wn=pl(wn,jr," ")});const uo=Tn(ce.nodeName);if(!zr(uo,Gn,wn)){Sr(qt,ce);continue}if(_&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!$r)switch(c.getAttributeType(uo,Gn)){case"TrustedHTML":{wn=_.createHTML(wn);break}case"TrustedScriptURL":{wn=_.createScriptURL(wn);break}}if(wn!==Tr)try{$r?ce.setAttributeNS($r,qt,wn):ce.setAttribute(qt,wn),So(ce)?On(ce):e0(e.removed)}catch{Sr(qt,ce)}}ni(H.afterSanitizeAttributes,ce,null)},_r=function ce(ze){let Fe=null;const Tt=Ao(ze);for(ni(H.beforeSanitizeShadowDOM,ze,null);Fe=Tt.nextNode();)ni(H.uponSanitizeShadowNode,Fe,null),xi(Fe),No(Fe),Fe.content instanceof p&&ce(Fe.content);ni(H.afterSanitizeShadowDOM,ze,null)};return e.sanitize=function(ce){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,Tt=null,Qt=null,qt=null;if(Jr=!ce,Jr&&(ce="<!-->"),typeof ce!="string"&&!ss(ce))if(typeof ce.toString=="function"){if(ce=ce.toString(),typeof ce!="string")throw fl("dirty is not a string, aborting")}else throw fl("toString is not a function");if(!e.isSupported)return ce;if(Jt||Mn(ze),e.removed=[],typeof ce=="string"&&(qe=!1),qe){if(ce.nodeName){const Gn=Tn(ce.nodeName);if(!J[Gn]||de[Gn])throw fl("root node is forbidden and cannot be sanitized in-place")}}else if(ce instanceof b)Fe=wi("<!---->"),Tt=Fe.ownerDocument.importNode(ce,!0),Tt.nodeType===ml.element&&Tt.nodeName==="BODY"||Tt.nodeName==="HTML"?Fe=Tt:Fe.appendChild(Tt);else{if(!Ht&&!ht&&!dt&&ce.indexOf("<")===-1)return _&&fn?_.createHTML(ce):ce;if(Fe=wi(ce),!Fe)return Ht?null:fn?k:""}Fe&&$n&&On(Fe.firstChild);const $r=Ao(qe?ce:Fe);for(;Qt=$r.nextNode();)xi(Qt),No(Qt),Qt.content instanceof p&&_r(Qt.content);if(qe)return ce;if(Ht){if(kr)for(qt=D.call(Fe.ownerDocument);Fe.firstChild;)qt.appendChild(Fe.firstChild);else qt=Fe;return(ne.shadowroot||ne.shadowrootmode)&&(qt=I.call(r,qt,!0)),qt}let br=dt?Fe.outerHTML:Fe.innerHTML;return dt&&J["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&Zr(s0,Fe.ownerDocument.doctype.name)&&(br="<!DOCTYPE "+Fe.ownerDocument.doctype.name+`>
|
|
1502
|
+
`+br),ht&&Wc([P,O,$],Gn=>{br=pl(br,Gn," ")}),_&&fn?_.createHTML(br):br},e.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mn(ce),Jt=!0},e.clearConfig=function(){vi=null,Jt=!1},e.isValidAttribute=function(ce,ze,Fe){vi||Mn({});const Tt=Tn(ce),Qt=Tn(ze);return zr(Tt,Qt,Fe)},e.addHook=function(ce,ze){typeof ze=="function"&&dl(H[ce],ze)},e.removeHook=function(ce,ze){if(ze!==void 0){const Fe=YI(H[ce],ze);return Fe===-1?void 0:XI(H[ce],Fe,1)[0]}return e0(H[ce])},e.removeHooks=function(ce){H[ce]=[]},e.removeAllHooks=function(){H=l0()},e}var pR=c0();const fR={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"}},gR={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 pR.sanitize(this.params.text)}},methods:{dialog:function(n,e,t){this.params=n,this.show=!0,this.resolve=e,this.reject=t},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=""}}},mR=["innerHTML"],vR={key:2},yR={key:3,class:"validate mt-4"};function bR(n,e,t,r,d,p){const g=Ue("v-spacer"),b=Ue("v-toolbar"),h=Ue("v-icon"),f=Ue("v-text-field"),s=Ue("v-card-text"),a=Ue("v-btn"),u=Ue("v-card-actions"),c=Ue("v-card"),i=Ue("v-dialog"),l=Ue("v-app");return ot(),jt(l,null,{default:Pe(()=>[je(i,{modelValue:n.show,"onUpdate:modelValue":e[1]||(e[1]=m=>n.show=m),persistent:"",width:"600",onKeydown:Ol(p.cancel,["esc"])},{default:Pe(()=>[je(c,null,{default:Pe(()=>[je(b,{height:"24"},{default:Pe(()=>[je(g),Pn("span",null,Cn(n.params.title),1),je(g)]),_:1}),je(s,{class:"mt-4 pa-3"},{default:Pe(()=>[n.params.validateText?(ot(),jt(h,{key:0,class:"mr-2"},{default:Pe(()=>[...e[2]||(e[2]=[Rt(" mdi-alert ",-1)])]),_:1})):Kr("",!0),n.params.html?(ot(),rn("span",{key:1,innerHTML:p.sanitizedText},null,8,mR)):(ot(),rn("span",vR,Cn(p.sanitizedText),1)),n.params.validateText?(ot(),rn("div",yR,[Rt(" Enter "+Cn(n.params.validateText)+" to confirm! ",1),je(f,{modelValue:n.validationText,"onUpdate:modelValue":e[0]||(e[0]=m=>n.validationText=m),variant:"solo",density:"compact","single-line":"",rules:[n.rules.required,n.rules.match],"data-test":"confirm-dialog-validate"},null,8,["modelValue","rules"])])):Kr("",!0)]),_:1}),je(u,{class:"px-2"},{default:Pe(()=>[je(g),n.params.cancelText?(ot(),jt(a,{key:0,variant:"outlined","data-test":p.dataTestCancel,onClick:p.cancel},{default:Pe(()=>[Rt(Cn(n.params.cancelText),1)]),_:1},8,["data-test","onClick"])):Kr("",!0),je(a,{variant:"flat",color:n.params.okClass,"data-test":p.dataTestOk,onClick:p.ok},{default:Pe(()=>[Rt(Cn(n.params.okText),1)]),_:1},8,["color","data-test","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onKeydown"])]),_:1})}const wR=to(gR,[["render",bR],["__scopeId","data-v-e4f2e627"]]);class xR{constructor(){this.mounted=!1,this.$root=null}mount(){if(this.mounted)return;const e=window.Vue.createApp(wR);e.use(Xd);const t=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(t),this.$root=e.mount(t),this.mounted=!0}open({title:e,text:t,okText:r,okClass:d,validateText:p,cancelText:g,html:b}){return this.mount(),new Promise((h,f)=>{this.$root.dialog({title:e,text:t,okText:r,okClass:d,validateText:p,cancelText:g,html:b},h,f)})}confirm(e,{okText:t="Ok",cancelText:r="Cancel",okClass:d="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:d,validateText:null,cancelText:r,html:!1})}alert(e,{okText:t="Ok",html:r=!1,okClass:d="primary"}){return this.open({title:"Alert",text:e,okText:t,okClass:d,validateText:null,cancelText:null,html:r})}validate(e,{okText:t="Ok",validateText:r="CONFIRM",cancelText:d="Cancel",okClass:p="primary"}){return this.open({title:"Confirm",text:e,okText:t,okClass:p,validateText:r,cancelText:d,html:!1})}}const CR={install(n,e){const t=new xR;n.provide("dialog",t),n.config.globalProperties.hasOwnProperty("$dialog")||(n.config.globalProperties.$dialog=t)}},kR={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`
|
|
1503
1503
|
--toast-bg-color:${Ld[this.toastNotification.level]};
|
|
1504
1504
|
--toast-fg-color:${PE(this.toastNotification.level)};
|
|
1505
1505
|
`},contentStyle:function(){return`
|
|
1506
1506
|
white-space: ${this.expanded?"normal":"nowrap"};
|
|
1507
1507
|
overflow-x: ${this.expanded?"visible":"hidden"};
|
|
1508
1508
|
text-overflow: ${this.expanded?"unset":"ellipsis"};
|
|
1509
|
-
`}},methods:{toast:function(n,e){this.noToastPaths.includes(window.location.pathname)||(e===void 0&&(e=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),e&&(this.timeout=setTimeout(()=>{this.hide()},e)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},AR={key:0,class:"text-subtitle-1 mr-1 notification-text"},SR={key:1,class:"text-body-2 notification-text"},_R={key:2,class:"text-body-2 notification-text"};function $R(n,e,t,r,d,p){const g=Ue("v-icon"),b=Ue("v-spacer"),h=Ue("v-btn"),f=Ue("v-sheet"),s=Ue("v-slide-y-transition");return ot(),jt(s,null,{default:Pe(()=>[of(je(f,{style:Cs(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:Pe(()=>[je(g,{class:"mr-1 notification-text"},{default:Pe(()=>[Rt(Cn(p.toastNotificationIcon),1)]),_:1}),
|
|
1509
|
+
`}},methods:{toast:function(n,e){this.noToastPaths.includes(window.location.pathname)||(e===void 0&&(e=5e3),this.toastNotification=n,this.showToast=!0,this.cancelAutohide(),e&&(this.timeout=setTimeout(()=>{this.hide()},e)))},hide:function(){this.cancelAutohide(),this.showToast=!1},cancelAutohide:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},expand:function(){this.cancelAutohide(),this.expanded=!0}}},AR={key:0,class:"text-subtitle-1 mr-1 notification-text"},SR={key:1,class:"text-body-2 notification-text"},_R={key:2,class:"text-body-2 notification-text"};function $R(n,e,t,r,d,p){const g=Ue("v-icon"),b=Ue("v-spacer"),h=Ue("v-btn"),f=Ue("v-sheet"),s=Ue("v-slide-y-transition");return ot(),jt(s,null,{default:Pe(()=>[of(je(f,{style:Cs(p.toastStyle),class:"toast-notification",onClick:p.expand},{default:Pe(()=>[je(g,{class:"mr-1 notification-text"},{default:Pe(()=>[Rt(Cn(p.toastNotificationIcon),1)]),_:1}),Pn("div",{class:"toast-content",style:Cs(p.contentStyle)},[n.toastNotification.title?(ot(),rn("span",AR,[n.toastNotification.body||n.toastNotification.message?(ot(),rn(ci,{key:0},[Rt(Cn(n.toastNotification.title)+": ",1)],64)):(ot(),rn(ci,{key:1},[Rt(Cn(n.toastNotification.title),1)],64))])):Kr("",!0),n.toastNotification.body?(ot(),rn("span",SR,Cn(n.toastNotification.body),1)):Kr("",!0),n.toastNotification.message?(ot(),rn("span",_R,Cn(n.toastNotification.message),1)):Kr("",!0)],4),je(b),je(h,{variant:"text",class:"notification-text",onClick:Wa(p.hide,["stop"])},{default:Pe(()=>[...e[0]||(e[0]=[Rt(" Dismiss ",-1)])]),_:1},8,["onClick"])]),_:1},8,["style","onClick"]),[[sf,n.showToast]])]),_:1})}const TR=to(kR,[["render",$R],["__scopeId","data-v-84833581"]]);class MR{constructor(e={}){var t;this.$store=e.store,this.mounted=!1,this.$root=null,(t=window.$cosmosNotify)!=null&&t.$root?(this.mounted=!0,this.$root=window.$cosmosNotify.$root):window.$cosmosNotify=this}mount(){if(this.mounted)return;const e=_u(TR);e.use(Xd);const t=document.createElement("div");document.querySelector("#openc3-app-toolbar > div").appendChild(t),this.$root=e.mount(t),this.mounted=!0}open({method:e,title:t,body:r,message:d,level:p,duration:g,type:b="alert",logToConsole:h=!1,saveToHistory:f=!0}){this.mount(),h&&console.log(d?`${p.toUpperCase()} - ${d}`:`${p.toUpperCase()} - ${t}: ${r}`),f&&this.$store.commit("notifyAddHistory",{title:t,body:r,message:d,level:p}),this[e]({title:t,body:r,message:d,level:p,duration:g,type:b})}toast({title:e,body:t,message:r,level:d,duration:p,type:g}){this.$root.toast({title:e,body:t,message:r,level:d,type:g},p)}critical({title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b}){this.open({method:"toast",level:"critical",title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b})}FATAL(e){this.critical(e)}ERROR(e){this.critical(e)}serious({title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b}){this.open({method:"toast",level:"serious",title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b})}caution({title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b}){this.open({method:"toast",level:"caution",title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b})}WARN(e){this.caution(e)}normal({title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b}){this.open({method:"toast",level:"normal",title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b})}INFO(e){this.normal(e)}DEBUG(e){this.normal(e)}standby({title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b}){this.open({method:"toast",level:"standby",title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b})}off({title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b}){this.open({method:"toast",level:"off",title:e,body:t,message:r,type:d,duration:p,logToConsole:g,saveToHistory:b})}}const ER={install(n,e){const t=new MR(e);n.provide("notify",t),n.config.globalProperties.hasOwnProperty("$notify")||(n.config.globalProperties.$notify=t)}},u0=100,h0=cf({state(){return{notifyHistory:[],namedWidgets:{},playback:{playbackMode:null,playbackDateTime:null,playbackStep:1,playbackLoading:0}}},getters:{namedWidget:n=>e=>n.namedWidgets[e]},mutations:{notifyAddHistory(n,e){n.notifyHistory.length>=u0&&(n.notifyHistory.length=u0-1),n.notifyHistory.unshift(e)},notifyClearHistory(n){n.notifyHistory=[]},setNamedWidget(n,e){Object.assign(n.namedWidgets,e)},clearNamedWidget(n,e){delete n.namedWidgets[e]},playback(n,e){Object.assign(n.playback,e)}},modules:{}});function IR(n){Zp(`Vuetify: ${n}`)}function d0(n){let e;return n!==null&&typeof n=="object"&&((e=Object.getPrototypeOf(n))===Object.prototype||e===null)}function RR(n,e){const t={};for(const r of e)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}function p0(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const r={};for(const d in n)r[d]=n[d];for(const d in e){const p=n[d],g=e[d];if(d0(p)&&d0(g)){r[d]=p0(p,g,t);continue}if(t&&Array.isArray(p)&&Array.isArray(g)){r[d]=t(p,g);continue}r[d]=g}return r}function vl(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(vl.cache.has(n))return vl.cache.get(n);const e=n.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return vl.cache.set(n,e),e}vl.cache=new Map;function f0(n,e){return t=>Object.keys(n).reduce((r,d)=>{const p=typeof n[d]=="object"&&n[d]!=null&&!Array.isArray(n[d])?n[d]:{type:n[d]};return t&&d in t?r[d]={...p,default:t[d]}:r[d]=p,e&&!r[d].source&&(r[d].source=e),r},{})}function g0(n,e){const t=nf();if(!t)throw new Error(`[Vuetify] ${n} must be called from inside a setup function`);return t}function LR(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g0("injectSelf");const{provides:t}=e;if(t&&n in t)return t[n]}const Yd=Symbol.for("vuetify:defaults");function m0(){const n=Qp(Yd);if(!n)throw new Error("[Vuetify] Could not find defaults instance");return n}function OR(n,e){return n.props&&(typeof n.props[e]<"u"||typeof n.props[vl(e)]<"u")}function NR(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m0();const r=g0("useDefaults");if(e=e??r.type.name??r.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const d=Su(()=>{var h;return(h=t.value)==null?void 0:h[n._as??e]}),p=new Proxy(n,{get(h,f){var s,a,u,c;const i=Reflect.get(h,f);if(f==="class"||f==="style")return[(s=d.value)==null?void 0:s[f],i].filter(w=>w!=null);if(OR(r.vnode,f))return i;const l=(a=d.value)==null?void 0:a[f];if(l!==void 0)return l;const m=(c=(u=t.value)==null?void 0:u.global)==null?void 0:c[f];return m!==void 0?m:i}}),g=Jp();ef(()=>{if(d.value){const h=Object.entries(d.value).filter(f=>{let[s]=f;return s.startsWith(s[0].toUpperCase())});g.value=h.length?Object.fromEntries(h):void 0}else g.value=void 0});function b(){const h=LR(Yd,r);rf(Yd,Su(()=>g.value?p0((h==null?void 0:h.value)??{},g.value):h==null?void 0:h.value))}return{props:p,provideSubDefaults:b}}function zc(n){if(n._setup=n._setup??n.setup,!n.name)return IR("The component is missing an explicit name, unable to generate default prop value"),n;if(n._setup){n.props=f0(n.props??{},n.name)();const e=Object.keys(n.props).filter(t=>t!=="class"&&t!=="style");n.filterProps=function(t){return RR(t,e)},n.props._as=String,n.setup=function(t,r){const d=m0();if(!d.value)return n._setup(t,r);const{props:p,provideSubDefaults:g}=NR(t,t._as??n.name,d),b=n._setup(p,r);return g(),b}}return n}function DR(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(n?zc:Xp)(e)}const FR=[String,Function,Object,Array],jc=f0({icon:{type:FR},tag:{type:[String,Object,Function],required:!0}},"icon");DR()({name:"VComponentIcon",props:jc(),setup(n,e){let{slots:t}=e;return()=>{const r=n.icon;return je(n.tag,null,{default:()=>{var d;return[n.icon?je(r,null,null):(d=t.default)==null?void 0:d.call(t)]}})}}}),zc({name:"VSvgIcon",inheritAttrs:!1,props:jc(),setup(n,e){let{attrs:t}=e;return()=>je(n.tag,Ll(t,{style:null}),{default:()=>[Pn("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)?Pn("path",{d:r[0],"fill-opacity":r[1]},null):Pn("path",{d:r},null)):Pn("path",{d:n.icon},null)])]})}}),zc({name:"VLigatureIcon",props:jc(),setup(n){return()=>je(n.tag,null,{default:()=>[n.icon]})}});const PR=zc({name:"VClassIcon",props:jc(),setup(n){return()=>je(n.tag,{class:tf(n.icon)},null)}}),WR={component:n=>ia(PR,{...n,class:"mdi"})},Xd=uf({theme:{defaultTheme:"cosmosDark",themes:{cosmosDark:fR}},icons:{defaultSet:"mdi",sets:{mdi:WR,...BE,...HE}}}),Zd=ux({createApp:_u,appOptions:{render(){return ia(yx,{})},el:"#openc3-tool"},handleInstance:n=>{n.use(VI),n.use(h0),n.use(Xd),n.use(CR),n.use(ER,{store:h0})}}),LP=pr("g",Zd.bootstrap),OP=pr("m",Zd.mount),NP=pr("u",Zd.unmount)}}});
|