@maildeno/editor 0.4.5 → 0.4.7
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 +83 -0
- package/dist/DatePicker-DIaGGAVI.js +5347 -0
- package/dist/DatePicker-DmMga5gQ.js +5347 -0
- package/dist/Dialog-GTfGtduh.js +6294 -0
- package/dist/HealthIndicator--ScSxVRA.js +1216 -0
- package/dist/HealthIndicator-BraAh2Aj.js +1217 -0
- package/dist/Icon-BYmOM482.js +2537 -0
- package/dist/Icon-c2SPT3-6.js +2577 -0
- package/dist/PreviewCanvas-C1-rP9-B.js +533 -0
- package/dist/PreviewCanvas-Nro7tNCn.js +533 -0
- package/dist/RichTextEditor-CrYhiAOo.js +12217 -0
- package/dist/RichTextEditor-D7Itx0fL.js +12218 -0
- package/dist/RowPreviewChildren-B66HbFdX.js +4 -0
- package/dist/RowPreviewChildren-DvrE9HTT.js +4 -0
- package/dist/{RowPreviewLegacyComponent-DVxrCJ14.js → RowPreviewLegacyComponent-CPqaWwsE.js} +1 -1
- package/dist/{RowPreviewRow-0pEQLmS4.js → RowPreviewRow-B91YPfoz.js} +1 -1
- package/dist/{RowPreviewRow-Eum1wh1W.js → RowPreviewRow-MaA-9ApX.js} +2 -2
- package/dist/SavedRowsPanel-CF-7R3q_.js +492 -0
- package/dist/SavedRowsPanel-TLOEvs3Z.js +491 -0
- package/dist/_plugin-vue_export-helper-Dj7HTbfw.js +8 -0
- package/dist/components/features/emailBuilder/EmailEditor.vue.d.ts +3 -3
- package/dist/composables/emailBuilder/transform/pipeline/optimize.d.ts +4 -4
- package/dist/editor.css +1 -1
- package/dist/element-CeRQDEn3.js +21396 -0
- package/dist/element.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +8220 -41805
- package/dist/init.js +17 -16
- package/dist/mergeTagDefinitions-Cler19nv.js +27 -0
- package/dist/useEmailBuilder-CjJoxzTi.js +4893 -0
- package/dist/useEmailBuilder-gOc8otd8.js +4893 -0
- package/dist/useToast-DeNMwkP3.js +194 -0
- package/dist/{vue.runtime.esm-bundler-CsdyQceJ.js → vue.runtime.esm-bundler-D2AjRP90.js} +0 -1
- package/package.json +4 -2
- package/dist/adapters/index.d.ts +0 -38
- package/dist/baseStyles.d.ts +0 -13
- package/dist/blocks/canvasStyleHelpers.d.ts +0 -17
- package/dist/blocks/definitions/anchor.d.ts +0 -2
- package/dist/blocks/definitions/button.d.ts +0 -2
- package/dist/blocks/definitions/divider.d.ts +0 -2
- package/dist/blocks/definitions/heading.d.ts +0 -2
- package/dist/blocks/definitions/image.d.ts +0 -2
- package/dist/blocks/definitions/list.d.ts +0 -2
- package/dist/blocks/definitions/menu.d.ts +0 -2
- package/dist/blocks/definitions/paragraph.d.ts +0 -2
- package/dist/blocks/definitions/socials.d.ts +0 -2
- package/dist/blocks/definitions/spacer.d.ts +0 -2
- package/dist/blocks/definitions/video.d.ts +0 -2
- package/dist/blocks/index.d.ts +0 -8
- package/dist/brand.d.ts +0 -15
- package/dist/components/DesktopOnlyNotice.vue.d.ts +0 -20
- package/dist/components/features/emailBuilder/assistant/AssistantPanel.vue.d.ts +0 -37
- package/dist/components/features/emailBuilder/blocks/AnchorBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/ButtonBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/DividerBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/HeadingBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/ImageBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/ListBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/MenuBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/ParagraphBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/SocialsBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/SpacerBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/blocks/VideoBlock.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/canvas/Canvas.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/canvas/CanvasColumn.vue.d.ts +0 -49
- package/dist/components/features/emailBuilder/canvas/CanvasComponent.vue.d.ts +0 -56
- package/dist/components/features/emailBuilder/canvas/CanvasElement.vue.d.ts +0 -21
- package/dist/components/features/emailBuilder/canvas/CanvasRow.vue.d.ts +0 -49
- package/dist/components/features/emailBuilder/canvas/CanvasRowSpacer.vue.d.ts +0 -40
- package/dist/components/features/emailBuilder/health/HealthIndicator.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/layout/Header.vue.d.ts +0 -54
- package/dist/components/features/emailBuilder/layout/SendEmail.vue.d.ts +0 -21
- package/dist/components/features/emailBuilder/layout/SidebarLeft.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/layout/SidebarRight.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/AnchorPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/ButtonPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/DividerPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/HeadingPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/ImagePanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/ListPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/MenuPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/ParagraphPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/RowColumnPanel.vue.d.ts +0 -13
- package/dist/components/features/emailBuilder/panels/RowPanel.vue.d.ts +0 -13
- package/dist/components/features/emailBuilder/panels/RowSpacerPanel.vue.d.ts +0 -13
- package/dist/components/features/emailBuilder/panels/SocialsPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/SpacerPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/VideoPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/panels/shared/DeviceTabs.vue.d.ts +0 -19
- package/dist/components/features/emailBuilder/panels/shared/LinkFieldMergeTags.vue.d.ts +0 -31
- package/dist/components/features/emailBuilder/panels/shared/OverrideBadge.vue.d.ts +0 -9
- package/dist/components/features/emailBuilder/panels/shared/PreviewBadge.vue.d.ts +0 -11
- package/dist/components/features/emailBuilder/panels/shared/TextFieldMergeTags.vue.d.ts +0 -25
- package/dist/components/features/emailBuilder/panels/ui/BoxStylingSection.vue.d.ts +0 -7
- package/dist/components/features/emailBuilder/panels/ui/PropertyAlignment.vue.d.ts +0 -30
- package/dist/components/features/emailBuilder/panels/ui/PropertyColor.vue.d.ts +0 -75
- package/dist/components/features/emailBuilder/panels/ui/PropertyGradientColor.vue.d.ts +0 -27
- package/dist/components/features/emailBuilder/panels/ui/PropertyNumberSlider.vue.d.ts +0 -74
- package/dist/components/features/emailBuilder/panels/ui/PropertySection.vue.d.ts +0 -17
- package/dist/components/features/emailBuilder/panels/ui/PropertySelect.vue.d.ts +0 -74
- package/dist/components/features/emailBuilder/panels/ui/PropertyTextStyle.vue.d.ts +0 -52
- package/dist/components/features/emailBuilder/panels/ui/PropertyTextStylePanel.vue.d.ts +0 -72
- package/dist/components/features/emailBuilder/panels/ui/PropertyToggle.vue.d.ts +0 -45
- package/dist/components/features/emailBuilder/panels/ui/PropertyVisibility.vue.d.ts +0 -32
- package/dist/components/features/emailBuilder/panels/ui/SpacingControl.vue.d.ts +0 -19
- package/dist/components/features/emailBuilder/panels/ui/color-picker/AlphaSlider.vue.d.ts +0 -28
- package/dist/components/features/emailBuilder/panels/ui/color-picker/ColorPickerPanel.vue.d.ts +0 -31
- package/dist/components/features/emailBuilder/panels/ui/color-picker/HueSlider.vue.d.ts +0 -19
- package/dist/components/features/emailBuilder/panels/ui/color-picker/RecentColors.vue.d.ts +0 -20
- package/dist/components/features/emailBuilder/panels/ui/color-picker/SVPanel.vue.d.ts +0 -39
- package/dist/components/features/emailBuilder/panels/ui/visibility-rule/Rule.vue.d.ts +0 -28
- package/dist/components/features/emailBuilder/preview/PreviewScreen.vue.d.ts +0 -7
- package/dist/components/features/emailBuilder/preview/ui/PreviewCanvas.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/preview/ui/PreviewCapabilityBadges.vue.d.ts +0 -12
- package/dist/components/features/emailBuilder/preview/ui/PreviewClientCard.vue.d.ts +0 -20
- package/dist/components/features/emailBuilder/preview/ui/PreviewClientList.vue.d.ts +0 -21
- package/dist/components/features/emailBuilder/preview/ui/PreviewClientPicker.vue.d.ts +0 -16
- package/dist/components/features/emailBuilder/preview/ui/PreviewComponent.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/preview/ui/PreviewDetailView.vue.d.ts +0 -41
- package/dist/components/features/emailBuilder/preview/ui/PreviewRendered.vue.d.ts +0 -8
- package/dist/components/features/emailBuilder/product/RowPreview.vue.d.ts +0 -8
- package/dist/components/features/emailBuilder/product/RowPreviewChildren.vue.d.ts +0 -14
- package/dist/components/features/emailBuilder/product/RowPreviewLegacyComponent.vue.d.ts +0 -14
- package/dist/components/features/emailBuilder/product/RowPreviewRow.vue.d.ts +0 -9
- package/dist/components/features/emailBuilder/product/SavedRowsPanel.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/product/SavedTemplatesPanel.vue.d.ts +0 -13
- package/dist/components/features/emailBuilder/product/VersionHistoryPanel.vue.d.ts +0 -14
- package/dist/components/features/emailBuilder/sidebar/SidebarBlockButton.vue.d.ts +0 -35
- package/dist/components/features/emailBuilder/tabs/GeneralTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/tabs/LayoutTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/tabs/content/ContentTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/tabs/content/LayersPanel.vue.d.ts +0 -7
- package/dist/components/features/emailBuilder/tabs/general/MergeTagsTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/tabs/general/StylesTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/tabs/general/VisibilityTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/tabs/general/VisibilityWrapESPTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/tabs/general/merge-tags/LinkTagTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/tabs/general/merge-tags/MergeTagTab.vue.d.ts +0 -3
- package/dist/components/features/emailBuilder/ui/LinkInputDialog.vue.d.ts +0 -17
- package/dist/components/features/emailBuilder/ui/canvas/CanvasRowDropZone.vue.d.ts +0 -12
- package/dist/components/features/emailBuilder/ui/canvas/DropZone.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/canvas/Loader.vue.d.ts +0 -19
- package/dist/components/features/emailBuilder/ui/layers-panel/ComponentIcon.vue.d.ts +0 -7
- package/dist/components/features/emailBuilder/ui/layers-panel/LayerColumnChildren.vue.d.ts +0 -42
- package/dist/components/features/emailBuilder/ui/layers-panel/LayerDropLine.vue.d.ts +0 -8
- package/dist/components/features/emailBuilder/ui/renderers/AnchorRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/DividerRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/HeadingRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/ImageRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/ListRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/MenuRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/ParagraphRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/SocialsRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/SpacerRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/renderers/VideoRenderer.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/rich-text-editor/RichTextEditor.vue.d.ts +0 -12
- package/dist/components/features/emailBuilder/ui/rich-text-editor/pickers/MergeTagPicker.vue.d.ts +0 -18
- package/dist/components/features/emailBuilder/ui/rich-text-editor/pickers/RichTextColorPicker.vue.d.ts +0 -15
- package/dist/components/features/emailBuilder/ui/visibility/SupportBadge.vue.d.ts +0 -10
- package/dist/components/features/emailBuilder/ui/visibility/VisibilityPopover.vue.d.ts +0 -45
- package/dist/components/ui/ConfirmDialog.vue.d.ts +0 -3
- package/dist/components/ui/Icon.vue.d.ts +0 -33
- package/dist/components/ui/InfoDialog.vue.d.ts +0 -12
- package/dist/components/ui/Loading.vue.d.ts +0 -6
- package/dist/components/ui/ShadowSafeToast.vue.d.ts +0 -3
- package/dist/components/ui/primitives/Button.vue.d.ts +0 -23
- package/dist/components/ui/primitives/DatePicker.vue.d.ts +0 -16
- package/dist/components/ui/primitives/Dialog.vue.d.ts +0 -34
- package/dist/components/ui/primitives/InputText.vue.d.ts +0 -29
- package/dist/components/ui/primitives/Message.vue.d.ts +0 -20
- package/dist/components/ui/primitives/Select.vue.d.ts +0 -22
- package/dist/composables/emailBuilder/components/useComponentStyleEditor.d.ts +0 -72
- package/dist/composables/emailBuilder/components/useProductRowActions.d.ts +0 -3
- package/dist/composables/emailBuilder/components/useProductRows.d.ts +0 -59
- package/dist/composables/emailBuilder/components/useSystemRows.d.ts +0 -22
- package/dist/composables/emailBuilder/core/config/componentConfig.d.ts +0 -29
- package/dist/composables/emailBuilder/core/link-tags/useLinkTagInsert.d.ts +0 -13
- package/dist/composables/emailBuilder/core/merge-tags/mergeTagDefinitions.d.ts +0 -64
- package/dist/composables/emailBuilder/core/merge-tags/resolveMergeTags.d.ts +0 -27
- package/dist/composables/emailBuilder/core/ui/useLayerHoverScroll.d.ts +0 -20
- package/dist/composables/emailBuilder/core/ui/useLayoutDrag.d.ts +0 -85
- package/dist/composables/emailBuilder/core/ui/useRichTextEditors.d.ts +0 -6
- package/dist/composables/emailBuilder/core/ui/visibilityBadgeHelpers.d.ts +0 -22
- package/dist/composables/emailBuilder/core/useEmailBuilder.d.ts +0 -292
- package/dist/composables/emailBuilder/core/useEmailBuilderDefault.d.ts +0 -507
- package/dist/composables/emailBuilder/core/useEmailBuilderOperations.d.ts +0 -31
- package/dist/composables/emailBuilder/core/useEmailBuilderVisibility.d.ts +0 -31
- package/dist/composables/emailBuilder/export/actions/download.d.ts +0 -24
- package/dist/composables/emailBuilder/export/generators/html.d.ts +0 -3
- package/dist/composables/emailBuilder/export/generators/mjml.d.ts +0 -6
- package/dist/composables/emailBuilder/export/generators/react-email.d.ts +0 -61
- package/dist/composables/emailBuilder/export/helpers/generatorHelpers.d.ts +0 -53
- package/dist/composables/emailBuilder/export/logic/reactLogicWrapper.d.ts +0 -31
- package/dist/composables/emailBuilder/export/merge-tags/mergeTagMapper.d.ts +0 -42
- package/dist/composables/emailBuilder/export/merge-tags/reactMergeTagMapper.d.ts +0 -26
- package/dist/composables/emailBuilder/export/shared/containers.d.ts +0 -18
- package/dist/composables/emailBuilder/export/shared/styles.d.ts +0 -12
- package/dist/composables/emailBuilder/export/shared/tagIdentifier.d.ts +0 -1
- package/dist/composables/emailBuilder/export/targets/htmlExport.d.ts +0 -20
- package/dist/composables/emailBuilder/export/targets/jsonExport.d.ts +0 -28
- package/dist/composables/emailBuilder/export/targets/mjmlExport.d.ts +0 -19
- package/dist/composables/emailBuilder/export/targets/reactEmailExport.d.ts +0 -20
- package/dist/composables/emailBuilder/export/targets/templateSnapshot.d.ts +0 -24
- package/dist/composables/emailBuilder/export/transformers/espWrapper.d.ts +0 -2
- package/dist/composables/emailBuilder/export/transformers/formatting.d.ts +0 -3
- package/dist/composables/emailBuilder/export/transformers/minify.d.ts +0 -33
- package/dist/composables/emailBuilder/export/transformers/tagMapper.d.ts +0 -29
- package/dist/composables/emailBuilder/export/types/export.d.ts +0 -24
- package/dist/composables/emailBuilder/export/useEmailExportEngine.d.ts +0 -63
- package/dist/composables/emailBuilder/export/useEmailExportMobileStyles.d.ts +0 -3
- package/dist/composables/emailBuilder/export/useExportSettings.d.ts +0 -5
- package/dist/composables/emailBuilder/health/accessibilityChecker.d.ts +0 -64
- package/dist/composables/emailBuilder/health/healthIndicator.d.ts +0 -19
- package/dist/composables/emailBuilder/history/useEmailBuilderHistory.d.ts +0 -26
- package/dist/composables/emailBuilder/history/useHistory.d.ts +0 -16
- package/dist/composables/emailBuilder/preview/useClientPreview.d.ts +0 -127
- package/dist/composables/emailBuilder/transform/pipeline/hydrate.d.ts +0 -54
- package/dist/composables/emailBuilder/types/emailBuilder.d.ts +0 -79
- package/dist/composables/system/useColor.d.ts +0 -26
- package/dist/composables/system/useDeviceDetection.d.ts +0 -5
- package/dist/composables/system/useGoogleFonts.d.ts +0 -11
- package/dist/composables/system/useImageUpload.d.ts +0 -23
- package/dist/composables/system/useSavedRowsPanel.d.ts +0 -35
- package/dist/composables/ui/useConfirm.d.ts +0 -33
- package/dist/composables/ui/useInfoDialog.d.ts +0 -22
- package/dist/composables/ui/useTeleportTarget.d.ts +0 -49
- package/dist/composables/ui/useToast.d.ts +0 -32
- package/dist/devStyleMirror.d.ts +0 -20
- package/dist/documentScopedStyles.d.ts +0 -39
- package/dist/element-Dq6bmt2l.js +0 -48454
- package/dist/lightDom.d.ts +0 -30
- package/dist/shadowStyles.d.ts +0 -8
- package/dist/utils/generateId.d.ts +0 -1
- package/dist/utils/shadowDom.d.ts +0 -30
|
@@ -0,0 +1,2537 @@
|
|
|
1
|
+
import { $ as sn, A as ln, B as ee, E as fe, F as nt, I as un, J as Rt, K as L, L as U, M as te, N as cn, O as Te, P as Dt, Q as fn, R as Lt, T as I, W as dn, X as ge, _ as se, at as Me, bt as pn, ct as ve, d as vn, dt as Xe, et as Ft, f as mn, ft as F, h as b, ht as _t, it as Nt, j as Ge, k as kt, lt as $t, m as hn, mt as P, nt as Ie, p as yn, pt as gn, q as le, st as S, t as wn, tt as Bt, ut as bn, v as xn, vt as Wt, y as It } from "./vue.runtime.esm-bundler-D2AjRP90.js";
|
|
2
|
+
var Ht = /* @__PURE__ */ Symbol("maildeno-editor:teleport-target");
|
|
3
|
+
function bo(e) {
|
|
4
|
+
Lt(Ht, e);
|
|
5
|
+
}
|
|
6
|
+
function En() {
|
|
7
|
+
const e = kt(Ht, void 0);
|
|
8
|
+
return e === void 0 ? (console.warn(`[maildeno-editor] useTeleportTarget() couldn't find a provided target — falling back to "body". If this is running inside the custom-element (Shadow DOM) path, teleported content will render unstyled.`), "body") : e;
|
|
9
|
+
}
|
|
10
|
+
function xo() {
|
|
11
|
+
const e = En();
|
|
12
|
+
return b(() => typeof e == "string" ? e : e.value ?? void 0);
|
|
13
|
+
}
|
|
14
|
+
function rt(e, t) {
|
|
15
|
+
const n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
16
|
+
return [(a) => {
|
|
17
|
+
const s = kt(r, a);
|
|
18
|
+
if (s || s === null) return s;
|
|
19
|
+
throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
|
|
20
|
+
}, (a) => (Lt(r, a), a)];
|
|
21
|
+
}
|
|
22
|
+
function Q() {
|
|
23
|
+
let e = document.activeElement;
|
|
24
|
+
if (e == null) return null;
|
|
25
|
+
for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null; ) e = e.shadowRoot.activeElement;
|
|
26
|
+
return e;
|
|
27
|
+
}
|
|
28
|
+
function qt(e, t, n) {
|
|
29
|
+
const r = n.originalEvent.target, i = new CustomEvent(e, {
|
|
30
|
+
bubbles: !1,
|
|
31
|
+
cancelable: !0,
|
|
32
|
+
detail: n
|
|
33
|
+
});
|
|
34
|
+
t && r.addEventListener(e, t, { once: !0 }), r.dispatchEvent(i);
|
|
35
|
+
}
|
|
36
|
+
function On(e) {
|
|
37
|
+
return e == null;
|
|
38
|
+
}
|
|
39
|
+
function ot(e, t) {
|
|
40
|
+
return Bt() ? (Nt(e, t), !0) : !1;
|
|
41
|
+
}
|
|
42
|
+
function Eo() {
|
|
43
|
+
const e = /* @__PURE__ */ new Set(), t = (o) => {
|
|
44
|
+
e.delete(o);
|
|
45
|
+
};
|
|
46
|
+
return {
|
|
47
|
+
on: (o) => {
|
|
48
|
+
e.add(o);
|
|
49
|
+
const a = () => t(o);
|
|
50
|
+
return ot(a), { off: a };
|
|
51
|
+
},
|
|
52
|
+
off: t,
|
|
53
|
+
trigger: (...o) => Promise.all(Array.from(e).map((a) => a(...o))),
|
|
54
|
+
clear: () => {
|
|
55
|
+
e.clear();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function An(e) {
|
|
60
|
+
let t = !1, n;
|
|
61
|
+
const r = Ft(!0);
|
|
62
|
+
return ((...i) => (t || (n = r.run(() => e(...i)), t = !0), n));
|
|
63
|
+
}
|
|
64
|
+
var N = typeof window < "u" && typeof document < "u", Oo = typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope, Pn = (e) => typeof e < "u", Sn = Object.prototype.toString, Cn = (e) => Sn.call(e) === "[object Object]", mt = /* @__PURE__ */ Tn();
|
|
65
|
+
function Tn() {
|
|
66
|
+
var e, t, n;
|
|
67
|
+
return N && !!(!((e = window) === null || e === void 0 || (e = e.navigator) === null || e === void 0) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) === null || t === void 0 || (t = t.navigator) === null || t === void 0 ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test((n = window) === null || n === void 0 ? void 0 : n.navigator.userAgent));
|
|
68
|
+
}
|
|
69
|
+
function He(e) {
|
|
70
|
+
return Array.isArray(e) ? e : [e];
|
|
71
|
+
}
|
|
72
|
+
function zt(e) {
|
|
73
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
74
|
+
return ((n) => t[n] || (t[n] = e(n)));
|
|
75
|
+
}
|
|
76
|
+
var Mn = /\B([A-Z])/g, Ao = zt((e) => e.replace(Mn, "-$1").toLowerCase()), Rn = /-(\w)/g, Po = zt((e) => e.replace(Rn, (t, n) => n ? n.toUpperCase() : ""));
|
|
77
|
+
function Dn(e) {
|
|
78
|
+
return e || fe();
|
|
79
|
+
}
|
|
80
|
+
function Ln(e) {
|
|
81
|
+
if (!N) return e;
|
|
82
|
+
let t = 0, n, r;
|
|
83
|
+
const i = () => {
|
|
84
|
+
t -= 1, r && t <= 0 && (r.stop(), n = void 0, r = void 0);
|
|
85
|
+
};
|
|
86
|
+
return ((...o) => (t += 1, r || (r = Ft(!0), n = r.run(() => e(...o))), ot(i), n));
|
|
87
|
+
}
|
|
88
|
+
function Fn(e) {
|
|
89
|
+
return Ie(e) ? Me(new Proxy({}, {
|
|
90
|
+
get(t, n, r) {
|
|
91
|
+
return P(Reflect.get(e.value, n, r));
|
|
92
|
+
},
|
|
93
|
+
set(t, n, r) {
|
|
94
|
+
return Ie(e.value[n]) && !Ie(r) ? e.value[n].value = r : e.value[n] = r, !0;
|
|
95
|
+
},
|
|
96
|
+
deleteProperty(t, n) {
|
|
97
|
+
return Reflect.deleteProperty(e.value, n);
|
|
98
|
+
},
|
|
99
|
+
has(t, n) {
|
|
100
|
+
return Reflect.has(e.value, n);
|
|
101
|
+
},
|
|
102
|
+
ownKeys() {
|
|
103
|
+
return Object.keys(e.value);
|
|
104
|
+
},
|
|
105
|
+
getOwnPropertyDescriptor() {
|
|
106
|
+
return {
|
|
107
|
+
enumerable: !0,
|
|
108
|
+
configurable: !0
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
})) : Me(e);
|
|
112
|
+
}
|
|
113
|
+
function _n(e) {
|
|
114
|
+
return Fn(b(e));
|
|
115
|
+
}
|
|
116
|
+
function So(e, ...t) {
|
|
117
|
+
const n = t.flat(), r = n[0];
|
|
118
|
+
return _n(() => Object.fromEntries(typeof r == "function" ? Object.entries(Xe(e)).filter(([i, o]) => !r(F(o), i)) : Object.entries(Xe(e)).filter((i) => !n.includes(i[0]))));
|
|
119
|
+
}
|
|
120
|
+
function Co(e, t = 1e4) {
|
|
121
|
+
return sn((n, r) => {
|
|
122
|
+
let i = F(e), o;
|
|
123
|
+
const a = () => setTimeout(() => {
|
|
124
|
+
i = F(e), r();
|
|
125
|
+
}, F(t));
|
|
126
|
+
return ot(() => {
|
|
127
|
+
clearTimeout(o);
|
|
128
|
+
}), {
|
|
129
|
+
get() {
|
|
130
|
+
return n(), i;
|
|
131
|
+
},
|
|
132
|
+
set(s) {
|
|
133
|
+
i = s, r(), clearTimeout(o), o = a();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function Nn(e, t) {
|
|
139
|
+
Dn(t) && cn(e, t);
|
|
140
|
+
}
|
|
141
|
+
function kn(e, t, n) {
|
|
142
|
+
return L(e, t, {
|
|
143
|
+
...n,
|
|
144
|
+
immediate: !0
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
var it = N ? window : void 0, To = N ? window.document : void 0, Mo = N ? window.navigator : void 0, Ro = N ? window.location : void 0;
|
|
148
|
+
function be(e) {
|
|
149
|
+
var t;
|
|
150
|
+
const n = F(e);
|
|
151
|
+
return (t = n?.$el) !== null && t !== void 0 ? t : n;
|
|
152
|
+
}
|
|
153
|
+
function Vt(...e) {
|
|
154
|
+
const t = (r, i, o, a) => (r.addEventListener(i, o, a), () => r.removeEventListener(i, o, a)), n = b(() => {
|
|
155
|
+
const r = He(F(e[0])).filter((i) => i != null);
|
|
156
|
+
return r.every((i) => typeof i != "string") ? r : void 0;
|
|
157
|
+
});
|
|
158
|
+
return kn(() => {
|
|
159
|
+
var r, i;
|
|
160
|
+
return [
|
|
161
|
+
(r = (i = n.value) === null || i === void 0 ? void 0 : i.map((o) => be(o))) !== null && r !== void 0 ? r : [it].filter((o) => o != null),
|
|
162
|
+
He(F(n.value ? e[1] : e[0])),
|
|
163
|
+
He(P(n.value ? e[2] : e[1])),
|
|
164
|
+
F(n.value ? e[3] : e[2])
|
|
165
|
+
];
|
|
166
|
+
}, ([r, i, o, a], s, f) => {
|
|
167
|
+
if (!r?.length || !i?.length || !o?.length) return;
|
|
168
|
+
const p = Cn(a) ? { ...a } : a, d = r.flatMap((u) => i.flatMap((c) => o.map((l) => t(u, c, l, p))));
|
|
169
|
+
f(() => {
|
|
170
|
+
d.forEach((u) => u());
|
|
171
|
+
});
|
|
172
|
+
}, { flush: "post" });
|
|
173
|
+
}
|
|
174
|
+
function $n() {
|
|
175
|
+
const e = $t(!1), t = fe();
|
|
176
|
+
return t && Dt(() => {
|
|
177
|
+
e.value = !0;
|
|
178
|
+
}, t), e;
|
|
179
|
+
}
|
|
180
|
+
function Bn(e) {
|
|
181
|
+
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
182
|
+
}
|
|
183
|
+
function Wn(...e) {
|
|
184
|
+
let t, n, r = {};
|
|
185
|
+
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
186
|
+
const { target: i = it, eventName: o = "keydown", passive: a = !1, dedupe: s = !1 } = r, f = Bn(t);
|
|
187
|
+
return Vt(i, o, (d) => {
|
|
188
|
+
d.repeat && F(s) || f(d) && n(d);
|
|
189
|
+
}, a);
|
|
190
|
+
}
|
|
191
|
+
function In(e) {
|
|
192
|
+
return JSON.parse(JSON.stringify(e));
|
|
193
|
+
}
|
|
194
|
+
var Do = [
|
|
195
|
+
{
|
|
196
|
+
max: 6e4,
|
|
197
|
+
value: 1e3,
|
|
198
|
+
name: "second"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
max: 276e4,
|
|
202
|
+
value: 6e4,
|
|
203
|
+
name: "minute"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
max: 72e6,
|
|
207
|
+
value: 36e5,
|
|
208
|
+
name: "hour"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
max: 5184e5,
|
|
212
|
+
value: 864e5,
|
|
213
|
+
name: "day"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
max: 24192e5,
|
|
217
|
+
value: 6048e5,
|
|
218
|
+
name: "week"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
max: 28512e6,
|
|
222
|
+
value: 2592e6,
|
|
223
|
+
name: "month"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
max: Number.POSITIVE_INFINITY,
|
|
227
|
+
value: 31536e6,
|
|
228
|
+
name: "year"
|
|
229
|
+
}
|
|
230
|
+
];
|
|
231
|
+
function Lo(e, t, n, r = {}) {
|
|
232
|
+
var i, o;
|
|
233
|
+
const { clone: a = !1, passive: s = !1, eventName: f, deep: p = !1, defaultValue: d, shouldEmit: u } = r, c = fe(), l = n || c?.emit || (c == null || (i = c.$emit) === null || i === void 0 ? void 0 : i.bind(c)) || (c == null || (o = c.proxy) === null || o === void 0 || (o = o.$emit) === null || o === void 0 ? void 0 : o.bind(c?.proxy));
|
|
234
|
+
let m = f;
|
|
235
|
+
t || (t = "modelValue"), m = m || `update:${t.toString()}`;
|
|
236
|
+
const v = (y) => a ? typeof a == "function" ? a(y) : In(y) : y, h = () => Pn(e[t]) ? v(e[t]) : d, g = (y) => {
|
|
237
|
+
u ? u(y) && l(m, y) : l(m, y);
|
|
238
|
+
};
|
|
239
|
+
if (s) {
|
|
240
|
+
const y = S(h());
|
|
241
|
+
let w = !1;
|
|
242
|
+
return L(() => e[t], (x) => {
|
|
243
|
+
w || (w = !0, y.value = v(x), te(() => w = !1));
|
|
244
|
+
}), L(y, (x) => {
|
|
245
|
+
!w && (x !== e[t] || p) && g(x);
|
|
246
|
+
}, { deep: p }), y;
|
|
247
|
+
} else return b({
|
|
248
|
+
get() {
|
|
249
|
+
return h();
|
|
250
|
+
},
|
|
251
|
+
set(y) {
|
|
252
|
+
g(y);
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function at(e) {
|
|
257
|
+
return e ? e.flatMap((t) => t.type === mn ? at(t.children) : [t]) : [];
|
|
258
|
+
}
|
|
259
|
+
var [Fe, Fo] = /* @__PURE__ */ rt("ConfigProvider"), D = /* @__PURE__ */ Me({
|
|
260
|
+
layersRoot: /* @__PURE__ */ new Set(),
|
|
261
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
262
|
+
originalBodyPointerEvents: void 0,
|
|
263
|
+
branches: /* @__PURE__ */ new Set()
|
|
264
|
+
});
|
|
265
|
+
function qe(e) {
|
|
266
|
+
if (e === null || typeof e != "object") return !1;
|
|
267
|
+
const t = Object.getPrototypeOf(e);
|
|
268
|
+
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
269
|
+
}
|
|
270
|
+
function Je(e, t, n = ".", r) {
|
|
271
|
+
if (!qe(t)) return Je(e, {}, n, r);
|
|
272
|
+
const i = { ...t };
|
|
273
|
+
for (const o of Object.keys(e)) {
|
|
274
|
+
if (o === "__proto__" || o === "constructor") continue;
|
|
275
|
+
const a = e[o];
|
|
276
|
+
a != null && (r && r(i, o, a, n) || (Array.isArray(a) && Array.isArray(i[o]) ? i[o] = [...a, ...i[o]] : qe(a) && qe(i[o]) ? i[o] = Je(a, i[o], (n ? `${n}.` : "") + o.toString(), r) : i[o] = a));
|
|
277
|
+
}
|
|
278
|
+
return i;
|
|
279
|
+
}
|
|
280
|
+
function st(e) {
|
|
281
|
+
return (...t) => t.reduce((n, r) => Je(n, r, "", e), {});
|
|
282
|
+
}
|
|
283
|
+
var Hn = st(), _o = st((e, t, n) => {
|
|
284
|
+
if (e[t] !== void 0 && typeof n == "function")
|
|
285
|
+
return e[t] = n(e[t]), !0;
|
|
286
|
+
}), No = st((e, t, n) => {
|
|
287
|
+
if (Array.isArray(e[t]) && typeof n == "function")
|
|
288
|
+
return e[t] = n(e[t]), !0;
|
|
289
|
+
}), qn = Ln(() => {
|
|
290
|
+
const e = S(/* @__PURE__ */ new Map()), t = S(), n = b(() => {
|
|
291
|
+
for (const a of e.value.values()) if (a) return !0;
|
|
292
|
+
return !1;
|
|
293
|
+
}), r = Fe({ scrollBody: S(!0) });
|
|
294
|
+
let i = null;
|
|
295
|
+
const o = () => {
|
|
296
|
+
document.body.style.paddingRight = "", document.body.style.marginRight = "", D.layersWithOutsidePointerEventsDisabled.size === 0 && (document.body.style.pointerEvents = ""), document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", mt && i?.(), t.value = void 0;
|
|
297
|
+
};
|
|
298
|
+
return L(n, (a, s) => {
|
|
299
|
+
if (!N) return;
|
|
300
|
+
if (!a) {
|
|
301
|
+
s && o();
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
t.value === void 0 && (t.value = document.body.style.overflow);
|
|
305
|
+
const f = window.innerWidth - document.documentElement.clientWidth, p = {
|
|
306
|
+
padding: f,
|
|
307
|
+
margin: 0
|
|
308
|
+
}, d = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ? Hn({
|
|
309
|
+
padding: r.scrollBody.value.padding === !0 ? f : r.scrollBody.value.padding,
|
|
310
|
+
margin: r.scrollBody.value.margin === !0 ? f : r.scrollBody.value.margin
|
|
311
|
+
}, p) : p : {
|
|
312
|
+
padding: 0,
|
|
313
|
+
margin: 0
|
|
314
|
+
};
|
|
315
|
+
f > 0 && (document.body.style.paddingRight = typeof d.padding == "number" ? `${d.padding}px` : String(d.padding), document.body.style.marginRight = typeof d.margin == "number" ? `${d.margin}px` : String(d.margin), document.documentElement.style.setProperty("--scrollbar-width", `${f}px`), document.body.style.overflow = "hidden"), mt && (i = Vt(document, "touchmove", (u) => zn(u), { passive: !1 })), te(() => {
|
|
316
|
+
n.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
|
|
317
|
+
});
|
|
318
|
+
}, {
|
|
319
|
+
immediate: !0,
|
|
320
|
+
flush: "sync"
|
|
321
|
+
}), e;
|
|
322
|
+
});
|
|
323
|
+
function ko(e) {
|
|
324
|
+
const t = Math.random().toString(36).substring(2, 7), n = qn();
|
|
325
|
+
n.value.set(t, e ?? !1);
|
|
326
|
+
const r = b({
|
|
327
|
+
get: () => n.value.get(t) ?? !1,
|
|
328
|
+
set: (i) => n.value.set(t, i)
|
|
329
|
+
});
|
|
330
|
+
return Nn(() => {
|
|
331
|
+
n.value.delete(t);
|
|
332
|
+
}), r;
|
|
333
|
+
}
|
|
334
|
+
function jt(e) {
|
|
335
|
+
const t = window.getComputedStyle(e);
|
|
336
|
+
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
337
|
+
{
|
|
338
|
+
const n = e.parentNode;
|
|
339
|
+
return !(n instanceof Element) || n.tagName === "BODY" ? !1 : jt(n);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function zn(e) {
|
|
343
|
+
const t = e || window.event, n = t.target;
|
|
344
|
+
return n instanceof Element && jt(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.cancelable && t.preventDefault(), !1);
|
|
345
|
+
}
|
|
346
|
+
function Vn(e) {
|
|
347
|
+
const t = Fe({ dir: S("ltr") });
|
|
348
|
+
return b(() => e?.value || t.dir?.value || "ltr");
|
|
349
|
+
}
|
|
350
|
+
function jn(e) {
|
|
351
|
+
const t = fe(), n = t?.type.emits, r = {};
|
|
352
|
+
return n?.length || console.warn(`No emitted event found. Please check component: ${t?.type.__name}`), n?.forEach((i) => {
|
|
353
|
+
r[pn(_t(i))] = (...o) => e(i, ...o);
|
|
354
|
+
}), r;
|
|
355
|
+
}
|
|
356
|
+
var ze = 0;
|
|
357
|
+
function $o() {
|
|
358
|
+
le((e) => {
|
|
359
|
+
if (!N) return;
|
|
360
|
+
const t = document.querySelectorAll("[data-reka-focus-guard]");
|
|
361
|
+
document.body.insertAdjacentElement("afterbegin", t[0] ?? ht()), document.body.insertAdjacentElement("beforeend", t[1] ?? ht()), ze++, e(() => {
|
|
362
|
+
ze === 1 && document.querySelectorAll("[data-reka-focus-guard]").forEach((n) => n.remove()), ze--;
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
function ht() {
|
|
367
|
+
const e = document.createElement("span");
|
|
368
|
+
return e.setAttribute("data-reka-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
369
|
+
}
|
|
370
|
+
function _e() {
|
|
371
|
+
const e = fe(), t = S(), n = b(() => r());
|
|
372
|
+
un(() => {
|
|
373
|
+
n.value !== r() && gn(t);
|
|
374
|
+
});
|
|
375
|
+
function r() {
|
|
376
|
+
return t.value && "$el" in t.value && ["#text", "#comment"].includes(t.value.$el.nodeName) ? t.value.$el.nextElementSibling : be(t);
|
|
377
|
+
}
|
|
378
|
+
const i = Object.assign({}, e.exposed), o = {};
|
|
379
|
+
for (const s in e.props) Object.defineProperty(o, s, {
|
|
380
|
+
enumerable: !0,
|
|
381
|
+
configurable: !0,
|
|
382
|
+
get: () => e.props[s]
|
|
383
|
+
});
|
|
384
|
+
if (Object.keys(i).length > 0) for (const s in i) Object.defineProperty(o, s, {
|
|
385
|
+
enumerable: !0,
|
|
386
|
+
configurable: !0,
|
|
387
|
+
get: () => i[s]
|
|
388
|
+
});
|
|
389
|
+
Object.defineProperty(o, "$el", {
|
|
390
|
+
enumerable: !0,
|
|
391
|
+
configurable: !0,
|
|
392
|
+
get: () => e.vnode.el
|
|
393
|
+
}), e.exposed = o;
|
|
394
|
+
function a(s) {
|
|
395
|
+
if (t.value = s, !!s && (Object.defineProperty(o, "$el", {
|
|
396
|
+
enumerable: !0,
|
|
397
|
+
configurable: !0,
|
|
398
|
+
get: () => s instanceof Element ? s : s.$el
|
|
399
|
+
}), !(s instanceof Element) && !Object.hasOwn(s, "$el"))) {
|
|
400
|
+
const f = s.$.exposed, p = Object.assign({}, o);
|
|
401
|
+
for (const d in f) Object.defineProperty(p, d, {
|
|
402
|
+
enumerable: !0,
|
|
403
|
+
configurable: !0,
|
|
404
|
+
get: () => f[d]
|
|
405
|
+
});
|
|
406
|
+
e.exposed = p;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return {
|
|
410
|
+
forwardRef: a,
|
|
411
|
+
currentRef: t,
|
|
412
|
+
currentElement: n
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
function Un(e) {
|
|
416
|
+
const t = fe(), n = Object.keys(t?.type.props ?? {}).reduce((i, o) => {
|
|
417
|
+
const a = (t?.type.props[o]).default;
|
|
418
|
+
return a !== void 0 && (i[o] = a), i;
|
|
419
|
+
}, {}), r = bn(e);
|
|
420
|
+
return b(() => {
|
|
421
|
+
const i = {}, o = t?.vnode.props ?? {};
|
|
422
|
+
return Object.keys(o).forEach((a) => {
|
|
423
|
+
i[_t(a)] = o[a];
|
|
424
|
+
}), Object.keys({
|
|
425
|
+
...n,
|
|
426
|
+
...i
|
|
427
|
+
}).reduce((a, s) => (r.value[s] !== void 0 && (a[s] = r.value[s]), a), {});
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
function Bo(e, t) {
|
|
431
|
+
const n = Un(e), r = t ? jn(t) : {};
|
|
432
|
+
return b(() => ({
|
|
433
|
+
...n.value,
|
|
434
|
+
...r
|
|
435
|
+
}));
|
|
436
|
+
}
|
|
437
|
+
var Kn = function(e) {
|
|
438
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
439
|
+
}, me = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Pe = {}, Ve = 0, Ut = function(e) {
|
|
440
|
+
return e && (e.host || Ut(e.parentNode));
|
|
441
|
+
}, Yn = function(e, t) {
|
|
442
|
+
return t.map(function(n) {
|
|
443
|
+
if (e.contains(n)) return n;
|
|
444
|
+
var r = Ut(n);
|
|
445
|
+
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
446
|
+
}).filter(function(n) {
|
|
447
|
+
return !!n;
|
|
448
|
+
});
|
|
449
|
+
}, Xn = function(e, t, n, r) {
|
|
450
|
+
var i = Yn(t, Array.isArray(e) ? e : [e]);
|
|
451
|
+
Pe[n] || (Pe[n] = /* @__PURE__ */ new WeakMap());
|
|
452
|
+
var o = Pe[n], a = [], s = /* @__PURE__ */ new Set(), f = new Set(i), p = function(u) {
|
|
453
|
+
!u || s.has(u) || (s.add(u), p(u.parentNode));
|
|
454
|
+
};
|
|
455
|
+
i.forEach(p);
|
|
456
|
+
var d = function(u) {
|
|
457
|
+
!u || f.has(u) || Array.prototype.forEach.call(u.children, function(c) {
|
|
458
|
+
if (s.has(c)) d(c);
|
|
459
|
+
else try {
|
|
460
|
+
var l = c.getAttribute(r), m = l !== null && l !== "false", v = (me.get(c) || 0) + 1, h = (o.get(c) || 0) + 1;
|
|
461
|
+
me.set(c, v), o.set(c, h), a.push(c), v === 1 && m && Ae.set(c, !0), h === 1 && c.setAttribute(n, "true"), m || c.setAttribute(r, "true");
|
|
462
|
+
} catch (g) {
|
|
463
|
+
console.error("aria-hidden: cannot operate on ", c, g);
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
};
|
|
467
|
+
return d(t), s.clear(), Ve++, function() {
|
|
468
|
+
a.forEach(function(u) {
|
|
469
|
+
var c = me.get(u) - 1, l = o.get(u) - 1;
|
|
470
|
+
me.set(u, c), o.set(u, l), c || (Ae.has(u) || u.removeAttribute(r), Ae.delete(u)), l || u.removeAttribute(n);
|
|
471
|
+
}), Ve--, Ve || (me = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Pe = {});
|
|
472
|
+
};
|
|
473
|
+
}, Gn = function(e, t, n) {
|
|
474
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
475
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || Kn(e);
|
|
476
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Xn(r, i, n, "aria-hidden")) : function() {
|
|
477
|
+
return null;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
function Wo(e) {
|
|
481
|
+
let t;
|
|
482
|
+
L(() => be(e), (n) => {
|
|
483
|
+
let r = !1;
|
|
484
|
+
try {
|
|
485
|
+
r = !!n?.closest("[popover]:not(:popover-open)");
|
|
486
|
+
} catch {
|
|
487
|
+
}
|
|
488
|
+
n && !r ? t = Gn(n) : t && t();
|
|
489
|
+
}), nt(() => {
|
|
490
|
+
t && t();
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
var Jn = 0;
|
|
494
|
+
function Io(e, t = "reka") {
|
|
495
|
+
if (e) return e;
|
|
496
|
+
let n;
|
|
497
|
+
const r = Fe({ useId: void 0 });
|
|
498
|
+
return r.useId ? n = r.useId() : "useId" in wn ? n = dn?.() : n = `${++Jn}`, t ? `${t}-${n}` : n;
|
|
499
|
+
}
|
|
500
|
+
function Ho() {
|
|
501
|
+
return {
|
|
502
|
+
ALT: "Alt",
|
|
503
|
+
ARROW_DOWN: "ArrowDown",
|
|
504
|
+
ARROW_LEFT: "ArrowLeft",
|
|
505
|
+
ARROW_RIGHT: "ArrowRight",
|
|
506
|
+
ARROW_UP: "ArrowUp",
|
|
507
|
+
BACKSPACE: "Backspace",
|
|
508
|
+
CAPS_LOCK: "CapsLock",
|
|
509
|
+
CONTROL: "Control",
|
|
510
|
+
DELETE: "Delete",
|
|
511
|
+
END: "End",
|
|
512
|
+
ENTER: "Enter",
|
|
513
|
+
ESCAPE: "Escape",
|
|
514
|
+
F1: "F1",
|
|
515
|
+
F10: "F10",
|
|
516
|
+
F11: "F11",
|
|
517
|
+
F12: "F12",
|
|
518
|
+
F2: "F2",
|
|
519
|
+
F3: "F3",
|
|
520
|
+
F4: "F4",
|
|
521
|
+
F5: "F5",
|
|
522
|
+
F6: "F6",
|
|
523
|
+
F7: "F7",
|
|
524
|
+
F8: "F8",
|
|
525
|
+
F9: "F9",
|
|
526
|
+
HOME: "Home",
|
|
527
|
+
META: "Meta",
|
|
528
|
+
PAGE_DOWN: "PageDown",
|
|
529
|
+
PAGE_UP: "PageUp",
|
|
530
|
+
SHIFT: "Shift",
|
|
531
|
+
SPACE: " ",
|
|
532
|
+
TAB: "Tab",
|
|
533
|
+
CTRL: "Control",
|
|
534
|
+
ASTERISK: "*",
|
|
535
|
+
SPACE_CODE: "Space"
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
function Zn(e) {
|
|
539
|
+
const t = S(), n = b(() => t.value?.width ?? 0), r = b(() => t.value?.height ?? 0);
|
|
540
|
+
let i;
|
|
541
|
+
return Dt(() => {
|
|
542
|
+
const o = be(e);
|
|
543
|
+
o ? (t.value = {
|
|
544
|
+
width: o.offsetWidth,
|
|
545
|
+
height: o.offsetHeight
|
|
546
|
+
}, i = new ResizeObserver((a) => {
|
|
547
|
+
if (!Array.isArray(a) || !a.length) return;
|
|
548
|
+
const s = a[0];
|
|
549
|
+
let f, p;
|
|
550
|
+
if ("borderBoxSize" in s) {
|
|
551
|
+
const d = s.borderBoxSize, u = Array.isArray(d) ? d[0] : d;
|
|
552
|
+
f = u.inlineSize, p = u.blockSize;
|
|
553
|
+
} else
|
|
554
|
+
f = o.offsetWidth, p = o.offsetHeight;
|
|
555
|
+
t.value = {
|
|
556
|
+
width: f,
|
|
557
|
+
height: p
|
|
558
|
+
};
|
|
559
|
+
}), i.observe(o, { box: "border-box" })) : t.value = void 0;
|
|
560
|
+
}), nt(() => {
|
|
561
|
+
i?.disconnect(), i = void 0;
|
|
562
|
+
}), {
|
|
563
|
+
width: n,
|
|
564
|
+
height: r
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
function Qn(e, t) {
|
|
568
|
+
const n = S(e);
|
|
569
|
+
function r(o) {
|
|
570
|
+
return t[n.value][o] ?? n.value;
|
|
571
|
+
}
|
|
572
|
+
return {
|
|
573
|
+
state: n,
|
|
574
|
+
dispatch: (o) => {
|
|
575
|
+
n.value = r(o);
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
function er(e, t) {
|
|
580
|
+
const n = S({}), r = S("none"), i = S(e), o = e.value ? "mounted" : "unmounted";
|
|
581
|
+
let a;
|
|
582
|
+
const s = t.value?.ownerDocument.defaultView ?? it, { state: f, dispatch: p } = Qn(o, {
|
|
583
|
+
mounted: {
|
|
584
|
+
UNMOUNT: "unmounted",
|
|
585
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
586
|
+
},
|
|
587
|
+
unmountSuspended: {
|
|
588
|
+
MOUNT: "mounted",
|
|
589
|
+
ANIMATION_END: "unmounted"
|
|
590
|
+
},
|
|
591
|
+
unmounted: { MOUNT: "mounted" }
|
|
592
|
+
}), d = (v) => {
|
|
593
|
+
if (N) {
|
|
594
|
+
const h = new CustomEvent(v, {
|
|
595
|
+
bubbles: !1,
|
|
596
|
+
cancelable: !1
|
|
597
|
+
});
|
|
598
|
+
t.value?.dispatchEvent(h);
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
L(e, async (v, h) => {
|
|
602
|
+
const g = h !== v;
|
|
603
|
+
if (await te(), g) {
|
|
604
|
+
const y = r.value, w = Se(t.value);
|
|
605
|
+
v ? (p("MOUNT"), d("enter"), w === "none" && d("after-enter")) : w === "none" || w === "undefined" || n.value?.display === "none" ? (p("UNMOUNT"), d("leave"), d("after-leave")) : h && y !== w ? (p("ANIMATION_OUT"), d("leave")) : (p("UNMOUNT"), d("after-leave"));
|
|
606
|
+
}
|
|
607
|
+
}, { immediate: !0 });
|
|
608
|
+
const u = (v) => {
|
|
609
|
+
if (v.target !== t.value) return;
|
|
610
|
+
const h = Se(t.value), g = h.includes(CSS.escape(v.animationName)), y = f.value === "mounted" ? "enter" : "leave";
|
|
611
|
+
if (g && (d(`after-${y}`), p("ANIMATION_END"), !i.value)) {
|
|
612
|
+
const w = t.value.style.animationFillMode;
|
|
613
|
+
t.value.style.animationFillMode = "forwards", a = s?.setTimeout(() => {
|
|
614
|
+
t.value?.style.animationFillMode === "forwards" && (t.value.style.animationFillMode = w);
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
h === "none" && p("ANIMATION_END");
|
|
618
|
+
}, c = (v) => {
|
|
619
|
+
v.target === t.value && (r.value = Se(t.value));
|
|
620
|
+
}, l = L(t, (v, h) => {
|
|
621
|
+
v ? (n.value = getComputedStyle(v), v.addEventListener("animationstart", c), v.addEventListener("animationcancel", u), v.addEventListener("animationend", u)) : (p("ANIMATION_END"), a !== void 0 && s?.clearTimeout(a), h?.removeEventListener("animationstart", c), h?.removeEventListener("animationcancel", u), h?.removeEventListener("animationend", u));
|
|
622
|
+
}, { immediate: !0 }), m = L(f, () => {
|
|
623
|
+
const v = Se(t.value);
|
|
624
|
+
r.value = f.value === "mounted" ? v : "none";
|
|
625
|
+
});
|
|
626
|
+
return nt(() => {
|
|
627
|
+
l(), m(), t.value && (t.value.removeEventListener("animationstart", c), t.value.removeEventListener("animationcancel", u), t.value.removeEventListener("animationend", u)), a !== void 0 && s?.clearTimeout(a);
|
|
628
|
+
}), { isPresent: b(() => ["mounted", "unmountSuspended"].includes(f.value)) };
|
|
629
|
+
}
|
|
630
|
+
function Se(e) {
|
|
631
|
+
return e && getComputedStyle(e).animationName || "none";
|
|
632
|
+
}
|
|
633
|
+
var qo = /* @__PURE__ */ I({
|
|
634
|
+
name: "Presence",
|
|
635
|
+
props: {
|
|
636
|
+
present: {
|
|
637
|
+
type: Boolean,
|
|
638
|
+
required: !0
|
|
639
|
+
},
|
|
640
|
+
forceMount: { type: Boolean }
|
|
641
|
+
},
|
|
642
|
+
slots: {},
|
|
643
|
+
setup(e, { slots: t, expose: n }) {
|
|
644
|
+
const { present: r, forceMount: i } = Xe(e), o = S(), { isPresent: a } = er(r, o);
|
|
645
|
+
n({ present: a });
|
|
646
|
+
let s = t.default({ present: a.value });
|
|
647
|
+
s = at(s || []);
|
|
648
|
+
const f = fe();
|
|
649
|
+
if (s && s?.length > 1) {
|
|
650
|
+
const p = f?.parent?.type.name ? `<${f.parent.type.name} />` : "component";
|
|
651
|
+
throw new Error([
|
|
652
|
+
`Detected an invalid children for \`${p}\` for \`Presence\` component.`,
|
|
653
|
+
"",
|
|
654
|
+
"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
|
|
655
|
+
"You can apply a few solutions:",
|
|
656
|
+
["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((d) => ` - ${d}`).join(`
|
|
657
|
+
`)
|
|
658
|
+
].join(`
|
|
659
|
+
`));
|
|
660
|
+
}
|
|
661
|
+
return () => i.value || r.value || a.value ? Te(t.default({ present: a.value })[0], { ref: (p) => {
|
|
662
|
+
const d = be(p);
|
|
663
|
+
return typeof d?.hasAttribute > "u" || (d?.hasAttribute("data-reka-popper-content-wrapper") ? o.value = d.firstElementChild : o.value = d), d;
|
|
664
|
+
} }) : null;
|
|
665
|
+
}
|
|
666
|
+
}), tr = /* @__PURE__ */ I({
|
|
667
|
+
name: "PrimitiveSlot",
|
|
668
|
+
inheritAttrs: !1,
|
|
669
|
+
setup(e, { attrs: t, slots: n }) {
|
|
670
|
+
return () => {
|
|
671
|
+
if (!n.default) return null;
|
|
672
|
+
const r = at(n.default()), i = r.findIndex((f) => f.type !== vn);
|
|
673
|
+
if (i === -1) return r;
|
|
674
|
+
const o = r[i];
|
|
675
|
+
delete o.props?.ref;
|
|
676
|
+
const a = o.props ? Ge(t, o.props) : t, s = hn({
|
|
677
|
+
...o,
|
|
678
|
+
props: {}
|
|
679
|
+
}, a);
|
|
680
|
+
return r.length === 1 ? s : (r[i] = s, r);
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
}), nr = [
|
|
684
|
+
"area",
|
|
685
|
+
"img",
|
|
686
|
+
"input"
|
|
687
|
+
], we = /* @__PURE__ */ I({
|
|
688
|
+
name: "Primitive",
|
|
689
|
+
inheritAttrs: !1,
|
|
690
|
+
props: {
|
|
691
|
+
asChild: {
|
|
692
|
+
type: Boolean,
|
|
693
|
+
default: !1
|
|
694
|
+
},
|
|
695
|
+
as: {
|
|
696
|
+
type: [String, Object],
|
|
697
|
+
default: "div"
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
setup(e, { attrs: t, slots: n }) {
|
|
701
|
+
const r = e.asChild ? "template" : e.as;
|
|
702
|
+
return typeof r == "string" && nr.includes(r) ? () => Te(r, t) : r !== "template" ? () => Te(e.as, t, { default: n.default }) : () => Te(tr, t, { default: n.default });
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
function zo() {
|
|
706
|
+
const e = S();
|
|
707
|
+
return {
|
|
708
|
+
primitiveElement: e,
|
|
709
|
+
currentElement: b(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : be(e))
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
var rr = "dismissableLayer.pointerDownOutside", or = "dismissableLayer.focusOutside";
|
|
713
|
+
function Kt(e, t) {
|
|
714
|
+
if (!(t instanceof Element)) return !1;
|
|
715
|
+
const n = t.closest("[data-dismissable-layer]"), r = e.dataset.dismissableLayer === "" ? e : e.querySelector("[data-dismissable-layer]"), i = Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
|
|
716
|
+
return !!(n && (r === n || i.indexOf(r) < i.indexOf(n)));
|
|
717
|
+
}
|
|
718
|
+
function ir(e, t, n = !0) {
|
|
719
|
+
const r = t?.value?.ownerDocument ?? globalThis?.document, i = S(!1), o = S(() => {
|
|
720
|
+
});
|
|
721
|
+
return le((a) => {
|
|
722
|
+
if (!N || !F(n)) return;
|
|
723
|
+
const s = async (p) => {
|
|
724
|
+
const d = p.target;
|
|
725
|
+
if (!(!t?.value || !d)) {
|
|
726
|
+
if (Kt(t.value, d)) {
|
|
727
|
+
i.value = !1;
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
if (p.target && !i.value) {
|
|
731
|
+
let c = function() {
|
|
732
|
+
qt(rr, e, u);
|
|
733
|
+
};
|
|
734
|
+
const u = { originalEvent: p };
|
|
735
|
+
p.pointerType === "touch" ? (r.removeEventListener("click", o.value), o.value = c, r.addEventListener("click", o.value, { once: !0 })) : c();
|
|
736
|
+
} else r.removeEventListener("click", o.value);
|
|
737
|
+
i.value = !1;
|
|
738
|
+
}
|
|
739
|
+
}, f = window.setTimeout(() => {
|
|
740
|
+
r.addEventListener("pointerdown", s);
|
|
741
|
+
}, 0);
|
|
742
|
+
a(() => {
|
|
743
|
+
window.clearTimeout(f), r.removeEventListener("pointerdown", s), r.removeEventListener("click", o.value);
|
|
744
|
+
});
|
|
745
|
+
}), { onPointerDownCapture: () => {
|
|
746
|
+
F(n) && (i.value = !0);
|
|
747
|
+
} };
|
|
748
|
+
}
|
|
749
|
+
function ar(e, t, n = !0) {
|
|
750
|
+
const r = t?.value?.ownerDocument ?? globalThis?.document, i = S(!1);
|
|
751
|
+
return le((o) => {
|
|
752
|
+
if (!N || !F(n)) return;
|
|
753
|
+
const a = async (s) => {
|
|
754
|
+
if (!t?.value) return;
|
|
755
|
+
await te(), await te();
|
|
756
|
+
const f = s.target;
|
|
757
|
+
!t.value || !f || Kt(t.value, f) || s.target && !i.value && qt(or, e, { originalEvent: s });
|
|
758
|
+
};
|
|
759
|
+
r.addEventListener("focusin", a), o(() => r.removeEventListener("focusin", a));
|
|
760
|
+
}), {
|
|
761
|
+
onFocusCapture: () => {
|
|
762
|
+
F(n) && (i.value = !0);
|
|
763
|
+
},
|
|
764
|
+
onBlurCapture: () => {
|
|
765
|
+
F(n) && (i.value = !1);
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
var Vo = /* @__PURE__ */ I({
|
|
770
|
+
__name: "DismissableLayer",
|
|
771
|
+
props: {
|
|
772
|
+
disableOutsidePointerEvents: {
|
|
773
|
+
type: Boolean,
|
|
774
|
+
required: !1,
|
|
775
|
+
default: !1
|
|
776
|
+
},
|
|
777
|
+
asChild: {
|
|
778
|
+
type: Boolean,
|
|
779
|
+
required: !1
|
|
780
|
+
},
|
|
781
|
+
as: {
|
|
782
|
+
type: null,
|
|
783
|
+
required: !1
|
|
784
|
+
},
|
|
785
|
+
present: {
|
|
786
|
+
type: Boolean,
|
|
787
|
+
required: !1,
|
|
788
|
+
default: !0
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
emits: [
|
|
792
|
+
"escapeKeyDown",
|
|
793
|
+
"pointerDownOutside",
|
|
794
|
+
"focusOutside",
|
|
795
|
+
"interactOutside",
|
|
796
|
+
"dismiss"
|
|
797
|
+
],
|
|
798
|
+
setup(e, { emit: t }) {
|
|
799
|
+
const n = e, r = t, { forwardRef: i, currentElement: o } = _e(), a = b(() => o.value?.ownerDocument ?? globalThis.document), s = b(() => D.layersRoot), f = b(() => o.value ? Array.from(s.value).indexOf(o.value) : -1), p = b(() => D.layersWithOutsidePointerEventsDisabled.size > 0), d = b(() => {
|
|
800
|
+
const l = Array.from(s.value), [m] = [...D.layersWithOutsidePointerEventsDisabled].slice(-1), v = l.indexOf(m);
|
|
801
|
+
return f.value >= v;
|
|
802
|
+
}), u = ir(async (l) => {
|
|
803
|
+
const m = [...D.branches].some((v) => v?.contains(l.target));
|
|
804
|
+
!n.present || !d.value || m || (r("pointerDownOutside", l), r("interactOutside", l), await te(), l.defaultPrevented || r("dismiss"));
|
|
805
|
+
}, o, () => n.present), c = ar((l) => {
|
|
806
|
+
const m = [...D.branches].some((v) => v?.contains(l.target));
|
|
807
|
+
!n.present || m || (r("focusOutside", l), r("interactOutside", l), l.defaultPrevented || r("dismiss"));
|
|
808
|
+
}, o);
|
|
809
|
+
return Wn("Escape", (l) => {
|
|
810
|
+
n.present && f.value === s.value.size - 1 && (r("escapeKeyDown", l), l.defaultPrevented || r("dismiss"));
|
|
811
|
+
}), L([
|
|
812
|
+
o,
|
|
813
|
+
() => n.disableOutsidePointerEvents,
|
|
814
|
+
() => n.present
|
|
815
|
+
], ([l, m, v], h, g) => {
|
|
816
|
+
!l || !v || m && (D.layersWithOutsidePointerEventsDisabled.size === 0 && (D.originalBodyPointerEvents = a.value.body.style.pointerEvents, a.value.body.style.pointerEvents = "none"), D.layersWithOutsidePointerEventsDisabled.add(l), g(() => {
|
|
817
|
+
D.layersWithOutsidePointerEventsDisabled.delete(l), D.layersWithOutsidePointerEventsDisabled.size === 0 && !On(D.originalBodyPointerEvents) && (a.value.body.style.pointerEvents = D.originalBodyPointerEvents);
|
|
818
|
+
}));
|
|
819
|
+
}, { immediate: !0 }), L([o, () => n.present], ([l, m], v, h) => {
|
|
820
|
+
!l || !m || (s.value.add(l), h(() => {
|
|
821
|
+
s.value.delete(l);
|
|
822
|
+
}));
|
|
823
|
+
}, { immediate: !0 }), le((l) => {
|
|
824
|
+
l(() => {
|
|
825
|
+
o.value && (s.value.delete(o.value), D.layersWithOutsidePointerEventsDisabled.delete(o.value));
|
|
826
|
+
});
|
|
827
|
+
}), (l, m) => (U(), se(P(we), {
|
|
828
|
+
ref: P(i),
|
|
829
|
+
"as-child": l.asChild,
|
|
830
|
+
as: l.as,
|
|
831
|
+
"data-dismissable-layer": "",
|
|
832
|
+
style: Wt({ pointerEvents: p.value ? d.value ? "auto" : "none" : void 0 }),
|
|
833
|
+
onFocusCapture: P(c).onFocusCapture,
|
|
834
|
+
onBlurCapture: P(c).onBlurCapture,
|
|
835
|
+
onPointerdownCapture: P(u).onPointerDownCapture
|
|
836
|
+
}, {
|
|
837
|
+
default: ge(() => [ee(l.$slots, "default")]),
|
|
838
|
+
_: 3
|
|
839
|
+
}, 8, [
|
|
840
|
+
"as-child",
|
|
841
|
+
"as",
|
|
842
|
+
"style",
|
|
843
|
+
"onFocusCapture",
|
|
844
|
+
"onBlurCapture",
|
|
845
|
+
"onPointerdownCapture"
|
|
846
|
+
]));
|
|
847
|
+
}
|
|
848
|
+
}), sr = An(() => S([]));
|
|
849
|
+
function lr() {
|
|
850
|
+
const e = sr();
|
|
851
|
+
return {
|
|
852
|
+
add(t) {
|
|
853
|
+
const n = e.value[0];
|
|
854
|
+
t !== n && n?.pause(), e.value = yt(e.value, t), e.value.unshift(t);
|
|
855
|
+
},
|
|
856
|
+
remove(t) {
|
|
857
|
+
e.value = yt(e.value, t), e.value[0]?.resume();
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
function yt(e, t) {
|
|
862
|
+
const n = [...e], r = n.indexOf(t);
|
|
863
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
864
|
+
}
|
|
865
|
+
var je = "focusScope.autoFocusOnMount", Ue = "focusScope.autoFocusOnUnmount", gt = {
|
|
866
|
+
bubbles: !1,
|
|
867
|
+
cancelable: !0
|
|
868
|
+
};
|
|
869
|
+
function ur(e, { select: t = !1 } = {}) {
|
|
870
|
+
const n = Q();
|
|
871
|
+
for (const r of e)
|
|
872
|
+
if (Z(r, { select: t }), Q() !== n) return !0;
|
|
873
|
+
}
|
|
874
|
+
function cr(e) {
|
|
875
|
+
const t = Yt(e);
|
|
876
|
+
return [wt(t, e), wt(t.reverse(), e)];
|
|
877
|
+
}
|
|
878
|
+
function Yt(e) {
|
|
879
|
+
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (r) => {
|
|
880
|
+
const i = r.tagName === "INPUT" && r.type === "hidden";
|
|
881
|
+
return r.disabled || r.hidden || i ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
882
|
+
} });
|
|
883
|
+
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
884
|
+
return t;
|
|
885
|
+
}
|
|
886
|
+
function wt(e, t) {
|
|
887
|
+
for (const n of e) if (!fr(n, { upTo: t })) return n;
|
|
888
|
+
}
|
|
889
|
+
function fr(e, { upTo: t }) {
|
|
890
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
891
|
+
for (; e; ) {
|
|
892
|
+
if (t !== void 0 && e === t) return !1;
|
|
893
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
894
|
+
e = e.parentElement;
|
|
895
|
+
}
|
|
896
|
+
return !1;
|
|
897
|
+
}
|
|
898
|
+
function dr(e) {
|
|
899
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
900
|
+
}
|
|
901
|
+
function Z(e, { select: t = !1 } = {}) {
|
|
902
|
+
if (e && e.focus) {
|
|
903
|
+
const n = Q();
|
|
904
|
+
e.focus({ preventScroll: !0 }), e !== n && dr(e) && t && e.select();
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
var jo = /* @__PURE__ */ I({
|
|
908
|
+
__name: "FocusScope",
|
|
909
|
+
props: {
|
|
910
|
+
loop: {
|
|
911
|
+
type: Boolean,
|
|
912
|
+
required: !1,
|
|
913
|
+
default: !1
|
|
914
|
+
},
|
|
915
|
+
trapped: {
|
|
916
|
+
type: Boolean,
|
|
917
|
+
required: !1,
|
|
918
|
+
default: !1
|
|
919
|
+
},
|
|
920
|
+
present: {
|
|
921
|
+
type: Boolean,
|
|
922
|
+
required: !1,
|
|
923
|
+
default: !0
|
|
924
|
+
},
|
|
925
|
+
asChild: {
|
|
926
|
+
type: Boolean,
|
|
927
|
+
required: !1
|
|
928
|
+
},
|
|
929
|
+
as: {
|
|
930
|
+
type: null,
|
|
931
|
+
required: !1
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
935
|
+
setup(e, { emit: t }) {
|
|
936
|
+
const n = e, r = t, { currentRef: i, currentElement: o } = _e(), a = S(null), s = lr(), f = /* @__PURE__ */ Me({
|
|
937
|
+
paused: !1,
|
|
938
|
+
pause() {
|
|
939
|
+
this.paused = !0;
|
|
940
|
+
},
|
|
941
|
+
resume() {
|
|
942
|
+
this.paused = !1;
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
le((u) => {
|
|
946
|
+
if (!N) return;
|
|
947
|
+
const c = o.value;
|
|
948
|
+
if (!n.trapped) return;
|
|
949
|
+
function l(g) {
|
|
950
|
+
if (f.paused || !c) return;
|
|
951
|
+
const y = g.target;
|
|
952
|
+
c.contains(y) ? a.value = y : Z(a.value, { select: !0 });
|
|
953
|
+
}
|
|
954
|
+
function m(g) {
|
|
955
|
+
if (f.paused || !c) return;
|
|
956
|
+
const y = g.relatedTarget;
|
|
957
|
+
y !== null && (c.contains(y) || Z(a.value, { select: !0 }));
|
|
958
|
+
}
|
|
959
|
+
function v(g) {
|
|
960
|
+
const y = a.value;
|
|
961
|
+
if (y === null || !g.some((x) => x.removedNodes.length > 0)) return;
|
|
962
|
+
const w = Q();
|
|
963
|
+
w && c.contains(w) || c.contains(y) || Z(c);
|
|
964
|
+
}
|
|
965
|
+
document.addEventListener("focusin", l), document.addEventListener("focusout", m);
|
|
966
|
+
const h = new MutationObserver(v);
|
|
967
|
+
c && h.observe(c, {
|
|
968
|
+
childList: !0,
|
|
969
|
+
subtree: !0
|
|
970
|
+
}), u(() => {
|
|
971
|
+
document.removeEventListener("focusin", l), document.removeEventListener("focusout", m), h.disconnect();
|
|
972
|
+
});
|
|
973
|
+
});
|
|
974
|
+
function p(u, c) {
|
|
975
|
+
const l = new CustomEvent(je, gt), m = (v) => r("mountAutoFocus", v);
|
|
976
|
+
u.addEventListener(je, m), u.dispatchEvent(l), u.removeEventListener(je, m), l.defaultPrevented || (ur(Yt(u), { select: !0 }), Q() === c && Z(u));
|
|
977
|
+
}
|
|
978
|
+
le(async (u) => {
|
|
979
|
+
const c = o.value;
|
|
980
|
+
if (await te(), !c) return;
|
|
981
|
+
n.present !== !1 && s.add(f);
|
|
982
|
+
const l = Q();
|
|
983
|
+
!c.contains(l) && n.present !== !1 && p(c, l), u(() => {
|
|
984
|
+
const m = new CustomEvent(Ue, gt), v = (h) => {
|
|
985
|
+
r("unmountAutoFocus", h);
|
|
986
|
+
};
|
|
987
|
+
c.addEventListener(Ue, v), c.dispatchEvent(m), c.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
|
|
988
|
+
m.defaultPrevented || Z(l ?? document.body, { select: !0 }), c.removeEventListener(Ue, v), s.remove(f), c.removeAttribute("data-focus-scope-unmounting");
|
|
989
|
+
}, 0);
|
|
990
|
+
});
|
|
991
|
+
}), L(() => n.present, async (u, c) => {
|
|
992
|
+
if (!N) return;
|
|
993
|
+
if (u === !1 && c === !0) {
|
|
994
|
+
s.remove(f);
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
if (u !== !0 || c !== !1) return;
|
|
998
|
+
s.add(f), await te();
|
|
999
|
+
const l = o.value;
|
|
1000
|
+
if (!l) return;
|
|
1001
|
+
const m = Q();
|
|
1002
|
+
l.contains(m) || p(l, m);
|
|
1003
|
+
});
|
|
1004
|
+
function d(u) {
|
|
1005
|
+
if (!n.loop && !n.trapped || f.paused) return;
|
|
1006
|
+
const c = u.key === "Tab" && !u.altKey && !u.ctrlKey && !u.metaKey, l = Q();
|
|
1007
|
+
if (c && l) {
|
|
1008
|
+
const m = u.currentTarget, [v, h] = cr(m);
|
|
1009
|
+
v && h ? !u.shiftKey && l === h ? (u.preventDefault(), n.loop && Z(v, { select: !0 })) : u.shiftKey && l === v && (u.preventDefault(), n.loop && Z(h, { select: !0 })) : l === m && u.preventDefault();
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
return (u, c) => (U(), se(P(we), {
|
|
1013
|
+
ref_key: "currentRef",
|
|
1014
|
+
ref: i,
|
|
1015
|
+
tabindex: "-1",
|
|
1016
|
+
"as-child": u.asChild,
|
|
1017
|
+
as: u.as,
|
|
1018
|
+
onKeydown: d
|
|
1019
|
+
}, {
|
|
1020
|
+
default: ge(() => [ee(u.$slots, "default")]),
|
|
1021
|
+
_: 3
|
|
1022
|
+
}, 8, ["as-child", "as"]));
|
|
1023
|
+
}
|
|
1024
|
+
}), Uo = /* @__PURE__ */ I({
|
|
1025
|
+
__name: "Teleport",
|
|
1026
|
+
props: {
|
|
1027
|
+
to: {
|
|
1028
|
+
type: null,
|
|
1029
|
+
required: !1
|
|
1030
|
+
},
|
|
1031
|
+
disabled: {
|
|
1032
|
+
type: Boolean,
|
|
1033
|
+
required: !1
|
|
1034
|
+
},
|
|
1035
|
+
defer: {
|
|
1036
|
+
type: Boolean,
|
|
1037
|
+
required: !1
|
|
1038
|
+
},
|
|
1039
|
+
forceMount: {
|
|
1040
|
+
type: Boolean,
|
|
1041
|
+
required: !1
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
setup(e) {
|
|
1045
|
+
const t = e, n = Fe({}), r = b(() => t.to ?? n.teleportTo?.value ?? "body"), i = $n();
|
|
1046
|
+
return (o, a) => P(i) || o.forceMount ? (U(), se(yn, {
|
|
1047
|
+
key: 0,
|
|
1048
|
+
to: r.value,
|
|
1049
|
+
disabled: o.disabled,
|
|
1050
|
+
defer: o.defer
|
|
1051
|
+
}, [ee(o.$slots, "default")], 8, [
|
|
1052
|
+
"to",
|
|
1053
|
+
"disabled",
|
|
1054
|
+
"defer"
|
|
1055
|
+
])) : xn("v-if", !0);
|
|
1056
|
+
}
|
|
1057
|
+
}), Ko = /* @__PURE__ */ I({
|
|
1058
|
+
__name: "VisuallyHidden",
|
|
1059
|
+
props: {
|
|
1060
|
+
feature: {
|
|
1061
|
+
type: String,
|
|
1062
|
+
required: !1,
|
|
1063
|
+
default: "focusable"
|
|
1064
|
+
},
|
|
1065
|
+
asChild: {
|
|
1066
|
+
type: Boolean,
|
|
1067
|
+
required: !1
|
|
1068
|
+
},
|
|
1069
|
+
as: {
|
|
1070
|
+
type: null,
|
|
1071
|
+
required: !1,
|
|
1072
|
+
default: "span"
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
setup(e) {
|
|
1076
|
+
return (t, n) => (U(), se(P(we), {
|
|
1077
|
+
as: t.as,
|
|
1078
|
+
"as-child": t.asChild,
|
|
1079
|
+
"aria-hidden": t.feature === "focusable" || t.feature === "fully-hidden" ? "true" : void 0,
|
|
1080
|
+
"data-hidden": t.feature === "fully-hidden" ? "" : void 0,
|
|
1081
|
+
tabindex: t.feature === "fully-hidden" ? "-1" : void 0,
|
|
1082
|
+
style: {
|
|
1083
|
+
position: "absolute",
|
|
1084
|
+
border: 0,
|
|
1085
|
+
width: "1px",
|
|
1086
|
+
height: "1px",
|
|
1087
|
+
padding: 0,
|
|
1088
|
+
margin: "-1px",
|
|
1089
|
+
overflow: "hidden",
|
|
1090
|
+
clip: "rect(0, 0, 0, 0)",
|
|
1091
|
+
clipPath: "inset(50%)",
|
|
1092
|
+
whiteSpace: "nowrap",
|
|
1093
|
+
wordWrap: "normal",
|
|
1094
|
+
top: "-1px",
|
|
1095
|
+
left: "-1px"
|
|
1096
|
+
}
|
|
1097
|
+
}, {
|
|
1098
|
+
default: ge(() => [ee(t.$slots, "default")]),
|
|
1099
|
+
_: 3
|
|
1100
|
+
}, 8, [
|
|
1101
|
+
"as",
|
|
1102
|
+
"as-child",
|
|
1103
|
+
"aria-hidden",
|
|
1104
|
+
"data-hidden",
|
|
1105
|
+
"tabindex"
|
|
1106
|
+
]));
|
|
1107
|
+
}
|
|
1108
|
+
}), [Xt, pr] = /* @__PURE__ */ rt("PopperRoot"), Yo = /* @__PURE__ */ I({
|
|
1109
|
+
inheritAttrs: !1,
|
|
1110
|
+
__name: "PopperRoot",
|
|
1111
|
+
setup(e) {
|
|
1112
|
+
const t = S();
|
|
1113
|
+
return pr({
|
|
1114
|
+
anchor: t,
|
|
1115
|
+
onAnchorChange: (n) => t.value = n
|
|
1116
|
+
}), (n, r) => ee(n.$slots, "default");
|
|
1117
|
+
}
|
|
1118
|
+
}), Xo = /* @__PURE__ */ I({
|
|
1119
|
+
__name: "PopperAnchor",
|
|
1120
|
+
props: {
|
|
1121
|
+
reference: {
|
|
1122
|
+
type: null,
|
|
1123
|
+
required: !1
|
|
1124
|
+
},
|
|
1125
|
+
asChild: {
|
|
1126
|
+
type: Boolean,
|
|
1127
|
+
required: !1
|
|
1128
|
+
},
|
|
1129
|
+
as: {
|
|
1130
|
+
type: null,
|
|
1131
|
+
required: !1
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
setup(e) {
|
|
1135
|
+
const t = e, { forwardRef: n, currentElement: r } = _e(), i = Xt();
|
|
1136
|
+
return Rt(() => {
|
|
1137
|
+
i.onAnchorChange(t.reference ?? r.value);
|
|
1138
|
+
}), (o, a) => (U(), se(P(we), {
|
|
1139
|
+
ref: P(n),
|
|
1140
|
+
as: o.as,
|
|
1141
|
+
"as-child": o.asChild
|
|
1142
|
+
}, {
|
|
1143
|
+
default: ge(() => [ee(o.$slots, "default")]),
|
|
1144
|
+
_: 3
|
|
1145
|
+
}, 8, ["as", "as-child"]));
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1148
|
+
function vr(e) {
|
|
1149
|
+
return e !== null;
|
|
1150
|
+
}
|
|
1151
|
+
function mr(e) {
|
|
1152
|
+
return {
|
|
1153
|
+
name: "transformOrigin",
|
|
1154
|
+
options: e,
|
|
1155
|
+
fn(t) {
|
|
1156
|
+
const { placement: n, rects: r, middlewareData: i } = t, o = i.arrow?.centerOffset !== 0, a = o ? 0 : e.arrowWidth, s = o ? 0 : e.arrowHeight, [f, p] = Ze(n), d = {
|
|
1157
|
+
start: e.dir === "rtl" ? "100%" : "0%",
|
|
1158
|
+
center: "50%",
|
|
1159
|
+
end: e.dir === "rtl" ? "0%" : "100%"
|
|
1160
|
+
}[p], u = {
|
|
1161
|
+
start: "0%",
|
|
1162
|
+
center: "50%",
|
|
1163
|
+
end: "100%"
|
|
1164
|
+
}[p], c = (i.arrow?.x ?? 0) + a / 2, l = (i.arrow?.y ?? 0) + s / 2;
|
|
1165
|
+
let m = "", v = "";
|
|
1166
|
+
return f === "bottom" ? (m = o ? d : `${c}px`, v = `${-s}px`) : f === "top" ? (m = o ? d : `${c}px`, v = `${r.floating.height + s}px`) : f === "right" ? (m = `${-s}px`, v = o ? u : `${l}px`) : f === "left" && (m = `${r.floating.width + s}px`, v = o ? u : `${l}px`), { data: {
|
|
1167
|
+
x: m,
|
|
1168
|
+
y: v
|
|
1169
|
+
} };
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
function Ze(e) {
|
|
1174
|
+
const [t, n = "center"] = e.split("-");
|
|
1175
|
+
return [t, n];
|
|
1176
|
+
}
|
|
1177
|
+
var hr = [
|
|
1178
|
+
"top",
|
|
1179
|
+
"right",
|
|
1180
|
+
"bottom",
|
|
1181
|
+
"left"
|
|
1182
|
+
], ne = Math.min, K = Math.max, Re = Math.round, Ce = Math.floor, Y = (e) => ({
|
|
1183
|
+
x: e,
|
|
1184
|
+
y: e
|
|
1185
|
+
}), yr = {
|
|
1186
|
+
left: "right",
|
|
1187
|
+
right: "left",
|
|
1188
|
+
bottom: "top",
|
|
1189
|
+
top: "bottom"
|
|
1190
|
+
};
|
|
1191
|
+
function Gt(e, t, n) {
|
|
1192
|
+
return K(e, ne(t, n));
|
|
1193
|
+
}
|
|
1194
|
+
function X(e, t) {
|
|
1195
|
+
return typeof e == "function" ? e(t) : e;
|
|
1196
|
+
}
|
|
1197
|
+
function re(e) {
|
|
1198
|
+
return e.split("-")[0];
|
|
1199
|
+
}
|
|
1200
|
+
function xe(e) {
|
|
1201
|
+
return e.split("-")[1];
|
|
1202
|
+
}
|
|
1203
|
+
function lt(e) {
|
|
1204
|
+
return e === "x" ? "y" : "x";
|
|
1205
|
+
}
|
|
1206
|
+
function ut(e) {
|
|
1207
|
+
return e === "y" ? "height" : "width";
|
|
1208
|
+
}
|
|
1209
|
+
function z(e) {
|
|
1210
|
+
const t = e[0];
|
|
1211
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
1212
|
+
}
|
|
1213
|
+
function ct(e) {
|
|
1214
|
+
return lt(z(e));
|
|
1215
|
+
}
|
|
1216
|
+
function gr(e, t, n) {
|
|
1217
|
+
n === void 0 && (n = !1);
|
|
1218
|
+
const r = xe(e), i = ct(e), o = ut(i);
|
|
1219
|
+
let a = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1220
|
+
return t.reference[o] > t.floating[o] && (a = De(a)), [a, De(a)];
|
|
1221
|
+
}
|
|
1222
|
+
function wr(e) {
|
|
1223
|
+
const t = De(e);
|
|
1224
|
+
return [
|
|
1225
|
+
Qe(e),
|
|
1226
|
+
t,
|
|
1227
|
+
Qe(t)
|
|
1228
|
+
];
|
|
1229
|
+
}
|
|
1230
|
+
function Qe(e) {
|
|
1231
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1232
|
+
}
|
|
1233
|
+
var bt = ["left", "right"], xt = ["right", "left"], br = ["top", "bottom"], xr = ["bottom", "top"];
|
|
1234
|
+
function Er(e, t, n) {
|
|
1235
|
+
switch (e) {
|
|
1236
|
+
case "top":
|
|
1237
|
+
case "bottom":
|
|
1238
|
+
return n ? t ? xt : bt : t ? bt : xt;
|
|
1239
|
+
case "left":
|
|
1240
|
+
case "right":
|
|
1241
|
+
return t ? br : xr;
|
|
1242
|
+
default:
|
|
1243
|
+
return [];
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
function Or(e, t, n, r) {
|
|
1247
|
+
const i = xe(e);
|
|
1248
|
+
let o = Er(re(e), n === "start", r);
|
|
1249
|
+
return i && (o = o.map((a) => a + "-" + i), t && (o = o.concat(o.map(Qe)))), o;
|
|
1250
|
+
}
|
|
1251
|
+
function De(e) {
|
|
1252
|
+
const t = re(e);
|
|
1253
|
+
return yr[t] + e.slice(t.length);
|
|
1254
|
+
}
|
|
1255
|
+
function Ar(e) {
|
|
1256
|
+
var t, n, r, i;
|
|
1257
|
+
return {
|
|
1258
|
+
top: (t = e.top) != null ? t : 0,
|
|
1259
|
+
right: (n = e.right) != null ? n : 0,
|
|
1260
|
+
bottom: (r = e.bottom) != null ? r : 0,
|
|
1261
|
+
left: (i = e.left) != null ? i : 0
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
function Jt(e) {
|
|
1265
|
+
return typeof e != "number" ? Ar(e) : {
|
|
1266
|
+
top: e,
|
|
1267
|
+
right: e,
|
|
1268
|
+
bottom: e,
|
|
1269
|
+
left: e
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
function Le(e) {
|
|
1273
|
+
const { x: t, y: n, width: r, height: i } = e;
|
|
1274
|
+
return {
|
|
1275
|
+
width: r,
|
|
1276
|
+
height: i,
|
|
1277
|
+
top: n,
|
|
1278
|
+
left: t,
|
|
1279
|
+
right: t + r,
|
|
1280
|
+
bottom: n + i,
|
|
1281
|
+
x: t,
|
|
1282
|
+
y: n
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
function Et(e, t, n) {
|
|
1286
|
+
let { reference: r, floating: i } = e;
|
|
1287
|
+
const o = z(t), a = ct(t), s = ut(a), f = re(t), p = o === "y", d = r.x + r.width / 2 - i.width / 2, u = r.y + r.height / 2 - i.height / 2, c = r[s] / 2 - i[s] / 2;
|
|
1288
|
+
let l;
|
|
1289
|
+
switch (f) {
|
|
1290
|
+
case "top":
|
|
1291
|
+
l = {
|
|
1292
|
+
x: d,
|
|
1293
|
+
y: r.y - i.height
|
|
1294
|
+
};
|
|
1295
|
+
break;
|
|
1296
|
+
case "bottom":
|
|
1297
|
+
l = {
|
|
1298
|
+
x: d,
|
|
1299
|
+
y: r.y + r.height
|
|
1300
|
+
};
|
|
1301
|
+
break;
|
|
1302
|
+
case "right":
|
|
1303
|
+
l = {
|
|
1304
|
+
x: r.x + r.width,
|
|
1305
|
+
y: u
|
|
1306
|
+
};
|
|
1307
|
+
break;
|
|
1308
|
+
case "left":
|
|
1309
|
+
l = {
|
|
1310
|
+
x: r.x - i.width,
|
|
1311
|
+
y: u
|
|
1312
|
+
};
|
|
1313
|
+
break;
|
|
1314
|
+
default:
|
|
1315
|
+
l = {
|
|
1316
|
+
x: r.x,
|
|
1317
|
+
y: r.y
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
const m = xe(t);
|
|
1321
|
+
return m && (l[a] += c * (m === "end" ? 1 : -1) * (n && p ? -1 : 1)), l;
|
|
1322
|
+
}
|
|
1323
|
+
async function Pr(e, t) {
|
|
1324
|
+
var n;
|
|
1325
|
+
t === void 0 && (t = {});
|
|
1326
|
+
const { x: r, y: i, platform: o, rects: a, elements: s, strategy: f } = e, { boundary: p = "clippingAncestors", rootBoundary: d = "viewport", elementContext: u = "floating", altBoundary: c = !1, padding: l = 0 } = X(t, e), m = Jt(l), v = s[c ? u === "floating" ? "reference" : "floating" : u], h = Le(await o.getClippingRect({
|
|
1327
|
+
element: (n = await (o.isElement == null ? void 0 : o.isElement(v))) == null || n ? v : v.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
|
|
1328
|
+
boundary: p,
|
|
1329
|
+
rootBoundary: d,
|
|
1330
|
+
strategy: f
|
|
1331
|
+
})), g = u === "floating" ? {
|
|
1332
|
+
x: r,
|
|
1333
|
+
y: i,
|
|
1334
|
+
width: a.floating.width,
|
|
1335
|
+
height: a.floating.height
|
|
1336
|
+
} : a.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), w = await (o.isElement == null ? void 0 : o.isElement(y)) && await (o.getScale == null ? void 0 : o.getScale(y)) || {
|
|
1337
|
+
x: 1,
|
|
1338
|
+
y: 1
|
|
1339
|
+
}, x = Le(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1340
|
+
elements: s,
|
|
1341
|
+
rect: g,
|
|
1342
|
+
offsetParent: y,
|
|
1343
|
+
strategy: f
|
|
1344
|
+
}) : g);
|
|
1345
|
+
return {
|
|
1346
|
+
top: (h.top - x.top + m.top) / w.y,
|
|
1347
|
+
bottom: (x.bottom - h.bottom + m.bottom) / w.y,
|
|
1348
|
+
left: (h.left - x.left + m.left) / w.x,
|
|
1349
|
+
right: (x.right - h.right + m.right) / w.x
|
|
1350
|
+
};
|
|
1351
|
+
}
|
|
1352
|
+
var Sr = 50, Cr = async (e, t, n) => {
|
|
1353
|
+
const { placement: r = "bottom", strategy: i = "absolute", middleware: o = [], platform: a } = n, s = a.detectOverflow ? a : {
|
|
1354
|
+
...a,
|
|
1355
|
+
detectOverflow: Pr
|
|
1356
|
+
}, f = await (a.isRTL == null ? void 0 : a.isRTL(t));
|
|
1357
|
+
let p = await a.getElementRects({
|
|
1358
|
+
reference: e,
|
|
1359
|
+
floating: t,
|
|
1360
|
+
strategy: i
|
|
1361
|
+
}), { x: d, y: u } = Et(p, r, f), c = r, l = 0;
|
|
1362
|
+
const m = {};
|
|
1363
|
+
for (let v = 0; v < o.length; v++) {
|
|
1364
|
+
const h = o[v];
|
|
1365
|
+
if (!h) continue;
|
|
1366
|
+
const { name: g, fn: y } = h, { x: w, y: x, data: C, reset: E } = await y({
|
|
1367
|
+
x: d,
|
|
1368
|
+
y: u,
|
|
1369
|
+
initialPlacement: r,
|
|
1370
|
+
placement: c,
|
|
1371
|
+
strategy: i,
|
|
1372
|
+
middlewareData: m,
|
|
1373
|
+
rects: p,
|
|
1374
|
+
platform: s,
|
|
1375
|
+
elements: {
|
|
1376
|
+
reference: e,
|
|
1377
|
+
floating: t
|
|
1378
|
+
}
|
|
1379
|
+
});
|
|
1380
|
+
d = w ?? d, u = x ?? u, m[g] = {
|
|
1381
|
+
...m[g],
|
|
1382
|
+
...C
|
|
1383
|
+
}, E && l < Sr && (l++, typeof E == "object" && (E.placement && (c = E.placement), E.rects && (p = E.rects === !0 ? await a.getElementRects({
|
|
1384
|
+
reference: e,
|
|
1385
|
+
floating: t,
|
|
1386
|
+
strategy: i
|
|
1387
|
+
}) : E.rects), { x: d, y: u } = Et(p, c, f)), v = -1);
|
|
1388
|
+
}
|
|
1389
|
+
return {
|
|
1390
|
+
x: d,
|
|
1391
|
+
y: u,
|
|
1392
|
+
placement: c,
|
|
1393
|
+
strategy: i,
|
|
1394
|
+
middlewareData: m
|
|
1395
|
+
};
|
|
1396
|
+
}, Tr = (e) => ({
|
|
1397
|
+
name: "arrow",
|
|
1398
|
+
options: e,
|
|
1399
|
+
async fn(t) {
|
|
1400
|
+
const { x: n, y: r, placement: i, rects: o, platform: a, elements: s, middlewareData: f } = t, { element: p, padding: d = 0 } = X(e, t) || {};
|
|
1401
|
+
if (p == null) return {};
|
|
1402
|
+
const u = Jt(d), c = {
|
|
1403
|
+
x: n,
|
|
1404
|
+
y: r
|
|
1405
|
+
}, l = ct(i), m = ut(l), v = await a.getDimensions(p), h = l === "y", g = h ? "top" : "left", y = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", x = o.reference[m] + o.reference[l] - c[l] - o.floating[m], C = c[l] - o.reference[l], E = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(p));
|
|
1406
|
+
let O = E ? E[w] : 0;
|
|
1407
|
+
(!O || !await (a.isElement == null ? void 0 : a.isElement(E))) && (O = s.floating[w] || o.floating[m]);
|
|
1408
|
+
const A = x / 2 - C / 2, M = O / 2 - v[m] / 2 - 1, R = ne(u[g], M), J = ne(u[y], M), ie = O - v[m] - J, k = O / 2 - v[m] / 2 + A, T = Gt(R, k, ie), $ = !f.arrow && xe(i) != null && k !== T && o.reference[m] / 2 - (k < R ? R : J) - v[m] / 2 < 0, B = $ ? k < R ? k - R : k - ie : 0;
|
|
1409
|
+
return {
|
|
1410
|
+
[l]: c[l] + B,
|
|
1411
|
+
data: {
|
|
1412
|
+
[l]: T,
|
|
1413
|
+
centerOffset: k - T - B,
|
|
1414
|
+
...$ && { alignmentOffset: B }
|
|
1415
|
+
},
|
|
1416
|
+
reset: $
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
}), Mr = function(e) {
|
|
1420
|
+
return e === void 0 && (e = {}), {
|
|
1421
|
+
name: "flip",
|
|
1422
|
+
options: e,
|
|
1423
|
+
async fn(t) {
|
|
1424
|
+
var n, r;
|
|
1425
|
+
const { placement: i, middlewareData: o, rects: a, initialPlacement: s, platform: f, elements: p } = t, { mainAxis: d = !0, crossAxis: u = !0, fallbackPlacements: c, fallbackStrategy: l = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: v = !0, ...h } = X(e, t);
|
|
1426
|
+
if ((n = o.arrow) != null && n.alignmentOffset) return {};
|
|
1427
|
+
const g = re(i), y = z(s), w = re(s) === s, x = await (f.isRTL == null ? void 0 : f.isRTL(p.floating)), C = c || (w || !v ? [De(s)] : wr(s)), E = m !== "none";
|
|
1428
|
+
!c && E && C.push(...Or(s, v, m, x));
|
|
1429
|
+
const O = [s, ...C], A = await f.detectOverflow(t, h), M = [];
|
|
1430
|
+
let R = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
1431
|
+
if (d && M.push(A[g]), u) {
|
|
1432
|
+
const T = gr(i, a, x);
|
|
1433
|
+
M.push(A[T[0]], A[T[1]]);
|
|
1434
|
+
}
|
|
1435
|
+
if (R = [...R, {
|
|
1436
|
+
placement: i,
|
|
1437
|
+
overflows: M
|
|
1438
|
+
}], !M.every((T) => T <= 0)) {
|
|
1439
|
+
var J, ie;
|
|
1440
|
+
const T = (((J = o.flip) == null ? void 0 : J.index) || 0) + 1, $ = O[T];
|
|
1441
|
+
if ($ && (!(u === "alignment" && y !== z($)) || R.every((W) => z(W.placement) === y ? W.overflows[0] > 0 : !0)))
|
|
1442
|
+
return {
|
|
1443
|
+
data: {
|
|
1444
|
+
index: T,
|
|
1445
|
+
overflows: R
|
|
1446
|
+
},
|
|
1447
|
+
reset: { placement: $ }
|
|
1448
|
+
};
|
|
1449
|
+
let B = (ie = R.filter((W) => W.overflows[0] <= 0).sort((W, H) => W.overflows[1] - H.overflows[1])[0]) == null ? void 0 : ie.placement;
|
|
1450
|
+
if (!B) switch (l) {
|
|
1451
|
+
case "bestFit": {
|
|
1452
|
+
var k;
|
|
1453
|
+
const W = (k = R.filter((H) => {
|
|
1454
|
+
if (E) {
|
|
1455
|
+
const q = z(H.placement);
|
|
1456
|
+
return q === y || q === "y";
|
|
1457
|
+
}
|
|
1458
|
+
return !0;
|
|
1459
|
+
}).map((H) => [H.placement, H.overflows.filter((q) => q > 0).reduce((q, pe) => q + pe, 0)]).sort((H, q) => H[1] - q[1])[0]) == null ? void 0 : k[0];
|
|
1460
|
+
W && (B = W);
|
|
1461
|
+
break;
|
|
1462
|
+
}
|
|
1463
|
+
case "initialPlacement":
|
|
1464
|
+
B = s;
|
|
1465
|
+
}
|
|
1466
|
+
if (i !== B) return { reset: { placement: B } };
|
|
1467
|
+
}
|
|
1468
|
+
return {};
|
|
1469
|
+
}
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
1472
|
+
function Ot(e, t) {
|
|
1473
|
+
return {
|
|
1474
|
+
top: e.top - t.height,
|
|
1475
|
+
right: e.right - t.width,
|
|
1476
|
+
bottom: e.bottom - t.height,
|
|
1477
|
+
left: e.left - t.width
|
|
1478
|
+
};
|
|
1479
|
+
}
|
|
1480
|
+
function At(e) {
|
|
1481
|
+
return hr.some((t) => e[t] >= 0);
|
|
1482
|
+
}
|
|
1483
|
+
var Rr = function(e) {
|
|
1484
|
+
return e === void 0 && (e = {}), {
|
|
1485
|
+
name: "hide",
|
|
1486
|
+
options: e,
|
|
1487
|
+
async fn(t) {
|
|
1488
|
+
const { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...o } = X(e, t);
|
|
1489
|
+
switch (i) {
|
|
1490
|
+
case "referenceHidden": {
|
|
1491
|
+
const a = Ot(await r.detectOverflow(t, {
|
|
1492
|
+
...o,
|
|
1493
|
+
elementContext: "reference"
|
|
1494
|
+
}), n.reference);
|
|
1495
|
+
return { data: {
|
|
1496
|
+
referenceHiddenOffsets: a,
|
|
1497
|
+
referenceHidden: At(a)
|
|
1498
|
+
} };
|
|
1499
|
+
}
|
|
1500
|
+
case "escaped": {
|
|
1501
|
+
const a = Ot(await r.detectOverflow(t, {
|
|
1502
|
+
...o,
|
|
1503
|
+
altBoundary: !0
|
|
1504
|
+
}), n.floating);
|
|
1505
|
+
return { data: {
|
|
1506
|
+
escapedOffsets: a,
|
|
1507
|
+
escaped: At(a)
|
|
1508
|
+
} };
|
|
1509
|
+
}
|
|
1510
|
+
default:
|
|
1511
|
+
return {};
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
}, Zt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1516
|
+
async function Dr(e, t) {
|
|
1517
|
+
const { placement: n, platform: r, elements: i } = e, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), a = re(n), s = xe(n), f = z(n) === "y", p = Zt.has(a) ? -1 : 1, d = o && f ? -1 : 1, u = X(t, e);
|
|
1518
|
+
let { mainAxis: c, crossAxis: l, alignmentAxis: m } = typeof u == "number" ? {
|
|
1519
|
+
mainAxis: u,
|
|
1520
|
+
crossAxis: 0,
|
|
1521
|
+
alignmentAxis: null
|
|
1522
|
+
} : {
|
|
1523
|
+
mainAxis: u.mainAxis || 0,
|
|
1524
|
+
crossAxis: u.crossAxis || 0,
|
|
1525
|
+
alignmentAxis: u.alignmentAxis
|
|
1526
|
+
};
|
|
1527
|
+
return s && typeof m == "number" && (l = s === "end" ? m * -1 : m), f ? {
|
|
1528
|
+
x: l * d,
|
|
1529
|
+
y: c * p
|
|
1530
|
+
} : {
|
|
1531
|
+
x: c * p,
|
|
1532
|
+
y: l * d
|
|
1533
|
+
};
|
|
1534
|
+
}
|
|
1535
|
+
var Lr = function(e) {
|
|
1536
|
+
return e === void 0 && (e = 0), {
|
|
1537
|
+
name: "offset",
|
|
1538
|
+
options: e,
|
|
1539
|
+
async fn(t) {
|
|
1540
|
+
var n, r;
|
|
1541
|
+
const { x: i, y: o, placement: a, middlewareData: s } = t, f = await Dr(t, e);
|
|
1542
|
+
return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
|
|
1543
|
+
x: i + f.x,
|
|
1544
|
+
y: o + f.y,
|
|
1545
|
+
data: {
|
|
1546
|
+
...f,
|
|
1547
|
+
placement: a
|
|
1548
|
+
}
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
}, Fr = function(e) {
|
|
1553
|
+
return e === void 0 && (e = {}), {
|
|
1554
|
+
name: "shift",
|
|
1555
|
+
options: e,
|
|
1556
|
+
async fn(t) {
|
|
1557
|
+
const { x: n, y: r, placement: i, platform: o } = t, { mainAxis: a = !0, crossAxis: s = !1, limiter: f = { fn: (y) => {
|
|
1558
|
+
let { x: w, y: x } = y;
|
|
1559
|
+
return {
|
|
1560
|
+
x: w,
|
|
1561
|
+
y: x
|
|
1562
|
+
};
|
|
1563
|
+
} }, ...p } = X(e, t), d = {
|
|
1564
|
+
x: n,
|
|
1565
|
+
y: r
|
|
1566
|
+
}, u = await o.detectOverflow(t, p), c = z(i), l = lt(c);
|
|
1567
|
+
let m = d[l], v = d[c];
|
|
1568
|
+
const h = (y, w) => Gt(w + u[y === "y" ? "top" : "left"], w, w - u[y === "y" ? "bottom" : "right"]);
|
|
1569
|
+
a && (m = h(l, m)), s && (v = h(c, v));
|
|
1570
|
+
const g = f.fn({
|
|
1571
|
+
...t,
|
|
1572
|
+
[l]: m,
|
|
1573
|
+
[c]: v
|
|
1574
|
+
});
|
|
1575
|
+
return {
|
|
1576
|
+
...g,
|
|
1577
|
+
data: {
|
|
1578
|
+
x: g.x - n,
|
|
1579
|
+
y: g.y - r,
|
|
1580
|
+
enabled: {
|
|
1581
|
+
[l]: a,
|
|
1582
|
+
[c]: s
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
}, _r = function(e) {
|
|
1589
|
+
return e === void 0 && (e = {}), {
|
|
1590
|
+
options: e,
|
|
1591
|
+
fn(t) {
|
|
1592
|
+
var n, r;
|
|
1593
|
+
const { x: i, y: o, placement: a, rects: s, middlewareData: f } = t, { offset: p = 0, mainAxis: d = !0, crossAxis: u = !0 } = X(e, t), c = {
|
|
1594
|
+
x: i,
|
|
1595
|
+
y: o
|
|
1596
|
+
}, l = z(a), m = lt(l);
|
|
1597
|
+
let v = c[m], h = c[l];
|
|
1598
|
+
const g = X(p, t), y = typeof g == "number" ? {
|
|
1599
|
+
mainAxis: g,
|
|
1600
|
+
crossAxis: 0
|
|
1601
|
+
} : {
|
|
1602
|
+
mainAxis: (n = g.mainAxis) != null ? n : 0,
|
|
1603
|
+
crossAxis: (r = g.crossAxis) != null ? r : 0
|
|
1604
|
+
};
|
|
1605
|
+
if (d) {
|
|
1606
|
+
const C = m === "y" ? "height" : "width", E = s.reference[m] - s.floating[C] + y.mainAxis, O = s.reference[m] + s.reference[C] - y.mainAxis;
|
|
1607
|
+
v < E ? v = E : v > O && (v = O);
|
|
1608
|
+
}
|
|
1609
|
+
if (u) {
|
|
1610
|
+
var w, x;
|
|
1611
|
+
const C = m === "y" ? "width" : "height", E = Zt.has(re(a)), O = s.reference[l] - s.floating[C] + (E && ((w = f.offset) == null ? void 0 : w[l]) || 0) + (E ? 0 : y.crossAxis), A = s.reference[l] + s.reference[C] + (E ? 0 : ((x = f.offset) == null ? void 0 : x[l]) || 0) - (E ? y.crossAxis : 0);
|
|
1612
|
+
h < O ? h = O : h > A && (h = A);
|
|
1613
|
+
}
|
|
1614
|
+
return {
|
|
1615
|
+
[m]: v,
|
|
1616
|
+
[l]: h
|
|
1617
|
+
};
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
}, Nr = function(e) {
|
|
1621
|
+
return e === void 0 && (e = {}), {
|
|
1622
|
+
name: "size",
|
|
1623
|
+
options: e,
|
|
1624
|
+
async fn(t) {
|
|
1625
|
+
const { placement: n, rects: r, platform: i, elements: o } = t, { apply: a = () => {
|
|
1626
|
+
}, ...s } = X(e, t), f = await i.detectOverflow(t, s), p = re(n), d = xe(n), u = z(n) === "y", { width: c, height: l } = r.floating;
|
|
1627
|
+
let m, v;
|
|
1628
|
+
p === "top" || p === "bottom" ? (m = p, v = d === (await (i.isRTL == null ? void 0 : i.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (v = p, m = d === "end" ? "top" : "bottom");
|
|
1629
|
+
const h = l - f.top - f.bottom, g = c - f.left - f.right, y = ne(l - f[m], h), w = ne(c - f[v], g), x = t.middlewareData.shift, C = !x;
|
|
1630
|
+
let E = y, O = w;
|
|
1631
|
+
x != null && x.enabled.x && (O = g), x != null && x.enabled.y && (E = h), C && !d && (u ? O = c - 2 * K(f.left, f.right) : E = l - 2 * K(f.top, f.bottom)), await a({
|
|
1632
|
+
...t,
|
|
1633
|
+
availableWidth: O,
|
|
1634
|
+
availableHeight: E
|
|
1635
|
+
});
|
|
1636
|
+
const A = await i.getDimensions(o.floating);
|
|
1637
|
+
return c !== A.width || l !== A.height ? { reset: { rects: !0 } } : {};
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
function Ne() {
|
|
1642
|
+
return typeof window < "u";
|
|
1643
|
+
}
|
|
1644
|
+
function de(e) {
|
|
1645
|
+
return ft(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1646
|
+
}
|
|
1647
|
+
function _(e) {
|
|
1648
|
+
var t;
|
|
1649
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1650
|
+
}
|
|
1651
|
+
function G(e) {
|
|
1652
|
+
var t;
|
|
1653
|
+
return (t = (ft(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1654
|
+
}
|
|
1655
|
+
function ft(e) {
|
|
1656
|
+
return Ne() ? e instanceof Node || e instanceof _(e).Node : !1;
|
|
1657
|
+
}
|
|
1658
|
+
function V(e) {
|
|
1659
|
+
return Ne() ? e instanceof Element || e instanceof _(e).Element : !1;
|
|
1660
|
+
}
|
|
1661
|
+
function oe(e) {
|
|
1662
|
+
return Ne() ? e instanceof HTMLElement || e instanceof _(e).HTMLElement : !1;
|
|
1663
|
+
}
|
|
1664
|
+
function Pt(e) {
|
|
1665
|
+
return !Ne() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof _(e).ShadowRoot;
|
|
1666
|
+
}
|
|
1667
|
+
function ke(e) {
|
|
1668
|
+
const { overflow: t, overflowX: n, overflowY: r, display: i } = j(e);
|
|
1669
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
1670
|
+
}
|
|
1671
|
+
function kr(e) {
|
|
1672
|
+
return /^(table|td|th)$/.test(de(e));
|
|
1673
|
+
}
|
|
1674
|
+
function $e(e) {
|
|
1675
|
+
try {
|
|
1676
|
+
if (e.matches(":popover-open")) return !0;
|
|
1677
|
+
} catch {
|
|
1678
|
+
}
|
|
1679
|
+
try {
|
|
1680
|
+
return e.matches(":modal");
|
|
1681
|
+
} catch {
|
|
1682
|
+
return !1;
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
var $r = /transform|translate|scale|rotate|perspective|filter/, Br = /paint|layout|strict|content/, ae = (e) => !!e && e !== "none", Ke;
|
|
1686
|
+
function dt(e) {
|
|
1687
|
+
const t = V(e) ? j(e) : e;
|
|
1688
|
+
return ae(t.transform) || ae(t.translate) || ae(t.scale) || ae(t.rotate) || ae(t.perspective) || !pt() && (ae(t.backdropFilter) || ae(t.filter)) || $r.test(t.willChange || "") || Br.test(t.contain || "");
|
|
1689
|
+
}
|
|
1690
|
+
function Wr(e) {
|
|
1691
|
+
let t = ue(e);
|
|
1692
|
+
for (; oe(t) && !Ee(t); ) {
|
|
1693
|
+
if (dt(t)) return t;
|
|
1694
|
+
if ($e(t)) return null;
|
|
1695
|
+
t = ue(t);
|
|
1696
|
+
}
|
|
1697
|
+
return null;
|
|
1698
|
+
}
|
|
1699
|
+
function pt() {
|
|
1700
|
+
return Ke == null && (Ke = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Ke;
|
|
1701
|
+
}
|
|
1702
|
+
function Ee(e) {
|
|
1703
|
+
return /^(html|body|#document)$/.test(de(e));
|
|
1704
|
+
}
|
|
1705
|
+
function j(e) {
|
|
1706
|
+
return _(e).getComputedStyle(e);
|
|
1707
|
+
}
|
|
1708
|
+
function Be(e) {
|
|
1709
|
+
return V(e) ? {
|
|
1710
|
+
scrollLeft: e.scrollLeft,
|
|
1711
|
+
scrollTop: e.scrollTop
|
|
1712
|
+
} : {
|
|
1713
|
+
scrollLeft: e.scrollX,
|
|
1714
|
+
scrollTop: e.scrollY
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1717
|
+
function ue(e) {
|
|
1718
|
+
if (de(e) === "html") return e;
|
|
1719
|
+
const t = e.assignedSlot || e.parentNode || Pt(e) && e.host || G(e);
|
|
1720
|
+
return Pt(t) ? t.host : t;
|
|
1721
|
+
}
|
|
1722
|
+
function Qt(e) {
|
|
1723
|
+
const t = ue(e);
|
|
1724
|
+
return Ee(t) ? (e.ownerDocument || e).body : oe(t) && ke(t) ? t : Qt(t);
|
|
1725
|
+
}
|
|
1726
|
+
function Oe(e, t, n) {
|
|
1727
|
+
var r;
|
|
1728
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1729
|
+
const i = Qt(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), a = _(i);
|
|
1730
|
+
if (o) {
|
|
1731
|
+
const s = et(a);
|
|
1732
|
+
return t.concat(a, a.visualViewport || [], ke(i) ? i : [], s && n ? Oe(s) : []);
|
|
1733
|
+
} else return t.concat(i, Oe(i, [], n));
|
|
1734
|
+
}
|
|
1735
|
+
function et(e) {
|
|
1736
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1737
|
+
}
|
|
1738
|
+
function en(e) {
|
|
1739
|
+
const t = j(e);
|
|
1740
|
+
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1741
|
+
const i = oe(e), o = i ? e.offsetWidth : n, a = i ? e.offsetHeight : r, s = Re(n) !== o || Re(r) !== a;
|
|
1742
|
+
return s && (n = o, r = a), {
|
|
1743
|
+
width: n,
|
|
1744
|
+
height: r,
|
|
1745
|
+
$: s
|
|
1746
|
+
};
|
|
1747
|
+
}
|
|
1748
|
+
function vt(e) {
|
|
1749
|
+
return V(e) ? e : e.contextElement;
|
|
1750
|
+
}
|
|
1751
|
+
function ye(e) {
|
|
1752
|
+
const t = vt(e);
|
|
1753
|
+
if (!oe(t)) return Y(1);
|
|
1754
|
+
const n = t.getBoundingClientRect(), { width: r, height: i, $: o } = en(t);
|
|
1755
|
+
let a = (o ? Re(n.width) : n.width) / r, s = (o ? Re(n.height) : n.height) / i;
|
|
1756
|
+
return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1757
|
+
x: a,
|
|
1758
|
+
y: s
|
|
1759
|
+
};
|
|
1760
|
+
}
|
|
1761
|
+
var Ir = /* @__PURE__ */ Y(0);
|
|
1762
|
+
function tn(e) {
|
|
1763
|
+
const t = _(e);
|
|
1764
|
+
return !pt() || !t.visualViewport ? Ir : {
|
|
1765
|
+
x: t.visualViewport.offsetLeft,
|
|
1766
|
+
y: t.visualViewport.offsetTop
|
|
1767
|
+
};
|
|
1768
|
+
}
|
|
1769
|
+
function Hr(e, t, n) {
|
|
1770
|
+
return t === void 0 && (t = !1), !!n && t && n === _(e);
|
|
1771
|
+
}
|
|
1772
|
+
function ce(e, t, n, r) {
|
|
1773
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1774
|
+
const i = e.getBoundingClientRect(), o = vt(e);
|
|
1775
|
+
let a = Y(1);
|
|
1776
|
+
t && (r ? V(r) && (a = ye(r)) : a = ye(e));
|
|
1777
|
+
const s = Hr(o, n, r) ? tn(o) : Y(0);
|
|
1778
|
+
let f = (i.left + s.x) / a.x, p = (i.top + s.y) / a.y, d = i.width / a.x, u = i.height / a.y;
|
|
1779
|
+
if (o && r) {
|
|
1780
|
+
const c = _(o), l = V(r) ? _(r) : r;
|
|
1781
|
+
let m = c, v = et(m);
|
|
1782
|
+
for (; v && l !== m; ) {
|
|
1783
|
+
const h = ye(v), g = v.getBoundingClientRect(), y = j(v), w = g.left + (v.clientLeft + parseFloat(y.paddingLeft)) * h.x, x = g.top + (v.clientTop + parseFloat(y.paddingTop)) * h.y;
|
|
1784
|
+
f *= h.x, p *= h.y, d *= h.x, u *= h.y, f += w, p += x, m = _(v), v = et(m);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
return Le({
|
|
1788
|
+
width: d,
|
|
1789
|
+
height: u,
|
|
1790
|
+
x: f,
|
|
1791
|
+
y: p
|
|
1792
|
+
});
|
|
1793
|
+
}
|
|
1794
|
+
function We(e, t) {
|
|
1795
|
+
const n = Be(e).scrollLeft;
|
|
1796
|
+
return t ? t.left + n : ce(G(e)).left + n;
|
|
1797
|
+
}
|
|
1798
|
+
function nn(e, t) {
|
|
1799
|
+
const n = e.getBoundingClientRect();
|
|
1800
|
+
return {
|
|
1801
|
+
x: n.left + t.scrollLeft - We(e, n),
|
|
1802
|
+
y: n.top + t.scrollTop
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
function qr(e) {
|
|
1806
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e;
|
|
1807
|
+
const o = i === "fixed", a = G(r), s = t ? $e(t.floating) : !1;
|
|
1808
|
+
if (r === a || s && o) return n;
|
|
1809
|
+
let f = {
|
|
1810
|
+
scrollLeft: 0,
|
|
1811
|
+
scrollTop: 0
|
|
1812
|
+
}, p = Y(1);
|
|
1813
|
+
const d = Y(0), u = oe(r);
|
|
1814
|
+
if ((u || !o) && ((de(r) !== "body" || ke(a)) && (f = Be(r)), u)) {
|
|
1815
|
+
const l = ce(r);
|
|
1816
|
+
p = ye(r), d.x = l.x + r.clientLeft, d.y = l.y + r.clientTop;
|
|
1817
|
+
}
|
|
1818
|
+
const c = a && !u && !o ? nn(a, f) : Y(0);
|
|
1819
|
+
return {
|
|
1820
|
+
width: n.width * p.x,
|
|
1821
|
+
height: n.height * p.y,
|
|
1822
|
+
x: n.x * p.x - f.scrollLeft * p.x + d.x + c.x,
|
|
1823
|
+
y: n.y * p.y - f.scrollTop * p.y + d.y + c.y
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
function zr(e) {
|
|
1827
|
+
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
1828
|
+
}
|
|
1829
|
+
function Vr(e) {
|
|
1830
|
+
const t = Be(e), n = e.ownerDocument.body, r = K(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = K(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
1831
|
+
let o = -t.scrollLeft + We(e);
|
|
1832
|
+
const a = -t.scrollTop;
|
|
1833
|
+
return j(n).direction === "rtl" && (o += K(e.clientWidth, n.clientWidth) - r), {
|
|
1834
|
+
width: r,
|
|
1835
|
+
height: i,
|
|
1836
|
+
x: o,
|
|
1837
|
+
y: a
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
var jr = 25;
|
|
1841
|
+
function Ur(e, t, n) {
|
|
1842
|
+
n === void 0 && (n = "viewport");
|
|
1843
|
+
const r = n === "layoutViewport", i = _(e), o = G(e), a = i.visualViewport;
|
|
1844
|
+
let s = o.clientWidth, f = o.clientHeight, p = 0, d = 0;
|
|
1845
|
+
if (a) {
|
|
1846
|
+
const u = !pt() || t === "fixed";
|
|
1847
|
+
r ? u || (p = -a.offsetLeft, d = -a.offsetTop) : (s = a.width, f = a.height, u && (p = a.offsetLeft, d = a.offsetTop));
|
|
1848
|
+
}
|
|
1849
|
+
if (We(o) <= 0) {
|
|
1850
|
+
const u = o.ownerDocument, c = u.body, l = getComputedStyle(c), m = u.compatMode === "CSS1Compat" && parseFloat(l.marginLeft) + parseFloat(l.marginRight) || 0, v = Math.abs(o.clientWidth - c.clientWidth - m), h = getComputedStyle(o).scrollbarGutter === "stable both-edges" ? v / 2 : v;
|
|
1851
|
+
h <= jr && (s -= h);
|
|
1852
|
+
}
|
|
1853
|
+
return {
|
|
1854
|
+
width: s,
|
|
1855
|
+
height: f,
|
|
1856
|
+
x: p,
|
|
1857
|
+
y: d
|
|
1858
|
+
};
|
|
1859
|
+
}
|
|
1860
|
+
function Kr(e, t) {
|
|
1861
|
+
const n = ce(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = ye(e);
|
|
1862
|
+
return {
|
|
1863
|
+
width: e.clientWidth * o.x,
|
|
1864
|
+
height: e.clientHeight * o.y,
|
|
1865
|
+
x: i * o.x,
|
|
1866
|
+
y: r * o.y
|
|
1867
|
+
};
|
|
1868
|
+
}
|
|
1869
|
+
function St(e, t, n) {
|
|
1870
|
+
let r;
|
|
1871
|
+
if (t === "viewport" || t === "layoutViewport") r = Ur(e, n, t);
|
|
1872
|
+
else if (t === "document") r = Vr(G(e));
|
|
1873
|
+
else if (V(t)) r = Kr(t, n);
|
|
1874
|
+
else {
|
|
1875
|
+
const i = tn(e);
|
|
1876
|
+
r = {
|
|
1877
|
+
x: t.x - i.x,
|
|
1878
|
+
y: t.y - i.y,
|
|
1879
|
+
width: t.width,
|
|
1880
|
+
height: t.height
|
|
1881
|
+
};
|
|
1882
|
+
}
|
|
1883
|
+
return Le(r);
|
|
1884
|
+
}
|
|
1885
|
+
function Yr(e, t) {
|
|
1886
|
+
const n = t.get(e);
|
|
1887
|
+
if (n) return n;
|
|
1888
|
+
let r = Oe(e, [], !1).filter((s) => V(s) && de(s) !== "body"), i = null;
|
|
1889
|
+
const o = j(e).position === "fixed";
|
|
1890
|
+
let a = o ? ue(e) : e;
|
|
1891
|
+
for (; V(a) && !Ee(a); ) {
|
|
1892
|
+
const s = j(a), f = dt(a), p = i ? i.position : o ? "fixed" : "";
|
|
1893
|
+
!f && (p === "fixed" || p === "absolute" && s.position === "static") ? r = r.filter((d) => d !== a) : i = s, a = ue(a);
|
|
1894
|
+
}
|
|
1895
|
+
return t.set(e, r), r;
|
|
1896
|
+
}
|
|
1897
|
+
function Xr(e) {
|
|
1898
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e;
|
|
1899
|
+
const o = [...n === "clippingAncestors" ? $e(t) ? [] : Yr(t, this._c) : [].concat(n), r], a = St(t, o[0], i);
|
|
1900
|
+
let s = a.top, f = a.right, p = a.bottom, d = a.left;
|
|
1901
|
+
for (let u = 1; u < o.length; u++) {
|
|
1902
|
+
const c = St(t, o[u], i);
|
|
1903
|
+
s = K(c.top, s), f = ne(c.right, f), p = ne(c.bottom, p), d = K(c.left, d);
|
|
1904
|
+
}
|
|
1905
|
+
return {
|
|
1906
|
+
width: f - d,
|
|
1907
|
+
height: p - s,
|
|
1908
|
+
x: d,
|
|
1909
|
+
y: s
|
|
1910
|
+
};
|
|
1911
|
+
}
|
|
1912
|
+
function Gr(e) {
|
|
1913
|
+
const { width: t, height: n } = en(e);
|
|
1914
|
+
return {
|
|
1915
|
+
width: t,
|
|
1916
|
+
height: n
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
function Jr(e, t, n) {
|
|
1920
|
+
const r = oe(t), i = G(t), o = n === "fixed", a = ce(e, !0, o, t);
|
|
1921
|
+
let s = {
|
|
1922
|
+
scrollLeft: 0,
|
|
1923
|
+
scrollTop: 0
|
|
1924
|
+
};
|
|
1925
|
+
const f = Y(0);
|
|
1926
|
+
if ((r || !o) && ((de(t) !== "body" || ke(i)) && (s = Be(t)), r)) {
|
|
1927
|
+
const d = ce(t, !0, o, t);
|
|
1928
|
+
f.x = d.x + t.clientLeft, f.y = d.y + t.clientTop;
|
|
1929
|
+
}
|
|
1930
|
+
!r && i && (f.x = We(i));
|
|
1931
|
+
const p = i && !r && !o ? nn(i, s) : Y(0);
|
|
1932
|
+
return {
|
|
1933
|
+
x: a.left + s.scrollLeft - f.x - p.x,
|
|
1934
|
+
y: a.top + s.scrollTop - f.y - p.y,
|
|
1935
|
+
width: a.width,
|
|
1936
|
+
height: a.height
|
|
1937
|
+
};
|
|
1938
|
+
}
|
|
1939
|
+
function Ye(e) {
|
|
1940
|
+
return j(e).position === "static";
|
|
1941
|
+
}
|
|
1942
|
+
function Ct(e, t) {
|
|
1943
|
+
if (!oe(e) || j(e).position === "fixed") return null;
|
|
1944
|
+
if (t) return t(e);
|
|
1945
|
+
let n = e.offsetParent;
|
|
1946
|
+
return G(e) === n && (n = n.ownerDocument.body), n;
|
|
1947
|
+
}
|
|
1948
|
+
function rn(e, t) {
|
|
1949
|
+
const n = _(e);
|
|
1950
|
+
if ($e(e)) return n;
|
|
1951
|
+
if (!oe(e)) {
|
|
1952
|
+
let i = ue(e);
|
|
1953
|
+
for (; i && !Ee(i); ) {
|
|
1954
|
+
if (V(i) && !Ye(i)) return i;
|
|
1955
|
+
i = ue(i);
|
|
1956
|
+
}
|
|
1957
|
+
return n;
|
|
1958
|
+
}
|
|
1959
|
+
let r = Ct(e, t);
|
|
1960
|
+
for (; r && kr(r) && Ye(r); ) r = Ct(r, t);
|
|
1961
|
+
return r && Ee(r) && Ye(r) && !dt(r) ? n : r || Wr(e) || n;
|
|
1962
|
+
}
|
|
1963
|
+
var Zr = async function(e) {
|
|
1964
|
+
const t = this.getOffsetParent || rn, n = this.getDimensions, r = await n(e.floating);
|
|
1965
|
+
return {
|
|
1966
|
+
reference: Jr(e.reference, await t(e.floating), e.strategy),
|
|
1967
|
+
floating: {
|
|
1968
|
+
x: 0,
|
|
1969
|
+
y: 0,
|
|
1970
|
+
width: r.width,
|
|
1971
|
+
height: r.height
|
|
1972
|
+
}
|
|
1973
|
+
};
|
|
1974
|
+
};
|
|
1975
|
+
function Qr(e) {
|
|
1976
|
+
return j(e).direction === "rtl";
|
|
1977
|
+
}
|
|
1978
|
+
var eo = {
|
|
1979
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: qr,
|
|
1980
|
+
getDocumentElement: G,
|
|
1981
|
+
getClippingRect: Xr,
|
|
1982
|
+
getOffsetParent: rn,
|
|
1983
|
+
getElementRects: Zr,
|
|
1984
|
+
getClientRects: zr,
|
|
1985
|
+
getDimensions: Gr,
|
|
1986
|
+
getScale: ye,
|
|
1987
|
+
isElement: V,
|
|
1988
|
+
isRTL: Qr
|
|
1989
|
+
};
|
|
1990
|
+
function on(e, t) {
|
|
1991
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1992
|
+
}
|
|
1993
|
+
function to(e, t, n) {
|
|
1994
|
+
let r = null, i;
|
|
1995
|
+
const o = G(e);
|
|
1996
|
+
function a() {
|
|
1997
|
+
var d;
|
|
1998
|
+
clearTimeout(i), (d = r) == null || d.disconnect(), r = null;
|
|
1999
|
+
}
|
|
2000
|
+
function s(d, u) {
|
|
2001
|
+
d === void 0 && (d = !1), u === void 0 && (u = 1), a();
|
|
2002
|
+
const c = e.getBoundingClientRect(), { left: l, top: m, width: v, height: h } = c;
|
|
2003
|
+
if (d || t(), !v || !h) return;
|
|
2004
|
+
const g = Ce(m), y = Ce(o.clientWidth - (l + v)), w = Ce(o.clientHeight - (m + h)), x = Ce(l), C = {
|
|
2005
|
+
rootMargin: -g + "px " + -y + "px " + -w + "px " + -x + "px",
|
|
2006
|
+
threshold: K(0, ne(1, u)) || 1
|
|
2007
|
+
};
|
|
2008
|
+
let E = !0;
|
|
2009
|
+
function O(A) {
|
|
2010
|
+
const M = A[0].intersectionRatio;
|
|
2011
|
+
if (!on(c, e.getBoundingClientRect())) return s();
|
|
2012
|
+
if (M !== u) {
|
|
2013
|
+
if (!E) return s();
|
|
2014
|
+
M ? s(!1, M) : i = setTimeout(() => {
|
|
2015
|
+
s(!1, 1e-7);
|
|
2016
|
+
}, 1e3);
|
|
2017
|
+
}
|
|
2018
|
+
E = !1;
|
|
2019
|
+
}
|
|
2020
|
+
try {
|
|
2021
|
+
r = new IntersectionObserver(O, {
|
|
2022
|
+
...C,
|
|
2023
|
+
root: o.ownerDocument
|
|
2024
|
+
});
|
|
2025
|
+
} catch {
|
|
2026
|
+
r = new IntersectionObserver(O, C);
|
|
2027
|
+
}
|
|
2028
|
+
r.observe(e);
|
|
2029
|
+
}
|
|
2030
|
+
const f = _(e), p = () => s(n);
|
|
2031
|
+
return f.addEventListener("resize", p), s(!0), () => {
|
|
2032
|
+
f.removeEventListener("resize", p), a();
|
|
2033
|
+
};
|
|
2034
|
+
}
|
|
2035
|
+
function no(e, t, n, r) {
|
|
2036
|
+
r === void 0 && (r = {});
|
|
2037
|
+
const { ancestorScroll: i = !0, ancestorResize: o = !0, elementResize: a = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: f = !1 } = r, p = vt(e), d = i || o ? [...p ? Oe(p) : [], ...t ? Oe(t) : []] : [];
|
|
2038
|
+
d.forEach((g) => {
|
|
2039
|
+
i && g.addEventListener("scroll", n), o && g.addEventListener("resize", n);
|
|
2040
|
+
});
|
|
2041
|
+
const u = p && s ? to(p, n, o) : null;
|
|
2042
|
+
let c = -1, l = null;
|
|
2043
|
+
a && (l = new ResizeObserver((g) => {
|
|
2044
|
+
let [y] = g;
|
|
2045
|
+
y && y.target === p && l && t && (l.unobserve(t), cancelAnimationFrame(c), c = requestAnimationFrame(() => {
|
|
2046
|
+
var w;
|
|
2047
|
+
(w = l) == null || w.observe(t);
|
|
2048
|
+
})), n();
|
|
2049
|
+
}), p && !f && l.observe(p), t && l.observe(t));
|
|
2050
|
+
let m, v = f ? ce(e) : null;
|
|
2051
|
+
f && h();
|
|
2052
|
+
function h() {
|
|
2053
|
+
const g = ce(e);
|
|
2054
|
+
v && !on(v, g) && n(), v = g, m = requestAnimationFrame(h);
|
|
2055
|
+
}
|
|
2056
|
+
return n(), () => {
|
|
2057
|
+
var g;
|
|
2058
|
+
d.forEach((y) => {
|
|
2059
|
+
i && y.removeEventListener("scroll", n), o && y.removeEventListener("resize", n);
|
|
2060
|
+
}), u?.(), (g = l) == null || g.disconnect(), l = null, f && cancelAnimationFrame(m);
|
|
2061
|
+
};
|
|
2062
|
+
}
|
|
2063
|
+
var ro = Lr, oo = Fr, Tt = Mr, io = Nr, ao = Rr, so = Tr, lo = _r, uo = (e, t, n) => {
|
|
2064
|
+
const r = /* @__PURE__ */ new Map(), i = n ?? {}, o = {
|
|
2065
|
+
...eo,
|
|
2066
|
+
...i.platform,
|
|
2067
|
+
_c: r
|
|
2068
|
+
};
|
|
2069
|
+
return Cr(e, t, {
|
|
2070
|
+
...i,
|
|
2071
|
+
platform: o
|
|
2072
|
+
});
|
|
2073
|
+
};
|
|
2074
|
+
function co(e) {
|
|
2075
|
+
return e != null && typeof e == "object" && "$el" in e;
|
|
2076
|
+
}
|
|
2077
|
+
function tt(e) {
|
|
2078
|
+
if (co(e)) {
|
|
2079
|
+
const t = e.$el;
|
|
2080
|
+
return ft(t) && de(t) === "#comment" ? null : t;
|
|
2081
|
+
}
|
|
2082
|
+
return e;
|
|
2083
|
+
}
|
|
2084
|
+
function he(e) {
|
|
2085
|
+
return typeof e == "function" ? e() : P(e);
|
|
2086
|
+
}
|
|
2087
|
+
function fo(e) {
|
|
2088
|
+
return {
|
|
2089
|
+
name: "arrow",
|
|
2090
|
+
options: e,
|
|
2091
|
+
fn(t) {
|
|
2092
|
+
const n = tt(he(e.element));
|
|
2093
|
+
return n == null ? {} : so({
|
|
2094
|
+
element: n,
|
|
2095
|
+
padding: e.padding
|
|
2096
|
+
}).fn(t);
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
function an(e) {
|
|
2101
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2102
|
+
}
|
|
2103
|
+
function Mt(e, t) {
|
|
2104
|
+
const n = an(e);
|
|
2105
|
+
return Math.round(t * n) / n;
|
|
2106
|
+
}
|
|
2107
|
+
function po(e, t, n) {
|
|
2108
|
+
n === void 0 && (n = {});
|
|
2109
|
+
const r = n.whileElementsMounted, i = b(() => {
|
|
2110
|
+
var O;
|
|
2111
|
+
return (O = he(n.open)) != null ? O : !0;
|
|
2112
|
+
}), o = b(() => he(n.middleware)), a = b(() => {
|
|
2113
|
+
var O;
|
|
2114
|
+
return (O = he(n.placement)) != null ? O : "bottom";
|
|
2115
|
+
}), s = b(() => {
|
|
2116
|
+
var O;
|
|
2117
|
+
return (O = he(n.strategy)) != null ? O : "absolute";
|
|
2118
|
+
}), f = b(() => {
|
|
2119
|
+
var O;
|
|
2120
|
+
return (O = he(n.transform)) != null ? O : !0;
|
|
2121
|
+
}), p = b(() => tt(e.value)), d = b(() => tt(t.value)), u = S(0), c = S(0), l = S(s.value), m = S(a.value), v = $t({}), h = S(!1), g = b(() => {
|
|
2122
|
+
const O = {
|
|
2123
|
+
position: l.value,
|
|
2124
|
+
left: "0",
|
|
2125
|
+
top: "0"
|
|
2126
|
+
};
|
|
2127
|
+
if (!d.value) return O;
|
|
2128
|
+
const A = Mt(d.value, u.value), M = Mt(d.value, c.value);
|
|
2129
|
+
return f.value ? {
|
|
2130
|
+
...O,
|
|
2131
|
+
transform: "translate(" + A + "px, " + M + "px)",
|
|
2132
|
+
...an(d.value) >= 1.5 && { willChange: "transform" }
|
|
2133
|
+
} : {
|
|
2134
|
+
position: l.value,
|
|
2135
|
+
left: A + "px",
|
|
2136
|
+
top: M + "px"
|
|
2137
|
+
};
|
|
2138
|
+
});
|
|
2139
|
+
let y;
|
|
2140
|
+
function w() {
|
|
2141
|
+
if (p.value == null || d.value == null) return;
|
|
2142
|
+
const O = i.value;
|
|
2143
|
+
uo(p.value, d.value, {
|
|
2144
|
+
middleware: o.value,
|
|
2145
|
+
placement: a.value,
|
|
2146
|
+
strategy: s.value
|
|
2147
|
+
}).then((A) => {
|
|
2148
|
+
u.value = A.x, c.value = A.y, l.value = A.strategy, m.value = A.placement, v.value = A.middlewareData, h.value = O !== !1;
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2151
|
+
function x() {
|
|
2152
|
+
typeof y == "function" && (y(), y = void 0);
|
|
2153
|
+
}
|
|
2154
|
+
function C() {
|
|
2155
|
+
if (x(), r === void 0) {
|
|
2156
|
+
w();
|
|
2157
|
+
return;
|
|
2158
|
+
}
|
|
2159
|
+
if (p.value != null && d.value != null) {
|
|
2160
|
+
y = r(p.value, d.value, w);
|
|
2161
|
+
return;
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
function E() {
|
|
2165
|
+
i.value || (h.value = !1);
|
|
2166
|
+
}
|
|
2167
|
+
return L([
|
|
2168
|
+
o,
|
|
2169
|
+
a,
|
|
2170
|
+
s,
|
|
2171
|
+
i
|
|
2172
|
+
], w, { flush: "sync" }), L([p, d], C, { flush: "sync" }), L(i, E, { flush: "sync" }), Bt() && Nt(x), {
|
|
2173
|
+
x: ve(u),
|
|
2174
|
+
y: ve(c),
|
|
2175
|
+
strategy: ve(l),
|
|
2176
|
+
placement: ve(m),
|
|
2177
|
+
middlewareData: ve(v),
|
|
2178
|
+
isPositioned: ve(h),
|
|
2179
|
+
floatingStyles: g,
|
|
2180
|
+
update: w
|
|
2181
|
+
};
|
|
2182
|
+
}
|
|
2183
|
+
var vo = ["dir"], mo = {
|
|
2184
|
+
side: "bottom",
|
|
2185
|
+
sideOffset: 0,
|
|
2186
|
+
sideFlip: !0,
|
|
2187
|
+
align: "center",
|
|
2188
|
+
alignOffset: 0,
|
|
2189
|
+
alignFlip: !0,
|
|
2190
|
+
arrowPadding: 0,
|
|
2191
|
+
hideShiftedArrow: !0,
|
|
2192
|
+
avoidCollisions: !0,
|
|
2193
|
+
collisionBoundary: () => [],
|
|
2194
|
+
collisionPadding: 0,
|
|
2195
|
+
sticky: "partial",
|
|
2196
|
+
hideWhenDetached: !1,
|
|
2197
|
+
positionStrategy: "fixed",
|
|
2198
|
+
updatePositionStrategy: "optimized",
|
|
2199
|
+
prioritizePosition: !1
|
|
2200
|
+
}, [Go, ho] = /* @__PURE__ */ rt("PopperContent"), Jo = /* @__PURE__ */ I({
|
|
2201
|
+
inheritAttrs: !1,
|
|
2202
|
+
__name: "PopperContent",
|
|
2203
|
+
props: /* @__PURE__ */ ln({
|
|
2204
|
+
memoDependencies: {
|
|
2205
|
+
type: Array,
|
|
2206
|
+
required: !1
|
|
2207
|
+
},
|
|
2208
|
+
side: {
|
|
2209
|
+
type: null,
|
|
2210
|
+
required: !1
|
|
2211
|
+
},
|
|
2212
|
+
sideOffset: {
|
|
2213
|
+
type: Number,
|
|
2214
|
+
required: !1
|
|
2215
|
+
},
|
|
2216
|
+
sideFlip: {
|
|
2217
|
+
type: Boolean,
|
|
2218
|
+
required: !1
|
|
2219
|
+
},
|
|
2220
|
+
align: {
|
|
2221
|
+
type: null,
|
|
2222
|
+
required: !1
|
|
2223
|
+
},
|
|
2224
|
+
alignOffset: {
|
|
2225
|
+
type: Number,
|
|
2226
|
+
required: !1
|
|
2227
|
+
},
|
|
2228
|
+
alignFlip: {
|
|
2229
|
+
type: Boolean,
|
|
2230
|
+
required: !1
|
|
2231
|
+
},
|
|
2232
|
+
avoidCollisions: {
|
|
2233
|
+
type: Boolean,
|
|
2234
|
+
required: !1
|
|
2235
|
+
},
|
|
2236
|
+
collisionBoundary: {
|
|
2237
|
+
type: null,
|
|
2238
|
+
required: !1
|
|
2239
|
+
},
|
|
2240
|
+
collisionPadding: {
|
|
2241
|
+
type: [Number, Object],
|
|
2242
|
+
required: !1
|
|
2243
|
+
},
|
|
2244
|
+
arrowPadding: {
|
|
2245
|
+
type: Number,
|
|
2246
|
+
required: !1
|
|
2247
|
+
},
|
|
2248
|
+
hideShiftedArrow: {
|
|
2249
|
+
type: Boolean,
|
|
2250
|
+
required: !1
|
|
2251
|
+
},
|
|
2252
|
+
sticky: {
|
|
2253
|
+
type: String,
|
|
2254
|
+
required: !1
|
|
2255
|
+
},
|
|
2256
|
+
hideWhenDetached: {
|
|
2257
|
+
type: Boolean,
|
|
2258
|
+
required: !1
|
|
2259
|
+
},
|
|
2260
|
+
positionStrategy: {
|
|
2261
|
+
type: String,
|
|
2262
|
+
required: !1
|
|
2263
|
+
},
|
|
2264
|
+
updatePositionStrategy: {
|
|
2265
|
+
type: String,
|
|
2266
|
+
required: !1
|
|
2267
|
+
},
|
|
2268
|
+
disableUpdateOnLayoutShift: {
|
|
2269
|
+
type: Boolean,
|
|
2270
|
+
required: !1
|
|
2271
|
+
},
|
|
2272
|
+
prioritizePosition: {
|
|
2273
|
+
type: Boolean,
|
|
2274
|
+
required: !1
|
|
2275
|
+
},
|
|
2276
|
+
reference: {
|
|
2277
|
+
type: null,
|
|
2278
|
+
required: !1
|
|
2279
|
+
},
|
|
2280
|
+
dir: {
|
|
2281
|
+
type: String,
|
|
2282
|
+
required: !1
|
|
2283
|
+
},
|
|
2284
|
+
asChild: {
|
|
2285
|
+
type: Boolean,
|
|
2286
|
+
required: !1
|
|
2287
|
+
},
|
|
2288
|
+
as: {
|
|
2289
|
+
type: null,
|
|
2290
|
+
required: !1
|
|
2291
|
+
}
|
|
2292
|
+
}, { ...mo }),
|
|
2293
|
+
emits: ["placed"],
|
|
2294
|
+
setup(e, { emit: t }) {
|
|
2295
|
+
const n = e, r = t, i = Xt(), { forwardRef: o, currentElement: a } = _e(), s = Vn(b(() => n.dir)), f = S(), p = S(), { width: d, height: u } = Zn(p), c = b(() => n.side + (n.align !== "center" ? `-${n.align}` : "")), l = b(() => typeof n.collisionPadding == "number" ? n.collisionPadding : {
|
|
2296
|
+
top: 0,
|
|
2297
|
+
right: 0,
|
|
2298
|
+
bottom: 0,
|
|
2299
|
+
left: 0,
|
|
2300
|
+
...n.collisionPadding
|
|
2301
|
+
}), m = b(() => Array.isArray(n.collisionBoundary) ? n.collisionBoundary : [n.collisionBoundary]), v = b(() => ({
|
|
2302
|
+
padding: l.value,
|
|
2303
|
+
boundary: m.value.filter(vr),
|
|
2304
|
+
altBoundary: m.value.length > 0
|
|
2305
|
+
})), h = b(() => ({
|
|
2306
|
+
mainAxis: n.sideFlip,
|
|
2307
|
+
crossAxis: n.alignFlip
|
|
2308
|
+
})), g = b(() => [
|
|
2309
|
+
ro({
|
|
2310
|
+
mainAxis: n.sideOffset + u.value,
|
|
2311
|
+
alignmentAxis: n.alignOffset
|
|
2312
|
+
}),
|
|
2313
|
+
n.prioritizePosition && n.avoidCollisions && Tt({
|
|
2314
|
+
...v.value,
|
|
2315
|
+
...h.value
|
|
2316
|
+
}),
|
|
2317
|
+
n.avoidCollisions && oo({
|
|
2318
|
+
mainAxis: !0,
|
|
2319
|
+
crossAxis: !!n.prioritizePosition,
|
|
2320
|
+
limiter: n.sticky === "partial" ? lo() : void 0,
|
|
2321
|
+
...v.value
|
|
2322
|
+
}),
|
|
2323
|
+
!n.prioritizePosition && n.avoidCollisions && Tt({
|
|
2324
|
+
...v.value,
|
|
2325
|
+
...h.value
|
|
2326
|
+
}),
|
|
2327
|
+
io({
|
|
2328
|
+
...v.value,
|
|
2329
|
+
apply: ({ elements: T, rects: $, availableWidth: B, availableHeight: W }) => {
|
|
2330
|
+
const { width: H, height: q } = $.reference, pe = T.floating.style;
|
|
2331
|
+
pe.setProperty("--reka-popper-available-width", `${B}px`), pe.setProperty("--reka-popper-available-height", `${W}px`), pe.setProperty("--reka-popper-anchor-width", `${H}px`), pe.setProperty("--reka-popper-anchor-height", `${q}px`);
|
|
2332
|
+
}
|
|
2333
|
+
}),
|
|
2334
|
+
p.value && fo({
|
|
2335
|
+
element: p.value,
|
|
2336
|
+
padding: n.arrowPadding
|
|
2337
|
+
}),
|
|
2338
|
+
mr({
|
|
2339
|
+
arrowWidth: d.value,
|
|
2340
|
+
arrowHeight: u.value,
|
|
2341
|
+
dir: s.value
|
|
2342
|
+
}),
|
|
2343
|
+
n.hideWhenDetached && ao({
|
|
2344
|
+
strategy: "referenceHidden",
|
|
2345
|
+
...v.value
|
|
2346
|
+
})
|
|
2347
|
+
]), y = b(() => n.reference ?? i.anchor.value), { floatingStyles: w, placement: x, isPositioned: C, middlewareData: E, update: O } = po(y, f, {
|
|
2348
|
+
strategy: n.positionStrategy,
|
|
2349
|
+
placement: c,
|
|
2350
|
+
whileElementsMounted: (...T) => no(...T, {
|
|
2351
|
+
layoutShift: !n.disableUpdateOnLayoutShift,
|
|
2352
|
+
animationFrame: n.updatePositionStrategy === "always"
|
|
2353
|
+
}),
|
|
2354
|
+
middleware: g
|
|
2355
|
+
}), A = b(() => Ze(x.value)[0]), M = b(() => Ze(x.value)[1]);
|
|
2356
|
+
Rt(() => {
|
|
2357
|
+
C.value && r("placed");
|
|
2358
|
+
});
|
|
2359
|
+
const R = b(() => {
|
|
2360
|
+
const T = E.value.arrow?.centerOffset !== 0;
|
|
2361
|
+
return n.hideShiftedArrow && T;
|
|
2362
|
+
}), J = S("");
|
|
2363
|
+
le(() => {
|
|
2364
|
+
a.value && (J.value = window.getComputedStyle(a.value).zIndex);
|
|
2365
|
+
});
|
|
2366
|
+
const ie = b(() => E.value.arrow?.x ?? 0), k = b(() => E.value.arrow?.y ?? 0);
|
|
2367
|
+
return ho({
|
|
2368
|
+
placedSide: A,
|
|
2369
|
+
onArrowChange: (T) => p.value = T,
|
|
2370
|
+
arrowX: ie,
|
|
2371
|
+
arrowY: k,
|
|
2372
|
+
shouldHideArrow: R
|
|
2373
|
+
}), (T, $) => (U(), It("div", {
|
|
2374
|
+
ref_key: "floatingRef",
|
|
2375
|
+
ref: f,
|
|
2376
|
+
"data-reka-popper-content-wrapper": "",
|
|
2377
|
+
dir: P(s),
|
|
2378
|
+
style: Wt({
|
|
2379
|
+
...P(w),
|
|
2380
|
+
transform: P(C) ? P(w).transform : "translate(0, -200%)",
|
|
2381
|
+
minWidth: "max-content",
|
|
2382
|
+
zIndex: J.value,
|
|
2383
|
+
"--reka-popper-transform-origin": [P(E).transformOrigin?.x, P(E).transformOrigin?.y].join(" "),
|
|
2384
|
+
...P(E).hide?.referenceHidden && {
|
|
2385
|
+
visibility: "hidden",
|
|
2386
|
+
pointerEvents: "none"
|
|
2387
|
+
}
|
|
2388
|
+
})
|
|
2389
|
+
}, [n.memoDependencies ? fn([
|
|
2390
|
+
n.asChild,
|
|
2391
|
+
n.as,
|
|
2392
|
+
A.value,
|
|
2393
|
+
M.value,
|
|
2394
|
+
P(C),
|
|
2395
|
+
...Object.values(T.$attrs),
|
|
2396
|
+
...n.memoDependencies
|
|
2397
|
+
], () => (U(), se(P(we), Ge({
|
|
2398
|
+
key: 0,
|
|
2399
|
+
ref: P(o)
|
|
2400
|
+
}, T.$attrs, {
|
|
2401
|
+
"as-child": n.asChild,
|
|
2402
|
+
as: n.as,
|
|
2403
|
+
"data-side": A.value,
|
|
2404
|
+
"data-align": M.value,
|
|
2405
|
+
style: { animation: P(C) ? void 0 : "none" }
|
|
2406
|
+
}), {
|
|
2407
|
+
default: ge(() => [ee(T.$slots, "default")]),
|
|
2408
|
+
_: 3
|
|
2409
|
+
}, 16, [
|
|
2410
|
+
"as-child",
|
|
2411
|
+
"as",
|
|
2412
|
+
"data-side",
|
|
2413
|
+
"data-align",
|
|
2414
|
+
"style"
|
|
2415
|
+
])), $, 0) : (U(), se(P(we), Ge({
|
|
2416
|
+
key: 1,
|
|
2417
|
+
ref: P(o)
|
|
2418
|
+
}, T.$attrs, {
|
|
2419
|
+
"as-child": n.asChild,
|
|
2420
|
+
as: n.as,
|
|
2421
|
+
"data-side": A.value,
|
|
2422
|
+
"data-align": M.value,
|
|
2423
|
+
dir: P(s),
|
|
2424
|
+
style: { animation: P(C) ? void 0 : "none" }
|
|
2425
|
+
}), {
|
|
2426
|
+
default: ge(() => [ee(T.$slots, "default")]),
|
|
2427
|
+
_: 3
|
|
2428
|
+
}, 16, [
|
|
2429
|
+
"as-child",
|
|
2430
|
+
"as",
|
|
2431
|
+
"data-side",
|
|
2432
|
+
"data-align",
|
|
2433
|
+
"dir",
|
|
2434
|
+
"style"
|
|
2435
|
+
]))], 12, vo));
|
|
2436
|
+
}
|
|
2437
|
+
}), yo = ["stroke-width", "innerHTML"], go = /* @__PURE__ */ I({
|
|
2438
|
+
__name: "Icon",
|
|
2439
|
+
props: {
|
|
2440
|
+
name: {},
|
|
2441
|
+
strokeWidth: { default: 2 }
|
|
2442
|
+
},
|
|
2443
|
+
setup(e) {
|
|
2444
|
+
const t = e, n = {
|
|
2445
|
+
"arrow-down": '<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',
|
|
2446
|
+
"arrow-left": '<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',
|
|
2447
|
+
"arrow-right": '<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',
|
|
2448
|
+
"arrows-alt": '<path d="M12 2v20"/><path d="M2 12h20"/><path d="m15 5-3-3-3 3"/><path d="m15 19-3 3-3-3"/><path d="m5 9-3 3 3 3"/><path d="m19 9 3 3-3 3"/>',
|
|
2449
|
+
bookmark: '<path d="m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/>',
|
|
2450
|
+
"bookmark-filled": '<path d="m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z" fill="currentColor"/>',
|
|
2451
|
+
check: '<path d="M20 6 9 17l-5-5"/>',
|
|
2452
|
+
"check-circle": '<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',
|
|
2453
|
+
"chevron-down": '<path d="m6 9 6 6 6-6"/>',
|
|
2454
|
+
"chevron-right": '<path d="m9 18 6-6-6-6"/>',
|
|
2455
|
+
"chevron-up": '<path d="m18 15-6-6-6 6"/>',
|
|
2456
|
+
circle: '<circle cx="12" cy="12" r="10"/>',
|
|
2457
|
+
code: '<path d="m16 18 6-6-6-6"/><path d="m8 6-6 6 6 6"/>',
|
|
2458
|
+
download: '<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/><path d="M12 15V3"/>',
|
|
2459
|
+
"exclamation-triangle": '<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/>',
|
|
2460
|
+
"external-link": '<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',
|
|
2461
|
+
eye: '<path d="M2.06 12.35a1 1 0 0 1 0-.7 10.75 10.75 0 0 1 19.88 0 1 1 0 0 1 0 .7 10.75 10.75 0 0 1-19.88 0"/><circle cx="12" cy="12" r="3"/>',
|
|
2462
|
+
"eye-slash": '<path d="m15 18-.72-3.25"/><path d="M2 8a10.65 10.65 0 0 0 20 0"/><path d="m20 15-1.73-2.05"/><path d="m4 15 1.73-2.05"/><path d="m9 18 .72-3.25"/>',
|
|
2463
|
+
history: '<path d="M3 3v5h5"/><path d="M3.05 13A9 9 0 1 0 6 5.3L3 8"/><path d="M12 7v5l4 2"/>',
|
|
2464
|
+
image: '<rect width="18" height="18" x="3" y="3" rx="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.09-3.09a2 2 0 0 0-2.82 0L6 21"/>',
|
|
2465
|
+
"info-circle": '<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',
|
|
2466
|
+
link: '<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>',
|
|
2467
|
+
lock: '<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',
|
|
2468
|
+
"lock-open": '<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/>',
|
|
2469
|
+
minus: '<path d="M5 12h14"/>',
|
|
2470
|
+
plus: '<path d="M5 12h14"/><path d="M12 5v14"/>',
|
|
2471
|
+
send: '<path d="M14.54 21.69a.5.5 0 0 0 .93-.03l6.5-19a.5.5 0 0 0-.63-.63l-19 6.5a.5.5 0 0 0-.03.93l7.93 3.18a2 2 0 0 1 1.11 1.11z"/><path d="m21.85 2.15-10.94 10.94"/>',
|
|
2472
|
+
sparkles: '<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/>',
|
|
2473
|
+
spinner: '<path d="M21 12a9 9 0 1 1-6.22-8.56"/>',
|
|
2474
|
+
tag: '<path d="M12.59 2.59A2 2 0 0 0 11.17 2H4a2 2 0 0 0-2 2v7.17a2 2 0 0 0 .59 1.42l8.7 8.7a2.43 2.43 0 0 0 3.42 0l6.58-6.58a2.43 2.43 0 0 0 0-3.42z"/><circle cx="7.5" cy="7.5" r=".5" fill="currentColor"/>',
|
|
2475
|
+
"th-large": '<rect width="7" height="7" x="3" y="3" rx="1"/><rect width="7" height="7" x="14" y="3" rx="1"/><rect width="7" height="7" x="14" y="14" rx="1"/><rect width="7" height="7" x="3" y="14" rx="1"/>',
|
|
2476
|
+
times: '<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',
|
|
2477
|
+
trash: '<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><path d="M10 11v6"/><path d="M14 11v6"/>'
|
|
2478
|
+
};
|
|
2479
|
+
return (r, i) => (U(), It("svg", {
|
|
2480
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2481
|
+
width: "1em",
|
|
2482
|
+
height: "1em",
|
|
2483
|
+
viewBox: "0 0 24 24",
|
|
2484
|
+
fill: "none",
|
|
2485
|
+
stroke: "currentColor",
|
|
2486
|
+
"stroke-width": t.strokeWidth,
|
|
2487
|
+
"stroke-linecap": "round",
|
|
2488
|
+
"stroke-linejoin": "round",
|
|
2489
|
+
"aria-hidden": "true",
|
|
2490
|
+
focusable: "false",
|
|
2491
|
+
style: {
|
|
2492
|
+
display: "inline-block",
|
|
2493
|
+
"vertical-align": "-0.125em",
|
|
2494
|
+
"flex-shrink": "0"
|
|
2495
|
+
},
|
|
2496
|
+
innerHTML: n[t.name] ?? ""
|
|
2497
|
+
}, null, 8, yo));
|
|
2498
|
+
}
|
|
2499
|
+
}), Zo = go;
|
|
2500
|
+
export {
|
|
2501
|
+
On as A,
|
|
2502
|
+
Fe as C,
|
|
2503
|
+
N as D,
|
|
2504
|
+
Eo as E,
|
|
2505
|
+
xo as F,
|
|
2506
|
+
En as I,
|
|
2507
|
+
Q as M,
|
|
2508
|
+
rt as N,
|
|
2509
|
+
So as O,
|
|
2510
|
+
bo as P,
|
|
2511
|
+
Hn as S,
|
|
2512
|
+
Lo as T,
|
|
2513
|
+
Un as _,
|
|
2514
|
+
Ko as a,
|
|
2515
|
+
Vn as b,
|
|
2516
|
+
Vo as c,
|
|
2517
|
+
tr as d,
|
|
2518
|
+
qo as f,
|
|
2519
|
+
Bo as g,
|
|
2520
|
+
Wo as h,
|
|
2521
|
+
Yo as i,
|
|
2522
|
+
qt as j,
|
|
2523
|
+
Co as k,
|
|
2524
|
+
zo as l,
|
|
2525
|
+
Io as m,
|
|
2526
|
+
Jo as n,
|
|
2527
|
+
Uo as o,
|
|
2528
|
+
Ho as p,
|
|
2529
|
+
Xo as r,
|
|
2530
|
+
jo as s,
|
|
2531
|
+
Zo as t,
|
|
2532
|
+
we as u,
|
|
2533
|
+
_e as v,
|
|
2534
|
+
be as w,
|
|
2535
|
+
ko as x,
|
|
2536
|
+
$o as y
|
|
2537
|
+
};
|