@midas-ds/layout 0.0.1-beta.1
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/CHANGELOG.md +3 -0
- package/index.css +1 -0
- package/index.d.ts +1 -0
- package/index.js +77 -0
- package/index.mjs +6621 -0
- package/lib/Layout.d.ts +51 -0
- package/lib/Layout.stories.d.ts +7 -0
- package/package.json +20 -0
package/CHANGELOG.md
ADDED
package/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._baseLayout_udk0p_4{--sideBarWidth: 230px;--headerHeight: 60px}@media (min-width: 768px){._baseLayout_udk0p_4{--headerHeight: 85px}}._mainContent_udk0p_13{display:flex;flex-direction:row}._header_udk0p_18{position:sticky;top:0;font-family:Inter,sans-serif;padding:.5rem 1rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #a6a6a6;background-color:#fff}@media (min-width: 768px){._header_udk0p_18{padding:1rem;z-index:3}}._headerContent_udk0p_35{display:flex;flex-flow:row wrap;align-items:center;gap:2rem}._headerContent_udk0p_35>svg{display:none}@media (min-width: 768px){._headerContent_udk0p_35>svg{display:initial}}._headerItems_udk0p_52,._logo_udk0p_53{display:none}@media (min-width: 768px){._headerItems_udk0p_52,._logo_udk0p_53{display:block}}._headerMenu_udk0p_61{display:block}@media (min-width: 768px){._headerMenu_udk0p_61{display:none}}._toggleButton_udk0p_69{display:block}@media (min-width: 768px){._toggleButton_udk0p_69{display:none!important}}._sidebar_udk0p_77{font-family:Inter,sans-serif;background-color:#fff;display:flex;flex-flow:wrap column;flex:0 0 var(--sideBarWidth);transition:.2s;position:fixed;top:0;height:100vh;width:var(--sideBarWidth);transform:translate(calc(var(--sideBarWidth) * -1));z-index:2;border-right:1px solid #b3b3b3}@media (min-width: 768px){._sidebar_udk0p_77{position:sticky;top:var(--headerHeight);align-self:start;height:calc(100vh - var(--headerHeight));transform:none;width:var(--sideBarWidth)}}._main_udk0p_13{font-family:Inter,sans-serif;flex:0 0 auto;width:100%}@media (min-width: 768px){._main_udk0p_13{background-color:#f2f2f2}}._app_udk0p_112{background-clip:content-box;background-color:#fff}@media (min-width: 768px){._app_udk0p_112{padding:2rem}}._sidebarOpened_udk0p_121{transform:translate(0)}._sidebarHeader_udk0p_125{padding:1rem;border-bottom:1px solid #b3b3b3}._sidebarHeader_udk0p_125 p{margin:0}._sidebarFooter_udk0p_134{display:none;padding:.5rem 1rem;position:sticky;bottom:0}@media (min-width: 768px){._sidebarFooter_udk0p_134{justify-self:flex-end;display:flex;justify-content:flex-end;border-top:1px solid #a6a6a6}}._sidebarCollapsed_udk0p_148{--sideBarWidth: 68px;transition:all .2s ease-out}._sidebarCollapsed_udk0p_148 ._sidebarHeader_udk0p_125{display:flex;justify-content:center;padding:1rem 0}._sidebarCollapsed_udk0p_148 ._sidebarFooter_udk0p_134{padding:.5rem 0;justify-content:center}._userName_udk0p_165{margin:0;margin-bottom:.25rem;font-size:.875rem;font-weight:500;display:none}@media (min-width: 768px){._userName_udk0p_165{display:block}}._abbr_udk0p_177{font-size:.875rem;font-weight:500;align-self:center}._userTitle_udk0p_183{margin:0;font-size:.875rem;font-weight:400;display:none}@media (min-width: 768px){._userTitle_udk0p_183{display:block}}._title_udk0p_194{margin:0;font-size:1rem;font-weight:500;display:block}@media (min-width: 768px){._title_udk0p_194{display:none}}._sidebarNav_udk0p_205{padding:.5rem;overflow-y:auto;margin-bottom:auto}._list_udk0p_211{list-style-type:none;margin:0;padding:0;margin-bottom:1rem}._listGroupTitle_udk0p_218{color:#5d5d5d;font-size:.75rem;letter-spacing:.0375rem;text-transform:uppercase;padding:.5rem;margin:0}._listItem_udk0p_227{display:flex}._listItemCollapsed_udk0p_231{justify-content:center}._listLink_udk0p_235{color:currentColor!important;flex-grow:1;transition:.1s;justify-content:flex-end!important}._linkText_udk0p_242{transform:translate(0);opacity:1;width:auto;transition-property:transform width opacity;transition-duration:0s 0s 10ms;transition-delay:0s 0s .2s;transition-behavior:allow-discrete}._linkTextCollapsed_udk0p_252{display:none;transform:translate(-200px);opacity:0;width:0;transition-property:transform,opacity,width;transition-duration:0,.1s,.1s;transition-delay:0s;transition-behavior:allow-discrete}._listLinkCollapsed_udk0p_263{flex-grow:unset}._collapseButton_udk0p_267{color:currentColor!important;padding:calc(.875rem - 1px)!important}._backdrop_udk0p_272{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background-color:#3232327f;opacity:0;transition:all .1s;transition-behavior:allow-discrete}._backdrop_udk0p_272._backdropOpened_udk0p_281{opacity:1;display:block}@starting-style{._backdrop_udk0p_272._backdropOpened_udk0p_281{opacity:0}}._linkButton_13utk_4{font-family:Inter,sans-serif;font-size:1rem;font-weight:500;padding:calc(.875rem - 1px) calc(1rem - 1px);background-color:#143c50;border:solid 1px transparent;color:#fff;cursor:pointer;opacity:1;outline:none;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none}._linkButton_13utk_4:hover{color:#fff;text-decoration:none;background-color:#25607f}._linkButton_13utk_4[data-pressed]{background-color:#4289ad;outline:none}._linkButton_13utk_4[data-focus-visible]{box-shadow:0 0 0 2px #fff,0 0 0 4px #000}._linkButton_13utk_4[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#f2f2f2}._secondary_13utk_43{color:#143c50;background-color:#fff;border-color:#143c50;opacity:1}._secondary_13utk_43:hover{color:#143c50;background-color:#f2f2f2}._secondary_13utk_43[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#fff;border-color:#bfbfbf}._secondary_13utk_43[data-pressed]{background-color:#e6e6e6;border-color:#143c50}._tertiary_13utk_67{color:#143c50;background-color:transparent;opacity:1}._tertiary_13utk_67:hover{color:#143c50;background-color:#f2f2f2}._tertiary_13utk_67[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#fff}._tertiary_13utk_67[data-pressed]{background-color:#e6e6e6}._danger_13utk_88{color:#fff;background-color:#e62323;opacity:1}._danger_13utk_88:hover{color:#fff;background-color:#b31b1b}._danger_13utk_88[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#f2f2f2}._danger_13utk_88[data-pressed]{background-color:#801313;outline:none}._iconBtn_13utk_110{background-color:transparent;padding:.875rem;color:#000;display:flex;align-items:center}._iconBtn_13utk_110:hover{background-color:#0000001a}._iconBtn_13utk_110[data-disabled]{color:#bfbfbf;pointer-events:none}._iconBtn_13utk_110[data-pressed]{background-color:#e6e6e6}._iconLeft_13utk_131{flex-direction:row-reverse}._fullwidth_13utk_135{width:100%}@media (max-width: 767px){._button_13utk_140{width:100%}}._button_1piql_4{font-family:Inter,sans-serif;font-size:1rem;font-weight:500;padding:calc(.875rem - 1px) calc(2rem - 1px);background-color:#143c50;border:solid 1px transparent;color:#fff;cursor:pointer;opacity:1;outline:none;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:.5rem}._button_1piql_4[data-focus-visible],._button_1piql_4:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #000}._button_1piql_4:hover{background-color:#25607f}._button_1piql_4[data-pressed]{background-color:#4289ad;outline:none}._primary_1piql_36[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#f2f2f2}._secondary_1piql_42{color:#143c50;background-color:#fff;border-color:#143c50;opacity:1}._secondary_1piql_42:hover{color:#143c50;background-color:#f2f2f2}._secondary_1piql_42[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#fff;border-color:#bfbfbf}._secondary_1piql_42[data-pressed]{background-color:#e6e6e6;border-color:#143c50}._tertiary_1piql_66{color:#143c50;background-color:transparent;padding:.8125rem .9375rem;opacity:1}._tertiary_1piql_66:hover{color:#143c50;background-color:#f2f2f2}._tertiary_1piql_66[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#fff}._tertiary_1piql_66[data-pressed]{background-color:#e6e6e6}._iconBtn_1piql_88{background-color:transparent;padding:.875rem;color:#000;display:flex;align-items:center}._iconBtn_1piql_88:hover{background-color:#0000001a}._iconBtn_1piql_88[data-disabled]{color:#bfbfbf;pointer-events:none}._iconBtn_1piql_88[data-pressed]{background-color:#e6e6e6}._danger_1piql_109{color:#fff;background-color:#e62323;opacity:1}._danger_1piql_109:hover{color:#fff;background-color:#b31b1b}._danger_1piql_109[data-disabled]{color:#bfbfbf;pointer-events:none;background-color:#f2f2f2}._danger_1piql_109[data-pressed]{background-color:#801313;outline:none}._iconRight_1piql_131{flex-direction:row-reverse}._fullwidth_1piql_135{width:100%}._small_1piql_139{min-height:1.5rem;font-size:.75rem;padding:.25rem .5rem}._container_xfusy_4{--columns: 1;--padding: 1rem;--gutter: 1rem;--maxWidth: 1368px;--margin: auto;width:100%;margin-right:var(--margin);margin-left:var(--margin)}._flex_xfusy_16{padding-right:var(--padding);padding-left:var(--padding);display:flex;flex-flow:row wrap;gap:var(--gutter)}._flex_xfusy_16>*{display:flex;flex-flow:column wrap;flex:0 0 auto;width:calc((100% / var(--columns)) - var(--gutter) + (var(--gutter) / var(--columns)))}@media (min-width: 768px){._container_xfusy_4{--columns: 12;--padding: 2rem}}@media (min-width: 1200px){._container_xfusy_4{--gutter: 1.5rem}}@media (min-width: 1440px){._container_xfusy_4{max-width:var(--maxWidth);--padding: 0}}._fluid_xfusy_54{--maxWidth: unset;--margin: 0;--padding: 0}._col_xfusy_60{flex:1 0 0%}._col-1_xfusy_64,._col-2_xfusy_65,._col-3_xfusy_66,._col-4_xfusy_67,._col-5_xfusy_68,._col-6_xfusy_69,._col-7_xfusy_70,._col-8_xfusy_71,._col-9_xfusy_72,._col-10_xfusy_73,._col-11_xfusy_74,._col-12_xfusy_75,._col-auto_xfusy_76{flex:0 0 auto;width:100%}@media (min-width: 768px){._col-1_xfusy_64{width:calc((100% / 12) - (11 * var(--gutter) / 12))}._col-2_xfusy_65{width:calc((2 * 100% / 12) - (10 * var(--gutter) / 12))}._col-3_xfusy_66{width:calc((3 * 100% / 12) - (9 * var(--gutter) / 12))}._col-4_xfusy_67{width:calc((4 * 100% / 12) - (8 * var(--gutter) / 12))}._col-5_xfusy_68{width:calc((5 * 100% / 12) - (7 * var(--gutter) / 12))}._col-6_xfusy_69{width:calc((6 * 100% / 12) - (6 * var(--gutter) / 12))}._col-7_xfusy_70{width:calc((7 * 100% / 12) - (5 * var(--gutter) / 12))}._col-8_xfusy_71{width:calc((8 * 100% / 12) - (4 * var(--gutter) / 12))}._col-9_xfusy_72{width:calc((9 * 100% / 12) - (3 * var(--gutter) / 12))}._col-10_xfusy_73{width:calc((10 * 100% / 12) - (2 * var(--gutter) / 12))}._col-11_xfusy_74{width:calc((11 * 100% / 12) - (1 * var(--gutter) / 12))}._col-auto_xfusy_76{width:auto}._offset-1_xfusy_130{margin-left:calc((100% / 12) + (var(--gutter) / 12))}._offset-2_xfusy_134{margin-left:calc((2 * 100% / 12) + (var(--gutter) / 6))}._offset-3_xfusy_138{margin-left:calc((3 * 100% / 12) + (var(--gutter) / 4))}._offset-4_xfusy_142{margin-left:calc((4 * 100% / 12) + (var(--gutter) / 3))}._offset-5_xfusy_146{margin-left:calc((5 * 100% / 12) + (var(--gutter) * 5 / 12))}._offset-6_xfusy_150{margin-left:calc((6 * 100% / 12) + (var(--gutter) / 2))}._offset-7_xfusy_154{margin-left:calc((7 * 100% / 12) + (var(--gutter) * 7 / 12))}._offset-8_xfusy_158{margin-left:calc((8 * 100% / 12) + (var(--gutter) * 2 / 3))}._offset-9_xfusy_162{margin-left:calc((9 * 100% / 12) + (var(--gutter) * 3 / 4))}._offset-10_xfusy_166{margin-left:calc((10 * 100% / 12) + (var(--gutter) * 5 / 6))}._offset-11_xfusy_170{margin-left:calc((11 * 100% / 12) + (var(--gutter) * 11 / 12))}}._container_kepty_4{padding:1rem;display:inline-flex}._noPadding_kepty_9{padding:0}._logo_kepty_13{max-width:100%;height:48px}._primary_kepty_18{fill:#b90835}._dark_kepty_22{fill:#000}._xSmall_kepty_26{height:36px}._small_kepty_30{height:40px}._large_kepty_34{height:52px}._backgroundPrimary_kepty_38{background-color:#b90835}._backgroundPrimary_kepty_38 svg{fill:#fff}._backgroundDark_kepty_46{background-color:#5d5d5d}._backgroundDark_kepty_46 svg{fill:#fff}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/inter:vf@latest/latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._dropDownMenu_tm2mz_4{font-family:Inter,sans-serif;box-shadow:2px 2px 4px #00000040;background-color:#f2f2f2}._dropDownMenu_tm2mz_4:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #000}._dropdownMenu_tm2mz_15{width:100%}._dropdownMenu_tm2mz_15:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #000}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/Layout';
|
package/index.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const E=require("react/jsx-runtime"),a=require("react"),Xe=require("react-dom"),ko='"../../../theme/src/lib/tokens.css"',To='"Inter", sans-serif',Ko="#143c50",Do="#f2f2f2",Mo="#d9d9d9",_o="#b3b3b3",Lo="#a6a6a6",Fo="#5d5d5d",Ao="(min-width: 768px)",Ro="#b90835",No="_baseLayout_udk0p_4",Io="_mainContent_udk0p_13",Bo="_header_udk0p_18",Oo="_headerContent_udk0p_35",Ho="_headerItems_udk0p_52",jo="_logo_udk0p_53",zo="_headerMenu_udk0p_61",Vo="_toggleButton_udk0p_69",Uo="_sidebar_udk0p_77",Wo="_main_udk0p_13",Go="_app_udk0p_112",qo="_sidebarOpened_udk0p_121",Zo="_sidebarHeader_udk0p_125",Yo="_sidebarFooter_udk0p_134",Xo="_sidebarCollapsed_udk0p_148",Jo="_userName_udk0p_165",Qo="_abbr_udk0p_177",el="_userTitle_udk0p_183",tl="_title_udk0p_194",nl="_sidebarNav_udk0p_205",rl="_list_udk0p_211",il="_listGroupTitle_udk0p_218",ol="_listItem_udk0p_227",ll="_listItemCollapsed_udk0p_231",sl="_listLink_udk0p_235",al="_linkText_udk0p_242",ul="_linkTextCollapsed_udk0p_252",cl="_listLinkCollapsed_udk0p_263",dl="_collapseButton_udk0p_267",fl="_backdrop_udk0p_272",pl="_backdropOpened_udk0p_281",R={tokens:ko,display:To,primaryBackground:Ko,gray10:Do,gray30:Mo,gray60:_o,gray70:Lo,gray130:Fo,mdBreakpoint:Ao,logoPrimary:Ro,baseLayout:No,mainContent:Io,header:Bo,headerContent:Oo,headerItems:Ho,logo:jo,headerMenu:zo,toggleButton:Vo,sidebar:Uo,main:Wo,app:Go,sidebarOpened:qo,sidebarHeader:Zo,sidebarFooter:Yo,sidebarCollapsed:Xo,userName:Jo,abbr:Qo,userTitle:el,title:tl,sidebarNav:nl,list:rl,listGroupTitle:il,listItem:ol,listItemCollapsed:ll,listLink:sl,linkText:al,linkTextCollapsed:ul,listLinkCollapsed:cl,collapseButton:dl,backdrop:fl,backdropOpened:pl};/**
|
|
2
|
+
* @license lucide-react v0.453.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const hl=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ur=(...n)=>n.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ");/**
|
|
7
|
+
* @license lucide-react v0.453.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var vl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.453.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const gl=a.forwardRef(({color:n="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...s},u)=>a.createElement("svg",{ref:u,...vl,width:e,height:e,stroke:n,strokeWidth:r?Number(t)*24/Number(e):t,className:ur("lucide",i),...s},[...l.map(([c,d])=>a.createElement(c,d)),...Array.isArray(o)?o:[o]]));/**
|
|
17
|
+
* @license lucide-react v0.453.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const Se=(n,e)=>{const t=a.forwardRef(({className:r,...i},o)=>a.createElement(gl,{ref:o,iconNode:e,className:ur(`lucide-${hl(n)}`,r),...i}));return t.displayName=`${n}`,t};/**
|
|
22
|
+
* @license lucide-react v0.453.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const bl=Se("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
27
|
+
* @license lucide-react v0.453.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const yl=Se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
32
|
+
* @license lucide-react v0.453.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const ml=Se("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
|
37
|
+
* @license lucide-react v0.453.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const $l=Se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
42
|
+
* @license lucide-react v0.453.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const xl=Se("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
|
|
47
|
+
* @license lucide-react v0.453.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const Sl=Se("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]);/**
|
|
52
|
+
* @license lucide-react v0.453.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const El=Se("SquareArrowOutUpRight",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]);/**
|
|
57
|
+
* @license lucide-react v0.453.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const wl=Se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class ln{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ln(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=t}}class Pl{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),i=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?t.get(i.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class cr{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode;let r=t;for(;r;)r.index++,r=r.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let t=e.nextSibling;for(;t;)t.index--,t=t.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class Ue extends cr{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ue?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,t,r,i;let o=this.ownerDocument.getMutableNode(this);o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof Ue?this.parentNode.node.key:null;var l;o.prevKey=(l=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var s;o.nextKey=(s=(t=this.nextSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null,o.hasChildNodes=!!this.firstChild;var u;o.firstChildKey=(u=(r=this.firstChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null;var c;o.lastChildKey=(c=(i=this.lastChild)===null||i===void 0?void 0:i.node.key)!==null&&c!==void 0?c:null}setProps(e,t,r,i){let o=this.ownerDocument.getMutableNode(this),{value:l,textValue:s,id:u,...c}=e;if(c.ref=t,o.props=c,o.rendered=r,o.render=i,o.value=l,o.textValue=s||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",u!=null&&u!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=u}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new ln(e,`react-aria-${++t.nodeId}`),this.ownerDocument.startTransaction()}}class Cl extends cr{get isConnected(){return this.isMounted}createElement(e){return new Ue(e,this)}getMutableNode(e){let t=e.node;return this.mutatedNodes.has(e)||(t=e.node.clone(),this.mutatedNodes.add(e),e.node=t),this.markDirty(e),t}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let t=this.getMutableCollection();if(!t.getItem(e.node.key)){t.addNode(e.node);for(let r of e)this.addNode(r)}this.markDirty(e)}removeNode(e){for(let r of e)this.removeNode(r);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof Ue&&o.isConnected&&o.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,t;let o=this.getMutableCollection();for(let l of this.mutatedNodes)l.isConnected&&o.addNode(l.node);var r,i;o.commit((r=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&r!==void 0?r:null,(i=(t=this.lastChild)===null||t===void 0?void 0:t.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function dr(n){let{children:e,items:t,idScope:r,addIdAndValue:i,dependencies:o=[]}=n,l=a.useMemo(()=>new WeakMap,o);return a.useMemo(()=>{if(t&&typeof e=="function"){let c=[];for(let d of t){let h=l.get(d);if(!h){h=e(d);var s,u;let v=(u=(s=h.props.id)!==null&&s!==void 0?s:d.key)!==null&&u!==void 0?u:d.id;if(v==null)throw new Error("Could not determine key for item");r&&(v=r+":"+v),h=a.cloneElement(h,i?{key:v,id:v,value:d}:{key:v}),l.set(d,h)}c.push(h)}return c}else if(typeof e!="function")return e},[e,t,l,r,i])}const dt={prefix:String(Math.round(Math.random()*1e10)),current:0},fr=a.createContext(dt),kl=a.createContext(!1);let Tl=!!(typeof window<"u"&&window.document&&window.document.createElement),Pt=new WeakMap;function Kl(n=!1){let e=a.useContext(fr),t=a.useRef(null);if(t.current===null&&!n){var r,i;let o=(i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let l=Pt.get(o);l==null?Pt.set(o,{id:e.current,state:o.memoizedState}):o.memoizedState!==l.state&&(e.current=l.id,Pt.delete(o))}t.current=++e.current}return t.current}function Dl(n){let e=a.useContext(fr);e===dt&&!Tl&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=Kl(!!n),r=e===dt&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return n||`${r}-${t}`}function Ml(n){let e=a.useId(),[t]=a.useState(Ne()),r=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${dt.prefix}`;return n||`${r}-${e}`}const _l=typeof a.useId=="function"?Ml:Dl;function Ll(){return!1}function Fl(){return!0}function Al(n){return()=>{}}function Ne(){return typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore(Al,Ll,Fl):a.useContext(kl)}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const ft=a.createContext(!1),Rl=typeof DocumentFragment<"u"?new DocumentFragment:null;function Nl(n){let e=a.useContext(ft),t=Ne();if(e)return a.createElement(a.Fragment,null,n.children);let r=a.createElement(ft.Provider,{value:!0},n.children);return t?a.createElement("template",{"data-react-aria-hidden":!0},r):Xe.createPortal(r,Rl)}function Il(n){let e=(t,r)=>a.useContext(ft)?null:n(t,r);return e.displayName=n.displayName||n.name,a.forwardRef(e)}function Bl(){return a.useContext(ft)}const O=typeof document<"u"?a.useLayoutEffect:()=>{};function ne(n){const e=a.useRef(null);return O(()=>{e.current=n},[n]),a.useCallback((...t)=>{const r=e.current;return r==null?void 0:r(...t)},[])}function Ol(n){let[e,t]=a.useState(n),r=a.useRef(null),i=ne(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}e===l.value?i():t(l.value)});O(()=>{r.current&&i()});let o=ne(l=>{r.current=l(e),i()});return[e,o]}let Hl=!!(typeof window<"u"&&window.document&&window.document.createElement),me=new Map;function ke(n){let[e,t]=a.useState(n),r=a.useRef(null),i=_l(e),o=a.useCallback(l=>{r.current=l},[]);return Hl&&(me.has(i)&&!me.get(i).includes(o)?me.set(i,[...me.get(i),o]):me.set(i,[o])),O(()=>{let l=i;return()=>{me.delete(l)}},[i]),a.useEffect(()=>{let l=r.current;l&&(r.current=null,t(l))}),i}function jl(n,e){if(n===e)return n;let t=me.get(n);if(t)return t.forEach(i=>i(e)),e;let r=me.get(e);return r?(r.forEach(i=>i(n)),n):e}function Ct(n=[]){let e=ke(),[t,r]=Ol(e),i=a.useCallback(()=>{r(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,r]);return O(i,[e,i,...n]),t}function We(...n){return(...e)=>{for(let t of n)typeof t=="function"&&t(...e)}}const H=n=>{var e;return(e=n==null?void 0:n.ownerDocument)!==null&&e!==void 0?e:document},re=n=>n&&"window"in n&&n.window===n?n:H(n).defaultView||window;function pr(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(e=0;e<i;e++)n[e]&&(t=pr(n[e]))&&(r&&(r+=" "),r+=t)}else for(t in n)n[t]&&(r&&(r+=" "),r+=t);return r}function ie(){for(var n,e,t=0,r="",i=arguments.length;t<i;t++)(n=arguments[t])&&(e=pr(n))&&(r&&(r+=" "),r+=e);return r}function z(...n){let e={...n[0]};for(let t=1;t<n.length;t++){let r=n[t];for(let i in r){let o=e[i],l=r[i];typeof o=="function"&&typeof l=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?e[i]=We(o,l):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof l=="string"?e[i]=ie(o,l):i==="id"&&o&&l?e.id=jl(o,l):e[i]=l!==void 0?l:o}}return e}function zl(...n){return n.length===1&&n[0]?n[0]:e=>{for(let t of n)typeof t=="function"?t(e):t!=null&&(t.current=e)}}const Vl=new Set(["id"]),Ul=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Wl=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Gl=/^(data-.*)$/;function Ee(n,e={}){let{labelable:t,isLink:r,propNames:i}=e,o={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(Vl.has(l)||t&&Ul.has(l)||r&&Wl.has(l)||i!=null&&i.has(l)||Gl.test(l))&&(o[l]=n[l]);return o}function he(n){if(ql())n.focus({preventScroll:!0});else{let e=Zl(n);n.focus(),Yl(e)}}let rt=null;function ql(){if(rt==null){rt=!1;try{document.createElement("div").focus({get preventScroll(){return rt=!0,!0}})}catch{}}return rt}function Zl(n){let e=n.parentNode,t=[],r=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==r;)(e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth)&&t.push({element:e,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),e=e.parentNode;return r instanceof HTMLElement&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),t}function Yl(n){for(let{element:e,scrollTop:t,scrollLeft:r}of n)e.scrollTop=t,e.scrollLeft=r}function yt(n){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(t=>n.test(t.brand)))||n.test(window.navigator.userAgent)}function sn(n){var e;return typeof window<"u"&&window.navigator!=null?n.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function be(n){let e=null;return()=>(e==null&&(e=n()),e)}const Te=be(function(){return sn(/^Mac/i)}),Xl=be(function(){return sn(/^iPhone/i)}),hr=be(function(){return sn(/^iPad/i)||Te()&&navigator.maxTouchPoints>1}),mt=be(function(){return Xl()||hr()}),Jl=be(function(){return Te()||mt()}),vr=be(function(){return yt(/AppleWebKit/i)&&!Ql()}),Ql=be(function(){return yt(/Chrome/i)}),gr=be(function(){return yt(/Android/i)}),es=be(function(){return yt(/Firefox/i)}),br=a.createContext({isNative:!0,open:ns,useHref:n=>n});function ts(n){let{children:e,navigate:t,useHref:r}=n,i=a.useMemo(()=>({isNative:!1,open:(o,l,s,u)=>{mr(o,c=>{yr(c,l)?t(s,u):xe(c,l)})},useHref:r||(o=>o)}),[t,r]);return a.createElement(br.Provider,{value:i},e)}function Je(){return a.useContext(br)}function yr(n,e){let t=n.getAttribute("target");return(!t||t==="_self")&&n.origin===location.origin&&!n.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function xe(n,e,t=!0){var r,i;let{metaKey:o,ctrlKey:l,altKey:s,shiftKey:u}=e;es()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&n.target==="_blank"&&(Te()?o=!0:l=!0);let c=vr()&&Te()&&!hr()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:l,altKey:s,shiftKey:u}):new MouseEvent("click",{metaKey:o,ctrlKey:l,altKey:s,shiftKey:u,bubbles:!0,cancelable:!0});xe.isOpening=t,he(n),n.dispatchEvent(c),xe.isOpening=!1}xe.isOpening=!1;function mr(n,e){if(n instanceof HTMLAnchorElement)e(n);else if(n.hasAttribute("data-href")){let t=document.createElement("a");t.href=n.getAttribute("data-href"),n.hasAttribute("data-target")&&(t.target=n.getAttribute("data-target")),n.hasAttribute("data-rel")&&(t.rel=n.getAttribute("data-rel")),n.hasAttribute("data-download")&&(t.download=n.getAttribute("data-download")),n.hasAttribute("data-ping")&&(t.ping=n.getAttribute("data-ping")),n.hasAttribute("data-referrer-policy")&&(t.referrerPolicy=n.getAttribute("data-referrer-policy")),n.appendChild(t),e(t),n.removeChild(t)}}function ns(n,e){mr(n,t=>xe(t,e))}function $r(n){let e=Je();var t;const r=e.useHref((t=n==null?void 0:n.href)!==null&&t!==void 0?t:"");return{href:n!=null&&n.href?r:void 0,target:n==null?void 0:n.target,rel:n==null?void 0:n.rel,download:n==null?void 0:n.download,ping:n==null?void 0:n.ping,referrerPolicy:n==null?void 0:n.referrerPolicy}}let _e=new Map,Ot=new Set;function Sn(){if(typeof window>"u")return;function n(r){return"propertyName"in r}let e=r=>{if(!n(r)||!r.target)return;let i=_e.get(r.target);i||(i=new Set,_e.set(r.target,i),r.target.addEventListener("transitioncancel",t,{once:!0})),i.add(r.propertyName)},t=r=>{if(!n(r)||!r.target)return;let i=_e.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",t),_e.delete(r.target)),_e.size===0)){for(let o of Ot)o();Ot.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Sn():document.addEventListener("DOMContentLoaded",Sn));function xr(n){requestAnimationFrame(()=>{_e.size===0?n():Ot.add(n)})}function Sr(){let n=a.useRef(new Map),e=a.useCallback((i,o,l,s)=>{let u=s!=null&&s.once?(...c)=>{n.current.delete(l),l(...c)}:l;n.current.set(l,{type:o,eventTarget:i,fn:u,options:s}),i.addEventListener(o,l,s)},[]),t=a.useCallback((i,o,l,s)=>{var u;let c=((u=n.current.get(l))===null||u===void 0?void 0:u.fn)||l;i.removeEventListener(o,c,s),n.current.delete(l)},[]),r=a.useCallback(()=>{n.current.forEach((i,o)=>{t(i.eventTarget,i.type,o,i.options)})},[t]);return a.useEffect(()=>r,[r]),{addGlobalListener:e,removeGlobalListener:t,removeAllGlobalListeners:r}}function rs(n,e){let{id:t,"aria-label":r,"aria-labelledby":i}=n;return t=ke(t),i&&r?i=[...new Set([t,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&e&&(r=e),{id:t,"aria-label":r,"aria-labelledby":i}}function an(n){const e=a.useRef(null);return a.useMemo(()=>({get current(){return e.current},set current(t){e.current=t,typeof n=="function"?n(t):n&&(n.current=t)}}),[n])}function is(){return typeof window.ResizeObserver<"u"}function Ht(n){const{ref:e,box:t,onResize:r}=n;a.useEffect(()=>{let i=e==null?void 0:e.current;if(i)if(is()){const o=new window.ResizeObserver(l=>{l.length&&r()});return o.observe(i,{box:t}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,t])}function un(n,e){O(()=>{if(n&&n.ref&&e)return n.ref.current=e.current,()=>{n.ref&&(n.ref.current=null)}})}function Ge(n,e){if(!n)return!1;let t=window.getComputedStyle(n),r=/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY);return r&&e&&(r=n.scrollHeight!==n.clientHeight||n.scrollWidth!==n.clientWidth),r}function Er(n,e){let t=n;for(Ge(t,e)&&(t=t.parentElement);t&&!Ge(t,e);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function os(n,e){const t=[];for(;n&&n!==document.documentElement;)Ge(n,e)&&t.push(n),n=n.parentElement;return t}let ls=0;const kt=new Map;function ss(n){let[e,t]=a.useState();return O(()=>{if(!n)return;let r=kt.get(n);if(r)t(r.element.id);else{let i=`react-aria-description-${ls++}`;t(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=n,document.body.appendChild(o),r={refCount:0,element:o},kt.set(n,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),kt.delete(n))}},[n]),{"aria-describedby":n?e:void 0}}function En(n,e,t,r){let i=ne(t),o=t==null;a.useEffect(()=>{if(o||!n.current)return;let l=n.current;return l.addEventListener(e,i,r),()=>{l.removeEventListener(e,i,r)}},[n,e,r,o,i])}function wr(n,e){let t=wn(n,e,"left"),r=wn(n,e,"top"),i=e.offsetWidth,o=e.offsetHeight,l=n.scrollLeft,s=n.scrollTop,{borderTopWidth:u,borderLeftWidth:c}=getComputedStyle(n),d=n.scrollLeft+parseInt(c,10),h=n.scrollTop+parseInt(u,10),v=d+n.clientWidth,p=h+n.clientHeight;t<=l?l=t-parseInt(c,10):t+i>v&&(l+=t+i-v),r<=h?s=r-parseInt(u,10):r+o>p&&(s+=r+o-p),n.scrollLeft=l,n.scrollTop=s}function wn(n,e,t){const r=t==="left"?"offsetLeft":"offsetTop";let i=0;for(;e.offsetParent&&(i+=e[r],e.offsetParent!==n);){if(e.offsetParent.contains(n)){i-=n[r];break}e=e.offsetParent}return i}function Pn(n,e){if(n&&document.contains(n)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let u=os(n);for(let c of u)wr(c,n)}else{var t;let{left:u,top:c}=n.getBoundingClientRect();n==null||(t=n.scrollIntoView)===null||t===void 0||t.call(n,{block:"nearest"});let{left:d,top:h}=n.getBoundingClientRect();if(Math.abs(u-d)>1||Math.abs(c-h)>1){var r,i,o;e==null||(i=e.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"nearest"})}}}}function jt(n){return n.mozInputSource===0&&n.isTrusted?!0:gr()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function as(n){return!gr()&&n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"}function cn(n,e,t){let[r,i]=a.useState(n||e),o=a.useRef(n!==void 0),l=n!==void 0;a.useEffect(()=>{let c=o.current;c!==l&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),o.current=l},[l]);let s=l?n:r,u=a.useCallback((c,...d)=>{let h=(v,...p)=>{t&&(Object.is(s,v)||t(v,...p)),l||(s=v)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((p,...b)=>{let S=c(l?s:p,...b);return h(S,...d),l?p:S})):(l||i(c),h(c,...d))},[l,s,t]);return[s,u]}function zt(n,e=-1/0,t=1/0){return Math.min(Math.max(n,e),t)}var Vt={exports:{}},Tt={};/**
|
|
62
|
+
* @license React
|
|
63
|
+
* use-sync-external-store-shim.production.min.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/var Cn;function us(){if(Cn)return Tt;Cn=1;var n=a;function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}var t=typeof Object.is=="function"?Object.is:e,r=n.useState,i=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function s(h,v){var p=v(),b=r({inst:{value:p,getSnapshot:v}}),S=b[0].inst,m=b[1];return o(function(){S.value=p,S.getSnapshot=v,u(S)&&m({inst:S})},[h,p,v]),i(function(){return u(S)&&m({inst:S}),h(function(){u(S)&&m({inst:S})})},[h]),l(p),p}function u(h){var v=h.getSnapshot;h=h.value;try{var p=v();return!t(h,p)}catch{return!0}}function c(h,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Tt.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:d,Tt}var Kt={};/**
|
|
70
|
+
* @license React
|
|
71
|
+
* use-sync-external-store-shim.development.js
|
|
72
|
+
*
|
|
73
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the MIT license found in the
|
|
76
|
+
* LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var kn;function cs(){return kn||(kn=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=a,e=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function t(w){{for(var K=arguments.length,D=new Array(K>1?K-1:0),M=1;M<K;M++)D[M-1]=arguments[M];r("error",w,D)}}function r(w,K,D){{var M=e.ReactDebugCurrentFrame,N=M.getStackAddendum();N!==""&&(K+="%s",D=D.concat([N]));var f=D.map(function(T){return String(T)});f.unshift("Warning: "+K),Function.prototype.apply.call(console[w],console,f)}}function i(w,K){return w===K&&(w!==0||1/w===1/K)||w!==w&&K!==K}var o=typeof Object.is=="function"?Object.is:i,l=n.useState,s=n.useEffect,u=n.useLayoutEffect,c=n.useDebugValue,d=!1,h=!1;function v(w,K,D){d||n.startTransition!==void 0&&(d=!0,t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var M=K();if(!h){var N=K();o(M,N)||(t("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}var f=l({inst:{value:M,getSnapshot:K}}),T=f[0].inst,y=f[1];return u(function(){T.value=M,T.getSnapshot=K,p(T)&&y({inst:T})},[w,M,K]),s(function(){p(T)&&y({inst:T});var $=function(){p(T)&&y({inst:T})};return w($)},[w]),c(M),M}function p(w){var K=w.getSnapshot,D=w.value;try{var M=K();return!o(D,M)}catch{return!0}}function b(w,K,D){return K()}var S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m=!S,P=m?b:v,k=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:P;Kt.useSyncExternalStore=k,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Kt}process.env.NODE_ENV==="production"?Vt.exports=us():Vt.exports=cs();var ds=Vt.exports;const Pr=a.createContext(!1),qe=a.createContext(null);function fs(n){if(a.useContext(qe))return n.content;let{collection:t,document:r}=gs(n.createCollection);return a.createElement(a.Fragment,null,a.createElement(Nl,null,a.createElement(qe.Provider,{value:r},n.content)),a.createElement(ps,{render:n.children,collection:t}))}function ps({collection:n,render:e}){return e(n)}function hs(n,e,t){let r=Ne(),i=a.useRef(r);i.current=r;let o=a.useCallback(()=>i.current?t():e(),[e,t]);return ds.useSyncExternalStore(n,o)}const vs=typeof a.useSyncExternalStore=="function"?a.useSyncExternalStore:hs;function gs(n){let[e]=a.useState(()=>new Cl((n==null?void 0:n())||new Pl)),t=a.useCallback(l=>e.subscribe(l),[e]),r=a.useCallback(()=>{let l=e.getCollection();return e.isSSR&&e.resetAfterSSR(),l},[e]),i=a.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),o=vs(t,r,i);return O(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:o,document:e}}const Ut=a.createContext(null);function bs(n,e,t,r,i,o){let l=a.useCallback(u=>{u==null||u.setProps(e,t,r,o)},[e,t,r,o]),s=a.useContext(Ut);if(s){let u=s.ownerDocument.nodesByProps.get(e);return u||(u=s.ownerDocument.createElement(n),u.setProps(e,t,r,o),s.appendChild(u),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(e,u)),i?a.createElement(Ut.Provider,{value:u},i):null}return a.createElement(n,{ref:l},i)}function ys(n,e){let t=({node:i})=>e(i.props,i.props.ref,i),r=a.forwardRef((i,o)=>{if(!a.useContext(Pr)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(i,o)}return bs(n,i,o,"children"in i?i.children:null,null,s=>a.createElement(t,{node:s}))});return r.displayName=e.name,r}function ms(n){return dr({...n,addIdAndValue:!0})}const Tn=a.createContext(null);function $s(n){let e=a.useContext(Tn),t=((e==null?void 0:e.dependencies)||[]).concat(n.dependencies),r=n.idScope||(e==null?void 0:e.idScope),i=ms({...n,idScope:r,dependencies:t});return a.useContext(qe)&&(i=a.createElement(xs,null,i)),e=a.useMemo(()=>({dependencies:t,idScope:r}),[r,...t]),a.createElement(Tn.Provider,{value:e},i)}function xs({children:n}){let e=a.useContext(qe),t=a.useMemo(()=>a.createElement(qe.Provider,{value:null},a.createElement(Pr.Provider,{value:!0},n)),[n]);return Ne()?a.createElement(Ut.Provider,{value:e},t):Xe.createPortal(t,e)}const Ss=a.createContext(null),Es={CollectionRoot({collection:n,renderDropIndicator:e}){return Kn(n,null,e)},CollectionBranch({collection:n,parent:e,renderDropIndicator:t}){return Kn(n,e,t)}};function Kn(n,e,t){return dr({items:e?n.getChildren(e.key):n,dependencies:[t],children(r){var i;let o=r.render(r);if(!t||r.type!=="item")return o;let l=r.key,s=n.getKeyAfter(l);return a.createElement(a.Fragment,null,t({type:"item",key:l,dropPosition:"before"}),o,(s==null||((i=n.getItem(s))===null||i===void 0?void 0:i.type)!=="item")&&t({type:"item",key:l,dropPosition:"after"}))}})}const Cr=a.createContext(Es);function ws(n){return a.useMemo(()=>n!=null?new Set([n]):null,[n])}const Dn=Symbol("default");function $t({values:n,children:e}){for(let[t,r]of n)e=a.createElement(t.Provider,{value:r},e);return e}function Ie(n){let{className:e,style:t,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:l,values:s}=n;return a.useMemo(()=>{let u,c,d;return typeof e=="function"?u=e({...s,defaultClassName:i}):u=e,typeof t=="function"?c=t({...s,defaultStyle:l||{}}):c=t,typeof r=="function"?d=r({...s,defaultChildren:o}):r==null?d=o:d=r,{className:u??i,style:c||l?{...l,...c}:void 0,children:d??o,"data-rac":""}},[e,t,r,i,o,l,s])}function kr(n,e){let t=a.useContext(n);if(e===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let r=new Intl.ListFormat().format(Object.keys(t.slots).map(o=>`"${o}"`));if(!e&&!t.slots[Dn])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=e||Dn;if(!t.slots[i])throw new Error(`Invalid slot "${e}". Valid slot names are ${r}.`);return t.slots[i]}return t}function Qe(n,e,t){let r=kr(t,n.slot)||{},{ref:i,...o}=r,l=an(a.useMemo(()=>zl(e,i),[e,i])),s=z(o,n);return"style"in o&&o.style&&"style"in n&&n.style&&(typeof o.style=="function"||typeof n.style=="function"?s.style=u=>{let c=typeof o.style=="function"?o.style(u):o.style,d={...u.defaultStyle,...c},h=typeof n.style=="function"?n.style({...u,defaultStyle:d}):n.style;return{...d,...h}}:s.style={...o.style,...n.style}),[s,l]}function Ps(){let[n,e]=a.useState(!0),t=a.useRef(!1),r=a.useCallback(i=>{t.current=!0,e(!!i)},[]);return O(()=>{t.current||e(!1)},[]),[r,n]}function Cs(n,e=!0){let[t,r]=a.useState(!0);return Tr(n,t&&e,a.useCallback(()=>r(!1),[])),t&&e}function ks(n,e){let[t,r]=a.useState(!1),[i,o]=a.useState("idle");return!e&&n.current&&i==="idle"&&(t=!0,r(!0),o("exiting")),!n.current&&i==="exited"&&o("idle"),Tr(n,t,a.useCallback(()=>{o("exited"),r(!1)},[])),t}function Tr(n,e,t){let r=a.useRef(null);e&&n.current&&(r.current=window.getComputedStyle(n.current).animation),O(()=>{if(e&&n.current){let i=window.getComputedStyle(n.current);if(i.animationName&&i.animationName!=="none"&&i.animation!==r.current){let o=s=>{s.target===n.current&&(l.removeEventListener("animationend",o),Xe.flushSync(()=>{t()}))},l=n.current;return l.addEventListener("animationend",o),()=>{l.removeEventListener("animationend",o)}}else t()}},[n,e,t])}let Fe="default",Wt="",ct=new WeakMap;function Mn(n){if(mt()){if(Fe==="default"){const e=H(n);Wt=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}Fe="disabled"}else(n instanceof HTMLElement||n instanceof SVGElement)&&(ct.set(n,n.style.userSelect),n.style.userSelect="none")}function it(n){if(mt()){if(Fe!=="disabled")return;Fe="restoring",setTimeout(()=>{xr(()=>{if(Fe==="restoring"){const e=H(n);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=Wt||""),Wt="",Fe="default"}})},300)}else if((n instanceof HTMLElement||n instanceof SVGElement)&&n&&ct.has(n)){let e=ct.get(n);n.style.userSelect==="none"&&(n.style.userSelect=e),n.getAttribute("style")===""&&n.removeAttribute("style"),ct.delete(n)}}const Ze=a.createContext({register:()=>{}});Ze.displayName="PressResponderContext";function Ts(n,e){return e.get?e.get.call(n):e.value}function Kr(n,e,t){if(!e.has(n))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(n)}function Ks(n,e){var t=Kr(n,e,"get");return Ts(n,t)}function Ds(n,e){if(e.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ms(n,e,t){Ds(n,e),e.set(n,t)}function _s(n,e,t){if(e.set)e.set.call(n,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function _n(n,e,t){var r=Kr(n,e,"set");return _s(n,r,t),t}function Ls(n){let e=a.useContext(Ze);if(e){let{register:t,...r}=e;n=z(r,n),t()}return un(e,n.ref),n}var ot=new WeakMap;class lt{continuePropagation(){_n(this,ot,!1)}get shouldStopPropagation(){return Ks(this,ot)}constructor(e,t,r,i){Ms(this,ot,{writable:!0,value:void 0}),_n(this,ot,!0);var o;let l=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const s=l==null?void 0:l.getBoundingClientRect();let u,c=0,d,h=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,h=r.clientY),s&&(d!=null&&h!=null?(u=d-s.left,c=h-s.top):(u=s.width/2,c=s.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=u,this.y=c}}const Ln=Symbol("linkClicked");function et(n){let{onPress:e,onPressChange:t,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:h,...v}=Ls(n),[p,b]=a.useState(!1),S=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:m,removeAllGlobalListeners:P}=Sr(),k=ne((f,T)=>{let y=S.current;if(l||y.didFirePressStart)return!1;let $=!0;if(y.isTriggeringEvent=!0,r){let L=new lt("pressstart",T,f);r(L),$=L.shouldStopPropagation}return t&&t(!0),y.isTriggeringEvent=!1,y.didFirePressStart=!0,b(!0),$}),w=ne((f,T,y=!0)=>{let $=S.current;if(!$.didFirePressStart)return!1;$.ignoreClickAfterPress=!0,$.didFirePressStart=!1,$.isTriggeringEvent=!0;let L=!0;if(i){let g=new lt("pressend",T,f);i(g),L=g.shouldStopPropagation}if(t&&t(!1),b(!1),e&&y&&!l){let g=new lt("press",T,f);e(g),L&&(L=g.shouldStopPropagation)}return $.isTriggeringEvent=!1,L}),K=ne((f,T)=>{let y=S.current;if(l)return!1;if(o){y.isTriggeringEvent=!0;let $=new lt("pressup",T,f);return o($),y.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),D=ne(f=>{let T=S.current;T.isPressed&&T.target&&(T.isOverTarget&&T.pointerType!=null&&w(de(T.target,f),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,P(),d||it(T.target))}),M=ne(f=>{c&&D(f)}),N=a.useMemo(()=>{let f=S.current,T={onKeyDown($){if(Dt($.nativeEvent,$.currentTarget)&&$.currentTarget.contains($.target)){var L;An($.target,$.key)&&$.preventDefault();let g=!0;if(!f.isPressed&&!$.repeat){f.target=$.currentTarget,f.isPressed=!0,g=k($,"keyboard");let _=$.currentTarget,x=A=>{Dt(A,_)&&!A.repeat&&_.contains(A.target)&&f.target&&K(de(f.target,A),"keyboard")};m(H($.currentTarget),"keyup",We(x,y),!0)}g&&$.stopPropagation(),$.metaKey&&Te()&&((L=f.metaKeyEvents)===null||L===void 0||L.set($.key,$.nativeEvent))}else $.key==="Meta"&&(f.metaKeyEvents=new Map)},onClick($){if(!($&&!$.currentTarget.contains($.target))&&$&&$.button===0&&!f.isTriggeringEvent&&!xe.isOpening){let L=!0;if(l&&$.preventDefault(),!f.ignoreClickAfterPress&&!f.ignoreEmulatedMouseEvents&&!f.isPressed&&(f.pointerType==="virtual"||jt($.nativeEvent))){!l&&!u&&he($.currentTarget);let g=k($,"virtual"),_=K($,"virtual"),x=w($,"virtual");L=g&&_&&x}f.ignoreEmulatedMouseEvents=!1,f.ignoreClickAfterPress=!1,L&&$.stopPropagation()}}},y=$=>{var L;if(f.isPressed&&f.target&&Dt($,f.target)){var g;An($.target,$.key)&&$.preventDefault();let x=$.target;w(de(f.target,$),"keyboard",f.target.contains(x)),P(),$.key!=="Enter"&&dn(f.target)&&f.target.contains(x)&&!$[Ln]&&($[Ln]=!0,xe(f.target,$,!1)),f.isPressed=!1,(g=f.metaKeyEvents)===null||g===void 0||g.delete($.key)}else if($.key==="Meta"&&(!((L=f.metaKeyEvents)===null||L===void 0)&&L.size)){var _;let x=f.metaKeyEvents;f.metaKeyEvents=void 0;for(let A of x.values())(_=f.target)===null||_===void 0||_.dispatchEvent(new KeyboardEvent("keyup",A))}};if(typeof PointerEvent<"u"){T.onPointerDown=x=>{if(x.button!==0||!x.currentTarget.contains(x.target))return;if(as(x.nativeEvent)){f.pointerType="virtual";return}Mt(x.currentTarget)&&x.preventDefault(),f.pointerType=x.pointerType;let A=!0;f.isPressed||(f.isPressed=!0,f.isOverTarget=!0,f.activePointerId=x.pointerId,f.target=x.currentTarget,!l&&!u&&he(x.currentTarget),d||Mn(f.target),A=k(x,f.pointerType),m(H(x.currentTarget),"pointermove",$,!1),m(H(x.currentTarget),"pointerup",L,!1),m(H(x.currentTarget),"pointercancel",_,!1)),A&&x.stopPropagation()},T.onMouseDown=x=>{x.currentTarget.contains(x.target)&&x.button===0&&(Mt(x.currentTarget)&&x.preventDefault(),x.stopPropagation())},T.onPointerUp=x=>{!x.currentTarget.contains(x.target)||f.pointerType==="virtual"||x.button===0&&De(x,x.currentTarget)&&K(x,f.pointerType||x.pointerType)};let $=x=>{x.pointerId===f.activePointerId&&(f.target&&De(x,f.target)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,k(de(f.target,x),f.pointerType)):f.target&&f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,w(de(f.target,x),f.pointerType,!1),M(x)))},L=x=>{x.pointerId===f.activePointerId&&f.isPressed&&x.button===0&&f.target&&(De(x,f.target)&&f.pointerType!=null?w(de(f.target,x),f.pointerType):f.isOverTarget&&f.pointerType!=null&&w(de(f.target,x),f.pointerType,!1),f.isPressed=!1,f.isOverTarget=!1,f.activePointerId=null,f.pointerType=null,P(),d||it(f.target),"ontouchend"in f.target&&x.pointerType!=="mouse"&&m(f.target,"touchend",g,{once:!0}))},g=x=>{Dr(x.currentTarget)&&x.preventDefault()},_=x=>{D(x)};T.onDragStart=x=>{x.currentTarget.contains(x.target)&&D(x)}}else{T.onMouseDown=g=>{if(g.button!==0||!g.currentTarget.contains(g.target))return;if(Mt(g.currentTarget)&&g.preventDefault(),f.ignoreEmulatedMouseEvents){g.stopPropagation();return}f.isPressed=!0,f.isOverTarget=!0,f.target=g.currentTarget,f.pointerType=jt(g.nativeEvent)?"virtual":"mouse",!l&&!u&&he(g.currentTarget),k(g,f.pointerType)&&g.stopPropagation(),m(H(g.currentTarget),"mouseup",$,!1)},T.onMouseEnter=g=>{if(!g.currentTarget.contains(g.target))return;let _=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!0,_=k(g,f.pointerType)),_&&g.stopPropagation()},T.onMouseLeave=g=>{if(!g.currentTarget.contains(g.target))return;let _=!0;f.isPressed&&!f.ignoreEmulatedMouseEvents&&f.pointerType!=null&&(f.isOverTarget=!1,_=w(g,f.pointerType,!1),M(g)),_&&g.stopPropagation()},T.onMouseUp=g=>{g.currentTarget.contains(g.target)&&!f.ignoreEmulatedMouseEvents&&g.button===0&&K(g,f.pointerType||"mouse")};let $=g=>{if(g.button===0){if(f.isPressed=!1,P(),f.ignoreEmulatedMouseEvents){f.ignoreEmulatedMouseEvents=!1;return}f.target&&De(g,f.target)&&f.pointerType!=null?w(de(f.target,g),f.pointerType):f.target&&f.isOverTarget&&f.pointerType!=null&&w(de(f.target,g),f.pointerType,!1),f.isOverTarget=!1}};T.onTouchStart=g=>{if(!g.currentTarget.contains(g.target))return;let _=Fs(g.nativeEvent);if(!_)return;f.activePointerId=_.identifier,f.ignoreEmulatedMouseEvents=!0,f.isOverTarget=!0,f.isPressed=!0,f.target=g.currentTarget,f.pointerType="touch",!l&&!u&&he(g.currentTarget),d||Mn(f.target),k(ye(f.target,g),f.pointerType)&&g.stopPropagation(),m(re(g.currentTarget),"scroll",L,!0)},T.onTouchMove=g=>{if(!g.currentTarget.contains(g.target))return;if(!f.isPressed){g.stopPropagation();return}let _=Fn(g.nativeEvent,f.activePointerId),x=!0;_&&De(_,g.currentTarget)?!f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!0,x=k(ye(f.target,g),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(f.isOverTarget=!1,x=w(ye(f.target,g),f.pointerType,!1),M(ye(f.target,g))),x&&g.stopPropagation()},T.onTouchEnd=g=>{if(!g.currentTarget.contains(g.target))return;if(!f.isPressed){g.stopPropagation();return}let _=Fn(g.nativeEvent,f.activePointerId),x=!0;_&&De(_,g.currentTarget)&&f.pointerType!=null?(K(ye(f.target,g),f.pointerType),x=w(ye(f.target,g),f.pointerType)):f.isOverTarget&&f.pointerType!=null&&(x=w(ye(f.target,g),f.pointerType,!1)),x&&g.stopPropagation(),f.isPressed=!1,f.activePointerId=null,f.isOverTarget=!1,f.ignoreEmulatedMouseEvents=!0,f.target&&!d&&it(f.target),P()},T.onTouchCancel=g=>{g.currentTarget.contains(g.target)&&(g.stopPropagation(),f.isPressed&&D(ye(f.target,g)))};let L=g=>{f.isPressed&&g.target.contains(f.target)&&D({currentTarget:f.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};T.onDragStart=g=>{g.currentTarget.contains(g.target)&&D(g)}}return T},[m,l,u,P,d,D,M,w,k,K]);return a.useEffect(()=>()=>{var f;d||it((f=S.current.target)!==null&&f!==void 0?f:void 0)},[d]),{isPressed:s||p,pressProps:z(v,N)}}function dn(n){return n.tagName==="A"&&n.hasAttribute("href")}function Dt(n,e){const{key:t,code:r}=n,i=e,o=i.getAttribute("role");return(t==="Enter"||t===" "||t==="Spacebar"||r==="Space")&&!(i instanceof re(i).HTMLInputElement&&!Mr(i,t)||i instanceof re(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&dn(i))&&t!=="Enter")}function Fs(n){const{targetTouches:e}=n;return e.length>0?e[0]:null}function Fn(n,e){const t=n.changedTouches;for(let r=0;r<t.length;r++){const i=t[r];if(i.identifier===e)return i}return null}function ye(n,e){let t=0,r=0;return e.targetTouches&&e.targetTouches.length===1&&(t=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY),{currentTarget:n,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:t,clientY:r}}function de(n,e){let t=e.clientX,r=e.clientY;return{currentTarget:n,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,clientX:t,clientY:r}}function As(n){let e=0,t=0;return n.width!==void 0?e=n.width/2:n.radiusX!==void 0&&(e=n.radiusX),n.height!==void 0?t=n.height/2:n.radiusY!==void 0&&(t=n.radiusY),{top:n.clientY-t,right:n.clientX+e,bottom:n.clientY+t,left:n.clientX-e}}function Rs(n,e){return!(n.left>e.right||e.left>n.right||n.top>e.bottom||e.top>n.bottom)}function De(n,e){let t=e.getBoundingClientRect(),r=As(n);return Rs(t,r)}function Mt(n){return!(n instanceof HTMLElement)||!n.hasAttribute("draggable")}function Dr(n){return n instanceof HTMLInputElement?!1:n instanceof HTMLButtonElement?n.type!=="submit"&&n.type!=="reset":!dn(n)}function An(n,e){return n instanceof HTMLInputElement?!Mr(n,e):Dr(n)}const Ns=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Mr(n,e){return n.type==="checkbox"||n.type==="radio"?e===" ":Ns.has(n.type)}const Is=a.forwardRef(({children:n,...e},t)=>{let r=a.useRef(!1),i=a.useContext(Ze);t=an(t||(i==null?void 0:i.ref));let o=z(i||{},{...e,ref:t,register(){r.current=!0,i&&i.register()}});return un(i,t),a.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),a.createElement(Ze.Provider,{value:o},n)});function Bs({children:n}){let e=a.useMemo(()=>({register:()=>{}}),[]);return a.createElement(Ze.Provider,{value:e},n)}class Os{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function _r(n){let e=a.useRef({isFocused:!1,observer:null});O(()=>{const r=e.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let t=ne(r=>{n==null||n(r)});return a.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=r.target,o=l=>{e.current.isFocused=!1,i.disabled&&t(new Os("blur",l)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var l;(l=e.current.observer)===null||l===void 0||l.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[t])}function fn(n){let{isDisabled:e,onFocus:t,onBlur:r,onFocusChange:i}=n;const o=a.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),i&&i(!1),!0},[r,i]),l=_r(o),s=a.useCallback(u=>{const c=H(u.target);u.target===u.currentTarget&&c.activeElement===u.target&&(t&&t(u),i&&i(!0),l(u))},[i,t,l]);return{focusProps:{onFocus:!e&&(t||i||r)?s:void 0,onBlur:!e&&(r||i)?o:void 0}}}let Be=null,Gt=new Set,Ve=new Map,Ke=!1,qt=!1;const Hs={Tab:!0,Escape:!0};function pn(n,e){for(let t of Gt)t(n,e)}function js(n){return!(n.metaKey||!Te()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function pt(n){Ke=!0,js(n)&&(Be="keyboard",pn("keyboard",n))}function J(n){Be="pointer",(n.type==="mousedown"||n.type==="pointerdown")&&(Ke=!0,pn("pointer",n))}function Lr(n){jt(n)&&(Ke=!0,Be="virtual")}function Fr(n){n.target===window||n.target===document||(!Ke&&!qt&&(Be="virtual",pn("virtual",n)),Ke=!1,qt=!1)}function Ar(){Ke=!1,qt=!0}function Zt(n){if(typeof window>"u"||Ve.get(re(n)))return;const e=re(n),t=H(n);let r=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){Ke=!0,r.apply(this,arguments)},t.addEventListener("keydown",pt,!0),t.addEventListener("keyup",pt,!0),t.addEventListener("click",Lr,!0),e.addEventListener("focus",Fr,!0),e.addEventListener("blur",Ar,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",J,!0),t.addEventListener("pointermove",J,!0),t.addEventListener("pointerup",J,!0)):(t.addEventListener("mousedown",J,!0),t.addEventListener("mousemove",J,!0),t.addEventListener("mouseup",J,!0)),e.addEventListener("beforeunload",()=>{Rr(n)},{once:!0}),Ve.set(e,{focus:r})}const Rr=(n,e)=>{const t=re(n),r=H(n);e&&r.removeEventListener("DOMContentLoaded",e),Ve.has(t)&&(t.HTMLElement.prototype.focus=Ve.get(t).focus,r.removeEventListener("keydown",pt,!0),r.removeEventListener("keyup",pt,!0),r.removeEventListener("click",Lr,!0),t.removeEventListener("focus",Fr,!0),t.removeEventListener("blur",Ar,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",J,!0),r.removeEventListener("pointermove",J,!0),r.removeEventListener("pointerup",J,!0)):(r.removeEventListener("mousedown",J,!0),r.removeEventListener("mousemove",J,!0),r.removeEventListener("mouseup",J,!0)),Ve.delete(t))};function zs(n){const e=H(n);let t;return e.readyState!=="loading"?Zt(n):(t=()=>{Zt(n)},e.addEventListener("DOMContentLoaded",t)),()=>Rr(n,t)}typeof document<"u"&&zs();function hn(){return Be!=="pointer"}function Yt(){return Be}const Vs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Us(n,e,t){var r;const i=typeof window<"u"?re(t==null?void 0:t.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?re(t==null?void 0:t.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?re(t==null?void 0:t.target).HTMLElement:HTMLElement,s=typeof window<"u"?re(t==null?void 0:t.target).KeyboardEvent:KeyboardEvent;return n=n||(t==null?void 0:t.target)instanceof i&&!Vs.has(t==null||(r=t.target)===null||r===void 0?void 0:r.type)||(t==null?void 0:t.target)instanceof o||(t==null?void 0:t.target)instanceof l&&(t==null?void 0:t.target.isContentEditable),!(n&&e==="keyboard"&&t instanceof s&&!Hs[t.key])}function Ws(n,e,t){Zt(),a.useEffect(()=>{let r=(i,o)=>{Us(!!(t!=null&&t.isTextInput),i,o)&&n(hn())};return Gt.add(r),()=>{Gt.delete(r)}},e)}function vn(n){let{isDisabled:e,onBlurWithin:t,onFocusWithin:r,onFocusWithinChange:i}=n,o=a.useRef({isFocusWithin:!1}),l=a.useCallback(c=>{o.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(o.current.isFocusWithin=!1,t&&t(c),i&&i(!1))},[t,i,o]),s=_r(l),u=a.useCallback(c=>{!o.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),i&&i(!0),o.current.isFocusWithin=!0,s(c))},[r,i,s]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let ht=!1,_t=0;function Xt(){ht=!0,setTimeout(()=>{ht=!1},50)}function Rn(n){n.pointerType==="touch"&&Xt()}function Gs(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Rn):document.addEventListener("touchend",Xt),_t++,()=>{_t--,!(_t>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Rn):document.removeEventListener("touchend",Xt))}}function xt(n){let{onHoverStart:e,onHoverChange:t,onHoverEnd:r,isDisabled:i}=n,[o,l]=a.useState(!1),s=a.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a.useEffect(Gs,[]);let{hoverProps:u,triggerHoverEnd:c}=a.useMemo(()=>{let d=(p,b)=>{if(s.pointerType=b,i||b==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let S=p.currentTarget;s.target=S,e&&e({type:"hoverstart",target:S,pointerType:b}),t&&t(!0),l(!0)},h=(p,b)=>{if(s.pointerType="",s.target=null,b==="touch"||!s.isHovered)return;s.isHovered=!1;let S=p.currentTarget;r&&r({type:"hoverend",target:S,pointerType:b}),t&&t(!1),l(!1)},v={};return typeof PointerEvent<"u"?(v.onPointerEnter=p=>{ht&&p.pointerType==="mouse"||d(p,p.pointerType)},v.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&h(p,p.pointerType)}):(v.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},v.onMouseEnter=p=>{!s.ignoreEmulatedMouseEvents&&!ht&&d(p,"mouse"),s.ignoreEmulatedMouseEvents=!1},v.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&h(p,"mouse")}),{hoverProps:v,triggerHoverEnd:h}},[e,t,r,i,s]);return a.useEffect(()=>{i&&c({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:o}}function qs(n){let{ref:e,onInteractOutside:t,isDisabled:r,onInteractOutsideStart:i}=n,o=a.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=ne(u=>{t&&st(u,e)&&(i&&i(u),o.current.isPointerDown=!0)}),s=ne(u=>{t&&t(u)});a.useEffect(()=>{let u=o.current;if(r)return;const c=e.current,d=H(c);if(typeof PointerEvent<"u"){let h=v=>{u.isPointerDown&&st(v,e)&&s(v),u.isPointerDown=!1};return d.addEventListener("pointerdown",l,!0),d.addEventListener("pointerup",h,!0),()=>{d.removeEventListener("pointerdown",l,!0),d.removeEventListener("pointerup",h,!0)}}else{let h=p=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&st(p,e)&&s(p),u.isPointerDown=!1},v=p=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&st(p,e)&&s(p),u.isPointerDown=!1};return d.addEventListener("mousedown",l,!0),d.addEventListener("mouseup",h,!0),d.addEventListener("touchstart",l,!0),d.addEventListener("touchend",v,!0),()=>{d.removeEventListener("mousedown",l,!0),d.removeEventListener("mouseup",h,!0),d.removeEventListener("touchstart",l,!0),d.removeEventListener("touchend",v,!0)}}},[e,r,l,s])}function st(n,e){if(n.button>0)return!1;if(n.target){const t=n.target.ownerDocument;if(!t||!t.documentElement.contains(n.target)||n.target.closest("[data-react-aria-top-layer]"))return!1}return e.current&&!e.current.contains(n.target)}function Nn(n){if(!n)return;let e=!0;return t=>{let r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented(){return t.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){e=!1}};n(r),e&&t.stopPropagation()}}function Nr(n){return{keyboardProps:n.isDisabled?{}:{onKeyDown:Nn(n.onKeyDown),onKeyUp:Nn(n.onKeyUp)}}}const Zs=500;function Ir(n){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:r,onLongPress:i,threshold:o=Zs,accessibilityDescription:l}=n;const s=a.useRef(void 0);let{addGlobalListener:u,removeGlobalListener:c}=Sr(),{pressProps:d}=et({isDisabled:e,onPressStart(v){if(v.continuePropagation(),(v.pointerType==="mouse"||v.pointerType==="touch")&&(t&&t({...v,type:"longpressstart"}),s.current=setTimeout(()=>{v.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...v,type:"longpress"}),s.current=void 0},o),v.pointerType==="touch")){let p=b=>{b.preventDefault()};u(v.target,"contextmenu",p,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(v.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(v){s.current&&clearTimeout(s.current),r&&(v.pointerType==="mouse"||v.pointerType==="touch")&&r({...v,type:"longpressend"})}}),h=ss(i&&!e?l:void 0);return{longPressProps:z(d,h)}}function Ye(n){const e=H(n);if(Yt()==="virtual"){let t=e.activeElement;xr(()=>{e.activeElement===t&&n.isConnected&&he(n)})}else he(n)}function Ys(n){const e=re(n);if(!(n instanceof e.HTMLElement)&&!(n instanceof e.SVGElement))return!1;let{display:t,visibility:r}=n.style,i=t!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=n.ownerDocument.defaultView;let{display:l,visibility:s}=o(n);i=l!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function Xs(n,e){return!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&(n.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?n.hasAttribute("open"):!0)}function Br(n,e){return n.nodeName!=="#comment"&&Ys(n)&&Xs(n,e)&&(!n.parentElement||Br(n.parentElement,n))}const In=a.createContext(null),Jt="react-aria-focus-scope-restore";let B=null;function Or(n){let{children:e,contain:t,restoreFocus:r,autoFocus:i}=n,o=a.useRef(null),l=a.useRef(null),s=a.useRef([]),{parentNode:u}=a.useContext(In)||{},c=a.useMemo(()=>new en({scopeRef:s}),[s]);O(()=>{let v=u||V.root;if(V.getTreeNode(v.scopeRef)&&B&&!vt(B,v.scopeRef)){let p=V.getTreeNode(B);p&&(v=p)}v.addChild(c),V.addNode(c)},[c,u]),O(()=>{let v=V.getTreeNode(s);v&&(v.contain=!!t)},[t]),O(()=>{var v;let p=(v=o.current)===null||v===void 0?void 0:v.nextSibling,b=[],S=m=>m.stopPropagation();for(;p&&p!==l.current;)b.push(p),p.addEventListener(Jt,S),p=p.nextSibling;return s.current=b,()=>{for(let m of b)m.removeEventListener(Jt,S)}},[e]),ia(s,r,t),ta(s,t),oa(s,r,t),ra(s,i),a.useEffect(()=>{const v=H(s.current?s.current[0]:void 0).activeElement;let p=null;if(Q(v,s.current)){for(let b of V.traverse())b.scopeRef&&Q(v,b.scopeRef.current)&&(p=b);p===V.getTreeNode(s)&&(B=p.scopeRef)}},[s]),O(()=>()=>{var v,p,b;let S=(b=(p=V.getTreeNode(s))===null||p===void 0||(v=p.parent)===null||v===void 0?void 0:v.scopeRef)!==null&&b!==void 0?b:null;(s===B||vt(s,B))&&(!S||V.getTreeNode(S))&&(B=S),V.removeTreeNode(s)},[s]);let d=a.useMemo(()=>Js(s),[]),h=a.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return a.createElement(In.Provider,{value:h},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),e,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Js(n){return{focusNext(e={}){let t=n.current,{from:r,tabbable:i,wrap:o,accept:l}=e,s=r||H(t[0]).activeElement,u=t[0].previousElementSibling,c=Ce(t),d=ge(c,{tabbable:i,accept:l},t);d.currentNode=Q(s,t)?s:u;let h=d.nextNode();return!h&&o&&(d.currentNode=u,h=d.nextNode()),h&&ve(h,!0),h},focusPrevious(e={}){let t=n.current,{from:r,tabbable:i,wrap:o,accept:l}=e,s=r||H(t[0]).activeElement,u=t[t.length-1].nextElementSibling,c=Ce(t),d=ge(c,{tabbable:i,accept:l},t);d.currentNode=Q(s,t)?s:u;let h=d.previousNode();return!h&&o&&(d.currentNode=u,h=d.previousNode()),h&&ve(h,!0),h},focusFirst(e={}){let t=n.current,{tabbable:r,accept:i}=e,o=Ce(t),l=ge(o,{tabbable:r,accept:i},t);l.currentNode=t[0].previousElementSibling;let s=l.nextNode();return s&&ve(s,!0),s},focusLast(e={}){let t=n.current,{tabbable:r,accept:i}=e,o=Ce(t),l=ge(o,{tabbable:r,accept:i},t);l.currentNode=t[t.length-1].nextElementSibling;let s=l.previousNode();return s&&ve(s,!0),s}}}const gn=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Qs=gn.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";gn.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const ea=gn.join(':not([hidden]):not([tabindex="-1"]),');function Ce(n){return n[0].parentElement}function je(n){let e=V.getTreeNode(B);for(;e&&e.scopeRef!==n;){if(e.contain)return!1;e=e.parent}return!0}function ta(n,e){let t=a.useRef(void 0),r=a.useRef(void 0);O(()=>{let i=n.current;if(!e){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=H(i?i[0]:void 0);let l=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!je(n)||c.isComposing)return;let d=o.activeElement,h=n.current;if(!h||!Q(d,h))return;let v=Ce(h),p=ge(v,{tabbable:!0},h);if(!d)return;p.currentNode=d;let b=c.shiftKey?p.previousNode():p.nextNode();b||(p.currentNode=c.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,b=c.shiftKey?p.previousNode():p.nextNode()),c.preventDefault(),b&&ve(b,!0)},s=c=>{(!B||vt(B,n))&&Q(c.target,n.current)?(B=n,t.current=c.target):je(n)&&!$e(c.target,n)?t.current?t.current.focus():B&&B.current&&Qt(B.current):je(n)&&(t.current=c.target)},u=c=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&je(n)&&!$e(o.activeElement,n))if(B=n,o.body.contains(c.target)){var d;t.current=c.target,(d=t.current)===null||d===void 0||d.focus()}else B.current&&Qt(B.current)})};return o.addEventListener("keydown",l,!1),o.addEventListener("focusin",s,!1),i==null||i.forEach(c=>c.addEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.addEventListener("focusout",u,!1)),()=>{o.removeEventListener("keydown",l,!1),o.removeEventListener("focusin",s,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",s,!1)),i==null||i.forEach(c=>c.removeEventListener("focusout",u,!1))}},[n,e]),O(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Hr(n){return $e(n)}function Q(n,e){return!n||!e?!1:e.some(t=>t.contains(n))}function $e(n,e=null){if(n instanceof Element&&n.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:t}of V.traverse(V.getTreeNode(e)))if(t&&Q(n,t.current))return!0;return!1}function na(n){return $e(n,B)}function vt(n,e){var t;let r=(t=V.getTreeNode(e))===null||t===void 0?void 0:t.parent;for(;r;){if(r.scopeRef===n)return!0;r=r.parent}return!1}function ve(n,e=!1){if(n!=null&&!e)try{Ye(n)}catch{}else if(n!=null)try{n.focus()}catch{}}function jr(n,e=!0){let t=n[0].previousElementSibling,r=Ce(n),i=ge(r,{tabbable:e},n);i.currentNode=t;let o=i.nextNode();return e&&!o&&(r=Ce(n),i=ge(r,{tabbable:!1},n),i.currentNode=t,o=i.nextNode()),o}function Qt(n,e=!0){ve(jr(n,e))}function ra(n,e){const t=a.useRef(e);a.useEffect(()=>{if(t.current){B=n;const r=H(n.current?n.current[0]:void 0);!Q(r.activeElement,B.current)&&n.current&&Qt(n.current)}t.current=!1},[n])}function ia(n,e,t){O(()=>{if(e||t)return;let r=n.current;const i=H(r?r[0]:void 0);let o=l=>{let s=l.target;Q(s,n.current)?B=n:Hr(s)||(B=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",o,!1))}},[n,e,t])}function Bn(n){let e=V.getTreeNode(B);for(;e&&e.scopeRef!==n;){if(e.nodeToRestore)return!1;e=e.parent}return(e==null?void 0:e.scopeRef)===n}function oa(n,e,t){const r=a.useRef(typeof document<"u"?H(n.current?n.current[0]:void 0).activeElement:null);O(()=>{let i=n.current;const o=H(i?i[0]:void 0);if(!e||t)return;let l=()=>{(!B||vt(B,n))&&Q(o.activeElement,n.current)&&(B=n)};return o.addEventListener("focusin",l,!1),i==null||i.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{o.removeEventListener("focusin",l,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",l,!1))}},[n,t]),O(()=>{const i=H(n.current?n.current[0]:void 0);if(!e)return;let o=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!je(n)||l.isComposing)return;let s=i.activeElement;if(!$e(s,n)||!Bn(n))return;let u=V.getTreeNode(n);if(!u)return;let c=u.nodeToRestore,d=ge(i.body,{tabbable:!0});d.currentNode=s;let h=l.shiftKey?d.previousNode():d.nextNode();if((!c||!i.body.contains(c)||c===i.body)&&(c=void 0,u.nodeToRestore=void 0),(!h||!$e(h,n))&&c){d.currentNode=c;do h=l.shiftKey?d.previousNode():d.nextNode();while($e(h,n));l.preventDefault(),l.stopPropagation(),h?ve(h,!0):Hr(c)?ve(c,!0):s.blur()}};return t||i.addEventListener("keydown",o,!0),()=>{t||i.removeEventListener("keydown",o,!0)}},[n,e,t]),O(()=>{const i=H(n.current?n.current[0]:void 0);if(!e)return;let o=V.getTreeNode(n);if(o){var l;return o.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=V.getTreeNode(n);if(!s)return;let u=s.nodeToRestore;if(e&&u&&(i.activeElement&&$e(i.activeElement,n)||i.activeElement===i.body&&Bn(n))){let c=V.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let d=c.getTreeNode(n);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){On(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(n);d;){if(d.scopeRef&&d.scopeRef.current&&V.getTreeNode(d.scopeRef)){let h=jr(d.scopeRef.current,!0);On(h);return}d=d.parent}}})}}}},[n,e])}function On(n){n.dispatchEvent(new CustomEvent(Jt,{bubbles:!0,cancelable:!0}))&&ve(n)}function ge(n,e,t){let r=e!=null&&e.tabbable?ea:Qs,i=H(n).createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var l;return!(e==null||(l=e.from)===null||l===void 0)&&l.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&Br(o)&&(!t||Q(o,t))&&(!(e!=null&&e.accept)||e.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(i.currentNode=e.from),i}class bn{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let i=this.fastMap.get(t??null);if(!i)return;let o=new en({scopeRef:e});i.addChild(o),o.parent=i,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let o of this.traverse())o!==t&&t.nodeToRestore&&o.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Q(o.nodeToRestore,t.scopeRef.current)&&(o.nodeToRestore=t.nodeToRestore);let i=t.children;r&&(r.removeChild(t),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new bn;var r;for(let i of this.traverse())t.addTreeNode(i.scopeRef,(r=(e=i.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new en({scopeRef:null}),this.fastMap.set(null,this.root)}}class en{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let V=new bn;function yn(n={}){let{autoFocus:e=!1,isTextInput:t,within:r}=n,i=a.useRef({isFocused:!1,isFocusVisible:e||hn()}),[o,l]=a.useState(!1),[s,u]=a.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=a.useCallback(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),d=a.useCallback(p=>{i.current.isFocused=p,l(p),c()},[c]);Ws(p=>{i.current.isFocusVisible=p,c()},[],{isTextInput:t});let{focusProps:h}=fn({isDisabled:r,onFocusChange:d}),{focusWithinProps:v}=vn({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:s,focusProps:r?v:h}}let la=a.createContext(null);function sa(n){let e=a.useContext(la)||{};un(e,n);let{ref:t,...r}=e;return r}function zr(n,e){let{focusProps:t}=fn(n),{keyboardProps:r}=Nr(n),i=z(t,r),o=sa(e),l=n.isDisabled?{}:o,s=a.useRef(n.autoFocus);return a.useEffect(()=>{s.current&&e.current&&Ye(e.current),s.current=!1},[e]),{focusableProps:z({...i,tabIndex:n.excludeFromTabOrder&&!n.isDisabled?-1:void 0},l)}}function aa(n,e){let{elementType:t="a",onPress:r,onPressStart:i,onPressEnd:o,onClick:l,isDisabled:s,...u}=n,c={};t!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=zr(n,e),{pressProps:h,isPressed:v}=et({onPress:r,onPressStart:i,onPressEnd:o,isDisabled:s,ref:e}),p=Ee(u,{labelable:!0}),b=z(d,h),S=Je(),m=$r(n);return{isPressed:v,linkProps:z(p,m,{...b,...c,"aria-disabled":s||void 0,"aria-current":n["aria-current"],onClick:P=>{var k;(k=h.onClick)===null||k===void 0||k.call(h,P),l&&(l(P),console.warn("onClick is deprecated, please use onPress")),!S.isNative&&P.currentTarget instanceof HTMLAnchorElement&&P.currentTarget.href&&!P.isDefaultPrevented()&&yr(P.currentTarget,P)&&n.href&&(P.preventDefault(),S.open(P.currentTarget,P,n.href,n.routerOptions))}})}}const ua=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ca=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function da(n){if(Intl.Locale){let t=new Intl.Locale(n).maximize(),r=typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo;if(r)return r.direction==="rtl";if(t.script)return ua.has(t.script)}let e=n.split("-")[0];return ca.has(e)}const fa=Symbol.for("react-aria.i18n.locale");function Vr(){let n=typeof window<"u"&&window[fa]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([n])}catch{n="en-US"}return{locale:n,direction:da(n)?"rtl":"ltr"}}let tn=Vr(),ze=new Set;function Hn(){tn=Vr();for(let n of ze)n(tn)}function pa(){let n=Ne(),[e,t]=a.useState(tn);return a.useEffect(()=>(ze.size===0&&window.addEventListener("languagechange",Hn),ze.add(t),()=>{ze.delete(t),ze.size===0&&window.removeEventListener("languagechange",Hn)}),[]),n?{locale:"en-US",direction:"ltr"}:e}const ha=a.createContext(null);function St(){let n=pa();return a.useContext(ha)||n}const va=Symbol.for("react-aria.i18n.locale"),ga=Symbol.for("react-aria.i18n.strings");let Me;class Et{getStringForLocale(e,t){let i=this.getStringsForLocale(t)[e];if(!i)throw new Error(`Could not find intl message ${e} in ${t} locale`);return i}getStringsForLocale(e){let t=this.strings[e];return t||(t=ba(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if(typeof window>"u")return null;let t=window[va];if(Me===void 0){let i=window[ga];if(!i)return null;Me={};for(let o in i)Me[o]=new Et({[t]:i[o]},t)}let r=Me==null?void 0:Me[e];if(!r)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,r])=>r)),this.defaultLocale=t}}function ba(n,e,t="en-US"){if(e[n])return e[n];let r=ya(n);if(e[r])return e[r];for(let i in e)if(i.startsWith(r+"-"))return e[i];return e[t]}function ya(n){return Intl.Locale?new Intl.Locale(n).language:n.split("-")[0]}const jn=new Map,zn=new Map;class ma{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(t,this):r}plural(e,t,r="cardinal"){let i=t["="+e];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,l=jn.get(o);l||(l=new Intl.PluralRules(this.locale,{type:r}),jn.set(o,l));let s=l.select(e);return i=t[s]||t.other,typeof i=="function"?i():i}number(e){let t=zn.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),zn.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return typeof r=="function"?r():r}constructor(e,t){this.locale=e,this.strings=t}}const Vn=new WeakMap;function $a(n){let e=Vn.get(n);return e||(e=new Et(n),Vn.set(n,e)),e}function xa(n,e){return e&&Et.getGlobalDictionaryForPackage(e)||$a(n)}function Ur(n,e){let{locale:t}=St(),r=xa(n,e);return a.useMemo(()=>new ma(t,r),[t,r])}let Lt=new Map;function Sa(n){let{locale:e}=St(),t=e+(n?Object.entries(n).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Lt.has(t))return Lt.get(t);let r=new Intl.Collator(e,n);return Lt.set(t,r),r}function Ea(n,e){let{elementType:t="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:l,onPressUp:s,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:h,href:v,target:p,rel:b,type:S="button"}=n,m;t==="button"?m={type:S,disabled:r}:m={role:"button",tabIndex:r?void 0:0,href:t==="a"&&!r?v:void 0,target:t==="a"?p:void 0,type:t==="input"?S:void 0,disabled:t==="input"?r:void 0,"aria-disabled":!r||t==="input"?void 0:r,rel:t==="a"?b:void 0};let{pressProps:P,isPressed:k}=et({onPressStart:o,onPressEnd:l,onPressChange:u,onPress:i,onPressUp:s,isDisabled:r,preventFocusOnPress:c,ref:e}),{focusableProps:w}=zr(n,e);d&&(w.tabIndex=r?-1:w.tabIndex);let K=z(w,P,Ee(n,{labelable:!0}));return{isPressed:k,buttonProps:z(m,K,{"aria-haspopup":n["aria-haspopup"],"aria-expanded":n["aria-expanded"],"aria-controls":n["aria-controls"],"aria-pressed":n["aria-pressed"],onClick:D=>{h&&(h(D),console.warn("onClick is deprecated, please use onPress"))}})}}const Wr=7e3;let ue=null;function Un(n,e="assertive",t=Wr){ue?ue.announce(n,e,t):(ue=new wa,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ue.announce(n,e,t):setTimeout(()=>{ue!=null&&ue.isAttached()&&(ue==null||ue.announce(n,e,t))},100))}class wa{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=Wr){var i,o;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,t==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(l):(o=this.politeLog)===null||o===void 0||o.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Wn={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Pa(n={}){let{style:e,isFocusable:t}=n,[r,i]=a.useState(!1),{focusWithinProps:o}=vn({isDisabled:!t,onFocusWithinChange:s=>i(s)}),l=a.useMemo(()=>r?e:e?{...Wn,...e}:Wn,[r]);return{visuallyHiddenProps:{...o,style:l}}}function Ca(n){let{children:e,elementType:t="div",isFocusable:r,style:i,...o}=n,{visuallyHiddenProps:l}=Pa(n);return a.createElement(t,z(o,l),e)}const ce={top:"top",bottom:"top",left:"left",right:"left"},gt={top:"bottom",bottom:"top",left:"right",right:"left"},ka={top:"left",left:"top"},nn={top:"height",left:"width"},Gr={width:"totalWidth",height:"totalHeight"},at={};let W=typeof document<"u"?window.visualViewport:null;function Gn(n){let e=0,t=0,r=0,i=0,o=0,l=0,s={};var u;let c=((u=W==null?void 0:W.scale)!==null&&u!==void 0?u:1)>1;if(n.tagName==="BODY"){let b=document.documentElement;r=b.clientWidth,i=b.clientHeight;var d;e=(d=W==null?void 0:W.width)!==null&&d!==void 0?d:r;var h;t=(h=W==null?void 0:W.height)!==null&&h!==void 0?h:i,s.top=b.scrollTop||n.scrollTop,s.left=b.scrollLeft||n.scrollLeft,W&&(o=W.offsetTop,l=W.offsetLeft)}else({width:e,height:t,top:o,left:l}=Re(n)),s.top=n.scrollTop,s.left=n.scrollLeft,r=e,i=t;if(vr()&&(n.tagName==="BODY"||n.tagName==="HTML")&&c){s.top=0,s.left=0;var v;o=(v=W==null?void 0:W.pageTop)!==null&&v!==void 0?v:0;var p;l=(p=W==null?void 0:W.pageLeft)!==null&&p!==void 0?p:0}return{width:e,height:t,totalWidth:r,totalHeight:i,scroll:s,top:o,left:l}}function Ta(n){return{top:n.scrollTop,left:n.scrollLeft,width:n.scrollWidth,height:n.scrollHeight}}function qn(n,e,t,r,i,o,l){var s;let u=(s=i.scroll[n])!==null&&s!==void 0?s:0,c=r[nn[n]],d=r.scroll[ce[n]]+o,h=c+r.scroll[ce[n]]-o,v=e-u+l[n]-r[ce[n]],p=e-u+t+l[n]-r[ce[n]];return v<d?d-v:p>h?Math.max(h-p,d-v):0}function Ka(n){let e=window.getComputedStyle(n);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Zn(n){if(at[n])return at[n];let[e,t]=n.split(" "),r=ce[e]||"right",i=ka[r];ce[t]||(t="center");let o=nn[r],l=nn[i];return at[n]={placement:e,crossPlacement:t,axis:r,crossAxis:i,size:o,crossSize:l},at[n]}function Ft(n,e,t,r,i,o,l,s,u,c){let{placement:d,crossPlacement:h,axis:v,crossAxis:p,size:b,crossSize:S}=r,m={};var P;m[p]=(P=n[p])!==null&&P!==void 0?P:0;var k,w,K,D;h==="center"?m[p]+=(((k=n[S])!==null&&k!==void 0?k:0)-((w=t[S])!==null&&w!==void 0?w:0))/2:h!==p&&(m[p]+=((K=n[S])!==null&&K!==void 0?K:0)-((D=t[S])!==null&&D!==void 0?D:0)),m[p]+=o;const M=n[p]-t[S]+u+c,N=n[p]+n[S]-u-c;if(m[p]=zt(m[p],M,N),d===v){const f=s?l[b]:e[Gr[b]];m[gt[v]]=Math.floor(f-n[v]+i)}else m[v]=Math.floor(n[v]+n[b]+i);return m}function Da(n,e,t,r,i,o,l,s){const u=r?t.height:e[Gr.height];var c;let d=n.top!=null?t.top+n.top:t.top+(u-((c=n.bottom)!==null&&c!==void 0?c:0)-l);var h,v,p,b,S,m;let P=s!=="top"?Math.max(0,e.height+e.top+((h=e.scroll.top)!==null&&h!==void 0?h:0)-d-(((v=i.top)!==null&&v!==void 0?v:0)+((p=i.bottom)!==null&&p!==void 0?p:0)+o)):Math.max(0,d+l-(e.top+((b=e.scroll.top)!==null&&b!==void 0?b:0))-(((S=i.top)!==null&&S!==void 0?S:0)+((m=i.bottom)!==null&&m!==void 0?m:0)+o));return Math.min(e.height-o*2,P)}function Yn(n,e,t,r,i,o){let{placement:l,axis:s,size:u}=o;var c,d;if(l===s)return Math.max(0,t[s]-n[s]-((c=n.scroll[s])!==null&&c!==void 0?c:0)+e[s]-((d=r[s])!==null&&d!==void 0?d:0)-r[gt[s]]-i);var h;return Math.max(0,n[u]+n[s]+n.scroll[s]-e[s]-t[s]-t[u]-((h=r[s])!==null&&h!==void 0?h:0)-r[gt[s]]-i)}function Ma(n,e,t,r,i,o,l,s,u,c,d,h,v,p,b,S){let m=Zn(n),{size:P,crossAxis:k,crossSize:w,placement:K,crossPlacement:D}=m,M=Ft(e,s,t,m,d,h,c,v,b,S),N=d,f=Yn(s,c,e,i,o+d,m);if(l&&r[P]>f){let Z=Zn(`${gt[K]} ${D}`),F=Ft(e,s,t,Z,d,h,c,v,b,S);Yn(s,c,e,i,o+d,Z)>f&&(m=Z,M=F,N=d)}let T="bottom";m.axis==="top"?m.placement==="top"?T="top":m.placement==="bottom"&&(T="bottom"):m.crossAxis==="top"&&(m.crossPlacement==="top"?T="bottom":m.crossPlacement==="bottom"&&(T="top"));let y=qn(k,M[k],t[w],s,u,o,c);M[k]+=y;let $=Da(M,s,c,v,i,o,t.height,T);p&&p<$&&($=p),t.height=Math.min(t.height,$),M=Ft(e,s,t,m,N,h,c,v,b,S),y=qn(k,M[k],t[w],s,u,o,c),M[k]+=y;let L={},g=e[k]+.5*e[w]-M[k]-i[ce[k]];const _=b/2+S;var x,A,C,I;const q=ce[k]==="left"?((x=i.left)!==null&&x!==void 0?x:0)+((A=i.right)!==null&&A!==void 0?A:0):((C=i.top)!==null&&C!==void 0?C:0)+((I=i.bottom)!==null&&I!==void 0?I:0),oe=t[w]-q-b/2-S,le=e[k]+b/2-(M[k]+i[ce[k]]),we=e[k]+e[w]-b/2-(M[k]+i[ce[k]]),Pe=zt(g,le,we);return L[k]=zt(Pe,_,oe),{position:M,maxHeight:$,arrowOffsetLeft:L.left,arrowOffsetTop:L.top,placement:m.placement}}function _a(n){let{placement:e,targetNode:t,overlayNode:r,scrollNode:i,padding:o,shouldFlip:l,boundaryElement:s,offset:u,crossOffset:c,maxHeight:d,arrowSize:h=0,arrowBoundaryOffset:v=0}=n,p=r instanceof HTMLElement?La(r):document.documentElement,b=p===document.documentElement;const S=window.getComputedStyle(p).position;let m=!!S&&S!=="static",P=b?Re(t):Xn(t,p);if(!b){let{marginTop:L,marginLeft:g}=window.getComputedStyle(t);P.top+=parseInt(L,10)||0,P.left+=parseInt(g,10)||0}let k=Re(r),w=Ka(r);var K,D;k.width+=((K=w.left)!==null&&K!==void 0?K:0)+((D=w.right)!==null&&D!==void 0?D:0);var M,N;k.height+=((M=w.top)!==null&&M!==void 0?M:0)+((N=w.bottom)!==null&&N!==void 0?N:0);let f=Ta(i),T=Gn(s),y=Gn(p),$=s.tagName==="BODY"?Re(p):Xn(p,s);return p.tagName==="HTML"&&s.tagName==="BODY"&&(y.scroll.top=0,y.scroll.left=0),Ma(e,P,k,f,w,o,l,T,y,$,u,c,m,d,h,v)}function Re(n){let{top:e,left:t,width:r,height:i}=n.getBoundingClientRect(),{scrollTop:o,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:e+o-s,left:t+l-u,width:r,height:i}}function Xn(n,e){let t=window.getComputedStyle(n),r;if(t.position==="fixed"){let{top:i,left:o,width:l,height:s}=n.getBoundingClientRect();r={top:i,left:o,width:l,height:s}}else{r=Re(n);let i=Re(e),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-e.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(t.marginTop,10)||0,r.left-=parseInt(t.marginLeft,10)||0,r}function La(n){let e=n.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Jn(e)&&(e=document.documentElement),e==null)for(e=n.parentElement;e&&!Jn(e);)e=e.parentElement;return e||document.documentElement}function Jn(n){let e=window.getComputedStyle(n);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const qr=new WeakMap;function Fa(n){let{triggerRef:e,isOpen:t,onClose:r}=n;a.useEffect(()=>{if(!t||r===null)return;let i=o=>{let l=o.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let s=r||qr.get(e.current);s&&s()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[t,r,e])}let j=typeof document<"u"?window.visualViewport:null;function Aa(n){let{direction:e}=St(),{arrowSize:t=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:h=0,shouldUpdatePosition:v=!0,isOpen:p=!0,onClose:b,maxHeight:S,arrowBoundaryOffset:m=0}=n,[P,k]=a.useState(null),w=[v,l,i.current,r.current,o.current,s,u,c,d,h,p,e,S,m,t],K=a.useRef(j==null?void 0:j.scale);a.useEffect(()=>{p&&(K.current=j==null?void 0:j.scale)},[p]);let D=a.useCallback(()=>{if(v===!1||!p||!i.current||!r.current||!c||(j==null?void 0:j.scale)!==K.current)return;let y=null;if(o.current&&o.current.contains(document.activeElement)){var $;let I=($=document.activeElement)===null||$===void 0?void 0:$.getBoundingClientRect(),q=o.current.getBoundingClientRect();var L;if(y={type:"top",offset:((L=I==null?void 0:I.top)!==null&&L!==void 0?L:0)-q.top},y.offset>q.height/2){y.type="bottom";var g;y.offset=((g=I==null?void 0:I.bottom)!==null&&g!==void 0?g:0)-q.bottom}}let _=i.current;if(!S&&i.current){var x;_.style.top="0px",_.style.bottom="";var A;_.style.maxHeight=((A=(x=window.visualViewport)===null||x===void 0?void 0:x.height)!==null&&A!==void 0?A:window.innerHeight)+"px"}let C=_a({placement:Na(l,e),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:h,maxHeight:S,arrowSize:t,arrowBoundaryOffset:m});if(C.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(C.position).forEach(I=>_.style[I]=C.position[I]+"px"),_.style.maxHeight=C.maxHeight!=null?C.maxHeight+"px":"",y&&document.activeElement&&o.current){let I=document.activeElement.getBoundingClientRect(),q=o.current.getBoundingClientRect(),oe=I[y.type]-q[y.type];o.current.scrollTop+=oe-y.offset}k(C)}},w);O(D,w),Ra(D),Ht({ref:i,onResize:D}),Ht({ref:r,onResize:D});let M=a.useRef(!1);O(()=>{let y,$=()=>{M.current=!0,clearTimeout(y),y=setTimeout(()=>{M.current=!1},500),D()},L=()=>{M.current&&$()};return j==null||j.addEventListener("resize",$),j==null||j.addEventListener("scroll",L),()=>{j==null||j.removeEventListener("resize",$),j==null||j.removeEventListener("scroll",L)}},[D]);let N=a.useCallback(()=>{M.current||b==null||b()},[b,M]);Fa({triggerRef:r,isOpen:p,onClose:b&&N});var f,T;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...P==null?void 0:P.position,maxHeight:(f=P==null?void 0:P.maxHeight)!==null&&f!==void 0?f:"100vh"}},placement:(T=P==null?void 0:P.placement)!==null&&T!==void 0?T:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:P==null?void 0:P.arrowOffsetLeft,top:P==null?void 0:P.arrowOffsetTop}},updatePosition:D}}function Ra(n){O(()=>(window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}),[n])}function Na(n,e){return e==="rtl"?n.replace("start","right").replace("end","left"):n.replace("start","left").replace("end","right")}const fe=[];function Ia(n,e){let{onClose:t,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=n;a.useEffect(()=>(i&&fe.push(e),()=>{let b=fe.indexOf(e);b>=0&&fe.splice(b,1)}),[i,e]);let u=()=>{fe[fe.length-1]===e&&t&&t()},c=b=>{(!s||s(b.target))&&fe[fe.length-1]===e&&(b.stopPropagation(),b.preventDefault())},d=b=>{(!s||s(b.target))&&(fe[fe.length-1]===e&&(b.stopPropagation(),b.preventDefault()),u())},h=b=>{b.key==="Escape"&&!l&&!b.nativeEvent.isComposing&&(b.stopPropagation(),b.preventDefault(),u())};qs({ref:e,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:v}=vn({isDisabled:!r,onBlurWithin:b=>{!b.relatedTarget||na(b.relatedTarget)||(!s||s(b.relatedTarget))&&(t==null||t())}}),p=b=>{b.target===b.currentTarget&&b.preventDefault()};return{overlayProps:{onKeyDown:h,...v},underlayProps:{onPointerDown:p}}}function Ba(n,e,t){let{type:r}=n,{isOpen:i}=e;a.useEffect(()=>{t&&t.current&&qr.set(t.current,e.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let l=ke();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?l:void 0,onPress:e.toggle},overlayProps:{id:l}}}const At=typeof document<"u"&&window.visualViewport,Oa=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ut=0,Rt;function Ha(n={}){let{isDisabled:e}=n;O(()=>{if(!e)return ut++,ut===1&&(mt()?Rt=za():Rt=ja()),()=>{ut--,ut===0&&Rt()}},[e])}function ja(){return We(Ae(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ae(document.documentElement,"overflow","hidden"))}function za(){let n,e,t=c=>{n=Er(c.target,!0),!(n===document.documentElement&&n===document.body)&&n instanceof HTMLElement&&window.getComputedStyle(n).overscrollBehavior==="auto"&&(e=Ae(n,"overscrollBehavior","contain"))},r=c=>{if(!n||n===document.documentElement||n===document.body){c.preventDefault();return}n.scrollHeight===n.clientHeight&&n.scrollWidth===n.clientWidth&&c.preventDefault()},i=c=>{let d=c.target;er(d)&&d!==document.activeElement&&(c.preventDefault(),s(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""})),e&&e()},o=c=>{let d=c.target;er(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",At&&(At.height<window.innerHeight?requestAnimationFrame(()=>{Qn(d)}):At.addEventListener("resize",()=>Qn(d),{once:!0}))}))},l=null,s=()=>{if(l)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,h=window.pageYOffset;l=We(Oe(window,"scroll",c),Ae(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ae(document.documentElement,"overflow","hidden"),Ae(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(d,h)}),window.scrollTo(0,0)},u=We(Oe(document,"touchstart",t,{passive:!1,capture:!0}),Oe(document,"touchmove",r,{passive:!1,capture:!0}),Oe(document,"touchend",i,{passive:!1,capture:!0}),Oe(document,"focus",o,!0));return()=>{e==null||e(),l==null||l(),u()}}function Ae(n,e,t){let r=n.style[e];return n.style[e]=t,()=>{n.style[e]=r}}function Oe(n,e,t,r){return n.addEventListener(e,t,r),()=>{n.removeEventListener(e,t,r)}}function Qn(n){let e=document.scrollingElement||document.documentElement,t=n;for(;t&&t!==e;){let r=Er(t);if(r!==document.documentElement&&r!==document.body&&r!==t){let i=r.getBoundingClientRect().top,o=t.getBoundingClientRect().top;o>i+t.clientHeight&&(r.scrollTop+=o-i)}t=r.parentElement}}function er(n){return n instanceof HTMLInputElement&&!Oa.has(n.type)||n instanceof HTMLTextAreaElement||n instanceof HTMLElement&&n.isContentEditable}var Zr={};Zr={dismiss:"تجاهل"};var Yr={};Yr={dismiss:"Отхвърляне"};var Xr={};Xr={dismiss:"Odstranit"};var Jr={};Jr={dismiss:"Luk"};var Qr={};Qr={dismiss:"Schließen"};var ei={};ei={dismiss:"Απόρριψη"};var ti={};ti={dismiss:"Dismiss"};var ni={};ni={dismiss:"Descartar"};var ri={};ri={dismiss:"Lõpeta"};var ii={};ii={dismiss:"Hylkää"};var oi={};oi={dismiss:"Rejeter"};var li={};li={dismiss:"התעלם"};var si={};si={dismiss:"Odbaci"};var ai={};ai={dismiss:"Elutasítás"};var ui={};ui={dismiss:"Ignora"};var ci={};ci={dismiss:"閉じる"};var di={};di={dismiss:"무시"};var fi={};fi={dismiss:"Atmesti"};var pi={};pi={dismiss:"Nerādīt"};var hi={};hi={dismiss:"Lukk"};var vi={};vi={dismiss:"Negeren"};var gi={};gi={dismiss:"Zignoruj"};var bi={};bi={dismiss:"Descartar"};var yi={};yi={dismiss:"Dispensar"};var mi={};mi={dismiss:"Revocare"};var $i={};$i={dismiss:"Пропустить"};var xi={};xi={dismiss:"Zrušiť"};var Si={};Si={dismiss:"Opusti"};var Ei={};Ei={dismiss:"Odbaci"};var wi={};wi={dismiss:"Avvisa"};var Pi={};Pi={dismiss:"Kapat"};var Ci={};Ci={dismiss:"Скасувати"};var ki={};ki={dismiss:"取消"};var Ti={};Ti={dismiss:"關閉"};var Ki={};Ki={"ar-AE":Zr,"bg-BG":Yr,"cs-CZ":Xr,"da-DK":Jr,"de-DE":Qr,"el-GR":ei,"en-US":ti,"es-ES":ni,"et-EE":ri,"fi-FI":ii,"fr-FR":oi,"he-IL":li,"hr-HR":si,"hu-HU":ai,"it-IT":ui,"ja-JP":ci,"ko-KR":di,"lt-LT":fi,"lv-LV":pi,"nb-NO":hi,"nl-NL":vi,"pl-PL":gi,"pt-BR":bi,"pt-PT":yi,"ro-RO":mi,"ru-RU":$i,"sk-SK":xi,"sl-SI":Si,"sr-SP":Ei,"sv-SE":wi,"tr-TR":Pi,"uk-UA":Ci,"zh-CN":ki,"zh-TW":Ti};function Va(n){return n&&n.__esModule?n.default:n}function tr(n){let{onDismiss:e,...t}=n,r=Ur(Va(Ki),"@react-aria/overlays"),i=rs(t,r.format("dismiss")),o=()=>{e&&e()};return a.createElement(Ca,null,a.createElement("button",{...i,tabIndex:-1,onClick:o,style:{width:1,height:1}}))}let He=new WeakMap,Y=[];function Ua(n,e=document.body){let t=new Set(n),r=new Set,i=u=>{for(let v of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))t.add(v);let c=v=>{if(t.has(v)||v.parentElement&&r.has(v.parentElement)&&v.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of t)if(v.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),h=c(u);if(h===NodeFilter.FILTER_ACCEPT&&o(u),h!==NodeFilter.FILTER_REJECT){let v=d.nextNode();for(;v!=null;)o(v),v=d.nextNode()}},o=u=>{var c;let d=(c=He.get(u))!==null&&c!==void 0?c:0;u.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&u.setAttribute("aria-hidden","true"),r.add(u),He.set(u,d+1))};Y.length&&Y[Y.length-1].disconnect(),i(e);let l=new MutationObserver(u=>{for(let c of u)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...t,...r].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(t.delete(d),r.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?t.add(d):d instanceof Element&&i(d)}});l.observe(e,{childList:!0,subtree:!0});let s={observe(){l.observe(e,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return Y.push(s),()=>{l.disconnect();for(let u of r){let c=He.get(u);c!=null&&(c===1?(u.removeAttribute("aria-hidden"),He.delete(u)):He.set(u,c-1))}s===Y[Y.length-1]?(Y.pop(),Y.length&&Y[Y.length-1].observe()):Y.splice(Y.indexOf(s),1)}}function Wa(n,e){let{triggerRef:t,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l,...s}=n,{overlayProps:u,underlayProps:c}=Ia({isOpen:e.isOpen&&!s["data-react-aria-top-layer"],onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l},r),{overlayProps:d,arrowProps:h,placement:v}=Aa({...s,targetRef:t,overlayRef:r,isOpen:e.isOpen,onClose:i?e.close:void 0});return Ha({isDisabled:i||!e.isOpen}),O(()=>{if(e.isOpen&&!i&&r.current)return Ua([r.current])},[i,e.isOpen,r]),{popoverProps:z(u,d),arrowProps:h,underlayProps:c,placement:v}}const Ga=a.createContext({});function qa(){var n;return(n=a.useContext(Ga))!==null&&n!==void 0?n:{}}const Za=a.createContext(null);function Ya(n){let e=Ne(),{portalContainer:t=e?null:document.body,isExiting:r}=n,[i,o]=a.useState(!1),l=a.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:s}=qa();if(!n.portalContainer&&s&&(t=s()),!t)return null;let u=n.children;return n.disableFocusManagement||(u=a.createElement(Or,{restoreFocus:!0,contain:i&&!r},u)),u=a.createElement(Za.Provider,{value:l},a.createElement(Bs,null,u)),Xe.createPortal(u,t)}function rn(n){return Jl()?n.altKey:n.ctrlKey}function Le(n){return Te()?n.metaKey:n.ctrlKey}const Xa=1e3;function Ja(n){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:r}=n,i=a.useRef({search:"",timeout:void 0}).current,o=l=>{let s=Qa(l.key);if(!(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(s===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=s,e.getKeyForSearch!=null){let u=e.getKeyForSearch(i.search,t.focusedKey);u==null&&(u=e.getKeyForSearch(i.search)),u!=null&&(t.setFocusedKey(u),r&&r(u))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Xa)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?o:void 0}}}function Qa(n){return n.length===1||!/^[A-Z]/i.test(n)?n:""}function eu(n){let{selectionManager:e,keyboardDelegate:t,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:u=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:v,scrollRef:p=r,linkBehavior:b="action"}=n,{direction:S}=St(),m=Je(),P=y=>{var $;if(y.altKey&&y.key==="Tab"&&y.preventDefault(),!(!(($=r.current)===null||$===void 0)&&$.contains(y.target)))return;const L=(F,se)=>{if(F!=null){if(e.isLink(F)&&b==="selection"&&u&&!rn(y)){var ae;Xe.flushSync(()=>{e.setFocusedKey(F,se)});let tt=(ae=p.current)===null||ae===void 0?void 0:ae.querySelector(`[data-key="${CSS.escape(F.toString())}"]`),nt=e.getItemProps(F);tt&&m.open(tt,y,nt.href,nt.routerOptions);return}if(e.setFocusedKey(F,se),e.isLink(F)&&b==="override")return;y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(F):u&&!rn(y)&&e.replaceSelection(F)}};switch(y.key){case"ArrowDown":if(t.getKeyBelow){var g,_,x;let F=e.focusedKey!=null?(g=t.getKeyBelow)===null||g===void 0?void 0:g.call(t,e.focusedKey):(_=t.getFirstKey)===null||_===void 0?void 0:_.call(t);F==null&&o&&(F=(x=t.getFirstKey)===null||x===void 0?void 0:x.call(t,e.focusedKey)),F!=null&&(y.preventDefault(),L(F))}break;case"ArrowUp":if(t.getKeyAbove){var A,C,I;let F=e.focusedKey!=null?(A=t.getKeyAbove)===null||A===void 0?void 0:A.call(t,e.focusedKey):(C=t.getLastKey)===null||C===void 0?void 0:C.call(t);F==null&&o&&(F=(I=t.getLastKey)===null||I===void 0?void 0:I.call(t,e.focusedKey)),F!=null&&(y.preventDefault(),L(F))}break;case"ArrowLeft":if(t.getKeyLeftOf){var q,oe,le;let F=e.focusedKey!=null?(q=t.getKeyLeftOf)===null||q===void 0?void 0:q.call(t,e.focusedKey):null;F==null&&o&&(F=S==="rtl"?(oe=t.getFirstKey)===null||oe===void 0?void 0:oe.call(t,e.focusedKey):(le=t.getLastKey)===null||le===void 0?void 0:le.call(t,e.focusedKey)),F!=null&&(y.preventDefault(),L(F,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var we,Pe,Z;let F=e.focusedKey!=null?(we=t.getKeyRightOf)===null||we===void 0?void 0:we.call(t,e.focusedKey):null;F==null&&o&&(F=S==="rtl"?(Pe=t.getLastKey)===null||Pe===void 0?void 0:Pe.call(t,e.focusedKey):(Z=t.getFirstKey)===null||Z===void 0?void 0:Z.call(t,e.focusedKey)),F!=null&&(y.preventDefault(),L(F,S==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){y.preventDefault();let F=t.getFirstKey(e.focusedKey,Le(y));e.setFocusedKey(F),F!=null&&(Le(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(F):u&&e.replaceSelection(F))}break;case"End":if(t.getLastKey){y.preventDefault();let F=t.getLastKey(e.focusedKey,Le(y));e.setFocusedKey(F),F!=null&&(Le(y)&&y.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(F):u&&e.replaceSelection(F))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let F=t.getKeyPageBelow(e.focusedKey);F!=null&&(y.preventDefault(),L(F))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let F=t.getKeyPageAbove(e.focusedKey);F!=null&&(y.preventDefault(),L(F))}break;case"a":Le(y)&&e.selectionMode==="multiple"&&s!==!0&&(y.preventDefault(),e.selectAll());break;case"Escape":!l&&e.selectedKeys.size!==0&&(y.stopPropagation(),y.preventDefault(),e.clearSelection());break;case"Tab":if(!h){if(y.shiftKey)r.current.focus();else{let F=ge(r.current,{tabbable:!0}),se,ae;do ae=F.lastChild(),ae&&(se=ae);while(ae);se&&!se.contains(document.activeElement)&&he(se)}break}}},k=a.useRef({top:0,left:0});En(p,"scroll",v?void 0:()=>{var y,$,L,g;k.current={top:(L=(y=p.current)===null||y===void 0?void 0:y.scrollTop)!==null&&L!==void 0?L:0,left:(g=($=p.current)===null||$===void 0?void 0:$.scrollLeft)!==null&&g!==void 0?g:0}});let w=y=>{if(e.isFocused){y.currentTarget.contains(y.target)||e.setFocused(!1);return}if(y.currentTarget.contains(y.target)){if(e.setFocused(!0),e.focusedKey==null){var $,L;let x=C=>{C!=null&&(e.setFocusedKey(C),u&&e.replaceSelection(C))},A=y.relatedTarget;var g,_;A&&y.currentTarget.compareDocumentPosition(A)&Node.DOCUMENT_POSITION_FOLLOWING?x((g=e.lastSelectedKey)!==null&&g!==void 0?g:($=t.getLastKey)===null||$===void 0?void 0:$.call(t)):x((_=e.firstSelectedKey)!==null&&_!==void 0?_:(L=t.getFirstKey)===null||L===void 0?void 0:L.call(t))}else!v&&p.current&&(p.current.scrollTop=k.current.top,p.current.scrollLeft=k.current.left);if(e.focusedKey!=null&&p.current){let x=p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);x&&(x.contains(document.activeElement)||he(x),Yt()==="keyboard"&&Pn(x,{containingElement:r.current}))}}},K=y=>{y.currentTarget.contains(y.relatedTarget)||e.setFocused(!1)};const D=a.useRef(i);a.useEffect(()=>{if(D.current){var y,$;let _=null;var L;i==="first"&&(_=(L=(y=t.getFirstKey)===null||y===void 0?void 0:y.call(t))!==null&&L!==void 0?L:null);var g;i==="last"&&(_=(g=($=t.getLastKey)===null||$===void 0?void 0:$.call(t))!==null&&g!==void 0?g:null);let x=e.selectedKeys;if(x.size){for(let A of x)if(e.canSelectItem(A)){_=A;break}}e.setFocused(!0),e.setFocusedKey(_),_==null&&!d&&r.current&&Ye(r.current)}},[]);let M=a.useRef(e.focusedKey);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==M.current||D.current)&&p.current&&r.current){let y=Yt(),$=r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!$)return;(y==="keyboard"||D.current)&&(wr(p.current,$),y!=="virtual"&&Pn($,{containingElement:r.current}))}!d&&e.isFocused&&e.focusedKey==null&&M.current!=null&&r.current&&Ye(r.current),M.current=e.focusedKey,D.current=!1}),En(r,"react-aria-focus-scope-restore",y=>{y.preventDefault(),e.setFocused(!0)});let N={onKeyDown:P,onFocus:w,onBlur:K,onMouseDown(y){p.current===y.target&&y.preventDefault()}},{typeSelectProps:f}=Ja({keyboardDelegate:t,selectionManager:e});c||(N=z(f,N));let T;return d||(T=e.focusedKey==null?0:-1),{collectionProps:{...N,tabIndex:T}}}function tu(n){let{selectionManager:e,key:t,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=n,h=Je(),v=C=>{if(C.pointerType==="keyboard"&&rn(C))e.toggleSelection(t);else{if(e.selectionMode==="none")return;if(e.isLink(t)){if(d==="selection"&&r.current){let I=e.getItemProps(t);h.open(r.current,C,I.href,I.routerOptions),e.setSelectedKeys(e.selectedKeys);return}else if(d==="override"||d==="none")return}e.selectionMode==="single"?e.isSelected(t)&&!e.disallowEmptySelection?e.toggleSelection(t):e.replaceSelection(t):C&&C.shiftKey?e.extendSelection(t):e.selectionBehavior==="toggle"||C&&(Le(C)||C.pointerType==="touch"||C.pointerType==="virtual")?e.toggleSelection(t):e.replaceSelection(t)}};a.useEffect(()=>{t===e.focusedKey&&e.isFocused&&!o&&(l?l():document.activeElement!==r.current&&r.current&&Ye(r.current))},[r,t,e.focusedKey,e.childFocusStrategy,e.isFocused,o]),s=s||e.isDisabled(t);let p={};!o&&!s?p={tabIndex:t===e.focusedKey?0:-1,onFocus(C){C.target===r.current&&e.setFocusedKey(t)}}:s&&(p.onMouseDown=C=>{C.preventDefault()});let b=e.isLink(t)&&d==="override",S=e.isLink(t)&&d!=="selection"&&d!=="none",m=!s&&e.canSelectItem(t)&&!b,P=(u||S)&&!s,k=P&&(e.selectionBehavior==="replace"?!m:!m||e.isEmpty),w=P&&m&&e.selectionBehavior==="replace",K=k||w,D=a.useRef(null),M=K&&m,N=a.useRef(!1),f=a.useRef(!1),T=C=>{if(u&&u(),S&&r.current){let I=e.getItemProps(t);h.open(r.current,C,I.href,I.routerOptions)}},y={};i?(y.onPressStart=C=>{D.current=C.pointerType,N.current=M,C.pointerType==="keyboard"&&(!K||rr())&&v(C)},c?(y.onPressUp=k?void 0:C=>{C.pointerType!=="keyboard"&&m&&v(C)},y.onPress=k?T:void 0):y.onPress=C=>{if(k||w&&C.pointerType!=="mouse"){if(C.pointerType==="keyboard"&&!nr())return;T(C)}else C.pointerType!=="keyboard"&&m&&v(C)}):(y.onPressStart=C=>{D.current=C.pointerType,N.current=M,f.current=k,m&&(C.pointerType==="mouse"&&!k||C.pointerType==="keyboard"&&(!P||rr()))&&v(C)},y.onPress=C=>{(C.pointerType==="touch"||C.pointerType==="pen"||C.pointerType==="virtual"||C.pointerType==="keyboard"&&K&&nr()||C.pointerType==="mouse"&&f.current)&&(K?T(C):m&&v(C))}),p["data-key"]=t,y.preventFocusOnPress=o;let{pressProps:$,isPressed:L}=et(y),g=w?C=>{D.current==="mouse"&&(C.stopPropagation(),C.preventDefault(),T(C))}:void 0,{longPressProps:_}=Ir({isDisabled:!M,onLongPress(C){C.pointerType==="touch"&&(v(C),e.setSelectionBehavior("toggle"))}}),x=C=>{D.current==="touch"&&N.current&&C.preventDefault()},A=e.isLink(t)?C=>{xe.isOpening||C.preventDefault()}:void 0;return{itemProps:z(p,m||k?$:{},M?_:{},{onDoubleClick:g,onDragStartCapture:x,onClick:A}),isPressed:L,isSelected:e.isSelected(t),isFocused:e.isFocused&&e.focusedKey===t,isDisabled:s,allowsSelection:m,hasAction:K}}function nr(){let n=window.event;return(n==null?void 0:n.key)==="Enter"}function rr(){let n=window.event;return(n==null?void 0:n.key)===" "||(n==null?void 0:n.code)==="Space"}class ir{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let i=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+t.scrollLeft,y:o.top-i.top+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,i,o;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(i=e==null?void 0:e.offsetWidth)!==null&&i!==void 0?i:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class nu{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let i=e,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let l=o;do{if(i=t(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(l,o)&&i!=null);return i}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Ge(t))return this.getFirstKey();let i=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Ge(t))return this.getLastKey();let i=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,i=t||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let l=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(l,e)===0)return i;i=this.getNextKey(i)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new ir(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new ir(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function ru(n){let{selectionManager:e,collection:t,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:l}=n,s=Sa({usage:"search",sensitivity:"base"}),u=e.disabledBehavior,c=a.useMemo(()=>o||new nu({collection:t,disabledKeys:r,disabledBehavior:u,ref:i,collator:s,layoutDelegate:l}),[o,l,t,r,i,s,u]),{collectionProps:d}=eu({...n,ref:i,selectionManager:e,keyboardDelegate:c});return{listProps:d}}class iu{build(e,t){return this.context=t,or(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(a.isValidElement(t)&&t.type===a.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:t}),i++}else{let i=[];a.Children.forEach(t,l=>{l&&i.push(l)});let o=0;for(let l of i){let s=this.getFullNode({element:l,index:o},{});for(let u of s)o++,yield u}}}getKey(e,t,r,i){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${i}${t.key}`;let o=t.value;if(o!=null){var l;let s=(l=o.key)!==null&&l!==void 0?l:o.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let m=[];a.Children.forEach(e.element.props.children,k=>{m.push(k)});var o;let P=(o=e.index)!==null&&o!==void 0?o:0;for(const k of m)yield*this.getFullNode({element:k,index:P++},t,r,i);return}let l=e.element;if(!l&&e.value&&t&&t.renderer){let m=this.cache.get(e.value);if(m&&(!m.shouldInvalidate||!m.shouldInvalidate(this.context))){m.index=e.index,m.parentKey=i?i.key:null,yield m;return}l=t.renderer(e.value)}if(a.isValidElement(l)){let m=l.type;if(typeof m!="function"&&typeof m.getCollectionNode!="function"){let K=l.type;throw new Error(`Unknown element <${K}> in collection.`)}let P=m.getCollectionNode(l.props,this.context);var s;let k=(s=e.index)!==null&&s!==void 0?s:0,w=P.next();for(;!w.done&&w.value;){let K=w.value;e.index=k;var u;let D=(u=K.key)!==null&&u!==void 0?u:null;D==null&&(D=K.element?null:this.getKey(l,e,t,r));let N=[...this.getFullNode({...K,key:D,index:k,wrapper:ou(e.wrapper,K.wrapper)},this.getChildState(t,K),r?`${r}${l.key}`:l.key,i)];for(let f of N){var c,d;f.value=(d=(c=K.value)!==null&&c!==void 0?c:e.value)!==null&&d!==void 0?d:null,f.value&&this.cache.set(f.value,f);var h;if(e.type&&f.type!==e.type)throw new Error(`Unsupported type <${Nt(f.type)}> in <${Nt((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${Nt(e.type)}> is supported.`);k++,yield f}w=P.next(N)}return}if(e.key==null||e.type==null)return;let v=this;var p,b;let S={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(p=e.value)!==null&&p!==void 0?p:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:or(function*(){if(!e.hasChildNodes||!e.childNodes)return;let m=0;for(let P of e.childNodes()){P.key!=null&&(P.key=`${S.key}${P.key}`);let k=v.getFullNode({...P,index:m},v.getChildState(t,P),S.key,S);for(let w of k)m++,yield w}})};yield S}constructor(){this.cache=new WeakMap}}function or(n){let e=[],t=null;return{*[Symbol.iterator](){for(let r of e)yield r;t||(t=n());for(let r of t)e.push(r),yield r}}}function ou(n,e){if(n&&e)return t=>n(e(t));if(n)return n;if(e)return e}function Nt(n){return n[0].toUpperCase()+n.slice(1)}function lu(n,e,t){let r=a.useMemo(()=>new iu,[]),{children:i,items:o,collection:l}=n;return a.useMemo(()=>{if(l)return l;let u=r.build({children:i,items:o},t);return e(u)},[r,i,o,l,t,e])}function Di(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function su(n){return au(n)}function au(n,e){for(let t of n)return t}function It(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let r=[...lr(n,e),e],i=[...lr(n,t),t],o=r.slice(0,i.length).findIndex((l,s)=>l!==i[s]);return o!==-1?(e=r[o],t=i[o],e.index-t.index):r.findIndex(l=>l===t)>=0?1:(i.findIndex(l=>l===e)>=0,-1)}function lr(n,e){let t=[],r=e;for(;(r==null?void 0:r.parentKey)!=null;)r=n.getItem(r.parentKey),r&&t.unshift(r);return t}const sr=new WeakMap;function uu(n){let e=sr.get(n);if(e!=null)return e;let t=0,r=i=>{for(let o of i)o.type==="section"?r(Di(o,n)):t++};return r(n),sr.set(n,t),t}var Mi={};Mi={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var _i={};_i={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Li={};Li={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Fi={};Fi={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Ai={};Ai={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Ri={};Ri={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Ni={};Ni={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Ii={};Ii={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Bi={};Bi={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Oi={};Oi={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Hi={};Hi={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var ji={};ji={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var zi={};zi={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Vi={};Vi={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Ui={};Ui={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Wi={};Wi={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Gi={};Gi={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var qi={};qi={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Zi={};Zi={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Yi={};Yi={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Xi={};Xi={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Ji={};Ji={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Qi={};Qi={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var eo={};eo={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var to={};to={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var no={};no={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ro={};ro={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var io={};io={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var oo={};oo={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var lo={};lo={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var so={};so={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ao={};ao={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var uo={};uo={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var co={};co={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var fo={};fo={"ar-AE":Mi,"bg-BG":_i,"cs-CZ":Li,"da-DK":Fi,"de-DE":Ai,"el-GR":Ri,"en-US":Ni,"es-ES":Ii,"et-EE":Bi,"fi-FI":Oi,"fr-FR":Hi,"he-IL":ji,"hr-HR":zi,"hu-HU":Vi,"it-IT":Ui,"ja-JP":Wi,"ko-KR":Gi,"lt-LT":qi,"lv-LV":Zi,"nb-NO":Yi,"nl-NL":Xi,"pl-PL":Ji,"pt-BR":Qi,"pt-PT":eo,"ro-RO":to,"ru-RU":no,"sk-SK":ro,"sl-SI":io,"sr-SP":oo,"sv-SE":lo,"tr-TR":so,"uk-UA":ao,"zh-CN":uo,"zh-TW":co};function cu(n){return n&&n.__esModule?n.default:n}function du(n,e,t){let{type:r="menu",isDisabled:i,trigger:o="press"}=n,l=ke(),{triggerProps:s,overlayProps:u}=Ba({type:r},e,t),c=p=>{if(!i&&!(o==="longPress"&&!p.altKey)&&t&&t.current)switch(p.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),e.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},d=Ur(cu(fo),"@react-aria/menu"),{longPressProps:h}=Ir({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){e.close()},onLongPress(){e.open("first")}}),v={onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!i&&e.open(p.pointerType==="virtual"?"first":null)},onPress(p){p.pointerType==="touch"&&!i&&e.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...o==="press"?v:h,id:l,onKeyDown:c},menuProps:{...u,"aria-labelledby":l,autoFocus:e.focusStrategy||!0,onClose:e.close}}}const po=new WeakMap;function fu(n,e,t){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...l}=n;!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=Ee(n,{labelable:!0}),{listProps:u}=ru({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return po.set(e,{onClose:n.onClose,onAction:n.onAction}),{menuProps:z(s,{onKeyDown:i,onKeyUp:o},{role:"menu",...u,onKeyDown:c=>{var d;c.key!=="Escape"&&((d=u.onKeyDown)===null||d===void 0||d.call(u,c))}})}}function pu(n,e,t){let{id:r,key:i,closeOnSelect:o,isVirtualized:l,"aria-haspopup":s,onPressStart:u,onPressUp:c,onPress:d,onPressChange:h,onPressEnd:v,onHoverStart:p,onHoverChange:b,onHoverEnd:S,onKeyDown:m,onKeyUp:P,onFocus:k,onFocusChange:w,onBlur:K,selectionManager:D=e.selectionManager}=n,M=!!s,N=M&&n["aria-expanded"]==="true";var f;let T=(f=n.isDisabled)!==null&&f!==void 0?f:D.isDisabled(i);var y;let $=(y=n.isSelected)!==null&&y!==void 0?y:D.isSelected(i),L=po.get(e),g=e.collection.getItem(i),_=n.onClose||L.onClose,x=Je(),A=U=>{var wt;if(!M){if(!(g==null||(wt=g.props)===null||wt===void 0)&&wt.onAction?g.props.onAction():n.onAction&&n.onAction(i),L.onAction){let Co=L.onAction;Co(i)}U.target instanceof HTMLAnchorElement&&g&&x.open(U.target,U,g.props.href,g.props.routerOptions)}},C="menuitem";M||(D.selectionMode==="single"?C="menuitemradio":D.selectionMode==="multiple"&&(C="menuitemcheckbox"));let I=Ct(),q=Ct(),oe=Ct(),le={id:r,"aria-disabled":T||void 0,role:C,"aria-label":n["aria-label"],"aria-labelledby":I,"aria-describedby":[q,oe].filter(Boolean).join(" ")||void 0,"aria-controls":n["aria-controls"],"aria-haspopup":s,"aria-expanded":n["aria-expanded"]};D.selectionMode!=="none"&&!M&&(le["aria-checked"]=$),l&&(le["aria-posinset"]=g==null?void 0:g.index,le["aria-setsize"]=uu(e.collection));let we=U=>{U.pointerType==="keyboard"&&A(U),u==null||u(U)},Pe=U=>{U.pointerType!=="keyboard"&&(A(U),!M&&_&&(o??(D.selectionMode!=="multiple"||D.isLink(i)))&&_()),c==null||c(U)},{itemProps:Z,isFocused:F}=tu({selectionManager:D,key:i,ref:t,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:se,isPressed:ae}=et({onPressStart:we,onPress:d,onPressUp:Pe,onPressChange:h,onPressEnd:v,isDisabled:T}),{hoverProps:tt}=xt({isDisabled:T,onHoverStart(U){!hn()&&!(N&&s==="dialog")&&(D.setFocused(!0),D.setFocusedKey(i)),p==null||p(U)},onHoverChange:b,onHoverEnd:S}),{keyboardProps:nt}=Nr({onKeyDown:U=>{if(U.repeat){U.continuePropagation();return}switch(U.key){case" ":!T&&D.selectionMode==="none"&&!M&&o!==!1&&_&&_();break;case"Enter":!T&&o!==!1&&!M&&_&&_();break;default:M||U.continuePropagation(),m==null||m(U);break}},onKeyUp:P}),{focusProps:wo}=fn({onBlur:K,onFocus:k,onFocusChange:w}),xn=Ee(g==null?void 0:g.props);delete xn.id;let Po=$r(g==null?void 0:g.props);return{menuItemProps:{...le,...z(xn,Po,M?{onFocus:Z.onFocus,"data-key":Z["data-key"]}:Z,se,tt,nt,wo),tabIndex:Z.tabIndex!=null&&N?-1:Z.tabIndex},labelProps:{id:I},descriptionProps:{id:q},keyboardShortcutProps:{id:oe},isFocused:F,isSelected:$,isPressed:ae,isDisabled:T}}function hu(n){let{heading:e,"aria-label":t}=n,r=ke();return{itemProps:{role:"presentation"},headingProps:e?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?r:void 0}}}const vu=a.createContext(null);function gu(n,e){[n,e]=Qe(n,e,vu);let t=n.href&&!n.isDisabled?"a":"span",{linkProps:r,isPressed:i}=aa({...n,elementType:t},e),{hoverProps:o,isHovered:l}=xt(n),{focusProps:s,isFocused:u,isFocusVisible:c}=yn(),d=Ie({...n,defaultClassName:"react-aria-Link",values:{isCurrent:!!n["aria-current"],isDisabled:n.isDisabled||!1,isPressed:i,isHovered:l,isFocused:u,isFocusVisible:c}});return a.createElement(t,{ref:e,slot:n.slot||void 0,...z(d,r,o,s),"data-focused":u||void 0,"data-hovered":l||void 0,"data-pressed":i||void 0,"data-focus-visible":c||void 0,"data-current":!!n["aria-current"]||void 0,"data-disabled":n.isDisabled||void 0},d.children)}const bu=a.forwardRef(gu),yu=a.createContext(null),mu=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),$u=a.createContext({});function xu(n,e){[n,e]=Qe(n,e,$u),n=Su(n);let t=n,{isPending:r}=t,{buttonProps:i,isPressed:o}=Ea(n,e),{focusProps:l,isFocused:s,isFocusVisible:u}=yn(n),{hoverProps:c,isHovered:d}=xt({...n,isDisabled:n.isDisabled||r}),h={isHovered:d,isPressed:(t.isPressed||o)&&!r,isFocused:s,isFocusVisible:u,isDisabled:n.isDisabled||!1,isPending:r??!1},v=Ie({...n,values:h,defaultClassName:"react-aria-Button"}),p=ke(i.id),b=ke(),S=i["aria-labelledby"];r&&(S?S=`${S} ${b}`:i["aria-label"]&&(S=`${p} ${b}`));let m=a.useRef(r);return a.useEffect(()=>{let P={"aria-labelledby":S||p};(!m.current&&s&&r||m.current&&s&&!r)&&Un(P,"assertive"),m.current=r},[r,s,S,p]),a.createElement("button",{...Ee(n,{propNames:mu}),...z(i,l,c),...v,id:p,ref:e,"aria-labelledby":S,slot:n.slot||void 0,"aria-disabled":r?"true":i["aria-disabled"],"data-disabled":n.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":d||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":u||void 0},a.createElement(yu.Provider,{value:{id:b}},v.children))}function Su(n){return n.isPending&&(n.onPress=void 0,n.onPressStart=void 0,n.onPressEnd=void 0,n.onPressChange=void 0,n.onPressUp=void 0,n.onKeyDown=void 0,n.onKeyUp=void 0,n.onClick=void 0,n.href=void 0),n}const Eu=Il(xu),wu=a.createContext({});class te extends Set{constructor(e,t,r){super(e),e instanceof te?(this.anchorKey=t??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=t??null,this.currentKey=r??null)}}function Pu(n,e){if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}function ho(n){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=n,l=a.useRef(!1),[,s]=a.useState(!1),u=a.useRef(null),c=a.useRef(null),[,d]=a.useState(null),h=a.useMemo(()=>ar(n.selectedKeys),[n.selectedKeys]),v=a.useMemo(()=>ar(n.defaultSelectedKeys,new te),[n.defaultSelectedKeys]),[p,b]=cn(h,v,n.onSelectionChange),S=a.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[m,P]=a.useState(i);i==="replace"&&m==="toggle"&&typeof p=="object"&&p.size===0&&P("replace");let k=a.useRef(i);return a.useEffect(()=>{i!==k.current&&(P(i),k.current=i)},[i]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:m,setSelectionBehavior:P,get isFocused(){return l.current},setFocused(w){l.current=w,s(w)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(w,K="first"){u.current=w,c.current=K,d(w)},selectedKeys:p,setSelectedKeys(w){(r||!Pu(w,p))&&b(w)},disabledKeys:S,disabledBehavior:o}}function ar(n,e){return n?n==="all"?"all":new te(n):e}class vo{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(r=>t.has(r)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&It(this.collection,i,e)<0)&&(e=i)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!e||i&&It(this.collection,i,e)>0)&&(e=i)}var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let r;if(this.state.selectedKeys==="all")r=new te([t],t,t);else{let l=this.state.selectedKeys;var i;let s=(i=l.anchorKey)!==null&&i!==void 0?i:t;r=new te(l,s,t);var o;for(let u of this.getKeyRange(s,(o=l.currentKey)!==null&&o!==void 0?o:t))r.delete(u);for(let u of this.getKeyRange(t,s))this.canSelectItem(u)&&r.add(u)}this.state.setSelectedKeys(r)}getKeyRange(e,t){let r=this.collection.getItem(e),i=this.collection.getItem(t);return r&&i?It(this.collection,r,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],o=e;for(;o!=null;){let l=this.collection.getItem(o);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===t)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let r=new te(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let r=this.canSelectItem(t)?new te([t],t,t):new te;this.state.setSelectedKeys(r)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new te;for(let r of e){let i=this.getKey(r);if(i!=null&&(t.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);(l==null?void 0:l.type)==="item"&&e.push(r);var o;l!=null&&l.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&t((o=(i=su(Di(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new te)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!(!r||!(r==null||(t=r.props)===null||t===void 0)&&t.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,r;return!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}constructor(e,t,r){this.collection=e,this.state=t;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function go(n){let[e,t]=cn(n.isOpen,n.defaultOpen||!1,n.onOpenChange);const r=a.useCallback(()=>{t(!0)},[t]),i=a.useCallback(()=>{t(!1)},[t]),o=a.useCallback(()=>{t(!e)},[t,e]);return{isOpen:e,setOpen:t,open:r,close:i,toggle:o}}function Cu(n){let e=go(n),[t,r]=a.useState(null),[i,o]=a.useState([]),l=()=>{o([]),e.close()};return{focusStrategy:t,...e,open(c=null){r(c),e.open()},toggle(c=null){r(c),e.toggle()},close(){l()},expandedKeysStack:i,openSubmenu:(c,d)=>{o(h=>d>h.length?h:[...h.slice(0,d),c])},closeSubmenu:(c,d)=>{o(h=>h[d]===c?h.slice(0,d):h)}}}class ku{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||t.has(s.key)))for(let u of s.childNodes)r(u)};for(let s of e)r(s);let i=null,o=0;for(let[s,u]of this.keyMap)i?(i.nextKey=s,u.prevKey=i.key):(this.firstKey=s,u.prevKey=void 0),u.type==="item"&&(u.index=o++),i=u,i.nextKey=void 0;var l;this.lastKey=(l=i==null?void 0:i.key)!==null&&l!==void 0?l:null}}function Tu(n){let{onExpandedChange:e}=n,[t,r]=cn(n.expandedKeys?new Set(n.expandedKeys):void 0,n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,e),i=ho(n),o=a.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),l=lu(n,a.useCallback(u=>new ku(u,{expandedKeys:t}),[t]),null);return a.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:t,disabledKeys:o,toggleKey:u=>{r(Ku(t,u))},setExpandedKeys:r,selectionManager:new vo(l,i)}}function Ku(n,e){let t=new Set(n);return t.has(e)?t.delete(e):t.add(e),t}const Du=a.createContext({}),Mu=a.createContext({}),_u=a.createContext({placement:"bottom"}),bo=a.createContext(null);function Lu(n,e){[n,e]=Qe(n,e,bo);let t=a.useContext($o),r=go(n),i=n.isOpen!=null||n.defaultOpen!=null||!t?r:t,o=ks(e,i.isOpen)||n.isExiting||!1;if(Bl()){let s=n.children;return typeof s=="function"&&(s=s({trigger:n.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),a.createElement(a.Fragment,null,s)}return i&&!i.isOpen&&!o?null:a.createElement(Au,{...n,triggerRef:n.triggerRef,state:i,popoverRef:e,isExiting:o})}const Fu=a.forwardRef(Lu);function Au({state:n,isExiting:e,UNSTABLE_portalContainer:t,...r}){let i=a.useRef(null),[o,l]=a.useState(0);O(()=>{i.current&&n.isOpen&&l(i.current.getBoundingClientRect().width)},[n.isOpen,i]);var s;let{popoverProps:u,underlayProps:c,arrowProps:d,placement:h}=Wa({...r,offset:(s=r.offset)!==null&&s!==void 0?s:8,arrowSize:o},n),v=r.popoverRef,p=Cs(v,!!h)||r.isEntering||!1,b=Ie({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:h,isEntering:p,isExiting:e}}),S={...u.style,...b.style};return a.createElement(Ya,{...r,isExiting:e,portalContainer:t},!r.isNonModal&&n.isOpen&&a.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),a.createElement("div",{...z(Ee(r),u),...b,ref:v,slot:r.slot||void 0,style:S,"data-trigger":r.trigger,"data-placement":h,"data-entering":p||void 0,"data-exiting":e||void 0},!r.isNonModal&&a.createElement(tr,{onDismiss:n.close}),a.createElement(_u.Provider,{value:{...d,placement:h,ref:i}},b.children),a.createElement(tr,{onDismiss:n.close})))}const Ru=a.createContext({}),yo=a.createContext(null),mn=a.createContext(null),mo=a.createContext(null),bt=a.createContext(null);function Nu(n){let e=Cu(n),t=a.useRef(null),{menuTriggerProps:r,menuProps:i}=du({...n,type:"menu"},e,t),[o,l]=a.useState(null),s=a.useCallback(()=>{t.current&&l(t.current.offsetWidth+"px")},[t]);Ht({ref:t,onResize:s});let u=a.useRef(null);return a.createElement($t,{values:[[yo,{...i,ref:u}],[$o,e],[mo,e],[bo,{trigger:"MenuTrigger",triggerRef:t,scrollRef:u,placement:"bottom start",style:{"--trigger-width":o}}]]},a.createElement(Is,{...r,ref:t,isPressed:e.isOpen},n.children))}const Iu=a.createContext(null);function Bu(n,e){return[n,e]=Qe(n,e,yo),a.createElement(fs,{content:a.createElement($s,n)},t=>t.size>0&&a.createElement(Ou,{props:n,collection:t,menuRef:e}))}function Ou({props:n,collection:e,menuRef:t}){let r=Tu({...n,collection:e,children:void 0}),i=a.useContext(mo),{isVirtualized:o,CollectionRoot:l}=a.useContext(Cr),{menuProps:s}=fu({...n,isVirtualized:o,onClose:n.onClose||(i==null?void 0:i.close)},r,t),u=Ie({defaultClassName:"react-aria-Menu",className:n.className,style:n.style,values:{}});return a.createElement(Or,null,a.createElement("div",{...Ee(n),...s,...u,ref:t,slot:n.slot||void 0,onScroll:n.onScroll},a.createElement($t,{values:[[mn,r],[Mu,{elementType:"div"}],[Ss,{name:"MenuSection",render:zu}],[Iu,{parentMenuRef:t}],[on,null],[bt,r.selectionManager]]},a.createElement(l,{collection:e,persistedKeys:ws(r.selectionManager.focusedKey),scrollRef:t}))))}const Hu=a.forwardRef(Bu);class ju extends vo{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}}function zu(n,e,t,r="react-aria-MenuSection"){var i,o;let l=a.useContext(mn),{CollectionBranch:s}=a.useContext(Cr),[u,c]=Ps();var d;let{headingProps:h,groupProps:v}=hu({heading:c,"aria-label":(d=t.props["aria-label"])!==null&&d!==void 0?d:void 0}),p=Ie({defaultClassName:r,className:(i=t.props)===null||i===void 0?void 0:i.className,style:(o=t.props)===null||o===void 0?void 0:o.style,values:{}}),b=a.useContext(bt),S=ho(n),m=n.selectionMode!=null?new ju(b,S):b;return a.createElement("section",{...Ee(n),...v,...p,ref:e},a.createElement($t,{values:[[Du,{...h,ref:u}],[bt,m]]},a.createElement(s,{collection:l.collection,parent:t})))}const on=a.createContext(null),Vu=ys("item",function(e,t,r){var i;[e,t]=Qe(e,t,on);let o=(i=kr(on))===null||i===void 0?void 0:i.id,l=a.useContext(mn),s=an(t),u=a.useContext(bt),{menuItemProps:c,labelProps:d,descriptionProps:h,keyboardShortcutProps:v,...p}=pu({...e,id:o,key:r.key,selectionManager:u},l,s),{isFocusVisible:b,focusProps:S}=yn(),{hoverProps:m,isHovered:P}=xt({isDisabled:p.isDisabled}),k=Ie({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:P,isFocusVisible:b,selectionMode:u.selectionMode,selectionBehavior:u.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),w=e.href?"a":"div";return a.createElement(w,{...z(c,S,m),...k,ref:s,"data-disabled":p.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":b||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.isSelected||void 0,"data-selection-mode":u.selectionMode==="none"?void 0:u.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},a.createElement($t,{values:[[wu,{slots:{label:d,description:h}}],[Ru,v]]},k.children))}),$o=a.createContext(null),Uu='"../../../theme/src/lib/tokens.css"',Wu="#143c50",Gu="#25607f",qu="#4289ad",Zu='"Inter", sans-serif',Yu="1rem",Xu="500",Ju="#ffffff",Qu="#bfbfbf",ec="#f2f2f2",tc="#e6e6e6",nc="#000000",rc="undefined",ic="0 0 0 2px #ffffff, 0 0 0 4px #000000",oc="(max-width: 767px)",lc="#e62323",sc="#b31b1b",ac="#801313",uc="_linkButton_13utk_4",cc="_secondary_13utk_43",dc="_tertiary_13utk_67",fc="_danger_13utk_88",pc="_iconBtn_13utk_110",hc="_iconLeft_13utk_131",vc="_fullwidth_13utk_135",gc="_button_13utk_140",X={tokens:Uu,blue150:Wu,blue130:Gu,blue90:qu,display:Zu,desktopSize:Yu,mediumWeight:Xu,white:Ju,gray50:Qu,gray10:ec,gray20:tc,black:nc,medium:rc,focus:ic,smBreakpoint:oc,signalRed100:lc,signalRed130:sc,signalRed150:ac,linkButton:uc,secondary:cc,tertiary:dc,danger:fc,iconBtn:pc,iconLeft:hc,fullwidth:vc,button:gc},bc=({children:n,variant:e,fullwidth:t,icon:r,iconPlacement:i,className:o,as:l,...s})=>{const u=l||bu,c=()=>r?E.jsx(r,{size:20,className:X.icon}):s.target==="_blank"?E.jsx(El,{size:20,className:X.icon}):i==="left"?E.jsx(bl,{size:20,className:X.icon}):E.jsx(yl,{size:20,className:X.icon});return E.jsxs(u,{className:ie(X.linkButton,e==="primary"&&X.primary,e==="secondary"&&X.secondary,e==="tertiary"&&X.tertiary,e==="danger"&&X.danger,e==="icon"&&X.iconBtn,t&&X.fullwidth,i==="left"&&X.iconLeft,o),...s,children:[n,E.jsx(c,{})]})},yc='"../../../theme/src/lib/tokens.css"',mc="#143c50",$c="#25607f",xc="#4289ad",Sc='"Inter", sans-serif',Ec="1rem",wc="500",Pc="#ffffff",Cc="#bfbfbf",kc="#f2f2f2",Tc="#e6e6e6",Kc="#000000",Dc="undefined",Mc="(max-width: 767px)",_c="0 0 0 2px #ffffff, 0 0 0 4px #000000",Lc="#e62323",Fc="#b31b1b",Ac="#801313",Rc="_button_1piql_4",Nc="_primary_1piql_36",Ic="_secondary_1piql_42",Bc="_tertiary_1piql_66",Oc="_iconBtn_1piql_88",Hc="_danger_1piql_109",jc="_iconRight_1piql_131",zc="_fullwidth_1piql_135",Vc="_small_1piql_139",pe={tokens:yc,blue150:mc,blue130:$c,blue90:xc,display:Sc,desktopSize:Ec,mediumWeight:wc,white:Pc,gray50:Cc,gray10:kc,gray20:Tc,black:Kc,medium:Dc,smBreakpoint:Mc,focus:_c,signalRed100:Lc,signalRed130:Fc,signalRed150:Ac,button:Rc,primary:Nc,secondary:Ic,tertiary:Bc,iconBtn:Oc,danger:Hc,iconRight:jc,fullwidth:zc,small:Vc},$n=({variant:n="primary",fullwidth:e,className:t,iconPlacement:r,size:i,icon:o,iconSize:l,...s})=>{const u=i==="small"?14:l||20;return E.jsx(Eu,{className:ie(pe.button,n==="primary"&&pe.primary,n==="secondary"&&pe.secondary,n==="tertiary"&&pe.tertiary,n==="danger"&&pe.danger,n==="icon"&&pe.iconBtn,e&&pe.fullwidth,i==="small"&&pe.small,r==="right"&&pe.iconRight,t),...s,children:E.jsxs(E.Fragment,{children:[o&&E.jsx(o,{"aria-hidden":!0,size:u}),s.children]})})},Uc='"../../../theme/src/lib/tokens.css"',Wc="(min-width: 768px)",Gc="(min-width: 1200px)",qc="(min-width: 1440px)",Zc="_container_xfusy_4",Yc="_flex_xfusy_16",Xc="_fluid_xfusy_54",Jc="_col_xfusy_60",Bt={tokens:Uc,mdBreakpoint:Wc,lgBreakpoint:Gc,xlBreakpoint:qc,container:Zc,flex:Yc,fluid:Xc,col:Jc,"col-1":"_col-1_xfusy_64","col-2":"_col-2_xfusy_65","col-3":"_col-3_xfusy_66","col-4":"_col-4_xfusy_67","col-5":"_col-5_xfusy_68","col-6":"_col-6_xfusy_69","col-7":"_col-7_xfusy_70","col-8":"_col-8_xfusy_71","col-9":"_col-9_xfusy_72","col-10":"_col-10_xfusy_73","col-11":"_col-11_xfusy_74","col-12":"_col-12_xfusy_75","col-auto":"_col-auto_xfusy_76","offset-1":"_offset-1_xfusy_130","offset-2":"_offset-2_xfusy_134","offset-3":"_offset-3_xfusy_138","offset-4":"_offset-4_xfusy_142","offset-5":"_offset-5_xfusy_146","offset-6":"_offset-6_xfusy_150","offset-7":"_offset-7_xfusy_154","offset-8":"_offset-8_xfusy_158","offset-9":"_offset-9_xfusy_162","offset-10":"_offset-10_xfusy_166","offset-11":"_offset-11_xfusy_170"},Qc=({children:n,col:e,offset:t,...r})=>{const i=e?`col-${e}`:"",o=t?`offset-${t}`:"";return E.jsx("div",{className:ie(Bt.col,Bt[i],Bt[o],r.className),...r,children:n})},ed='"../../../theme/src/lib/tokens.css"',td="#b90835",nd="#000000",rd="#5d5d5d",id="#ffffff",od="_container_kepty_4",ld="_noPadding_kepty_9",sd="_logo_kepty_13",ad="_primary_kepty_18",ud="_dark_kepty_22",cd="_xSmall_kepty_26",dd="_small_kepty_30",fd="_large_kepty_34",pd="_backgroundPrimary_kepty_38",hd="_backgroundDark_kepty_46",ee={tokens:ed,red100:td,black:nd,gray130:rd,white:id,container:od,noPadding:ld,logo:sd,primary:ad,dark:ud,xSmall:cd,small:dd,large:fd,backgroundPrimary:pd,backgroundDark:hd},vd=({primary:n=!0,size:e="medium",background:t=!1,padding:r=!0,...i})=>{const o=ie(ee.logo,n?ee.primary:ee.dark,e==="x-small"&&ee.xSmall,e==="small"&&ee.small,e==="medium"&&ee.medium,e==="large"&&ee.large),l=()=>e==="x-small"?E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 92",className:o,role:"img","aria-hidden":"false",focusable:"false","aria-label":"Migrationsverkets logotyp",children:E.jsx("path",{d:"M99.99,91.69c-1.84-1.11-4.05-4.55-4.05-9.46V9.15c0-4.79,1.96-7.25,3.81-8.85h-14.75l-33.91,65.47L12.41.3H0c1.6,1.59,3.93,3.07,3.93,8.23v75.55c0,3.56-2.21,6.51-3.81,7.61h16.34c-1.72-1.22-3.93-4.18-3.93-7.98V25.97l36.24,61.42,33.04-63.26v58.96c0,5.53-2.21,7.61-3.81,8.6h21.99Z"})}):E.jsxs("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 112 40",className:o,"aria-hidden":"false",focusable:"false","aria-label":"Migrationsverkets logotyp",children:[E.jsx("path",{d:"M97.78,21.61c-7.48-9.73-20.06-16.03-34.32-16.03-13.07,0-24.86,5.27-32.46,13.65,6.56-5.83,15.64-9.44,25.66-9.44,11.37,0,21.52,4.56,28.18,11.83h12.94Z"}),E.jsx("path",{d:"M90.45,12.58C70.67-1.51,41.26,2.77,27.49,21.61h-12.23C30.56-2.89,68.29-7.47,90.45,12.58h0Z"}),E.jsx("path",{d:"M11.89,37.13c-.22-.13-.48-.53-.48-1.11v-8.58c0-.56.23-.85.45-1.04h-1.73l-3.98,7.69-4.54-7.69H.15c.19.19.46.36.46.97v8.87c0,.42-.26.76-.45.89h1.92c-.2-.14-.46-.49-.46-.94v-6.78l4.25,7.21,3.88-7.43v6.92c0,.65-.26.89-.45,1.01h2.58Z"}),E.jsx("path",{d:"M15.81,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM16.22,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z","fill-rule":"evenodd"}),E.jsx("path",{d:"M24.52,30.97c-.04-.33-.17-.68-.37-.95h-1.36c-.29-.26-.87-.58-1.96-.58-1.53,0-2.8.92-2.8,2.58,0,1.02.52,1.86,1.31,2.26-.43.37-1.38.98-1.38,1.61,0,.71.79.99,1.38,1.1-.88.26-1.67.82-1.67,1.59,0,1.14,1.73,1.41,2.64,1.41,1.54,0,3.91-.78,3.91-2.64,0-1.21-1.23-1.49-2.22-1.5-2.42-.06-2.51-.2-2.51-.56,0-.2.42-.68.55-.81.23.03.48.06.71.06,1.76,0,2.93-.94,2.93-2.7,0-.48-.14-.91-.29-1.11.12-.04.25-.04.37-.04.27,0,.55.12.76.27h0ZM22.27,32.21c0,.79-.37,1.61-1.36,1.61-1.07,0-1.47-1.21-1.47-2.09,0-.95.5-1.57,1.31-1.57,1.2,0,1.51,1.25,1.51,2.05h0ZM22.89,37.92c0,.76-.82,1.31-1.93,1.31-.59,0-1.7-.3-1.69-1.15,0-.45.26-.74.59-.99l1.96.04c.5.01,1.07.1,1.07.79h0Z","fill-rule":"evenodd"}),E.jsx("path",{d:"M30.11,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z"}),E.jsx("path",{d:"M36.87,37.13c-.37-.33-.43-.59-.43-1.25v-3.89c0-2.21-1.43-2.55-2.8-2.55-.61,0-1.67.22-2.03.42-.2.4-.3,1.24-.4,1.67.46-.56,1.27-1.37,2.39-1.37,1.18,0,1.36.82,1.36,1.7v.39l-2.21.76c-1.04.36-1.87,1.08-1.87,2.26,0,1.31.88,2.08,2.15,2.08.87,0,1.46-.43,1.93-.94v.72h1.92ZM34.95,35.62c-.26.32-.74.85-1.37.85-.75,0-1.18-.79-1.18-1.54,0-.71.35-1.15.89-1.37l1.66-.63v2.7h0Z","fill-rule":"evenodd"}),E.jsx("path",{d:"M42.58,36.15c-.29.27-.71.46-1.11.46-.87,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z"}),E.jsx("path",{d:"M45.63,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM46.04,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z","fill-rule":"evenodd"}),E.jsx("path",{d:"M54.96,33.37c0-2.06-1.3-3.95-3.5-3.95s-3.84,1.76-3.84,4.01c0,2.06,1.28,3.95,3.49,3.95s3.85-1.76,3.85-4.01h0ZM53.43,34.04c0,1.27-.52,2.57-1.86,2.57-1.79,0-2.42-2.44-2.42-3.86,0-1.21.48-2.57,1.87-2.57,1.79,0,2.41,2.44,2.41,3.86h0Z","fill-rule":"evenodd"}),E.jsx("path",{d:"M63.37,37.13c-.27-.22-.45-.42-.45-1.11v-3.94c0-1.63-.39-2.64-2.18-2.64-1.01,0-1.79.56-2.38,1.12v-.91h-1.98c.3.17.49.46.49,1.05v5.33c0,.59-.14.88-.48,1.08h2.39c-.23-.23-.43-.37-.43-1.17v-4.4c.32-.45,1.07-1.24,1.85-1.24,1.01,0,1.23,1.01,1.23,1.8v3.95c0,.74-.26.87-.46,1.05h2.39Z"}),E.jsx("path",{d:"M69.79,35.2c0-2.21-3.42-2.71-3.42-4.07,0-.75.71-.98,1.34-.98s1.33.29,1.74.81l-.07-1.18c-.46-.17-1.11-.35-1.69-.35-1.44,0-2.68.63-2.68,1.89,0,2.36,3.46,2.68,3.46,4.25,0,.79-.62,1.05-1.31,1.05-1.01,0-1.86-.46-2.52-1.21v.1c0,.4-.03.99.3,1.27.53.43,1.53.56,2.18.56,1.36,0,2.67-.62,2.67-2.15h0Z","fill-rule":"evenodd"}),E.jsx("path",{d:"M77.98,29.66h-1.43c.13.1.11.56-.19,1.33l-1.86,4.72-1.87-4.7c-.26-.65-.32-1.15-.16-1.34h-2.06c.19.1.49.85.82,1.67l2.31,5.8h1.31l2.35-5.97c.32-.81.56-1.36.78-1.5h0Z"}),E.jsx("path",{d:"M84.91,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM83.34,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z","fill-rule":"evenodd"}),E.jsx("path",{d:"M90.95,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z"}),E.jsx("path",{d:"M99.79,37.16c-2.26-.37-2.49-4.04-4.7-4.04l2.62-2.8c.22-.23.5-.48.75-.66h-1.77c.14.14.13.39-.13.66l-2.65,2.83v-7.07h-1.98c.33.2.49.56.49,1.01v9.01c0,.58-.22.81-.46,1.02h2.35c-.26-.25-.4-.49-.4-1.02v-2.57c.27,0,.62.13.82.26,1.28.82,1.95,3.11,2.67,3.45.14.07.94.1,1.14.1.45,0,.84-.03,1.25-.19h0Z"}),E.jsx("path",{d:"M106.3,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM104.73,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z","fill-rule":"evenodd"}),E.jsx("path",{d:"M111.85,36.15c-.29.27-.71.46-1.11.46-.86,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z"})]});return E.jsx("div",{className:ie(ee.container,r===!1&&ee.noPadding,t?n?ee.backgroundPrimary:ee.backgroundDark:null),...i,children:E.jsx(l,{})})},G={white:"#ffffff",black:"#000000",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray130:"#5d5d5d",gray150:"#1f1f1f",red10:"#f7e9e7",red20:"#f1d4d1",red30:"#e9beba",red40:"#e2a8a4",red50:"#d9918e",red60:"#d37a7a",red70:"#cc6467",red80:"#c54c56",red90:"#be3345",red100:"#b90835",red130:"#8b1327",red150:"#641018",blue10:"#eaf2f6",blue20:"#d5e5ed",blue30:"#c0d7e4",blue40:"#abcbdb",blue50:"#94bcd1",blue60:"#82b0c9",blue70:"#6ca3c0",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue130:"#25607f",blue150:"#143c50"},gd={signalGreen10:"#d5f2d9",signalGreen100:"#008d3c",signalBlue10:G.blue10,signalBlue100:"#0066cc",signalYellow10:"#fff8e1",signalYellow100:"#f1c21b",signalRed10:"#ffdfdf",signalRed100:"#e62323",signalRed130:"#b31b1b",signalRed150:"#801313"},bd={logoPrimary:G.red100,logoSecondary:G.white,textPrimary:G.gray150,textSecondary:G.white,textTertiary:G.red100,link:G.blue130,linkVisited:"#663366",backgroundPrimary:G.white,backgroundSecondary:G.gray10,backgroundFooter1:G.red100,backgroundFooter2:G.red130,backgroundInfo:G.blue10,backgroundImportant:gd.signalYellow10,borderPrimary:G.black,borderSecondary:G.gray60,borderFocusOuter:G.black,borderFocusInner:G.white,iconPrimary:G.black,iconInverted:G.white},yd='"../../../theme/src/lib/tokens.css"',md='"Inter", sans-serif',$d="0 0 0 2px #ffffff, 0 0 0 4px #000000",xd="#f2f2f2",Sd="_dropDownMenu_tm2mz_4",Ed="_dropdownMenu_tm2mz_15",xo={tokens:yd,display:md,focus:$d,gray10:xd,dropDownMenu:Sd,dropdownMenu:Ed};function wd({label:n,title:e,children:t,...r}){return E.jsxs(Nu,{...r,children:[E.jsxs($n,{"aria-label":n,variant:"icon",children:[e,E.jsx(ml,{size:20,"aria-hidden":!0})]}),E.jsx(Fu,{children:E.jsx(Hu,{...r,className:xo.dropDownMenu,children:t})})]})}function Pd(n){const e=n.textValue||(typeof n.children=="string"?n.children:void 0);return E.jsx(Vu,{...n,textValue:e,className:({isFocused:t,isOpen:r})=>`${xo.dropdownMenu} ${t?"focused":""} ${r?"open":""}`,children:({hasSubmenu:t})=>E.jsxs(E.Fragment,{children:[n.children,t&&E.jsx("svg",{className:"chevron",viewBox:"0 0 24 24",children:E.jsx("path",{d:"m9 18 6-6-6-6"})})]})})}const Cd=({items:n,title:e,user:t,app:r,children:i,headerChildren:o,clientSideRouter:l})=>{const[s,u]=a.useState(!1),[c,d]=a.useState(!1);return a.useEffect(()=>{const h=v=>{v.key==="Escape"&&d(!1)};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h)}},[]),E.jsxs("div",{className:R.baseLayout,children:[E.jsx(Eo,{title:e,headerChildren:o,user:t,app:r,isOpened:c,setIsOpened:d,setIsCollapsed:u}),E.jsxs("div",{className:R.mainContent,children:[E.jsx(So,{items:n,app:r,isOpened:c,isCollapsed:s,setIsCollapsed:u,clientSideRouter:l}),E.jsx(Qc,{children:E.jsx("main",{className:R.main,children:E.jsx("div",{className:R.app,children:i})})}),E.jsx("div",{className:ie(R.backdrop,c&&R.backdropOpened),onClick:()=>d(!1),"aria-hidden":!0})]})]})},So=({items:n,app:e,isOpened:t,isCollapsed:r,setIsCollapsed:i,clientSideRouter:o})=>{const l=()=>E.jsx("div",{className:R.sidebarHeader,children:r?E.jsx("p",{className:R.name,children:e.shortName}):E.jsx("p",{className:R.abbr,children:e.name})}),s=({group:u})=>E.jsx("ul",{className:R.list,children:u.items.map((c,d)=>E.jsx("li",{className:ie(R.listItem,r&&R.listItemCollapsed),children:E.jsx(bc,{iconPlacement:"left",href:c.href,icon:c.icon,className:ie(R.listLink,r&&R.listLinkCollapsed),variant:"tertiary",children:E.jsx("span",{className:ie(R.linkText,r&&R.linkTextCollapsed),children:c.title})})},"link_"+d))});return E.jsxs("aside",{id:"midasMainMenu",className:ie(R.sidebar,r&&R.sidebarCollapsed,t&&R.sidebarOpened),children:[E.jsx(l,{}),E.jsx("nav",{className:R.sidebarNav,children:E.jsx("ul",{className:R.list,children:n.map((u,c)=>E.jsxs("li",{children:[u.title&&!r&&E.jsx("p",{className:R.listGroupTitle,children:u.title}),o?E.jsx(ts,{navigate:o,children:E.jsx(s,{group:u})}):E.jsx(s,{group:u})]},"list_"+c))})}),E.jsx("div",{className:R.sidebarFooter,children:E.jsx($n,{variant:"tertiary","aria-label":r?"Maximera sidomenyn":"Minimera sidomenyn",onPress:()=>i(!r),className:R.collapseButton,children:r?E.jsx(Sl,{}):E.jsx(xl,{})})})]})},Eo=({title:n,user:e,app:t,headerChildren:r,isOpened:i,setIsOpened:o,setIsCollapsed:l})=>E.jsxs("header",{className:R.header,style:{borderTop:`solid 4px ${t.color?t.color:bd.logoPrimary}`},children:[E.jsxs("div",{className:R.headerContent,children:[E.jsx(vd,{padding:!1,size:"small",className:R.logo}),i!==void 0&&l&&o&&E.jsx($n,{variant:"icon",className:R.toggleButton,"aria-label":i?"Stäng meny":"Öppna meny","aria-controls":"midasMainMenu",onPress:()=>{l(!1),o(!i)},children:i?E.jsx(wl,{size:20,"aria-hidden":!0}):E.jsx($l,{size:20,"aria-hidden":!0})}),E.jsxs("div",{children:[E.jsx("p",{className:R.userName,children:e.name}),E.jsx("p",{className:R.userTitle,children:e.title}),E.jsx("p",{className:R.title,children:n})]})]}),E.jsx("div",{className:R.headerItems,children:r}),E.jsx("div",{className:R.headerMenu,children:E.jsx(wd,{children:a.Children.map(r,s=>E.jsx(Pd,{children:s}))})})]});exports.Header=Eo;exports.Layout=Cd;exports.Sidebar=So;
|