@foris/avocado-not-front 0.4.0 → 0.5.0
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.
- package/dist/avocado-not-front.es.js +26223 -7171
- package/dist/avocado-not-front.umd.js +115 -103
- package/dist/components/code-editor/CodeEditor.d.ts +11 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/hooks/useAction.d.ts +6 -1
- package/dist/style.css +1 -1
- package/dist/types/components.type.d.ts +46 -28
- package/dist/types/componentsCore.type.d.ts +14 -0
- package/package.json +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Dt,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],v):(Dt=typeof globalThis<"u"?globalThis:Dt||self,v(Dt["avocado-not-front"]={},Dt.React,Dt.ReactDOM))})(this,function(Dt,v,pl){"use strict";function id(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const Y=id(v),p2=id(pl);function sd(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var od={exports:{}},Ci={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ad;function m2(){if(ad)return Ci;ad=1;var r=v,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,h={},d=null,f=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)n.call(l,u)&&!s.hasOwnProperty(u)&&(h[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)h[u]===void 0&&(h[u]=l[u]);return{$$typeof:e,type:a,key:d,ref:f,props:h,_owner:i.current}}return Ci.Fragment=t,Ci.jsx=o,Ci.jsxs=o,Ci}od.exports=m2();var de=od.exports,g2=Object.defineProperty,y2=(r,e,t)=>e in r?g2(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Q=(r,e,t)=>(y2(r,typeof e!="symbol"?e+"":e,t),t);function ld(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var cd={exports:{}},wi={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var ud;function b2(){if(ud)return wi;ud=1;var r=v,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,h={},d=null,f=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)n.call(l,u)&&!s.hasOwnProperty(u)&&(h[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)h[u]===void 0&&(h[u]=l[u]);return{$$typeof:e,type:a,key:d,ref:f,props:h,_owner:i.current}}return wi.Fragment=t,wi.jsx=o,wi.jsxs=o,wi}cd.exports=b2();var ae=cd.exports,v2={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const hd=r=>{let e;const t=new Set,n=(a,l)=>{const c=typeof a=="function"?a(e):a;if(!Object.is(c,e)){const u=e;e=l??(typeof c!="object"||c===null)?c:Object.assign({},e,c),t.forEach(h=>h(e,u))}},i=()=>e,s={setState:n,getState:i,getInitialState:()=>o,subscribe:a=>(t.add(a),()=>t.delete(a)),destroy:()=>{(v2?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},o=e=r(n,i,s);return s},C2=r=>r?hd(r):hd;var dd={exports:{}},ml={},fd={exports:{}},gl={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* use-sync-external-store-shim.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var pd;function w2(){if(pd)return gl;pd=1;var r=v;function e(h,d){return h===d&&(h!==0||1/h===1/d)||h!==h&&d!==d}var t=typeof Object.is=="function"?Object.is:e,n=r.useState,i=r.useEffect,s=r.useLayoutEffect,o=r.useDebugValue;function a(h,d){var f=d(),p=n({inst:{value:f,getSnapshot:d}}),m=p[0].inst,g=p[1];return s(function(){m.value=f,m.getSnapshot=d,l(m)&&g({inst:m})},[h,f,d]),i(function(){return l(m)&&g({inst:m}),h(function(){l(m)&&g({inst:m})})},[h]),o(f),f}function l(h){var d=h.getSnapshot;h=h.value;try{var f=d();return!t(h,f)}catch{return!0}}function c(h,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return gl.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:u,gl}var md;function k2(){return md||(md=1,fd.exports=w2()),fd.exports}/**
|
|
26
26
|
* @license React
|
|
27
27
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var gd;function x2(){if(gd)return ml;gd=1;var r=v,e=k2();function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,s=r.useRef,o=r.useEffect,a=r.useMemo,l=r.useDebugValue;return ml.useSyncExternalStoreWithSelector=function(c,u,h,d,f){var p=s(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=a(function(){function y(S){if(!C){if(C=!0,w=S,S=d(S),f!==void 0&&m.hasValue){var k=m.value;if(f(k,S))return x=k}return x=S}if(k=x,n(w,S))return k;var D=d(S);return f!==void 0&&f(k,D)?k:(w=S,x=D)}var C=!1,w,x,b=h===void 0?null:h;return[function(){return y(u())},b===null?void 0:function(){return y(b())}]},[u,h,d,f]);var g=i(c,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=g},[g]),l(g),g},ml}dd.exports=x2();var S2=dd.exports;const O2=ld(S2);var yd={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:_2}=v,{useSyncExternalStoreWithSelector:D2}=O2;let bd=!1;const M2=r=>r;function P2(r,e=M2,t){(yd?"production":void 0)!=="production"&&t&&!bd&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),bd=!0);const n=D2(r.subscribe,r.getState,r.getServerState||r.getInitialState,e,t);return _2(n),n}const vd=r=>{(yd?"production":void 0)!=="production"&&typeof r!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof r=="function"?C2(r):r,t=(n,i)=>P2(e,n,i);return Object.assign(t,e),t},T2=r=>r?vd(r):vd,E2=T2(()=>{var r;return{theme:{mode:((r=window==null?void 0:window.localStorage)==null?void 0:r.getItem("avocado-theme"))==="dark"?"dark":"light"}}});v.createContext(void 0);var Cd={exports:{}},ki={};/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-jsx-runtime.production.min.js
|
|
36
36
|
*
|
|
@@ -38,70 +38,70 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
41
|
+
*/var wd;function A2(){if(wd)return ki;wd=1;var r=v,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var u,h={},d=null,f=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)n.call(l,u)&&!s.hasOwnProperty(u)&&(h[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)h[u]===void 0&&(h[u]=l[u]);return{$$typeof:e,type:a,key:d,ref:f,props:h,_owner:i.current}}return ki.Fragment=t,ki.jsx=o,ki.jsxs=o,ki}Cd.exports=A2();var R2=Cd.exports,kd=(r=>(r[r.sm=12]="sm",r[r.md=16]="md",r[r.lg=24]="lg",r[r.xl=32]="xl",r))(kd||{}),xd=(r=>(r.neutral70="neutral-70",r.gray_100="gray-100",r.gray_90="gray-90",r.gray_85="gray-85",r.gray_80="gray-80",r.gray_70="gray-70",r.gray_50="gray-50",r.gray_30="gray-30",r.gray_10="gray-10",r.gray_05="gray-05",r.gray_00="gray-00",r.gray_100_60="gray-100-60",r.gray_100_50="gray-100-50",r.gray_100_30="gray-100-30",r.gray_100_20="gray-100-20",r.gray_100_10="gray-100-10",r.gray_100_05="gray-100-05",r.gray_100_00="gray-100-00",r.gray_90_70="gray-90-70",r.gray_90_50="gray-90-50",r.gray_90_40="gray-90-40",r.gray_90_30="gray-90-30",r.gray_90_20="gray-90-20",r.gray_90_10="gray-90-10",r.gray_90_05="gray-90-05",r.gray_90_02="gray-90-02",r.gray_90_00="gray-90-00",r.gray_80_20="gray-80-20",r.gray_80_10="gray-80-10",r.gray_30_20="gray-30-20",r.gray_30_15="gray-30-15",r.gray_30_10="gray-30-10",r.gray_30_00="gray-30-00",r.brand_90="brand-90",r.brand_80="brand-80",r.brand_70="brand-70",r.brand_60="brand-60",r.brand_50="brand-50",r.brand_40="brand-40",r.brand_30="brand-30",r.brand_20="brand-20",r.brand_10="brand-10",r.blue_10="blue-10",r.blue_50="blue-50",r.blue_60="blue-60",r.blue_50_10="blue-50-10",r.blue_50_20="blue-50-20",r.blue_50_70="blue-50-70",r.red_10="red-10",r.red_50="red-50",r.red_60="red-60",r.red_50_10="red-50-10",r.red_50_20="red-50-20",r.red_50_70="red-50-70",r.green_10="green-10",r.green_50="green-50",r.green_60="green-60",r.green_50_10="green-50-10",r.green_50_20="green-50-20",r.green_50_70="green-50-70",r.yellow_10="yellow-10",r.yellow_50="yellow-50",r.yellow_60="yellow-60",r.yellow_50_10="yellow-50-10",r.yellow_50_20="yellow-50-20",r.yellow_50_40="yellow-50-40",r.yellow_50_70="yellow-50-70",r.neutral_90="neutral-90",r.neutral_85="neutral-85",r.neutral_80="neutral-80",r.neutral_70="neutral-70",r.neutral_50="neutral-50",r.neutral_30="neutral-30",r.neutral_10="neutral-10",r.neutral_05="neutral-05",r.neutral_00="neutral-00",r.primary_90="primary-90",r.primary_80="primary-80",r.primary_70="primary-70",r.primary_60="primary-60",r.primary_50="primary-50",r.primary_40="primary-40",r.primary_30="primary-30",r.primary_20="primary-20",r.primary_10="primary-10",r.info_10="info-10",r.info_50="info-50",r.info_60="info-60",r.info_opacity="info-opacity",r.info_border="info-border",r.error_10="error-10",r.error_50="error-50",r.error_60="error-60",r.error_opacity="error-opacity",r.error_border="error-border",r.success_10="success-10",r.success_50="success-50",r.success_60="success-60",r.success_opacity="success-opacity",r.success_border="success-border",r.warning_10="warning-10",r.warning_50="warning-50",r.warning_60="warning-60",r.warning_opacity="warning-opacity",r.warning_border="warning-border",r.palette_1_10="palette-1-10",r.palette_1_50="palette-1-50",r.palette_1_80="palette-1-80",r.palette_2_10="palette-2-10",r.palette_2_50="palette-2-50",r.palette_2_80="palette-2-80",r.palette_3_10="palette-3-10",r.palette_3_50="palette-3-50",r.palette_3_80="palette-3-80",r.palette_4_10="palette-4-10",r.palette_4_50="palette-4-50",r.palette_4_80="palette-4-80",r.palette_5_10="palette-5-10",r.palette_5_50="palette-5-50",r.palette_5_80="palette-5-80",r.palette_6_10="palette-6-10",r.palette_6_50="palette-6-50",r.palette_6_80="palette-6-80",r.palette_7_10="palette-7-10",r.palette_7_50="palette-7-50",r.palette_7_80="palette-7-80",r.palette_8_10="palette-8-10",r.palette_8_50="palette-8-50",r.palette_8_80="palette-8-80",r.palette_9_10="palette-9-10",r.palette_9_50="palette-9-50",r.palette_9_80="palette-9-80",r.palette_10_10="palette-10-10",r.palette_10_50="palette-10-50",r.palette_10_80="palette-10-80",r.palette_11_10="palette-11-10",r.palette_11_50="palette-11-50",r.palette_11_80="palette-11-80",r.palette_12_10="palette-12-10",r.palette_12_50="palette-12-50",r.palette_12_80="palette-12-80",r.palette_13_10="palette-13-10",r.palette_13_50="palette-13-50",r.palette_13_80="palette-13-80",r.palette_14_10="palette-14-10",r.palette_14_50="palette-14-50",r.palette_14_80="palette-14-80",r.palette_15_10="palette-15-10",r.palette_15_50="palette-15-50",r.palette_15_80="palette-15-80",r.palette_16_10="palette-16-10",r.palette_16_50="palette-16-50",r.palette_16_80="palette-16-80",r.palette_17_10="palette-17-10",r.palette_17_50="palette-17-50",r.palette_17_80="palette-17-80",r.palette_18_10="palette-18-10",r.palette_18_50="palette-18-50",r.palette_18_80="palette-18-80",r))(xd||{});const L2=`
|
|
42
42
|
<path
|
|
43
43
|
fill-rule="evenodd"
|
|
44
44
|
clip-rule="evenodd"
|
|
45
45
|
d="M8.66683 3.33329C8.66683 2.9651 8.36835 2.66663 8.00016 2.66663C7.63197 2.66663 7.3335 2.9651 7.3335 3.33329V11.057L3.80506 7.52854C3.54471 7.2682 3.1226 7.2682 2.86225 7.52854C2.6019 7.78889 2.6019 8.211 2.86225 8.47135L7.51977 13.1289C7.64106 13.2549 7.81145 13.3333 8.00016 13.3333C8.07123 13.3333 8.1397 13.3222 8.20393 13.3016C8.30188 13.2703 8.39401 13.2157 8.47173 13.138L13.1384 8.47135C13.3987 8.211 13.3987 7.78889 13.1384 7.52854C12.878 7.2682 12.4559 7.2682 12.1956 7.52854L8.66683 11.0573V3.33329Z"
|
|
46
46
|
fill="#1B1C1D"
|
|
47
47
|
/>
|
|
48
|
-
`,
|
|
48
|
+
`,N2=`
|
|
49
49
|
<path
|
|
50
50
|
fill-rule="evenodd"
|
|
51
51
|
clip-rule="evenodd"
|
|
52
52
|
d="M8.19158 2.69451C8.13095 2.67637 8.06669 2.66663 8.00016 2.66663C7.8116 2.66663 7.64131 2.74491 7.52005 2.87076L2.86225 7.52855C2.6019 7.7889 2.6019 8.21101 2.86225 8.47136C3.1226 8.73171 3.54471 8.73171 3.80506 8.47136L7.3335 4.94293V12.6666C7.3335 13.0348 7.63197 13.3333 8.00016 13.3333C8.36835 13.3333 8.66683 13.0348 8.66683 12.6666V4.94261L12.1956 8.47136C12.4559 8.73171 12.878 8.73171 13.1384 8.47136C13.3987 8.21101 13.3987 7.7889 13.1384 7.52855L8.47173 2.86189C8.39075 2.78091 8.29412 2.72512 8.19158 2.69451Z"
|
|
53
53
|
fill="#1B1C1D"
|
|
54
54
|
/>
|
|
55
|
-
`,
|
|
55
|
+
`,B2=`
|
|
56
56
|
<path
|
|
57
57
|
fill-rule="evenodd"
|
|
58
58
|
clip-rule="evenodd"
|
|
59
59
|
d="M3.52876 5.52864C3.78911 5.26829 4.21122 5.26829 4.47157 5.52864L8.00016 9.05723L11.5288 5.52864C11.7891 5.26829 12.2112 5.26829 12.4716 5.52864C12.7319 5.78899 12.7319 6.2111 12.4716 6.47145L8.47157 10.4714C8.21122 10.7318 7.78911 10.7318 7.52876 10.4714L3.52876 6.47145C3.26841 6.2111 3.26841 5.78899 3.52876 5.52864Z"
|
|
60
60
|
fill="#1B1C1D"
|
|
61
61
|
/>
|
|
62
|
-
`,
|
|
62
|
+
`,I2=`
|
|
63
63
|
<path
|
|
64
64
|
fill-rule="evenodd"
|
|
65
65
|
clip-rule="evenodd"
|
|
66
66
|
d="M10.4716 3.52864C10.7319 3.78899 10.7319 4.2111 10.4716 4.47145L6.94297 8.00004L10.4716 11.5286C10.7319 11.789 10.7319 12.2111 10.4716 12.4714C10.2112 12.7318 9.78911 12.7318 9.52876 12.4714L5.52876 8.47145C5.26841 8.2111 5.26841 7.78899 5.52876 7.52864L9.52876 3.52864C9.78911 3.26829 10.2112 3.26829 10.4716 3.52864Z"
|
|
67
67
|
fill="#1B1C1D"
|
|
68
68
|
/>
|
|
69
|
-
`,
|
|
69
|
+
`,H2=`
|
|
70
70
|
<path
|
|
71
71
|
fill-rule="evenodd"
|
|
72
72
|
clip-rule="evenodd"
|
|
73
73
|
d="M5.52876 3.52864C5.78911 3.26829 6.21122 3.26829 6.47157 3.52864L10.4716 7.52864C10.7319 7.78899 10.7319 8.2111 10.4716 8.47145L6.47157 12.4714C6.21122 12.7318 5.78911 12.7318 5.52876 12.4714C5.26841 12.2111 5.26841 11.789 5.52876 11.5286L9.05735 8.00004L5.52876 4.47145C5.26841 4.2111 5.26841 3.78899 5.52876 3.52864Z"
|
|
74
74
|
fill="#1B1C1D"
|
|
75
75
|
/>
|
|
76
|
-
`,
|
|
76
|
+
`,V2=`
|
|
77
77
|
<path
|
|
78
78
|
fill-rule="evenodd"
|
|
79
79
|
clip-rule="evenodd"
|
|
80
80
|
d="M7.80441 5.13807C8.06476 4.87772 8.06476 4.45561 7.80441 4.19526C7.54406 3.93491 7.12195 3.93491 6.8616 4.19526L3.52827 7.5286C3.26792 7.78895 3.26792 8.21105 3.52827 8.4714L6.8616 11.8047C7.12195 12.0651 7.54406 12.0651 7.80441 11.8047C8.06476 11.5444 8.06476 11.1223 7.80441 10.8619L4.94248 8L7.80441 5.13807ZM12.4712 5.13807C12.7315 4.87772 12.7315 4.45561 12.4712 4.19526C12.2108 3.93491 11.7887 3.93491 11.5284 4.19526L8.19502 7.5286C7.93467 7.78895 7.93467 8.21105 8.19502 8.4714L11.5284 11.8047C11.7887 12.0651 12.2108 12.0651 12.4712 11.8047C12.7315 11.5444 12.7315 11.1223 12.4712 10.8619L9.60923 8L12.4712 5.13807Z"
|
|
81
81
|
fill="#1B1C1D"
|
|
82
82
|
/>
|
|
83
|
-
`,
|
|
83
|
+
`,F2=`
|
|
84
84
|
<path
|
|
85
85
|
fill-rule="evenodd"
|
|
86
86
|
clip-rule="evenodd"
|
|
87
87
|
d="M4.47108 4.19526C4.21073 3.93491 3.78862 3.93491 3.52827 4.19526C3.26792 4.45561 3.26792 4.87772 3.52827 5.13807L6.3902 8L3.52827 10.8619C3.26792 11.1223 3.26792 11.5444 3.52827 11.8047C3.78862 12.0651 4.21073 12.0651 4.47108 11.8047L7.80441 8.4714C8.06476 8.21105 8.06476 7.78895 7.80441 7.5286L4.47108 4.19526ZM9.13783 4.19526C8.87748 3.93491 8.45537 3.93491 8.19502 4.19526C7.93467 4.45561 7.93467 4.87772 8.19502 5.13807L11.0569 8L8.19502 10.8619C7.93467 11.1223 7.93467 11.5444 8.19502 11.8047C8.45537 12.0651 8.87748 12.0651 9.13783 11.8047L12.4712 8.4714C12.7315 8.21105 12.7315 7.78895 12.4712 7.5286L9.13783 4.19526Z"
|
|
88
88
|
fill="#1B1C1D"
|
|
89
89
|
/>
|
|
90
|
-
`,
|
|
90
|
+
`,Q2=`
|
|
91
91
|
<path
|
|
92
92
|
fill-rule="evenodd"
|
|
93
93
|
clip-rule="evenodd"
|
|
94
94
|
d="M7.52876 5.52864C7.78911 5.26829 8.21122 5.26829 8.47157 5.52864L12.4716 9.52864C12.7319 9.78899 12.7319 10.2111 12.4716 10.4714C12.2112 10.7318 11.7891 10.7318 11.5288 10.4714L8.00016 6.94285L4.47157 10.4714C4.21122 10.7318 3.78911 10.7318 3.52876 10.4714C3.26841 10.2111 3.26841 9.78899 3.52876 9.52864L7.52876 5.52864Z"
|
|
95
95
|
fill="#1B1C1D"
|
|
96
96
|
/>
|
|
97
|
-
`,
|
|
97
|
+
`,W2=`
|
|
98
98
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.4714 2.19526C6.73175 2.45561 6.73175 2.87772 6.4714 3.13807L3.60948 6L6.4714 8.86193C6.73175 9.12228 6.73175 9.54439 6.4714 9.80474C6.21105 10.0651 5.78895 10.0651 5.5286 9.80474L2.19526 6.4714C1.93491 6.21105 1.93491 5.78895 2.19526 5.5286L5.5286 2.19526C5.78895 1.93491 6.21105 1.93491 6.4714 2.19526Z" fill="white"/>
|
|
99
99
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 6C2 5.63181 2.29848 5.33333 2.66667 5.33333H10.6667C11.5507 5.33333 12.3986 5.68452 13.0237 6.30964C13.6488 6.93476 14 7.78261 14 8.66667V13.3333C14 13.7015 13.7015 14 13.3333 14C12.9651 14 12.6667 13.7015 12.6667 13.3333V8.66667C12.6667 8.13623 12.456 7.62752 12.0809 7.25245C11.7058 6.87738 11.1971 6.66667 10.6667 6.66667H2.66667C2.29848 6.66667 2 6.36819 2 6Z" fill="white"/>
|
|
100
|
-
|
|
100
|
+
`,j2={"arrow-down":L2,"arrow-up":N2,"chevron-down":B2,"chevron-left":I2,"chevron-right":H2,"chevrons-left":V2,"chevrons-right":F2,"chevron-up":Q2,"corner-up-left":W2},q2=`
|
|
101
101
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.01874 1.52206C7.31826 1.35342 7.6562 1.26483 7.99993 1.26483C8.34367 1.26483 8.6816 1.35342 8.98113 1.52206C9.28065 1.69069 9.53166 1.93368 9.70993 2.22758L9.71185 2.23074L15.364 11.6666C15.5386 11.969 15.631 12.3119 15.6319 12.6611C15.6329 13.0104 15.5424 13.3538 15.3695 13.6571C15.1966 13.9605 14.9472 14.2134 14.6462 14.3905C14.3452 14.5676 14.0031 14.6628 13.6539 14.6666L13.6466 14.6667L2.34594 14.6667C1.99674 14.6628 1.65463 14.5676 1.35365 14.3905C1.05266 14.2134 0.803301 13.9605 0.630365 13.6571C0.45743 13.3538 0.36695 13.0104 0.367928 12.6611C0.368906 12.3119 0.461307 11.969 0.635939 11.6666L0.641281 11.6574L6.28992 2.22757C6.46819 1.93368 6.71921 1.69069 7.01874 1.52206ZM7.99993 2.59816C7.88535 2.59816 7.77271 2.6277 7.67287 2.68391C7.57347 2.73987 7.49011 2.82039 7.43073 2.91777L7.42993 2.91908L1.78839 12.3372C1.7316 12.4371 1.70158 12.5499 1.70126 12.6649C1.70093 12.7813 1.73109 12.8957 1.78874 12.9969C1.84638 13.098 1.9295 13.1823 2.02983 13.2413C2.12929 13.2998 2.24222 13.3315 2.35757 13.3333H13.6423C13.7576 13.3315 13.8706 13.2998 13.97 13.2413C14.0704 13.1823 14.1535 13.098 14.2111 12.9969C14.2688 12.8957 14.2989 12.7813 14.2986 12.6649C14.2983 12.55 14.2683 12.4371 14.2115 12.3372L8.56993 2.91908L8.56913 2.91777C8.50976 2.82039 8.42639 2.73987 8.327 2.68391C8.22716 2.6277 8.11451 2.59816 7.99993 2.59816ZM7.99992 5.33331C8.36811 5.33331 8.66658 5.63179 8.66658 5.99998V8.66665C8.66658 9.03484 8.36811 9.33331 7.99992 9.33331C7.63173 9.33331 7.33325 9.03484 7.33325 8.66665V5.99998C7.33325 5.63179 7.63173 5.33331 7.99992 5.33331ZM7.99992 10.6667C7.63173 10.6667 7.33325 10.9652 7.33325 11.3334C7.33325 11.7015 7.63173 12 7.99992 12H8.00659C8.37477 12 8.67325 11.7015 8.67325 11.3334C8.67325 10.9652 8.37477 10.6667 8.00659 10.6667H7.99992Z" fill="#1B1C1D"/>
|
|
102
|
-
`,
|
|
102
|
+
`,z2=`
|
|
103
103
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.01898 1.52206C7.31851 1.35342 7.65644 1.26483 8.00018 1.26483C8.34391 1.26483 8.68185 1.35342 8.98137 1.52206C9.2809 1.69069 9.53191 1.93368 9.71018 2.22758L9.7121 2.23074L15.3642 11.6666C15.5389 11.969 15.6312 12.3119 15.6322 12.6611C15.6332 13.0104 15.5427 13.3538 15.3697 13.6571C15.1968 13.9605 14.9474 14.2134 14.6465 14.3905C14.3455 14.5676 14.0034 14.6628 13.6542 14.6666L13.6468 14.6667L2.34618 14.6667C1.99698 14.6628 1.65487 14.5676 1.35389 14.3905C1.05291 14.2134 0.803545 13.9605 0.630609 13.6571C0.457674 13.3538 0.367194 13.0104 0.368172 12.6611C0.36915 12.3119 0.461551 11.969 0.636183 11.6666L0.641525 11.6574L6.28827 2.23075L6.29018 2.22758C6.46845 1.93368 6.71946 1.69069 7.01898 1.52206ZM8.00016 5.33331C8.36835 5.33331 8.66683 5.63179 8.66683 5.99998V8.66665C8.66683 9.03484 8.36835 9.33331 8.00016 9.33331C7.63197 9.33331 7.3335 9.03484 7.3335 8.66665V5.99998C7.3335 5.63179 7.63197 5.33331 8.00016 5.33331ZM8.00016 10.6667C7.63197 10.6667 7.3335 10.9652 7.3335 11.3334C7.3335 11.7015 7.63197 12 8.00016 12H8.00683C8.37502 12 8.6735 11.7015 8.6735 11.3334C8.6735 10.9652 8.37502 10.6667 8.00683 10.6667H8.00016Z" fill="#000"/>
|
|
104
|
-
`,
|
|
104
|
+
`,Y2=`
|
|
105
105
|
<g clip-path="url(#clip0_3782_54921)">
|
|
106
106
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 0.666687C3.94999 0.666687 0.666748 3.94993 0.666748 8.00002C0.666748 12.0501 3.94999 15.3334 8.00008 15.3334C12.0502 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0502 0.666687 8.00008 0.666687ZM12.1427 5.19974C11.8848 4.93698 11.4627 4.93304 11.1999 5.19095L10.8726 5.5131C10.6585 5.72405 10.3433 6.03508 9.93856 6.43561C9.21986 7.14691 8.21883 8.14054 7.0004 9.3574L5.13832 7.49531C4.87797 7.23496 4.45586 7.23496 4.19551 7.49531C3.93516 7.75566 3.93516 8.17777 4.19551 8.43812L6.52884 10.7715C6.65386 10.8965 6.82343 10.9667 7.00024 10.9667C7.17705 10.9667 7.34662 10.8965 7.47165 10.7715C8.90267 9.34045 10.0685 8.18293 10.8765 7.38329C11.2805 6.98348 11.595 6.67314 11.8084 6.46282L12.1339 6.14251C12.3967 5.8846 12.4006 5.46251 12.1427 5.19974Z" fill="black"/>
|
|
107
107
|
</g>
|
|
@@ -110,7 +110,7 @@ fill="#1B1C1D"
|
|
|
110
110
|
<rect width="16" height="16" fill="white"/>
|
|
111
111
|
</clipPath>
|
|
112
112
|
</defs>
|
|
113
|
-
|
|
113
|
+
`,$2=`
|
|
114
114
|
<g clip-path="url(#clip0_3792_54463)">
|
|
115
115
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 2.00002C4.68637 2.00002 2.00008 4.68631 2.00008 8.00002C2.00008 11.3137 4.68637 14 8.00008 14C11.3138 14 14.0001 11.3137 14.0001 8.00002C14.0001 4.68631 11.3138 2.00002 8.00008 2.00002ZM0.666748 8.00002C0.666748 3.94993 3.94999 0.666687 8.00008 0.666687C12.0502 0.666687 15.3334 3.94993 15.3334 8.00002C15.3334 12.0501 12.0502 15.3334 8.00008 15.3334C3.94999 15.3334 0.666748 12.0501 0.666748 8.00002ZM10.4713 5.52861C10.7317 5.78896 10.7317 6.21107 10.4713 6.47141L8.94273 8.00001L10.4713 9.52861C10.7317 9.78896 10.7317 10.2111 10.4713 10.4714C10.211 10.7318 9.78886 10.7318 9.52851 10.4714L7.99992 8.94282L6.47132 10.4714C6.21097 10.7318 5.78886 10.7318 5.52851 10.4714C5.26816 10.2111 5.26816 9.78896 5.52851 9.52861L7.05711 8.00001L5.52851 6.47141C5.26816 6.21107 5.26816 5.78896 5.52851 5.52861C5.78886 5.26826 6.21097 5.26826 6.47132 5.52861L7.99992 7.0572L9.52851 5.52861C9.78886 5.26826 10.211 5.26826 10.4713 5.52861Z" fill="#1B1C1D"/>
|
|
116
116
|
</g>
|
|
@@ -119,7 +119,7 @@ fill="#1B1C1D"
|
|
|
119
119
|
<rect width="16" height="16" fill="white"/>
|
|
120
120
|
</clipPath>
|
|
121
121
|
</defs>
|
|
122
|
-
`,
|
|
122
|
+
`,U2=`
|
|
123
123
|
<g clip-path="url(#clip0_3782_54922)">
|
|
124
124
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 0.666687C3.94999 0.666687 0.666748 3.94993 0.666748 8.00002C0.666748 12.0501 3.94999 15.3334 8.00008 15.3334C12.0502 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0502 0.666687 8.00008 0.666687ZM10.4713 5.52864C10.7317 5.78899 10.7317 6.2111 10.4713 6.47145L8.94273 8.00004L10.4713 9.52864C10.7317 9.78899 10.7317 10.2111 10.4713 10.4714C10.211 10.7318 9.78886 10.7318 9.52851 10.4714L7.99992 8.94285L6.47132 10.4714C6.21097 10.7318 5.78886 10.7318 5.52851 10.4714C5.26816 10.2111 5.26816 9.78899 5.52851 9.52864L7.05711 8.00004L5.52851 6.47145C5.26816 6.2111 5.26816 5.78899 5.52851 5.52864C5.78886 5.26829 6.21097 5.26829 6.47132 5.52864L7.99992 7.05723L9.52851 5.52864C9.78886 5.26829 10.211 5.26829 10.4713 5.52864Z" fill="black"/>
|
|
125
125
|
</g>
|
|
@@ -128,7 +128,7 @@ fill="#1B1C1D"
|
|
|
128
128
|
<rect width="16" height="16" fill="white"/>
|
|
129
129
|
</clipPath>
|
|
130
130
|
</defs>
|
|
131
|
-
`,
|
|
131
|
+
`,Z2=`
|
|
132
132
|
<g clip-path="url(#clip0_3792_54452)">
|
|
133
133
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.00008 8.00002C2.00008 4.68631 4.68637 2.00002 8.00008 2.00002C11.3138 2.00002 14.0001 4.68631 14.0001 8.00002C14.0001 11.3137 11.3138 14 8.00008 14C4.68637 14 2.00008 11.3137 2.00008 8.00002ZM8.00008 0.666687C3.94999 0.666687 0.666748 3.94993 0.666748 8.00002C0.666748 12.0501 3.94999 15.3334 8.00008 15.3334C12.0502 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0502 0.666687 8.00008 0.666687ZM7.33325 5.33335C7.33325 4.96516 7.63173 4.66669 7.99992 4.66669H8.00659C8.37478 4.66669 8.67325 4.96516 8.67325 5.33335C8.67325 5.70154 8.37478 6.00002 8.00659 6.00002H7.99992C7.63173 6.00002 7.33325 5.70154 7.33325 5.33335ZM7.99992 7.33334C8.36811 7.33334 8.66659 7.63182 8.66659 8.00001V10.6667C8.66659 11.0349 8.36811 11.3333 7.99992 11.3333C7.63173 11.3333 7.33325 11.0349 7.33325 10.6667V8.00001C7.33325 7.63182 7.63173 7.33334 7.99992 7.33334Z" fill="#1B1C1D"/>
|
|
134
134
|
</g>
|
|
@@ -137,7 +137,7 @@ fill="#1B1C1D"
|
|
|
137
137
|
<rect width="16" height="16" fill="white"/>
|
|
138
138
|
</clipPath>
|
|
139
139
|
</defs>
|
|
140
|
-
`,
|
|
140
|
+
`,X2=`
|
|
141
141
|
<g clip-path="url(#clip0_3792_54440)">
|
|
142
142
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.666748 7.99996C0.666748 3.94987 3.94999 0.666626 8.00008 0.666626C12.0502 0.666626 15.3334 3.94987 15.3334 7.99996C15.3334 12.05 12.0502 15.3333 8.00008 15.3333C3.94999 15.3333 0.666748 12.05 0.666748 7.99996ZM7.99992 7.33331C8.36811 7.33331 8.66659 7.63179 8.66659 7.99998V10.6666C8.66659 11.0348 8.36811 11.3333 7.99992 11.3333C7.63173 11.3333 7.33325 11.0348 7.33325 10.6666V7.99998C7.33325 7.63179 7.63173 7.33331 7.99992 7.33331ZM7.99992 4.66663C7.63173 4.66663 7.33325 4.9651 7.33325 5.33329C7.33325 5.70148 7.63173 5.99996 7.99992 5.99996H8.00659C8.37478 5.99996 8.67325 5.70148 8.67325 5.33329C8.67325 4.9651 8.37478 4.66663 8.00659 4.66663H7.99992Z" fill="#1B1C1D"/>
|
|
143
143
|
</g>
|
|
@@ -146,7 +146,7 @@ fill="#1B1C1D"
|
|
|
146
146
|
<rect width="16" height="16" fill="white"/>
|
|
147
147
|
</clipPath>
|
|
148
148
|
</defs>
|
|
149
|
-
`,
|
|
149
|
+
`,K2=`
|
|
150
150
|
<g clip-path="url(#clip0_3782_54925)">
|
|
151
151
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.25499 3.31206C5.28143 2.49099 6.58342 2.00002 8.00008 2.00002C11.3138 2.00002 14.0001 4.68631 14.0001 8.00002C14.0001 9.41668 13.5091 10.7187 12.688 11.7451L4.25499 3.31206ZM3.31218 4.25486C2.49107 5.28131 2.00008 6.58333 2.00008 8.00002C2.00008 11.3137 4.68637 14 8.00008 14C9.41677 14 10.7188 13.509 11.7452 12.6879L3.31218 4.25486ZM8.00008 0.666687C3.94999 0.666687 0.666748 3.94993 0.666748 8.00002C0.666748 12.0501 3.94999 15.3334 8.00008 15.3334C12.0502 15.3334 15.3334 12.0501 15.3334 8.00002C15.3334 3.94993 12.0502 0.666687 8.00008 0.666687Z" fill="#1B1C1D"/>
|
|
152
152
|
</g>
|
|
@@ -155,7 +155,7 @@ fill="#1B1C1D"
|
|
|
155
155
|
<rect width="16" height="16" fill="white"/>
|
|
156
156
|
</clipPath>
|
|
157
157
|
</defs>
|
|
158
|
-
`,
|
|
158
|
+
`,G2=`
|
|
159
159
|
<g clip-path="url(#clip0_10341_34400)">
|
|
160
160
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.4421 2.51561C9.26024 1.98901 7.93984 1.85856 6.6778 2.1437C5.41575 2.42884 4.27969 3.1143 3.43905 4.09785C2.59841 5.08141 2.09822 6.31035 2.01309 7.6014C1.92796 8.89245 2.26244 10.1764 2.96666 11.2619C3.67088 12.3473 4.70709 13.176 5.92076 13.6244C7.13444 14.0728 8.46054 14.1168 9.7013 13.75C10.9421 13.3831 12.031 12.625 12.8057 11.5887C13.5804 10.5524 13.9993 9.29346 14.0001 7.99961V7.38666C14.0001 7.01847 14.2986 6.71999 14.6668 6.71999C15.0349 6.71999 15.3334 7.01847 15.3334 7.38666V7.99999C15.3325 9.58137 14.8204 11.1205 13.8736 12.387C12.9267 13.6536 11.5958 14.5802 10.0793 15.0286C8.56286 15.4769 6.94207 15.4231 5.45869 14.8751C3.97531 14.327 2.70883 13.3142 1.84812 11.9876C0.98741 10.6609 0.578595 9.09162 0.682644 7.51367C0.786694 5.93572 1.39803 4.43368 2.42549 3.23156C3.45294 2.02944 4.84146 1.19165 6.38395 0.843146C7.92645 0.49464 9.54028 0.654086 10.9848 1.29771C11.3211 1.44756 11.4722 1.84168 11.3224 2.17799C11.1725 2.51431 10.7784 2.66546 10.4421 2.51561Z" fill="#465669"/>
|
|
161
161
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.1378 2.19503C15.3982 2.45525 15.3984 2.87736 15.1382 3.13784L8.47156 9.81117C8.34656 9.9363 8.17695 10.0066 8.00009 10.0067C7.82322 10.0067 7.65358 9.93647 7.52851 9.8114L5.52851 7.8114C5.26816 7.55105 5.26816 7.12895 5.52851 6.8686C5.78886 6.60825 6.21097 6.60825 6.47132 6.8686L7.99968 8.39696L14.1949 2.1955C14.4552 1.93502 14.8773 1.93481 15.1378 2.19503Z" fill="#465669"/>
|
|
@@ -165,7 +165,7 @@ fill="#1B1C1D"
|
|
|
165
165
|
<rect width="16" height="16" fill="white"/>
|
|
166
166
|
</clipPath>
|
|
167
167
|
</defs>
|
|
168
|
-
`,
|
|
168
|
+
`,J2=`
|
|
169
169
|
<g clip-path="url(#clip0_3782_54923)">
|
|
170
170
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.23984 0.666626C5.06303 0.666626 4.89346 0.736864 4.76843 0.861888L0.861766 4.76856C0.736742 4.89358 0.666504 5.06315 0.666504 5.23996V10.76C0.666504 10.9368 0.736742 11.1063 0.861766 11.2314L4.76843 15.138C4.89346 15.2631 5.06303 15.3333 5.23984 15.3333H10.7598C10.9366 15.3333 11.1062 15.2631 11.2312 15.138L15.1379 11.2314C15.2629 11.1063 15.3332 10.9368 15.3332 10.76V5.23996C15.3332 5.06315 15.2629 4.89358 15.1379 4.76855L11.2312 0.861888C11.1062 0.736864 10.9366 0.666626 10.7598 0.666626H5.23984ZM10.4713 5.52858C10.7317 5.78892 10.7317 6.21103 10.4713 6.47138L8.94273 7.99998L10.4713 9.52858C10.7317 9.78893 10.7317 10.211 10.4713 10.4714C10.211 10.7317 9.78886 10.7317 9.52851 10.4714L7.99992 8.94279L6.47132 10.4714C6.21097 10.7317 5.78886 10.7317 5.52851 10.4714C5.26816 10.211 5.26816 9.78893 5.52851 9.52858L7.05711 7.99998L5.52851 6.47138C5.26816 6.21103 5.26816 5.78892 5.52851 5.52858C5.78886 5.26823 6.21097 5.26823 6.47132 5.52858L7.99992 7.05717L9.52851 5.52858C9.78886 5.26823 10.211 5.26823 10.4713 5.52858Z" fill="#000"/>
|
|
171
171
|
</g>
|
|
@@ -174,19 +174,19 @@ fill="#1B1C1D"
|
|
|
174
174
|
<rect width="16" height="16" fill="white"/>
|
|
175
175
|
</clipPath>
|
|
176
176
|
</defs>
|
|
177
|
-
`,
|
|
177
|
+
`,e5=`
|
|
178
178
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
179
179
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.8047 3.52876C14.0651 3.78911 14.0651 4.21122 13.8047 4.47157L6.4714 11.8049C6.21105 12.0653 5.78895 12.0653 5.5286 11.8049L2.19526 8.47157C1.93491 8.21122 1.93491 7.78911 2.19526 7.52876C2.45561 7.26841 2.87772 7.26841 3.13807 7.52876L6 10.3907L12.8619 3.52876C13.1223 3.26841 13.5444 3.26841 13.8047 3.52876Z" fill="#FAFBFC"/>
|
|
180
180
|
</svg>
|
|
181
|
-
`,
|
|
181
|
+
`,t5={"alert-triangle":q2,"alert-triangle-fill":z2,"circle-check":"","circle-check-fill":Y2,"circle-cross":$2,"circle-cross-fill":U2,"circle-info":Z2,"circle-info-fill":X2,"circle-denied":K2,"octagon-cross":J2,check:e5,"check-circle":G2},n5=`
|
|
182
182
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.66667 1.00004C2.5 1 2 1.5 2 2.62794V13.3721C2 14.5 2.5 15 3.66667 15L12.3333 15C13.5 15 14 14.5 14 13.3721V2.6279C14 1.5 13.5 1 12.3333 1L3.66667 1.00004ZM3.33333 2.62794C3.33333 2.44813 3.48257 2.30236 3.66667 2.30236L12.3333 2.30232C12.5174 2.30232 12.6667 2.44809 12.6667 2.6279V13.3721C12.6667 13.5519 12.5174 13.6976 12.3333 13.6976L9.5 13.6977V11.1667C9.5 10.8906 9.27614 10.6667 9 10.6667H7C6.72386 10.6667 6.5 10.8906 6.5 11.1667V13.6977L3.66667 13.6977C3.48257 13.6977 3.33333 13.5519 3.33333 13.3721V2.62794ZM5.5 7C5.5 6.72386 5.64924 6.5 5.83333 6.5H7.16667C7.35076 6.5 7.5 6.72386 7.5 7V8C7.5 8.27614 7.35076 8.5 7.16667 8.5H5.83333C5.64924 8.5 5.5 8.27614 5.5 8V7ZM5.83333 3.5C5.64924 3.5 5.5 3.72386 5.5 4V5C5.5 5.27614 5.64924 5.5 5.83333 5.5H7.16667C7.35076 5.5 7.5 5.27614 7.5 5V4C7.5 3.72386 7.35076 3.5 7.16667 3.5H5.83333ZM8.5 7C8.5 6.72386 8.64924 6.5 8.83333 6.5H10.1667C10.3508 6.5 10.5 6.72386 10.5 7V8C10.5 8.27614 10.3508 8.5 10.1667 8.5H8.83333C8.64924 8.5 8.5 8.27614 8.5 8V7ZM8.83333 3.5C8.64924 3.5 8.5 3.72386 8.5 4V5C8.5 5.27614 8.64924 5.5 8.83333 5.5H10.1667C10.3508 5.5 10.5 5.27614 10.5 5V4C10.5 3.72386 10.3508 3.5 10.1667 3.5H8.83333Z" fill="#1B1C1D"/>
|
|
183
|
-
`,
|
|
183
|
+
`,r5=`
|
|
184
184
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.66667 1.00004C2.5 1 2 1.5 2 2.62794V13.3721C2 14.5 2.5 15 3.66667 15L12.3333 15C13.5 15 14 14.5 14 13.3721V2.6279C14 1.5 13.5 1 12.3333 1L3.66667 1.00004ZM7 10.6667C6.72386 10.6667 6.5 10.8906 6.5 11.1667V13.6194H9.5V11.1667C9.5 10.8906 9.27614 10.6667 9 10.6667H7ZM5.5 7C5.5 6.72386 5.64924 6.5 5.83333 6.5H7.16667C7.35076 6.5 7.5 6.72386 7.5 7V8C7.5 8.27614 7.35076 8.5 7.16667 8.5H5.83333C5.64924 8.5 5.5 8.27614 5.5 8V7ZM5.83333 3.5C5.64924 3.5 5.5 3.72386 5.5 4V5C5.5 5.27614 5.64924 5.5 5.83333 5.5H7.16667C7.35076 5.5 7.5 5.27614 7.5 5V4C7.5 3.72386 7.35076 3.5 7.16667 3.5H5.83333ZM8.5 7C8.5 6.72386 8.64924 6.5 8.83333 6.5H10.1667C10.3508 6.5 10.5 6.72386 10.5 7V8C10.5 8.27614 10.3508 8.5 10.1667 8.5H8.83333C8.64924 8.5 8.5 8.27614 8.5 8V7ZM8.83333 3.5C8.64924 3.5 8.5 3.72386 8.5 4V5C8.5 5.27614 8.64924 5.5 8.83333 5.5H10.1667C10.3508 5.5 10.5 5.27614 10.5 5V4C10.5 3.72386 10.3508 3.5 10.1667 3.5H8.83333Z" fill="#1B1C1D"/>
|
|
185
|
-
`,
|
|
185
|
+
`,i5=`
|
|
186
186
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.3333 1.33332C11.3333 0.965133 11.0349 0.666656 10.6667 0.666656C10.2985 0.666656 10 0.965133 10 1.33332V2H6.00008V1.33332C6.00008 0.965133 5.7016 0.666656 5.33341 0.666656C4.96522 0.666656 4.66675 0.965133 4.66675 1.33332V2H3.33325C2.22868 2 1.33325 2.89543 1.33325 4V6.66667V13.3333C1.33325 14.4379 2.22868 15.3333 3.33325 15.3333H12.6666C13.7712 15.3333 14.6666 14.4379 14.6666 13.3333V6.66667V4C14.6666 2.89543 13.7712 2 12.6666 2H11.3333V1.33332ZM13.3333 6V4C13.3333 3.63181 13.0348 3.33333 12.6666 3.33333H11.3333V3.99999C11.3333 4.36818 11.0349 4.66666 10.6667 4.66666C10.2985 4.66666 10 4.36818 10 3.99999V3.33333H6.00008V3.99999C6.00008 4.36818 5.7016 4.66666 5.33341 4.66666C4.96522 4.66666 4.66675 4.36818 4.66675 3.99999V3.33333H3.33325C2.96506 3.33333 2.66659 3.63181 2.66659 4V6H13.3333ZM2.66659 7.33333H13.3333V13.3333C13.3333 13.7015 13.0348 14 12.6666 14H3.33325C2.96506 14 2.66659 13.7015 2.66659 13.3333V7.33333Z" fill="#1B1C1D"/>
|
|
187
|
-
`,
|
|
187
|
+
`,s5=`
|
|
188
188
|
<path d="M4 1.333h1.333v2.223H4V1.333ZM10.667 1.333H12v2.223h-1.333V1.333ZM1.778 4.444h3.555v5.334H1.778V4.444ZM6.222 4.444h3.556v5.334H6.222V4.444ZM10.667 4.444h3.555v5.334h-3.555V4.444ZM1.778 10.667h3.555v3.555H1.778v-3.555ZM6.222 10.667h3.556v3.555H6.222v-3.555ZM10.667 10.667h3.555v3.555h-3.555v-3.555Z" fill="#465669"/>
|
|
189
|
-
`,
|
|
189
|
+
`,o5=`
|
|
190
190
|
<g clip-path="url(#clip0_3796_55107)">
|
|
191
191
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 2.00001C4.68637 2.00001 2.00008 4.6863 2.00008 8.00001C2.00008 11.3137 4.68637 14 8.00008 14C11.3138 14 14.0001 11.3137 14.0001 8.00001C14.0001 4.6863 11.3138 2.00001 8.00008 2.00001ZM0.666748 8.00001C0.666748 3.94992 3.94999 0.666672 8.00008 0.666672C12.0502 0.666672 15.3334 3.94992 15.3334 8.00001C15.3334 12.0501 12.0502 15.3333 8.00008 15.3333C3.94999 15.3333 0.666748 12.0501 0.666748 8.00001Z" fill="#1B1C1D"/>
|
|
192
192
|
</g>
|
|
@@ -195,7 +195,7 @@ fill="#1B1C1D"
|
|
|
195
195
|
<rect width="16" height="16" fill="white"/>
|
|
196
196
|
</clipPath>
|
|
197
197
|
</defs>
|
|
198
|
-
`,
|
|
198
|
+
`,a5=`
|
|
199
199
|
<g clip-path="url(#clip0_3782_54675)">
|
|
200
200
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.666748 7.99999C0.666748 3.9499 3.94999 0.666656 8.00008 0.666656C12.0502 0.666656 15.3334 3.9499 15.3334 7.99999C15.3334 12.0501 12.0502 15.3333 8.00008 15.3333C3.94999 15.3333 0.666748 12.0501 0.666748 7.99999Z" fill="black"/>
|
|
201
201
|
</g>
|
|
@@ -204,7 +204,7 @@ fill="#1B1C1D"
|
|
|
204
204
|
<rect width="16" height="16" fill="white"/>
|
|
205
205
|
</clipPath>
|
|
206
206
|
</defs>
|
|
207
|
-
`,
|
|
207
|
+
`,l5=`
|
|
208
208
|
<g clip-path="url(#clip0_3782_54676)">
|
|
209
209
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.00008 7.99999C2.00008 4.68628 4.68637 1.99999 8.00008 1.99999C11.3138 1.99999 14.0001 4.68628 14.0001 7.99999C14.0001 11.3137 11.3138 14 8.00008 14C4.68637 14 2.00008 11.3137 2.00008 7.99999ZM8.00008 0.666656C3.94999 0.666656 0.666748 3.9499 0.666748 7.99999C0.666748 12.0501 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.0501 15.3334 7.99999C15.3334 3.9499 12.0502 0.666656 8.00008 0.666656ZM8.66659 4.00001C8.66659 3.63182 8.36811 3.33334 7.99992 3.33334C7.63173 3.33334 7.33325 3.63182 7.33325 4.00001V8.00001C7.33325 8.25252 7.47592 8.48337 7.70178 8.59629L10.3684 9.92963C10.6978 10.0943 11.0982 9.9608 11.2629 9.63149C11.4275 9.30217 11.294 8.90172 10.9647 8.73706L8.66659 7.58799V4.00001Z" fill="#1B1C1D"/>
|
|
210
210
|
</g>
|
|
@@ -213,7 +213,7 @@ fill="#1B1C1D"
|
|
|
213
213
|
<rect width="16" height="16" fill="white"/>
|
|
214
214
|
</clipPath>
|
|
215
215
|
</defs>
|
|
216
|
-
`,
|
|
216
|
+
`,c5=`
|
|
217
217
|
<g clip-path="url(#clip0_3782_54737)">
|
|
218
218
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 0.666656C3.94999 0.666656 0.666748 3.9499 0.666748 7.99999C0.666748 12.0501 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.0501 15.3334 7.99999C15.3334 3.9499 12.0502 0.666656 8.00008 0.666656ZM8.66659 4.00001C8.66659 3.63182 8.36811 3.33334 7.99992 3.33334C7.63173 3.33334 7.33325 3.63182 7.33325 4.00001V8.00001C7.33325 8.25252 7.47592 8.48337 7.70178 8.59629L10.3684 9.92963C10.6978 10.0943 11.0982 9.9608 11.2629 9.63149C11.4275 9.30217 11.294 8.90172 10.9647 8.73706L8.66659 7.58799V4.00001Z" fill="#1B1C1D"/>
|
|
219
219
|
</g>
|
|
@@ -222,18 +222,18 @@ fill="#1B1C1D"
|
|
|
222
222
|
<rect width="16" height="16" fill="white"/>
|
|
223
223
|
</clipPath>
|
|
224
224
|
</defs>
|
|
225
|
-
`,
|
|
225
|
+
`,u5=`
|
|
226
226
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.66659 0.666667C8.66659 0.298477 8.36811 0 7.99992 0C7.63173 0 7.33325 0.298477 7.33325 0.666667V2.66666H6.33325C5.5376 2.66666 4.77454 2.98273 4.21193 3.54534C3.64932 4.10795 3.33325 4.87101 3.33325 5.66666C3.33325 6.46231 3.64932 7.22537 4.21193 7.78798C4.77454 8.35059 5.5376 8.66666 6.33325 8.66666H7.33325V12H3.99992C3.63173 12 3.33325 12.2985 3.33325 12.6667C3.33325 13.0348 3.63173 13.3333 3.99992 13.3333H7.33325V15.3333C7.33325 15.7015 7.63173 16 7.99992 16C8.36811 16 8.66659 15.7015 8.66659 15.3333V13.3333H9.66659C10.4622 13.3333 11.2253 13.0173 11.7879 12.4546C12.3505 11.892 12.6666 11.129 12.6666 10.3333C12.6666 9.53767 12.3505 8.77461 11.7879 8.212C11.2253 7.64939 10.4622 7.33332 9.66659 7.33332H8.66659V3.99999H11.3333C11.7014 3.99999 11.9999 3.70151 11.9999 3.33332C11.9999 2.96513 11.7014 2.66666 11.3333 2.66666H8.66659V0.666667ZM7.33325 3.99999H6.33325C5.89122 3.99999 5.4673 4.17558 5.15474 4.48815C4.84218 4.80071 4.66659 5.22463 4.66659 5.66666C4.66659 6.10868 4.84218 6.53261 5.15474 6.84517C5.4673 7.15773 5.89122 7.33332 6.33325 7.33332H7.33325V3.99999ZM8.66659 8.66666V12H9.66659C10.1086 12 10.5325 11.8244 10.8451 11.5118C11.1577 11.1993 11.3333 10.7754 11.3333 10.3333C11.3333 9.8913 11.1577 9.46737 10.8451 9.15481C10.5325 8.84225 10.1086 8.66666 9.66659 8.66666H8.66659Z" fill="#1B1C1D"/>
|
|
227
|
-
`,
|
|
227
|
+
`,h5=`
|
|
228
228
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.24877 8C2.31252 8.11017 2.39704 8.25057 2.50174 8.41269C2.77067 8.8291 3.16893 9.38285 3.68598 9.93437C4.73072 11.0488 6.19138 12.0833 8 12.0833C9.80862 12.0833 11.2693 11.0488 12.314 9.93437C12.8311 9.38285 13.2293 8.8291 13.4983 8.41269C13.603 8.25057 13.6875 8.11017 13.7512 8C13.6875 7.88983 13.603 7.74943 13.4983 7.58731C13.2293 7.1709 12.8311 6.61715 12.314 6.06563C11.2693 4.95124 9.80862 3.91667 8 3.91667C6.19138 3.91667 4.73072 4.95124 3.68598 6.06563C3.16893 6.61715 2.77067 7.1709 2.50174 7.58731C2.39704 7.74943 2.31252 7.88983 2.24877 8ZM14.4167 8C14.9384 7.73913 14.9383 7.73893 14.9382 7.73871L14.9373 7.73684L14.9353 7.73286L14.9286 7.7199C14.9231 7.70908 14.9152 7.69393 14.9051 7.67476C14.8848 7.63641 14.8553 7.58188 14.8169 7.51349C14.74 7.37679 14.6268 7.18422 14.4783 6.95436C14.1821 6.49577 13.7418 5.88285 13.1651 5.2677C12.0224 4.04876 10.2747 2.75 8 2.75C5.72529 2.75 3.97761 4.04876 2.83485 5.2677C2.25815 5.88285 1.81787 6.49577 1.5217 6.95436C1.37325 7.18422 1.26005 7.37679 1.18315 7.51349C1.14468 7.58188 1.11523 7.63641 1.09494 7.67476C1.08479 7.69393 1.07693 7.70908 1.07136 7.7199L1.06474 7.73286L1.06273 7.73684L1.06205 7.7382C1.06194 7.73841 1.06158 7.73913 1.58333 8L1.06158 7.73913C0.979472 7.90335 0.979472 8.09665 1.06158 8.26087L1.58333 8C1.06158 8.26087 1.06148 8.26066 1.06158 8.26087L1.06273 8.26316L1.06474 8.26714L1.07136 8.2801C1.07693 8.29092 1.08479 8.30607 1.09494 8.32524C1.11523 8.36359 1.14468 8.41812 1.18315 8.48651C1.26005 8.62321 1.37325 8.81578 1.5217 9.04564C1.81787 9.50423 2.25815 10.1172 2.83485 10.7323C3.97761 11.9512 5.72529 13.25 8 13.25C10.2747 13.25 12.0224 11.9512 13.1651 10.7323C13.7418 10.1172 14.1821 9.50423 14.4783 9.04564C14.6268 8.81578 14.74 8.62321 14.8169 8.48651C14.8553 8.41812 14.8848 8.36359 14.9051 8.32524C14.9152 8.30607 14.9231 8.29092 14.9286 8.2801L14.9353 8.26714L14.9373 8.26316L14.938 8.2618C14.9381 8.26159 14.9384 8.26087 14.4167 8ZM14.4167 8L14.9384 8.26087C15.0205 8.09665 15.0203 7.90294 14.9382 7.73871L14.4167 8Z" fill="#1B1C1D"/>
|
|
229
229
|
<path d="M5.66699 8.00008C5.66699 6.71142 6.71166 5.66675 8.00033 5.66675C9.28899 5.66675 10.3337 6.71142 10.3337 8.00008C10.3337 9.28875 9.28899 10.3334 8.00033 10.3334C6.71166 10.3334 5.66699 9.28875 5.66699 8.00008Z" fill="#1B1C1D"/>
|
|
230
|
-
`,
|
|
230
|
+
`,d5=`
|
|
231
231
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.87081 2.05086C2.64301 1.82305 2.27366 1.82305 2.04585 2.05086C1.81805 2.27867 1.81805 2.64801 2.04585 2.87582L3.66495 4.49491C2.60983 5.40315 1.72937 6.49914 1.06933 7.7292C0.979706 7.89621 0.976819 8.09636 1.06158 8.26589L1.58333 8.00501C1.06158 8.26589 1.06205 8.26682 1.06205 8.26682L1.06273 8.26817L1.06474 8.27216L1.07136 8.28512C1.07693 8.29594 1.08479 8.31108 1.09494 8.33026C1.11523 8.36861 1.14468 8.42313 1.18315 8.49152C1.26005 8.62822 1.37325 8.8208 1.5217 9.05065C1.81787 9.50925 2.25815 10.1222 2.83485 10.7373C3.97761 11.9563 5.72529 13.2551 8 13.2551L8.00954 13.2549C9.21612 13.2352 10.3895 12.8779 11.3986 12.2285L13.1292 13.9592C13.357 14.187 13.7263 14.187 13.9541 13.9592C14.182 13.7313 14.182 13.362 13.9541 13.1342L11.883 11.063C11.879 11.059 11.875 11.0549 11.871 11.051L9.88525 9.0653C10.0617 8.75216 10.1624 8.39062 10.1624 8.00557C10.1624 6.81165 9.1945 5.84378 8.00057 5.84378C7.61552 5.84378 7.25399 5.94444 6.94085 6.1209L4.95295 4.133C4.94901 4.12894 4.94502 4.12495 4.94098 4.12103L2.87081 2.05086ZM4.49248 5.32244C3.59602 6.08081 2.83712 6.98894 2.24983 8.00686C2.31346 8.11675 2.39762 8.25649 2.50174 8.41771C2.77067 8.83411 3.16893 9.38786 3.68598 9.93938C4.72981 11.0528 6.18883 12.0865 7.99527 12.0883C8.89679 12.0728 9.7755 11.8272 10.55 11.38L9.06029 9.89025C8.74715 10.0667 8.38562 10.1674 8.00057 10.1674C6.80665 10.1674 5.83878 9.1995 5.83878 8.00557C5.83878 7.62053 5.93944 7.25899 6.11589 6.94586L4.49248 5.32244ZM6.90795 4.04633C7.26545 3.96265 7.63147 3.92082 7.99863 3.92168L8 3.92168C9.80862 3.92168 11.2693 4.95626 12.314 6.07065C12.8311 6.62217 13.2293 7.17592 13.4983 7.59232C13.6026 7.7538 13.6868 7.89374 13.7505 8.00371C13.4487 8.52894 13.1006 9.02645 12.7103 9.49027C12.5029 9.73678 12.5346 10.1048 12.7811 10.3122C13.0276 10.5196 13.3956 10.4879 13.603 10.2414C14.1128 9.63562 14.5579 8.97825 14.9311 8.28C15.0203 8.11314 15.023 7.91337 14.9384 7.74414C14.9276 7.72291 14.9162 7.70083 14.9051 7.67977C14.8848 7.64142 14.8553 7.5869 14.8169 7.51851C14.74 7.38181 14.6268 7.18923 14.4783 6.95937C14.1821 6.50078 13.7418 5.88786 13.1651 5.27272C12.0225 4.05389 10.2751 2.75528 8.00069 2.75501C7.54332 2.75399 7.08738 2.80613 6.64205 2.91037C6.32836 2.98379 6.13359 3.29761 6.20702 3.6113C6.28045 3.92498 6.59426 4.11975 6.90795 4.04633Z" fill="#1B1C1D"/>
|
|
232
|
-
`,
|
|
232
|
+
`,f5=`
|
|
233
233
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4 0.666656C3.46957 0.666656 2.96086 0.87737 2.58579 1.25244C2.21071 1.62752 2 2.13622 2 2.66666V13.3333C2 13.8638 2.21071 14.3725 2.58579 14.7475C2.96086 15.1226 3.46957 15.3333 4 15.3333H12C12.5304 15.3333 13.0391 15.1226 13.4142 14.7475C13.7893 14.3725 14 13.8638 14 13.3333V5.99999C14 5.99789 14 5.99579 14 5.99369C13.9983 5.81928 13.9284 5.65236 13.805 5.52884C13.8049 5.52876 13.8048 5.52867 13.8047 5.52859L9.13834 0.862184L9.13807 0.861919C9.01305 0.736894 8.84348 0.666656 8.66667 0.666656M8 1.99999H4C3.82319 1.99999 3.65362 2.07023 3.5286 2.19525C3.40357 2.32028 3.33333 2.48985 3.33333 2.66666V13.3333C3.33333 13.5101 3.40357 13.6797 3.5286 13.8047C3.65362 13.9298 3.82319 14 4 14H12C12.1768 14 12.3464 13.9298 12.4714 13.8047C12.5964 13.6797 12.6667 13.5101 12.6667 13.3333V6.66666H8.66667C8.29848 6.66666 8 6.36818 8 5.99999V1.99999ZM11.7239 5.33332L9.33333 2.9428V5.33332H11.7239Z" fill="#1B1C1D"/>
|
|
234
|
-
`,
|
|
234
|
+
`,p5=`
|
|
235
235
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.99999C7.29276 1.99999 6.61448 2.28094 6.11438 2.78104C5.61428 3.28114 5.33333 3.95941 5.33333 4.66666V6.66666H10.6667V4.66666C10.6667 3.95941 10.3857 3.28114 9.88562 2.78104C9.38552 2.28094 8.70724 1.99999 8 1.99999ZM4 4.66666V6.66666H3.33325C2.22868 6.66666 1.33325 7.56209 1.33325 8.66666V13.3333C1.33325 14.4379 2.22868 15.3333 3.33325 15.3333H12.6666C13.7712 15.3333 14.6666 14.4379 14.6666 13.3333V8.66666C14.6666 7.56209 13.7712 6.66666 12.6666 6.66666H12V4.66666C12 3.60579 11.5786 2.58837 10.8284 1.83823C10.0783 1.08808 9.06087 0.666656 8 0.666656C6.93913 0.666656 5.92172 1.08808 5.17157 1.83823C4.42143 2.58837 4 3.60579 4 4.66666ZM4.66667 7.99999H11.3333H12.6666C13.0348 7.99999 13.3333 8.29847 13.3333 8.66666V13.3333C13.3333 13.7015 13.0348 14 12.6666 14H3.33325C2.96506 14 2.66659 13.7015 2.66659 13.3333V8.66666C2.66659 8.29847 2.96506 7.99999 3.33325 7.99999H4.66667ZM8.00012 9C7.63276 9 7.33496 9.2978 7.33496 9.66516V12.3348C7.33496 12.7022 7.63276 13 8.00012 13C8.36748 13 8.66528 12.7022 8.66528 12.3348V9.66516C8.66528 9.2978 8.36748 9 8.00012 9Z" fill="#1B1C1D"/>
|
|
236
|
-
`,
|
|
236
|
+
`,m5=`
|
|
237
237
|
<g clip-path="url(#clip0_3851_55740)">
|
|
238
238
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 0.666656C3.94999 0.666656 0.666748 3.9499 0.666748 7.99999C0.666748 12.0501 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.0501 15.3334 7.99999C15.3334 3.9499 12.0502 0.666656 8.00008 0.666656ZM8.00003 6.66669L8 1.93143L7.9797 1.9314C4.5545 1.9314 1.77783 4.70807 1.77783 8.13326C1.77783 11.5585 4.5545 14.3351 7.9797 14.3351C9.41051 14.3351 10.7282 13.8506 11.7775 13.0367L8.80002 9.06664C8.28075 8.37427 8.00004 7.53215 8.00003 6.66669Z" fill="black"/>
|
|
239
239
|
</g>
|
|
@@ -242,9 +242,9 @@ fill="#1B1C1D"
|
|
|
242
242
|
<rect width="16" height="16" fill="white"/>
|
|
243
243
|
</clipPath>
|
|
244
244
|
</defs>
|
|
245
|
-
`,
|
|
245
|
+
`,g5=`
|
|
246
246
|
<path d="M15.375 9.5C15.375 9.59946 15.3354 9.69484 15.2651 9.76517C15.1948 9.83549 15.0994 9.875 15 9.875H13.875V11C13.875 11.0995 13.8354 11.1948 13.7651 11.2652C13.6948 11.3355 13.5994 11.375 13.5 11.375C13.4005 11.375 13.3051 11.3355 13.2348 11.2652C13.1645 11.1948 13.125 11.0995 13.125 11V9.875H12C11.9005 9.875 11.8051 9.83549 11.7348 9.76517C11.6645 9.69484 11.625 9.59946 11.625 9.5C11.625 9.40055 11.6645 9.30516 11.7348 9.23484C11.8051 9.16451 11.9005 9.125 12 9.125H13.125V8C13.125 7.90055 13.1645 7.80516 13.2348 7.73484C13.3051 7.66451 13.4005 7.625 13.5 7.625C13.5994 7.625 13.6948 7.66451 13.7651 7.73484C13.8354 7.80516 13.875 7.90055 13.875 8V9.125H15C15.0994 9.125 15.1948 9.16451 15.2651 9.23484C15.3354 9.30516 15.375 9.40055 15.375 9.5ZM3.49996 4.375H4.62496V5.5C4.62496 5.59946 4.66446 5.69484 4.73479 5.76517C4.80512 5.83549 4.9005 5.875 4.99996 5.875C5.09941 5.875 5.19479 5.83549 5.26512 5.76517C5.33545 5.69484 5.37496 5.59946 5.37496 5.5V4.375H6.49996C6.59941 4.375 6.69479 4.33549 6.76512 4.26517C6.83545 4.19484 6.87496 4.09946 6.87496 4C6.87496 3.90055 6.83545 3.80516 6.76512 3.73484C6.69479 3.66451 6.59941 3.625 6.49996 3.625H5.37496V2.5C5.37496 2.40055 5.33545 2.30516 5.26512 2.23484C5.19479 2.16451 5.09941 2.125 4.99996 2.125C4.9005 2.125 4.80512 2.16451 4.73479 2.23484C4.66446 2.30516 4.62496 2.40055 4.62496 2.5V3.625H3.49996C3.4005 3.625 3.30512 3.66451 3.23479 3.73484C3.16446 3.80516 3.12496 3.90055 3.12496 4C3.12496 4.09946 3.16446 4.19484 3.23479 4.26517C3.30512 4.33549 3.4005 4.375 3.49996 4.375ZM11.5 12.125H10.875V11.5C10.875 11.4005 10.8354 11.3052 10.7651 11.2348C10.6948 11.1645 10.5994 11.125 10.5 11.125C10.4005 11.125 10.3051 11.1645 10.2348 11.2348C10.1645 11.3052 10.125 11.4005 10.125 11.5V12.125H9.49996C9.4005 12.125 9.30512 12.1645 9.23479 12.2348C9.16446 12.3052 9.12496 12.4005 9.12496 12.5C9.12496 12.5995 9.16446 12.6948 9.23479 12.7652C9.30512 12.8355 9.4005 12.875 9.49996 12.875H10.125V13.5C10.125 13.5995 10.1645 13.6948 10.2348 13.7652C10.3051 13.8355 10.4005 13.875 10.5 13.875C10.5994 13.875 10.6948 13.8355 10.7651 13.7652C10.8354 13.6948 10.875 13.5995 10.875 13.5V12.875H11.5C11.5994 12.875 11.6948 12.8355 11.7651 12.7652C11.8354 12.6948 11.875 12.5995 11.875 12.5C11.875 12.4005 11.8354 12.3052 11.7651 12.2348C11.6948 12.1645 11.5994 12.125 11.5 12.125ZM13.6187 4.91188L4.91121 13.6188C4.82995 13.7 4.73349 13.7645 4.62732 13.8085C4.52116 13.8524 4.40737 13.8751 4.29246 13.8751C4.17754 13.8751 4.06375 13.8524 3.95759 13.8085C3.85142 13.7645 3.75496 13.7 3.67371 13.6188L2.38058 12.3256C2.29932 12.2444 2.23486 12.1479 2.19088 12.0417C2.1469 11.9356 2.12427 11.8218 2.12427 11.7069C2.12427 11.592 2.1469 11.4782 2.19088 11.372C2.23486 11.2658 2.29932 11.1694 2.38058 11.0881L11.0881 2.38125C11.1693 2.29999 11.2658 2.23553 11.372 2.19155C11.4781 2.14757 11.5919 2.12494 11.7068 2.12494C11.8217 2.12494 11.9355 2.14757 12.0417 2.19155C12.1479 2.23553 12.2443 2.29999 12.3256 2.38125L13.6187 3.67438C13.7 3.75563 13.7644 3.85209 13.8084 3.95826C13.8524 4.06442 13.875 4.17821 13.875 4.29313C13.875 4.40804 13.8524 4.52183 13.8084 4.628C13.7644 4.73416 13.7 4.83062 13.6187 4.91188ZM13.0881 4.20438L11.7956 2.91188C11.784 2.90026 11.7702 2.89104 11.755 2.88474C11.7398 2.87845 11.7236 2.87522 11.7071 2.87522C11.6907 2.87522 11.6744 2.87845 11.6593 2.88474C11.6441 2.89104 11.6303 2.90026 11.6187 2.91188L9.52996 5L11 6.47L13.0881 4.38125C13.0997 4.36964 13.1089 4.35586 13.1152 4.34068C13.1215 4.32551 13.1247 4.30924 13.1247 4.29281C13.1247 4.27639 13.1215 4.26012 13.1152 4.24495C13.1089 4.22977 13.0997 4.21599 13.0881 4.20438Z" fill="black"/>
|
|
247
|
-
`,
|
|
247
|
+
`,y5=`
|
|
248
248
|
<g clip-path="url(#clip0_3782_54679)">
|
|
249
249
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.8048 0.195262C11.5445 -0.0650874 11.1224 -0.0650874 10.862 0.195262C10.6017 0.455612 10.6017 0.877722 10.862 1.13807L12.3906 2.66666H4.66659C3.78253 2.66666 2.93468 3.01785 2.30956 3.64297C1.68444 4.26809 1.33325 5.11594 1.33325 5.99999V7.33332C1.33325 7.70151 1.63173 7.99999 1.99992 7.99999C2.36811 7.99999 2.66659 7.70151 2.66659 7.33332V5.99999C2.66659 5.46956 2.8773 4.96085 3.25237 4.58578C3.62744 4.2107 4.13615 3.99999 4.66659 3.99999H12.3906L10.862 5.5286C10.6017 5.78895 10.6017 6.21105 10.862 6.4714C11.1224 6.73175 11.5445 6.73175 11.8048 6.4714L14.4715 3.80474C14.7318 3.54439 14.7318 3.12228 14.4715 2.86193L11.8048 0.195262ZM5.13799 9.52861C5.39834 9.78895 5.39834 10.2111 5.13799 10.4714L3.60941 12H11.3333C11.8637 12 12.3724 11.7893 12.7475 11.4142C13.1225 11.0391 13.3333 10.5304 13.3333 10V8.66667C13.3333 8.29848 13.6317 8 13.9999 8C14.3681 8 14.6666 8.29848 14.6666 8.66667V10C14.6666 10.8841 14.3154 11.7319 13.6903 12.357C13.0652 12.9821 12.2173 13.3333 11.3333 13.3333H3.60938L5.13799 14.8619C5.39834 15.1223 5.39834 15.5444 5.13799 15.8047C4.87764 16.0651 4.45553 16.0651 4.19518 15.8047L1.52851 13.1381C1.46307 13.0726 1.41407 12.997 1.38153 12.9162C1.3504 12.8391 1.33325 12.7549 1.33325 12.6667C1.33325 12.5741 1.35211 12.486 1.3862 12.4059C1.41537 12.3371 1.4566 12.2723 1.50989 12.2147C1.51667 12.2073 1.52362 12.2001 1.53073 12.1931L4.19518 9.52861C4.45553 9.26826 4.87764 9.26826 5.13799 9.52861Z" fill="#1B1C1D"/>
|
|
250
250
|
</g>
|
|
@@ -253,14 +253,14 @@ fill="#1B1C1D"
|
|
|
253
253
|
<rect width="16" height="16" fill="white"/>
|
|
254
254
|
</clipPath>
|
|
255
255
|
</defs>
|
|
256
|
-
`,
|
|
256
|
+
`,b5=`
|
|
257
257
|
<path d="M10.9084 9.55292C11.2613 9.55292 11.5474 9.693 11.5474 9.8658V12.647C11.5474 12.8198 11.2613 12.9598 10.9084 12.9598C10.5555 12.9598 10.2694 12.8198 10.2694 12.647V9.8658C10.2694 9.693 10.5555 9.55292 10.9084 9.55292Z" fill="#1B1C1D"/>
|
|
258
258
|
<path d="M8.94519 8.18461C8.94519 7.91792 8.65911 7.70172 8.30621 7.70172C7.95332 7.70172 7.66724 7.91792 7.66724 8.18461V12.4769C7.66724 12.7436 7.95332 12.9598 8.30621 12.9598C8.65911 12.9598 8.94519 12.7436 8.94519 12.4769V8.18461Z" fill="#1B1C1D"/>
|
|
259
259
|
<path d="M5.70404 9.5529C6.05694 9.5529 6.34302 9.69298 6.34302 9.86578V12.6469C6.34302 12.8197 6.05694 12.9598 5.70404 12.9598C5.35114 12.9598 5.06506 12.8197 5.06506 12.6469V9.86578C5.06506 9.69298 5.35114 9.5529 5.70404 9.5529Z" fill="#1B1C1D"/>
|
|
260
260
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.8335 2.16667V1.99999C4.8335 1.35566 5.35583 0.833328 6.00016 0.833328H10.0002C10.6445 0.833328 11.1668 1.35566 11.1668 1.99999V2.16667H12.0001C12.4863 2.16667 12.9526 2.35983 13.2964 2.70364C13.6403 3.04746 13.8334 3.51377 13.8334 4.00001V13.3333C13.8334 13.8196 13.6403 14.2859 13.2964 14.6297C12.9526 14.9735 12.4863 15.1667 12.0001 15.1667H4.00008C3.51385 15.1667 3.04754 14.9735 2.70372 14.6297C2.3599 14.2859 2.16675 13.8196 2.16675 13.3333V4.00001C2.16675 3.51377 2.3599 3.04746 2.70372 2.70364C3.04754 2.35983 3.51385 2.16667 4.00008 2.16667H4.8335ZM5.8335 1.99999C5.8335 1.90795 5.90812 1.83333 6.00016 1.83333H10.0002C10.0922 1.83333 10.1668 1.90795 10.1668 1.99999V2.65752C10.1668 2.66057 10.1667 2.66362 10.1667 2.66667C10.1667 2.66973 10.1668 2.67278 10.1668 2.67582V3.33333C10.1668 3.42538 10.0922 3.49999 10.0002 3.49999H6.00016C5.90812 3.49999 5.8335 3.42538 5.8335 3.33333V1.99999ZM11.1668 3.16667V3.33333C11.1668 3.97766 10.6445 4.49999 10.0002 4.49999H6.00016C5.35583 4.49999 4.8335 3.97766 4.8335 3.33333V3.16667H4.00008C3.77907 3.16667 3.56711 3.25447 3.41083 3.41075C3.25455 3.56703 3.16675 3.77899 3.16675 4.00001V13.3333C3.16675 13.5544 3.25455 13.7663 3.41083 13.9226C3.56711 14.0789 3.77907 14.1667 4.00008 14.1667H12.0001C12.2211 14.1667 12.4331 14.0789 12.5893 13.9226C12.7456 13.7663 12.8334 13.5544 12.8334 13.3333V4.00001C12.8334 3.77899 12.7456 3.56703 12.5893 3.41075C12.4331 3.25447 12.2211 3.16667 12.0001 3.16667H11.1668Z" fill="#1B1C1D"/>
|
|
261
|
-
`,
|
|
261
|
+
`,v5=`
|
|
262
262
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.05421 1.67267C8.18323 1.9016 8.16574 2.18495 8.00954 2.39626C7.44006 3.1667 7.16603 4.11595 7.23727 5.07136C7.30852 6.02676 7.72032 6.92487 8.39777 7.60232C9.07522 8.27977 9.97332 8.69157 10.9287 8.76282C11.8841 8.83406 12.8334 8.56003 13.6038 7.99055C13.8151 7.83435 14.0985 7.81686 14.3274 7.94588C14.5563 8.07489 14.6881 8.32635 14.6639 8.58801C14.5474 9.8489 14.0742 11.0505 13.2997 12.0523C12.5251 13.0541 11.4813 13.8145 10.2904 14.2447C9.09943 14.6749 7.81059 14.757 6.57468 14.4814C5.33876 14.2058 4.20689 13.584 3.31151 12.6886C2.41613 11.7932 1.79426 10.6613 1.51868 9.42541C1.2431 8.1895 1.32521 6.90066 1.75539 5.70971C2.18557 4.51875 2.94603 3.47494 3.9478 2.70041C4.94956 1.92589 6.15119 1.45268 7.41208 1.33615C7.67374 1.31197 7.9252 1.44375 8.05421 1.67267ZM6.21102 2.95936C5.69261 3.14693 5.20383 3.41467 4.76335 3.75524C3.96194 4.37486 3.35356 5.20991 3.00942 6.16267C2.66528 7.11543 2.59959 8.1465 2.82006 9.13524C3.04052 10.124 3.53801 11.0295 4.25432 11.7458C4.97063 12.4621 5.87612 12.9596 6.86485 13.18C7.85358 13.4005 8.88465 13.3348 9.83742 12.9907C10.7902 12.6465 11.6252 12.0382 12.2449 11.2367C12.5854 10.7963 12.8532 10.3075 13.0407 9.78907C12.3386 10.0431 11.5856 10.1488 10.8296 10.0925C9.5557 9.99746 8.35823 9.4484 7.45496 8.54513C6.55169 7.64186 6.00263 6.44439 5.90763 5.17051C5.85126 4.41453 5.95702 3.66145 6.21102 2.95936Z" fill="#465669"/>
|
|
263
|
-
`,
|
|
263
|
+
`,C5=`
|
|
264
264
|
<g clip-path="url(#clip0_8662_58179)">
|
|
265
265
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 5.33333C6.52724 5.33333 5.33333 6.52724 5.33333 8C5.33333 9.47276 6.52724 10.6667 8 10.6667C9.47276 10.6667 10.6667 9.47276 10.6667 8C10.6667 6.52724 9.47276 5.33333 8 5.33333ZM4 8C4 5.79086 5.79086 4 8 4C10.2091 4 12 5.79086 12 8C12 10.2091 10.2091 12 8 12C5.79086 12 4 10.2091 4 8Z" fill="#465669"/>
|
|
266
266
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C8.36819 0 8.66667 0.298477 8.66667 0.666667V2C8.66667 2.36819 8.36819 2.66667 8 2.66667C7.63181 2.66667 7.33333 2.36819 7.33333 2V0.666667C7.33333 0.298477 7.63181 0 8 0Z" fill="#465669"/>
|
|
@@ -277,31 +277,31 @@ fill="#1B1C1D"
|
|
|
277
277
|
<rect width="16" height="16" fill="white"/>
|
|
278
278
|
</clipPath>
|
|
279
279
|
</defs>
|
|
280
|
-
`,
|
|
280
|
+
`,w5=`
|
|
281
281
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.00008 4.66668C6.00008 3.56211 6.89551 2.66668 8.00008 2.66668C9.10465 2.66668 10.0001 3.56211 10.0001 4.66668C10.0001 5.77125 9.10465 6.66668 8.00008 6.66668C6.89551 6.66668 6.00008 5.77125 6.00008 4.66668ZM8.00008 1.33334C6.15913 1.33334 4.66675 2.82573 4.66675 4.66668C4.66675 6.50763 6.15913 8.00001 8.00008 8.00001C9.84103 8.00001 11.3334 6.50763 11.3334 4.66668C11.3334 2.82573 9.84103 1.33334 8.00008 1.33334ZM5.33333 9.33334C4.44928 9.33334 3.60143 9.68453 2.97631 10.3097C2.35119 10.9348 2 11.7826 2 12.6667V14C2 14.3682 2.29848 14.6667 2.66667 14.6667C3.03486 14.6667 3.33333 14.3682 3.33333 14V12.6667C3.33333 12.1362 3.54405 11.6275 3.91912 11.2525C4.29419 10.8774 4.8029 10.6667 5.33333 10.6667H10.6667C11.1971 10.6667 11.7058 10.8774 12.0809 11.2525C12.456 11.6275 12.6667 12.1362 12.6667 12.6667V14C12.6667 14.3682 12.9651 14.6667 13.3333 14.6667C13.7015 14.6667 14 14.3682 14 14V12.6667C14 11.7826 13.6488 10.9348 13.0237 10.3097C12.3986 9.68453 11.5507 9.33334 10.6667 9.33334H5.33333Z" fill="#1B1C1D"/>
|
|
282
|
-
`,
|
|
282
|
+
`,k5=`
|
|
283
283
|
<path d="M8.00008 1.33331C6.15913 1.33331 4.66675 2.8257 4.66675 4.66665C4.66675 6.5076 6.15913 7.99998 8.00008 7.99998C9.84103 7.99998 11.3334 6.5076 11.3334 4.66665C11.3334 2.8257 9.84103 1.33331 8.00008 1.33331Z" fill="#1B1C1D"/>
|
|
284
284
|
<path d="M5.33333 9.33331C4.44928 9.33331 3.60143 9.6845 2.97631 10.3096C2.35119 10.9347 2 11.7826 2 12.6666V14C2 14.3682 2.29848 14.6666 2.66667 14.6666H13.3333C13.7015 14.6666 14 14.3682 14 14V12.6666C14 11.7826 13.6488 10.9347 13.0237 10.3096C12.3986 9.6845 11.5507 9.33331 10.6667 9.33331H5.33333Z" fill="#1B1C1D"/>
|
|
285
|
-
`,
|
|
285
|
+
`,x5=`
|
|
286
286
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.33502 4.94417C4.33502 3.9321 5.15546 3.11167 6.16752 3.11167C7.17958 3.11167 8.00002 3.9321 8.00002 4.94417C8.00002 5.95623 7.17958 6.77667 6.16752 6.77667C5.15546 6.77667 4.33502 5.95623 4.33502 4.94417ZM6.16752 1.89C4.48075 1.89 3.11335 3.2574 3.11335 4.94417C3.11335 6.63094 4.48075 7.99833 6.16752 7.99833C7.85429 7.99833 9.22169 6.63094 9.22169 4.94417C9.22169 3.2574 7.85429 1.89 6.16752 1.89ZM3.72409 9.21999C2.91407 9.21999 2.13723 9.54177 1.56447 10.1145C0.991699 10.6873 0.669922 11.4641 0.669922 12.2742V13.4958C0.669922 13.8332 0.943401 14.1067 1.28076 14.1067C1.61811 14.1067 1.89159 13.8332 1.89159 13.4958V12.2742C1.89159 11.7882 2.08465 11.322 2.42832 10.9784C2.77198 10.6347 3.23808 10.4417 3.72409 10.4417H8.61076C9.09676 10.4417 9.56287 10.6347 9.90653 10.9784C10.2502 11.322 10.4433 11.7882 10.4433 12.2742V13.4958C10.4433 13.8332 10.7167 14.1067 11.0541 14.1067C11.3914 14.1067 11.6649 13.8332 11.6649 13.4958V12.2742C11.6649 11.4641 11.3431 10.6873 10.7704 10.1145C10.1976 9.54177 9.42077 9.21999 8.61076 9.21999H3.72409ZM12.2952 9.75752C12.3795 9.43088 12.7127 9.23445 13.0393 9.31879C13.6946 9.48797 14.275 9.86996 14.6896 10.4048C15.1042 10.9396 15.3295 11.597 15.33 12.2737V13.4958C15.33 13.8332 15.0565 14.1067 14.7191 14.1067C14.3818 14.1067 14.1083 13.8332 14.1083 13.4958V12.2743C14.1079 11.8684 13.9728 11.4741 13.7241 11.1533C13.4753 10.8324 13.1271 10.6032 12.7339 10.5017C12.4073 10.4173 12.2109 10.0842 12.2952 9.75752ZM10.5947 1.98847C10.2679 1.9048 9.93513 2.10189 9.85146 2.42871C9.76778 2.75552 9.96488 3.08829 10.2917 3.17196C10.6859 3.27289 11.0352 3.50213 11.2847 3.82356C11.5342 4.14498 11.6697 4.5403 11.6697 4.9472C11.6697 5.35409 11.5342 5.74941 11.2847 6.07084C11.0352 6.39226 10.6859 6.62151 10.2917 6.72243C9.96488 6.80611 9.76778 7.13888 9.85146 7.46569C9.93513 7.7925 10.2679 7.9896 10.5947 7.90592C11.2517 7.73771 11.834 7.35564 12.2498 6.81993C12.6656 6.28422 12.8913 5.62535 12.8913 4.9472C12.8913 4.26904 12.6656 3.61017 12.2498 3.07447C11.834 2.53876 11.2517 2.15668 10.5947 1.98847Z" fill="black"/>
|
|
287
|
-
`,
|
|
287
|
+
`,S5=`
|
|
288
288
|
<g clip-path="url(#a)" fill-rule="evenodd" clip-rule="evenodd" fill="#465669"><path d="M.976 10.31a3.333 3.333 0 0 1 2.357-.977H8a3.333 3.333 0 0 1 3.333 3.334V14A.667.667 0 1 1 10 14v-1.333a2 2 0 0 0-2-2H3.333a2 2 0 0 0-2 2V14A.667.667 0 1 1 0 14v-1.333c0-.884.351-1.732.976-2.357ZM5.667 2.667a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-3.334 2a3.333 3.333 0 1 1 6.667 0 3.333 3.333 0 0 1-6.667 0ZM15.805 5.529c.26.26.26.682 0 .942l-2.667 2.667a.667.667 0 0 1-.943 0l-1.333-1.333a.667.667 0 0 1 .943-.943l.862.862 2.195-2.195c.26-.26.682-.26.943 0Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs>
|
|
289
|
-
`,
|
|
289
|
+
`,O5=`
|
|
290
290
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.66675 3.33333C2.3016 3.33333 2.00008 3.63486 2.00008 4V12C2.00008 12.3651 2.3016 12.6667 2.66675 12.6667H13.3334C13.6986 12.6667 14.0001 12.3651 14.0001 12V4C14.0001 3.63486 13.6986 3.33333 13.3334 3.33333H2.66675ZM0.666748 4C0.666748 2.89848 1.56522 2 2.66675 2H13.3334C14.4349 2 15.3334 2.89848 15.3334 4V12C15.3334 13.1015 14.4349 14 13.3334 14H2.66675C1.56522 14 0.666748 13.1015 0.666748 12V4Z" fill="#465669"/>
|
|
291
291
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.787073 3.6177C0.998216 3.31607 1.4139 3.24271 1.71554 3.45385L7.99989 7.8529L14.2843 3.45385C14.5859 3.24271 15.0016 3.31607 15.2127 3.6177C15.4239 3.91933 15.3505 4.33502 15.0489 4.54616L8.3822 9.21283C8.15266 9.37351 7.84713 9.37351 7.61759 9.21283L0.95092 4.54616C0.649287 4.33502 0.57593 3.91933 0.787073 3.6177Z" fill="#465669"/>
|
|
292
|
-
`,
|
|
292
|
+
`,_5=`
|
|
293
293
|
<path d="M4.66653 4.00001V2.00001C4.66653 1.63182 4.96501 1.33334 5.3332 1.33334H13.3332C13.7014 1.33334 13.9999 1.63182 13.9999 2.00001V11.3333C13.9999 11.7015 13.7014 12 13.3332 12H11.3332V13.9994C11.3332 14.3679 11.0333 14.6667 10.662 14.6667H2.67111C2.30039 14.6667 2 14.3703 2 13.9994L2.00173 4.66726C2.0018 4.29875 2.30176 4.00001 2.67295 4.00001H4.66653ZM3.33495 5.33334L3.33346 13.3333H9.99987V5.33334H3.33495ZM5.99987 4.00001H11.3332V10.6667H12.6665V2.66668H5.99987V4.00001ZM4.66667 7.33334H8.66667V8.66668H4.66667V7.33334ZM4.66667 10H8.66667V11.3333H4.66667V10Z" fill="#465669"/>
|
|
294
|
-
`,
|
|
294
|
+
`,D5=`
|
|
295
295
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 .667c.254 0 .486.144.598.371l1.905 3.86 4.26.622a.667.667 0 0 1 .369 1.138L12.05 9.66l.727 4.24a.667.667 0 0 1-.967.703L8 12.6l-3.81 2.003a.667.667 0 0 1-.967-.702L3.95 9.66.868 6.658a.667.667 0 0 1 .369-1.138l4.26-.622 1.905-3.86A.667.667 0 0 1 8 .667Z" fill="#465669"/>
|
|
296
|
-
`,
|
|
296
|
+
`,M5=`
|
|
297
297
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.667 2.667A.667.667 0 0 0 2 3.333v9.334a.667.667 0 0 0 .667.666h10.666a.667.667 0 0 0 .667-.666V5.333a.667.667 0 0 0-.667-.666h-6a.667.667 0 0 1-.555-.297L5.643 2.667H2.667Zm-1.415-.748a2 2 0 0 1 1.415-.586H6c.223 0 .43.112.555.297L7.69 3.333h5.643a2 2 0 0 1 2 2v7.334a2 2 0 0 1-2 2H2.667a2 2 0 0 1-2-2V3.333a2 2 0 0 1 .585-1.414Z" fill="#465669"/><path fill-rule="evenodd" clip-rule="evenodd" d="M8 6.667c.368 0 .667.298.667.666v4a.667.667 0 1 1-1.333 0v-4c0-.368.298-.666.666-.666Z" fill="#465669"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.333 9.333c0-.368.299-.666.667-.666h4A.667.667 0 1 1 10 10H6a.667.667 0 0 1-.667-.667Z" fill="#465669"/>
|
|
298
|
-
`,
|
|
298
|
+
`,P5=`
|
|
299
299
|
<g clip-path="url(#a)" fill-rule="evenodd" clip-rule="evenodd" fill="#465669"><path d="M7.702.737a.667.667 0 0 1 .596 0l6.667 3.333a.667.667 0 0 1 0 1.193L8.298 8.596a.667.667 0 0 1-.596 0L1.035 5.263a.667.667 0 0 1 0-1.193L7.702.737Zm-4.878 3.93L8 7.255l5.176-2.588L8 2.079 2.824 4.667ZM.737 11.035a.667.667 0 0 1 .894-.298L8 13.921l6.368-3.184a.667.667 0 1 1 .597 1.193l-6.667 3.333a.667.667 0 0 1-.596 0L1.035 11.93a.667.667 0 0 1-.298-.895Z"/><path d="M.737 7.702a.667.667 0 0 1 .894-.298L8 10.588l6.368-3.184a.667.667 0 1 1 .597 1.192L8.298 11.93a.666.666 0 0 1-.596 0L1.035 8.596a.667.667 0 0 1-.298-.894Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs>
|
|
300
|
-
`,
|
|
300
|
+
`,T5=`
|
|
301
301
|
<path fill-rule="evenodd" clip-rule="evenodd" d="m2.667 3.333.002.01a.197.197 0 0 0 .021.045.824.824 0 0 0 .194.2c.22.174.58.36 1.084.527 1.002.334 2.427.552 4.032.552s3.03-.218 4.032-.552c.504-.168.864-.353 1.084-.527a.824.824 0 0 0 .194-.2.2.2 0 0 0 .021-.044l.003-.01-.002-.01a.2.2 0 0 0-.022-.045.824.824 0 0 0-.194-.2c-.22-.174-.58-.36-1.084-.527C11.031 2.218 9.605 2 8 2s-3.03.218-4.032.552c-.504.168-.864.353-1.084.526a.824.824 0 0 0-.194.201.196.196 0 0 0-.021.044l-.002.01Zm.88-2.046C4.717.897 6.292.667 8 .667c1.709 0 3.283.23 4.454.62.581.194 1.1.44 1.487.744.38.3.726.734.726 1.302 0 .568-.346 1.003-.726 1.302-.387.306-.906.551-1.487.745C11.284 5.77 9.709 6 8 6c-1.708 0-3.283-.23-4.453-.62-.582-.194-1.1-.44-1.488-.745-.38-.299-.726-.734-.726-1.302 0-.568.346-1.003.726-1.302.387-.305.906-.55 1.488-.744ZM2 7.333a.667.667 0 0 1 .67.679.2.2 0 0 0 .02.045.817.817 0 0 0 .193.2c.218.173.576.358 1.078.526.998.333 2.424.55 4.04.55 1.615 0 3.04-.217 4.038-.55.503-.168.86-.353 1.078-.526a.818.818 0 0 0 .193-.2.197.197 0 0 0 .021-.045A.667.667 0 1 1 14.667 8c0 .566-.342 1.001-.722 1.302-.385.306-.903.551-1.484.745-1.168.39-2.743.62-4.46.62-1.719 0-3.293-.23-4.462-.62-.58-.194-1.098-.44-1.484-.745-.38-.3-.722-.736-.722-1.302 0-.368.299-.667.667-.667Z" fill="#465669"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2 2.667c.368 0 .667.298.667.666v9.334l.002.012a.2.2 0 0 0 .022.044.817.817 0 0 0 .192.2c.218.174.576.358 1.078.526.998.334 2.424.551 4.04.551 1.615 0 3.04-.217 4.038-.55.503-.168.86-.353 1.078-.526a.818.818 0 0 0 .193-.2.197.197 0 0 0 .021-.045.042.042 0 0 0 .003-.012V3.333a.667.667 0 0 1 1.333 0v9.334c0 .566-.342 1.001-.722 1.302-.385.305-.903.551-1.484.745-1.168.39-2.743.62-4.46.62-1.719 0-3.293-.23-4.462-.62-.58-.194-1.098-.44-1.484-.745-.38-.301-.722-.736-.722-1.302V3.333c0-.368.299-.666.667-.666Z" fill="#465669"/>
|
|
302
|
-
`,
|
|
302
|
+
`,E5={"building-fill":r5,"circle-fill":a5,"clock-fill":c5,"closed-eye":d5,"copy-file":_5,"magic-wand":g5,"open-eye":h5,"user-fill":k5,building:n5,calendar:i5,circle:o5,clock:l5,dollar:u5,file:f5,lock:p5,mail:O5,moon:v5,process:m5,repeat:y5,report:b5,sun:C5,user:w5,users:x5,"star-fill":D5,"folder-plus":M5,layers:P5,"user-check":S5,database:T5,"calendar-edh":s5},A5=`
|
|
303
303
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.46729 12.4559C6.46729 13.8558 5.32313 15 3.92322 15C2.52331 15 1.37915 13.8558 1.37915 12.4559C1.37915 11.2431 2.21901 10.2367 3.34707 9.97443L3.34707 8C3.34707 7.68244 3.60566 7.42385 3.92322 7.42385H7.49375V6.02557C6.3657 5.76328 5.52584 4.75686 5.52584 3.54407C5.52584 2.14416 6.66999 1 8.0699 1C9.46982 1 10.614 2.14416 10.614 3.54407C10.614 4.75686 9.77411 5.76328 8.64606 6.02557V7.42385H12.076C12.3936 7.42385 12.6522 7.68244 12.6522 8V9.97443C13.7802 10.2367 14.6201 11.2431 14.6201 12.4559C14.6201 13.8558 13.4759 15 12.076 15C10.6761 15 9.53196 13.8558 9.53196 12.4559C9.53196 11.2431 10.3718 10.2367 11.4999 9.97443V8.57615L4.49937 8.57615V9.97461C5.62832 10.2387 6.46729 11.2572 6.46729 12.4559ZM5.31499 12.4559C5.31499 11.6911 4.68802 11.0642 3.92322 11.0642C3.15842 11.0642 2.53145 11.6911 2.53145 12.4559C2.53145 13.2207 3.15842 13.8477 3.92322 13.8477C4.68802 13.8477 5.31499 13.2207 5.31499 12.4559ZM13.4678 12.4559C13.4678 11.6911 12.8408 11.0642 12.076 11.0642C11.3112 11.0642 10.6843 11.6911 10.6843 12.4559C10.6843 13.2207 11.3112 13.8477 12.076 13.8477C12.8408 13.8477 13.4678 13.2207 13.4678 12.4559ZM9.46167 3.55813C9.46167 2.79333 8.8347 2.16636 8.0699 2.16636C7.30511 2.16636 6.67814 2.79333 6.67814 3.55813C6.67814 4.32292 7.30511 4.94989 8.0699 4.94989C8.8347 4.94989 9.46167 4.32292 9.46167 3.55813Z" fill="#1B1C1D"/>
|
|
304
|
-
`,
|
|
304
|
+
`,R5=`
|
|
305
305
|
<g clip-path="url(#clip0_3782_54683)">
|
|
306
306
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.666748 7.99999C0.666748 3.9499 3.94999 0.666656 8.00008 0.666656C12.0502 0.666656 15.3334 3.9499 15.3334 7.99999C15.3334 12.0501 12.0502 15.3333 8.00008 15.3333C3.94999 15.3333 0.666748 12.0501 0.666748 7.99999ZM14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z" fill="black"/>
|
|
307
307
|
</g>
|
|
@@ -310,7 +310,7 @@ fill="#1B1C1D"
|
|
|
310
310
|
<rect width="16" height="16" fill="white"/>
|
|
311
311
|
</clipPath>
|
|
312
312
|
</defs>
|
|
313
|
-
`,
|
|
313
|
+
`,L5=`
|
|
314
314
|
<g clip-path="url(#clip0_3802_54417)">
|
|
315
315
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.99822 7.99749C1.99822 4.68416 4.68421 1.99818 7.99754 1.99818C11.3109 1.99818 13.9969 4.68416 13.9969 7.99749C13.9969 11.3108 11.3109 13.9968 7.99754 13.9968C4.68421 13.9968 1.99822 11.3108 1.99822 7.99749ZM7.99754 0.664993C3.94791 0.664993 0.665039 3.94787 0.665039 7.99749C0.665039 12.0471 3.94791 15.33 7.99754 15.33C12.0472 15.33 15.33 12.0471 15.33 7.99749C15.33 3.94787 12.0472 0.664993 7.99754 0.664993ZM4.83172 6.831C4.2795 6.831 3.83183 7.27866 3.83183 7.83088C3.83183 8.3831 4.2795 8.83077 4.83172 8.83077C5.38394 8.83077 5.83161 8.3831 5.83161 7.83088C5.83161 7.27866 5.38394 6.831 4.83172 6.831ZM6.83142 7.83088C6.83142 7.27866 7.27909 6.831 7.83131 6.831C8.38353 6.831 8.8312 7.27866 8.8312 7.83088C8.8312 8.38311 8.38353 8.83077 7.83131 8.83077C7.27909 8.83077 6.83142 8.38311 6.83142 7.83088ZM10.8309 6.831C10.2787 6.831 9.83106 7.27866 9.83106 7.83088C9.83106 8.3831 10.2787 8.83077 10.8309 8.83077C11.3832 8.83077 11.8308 8.3831 11.8308 7.83088C11.8308 7.27866 11.3832 6.831 10.8309 6.831Z" fill="#1B1C1D"/>
|
|
316
316
|
</g>
|
|
@@ -319,7 +319,7 @@ fill="#1B1C1D"
|
|
|
319
319
|
<rect width="16" height="16" fill="white"/>
|
|
320
320
|
</clipPath>
|
|
321
321
|
</defs>
|
|
322
|
-
`,
|
|
322
|
+
`,N5=`
|
|
323
323
|
<g clip-path="url(#clip0_3931_56251)">
|
|
324
324
|
<path
|
|
325
325
|
fill-rule="evenodd"
|
|
@@ -333,14 +333,14 @@ fill="#1B1C1D"
|
|
|
333
333
|
<rect width="16" height="16" fill="white" />
|
|
334
334
|
</clipPath>
|
|
335
335
|
</defs>
|
|
336
|
-
`,
|
|
336
|
+
`,B5=`
|
|
337
337
|
<path
|
|
338
338
|
fill="#1B1C1D"
|
|
339
339
|
fillRule="evenodd"
|
|
340
340
|
d="M3.333 6.667a1.333 1.333 0 1 0 0 2.666 1.333 1.333 0 0 0 0-2.666ZM6.666 8a1.333 1.333 0 1 1 2.667 0 1.333 1.333 0 0 1-2.667 0Zm4.668 0A1.333 1.333 0 1 1 14 8a1.333 1.333 0 0 1-2.666 0Z"
|
|
341
341
|
clipRule="evenodd"
|
|
342
342
|
/>
|
|
343
|
-
`,
|
|
343
|
+
`,I5=`
|
|
344
344
|
<g clip-path="url(#clip0_3792_54454)">
|
|
345
345
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.00008 8.00001C2.00008 4.6863 4.68637 2.00001 8.00008 2.00001C11.3138 2.00001 14.0001 4.6863 14.0001 8.00001C14.0001 11.3137 11.3138 14 8.00008 14C4.68637 14 2.00008 11.3137 2.00008 8.00001ZM8.00008 0.666672C3.94999 0.666672 0.666748 3.94992 0.666748 8.00001C0.666748 12.0501 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.0501 15.3334 8.00001C15.3334 3.94992 12.0502 0.666672 8.00008 0.666672ZM8.17199 5.34954C7.86165 5.29631 7.54247 5.35463 7.27101 5.51417C6.99954 5.67372 6.79329 5.92419 6.6888 6.22122C6.56662 6.56855 6.18601 6.75107 5.83869 6.62888C5.49136 6.5067 5.30884 6.12609 5.43103 5.77877C5.64001 5.18469 6.05249 4.68375 6.59543 4.36466C7.13836 4.04557 7.77671 3.92893 8.3974 4.0354C9.0181 4.14186 9.58108 4.46457 9.98665 4.94635C10.3922 5.42807 10.6141 6.03775 10.6132 6.66742C10.6129 7.68757 9.85651 8.36127 9.31638 8.72136C9.02596 8.91498 8.74028 9.05734 8.52984 9.15087C8.42367 9.19806 8.33427 9.23386 8.26985 9.2584C8.23758 9.27069 8.21142 9.28022 8.19238 9.28699L8.16923 9.2951L8.16185 9.29762L8.15926 9.2985L8.15823 9.29884L7.94658 8.66666C8.1574 9.29912 8.15823 9.29884 8.15823 9.29884C7.80894 9.41527 7.43056 9.22678 7.31413 8.87748C7.19785 8.52865 7.38597 8.15164 7.73438 8.03467L7.73541 8.03432L7.7457 8.03071C7.75596 8.02706 7.77277 8.02096 7.79519 8.01242C7.84014 7.99529 7.90699 7.9686 7.98832 7.93245C8.15288 7.85932 8.3672 7.75168 8.57678 7.61196C9.03652 7.30547 9.27991 6.97942 9.27991 6.66666C9.28038 6.35178 9.1694 6.0459 8.96662 5.80501C8.76383 5.56412 8.48234 5.40277 8.17199 5.34954ZM7.33325 11.3333C7.33325 10.9651 7.63173 10.6667 7.99992 10.6667H8.00659C8.37478 10.6667 8.67325 10.9651 8.67325 11.3333C8.67325 11.7015 8.37478 12 8.00659 12H7.99992C7.63173 12 7.33325 11.7015 7.33325 11.3333Z" fill="#1B1C1D"/>
|
|
346
346
|
</g>
|
|
@@ -349,7 +349,7 @@ fill="#1B1C1D"
|
|
|
349
349
|
<rect width="16" height="16" fill="white"/>
|
|
350
350
|
</clipPath>
|
|
351
351
|
</defs>
|
|
352
|
-
`,
|
|
352
|
+
`,H5=`
|
|
353
353
|
<g clip-path="url(#clip0_3792_54439)">
|
|
354
354
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.666748 7.99999C0.666748 3.9499 3.94999 0.666656 8.00008 0.666656C12.0502 0.666656 15.3334 3.9499 15.3334 7.99999C15.3334 12.0501 12.0502 15.3333 8.00008 15.3333C3.94999 15.3333 0.666748 12.0501 0.666748 7.99999ZM8.17199 5.34954C7.86165 5.29631 7.54247 5.35463 7.27101 5.51417C6.99954 5.67372 6.79329 5.92419 6.6888 6.22122C6.56662 6.56855 6.18601 6.75107 5.83869 6.62888C5.49136 6.5067 5.30884 6.12609 5.43103 5.77877C5.64001 5.18469 6.05249 4.68375 6.59543 4.36466C7.13836 4.04557 7.77671 3.92893 8.3974 4.0354C9.0181 4.14186 9.58108 4.46457 9.98665 4.94635C10.3922 5.42807 10.6141 6.03775 10.6132 6.66742C10.6129 7.68757 9.85651 8.36127 9.31638 8.72136C9.02596 8.91498 8.74028 9.05734 8.52984 9.15087C8.42367 9.19806 8.33427 9.23386 8.26985 9.2584C8.23758 9.27069 8.21142 9.28022 8.19238 9.28699L8.16923 9.2951L8.16185 9.29762L8.15926 9.2985L8.15823 9.29884C7.80894 9.41527 7.43056 9.22678 7.31413 8.87748C7.19769 8.52818 7.38647 8.15064 7.73576 8.03421L7.7457 8.03071C7.75596 8.02706 7.77277 8.02096 7.79519 8.01242C7.84014 7.99529 7.90699 7.9686 7.98832 7.93245C8.15288 7.85932 8.3672 7.75168 8.57678 7.61196C9.03652 7.30547 9.27991 6.97942 9.27991 6.66666C9.28038 6.35178 9.1694 6.0459 8.96662 5.80501C8.76383 5.56412 8.48234 5.40277 8.17199 5.34954ZM8.42673 11.8454C8.70958 11.6097 8.74779 11.1893 8.51208 10.9065C8.27637 10.6236 7.85599 10.5854 7.57314 10.8211C7.29029 11.0568 7.25208 11.4772 7.48779 11.76C7.7235 12.0429 8.14388 12.0811 8.42673 11.8454Z" fill="#1B1C1D"/>
|
|
355
355
|
</g>
|
|
@@ -358,9 +358,9 @@ fill="#1B1C1D"
|
|
|
358
358
|
<rect width="16" height="16" fill="white"/>
|
|
359
359
|
</clipPath>
|
|
360
360
|
</defs>
|
|
361
|
-
`,
|
|
361
|
+
`,V5=`
|
|
362
362
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 12C4.5 11.1716 5.17157 10.5 6 10.5H18C18.8284 10.5 19.5 11.1716 19.5 12C19.5 12.8285 18.8284 13.5 18 13.5H6C5.17157 13.5 4.5 12.8285 4.5 12Z" fill="#1B1C1D"/>
|
|
363
|
-
`,
|
|
363
|
+
`,F5=`
|
|
364
364
|
<g clip-path="url(#clip0_3792_54451)">
|
|
365
365
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.00008 8.00001C2.00008 4.6863 4.68637 2.00001 8.00008 2.00001C11.3138 2.00001 14.0001 4.6863 14.0001 8.00001C14.0001 11.3137 11.3138 14 8.00008 14C4.68637 14 2.00008 11.3137 2.00008 8.00001ZM8.00008 0.666672C3.94999 0.666672 0.666748 3.94992 0.666748 8.00001C0.666748 12.0501 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.0501 15.3334 8.00001C15.3334 3.94992 12.0502 0.666672 8.00008 0.666672ZM5.33341 7.33333C4.96522 7.33333 4.66675 7.6318 4.66675 7.99999C4.66675 8.36819 4.96522 8.66666 5.33341 8.66666H10.6667C11.0349 8.66666 11.3334 8.36819 11.3334 7.99999C11.3334 7.6318 11.0349 7.33333 10.6667 7.33333H5.33341Z" fill="#1B1C1D"/>
|
|
366
366
|
</g>
|
|
@@ -369,7 +369,7 @@ fill="#1B1C1D"
|
|
|
369
369
|
<rect width="16" height="16" fill="white"/>
|
|
370
370
|
</clipPath>
|
|
371
371
|
</defs>
|
|
372
|
-
`,
|
|
372
|
+
`,Q5=`
|
|
373
373
|
<g clip-path="url(#clip0_3782_55235)">
|
|
374
374
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 0.666656C3.94999 0.666656 0.666748 3.9499 0.666748 7.99999C0.666748 12.0501 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.0501 15.3334 7.99999C15.3334 3.9499 12.0502 0.666656 8.00008 0.666656ZM5.33341 7.33334C4.96522 7.33334 4.66675 7.63182 4.66675 8.00001C4.66675 8.3682 4.96522 8.66668 5.33341 8.66668H10.6667C11.0349 8.66668 11.3334 8.3682 11.3334 8.00001C11.3334 7.63182 11.0349 7.33334 10.6667 7.33334H5.33341Z" fill="#1B1C1D"/>
|
|
375
375
|
</g>
|
|
@@ -378,9 +378,9 @@ fill="#1B1C1D"
|
|
|
378
378
|
<rect width="16" height="16" fill="white"/>
|
|
379
379
|
</clipPath>
|
|
380
380
|
</defs>
|
|
381
|
-
`,
|
|
381
|
+
`,W5=`
|
|
382
382
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.66659 3.33334C8.66659 2.96515 8.36811 2.66667 7.99992 2.66667C7.63173 2.66667 7.33325 2.96515 7.33325 3.33334V7.33333H3.33341C2.96522 7.33333 2.66675 7.6318 2.66675 7.99999C2.66675 8.36819 2.96522 8.66666 3.33341 8.66666H7.33325V12.6667C7.33325 13.0349 7.63173 13.3333 7.99992 13.3333C8.36811 13.3333 8.66659 13.0349 8.66659 12.6667V8.66666H12.6667C13.0349 8.66666 13.3334 8.36819 13.3334 7.99999C13.3334 7.6318 13.0349 7.33333 12.6667 7.33333H8.66659V3.33334Z" fill="#1B1C1D"/>
|
|
383
|
-
|
|
383
|
+
`,j5=`
|
|
384
384
|
<g clip-path="url(#clip0_3792_54446)">
|
|
385
385
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 2.00001C4.68637 2.00001 2.00008 4.6863 2.00008 8.00001C2.00008 11.3137 4.68637 14 8.00008 14C11.3138 14 14.0001 11.3137 14.0001 8.00001C14.0001 4.6863 11.3138 2.00001 8.00008 2.00001ZM0.666748 8.00001C0.666748 3.94992 3.94999 0.666672 8.00008 0.666672C12.0502 0.666672 15.3334 3.94992 15.3334 8.00001C15.3334 12.0501 12.0502 15.3333 8.00008 15.3333C3.94999 15.3333 0.666748 12.0501 0.666748 8.00001ZM7.99992 4.66667C8.36811 4.66667 8.66659 4.96515 8.66659 5.33334V7.33333H10.6667C11.0349 7.33333 11.3334 7.6318 11.3334 7.99999C11.3334 8.36819 11.0349 8.66666 10.6667 8.66666H8.66659V10.6667C8.66659 11.0349 8.36811 11.3333 7.99992 11.3333C7.63173 11.3333 7.33325 11.0349 7.33325 10.6667V8.66666H5.33341C4.96522 8.66666 4.66675 8.36819 4.66675 7.99999C4.66675 7.6318 4.96522 7.33333 5.33341 7.33333H7.33325V5.33334C7.33325 4.96515 7.63173 4.66667 7.99992 4.66667Z" fill="#1B1C1D"/>
|
|
386
386
|
</g>
|
|
@@ -389,7 +389,7 @@ fill="#1B1C1D"
|
|
|
389
389
|
<rect width="16" height="16" fill="white"/>
|
|
390
390
|
</clipPath>
|
|
391
391
|
</defs>
|
|
392
|
-
`,
|
|
392
|
+
`,q5=`
|
|
393
393
|
<g clip-path="url(#clip0_3792_54438)">
|
|
394
394
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00008 0.666656C3.94999 0.666656 0.666748 3.9499 0.666748 7.99999C0.666748 12.0501 3.94999 15.3333 8.00008 15.3333C12.0502 15.3333 15.3334 12.0501 15.3334 7.99999C15.3334 3.9499 12.0502 0.666656 8.00008 0.666656ZM7.99992 4.66666C8.36811 4.66666 8.66659 4.96513 8.66659 5.33332V7.33334H10.6667C11.0349 7.33334 11.3334 7.63182 11.3334 8.00001C11.3334 8.3682 11.0349 8.66668 10.6667 8.66668H8.66659V10.6667C8.66659 11.0348 8.36811 11.3333 7.99992 11.3333C7.63173 11.3333 7.33325 11.0348 7.33325 10.6667V8.66668H5.33341C4.96522 8.66668 4.66675 8.3682 4.66675 8.00001C4.66675 7.63182 4.96522 7.33334 5.33341 7.33334H7.33325V5.33332C7.33325 4.96513 7.63173 4.66666 7.99992 4.66666Z" fill="#1B1C1D"/>
|
|
395
395
|
</g>
|
|
@@ -398,7 +398,7 @@ fill="#1B1C1D"
|
|
|
398
398
|
<rect width="16" height="16" fill="white"/>
|
|
399
399
|
</clipPath>
|
|
400
400
|
</defs>
|
|
401
|
-
`,
|
|
401
|
+
`,z5=`
|
|
402
402
|
<g clip-path="url(#clip0_3931_56260)">
|
|
403
403
|
<path
|
|
404
404
|
fill-rule="evenodd"
|
|
@@ -412,22 +412,22 @@ fill="#1B1C1D"
|
|
|
412
412
|
<rect width="16" height="16" fill="white" />
|
|
413
413
|
</clipPath>
|
|
414
414
|
</defs>
|
|
415
|
-
`,
|
|
415
|
+
`,Y5=`
|
|
416
416
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.4713 4.4714C12.7317 4.21105 12.7317 3.78894 12.4713 3.52859C12.211 3.26824 11.7889 3.26824 11.5285 3.52859L7.99992 7.05719L4.47132 3.52859C4.21097 3.26824 3.78886 3.26824 3.52851 3.52859C3.26816 3.78894 3.26816 4.21105 3.52851 4.4714L7.05711 8L3.52851 11.5286C3.26816 11.7889 3.26816 12.2111 3.52851 12.4714C3.78886 12.7317 4.21097 12.7317 4.47132 12.4714L7.99992 8.9428L11.5285 12.4714C11.7889 12.7317 12.211 12.7317 12.4713 12.4714C12.7317 12.2111 12.7317 11.7889 12.4713 11.5286L8.94273 8L12.4713 4.4714Z" fill="#1B1C1D"/>
|
|
417
|
-
|
|
417
|
+
`,$5=`
|
|
418
418
|
<path
|
|
419
419
|
fill="#1B1C1D"
|
|
420
420
|
fillRule="evenodd"
|
|
421
421
|
d="M8.666 2a.667.667 0 0 0-1.333 0v6.39L5.138 6.195a.667.667 0 1 0-.943.943l3.333 3.334c.26.26.683.26.943 0l3.334-3.334a.667.667 0 0 0-.943-.943L8.666 8.391V2ZM2 9.333c.368 0 .666.299.666.667v2.667a.667.667 0 0 0 .667.666h9.333a.667.667 0 0 0 .667-.666V10a.667.667 0 0 1 1.333 0v2.667a2 2 0 0 1-2 2H3.333a2 2 0 0 1-2-2V10c0-.368.298-.667.667-.667Z"
|
|
422
422
|
clipRule="evenodd"
|
|
423
423
|
/>
|
|
424
|
-
`,
|
|
424
|
+
`,U5=`
|
|
425
425
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.4716 2.80474C11.6118 2.66455 11.8019 2.58579 12.0002 2.58579C12.0983 2.58579 12.1956 2.60513 12.2863 2.64269C12.3769 2.68026 12.4594 2.73533 12.5288 2.80474C12.5982 2.87416 12.6533 2.95657 12.6908 3.04726C12.7284 3.13796 12.7477 3.23517 12.7477 3.33334C12.7477 3.43151 12.7284 3.52871 12.6908 3.61941C12.6533 3.71011 12.5982 3.79252 12.5288 3.86193L4.32601 12.0647L2.91642 12.4171L3.26882 11.0075L11.4716 2.80474ZM12.0002 1.25246C11.4483 1.25246 10.919 1.47169 10.5288 1.86193L2.19544 10.1953C2.11 10.2807 2.04939 10.3878 2.02008 10.505L1.35342 13.1716C1.29662 13.3988 1.36319 13.6392 1.52877 13.8047C1.69436 13.9703 1.93468 14.0369 2.16187 13.9801L4.82853 13.3134C4.94576 13.2841 5.05281 13.2235 5.13825 13.1381L13.4716 4.80474C13.6648 4.61151 13.8181 4.38212 13.9227 4.12966C14.0272 3.87719 14.0811 3.6066 14.0811 3.33334C14.0811 3.06007 14.0272 2.78948 13.9227 2.53702C13.8181 2.28455 13.6648 2.05516 13.4716 1.86193C13.2784 1.6687 13.049 1.51543 12.7965 1.41085C12.544 1.30628 12.2734 1.25246 12.0002 1.25246ZM8.00016 12.6667C7.63197 12.6667 7.3335 12.9651 7.3335 13.3333C7.3335 13.7015 7.63197 14 8.00016 14H14.0002C14.3684 14 14.6668 13.7015 14.6668 13.3333C14.6668 12.9651 14.3684 12.6667 14.0002 12.6667H8.00016Z" fill="#1B1C1D"/>
|
|
426
|
-
`,
|
|
426
|
+
`,Z5=`
|
|
427
427
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.728434 1.71941C0.837673 1.48397 1.07363 1.33333 1.33318 1.33333H14.6665C14.9261 1.33333 15.162 1.48397 15.2713 1.71941C15.3805 1.95485 15.3432 2.23229 15.1756 2.43048L9.99985 8.55076V14C9.99985 14.231 9.88021 14.4456 9.68367 14.5671C9.48712 14.6886 9.2417 14.6996 9.03504 14.5963L6.36837 13.2629C6.14251 13.15 5.99985 12.9192 5.99985 12.6667V8.55076L0.824133 2.43048C0.656534 2.23229 0.619195 1.95485 0.728434 1.71941ZM2.77005 2.66666L7.17556 7.87618C7.27734 7.99653 7.33318 8.14905 7.33318 8.30666V12.2546L8.66651 12.9213V8.30666C8.66651 8.14905 8.72236 7.99653 8.82413 7.87618L13.2296 2.66666H2.77005Z" fill="#1B1C1D"/>
|
|
428
|
-
`,
|
|
428
|
+
`,X5=`
|
|
429
429
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.33325 1.99999C9.33325 1.63181 9.63173 1.33333 9.99992 1.33333H13.9999C14.0777 1.33333 14.1524 1.34665 14.2218 1.37113C14.3129 1.40321 14.3985 1.45569 14.4714 1.52859C14.6042 1.66142 14.6693 1.83635 14.6666 2.01042V5.99999C14.6666 6.36818 14.3681 6.66666 13.9999 6.66666C13.6317 6.66666 13.3333 6.36818 13.3333 5.99999V3.60955L7.13807 9.80473C6.87772 10.0651 6.45561 10.0651 6.19526 9.80473C5.93491 9.54438 5.93491 9.12227 6.19526 8.86192L12.3905 2.66666H9.99992C9.63173 2.66666 9.33325 2.36818 9.33325 1.99999ZM3.33325 4.66666C3.15644 4.66666 2.98687 4.7369 2.86185 4.86192C2.73682 4.98695 2.66659 5.15652 2.66659 5.33333V12.6667C2.66659 12.8435 2.73682 13.013 2.86185 13.1381C2.98687 13.2631 3.15644 13.3333 3.33325 13.3333H10.6666C10.8434 13.3333 11.013 13.2631 11.138 13.1381C11.263 13.013 11.3333 12.8435 11.3333 12.6667V8.66666C11.3333 8.29847 11.6317 7.99999 11.9999 7.99999C12.3681 7.99999 12.6666 8.29847 12.6666 8.66666V12.6667C12.6666 13.1971 12.4559 13.7058 12.0808 14.0809C11.7057 14.4559 11.197 14.6667 10.6666 14.6667H3.33325C2.80282 14.6667 2.29411 14.4559 1.91904 14.0809C1.54397 13.7058 1.33325 13.1971 1.33325 12.6667V5.33333C1.33325 4.8029 1.54397 4.29419 1.91904 3.91911C2.29411 3.54404 2.80282 3.33333 3.33325 3.33333H7.33325C7.70144 3.33333 7.99992 3.63181 7.99992 3.99999C7.99992 4.36818 7.70144 4.66666 7.33325 4.66666H3.33325Z" fill="#1B1C1D"/>
|
|
430
|
-
`,
|
|
430
|
+
`,K5=`
|
|
431
431
|
<g clip-path="url(#clip0_3792_54455)">
|
|
432
432
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.3305 0.711104C10.2817 0.70199 9.27131 1.10517 8.5169 1.8338L7.36335 2.98055C7.10224 3.24014 7.10101 3.66225 7.3606 3.92335C7.62019 4.18446 8.04229 4.18569 8.3034 3.9261L9.44646 2.78969C9.94905 2.30593 10.6212 2.03832 11.3189 2.04439C12.0181 2.05046 12.6869 2.33091 13.1814 2.82533C13.6758 3.31976 13.9562 3.98859 13.9623 4.68778C13.9684 5.38515 13.701 6.05707 13.2176 6.55959L11.2219 8.55534C10.9515 8.82578 10.6262 9.03491 10.2679 9.16856C9.90966 9.3022 9.52684 9.35723 9.14543 9.32992C8.76402 9.3026 8.39295 9.19358 8.05738 9.01024C7.72181 8.8269 7.42959 8.57354 7.20055 8.26734C6.98001 7.97251 6.56222 7.91228 6.26739 8.13282C5.97255 8.35335 5.91233 8.77114 6.13286 9.06598C6.47643 9.52528 6.91475 9.90532 7.4181 10.1803C7.92146 10.4553 8.47807 10.6189 9.05018 10.6598C9.6223 10.7008 10.1965 10.6183 10.7339 10.4178C11.2713 10.2174 11.7594 9.90359 12.1649 9.49798L14.1649 7.49813L14.1729 7.4898C14.9015 6.73539 15.3047 5.72498 15.2956 4.6762C15.2865 3.62741 14.8658 2.62416 14.1242 1.88253C13.3825 1.14089 12.3793 0.720218 11.3305 0.711104ZM6.94966 5.34015C6.37755 5.29917 5.80331 5.38172 5.26591 5.58219C4.72854 5.78264 4.24048 6.0964 3.83498 6.50201L1.835 8.50186L1.82695 8.51019C1.09832 9.2646 0.695139 10.275 0.704253 11.3238C0.713366 12.3726 1.13404 13.3758 1.87567 14.1175C2.61731 14.8591 3.62056 15.2798 4.66934 15.2889C5.71813 15.298 6.72861 14.8949 7.48302 14.1663L8.63121 13.0181C8.89156 12.7577 8.89156 12.3356 8.63121 12.0753C8.37086 11.8149 7.94875 11.8149 7.6884 12.0753L6.55272 13.2109C6.05021 13.6943 5.37829 13.9617 4.68093 13.9556C3.98174 13.9495 3.31291 13.6691 2.81848 13.1747C2.32406 12.6802 2.04361 12.0114 2.03754 11.3122C2.03148 10.6148 2.29885 9.94292 2.7822 9.44041L4.77796 7.44465C5.0483 7.17421 5.37364 6.96508 5.73191 6.83143C6.09018 6.69779 6.47301 6.64276 6.85442 6.67007C7.23583 6.69739 7.6069 6.80641 7.94247 6.98975C8.27804 7.17309 8.57026 7.42645 8.7993 7.73265C9.01983 8.02748 9.43763 8.08771 9.73246 7.86717C10.0273 7.64664 10.0875 7.22885 9.86698 6.93401C9.52342 6.47471 9.0851 6.09467 8.58174 5.81966C8.07839 5.54465 7.52178 5.38112 6.94966 5.34015Z" fill="#1B1C1D"/>
|
|
433
433
|
</g>
|
|
@@ -436,9 +436,9 @@ clipRule="evenodd"
|
|
|
436
436
|
<rect width="16" height="16" fill="white"/>
|
|
437
437
|
</clipPath>
|
|
438
438
|
</defs>
|
|
439
|
-
`,
|
|
439
|
+
`,G5=`
|
|
440
440
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.00016 3.33333C1.63197 3.33333 1.3335 3.63181 1.3335 3.99999C1.3335 4.36818 1.63197 4.66666 2.00016 4.66666H2.00683C2.37502 4.66666 2.6735 4.36818 2.6735 3.99999C2.6735 3.63181 2.37502 3.33333 2.00683 3.33333H2.00016ZM5.33317 3.33333C4.96498 3.33333 4.6665 3.63181 4.6665 3.99999C4.6665 4.36818 4.96498 4.66666 5.33317 4.66666H13.9998C14.368 4.66666 14.6665 4.36818 14.6665 3.99999C14.6665 3.63181 14.368 3.33333 13.9998 3.33333H5.33317ZM5.33317 7.33333C4.96498 7.33333 4.6665 7.6318 4.6665 7.99999C4.6665 8.36819 4.96498 8.66666 5.33317 8.66666H13.9998C14.368 8.66666 14.6665 8.36819 14.6665 7.99999C14.6665 7.6318 14.368 7.33333 13.9998 7.33333H5.33317ZM4.6665 12C4.6665 11.6318 4.96498 11.3333 5.33317 11.3333H13.9998C14.368 11.3333 14.6665 11.6318 14.6665 12C14.6665 12.3682 14.368 12.6667 13.9998 12.6667H5.33317C4.96498 12.6667 4.6665 12.3682 4.6665 12ZM1.3335 7.99999C1.3335 7.6318 1.63197 7.33333 2.00016 7.33333H2.00683C2.37502 7.33333 2.6735 7.6318 2.6735 7.99999C2.6735 8.36819 2.37502 8.66666 2.00683 8.66666H2.00016C1.63197 8.66666 1.3335 8.36819 1.3335 7.99999ZM2.00016 11.3333C1.63197 11.3333 1.3335 11.6318 1.3335 12C1.3335 12.3682 1.63197 12.6667 2.00016 12.6667H2.00683C2.37502 12.6667 2.6735 12.3682 2.6735 12C2.6735 11.6318 2.37502 11.3333 2.00683 11.3333H2.00016Z" fill="#1B1C1D"/>
|
|
441
|
-
`,
|
|
441
|
+
`,J5=`
|
|
442
442
|
<g transform="translate(8, 8)">
|
|
443
443
|
<rect x="-1" y="3" rx="1" ry="1.2" width="2" height="4" fill="white">
|
|
444
444
|
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.875s" repeatCount="indefinite"></animate>
|
|
@@ -479,13 +479,13 @@ clipRule="evenodd"
|
|
|
479
479
|
</rect>
|
|
480
480
|
</g>
|
|
481
481
|
</g>
|
|
482
|
-
`,
|
|
482
|
+
`,e9=`
|
|
483
483
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.33325 1.99999C9.33325 1.63181 9.63173 1.33333 9.99992 1.33333H12.6666C13.197 1.33333 13.7057 1.54404 14.0808 1.91911C14.4559 2.29419 14.6666 2.80289 14.6666 3.33333V12.6667C14.6666 13.1971 14.4559 13.7058 14.0808 14.0809C13.7057 14.4559 13.197 14.6667 12.6666 14.6667H9.99992C9.63173 14.6667 9.33325 14.3682 9.33325 14C9.33325 13.6318 9.63173 13.3333 9.99992 13.3333H12.6666C12.8434 13.3333 13.013 13.2631 13.138 13.1381C13.263 13.013 13.3333 12.8435 13.3333 12.6667V3.33333C13.3333 3.15652 13.263 2.98695 13.138 2.86192C13.013 2.7369 12.8434 2.66666 12.6666 2.66666H9.99992C9.63173 2.66666 9.33325 2.36818 9.33325 1.99999ZM6.19526 4.19526C6.45561 3.93491 6.87772 3.93491 7.13807 4.19526L10.4714 7.5286C10.7318 7.78895 10.7318 8.21105 10.4714 8.4714L7.13807 11.8047C6.87772 12.0651 6.45561 12.0651 6.19526 11.8047C5.93491 11.5444 5.93491 11.1223 6.19526 10.8619L8.39053 8.66666H1.99992C1.63173 8.66666 1.33325 8.36819 1.33325 7.99999C1.33325 7.6318 1.63173 7.33333 1.99992 7.33333H8.39052L6.19526 5.13807C5.93491 4.87772 5.93491 4.45561 6.19526 4.19526Z" fill="#1B1C1D"/>
|
|
484
|
-
`,
|
|
484
|
+
`,t9=`
|
|
485
485
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.33325 2.66666C3.15644 2.66666 2.98687 2.7369 2.86185 2.86192C2.73682 2.98695 2.66659 3.15652 2.66659 3.33333V12.6667C2.66659 12.8435 2.73682 13.013 2.86185 13.1381C2.98687 13.2631 3.15644 13.3333 3.33325 13.3333H5.99992C6.36811 13.3333 6.66659 13.6318 6.66659 14C6.66659 14.3682 6.36811 14.6667 5.99992 14.6667H3.33325C2.80282 14.6667 2.29411 14.4559 1.91904 14.0809C1.54397 13.7058 1.33325 13.1971 1.33325 12.6667V3.33333C1.33325 2.8029 1.54397 2.29419 1.91904 1.91911C2.29411 1.54404 2.80282 1.33333 3.33325 1.33333H5.99992C6.36811 1.33333 6.66659 1.63181 6.66659 1.99999C6.66659 2.36818 6.36811 2.66666 5.99992 2.66666H3.33325ZM10.1953 4.19526C10.4556 3.93491 10.8777 3.93491 11.1381 4.19526L14.4714 7.5286C14.7318 7.78895 14.7318 8.21105 14.4714 8.4714L11.1381 11.8047C10.8777 12.0651 10.4556 12.0651 10.1953 11.8047C9.93491 11.5444 9.93491 11.1223 10.1953 10.8619L12.3905 8.66666H5.99992C5.63173 8.66666 5.33325 8.36819 5.33325 7.99999C5.33325 7.6318 5.63173 7.33333 5.99992 7.33333H12.3905L10.1953 5.13807C9.93491 4.87772 9.93491 4.45561 10.1953 4.19526Z" fill="#1B1C1D"/>
|
|
486
|
-
`,
|
|
486
|
+
`,n9=`
|
|
487
487
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.3335 3.99999C1.3335 3.63181 1.63197 3.33333 2.00016 3.33333H14.0002C14.3684 3.33333 14.6668 3.63181 14.6668 3.99999C14.6668 4.36818 14.3684 4.66666 14.0002 4.66666H2.00016C1.63197 4.66666 1.3335 4.36818 1.3335 3.99999ZM1.3335 7.99999C1.3335 7.6318 1.63197 7.33333 2.00016 7.33333H14.0002C14.3684 7.33333 14.6668 7.6318 14.6668 7.99999C14.6668 8.36819 14.3684 8.66666 14.0002 8.66666H2.00016C1.63197 8.66666 1.3335 8.36819 1.3335 7.99999ZM2.00016 11.3333C1.63197 11.3333 1.3335 11.6318 1.3335 12C1.3335 12.3682 1.63197 12.6667 2.00016 12.6667H14.0002C14.3684 12.6667 14.6668 12.3682 14.6668 12C14.6668 11.6318 14.3684 11.3333 14.0002 11.3333H2.00016Z" fill="#1B1C1D"/>
|
|
488
|
-
`,
|
|
488
|
+
`,r9=`
|
|
489
489
|
<g clip-path="url(#clip0_3802_54557)">
|
|
490
490
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.99334 7.9925C1.99334 4.67917 4.67932 1.99319 7.99266 1.99319C11.306 1.99319 13.992 4.67917 13.992 7.9925C13.992 11.3058 11.306 13.9918 7.99266 13.9918C4.67932 13.9918 1.99334 11.3058 1.99334 7.9925ZM7.99266 0.660004C3.94303 0.660004 0.660156 3.94288 0.660156 7.9925C0.660156 12.0421 3.94303 15.325 7.99266 15.325C12.0423 15.325 15.3252 12.0421 15.3252 7.9925C15.3252 3.94288 12.0423 0.660004 7.99266 0.660004ZM7.90557 5.38535C7.0915 5.38535 6.37035 5.81162 5.92594 6.46722C5.88517 6.52736 5.84673 6.58943 5.81076 6.65328L5.80281 6.66706C5.78987 6.68896 5.7759 6.71012 5.76101 6.73037C5.65007 6.88126 5.48741 6.98251 5.3069 6.98125C4.96202 6.97888 4.71579 6.62124 4.87687 6.29449C4.89842 6.25079 4.92078 6.20758 4.9439 6.16495L4.96655 6.12382C5.00697 6.05147 5.04966 5.98074 5.09451 5.91173C5.7129 4.96022 6.74136 4.33749 7.90557 4.33749C8.59125 4.33749 9.22984 4.55349 9.7653 4.92547C9.95818 5.05946 10.1377 5.21369 10.3012 5.38535C10.4364 5.52727 10.5606 5.6811 10.6724 5.84527L10.6944 5.87794V5.38535C10.6944 5.09885 10.9091 4.86602 11.1755 4.86149L11.1834 4.86142C11.4535 4.86142 11.6724 5.09601 11.6724 5.38535V7.2191C11.6724 7.3132 11.6492 7.40151 11.6087 7.47784C11.5583 7.57278 11.481 7.64919 11.3879 7.69517C11.3257 7.72589 11.2564 7.74303 11.1834 7.74303H9.2274C8.95732 7.74303 8.7384 7.50844 8.7384 7.2191C8.7384 7.06487 8.8006 6.9262 8.8996 6.83032C8.98632 6.74633 9.10128 6.69517 9.2274 6.69517H10.0237L10.0165 6.68245C9.82175 6.32631 9.5507 6.02385 9.2274 5.80082C9.17726 5.76623 9.12585 5.73354 9.07329 5.70287C8.72631 5.5004 8.32848 5.38535 7.90557 5.38535ZM10.4583 9.11278C10.8106 9.11521 11.0582 9.48513 10.8842 9.81335C10.8616 9.85593 10.8383 9.89803 10.8142 9.93952L10.7955 9.97125C10.7694 10.0153 10.7423 10.0587 10.7145 10.1015C10.0959 11.0512 9.06844 11.6725 7.90557 11.6725C7.31558 11.6725 6.76044 11.5126 6.27588 11.2309C6.10379 11.1309 5.94061 11.0156 5.78792 10.8866C5.62517 10.7491 5.47436 10.5961 5.3374 10.4298L5.3154 10.4028V10.8866C5.3154 11.1574 5.12357 11.3803 4.87752 11.4077C4.86072 11.4096 4.84367 11.4105 4.8264 11.4105C4.55632 11.4105 4.3374 11.1759 4.3374 10.8866V9.05285C4.3374 9.04206 4.33771 9.03135 4.33831 9.02072C4.34945 8.82337 4.46256 8.65549 4.62194 8.57678C4.68415 8.54606 4.75341 8.52892 4.8264 8.52892H6.7824C7.05248 8.52892 7.2714 8.76351 7.2714 9.05285C7.2714 9.18119 7.22833 9.29876 7.15683 9.38986C7.06713 9.50414 6.93268 9.57678 6.7824 9.57678H5.9494C6.16967 9.89098 6.45433 10.1504 6.7824 10.3325C6.91693 10.4072 7.05875 10.4688 7.20643 10.516C7.42794 10.5867 7.66262 10.6246 7.90557 10.6246C8.71835 10.6246 9.43849 10.1997 9.88306 9.54591C9.90996 9.50635 9.93585 9.46595 9.96069 9.42476C9.96524 9.41722 9.9699 9.40979 9.97468 9.40244C9.98626 9.38464 9.9986 9.3673 10.0115 9.35071C10.1233 9.20705 10.2826 9.11157 10.4583 9.11278Z" fill="#1B1C1D"/>
|
|
491
491
|
</g>
|
|
@@ -494,11 +494,11 @@ clipRule="evenodd"
|
|
|
494
494
|
<rect width="16" height="16" fill="white"/>
|
|
495
495
|
</clipPath>
|
|
496
496
|
</defs>
|
|
497
|
-
`,
|
|
497
|
+
`,i9=`
|
|
498
498
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.669922 8.005C0.669922 12.056 3.95391 15.34 8.00492 15.34C12.0559 15.34 15.3399 12.056 15.3399 8.005C15.3399 3.95399 12.0559 0.669998 8.00492 0.669998C3.95391 0.669998 0.669922 3.95399 0.669922 8.005ZM10.0237 6.69515H9.22742C8.95734 6.69515 8.73842 6.92975 8.73842 7.21908C8.73842 7.50842 8.95734 7.74301 9.22742 7.74301H11.1834C11.4535 7.74301 11.6724 7.50842 11.6724 7.21908V5.38533C11.6724 5.096 11.4535 4.8614 11.1834 4.8614C10.9133 4.8614 10.6944 5.096 10.6944 5.38533V5.87792C10.0738 4.94544 9.05596 4.33748 7.90559 4.33748C6.59167 4.33748 5.45065 5.13066 4.87689 6.29447C4.71581 6.62122 4.96204 6.97886 5.30692 6.98123C5.5167 6.9827 5.70238 6.84571 5.81078 6.65326C6.23883 5.8934 7.01683 5.38533 7.90559 5.38533C8.80567 5.38533 9.59214 5.90645 10.0166 6.68243L10.0237 6.69515ZM10.8842 9.81334C11.0582 9.48511 10.8106 9.11519 10.4583 9.11276C10.2539 9.11135 10.0717 9.2408 9.96071 9.42474C9.52532 10.1467 8.76755 10.6246 7.90559 10.6246C7.10566 10.6246 6.3955 10.2131 5.94941 9.57676H6.78242C7.0525 9.57676 7.27142 9.34217 7.27142 9.05283C7.27142 8.7635 7.0525 8.5289 6.78242 8.5289H4.82642C4.55634 8.5289 4.33742 8.7635 4.33742 9.05283V10.8866C4.33742 11.1759 4.55634 11.4105 4.82642 11.4105C5.0965 11.4105 5.31542 11.1759 5.31542 10.8866V10.4028C5.94309 11.1804 6.87071 11.6725 7.90559 11.6725C9.18232 11.6725 10.2958 10.9235 10.8842 9.81334Z" fill="#1B1C1D"/>
|
|
499
|
-
`,
|
|
499
|
+
`,s9=`
|
|
500
500
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.66683 7.33333C2.66683 4.756 4.75617 2.66666 7.3335 2.66666C9.91083 2.66666 12.0002 4.756 12.0002 7.33333C12.0002 8.59006 11.5034 9.73077 10.6955 10.5698C10.6722 10.5876 10.6497 10.6072 10.6284 10.6286C10.607 10.6499 10.5874 10.6724 10.5696 10.6957C9.73062 11.5034 8.59006 12 7.3335 12C4.75617 12 2.66683 9.91066 2.66683 7.33333ZM11.0784 12.0214C10.052 12.8424 8.75007 13.3333 7.3335 13.3333C4.01979 13.3333 1.3335 10.647 1.3335 7.33333C1.3335 4.01962 4.01979 1.33333 7.3335 1.33333C10.6472 1.33333 13.3335 4.01962 13.3335 7.33333C13.3335 8.75011 12.8424 10.0522 12.0213 11.0787L14.4712 13.5286C14.7315 13.7889 14.7315 14.2111 14.4712 14.4714C14.2108 14.7318 13.7887 14.7318 13.5284 14.4714L11.0784 12.0214Z" fill="#1B1C1D"/>
|
|
501
|
-
`,
|
|
501
|
+
`,o9=`
|
|
502
502
|
<g clip-path="url(#clip0_3782_54618)">
|
|
503
503
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.23701 13.4743C6.23701 14.4949 7.07207 15.33 8.09271 15.33C9.02056 15.33 9.85562 14.4949 9.85562 13.5671V13.4743C9.85562 13.2887 9.9484 13.1959 10.134 13.1032C10.3195 13.0104 10.4123 13.0104 10.5979 13.1959C11.3402 13.9382 12.4536 13.9382 13.1959 13.1959C13.9382 12.5465 13.9382 11.3403 13.1959 10.598C13.1794 10.5651 13.163 10.5351 13.1476 10.5071C13.076 10.3766 13.0267 10.2867 13.1031 10.134C13.1031 9.94848 13.2887 9.85569 13.4742 9.85569C14.4949 9.85569 15.3299 9.02063 15.3299 8C15.3299 6.97937 14.4949 6.1443 13.4742 6.1443H13.3814C13.2887 6.1443 13.1959 6.05152 13.1031 5.95873V5.86595C13.0103 5.68038 13.0103 5.58759 13.1959 5.40202C13.567 5.03088 13.7526 4.56696 13.7526 4.10304C13.7526 3.63911 13.567 3.17519 13.1959 2.80405C12.8247 2.43291 12.3608 2.24734 11.8969 2.24734C11.433 2.24734 10.969 2.43291 10.5979 2.80405C10.5051 2.89683 10.3195 2.98962 10.134 2.89683C9.9484 2.89683 9.85562 2.71126 9.85562 2.52569C9.85562 1.50506 9.02056 0.669998 7.99992 0.669998C6.97929 0.669998 6.14423 1.50506 6.14423 2.52569V2.61848C6.14423 2.71126 6.05144 2.80405 5.95866 2.89683H5.86587C5.6803 2.98962 5.58752 2.98962 5.40195 2.80405C4.65967 2.06177 3.54625 2.06177 2.80397 2.80405C2.06169 3.45354 2.06169 4.65975 2.80397 5.40202C2.98954 5.49481 2.98954 5.68038 2.89676 5.86595C2.89676 6.05152 2.71119 6.1443 2.52562 6.1443C1.50499 6.1443 0.669922 6.97937 0.669922 8C0.669922 9.02063 1.50499 9.85569 2.52562 9.85569H2.6184C2.71119 9.85569 2.89676 9.94848 2.98954 10.134C3.08233 10.3196 3.08233 10.4124 2.89676 10.598C2.15448 11.3403 2.15448 12.4537 2.89676 13.1959C3.54625 13.9382 4.75245 13.9382 5.49473 13.1959C5.58752 13.0104 5.77309 13.0104 5.95866 13.1032C6.14423 13.1032 6.23701 13.2887 6.23701 13.4743ZM6.42258 11.897C6.23701 11.8042 5.95866 11.8042 5.77309 11.8042C5.30916 11.8042 4.93802 11.9897 4.56688 12.4537C4.38131 12.732 4.01018 12.732 3.73182 12.4537C3.45347 12.1753 3.45347 11.8042 3.73182 11.5258C4.28853 11.0619 4.38131 10.4124 4.10296 9.76291C3.82461 9.11342 3.2679 8.74228 2.6184 8.74228H2.52562C2.15448 8.74228 1.87612 8.46392 1.87612 8.09278C1.87612 7.72164 2.15448 7.44329 2.52562 7.44329C3.2679 7.44329 3.82461 6.97937 4.01018 6.42266C4.28853 5.77316 4.10296 5.12367 3.63904 4.56696L3.63903 4.56696C3.54625 4.38139 3.45347 4.19582 3.45347 4.10304C3.45347 4.01025 3.54625 3.82468 3.63904 3.7319C3.91739 3.45354 4.28853 3.45354 4.56688 3.7319C5.03081 4.19582 5.6803 4.28861 6.14423 4.10304H6.3298C6.97929 3.82468 7.35043 3.26797 7.35043 2.61848V2.52569C7.35043 2.15456 7.62878 1.8762 7.99992 1.8762C8.37106 1.8762 8.64942 2.15456 8.64942 2.52569C8.64942 3.17519 9.02056 3.7319 9.67005 3.7319C10.3195 4.01025 10.969 3.82468 11.5257 3.36076C11.7113 3.17519 12.0825 3.0824 12.3608 3.36076C12.3857 3.41048 12.4105 3.45354 12.4336 3.49351C12.4967 3.60271 12.5464 3.68884 12.5464 3.82468C12.5464 4.01025 12.5464 4.10304 12.3608 4.28861C11.8969 4.75253 11.8041 5.40202 11.9897 5.95873V6.1443C12.268 6.7938 12.8247 7.16494 13.4742 7.16494H13.567C13.9382 7.16494 14.2165 7.44329 14.2165 7.81443C14.2165 8.18557 13.9382 8.46392 13.567 8.46392C12.9175 8.46392 12.3608 8.92785 12.0825 9.48456C11.8041 10.134 11.9897 10.7835 12.4536 11.3403C12.7319 11.5258 12.7319 11.897 12.4536 12.1753C12.1752 12.4537 11.8041 12.4537 11.5257 12.1753C11.0618 11.6186 10.4123 11.5258 9.76283 11.8042C9.11334 12.0825 8.7422 12.6392 8.7422 13.2887V13.3815C8.7422 13.7527 8.46385 14.031 8.09271 14.031C7.72157 14.031 7.44321 13.7527 7.44321 13.3815C7.44321 12.732 6.97929 12.0825 6.42258 11.897ZM5.58737 7.99998C5.58737 9.29897 6.70079 10.4124 7.99977 10.4124C9.29876 10.4124 10.4122 9.29897 10.4122 7.99998C10.4122 6.701 9.29876 5.58758 7.99977 5.58758C6.70079 5.58758 5.58737 6.701 5.58737 7.99998ZM6.79357 7.99998C6.79357 7.35049 7.35028 6.79378 7.99977 6.79378C8.64927 6.79378 9.20598 7.35049 9.20598 7.99998C9.20598 8.64948 8.64927 9.20619 7.99977 9.20619C7.35028 9.20619 6.79357 8.64948 6.79357 7.99998Z" fill="#1B1C1D"/>
|
|
504
504
|
</g>
|
|
@@ -507,12 +507,12 @@ clipRule="evenodd"
|
|
|
507
507
|
<rect width="16" height="16" fill="white"/>
|
|
508
508
|
</clipPath>
|
|
509
509
|
</defs>
|
|
510
|
-
`,
|
|
510
|
+
`,a9=`
|
|
511
511
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.1951 2.19527C6.32012 2.07024 6.48969 2.00001 6.6665 2.00001H9.33317C9.50998 2.00001 9.67955 2.07024 9.80457 2.19527C9.9296 2.32029 9.99984 2.48986 9.99984 2.66667V3.33333H5.99984V2.66667C5.99984 2.48986 6.07008 2.32029 6.1951 2.19527ZM5.32948 4.66666L5.33317 4.66667L5.33686 4.66666H10.6628L10.6665 4.66667L10.6702 4.66666H11.9998V13.3333C11.9998 13.5101 11.9296 13.6797 11.8046 13.8047C11.6796 13.9298 11.51 14 11.3332 14H4.6665C4.48969 14 4.32012 13.9298 4.1951 13.8047C4.07008 13.6797 3.99984 13.5101 3.99984 13.3333V4.66666H5.32948ZM4.6665 3.33333V2.66667C4.6665 2.13624 4.87722 1.62753 5.25229 1.25246C5.62736 0.877385 6.13607 0.666672 6.6665 0.666672H9.33317C9.8636 0.666672 10.3723 0.877385 10.7474 1.25246C11.1225 1.62753 11.3332 2.13624 11.3332 2.66667V3.33333H14.0002C14.3684 3.33333 14.6668 3.63181 14.6668 3.99999C14.6668 4.36818 14.3684 4.66666 14.0002 4.66666H13.3332V13.3333C13.3332 13.8638 13.1225 14.3725 12.7474 14.7476C12.3723 15.1226 11.8636 15.3333 11.3332 15.3333H4.6665C4.13607 15.3333 3.62736 15.1226 3.25229 14.7476C2.87722 14.3725 2.6665 13.8638 2.6665 13.3333V4.66666H2.00016C1.63197 4.66666 1.3335 4.36818 1.3335 3.99999C1.3335 3.63181 1.63197 3.33333 2.00016 3.33333H4.6665ZM6.66667 6.66667C7.03486 6.66667 7.33333 6.96515 7.33333 7.33334V11.3333C7.33333 11.7015 7.03486 12 6.66667 12C6.29848 12 6 11.7015 6 11.3333V7.33334C6 6.96515 6.29848 6.66667 6.66667 6.66667ZM9.99984 7.33334C9.99984 6.96515 9.70136 6.66667 9.33317 6.66667C8.96498 6.66667 8.6665 6.96515 8.6665 7.33334V11.3333C8.6665 11.7015 8.96498 12 9.33317 12C9.70136 12 9.99984 11.7015 9.99984 11.3333V7.33334Z" fill="#1B1C1D"/>
|
|
512
|
-
`,
|
|
512
|
+
`,l9=`
|
|
513
513
|
<path d="M11.2336 2.2698C10.8814 2.07848 10.4407 2.20888 10.2494 2.56114C10.058 2.91335 10.1885 3.35401 10.5407 3.54538C12.2592 4.47891 13.3268 6.27238 13.3268 8.22596C13.3268 11.1608 10.939 13.5485 8.00417 13.5485C5.0693 13.5485 2.68159 11.1608 2.68159 8.22596C2.68159 6.28089 3.74229 4.49115 5.44972 3.5551C5.80125 3.36243 5.92996 2.92123 5.73729 2.56975C5.54456 2.21827 5.10337 2.08951 4.75193 2.28218C2.57955 3.47314 1.22998 5.75067 1.22998 8.22596C1.22998 11.9612 4.26888 15.0002 8.00417 15.0002C11.7395 15.0002 14.7784 11.9612 14.7784 8.22596C14.7784 5.73983 13.4201 3.45756 11.2336 2.2698Z" fill="black"/>
|
|
514
514
|
<path d="M8.00856 6C8.41172 6 8.73856 5.69287 8.73856 5.31402V1.68598C8.73856 1.30713 8.41172 1 8.00856 1C7.60541 1 7.27856 1.30713 7.27856 1.68598V5.31402C7.27856 5.69287 7.60541 6 8.00856 6Z" fill="black"/>
|
|
515
|
-
`,
|
|
515
|
+
`,c9=`
|
|
516
516
|
<g clip-path="url(#clip0_3796_54894)">
|
|
517
517
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.665039 7.99999C0.665039 3.94898 3.94903 0.664993 8.00004 0.664993C12.051 0.664993 15.335 3.94898 15.335 7.99999C15.335 12.051 12.051 15.335 8.00004 15.335C3.94903 15.335 0.665039 12.051 0.665039 7.99999ZM7.81408 7.29795C7.41051 7.29795 6.90961 7.02079 6.90961 6.48705L6.90961 3.49298C6.90961 2.95924 7.41051 2.68207 7.81408 2.68207C8.21764 2.68207 8.71854 2.95924 8.71854 3.49298V6.48705C8.71854 7.02079 8.21764 7.29795 7.81408 7.29795ZM7.34625 6.48705C7.34625 6.52987 7.35524 6.57101 7.37179 6.60932C7.35528 6.57104 7.34631 6.52995 7.34631 6.48718L7.34631 3.4931C7.34631 3.28641 7.55576 3.11884 7.81413 3.11884C8.01898 3.11884 8.19308 3.22418 8.25642 3.37083C8.19313 3.22411 8.01899 3.11872 7.81408 3.11872C7.55571 3.11872 7.34625 3.28628 7.34625 3.49298V6.48705ZM10.2891 4.46607C10.4831 4.36189 10.7323 4.36837 10.9319 4.53458C11.9413 5.37516 12.5843 6.64208 12.5843 8.05899C12.5843 10.5909 10.5318 12.6434 7.99996 12.6434C5.46808 12.6434 3.41559 10.5909 3.41559 8.05899C3.41559 6.81896 3.90821 5.69354 4.70795 4.8685C4.90017 4.67021 5.16232 4.64324 5.37163 4.74332C5.57623 4.84115 5.7232 5.05549 5.7232 5.31752C5.7232 5.49654 5.64966 5.66055 5.53619 5.78333C4.98349 6.38141 4.64606 7.18055 4.64606 8.05899C4.64606 9.9113 6.14765 11.4129 7.99996 11.4129C9.85227 11.4129 11.3539 9.9113 11.3539 8.05899C11.3539 7.04967 10.9083 6.14467 10.2024 5.52949C10.06 5.40539 9.9648 5.22336 9.9648 5.02076C9.9648 4.77408 10.0988 4.56832 10.2891 4.46607Z" fill="#1B1C1D"/>
|
|
518
518
|
</g>
|
|
@@ -521,33 +521,33 @@ clipRule="evenodd"
|
|
|
521
521
|
<rect width="16" height="16" fill="white"/>
|
|
522
522
|
</clipPath>
|
|
523
523
|
</defs>
|
|
524
|
-
`,
|
|
524
|
+
`,u9=`
|
|
525
525
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.22206 1.37123C8.15258 1.34669 8.07781 1.33333 7.99992 1.33333C7.8915 1.33333 7.78912 1.35921 7.69863 1.40513C7.66638 1.42148 7.63518 1.44062 7.60539 1.46254C7.57574 1.48435 7.54795 1.50855 7.52232 1.53486L4.19526 4.86192C3.93491 5.12227 3.93491 5.54438 4.19526 5.80473C4.45561 6.06508 4.87772 6.06508 5.13807 5.80473L7.33325 3.60955V10C7.33325 10.3682 7.63173 10.6667 7.99992 10.6667C8.36811 10.6667 8.66659 10.3682 8.66659 10V3.60939L10.8619 5.80473C11.1223 6.06508 11.5444 6.06508 11.8047 5.80473C12.0651 5.54438 12.0651 5.12227 11.8047 4.86192L8.4714 1.52859C8.39858 1.45577 8.31311 1.40332 8.22206 1.37123ZM1.99992 9.33333C2.36811 9.33333 2.66659 9.63181 2.66659 10V12.6667C2.66659 12.8435 2.73682 13.013 2.86185 13.1381C2.98687 13.2631 3.15644 13.3333 3.33325 13.3333H12.6666C12.8434 13.3333 13.013 13.2631 13.138 13.1381C13.263 13.013 13.3333 12.8435 13.3333 12.6667V10C13.3333 9.63181 13.6317 9.33333 13.9999 9.33333C14.3681 9.33333 14.6666 9.63181 14.6666 10V12.6667C14.6666 13.1971 14.4559 13.7058 14.0808 14.0809C13.7057 14.4559 13.197 14.6667 12.6666 14.6667H3.33325C2.80282 14.6667 2.29411 14.4559 1.91904 14.0809C1.54397 13.7058 1.33325 13.1971 1.33325 12.6667V10C1.33325 9.63181 1.63173 9.33333 1.99992 9.33333Z" fill="#1B1C1D"/>
|
|
526
|
-
`,
|
|
526
|
+
`,h9=`
|
|
527
527
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 1.35A.35.35 0 0 1 1.35 1h2.8a.35.35 0 0 1 .35.35v2.8a.35.35 0 0 1-.35.35h-2.8A.35.35 0 0 1 1 4.15v-2.8ZM1 6.6a.35.35 0 0 1 .35-.35h2.8a.35.35 0 0 1 .35.35v2.8a.35.35 0 0 1-.35.35h-2.8A.35.35 0 0 1 1 9.4V6.6Zm.35 4.9a.35.35 0 0 0-.35.35v2.8c0 .193.157.35.35.35h2.8a.35.35 0 0 0 .35-.35v-2.8a.35.35 0 0 0-.35-.35h-2.8Zm4.9-10.15A.35.35 0 0 1 6.6 1h2.8a.35.35 0 0 1 .35.35v2.8a.35.35 0 0 1-.35.35H6.6a.35.35 0 0 1-.35-.35v-2.8Zm.35 4.9a.35.35 0 0 0-.35.35v2.8c0 .193.157.35.35.35h2.8a.35.35 0 0 0 .35-.35V6.6a.35.35 0 0 0-.35-.35H6.6Zm-.35 5.6a.35.35 0 0 1 .35-.35h2.8a.35.35 0 0 1 .35.35v2.8a.35.35 0 0 1-.35.35H6.6a.35.35 0 0 1-.35-.35v-2.8ZM11.85 1a.35.35 0 0 0-.35.35v2.8c0 .193.157.35.35.35h2.8a.35.35 0 0 0 .35-.35v-2.8a.35.35 0 0 0-.35-.35h-2.8Zm-.35 5.6a.35.35 0 0 1 .35-.35h2.8a.35.35 0 0 1 .35.35v2.8a.35.35 0 0 1-.35.35h-2.8a.35.35 0 0 1-.35-.35V6.6Zm.35 4.9a.35.35 0 0 0-.35.35v2.8c0 .193.157.35.35.35h2.8a.35.35 0 0 0 .35-.35v-2.8a.35.35 0 0 0-.35-.35h-2.8Z" fill="#8C93A6"/>
|
|
528
|
-
`,
|
|
528
|
+
`,d9=`
|
|
529
529
|
<g clip-path="url(#a)" fill-rule="evenodd" clip-rule="evenodd" fill="#465669"><path d="M12.243 3.757a6 6 0 1 0-8.486 8.485 6 6 0 0 0 8.486-8.485Zm-9.428-.943a7.333 7.333 0 1 1 10.37 10.371 7.333 7.333 0 0 1-10.37-10.37Z"/><path d="M9.886 5.448c.368 0 .666.298.666.667v3.77a.667.667 0 0 1-1.333 0V6.782H6.114a.667.667 0 0 1 0-1.333h3.772Z"/><path d="M10.357 5.643c.26.26.26.683 0 .943l-3.771 3.771a.667.667 0 1 1-.943-.942l3.771-3.772c.26-.26.683-.26.943 0Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs>
|
|
530
|
-
`,
|
|
530
|
+
`,Sd=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
531
531
|
<path d="M9.72533 5.2756C9.49566 4.97913 9.18312 4.75754 8.82733 4.63894L7.90867 4.34027C7.83814 4.31517 7.7771 4.26885 7.73395 4.20767C7.69079 4.1465 7.66762 4.07347 7.66762 3.9986C7.66762 3.92374 7.69079 3.85071 7.73395 3.78953C7.7771 3.72836 7.83814 3.68204 7.90867 3.65694L8.82733 3.35827C9.09918 3.2644 9.34606 3.10982 9.54925 2.90629C9.75244 2.70276 9.90659 2.45561 10 2.1836L10.0073 2.16094L10.306 1.24294C10.3308 1.17195 10.3771 1.11043 10.4384 1.06691C10.4998 1.02338 10.5731 1 10.6483 1C10.7235 1 10.7969 1.02338 10.8582 1.06691C10.9196 1.11043 10.9658 1.17195 10.9907 1.24294L11.2887 2.16094C11.3818 2.43997 11.5387 2.69345 11.7469 2.90128C11.9551 3.10912 12.2088 3.26558 12.488 3.35827L13.406 3.65694L13.4247 3.6616C13.4952 3.68671 13.5562 3.73303 13.5994 3.7942C13.6425 3.85537 13.6657 3.92841 13.6657 4.00327C13.6657 4.07814 13.6425 4.15117 13.5994 4.21234C13.5562 4.27351 13.4952 4.31983 13.4247 4.34494L12.506 4.6436C12.2269 4.73638 11.9733 4.89289 11.7653 5.10071C11.5572 5.30854 11.4004 5.56198 11.3073 5.84094L11.0087 6.75894L11 6.7816C10.9712 6.84869 10.9228 6.90552 10.8612 6.94465C10.7996 6.98379 10.7276 7.00342 10.6546 7.00098C10.5816 6.99853 10.5111 6.97411 10.4522 6.93093C10.3934 6.88774 10.3489 6.8278 10.3247 6.75894L10.026 5.84094C9.95929 5.63663 9.85713 5.44537 9.72533 5.2756ZM14.856 7.8096L14.3453 7.64427C14.1904 7.59247 14.0496 7.50532 13.9341 7.38973C13.8187 7.27414 13.7317 7.13328 13.68 6.97827L13.5133 6.46894C13.4995 6.42956 13.4738 6.39544 13.4398 6.3713C13.4058 6.34717 13.3651 6.3342 13.3233 6.3342C13.2816 6.3342 13.2409 6.34717 13.2069 6.3713C13.1728 6.39544 13.1471 6.42956 13.1333 6.46894L12.968 6.97827C12.9173 7.13228 12.8317 7.27251 12.7179 7.38803C12.6041 7.50355 12.4652 7.59124 12.312 7.64427L11.802 7.8096C11.7626 7.82341 11.7285 7.8491 11.7044 7.88314C11.6802 7.91718 11.6673 7.95788 11.6673 7.9996C11.6673 8.04133 11.6802 8.08203 11.7044 8.11607C11.7285 8.1501 11.7626 8.1758 11.802 8.1896L12.312 8.3556C12.4674 8.40743 12.6086 8.4948 12.7243 8.61076C12.8401 8.72673 12.9271 8.86808 12.9787 9.0236L13.144 9.53294C13.1578 9.57232 13.1835 9.60643 13.2175 9.63057C13.2516 9.65471 13.2923 9.66767 13.334 9.66767C13.3757 9.66767 13.4164 9.65471 13.4505 9.63057C13.4845 9.60643 13.5102 9.57232 13.524 9.53294L13.69 9.0236C13.7417 8.86853 13.8288 8.72761 13.9444 8.61202C14.06 8.49642 14.2009 8.40932 14.356 8.3576L14.866 8.19227C14.9054 8.17847 14.9395 8.15277 14.9636 8.11873C14.9878 8.0847 15.0007 8.044 15.0007 8.00227C15.0007 7.96054 14.9878 7.91985 14.9636 7.88581C14.9395 7.85177 14.9054 7.82607 14.866 7.81227L14.856 7.8096ZM5.83333 3.00294C6.47733 3.00294 7 3.52494 7 4.1696V7.1696C7 7.47902 6.87708 7.77577 6.65829 7.99456C6.4395 8.21335 6.14275 8.33627 5.83333 8.33627H2.16667C1.85725 8.33627 1.5605 8.21335 1.34171 7.99456C1.12292 7.77577 1 7.47902 1 7.1696V4.1696C1 3.52494 1.522 3.00294 2.16667 3.00294H5.83333ZM3.82533 9.6576C4.46933 9.6576 4.992 10.1796 4.992 10.8243V13.8336C4.992 14.143 4.86908 14.4398 4.65029 14.6586C4.4315 14.8774 4.13475 15.0003 3.82533 15.0003H2.16667C1.85725 15.0003 1.5605 14.8774 1.34171 14.6586C1.12292 14.4398 1 14.143 1 13.8336V10.8243C1 10.1796 1.522 9.6576 2.16667 9.6576H3.82533ZM11.8347 9.66694C12.4787 9.66694 13.0013 10.1896 13.0013 10.8336V13.8336C13.0013 14.143 12.8784 14.4398 12.6596 14.6586C12.4408 14.8774 12.1441 15.0003 11.8347 15.0003H7.50133C7.19191 15.0003 6.89517 14.8774 6.67638 14.6586C6.45758 14.4398 6.33467 14.143 6.33467 13.8336V10.8336L6.338 10.7376C6.36227 10.4457 6.49546 10.1736 6.71111 9.97536C6.92676 9.77713 7.20908 9.66727 7.502 9.6676L11.8347 9.66694Z" fill="#3398B9"/>
|
|
532
|
-
</svg>`,
|
|
532
|
+
</svg>`,f9={branch:A5,dots:B5,"circle-active":R5,"circle-dots":L5,"circle-dots-fill":N5,"circle-help":I5,"circle-help-fill":H5,plus:W5,"circle-plus":j5,"circle-plus-fill":q5,minus:V5,"circle-minus":F5,"circle-minus-fill":Q5,copy:z5,close:Y5,download:$5,edit:U5,filter:Z5,link:K5,"external-link":X5,list:G5,loading:J5,login:e9,logout:t9,menu:n9,refresh:r9,"refresh-fill":i9,search:s9,settings:o9,trash:a9,"turn-on":l9,"turn-on-fill":c9,upload:u9,module:h9,"circle-migrate":d9,sparkles:Sd,"sparkles-fill":Sd},p9={...j2,...t5,...E5,...f9},_n=({size:r="md",className:e,name:t,filled:n,color:i=xd.neutral_70})=>{const s=(()=>{const l=n?t+"-fill":t;return p9[l]})();if(!s)return console.warn(`Icon ${t} not found`),null;const o=kd[r],a=i?s.replace(/fill="[^"]*"/g,`fill="var(--color-${i})"`):s;return R2.jsx("svg",{"data-testid":"icon-test-id",className:e,dangerouslySetInnerHTML:{__html:a},height:o,width:o,fill:"none",viewBox:"0 0 16 16"})},Od=()=>({theme:E2(r=>r.theme)});var _d={exports:{}};/*!
|
|
533
533
|
Copyright (c) 2018 Jed Watson.
|
|
534
534
|
Licensed under the MIT License (MIT), see
|
|
535
535
|
http://jedwatson.github.io/classnames
|
|
536
|
-
*/(function(t){(function(){var r={}.hasOwnProperty;function n(){for(var e=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")e.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&e.push(s)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var c in a)r.call(a,c)&&a[c]&&e.push(c)}}}return e.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(o1);var y6=o1.exports;const Le=Bo(y6),b6="_text_4ha5d_1",w6="_text__lg_4ha5d_1",k6="_text__md_4ha5d_7",D6="_text__sm_4ha5d_14",S6="_text__xs_4ha5d_21",M6="_text__medium_4ha5d_28",E6="_text__darkMode_4ha5d_31",dn={text:b6,text__lg:w6,text__md:k6,text__sm:D6,text__xs:S6,text__medium:M6,text__darkMode:E6},vr=({children:t,className:r,darkMode:n,type:e="md",weight:o="regular"})=>U.jsx("p",{className:Le(dn.text,dn[`text__${e}`],n&&dn.text__darkMode,o==="medium"&&dn.text__medium,r&&r),children:t});vr.prototype={avocado:"Text"};const x6="_heading_1qyoa_1",L6="_heading__1_1qyoa_1",T6="_heading__2_1qyoa_8",P6="_heading__3_1qyoa_15",O6="_heading__4_1qyoa_22",N6="_heading__darkMode_1qyoa_29",De={heading:x6,heading__1:L6,heading__2:T6,heading__3:P6,heading__4:O6,heading__darkMode:N6},pn=t=>{const{children:r,className:n,darkMode:e,type:o}=t;switch(o){case"h1":return U.jsx("h1",{className:Le(De.heading,De.heading__1,e&&De.heading__darkMode,n&&n),children:r});case"h2":return U.jsx("h2",{className:Le(De.heading,De.heading__2,e&&De.heading__darkMode,n&&n),children:r});case"h3":return U.jsx("h3",{className:Le(De.heading,De.heading__3,e&&De.heading__darkMode,n&&n),children:r});case"h4":return U.jsx("h4",{className:Le(De.heading,De.heading__4,e&&De.heading__darkMode,n&&n),children:r});default:return null}};pn.prototype={avocado:"Heading"};const R6="_button_zj995_1",H6="_button__loading_zj995_20",A6="_button_icon_zj995_32",I6="_button_loadingIcon_zj995_38",V6="_button__sm_zj995_45",F6="_button__secondary_zj995_50",B6="_button__darkMode_zj995_65",Y6="_button__ghost_zj995_76",Z6="_button__danger_zj995_91",Ke={button:R6,button__loading:H6,button_icon:A6,button_loadingIcon:I6,button__sm:V6,button__secondary:F6,button__darkMode:B6,button__ghost:Y6,button__danger:Z6},a1=({children:t,className:r,loading:n=!1,leftIcon:e,rightIcon:o,variant:a="primary",type:i="button",size:s="md",...c})=>{const{theme:l}=r1();return U.jsxs("button",{className:Le(Ke.button,r&&r,a&&Ke[`button__${a}`],s&&Ke[`button__${s}`],(l==null?void 0:l.mode)==="dark"&&Ke.button__darkMode,n&&Ke.button__loading),type:i,...c,children:[e&&U.jsx(Qe,{className:Ke.button_icon,name:e,size:"md"}),t,o&&U.jsx(Qe,{className:Ke.button_icon,name:o,size:"md"}),n&&U.jsx(Qe,{className:Ke.button_loadingIcon,name:"loading",size:"md"})]})};a1.prototype={avocado:"Button"};const j6="_cardNotification_l95m2_1",W6="_cardNotification_mainRow_l95m2_10",q6="_iconState_l95m2_15",U6="_mainInfo_l95m2_18",z6="_closeButton_l95m2_26",$6="_cardNotification__error_l95m2_30",Q6="_cardNotification__outlined_l95m2_33",K6="_mainInfo_title_l95m2_36",X6="_cardNotification__warning_l95m2_39",G6="_cardNotification__info_l95m2_48",J6="_cardNotification__success_l95m2_57",Ze={cardNotification:j6,cardNotification_mainRow:W6,iconState:q6,mainInfo:U6,closeButton:z6,cardNotification__error:$6,cardNotification__outlined:Q6,mainInfo_title:K6,cardNotification__warning:X6,cardNotification__info:G6,cardNotification__success:J6},i1={error:{name:"circle-cross",color:"red-50"},warning:{name:"alert-triangle",color:"warning-50"},info:{name:"circle-info",color:"blue-50"},success:{name:"circle-check",color:"green-50"}},s1=({state:t="error",outlined:r,title:n,children:e,className:o,dismissible:a=!1,extraContent:i})=>{const[s,c]=g.useState(!0),l=[Ze.cardNotification,t&&(Ze==null?void 0:Ze[`cardNotification__${t}`]),r&&Ze.cardNotification__outlined,o&&o],u=d=>typeof d=="string";return(d=>{let p=!1,f=!1;return g.Children.forEach(d,h=>{u(h)&&(f=!0),g.isValidElement(h)&&(p=!0)}),p&&f})(e)&&console.error("CardNotification component does not support mixed children, please use only string or ReactNode"),s?U.jsxs("article",{className:Le(...l),children:[U.jsxs("section",{className:Ze.cardNotification_mainRow,children:[U.jsx(Qe,{className:Ze.iconState,...i1==null?void 0:i1[t],filled:!0}),U.jsxs("div",{className:Ze.mainInfo,children:[U.jsx(pn,{type:"h3",className:Ze.mainInfo_title,children:n}),u(e)&&U.jsx(vr,{type:"sm",children:e}),g.isValidElement(e)&&U.jsx("div",{children:e})]}),a&&U.jsx("button",{className:Ze.closeButton,onClick:()=>c(!1),children:U.jsx(Qe,{name:"close"})})]}),i&&i]}):null};s1.prototype={avocado:"CardNotification"};function c1(t){var r,n,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=c1(t[r]))&&(e&&(e+=" "),e+=n)}else for(n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function se(){for(var t,r,n=0,e="",o=arguments.length;n<o;n++)(t=arguments[n])&&(r=c1(t))&&(e&&(e+=" "),e+=r);return e}function ec(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,_r(t,r)}function _r(t,r){return _r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},_r(t,r)}function tc(t,r){if(t==null)return{};var n={},e=Object.keys(t),o,a;for(a=0;a<e.length;a++)o=e[a],!(r.indexOf(o)>=0)&&(n[o]=t[o]);return n}function l1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nc(t,r,n){return t===r?!0:t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n)}function rc(t,r,n){if(t===r)return!0;for(;t.parentNode||t.host;){if(t.parentNode&&nc(t,r,n))return!0;t=t.parentNode||t.host}return t}function oc(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY}var ac=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,r=Object.defineProperty({},"passive",{get:function(){t=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,r),window.removeEventListener("testPassiveEventSupport",n,r),t}};function ic(t){return t===void 0&&(t=0),function(){return++t}}var sc=ic(),yr,fn={},br={},cc=["touchstart","touchmove"],lc="ignore-react-onclickoutside";function u1(t,r){var n={},e=cc.indexOf(r)!==-1;return e&&yr&&(n.passive=!t.props.preventDefault),n}function hn(t,r){var n,e,o=t.displayName||t.name||"Component";return e=n=function(a){ec(i,a);function i(c){var l;return l=a.call(this,c)||this,l.__outsideClickHandler=function(u){if(typeof l.__clickOutsideHandlerProp=="function"){l.__clickOutsideHandlerProp(u);return}var d=l.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+o+" lacks a handleClickOutside(event) function for processing outside click events.")},l.__getComponentNode=function(){var u=l.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():mr.findDOMNode(u)},l.enableOnClickOutside=function(){if(!(typeof document>"u"||br[l._uid])){typeof yr>"u"&&(yr=ac()),br[l._uid]=!0;var u=l.props.eventTypes;u.forEach||(u=[u]),fn[l._uid]=function(d){if(l.componentNode!==null&&!(l.initTimeStamp>d.timeStamp)&&(l.props.preventDefault&&d.preventDefault(),l.props.stopPropagation&&d.stopPropagation(),!(l.props.excludeScrollbar&&oc(d)))){var p=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;rc(p,l.componentNode,l.props.outsideClickIgnoreClass)===document&&l.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,fn[l._uid],u1(l1(l),d))})}},l.disableOnClickOutside=function(){delete br[l._uid];var u=fn[l._uid];if(u&&typeof document<"u"){var d=l.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(p){return document.removeEventListener(p,u,u1(l1(l),p))}),delete fn[l._uid]}},l.getRef=function(u){return l.instanceRef=u},l._uid=sc(),l.initTimeStamp=performance.now(),l}var s=i.prototype;return s.getInstance=function(){if(t.prototype&&!t.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var l=tc(c,["excludeScrollbar"]);return t.prototype&&t.prototype.isReactComponent?l.ref=this.getRef:l.wrappedRef=this.getRef,l.disableOnClickOutside=this.disableOnClickOutside,l.enableOnClickOutside=this.enableOnClickOutside,g.createElement(t,l)},i}(g.Component),n.displayName="OnClickOutside("+o+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:lc,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},e}function L(t){const r=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&r==="[object Date]"?new t.constructor(+t):typeof t=="number"||r==="[object Number]"||typeof t=="string"||r==="[object String]"?new Date(t):new Date(NaN)}function Q(t,r){return t instanceof Date?new t.constructor(r):new Date(r)}function Xe(t,r){const n=L(t);return isNaN(r)?Q(t,NaN):(r&&n.setDate(n.getDate()+r),n)}function wr(t,r){const n=+L(t);return Q(t,n+r)}const d1=6048e5,uc=864e5,mn=6e4,gn=36e5,dc=1e3;function pc(t,r){return wr(t,r*gn)}function kr(t,r){return wr(t,r*mn)}function Ee(t,r){const n=L(t);if(isNaN(r))return Q(t,NaN);if(!r)return n;const e=n.getDate(),o=Q(t,n.getTime());o.setMonth(n.getMonth()+r+1,0);const a=o.getDate();return e>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),e),n)}function Dr(t,r){const n=r*3;return Ee(t,n)}function fc(t,r){return wr(t,r*1e3)}function Cn(t,r){const n=r*7;return Xe(t,n)}function je(t,r){return Ee(t,r*12)}function ct(t){const r=L(t);return r.setHours(0,0,0,0),r}function vn(t){const r=L(t),n=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return n.setUTCFullYear(r.getFullYear()),+t-+n}function Bt(t,r){const n=ct(t),e=ct(r),o=+n-vn(n),a=+e-vn(e);return Math.round((o-a)/uc)}function _n(t,r){const n=L(t),e=L(r),o=n.getFullYear()-e.getFullYear(),a=n.getMonth()-e.getMonth();return o*12+a}function lt(t){const r=L(t);return Math.trunc(r.getMonth()/3)+1}function yn(t,r){const n=L(t),e=L(r),o=n.getFullYear()-e.getFullYear(),a=lt(n)-lt(e);return o*4+a}function bn(t,r){const n=L(t),e=L(r);return n.getFullYear()-e.getFullYear()}function p1(t){const r=L(t);return r.setHours(23,59,59,999),r}function hc(t){const r=L(t),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}let mc={};function ut(){return mc}function gc(t,r){var n,e;const o=ut(),a=o.weekStartsOn??((e=(n=o.locale)==null?void 0:n.options)==null?void 0:e.weekStartsOn)??0,i=L(t),s=i.getDay(),c=(s<a?-7:0)+6-(s-a);return i.setDate(i.getDate()+c),i.setHours(23,59,59,999),i}function f1(t){const r=L(t),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}const Cc={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"}},vc=(t,r,n)=>{let e;const o=Cc[t];return typeof o=="string"?e=o:r===1?e=o.one:e=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+e:e+" ago":e};function Sr(t){return(r={})=>{const n=r.width?String(r.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const _c={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yc={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bc={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wc={date:Sr({formats:_c,defaultWidth:"full"}),time:Sr({formats:yc,defaultWidth:"full"}),dateTime:Sr({formats:bc,defaultWidth:"full"})},kc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dc=(t,r,n,e)=>kc[t];function Yt(t){return(r,n)=>{const e=n!=null&&n.context?String(n.context):"standalone";let o;if(e==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=t.formattingValues[s]||t.formattingValues[i]}else{const i=t.defaultWidth,s=n!=null&&n.width?String(n.width):t.defaultWidth;o=t.values[s]||t.values[i]}const a=t.argumentCallback?t.argumentCallback(r):r;return o[a]}}const Sc={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Mc={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ec={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"]},xc={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"]},Lc={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"}},Tc={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"}},Pc=(t,r)=>{const n=Number(t),e=n%100;if(e>20||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Oc={ordinalNumber:Pc,era:Yt({values:Sc,defaultWidth:"wide"}),quarter:Yt({values:Mc,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Yt({values:Ec,defaultWidth:"wide"}),day:Yt({values:xc,defaultWidth:"wide"}),dayPeriod:Yt({values:Lc,defaultWidth:"wide",formattingValues:Tc,defaultFormattingWidth:"wide"})};function Zt(t){return(r,n={})=>{const e=n.width,o=e&&t.matchPatterns[e]||t.matchPatterns[t.defaultMatchWidth],a=r.match(o);if(!a)return null;const i=a[0],s=e&&t.parsePatterns[e]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(s)?Rc(s,d=>d.test(i)):Nc(s,d=>d.test(i));let l;l=t.valueCallback?t.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const u=r.slice(i.length);return{value:l,rest:u}}}function Nc(t,r){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r(t[n]))return n}function Rc(t,r){for(let n=0;n<t.length;n++)if(r(t[n]))return n}function Hc(t){return(r,n={})=>{const e=r.match(t.matchPattern);if(!e)return null;const o=e[0],a=r.match(t.parsePattern);if(!a)return null;let i=t.valueCallback?t.valueCallback(a[0]):a[0];i=n.valueCallback?n.valueCallback(i):i;const s=r.slice(o.length);return{value:i,rest:s}}}const Ac=/^(\d+)(th|st|nd|rd)?/i,Ic=/\d+/i,Vc={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},Fc={any:[/^b/i,/^(a|c)/i]},Bc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yc={any:[/1/i,/2/i,/3/i,/4/i]},Zc={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},jc={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]},Wc={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},qc={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]},Uc={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},zc={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}},$c={ordinalNumber:Hc({matchPattern:Ac,parsePattern:Ic,valueCallback:t=>parseInt(t,10)}),era:Zt({matchPatterns:Vc,defaultMatchWidth:"wide",parsePatterns:Fc,defaultParseWidth:"any"}),quarter:Zt({matchPatterns:Bc,defaultMatchWidth:"wide",parsePatterns:Yc,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Zt({matchPatterns:Zc,defaultMatchWidth:"wide",parsePatterns:jc,defaultParseWidth:"any"}),day:Zt({matchPatterns:Wc,defaultMatchWidth:"wide",parsePatterns:qc,defaultParseWidth:"any"}),dayPeriod:Zt({matchPatterns:Uc,defaultMatchWidth:"any",parsePatterns:zc,defaultParseWidth:"any"})},h1={code:"en-US",formatDistance:vc,formatLong:wc,formatRelative:Dc,localize:Oc,match:$c,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wn(t){const r=L(t),n=Q(t,0);return n.setFullYear(r.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Qc(t){const r=L(t);return Bt(r,wn(r))+1}function We(t,r){var n,e,o,a;const i=ut(),s=(r==null?void 0:r.weekStartsOn)??((e=(n=r==null?void 0:r.locale)==null?void 0:n.options)==null?void 0:e.weekStartsOn)??i.weekStartsOn??((a=(o=i.locale)==null?void 0:o.options)==null?void 0:a.weekStartsOn)??0,c=L(t),l=c.getDay(),u=(l<s?7:0)+l-s;return c.setDate(c.getDate()-u),c.setHours(0,0,0,0),c}function _t(t){return We(t,{weekStartsOn:1})}function m1(t){const r=L(t),n=r.getFullYear(),e=Q(t,0);e.setFullYear(n+1,0,4),e.setHours(0,0,0,0);const o=_t(e),a=Q(t,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const i=_t(a);return r.getTime()>=o.getTime()?n+1:r.getTime()>=i.getTime()?n:n-1}function Kc(t){const r=m1(t),n=Q(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),_t(n)}function Mr(t){const r=L(t),n=+_t(r)-+Kc(r);return Math.round(n/d1)+1}function Er(t,r){var n,e,o,a;const i=L(t),s=i.getFullYear(),c=ut(),l=(r==null?void 0:r.firstWeekContainsDate)??((e=(n=r==null?void 0:r.locale)==null?void 0:n.options)==null?void 0:e.firstWeekContainsDate)??c.firstWeekContainsDate??((a=(o=c.locale)==null?void 0:o.options)==null?void 0:a.firstWeekContainsDate)??1,u=Q(t,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);const d=We(u,r),p=Q(t,0);p.setFullYear(s,0,l),p.setHours(0,0,0,0);const f=We(p,r);return i.getTime()>=d.getTime()?s+1:i.getTime()>=f.getTime()?s:s-1}function Xc(t,r){var n,e,o,a;const i=ut(),s=(r==null?void 0:r.firstWeekContainsDate)??((e=(n=r==null?void 0:r.locale)==null?void 0:n.options)==null?void 0:e.firstWeekContainsDate)??i.firstWeekContainsDate??((a=(o=i.locale)==null?void 0:o.options)==null?void 0:a.firstWeekContainsDate)??1,c=Er(t,r),l=Q(t,0);return l.setFullYear(c,0,s),l.setHours(0,0,0,0),We(l,r)}function g1(t,r){const n=L(t),e=+We(n,r)-+Xc(n,r);return Math.round(e/d1)+1}function K(t,r){const n=t<0?"-":"",e=Math.abs(t).toString().padStart(r,"0");return n+e}const Ge={y(t,r){const n=t.getFullYear(),e=n>0?n:1-n;return K(r==="yy"?e%100:e,r.length)},M(t,r){const n=t.getMonth();return r==="M"?String(n+1):K(n+1,2)},d(t,r){return K(t.getDate(),r.length)},a(t,r){const n=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,r){return K(t.getHours()%12||12,r.length)},H(t,r){return K(t.getHours(),r.length)},m(t,r){return K(t.getMinutes(),r.length)},s(t,r){return K(t.getSeconds(),r.length)},S(t,r){const n=r.length,e=t.getMilliseconds(),o=Math.trunc(e*Math.pow(10,n-3));return K(o,r.length)}},yt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},C1={G:function(t,r,n){const e=t.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){const e=t.getFullYear(),o=e>0?e:1-e;return n.ordinalNumber(o,{unit:"year"})}return Ge.y(t,r)},Y:function(t,r,n,e){const o=Er(t,e),a=o>0?o:1-o;if(r==="YY"){const i=a%100;return K(i,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):K(a,r.length)},R:function(t,r){const n=m1(t);return K(n,r.length)},u:function(t,r){const n=t.getFullYear();return K(n,r.length)},Q:function(t,r,n){const e=Math.ceil((t.getMonth()+1)/3);switch(r){case"Q":return String(e);case"QQ":return K(e,2);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})}},q:function(t,r,n){const e=Math.ceil((t.getMonth()+1)/3);switch(r){case"q":return String(e);case"qq":return K(e,2);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})}},M:function(t,r,n){const e=t.getMonth();switch(r){case"M":case"MM":return Ge.M(t,r);case"Mo":return n.ordinalNumber(e+1,{unit:"month"});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})}},L:function(t,r,n){const e=t.getMonth();switch(r){case"L":return String(e+1);case"LL":return K(e+1,2);case"Lo":return n.ordinalNumber(e+1,{unit:"month"});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})}},w:function(t,r,n,e){const o=g1(t,e);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):K(o,r.length)},I:function(t,r,n){const e=Mr(t);return r==="Io"?n.ordinalNumber(e,{unit:"week"}):K(e,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Ge.d(t,r)},D:function(t,r,n){const e=Qc(t);return r==="Do"?n.ordinalNumber(e,{unit:"dayOfYear"}):K(e,r.length)},E:function(t,r,n){const e=t.getDay();switch(r){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})}},e:function(t,r,n,e){const o=t.getDay(),a=(o-e.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return K(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,e){const o=t.getDay(),a=(o-e.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return K(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){const e=t.getDay(),o=e===0?7:e;switch(r){case"i":return String(o);case"ii":return K(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(e,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(e,{width:"short",context:"formatting"});case"iiii":default:return n.day(e,{width:"wide",context:"formatting"})}},a:function(t,r,n){const e=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})}},b:function(t,r,n){const e=t.getHours();let o;switch(e===12?o=yt.noon:e===0?o=yt.midnight:o=e/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){const e=t.getHours();let o;switch(e>=17?o=yt.evening:e>=12?o=yt.afternoon:e>=4?o=yt.morning:o=yt.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){let e=t.getHours()%12;return e===0&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return Ge.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Ge.H(t,r)},K:function(t,r,n){const e=t.getHours()%12;return r==="Ko"?n.ordinalNumber(e,{unit:"hour"}):K(e,r.length)},k:function(t,r,n){let e=t.getHours();return e===0&&(e=24),r==="ko"?n.ordinalNumber(e,{unit:"hour"}):K(e,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ge.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Ge.s(t,r)},S:function(t,r){return Ge.S(t,r)},X:function(t,r,n){const e=t.getTimezoneOffset();if(e===0)return"Z";switch(r){case"X":return _1(e);case"XXXX":case"XX":return dt(e);case"XXXXX":case"XXX":default:return dt(e,":")}},x:function(t,r,n){const e=t.getTimezoneOffset();switch(r){case"x":return _1(e);case"xxxx":case"xx":return dt(e);case"xxxxx":case"xxx":default:return dt(e,":")}},O:function(t,r,n){const e=t.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+v1(e,":");case"OOOO":default:return"GMT"+dt(e,":")}},z:function(t,r,n){const e=t.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+v1(e,":");case"zzzz":default:return"GMT"+dt(e,":")}},t:function(t,r,n){const e=Math.trunc(t.getTime()/1e3);return K(e,r.length)},T:function(t,r,n){const e=t.getTime();return K(e,r.length)}};function v1(t,r=""){const n=t>0?"-":"+",e=Math.abs(t),o=Math.trunc(e/60),a=e%60;return a===0?n+String(o):n+String(o)+r+K(a,2)}function _1(t,r){return t%60===0?(t>0?"-":"+")+K(Math.abs(t)/60,2):dt(t,r)}function dt(t,r=""){const n=t>0?"-":"+",e=Math.abs(t),o=K(Math.trunc(e/60),2),a=K(e%60,2);return n+o+r+a}const y1=(t,r)=>{switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},b1=(t,r)=>{switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Gc=(t,r)=>{const n=t.match(/(P+)(p+)?/)||[],e=n[1],o=n[2];if(!o)return y1(t,r);let a;switch(e){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",y1(e,r)).replace("{{time}}",b1(o,r))},kn={p:b1,P:Gc},Jc=/^D+$/,el=/^Y+$/,tl=["D","DD","YY","YYYY"];function w1(t){return Jc.test(t)}function k1(t){return el.test(t)}function xr(t,r,n){const e=nl(t,r,n);if(console.warn(e),tl.includes(t))throw new RangeError(e)}function nl(t,r,n){const e=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${r}\`) for formatting ${e} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function qe(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Dn(t){if(!qe(t)&&typeof t!="number")return!1;const r=L(t);return!isNaN(Number(r))}const rl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ol=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,al=/^'([^]*?)'?$/,il=/''/g,sl=/[a-zA-Z]/;function D1(t,r,n){var e,o,a,i,s,c,l,u;const d=ut(),p=(n==null?void 0:n.locale)??d.locale??h1,f=(n==null?void 0:n.firstWeekContainsDate)??((o=(e=n==null?void 0:n.locale)==null?void 0:e.options)==null?void 0:o.firstWeekContainsDate)??d.firstWeekContainsDate??((i=(a=d.locale)==null?void 0:a.options)==null?void 0:i.firstWeekContainsDate)??1,h=(n==null?void 0:n.weekStartsOn)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??d.weekStartsOn??((u=(l=d.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??0,m=L(t);if(!Dn(m))throw new RangeError("Invalid time value");let C=r.match(ol).map(b=>{const y=b[0];if(y==="p"||y==="P"){const D=kn[y];return D(b,p.formatLong)}return b}).join("").match(rl).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const y=b[0];if(y==="'")return{isToken:!1,value:cl(b)};if(C1[y])return{isToken:!0,value:b};if(y.match(sl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:b}});p.localize.preprocessor&&(C=p.localize.preprocessor(m,C));const v={firstWeekContainsDate:f,weekStartsOn:h,locale:p};return C.map(b=>{if(!b.isToken)return b.value;const y=b.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&k1(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&w1(y))&&xr(y,r,String(t));const D=C1[y[0]];return D(m,y,p.localize,v)}).join("")}function cl(t){const r=t.match(al);return r?r[1].replace(il,"'"):t}function S1(t){return L(t).getDate()}function ll(t){return L(t).getDay()}function Te(t){return L(t).getHours()}function Pe(t){return L(t).getMinutes()}function fe(t){return L(t).getMonth()}function Ue(t){return L(t).getSeconds()}function Lr(t){return L(t).getTime()}function F(t){return L(t).getFullYear()}function Je(t,r){const n=L(t),e=L(r);return n.getTime()>e.getTime()}function pt(t,r){const n=L(t),e=L(r);return+n<+e}function ul(t,r){const n=L(t),e=L(r);return+n==+e}function dl(t,r){const n=ct(t),e=ct(r);return+n==+e}function pl(t,r){const n=L(t),e=L(r);return n.getFullYear()===e.getFullYear()&&n.getMonth()===e.getMonth()}function Tr(t){const r=L(t),n=r.getMonth(),e=n-n%3;return r.setMonth(e,1),r.setHours(0,0,0,0),r}function fl(t,r){const n=Tr(t),e=Tr(r);return+n==+e}function hl(t,r){const n=L(t),e=L(r);return n.getFullYear()===e.getFullYear()}function jt(t,r){const n=+L(t),[e,o]=[+L(r.start),+L(r.end)].sort((a,i)=>a-i);return n>=e&&n<=o}function M1(t){let r;return t.forEach(function(n){const e=L(n);(r===void 0||r<e||isNaN(Number(e)))&&(r=e)}),r||new Date(NaN)}function E1(t){let r;return t.forEach(n=>{const e=L(n);(!r||r>e||isNaN(+e))&&(r=e)}),r||new Date(NaN)}function ml(){return Object.assign({},ut())}function gl(t,r){const n=r instanceof Date?Q(r,0):new r(0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}const Cl=10;class x1{constructor(){x(this,"subPriority",0)}validate(r,n){return!0}}class vl extends x1{constructor(r,n,e,o,a){super(),this.value=r,this.validateValue=n,this.setValue=e,this.priority=o,a&&(this.subPriority=a)}validate(r,n){return this.validateValue(r,this.value,n)}set(r,n,e){return this.setValue(r,n,this.value,e)}}class _l extends x1{constructor(){super(...arguments),x(this,"priority",Cl),x(this,"subPriority",-1)}set(r,n){return n.timestampIsSet?r:Q(r,gl(r,Date))}}class j{run(r,n,e,o){const a=this.parse(r,n,e,o);return a?{setter:new vl(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(r,n,e){return!0}}class yl extends j{constructor(){super(...arguments),x(this,"priority",140),x(this,"incompatibleTokens",["R","u","t","T"])}parse(r,n,e){switch(n){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"})||e.era(r,{width:"narrow"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})||e.era(r,{width:"abbreviated"})||e.era(r,{width:"narrow"})}}set(r,n,e){return n.era=e,r.setFullYear(e,0,1),r.setHours(0,0,0,0),r}}const re={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}/},Oe={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 oe(t,r){return t&&{value:r(t.value),rest:t.rest}}function te(t,r){const n=r.match(t);return n?{value:parseInt(n[0],10),rest:r.slice(n[0].length)}:null}function Ne(t,r){const n=r.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:r.slice(1)};const e=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:e*(o*gn+a*mn+i*dc),rest:r.slice(n[0].length)}}function L1(t){return te(re.anyDigitsSigned,t)}function ne(t,r){switch(t){case 1:return te(re.singleDigit,r);case 2:return te(re.twoDigits,r);case 3:return te(re.threeDigits,r);case 4:return te(re.fourDigits,r);default:return te(new RegExp("^\\d{1,"+t+"}"),r)}}function T1(t,r){switch(t){case 1:return te(re.singleDigitSigned,r);case 2:return te(re.twoDigitsSigned,r);case 3:return te(re.threeDigitsSigned,r);case 4:return te(re.fourDigitsSigned,r);default:return te(new RegExp("^-?\\d{1,"+t+"}"),r)}}function Pr(t){switch(t){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 P1(t,r){const n=r>0,e=n?r:1-r;let o;if(e<=50)o=t||100;else{const a=e+50,i=Math.trunc(a/100)*100,s=t>=a%100;o=t+i-(s?100:0)}return n?o:1-o}function O1(t){return t%400===0||t%4===0&&t%100!==0}class bl extends j{constructor(){super(...arguments),x(this,"priority",130),x(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(r,n,e){const o=a=>({year:a,isTwoDigitYear:n==="yy"});switch(n){case"y":return oe(ne(4,r),o);case"yo":return oe(e.ordinalNumber(r,{unit:"year"}),o);default:return oe(ne(n.length,r),o)}}validate(r,n){return n.isTwoDigitYear||n.year>0}set(r,n,e){const o=r.getFullYear();if(e.isTwoDigitYear){const i=P1(e.year,o);return r.setFullYear(i,0,1),r.setHours(0,0,0,0),r}const a=!("era"in n)||n.era===1?e.year:1-e.year;return r.setFullYear(a,0,1),r.setHours(0,0,0,0),r}}class wl extends j{constructor(){super(...arguments),x(this,"priority",130),x(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(r,n,e){const o=a=>({year:a,isTwoDigitYear:n==="YY"});switch(n){case"Y":return oe(ne(4,r),o);case"Yo":return oe(e.ordinalNumber(r,{unit:"year"}),o);default:return oe(ne(n.length,r),o)}}validate(r,n){return n.isTwoDigitYear||n.year>0}set(r,n,e,o){const a=Er(r,o);if(e.isTwoDigitYear){const s=P1(e.year,a);return r.setFullYear(s,0,o.firstWeekContainsDate),r.setHours(0,0,0,0),We(r,o)}const i=!("era"in n)||n.era===1?e.year:1-e.year;return r.setFullYear(i,0,o.firstWeekContainsDate),r.setHours(0,0,0,0),We(r,o)}}class kl extends j{constructor(){super(...arguments),x(this,"priority",130),x(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(r,n){return T1(n==="R"?4:n.length,r)}set(r,n,e){const o=Q(r,0);return o.setFullYear(e,0,4),o.setHours(0,0,0,0),_t(o)}}class Dl extends j{constructor(){super(...arguments),x(this,"priority",130),x(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(r,n){return T1(n==="u"?4:n.length,r)}set(r,n,e){return r.setFullYear(e,0,1),r.setHours(0,0,0,0),r}}class Sl extends j{constructor(){super(...arguments),x(this,"priority",120),x(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(r,n,e){switch(n){case"Q":case"QQ":return ne(n.length,r);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"})||e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})||e.quarter(r,{width:"abbreviated",context:"formatting"})||e.quarter(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=1&&n<=4}set(r,n,e){return r.setMonth((e-1)*3,1),r.setHours(0,0,0,0),r}}class Ml extends j{constructor(){super(...arguments),x(this,"priority",120),x(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(r,n,e){switch(n){case"q":case"qq":return ne(n.length,r);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"})||e.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})||e.quarter(r,{width:"abbreviated",context:"standalone"})||e.quarter(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=1&&n<=4}set(r,n,e){return r.setMonth((e-1)*3,1),r.setHours(0,0,0,0),r}}class El extends j{constructor(){super(...arguments),x(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),x(this,"priority",110)}parse(r,n,e){const o=a=>a-1;switch(n){case"M":return oe(te(re.month,r),o);case"MM":return oe(ne(2,r),o);case"Mo":return oe(e.ordinalNumber(r,{unit:"month"}),o);case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"})||e.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})||e.month(r,{width:"abbreviated",context:"formatting"})||e.month(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=11}set(r,n,e){return r.setMonth(e,1),r.setHours(0,0,0,0),r}}class xl extends j{constructor(){super(...arguments),x(this,"priority",110),x(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(r,n,e){const o=a=>a-1;switch(n){case"L":return oe(te(re.month,r),o);case"LL":return oe(ne(2,r),o);case"Lo":return oe(e.ordinalNumber(r,{unit:"month"}),o);case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"})||e.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})||e.month(r,{width:"abbreviated",context:"standalone"})||e.month(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=0&&n<=11}set(r,n,e){return r.setMonth(e,1),r.setHours(0,0,0,0),r}}function Ll(t,r,n){const e=L(t),o=g1(e,n)-r;return e.setDate(e.getDate()-o*7),e}class Tl extends j{constructor(){super(...arguments),x(this,"priority",100),x(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(r,n,e){switch(n){case"w":return te(re.week,r);case"wo":return e.ordinalNumber(r,{unit:"week"});default:return ne(n.length,r)}}validate(r,n){return n>=1&&n<=53}set(r,n,e,o){return We(Ll(r,e,o),o)}}function Pl(t,r){const n=L(t),e=Mr(n)-r;return n.setDate(n.getDate()-e*7),n}class Ol extends j{constructor(){super(...arguments),x(this,"priority",100),x(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(r,n,e){switch(n){case"I":return te(re.week,r);case"Io":return e.ordinalNumber(r,{unit:"week"});default:return ne(n.length,r)}}validate(r,n){return n>=1&&n<=53}set(r,n,e){return _t(Pl(r,e))}}const Nl=[31,28,31,30,31,30,31,31,30,31,30,31],Rl=[31,29,31,30,31,30,31,31,30,31,30,31];class Hl extends j{constructor(){super(...arguments),x(this,"priority",90),x(this,"subPriority",1),x(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(r,n,e){switch(n){case"d":return te(re.date,r);case"do":return e.ordinalNumber(r,{unit:"date"});default:return ne(n.length,r)}}validate(r,n){const e=r.getFullYear(),o=O1(e),a=r.getMonth();return o?n>=1&&n<=Rl[a]:n>=1&&n<=Nl[a]}set(r,n,e){return r.setDate(e),r.setHours(0,0,0,0),r}}class Al extends j{constructor(){super(...arguments),x(this,"priority",90),x(this,"subpriority",1),x(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(r,n,e){switch(n){case"D":case"DD":return te(re.dayOfYear,r);case"Do":return e.ordinalNumber(r,{unit:"date"});default:return ne(n.length,r)}}validate(r,n){const e=r.getFullYear();return O1(e)?n>=1&&n<=366:n>=1&&n<=365}set(r,n,e){return r.setMonth(0,e),r.setHours(0,0,0,0),r}}function Or(t,r,n){var e,o,a,i;const s=ut(),c=(n==null?void 0:n.weekStartsOn)??((o=(e=n==null?void 0:n.locale)==null?void 0:e.options)==null?void 0:o.weekStartsOn)??s.weekStartsOn??((i=(a=s.locale)==null?void 0:a.options)==null?void 0:i.weekStartsOn)??0,l=L(t),u=l.getDay(),d=(r%7+7)%7,p=7-c,f=r<0||r>6?r-(u+p)%7:(d+p)%7-(u+p)%7;return Xe(l,f)}class Il extends j{constructor(){super(...arguments),x(this,"priority",90),x(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(r,n,e){switch(n){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})||e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=6}set(r,n,e,o){return r=Or(r,e,o),r.setHours(0,0,0,0),r}}class Vl extends j{constructor(){super(...arguments),x(this,"priority",90),x(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(r,n,e,o){const a=i=>{const s=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+s};switch(n){case"e":case"ee":return oe(ne(n.length,r),a);case"eo":return oe(e.ordinalNumber(r,{unit:"day"}),a);case"eee":return e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})||e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"})}}validate(r,n){return n>=0&&n<=6}set(r,n,e,o){return r=Or(r,e,o),r.setHours(0,0,0,0),r}}class Fl extends j{constructor(){super(...arguments),x(this,"priority",90),x(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(r,n,e,o){const a=i=>{const s=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+s};switch(n){case"c":case"cc":return oe(ne(n.length,r),a);case"co":return oe(e.ordinalNumber(r,{unit:"day"}),a);case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"})||e.day(r,{width:"short",context:"standalone"})||e.day(r,{width:"narrow",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"})||e.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})||e.day(r,{width:"abbreviated",context:"standalone"})||e.day(r,{width:"short",context:"standalone"})||e.day(r,{width:"narrow",context:"standalone"})}}validate(r,n){return n>=0&&n<=6}set(r,n,e,o){return r=Or(r,e,o),r.setHours(0,0,0,0),r}}function Bl(t){let r=L(t).getDay();return r===0&&(r=7),r}function Yl(t,r){const n=L(t),e=Bl(n),o=r-e;return Xe(n,o)}class Zl extends j{constructor(){super(...arguments),x(this,"priority",90),x(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(r,n,e){const o=a=>a===0?7:a;switch(n){case"i":case"ii":return ne(n.length,r);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return oe(e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"}),o);case"iiiii":return oe(e.day(r,{width:"narrow",context:"formatting"}),o);case"iiiiii":return oe(e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"}),o);case"iiii":default:return oe(e.day(r,{width:"wide",context:"formatting"})||e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"}),o)}}validate(r,n){return n>=1&&n<=7}set(r,n,e){return r=Yl(r,e),r.setHours(0,0,0,0),r}}class jl extends j{constructor(){super(...arguments),x(this,"priority",80),x(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(r,n,e){switch(n){case"a":case"aa":case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,e){return r.setHours(Pr(e),0,0,0),r}}class Wl extends j{constructor(){super(...arguments),x(this,"priority",80),x(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(r,n,e){switch(n){case"b":case"bb":case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,e){return r.setHours(Pr(e),0,0,0),r}}class ql extends j{constructor(){super(...arguments),x(this,"priority",80),x(this,"incompatibleTokens",["a","b","t","T"])}parse(r,n,e){switch(n){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,n,e){return r.setHours(Pr(e),0,0,0),r}}class Ul extends j{constructor(){super(...arguments),x(this,"priority",70),x(this,"incompatibleTokens",["H","K","k","t","T"])}parse(r,n,e){switch(n){case"h":return te(re.hour12h,r);case"ho":return e.ordinalNumber(r,{unit:"hour"});default:return ne(n.length,r)}}validate(r,n){return n>=1&&n<=12}set(r,n,e){const o=r.getHours()>=12;return o&&e<12?r.setHours(e+12,0,0,0):!o&&e===12?r.setHours(0,0,0,0):r.setHours(e,0,0,0),r}}class zl extends j{constructor(){super(...arguments),x(this,"priority",70),x(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(r,n,e){switch(n){case"H":return te(re.hour23h,r);case"Ho":return e.ordinalNumber(r,{unit:"hour"});default:return ne(n.length,r)}}validate(r,n){return n>=0&&n<=23}set(r,n,e){return r.setHours(e,0,0,0),r}}class $l extends j{constructor(){super(...arguments),x(this,"priority",70),x(this,"incompatibleTokens",["h","H","k","t","T"])}parse(r,n,e){switch(n){case"K":return te(re.hour11h,r);case"Ko":return e.ordinalNumber(r,{unit:"hour"});default:return ne(n.length,r)}}validate(r,n){return n>=0&&n<=11}set(r,n,e){return r.getHours()>=12&&e<12?r.setHours(e+12,0,0,0):r.setHours(e,0,0,0),r}}class Ql extends j{constructor(){super(...arguments),x(this,"priority",70),x(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(r,n,e){switch(n){case"k":return te(re.hour24h,r);case"ko":return e.ordinalNumber(r,{unit:"hour"});default:return ne(n.length,r)}}validate(r,n){return n>=1&&n<=24}set(r,n,e){const o=e<=24?e%24:e;return r.setHours(o,0,0,0),r}}class Kl extends j{constructor(){super(...arguments),x(this,"priority",60),x(this,"incompatibleTokens",["t","T"])}parse(r,n,e){switch(n){case"m":return te(re.minute,r);case"mo":return e.ordinalNumber(r,{unit:"minute"});default:return ne(n.length,r)}}validate(r,n){return n>=0&&n<=59}set(r,n,e){return r.setMinutes(e,0,0),r}}class Xl extends j{constructor(){super(...arguments),x(this,"priority",50),x(this,"incompatibleTokens",["t","T"])}parse(r,n,e){switch(n){case"s":return te(re.second,r);case"so":return e.ordinalNumber(r,{unit:"second"});default:return ne(n.length,r)}}validate(r,n){return n>=0&&n<=59}set(r,n,e){return r.setSeconds(e,0),r}}class Gl extends j{constructor(){super(...arguments),x(this,"priority",30),x(this,"incompatibleTokens",["t","T"])}parse(r,n){const e=o=>Math.trunc(o*Math.pow(10,-n.length+3));return oe(ne(n.length,r),e)}set(r,n,e){return r.setMilliseconds(e),r}}class Jl extends j{constructor(){super(...arguments),x(this,"priority",10),x(this,"incompatibleTokens",["t","T","x"])}parse(r,n){switch(n){case"X":return Ne(Oe.basicOptionalMinutes,r);case"XX":return Ne(Oe.basic,r);case"XXXX":return Ne(Oe.basicOptionalSeconds,r);case"XXXXX":return Ne(Oe.extendedOptionalSeconds,r);case"XXX":default:return Ne(Oe.extended,r)}}set(r,n,e){return n.timestampIsSet?r:Q(r,r.getTime()-vn(r)-e)}}class e0 extends j{constructor(){super(...arguments),x(this,"priority",10),x(this,"incompatibleTokens",["t","T","X"])}parse(r,n){switch(n){case"x":return Ne(Oe.basicOptionalMinutes,r);case"xx":return Ne(Oe.basic,r);case"xxxx":return Ne(Oe.basicOptionalSeconds,r);case"xxxxx":return Ne(Oe.extendedOptionalSeconds,r);case"xxx":default:return Ne(Oe.extended,r)}}set(r,n,e){return n.timestampIsSet?r:Q(r,r.getTime()-vn(r)-e)}}class t0 extends j{constructor(){super(...arguments),x(this,"priority",40),x(this,"incompatibleTokens","*")}parse(r){return L1(r)}set(r,n,e){return[Q(r,e*1e3),{timestampIsSet:!0}]}}class n0 extends j{constructor(){super(...arguments),x(this,"priority",20),x(this,"incompatibleTokens","*")}parse(r){return L1(r)}set(r,n,e){return[Q(r,e),{timestampIsSet:!0}]}}const r0={G:new yl,y:new bl,Y:new wl,R:new kl,u:new Dl,Q:new Sl,q:new Ml,M:new El,L:new xl,w:new Tl,I:new Ol,d:new Hl,D:new Al,E:new Il,e:new Vl,c:new Fl,i:new Zl,a:new jl,b:new Wl,B:new ql,h:new Ul,H:new zl,K:new $l,k:new Ql,m:new Kl,s:new Xl,S:new Gl,X:new Jl,x:new e0,t:new t0,T:new n0},o0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,a0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,i0=/^'([^]*?)'?$/,s0=/''/g,c0=/\S/,l0=/[a-zA-Z]/;function Nr(t,r,n,e){var o,a,i,s,c,l,u,d;const p=ml(),f=(e==null?void 0:e.locale)??p.locale??h1,h=(e==null?void 0:e.firstWeekContainsDate)??((a=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:a.firstWeekContainsDate)??p.firstWeekContainsDate??((s=(i=p.locale)==null?void 0:i.options)==null?void 0:s.firstWeekContainsDate)??1,m=(e==null?void 0:e.weekStartsOn)??((l=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:l.weekStartsOn)??p.weekStartsOn??((d=(u=p.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0;if(r==="")return t===""?L(n):Q(n,NaN);const C={firstWeekContainsDate:h,weekStartsOn:m,locale:f},v=[new _l],b=r.match(a0).map(k=>{const M=k[0];if(M in kn){const P=kn[M];return P(k,f.formatLong)}return k}).join("").match(o0),y=[];for(let k of b){!(e!=null&&e.useAdditionalWeekYearTokens)&&k1(k)&&xr(k,r,t),!(e!=null&&e.useAdditionalDayOfYearTokens)&&w1(k)&&xr(k,r,t);const M=k[0],P=r0[M];if(P){const{incompatibleTokens:$}=P;if(Array.isArray($)){const I=y.find(V=>$.includes(V.token)||V.token===M);if(I)throw new RangeError(`The format string mustn't contain \`${I.fullToken}\` and \`${k}\` at the same time`)}else if(P.incompatibleTokens==="*"&&y.length>0)throw new RangeError(`The format string mustn't contain \`${k}\` and any other token at the same time`);y.push({token:M,fullToken:k});const A=P.run(t,k,f.match,C);if(!A)return Q(n,NaN);v.push(A.setter),t=A.rest}else{if(M.match(l0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");if(k==="''"?k="'":M==="'"&&(k=u0(k)),t.indexOf(k)===0)t=t.slice(k.length);else return Q(n,NaN)}}if(t.length>0&&c0.test(t))return Q(n,NaN);const D=v.map(k=>k.priority).sort((k,M)=>M-k).filter((k,M,P)=>P.indexOf(k)===M).map(k=>v.filter(M=>M.priority===k).sort((M,P)=>P.subPriority-M.subPriority)).map(k=>k[0]);let _=L(n);if(isNaN(_.getTime()))return Q(n,NaN);const S={};for(const k of D){if(!k.validate(_,C))return Q(n,NaN);const M=k.set(_,S,C);Array.isArray(M)?(_=M[0],Object.assign(S,M[1])):_=M}return Q(n,_)}function u0(t){return t.match(i0)[1].replace(s0,"'")}function d0(t,r){const n=m0(t);let e;if(n.date){const s=g0(n.date,2);e=C0(s.restDateString,s.year)}if(!e||isNaN(e.getTime()))return new Date(NaN);const o=e.getTime();let a=0,i;if(n.time&&(a=v0(n.time),isNaN(a)))return new Date(NaN);if(n.timezone){if(i=_0(n.timezone),isNaN(i))return new Date(NaN)}else{const s=new Date(o+a),c=new Date(0);return c.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),c.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),c}return new Date(o+a+i)}const Sn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},p0=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,f0=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h0=/^([+-])(\d{2})(?::?(\d{2}))?$/;function m0(t){const r={},n=t.split(Sn.dateTimeDelimiter);let e;if(n.length>2)return r;if(/:/.test(n[0])?e=n[0]:(r.date=n[0],e=n[1],Sn.timeZoneDelimiter.test(r.date)&&(r.date=t.split(Sn.timeZoneDelimiter)[0],e=t.substr(r.date.length,t.length))),e){const o=Sn.timezone.exec(e);o?(r.time=e.replace(o[1],""),r.timezone=o[1]):r.time=e}return r}function g0(t,r){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),e=t.match(n);if(!e)return{year:NaN,restDateString:""};const o=e[1]?parseInt(e[1]):null,a=e[2]?parseInt(e[2]):null;return{year:a===null?o:a*100,restDateString:t.slice((e[1]||e[2]).length)}}function C0(t,r){if(r===null)return new Date(NaN);const n=t.match(p0);if(!n)return new Date(NaN);const e=!!n[4],o=Wt(n[1]),a=Wt(n[2])-1,i=Wt(n[3]),s=Wt(n[4]),c=Wt(n[5])-1;if(e)return D0(r,s,c)?y0(r,s,c):new Date(NaN);{const l=new Date(0);return!w0(r,a,i)||!k0(r,o)?new Date(NaN):(l.setUTCFullYear(r,a,Math.max(o,i)),l)}}function Wt(t){return t?parseInt(t):1}function v0(t){const r=t.match(f0);if(!r)return NaN;const n=Rr(r[1]),e=Rr(r[2]),o=Rr(r[3]);return S0(n,e,o)?n*gn+e*mn+o*1e3:NaN}function Rr(t){return t&&parseFloat(t.replace(",","."))||0}function _0(t){if(t==="Z")return 0;const r=t.match(h0);if(!r)return 0;const n=r[1]==="+"?-1:1,e=parseInt(r[2]),o=r[3]&&parseInt(r[3])||0;return M0(e,o)?n*(e*gn+o*mn):NaN}function y0(t,r,n){const e=new Date(0);e.setUTCFullYear(t,0,4);const o=e.getUTCDay()||7,a=(r-1)*7+n+1-o;return e.setUTCDate(e.getUTCDate()+a),e}const b0=[31,null,31,30,31,30,31,31,30,31,30,31];function N1(t){return t%400===0||t%4===0&&t%100!==0}function w0(t,r,n){return r>=0&&r<=11&&n>=1&&n<=(b0[r]||(N1(t)?29:28))}function k0(t,r){return r>=1&&r<=(N1(t)?366:365)}function D0(t,r,n){return r>=1&&r<=53&&n>=0&&n<=6}function S0(t,r,n){return t===24?r===0&&n===0:n>=0&&n<60&&r>=0&&r<60&&t>=0&&t<25}function M0(t,r){return r>=0&&r<=59}function E0(t){const r=L(t),n=r.getFullYear(),e=r.getMonth(),o=Q(t,0);return o.setFullYear(n,e+1,0),o.setHours(0,0,0,0),o.getDate()}function ve(t,r){const n=L(t),e=n.getFullYear(),o=n.getDate(),a=Q(t,0);a.setFullYear(e,r,15),a.setHours(0,0,0,0);const i=E0(a);return n.setMonth(r,Math.min(o,i)),n}function x0(t,r){let n=L(t);return isNaN(+n)?Q(t,NaN):(r.year!=null&&n.setFullYear(r.year),r.month!=null&&(n=ve(n,r.month)),r.date!=null&&n.setDate(r.date),r.hours!=null&&n.setHours(r.hours),r.minutes!=null&&n.setMinutes(r.minutes),r.seconds!=null&&n.setSeconds(r.seconds),r.milliseconds!=null&&n.setMilliseconds(r.milliseconds),n)}function Mn(t,r){const n=L(t);return n.setHours(r),n}function En(t,r){const n=L(t);return n.setMinutes(r),n}function bt(t,r){const n=L(t),e=Math.trunc(n.getMonth()/3)+1,o=r-e;return ve(n,n.getMonth()+o*3)}function xn(t,r){const n=L(t);return n.setSeconds(r),n}function Re(t,r){const n=L(t);return isNaN(+n)?Q(t,NaN):(n.setFullYear(r),n)}function R1(t){const r=L(t);return r.setDate(1),r.setHours(0,0,0,0),r}function L0(t,r){return Xe(t,-r)}function wt(t,r){return Ee(t,-r)}function H1(t,r){return Dr(t,-r)}function A1(t,r){return Cn(t,-r)}function kt(t,r){return je(t,-r)}function Ln(){return typeof window<"u"}function et(t){return I1(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var r;return(t==null||(r=t.ownerDocument)==null?void 0:r.defaultView)||window}function ze(t){var r;return(r=(I1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:r.documentElement}function I1(t){return Ln()?t instanceof Node||t instanceof _e(t).Node:!1}function me(t){return Ln()?t instanceof Element||t instanceof _e(t).Element:!1}function He(t){return Ln()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function V1(t){return!Ln()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function qt(t){const{overflow:r,overflowX:n,overflowY:e,display:o}=ye(t);return/auto|scroll|overlay|hidden|clip/.test(r+e+n)&&!["inline","contents"].includes(o)}function T0(t){return["table","td","th"].includes(et(t))}function P0(t){return[":popover-open",":modal"].some(r=>{try{return t.matches(r)}catch{return!1}})}function Hr(t){const r=Ar(),n=me(t)?ye(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function F1(t){let r=Dt(t);for(;He(r)&&!Tn(r);){if(Hr(r))return r;if(P0(r))return null;r=Dt(r)}return null}function Ar(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Tn(t){return["html","body","#document"].includes(et(t))}function ye(t){return _e(t).getComputedStyle(t)}function Pn(t){return me(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Dt(t){if(et(t)==="html")return t;const r=t.assignedSlot||t.parentNode||V1(t)&&t.host||ze(t);return V1(r)?r.host:r}function B1(t){const r=Dt(t);return Tn(r)?t.ownerDocument?t.ownerDocument.body:t.body:He(r)&&qt(r)?r:B1(r)}function Ut(t,r,n){var e;r===void 0&&(r=[]),n===void 0&&(n=!0);const o=B1(t),a=o===((e=t.ownerDocument)==null?void 0:e.body),i=_e(o);if(a){const s=O0(i);return r.concat(i,i.visualViewport||[],qt(o)?o:[],s&&n?Ut(s):[])}return r.concat(o,Ut(o,[],n))}function O0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}const Ir=Math.min,St=Math.max,On=Math.round,Nn=Math.floor,tt=t=>({x:t,y:t}),Vr=Math.min,N0=Math.max,R0={left:"right",right:"left",bottom:"top",top:"bottom"},H0={start:"end",end:"start"};function A0(t,r,n){return N0(t,Vr(r,n))}function Rn(t,r){return typeof t=="function"?t(r):t}function Mt(t){return t.split("-")[0]}function zt(t){return t.split("-")[1]}function I0(t){return t==="x"?"y":"x"}function Fr(t){return t==="y"?"height":"width"}function Br(t){return["top","bottom"].includes(Mt(t))?"y":"x"}function Yr(t){return I0(Br(t))}function V0(t,r,n){n===void 0&&(n=!1);const e=zt(t),o=Yr(t),a=Fr(o);let i=o==="x"?e===(n?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(i=Hn(i)),[i,Hn(i)]}function F0(t){const r=Hn(t);return[Zr(t),r,Zr(r)]}function Zr(t){return t.replace(/start|end/g,r=>H0[r])}function B0(t,r,n){const e=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(t){case"top":case"bottom":return n?r?o:e:r?e:o;case"left":case"right":return r?a:i;default:return[]}}function Y0(t,r,n,e){const o=zt(t);let a=B0(Mt(t),n==="start",e);return o&&(a=a.map(i=>i+"-"+o),r&&(a=a.concat(a.map(Zr)))),a}function Hn(t){return t.replace(/left|right|bottom|top/g,r=>R0[r])}function Z0(t){return{top:0,right:0,bottom:0,left:0,...t}}function Y1(t){return typeof t!="number"?Z0(t):{top:t,right:t,bottom:t,left:t}}function An(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Z1(t,r,n){let{reference:e,floating:o}=t;const a=Br(r),i=Yr(r),s=Fr(i),c=Mt(r),l=a==="y",u=e.x+e.width/2-o.width/2,d=e.y+e.height/2-o.height/2,p=e[s]/2-o[s]/2;let f;switch(c){case"top":f={x:u,y:e.y-o.height};break;case"bottom":f={x:u,y:e.y+e.height};break;case"right":f={x:e.x+e.width,y:d};break;case"left":f={x:e.x-o.width,y:d};break;default:f={x:e.x,y:e.y}}switch(zt(r)){case"start":f[i]-=p*(n&&l?-1:1);break;case"end":f[i]+=p*(n&&l?-1:1);break}return f}const j0=async(t,r,n)=>{const{placement:e="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(r));let l=await i.getElementRects({reference:t,floating:r,strategy:o}),{x:u,y:d}=Z1(l,e,c),p=e,f={},h=0;for(let m=0;m<s.length;m++){const{name:C,fn:v}=s[m],{x:b,y,data:D,reset:_}=await v({x:u,y:d,initialPlacement:e,placement:p,strategy:o,middlewareData:f,rects:l,platform:i,elements:{reference:t,floating:r}});u=b??u,d=y??d,f={...f,[C]:{...f[C],...D}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(l=_.rects===!0?await i.getElementRects({reference:t,floating:r,strategy:o}):_.rects),{x:u,y:d}=Z1(l,p,c)),m=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}};async function W0(t,r){var n;r===void 0&&(r={});const{x:e,y:o,platform:a,rects:i,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Rn(r,t),h=Y1(f),m=s[p?d==="floating"?"reference":"floating":d],C=An(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(m)))==null||n?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),v=d==="floating"?{...i.floating,x:e,y:o}:i.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),y=await(a.isElement==null?void 0:a.isElement(b))?await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1}:{x:1,y:1},D=An(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:c}):v);return{top:(C.top-D.top+h.top)/y.y,bottom:(D.bottom-C.bottom+h.bottom)/y.y,left:(C.left-D.left+h.left)/y.x,right:(D.right-C.right+h.right)/y.x}}const q0=t=>({name:"arrow",options:t,async fn(r){const{x:n,y:e,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=r,{element:l,padding:u=0}=Rn(t,r)||{};if(l==null)return{};const d=Y1(u),p={x:n,y:e},f=Yr(o),h=Fr(f),m=await i.getDimensions(l),C=f==="y",v=C?"top":"left",b=C?"bottom":"right",y=C?"clientHeight":"clientWidth",D=a.reference[h]+a.reference[f]-p[f]-a.floating[h],_=p[f]-a.reference[f],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let k=S?S[y]:0;(!k||!await(i.isElement==null?void 0:i.isElement(S)))&&(k=s.floating[y]||a.floating[h]);const M=D/2-_/2,P=k/2-m[h]/2-1,$=Vr(d[v],P),A=Vr(d[b],P),I=$,V=k-m[h]-A,O=k/2-m[h]/2+M,R=A0(I,O,V),T=!c.arrow&&zt(o)!=null&&O!==R&&a.reference[h]/2-(O<I?$:A)-m[h]/2<0,B=T?O<I?O-I:O-V:0;return{[f]:p[f]+B,data:{[f]:R,centerOffset:O-R-B,...T&&{alignmentOffset:B}},reset:T}}}),U0=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var n,e;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=r,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...C}=Rn(t,r);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Mt(o),b=Mt(s)===s,y=await(c.isRTL==null?void 0:c.isRTL(l.floating)),D=p||(b||!m?[Hn(s)]:F0(s));!p&&h!=="none"&&D.push(...Y0(s,m,h,y));const _=[s,...D],S=await W0(r,C),k=[];let M=((e=a.flip)==null?void 0:e.overflows)||[];if(u&&k.push(S[v]),d){const I=V0(o,i,y);k.push(S[I[0]],S[I[1]])}if(M=[...M,{placement:o,overflows:k}],!k.every(I=>I<=0)){var P,$;const I=(((P=a.flip)==null?void 0:P.index)||0)+1,V=_[I];if(V)return{data:{index:I,overflows:M},reset:{placement:V}};let O=($=M.filter(R=>R.overflows[0]<=0).sort((R,T)=>R.overflows[1]-T.overflows[1])[0])==null?void 0:$.placement;if(!O)switch(f){case"bestFit":{var A;const R=(A=M.map(T=>[T.placement,T.overflows.filter(B=>B>0).reduce((B,G)=>B+G,0)]).sort((T,B)=>T[1]-B[1])[0])==null?void 0:A[0];R&&(O=R);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};async function z0(t,r){const{placement:n,platform:e,elements:o}=t,a=await(e.isRTL==null?void 0:e.isRTL(o.floating)),i=Mt(n),s=zt(n),c=Br(n)==="y",l=["left","top"].includes(i)?-1:1,u=a&&c?-1:1,d=Rn(r,t);let{mainAxis:p,crossAxis:f,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof h=="number"&&(f=s==="end"?h*-1:h),c?{x:f*u,y:p*l}:{x:p*l,y:f*u}}const $0=function(t){return{name:"offset",options:t,async fn(r){var n,e;const{x:o,y:a,placement:i,middlewareData:s}=r,c=await z0(r,t);return i===((n=s.offset)==null?void 0:n.placement)&&(e=s.arrow)!=null&&e.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}};function j1(t){const r=ye(t);let n=parseFloat(r.width)||0,e=parseFloat(r.height)||0;const o=He(t),a=o?t.offsetWidth:n,i=o?t.offsetHeight:e,s=On(n)!==a||On(e)!==i;return s&&(n=a,e=i),{width:n,height:e,$:s}}function jr(t){return me(t)?t:t.contextElement}function Et(t){const r=jr(t);if(!He(r))return tt(1);const n=r.getBoundingClientRect(),{width:e,height:o,$:a}=j1(r);let i=(a?On(n.width):n.width)/e,s=(a?On(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Q0=tt(0);function W1(t){const r=_e(t);return!Ar()||!r.visualViewport?Q0:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function K0(t,r,n){return r===void 0&&(r=!1),!n||r&&n!==_e(t)?!1:r}function ft(t,r,n,e){r===void 0&&(r=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),a=jr(t);let i=tt(1);r&&(e?me(e)&&(i=Et(e)):i=Et(t));const s=K0(a,n,e)?W1(a):tt(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const p=_e(a),f=e&&me(e)?_e(e):e;let h=p.frameElement;for(;h&&e&&f!==p;){const m=Et(h),C=h.getBoundingClientRect(),v=ye(h),b=C.left+(h.clientLeft+parseFloat(v.paddingLeft))*m.x,y=C.top+(h.clientTop+parseFloat(v.paddingTop))*m.y;c*=m.x,l*=m.y,u*=m.x,d*=m.y,c+=b,l+=y,h=_e(h).frameElement}}return An({width:u,height:d,x:c,y:l})}const X0=[":popover-open",":modal"];function q1(t){let r=!1,n=0,e=0;function o(a){try{r=r||t.matches(a)}catch{}}if(X0.forEach(a=>{o(a)}),r){const a=F1(t);if(a){const i=a.getBoundingClientRect();n=i.x,e=i.y}}return[r,n,e]}function G0(t){let{elements:r,rect:n,offsetParent:e,strategy:o}=t;const a=ze(e),[i]=r?q1(r.floating):[!1];if(e===a||i)return n;let s={scrollLeft:0,scrollTop:0},c=tt(1);const l=tt(0),u=He(e);if((u||!u&&o!=="fixed")&&((et(e)!=="body"||qt(a))&&(s=Pn(e)),He(e))){const d=ft(e);c=Et(e),l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+l.x,y:n.y*c.y-s.scrollTop*c.y+l.y}}function J0(t){return Array.from(t.getClientRects())}function U1(t){return ft(ze(t)).left+Pn(t).scrollLeft}function eu(t){const r=ze(t),n=Pn(t),e=t.ownerDocument.body,o=St(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),a=St(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight);let i=-n.scrollLeft+U1(t);const s=-n.scrollTop;return ye(e).direction==="rtl"&&(i+=St(r.clientWidth,e.clientWidth)-o),{width:o,height:a,x:i,y:s}}function tu(t,r){const n=_e(t),e=ze(t),o=n.visualViewport;let a=e.clientWidth,i=e.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const l=Ar();(!l||l&&r==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function nu(t,r){const n=ft(t,!0,r==="fixed"),e=n.top+t.clientTop,o=n.left+t.clientLeft,a=He(t)?Et(t):tt(1),i=t.clientWidth*a.x,s=t.clientHeight*a.y,c=o*a.x,l=e*a.y;return{width:i,height:s,x:c,y:l}}function z1(t,r,n){let e;if(r==="viewport")e=tu(t,n);else if(r==="document")e=eu(ze(t));else if(me(r))e=nu(r,n);else{const o=W1(t);e={...r,x:r.x-o.x,y:r.y-o.y}}return An(e)}function $1(t,r){const n=Dt(t);return n===r||!me(n)||Tn(n)?!1:ye(n).position==="fixed"||$1(n,r)}function ru(t,r){const n=r.get(t);if(n)return n;let e=Ut(t,[],!1).filter(s=>me(s)&&et(s)!=="body"),o=null;const a=ye(t).position==="fixed";let i=a?Dt(t):t;for(;me(i)&&!Tn(i);){const s=ye(i),c=Hr(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&o&&["absolute","fixed"].includes(o.position)||qt(i)&&!c&&$1(t,i))?e=e.filter(l=>l!==i):o=s,i=Dt(i)}return r.set(t,e),e}function ou(t){let{element:r,boundary:n,rootBoundary:e,strategy:o}=t;const a=[...n==="clippingAncestors"?ru(r,this._c):[].concat(n),e],i=a[0],s=a.reduce((c,l)=>{const u=z1(r,l,o);return c.top=St(u.top,c.top),c.right=Ir(u.right,c.right),c.bottom=Ir(u.bottom,c.bottom),c.left=St(u.left,c.left),c},z1(r,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function au(t){const{width:r,height:n}=j1(t);return{width:r,height:n}}function iu(t,r,n,e){const o=He(r),a=ze(r),i=n==="fixed",s=ft(t,!0,i,r);let c={scrollLeft:0,scrollTop:0};const l=tt(0);if(o||!o&&!i)if((et(r)!=="body"||qt(a))&&(c=Pn(r)),o){const m=ft(r,!0,i,r);l.x=m.x+r.clientLeft,l.y=m.y+r.clientTop}else a&&(l.x=U1(a));let u=s.left+c.scrollLeft-l.x,d=s.top+c.scrollTop-l.y;const[p,f,h]=q1(e);return p&&(u+=f,d+=h,o&&(u+=r.clientLeft,d+=r.clientTop)),{x:u,y:d,width:s.width,height:s.height}}function Q1(t,r){return!He(t)||ye(t).position==="fixed"?null:r?r(t):t.offsetParent}function K1(t,r){const n=_e(t);if(!He(t))return n;let e=Q1(t,r);for(;e&&T0(e)&&ye(e).position==="static";)e=Q1(e,r);return e&&(et(e)==="html"||et(e)==="body"&&ye(e).position==="static"&&!Hr(e))?n:e||F1(t)||n}const su=async function(t){const r=this.getOffsetParent||K1,n=this.getDimensions;return{reference:iu(t.reference,await r(t.floating),t.strategy,t.floating),floating:{x:0,y:0,...await n(t.floating)}}};function cu(t){return ye(t).direction==="rtl"}const lu={convertOffsetParentRelativeRectToViewportRelativeRect:G0,getDocumentElement:ze,getClippingRect:ou,getOffsetParent:K1,getElementRects:su,getClientRects:J0,getDimensions:au,getScale:Et,isElement:me,isRTL:cu};function uu(t,r){let n=null,e;const o=ze(t);function a(){var s;clearTimeout(e),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const{left:l,top:u,width:d,height:p}=t.getBoundingClientRect();if(s||r(),!d||!p)return;const f=Nn(u),h=Nn(o.clientWidth-(l+d)),m=Nn(o.clientHeight-(u+p)),C=Nn(l),v={rootMargin:-f+"px "+-h+"px "+-m+"px "+-C+"px",threshold:St(0,Ir(1,c))||1};let b=!0;function y(D){const _=D[0].intersectionRatio;if(_!==c){if(!b)return i();_?i(!1,_):e=setTimeout(()=>{i(!1,1e-7)},100)}b=!1}try{n=new IntersectionObserver(y,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,v)}n.observe(t)}return i(!0),a}function du(t,r,n,e){e===void 0&&(e={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=e,l=jr(t),u=o||a?[...l?Ut(l):[],...Ut(r)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=l&&s?uu(l,n):null;let p=-1,f=null;i&&(f=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&f&&(f.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(r)})),n()}),l&&!c&&f.observe(l),f.observe(r));let h,m=c?ft(t):null;c&&C();function C(){const v=ft(t);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,h=requestAnimationFrame(C)}return n(),()=>{var v;u.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),d==null||d(),(v=f)==null||v.disconnect(),f=null,c&&cancelAnimationFrame(h)}}const pu=U0,X1=q0,fu=(t,r,n)=>{const e=new Map,o={platform:lu,...n},a={...o.platform,_c:e};return j0(t,r,{...o,platform:a})};var In=typeof document<"u"?g.useLayoutEffect:g.useEffect;function Vn(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(typeof t=="function"&&t.toString()===r.toString())return!0;let n,e,o;if(t&&r&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==r.length)return!1;for(e=n;e--!==0;)if(!Vn(t[e],r[e]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(e=n;e--!==0;)if(!{}.hasOwnProperty.call(r,o[e]))return!1;for(e=n;e--!==0;){const a=o[e];if(!(a==="_owner"&&t.$$typeof)&&!Vn(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}function G1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function J1(t,r){const n=G1(t);return Math.round(r*n)/n}function Wr(t){const r=N.useRef(t);return In(()=>{r.current=t}),r}function hu(t){t===void 0&&(t={});const{placement:r="bottom",strategy:n="absolute",middleware:e=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=t,[u,d]=N.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[p,f]=N.useState(e);Vn(p,e)||f(e);const[h,m]=N.useState(null),[C,v]=N.useState(null),b=N.useCallback(G=>{G!==S.current&&(S.current=G,m(G))},[]),y=N.useCallback(G=>{G!==k.current&&(k.current=G,v(G))},[]),D=a||h,_=i||C,S=N.useRef(null),k=N.useRef(null),M=N.useRef(u),P=c!=null,$=Wr(c),A=Wr(o),I=Wr(l),V=N.useCallback(()=>{if(!S.current||!k.current)return;const G={placement:r,strategy:n,middleware:p};A.current&&(G.platform=A.current),fu(S.current,k.current,G).then(le=>{const At={...le,isPositioned:I.current!==!1};O.current&&!Vn(M.current,At)&&(M.current=At,_s.flushSync(()=>{d(At)}))})},[p,r,n,A,I]);In(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,d(G=>({...G,isPositioned:!1})))},[l]);const O=N.useRef(!1);In(()=>(O.current=!0,()=>{O.current=!1}),[]),In(()=>{if(D&&(S.current=D),_&&(k.current=_),D&&_){if($.current)return $.current(D,_,V);V()}},[D,_,V,$,P]);const R=N.useMemo(()=>({reference:S,floating:k,setReference:b,setFloating:y}),[b,y]),T=N.useMemo(()=>({reference:D,floating:_}),[D,_]),B=N.useMemo(()=>{const G={position:n,left:0,top:0};if(!T.floating)return G;const le=J1(T.floating,u.x),At=J1(T.floating,u.y);return s?{...G,transform:"translate("+le+"px, "+At+"px)",...G1(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:le,top:At}},[n,s,T.floating,u.x,u.y]);return N.useMemo(()=>({...u,update:V,refs:R,elements:T,floatingStyles:B}),[u,V,R,T,B])}const mu=t=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:e,padding:o}=typeof t=="function"?t(n):t;return e&&r(e)?e.current!=null?X1({element:e.current,padding:o}).fn(n):{}:e?X1({element:e,padding:o}).fn(n):{}}}},gu=(t,r)=>({...$0(t),options:[t,r]}),Cu=(t,r)=>({...pu(t),options:[t,r]}),vu=(t,r)=>({...mu(t),options:[t,r]}),ea={...N},_u=ea.useInsertionEffect,yu=_u||(t=>t());function bu(t){const r=N.useRef(()=>{});return yu(()=>{r.current=t}),N.useCallback(function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];return r.current==null?void 0:r.current(...e)},[])}var Fn=typeof document<"u"?g.useLayoutEffect:g.useEffect;function qr(){return qr=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},qr.apply(this,arguments)}let ta=!1,wu=0;const na=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+wu++;function ku(){const[t,r]=N.useState(()=>ta?na():void 0);return Fn(()=>{t==null&&r(na())},[]),N.useEffect(()=>{ta=!0},[]),t}const Du=ea.useId,ra=Du||ku,Su=N.forwardRef(function(t,r){const{context:{placement:n,elements:{floating:e},middlewareData:{arrow:o,shift:a}},width:i=14,height:s=7,tipRadius:c=0,strokeWidth:l=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...h}={},...m}=t,C=ra(),[v,b]=N.useState(!1);if(Fn(()=>{e&&ye(e).direction==="rtl"&&b(!0)},[e]),!e)return null;const[y,D]=n.split("-"),_=y==="top"||y==="bottom";let S=u;(_&&a!=null&&a.x||!_&&a!=null&&a.y)&&(S=null);const k=l*2,M=k/2,P=i/2*(c/-8+1),$=s/2*c/4,A=!!p,I=S&&D==="end"?"bottom":"top";let V=S&&D==="end"?"right":"left";S&&v&&(V=D==="end"?"left":"right");const O=(o==null?void 0:o.x)!=null?S||o.x:"",R=(o==null?void 0:o.y)!=null?S||o.y:"",T=p||"M0,0"+(" H"+i)+(" L"+(i-P)+","+(s-$))+(" Q"+i/2+","+s+" "+P+","+(s-$))+" Z",B={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[y];return N.createElement("svg",qr({},m,{"aria-hidden":!0,ref:r,width:A?i:i+k,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[V]:O,[I]:R,[y]:_||A?"100%":"calc(100% - "+k/2+"px)",transform:[B,f].filter(G=>!!G).join(" "),...h}}),k>0&&N.createElement("path",{clipPath:"url(#"+C+")",fill:"none",stroke:d,strokeWidth:k+(p?0:1),d:T}),N.createElement("path",{stroke:k&&!p?m.fill:"none",d:T}),N.createElement("clipPath",{id:C},N.createElement("rect",{x:-M,y:M*(A?-1:1),width:i+k,height:i})))});function Mu(){const t=new Map;return{emit(r,n){var e;(e=t.get(r))==null||e.forEach(o=>o(n))},on(r,n){t.set(r,[...t.get(r)||[],n])},off(r,n){var e;t.set(r,((e=t.get(r))==null?void 0:e.filter(o=>o!==n))||[])}}}const Eu=N.createContext(null),xu=N.createContext(null),Lu=()=>{var t;return((t=N.useContext(Eu))==null?void 0:t.id)||null},Tu=()=>N.useContext(xu);function Pu(t){const{open:r=!1,onOpenChange:n,elements:e}=t,o=ra(),a=N.useRef({}),[i]=N.useState(()=>Mu()),s=Lu()!=null,[c,l]=N.useState(e.reference),u=bu((f,h,m)=>{a.current.openEvent=f?h:void 0,i.emit("openchange",{open:f,event:h,reason:m,nested:s}),n==null||n(f,h,m)}),d=N.useMemo(()=>({setPositionReference:l}),[]),p=N.useMemo(()=>({reference:c||e.reference||null,floating:e.floating||null,domReference:e.reference}),[c,e.reference,e.floating]);return N.useMemo(()=>({dataRef:a,open:r,onOpenChange:u,elements:p,events:i,floatingId:o,refs:d}),[r,u,p,i,o,d])}function Ou(t){t===void 0&&(t={});const{nodeId:r}=t,n=Pu({...t,elements:{reference:null,floating:null,...t.elements}}),e=t.rootContext||n,o=e.elements,[a,i]=N.useState(null),[s,c]=N.useState(null),l=(o==null?void 0:o.reference)||a,u=N.useRef(null),d=Tu();Fn(()=>{l&&(u.current=l)},[l]);const p=hu({...t,elements:{...o,...s&&{reference:s}}}),f=N.useCallback(b=>{const y=me(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;c(y),p.refs.setReference(y)},[p.refs]),h=N.useCallback(b=>{(me(b)||b===null)&&(u.current=b,i(b)),(me(p.refs.reference.current)||p.refs.reference.current===null||b!==null&&!me(b))&&p.refs.setReference(b)},[p.refs]),m=N.useMemo(()=>({...p.refs,setReference:h,setPositionReference:f,domReference:u}),[p.refs,h,f]),C=N.useMemo(()=>({...p.elements,domReference:l}),[p.elements,l]),v=N.useMemo(()=>({...p,...e,refs:m,elements:C,nodeId:r}),[p,m,C,r,e]);return Fn(()=>{e.dataRef.current.floatingContext=v;const b=d==null?void 0:d.nodesRef.current.find(y=>y.id===r);b&&(b.context=v)}),N.useMemo(()=>({...p,context:v,refs:m,elements:C}),[p,m,C,v])}/*!
|
|
536
|
+
*/(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var n=[],i=0;i<arguments.length;i++){var s=arguments[i];if(s){var o=typeof s;if(o==="string"||o==="number")n.push(s);else if(Array.isArray(s)){if(s.length){var a=t.apply(null,s);a&&n.push(a)}}else if(o==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){n.push(s.toString());continue}for(var l in s)e.call(s,l)&&s[l]&&n.push(l)}}}return n.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(_d);var m9=_d.exports;const Lt=ld(m9),g9="_text_4ha5d_1",y9="_text__lg_4ha5d_1",b9="_text__md_4ha5d_7",v9="_text__sm_4ha5d_14",C9="_text__xs_4ha5d_21",w9="_text__medium_4ha5d_28",k9="_text__darkMode_4ha5d_31",Hs={text:g9,text__lg:y9,text__md:b9,text__sm:v9,text__xs:C9,text__medium:w9,text__darkMode:k9},yl=({children:r,className:e,darkMode:t,type:n="md",weight:i="regular"})=>ae.jsx("p",{className:Lt(Hs.text,Hs[`text__${n}`],t&&Hs.text__darkMode,i==="medium"&&Hs.text__medium,e&&e),children:r});yl.prototype={avocado:"Text"};const x9="_heading_1qyoa_1",S9="_heading__1_1qyoa_1",O9="_heading__2_1qyoa_8",_9="_heading__3_1qyoa_15",D9="_heading__4_1qyoa_22",M9="_heading__darkMode_1qyoa_29",bt={heading:x9,heading__1:S9,heading__2:O9,heading__3:_9,heading__4:D9,heading__darkMode:M9},Vs=r=>{const{children:e,className:t,darkMode:n,type:i}=r;switch(i){case"h1":return ae.jsx("h1",{className:Lt(bt.heading,bt.heading__1,n&&bt.heading__darkMode,t&&t),children:e});case"h2":return ae.jsx("h2",{className:Lt(bt.heading,bt.heading__2,n&&bt.heading__darkMode,t&&t),children:e});case"h3":return ae.jsx("h3",{className:Lt(bt.heading,bt.heading__3,n&&bt.heading__darkMode,t&&t),children:e});case"h4":return ae.jsx("h4",{className:Lt(bt.heading,bt.heading__4,n&&bt.heading__darkMode,t&&t),children:e});default:return null}};Vs.prototype={avocado:"Heading"};const P9="_button_zj995_1",T9="_button__loading_zj995_20",E9="_button_icon_zj995_32",A9="_button_loadingIcon_zj995_38",R9="_button__sm_zj995_45",L9="_button__secondary_zj995_50",N9="_button__darkMode_zj995_65",B9="_button__ghost_zj995_76",I9="_button__danger_zj995_91",Dn={button:P9,button__loading:T9,button_icon:E9,button_loadingIcon:A9,button__sm:R9,button__secondary:L9,button__darkMode:N9,button__ghost:B9,button__danger:I9},Dd=({children:r,className:e,loading:t=!1,leftIcon:n,rightIcon:i,variant:s="primary",type:o="button",size:a="md",...l})=>{const{theme:c}=Od();return ae.jsxs("button",{className:Lt(Dn.button,e&&e,s&&Dn[`button__${s}`],a&&Dn[`button__${a}`],(c==null?void 0:c.mode)==="dark"&&Dn.button__darkMode,t&&Dn.button__loading),type:o,...l,children:[n&&ae.jsx(_n,{className:Dn.button_icon,name:n,size:"md"}),r,i&&ae.jsx(_n,{className:Dn.button_icon,name:i,size:"md"}),t&&ae.jsx(_n,{className:Dn.button_loadingIcon,name:"loading",size:"md"})]})};Dd.prototype={avocado:"Button"};const H9="_cardNotification_l95m2_1",V9="_cardNotification_mainRow_l95m2_10",F9="_iconState_l95m2_15",Q9="_mainInfo_l95m2_18",W9="_closeButton_l95m2_26",j9="_cardNotification__error_l95m2_30",q9="_cardNotification__outlined_l95m2_33",z9="_mainInfo_title_l95m2_36",Y9="_cardNotification__warning_l95m2_39",$9="_cardNotification__info_l95m2_48",U9="_cardNotification__success_l95m2_57",cn={cardNotification:H9,cardNotification_mainRow:V9,iconState:F9,mainInfo:Q9,closeButton:W9,cardNotification__error:j9,cardNotification__outlined:q9,mainInfo_title:z9,cardNotification__warning:Y9,cardNotification__info:$9,cardNotification__success:U9},Md={error:{name:"circle-cross",color:"red-50"},warning:{name:"alert-triangle",color:"warning-50"},info:{name:"circle-info",color:"blue-50"},success:{name:"circle-check",color:"green-50"}},Pd=({state:r="error",outlined:e,title:t,children:n,className:i,dismissible:s=!1,extraContent:o})=>{const[a,l]=v.useState(!0),c=[cn.cardNotification,r&&(cn==null?void 0:cn[`cardNotification__${r}`]),e&&cn.cardNotification__outlined,i&&i],u=h=>typeof h=="string";return(h=>{let d=!1,f=!1;return v.Children.forEach(h,p=>{u(p)&&(f=!0),v.isValidElement(p)&&(d=!0)}),d&&f})(n)&&console.error("CardNotification component does not support mixed children, please use only string or ReactNode"),a?ae.jsxs("article",{className:Lt(...c),children:[ae.jsxs("section",{className:cn.cardNotification_mainRow,children:[ae.jsx(_n,{className:cn.iconState,...Md==null?void 0:Md[r],filled:!0}),ae.jsxs("div",{className:cn.mainInfo,children:[ae.jsx(Vs,{type:"h3",className:cn.mainInfo_title,children:t}),u(n)&&ae.jsx(yl,{type:"sm",children:n}),v.isValidElement(n)&&ae.jsx("div",{children:n})]}),s&&ae.jsx("button",{className:cn.closeButton,onClick:()=>l(!1),children:ae.jsx(_n,{name:"close"})})]}),o&&o]}):null};Pd.prototype={avocado:"CardNotification"};function Td(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(e=0;e<i;e++)r[e]&&(t=Td(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function Re(){for(var r,e,t=0,n="",i=arguments.length;t<i;t++)(r=arguments[t])&&(e=Td(r))&&(n&&(n+=" "),n+=e);return n}function Z9(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,bl(r,e)}function bl(r,e){return bl=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},bl(r,e)}function X9(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}function Ed(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function K9(r,e,t){return r===e?!0:r.correspondingElement?r.correspondingElement.classList.contains(t):r.classList.contains(t)}function G9(r,e,t){if(r===e)return!0;for(;r.parentNode||r.host;){if(r.parentNode&&K9(r,e,t))return!0;r=r.parentNode||r.host}return r}function J9(r){return document.documentElement.clientWidth<=r.clientX||document.documentElement.clientHeight<=r.clientY}var e8=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var r=!1,e=Object.defineProperty({},"passive",{get:function(){r=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),r}};function t8(r){return r===void 0&&(r=0),function(){return++r}}var n8=t8(),vl,Fs={},Cl={},r8=["touchstart","touchmove"],i8="ignore-react-onclickoutside";function Ad(r,e){var t={},n=r8.indexOf(e)!==-1;return n&&vl&&(t.passive=!r.props.preventDefault),t}function Qs(r,e){var t,n,i=r.displayName||r.name||"Component";return n=t=function(s){Z9(o,s);function o(l){var c;return c=s.call(this,l)||this,c.__outsideClickHandler=function(u){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(u);return}var h=c.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(u);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(u);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var u=c.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():pl.findDOMNode(u)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Cl[c._uid])){typeof vl>"u"&&(vl=e8()),Cl[c._uid]=!0;var u=c.props.eventTypes;u.forEach||(u=[u]),Fs[c._uid]=function(h){if(c.componentNode!==null&&!(c.initTimeStamp>h.timeStamp)&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&&J9(h)))){var d=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;G9(d,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},u.forEach(function(h){document.addEventListener(h,Fs[c._uid],Ad(Ed(c),h))})}},c.disableOnClickOutside=function(){delete Cl[c._uid];var u=Fs[c._uid];if(u&&typeof document<"u"){var h=c.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(d){return document.removeEventListener(d,u,Ad(Ed(c),d))}),delete Fs[c._uid]}},c.getRef=function(u){return c.instanceRef=u},c._uid=n8(),c.initTimeStamp=performance.now(),c}var a=o.prototype;return a.getInstance=function(){if(r.prototype&&!r.prototype.isReactComponent)return this;var l=this.instanceRef;return l.getInstance?l.getInstance():l},a.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},a.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},a.componentWillUnmount=function(){this.disableOnClickOutside()},a.render=function(){var l=this.props;l.excludeScrollbar;var c=X9(l,["excludeScrollbar"]);return r.prototype&&r.prototype.isReactComponent?c.ref=this.getRef:c.wrappedRef=this.getRef,c.disableOnClickOutside=this.disableOnClickOutside,c.enableOnClickOutside=this.enableOnClickOutside,v.createElement(r,c)},o}(v.Component),t.displayName="OnClickOutside("+i+")",t.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:i8,preventDefault:!1,stopPropagation:!1},t.getClass=function(){return r.getClass?r.getClass():r},n}function W(r){const e=Object.prototype.toString.call(r);return r instanceof Date||typeof r=="object"&&e==="[object Date]"?new r.constructor(+r):typeof r=="number"||e==="[object Number]"||typeof r=="string"||e==="[object String]"?new Date(r):new Date(NaN)}function ce(r,e){return r instanceof Date?new r.constructor(e):new Date(e)}function Mn(r,e){const t=W(r);return isNaN(e)?ce(r,NaN):(e&&t.setDate(t.getDate()+e),t)}function wl(r,e){const t=+W(r);return ce(r,t+e)}const Rd=6048e5,s8=864e5,Ws=6e4,js=36e5,o8=1e3;function a8(r,e){return wl(r,e*js)}function kl(r,e){return wl(r,e*Ws)}function Mt(r,e){const t=W(r);if(isNaN(e))return ce(r,NaN);if(!e)return t;const n=t.getDate(),i=ce(r,t.getTime());i.setMonth(t.getMonth()+e+1,0);const s=i.getDate();return n>=s?i:(t.setFullYear(i.getFullYear(),i.getMonth(),n),t)}function xl(r,e){const t=e*3;return Mt(r,t)}function l8(r,e){return wl(r,e*1e3)}function qs(r,e){const t=e*7;return Mn(r,t)}function un(r,e){return Mt(r,e*12)}function Jn(r){const e=W(r);return e.setHours(0,0,0,0),e}function zs(r){const e=W(r),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+r-+t}function xi(r,e){const t=Jn(r),n=Jn(e),i=+t-zs(t),s=+n-zs(n);return Math.round((i-s)/s8)}function Ys(r,e){const t=W(r),n=W(e),i=t.getFullYear()-n.getFullYear(),s=t.getMonth()-n.getMonth();return i*12+s}function er(r){const e=W(r);return Math.trunc(e.getMonth()/3)+1}function $s(r,e){const t=W(r),n=W(e),i=t.getFullYear()-n.getFullYear(),s=er(t)-er(n);return i*4+s}function Us(r,e){const t=W(r),n=W(e);return t.getFullYear()-n.getFullYear()}function Ld(r){const e=W(r);return e.setHours(23,59,59,999),e}function c8(r){const e=W(r),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(23,59,59,999),e}let u8={};function tr(){return u8}function h8(r,e){var t,n;const i=tr(),s=i.weekStartsOn??((n=(t=i.locale)==null?void 0:t.options)==null?void 0:n.weekStartsOn)??0,o=W(r),a=o.getDay(),l=(a<s?-7:0)+6-(a-s);return o.setDate(o.getDate()+l),o.setHours(23,59,59,999),o}function Nd(r){const e=W(r),t=e.getFullYear();return e.setFullYear(t+1,0,0),e.setHours(23,59,59,999),e}const d8={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"}},f8=(r,e,t)=>{let n;const i=d8[r];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};function Sl(r){return(e={})=>{const t=e.width?String(e.width):r.defaultWidth;return r.formats[t]||r.formats[r.defaultWidth]}}const p8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},m8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},g8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},y8={date:Sl({formats:p8,defaultWidth:"full"}),time:Sl({formats:m8,defaultWidth:"full"}),dateTime:Sl({formats:g8,defaultWidth:"full"})},b8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},v8=(r,e,t,n)=>b8[r];function Si(r){return(e,t)=>{const n=t!=null&&t.context?String(t.context):"standalone";let i;if(n==="formatting"&&r.formattingValues){const o=r.defaultFormattingWidth||r.defaultWidth,a=t!=null&&t.width?String(t.width):o;i=r.formattingValues[a]||r.formattingValues[o]}else{const o=r.defaultWidth,a=t!=null&&t.width?String(t.width):r.defaultWidth;i=r.values[a]||r.values[o]}const s=r.argumentCallback?r.argumentCallback(e):e;return i[s]}}const C8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},w8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},k8={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"]},x8={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"]},S8={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"}},O8={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"}},_8=(r,e)=>{const t=Number(r),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},D8={ordinalNumber:_8,era:Si({values:C8,defaultWidth:"wide"}),quarter:Si({values:w8,defaultWidth:"wide",argumentCallback:r=>r-1}),month:Si({values:k8,defaultWidth:"wide"}),day:Si({values:x8,defaultWidth:"wide"}),dayPeriod:Si({values:S8,defaultWidth:"wide",formattingValues:O8,defaultFormattingWidth:"wide"})};function Oi(r){return(e,t={})=>{const n=t.width,i=n&&r.matchPatterns[n]||r.matchPatterns[r.defaultMatchWidth],s=e.match(i);if(!s)return null;const o=s[0],a=n&&r.parsePatterns[n]||r.parsePatterns[r.defaultParseWidth],l=Array.isArray(a)?P8(a,h=>h.test(o)):M8(a,h=>h.test(o));let c;c=r.valueCallback?r.valueCallback(l):l,c=t.valueCallback?t.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function M8(r,e){for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&e(r[t]))return t}function P8(r,e){for(let t=0;t<r.length;t++)if(e(r[t]))return t}function T8(r){return(e,t={})=>{const n=e.match(r.matchPattern);if(!n)return null;const i=n[0],s=e.match(r.parsePattern);if(!s)return null;let o=r.valueCallback?r.valueCallback(s[0]):s[0];o=t.valueCallback?t.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const E8=/^(\d+)(th|st|nd|rd)?/i,A8=/\d+/i,R8={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},L8={any:[/^b/i,/^(a|c)/i]},N8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B8={any:[/1/i,/2/i,/3/i,/4/i]},I8={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},H8={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]},V8={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},F8={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]},Q8={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},W8={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}},j8={ordinalNumber:T8({matchPattern:E8,parsePattern:A8,valueCallback:r=>parseInt(r,10)}),era:Oi({matchPatterns:R8,defaultMatchWidth:"wide",parsePatterns:L8,defaultParseWidth:"any"}),quarter:Oi({matchPatterns:N8,defaultMatchWidth:"wide",parsePatterns:B8,defaultParseWidth:"any",valueCallback:r=>r+1}),month:Oi({matchPatterns:I8,defaultMatchWidth:"wide",parsePatterns:H8,defaultParseWidth:"any"}),day:Oi({matchPatterns:V8,defaultMatchWidth:"wide",parsePatterns:F8,defaultParseWidth:"any"}),dayPeriod:Oi({matchPatterns:Q8,defaultMatchWidth:"any",parsePatterns:W8,defaultParseWidth:"any"})},Bd={code:"en-US",formatDistance:f8,formatLong:y8,formatRelative:v8,localize:D8,match:j8,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zs(r){const e=W(r),t=ce(r,0);return t.setFullYear(e.getFullYear(),0,1),t.setHours(0,0,0,0),t}function q8(r){const e=W(r);return xi(e,Zs(e))+1}function hn(r,e){var t,n,i,s;const o=tr(),a=(e==null?void 0:e.weekStartsOn)??((n=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:n.weekStartsOn)??o.weekStartsOn??((s=(i=o.locale)==null?void 0:i.options)==null?void 0:s.weekStartsOn)??0,l=W(r),c=l.getDay(),u=(c<a?7:0)+c-a;return l.setDate(l.getDate()-u),l.setHours(0,0,0,0),l}function Tr(r){return hn(r,{weekStartsOn:1})}function Id(r){const e=W(r),t=e.getFullYear(),n=ce(r,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const i=Tr(n),s=ce(r,0);s.setFullYear(t,0,4),s.setHours(0,0,0,0);const o=Tr(s);return e.getTime()>=i.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function z8(r){const e=Id(r),t=ce(r,0);return t.setFullYear(e,0,4),t.setHours(0,0,0,0),Tr(t)}function Ol(r){const e=W(r),t=+Tr(e)-+z8(e);return Math.round(t/Rd)+1}function _l(r,e){var t,n,i,s;const o=W(r),a=o.getFullYear(),l=tr(),c=(e==null?void 0:e.firstWeekContainsDate)??((n=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:n.firstWeekContainsDate)??l.firstWeekContainsDate??((s=(i=l.locale)==null?void 0:i.options)==null?void 0:s.firstWeekContainsDate)??1,u=ce(r,0);u.setFullYear(a+1,0,c),u.setHours(0,0,0,0);const h=hn(u,e),d=ce(r,0);d.setFullYear(a,0,c),d.setHours(0,0,0,0);const f=hn(d,e);return o.getTime()>=h.getTime()?a+1:o.getTime()>=f.getTime()?a:a-1}function Y8(r,e){var t,n,i,s;const o=tr(),a=(e==null?void 0:e.firstWeekContainsDate)??((n=(t=e==null?void 0:e.locale)==null?void 0:t.options)==null?void 0:n.firstWeekContainsDate)??o.firstWeekContainsDate??((s=(i=o.locale)==null?void 0:i.options)==null?void 0:s.firstWeekContainsDate)??1,l=_l(r,e),c=ce(r,0);return c.setFullYear(l,0,a),c.setHours(0,0,0,0),hn(c,e)}function Hd(r,e){const t=W(r),n=+hn(t,e)-+Y8(t,e);return Math.round(n/Rd)+1}function ue(r,e){const t=r<0?"-":"",n=Math.abs(r).toString().padStart(e,"0");return t+n}const Pn={y(r,e){const t=r.getFullYear(),n=t>0?t:1-t;return ue(e==="yy"?n%100:n,e.length)},M(r,e){const t=r.getMonth();return e==="M"?String(t+1):ue(t+1,2)},d(r,e){return ue(r.getDate(),e.length)},a(r,e){const t=r.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(r,e){return ue(r.getHours()%12||12,e.length)},H(r,e){return ue(r.getHours(),e.length)},m(r,e){return ue(r.getMinutes(),e.length)},s(r,e){return ue(r.getSeconds(),e.length)},S(r,e){const t=e.length,n=r.getMilliseconds(),i=Math.trunc(n*Math.pow(10,t-3));return ue(i,e.length)}},Er={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vd={G:function(r,e,t){const n=r.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(r,e,t){if(e==="yo"){const n=r.getFullYear(),i=n>0?n:1-n;return t.ordinalNumber(i,{unit:"year"})}return Pn.y(r,e)},Y:function(r,e,t,n){const i=_l(r,n),s=i>0?i:1-i;if(e==="YY"){const o=s%100;return ue(o,2)}return e==="Yo"?t.ordinalNumber(s,{unit:"year"}):ue(s,e.length)},R:function(r,e){const t=Id(r);return ue(t,e.length)},u:function(r,e){const t=r.getFullYear();return ue(t,e.length)},Q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return ue(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,e,t){const n=Math.ceil((r.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return ue(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,e,t){const n=r.getMonth();switch(e){case"M":case"MM":return Pn.M(r,e);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(r,e,t){const n=r.getMonth();switch(e){case"L":return String(n+1);case"LL":return ue(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(r,e,t,n){const i=Hd(r,n);return e==="wo"?t.ordinalNumber(i,{unit:"week"}):ue(i,e.length)},I:function(r,e,t){const n=Ol(r);return e==="Io"?t.ordinalNumber(n,{unit:"week"}):ue(n,e.length)},d:function(r,e,t){return e==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):Pn.d(r,e)},D:function(r,e,t){const n=q8(r);return e==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):ue(n,e.length)},E:function(r,e,t){const n=r.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(r,e,t,n){const i=r.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return ue(s,2);case"eo":return t.ordinalNumber(s,{unit:"day"});case"eee":return t.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(i,{width:"short",context:"formatting"});case"eeee":default:return t.day(i,{width:"wide",context:"formatting"})}},c:function(r,e,t,n){const i=r.getDay(),s=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return ue(s,e.length);case"co":return t.ordinalNumber(s,{unit:"day"});case"ccc":return t.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(i,{width:"narrow",context:"standalone"});case"cccccc":return t.day(i,{width:"short",context:"standalone"});case"cccc":default:return t.day(i,{width:"wide",context:"standalone"})}},i:function(r,e,t){const n=r.getDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return ue(i,e.length);case"io":return t.ordinalNumber(i,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(r,e,t){const n=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(r,e,t){const n=r.getHours();let i;switch(n===12?i=Er.noon:n===0?i=Er.midnight:i=n/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(r,e,t){const n=r.getHours();let i;switch(n>=17?i=Er.evening:n>=12?i=Er.afternoon:n>=4?i=Er.morning:i=Er.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(r,e,t){if(e==="ho"){let n=r.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return Pn.h(r,e)},H:function(r,e,t){return e==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):Pn.H(r,e)},K:function(r,e,t){const n=r.getHours()%12;return e==="Ko"?t.ordinalNumber(n,{unit:"hour"}):ue(n,e.length)},k:function(r,e,t){let n=r.getHours();return n===0&&(n=24),e==="ko"?t.ordinalNumber(n,{unit:"hour"}):ue(n,e.length)},m:function(r,e,t){return e==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):Pn.m(r,e)},s:function(r,e,t){return e==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):Pn.s(r,e)},S:function(r,e){return Pn.S(r,e)},X:function(r,e,t){const n=r.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return Qd(n);case"XXXX":case"XX":return nr(n);case"XXXXX":case"XXX":default:return nr(n,":")}},x:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"x":return Qd(n);case"xxxx":case"xx":return nr(n);case"xxxxx":case"xxx":default:return nr(n,":")}},O:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Fd(n,":");case"OOOO":default:return"GMT"+nr(n,":")}},z:function(r,e,t){const n=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Fd(n,":");case"zzzz":default:return"GMT"+nr(n,":")}},t:function(r,e,t){const n=Math.trunc(r.getTime()/1e3);return ue(n,e.length)},T:function(r,e,t){const n=r.getTime();return ue(n,e.length)}};function Fd(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),i=Math.trunc(n/60),s=n%60;return s===0?t+String(i):t+String(i)+e+ue(s,2)}function Qd(r,e){return r%60===0?(r>0?"-":"+")+ue(Math.abs(r)/60,2):nr(r,e)}function nr(r,e=""){const t=r>0?"-":"+",n=Math.abs(r),i=ue(Math.trunc(n/60),2),s=ue(n%60,2);return t+i+e+s}const Wd=(r,e)=>{switch(r){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"})}},jd=(r,e)=>{switch(r){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"})}},$8=(r,e)=>{const t=r.match(/(P+)(p+)?/)||[],n=t[1],i=t[2];if(!i)return Wd(r,e);let s;switch(n){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Wd(n,e)).replace("{{time}}",jd(i,e))},Xs={p:jd,P:$8},U8=/^D+$/,Z8=/^Y+$/,X8=["D","DD","YY","YYYY"];function qd(r){return U8.test(r)}function zd(r){return Z8.test(r)}function Dl(r,e,t){const n=K8(r,e,t);if(console.warn(n),X8.includes(r))throw new RangeError(n)}function K8(r,e,t){const n=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function dn(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function Ks(r){if(!dn(r)&&typeof r!="number")return!1;const e=W(r);return!isNaN(Number(e))}const G8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,J8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,e4=/^'([^]*?)'?$/,t4=/''/g,n4=/[a-zA-Z]/;function Yd(r,e,t){var n,i,s,o,a,l,c,u;const h=tr(),d=(t==null?void 0:t.locale)??h.locale??Bd,f=(t==null?void 0:t.firstWeekContainsDate)??((i=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:i.firstWeekContainsDate)??h.firstWeekContainsDate??((o=(s=h.locale)==null?void 0:s.options)==null?void 0:o.firstWeekContainsDate)??1,p=(t==null?void 0:t.weekStartsOn)??((l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)??h.weekStartsOn??((u=(c=h.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,m=W(r);if(!Ks(m))throw new RangeError("Invalid time value");let g=e.match(J8).map(C=>{const w=C[0];if(w==="p"||w==="P"){const x=Xs[w];return x(C,d.formatLong)}return C}).join("").match(G8).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const w=C[0];if(w==="'")return{isToken:!1,value:r4(C)};if(Vd[w])return{isToken:!0,value:C};if(w.match(n4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:C}});d.localize.preprocessor&&(g=d.localize.preprocessor(m,g));const y={firstWeekContainsDate:f,weekStartsOn:p,locale:d};return g.map(C=>{if(!C.isToken)return C.value;const w=C.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&zd(w)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&qd(w))&&Dl(w,e,String(r));const x=Vd[w[0]];return x(m,w,d.localize,y)}).join("")}function r4(r){const e=r.match(e4);return e?e[1].replace(t4,"'"):r}function $d(r){return W(r).getDate()}function i4(r){return W(r).getDay()}function Nt(r){return W(r).getHours()}function Bt(r){return W(r).getMinutes()}function Ue(r){return W(r).getMonth()}function fn(r){return W(r).getSeconds()}function Ml(r){return W(r).getTime()}function K(r){return W(r).getFullYear()}function Tn(r,e){const t=W(r),n=W(e);return t.getTime()>n.getTime()}function rr(r,e){const t=W(r),n=W(e);return+t<+n}function s4(r,e){const t=W(r),n=W(e);return+t==+n}function o4(r,e){const t=Jn(r),n=Jn(e);return+t==+n}function a4(r,e){const t=W(r),n=W(e);return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()}function Pl(r){const e=W(r),t=e.getMonth(),n=t-t%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}function l4(r,e){const t=Pl(r),n=Pl(e);return+t==+n}function c4(r,e){const t=W(r),n=W(e);return t.getFullYear()===n.getFullYear()}function _i(r,e){const t=+W(r),[n,i]=[+W(e.start),+W(e.end)].sort((s,o)=>s-o);return t>=n&&t<=i}function Ud(r){let e;return r.forEach(function(t){const n=W(t);(e===void 0||e<n||isNaN(Number(n)))&&(e=n)}),e||new Date(NaN)}function Zd(r){let e;return r.forEach(t=>{const n=W(t);(!e||e>n||isNaN(+n))&&(e=n)}),e||new Date(NaN)}function u4(){return Object.assign({},tr())}function h4(r,e){const t=e instanceof Date?ce(e,0):new e(0);return t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),t.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t}const d4=10;class Xd{constructor(){Q(this,"subPriority",0)}validate(e,t){return!0}}class f4 extends Xd{constructor(e,t,n,i,s){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=i,s&&(this.subPriority=s)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class p4 extends Xd{constructor(){super(...arguments),Q(this,"priority",d4),Q(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:ce(e,h4(e,Date))}}class ie{run(e,t,n,i){const s=this.parse(e,t,n,i);return s?{setter:new f4(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,t,n){return!0}}class m4 extends ie{constructor(){super(...arguments),Q(this,"priority",140),Q(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}const ke={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}/},It={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 xe(r,e){return r&&{value:e(r.value),rest:r.rest}}function Ce(r,e){const t=e.match(r);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Ht(r,e){const t=e.match(r);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const n=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,s=t[3]?parseInt(t[3],10):0,o=t[5]?parseInt(t[5],10):0;return{value:n*(i*js+s*Ws+o*o8),rest:e.slice(t[0].length)}}function Kd(r){return Ce(ke.anyDigitsSigned,r)}function we(r,e){switch(r){case 1:return Ce(ke.singleDigit,e);case 2:return Ce(ke.twoDigits,e);case 3:return Ce(ke.threeDigits,e);case 4:return Ce(ke.fourDigits,e);default:return Ce(new RegExp("^\\d{1,"+r+"}"),e)}}function Gd(r,e){switch(r){case 1:return Ce(ke.singleDigitSigned,e);case 2:return Ce(ke.twoDigitsSigned,e);case 3:return Ce(ke.threeDigitsSigned,e);case 4:return Ce(ke.fourDigitsSigned,e);default:return Ce(new RegExp("^-?\\d{1,"+r+"}"),e)}}function Tl(r){switch(r){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 Jd(r,e){const t=e>0,n=t?e:1-e;let i;if(n<=50)i=r||100;else{const s=n+50,o=Math.trunc(s/100)*100,a=r>=s%100;i=r+o-(a?100:0)}return t?i:1-i}function ef(r){return r%400===0||r%4===0&&r%100!==0}class g4 extends ie{constructor(){super(...arguments),Q(this,"priority",130),Q(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){const i=s=>({year:s,isTwoDigitYear:t==="yy"});switch(t){case"y":return xe(we(4,e),i);case"yo":return xe(n.ordinalNumber(e,{unit:"year"}),i);default:return xe(we(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const i=e.getFullYear();if(n.isTwoDigitYear){const o=Jd(n.year,i);return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}const s=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}class y4 extends ie{constructor(){super(...arguments),Q(this,"priority",130),Q(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){const i=s=>({year:s,isTwoDigitYear:t==="YY"});switch(t){case"Y":return xe(we(4,e),i);case"Yo":return xe(n.ordinalNumber(e,{unit:"year"}),i);default:return xe(we(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,i){const s=_l(e,i);if(n.isTwoDigitYear){const a=Jd(n.year,s);return e.setFullYear(a,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),hn(e,i)}const o=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(o,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),hn(e,i)}}class b4 extends ie{constructor(){super(...arguments),Q(this,"priority",130),Q(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return Gd(t==="R"?4:t.length,e)}set(e,t,n){const i=ce(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),Tr(i)}}class v4 extends ie{constructor(){super(...arguments),Q(this,"priority",130),Q(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return Gd(t==="u"?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}}class C4 extends ie{constructor(){super(...arguments),Q(this,"priority",120),Q(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return we(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}}class w4 extends ie{constructor(){super(...arguments),Q(this,"priority",120),Q(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return we(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}}class k4 extends ie{constructor(){super(...arguments),Q(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Q(this,"priority",110)}parse(e,t,n){const i=s=>s-1;switch(t){case"M":return xe(Ce(ke.month,e),i);case"MM":return xe(we(2,e),i);case"Mo":return xe(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}class x4 extends ie{constructor(){super(...arguments),Q(this,"priority",110),Q(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){const i=s=>s-1;switch(t){case"L":return xe(Ce(ke.month,e),i);case"LL":return xe(we(2,e),i);case"Lo":return xe(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}function S4(r,e,t){const n=W(r),i=Hd(n,t)-e;return n.setDate(n.getDate()-i*7),n}class O4 extends ie{constructor(){super(...arguments),Q(this,"priority",100),Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return Ce(ke.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return we(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,i){return hn(S4(e,n,i),i)}}function _4(r,e){const t=W(r),n=Ol(t)-e;return t.setDate(t.getDate()-n*7),t}class D4 extends ie{constructor(){super(...arguments),Q(this,"priority",100),Q(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return Ce(ke.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return we(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return Tr(_4(e,n))}}const M4=[31,28,31,30,31,30,31,31,30,31,30,31],P4=[31,29,31,30,31,30,31,31,30,31,30,31];class T4 extends ie{constructor(){super(...arguments),Q(this,"priority",90),Q(this,"subPriority",1),Q(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return Ce(ke.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return we(t.length,e)}}validate(e,t){const n=e.getFullYear(),i=ef(n),s=e.getMonth();return i?t>=1&&t<=P4[s]:t>=1&&t<=M4[s]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}}class E4 extends ie{constructor(){super(...arguments),Q(this,"priority",90),Q(this,"subpriority",1),Q(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return Ce(ke.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return we(t.length,e)}}validate(e,t){const n=e.getFullYear();return ef(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}}function El(r,e,t){var n,i,s,o;const a=tr(),l=(t==null?void 0:t.weekStartsOn)??((i=(n=t==null?void 0:t.locale)==null?void 0:n.options)==null?void 0:i.weekStartsOn)??a.weekStartsOn??((o=(s=a.locale)==null?void 0:s.options)==null?void 0:o.weekStartsOn)??0,c=W(r),u=c.getDay(),h=(e%7+7)%7,d=7-l,f=e<0||e>6?e-(u+d)%7:(h+d)%7-(u+d)%7;return Mn(c,f)}class A4 extends ie{constructor(){super(...arguments),Q(this,"priority",90),Q(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=El(e,n,i),e.setHours(0,0,0,0),e}}class R4 extends ie{constructor(){super(...arguments),Q(this,"priority",90),Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,i){const s=o=>{const a=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+a};switch(t){case"e":case"ee":return xe(we(t.length,e),s);case"eo":return xe(n.ordinalNumber(e,{unit:"day"}),s);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=El(e,n,i),e.setHours(0,0,0,0),e}}class L4 extends ie{constructor(){super(...arguments),Q(this,"priority",90),Q(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,i){const s=o=>{const a=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+a};switch(t){case"c":case"cc":return xe(we(t.length,e),s);case"co":return xe(n.ordinalNumber(e,{unit:"day"}),s);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=El(e,n,i),e.setHours(0,0,0,0),e}}function N4(r){let e=W(r).getDay();return e===0&&(e=7),e}function B4(r,e){const t=W(r),n=N4(t),i=e-n;return Mn(t,i)}class I4 extends ie{constructor(){super(...arguments),Q(this,"priority",90),Q(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){const i=s=>s===0?7:s;switch(t){case"i":case"ii":return we(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return xe(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return xe(n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return xe(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiii":default:return xe(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=B4(e,n),e.setHours(0,0,0,0),e}}class H4 extends ie{constructor(){super(...arguments),Q(this,"priority",80),Q(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Tl(n),0,0,0),e}}class V4 extends ie{constructor(){super(...arguments),Q(this,"priority",80),Q(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Tl(n),0,0,0),e}}class F4 extends ie{constructor(){super(...arguments),Q(this,"priority",80),Q(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(Tl(n),0,0,0),e}}class Q4 extends ie{constructor(){super(...arguments),Q(this,"priority",70),Q(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return Ce(ke.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return we(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const i=e.getHours()>=12;return i&&n<12?e.setHours(n+12,0,0,0):!i&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}}class W4 extends ie{constructor(){super(...arguments),Q(this,"priority",70),Q(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return Ce(ke.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return we(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}}class j4 extends ie{constructor(){super(...arguments),Q(this,"priority",70),Q(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return Ce(ke.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return we(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}}class q4 extends ie{constructor(){super(...arguments),Q(this,"priority",70),Q(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return Ce(ke.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return we(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const i=n<=24?n%24:n;return e.setHours(i,0,0,0),e}}class z4 extends ie{constructor(){super(...arguments),Q(this,"priority",60),Q(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return Ce(ke.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return we(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}}class Y4 extends ie{constructor(){super(...arguments),Q(this,"priority",50),Q(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return Ce(ke.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return we(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}}class $4 extends ie{constructor(){super(...arguments),Q(this,"priority",30),Q(this,"incompatibleTokens",["t","T"])}parse(e,t){const n=i=>Math.trunc(i*Math.pow(10,-t.length+3));return xe(we(t.length,e),n)}set(e,t,n){return e.setMilliseconds(n),e}}class U4 extends ie{constructor(){super(...arguments),Q(this,"priority",10),Q(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return Ht(It.basicOptionalMinutes,e);case"XX":return Ht(It.basic,e);case"XXXX":return Ht(It.basicOptionalSeconds,e);case"XXXXX":return Ht(It.extendedOptionalSeconds,e);case"XXX":default:return Ht(It.extended,e)}}set(e,t,n){return t.timestampIsSet?e:ce(e,e.getTime()-zs(e)-n)}}class Z4 extends ie{constructor(){super(...arguments),Q(this,"priority",10),Q(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return Ht(It.basicOptionalMinutes,e);case"xx":return Ht(It.basic,e);case"xxxx":return Ht(It.basicOptionalSeconds,e);case"xxxxx":return Ht(It.extendedOptionalSeconds,e);case"xxx":default:return Ht(It.extended,e)}}set(e,t,n){return t.timestampIsSet?e:ce(e,e.getTime()-zs(e)-n)}}class X4 extends ie{constructor(){super(...arguments),Q(this,"priority",40),Q(this,"incompatibleTokens","*")}parse(e){return Kd(e)}set(e,t,n){return[ce(e,n*1e3),{timestampIsSet:!0}]}}class K4 extends ie{constructor(){super(...arguments),Q(this,"priority",20),Q(this,"incompatibleTokens","*")}parse(e){return Kd(e)}set(e,t,n){return[ce(e,n),{timestampIsSet:!0}]}}const G4={G:new m4,y:new g4,Y:new y4,R:new b4,u:new v4,Q:new C4,q:new w4,M:new k4,L:new x4,w:new O4,I:new D4,d:new T4,D:new E4,E:new A4,e:new R4,c:new L4,i:new I4,a:new H4,b:new V4,B:new F4,h:new Q4,H:new W4,K:new j4,k:new q4,m:new z4,s:new Y4,S:new $4,X:new U4,x:new Z4,t:new X4,T:new K4},J4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,e7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,t7=/^'([^]*?)'?$/,n7=/''/g,r7=/\S/,i7=/[a-zA-Z]/;function Al(r,e,t,n){var i,s,o,a,l,c,u,h;const d=u4(),f=(n==null?void 0:n.locale)??d.locale??Bd,p=(n==null?void 0:n.firstWeekContainsDate)??((s=(i=n==null?void 0:n.locale)==null?void 0:i.options)==null?void 0:s.firstWeekContainsDate)??d.firstWeekContainsDate??((a=(o=d.locale)==null?void 0:o.options)==null?void 0:a.firstWeekContainsDate)??1,m=(n==null?void 0:n.weekStartsOn)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??d.weekStartsOn??((h=(u=d.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0;if(e==="")return r===""?W(t):ce(t,NaN);const g={firstWeekContainsDate:p,weekStartsOn:m,locale:f},y=[new p4],C=e.match(e7).map(k=>{const D=k[0];if(D in Xs){const P=Xs[D];return P(k,f.formatLong)}return k}).join("").match(J4),w=[];for(let k of C){!(n!=null&&n.useAdditionalWeekYearTokens)&&zd(k)&&Dl(k,e,r),!(n!=null&&n.useAdditionalDayOfYearTokens)&&qd(k)&&Dl(k,e,r);const D=k[0],P=G4[D];if(P){const{incompatibleTokens:j}=P;if(Array.isArray(j)){const T=w.find(B=>j.includes(B.token)||B.token===D);if(T)throw new RangeError(`The format string mustn't contain \`${T.fullToken}\` and \`${k}\` at the same time`)}else if(P.incompatibleTokens==="*"&&w.length>0)throw new RangeError(`The format string mustn't contain \`${k}\` and any other token at the same time`);w.push({token:D,fullToken:k});const E=P.run(r,k,f.match,g);if(!E)return ce(t,NaN);y.push(E.setter),r=E.rest}else{if(D.match(i7))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(k==="''"?k="'":D==="'"&&(k=s7(k)),r.indexOf(k)===0)r=r.slice(k.length);else return ce(t,NaN)}}if(r.length>0&&r7.test(r))return ce(t,NaN);const x=y.map(k=>k.priority).sort((k,D)=>D-k).filter((k,D,P)=>P.indexOf(k)===D).map(k=>y.filter(D=>D.priority===k).sort((D,P)=>P.subPriority-D.subPriority)).map(k=>k[0]);let b=W(t);if(isNaN(b.getTime()))return ce(t,NaN);const S={};for(const k of x){if(!k.validate(b,g))return ce(t,NaN);const D=k.set(b,S,g);Array.isArray(D)?(b=D[0],Object.assign(S,D[1])):b=D}return ce(t,b)}function s7(r){return r.match(t7)[1].replace(n7,"'")}function o7(r,e){const t=u7(r);let n;if(t.date){const a=h7(t.date,2);n=d7(a.restDateString,a.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);const i=n.getTime();let s=0,o;if(t.time&&(s=f7(t.time),isNaN(s)))return new Date(NaN);if(t.timezone){if(o=p7(t.timezone),isNaN(o))return new Date(NaN)}else{const a=new Date(i+s),l=new Date(0);return l.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),l.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),l}return new Date(i+s+o)}const Gs={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a7=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l7=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c7=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u7(r){const e={},t=r.split(Gs.dateTimeDelimiter);let n;if(t.length>2)return e;if(/:/.test(t[0])?n=t[0]:(e.date=t[0],n=t[1],Gs.timeZoneDelimiter.test(e.date)&&(e.date=r.split(Gs.timeZoneDelimiter)[0],n=r.substr(e.date.length,r.length))),n){const i=Gs.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}function h7(r,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=r.match(t);if(!n)return{year:NaN,restDateString:""};const i=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?i:s*100,restDateString:r.slice((n[1]||n[2]).length)}}function d7(r,e){if(e===null)return new Date(NaN);const t=r.match(a7);if(!t)return new Date(NaN);const n=!!t[4],i=Di(t[1]),s=Di(t[2])-1,o=Di(t[3]),a=Di(t[4]),l=Di(t[5])-1;if(n)return v7(e,a,l)?m7(e,a,l):new Date(NaN);{const c=new Date(0);return!y7(e,s,o)||!b7(e,i)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(i,o)),c)}}function Di(r){return r?parseInt(r):1}function f7(r){const e=r.match(l7);if(!e)return NaN;const t=Rl(e[1]),n=Rl(e[2]),i=Rl(e[3]);return C7(t,n,i)?t*js+n*Ws+i*1e3:NaN}function Rl(r){return r&&parseFloat(r.replace(",","."))||0}function p7(r){if(r==="Z")return 0;const e=r.match(c7);if(!e)return 0;const t=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return w7(n,i)?t*(n*js+i*Ws):NaN}function m7(r,e,t){const n=new Date(0);n.setUTCFullYear(r,0,4);const i=n.getUTCDay()||7,s=(e-1)*7+t+1-i;return n.setUTCDate(n.getUTCDate()+s),n}const g7=[31,null,31,30,31,30,31,31,30,31,30,31];function tf(r){return r%400===0||r%4===0&&r%100!==0}function y7(r,e,t){return e>=0&&e<=11&&t>=1&&t<=(g7[e]||(tf(r)?29:28))}function b7(r,e){return e>=1&&e<=(tf(r)?366:365)}function v7(r,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function C7(r,e,t){return r===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&r>=0&&r<25}function w7(r,e){return e>=0&&e<=59}function k7(r){const e=W(r),t=e.getFullYear(),n=e.getMonth(),i=ce(r,0);return i.setFullYear(t,n+1,0),i.setHours(0,0,0,0),i.getDate()}function lt(r,e){const t=W(r),n=t.getFullYear(),i=t.getDate(),s=ce(r,0);s.setFullYear(n,e,15),s.setHours(0,0,0,0);const o=k7(s);return t.setMonth(e,Math.min(i,o)),t}function x7(r,e){let t=W(r);return isNaN(+t)?ce(r,NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=lt(t,e.month)),e.date!=null&&t.setDate(e.date),e.hours!=null&&t.setHours(e.hours),e.minutes!=null&&t.setMinutes(e.minutes),e.seconds!=null&&t.setSeconds(e.seconds),e.milliseconds!=null&&t.setMilliseconds(e.milliseconds),t)}function Js(r,e){const t=W(r);return t.setHours(e),t}function eo(r,e){const t=W(r);return t.setMinutes(e),t}function Ar(r,e){const t=W(r),n=Math.trunc(t.getMonth()/3)+1,i=e-n;return lt(t,t.getMonth()+i*3)}function to(r,e){const t=W(r);return t.setSeconds(e),t}function Vt(r,e){const t=W(r);return isNaN(+t)?ce(r,NaN):(t.setFullYear(e),t)}function nf(r){const e=W(r);return e.setDate(1),e.setHours(0,0,0,0),e}function S7(r,e){return Mn(r,-e)}function Rr(r,e){return Mt(r,-e)}function rf(r,e){return xl(r,-e)}function sf(r,e){return qs(r,-e)}function Lr(r,e){return un(r,-e)}function no(){return typeof window<"u"}function En(r){return of(r)?(r.nodeName||"").toLowerCase():"#document"}function ct(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function pn(r){var e;return(e=(of(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function of(r){return no()?r instanceof Node||r instanceof ct(r).Node:!1}function Je(r){return no()?r instanceof Element||r instanceof ct(r).Element:!1}function Ft(r){return no()?r instanceof HTMLElement||r instanceof ct(r).HTMLElement:!1}function af(r){return!no()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof ct(r).ShadowRoot}function Mi(r){const{overflow:e,overflowX:t,overflowY:n,display:i}=ut(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function O7(r){return["table","td","th"].includes(En(r))}function _7(r){return[":popover-open",":modal"].some(e=>{try{return r.matches(e)}catch{return!1}})}function Ll(r){const e=Nl(),t=Je(r)?ut(r):r;return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function lf(r){let e=Nr(r);for(;Ft(e)&&!ro(e);){if(Ll(e))return e;if(_7(e))return null;e=Nr(e)}return null}function Nl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ro(r){return["html","body","#document"].includes(En(r))}function ut(r){return ct(r).getComputedStyle(r)}function io(r){return Je(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Nr(r){if(En(r)==="html")return r;const e=r.assignedSlot||r.parentNode||af(r)&&r.host||pn(r);return af(e)?e.host:e}function cf(r){const e=Nr(r);return ro(e)?r.ownerDocument?r.ownerDocument.body:r.body:Ft(e)&&Mi(e)?e:cf(e)}function Pi(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const i=cf(r),s=i===((n=r.ownerDocument)==null?void 0:n.body),o=ct(i);if(s){const a=D7(o);return e.concat(o,o.visualViewport||[],Mi(i)?i:[],a&&t?Pi(a):[])}return e.concat(i,Pi(i,[],t))}function D7(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}const Bl=Math.min,Br=Math.max,so=Math.round,oo=Math.floor,An=r=>({x:r,y:r}),Il=Math.min,M7=Math.max,P7={left:"right",right:"left",bottom:"top",top:"bottom"},T7={start:"end",end:"start"};function E7(r,e,t){return M7(r,Il(e,t))}function ao(r,e){return typeof r=="function"?r(e):r}function Ir(r){return r.split("-")[0]}function Ti(r){return r.split("-")[1]}function A7(r){return r==="x"?"y":"x"}function Hl(r){return r==="y"?"height":"width"}function Vl(r){return["top","bottom"].includes(Ir(r))?"y":"x"}function Fl(r){return A7(Vl(r))}function R7(r,e,t){t===void 0&&(t=!1);const n=Ti(r),i=Fl(r),s=Hl(i);let o=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=lo(o)),[o,lo(o)]}function L7(r){const e=lo(r);return[Ql(r),e,Ql(e)]}function Ql(r){return r.replace(/start|end/g,e=>T7[e])}function N7(r,e,t){const n=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(r){case"top":case"bottom":return t?e?i:n:e?n:i;case"left":case"right":return e?s:o;default:return[]}}function B7(r,e,t,n){const i=Ti(r);let s=N7(Ir(r),t==="start",n);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(Ql)))),s}function lo(r){return r.replace(/left|right|bottom|top/g,e=>P7[e])}function I7(r){return{top:0,right:0,bottom:0,left:0,...r}}function uf(r){return typeof r!="number"?I7(r):{top:r,right:r,bottom:r,left:r}}function co(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function hf(r,e,t){let{reference:n,floating:i}=r;const s=Vl(e),o=Fl(e),a=Hl(o),l=Ir(e),c=s==="y",u=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let f;switch(l){case"top":f={x:u,y:n.y-i.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-i.width,y:h};break;default:f={x:n.x,y:n.y}}switch(Ti(e)){case"start":f[o]-=d*(t&&c?-1:1);break;case"end":f[o]+=d*(t&&c?-1:1);break}return f}const H7=async(r,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=t,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:r,floating:e,strategy:i}),{x:u,y:h}=hf(c,n,l),d=n,f={},p=0;for(let m=0;m<a.length;m++){const{name:g,fn:y}=a[m],{x:C,y:w,data:x,reset:b}=await y({x:u,y:h,initialPlacement:n,placement:d,strategy:i,middlewareData:f,rects:c,platform:o,elements:{reference:r,floating:e}});u=C??u,h=w??h,f={...f,[g]:{...f[g],...x}},b&&p<=50&&(p++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(c=b.rects===!0?await o.getElementRects({reference:r,floating:e,strategy:i}):b.rects),{x:u,y:h}=hf(c,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:i,middlewareData:f}};async function V7(r,e){var t;e===void 0&&(e={});const{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=r,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=ao(e,r),p=uf(f),m=a[d?h==="floating"?"reference":"floating":h],g=co(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(m)))==null||t?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y=h==="floating"?{...o.floating,x:n,y:i}:o.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},x=co(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:C,strategy:l}):y);return{top:(g.top-x.top+p.top)/w.y,bottom:(x.bottom-g.bottom+p.bottom)/w.y,left:(g.left-x.left+p.left)/w.x,right:(x.right-g.right+p.right)/w.x}}const F7=r=>({name:"arrow",options:r,async fn(e){const{x:t,y:n,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=ao(r,e)||{};if(c==null)return{};const h=uf(u),d={x:t,y:n},f=Fl(i),p=Hl(f),m=await o.getDimensions(c),g=f==="y",y=g?"top":"left",C=g?"bottom":"right",w=g?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[f]-d[f]-s.floating[p],b=d[f]-s.reference[f],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let k=S?S[w]:0;(!k||!await(o.isElement==null?void 0:o.isElement(S)))&&(k=a.floating[w]||s.floating[p]);const D=x/2-b/2,P=k/2-m[p]/2-1,j=Il(h[y],P),E=Il(h[C],P),T=j,B=k-m[p]-E,A=k/2-m[p]/2+D,N=E7(T,A,B),R=!l.arrow&&Ti(i)!=null&&A!==N&&s.reference[p]/2-(A<T?j:E)-m[p]/2<0,q=R?A<T?A-T:A-B:0;return{[f]:d[f]+q,data:{[f]:N,centerOffset:A-N-q,...R&&{alignmentOffset:q}},reset:R}}}),Q7=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,n;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=ao(r,e);if((t=s.arrow)!=null&&t.alignmentOffset)return{};const y=Ir(i),C=Ir(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=d||(C||!m?[lo(a)]:L7(a));!d&&p!=="none"&&x.push(...B7(a,m,p,w));const b=[a,...x],S=await V7(e,g),k=[];let D=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&k.push(S[y]),h){const T=R7(i,o,w);k.push(S[T[0]],S[T[1]])}if(D=[...D,{placement:i,overflows:k}],!k.every(T=>T<=0)){var P,j;const T=(((P=s.flip)==null?void 0:P.index)||0)+1,B=b[T];if(B)return{data:{index:T,overflows:D},reset:{placement:B}};let A=(j=D.filter(N=>N.overflows[0]<=0).sort((N,R)=>N.overflows[1]-R.overflows[1])[0])==null?void 0:j.placement;if(!A)switch(f){case"bestFit":{var E;const N=(E=D.map(R=>[R.placement,R.overflows.filter(q=>q>0).reduce((q,$)=>q+$,0)]).sort((R,q)=>R[1]-q[1])[0])==null?void 0:E[0];N&&(A=N);break}case"initialPlacement":A=a;break}if(i!==A)return{reset:{placement:A}}}return{}}}};async function W7(r,e){const{placement:t,platform:n,elements:i}=r,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Ir(t),a=Ti(t),l=Vl(t)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,h=ao(e,r);let{mainAxis:d,crossAxis:f,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*u,y:d*c}:{x:d*c,y:f*u}}const j7=function(r){return{name:"offset",options:r,async fn(e){var t,n;const{x:i,y:s,placement:o,middlewareData:a}=e,l=await W7(e,r);return o===((t=a.offset)==null?void 0:t.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}};function df(r){const e=ut(r);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Ft(r),s=i?r.offsetWidth:t,o=i?r.offsetHeight:n,a=so(t)!==s||so(n)!==o;return a&&(t=s,n=o),{width:t,height:n,$:a}}function Wl(r){return Je(r)?r:r.contextElement}function Hr(r){const e=Wl(r);if(!Ft(e))return An(1);const t=e.getBoundingClientRect(),{width:n,height:i,$:s}=df(e);let o=(s?so(t.width):t.width)/n,a=(s?so(t.height):t.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const q7=An(0);function ff(r){const e=ct(r);return!Nl()||!e.visualViewport?q7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function z7(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==ct(r)?!1:e}function ir(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=r.getBoundingClientRect(),s=Wl(r);let o=An(1);e&&(n?Je(n)&&(o=Hr(n)):o=Hr(r));const a=z7(s,t,n)?ff(s):An(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,h=i.height/o.y;if(s){const d=ct(s),f=n&&Je(n)?ct(n):n;let p=d.frameElement;for(;p&&n&&f!==d;){const m=Hr(p),g=p.getBoundingClientRect(),y=ut(p),C=g.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,w=g.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,h*=m.y,l+=C,c+=w,p=ct(p).frameElement}}return co({width:u,height:h,x:l,y:c})}const Y7=[":popover-open",":modal"];function pf(r){let e=!1,t=0,n=0;function i(s){try{e=e||r.matches(s)}catch{}}if(Y7.forEach(s=>{i(s)}),e){const s=lf(r);if(s){const o=s.getBoundingClientRect();t=o.x,n=o.y}}return[e,t,n]}function $7(r){let{elements:e,rect:t,offsetParent:n,strategy:i}=r;const s=pn(n),[o]=e?pf(e.floating):[!1];if(n===s||o)return t;let a={scrollLeft:0,scrollTop:0},l=An(1);const c=An(0),u=Ft(n);if((u||!u&&i!=="fixed")&&((En(n)!=="body"||Mi(s))&&(a=io(n)),Ft(n))){const h=ir(n);l=Hr(n),c.x=h.x+n.clientLeft,c.y=h.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+c.x,y:t.y*l.y-a.scrollTop*l.y+c.y}}function U7(r){return Array.from(r.getClientRects())}function mf(r){return ir(pn(r)).left+io(r).scrollLeft}function Z7(r){const e=pn(r),t=io(r),n=r.ownerDocument.body,i=Br(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=Br(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+mf(r);const a=-t.scrollTop;return ut(n).direction==="rtl"&&(o+=Br(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function X7(r,e){const t=ct(r),n=pn(r),i=t.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=Nl();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function K7(r,e){const t=ir(r,!0,e==="fixed"),n=t.top+r.clientTop,i=t.left+r.clientLeft,s=Ft(r)?Hr(r):An(1),o=r.clientWidth*s.x,a=r.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function gf(r,e,t){let n;if(e==="viewport")n=X7(r,t);else if(e==="document")n=Z7(pn(r));else if(Je(e))n=K7(e,t);else{const i=ff(r);n={...e,x:e.x-i.x,y:e.y-i.y}}return co(n)}function yf(r,e){const t=Nr(r);return t===e||!Je(t)||ro(t)?!1:ut(t).position==="fixed"||yf(t,e)}function G7(r,e){const t=e.get(r);if(t)return t;let n=Pi(r,[],!1).filter(a=>Je(a)&&En(a)!=="body"),i=null;const s=ut(r).position==="fixed";let o=s?Nr(r):r;for(;Je(o)&&!ro(o);){const a=ut(o),l=Ll(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&i&&["absolute","fixed"].includes(i.position)||Mi(o)&&!l&&yf(r,o))?n=n.filter(c=>c!==o):i=a,o=Nr(o)}return e.set(r,n),n}function J7(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r;const s=[...t==="clippingAncestors"?G7(e,this._c):[].concat(t),n],o=s[0],a=s.reduce((l,c)=>{const u=gf(e,c,i);return l.top=Br(u.top,l.top),l.right=Bl(u.right,l.right),l.bottom=Bl(u.bottom,l.bottom),l.left=Br(u.left,l.left),l},gf(e,o,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ey(r){const{width:e,height:t}=df(r);return{width:e,height:t}}function ty(r,e,t,n){const i=Ft(e),s=pn(e),o=t==="fixed",a=ir(r,!0,o,e);let l={scrollLeft:0,scrollTop:0};const c=An(0);if(i||!i&&!o)if((En(e)!=="body"||Mi(s))&&(l=io(e)),i){const m=ir(e,!0,o,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else s&&(c.x=mf(s));let u=a.left+l.scrollLeft-c.x,h=a.top+l.scrollTop-c.y;const[d,f,p]=pf(n);return d&&(u+=f,h+=p,i&&(u+=e.clientLeft,h+=e.clientTop)),{x:u,y:h,width:a.width,height:a.height}}function bf(r,e){return!Ft(r)||ut(r).position==="fixed"?null:e?e(r):r.offsetParent}function vf(r,e){const t=ct(r);if(!Ft(r))return t;let n=bf(r,e);for(;n&&O7(n)&&ut(n).position==="static";)n=bf(n,e);return n&&(En(n)==="html"||En(n)==="body"&&ut(n).position==="static"&&!Ll(n))?t:n||lf(r)||t}const ny=async function(r){const e=this.getOffsetParent||vf,t=this.getDimensions;return{reference:ty(r.reference,await e(r.floating),r.strategy,r.floating),floating:{x:0,y:0,...await t(r.floating)}}};function ry(r){return ut(r).direction==="rtl"}const iy={convertOffsetParentRelativeRectToViewportRelativeRect:$7,getDocumentElement:pn,getClippingRect:J7,getOffsetParent:vf,getElementRects:ny,getClientRects:U7,getDimensions:ey,getScale:Hr,isElement:Je,isRTL:ry};function sy(r,e){let t=null,n;const i=pn(r);function s(){var a;clearTimeout(n),(a=t)==null||a.disconnect(),t=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:h,height:d}=r.getBoundingClientRect();if(a||e(),!h||!d)return;const f=oo(u),p=oo(i.clientWidth-(c+h)),m=oo(i.clientHeight-(u+d)),g=oo(c),y={rootMargin:-f+"px "+-p+"px "+-m+"px "+-g+"px",threshold:Br(0,Bl(1,l))||1};let C=!0;function w(x){const b=x[0].intersectionRatio;if(b!==l){if(!C)return o();b?o(!1,b):n=setTimeout(()=>{o(!1,1e-7)},100)}C=!1}try{t=new IntersectionObserver(w,{...y,root:i.ownerDocument})}catch{t=new IntersectionObserver(w,y)}t.observe(r)}return o(!0),s}function oy(r,e,t,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Wl(r),u=i||s?[...c?Pi(c):[],...Pi(e)]:[];u.forEach(y=>{i&&y.addEventListener("scroll",t,{passive:!0}),s&&y.addEventListener("resize",t)});const h=c&&a?sy(c,t):null;let d=-1,f=null;o&&(f=new ResizeObserver(y=>{let[C]=y;C&&C.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(e)})),t()}),c&&!l&&f.observe(c),f.observe(e));let p,m=l?ir(r):null;l&&g();function g(){const y=ir(r);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&t(),m=y,p=requestAnimationFrame(g)}return t(),()=>{var y;u.forEach(C=>{i&&C.removeEventListener("scroll",t),s&&C.removeEventListener("resize",t)}),h==null||h(),(y=f)==null||y.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const ay=Q7,Cf=F7,ly=(r,e,t)=>{const n=new Map,i={platform:iy,...t},s={...i.platform,_c:n};return H7(r,e,{...i,platform:s})};var uo=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ho(r,e){if(r===e)return!0;if(typeof r!=typeof e)return!1;if(typeof r=="function"&&r.toString()===e.toString())return!0;let t,n,i;if(r&&e&&typeof r=="object"){if(Array.isArray(r)){if(t=r.length,t!==e.length)return!1;for(n=t;n--!==0;)if(!ho(r[n],e[n]))return!1;return!0}if(i=Object.keys(r),t=i.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=t;n--!==0;){const s=i[n];if(!(s==="_owner"&&r.$$typeof)&&!ho(r[s],e[s]))return!1}return!0}return r!==r&&e!==e}function wf(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function kf(r,e){const t=wf(r);return Math.round(e*t)/t}function jl(r){const e=Y.useRef(r);return uo(()=>{e.current=r}),e}function cy(r){r===void 0&&(r={});const{placement:e="bottom",strategy:t="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=r,[u,h]=Y.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=Y.useState(n);ho(d,n)||f(n);const[p,m]=Y.useState(null),[g,y]=Y.useState(null),C=Y.useCallback($=>{$!==S.current&&(S.current=$,m($))},[]),w=Y.useCallback($=>{$!==k.current&&(k.current=$,y($))},[]),x=s||p,b=o||g,S=Y.useRef(null),k=Y.useRef(null),D=Y.useRef(u),P=l!=null,j=jl(l),E=jl(i),T=jl(c),B=Y.useCallback(()=>{if(!S.current||!k.current)return;const $={placement:e,strategy:t,middleware:d};E.current&&($.platform=E.current),ly(S.current,k.current,$).then(X=>{const De={...X,isPositioned:T.current!==!1};A.current&&!ho(D.current,De)&&(D.current=De,p2.flushSync(()=>{h(De)}))})},[d,e,t,E,T]);uo(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h($=>({...$,isPositioned:!1})))},[c]);const A=Y.useRef(!1);uo(()=>(A.current=!0,()=>{A.current=!1}),[]),uo(()=>{if(x&&(S.current=x),b&&(k.current=b),x&&b){if(j.current)return j.current(x,b,B);B()}},[x,b,B,j,P]);const N=Y.useMemo(()=>({reference:S,floating:k,setReference:C,setFloating:w}),[C,w]),R=Y.useMemo(()=>({reference:x,floating:b}),[x,b]),q=Y.useMemo(()=>{const $={position:t,left:0,top:0};if(!R.floating)return $;const X=kf(R.floating,u.x),De=kf(R.floating,u.y);return a?{...$,transform:"translate("+X+"px, "+De+"px)",...wf(R.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:X,top:De}},[t,a,R.floating,u.x,u.y]);return Y.useMemo(()=>({...u,update:B,refs:N,elements:R,floatingStyles:q}),[u,B,N,R,q])}const uy=r=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:r,fn(t){const{element:n,padding:i}=typeof r=="function"?r(t):r;return n&&e(n)?n.current!=null?Cf({element:n.current,padding:i}).fn(t):{}:n?Cf({element:n,padding:i}).fn(t):{}}}},hy=(r,e)=>({...j7(r),options:[r,e]}),dy=(r,e)=>({...ay(r),options:[r,e]}),fy=(r,e)=>({...uy(r),options:[r,e]}),xf={...Y},py=xf.useInsertionEffect,my=py||(r=>r());function gy(r){const e=Y.useRef(()=>{});return my(()=>{e.current=r}),Y.useCallback(function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.current==null?void 0:e.current(...n)},[])}var fo=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ql(){return ql=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},ql.apply(this,arguments)}let Sf=!1,yy=0;const Of=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+yy++;function by(){const[r,e]=Y.useState(()=>Sf?Of():void 0);return fo(()=>{r==null&&e(Of())},[]),Y.useEffect(()=>{Sf=!0},[]),r}const vy=xf.useId,_f=vy||by,Cy=Y.forwardRef(function(r,e){const{context:{placement:t,elements:{floating:n},middlewareData:{arrow:i,shift:s}},width:o=14,height:a=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:h,d,style:{transform:f,...p}={},...m}=r,g=_f(),[y,C]=Y.useState(!1);if(fo(()=>{n&&ut(n).direction==="rtl"&&C(!0)},[n]),!n)return null;const[w,x]=t.split("-"),b=w==="top"||w==="bottom";let S=u;(b&&s!=null&&s.x||!b&&s!=null&&s.y)&&(S=null);const k=c*2,D=k/2,P=o/2*(l/-8+1),j=a/2*l/4,E=!!d,T=S&&x==="end"?"bottom":"top";let B=S&&x==="end"?"right":"left";S&&y&&(B=x==="end"?"left":"right");const A=(i==null?void 0:i.x)!=null?S||i.x:"",N=(i==null?void 0:i.y)!=null?S||i.y:"",R=d||"M0,0"+(" H"+o)+(" L"+(o-P)+","+(a-j))+(" Q"+o/2+","+a+" "+P+","+(a-j))+" Z",q={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[w];return Y.createElement("svg",ql({},m,{"aria-hidden":!0,ref:e,width:E?o:o+k,height:o,viewBox:"0 0 "+o+" "+(a>o?a:o),style:{position:"absolute",pointerEvents:"none",[B]:A,[T]:N,[w]:b||E?"100%":"calc(100% - "+k/2+"px)",transform:[q,f].filter($=>!!$).join(" "),...p}}),k>0&&Y.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:h,strokeWidth:k+(d?0:1),d:R}),Y.createElement("path",{stroke:k&&!d?m.fill:"none",d:R}),Y.createElement("clipPath",{id:g},Y.createElement("rect",{x:-D,y:D*(E?-1:1),width:o+k,height:o})))});function wy(){const r=new Map;return{emit(e,t){var n;(n=r.get(e))==null||n.forEach(i=>i(t))},on(e,t){r.set(e,[...r.get(e)||[],t])},off(e,t){var n;r.set(e,((n=r.get(e))==null?void 0:n.filter(i=>i!==t))||[])}}}const ky=Y.createContext(null),xy=Y.createContext(null),Sy=()=>{var r;return((r=Y.useContext(ky))==null?void 0:r.id)||null},Oy=()=>Y.useContext(xy);function _y(r){const{open:e=!1,onOpenChange:t,elements:n}=r,i=_f(),s=Y.useRef({}),[o]=Y.useState(()=>wy()),a=Sy()!=null,[l,c]=Y.useState(n.reference),u=gy((f,p,m)=>{s.current.openEvent=f?p:void 0,o.emit("openchange",{open:f,event:p,reason:m,nested:a}),t==null||t(f,p,m)}),h=Y.useMemo(()=>({setPositionReference:c}),[]),d=Y.useMemo(()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference}),[l,n.reference,n.floating]);return Y.useMemo(()=>({dataRef:s,open:e,onOpenChange:u,elements:d,events:o,floatingId:i,refs:h}),[e,u,d,o,i,h])}function Dy(r){r===void 0&&(r={});const{nodeId:e}=r,t=_y({...r,elements:{reference:null,floating:null,...r.elements}}),n=r.rootContext||t,i=n.elements,[s,o]=Y.useState(null),[a,l]=Y.useState(null),c=(i==null?void 0:i.reference)||s,u=Y.useRef(null),h=Oy();fo(()=>{c&&(u.current=c)},[c]);const d=cy({...r,elements:{...i,...a&&{reference:a}}}),f=Y.useCallback(C=>{const w=Je(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;l(w),d.refs.setReference(w)},[d.refs]),p=Y.useCallback(C=>{(Je(C)||C===null)&&(u.current=C,o(C)),(Je(d.refs.reference.current)||d.refs.reference.current===null||C!==null&&!Je(C))&&d.refs.setReference(C)},[d.refs]),m=Y.useMemo(()=>({...d.refs,setReference:p,setPositionReference:f,domReference:u}),[d.refs,p,f]),g=Y.useMemo(()=>({...d.elements,domReference:c}),[d.elements,c]),y=Y.useMemo(()=>({...d,...n,refs:m,elements:g,nodeId:e}),[d,m,g,e,n]);return fo(()=>{n.dataRef.current.floatingContext=y;const C=h==null?void 0:h.nodesRef.current.find(w=>w.id===e);C&&(C.context=y)}),Y.useMemo(()=>({...d,context:y,refs:m,elements:g}),[d,m,g,y])}/*!
|
|
537
537
|
react-datepicker v7.3.0
|
|
538
538
|
https://github.com/Hacker0x01/react-datepicker
|
|
539
539
|
Released under the MIT License.
|
|
540
|
-
*/var Ur=function(t,r){return Ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])},Ur(t,r)};function ce(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Ur(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var Z=function(){return Z=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Z.apply(this,arguments)};function Ae(t,r,n){if(n||arguments.length===2)for(var e=0,o=r.length,a;e<o;e++)(a||!(e in r))&&(a||(a=Array.prototype.slice.call(r,0,e)),a[e]=r[e]);return t.concat(a||Array.prototype.slice.call(r))}var Nu=function(t){var r=t.showTimeSelectOnly,n=r===void 0?!1:r,e=t.showTime,o=e===void 0?!1:e,a=t.className,i=t.children,s=n?"Choose Time":"Choose Date".concat(o?" and Time":"");return g.createElement("div",{className:a,role:"dialog","aria-label":s,"aria-modal":"true"},i)},E;(function(t){t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.PageUp="PageUp",t.PageDown="PageDown",t.Home="Home",t.End="End",t.Enter="Enter",t.Space=" ",t.Tab="Tab",t.Escape="Escape",t.Backspace="Backspace",t.X="x"})(E||(E={}));function oa(){var t=typeof window<"u"?window:globalThis;return t}var $t=12,Ru=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function X(t){if(t==null)return new Date;var r=typeof t=="string"?d0(t):L(t);return $e(r)?r:new Date}function Hu(t,r,n,e,o){var a,i=null,s=xt(n)||xt(Kt()),c=!0;if(Array.isArray(r))return r.forEach(function(u){var d=Nr(t,u,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});e&&(c=$e(d,o)&&t===J(d,u,n)),$e(d,o)&&c&&(i=d)}),i;if(i=Nr(t,r,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),e)c=$e(i)&&t===J(i,r,n);else if(!$e(i)){var l=((a=r.match(Ru))!==null&&a!==void 0?a:[]).map(function(u){var d=u[0];if(d==="p"||d==="P"){var p=kn[d];return s?p(u,s.formatLong):d}return u}).join("");t.length>0&&(i=Nr(t,l.slice(0,t.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),$e(i)||(i=new Date(t))}return $e(i)&&c?i:null}function $e(t,r){return Dn(t)&&!pt(t,r??new Date("1/1/1800"))}function J(t,r,n){if(n==="en")return D1(t,r,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var e=n?xt(n):void 0;return n&&!e&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!e&&Kt()&&xt(Kt())&&(e=xt(Kt())),D1(t,r,{locale:e,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Se(t,r){var n=r.dateFormat,e=r.locale,o=Array.isArray(n)&&n.length>0?n[0]:n;return t&&J(t,o,e)||""}function Au(t,r,n){if(!t)return"";var e=Se(t,n),o=r?Se(r,n):"";return"".concat(e," - ").concat(o)}function Iu(t,r){if(!(t!=null&&t.length))return"";var n=t[0]?Se(t[0],r):"";if(t.length===1)return n;if(t.length===2&&t[1]){var e=Se(t[1],r);return"".concat(n,", ").concat(e)}var o=t.length-1;return"".concat(n," (+").concat(o,")")}function zr(t,r){var n=r.hour,e=n===void 0?0:n,o=r.minute,a=o===void 0?0:o,i=r.second,s=i===void 0?0:i;return Mn(En(xn(t,s),a),e)}function Vu(t){return Mr(t)}function Fu(t,r){return J(t,"ddd",r)}function Bn(t){return ct(t)}function nt(t,r,n){var e=xt(r||Kt());return We(t,{locale:e,weekStartsOn:n})}function rt(t){return R1(t)}function Qt(t){return wn(t)}function aa(t){return Tr(t)}function ia(){return ct(X())}function sa(t){return p1(t)}function Bu(t){return gc(t)}function Ie(t,r){return t&&r?hl(t,r):!t&&!r}function he(t,r){return t&&r?pl(t,r):!t&&!r}function Yn(t,r){return t&&r?fl(t,r):!t&&!r}function Y(t,r){return t&&r?dl(t,r):!t&&!r}function ht(t,r){return t&&r?ul(t,r):!t&&!r}function Zn(t,r,n){var e,o=ct(r),a=p1(n);try{e=jt(t,{start:o,end:a})}catch{e=!1}return e}function Kt(){var t=oa();return t.__localeId__}function xt(t){if(typeof t=="string"){var r=oa();return r.__localeData__?r.__localeData__[t]:void 0}else return t}function Yu(t,r,n){return r(J(t,"EEEE",n))}function Zu(t,r){return J(t,"EEEEEE",r)}function ju(t,r){return J(t,"EEE",r)}function $r(t,r){return J(ve(X(),t),"LLLL",r)}function ca(t,r){return J(ve(X(),t),"LLL",r)}function Wu(t,r){return J(bt(X(),t),"QQQ",r)}function ot(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.excludeDateIntervals,s=n.includeDates,c=n.includeDateIntervals,l=n.filterDate;return Xt(t,{minDate:e,maxDate:o})||a&&a.some(function(u){var d;return u instanceof Date?Y(t,u):Y(t,(d=u.date)!==null&&d!==void 0?d:new Date)})||i&&i.some(function(u){var d=u.start,p=u.end;return jt(t,{start:d,end:p})})||s&&!s.some(function(u){return Y(t,u)})||c&&!c.some(function(u){var d=u.start,p=u.end;return jt(t,{start:d,end:p})})||l&&!l(X(t))||!1}function Qr(t,r){var n=r===void 0?{}:r,e=n.excludeDates,o=n.excludeDateIntervals;return o&&o.length>0?o.some(function(a){var i=a.start,s=a.end;return jt(t,{start:i,end:s})}):e&&e.some(function(a){var i;return a instanceof Date?Y(t,a):Y(t,(i=a.date)!==null&&i!==void 0?i:new Date)})||!1}function la(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate;return Xt(t,{minDate:e?R1(e):void 0,maxDate:o?hc(o):void 0})||(a==null?void 0:a.some(function(c){return he(t,c instanceof Date?c:c.date)}))||i&&!i.some(function(c){return he(t,c)})||s&&!s(X(t))||!1}function Kr(t,r,n,e){var o=F(t),a=fe(t),i=F(r),s=fe(r),c=F(e);return o===i&&o===c?a<=n&&n<=s:o<i?c===o&&a<=n||c===i&&s>=n||c<i&&c>o:!1}function qu(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates;return Xt(t,{minDate:e,maxDate:o})||a&&a.some(function(s){return he(s instanceof Date?s:s.date,t)})||i&&!i.some(function(s){return he(s,t)})||!1}function Xr(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate;return Xt(t,{minDate:e,maxDate:o})||(a==null?void 0:a.some(function(c){return Yn(t,c instanceof Date?c:c.date)}))||i&&!i.some(function(c){return Yn(t,c)})||s&&!s(X(t))||!1}function Gr(t,r,n){if(!r||!n||!Dn(r)||!Dn(n))return!1;var e=F(r),o=F(n);return e<=t&&o>=t}function Jr(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.maxDate,a=n.excludeDates,i=n.includeDates,s=n.filterDate,c=new Date(t,0,1);return Xt(c,{minDate:e?wn(e):void 0,maxDate:o?f1(o):void 0})||(a==null?void 0:a.some(function(l){return Ie(c,l instanceof Date?l:l.date)}))||i&&!i.some(function(l){return Ie(c,l)})||s&&!s(X(c))||!1}function eo(t,r,n,e){var o=F(t),a=lt(t),i=F(r),s=lt(r),c=F(e);return o===i&&o===c?a<=n&&n<=s:o<i?c===o&&a<=n||c===i&&s>=n||c<i&&c>o:!1}function Xt(t,r){var n,e=r===void 0?{}:r,o=e.minDate,a=e.maxDate;return(n=o&&Bt(t,o)<0||a&&Bt(t,a)>0)!==null&&n!==void 0?n:!1}function ua(t,r){return r.some(function(n){return Te(n)===Te(t)&&Pe(n)===Pe(t)&&Ue(n)===Ue(t)})}function da(t,r){var n=r===void 0?{}:r,e=n.excludeTimes,o=n.includeTimes,a=n.filterTime;return e&&ua(t,e)||o&&!ua(t,o)||a&&!a(t)||!1}function pa(t,r){var n=r.minTime,e=r.maxTime;if(!n||!e)throw new Error("Both minTime and maxTime props required");var o=X();o=Mn(o,Te(t)),o=En(o,Pe(t)),o=xn(o,Ue(t));var a=X();a=Mn(a,Te(n)),a=En(a,Pe(n)),a=xn(a,Ue(n));var i=X();i=Mn(i,Te(e)),i=En(i,Pe(e)),i=xn(i,Ue(e));var s;try{s=!jt(o,{start:a,end:i})}catch{s=!1}return s}function fa(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.includeDates,a=wt(t,1);return e&&_n(e,a)>0||o&&o.every(function(i){return _n(i,a)>0})||!1}function ha(t,r){var n=r===void 0?{}:r,e=n.maxDate,o=n.includeDates,a=Ee(t,1);return e&&_n(a,e)>0||o&&o.every(function(i){return _n(a,i)>0})||!1}function Uu(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.includeDates,a=wn(t),i=H1(a,1);return e&&yn(e,i)>0||o&&o.every(function(s){return yn(s,i)>0})||!1}function zu(t,r){var n=r===void 0?{}:r,e=n.maxDate,o=n.includeDates,a=f1(t),i=Dr(a,1);return e&&yn(i,e)>0||o&&o.every(function(s){return yn(i,s)>0})||!1}function ma(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.includeDates,a=kt(t,1);return e&&bn(e,a)>0||o&&o.every(function(i){return bn(i,a)>0})||!1}function $u(t,r){var n=r===void 0?{}:r,e=n.minDate,o=n.yearItemNumber,a=o===void 0?$t:o,i=Qt(kt(t,a)),s=at(i,a).endPeriod,c=e&&F(e);return c&&c>s||!1}function ga(t,r){var n=r===void 0?{}:r,e=n.maxDate,o=n.includeDates,a=je(t,1);return e&&bn(a,e)>0||o&&o.every(function(i){return bn(a,i)>0})||!1}function Qu(t,r){var n=r===void 0?{}:r,e=n.maxDate,o=n.yearItemNumber,a=o===void 0?$t:o,i=je(t,a),s=at(i,a).startPeriod,c=e&&F(e);return c&&c<s||!1}function Ca(t){var r=t.minDate,n=t.includeDates;if(n&&r){var e=n.filter(function(o){return Bt(o,r)>=0});return E1(e)}else return n?E1(n):r}function va(t){var r=t.maxDate,n=t.includeDates;if(n&&r){var e=n.filter(function(o){return Bt(o,r)<=0});return M1(e)}else return n?M1(n):r}function _a(t,r){var n;t===void 0&&(t=[]),r===void 0&&(r="react-datepicker__day--highlighted");for(var e=new Map,o=0,a=t.length;o<a;o++){var i=t[o];if(qe(i)){var s=J(i,"MM.dd.yyyy"),c=e.get(s)||[];c.includes(r)||(c.push(r),e.set(s,c))}else if(typeof i=="object"){var l=Object.keys(i),u=(n=l[0])!==null&&n!==void 0?n:"",d=i[u];if(typeof u=="string"&&Array.isArray(d))for(var p=0,f=d.length;p<f;p++){var h=d[p];if(h){var s=J(h,"MM.dd.yyyy"),c=e.get(s)||[];c.includes(u)||(c.push(u),e.set(s,c))}}}}return e}function Ku(t,r){return t.length!==r.length?!1:t.every(function(n,e){return n===r[e]})}function Xu(t,r){t===void 0&&(t=[]),r===void 0&&(r="react-datepicker__day--holidays");var n=new Map;return t.forEach(function(e){var o=e.date,a=e.holidayName;if(qe(o)){var i=J(o,"MM.dd.yyyy"),s=n.get(i)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===r&&Ku(s.holidayNames,[a]))){s.className=r;var c=s.holidayNames;s.holidayNames=c?Ae(Ae([],c,!0),[a],!1):[a],n.set(i,s)}}}),n}function Gu(t,r,n,e,o){for(var a=o.length,i=[],s=0;s<a;s++){var c=t,l=o[s];l&&(c=pc(c,Te(l)),c=kr(c,Pe(l)),c=fc(c,Ue(l)));var u=kr(t,(n+1)*e);Je(c,r)&&pt(c,u)&&l!=null&&i.push(l)}return i}function ya(t){return t<10?"0".concat(t):"".concat(t)}function at(t,r){r===void 0&&(r=$t);var n=Math.ceil(F(t)/r)*r,e=n-(r-1);return{startPeriod:e,endPeriod:n}}function Ju(t){var r=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),24);return Math.round((+n-+r)/36e5)}function ba(t){var r=t.getSeconds(),n=t.getMilliseconds();return L(t.getTime()-r*1e3-n)}function e2(t,r){return ba(t).getTime()===ba(r).getTime()}function wa(t){if(!qe(t))throw new Error("Invalid date");var r=new Date(t);return r.setHours(0,0,0,0),r}function ka(t,r){if(!qe(t)||!qe(r))throw new Error("Invalid date received");var n=wa(t),e=wa(r);return pt(n,e)}function Da(t){return t.key===E.Space}var t2=function(t){ce(r,t);function r(n){var e=t.call(this,n)||this;return e.onTimeChange=function(o){var a,i;e.setState({time:o});var s=e.props.date,c=s instanceof Date&&!isNaN(+s),l=c?s:new Date;if(o!=null&&o.includes(":")){var u=o.split(":"),d=u[0],p=u[1];l.setHours(Number(d)),l.setMinutes(Number(p))}(i=(a=e.props).onChange)===null||i===void 0||i.call(a,l)},e.renderTimeInput=function(){var o=e.state.time,a=e.props,i=a.date,s=a.timeString,c=a.customTimeInput;return c?g.cloneElement(c,{date:i,value:o,onChange:e.onTimeChange}):g.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(l){e.onTimeChange(l.target.value||s)}})},e.state={time:e.props.timeString},e}return r.getDerivedStateFromProps=function(n,e){return n.timeString!==e.time?{time:n.timeString}:null},r.prototype.render=function(){return g.createElement("div",{className:"react-datepicker__input-time-container"},g.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),g.createElement("div",{className:"react-datepicker-time__input-container"},g.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},r}(g.Component),n2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.dayEl=g.createRef(),n.handleClick=function(e){!n.isDisabled()&&n.props.onClick&&n.props.onClick(e)},n.handleMouseEnter=function(e){!n.isDisabled()&&n.props.onMouseEnter&&n.props.onMouseEnter(e)},n.handleOnKeyDown=function(e){var o,a,i=e.key;i===E.Space&&(e.preventDefault(),e.key=E.Enter),(a=(o=n.props).handleOnKeyDown)===null||a===void 0||a.call(o,e)},n.isSameDay=function(e){return Y(n.props.day,e)},n.isKeyboardSelected=function(){var e;if(n.props.disabledKeyboardNavigation)return!1;var o=n.props.selectsMultiple?(e=n.props.selectedDates)===null||e===void 0?void 0:e.some(function(i){return n.isSameDayOrWeek(i)}):n.isSameDayOrWeek(n.props.selected),a=n.props.preSelection&&n.isDisabled(n.props.preSelection);return!o&&n.isSameDayOrWeek(n.props.preSelection)&&!a},n.isDisabled=function(e){return e===void 0&&(e=n.props.day),ot(e,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(){return Qr(n.props.day,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.isStartOfWeek=function(){return Y(n.props.day,nt(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameWeek=function(e){return n.props.showWeekPicker&&Y(e,nt(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameDayOrWeek=function(e){return n.isSameDay(e)||n.isSameWeek(e)},n.getHighLightedClass=function(){var e=n.props,o=e.day,a=e.highlightDates;if(!a)return!1;var i=J(o,"MM.dd.yyyy");return a.get(i)},n.getHolidaysClass=function(){var e,o=n.props,a=o.day,i=o.holidays;if(!i)return[void 0];var s=J(a,"MM.dd.yyyy");return i.has(s)?[(e=i.get(s))===null||e===void 0?void 0:e.className]:[void 0]},n.isInRange=function(){var e=n.props,o=e.day,a=e.startDate,i=e.endDate;return!a||!i?!1:Zn(o,a,i)},n.isInSelectingRange=function(){var e,o=n.props,a=o.day,i=o.selectsStart,s=o.selectsEnd,c=o.selectsRange,l=o.selectsDisabledDaysInRange,u=o.startDate,d=o.endDate,p=(e=n.props.selectingDate)!==null&&e!==void 0?e:n.props.preSelection;return!(i||s||c)||!p||!l&&n.isDisabled()?!1:i&&d&&(pt(p,d)||ht(p,d))?Zn(a,p,d):s&&u&&(Je(p,u)||ht(p,u))||c&&u&&!d&&(Je(p,u)||ht(p,u))?Zn(a,u,p):!1},n.isSelectingRangeStart=function(){var e;if(!n.isInSelectingRange())return!1;var o=n.props,a=o.day,i=o.startDate,s=o.selectsStart,c=(e=n.props.selectingDate)!==null&&e!==void 0?e:n.props.preSelection;return s?Y(a,c):Y(a,i)},n.isSelectingRangeEnd=function(){var e;if(!n.isInSelectingRange())return!1;var o=n.props,a=o.day,i=o.endDate,s=o.selectsEnd,c=o.selectsRange,l=(e=n.props.selectingDate)!==null&&e!==void 0?e:n.props.preSelection;return s||c?Y(a,l):Y(a,i)},n.isRangeStart=function(){var e=n.props,o=e.day,a=e.startDate,i=e.endDate;return!a||!i?!1:Y(a,o)},n.isRangeEnd=function(){var e=n.props,o=e.day,a=e.startDate,i=e.endDate;return!a||!i?!1:Y(i,o)},n.isWeekend=function(){var e=ll(n.props.day);return e===0||e===6},n.isAfterMonth=function(){return n.props.month!==void 0&&(n.props.month+1)%12===fe(n.props.day)},n.isBeforeMonth=function(){return n.props.month!==void 0&&(fe(n.props.day)+1)%12===n.props.month},n.isCurrentDay=function(){return n.isSameDay(X())},n.isSelected=function(){var e;return n.props.selectsMultiple?(e=n.props.selectedDates)===null||e===void 0?void 0:e.some(function(o){return n.isSameDayOrWeek(o)}):n.isSameDayOrWeek(n.props.selected)},n.getClassNames=function(e){var o=n.props.dayClassName?n.props.dayClassName(e):void 0;return se("react-datepicker__day",o,"react-datepicker__day--"+Fu(n.props.day),{"react-datepicker__day--disabled":n.isDisabled(),"react-datepicker__day--excluded":n.isExcluded(),"react-datepicker__day--selected":n.isSelected(),"react-datepicker__day--keyboard-selected":n.isKeyboardSelected(),"react-datepicker__day--range-start":n.isRangeStart(),"react-datepicker__day--range-end":n.isRangeEnd(),"react-datepicker__day--in-range":n.isInRange(),"react-datepicker__day--in-selecting-range":n.isInSelectingRange(),"react-datepicker__day--selecting-range-start":n.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":n.isSelectingRangeEnd(),"react-datepicker__day--today":n.isCurrentDay(),"react-datepicker__day--weekend":n.isWeekend(),"react-datepicker__day--outside-month":n.isAfterMonth()||n.isBeforeMonth()},n.getHighLightedClass(),n.getHolidaysClass())},n.getAriaLabel=function(){var e=n.props,o=e.day,a=e.ariaLabelPrefixWhenEnabled,i=a===void 0?"Choose":a,s=e.ariaLabelPrefixWhenDisabled,c=s===void 0?"Not available":s,l=n.isDisabled()||n.isExcluded()?c:i;return"".concat(l," ").concat(J(o,"PPPP",n.props.locale))},n.getTitle=function(){var e=n.props,o=e.day,a=e.holidays,i=a===void 0?new Map:a,s=e.excludeDates,c=J(o,"MM.dd.yyyy"),l=[];return i.has(c)&&l.push.apply(l,i.get(c).holidayNames),n.isExcluded()&&l.push(s==null?void 0:s.filter(function(u){return u instanceof Date?Y(u,o):Y(u==null?void 0:u.date,o)}).map(function(u){if(!(u instanceof Date))return u==null?void 0:u.message})),l.join(", ")},n.getTabIndex=function(){var e=n.props.selected,o=n.props.preSelection,a=!(n.props.showWeekPicker&&(n.props.showWeekNumber||!n.isStartOfWeek()))&&(n.isKeyboardSelected()||n.isSameDay(e)&&Y(o,e))?0:-1;return a},n.handleFocusDay=function(){var e;n.shouldFocusDay()&&((e=n.dayEl.current)===null||e===void 0||e.focus({preventScroll:!0}))},n.renderDayContents=function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(S1(n.props.day),n.props.day):S1(n.props.day)},n.render=function(){return g.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.props.usePointerEvent?void 0:n.handleMouseEnter,onPointerEnter:n.props.usePointerEvent?n.handleMouseEnter:void 0,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"option",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&g.createElement("span",{className:"overlay"},n.getTitle()))},n}return r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.prototype.shouldFocusDay=function(){var n=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(n=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(n=!1),this.isDayActiveElement()&&(n=!0),this.isDuplicateDay()&&(n=!1)),n},r.prototype.isDayActiveElement=function(){var n,e,o;return((e=(n=this.props.containerRef)===null||n===void 0?void 0:n.current)===null||e===void 0?void 0:e.contains(document.activeElement))&&((o=document.activeElement)===null||o===void 0?void 0:o.classList.contains("react-datepicker__day"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r}(g.Component),r2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.weekNumberEl=g.createRef(),n.handleClick=function(e){n.props.onClick&&n.props.onClick(e)},n.handleOnKeyDown=function(e){var o,a,i=e.key;i===E.Space&&(e.preventDefault(),e.key=E.Enter),(a=(o=n.props).handleOnKeyDown)===null||a===void 0||a.call(o,e)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!Y(n.props.date,n.props.selected)&&Y(n.props.date,n.props.preSelection)},n.getTabIndex=function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||Y(n.props.date,n.props.selected)&&Y(n.props.preSelection,n.props.selected))?0:-1},n.handleFocusWeekNumber=function(e){var o=!1;n.getTabIndex()===0&&!(e!=null&&e.isInputFocused)&&Y(n.props.date,n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(o=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})},n}return Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(n){this.handleFocusWeekNumber(n)},r.prototype.render=function(){var n=this.props,e=n.weekNumber,o=n.ariaLabelPrefix,a=o===void 0?r.defaultProps.ariaLabelPrefix:o,i=n.onClick,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!i,"react-datepicker__week-number--selected":!!i&&Y(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return g.createElement("div",{ref:this.weekNumberEl,className:se(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},e)},r}(g.Component),o2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.isDisabled=function(e){return ot(e,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(e,o){n.props.onDayClick&&n.props.onDayClick(e,o)},n.handleDayMouseEnter=function(e){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(e)},n.handleWeekClick=function(e,o,a){for(var i,s,c,l=new Date(e),u=0;u<7;u++){var d=new Date(e);d.setDate(d.getDate()+u);var p=!n.isDisabled(d);if(p){l=d;break}}typeof n.props.onWeekSelect=="function"&&n.props.onWeekSelect(l,o,a),n.props.showWeekPicker&&n.handleDayClick(l,a),((i=n.props.shouldCloseOnSelect)!==null&&i!==void 0?i:r.defaultProps.shouldCloseOnSelect)&&((c=(s=n.props).setOpen)===null||c===void 0||c.call(s,!1))},n.formatWeekNumber=function(e){return n.props.formatWeekNumber?n.props.formatWeekNumber(e):Vu(e)},n.renderDays=function(){var e=n.startOfWeek(),o=[],a=n.formatWeekNumber(e);if(n.props.showWeekNumber){var i=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,e,a):void 0;o.push(g.createElement(r2,Z({key:"W"},r.defaultProps,n.props,{weekNumber:a,date:e,onClick:i})))}return o.concat([0,1,2,3,4,5,6].map(function(s){var c=Xe(e,s);return g.createElement(n2,Z({},r.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:c.valueOf(),day:c,onClick:n.handleDayClick.bind(n,c),onMouseEnter:n.handleDayMouseEnter.bind(n,c)}))}))},n.startOfWeek=function(){return nt(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!Y(n.startOfWeek(),n.props.selected)&&Y(n.startOfWeek(),n.props.preSelection)},n}return Object.defineProperty(r,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var n={"react-datepicker__week":!0,"react-datepicker__week--selected":Y(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return g.createElement("div",{className:se(n)},this.renderDays())},r}(g.Component),Gt,a2=6,Lt={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},to=(Gt={},Gt[Lt.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Gt[Lt.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Gt[Lt.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Gt),jn=1;function Sa(t,r){return t?Lt.FOUR_COLUMNS:r?Lt.TWO_COLUMNS:Lt.THREE_COLUMNS}var i2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.MONTH_REFS=Ae([],Array(12),!0).map(function(){return g.createRef()}),n.QUARTER_REFS=Ae([],Array(4),!0).map(function(){return g.createRef()}),n.isDisabled=function(e){return ot(e,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(e){return Qr(e,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.handleDayClick=function(e,o){var a,i;(i=(a=n.props).onDayClick)===null||i===void 0||i.call(a,e,o,n.props.orderInDisplay)},n.handleDayMouseEnter=function(e){var o,a;(a=(o=n.props).onDayMouseEnter)===null||a===void 0||a.call(o,e)},n.handleMouseLeave=function(){var e,o;(o=(e=n.props).onMouseLeave)===null||o===void 0||o.call(e)},n.isRangeStartMonth=function(e){var o=n.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:he(ve(a,e),i)},n.isRangeStartQuarter=function(e){var o=n.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:Yn(bt(a,e),i)},n.isRangeEndMonth=function(e){var o=n.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:he(ve(a,e),s)},n.isRangeEndQuarter=function(e){var o=n.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:Yn(bt(a,e),s)},n.isInSelectingRangeMonth=function(e){var o,a=n.props,i=a.day,s=a.selectsStart,c=a.selectsEnd,l=a.selectsRange,u=a.startDate,d=a.endDate,p=(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection;return!(s||c||l)||!p?!1:s&&d?Kr(p,d,e,i):c&&u||l&&u&&!d?Kr(u,p,e,i):!1},n.isSelectingMonthRangeStart=function(e){var o;if(!n.isInSelectingRangeMonth(e))return!1;var a=n.props,i=a.day,s=a.startDate,c=a.selectsStart,l=ve(i,e),u=(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection;return c?he(l,u):he(l,s)},n.isSelectingMonthRangeEnd=function(e){var o;if(!n.isInSelectingRangeMonth(e))return!1;var a=n.props,i=a.day,s=a.endDate,c=a.selectsEnd,l=a.selectsRange,u=ve(i,e),d=(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection;return c||l?he(u,d):he(u,s)},n.isInSelectingRangeQuarter=function(e){var o,a=n.props,i=a.day,s=a.selectsStart,c=a.selectsEnd,l=a.selectsRange,u=a.startDate,d=a.endDate,p=(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection;return!(s||c||l)||!p?!1:s&&d?eo(p,d,e,i):c&&u||l&&u&&!d?eo(u,p,e,i):!1},n.isWeekInMonth=function(e){var o=n.props.day,a=Xe(e,6);return he(e,o)||he(a,o)},n.isCurrentMonth=function(e,o){return F(e)===F(X())&&o===fe(X())},n.isCurrentQuarter=function(e,o){return F(e)===F(X())&&o===lt(X())},n.isSelectedMonth=function(e,o,a){return fe(a)===o&&F(e)===F(a)},n.isSelectMonthInList=function(e,o,a){return a.some(function(i){return n.isSelectedMonth(e,o,i)})},n.isSelectedQuarter=function(e,o,a){return lt(e)===o&&F(e)===F(a)},n.renderWeeks=function(){for(var e=[],o=n.props.fixedHeight,a=0,i=!1,s=nt(rt(n.props.day),n.props.locale,n.props.calendarStartDay),c=function(h){return n.props.showWeekPicker?nt(h,n.props.locale,n.props.calendarStartDay):n.props.preSelection},l=function(h){return n.props.showWeekPicker?nt(h,n.props.locale,n.props.calendarStartDay):n.props.selected},u=n.props.selected?l(n.props.selected):void 0,d=n.props.preSelection?c(n.props.preSelection):void 0;e.push(g.createElement(o2,Z({},n.props,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,key:a,day:s,month:fe(n.props.day),onDayClick:n.handleDayClick,onDayMouseEnter:n.handleDayMouseEnter,selected:u,preSelection:d,showWeekNumber:n.props.showWeekNumbers}))),!i;){a++,s=Cn(s,1);var p=o&&a>=a2,f=!o&&!n.isWeekInMonth(s);if(p||f)if(n.props.peekNextMonth)i=!0;else break}return e},n.onMonthClick=function(e,o){var a=n.isMonthDisabledForLabelDate(o),i=a.isDisabled,s=a.labelDate;i||n.handleDayClick(rt(s),e)},n.onMonthMouseEnter=function(e){var o=n.isMonthDisabledForLabelDate(e),a=o.isDisabled,i=o.labelDate;a||n.handleDayMouseEnter(rt(i))},n.handleMonthNavigation=function(e,o){var a,i,s,c;(i=(a=n.props).setPreSelection)===null||i===void 0||i.call(a,o),(c=(s=n.MONTH_REFS[e])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus()},n.handleKeyboardNavigation=function(e,o,a){var i,s=n.props,c=s.selected,l=s.preSelection,u=s.setPreSelection,d=s.minDate,p=s.maxDate,f=s.showFourColumnMonthYearPicker,h=s.showTwoColumnMonthYearPicker;if(l){var m=Sa(f,h),C=n.getVerticalOffset(m),v=(i=to[m])===null||i===void 0?void 0:i.grid,b=function(k,M,P){var $,A,I=M,V=P;switch(k){case E.ArrowRight:I=Ee(M,jn),V=P===11?0:P+jn;break;case E.ArrowLeft:I=wt(M,jn),V=P===0?11:P-jn;break;case E.ArrowUp:I=wt(M,C),V=!(($=v==null?void 0:v[0])===null||$===void 0)&&$.includes(P)?P+12-C:P-C;break;case E.ArrowDown:I=Ee(M,C),V=!((A=v==null?void 0:v[v.length-1])===null||A===void 0)&&A.includes(P)?P-12+C:P+C;break}return{newCalculatedDate:I,newCalculatedMonth:V}},y=function(k,M,P){for(var $=40,A=k,I=!1,V=0,O=b(A,M,P),R=O.newCalculatedDate,T=O.newCalculatedMonth;!I;){if(V>=$){R=M,T=P;break}if(d&&R<d){A=E.ArrowRight;var B=b(A,R,T);R=B.newCalculatedDate,T=B.newCalculatedMonth}if(p&&R>p){A=E.ArrowLeft;var B=b(A,R,T);R=B.newCalculatedDate,T=B.newCalculatedMonth}if(qu(R,n.props)){var B=b(A,R,T);R=B.newCalculatedDate,T=B.newCalculatedMonth}else I=!0;V++}return{newCalculatedDate:R,newCalculatedMonth:T}};if(o===E.Enter){n.isMonthDisabled(a)||(n.onMonthClick(e,a),u==null||u(c));return}var D=y(o,l,a),_=D.newCalculatedDate,S=D.newCalculatedMonth;switch(o){case E.ArrowRight:case E.ArrowLeft:case E.ArrowUp:case E.ArrowDown:n.handleMonthNavigation(S,_);break}}},n.getVerticalOffset=function(e){var o,a;return(a=(o=to[e])===null||o===void 0?void 0:o.verticalNavigationOffset)!==null&&a!==void 0?a:0},n.onMonthKeyDown=function(e,o){var a=n.props,i=a.disabledKeyboardNavigation,s=a.handleOnMonthKeyDown,c=e.key;c!==E.Tab&&e.preventDefault(),i||n.handleKeyboardNavigation(e,c,o),s&&s(e)},n.onQuarterClick=function(e,o){var a=bt(n.props.day,o);Xr(a,n.props)||n.handleDayClick(aa(a),e)},n.onQuarterMouseEnter=function(e){var o=bt(n.props.day,e);Xr(o,n.props)||n.handleDayMouseEnter(aa(o))},n.handleQuarterNavigation=function(e,o){var a,i,s,c;n.isDisabled(o)||n.isExcluded(o)||((i=(a=n.props).setPreSelection)===null||i===void 0||i.call(a,o),(c=(s=n.QUARTER_REFS[e-1])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus())},n.onQuarterKeyDown=function(e,o){var a,i,s=e.key;if(!n.props.disabledKeyboardNavigation)switch(s){case E.Enter:n.onQuarterClick(e,o),(i=(a=n.props).setPreSelection)===null||i===void 0||i.call(a,n.props.selected);break;case E.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(o===4?1:o+1,Dr(n.props.preSelection,1));break;case E.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(o===1?4:o-1,H1(n.props.preSelection,1));break}},n.isMonthDisabledForLabelDate=function(e){var o,a=n.props,i=a.day,s=a.minDate,c=a.maxDate,l=a.excludeDates,u=a.includeDates,d=ve(i,e);return{isDisabled:(o=(s||c||l||u)&&la(d,n.props))!==null&&o!==void 0?o:!1,labelDate:d}},n.isMonthDisabled=function(e){var o=n.isMonthDisabledForLabelDate(e).isDisabled;return o},n.getMonthClassNames=function(e){var o=n.props,a=o.day,i=o.startDate,s=o.endDate,c=o.preSelection,l=o.monthClassName,u=l?l(ve(a,e)):void 0,d=n.getSelection();return se("react-datepicker__month-text","react-datepicker__month-".concat(e),u,{"react-datepicker__month-text--disabled":n.isMonthDisabled(e),"react-datepicker__month-text--selected":d?n.isSelectMonthInList(a,e,d):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&c&&n.isSelectedMonth(a,e,c)&&!n.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":i&&s?Kr(i,s,e,a):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(e),"react-datepicker__month-text--range-end":n.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":n.isCurrentMonth(a,e)})},n.getTabIndex=function(e){if(n.props.preSelection==null)return"-1";var o=fe(n.props.preSelection),a=!n.props.disabledKeyboardNavigation&&e===o?"0":"-1";return a},n.getQuarterTabIndex=function(e){if(n.props.preSelection==null)return"-1";var o=lt(n.props.preSelection),a=!n.props.disabledKeyboardNavigation&&e===o?"0":"-1";return a},n.getAriaLabel=function(e){var o=n.props,a=o.chooseDayAriaLabelPrefix,i=a===void 0?"Choose":a,s=o.disabledDayAriaLabelPrefix,c=s===void 0?"Not available":s,l=o.day,u=o.locale,d=ve(l,e),p=n.isDisabled(d)||n.isExcluded(d)?c:i;return"".concat(p," ").concat(J(d,"MMMM yyyy",u))},n.getQuarterClassNames=function(e){var o=n.props,a=o.day,i=o.startDate,s=o.endDate,c=o.selected,l=o.minDate,u=o.maxDate,d=o.excludeDates,p=o.includeDates,f=o.filterDate,h=o.preSelection,m=o.disabledKeyboardNavigation,C=(l||u||d||p||f)&&Xr(bt(a,e),n.props);return se("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":C,"react-datepicker__quarter-text--selected":c?n.isSelectedQuarter(a,e,c):void 0,"react-datepicker__quarter-text--keyboard-selected":!m&&h&&n.isSelectedQuarter(a,e,h)&&!C,"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":i&&s?eo(i,s,e,a):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(e)})},n.getMonthContent=function(e){var o=n.props,a=o.showFullMonthYearPicker,i=o.renderMonthContent,s=o.locale,c=o.day,l=ca(e,s),u=$r(e,s);return i?i(e,l,u,c):a?u:l},n.getQuarterContent=function(e){var o,a=n.props,i=a.renderQuarterContent,s=a.locale,c=Wu(e,s);return(o=i==null?void 0:i(e,c))!==null&&o!==void 0?o:c},n.renderMonths=function(){var e,o=n.props,a=o.showTwoColumnMonthYearPicker,i=o.showFourColumnMonthYearPicker,s=o.day,c=o.selected,l=(e=to[Sa(i,a)])===null||e===void 0?void 0:e.grid;return l==null?void 0:l.map(function(u,d){return g.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(p,f){return g.createElement("div",{ref:n.MONTH_REFS[p],key:f,onClick:function(h){n.onMonthClick(h,p)},onKeyDown:function(h){Da(h)&&(h.preventDefault(),h.key=E.Enter),n.onMonthKeyDown(h,p)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(p)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(p)}:void 0,tabIndex:Number(n.getTabIndex(p)),className:n.getMonthClassNames(p),"aria-disabled":n.isMonthDisabled(p),role:"option","aria-label":n.getAriaLabel(p),"aria-current":n.isCurrentMonth(s,p)?"date":void 0,"aria-selected":c?n.isSelectedMonth(s,p,c):void 0},n.getMonthContent(p))}))})},n.renderQuarters=function(){var e=n.props,o=e.day,a=e.selected,i=[1,2,3,4];return g.createElement("div",{className:"react-datepicker__quarter-wrapper"},i.map(function(s,c){return g.createElement("div",{key:c,ref:n.QUARTER_REFS[c],role:"option",onClick:function(l){n.onQuarterClick(l,s)},onKeyDown:function(l){n.onQuarterKeyDown(l,s)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(s)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(s)}:void 0,className:n.getQuarterClassNames(s),"aria-selected":a?n.isSelectedQuarter(o,s,a):void 0,tabIndex:Number(n.getQuarterTabIndex(s)),"aria-current":n.isCurrentQuarter(o,s)?"date":void 0},n.getQuarterContent(s))}))},n.getClassNames=function(){var e=n.props,o=e.selectingDate,a=e.selectsStart,i=e.selectsEnd,s=e.showMonthYearPicker,c=e.showQuarterYearPicker,l=e.showWeekPicker;return se("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(a||i)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":c},{"react-datepicker__weekPicker":l})},n}return r.prototype.getSelection=function(){var n=this.props,e=n.selected,o=n.selectedDates,a=n.selectsMultiple;if(a)return o;if(e)return[e]},r.prototype.render=function(){var n=this.props,e=n.showMonthYearPicker,o=n.showQuarterYearPicker,a=n.day,i=n.ariaLabelPrefix,s=i===void 0?"Month ":i,c=s?s.trim()+" ":"";return g.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(J(a,"MMMM, yyyy",this.props.locale)),role:"listbox"},e?this.renderMonths():o?this.renderQuarters():this.renderWeeks())},r}(g.Component),s2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.isSelectedMonth=function(e){return n.props.month===e},n.renderOptions=function(){return n.props.monthNames.map(function(e,o){return g.createElement("div",{className:n.isSelectedMonth(o)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:n.onChange.bind(n,o),"aria-selected":n.isSelectedMonth(o)?"true":void 0},n.isSelectedMonth(o)?g.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)})},n.onChange=function(e){return n.props.onChange(e)},n.handleClickOutside=function(){return n.props.onCancel()},n}return r.prototype.render=function(){return g.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},r}(g.Component),c2=hn(s2),l2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(e){return e.map(function(o,a){return g.createElement("option",{key:o,value:a},o)})},n.renderSelectMode=function(e){return g.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(o){return n.onChange(parseInt(o.target.value))}},n.renderSelectOptions(e))},n.renderReadView=function(e,o){return g.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},g.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),g.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[n.props.month]))},n.renderDropdown=function(e){return g.createElement(c2,Z({key:"dropdown"},n.props,{monthNames:e,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(e){var o=n.state.dropdownVisible,a=[n.renderReadView(!o,e)];return o&&a.unshift(n.renderDropdown(e)),a},n.onChange=function(e){n.toggleDropdown(),e!==n.props.month&&n.props.onChange(e)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return r.prototype.render=function(){var n=this,e=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return ca(a,n.props.locale)}:function(a){return $r(a,n.props.locale)}),o;switch(this.props.dropdownMode){case"scroll":o=this.renderScrollMode(e);break;case"select":o=this.renderSelectMode(e);break}return g.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},o)},r}(g.Component);function u2(t,r){for(var n=[],e=rt(t),o=rt(r);!Je(e,o);)n.push(X(e)),e=Ee(e,1);return n}var d2=function(t){ce(r,t);function r(n){var e=t.call(this,n)||this;return e.renderOptions=function(){return e.state.monthYearsList.map(function(o){var a=Lr(o),i=Ie(e.props.date,o)&&he(e.props.date,o);return g.createElement("div",{className:i?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:e.onChange.bind(e,a),"aria-selected":i?"true":void 0},i?g.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",J(o,e.props.dateFormat,e.props.locale))})},e.onChange=function(o){return e.props.onChange(o)},e.handleClickOutside=function(){e.props.onCancel()},e.state={monthYearsList:u2(e.props.minDate,e.props.maxDate)},e}return r.prototype.render=function(){var n=se({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return g.createElement("div",{className:n},this.renderOptions())},r}(g.Component),p2=hn(d2),f2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var e=rt(n.props.minDate),o=rt(n.props.maxDate),a=[];!Je(e,o);){var i=Lr(e);a.push(g.createElement("option",{key:i,value:i},J(e,n.props.dateFormat,n.props.locale))),e=Ee(e,1)}return a},n.onSelectChange=function(e){n.onChange(parseInt(e.target.value))},n.renderSelectMode=function(){return g.createElement("select",{value:Lr(rt(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(e){var o=J(n.props.date,n.props.dateFormat,n.props.locale);return g.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},g.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),g.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))},n.renderDropdown=function(){return g.createElement(p2,Z({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var e=n.state.dropdownVisible,o=[n.renderReadView(!e)];return e&&o.unshift(n.renderDropdown()),o},n.onChange=function(e){n.toggleDropdown();var o=X(e);Ie(n.props.date,o)&&he(n.props.date,o)||n.props.onChange(o)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return r.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return g.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},r}(g.Component),h2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var e,o,a;n.list&&(n.list.scrollTop=(a=n.centerLi&&r.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((o=(e=n.header)===null||e===void 0?void 0:e.clientHeight)!==null&&o!==void 0?o:0):n.list.clientHeight,n.centerLi))!==null&&a!==void 0?a:0)})},n.handleClick=function(e){var o,a;(n.props.minTime||n.props.maxTime)&&pa(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&da(e,n.props)||(a=(o=n.props).onChange)===null||a===void 0||a.call(o,e)},n.isSelectedTime=function(e){return n.props.selected&&e2(n.props.selected,e)},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&pa(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&da(e,n.props)},n.liClasses=function(e){var o,a=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&a.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&a.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(Te(e)*3600+Pe(e)*60+Ue(e))%(((o=n.props.intervals)!==null&&o!==void 0?o:r.defaultProps.intervals)*60)!==0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},n.handleOnKeyDown=function(e,o){var a,i;e.key===E.Space&&(e.preventDefault(),e.key=E.Enter),(e.key===E.ArrowUp||e.key===E.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===E.ArrowDown||e.key===E.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===E.Enter&&n.handleClick(o),(i=(a=n.props).handleOnKeyDown)===null||i===void 0||i.call(a,e)},n.renderTimes=function(){for(var e,o=[],a=n.props.format?n.props.format:"p",i=(e=n.props.intervals)!==null&&e!==void 0?e:r.defaultProps.intervals,s=n.props.selected||n.props.openToDate||X(),c=Bn(s),l=n.props.injectTimes&&n.props.injectTimes.sort(function(C,v){return C.getTime()-v.getTime()}),u=60*Ju(s),d=u/i,p=0;p<d;p++){var f=kr(c,p*i);if(o.push(f),l){var h=Gu(c,f,p,i,l);o=o.concat(h)}}var m=o.reduce(function(C,v){return v.getTime()<=s.getTime()?v:C},o[0]);return o.map(function(C){return g.createElement("li",{key:C.valueOf(),onClick:n.handleClick.bind(n,C),className:n.liClasses(C),ref:function(v){C===m&&(n.centerLi=v)},onKeyDown:function(v){n.handleOnKeyDown(v,C)},tabIndex:C===m?0:-1,role:"option","aria-selected":n.isSelectedTime(C)?"true":void 0,"aria-disabled":n.isDisabledTime(C)?"true":void 0},J(C,a,n.props.locale))})},n}return Object.defineProperty(r,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time"}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},r.prototype.render=function(){var n=this,e,o=this.state.height;return g.createElement("div",{className:"react-datepicker__time-container ".concat(((e=this.props.todayButton)!==null&&e!==void 0?e:r.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},g.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(a){n.header=a}},g.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),g.createElement("div",{className:"react-datepicker__time"},g.createElement("div",{className:"react-datepicker__time-box"},g.createElement("ul",{className:"react-datepicker__time-list",ref:function(a){n.list=a},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},r.calcCenterPosition=function(n,e){return e.offsetTop-(n/2-e.clientHeight/2)},r}(g.Component),Ma=3,m2=function(t){ce(r,t);function r(n){var e=t.call(this,n)||this;return e.YEAR_REFS=Ae([],Array(e.props.yearItemNumber),!0).map(function(){return g.createRef()}),e.isDisabled=function(o){return ot(o,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,includeDates:e.props.includeDates,filterDate:e.props.filterDate})},e.isExcluded=function(o){return Qr(o,{excludeDates:e.props.excludeDates})},e.selectingDate=function(){var o;return(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection},e.updateFocusOnPaginate=function(o){var a=function(){var i,s;(s=(i=e.YEAR_REFS[o])===null||i===void 0?void 0:i.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(a)},e.handleYearClick=function(o,a){e.props.onDayClick&&e.props.onDayClick(o,a)},e.handleYearNavigation=function(o,a){var i,s,c,l,u=e.props,d=u.date,p=u.yearItemNumber;if(!(d===void 0||p===void 0)){var f=at(d,p).startPeriod;e.isDisabled(a)||e.isExcluded(a)||((s=(i=e.props).setPreSelection)===null||s===void 0||s.call(i,a),o-f<0?e.updateFocusOnPaginate(p-(f-o)):o-f>=p?e.updateFocusOnPaginate(Math.abs(p-(o-f))):(l=(c=e.YEAR_REFS[o-f])===null||c===void 0?void 0:c.current)===null||l===void 0||l.focus())}},e.isSameDay=function(o,a){return Y(o,a)},e.isCurrentYear=function(o){return o===F(X())},e.isRangeStart=function(o){return e.props.startDate&&e.props.endDate&&Ie(Re(X(),o),e.props.startDate)},e.isRangeEnd=function(o){return e.props.startDate&&e.props.endDate&&Ie(Re(X(),o),e.props.endDate)},e.isInRange=function(o){return Gr(o,e.props.startDate,e.props.endDate)},e.isInSelectingRange=function(o){var a=e.props,i=a.selectsStart,s=a.selectsEnd,c=a.selectsRange,l=a.startDate,u=a.endDate;return!(i||s||c)||!e.selectingDate()?!1:i&&u?Gr(o,e.selectingDate(),u):s&&l||c&&l&&!u?Gr(o,l,e.selectingDate()):!1},e.isSelectingRangeStart=function(o){var a;if(!e.isInSelectingRange(o))return!1;var i=e.props,s=i.startDate,c=i.selectsStart,l=Re(X(),o);return c?Ie(l,(a=e.selectingDate())!==null&&a!==void 0?a:null):Ie(l,s??null)},e.isSelectingRangeEnd=function(o){var a;if(!e.isInSelectingRange(o))return!1;var i=e.props,s=i.endDate,c=i.selectsEnd,l=i.selectsRange,u=Re(X(),o);return c||l?Ie(u,(a=e.selectingDate())!==null&&a!==void 0?a:null):Ie(u,s??null)},e.isKeyboardSelected=function(o){if(!(e.props.date===void 0||e.props.selected==null||e.props.preSelection==null)){var a=e.props,i=a.minDate,s=a.maxDate,c=a.excludeDates,l=a.includeDates,u=a.filterDate,d=Qt(Re(e.props.date,o)),p=(i||s||c||l||u)&&Jr(o,e.props);return!e.props.disabledKeyboardNavigation&&!e.props.inline&&!Y(d,Qt(e.props.selected))&&Y(d,Qt(e.props.preSelection))&&!p}},e.onYearClick=function(o,a){var i=e.props.date;i!==void 0&&e.handleYearClick(Qt(Re(i,a)),o)},e.onYearKeyDown=function(o,a){var i,s,c=o.key,l=e.props,u=l.date,d=l.yearItemNumber,p=l.handleOnKeyDown;if(c!==E.Tab&&o.preventDefault(),!e.props.disabledKeyboardNavigation)switch(c){case E.Enter:if(e.props.selected==null)break;e.onYearClick(o,a),(s=(i=e.props).setPreSelection)===null||s===void 0||s.call(i,e.props.selected);break;case E.ArrowRight:if(e.props.preSelection==null)break;e.handleYearNavigation(a+1,je(e.props.preSelection,1));break;case E.ArrowLeft:if(e.props.preSelection==null)break;e.handleYearNavigation(a-1,kt(e.props.preSelection,1));break;case E.ArrowUp:{if(u===void 0||d===void 0||e.props.preSelection==null)break;var f=at(u,d).startPeriod,h=Ma,m=a-h;if(m<f){var C=d%h;a>=f&&a<f+C?h=C:h+=C,m=a-h}e.handleYearNavigation(m,kt(e.props.preSelection,h));break}case E.ArrowDown:{if(u===void 0||d===void 0||e.props.preSelection==null)break;var v=at(u,d).endPeriod,h=Ma,m=a+h;if(m>v){var C=d%h;a<=v&&a>v-C?h=C:h+=C,m=a+h}e.handleYearNavigation(m,je(e.props.preSelection,h));break}}p&&p(o)},e.getYearClassNames=function(o){var a=e.props,i=a.date,s=a.minDate,c=a.maxDate,l=a.selected,u=a.excludeDates,d=a.includeDates,p=a.filterDate,f=a.yearClassName;return se("react-datepicker__year-text","react-datepicker__year-".concat(o),i?f==null?void 0:f(Re(i,o)):void 0,{"react-datepicker__year-text--selected":l?o===F(l):void 0,"react-datepicker__year-text--disabled":(s||c||u||d||p)&&Jr(o,e.props),"react-datepicker__year-text--keyboard-selected":e.isKeyboardSelected(o),"react-datepicker__year-text--range-start":e.isRangeStart(o),"react-datepicker__year-text--range-end":e.isRangeEnd(o),"react-datepicker__year-text--in-range":e.isInRange(o),"react-datepicker__year-text--in-selecting-range":e.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":e.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":e.isSelectingRangeEnd(o),"react-datepicker__year-text--today":e.isCurrentYear(o)})},e.getYearTabIndex=function(o){if(e.props.disabledKeyboardNavigation||e.props.preSelection==null)return"-1";var a=F(e.props.preSelection);return o===a?"0":"-1"},e.getYearContainerClassNames=function(){var o=e.props,a=o.selectingDate,i=o.selectsStart,s=o.selectsEnd,c=o.selectsRange;return se("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(i||s||c)})},e.getYearContent=function(o){return e.props.renderYearContent?e.props.renderYearContent(o):o},e}return r.prototype.render=function(){var n=this,e=[],o=this.props,a=o.date,i=o.yearItemNumber,s=o.onYearMouseEnter,c=o.onYearMouseLeave;if(a===void 0)return null;for(var l=at(a,i),u=l.startPeriod,d=l.endPeriod,p=function(m){e.push(g.createElement("div",{ref:f.YEAR_REFS[m-u],onClick:function(C){n.onYearClick(C,m)},onKeyDown:function(C){Da(C)&&(C.preventDefault(),C.key=E.Enter),n.onYearKeyDown(C,m)},tabIndex:Number(f.getYearTabIndex(m)),className:f.getYearClassNames(m),onMouseEnter:f.props.usePointerEvent?void 0:function(C){return s(C,m)},onPointerEnter:f.props.usePointerEvent?function(C){return s(C,m)}:void 0,onMouseLeave:f.props.usePointerEvent?void 0:function(C){return c(C,m)},onPointerLeave:f.props.usePointerEvent?function(C){return c(C,m)}:void 0,key:m,"aria-current":f.isCurrentYear(m)?"date":void 0},f.getYearContent(m)))},f=this,h=u;h<=d;h++)p(h);return g.createElement("div",{className:this.getYearContainerClassNames()},g.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},e))},r}(g.Component);function g2(t,r,n,e){for(var o=[],a=0;a<2*r+1;a++){var i=t+r-a,s=!0;n&&(s=F(n)<=i),e&&s&&(s=F(e)>=i),s&&o.push(i)}return o}var C2=function(t){ce(r,t);function r(n){var e=t.call(this,n)||this;e.renderOptions=function(){var s=e.props.year,c=e.state.yearsList.map(function(d){return g.createElement("div",{className:s===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:e.onChange.bind(e,d),"aria-selected":s===d?"true":void 0},s===d?g.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),l=e.props.minDate?F(e.props.minDate):null,u=e.props.maxDate?F(e.props.maxDate):null;return(!u||!e.state.yearsList.find(function(d){return d===u}))&&c.unshift(g.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:e.incrementYears},g.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!l||!e.state.yearsList.find(function(d){return d===l}))&&c.push(g.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:e.decrementYears},g.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c},e.onChange=function(s){e.props.onChange(s)},e.handleClickOutside=function(){e.props.onCancel()},e.shiftYears=function(s){var c=e.state.yearsList.map(function(l){return l+s});e.setState({yearsList:c})},e.incrementYears=function(){return e.shiftYears(1)},e.decrementYears=function(){return e.shiftYears(-1)};var o=n.yearDropdownItemNumber,a=n.scrollableYearDropdown,i=o||(a?10:5);return e.state={yearsList:g2(e.props.year,i,e.props.minDate,e.props.maxDate)},e.dropdownRef=g.createRef(),e}return r.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var e=n.children?Array.from(n.children):null,o=e?e.find(function(a){return a.ariaSelected}):null;n.scrollTop=o&&o instanceof HTMLElement?o.offsetTop+(o.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},r.prototype.render=function(){var n=se({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return g.createElement("div",{className:n,ref:this.dropdownRef},this.renderOptions())},r}(g.Component),v2=hn(C2),_2=function(t){ce(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var e=n.props.minDate?F(n.props.minDate):1900,o=n.props.maxDate?F(n.props.maxDate):2100,a=[],i=e;i<=o;i++)a.push(g.createElement("option",{key:i,value:i},i));return a},n.onSelectChange=function(e){n.onChange(parseInt(e.target.value))},n.renderSelectMode=function(){return g.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(e){return g.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(o){return n.toggleDropdown(o)}},g.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),g.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return g.createElement(v2,Z({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var e=n.state.dropdownVisible,o=[n.renderReadView(!e)];return e&&o.unshift(n.renderDropdown()),o},n.onChange=function(e){n.toggleDropdown(),e!==n.props.year&&n.props.onChange(e)},n.toggleDropdown=function(e){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,e)})},n.handleYearChange=function(e,o){n.onSelect(e,o),n.setOpen()},n.onSelect=function(e,o){n.props.onSelect&&n.props.onSelect(e,o)},n.setOpen=function(){n.props.setOpen&&n.props.setOpen(!0)},n}return r.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return g.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},r}(g.Component),y2=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],b2=function(t){var r=(t.className||"").split(/\s+/);return y2.some(function(n){return r.indexOf(n)>=0})},w2=function(t){ce(r,t);function r(n){var e=t.call(this,n)||this;return e.monthContainer=void 0,e.handleClickOutside=function(o){e.props.onClickOutside(o)},e.setClickOutsideRef=function(){return e.containerRef.current},e.handleDropdownFocus=function(o){var a,i;b2(o.target)&&((i=(a=e.props).onDropdownFocus)===null||i===void 0||i.call(a,o))},e.getDateInView=function(){var o=e.props,a=o.preSelection,i=o.selected,s=o.openToDate,c=Ca(e.props),l=va(e.props),u=X(),d=s||i||a;return d||(c&&pt(u,c)?c:l&&Je(u,l)?l:u)},e.increaseMonth=function(){e.setState(function(o){var a=o.date;return{date:Ee(a,1)}},function(){return e.handleMonthChange(e.state.date)})},e.decreaseMonth=function(){e.setState(function(o){var a=o.date;return{date:wt(a,1)}},function(){return e.handleMonthChange(e.state.date)})},e.handleDayClick=function(o,a,i){e.props.onSelect(o,a,i),e.props.setPreSelection&&e.props.setPreSelection(o)},e.handleDayMouseEnter=function(o){e.setState({selectingDate:o}),e.props.onDayMouseEnter&&e.props.onDayMouseEnter(o)},e.handleMonthMouseLeave=function(){e.setState({selectingDate:void 0}),e.props.onMonthMouseLeave&&e.props.onMonthMouseLeave()},e.handleYearMouseEnter=function(o,a){e.setState({selectingDate:Re(X(),a)}),e.props.onYearMouseEnter&&e.props.onYearMouseEnter(o,a)},e.handleYearMouseLeave=function(o,a){e.props.onYearMouseLeave&&e.props.onYearMouseLeave(o,a)},e.handleYearChange=function(o){e.props.onYearChange&&(e.props.onYearChange(o),e.setState({isRenderAriaLiveMessage:!0})),e.props.adjustDateOnChange&&(e.props.onSelect&&e.props.onSelect(o),e.props.setOpen&&e.props.setOpen(!0)),e.props.setPreSelection&&e.props.setPreSelection(o)},e.handleMonthChange=function(o){e.handleCustomMonthChange(o),e.props.adjustDateOnChange&&(e.props.onSelect&&e.props.onSelect(o),e.props.setOpen&&e.props.setOpen(!0)),e.props.setPreSelection&&e.props.setPreSelection(o)},e.handleCustomMonthChange=function(o){e.props.onMonthChange&&(e.props.onMonthChange(o),e.setState({isRenderAriaLiveMessage:!0}))},e.handleMonthYearChange=function(o){e.handleYearChange(o),e.handleMonthChange(o)},e.changeYear=function(o){e.setState(function(a){var i=a.date;return{date:Re(i,Number(o))}},function(){return e.handleYearChange(e.state.date)})},e.changeMonth=function(o){e.setState(function(a){var i=a.date;return{date:ve(i,Number(o))}},function(){return e.handleMonthChange(e.state.date)})},e.changeMonthYear=function(o){e.setState(function(a){var i=a.date;return{date:Re(ve(i,fe(o)),F(o))}},function(){return e.handleMonthYearChange(e.state.date)})},e.header=function(o){o===void 0&&(o=e.state.date);var a=nt(o,e.props.locale,e.props.calendarStartDay),i=[];return e.props.showWeekNumbers&&i.push(g.createElement("div",{key:"W",className:"react-datepicker__day-name"},e.props.weekLabel||"#")),i.concat([0,1,2,3,4,5,6].map(function(s){var c=Xe(a,s),l=e.formatWeekday(c,e.props.locale),u=e.props.weekDayClassName?e.props.weekDayClassName(c):void 0;return g.createElement("div",{key:s,"aria-label":J(c,"EEEE",e.props.locale),className:se("react-datepicker__day-name",u)},l)}))},e.formatWeekday=function(o,a){return e.props.formatWeekDay?Yu(o,e.props.formatWeekDay,a):e.props.useWeekdaysShort?ju(o,a):Zu(o,a)},e.decreaseYear=function(){e.setState(function(o){var a,i=o.date;return{date:kt(i,e.props.showYearPicker?(a=e.props.yearItemNumber)!==null&&a!==void 0?a:r.defaultProps.yearItemNumber:1)}},function(){return e.handleYearChange(e.state.date)})},e.clearSelectingDate=function(){e.setState({selectingDate:void 0})},e.renderPreviousButton=function(){var o;if(!e.props.renderCustomHeader){var a;switch(!0){case e.props.showMonthYearPicker:a=ma(e.state.date,e.props);break;case e.props.showYearPicker:a=$u(e.state.date,e.props);break;case e.props.showQuarterYearPicker:a=Uu(e.state.date,e.props);break;default:a=fa(e.state.date,e.props);break}if(!(!((o=e.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!e.props.showDisabledMonthNavigation&&a||e.props.showTimeSelectOnly)){var i=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],s=["react-datepicker__navigation","react-datepicker__navigation--previous"],c=e.decreaseMonth;(e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker)&&(c=e.decreaseYear),a&&e.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),c=void 0);var l=e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker,u=e.props,d=u.previousMonthButtonLabel,p=d===void 0?r.defaultProps.previousMonthButtonLabel:d,f=u.previousYearButtonLabel,h=f===void 0?r.defaultProps.previousYearButtonLabel:f,m=e.props,C=m.previousMonthAriaLabel,v=C===void 0?typeof p=="string"?p:"Previous Month":C,b=m.previousYearAriaLabel,y=b===void 0?typeof h=="string"?h:"Previous Year":b;return g.createElement("button",{type:"button",className:s.join(" "),onClick:c,onKeyDown:e.props.handleOnKeyDown,"aria-label":l?y:v},g.createElement("span",{className:i.join(" ")},l?h:p))}}},e.increaseYear=function(){e.setState(function(o){var a,i=o.date;return{date:je(i,e.props.showYearPicker?(a=e.props.yearItemNumber)!==null&&a!==void 0?a:r.defaultProps.yearItemNumber:1)}},function(){return e.handleYearChange(e.state.date)})},e.renderNextButton=function(){var o;if(!e.props.renderCustomHeader){var a;switch(!0){case e.props.showMonthYearPicker:a=ga(e.state.date,e.props);break;case e.props.showYearPicker:a=Qu(e.state.date,e.props);break;case e.props.showQuarterYearPicker:a=zu(e.state.date,e.props);break;default:a=ha(e.state.date,e.props);break}if(!(!((o=e.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!e.props.showDisabledMonthNavigation&&a||e.props.showTimeSelectOnly)){var i=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];e.props.showTimeSelect&&i.push("react-datepicker__navigation--next--with-time"),e.props.todayButton&&i.push("react-datepicker__navigation--next--with-today-button");var c=e.increaseMonth;(e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker)&&(c=e.increaseYear),a&&e.props.showDisabledMonthNavigation&&(i.push("react-datepicker__navigation--next--disabled"),c=void 0);var l=e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker,u=e.props,d=u.nextMonthButtonLabel,p=d===void 0?r.defaultProps.nextMonthButtonLabel:d,f=u.nextYearButtonLabel,h=f===void 0?r.defaultProps.nextYearButtonLabel:f,m=e.props,C=m.nextMonthAriaLabel,v=C===void 0?typeof p=="string"?p:"Next Month":C,b=m.nextYearAriaLabel,y=b===void 0?typeof h=="string"?h:"Next Year":b;return g.createElement("button",{type:"button",className:i.join(" "),onClick:c,onKeyDown:e.props.handleOnKeyDown,"aria-label":l?y:v},g.createElement("span",{className:s.join(" ")},l?h:p))}}},e.renderCurrentMonth=function(o){o===void 0&&(o=e.state.date);var a=["react-datepicker__current-month"];return e.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),e.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),e.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),g.createElement("h2",{className:a.join(" ")},J(o,e.props.dateFormat,e.props.locale))},e.renderYearDropdown=function(o){if(o===void 0&&(o=!1),!(!e.props.showYearDropdown||o))return g.createElement(_2,Z({},r.defaultProps,e.props,{date:e.state.date,onChange:e.changeYear,year:F(e.state.date)}))},e.renderMonthDropdown=function(o){if(o===void 0&&(o=!1),!(!e.props.showMonthDropdown||o))return g.createElement(l2,Z({},r.defaultProps,e.props,{month:fe(e.state.date),onChange:e.changeMonth}))},e.renderMonthYearDropdown=function(o){if(o===void 0&&(o=!1),!(!e.props.showMonthYearDropdown||o))return g.createElement(f2,Z({},r.defaultProps,e.props,{date:e.state.date,onChange:e.changeMonthYear}))},e.handleTodayButtonClick=function(o){e.props.onSelect(ia(),o),e.props.setPreSelection&&e.props.setPreSelection(ia())},e.renderTodayButton=function(){if(!(!e.props.todayButton||e.props.showTimeSelectOnly))return g.createElement("div",{className:"react-datepicker__today-button",onClick:e.handleTodayButtonClick},e.props.todayButton)},e.renderDefaultHeader=function(o){var a=o.monthDate,i=o.i;return g.createElement("div",{className:"react-datepicker__header ".concat(e.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},e.renderCurrentMonth(a),g.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(e.props.dropdownMode),onFocus:e.handleDropdownFocus},e.renderMonthDropdown(i!==0),e.renderMonthYearDropdown(i!==0),e.renderYearDropdown(i!==0)),g.createElement("div",{className:"react-datepicker__day-names"},e.header(a)))},e.renderCustomHeader=function(o){var a,i,s=o.monthDate,c=o.i;if(e.props.showTimeSelect&&!e.state.monthContainer||e.props.showTimeSelectOnly)return null;var l=fa(e.state.date,e.props),u=ha(e.state.date,e.props),d=ma(e.state.date,e.props),p=ga(e.state.date,e.props),f=!e.props.showMonthYearPicker&&!e.props.showQuarterYearPicker&&!e.props.showYearPicker;return g.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:e.props.onDropdownFocus},(i=(a=e.props).renderCustomHeader)===null||i===void 0?void 0:i.call(a,Z(Z({},e.state),{customHeaderCount:c,monthDate:s,changeMonth:e.changeMonth,changeYear:e.changeYear,decreaseMonth:e.decreaseMonth,increaseMonth:e.increaseMonth,decreaseYear:e.decreaseYear,increaseYear:e.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:u,prevYearButtonDisabled:d,nextYearButtonDisabled:p})),f&&g.createElement("div",{className:"react-datepicker__day-names"},e.header(s)))},e.renderYearHeader=function(o){var a=o.monthDate,i=e.props,s=i.showYearPicker,c=i.yearItemNumber,l=c===void 0?r.defaultProps.yearItemNumber:c,u=at(a,l),d=u.startPeriod,p=u.endPeriod;return g.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(d," - ").concat(p):F(a))},e.renderHeader=function(o){var a=o.monthDate,i=o.i,s=i===void 0?0:i,c={monthDate:a,i:s};switch(!0){case e.props.renderCustomHeader!==void 0:return e.renderCustomHeader(c);case(e.props.showMonthYearPicker||e.props.showQuarterYearPicker||e.props.showYearPicker):return e.renderYearHeader(c);default:return e.renderDefaultHeader(c)}},e.renderMonths=function(){var o,a;if(!(e.props.showTimeSelectOnly||e.props.showYearPicker)){for(var i=[],s=(o=e.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,c=e.props.showPreviousMonths?s-1:0,l=e.props.showMonthYearPicker||e.props.showQuarterYearPicker?je(e.state.date,c):wt(e.state.date,c),u=(a=e.props.monthSelectedIn)!==null&&a!==void 0?a:c,d=0;d<s;++d){var p=d-u+c,f=e.props.showMonthYearPicker||e.props.showQuarterYearPicker?je(l,p):Ee(l,p),h="month-".concat(d),m=d<s-1,C=d>0;i.push(g.createElement("div",{key:h,ref:function(v){e.monthContainer=v??void 0},className:"react-datepicker__month-container"},e.renderHeader({monthDate:f,i:d}),g.createElement(i2,Z({},r.defaultProps,e.props,{ariaLabelPrefix:e.props.monthAriaLabelPrefix,day:f,onDayClick:e.handleDayClick,handleOnKeyDown:e.props.handleOnDayKeyDown,handleOnMonthKeyDown:e.props.handleOnKeyDown,onDayMouseEnter:e.handleDayMouseEnter,onMouseLeave:e.handleMonthMouseLeave,orderInDisplay:d,selectingDate:e.state.selectingDate,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:C}))))}return i}},e.renderYears=function(){if(!e.props.showTimeSelectOnly&&e.props.showYearPicker)return g.createElement("div",{className:"react-datepicker__year--container"},e.renderHeader({monthDate:e.state.date}),g.createElement(m2,Z({},r.defaultProps,e.props,{selectingDate:e.state.selectingDate,date:e.state.date,onDayClick:e.handleDayClick,clearSelectingDate:e.clearSelectingDate,onYearMouseEnter:e.handleYearMouseEnter,onYearMouseLeave:e.handleYearMouseLeave})))},e.renderTimeSection=function(){if(e.props.showTimeSelect&&(e.state.monthContainer||e.props.showTimeSelectOnly))return g.createElement(h2,Z({},r.defaultProps,e.props,{onChange:e.props.onTimeChange,format:e.props.timeFormat,intervals:e.props.timeIntervals,monthRef:e.state.monthContainer}))},e.renderInputTimeSection=function(){var o=e.props.selected?new Date(e.props.selected):void 0,a=o&&$e(o)&&!!e.props.selected,i=a?"".concat(ya(o.getHours()),":").concat(ya(o.getMinutes())):"";if(e.props.showTimeInput)return g.createElement(t2,Z({},r.defaultProps,e.props,{date:o,timeString:i,onChange:e.props.onTimeChange}))},e.renderAriaLiveRegion=function(){var o,a=at(e.state.date,(o=e.props.yearItemNumber)!==null&&o!==void 0?o:r.defaultProps.yearItemNumber),i=a.startPeriod,s=a.endPeriod,c;return e.props.showYearPicker?c="".concat(i," - ").concat(s):e.props.showMonthYearPicker||e.props.showQuarterYearPicker?c=F(e.state.date):c="".concat($r(fe(e.state.date),e.props.locale)," ").concat(F(e.state.date)),g.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e.state.isRenderAriaLiveMessage&&c)},e.renderChildren=function(){if(e.props.children)return g.createElement("div",{className:"react-datepicker__children-container"},e.props.children)},e.containerRef=g.createRef(),e.state={date:e.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},e}return Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:$t}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){n.setState({monthContainer:n.monthContainer})}())},r.prototype.componentDidUpdate=function(n){var e=this;if(this.props.preSelection&&(!Y(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var o=!he(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&e.handleCustomMonthChange(e.state.date)})}else this.props.openToDate&&!Y(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},r.prototype.render=function(){var n=this.props.container||Nu;return g.createElement("div",{style:{display:"contents"},ref:this.containerRef},g.createElement(n,{className:se("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},r}(g.Component),k2=function(t){var r=t.icon,n=t.className,e=n===void 0?"":n,o=t.onClick,a="react-datepicker__calendar-icon";return typeof r=="string"?g.createElement("i",{className:"".concat(a," ").concat(r," ").concat(e),"aria-hidden":"true",onClick:o}):g.isValidElement(r)?g.cloneElement(r,{className:"".concat(r.props.className||""," ").concat(a," ").concat(e),onClick:function(i){typeof r.props.onClick=="function"&&r.props.onClick(i),typeof o=="function"&&o(i)}}):g.createElement("svg",{className:"".concat(a," ").concat(e),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},g.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Ea=function(t){ce(r,t);function r(n){var e=t.call(this,n)||this;return e.portalRoot=null,e.el=document.createElement("div"),e}return r.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},r.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},r.prototype.render=function(){return mr.createPortal(this.props.children,this.el)},r}(g.Component),D2="[tabindex], a, button, input, select, textarea",S2=function(t){return(t instanceof HTMLAnchorElement||!t.disabled)&&t.tabIndex!==-1},xa=function(t){ce(r,t);function r(n){var e=t.call(this,n)||this;return e.getTabChildren=function(){var o;return Array.prototype.slice.call((o=e.tabLoopRef.current)===null||o===void 0?void 0:o.querySelectorAll(D2),1,-1).filter(S2)},e.handleFocusStart=function(){var o=e.getTabChildren();o&&o.length>1&&o[o.length-1].focus()},e.handleFocusEnd=function(){var o=e.getTabChildren();o&&o.length>1&&o[0].focus()},e.tabLoopRef=g.createRef(),e}return r.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:r.defaultProps.enableTabLoop)?g.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},g.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,g.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},r.defaultProps={enableTabLoop:!0},r}(g.Component);function M2(t){var r=function(n){var e,o=typeof n.hidePopper=="boolean"?n.hidePopper:!0,a=g.useRef(null),i=Ou(Z({open:!o,whileElementsMounted:du,placement:n.popperPlacement,middleware:Ae([Cu({padding:15}),gu(10),vu({element:a})],(e=n.popperModifiers)!==null&&e!==void 0?e:[],!0)},n.popperProps)),s=Z(Z({},n),{hidePopper:o,popperProps:Z(Z({},i),{arrowRef:a})});return g.createElement(t,Z({},s))};return r}var E2=function(t){ce(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(r,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var n=this.props,e=n.className,o=n.wrapperClassName,a=n.hidePopper,i=a===void 0?r.defaultProps.hidePopper:a,s=n.popperComponent,c=n.targetComponent,l=n.enableTabLoop,u=n.popperOnKeyDown,d=n.portalId,p=n.portalHost,f=n.popperProps,h=n.showArrow,m=void 0;if(!i){var C=se("react-datepicker-popper",e);m=g.createElement(xa,{enableTabLoop:l},g.createElement("div",{ref:f.refs.setFloating,style:f.floatingStyles,className:C,"data-placement":f.placement,onKeyDown:u},s,h&&g.createElement(Su,{ref:f.arrowRef,context:f.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(m=g.createElement(this.props.popperContainer,{},m)),d&&!i&&(m=g.createElement(Ea,{portalId:d,portalHost:p},m));var v=se("react-datepicker-wrapper",o);return g.createElement(g.Fragment,null,g.createElement("div",{ref:f.refs.setReference,className:v},c),m)},r}(g.Component),x2=M2(E2),La="react-datepicker-ignore-onclickoutside",L2=hn(w2);function T2(t,r){return t&&r?fe(t)!==fe(r)||F(t)!==F(r):t!==r}var no="Date input not valid.";(function(t){ce(r,t);function r(n){var e=t.call(this,n)||this;return e.calendar=null,e.input=null,e.getPreSelection=function(){return e.props.openToDate?e.props.openToDate:e.props.selectsEnd&&e.props.startDate?e.props.startDate:e.props.selectsStart&&e.props.endDate?e.props.endDate:X()},e.modifyHolidays=function(){var o;return(o=e.props.holidays)===null||o===void 0?void 0:o.reduce(function(a,i){var s=new Date(i.date);return $e(s)?Ae(Ae([],a,!0),[Z(Z({},i),{date:s})],!1):a},[])},e.calcInitialState=function(){var o,a=e.getPreSelection(),i=Ca(e.props),s=va(e.props),c=i&&pt(a,Bn(i))?i:s&&Je(a,sa(s))?s:a;return{open:e.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(o=e.props.selectsRange?e.props.startDate:e.props.selected)!==null&&o!==void 0?o:c,highlightDates:_a(e.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},e.resetHiddenStatus=function(){e.setState(Z(Z({},e.state),{wasHidden:!1}))},e.setHiddenStatus=function(){e.setState(Z(Z({},e.state),{wasHidden:!0}))},e.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&e.setHiddenStatus()},e.clearPreventFocusTimeout=function(){e.preventFocusTimeout&&clearTimeout(e.preventFocusTimeout)},e.setFocus=function(){e.input&&e.input.focus&&e.input.focus({preventScroll:!0})},e.setBlur=function(){e.input&&e.input.blur&&e.input.blur(),e.cancelFocusInput()},e.setOpen=function(o,a){a===void 0&&(a=!1),e.setState({open:o,preSelection:o&&e.state.open?e.state.preSelection:e.calcInitialState().preSelection,lastPreSelectChange:ro},function(){o||e.setState(function(i){return{focused:a?i.focused:!1}},function(){!a&&e.setBlur(),e.setState({inputValue:null})})})},e.inputOk=function(){return qe(e.state.preSelection)},e.isCalendarOpen=function(){return e.props.open===void 0?e.state.open&&!e.props.disabled&&!e.props.readOnly:e.props.open},e.handleFocus=function(o){var a,i,s=e.state.wasHidden,c=s?e.state.open:!0;s&&e.resetHiddenStatus(),!e.state.preventFocus&&c&&((i=(a=e.props).onFocus)===null||i===void 0||i.call(a,o),!e.props.preventOpenOnFocus&&!e.props.readOnly&&e.setOpen(!0)),e.setState({focused:!0})},e.sendFocusBackToInput=function(){e.preventFocusTimeout&&e.clearPreventFocusTimeout(),e.setState({preventFocus:!0},function(){e.preventFocusTimeout=setTimeout(function(){e.setFocus(),e.setState({preventFocus:!1})})})},e.cancelFocusInput=function(){clearTimeout(e.inputFocusTimeout),e.inputFocusTimeout=void 0},e.deferFocusInput=function(){e.cancelFocusInput(),e.inputFocusTimeout=setTimeout(function(){return e.setFocus()},1)},e.handleDropdownFocus=function(){e.cancelFocusInput()},e.handleBlur=function(o){var a,i;(!e.state.open||e.props.withPortal||e.props.showTimeInput)&&((i=(a=e.props).onBlur)===null||i===void 0||i.call(a,o)),e.setState({focused:!1})},e.handleCalendarClickOutside=function(o){var a,i;e.props.inline||e.setOpen(!1),(i=(a=e.props).onClickOutside)===null||i===void 0||i.call(a,o),e.props.withPortal&&o.preventDefault()},e.handleChange=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var i=o[0];if(!(e.props.onChangeRaw&&(e.props.onChangeRaw.apply(e,o),!i||typeof i.isDefaultPrevented!="function"||i.isDefaultPrevented()))){e.setState({inputValue:(i==null?void 0:i.target)instanceof HTMLInputElement?i.target.value:null,lastPreSelectChange:P2});var s=e.props,c=s.dateFormat,l=c===void 0?r.defaultProps.dateFormat:c,u=s.strictParsing,d=u===void 0?r.defaultProps.strictParsing:u,p=Hu((i==null?void 0:i.target)instanceof HTMLInputElement?i.target.value:"",l,e.props.locale,d,e.props.minDate);e.props.showTimeSelectOnly&&e.props.selected&&p&&!Y(p,e.props.selected)&&(p=x0(e.props.selected,{hours:Te(p),minutes:Pe(p),seconds:Ue(p)})),(p||!((i==null?void 0:i.target)instanceof HTMLInputElement)||!(i!=null&&i.target.value))&&e.setSelected(p,i,!0)}},e.handleSelect=function(o,a,i){if(e.props.shouldCloseOnSelect&&!e.props.showTimeSelect&&e.sendFocusBackToInput(),e.props.onChangeRaw&&e.props.onChangeRaw(a),e.setSelected(o,a,!1,i),e.props.showDateSelect&&e.setState({isRenderAriaLiveMessage:!0}),!e.props.shouldCloseOnSelect||e.props.showTimeSelect)e.setPreSelection(o);else if(!e.props.inline){e.props.selectsRange||e.setOpen(!1);var s=e.props,c=s.startDate,l=s.endDate;c&&!l&&(e.props.swapRange||!ka(o,c))&&e.setOpen(!1)}},e.setSelected=function(o,a,i,s){var c,l=o;if(e.props.showYearPicker){if(l!==null&&Jr(F(l),e.props))return}else if(e.props.showMonthYearPicker){if(l!==null&&la(l,e.props))return}else if(l!==null&&ot(l,e.props))return;var u=e.props,d=u.onChange,p=u.selectsRange,f=u.startDate,h=u.endDate,m=u.selectsMultiple,C=u.selectedDates,v=u.minTime,b=u.swapRange;if(!ht(e.props.selected,l)||e.props.allowSameDay||p||m)if(l!==null&&(e.props.selected&&(!i||!e.props.showTimeSelect&&!e.props.showTimeSelectOnly&&!e.props.showTimeInput)&&(l=zr(l,{hour:Te(e.props.selected),minute:Pe(e.props.selected),second:Ue(e.props.selected)})),!i&&(e.props.showTimeSelect||e.props.showTimeSelectOnly)&&v&&(l=zr(l,{hour:v.getHours(),minute:v.getMinutes(),second:v.getSeconds()})),e.props.inline||e.setState({preSelection:l}),e.props.focusSelectedMonth||e.setState({monthSelectedIn:s})),p){var y=!f&&!h,D=f&&!h,_=f&&h;y?d?d([l,null],a):r.defaultProps.onChange:D&&(l===null?d?d([null,null],a):r.defaultProps.onChange:ka(l,f)?b?d?d([l,f],a):r.defaultProps.onChange:d?d([l,null],a):r.defaultProps.onChange:d?d([f,l],a):r.defaultProps.onChange),_&&(d?d([l,null],a):r.defaultProps.onChange)}else if(m){if(l!==null)if(!(C!=null&&C.length))d?d([l],a):r.defaultProps.onChange;else{var S=C.some(function(P){return Y(P,l)});if(S){var k=C.filter(function(P){return!Y(P,l)});d?d(k,a):r.defaultProps.onChange}else d?d(Ae(Ae([],C,!0),[l],!1),a):r.defaultProps.onChange}}else d?d(l,a):r.defaultProps.onChange;if(!i){var M=(c=e.props.onSelect)!==null&&c!==void 0?c:r.defaultProps.onSelect;M(l,a),e.setState({inputValue:null})}},e.setPreSelection=function(o){var a=qe(e.props.minDate),i=qe(e.props.maxDate),s=!0;if(o){var c=Bn(o);if(a&&i)s=Zn(o,e.props.minDate,e.props.maxDate);else if(a){var l=Bn(e.props.minDate);s=Je(o,l)||ht(c,l)}else if(i){var u=sa(e.props.maxDate);s=pt(o,u)||ht(c,u)}}s&&e.setState({preSelection:o})},e.toggleCalendar=function(){e.setOpen(!e.state.open)},e.handleTimeChange=function(o){var a;if(!(e.props.selectsRange||e.props.selectsMultiple)){var i=e.props.selected?e.props.selected:e.getPreSelection(),s=e.props.selected?o:zr(i,{hour:Te(o),minute:Pe(o)});e.setState({preSelection:s});var c=(a=e.props.onChange)!==null&&a!==void 0?a:r.defaultProps.onChange;c(s),e.props.shouldCloseOnSelect&&!e.props.showTimeInput&&(e.sendFocusBackToInput(),e.setOpen(!1)),e.props.showTimeInput&&e.setOpen(!0),(e.props.showTimeSelectOnly||e.props.showTimeSelect)&&e.setState({isRenderAriaLiveMessage:!0}),e.setState({inputValue:null})}},e.onInputClick=function(){var o,a;!e.props.disabled&&!e.props.readOnly&&e.setOpen(!0),(a=(o=e.props).onInputClick)===null||a===void 0||a.call(o)},e.onInputKeyDown=function(o){var a,i,s,c,l;(i=(a=e.props).onKeyDown)===null||i===void 0||i.call(a,o);var u=o.key;if(!e.state.open&&!e.props.inline&&!e.props.preventOpenOnFocus){(u===E.ArrowDown||u===E.ArrowUp||u===E.Enter)&&e.onInputClick();return}if(e.state.open){if(u===E.ArrowDown||u===E.ArrowUp){o.preventDefault();var d=e.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":e.props.showWeekPicker&&e.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':e.props.showFullMonthYearPicker||e.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',p=((s=e.calendar)===null||s===void 0?void 0:s.componentNode)instanceof Element&&e.calendar.componentNode.querySelector(d);p instanceof HTMLElement&&p.focus({preventScroll:!0});return}var f=X(e.state.preSelection);u===E.Enter?(o.preventDefault(),e.inputOk()&&e.state.lastPreSelectChange===ro?(e.handleSelect(f,o),!e.props.shouldCloseOnSelect&&e.setPreSelection(f)):e.setOpen(!1)):u===E.Escape?(o.preventDefault(),e.sendFocusBackToInput(),e.setOpen(!1)):u===E.Tab&&e.setOpen(!1),e.inputOk()||(l=(c=e.props).onInputError)===null||l===void 0||l.call(c,{code:1,msg:no})}},e.onPortalKeyDown=function(o){var a=o.key;a===E.Escape&&(o.preventDefault(),e.setState({preventFocus:!0},function(){e.setOpen(!1),setTimeout(function(){e.setFocus(),e.setState({preventFocus:!1})})}))},e.onDayKeyDown=function(o){var a,i,s,c,l=e.props,u=l.minDate,d=l.maxDate,p=l.disabledKeyboardNavigation,f=l.showWeekPicker,h=l.shouldCloseOnSelect,m=l.locale,C=l.calendarStartDay,v=l.adjustDateOnChange,b=l.inline;if((i=(a=e.props).onKeyDown)===null||i===void 0||i.call(a,o),!p){var y=o.key,D=o.shiftKey,_=X(e.state.preSelection),S=function(V,O){var R=O;switch(V){case E.ArrowRight:R=f?Cn(O,1):Xe(O,1);break;case E.ArrowLeft:R=f?A1(O,1):L0(O,1);break;case E.ArrowUp:R=A1(O,1);break;case E.ArrowDown:R=Cn(O,1);break;case E.PageUp:R=D?kt(O,1):wt(O,1);break;case E.PageDown:R=D?je(O,1):Ee(O,1);break;case E.Home:R=nt(O,m,C);break;case E.End:R=Bu(O);break}return R},k=function(V,O){for(var R=40,T=V,B=!1,G=0,le=S(V,O);!B;){if(G>=R){le=O;break}u&&le<u&&(T=E.ArrowRight,le=ot(u,e.props)?S(T,le):u),d&&le>d&&(T=E.ArrowLeft,le=ot(d,e.props)?S(T,le):d),ot(le,e.props)?((T===E.PageUp||T===E.Home)&&(T=E.ArrowRight),(T===E.PageDown||T===E.End)&&(T=E.ArrowLeft),le=S(T,le)):B=!0,G++}return le};if(y===E.Enter){o.preventDefault(),e.handleSelect(_,o),!h&&e.setPreSelection(_);return}else if(y===E.Escape){o.preventDefault(),e.setOpen(!1),e.inputOk()||(c=(s=e.props).onInputError)===null||c===void 0||c.call(s,{code:1,msg:no});return}var M=null;switch(y){case E.ArrowLeft:case E.ArrowRight:case E.ArrowUp:case E.ArrowDown:case E.PageUp:case E.PageDown:case E.Home:case E.End:M=k(y,_);break}if(!M){e.props.onInputError&&e.props.onInputError({code:1,msg:no});return}if(o.preventDefault(),e.setState({lastPreSelectChange:ro}),v&&e.setSelected(M),e.setPreSelection(M),b){var P=fe(_),$=fe(M),A=F(_),I=F(M);P!==$||A!==I?e.setState({shouldFocusDayInline:!0}):e.setState({shouldFocusDayInline:!1})}}},e.onPopperKeyDown=function(o){var a=o.key;a===E.Escape&&(o.preventDefault(),e.sendFocusBackToInput())},e.onClearClick=function(o){o&&o.preventDefault&&o.preventDefault(),e.sendFocusBackToInput();var a=e.props,i=a.selectsRange,s=a.onChange;i?s?s([null,null],o):r.defaultProps.onChange():s?s(null,o):r.defaultProps.onChange(),e.setState({inputValue:null})},e.clear=function(){e.onClearClick()},e.onScroll=function(o){typeof e.props.closeOnScroll=="boolean"&&e.props.closeOnScroll?(o.target===document||o.target===document.documentElement||o.target===document.body)&&e.setOpen(!1):typeof e.props.closeOnScroll=="function"&&e.props.closeOnScroll(o)&&e.setOpen(!1)},e.renderCalendar=function(){var o,a;return!e.props.inline&&!e.isCalendarOpen()?null:g.createElement(L2,Z({ref:function(i){e.calendar=i}},e.props,e.state,{setOpen:e.setOpen,dateFormat:(o=e.props.dateFormatCalendar)!==null&&o!==void 0?o:r.defaultProps.dateFormatCalendar,onSelect:e.handleSelect,onClickOutside:e.handleCalendarClickOutside,holidays:Xu(e.modifyHolidays()),outsideClickIgnoreClass:La,onDropdownFocus:e.handleDropdownFocus,onTimeChange:e.handleTimeChange,className:e.props.calendarClassName,container:e.props.calendarContainer,handleOnKeyDown:e.props.onKeyDown,handleOnDayKeyDown:e.onDayKeyDown,setPreSelection:e.setPreSelection,dropdownMode:(a=e.props.dropdownMode)!==null&&a!==void 0?a:r.defaultProps.dropdownMode}),e.props.children)},e.renderAriaLiveRegion=function(){var o=e.props,a=o.dateFormat,i=a===void 0?r.defaultProps.dateFormat:a,s=o.locale,c=e.props.showTimeInput||e.props.showTimeSelect,l=c?"PPPPp":"PPPP",u;return e.props.selectsRange?u="Selected start date: ".concat(Se(e.props.startDate,{dateFormat:l,locale:s}),". ").concat(e.props.endDate?"End date: "+Se(e.props.endDate,{dateFormat:l,locale:s}):""):e.props.showTimeSelectOnly?u="Selected time: ".concat(Se(e.props.selected,{dateFormat:i,locale:s})):e.props.showYearPicker?u="Selected year: ".concat(Se(e.props.selected,{dateFormat:"yyyy",locale:s})):e.props.showMonthYearPicker?u="Selected month: ".concat(Se(e.props.selected,{dateFormat:"MMMM yyyy",locale:s})):e.props.showQuarterYearPicker?u="Selected quarter: ".concat(Se(e.props.selected,{dateFormat:"yyyy, QQQ",locale:s})):u="Selected date: ".concat(Se(e.props.selected,{dateFormat:l,locale:s})),g.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},u)},e.renderDateInput=function(){var o,a,i,s=se(e.props.className,(o={},o[La]=e.state.open,o)),c=e.props.customInput||g.createElement("input",{type:"text"}),l=e.props.customInputRef||"ref",u=e.props,d=u.dateFormat,p=d===void 0?r.defaultProps.dateFormat:d,f=u.locale,h=typeof e.props.value=="string"?e.props.value:typeof e.state.inputValue=="string"?e.state.inputValue:e.props.selectsRange?Au(e.props.startDate,e.props.endDate,{dateFormat:p,locale:f}):e.props.selectsMultiple?Iu((i=e.props.selectedDates)!==null&&i!==void 0?i:[],{dateFormat:p,locale:f}):Se(e.props.selected,{dateFormat:p,locale:f});return g.cloneElement(c,(a={},a[l]=function(m){e.input=m},a.value=h,a.onBlur=e.handleBlur,a.onChange=e.handleChange,a.onClick=e.onInputClick,a.onFocus=e.handleFocus,a.onKeyDown=e.onInputKeyDown,a.id=e.props.id,a.name=e.props.name,a.form=e.props.form,a.autoFocus=e.props.autoFocus,a.placeholder=e.props.placeholderText,a.disabled=e.props.disabled,a.autoComplete=e.props.autoComplete,a.className=se(c.props.className,s),a.title=e.props.title,a.readOnly=e.props.readOnly,a.required=e.props.required,a.tabIndex=e.props.tabIndex,a["aria-describedby"]=e.props.ariaDescribedBy,a["aria-invalid"]=e.props.ariaInvalid,a["aria-labelledby"]=e.props.ariaLabelledBy,a["aria-required"]=e.props.ariaRequired,a))},e.renderClearButton=function(){var o=e.props,a=o.isClearable,i=o.disabled,s=o.selected,c=o.startDate,l=o.endDate,u=o.clearButtonTitle,d=o.clearButtonClassName,p=d===void 0?"":d,f=o.ariaLabelClose,h=f===void 0?"Close":f,m=o.selectedDates;return a&&(s!=null||c!=null||l!=null||m!=null&&m.length)?g.createElement("button",{type:"button",className:se("react-datepicker__close-icon",p,{"react-datepicker__close-icon--disabled":i}),disabled:i,"aria-label":h,onClick:e.onClearClick,title:u,tabIndex:-1}):null},e.state=e.calcInitialState(),e.preventFocusTimeout=void 0,e}return Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:$t,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(n,e){var o,a,i,s;n.inline&&T2(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:_a(this.props.highlightDates)}),!e.focused&&!ht(n.selected,this.props.selected)&&this.setState({inputValue:null}),e.open!==this.state.open&&(e.open===!1&&this.state.open===!0&&((a=(o=this.props).onCalendarOpen)===null||a===void 0||a.call(o)),e.open===!0&&this.state.open===!1&&((s=(i=this.props).onCalendarClose)===null||s===void 0||s.call(i)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var n=this.props,e=n.showIcon,o=n.icon,a=n.calendarIconClassname,i=n.calendarIconClassName,s=n.toggleCalendarOnIconClick,c=this.state.open;return a&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),g.createElement("div",{className:"react-datepicker__input-container".concat(e?" react-datepicker__view-calendar-icon":"")},e&&g.createElement(k2,Z({icon:o,className:se(i,!i&&a,c&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var e=this.state.open?g.createElement(xa,{enableTabLoop:this.props.enableTabLoop},g.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(e=g.createElement(Ea,Z({portalId:this.props.portalId},this.props),e)),g.createElement("div",null,this.renderInputContainer(),e)}return g.createElement(x2,Z({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r})(g.Component);var P2="input",ro="navigate";function Jt(t){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jt(t)}function O2(t,r){if(Jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var e=n.call(t,r||"default");if(Jt(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function N2(t){var r=O2(t,"string");return Jt(r)=="symbol"?r:String(r)}function R2(t,r,n){return r=N2(r),r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function Ta(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,e)}return n}function Pa(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ta(Object(n),!0).forEach(function(e){R2(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var H2={npm_package_exports___require:"./dist/avocado-suite.umd.js",npm_package_devDependencies__types_node:"20.2.5",npm_package_devDependencies_vitest:"1.2.2",npm_package_dependencies_react_toastify:"9.0.3",npm_package_devDependencies__testing_library_jest_dom:"6.4.0",npm_config_user_agent:"pnpm/9.10.0 npm/? node/v20.17.0 linux x64",CI:"true",npm_package_devDependencies__testing_library_user_event:"14.5.2",npm_package_dependencies_embla_carousel_react:"^8.5.2",npm_package_devDependencies_vite:"5.0.12",npm_node_execpath:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_package_publishConfig_access:"public",npm_package_files_0:"dist",HOME:"/home/runner",npm_package_dependencies_react_select_async_paginate:"0.7.3",npm_package_devDependencies_classnames:"2.3.2",npm_package_devDependencies_sass:"1.62.1",npm_package_peerDependencies_react_toastify:"9.0.3",npm_config_auto_install_peers:"true",npm_package_devDependencies_vite_plugin_dts:"3.7.1",npm_package_devDependencies_typescript:"5.1.3",npm_package_peerDependencies_react_select_async_paginate:"0.7.3",npm_package_types:"./dist/index.d.ts",npm_package_devDependencies__types_react_dom:"18.0.11",npm_package_devDependencies__vitejs_plugin_react_swc:"3.5.0",npm_package_type:"module",npm_package_dependencies_react_datepicker:"7.3.0",npm_package_dependencies_zustand:"4.5.4",npm_package_module:"./dist/avocado-suite.es.js",npm_package_devDependencies__types_testing_library__jest_dom:"6.0.0",npm_package_dependencies__foris_avocado_icons:"workspace:*",npm_package_devDependencies__vitest_coverage_v8:"1.2.2",npm_config_registry:"https://registry.npmjs.org/",npm_config_node_linker:"hoisted",npm_package_exports___import:"./dist/avocado-suite.es.js",npm_package_dependencies__foris_avocado_core:"workspace:*",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/avocado/avocado/packages/avocado-suite/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/opt/hostedtoolcache/node/20.17.0/x64/bin:/home/runner/setup-pnpm/node_modules/.bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",TURBO_HASH:"075096b1b5c1f2d9",npm_package_name:"@foris/avocado-suite",NODE:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_config_frozen_lockfile:"",npm_package_devDependencies__vitest_ui:"1.2.2",npm_config_legacy_peer_deps:"true",LANG:"C.UTF-8",npm_package_dependencies_react_dom:"18.2.0",npm_package_main:"./dist/avocado-suite.umd.js",npm_lifecycle_script:"tsc && vite build",npm_package_scripts_test:"vitest run",NODE_PATH:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"0.32.0",npm_package_devDependencies__testing_library_react:"14.2.0",npm_package_devDependencies__types_react:"18.0.28",npm_package_devDependencies_jsdom:"24.0.0",npm_lifecycle_event:"build",npm_package_scripts_build:"tsc && vite build",npm_package_devDependencies__foris_tsconfig:"workspace:*",npm_package_scripts_test_watch:"vitest --ui",npm_package_scripts_coverage:"vitest run --coverage",npm_package_dependencies_react_select:"5.8.0",PWD:"/home/runner/work/avocado/avocado/packages/avocado-suite",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/pnpm.cjs",npm_command:"run-script",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/avocado/avocado/packages/avocado-suite",npm_package_dependencies_react:"18.2.0",npm_package_peerDependencies_react_select:"5.8.0",INIT_CWD:"/home/runner/work/avocado/avocado/packages/avocado-suite",NODE_ENV:"production"};function A2(t){if(t.sheet)return t.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===t)return document.styleSheets[r]}function I2(t){var r=document.createElement("style");return r.setAttribute("data-emotion",t.key),t.nonce!==void 0&&r.setAttribute("nonce",t.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var V2=function(){function t(n){var e=this;this._insertTag=function(o){var a;e.tags.length===0?e.insertionPoint?a=e.insertionPoint.nextSibling:e.prepend?a=e.container.firstChild:a=e.before:a=e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(o,a),e.tags.push(o)},this.isSpeedy=n.speedy===void 0?H2.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var r=t.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(I2(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var o=A2(e);try{o.insertRule(n,o.cssRules.length)}catch{}}else e.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},t}(),de="-ms-",Wn="-moz-",W="-webkit-",Oa="comm",oo="rule",ao="decl",F2="@import",Na="@keyframes",B2="@layer",Y2=Math.abs,qn=String.fromCharCode,Z2=Object.assign;function j2(t,r){return ue(t,0)^45?(((r<<2^ue(t,0))<<2^ue(t,1))<<2^ue(t,2))<<2^ue(t,3):0}function Ra(t){return t.trim()}function W2(t,r){return(t=r.exec(t))?t[0]:t}function q(t,r,n){return t.replace(r,n)}function io(t,r){return t.indexOf(r)}function ue(t,r){return t.charCodeAt(r)|0}function en(t,r,n){return t.slice(r,n)}function Ve(t){return t.length}function so(t){return t.length}function Un(t,r){return r.push(t),t}function q2(t,r){return t.map(r).join("")}var zn=1,Tt=1,Ha=0,ge=0,ae=0,Pt="";function $n(t,r,n,e,o,a,i){return{value:t,root:r,parent:n,type:e,props:o,children:a,line:zn,column:Tt,length:i,return:""}}function tn(t,r){return Z2($n("",null,null,"",null,null,0),t,{length:-t.length},r)}function U2(){return ae}function z2(){return ae=ge>0?ue(Pt,--ge):0,Tt--,ae===10&&(Tt=1,zn--),ae}function be(){return ae=ge<Ha?ue(Pt,ge++):0,Tt++,ae===10&&(Tt=1,zn++),ae}function Fe(){return ue(Pt,ge)}function Qn(){return ge}function nn(t,r){return en(Pt,t,r)}function rn(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Aa(t){return zn=Tt=1,Ha=Ve(Pt=t),ge=0,[]}function Ia(t){return Pt="",t}function Kn(t){return Ra(nn(ge-1,co(t===91?t+2:t===40?t+1:t)))}function $2(t){for(;(ae=Fe())&&ae<33;)be();return rn(t)>2||rn(ae)>3?"":" "}function Q2(t,r){for(;--r&&be()&&!(ae<48||ae>102||ae>57&&ae<65||ae>70&&ae<97););return nn(t,Qn()+(r<6&&Fe()==32&&be()==32))}function co(t){for(;be();)switch(ae){case t:return ge;case 34:case 39:t!==34&&t!==39&&co(ae);break;case 40:t===41&&co(t);break;case 92:be();break}return ge}function K2(t,r){for(;be()&&t+ae!==57&&!(t+ae===84&&Fe()===47););return"/*"+nn(r,ge-1)+"*"+qn(t===47?t:be())}function X2(t){for(;!rn(Fe());)be();return nn(t,ge)}function G2(t){return Ia(Xn("",null,null,null,[""],t=Aa(t),0,[0],t))}function Xn(t,r,n,e,o,a,i,s,c){for(var l=0,u=0,d=i,p=0,f=0,h=0,m=1,C=1,v=1,b=0,y="",D=o,_=a,S=e,k=y;C;)switch(h=b,b=be()){case 40:if(h!=108&&ue(k,d-1)==58){io(k+=q(Kn(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Kn(b);break;case 9:case 10:case 13:case 32:k+=$2(h);break;case 92:k+=Q2(Qn()-1,7);continue;case 47:switch(Fe()){case 42:case 47:Un(J2(K2(be(),Qn()),r,n),c);break;default:k+="/"}break;case 123*m:s[l++]=Ve(k)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:C=0;case 59+u:v==-1&&(k=q(k,/\f/g,"")),f>0&&Ve(k)-d&&Un(f>32?Fa(k+";",e,n,d-1):Fa(q(k," ","")+";",e,n,d-2),c);break;case 59:k+=";";default:if(Un(S=Va(k,r,n,l,u,o,s,y,D=[],_=[],d),a),b===123)if(u===0)Xn(k,r,S,S,D,a,d,s,_);else switch(p===99&&ue(k,3)===110?100:p){case 100:case 108:case 109:case 115:Xn(t,S,S,e&&Un(Va(t,S,S,0,0,o,s,y,o,D=[],d),_),o,_,d,s,e?D:_);break;default:Xn(k,S,S,S,[""],_,0,s,_)}}l=u=f=0,m=v=1,y=k="",d=i;break;case 58:d=1+Ve(k),f=h;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&z2()==125)continue}switch(k+=qn(b),b*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[l++]=(Ve(k)-1)*v,v=1;break;case 64:Fe()===45&&(k+=Kn(be())),p=Fe(),u=d=Ve(y=k+=X2(Qn())),b++;break;case 45:h===45&&Ve(k)==2&&(m=0)}}return a}function Va(t,r,n,e,o,a,i,s,c,l,u){for(var d=o-1,p=o===0?a:[""],f=so(p),h=0,m=0,C=0;h<e;++h)for(var v=0,b=en(t,d+1,d=Y2(m=i[h])),y=t;v<f;++v)(y=Ra(m>0?p[v]+" "+b:q(b,/&\f/g,p[v])))&&(c[C++]=y);return $n(t,r,n,o===0?oo:s,c,l,u)}function J2(t,r,n){return $n(t,r,n,Oa,qn(U2()),en(t,2,-2),0)}function Fa(t,r,n,e){return $n(t,r,n,ao,en(t,0,e),en(t,e+1,-1),e)}function Ot(t,r){for(var n="",e=so(t),o=0;o<e;o++)n+=r(t[o],o,t,r)||"";return n}function ed(t,r,n,e){switch(t.type){case B2:if(t.children.length)break;case F2:case ao:return t.return=t.return||t.value;case Oa:return"";case Na:return t.return=t.value+"{"+Ot(t.children,e)+"}";case oo:t.value=t.props.join(",")}return Ve(n=Ot(t.children,e))?t.return=t.value+"{"+n+"}":""}function td(t){var r=so(t);return function(n,e,o,a){for(var i="",s=0;s<r;s++)i+=t[s](n,e,o,a)||"";return i}}function nd(t){return function(r){r.root||(r=r.return)&&t(r)}}function rd(t){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=t(n)),r[n]}}var od=function(t,r,n){for(var e=0,o=0;e=o,o=Fe(),e===38&&o===12&&(r[n]=1),!rn(o);)be();return nn(t,ge)},ad=function(t,r){var n=-1,e=44;do switch(rn(e)){case 0:e===38&&Fe()===12&&(r[n]=1),t[n]+=od(ge-1,r,n);break;case 2:t[n]+=Kn(e);break;case 4:if(e===44){t[++n]=Fe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=qn(e)}while(e=be());return t},id=function(t,r){return Ia(ad(Aa(t),r))},Ba=new WeakMap,sd=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,e=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ba.get(n))&&!e){Ba.set(t,!0);for(var o=[],a=id(r,o),i=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<i.length;l++,c++)t.props[c]=o[s]?a[s].replace(/&\f/g,i[l]):i[l]+" "+a[s]}}},cd=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ya(t,r){switch(j2(t,r)){case 5103:return W+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return W+t+Wn+t+de+t+t;case 6828:case 4268:return W+t+de+t+t;case 6165:return W+t+de+"flex-"+t+t;case 5187:return W+t+q(t,/(\w+).+(:[^]+)/,W+"box-$1$2"+de+"flex-$1$2")+t;case 5443:return W+t+de+"flex-item-"+q(t,/flex-|-self/,"")+t;case 4675:return W+t+de+"flex-line-pack"+q(t,/align-content|flex-|-self/,"")+t;case 5548:return W+t+de+q(t,"shrink","negative")+t;case 5292:return W+t+de+q(t,"basis","preferred-size")+t;case 6060:return W+"box-"+q(t,"-grow","")+W+t+de+q(t,"grow","positive")+t;case 4554:return W+q(t,/([^-])(transform)/g,"$1"+W+"$2")+t;case 6187:return q(q(q(t,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),t,"")+t;case 5495:case 3959:return q(t,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return q(q(t,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+de+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+t+t;case 4095:case 3583:case 4068:case 2532:return q(t,/(.+)-inline(.+)/,W+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ve(t)-1-r>6)switch(ue(t,r+1)){case 109:if(ue(t,r+4)!==45)break;case 102:return q(t,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+Wn+(ue(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~io(t,"stretch")?Ya(q(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(ue(t,r+1)!==115)break;case 6444:switch(ue(t,Ve(t)-3-(~io(t,"!important")&&10))){case 107:return q(t,":",":"+W)+t;case 101:return q(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(ue(t,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+de+"$2box$3")+t}break;case 5936:switch(ue(t,r+11)){case 114:return W+t+de+q(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return W+t+de+q(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return W+t+de+q(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return W+t+de+t+t}return t}var ld=function(t,r,n,e){if(t.length>-1&&!t.return)switch(t.type){case ao:t.return=Ya(t.value,t.length);break;case Na:return Ot([tn(t,{value:q(t.value,"@","@"+W)})],e);case oo:if(t.length)return q2(t.props,function(o){switch(W2(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ot([tn(t,{props:[q(o,/:(read-\w+)/,":"+Wn+"$1")]})],e);case"::placeholder":return Ot([tn(t,{props:[q(o,/:(plac\w+)/,":"+W+"input-$1")]}),tn(t,{props:[q(o,/:(plac\w+)/,":"+Wn+"$1")]}),tn(t,{props:[q(o,/:(plac\w+)/,de+"input-$1")]})],e)}return""})}},ud=[ld],dd=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var m=h.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var e=t.stylisPlugins||ud,o={},a,i=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var m=h.getAttribute("data-emotion").split(" "),C=1;C<m.length;C++)o[m[C]]=!0;i.push(h)});var s,c=[sd,cd];{var l,u=[ed,nd(function(h){l.insert(h)})],d=td(c.concat(e,u)),p=function(h){return Ot(G2(h),d)};s=function(h,m,C,v){l=C,p(h?h+"{"+m.styles+"}":m.styles),v&&(f.inserted[m.name]=!0)}}var f={key:r,sheet:new V2({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return f.sheet.hydrate(i),f},Za={exports:{}},z={};/** @license React v16.13.1
|
|
540
|
+
*/var zl=function(r,e){return zl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},zl(r,e)};function Le(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");zl(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var te=function(){return te=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},te.apply(this,arguments)};function Qt(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return r.concat(s||Array.prototype.slice.call(e))}var My=function(r){var e=r.showTimeSelectOnly,t=e===void 0?!1:e,n=r.showTime,i=n===void 0?!1:n,s=r.className,o=r.children,a=t?"Choose Time":"Choose Date".concat(i?" and Time":"");return v.createElement("div",{className:s,role:"dialog","aria-label":a,"aria-modal":"true"},o)},H;(function(r){r.ArrowUp="ArrowUp",r.ArrowDown="ArrowDown",r.ArrowLeft="ArrowLeft",r.ArrowRight="ArrowRight",r.PageUp="PageUp",r.PageDown="PageDown",r.Home="Home",r.End="End",r.Enter="Enter",r.Space=" ",r.Tab="Tab",r.Escape="Escape",r.Backspace="Backspace",r.X="x"})(H||(H={}));function Df(){var r=typeof window<"u"?window:globalThis;return r}var Ei=12,Py=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function he(r){if(r==null)return new Date;var e=typeof r=="string"?o7(r):W(r);return mn(e)?e:new Date}function Ty(r,e,t,n,i){var s,o=null,a=Vr(t)||Vr(Ri()),l=!0;if(Array.isArray(e))return e.forEach(function(u){var h=Al(r,u,new Date,{locale:a,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});n&&(l=mn(h,i)&&r===ge(h,u,t)),mn(h,i)&&l&&(o=h)}),o;if(o=Al(r,e,new Date,{locale:a,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),n)l=mn(o)&&r===ge(o,e,t);else if(!mn(o)){var c=((s=e.match(Py))!==null&&s!==void 0?s:[]).map(function(u){var h=u[0];if(h==="p"||h==="P"){var d=Xs[h];return a?d(u,a.formatLong):h}return u}).join("");r.length>0&&(o=Al(r,c.slice(0,r.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),mn(o)||(o=new Date(r))}return mn(o)&&l?o:null}function mn(r,e){return Ks(r)&&!rr(r,e??new Date("1/1/1800"))}function ge(r,e,t){if(t==="en")return Yd(r,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var n=t?Vr(t):void 0;return t&&!n&&console.warn('A locale object was not found for the provided string ["'.concat(t,'"].')),!n&&Ri()&&Vr(Ri())&&(n=Vr(Ri())),Yd(r,e,{locale:n,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function vt(r,e){var t=e.dateFormat,n=e.locale,i=Array.isArray(t)&&t.length>0?t[0]:t;return r&&ge(r,i,n)||""}function Ey(r,e,t){if(!r)return"";var n=vt(r,t),i=e?vt(e,t):"";return"".concat(n," - ").concat(i)}function Ay(r,e){if(!(r!=null&&r.length))return"";var t=r[0]?vt(r[0],e):"";if(r.length===1)return t;if(r.length===2&&r[1]){var n=vt(r[1],e);return"".concat(t,", ").concat(n)}var i=r.length-1;return"".concat(t," (+").concat(i,")")}function Yl(r,e){var t=e.hour,n=t===void 0?0:t,i=e.minute,s=i===void 0?0:i,o=e.second,a=o===void 0?0:o;return Js(eo(to(r,a),s),n)}function Ry(r){return Ol(r)}function Ly(r,e){return ge(r,"ddd",e)}function po(r){return Jn(r)}function Rn(r,e,t){var n=Vr(e||Ri());return hn(r,{locale:n,weekStartsOn:t})}function Ln(r){return nf(r)}function Ai(r){return Zs(r)}function Mf(r){return Pl(r)}function Pf(){return Jn(he())}function Tf(r){return Ld(r)}function Ny(r){return h8(r)}function Wt(r,e){return r&&e?c4(r,e):!r&&!e}function Ze(r,e){return r&&e?a4(r,e):!r&&!e}function mo(r,e){return r&&e?l4(r,e):!r&&!e}function ee(r,e){return r&&e?o4(r,e):!r&&!e}function sr(r,e){return r&&e?s4(r,e):!r&&!e}function go(r,e,t){var n,i=Jn(e),s=Ld(t);try{n=_i(r,{start:i,end:s})}catch{n=!1}return n}function Ri(){var r=Df();return r.__localeId__}function Vr(r){if(typeof r=="string"){var e=Df();return e.__localeData__?e.__localeData__[r]:void 0}else return r}function By(r,e,t){return e(ge(r,"EEEE",t))}function Iy(r,e){return ge(r,"EEEEEE",e)}function Hy(r,e){return ge(r,"EEE",e)}function $l(r,e){return ge(lt(he(),r),"LLLL",e)}function Ef(r,e){return ge(lt(he(),r),"LLL",e)}function Vy(r,e){return ge(Ar(he(),r),"QQQ",e)}function Nn(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.maxDate,s=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,l=t.includeDateIntervals,c=t.filterDate;return Li(r,{minDate:n,maxDate:i})||s&&s.some(function(u){var h;return u instanceof Date?ee(r,u):ee(r,(h=u.date)!==null&&h!==void 0?h:new Date)})||o&&o.some(function(u){var h=u.start,d=u.end;return _i(r,{start:h,end:d})})||a&&!a.some(function(u){return ee(r,u)})||l&&!l.some(function(u){var h=u.start,d=u.end;return _i(r,{start:h,end:d})})||c&&!c(he(r))||!1}function Ul(r,e){var t=e===void 0?{}:e,n=t.excludeDates,i=t.excludeDateIntervals;return i&&i.length>0?i.some(function(s){var o=s.start,a=s.end;return _i(r,{start:o,end:a})}):n&&n.some(function(s){var o;return s instanceof Date?ee(r,s):ee(r,(o=s.date)!==null&&o!==void 0?o:new Date)})||!1}function Af(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.maxDate,s=t.excludeDates,o=t.includeDates,a=t.filterDate;return Li(r,{minDate:n?nf(n):void 0,maxDate:i?c8(i):void 0})||(s==null?void 0:s.some(function(l){return Ze(r,l instanceof Date?l:l.date)}))||o&&!o.some(function(l){return Ze(r,l)})||a&&!a(he(r))||!1}function Zl(r,e,t,n){var i=K(r),s=Ue(r),o=K(e),a=Ue(e),l=K(n);return i===o&&i===l?s<=t&&t<=a:i<o?l===i&&s<=t||l===o&&a>=t||l<o&&l>i:!1}function Fy(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.maxDate,s=t.excludeDates,o=t.includeDates;return Li(r,{minDate:n,maxDate:i})||s&&s.some(function(a){return Ze(a instanceof Date?a:a.date,r)})||o&&!o.some(function(a){return Ze(a,r)})||!1}function Xl(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.maxDate,s=t.excludeDates,o=t.includeDates,a=t.filterDate;return Li(r,{minDate:n,maxDate:i})||(s==null?void 0:s.some(function(l){return mo(r,l instanceof Date?l:l.date)}))||o&&!o.some(function(l){return mo(r,l)})||a&&!a(he(r))||!1}function Kl(r,e,t){if(!e||!t||!Ks(e)||!Ks(t))return!1;var n=K(e),i=K(t);return n<=r&&i>=r}function Gl(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.maxDate,s=t.excludeDates,o=t.includeDates,a=t.filterDate,l=new Date(r,0,1);return Li(l,{minDate:n?Zs(n):void 0,maxDate:i?Nd(i):void 0})||(s==null?void 0:s.some(function(c){return Wt(l,c instanceof Date?c:c.date)}))||o&&!o.some(function(c){return Wt(l,c)})||a&&!a(he(l))||!1}function Jl(r,e,t,n){var i=K(r),s=er(r),o=K(e),a=er(e),l=K(n);return i===o&&i===l?s<=t&&t<=a:i<o?l===i&&s<=t||l===o&&a>=t||l<o&&l>i:!1}function Li(r,e){var t,n=e===void 0?{}:e,i=n.minDate,s=n.maxDate;return(t=i&&xi(r,i)<0||s&&xi(r,s)>0)!==null&&t!==void 0?t:!1}function Rf(r,e){return e.some(function(t){return Nt(t)===Nt(r)&&Bt(t)===Bt(r)&&fn(t)===fn(r)})}function Lf(r,e){var t=e===void 0?{}:e,n=t.excludeTimes,i=t.includeTimes,s=t.filterTime;return n&&Rf(r,n)||i&&!Rf(r,i)||s&&!s(r)||!1}function Nf(r,e){var t=e.minTime,n=e.maxTime;if(!t||!n)throw new Error("Both minTime and maxTime props required");var i=he();i=Js(i,Nt(r)),i=eo(i,Bt(r)),i=to(i,fn(r));var s=he();s=Js(s,Nt(t)),s=eo(s,Bt(t)),s=to(s,fn(t));var o=he();o=Js(o,Nt(n)),o=eo(o,Bt(n)),o=to(o,fn(n));var a;try{a=!_i(i,{start:s,end:o})}catch{a=!1}return a}function Bf(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.includeDates,s=Rr(r,1);return n&&Ys(n,s)>0||i&&i.every(function(o){return Ys(o,s)>0})||!1}function If(r,e){var t=e===void 0?{}:e,n=t.maxDate,i=t.includeDates,s=Mt(r,1);return n&&Ys(s,n)>0||i&&i.every(function(o){return Ys(s,o)>0})||!1}function Qy(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.includeDates,s=Zs(r),o=rf(s,1);return n&&$s(n,o)>0||i&&i.every(function(a){return $s(a,o)>0})||!1}function Wy(r,e){var t=e===void 0?{}:e,n=t.maxDate,i=t.includeDates,s=Nd(r),o=xl(s,1);return n&&$s(o,n)>0||i&&i.every(function(a){return $s(o,a)>0})||!1}function Hf(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.includeDates,s=Lr(r,1);return n&&Us(n,s)>0||i&&i.every(function(o){return Us(o,s)>0})||!1}function jy(r,e){var t=e===void 0?{}:e,n=t.minDate,i=t.yearItemNumber,s=i===void 0?Ei:i,o=Ai(Lr(r,s)),a=Bn(o,s).endPeriod,l=n&&K(n);return l&&l>a||!1}function Vf(r,e){var t=e===void 0?{}:e,n=t.maxDate,i=t.includeDates,s=un(r,1);return n&&Us(s,n)>0||i&&i.every(function(o){return Us(s,o)>0})||!1}function qy(r,e){var t=e===void 0?{}:e,n=t.maxDate,i=t.yearItemNumber,s=i===void 0?Ei:i,o=un(r,s),a=Bn(o,s).startPeriod,l=n&&K(n);return l&&l<a||!1}function Ff(r){var e=r.minDate,t=r.includeDates;if(t&&e){var n=t.filter(function(i){return xi(i,e)>=0});return Zd(n)}else return t?Zd(t):e}function Qf(r){var e=r.maxDate,t=r.includeDates;if(t&&e){var n=t.filter(function(i){return xi(i,e)<=0});return Ud(n)}else return t?Ud(t):e}function Wf(r,e){var t;r===void 0&&(r=[]),e===void 0&&(e="react-datepicker__day--highlighted");for(var n=new Map,i=0,s=r.length;i<s;i++){var o=r[i];if(dn(o)){var a=ge(o,"MM.dd.yyyy"),l=n.get(a)||[];l.includes(e)||(l.push(e),n.set(a,l))}else if(typeof o=="object"){var c=Object.keys(o),u=(t=c[0])!==null&&t!==void 0?t:"",h=o[u];if(typeof u=="string"&&Array.isArray(h))for(var d=0,f=h.length;d<f;d++){var p=h[d];if(p){var a=ge(p,"MM.dd.yyyy"),l=n.get(a)||[];l.includes(u)||(l.push(u),n.set(a,l))}}}}return n}function zy(r,e){return r.length!==e.length?!1:r.every(function(t,n){return t===e[n]})}function Yy(r,e){r===void 0&&(r=[]),e===void 0&&(e="react-datepicker__day--holidays");var t=new Map;return r.forEach(function(n){var i=n.date,s=n.holidayName;if(dn(i)){var o=ge(i,"MM.dd.yyyy"),a=t.get(o)||{className:"",holidayNames:[]};if(!("className"in a&&a.className===e&&zy(a.holidayNames,[s]))){a.className=e;var l=a.holidayNames;a.holidayNames=l?Qt(Qt([],l,!0),[s],!1):[s],t.set(o,a)}}}),t}function $y(r,e,t,n,i){for(var s=i.length,o=[],a=0;a<s;a++){var l=r,c=i[a];c&&(l=a8(l,Nt(c)),l=kl(l,Bt(c)),l=l8(l,fn(c)));var u=kl(r,(t+1)*n);Tn(l,e)&&rr(l,u)&&c!=null&&o.push(c)}return o}function jf(r){return r<10?"0".concat(r):"".concat(r)}function Bn(r,e){e===void 0&&(e=Ei);var t=Math.ceil(K(r)/e)*e,n=t-(e-1);return{startPeriod:n,endPeriod:t}}function Uy(r){var e=new Date(r.getFullYear(),r.getMonth(),r.getDate()),t=new Date(r.getFullYear(),r.getMonth(),r.getDate(),24);return Math.round((+t-+e)/36e5)}function qf(r){var e=r.getSeconds(),t=r.getMilliseconds();return W(r.getTime()-e*1e3-t)}function Zy(r,e){return qf(r).getTime()===qf(e).getTime()}function zf(r){if(!dn(r))throw new Error("Invalid date");var e=new Date(r);return e.setHours(0,0,0,0),e}function Yf(r,e){if(!dn(r)||!dn(e))throw new Error("Invalid date received");var t=zf(r),n=zf(e);return rr(t,n)}function $f(r){return r.key===H.Space}var Xy=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.onTimeChange=function(i){var s,o;n.setState({time:i});var a=n.props.date,l=a instanceof Date&&!isNaN(+a),c=l?a:new Date;if(i!=null&&i.includes(":")){var u=i.split(":"),h=u[0],d=u[1];c.setHours(Number(h)),c.setMinutes(Number(d))}(o=(s=n.props).onChange)===null||o===void 0||o.call(s,c)},n.renderTimeInput=function(){var i=n.state.time,s=n.props,o=s.date,a=s.timeString,l=s.customTimeInput;return l?v.cloneElement(l,{date:o,value:i,onChange:n.onTimeChange}):v.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:i,onChange:function(c){n.onTimeChange(c.target.value||a)}})},n.state={time:n.props.timeString},n}return e.getDerivedStateFromProps=function(t,n){return t.timeString!==n.time?{time:t.timeString}:null},e.prototype.render=function(){return v.createElement("div",{className:"react-datepicker__input-time-container"},v.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),v.createElement("div",{className:"react-datepicker-time__input-container"},v.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},e}(v.Component),Ky=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.dayEl=v.createRef(),t.handleClick=function(n){!t.isDisabled()&&t.props.onClick&&t.props.onClick(n)},t.handleMouseEnter=function(n){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(n)},t.handleOnKeyDown=function(n){var i,s,o=n.key;o===H.Space&&(n.preventDefault(),n.key=H.Enter),(s=(i=t.props).handleOnKeyDown)===null||s===void 0||s.call(i,n)},t.isSameDay=function(n){return ee(t.props.day,n)},t.isKeyboardSelected=function(){var n;if(t.props.disabledKeyboardNavigation)return!1;var i=t.props.selectsMultiple?(n=t.props.selectedDates)===null||n===void 0?void 0:n.some(function(o){return t.isSameDayOrWeek(o)}):t.isSameDayOrWeek(t.props.selected),s=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!i&&t.isSameDayOrWeek(t.props.preSelection)&&!s},t.isDisabled=function(n){return n===void 0&&(n=t.props.day),Nn(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(){return Ul(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return ee(t.props.day,Rn(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(n){return t.props.showWeekPicker&&ee(n,Rn(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(n){return t.isSameDay(n)||t.isSameWeek(n)},t.getHighLightedClass=function(){var n=t.props,i=n.day,s=n.highlightDates;if(!s)return!1;var o=ge(i,"MM.dd.yyyy");return s.get(o)},t.getHolidaysClass=function(){var n,i=t.props,s=i.day,o=i.holidays;if(!o)return[void 0];var a=ge(s,"MM.dd.yyyy");return o.has(a)?[(n=o.get(a))===null||n===void 0?void 0:n.className]:[void 0]},t.isInRange=function(){var n=t.props,i=n.day,s=n.startDate,o=n.endDate;return!s||!o?!1:go(i,s,o)},t.isInSelectingRange=function(){var n,i=t.props,s=i.day,o=i.selectsStart,a=i.selectsEnd,l=i.selectsRange,c=i.selectsDisabledDaysInRange,u=i.startDate,h=i.endDate,d=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return!(o||a||l)||!d||!c&&t.isDisabled()?!1:o&&h&&(rr(d,h)||sr(d,h))?go(s,d,h):a&&u&&(Tn(d,u)||sr(d,u))||l&&u&&!h&&(Tn(d,u)||sr(d,u))?go(s,u,d):!1},t.isSelectingRangeStart=function(){var n;if(!t.isInSelectingRange())return!1;var i=t.props,s=i.day,o=i.startDate,a=i.selectsStart,l=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return a?ee(s,l):ee(s,o)},t.isSelectingRangeEnd=function(){var n;if(!t.isInSelectingRange())return!1;var i=t.props,s=i.day,o=i.endDate,a=i.selectsEnd,l=i.selectsRange,c=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return a||l?ee(s,c):ee(s,o)},t.isRangeStart=function(){var n=t.props,i=n.day,s=n.startDate,o=n.endDate;return!s||!o?!1:ee(s,i)},t.isRangeEnd=function(){var n=t.props,i=n.day,s=n.startDate,o=n.endDate;return!s||!o?!1:ee(o,i)},t.isWeekend=function(){var n=i4(t.props.day);return n===0||n===6},t.isAfterMonth=function(){return t.props.month!==void 0&&(t.props.month+1)%12===Ue(t.props.day)},t.isBeforeMonth=function(){return t.props.month!==void 0&&(Ue(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(he())},t.isSelected=function(){var n;return t.props.selectsMultiple?(n=t.props.selectedDates)===null||n===void 0?void 0:n.some(function(i){return t.isSameDayOrWeek(i)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(n){var i=t.props.dayClassName?t.props.dayClassName(n):void 0;return Re("react-datepicker__day",i,"react-datepicker__day--"+Ly(t.props.day),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var n=t.props,i=n.day,s=n.ariaLabelPrefixWhenEnabled,o=s===void 0?"Choose":s,a=n.ariaLabelPrefixWhenDisabled,l=a===void 0?"Not available":a,c=t.isDisabled()||t.isExcluded()?l:o;return"".concat(c," ").concat(ge(i,"PPPP",t.props.locale))},t.getTitle=function(){var n=t.props,i=n.day,s=n.holidays,o=s===void 0?new Map:s,a=n.excludeDates,l=ge(i,"MM.dd.yyyy"),c=[];return o.has(l)&&c.push.apply(c,o.get(l).holidayNames),t.isExcluded()&&c.push(a==null?void 0:a.filter(function(u){return u instanceof Date?ee(u,i):ee(u==null?void 0:u.date,i)}).map(function(u){if(!(u instanceof Date))return u==null?void 0:u.message})),c.join(", ")},t.getTabIndex=function(){var n=t.props.selected,i=t.props.preSelection,s=!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(n)&&ee(i,n))?0:-1;return s},t.handleFocusDay=function(){var n;t.shouldFocusDay()&&((n=t.dayEl.current)===null||n===void 0||n.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents($d(t.props.day),t.props.day):$d(t.props.day)},t.render=function(){return v.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"option",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&v.createElement("span",{className:"overlay"},t.getTitle()))},t}return e.prototype.componentDidMount=function(){this.handleFocusDay()},e.prototype.componentDidUpdate=function(){this.handleFocusDay()},e.prototype.shouldFocusDay=function(){var t=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&(t=!0),this.isDuplicateDay()&&(t=!1)),t},e.prototype.isDayActiveElement=function(){var t,n,i;return((n=(t=this.props.containerRef)===null||t===void 0?void 0:t.current)===null||n===void 0?void 0:n.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},e.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},e}(v.Component),Gy=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.weekNumberEl=v.createRef(),t.handleClick=function(n){t.props.onClick&&t.props.onClick(n)},t.handleOnKeyDown=function(n){var i,s,o=n.key;o===H.Space&&(n.preventDefault(),n.key=H.Enter),(s=(i=t.props).handleOnKeyDown)===null||s===void 0||s.call(i,n)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!ee(t.props.date,t.props.selected)&&ee(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||ee(t.props.date,t.props.selected)&&ee(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(n){var i=!1;t.getTabIndex()===0&&!(n!=null&&n.isInputFocused)&&ee(t.props.date,t.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(i=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},e.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},e.prototype.render=function(){var t=this.props,n=t.weekNumber,i=t.ariaLabelPrefix,s=i===void 0?e.defaultProps.ariaLabelPrefix:i,o=t.onClick,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!o,"react-datepicker__week-number--selected":!!o&&ee(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return v.createElement("div",{ref:this.weekNumberEl,className:Re(a),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)},e}(v.Component),Jy=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.isDisabled=function(n){return Nn(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(n,i){t.props.onDayClick&&t.props.onDayClick(n,i)},t.handleDayMouseEnter=function(n){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(n)},t.handleWeekClick=function(n,i,s){for(var o,a,l,c=new Date(n),u=0;u<7;u++){var h=new Date(n);h.setDate(h.getDate()+u);var d=!t.isDisabled(h);if(d){c=h;break}}typeof t.props.onWeekSelect=="function"&&t.props.onWeekSelect(c,i,s),t.props.showWeekPicker&&t.handleDayClick(c,s),((o=t.props.shouldCloseOnSelect)!==null&&o!==void 0?o:e.defaultProps.shouldCloseOnSelect)&&((l=(a=t.props).setOpen)===null||l===void 0||l.call(a,!1))},t.formatWeekNumber=function(n){return t.props.formatWeekNumber?t.props.formatWeekNumber(n):Ry(n)},t.renderDays=function(){var n=t.startOfWeek(),i=[],s=t.formatWeekNumber(n);if(t.props.showWeekNumber){var o=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,n,s):void 0;i.push(v.createElement(Gy,te({key:"W"},e.defaultProps,t.props,{weekNumber:s,date:n,onClick:o})))}return i.concat([0,1,2,3,4,5,6].map(function(a){var l=Mn(n,a);return v.createElement(Ky,te({},e.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:l.valueOf(),day:l,onClick:t.handleDayClick.bind(t,l),onMouseEnter:t.handleDayMouseEnter.bind(t,l)}))}))},t.startOfWeek=function(){return Rn(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!ee(t.startOfWeek(),t.props.selected)&&ee(t.startOfWeek(),t.props.preSelection)},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":ee(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return v.createElement("div",{className:Re(t)},this.renderDays())},e}(v.Component),Ni,eb=6,Fr={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},ec=(Ni={},Ni[Fr.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Ni[Fr.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Ni[Fr.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Ni),yo=1;function Uf(r,e){return r?Fr.FOUR_COLUMNS:e?Fr.TWO_COLUMNS:Fr.THREE_COLUMNS}var tb=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.MONTH_REFS=Qt([],Array(12),!0).map(function(){return v.createRef()}),t.QUARTER_REFS=Qt([],Array(4),!0).map(function(){return v.createRef()}),t.isDisabled=function(n){return Nn(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(n){return Ul(n,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(n,i){var s,o;(o=(s=t.props).onDayClick)===null||o===void 0||o.call(s,n,i,t.props.orderInDisplay)},t.handleDayMouseEnter=function(n){var i,s;(s=(i=t.props).onDayMouseEnter)===null||s===void 0||s.call(i,n)},t.handleMouseLeave=function(){var n,i;(i=(n=t.props).onMouseLeave)===null||i===void 0||i.call(n)},t.isRangeStartMonth=function(n){var i=t.props,s=i.day,o=i.startDate,a=i.endDate;return!o||!a?!1:Ze(lt(s,n),o)},t.isRangeStartQuarter=function(n){var i=t.props,s=i.day,o=i.startDate,a=i.endDate;return!o||!a?!1:mo(Ar(s,n),o)},t.isRangeEndMonth=function(n){var i=t.props,s=i.day,o=i.startDate,a=i.endDate;return!o||!a?!1:Ze(lt(s,n),a)},t.isRangeEndQuarter=function(n){var i=t.props,s=i.day,o=i.startDate,a=i.endDate;return!o||!a?!1:mo(Ar(s,n),a)},t.isInSelectingRangeMonth=function(n){var i,s=t.props,o=s.day,a=s.selectsStart,l=s.selectsEnd,c=s.selectsRange,u=s.startDate,h=s.endDate,d=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return!(a||l||c)||!d?!1:a&&h?Zl(d,h,n,o):l&&u||c&&u&&!h?Zl(u,d,n,o):!1},t.isSelectingMonthRangeStart=function(n){var i;if(!t.isInSelectingRangeMonth(n))return!1;var s=t.props,o=s.day,a=s.startDate,l=s.selectsStart,c=lt(o,n),u=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return l?Ze(c,u):Ze(c,a)},t.isSelectingMonthRangeEnd=function(n){var i;if(!t.isInSelectingRangeMonth(n))return!1;var s=t.props,o=s.day,a=s.endDate,l=s.selectsEnd,c=s.selectsRange,u=lt(o,n),h=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return l||c?Ze(u,h):Ze(u,a)},t.isInSelectingRangeQuarter=function(n){var i,s=t.props,o=s.day,a=s.selectsStart,l=s.selectsEnd,c=s.selectsRange,u=s.startDate,h=s.endDate,d=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return!(a||l||c)||!d?!1:a&&h?Jl(d,h,n,o):l&&u||c&&u&&!h?Jl(u,d,n,o):!1},t.isWeekInMonth=function(n){var i=t.props.day,s=Mn(n,6);return Ze(n,i)||Ze(s,i)},t.isCurrentMonth=function(n,i){return K(n)===K(he())&&i===Ue(he())},t.isCurrentQuarter=function(n,i){return K(n)===K(he())&&i===er(he())},t.isSelectedMonth=function(n,i,s){return Ue(s)===i&&K(n)===K(s)},t.isSelectMonthInList=function(n,i,s){return s.some(function(o){return t.isSelectedMonth(n,i,o)})},t.isSelectedQuarter=function(n,i,s){return er(n)===i&&K(n)===K(s)},t.renderWeeks=function(){for(var n=[],i=t.props.fixedHeight,s=0,o=!1,a=Rn(Ln(t.props.day),t.props.locale,t.props.calendarStartDay),l=function(p){return t.props.showWeekPicker?Rn(p,t.props.locale,t.props.calendarStartDay):t.props.preSelection},c=function(p){return t.props.showWeekPicker?Rn(p,t.props.locale,t.props.calendarStartDay):t.props.selected},u=t.props.selected?c(t.props.selected):void 0,h=t.props.preSelection?l(t.props.preSelection):void 0;n.push(v.createElement(Jy,te({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:s,day:a,month:Ue(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:u,preSelection:h,showWeekNumber:t.props.showWeekNumbers}))),!o;){s++,a=qs(a,1);var d=i&&s>=eb,f=!i&&!t.isWeekInMonth(a);if(d||f)if(t.props.peekNextMonth)o=!0;else break}return n},t.onMonthClick=function(n,i){var s=t.isMonthDisabledForLabelDate(i),o=s.isDisabled,a=s.labelDate;o||t.handleDayClick(Ln(a),n)},t.onMonthMouseEnter=function(n){var i=t.isMonthDisabledForLabelDate(n),s=i.isDisabled,o=i.labelDate;s||t.handleDayMouseEnter(Ln(o))},t.handleMonthNavigation=function(n,i){var s,o,a,l;(o=(s=t.props).setPreSelection)===null||o===void 0||o.call(s,i),(l=(a=t.MONTH_REFS[n])===null||a===void 0?void 0:a.current)===null||l===void 0||l.focus()},t.handleKeyboardNavigation=function(n,i,s){var o,a=t.props,l=a.selected,c=a.preSelection,u=a.setPreSelection,h=a.minDate,d=a.maxDate,f=a.showFourColumnMonthYearPicker,p=a.showTwoColumnMonthYearPicker;if(c){var m=Uf(f,p),g=t.getVerticalOffset(m),y=(o=ec[m])===null||o===void 0?void 0:o.grid,C=function(k,D,P){var j,E,T=D,B=P;switch(k){case H.ArrowRight:T=Mt(D,yo),B=P===11?0:P+yo;break;case H.ArrowLeft:T=Rr(D,yo),B=P===0?11:P-yo;break;case H.ArrowUp:T=Rr(D,g),B=!((j=y==null?void 0:y[0])===null||j===void 0)&&j.includes(P)?P+12-g:P-g;break;case H.ArrowDown:T=Mt(D,g),B=!((E=y==null?void 0:y[y.length-1])===null||E===void 0)&&E.includes(P)?P-12+g:P+g;break}return{newCalculatedDate:T,newCalculatedMonth:B}},w=function(k,D,P){for(var j=40,E=k,T=!1,B=0,A=C(E,D,P),N=A.newCalculatedDate,R=A.newCalculatedMonth;!T;){if(B>=j){N=D,R=P;break}if(h&&N<h){E=H.ArrowRight;var q=C(E,N,R);N=q.newCalculatedDate,R=q.newCalculatedMonth}if(d&&N>d){E=H.ArrowLeft;var q=C(E,N,R);N=q.newCalculatedDate,R=q.newCalculatedMonth}if(Fy(N,t.props)){var q=C(E,N,R);N=q.newCalculatedDate,R=q.newCalculatedMonth}else T=!0;B++}return{newCalculatedDate:N,newCalculatedMonth:R}};if(i===H.Enter){t.isMonthDisabled(s)||(t.onMonthClick(n,s),u==null||u(l));return}var x=w(i,c,s),b=x.newCalculatedDate,S=x.newCalculatedMonth;switch(i){case H.ArrowRight:case H.ArrowLeft:case H.ArrowUp:case H.ArrowDown:t.handleMonthNavigation(S,b);break}}},t.getVerticalOffset=function(n){var i,s;return(s=(i=ec[n])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&s!==void 0?s:0},t.onMonthKeyDown=function(n,i){var s=t.props,o=s.disabledKeyboardNavigation,a=s.handleOnMonthKeyDown,l=n.key;l!==H.Tab&&n.preventDefault(),o||t.handleKeyboardNavigation(n,l,i),a&&a(n)},t.onQuarterClick=function(n,i){var s=Ar(t.props.day,i);Xl(s,t.props)||t.handleDayClick(Mf(s),n)},t.onQuarterMouseEnter=function(n){var i=Ar(t.props.day,n);Xl(i,t.props)||t.handleDayMouseEnter(Mf(i))},t.handleQuarterNavigation=function(n,i){var s,o,a,l;t.isDisabled(i)||t.isExcluded(i)||((o=(s=t.props).setPreSelection)===null||o===void 0||o.call(s,i),(l=(a=t.QUARTER_REFS[n-1])===null||a===void 0?void 0:a.current)===null||l===void 0||l.focus())},t.onQuarterKeyDown=function(n,i){var s,o,a=n.key;if(!t.props.disabledKeyboardNavigation)switch(a){case H.Enter:t.onQuarterClick(n,i),(o=(s=t.props).setPreSelection)===null||o===void 0||o.call(s,t.props.selected);break;case H.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(i===4?1:i+1,xl(t.props.preSelection,1));break;case H.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(i===1?4:i-1,rf(t.props.preSelection,1));break}},t.isMonthDisabledForLabelDate=function(n){var i,s=t.props,o=s.day,a=s.minDate,l=s.maxDate,c=s.excludeDates,u=s.includeDates,h=lt(o,n);return{isDisabled:(i=(a||l||c||u)&&Af(h,t.props))!==null&&i!==void 0?i:!1,labelDate:h}},t.isMonthDisabled=function(n){var i=t.isMonthDisabledForLabelDate(n).isDisabled;return i},t.getMonthClassNames=function(n){var i=t.props,s=i.day,o=i.startDate,a=i.endDate,l=i.preSelection,c=i.monthClassName,u=c?c(lt(s,n)):void 0,h=t.getSelection();return Re("react-datepicker__month-text","react-datepicker__month-".concat(n),u,{"react-datepicker__month-text--disabled":t.isMonthDisabled(n),"react-datepicker__month-text--selected":h?t.isSelectMonthInList(s,n,h):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&l&&t.isSelectedMonth(s,n,l)&&!t.isMonthDisabled(n),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(n),"react-datepicker__month-text--in-range":o&&a?Zl(o,a,n,s):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(n),"react-datepicker__month-text--range-end":t.isRangeEndMonth(n),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(n),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(n),"react-datepicker__month-text--today":t.isCurrentMonth(s,n)})},t.getTabIndex=function(n){if(t.props.preSelection==null)return"-1";var i=Ue(t.props.preSelection),s=!t.props.disabledKeyboardNavigation&&n===i?"0":"-1";return s},t.getQuarterTabIndex=function(n){if(t.props.preSelection==null)return"-1";var i=er(t.props.preSelection),s=!t.props.disabledKeyboardNavigation&&n===i?"0":"-1";return s},t.getAriaLabel=function(n){var i=t.props,s=i.chooseDayAriaLabelPrefix,o=s===void 0?"Choose":s,a=i.disabledDayAriaLabelPrefix,l=a===void 0?"Not available":a,c=i.day,u=i.locale,h=lt(c,n),d=t.isDisabled(h)||t.isExcluded(h)?l:o;return"".concat(d," ").concat(ge(h,"MMMM yyyy",u))},t.getQuarterClassNames=function(n){var i=t.props,s=i.day,o=i.startDate,a=i.endDate,l=i.selected,c=i.minDate,u=i.maxDate,h=i.excludeDates,d=i.includeDates,f=i.filterDate,p=i.preSelection,m=i.disabledKeyboardNavigation,g=(c||u||h||d||f)&&Xl(Ar(s,n),t.props);return Re("react-datepicker__quarter-text","react-datepicker__quarter-".concat(n),{"react-datepicker__quarter-text--disabled":g,"react-datepicker__quarter-text--selected":l?t.isSelectedQuarter(s,n,l):void 0,"react-datepicker__quarter-text--keyboard-selected":!m&&p&&t.isSelectedQuarter(s,n,p)&&!g,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(n),"react-datepicker__quarter-text--in-range":o&&a?Jl(o,a,n,s):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(n),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(n)})},t.getMonthContent=function(n){var i=t.props,s=i.showFullMonthYearPicker,o=i.renderMonthContent,a=i.locale,l=i.day,c=Ef(n,a),u=$l(n,a);return o?o(n,c,u,l):s?u:c},t.getQuarterContent=function(n){var i,s=t.props,o=s.renderQuarterContent,a=s.locale,l=Vy(n,a);return(i=o==null?void 0:o(n,l))!==null&&i!==void 0?i:l},t.renderMonths=function(){var n,i=t.props,s=i.showTwoColumnMonthYearPicker,o=i.showFourColumnMonthYearPicker,a=i.day,l=i.selected,c=(n=ec[Uf(o,s)])===null||n===void 0?void 0:n.grid;return c==null?void 0:c.map(function(u,h){return v.createElement("div",{className:"react-datepicker__month-wrapper",key:h},u.map(function(d,f){return v.createElement("div",{ref:t.MONTH_REFS[d],key:f,onClick:function(p){t.onMonthClick(p,d)},onKeyDown:function(p){$f(p)&&(p.preventDefault(),p.key=H.Enter),t.onMonthKeyDown(p,d)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(d)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(d)}:void 0,tabIndex:Number(t.getTabIndex(d)),className:t.getMonthClassNames(d),"aria-disabled":t.isMonthDisabled(d),role:"option","aria-label":t.getAriaLabel(d),"aria-current":t.isCurrentMonth(a,d)?"date":void 0,"aria-selected":l?t.isSelectedMonth(a,d,l):void 0},t.getMonthContent(d))}))})},t.renderQuarters=function(){var n=t.props,i=n.day,s=n.selected,o=[1,2,3,4];return v.createElement("div",{className:"react-datepicker__quarter-wrapper"},o.map(function(a,l){return v.createElement("div",{key:l,ref:t.QUARTER_REFS[l],role:"option",onClick:function(c){t.onQuarterClick(c,a)},onKeyDown:function(c){t.onQuarterKeyDown(c,a)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(a)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(a)}:void 0,className:t.getQuarterClassNames(a),"aria-selected":s?t.isSelectedQuarter(i,a,s):void 0,tabIndex:Number(t.getQuarterTabIndex(a)),"aria-current":t.isCurrentQuarter(i,a)?"date":void 0},t.getQuarterContent(a))}))},t.getClassNames=function(){var n=t.props,i=n.selectingDate,s=n.selectsStart,o=n.selectsEnd,a=n.showMonthYearPicker,l=n.showQuarterYearPicker,c=n.showWeekPicker;return Re("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(s||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":c})},t}return e.prototype.getSelection=function(){var t=this.props,n=t.selected,i=t.selectedDates,s=t.selectsMultiple;if(s)return i;if(n)return[n]},e.prototype.render=function(){var t=this.props,n=t.showMonthYearPicker,i=t.showQuarterYearPicker,s=t.day,o=t.ariaLabelPrefix,a=o===void 0?"Month ":o,l=a?a.trim()+" ":"";return v.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(l).concat(ge(s,"MMMM, yyyy",this.props.locale)),role:"listbox"},n?this.renderMonths():i?this.renderQuarters():this.renderWeeks())},e}(v.Component),nb=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.isSelectedMonth=function(n){return t.props.month===n},t.renderOptions=function(){return t.props.monthNames.map(function(n,i){return v.createElement("div",{className:t.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:n,onClick:t.onChange.bind(t,i),"aria-selected":t.isSelectedMonth(i)?"true":void 0},t.isSelectedMonth(i)?v.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",n)})},t.onChange=function(n){return t.props.onChange(n)},t.handleClickOutside=function(){return t.props.onCancel()},t}return e.prototype.render=function(){return v.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},e}(v.Component),rb=Qs(nb),ib=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(n){return n.map(function(i,s){return v.createElement("option",{key:i,value:s},i)})},t.renderSelectMode=function(n){return v.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(i){return t.onChange(parseInt(i.target.value))}},t.renderSelectOptions(n))},t.renderReadView=function(n,i){return v.createElement("div",{key:"read",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},v.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[t.props.month]))},t.renderDropdown=function(n){return v.createElement(rb,te({key:"dropdown"},t.props,{monthNames:n,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(n){var i=t.state.dropdownVisible,s=[t.renderReadView(!i,n)];return i&&s.unshift(t.renderDropdown(n)),s},t.onChange=function(n){t.toggleDropdown(),n!==t.props.month&&t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return e.prototype.render=function(){var t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(s){return Ef(s,t.props.locale)}:function(s){return $l(s,t.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(n);break;case"select":i=this.renderSelectMode(n);break}return v.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e}(v.Component);function sb(r,e){for(var t=[],n=Ln(r),i=Ln(e);!Tn(n,i);)t.push(he(n)),n=Mt(n,1);return t}var ob=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map(function(i){var s=Ml(i),o=Wt(n.props.date,i)&&Ze(n.props.date,i);return v.createElement("div",{className:o?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:n.onChange.bind(n,s),"aria-selected":o?"true":void 0},o?v.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",ge(i,n.props.dateFormat,n.props.locale))})},n.onChange=function(i){return n.props.onChange(i)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:sb(n.props.minDate,n.props.maxDate)},n}return e.prototype.render=function(){var t=Re({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return v.createElement("div",{className:t},this.renderOptions())},e}(v.Component),ab=Qs(ob),lb=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var n=Ln(t.props.minDate),i=Ln(t.props.maxDate),s=[];!Tn(n,i);){var o=Ml(n);s.push(v.createElement("option",{key:o,value:o},ge(n,t.props.dateFormat,t.props.locale))),n=Mt(n,1)}return s},t.onSelectChange=function(n){t.onChange(parseInt(n.target.value))},t.renderSelectMode=function(){return v.createElement("select",{value:Ml(Ln(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(n){var i=ge(t.props.date,t.props.dateFormat,t.props.locale);return v.createElement("div",{key:"read",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},v.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},t.renderDropdown=function(){return v.createElement(ab,te({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var n=t.state.dropdownVisible,i=[t.renderReadView(!n)];return n&&i.unshift(t.renderDropdown()),i},t.onChange=function(n){t.toggleDropdown();var i=he(n);Wt(t.props.date,i)&&Ze(t.props.date,i)||t.props.onChange(i)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return e.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return v.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},e}(v.Component),cb=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.state={height:null},t.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var n,i,s;t.list&&(t.list.scrollTop=(s=t.centerLi&&e.calcCenterPosition(t.props.monthRef?t.props.monthRef.clientHeight-((i=(n=t.header)===null||n===void 0?void 0:n.clientHeight)!==null&&i!==void 0?i:0):t.list.clientHeight,t.centerLi))!==null&&s!==void 0?s:0)})},t.handleClick=function(n){var i,s;(t.props.minTime||t.props.maxTime)&&Nf(n,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&Lf(n,t.props)||(s=(i=t.props).onChange)===null||s===void 0||s.call(i,n)},t.isSelectedTime=function(n){return t.props.selected&&Zy(t.props.selected,n)},t.isDisabledTime=function(n){return(t.props.minTime||t.props.maxTime)&&Nf(n,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&Lf(n,t.props)},t.liClasses=function(n){var i,s=["react-datepicker__time-list-item",t.props.timeClassName?t.props.timeClassName(n):void 0];return t.isSelectedTime(n)&&s.push("react-datepicker__time-list-item--selected"),t.isDisabledTime(n)&&s.push("react-datepicker__time-list-item--disabled"),t.props.injectTimes&&(Nt(n)*3600+Bt(n)*60+fn(n))%(((i=t.props.intervals)!==null&&i!==void 0?i:e.defaultProps.intervals)*60)!==0&&s.push("react-datepicker__time-list-item--injected"),s.join(" ")},t.handleOnKeyDown=function(n,i){var s,o;n.key===H.Space&&(n.preventDefault(),n.key=H.Enter),(n.key===H.ArrowUp||n.key===H.ArrowLeft)&&n.target instanceof HTMLElement&&n.target.previousSibling&&(n.preventDefault(),n.target.previousSibling instanceof HTMLElement&&n.target.previousSibling.focus()),(n.key===H.ArrowDown||n.key===H.ArrowRight)&&n.target instanceof HTMLElement&&n.target.nextSibling&&(n.preventDefault(),n.target.nextSibling instanceof HTMLElement&&n.target.nextSibling.focus()),n.key===H.Enter&&t.handleClick(i),(o=(s=t.props).handleOnKeyDown)===null||o===void 0||o.call(s,n)},t.renderTimes=function(){for(var n,i=[],s=t.props.format?t.props.format:"p",o=(n=t.props.intervals)!==null&&n!==void 0?n:e.defaultProps.intervals,a=t.props.selected||t.props.openToDate||he(),l=po(a),c=t.props.injectTimes&&t.props.injectTimes.sort(function(g,y){return g.getTime()-y.getTime()}),u=60*Uy(a),h=u/o,d=0;d<h;d++){var f=kl(l,d*o);if(i.push(f),c){var p=$y(l,f,d,o,c);i=i.concat(p)}}var m=i.reduce(function(g,y){return y.getTime()<=a.getTime()?y:g},i[0]);return i.map(function(g){return v.createElement("li",{key:g.valueOf(),onClick:t.handleClick.bind(t,g),className:t.liClasses(g),ref:function(y){g===m&&(t.centerLi=y)},onKeyDown:function(y){t.handleOnKeyDown(y,g)},tabIndex:g===m?0:-1,role:"option","aria-selected":t.isSelectedTime(g)?"true":void 0,"aria-disabled":t.isDisabledTime(g)?"true":void 0},ge(g,s,t.props.locale))})},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time"}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},e.prototype.render=function(){var t=this,n,i=this.state.height;return v.createElement("div",{className:"react-datepicker__time-container ".concat(((n=this.props.todayButton)!==null&&n!==void 0?n:e.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},v.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(s){t.header=s}},v.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),v.createElement("div",{className:"react-datepicker__time"},v.createElement("div",{className:"react-datepicker__time-box"},v.createElement("ul",{className:"react-datepicker__time-list",ref:function(s){t.list=s},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},e.calcCenterPosition=function(t,n){return n.offsetTop-(t/2-n.clientHeight/2)},e}(v.Component),Zf=3,ub=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.YEAR_REFS=Qt([],Array(n.props.yearItemNumber),!0).map(function(){return v.createRef()}),n.isDisabled=function(i){return Nn(i,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(i){return Ul(i,{excludeDates:n.props.excludeDates})},n.selectingDate=function(){var i;return(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection},n.updateFocusOnPaginate=function(i){var s=function(){var o,a;(a=(o=n.YEAR_REFS[i])===null||o===void 0?void 0:o.current)===null||a===void 0||a.focus()};window.requestAnimationFrame(s)},n.handleYearClick=function(i,s){n.props.onDayClick&&n.props.onDayClick(i,s)},n.handleYearNavigation=function(i,s){var o,a,l,c,u=n.props,h=u.date,d=u.yearItemNumber;if(!(h===void 0||d===void 0)){var f=Bn(h,d).startPeriod;n.isDisabled(s)||n.isExcluded(s)||((a=(o=n.props).setPreSelection)===null||a===void 0||a.call(o,s),i-f<0?n.updateFocusOnPaginate(d-(f-i)):i-f>=d?n.updateFocusOnPaginate(Math.abs(d-(i-f))):(c=(l=n.YEAR_REFS[i-f])===null||l===void 0?void 0:l.current)===null||c===void 0||c.focus())}},n.isSameDay=function(i,s){return ee(i,s)},n.isCurrentYear=function(i){return i===K(he())},n.isRangeStart=function(i){return n.props.startDate&&n.props.endDate&&Wt(Vt(he(),i),n.props.startDate)},n.isRangeEnd=function(i){return n.props.startDate&&n.props.endDate&&Wt(Vt(he(),i),n.props.endDate)},n.isInRange=function(i){return Kl(i,n.props.startDate,n.props.endDate)},n.isInSelectingRange=function(i){var s=n.props,o=s.selectsStart,a=s.selectsEnd,l=s.selectsRange,c=s.startDate,u=s.endDate;return!(o||a||l)||!n.selectingDate()?!1:o&&u?Kl(i,n.selectingDate(),u):a&&c||l&&c&&!u?Kl(i,c,n.selectingDate()):!1},n.isSelectingRangeStart=function(i){var s;if(!n.isInSelectingRange(i))return!1;var o=n.props,a=o.startDate,l=o.selectsStart,c=Vt(he(),i);return l?Wt(c,(s=n.selectingDate())!==null&&s!==void 0?s:null):Wt(c,a??null)},n.isSelectingRangeEnd=function(i){var s;if(!n.isInSelectingRange(i))return!1;var o=n.props,a=o.endDate,l=o.selectsEnd,c=o.selectsRange,u=Vt(he(),i);return l||c?Wt(u,(s=n.selectingDate())!==null&&s!==void 0?s:null):Wt(u,a??null)},n.isKeyboardSelected=function(i){if(!(n.props.date===void 0||n.props.selected==null||n.props.preSelection==null)){var s=n.props,o=s.minDate,a=s.maxDate,l=s.excludeDates,c=s.includeDates,u=s.filterDate,h=Ai(Vt(n.props.date,i)),d=(o||a||l||c||u)&&Gl(i,n.props);return!n.props.disabledKeyboardNavigation&&!n.props.inline&&!ee(h,Ai(n.props.selected))&&ee(h,Ai(n.props.preSelection))&&!d}},n.onYearClick=function(i,s){var o=n.props.date;o!==void 0&&n.handleYearClick(Ai(Vt(o,s)),i)},n.onYearKeyDown=function(i,s){var o,a,l=i.key,c=n.props,u=c.date,h=c.yearItemNumber,d=c.handleOnKeyDown;if(l!==H.Tab&&i.preventDefault(),!n.props.disabledKeyboardNavigation)switch(l){case H.Enter:if(n.props.selected==null)break;n.onYearClick(i,s),(a=(o=n.props).setPreSelection)===null||a===void 0||a.call(o,n.props.selected);break;case H.ArrowRight:if(n.props.preSelection==null)break;n.handleYearNavigation(s+1,un(n.props.preSelection,1));break;case H.ArrowLeft:if(n.props.preSelection==null)break;n.handleYearNavigation(s-1,Lr(n.props.preSelection,1));break;case H.ArrowUp:{if(u===void 0||h===void 0||n.props.preSelection==null)break;var f=Bn(u,h).startPeriod,p=Zf,m=s-p;if(m<f){var g=h%p;s>=f&&s<f+g?p=g:p+=g,m=s-p}n.handleYearNavigation(m,Lr(n.props.preSelection,p));break}case H.ArrowDown:{if(u===void 0||h===void 0||n.props.preSelection==null)break;var y=Bn(u,h).endPeriod,p=Zf,m=s+p;if(m>y){var g=h%p;s<=y&&s>y-g?p=g:p+=g,m=s+p}n.handleYearNavigation(m,un(n.props.preSelection,p));break}}d&&d(i)},n.getYearClassNames=function(i){var s=n.props,o=s.date,a=s.minDate,l=s.maxDate,c=s.selected,u=s.excludeDates,h=s.includeDates,d=s.filterDate,f=s.yearClassName;return Re("react-datepicker__year-text","react-datepicker__year-".concat(i),o?f==null?void 0:f(Vt(o,i)):void 0,{"react-datepicker__year-text--selected":c?i===K(c):void 0,"react-datepicker__year-text--disabled":(a||l||u||h||d)&&Gl(i,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(i),"react-datepicker__year-text--range-start":n.isRangeStart(i),"react-datepicker__year-text--range-end":n.isRangeEnd(i),"react-datepicker__year-text--in-range":n.isInRange(i),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(i),"react-datepicker__year-text--today":n.isCurrentYear(i)})},n.getYearTabIndex=function(i){if(n.props.disabledKeyboardNavigation||n.props.preSelection==null)return"-1";var s=K(n.props.preSelection);return i===s?"0":"-1"},n.getYearContainerClassNames=function(){var i=n.props,s=i.selectingDate,o=i.selectsStart,a=i.selectsEnd,l=i.selectsRange;return Re("react-datepicker__year",{"react-datepicker__year--selecting-range":s&&(o||a||l)})},n.getYearContent=function(i){return n.props.renderYearContent?n.props.renderYearContent(i):i},n}return e.prototype.render=function(){var t=this,n=[],i=this.props,s=i.date,o=i.yearItemNumber,a=i.onYearMouseEnter,l=i.onYearMouseLeave;if(s===void 0)return null;for(var c=Bn(s,o),u=c.startPeriod,h=c.endPeriod,d=function(m){n.push(v.createElement("div",{ref:f.YEAR_REFS[m-u],onClick:function(g){t.onYearClick(g,m)},onKeyDown:function(g){$f(g)&&(g.preventDefault(),g.key=H.Enter),t.onYearKeyDown(g,m)},tabIndex:Number(f.getYearTabIndex(m)),className:f.getYearClassNames(m),onMouseEnter:f.props.usePointerEvent?void 0:function(g){return a(g,m)},onPointerEnter:f.props.usePointerEvent?function(g){return a(g,m)}:void 0,onMouseLeave:f.props.usePointerEvent?void 0:function(g){return l(g,m)},onPointerLeave:f.props.usePointerEvent?function(g){return l(g,m)}:void 0,key:m,"aria-current":f.isCurrentYear(m)?"date":void 0},f.getYearContent(m)))},f=this,p=u;p<=h;p++)d(p);return v.createElement("div",{className:this.getYearContainerClassNames()},v.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},n))},e}(v.Component);function hb(r,e,t,n){for(var i=[],s=0;s<2*e+1;s++){var o=r+e-s,a=!0;t&&(a=K(t)<=o),n&&a&&(a=K(n)>=o),a&&i.push(o)}return i}var db=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;n.renderOptions=function(){var a=n.props.year,l=n.state.yearsList.map(function(h){return v.createElement("div",{className:a===h?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:h,onClick:n.onChange.bind(n,h),"aria-selected":a===h?"true":void 0},a===h?v.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",h)}),c=n.props.minDate?K(n.props.minDate):null,u=n.props.maxDate?K(n.props.maxDate):null;return(!u||!n.state.yearsList.find(function(h){return h===u}))&&l.unshift(v.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},v.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!c||!n.state.yearsList.find(function(h){return h===c}))&&l.push(v.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},v.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},n.onChange=function(a){n.props.onChange(a)},n.handleClickOutside=function(){n.props.onCancel()},n.shiftYears=function(a){var l=n.state.yearsList.map(function(c){return c+a});n.setState({yearsList:l})},n.incrementYears=function(){return n.shiftYears(1)},n.decrementYears=function(){return n.shiftYears(-1)};var i=t.yearDropdownItemNumber,s=t.scrollableYearDropdown,o=i||(s?10:5);return n.state={yearsList:hb(n.props.year,o,n.props.minDate,n.props.maxDate)},n.dropdownRef=v.createRef(),n}return e.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var n=t.children?Array.from(t.children):null,i=n?n.find(function(s){return s.ariaSelected}):null;t.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},e.prototype.render=function(){var t=Re({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return v.createElement("div",{className:t,ref:this.dropdownRef},this.renderOptions())},e}(v.Component),fb=Qs(db),pb=function(r){Le(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var n=t.props.minDate?K(t.props.minDate):1900,i=t.props.maxDate?K(t.props.maxDate):2100,s=[],o=n;o<=i;o++)s.push(v.createElement("option",{key:o,value:o},o));return s},t.onSelectChange=function(n){t.onChange(parseInt(n.target.value))},t.renderSelectMode=function(){return v.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(n){return v.createElement("div",{key:"read",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return t.toggleDropdown(i)}},v.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),v.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return v.createElement(fb,te({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var n=t.state.dropdownVisible,i=[t.renderReadView(!n)];return n&&i.unshift(t.renderDropdown()),i},t.onChange=function(n){t.toggleDropdown(),n!==t.props.year&&t.props.onChange(n)},t.toggleDropdown=function(n){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,n)})},t.handleYearChange=function(n,i){t.onSelect(n,i),t.setOpen()},t.onSelect=function(n,i){t.props.onSelect&&t.props.onSelect(n,i)},t.setOpen=function(){t.props.setOpen&&t.props.setOpen(!0)},t}return e.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return v.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},e}(v.Component),mb=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],gb=function(r){var e=(r.className||"").split(/\s+/);return mb.some(function(t){return e.indexOf(t)>=0})},yb=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.monthContainer=void 0,n.handleClickOutside=function(i){n.props.onClickOutside(i)},n.setClickOutsideRef=function(){return n.containerRef.current},n.handleDropdownFocus=function(i){var s,o;gb(i.target)&&((o=(s=n.props).onDropdownFocus)===null||o===void 0||o.call(s,i))},n.getDateInView=function(){var i=n.props,s=i.preSelection,o=i.selected,a=i.openToDate,l=Ff(n.props),c=Qf(n.props),u=he(),h=a||o||s;return h||(l&&rr(u,l)?l:c&&Tn(u,c)?c:u)},n.increaseMonth=function(){n.setState(function(i){var s=i.date;return{date:Mt(s,1)}},function(){return n.handleMonthChange(n.state.date)})},n.decreaseMonth=function(){n.setState(function(i){var s=i.date;return{date:Rr(s,1)}},function(){return n.handleMonthChange(n.state.date)})},n.handleDayClick=function(i,s,o){n.props.onSelect(i,s,o),n.props.setPreSelection&&n.props.setPreSelection(i)},n.handleDayMouseEnter=function(i){n.setState({selectingDate:i}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(i)},n.handleMonthMouseLeave=function(){n.setState({selectingDate:void 0}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()},n.handleYearMouseEnter=function(i,s){n.setState({selectingDate:Vt(he(),s)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(i,s)},n.handleYearMouseLeave=function(i,s){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(i,s)},n.handleYearChange=function(i){n.props.onYearChange&&(n.props.onYearChange(i),n.setState({isRenderAriaLiveMessage:!0})),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(i),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(i)},n.handleMonthChange=function(i){n.handleCustomMonthChange(i),n.props.adjustDateOnChange&&(n.props.onSelect&&n.props.onSelect(i),n.props.setOpen&&n.props.setOpen(!0)),n.props.setPreSelection&&n.props.setPreSelection(i)},n.handleCustomMonthChange=function(i){n.props.onMonthChange&&(n.props.onMonthChange(i),n.setState({isRenderAriaLiveMessage:!0}))},n.handleMonthYearChange=function(i){n.handleYearChange(i),n.handleMonthChange(i)},n.changeYear=function(i){n.setState(function(s){var o=s.date;return{date:Vt(o,Number(i))}},function(){return n.handleYearChange(n.state.date)})},n.changeMonth=function(i){n.setState(function(s){var o=s.date;return{date:lt(o,Number(i))}},function(){return n.handleMonthChange(n.state.date)})},n.changeMonthYear=function(i){n.setState(function(s){var o=s.date;return{date:Vt(lt(o,Ue(i)),K(i))}},function(){return n.handleMonthYearChange(n.state.date)})},n.header=function(i){i===void 0&&(i=n.state.date);var s=Rn(i,n.props.locale,n.props.calendarStartDay),o=[];return n.props.showWeekNumbers&&o.push(v.createElement("div",{key:"W",className:"react-datepicker__day-name"},n.props.weekLabel||"#")),o.concat([0,1,2,3,4,5,6].map(function(a){var l=Mn(s,a),c=n.formatWeekday(l,n.props.locale),u=n.props.weekDayClassName?n.props.weekDayClassName(l):void 0;return v.createElement("div",{key:a,"aria-label":ge(l,"EEEE",n.props.locale),className:Re("react-datepicker__day-name",u)},c)}))},n.formatWeekday=function(i,s){return n.props.formatWeekDay?By(i,n.props.formatWeekDay,s):n.props.useWeekdaysShort?Hy(i,s):Iy(i,s)},n.decreaseYear=function(){n.setState(function(i){var s,o=i.date;return{date:Lr(o,n.props.showYearPicker?(s=n.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.clearSelectingDate=function(){n.setState({selectingDate:void 0})},n.renderPreviousButton=function(){var i;if(!n.props.renderCustomHeader){var s;switch(!0){case n.props.showMonthYearPicker:s=Hf(n.state.date,n.props);break;case n.props.showYearPicker:s=jy(n.state.date,n.props);break;case n.props.showQuarterYearPicker:s=Qy(n.state.date,n.props);break;default:s=Bf(n.state.date,n.props);break}if(!(!((i=n.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&s||n.props.showTimeSelectOnly)){var o=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],a=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(l=n.decreaseYear),s&&n.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),l=void 0);var c=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,u=n.props,h=u.previousMonthButtonLabel,d=h===void 0?e.defaultProps.previousMonthButtonLabel:h,f=u.previousYearButtonLabel,p=f===void 0?e.defaultProps.previousYearButtonLabel:f,m=n.props,g=m.previousMonthAriaLabel,y=g===void 0?typeof d=="string"?d:"Previous Month":g,C=m.previousYearAriaLabel,w=C===void 0?typeof p=="string"?p:"Previous Year":C;return v.createElement("button",{type:"button",className:a.join(" "),onClick:l,onKeyDown:n.props.handleOnKeyDown,"aria-label":c?w:y},v.createElement("span",{className:o.join(" ")},c?p:d))}}},n.increaseYear=function(){n.setState(function(i){var s,o=i.date;return{date:un(o,n.props.showYearPicker?(s=n.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.renderNextButton=function(){var i;if(!n.props.renderCustomHeader){var s;switch(!0){case n.props.showMonthYearPicker:s=Vf(n.state.date,n.props);break;case n.props.showYearPicker:s=qy(n.state.date,n.props);break;case n.props.showQuarterYearPicker:s=Wy(n.state.date,n.props);break;default:s=If(n.state.date,n.props);break}if(!(!((i=n.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&s||n.props.showTimeSelectOnly)){var o=["react-datepicker__navigation","react-datepicker__navigation--next"],a=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];n.props.showTimeSelect&&o.push("react-datepicker__navigation--next--with-time"),n.props.todayButton&&o.push("react-datepicker__navigation--next--with-today-button");var l=n.increaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(l=n.increaseYear),s&&n.props.showDisabledMonthNavigation&&(o.push("react-datepicker__navigation--next--disabled"),l=void 0);var c=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,u=n.props,h=u.nextMonthButtonLabel,d=h===void 0?e.defaultProps.nextMonthButtonLabel:h,f=u.nextYearButtonLabel,p=f===void 0?e.defaultProps.nextYearButtonLabel:f,m=n.props,g=m.nextMonthAriaLabel,y=g===void 0?typeof d=="string"?d:"Next Month":g,C=m.nextYearAriaLabel,w=C===void 0?typeof p=="string"?p:"Next Year":C;return v.createElement("button",{type:"button",className:o.join(" "),onClick:l,onKeyDown:n.props.handleOnKeyDown,"aria-label":c?w:y},v.createElement("span",{className:a.join(" ")},c?p:d))}}},n.renderCurrentMonth=function(i){i===void 0&&(i=n.state.date);var s=["react-datepicker__current-month"];return n.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),v.createElement("h2",{className:s.join(" ")},ge(i,n.props.dateFormat,n.props.locale))},n.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!n.props.showYearDropdown||i))return v.createElement(pb,te({},e.defaultProps,n.props,{date:n.state.date,onChange:n.changeYear,year:K(n.state.date)}))},n.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!n.props.showMonthDropdown||i))return v.createElement(ib,te({},e.defaultProps,n.props,{month:Ue(n.state.date),onChange:n.changeMonth}))},n.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!n.props.showMonthYearDropdown||i))return v.createElement(lb,te({},e.defaultProps,n.props,{date:n.state.date,onChange:n.changeMonthYear}))},n.handleTodayButtonClick=function(i){n.props.onSelect(Pf(),i),n.props.setPreSelection&&n.props.setPreSelection(Pf())},n.renderTodayButton=function(){if(!(!n.props.todayButton||n.props.showTimeSelectOnly))return v.createElement("div",{className:"react-datepicker__today-button",onClick:n.handleTodayButtonClick},n.props.todayButton)},n.renderDefaultHeader=function(i){var s=i.monthDate,o=i.i;return v.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(s),v.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(o!==0),n.renderMonthYearDropdown(o!==0),n.renderYearDropdown(o!==0)),v.createElement("div",{className:"react-datepicker__day-names"},n.header(s)))},n.renderCustomHeader=function(i){var s,o,a=i.monthDate,l=i.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var c=Bf(n.state.date,n.props),u=If(n.state.date,n.props),h=Hf(n.state.date,n.props),d=Vf(n.state.date,n.props),f=!n.props.showMonthYearPicker&&!n.props.showQuarterYearPicker&&!n.props.showYearPicker;return v.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},(o=(s=n.props).renderCustomHeader)===null||o===void 0?void 0:o.call(s,te(te({},n.state),{customHeaderCount:l,monthDate:a,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:u,prevYearButtonDisabled:h,nextYearButtonDisabled:d})),f&&v.createElement("div",{className:"react-datepicker__day-names"},n.header(a)))},n.renderYearHeader=function(i){var s=i.monthDate,o=n.props,a=o.showYearPicker,l=o.yearItemNumber,c=l===void 0?e.defaultProps.yearItemNumber:l,u=Bn(s,c),h=u.startPeriod,d=u.endPeriod;return v.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(h," - ").concat(d):K(s))},n.renderHeader=function(i){var s=i.monthDate,o=i.i,a=o===void 0?0:o,l={monthDate:s,i:a};switch(!0){case n.props.renderCustomHeader!==void 0:return n.renderCustomHeader(l);case(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker):return n.renderYearHeader(l);default:return n.renderDefaultHeader(l)}},n.renderMonths=function(){var i,s;if(!(n.props.showTimeSelectOnly||n.props.showYearPicker)){for(var o=[],a=(i=n.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=n.props.showPreviousMonths?a-1:0,c=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?un(n.state.date,l):Rr(n.state.date,l),u=(s=n.props.monthSelectedIn)!==null&&s!==void 0?s:l,h=0;h<a;++h){var d=h-u+l,f=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?un(c,d):Mt(c,d),p="month-".concat(h),m=h<a-1,g=h>0;o.push(v.createElement("div",{key:p,ref:function(y){n.monthContainer=y??void 0},className:"react-datepicker__month-container"},n.renderHeader({monthDate:f,i:h}),v.createElement(tb,te({},e.defaultProps,n.props,{ariaLabelPrefix:n.props.monthAriaLabelPrefix,day:f,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,handleOnMonthKeyDown:n.props.handleOnKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,orderInDisplay:h,selectingDate:n.state.selectingDate,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:g}))))}return o}},n.renderYears=function(){if(!n.props.showTimeSelectOnly&&n.props.showYearPicker)return v.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader({monthDate:n.state.date}),v.createElement(ub,te({},e.defaultProps,n.props,{selectingDate:n.state.selectingDate,date:n.state.date,onDayClick:n.handleDayClick,clearSelectingDate:n.clearSelectingDate,onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave})))},n.renderTimeSection=function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return v.createElement(cb,te({},e.defaultProps,n.props,{onChange:n.props.onTimeChange,format:n.props.timeFormat,intervals:n.props.timeIntervals,monthRef:n.state.monthContainer}))},n.renderInputTimeSection=function(){var i=n.props.selected?new Date(n.props.selected):void 0,s=i&&mn(i)&&!!n.props.selected,o=s?"".concat(jf(i.getHours()),":").concat(jf(i.getMinutes())):"";if(n.props.showTimeInput)return v.createElement(Xy,te({},e.defaultProps,n.props,{date:i,timeString:o,onChange:n.props.onTimeChange}))},n.renderAriaLiveRegion=function(){var i,s=Bn(n.state.date,(i=n.props.yearItemNumber)!==null&&i!==void 0?i:e.defaultProps.yearItemNumber),o=s.startPeriod,a=s.endPeriod,l;return n.props.showYearPicker?l="".concat(o," - ").concat(a):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?l=K(n.state.date):l="".concat($l(Ue(n.state.date),n.props.locale)," ").concat(K(n.state.date)),v.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&l)},n.renderChildren=function(){if(n.props.children)return v.createElement("div",{className:"react-datepicker__children-container"},n.props.children)},n.containerRef=v.createRef(),n.state={date:n.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},n}return Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Ei}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){t.setState({monthContainer:t.monthContainer})}())},e.prototype.componentDidUpdate=function(t){var n=this;if(this.props.preSelection&&(!ee(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var i=!Ze(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&n.handleCustomMonthChange(n.state.date)})}else this.props.openToDate&&!ee(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var t=this.props.container||My;return v.createElement("div",{style:{display:"contents"},ref:this.containerRef},v.createElement(t,{className:Re("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},e}(v.Component),bb=function(r){var e=r.icon,t=r.className,n=t===void 0?"":t,i=r.onClick,s="react-datepicker__calendar-icon";return typeof e=="string"?v.createElement("i",{className:"".concat(s," ").concat(e," ").concat(n),"aria-hidden":"true",onClick:i}):v.isValidElement(e)?v.cloneElement(e,{className:"".concat(e.props.className||""," ").concat(s," ").concat(n),onClick:function(o){typeof e.props.onClick=="function"&&e.props.onClick(o),typeof i=="function"&&i(o)}}):v.createElement("svg",{className:"".concat(s," ").concat(n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},v.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Xf=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return e.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return pl.createPortal(this.props.children,this.el)},e}(v.Component),vb="[tabindex], a, button, input, select, textarea",Cb=function(r){return(r instanceof HTMLAnchorElement||!r.disabled)&&r.tabIndex!==-1},Kf=function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.getTabChildren=function(){var i;return Array.prototype.slice.call((i=n.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(vb),1,-1).filter(Cb)},n.handleFocusStart=function(){var i=n.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},n.handleFocusEnd=function(){var i=n.getTabChildren();i&&i.length>1&&i[0].focus()},n.tabLoopRef=v.createRef(),n}return e.prototype.render=function(){var t;return((t=this.props.enableTabLoop)!==null&&t!==void 0?t:e.defaultProps.enableTabLoop)?v.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},v.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,v.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e}(v.Component);function wb(r){var e=function(t){var n,i=typeof t.hidePopper=="boolean"?t.hidePopper:!0,s=v.useRef(null),o=Dy(te({open:!i,whileElementsMounted:oy,placement:t.popperPlacement,middleware:Qt([dy({padding:15}),hy(10),fy({element:s})],(n=t.popperModifiers)!==null&&n!==void 0?n:[],!0)},t.popperProps)),a=te(te({},t),{hidePopper:i,popperProps:te(te({},o),{arrowRef:s})});return v.createElement(r,te({},a))};return e}var kb=function(r){Le(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return Object.defineProperty(e,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this.props,n=t.className,i=t.wrapperClassName,s=t.hidePopper,o=s===void 0?e.defaultProps.hidePopper:s,a=t.popperComponent,l=t.targetComponent,c=t.enableTabLoop,u=t.popperOnKeyDown,h=t.portalId,d=t.portalHost,f=t.popperProps,p=t.showArrow,m=void 0;if(!o){var g=Re("react-datepicker-popper",n);m=v.createElement(Kf,{enableTabLoop:c},v.createElement("div",{ref:f.refs.setFloating,style:f.floatingStyles,className:g,"data-placement":f.placement,onKeyDown:u},a,p&&v.createElement(Cy,{ref:f.arrowRef,context:f.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(m=v.createElement(this.props.popperContainer,{},m)),h&&!o&&(m=v.createElement(Xf,{portalId:h,portalHost:d},m));var y=Re("react-datepicker-wrapper",i);return v.createElement(v.Fragment,null,v.createElement("div",{ref:f.refs.setReference,className:y},l),m)},e}(v.Component),xb=wb(kb),Gf="react-datepicker-ignore-onclickoutside",Sb=Qs(yb);function Ob(r,e){return r&&e?Ue(r)!==Ue(e)||K(r)!==K(e):r!==e}var tc="Date input not valid.";(function(r){Le(e,r);function e(t){var n=r.call(this,t)||this;return n.calendar=null,n.input=null,n.getPreSelection=function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:he()},n.modifyHolidays=function(){var i;return(i=n.props.holidays)===null||i===void 0?void 0:i.reduce(function(s,o){var a=new Date(o.date);return mn(a)?Qt(Qt([],s,!0),[te(te({},o),{date:a})],!1):s},[])},n.calcInitialState=function(){var i,s=n.getPreSelection(),o=Ff(n.props),a=Qf(n.props),l=o&&rr(s,po(o))?o:a&&Tn(s,Tf(a))?a:s;return{open:n.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=n.props.selectsRange?n.props.startDate:n.props.selected)!==null&&i!==void 0?i:l,highlightDates:Wf(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},n.resetHiddenStatus=function(){n.setState(te(te({},n.state),{wasHidden:!1}))},n.setHiddenStatus=function(){n.setState(te(te({},n.state),{wasHidden:!0}))},n.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&n.setHiddenStatus()},n.clearPreventFocusTimeout=function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)},n.setFocus=function(){n.input&&n.input.focus&&n.input.focus({preventScroll:!0})},n.setBlur=function(){n.input&&n.input.blur&&n.input.blur(),n.cancelFocusInput()},n.setOpen=function(i,s){s===void 0&&(s=!1),n.setState({open:i,preSelection:i&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:nc},function(){i||n.setState(function(o){return{focused:s?o.focused:!1}},function(){!s&&n.setBlur(),n.setState({inputValue:null})})})},n.inputOk=function(){return dn(n.state.preSelection)},n.isCalendarOpen=function(){return n.props.open===void 0?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open},n.handleFocus=function(i){var s,o,a=n.state.wasHidden,l=a?n.state.open:!0;a&&n.resetHiddenStatus(),!n.state.preventFocus&&l&&((o=(s=n.props).onFocus)===null||o===void 0||o.call(s,i),!n.props.preventOpenOnFocus&&!n.props.readOnly&&n.setOpen(!0)),n.setState({focused:!0})},n.sendFocusBackToInput=function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})},n.cancelFocusInput=function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=void 0},n.deferFocusInput=function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)},n.handleDropdownFocus=function(){n.cancelFocusInput()},n.handleBlur=function(i){var s,o;(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&((o=(s=n.props).onBlur)===null||o===void 0||o.call(s,i)),n.setState({focused:!1})},n.handleCalendarClickOutside=function(i){var s,o;n.props.inline||n.setOpen(!1),(o=(s=n.props).onClickOutside)===null||o===void 0||o.call(s,i),n.props.withPortal&&i.preventDefault()},n.handleChange=function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var o=i[0];if(!(n.props.onChangeRaw&&(n.props.onChangeRaw.apply(n,i),!o||typeof o.isDefaultPrevented!="function"||o.isDefaultPrevented()))){n.setState({inputValue:(o==null?void 0:o.target)instanceof HTMLInputElement?o.target.value:null,lastPreSelectChange:_b});var a=n.props,l=a.dateFormat,c=l===void 0?e.defaultProps.dateFormat:l,u=a.strictParsing,h=u===void 0?e.defaultProps.strictParsing:u,d=Ty((o==null?void 0:o.target)instanceof HTMLInputElement?o.target.value:"",c,n.props.locale,h,n.props.minDate);n.props.showTimeSelectOnly&&n.props.selected&&d&&!ee(d,n.props.selected)&&(d=x7(n.props.selected,{hours:Nt(d),minutes:Bt(d),seconds:fn(d)})),(d||!((o==null?void 0:o.target)instanceof HTMLInputElement)||!(o!=null&&o.target.value))&&n.setSelected(d,o,!0)}},n.handleSelect=function(i,s,o){if(n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(s),n.setSelected(i,s,!1,o),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect)n.setPreSelection(i);else if(!n.props.inline){n.props.selectsRange||n.setOpen(!1);var a=n.props,l=a.startDate,c=a.endDate;l&&!c&&(n.props.swapRange||!Yf(i,l))&&n.setOpen(!1)}},n.setSelected=function(i,s,o,a){var l,c=i;if(n.props.showYearPicker){if(c!==null&&Gl(K(c),n.props))return}else if(n.props.showMonthYearPicker){if(c!==null&&Af(c,n.props))return}else if(c!==null&&Nn(c,n.props))return;var u=n.props,h=u.onChange,d=u.selectsRange,f=u.startDate,p=u.endDate,m=u.selectsMultiple,g=u.selectedDates,y=u.minTime,C=u.swapRange;if(!sr(n.props.selected,c)||n.props.allowSameDay||d||m)if(c!==null&&(n.props.selected&&(!o||!n.props.showTimeSelect&&!n.props.showTimeSelectOnly&&!n.props.showTimeInput)&&(c=Yl(c,{hour:Nt(n.props.selected),minute:Bt(n.props.selected),second:fn(n.props.selected)})),!o&&(n.props.showTimeSelect||n.props.showTimeSelectOnly)&&y&&(c=Yl(c,{hour:y.getHours(),minute:y.getMinutes(),second:y.getSeconds()})),n.props.inline||n.setState({preSelection:c}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:a})),d){var w=!f&&!p,x=f&&!p,b=f&&p;w?h?h([c,null],s):e.defaultProps.onChange:x&&(c===null?h?h([null,null],s):e.defaultProps.onChange:Yf(c,f)?C?h?h([c,f],s):e.defaultProps.onChange:h?h([c,null],s):e.defaultProps.onChange:h?h([f,c],s):e.defaultProps.onChange),b&&(h?h([c,null],s):e.defaultProps.onChange)}else if(m){if(c!==null)if(!(g!=null&&g.length))h?h([c],s):e.defaultProps.onChange;else{var S=g.some(function(P){return ee(P,c)});if(S){var k=g.filter(function(P){return!ee(P,c)});h?h(k,s):e.defaultProps.onChange}else h?h(Qt(Qt([],g,!0),[c],!1),s):e.defaultProps.onChange}}else h?h(c,s):e.defaultProps.onChange;if(!o){var D=(l=n.props.onSelect)!==null&&l!==void 0?l:e.defaultProps.onSelect;D(c,s),n.setState({inputValue:null})}},n.setPreSelection=function(i){var s=dn(n.props.minDate),o=dn(n.props.maxDate),a=!0;if(i){var l=po(i);if(s&&o)a=go(i,n.props.minDate,n.props.maxDate);else if(s){var c=po(n.props.minDate);a=Tn(i,c)||sr(l,c)}else if(o){var u=Tf(n.props.maxDate);a=rr(i,u)||sr(l,u)}}a&&n.setState({preSelection:i})},n.toggleCalendar=function(){n.setOpen(!n.state.open)},n.handleTimeChange=function(i){var s;if(!(n.props.selectsRange||n.props.selectsMultiple)){var o=n.props.selected?n.props.selected:n.getPreSelection(),a=n.props.selected?i:Yl(o,{hour:Nt(i),minute:Bt(i)});n.setState({preSelection:a});var l=(s=n.props.onChange)!==null&&s!==void 0?s:e.defaultProps.onChange;l(a),n.props.shouldCloseOnSelect&&!n.props.showTimeInput&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}},n.onInputClick=function(){var i,s;!n.props.disabled&&!n.props.readOnly&&n.setOpen(!0),(s=(i=n.props).onInputClick)===null||s===void 0||s.call(i)},n.onInputKeyDown=function(i){var s,o,a,l,c;(o=(s=n.props).onKeyDown)===null||o===void 0||o.call(s,i);var u=i.key;if(!n.state.open&&!n.props.inline&&!n.props.preventOpenOnFocus){(u===H.ArrowDown||u===H.ArrowUp||u===H.Enter)&&n.onInputClick();return}if(n.state.open){if(u===H.ArrowDown||u===H.ArrowUp){i.preventDefault();var h=n.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':n.props.showFullMonthYearPicker||n.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',d=((a=n.calendar)===null||a===void 0?void 0:a.componentNode)instanceof Element&&n.calendar.componentNode.querySelector(h);d instanceof HTMLElement&&d.focus({preventScroll:!0});return}var f=he(n.state.preSelection);u===H.Enter?(i.preventDefault(),n.inputOk()&&n.state.lastPreSelectChange===nc?(n.handleSelect(f,i),!n.props.shouldCloseOnSelect&&n.setPreSelection(f)):n.setOpen(!1)):u===H.Escape?(i.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1)):u===H.Tab&&n.setOpen(!1),n.inputOk()||(c=(l=n.props).onInputError)===null||c===void 0||c.call(l,{code:1,msg:tc})}},n.onPortalKeyDown=function(i){var s=i.key;s===H.Escape&&(i.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))},n.onDayKeyDown=function(i){var s,o,a,l,c=n.props,u=c.minDate,h=c.maxDate,d=c.disabledKeyboardNavigation,f=c.showWeekPicker,p=c.shouldCloseOnSelect,m=c.locale,g=c.calendarStartDay,y=c.adjustDateOnChange,C=c.inline;if((o=(s=n.props).onKeyDown)===null||o===void 0||o.call(s,i),!d){var w=i.key,x=i.shiftKey,b=he(n.state.preSelection),S=function(B,A){var N=A;switch(B){case H.ArrowRight:N=f?qs(A,1):Mn(A,1);break;case H.ArrowLeft:N=f?sf(A,1):S7(A,1);break;case H.ArrowUp:N=sf(A,1);break;case H.ArrowDown:N=qs(A,1);break;case H.PageUp:N=x?Lr(A,1):Rr(A,1);break;case H.PageDown:N=x?un(A,1):Mt(A,1);break;case H.Home:N=Rn(A,m,g);break;case H.End:N=Ny(A);break}return N},k=function(B,A){for(var N=40,R=B,q=!1,$=0,X=S(B,A);!q;){if($>=N){X=A;break}u&&X<u&&(R=H.ArrowRight,X=Nn(u,n.props)?S(R,X):u),h&&X>h&&(R=H.ArrowLeft,X=Nn(h,n.props)?S(R,X):h),Nn(X,n.props)?((R===H.PageUp||R===H.Home)&&(R=H.ArrowRight),(R===H.PageDown||R===H.End)&&(R=H.ArrowLeft),X=S(R,X)):q=!0,$++}return X};if(w===H.Enter){i.preventDefault(),n.handleSelect(b,i),!p&&n.setPreSelection(b);return}else if(w===H.Escape){i.preventDefault(),n.setOpen(!1),n.inputOk()||(l=(a=n.props).onInputError)===null||l===void 0||l.call(a,{code:1,msg:tc});return}var D=null;switch(w){case H.ArrowLeft:case H.ArrowRight:case H.ArrowUp:case H.ArrowDown:case H.PageUp:case H.PageDown:case H.Home:case H.End:D=k(w,b);break}if(!D){n.props.onInputError&&n.props.onInputError({code:1,msg:tc});return}if(i.preventDefault(),n.setState({lastPreSelectChange:nc}),y&&n.setSelected(D),n.setPreSelection(D),C){var P=Ue(b),j=Ue(D),E=K(b),T=K(D);P!==j||E!==T?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}},n.onPopperKeyDown=function(i){var s=i.key;s===H.Escape&&(i.preventDefault(),n.sendFocusBackToInput())},n.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),n.sendFocusBackToInput();var s=n.props,o=s.selectsRange,a=s.onChange;o?a?a([null,null],i):e.defaultProps.onChange():a?a(null,i):e.defaultProps.onChange(),n.setState({inputValue:null})},n.clear=function(){n.onClearClick()},n.onScroll=function(i){typeof n.props.closeOnScroll=="boolean"&&n.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&n.setOpen(!1):typeof n.props.closeOnScroll=="function"&&n.props.closeOnScroll(i)&&n.setOpen(!1)},n.renderCalendar=function(){var i,s;return!n.props.inline&&!n.isCalendarOpen()?null:v.createElement(Sb,te({ref:function(o){n.calendar=o}},n.props,n.state,{setOpen:n.setOpen,dateFormat:(i=n.props.dateFormatCalendar)!==null&&i!==void 0?i:e.defaultProps.dateFormatCalendar,onSelect:n.handleSelect,onClickOutside:n.handleCalendarClickOutside,holidays:Yy(n.modifyHolidays()),outsideClickIgnoreClass:Gf,onDropdownFocus:n.handleDropdownFocus,onTimeChange:n.handleTimeChange,className:n.props.calendarClassName,container:n.props.calendarContainer,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,setPreSelection:n.setPreSelection,dropdownMode:(s=n.props.dropdownMode)!==null&&s!==void 0?s:e.defaultProps.dropdownMode}),n.props.children)},n.renderAriaLiveRegion=function(){var i=n.props,s=i.dateFormat,o=s===void 0?e.defaultProps.dateFormat:s,a=i.locale,l=n.props.showTimeInput||n.props.showTimeSelect,c=l?"PPPPp":"PPPP",u;return n.props.selectsRange?u="Selected start date: ".concat(vt(n.props.startDate,{dateFormat:c,locale:a}),". ").concat(n.props.endDate?"End date: "+vt(n.props.endDate,{dateFormat:c,locale:a}):""):n.props.showTimeSelectOnly?u="Selected time: ".concat(vt(n.props.selected,{dateFormat:o,locale:a})):n.props.showYearPicker?u="Selected year: ".concat(vt(n.props.selected,{dateFormat:"yyyy",locale:a})):n.props.showMonthYearPicker?u="Selected month: ".concat(vt(n.props.selected,{dateFormat:"MMMM yyyy",locale:a})):n.props.showQuarterYearPicker?u="Selected quarter: ".concat(vt(n.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):u="Selected date: ".concat(vt(n.props.selected,{dateFormat:c,locale:a})),v.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},u)},n.renderDateInput=function(){var i,s,o,a=Re(n.props.className,(i={},i[Gf]=n.state.open,i)),l=n.props.customInput||v.createElement("input",{type:"text"}),c=n.props.customInputRef||"ref",u=n.props,h=u.dateFormat,d=h===void 0?e.defaultProps.dateFormat:h,f=u.locale,p=typeof n.props.value=="string"?n.props.value:typeof n.state.inputValue=="string"?n.state.inputValue:n.props.selectsRange?Ey(n.props.startDate,n.props.endDate,{dateFormat:d,locale:f}):n.props.selectsMultiple?Ay((o=n.props.selectedDates)!==null&&o!==void 0?o:[],{dateFormat:d,locale:f}):vt(n.props.selected,{dateFormat:d,locale:f});return v.cloneElement(l,(s={},s[c]=function(m){n.input=m},s.value=p,s.onBlur=n.handleBlur,s.onChange=n.handleChange,s.onClick=n.onInputClick,s.onFocus=n.handleFocus,s.onKeyDown=n.onInputKeyDown,s.id=n.props.id,s.name=n.props.name,s.form=n.props.form,s.autoFocus=n.props.autoFocus,s.placeholder=n.props.placeholderText,s.disabled=n.props.disabled,s.autoComplete=n.props.autoComplete,s.className=Re(l.props.className,a),s.title=n.props.title,s.readOnly=n.props.readOnly,s.required=n.props.required,s.tabIndex=n.props.tabIndex,s["aria-describedby"]=n.props.ariaDescribedBy,s["aria-invalid"]=n.props.ariaInvalid,s["aria-labelledby"]=n.props.ariaLabelledBy,s["aria-required"]=n.props.ariaRequired,s))},n.renderClearButton=function(){var i=n.props,s=i.isClearable,o=i.disabled,a=i.selected,l=i.startDate,c=i.endDate,u=i.clearButtonTitle,h=i.clearButtonClassName,d=h===void 0?"":h,f=i.ariaLabelClose,p=f===void 0?"Close":f,m=i.selectedDates;return s&&(a!=null||l!=null||c!=null||m!=null&&m.length)?v.createElement("button",{type:"button",className:Re("react-datepicker__close-icon",d,{"react-datepicker__close-icon--disabled":o}),disabled:o,"aria-label":p,onClick:n.onClearClick,title:u,tabIndex:-1}):null},n.state=n.calcInitialState(),n.preventFocusTimeout=void 0,n}return Object.defineProperty(e,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Ei,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(t,n){var i,s,o,a;t.inline&&Ob(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Wf(this.props.highlightDates)}),!n.focused&&!sr(t.selected,this.props.selected)&&this.setState({inputValue:null}),n.open!==this.state.open&&(n.open===!1&&this.state.open===!0&&((s=(i=this.props).onCalendarOpen)===null||s===void 0||s.call(i)),n.open===!0&&this.state.open===!1&&((a=(o=this.props).onCalendarClose)===null||a===void 0||a.call(o)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var t=this.props,n=t.showIcon,i=t.icon,s=t.calendarIconClassname,o=t.calendarIconClassName,a=t.toggleCalendarOnIconClick,l=this.state.open;return s&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),v.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&v.createElement(bb,te({icon:i,className:Re(o,!o&&s,l&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},e.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var n=this.state.open?v.createElement(Kf,{enableTabLoop:this.props.enableTabLoop},v.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(n=v.createElement(Xf,te({portalId:this.props.portalId},this.props),n)),v.createElement("div",null,this.renderInputContainer(),n)}return v.createElement(xb,te({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},e})(v.Component);var _b="input",nc="navigate";function Bi(r){"@babel/helpers - typeof";return Bi=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},Bi(r)}function Db(r,e){if(Bi(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(Bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Mb(r){var e=Db(r,"string");return Bi(e)=="symbol"?e:String(e)}function Pb(r,e,t){return e=Mb(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Jf(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function e1(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Jf(Object(t),!0).forEach(function(n){Pb(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Jf(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}var Tb={npm_package_exports___require:"./dist/avocado-suite.umd.js",npm_package_devDependencies__types_node:"20.2.5",npm_package_devDependencies_vitest:"1.2.2",npm_package_dependencies_react_toastify:"9.0.3",npm_package_devDependencies__testing_library_jest_dom:"6.4.0",npm_config_user_agent:"pnpm/9.10.0 npm/? node/v20.17.0 linux x64",CI:"true",npm_package_devDependencies__testing_library_user_event:"14.5.2",npm_package_dependencies_embla_carousel_react:"^8.5.2",npm_package_devDependencies_vite:"5.0.12",npm_node_execpath:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_package_publishConfig_access:"public",npm_package_files_0:"dist",HOME:"/home/runner",npm_package_dependencies_react_select_async_paginate:"0.7.3",npm_package_devDependencies_classnames:"2.3.2",npm_package_devDependencies_sass:"1.62.1",npm_package_peerDependencies_react_toastify:"9.0.3",npm_config_auto_install_peers:"true",npm_package_devDependencies_vite_plugin_dts:"3.7.1",npm_package_devDependencies_typescript:"5.1.3",npm_package_peerDependencies_react_select_async_paginate:"0.7.3",npm_package_types:"./dist/index.d.ts",npm_package_devDependencies__types_react_dom:"18.0.11",npm_package_devDependencies__vitejs_plugin_react_swc:"3.5.0",npm_package_type:"module",npm_package_dependencies_react_datepicker:"7.3.0",npm_package_dependencies_zustand:"4.5.4",npm_package_module:"./dist/avocado-suite.es.js",npm_package_devDependencies__types_testing_library__jest_dom:"6.0.0",npm_package_dependencies__foris_avocado_icons:"workspace:*",npm_package_devDependencies__vitest_coverage_v8:"1.2.2",npm_config_registry:"https://registry.npmjs.org/",npm_config_node_linker:"hoisted",npm_package_exports___import:"./dist/avocado-suite.es.js",npm_package_dependencies__foris_avocado_core:"workspace:*",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/avocado/avocado/packages/avocado-suite/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/opt/hostedtoolcache/node/20.17.0/x64/bin:/home/runner/setup-pnpm/node_modules/.bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",TURBO_HASH:"075096b1b5c1f2d9",npm_package_name:"@foris/avocado-suite",NODE:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_config_frozen_lockfile:"",npm_package_devDependencies__vitest_ui:"1.2.2",npm_config_legacy_peer_deps:"true",LANG:"C.UTF-8",npm_package_dependencies_react_dom:"18.2.0",npm_package_main:"./dist/avocado-suite.umd.js",npm_lifecycle_script:"tsc && vite build",npm_package_scripts_test:"vitest run",NODE_PATH:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"0.32.0",npm_package_devDependencies__testing_library_react:"14.2.0",npm_package_devDependencies__types_react:"18.0.28",npm_package_devDependencies_jsdom:"24.0.0",npm_lifecycle_event:"build",npm_package_scripts_build:"tsc && vite build",npm_package_devDependencies__foris_tsconfig:"workspace:*",npm_package_scripts_test_watch:"vitest --ui",npm_package_scripts_coverage:"vitest run --coverage",npm_package_dependencies_react_select:"5.8.0",PWD:"/home/runner/work/avocado/avocado/packages/avocado-suite",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/pnpm.cjs",npm_command:"run-script",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/avocado/avocado/packages/avocado-suite",npm_package_dependencies_react:"18.2.0",npm_package_peerDependencies_react_select:"5.8.0",INIT_CWD:"/home/runner/work/avocado/avocado/packages/avocado-suite",NODE_ENV:"production"};function Eb(r){if(r.sheet)return r.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===r)return document.styleSheets[e]}function Ab(r){var e=document.createElement("style");return e.setAttribute("data-emotion",r.key),r.nonce!==void 0&&e.setAttribute("nonce",r.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Rb=function(){function r(t){var n=this;this._insertTag=function(i){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,s),n.tags.push(i)},this.isSpeedy=t.speedy===void 0?Tb.NODE_ENV==="production":t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=r.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ab(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Eb(n);try{i.insertRule(t,i.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),this.tags=[],this.ctr=0},r}(),je="-ms-",bo="-moz-",se="-webkit-",t1="comm",rc="rule",ic="decl",Lb="@import",n1="@keyframes",Nb="@layer",Bb=Math.abs,vo=String.fromCharCode,Ib=Object.assign;function Hb(r,e){return He(r,0)^45?(((e<<2^He(r,0))<<2^He(r,1))<<2^He(r,2))<<2^He(r,3):0}function r1(r){return r.trim()}function Vb(r,e){return(r=e.exec(r))?r[0]:r}function oe(r,e,t){return r.replace(e,t)}function sc(r,e){return r.indexOf(e)}function He(r,e){return r.charCodeAt(e)|0}function Ii(r,e,t){return r.slice(e,t)}function jt(r){return r.length}function oc(r){return r.length}function Co(r,e){return e.push(r),r}function Fb(r,e){return r.map(e).join("")}var wo=1,Qr=1,i1=0,et=0,Me=0,Wr="";function ko(r,e,t,n,i,s,o){return{value:r,root:e,parent:t,type:n,props:i,children:s,line:wo,column:Qr,length:o,return:""}}function Hi(r,e){return Ib(ko("",null,null,"",null,null,0),r,{length:-r.length},e)}function Qb(){return Me}function Wb(){return Me=et>0?He(Wr,--et):0,Qr--,Me===10&&(Qr=1,wo--),Me}function ht(){return Me=et<i1?He(Wr,et++):0,Qr++,Me===10&&(Qr=1,wo++),Me}function qt(){return He(Wr,et)}function xo(){return et}function Vi(r,e){return Ii(Wr,r,e)}function Fi(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function s1(r){return wo=Qr=1,i1=jt(Wr=r),et=0,[]}function o1(r){return Wr="",r}function So(r){return r1(Vi(et-1,ac(r===91?r+2:r===40?r+1:r)))}function jb(r){for(;(Me=qt())&&Me<33;)ht();return Fi(r)>2||Fi(Me)>3?"":" "}function qb(r,e){for(;--e&&ht()&&!(Me<48||Me>102||Me>57&&Me<65||Me>70&&Me<97););return Vi(r,xo()+(e<6&&qt()==32&&ht()==32))}function ac(r){for(;ht();)switch(Me){case r:return et;case 34:case 39:r!==34&&r!==39&&ac(Me);break;case 40:r===41&&ac(r);break;case 92:ht();break}return et}function zb(r,e){for(;ht()&&r+Me!==57&&!(r+Me===84&&qt()===47););return"/*"+Vi(e,et-1)+"*"+vo(r===47?r:ht())}function Yb(r){for(;!Fi(qt());)ht();return Vi(r,et)}function $b(r){return o1(Oo("",null,null,null,[""],r=s1(r),0,[0],r))}function Oo(r,e,t,n,i,s,o,a,l){for(var c=0,u=0,h=o,d=0,f=0,p=0,m=1,g=1,y=1,C=0,w="",x=i,b=s,S=n,k=w;g;)switch(p=C,C=ht()){case 40:if(p!=108&&He(k,h-1)==58){sc(k+=oe(So(C),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:k+=So(C);break;case 9:case 10:case 13:case 32:k+=jb(p);break;case 92:k+=qb(xo()-1,7);continue;case 47:switch(qt()){case 42:case 47:Co(Ub(zb(ht(),xo()),e,t),l);break;default:k+="/"}break;case 123*m:a[c++]=jt(k)*y;case 125*m:case 59:case 0:switch(C){case 0:case 125:g=0;case 59+u:y==-1&&(k=oe(k,/\f/g,"")),f>0&&jt(k)-h&&Co(f>32?l1(k+";",n,t,h-1):l1(oe(k," ","")+";",n,t,h-2),l);break;case 59:k+=";";default:if(Co(S=a1(k,e,t,c,u,i,a,w,x=[],b=[],h),s),C===123)if(u===0)Oo(k,e,S,S,x,s,h,a,b);else switch(d===99&&He(k,3)===110?100:d){case 100:case 108:case 109:case 115:Oo(r,S,S,n&&Co(a1(r,S,S,0,0,i,a,w,i,x=[],h),b),i,b,h,a,n?x:b);break;default:Oo(k,S,S,S,[""],b,0,a,b)}}c=u=f=0,m=y=1,w=k="",h=o;break;case 58:h=1+jt(k),f=p;default:if(m<1){if(C==123)--m;else if(C==125&&m++==0&&Wb()==125)continue}switch(k+=vo(C),C*m){case 38:y=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(jt(k)-1)*y,y=1;break;case 64:qt()===45&&(k+=So(ht())),d=qt(),u=h=jt(w=k+=Yb(xo())),C++;break;case 45:p===45&&jt(k)==2&&(m=0)}}return s}function a1(r,e,t,n,i,s,o,a,l,c,u){for(var h=i-1,d=i===0?s:[""],f=oc(d),p=0,m=0,g=0;p<n;++p)for(var y=0,C=Ii(r,h+1,h=Bb(m=o[p])),w=r;y<f;++y)(w=r1(m>0?d[y]+" "+C:oe(C,/&\f/g,d[y])))&&(l[g++]=w);return ko(r,e,t,i===0?rc:a,l,c,u)}function Ub(r,e,t){return ko(r,e,t,t1,vo(Qb()),Ii(r,2,-2),0)}function l1(r,e,t,n){return ko(r,e,t,ic,Ii(r,0,n),Ii(r,n+1,-1),n)}function jr(r,e){for(var t="",n=oc(r),i=0;i<n;i++)t+=e(r[i],i,r,e)||"";return t}function Zb(r,e,t,n){switch(r.type){case Nb:if(r.children.length)break;case Lb:case ic:return r.return=r.return||r.value;case t1:return"";case n1:return r.return=r.value+"{"+jr(r.children,n)+"}";case rc:r.value=r.props.join(",")}return jt(t=jr(r.children,n))?r.return=r.value+"{"+t+"}":""}function Xb(r){var e=oc(r);return function(t,n,i,s){for(var o="",a=0;a<e;a++)o+=r[a](t,n,i,s)||"";return o}}function Kb(r){return function(e){e.root||(e=e.return)&&r(e)}}function Gb(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var Jb=function(r,e,t){for(var n=0,i=0;n=i,i=qt(),n===38&&i===12&&(e[t]=1),!Fi(i);)ht();return Vi(r,et)},ev=function(r,e){var t=-1,n=44;do switch(Fi(n)){case 0:n===38&&qt()===12&&(e[t]=1),r[t]+=Jb(et-1,e,t);break;case 2:r[t]+=So(n);break;case 4:if(n===44){r[++t]=qt()===58?"&\f":"",e[t]=r[t].length;break}default:r[t]+=vo(n)}while(n=ht());return r},tv=function(r,e){return o1(ev(s1(r),e))},c1=new WeakMap,nv=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var e=r.value,t=r.parent,n=r.column===t.column&&r.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(r.props.length===1&&e.charCodeAt(0)!==58&&!c1.get(t))&&!n){c1.set(r,!0);for(var i=[],s=tv(e,i),o=t.props,a=0,l=0;a<s.length;a++)for(var c=0;c<o.length;c++,l++)r.props[l]=i[a]?s[a].replace(/&\f/g,o[c]):o[c]+" "+s[a]}}},rv=function(r){if(r.type==="decl"){var e=r.value;e.charCodeAt(0)===108&&e.charCodeAt(2)===98&&(r.return="",r.value="")}};function u1(r,e){switch(Hb(r,e)){case 5103:return se+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return se+r+bo+r+je+r+r;case 6828:case 4268:return se+r+je+r+r;case 6165:return se+r+je+"flex-"+r+r;case 5187:return se+r+oe(r,/(\w+).+(:[^]+)/,se+"box-$1$2"+je+"flex-$1$2")+r;case 5443:return se+r+je+"flex-item-"+oe(r,/flex-|-self/,"")+r;case 4675:return se+r+je+"flex-line-pack"+oe(r,/align-content|flex-|-self/,"")+r;case 5548:return se+r+je+oe(r,"shrink","negative")+r;case 5292:return se+r+je+oe(r,"basis","preferred-size")+r;case 6060:return se+"box-"+oe(r,"-grow","")+se+r+je+oe(r,"grow","positive")+r;case 4554:return se+oe(r,/([^-])(transform)/g,"$1"+se+"$2")+r;case 6187:return oe(oe(oe(r,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),r,"")+r;case 5495:case 3959:return oe(r,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return oe(oe(r,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+r+r;case 4095:case 3583:case 4068:case 2532:return oe(r,/(.+)-inline(.+)/,se+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jt(r)-1-e>6)switch(He(r,e+1)){case 109:if(He(r,e+4)!==45)break;case 102:return oe(r,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+bo+(He(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~sc(r,"stretch")?u1(oe(r,"stretch","fill-available"),e)+r:r}break;case 4949:if(He(r,e+1)!==115)break;case 6444:switch(He(r,jt(r)-3-(~sc(r,"!important")&&10))){case 107:return oe(r,":",":"+se)+r;case 101:return oe(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(He(r,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+je+"$2box$3")+r}break;case 5936:switch(He(r,e+11)){case 114:return se+r+je+oe(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return se+r+je+oe(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return se+r+je+oe(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return se+r+je+r+r}return r}var iv=function(r,e,t,n){if(r.length>-1&&!r.return)switch(r.type){case ic:r.return=u1(r.value,r.length);break;case n1:return jr([Hi(r,{value:oe(r.value,"@","@"+se)})],n);case rc:if(r.length)return Fb(r.props,function(i){switch(Vb(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jr([Hi(r,{props:[oe(i,/:(read-\w+)/,":"+bo+"$1")]})],n);case"::placeholder":return jr([Hi(r,{props:[oe(i,/:(plac\w+)/,":"+se+"input-$1")]}),Hi(r,{props:[oe(i,/:(plac\w+)/,":"+bo+"$1")]}),Hi(r,{props:[oe(i,/:(plac\w+)/,je+"input-$1")]})],n)}return""})}},sv=[iv],ov=function(r){var e=r.key;if(e==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var n=r.stylisPlugins||sv,i={},s,o=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),g=1;g<m.length;g++)i[m[g]]=!0;o.push(p)});var a,l=[nv,rv];{var c,u=[Zb,Kb(function(p){c.insert(p)})],h=Xb(l.concat(n,u)),d=function(p){return jr($b(p),h)};a=function(p,m,g,y){c=g,d(p?p+"{"+m.styles+"}":m.styles),y&&(f.inserted[m.name]=!0)}}var f={key:e,sheet:new Rb({key:e,container:s,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:a};return f.sheet.hydrate(o),f},h1={exports:{}},le={};/** @license React v16.13.1
|
|
541
541
|
* react-is.production.min.js
|
|
542
542
|
*
|
|
543
543
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
544
544
|
*
|
|
545
545
|
* This source code is licensed under the MIT license found in the
|
|
546
546
|
* LICENSE file in the root directory of this source tree.
|
|
547
|
-
*/var ja;function pd(){if(ja)return z;ja=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,e=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function y(_){if(typeof _=="object"&&_!==null){var S=_.$$typeof;switch(S){case r:switch(_=_.type,_){case c:case l:case e:case a:case o:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case u:case h:case f:case i:return _;default:return S}}case n:return S}}}function D(_){return y(_)===l}return z.AsyncMode=c,z.ConcurrentMode=l,z.ContextConsumer=s,z.ContextProvider=i,z.Element=r,z.ForwardRef=u,z.Fragment=e,z.Lazy=h,z.Memo=f,z.Portal=n,z.Profiler=a,z.StrictMode=o,z.Suspense=d,z.isAsyncMode=function(_){return D(_)||y(_)===c},z.isConcurrentMode=D,z.isContextConsumer=function(_){return y(_)===s},z.isContextProvider=function(_){return y(_)===i},z.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===r},z.isForwardRef=function(_){return y(_)===u},z.isFragment=function(_){return y(_)===e},z.isLazy=function(_){return y(_)===h},z.isMemo=function(_){return y(_)===f},z.isPortal=function(_){return y(_)===n},z.isProfiler=function(_){return y(_)===a},z.isStrictMode=function(_){return y(_)===o},z.isSuspense=function(_){return y(_)===d},z.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===e||_===l||_===a||_===o||_===d||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===f||_.$$typeof===i||_.$$typeof===s||_.$$typeof===u||_.$$typeof===C||_.$$typeof===v||_.$$typeof===b||_.$$typeof===m)},z.typeOf=y,z}Za.exports=pd();var fd=Za.exports,Wa=fd,hd={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},md={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qa={};qa[Wa.ForwardRef]=hd,qa[Wa.Memo]=md;function gd(t){for(var r=0,n,e=0,o=t.length;o>=4;++e,o-=4)n=t.charCodeAt(e)&255|(t.charCodeAt(++e)&255)<<8|(t.charCodeAt(++e)&255)<<16|(t.charCodeAt(++e)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(t.charCodeAt(e+2)&255)<<16;case 2:r^=(t.charCodeAt(e+1)&255)<<8;case 1:r^=t.charCodeAt(e)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Cd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vd={npm_package_exports___require:"./dist/avocado-suite.umd.js",npm_package_devDependencies__types_node:"20.2.5",npm_package_devDependencies_vitest:"1.2.2",npm_package_dependencies_react_toastify:"9.0.3",npm_package_devDependencies__testing_library_jest_dom:"6.4.0",npm_config_user_agent:"pnpm/9.10.0 npm/? node/v20.17.0 linux x64",CI:"true",npm_package_devDependencies__testing_library_user_event:"14.5.2",npm_package_dependencies_embla_carousel_react:"^8.5.2",npm_package_devDependencies_vite:"5.0.12",npm_node_execpath:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_package_publishConfig_access:"public",npm_package_files_0:"dist",HOME:"/home/runner",npm_package_dependencies_react_select_async_paginate:"0.7.3",npm_package_devDependencies_classnames:"2.3.2",npm_package_devDependencies_sass:"1.62.1",npm_package_peerDependencies_react_toastify:"9.0.3",npm_config_auto_install_peers:"true",npm_package_devDependencies_vite_plugin_dts:"3.7.1",npm_package_devDependencies_typescript:"5.1.3",npm_package_peerDependencies_react_select_async_paginate:"0.7.3",npm_package_types:"./dist/index.d.ts",npm_package_devDependencies__types_react_dom:"18.0.11",npm_package_devDependencies__vitejs_plugin_react_swc:"3.5.0",npm_package_type:"module",npm_package_dependencies_react_datepicker:"7.3.0",npm_package_dependencies_zustand:"4.5.4",npm_package_module:"./dist/avocado-suite.es.js",npm_package_devDependencies__types_testing_library__jest_dom:"6.0.0",npm_package_dependencies__foris_avocado_icons:"workspace:*",npm_package_devDependencies__vitest_coverage_v8:"1.2.2",npm_config_registry:"https://registry.npmjs.org/",npm_config_node_linker:"hoisted",npm_package_exports___import:"./dist/avocado-suite.es.js",npm_package_dependencies__foris_avocado_core:"workspace:*",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/avocado/avocado/packages/avocado-suite/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/opt/hostedtoolcache/node/20.17.0/x64/bin:/home/runner/setup-pnpm/node_modules/.bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",TURBO_HASH:"075096b1b5c1f2d9",npm_package_name:"@foris/avocado-suite",NODE:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_config_frozen_lockfile:"",npm_package_devDependencies__vitest_ui:"1.2.2",npm_config_legacy_peer_deps:"true",LANG:"C.UTF-8",npm_package_dependencies_react_dom:"18.2.0",npm_package_main:"./dist/avocado-suite.umd.js",npm_lifecycle_script:"tsc && vite build",npm_package_scripts_test:"vitest run",NODE_PATH:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"0.32.0",npm_package_devDependencies__testing_library_react:"14.2.0",npm_package_devDependencies__types_react:"18.0.28",npm_package_devDependencies_jsdom:"24.0.0",npm_lifecycle_event:"build",npm_package_scripts_build:"tsc && vite build",npm_package_devDependencies__foris_tsconfig:"workspace:*",npm_package_scripts_test_watch:"vitest --ui",npm_package_scripts_coverage:"vitest run --coverage",npm_package_dependencies_react_select:"5.8.0",PWD:"/home/runner/work/avocado/avocado/packages/avocado-suite",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/pnpm.cjs",npm_command:"run-script",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/avocado/avocado/packages/avocado-suite",npm_package_dependencies_react:"18.2.0",npm_package_peerDependencies_react_select:"5.8.0",INIT_CWD:"/home/runner/work/avocado/avocado/packages/avocado-suite",NODE_ENV:"production"},_d=/[A-Z]|^ms/g,yd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ua=function(t){return t.charCodeAt(1)===45},za=function(t){return t!=null&&typeof t!="boolean"},lo=rd(function(t){return Ua(t)?t:t.replace(_d,"-$&").toLowerCase()}),$a=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(yd,function(n,e,o){return it={name:e,styles:o,next:it},e})}return Cd[t]!==1&&!Ua(t)&&typeof r=="number"&&r!==0?r+"px":r},bd="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Gn(t,r,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return it={name:n.name,styles:n.styles,next:it},n.name;if(n.styles!==void 0){var e=n.next;if(e!==void 0)for(;e!==void 0;)it={name:e.name,styles:e.styles,next:it},e=e.next;var o=n.styles+";";return o}return wd(t,r,n)}}return n}function wd(t,r,n){var e="";if(Array.isArray(n))for(var o=0;o<n.length;o++)e+=Gn(t,r,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")za(i)&&(e+=lo(a)+":"+$a(a,i)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&vd.NODE_ENV!=="production")throw new Error(bd);if(Array.isArray(i)&&typeof i[0]=="string"&&r==null)for(var s=0;s<i.length;s++)za(i[s])&&(e+=lo(a)+":"+$a(a,i[s])+";");else{var c=Gn(t,r,i);switch(a){case"animation":case"animationName":{e+=lo(a)+":"+c+";";break}default:e+=a+"{"+c+"}"}}}}return e}var Qa=/label:\s*([^\s;\n{]+)\s*(;|$)/g,it,kd=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var e=!0,o="";it=void 0;var a=t[0];a==null||a.raw===void 0?(e=!1,o+=Gn(n,r,a)):o+=a[0];for(var i=1;i<t.length;i++)o+=Gn(n,r,t[i]),e&&(o+=a[i]);Qa.lastIndex=0;for(var s="",c;(c=Qa.exec(o))!==null;)s+="-"+c[1];var l=gd(o)+s;return{name:l,styles:o,next:it}},Dd=N.createContext(typeof HTMLElement<"u"?dd({key:"css"}):null);Dd.Provider;function Sd(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return kd(r)}var Md=function(){var t=Sd.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function Ed(t,r){return r||(r=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}}))}var Ka=function(){};function Xa(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function xd(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Ld={get passive(){return!0}},Jn=typeof window<"u"?window:{};Jn.addEventListener&&Jn.removeEventListener&&(Jn.addEventListener("p",Ka,Ld),Jn.removeEventListener("p",Ka,!1));var Ga;Md(Ga||(Ga=Ed([`
|
|
547
|
+
*/var d1;function av(){if(d1)return le;d1=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,o=r?Symbol.for("react.provider"):60109,a=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,c=r?Symbol.for("react.concurrent_mode"):60111,u=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,C=r?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case e:switch(b=b.type,b){case l:case c:case n:case s:case i:case h:return b;default:switch(b=b&&b.$$typeof,b){case a:case u:case p:case f:case o:return b;default:return S}}case t:return S}}}function x(b){return w(b)===c}return le.AsyncMode=l,le.ConcurrentMode=c,le.ContextConsumer=a,le.ContextProvider=o,le.Element=e,le.ForwardRef=u,le.Fragment=n,le.Lazy=p,le.Memo=f,le.Portal=t,le.Profiler=s,le.StrictMode=i,le.Suspense=h,le.isAsyncMode=function(b){return x(b)||w(b)===l},le.isConcurrentMode=x,le.isContextConsumer=function(b){return w(b)===a},le.isContextProvider=function(b){return w(b)===o},le.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},le.isForwardRef=function(b){return w(b)===u},le.isFragment=function(b){return w(b)===n},le.isLazy=function(b){return w(b)===p},le.isMemo=function(b){return w(b)===f},le.isPortal=function(b){return w(b)===t},le.isProfiler=function(b){return w(b)===s},le.isStrictMode=function(b){return w(b)===i},le.isSuspense=function(b){return w(b)===h},le.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===c||b===s||b===i||b===h||b===d||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===f||b.$$typeof===o||b.$$typeof===a||b.$$typeof===u||b.$$typeof===g||b.$$typeof===y||b.$$typeof===C||b.$$typeof===m)},le.typeOf=w,le}h1.exports=av();var lv=h1.exports,f1=lv,cv={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p1={};p1[f1.ForwardRef]=cv,p1[f1.Memo]=uv;function hv(r){for(var e=0,t,n=0,i=r.length;i>=4;++n,i-=4)t=r.charCodeAt(n)&255|(r.charCodeAt(++n)&255)<<8|(r.charCodeAt(++n)&255)<<16|(r.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(r.charCodeAt(n+2)&255)<<16;case 2:e^=(r.charCodeAt(n+1)&255)<<8;case 1:e^=r.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var dv={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fv={npm_package_exports___require:"./dist/avocado-suite.umd.js",npm_package_devDependencies__types_node:"20.2.5",npm_package_devDependencies_vitest:"1.2.2",npm_package_dependencies_react_toastify:"9.0.3",npm_package_devDependencies__testing_library_jest_dom:"6.4.0",npm_config_user_agent:"pnpm/9.10.0 npm/? node/v20.17.0 linux x64",CI:"true",npm_package_devDependencies__testing_library_user_event:"14.5.2",npm_package_dependencies_embla_carousel_react:"^8.5.2",npm_package_devDependencies_vite:"5.0.12",npm_node_execpath:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_package_publishConfig_access:"public",npm_package_files_0:"dist",HOME:"/home/runner",npm_package_dependencies_react_select_async_paginate:"0.7.3",npm_package_devDependencies_classnames:"2.3.2",npm_package_devDependencies_sass:"1.62.1",npm_package_peerDependencies_react_toastify:"9.0.3",npm_config_auto_install_peers:"true",npm_package_devDependencies_vite_plugin_dts:"3.7.1",npm_package_devDependencies_typescript:"5.1.3",npm_package_peerDependencies_react_select_async_paginate:"0.7.3",npm_package_types:"./dist/index.d.ts",npm_package_devDependencies__types_react_dom:"18.0.11",npm_package_devDependencies__vitejs_plugin_react_swc:"3.5.0",npm_package_type:"module",npm_package_dependencies_react_datepicker:"7.3.0",npm_package_dependencies_zustand:"4.5.4",npm_package_module:"./dist/avocado-suite.es.js",npm_package_devDependencies__types_testing_library__jest_dom:"6.0.0",npm_package_dependencies__foris_avocado_icons:"workspace:*",npm_package_devDependencies__vitest_coverage_v8:"1.2.2",npm_config_registry:"https://registry.npmjs.org/",npm_config_node_linker:"hoisted",npm_package_exports___import:"./dist/avocado-suite.es.js",npm_package_dependencies__foris_avocado_core:"workspace:*",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/avocado/avocado/packages/avocado-suite/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/opt/hostedtoolcache/node/20.17.0/x64/bin:/home/runner/setup-pnpm/node_modules/.bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",TURBO_HASH:"075096b1b5c1f2d9",npm_package_name:"@foris/avocado-suite",NODE:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_config_frozen_lockfile:"",npm_package_devDependencies__vitest_ui:"1.2.2",npm_config_legacy_peer_deps:"true",LANG:"C.UTF-8",npm_package_dependencies_react_dom:"18.2.0",npm_package_main:"./dist/avocado-suite.umd.js",npm_lifecycle_script:"tsc && vite build",npm_package_scripts_test:"vitest run",NODE_PATH:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"0.32.0",npm_package_devDependencies__testing_library_react:"14.2.0",npm_package_devDependencies__types_react:"18.0.28",npm_package_devDependencies_jsdom:"24.0.0",npm_lifecycle_event:"build",npm_package_scripts_build:"tsc && vite build",npm_package_devDependencies__foris_tsconfig:"workspace:*",npm_package_scripts_test_watch:"vitest --ui",npm_package_scripts_coverage:"vitest run --coverage",npm_package_dependencies_react_select:"5.8.0",PWD:"/home/runner/work/avocado/avocado/packages/avocado-suite",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/pnpm.cjs",npm_command:"run-script",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/avocado/avocado/packages/avocado-suite",npm_package_dependencies_react:"18.2.0",npm_package_peerDependencies_react_select:"5.8.0",INIT_CWD:"/home/runner/work/avocado/avocado/packages/avocado-suite",NODE_ENV:"production"},pv=/[A-Z]|^ms/g,mv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m1=function(r){return r.charCodeAt(1)===45},g1=function(r){return r!=null&&typeof r!="boolean"},lc=Gb(function(r){return m1(r)?r:r.replace(pv,"-$&").toLowerCase()}),y1=function(r,e){switch(r){case"animation":case"animationName":if(typeof e=="string")return e.replace(mv,function(t,n,i){return In={name:n,styles:i,next:In},n})}return dv[r]!==1&&!m1(r)&&typeof e=="number"&&e!==0?e+"px":e},gv="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function _o(r,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return In={name:t.name,styles:t.styles,next:In},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)In={name:n.name,styles:n.styles,next:In},n=n.next;var i=t.styles+";";return i}return yv(r,e,t)}}return t}function yv(r,e,t){var n="";if(Array.isArray(t))for(var i=0;i<t.length;i++)n+=_o(r,e,t[i])+";";else for(var s in t){var o=t[s];if(typeof o!="object")g1(o)&&(n+=lc(s)+":"+y1(s,o)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&fv.NODE_ENV!=="production")throw new Error(gv);if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var a=0;a<o.length;a++)g1(o[a])&&(n+=lc(s)+":"+y1(s,o[a])+";");else{var l=_o(r,e,o);switch(s){case"animation":case"animationName":{n+=lc(s)+":"+l+";";break}default:n+=s+"{"+l+"}"}}}}return n}var b1=/label:\s*([^\s;\n{]+)\s*(;|$)/g,In,bv=function(r,e,t){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var n=!0,i="";In=void 0;var s=r[0];s==null||s.raw===void 0?(n=!1,i+=_o(t,e,s)):i+=s[0];for(var o=1;o<r.length;o++)i+=_o(t,e,r[o]),n&&(i+=s[o]);b1.lastIndex=0;for(var a="",l;(l=b1.exec(i))!==null;)a+="-"+l[1];var c=hv(i)+a;return{name:c,styles:i,next:In}},vv=Y.createContext(typeof HTMLElement<"u"?ov({key:"css"}):null);vv.Provider;function Cv(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return bv(e)}var wv=function(){var r=Cv.apply(void 0,arguments),e="animation-"+r.name;return{name:e,styles:"@keyframes "+e+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function kv(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}var v1=function(){};function C1(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function xv(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Sv={get passive(){return!0}},Do=typeof window<"u"?window:{};Do.addEventListener&&Do.removeEventListener&&(Do.addEventListener("p",v1,Sv),Do.removeEventListener("p",v1,!1));var w1;wv(w1||(w1=kv([`
|
|
548
548
|
0%, 80%, 100% { opacity: 0; }
|
|
549
549
|
40% { opacity: 1; }
|
|
550
|
-
`])));var Td={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0};Pa({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Td);var Ja=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Pd(t,r){return!!(t===r||Ja(t)&&Ja(r))}function Od(t,r){if(t.length!==r.length)return!1;for(var n=0;n<t.length;n++)if(!Pd(t[n],r[n]))return!1;return!0}function Nd(t,r){r===void 0&&(r=Od);var n=null;function e(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(n&&n.lastThis===this&&r(o,n.lastArgs))return n.lastResult;var i=t.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return e.clear=function(){n=null},e}for(var uo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Rd=new RegExp("["+uo.map(function(t){return t.letters}).join("")+"]","g"),ei={},po=0;po<uo.length;po++)for(var fo=uo[po],ho=0;ho<fo.letters.length;ho++)ei[fo.letters[ho]]=fo.base;var ti=function(t){return t.replace(Rd,function(r){return ei[r]})},Hd=Nd(ti),ni=function(t){return t.replace(/^\s+|\s+$/g,"")},Ad=function(t){return"".concat(t.label," ").concat(t.value)},Id=function(t){return function(r,n){if(r.data.__isNew__)return!0;var e=Pa({ignoreCase:!0,ignoreAccents:!0,stringify:Ad,trim:!0,matchFrom:"any"},t),o=e.ignoreCase,a=e.ignoreAccents,i=e.stringify,s=e.trim,c=e.matchFrom,l=s?ni(n):n,u=s?ni(i(r)):i(r);return o&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=Hd(l),u=ti(u)),c==="start"?u.substr(0,l.length)===l:u.indexOf(l)>-1}},Vd=function(t){return t.label},Fd=function(t){return t.label},Bd=function(t){return t.value},Yd=function(t){return!!t.isDisabled};Xa(),Xa(),Id(),xd();var ri={};Object.defineProperty(ri,"__esModule",{value:!0});function Zd(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length===2)return ai(t[0],t[1])||null;var n=t.slice(1).reduce(function(e,o){return ai(e,o)},t[0]);return n||null}ri.default=Zd;var oi=new WeakMap;function ai(t,r){if(t&&r){var n=oi.get(t)||new WeakMap;oi.set(t,n);var e=n.get(r)||function(o){ii(t,o),ii(r,o)};return n.set(r,e),e}return t||r}function ii(t,r){typeof t=="function"?t(r):t.current=r}const si=({status:t,size:r="md"})=>{const n={error:"circle-cross",warning:"alert-triangle",blocked:"circle-info",unsaved:"refresh"},e={error:!0,warning:!0,unsaved:!0},o={error:"error-50",warning:"warning-50",unsaved:"info-50"};return U.jsx(Qe,{size:r,name:n[t],filled:e[t],color:o[t]})},jd="_textField_1gqk2_1",Wd="_textField_label_1gqk2_4",qd="_textField_content_1gqk2_12",Ud="_input_1gqk2_17",zd="_input_field_1gqk2_27",$d="_input_clearButton_1gqk2_40",Qd="_input__withIcon_1gqk2_54",Kd="_textField_content__error_1gqk2_57",Xd="_textField_content__warning_1gqk2_60",Gd="_textField_content__blocked_1gqk2_63",Jd="_textField_content__unsaved_1gqk2_66",e9="_textField_helperText_1gqk2_69",t9="_textField__darkMode_1gqk2_79",Be={textField:jd,textField_label:Wd,textField_content:qd,input:Ud,input_field:zd,input_clearButton:$d,input__withIcon:Qd,textField_content__error:Kd,textField_content__warning:Xd,textField_content__blocked:Gd,textField_content__unsaved:Jd,textField_helperText:e9,textField__darkMode:t9},ci=({className:t,allowClear:r=!0,label:n,status:e,statusDisplay:o="inline",statusText:a="",icon:i,...s})=>{const{theme:c}=r1(),[l,u]=g.useState(s.value||""),d=()=>{u("")},p=f=>{const h=f.currentTarget.value;u(h),s.onChange&&s.onChange(f)};return U.jsxs("section",{className:Le(Be.textField,t&&t,(c==null?void 0:c.mode)==="dark"&&Be.textField__darkMode),children:[n&&U.jsx("label",{htmlFor:s.id,className:Be.textField_label,children:n}),U.jsxs("div",{className:Le(Be.textField_content,e&&Be[`textField_content__${e}`]),children:[U.jsxs("span",{className:Le(Be.input,i&&Be.input__withIcon),children:[i&&U.jsx(Qe,{name:i,color:s!=null&&s.disabled?"neutral-50":"neutral-70"}),U.jsx("input",{className:Be.input_field,value:l,onChange:f=>{p(f)},...s}),r&&U.jsx("button",{className:Be.input_clearButton,onClick:d,children:U.jsx(Qe,{name:"close",size:"sm"})})]}),e&&o==="icon"&&U.jsx(si,{status:e})]}),e&&o==="inline"&&U.jsxs("span",{className:Be.textField_helperText,children:[U.jsx(si,{size:"sm",status:e}),a]})]})};ci.prototype={avocado:"TextField"};function li(t){var r,n,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=li(t[r]))&&(e&&(e+=" "),e+=n);else for(r in t)t[r]&&(e&&(e+=" "),e+=r);return e}function st(){for(var t,r,n=0,e="";n<arguments.length;)(t=arguments[n++])&&(r=li(t))&&(e&&(e+=" "),e+=r);return e}function er(t){return typeof t=="number"&&!isNaN(t)}function on(t){return typeof t=="boolean"}function tr(t){return typeof t=="string"}function we(t){return typeof t=="function"}function nr(t){return tr(t)||we(t)?t:null}function mo(t){return t===0||t}function go(t){return g.isValidElement(t)||tr(t)||we(t)||er(t)}const n9={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},r9={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function o9(t,r,n){n===void 0&&(n=300);const{scrollHeight:e,style:o}=t;requestAnimationFrame(()=>{o.minHeight="initial",o.height=e+"px",o.transition="all "+n+"ms",requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(r,n)})})}function a9(t){let{enter:r,exit:n,appendPosition:e=!1,collapse:o=!0,collapseDuration:a=300}=t;return function(i){let{children:s,position:c,preventExitTransition:l,done:u,nodeRef:d,isIn:p}=i;const f=e?r+"--"+c:r,h=e?n+"--"+c:n,m=g.useRef(),C=g.useRef(0);function v(y){if(y.target!==d.current)return;const D=d.current;D.dispatchEvent(new Event("d")),D.removeEventListener("animationend",v),D.removeEventListener("animationcancel",v),C.current===0&&y.type!=="animationcancel"&&(D.className=m.current)}function b(){const y=d.current;y.removeEventListener("animationend",b),o?o9(y,u,a):u()}return g.useLayoutEffect(()=>{(function(){const y=d.current;m.current=y.className,y.className+=" "+f,y.addEventListener("animationend",v),y.addEventListener("animationcancel",v)})()},[]),g.useEffect(()=>{p||(l?b():function(){C.current=1;const y=d.current;y.className+=" "+h,y.addEventListener("animationend",b)}())},[p]),g.createElement(g.Fragment,null,s)}}function ui(t,r){return{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:r}}const mt={list:new Map,emitQueue:new Map,on(t,r){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(r),this},off(t,r){if(r){const n=this.list.get(t).filter(e=>e!==r);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const r=this.emitQueue.get(t);return r&&(r.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(r=>{const n=setTimeout(()=>{r(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)})}},rr=t=>{let{theme:r,type:n,...e}=t;return g.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:r==="colored"?"currentColor":"var(--toastify-icon-color-"+n+")",...e})},Co={info:function(t){return g.createElement(rr,{...t},g.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return g.createElement(rr,{...t},g.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return g.createElement(rr,{...t},g.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return g.createElement(rr,{...t},g.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return g.createElement("div",{className:"Toastify__spinner"})}};function i9(t){const[,r]=g.useReducer(f=>f+1,0),[n,e]=g.useState([]),o=g.useRef(null),a=g.useRef(new Map).current,i=f=>n.indexOf(f)!==-1,s=g.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:i,getToast:f=>a.get(f)}).current;function c(f){let{containerId:h}=f;const{limit:m}=s.props;!m||h&&s.containerId!==h||(s.count-=s.queue.length,s.queue=[])}function l(f){e(h=>mo(f)?h.filter(m=>m!==f):[])}function u(){const{toastContent:f,toastProps:h,staleId:m}=s.queue.shift();p(f,h,m)}function d(f,h){let{delay:m,staleId:C,...v}=h;if(!go(f)||function(I){return!o.current||s.props.enableMultiContainer&&I.containerId!==s.props.containerId||a.has(I.toastId)&&I.updateId==null}(v))return;const{toastId:b,updateId:y,data:D}=v,{props:_}=s,S=()=>l(b),k=y==null;k&&s.count++;const M={toastId:b,updateId:y,data:D,containerId:v.containerId,isLoading:v.isLoading,theme:v.theme||_.theme,icon:v.icon!=null?v.icon:_.icon,isIn:!1,key:v.key||s.toastKey++,type:v.type,closeToast:S,closeButton:v.closeButton,rtl:_.rtl,position:v.position||_.position,transition:v.transition||_.transition,className:nr(v.className||_.toastClassName),bodyClassName:nr(v.bodyClassName||_.bodyClassName),style:v.style||_.toastStyle,bodyStyle:v.bodyStyle||_.bodyStyle,onClick:v.onClick||_.onClick,pauseOnHover:on(v.pauseOnHover)?v.pauseOnHover:_.pauseOnHover,pauseOnFocusLoss:on(v.pauseOnFocusLoss)?v.pauseOnFocusLoss:_.pauseOnFocusLoss,draggable:on(v.draggable)?v.draggable:_.draggable,draggablePercent:v.draggablePercent||_.draggablePercent,draggableDirection:v.draggableDirection||_.draggableDirection,closeOnClick:on(v.closeOnClick)?v.closeOnClick:_.closeOnClick,progressClassName:nr(v.progressClassName||_.progressClassName),progressStyle:v.progressStyle||_.progressStyle,autoClose:!v.isLoading&&(P=v.autoClose,$=_.autoClose,P===!1||er(P)&&P>0?P:$),hideProgressBar:on(v.hideProgressBar)?v.hideProgressBar:_.hideProgressBar,progress:v.progress,role:v.role||_.role,deleteToast(){const I=ui(a.get(b),"removed");a.delete(b),mt.emit(4,I);const V=s.queue.length;if(s.count=mo(b)?s.count-1:s.count-s.displayedToast,s.count<0&&(s.count=0),V>0){const O=mo(b)?1:s.props.limit;if(V===1||O===1)s.displayedToast++,u();else{const R=O>V?V:O;s.displayedToast=R;for(let T=0;T<R;T++)u()}}else r()}};var P,$;M.iconOut=function(I){let{theme:V,type:O,isLoading:R,icon:T}=I,B=null;const G={theme:V,type:O};return T===!1||(we(T)?B=T(G):g.isValidElement(T)?B=g.cloneElement(T,G):tr(T)||er(T)?B=T:R?B=Co.spinner():(le=>le in Co)(O)&&(B=Co[O](G))),B}(M),we(v.onOpen)&&(M.onOpen=v.onOpen),we(v.onClose)&&(M.onClose=v.onClose),M.closeButton=_.closeButton,v.closeButton===!1||go(v.closeButton)?M.closeButton=v.closeButton:v.closeButton===!0&&(M.closeButton=!go(_.closeButton)||_.closeButton);let A=f;g.isValidElement(f)&&!tr(f.type)?A=g.cloneElement(f,{closeToast:S,toastProps:M,data:D}):we(f)&&(A=f({closeToast:S,toastProps:M,data:D})),_.limit&&_.limit>0&&s.count>_.limit&&k?s.queue.push({toastContent:A,toastProps:M,staleId:C}):er(m)?setTimeout(()=>{p(A,M,C)},m):p(A,M,C)}function p(f,h,m){const{toastId:C}=h;m&&a.delete(m);const v={content:f,props:h};a.set(C,v),e(b=>[...b,C].filter(y=>y!==m)),mt.emit(4,ui(v,v.props.updateId==null?"added":"updated"))}return g.useEffect(()=>(s.containerId=t.containerId,mt.cancelEmit(3).on(0,d).on(1,f=>o.current&&l(f)).on(5,c).emit(2,s),()=>mt.emit(3,s)),[]),g.useEffect(()=>{s.props=t,s.isToastActive=i,s.displayedToast=n.length}),{getToastToRender:function(f){const h=new Map,m=Array.from(a.values());return t.newestOnTop&&m.reverse(),m.forEach(C=>{const{position:v}=C.props;h.has(v)||h.set(v,[]),h.get(v).push(C)}),Array.from(h,C=>f(C[0],C[1]))},containerRef:o,isToastActive:i}}function di(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function pi(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function s9(t){const[r,n]=g.useState(!1),[e,o]=g.useState(!1),a=g.useRef(null),i=g.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=g.useRef(t),{autoClose:c,pauseOnHover:l,closeToast:u,onClick:d,closeOnClick:p}=t;function f(D){if(t.draggable){i.didMove=!1,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b);const _=a.current;i.canCloseOnClick=!0,i.canDrag=!0,i.boundingRect=_.getBoundingClientRect(),_.style.transition="",i.x=di(D.nativeEvent),i.y=pi(D.nativeEvent),t.draggableDirection==="x"?(i.start=i.x,i.removalDistance=_.offsetWidth*(t.draggablePercent/100)):(i.start=i.y,i.removalDistance=_.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent/100))}}function h(){if(i.boundingRect){const{top:D,bottom:_,left:S,right:k}=i.boundingRect;t.pauseOnHover&&i.x>=S&&i.x<=k&&i.y>=D&&i.y<=_?C():m()}}function m(){n(!0)}function C(){n(!1)}function v(D){const _=a.current;i.canDrag&&_&&(i.didMove=!0,r&&C(),i.x=di(D),i.y=pi(D),i.delta=t.draggableDirection==="x"?i.x-i.start:i.y-i.start,i.start!==i.x&&(i.canCloseOnClick=!1),_.style.transform="translate"+t.draggableDirection+"("+i.delta+"px)",_.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function b(){document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",b);const D=a.current;if(i.canDrag&&i.didMove&&D){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return o(!0),void t.closeToast();D.style.transition="transform 0.2s, opacity 0.2s",D.style.transform="translate"+t.draggableDirection+"(0)",D.style.opacity="1"}}g.useEffect(()=>{s.current=t}),g.useEffect(()=>(a.current&&a.current.addEventListener("d",m,{once:!0}),we(t.onOpen)&&t.onOpen(g.isValidElement(t.children)&&t.children.props),()=>{const D=s.current;we(D.onClose)&&D.onClose(g.isValidElement(D.children)&&D.children.props)}),[]),g.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",m),window.addEventListener("blur",C)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",m),window.removeEventListener("blur",C))}),[t.pauseOnFocusLoss]);const y={onMouseDown:f,onTouchStart:f,onMouseUp:h,onTouchEnd:h};return c&&l&&(y.onMouseEnter=C,y.onMouseLeave=m),p&&(y.onClick=D=>{d&&d(D),i.canCloseOnClick&&u()}),{playToast:m,pauseToast:C,isRunning:r,preventExitTransition:e,toastRef:a,eventHandlers:y}}function fi(t){let{closeToast:r,theme:n,ariaLabel:e="close"}=t;return g.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:o=>{o.stopPropagation(),r(o)},"aria-label":e},g.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},g.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function hi(t){let{delay:r,isRunning:n,closeToast:e,type:o,hide:a,className:i,style:s,controlledProgress:c,progress:l,rtl:u,isIn:d,theme:p}=t;const f={...s,animationDuration:r+"ms",animationPlayState:n?"running":"paused",opacity:a?0:1};c&&(f.transform="scaleX("+l+")");const h=st("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+p,"Toastify__progress-bar--"+o,{"Toastify__progress-bar--rtl":u}),m=we(i)?i({rtl:u,type:o,defaultClassName:h}):st(h,i);return g.createElement("div",{role:"progressbar","aria-hidden":a?"true":"false","aria-label":"notification timer",className:m,style:f,[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{d&&e()}})}hi.defaultProps={type:r9.DEFAULT,hide:!1};const c9=t=>{const{isRunning:r,preventExitTransition:n,toastRef:e,eventHandlers:o}=s9(t),{closeButton:a,children:i,autoClose:s,onClick:c,type:l,hideProgressBar:u,closeToast:d,transition:p,position:f,className:h,style:m,bodyClassName:C,bodyStyle:v,progressClassName:b,progressStyle:y,updateId:D,role:_,progress:S,rtl:k,toastId:M,deleteToast:P,isIn:$,isLoading:A,iconOut:I,theme:V}=t,O=st("Toastify__toast","Toastify__toast-theme--"+V,"Toastify__toast--"+l,{"Toastify__toast--rtl":k}),R=we(h)?h({rtl:k,position:f,type:l,defaultClassName:O}):st(O,h),T=!!S,B={closeToast:d,type:l,theme:V};let G=null;return a===!1||(G=we(a)?a(B):g.isValidElement(a)?g.cloneElement(a,B):fi(B)),g.createElement(p,{isIn:$,done:P,position:f,preventExitTransition:n,nodeRef:e},g.createElement("div",{id:M,onClick:c,className:R,...o,style:m,ref:e},g.createElement("div",{...$&&{role:_},className:we(C)?C({type:l}):st("Toastify__toast-body",C),style:v},I!=null&&g.createElement("div",{className:st("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},I),g.createElement("div",null,i)),G,(s||T)&&g.createElement(hi,{...D&&!T?{key:"pb-"+D}:{},rtl:k,theme:V,delay:s,isRunning:r,isIn:$,closeToast:d,hide:u,type:l,style:y,className:b,controlledProgress:T,progress:S})))},l9=a9({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),mi=g.forwardRef((t,r)=>{const{getToastToRender:n,containerRef:e,isToastActive:o}=i9(t),{className:a,style:i,rtl:s,containerId:c}=t;function l(u){const d=st("Toastify__toast-container","Toastify__toast-container--"+u,{"Toastify__toast-container--rtl":s});return we(a)?a({position:u,rtl:s,defaultClassName:d}):st(d,nr(a))}return g.useEffect(()=>{r&&(r.current=e.current)},[]),g.createElement("div",{ref:e,className:"Toastify",id:c},n((u,d)=>{const p=d.length?{...i}:{...i,pointerEvents:"none"};return g.createElement("div",{className:l(u),style:p,key:"container-"+u},d.map((f,h)=>{let{content:m,props:C}=f;return g.createElement(c9,{...C,isIn:o(C.toastId),style:{...C.style,"--nth":h+1,"--len":d.length},key:"toast-"+C.key},m)}))}))});mi.displayName="ToastContainer",mi.defaultProps={position:n9.TOP_RIGHT,transition:l9,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:fi,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let gi,vo=new Map,Ci=[];mt.on(2,t=>{gi=t.containerId||t,vo.set(gi,t),Ci.forEach(r=>{mt.emit(0,r.content,r.options)}),Ci=[]}).on(3,t=>{vo.delete(t.containerId||t),vo.size===0&&mt.off(0).off(1).off(5)});const vi=t=>{if(!t)return null;const r={...t,children:t.content??t.description};return ee.jsx(s1,{...r})},_i=t=>{if(!(t!=null&&t.content))return null;const r={...t,children:t.content,type:t.variant};return ee.jsx(pn,{...r})},yi=t=>{if(!t)return null;const r={...t,children:t.content};return ee.jsx(vr,{...r})};var u9={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const bi=t=>{let r;const n=new Set,e=(u,d)=>{const p=typeof u=="function"?u(r):u;if(!Object.is(p,r)){const f=r;r=d??(typeof p!="object"||p===null)?p:Object.assign({},r,p),n.forEach(h=>h(r,f))}},o=()=>r,c={setState:e,getState:o,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(u9?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},l=r=t(e,o,c);return c},d9=t=>t?bi(t):bi;var wi={exports:{}},_o={},yo={exports:{}},bo={};/**
|
|
550
|
+
`])));var Ov={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0};e1({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ov);var k1=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function _v(r,e){return!!(r===e||k1(r)&&k1(e))}function Dv(r,e){if(r.length!==e.length)return!1;for(var t=0;t<r.length;t++)if(!_v(r[t],e[t]))return!1;return!0}function Mv(r,e){e===void 0&&(e=Dv);var t=null;function n(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(t&&t.lastThis===this&&e(i,t.lastArgs))return t.lastResult;var o=r.apply(this,i);return t={lastResult:o,lastArgs:i,lastThis:this},o}return n.clear=function(){t=null},n}for(var cc=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Pv=new RegExp("["+cc.map(function(r){return r.letters}).join("")+"]","g"),x1={},uc=0;uc<cc.length;uc++)for(var hc=cc[uc],dc=0;dc<hc.letters.length;dc++)x1[hc.letters[dc]]=hc.base;var S1=function(r){return r.replace(Pv,function(e){return x1[e]})},Tv=Mv(S1),O1=function(r){return r.replace(/^\s+|\s+$/g,"")},Ev=function(r){return"".concat(r.label," ").concat(r.value)},Av=function(r){return function(e,t){if(e.data.__isNew__)return!0;var n=e1({ignoreCase:!0,ignoreAccents:!0,stringify:Ev,trim:!0,matchFrom:"any"},r),i=n.ignoreCase,s=n.ignoreAccents,o=n.stringify,a=n.trim,l=n.matchFrom,c=a?O1(t):t,u=a?O1(o(e)):o(e);return i&&(c=c.toLowerCase(),u=u.toLowerCase()),s&&(c=Tv(c),u=S1(u)),l==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},Rv=function(r){return r.label},Lv=function(r){return r.label},Nv=function(r){return r.value},Bv=function(r){return!!r.isDisabled};C1(),C1(),Av(),xv();var _1={};Object.defineProperty(_1,"__esModule",{value:!0});function Iv(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];if(r.length===2)return M1(r[0],r[1])||null;var t=r.slice(1).reduce(function(n,i){return M1(n,i)},r[0]);return t||null}_1.default=Iv;var D1=new WeakMap;function M1(r,e){if(r&&e){var t=D1.get(r)||new WeakMap;D1.set(r,t);var n=t.get(e)||function(i){P1(r,i),P1(e,i)};return t.set(e,n),n}return r||e}function P1(r,e){typeof r=="function"?r(e):r.current=e}const T1=({status:r,size:e="md"})=>{const t={error:"circle-cross",warning:"alert-triangle",blocked:"circle-info",unsaved:"refresh"},n={error:!0,warning:!0,unsaved:!0},i={error:"error-50",warning:"warning-50",unsaved:"info-50"};return ae.jsx(_n,{size:e,name:t[r],filled:n[r],color:i[r]})},Hv="_textField_1gqk2_1",Vv="_textField_label_1gqk2_4",Fv="_textField_content_1gqk2_12",Qv="_input_1gqk2_17",Wv="_input_field_1gqk2_27",jv="_input_clearButton_1gqk2_40",qv="_input__withIcon_1gqk2_54",zv="_textField_content__error_1gqk2_57",Yv="_textField_content__warning_1gqk2_60",$v="_textField_content__blocked_1gqk2_63",Uv="_textField_content__unsaved_1gqk2_66",Zv="_textField_helperText_1gqk2_69",Xv="_textField__darkMode_1gqk2_79",zt={textField:Hv,textField_label:Vv,textField_content:Fv,input:Qv,input_field:Wv,input_clearButton:jv,input__withIcon:qv,textField_content__error:zv,textField_content__warning:Yv,textField_content__blocked:$v,textField_content__unsaved:Uv,textField_helperText:Zv,textField__darkMode:Xv},E1=({className:r,allowClear:e=!0,label:t,status:n,statusDisplay:i="inline",statusText:s="",icon:o,...a})=>{const{theme:l}=Od(),[c,u]=v.useState(a.value||""),h=()=>{u("")},d=f=>{const p=f.currentTarget.value;u(p),a.onChange&&a.onChange(f)};return ae.jsxs("section",{className:Lt(zt.textField,r&&r,(l==null?void 0:l.mode)==="dark"&&zt.textField__darkMode),children:[t&&ae.jsx("label",{htmlFor:a.id,className:zt.textField_label,children:t}),ae.jsxs("div",{className:Lt(zt.textField_content,n&&zt[`textField_content__${n}`]),children:[ae.jsxs("span",{className:Lt(zt.input,o&&zt.input__withIcon),children:[o&&ae.jsx(_n,{name:o,color:a!=null&&a.disabled?"neutral-50":"neutral-70"}),ae.jsx("input",{className:zt.input_field,value:c,onChange:f=>{d(f)},...a}),e&&ae.jsx("button",{className:zt.input_clearButton,onClick:h,children:ae.jsx(_n,{name:"close",size:"sm"})})]}),n&&i==="icon"&&ae.jsx(T1,{status:n})]}),n&&i==="inline"&&ae.jsxs("span",{className:zt.textField_helperText,children:[ae.jsx(T1,{size:"sm",status:n}),s]})]})};E1.prototype={avocado:"TextField"};function A1(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=A1(r[e]))&&(n&&(n+=" "),n+=t);else for(e in r)r[e]&&(n&&(n+=" "),n+=e);return n}function Hn(){for(var r,e,t=0,n="";t<arguments.length;)(r=arguments[t++])&&(e=A1(r))&&(n&&(n+=" "),n+=e);return n}function Mo(r){return typeof r=="number"&&!isNaN(r)}function Qi(r){return typeof r=="boolean"}function Po(r){return typeof r=="string"}function dt(r){return typeof r=="function"}function To(r){return Po(r)||dt(r)?r:null}function fc(r){return r===0||r}function pc(r){return v.isValidElement(r)||Po(r)||dt(r)||Mo(r)}const Kv={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Gv={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function Jv(r,e,t){t===void 0&&(t=300);const{scrollHeight:n,style:i}=r;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition="all "+t+"ms",requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,t)})})}function eC(r){let{enter:e,exit:t,appendPosition:n=!1,collapse:i=!0,collapseDuration:s=300}=r;return function(o){let{children:a,position:l,preventExitTransition:c,done:u,nodeRef:h,isIn:d}=o;const f=n?e+"--"+l:e,p=n?t+"--"+l:t,m=v.useRef(),g=v.useRef(0);function y(w){if(w.target!==h.current)return;const x=h.current;x.dispatchEvent(new Event("d")),x.removeEventListener("animationend",y),x.removeEventListener("animationcancel",y),g.current===0&&w.type!=="animationcancel"&&(x.className=m.current)}function C(){const w=h.current;w.removeEventListener("animationend",C),i?Jv(w,u,s):u()}return v.useLayoutEffect(()=>{(function(){const w=h.current;m.current=w.className,w.className+=" "+f,w.addEventListener("animationend",y),w.addEventListener("animationcancel",y)})()},[]),v.useEffect(()=>{d||(c?C():function(){g.current=1;const w=h.current;w.className+=" "+p,w.addEventListener("animationend",C)}())},[d]),v.createElement(v.Fragment,null,a)}}function R1(r,e){return{content:r.content,containerId:r.props.containerId,id:r.props.toastId,theme:r.props.theme,type:r.props.type,data:r.props.data||{},isLoading:r.props.isLoading,icon:r.props.icon,status:e}}const or={list:new Map,emitQueue:new Map,on(r,e){return this.list.has(r)||this.list.set(r,[]),this.list.get(r).push(e),this},off(r,e){if(e){const t=this.list.get(r).filter(n=>n!==e);return this.list.set(r,t),this}return this.list.delete(r),this},cancelEmit(r){const e=this.emitQueue.get(r);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(r)),this},emit(r){this.list.has(r)&&this.list.get(r).forEach(e=>{const t=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(r)||this.emitQueue.set(r,[]),this.emitQueue.get(r).push(t)})}},Eo=r=>{let{theme:e,type:t,...n}=r;return v.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":"var(--toastify-icon-color-"+t+")",...n})},mc={info:function(r){return v.createElement(Eo,{...r},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(r){return v.createElement(Eo,{...r},v.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(r){return v.createElement(Eo,{...r},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(r){return v.createElement(Eo,{...r},v.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return v.createElement("div",{className:"Toastify__spinner"})}};function tC(r){const[,e]=v.useReducer(f=>f+1,0),[t,n]=v.useState([]),i=v.useRef(null),s=v.useRef(new Map).current,o=f=>t.indexOf(f)!==-1,a=v.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:r,containerId:null,isToastActive:o,getToast:f=>s.get(f)}).current;function l(f){let{containerId:p}=f;const{limit:m}=a.props;!m||p&&a.containerId!==p||(a.count-=a.queue.length,a.queue=[])}function c(f){n(p=>fc(f)?p.filter(m=>m!==f):[])}function u(){const{toastContent:f,toastProps:p,staleId:m}=a.queue.shift();d(f,p,m)}function h(f,p){let{delay:m,staleId:g,...y}=p;if(!pc(f)||function(T){return!i.current||a.props.enableMultiContainer&&T.containerId!==a.props.containerId||s.has(T.toastId)&&T.updateId==null}(y))return;const{toastId:C,updateId:w,data:x}=y,{props:b}=a,S=()=>c(C),k=w==null;k&&a.count++;const D={toastId:C,updateId:w,data:x,containerId:y.containerId,isLoading:y.isLoading,theme:y.theme||b.theme,icon:y.icon!=null?y.icon:b.icon,isIn:!1,key:y.key||a.toastKey++,type:y.type,closeToast:S,closeButton:y.closeButton,rtl:b.rtl,position:y.position||b.position,transition:y.transition||b.transition,className:To(y.className||b.toastClassName),bodyClassName:To(y.bodyClassName||b.bodyClassName),style:y.style||b.toastStyle,bodyStyle:y.bodyStyle||b.bodyStyle,onClick:y.onClick||b.onClick,pauseOnHover:Qi(y.pauseOnHover)?y.pauseOnHover:b.pauseOnHover,pauseOnFocusLoss:Qi(y.pauseOnFocusLoss)?y.pauseOnFocusLoss:b.pauseOnFocusLoss,draggable:Qi(y.draggable)?y.draggable:b.draggable,draggablePercent:y.draggablePercent||b.draggablePercent,draggableDirection:y.draggableDirection||b.draggableDirection,closeOnClick:Qi(y.closeOnClick)?y.closeOnClick:b.closeOnClick,progressClassName:To(y.progressClassName||b.progressClassName),progressStyle:y.progressStyle||b.progressStyle,autoClose:!y.isLoading&&(P=y.autoClose,j=b.autoClose,P===!1||Mo(P)&&P>0?P:j),hideProgressBar:Qi(y.hideProgressBar)?y.hideProgressBar:b.hideProgressBar,progress:y.progress,role:y.role||b.role,deleteToast(){const T=R1(s.get(C),"removed");s.delete(C),or.emit(4,T);const B=a.queue.length;if(a.count=fc(C)?a.count-1:a.count-a.displayedToast,a.count<0&&(a.count=0),B>0){const A=fc(C)?1:a.props.limit;if(B===1||A===1)a.displayedToast++,u();else{const N=A>B?B:A;a.displayedToast=N;for(let R=0;R<N;R++)u()}}else e()}};var P,j;D.iconOut=function(T){let{theme:B,type:A,isLoading:N,icon:R}=T,q=null;const $={theme:B,type:A};return R===!1||(dt(R)?q=R($):v.isValidElement(R)?q=v.cloneElement(R,$):Po(R)||Mo(R)?q=R:N?q=mc.spinner():(X=>X in mc)(A)&&(q=mc[A]($))),q}(D),dt(y.onOpen)&&(D.onOpen=y.onOpen),dt(y.onClose)&&(D.onClose=y.onClose),D.closeButton=b.closeButton,y.closeButton===!1||pc(y.closeButton)?D.closeButton=y.closeButton:y.closeButton===!0&&(D.closeButton=!pc(b.closeButton)||b.closeButton);let E=f;v.isValidElement(f)&&!Po(f.type)?E=v.cloneElement(f,{closeToast:S,toastProps:D,data:x}):dt(f)&&(E=f({closeToast:S,toastProps:D,data:x})),b.limit&&b.limit>0&&a.count>b.limit&&k?a.queue.push({toastContent:E,toastProps:D,staleId:g}):Mo(m)?setTimeout(()=>{d(E,D,g)},m):d(E,D,g)}function d(f,p,m){const{toastId:g}=p;m&&s.delete(m);const y={content:f,props:p};s.set(g,y),n(C=>[...C,g].filter(w=>w!==m)),or.emit(4,R1(y,y.props.updateId==null?"added":"updated"))}return v.useEffect(()=>(a.containerId=r.containerId,or.cancelEmit(3).on(0,h).on(1,f=>i.current&&c(f)).on(5,l).emit(2,a),()=>or.emit(3,a)),[]),v.useEffect(()=>{a.props=r,a.isToastActive=o,a.displayedToast=t.length}),{getToastToRender:function(f){const p=new Map,m=Array.from(s.values());return r.newestOnTop&&m.reverse(),m.forEach(g=>{const{position:y}=g.props;p.has(y)||p.set(y,[]),p.get(y).push(g)}),Array.from(p,g=>f(g[0],g[1]))},containerRef:i,isToastActive:o}}function L1(r){return r.targetTouches&&r.targetTouches.length>=1?r.targetTouches[0].clientX:r.clientX}function N1(r){return r.targetTouches&&r.targetTouches.length>=1?r.targetTouches[0].clientY:r.clientY}function nC(r){const[e,t]=v.useState(!1),[n,i]=v.useState(!1),s=v.useRef(null),o=v.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,a=v.useRef(r),{autoClose:l,pauseOnHover:c,closeToast:u,onClick:h,closeOnClick:d}=r;function f(x){if(r.draggable){o.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C);const b=s.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=b.getBoundingClientRect(),b.style.transition="",o.x=L1(x.nativeEvent),o.y=N1(x.nativeEvent),r.draggableDirection==="x"?(o.start=o.x,o.removalDistance=b.offsetWidth*(r.draggablePercent/100)):(o.start=o.y,o.removalDistance=b.offsetHeight*(r.draggablePercent===80?1.5*r.draggablePercent:r.draggablePercent/100))}}function p(){if(o.boundingRect){const{top:x,bottom:b,left:S,right:k}=o.boundingRect;r.pauseOnHover&&o.x>=S&&o.x<=k&&o.y>=x&&o.y<=b?g():m()}}function m(){t(!0)}function g(){t(!1)}function y(x){const b=s.current;o.canDrag&&b&&(o.didMove=!0,e&&g(),o.x=L1(x),o.y=N1(x),o.delta=r.draggableDirection==="x"?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),b.style.transform="translate"+r.draggableDirection+"("+o.delta+"px)",b.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function C(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",C);const x=s.current;if(o.canDrag&&o.didMove&&x){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return i(!0),void r.closeToast();x.style.transition="transform 0.2s, opacity 0.2s",x.style.transform="translate"+r.draggableDirection+"(0)",x.style.opacity="1"}}v.useEffect(()=>{a.current=r}),v.useEffect(()=>(s.current&&s.current.addEventListener("d",m,{once:!0}),dt(r.onOpen)&&r.onOpen(v.isValidElement(r.children)&&r.children.props),()=>{const x=a.current;dt(x.onClose)&&x.onClose(v.isValidElement(x.children)&&x.children.props)}),[]),v.useEffect(()=>(r.pauseOnFocusLoss&&(document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g)),()=>{r.pauseOnFocusLoss&&(window.removeEventListener("focus",m),window.removeEventListener("blur",g))}),[r.pauseOnFocusLoss]);const w={onMouseDown:f,onTouchStart:f,onMouseUp:p,onTouchEnd:p};return l&&c&&(w.onMouseEnter=g,w.onMouseLeave=m),d&&(w.onClick=x=>{h&&h(x),o.canCloseOnClick&&u()}),{playToast:m,pauseToast:g,isRunning:e,preventExitTransition:n,toastRef:s,eventHandlers:w}}function B1(r){let{closeToast:e,theme:t,ariaLabel:n="close"}=r;return v.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+t,type:"button",onClick:i=>{i.stopPropagation(),e(i)},"aria-label":n},v.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},v.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function I1(r){let{delay:e,isRunning:t,closeToast:n,type:i,hide:s,className:o,style:a,controlledProgress:l,progress:c,rtl:u,isIn:h,theme:d}=r;const f={...a,animationDuration:e+"ms",animationPlayState:t?"running":"paused",opacity:s?0:1};l&&(f.transform="scaleX("+c+")");const p=Hn("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+d,"Toastify__progress-bar--"+i,{"Toastify__progress-bar--rtl":u}),m=dt(o)?o({rtl:u,type:i,defaultClassName:p}):Hn(p,o);return v.createElement("div",{role:"progressbar","aria-hidden":s?"true":"false","aria-label":"notification timer",className:m,style:f,[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{h&&n()}})}I1.defaultProps={type:Gv.DEFAULT,hide:!1};const rC=r=>{const{isRunning:e,preventExitTransition:t,toastRef:n,eventHandlers:i}=nC(r),{closeButton:s,children:o,autoClose:a,onClick:l,type:c,hideProgressBar:u,closeToast:h,transition:d,position:f,className:p,style:m,bodyClassName:g,bodyStyle:y,progressClassName:C,progressStyle:w,updateId:x,role:b,progress:S,rtl:k,toastId:D,deleteToast:P,isIn:j,isLoading:E,iconOut:T,theme:B}=r,A=Hn("Toastify__toast","Toastify__toast-theme--"+B,"Toastify__toast--"+c,{"Toastify__toast--rtl":k}),N=dt(p)?p({rtl:k,position:f,type:c,defaultClassName:A}):Hn(A,p),R=!!S,q={closeToast:h,type:c,theme:B};let $=null;return s===!1||($=dt(s)?s(q):v.isValidElement(s)?v.cloneElement(s,q):B1(q)),v.createElement(d,{isIn:j,done:P,position:f,preventExitTransition:t,nodeRef:n},v.createElement("div",{id:D,onClick:l,className:N,...i,style:m,ref:n},v.createElement("div",{...j&&{role:b},className:dt(g)?g({type:c}):Hn("Toastify__toast-body",g),style:y},T!=null&&v.createElement("div",{className:Hn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!E})},T),v.createElement("div",null,o)),$,(a||R)&&v.createElement(I1,{...x&&!R?{key:"pb-"+x}:{},rtl:k,theme:B,delay:a,isRunning:e,isIn:j,closeToast:h,hide:u,type:c,style:w,className:C,controlledProgress:R,progress:S})))},iC=eC({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),H1=v.forwardRef((r,e)=>{const{getToastToRender:t,containerRef:n,isToastActive:i}=tC(r),{className:s,style:o,rtl:a,containerId:l}=r;function c(u){const h=Hn("Toastify__toast-container","Toastify__toast-container--"+u,{"Toastify__toast-container--rtl":a});return dt(s)?s({position:u,rtl:a,defaultClassName:h}):Hn(h,To(s))}return v.useEffect(()=>{e&&(e.current=n.current)},[]),v.createElement("div",{ref:n,className:"Toastify",id:l},t((u,h)=>{const d=h.length?{...o}:{...o,pointerEvents:"none"};return v.createElement("div",{className:c(u),style:d,key:"container-"+u},h.map((f,p)=>{let{content:m,props:g}=f;return v.createElement(rC,{...g,isIn:i(g.toastId),style:{...g.style,"--nth":p+1,"--len":h.length},key:"toast-"+g.key},m)}))}))});H1.displayName="ToastContainer",H1.defaultProps={position:Kv.TOP_RIGHT,transition:iC,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:B1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let V1,gc=new Map,F1=[];or.on(2,r=>{V1=r.containerId||r,gc.set(V1,r),F1.forEach(e=>{or.emit(0,e.content,e.options)}),F1=[]}).on(3,r=>{gc.delete(r.containerId||r),gc.size===0&&or.off(0).off(1).off(5)});const Q1=r=>{if(!r)return null;const e={...r,children:r.content??r.description};return de.jsx(Pd,{...e})},W1=r=>{if(!(r!=null&&r.content))return null;const e={...r,children:r.content,type:r.variant};return de.jsx(Vs,{...e})},j1=r=>{if(!r)return null;const e={...r,children:r.content};return de.jsx(yl,{...e})};var sC={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const q1=r=>{let e;const t=new Set,n=(u,h)=>{const d=typeof u=="function"?u(e):u;if(!Object.is(d,e)){const f=e;e=h??(typeof d!="object"||d===null)?d:Object.assign({},e,d),t.forEach(p=>p(e,f))}},i=()=>e,l={setState:n,getState:i,getInitialState:()=>c,subscribe:u=>(t.add(u),()=>t.delete(u)),destroy:()=>{(sC?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},c=e=r(n,i,l);return l},oC=r=>r?q1(r):q1;var z1={exports:{}},yc={},bc={exports:{}},vc={};/**
|
|
551
551
|
* @license React
|
|
552
552
|
* use-sync-external-store-shim.production.min.js
|
|
553
553
|
*
|
|
@@ -555,7 +555,7 @@ clipRule="evenodd"
|
|
|
555
555
|
*
|
|
556
556
|
* This source code is licensed under the MIT license found in the
|
|
557
557
|
* LICENSE file in the root directory of this source tree.
|
|
558
|
-
*/var
|
|
558
|
+
*/var Y1;function aC(){if(Y1)return vc;Y1=1;var r=v;function e(h,d){return h===d&&(h!==0||1/h===1/d)||h!==h&&d!==d}var t=typeof Object.is=="function"?Object.is:e,n=r.useState,i=r.useEffect,s=r.useLayoutEffect,o=r.useDebugValue;function a(h,d){var f=d(),p=n({inst:{value:f,getSnapshot:d}}),m=p[0].inst,g=p[1];return s(function(){m.value=f,m.getSnapshot=d,l(m)&&g({inst:m})},[h,f,d]),i(function(){return l(m)&&g({inst:m}),h(function(){l(m)&&g({inst:m})})},[h]),o(f),f}function l(h){var d=h.getSnapshot;h=h.value;try{var f=d();return!t(h,f)}catch{return!0}}function c(h,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return vc.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:u,vc}var $1;function lC(){return $1||($1=1,bc.exports=aC()),bc.exports}/**
|
|
559
559
|
* @license React
|
|
560
560
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
561
561
|
*
|
|
@@ -563,13 +563,25 @@ clipRule="evenodd"
|
|
|
563
563
|
*
|
|
564
564
|
* This source code is licensed under the MIT license found in the
|
|
565
565
|
* LICENSE file in the root directory of this source tree.
|
|
566
|
-
*/var Si;function h9(){if(Si)return _o;Si=1;var t=g,r=f9();function n(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var e=typeof Object.is=="function"?Object.is:n,o=r.useSyncExternalStore,a=t.useRef,i=t.useEffect,s=t.useMemo,c=t.useDebugValue;return _o.useSyncExternalStoreWithSelector=function(l,u,d,p,f){var h=a(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=s(function(){function v(S){if(!b){if(b=!0,y=S,S=p(S),f!==void 0&&m.hasValue){var k=m.value;if(f(k,S))return D=k}return D=S}if(k=D,e(y,S))return k;var M=p(S);return f!==void 0&&f(k,M)?k:(y=S,D=M)}var b=!1,y,D,_=d===void 0?null:d;return[function(){return v(u())},_===null?void 0:function(){return v(_())}]},[u,d,p,f]);var C=o(l,h[0],h[1]);return i(function(){m.hasValue=!0,m.value=C},[C]),c(C),C},_o}wi.exports=h9();var m9=wi.exports;const g9=Io(m9);var Mi={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:C9}=g,{useSyncExternalStoreWithSelector:v9}=g9;let Ei=!1;const _9=t=>t;function y9(t,r=_9,n){(Mi?"production":void 0)!=="production"&&n&&!Ei&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ei=!0);const e=v9(t.subscribe,t.getState,t.getServerState||t.getInitialState,r,n);return C9(e),e}const xi=t=>{(Mi?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const r=typeof t=="function"?d9(t):t,n=(e,o)=>y9(r,e,o);return Object.assign(n,r),n},Nt=(t=>t?xi(t):xi)(()=>({})),wo=(t,r,n,e)=>{Nt.setState(o=>{var a;return{...o,[t]:{...o[t],apiConfig:n,currentPageId:r,entries:{},pages:{...(a=o[t])==null?void 0:a.pages,[r]:{page:e}}}}})},b9=(t,r)=>{Nt.setState(n=>{var e;return{...n,[t]:{...n[t],currentPageId:r==null?void 0:r.hash,pages:{...(e=n[t])==null?void 0:e.pages,[r==null?void 0:r.hash]:{page:{...r}}}}}})},Li=(t,r)=>{Nt.setState(n=>{var e;return{...n,[t]:{...n[t],entries:{...(e=n[t])==null?void 0:e.entries,...r}}}})};function Ti(t,r){return function(){return t.apply(r,arguments)}}const{toString:w9}=Object.prototype,{getPrototypeOf:ko}=Object,or=(t=>r=>{const n=w9.call(r);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xe=t=>(t=t.toLowerCase(),r=>or(r)===t),ar=t=>r=>typeof r===t,{isArray:Rt}=Array,an=ar("undefined");function k9(t){return t!==null&&!an(t)&&t.constructor!==null&&!an(t.constructor)&&ke(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Pi=xe("ArrayBuffer");function D9(t){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(t):r=t&&t.buffer&&Pi(t.buffer),r}const S9=ar("string"),ke=ar("function"),Oi=ar("number"),ir=t=>t!==null&&typeof t=="object",M9=t=>t===!0||t===!1,sr=t=>{if(or(t)!=="object")return!1;const r=ko(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},E9=xe("Date"),x9=xe("File"),L9=xe("Blob"),T9=xe("FileList"),P9=t=>ir(t)&&ke(t.pipe),O9=t=>{let r;return t&&(typeof FormData=="function"&&t instanceof FormData||ke(t.append)&&((r=or(t))==="formdata"||r==="object"&&ke(t.toString)&&t.toString()==="[object FormData]"))},N9=xe("URLSearchParams"),[R9,H9,A9,I9]=["ReadableStream","Request","Response","Headers"].map(xe),V9=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sn(t,r,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let e,o;if(typeof t!="object"&&(t=[t]),Rt(t))for(e=0,o=t.length;e<o;e++)r.call(null,t[e],e,t);else{const a=n?Object.getOwnPropertyNames(t):Object.keys(t),i=a.length;let s;for(e=0;e<i;e++)s=a[e],r.call(null,t[s],s,t)}}function Ni(t,r){r=r.toLowerCase();const n=Object.keys(t);let e=n.length,o;for(;e-- >0;)if(o=n[e],r===o.toLowerCase())return o;return null}const gt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ri=t=>!an(t)&&t!==gt;function Do(){const{caseless:t}=Ri(this)&&this||{},r={},n=(e,o)=>{const a=t&&Ni(r,o)||o;sr(r[a])&&sr(e)?r[a]=Do(r[a],e):sr(e)?r[a]=Do({},e):Rt(e)?r[a]=e.slice():r[a]=e};for(let e=0,o=arguments.length;e<o;e++)arguments[e]&&sn(arguments[e],n);return r}const F9=(t,r,n,{allOwnKeys:e}={})=>(sn(r,(o,a)=>{n&&ke(o)?t[a]=Ti(o,n):t[a]=o},{allOwnKeys:e}),t),B9=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Y9=(t,r,n,e)=>{t.prototype=Object.create(r.prototype,e),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:r.prototype}),n&&Object.assign(t.prototype,n)},Z9=(t,r,n,e)=>{let o,a,i;const s={};if(r=r||{},t==null)return r;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)i=o[a],(!e||e(i,t,r))&&!s[i]&&(r[i]=t[i],s[i]=!0);t=n!==!1&&ko(t)}while(t&&(!n||n(t,r))&&t!==Object.prototype);return r},j9=(t,r,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=r.length;const e=t.indexOf(r,n);return e!==-1&&e===n},W9=t=>{if(!t)return null;if(Rt(t))return t;let r=t.length;if(!Oi(r))return null;const n=new Array(r);for(;r-- >0;)n[r]=t[r];return n},q9=(t=>r=>t&&r instanceof t)(typeof Uint8Array<"u"&&ko(Uint8Array)),U9=(t,r)=>{const e=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=e.next())&&!o.done;){const a=o.value;r.call(t,a[0],a[1])}},z9=(t,r)=>{let n;const e=[];for(;(n=t.exec(r))!==null;)e.push(n);return e},$9=xe("HTMLFormElement"),Q9=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,e,o){return e.toUpperCase()+o}),Hi=(({hasOwnProperty:t})=>(r,n)=>t.call(r,n))(Object.prototype),K9=xe("RegExp"),Ai=(t,r)=>{const n=Object.getOwnPropertyDescriptors(t),e={};sn(n,(o,a)=>{let i;(i=r(o,a,t))!==!1&&(e[a]=i||o)}),Object.defineProperties(t,e)},X9=t=>{Ai(t,(r,n)=>{if(ke(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const e=t[n];if(ke(e)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},G9=(t,r)=>{const n={},e=o=>{o.forEach(a=>{n[a]=!0})};return Rt(t)?e(t):e(String(t).split(r)),n},J9=()=>{},e5=(t,r)=>t!=null&&Number.isFinite(t=+t)?t:r;function t5(t){return!!(t&&ke(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const n5=t=>{const r=new Array(10),n=(e,o)=>{if(ir(e)){if(r.indexOf(e)>=0)return;if(!("toJSON"in e)){r[o]=e;const a=Rt(e)?[]:{};return sn(e,(i,s)=>{const c=n(i,o+1);!an(c)&&(a[s]=c)}),r[o]=void 0,a}}return e};return n(t,0)},r5=xe("AsyncFunction"),o5=t=>t&&(ir(t)||ke(t))&&ke(t.then)&&ke(t.catch),Ii=((t,r)=>t?setImmediate:r?((n,e)=>(gt.addEventListener("message",({source:o,data:a})=>{o===gt&&a===n&&e.length&&e.shift()()},!1),o=>{e.push(o),gt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ke(gt.postMessage)),a5=typeof queueMicrotask<"u"?queueMicrotask.bind(gt):typeof process<"u"&&process.nextTick||Ii,w={isArray:Rt,isArrayBuffer:Pi,isBuffer:k9,isFormData:O9,isArrayBufferView:D9,isString:S9,isNumber:Oi,isBoolean:M9,isObject:ir,isPlainObject:sr,isReadableStream:R9,isRequest:H9,isResponse:A9,isHeaders:I9,isUndefined:an,isDate:E9,isFile:x9,isBlob:L9,isRegExp:K9,isFunction:ke,isStream:P9,isURLSearchParams:N9,isTypedArray:q9,isFileList:T9,forEach:sn,merge:Do,extend:F9,trim:V9,stripBOM:B9,inherits:Y9,toFlatObject:Z9,kindOf:or,kindOfTest:xe,endsWith:j9,toArray:W9,forEachEntry:U9,matchAll:z9,isHTMLForm:$9,hasOwnProperty:Hi,hasOwnProp:Hi,reduceDescriptors:Ai,freezeMethods:X9,toObjectSet:G9,toCamelCase:Q9,noop:J9,toFiniteNumber:e5,findKey:Ni,global:gt,isContextDefined:Ri,isSpecCompliantForm:t5,toJSONObject:n5,isAsyncFn:r5,isThenable:o5,setImmediate:Ii,asap:a5};function H(t,r,n,e,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),e&&(this.request=e),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(H,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:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Vi=H.prototype,Fi={};["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(t=>{Fi[t]={value:t}}),Object.defineProperties(H,Fi),Object.defineProperty(Vi,"isAxiosError",{value:!0}),H.from=(t,r,n,e,o,a)=>{const i=Object.create(Vi);return w.toFlatObject(t,i,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),H.call(i,t.message,r,n,e,o),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};const i5=null;function So(t){return w.isPlainObject(t)||w.isArray(t)}function Bi(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Yi(t,r,n){return t?t.concat(r).map(function(o,a){return o=Bi(o),!n&&a?"["+o+"]":o}).join(n?".":""):r}function s5(t){return w.isArray(t)&&!t.some(So)}const c5=w.toFlatObject(w,{},null,function(r){return/^is[A-Z]/.test(r)});function cr(t,r,n){if(!w.isObject(t))throw new TypeError("target must be an object");r=r||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,C){return!w.isUndefined(C[m])});const e=n.metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(r);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(w.isDate(h))return h.toISOString();if(!c&&w.isBlob(h))throw new H("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(h)||w.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,m,C){let v=h;if(h&&!C&&typeof h=="object"){if(w.endsWith(m,"{}"))m=e?m:m.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&s5(h)||(w.isFileList(h)||w.endsWith(m,"[]"))&&(v=w.toArray(h)))return m=Bi(m),v.forEach(function(y,D){!(w.isUndefined(y)||y===null)&&r.append(i===!0?Yi([m],D,a):i===null?m:m+"[]",l(y))}),!1}return So(h)?!0:(r.append(Yi(C,m,a),l(h)),!1)}const d=[],p=Object.assign(c5,{defaultVisitor:u,convertValue:l,isVisitable:So});function f(h,m){if(!w.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(h),w.forEach(h,function(v,b){(!(w.isUndefined(v)||v===null)&&o.call(r,v,w.isString(b)?b.trim():b,m,p))===!0&&f(v,m?m.concat(b):[b])}),d.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return f(t),r}function Zi(t){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(e){return r[e]})}function Mo(t,r){this._pairs=[],t&&cr(t,this,r)}const ji=Mo.prototype;ji.append=function(r,n){this._pairs.push([r,n])},ji.toString=function(r){const n=r?function(e){return r.call(this,e,Zi)}:Zi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function l5(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wi(t,r,n){if(!r)return t;const e=n&&n.encode||l5;w.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(r,n):a=w.isURLSearchParams(r)?r.toString():new Mo(r,n).toString(e),a){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class qi{constructor(){this.handlers=[]}use(r,n,e){return this.handlers.push({fulfilled:r,rejected:n,synchronous:e?e.synchronous:!1,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){w.forEach(this.handlers,function(e){e!==null&&r(e)})}}const Ui={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u5={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Mo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Eo=typeof window<"u"&&typeof document<"u",xo=typeof navigator=="object"&&navigator||void 0,d5=Eo&&(!xo||["ReactNative","NativeScript","NS"].indexOf(xo.product)<0),p5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",f5=Eo&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Eo,hasStandardBrowserEnv:d5,hasStandardBrowserWebWorkerEnv:p5,navigator:xo,origin:f5},Symbol.toStringTag,{value:"Module"})),...u5};function h5(t,r){return cr(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,e,o,a){return pe.isNode&&w.isBuffer(n)?(this.append(e,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},r))}function m5(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(r=>r[0]==="[]"?"":r[1]||r[0])}function g5(t){const r={},n=Object.keys(t);let e;const o=n.length;let a;for(e=0;e<o;e++)a=n[e],r[a]=t[a];return r}function zi(t){function r(n,e,o,a){let i=n[a++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),c=a>=n.length;return i=!i&&w.isArray(o)?o.length:i,c?(w.hasOwnProp(o,i)?o[i]=[o[i],e]:o[i]=e,!s):((!o[i]||!w.isObject(o[i]))&&(o[i]=[]),r(n,e,o[i],a)&&w.isArray(o[i])&&(o[i]=g5(o[i])),!s)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(e,o)=>{r(m5(e),o,n,0)}),n}return null}function C5(t,r,n){if(w.isString(t))try{return(r||JSON.parse)(t),w.trim(t)}catch(e){if(e.name!=="SyntaxError")throw e}return(0,JSON.stringify)(t)}const cn={transitional:Ui,adapter:["xhr","http","fetch"],transformRequest:[function(r,n){const e=n.getContentType()||"",o=e.indexOf("application/json")>-1,a=w.isObject(r);if(a&&w.isHTMLForm(r)&&(r=new FormData(r)),w.isFormData(r))return o?JSON.stringify(zi(r)):r;if(w.isArrayBuffer(r)||w.isBuffer(r)||w.isStream(r)||w.isFile(r)||w.isBlob(r)||w.isReadableStream(r))return r;if(w.isArrayBufferView(r))return r.buffer;if(w.isURLSearchParams(r))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(a){if(e.indexOf("application/x-www-form-urlencoded")>-1)return h5(r,this.formSerializer).toString();if((s=w.isFileList(r))||e.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return cr(s?{"files[]":r}:r,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),C5(r)):r}],transformResponse:[function(r){const n=this.transitional||cn.transitional,e=n&&n.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(r)||w.isReadableStream(r))return r;if(r&&w.isString(r)&&(e&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(r)}catch(s){if(i)throw s.name==="SyntaxError"?H.from(s,H.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{cn.headers[t]={}});const v5=w.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"]),_5=t=>{const r={};let n,e,o;return t&&t.split(`
|
|
567
|
-
`).forEach(function(
|
|
568
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){const e=new this(r);return n.forEach(o=>e.set(o)),e}static accessor(r){const e=(this[$i]=this[$i]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=ln(i);e[s]||(k5(o,i),e[s]=!0)}return w.isArray(r)?r.forEach(a):a(r),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(Ce.prototype,({value:t},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>t,set(e){this[n]=e}}}),w.freezeMethods(Ce);function To(t,r){const n=this||cn,e=r||n,o=Ce.from(e.headers);let a=e.data;return w.forEach(t,function(s){a=s.call(n,a,o.normalize(),r?r.status:void 0)}),o.normalize(),a}function Qi(t){return!!(t&&t.__CANCEL__)}function Ht(t,r,n){H.call(this,t??"canceled",H.ERR_CANCELED,r,n),this.name="CanceledError"}w.inherits(Ht,H,{__CANCEL__:!0});function Ki(t,r,n){const e=n.config.validateStatus;!n.status||!e||e(n.status)?t(n):r(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function D5(t){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}function S5(t,r){t=t||10;const n=new Array(t),e=new Array(t);let o=0,a=0,i;return r=r!==void 0?r:1e3,function(c){const l=Date.now(),u=e[a];i||(i=l),n[o]=c,e[o]=l;let d=a,p=0;for(;d!==o;)p+=n[d++],d=d%t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),l-i<r)return;const f=u&&l-u;return f?Math.round(p*1e3/f):void 0}}function M5(t,r){let n=0,e=1e3/r,o,a;const i=(l,u=Date.now())=>{n=u,o=null,a&&(clearTimeout(a),a=null),t.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=e?i(l,u):(o=l,a||(a=setTimeout(()=>{a=null,i(o)},e-d)))},()=>o&&i(o)]}const ur=(t,r,n=3)=>{let e=0;const o=S5(50,250);return M5(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,c=i-e,l=o(c),u=i<=s;e=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:a,lengthComputable:s!=null,[r?"download":"upload"]:!0};t(d)},n)},Xi=(t,r)=>{const n=t!=null;return[e=>r[0]({lengthComputable:n,total:t,loaded:e}),r[1]]},Gi=t=>(...r)=>w.asap(()=>t(...r)),E5=pe.hasStandardBrowserEnv?((t,r)=>n=>(n=new URL(n,pe.origin),t.protocol===n.protocol&&t.host===n.host&&(r||t.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,x5=pe.hasStandardBrowserEnv?{write(t,r,n,e,o,a){const i=[t+"="+encodeURIComponent(r)];w.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),w.isString(e)&&i.push("path="+e),w.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function L5(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function T5(t,r){return r?t.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):t}function Ji(t,r,n){let e=!L5(r);return t&&(e||n==!1)?T5(t,r):r}const es=t=>t instanceof Ce?{...t}:t;function Ct(t,r){r=r||{};const n={};function e(l,u,d,p){return w.isPlainObject(l)&&w.isPlainObject(u)?w.merge.call({caseless:p},l,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(l,u,d,p){if(w.isUndefined(u)){if(!w.isUndefined(l))return e(void 0,l,d,p)}else return e(l,u,d,p)}function a(l,u){if(!w.isUndefined(u))return e(void 0,u)}function i(l,u){if(w.isUndefined(u)){if(!w.isUndefined(l))return e(void 0,l)}else return e(void 0,u)}function s(l,u,d){if(d in r)return e(l,u);if(d in t)return e(void 0,l)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(l,u,d)=>o(es(l),es(u),d,!0)};return w.forEach(Object.keys(Object.assign({},t,r)),function(u){const d=c[u]||o,p=d(t[u],r[u],u);w.isUndefined(p)&&d!==s||(n[u]=p)}),n}const ts=t=>{const r=Ct({},t);let{data:n,withXSRFToken:e,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=r;r.headers=i=Ce.from(i),r.url=Wi(Ji(r.baseURL,r.url,r.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(w.isFormData(n)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(pe.hasStandardBrowserEnv&&(e&&w.isFunction(e)&&(e=e(r)),e||e!==!1&&E5(r.url))){const l=o&&a&&x5.read(a);l&&i.set(o,l)}return r},P5=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,e){const o=ts(t);let a=o.data;const i=Ce.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,d,p,f,h;function m(){f&&f(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function v(){if(!C)return;const y=Ce.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:y,config:t,request:C};Ki(function(k){n(k),m()},function(k){e(k),m()},_),C=null}"onloadend"in C?C.onloadend=v:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(v)},C.onabort=function(){C&&(e(new H("Request aborted",H.ECONNABORTED,t,C)),C=null)},C.onerror=function(){e(new H("Network Error",H.ERR_NETWORK,t,C)),C=null},C.ontimeout=function(){let D=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Ui;o.timeoutErrorMessage&&(D=o.timeoutErrorMessage),e(new H(D,_.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,C)),C=null},a===void 0&&i.setContentType(null),"setRequestHeader"in C&&w.forEach(i.toJSON(),function(D,_){C.setRequestHeader(_,D)}),w.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),s&&s!=="json"&&(C.responseType=o.responseType),l&&([p,h]=ur(l,!0),C.addEventListener("progress",p)),c&&C.upload&&([d,f]=ur(c),C.upload.addEventListener("progress",d),C.upload.addEventListener("loadend",f)),(o.cancelToken||o.signal)&&(u=y=>{C&&(e(!y||y.type?new Ht(null,t,C):y),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const b=D5(o.url);if(b&&pe.protocols.indexOf(b)===-1){e(new H("Unsupported protocol "+b+":",H.ERR_BAD_REQUEST,t));return}C.send(a||null)})},O5=(t,r)=>{const{length:n}=t=t?t.filter(Boolean):[];if(r||n){let e=new AbortController,o;const a=function(l){if(!o){o=!0,s();const u=l instanceof Error?l:this.reason;e.abort(u instanceof H?u:new Ht(u instanceof Error?u.message:u))}};let i=r&&setTimeout(()=>{i=null,a(new H(`timeout ${r} of ms exceeded`,H.ETIMEDOUT))},r);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),t=null)};t.forEach(l=>l.addEventListener("abort",a));const{signal:c}=e;return c.unsubscribe=()=>w.asap(s),c}},N5=function*(t,r){let n=t.byteLength;if(n<r){yield t;return}let e=0,o;for(;e<n;)o=e+r,yield t.slice(e,o),e=o},R5=async function*(t,r){for await(const n of H5(t))yield*N5(n,r)},H5=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const r=t.getReader();try{for(;;){const{done:n,value:e}=await r.read();if(n)break;yield e}}finally{await r.cancel()}},ns=(t,r,n,e)=>{const o=R5(t,r);let a=0,i,s=c=>{i||(i=!0,e&&e(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){s(),c.close();return}let d=u.byteLength;if(n){let p=a+=d;n(p)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},dr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",rs=dr&&typeof ReadableStream=="function",A5=dr&&(typeof TextEncoder=="function"?(t=>r=>t.encode(r))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),os=(t,...r)=>{try{return!!t(...r)}catch{return!1}},I5=rs&&os(()=>{let t=!1;const r=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!r}),as=64*1024,Po=rs&&os(()=>w.isReadableStream(new Response("").body)),pr={stream:Po&&(t=>t.body)};dr&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!pr[r]&&(pr[r]=w.isFunction(t[r])?n=>n[r]():(n,e)=>{throw new H(`Response type '${r}' is not supported`,H.ERR_NOT_SUPPORT,e)})})})(new Response);const V5=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(pe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await A5(t)).byteLength},F5=async(t,r)=>{const n=w.toFiniteNumber(t.getContentLength());return n??V5(r)},Oo={http:i5,xhr:P5,fetch:dr&&(async t=>{let{url:r,method:n,data:e,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:p}=ts(t);l=l?(l+"").toLowerCase():"text";let f=O5([o,a&&a.toAbortSignal()],i),h;const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let C;try{if(c&&I5&&n!=="get"&&n!=="head"&&(C=await F5(u,e))!==0){let _=new Request(r,{method:"POST",body:e,duplex:"half"}),S;if(w.isFormData(e)&&(S=_.headers.get("content-type"))&&u.setContentType(S),_.body){const[k,M]=Xi(C,ur(Gi(c)));e=ns(_.body,as,k,M)}}w.isString(d)||(d=d?"include":"omit");const v="credentials"in Request.prototype;h=new Request(r,{...p,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:e,duplex:"half",credentials:v?d:void 0});let b=await fetch(h);const y=Po&&(l==="stream"||l==="response");if(Po&&(s||y&&m)){const _={};["status","statusText","headers"].forEach(P=>{_[P]=b[P]});const S=w.toFiniteNumber(b.headers.get("content-length")),[k,M]=s&&Xi(S,ur(Gi(s),!0))||[];b=new Response(ns(b.body,as,k,()=>{M&&M(),m&&m()}),_)}l=l||"text";let D=await pr[w.findKey(pr,l)||"text"](b,t);return!y&&m&&m(),await new Promise((_,S)=>{Ki(_,S,{data:D,headers:Ce.from(b.headers),status:b.status,statusText:b.statusText,config:t,request:h})})}catch(v){throw m&&m(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new H("Network Error",H.ERR_NETWORK,t,h),{cause:v.cause||v}):H.from(v,v&&v.code,t,h)}})};w.forEach(Oo,(t,r)=>{if(t){try{Object.defineProperty(t,"name",{value:r})}catch{}Object.defineProperty(t,"adapterName",{value:r})}});const is=t=>`- ${t}`,B5=t=>w.isFunction(t)||t===null||t===!1,ss={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:r}=t;let n,e;const o={};for(let a=0;a<r;a++){n=t[a];let i;if(e=n,!B5(n)&&(e=Oo[(i=String(n)).toLowerCase()],e===void 0))throw new H(`Unknown adapter '${i}'`);if(e)break;o[i||"#"+a]=e}if(!e){const a=Object.entries(o).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=r?a.length>1?`since :
|
|
569
|
-
`+
|
|
570
|
-
`):" "+
|
|
571
|
-
`+
|
|
566
|
+
*/var U1;function cC(){if(U1)return yc;U1=1;var r=v,e=lC();function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,s=r.useRef,o=r.useEffect,a=r.useMemo,l=r.useDebugValue;return yc.useSyncExternalStoreWithSelector=function(c,u,h,d,f){var p=s(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=a(function(){function y(S){if(!C){if(C=!0,w=S,S=d(S),f!==void 0&&m.hasValue){var k=m.value;if(f(k,S))return x=k}return x=S}if(k=x,n(w,S))return k;var D=d(S);return f!==void 0&&f(k,D)?k:(w=S,x=D)}var C=!1,w,x,b=h===void 0?null:h;return[function(){return y(u())},b===null?void 0:function(){return y(b())}]},[u,h,d,f]);var g=i(c,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=g},[g]),l(g),g},yc}z1.exports=cC();var uC=z1.exports;const hC=sd(uC);var Z1={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:dC}=v,{useSyncExternalStoreWithSelector:fC}=hC;let X1=!1;const pC=r=>r;function mC(r,e=pC,t){(Z1?"production":void 0)!=="production"&&t&&!X1&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),X1=!0);const n=fC(r.subscribe,r.getState,r.getServerState||r.getInitialState,e,t);return dC(n),n}const K1=r=>{(Z1?"production":void 0)!=="production"&&typeof r!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof r=="function"?oC(r):r,t=(n,i)=>mC(e,n,i);return Object.assign(t,e),t},qr=(r=>r?K1(r):K1)(()=>({})),Cc=(r,e,t,n)=>{qr.setState(i=>{var s;return{...i,[r]:{...i[r],apiConfig:t,currentPageId:e,entries:{},pages:{...(s=i[r])==null?void 0:s.pages,[e]:{page:n}}}}})},gC=(r,e)=>{qr.setState(t=>{var n;return{...t,[r]:{...t[r],currentPageId:e==null?void 0:e.hash,pages:{...(n=t[r])==null?void 0:n.pages,[e==null?void 0:e.hash]:{page:{...e}}}}}})},wc=(r,e)=>{qr.setState(t=>{var n;return{...t,[r]:{...t[r],entries:{...(n=t[r])==null?void 0:n.entries,...e}}}})};function G1(r,e){return function(){return r.apply(e,arguments)}}const{toString:yC}=Object.prototype,{getPrototypeOf:kc}=Object,Ao=(r=>e=>{const t=yC.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Pt=r=>(r=r.toLowerCase(),e=>Ao(e)===r),Ro=r=>e=>typeof e===r,{isArray:zr}=Array,Wi=Ro("undefined");function bC(r){return r!==null&&!Wi(r)&&r.constructor!==null&&!Wi(r.constructor)&&ft(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const J1=Pt("ArrayBuffer");function vC(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&J1(r.buffer),e}const CC=Ro("string"),ft=Ro("function"),ep=Ro("number"),Lo=r=>r!==null&&typeof r=="object",wC=r=>r===!0||r===!1,No=r=>{if(Ao(r)!=="object")return!1;const e=kc(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},kC=Pt("Date"),xC=Pt("File"),SC=Pt("Blob"),OC=Pt("FileList"),_C=r=>Lo(r)&&ft(r.pipe),DC=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||ft(r.append)&&((e=Ao(r))==="formdata"||e==="object"&&ft(r.toString)&&r.toString()==="[object FormData]"))},MC=Pt("URLSearchParams"),[PC,TC,EC,AC]=["ReadableStream","Request","Response","Headers"].map(Pt),RC=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ji(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),zr(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{const s=t?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length;let a;for(n=0;n<o;n++)a=s[n],e.call(null,r[a],a,r)}}function tp(r,e){e=e.toLowerCase();const t=Object.keys(r);let n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}const ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,np=r=>!Wi(r)&&r!==ar;function xc(){const{caseless:r}=np(this)&&this||{},e={},t=(n,i)=>{const s=r&&tp(e,i)||i;No(e[s])&&No(n)?e[s]=xc(e[s],n):No(n)?e[s]=xc({},n):zr(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ji(arguments[n],t);return e}const LC=(r,e,t,{allOwnKeys:n}={})=>(ji(e,(i,s)=>{t&&ft(i)?r[s]=G1(i,t):r[s]=i},{allOwnKeys:n}),r),NC=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),BC=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},IC=(r,e,t,n)=>{let i,s,o;const a={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!a[o]&&(e[o]=r[o],a[o]=!0);r=t!==!1&&kc(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},HC=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},VC=r=>{if(!r)return null;if(zr(r))return r;let e=r.length;if(!ep(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},FC=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&kc(Uint8Array)),QC=(r,e)=>{const n=(r&&r[Symbol.iterator]).call(r);let i;for(;(i=n.next())&&!i.done;){const s=i.value;e.call(r,s[0],s[1])}},WC=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},jC=Pt("HTMLFormElement"),qC=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),rp=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),zC=Pt("RegExp"),ip=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};ji(t,(i,s)=>{let o;(o=e(i,s,r))!==!1&&(n[s]=o||i)}),Object.defineProperties(r,n)},YC=r=>{ip(r,(e,t)=>{if(ft(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(ft(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},$C=(r,e)=>{const t={},n=i=>{i.forEach(s=>{t[s]=!0})};return zr(r)?n(r):n(String(r).split(e)),t},UC=()=>{},ZC=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function XC(r){return!!(r&&ft(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const KC=r=>{const e=new Array(10),t=(n,i)=>{if(Lo(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const s=zr(n)?[]:{};return ji(n,(o,a)=>{const l=t(o,i+1);!Wi(l)&&(s[a]=l)}),e[i]=void 0,s}}return n};return t(r,0)},GC=Pt("AsyncFunction"),JC=r=>r&&(Lo(r)||ft(r))&&ft(r.then)&&ft(r.catch),sp=((r,e)=>r?setImmediate:e?((t,n)=>(ar.addEventListener("message",({source:i,data:s})=>{i===ar&&s===t&&n.length&&n.shift()()},!1),i=>{n.push(i),ar.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",ft(ar.postMessage)),ew=typeof queueMicrotask<"u"?queueMicrotask.bind(ar):typeof process<"u"&&process.nextTick||sp,_={isArray:zr,isArrayBuffer:J1,isBuffer:bC,isFormData:DC,isArrayBufferView:vC,isString:CC,isNumber:ep,isBoolean:wC,isObject:Lo,isPlainObject:No,isReadableStream:PC,isRequest:TC,isResponse:EC,isHeaders:AC,isUndefined:Wi,isDate:kC,isFile:xC,isBlob:SC,isRegExp:zC,isFunction:ft,isStream:_C,isURLSearchParams:MC,isTypedArray:FC,isFileList:OC,forEach:ji,merge:xc,extend:LC,trim:RC,stripBOM:NC,inherits:BC,toFlatObject:IC,kindOf:Ao,kindOfTest:Pt,endsWith:HC,toArray:VC,forEachEntry:QC,matchAll:WC,isHTMLForm:jC,hasOwnProperty:rp,hasOwnProp:rp,reduceDescriptors:ip,freezeMethods:YC,toObjectSet:$C,toCamelCase:qC,noop:UC,toFiniteNumber:ZC,findKey:tp,global:ar,isContextDefined:np,isSpecCompliantForm:XC,toJSONObject:KC,isAsyncFn:GC,isThenable:JC,setImmediate:sp,asap:ew};function U(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}_.inherits(U,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:_.toJSONObject(this.config),code:this.code,status:this.status}}});const op=U.prototype,ap={};["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(r=>{ap[r]={value:r}}),Object.defineProperties(U,ap),Object.defineProperty(op,"isAxiosError",{value:!0}),U.from=(r,e,t,n,i,s)=>{const o=Object.create(op);return _.toFlatObject(r,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),U.call(o,r.message,e,t,n,i),o.cause=r,o.name=r.name,s&&Object.assign(o,s),o};const tw=null;function Sc(r){return _.isPlainObject(r)||_.isArray(r)}function lp(r){return _.endsWith(r,"[]")?r.slice(0,-2):r}function cp(r,e,t){return r?r.concat(e).map(function(i,s){return i=lp(i),!t&&s?"["+i+"]":i}).join(t?".":""):e}function nw(r){return _.isArray(r)&&!r.some(Sc)}const rw=_.toFlatObject(_,{},null,function(e){return/^is[A-Z]/.test(e)});function Bo(r,e,t){if(!_.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=_.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!_.isUndefined(g[m])});const n=t.metaTokens,i=t.visitor||u,s=t.dots,o=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(e);if(!_.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(_.isDate(p))return p.toISOString();if(!l&&_.isBlob(p))throw new U("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(p)||_.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let y=p;if(p&&!g&&typeof p=="object"){if(_.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(_.isArray(p)&&nw(p)||(_.isFileList(p)||_.endsWith(m,"[]"))&&(y=_.toArray(p)))return m=lp(m),y.forEach(function(w,x){!(_.isUndefined(w)||w===null)&&e.append(o===!0?cp([m],x,s):o===null?m:m+"[]",c(w))}),!1}return Sc(p)?!0:(e.append(cp(g,m,s),c(p)),!1)}const h=[],d=Object.assign(rw,{defaultVisitor:u,convertValue:c,isVisitable:Sc});function f(p,m){if(!_.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(p),_.forEach(p,function(y,C){(!(_.isUndefined(y)||y===null)&&i.call(e,y,_.isString(C)?C.trim():C,m,d))===!0&&f(y,m?m.concat(C):[C])}),h.pop()}}if(!_.isObject(r))throw new TypeError("data must be an object");return f(r),e}function up(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Oc(r,e){this._pairs=[],r&&Bo(r,this,e)}const hp=Oc.prototype;hp.append=function(e,t){this._pairs.push([e,t])},hp.toString=function(e){const t=e?function(n){return e.call(this,n,up)}:up;return this._pairs.map(function(i){return t(i[0])+"="+t(i[1])},"").join("&")};function iw(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dp(r,e,t){if(!e)return r;const n=t&&t.encode||iw;_.isFunction(t)&&(t={serialize:t});const i=t&&t.serialize;let s;if(i?s=i(e,t):s=_.isURLSearchParams(e)?e.toString():new Oc(e,t).toString(n),s){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}class fp{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_.forEach(this.handlers,function(n){n!==null&&e(n)})}}const pp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sw={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Oc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_c=typeof window<"u"&&typeof document<"u",Dc=typeof navigator=="object"&&navigator||void 0,ow=_c&&(!Dc||["ReactNative","NativeScript","NS"].indexOf(Dc.product)<0),aw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lw=_c&&window.location.href||"http://localhost",qe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_c,hasStandardBrowserEnv:ow,hasStandardBrowserWebWorkerEnv:aw,navigator:Dc,origin:lw},Symbol.toStringTag,{value:"Module"})),...sw};function cw(r,e){return Bo(r,new qe.classes.URLSearchParams,Object.assign({visitor:function(t,n,i,s){return qe.isNode&&_.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function uw(r){return _.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function hw(r){const e={},t=Object.keys(r);let n;const i=t.length;let s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}function mp(r){function e(t,n,i,s){let o=t[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=t.length;return o=!o&&_.isArray(i)?i.length:o,l?(_.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!_.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],s)&&_.isArray(i[o])&&(i[o]=hw(i[o])),!a)}if(_.isFormData(r)&&_.isFunction(r.entries)){const t={};return _.forEachEntry(r,(n,i)=>{e(uw(n),i,t,0)}),t}return null}function dw(r,e,t){if(_.isString(r))try{return(e||JSON.parse)(r),_.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(r)}const qi={transitional:pp,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=_.isObject(e);if(s&&_.isHTMLForm(e)&&(e=new FormData(e)),_.isFormData(e))return i?JSON.stringify(mp(e)):e;if(_.isArrayBuffer(e)||_.isBuffer(e)||_.isStream(e)||_.isFile(e)||_.isBlob(e)||_.isReadableStream(e))return e;if(_.isArrayBufferView(e))return e.buffer;if(_.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return cw(e,this.formSerializer).toString();if((a=_.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bo(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),dw(e)):e}],transformResponse:[function(e){const t=this.transitional||qi.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(_.isResponse(e)||_.isReadableStream(e))return e;if(e&&_.isString(e)&&(n&&!this.responseType||i)){const o=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?U.from(a,U.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],r=>{qi.headers[r]={}});const fw=_.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"]),pw=r=>{const e={};let t,n,i;return r&&r.split(`
|
|
567
|
+
`).forEach(function(o){i=o.indexOf(":"),t=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!t||e[t]&&fw[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},gp=Symbol("internals");function zi(r){return r&&String(r).trim().toLowerCase()}function Io(r){return r===!1||r==null?r:_.isArray(r)?r.map(Io):String(r)}function mw(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const gw=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Mc(r,e,t,n,i){if(_.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!_.isString(e)){if(_.isString(n))return e.indexOf(n)!==-1;if(_.isRegExp(n))return n.test(e)}}function yw(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function bw(r,e){const t=_.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}class tt{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function s(a,l,c){const u=zi(l);if(!u)throw new Error("header name must be a non-empty string");const h=_.findKey(i,u);(!h||i[h]===void 0||c===!0||c===void 0&&i[h]!==!1)&&(i[h||l]=Io(a))}const o=(a,l)=>_.forEach(a,(c,u)=>s(c,u,l));if(_.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(_.isString(e)&&(e=e.trim())&&!gw(e))o(pw(e),t);else if(_.isHeaders(e))for(const[a,l]of e.entries())s(l,a,n);else e!=null&&s(t,e,n);return this}get(e,t){if(e=zi(e),e){const n=_.findKey(this,e);if(n){const i=this[n];if(!t)return i;if(t===!0)return mw(i);if(_.isFunction(t))return t.call(this,i,n);if(_.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=zi(e),e){const n=_.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Mc(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let i=!1;function s(o){if(o=zi(o),o){const a=_.findKey(n,o);a&&(!t||Mc(n,n[a],a,t))&&(delete n[a],i=!0)}}return _.isArray(e)?e.forEach(s):s(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const s=t[n];(!e||Mc(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const t=this,n={};return _.forEach(this,(i,s)=>{const o=_.findKey(n,s);if(o){t[o]=Io(i),delete t[s];return}const a=e?yw(s):String(s).trim();a!==s&&delete t[s],t[a]=Io(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&_.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
568
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[gp]=this[gp]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=zi(o);n[a]||(bw(i,o),n[a]=!0)}return _.isArray(e)?e.forEach(s):s(e),this}}tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.reduceDescriptors(tt.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}}),_.freezeMethods(tt);function Pc(r,e){const t=this||qi,n=e||t,i=tt.from(n.headers);let s=n.data;return _.forEach(r,function(a){s=a.call(t,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function yp(r){return!!(r&&r.__CANCEL__)}function Yr(r,e,t){U.call(this,r??"canceled",U.ERR_CANCELED,e,t),this.name="CanceledError"}_.inherits(Yr,U,{__CANCEL__:!0});function bp(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new U("Request failed with status code "+t.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function vw(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Cw(r,e){r=r||10;const t=new Array(r),n=new Array(r);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=n[s];o||(o=c),t[i]=l,n[i]=c;let h=s,d=0;for(;h!==i;)d+=t[h++],h=h%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),c-o<e)return;const f=u&&c-u;return f?Math.round(d*1e3/f):void 0}}function ww(r,e){let t=0,n=1e3/e,i,s;const o=(c,u=Date.now())=>{t=u,i=null,s&&(clearTimeout(s),s=null),r.apply(null,c)};return[(...c)=>{const u=Date.now(),h=u-t;h>=n?o(c,u):(i=c,s||(s=setTimeout(()=>{s=null,o(i)},n-h)))},()=>i&&o(i)]}const Ho=(r,e,t=3)=>{let n=0;const i=Cw(50,250);return ww(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-n,c=i(l),u=o<=a;n=o;const h={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-o)/c:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};r(h)},t)},vp=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},Cp=r=>(...e)=>_.asap(()=>r(...e)),kw=qe.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,qe.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(qe.origin),qe.navigator&&/(msie|trident)/i.test(qe.navigator.userAgent)):()=>!0,xw=qe.hasStandardBrowserEnv?{write(r,e,t,n,i,s){const o=[r+"="+encodeURIComponent(e)];_.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),_.isString(n)&&o.push("path="+n),_.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Sw(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Ow(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function wp(r,e,t){let n=!Sw(e);return r&&(n||t==!1)?Ow(r,e):e}const kp=r=>r instanceof tt?{...r}:r;function lr(r,e){e=e||{};const t={};function n(c,u,h,d){return _.isPlainObject(c)&&_.isPlainObject(u)?_.merge.call({caseless:d},c,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function i(c,u,h,d){if(_.isUndefined(u)){if(!_.isUndefined(c))return n(void 0,c,h,d)}else return n(c,u,h,d)}function s(c,u){if(!_.isUndefined(u))return n(void 0,u)}function o(c,u){if(_.isUndefined(u)){if(!_.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,h){if(h in e)return n(c,u);if(h in r)return n(void 0,c)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u,h)=>i(kp(c),kp(u),h,!0)};return _.forEach(Object.keys(Object.assign({},r,e)),function(u){const h=l[u]||i,d=h(r[u],e[u],u);_.isUndefined(d)&&h!==a||(t[u]=d)}),t}const xp=r=>{const e=lr({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=e;e.headers=o=tt.from(o),e.url=dp(wp(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(_.isFormData(t)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(qe.hasStandardBrowserEnv&&(n&&_.isFunction(n)&&(n=n(e)),n||n!==!1&&kw(e.url))){const c=i&&s&&xw.read(s);c&&o.set(i,c)}return e},_w=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,n){const i=xp(r);let s=i.data;const o=tt.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,u,h,d,f,p;function m(){f&&f(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function y(){if(!g)return;const w=tt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:r,request:g};bp(function(k){t(k),m()},function(k){n(k),m()},b),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(n(new U("Request aborted",U.ECONNABORTED,r,g)),g=null)},g.onerror=function(){n(new U("Network Error",U.ERR_NETWORK,r,g)),g=null},g.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||pp;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),n(new U(x,b.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,r,g)),g=null},s===void 0&&o.setContentType(null),"setRequestHeader"in g&&_.forEach(o.toJSON(),function(x,b){g.setRequestHeader(b,x)}),_.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),a&&a!=="json"&&(g.responseType=i.responseType),c&&([d,p]=Ho(c,!0),g.addEventListener("progress",d)),l&&g.upload&&([h,f]=Ho(l),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",f)),(i.cancelToken||i.signal)&&(u=w=>{g&&(n(!w||w.type?new Yr(null,r,g):w),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const C=vw(i.url);if(C&&qe.protocols.indexOf(C)===-1){n(new U("Unsupported protocol "+C+":",U.ERR_BAD_REQUEST,r));return}g.send(s||null)})},Dw=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,i;const s=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof U?u:new Yr(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{o=null,s(new U(`timeout ${e} of ms exceeded`,U.ETIMEDOUT))},e);const a=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),r=null)};r.forEach(c=>c.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>_.asap(a),l}},Mw=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,i;for(;n<t;)i=n+e,yield r.slice(n,i),n=i},Pw=async function*(r,e){for await(const t of Tw(r))yield*Mw(t,e)},Tw=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Sp=(r,e,t,n)=>{const i=Pw(r,e);let s=0,o,a=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){a(),l.close();return}let h=u.byteLength;if(t){let d=s+=h;t(d)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Vo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Op=Vo&&typeof ReadableStream=="function",Ew=Vo&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),_p=(r,...e)=>{try{return!!r(...e)}catch{return!1}},Aw=Op&&_p(()=>{let r=!1;const e=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),Dp=64*1024,Tc=Op&&_p(()=>_.isReadableStream(new Response("").body)),Fo={stream:Tc&&(r=>r.body)};Vo&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Fo[e]&&(Fo[e]=_.isFunction(r[e])?t=>t[e]():(t,n)=>{throw new U(`Response type '${e}' is not supported`,U.ERR_NOT_SUPPORT,n)})})})(new Response);const Rw=async r=>{if(r==null)return 0;if(_.isBlob(r))return r.size;if(_.isSpecCompliantForm(r))return(await new Request(qe.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(_.isArrayBufferView(r)||_.isArrayBuffer(r))return r.byteLength;if(_.isURLSearchParams(r)&&(r=r+""),_.isString(r))return(await Ew(r)).byteLength},Lw=async(r,e)=>{const t=_.toFiniteNumber(r.getContentLength());return t??Rw(e)},Ec={http:tw,xhr:_w,fetch:Vo&&(async r=>{let{url:e,method:t,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:h="same-origin",fetchOptions:d}=xp(r);c=c?(c+"").toLowerCase():"text";let f=Dw([i,s&&s.toAbortSignal()],o),p;const m=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let g;try{if(l&&Aw&&t!=="get"&&t!=="head"&&(g=await Lw(u,n))!==0){let b=new Request(e,{method:"POST",body:n,duplex:"half"}),S;if(_.isFormData(n)&&(S=b.headers.get("content-type"))&&u.setContentType(S),b.body){const[k,D]=vp(g,Ho(Cp(l)));n=Sp(b.body,Dp,k,D)}}_.isString(h)||(h=h?"include":"omit");const y="credentials"in Request.prototype;p=new Request(e,{...d,signal:f,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:y?h:void 0});let C=await fetch(p);const w=Tc&&(c==="stream"||c==="response");if(Tc&&(a||w&&m)){const b={};["status","statusText","headers"].forEach(P=>{b[P]=C[P]});const S=_.toFiniteNumber(C.headers.get("content-length")),[k,D]=a&&vp(S,Ho(Cp(a),!0))||[];C=new Response(Sp(C.body,Dp,k,()=>{D&&D(),m&&m()}),b)}c=c||"text";let x=await Fo[_.findKey(Fo,c)||"text"](C,r);return!w&&m&&m(),await new Promise((b,S)=>{bp(b,S,{data:x,headers:tt.from(C.headers),status:C.status,statusText:C.statusText,config:r,request:p})})}catch(y){throw m&&m(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new U("Network Error",U.ERR_NETWORK,r,p),{cause:y.cause||y}):U.from(y,y&&y.code,r,p)}})};_.forEach(Ec,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const Mp=r=>`- ${r}`,Nw=r=>_.isFunction(r)||r===null||r===!1,Pp={getAdapter:r=>{r=_.isArray(r)?r:[r];const{length:e}=r;let t,n;const i={};for(let s=0;s<e;s++){t=r[s];let o;if(n=t,!Nw(t)&&(n=Ec[(o=String(t)).toLowerCase()],n===void 0))throw new U(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?s.length>1?`since :
|
|
569
|
+
`+s.map(Mp).join(`
|
|
570
|
+
`):" "+Mp(s[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Ec};function Ac(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Yr(null,r)}function Tp(r){return Ac(r),r.headers=tt.from(r.headers),r.data=Pc.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Pp.getAdapter(r.adapter||qi.adapter)(r).then(function(n){return Ac(r),n.data=Pc.call(r,r.transformResponse,n),n.headers=tt.from(n.headers),n},function(n){return yp(n)||(Ac(r),n&&n.response&&(n.response.data=Pc.call(r,r.transformResponse,n.response),n.response.headers=tt.from(n.response.headers))),Promise.reject(n)})}const Ep="1.8.4",Qo={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{Qo[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const Ap={};Qo.transitional=function(e,t,n){function i(s,o){return"[Axios v"+Ep+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,a)=>{if(e===!1)throw new U(i(o," has been removed"+(t?" in "+t:"")),U.ERR_DEPRECATED);return t&&!Ap[o]&&(Ap[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,o,a):!0}},Qo.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Bw(r,e,t){if(typeof r!="object")throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let i=n.length;for(;i-- >0;){const s=n[i],o=e[s];if(o){const a=r[s],l=a===void 0||o(a,s,r);if(l!==!0)throw new U("option "+s+" must be "+l,U.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new U("Unknown option "+s,U.ERR_BAD_OPTION)}}const Wo={assertOptions:Bw,validators:Qo},Yt=Wo.validators;class cr{constructor(e){this.defaults=e,this.interceptors={request:new fp,response:new fp}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
571
|
+
`+s):n.stack=s}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=lr(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&Wo.assertOptions(n,{silentJSONParsing:Yt.transitional(Yt.boolean),forcedJSONParsing:Yt.transitional(Yt.boolean),clarifyTimeoutError:Yt.transitional(Yt.boolean)},!1),i!=null&&(_.isFunction(i)?t.paramsSerializer={serialize:i}:Wo.assertOptions(i,{encode:Yt.function,serialize:Yt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Wo.assertOptions(t,{baseUrl:Yt.spelling("baseURL"),withXsrfToken:Yt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=s&&_.merge(s.common,s[t.method]);s&&_.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),t.headers=tt.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,h=0,d;if(!l){const p=[Tp.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),d=p.length,u=Promise.resolve(t);h<d;)u=u.then(p[h++],p[h++]);return u}d=a.length;let f=t;for(h=0;h<d;){const p=a[h++],m=a[h++];try{f=p(f)}catch(g){m.call(this,g);break}}try{u=Tp.call(this,f)}catch(p){return Promise.reject(p)}for(h=0,d=c.length;h<d;)u=u.then(c[h++],c[h++]);return u}getUri(e){e=lr(this.defaults,e);const t=wp(e.baseURL,e.url,e.allowAbsoluteUrls);return dp(t,e.params,e.paramsSerializer)}}_.forEach(["delete","get","head","options"],function(e){cr.prototype[e]=function(t,n){return this.request(lr(n||{},{method:e,url:t,data:(n||{}).data}))}}),_.forEach(["post","put","patch"],function(e){function t(n){return function(s,o,a){return this.request(lr(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}cr.prototype[e]=t(),cr.prototype[e+"Form"]=t(!0)});class Rc{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,a){n.reason||(n.reason=new Yr(s,o,a),t(n.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=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Rc(function(i){e=i}),cancel:e}}}function Iw(r){return function(t){return r.apply(null,t)}}function Hw(r){return _.isObject(r)&&r.isAxiosError===!0}const Lc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lc).forEach(([r,e])=>{Lc[e]=r});function Rp(r){const e=new cr(r),t=G1(cr.prototype.request,e);return _.extend(t,cr.prototype,e,{allOwnKeys:!0}),_.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return Rp(lr(r,i))},t}const Se=Rp(qi);Se.Axios=cr,Se.CanceledError=Yr,Se.CancelToken=Rc,Se.isCancel=yp,Se.VERSION=Ep,Se.toFormData=Bo,Se.AxiosError=U,Se.Cancel=Se.CanceledError,Se.all=function(e){return Promise.all(e)},Se.spread=Iw,Se.isAxiosError=Hw,Se.mergeConfig=lr,Se.AxiosHeaders=tt,Se.formToJSON=r=>mp(_.isHTMLForm(r)?new FormData(r):r),Se.getAdapter=Pp.getAdapter,Se.HttpStatusCode=Lc,Se.default=Se;const Lp=()=>new AbortController,Vw=(r,e={},t={},n=!1)=>{const i=Lp();return n&&i.abort(),{call:Se.get(r,{headers:{...e},params:t,signal:i.signal}),controller:i}},Np=(r,e={},t={},n={},i=!1)=>{const s=Lp();return i&&s.abort(),{call:Se.post(r,t,{headers:{...e},params:n,signal:s.signal}),controller:s}},Bp=()=>{let r;return{callEndpoint:async n=>{n.controller&&(r=n.controller);let i={};try{i=await n.call}catch(s){throw s}return i},cancelEndpoint:()=>{r&&r.abort()}}},Ip=async(r,e,t="",n={},i={})=>{try{const{callEndpoint:s}=Bp(),{api:o,headers:a}=r;let l=`${o}/not-front/next-ui/?session_name=${e}`;l=t?`${l}&hash_code=${t}`:l;const c=Np(l,a||{"content-type":"application/json"},n,i,!1);return await s(c)}catch(s){return console.error(s),Promise.reject(s)}};var Hp={exports:{}};/*!
|
|
572
572
|
Copyright (c) 2018 Jed Watson.
|
|
573
573
|
Licensed under the MIT License (MIT), see
|
|
574
574
|
http://jedwatson.github.io/classnames
|
|
575
|
-
*/(function(
|
|
575
|
+
*/(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var n=[],i=0;i<arguments.length;i++){var s=arguments[i];if(s){var o=typeof s;if(o==="string"||o==="number")n.push(s);else if(Array.isArray(s)){if(s.length){var a=t.apply(null,s);a&&n.push(a)}}else if(o==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){n.push(s.toString());continue}for(var l in s)e.call(s,l)&&s[l]&&n.push(l)}}}return n.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(Hp);var Fw=Hp.exports;const Vp=sd(Fw),Fp={contentWrapper:"_contentWrapper_12gyy_1",contentWrapper__centered:"_contentWrapper__centered_12gyy_4"},Qp=({className:r="",isCentered:e=!0,children:t})=>de.jsx("div",{className:Vp(Fp.contentWrapper,e&&Fp.contentWrapper__centered,r),children:t}),Wp={body_content:"_body_content_2k94c_1"},Qw=({inputs:r})=>de.jsx("section",{className:Wp.body,children:de.jsx("div",{className:Wp.body_content,children:de.jsx(Qp,{children:r.map((e,t)=>de.jsx(v.Fragment,{children:e},t))})})}),Ww=()=>{const r=qr(i=>i),{callEndpoint:e}=Bp(),t=async(i,s,o,a)=>{var l,c,u,h;try{const d=(l=r[i])==null?void 0:l.apiConfig,f=(h=(u=(c=r[i])==null?void 0:c.pages[s])==null?void 0:u.page)==null?void 0:h.hash,p={state:{...o},triggerKey:a};return await Ip(d,i,f,p)}catch(d){throw console.error("[getNextUI] Error fetching next UI:",d),d}};return{getNextUI:t,fetchAndGetNextUI:async(i,s,o,a,l)=>{try{if(!l||l.type!=="rest"){console.warn("[fetchAndGetNextUI] Invalid or missing dataSource");return}const{method:c,url:u,headers:h,data:d}=l,f=c==="post"?Np(u,h,d):Vw(u,h),p=await e(f);return p&&await t(i,s,o,a)}catch(c){throw console.error("[fetchAndGetNextUI] Error fetching and navigating:",c),c}}}},jw=r=>{const{userFlow:e,pageId:t,responseKey:n,actionType:i,label:s,content:o,dataSource:a,redirectUrl:l,...c}=r,{fetchAndGetNextUI:u,getNextUI:h}=Ww(),d=qr(g=>{var y;return((y=g[e])==null?void 0:y.entries)||{}}),f={...d,[n]:{status:200}},p=v.useCallback(async()=>{try{wc(e,f);const g=async y=>{const C=await y(e,t,f,n,a);gC(e,C==null?void 0:C.data)};switch(i){case"GO_TO_NEXT_UI":await g(h);break;case"FETCH_AND_GO_TO_NEXT_UI":await g(u);break;case"REDIRECT":l?window.location.href=l:console.warn("Missing redirectUrl for REDIRECT actionType");break;default:console.warn(`Unhandled actionType: ${i}`);break}}catch(g){alert(JSON.stringify(g))}},[i,a,d,t,n,e]),m={...c,children:o??s,onClick:p};return de.jsx(Dd,{...m})};function Nc(){return Nc=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Nc.apply(this,arguments)}function qw(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}let Bc=[],jp=[];(()=>{let r="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<r.length;e++)(e%2?jp:Bc).push(t=t+r[e])})();function zw(r){if(r<768)return!1;for(let e=0,t=Bc.length;;){let n=e+t>>1;if(r<Bc[n])t=n;else if(r>=jp[n])e=n+1;else return!0;if(e==t)return!1}}function qp(r){return r>=127462&&r<=127487}const zp=8205;function Yw(r,e,t=!0,n=!0){return(t?Yp:$w)(r,e,n)}function Yp(r,e,t){if(e==r.length)return e;e&&$p(r.charCodeAt(e))&&Up(r.charCodeAt(e-1))&&e--;let n=Ic(r,e);for(e+=Zp(n);e<r.length;){let i=Ic(r,e);if(n==zp||i==zp||t&&zw(i))e+=Zp(i),n=i;else if(qp(i)){let s=0,o=e-2;for(;o>=0&&qp(Ic(r,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function $w(r,e,t){for(;e>0;){let n=Yp(r,e-2,t);if(n<e)return n;e--}return 0}function Ic(r,e){let t=r.charCodeAt(e);if(!Up(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return $p(n)?(t-55296<<10)+(n-56320)+65536:t}function $p(r){return r>=56320&&r<57344}function Up(r){return r>=55296&&r<56320}function Zp(r){return r<65536?1:2}class ne{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=$r(this,e,t);let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),$t.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$r(this,e,t);let n=[];return this.decompose(e,t,n,0),$t.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Yi(this),s=new Yi(e);for(let o=t,a=t;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(a+=i.value.length,i.done||a>=n)return!0}}iter(e=1){return new Yi(this,e)}iterRange(e,t=this.length){return new Kp(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Gp(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ne.empty:e.length<=32?new Oe(e):$t.from(Oe.split(e,[]))}}class Oe extends ne{constructor(e,t=Uw(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((t?n:a)>=e)return new Zw(i,a,n,o);i=a+1,n++}}decompose(e,t,n,i){let s=e<=0&&t>=this.length?this:new Oe(Xp(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(i&1){let o=n.pop(),a=jo(s.text,o.text.slice(),0,s.length);if(a.length<=32)n.push(new Oe(a,o.length+s.length));else{let l=a.length>>1;n.push(new Oe(a.slice(0,l)),new Oe(a.slice(l)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof Oe))return super.replace(e,t,n);[e,t]=$r(this,e,t);let i=jo(this.text,jo(n.text,Xp(this.text,0,e)),t),s=this.length+n.length-(t-e);return i.length<=32?new Oe(i,s):$t.from(Oe.split(i,[]),s)}sliceString(e,t=this.length,n=`
|
|
576
|
+
`){[e,t]=$r(this,e,t);let i="";for(let s=0,o=0;s<=t&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>e&&o&&(i+=n),e<l&&t>s&&(i+=a.slice(Math.max(0,e-s),t-s)),s=l+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let s of e)n.push(s),i+=s.length+1,n.length==32&&(t.push(new Oe(n,i)),n=[],i=-1);return i>-1&&t.push(new Oe(n,i)),t}}class $t extends ne{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let s=0;;s++){let o=this.children[s],a=i+o.length,l=n+o.lines-1;if((t?l:a)>=e)return o.lineInner(e,t,n,i);i=a+1,n=l+1}}decompose(e,t,n,i){for(let s=0,o=0;o<=t&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(e<=l&&t>=o){let c=i&((o<=e?1:0)|(l>=t?2:0));o>=e&&l<=t&&!c?n.push(a):a.decompose(e-o,t-o,n,c)}o=l+1}}replace(e,t,n){if([e,t]=$r(this,e,t),n.lines<this.lines)for(let i=0,s=0;i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(e>=s&&t<=a){let l=o.replace(e-s,t-s,n),c=this.lines-o.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[i]=l,new $t(u,this.length-(t-e)+n.length)}return super.replace(s,a,l)}s=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
|
|
577
|
+
`){[e,t]=$r(this,e,t);let i="";for(let s=0,o=0;s<this.children.length&&o<=t;s++){let a=this.children[s],l=o+a.length;o>e&&s&&(i+=n),e<l&&t>o&&(i+=a.sliceString(e-o,t-o,n)),o=l+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof $t))return 0;let n=0,[i,s,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,s+=t){if(i==o||s==a)return n;let l=this.children[i],c=e.children[s];if(l!=c)return n+l.scanIdentical(c,t);n+=l.length+1}}static from(e,t=e.reduce((n,i)=>n+i.length+1,-1)){let n=0;for(let f of e)n+=f.lines;if(n<32){let f=[];for(let p of e)p.flatten(f);return new Oe(f,t)}let i=Math.max(32,n>>5),s=i<<1,o=i>>1,a=[],l=0,c=-1,u=[];function h(f){let p;if(f.lines>s&&f instanceof $t)for(let m of f.children)h(m);else f.lines>o&&(l>o||!l)?(d(),a.push(f)):f instanceof Oe&&l&&(p=u[u.length-1])instanceof Oe&&f.lines+p.lines<=32?(l+=f.lines,c+=f.length+1,u[u.length-1]=new Oe(p.text.concat(f.text),p.length+1+f.length)):(l+f.lines>i&&d(),l+=f.lines,c+=f.length+1,u.push(f))}function d(){l!=0&&(a.push(u.length==1?u[0]:$t.from(u,c)),c=-1,l=u.length=0)}for(let f of e)h(f);return d(),a.length==1?a[0]:new $t(a,t)}}ne.empty=new Oe([""],0);function Uw(r){let e=-1;for(let t of r)e+=t.length+1;return e}function jo(r,e,t=0,n=1e9){for(let i=0,s=0,o=!0;s<r.length&&i<=n;s++){let a=r[s],l=i+a.length;l>=t&&(l>n&&(a=a.slice(0,n-i)),i<t&&(a=a.slice(t-i)),o?(e[e.length-1]+=a,o=!1):e.push(a)),i=l+1}return e}function Xp(r,e,t){return jo(r,[""],e,t)}class Yi{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Oe?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],s=this.offsets[n],o=s>>1,a=i instanceof Oe?i.text.length:i.children.length;if(o==(t>0?a:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
578
|
+
`,this;e--}else if(i instanceof Oe){let l=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,l.length>Math.max(0,e))return this.value=e==0?l:t>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=i.children[o+(t<0?-1:0)];e>l.length?(e-=l.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(t>0?1:(l instanceof Oe?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Kp{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Yi(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Gp{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ne.prototype[Symbol.iterator]=function(){return this.iter()},Yi.prototype[Symbol.iterator]=Kp.prototype[Symbol.iterator]=Gp.prototype[Symbol.iterator]=function(){return this});class Zw{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}function $r(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}function Ve(r,e,t=!0,n=!0){return Yw(r,e,t,n)}function Xw(r){return r>=56320&&r<57344}function Kw(r){return r>=55296&&r<56320}function nt(r,e){let t=r.charCodeAt(e);if(!Kw(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return Xw(n)?(t-55296<<10)+(n-56320)+65536:t}function Hc(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function Ut(r){return r<65536?1:2}const Vc=/\r\n?|\n/;var Xe=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(Xe||(Xe={}));class Zt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,i=0;t<this.sections.length;){let s=this.sections[t++],o=this.sections[t++];o<0?(e(n,i,s),i+=s):i+=o,n+=s}}iterChangedRanges(e,t=!1){Fc(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];i<0?e.push(n,i):e.push(i,n)}return new Zt(e)}composeDesc(e){return this.empty?e:e.empty?this:Jp(this,e)}mapDesc(e,t=!1){return e.empty?this:Qc(this,e,t)}mapPos(e,t=-1,n=Xe.Simple){let i=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],c=i+a;if(l<0){if(c>e)return s+(e-i);s+=a}else{if(n!=Xe.Simple&&c>=e&&(n==Xe.TrackDel&&i<e&&c>e||n==Xe.TrackBefore&&i<e||n==Xe.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!a)return e==i||t<0?s:s+l;s+=l}i=c}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return s}touchesRange(e,t=e){for(let n=0,i=0;n<this.sections.length&&i<=t;){let s=this.sections[n++],o=this.sections[n++],a=i+s;if(o>=0&&i<=t&&a>=e)return i<e&&a>t?"cover":!0;i=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+n+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Zt(e)}static create(e){return new Zt(e)}}class Ee extends Zt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Fc(this,(t,n,i,s,o)=>e=e.replace(i,i+(n-t),o),!1),e}mapDesc(e,t=!1){return Qc(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,s=0;i<t.length;i+=2){let o=t[i],a=t[i+1];if(a>=0){t[i]=a,t[i+1]=o;let l=i>>1;for(;n.length<l;)n.push(ne.empty);n.push(o?e.slice(s,s+o):ne.empty)}s+=o}return new Ee(t,n)}compose(e){return this.empty?e:e.empty?this:Jp(this,e,!0)}map(e,t=!1){return e.empty?this:Qc(this,e,t,!0)}iterChanges(e,t=!1){Fc(this,e,t)}get desc(){return Zt.create(this.sections)}filter(e){let t=[],n=[],i=[],s=new $i(this);e:for(let o=0,a=0;;){let l=o==e.length?1e9:e[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let u=Math.min(s.len,l-a);ze(i,u,-1);let h=s.ins==-1?-1:s.off==0?s.ins:0;ze(t,u,h),h>0&&Vn(n,t,s.text),s.forward(u),a+=u}let c=e[o++];for(;a<c;){if(s.done)break e;let u=Math.min(s.len,c-a);ze(t,u,-1),ze(i,u,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(u),a+=u}}return{changes:new Ee(t,n),filtered:Zt.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],i=this.sections[t+1];i<0?e.push(n):i==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],s=[],o=0,a=null;function l(u=!1){if(!u&&!i.length)return;o<t&&ze(i,t-o,-1);let h=new Ee(i,s);a=a?a.compose(h.map(a)):h,i=[],s=[],o=0}function c(u){if(Array.isArray(u))for(let h of u)c(h);else if(u instanceof Ee){if(u.length!=t)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:h,to:d=h,insert:f}=u;if(h>d||h<0||d>t)throw new RangeError(`Invalid change range ${h} to ${d} (in doc of length ${t})`);let p=f?typeof f=="string"?ne.of(f.split(n||Vc)):f:ne.empty,m=p.length;if(h==d&&m==0)return;h<o&&l(),h>o&&ze(i,h-o,-1),ze(i,d-h,m),Vn(s,i,p),o=d}}return c(e),l(!a),a}static empty(e){return new Ee(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let s=e[i];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;n.length<i;)n.push(ne.empty);n[i]=ne.of(s.slice(1)),t.push(s[0],n[i].length)}}}return new Ee(t,n)}static createSet(e,t){return new Ee(e,t)}}function ze(r,e,t,n=!1){if(e==0&&t<=0)return;let i=r.length-2;i>=0&&t<=0&&t==r[i+1]?r[i]+=e:i>=0&&e==0&&r[i]==0?r[i+1]+=t:n?(r[i]+=e,r[i+1]+=t):r.push(e,t)}function Vn(r,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<n;)r.push(ne.empty);r.push(t)}}function Fc(r,e,t){let n=r.inserted;for(let i=0,s=0,o=0;o<r.sections.length;){let a=r.sections[o++],l=r.sections[o++];if(l<0)i+=a,s+=a;else{let c=i,u=s,h=ne.empty;for(;c+=a,u+=l,l&&n&&(h=h.append(n[o-2>>1])),!(t||o==r.sections.length||r.sections[o+1]<0);)a=r.sections[o++],l=r.sections[o++];e(i,c,s,u,h),i=c,s=u}}}function Qc(r,e,t,n=!1){let i=[],s=n?[]:null,o=new $i(r),a=new $i(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let c=Math.min(o.len,a.len);ze(i,c,-1),o.forward(c),a.forward(c)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!t))){let c=a.len;for(ze(i,a.ins,-1);c;){let u=Math.min(o.len,c);o.ins>=0&&l<o.i&&o.len<=u&&(ze(i,0,o.ins),s&&Vn(s,i,o.text),l=o.i),o.forward(u),c-=u}a.next()}else if(o.ins>=0){let c=0,u=o.len;for(;u;)if(a.ins==-1){let h=Math.min(u,a.len);c+=h,u-=h,a.forward(h)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;ze(i,c,l<o.i?o.ins:0),s&&l<o.i&&Vn(s,i,o.text),l=o.i,o.forward(o.len-u)}else{if(o.done&&a.done)return s?Ee.createSet(i,s):Zt.create(i);throw new Error("Mismatched change set lengths")}}}function Jp(r,e,t=!1){let n=[],i=t?[]:null,s=new $i(r),o=new $i(e);for(let a=!1;;){if(s.done&&o.done)return i?Ee.createSet(n,i):Zt.create(n);if(s.ins==0)ze(n,s.len,0,a),s.next();else if(o.len==0&&!o.done)ze(n,0,o.ins,a),i&&Vn(i,n,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),c=n.length;if(s.ins==-1){let u=o.ins==-1?-1:o.off?0:o.ins;ze(n,l,u,a),i&&u&&Vn(i,n,o.text)}else o.ins==-1?(ze(n,s.off?0:s.len,l,a),i&&Vn(i,n,s.textBit(l))):(ze(n,s.off?0:s.len,o.off?0:o.ins,a),i&&!o.off&&Vn(i,n,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||n.length>c),s.forward2(l),o.forward(l)}}}}class $i{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?ne.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?ne.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ur{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new ur(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return M.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return M.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return M.range(e.anchor,e.head)}static create(e,t,n){return new ur(e,t,n)}}class M{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:M.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new M([this.main],0)}addRange(e,t=!0){return M.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,M.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new M(e.ranges.map(t=>ur.fromJSON(t)),e.main)}static single(e,t=e){return new M([M.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;i<e.length;i++){let s=e[i];if(s.empty?s.from<=n:s.from<n)return M.normalized(e.slice(),t);n=s.to}return new M(e,t)}static cursor(e,t=0,n,i){return ur.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(i??16777215)<<6)}static range(e,t,n,i){let s=(n??16777215)<<6|(i==null?7:Math.min(6,i));return t<e?ur.create(t,e,48|s):ur.create(e,t,(t>e?8:0)|s)}static normalized(e,t=0){let n=e[t];e.sort((i,s)=>i.from-s.from),t=e.indexOf(n);for(let i=1;i<e.length;i++){let s=e[i],o=e[i-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);i<=t&&t--,e.splice(--i,2,s.anchor>s.head?M.range(l,a):M.range(a,l))}}return new M(e,t)}}function e0(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Wc=0;class V{constructor(e,t,n,i,s){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=Wc++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new V(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:jc),!!e.static,e.enables)}of(e){return new qo([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qo(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qo(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function jc(r,e){return r==e||r.length==e.length&&r.every((t,n)=>t===e[n])}class qo{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=Wc++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,s=this.id,o=e[s]>>1,a=this.type==2,l=!1,c=!1,u=[];for(let h of this.dependencies)h=="doc"?l=!0:h=="selection"?c=!0:((t=e[h.id])!==null&&t!==void 0?t:1)&1||u.push(e[h.id]);return{create(h){return h.values[o]=n(h),1},update(h,d){if(l&&d.docChanged||c&&(d.docChanged||d.selection)||qc(h,u)){let f=n(h);if(a?!t0(f,h.values[o],i):!i(f,h.values[o]))return h.values[o]=f,1}return 0},reconfigure:(h,d)=>{let f,p=d.config.address[s];if(p!=null){let m=Uo(d,p);if(this.dependencies.every(g=>g instanceof V?d.facet(g)===h.facet(g):g instanceof Fe?d.field(g,!1)==h.field(g,!1):!0)||(a?t0(f=n(h),m,i):i(f=n(h),m)))return h.values[o]=m,0}else f=n(h);return h.values[o]=f,1}}}}function t0(r,e,t){if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],e[n]))return!1;return!0}function qc(r,e){let t=!1;for(let n of e)Zi(r,n)&1&&(t=!0);return t}function Gw(r,e,t){let n=t.map(l=>r[l.id]),i=t.map(l=>l.type),s=n.filter(l=>!(l&1)),o=r[e.id]>>1;function a(l){let c=[];for(let u=0;u<n.length;u++){let h=Uo(l,n[u]);if(i[u]==2)for(let d of h)c.push(d);else c.push(h)}return e.combine(c)}return{create(l){for(let c of n)Zi(l,c);return l.values[o]=a(l),1},update(l,c){if(!qc(l,s))return 0;let u=a(l);return e.compare(u,l.values[o])?0:(l.values[o]=u,1)},reconfigure(l,c){let u=qc(l,n),h=c.config.facets[e.id],d=c.facet(e);if(h&&!u&&jc(t,h))return l.values[o]=d,0;let f=a(l);return e.compare(f,d)?(l.values[o]=d,0):(l.values[o]=f,1)}}}const zo=V.define({static:!0});class Fe{constructor(e,t,n,i,s){this.id=e,this.createF=t,this.updateF=n,this.compareF=i,this.spec=s,this.provides=void 0}static define(e){let t=new Fe(Wc++,e.create,e.update,e.compare||((n,i)=>n===i),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(zo).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,i)=>{let s=n.values[t],o=this.updateF(s,i);return this.compareF(s,o)?0:(n.values[t]=o,1)},reconfigure:(n,i)=>{let s=n.facet(zo),o=i.facet(zo),a;return(a=s.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(n.values[t]=a.create(n),1):i.config.address[this.id]!=null?(n.values[t]=i.field(this),0):(n.values[t]=this.create(n),1)}}}init(e){return[this,zo.of({field:this,create:e})]}get extension(){return this}}const hr={lowest:4,low:3,default:2,high:1,highest:0};function Ui(r){return e=>new n0(e,r)}const dr={highest:Ui(hr.highest),high:Ui(hr.high),default:Ui(hr.default),low:Ui(hr.low),lowest:Ui(hr.lowest)};class n0{constructor(e,t){this.inner=e,this.prec=t}}class Yo{of(e){return new zc(this,e)}reconfigure(e){return Yo.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class zc{constructor(e,t){this.compartment=e,this.inner=t}}class $o{constructor(e,t,n,i,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let i=[],s=Object.create(null),o=new Map;for(let d of Jw(e,t,o))d instanceof Fe?i.push(d):(s[d.facet.id]||(s[d.facet.id]=[])).push(d);let a=Object.create(null),l=[],c=[];for(let d of i)a[d.id]=c.length<<1,c.push(f=>d.slot(f));let u=n==null?void 0:n.config.facets;for(let d in s){let f=s[d],p=f[0].facet,m=u&&u[d]||[];if(f.every(g=>g.type==0))if(a[p.id]=l.length<<1|1,jc(m,f))l.push(n.facet(p));else{let g=p.combine(f.map(y=>y.value));l.push(n&&p.compare(g,n.facet(p))?n.facet(p):g)}else{for(let g of f)g.type==0?(a[g.id]=l.length<<1|1,l.push(g.value)):(a[g.id]=c.length<<1,c.push(y=>g.dynamicSlot(y)));a[p.id]=c.length<<1,c.push(g=>Gw(g,p,f))}}let h=c.map(d=>d(a));return new $o(e,o,h,a,l,s)}}function Jw(r,e,t){let n=[[],[],[],[],[]],i=new Map;function s(o,a){let l=i.get(o);if(l!=null){if(l<=a)return;let c=n[l].indexOf(o);c>-1&&n[l].splice(c,1),o instanceof zc&&t.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let c of o)s(c,a);else if(o instanceof zc){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;t.set(o.compartment,c),s(c,a)}else if(o instanceof n0)s(o.inner,o.prec);else if(o instanceof Fe)n[a].push(o),o.provides&&s(o.provides,a);else if(o instanceof qo)n[a].push(o),o.facet.extensions&&s(o.facet.extensions,hr.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,a)}}return s(r,hr.default),n.reduce((o,a)=>o.concat(a))}function Zi(r,e){if(e&1)return 2;let t=e>>1,n=r.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;r.status[t]=4;let i=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|i}function Uo(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const r0=V.define(),Yc=V.define({combine:r=>r.some(e=>e),static:!0}),i0=V.define({combine:r=>r.length?r[0]:void 0,static:!0}),s0=V.define(),o0=V.define(),a0=V.define(),l0=V.define({combine:r=>r.length?r[0]:!1});class Xt{constructor(e,t){this.type=e,this.value=t}static define(){return new ek}}class ek{of(e){return new Xt(this,e)}}class tk{constructor(e){this.map=e}of(e){return new Z(this,e)}}class Z{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new Z(this.type,t)}is(e){return this.type==e}static define(e={}){return new tk(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let s=i.map(t);s&&n.push(s)}return n}}Z.reconfigure=Z.define(),Z.appendConfig=Z.define();class Ae{constructor(e,t,n,i,s,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,n&&e0(n,t.newLength),s.some(a=>a.type==Ae.time)||(this.annotations=s.concat(Ae.time.of(Date.now())))}static create(e,t,n,i,s,o){return new Ae(e,t,n,i,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Ae.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Ae.time=Xt.define(),Ae.userEvent=Xt.define(),Ae.addToHistory=Xt.define(),Ae.remote=Xt.define();function nk(r,e){let t=[];for(let n=0,i=0;;){let s,o;if(n<r.length&&(i==e.length||e[i]>=r[n]))s=r[n++],o=r[n++];else if(i<e.length)s=e[i++],o=e[i++];else return t;!t.length||t[t.length-1]<s?t.push(s,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function c0(r,e,t){var n;let i,s,o;return t?(i=e.changes,s=Ee.empty(e.changes.length),o=r.changes.compose(e.changes)):(i=e.changes.map(r.changes),s=r.changes.mapDesc(e.changes,!0),o=r.changes.compose(i)),{changes:o,selection:e.selection?e.selection.map(s):(n=r.selection)===null||n===void 0?void 0:n.map(i),effects:Z.mapEffects(r.effects,i).concat(Z.mapEffects(e.effects,s)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function $c(r,e,t){let n=e.selection,i=Ur(e.annotations);return e.userEvent&&(i=i.concat(Ae.userEvent.of(e.userEvent))),{changes:e.changes instanceof Ee?e.changes:Ee.of(e.changes||[],t,r.facet(i0)),selection:n&&(n instanceof M?n:M.single(n.anchor,n.head)),effects:Ur(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function u0(r,e,t){let n=$c(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let o=!!e[s].sequential;n=c0(n,$c(r,e[s],o?n.changes.newLength:r.doc.length),o)}let i=Ae.create(r,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return ik(t?rk(i):i)}function rk(r){let e=r.startState,t=!0;for(let i of e.facet(s0)){let s=i(r);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:nk(t,s))}if(t!==!0){let i,s;if(t===!1)s=r.changes.invertedDesc,i=Ee.empty(e.doc.length);else{let o=r.changes.filter(t);i=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}r=Ae.create(e,i,r.selection&&r.selection.map(s),Z.mapEffects(r.effects,s),r.annotations,r.scrollIntoView)}let n=e.facet(o0);for(let i=n.length-1;i>=0;i--){let s=n[i](r);s instanceof Ae?r=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Ae?r=s[0]:r=u0(e,Ur(s),!1)}return r}function ik(r){let e=r.startState,t=e.facet(a0),n=r;for(let i=t.length-1;i>=0;i--){let s=t[i](r);s&&Object.keys(s).length&&(n=c0(n,$c(e,s,r.changes.newLength),!0))}return n==r?r:Ae.create(e,r.changes,r.selection,n.effects,n.annotations,n.scrollIntoView)}const sk=[];function Ur(r){return r==null?sk:Array.isArray(r)?r:[r]}var ve=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(ve||(ve={}));const ok=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Uc;try{Uc=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ak(r){if(Uc)return Uc.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||ok.test(t)))return!0}return!1}function lk(r){return e=>{if(!/\S/.test(e))return ve.Space;if(ak(e))return ve.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return ve.Word;return ve.Other}}class J{constructor(e,t,n,i,s,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)Zi(this,a<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return Zi(this,n),Uo(this,n)}update(...e){return u0(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:i}=t;for(let a of e.effects)a.is(Yo.reconfigure)?(t&&(i=new Map,t.compartments.forEach((l,c)=>i.set(c,l)),t=null),i.set(a.value.compartment,a.value.extension)):a.is(Z.reconfigure)?(t=null,n=a.value):a.is(Z.appendConfig)&&(t=null,n=Ur(n).concat(a.value));let s;t?s=e.startState.values.slice():(t=$o.resolve(n,i,this),s=new J(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let o=e.startState.facet(Yc)?e.newSelection:e.newSelection.asSingle();new J(t,e.newDoc,o,s,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:M.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),s=[n.range],o=Ur(n.effects);for(let a=1;a<t.ranges.length;a++){let l=e(t.ranges[a]),c=this.changes(l.changes),u=c.map(i);for(let d=0;d<a;d++)s[d]=s[d].map(u);let h=i.mapDesc(c,!0);s.push(l.range.map(h)),i=i.compose(u),o=Z.mapEffects(o,u).concat(Z.mapEffects(Ur(l.effects),h))}return{changes:i,selection:M.create(s,t.mainIndex),effects:o}}changes(e=[]){return e instanceof Ee?e:Ee.of(e,this.doc.length,this.facet(J.lineSeparator))}toText(e){return ne.of(e.split(this.facet(J.lineSeparator)||Vc))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Zi(this,t),Uo(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let i=e[n];i instanceof Fe&&this.config.address[i.id]!=null&&(t[n]=i.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(n){for(let s in n)if(Object.prototype.hasOwnProperty.call(e,s)){let o=n[s],a=e[s];i.push(o.init(l=>o.spec.fromJSON(a,l)))}}return J.create({doc:e.doc,selection:M.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=$o.resolve(e.extensions||[],new Map),n=e.doc instanceof ne?e.doc:ne.of((e.doc||"").split(t.staticFacet(J.lineSeparator)||Vc)),i=e.selection?e.selection instanceof M?e.selection:M.single(e.selection.anchor,e.selection.head):M.single(0);return e0(i,n.length),t.staticFacet(Yc)||(i=i.asSingle()),new J(t,n,i,t.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(J.tabSize)}get lineBreak(){return this.facet(J.lineSeparator)||`
|
|
579
|
+
`}get readOnly(){return this.facet(l0)}phrase(e,...t){for(let n of this.facet(J.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,i)=>{if(i=="$")return"$";let s=+(i||1);return!s||s>t.length?n:t[s-1]})),e}languageDataAt(e,t,n=-1){let i=[];for(let s of this.facet(r0))for(let o of s(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return lk(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let l=Ve(t,o,!1);if(s(t.slice(l,o))!=ve.Word)break;o=l}for(;a<i;){let l=Ve(t,a);if(s(t.slice(a,l))!=ve.Word)break;a=l}return o==a?null:M.range(o+n,a+n)}}J.allowMultipleSelections=Yc,J.tabSize=V.define({combine:r=>r.length?r[0]:4}),J.lineSeparator=i0,J.readOnly=l0,J.phrases=V.define({compare(r,e){let t=Object.keys(r),n=Object.keys(e);return t.length==n.length&&t.every(i=>r[i]==e[i])}}),J.languageData=r0,J.changeFilter=s0,J.transactionFilter=o0,J.transactionExtender=a0,Yo.reconfigure=Z.define();function Kt(r,e,t={}){let n={};for(let i of r)for(let s of Object.keys(i)){let o=i[s],a=n[s];if(a===void 0)n[s]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,s))n[s]=t[s](a,o);else throw new Error("Config merge conflict for field "+s)}for(let i in e)n[i]===void 0&&(n[i]=e[i]);return n}class fr{eq(e){return this==e}range(e,t=e){return Zc.create(e,t,this)}}fr.prototype.startSide=fr.prototype.endSide=0,fr.prototype.point=!1,fr.prototype.mapMode=Xe.TrackDel;let Zc=class f2{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new f2(e,t,n)}};function Xc(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}class Kc{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let s=n?this.to:this.from;for(let o=i,a=s.length;;){if(o==a)return o;let l=o+a>>1,c=s[l]-e||(n?this.value[l].endSide:this.value[l].startSide)-t;if(l==o)return c>=0?o:a;c>=0?a=l:o=l+1}}between(e,t,n,i){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,s);s<o;s++)if(i(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let n=[],i=[],s=[],o=-1,a=-1;for(let l=0;l<this.value.length;l++){let c=this.value[l],u=this.from[l]+e,h=this.to[l]+e,d,f;if(u==h){let p=t.mapPos(u,c.startSide,c.mapMode);if(p==null||(d=f=p,c.startSide!=c.endSide&&(f=t.mapPos(u,c.endSide),f<d)))continue}else if(d=t.mapPos(u,c.startSide),f=t.mapPos(h,c.endSide),d>f||d==f&&c.startSide>0&&c.endSide<=0)continue;(f-d||c.endSide-c.startSide)<0||(o<0&&(o=d),c.point&&(a=Math.max(a,f-d)),n.push(c),i.push(d-o),s.push(f-o))}return{mapped:n.length?new Kc(i,s,n,a):null,pos:o}}}class re{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new re(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(n&&(t=t.slice().sort(Xc)),this.isEmpty)return t.length?re.of(t):this;let a=new d0(this,null,-1).goto(0),l=0,c=[],u=new gn;for(;a.value||l<t.length;)if(l<t.length&&(a.from-t[l].from||a.startSide-t[l].value.startSide)>=0){let h=t[l++];u.addInner(h.from,h.to,h.value)||c.push(h)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==t.length||this.chunkEnd(a.chunkIndex)<t[l].from)&&(!o||i>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||i>a.to||s<a.from||o(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||c.push(Zc.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!c.length?re.empty:this.nextLayer.update({add:c,filter:o,filterFrom:i,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],i=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],l=this.chunk[o],c=e.touchesRange(a,a+l.length);if(c===!1)i=Math.max(i,l.maxPoint),t.push(l),n.push(e.mapPos(a));else if(c===!0){let{mapped:u,pos:h}=l.map(a,e);u&&(i=Math.max(i,u.maxPoint),t.push(u),n.push(h))}}let s=this.nextLayer.map(e);return t.length==0?s:new re(n,t,s||re.empty,i)}between(e,t,n){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],o=this.chunk[i];if(t>=s&&e<=s+o.length&&o.between(s,e-s,t-s,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return Xi.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Xi.from(e).goto(t)}static compare(e,t,n,i,s=-1){let o=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),a=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=h0(o,a,n),c=new Ki(o,l,s),u=new Ki(a,l,s);n.iterGaps((h,d,f)=>f0(c,h,u,d,f,i)),n.empty&&n.length==0&&f0(c,0,u,0,0,i)}static eq(e,t,n=0,i){i==null&&(i=999999999);let s=e.filter(u=>!u.isEmpty&&t.indexOf(u)<0),o=t.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let a=h0(s,o),l=new Ki(s,a,0).goto(n),c=new Ki(o,a,0).goto(n);for(;;){if(l.to!=c.to||!Jc(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>i)return!0;l.next(),c.next()}}static spans(e,t,n,i,s=-1){let o=new Ki(e,null,s).goto(t),a=t,l=o.openStart;for(;;){let c=Math.min(o.to,n);if(o.point){let u=o.activeForPoint(o.to),h=o.pointFrom<t?u.length+1:o.point.startSide<0?u.length:Math.min(u.length,l);i.point(a,c,o.point,u,h,o.pointRank),l=Math.min(o.openEnd(c),u.length)}else c>a&&(i.span(a,c,o.active,l),l=o.openEnd(c));if(o.to>n)return l+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new gn;for(let i of e instanceof Zc?[e]:t?ck(e):e)n.add(i.from,i.to,i.value);return n.finish()}static join(e){if(!e.length)return re.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let i=e[n];i!=re.empty;i=i.nextLayer)t=new re(i.chunkPos,i.chunk,t,Math.max(i.maxPoint,t.maxPoint));return t}}re.empty=new re([],[],null,-1);function ck(r){if(r.length>1)for(let e=r[0],t=1;t<r.length;t++){let n=r[t];if(Xc(e,n)>0)return r.slice().sort(Xc);e=n}return r}re.empty.nextLayer=re.empty;class gn{finishChunk(e){this.chunks.push(new Kc(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new gn)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(re.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=re.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function h0(r,e,t){let n=new Map;for(let s of r)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&n.set(s.chunk[o],s.chunkPos[o]);let i=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let a=n.get(s.chunk[o]);a!=null&&(t?t.mapPos(a):a)==s.chunkPos[o]&&!(t!=null&&t.touchesRange(a,a+s.chunk[o].length))&&i.add(s.chunk[o])}return i}class d0{constructor(e,t,n,i=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Xi{constructor(e){this.heap=e}static from(e,t=null,n=-1){let i=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&i.push(new d0(o,t,n,s));return i.length==1?i[0]:new Xi(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)Gc(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)Gc(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Gc(this.heap,0)}}}function Gc(r,e){for(let t=r[e];;){let n=(e<<1)+1;if(n>=r.length)break;let i=r[n];if(n+1<r.length&&i.compare(r[n+1])>=0&&(i=r[n+1],n++),t.compare(i)<0)break;r[n]=t,r[e]=i,e=n}}class Ki{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Xi.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Zo(this.active,e),Zo(this.activeTo,e),Zo(this.activeRank,e),this.minActive=p0(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:s}=this.cursor;for(;t<this.activeRank.length&&(s-this.activeRank[t]||i-this.activeTo[t])>0;)t++;Xo(this.active,t,n),Xo(this.activeTo,t,i),Xo(this.activeRank,t,s),e&&Xo(e,t,this.cursor.from),this.minActive=p0(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&Zo(n,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let i=n.length-1;i>=0&&n[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function f0(r,e,t,n,i,s){r.goto(e),t.goto(n);let o=n+i,a=n,l=n-e;for(;;){let c=r.to+l-t.to,u=c||r.endSide-t.endSide,h=u<0?r.to+l:t.to,d=Math.min(h,o);if(r.point||t.point?r.point&&t.point&&(r.point==t.point||r.point.eq(t.point))&&Jc(r.activeForPoint(r.to),t.activeForPoint(t.to))||s.comparePoint(a,d,r.point,t.point):d>a&&!Jc(r.active,t.active)&&s.compareRange(a,d,r.active,t.active),h>o)break;(c||r.openEnd!=t.openEnd)&&s.boundChange&&s.boundChange(h),a=h,u<=0&&r.next(),u>=0&&t.next()}}function Jc(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!=e[t]&&!r[t].eq(e[t]))return!1;return!0}function Zo(r,e){for(let t=e,n=r.length-1;t<n;t++)r[t]=r[t+1];r.pop()}function Xo(r,e,t){for(let n=r.length-1;n>=e;n--)r[n+1]=r[n];r[e]=t}function p0(r,e){let t=-1,n=1e9;for(let i=0;i<e.length;i++)(e[i]-n||r[i].endSide-r[t].endSide)<0&&(t=i,n=e[i]);return t}function Zr(r,e,t=r.length){let n=0;for(let i=0;i<t&&i<r.length;)r.charCodeAt(i)==9?(n+=e-n%e,i++):(n++,i=Ve(r,i));return n}function eu(r,e,t,n){for(let i=0,s=0;;){if(s>=e)return i;if(i==r.length)break;s+=r.charCodeAt(i)==9?t-s%t:1,i=Ve(r,i)}return n===!0?-1:r.length}const tu="ͼ",m0=typeof Symbol>"u"?"__"+tu:Symbol.for(tu),nu=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),g0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Fn{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,a,l,c){let u=[],h=/^@(\w+)\b/.exec(o[0]),d=h&&h[1]=="keyframes";if(h&&a==null)return l.push(o[0]+";");for(let f in a){let p=a[f];if(/&/.test(f))s(f.split(/,\s*/).map(m=>o.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),p,l);else if(p&&typeof p=="object"){if(!h)throw new RangeError("The value of a property ("+f+") should be a primitive value.");s(i(f),p,u,d)}else p!=null&&u.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";")}(u.length||d)&&l.push((n&&!h&&!c?o.map(n):o).join(", ")+" {"+u.join(" ")+"}")}for(let o in e)s(i(o),e[o],this.rules)}getRules(){return this.rules.join(`
|
|
580
|
+
`)}static newName(){let e=g0[m0]||1;return g0[m0]=e+1,tu+e.toString(36)}static mount(e,t,n){let i=e[nu],s=n&&n.nonce;i?s&&i.setNonce(s):i=new uk(e,s),i.mount(Array.isArray(t)?t:[t],e)}}let y0=new Map;class uk{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let s=y0.get(n);if(s)return e[nu]=s;this.sheet=new i.CSSStyleSheet,y0.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[nu]=this}mount(e,t){let n=this.sheet,i=0,s=0;for(let o=0;o<e.length;o++){let a=e[o],l=this.modules.indexOf(a);if(l<s&&l>-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,a),n)for(let c=0;c<a.rules.length;c++)n.insertRule(a.rules[c],i++)}else{for(;s<l;)i+=this.modules[s++].rules.length;i+=a.rules.length,s++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+`
|
|
581
|
+
`;this.styleTag.textContent=o;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var Qn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Gi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},hk=typeof navigator<"u"&&/Mac/.test(navigator.platform),dk=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Qe=0;Qe<10;Qe++)Qn[48+Qe]=Qn[96+Qe]=String(Qe);for(var Qe=1;Qe<=24;Qe++)Qn[Qe+111]="F"+Qe;for(var Qe=65;Qe<=90;Qe++)Qn[Qe]=String.fromCharCode(Qe+32),Gi[Qe]=String.fromCharCode(Qe);for(var ru in Qn)Gi.hasOwnProperty(ru)||(Gi[ru]=Qn[ru]);function fk(r){var e=hk&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||dk&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Gi:Qn)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Ji(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function iu(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function Ko(r,e){if(!e.anchorNode)return!1;try{return iu(r,e.anchorNode)}catch{return!1}}function Xr(r){return r.nodeType==3?mr(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function es(r,e,t,n){return t?b0(r,e,t,n,-1)||b0(r,e,t,n,1):!1}function pr(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Go(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function b0(r,e,t,n,i){for(;;){if(r==t&&e==n)return!0;if(e==(i<0?0:Gt(r))){if(r.nodeName=="DIV")return!1;let s=r.parentNode;if(!s||s.nodeType!=1)return!1;e=pr(r)+(i<0?0:1),r=s}else if(r.nodeType==1){if(r=r.childNodes[e+(i<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=i<0?Gt(r):0}else return!1}}function Gt(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function ts(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function pk(r){let e=r.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function v0(r,e){let t=e.width/r.offsetWidth,n=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-r.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function mk(r,e,t,n,i,s,o,a){let l=r.ownerDocument,c=l.defaultView||window;for(let u=r,h=!1;u&&!h;)if(u.nodeType==1){let d,f=u==l.body,p=1,m=1;if(f)d=pk(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let C=u.getBoundingClientRect();({scaleX:p,scaleY:m}=v0(u,C)),d={left:C.left,right:C.left+u.clientWidth*p,top:C.top,bottom:C.top+u.clientHeight*m}}let g=0,y=0;if(i=="nearest")e.top<d.top?(y=e.top-(d.top+o),t>0&&e.bottom>d.bottom+y&&(y=e.bottom-d.bottom+o)):e.bottom>d.bottom&&(y=e.bottom-d.bottom+o,t<0&&e.top-y<d.top&&(y=e.top-(d.top+o)));else{let C=e.bottom-e.top,w=d.bottom-d.top;y=(i=="center"&&C<=w?e.top+C/2-w/2:i=="start"||i=="center"&&t<0?e.top-o:e.bottom-w+o)-d.top}if(n=="nearest"?e.left<d.left?(g=e.left-(d.left+s),t>0&&e.right>d.right+g&&(g=e.right-d.right+s)):e.right>d.right&&(g=e.right-d.right+s,t<0&&e.left<d.left+g&&(g=e.left-(d.left+s))):g=(n=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:n=="start"==a?e.left-s:e.right-(d.right-d.left)+s)-d.left,g||y)if(f)c.scrollBy(g,y);else{let C=0,w=0;if(y){let x=u.scrollTop;u.scrollTop+=y/m,w=(u.scrollTop-x)*m}if(g){let x=u.scrollLeft;u.scrollLeft+=g/p,C=(u.scrollLeft-x)*p}e={left:e.left-C,top:e.top-w,right:e.right-C,bottom:e.bottom-w},C&&Math.abs(C-g)<1&&(n="nearest"),w&&Math.abs(w-y)<1&&(i="nearest")}if(f)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function gk(r){let e=r.ownerDocument,t,n;for(let i=r.parentNode;i&&!(i==e.body||t&&n);)if(i.nodeType==1)!n&&i.scrollHeight>i.clientHeight&&(n=i),!t&&i.scrollWidth>i.clientWidth&&(t=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:t,y:n}}class yk{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Gt(t):0),n,Math.min(e.focusOffset,n?Gt(n):0))}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let Kr=null;function C0(r){if(r.setActive)return r.setActive();if(Kr)return r.focus(Kr);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(Kr==null?{get preventScroll(){return Kr={preventScroll:!0},!0}}:void 0),!Kr){Kr=!1;for(let t=0;t<e.length;){let n=e[t++],i=e[t++],s=e[t++];n.scrollTop!=i&&(n.scrollTop=i),n.scrollLeft!=s&&(n.scrollLeft=s)}}}let w0;function mr(r,e,t=e){let n=w0||(w0=document.createRange());return n.setEnd(r,t),n.setStart(r,e),n}function Gr(r,e,t,n){let i={key:e,code:e,keyCode:t,which:t,cancelable:!0};n&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=n);let s=new KeyboardEvent("keydown",i);s.synthetic=!0,r.dispatchEvent(s);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,r.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function bk(r){for(;r;){if(r&&(r.nodeType==9||r.nodeType==11&&r.host))return r;r=r.assignedSlot||r.parentNode}return null}function k0(r){for(;r.attributes.length;)r.removeAttributeNode(r.attributes[0])}function vk(r,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,Gt(t));;)if(n){if(t.nodeType!=1)return!1;let i=t.childNodes[n-1];i.contentEditable=="false"?n--:(t=i,n=Gt(t))}else{if(t==r)return!0;n=pr(t),t=t.parentNode}}function x0(r){return r.scrollTop>Math.max(1,r.scrollHeight-r.clientHeight-4)}function S0(r,e){for(let t=r,n=e;;){if(t.nodeType==3&&n>0)return{node:t,offset:n};if(t.nodeType==1&&n>0){if(t.contentEditable=="false")return null;t=t.childNodes[n-1],n=Gt(t)}else if(t.parentNode&&!Go(t))n=pr(t),t=t.parentNode;else return null}}function O0(r,e){for(let t=r,n=e;;){if(t.nodeType==3&&n<t.nodeValue.length)return{node:t,offset:n};if(t.nodeType==1&&n<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[n],n=0}else if(t.parentNode&&!Go(t))n=pr(t)+1,t=t.parentNode;else return null}}class Ye{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new Ye(e.parentNode,pr(e),t)}static after(e,t){return new Ye(e.parentNode,pr(e)+1,t)}}const su=[];class fe{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let n=this.dom,i=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=i?i.nextSibling:n.firstChild)){let a=fe.get(s);(!a||!a.parent&&a.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(e,t),o.flags&=-8}if(s=i?i.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&s!=o.dom&&(t.written=!0),o.dom.parentNode==n)for(;s&&s!=o.dom;)s=_0(s);else n.insertBefore(o.dom,s);i=o.dom}for(s=i?i.nextSibling:n.firstChild,s&&t&&t.node==n&&(t.written=!0);s;)s=_0(s)}else if(this.flags&1)for(let n of this.children)n.flags&7&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let i=Gt(e)==0?0:t==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;i==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?i=-1:i=1),e=s}i<0?n=e:n=e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!fe.get(n);)n=n.nextSibling;if(!n)return this.length;for(let i=0,s=0;;i++){let o=this.children[i];if(o.dom==n)return s;s+=o.length+o.breakAfter}}domBoundsAround(e,t,n=0){let i=-1,s=-1,o=-1,a=-1;for(let l=0,c=n,u=n;l<this.children.length;l++){let h=this.children[l],d=c+h.length;if(c<e&&d>t)return h.domBoundsAround(e,t,c);if(d>=e&&i==-1&&(i=l,s=c),c>t&&h.dom.parentNode==this.dom){o=l,a=u;break}u=d,c=d+h.breakAfter}return{from:s,to:a<0?n+this.length:a,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=su){this.markDirty();for(let i=e;i<t;i++){let s=this.children[i];s.parent==this&&n.indexOf(s)<0&&s.destroy()}n.length<250?this.children.splice(e,t-e,...n):this.children=[].concat(this.children.slice(0,e),n,this.children.slice(t));for(let i=0;i<n.length;i++)n[i].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new D0(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,i,s,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}fe.prototype.breakAfter=0;function _0(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class D0{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function M0(r,e,t,n,i,s,o,a,l){let{children:c}=r,u=c.length?c[e]:null,h=s.length?s[s.length-1]:null,d=h?h.breakAfter:o;if(!(e==n&&u&&!o&&!d&&s.length<2&&u.merge(t,i,s.length?h:null,t==0,a,l))){if(n<c.length){let f=c[n];f&&(i<f.length||f.breakAfter&&(h!=null&&h.breakAfter))?(e==n&&(f=f.split(i),i=0),!d&&h&&f.merge(0,i,h,!0,0,l)?s[s.length-1]=f:((i||f.children.length&&!f.children[0].length)&&f.merge(0,i,null,!1,0,l),s.push(f))):f!=null&&f.breakAfter&&(h?h.breakAfter=1:o=1),n++}for(u&&(u.breakAfter=o,t>0&&(!o&&s.length&&u.merge(t,u.length,s[0],!1,a,0)?u.breakAfter=s.shift().breakAfter:(t<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(t,u.length,null,!1,a,0),e++));e<n&&s.length;)if(c[n-1].become(s[s.length-1]))n--,s.pop(),l=s.length?0:a;else if(c[e].become(s[0]))e++,s.shift(),a=s.length?0:l;else break;!s.length&&e&&n<c.length&&!c[e-1].breakAfter&&c[n].merge(0,0,c[e-1],!1,a,l)&&e--,(e<n||s.length)&&r.replaceChildren(e,n,s)}}function P0(r,e,t,n,i,s){let o=r.childCursor(),{i:a,off:l}=o.findPos(t,1),{i:c,off:u}=o.findPos(e,-1),h=e-t;for(let d of n)h+=d.length;r.length+=h,M0(r,c,u,a,l,n,0,i,s)}let rt=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},ou=typeof document<"u"?document:{documentElement:{style:{}}};const au=/Edge\/(\d+)/.exec(rt.userAgent),T0=/MSIE \d/.test(rt.userAgent),lu=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rt.userAgent),Jo=!!(T0||lu||au),E0=!Jo&&/gecko\/(\d+)/i.test(rt.userAgent),cu=!Jo&&/Chrome\/(\d+)/.exec(rt.userAgent),A0="webkitFontSmoothing"in ou.documentElement.style,R0=!Jo&&/Apple Computer/.test(rt.vendor),L0=R0&&(/Mobile\/\w+/.test(rt.userAgent)||rt.maxTouchPoints>2);var F={mac:L0||/Mac/.test(rt.platform),windows:/Win/.test(rt.platform),linux:/Linux|X11/.test(rt.platform),ie:Jo,ie_version:T0?ou.documentMode||6:lu?+lu[1]:au?+au[1]:0,gecko:E0,gecko_version:E0?+(/Firefox\/(\d+)/.exec(rt.userAgent)||[0,0])[1]:0,chrome:!!cu,chrome_version:cu?+cu[1]:0,ios:L0,android:/Android\b/.test(rt.userAgent),webkit:A0,safari:R0,webkit_version:A0?+(/\bAppleWebKit\/(\d+)/.exec(rt.userAgent)||[0,0])[1]:0,tabSize:ou.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Ck=256;class Tt extends fe{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,n){return this.flags&8||n&&(!(n instanceof Tt)||this.length-(t-e)+n.length>Ck||n.flags&8)?!1:(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Tt(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new Ye(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return wk(this.dom,e,t)}}class yn extends fe{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let i of t)i.setParent(this)}setAttrs(e){if(k0(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,i,s,o){return n&&(!(n instanceof yn&&n.mark.eq(this.mark))||e&&s<=0||t<this.length&&o<=0)?!1:(P0(this,e,t,n?n.children.slice():[],s-1,o-1),this.markDirty(),!0)}split(e){let t=[],n=0,i=-1,s=0;for(let a of this.children){let l=n+a.length;l>e&&t.push(n<e?a.split(e-n):a),i<0&&n>=e&&(i=s),n=l,s++}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new yn(this.mark,t,o)}domAtPos(e){return N0(this,e)}coordsAt(e,t){return I0(this,e,t)}}function wk(r,e,t){let n=r.nodeValue.length;e>n&&(e=n);let i=e,s=e,o=0;e==0&&t<0||e==n&&t>=0?F.chrome||F.gecko||(e?(i--,o=1):s<n&&(s++,o=-1)):t<0?i--:s<n&&s++;let a=mr(r,i,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:t>=0)?0:a.length-1];return F.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,c=>c.width)||l),o?ts(l,o<0):l||null}class Wn extends fe{static create(e,t,n){return new Wn(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=Wn.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,i,s,o){return n&&(!(n instanceof Wn)||!this.widget.compare(n.widget)||e>0&&s<=0||t<this.length&&o<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e instanceof Wn&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return ne.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,i=this.posAtStart;return n?n.slice(i,i+this.length):ne.empty}domAtPos(e){return(this.length?e==0:this.side>0)?Ye.before(this.dom):Ye.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let i=this.dom.getClientRects(),s=null;if(!i.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?i.length-1:0;s=i[a],!(e>0?a==0:a==i.length-1||s.top<s.bottom);a+=o?-1:1);return ts(s,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Jr extends fe{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Jr&&e.side==this.side}split(){return new Jr(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?Ye.before(this.dom):Ye.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ne.empty}get isHidden(){return!0}}Tt.prototype.children=Wn.prototype.children=Jr.prototype.children=su;function N0(r,e){let t=r.dom,{children:n}=r,i=0;for(let s=0;i<n.length;i++){let o=n[i],a=s+o.length;if(!(a==s&&o.getSide()<=0)){if(e>s&&e<a&&o.dom.parentNode==t)return o.domAtPos(e-s);if(e<=s)break;s=a}}for(let s=i;s>0;s--){let o=n[s-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let s=i;s<n.length;s++){let o=n[s];if(o.dom.parentNode==t)return o.domAtPos(0)}return new Ye(t,0)}function B0(r,e,t){let n,{children:i}=r;t>0&&e instanceof yn&&i.length&&(n=i[i.length-1])instanceof yn&&n.mark.eq(e.mark)?B0(n,e.children[0],t-1):(i.push(e),e.setParent(r)),r.length+=e.length}function I0(r,e,t){let n=null,i=-1,s=null,o=-1;function a(c,u){for(let h=0,d=0;h<c.children.length&&d<=u;h++){let f=c.children[h],p=d+f.length;p>=u&&(f.children.length?a(f,u-d):(!s||s.isHidden&&(t>0||xk(s,f)))&&(p>u||d==p&&f.getSide()>0)?(s=f,o=u-d):(d<u||d==p&&f.getSide()<0&&!f.isHidden)&&(n=f,i=u-d)),d=p}}a(r,e);let l=(t<0?n:s)||n||s;return l?l.coordsAt(Math.max(0,l==n?i:o),t):kk(r)}function kk(r){let e=r.dom.lastChild;if(!e)return r.dom.getBoundingClientRect();let t=Xr(e);return t[t.length-1]||null}function xk(r,e){let t=r.coordsAt(0,1),n=e.coordsAt(0,1);return t&&n&&n.top<t.bottom}function uu(r,e){for(let t in r)t=="class"&&e.class?e.class+=" "+r.class:t=="style"&&e.style?e.style+=";"+r.style:e[t]=r[t];return e}const H0=Object.create(null);function ea(r,e,t){if(r==e)return!0;r||(r=H0),e||(e=H0);let n=Object.keys(r),i=Object.keys(e);if(n.length-(t&&n.indexOf(t)>-1?1:0)!=i.length-(t&&i.indexOf(t)>-1?1:0))return!1;for(let s of n)if(s!=t&&(i.indexOf(s)==-1||r[s]!==e[s]))return!1;return!0}function hu(r,e,t){let n=!1;if(e)for(let i in e)t&&i in t||(n=!0,i=="style"?r.style.cssText="":r.removeAttribute(i));if(t)for(let i in t)e&&e[i]==t[i]||(n=!0,i=="style"?r.style.cssText=t[i]:r.setAttribute(i,t[i]));return n}function Sk(r){let e=Object.create(null);for(let t=0;t<r.attributes.length;t++){let n=r.attributes[t];e[n.name]=n.value}return e}class bn{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Ke=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(Ke||(Ke={}));class z extends fr{constructor(e,t,n,i){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=i}get heightRelevant(){return!1}static mark(e){return new ns(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new jn(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,i;if(e.isBlockGap)n=-5e8,i=4e8;else{let{start:s,end:o}=V0(e,t);n=(s?t?-3e8:-1:5e8)-1,i=(o?t?2e8:1:-6e8)+1}return new jn(e,n,i,t,e.widget||null,!0)}static line(e){return new rs(e)}static set(e,t=!1){return re.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}z.none=re.empty;class ns extends z{constructor(e){let{start:t,end:n}=V0(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof ns&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((n=e.attrs)===null||n===void 0?void 0:n.class))&&ea(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}ns.prototype.point=!1;class rs extends z{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof rs&&this.spec.class==e.spec.class&&ea(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}rs.prototype.mapMode=Xe.TrackBefore,rs.prototype.point=!0;class jn extends z{constructor(e,t,n,i,s,o){super(t,n,s,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?Xe.TrackBefore:Xe.TrackAfter:Xe.TrackDel}get type(){return this.startSide!=this.endSide?Ke.WidgetRange:this.startSide<=0?Ke.WidgetBefore:Ke.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof jn&&Ok(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}jn.prototype.point=!0;function V0(r,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=r;return t==null&&(t=r.inclusive),n==null&&(n=r.inclusive),{start:t??e,end:n??e}}function Ok(r,e){return r==e||!!(r&&e&&r.compare(e))}function ta(r,e,t,n=0){let i=t.length-1;i>=0&&t[i]+n>=r?t[i]=Math.max(t[i],e):t.push(r,e)}class Pe extends fe{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,i,s,o){if(n){if(!(n instanceof Pe))return!1;this.dom||n.transferDOM(this)}return i&&this.setDeco(n?n.attrs:null),P0(this,e,t,n?n.children.slice():[],s,o),!0}split(e){let t=new Pe;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:n,off:i}=this.childPos(e);i&&(t.append(this.children[n].split(i),0),this.children[n].merge(i,this.children[n].length,null,!1,0,0),n++);for(let s=n;s<this.children.length;s++)t.append(this.children[s],0);for(;n>0&&this.children[n-1].length==0;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){ea(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){B0(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=uu(t,this.attrs||{})),n&&(this.attrs=uu({class:n},this.attrs||{}))}domAtPos(e){return N0(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?this.flags&4&&(k0(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(hu(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let i=this.dom.lastChild;for(;i&&fe.get(i)instanceof yn;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((n=fe.get(i))===null||n===void 0?void 0:n.isEditable)==!1&&(!F.ios||!this.children.some(s=>s instanceof Tt))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let n of this.children){if(!(n instanceof Tt)||/[^ -~]/.test(n.text))return null;let i=Xr(n.dom);if(i.length!=1)return null;e+=i[0].width,t=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=I0(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:i}=this.parent.view.viewState,s=n.bottom-n.top;if(Math.abs(s-i.lineHeight)<2&&i.textHeight<s){let o=(s-i.textHeight)/2;return{top:n.top+o,bottom:n.bottom-o,left:n.left,right:n.left}}}return n}become(e){return e instanceof Pe&&this.children.length==0&&e.children.length==0&&ea(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,t){for(let n=0,i=0;n<e.children.length;n++){let s=e.children[n],o=i+s.length;if(o>=t){if(s instanceof Pe)return s;if(o>t)break}i=o+s.breakAfter}return null}}class vn extends fe{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,i,s,o){return n&&(!(n instanceof vn)||!this.widget.compare(n.widget)||e>0&&s<=0||t<this.length&&o<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?Ye.before(this.dom):Ye.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new vn(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return su}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):ne.empty}domBoundsAround(){return null}become(e){return e instanceof vn&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);return n||(this.widget instanceof du?null:ts(this.dom.getBoundingClientRect(),this.length?e==0:t<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t==n?!1:e<0?t<0:n>0}}class du extends bn{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class is{constructor(e,t,n,i){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof vn&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Pe),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(na(new Jr(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof vn)&&this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(na(new Tt(this.text.slice(this.textOff,this.textOff+i)),t),n),this.atCursorPos=!0,this.textOff+=i,e-=i,n=0}}span(e,t,n,i){this.buildText(t-e,n,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,n,i,s,o){if(this.disallowBlockEffectsFor[o]&&n instanceof jn){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof jn)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new vn(n.widget||ei.block,a,n));else{let l=Wn.create(n.widget||ei.inline,a,a?0:n.startSide),c=this.atCursorPos&&!l.isEditable&&s<=i.length&&(e<t||n.startSide>0),u=!l.isEditable&&(e<t||s>i.length||n.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),c&&(h.append(na(new Jr(1),i),s),s=i.length+Math.max(0,s-i.length)),h.append(na(l,i),s),this.atCursorPos=u,this.pendingBuffer=u?e<t||s>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=s)}static build(e,t,n,i,s){let o=new is(e,t,n,s);return o.openEnd=re.spans(i,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function na(r,e){for(let t of e)r=new yn(t,[r],r.length);return r}class ei extends bn{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ei.inline=new ei("span"),ei.block=new ei("div");var ye=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(ye||(ye={}));const gr=ye.LTR,fu=ye.RTL;function F0(r){let e=[];for(let t=0;t<r.length;t++)e.push(1<<+r[t]);return e}const _k=F0("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Dk=F0("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),pu=Object.create(null),Jt=[];for(let r of["()","[]","{}"]){let e=r.charCodeAt(0),t=r.charCodeAt(1);pu[e]=t,pu[t]=-e}function Q0(r){return r<=247?_k[r]:1424<=r&&r<=1524?2:1536<=r&&r<=1785?Dk[r-1536]:1774<=r&&r<=2220?4:8192<=r&&r<=8204?256:64336<=r&&r<=65023?4:1}const Mk=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class qn{get dir(){return this.level%2?fu:gr}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,i){let s=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=t&&a.to>=t){if(a.level==n)return o;(s<0||(i!=0?i<0?a.from<t:a.to>t:e[s].level>a.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function W0(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++){let n=r[t],i=e[t];if(n.from!=i.from||n.to!=i.to||n.direction!=i.direction||!W0(n.inner,i.inner))return!1}return!0}const pe=[];function Pk(r,e,t,n,i){for(let s=0;s<=n.length;s++){let o=s?n[s-1].to:e,a=s<n.length?n[s].from:t,l=s?256:i;for(let c=o,u=l,h=l;c<a;c++){let d=Q0(r.charCodeAt(c));d==512?d=u:d==8&&h==4&&(d=16),pe[c]=d==4?2:d,d&7&&(h=d),u=d}for(let c=o,u=l,h=l;c<a;c++){let d=pe[c];if(d==128)c<a-1&&u==pe[c+1]&&u&24?d=pe[c]=u:pe[c]=256;else if(d==64){let f=c+1;for(;f<a&&pe[f]==64;)f++;let p=c&&u==8||f<t&&pe[f]==8?h==1?1:8:256;for(let m=c;m<f;m++)pe[m]=p;c=f-1}else d==8&&h==1&&(pe[c]=1);u=d,d&7&&(h=d)}}}function Tk(r,e,t,n,i){let s=i==1?2:1;for(let o=0,a=0,l=0;o<=n.length;o++){let c=o?n[o-1].to:e,u=o<n.length?n[o].from:t;for(let h=c,d,f,p;h<u;h++)if(f=pu[d=r.charCodeAt(h)])if(f<0){for(let m=a-3;m>=0;m-=3)if(Jt[m+1]==-f){let g=Jt[m+2],y=g&2?i:g&4?g&1?s:i:0;y&&(pe[h]=pe[Jt[m]]=y),a=m;break}}else{if(Jt.length==189)break;Jt[a++]=h,Jt[a++]=d,Jt[a++]=l}else if((p=pe[h])==2||p==1){let m=p==i;l=m?0:1;for(let g=a-3;g>=0;g-=3){let y=Jt[g+2];if(y&2)break;if(m)Jt[g+2]|=2;else{if(y&4)break;Jt[g+2]|=4}}}}}function Ek(r,e,t,n){for(let i=0,s=n;i<=t.length;i++){let o=i?t[i-1].to:r,a=i<t.length?t[i].from:e;for(let l=o;l<a;){let c=pe[l];if(c==256){let u=l+1;for(;;)if(u==a){if(i==t.length)break;u=t[i++].to,a=i<t.length?t[i].from:e}else if(pe[u]==256)u++;else break;let h=s==1,d=(u<e?pe[u]:n)==1,f=h==d?h?1:2:n;for(let p=u,m=i,g=m?t[m-1].to:r;p>l;)p==g&&(p=t[--m].from,g=m?t[m-1].to:r),pe[--p]=f;l=u}else s=c,l++}}}function mu(r,e,t,n,i,s,o){let a=n%2?2:1;if(n%2==i%2)for(let l=e,c=0;l<t;){let u=!0,h=!1;if(c==s.length||l<s[c].from){let m=pe[l];m!=a&&(u=!1,h=m==16)}let d=!u&&a==1?[]:null,f=u?n:n+1,p=l;e:for(;;)if(c<s.length&&p==s[c].from){if(h)break e;let m=s[c];if(!u)for(let g=m.to,y=c+1;;){if(g==t)break e;if(y<s.length&&s[y].from==g)g=s[y++].to;else{if(pe[g]==a)break e;break}}if(c++,d)d.push(m);else{m.from>l&&o.push(new qn(l,m.from,f));let g=m.direction==gr!=!(f%2);gu(r,g?n+1:n,i,m.inner,m.from,m.to,o),l=m.to}p=m.to}else{if(p==t||(u?pe[p]!=a:pe[p]==a))break;p++}d?mu(r,l,p,n+1,i,d,o):l<p&&o.push(new qn(l,p,f)),l=p}else for(let l=t,c=s.length;l>e;){let u=!0,h=!1;if(!c||l>s[c-1].to){let m=pe[l-1];m!=a&&(u=!1,h=m==16)}let d=!u&&a==1?[]:null,f=u?n:n+1,p=l;e:for(;;)if(c&&p==s[c-1].to){if(h)break e;let m=s[--c];if(!u)for(let g=m.from,y=c;;){if(g==e)break e;if(y&&s[y-1].to==g)g=s[--y].from;else{if(pe[g-1]==a)break e;break}}if(d)d.push(m);else{m.to<l&&o.push(new qn(m.to,l,f));let g=m.direction==gr!=!(f%2);gu(r,g?n+1:n,i,m.inner,m.from,m.to,o),l=m.from}p=m.from}else{if(p==e||(u?pe[p-1]!=a:pe[p-1]==a))break;p--}d?mu(r,p,l,n+1,i,d,o):p<l&&o.push(new qn(p,l,f)),l=p}}function gu(r,e,t,n,i,s,o){let a=e%2?2:1;Pk(r,i,s,n,a),Tk(r,i,s,n,a),Ek(i,s,n,a),mu(r,i,s,e,t,n,o)}function Ak(r,e,t){if(!r)return[new qn(0,0,e==fu?1:0)];if(e==gr&&!t.length&&!Mk.test(r))return j0(r.length);if(t.length)for(;r.length>pe.length;)pe[pe.length]=256;let n=[],i=e==gr?0:1;return gu(r,i,i,t,0,r.length,n),n}function j0(r){return[new qn(0,r,0)]}let q0="";function Rk(r,e,t,n,i){var s;let o=n.head-r.from,a=qn.find(e,o,(s=n.bidiLevel)!==null&&s!==void 0?s:-1,n.assoc),l=e[a],c=l.side(i,t);if(o==c){let d=a+=i?1:-1;if(d<0||d>=e.length)return null;l=e[a=d],o=l.side(!i,t),c=l.side(i,t)}let u=Ve(r.text,o,l.forward(i,t));(u<l.from||u>l.to)&&(u=c),q0=r.text.slice(Math.min(o,u),Math.max(o,u));let h=a==(i?e.length-1:0)?null:e[a+(i?1:-1)];return h&&u==c&&h.level+(i?0:1)<l.level?M.cursor(h.side(!i,t)+r.from,h.forward(i,t)?1:-1,h.level):M.cursor(u+r.from,l.forward(i,t)?-1:1,l.level)}function Lk(r,e,t){for(let n=e;n<t;n++){let i=Q0(r.charCodeAt(n));if(i==1)return gr;if(i==2||i==4)return fu}return gr}const z0=V.define(),Y0=V.define(),$0=V.define(),U0=V.define(),yu=V.define(),Z0=V.define(),X0=V.define(),bu=V.define(),vu=V.define(),K0=V.define({combine:r=>r.some(e=>e)}),G0=V.define({combine:r=>r.some(e=>e)}),J0=V.define();class ti{constructor(e,t="nearest",n="nearest",i=5,s=5,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new ti(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new ti(M.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const ra=Z.define({map:(r,e)=>r.map(e)}),e3=Z.define();function it(r,e,t){let n=r.facet(U0);n.length?n[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const Cn=V.define({combine:r=>r.length?r[0]:!0});let Nk=0;const ss=V.define();class _e{constructor(e,t,n,i,s){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=i,this.extension=s(this)}static define(e,t){const{eventHandlers:n,eventObservers:i,provide:s,decorations:o}=t||{};return new _e(Nk++,e,n,i,a=>{let l=[ss.of(a)];return o&&l.push(os.of(c=>{let u=c.plugin(a);return u?o(u):z.none})),s&&l.push(s(a)),l})}static fromClass(e,t){return _e.define(n=>new e(n),t)}}class Cu{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(it(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){it(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){it(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const t3=V.define(),wu=V.define(),os=V.define(),n3=V.define(),ku=V.define(),r3=V.define();function i3(r,e){let t=r.state.facet(r3);if(!t.length)return t;let n=t.map(s=>s instanceof Function?s(r):s),i=[];return re.spans(n,e.from,e.to,{point(){},span(s,o,a,l){let c=s-e.from,u=o-e.from,h=i;for(let d=a.length-1;d>=0;d--,l--){let f=a[d].spec.bidiIsolate,p;if(f==null&&(f=Lk(e.text,c,u)),l>0&&h.length&&(p=h[h.length-1]).to==c&&p.direction==f)p.to=u,h=p.inner;else{let m={from:c,to:u,direction:f,inner:[]};h.push(m),h=m.inner}}}}),i}const s3=V.define();function xu(r){let e=0,t=0,n=0,i=0;for(let s of r.state.facet(s3)){let o=s(r);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(n=Math.max(n,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:e,right:t,top:n,bottom:i}}const as=V.define();class Ct{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new Ct(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toA<n.fromA)break;n=n.join(i),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(t.length==0)return e;let n=[];for(let i=0,s=0,o=0,a=0;;i++){let l=i==e.length?null:e[i],c=o-a,u=l?l.fromB:1e9;for(;s<t.length&&t[s]<u;){let h=t[s],d=t[s+1],f=Math.max(a,h),p=Math.min(u,d);if(f<=p&&new Ct(f+c,p+c,f,p).addToSet(n),d>u)break;s+=2}if(!l)return n;new Ct(l.fromA,l.toA,l.fromB,l.toB).addToSet(n),o=l.toA,a=l.toB}}}class ia{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Ee.empty(this.startState.doc.length);for(let s of n)this.changes=this.changes.compose(s.changes);let i=[];this.changes.iterChangedRanges((s,o,a,l)=>i.push(new Ct(s,o,a,l))),this.changedRanges=i}static create(e,t,n){return new ia(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class o3 extends fe{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=z.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Pe],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ct(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:c,toA:u})=>u<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?i=this.domChanged.newSel.head:!Wk(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let s=i>-1?Ik(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:u}=this.hasComposition;n=new Ct(c,u,e.changes.mapPos(c,-1),e.changes.mapPos(u,1)).addToSet(n.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(F.ie||F.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),l=Fk(o,a,e.changes);return n=Ct.extendWithRanges(n,l),!(this.flags&7)&&n.length==0?!1:(this.updateInner(n,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=F.chrome||F.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||i.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof vn&&o.widget instanceof du&&s.push(o.dom);i.updateGaps(s)}updateChildren(e,t,n){let i=n?n.range.addToSet(e.slice()):e,s=this.childCursor(t);for(let o=i.length-1;;o--){let a=o>=0?i[o]:null;if(!a)break;let{fromA:l,toA:c,fromB:u,toB:h}=a,d,f,p,m;if(n&&n.range.fromB<h&&n.range.toB>u){let x=is.build(this.view.state.doc,u,n.range.fromB,this.decorations,this.dynamicDecorationMap),b=is.build(this.view.state.doc,n.range.toB,h,this.decorations,this.dynamicDecorationMap);f=x.breakAtStart,p=x.openStart,m=b.openEnd;let S=this.compositionView(n);b.breakAtStart?S.breakAfter=1:b.content.length&&S.merge(S.length,S.length,b.content[0],!1,b.openStart,0)&&(S.breakAfter=b.content[0].breakAfter,b.content.shift()),x.content.length&&S.merge(0,0,x.content[x.content.length-1],!0,0,x.openEnd)&&x.content.pop(),d=x.content.concat(S).concat(b.content)}else({content:d,breakAtStart:f,openStart:p,openEnd:m}=is.build(this.view.state.doc,u,h,this.decorations,this.dynamicDecorationMap));let{i:g,off:y}=s.findPos(c,1),{i:C,off:w}=s.findPos(l,-1);M0(this,C,w,g,y,d,f,p,m)}n&&this.fixCompositionDOM(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let n of t.effects)n.is(e3)&&(this.editContextFormatting=n.value)}compositionView(e){let t=new Tt(e.text.nodeValue);t.flags|=8;for(let{deco:i}of e.marks)t=new yn(i,[t],t.length);let n=new Pe;return n.append(t,0),n}fixCompositionDOM(e){let t=(s,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=fe.get(s);a&&a!=o&&(a.dom=null),o.setDOM(s)},n=this.childPos(e.range.fromB,1),i=this.children[n.i];t(e.line,i);for(let s=e.marks.length-1;s>=-1;s--)n=i.childPos(n.off,1),i=i.children[n.i],t(s>=0?e.marks[s].node:e.text,i)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,i=n==this.dom,s=!i&&!(this.view.state.facet(Cn)||this.dom.tabIndex>-1)&&Ko(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(i||t||s))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),c=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(F.gecko&&a.empty&&!this.hasComposition&&Bk(l)){let h=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(h,l.node.childNodes[l.offset]||null)),l=c=new Ye(h,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!es(l.node,l.offset,u.anchorNode,u.anchorOffset)||!es(c.node,c.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{F.android&&F.chrome&&this.dom.contains(u.focusNode)&&Qk(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=Ji(this.view.root);if(h)if(a.empty){if(F.gecko){let d=Hk(l.node,l.offset);if(d&&d!=3){let f=(d==1?S0:O0)(l.node,l.offset);f&&(l=new Ye(f.node,f.offset))}}h.collapse(l.node,l.offset),a.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=a.bidiLevel)}else if(h.extend){h.collapse(l.node,l.offset);try{h.extend(c.node,c.offset)}catch{}}else{let d=document.createRange();a.anchor>a.head&&([l,c]=[c,l]),d.setEnd(c.node,c.offset),d.setStart(l.node,l.offset),h.removeAllRanges(),h.addRange(d)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Ye(u.anchorNode,u.anchorOffset),this.impreciseHead=c.precise?null:new Ye(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&es(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=Ji(e.root),{anchorNode:i,anchorOffset:s}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=Pe.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let l=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let h=e.observer.selectionRange;e.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=t.from&&n.collapse(i,s)}moveToLine(e){let t=this.dom,n;if(e.node!=t)return e;for(let i=e.offset;!n&&i<t.childNodes.length;i++){let s=fe.get(t.childNodes[i]);s instanceof Pe&&(n=s.domAtPos(0))}for(let i=e.offset-1;!n&&i>=0;i--){let s=fe.get(t.childNodes[i]);s instanceof Pe&&(n=s.domAtPos(s.length))}return n?new Ye(n.node,n.offset,!0):e}nearest(e){for(let t=e;t;){let n=fe.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let i=this.children[t];if(n<i.length||i instanceof Pe)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,i=0;for(let s=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],l=s-a.breakAfter,c=l-a.length;if(l<e)break;if(c<=e&&(c<e||a.covers(-1))&&(l>e||a.covers(1))&&(!n||a instanceof Pe&&!(n instanceof Pe&&t>=0)))n=a,i=c;else if(n&&c==e&&l==e&&a instanceof vn&&Math.abs(t)<2){if(a.deco.startSide<0)break;o&&(n=null)}s=c}return n?n.coordsAt(e-i,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof Pe))return null;for(;i.children.length;){let{i:a,off:l}=i.childPos(n,1);for(;;a++){if(a==i.children.length)return null;if((i=i.children[a]).length)break}n=l}if(!(i instanceof Tt))return null;let s=Ve(i.text,n);if(s==n)return null;let o=mr(i.dom,n,s).getClientRects();for(let a=0;a<o.length;a++){let l=o[a];if(a==o.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:i}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==ye.LTR;for(let c=0,u=0;u<this.children.length;u++){let h=this.children[u],d=c+h.length;if(d>i)break;if(c>=n){let f=h.dom.getBoundingClientRect();if(t.push(f.height),o){let p=h.dom.lastChild,m=p?Xr(p):[];if(m.length){let g=m[m.length-1],y=l?g.right-f.left:f.right-g.left;y>a&&(a=y,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=d)}}}c=d+h.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?ye.RTL:ye.LTR}measureTextSize(){for(let s of this.children)if(s instanceof Pe){let o=s.measureTextSize();if(o)return o}let e=document.createElement("div"),t,n,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=Xr(e.firstChild)[0];t=e.getBoundingClientRect().height,n=s?s.width/27:7,i=s?s.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:i}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new D0(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let s=i==t.viewports.length?null:t.viewports[i],o=s?s.from-1:this.length;if(o>n){let a=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(z.replace({widget:new du(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!s)break;n=s.to+1}return z.set(e)}updateDeco(){let e=1,t=this.view.state.facet(os).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),n=!1,i=this.view.state.facet(n3).map((s,o)=>{let a=typeof s=="function";return a&&(n=!0),a?s(this.view):s});for(i.length&&(this.dynamicDecorationMap[e++]=n,t.push(re.join(i))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(J0))try{if(c(this.view,e.range,e))return!0}catch(u){it(this.view.state,u,"scroll handler")}let{range:t}=e,n=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),i;if(!n)return;!t.empty&&(i=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,i.left),top:Math.min(n.top,i.top),right:Math.max(n.right,i.right),bottom:Math.max(n.bottom,i.bottom)});let s=xu(this.view),o={left:n.left-s.left,top:n.top-s.top,right:n.right+s.right,bottom:n.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;mk(this.view.scrollDOM,o,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==ye.LTR)}}function Bk(r){return r.node.nodeType==1&&r.node.firstChild&&(r.offset==0||r.node.childNodes[r.offset-1].contentEditable=="false")&&(r.offset==r.node.childNodes.length||r.node.childNodes[r.offset].contentEditable=="false")}function a3(r,e){let t=r.observer.selectionRange;if(!t.focusNode)return null;let n=S0(t.focusNode,t.focusOffset),i=O0(t.focusNode,t.focusOffset),s=n||i;if(i&&n&&i.node!=n.node){let a=fe.get(i.node);if(!a||a instanceof Tt&&a.text!=i.node.nodeValue)s=i;else if(r.docView.lastCompositionAfterCursor){let l=fe.get(n.node);!l||l instanceof Tt&&l.text!=n.node.nodeValue||(s=i)}}if(r.docView.lastCompositionAfterCursor=s!=n,!s)return null;let o=e-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}function Ik(r,e,t){let n=a3(r,t);if(!n)return null;let{node:i,from:s,to:o}=n,a=i.nodeValue;if(/[\n\r]/.test(a)||r.state.doc.sliceString(n.from,n.to)!=a)return null;let l=e.invertedDesc,c=new Ct(l.mapPos(s),l.mapPos(o),s,o),u=[];for(let h=i.parentNode;;h=h.parentNode){let d=fe.get(h);if(d instanceof yn)u.push({node:h,deco:d.mark});else{if(d instanceof Pe||h.nodeName=="DIV"&&h.parentNode==r.contentDOM)return{range:c,text:i,marks:u,line:h};if(h!=r.contentDOM)u.push({node:h,deco:new ns({inclusive:!0,attributes:Sk(h),tagName:h.tagName.toLowerCase()})});else return null}}}function Hk(r,e){return r.nodeType!=1?0:(e&&r.childNodes[e-1].contentEditable=="false"?1:0)|(e<r.childNodes.length&&r.childNodes[e].contentEditable=="false"?2:0)}let Vk=class{constructor(){this.changes=[]}compareRange(e,t){ta(e,t,this.changes)}comparePoint(e,t){ta(e,t,this.changes)}boundChange(e){ta(e,e,this.changes)}};function Fk(r,e,t){let n=new Vk;return re.compare(r,e,t,n),n.changes}function Qk(r,e){for(let t=r;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function Wk(r,e){let t=!1;return e&&r.iterChangedRanges((n,i)=>{n<e.to&&i>e.from&&(t=!0)}),t}function jk(r,e,t=1){let n=r.charCategorizer(e),i=r.doc.lineAt(e),s=e-i.from;if(i.length==0)return M.cursor(e);s==0?t=1:s==i.length&&(t=-1);let o=s,a=s;t<0?o=Ve(i.text,s,!1):a=Ve(i.text,s);let l=n(i.text.slice(o,a));for(;o>0;){let c=Ve(i.text,o,!1);if(n(i.text.slice(c,o))!=l)break;o=c}for(;a<i.length;){let c=Ve(i.text,a);if(n(i.text.slice(a,c))!=l)break;a=c}return M.range(o+i.from,a+i.from)}function qk(r,e){return e.left>r?e.left-r:Math.max(0,r-e.right)}function zk(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function Su(r,e){return r.top<e.bottom-1&&r.bottom>e.top+1}function l3(r,e){return e<r.top?{top:e,left:r.left,right:r.right,bottom:r.bottom}:r}function c3(r,e){return e>r.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Ou(r,e,t){let n,i,s,o,a=!1,l,c,u,h;for(let p=r.firstChild;p;p=p.nextSibling){let m=Xr(p);for(let g=0;g<m.length;g++){let y=m[g];i&&Su(i,y)&&(y=l3(c3(y,i.bottom),i.top));let C=qk(e,y),w=zk(t,y);if(C==0&&w==0)return p.nodeType==3?u3(p,e,t):Ou(p,e,t);if(!n||o>w||o==w&&s>C){n=p,i=y,s=C,o=w;let x=w?t<y.top?-1:1:C?e<y.left?-1:1:0;a=!x||(x>0?g<m.length-1:g>0)}C==0?t>y.bottom&&(!u||u.bottom<y.bottom)?(l=p,u=y):t<y.top&&(!h||h.top>y.top)&&(c=p,h=y):u&&Su(u,y)?u=c3(u,y.bottom):h&&Su(h,y)&&(h=l3(h,y.top))}}if(u&&u.bottom>=t?(n=l,i=u):h&&h.top<=t&&(n=c,i=h),!n)return{node:r,offset:0};let d=Math.max(i.left,Math.min(i.right,e));if(n.nodeType==3)return u3(n,d,t);if(a&&n.contentEditable!="false")return Ou(n,d,t);let f=Array.prototype.indexOf.call(r.childNodes,n)+(e>=(i.left+i.right)/2?1:0);return{node:r,offset:f}}function u3(r,e,t){let n=r.nodeValue.length,i=-1,s=1e9,o=0;for(let a=0;a<n;a++){let l=mr(r,a,a+1).getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(u.top==u.bottom)continue;o||(o=e-u.left);let h=(u.top>t?u.top-t:t-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&h<s){let d=e>=(u.left+u.right)/2,f=d;if((F.chrome||F.gecko)&&mr(r,a).getBoundingClientRect().left==u.right&&(f=!d),h<=0)return{node:r,offset:a+(f?1:0)};i=a+(f?1:0),s=h}}}return{node:r,offset:i>-1?i:o>0?r.nodeValue.length:0}}function h3(r,e,t,n=-1){var i,s;let o=r.contentDOM.getBoundingClientRect(),a=o.top+r.viewState.paddingTop,l,{docHeight:c}=r.viewState,{x:u,y:h}=e,d=h-a;if(d<0)return 0;if(d>c)return r.state.doc.length;for(let x=r.viewState.heightOracle.textHeight/2,b=!1;l=r.elementAtHeight(d),l.type!=Ke.Text;)for(;d=n>0?l.bottom+x:l.top-x,!(d>=0&&d<=c);){if(b)return t?null:0;b=!0,n=-n}h=a+d;let f=l.from;if(f<r.viewport.from)return r.viewport.from==0?0:t?null:d3(r,o,l,u,h);if(f>r.viewport.to)return r.viewport.to==r.state.doc.length?r.state.doc.length:t?null:d3(r,o,l,u,h);let p=r.dom.ownerDocument,m=r.root.elementFromPoint?r.root:p,g=m.elementFromPoint(u,h);g&&!r.contentDOM.contains(g)&&(g=null),g||(u=Math.max(o.left+1,Math.min(o.right-1,u)),g=m.elementFromPoint(u,h),g&&!r.contentDOM.contains(g)&&(g=null));let y,C=-1;if(g&&((i=r.docView.nearest(g))===null||i===void 0?void 0:i.isEditable)!=!1){if(p.caretPositionFromPoint){let x=p.caretPositionFromPoint(u,h);x&&({offsetNode:y,offset:C}=x)}else if(p.caretRangeFromPoint){let x=p.caretRangeFromPoint(u,h);x&&({startContainer:y,startOffset:C}=x,(!r.contentDOM.contains(y)||F.safari&&Yk(y,C,u)||F.chrome&&$k(y,C,u))&&(y=void 0))}y&&(C=Math.min(Gt(y),C))}if(!y||!r.docView.dom.contains(y)){let x=Pe.find(r.docView,f);if(!x)return d>l.top+l.height/2?l.to:l.from;({node:y,offset:C}=Ou(x.dom,u,h))}let w=r.docView.nearest(y);if(!w)return null;if(w.isWidget&&((s=w.dom)===null||s===void 0?void 0:s.nodeType)==1){let x=w.dom.getBoundingClientRect();return e.y<x.top||e.y<=x.bottom&&e.x<=(x.left+x.right)/2?w.posAtStart:w.posAtEnd}else return w.localPosFromDOM(y,C)+w.posAtStart}function d3(r,e,t,n,i){let s=Math.round((n-e.left)*r.defaultCharacterWidth);if(r.lineWrapping&&t.height>r.defaultLineHeight*1.5){let a=r.viewState.heightOracle.textHeight,l=Math.floor((i-t.top-(r.defaultLineHeight-a)*.5)/a);s+=l*r.viewState.heightOracle.lineLength}let o=r.state.sliceDoc(t.from,t.to);return t.from+eu(o,s,r.state.tabSize)}function Yk(r,e,t){let n;if(r.nodeType!=3||e!=(n=r.nodeValue.length))return!1;for(let i=r.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return mr(r,n-1,n).getBoundingClientRect().left>t}function $k(r,e,t){if(e!=0)return!1;for(let i=r;;){let s=i.parentNode;if(!s||s.nodeType!=1||s.firstChild!=i)return!1;if(s.classList.contains("cm-line"))break;i=s}let n=r.nodeType==1?r.getBoundingClientRect():mr(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-n.left>5}function _u(r,e,t){let n=r.lineBlockAt(e);if(Array.isArray(n.type)){let i;for(let s of n.type){if(s.from>e)break;if(!(s.to<e)){if(s.from<e&&s.to>e)return s;(!i||s.type==Ke.Text&&(i.type!=s.type||(t<0?s.from<e:s.to>e)))&&(i=s)}}return i||n}return n}function Uk(r,e,t,n){let i=_u(r,e.head,e.assoc||-1),s=!n||i.type!=Ke.Text||!(r.lineWrapping||i.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(s){let o=r.dom.getBoundingClientRect(),a=r.textDirectionAt(i.from),l=r.posAtCoords({x:t==(a==ye.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(l!=null)return M.cursor(l,t?-1:1)}return M.cursor(t?i.to:i.from,t?-1:1)}function f3(r,e,t,n){let i=r.state.doc.lineAt(e.head),s=r.bidiSpans(i),o=r.textDirectionAt(i.from);for(let a=e,l=null;;){let c=Rk(i,s,o,a,t),u=q0;if(!c){if(i.number==(t?r.state.doc.lines:1))return a;u=`
|
|
582
|
+
`,i=r.state.doc.line(i.number+(t?1:-1)),s=r.bidiSpans(i),c=r.visualLineSide(i,!t)}if(l){if(!l(u))return a}else{if(!n)return c;l=n(u)}a=c}}function Zk(r,e,t){let n=r.state.charCategorizer(e),i=n(t);return s=>{let o=n(s);return i==ve.Space&&(i=o),i==o}}function Xk(r,e,t,n){let i=e.head,s=t?1:-1;if(i==(t?r.state.doc.length:0))return M.cursor(i,e.assoc);let o=e.goalColumn,a,l=r.contentDOM.getBoundingClientRect(),c=r.coordsAtPos(i,e.assoc||-1),u=r.documentTop;if(c)o==null&&(o=c.left-l.left),a=s<0?c.top:c.bottom;else{let f=r.viewState.lineBlockAt(i);o==null&&(o=Math.min(l.right-l.left,r.defaultCharacterWidth*(i-f.from))),a=(s<0?f.top:f.bottom)+u}let h=l.left+o,d=n??r.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let p=a+(d+f)*s,m=h3(r,{x:h,y:p},!1,s);if(p<l.top||p>l.bottom||(s<0?m<i:m>i)){let g=r.docView.coordsForChar(m),y=!g||p<g.top?-1:1;return M.cursor(m,y,void 0,o)}}}function sa(r,e,t){for(;;){let n=0;for(let i of r)i.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let l=n||t||(e-s<o-e?-1:1);e=l<0?s:o,n=l}});if(!n)return e}}function Du(r,e,t){let n=sa(r.state.facet(ku).map(i=>i(r)),t.from,e.head>t.from?-1:1);return n==t.from?t:M.cursor(n,n<t.from?1:-1)}const ls="";class Kk{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(J.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=ls}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let i=e;;){this.findPointBefore(n,i);let s=this.text.length;this.readNode(i);let o=i.nextSibling;if(o==t)break;let a=fe.get(i),l=fe.get(o);(a&&l?a.breakAfter:(a?a.breakAfter:Go(i))||Go(o)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>s)&&this.lineBreak(),i=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,a;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(a=i.exec(t))&&(s=a.index,o=a[0].length),this.append(t.slice(n,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);n=s+o}}readNode(e){if(e.cmIgnore)return;let t=fe.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let i=n.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Gk(e,n.node,n.offset)?t:0))}}function Gk(r,e,t){for(;;){if(!e||t<Gt(e))return!1;if(e==r)return!0;t=pr(e)+1,e=e.parentNode}}class p3{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Jk{constructor(e,t,n,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let a=s||o?[]:nx(e),l=new Kk(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=rx(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=s&&s.node==a.focusNode&&s.offset==a.focusOffset||!iu(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),c=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!iu(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),u=e.viewport;if((F.ios||F.chrome)&&e.state.selection.main.empty&&l!=c&&(u.from>0||u.to<e.state.doc.length)){let h=Math.min(l,c),d=Math.max(l,c),f=u.from-h,p=u.to-d;(f==0||f==1||h==0)&&(p==0||p==-1||d==e.state.doc.length)&&(l=0,c=e.state.doc.length)}this.newSel=M.single(c,l)}}}function m3(r,e){let t,{newSel:n}=e,i=r.state.selection.main,s=r.inputState.lastKeyTime>Date.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=i.from,c=null;(s===8||F.android&&e.text.length<a-o)&&(l=i.to,c="end");let u=tx(r.state.doc.sliceString(o,a,ls),e.text,l-o,c);u&&(F.chrome&&s==13&&u.toB==u.from+2&&e.text.slice(u.from,u.toB)==ls+ls&&u.toB--,t={from:o+u.from,to:o+u.toA,insert:ne.of(e.text.slice(u.from,u.toB).split(ls))})}else n&&(!r.hasFocus&&r.state.facet(Cn)||n.main.eq(i))&&(n=null);if(!t&&!n)return!1;if(!t&&e.typeOver&&!i.empty&&n&&n.main.empty?t={from:i.from,to:i.to,insert:r.state.doc.slice(i.from,i.to)}:(F.mac||F.android)&&t&&t.from==t.to&&t.from==i.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=M.single(n.main.anchor-1,n.main.head-1)),t={from:t.from,to:t.to,insert:ne.of([t.insert.toString().replace("."," ")])}):t&&t.from>=i.from&&t.to<=i.to&&(t.from!=i.from||t.to!=i.to)&&i.to-i.from-(t.to-t.from)<=4?t={from:i.from,to:i.to,insert:r.state.doc.slice(i.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,i.to))}:F.chrome&&t&&t.from==t.to&&t.from==i.head&&t.insert.toString()==`
|
|
583
|
+
`&&r.lineWrapping&&(n&&(n=M.single(n.main.anchor-1,n.main.head-1)),t={from:i.from,to:i.to,insert:ne.of([" "])}),t)return Mu(r,t,n,s);if(n&&!n.main.eq(i)){let o=!1,a="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(o=!0),a=r.inputState.lastSelectionOrigin),r.dispatch({selection:n,scrollIntoView:o,userEvent:a}),!0}else return!1}function Mu(r,e,t,n=-1){if(F.ios&&r.inputState.flushIOSKey(e))return!0;let i=r.state.selection.main;if(F.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&r.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Gr(r.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||n==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&Gr(r.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&Gr(r.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let o,a=()=>o||(o=ex(r,e,t));return r.state.facet(Z0).some(l=>l(r,e.from,e.to,s,a))||r.dispatch(a()),!0}function ex(r,e,t){let n,i=r.state,s=i.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let a=s.from<e.from?i.sliceDoc(s.from,e.from):"",l=s.to>e.to?i.sliceDoc(e.to,s.to):"";n=i.replaceSelection(r.state.toText(a+e.insert.sliceString(0,void 0,r.state.lineBreak)+l))}else{let a=i.changes(e),l=t&&t.main.to<=a.newLength?t.main:void 0;if(i.selection.ranges.length>1&&r.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=r.state.sliceDoc(e.from,e.to),u,h=t&&a3(r,t.main.head);if(h){let p=e.insert.length-(e.to-e.from);u={from:h.from,to:h.to-p}}else u=r.state.doc.lineAt(s.head);let d=s.to-e.to,f=s.to-s.from;n=i.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return{changes:a,range:l||p.map(a)};let m=p.to-d,g=m-c.length;if(p.to-p.from!=f||r.state.sliceDoc(g,m)!=c||p.to>=u.from&&p.from<=u.to)return{range:p};let y=i.changes({from:g,to:m,insert:e.insert}),C=p.to-s.to;return{changes:y,range:l?M.range(Math.max(0,l.anchor+C),Math.max(0,l.head+C)):p.map(y)}})}else n={changes:a,selection:l&&i.selection.replaceRange(l)}}let o="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,o+=".compose",r.inputState.compositionFirstChange&&(o+=".start",r.inputState.compositionFirstChange=!1)),i.update(n,{userEvent:o,scrollIntoView:!0})}function tx(r,e,t,n){let i=Math.min(r.length,e.length),s=0;for(;s<i&&r.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==i&&r.length==e.length)return null;let o=r.length,a=e.length;for(;o>0&&a>0&&r.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(n=="end"){let l=Math.max(0,s-Math.min(o,a));t-=o+l-s}if(o<s&&r.length<e.length){let l=t<=s&&t>=o?s-t:0;s-=l,a=s+(a-o),o=s}else if(a<s){let l=t<=s&&t>=a?s-t:0;s-=l,o=s+(o-a),a=s}return{from:s,toA:o,toB:a}}function nx(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:s}=r.observer.selectionRange;return t&&(e.push(new p3(t,n)),(i!=t||s!=n)&&e.push(new p3(i,s))),e}function rx(r,e){if(r.length==0)return null;let t=r[0].pos,n=r.length==2?r[1].pos:t;return t>-1&&n>-1?M.single(t+e,n+e):null}class ix{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,F.safari&&e.contentDOM.addEventListener("input",()=>null),F.gecko&&Cx(e.contentDOM.ownerDocument)}handleEvent(e){!dx(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let i of n.observers)i(this.view,t);for(let i of n.handlers){if(t.defaultPrevented)break;if(i(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=sx(e),n=this.handlers,i=this.view.contentDOM;for(let s in t)if(s!="scroll"){let o=!t[s].handlers.length,a=n[s];a&&o!=!a.handlers.length&&(i.removeEventListener(s,this.handleEvent),a=null),a||i.addEventListener(s,this.handleEvent,{passive:o})}for(let s in n)s!="scroll"&&!t[s]&&i.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&b3.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),F.android&&F.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return F.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=y3.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||ox.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Gr(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:F.safari&&!F.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function g3(r,e){return(t,n)=>{try{return e.call(r,n,t)}catch(i){it(t.state,i)}}}function sx(r){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of r){let i=n.spec;if(i&&i.domEventHandlers)for(let s in i.domEventHandlers){let o=i.domEventHandlers[s];o&&t(s).handlers.push(g3(n.value,o))}if(i&&i.domEventObservers)for(let s in i.domEventObservers){let o=i.domEventObservers[s];o&&t(s).observers.push(g3(n.value,o))}}for(let n in Et)t(n).handlers.push(Et[n]);for(let n in wt)t(n).observers.push(wt[n]);return e}const y3=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ox="dthko",b3=[16,17,18,20,91,92,224,225],oa=6;function aa(r){return Math.max(0,r)*.7+8}function ax(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}class lx{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=gk(e.contentDOM),this.atoms=e.state.facet(ku).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(J.allowMultipleSelections)&&cx(e,t),this.dragging=hx(e,t)&&D3(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&ax(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,n=0,i=0,s=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=xu(this.view);e.clientX-l.left<=i+oa?t=-aa(i-e.clientX):e.clientX+l.right>=o-oa&&(t=aa(e.clientX-o)),e.clientY-l.top<=s+oa?n=-aa(s-e.clientY):e.clientY+l.bottom>=a-oa&&(n=aa(e.clientY-a)),this.setScrollSpeed(t,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let i=e.ranges[n],s=null;if(i.empty){let o=sa(this.atoms,i.from,0);o!=i.from&&(s=M.cursor(o,-1))}else{let o=sa(this.atoms,i.from,-1),a=sa(this.atoms,i.to,1);(o!=i.from||a!=i.to)&&(s=M.range(i.from==i.anchor?o:a,i.from==i.head?o:a))}s&&(t||(t=e.ranges.slice()),t[n]=s)}return t?M.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function cx(r,e){let t=r.state.facet(z0);return t.length?t[0](e):F.mac?e.metaKey:e.ctrlKey}function ux(r,e){let t=r.state.facet(Y0);return t.length?t[0](e):F.mac?!e.altKey:!e.ctrlKey}function hx(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let n=Ji(r.root);if(!n||n.rangeCount==0)return!0;let i=n.getRangeAt(0).getClientRects();for(let s=0;s<i.length;s++){let o=i[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function dx(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=fe.get(t))&&n.ignoreEvent(e))return!1;return!0}const Et=Object.create(null),wt=Object.create(null),v3=F.ie&&F.ie_version<15||F.ios&&F.webkit_version<604;function fx(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),C3(r,t.value)},50)}function la(r,e,t){for(let n of r.facet(e))t=n(t,r);return t}function C3(r,e){e=la(r.state,bu,e);let{state:t}=r,n,i=1,s=t.toText(e),o=s.lines==t.selection.ranges.length;if(Pu!=null&&t.selection.ranges.every(l=>l.empty)&&Pu==s.toString()){let l=-1;n=t.changeByRange(c=>{let u=t.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;let h=t.toText((o?s.line(i++).text:e)+t.lineBreak);return{changes:{from:u.from,insert:h},range:M.cursor(c.from+h.length)}})}else o?n=t.changeByRange(l=>{let c=s.line(i++);return{changes:{from:l.from,to:l.to,insert:c.text},range:M.cursor(l.from+c.length)}}):n=t.replaceSelection(s);r.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}wt.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft},Et.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&r.inputState.tabFocusMode!=0&&(r.inputState.tabFocusMode=Date.now()+2e3),!1),wt.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")},wt.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")},Et.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of r.state.facet($0))if(t=n(r,e),t)break;if(!t&&e.button==0&&(t=gx(r,e)),t){let n=!r.hasFocus;r.inputState.startMouseSelection(new lx(r,e,t,n)),n&&r.observer.ignore(()=>{C0(r.contentDOM);let s=r.root.activeElement;s&&!s.contains(r.contentDOM)&&s.blur()});let i=r.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function w3(r,e,t,n){if(n==1)return M.cursor(e,t);if(n==2)return jk(r.state,e,t);{let i=Pe.find(r.docView,e),s=r.state.doc.lineAt(i?i.posAtEnd:e),o=i?i.posAtStart:s.from,a=i?i.posAtEnd:s.to;return a<r.state.doc.length&&a==s.to&&a++,M.range(o,a)}}let k3=(r,e,t)=>e>=t.top&&e<=t.bottom&&r>=t.left&&r<=t.right;function px(r,e,t,n){let i=Pe.find(r.docView,e);if(!i)return 1;let s=e-i.posAtStart;if(s==0)return 1;if(s==i.length)return-1;let o=i.coordsAt(s,-1);if(o&&k3(t,n,o))return-1;let a=i.coordsAt(s,1);return a&&k3(t,n,a)?1:o&&o.bottom>=n?-1:1}function x3(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:px(r,t,e.clientX,e.clientY)}}const mx=F.ie&&F.ie_version<=11;let S3=null,O3=0,_3=0;function D3(r){if(!mx)return r.detail;let e=S3,t=_3;return S3=r,_3=Date.now(),O3=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(O3+1)%3:1}function gx(r,e){let t=x3(r,e),n=D3(e),i=r.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),i=i.map(s.changes))},get(s,o,a){let l=x3(r,s),c,u=w3(r,l.pos,l.bias,n);if(t.pos!=l.pos&&!o){let h=w3(r,t.pos,t.bias,n),d=Math.min(h.from,u.from),f=Math.max(h.to,u.to);u=d<u.from?M.range(d,f):M.range(f,d)}return o?i.replaceRange(i.main.extend(u.from,u.to)):a&&n==1&&i.ranges.length>1&&(c=yx(i,l.pos))?c:a?i.addRange(u):M.create([u])}}}function yx(r,e){for(let t=0;t<r.ranges.length;t++){let{from:n,to:i}=r.ranges[t];if(n<=e&&i>=e)return M.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}Et.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let i=r.docView.nearest(e.target);if(i&&i.isWidget){let s=i.posAtStart,o=s+i.length;(s>=t.to||o<=t.from)&&(t=M.range(s,o))}}let{inputState:n}=r;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",la(r.state,vu,r.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1},Et.dragend=r=>(r.inputState.draggedContent=null,!1);function M3(r,e,t,n){if(t=la(r.state,bu,t),!t)return;let i=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=r.inputState,o=n&&s&&ux(r,e)?{from:s.from,to:s.to}:null,a={from:i,insert:t},l=r.state.changes(o?[o,a]:a);r.focus(),r.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),r.inputState.draggedContent=null}Et.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),i=0,s=()=>{++i==t.length&&M3(r,e,n.filter(o=>o!=null).join(r.state.lineBreak),!1)};for(let o=0;o<t.length;o++){let a=new FileReader;a.onerror=s,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(n[o]=a.result),s()},a.readAsText(t[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return M3(r,e,n,!0),!0}return!1},Et.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=v3?null:e.clipboardData;return t?(C3(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(fx(r),!1)};function bx(r,e){let t=r.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),r.focus()},50)}function vx(r){let e=[],t=[],n=!1;for(let i of r.selection.ranges)i.empty||(e.push(r.sliceDoc(i.from,i.to)),t.push(i));if(!e.length){let i=-1;for(let{from:s}of r.selection.ranges){let o=r.doc.lineAt(s);o.number>i&&(e.push(o.text),t.push({from:o.from,to:Math.min(r.doc.length,o.to+1)})),i=o.number}n=!0}return{text:la(r,vu,e.join(r.lineBreak)),ranges:t,linewise:n}}let Pu=null;Et.copy=Et.cut=(r,e)=>{let{text:t,ranges:n,linewise:i}=vx(r.state);if(!t&&!i)return!1;Pu=i?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let s=v3?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(bx(r,t),!1)};const P3=Xt.define();function T3(r,e){let t=[];for(let n of r.facet(X0)){let i=n(r,e);i&&t.push(i)}return t.length?r.update({effects:t,annotations:P3.of(!0)}):null}function E3(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=T3(r.state,e);t?r.dispatch(t):r.update([])}},10)}wt.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),E3(r)},wt.blur=r=>{r.observer.clearSelectionRange(),E3(r)},wt.compositionstart=wt.compositionupdate=r=>{r.observer.editContext||(r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0))},wt.compositionend=r=>{r.observer.editContext||(r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,F.chrome&&F.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50))},wt.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()},Et.beforeinput=(r,e)=>{var t,n;if(e.inputType=="insertReplacementText"&&r.observer.editContext){let s=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let a=o[0],l=r.posAtDOM(a.startContainer,a.startOffset),c=r.posAtDOM(a.endContainer,a.endOffset);return Mu(r,{from:l,to:c,insert:r.state.toText(s)},null),!0}}let i;if(F.chrome&&F.android&&(i=y3.find(s=>s.inputType==e.inputType))&&(r.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let s=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>s+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return F.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),F.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>wt.compositionend(r,e),20),!1};const A3=new Set;function Cx(r){A3.has(r)||(A3.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}const R3=["pre-wrap","normal","pre-line","break-spaces"];let ni=!1;function L3(){ni=!1}class wx{constructor(e){this.lineWrapping=e,this.doc=ne.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return R3.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];i<0?n++:this.heightSamples[Math.floor(i*10)]||(t=!0,this.heightSamples[Math.floor(i*10)]=!0)}return t}refresh(e,t,n,i,s,o){let a=R3.indexOf(e)>-1,l=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=i,this.lineLength=s,l){this.heightSamples={};for(let c=0;c<o.length;c++){let u=o[c];u<0?c++:this.heightSamples[Math.floor(u*10)]=!0}}return l}}class kx{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class en{constructor(e,t,n,i,s){this.from=e,this.length=t,this.top=n,this.height=i,this._content=s}get type(){return typeof this._content=="number"?Ke.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof jn?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new en(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var be=function(r){return r[r.ByPos=0]="ByPos",r[r.ByHeight=1]="ByHeight",r[r.ByPosNoHeight=2]="ByPosNoHeight",r}(be||(be={}));const ca=.001;class Ge{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>ca&&(ni=!0),this.height=e)}replace(e,t,n){return Ge.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let s=this,o=n.doc;for(let a=i.length-1;a>=0;a--){let{fromA:l,toA:c,fromB:u,toB:h}=i[a],d=s.lineAt(l,be.ByPosNoHeight,n.setDoc(t),0,0),f=d.to>=c?d:s.lineAt(c,be.ByPosNoHeight,n,0,0);for(h+=f.to-c,c=f.to;a>0&&d.from<=i[a-1].toA;)l=i[a-1].fromA,u=i[a-1].fromB,a--,l<d.from&&(d=s.lineAt(l,be.ByPosNoHeight,n,0,0));u+=d.from-l,l=d.from;let p=Tu.build(n.setDoc(o),e,u,h);s=ua(s,s.replace(l,c,p))}return s.updateHeight(n,0)}static empty(){return new pt(0,0)}static of(e){if(e.length==1)return e[0];let t=0,n=e.length,i=0,s=0;for(;;)if(t==n)if(i>s*2){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),n+=1+a.break,i-=a.size}else if(s>i*2){let a=e[n];a.break?e.splice(n,1,a.left,null,a.right):e.splice(n,1,a.left,a.right),n+=2+a.break,s-=a.size}else break;else if(i<s){let a=e[t++];a&&(i+=a.size)}else{let a=e[--n];a&&(s+=a.size)}let o=0;return e[t-1]==null?(o=1,t--):e[t]==null&&(o=1,n++),new xx(Ge.of(e.slice(0,t)),o,Ge.of(e.slice(n)))}}function ua(r,e){return r==e?r:(r.constructor!=e.constructor&&(ni=!0),e)}Ge.prototype.size=1;class N3 extends Ge{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,i){return new en(i,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,i,s){return this.blockAt(0,n,i,s)}forEachLine(e,t,n,i,s,o){e<=s+this.length&&t>=s&&o(this.blockAt(0,n,i,s))}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more&&this.setHeight(i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class pt extends N3{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,i){return new en(i,this.length,n,this.height,this.breaks)}replace(e,t,n){let i=n[0];return n.length==1&&(i instanceof pt||i instanceof We&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof We?i=new pt(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Ge.of(n)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more?this.setHeight(i.heights[i.index++]):(n||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class We extends Ge{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,s=i-n+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*s);o=l/s,this.length>s+1&&(a=(this.height-l)/(this.length-s-1))}else o=this.height/s;return{firstLine:n,lastLine:i,perLine:o,perChar:a}}blockAt(e,t,n,i){let{firstLine:s,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(t,i);if(t.lineWrapping){let c=i+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),u=t.doc.lineAt(c),h=a+u.length*l,d=Math.max(n,e-h/2);return new en(u.from,u.length,d,h,0)}else{let c=Math.max(0,Math.min(o-s,Math.floor((e-n)/a))),{from:u,length:h}=t.doc.line(s+c);return new en(u,h,n+a*c,a,0)}}lineAt(e,t,n,i,s){if(t==be.ByHeight)return this.blockAt(e,n,i,s);if(t==be.ByPosNoHeight){let{from:f,to:p}=n.doc.lineAt(e);return new en(f,p-f,0,0,0)}let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(n,s),c=n.doc.lineAt(e),u=a+c.length*l,h=c.number-o,d=i+a*h+l*(c.from-s-h);return new en(c.from,c.length,Math.max(i,Math.min(d,i+this.height-u)),u,0)}forEachLine(e,t,n,i,s,o){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:a,perLine:l,perChar:c}=this.heightMetrics(n,s);for(let u=e,h=i;u<=t;){let d=n.doc.lineAt(u);if(u==e){let p=d.number-a;h+=l*p+c*(e-s-p)}let f=l+c*d.length;o(new en(d.from,d.length,h,f,0)),h+=f,u=d.to+1}}replace(e,t,n){let i=this.length-t;if(i>0){let s=n[n.length-1];s instanceof We?n[n.length-1]=new We(s.length+i):n.push(null,new We(i-1))}if(e>0){let s=n[0];s instanceof We?n[0]=new We(e+s.length):n.unshift(new We(e-1),null)}return Ge.of(n)}decomposeLeft(e,t){t.push(new We(e-1),null)}decomposeRight(e,t){t.push(null,new We(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let s=t+this.length;if(i&&i.from<=t+this.length&&i.more){let o=[],a=Math.max(t,i.from),l=-1;for(i.from>t&&o.push(new We(i.from-t-1).updateHeight(e,t));a<=s&&i.more;){let u=e.doc.lineAt(a).length;o.length&&o.push(null);let h=i.heights[i.index++];l==-1?l=h:Math.abs(h-l)>=ca&&(l=-2);let d=new pt(u,h);d.outdated=!1,o.push(d),a+=u+1}a<=s&&o.push(null,new We(s-a).updateHeight(e,a));let c=Ge.of(o);return(l<0||Math.abs(c.height-this.height)>=ca||Math.abs(l-this.heightMetrics(e,t).perLine)>=ca)&&(ni=!0),ua(this,c)}else(n||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class xx extends Ge{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,i){let s=n+this.left.height;return e<s?this.left.blockAt(e,t,n,i):this.right.blockAt(e,t,s,i+this.left.length+this.break)}lineAt(e,t,n,i,s){let o=i+this.left.height,a=s+this.left.length+this.break,l=t==be.ByHeight?e<o:e<a,c=l?this.left.lineAt(e,t,n,i,s):this.right.lineAt(e,t,n,o,a);if(this.break||(l?c.to<a:c.from>a))return c;let u=t==be.ByPosNoHeight?be.ByPosNoHeight:be.ByPos;return l?c.join(this.right.lineAt(a,u,n,o,a)):this.left.lineAt(a,u,n,i,s).join(c)}forEachLine(e,t,n,i,s,o){let a=i+this.left.height,l=s+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,t,n,i,s,o),t>=l&&this.right.forEachLine(e,t,n,a,l,o);else{let c=this.lineAt(l,be.ByPos,n,i,s);e<c.from&&this.left.forEachLine(e,c.from-1,n,i,s,o),c.to>=e&&c.from<=t&&o(c),t>c.to&&this.right.forEachLine(c.to+1,t,n,a,l,o)}}replace(e,t,n){let i=this.left.length+this.break;if(t<i)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let a of n)s.push(a);if(e>0&&B3(s,o-1),t<this.length){let a=s.length;this.decomposeRight(t,s),B3(s,a)}return Ge.of(s)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<i&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Ge.of(this.break?[e,null,t]:[e,t]):(this.left=ua(this.left,e),this.right=ua(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:s,right:o}=this,a=t+s.length+this.break,l=null;return i&&i.from<=t+s.length&&i.more?l=s=s.updateHeight(e,t,n,i):s.updateHeight(e,t,n),i&&i.from<=a+o.length&&i.more?l=o=o.updateHeight(e,a,n,i):o.updateHeight(e,a,n),l?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function B3(r,e){let t,n;r[e]==null&&(t=r[e-1])instanceof We&&(n=r[e+1])instanceof We&&r.splice(e-1,3,new We(t.length+1+n.length))}const Sx=5;class Tu{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof pt?i.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new pt(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let i=n.widget?n.widget.estimatedHeight:0,s=n.widget?n.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new N3(o,i,n)):(o||s||i>=Sx)&&this.addLineDeco(i,s,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new pt(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new We(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof pt)return e;let t=new pt(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let i=this.ensureLine();i.length+=n,i.collapsed+=n,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof pt)&&!this.isCovered?this.nodes.push(new pt(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let i of this.nodes)i instanceof pt&&i.updateHeight(this.oracle,n),n+=i?i.length:1;return this.nodes}static build(e,t,n,i){let s=new Tu(n,e);return re.spans(t,n,i,s,0),s.finish(n)}}function Ox(r,e,t){let n=new _x;return re.compare(r,e,t,n,0),n.changes}class _x{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,i){(e<t||n&&n.heightRelevant||i&&i.heightRelevant)&&ta(e,t,this.changes,5)}}function Dx(r,e){let t=r.getBoundingClientRect(),n=r.ownerDocument,i=n.defaultView||window,s=Math.max(0,t.left),o=Math.min(i.innerWidth,t.right),a=Math.max(0,t.top),l=Math.min(i.innerHeight,t.bottom);for(let c=r.parentNode;c&&c!=n.body;)if(c.nodeType==1){let u=c,h=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&h.overflow!="visible"){let d=u.getBoundingClientRect();s=Math.max(s,d.left),o=Math.min(o,d.right),a=Math.max(a,d.top),l=Math.min(c==r.parentNode?i.innerHeight:l,d.bottom)}c=h.position=="absolute"||h.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-t.left,right:Math.max(s,o)-t.left,top:a-(t.top+e),bottom:Math.max(a,l)-(t.top+e)}}function Mx(r){let e=r.getBoundingClientRect(),t=r.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function Px(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class Eu{constructor(e,t,n,i){this.from=e,this.to=t,this.size=n,this.displaySize=i}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],s=t[n];if(i.from!=s.from||i.to!=s.to||i.size!=s.size)return!1}return!0}draw(e,t){return z.replace({widget:new Tx(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class Tx extends bn{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class I3{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=H3,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=ye.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(wu).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new wx(t),this.stateDeco=e.facet(os).filter(n=>typeof n!="function"),this.heightMap=Ge.empty().applyChanges(this.stateDeco,ne.empty,this.heightOracle.setDoc(e.doc),[new Ct(0,0,0,e.doc.length)]);for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());n++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=z.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some(({from:s,to:o})=>i>=s&&i<=o)){let{from:s,to:o}=this.lineBlockAt(i);e.push(new ha(s,o))}}return this.viewports=e.sort((n,i)=>n.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?H3:new Au(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(cs(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(os).filter(u=>typeof u!="function");let i=e.changedRanges,s=Ct.extendWithRanges(i,Ox(n,this.stateDeco,e?e.changes:Ee.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);L3(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=o||ni)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<l.from||t.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(G0)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,s=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?ye.RTL:ye.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),a=t.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let c=0,u=0;if(a.width&&a.height){let{scaleX:x,scaleY:b}=v0(t,a);(x>.005&&Math.abs(this.scaleX-x)>.005||b>.005&&Math.abs(this.scaleY-b)>.005)&&(this.scaleX=x,this.scaleY=b,c|=16,o=l=!0)}let h=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=d)&&(this.paddingTop=h,this.paddingBottom=d,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=x0(e.scrollDOM);let p=(this.printing?Px:Dx)(t,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget&&!Mx(e.dom))return 0;let C=a.width;if((this.contentDOMWidth!=C||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),l){let x=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(x)&&(o=!0),o||i.lineWrapping&&Math.abs(C-this.contentDOMWidth)>i.charWidth){let{lineHeight:b,charWidth:S,textHeight:k}=e.docView.measureTextSize();o=b>0&&i.refresh(s,b,S,k,C/S,x),o&&(e.docView.minWidth=0,c|=16)}m>0&&g>0?u=Math.max(m,g):m<0&&g<0&&(u=Math.min(m,g)),L3();for(let b of this.viewports){let S=b.from==this.viewport.from?x:e.docView.measureVisibleLineHeights(b);this.heightMap=(o?Ge.empty().applyChanges(this.stateDeco,ne.empty,this.heightOracle,[new Ct(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new kx(b.from,S))}ni&&(c|=2)}let w=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return w&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),c|=this.updateForViewport()),(c&2||w)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new ha(i.lineAt(o-n*1e3,be.ByHeight,s,0,0).from,i.lineAt(a+(1-n)*1e3,be.ByHeight,s,0,0).to);if(t){let{head:c}=t.range;if(c<l.from||c>l.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=i.lineAt(c,be.ByPos,s,0,0),d;t.y=="center"?d=(h.top+h.bottom)/2-u/2:t.y=="start"||t.y=="nearest"&&c<l.from?d=h.top:d=h.bottom-u,l=new ha(i.lineAt(d-1e3/2,be.ByHeight,s,0,0).from,i.lineAt(d+u+1e3/2,be.ByHeight,s,0,0).to)}}return l}mapViewport(e,t){let n=t.mapPos(e.from,-1),i=t.mapPos(e.to,1);return new ha(this.heightMap.lineAt(n,be.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,be.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,be.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(t,be.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(e==0||i<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||s>=a+Math.max(10,Math.min(n,250)))&&i>o-2*1e3&&s<a+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let i of e)t.touchesRange(i.from,i.to)||n.push(new Eu(t.mapPos(i.from),t.mapPos(i.to),i.size,i.displaySize));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,i=n?1e4:2e3,s=i>>1,o=i<<1;if(this.defaultTextDirection!=ye.LTR&&!n)return[];let a=[],l=(u,h,d,f)=>{if(h-u<s)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let y of m)if(y>u&&y<h){l(u,y-10,d,f),l(y+10,h,d,f);return}let g=Ax(e,y=>y.from>=d.from&&y.to<=d.to&&Math.abs(y.from-u)<s&&Math.abs(y.to-h)<s&&!m.some(C=>y.from<C&&y.to>C));if(!g){if(h<d.to&&t&&n&&t.visibleRanges.some(w=>w.from<=h&&w.to>=h)){let w=t.moveToLineBoundary(M.cursor(h),!1,!0).head;w>u&&(h=w)}let y=this.gapSize(d,u,h,f),C=n||y<2e6?y:2e6;g=new Eu(u,h,y,C)}a.push(g)},c=u=>{if(u.length<o||u.type!=Ke.Text)return;let h=Ex(u.from,u.to,this.stateDeco);if(h.total<o)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,f,p;if(n){let m=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,g,y;if(d!=null){let C=fa(h,d),w=((this.visibleBottom-this.visibleTop)/2+m)/u.height;g=C-w,y=C+w}else g=(this.visibleTop-u.top-m)/u.height,y=(this.visibleBottom-u.top+m)/u.height;f=da(h,g),p=da(h,y)}else{let m=h.total*this.heightOracle.charWidth,g=i*this.heightOracle.charWidth,y=0;if(m>2e6)for(let S of e)S.from>=u.from&&S.from<u.to&&S.size!=S.displaySize&&S.from*this.heightOracle.charWidth+y<this.pixelViewport.left&&(y=S.size-S.displaySize);let C=this.pixelViewport.left+y,w=this.pixelViewport.right+y,x,b;if(d!=null){let S=fa(h,d),k=((w-C)/2+g)/m;x=S-k,b=S+k}else x=(C-g)/m,b=(w+g)/m;f=da(h,x),p=da(h,b)}f>u.from&&l(u.from,f,u,h),p<u.to&&l(p,u.to,u,h)};for(let u of this.viewportLines)Array.isArray(u.type)?u.type.forEach(c):c(u);return a}gapSize(e,t,n,i){let s=fa(i,n)-fa(i,t);return this.heightOracle.lineWrapping?e.height*s:i.total*this.heightOracle.charWidth*s}updateLineGaps(e){Eu.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=z.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];re.spans(t,this.viewport.from,this.viewport.to,{span(s,o){n.push({from:s,to:o})},point(){}},20);let i=0;if(n.length!=this.visibleRanges.length)i=12;else for(let s=0;s<n.length&&!(i&8);s++){let o=this.visibleRanges[s],a=n[s];(o.from!=a.from||o.to!=a.to)&&(i|=4,e&&e.mapPos(o.from,-1)==a.from&&e.mapPos(o.to,1)==a.to||(i|=8))}return this.visibleRanges=n,i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||cs(this.heightMap.lineAt(e,be.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||cs(this.heightMap.lineAt(this.scaler.fromDOM(e),be.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return cs(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class ha{constructor(e,t){this.from=e,this.to=t}}function Ex(r,e,t){let n=[],i=r,s=0;return re.spans(t,r,e,{span(){},point(o,a){o>i&&(n.push({from:i,to:o}),s+=o-i),i=a}},20),i<e&&(n.push({from:i,to:e}),s+=e-i),{total:s,ranges:n}}function da({total:r,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let n=Math.floor(r*t);for(let i=0;;i++){let{from:s,to:o}=e[i],a=o-s;if(n<=a)return s+n;n-=a}}function fa(r,e){let t=0;for(let{from:n,to:i}of r.ranges){if(e<=i){t+=e-n;break}t+=i-n}return t/r.total}function Ax(r,e){for(let t of r)if(e(t))return t}const H3={toDOM(r){return r},fromDOM(r){return r},scale:1,eq(r){return r==this}};class Au{constructor(e,t,n){let i=0,s=0,o=0;this.viewports=n.map(({from:a,to:l})=>{let c=t.lineAt(a,be.ByPos,e,0,0).top,u=t.lineAt(l,be.ByPos,e,0,0).bottom;return i+=u-c,{from:a,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(t.height-i);for(let a of this.viewports)a.domTop=o+(a.top-s)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),s=a.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.top)return i+(e-n)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);n=s.bottom,i=s.domBottom}}fromDOM(e){for(let t=0,n=0,i=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.domTop)return n+(e-i)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);n=s.bottom,i=s.domBottom}}eq(e){return e instanceof Au?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to):!1}}function cs(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),n=e.toDOM(r.bottom);return new en(r.from,r.length,t,n-t,Array.isArray(r._content)?r._content.map(i=>cs(i,e)):r._content)}const pa=V.define({combine:r=>r.join(" ")}),Ru=V.define({combine:r=>r.indexOf(!0)>-1}),Lu=Fn.newName(),V3=Fn.newName(),F3=Fn.newName(),Q3={"&light":"."+V3,"&dark":"."+F3};function Nu(r,e,t){return new Fn(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,i=>{if(i=="&")return r;if(!t||!t[i])throw new RangeError(`Unsupported selector: ${i}`);return t[i]}):r+" "+n}})}const Rx=Nu("."+Lu,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Q3),Lx={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Bu=F.ie&&F.ie_version<=11;class Nx{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new yk,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(F.ie&&F.ie_version<=11||F.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(F.chrome&&F.chrome_version<126)&&(this.editContext=new Ix(e),e.state.facet(Cn)&&(e.contentDOM.editContext=this.editContext.editContext)),Bu&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,i=this.selectionRange;if(n.state.facet(Cn)?n.root.activeElement!=this.dom:!Ko(this.dom,i))return;let s=i.anchorNode&&n.docView.nearest(i.anchorNode);if(s&&s.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(F.ie&&F.ie_version<=11||F.android&&F.chrome)&&!n.state.selection.main.empty&&i.focusNode&&es(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Ji(e.root);if(!t)return!1;let n=F.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&Bx(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1;let i=Ko(this.dom,n);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&vk(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(n.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=t)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Lx),Bu&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Bu&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let i=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Gr(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(i=!0),t==-1?{from:t,to:n}=o:(t=Math.min(o.from,t),n=Math.max(o.to,n)))}return{from:t,to:n,typeOver:i}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),i=this.selectionChanged&&Ko(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new Jk(this.view,e,t,n);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,i=m3(this.view,t);return this.view.state==n&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let n=W3(t,e.previousSibling||e.target.previousSibling,-1),i=W3(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Cn)!=e.state.facet(Cn)&&(e.view.contentDOM.editContext=e.state.facet(Cn)?this.editContext.editContext:null))}destroy(){var e,t,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function W3(r,e,t){for(;e;){let n=fe.get(e);if(n&&n.parent==r)return n;let i=e.parentNode;e=i!=r.dom?i:t>0?e.nextSibling:e.previousSibling}return null}function j3(r,e){let t=e.startContainer,n=e.startOffset,i=e.endContainer,s=e.endOffset,o=r.docView.domAtPos(r.state.selection.main.anchor);return es(o.node,o.offset,i,s)&&([t,n,i,s]=[i,s,t,n]),{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:s}}function Bx(r,e){if(e.getComposedRanges){let i=e.getComposedRanges(r.root)[0];if(i)return j3(r,i)}let t=null;function n(i){i.preventDefault(),i.stopImmediatePropagation(),t=i.getTargetRanges()[0]}return r.contentDOM.addEventListener("beforeinput",n,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",n,!0),t?j3(r,t):null}class Ix{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=n=>{let i=e.state.selection.main,{anchor:s,head:o}=i,a=this.toEditorPos(n.updateRangeStart),l=this.toEditorPos(n.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:n.updateRangeStart,editorBase:a,drifted:!1});let c={from:a,to:l,insert:ne.of(n.text.split(`
|
|
584
|
+
`))};if(c.from==this.from&&s<this.from?c.from=s:c.to==this.to&&s>this.to&&(c.to=s),c.from==c.to&&!c.insert.length){let u=M.single(this.toEditorPos(n.selectionStart),this.toEditorPos(n.selectionEnd));u.main.eq(i)||e.dispatch({selection:u,userEvent:"select"});return}if((F.mac||F.android)&&c.from==o-1&&/^\. ?$/.test(n.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:a,to:l,insert:ne.of([n.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let u=this.to-this.from+(c.to-c.from+c.insert.length);Mu(e,c,M.single(this.toEditorPos(n.selectionStart,u),this.toEditorPos(n.selectionEnd,u)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=n=>{let i=[],s=null;for(let o=this.toEditorPos(n.rangeStart),a=this.toEditorPos(n.rangeEnd);o<a;o++){let l=e.coordsForChar(o);s=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||s||new DOMRect,i.push(s)}t.updateCharacterBounds(n.rangeStart,i)},this.handlers.textformatupdate=n=>{let i=[];for(let s of n.getTextFormats()){let o=s.underlineStyle,a=s.underlineThickness;if(o!="None"&&a!="None"){let l=this.toEditorPos(s.rangeStart),c=this.toEditorPos(s.rangeEnd);if(l<c){let u=`text-decoration: underline ${o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${a=="Thin"?1:2}px`;i.push(z.mark({attributes:{style:u}}).range(l,c))}}}e.dispatch({effects:e3.of(z.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:n}=this.composing;this.composing=null,n&&this.reset(e.state)}};for(let n in this.handlers)t.addEventListener(n,this.handlers[n]);this.measureReq={read:n=>{this.editContext.updateControlBounds(n.contentDOM.getBoundingClientRect());let i=Ji(n.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,n=!1,i=this.pendingContextChange;return e.changes.iterChanges((s,o,a,l,c)=>{if(n)return;let u=c.length-(o-s);if(i&&o>=i.to)if(i.from==s&&i.to==o&&i.insert.eq(c)){i=this.pendingContextChange=null,t+=u,this.to+=u;return}else i=null,this.revertPending(e.state);if(s+=t,o+=t,o<=this.from)this.from+=u,this.to+=u;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+c.length>3e4){n=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),c.toString()),this.to+=u}t+=u}),i&&!n&&this.revertPending(e.state),!n}update(e){let t=this.pendingContextChange,n=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(n.from,n.to)&&e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),i=this.toContextPos(t.head);(this.editContext.selectionStart!=n||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(n,i)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let n=this.composing;return n&&n.drifted?n.editorBase+(e-n.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class I{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(i=>i.forEach(s=>n(s,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||bk(e.parent)||document,this.viewState=new I3(e.state||J.create(e)),e.scrollTo&&e.scrollTo.is(ra)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ss).map(i=>new Cu(i));for(let i of this.plugins)i.update(this);this.observer=new Nx(this),this.inputState=new ix(this),this.inputState.ensureHandlers(this.plugins),this.docView=new o3(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof Ae?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,i,s=this.state;for(let d of e){if(d.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=d.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,a=0,l=null;e.some(d=>d.annotation(P3))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=T3(s,o),l||(a=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(J.phrases)!=this.state.facet(J.phrases))return this.setState(s);i=ia.create(this,s,e),i.flags|=a;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(h&&(h=h.map(d.changes)),d.scrollIntoView){let{main:f}=d.state.selection;h=new ti(f.empty?f:M.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of d.effects)f.is(ra)&&(h=f.value.clip(this.state))}this.viewState.update(i,h),this.bidiCache=ma.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),t=this.docView.update(i),this.state.facet(as)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(pa)!=i.state.facet(pa)&&(this.viewState.mustMeasureContent=!0),(t||n||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!i.empty)for(let d of this.state.facet(yu))try{d(i)}catch(f){it(this.state,f,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!m3(this,u)&&c.force&&Gr(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new I3(e),this.plugins=e.facet(ss).map(n=>new Cu(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new o3(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ss),n=e.state.facet(ss);if(t!=n){let i=[];for(let s of n){let o=t.indexOf(s);if(o<0)i.push(new Cu(s));else{let a=this.plugins[o];a.mustUpdate=e,i.push(a)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(n){it(this.state,n,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,i=n.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(x0(n))s=-1,o=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(i);s=f.from,o=f.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(f=>{try{return f.read(this)}catch(p){return it(this.state,p),q3}}),h=ia.create(this,this.state,[]),d=!1;h.flags|=l,t?t.flags|=l:t=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),d=this.docView.update(h),d&&this.docViewUpdate());for(let f=0;f<c.length;f++)if(u[f]!=q3)try{let p=c[f];p.write&&p.write(u[f],this)}catch(p){it(this.state,p)}if(d&&this.docView.updateSelection(!0),!h.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let p=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(p>1||p<-1){i=i+p,n.scrollTop=i/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(yu))a(t)}get themeClasses(){return Lu+" "+(this.state.facet(Ru)?F3:V3)+" "+this.state.facet(pa)}updateAttrs(){let e=z3(this,t3,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Cn)?"true":"false",class:"cm-content",style:`${F.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),z3(this,wu,t);let n=this.observer.ignore(()=>{let i=hu(this.contentDOM,this.contentAttrs,t),s=hu(this.dom,this.editorAttrs,e);return i||s});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let i of n.effects)if(i.is(I.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(as);let e=this.state.facet(I.cspNonce);Fn.mount(this.root,this.styleModules.concat(Rx).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find(n=>n.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Du(this,e,f3(this,e,t,n))}moveByGroup(e,t){return Du(this,e,f3(this,e,t,n=>Zk(this,e.head,n)))}visualLineSide(e,t){let n=this.bidiSpans(e),i=this.textDirectionAt(e.from),s=n[t?n.length-1:0];return M.cursor(s.side(t,i)+e.from,s.forward(!t,i)?1:-1)}moveToLineBoundary(e,t,n=!0){return Uk(this,e,t,n)}moveVertically(e,t,n){return Du(this,e,Xk(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),h3(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),s=this.bidiSpans(i),o=s[qn.find(s,e-i.from,-1,t)];return ts(n,o.dir==ye.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(K0)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Hx)return j0(e.length);let t=this.textDirectionAt(e.from),n;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||W0(s.isolates,n=i3(this,e))))return s.order;n||(n=i3(this,e));let i=Ak(e.text,t,n);return this.bidiCache.push(new ma(e.from,e.to,t,n,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||F.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{C0(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return ra.of(new ti(typeof e=="number"?M.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return ra.of(new ti(M.cursor(n.from),"start","start",n.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return _e.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return _e.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=Fn.newName(),i=[pa.of(n),as.of(Nu(`.${n}`,e))];return t&&t.dark&&i.push(Ru.of(!0)),i}static baseTheme(e){return dr.lowest(as.of(Nu("."+Lu,e,Q3)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&fe.get(n)||fe.get(e);return((t=i==null?void 0:i.rootView)===null||t===void 0?void 0:t.view)||null}}I.styleModule=as,I.inputHandler=Z0,I.clipboardInputFilter=bu,I.clipboardOutputFilter=vu,I.scrollHandler=J0,I.focusChangeEffect=X0,I.perLineTextDirection=K0,I.exceptionSink=U0,I.updateListener=yu,I.editable=Cn,I.mouseSelectionStyle=$0,I.dragMovesSelection=Y0,I.clickAddsSelectionRange=z0,I.decorations=os,I.outerDecorations=n3,I.atomicRanges=ku,I.bidiIsolatedRanges=r3,I.scrollMargins=s3,I.darkTheme=Ru,I.cspNonce=V.define({combine:r=>r.length?r[0]:""}),I.contentAttributes=wu,I.editorAttributes=t3,I.lineWrapping=I.contentAttributes.of({class:"cm-lineWrapping"}),I.announce=Z.define();const Hx=4096,q3={};class ma{constructor(e,t,n,i,s,o){this.from=e,this.to=t,this.dir=n,this.isolates=i,this.fresh=s,this.order=o}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let n=[],i=e.length?e[e.length-1].dir:ye.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==i&&!t.touchesRange(o.from,o.to)&&n.push(new ma(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function z3(r,e,t){for(let n=r.state.facet(e),i=n.length-1;i>=0;i--){let s=n[i],o=typeof s=="function"?s(r):s;o&&uu(o,t)}return t}const Vx=F.mac?"mac":F.windows?"win":F.linux?"linux":"key";function Fx(r,e){const t=r.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let i,s,o,a;for(let l=0;l<t.length-1;++l){const c=t[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))i=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))o=!0;else if(/^mod$/i.test(c))e=="mac"?a=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return i&&(n="Alt-"+n),s&&(n="Ctrl-"+n),a&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function ga(r,e,t){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t!==!1&&e.shiftKey&&(r="Shift-"+r),r}const Qx=dr.default(I.domEventHandlers({keydown(r,e){return U3($3(e.state),r,e,"editor")}})),ya=V.define({enables:Qx}),Y3=new WeakMap;function $3(r){let e=r.facet(ya),t=Y3.get(e);return t||Y3.set(e,t=qx(e.reduce((n,i)=>n.concat(i),[]))),t}function Wx(r,e,t){return U3($3(r.state),e,r,t)}let zn=null;const jx=4e3;function qx(r,e=Vx){let t=Object.create(null),n=Object.create(null),i=(o,a)=>{let l=n[o];if(l==null)n[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,a,l,c,u)=>{var h,d;let f=t[o]||(t[o]=Object.create(null)),p=a.split(/ (?!$)/).map(y=>Fx(y,e));for(let y=1;y<p.length;y++){let C=p.slice(0,y).join(" ");i(C,!0),f[C]||(f[C]={preventDefault:!0,stopPropagation:!1,run:[w=>{let x=zn={view:w,prefix:C,scope:o};return setTimeout(()=>{zn==x&&(zn=null)},jx),!0}]})}let m=p.join(" ");i(m,!1);let g=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((d=(h=f._any)===null||h===void 0?void 0:h.run)===null||d===void 0?void 0:d.slice())||[]});l&&g.run.push(l),c&&(g.preventDefault=!0),u&&(g.stopPropagation=!0)};for(let o of r){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of a){let u=t[c]||(t[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:h}=o;for(let d in u)u[d].run.push(f=>h(f,Iu))}let l=o[e]||o.key;if(l)for(let c of a)s(c,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(c,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return t}let Iu=null;function U3(r,e,t,n){Iu=e;let i=fk(e),s=nt(i,0),o=Ut(s)==i.length&&i!=" ",a="",l=!1,c=!1,u=!1;zn&&zn.view==t&&zn.scope==n&&(a=zn.prefix+" ",b3.indexOf(e.keyCode)<0&&(c=!0,zn=null));let h=new Set,d=g=>{if(g){for(let y of g.run)if(!h.has(y)&&(h.add(y),y(t)))return g.stopPropagation&&(u=!0),!0;g.preventDefault&&(g.stopPropagation&&(u=!0),c=!0)}return!1},f=r[n],p,m;return f&&(d(f[a+ga(i,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(F.windows&&e.ctrlKey&&e.altKey)&&(p=Qn[e.keyCode])&&p!=i?(d(f[a+ga(p,e,!0)])||e.shiftKey&&(m=Gi[e.keyCode])!=i&&m!=p&&d(f[a+ga(m,e,!1)]))&&(l=!0):o&&e.shiftKey&&d(f[a+ga(i,e,!0)])&&(l=!0),!l&&d(f._any)&&(l=!0)),c&&(l=!0),l&&u&&e.stopPropagation(),Iu=null,l}class us{constructor(e,t,n,i,s){this.className=e,this.left=t,this.top=n,this.width=i,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let i=e.coordsAtPos(n.head,n.assoc||1);if(!i)return[];let s=Z3(e);return[new us(t,i.left-s.left,i.top-s.top,null,i.bottom-i.top)]}else return zx(e,t,n)}}function Z3(r){let e=r.scrollDOM.getBoundingClientRect();return{left:(r.textDirection==ye.LTR?e.left:e.right-r.scrollDOM.clientWidth*r.scaleX)-r.scrollDOM.scrollLeft*r.scaleX,top:e.top-r.scrollDOM.scrollTop*r.scaleY}}function X3(r,e,t,n){let i=r.coordsAtPos(e,t*2);if(!i)return n;let s=r.dom.getBoundingClientRect(),o=(i.top+i.bottom)/2,a=r.posAtCoords({x:s.left+1,y:o}),l=r.posAtCoords({x:s.right-1,y:o});return a==null||l==null?n:{from:Math.max(n.from,Math.min(a,l)),to:Math.min(n.to,Math.max(a,l))}}function zx(r,e,t){if(t.to<=r.viewport.from||t.from>=r.viewport.to)return[];let n=Math.max(t.from,r.viewport.from),i=Math.min(t.to,r.viewport.to),s=r.textDirection==ye.LTR,o=r.contentDOM,a=o.getBoundingClientRect(),l=Z3(r),c=o.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),h=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),d=a.right-(u?parseInt(u.paddingRight):0),f=_u(r,n,1),p=_u(r,i,-1),m=f.type==Ke.Text?f:null,g=p.type==Ke.Text?p:null;if(m&&(r.lineWrapping||f.widgetLineBreaks)&&(m=X3(r,n,1,m)),g&&(r.lineWrapping||p.widgetLineBreaks)&&(g=X3(r,i,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return C(w(t.from,t.to,m));{let b=m?w(t.from,null,m):x(f,!1),S=g?w(null,t.to,g):x(p,!0),k=[];return(m||f).to<(g||p).from-(m&&g?1:0)||f.widgetLineBreaks>1&&b.bottom+r.defaultLineHeight/2<S.top?k.push(y(h,b.bottom,d,S.top)):b.bottom<S.top&&r.elementAtHeight((b.bottom+S.top)/2).type==Ke.Text&&(b.bottom=S.top=(b.bottom+S.top)/2),C(b).concat(k).concat(C(S))}function y(b,S,k,D){return new us(e,b-l.left,S-l.top,k-b,D-S)}function C({top:b,bottom:S,horizontal:k}){let D=[];for(let P=0;P<k.length;P+=2)D.push(y(k[P],b,k[P+1],S));return D}function w(b,S,k){let D=1e9,P=-1e9,j=[];function E(A,N,R,q,$){let X=r.coordsAtPos(A,A==k.to?-2:2),De=r.coordsAtPos(R,R==k.from?2:-2);!X||!De||(D=Math.min(X.top,De.top,D),P=Math.max(X.bottom,De.bottom,P),$==ye.LTR?j.push(s&&N?h:X.left,s&&q?d:De.right):j.push(!s&&q?h:De.left,!s&&N?d:X.right))}let T=b??k.from,B=S??k.to;for(let A of r.visibleRanges)if(A.to>T&&A.from<B)for(let N=Math.max(A.from,T),R=Math.min(A.to,B);;){let q=r.state.doc.lineAt(N);for(let $ of r.bidiSpans(q)){let X=$.from+q.from,De=$.to+q.from;if(X>=R)break;De>N&&E(Math.max(X,N),b==null&&X<=T,Math.min(De,R),S==null&&De>=B,$.dir)}if(N=q.to+1,N>=R)break}return j.length==0&&E(T,b==null,B,S==null,r.textDirection),{top:D,bottom:P,horizontal:j}}function x(b,S){let k=a.top+(S?b.top:b.bottom);return{top:k,bottom:k,horizontal:[]}}}function Yx(r,e){return r.constructor==e.constructor&&r.eq(e)}class $x{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(ba)!=e.state.facet(ba)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(ba);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,n)=>!Yx(t,this.drawn[n]))){let t=this.dom.firstChild,n=0;for(let i of e)i.update&&t&&i.constructor&&this.drawn[n].constructor&&i.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(i.draw(),t);for(;t;){let i=t.nextSibling;t.remove(),t=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const ba=V.define();function K3(r){return[_e.define(e=>new $x(e,r)),ba.of(r)]}const hs=V.define({combine(r){return Kt(r,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function Ux(r={}){return[hs.of(r),Zx,Xx,Kx,G0.of(!0)]}function G3(r){return r.startState.facet(hs)!=r.state.facet(hs)}const Zx=K3({above:!0,markers(r){let{state:e}=r,t=e.facet(hs),n=[];for(let i of e.selection.ranges){let s=i==e.selection.main;if(i.empty||t.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=i.empty?i:M.cursor(i.head,i.head>i.anchor?-1:1);for(let l of us.forRange(r,o,a))n.push(l)}}return n},update(r,e){r.transactions.some(n=>n.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=G3(r);return t&&J3(r.state,e),r.docChanged||r.selectionSet||t},mount(r,e){J3(e.state,r)},class:"cm-cursorLayer"});function J3(r,e){e.style.animationDuration=r.facet(hs).cursorBlinkRate+"ms"}const Xx=K3({above:!1,markers(r){return r.state.selection.ranges.map(e=>e.empty?[]:us.forRange(r,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(r,e){return r.docChanged||r.selectionSet||r.viewportChanged||G3(r)},class:"cm-selectionLayer"}),Kx=dr.highest(I.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),e6=Z.define({map(r,e){return r==null?null:e.mapPos(r)}}),ds=Fe.define({create(){return null},update(r,e){return r!=null&&(r=e.changes.mapPos(r)),e.effects.reduce((t,n)=>n.is(e6)?n.value:t,r)}}),Gx=_e.fromClass(class{constructor(r){this.view=r,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(r){var e;let t=r.state.field(ds);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(r.startState.field(ds)!=t||r.docChanged||r.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:r}=this,e=r.state.field(ds),t=e!=null&&r.coordsAtPos(e);if(!t)return null;let n=r.scrollDOM.getBoundingClientRect();return{left:t.left-n.left+r.scrollDOM.scrollLeft*r.scaleX,top:t.top-n.top+r.scrollDOM.scrollTop*r.scaleY,height:t.bottom-t.top}}drawCursor(r){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;r?(this.cursor.style.left=r.left/e+"px",this.cursor.style.top=r.top/t+"px",this.cursor.style.height=r.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(r){this.view.state.field(ds)!=r&&this.view.dispatch({effects:e6.of(r)})}},{eventObservers:{dragover(r){this.setDropPos(this.view.posAtCoords({x:r.clientX,y:r.clientY}))},dragleave(r){(r.target==this.view.contentDOM||!this.view.contentDOM.contains(r.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Jx(){return[ds,Gx]}function t6(r,e,t,n,i){e.lastIndex=0;for(let s=r.iterRange(t,n),o=t,a;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;a=e.exec(s.value);)i(o+a.index,a)}function eS(r,e){let t=r.visibleRanges;if(t.length==1&&t[0].from==r.viewport.from&&t[0].to==r.viewport.to)return t;let n=[];for(let{from:i,to:s}of t)i=Math.max(r.state.doc.lineAt(i).from,i-e),s=Math.min(r.state.doc.lineAt(s).to,s+e),n.length&&n[n.length-1].to>=i?n[n.length-1].to=s:n.push({from:i,to:s});return n}class tS{constructor(e){const{regexp:t,decoration:n,decorate:i,boundary:s,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,i)this.addMatch=(a,l,c,u)=>i(u,c,c+a[0].length,a,l);else if(typeof n=="function")this.addMatch=(a,l,c,u)=>{let h=n(a,l,c);h&&u(c,c+a[0].length,h)};else if(n)this.addMatch=(a,l,c,u)=>u(c,c+a[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let t=new gn,n=t.add.bind(t);for(let{from:i,to:s}of eS(e,this.maxLength))t6(e.state.doc,this.regexp,i,s,(o,a)=>this.addMatch(a,e,o,n));return t.finish()}updateDeco(e,t){let n=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((s,o,a,l)=>{l>=e.view.viewport.from&&a<=e.view.viewport.to&&(n=Math.min(a,n),i=Math.max(l,i))}),e.viewportMoved||i-n>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,t.map(e.changes),n,i):t}updateRange(e,t,n,i){for(let s of e.visibleRanges){let o=Math.max(s.from,n),a=Math.min(s.to,i);if(a>o){let l=e.state.doc.lineAt(o),c=l.to<a?e.state.doc.lineAt(a):l,u=Math.max(s.from,l.from),h=Math.min(s.to,c.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){u=o;break}for(;a<c.to;a++)if(this.boundary.test(c.text[a-c.from])){h=a;break}}let d=[],f,p=(m,g,y)=>d.push(y.range(m,g));if(l==c)for(this.regexp.lastIndex=u-l.from;(f=this.regexp.exec(l.text))&&f.index<h-l.from;)this.addMatch(f,e,f.index+l.from,p);else t6(e.state.doc,this.regexp,u,h,(m,g)=>this.addMatch(g,e,m,p));t=t.update({filterFrom:u,filterTo:h,filter:(m,g)=>m<u||g>h,add:d})}}return t}}const Hu=/x/.unicode!=null?"gu":"g",nS=new RegExp(`[\0-\b
|
|
585
|
+
--\u2028\u2029\uFEFF-]`,Hu),rS={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Vu=null;function iS(){var r;if(Vu==null&&typeof document<"u"&&document.body){let e=document.body.style;Vu=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return Vu||!1}const va=V.define({combine(r){let e=Kt(r,{render:null,specialChars:nS,addSpecialChars:null});return(e.replaceTabs=!iS())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Hu)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Hu)),e}});function sS(r={}){return[va.of(r),oS()]}let n6=null;function oS(){return n6||(n6=_e.fromClass(class{constructor(r){this.view=r,this.decorations=z.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(va)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new tS({regexp:r.specialChars,decoration:(e,t,n)=>{let{doc:i}=t.state,s=nt(e[0],0);if(s==9){let o=i.lineAt(n),a=t.state.tabSize,l=Zr(o.text,a,n-o.from);return z.replace({widget:new uS((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=z.replace({widget:new cS(r,s)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(va);r.startState.facet(va)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}const aS="•";function lS(r){return r>=32?aS:r==10?"":String.fromCharCode(9216+r)}class cS extends bn{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=lS(this.code),n=e.state.phrase("Control character")+" "+(rS[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,n,t);if(i)return i;let s=document.createElement("span");return s.textContent=t,s.title=n,s.setAttribute("aria-label",n),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class uS extends bn{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function hS(){return fS}const dS=z.line({class:"cm-activeLine"}),fS=_e.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let n of r.state.selection.ranges){let i=r.lineBlockAt(n.head);i.from>e&&(t.push(dS.range(i.from)),e=i.from)}return z.set(t)}},{decorations:r=>r.decorations});class pS extends bn{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?Xr(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),i=ts(t[0],n.direction!="rtl"),s=parseInt(n.lineHeight);return i.bottom-i.top>s*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+s}:i}ignoreEvent(){return!1}}function mS(r){let e=_e.fromClass(class{constructor(t){this.view=t,this.placeholder=r?z.set([z.widget({widget:new pS(r),side:1}).range(0)]):z.none}get decorations(){return this.view.state.doc.length?z.none:this.placeholder}},{decorations:t=>t.decorations});return typeof r=="string"?[e,I.contentAttributes.of({"aria-placeholder":r})]:e}const Fu=2e3;function gS(r,e,t){let n=Math.min(e.line,t.line),i=Math.max(e.line,t.line),s=[];if(e.off>Fu||t.off>Fu||e.col<0||t.col<0){let o=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let l=n;l<=i;l++){let c=r.doc.line(l);c.length<=a&&s.push(M.range(c.from+o,c.to+a))}}else{let o=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let l=n;l<=i;l++){let c=r.doc.line(l),u=eu(c.text,o,r.tabSize,!0);if(u<0)s.push(M.cursor(c.to));else{let h=eu(c.text,a,r.tabSize);s.push(M.range(c.from+u,c.from+h))}}}return s}function yS(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function r6(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1),n=r.state.doc.lineAt(t),i=t-n.from,s=i>Fu?-1:i==n.length?yS(r,e.clientX):Zr(n.text,r.state.tabSize,t-n.from);return{line:n.number,col:s,off:i}}function bS(r,e){let t=r6(r,e),n=r.state.selection;return t?{update(i){if(i.docChanged){let s=i.changes.mapPos(i.startState.doc.line(t.line).from),o=i.state.doc.lineAt(s);t={line:o.number,col:t.col,off:Math.min(t.off,o.length)},n=n.map(i.changes)}},get(i,s,o){let a=r6(r,i);if(!a)return n;let l=gS(r.state,t,a);return l.length?o?M.create(l.concat(n.ranges)):M.create(l):n}}:null}function vS(r){let e=t=>t.altKey&&t.button==0;return I.mouseSelectionStyle.of((t,n)=>e(n)?bS(t,n):null)}const CS={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},wS={style:"cursor: crosshair"};function kS(r={}){let[e,t]=CS[r.key||"Alt"],n=_e.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||t(i))},keyup(i){(i.keyCode==e||!t(i))&&this.set(!1)},mousemove(i){this.set(t(i))}}});return[n,I.contentAttributes.of(i=>{var s;return!((s=i.plugin(n))===null||s===void 0)&&s.isDown?wS:null})]}const fs="-10000px";class i6{constructor(e,t,n,i){this.facet=t,this.createTooltipView=n,this.removeTooltipView=i,this.input=e.state.facet(t),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=n(o,s))}update(e,t){var n;let i=e.state.facet(this.facet),s=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let o=[],a=t?[]:null;for(let l=0;l<s.length;l++){let c=s[l],u=-1;if(c){for(let h=0;h<this.tooltips.length;h++){let d=this.tooltips[h];d&&d.create==c.create&&(u=h)}if(u<0)o[l]=this.createTooltipView(c,l?o[l-1]:null),a&&(a[l]=!!c.above);else{let h=o[l]=this.tooltipViews[u];a&&(a[l]=t[u]),h.update&&h.update(e)}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(this.removeTooltipView(l),(n=l.destroy)===null||n===void 0||n.call(l));return t&&(a.forEach((l,c)=>t[c]=l),t.length=a.length),this.input=i,this.tooltips=s,this.tooltipViews=o,!0}}function xS(r){let e=r.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const Qu=V.define({combine:r=>{var e,t,n;return{position:F.ios?"absolute":((e=r.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(i=>i.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=r.find(i=>i.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||xS}}}),s6=new WeakMap,Wu=_e.fromClass(class{constructor(r){this.view=r,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(Qu);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new i6(r,ju,(t,n)=>this.createTooltip(t,n),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r,this.above);e&&this.observeIntersection();let t=e||r.geometryChanged,n=r.state.facet(Qu);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r,e){let t=r.create(this.view),n=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),r.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",t.dom.appendChild(i)}return t.dom.style.position=this.position,t.dom.style.top=fs,t.dom.style.left="0px",this.container.insertBefore(t.dom,n),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var r,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(r=n.destroy)===null||r===void 0||r.call(n);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(F.gecko)t=s.offsetParent!=this.container.ownerDocument.body;else if(s.style.top==fs&&s.style.left=="0px"){let o=s.getBoundingClientRect();t=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(t||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(r=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:r,scaleY:e}=this.view.viewState);let n=this.view.scrollDOM.getBoundingClientRect(),i=xu(this.view);return{visible:{left:n.left+i.left,top:n.top+i.top,right:n.right-i.right,bottom:n.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((s,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(Qu).tooltipSpace(this.view),scaleX:r,scaleY:e,makeAbsolute:t}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{visible:t,space:n,scaleX:i,scaleY:s}=r,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],c=this.manager.tooltipViews[a],{dom:u}=c,h=r.pos[a],d=r.size[a];if(!h||l.clip!==!1&&(h.bottom<=Math.max(t.top,n.top)||h.top>=Math.min(t.bottom,n.bottom)||h.right<Math.max(t.left,n.left)-.1||h.left>Math.min(t.right,n.right)+.1)){u.style.top=fs;continue}let f=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,p=f?7:0,m=d.right-d.left,g=(e=s6.get(c))!==null&&e!==void 0?e:d.bottom-d.top,y=c.offset||OS,C=this.view.textDirection==ye.LTR,w=d.width>n.right-n.left?C?n.left:n.right-d.width:C?Math.max(n.left,Math.min(h.left-(f?14:0)+y.x,n.right-m)):Math.min(Math.max(n.left,h.left-m+(f?14:0)-y.x),n.right-m),x=this.above[a];!l.strictSide&&(x?h.top-g-p-y.y<n.top:h.bottom+g+p+y.y>n.bottom)&&x==n.bottom-h.bottom>h.top-n.top&&(x=this.above[a]=!x);let b=(x?h.top-n.top:n.bottom-h.bottom)-p;if(b<g&&c.resize!==!1){if(b<this.view.defaultLineHeight){u.style.top=fs;continue}s6.set(c,g),u.style.height=(g=b)/s+"px"}else u.style.height&&(u.style.height="");let S=x?h.top-g-p-y.y:h.bottom+p+y.y,k=w+m;if(c.overlap!==!0)for(let D of o)D.left<k&&D.right>w&&D.top<S+g&&D.bottom>S&&(S=x?D.top-g-2-p:D.bottom+p+2);if(this.position=="absolute"?(u.style.top=(S-r.parent.top)/s+"px",o6(u,(w-r.parent.left)/i)):(u.style.top=S/s+"px",o6(u,w/i)),f){let D=h.left+(C?y.x:-y.x)-(w+14-7);f.style.left=D/i+"px"}c.overlap!==!0&&o.push({left:w,top:S,right:k,bottom:S+g}),u.classList.toggle("cm-tooltip-above",x),u.classList.toggle("cm-tooltip-below",!x),c.positioned&&c.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=fs}},{eventObservers:{scroll(){this.maybeMeasure()}}});function o6(r,e){let t=parseInt(r.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(r.style.left=e+"px")}const SS=I.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),OS={x:0,y:0},ju=V.define({enables:[Wu,SS]}),Ca=V.define({combine:r=>r.reduce((e,t)=>e.concat(t),[])});class wa{static create(e){return new wa(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new i6(e,Ca,(t,n)=>this.createHostedView(t,n),t=>t.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let i=n[e];if(i!==void 0){if(t===void 0)t=i;else if(t!==i)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const _S=ju.compute([Ca],r=>{let e=r.facet(Ca);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var n;return(n=t.end)!==null&&n!==void 0?n:t.pos})),create:wa.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class DS{constructor(e,t,n,i,s){this.view=e,this.source=t,this.field=n,this.setHover=i,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let i,s=1;if(n instanceof Wn)i=n.posAtStart;else{if(i=e.posAtCoords(t),i==null)return;let a=e.coordsAtPos(i);if(!a||t.y<a.top||t.y>a.bottom||t.x<a.left-e.defaultCharacterWidth||t.x>a.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(i)).find(u=>u.from<=i&&u.to>=i),c=l&&l.dir==ye.RTL?-1:1;s=t.x<a.left?-c:c}let o=this.source(e,i,s);if(o!=null&&o.then){let a=this.pending={pos:i};o.then(l=>{this.pending==a&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>it(e.state,l,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(Wu),t=e?e.manager.tooltips.findIndex(n=>n.create==wa.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:s}=this;if(i.length&&s&&!MS(s.dom,e)||this.pending){let{pos:o}=i[0]||this.pending,a=(n=(t=i[0])===null||t===void 0?void 0:t.end)!==null&&n!==void 0?n:o;(o==a?this.view.posAtCoords(this.lastMove)!=o:!PS(this.view,o,a,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:n}=this;n&&n.dom.contains(e.relatedTarget)?this.watchTooltipLeave(n.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const ka=4;function MS(r,e){let{left:t,right:n,top:i,bottom:s}=r.getBoundingClientRect(),o;if(o=r.querySelector(".cm-tooltip-arrow")){let a=o.getBoundingClientRect();i=Math.min(a.top,i),s=Math.max(a.bottom,s)}return e.clientX>=t-ka&&e.clientX<=n+ka&&e.clientY>=i-ka&&e.clientY<=s+ka}function PS(r,e,t,n,i,s){let o=r.scrollDOM.getBoundingClientRect(),a=r.documentTop+r.documentPadding.top+r.contentHeight;if(o.left>n||o.right<n||o.top>i||Math.min(o.bottom,a)<i)return!1;let l=r.posAtCoords({x:n,y:i},!1);return l>=e&&l<=t}function TS(r,e={}){let t=Z.define(),n=Fe.define({create(){return[]},update(i,s){if(i.length&&(e.hideOnChange&&(s.docChanged||s.selection)?i=[]:e.hideOn&&(i=i.filter(o=>!e.hideOn(s,o))),s.docChanged)){let o=[];for(let a of i){let l=s.changes.mapPos(a.pos,-1,Xe.TrackDel);if(l!=null){let c=Object.assign(Object.create(null),a);c.pos=l,c.end!=null&&(c.end=s.changes.mapPos(c.end)),o.push(c)}}i=o}for(let o of s.effects)o.is(t)&&(i=o.value),o.is(ES)&&(i=[]);return i},provide:i=>Ca.from(i)});return{active:n,extension:[n,_e.define(i=>new DS(i,r,n,t,e.hoverTime||300)),_S]}}function a6(r,e){let t=r.plugin(Wu);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}const ES=Z.define(),l6=V.define({combine(r){let e,t;for(let n of r)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function ps(r,e){let t=r.plugin(c6),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const c6=_e.fromClass(class{constructor(r){this.input=r.state.facet(ms),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(l6);this.top=new xa(r,!0,e.topContainer),this.bottom=new xa(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(l6);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new xa(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new xa(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(ms);if(t!=this.input){let n=t.filter(l=>l),i=[],s=[],o=[],a=[];for(let l of n){let c=this.specs.indexOf(l),u;c<0?(u=l(r.view),a.push(u)):(u=this.panels[c],u.update&&u.update(r)),i.push(u),(u.top?s:o).push(u)}this.specs=n,this.panels=i,this.top.sync(s),this.bottom.sync(o);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let n of this.panels)n.update&&n.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>I.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class xa{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=u6(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=u6(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function u6(r){let e=r.nextSibling;return r.remove(),e}const ms=V.define({enables:c6});class wn extends fr{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}wn.prototype.elementClass="",wn.prototype.toDOM=void 0,wn.prototype.mapMode=Xe.TrackBefore,wn.prototype.startSide=wn.prototype.endSide=-1,wn.prototype.point=!0;const Sa=V.define(),AS=V.define(),RS={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>re.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},gs=V.define();function LS(r){return[d6(),gs.of(Object.assign(Object.assign({},RS),r))]}const h6=V.define({combine:r=>r.some(e=>e)});function d6(r){return[NS]}const NS=_e.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(gs).map(e=>new p6(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(h6),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(h6)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=re.iter(this.view.state.facet(Sa),this.view.viewport.from),n=[],i=this.gutters.map(s=>new BS(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(s.type)){let o=!0;for(let a of s.type)if(a.type==Ke.Text&&o){qu(t,n,a.from);for(let l of i)l.line(this.view,a,n);o=!1}else if(a.widget)for(let l of i)l.widget(this.view,a)}else if(s.type==Ke.Text){qu(t,n,s.from);for(let o of i)o.line(this.view,s,n)}else if(s.widget)for(let o of i)o.widget(this.view,s);for(let s of i)s.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(gs),t=r.state.facet(gs),n=r.docChanged||r.heightChanged||r.viewportChanged||!re.eq(r.startState.facet(Sa),r.state.facet(Sa),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let i of this.gutters)i.update(r)&&(n=!0);else{n=!0;let i=[];for(let s of t){let o=e.indexOf(s);o<0?i.push(new p6(this.view,s)):(this.gutters[o].update(r),i.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i}return n}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>I.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==ye.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function f6(r){return Array.isArray(r)?r:[r]}function qu(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}class BS{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=re.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:i}=this,s=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==i.elements.length){let a=new m6(e,o,s,n);i.elements.push(a),i.dom.appendChild(a.dom)}else i.elements[this.i].update(e,o,s,n);this.height=t.bottom,this.i++}line(e,t,n){let i=[];qu(this.cursor,i,t.from),n.length&&(i=i.concat(n));let s=this.gutter.config.lineMarker(e,t,i);s&&i.unshift(s);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,i)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t),i=n?[n]:null;for(let s of e.state.facet(AS)){let o=s(e,t.widget,t);o&&(i||(i=[])).push(o)}i&&this.addElement(e,t,i)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class p6{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,i=>{let s=i.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=i.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[n](e,a,i)&&i.preventDefault()});this.markers=f6(t.markers(e)),t.initialSpacer&&(this.spacer=new m6(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=f6(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let n=e.view.viewport;return!re.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class m6{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),IS(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<t.length?t[s++]:null,c=!1;if(l){let u=l.elementClass;u&&(n+=" "+u);for(let h=o;h<this.markers.length;h++)if(this.markers[h].compare(l)){a=h,c=!0;break}}else a=this.markers.length;for(;o<a;){let u=this.markers[o++];if(u.toDOM){u.destroy(i);let h=i.nextSibling;i.remove(),i=h}}if(!l)break;l.toDOM&&(c?i=i.nextSibling:this.dom.insertBefore(l.toDOM(e),i)),c&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function IS(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].compare(e[t]))return!1;return!0}const HS=V.define(),VS=V.define(),ri=V.define({combine(r){return Kt(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let i in t){let s=n[i],o=t[i];n[i]=s?(a,l,c)=>s(a,l,c)||o(a,l,c):o}return n}})}});class zu extends wn{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Yu(r,e){return r.state.facet(ri).formatNumber(e,r.state)}const FS=gs.compute([ri],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(HS)},lineMarker(e,t,n){return n.some(i=>i.toDOM)?null:new zu(Yu(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,n)=>{for(let i of e.state.facet(VS)){let s=i(e,t,n);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(ri)!=e.state.facet(ri),initialSpacer(e){return new zu(Yu(e,g6(e.state.doc.lines)))},updateSpacer(e,t){let n=Yu(t.view,g6(t.view.state.doc.lines));return n==e.number?e:new zu(n)},domEventHandlers:r.facet(ri).domEventHandlers}));function QS(r={}){return[ri.of(r),d6(),FS]}function g6(r){let e=9;for(;e<r;)e=e*10+9;return e}const WS=new class extends wn{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},jS=Sa.compute(["selection"],r=>{let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.head).from;i>t&&(t=i,e.push(WS.range(i)))}return re.of(e)});function qS(){return jS}const y6=1024;let zS=0;class $u{constructor(e,t){this.from=e,this.to=t}}class G{constructor(e={}){this.id=zS++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=st.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}G.closedBy=new G({deserialize:r=>r.split(" ")}),G.openedBy=new G({deserialize:r=>r.split(" ")}),G.group=new G({deserialize:r=>r.split(" ")}),G.isolate=new G({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}}),G.contextHash=new G({perNode:!0}),G.lookAhead=new G({perNode:!0}),G.mounted=new G({perNode:!0});class Oa{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[G.mounted.id]}}const YS=Object.create(null);class st{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):YS,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new st(e.name||"",t,e.id,n);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(G.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return n=>{for(let i=n.prop(G.group),s=-1;s<(i?i.length:0);s++){let o=t[s<0?n.name:i[s]];if(o)return o}}}}st.none=new st("",Object.create(null),0,8);class Uu{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let s of e){let o=s(n);o&&(i||(i=Object.assign({},n.props)),i[o[0].id]=o[1])}t.push(i?new st(n.name,i,n.id,n.flags):n)}return new Uu(t)}}const _a=new WeakMap,b6=new WeakMap;var Ne;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays"})(Ne||(Ne={}));class Te{constructor(e,t,n,i,s){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let e=Oa.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let i=n.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Ku(this.topNode,e)}cursorAt(e,t=0,n=0){let i=_a.get(this)||this.topNode,s=new Ku(i);return s.moveTo(e,t),_a.set(this,s._tree),s}get topNode(){return new kt(this,0,0,null)}resolve(e,t=0){let n=ys(_a.get(this)||this.topNode,e,t,!1);return _a.set(this,n),n}resolveInner(e,t=0){let n=ys(b6.get(this)||this.topNode,e,t,!0);return b6.set(this,n),n}resolveStack(e,t=0){return ZS(this,e,t)}iterate(e){let{enter:t,leave:n,from:i=0,to:s=this.length}=e,o=e.mode||0,a=(o&Ne.IncludeAnonymous)>0;for(let l=this.cursor(o|Ne.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||t(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Ju(st.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,i)=>new Te(this.type,t,n,i,this.propValues),e.makeTree||((t,n,i)=>new Te(st.none,t,n,i)))}static build(e){return XS(e)}}Te.empty=new Te(st.none,[],[],0);class Zu{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Zu(this.buffer,this.index)}}class Yn{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return st.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),e+=4,n==e)return s;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,t,n,i,s){let{buffer:o}=this,a=-1;for(let l=e;l!=t&&!(v6(s,i,o[l+1],o[l+2])&&(a=l,n>0));l=o[l+3]);return a}slice(e,t,n){let i=this.buffer,s=new Uint16Array(t-e),o=0;for(let a=e,l=0;a<t;){s[l++]=i[a++],s[l++]=i[a++]-n;let c=s[l++]=i[a++]-n;s[l++]=i[a++]-e,o=Math.max(o,c)}return new Yn(s,o,this.set)}}function v6(r,e,t,n){switch(r){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function ys(r,e,t,n){for(var i;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let o=!n&&r instanceof kt&&r.index<0?null:r.parent;if(!o)return r;r=o}let s=n?0:Ne.IgnoreOverlays;if(n)for(let o=r,a=o.parent;a;o=a,a=o.parent)o instanceof kt&&o.index<0&&((i=a.enter(e,t,s))===null||i===void 0?void 0:i.from)!=o.from&&(r=a);for(;;){let o=r.enter(e,t,s);if(!o)return r;r=o}}class C6{cursor(e=0){return new Ku(this,e)}getChild(e,t=null,n=null){let i=w6(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return w6(this,e,t,n)}resolve(e,t=0){return ys(this,e,t,!1)}resolveInner(e,t=0){return ys(this,e,t,!0)}matchContext(e){return Xu(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let i=t.lastChild;if(!i||i.to!=t.to)break;i.type.isError&&i.from==i.to?(n=t,t=i.prevSibling):t=i}return n}get node(){return this}get next(){return this.parent}}class kt extends C6{constructor(e,t,n,i){super(),this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=t>0?a.length:-1;e!=c;e+=t){let u=a[e],h=l[e]+o.from;if(v6(i,n,h,h+u.length)){if(u instanceof Yn){if(s&Ne.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,t,n-h,i);if(d>-1)return new $n(new $S(o,u,e,h),null,d)}else if(s&Ne.IncludeAnonymous||!u.type.isAnonymous||Gu(u)){let d;if(!(s&Ne.IgnoreMounts)&&(d=Oa.get(u))&&!d.overlay)return new kt(d.tree,h,e,o);let f=new kt(u,h,e,o);return s&Ne.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?u.children.length-1:0,t,n,i)}}}if(s&Ne.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&Ne.IgnoreOverlays)&&(i=Oa.get(this._tree))&&i.overlay){let s=e-this.from;for(let{from:o,to:a}of i.overlay)if((t>0?o<=s:o<s)&&(t<0?a>=s:a>s))return new kt(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function w6(r,e,t,n){let i=r.cursor(),s=[];if(!i.firstChild())return s;if(t!=null){for(let o=!1;!o;)if(o=i.type.is(t),!i.nextSibling())return s}for(;;){if(n!=null&&i.type.is(n))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return n==null?s:[]}}function Xu(r,e,t=e.length-1){for(let n=r;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class $S{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class $n extends C6{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return s<0?null:new $n(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Ne.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new $n(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new $n(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new $n(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,s=n.buffer[this.index+3];if(s>i){let o=n.buffer[this.index+1];e.push(n.slice(i,s,o)),t.push(0)}return new Te(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function k6(r){if(!r.length)return null;let e=0,t=r[0];for(let s=1;s<r.length;s++){let o=r[s];(o.from>t.from||o.to<t.to)&&(t=o,e=s)}let n=t instanceof kt&&t.index<0?null:t.parent,i=r.slice();return n?i[e]=n:i.splice(e,1),new US(i,t)}class US{constructor(e,t){this.heads=e,this.node=t}get next(){return k6(this.heads)}}function ZS(r,e,t){let n=r.resolveInner(e,t),i=null;for(let s=n instanceof kt?n:n.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[n])).push(o.resolve(e,t)),s=o}else{let o=Oa.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let a=new kt(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[n])).push(ys(a,e,t,!1))}}return i?k6(i):n}class Ku{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof kt)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return e?e instanceof kt?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&Ne.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Ne.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Ne.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(t.findChild(i,this.index,-1,0,4))}else{let i=t.buffer[this.index+3];if(i<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let s=t+e,o=e<0?-1:n._tree.children.length;s!=o;s+=e){let a=n._tree.children[s];if(this.mode&Ne.IncludeAnonymous||a instanceof Yn||!a.type.isAnonymous||Gu(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=s+1;break e}i=this.stack[--s]}for(let i=n;i<this.stack.length;i++)t=new $n(this.buffer,t,this.stack[i]);return this.bufferNode=new $n(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&t&&t(this),i=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return Xu(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return Xu(this._tree,e,i);let o=n[t.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function Gu(r){return r.children.some(e=>e instanceof Yn||!e.type.isAnonymous||Gu(e))}function XS(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:i=y6,reused:s=[],minRepeatType:o=n.types.length}=r,a=Array.isArray(t)?new Zu(t,t.length):t,l=n.types,c=0,u=0;function h(b,S,k,D,P,j){let{id:E,start:T,end:B,size:A}=a,N=u,R=c;for(;A<0;)if(a.next(),A==-1){let On=s[E];k.push(On),D.push(T-b);return}else if(A==-3){c=E;return}else if(A==-4){u=E;return}else throw new RangeError(`Unrecognized record size: ${A}`);let q=l[E],$,X,De=T-b;if(B-T<=i&&(X=g(a.pos-S,P))){let On=new Uint16Array(X.size-X.skip),_t=a.pos-X.size,ln=On.length;for(;a.pos>_t;)ln=y(X.start,On,ln);$=new Yn(On,B-X.start,n),De=X.start-b}else{let On=a.pos-A;a.next();let _t=[],ln=[],Pr=E>=o?E:-1,vi=0,fl=B;for(;a.pos>On;)Pr>=0&&a.id==Pr&&a.size>=0?(a.end<=fl-i&&(p(_t,ln,T,vi,a.end,fl,Pr,N,R),vi=_t.length,fl=a.end),a.next()):j>2500?d(T,On,_t,ln):h(T,On,_t,ln,Pr,j+1);if(Pr>=0&&vi>0&&vi<_t.length&&p(_t,ln,T,vi,T,fl,Pr,N,R),_t.reverse(),ln.reverse(),Pr>-1&&vi>0){let d2=f(q,R);$=Ju(q,_t,ln,0,_t.length,0,B-T,d2,d2)}else $=m(q,_t,ln,B-T,N-B,R)}k.push($),D.push(De)}function d(b,S,k,D){let P=[],j=0,E=-1;for(;a.pos>S;){let{id:T,start:B,end:A,size:N}=a;if(N>4)a.next();else{if(E>-1&&B<E)break;E<0&&(E=A-i),P.push(T,B,A),j++,a.next()}}if(j){let T=new Uint16Array(j*4),B=P[P.length-2];for(let A=P.length-3,N=0;A>=0;A-=3)T[N++]=P[A],T[N++]=P[A+1]-B,T[N++]=P[A+2]-B,T[N++]=N;k.push(new Yn(T,P[2]-B,n)),D.push(B-b)}}function f(b,S){return(k,D,P)=>{let j=0,E=k.length-1,T,B;if(E>=0&&(T=k[E])instanceof Te){if(!E&&T.type==b&&T.length==P)return T;(B=T.prop(G.lookAhead))&&(j=D[E]+T.length+B)}return m(b,k,D,P,j,S)}}function p(b,S,k,D,P,j,E,T,B){let A=[],N=[];for(;b.length>D;)A.push(b.pop()),N.push(S.pop()+k-P);b.push(m(n.types[E],A,N,j-P,T-j,B)),S.push(P-k)}function m(b,S,k,D,P,j,E){if(j){let T=[G.contextHash,j];E=E?[T].concat(E):[T]}if(P>25){let T=[G.lookAhead,P];E=E?[T].concat(E):[T]}return new Te(b,S,k,D,E)}function g(b,S){let k=a.fork(),D=0,P=0,j=0,E=k.end-i,T={size:0,start:0,skip:0};e:for(let B=k.pos-b;k.pos>B;){let A=k.size;if(k.id==S&&A>=0){T.size=D,T.start=P,T.skip=j,j+=4,D+=4,k.next();continue}let N=k.pos-A;if(A<0||N<B||k.start<E)break;let R=k.id>=o?4:0,q=k.start;for(k.next();k.pos>N;){if(k.size<0)if(k.size==-3)R+=4;else break e;else k.id>=o&&(R+=4);k.next()}P=q,D+=A,j+=R}return(S<0||D==b)&&(T.size=D,T.start=P,T.skip=j),T.size>4?T:void 0}function y(b,S,k){let{id:D,start:P,end:j,size:E}=a;if(a.next(),E>=0&&D<o){let T=k;if(E>4){let B=a.pos-(E-4);for(;a.pos>B;)k=y(b,S,k)}S[--k]=T,S[--k]=j-b,S[--k]=P-b,S[--k]=D}else E==-3?c=D:E==-4&&(u=D);return k}let C=[],w=[];for(;a.pos>0;)h(r.start||0,r.bufferStart||0,C,w,-1,0);let x=(e=r.length)!==null&&e!==void 0?e:C.length?w[0]+C[0].length:0;return new Te(l[r.topID],C.reverse(),w.reverse(),x)}const x6=new WeakMap;function Da(r,e){if(!r.isAnonymous||e instanceof Yn||e.type!=r)return 1;let t=x6.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof Te)){t=1;break}t+=Da(r,n)}x6.set(e,t)}return t}function Ju(r,e,t,n,i,s,o,a,l){let c=0;for(let p=n;p<i;p++)c+=Da(r,e[p]);let u=Math.ceil(c*1.5/8),h=[],d=[];function f(p,m,g,y,C){for(let w=g;w<y;){let x=w,b=m[w],S=Da(r,p[w]);for(w++;w<y;w++){let k=Da(r,p[w]);if(S+k>=u)break;S+=k}if(w==x+1){if(S>u){let k=p[x];f(k.children,k.positions,0,k.children.length,m[x]+C);continue}h.push(p[x])}else{let k=m[w-1]+p[w-1].length-b;h.push(Ju(r,p,m,x,w,b,k,null,l))}d.push(b+C-s)}}return f(e,t,n,i,0),(a||l)(h,d,o)}class yr{constructor(e,t,n,i,s=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let i=[new yr(0,e.length,e,0,!1,n)];for(let s of t)s.to>e.length&&i.push(s);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],s=1,o=e.length?e[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<t.length?t[a]:null,h=u?u.fromA:1e9;if(h-l>=n)for(;o&&o.from<h;){let d=o;if(l>=d.from||h<=d.to||c){let f=Math.max(d.from,l)-c,p=Math.min(d.to,h)-c;d=f>=p?null:new yr(f,p,d.tree,d.offset+c,a>0,!!u)}if(d&&i.push(d),o.to>h)break;o=s<e.length?e[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}class S6{startParse(e,t,n){return typeof e=="string"&&(e=new KS(e)),n=n?n.length?n.map(i=>new $u(i.from,i.to)):[new $u(0,0)]:[new $u(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let s=i.advance();if(s)return s}}}class KS{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new G({perNode:!0});let GS=0,kn=class rd{constructor(e,t,n,i){this.name=e,this.set=t,this.base=n,this.modified=i,this.id=GS++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let n=typeof e=="string"?e:"?";if(e instanceof rd&&(t=e),t!=null&&t.base)throw new Error("Can not derive from a modified tag");let i=new rd(n,[],null,[]);if(i.set.push(i),t)for(let s of t.set)i.set.push(s);return i}static defineModifier(e){let t=new Ma(e);return n=>n.modified.indexOf(t)>-1?n:Ma.get(n.base||n,n.modified.concat(t).sort((i,s)=>i.id-s.id))}},JS=0;class Ma{constructor(e){this.name=e,this.instances=[],this.id=JS++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(a=>a.base==e&&eO(t,a.modified));if(n)return n;let i=[],s=new kn(e.name,i,e,t);for(let a of t)a.instances.push(s);let o=tO(t);for(let a of e.set)if(!a.modified.length)for(let l of o)i.push(Ma.get(a,l));return s}}function eO(r,e){return r.length==e.length&&r.every((t,n)=>t==e[n])}function tO(r){let e=[[]];for(let t=0;t<r.length;t++)for(let n=0,i=e.length;n<i;n++)e.push(e[n].concat(r[t]));return e.sort((t,n)=>n.length-t.length)}function bs(r){let e=Object.create(null);for(let t in r){let n=r[t];Array.isArray(n)||(n=[n]);for(let i of t.split(" "))if(i){let s=[],o=2,a=i;for(let h=0;;){if(a=="..."&&h>0&&h+3==i.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!d)throw new RangeError("Invalid path: "+i);if(s.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),h+=d[0].length,h==i.length)break;let f=i[h++];if(h==i.length&&f=="!"){o=0;break}if(f!="/")throw new RangeError("Invalid path: "+i);a=i.slice(h)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new Pa(n,o,l>0?s.slice(0,l):null);e[c]=u.sort(e[c])}}return O6.add(e)}const O6=new G;class Pa{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Pa.empty=new Pa([],2,null);function _6(r,e){let t=Object.create(null);for(let s of r)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let o of s.tag)t[o.id]=s.class;let{scope:n,all:i=null}=e||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let c=t[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:n}}function nO(r,e){let t=null;for(let n of r){let i=n.style(e);i&&(t=t?t+" "+i:i)}return t}function rO(r,e,t,n=0,i=r.length){let s=new iO(n,Array.isArray(e)?e:[e],t);s.highlightRange(r.cursor(),n,i,"",s.highlighters),s.flush(i)}class iO{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,s){let{type:o,from:a,to:l}=e;if(a>=n||l<=t)return;o.isTop&&(s=this.highlighters.filter(f=>!f.scope||f.scope(o)));let c=i,u=sO(e)||Pa.empty,h=nO(s,u.tags);if(h&&(c&&(c+=" "),c+=h,u.mode==1&&(i+=(i?" ":"")+h)),this.startSpan(Math.max(t,a),c),u.opaque)return;let d=e.tree&&e.tree.prop(G.mounted);if(d&&d.overlay){let f=e.node.enter(d.overlay[0].from+a,1),p=this.highlighters.filter(g=>!g.scope||g.scope(d.tree.type)),m=e.firstChild();for(let g=0,y=a;;g++){let C=g<d.overlay.length?d.overlay[g]:null,w=C?C.from+a:l,x=Math.max(t,y),b=Math.min(n,w);if(x<b&&m)for(;e.from<b&&(this.highlightRange(e,x,b,i,s),this.startSpan(Math.min(b,e.to),c),!(e.to>=w||!e.nextSibling())););if(!C||w>n)break;y=C.to+a,y>t&&(this.highlightRange(f.cursor(),Math.max(t,C.from+a),Math.min(n,y),"",p),this.startSpan(Math.min(n,y),c))}m&&e.parent()}else if(e.firstChild()){d&&(i="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,s),this.startSpan(Math.min(n,e.to),c)}while(e.nextSibling());e.parent()}}}function sO(r){let e=r.type.prop(O6);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}const L=kn.define,Ta=L(),Un=L(),D6=L(Un),M6=L(Un),Zn=L(),Ea=L(Zn),eh=L(Zn),tn=L(),br=L(tn),nn=L(),rn=L(),th=L(),vs=L(th),Aa=L(),O={comment:Ta,lineComment:L(Ta),blockComment:L(Ta),docComment:L(Ta),name:Un,variableName:L(Un),typeName:D6,tagName:L(D6),propertyName:M6,attributeName:L(M6),className:L(Un),labelName:L(Un),namespace:L(Un),macroName:L(Un),literal:Zn,string:Ea,docString:L(Ea),character:L(Ea),attributeValue:L(Ea),number:eh,integer:L(eh),float:L(eh),bool:L(Zn),regexp:L(Zn),escape:L(Zn),color:L(Zn),url:L(Zn),keyword:nn,self:L(nn),null:L(nn),atom:L(nn),unit:L(nn),modifier:L(nn),operatorKeyword:L(nn),controlKeyword:L(nn),definitionKeyword:L(nn),moduleKeyword:L(nn),operator:rn,derefOperator:L(rn),arithmeticOperator:L(rn),logicOperator:L(rn),bitwiseOperator:L(rn),compareOperator:L(rn),updateOperator:L(rn),definitionOperator:L(rn),typeOperator:L(rn),controlOperator:L(rn),punctuation:th,separator:L(th),bracket:vs,angleBracket:L(vs),squareBracket:L(vs),paren:L(vs),brace:L(vs),content:tn,heading:br,heading1:L(br),heading2:L(br),heading3:L(br),heading4:L(br),heading5:L(br),heading6:L(br),contentSeparator:L(tn),list:L(tn),quote:L(tn),emphasis:L(tn),strong:L(tn),link:L(tn),monospace:L(tn),strikethrough:L(tn),inserted:L(),deleted:L(),changed:L(),invalid:L(),meta:Aa,documentMeta:L(Aa),annotation:L(Aa),processingInstruction:L(Aa),definition:kn.defineModifier("definition"),constant:kn.defineModifier("constant"),function:kn.defineModifier("function"),standard:kn.defineModifier("standard"),local:kn.defineModifier("local"),special:kn.defineModifier("special")};for(let r in O){let e=O[r];e instanceof kn&&(e.name=r)}_6([{tag:O.link,class:"tok-link"},{tag:O.heading,class:"tok-heading"},{tag:O.emphasis,class:"tok-emphasis"},{tag:O.strong,class:"tok-strong"},{tag:O.keyword,class:"tok-keyword"},{tag:O.atom,class:"tok-atom"},{tag:O.bool,class:"tok-bool"},{tag:O.url,class:"tok-url"},{tag:O.labelName,class:"tok-labelName"},{tag:O.inserted,class:"tok-inserted"},{tag:O.deleted,class:"tok-deleted"},{tag:O.literal,class:"tok-literal"},{tag:O.string,class:"tok-string"},{tag:O.number,class:"tok-number"},{tag:[O.regexp,O.escape,O.special(O.string)],class:"tok-string2"},{tag:O.variableName,class:"tok-variableName"},{tag:O.local(O.variableName),class:"tok-variableName tok-local"},{tag:O.definition(O.variableName),class:"tok-variableName tok-definition"},{tag:O.special(O.variableName),class:"tok-variableName2"},{tag:O.definition(O.propertyName),class:"tok-propertyName tok-definition"},{tag:O.typeName,class:"tok-typeName"},{tag:O.namespace,class:"tok-namespace"},{tag:O.className,class:"tok-className"},{tag:O.macroName,class:"tok-macroName"},{tag:O.propertyName,class:"tok-propertyName"},{tag:O.operator,class:"tok-operator"},{tag:O.comment,class:"tok-comment"},{tag:O.meta,class:"tok-meta"},{tag:O.invalid,class:"tok-invalid"},{tag:O.punctuation,class:"tok-punctuation"}]);var nh;const ii=new G;function oO(r){return V.define({combine:r?e=>e.concat(r):void 0})}const aO=new G;class At{constructor(e,t,n=[],i=""){this.data=e,this.name=i,J.prototype.hasOwnProperty("tree")||Object.defineProperty(J.prototype,"tree",{get(){return Be(this)}}),this.parser=t,this.extension=[Xn.of(this),J.languageData.of((s,o,a)=>{let l=P6(s,o,a),c=l.type.prop(ii);if(!c)return[];let u=s.facet(c),h=l.type.prop(aO);if(h){let d=l.resolve(o-l.from,a);for(let f of h)if(f.test(d,s)){let p=s.facet(f.facet);return f.type=="replace"?p:p.concat(u)}}return u})].concat(n)}isActiveAt(e,t,n=-1){return P6(e,t,n).type.prop(ii)==this.data}findRegions(e){let t=e.facet(Xn);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(s,o)=>{if(s.prop(ii)==this.data){n.push({from:o,to:o+s.length});return}let a=s.prop(G.mounted);if(a){if(a.tree.prop(ii)==this.data){if(a.overlay)for(let l of a.overlay)n.push({from:l.from+o,to:l.to+o});else n.push({from:o,to:o+s.length});return}else if(a.overlay){let l=n.length;if(i(a.tree,a.overlay[0].from+o),n.length>l)return}}for(let l=0;l<s.children.length;l++){let c=s.children[l];c instanceof Te&&i(c,s.positions[l]+o)}};return i(Be(e),0),n}get allowsNesting(){return!0}}At.setState=Z.define();function P6(r,e,t){let n=r.facet(Xn),i=Be(r).topNode;if(!n||n.allowsNesting)for(let s=i;s;s=s.enter(e,t,Ne.ExcludeBuffers))s.type.isTop&&(i=s);return i}class vr extends At{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=oO(e.languageData);return new vr(t,e.parser.configure({props:[ii.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new vr(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Be(r){let e=r.field(At.state,!1);return e?e.tree:Te.empty}class lO{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Cs=null;class Ra{constructor(e,t,n=[],i,s,o,a,l){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Ra(e,t,[],Te.empty,0,n,[],null)}startParse(){return this.parser.startParse(new lO(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=Te.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(yr.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(yr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Cs;Cs=this;try{return e()}finally{Cs=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=T6(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((c,u,h,d)=>l.push({fromA:c,toA:u,fromB:h,toB:d})),n=yr.applyChanges(n,l),i=Te.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let c of this.skipped){let u=e.mapPos(c.from,1),h=e.mapPos(c.to,-1);u<h&&a.push({from:u,to:h})}}}return new Ra(this.parser,t,n,i,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:i,to:s}=this.skipped[n];i<e.to&&s>e.from&&(this.fragments=T6(this.fragments,i,s),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends S6{createParse(t,n,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let l=Cs;if(l){for(let c of i)l.tempSkipped.push(c);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=o,new Te(st.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Cs}}function T6(r,e,t){return yr.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}class si{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new si(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Ra.create(e.facet(Xn).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new si(n)}}At.state=Fe.define({create:si.init,update(r,e){for(let t of e.effects)if(t.is(At.setState))return t.value;return e.startState.facet(Xn)!=e.state.facet(Xn)?si.init(e.state):r.apply(e)}});let E6=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(E6=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const rh=typeof navigator<"u"&&(!((nh=navigator.scheduling)===null||nh===void 0)&&nh.isInputPending)?()=>navigator.scheduling.isInputPending():null,cO=_e.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(At.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(At.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=E6(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,s=n.field(At.state);if(s.tree==s.context.tree&&s.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!rh?Math.max(25,e.timeRemaining()-5):1e9),a=s.context.treeLen<i&&n.doc.length>i+1e3,l=s.context.work(()=>rh&&rh()||Date.now()>o,i+(a?0:1e5));this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:At.setState.of(new si(s.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>it(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Xn=V.define({combine(r){return r.length?r[0]:null},enables:r=>[At.state,cO,I.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});class ih{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const uO=V.define(),La=V.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function Na(r){let e=r.facet(La);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ws(r,e){let t="",n=r.tabSize,i=r.facet(La)[0];if(i==" "){for(;e>=n;)t+=" ",e-=n;i=" "}for(let s=0;s<e;s++)t+=i;return t}function sh(r,e){r instanceof J&&(r=new Ba(r));for(let n of r.state.facet(uO)){let i=n(r,e);if(i!==void 0)return i}let t=Be(r.state);return t.length>=e?hO(r,t,e):null}class Ba{constructor(e,t={}){this.state=e,this.options=t,this.unit=Na(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=n.from&&i<=n.to?s&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:n.text.slice(i-n.from),from:i}:{text:n.text.slice(0,i-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:i}=this.lineAt(e,t);return n.slice(e-i,Math.min(n.length,e+100-i))}column(e,t=1){let{text:n,from:i}=this.lineAt(e,t),s=this.countColumn(n,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(s+=o-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,t=e.length){return Zr(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let o=s(i);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ia=new G;function hO(r,e,t){let n=e.resolveStack(t),i=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(i!=n.node){let s=[];for(let o=i;o&&!(o.from==n.node.from&&o.type==n.node.type);o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)n={node:s[o],next:n}}return A6(n,r,t)}function A6(r,e,t){for(let n=r;n;n=n.next){let i=fO(n.node);if(i)return i(oh.create(e,t,n))}return 0}function dO(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function fO(r){let e=r.type.prop(Ia);if(e)return e;let t=r.firstChild,n;if(t&&(n=t.type.prop(G.closedBy))){let i=r.lastChild,s=i&&n.indexOf(i.name)>-1;return o=>L6(o,!0,1,void 0,s&&!dO(o)?i.from:void 0)}return r.parent==null?pO:null}function pO(){return 0}class oh extends Ba{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new oh(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(mO(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return A6(this.context.next,this.base,this.pos)}}function mO(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function gO(r){let e=r.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let i=r.options.simulateBreak,s=r.state.doc.lineAt(t.from),o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=t.to;;){let l=e.childAfter(a);if(!l||l==n)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let c=/^ */.exec(s.text.slice(t.to-s.from))[0].length;return{from:t.from,to:t.to+c}}a=l.to}}function R6({closing:r,align:e=!0,units:t=1}){return n=>L6(n,e,t,r)}function L6(r,e,t,n,i){let s=r.textAfter,o=s.match(/^\s*/)[0].length,a=n&&s.slice(o,o+n.length)==n||i==r.pos+o,l=e?gO(r):null;return l?a?r.column(l.from):r.column(l.to):r.baseIndent+(a?0:r.unit*t)}function ah({except:r,units:e=1}={}){return t=>{let n=r&&r.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const yO=200;function bO(){return J.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:n}=r.newSelection.main,i=t.lineAt(n);if(n>i.from+yO)return r;let s=t.sliceString(i.from,n);if(!e.some(c=>c.test(s)))return r;let{state:o}=r,a=-1,l=[];for(let{head:c}of o.selection.ranges){let u=o.doc.lineAt(c);if(u.from==a)continue;a=u.from;let h=sh(o,u.from);if(h==null)continue;let d=/^\s*/.exec(u.text)[0],f=ws(o,h);d!=f&&l.push({from:u.from,to:u.from+d.length,insert:f})}return l.length?[r,{changes:l,sequential:!0}]:r})}const vO=V.define(),Ha=new G;function N6(r){let e=r.firstChild,t=r.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?r.to:t.from}:null}function CO(r,e,t){let n=Be(r);if(n.length<t)return null;let i=n.resolveStack(t,1),s=null;for(let o=i;o;o=o.next){let a=o.node;if(a.to<=t||a.from>t)continue;if(s&&a.from<e)break;let l=a.type.prop(Ha);if(l&&(a.to<n.length-50||n.length==r.doc.length||!wO(a))){let c=l(a,r);c&&c.from<=t&&c.from>=e&&c.to>t&&(s=c)}}return s}function wO(r){let e=r.lastChild;return e&&e.to==r.to&&e.type.isError}function Va(r,e,t){for(let n of r.facet(vO)){let i=n(r,e,t);if(i)return i}return CO(r,e,t)}function B6(r,e){let t=e.mapPos(r.from,1),n=e.mapPos(r.to,-1);return t>=n?void 0:{from:t,to:n}}const Fa=Z.define({map:B6}),ks=Z.define({map:B6});function I6(r){let e=[];for(let{head:t}of r.state.selection.ranges)e.some(n=>n.from<=t&&n.to>=t)||e.push(r.lineBlockAt(t));return e}const Cr=Fe.define({create(){return z.none},update(r,e){r=r.map(e.changes);for(let t of e.effects)if(t.is(Fa)&&!kO(r,t.value.from,t.value.to)){let{preparePlaceholder:n}=e.state.facet(F6),i=n?z.replace({widget:new DO(n(e.state,t.value))}):j6;r=r.update({add:[i.range(t.value.from,t.value.to)]})}else t.is(ks)&&(r=r.update({filter:(n,i)=>t.value.from!=n||t.value.to!=i,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:n}=e.selection.main;r.between(n,n,(i,s)=>{i<n&&s>n&&(t=!0)}),t&&(r=r.update({filterFrom:n,filterTo:n,filter:(i,s)=>s<=n||i>=n}))}return r},provide:r=>I.decorations.from(r),toJSON(r,e){let t=[];return r.between(0,e.doc.length,(n,i)=>{t.push(n,i)}),t},fromJSON(r){if(!Array.isArray(r)||r.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<r.length;){let n=r[t++],i=r[t++];if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(j6.range(n,i))}return z.set(e,!0)}});function Qa(r,e,t){var n;let i=null;return(n=r.field(Cr,!1))===null||n===void 0||n.between(e,t,(s,o)=>{(!i||i.from>s)&&(i={from:s,to:o})}),i}function kO(r,e,t){let n=!1;return r.between(e,e,(i,s)=>{i==e&&s==t&&(n=!0)}),n}function H6(r,e){return r.field(Cr,!1)?e:e.concat(Z.appendConfig.of(Q6()))}const xO=r=>{for(let e of I6(r)){let t=Va(r.state,e.from,e.to);if(t)return r.dispatch({effects:H6(r.state,[Fa.of(t),V6(r,t)])}),!0}return!1},SO=r=>{if(!r.state.field(Cr,!1))return!1;let e=[];for(let t of I6(r)){let n=Qa(r.state,t.from,t.to);n&&e.push(ks.of(n),V6(r,n,!1))}return e.length&&r.dispatch({effects:e}),e.length>0};function V6(r,e,t=!0){let n=r.state.doc.lineAt(e.from).number,i=r.state.doc.lineAt(e.to).number;return I.announce.of(`${r.state.phrase(t?"Folded lines":"Unfolded lines")} ${n} ${r.state.phrase("to")} ${i}.`)}const OO=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:xO},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:SO},{key:"Ctrl-Alt-[",run:r=>{let{state:e}=r,t=[];for(let n=0;n<e.doc.length;){let i=r.lineBlockAt(n),s=Va(e,i.from,i.to);s&&t.push(Fa.of(s)),n=(s?r.lineBlockAt(s.to):i).to+1}return t.length&&r.dispatch({effects:H6(r.state,t)}),!!t.length}},{key:"Ctrl-Alt-]",run:r=>{let e=r.state.field(Cr,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,r.state.doc.length,(n,i)=>{t.push(ks.of({from:n,to:i}))}),r.dispatch({effects:t}),!0}}],_O={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},F6=V.define({combine(r){return Kt(r,_O)}});function Q6(r){return[Cr,TO]}function W6(r,e){let{state:t}=r,n=t.facet(F6),i=o=>{let a=r.lineBlockAt(r.posAtDOM(o.target)),l=Qa(r.state,a.from,a.to);l&&r.dispatch({effects:ks.of(l)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(r,i,e);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",t.phrase("folded code")),s.title=t.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}const j6=z.replace({widget:new class extends bn{toDOM(r){return W6(r,null)}}});class DO extends bn{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return W6(e,this.value)}}const MO={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class lh extends wn{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function PO(r={}){let e=Object.assign(Object.assign({},MO),r),t=new lh(e,!0),n=new lh(e,!1),i=_e.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Xn)!=o.state.facet(Xn)||o.startState.field(Cr,!1)!=o.state.field(Cr,!1)||Be(o.startState)!=Be(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let a=new gn;for(let l of o.viewportLineBlocks){let c=Qa(o.state,l.from,l.to)?n:Va(o.state,l.from,l.to)?t:null;c&&a.add(l.from,l.from,c)}return a.finish()}}),{domEventHandlers:s}=e;return[i,LS({class:"cm-foldGutter",markers(o){var a;return((a=o.plugin(i))===null||a===void 0?void 0:a.markers)||re.empty},initialSpacer(){return new lh(e,!1)},domEventHandlers:Object.assign(Object.assign({},s),{click:(o,a,l)=>{if(s.click&&s.click(o,a,l))return!0;let c=Qa(o.state,a.from,a.to);if(c)return o.dispatch({effects:ks.of(c)}),!0;let u=Va(o.state,a.from,a.to);return u?(o.dispatch({effects:Fa.of(u)}),!0):!1}})}),Q6()]}const TO=I.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class xs{constructor(e,t){this.specs=e;let n;function i(a){let l=Fn.newName();return(n||(n=Object.create(null)))["."+l]=a,l}const s=typeof t.all=="string"?t.all:t.all?i(t.all):void 0,o=t.scope;this.scope=o instanceof At?a=>a.prop(ii)==o.data:o?a=>a==o:void 0,this.style=_6(e.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=n?new Fn(n):null,this.themeType=t.themeType}static define(e,t){return new xs(e,t||{})}}const ch=V.define(),q6=V.define({combine(r){return r.length?[r[0]]:null}});function uh(r){let e=r.facet(ch);return e.length?e:r.facet(q6)}function z6(r,e){let t=[AO],n;return r instanceof xs&&(r.module&&t.push(I.styleModule.of(r.module)),n=r.themeType),e!=null&&e.fallback?t.push(q6.of(r)):n?t.push(ch.computeN([I.darkTheme],i=>i.facet(I.darkTheme)==(n=="dark")?[r]:[])):t.push(ch.of(r)),t}class EO{constructor(e){this.markCache=Object.create(null),this.tree=Be(e.state),this.decorations=this.buildDeco(e,uh(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Be(e.state),n=uh(e.state),i=n!=uh(e.startState),{viewport:s}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<s.to&&!i&&t.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=s.to)}buildDeco(e,t){if(!t||!this.tree.length)return z.none;let n=new gn;for(let{from:i,to:s}of e.visibleRanges)rO(this.tree,t,(o,a,l)=>{n.add(o,a,this.markCache[l]||(this.markCache[l]=z.mark({class:l})))},i,s);return n.finish()}}const AO=dr.high(_e.fromClass(EO,{decorations:r=>r.decorations})),RO=xs.define([{tag:O.meta,color:"#404740"},{tag:O.link,textDecoration:"underline"},{tag:O.heading,textDecoration:"underline",fontWeight:"bold"},{tag:O.emphasis,fontStyle:"italic"},{tag:O.strong,fontWeight:"bold"},{tag:O.strikethrough,textDecoration:"line-through"},{tag:O.keyword,color:"#708"},{tag:[O.atom,O.bool,O.url,O.contentSeparator,O.labelName],color:"#219"},{tag:[O.literal,O.inserted],color:"#164"},{tag:[O.string,O.deleted],color:"#a11"},{tag:[O.regexp,O.escape,O.special(O.string)],color:"#e40"},{tag:O.definition(O.variableName),color:"#00f"},{tag:O.local(O.variableName),color:"#30a"},{tag:[O.typeName,O.namespace],color:"#085"},{tag:O.className,color:"#167"},{tag:[O.special(O.variableName),O.macroName],color:"#256"},{tag:O.definition(O.propertyName),color:"#00c"},{tag:O.comment,color:"#940"},{tag:O.invalid,color:"#f00"}]),LO=I.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Y6=1e4,$6="()[]{}",U6=V.define({combine(r){return Kt(r,{afterCursor:!0,brackets:$6,maxScanDistance:Y6,renderMatch:IO})}}),NO=z.mark({class:"cm-matchingBracket"}),BO=z.mark({class:"cm-nonmatchingBracket"});function IO(r){let e=[],t=r.matched?NO:BO;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}const HO=[Fe.define({create(){return z.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],n=e.state.facet(U6);for(let i of e.state.selection.ranges){if(!i.empty)continue;let s=sn(e.state,i.head,-1,n)||i.head>0&&sn(e.state,i.head-1,1,n)||n.afterCursor&&(sn(e.state,i.head,1,n)||i.head<e.state.doc.length&&sn(e.state,i.head+1,-1,n));s&&(t=t.concat(n.renderMatch(s,e.state)))}return z.set(t,!0)},provide:r=>I.decorations.from(r)}),LO];function VO(r={}){return[U6.of(r),HO]}const FO=new G;function hh(r,e,t){let n=r.prop(e<0?G.openedBy:G.closedBy);if(n)return n;if(r.name.length==1){let i=t.indexOf(r.name);if(i>-1&&i%2==(e<0?1:0))return[t[i+e]]}return null}function dh(r){let e=r.type.prop(FO);return e?e(r.node):r}function sn(r,e,t,n={}){let i=n.maxScanDistance||Y6,s=n.brackets||$6,o=Be(r),a=o.resolveInner(e,t);for(let l=a;l;l=l.parent){let c=hh(l.type,t,s);if(c&&l.from<l.to){let u=dh(l);if(u&&(t>0?e>=u.from&&e<u.to:e>u.from&&e<=u.to))return QO(r,e,t,l,u,c,s)}}return WO(r,e,t,o,a.type,i,s)}function QO(r,e,t,n,i,s,o){let a=n.parent,l={from:i.from,to:i.to},c=0,u=a==null?void 0:a.cursor();if(u&&(t<0?u.childBefore(n.from):u.childAfter(n.to)))do if(t<0?u.to<=n.from:u.from>=n.to){if(c==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let h=dh(u);return{start:l,end:h?{from:h.from,to:h.to}:void 0,matched:!0}}else if(hh(u.type,t,o))c++;else if(hh(u.type,-t,o)){if(c==0){let h=dh(u);return{start:l,end:h&&h.from<h.to?{from:h.from,to:h.to}:void 0,matched:!1}}c--}}while(t<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}function WO(r,e,t,n,i,s,o){let a=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),l=o.indexOf(a);if(l<0||l%2==0!=t>0)return null;let c={from:t<0?e-1:e,to:t>0?e+1:e},u=r.doc.iterRange(e,t>0?r.doc.length:0),h=0;for(let d=0;!u.next().done&&d<=s;){let f=u.value;t<0&&(d+=f.length);let p=e+d*t;for(let m=t>0?0:f.length-1,g=t>0?f.length:-1;m!=g;m+=t){let y=o.indexOf(f[m]);if(!(y<0||n.resolveInner(p+m,1).type!=i))if(y%2==0==t>0)h++;else{if(h==1)return{start:c,end:{from:p+m,to:p+m+1},matched:y>>1==l>>1};h--}}t>0&&(d+=f.length)}return u.done?{start:c,matched:!1}:null}const jO=Object.create(null),Z6=[st.none],X6=[],K6=Object.create(null),qO=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])qO[r]=zO(jO,e);function fh(r,e){X6.indexOf(r)>-1||(X6.push(r),console.warn(e))}function zO(r,e){let t=[];for(let a of e.split(" ")){let l=[];for(let c of a.split(".")){let u=r[c]||O[c];u?typeof u=="function"?l.length?l=l.map(u):fh(c,`Modifier ${c} used at start of tag`):l.length?fh(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:fh(c,`Unknown highlighting tag ${c}`)}for(let c of l)t.push(c)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),i=n+" "+t.map(a=>a.id),s=K6[i];if(s)return s.id;let o=K6[i]=st.define({id:Z6.length,name:n,props:[bs({[n]:t})]});return Z6.push(o),o.id}ye.RTL,ye.LTR;const YO=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),n=mh(r.state,t.from);return n.line?$O(r):n.block?ZO(r):!1};function ph(r,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=r(e,t);return i?(n(t.update(i)),!0):!1}}const $O=ph(GO,0),UO=ph(G6,0),ZO=ph((r,e)=>G6(r,e,KO(e)),0);function mh(r,e){let t=r.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}const Ss=50;function XO(r,{open:e,close:t},n,i){let s=r.sliceDoc(n-Ss,n),o=r.sliceDoc(i,i+Ss),a=/\s*$/.exec(s)[0].length,l=/^\s*/.exec(o)[0].length,c=s.length-a;if(s.slice(c-e.length,c)==e&&o.slice(l,l+t.length)==t)return{open:{pos:n-a,margin:a&&1},close:{pos:i+l,margin:l&&1}};let u,h;i-n<=2*Ss?u=h=r.sliceDoc(n,i):(u=r.sliceDoc(n,n+Ss),h=r.sliceDoc(i-Ss,i));let d=/^\s*/.exec(u)[0].length,f=/\s*$/.exec(h)[0].length,p=h.length-f-t.length;return u.slice(d,d+e.length)==e&&h.slice(p,p+t.length)==t?{open:{pos:n+d+e.length,margin:/\s/.test(u.charAt(d+e.length))?1:0},close:{pos:i-f-t.length,margin:/\s/.test(h.charAt(p-1))?1:0}}:null}function KO(r){let e=[];for(let t of r.selection.ranges){let n=r.doc.lineAt(t.from),i=t.to<=n.to?n:r.doc.lineAt(t.to);i.from>n.from&&i.from==t.to&&(i=t.to==n.to+1?n:r.doc.lineAt(t.to-1));let s=e.length-1;s>=0&&e[s].to>n.from?e[s].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to})}return e}function G6(r,e,t=e.selection.ranges){let n=t.map(s=>mh(e,s.from).block);if(!n.every(s=>s))return null;let i=t.map((s,o)=>XO(e,n[o],s.from,s.to));if(r!=2&&!i.every(s=>s))return{changes:e.changes(t.map((s,o)=>i[o]?[]:[{from:s.from,insert:n[o].open+" "},{from:s.to,insert:" "+n[o].close}]))};if(r!=1&&i.some(s=>s)){let s=[];for(let o=0,a;o<i.length;o++)if(a=i[o]){let l=n[o],{open:c,close:u}=a;s.push({from:c.pos-l.open.length,to:c.pos+c.margin},{from:u.pos-u.margin,to:u.pos+l.close.length})}return{changes:s}}return null}function GO(r,e,t=e.selection.ranges){let n=[],i=-1;for(let{from:s,to:o}of t){let a=n.length,l=1e9,c=mh(e,s).line;if(c){for(let u=s;u<=o;){let h=e.doc.lineAt(u);if(h.from>i&&(s==o||o>h.from)){i=h.from;let d=/^\s*/.exec(h.text)[0].length,f=d==h.length,p=h.text.slice(d,d+c.length)==c?d:-1;d<h.text.length&&d<l&&(l=d),n.push({line:h,comment:p,token:c,indent:d,empty:f,single:!1})}u=h.to+1}if(l<1e9)for(let u=a;u<n.length;u++)n[u].indent<n[u].line.text.length&&(n[u].indent=l);n.length==a+1&&(n[a].single=!0)}}if(r!=2&&n.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:a,token:l,indent:c,empty:u,single:h}of n)(h||!u)&&s.push({from:a.from+c,insert:l+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(r!=1&&n.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:a,token:l}of n)if(a>=0){let c=o.from+a,u=c+l.length;o.text[u-o.from]==" "&&u++,s.push({from:c,to:u})}return{changes:s}}return null}const gh=Xt.define(),JO=Xt.define(),e_=V.define(),J6=V.define({combine(r){return Kt(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}}),em=Fe.define({create(){return on.empty},update(r,e){let t=e.state.facet(J6),n=e.annotation(gh);if(n){let l=ot.fromTransaction(e,n.selection),c=n.side,u=c==0?r.undone:r.done;return l?u=ja(u,u.length,t.minDepth,l):u=rm(u,e.startState.selection),new on(c==0?n.rest:u,c==0?u:n.rest)}let i=e.annotation(JO);if((i=="full"||i=="before")&&(r=r.isolate()),e.annotation(Ae.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let s=ot.fromTransaction(e),o=e.annotation(Ae.time),a=e.annotation(Ae.userEvent);return s?r=r.addChanges(s,o,a,t,e):e.selection&&(r=r.addSelection(e.startState.selection,o,a,t.newGroupDelay)),(i=="full"||i=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new on(r.done.map(ot.fromJSON),r.undone.map(ot.fromJSON))}});function t_(r={}){return[em,J6.of(r),I.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?tm:e.inputType=="historyRedo"?yh:null;return n?(e.preventDefault(),n(t)):!1}})]}function Wa(r,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let i=t.field(em,!1);if(!i)return!1;let s=i.pop(r,t,e);return s?(n(s),!0):!1}}const tm=Wa(0,!1),yh=Wa(1,!1),n_=Wa(0,!0),r_=Wa(1,!0);class ot{constructor(e,t,n,i,s){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=s}setSelAfter(e){return new ot(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new ot(e.changes&&Ee.fromJSON(e.changes),[],e.mapped&&Zt.fromJSON(e.mapped),e.startSelection&&M.fromJSON(e.startSelection),e.selectionsAfter.map(M.fromJSON))}static fromTransaction(e,t){let n=xt;for(let i of e.startState.facet(e_)){let s=i(e);s.length&&(n=n.concat(s))}return!n.length&&e.changes.empty?null:new ot(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,xt)}static selection(e){return new ot(void 0,xt,void 0,void 0,e)}}function ja(r,e,t,n){let i=e+1>t+20?e-t-1:0,s=r.slice(i,e);return s.push(n),s}function i_(r,e){let t=[],n=!1;return r.iterChangedRanges((i,s)=>t.push(i,s)),e.iterChangedRanges((i,s,o,a)=>{for(let l=0;l<t.length;){let c=t[l++],u=t[l++];a>=c&&o<=u&&(n=!0)}}),n}function s_(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function nm(r,e){return r.length?e.length?r.concat(e):r:e}const xt=[],o_=200;function rm(r,e){if(r.length){let t=r[r.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-o_));return n.length&&n[n.length-1].eq(e)?r:(n.push(e),ja(r,r.length-1,1e9,t.setSelAfter(n)))}else return[ot.selection([e])]}function a_(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function bh(r,e){if(!r.length)return r;let t=r.length,n=xt;for(;t;){let i=l_(r[t-1],e,n);if(i.changes&&!i.changes.empty||i.effects.length){let s=r.slice(0,t);return s[t-1]=i,s}else e=i.mapped,t--,n=i.selectionsAfter}return n.length?[ot.selection(n)]:xt}function l_(r,e,t){let n=nm(r.selectionsAfter.length?r.selectionsAfter.map(a=>a.map(e)):xt,t);if(!r.changes)return ot.selection(n);let i=r.changes.map(e),s=e.mapDesc(r.changes,!0),o=r.mapped?r.mapped.composeDesc(s):s;return new ot(i,Z.mapEffects(r.effects,e),o,r.startSelection.map(s),n)}const c_=/^(input\.type|delete)($|\.)/;class on{constructor(e,t,n=0,i=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new on(this.done,this.undone):this}addChanges(e,t,n,i,s){let o=this.done,a=o[o.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!n||c_.test(n))&&(!a.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(s,i_(a.changes,e.changes))||n=="input.type.compose")?o=ja(o,o.length-1,i.minDepth,new ot(e.changes.compose(a.changes),nm(Z.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,xt)):o=ja(o,o.length,i.minDepth,e),new on(o,xt,t,n)}addSelection(e,t,n,i){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:xt;return s.length>0&&t-this.prevTime<i&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&s_(s[s.length-1],e)?this:new on(rm(this.done,e),this.undone,t,n)}addMapping(e){return new on(bh(this.done,e),bh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=e==0?this.done:this.undone;if(i.length==0)return null;let s=i[i.length-1],o=s.selectionsAfter[0]||t.selection;if(n&&s.selectionsAfter.length)return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:gh.of({side:e,rest:a_(i),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let a=i.length==1?xt:i.slice(0,i.length-1);return s.mapped&&(a=bh(a,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:gh.of({side:e,rest:a,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}on.empty=new on(xt,xt);const u_=[{key:"Mod-z",run:tm,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:yh,preventDefault:!0},{linux:"Ctrl-Shift-z",run:yh,preventDefault:!0},{key:"Mod-u",run:n_,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:r_,preventDefault:!0}];function oi(r,e){return M.create(r.ranges.map(e),r.mainIndex)}function an(r,e){return r.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Rt({state:r,dispatch:e},t){let n=oi(r.selection,t);return n.eq(r.selection,!0)?!1:(e(an(r,n)),!0)}function qa(r,e){return M.cursor(e?r.to:r.from)}function im(r,e){return Rt(r,t=>t.empty?r.moveByChar(t,e):qa(t,e))}function $e(r){return r.textDirectionAt(r.state.selection.main.head)==ye.LTR}const sm=r=>im(r,!$e(r)),om=r=>im(r,$e(r));function am(r,e){return Rt(r,t=>t.empty?r.moveByGroup(t,e):qa(t,e))}const h_=r=>am(r,!$e(r)),d_=r=>am(r,$e(r));function f_(r,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function za(r,e,t){let n=Be(r).resolveInner(e.head),i=t?G.closedBy:G.openedBy;for(let l=e.head;;){let c=t?n.childAfter(l):n.childBefore(l);if(!c)break;f_(r,c,i)?n=c:l=t?c.to:c.from}let s=n.type.prop(i),o,a;return s&&(o=t?sn(r,n.from,1):sn(r,n.to,-1))&&o.matched?a=t?o.end.to:o.end.from:a=t?n.to:n.from,M.cursor(a,t?-1:1)}const p_=r=>Rt(r,e=>za(r.state,e,!$e(r))),m_=r=>Rt(r,e=>za(r.state,e,$e(r)));function lm(r,e){return Rt(r,t=>{if(!t.empty)return qa(t,e);let n=r.moveVertically(t,e);return n.head!=t.head?n:r.moveToLineBoundary(t,e)})}const cm=r=>lm(r,!1),um=r=>lm(r,!0);function hm(r){let e=r.scrollDOM.clientHeight<r.scrollDOM.scrollHeight-2,t=0,n=0,i;if(e){for(let s of r.state.facet(I.scrollMargins)){let o=s(r);o!=null&&o.top&&(t=Math.max(o==null?void 0:o.top,t)),o!=null&&o.bottom&&(n=Math.max(o==null?void 0:o.bottom,n))}i=r.scrollDOM.clientHeight-t-n}else i=(r.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:n,selfScroll:e,height:Math.max(r.defaultLineHeight,i-5)}}function dm(r,e){let t=hm(r),{state:n}=r,i=oi(n.selection,o=>o.empty?r.moveVertically(o,e,t.height):qa(o,e));if(i.eq(n.selection))return!1;let s;if(t.selfScroll){let o=r.coordsAtPos(n.selection.main.head),a=r.scrollDOM.getBoundingClientRect(),l=a.top+t.marginTop,c=a.bottom-t.marginBottom;o&&o.top>l&&o.bottom<c&&(s=I.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-l}))}return r.dispatch(an(n,i),{effects:s}),!0}const fm=r=>dm(r,!1),vh=r=>dm(r,!0);function Kn(r,e,t){let n=r.lineBlockAt(e.head),i=r.moveToLineBoundary(e,t);if(i.head==e.head&&i.head!=(t?n.to:n.from)&&(i=r.moveToLineBoundary(e,t,!1)),!t&&i.head==n.from&&n.length){let s=/^\s*/.exec(r.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;s&&e.head!=n.from+s&&(i=M.cursor(n.from+s))}return i}const g_=r=>Rt(r,e=>Kn(r,e,!0)),y_=r=>Rt(r,e=>Kn(r,e,!1)),b_=r=>Rt(r,e=>Kn(r,e,!$e(r))),v_=r=>Rt(r,e=>Kn(r,e,$e(r))),C_=r=>Rt(r,e=>M.cursor(r.lineBlockAt(e.head).from,1)),w_=r=>Rt(r,e=>M.cursor(r.lineBlockAt(e.head).to,-1));function k_(r,e,t){let n=!1,i=oi(r.selection,s=>{let o=sn(r,s.head,-1)||sn(r,s.head,1)||s.head>0&&sn(r,s.head-1,1)||s.head<r.doc.length&&sn(r,s.head+1,-1);if(!o||!o.end)return s;n=!0;let a=o.start.from==s.head?o.end.to:o.end.from;return M.cursor(a)});return n?(e(an(r,i)),!0):!1}const x_=({state:r,dispatch:e})=>k_(r,e);function St(r,e){let t=oi(r.state.selection,n=>{let i=e(n);return M.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return t.eq(r.state.selection)?!1:(r.dispatch(an(r.state,t)),!0)}function pm(r,e){return St(r,t=>r.moveByChar(t,e))}const mm=r=>pm(r,!$e(r)),gm=r=>pm(r,$e(r));function ym(r,e){return St(r,t=>r.moveByGroup(t,e))}const S_=r=>ym(r,!$e(r)),O_=r=>ym(r,$e(r)),__=r=>St(r,e=>za(r.state,e,!$e(r))),D_=r=>St(r,e=>za(r.state,e,$e(r)));function bm(r,e){return St(r,t=>r.moveVertically(t,e))}const vm=r=>bm(r,!1),Cm=r=>bm(r,!0);function wm(r,e){return St(r,t=>r.moveVertically(t,e,hm(r).height))}const km=r=>wm(r,!1),xm=r=>wm(r,!0),M_=r=>St(r,e=>Kn(r,e,!0)),P_=r=>St(r,e=>Kn(r,e,!1)),T_=r=>St(r,e=>Kn(r,e,!$e(r))),E_=r=>St(r,e=>Kn(r,e,$e(r))),A_=r=>St(r,e=>M.cursor(r.lineBlockAt(e.head).from)),R_=r=>St(r,e=>M.cursor(r.lineBlockAt(e.head).to)),Sm=({state:r,dispatch:e})=>(e(an(r,{anchor:0})),!0),Om=({state:r,dispatch:e})=>(e(an(r,{anchor:r.doc.length})),!0),_m=({state:r,dispatch:e})=>(e(an(r,{anchor:r.selection.main.anchor,head:0})),!0),Dm=({state:r,dispatch:e})=>(e(an(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),L_=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),N_=({state:r,dispatch:e})=>{let t=$a(r).map(({from:n,to:i})=>M.range(n,Math.min(i+1,r.doc.length)));return e(r.update({selection:M.create(t),userEvent:"select"})),!0},B_=({state:r,dispatch:e})=>{let t=oi(r.selection,n=>{let i=Be(r),s=i.resolveStack(n.from,1);if(n.empty){let o=i.resolveStack(n.from,-1);o.node.from>=s.node.from&&o.node.to<=s.node.to&&(s=o)}for(let o=s;o;o=o.next){let{node:a}=o;if((a.from<n.from&&a.to>=n.to||a.to>n.to&&a.from<=n.from)&&o.next)return M.range(a.to,a.from)}return n});return t.eq(r.selection)?!1:(e(an(r,t)),!0)},I_=({state:r,dispatch:e})=>{let t=r.selection,n=null;return t.ranges.length>1?n=M.create([t.main]):t.main.empty||(n=M.create([M.cursor(t.main.head)])),n?(e(an(r,n)),!0):!1};function Os(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:n}=r,i=n.changeByRange(s=>{let{from:o,to:a}=s;if(o==a){let l=e(s);l<o?(t="delete.backward",l=Ya(r,l,!1)):l>o&&(t="delete.forward",l=Ya(r,l,!0)),o=Math.min(o,l),a=Math.max(a,l)}else o=Ya(r,o,!1),a=Ya(r,a,!0);return o==a?{range:s}:{changes:{from:o,to:a},range:M.cursor(o,o<s.head?-1:1)}});return i.changes.empty?!1:(r.dispatch(n.update(i,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?I.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function Ya(r,e,t){if(r instanceof I)for(let n of r.state.facet(I.atomicRanges).map(i=>i(r)))n.between(e,e,(i,s)=>{i<e&&s>e&&(e=t?s:i)});return e}const Mm=(r,e,t)=>Os(r,n=>{let i=n.from,{state:s}=r,o=s.doc.lineAt(i),a,l;if(t&&!e&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(a=o.text.slice(0,i-o.from))){if(a[a.length-1]==" ")return i-1;let c=Zr(a,s.tabSize),u=c%Na(s)||Na(s);for(let h=0;h<u&&a[a.length-1-h]==" ";h++)i--;l=i}else l=Ve(o.text,i-o.from,e,e)+o.from,l==i&&o.number!=(e?s.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,i-o.from))&&(l=Ve(o.text,l-o.from,!1,!1)+o.from);return l}),Ch=r=>Mm(r,!1,!0),Pm=r=>Mm(r,!0,!1),Tm=(r,e)=>Os(r,t=>{let n=t.head,{state:i}=r,s=i.doc.lineAt(n),o=i.charCategorizer(n);for(let a=null;;){if(n==(e?s.to:s.from)){n==t.head&&s.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let l=Ve(s.text,n-s.from,e)+s.from,c=s.text.slice(Math.min(n,l)-s.from,Math.max(n,l)-s.from),u=o(c);if(a!=null&&u!=a)break;(c!=" "||n!=t.head)&&(a=u),n=l}return n}),Em=r=>Tm(r,!1),H_=r=>Tm(r,!0),V_=r=>Os(r,e=>{let t=r.lineBlockAt(e.head).to;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)}),F_=r=>Os(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),Q_=r=>Os(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)}),W_=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:ne.of(["",""])},range:M.cursor(n.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},j_=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(n=>{if(!n.empty||n.from==0||n.from==r.doc.length)return{range:n};let i=n.from,s=r.doc.lineAt(i),o=i==s.from?i-1:Ve(s.text,i-s.from,!1)+s.from,a=i==s.to?i+1:Ve(s.text,i-s.from,!0)+s.from;return{changes:{from:o,to:a,insert:r.doc.slice(i,a).append(r.doc.slice(o,i))},range:M.cursor(a)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function $a(r){let e=[],t=-1;for(let n of r.selection.ranges){let i=r.doc.lineAt(n.from),s=r.doc.lineAt(n.to);if(!n.empty&&n.to==s.from&&(s=r.doc.lineAt(n.to-1)),t>=i.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(n)}else e.push({from:i.from,to:s.to,ranges:[n]});t=s.number+1}return e}function Am(r,e,t){if(r.readOnly)return!1;let n=[],i=[];for(let s of $a(r)){if(t?s.to==r.doc.length:s.from==0)continue;let o=r.doc.lineAt(t?s.to+1:s.from-1),a=o.length+1;if(t){n.push({from:s.to,to:o.to},{from:s.from,insert:o.text+r.lineBreak});for(let l of s.ranges)i.push(M.range(Math.min(r.doc.length,l.anchor+a),Math.min(r.doc.length,l.head+a)))}else{n.push({from:o.from,to:s.from},{from:s.to,insert:r.lineBreak+o.text});for(let l of s.ranges)i.push(M.range(l.anchor-a,l.head-a))}}return n.length?(e(r.update({changes:n,scrollIntoView:!0,selection:M.create(i,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}const q_=({state:r,dispatch:e})=>Am(r,e,!1),z_=({state:r,dispatch:e})=>Am(r,e,!0);function Rm(r,e,t){if(r.readOnly)return!1;let n=[];for(let i of $a(r))t?n.push({from:i.from,insert:r.doc.slice(i.from,i.to)+r.lineBreak}):n.push({from:i.to,insert:r.lineBreak+r.doc.slice(i.from,i.to)});return e(r.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Y_=({state:r,dispatch:e})=>Rm(r,e,!1),$_=({state:r,dispatch:e})=>Rm(r,e,!0),U_=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes($a(e).map(({from:i,to:s})=>(i>0?i--:s<e.doc.length&&s++,{from:i,to:s}))),n=oi(e.selection,i=>{let s;if(r.lineWrapping){let o=r.lineBlockAt(i.head),a=r.coordsAtPos(i.head,i.assoc||1);a&&(s=o.bottom+r.documentTop-a.bottom+r.defaultLineHeight/2)}return r.moveVertically(i,!0,s)}).map(t);return r.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Z_(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Be(r).resolveInner(e),n=t.childBefore(e),i=t.childAfter(e),s;return n&&i&&n.to<=e&&i.from>=e&&(s=n.type.prop(G.closedBy))&&s.indexOf(i.name)>-1&&r.doc.lineAt(n.to).from==r.doc.lineAt(i.from).from&&!/\S/.test(r.sliceDoc(n.to,i.from))?{from:n.to,to:i.from}:null}const Lm=Nm(!1),X_=Nm(!0);function Nm(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(i=>{let{from:s,to:o}=i,a=e.doc.lineAt(s),l=!r&&s==o&&Z_(e,s);r&&(s=o=(o<=a.to?a:e.doc.lineAt(o)).to);let c=new Ba(e,{simulateBreak:s,simulateDoubleBreak:!!l}),u=sh(c,s);for(u==null&&(u=Zr(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<a.to&&/\s/.test(a.text[o-a.from]);)o++;l?{from:s,to:o}=l:s>a.from&&s<a.from+100&&!/\S/.test(a.text.slice(0,s))&&(s=a.from);let h=["",ws(e,u)];return l&&h.push(ws(e,c.lineIndent(a.from,-1))),{changes:{from:s,to:o,insert:ne.of(h)},range:M.cursor(s+1+h[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function wh(r,e){let t=-1;return r.changeByRange(n=>{let i=[];for(let o=n.from;o<=n.to;){let a=r.doc.lineAt(o);a.number>t&&(n.empty||n.to>a.from)&&(e(a,i,n),t=a.number),o=a.to+1}let s=r.changes(i);return{changes:i,range:M.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}const K_=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),n=new Ba(r,{overrideIndentation:s=>{let o=t[s];return o??-1}}),i=wh(r,(s,o,a)=>{let l=sh(n,s.from);if(l==null)return;/\S/.test(s.text)||(l=0);let c=/^\s*/.exec(s.text)[0],u=ws(r,l);(c!=u||a.from<s.from+c.length)&&(t[s.from]=l,o.push({from:s.from,to:s.from+c.length,insert:u}))});return i.changes.empty||e(r.update(i,{userEvent:"indent"})),!0},Bm=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(wh(r,(t,n)=>{n.push({from:t.from,insert:r.facet(La)})}),{userEvent:"input.indent"})),!0),Im=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(wh(r,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let s=Zr(i,r.tabSize),o=0,a=ws(r,Math.max(0,s-Na(r)));for(;o<i.length&&o<a.length&&i.charCodeAt(o)==a.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+i.length,insert:a.slice(o)})}),{userEvent:"delete.dedent"})),!0),G_=r=>(r.setTabFocusMode(),!0),J_=[{key:"Ctrl-b",run:sm,shift:mm,preventDefault:!0},{key:"Ctrl-f",run:om,shift:gm},{key:"Ctrl-p",run:cm,shift:vm},{key:"Ctrl-n",run:um,shift:Cm},{key:"Ctrl-a",run:C_,shift:A_},{key:"Ctrl-e",run:w_,shift:R_},{key:"Ctrl-d",run:Pm},{key:"Ctrl-h",run:Ch},{key:"Ctrl-k",run:V_},{key:"Ctrl-Alt-h",run:Em},{key:"Ctrl-o",run:W_},{key:"Ctrl-t",run:j_},{key:"Ctrl-v",run:vh}],eD=[{key:"ArrowLeft",run:sm,shift:mm,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:h_,shift:S_,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:b_,shift:T_,preventDefault:!0},{key:"ArrowRight",run:om,shift:gm,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:d_,shift:O_,preventDefault:!0},{mac:"Cmd-ArrowRight",run:v_,shift:E_,preventDefault:!0},{key:"ArrowUp",run:cm,shift:vm,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Sm,shift:_m},{mac:"Ctrl-ArrowUp",run:fm,shift:km},{key:"ArrowDown",run:um,shift:Cm,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Om,shift:Dm},{mac:"Ctrl-ArrowDown",run:vh,shift:xm},{key:"PageUp",run:fm,shift:km},{key:"PageDown",run:vh,shift:xm},{key:"Home",run:y_,shift:P_,preventDefault:!0},{key:"Mod-Home",run:Sm,shift:_m},{key:"End",run:g_,shift:M_,preventDefault:!0},{key:"Mod-End",run:Om,shift:Dm},{key:"Enter",run:Lm,shift:Lm},{key:"Mod-a",run:L_},{key:"Backspace",run:Ch,shift:Ch},{key:"Delete",run:Pm},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Em},{key:"Mod-Delete",mac:"Alt-Delete",run:H_},{mac:"Mod-Backspace",run:F_},{mac:"Mod-Delete",run:Q_}].concat(J_.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),tD=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:p_,shift:__},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:m_,shift:D_},{key:"Alt-ArrowUp",run:q_},{key:"Shift-Alt-ArrowUp",run:Y_},{key:"Alt-ArrowDown",run:z_},{key:"Shift-Alt-ArrowDown",run:$_},{key:"Escape",run:I_},{key:"Mod-Enter",run:X_},{key:"Alt-l",mac:"Ctrl-l",run:N_},{key:"Mod-i",run:B_,preventDefault:!0},{key:"Mod-[",run:Im},{key:"Mod-]",run:Bm},{key:"Mod-Alt-\\",run:K_},{key:"Shift-Mod-k",run:U_},{key:"Shift-Mod-\\",run:x_},{key:"Mod-/",run:YO},{key:"Alt-A",run:UO},{key:"Ctrl-m",mac:"Shift-Alt-m",run:G_}].concat(eD),nD={key:"Tab",run:Bm,shift:Im};function me(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];typeof i=="string"?r.setAttribute(n,i):i!=null&&(r[n]=i)}e++}for(;e<arguments.length;e++)Hm(r,arguments[e]);return r}function Hm(r,e){if(typeof e=="string")r.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)r.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)Hm(r,e[t]);else throw new RangeError("Unsupported child node: "+e)}const Vm=typeof String.prototype.normalize=="function"?r=>r.normalize("NFKD"):r=>r;class ai{constructor(e,t,n=0,i=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=s?a=>s(Vm(a)):Vm,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return nt(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Hc(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Ut(e);let i=this.normalize(t);if(i.length)for(let s=0,o=n;;s++){let a=i.charCodeAt(s),l=this.match(a,o,this.bufferPos+this.bufferStart);if(s==i.length-1){if(l)return this.value=l,this;break}o==n&&s<t.length&&t.charCodeAt(s)==a&&o++}}}match(e,t,n){let i=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],a=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?i={from:this.matches[s+1],to:n}:(this.matches[s]++,a=!0)),a||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:t,to:n}:this.matches.push(1,t)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(ai.prototype[Symbol.iterator]=function(){return this});const Fm={from:-1,to:-1,match:/.*/.exec("")},kh="gm"+(/x/.unicode==null?"":"u");class Qm{constructor(e,t,n,i=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=Fm,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Wm(e,t,n,i,s);this.re=new RegExp(t,kh+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let o=e.lineAt(i);this.curLineStart=o.from,this.matchPos=Ua(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=Ua(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<i||n>this.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const xh=new WeakMap;class li{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let i=xh.get(e);if(!i||i.from>=n||i.to<=t){let a=new li(t,e.sliceString(t,n));return xh.set(e,a),a}if(i.from==t&&i.to==n)return i;let{text:s,from:o}=i;return o>t&&(s=e.sliceString(t,o)+s,o=t),i.to<n&&(s+=e.sliceString(i.to,n)),xh.set(e,new li(o,s)),new li(t,s.slice(t-o,n-o))}}class Wm{constructor(e,t,n,i,s){this.text=e,this.to=s,this.done=!1,this.value=Fm,this.matchPos=Ua(e,i),this.re=new RegExp(t,kh+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=li.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,i=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this.matchPos=Ua(this.text,i+(n==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=li.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Qm.prototype[Symbol.iterator]=Wm.prototype[Symbol.iterator]=function(){return this});function rD(r){try{return new RegExp(r,kh),!0}catch{return!1}}function Ua(r,e){if(e>=r.length)return e;let t=r.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}function Sh(r){let e=String(r.state.doc.lineAt(r.state.selection.main.head).number),t=me("input",{class:"cm-textfield",name:"line",value:e}),n=me("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),r.dispatch({effects:_s.of(!1)}),r.focus()):s.keyCode==13&&(s.preventDefault(),i())},onsubmit:s=>{s.preventDefault(),i()}},me("label",r.state.phrase("Go to line"),": ",t)," ",me("button",{class:"cm-button",type:"submit"},r.state.phrase("go")),me("button",{name:"close",onclick:()=>{r.dispatch({effects:_s.of(!1)}),r.focus()},"aria-label":r.state.phrase("close"),type:"button"},["×"]));function i(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!s)return;let{state:o}=r,a=o.doc.lineAt(o.selection.main.head),[,l,c,u,h]=s,d=u?+u.slice(1):0,f=c?+c:a.number;if(c&&h){let g=f/100;l&&(g=g*(l=="-"?-1:1)+a.number/o.doc.lines),f=Math.round(o.doc.lines*g)}else c&&l&&(f=f*(l=="-"?-1:1)+a.number);let p=o.doc.line(Math.max(1,Math.min(o.doc.lines,f))),m=M.cursor(p.from+Math.max(0,Math.min(d,p.length)));r.dispatch({effects:[_s.of(!1),I.scrollIntoView(m.from,{y:"center"})],selection:m}),r.focus()}return{dom:n}}const _s=Z.define(),jm=Fe.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(_s)&&(r=t.value);return r},provide:r=>ms.from(r,e=>e?Sh:null)}),iD=r=>{let e=ps(r,Sh);if(!e){let t=[_s.of(!0)];r.state.field(jm,!1)==null&&t.push(Z.appendConfig.of([jm,sD])),r.dispatch({effects:t}),e=ps(r,Sh)}return e&&e.dom.querySelector("input").select(),!0},sD=I.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),oD={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},aD=V.define({combine(r){return Kt(r,oD,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function lD(r){return[fD,dD]}const cD=z.mark({class:"cm-selectionMatch"}),uD=z.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function qm(r,e,t,n){return(t==0||r(e.sliceDoc(t-1,t))!=ve.Word)&&(n==e.doc.length||r(e.sliceDoc(n,n+1))!=ve.Word)}function hD(r,e,t,n){return r(e.sliceDoc(t,t+1))==ve.Word&&r(e.sliceDoc(n-1,n))==ve.Word}const dD=_e.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(aD),{state:t}=r,n=t.selection;if(n.ranges.length>1)return z.none;let i=n.main,s,o=null;if(i.empty){if(!e.highlightWordAroundCursor)return z.none;let l=t.wordAt(i.head);if(!l)return z.none;o=t.charCategorizer(i.head),s=t.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l<e.minSelectionLength||l>200)return z.none;if(e.wholeWords){if(s=t.sliceDoc(i.from,i.to),o=t.charCategorizer(i.head),!(qm(o,t,i.from,i.to)&&hD(o,t,i.from,i.to)))return z.none}else if(s=t.sliceDoc(i.from,i.to),!s)return z.none}let a=[];for(let l of r.visibleRanges){let c=new ai(t.doc,s,l.from,l.to);for(;!c.next().done;){let{from:u,to:h}=c.value;if((!o||qm(o,t,u,h))&&(i.empty&&u<=i.from&&h>=i.to?a.push(uD.range(u,h)):(u>=i.to||h<=i.from)&&a.push(cD.range(u,h)),a.length>e.maxMatches))return z.none}}return z.set(a)}},{decorations:r=>r.decorations}),fD=I.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),pD=({state:r,dispatch:e})=>{let{selection:t}=r,n=M.create(t.ranges.map(i=>r.wordAt(i.head)||M.cursor(i.head)),t.mainIndex);return n.eq(t)?!1:(e(r.update({selection:n})),!0)};function mD(r,e){let{main:t,ranges:n}=r.selection,i=r.wordAt(t.head),s=i&&i.from==t.from&&i.to==t.to;for(let o=!1,a=new ai(r.doc,e,n[n.length-1].to);;)if(a.next(),a.done){if(o)return null;a=new ai(r.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(l=>l.from==a.value.from))continue;if(s){let l=r.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}const gD=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(s=>s.from===s.to))return pD({state:r,dispatch:e});let n=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(s=>r.sliceDoc(s.from,s.to)!=n))return!1;let i=mD(r,n);return i?(e(r.update({selection:r.selection.addRange(M.range(i.from,i.to),!1),effects:I.scrollIntoView(i.to)})),!0):!1},ci=V.define({combine(r){return Kt(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new MD(e),scrollToMatch:e=>I.scrollIntoView(e)})}});class zm{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||rD(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
|
|
586
|
+
`:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new CD(this):new bD(this)}getCursor(e,t=0,n){let i=e.doc?e:J.create({doc:e});return n==null&&(n=i.doc.length),this.regexp?hi(this,i,t,n):ui(this,i,t,n)}}class Ym{constructor(e){this.spec=e}}function ui(r,e,t,n){return new ai(e.doc,r.unquoted,t,n,r.caseSensitive?void 0:i=>i.toLowerCase(),r.wholeWord?yD(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function yD(r,e){return(t,n,i,s)=>((s>t||s+i.length<n)&&(s=Math.max(0,t-2),i=r.sliceString(s,Math.min(r.length,n+2))),(e(Za(i,t-s))!=ve.Word||e(Xa(i,t-s))!=ve.Word)&&(e(Xa(i,n-s))!=ve.Word||e(Za(i,n-s))!=ve.Word))}class bD extends Ym{constructor(e){super(e)}nextMatch(e,t,n){let i=ui(this.spec,e,n,e.doc.length).nextOverlapping();if(i.done){let s=Math.min(e.doc.length,t+this.spec.unquoted.length);i=ui(this.spec,e,0,s).nextOverlapping()}return i.done||i.value.from==t&&i.value.to==n?null:i.value}prevMatchInRange(e,t,n){for(let i=n;;){let s=Math.max(t,i-1e4-this.spec.unquoted.length),o=ui(this.spec,e,s,i),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(s==t)return null;i-=1e4}}prevMatch(e,t,n){let i=this.prevMatchInRange(e,0,t);return i||(i=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),i&&(i.from!=t||i.to!=n)?i:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=ui(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let s=ui(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}}function hi(r,e,t,n){return new Qm(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:r.wholeWord?vD(e.charCategorizer(e.selection.main.head)):void 0},t,n)}function Za(r,e){return r.slice(Ve(r,e,!1),e)}function Xa(r,e){return r.slice(e,Ve(r,e))}function vD(r){return(e,t,n)=>!n[0].length||(r(Za(n.input,n.index))!=ve.Word||r(Xa(n.input,n.index))!=ve.Word)&&(r(Xa(n.input,n.index+n[0].length))!=ve.Word||r(Za(n.input,n.index+n[0].length))!=ve.Word)}class CD extends Ym{nextMatch(e,t,n){let i=hi(this.spec,e,n,e.doc.length).next();return i.done&&(i=hi(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let s=Math.max(t,n-i*1e4),o=hi(this.spec,e,s,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==t||a.from>s+10))return a;if(s==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n=="&")return e.match[0];if(n=="$")return"$";for(let i=n.length;i>0;i--){let s=+n.slice(0,i);if(s>0&&s<e.match.length)return e.match[s]+n.slice(i)}return t})}matchAll(e,t){let n=hi(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let s=hi(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to)}}const Ds=Z.define(),Oh=Z.define(),Gn=Fe.define({create(r){return new _h(Mh(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Ds)?r=new _h(t.value.create(),r.panel):t.is(Oh)&&(r=new _h(r.query,t.value?Dh:null));return r},provide:r=>ms.from(r,e=>e.panel)});class _h{constructor(e,t){this.query=e,this.panel=t}}const wD=z.mark({class:"cm-searchMatch"}),kD=z.mark({class:"cm-searchMatch cm-searchMatch-selected"}),xD=_e.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Gn))}update(r){let e=r.state.field(Gn);(e!=r.startState.field(Gn)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return z.none;let{view:t}=this,n=new gn;for(let i=0,s=t.visibleRanges,o=s.length;i<o;i++){let{from:a,to:l}=s[i];for(;i<o-1&&l>s[i+1].from-2*250;)l=s[++i].to;r.highlight(t.state,a,l,(c,u)=>{let h=t.state.selection.ranges.some(d=>d.from==c&&d.to==u);n.add(c,u,h?kD:wD)})}return n.finish()}},{decorations:r=>r.decorations});function Ms(r){return e=>{let t=e.state.field(Gn,!1);return t&&t.query.spec.valid?r(e,t):Xm(e)}}const Ka=Ms((r,{query:e})=>{let{to:t}=r.state.selection.main,n=e.nextMatch(r.state,t,t);if(!n)return!1;let i=M.single(n.from,n.to),s=r.state.facet(ci);return r.dispatch({selection:i,effects:[Ph(r,n),s.scrollToMatch(i.main,r)],userEvent:"select.search"}),Zm(r),!0}),Ga=Ms((r,{query:e})=>{let{state:t}=r,{from:n}=t.selection.main,i=e.prevMatch(t,n,n);if(!i)return!1;let s=M.single(i.from,i.to),o=r.state.facet(ci);return r.dispatch({selection:s,effects:[Ph(r,i),o.scrollToMatch(s.main,r)],userEvent:"select.search"}),Zm(r),!0}),SD=Ms((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:M.create(t.map(n=>M.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),OD=({state:r,dispatch:e})=>{let t=r.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:i}=t.main,s=[],o=0;for(let a=new ai(r.doc,r.sliceDoc(n,i));!a.next().done;){if(s.length>1e3)return!1;a.value.from==n&&(o=s.length),s.push(M.range(a.value.from,a.value.to))}return e(r.update({selection:M.create(s,o),userEvent:"select.search.matches"})),!0},$m=Ms((r,{query:e})=>{let{state:t}=r,{from:n,to:i}=t.selection.main;if(t.readOnly)return!1;let s=e.nextMatch(t,n,n);if(!s)return!1;let o=s,a=[],l,c,u=[];if(o.from==n&&o.to==i&&(c=t.toText(e.getReplacement(o)),a.push({from:o.from,to:o.to,insert:c}),o=e.nextMatch(t,o.from,o.to),u.push(I.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+"."))),o){let h=a.length==0||a[0].from>=s.to?0:s.to-s.from-c.length;l=M.single(o.from-h,o.to-h),u.push(Ph(r,o)),u.push(t.facet(ci).scrollToMatch(l.main,r))}return r.dispatch({changes:a,selection:l,effects:u,userEvent:"input.replace"}),!0}),_D=Ms((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(i=>{let{from:s,to:o}=i;return{from:s,to:o,insert:e.getReplacement(i)}});if(!t.length)return!1;let n=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:I.announce.of(n),userEvent:"input.replace.all"}),!0});function Dh(r){return r.state.facet(ci).createPanel(r)}function Mh(r,e){var t,n,i,s,o;let a=r.selection.main,l=a.empty||a.to>a.from+100?"":r.sliceDoc(a.from,a.to);if(e&&!l)return e;let c=r.facet(ci);return new zm({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:c.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:c.literal,regexp:(s=e==null?void 0:e.regexp)!==null&&s!==void 0?s:c.regexp,wholeWord:(o=e==null?void 0:e.wholeWord)!==null&&o!==void 0?o:c.wholeWord})}function Um(r){let e=ps(r,Dh);return e&&e.dom.querySelector("[main-field]")}function Zm(r){let e=Um(r);e&&e==r.root.activeElement&&e.select()}const Xm=r=>{let e=r.state.field(Gn,!1);if(e&&e.panel){let t=Um(r);if(t&&t!=r.root.activeElement){let n=Mh(r.state,e.query.spec);n.valid&&r.dispatch({effects:Ds.of(n)}),t.focus(),t.select()}}else r.dispatch({effects:[Oh.of(!0),e?Ds.of(Mh(r.state,e.query.spec)):Z.appendConfig.of(TD)]});return!0},Km=r=>{let e=r.state.field(Gn,!1);if(!e||!e.panel)return!1;let t=ps(r,Dh);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:Oh.of(!1)}),!0},DD=[{key:"Mod-f",run:Xm,scope:"editor search-panel"},{key:"F3",run:Ka,shift:Ga,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Ka,shift:Ga,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Km,scope:"editor search-panel"},{key:"Mod-Shift-l",run:OD},{key:"Mod-Alt-g",run:iD},{key:"Mod-d",run:gD,preventDefault:!0}];class MD{constructor(e){this.view=e;let t=this.query=e.state.field(Gn).query.spec;this.commit=this.commit.bind(this),this.searchField=me("input",{value:t.search,placeholder:mt(e,"Find"),"aria-label":mt(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=me("input",{value:t.replace,placeholder:mt(e,"Replace"),"aria-label":mt(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=me("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=me("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=me("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(i,s,o){return me("button",{class:"cm-button",name:i,onclick:s,type:"button"},o)}this.dom=me("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,n("next",()=>Ka(e),[mt(e,"next")]),n("prev",()=>Ga(e),[mt(e,"previous")]),n("select",()=>SD(e),[mt(e,"all")]),me("label",null,[this.caseField,mt(e,"match case")]),me("label",null,[this.reField,mt(e,"regexp")]),me("label",null,[this.wordField,mt(e,"by word")]),...e.state.readOnly?[]:[me("br"),this.replaceField,n("replace",()=>$m(e),[mt(e,"replace")]),n("replaceAll",()=>_D(e),[mt(e,"replace all")])],me("button",{name:"close",onclick:()=>Km(e),"aria-label":mt(e,"close"),type:"button"},["×"])])}commit(){let e=new zm({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Ds.of(e)}))}keydown(e){Wx(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Ga:Ka)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),$m(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(Ds)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ci).top}}function mt(r,e){return r.state.phrase(e)}const Ja=30,el=/[\s\.,:;?!]/;function Ph(r,{from:e,to:t}){let n=r.state.doc.lineAt(e),i=r.state.doc.lineAt(t).to,s=Math.max(n.from,e-Ja),o=Math.min(i,t+Ja),a=r.state.sliceDoc(s,o);if(s!=n.from){for(let l=0;l<Ja;l++)if(!el.test(a[l+1])&&el.test(a[l])){a=a.slice(l);break}}if(o!=i){for(let l=a.length-1;l>a.length-Ja;l--)if(!el.test(a[l-1])&&el.test(a[l])){a=a.slice(0,l);break}}return I.announce.of(`${r.state.phrase("current match")}. ${a} ${r.state.phrase("on line")} ${n.number}.`)}const PD=I.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),TD=[Gn,dr.low(xD),PD];class Gm{constructor(e,t,n,i){this.state=e,this.pos=t,this.explicit=n,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=Be(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),s=i.search(ng(e,!1));return s<0?null:{from:n+s,to:this.pos,text:i.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e=="abort"&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function Jm(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function ED(r){let e=Object.create(null),t=Object.create(null);for(let{label:i}of r){e[i[0]]=!0;for(let s=1;s<i.length;s++)t[i[s]]=!0}let n=Jm(e)+Jm(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function eg(r){let e=r.map(i=>typeof i=="string"?{label:i}:i),[t,n]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:ED(e);return i=>{let s=i.matchBefore(n);return s||i.explicit?{from:s?s.from:i.pos,options:e,validFor:t}:null}}function AD(r,e){return t=>{for(let n=Be(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(r.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}class tg{constructor(e,t,n,i){this.completion=e,this.source=t,this.match=n,this.score=i}}function wr(r){return r.selection.main.from}function ng(r,e){var t;let{source:n}=r,i=e&&n[0]!="^",s=n[n.length-1]!="$";return!i&&!s?r:new RegExp(`${i?"^":""}(?:${n})${s?"$":""}`,(t=r.flags)!==null&&t!==void 0?t:r.ignoreCase?"i":"")}const rg=Xt.define();function RD(r,e,t,n){let{main:i}=r.selection,s=t-i.from,o=n-i.from;return Object.assign(Object.assign({},r.changeByRange(a=>{if(a!=i&&t!=n&&r.sliceDoc(a.from+s,a.from+o)!=r.sliceDoc(t,n))return{range:a};let l=r.toText(e);return{changes:{from:a.from+s,to:n==i.from?a.to:a.from+o,insert:l},range:M.cursor(a.from+s+l.length)}})),{scrollIntoView:!0,userEvent:"input.complete"})}const ig=new WeakMap;function LD(r){if(!Array.isArray(r))return r;let e=ig.get(r);return e||ig.set(r,e=eg(r)),e}const tl=Z.define(),Ps=Z.define();class ND{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=nt(e,t),i=Ut(n);this.chars.push(n);let s=e.slice(t,t+i),o=s.toUpperCase();this.folded.push(nt(o==s?s.toLowerCase():o,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:s,byWord:o}=this;if(t.length==1){let C=nt(e,0),w=Ut(C),x=w==e.length?0:-100;if(C!=t[0])if(C==n[0])x+=-200;else return null;return this.ret(x,[0,w])}let a=e.indexOf(this.pattern);if(a==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=t.length,c=0;if(a<0){for(let C=0,w=Math.min(e.length,200);C<w&&c<l;){let x=nt(e,C);(x==t[c]||x==n[c])&&(i[c++]=C),C+=Ut(x)}if(c<l)return null}let u=0,h=0,d=!1,f=0,p=-1,m=-1,g=/[a-z]/.test(e),y=!0;for(let C=0,w=Math.min(e.length,200),x=0;C<w&&h<l;){let b=nt(e,C);a<0&&(u<l&&b==t[u]&&(s[u++]=C),f<l&&(b==t[f]||b==n[f]?(f==0&&(p=C),m=C+1,f++):f=0));let S,k=b<255?b>=48&&b<=57||b>=97&&b<=122?2:b>=65&&b<=90?1:0:(S=Hc(b))!=S.toLowerCase()?1:S!=S.toUpperCase()?2:0;(!C||k==1&&g||x==0&&k!=0)&&(t[h]==b||n[h]==b&&(d=!0)?o[h++]=C:o.length&&(y=!1)),x=k,C+=Ut(b)}return h==l&&o[0]==0&&y?this.result(-100+(d?-200:0),o,e):f==l&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):f==l?this.ret(-900-e.length,[p,m]):h==l?this.result(-100+(d?-200:0)+-700+(y?0:-1100),o,e):t.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[],s=0;for(let o of t){let a=o+(this.astral?Ut(nt(n,o)):1);s&&i[s-1]==o?i[s-1]=a:(i[s++]=o,i[s++]=a)}return this.ret(e-n.length,i)}}class BD{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}const Ie=V.define({combine(r){return Kt(r,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ID,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>sg(e(n),t(n)),optionClass:(e,t)=>n=>sg(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function sg(r,e){return r?e?r+" "+e:r:e}function ID(r,e,t,n,i,s){let o=r.textDirection==ye.RTL,a=o,l=!1,c="top",u,h,d=e.left-i.left,f=i.right-e.right,p=n.right-n.left,m=n.bottom-n.top;if(a&&d<Math.min(p,f)?a=!1:!a&&f<Math.min(p,d)&&(a=!0),p<=(a?d:f))u=Math.max(i.top,Math.min(t.top,i.bottom-m))-e.top,h=Math.min(400,a?d:f);else{l=!0,h=Math.min(400,(o?e.right:i.right-e.left)-30);let C=i.bottom-e.bottom;C>=m||C>e.top?u=t.bottom-e.top:(c="bottom",u=e.bottom-t.top)}let g=(e.bottom-e.top)/s.offsetHeight,y=(e.right-e.left)/s.offsetWidth;return{style:`${c}: ${u/g}px; max-width: ${h/y}px`,class:"cm-completionInfo-"+(l?o?"left-narrow":"right-narrow":a?"left":"right")}}function HD(r){let e=r.addToOptions.slice();return r.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,i,s){let o=document.createElement("span");o.className="cm-completionLabel";let a=t.displayLabel||t.label,l=0;for(let c=0;c<s.length;){let u=s[c++],h=s[c++];u>l&&o.appendChild(document.createTextNode(a.slice(l,u)));let d=o.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(a.slice(u,h))),d.className="cm-completionMatchedText",l=h}return l<a.length&&o.appendChild(document.createTextNode(a.slice(l))),o},position:50},{render(t){if(!t.detail)return null;let n=document.createElement("span");return n.className="cm-completionDetail",n.textContent=t.detail,n},position:80}),e.sort((t,n)=>t.position-n.position).map(t=>t.render)}function Th(r,e,t){if(r<=t)return{from:0,to:r};if(e<0&&(e=0),e<=r>>1){let i=Math.floor(e/t);return{from:i*t,to:(i+1)*t}}let n=Math.floor((r-e)/t);return{from:r-(n+1)*t,to:r-n*t}}class VD{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=e.state.field(t),{options:s,selected:o}=i.open,a=e.state.facet(Ie);this.optionContent=HD(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=Th(s.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=e.state.field(t).open;for(let u=l.target,h;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(h=/-(\d+)$/.exec(u.id))&&+h[1]<c.length){this.applyCompletion(e,c[+h[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(Ie).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:Ps.of(null)})}),this.showOptions(s,i.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=i){let{options:s,selected:o,disabled:a}=n.open;(!i.open||i.open.options!=s)&&(this.range=Th(s.length,o,e.state.facet(Ie).maxRenderedOptions),this.showOptions(s,n.id)),this.updateSel(),a!=((t=i.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Th(t.options.length,t.selected,this.view.state.facet(Ie).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let s=typeof i=="string"?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then(o=>{o&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(o,n)}).catch(o=>it(this.view.state,o,"completion info")):this.addInfoPane(s,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:s}=e;n.appendChild(i),this.infoDestroy=s||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)n.nodeName!="LI"||!n.id?i--:i==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&QD(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.documentElement;s={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return i.top>Math.min(s.bottom,t.bottom)-10||i.bottom<Math.max(s.top,t.top)+10?null:this.view.state.facet(Ie).positionInfo(this.view,t,i,n,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const i=document.createElement("ul");i.id=t,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions")),i.addEventListener("mousedown",o=>{o.target==i&&o.preventDefault()});let s=null;for(let o=n.from;o<n.to;o++){let{completion:a,match:l}=e[o],{section:c}=a;if(c){let d=typeof c=="string"?c:c.name;if(d!=s&&(o>n.from||n.from==0))if(s=d,typeof c!="string"&&c.header)i.appendChild(c.header(c));else{let f=i.appendChild(document.createElement("completion-section"));f.textContent=d}}const u=i.appendChild(document.createElement("li"));u.id=t+"-"+o,u.setAttribute("role","option");let h=this.optionClass(a);h&&(u.className=h);for(let d of this.optionContent){let f=d(a,this.view.state,this.view,l);f&&u.appendChild(f)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function FD(r,e){return t=>new VD(t,r,e)}function QD(r,e){let t=r.getBoundingClientRect(),n=e.getBoundingClientRect(),i=t.height/r.offsetHeight;n.top<t.top?r.scrollTop-=(t.top-n.top)/i:n.bottom>t.bottom&&(r.scrollTop+=(n.bottom-t.bottom)/i)}function og(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function WD(r,e){let t=[],n=null,i=c=>{t.push(c);let{section:u}=c.completion;if(u){n||(n=[]);let h=typeof u=="string"?u:u.name;n.some(d=>d.name==h)||n.push(typeof u=="string"?{name:h}:u)}},s=e.facet(Ie);for(let c of r)if(c.hasResult()){let u=c.result.getMatch;if(c.result.filter===!1)for(let h of c.result.options)i(new tg(h,c.source,u?u(h):[],1e9-t.length));else{let h=e.sliceDoc(c.from,c.to),d,f=s.filterStrict?new BD(h):new ND(h);for(let p of c.result.options)if(d=f.match(p.label)){let m=p.displayLabel?u?u(p,d.matched):[]:d.matched;i(new tg(p,c.source,m,d.score+(p.boost||0)))}}}if(n){let c=Object.create(null),u=0,h=(d,f)=>{var p,m;return((p=d.rank)!==null&&p!==void 0?p:1e9)-((m=f.rank)!==null&&m!==void 0?m:1e9)||(d.name<f.name?-1:1)};for(let d of n.sort(h))u-=1e5,c[d.name]=u;for(let d of t){let{section:f}=d.completion;f&&(d.score+=c[typeof f=="string"?f:f.name])}}let o=[],a=null,l=s.compareCompletions;for(let c of t.sort((u,h)=>h.score-u.score||l(u.completion,h.completion))){let u=c.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?o.push(c):og(c.completion)>og(a)&&(o[o.length-1]=c),a=c.completion}return o}class di{constructor(e,t,n,i,s,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=i,this.selected=s,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new di(this.options,ag(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,i,s,o){if(i&&!o&&e.some(c=>c.isPending))return i.setDisabled();let a=WD(e,t);if(!a.length)return i&&e.some(c=>c.isPending)?i.setDisabled():null;let l=t.facet(Ie).selectOnOpen?0:-1;if(i&&i.selected!=l&&i.selected!=-1){let c=i.options[i.selected].completion;for(let u=0;u<a.length;u++)if(a[u].completion==c){l=u;break}}return new di(a,ag(n,l),{pos:e.reduce((c,u)=>u.hasResult()?Math.min(c,u.from):c,1e8),create:UD,above:s.aboveCursor},i?i.timestamp:Date.now(),l,!1)}map(e){return new di(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new di(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class nl{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new nl(YD,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,n=t.facet(Ie),s=(n.override||t.languageDataAt("autocomplete",wr(t)).map(LD)).map(l=>(this.active.find(u=>u.source==l)||new Ot(l,this.active.some(u=>u.state!=0)?1:0)).update(e,n));s.length==this.active.length&&s.every((l,c)=>l==this.active[c])&&(s=this.active);let o=this.open,a=e.effects.some(l=>l.is(Eh));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||s.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!jD(s,this.active)||a?o=di.build(s,t,this.id,o,n,a):o&&o.disabled&&!s.some(l=>l.isPending)&&(o=null),!o&&s.every(l=>!l.isPending)&&s.some(l=>l.hasResult())&&(s=s.map(l=>l.hasResult()?new Ot(l.source,0):l));for(let l of e.effects)l.is(cg)&&(o=o&&o.setSelected(l.value,this.id));return s==this.active&&o==this.open?this:new nl(s,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?qD:zD}}function jD(r,e){if(r==e)return!0;for(let t=0,n=0;;){for(;t<r.length&&!r[t].hasResult();)t++;for(;n<e.length&&!e[n].hasResult();)n++;let i=t==r.length,s=n==e.length;if(i||s)return i==s;if(r[t++].result!=e[n++].result)return!1}}const qD={"aria-autocomplete":"list"},zD={};function ag(r,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":r};return e>-1&&(t["aria-activedescendant"]=r+"-"+e),t}const YD=[];function lg(r,e){if(r.isUserEvent("input.complete")){let n=r.annotation(rg);if(n&&e.activateOnCompletion(n))return 12}let t=r.isUserEvent("input.type");return t&&e.activateOnTyping?5:t?1:r.isUserEvent("delete.backward")?2:r.selection?8:r.docChanged?16:0}class Ot{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(e,t){let n=lg(e,t),i=this;(n&8||n&16&&this.touches(e))&&(i=new Ot(i.source,0)),n&4&&i.state==0&&(i=new Ot(this.source,1)),i=i.updateFor(e,n);for(let s of e.effects)if(s.is(tl))i=new Ot(i.source,1,s.value);else if(s.is(Ps))i=new Ot(i.source,0);else if(s.is(Eh))for(let o of s.value)o.source==i.source&&(i=o);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(wr(e.state))}}class fi extends Ot{constructor(e,t,n,i,s,o){super(e,3,t),this.limit=n,this.result=i,this.from=s,this.to=o}hasResult(){return!0}updateFor(e,t){var n;if(!(t&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=wr(e.state);if(a>o||!i||t&2&&(wr(e.startState)==this.from||a<this.limit))return new Ot(this.source,t&4?1:0);let l=e.changes.mapPos(this.limit);return $D(i.validFor,e.state,s,o)?new fi(this.source,this.explicit,l,i,s,o):i.update&&(i=i.update(i,s,o,new Gm(e.state,a,!1)))?new fi(this.source,this.explicit,l,i,i.from,(n=i.to)!==null&&n!==void 0?n:wr(e.state)):new Ot(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new fi(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Ot(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function $D(r,e,t,n){if(!r)return!1;let i=e.sliceDoc(t,n);return typeof r=="function"?r(i,t,n,e):ng(r,!0).test(i)}const Eh=Z.define({map(r,e){return r.map(t=>t.map(e))}}),cg=Z.define(),at=Fe.define({create(){return nl.start()},update(r,e){return r.update(e)},provide:r=>[ju.from(r,e=>e.tooltip),I.contentAttributes.from(r,e=>e.attrs)]});function Ah(r,e){const t=e.completion.apply||e.completion.label;let n=r.state.field(at).active.find(i=>i.source==e.source);return n instanceof fi?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},RD(r.state,t,n.from,n.to)),{annotations:rg.of(e.completion)})):t(r,e.completion,n.from,n.to),!0):!1}const UD=FD(at,Ah);function rl(r,e="option"){return t=>{let n=t.state.field(at,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<t.state.facet(Ie).interactionDelay)return!1;let i=1,s;e=="page"&&(s=a6(t,n.open.tooltip))&&(i=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:o}=n.open.options,a=n.open.selected>-1?n.open.selected+i*(r?1:-1):r?0:o-1;return a<0?a=e=="page"?0:o-1:a>=o&&(a=e=="page"?o-1:0),t.dispatch({effects:cg.of(a)}),!0}}const ZD=r=>{let e=r.state.field(at,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<r.state.facet(Ie).interactionDelay?!1:Ah(r,e.open.options[e.open.selected])},ug=r=>r.state.field(at,!1)?(r.dispatch({effects:tl.of(!0)}),!0):!1,XD=r=>{let e=r.state.field(at,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:Ps.of(null)}),!0)};class KD{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const GD=50,JD=1e3,eM=_e.fromClass(class{constructor(r){this.view=r,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of r.state.field(at).active)e.isPending&&this.startQuery(e)}update(r){let e=r.state.field(at),t=r.state.facet(Ie);if(!r.selectionSet&&!r.docChanged&&r.startState.field(at)==e)return;let n=r.transactions.some(s=>{let o=lg(s,t);return o&8||(s.selection||s.docChanged)&&!(o&3)});for(let s=0;s<this.running.length;s++){let o=this.running[s];if(n||o.context.abortOnDocChange&&r.docChanged||o.updates.length+r.transactions.length>GD&&Date.now()-o.time>JD){for(let a of o.context.abortListeners)try{a()}catch(l){it(this.view.state,l)}o.context.abortListeners=null,this.running.splice(s--,1)}else o.updates.push(...r.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),r.transactions.some(s=>s.effects.some(o=>o.is(tl)))&&(this.pendingStart=!0);let i=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.isPending&&!this.running.some(o=>o.active.source==s.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let s of r.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:r}=this.view,e=r.field(at);for(let t of e.active)t.isPending&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Ie).updateSyncTime))}startQuery(r){let{state:e}=this.view,t=wr(e),n=new Gm(e,t,r.explicit,this.view),i=new KD(r,n);this.running.push(i),Promise.resolve(r.source(n)).then(s=>{i.context.aborted||(i.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:Ps.of(null)}),it(this.view.state,s)})}scheduleAccept(){this.running.every(r=>r.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Ie).updateSyncTime))}accept(){var r;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(Ie),n=this.view.state.field(at);for(let i=0;i<this.running.length;i++){let s=this.running[i];if(s.done===void 0)continue;if(this.running.splice(i--,1),s.done){let a=wr(s.updates.length?s.updates[0].startState:this.view.state),l=Math.min(a,s.done.from+(s.active.explicit?0:1)),c=new fi(s.active.source,s.active.explicit,l,s.done,s.done.from,(r=s.done.to)!==null&&r!==void 0?r:a);for(let u of s.updates)c=c.update(u,t);if(c.hasResult()){e.push(c);continue}}let o=n.active.find(a=>a.source==s.active.source);if(o&&o.isPending)if(s.done==null){let a=new Ot(s.active.source,0);for(let l of s.updates)a=a.update(l,t);a.isPending||e.push(a)}else this.startQuery(o)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:Eh.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(at,!1);if(e&&e.tooltip&&this.view.state.facet(Ie).closeOnBlur){let t=e.open&&a6(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Ps.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:tl.of(!1)}),20),this.composing=0}}}),tM=typeof navigator=="object"&&/Win/.test(navigator.platform),nM=dr.highest(I.domEventHandlers({keydown(r,e){let t=e.state.field(at,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||r.key.length>1||r.ctrlKey&&!(tM&&r.altKey)||r.metaKey)return!1;let n=t.open.options[t.open.selected],i=t.active.find(o=>o.source==n.source),s=n.completion.commitCharacters||i.result.commitCharacters;return s&&s.indexOf(r.key)>-1&&Ah(e,n),!1}})),rM=I.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Ts={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},kr=Z.define({map(r,e){let t=e.mapPos(r,-1,Xe.TrackAfter);return t??void 0}}),Rh=new class extends fr{};Rh.startSide=1,Rh.endSide=-1;const hg=Fe.define({create(){return re.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:n=>n>=t.from&&n<=t.to})}for(let t of e.effects)t.is(kr)&&(r=r.update({add:[Rh.range(t.value,t.value+1)]}));return r}});function iM(){return[oM,hg]}const Lh="()[]{}<>«»»«[]{}";function dg(r){for(let e=0;e<Lh.length;e+=2)if(Lh.charCodeAt(e)==r)return Lh.charAt(e+1);return Hc(r<128?r:r+1)}function fg(r,e){return r.languageDataAt("closeBrackets",e)[0]||Ts}const sM=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),oM=I.inputHandler.of((r,e,t,n)=>{if((sM?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let i=r.state.selection.main;if(n.length>2||n.length==2&&Ut(nt(n,0))==1||e!=i.from||t!=i.to)return!1;let s=lM(r.state,n);return s?(r.dispatch(s),!0):!1}),aM=[{key:"Backspace",run:({state:r,dispatch:e})=>{if(r.readOnly)return!1;let n=fg(r,r.selection.main.head).brackets||Ts.brackets,i=null,s=r.changeByRange(o=>{if(o.empty){let a=cM(r.doc,o.head);for(let l of n)if(l==a&&il(r.doc,o.head)==dg(nt(l,0)))return{changes:{from:o.head-l.length,to:o.head+l.length},range:M.cursor(o.head-l.length)}}return{range:i=o}});return i||e(r.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function lM(r,e){let t=fg(r,r.selection.main.head),n=t.brackets||Ts.brackets;for(let i of n){let s=dg(nt(i,0));if(e==i)return s==i?dM(r,i,n.indexOf(i+i+i)>-1,t):uM(r,i,s,t.before||Ts.before);if(e==s&&pg(r,r.selection.main.from))return hM(r,i,s)}return null}function pg(r,e){let t=!1;return r.field(hg).between(0,r.doc.length,n=>{n==e&&(t=!0)}),t}function il(r,e){let t=r.sliceString(e,e+2);return t.slice(0,Ut(nt(t,0)))}function cM(r,e){let t=r.sliceString(e-2,e);return Ut(nt(t,0))==t.length?t:t.slice(1)}function uM(r,e,t,n){let i=null,s=r.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:t,from:o.to}],effects:kr.of(o.to+e.length),range:M.range(o.anchor+e.length,o.head+e.length)};let a=il(r.doc,o.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:e+t,from:o.head},effects:kr.of(o.head+e.length),range:M.cursor(o.head+e.length)}:{range:i=o}});return i?null:r.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function hM(r,e,t){let n=null,i=r.changeByRange(s=>s.empty&&il(r.doc,s.head)==t?{changes:{from:s.head,to:s.head+t.length,insert:t},range:M.cursor(s.head+t.length)}:n={range:s});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function dM(r,e,t,n){let i=n.stringPrefixes||Ts.stringPrefixes,s=null,o=r.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:kr.of(a.to+e.length),range:M.range(a.anchor+e.length,a.head+e.length)};let l=a.head,c=il(r.doc,l),u;if(c==e){if(mg(r,l))return{changes:{insert:e+e,from:l},effects:kr.of(l+e.length),range:M.cursor(l+e.length)};if(pg(r,l)){let d=t&&r.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+d.length,insert:d},range:M.cursor(l+d.length)}}}else{if(t&&r.sliceDoc(l-2*e.length,l)==e+e&&(u=gg(r,l-2*e.length,i))>-1&&mg(r,u))return{changes:{insert:e+e+e+e,from:l},effects:kr.of(l+e.length),range:M.cursor(l+e.length)};if(r.charCategorizer(l)(c)!=ve.Word&&gg(r,l,i)>-1&&!fM(r,l,e,i))return{changes:{insert:e+e,from:l},effects:kr.of(l+e.length),range:M.cursor(l+e.length)}}return{range:s=a}});return s?null:r.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function mg(r,e){let t=Be(r).resolveInner(e+1);return t.parent&&t.from==e}function fM(r,e,t,n){let i=Be(r).resolveInner(e,-1),s=n.reduce((o,a)=>Math.max(o,a.length),0);for(let o=0;o<5;o++){let a=r.sliceDoc(i.from,Math.min(i.to,i.from+t.length+s)),l=a.indexOf(t);if(!l||l>-1&&n.indexOf(a.slice(0,l))>-1){let u=i.firstChild;for(;u&&u.from==i.from&&u.to-u.from>t.length+l;){if(r.sliceDoc(u.to-t.length,u.to)==t)return!1;u=u.firstChild}return!0}let c=i.to==e&&i.parent;if(!c)break;i=c}return!1}function gg(r,e,t){let n=r.charCategorizer(e);if(n(r.sliceDoc(e-1,e))!=ve.Word)return e;for(let i of t){let s=e-i.length;if(r.sliceDoc(s,e)==i&&n(r.sliceDoc(s-1,s))!=ve.Word)return s}return-1}function pM(r={}){return[nM,at,Ie.of(r),eM,mM,rM]}const yg=[{key:"Ctrl-Space",run:ug},{mac:"Alt-`",run:ug},{key:"Escape",run:XD},{key:"ArrowDown",run:rl(!0)},{key:"ArrowUp",run:rl(!1)},{key:"PageDown",run:rl(!0,"page")},{key:"PageUp",run:rl(!1,"page")},{key:"Enter",run:ZD}],mM=dr.highest(ya.computeN([Ie],r=>r.facet(Ie).defaultKeymap?[yg]:[]));class bg{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class xr{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=n.facet(Es).markerFilter;i&&(e=i(e,n));let s=e.slice().sort((u,h)=>u.from-h.from||u.to-h.to),o=new gn,a=[],l=0;for(let u=0;;){let h=u==s.length?null:s[u];if(!h&&!a.length)break;let d,f;for(a.length?(d=l,f=a.reduce((m,g)=>Math.min(m,g.to),h&&h.from>d?h.from:1e8)):(d=h.from,f=h.to,a.push(h),u++);u<s.length;){let m=s[u];if(m.from==d&&(m.to>m.from||m.to==d))a.push(m),u++,f=Math.min(m.to,f);else{f=Math.min(m.from,f);break}}let p=DM(a);if(a.some(m=>m.from==m.to||m.from==m.to-1&&n.doc.lineAt(m.from).to==m.from))o.add(d,d,z.widget({widget:new xM(p),diagnostics:a.slice()}));else{let m=a.reduce((g,y)=>y.markClass?g+" "+y.markClass:g,"");o.add(d,f,z.mark({class:"cm-lintRange cm-lintRange-"+p+m,diagnostics:a.slice(),inclusiveEnd:a.some(g=>g.to>f)}))}l=f;for(let m=0;m<a.length;m++)a[m].to<=l&&a.splice(m--,1)}let c=o.finish();return new xr(c,t,pi(c))}}function pi(r,e=null,t=0){let n=null;return r.between(t,1e9,(i,s,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!n)n=new bg(i,s,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(n.diagnostic)<0)return!1;n=new bg(n.from,s,n.diagnostic)}}),n}function gM(r,e){let t=e.pos,n=e.end||t,i=r.state.facet(Es).hideOn(r,t,n);if(i!=null)return i;let s=r.startState.doc.lineAt(e.pos);return!!(r.effects.some(o=>o.is(vg))||r.changes.touchesRange(s.from,Math.max(s.to,n)))}function yM(r,e){return r.field(gt,!1)?e:e.concat(Z.appendConfig.of(MM))}const vg=Z.define(),Nh=Z.define(),Cg=Z.define(),gt=Fe.define({create(){return new xr(z.none,null,null)},update(r,e){if(e.docChanged&&r.diagnostics.size){let t=r.diagnostics.map(e.changes),n=null,i=r.panel;if(r.selected){let s=e.changes.mapPos(r.selected.from,1);n=pi(t,r.selected.diagnostic,s)||pi(t,null,s)}!t.size&&i&&e.state.facet(Es).autoPanel&&(i=null),r=new xr(t,i,n)}for(let t of e.effects)if(t.is(vg)){let n=e.state.facet(Es).autoPanel?t.value.length?As.open:null:r.panel;r=xr.init(t.value,n,e.state)}else t.is(Nh)?r=new xr(r.diagnostics,t.value?As.open:null,r.selected):t.is(Cg)&&(r=new xr(r.diagnostics,r.panel,t.value));return r},provide:r=>[ms.from(r,e=>e.panel),I.decorations.from(r,e=>e.diagnostics)]}),bM=z.mark({class:"cm-lintRange cm-lintRange-active"});function vM(r,e,t){let{diagnostics:n}=r.state.field(gt),i,s=-1,o=-1;n.between(e-(t<0?1:0),e+(t>0?1:0),(l,c,{spec:u})=>{if(e>=l&&e<=c&&(l==c||(e>l||t>0)&&(e<c||t<0)))return i=u.diagnostics,s=l,o=c,!1});let a=r.state.facet(Es).tooltipFilter;return i&&a&&(i=a(i,r.state)),i?{pos:s,end:o,above:r.state.doc.lineAt(s).to<o,create(){return{dom:CM(r,i)}}}:null}function CM(r,e){return me("ul",{class:"cm-tooltip-lint"},e.map(t=>xg(r,t,!1)))}const wM=r=>{let e=r.state.field(gt,!1);(!e||!e.panel)&&r.dispatch({effects:yM(r.state,[Nh.of(!0)])});let t=ps(r,As.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},wg=r=>{let e=r.state.field(gt,!1);return!e||!e.panel?!1:(r.dispatch({effects:Nh.of(!1)}),!0)},kM=[{key:"Mod-Shift-m",run:wM,preventDefault:!0},{key:"F8",run:r=>{let e=r.state.field(gt,!1);if(!e)return!1;let t=r.state.selection.main,n=e.diagnostics.iter(t.to+1);return!n.value&&(n=e.diagnostics.iter(0),!n.value||n.from==t.from&&n.to==t.to)?!1:(r.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)}}],Es=V.define({combine(r){return Object.assign({sources:r.map(e=>e.source).filter(e=>e!=null)},Kt(r.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))}});function kg(r){let e=[];if(r)e:for(let{name:t}of r){for(let n=0;n<t.length;n++){let i=t[n];if(/[a-zA-Z]/.test(i)&&!e.some(s=>s.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function xg(r,e,t){var n;let i=t?kg(e.actions):[];return me("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},me("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(r):e.message),(n=e.actions)===null||n===void 0?void 0:n.map((s,o)=>{let a=!1,l=d=>{if(d.preventDefault(),a)return;a=!0;let f=pi(r.state.field(gt).diagnostics,e);f&&s.apply(r,f.from,f.to)},{name:c}=s,u=i[o]?c.indexOf(i[o]):-1,h=u<0?c:[c.slice(0,u),me("u",c.slice(u,u+1)),c.slice(u+1)];return me("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${u<0?"":` (access key "${i[o]})"`}.`},h)}),e.source&&me("div",{class:"cm-diagnosticSource"},e.source))}class xM extends bn{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return me("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Sg{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=xg(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class As{constructor(e){this.view=e,this.items=[];let t=i=>{if(i.keyCode==27)wg(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],o=kg(s.actions);for(let a=0;a<o.length;a++)if(o[a].toUpperCase().charCodeAt(0)==i.keyCode){let l=pi(this.view.state.field(gt).diagnostics,s);l&&s.actions[a].apply(e,l.from,l.to)}}else return;i.preventDefault()},n=i=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(i.target)&&this.moveSelection(s)};this.list=me("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:n}),this.dom=me("div",{class:"cm-panel-lint"},this.list,me("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>wg(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(gt).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(gt),n=0,i=!1,s=null,o=new Set;for(e.between(0,this.view.state.doc.length,(a,l,{spec:c})=>{for(let u of c.diagnostics){if(o.has(u))continue;o.add(u);let h=-1,d;for(let f=n;f<this.items.length;f++)if(this.items[f].diagnostic==u){h=f;break}h<0?(d=new Sg(this.view,u),this.items.splice(n,0,d),i=!0):(d=this.items[h],h>n&&(this.items.splice(n,h-n),i=!0)),t&&d.diagnostic==t.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),s=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();this.items.length==0&&(this.items.push(new Sg(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let c=l.height/this.list.offsetHeight;a.top<l.top?this.list.scrollTop-=(l.top-a.top)/c:a.bottom>l.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function t(){let n=e;e=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(gt),n=pi(t.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:Cg.of(n)})}static open(e){return new As(e)}}function SM(r,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(r)}</svg>')`}function sl(r){return SM(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${r}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const OM=I.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:sl("#d11")},".cm-lintRange-warning":{backgroundImage:sl("orange")},".cm-lintRange-info":{backgroundImage:sl("#999")},".cm-lintRange-hint":{backgroundImage:sl("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function _M(r){return r=="error"?4:r=="warning"?3:r=="info"?2:1}function DM(r){let e="hint",t=1;for(let n of r){let i=_M(n.severity);i>t&&(t=i,e=n.severity)}return e}const MM=[gt,I.decorations.compute([gt],r=>{let{selected:e,panel:t}=r.field(gt);return!e||!t||e.from==e.to?z.none:z.set([bM.range(e.from,e.to)])}),TS(vM,{hideOn:gM}),OM];var Og=function(e){e===void 0&&(e={});var{crosshairCursor:t=!1}=e,n=[];e.closeBracketsKeymap!==!1&&(n=n.concat(aM)),e.defaultKeymap!==!1&&(n=n.concat(tD)),e.searchKeymap!==!1&&(n=n.concat(DD)),e.historyKeymap!==!1&&(n=n.concat(u_)),e.foldKeymap!==!1&&(n=n.concat(OO)),e.completionKeymap!==!1&&(n=n.concat(yg)),e.lintKeymap!==!1&&(n=n.concat(kM));var i=[];return e.lineNumbers!==!1&&i.push(QS()),e.highlightActiveLineGutter!==!1&&i.push(qS()),e.highlightSpecialChars!==!1&&i.push(sS()),e.history!==!1&&i.push(t_()),e.foldGutter!==!1&&i.push(PO()),e.drawSelection!==!1&&i.push(Ux()),e.dropCursor!==!1&&i.push(Jx()),e.allowMultipleSelections!==!1&&i.push(J.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&i.push(bO()),e.syntaxHighlighting!==!1&&i.push(z6(RO,{fallback:!0})),e.bracketMatching!==!1&&i.push(VO()),e.closeBrackets!==!1&&i.push(iM()),e.autocompletion!==!1&&i.push(pM()),e.rectangularSelection!==!1&&i.push(vS()),t!==!1&&i.push(kS()),e.highlightActiveLine!==!1&&i.push(hS()),e.highlightSelectionMatches!==!1&&i.push(lD()),e.tabSize&&typeof e.tabSize=="number"&&i.push(La.of(" ".repeat(e.tabSize))),i.concat([ya.of(n.flat())]).filter(Boolean)};const PM="#e5c07b",_g="#e06c75",TM="#56b6c2",EM="#ffffff",ol="#abb2bf",Bh="#7d8799",AM="#61afef",RM="#98c379",Dg="#d19a66",LM="#c678dd",NM="#21252b",Mg="#2c313a",Pg="#282c34",Ih="#353a42",BM="#3E4451",Tg="#528bff",IM=I.theme({"&":{color:ol,backgroundColor:Pg},".cm-content":{caretColor:Tg},".cm-cursor, .cm-dropCursor":{borderLeftColor:Tg},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:BM},".cm-panels":{backgroundColor:NM,color:ol},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Pg,color:Bh,border:"none"},".cm-activeLineGutter":{backgroundColor:Mg},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Ih},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ih,borderBottomColor:Ih},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Mg,color:ol}}},{dark:!0}),HM=xs.define([{tag:O.keyword,color:LM},{tag:[O.name,O.deleted,O.character,O.propertyName,O.macroName],color:_g},{tag:[O.function(O.variableName),O.labelName],color:AM},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:Dg},{tag:[O.definition(O.name),O.separator],color:ol},{tag:[O.typeName,O.className,O.number,O.changed,O.annotation,O.modifier,O.self,O.namespace],color:PM},{tag:[O.operator,O.operatorKeyword,O.url,O.escape,O.regexp,O.link,O.special(O.string)],color:TM},{tag:[O.meta,O.comment],color:Bh},{tag:O.strong,fontWeight:"bold"},{tag:O.emphasis,fontStyle:"italic"},{tag:O.strikethrough,textDecoration:"line-through"},{tag:O.link,color:Bh,textDecoration:"underline"},{tag:O.heading,fontWeight:"bold",color:_g},{tag:[O.atom,O.bool,O.special(O.variableName)],color:Dg},{tag:[O.processingInstruction,O.string,O.inserted],color:RM},{tag:O.invalid,color:EM}]),VM=[IM,z6(HM)];var FM=I.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),QM=function(e){e===void 0&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:i=!1,theme:s="light",placeholder:o="",basicSetup:a=!0}=e,l=[];switch(t&&l.unshift(ya.of([nD])),a&&(typeof a=="boolean"?l.unshift(Og()):l.unshift(Og(a))),o&&l.unshift(mS(o)),s){case"light":l.push(FM);break;case"dark":l.push(VM);break;case"none":break;default:l.push(s);break}return n===!1&&l.push(I.editable.of(!1)),i&&l.push(J.readOnly.of(!0)),[...l]},WM=r=>({line:r.state.doc.lineAt(r.state.selection.main.from),lineCount:r.state.doc.lines,lineBreak:r.state.lineBreak,length:r.state.doc.length,readOnly:r.state.readOnly,tabSize:r.state.tabSize,selection:r.state.selection,selectionAsSingle:r.state.selection.asSingle().main,ranges:r.state.selection.ranges,selectionCode:r.state.sliceDoc(r.state.selection.main.from,r.state.selection.main.to),selections:r.state.selection.ranges.map(e=>r.state.sliceDoc(e.from,e.to)),selectedText:r.state.selection.ranges.some(e=>!e.empty)}),Eg=Xt.define(),jM=[];function qM(r){var{value:e,selection:t,onChange:n,onStatistics:i,onCreateEditor:s,onUpdate:o,extensions:a=jM,autoFocus:l,theme:c="light",height:u=null,minHeight:h=null,maxHeight:d=null,width:f=null,minWidth:p=null,maxWidth:m=null,placeholder:g="",editable:y=!0,readOnly:C=!1,indentWithTab:w=!0,basicSetup:x=!0,root:b,initialState:S}=r,[k,D]=v.useState(),[P,j]=v.useState(),[E,T]=v.useState(),B=I.theme({"&":{height:u,minHeight:h,maxHeight:d,width:f,minWidth:p,maxWidth:m},"& .cm-scroller":{height:"100% !important"}}),A=I.updateListener.of(q=>{if(q.docChanged&&typeof n=="function"&&!q.transactions.some(De=>De.annotation(Eg))){var $=q.state.doc,X=$.toString();n(X,q)}i&&i(WM(q))}),N=QM({theme:c,editable:y,readOnly:C,placeholder:g,indentWithTab:w,basicSetup:x}),R=[A,B,...N];return o&&typeof o=="function"&&R.push(I.updateListener.of(o)),R=R.concat(a),v.useLayoutEffect(()=>{if(k&&!E){var q={doc:e,selection:t,extensions:R},$=S?J.fromJSON(S.json,q,S.fields):J.create(q);if(T($),!P){var X=new I({state:$,parent:k,root:b});j(X),s&&s(X,$)}}return()=>{P&&(T(void 0),j(void 0))}},[k,E]),v.useEffect(()=>{r.container&&D(r.container)},[r.container]),v.useEffect(()=>()=>{P&&(P.destroy(),j(void 0))},[P]),v.useEffect(()=>{l&&P&&P.focus()},[l,P]),v.useEffect(()=>{P&&P.dispatch({effects:Z.reconfigure.of(R)})},[c,a,u,h,d,f,p,m,g,y,C,w,x,n,o]),v.useEffect(()=>{if(e!==void 0){var q=P?P.state.doc.toString():"";P&&e!==q&&P.dispatch({changes:{from:0,to:q.length,insert:e||""},annotations:[Eg.of(!0)]})}},[e,P]),{state:E,setState:T,view:P,setView:j,container:k,setContainer:D}}var zM=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Ag=v.forwardRef((r,e)=>{var{className:t,value:n="",selection:i,extensions:s=[],onChange:o,onStatistics:a,onCreateEditor:l,onUpdate:c,autoFocus:u,theme:h="light",height:d,minHeight:f,maxHeight:p,width:m,minWidth:g,maxWidth:y,basicSetup:C,placeholder:w,indentWithTab:x,editable:b,readOnly:S,root:k,initialState:D}=r,P=qw(r,zM),j=v.useRef(null),{state:E,view:T,container:B,setContainer:A}=qM({root:k,value:n,autoFocus:u,theme:h,height:d,minHeight:f,maxHeight:p,width:m,minWidth:g,maxWidth:y,basicSetup:C,placeholder:w,indentWithTab:x,editable:b,readOnly:S,selection:i,onChange:o,onStatistics:a,onCreateEditor:l,onUpdate:c,extensions:s,initialState:D});v.useImperativeHandle(e,()=>({editor:j.current,state:E,view:T}),[j,B,E,T]);var N=v.useCallback(q=>{j.current=q,A(q)},[A]);if(typeof n!="string")throw new Error("value must be typeof string but got "+typeof n);var R=typeof h=="string"?"cm-theme-"+h:"cm-theme";return de.jsx("div",Nc({ref:N,className:""+R+(t?" "+t:"")},P))});Ag.displayName="CodeMirror";var Rg={npm_package_exports___require:"./dist/avocado-not-front.umd.js",npm_package_devDependencies__types_node:"20.2.5",npm_package_devDependencies__testing_library_jest_dom:"6.4.0",npm_config_user_agent:"pnpm/9.10.0 npm/? node/v20.17.0 linux x64",CI:"true",npm_package_devDependencies__testing_library_user_event:"14.5.2",npm_package_devDependencies_vite:"5.0.12",npm_node_execpath:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_package_publishConfig_access:"public",npm_package_files_0:"dist",HOME:"/home/runner",npm_package_dependencies_react_select_async_paginate:"0.7.3",npm_package_devDependencies_classnames:"2.3.2",npm_package_devDependencies_sass:"1.62.1",npm_config_auto_install_peers:"true",npm_package_devDependencies_vite_plugin_dts:"3.7.1",npm_package_dependencies__codemirror_lang_yaml:"6.1.2",npm_package_devDependencies_typescript:"5.1.3",npm_package_peerDependencies_react_select_async_paginate:"0.7.3",npm_package_types:"./dist/index.d.ts",npm_package_devDependencies__types_react_dom:"18.0.11",npm_package_devDependencies__vitejs_plugin_react_swc:"3.5.0",npm_package_type:"module",npm_package_dependencies_zustand:"4.5.4",npm_package_module:"./dist/avocado-not-front.es.js",npm_package_devDependencies__types_testing_library__jest_dom:"6.0.0",npm_package_dependencies__foris_avocado_icons:"workspace:*",npm_config_registry:"https://registry.npmjs.org/",npm_config_node_linker:"hoisted",npm_package_dependencies__codemirror_lang_json:"6.0.1",npm_package_exports___import:"./dist/avocado-not-front.es.js",npm_package_dependencies__foris_avocado_core:"workspace:*",npm_package_dependencies_axios:"^1.8.4",npm_config_node_gyp:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",PATH:"/home/runner/work/avocado/avocado/packages/avocado-not-front/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/work/avocado/avocado/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/avocado/avocado/node_modules/.bin:/opt/hostedtoolcache/node/20.17.0/x64/bin:/home/runner/setup-pnpm/node_modules/.bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",TURBO_HASH:"18de3f48f1345b10",npm_package_name:"@foris/avocado-not-front",npm_package_scripts_start_stubby_examples:"stubby -d src/services/stubs/stubby-examples.yml -w -s 8300 -q",NODE:"/opt/hostedtoolcache/node/20.17.0/x64/bin/node",npm_config_frozen_lockfile:"",npm_config_legacy_peer_deps:"true",LANG:"C.UTF-8",npm_package_dependencies_react_dom:"18.2.0",npm_package_main:"./dist/avocado-not-front.umd.js",npm_lifecycle_script:"tsc && vite build",npm_package_dependencies__uiw_react_codemirror:"4.23.12",NODE_PATH:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules",npm_package_version:"0.5.0",npm_package_devDependencies__testing_library_react:"14.2.0",npm_package_devDependencies__types_react:"18.0.28",npm_package_devDependencies_jsdom:"24.0.0",npm_lifecycle_event:"build",npm_package_scripts_build:"tsc && vite build",npm_package_dependencies__codemirror_lang_sql:"6.8.0",npm_package_dependencies__foris_avocado_suite:"workspace:*",npm_package_devDependencies__foris_tsconfig:"workspace:*",npm_package_dependencies_react_select:"5.8.0",PWD:"/home/runner/work/avocado/avocado/packages/avocado-not-front",npm_execpath:"/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.10.0/node_modules/pnpm/bin/pnpm.cjs",npm_package_devDependencies_stubby:"^5.1.0",npm_command:"run-script",PNPM_SCRIPT_SRC_DIR:"/home/runner/work/avocado/avocado/packages/avocado-not-front",npm_package_scripts_start_stubby:"stubby -d src/services/stubs/stubby-config.yml -w -s 8200 -q",npm_package_dependencies_react:"18.2.0",npm_package_peerDependencies_react_select:"5.8.0",INIT_CWD:"/home/runner/work/avocado/avocado/packages/avocado-not-front",NODE_ENV:"production"};class al{constructor(e,t,n,i,s,o,a,l,c,u=0,h){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=h}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new al(e,[],t,n,n,0,[],0,i?new Lg(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=e&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=s.dynamicPrecedence(i);if(a&&(this.score+=a),n==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i<s.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((t=this.p.parser.nodeSet.types[i])===null||t===void 0)&&t.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let h=l?this.stack[l-1]:0,d=this.bufferBase+this.buffer.length-h;if(i<s.minRepeatTerm||e&131072){let f=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,c,f,d+4,!0)}if(e&262144)this.state=this.stack[l];else{let f=this.stack[l-3];this.state=s.getGoto(f,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,c)}storeNode(e,t,n,i=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(t==n)return;if(o.buffer[a-2]>=t){o.buffer[a-2]=n;return}}}if(!s||this.pos==n)this.buffer.push(e,t,n,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>n;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=i}}shift(e,t,n,i){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=i,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,i,4);else{let s=e,{parser:o}=this.p;(i>this.pos||t<=o.maxNode)&&(this.pos=i,o.stateFlag(s,1)||(this.reducePos=i)),this.pushState(s,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,i,4)}}apply(e,t,n,i){e&65536?this.reduce(e):this.shift(e,t,n,i)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new al(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new YM(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let i=[];for(let s=0,o;s<t.length;s+=2)(o=t[s+1])!=this.state&&this.p.parser.hasAction(o,e)&&i.push(t[s],o);if(this.stack.length<120)for(let s=0;i.length<8&&s<t.length;s+=2){let o=t[s+1];i.some((a,l)=>l&1&&a==o)||i.push(t[s],o)}t=i}let n=[];for(let i=0;i<t.length&&n.length<4;i+=2){let s=t[i+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[i],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,i=t&65535,s=this.stack.length-n*3;if(s<0||e.getGoto(this.stack[s],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(i,s)=>{if(!t.includes(i))return t.push(i),e.allActions(i,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-s;if(a>1){let l=o&65535,c=this.stack.length-a*3;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(o,s+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new Lg(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Lg{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class YM{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class ll{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new ll(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new ll(this.stack,this.pos,this.index)}}function cl(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let n=0,i=0;n<r.length;){let s=0;for(;;){let o=r.charCodeAt(n++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}t?t[i++]=s:t=new e(s)}return t}class ul{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Ng=new ul;class $M{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Ng,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,s=this.pos+e;for(;s<n.from;){if(!i)return null;let o=this.ranges[--i];s-=n.from-o.to,n=o}for(;t<0?s>n.to:s>=n.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];s+=o.from-n.to,n=o}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(t);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(n=s,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Ng,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class mi{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;UM(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}mi.prototype.contextual=mi.prototype.fallback=mi.prototype.extend=!1,mi.prototype.fallback=mi.prototype.extend=!1;class Rs{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function UM(r,e,t,n,i,s){let o=0,a=1<<n,{dialect:l}=t.p.parser;e:for(;a&r[o];){let c=r[o+1];for(let f=o+3;f<c;f+=2)if((r[f+1]&a)>0){let p=r[f];if(l.allows(p)&&(e.token.value==-1||e.token.value==p||ZM(p,e.token.value,i,s))){e.acceptToken(p);break}}let u=e.next,h=0,d=r[o+2];if(e.next<0&&d>h&&r[c+d*3-3]==65535){o=r[c+d*3-1];continue e}for(;h<d;){let f=h+d>>1,p=c+f+(f<<1),m=r[p],g=r[p+1]||65536;if(u<m)d=f;else if(u>=g)h=f+1;else{o=r[p+2],e.advance();continue e}}break}}function Bg(r,e,t){for(let n=e,i;(i=r[n])!=65535;n++)if(i==t)return n-e;return-1}function ZM(r,e,t,n){let i=Bg(t,n,e);return i<0||Bg(t,n,r)<i}const yt=typeof process<"u"&&Rg&&/\bparse\b/.test(Rg.LOG);let Hh=null;function Ig(r,e,t){let n=r.cursor(Ne.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(r.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:r.length}}class XM{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Ig(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Ig(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],i=this.index[t];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[i],o=this.start[t]+n.positions[i];if(o>e)return this.nextStart=o,null;if(s instanceof Te){if(o==e){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(G.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[t]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}}class KM{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new ul)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:s}=i,o=i.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let c=0;c<s.length;c++){if(!(1<<c&o))continue;let u=s[c],h=this.tokens[c];if(!(n&&!u.fallback)&&((u.contextual||h.start!=e.pos||h.mask!=o||h.context!=a)&&(this.updateCachedToken(h,u,e),h.mask=o,h.context=a),h.lookAhead>h.end+25&&(l=Math.max(h.lookAhead,l)),h.value!=0)){let d=t;if(h.extended>-1&&(t=this.addActions(e,h.extended,h.end,t)),t=this.addActions(e,h.value,h.end,t),!u.extend&&(n=h,t>d))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),!n&&e.pos==this.stream.end&&(n=new ul,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new ul,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:s}=n.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==e.value){let a=s.specializers[o](this.stream.read(e.start,e.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let s=0;s<i;s+=3)if(this.actions[s]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=n,i}addActions(e,t,n,i){let{state:s}=e,{parser:o}=e.p,{data:a}=o;for(let l=0;l<2;l++)for(let c=o.stateSlot(s,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=xn(a,c+2);else{i==0&&a[c+1]==2&&(i=this.putAction(xn(a,c+2),t,n,i));break}a[c]==t&&(i=this.putAction(xn(a,c+1),t,n,i))}return i}}class GM{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new $M(t,i),this.tokens=new KM(e,this.stream),this.topTerm=e.top[1];let{from:s}=i[0];this.stacks=[al.start(this,e.top[0],s)],this.fragments=n.length&&this.stream.end-s>e.bufferLength*4?new XM(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],i,s;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let a=e[o];for(;;){if(this.tokens.mainToken=null,a.pos>t)n.push(a);else{if(this.advanceStack(a,n,e))continue;{i||(i=[],s=[]),i.push(a);let l=this.tokens.getMainToken(a);s.push(l.value,l.end)}}break}}if(!n.length){let o=i&&tP(i);if(o)return yt&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw yt&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,s,n);if(o)return yt&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((a,l)=>l.score-a.score);n.length>o;)n.pop();n.some(a=>a.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let a=n[o];for(let l=o+1;l<n.length;l++){let c=n[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)n.splice(l--,1);else{n.splice(o--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let i=e.pos,{parser:s}=this,o=yt?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,u=c?e.curContext.hash:0;for(let h=this.fragments.nodeAt(i);h;){let d=this.parser.nodeSet.types[h.type.id]==h.type?s.getGoto(e.state,h.type.id):-1;if(d>-1&&h.length&&(!c||(h.prop(G.contextHash)||0)==u))return e.useNode(h,d),yt&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(h.type.id)})`),!0;if(!(h instanceof Te)||h.children.length==0||h.positions[0]>0)break;let f=h.children[0];if(f instanceof Te&&h.positions[0]==0)h=f;else break}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),yt&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;c<l.length;){let u=l[c++],h=l[c++],d=l[c++],f=c==l.length||!n,p=f?e:e.split(),m=this.tokens.mainToken;if(p.apply(u,h,m?m.start:p.pos,d),yt&&console.log(o+this.stackID(p)+` (via ${u&65536?`reduce of ${s.getName(u&65535)}`:"shift"} for ${s.getName(h)} @ ${i}${p==e?"":", split"})`),f)return!0;p.pos>i?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return Hg(e,t),!0}}runRecovery(e,t,n){let i=null,s=!1;for(let o=0;o<e.length;o++){let a=e[o],l=t[o<<1],c=t[(o<<1)+1],u=yt?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),yt&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let h=a.split(),d=u;for(let f=0;h.forceReduce()&&f<10&&(yt&&console.log(d+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,n));f++)yt&&(d=this.stackID(h)+" -> ");for(let f of a.recoverByInsert(l))yt&&console.log(u+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),yt&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),Hg(a,n)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(e){return e.close(),Te.build({buffer:ll.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Hh||(Hh=new WeakMap)).get(e);return t||Hh.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Hg(r,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==r.pos&&n.sameState(r)){e[t].score<r.score&&(e[t]=r);return}}e.push(r)}class JM{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const Vh=r=>r;class eP{constructor(e){this.start=e.start,this.shift=e.shift||Vh,this.reduce=e.reduce||Vh,this.reuse=e.reuse||Vh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Sr extends S6{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;a<e.repeatNodeCount;a++)t.push("");let n=Object.keys(e.topRules).map(a=>e.topRules[a][1]),i=[];for(let a=0;a<t.length;a++)i.push([]);function s(a,l,c){i[a].push([l,l.deserialize(String(c))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=G[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)s(u,l,a[c++]);else{let h=a[c+-u];for(let d=-u;d>0;d--)s(a[c++],l,h);c++}}}this.nodeSet=new Uu(t.map((a,l)=>st.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:n.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=y6;let o=cl(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(Vg),this.states=cl(e.states,Uint32Array),this.data=cl(e.stateData),this.goto=cl(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new mi(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new GM(this,e,t,n);for(let s of this.wrappers)i=s(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let s=i[t+1];;){let o=i[s++],a=o&1,l=i[s++];if(a&&n)return l;for(let c=s+(o>>1);s<c;s++)if(i[s]==e)return l;if(a)return-1}}hasAction(e,t){let n=this.data;for(let i=0;i<2;i++)for(let s=this.stateSlot(e,i?2:1),o;;s+=3){if((o=n[s])==65535)if(n[s+1]==1)o=n[s=xn(n,s+2)];else{if(n[s+1]==2)return xn(n,s+2);break}if(o==t||o==0)return xn(n,s+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let s=this.stateSlot(e,1);i==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=xn(this.data,s+2);else break;i=t(xn(this.data,s+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=xn(this.data,n+2);else break;if(!(this.data[n+2]&1)){let i=this.data[n+1];t.some((s,o)=>o&1&&s==i)||t.push(this.data[n],i)}}return t}configure(e){let t=Object.assign(Object.create(Sr.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let i=e.tokenizers.find(s=>s.from==n);return i?i.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let s=e.specializers.find(a=>a.from==n.external);if(!s)return n;let o=Object.assign(Object.assign({},n),{external:s.to});return t.specializers[i]=Vg(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let s of e.split(" ")){let o=t.indexOf(s);o>=0&&(n[o]=!0)}let i=null;for(let s=0;s<t.length;s++)if(!n[s])for(let o=this.dialects[t[s]],a;(a=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new JM(e,n,i)}static deserialize(e){return new Sr(e)}}function xn(r,e){return r[e]|r[e+1]<<16}function tP(r){let e=null;for(let t of r){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function Vg(r){if(r.external){let e=r.extend?1:0;return(t,n)=>r.external(t,n)<<1|e}return r.get}const nP=bs({String:O.string,Number:O.number,"True False":O.bool,PropertyName:O.propertyName,Null:O.null,", :":O.separator,"[ ]":O.squareBracket,"{ }":O.brace}),rP=Sr.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[nP],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),iP=vr.define({name:"json",parser:rP.configure({props:[Ia.add({Object:ah({except:/^\s*\}/}),Array:ah({except:/^\s*\]/})}),Ha.add({"Object Array":N6})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function Fg(){return new ih(iP)}const sP=36,Qg=1,oP=2,gi=3,Fh=4,aP=5,lP=6,cP=7,uP=8,hP=9,dP=10,fP=11,pP=12,mP=13,gP=14,yP=15,bP=16,vP=17,Wg=18,CP=19,jg=20,qg=21,zg=22,wP=23,kP=24;function Qh(r){return r>=65&&r<=90||r>=97&&r<=122||r>=48&&r<=57}function xP(r){return r>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70}function Or(r,e,t){for(let n=!1;;){if(r.next<0)return;if(r.next==e&&!n){r.advance();return}n=t&&!n&&r.next==92,r.advance()}}function SP(r,e){e:for(;;){if(r.next<0)return;if(r.next==36){r.advance();for(let t=0;t<e.length;t++){if(r.next!=e.charCodeAt(t))continue e;r.advance()}if(r.next==36){r.advance();return}}else r.advance()}}function OP(r,e){let t="[{<(".indexOf(String.fromCharCode(e)),n=t<0?e:"]}>)".charCodeAt(t);for(;;){if(r.next<0)return;if(r.next==n&&r.peek(1)==39){r.advance(2);return}r.advance()}}function Wh(r,e){for(;!(r.next!=95&&!Qh(r.next));)e!=null&&(e+=String.fromCharCode(r.next)),r.advance();return e}function _P(r){if(r.next==39||r.next==34||r.next==96){let e=r.next;r.advance(),Or(r,e,!1)}else Wh(r)}function Yg(r,e){for(;r.next==48||r.next==49;)r.advance();e&&r.next==e&&r.advance()}function $g(r,e){for(;;){if(r.next==46){if(e)break;e=!0}else if(r.next<48||r.next>57)break;r.advance()}if(r.next==69||r.next==101)for(r.advance(),(r.next==43||r.next==45)&&r.advance();r.next>=48&&r.next<=57;)r.advance()}function Ug(r){for(;!(r.next<0||r.next==10);)r.advance()}function _r(r,e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)==r)return!0;return!1}const jh=` \r
|
|
587
|
+
`;function Zg(r,e,t){let n=Object.create(null);n.true=n.false=aP,n.null=n.unknown=lP;for(let i of r.split(" "))i&&(n[i]=jg);for(let i of e.split(" "))i&&(n[i]=qg);for(let i of(t||"").split(" "))i&&(n[i]=kP);return n}const qh={backslashEscapes:!1,hashComments:!1,spaceAfterDashes:!1,slashComments:!1,doubleQuotedStrings:!1,doubleDollarQuotedStrings:!1,unquotedBitLiterals:!1,treatBitsAsBytes:!1,charSetCasts:!1,plsqlQuotingMechanism:!1,operatorChars:"*+-%<>!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:Zg("absolute action add after all allocate alter and any are as asc assertion at authorization before begin between both breadth by call cascade cascaded case cast catalog check close collate collation column commit condition connect connection constraint constraints constructor continue corresponding count create cross cube current current_date current_default_transform_group current_transform_group_for_type current_path current_role current_time current_timestamp current_user cursor cycle data day deallocate declare default deferrable deferred delete depth deref desc describe descriptor deterministic diagnostics disconnect distinct do domain drop dynamic each else elseif end end-exec equals escape except exception exec execute exists exit external fetch first for foreign found from free full function general get global go goto grant group grouping handle having hold hour identity if immediate in indicator initially inner inout input insert intersect into is isolation join key language last lateral leading leave left level like limit local localtime localtimestamp locator loop map match method minute modifies module month names natural nesting new next no none not of old on only open option or order ordinality out outer output overlaps pad parameter partial path prepare preserve primary prior privileges procedure public read reads recursive redo ref references referencing relative release repeat resignal restrict result return returns revoke right role rollback rollup routine row rows savepoint schema scroll search second section select session session_user set sets signal similar size some space specific specifictype sql sqlexception sqlstate sqlwarning start state static system_user table temporary then timezone_hour timezone_minute to trailing transaction translation treat trigger under undo union unique unnest until update usage user using value values view when whenever where while with without work write year zone ","array binary bit boolean char character clob date decimal double float int integer interval large national nchar nclob numeric object precision real smallint time timestamp varchar varying ")};function DP(r,e,t,n){let i={};for(let s in qh)i[s]=(r.hasOwnProperty(s)?r:qh)[s];return e&&(i.words=Zg(e,t||"",n)),i}function Xg(r){return new Rs(e=>{var t;let{next:n}=e;if(e.advance(),_r(n,jh)){for(;_r(e.next,jh);)e.advance();e.acceptToken(sP)}else if(n==36&&r.doubleDollarQuotedStrings){let i=Wh(e,"");e.next==36&&(e.advance(),SP(e,i),e.acceptToken(gi))}else if(n==39||n==34&&r.doubleQuotedStrings)Or(e,n,r.backslashEscapes),e.acceptToken(gi);else if(n==35&&r.hashComments||n==47&&e.next==47&&r.slashComments)Ug(e),e.acceptToken(Qg);else if(n==45&&e.next==45&&(!r.spaceAfterDashes||e.peek(1)==32))Ug(e),e.acceptToken(Qg);else if(n==47&&e.next==42){e.advance();for(let i=1;;){let s=e.next;if(e.next<0)break;if(e.advance(),s==42&&e.next==47){if(i--,e.advance(),!i)break}else s==47&&e.next==42&&(i++,e.advance())}e.acceptToken(oP)}else if((n==101||n==69)&&e.next==39)e.advance(),Or(e,39,!0),e.acceptToken(gi);else if((n==110||n==78)&&e.next==39&&r.charSetCasts)e.advance(),Or(e,39,r.backslashEscapes),e.acceptToken(gi);else if(n==95&&r.charSetCasts)for(let i=0;;i++){if(e.next==39&&i>1){e.advance(),Or(e,39,r.backslashEscapes),e.acceptToken(gi);break}if(!Qh(e.next))break;e.advance()}else if(r.plsqlQuotingMechanism&&(n==113||n==81)&&e.next==39&&e.peek(1)>0&&!_r(e.peek(1),jh)){let i=e.peek(1);e.advance(2),OP(e,i),e.acceptToken(gi)}else if(n==40)e.acceptToken(cP);else if(n==41)e.acceptToken(uP);else if(n==123)e.acceptToken(hP);else if(n==125)e.acceptToken(dP);else if(n==91)e.acceptToken(fP);else if(n==93)e.acceptToken(pP);else if(n==59)e.acceptToken(mP);else if(r.unquotedBitLiterals&&n==48&&e.next==98)e.advance(),Yg(e),e.acceptToken(zg);else if((n==98||n==66)&&(e.next==39||e.next==34)){const i=e.next;e.advance(),r.treatBitsAsBytes?(Or(e,i,r.backslashEscapes),e.acceptToken(wP)):(Yg(e,i),e.acceptToken(zg))}else if(n==48&&(e.next==120||e.next==88)||(n==120||n==88)&&e.next==39){let i=e.next==39;for(e.advance();xP(e.next);)e.advance();i&&e.next==39&&e.advance(),e.acceptToken(Fh)}else if(n==46&&e.next>=48&&e.next<=57)$g(e,!0),e.acceptToken(Fh);else if(n==46)e.acceptToken(gP);else if(n>=48&&n<=57)$g(e,!1),e.acceptToken(Fh);else if(_r(n,r.operatorChars)){for(;_r(e.next,r.operatorChars);)e.advance();e.acceptToken(yP)}else if(_r(n,r.specialVar))e.next==n&&e.advance(),_P(e),e.acceptToken(vP);else if(_r(n,r.identifierQuotes))Or(e,n,!1),e.acceptToken(CP);else if(n==58||n==44)e.acceptToken(bP);else if(Qh(n)){let i=Wh(e,String.fromCharCode(n));e.acceptToken(e.next==46||e.peek(-i.length-1)==46?Wg:(t=r.words[i.toLowerCase()])!==null&&t!==void 0?t:Wg)}})}const Kg=Xg(qh),MP=Sr.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,Kg],topRules:{Script:[0,25]},tokenPrec:0});function zh(r){let e=r.cursor().moveTo(r.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function Ls(r,e){let t=r.sliceString(e.from,e.to),n=/^([`'"])(.*)\1$/.exec(t);return n?n[2]:t}function hl(r){return r&&(r.name=="Identifier"||r.name=="QuotedIdentifier")}function PP(r,e){if(e.name=="CompositeIdentifier"){let t=[];for(let n=e.firstChild;n;n=n.nextSibling)hl(n)&&t.push(Ls(r,n));return t}return[Ls(r,e)]}function Gg(r,e){for(let t=[];;){if(!e||e.name!=".")return t;let n=zh(e);if(!hl(n))return t;t.unshift(Ls(r,n)),e=zh(n)}}function TP(r,e){let t=Be(r).resolveInner(e,-1),n=AP(r.doc,t);return t.name=="Identifier"||t.name=="QuotedIdentifier"||t.name=="Keyword"?{from:t.from,quoted:t.name=="QuotedIdentifier"?r.doc.sliceString(t.from,t.from+1):null,parents:Gg(r.doc,zh(t)),aliases:n}:t.name=="."?{from:e,quoted:null,parents:Gg(r.doc,t),aliases:n}:{from:e,quoted:null,parents:[],empty:!0,aliases:n}}const EP=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function AP(r,e){let t;for(let i=e;!t;i=i.parent){if(!i)return null;i.name=="Statement"&&(t=i)}let n=null;for(let i=t.firstChild,s=!1,o=null;i;i=i.nextSibling){let a=i.name=="Keyword"?r.sliceString(i.from,i.to).toLowerCase():null,l=null;if(!s)s=a=="from";else if(a=="as"&&o&&hl(i.nextSibling))l=Ls(r,i.nextSibling);else{if(a&&EP.has(a))break;o&&hl(i)&&(l=Ls(r,i))}l&&(n||(n=Object.create(null)),n[l]=PP(r,o)),o=/Identifier$/.test(i.name)?i:null}return n}function RP(r,e){return r?e.map(t=>Object.assign(Object.assign({},t),{label:t.label[0]==r?t.label:r+t.label+r,apply:void 0})):e}const LP=/^\w*$/,NP=/^[`'"]?\w*[`'"]?$/;function Jg(r){return r.self&&typeof r.self.label=="string"}class Yh{constructor(e,t){this.idQuote=e,this.idCaseInsensitive=t,this.list=[],this.children=void 0}child(e){let t=this.children||(this.children=Object.create(null)),n=t[e];return n||(e&&!this.list.some(i=>i.label==e)&&this.list.push(e2(e,"type",this.idQuote,this.idCaseInsensitive)),t[e]=new Yh(this.idQuote,this.idCaseInsensitive))}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let t=this.list.findIndex(n=>n.label==e.label);t>-1?this.list[t]=e:this.list.push(e)}addCompletions(e){for(let t of e)this.addCompletion(typeof t=="string"?e2(t,"property",this.idQuote,this.idCaseInsensitive):t)}addNamespace(e){Array.isArray(e)?this.addCompletions(e):Jg(e)?this.addNamespace(e.children):this.addNamespaceObject(e)}addNamespaceObject(e){for(let t of Object.keys(e)){let n=e[t],i=null,s=t.replace(/\\?\./g,a=>a=="."?"\0":a).split("\0"),o=this;Jg(n)&&(i=n.self,n=n.children);for(let a=0;a<s.length;a++)i&&a==s.length-1&&o.addCompletion(i),o=o.child(s[a].replace(/\\\./g,"."));o.addNamespace(n)}}}function e2(r,e,t,n){return new RegExp("^[a-z_][a-z_\\d]*$",n?"i":"").test(r)?{label:r,type:e}:{label:r,type:e,apply:t+r+t}}function BP(r,e,t,n,i,s){var o;let a=((o=s==null?void 0:s.spec.identifierQuotes)===null||o===void 0?void 0:o[0])||'"',l=new Yh(a,!!(s!=null&&s.spec.caseInsensitiveIdentifiers)),c=i?l.child(i):null;return l.addNamespace(r),e&&(c||l).addCompletions(e),t&&l.addCompletions(t),c&&l.addCompletions(c.list),n&&l.addCompletions((c||l).child(n).list),u=>{let{parents:h,from:d,quoted:f,empty:p,aliases:m}=TP(u.state,u.pos);if(p&&!u.explicit)return null;m&&h.length==1&&(h=m[h[0]]||h);let g=l;for(let w of h){for(;!g.children||!g.children[w];)if(g==l&&c)g=c;else if(g==c&&n)g=g.child(n);else return null;let x=g.maybeChild(w);if(!x)return null;g=x}let y=f&&u.state.sliceDoc(u.pos,u.pos+1)==f,C=g.list;return g==l&&m&&(C=C.concat(Object.keys(m).map(w=>({label:w,type:"constant"})))),{from:d,to:y?u.pos+1:void 0,options:RP(f,C),validFor:f?NP:LP}}}function IP(r){return r==qg?"type":r==jg?"keyword":"variable"}function HP(r,e,t){let n=Object.keys(r).map(i=>t(e?i.toUpperCase():i,IP(r[i])));return AD(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],eg(n))}let VP=MP.configure({props:[Ia.add({Statement:ah()}),Ha.add({Statement(r,e){return{from:Math.min(r.from+100,e.doc.lineAt(r.from).to),to:r.to}},BlockComment(r){return{from:r.from+2,to:r.to-2}}}),bs({Keyword:O.keyword,Type:O.typeName,Builtin:O.standard(O.name),Bits:O.number,Bytes:O.string,Bool:O.bool,Null:O.null,Number:O.number,String:O.string,Identifier:O.name,QuotedIdentifier:O.special(O.string),SpecialVar:O.special(O.name),LineComment:O.lineComment,BlockComment:O.blockComment,Operator:O.operator,"Semi Punctuation":O.punctuation,"( )":O.paren,"{ }":O.brace,"[ ]":O.squareBracket})]});class $h{constructor(e,t,n){this.dialect=e,this.language=t,this.spec=n}get extension(){return this.language.extension}static define(e){let t=DP(e,e.keywords,e.types,e.builtin),n=vr.define({name:"sql",parser:VP.configure({tokenizers:[{from:Kg,to:Xg(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new $h(t,n,e)}}function FP(r,e){return{label:r,type:e,boost:-1}}function QP(r,e=!1,t){return HP(r.dialect.words,e,t||FP)}function WP(r){return r.schema?BP(r.schema,r.tables,r.schemas,r.defaultTable,r.defaultSchema,r.dialect||Uh):()=>null}function jP(r){return r.schema?(r.dialect||Uh).language.data.of({autocomplete:WP(r)}):[]}function qP(r={}){let e=r.dialect||Uh;return new ih(e.language,[jP(r),e.language.data.of({autocomplete:QP(e,r.upperCaseKeywords,r.keywordCompletion)})])}const Uh=$h.define({}),yi=63,t2=64,zP=1,YP=2,n2=3,$P=4,r2=5,UP=6,ZP=7,i2=65,XP=66,KP=8,GP=9,JP=10,eT=11,tT=12,s2=13,nT=19,rT=20,iT=29,sT=33,oT=34,aT=47,lT=0,Zh=1,Xh=2,Ns=3,Kh=4;class Dr{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}}Dr.top=new Dr(null,-1,lT);function Bs(r,e){for(let t=0,n=e-r.pos-1;;n--,t++){let i=r.peek(n);if(Sn(i)||i==-1)return t}}function Gh(r){return r==32||r==9}function Sn(r){return r==10||r==13}function o2(r){return Gh(r)||Sn(r)}function Mr(r){return r<0||o2(r)}const cT=new eP({start:Dr.top,reduce(r,e){return r.type==Ns&&(e==rT||e==oT)?r.parent:r},shift(r,e,t,n){if(e==n2)return new Dr(r,Bs(n,n.pos),Zh);if(e==i2||e==r2)return new Dr(r,Bs(n,n.pos),Xh);if(e==yi)return r.parent;if(e==nT||e==sT)return new Dr(r,0,Ns);if(e==s2&&r.type==Kh)return r.parent;if(e==aT){let i=/[1-9]/.exec(n.read(n.pos,t.pos));if(i)return new Dr(r,r.depth+ +i[0],Kh)}return r},hash(r){return r.hash}});function bi(r,e,t=0){return r.peek(t)==e&&r.peek(t+1)==e&&r.peek(t+2)==e&&Mr(r.peek(t+3))}const uT=new Rs((r,e)=>{if(r.next==-1&&e.canShift(t2))return r.acceptToken(t2);let t=r.peek(-1);if((Sn(t)||t<0)&&e.context.type!=Ns){if(bi(r,45))if(e.canShift(yi))r.acceptToken(yi);else return r.acceptToken(zP,3);if(bi(r,46))if(e.canShift(yi))r.acceptToken(yi);else return r.acceptToken(YP,3);let n=0;for(;r.next==32;)n++,r.advance();(n<e.context.depth||n==e.context.depth&&e.context.type==Zh&&(r.next!=45||!Mr(r.peek(1))))&&r.next!=-1&&!Sn(r.next)&&r.next!=35&&r.acceptToken(yi,-n)}},{contextual:!0}),hT=new Rs((r,e)=>{if(e.context.type==Ns){r.next==63&&(r.advance(),Mr(r.next)&&r.acceptToken(ZP));return}if(r.next==45)r.advance(),Mr(r.next)&&r.acceptToken(e.context.type==Zh&&e.context.depth==Bs(r,r.pos-1)?$P:n2);else if(r.next==63)r.advance(),Mr(r.next)&&r.acceptToken(e.context.type==Xh&&e.context.depth==Bs(r,r.pos-1)?UP:r2);else{let t=r.pos;for(;;)if(Gh(r.next)){if(r.pos==t)return;r.advance()}else if(r.next==33)c2(r);else if(r.next==38)Jh(r);else if(r.next==42){Jh(r);break}else if(r.next==39||r.next==34){if(ed(r,!0))break;return}else if(r.next==91||r.next==123){if(!fT(r))return;break}else{u2(r,!0,!1,0);break}for(;Gh(r.next);)r.advance();if(r.next==58){if(r.pos==t&&e.canShift(iT))return;let n=r.peek(1);Mr(n)&&r.acceptTokenTo(e.context.type==Xh&&e.context.depth==Bs(r,t)?XP:i2,t)}}},{contextual:!0});function dT(r){return r>32&&r<127&&r!=34&&r!=37&&r!=44&&r!=60&&r!=62&&r!=92&&r!=94&&r!=96&&r!=123&&r!=124&&r!=125}function a2(r){return r>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70}function l2(r,e){return r.next==37?(r.advance(),a2(r.next)&&r.advance(),a2(r.next)&&r.advance(),!0):dT(r.next)||e&&r.next==44?(r.advance(),!0):!1}function c2(r){if(r.advance(),r.next==60){for(r.advance();;)if(!l2(r,!0)){r.next==62&&r.advance();break}}else for(;l2(r,!1););}function Jh(r){for(r.advance();!Mr(r.next)&&dl(r.tag)!="f";)r.advance()}function ed(r,e){let t=r.next,n=!1,i=r.pos;for(r.advance();;){let s=r.next;if(s<0)break;if(r.advance(),s==t)if(s==39)if(r.next==39)r.advance();else break;else break;else if(s==92&&t==34)r.next>=0&&r.advance();else if(Sn(s)){if(e)return!1;n=!0}else if(e&&r.pos>=i+1024)return!1}return!n}function fT(r){for(let e=[],t=r.pos+1024;;)if(r.next==91||r.next==123)e.push(r.next),r.advance();else if(r.next==39||r.next==34){if(!ed(r,!0))return!1}else if(r.next==93||r.next==125){if(e[e.length-1]!=r.next-2)return!1;if(e.pop(),r.advance(),!e.length)return!0}else{if(r.next<0||r.pos>t||Sn(r.next))return!1;r.advance()}}const pT="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function dl(r){return r<33?"u":r>125?"s":pT[r-33]}function td(r,e){let t=dl(r);return t!="u"&&!(e&&t=="f")}function u2(r,e,t,n){if(dl(r.next)=="s"||(r.next==63||r.next==58||r.next==45)&&td(r.peek(1),t))r.advance();else return!1;let i=r.pos;for(;;){let s=r.next,o=0,a=n+1;for(;o2(s);){if(Sn(s)){if(e)return!1;a=0}else a++;s=r.peek(++o)}if(!(s>=0&&(s==58?td(r.peek(o+1),t):s==35?r.peek(o-1)!=32:td(s,t)))||!t&&a<=n||a==0&&!t&&(bi(r,45,o)||bi(r,46,o)))break;if(e&&dl(s)=="f")return!1;for(let c=o;c>=0;c--)r.advance();if(e&&r.pos>i+1024)return!1}return!0}const mT=new Rs((r,e)=>{if(r.next==33)c2(r),r.acceptToken(tT);else if(r.next==38||r.next==42){let t=r.next==38?JP:eT;Jh(r),r.acceptToken(t)}else r.next==39||r.next==34?(ed(r,!1),r.acceptToken(GP)):u2(r,!1,e.context.type==Ns,e.context.depth)&&r.acceptToken(KP)}),gT=new Rs((r,e)=>{let t=e.context.type==Kh?e.context.depth:-1,n=r.pos;e:for(;;){let i=0,s=r.next;for(;s==32;)s=r.peek(++i);if(!i&&(bi(r,45,i)||bi(r,46,i))||!Sn(s)&&(t<0&&(t=Math.max(e.context.depth+1,i)),i<t))break;for(;;){if(r.next<0)break e;let o=Sn(r.next);if(r.advance(),o)continue e;n=r.pos}}r.acceptTokenTo(s2,n)}),yT=bs({DirectiveName:O.keyword,DirectiveContent:O.attributeValue,"DirectiveEnd DocEnd":O.meta,QuotedLiteral:O.string,BlockLiteralHeader:O.special(O.string),BlockLiteralContent:O.content,Literal:O.content,"Key/Literal Key/QuotedLiteral":O.definition(O.propertyName),"Anchor Alias":O.labelName,Tag:O.typeName,Comment:O.lineComment,": , -":O.separator,"?":O.punctuation,"[ ]":O.squareBracket,"{ }":O.brace}),bT=Sr.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:cT,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[yT],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[uT,hT,mT,gT,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),vT=Sr.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"⚠ Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),CT=vr.define({name:"yaml",parser:bT.configure({props:[Ia.add({Stream:r=>{for(let e=r.node.resolve(r.pos,-1);e&&e.to>=r.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return r.baseIndentFor(e);if(e.name=="BlockLiteral")return r.baseIndentFor(e)+r.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return r.column(e.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let t=r.column(e.from,1);if(t==r.lineIndent(e.from,1))return t;if(e.to>r.pos)return null}}return null},FlowMapping:R6({closing:"}"}),FlowSequence:R6({closing:"]"})}),Ha.add({"FlowMapping FlowSequence":N6,"Item Pair BlockLiteral":(r,e)=>({from:e.doc.lineAt(r.from).to,to:r.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function wT(){return new ih(CT)}O.meta;const nd={codeEditor:"_codeEditor_1viyo_1",codeEditor_label:"_codeEditor_label_1viyo_4",codeEditor_input:"_codeEditor_input_1viyo_13"},kT=r=>{const{userFlow:e,responseKey:t,label:n,language:i,placeholder:s,value:o,required:a}=r,[l,c]=v.useState(o),u={json:Fg(),sql:qP(),yaml:wT()},h=v.useMemo(()=>a&&n?`${n} *`:n??"",[n,a]),d=f=>{c(f);const p={[t]:f};wc(e,p)};return de.jsxs("div",{className:nd.codeEditor,children:[de.jsx("label",{className:nd.codeEditor_label,children:h}),de.jsx(Ag,{className:nd.codeEditor_input,value:l,height:"400px",placeholder:s,extensions:[u[i]??Fg()],onChange:f=>d(f),theme:"dark"})]})},Is={header:"_header_19ove_1",header_content:"_header_content_19ove_5",contentLeft:"_contentLeft_19ove_10",title:"_title_19ove_15"},xT=({className:r="",title:e="",theme:t="dark",inputs:n=[]})=>{const i=t!=="auto"?`avocado-${t}-theme`:"";return de.jsx("div",{className:Vp(Is.header,i,r),children:de.jsx(Qp,{children:de.jsx("div",{className:Is.header_content,children:de.jsxs("div",{className:Is.contentLeft,children:[de.jsx(Vs,{type:"h1",className:Is.title,children:e}),(n==null?void 0:n.length)>0&&de.jsx("div",{className:Is.inputs,children:n.map((s,o)=>de.jsx(v.Fragment,{children:s},o))})]})})})})},ST=r=>{const{userFlow:e,pageId:t,component:n,hash:i,responseKey:s,required:o,...a}=r,l={...a},[c,u]=v.useState((l==null?void 0:l.value)??""),h=v.useMemo(()=>o&&(l!=null&&l.label)?`${l==null?void 0:l.label} *`:(l==null?void 0:l.label)??"",[l==null?void 0:l.label,o]),d=f=>{var g;const p=(g=f==null?void 0:f.target)==null?void 0:g.value;u(p);const m={[s]:p};wc(e,m)};return v.useEffect(()=>{u((l==null?void 0:l.value)??"")},[l==null?void 0:l.value]),de.jsx(E1,{...l,allowClear:!1,label:h,value:c,onChange:f=>d(f)})},OT=(r,e,t)=>{var s;const n={button:o=>de.jsx(jw,{...o,userFlow:r,pageId:e}),cardNotification:o=>Q1(o),code:o=>de.jsx(kT,{...o,userFlow:r,pageId:e}),heading:o=>W1(o),text:o=>j1(o),textField:o=>de.jsx(ST,{...o,userFlow:r,pageId:e})};return(s=t==null?void 0:t.filter(Boolean))==null?void 0:s.map(o=>{const a=n[o.component];return a?a({...o,userFlow:r,pageId:e}):null})},h2=(r,e,t,n)=>{const i=OT(r,e,(n==null?void 0:n.components)||null);switch(t){case"body":return de.jsx(Qw,{...n,inputs:i||[]});case"header":return de.jsx(xT,{...n,inputs:i||[]});default:return null}},_T=(r,e,t)=>{var h,d,f;const[n,i]=v.useState(!1),s=qr(p=>p),o=(h=s[r])==null?void 0:h.currentPageId,a=o?h2(r,o,"header",((d=s[r].pages[o].page)==null?void 0:d.header)||null):null,l=o?h2(r,o,"body",((f=s[r].pages[o].page)==null?void 0:f.body)||null):null,c=v.useMemo(()=>de.jsxs(de.Fragment,{children:[a,l]}),[a,l]),u=async()=>{var p;try{const m=await Ip(e,r);(m==null?void 0:m.status)===200?Cc(r,(p=m.data)==null?void 0:p.hash,e,m.data):i(!0)}catch(m){console.error("[not-page]: API call failed",m),i(!0)}};return v.useEffect(()=>{e!=null&&e.api&&!t&&r?u():!(e!=null&&e.api)&&t&&r||e!=null&&e.api&&t&&r?Cc(r,t.hash,e,t):(!(e!=null&&e.api)&&!t||!r)&&(i(!0),console.error("[not-page]: API call failed","not api config","not userFlow"))},[]),n&&console.error("[not-page]: No render page"),c};Dt.cardNotification=Q1,Dt.heading=W1,Dt.text=j1,Dt.usePage=_T,Object.defineProperty(Dt,Symbol.toStringTag,{value:"Module"})});
|