@servicetitan/anvil2 1.3.4 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Alert-85a791c2.js → Alert-097d82a2.js} +2 -2
- package/Alert-097d82a2.js.map +1 -0
- package/Alert-d2a2976a.cjs +2 -0
- package/Alert-d2a2976a.cjs.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.js +1 -1
- package/Announcement.cjs +1 -1
- package/Announcement.cjs.map +1 -1
- package/Announcement.js +1 -1
- package/Announcement.js.map +1 -1
- package/AnvilProvider.cjs +1 -1
- package/AnvilProvider.js +1 -1
- package/Avatar.cjs +1 -1
- package/Avatar.cjs.map +1 -1
- package/Avatar.js +14 -14
- package/Avatar.js.map +1 -1
- package/Badge.cjs.map +1 -1
- package/Badge.js +7 -7
- package/Badge.js.map +1 -1
- package/Button.cjs +1 -1
- package/Button.js +1 -1
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.js +1 -1
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.js +1 -1
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.js +1 -1
- package/Calendar.cjs +1 -1
- package/Calendar.cjs.map +1 -1
- package/Calendar.js +935 -936
- package/Calendar.js.map +1 -1
- package/Card.cjs.map +1 -1
- package/Card.js.map +1 -1
- package/{Checkbox-d1db5a71.cjs → Checkbox-38b018dd.cjs} +2 -2
- package/Checkbox-38b018dd.cjs.map +1 -0
- package/{Checkbox-634c4d3d.js → Checkbox-80900b39.js} +3 -3
- package/Checkbox-80900b39.js.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.js +5 -5
- package/{Chip-73b032eb.js → Chip-68233f63.js} +3 -3
- package/Chip-68233f63.js.map +1 -0
- package/Chip-c32236d6.cjs +2 -0
- package/Chip-c32236d6.cjs.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.js +1 -1
- package/Combobox.cjs +6 -6
- package/Combobox.cjs.map +1 -1
- package/Combobox.js +12 -12
- package/Combobox.js.map +1 -1
- package/Details.cjs +1 -1
- package/Details.cjs.map +1 -1
- package/Details.js +9 -9
- package/Details.js.map +1 -1
- package/{Dialog-1984afe2.js → Dialog-893ed36b.js} +3 -3
- package/Dialog-893ed36b.js.map +1 -0
- package/Dialog-bf33c086.cjs +2 -0
- package/{Dialog-1984afe2.js.map → Dialog-bf33c086.cjs.map} +1 -1
- package/Dialog.cjs +1 -1
- package/Dialog.js +1 -1
- package/Divider.cjs.map +1 -1
- package/Divider.js.map +1 -1
- package/Drawer.cjs +1 -1
- package/Drawer.cjs.map +1 -1
- package/Drawer.js +8 -8
- package/Drawer.js.map +1 -1
- package/Flex-d06c75c0.js.map +1 -1
- package/Flex-da1ad9db.cjs.map +1 -1
- package/Grid.cjs.map +1 -1
- package/Grid.js.map +1 -1
- package/Icon-847b3515.cjs.map +1 -1
- package/Icon-be690f0b.js.map +1 -1
- package/InputMask.cjs +2 -0
- package/InputMask.cjs.map +1 -0
- package/InputMask.d.ts +13 -0
- package/InputMask.js +126 -0
- package/InputMask.js.map +1 -0
- package/{Label-e2593298.cjs → Label-aca119f2.cjs} +2 -2
- package/{Label-e2593298.cjs.map → Label-aca119f2.cjs.map} +1 -1
- package/{Label-854a39e4.js → Label-ed5cd8a7.js} +2 -2
- package/{Label-854a39e4.js.map → Label-ed5cd8a7.js.map} +1 -1
- package/Link.cjs +1 -1
- package/Link.js +1 -1
- package/ListView.cjs +1 -1
- package/ListView.cjs.map +1 -1
- package/ListView.js +2 -2
- package/ListView.js.map +1 -1
- package/Listbox.cjs +1 -1
- package/Listbox.cjs.map +1 -1
- package/Listbox.js +10 -10
- package/Listbox.js.map +1 -1
- package/LocalizationProvider.cjs.map +1 -1
- package/LocalizationProvider.js.map +1 -1
- package/Menu.cjs +1 -1
- package/Menu.cjs.map +1 -1
- package/Menu.js +28 -28
- package/Menu.js.map +1 -1
- package/{Overflow-a026904d.js → Overflow-a2f48366.js} +2 -2
- package/Overflow-a2f48366.js.map +1 -0
- package/{Overflow-057bbf4e.cjs → Overflow-b4d706e8.cjs} +2 -2
- package/Overflow-b4d706e8.cjs.map +1 -0
- package/Overflow.cjs +1 -1
- package/Overflow.js +15 -15
- package/Page.cjs +1 -1
- package/Page.cjs.map +1 -1
- package/Page.js +6 -5
- package/Page.js.map +1 -1
- package/Popover-44119105.js +276 -0
- package/Popover-44119105.js.map +1 -0
- package/Popover-665147d6.cjs +2 -0
- package/Popover-665147d6.cjs.map +1 -0
- package/Popover.cjs +1 -1
- package/Popover.js +15 -15
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.cjs.map +1 -1
- package/ProgressBar.js +1 -1
- package/ProgressBar.js.map +1 -1
- package/Radio.cjs +1 -1
- package/Radio.cjs.map +1 -1
- package/Radio.js +25 -25
- package/Radio.js.map +1 -1
- package/SegmentedControl.cjs +1 -1
- package/SegmentedControl.cjs.map +1 -1
- package/SegmentedControl.js +28 -28
- package/SegmentedControl.js.map +1 -1
- package/SideNav.cjs +1 -1
- package/SideNav.cjs.map +1 -1
- package/SideNav.js +10 -10
- package/SideNav.js.map +1 -1
- package/SrOnly-0c7fd87a.js.map +1 -1
- package/SrOnly-91a467dc.cjs.map +1 -1
- package/Stepper.cjs +1 -1
- package/Stepper.cjs.map +1 -1
- package/Stepper.js +12 -12
- package/Stepper.js.map +1 -1
- package/Switch.cjs.map +1 -1
- package/Switch.js.map +1 -1
- package/Tab.cjs +1 -1
- package/Tab.cjs.map +1 -1
- package/Tab.js +14 -14
- package/Tab.js.map +1 -1
- package/Text-08c90c22.js.map +1 -1
- package/Text-8ed03ac7.cjs.map +1 -1
- package/TextField-7d04b45f.js +142 -0
- package/TextField-7d04b45f.js.map +1 -0
- package/TextField-bd5f664e.cjs +2 -0
- package/TextField-bd5f664e.cjs.map +1 -0
- package/TextField.cjs +1 -1
- package/TextField.cjs.map +1 -1
- package/TextField.css +1 -0
- package/TextField.js +21 -156
- package/TextField.js.map +1 -1
- package/Textarea.cjs +1 -1
- package/Textarea.cjs.map +1 -1
- package/Textarea.js +30 -30
- package/Textarea.js.map +1 -1
- package/ThemeProvider.cjs +1 -1
- package/ThemeProvider.js +1 -1
- package/Toast.cjs +3 -3
- package/Toast.cjs.map +1 -1
- package/Toast.js +9 -9
- package/Toast.js.map +1 -1
- package/{Tooltip-dcc5d45c.js → Tooltip-13761a78.js} +28 -28
- package/Tooltip-13761a78.js.map +1 -0
- package/Tooltip-ea2b58dc.cjs +2 -0
- package/Tooltip-ea2b58dc.cjs.map +1 -0
- package/Tooltip.cjs +1 -1
- package/Tooltip.js +1 -1
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +19 -0
- package/anvil2.js +110 -105
- package/anvil2.js.map +1 -1
- package/{index-11b6ca91-d30fd1d3.cjs → index-16923f36-13f8775f.cjs} +2 -2
- package/index-16923f36-13f8775f.cjs.map +1 -0
- package/{index-11b6ca91-14b4e485.js → index-16923f36-b76f5ccb.js} +6 -6
- package/index-16923f36-b76f5ccb.js.map +1 -0
- package/{index-04060912.js → index-204e7e78.js} +1115 -1062
- package/index-204e7e78.js.map +1 -0
- package/{index-902bf2b0.js → index-3df95505.js} +4 -4
- package/index-3df95505.js.map +1 -0
- package/index-628a2685.cjs +5 -0
- package/index-628a2685.cjs.map +1 -0
- package/{index-dcf78e3f.cjs → index-98c0e500.cjs} +2 -2
- package/index-98c0e500.cjs.map +1 -0
- package/{index-eb2e706f-03380994.js → index-f6869ed6-10ae0c3c.js} +2 -2
- package/index-f6869ed6-10ae0c3c.js.map +1 -0
- package/{index-eb2e706f-ff6c4157.cjs → index-f6869ed6-8e47d5d4.cjs} +2 -2
- package/index-f6869ed6-8e47d5d4.cjs.map +1 -0
- package/index21.css +1 -1
- package/index22.css +1 -1
- package/index23.css +1 -1
- package/package.json +2 -2
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.js +1 -1
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.cjs.map +1 -1
- package/useMergeRefs.js +9 -2
- package/useMergeRefs.js.map +1 -1
- package/Alert-673d75aa.cjs +0 -2
- package/Alert-673d75aa.cjs.map +0 -1
- package/Alert-85a791c2.js.map +0 -1
- package/Checkbox-634c4d3d.js.map +0 -1
- package/Checkbox-d1db5a71.cjs.map +0 -1
- package/Chip-73b032eb.js.map +0 -1
- package/Chip-88873569.cjs +0 -2
- package/Chip-88873569.cjs.map +0 -1
- package/Dialog-de6969a2.cjs +0 -2
- package/Dialog-de6969a2.cjs.map +0 -1
- package/Overflow-057bbf4e.cjs.map +0 -1
- package/Overflow-a026904d.js.map +0 -1
- package/Popover-aaeea980.js +0 -272
- package/Popover-aaeea980.js.map +0 -1
- package/Popover-e336dabc.cjs +0 -2
- package/Popover-e336dabc.cjs.map +0 -1
- package/Tooltip-2ecbf35e.cjs +0 -2
- package/Tooltip-2ecbf35e.cjs.map +0 -1
- package/Tooltip-dcc5d45c.js.map +0 -1
- package/index-04060912.js.map +0 -1
- package/index-11b6ca91-14b4e485.js.map +0 -1
- package/index-11b6ca91-d30fd1d3.cjs.map +0 -1
- package/index-40821bc4.cjs +0 -2
- package/index-40821bc4.cjs.map +0 -1
- package/index-49242812.js +0 -59
- package/index-49242812.js.map +0 -1
- package/index-69174413.cjs +0 -5
- package/index-69174413.cjs.map +0 -1
- package/index-902bf2b0.js.map +0 -1
- package/index-dcf78e3f.cjs.map +0 -1
- package/index-eb2e706f-03380994.js.map +0 -1
- package/index-eb2e706f-ff6c4157.cjs.map +0 -1
- package/index24.css +0 -1
- /package/{index-eb2e706f.css → index-f6869ed6.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index23.css";
|
|
2
2
|
import { f as p } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
3
3
|
import * as y from "react";
|
|
4
4
|
import { forwardRef as _ } from "react";
|
|
@@ -42,7 +42,7 @@ const v = "_link_1ur2o_4", g = "_secondary_1ur2o_36", w = "_quiet_1ur2o_45", e =
|
|
|
42
42
|
);
|
|
43
43
|
});
|
|
44
44
|
x.displayName = "Link";
|
|
45
|
-
const
|
|
45
|
+
const E = (r) => {
|
|
46
46
|
const { layoutStyles: t, componentProps: o } = h(r), { className: a, appearance: s = "primary", quiet: n, style: c } = o, i = d([e.link], a, {
|
|
47
47
|
[e.quiet]: n,
|
|
48
48
|
[e.secondary]: s === "secondary"
|
|
@@ -50,7 +50,7 @@ const H = (r) => {
|
|
|
50
50
|
return { linkClassNames: i, styleCombined: m };
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
E as R,
|
|
54
54
|
x as q
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=index-
|
|
56
|
+
//# sourceMappingURL=index-3df95505.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-3df95505.js","sources":["../node_modules/@servicetitan/hammer-react/dist/Link.js"],"sourcesContent":["import \"./index19.css\";\nimport { j as p } from \"./jsx-runtime-944c88e2.js\";\nimport * as y from \"react\";\nimport { forwardRef as _ } from \"react\";\nimport u from \"classnames\";\nimport { Icon as f } from \"./Icon.js\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { useLayoutPropsUtil as d } from \"./useLayoutPropsUtil.js\";\nconst v = \"_link_1ur2o_4\", g = \"_secondary_1ur2o_36\", w = \"_quiet_1ur2o_45\", e = {\n link: v,\n secondary: g,\n quiet: w\n}, x = (t) => /* @__PURE__ */ y.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...t }, /* @__PURE__ */ y.createElement(\"path\", { d: \"M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h5c.55 0 1-.45 1-1s-.45-1-1-1H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6c0-.55-.45-1-1-1s-1 .45-1 1v5c0 .55-.45 1-1 1zM14 4c0 .55.45 1 1 1h2.59l-9.13 9.13a.996.996 0 1 0 1.41 1.41L19 6.41V9c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1h-5c-.55 0-1 .45-1 1z\" })), q = _((t, s) => {\n const { layoutStyles: o, componentProps: n } = d(t), {\n children: r,\n className: c,\n appearance: a = \"primary\",\n quiet: i,\n style: l,\n ...m\n } = n, h = u([e.link], c, {\n [e.quiet]: i,\n [e.secondary]: a === \"secondary\"\n }), k = {\n ...l,\n ...o\n };\n return /* @__PURE__ */ p.jsxs(\n \"a\",\n {\n className: h,\n rel: \"noopener noreferrer\",\n \"data-anv\": \"link\",\n ref: s,\n style: k,\n ...m,\n children: [\n r,\n m.target === \"_blank\" && /* @__PURE__ */ p.jsx(f, { inherit: !0, svg: x })\n ]\n }\n );\n});\nq.displayName = \"Link\";\nconst R = (t) => {\n const { layoutStyles: s, componentProps: o } = d(t), { className: n, appearance: r = \"primary\", quiet: c, style: a } = o, i = u([e.link], n, {\n [e.quiet]: c,\n [e.secondary]: r === \"secondary\"\n }), l = Object.assign({}, a, s);\n return { linkClassNames: i, styleCombined: l };\n};\nexport {\n q as Link,\n R as useLinkStyles\n};\n//# sourceMappingURL=Link.js.map\n"],"names":["x","t","React","q","forwardRef","s","n","J","r","c","a","l","m","h","G","k","fr","C","R"],"mappings":";;;;;;;;AASK,MAAA,IAAA,iBAAA,IAAA,uBAAA,IAAA,mBAAA,IAAA;AAAA,EACL,MAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AACA,GAAAA,IAAA,CAAAC,MAAA,gBAAAC,EAAA,cAAA,OAAA,EAAA,OAAA,8BAAA,OAAA,OAAA,QAAA,OAAA,SAAA,aAAA,GAAAD,EAAA,GAAA,gBAAAC,EAAA,cAAA,QAAA,EAAA,GAAA,qTAAA,CAAA,CAAA,GAAAC,IAAAC,EAAA,CAAAH,GAAAI,MAAA;AACA,QAAA,EAAA,cAAA,GAAA,gBAAAC,EAAA,IAAAC,EAAAN,CAAA,GAAA;AAAA,IACA,UAAAO;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC,IAAA;AAAA,IACA,OAAA;AAAA,IACA,OAAAC;AAAA,IACA,GAAAC;AAAA,EACA,IAAAN,GAAAO,IAAAC,EAAA,CAAA,EAAA,IAAA,GAAAL,GAAA;AAAA,IACA,CAAA,EAAA,KAAA,GAAA;AAAA,IACA,CAAA,EAAA,SAAA,GAAAC,MAAA;AAAA,EACA,CAAA,GAAAK,IAAA;AAAA,IACA,GAAAJ;AAAA,IACA,GAAA;AAAA,EACA;AACA,SAAA,gBAAAK,EAAA;AAAA,IACA;AAAA,IACA;AAAA,MACA,WAAAH;AAAA,MACA,KAAA;AAAA,MACA,YAAA;AAAA,MACA,KAAAR;AAAA,MACA,OAAAU;AAAA,MACA,GAAAH;AAAA,MACA,UAAA;AAAA,QACAJ;AAAA,QACAI,EAAA,WAAA,YAAA,gBAAAI,EAAA,IAAAC,GAAA,EAAA,SAAA,IAAA,KAAAjB,EAAA,CAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA,CAAA;AACAG,EAAA,cAAA;AACK,MAAAe,IAAA,CAAAjB,MAAA;AACL,QAAA,EAAA,cAAAI,GAAA,gBAAA,EAAA,IAAAE,EAAAN,CAAA,GAAA,EAAA,WAAAK,GAAA,YAAAE,IAAA,WAAA,OAAAC,GAAA,OAAAC,EAAA,IAAA,GAAA,IAAAI,EAAA,CAAA,EAAA,IAAA,GAAAR,GAAA;AAAA,IACA,CAAA,EAAA,KAAA,GAAAG;AAAA,IACA,CAAA,EAAA,SAAA,GAAAD,MAAA;AAAA,EACA,CAAA,GAAAG,IAAA,OAAA,OAAA,CAAA,GAAAD,GAAAL,CAAA;AACA,SAAA,EAAA,gBAAA,GAAA,eAAAM,EAAA;AACA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const $e=require("./jsx-runtime-944c88e2-2b81c205.cjs"),mr=require("./index-1f4f169d.cjs"),tn=require("./index-16923f36-13f8775f.cjs"),ve=require("react"),gr=require("react-dom"),pr=require("./index-ef2e9d11.cjs");require("./tinycolor-3b50a250.cjs");const nn=require("./useLayoutPropsUtil-cd33328b.cjs"),rn=require("./LocalizationProvider.cjs"),hr=require("./primitive-898a5f6f.cjs");function An(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=An(ve),Dn=An(gr);function Fe(e){return kn(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(kn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kn(e){return e instanceof Node||e instanceof ae(e).Node}function Y(e){return e instanceof Element||e instanceof ae(e).Element}function te(e){return e instanceof HTMLElement||e instanceof ae(e).HTMLElement}function Lt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function rt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function vr(e){return["table","td","th"].includes(Fe(e))}function Ct(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bt(e){const t=Kt(),n=Y(e)?me(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function br(e){let t=Ee(e);for(;te(t)&&!Se(t);){if(Bt(t))return t;if(Ct(t))return null;t=Ee(t)}return null}function Kt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Se(e){return["html","body","#document"].includes(Fe(e))}function me(e){return ae(e).getComputedStyle(e)}function It(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ee(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lt(e)&&e.host||Ie(e);return Lt(t)?t.host:t}function Ln(e){const t=Ee(e);return Se(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&rt(t)?t:Ln(t)}function Me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ln(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ae(o);return i?t.concat(s,s.visualViewport||[],rt(o)?o:[],s.frameElement&&n?Me(s.frameElement):[]):t.concat(o,Me(o,[],n))}function he(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ee(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Lt(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Fn(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Nn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function _n(e){return e.mozInputSource===0&&e.isTrusted?!0:Ft()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $t(e){return yr()?!1:!Ft()&&e.width===0&&e.height===0||Ft()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Ht(){return/apple/i.test(navigator.vendor)}function Ft(){const e=/android/i;return e.test(Fn())||e.test(Nn())}function Vn(){return Fn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function yr(){return Nn().includes("jsdom/")}function Qe(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function xr(e){return"nativeEvent"in e}function wr(e){return e.matches("html,body")}function ne(e){return(e==null?void 0:e.ownerDocument)||document}function Ot(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Re(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Rr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function qt(e){return te(e)&&e.matches(Rr)}function oe(e){e.preventDefault(),e.stopPropagation()}function Wn(e){return e?e.getAttribute("role")==="combobox"&&qt(e):!1}const xe=Math.min,fe=Math.max,ht=Math.round,qe=Math.floor,Ae=e=>({x:e,y:e}),Er={left:"right",right:"left",bottom:"top",top:"bottom"},Cr={start:"end",end:"start"};function Nt(e,t,n){return fe(e,xe(t,n))}function De(e,t){return typeof e=="function"?e(t):e}function Ce(e){return e.split("-")[0]}function Ge(e){return e.split("-")[1]}function jt(e){return e==="x"?"y":"x"}function zt(e){return e==="y"?"height":"width"}function ke(e){return["top","bottom"].includes(Ce(e))?"y":"x"}function Ut(e){return jt(ke(e))}function Ir(e,t,n){n===void 0&&(n=!1);const r=Ge(e),o=Ut(e),i=zt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vt(s)),[s,vt(s)]}function Tr(e){const t=vt(e);return[_t(e),t,_t(t)]}function _t(e){return e.replace(/start|end/g,t=>Cr[t])}function Or(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Pr(e,t,n,r){const o=Ge(e);let i=Or(Ce(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(_t)))),i}function vt(e){return e.replace(/left|right|bottom|top/g,t=>Er[t])}function Mr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bn(e){return typeof e!="number"?Mr(e):{top:e,right:e,bottom:e,left:e}}function bt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*!
|
|
2
|
+
* tabbable 6.2.0
|
|
3
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
+
*/var Sr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],yt=Sr.join(","),Kn=typeof Element>"u",ze=Kn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,xt=!Kn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},wt=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",s=i||n&&t&&e(t.parentNode);return s},Ar=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Dr=function(t,n,r){if(wt(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(yt));return n&&ze.call(t,yt)&&o.unshift(t),o=o.filter(r),o},kr=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!wt(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),u=c.length?c:s.children,l=e(u,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{var g=ze.call(s,yt);g&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),h=!wt(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&h){var a=e(f===!0?s.children:f.children,!0,r);r.flatten?o.push.apply(o,a):o.push({scopeParent:s,candidates:a})}else i.unshift.apply(i,s.children)}}return o},$n=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Hn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Ar(t))&&!$n(t)?0:t.tabIndex},Lr=function(t,n){var r=Hn(t);return r<0&&n&&!$n(t)?0:r},Fr=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},qn=function(t){return t.tagName==="INPUT"},Nr=function(t){return qn(t)&&t.type==="hidden"},_r=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Vr=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Wr=function(t){if(!t.name)return!0;var n=t.form||xt(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=Vr(o,t.form);return!i||i===t},Br=function(t){return qn(t)&&t.type==="radio"},Kr=function(t){return Br(t)&&!Wr(t)},$r=function(t){var n,r=t&&xt(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var s,c,u;for(i=!!((s=o)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!i&&o;){var l,g,f;r=xt(o),o=(l=r)===null||l===void 0?void 0:l.host,i=!!((g=o)!==null&&g!==void 0&&(f=g.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},on=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Hr=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=ze.call(t,"details>summary:first-of-type"),s=i?t.parentElement:t;if(ze.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var u=t.parentElement,l=xt(t);if(u&&!u.shadowRoot&&o(u)===!0)return on(t);t.assignedSlot?t=t.assignedSlot:!u&&l!==t.ownerDocument?t=l.host:t=u}t=c}if($r(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return on(t);return!1},qr=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return ze.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},jr=function(t,n){return!(n.disabled||wt(n)||Nr(n)||Hr(n,t)||_r(n)||qr(n))},Vt=function(t,n){return!(Kr(n)||Hn(n)<0||!jr(t,n))},zr=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ur=function e(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,c=s?o.scopeParent:o,u=Lr(c,s),l=s?e(o.candidates):c;u===0?s?n.push.apply(n,l):n.push(c):r.push({documentOrder:i,tabIndex:u,item:o,isScope:s,content:l})}),r.sort(Fr).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},et=function(t,n){n=n||{};var r;return n.getShadowRoot?r=kr([t],n.includeContainer,{filter:Vt.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:zr}):r=Dr(t,n.includeContainer,Vt.bind(null,n)),Ur(r)},Yr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ze.call(t,yt)===!1?!1:Vt(n,t)};function sn(e,t,n){let{reference:r,floating:o}=e;const i=ke(t),s=Ut(t),c=zt(s),u=Ce(t),l=i==="y",g=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let a;switch(u){case"top":a={x:g,y:r.y-o.height};break;case"bottom":a={x:g,y:r.y+r.height};break;case"right":a={x:r.x+r.width,y:f};break;case"left":a={x:r.x-o.width,y:f};break;default:a={x:r.x,y:r.y}}switch(Ge(t)){case"start":a[s]-=h*(n&&l?-1:1);break;case"end":a[s]+=h*(n&&l?-1:1);break}return a}const Gr=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:f}=sn(l,r,u),h=r,a={},d=0;for(let p=0;p<c.length;p++){const{name:w,fn:x}=c[p],{x:E,y:b,data:y,reset:S}=await x({x:g,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:a,rects:l,platform:s,elements:{reference:e,floating:t}});g=E??g,f=b??f,a={...a,[w]:{...a[w],...y}},S&&d<=50&&(d++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(l=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:g,y:f}=sn(l,h,u)),p=-1)}return{x:g,y:f,placement:h,strategy:o,middlewareData:a}};async function Yt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:g="viewport",elementContext:f="floating",altBoundary:h=!1,padding:a=0}=De(t,e),d=Bn(a),w=c[h?f==="floating"?"reference":"floating":f],x=bt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:g,strategy:u})),E=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:b,strategy:u}):E);return{top:(x.top-S.top+d.top)/y.y,bottom:(S.bottom-x.bottom+d.bottom)/y.y,left:(x.left-S.left+d.left)/y.x,right:(S.right-x.right+d.right)/y.x}}const Xr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:u}=t,{element:l,padding:g=0}=De(e,t)||{};if(l==null)return{};const f=Bn(g),h={x:n,y:r},a=Ut(o),d=zt(a),p=await s.getDimensions(l),w=a==="y",x=w?"top":"left",E=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[d]+i.reference[a]-h[a]-i.floating[d],S=h[a]-i.reference[a],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let _=A?A[b]:0;(!_||!await(s.isElement==null?void 0:s.isElement(A)))&&(_=c.floating[b]||i.floating[d]);const B=y/2-S/2,H=_/2-p[d]/2-1,O=xe(f[x],H),k=xe(f[E],H),M=O,P=_-p[d]-k,v=_/2-p[d]/2+B,C=Nt(M,v,P),I=!u.arrow&&Ge(o)!=null&&v!==C&&i.reference[d]/2-(v<M?O:k)-p[d]/2<0,R=I?v<M?v-M:v-P:0;return{[a]:h[a]+R,data:{[a]:C,centerOffset:v-C-R,...I&&{alignmentOffset:R}},reset:I}}}),Zr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:u,elements:l}=t,{mainAxis:g=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:p=!0,...w}=De(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=Ce(o),E=ke(c),b=Ce(c)===c,y=await(u.isRTL==null?void 0:u.isRTL(l.floating)),S=h||(b||!p?[vt(c)]:Tr(c)),A=d!=="none";!h&&A&&S.push(...Pr(c,p,d,y));const _=[c,...S],B=await Yt(t,w),H=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(g&&H.push(B[x]),f){const v=Ir(o,s,y);H.push(B[v[0]],B[v[1]])}if(O=[...O,{placement:o,overflows:H}],!H.every(v=>v<=0)){var k,M;const v=(((k=i.flip)==null?void 0:k.index)||0)+1,C=_[v];if(C)return{data:{index:v,overflows:O},reset:{placement:C}};let I=(M=O.filter(R=>R.overflows[0]<=0).sort((R,D)=>R.overflows[1]-D.overflows[1])[0])==null?void 0:M.placement;if(!I)switch(a){case"bestFit":{var P;const R=(P=O.filter(D=>{if(A){const V=ke(D.placement);return V===E||V==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(V=>V>0).reduce((V,T)=>V+T,0)]).sort((D,V)=>D[1]-V[1])[0])==null?void 0:P[0];R&&(I=R);break}case"initialPlacement":I=c;break}if(o!==I)return{reset:{placement:I}}}return{}}}};async function Jr(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ce(n),c=Ge(n),u=ke(n)==="y",l=["left","top"].includes(s)?-1:1,g=i&&u?-1:1,f=De(t,e);let{mainAxis:h,crossAxis:a,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&typeof d=="number"&&(a=c==="end"?d*-1:d),u?{x:a*g,y:h*l}:{x:h*l,y:a*g}}const Qr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,u=await Jr(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},eo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x,y:E}=w;return{x,y:E}}},...u}=De(e,t),l={x:n,y:r},g=await Yt(t,u),f=ke(Ce(o)),h=jt(f);let a=l[h],d=l[f];if(i){const w=h==="y"?"top":"left",x=h==="y"?"bottom":"right",E=a+g[w],b=a-g[x];a=Nt(E,a,b)}if(s){const w=f==="y"?"top":"left",x=f==="y"?"bottom":"right",E=d+g[w],b=d-g[x];d=Nt(E,d,b)}const p=c.fn({...t,[h]:a,[f]:d});return{...p,data:{x:p.x-n,y:p.y-r}}}}},to=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=De(e,t),g={x:n,y:r},f=ke(o),h=jt(f);let a=g[h],d=g[f];const p=De(c,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const b=h==="y"?"height":"width",y=i.reference[h]-i.floating[b]+w.mainAxis,S=i.reference[h]+i.reference[b]-w.mainAxis;a<y?a=y:a>S&&(a=S)}if(l){var x,E;const b=h==="y"?"width":"height",y=["top","left"].includes(Ce(o)),S=i.reference[f]-i.floating[b]+(y&&((x=s.offset)==null?void 0:x[f])||0)+(y?0:w.crossAxis),A=i.reference[f]+i.reference[b]+(y?0:((E=s.offset)==null?void 0:E[f])||0)-(y?w.crossAxis:0);d<S?d=S:d>A&&(d=A)}return{[h]:a,[f]:d}}}},no=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...c}=De(e,t),u=await Yt(t,c),l=Ce(n),g=Ge(n),f=ke(n)==="y",{width:h,height:a}=r.floating;let d,p;l==="top"||l==="bottom"?(d=l,p=g===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,d=g==="end"?"top":"bottom");const w=a-u.top-u.bottom,x=h-u.left-u.right,E=xe(a-u[d],w),b=xe(h-u[p],x),y=!t.middlewareData.shift;let S=E,A=b;if(f?A=g||y?xe(b,x):x:S=g||y?xe(E,w):w,y&&!g){const B=fe(u.left,0),H=fe(u.right,0),O=fe(u.top,0),k=fe(u.bottom,0);f?A=h-2*(B!==0||H!==0?B+H:fe(u.left,u.right)):S=a-2*(O!==0||k!==0?O+k:fe(u.top,u.bottom))}await s({...t,availableWidth:A,availableHeight:S});const _=await o.getDimensions(i.floating);return h!==_.width||a!==_.height?{reset:{rects:!0}}:{}}}};function jn(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=te(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=ht(n)!==i||ht(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function Gt(e){return Y(e)?e:e.contextElement}function je(e){const t=Gt(e);if(!te(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=jn(t);let s=(i?ht(n.width):n.width)/r,c=(i?ht(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ro=Ae(0);function zn(e){const t=ae(e);return!Kt()||!t.visualViewport?ro:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function Ve(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Gt(e);let s=Ae(1);t&&(r?Y(r)&&(s=je(r)):s=je(e));const c=oo(i,n,r)?zn(i):Ae(0);let u=(o.left+c.x)/s.x,l=(o.top+c.y)/s.y,g=o.width/s.x,f=o.height/s.y;if(i){const h=ae(i),a=r&&Y(r)?ae(r):r;let d=h,p=d.frameElement;for(;p&&r&&a!==d;){const w=je(p),x=p.getBoundingClientRect(),E=me(p),b=x.left+(p.clientLeft+parseFloat(E.paddingLeft))*w.x,y=x.top+(p.clientTop+parseFloat(E.paddingTop))*w.y;u*=w.x,l*=w.y,g*=w.x,f*=w.y,u+=b,l+=y,d=ae(p),p=d.frameElement}}return bt({width:g,height:f,x:u,y:l})}function io(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ie(r),c=t?Ct(t.floating):!1;if(r===s||c&&i)return n;let u={scrollLeft:0,scrollTop:0},l=Ae(1);const g=Ae(0),f=te(r);if((f||!f&&!i)&&((Fe(r)!=="body"||rt(s))&&(u=It(r)),te(r))){const h=Ve(r);l=je(r),g.x=h.x+r.clientLeft,g.y=h.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+g.x,y:n.y*l.y-u.scrollTop*l.y+g.y}}function so(e){return Array.from(e.getClientRects())}function Un(e){return Ve(Ie(e)).left+It(e).scrollLeft}function co(e){const t=Ie(e),n=It(e),r=e.ownerDocument.body,o=fe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=fe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Un(e);const c=-n.scrollTop;return me(r).direction==="rtl"&&(s+=fe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}function lo(e,t){const n=ae(e),r=Ie(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,u=0;if(o){i=o.width,s=o.height;const l=Kt();(!l||l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:c,y:u}}function uo(e,t){const n=Ve(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=te(e)?je(e):Ae(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:s,height:c,x:u,y:l}}function cn(e,t,n){let r;if(t==="viewport")r=lo(e,n);else if(t==="document")r=co(Ie(e));else if(Y(t))r=uo(t,n);else{const o=zn(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return bt(r)}function Yn(e,t){const n=Ee(e);return n===t||!Y(n)||Se(n)?!1:me(n).position==="fixed"||Yn(n,t)}function ao(e,t){const n=t.get(e);if(n)return n;let r=Me(e,[],!1).filter(c=>Y(c)&&Fe(c)!=="body"),o=null;const i=me(e).position==="fixed";let s=i?Ee(e):e;for(;Y(s)&&!Se(s);){const c=me(s),u=Bt(s);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||rt(s)&&!u&&Yn(e,s))?r=r.filter(g=>g!==s):o=c,s=Ee(s)}return t.set(e,r),r}function fo(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ct(t)?[]:ao(t,this._c):[].concat(n),r],c=s[0],u=s.reduce((l,g)=>{const f=cn(t,g,o);return l.top=fe(f.top,l.top),l.right=xe(f.right,l.right),l.bottom=xe(f.bottom,l.bottom),l.left=fe(f.left,l.left),l},cn(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function mo(e){const{width:t,height:n}=jn(e);return{width:t,height:n}}function go(e,t,n){const r=te(t),o=Ie(t),i=n==="fixed",s=Ve(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=Ae(0);if(r||!r&&!i)if((Fe(t)!=="body"||rt(o))&&(c=It(t)),r){const f=Ve(t,!0,i,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else o&&(u.x=Un(o));const l=s.left+c.scrollLeft-u.x,g=s.top+c.scrollTop-u.y;return{x:l,y:g,width:s.width,height:s.height}}function Pt(e){return me(e).position==="static"}function ln(e,t){return!te(e)||me(e).position==="fixed"?null:t?t(e):e.offsetParent}function Gn(e,t){const n=ae(e);if(Ct(e))return n;if(!te(e)){let o=Ee(e);for(;o&&!Se(o);){if(Y(o)&&!Pt(o))return o;o=Ee(o)}return n}let r=ln(e,t);for(;r&&vr(r)&&Pt(r);)r=ln(r,t);return r&&Se(r)&&Pt(r)&&!Bt(r)?n:r||br(e)||n}const po=async function(e){const t=this.getOffsetParent||Gn,n=this.getDimensions,r=await n(e.floating);return{reference:go(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ho(e){return me(e).direction==="rtl"}const vo={convertOffsetParentRelativeRectToViewportRelativeRect:io,getDocumentElement:Ie,getClippingRect:fo,getOffsetParent:Gn,getElementRects:po,getClientRects:so,getDimensions:mo,getScale:je,isElement:Y,isRTL:ho};function bo(e,t){let n=null,r;const o=Ie(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const{left:l,top:g,width:f,height:h}=e.getBoundingClientRect();if(c||t(),!f||!h)return;const a=qe(g),d=qe(o.clientWidth-(l+f)),p=qe(o.clientHeight-(g+h)),w=qe(l),E={rootMargin:-a+"px "+-d+"px "+-p+"px "+-w+"px",threshold:fe(0,xe(1,u))||1};let b=!0;function y(S){const A=S[0].intersectionRatio;if(A!==u){if(!b)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(y,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,E)}n.observe(e)}return s(!0),i}function yo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Gt(e),g=o||i?[...l?Me(l):[],...Me(t)]:[];g.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const f=l&&c?bo(l,n):null;let h=-1,a=null;s&&(a=new ResizeObserver(x=>{let[E]=x;E&&E.target===l&&a&&(a.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=a)==null||b.observe(t)})),n()}),l&&!u&&a.observe(l),a.observe(t));let d,p=u?Ve(e):null;u&&w();function w(){const x=Ve(e);p&&(x.x!==p.x||x.y!==p.y||x.width!==p.width||x.height!==p.height)&&n(),p=x,d=requestAnimationFrame(w)}return n(),()=>{var x;g.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f==null||f(),(x=a)==null||x.disconnect(),a=null,u&&cancelAnimationFrame(d)}}const xo=Qr,wo=eo,Ro=Zr,Eo=no,un=Xr,Co=to,Io=(e,t,n)=>{const r=new Map,o={platform:vo,...n},i={...o.platform,_c:r};return Gr(e,t,{...o,platform:i})};var dt=typeof document<"u"?ve.useLayoutEffect:ve.useEffect;function Rt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Rt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Xn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function an(e,t){const n=Xn(e);return Math.round(t*n)/n}function fn(e){const t=m.useRef(e);return dt(()=>{t.current=e}),t}function To(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[g,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,a]=m.useState(r);Rt(h,r)||a(r);const[d,p]=m.useState(null),[w,x]=m.useState(null),E=m.useCallback(R=>{R!==A.current&&(A.current=R,p(R))},[]),b=m.useCallback(R=>{R!==_.current&&(_.current=R,x(R))},[]),y=i||d,S=s||w,A=m.useRef(null),_=m.useRef(null),B=m.useRef(g),H=u!=null,O=fn(u),k=fn(o),M=m.useCallback(()=>{if(!A.current||!_.current)return;const R={placement:t,strategy:n,middleware:h};k.current&&(R.platform=k.current),Io(A.current,_.current,R).then(D=>{const V={...D,isPositioned:!0};P.current&&!Rt(B.current,V)&&(B.current=V,Dn.flushSync(()=>{f(V)}))})},[h,t,n,k]);dt(()=>{l===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[l]);const P=m.useRef(!1);dt(()=>(P.current=!0,()=>{P.current=!1}),[]),dt(()=>{if(y&&(A.current=y),S&&(_.current=S),y&&S){if(O.current)return O.current(y,S,M);M()}},[y,S,M,O,H]);const v=m.useMemo(()=>({reference:A,floating:_,setReference:E,setFloating:b}),[E,b]),C=m.useMemo(()=>({reference:y,floating:S}),[y,S]),I=m.useMemo(()=>{const R={position:n,left:0,top:0};if(!C.floating)return R;const D=an(C.floating,g.x),V=an(C.floating,g.y);return c?{...R,transform:"translate("+D+"px, "+V+"px)",...Xn(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:V}},[n,c,C.floating,g.x,g.y]);return m.useMemo(()=>({...g,update:M,refs:v,elements:C,floatingStyles:I}),[g,M,v,C,I])}const Oo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?un({element:r.current,padding:o}).fn(n):{}:r?un({element:r,padding:o}).fn(n):{}}}},Po=(e,t)=>({...xo(e),options:[e,t]}),Mo=(e,t)=>({...wo(e),options:[e,t]}),So=(e,t)=>({...Co(e),options:[e,t]}),Ao=(e,t)=>({...Ro(e),options:[e,t]}),Do=(e,t)=>({...Eo(e),options:[e,t]}),ko=(e,t)=>({...Oo(e),options:[e,t]});function Lo(e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Zn={...m},Fo=Zn.useInsertionEffect,No=Fo||(e=>e());function ie(e){const t=m.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return No(()=>{t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const Xt="ArrowUp",ot="ArrowDown",Ue="ArrowLeft",Xe="ArrowRight";function ut(e,t,n){return Math.floor(e/t)!==n}function Ze(e,t){return t<0||t>=e.current.length}function Mt(e,t){return se(e,{disabledIndices:t})}function dn(e,t){return se(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function se(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const s=e.current;let c=n;do c+=r?-i:i;while(c>=0&&c<=s.length-1&&mt(s,c,o));return c}function _o(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:s,minIndex:c,maxIndex:u,prevIndex:l,stopEvent:g=!1}=t,f=l;if(n.key===Xt){if(g&&oe(n),l===-1)f=u;else if(f=se(e,{startingIndex:f,amount:i,decrement:!0,disabledIndices:s}),o&&(l-i<c||f<0)){const h=l%i,a=u%i,d=u-(a-h);a===h?f=u:f=a>h?d:d-i}Ze(e,f)&&(f=l)}if(n.key===ot&&(g&&oe(n),l===-1?f=c:(f=se(e,{startingIndex:l,amount:i,disabledIndices:s}),o&&l+i>u&&(f=se(e,{startingIndex:l%i-i,amount:i,disabledIndices:s}))),Ze(e,f)&&(f=l)),r==="both"){const h=qe(l/i);n.key===Xe&&(g&&oe(n),l%i!==i-1?(f=se(e,{startingIndex:l,disabledIndices:s}),o&&ut(f,i,h)&&(f=se(e,{startingIndex:l-l%i-1,disabledIndices:s}))):o&&(f=se(e,{startingIndex:l-l%i-1,disabledIndices:s})),ut(f,i,h)&&(f=l)),n.key===Ue&&(g&&oe(n),l%i!==0?(f=se(e,{startingIndex:l,decrement:!0,disabledIndices:s}),o&&ut(f,i,h)&&(f=se(e,{startingIndex:l+(i-l%i),decrement:!0,disabledIndices:s}))):o&&(f=se(e,{startingIndex:l+(i-l%i),decrement:!0,disabledIndices:s})),ut(f,i,h)&&(f=l));const a=qe(u/i)===h;Ze(e,f)&&(o&&a?f=n.key===Ue?u:se(e,{startingIndex:l-l%i-1,disabledIndices:s}):f=l)}return f}function Vo(e,t,n){const r=[];let o=0;return e.forEach((i,s)=>{let{width:c,height:u}=i;if(c>t&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let l=!1;for(n&&(o=0);!l;){const g=[];for(let f=0;f<c;f++)for(let h=0;h<u;h++)g.push(o+f+h*t);o%t+c<=t&&g.every(f=>r[f]==null)?(g.forEach(f=>{r[f]=s}),l=!0):o++}}),[...r]}function Wo(e,t,n,r,o){if(e===-1)return-1;const i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function Bo(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function mt(e,t,n){if(n)return n.includes(t);const r=e[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}let mn=0;function Pe(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(mn);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():mn=requestAnimationFrame(i)}var z=typeof document<"u"?ve.useLayoutEffect:ve.useEffect;function Ko(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function $o(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}const Jn=m.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Ho(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,i]=m.useState(()=>new Map),s=m.useCallback(u=>{i(l=>new Map(l).set(u,null))},[]),c=m.useCallback(u=>{i(l=>{const g=new Map(l);return g.delete(u),g})},[]);return z(()=>{const u=new Map(o);Array.from(u.keys()).sort(Ko).forEach((g,f)=>{u.set(g,f)}),$o(o,u)||i(u)},[o]),m.createElement(Jn.Provider,{value:m.useMemo(()=>({register:s,unregister:c,map:o,elementsRef:n,labelsRef:r}),[s,c,o,n,r])},t)}function qo(e){e===void 0&&(e={});const{label:t}=e,{register:n,unregister:r,map:o,elementsRef:i,labelsRef:s}=m.useContext(Jn),[c,u]=m.useState(null),l=m.useRef(null),g=m.useCallback(f=>{if(l.current=f,c!==null&&(i.current[c]=f,s)){var h;const a=t!==void 0;s.current[c]=a?t:(h=f==null?void 0:f.textContent)!=null?h:null}},[c,i,s,t]);return z(()=>{const f=l.current;if(f)return n(f),()=>{r(f)}},[n,r]),z(()=>{const f=l.current?o.get(l.current):null;f!=null&&u(f)},[o]),m.useMemo(()=>({ref:g,index:c??-1}),[c,g])}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tt.apply(this,arguments)}let gn=!1,jo=0;const pn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jo++;function zo(){const[e,t]=m.useState(()=>gn?pn():void 0);return z(()=>{e==null&&t(pn())},[]),m.useEffect(()=>{gn=!0},[]),e}const Uo=Zn.useId,it=Uo||zo;let nt;process.env.NODE_ENV!=="production"&&(nt=new Set);function gt(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=nt)!=null&&e.has(o))){var i;(i=nt)==null||i.add(o),console.warn(o)}}function Yo(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=nt)!=null&&e.has(o))){var i;(i=nt)==null||i.add(o),console.error(o)}}const Go=m.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:s=14,height:c=7,tipRadius:u=0,strokeWidth:l=0,staticOffset:g,stroke:f,d:h,style:{transform:a,...d}={},...p}=t;process.env.NODE_ENV!=="production"&&(n||gt("The `ref` prop is required for `FloatingArrow`."));const w=it(),[x,E]=m.useState(!1);if(z(()=>{if(!o)return;me(o).direction==="rtl"&&E(!0)},[o]),!o)return null;const b=l*2,y=b/2,S=s/2*(u/-8+1),A=c/2*u/4,[_,B]=r.split("-"),H=!!h,O=_==="top"||_==="bottom",k=g&&B==="end"?"bottom":"top";let M=g&&B==="end"?"right":"left";g&&x&&(M=B==="end"?"left":"right");const P=(i==null?void 0:i.x)!=null?g||i.x:"",v=(i==null?void 0:i.y)!=null?g||i.y:"",C=h||"M0,0"+(" H"+s)+(" L"+(s-S)+","+(c-A))+(" Q"+s/2+","+c+" "+S+","+(c-A))+" Z",I={top:H?"rotate(180deg)":"",left:H?"rotate(90deg)":"rotate(-90deg)",bottom:H?"":"rotate(180deg)",right:H?"rotate(-90deg)":"rotate(90deg)"}[_];return m.createElement("svg",tt({},p,{"aria-hidden":!0,ref:n,width:H?s:s+b,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[M]:P,[k]:v,[_]:O||H?"100%":"calc(100% - "+b/2+"px)",transform:""+I+(a??""),...d}}),b>0&&m.createElement("path",{clipPath:"url(#"+w+")",fill:"none",stroke:f,strokeWidth:b+(h?0:1),d:C}),m.createElement("path",{stroke:b&&!h?p.fill:"none",d:C}),m.createElement("clipPath",{id:w},m.createElement("rect",{x:-y,y:y*(H?-1:1),width:s+b,height:s})))});function Qn(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const er=m.createContext(null),tr=m.createContext(null),We=()=>{var e;return((e=m.useContext(er))==null?void 0:e.id)||null},Be=()=>m.useContext(tr);function Xo(e){const t=it(),n=Be(),r=We(),o=e||r;return z(()=>{const i={id:t,parentId:o};return n==null||n.addNode(i),()=>{n==null||n.removeNode(i)}},[n,t,o]),t}function Zo(e){const{children:t,id:n}=e,r=We();return m.createElement(er.Provider,{value:m.useMemo(()=>({id:n,parentId:r}),[n,r])},t)}function Jo(e){const{children:t}=e,n=m.useRef([]),r=m.useCallback(s=>{n.current=[...n.current,s]},[]),o=m.useCallback(s=>{n.current=n.current.filter(c=>c!==s)},[]),i=m.useState(()=>Qn())[0];return m.createElement(tr.Provider,{value:m.useMemo(()=>({nodesRef:n,addNode:r,removeNode:o,events:i}),[r,o,i])},t)}function Le(e){return"data-floating-ui-"+e}function de(e){const t=ve.useRef(e);return z(()=>{t.current=e}),t}const hn=Le("safe-polygon");function pt(e,t,n){return n&&!Qe(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Qo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:c=!0,delay:u=0,handleClose:l=null,mouseOnly:g=!1,restMs:f=0,move:h=!0}=t,a=Be(),d=We(),p=de(l),w=de(u),x=de(n),E=m.useRef(),b=m.useRef(-1),y=m.useRef(),S=m.useRef(-1),A=m.useRef(!0),_=m.useRef(!1),B=m.useRef(()=>{}),H=m.useCallback(()=>{var C;const I=(C=o.current.openEvent)==null?void 0:C.type;return(I==null?void 0:I.includes("mouse"))&&I!=="mousedown"},[o]);m.useEffect(()=>{if(!c)return;function C(I){let{open:R}=I;R||(clearTimeout(b.current),clearTimeout(S.current),A.current=!0)}return i.on("openchange",C),()=>{i.off("openchange",C)}},[c,i]),m.useEffect(()=>{if(!c||!p.current||!n)return;function C(R){H()&&r(!1,R,"hover")}const I=ne(s.floating).documentElement;return I.addEventListener("mouseleave",C),()=>{I.removeEventListener("mouseleave",C)}},[s.floating,n,r,c,p,H]);const O=m.useCallback(function(C,I,R){I===void 0&&(I=!0),R===void 0&&(R="hover");const D=pt(w.current,"close",E.current);D&&!y.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>r(!1,C,R),D)):I&&(clearTimeout(b.current),r(!1,C,R))},[w,r]),k=ie(()=>{B.current(),y.current=void 0}),M=ie(()=>{if(_.current){const C=ne(s.floating).body;C.style.pointerEvents="",C.removeAttribute(hn),_.current=!1}});m.useEffect(()=>{if(!c)return;function C(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function I(T){if(clearTimeout(b.current),A.current=!1,g&&!Qe(E.current)||f>0&&!pt(w.current,"open"))return;const j=pt(w.current,"open",E.current);j?b.current=window.setTimeout(()=>{x.current||r(!0,T,"hover")},j):r(!0,T,"hover")}function R(T){if(C())return;B.current();const j=ne(s.floating);if(clearTimeout(S.current),p.current&&o.current.floatingContext){n||clearTimeout(b.current),y.current=p.current({...o.current.floatingContext,tree:a,x:T.clientX,y:T.clientY,onClose(){M(),k(),O(T,!0,"safe-polygon")}});const ce=y.current;j.addEventListener("mousemove",ce),B.current=()=>{j.removeEventListener("mousemove",ce)};return}(E.current==="touch"?!ee(s.floating,T.relatedTarget):!0)&&O(T)}function D(T){C()||o.current.floatingContext&&(p.current==null||p.current({...o.current.floatingContext,tree:a,x:T.clientX,y:T.clientY,onClose(){M(),k(),O(T)}})(T))}if(Y(s.domReference)){var V;const T=s.domReference;return n&&T.addEventListener("mouseleave",D),(V=s.floating)==null||V.addEventListener("mouseleave",D),h&&T.addEventListener("mousemove",I,{once:!0}),T.addEventListener("mouseenter",I),T.addEventListener("mouseleave",R),()=>{var j;n&&T.removeEventListener("mouseleave",D),(j=s.floating)==null||j.removeEventListener("mouseleave",D),h&&T.removeEventListener("mousemove",I),T.removeEventListener("mouseenter",I),T.removeEventListener("mouseleave",R)}}},[s,c,e,g,f,h,O,k,M,r,n,x,a,w,p,o]),z(()=>{var C;if(c&&n&&(C=p.current)!=null&&C.__options.blockPointerEvents&&H()){const R=ne(s.floating).body;R.setAttribute(hn,""),R.style.pointerEvents="none",_.current=!0;const D=s.floating;if(Y(s.domReference)&&D){var I;const V=s.domReference,T=a==null||(I=a.nodesRef.current.find(j=>j.id===d))==null||(I=I.context)==null?void 0:I.elements.floating;return T&&(T.style.pointerEvents=""),V.style.pointerEvents="auto",D.style.pointerEvents="auto",()=>{V.style.pointerEvents="",D.style.pointerEvents=""}}}},[c,n,d,s,a,p,H]),z(()=>{n||(E.current=void 0,k(),M())},[n,k,M]),m.useEffect(()=>()=>{k(),clearTimeout(b.current),clearTimeout(S.current),M()},[c,s.domReference,k,M]);const P=m.useMemo(()=>{function C(I){E.current=I.pointerType}return{onPointerDown:C,onPointerEnter:C,onMouseMove(I){const{nativeEvent:R}=I;function D(){!A.current&&!x.current&&r(!0,R,"hover")}g&&!Qe(E.current)||n||f===0||(clearTimeout(S.current),E.current==="touch"?D():S.current=window.setTimeout(D,f))}}},[g,r,n,x,f]),v=m.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(C){O(C.nativeEvent,!1)}}),[O]);return m.useMemo(()=>c?{reference:P,floating:v}:{},[c,P,v])}const Wt=()=>{},nr=m.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Wt,setState:Wt,isInstantPhase:!1}),rr=()=>m.useContext(nr);function ei(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,i]=m.useReducer((u,l)=>({...u,...l}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=m.useRef(null),c=m.useCallback(u=>{i({currentId:u})},[]);return z(()=>{o.currentId?s.current===null?s.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[o.currentId,o.isInstantPhase]),m.createElement(nr.Provider,{value:m.useMemo(()=>({...o,setState:i,setCurrentId:c}),[o,c])},t)}function ti(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i}=t,s=i??o,c=rr(),{currentId:u,setCurrentId:l,initialDelay:g,setState:f,timeoutMs:h}=c;return z(()=>{u&&(f({delay:{open:1,close:pt(g,"close")}}),u!==s&&r(!1))},[s,r,f,u,g]),z(()=>{function a(){r(!1),f({delay:g,currentId:null})}if(u&&!n&&u===s){if(h){const d=window.setTimeout(a,h);return()=>{clearTimeout(d)}}a()}},[n,f,u,s,r,g,h]),z(()=>{l===Wt||!n||l(s)},[n,l,s]),c}function ni(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(r=r.concat(i))}return r}function _e(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(s=>{var c;return o.parentId===s.id&&((c=o.context)==null?void 0:c.open)})}),n=n.concat(r);return n}function ri(e,t){let n,r=-1;function o(i,s){s>r&&(n=i,r=s),_e(e,i).forEach(u=>{o(u.id,s+1)})}return o(t,0),e.find(i=>i.id===n)}let He=new WeakMap,at=new WeakSet,ft={},St=0;const oi=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,or=e=>e&&(e.host||or(e.parentNode)),ii=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=or(n);return e.contains(r)?r:null}).filter(n=>n!=null);function si(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=ii(t,e),c=new Set,u=new Set(s),l=[];ft[o]||(ft[o]=new WeakMap);const g=ft[o];s.forEach(f),h(t),c.clear();function f(a){!a||c.has(a)||(c.add(a),a.parentNode&&f(a.parentNode))}function h(a){!a||u.has(a)||[].forEach.call(a.children,d=>{if(Fe(d)!=="script")if(c.has(d))h(d);else{const p=i?d.getAttribute(i):null,w=p!==null&&p!=="false",x=(He.get(d)||0)+1,E=(g.get(d)||0)+1;He.set(d,x),g.set(d,E),l.push(d),x===1&&w&&at.add(d),E===1&&d.setAttribute(o,""),!w&&i&&d.setAttribute(i,"true")}})}return St++,()=>{l.forEach(a=>{const d=(He.get(a)||0)-1,p=(g.get(a)||0)-1;He.set(a,d),g.set(a,p),d||(!at.has(a)&&i&&a.removeAttribute(i),at.delete(a)),p||a.removeAttribute(o)}),St--,St||(He=new WeakMap,He=new WeakMap,at=new WeakSet,ft={})}}function vn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=ne(e[0]).body;return si(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ye=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ir(e,t){const n=et(e,Ye());t==="prev"&&n.reverse();const r=n.indexOf(he(ne(e)));return n.slice(r+1)[0]}function sr(){return ir(document.body,"next")}function cr(){return ir(document.body,"prev")}function Je(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ee(n,r)}function ci(e){et(e,Ye()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function li(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function ui(e,t,n){const r=e.indexOf(t);function o(s){const c=Le("focus-guard");let u=r+(s?1:0),l=e[u];for(;l&&(!l.isConnected||l.hasAttribute(c)||ee(n,l));)s?u++:u--,l=e[u];return l}const i=o(!0);return i||o(!1)}const Zt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let ai;function bn(e){e.key==="Tab"&&(e.target,clearTimeout(ai))}const Et=m.forwardRef(function(t,n){const[r,o]=m.useState();z(()=>(Ht()&&o("button"),document.addEventListener("keydown",bn),()=>{document.removeEventListener("keydown",bn)}),[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Le("focus-guard")]:"",style:Zt};return m.createElement("span",tt({},t,i))}),lr=m.createContext(null),yn=Le("portal");function fi(e){e===void 0&&(e={});const{id:t,root:n}=e,r=it(),o=ur(),[i,s]=m.useState(null),c=m.useRef(null);return z(()=>()=>{i==null||i.remove(),queueMicrotask(()=>{c.current=null})},[i]),z(()=>{if(!r||c.current)return;const u=t?document.getElementById(t):null;if(!u)return;const l=document.createElement("div");l.id=r,l.setAttribute(yn,""),u.appendChild(l),c.current=l,s(l)},[t,r]),z(()=>{if(!r||c.current)return;let u=n||(o==null?void 0:o.portalNode);u&&!Y(u)&&(u=u.current),u=u||document.body;let l=null;t&&(l=document.createElement("div"),l.id=t,u.appendChild(l));const g=document.createElement("div");g.id=r,g.setAttribute(yn,""),u=l||u,u.appendChild(g),c.current=g,s(g)},[t,n,r,o]),i}function di(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=fi({id:n,root:r}),[s,c]=m.useState(null),u=m.useRef(null),l=m.useRef(null),g=m.useRef(null),f=m.useRef(null),h=!!s&&!s.modal&&s.open&&o&&!!(r||i);return m.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function a(d){i&&Je(d)&&(d.type==="focusin"?li:ci)(i)}return i.addEventListener("focusin",a,!0),i.addEventListener("focusout",a,!0),()=>{i.removeEventListener("focusin",a,!0),i.removeEventListener("focusout",a,!0)}},[i,o,s==null?void 0:s.modal]),m.createElement(lr.Provider,{value:m.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:l,beforeInsideRef:g,afterInsideRef:f,portalNode:i,setFocusManagerState:c}),[o,i])},h&&i&&m.createElement(Et,{"data-type":"outside",ref:u,onFocus:a=>{if(Je(a,i)){var d;(d=g.current)==null||d.focus()}else{const p=cr()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus()}}}),h&&i&&m.createElement("span",{"aria-owns":i.id,style:Zt}),i&&Dn.createPortal(t,i),h&&i&&m.createElement(Et,{"data-type":"outside",ref:l,onFocus:a=>{if(Je(a,i)){var d;(d=f.current)==null||d.focus()}else{const p=sr()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,a.nativeEvent))}}}))}const ur=()=>m.useContext(lr),xn=20;let Ne=[];function At(e){Ne=Ne.filter(n=>n.isConnected);let t=e;if(!(!t||Fe(t)==="body")){if(!Yr(t,Ye())){const n=et(t,Ye())[0];n&&(t=n)}Ne.push(t),Ne.length>xn&&(Ne=Ne.slice(-xn))}}function wn(){return Ne.slice().reverse().find(e=>e.isConnected)}const mi=m.forwardRef(function(t,n){return m.createElement("button",tt({},t,{type:"button",ref:n,tabIndex:-1,style:Zt}))});function gi(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:c=!0,restoreFocus:u=!1,modal:l=!0,visuallyHiddenDismiss:g=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:a,nodeId:d,onOpenChange:p,events:w,dataRef:x,floatingId:E,elements:{domReference:b,floating:y}}=t,S=typeof s=="number"&&s<0,A=Wn(b)&&S,_=oi()?i:!0,B=de(o),H=de(s),O=de(c),k=Be(),M=ur(),P=m.useRef(null),v=m.useRef(null),C=m.useRef(!1),I=m.useRef(!1),R=m.useRef(-1),D=M!=null,V=y==null?void 0:y.firstElementChild,T=(V==null?void 0:V.id)===E?V:y,j=ie(function(L){return L===void 0&&(L=T),L?et(L,Ye()):[]}),re=ie(L=>{const K=j(L);return B.current.map(N=>b&&N==="reference"?b:T&&N==="floating"?T:K).filter(Boolean).flat()});m.useEffect(()=>{if(r||!l)return;function L(N){if(N.key==="Tab"){ee(T,he(ne(T)))&&j().length===0&&!A&&oe(N);const F=re(),q=Re(N);B.current[0]==="reference"&&q===b&&(oe(N),N.shiftKey?Pe(F[F.length-1]):Pe(F[1])),B.current[1]==="floating"&&q===T&&N.shiftKey&&(oe(N),Pe(F[0]))}}const K=ne(T);return K.addEventListener("keydown",L),()=>{K.removeEventListener("keydown",L)}},[r,b,T,l,B,A,j,re]),m.useEffect(()=>{if(r||!y)return;function L(K){const N=Re(K),q=j().indexOf(N);q!==-1&&(R.current=q)}return y.addEventListener("focusin",L),()=>{y.removeEventListener("focusin",L)}},[r,y,j]),m.useEffect(()=>{if(r||!f)return;function L(){I.current=!0,setTimeout(()=>{I.current=!1})}function K(N){const F=N.relatedTarget;queueMicrotask(()=>{const q=!(ee(b,F)||ee(y,F)||ee(F,y)||ee(M==null?void 0:M.portalNode,F)||F!=null&&F.hasAttribute(Le("focus-guard"))||k&&(_e(k.nodesRef.current,d).find(U=>{var Q,G;return ee((Q=U.context)==null?void 0:Q.elements.floating,F)||ee((G=U.context)==null?void 0:G.elements.domReference,F)})||ni(k.nodesRef.current,d).find(U=>{var Q,G;return((Q=U.context)==null?void 0:Q.elements.floating)===F||((G=U.context)==null?void 0:G.elements.domReference)===F})));if(u&&q&&he(ne(T))===ne(T).body){te(T)&&(T==null||T.focus());const U=R.current,Q=j(),G=Q[U]||Q[Q.length-1]||T;te(G)&&G.focus()}(A||!l)&&F&&q&&!I.current&&F!==wn()&&(C.current=!0,p(!1,N))})}if(y&&te(b))return b.addEventListener("focusout",K),b.addEventListener("pointerdown",L),y.addEventListener("focusout",K),()=>{b.removeEventListener("focusout",K),b.removeEventListener("pointerdown",L),y.removeEventListener("focusout",K)}},[r,b,y,T,l,d,k,M,p,f,u,j,A]),m.useEffect(()=>{var L;if(r)return;const K=Array.from((M==null||(L=M.portalNode)==null?void 0:L.querySelectorAll("["+Le("portal")+"]"))||[]);if(y){const N=[y,...K,P.current,v.current,B.current.includes("reference")||A?b:null].filter(q=>q!=null),F=l||A?vn(N,_,!_):vn(N);return()=>{F()}}},[r,b,y,l,B,M,A,_]),z(()=>{if(r||!te(T))return;const L=ne(T),K=he(L);queueMicrotask(()=>{const N=re(T),F=H.current,q=(typeof F=="number"?N[F]:F.current)||T,U=ee(T,K);!S&&!U&&h&&Pe(q,{preventScroll:q===T})})},[r,h,T,S,re,H]),z(()=>{if(r||!T)return;let L=!1;const K=ne(T),N=he(K);let q=x.current.openEvent;const U=a.domReference.current;At(N);function Q(G){let{open:be,reason:we,event:ge,nested:Ke}=G;be&&(q=ge),we==="escape-key"&&a.domReference.current&&At(a.domReference.current),we==="hover"&&ge.type==="mouseleave"&&(C.current=!0),we==="outside-press"&&(Ke?(C.current=!1,L=!0):C.current=!(_n(ge)||$t(ge)))}return w.on("openchange",Q),()=>{w.off("openchange",Q);const G=he(K),be=ee(y,G)||k&&_e(k.nodesRef.current,d).some($=>{var X;return ee((X=$.context)==null?void 0:X.elements.floating,G)});(be||q&&["click","mousedown"].includes(q.type))&&a.domReference.current&&At(a.domReference.current);const ge=U||N,Ke=et(ne(ge).body,Ye());queueMicrotask(()=>{let $=wn();!$&&te(ge)&&y&&($=ui(Ke,ge,y)),O.current&&!C.current&&te($)&&(!($!==G&&G!==K.body)||be)&&$.focus({preventScroll:L})})}},[r,y,T,O,x,a,w,k,d]),z(()=>{if(!r&&M)return M.setFocusManagerState({modal:l,closeOnFocusOut:f,open:h,onOpenChange:p,refs:a}),()=>{M.setFocusManagerState(null)}},[r,M,l,h,p,a,f]),z(()=>{if(r||!T||typeof MutationObserver!="function"||S)return;const L=()=>{const N=T.getAttribute("tabindex"),F=j(),q=he(ne(y)),U=F.indexOf(q);U!==-1&&(R.current=U),B.current.includes("floating")||q!==a.domReference.current&&F.length===0?N!=="0"&&T.setAttribute("tabindex","0"):N!=="-1"&&T.setAttribute("tabindex","-1")};L();const K=new MutationObserver(L);return K.observe(T,{childList:!0,subtree:!0,attributes:!0}),()=>{K.disconnect()}},[r,y,T,a,B,j,S]);function ce(L){return r||!g||!l?null:m.createElement(mi,{ref:L==="start"?P:v,onClick:K=>p(!1,K.nativeEvent)},typeof g=="string"?g:"Dismiss")}const le=!r&&_&&(l?!A:!0)&&(D||l);return m.createElement(m.Fragment,null,le&&m.createElement(Et,{"data-type":"inside",ref:M==null?void 0:M.beforeInsideRef,onFocus:L=>{if(l){const N=re();Pe(o[0]==="reference"?N[0]:N[N.length-1])}else if(M!=null&&M.preserveTabOrder&&M.portalNode)if(C.current=!1,Je(L,M.portalNode)){const N=sr()||b;N==null||N.focus()}else{var K;(K=M.beforeOutsideRef.current)==null||K.focus()}}}),!A&&ce("start"),n,ce("end"),le&&m.createElement(Et,{"data-type":"inside",ref:M==null?void 0:M.afterInsideRef,onFocus:L=>{if(l)Pe(re()[0]);else if(M!=null&&M.preserveTabOrder&&M.portalNode)if(f&&(C.current=!0),Je(L,M.portalNode)){const N=cr()||b;N==null||N.focus()}else{var K;(K=M.afterOutsideRef.current)==null||K.focus()}}}))}function Rn(e){return te(e.target)&&e.target.tagName==="BUTTON"}function En(e){return qt(e)}function pi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:c="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:g=!0}=t,f=m.useRef(),h=m.useRef(!1),a=m.useMemo(()=>({onPointerDown(d){f.current=d.pointerType},onMouseDown(d){const p=f.current;d.button===0&&c!=="click"&&(Qe(p,!0)&&l||(n&&u&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,d.nativeEvent,"click"):(d.preventDefault(),r(!0,d.nativeEvent,"click"))))},onClick(d){const p=f.current;if(c==="mousedown"&&f.current){f.current=void 0;return}Qe(p,!0)&&l||(n&&u&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,d.nativeEvent,"click"):r(!0,d.nativeEvent,"click"))},onKeyDown(d){f.current=void 0,!(d.defaultPrevented||!g||Rn(d))&&(d.key===" "&&!En(i)&&(d.preventDefault(),h.current=!0),d.key==="Enter"&&r(!(n&&u),d.nativeEvent,"click"))},onKeyUp(d){d.defaultPrevented||!g||Rn(d)||En(i)||d.key===" "&&h.current&&(h.current=!1,r(!(n&&u),d.nativeEvent,"click"))}}),[o,i,c,l,g,r,n,u]);return m.useMemo(()=>s?{reference:a}:{},[s,a])}const hi={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},vi={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Cn=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function bi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:l="pointerdown",referencePress:g=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:a,capture:d}=t,p=Be(),w=ie(typeof u=="function"?u:()=>!1),x=typeof u=="function"?w:u,E=m.useRef(!1),b=m.useRef(!1),{escapeKey:y,outsidePress:S}=Cn(a),{escapeKey:A,outsidePress:_}=Cn(d),B=ie(v=>{var C;if(!n||!s||!c||v.key!=="Escape")return;const I=(C=i.current.floatingContext)==null?void 0:C.nodeId,R=p?_e(p.nodesRef.current,I):[];if(!y&&(v.stopPropagation(),R.length>0)){let D=!0;if(R.forEach(V=>{var T;if((T=V.context)!=null&&T.open&&!V.context.dataRef.current.__escapeKeyBubbles){D=!1;return}}),!D)return}r(!1,xr(v)?v.nativeEvent:v,"escape-key")}),H=ie(v=>{var C;const I=()=>{var R;B(v),(R=Re(v))==null||R.removeEventListener("keydown",I)};(C=Re(v))==null||C.addEventListener("keydown",I)}),O=ie(v=>{var C;const I=E.current;E.current=!1;const R=b.current;if(b.current=!1,l==="click"&&R||I||typeof x=="function"&&!x(v))return;const D=Re(v),V="["+Le("inert")+"]",T=ne(o.floating).querySelectorAll(V);let j=Y(D)?D:null;for(;j&&!Se(j);){const L=Ee(j);if(Se(L)||!Y(L))break;j=L}if(T.length&&Y(D)&&!wr(D)&&!ee(D,o.floating)&&Array.from(T).every(L=>!ee(j,L)))return;if(te(D)&&P){const L=D.clientWidth>0&&D.scrollWidth>D.clientWidth,K=D.clientHeight>0&&D.scrollHeight>D.clientHeight;let N=K&&v.offsetX>D.clientWidth;if(K&&me(D).direction==="rtl"&&(N=v.offsetX<=D.offsetWidth-D.clientWidth),N||L&&v.offsetY>D.clientHeight)return}const re=(C=i.current.floatingContext)==null?void 0:C.nodeId,ce=p&&_e(p.nodesRef.current,re).some(L=>{var K;return Ot(v,(K=L.context)==null?void 0:K.elements.floating)});if(Ot(v,o.floating)||Ot(v,o.domReference)||ce)return;const le=p?_e(p.nodesRef.current,re):[];if(le.length>0){let L=!0;if(le.forEach(K=>{var N;if((N=K.context)!=null&&N.open&&!K.context.dataRef.current.__outsidePressBubbles){L=!1;return}}),!L)return}r(!1,v,"outside-press")}),k=ie(v=>{var C;const I=()=>{var R;O(v),(R=Re(v))==null||R.removeEventListener(l,I)};(C=Re(v))==null||C.addEventListener(l,I)});m.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=S;function v(R){r(!1,R,"ancestor-scroll")}const C=ne(o.floating);c&&C.addEventListener("keydown",A?H:B,A),x&&C.addEventListener(l,_?k:O,_);let I=[];return h&&(Y(o.domReference)&&(I=Me(o.domReference)),Y(o.floating)&&(I=I.concat(Me(o.floating))),!Y(o.reference)&&o.reference&&o.reference.contextElement&&(I=I.concat(Me(o.reference.contextElement)))),I=I.filter(R=>{var D;return R!==((D=C.defaultView)==null?void 0:D.visualViewport)}),I.forEach(R=>{R.addEventListener("scroll",v,{passive:!0})}),()=>{c&&C.removeEventListener("keydown",A?H:B,A),x&&C.removeEventListener(l,_?k:O,_),I.forEach(R=>{R.removeEventListener("scroll",v)})}},[i,o,c,x,l,n,r,h,s,y,S,B,A,H,O,_,k]),m.useEffect(()=>{E.current=!1},[x,l]);const M=m.useMemo(()=>({onKeyDown:B,[hi[f]]:v=>{g&&r(!1,v.nativeEvent,"reference-press")}}),[B,r,g,f]),P=m.useMemo(()=>({onKeyDown:B,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[vi[l]]:()=>{E.current=!0}}),[B,l]);return m.useMemo(()=>s?{reference:M,floating:P}:{},[s,M,P])}function yi(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=it(),i=m.useRef({}),[s]=m.useState(()=>Qn()),c=We()!=null;if(process.env.NODE_ENV!=="production"){const a=r.reference;a&&!Y(a)&&Yo("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,l]=m.useState(r.reference),g=ie((a,d,p)=>{i.current.openEvent=a?d:void 0,s.emit("openchange",{open:a,event:d,reason:p,nested:c}),n==null||n(a,d,p)}),f=m.useMemo(()=>({setPositionReference:l}),[]),h=m.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return m.useMemo(()=>({dataRef:i,open:t,onOpenChange:g,elements:h,events:s,floatingId:o,refs:f}),[t,g,h,s,o,f])}function xi(e){e===void 0&&(e={});const{nodeId:t}=e,n=yi({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=m.useState(null),[c,u]=m.useState(null),g=(o==null?void 0:o.reference)||i,f=m.useRef(null),h=Be();z(()=>{g&&(f.current=g)},[g]);const a=To({...e,elements:{...o,...c&&{reference:c}}}),d=m.useCallback(b=>{const y=Y(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;u(y),a.refs.setReference(y)},[a.refs]),p=m.useCallback(b=>{(Y(b)||b===null)&&(f.current=b,s(b)),(Y(a.refs.reference.current)||a.refs.reference.current===null||b!==null&&!Y(b))&&a.refs.setReference(b)},[a.refs]),w=m.useMemo(()=>({...a.refs,setReference:p,setPositionReference:d,domReference:f}),[a.refs,p,d]),x=m.useMemo(()=>({...a.elements,domReference:g}),[a.elements,g]),E=m.useMemo(()=>({...a,...r,refs:w,elements:x,nodeId:t}),[a,w,x,t,r]);return z(()=>{r.dataRef.current.floatingContext=E;const b=h==null?void 0:h.nodesRef.current.find(y=>y.id===t);b&&(b.context=E)}),m.useMemo(()=>({...a,context:E,refs:w,elements:x}),[a,w,x,E])}function wi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:c=!0,visibleOnly:u=!0}=t,l=m.useRef(!1),g=m.useRef(),f=m.useRef(!0);m.useEffect(()=>{if(!c)return;const a=ae(s.domReference);function d(){!n&&te(s.domReference)&&s.domReference===he(ne(s.domReference))&&(l.current=!0)}function p(){f.current=!0}return a.addEventListener("blur",d),a.addEventListener("keydown",p,!0),()=>{a.removeEventListener("blur",d),a.removeEventListener("keydown",p,!0)}},[s.domReference,n,c]),m.useEffect(()=>{if(!c)return;function a(d){let{reason:p}=d;(p==="reference-press"||p==="escape-key")&&(l.current=!0)}return o.on("openchange",a),()=>{o.off("openchange",a)}},[o,c]),m.useEffect(()=>()=>{clearTimeout(g.current)},[]);const h=m.useMemo(()=>({onPointerDown(a){$t(a.nativeEvent)||(f.current=!1)},onMouseLeave(){l.current=!1},onFocus(a){if(l.current)return;const d=Re(a.nativeEvent);if(u&&Y(d))try{if(Ht()&&Vn())throw Error();if(!d.matches(":focus-visible"))return}catch{if(!f.current&&!qt(d))return}r(!0,a.nativeEvent,"focus")},onBlur(a){l.current=!1;const d=a.relatedTarget,p=a.nativeEvent,w=Y(d)&&d.hasAttribute(Le("focus-guard"))&&d.getAttribute("data-type")==="outside";g.current=window.setTimeout(()=>{var x;const E=he(s.domReference?s.domReference.ownerDocument:document);!d&&E===s.domReference||ee((x=i.current.floatingContext)==null?void 0:x.refs.floating.current,E)||ee(s.domReference,E)||w||r(!1,p,"focus")})}}),[i,s.domReference,r,u]);return m.useMemo(()=>c?{reference:h}:{},[c,h])}const In="active",Tn="selected";function Dt(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[In]:s,[Tn]:c,...u}=e;i=u}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(u=>{let[l,g]=u;if(!(o&&[In,Tn].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof g=="function"){var f;(f=r.get(l))==null||f.push(g),s[l]=function(){for(var h,a=arguments.length,d=new Array(a),p=0;p<a;p++)d[p]=arguments[p];return(h=r.get(l))==null?void 0:h.map(w=>w(...d)).find(w=>w!==void 0)}}}else s[l]=g}),s),{})}}function Ri(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),o=m.useCallback(c=>Dt(c,e,"reference"),t),i=m.useCallback(c=>Dt(c,e,"floating"),n),s=m.useCallback(c=>Dt(c,e,"item"),r);return m.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}let On=!1;function Tt(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Pn(e,t){return Tt(t,e===Xt||e===ot,e===Ue||e===Xe)}function kt(e,t,n){return Tt(t,e===ot,n?e===Ue:e===Xe)||e==="Enter"||e===" "||e===""}function Ei(e,t,n){return Tt(t,n?e===Ue:e===Xe,e===ot)}function Mn(e,t,n){return Tt(t,n?e===Xe:e===Ue,e===Xt)}function Ci(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:s,onNavigate:c=()=>{},enabled:u=!0,selectedIndex:l=null,allowEscape:g=!1,loop:f=!1,nested:h=!1,rtl:a=!1,virtual:d=!1,focusItemOnOpen:p="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:x=!0,disabledIndices:E=void 0,orientation:b="vertical",cols:y=1,scrollItemIntoView:S=!0,virtualItemRef:A,itemSizes:_,dense:B=!1}=t;process.env.NODE_ENV!=="production"&&(g&&(f||gt("`useListNavigation` looping must be enabled to allow escaping."),d||gt("`useListNavigation` must be virtual to allow escaping.")),b==="vertical"&&y>1&>("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const H=We(),O=Be(),k=ie(c),M=m.useRef(p),P=m.useRef(l??-1),v=m.useRef(null),C=m.useRef(!0),I=m.useRef(k),R=m.useRef(!!o.floating),D=m.useRef(n),V=m.useRef(!1),T=m.useRef(!1),j=de(E),re=de(n),ce=de(S),le=de(o.floating),L=de(l),[K,N]=m.useState(),[F,q]=m.useState(),U=ie(function($,X,W){W===void 0&&(W=!1);function Z(J){d?(N(J.id),O==null||O.events.emit("virtualfocus",J),A&&(A.current=J)):Pe(J,{preventScroll:!0,sync:Vn()&&Ht()?On||V.current:!1})}const ue=$.current[X.current];ue&&Z(ue),requestAnimationFrame(()=>{const J=$.current[X.current]||ue;if(!J)return;ue||Z(J);const ye=ce.current;ye&&G&&(W||!C.current)&&(J.scrollIntoView==null||J.scrollIntoView(typeof ye=="boolean"?{block:"nearest",inline:"nearest"}:ye))})});z(()=>{document.createElement("div").focus({get preventScroll(){return On=!0,!1}})},[]),z(()=>{u&&(n&&o.floating?M.current&&l!=null&&(T.current=!0,P.current=l,k(l)):R.current&&(P.current=-1,I.current(null)))},[u,n,o.floating,l,k]),z(()=>{if(u&&n&&o.floating)if(s==null){if(V.current=!1,L.current!=null)return;if(R.current&&(P.current=-1,U(i,P)),(!D.current||!R.current)&&M.current&&(v.current!=null||M.current===!0&&v.current==null)){let $=0;const X=()=>{i.current[0]==null?($<2&&($?requestAnimationFrame:queueMicrotask)(X),$++):(P.current=v.current==null||kt(v.current,b,a)||h?Mt(i,j.current):dn(i,j.current),v.current=null,k(P.current))};X()}}else Ze(i,s)||(P.current=s,U(i,P,T.current),T.current=!1)},[u,n,o.floating,s,L,h,i,b,a,k,U,j]),z(()=>{var $;if(!u||o.floating||!O||d||!R.current)return;const X=O.nodesRef.current,W=($=X.find(J=>J.id===H))==null||($=$.context)==null?void 0:$.elements.floating,Z=he(ne(o.floating)),ue=X.some(J=>J.context&&ee(J.context.elements.floating,Z));W&&!ue&&C.current&&W.focus({preventScroll:!0})},[u,o.floating,O,H,d]),z(()=>{if(!u||!O||!d||H)return;function $(X){q(X.id),A&&(A.current=X)}return O.events.on("virtualfocus",$),()=>{O.events.off("virtualfocus",$)}},[u,O,d,H,A]),z(()=>{I.current=k,R.current=!!o.floating}),z(()=>{n||(v.current=null)},[n]),z(()=>{D.current=n},[n]);const Q=s!=null,G=m.useMemo(()=>{function $(W){if(!n)return;const Z=i.current.indexOf(W);Z!==-1&&k(Z)}return{onFocus(W){let{currentTarget:Z}=W;$(Z)},onClick:W=>{let{currentTarget:Z}=W;return Z.focus({preventScroll:!0})},...w&&{onMouseMove(W){let{currentTarget:Z}=W;$(Z)},onPointerLeave(W){let{pointerType:Z}=W;!C.current||Z==="touch"||(P.current=-1,U(i,P),k(null),d||Pe(le.current,{preventScroll:!0}))}}}},[n,le,U,w,i,k,d]),be=ie($=>{if(C.current=!1,V.current=!0,!re.current&&$.currentTarget===le.current)return;if(h&&Mn($.key,b,a)){oe($),r(!1,$.nativeEvent,"list-navigation"),te(o.domReference)&&!d&&o.domReference.focus();return}const X=P.current,W=Mt(i,E),Z=dn(i,E);if($.key==="Home"&&(oe($),P.current=W,k(P.current)),$.key==="End"&&(oe($),P.current=Z,k(P.current)),y>1){const ue=_||Array.from({length:i.current.length},()=>({width:1,height:1})),J=Vo(ue,y,B),ye=J.findIndex(pe=>pe!=null&&!mt(i.current,pe,E)),st=J.reduce((pe,Te,ct)=>Te!=null&&!mt(i.current,Te,E)?ct:pe,-1);if(P.current=J[_o({current:J.map(pe=>pe!=null?i.current[pe]:null)},{event:$,orientation:b,loop:f,cols:y,disabledIndices:Bo([...E||i.current.map((pe,Te)=>mt(i.current,Te)?Te:void 0),void 0],J),minIndex:ye,maxIndex:st,prevIndex:Wo(P.current>Z?W:P.current,ue,J,y,$.key===ot?"bl":$.key===Xe?"tr":"tl"),stopEvent:!0})],k(P.current),b==="both")return}if(Pn($.key,b)){if(oe($),n&&!d&&he($.currentTarget.ownerDocument)===$.currentTarget){P.current=kt($.key,b,a)?W:Z,k(P.current);return}kt($.key,b,a)?f?P.current=X>=Z?g&&X!==i.current.length?-1:W:se(i,{startingIndex:X,disabledIndices:E}):P.current=Math.min(Z,se(i,{startingIndex:X,disabledIndices:E})):f?P.current=X<=W?g&&X!==-1?i.current.length:Z:se(i,{startingIndex:X,decrement:!0,disabledIndices:E}):P.current=Math.max(W,se(i,{startingIndex:X,decrement:!0,disabledIndices:E})),Ze(i,P.current)?k(null):k(P.current)}}),we=m.useMemo(()=>d&&n&&Q&&{"aria-activedescendant":F||K},[d,n,Q,F,K]),ge=m.useMemo(()=>({"aria-orientation":b==="both"?void 0:b,...!Wn(o.domReference)&&we,onKeyDown:be,onPointerMove(){C.current=!0}}),[we,be,o.domReference,b]),Ke=m.useMemo(()=>{function $(W){p==="auto"&&_n(W.nativeEvent)&&(M.current=!0)}function X(W){M.current=p,p==="auto"&&$t(W.nativeEvent)&&(M.current=!0)}return{...we,onKeyDown(W){C.current=!1;const Z=W.key.indexOf("Arrow")===0,ue=Ei(W.key,b,a),J=Mn(W.key,b,a),ye=Pn(W.key,b),st=(h?ue:ye)||W.key==="Enter"||W.key.trim()==="";if(d&&n){const Jt=O==null?void 0:O.nodesRef.current.find(lt=>lt.parentId==null),Oe=O&&Jt?ri(O.nodesRef.current,Jt.id):null;if(Z&&Oe&&A){const lt=new KeyboardEvent("keydown",{key:W.key,bubbles:!0});if(ue||J){var pe,Te;const dr=((pe=Oe.context)==null?void 0:pe.elements.domReference)===W.currentTarget,Qt=J&&!dr?(Te=Oe.context)==null?void 0:Te.elements.domReference:ue?i.current.find(en=>(en==null?void 0:en.id)===K):null;Qt&&(oe(W),Qt.dispatchEvent(lt),q(void 0))}if(ye&&Oe.context&&Oe.context.open&&Oe.parentId&&W.currentTarget!==Oe.context.elements.domReference){var ct;oe(W),(ct=Oe.context.elements.domReference)==null||ct.dispatchEvent(lt);return}}return be(W)}if(!(!n&&!x&&Z)){if(st&&(v.current=h&&ye?null:W.key),h){ue&&(oe(W),n?(P.current=Mt(i,j.current),k(P.current)):r(!0,W.nativeEvent,"list-navigation"));return}ye&&(l!=null&&(P.current=l),oe(W),!n&&x?r(!0,W.nativeEvent,"list-navigation"):be(W),n&&k(P.current))}},onFocus(){n&&!d&&k(null)},onPointerDown:X,onMouseDown:$,onClick:$}},[K,we,be,j,p,i,h,k,r,n,x,b,a,l,O,d,A]);return m.useMemo(()=>u?{reference:Ke,floating:ge,item:G}:{},[u,Ke,ge,G])}const Ii=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ti(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,c=(n=Ii.get(s))!=null?n:s,u=it(),g=We()!=null,f=m.useMemo(()=>c==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?o:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&g&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[c,o,g,r,u,s]),h=m.useMemo(()=>{const d={id:o,...c&&{role:c}};return c==="tooltip"||s==="label"?d:{...d,...c==="menu"&&{"aria-labelledby":u}}},[c,o,u,s]),a=m.useCallback(d=>{let{active:p,selected:w}=d;const x={role:"option",...p&&{id:o+"-option"}};switch(s){case"select":return{...x,"aria-selected":p&&w};case"combobox":return{...x,...p&&{"aria-selected":!0}}}return{}},[o,s]);return m.useMemo(()=>i?{reference:f,floating:h,item:a}:{},[i,f,h,a])}function Oi(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:c,onTypingChange:u,enabled:l=!0,findMatch:g=null,resetMs:f=750,ignoreKeys:h=[],selectedIndex:a=null}=t,d=m.useRef(),p=m.useRef(""),w=m.useRef((n=a??s)!=null?n:-1),x=m.useRef(null),E=ie(c),b=ie(u),y=de(g),S=de(h);z(()=>{r&&(clearTimeout(d.current),x.current=null,p.current="")},[r]),z(()=>{if(r&&p.current===""){var O;w.current=(O=a??s)!=null?O:-1}},[r,a,s]);const A=ie(O=>{O?o.current.typing||(o.current.typing=O,b(O)):o.current.typing&&(o.current.typing=O,b(O))}),_=ie(O=>{function k(I,R,D){const V=y.current?y.current(R,D):R.find(T=>(T==null?void 0:T.toLocaleLowerCase().indexOf(D.toLocaleLowerCase()))===0);return V?I.indexOf(V):-1}const M=i.current;if(p.current.length>0&&p.current[0]!==" "&&(k(M,M,p.current)===-1?A(!1):O.key===" "&&oe(O)),M==null||S.current.includes(O.key)||O.key.length!==1||O.ctrlKey||O.metaKey||O.altKey)return;r&&O.key!==" "&&(oe(O),A(!0)),M.every(I=>{var R,D;return I?((R=I[0])==null?void 0:R.toLocaleLowerCase())!==((D=I[1])==null?void 0:D.toLocaleLowerCase()):!0})&&p.current===O.key&&(p.current="",w.current=x.current),p.current+=O.key,clearTimeout(d.current),d.current=setTimeout(()=>{p.current="",w.current=x.current,A(!1)},f);const v=w.current,C=k(M,[...M.slice((v||0)+1),...M.slice(0,(v||0)+1)],p.current);C!==-1?(E(C),x.current=C):O.key!==" "&&(p.current="",A(!1))}),B=m.useMemo(()=>({onKeyDown:_}),[_]),H=m.useMemo(()=>({onKeyDown:_,onKeyUp(O){O.key===" "&&A(!1)}}),[_,A]);return m.useMemo(()=>l?{reference:B,floating:H}:{},[l,B,H])}function Sn(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=0,c=i-1;s<i;c=s++){const[u,l]=t[s]||[0,0],[g,f]=t[c]||[0,0];l>=r!=f>=r&&n<=(g-u)*(r-l)/(f-l)+u&&(o=!o)}return o}function Pi(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Mi(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,c=null,u=performance.now();function l(f,h){const a=performance.now(),d=a-u;if(s===null||c===null||d===0)return s=f,c=h,u=a,null;const p=f-s,w=h-c,E=Math.sqrt(p*p+w*w)/d;return s=f,c=h,u=a,E}const g=f=>{let{x:h,y:a,placement:d,elements:p,onClose:w,nodeId:x,tree:E}=f;return function(y){function S(){clearTimeout(o),w()}if(clearTimeout(o),!p.domReference||!p.floating||d==null||h==null||a==null)return;const{clientX:A,clientY:_}=y,B=[A,_],H=Re(y),O=y.type==="mouseleave",k=ee(p.floating,H),M=ee(p.domReference,H),P=p.domReference.getBoundingClientRect(),v=p.floating.getBoundingClientRect(),C=d.split("-")[0],I=h>v.right-v.width/2,R=a>v.bottom-v.height/2,D=Pi(B,P),V=v.width>P.width,T=v.height>P.height,j=(V?P:v).left,re=(V?P:v).right,ce=(T?P:v).top,le=(T?P:v).bottom;if(k&&(i=!0,!O))return;if(M&&(i=!1),M&&!O){i=!0;return}if(O&&Y(y.relatedTarget)&&ee(p.floating,y.relatedTarget)||E&&_e(E.nodesRef.current,x).some(N=>{let{context:F}=N;return F==null?void 0:F.open}))return;if(C==="top"&&a>=P.bottom-1||C==="bottom"&&a<=P.top+1||C==="left"&&h>=P.right-1||C==="right"&&h<=P.left+1)return S();let L=[];switch(C){case"top":L=[[j,P.top+1],[j,v.bottom-1],[re,v.bottom-1],[re,P.top+1]];break;case"bottom":L=[[j,v.top+1],[j,P.bottom-1],[re,P.bottom-1],[re,v.top+1]];break;case"left":L=[[v.right-1,le],[v.right-1,ce],[P.left+1,ce],[P.left+1,le]];break;case"right":L=[[P.right-1,le],[P.right-1,ce],[v.left+1,ce],[v.left+1,le]];break}function K(N){let[F,q]=N;switch(C){case"top":{const U=[V?F+t/2:I?F+t*4:F-t*4,q+t+1],Q=[V?F-t/2:I?F+t*4:F-t*4,q+t+1],G=[[v.left,I||V?v.bottom-t:v.top],[v.right,I?V?v.bottom-t:v.top:v.bottom-t]];return[U,Q,...G]}case"bottom":{const U=[V?F+t/2:I?F+t*4:F-t*4,q-t],Q=[V?F-t/2:I?F+t*4:F-t*4,q-t],G=[[v.left,I||V?v.top+t:v.bottom],[v.right,I?V?v.top+t:v.bottom:v.top+t]];return[U,Q,...G]}case"left":{const U=[F+t+1,T?q+t/2:R?q+t*4:q-t*4],Q=[F+t+1,T?q-t/2:R?q+t*4:q-t*4];return[...[[R||T?v.right-t:v.left,v.top],[R?T?v.right-t:v.left:v.right-t,v.bottom]],U,Q]}case"right":{const U=[F-t,T?q+t/2:R?q+t*4:q-t*4],Q=[F-t,T?q-t/2:R?q+t*4:q-t*4],G=[[R||T?v.left+t:v.right,v.top],[R?T?v.left+t:v.right:v.left+t,v.bottom]];return[U,Q,...G]}}}if(!Sn([A,_],L)){if(i&&!D)return S();if(!O&&r){const N=l(y.clientX,y.clientY);if(N!==null&&N<.1)return S()}Sn([A,_],K([h,a]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return g.__options={blockPointerEvents:n},g}const ar=ve.createContext({}),fr=ve.createContext(null),Si=()=>{const e=ve.useContext(fr);if(e==null)throw new Error("Tooltip components must be wrapped in <HammerProvider /> or <TooltipGroupContext.Provider />");return e},Ai=e=>{var t,n;const{layoutStyles:r,componentProps:o}=nn.J(e),{themeData:i,localizationData:s,children:c,className:u,style:l,...g}=o,{theme:f=mr.x,mode:h="light"}=i??{},{locale:a="en",dir:d="ltr",translations:p={}}=s??{},{className:w}=tn.E({theme:f,mode:h}),x=pr.G(w,u),E={...l,...r},b=nn.H(),[y,S]=ve.useState(!1),A=parseInt(((n=(t=hr.primitive)==null?void 0:t.Duration)==null?void 0:n.value.replace("ms",""))??"200",10),_=ve.useMemo(()=>({disableDelayGroup:S}),[y]);return $e.fr.jsx(ar.Provider,{value:{breakpoint:b},children:$e.fr.jsx(tn.C.Provider,{value:{theme:f,mode:h},children:$e.fr.jsx(fr.Provider,{value:_,children:y?$e.fr.jsx(rn.LocalizationProvider,{translationData:{locale:a,dir:d,translations:p},className:x,style:E,...g,children:c}):$e.fr.jsx(ei,{delay:A,children:$e.fr.jsx(rn.LocalizationProvider,{translationData:{locale:a,dir:d,translations:p},className:x,style:E,...g,children:c})})})})})};exports.FloatingArrow=Go;exports.FloatingFocusManager=gi;exports.FloatingList=Ho;exports.FloatingNode=Zo;exports.FloatingPortal=di;exports.FloatingTree=Jo;exports.M=ar;exports.X=Si;exports.Y=Ai;exports.arrow=ko;exports.autoUpdate=yo;exports.flip=Ao;exports.limitShift=So;exports.offset=Po;exports.safePolygon=Mi;exports.shift=Mo;exports.size=Do;exports.useClick=pi;exports.useDelayGroup=ti;exports.useDelayGroupContext=rr;exports.useDismiss=bi;exports.useFloating=xi;exports.useFloatingNodeId=Xo;exports.useFloatingParentNodeId=We;exports.useFloatingTree=Be;exports.useFocus=wi;exports.useHover=Qo;exports.useInteractions=Ri;exports.useListItem=qo;exports.useListNavigation=Ci;exports.useMergeRefs=Lo;exports.useRole=Ti;exports.useTypeahead=Oi;
|
|
5
|
+
//# sourceMappingURL=index-628a2685.cjs.map
|