@helpwave/hightide 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/coloring/index.d.mts +2 -0
- package/dist/coloring/index.d.ts +2 -0
- package/dist/coloring/index.js +85 -0
- package/dist/coloring/index.js.map +1 -0
- package/dist/coloring/index.mjs +48 -0
- package/dist/coloring/index.mjs.map +1 -0
- package/dist/components/branding/index.d.mts +3 -0
- package/dist/components/branding/index.d.ts +3 -0
- package/dist/components/branding/index.js +140 -0
- package/dist/components/branding/index.js.map +1 -0
- package/dist/components/branding/index.mjs +104 -0
- package/dist/components/branding/index.mjs.map +1 -0
- package/dist/components/date/DatePicker.js +1 -1
- package/dist/components/date/DatePicker.js.map +1 -1
- package/dist/components/date/DatePicker.mjs +1 -1
- package/dist/components/date/DatePicker.mjs.map +1 -1
- package/dist/components/date/YearMonthPicker.js +1 -1
- package/dist/components/date/YearMonthPicker.js.map +1 -1
- package/dist/components/date/YearMonthPicker.mjs +1 -1
- package/dist/components/date/YearMonthPicker.mjs.map +1 -1
- package/dist/components/date/index.d.mts +10 -0
- package/dist/components/date/index.d.ts +10 -0
- package/dist/components/date/index.js +1168 -0
- package/dist/components/date/index.js.map +1 -0
- package/dist/components/date/index.mjs +1124 -0
- package/dist/components/date/index.mjs.map +1 -0
- package/dist/components/dialog/ConfirmDialog.d.mts +1 -1
- package/dist/components/dialog/ConfirmDialog.d.ts +1 -1
- package/dist/components/dialog/ConfirmDialog.js +2 -2
- package/dist/components/dialog/ConfirmDialog.js.map +1 -1
- package/dist/components/dialog/ConfirmDialog.mjs +2 -2
- package/dist/components/dialog/ConfirmDialog.mjs.map +1 -1
- package/dist/components/dialog/Dialog.d.mts +1 -1
- package/dist/components/dialog/Dialog.d.ts +1 -1
- package/dist/components/dialog/Dialog.js +2 -2
- package/dist/components/dialog/Dialog.js.map +1 -1
- package/dist/components/dialog/Dialog.mjs +2 -2
- package/dist/components/dialog/Dialog.mjs.map +1 -1
- package/dist/components/dialog/DiscardChangesDialog.d.mts +1 -1
- package/dist/components/dialog/DiscardChangesDialog.d.ts +1 -1
- package/dist/components/dialog/DiscardChangesDialog.js +2 -2
- package/dist/components/dialog/DiscardChangesDialog.js.map +1 -1
- package/dist/components/dialog/DiscardChangesDialog.mjs +2 -2
- package/dist/components/dialog/DiscardChangesDialog.mjs.map +1 -1
- package/dist/components/dialog/InputDialog.d.mts +1 -1
- package/dist/components/dialog/InputDialog.d.ts +1 -1
- package/dist/components/dialog/InputDialog.js +2 -2
- package/dist/components/dialog/InputDialog.js.map +1 -1
- package/dist/components/dialog/InputDialog.mjs +2 -2
- package/dist/components/dialog/InputDialog.mjs.map +1 -1
- package/dist/components/dialog/LanguageDialog.d.mts +1 -1
- package/dist/components/dialog/LanguageDialog.d.ts +1 -1
- package/dist/components/dialog/LanguageDialog.js +28 -15
- package/dist/components/dialog/LanguageDialog.js.map +1 -1
- package/dist/components/dialog/LanguageDialog.mjs +28 -15
- package/dist/components/dialog/LanguageDialog.mjs.map +1 -1
- package/dist/components/dialog/ThemeDialog.d.mts +1 -1
- package/dist/components/dialog/ThemeDialog.d.ts +1 -1
- package/dist/components/dialog/ThemeDialog.js +69 -33
- package/dist/components/dialog/ThemeDialog.js.map +1 -1
- package/dist/components/dialog/ThemeDialog.mjs +60 -24
- package/dist/components/dialog/ThemeDialog.mjs.map +1 -1
- package/dist/components/dialog/index.d.mts +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +61 -25
- package/dist/components/dialog/index.js.map +1 -1
- package/dist/components/dialog/index.mjs +61 -25
- package/dist/components/dialog/index.mjs.map +1 -1
- package/dist/components/form/index.d.mts +5 -0
- package/dist/components/form/index.d.ts +5 -0
- package/dist/components/form/index.js +100 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/form/index.mjs +64 -0
- package/dist/components/form/index.mjs.map +1 -0
- package/dist/components/icons-and-geometry/index.d.mts +7 -0
- package/dist/components/icons-and-geometry/index.d.ts +7 -0
- package/dist/components/icons-and-geometry/index.js +3955 -0
- package/dist/components/icons-and-geometry/index.js.map +1 -0
- package/dist/components/icons-and-geometry/index.mjs +3939 -0
- package/dist/components/icons-and-geometry/index.mjs.map +1 -0
- package/dist/components/index.d.mts +83 -0
- package/dist/components/index.d.ts +83 -0
- package/dist/components/index.js +15471 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +15377 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/components/layout/Carousel.d.mts +33 -0
- package/dist/components/layout/Carousel.d.ts +33 -0
- package/dist/components/layout/Carousel.js +684 -0
- package/dist/components/layout/Carousel.js.map +1 -0
- package/dist/components/layout/Carousel.mjs +659 -0
- package/dist/components/layout/Carousel.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/Chip.js +1 -1
- package/dist/components/layout/Chip.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/Chip.mjs +1 -1
- package/dist/components/layout/Chip.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/DividerInserter.js +1 -1
- package/dist/components/layout/DividerInserter.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/DividerInserter.mjs +1 -1
- package/dist/components/layout/DividerInserter.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/Expandable.js +2 -2
- package/dist/components/layout/Expandable.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/Expandable.mjs +2 -2
- package/dist/components/layout/Expandable.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/FAQSection.js +5 -5
- package/dist/components/layout/FAQSection.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/FAQSection.mjs +5 -5
- package/dist/components/layout/FAQSection.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/FloatingContainer.js +2 -2
- package/dist/components/layout/FloatingContainer.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/FloatingContainer.mjs +2 -2
- package/dist/components/layout/FloatingContainer.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/ListBox.js +2 -2
- package/dist/components/layout/ListBox.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/ListBox.mjs +2 -2
- package/dist/components/layout/ListBox.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.js +1 -1
- package/dist/components/layout/MarkdownInterpreter.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.mjs +1 -1
- package/dist/components/layout/MarkdownInterpreter.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/ScrollArea.js +2 -2
- package/dist/components/layout/ScrollArea.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/ScrollArea.mjs +1 -1
- package/dist/components/layout/ScrollArea.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/TextImage.js +3 -3
- package/dist/components/layout/TextImage.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/TextImage.mjs +2 -2
- package/dist/components/layout/TextImage.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/VerticalDivider.js +1 -1
- package/dist/components/layout/VerticalDivider.js.map +1 -0
- package/dist/components/{layout-and-navigation → layout}/VerticalDivider.mjs +1 -1
- package/dist/components/layout/VerticalDivider.mjs.map +1 -0
- package/dist/components/layout/index.d.mts +18 -0
- package/dist/components/layout/index.d.ts +18 -0
- package/dist/components/layout/index.js +3111 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/layout/index.mjs +3064 -0
- package/dist/components/layout/index.mjs.map +1 -0
- package/dist/components/loading-states/index.d.mts +12 -0
- package/dist/components/loading-states/index.d.ts +12 -0
- package/dist/components/loading-states/index.js +614 -0
- package/dist/components/loading-states/index.js.map +1 -0
- package/dist/components/loading-states/index.mjs +573 -0
- package/dist/components/loading-states/index.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.js +1 -1
- package/dist/components/navigation/BreadCrumb.js.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.mjs +1 -1
- package/dist/components/navigation/BreadCrumb.mjs.map +1 -0
- package/dist/components/navigation/Navigation.d.mts +21 -0
- package/dist/components/navigation/Navigation.d.ts +21 -0
- package/dist/components/navigation/Navigation.js +4018 -0
- package/dist/components/navigation/Navigation.js.map +1 -0
- package/dist/components/navigation/Navigation.mjs +4012 -0
- package/dist/components/navigation/Navigation.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/Pagination.js +3 -3
- package/dist/components/navigation/Pagination.js.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/Pagination.mjs +3 -3
- package/dist/components/navigation/Pagination.mjs.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/StepperBar.js +3 -3
- package/dist/components/navigation/StepperBar.js.map +1 -0
- package/dist/components/{layout-and-navigation → navigation}/StepperBar.mjs +3 -3
- package/dist/components/navigation/StepperBar.mjs.map +1 -0
- package/dist/components/navigation/index.d.mts +9 -0
- package/dist/components/navigation/index.d.ts +9 -0
- package/dist/components/navigation/index.js +4660 -0
- package/dist/components/navigation/index.js.map +1 -0
- package/dist/components/navigation/index.mjs +4648 -0
- package/dist/components/navigation/index.mjs.map +1 -0
- package/dist/components/properties/MultiSelectProperty.js +27 -14
- package/dist/components/properties/MultiSelectProperty.js.map +1 -1
- package/dist/components/properties/MultiSelectProperty.mjs +27 -14
- package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
- package/dist/components/properties/SelectProperty.js +27 -14
- package/dist/components/properties/SelectProperty.js.map +1 -1
- package/dist/components/properties/SelectProperty.mjs +27 -14
- package/dist/components/properties/SelectProperty.mjs.map +1 -1
- package/dist/components/properties/index.d.mts +12 -0
- package/dist/components/properties/index.d.ts +12 -0
- package/dist/components/properties/index.js +2983 -0
- package/dist/components/properties/index.js.map +1 -0
- package/dist/components/properties/index.mjs +2951 -0
- package/dist/components/properties/index.mjs.map +1 -0
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/Table.mjs +1 -1
- package/dist/components/table/Table.mjs.map +1 -1
- package/dist/components/table/index.d.mts +10 -0
- package/dist/components/table/index.d.ts +10 -0
- package/dist/components/table/index.js +2329 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/index.mjs +2293 -0
- package/dist/components/table/index.mjs.map +1 -0
- package/dist/components/user-action/DateAndTimePicker.js +1 -1
- package/dist/components/user-action/DateAndTimePicker.js.map +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs +1 -1
- package/dist/components/user-action/DateAndTimePicker.mjs.map +1 -1
- package/dist/components/user-action/index.d.mts +30 -0
- package/dist/components/user-action/index.d.ts +30 -0
- package/dist/components/user-action/index.js +4257 -0
- package/dist/components/user-action/index.js.map +1 -0
- package/dist/components/user-action/index.mjs +4195 -0
- package/dist/components/user-action/index.mjs.map +1 -0
- package/dist/components/user-action/input/index.d.mts +6 -0
- package/dist/components/user-action/input/index.d.ts +6 -0
- package/dist/components/user-action/input/index.js +398 -0
- package/dist/components/user-action/input/index.js.map +1 -0
- package/dist/components/user-action/input/index.mjs +357 -0
- package/dist/components/user-action/input/index.mjs.map +1 -0
- package/dist/components/user-action/select/Select.d.mts +5 -1
- package/dist/components/user-action/select/Select.d.ts +5 -1
- package/dist/components/user-action/select/Select.js +27 -14
- package/dist/components/user-action/select/Select.js.map +1 -1
- package/dist/components/user-action/select/Select.mjs +27 -14
- package/dist/components/user-action/select/Select.mjs.map +1 -1
- package/dist/components/user-action/select/index.d.mts +4 -0
- package/dist/components/user-action/select/index.d.ts +4 -0
- package/dist/components/user-action/select/index.js +1369 -0
- package/dist/components/user-action/select/index.js.map +1 -0
- package/dist/components/user-action/select/index.mjs +1333 -0
- package/dist/components/user-action/select/index.mjs.map +1 -0
- package/dist/components/utils/index.d.mts +4 -0
- package/dist/components/utils/index.d.ts +4 -0
- package/dist/components/utils/index.js +302 -0
- package/dist/components/utils/index.js.map +1 -0
- package/dist/components/utils/index.mjs +275 -0
- package/dist/components/utils/index.mjs.map +1 -0
- package/dist/hooks/focus/index.d.mts +6 -0
- package/dist/hooks/focus/index.d.ts +6 -0
- package/dist/hooks/focus/index.js +379 -0
- package/dist/hooks/focus/index.js.map +1 -0
- package/dist/hooks/focus/index.mjs +339 -0
- package/dist/hooks/focus/index.mjs.map +1 -0
- package/dist/hooks/index.d.mts +16 -0
- package/dist/hooks/index.d.ts +16 -0
- package/dist/hooks/index.js +844 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/index.mjs +794 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/index.d.mts +110 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +16101 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +15941 -0
- package/dist/index.mjs.map +1 -0
- package/dist/localization/defaults/index.d.mts +4 -0
- package/dist/localization/defaults/index.d.ts +4 -0
- package/dist/localization/defaults/index.js +223 -0
- package/dist/localization/defaults/index.js.map +1 -0
- package/dist/localization/defaults/index.mjs +195 -0
- package/dist/localization/defaults/index.mjs.map +1 -0
- package/dist/localization/index.d.mts +7 -0
- package/dist/localization/index.d.ts +7 -0
- package/dist/localization/index.js +415 -0
- package/dist/localization/index.js.map +1 -0
- package/dist/localization/index.mjs +380 -0
- package/dist/localization/index.mjs.map +1 -0
- package/dist/style/globals.css +63 -10
- package/dist/style/uncompiled/globals.css +5 -4
- package/dist/style/uncompiled/utitlity/shadow.css +4 -0
- package/dist/theming/index.d.mts +5 -0
- package/dist/theming/index.d.ts +5 -0
- package/dist/theming/index.js +174 -0
- package/dist/theming/index.js.map +1 -0
- package/dist/theming/index.mjs +145 -0
- package/dist/theming/index.mjs.map +1 -0
- package/dist/theming/useTheme.d.mts +3 -1
- package/dist/theming/useTheme.d.ts +3 -1
- package/dist/theming/useTheme.js +40 -17
- package/dist/theming/useTheme.js.map +1 -1
- package/dist/theming/useTheme.mjs +38 -15
- package/dist/theming/useTheme.mjs.map +1 -1
- package/dist/utils/index.d.mts +15 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.js +553 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +493 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +25 -24
- package/dist/components/layout-and-navigation/BreadCrumb.js.map +0 -1
- package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Carousel.d.mts +0 -25
- package/dist/components/layout-and-navigation/Carousel.d.ts +0 -25
- package/dist/components/layout-and-navigation/Carousel.js +0 -643
- package/dist/components/layout-and-navigation/Carousel.js.map +0 -1
- package/dist/components/layout-and-navigation/Carousel.mjs +0 -609
- package/dist/components/layout-and-navigation/Carousel.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Chip.js.map +0 -1
- package/dist/components/layout-and-navigation/Chip.mjs.map +0 -1
- package/dist/components/layout-and-navigation/DividerInserter.js.map +0 -1
- package/dist/components/layout-and-navigation/DividerInserter.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Expandable.js.map +0 -1
- package/dist/components/layout-and-navigation/Expandable.mjs.map +0 -1
- package/dist/components/layout-and-navigation/FAQSection.js.map +0 -1
- package/dist/components/layout-and-navigation/FAQSection.mjs.map +0 -1
- package/dist/components/layout-and-navigation/FloatingContainer.js.map +0 -1
- package/dist/components/layout-and-navigation/FloatingContainer.mjs.map +0 -1
- package/dist/components/layout-and-navigation/ListBox.js.map +0 -1
- package/dist/components/layout-and-navigation/ListBox.mjs.map +0 -1
- package/dist/components/layout-and-navigation/MarkdownInterpreter.js.map +0 -1
- package/dist/components/layout-and-navigation/MarkdownInterpreter.mjs.map +0 -1
- package/dist/components/layout-and-navigation/Pagination.js.map +0 -1
- package/dist/components/layout-and-navigation/Pagination.mjs.map +0 -1
- package/dist/components/layout-and-navigation/ScrollArea.js.map +0 -1
- package/dist/components/layout-and-navigation/ScrollArea.mjs.map +0 -1
- package/dist/components/layout-and-navigation/StepperBar.js.map +0 -1
- package/dist/components/layout-and-navigation/StepperBar.mjs.map +0 -1
- package/dist/components/layout-and-navigation/TextImage.js.map +0 -1
- package/dist/components/layout-and-navigation/TextImage.mjs.map +0 -1
- package/dist/components/layout-and-navigation/VerticalDivider.js.map +0 -1
- package/dist/components/layout-and-navigation/VerticalDivider.mjs.map +0 -1
- /package/dist/components/{layout-and-navigation → layout}/Chip.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/Chip.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/DividerInserter.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/DividerInserter.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/Expandable.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/Expandable.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/FAQSection.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/FAQSection.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/FloatingContainer.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/FloatingContainer.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/ListBox.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/ListBox.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/MarkdownInterpreter.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/ScrollArea.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/ScrollArea.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/TextImage.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/TextImage.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/VerticalDivider.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → layout}/VerticalDivider.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/BreadCrumb.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/Pagination.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/Pagination.d.ts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/StepperBar.d.mts +0 -0
- /package/dist/components/{layout-and-navigation → navigation}/StepperBar.d.ts +0 -0
|
@@ -0,0 +1,3955 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
|
|
33
|
+
var require_use_sync_external_store_shim_production = __commonJS({
|
|
34
|
+
"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports2) {
|
|
35
|
+
"use strict";
|
|
36
|
+
var React8 = require("react");
|
|
37
|
+
function is(x, y) {
|
|
38
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
39
|
+
}
|
|
40
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
41
|
+
var useState3 = React8.useState;
|
|
42
|
+
var useEffect4 = React8.useEffect;
|
|
43
|
+
var useLayoutEffect3 = React8.useLayoutEffect;
|
|
44
|
+
var useDebugValue = React8.useDebugValue;
|
|
45
|
+
function useSyncExternalStore$2(subscribe2, getSnapshot) {
|
|
46
|
+
var value = getSnapshot(), _useState = useState3({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
47
|
+
useLayoutEffect3(
|
|
48
|
+
function() {
|
|
49
|
+
inst.value = value;
|
|
50
|
+
inst.getSnapshot = getSnapshot;
|
|
51
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
52
|
+
},
|
|
53
|
+
[subscribe2, value, getSnapshot]
|
|
54
|
+
);
|
|
55
|
+
useEffect4(
|
|
56
|
+
function() {
|
|
57
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
58
|
+
return subscribe2(function() {
|
|
59
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
[subscribe2]
|
|
63
|
+
);
|
|
64
|
+
useDebugValue(value);
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
function checkIfSnapshotChanged(inst) {
|
|
68
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
69
|
+
inst = inst.value;
|
|
70
|
+
try {
|
|
71
|
+
var nextValue = latestGetSnapshot();
|
|
72
|
+
return !objectIs(inst, nextValue);
|
|
73
|
+
} catch (error) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function useSyncExternalStore$1(subscribe2, getSnapshot) {
|
|
78
|
+
return getSnapshot();
|
|
79
|
+
}
|
|
80
|
+
var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
81
|
+
exports2.useSyncExternalStore = void 0 !== React8.useSyncExternalStore ? React8.useSyncExternalStore : shim;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
86
|
+
var require_use_sync_external_store_shim_development = __commonJS({
|
|
87
|
+
"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports2) {
|
|
88
|
+
"use strict";
|
|
89
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
90
|
+
function is(x, y) {
|
|
91
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
92
|
+
}
|
|
93
|
+
function useSyncExternalStore$2(subscribe2, getSnapshot) {
|
|
94
|
+
didWarnOld18Alpha || void 0 === React8.startTransition || (didWarnOld18Alpha = true, console.error(
|
|
95
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
96
|
+
));
|
|
97
|
+
var value = getSnapshot();
|
|
98
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
99
|
+
var cachedValue = getSnapshot();
|
|
100
|
+
objectIs(value, cachedValue) || (console.error(
|
|
101
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
102
|
+
), didWarnUncachedGetSnapshot = true);
|
|
103
|
+
}
|
|
104
|
+
cachedValue = useState3({
|
|
105
|
+
inst: { value, getSnapshot }
|
|
106
|
+
});
|
|
107
|
+
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
|
|
108
|
+
useLayoutEffect3(
|
|
109
|
+
function() {
|
|
110
|
+
inst.value = value;
|
|
111
|
+
inst.getSnapshot = getSnapshot;
|
|
112
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
113
|
+
},
|
|
114
|
+
[subscribe2, value, getSnapshot]
|
|
115
|
+
);
|
|
116
|
+
useEffect4(
|
|
117
|
+
function() {
|
|
118
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
119
|
+
return subscribe2(function() {
|
|
120
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
121
|
+
});
|
|
122
|
+
},
|
|
123
|
+
[subscribe2]
|
|
124
|
+
);
|
|
125
|
+
useDebugValue(value);
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
function checkIfSnapshotChanged(inst) {
|
|
129
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
130
|
+
inst = inst.value;
|
|
131
|
+
try {
|
|
132
|
+
var nextValue = latestGetSnapshot();
|
|
133
|
+
return !objectIs(inst, nextValue);
|
|
134
|
+
} catch (error) {
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function useSyncExternalStore$1(subscribe2, getSnapshot) {
|
|
139
|
+
return getSnapshot();
|
|
140
|
+
}
|
|
141
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
142
|
+
var React8 = require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState3 = React8.useState, useEffect4 = React8.useEffect, useLayoutEffect3 = React8.useLayoutEffect, useDebugValue = React8.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
143
|
+
exports2.useSyncExternalStore = void 0 !== React8.useSyncExternalStore ? React8.useSyncExternalStore : shim;
|
|
144
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
145
|
+
}();
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// node_modules/use-sync-external-store/shim/index.js
|
|
150
|
+
var require_shim = __commonJS({
|
|
151
|
+
"node_modules/use-sync-external-store/shim/index.js"(exports2, module2) {
|
|
152
|
+
"use strict";
|
|
153
|
+
if (process.env.NODE_ENV === "production") {
|
|
154
|
+
module2.exports = require_use_sync_external_store_shim_production();
|
|
155
|
+
} else {
|
|
156
|
+
module2.exports = require_use_sync_external_store_shim_development();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
162
|
+
var require_interop_require_default = __commonJS({
|
|
163
|
+
"node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports2) {
|
|
164
|
+
"use strict";
|
|
165
|
+
function _interop_require_default(obj) {
|
|
166
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
167
|
+
}
|
|
168
|
+
exports2._ = _interop_require_default;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
// node_modules/next/dist/shared/lib/utils/warn-once.js
|
|
173
|
+
var require_warn_once = __commonJS({
|
|
174
|
+
"node_modules/next/dist/shared/lib/utils/warn-once.js"(exports2) {
|
|
175
|
+
"use strict";
|
|
176
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
177
|
+
value: true
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports2, "warnOnce", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function() {
|
|
182
|
+
return warnOnce;
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
var warnOnce = (_) => {
|
|
186
|
+
};
|
|
187
|
+
if (process.env.NODE_ENV !== "production") {
|
|
188
|
+
const warnings = /* @__PURE__ */ new Set();
|
|
189
|
+
warnOnce = (msg) => {
|
|
190
|
+
if (!warnings.has(msg)) {
|
|
191
|
+
console.warn(msg);
|
|
192
|
+
}
|
|
193
|
+
warnings.add(msg);
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
// node_modules/next/dist/shared/lib/image-blur-svg.js
|
|
200
|
+
var require_image_blur_svg = __commonJS({
|
|
201
|
+
"node_modules/next/dist/shared/lib/image-blur-svg.js"(exports2) {
|
|
202
|
+
"use strict";
|
|
203
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
204
|
+
value: true
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports2, "getImageBlurSvg", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function() {
|
|
209
|
+
return getImageBlurSvg;
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
function getImageBlurSvg(param) {
|
|
213
|
+
let { widthInt, heightInt, blurWidth, blurHeight, blurDataURL, objectFit } = param;
|
|
214
|
+
const std = 20;
|
|
215
|
+
const svgWidth = blurWidth ? blurWidth * 40 : widthInt;
|
|
216
|
+
const svgHeight = blurHeight ? blurHeight * 40 : heightInt;
|
|
217
|
+
const viewBox = svgWidth && svgHeight ? "viewBox='0 0 " + svgWidth + " " + svgHeight + "'" : "";
|
|
218
|
+
const preserveAspectRatio = viewBox ? "none" : objectFit === "contain" ? "xMidYMid" : objectFit === "cover" ? "xMidYMid slice" : "none";
|
|
219
|
+
return "%3Csvg xmlns='http://www.w3.org/2000/svg' " + viewBox + "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" + std + "'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='" + std + "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" + preserveAspectRatio + "' style='filter: url(%23b);' href='" + blurDataURL + "'/%3E%3C/svg%3E";
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
// node_modules/next/dist/shared/lib/image-config.js
|
|
225
|
+
var require_image_config = __commonJS({
|
|
226
|
+
"node_modules/next/dist/shared/lib/image-config.js"(exports2) {
|
|
227
|
+
"use strict";
|
|
228
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
229
|
+
value: true
|
|
230
|
+
});
|
|
231
|
+
function _export(target, all) {
|
|
232
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: all[name]
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
_export(exports2, {
|
|
238
|
+
VALID_LOADERS: function() {
|
|
239
|
+
return VALID_LOADERS;
|
|
240
|
+
},
|
|
241
|
+
imageConfigDefault: function() {
|
|
242
|
+
return imageConfigDefault;
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
var VALID_LOADERS = [
|
|
246
|
+
"default",
|
|
247
|
+
"imgix",
|
|
248
|
+
"cloudinary",
|
|
249
|
+
"akamai",
|
|
250
|
+
"custom"
|
|
251
|
+
];
|
|
252
|
+
var imageConfigDefault = {
|
|
253
|
+
deviceSizes: [
|
|
254
|
+
640,
|
|
255
|
+
750,
|
|
256
|
+
828,
|
|
257
|
+
1080,
|
|
258
|
+
1200,
|
|
259
|
+
1920,
|
|
260
|
+
2048,
|
|
261
|
+
3840
|
|
262
|
+
],
|
|
263
|
+
imageSizes: [
|
|
264
|
+
16,
|
|
265
|
+
32,
|
|
266
|
+
48,
|
|
267
|
+
64,
|
|
268
|
+
96,
|
|
269
|
+
128,
|
|
270
|
+
256,
|
|
271
|
+
384
|
|
272
|
+
],
|
|
273
|
+
path: "/_next/image",
|
|
274
|
+
loader: "default",
|
|
275
|
+
loaderFile: "",
|
|
276
|
+
domains: [],
|
|
277
|
+
disableStaticImages: false,
|
|
278
|
+
minimumCacheTTL: 60,
|
|
279
|
+
formats: [
|
|
280
|
+
"image/webp"
|
|
281
|
+
],
|
|
282
|
+
dangerouslyAllowSVG: false,
|
|
283
|
+
contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
|
|
284
|
+
contentDispositionType: "attachment",
|
|
285
|
+
localPatterns: void 0,
|
|
286
|
+
remotePatterns: [],
|
|
287
|
+
qualities: void 0,
|
|
288
|
+
unoptimized: false
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
// node_modules/next/dist/shared/lib/get-img-props.js
|
|
294
|
+
var require_get_img_props = __commonJS({
|
|
295
|
+
"node_modules/next/dist/shared/lib/get-img-props.js"(exports2) {
|
|
296
|
+
"use strict";
|
|
297
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
298
|
+
value: true
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(exports2, "getImgProps", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function() {
|
|
303
|
+
return getImgProps;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
var _warnonce = require_warn_once();
|
|
307
|
+
var _imageblursvg = require_image_blur_svg();
|
|
308
|
+
var _imageconfig = require_image_config();
|
|
309
|
+
var VALID_LOADING_VALUES = [
|
|
310
|
+
"lazy",
|
|
311
|
+
"eager",
|
|
312
|
+
void 0
|
|
313
|
+
];
|
|
314
|
+
var INVALID_BACKGROUND_SIZE_VALUES = [
|
|
315
|
+
"-moz-initial",
|
|
316
|
+
"fill",
|
|
317
|
+
"none",
|
|
318
|
+
"scale-down",
|
|
319
|
+
void 0
|
|
320
|
+
];
|
|
321
|
+
function isStaticRequire(src) {
|
|
322
|
+
return src.default !== void 0;
|
|
323
|
+
}
|
|
324
|
+
function isStaticImageData(src) {
|
|
325
|
+
return src.src !== void 0;
|
|
326
|
+
}
|
|
327
|
+
function isStaticImport(src) {
|
|
328
|
+
return !!src && typeof src === "object" && (isStaticRequire(src) || isStaticImageData(src));
|
|
329
|
+
}
|
|
330
|
+
var allImgs = /* @__PURE__ */ new Map();
|
|
331
|
+
var perfObserver;
|
|
332
|
+
function getInt(x) {
|
|
333
|
+
if (typeof x === "undefined") {
|
|
334
|
+
return x;
|
|
335
|
+
}
|
|
336
|
+
if (typeof x === "number") {
|
|
337
|
+
return Number.isFinite(x) ? x : NaN;
|
|
338
|
+
}
|
|
339
|
+
if (typeof x === "string" && /^[0-9]+$/.test(x)) {
|
|
340
|
+
return parseInt(x, 10);
|
|
341
|
+
}
|
|
342
|
+
return NaN;
|
|
343
|
+
}
|
|
344
|
+
function getWidths(param, width, sizes) {
|
|
345
|
+
let { deviceSizes, allSizes } = param;
|
|
346
|
+
if (sizes) {
|
|
347
|
+
const viewportWidthRe = /(^|\s)(1?\d?\d)vw/g;
|
|
348
|
+
const percentSizes = [];
|
|
349
|
+
for (let match; match = viewportWidthRe.exec(sizes); match) {
|
|
350
|
+
percentSizes.push(parseInt(match[2]));
|
|
351
|
+
}
|
|
352
|
+
if (percentSizes.length) {
|
|
353
|
+
const smallestRatio = Math.min(...percentSizes) * 0.01;
|
|
354
|
+
return {
|
|
355
|
+
widths: allSizes.filter((s) => s >= deviceSizes[0] * smallestRatio),
|
|
356
|
+
kind: "w"
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
return {
|
|
360
|
+
widths: allSizes,
|
|
361
|
+
kind: "w"
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
if (typeof width !== "number") {
|
|
365
|
+
return {
|
|
366
|
+
widths: deviceSizes,
|
|
367
|
+
kind: "w"
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
const widths = [
|
|
371
|
+
...new Set(
|
|
372
|
+
// > This means that most OLED screens that say they are 3x resolution,
|
|
373
|
+
// > are actually 3x in the green color, but only 1.5x in the red and
|
|
374
|
+
// > blue colors. Showing a 3x resolution image in the app vs a 2x
|
|
375
|
+
// > resolution image will be visually the same, though the 3x image
|
|
376
|
+
// > takes significantly more data. Even true 3x resolution screens are
|
|
377
|
+
// > wasteful as the human eye cannot see that level of detail without
|
|
378
|
+
// > something like a magnifying glass.
|
|
379
|
+
// https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
|
|
380
|
+
[
|
|
381
|
+
width,
|
|
382
|
+
width * 2
|
|
383
|
+
/*, width * 3*/
|
|
384
|
+
].map((w) => allSizes.find((p) => p >= w) || allSizes[allSizes.length - 1])
|
|
385
|
+
)
|
|
386
|
+
];
|
|
387
|
+
return {
|
|
388
|
+
widths,
|
|
389
|
+
kind: "x"
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
function generateImgAttrs(param) {
|
|
393
|
+
let { config, src, unoptimized, width, quality, sizes, loader } = param;
|
|
394
|
+
if (unoptimized) {
|
|
395
|
+
return {
|
|
396
|
+
src,
|
|
397
|
+
srcSet: void 0,
|
|
398
|
+
sizes: void 0
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
const { widths, kind } = getWidths(config, width, sizes);
|
|
402
|
+
const last = widths.length - 1;
|
|
403
|
+
return {
|
|
404
|
+
sizes: !sizes && kind === "w" ? "100vw" : sizes,
|
|
405
|
+
srcSet: widths.map((w, i) => loader({
|
|
406
|
+
config,
|
|
407
|
+
src,
|
|
408
|
+
quality,
|
|
409
|
+
width: w
|
|
410
|
+
}) + " " + (kind === "w" ? w : i + 1) + kind).join(", "),
|
|
411
|
+
// It's intended to keep `src` the last attribute because React updates
|
|
412
|
+
// attributes in order. If we keep `src` the first one, Safari will
|
|
413
|
+
// immediately start to fetch `src`, before `sizes` and `srcSet` are even
|
|
414
|
+
// updated by React. That causes multiple unnecessary requests if `srcSet`
|
|
415
|
+
// and `sizes` are defined.
|
|
416
|
+
// This bug cannot be reproduced in Chrome or Firefox.
|
|
417
|
+
src: loader({
|
|
418
|
+
config,
|
|
419
|
+
src,
|
|
420
|
+
quality,
|
|
421
|
+
width: widths[last]
|
|
422
|
+
})
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
function getImgProps(param, _state) {
|
|
426
|
+
let { src, sizes, unoptimized = false, priority = false, loading, className, quality, width, height, fill = false, style, overrideSrc, onLoad, onLoadingComplete, placeholder = "empty", blurDataURL, fetchPriority, decoding = "async", layout, objectFit, objectPosition, lazyBoundary, lazyRoot, ...rest } = param;
|
|
427
|
+
const { imgConf, showAltText, blurComplete, defaultLoader } = _state;
|
|
428
|
+
let config;
|
|
429
|
+
let c = imgConf || _imageconfig.imageConfigDefault;
|
|
430
|
+
if ("allSizes" in c) {
|
|
431
|
+
config = c;
|
|
432
|
+
} else {
|
|
433
|
+
var _c_qualities;
|
|
434
|
+
const allSizes = [
|
|
435
|
+
...c.deviceSizes,
|
|
436
|
+
...c.imageSizes
|
|
437
|
+
].sort((a, b) => a - b);
|
|
438
|
+
const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
|
|
439
|
+
const qualities = (_c_qualities = c.qualities) == null ? void 0 : _c_qualities.sort((a, b) => a - b);
|
|
440
|
+
config = {
|
|
441
|
+
...c,
|
|
442
|
+
allSizes,
|
|
443
|
+
deviceSizes,
|
|
444
|
+
qualities
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
if (typeof defaultLoader === "undefined") {
|
|
448
|
+
throw Object.defineProperty(new Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"), "__NEXT_ERROR_CODE", {
|
|
449
|
+
value: "E163",
|
|
450
|
+
enumerable: false,
|
|
451
|
+
configurable: true
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
let loader = rest.loader || defaultLoader;
|
|
455
|
+
delete rest.loader;
|
|
456
|
+
delete rest.srcSet;
|
|
457
|
+
const isDefaultLoader = "__next_img_default" in loader;
|
|
458
|
+
if (isDefaultLoader) {
|
|
459
|
+
if (config.loader === "custom") {
|
|
460
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'), "__NEXT_ERROR_CODE", {
|
|
461
|
+
value: "E252",
|
|
462
|
+
enumerable: false,
|
|
463
|
+
configurable: true
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
} else {
|
|
467
|
+
const customImageLoader = loader;
|
|
468
|
+
loader = (obj) => {
|
|
469
|
+
const { config: _, ...opts } = obj;
|
|
470
|
+
return customImageLoader(opts);
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
if (layout) {
|
|
474
|
+
if (layout === "fill") {
|
|
475
|
+
fill = true;
|
|
476
|
+
}
|
|
477
|
+
const layoutToStyle = {
|
|
478
|
+
intrinsic: {
|
|
479
|
+
maxWidth: "100%",
|
|
480
|
+
height: "auto"
|
|
481
|
+
},
|
|
482
|
+
responsive: {
|
|
483
|
+
width: "100%",
|
|
484
|
+
height: "auto"
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
const layoutToSizes = {
|
|
488
|
+
responsive: "100vw",
|
|
489
|
+
fill: "100vw"
|
|
490
|
+
};
|
|
491
|
+
const layoutStyle = layoutToStyle[layout];
|
|
492
|
+
if (layoutStyle) {
|
|
493
|
+
style = {
|
|
494
|
+
...style,
|
|
495
|
+
...layoutStyle
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
const layoutSizes = layoutToSizes[layout];
|
|
499
|
+
if (layoutSizes && !sizes) {
|
|
500
|
+
sizes = layoutSizes;
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
let staticSrc = "";
|
|
504
|
+
let widthInt = getInt(width);
|
|
505
|
+
let heightInt = getInt(height);
|
|
506
|
+
let blurWidth;
|
|
507
|
+
let blurHeight;
|
|
508
|
+
if (isStaticImport(src)) {
|
|
509
|
+
const staticImageData = isStaticRequire(src) ? src.default : src;
|
|
510
|
+
if (!staticImageData.src) {
|
|
511
|
+
throw Object.defineProperty(new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received " + JSON.stringify(staticImageData)), "__NEXT_ERROR_CODE", {
|
|
512
|
+
value: "E460",
|
|
513
|
+
enumerable: false,
|
|
514
|
+
configurable: true
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
if (!staticImageData.height || !staticImageData.width) {
|
|
518
|
+
throw Object.defineProperty(new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received " + JSON.stringify(staticImageData)), "__NEXT_ERROR_CODE", {
|
|
519
|
+
value: "E48",
|
|
520
|
+
enumerable: false,
|
|
521
|
+
configurable: true
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
blurWidth = staticImageData.blurWidth;
|
|
525
|
+
blurHeight = staticImageData.blurHeight;
|
|
526
|
+
blurDataURL = blurDataURL || staticImageData.blurDataURL;
|
|
527
|
+
staticSrc = staticImageData.src;
|
|
528
|
+
if (!fill) {
|
|
529
|
+
if (!widthInt && !heightInt) {
|
|
530
|
+
widthInt = staticImageData.width;
|
|
531
|
+
heightInt = staticImageData.height;
|
|
532
|
+
} else if (widthInt && !heightInt) {
|
|
533
|
+
const ratio = widthInt / staticImageData.width;
|
|
534
|
+
heightInt = Math.round(staticImageData.height * ratio);
|
|
535
|
+
} else if (!widthInt && heightInt) {
|
|
536
|
+
const ratio = heightInt / staticImageData.height;
|
|
537
|
+
widthInt = Math.round(staticImageData.width * ratio);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
src = typeof src === "string" ? src : staticSrc;
|
|
542
|
+
let isLazy = !priority && (loading === "lazy" || typeof loading === "undefined");
|
|
543
|
+
if (!src || src.startsWith("data:") || src.startsWith("blob:")) {
|
|
544
|
+
unoptimized = true;
|
|
545
|
+
isLazy = false;
|
|
546
|
+
}
|
|
547
|
+
if (config.unoptimized) {
|
|
548
|
+
unoptimized = true;
|
|
549
|
+
}
|
|
550
|
+
if (isDefaultLoader && !config.dangerouslyAllowSVG && src.split("?", 1)[0].endsWith(".svg")) {
|
|
551
|
+
unoptimized = true;
|
|
552
|
+
}
|
|
553
|
+
const qualityInt = getInt(quality);
|
|
554
|
+
if (process.env.NODE_ENV !== "production") {
|
|
555
|
+
var _config_localPatterns;
|
|
556
|
+
if (config.output === "export" && isDefaultLoader && !unoptimized) {
|
|
557
|
+
throw Object.defineProperty(new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api"), "__NEXT_ERROR_CODE", {
|
|
558
|
+
value: "E500",
|
|
559
|
+
enumerable: false,
|
|
560
|
+
configurable: true
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
if (!src) {
|
|
564
|
+
unoptimized = true;
|
|
565
|
+
} else {
|
|
566
|
+
if (fill) {
|
|
567
|
+
if (width) {
|
|
568
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has both "width" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
|
|
569
|
+
value: "E96",
|
|
570
|
+
enumerable: false,
|
|
571
|
+
configurable: true
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
if (height) {
|
|
575
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has both "height" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
|
|
576
|
+
value: "E115",
|
|
577
|
+
enumerable: false,
|
|
578
|
+
configurable: true
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
if ((style == null ? void 0 : style.position) && style.position !== "absolute") {
|
|
582
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
583
|
+
value: "E216",
|
|
584
|
+
enumerable: false,
|
|
585
|
+
configurable: true
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
if ((style == null ? void 0 : style.width) && style.width !== "100%") {
|
|
589
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
590
|
+
value: "E73",
|
|
591
|
+
enumerable: false,
|
|
592
|
+
configurable: true
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
if ((style == null ? void 0 : style.height) && style.height !== "100%") {
|
|
596
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
597
|
+
value: "E404",
|
|
598
|
+
enumerable: false,
|
|
599
|
+
configurable: true
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
} else {
|
|
603
|
+
if (typeof widthInt === "undefined") {
|
|
604
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" is missing required "width" property.'), "__NEXT_ERROR_CODE", {
|
|
605
|
+
value: "E451",
|
|
606
|
+
enumerable: false,
|
|
607
|
+
configurable: true
|
|
608
|
+
});
|
|
609
|
+
} else if (isNaN(widthInt)) {
|
|
610
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "width" property. Expected a numeric value in pixels but received "' + width + '".'), "__NEXT_ERROR_CODE", {
|
|
611
|
+
value: "E66",
|
|
612
|
+
enumerable: false,
|
|
613
|
+
configurable: true
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
if (typeof heightInt === "undefined") {
|
|
617
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" is missing required "height" property.'), "__NEXT_ERROR_CODE", {
|
|
618
|
+
value: "E397",
|
|
619
|
+
enumerable: false,
|
|
620
|
+
configurable: true
|
|
621
|
+
});
|
|
622
|
+
} else if (isNaN(heightInt)) {
|
|
623
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "height" property. Expected a numeric value in pixels but received "' + height + '".'), "__NEXT_ERROR_CODE", {
|
|
624
|
+
value: "E444",
|
|
625
|
+
enumerable: false,
|
|
626
|
+
configurable: true
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
if (/^[\x00-\x20]/.test(src)) {
|
|
630
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
|
|
631
|
+
value: "E176",
|
|
632
|
+
enumerable: false,
|
|
633
|
+
configurable: true
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
if (/[\x00-\x20]$/.test(src)) {
|
|
637
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
|
|
638
|
+
value: "E21",
|
|
639
|
+
enumerable: false,
|
|
640
|
+
configurable: true
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
if (!VALID_LOADING_VALUES.includes(loading)) {
|
|
646
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "loading" property. Provided "' + loading + '" should be one of ' + VALID_LOADING_VALUES.map(String).join(",") + "."), "__NEXT_ERROR_CODE", {
|
|
647
|
+
value: "E357",
|
|
648
|
+
enumerable: false,
|
|
649
|
+
configurable: true
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
if (priority && loading === "lazy") {
|
|
653
|
+
throw Object.defineProperty(new Error('Image with src "' + src + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
|
|
654
|
+
value: "E218",
|
|
655
|
+
enumerable: false,
|
|
656
|
+
configurable: true
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
if (placeholder !== "empty" && placeholder !== "blur" && !placeholder.startsWith("data:image/")) {
|
|
660
|
+
throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "placeholder" property "' + placeholder + '".'), "__NEXT_ERROR_CODE", {
|
|
661
|
+
value: "E431",
|
|
662
|
+
enumerable: false,
|
|
663
|
+
configurable: true
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
if (placeholder !== "empty") {
|
|
667
|
+
if (widthInt && heightInt && widthInt * heightInt < 1600) {
|
|
668
|
+
(0, _warnonce.warnOnce)('Image with src "' + src + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.');
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
if (qualityInt && qualityInt !== 75 && !config.qualities) {
|
|
672
|
+
(0, _warnonce.warnOnce)('Image with src "' + src + '" is using quality "' + qualityInt + '" which is not configured in images.qualities. This config will be required starting in Next.js 16.\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-qualities');
|
|
673
|
+
}
|
|
674
|
+
if (src.startsWith("/") && src.includes("?") && (!(config == null ? void 0 : (_config_localPatterns = config.localPatterns) == null ? void 0 : _config_localPatterns.length) || config.localPatterns.length === 1 && config.localPatterns[0].pathname === "/_next/static/media/**")) {
|
|
675
|
+
(0, _warnonce.warnOnce)('Image with src "' + src + '" is using a query string which is not configured in images.localPatterns. This config will be required starting in Next.js 16.\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns');
|
|
676
|
+
}
|
|
677
|
+
if (placeholder === "blur" && !blurDataURL) {
|
|
678
|
+
const VALID_BLUR_EXT = [
|
|
679
|
+
"jpeg",
|
|
680
|
+
"png",
|
|
681
|
+
"webp",
|
|
682
|
+
"avif"
|
|
683
|
+
];
|
|
684
|
+
throw Object.defineProperty(new Error('Image with src "' + src + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
685
|
+
Possible solutions:
|
|
686
|
+
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
687
|
+
- Change the "src" property to a static import with one of the supported file types: ` + VALID_BLUR_EXT.join(",") + ' (animated images not supported)\n - Remove the "placeholder" property, effectively no blur effect\n Read more: https://nextjs.org/docs/messages/placeholder-blur-data-url'), "__NEXT_ERROR_CODE", {
|
|
688
|
+
value: "E371",
|
|
689
|
+
enumerable: false,
|
|
690
|
+
configurable: true
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
if ("ref" in rest) {
|
|
694
|
+
(0, _warnonce.warnOnce)('Image with src "' + src + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.');
|
|
695
|
+
}
|
|
696
|
+
if (!unoptimized && !isDefaultLoader) {
|
|
697
|
+
const urlStr = loader({
|
|
698
|
+
config,
|
|
699
|
+
src,
|
|
700
|
+
width: widthInt || 400,
|
|
701
|
+
quality: qualityInt || 75
|
|
702
|
+
});
|
|
703
|
+
let url;
|
|
704
|
+
try {
|
|
705
|
+
url = new URL(urlStr);
|
|
706
|
+
} catch (err) {
|
|
707
|
+
}
|
|
708
|
+
if (urlStr === src || url && url.pathname === src && !url.search) {
|
|
709
|
+
(0, _warnonce.warnOnce)('Image with src "' + src + '" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader-width');
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
if (onLoadingComplete) {
|
|
713
|
+
(0, _warnonce.warnOnce)('Image with src "' + src + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
|
|
714
|
+
}
|
|
715
|
+
for (const [legacyKey, legacyValue] of Object.entries({
|
|
716
|
+
layout,
|
|
717
|
+
objectFit,
|
|
718
|
+
objectPosition,
|
|
719
|
+
lazyBoundary,
|
|
720
|
+
lazyRoot
|
|
721
|
+
})) {
|
|
722
|
+
if (legacyValue) {
|
|
723
|
+
(0, _warnonce.warnOnce)('Image with src "' + src + '" has legacy prop "' + legacyKey + '". Did you forget to run the codemod?\nRead more: https://nextjs.org/docs/messages/next-image-upgrade-to-13');
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
if (typeof window !== "undefined" && !perfObserver && window.PerformanceObserver) {
|
|
727
|
+
perfObserver = new PerformanceObserver((entryList) => {
|
|
728
|
+
for (const entry of entryList.getEntries()) {
|
|
729
|
+
var _entry_element;
|
|
730
|
+
const imgSrc = (entry == null ? void 0 : (_entry_element = entry.element) == null ? void 0 : _entry_element.src) || "";
|
|
731
|
+
const lcpImage = allImgs.get(imgSrc);
|
|
732
|
+
if (lcpImage && !lcpImage.priority && lcpImage.placeholder === "empty" && !lcpImage.src.startsWith("data:") && !lcpImage.src.startsWith("blob:")) {
|
|
733
|
+
(0, _warnonce.warnOnce)('Image with src "' + lcpImage.src + '" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.\nRead more: https://nextjs.org/docs/api-reference/next/image#priority');
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
try {
|
|
738
|
+
perfObserver.observe({
|
|
739
|
+
type: "largest-contentful-paint",
|
|
740
|
+
buffered: true
|
|
741
|
+
});
|
|
742
|
+
} catch (err) {
|
|
743
|
+
console.error(err);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
const imgStyle = Object.assign(fill ? {
|
|
748
|
+
position: "absolute",
|
|
749
|
+
height: "100%",
|
|
750
|
+
width: "100%",
|
|
751
|
+
left: 0,
|
|
752
|
+
top: 0,
|
|
753
|
+
right: 0,
|
|
754
|
+
bottom: 0,
|
|
755
|
+
objectFit,
|
|
756
|
+
objectPosition
|
|
757
|
+
} : {}, showAltText ? {} : {
|
|
758
|
+
color: "transparent"
|
|
759
|
+
}, style);
|
|
760
|
+
const backgroundImage = !blurComplete && placeholder !== "empty" ? placeholder === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, _imageblursvg.getImageBlurSvg)({
|
|
761
|
+
widthInt,
|
|
762
|
+
heightInt,
|
|
763
|
+
blurWidth,
|
|
764
|
+
blurHeight,
|
|
765
|
+
blurDataURL: blurDataURL || "",
|
|
766
|
+
objectFit: imgStyle.objectFit
|
|
767
|
+
}) + '")' : 'url("' + placeholder + '")' : null;
|
|
768
|
+
const backgroundSize = !INVALID_BACKGROUND_SIZE_VALUES.includes(imgStyle.objectFit) ? imgStyle.objectFit : imgStyle.objectFit === "fill" ? "100% 100%" : "cover";
|
|
769
|
+
let placeholderStyle = backgroundImage ? {
|
|
770
|
+
backgroundSize,
|
|
771
|
+
backgroundPosition: imgStyle.objectPosition || "50% 50%",
|
|
772
|
+
backgroundRepeat: "no-repeat",
|
|
773
|
+
backgroundImage
|
|
774
|
+
} : {};
|
|
775
|
+
if (process.env.NODE_ENV === "development") {
|
|
776
|
+
if (placeholderStyle.backgroundImage && placeholder === "blur" && (blurDataURL == null ? void 0 : blurDataURL.startsWith("/"))) {
|
|
777
|
+
placeholderStyle.backgroundImage = 'url("' + blurDataURL + '")';
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
const imgAttributes = generateImgAttrs({
|
|
781
|
+
config,
|
|
782
|
+
src,
|
|
783
|
+
unoptimized,
|
|
784
|
+
width: widthInt,
|
|
785
|
+
quality: qualityInt,
|
|
786
|
+
sizes,
|
|
787
|
+
loader
|
|
788
|
+
});
|
|
789
|
+
if (process.env.NODE_ENV !== "production") {
|
|
790
|
+
if (typeof window !== "undefined") {
|
|
791
|
+
let fullUrl;
|
|
792
|
+
try {
|
|
793
|
+
fullUrl = new URL(imgAttributes.src);
|
|
794
|
+
} catch (e) {
|
|
795
|
+
fullUrl = new URL(imgAttributes.src, window.location.href);
|
|
796
|
+
}
|
|
797
|
+
allImgs.set(fullUrl.href, {
|
|
798
|
+
src,
|
|
799
|
+
priority,
|
|
800
|
+
placeholder
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
const props = {
|
|
805
|
+
...rest,
|
|
806
|
+
loading: isLazy ? "lazy" : loading,
|
|
807
|
+
fetchPriority,
|
|
808
|
+
width: widthInt,
|
|
809
|
+
height: heightInt,
|
|
810
|
+
decoding,
|
|
811
|
+
className,
|
|
812
|
+
style: {
|
|
813
|
+
...imgStyle,
|
|
814
|
+
...placeholderStyle
|
|
815
|
+
},
|
|
816
|
+
sizes: imgAttributes.sizes,
|
|
817
|
+
srcSet: imgAttributes.srcSet,
|
|
818
|
+
src: overrideSrc || imgAttributes.src
|
|
819
|
+
};
|
|
820
|
+
const meta = {
|
|
821
|
+
unoptimized,
|
|
822
|
+
priority,
|
|
823
|
+
placeholder,
|
|
824
|
+
fill
|
|
825
|
+
};
|
|
826
|
+
return {
|
|
827
|
+
props,
|
|
828
|
+
meta
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
|
|
834
|
+
// node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
835
|
+
var require_interop_require_wildcard = __commonJS({
|
|
836
|
+
"node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports2) {
|
|
837
|
+
"use strict";
|
|
838
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
839
|
+
if (typeof WeakMap !== "function") return null;
|
|
840
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
841
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
842
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
843
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
844
|
+
})(nodeInterop);
|
|
845
|
+
}
|
|
846
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
847
|
+
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
848
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
|
|
849
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
850
|
+
if (cache && cache.has(obj)) return cache.get(obj);
|
|
851
|
+
var newObj = { __proto__: null };
|
|
852
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
853
|
+
for (var key in obj) {
|
|
854
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
855
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
856
|
+
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
857
|
+
else newObj[key] = obj[key];
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
newObj.default = obj;
|
|
861
|
+
if (cache) cache.set(obj, newObj);
|
|
862
|
+
return newObj;
|
|
863
|
+
}
|
|
864
|
+
exports2._ = _interop_require_wildcard;
|
|
865
|
+
}
|
|
866
|
+
});
|
|
867
|
+
|
|
868
|
+
// node_modules/next/dist/shared/lib/side-effect.js
|
|
869
|
+
var require_side_effect = __commonJS({
|
|
870
|
+
"node_modules/next/dist/shared/lib/side-effect.js"(exports2) {
|
|
871
|
+
"use strict";
|
|
872
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
873
|
+
value: true
|
|
874
|
+
});
|
|
875
|
+
Object.defineProperty(exports2, "default", {
|
|
876
|
+
enumerable: true,
|
|
877
|
+
get: function() {
|
|
878
|
+
return SideEffect;
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
var _react = require("react");
|
|
882
|
+
var isServer = typeof window === "undefined";
|
|
883
|
+
var useClientOnlyLayoutEffect = isServer ? () => {
|
|
884
|
+
} : _react.useLayoutEffect;
|
|
885
|
+
var useClientOnlyEffect = isServer ? () => {
|
|
886
|
+
} : _react.useEffect;
|
|
887
|
+
function SideEffect(props) {
|
|
888
|
+
const { headManager, reduceComponentsToState } = props;
|
|
889
|
+
function emitChange() {
|
|
890
|
+
if (headManager && headManager.mountedInstances) {
|
|
891
|
+
const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));
|
|
892
|
+
headManager.updateHead(reduceComponentsToState(headElements, props));
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
if (isServer) {
|
|
896
|
+
var _headManager_mountedInstances;
|
|
897
|
+
headManager == null ? void 0 : (_headManager_mountedInstances = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances.add(props.children);
|
|
898
|
+
emitChange();
|
|
899
|
+
}
|
|
900
|
+
useClientOnlyLayoutEffect(() => {
|
|
901
|
+
var _headManager_mountedInstances2;
|
|
902
|
+
headManager == null ? void 0 : (_headManager_mountedInstances2 = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances2.add(props.children);
|
|
903
|
+
return () => {
|
|
904
|
+
var _headManager_mountedInstances3;
|
|
905
|
+
headManager == null ? void 0 : (_headManager_mountedInstances3 = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances3.delete(props.children);
|
|
906
|
+
};
|
|
907
|
+
});
|
|
908
|
+
useClientOnlyLayoutEffect(() => {
|
|
909
|
+
if (headManager) {
|
|
910
|
+
headManager._pendingUpdate = emitChange;
|
|
911
|
+
}
|
|
912
|
+
return () => {
|
|
913
|
+
if (headManager) {
|
|
914
|
+
headManager._pendingUpdate = emitChange;
|
|
915
|
+
}
|
|
916
|
+
};
|
|
917
|
+
});
|
|
918
|
+
useClientOnlyEffect(() => {
|
|
919
|
+
if (headManager && headManager._pendingUpdate) {
|
|
920
|
+
headManager._pendingUpdate();
|
|
921
|
+
headManager._pendingUpdate = null;
|
|
922
|
+
}
|
|
923
|
+
return () => {
|
|
924
|
+
if (headManager && headManager._pendingUpdate) {
|
|
925
|
+
headManager._pendingUpdate();
|
|
926
|
+
headManager._pendingUpdate = null;
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
});
|
|
930
|
+
return null;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
});
|
|
934
|
+
|
|
935
|
+
// node_modules/next/dist/shared/lib/amp-context.shared-runtime.js
|
|
936
|
+
var require_amp_context_shared_runtime = __commonJS({
|
|
937
|
+
"node_modules/next/dist/shared/lib/amp-context.shared-runtime.js"(exports2) {
|
|
938
|
+
"use strict";
|
|
939
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
940
|
+
value: true
|
|
941
|
+
});
|
|
942
|
+
Object.defineProperty(exports2, "AmpStateContext", {
|
|
943
|
+
enumerable: true,
|
|
944
|
+
get: function() {
|
|
945
|
+
return AmpStateContext;
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
var _interop_require_default = require_interop_require_default();
|
|
949
|
+
var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
|
|
950
|
+
var AmpStateContext = _react.default.createContext({});
|
|
951
|
+
if (process.env.NODE_ENV !== "production") {
|
|
952
|
+
AmpStateContext.displayName = "AmpStateContext";
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
});
|
|
956
|
+
|
|
957
|
+
// node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js
|
|
958
|
+
var require_head_manager_context_shared_runtime = __commonJS({
|
|
959
|
+
"node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js"(exports2) {
|
|
960
|
+
"use strict";
|
|
961
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
962
|
+
value: true
|
|
963
|
+
});
|
|
964
|
+
Object.defineProperty(exports2, "HeadManagerContext", {
|
|
965
|
+
enumerable: true,
|
|
966
|
+
get: function() {
|
|
967
|
+
return HeadManagerContext;
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
var _interop_require_default = require_interop_require_default();
|
|
971
|
+
var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
|
|
972
|
+
var HeadManagerContext = _react.default.createContext({});
|
|
973
|
+
if (process.env.NODE_ENV !== "production") {
|
|
974
|
+
HeadManagerContext.displayName = "HeadManagerContext";
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
|
|
979
|
+
// node_modules/next/dist/shared/lib/amp-mode.js
|
|
980
|
+
var require_amp_mode = __commonJS({
|
|
981
|
+
"node_modules/next/dist/shared/lib/amp-mode.js"(exports2) {
|
|
982
|
+
"use strict";
|
|
983
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
984
|
+
value: true
|
|
985
|
+
});
|
|
986
|
+
Object.defineProperty(exports2, "isInAmpMode", {
|
|
987
|
+
enumerable: true,
|
|
988
|
+
get: function() {
|
|
989
|
+
return isInAmpMode;
|
|
990
|
+
}
|
|
991
|
+
});
|
|
992
|
+
function isInAmpMode(param) {
|
|
993
|
+
let { ampFirst = false, hybrid = false, hasQuery = false } = param === void 0 ? {} : param;
|
|
994
|
+
return ampFirst || hybrid && hasQuery;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
|
|
999
|
+
// node_modules/next/dist/shared/lib/head.js
|
|
1000
|
+
var require_head = __commonJS({
|
|
1001
|
+
"node_modules/next/dist/shared/lib/head.js"(exports2, module2) {
|
|
1002
|
+
"use client";
|
|
1003
|
+
"use strict";
|
|
1004
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
1005
|
+
value: true
|
|
1006
|
+
});
|
|
1007
|
+
function _export(target, all) {
|
|
1008
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1009
|
+
enumerable: true,
|
|
1010
|
+
get: all[name]
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
_export(exports2, {
|
|
1014
|
+
default: function() {
|
|
1015
|
+
return _default;
|
|
1016
|
+
},
|
|
1017
|
+
defaultHead: function() {
|
|
1018
|
+
return defaultHead;
|
|
1019
|
+
}
|
|
1020
|
+
});
|
|
1021
|
+
var _interop_require_default = require_interop_require_default();
|
|
1022
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
1023
|
+
var _jsxruntime = require("react/jsx-runtime");
|
|
1024
|
+
var _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
|
|
1025
|
+
var _sideeffect = /* @__PURE__ */ _interop_require_default._(require_side_effect());
|
|
1026
|
+
var _ampcontextsharedruntime = require_amp_context_shared_runtime();
|
|
1027
|
+
var _headmanagercontextsharedruntime = require_head_manager_context_shared_runtime();
|
|
1028
|
+
var _ampmode = require_amp_mode();
|
|
1029
|
+
var _warnonce = require_warn_once();
|
|
1030
|
+
function defaultHead(inAmpMode) {
|
|
1031
|
+
if (inAmpMode === void 0) inAmpMode = false;
|
|
1032
|
+
const head = [
|
|
1033
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
|
|
1034
|
+
charSet: "utf-8"
|
|
1035
|
+
}, "charset")
|
|
1036
|
+
];
|
|
1037
|
+
if (!inAmpMode) {
|
|
1038
|
+
head.push(/* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
|
|
1039
|
+
name: "viewport",
|
|
1040
|
+
content: "width=device-width"
|
|
1041
|
+
}, "viewport"));
|
|
1042
|
+
}
|
|
1043
|
+
return head;
|
|
1044
|
+
}
|
|
1045
|
+
function onlyReactElement(list, child) {
|
|
1046
|
+
if (typeof child === "string" || typeof child === "number") {
|
|
1047
|
+
return list;
|
|
1048
|
+
}
|
|
1049
|
+
if (child.type === _react.default.Fragment) {
|
|
1050
|
+
return list.concat(
|
|
1051
|
+
// @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
|
|
1052
|
+
_react.default.Children.toArray(child.props.children).reduce(
|
|
1053
|
+
// @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
|
|
1054
|
+
(fragmentList, fragmentChild) => {
|
|
1055
|
+
if (typeof fragmentChild === "string" || typeof fragmentChild === "number") {
|
|
1056
|
+
return fragmentList;
|
|
1057
|
+
}
|
|
1058
|
+
return fragmentList.concat(fragmentChild);
|
|
1059
|
+
},
|
|
1060
|
+
[]
|
|
1061
|
+
)
|
|
1062
|
+
);
|
|
1063
|
+
}
|
|
1064
|
+
return list.concat(child);
|
|
1065
|
+
}
|
|
1066
|
+
var METATYPES = [
|
|
1067
|
+
"name",
|
|
1068
|
+
"httpEquiv",
|
|
1069
|
+
"charSet",
|
|
1070
|
+
"itemProp"
|
|
1071
|
+
];
|
|
1072
|
+
function unique() {
|
|
1073
|
+
const keys = /* @__PURE__ */ new Set();
|
|
1074
|
+
const tags = /* @__PURE__ */ new Set();
|
|
1075
|
+
const metaTypes = /* @__PURE__ */ new Set();
|
|
1076
|
+
const metaCategories = {};
|
|
1077
|
+
return (h) => {
|
|
1078
|
+
let isUnique = true;
|
|
1079
|
+
let hasKey = false;
|
|
1080
|
+
if (h.key && typeof h.key !== "number" && h.key.indexOf("$") > 0) {
|
|
1081
|
+
hasKey = true;
|
|
1082
|
+
const key = h.key.slice(h.key.indexOf("$") + 1);
|
|
1083
|
+
if (keys.has(key)) {
|
|
1084
|
+
isUnique = false;
|
|
1085
|
+
} else {
|
|
1086
|
+
keys.add(key);
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
switch (h.type) {
|
|
1090
|
+
case "title":
|
|
1091
|
+
case "base":
|
|
1092
|
+
if (tags.has(h.type)) {
|
|
1093
|
+
isUnique = false;
|
|
1094
|
+
} else {
|
|
1095
|
+
tags.add(h.type);
|
|
1096
|
+
}
|
|
1097
|
+
break;
|
|
1098
|
+
case "meta":
|
|
1099
|
+
for (let i = 0, len = METATYPES.length; i < len; i++) {
|
|
1100
|
+
const metatype = METATYPES[i];
|
|
1101
|
+
if (!h.props.hasOwnProperty(metatype)) continue;
|
|
1102
|
+
if (metatype === "charSet") {
|
|
1103
|
+
if (metaTypes.has(metatype)) {
|
|
1104
|
+
isUnique = false;
|
|
1105
|
+
} else {
|
|
1106
|
+
metaTypes.add(metatype);
|
|
1107
|
+
}
|
|
1108
|
+
} else {
|
|
1109
|
+
const category = h.props[metatype];
|
|
1110
|
+
const categories = metaCategories[metatype] || /* @__PURE__ */ new Set();
|
|
1111
|
+
if ((metatype !== "name" || !hasKey) && categories.has(category)) {
|
|
1112
|
+
isUnique = false;
|
|
1113
|
+
} else {
|
|
1114
|
+
categories.add(category);
|
|
1115
|
+
metaCategories[metatype] = categories;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
break;
|
|
1120
|
+
}
|
|
1121
|
+
return isUnique;
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
function reduceComponents(headChildrenElements, props) {
|
|
1125
|
+
const { inAmpMode } = props;
|
|
1126
|
+
return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(inAmpMode).reverse()).filter(unique()).reverse().map((c, i) => {
|
|
1127
|
+
const key = c.key || i;
|
|
1128
|
+
if (process.env.NODE_ENV === "development") {
|
|
1129
|
+
if (c.type === "script" && c.props["type"] !== "application/ld+json") {
|
|
1130
|
+
const srcMessage = c.props["src"] ? '<script> tag with src="' + c.props["src"] + '"' : "inline <script>";
|
|
1131
|
+
(0, _warnonce.warnOnce)("Do not add <script> tags using next/head (see " + srcMessage + "). Use next/script instead. \nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component");
|
|
1132
|
+
} else if (c.type === "link" && c.props["rel"] === "stylesheet") {
|
|
1133
|
+
(0, _warnonce.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="' + c.props["href"] + '"). Use Document instead. \nSee more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component');
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
return /* @__PURE__ */ _react.default.cloneElement(c, {
|
|
1137
|
+
key
|
|
1138
|
+
});
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
function Head(param) {
|
|
1142
|
+
let { children } = param;
|
|
1143
|
+
const ampState = (0, _react.useContext)(_ampcontextsharedruntime.AmpStateContext);
|
|
1144
|
+
const headManager = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
|
|
1145
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sideeffect.default, {
|
|
1146
|
+
reduceComponentsToState: reduceComponents,
|
|
1147
|
+
headManager,
|
|
1148
|
+
inAmpMode: (0, _ampmode.isInAmpMode)(ampState),
|
|
1149
|
+
children
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
var _default = Head;
|
|
1153
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
1154
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
1155
|
+
Object.assign(exports2.default, exports2);
|
|
1156
|
+
module2.exports = exports2.default;
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
|
|
1161
|
+
// node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js
|
|
1162
|
+
var require_image_config_context_shared_runtime = __commonJS({
|
|
1163
|
+
"node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js"(exports2) {
|
|
1164
|
+
"use strict";
|
|
1165
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
1166
|
+
value: true
|
|
1167
|
+
});
|
|
1168
|
+
Object.defineProperty(exports2, "ImageConfigContext", {
|
|
1169
|
+
enumerable: true,
|
|
1170
|
+
get: function() {
|
|
1171
|
+
return ImageConfigContext;
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
var _interop_require_default = require_interop_require_default();
|
|
1175
|
+
var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
|
|
1176
|
+
var _imageconfig = require_image_config();
|
|
1177
|
+
var ImageConfigContext = _react.default.createContext(_imageconfig.imageConfigDefault);
|
|
1178
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1179
|
+
ImageConfigContext.displayName = "ImageConfigContext";
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
});
|
|
1183
|
+
|
|
1184
|
+
// node_modules/next/dist/shared/lib/router-context.shared-runtime.js
|
|
1185
|
+
var require_router_context_shared_runtime = __commonJS({
|
|
1186
|
+
"node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(exports2) {
|
|
1187
|
+
"use strict";
|
|
1188
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
1189
|
+
value: true
|
|
1190
|
+
});
|
|
1191
|
+
Object.defineProperty(exports2, "RouterContext", {
|
|
1192
|
+
enumerable: true,
|
|
1193
|
+
get: function() {
|
|
1194
|
+
return RouterContext;
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
var _interop_require_default = require_interop_require_default();
|
|
1198
|
+
var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
|
|
1199
|
+
var RouterContext = _react.default.createContext(null);
|
|
1200
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1201
|
+
RouterContext.displayName = "RouterContext";
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1205
|
+
|
|
1206
|
+
// node_modules/next/dist/compiled/picomatch/index.js
|
|
1207
|
+
var require_picomatch = __commonJS({
|
|
1208
|
+
"node_modules/next/dist/compiled/picomatch/index.js"(exports2, module2) {
|
|
1209
|
+
(() => {
|
|
1210
|
+
"use strict";
|
|
1211
|
+
var t = { 170: (t2, e2, u2) => {
|
|
1212
|
+
const n = u2(510);
|
|
1213
|
+
const isWindows = () => {
|
|
1214
|
+
if (typeof navigator !== "undefined" && navigator.platform) {
|
|
1215
|
+
const t3 = navigator.platform.toLowerCase();
|
|
1216
|
+
return t3 === "win32" || t3 === "windows";
|
|
1217
|
+
}
|
|
1218
|
+
if (typeof process !== "undefined" && process.platform) {
|
|
1219
|
+
return process.platform === "win32";
|
|
1220
|
+
}
|
|
1221
|
+
return false;
|
|
1222
|
+
};
|
|
1223
|
+
function picomatch(t3, e3, u3 = false) {
|
|
1224
|
+
if (e3 && (e3.windows === null || e3.windows === void 0)) {
|
|
1225
|
+
e3 = { ...e3, windows: isWindows() };
|
|
1226
|
+
}
|
|
1227
|
+
return n(t3, e3, u3);
|
|
1228
|
+
}
|
|
1229
|
+
Object.assign(picomatch, n);
|
|
1230
|
+
t2.exports = picomatch;
|
|
1231
|
+
}, 154: (t2) => {
|
|
1232
|
+
const e2 = "\\\\/";
|
|
1233
|
+
const u2 = `[^${e2}]`;
|
|
1234
|
+
const n = "\\.";
|
|
1235
|
+
const o = "\\+";
|
|
1236
|
+
const s = "\\?";
|
|
1237
|
+
const r = "\\/";
|
|
1238
|
+
const a = "(?=.)";
|
|
1239
|
+
const i = "[^/]";
|
|
1240
|
+
const c = `(?:${r}|$)`;
|
|
1241
|
+
const p = `(?:^|${r})`;
|
|
1242
|
+
const l = `${n}{1,2}${c}`;
|
|
1243
|
+
const f = `(?!${n})`;
|
|
1244
|
+
const A = `(?!${p}${l})`;
|
|
1245
|
+
const _ = `(?!${n}{0,1}${c})`;
|
|
1246
|
+
const R = `(?!${l})`;
|
|
1247
|
+
const E = `[^.${r}]`;
|
|
1248
|
+
const h = `${i}*?`;
|
|
1249
|
+
const g = "/";
|
|
1250
|
+
const b = { DOT_LITERAL: n, PLUS_LITERAL: o, QMARK_LITERAL: s, SLASH_LITERAL: r, ONE_CHAR: a, QMARK: i, END_ANCHOR: c, DOTS_SLASH: l, NO_DOT: f, NO_DOTS: A, NO_DOT_SLASH: _, NO_DOTS_SLASH: R, QMARK_NO_DOT: E, STAR: h, START_ANCHOR: p, SEP: g };
|
|
1251
|
+
const C = { ...b, SLASH_LITERAL: `[${e2}]`, QMARK: u2, STAR: `${u2}*?`, DOTS_SLASH: `${n}{1,2}(?:[${e2}]|$)`, NO_DOT: `(?!${n})`, NO_DOTS: `(?!(?:^|[${e2}])${n}{1,2}(?:[${e2}]|$))`, NO_DOT_SLASH: `(?!${n}{0,1}(?:[${e2}]|$))`, NO_DOTS_SLASH: `(?!${n}{1,2}(?:[${e2}]|$))`, QMARK_NO_DOT: `[^.${e2}]`, START_ANCHOR: `(?:^|[${e2}])`, END_ANCHOR: `(?:[${e2}]|$)`, SEP: "\\" };
|
|
1252
|
+
const y = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
1253
|
+
t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: y, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, extglobChars(t3) {
|
|
1254
|
+
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
1255
|
+
}, globChars(t3) {
|
|
1256
|
+
return t3 === true ? C : b;
|
|
1257
|
+
} };
|
|
1258
|
+
}, 697: (t2, e2, u2) => {
|
|
1259
|
+
const n = u2(154);
|
|
1260
|
+
const o = u2(96);
|
|
1261
|
+
const { MAX_LENGTH: s, POSIX_REGEX_SOURCE: r, REGEX_NON_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_BACKREF: i, REPLACEMENTS: c } = n;
|
|
1262
|
+
const expandRange = (t3, e3) => {
|
|
1263
|
+
if (typeof e3.expandRange === "function") {
|
|
1264
|
+
return e3.expandRange(...t3, e3);
|
|
1265
|
+
}
|
|
1266
|
+
t3.sort();
|
|
1267
|
+
const u3 = `[${t3.join("-")}]`;
|
|
1268
|
+
try {
|
|
1269
|
+
new RegExp(u3);
|
|
1270
|
+
} catch (e4) {
|
|
1271
|
+
return t3.map((t4) => o.escapeRegex(t4)).join("..");
|
|
1272
|
+
}
|
|
1273
|
+
return u3;
|
|
1274
|
+
};
|
|
1275
|
+
const syntaxError = (t3, e3) => `Missing ${t3}: "${e3}" - use "\\\\${e3}" to match literal characters`;
|
|
1276
|
+
const parse = (t3, e3) => {
|
|
1277
|
+
if (typeof t3 !== "string") {
|
|
1278
|
+
throw new TypeError("Expected a string");
|
|
1279
|
+
}
|
|
1280
|
+
t3 = c[t3] || t3;
|
|
1281
|
+
const u3 = { ...e3 };
|
|
1282
|
+
const p = typeof u3.maxLength === "number" ? Math.min(s, u3.maxLength) : s;
|
|
1283
|
+
let l = t3.length;
|
|
1284
|
+
if (l > p) {
|
|
1285
|
+
throw new SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${p}`);
|
|
1286
|
+
}
|
|
1287
|
+
const f = { type: "bos", value: "", output: u3.prepend || "" };
|
|
1288
|
+
const A = [f];
|
|
1289
|
+
const _ = u3.capture ? "" : "?:";
|
|
1290
|
+
const R = n.globChars(u3.windows);
|
|
1291
|
+
const E = n.extglobChars(R);
|
|
1292
|
+
const { DOT_LITERAL: h, PLUS_LITERAL: g, SLASH_LITERAL: b, ONE_CHAR: C, DOTS_SLASH: y, NO_DOT: $, NO_DOT_SLASH: x, NO_DOTS_SLASH: S, QMARK: H, QMARK_NO_DOT: v, STAR: d, START_ANCHOR: L } = R;
|
|
1293
|
+
const globstar = (t4) => `(${_}(?:(?!${L}${t4.dot ? y : h}).)*?)`;
|
|
1294
|
+
const T = u3.dot ? "" : $;
|
|
1295
|
+
const O = u3.dot ? H : v;
|
|
1296
|
+
let k = u3.bash === true ? globstar(u3) : d;
|
|
1297
|
+
if (u3.capture) {
|
|
1298
|
+
k = `(${k})`;
|
|
1299
|
+
}
|
|
1300
|
+
if (typeof u3.noext === "boolean") {
|
|
1301
|
+
u3.noextglob = u3.noext;
|
|
1302
|
+
}
|
|
1303
|
+
const m = { input: t3, index: -1, start: 0, dot: u3.dot === true, consumed: "", output: "", prefix: "", backtrack: false, negated: false, brackets: 0, braces: 0, parens: 0, quotes: 0, globstar: false, tokens: A };
|
|
1304
|
+
t3 = o.removePrefix(t3, m);
|
|
1305
|
+
l = t3.length;
|
|
1306
|
+
const w = [];
|
|
1307
|
+
const N = [];
|
|
1308
|
+
const I = [];
|
|
1309
|
+
let B = f;
|
|
1310
|
+
let G;
|
|
1311
|
+
const eos = () => m.index === l - 1;
|
|
1312
|
+
const D = m.peek = (e4 = 1) => t3[m.index + e4];
|
|
1313
|
+
const M = m.advance = () => t3[++m.index] || "";
|
|
1314
|
+
const remaining = () => t3.slice(m.index + 1);
|
|
1315
|
+
const consume = (t4 = "", e4 = 0) => {
|
|
1316
|
+
m.consumed += t4;
|
|
1317
|
+
m.index += e4;
|
|
1318
|
+
};
|
|
1319
|
+
const append = (t4) => {
|
|
1320
|
+
m.output += t4.output != null ? t4.output : t4.value;
|
|
1321
|
+
consume(t4.value);
|
|
1322
|
+
};
|
|
1323
|
+
const negate = () => {
|
|
1324
|
+
let t4 = 1;
|
|
1325
|
+
while (D() === "!" && (D(2) !== "(" || D(3) === "?")) {
|
|
1326
|
+
M();
|
|
1327
|
+
m.start++;
|
|
1328
|
+
t4++;
|
|
1329
|
+
}
|
|
1330
|
+
if (t4 % 2 === 0) {
|
|
1331
|
+
return false;
|
|
1332
|
+
}
|
|
1333
|
+
m.negated = true;
|
|
1334
|
+
m.start++;
|
|
1335
|
+
return true;
|
|
1336
|
+
};
|
|
1337
|
+
const increment = (t4) => {
|
|
1338
|
+
m[t4]++;
|
|
1339
|
+
I.push(t4);
|
|
1340
|
+
};
|
|
1341
|
+
const decrement = (t4) => {
|
|
1342
|
+
m[t4]--;
|
|
1343
|
+
I.pop();
|
|
1344
|
+
};
|
|
1345
|
+
const push = (t4) => {
|
|
1346
|
+
if (B.type === "globstar") {
|
|
1347
|
+
const e4 = m.braces > 0 && (t4.type === "comma" || t4.type === "brace");
|
|
1348
|
+
const u4 = t4.extglob === true || w.length && (t4.type === "pipe" || t4.type === "paren");
|
|
1349
|
+
if (t4.type !== "slash" && t4.type !== "paren" && !e4 && !u4) {
|
|
1350
|
+
m.output = m.output.slice(0, -B.output.length);
|
|
1351
|
+
B.type = "star";
|
|
1352
|
+
B.value = "*";
|
|
1353
|
+
B.output = k;
|
|
1354
|
+
m.output += B.output;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
if (w.length && t4.type !== "paren") {
|
|
1358
|
+
w[w.length - 1].inner += t4.value;
|
|
1359
|
+
}
|
|
1360
|
+
if (t4.value || t4.output) append(t4);
|
|
1361
|
+
if (B && B.type === "text" && t4.type === "text") {
|
|
1362
|
+
B.output = (B.output || B.value) + t4.value;
|
|
1363
|
+
B.value += t4.value;
|
|
1364
|
+
return;
|
|
1365
|
+
}
|
|
1366
|
+
t4.prev = B;
|
|
1367
|
+
A.push(t4);
|
|
1368
|
+
B = t4;
|
|
1369
|
+
};
|
|
1370
|
+
const extglobOpen = (t4, e4) => {
|
|
1371
|
+
const n2 = { ...E[e4], conditions: 1, inner: "" };
|
|
1372
|
+
n2.prev = B;
|
|
1373
|
+
n2.parens = m.parens;
|
|
1374
|
+
n2.output = m.output;
|
|
1375
|
+
const o2 = (u3.capture ? "(" : "") + n2.open;
|
|
1376
|
+
increment("parens");
|
|
1377
|
+
push({ type: t4, value: e4, output: m.output ? "" : C });
|
|
1378
|
+
push({ type: "paren", extglob: true, value: M(), output: o2 });
|
|
1379
|
+
w.push(n2);
|
|
1380
|
+
};
|
|
1381
|
+
const extglobClose = (t4) => {
|
|
1382
|
+
let n2 = t4.close + (u3.capture ? ")" : "");
|
|
1383
|
+
let o2;
|
|
1384
|
+
if (t4.type === "negate") {
|
|
1385
|
+
let s2 = k;
|
|
1386
|
+
if (t4.inner && t4.inner.length > 1 && t4.inner.includes("/")) {
|
|
1387
|
+
s2 = globstar(u3);
|
|
1388
|
+
}
|
|
1389
|
+
if (s2 !== k || eos() || /^\)+$/.test(remaining())) {
|
|
1390
|
+
n2 = t4.close = `)$))${s2}`;
|
|
1391
|
+
}
|
|
1392
|
+
if (t4.inner.includes("*") && (o2 = remaining()) && /^\.[^\\/.]+$/.test(o2)) {
|
|
1393
|
+
const u4 = parse(o2, { ...e3, fastpaths: false }).output;
|
|
1394
|
+
n2 = t4.close = `)${u4})${s2})`;
|
|
1395
|
+
}
|
|
1396
|
+
if (t4.prev.type === "bos") {
|
|
1397
|
+
m.negatedExtglob = true;
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
push({ type: "paren", extglob: true, value: G, output: n2 });
|
|
1401
|
+
decrement("parens");
|
|
1402
|
+
};
|
|
1403
|
+
if (u3.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(t3)) {
|
|
1404
|
+
let n2 = false;
|
|
1405
|
+
let s2 = t3.replace(i, (t4, e4, u4, o2, s3, r2) => {
|
|
1406
|
+
if (o2 === "\\") {
|
|
1407
|
+
n2 = true;
|
|
1408
|
+
return t4;
|
|
1409
|
+
}
|
|
1410
|
+
if (o2 === "?") {
|
|
1411
|
+
if (e4) {
|
|
1412
|
+
return e4 + o2 + (s3 ? H.repeat(s3.length) : "");
|
|
1413
|
+
}
|
|
1414
|
+
if (r2 === 0) {
|
|
1415
|
+
return O + (s3 ? H.repeat(s3.length) : "");
|
|
1416
|
+
}
|
|
1417
|
+
return H.repeat(u4.length);
|
|
1418
|
+
}
|
|
1419
|
+
if (o2 === ".") {
|
|
1420
|
+
return h.repeat(u4.length);
|
|
1421
|
+
}
|
|
1422
|
+
if (o2 === "*") {
|
|
1423
|
+
if (e4) {
|
|
1424
|
+
return e4 + o2 + (s3 ? k : "");
|
|
1425
|
+
}
|
|
1426
|
+
return k;
|
|
1427
|
+
}
|
|
1428
|
+
return e4 ? t4 : `\\${t4}`;
|
|
1429
|
+
});
|
|
1430
|
+
if (n2 === true) {
|
|
1431
|
+
if (u3.unescape === true) {
|
|
1432
|
+
s2 = s2.replace(/\\/g, "");
|
|
1433
|
+
} else {
|
|
1434
|
+
s2 = s2.replace(/\\+/g, (t4) => t4.length % 2 === 0 ? "\\\\" : t4 ? "\\" : "");
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
if (s2 === t3 && u3.contains === true) {
|
|
1438
|
+
m.output = t3;
|
|
1439
|
+
return m;
|
|
1440
|
+
}
|
|
1441
|
+
m.output = o.wrapOutput(s2, m, e3);
|
|
1442
|
+
return m;
|
|
1443
|
+
}
|
|
1444
|
+
while (!eos()) {
|
|
1445
|
+
G = M();
|
|
1446
|
+
if (G === "\0") {
|
|
1447
|
+
continue;
|
|
1448
|
+
}
|
|
1449
|
+
if (G === "\\") {
|
|
1450
|
+
const t4 = D();
|
|
1451
|
+
if (t4 === "/" && u3.bash !== true) {
|
|
1452
|
+
continue;
|
|
1453
|
+
}
|
|
1454
|
+
if (t4 === "." || t4 === ";") {
|
|
1455
|
+
continue;
|
|
1456
|
+
}
|
|
1457
|
+
if (!t4) {
|
|
1458
|
+
G += "\\";
|
|
1459
|
+
push({ type: "text", value: G });
|
|
1460
|
+
continue;
|
|
1461
|
+
}
|
|
1462
|
+
const e5 = /^\\+/.exec(remaining());
|
|
1463
|
+
let n3 = 0;
|
|
1464
|
+
if (e5 && e5[0].length > 2) {
|
|
1465
|
+
n3 = e5[0].length;
|
|
1466
|
+
m.index += n3;
|
|
1467
|
+
if (n3 % 2 !== 0) {
|
|
1468
|
+
G += "\\";
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
if (u3.unescape === true) {
|
|
1472
|
+
G = M();
|
|
1473
|
+
} else {
|
|
1474
|
+
G += M();
|
|
1475
|
+
}
|
|
1476
|
+
if (m.brackets === 0) {
|
|
1477
|
+
push({ type: "text", value: G });
|
|
1478
|
+
continue;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
if (m.brackets > 0 && (G !== "]" || B.value === "[" || B.value === "[^")) {
|
|
1482
|
+
if (u3.posix !== false && G === ":") {
|
|
1483
|
+
const t4 = B.value.slice(1);
|
|
1484
|
+
if (t4.includes("[")) {
|
|
1485
|
+
B.posix = true;
|
|
1486
|
+
if (t4.includes(":")) {
|
|
1487
|
+
const t5 = B.value.lastIndexOf("[");
|
|
1488
|
+
const e5 = B.value.slice(0, t5);
|
|
1489
|
+
const u4 = B.value.slice(t5 + 2);
|
|
1490
|
+
const n3 = r[u4];
|
|
1491
|
+
if (n3) {
|
|
1492
|
+
B.value = e5 + n3;
|
|
1493
|
+
m.backtrack = true;
|
|
1494
|
+
M();
|
|
1495
|
+
if (!f.output && A.indexOf(B) === 1) {
|
|
1496
|
+
f.output = C;
|
|
1497
|
+
}
|
|
1498
|
+
continue;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
if (G === "[" && D() !== ":" || G === "-" && D() === "]") {
|
|
1504
|
+
G = `\\${G}`;
|
|
1505
|
+
}
|
|
1506
|
+
if (G === "]" && (B.value === "[" || B.value === "[^")) {
|
|
1507
|
+
G = `\\${G}`;
|
|
1508
|
+
}
|
|
1509
|
+
if (u3.posix === true && G === "!" && B.value === "[") {
|
|
1510
|
+
G = "^";
|
|
1511
|
+
}
|
|
1512
|
+
B.value += G;
|
|
1513
|
+
append({ value: G });
|
|
1514
|
+
continue;
|
|
1515
|
+
}
|
|
1516
|
+
if (m.quotes === 1 && G !== '"') {
|
|
1517
|
+
G = o.escapeRegex(G);
|
|
1518
|
+
B.value += G;
|
|
1519
|
+
append({ value: G });
|
|
1520
|
+
continue;
|
|
1521
|
+
}
|
|
1522
|
+
if (G === '"') {
|
|
1523
|
+
m.quotes = m.quotes === 1 ? 0 : 1;
|
|
1524
|
+
if (u3.keepQuotes === true) {
|
|
1525
|
+
push({ type: "text", value: G });
|
|
1526
|
+
}
|
|
1527
|
+
continue;
|
|
1528
|
+
}
|
|
1529
|
+
if (G === "(") {
|
|
1530
|
+
increment("parens");
|
|
1531
|
+
push({ type: "paren", value: G });
|
|
1532
|
+
continue;
|
|
1533
|
+
}
|
|
1534
|
+
if (G === ")") {
|
|
1535
|
+
if (m.parens === 0 && u3.strictBrackets === true) {
|
|
1536
|
+
throw new SyntaxError(syntaxError("opening", "("));
|
|
1537
|
+
}
|
|
1538
|
+
const t4 = w[w.length - 1];
|
|
1539
|
+
if (t4 && m.parens === t4.parens + 1) {
|
|
1540
|
+
extglobClose(w.pop());
|
|
1541
|
+
continue;
|
|
1542
|
+
}
|
|
1543
|
+
push({ type: "paren", value: G, output: m.parens ? ")" : "\\)" });
|
|
1544
|
+
decrement("parens");
|
|
1545
|
+
continue;
|
|
1546
|
+
}
|
|
1547
|
+
if (G === "[") {
|
|
1548
|
+
if (u3.nobracket === true || !remaining().includes("]")) {
|
|
1549
|
+
if (u3.nobracket !== true && u3.strictBrackets === true) {
|
|
1550
|
+
throw new SyntaxError(syntaxError("closing", "]"));
|
|
1551
|
+
}
|
|
1552
|
+
G = `\\${G}`;
|
|
1553
|
+
} else {
|
|
1554
|
+
increment("brackets");
|
|
1555
|
+
}
|
|
1556
|
+
push({ type: "bracket", value: G });
|
|
1557
|
+
continue;
|
|
1558
|
+
}
|
|
1559
|
+
if (G === "]") {
|
|
1560
|
+
if (u3.nobracket === true || B && B.type === "bracket" && B.value.length === 1) {
|
|
1561
|
+
push({ type: "text", value: G, output: `\\${G}` });
|
|
1562
|
+
continue;
|
|
1563
|
+
}
|
|
1564
|
+
if (m.brackets === 0) {
|
|
1565
|
+
if (u3.strictBrackets === true) {
|
|
1566
|
+
throw new SyntaxError(syntaxError("opening", "["));
|
|
1567
|
+
}
|
|
1568
|
+
push({ type: "text", value: G, output: `\\${G}` });
|
|
1569
|
+
continue;
|
|
1570
|
+
}
|
|
1571
|
+
decrement("brackets");
|
|
1572
|
+
const t4 = B.value.slice(1);
|
|
1573
|
+
if (B.posix !== true && t4[0] === "^" && !t4.includes("/")) {
|
|
1574
|
+
G = `/${G}`;
|
|
1575
|
+
}
|
|
1576
|
+
B.value += G;
|
|
1577
|
+
append({ value: G });
|
|
1578
|
+
if (u3.literalBrackets === false || o.hasRegexChars(t4)) {
|
|
1579
|
+
continue;
|
|
1580
|
+
}
|
|
1581
|
+
const e5 = o.escapeRegex(B.value);
|
|
1582
|
+
m.output = m.output.slice(0, -B.value.length);
|
|
1583
|
+
if (u3.literalBrackets === true) {
|
|
1584
|
+
m.output += e5;
|
|
1585
|
+
B.value = e5;
|
|
1586
|
+
continue;
|
|
1587
|
+
}
|
|
1588
|
+
B.value = `(${_}${e5}|${B.value})`;
|
|
1589
|
+
m.output += B.value;
|
|
1590
|
+
continue;
|
|
1591
|
+
}
|
|
1592
|
+
if (G === "{" && u3.nobrace !== true) {
|
|
1593
|
+
increment("braces");
|
|
1594
|
+
const t4 = { type: "brace", value: G, output: "(", outputIndex: m.output.length, tokensIndex: m.tokens.length };
|
|
1595
|
+
N.push(t4);
|
|
1596
|
+
push(t4);
|
|
1597
|
+
continue;
|
|
1598
|
+
}
|
|
1599
|
+
if (G === "}") {
|
|
1600
|
+
const t4 = N[N.length - 1];
|
|
1601
|
+
if (u3.nobrace === true || !t4) {
|
|
1602
|
+
push({ type: "text", value: G, output: G });
|
|
1603
|
+
continue;
|
|
1604
|
+
}
|
|
1605
|
+
let e5 = ")";
|
|
1606
|
+
if (t4.dots === true) {
|
|
1607
|
+
const t5 = A.slice();
|
|
1608
|
+
const n3 = [];
|
|
1609
|
+
for (let e6 = t5.length - 1; e6 >= 0; e6--) {
|
|
1610
|
+
A.pop();
|
|
1611
|
+
if (t5[e6].type === "brace") {
|
|
1612
|
+
break;
|
|
1613
|
+
}
|
|
1614
|
+
if (t5[e6].type !== "dots") {
|
|
1615
|
+
n3.unshift(t5[e6].value);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
e5 = expandRange(n3, u3);
|
|
1619
|
+
m.backtrack = true;
|
|
1620
|
+
}
|
|
1621
|
+
if (t4.comma !== true && t4.dots !== true) {
|
|
1622
|
+
const u4 = m.output.slice(0, t4.outputIndex);
|
|
1623
|
+
const n3 = m.tokens.slice(t4.tokensIndex);
|
|
1624
|
+
t4.value = t4.output = "\\{";
|
|
1625
|
+
G = e5 = "\\}";
|
|
1626
|
+
m.output = u4;
|
|
1627
|
+
for (const t5 of n3) {
|
|
1628
|
+
m.output += t5.output || t5.value;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
push({ type: "brace", value: G, output: e5 });
|
|
1632
|
+
decrement("braces");
|
|
1633
|
+
N.pop();
|
|
1634
|
+
continue;
|
|
1635
|
+
}
|
|
1636
|
+
if (G === "|") {
|
|
1637
|
+
if (w.length > 0) {
|
|
1638
|
+
w[w.length - 1].conditions++;
|
|
1639
|
+
}
|
|
1640
|
+
push({ type: "text", value: G });
|
|
1641
|
+
continue;
|
|
1642
|
+
}
|
|
1643
|
+
if (G === ",") {
|
|
1644
|
+
let t4 = G;
|
|
1645
|
+
const e5 = N[N.length - 1];
|
|
1646
|
+
if (e5 && I[I.length - 1] === "braces") {
|
|
1647
|
+
e5.comma = true;
|
|
1648
|
+
t4 = "|";
|
|
1649
|
+
}
|
|
1650
|
+
push({ type: "comma", value: G, output: t4 });
|
|
1651
|
+
continue;
|
|
1652
|
+
}
|
|
1653
|
+
if (G === "/") {
|
|
1654
|
+
if (B.type === "dot" && m.index === m.start + 1) {
|
|
1655
|
+
m.start = m.index + 1;
|
|
1656
|
+
m.consumed = "";
|
|
1657
|
+
m.output = "";
|
|
1658
|
+
A.pop();
|
|
1659
|
+
B = f;
|
|
1660
|
+
continue;
|
|
1661
|
+
}
|
|
1662
|
+
push({ type: "slash", value: G, output: b });
|
|
1663
|
+
continue;
|
|
1664
|
+
}
|
|
1665
|
+
if (G === ".") {
|
|
1666
|
+
if (m.braces > 0 && B.type === "dot") {
|
|
1667
|
+
if (B.value === ".") B.output = h;
|
|
1668
|
+
const t4 = N[N.length - 1];
|
|
1669
|
+
B.type = "dots";
|
|
1670
|
+
B.output += G;
|
|
1671
|
+
B.value += G;
|
|
1672
|
+
t4.dots = true;
|
|
1673
|
+
continue;
|
|
1674
|
+
}
|
|
1675
|
+
if (m.braces + m.parens === 0 && B.type !== "bos" && B.type !== "slash") {
|
|
1676
|
+
push({ type: "text", value: G, output: h });
|
|
1677
|
+
continue;
|
|
1678
|
+
}
|
|
1679
|
+
push({ type: "dot", value: G, output: h });
|
|
1680
|
+
continue;
|
|
1681
|
+
}
|
|
1682
|
+
if (G === "?") {
|
|
1683
|
+
const t4 = B && B.value === "(";
|
|
1684
|
+
if (!t4 && u3.noextglob !== true && D() === "(" && D(2) !== "?") {
|
|
1685
|
+
extglobOpen("qmark", G);
|
|
1686
|
+
continue;
|
|
1687
|
+
}
|
|
1688
|
+
if (B && B.type === "paren") {
|
|
1689
|
+
const t5 = D();
|
|
1690
|
+
let e5 = G;
|
|
1691
|
+
if (B.value === "(" && !/[!=<:]/.test(t5) || t5 === "<" && !/<([!=]|\w+>)/.test(remaining())) {
|
|
1692
|
+
e5 = `\\${G}`;
|
|
1693
|
+
}
|
|
1694
|
+
push({ type: "text", value: G, output: e5 });
|
|
1695
|
+
continue;
|
|
1696
|
+
}
|
|
1697
|
+
if (u3.dot !== true && (B.type === "slash" || B.type === "bos")) {
|
|
1698
|
+
push({ type: "qmark", value: G, output: v });
|
|
1699
|
+
continue;
|
|
1700
|
+
}
|
|
1701
|
+
push({ type: "qmark", value: G, output: H });
|
|
1702
|
+
continue;
|
|
1703
|
+
}
|
|
1704
|
+
if (G === "!") {
|
|
1705
|
+
if (u3.noextglob !== true && D() === "(") {
|
|
1706
|
+
if (D(2) !== "?" || !/[!=<:]/.test(D(3))) {
|
|
1707
|
+
extglobOpen("negate", G);
|
|
1708
|
+
continue;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
if (u3.nonegate !== true && m.index === 0) {
|
|
1712
|
+
negate();
|
|
1713
|
+
continue;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
if (G === "+") {
|
|
1717
|
+
if (u3.noextglob !== true && D() === "(" && D(2) !== "?") {
|
|
1718
|
+
extglobOpen("plus", G);
|
|
1719
|
+
continue;
|
|
1720
|
+
}
|
|
1721
|
+
if (B && B.value === "(" || u3.regex === false) {
|
|
1722
|
+
push({ type: "plus", value: G, output: g });
|
|
1723
|
+
continue;
|
|
1724
|
+
}
|
|
1725
|
+
if (B && (B.type === "bracket" || B.type === "paren" || B.type === "brace") || m.parens > 0) {
|
|
1726
|
+
push({ type: "plus", value: G });
|
|
1727
|
+
continue;
|
|
1728
|
+
}
|
|
1729
|
+
push({ type: "plus", value: g });
|
|
1730
|
+
continue;
|
|
1731
|
+
}
|
|
1732
|
+
if (G === "@") {
|
|
1733
|
+
if (u3.noextglob !== true && D() === "(" && D(2) !== "?") {
|
|
1734
|
+
push({ type: "at", extglob: true, value: G, output: "" });
|
|
1735
|
+
continue;
|
|
1736
|
+
}
|
|
1737
|
+
push({ type: "text", value: G });
|
|
1738
|
+
continue;
|
|
1739
|
+
}
|
|
1740
|
+
if (G !== "*") {
|
|
1741
|
+
if (G === "$" || G === "^") {
|
|
1742
|
+
G = `\\${G}`;
|
|
1743
|
+
}
|
|
1744
|
+
const t4 = a.exec(remaining());
|
|
1745
|
+
if (t4) {
|
|
1746
|
+
G += t4[0];
|
|
1747
|
+
m.index += t4[0].length;
|
|
1748
|
+
}
|
|
1749
|
+
push({ type: "text", value: G });
|
|
1750
|
+
continue;
|
|
1751
|
+
}
|
|
1752
|
+
if (B && (B.type === "globstar" || B.star === true)) {
|
|
1753
|
+
B.type = "star";
|
|
1754
|
+
B.star = true;
|
|
1755
|
+
B.value += G;
|
|
1756
|
+
B.output = k;
|
|
1757
|
+
m.backtrack = true;
|
|
1758
|
+
m.globstar = true;
|
|
1759
|
+
consume(G);
|
|
1760
|
+
continue;
|
|
1761
|
+
}
|
|
1762
|
+
let e4 = remaining();
|
|
1763
|
+
if (u3.noextglob !== true && /^\([^?]/.test(e4)) {
|
|
1764
|
+
extglobOpen("star", G);
|
|
1765
|
+
continue;
|
|
1766
|
+
}
|
|
1767
|
+
if (B.type === "star") {
|
|
1768
|
+
if (u3.noglobstar === true) {
|
|
1769
|
+
consume(G);
|
|
1770
|
+
continue;
|
|
1771
|
+
}
|
|
1772
|
+
const n3 = B.prev;
|
|
1773
|
+
const o2 = n3.prev;
|
|
1774
|
+
const s2 = n3.type === "slash" || n3.type === "bos";
|
|
1775
|
+
const r2 = o2 && (o2.type === "star" || o2.type === "globstar");
|
|
1776
|
+
if (u3.bash === true && (!s2 || e4[0] && e4[0] !== "/")) {
|
|
1777
|
+
push({ type: "star", value: G, output: "" });
|
|
1778
|
+
continue;
|
|
1779
|
+
}
|
|
1780
|
+
const a2 = m.braces > 0 && (n3.type === "comma" || n3.type === "brace");
|
|
1781
|
+
const i2 = w.length && (n3.type === "pipe" || n3.type === "paren");
|
|
1782
|
+
if (!s2 && n3.type !== "paren" && !a2 && !i2) {
|
|
1783
|
+
push({ type: "star", value: G, output: "" });
|
|
1784
|
+
continue;
|
|
1785
|
+
}
|
|
1786
|
+
while (e4.slice(0, 3) === "/**") {
|
|
1787
|
+
const u4 = t3[m.index + 4];
|
|
1788
|
+
if (u4 && u4 !== "/") {
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
e4 = e4.slice(3);
|
|
1792
|
+
consume("/**", 3);
|
|
1793
|
+
}
|
|
1794
|
+
if (n3.type === "bos" && eos()) {
|
|
1795
|
+
B.type = "globstar";
|
|
1796
|
+
B.value += G;
|
|
1797
|
+
B.output = globstar(u3);
|
|
1798
|
+
m.output = B.output;
|
|
1799
|
+
m.globstar = true;
|
|
1800
|
+
consume(G);
|
|
1801
|
+
continue;
|
|
1802
|
+
}
|
|
1803
|
+
if (n3.type === "slash" && n3.prev.type !== "bos" && !r2 && eos()) {
|
|
1804
|
+
m.output = m.output.slice(0, -(n3.output + B.output).length);
|
|
1805
|
+
n3.output = `(?:${n3.output}`;
|
|
1806
|
+
B.type = "globstar";
|
|
1807
|
+
B.output = globstar(u3) + (u3.strictSlashes ? ")" : "|$)");
|
|
1808
|
+
B.value += G;
|
|
1809
|
+
m.globstar = true;
|
|
1810
|
+
m.output += n3.output + B.output;
|
|
1811
|
+
consume(G);
|
|
1812
|
+
continue;
|
|
1813
|
+
}
|
|
1814
|
+
if (n3.type === "slash" && n3.prev.type !== "bos" && e4[0] === "/") {
|
|
1815
|
+
const t4 = e4[1] !== void 0 ? "|$" : "";
|
|
1816
|
+
m.output = m.output.slice(0, -(n3.output + B.output).length);
|
|
1817
|
+
n3.output = `(?:${n3.output}`;
|
|
1818
|
+
B.type = "globstar";
|
|
1819
|
+
B.output = `${globstar(u3)}${b}|${b}${t4})`;
|
|
1820
|
+
B.value += G;
|
|
1821
|
+
m.output += n3.output + B.output;
|
|
1822
|
+
m.globstar = true;
|
|
1823
|
+
consume(G + M());
|
|
1824
|
+
push({ type: "slash", value: "/", output: "" });
|
|
1825
|
+
continue;
|
|
1826
|
+
}
|
|
1827
|
+
if (n3.type === "bos" && e4[0] === "/") {
|
|
1828
|
+
B.type = "globstar";
|
|
1829
|
+
B.value += G;
|
|
1830
|
+
B.output = `(?:^|${b}|${globstar(u3)}${b})`;
|
|
1831
|
+
m.output = B.output;
|
|
1832
|
+
m.globstar = true;
|
|
1833
|
+
consume(G + M());
|
|
1834
|
+
push({ type: "slash", value: "/", output: "" });
|
|
1835
|
+
continue;
|
|
1836
|
+
}
|
|
1837
|
+
m.output = m.output.slice(0, -B.output.length);
|
|
1838
|
+
B.type = "globstar";
|
|
1839
|
+
B.output = globstar(u3);
|
|
1840
|
+
B.value += G;
|
|
1841
|
+
m.output += B.output;
|
|
1842
|
+
m.globstar = true;
|
|
1843
|
+
consume(G);
|
|
1844
|
+
continue;
|
|
1845
|
+
}
|
|
1846
|
+
const n2 = { type: "star", value: G, output: k };
|
|
1847
|
+
if (u3.bash === true) {
|
|
1848
|
+
n2.output = ".*?";
|
|
1849
|
+
if (B.type === "bos" || B.type === "slash") {
|
|
1850
|
+
n2.output = T + n2.output;
|
|
1851
|
+
}
|
|
1852
|
+
push(n2);
|
|
1853
|
+
continue;
|
|
1854
|
+
}
|
|
1855
|
+
if (B && (B.type === "bracket" || B.type === "paren") && u3.regex === true) {
|
|
1856
|
+
n2.output = G;
|
|
1857
|
+
push(n2);
|
|
1858
|
+
continue;
|
|
1859
|
+
}
|
|
1860
|
+
if (m.index === m.start || B.type === "slash" || B.type === "dot") {
|
|
1861
|
+
if (B.type === "dot") {
|
|
1862
|
+
m.output += x;
|
|
1863
|
+
B.output += x;
|
|
1864
|
+
} else if (u3.dot === true) {
|
|
1865
|
+
m.output += S;
|
|
1866
|
+
B.output += S;
|
|
1867
|
+
} else {
|
|
1868
|
+
m.output += T;
|
|
1869
|
+
B.output += T;
|
|
1870
|
+
}
|
|
1871
|
+
if (D() !== "*") {
|
|
1872
|
+
m.output += C;
|
|
1873
|
+
B.output += C;
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
push(n2);
|
|
1877
|
+
}
|
|
1878
|
+
while (m.brackets > 0) {
|
|
1879
|
+
if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
|
|
1880
|
+
m.output = o.escapeLast(m.output, "[");
|
|
1881
|
+
decrement("brackets");
|
|
1882
|
+
}
|
|
1883
|
+
while (m.parens > 0) {
|
|
1884
|
+
if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
|
|
1885
|
+
m.output = o.escapeLast(m.output, "(");
|
|
1886
|
+
decrement("parens");
|
|
1887
|
+
}
|
|
1888
|
+
while (m.braces > 0) {
|
|
1889
|
+
if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
|
|
1890
|
+
m.output = o.escapeLast(m.output, "{");
|
|
1891
|
+
decrement("braces");
|
|
1892
|
+
}
|
|
1893
|
+
if (u3.strictSlashes !== true && (B.type === "star" || B.type === "bracket")) {
|
|
1894
|
+
push({ type: "maybe_slash", value: "", output: `${b}?` });
|
|
1895
|
+
}
|
|
1896
|
+
if (m.backtrack === true) {
|
|
1897
|
+
m.output = "";
|
|
1898
|
+
for (const t4 of m.tokens) {
|
|
1899
|
+
m.output += t4.output != null ? t4.output : t4.value;
|
|
1900
|
+
if (t4.suffix) {
|
|
1901
|
+
m.output += t4.suffix;
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
return m;
|
|
1906
|
+
};
|
|
1907
|
+
parse.fastpaths = (t3, e3) => {
|
|
1908
|
+
const u3 = { ...e3 };
|
|
1909
|
+
const r2 = typeof u3.maxLength === "number" ? Math.min(s, u3.maxLength) : s;
|
|
1910
|
+
const a2 = t3.length;
|
|
1911
|
+
if (a2 > r2) {
|
|
1912
|
+
throw new SyntaxError(`Input length: ${a2}, exceeds maximum allowed length: ${r2}`);
|
|
1913
|
+
}
|
|
1914
|
+
t3 = c[t3] || t3;
|
|
1915
|
+
const { DOT_LITERAL: i2, SLASH_LITERAL: p, ONE_CHAR: l, DOTS_SLASH: f, NO_DOT: A, NO_DOTS: _, NO_DOTS_SLASH: R, STAR: E, START_ANCHOR: h } = n.globChars(u3.windows);
|
|
1916
|
+
const g = u3.dot ? _ : A;
|
|
1917
|
+
const b = u3.dot ? R : A;
|
|
1918
|
+
const C = u3.capture ? "" : "?:";
|
|
1919
|
+
const y = { negated: false, prefix: "" };
|
|
1920
|
+
let $ = u3.bash === true ? ".*?" : E;
|
|
1921
|
+
if (u3.capture) {
|
|
1922
|
+
$ = `(${$})`;
|
|
1923
|
+
}
|
|
1924
|
+
const globstar = (t4) => {
|
|
1925
|
+
if (t4.noglobstar === true) return $;
|
|
1926
|
+
return `(${C}(?:(?!${h}${t4.dot ? f : i2}).)*?)`;
|
|
1927
|
+
};
|
|
1928
|
+
const create = (t4) => {
|
|
1929
|
+
switch (t4) {
|
|
1930
|
+
case "*":
|
|
1931
|
+
return `${g}${l}${$}`;
|
|
1932
|
+
case ".*":
|
|
1933
|
+
return `${i2}${l}${$}`;
|
|
1934
|
+
case "*.*":
|
|
1935
|
+
return `${g}${$}${i2}${l}${$}`;
|
|
1936
|
+
case "*/*":
|
|
1937
|
+
return `${g}${$}${p}${l}${b}${$}`;
|
|
1938
|
+
case "**":
|
|
1939
|
+
return g + globstar(u3);
|
|
1940
|
+
case "**/*":
|
|
1941
|
+
return `(?:${g}${globstar(u3)}${p})?${b}${l}${$}`;
|
|
1942
|
+
case "**/*.*":
|
|
1943
|
+
return `(?:${g}${globstar(u3)}${p})?${b}${$}${i2}${l}${$}`;
|
|
1944
|
+
case "**/.*":
|
|
1945
|
+
return `(?:${g}${globstar(u3)}${p})?${i2}${l}${$}`;
|
|
1946
|
+
default: {
|
|
1947
|
+
const e4 = /^(.*?)\.(\w+)$/.exec(t4);
|
|
1948
|
+
if (!e4) return;
|
|
1949
|
+
const u4 = create(e4[1]);
|
|
1950
|
+
if (!u4) return;
|
|
1951
|
+
return u4 + i2 + e4[2];
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
const x = o.removePrefix(t3, y);
|
|
1956
|
+
let S = create(x);
|
|
1957
|
+
if (S && u3.strictSlashes !== true) {
|
|
1958
|
+
S += `${p}?`;
|
|
1959
|
+
}
|
|
1960
|
+
return S;
|
|
1961
|
+
};
|
|
1962
|
+
t2.exports = parse;
|
|
1963
|
+
}, 510: (t2, e2, u2) => {
|
|
1964
|
+
const n = u2(716);
|
|
1965
|
+
const o = u2(697);
|
|
1966
|
+
const s = u2(96);
|
|
1967
|
+
const r = u2(154);
|
|
1968
|
+
const isObject = (t3) => t3 && typeof t3 === "object" && !Array.isArray(t3);
|
|
1969
|
+
const picomatch = (t3, e3, u3 = false) => {
|
|
1970
|
+
if (Array.isArray(t3)) {
|
|
1971
|
+
const n3 = t3.map((t4) => picomatch(t4, e3, u3));
|
|
1972
|
+
const arrayMatcher = (t4) => {
|
|
1973
|
+
for (const e4 of n3) {
|
|
1974
|
+
const u4 = e4(t4);
|
|
1975
|
+
if (u4) return u4;
|
|
1976
|
+
}
|
|
1977
|
+
return false;
|
|
1978
|
+
};
|
|
1979
|
+
return arrayMatcher;
|
|
1980
|
+
}
|
|
1981
|
+
const n2 = isObject(t3) && t3.tokens && t3.input;
|
|
1982
|
+
if (t3 === "" || typeof t3 !== "string" && !n2) {
|
|
1983
|
+
throw new TypeError("Expected pattern to be a non-empty string");
|
|
1984
|
+
}
|
|
1985
|
+
const o2 = e3 || {};
|
|
1986
|
+
const s2 = o2.windows;
|
|
1987
|
+
const r2 = n2 ? picomatch.compileRe(t3, e3) : picomatch.makeRe(t3, e3, false, true);
|
|
1988
|
+
const a = r2.state;
|
|
1989
|
+
delete r2.state;
|
|
1990
|
+
let isIgnored = () => false;
|
|
1991
|
+
if (o2.ignore) {
|
|
1992
|
+
const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
|
|
1993
|
+
isIgnored = picomatch(o2.ignore, t4, u3);
|
|
1994
|
+
}
|
|
1995
|
+
const matcher = (u4, n3 = false) => {
|
|
1996
|
+
const { isMatch: i, match: c, output: p } = picomatch.test(u4, r2, e3, { glob: t3, posix: s2 });
|
|
1997
|
+
const l = { glob: t3, state: a, regex: r2, posix: s2, input: u4, output: p, match: c, isMatch: i };
|
|
1998
|
+
if (typeof o2.onResult === "function") {
|
|
1999
|
+
o2.onResult(l);
|
|
2000
|
+
}
|
|
2001
|
+
if (i === false) {
|
|
2002
|
+
l.isMatch = false;
|
|
2003
|
+
return n3 ? l : false;
|
|
2004
|
+
}
|
|
2005
|
+
if (isIgnored(u4)) {
|
|
2006
|
+
if (typeof o2.onIgnore === "function") {
|
|
2007
|
+
o2.onIgnore(l);
|
|
2008
|
+
}
|
|
2009
|
+
l.isMatch = false;
|
|
2010
|
+
return n3 ? l : false;
|
|
2011
|
+
}
|
|
2012
|
+
if (typeof o2.onMatch === "function") {
|
|
2013
|
+
o2.onMatch(l);
|
|
2014
|
+
}
|
|
2015
|
+
return n3 ? l : true;
|
|
2016
|
+
};
|
|
2017
|
+
if (u3) {
|
|
2018
|
+
matcher.state = a;
|
|
2019
|
+
}
|
|
2020
|
+
return matcher;
|
|
2021
|
+
};
|
|
2022
|
+
picomatch.test = (t3, e3, u3, { glob: n2, posix: o2 } = {}) => {
|
|
2023
|
+
if (typeof t3 !== "string") {
|
|
2024
|
+
throw new TypeError("Expected input to be a string");
|
|
2025
|
+
}
|
|
2026
|
+
if (t3 === "") {
|
|
2027
|
+
return { isMatch: false, output: "" };
|
|
2028
|
+
}
|
|
2029
|
+
const r2 = u3 || {};
|
|
2030
|
+
const a = r2.format || (o2 ? s.toPosixSlashes : null);
|
|
2031
|
+
let i = t3 === n2;
|
|
2032
|
+
let c = i && a ? a(t3) : t3;
|
|
2033
|
+
if (i === false) {
|
|
2034
|
+
c = a ? a(t3) : t3;
|
|
2035
|
+
i = c === n2;
|
|
2036
|
+
}
|
|
2037
|
+
if (i === false || r2.capture === true) {
|
|
2038
|
+
if (r2.matchBase === true || r2.basename === true) {
|
|
2039
|
+
i = picomatch.matchBase(t3, e3, u3, o2);
|
|
2040
|
+
} else {
|
|
2041
|
+
i = e3.exec(c);
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
return { isMatch: Boolean(i), match: i, output: c };
|
|
2045
|
+
};
|
|
2046
|
+
picomatch.matchBase = (t3, e3, u3) => {
|
|
2047
|
+
const n2 = e3 instanceof RegExp ? e3 : picomatch.makeRe(e3, u3);
|
|
2048
|
+
return n2.test(s.basename(t3));
|
|
2049
|
+
};
|
|
2050
|
+
picomatch.isMatch = (t3, e3, u3) => picomatch(e3, u3)(t3);
|
|
2051
|
+
picomatch.parse = (t3, e3) => {
|
|
2052
|
+
if (Array.isArray(t3)) return t3.map((t4) => picomatch.parse(t4, e3));
|
|
2053
|
+
return o(t3, { ...e3, fastpaths: false });
|
|
2054
|
+
};
|
|
2055
|
+
picomatch.scan = (t3, e3) => n(t3, e3);
|
|
2056
|
+
picomatch.compileRe = (t3, e3, u3 = false, n2 = false) => {
|
|
2057
|
+
if (u3 === true) {
|
|
2058
|
+
return t3.output;
|
|
2059
|
+
}
|
|
2060
|
+
const o2 = e3 || {};
|
|
2061
|
+
const s2 = o2.contains ? "" : "^";
|
|
2062
|
+
const r2 = o2.contains ? "" : "$";
|
|
2063
|
+
let a = `${s2}(?:${t3.output})${r2}`;
|
|
2064
|
+
if (t3 && t3.negated === true) {
|
|
2065
|
+
a = `^(?!${a}).*$`;
|
|
2066
|
+
}
|
|
2067
|
+
const i = picomatch.toRegex(a, e3);
|
|
2068
|
+
if (n2 === true) {
|
|
2069
|
+
i.state = t3;
|
|
2070
|
+
}
|
|
2071
|
+
return i;
|
|
2072
|
+
};
|
|
2073
|
+
picomatch.makeRe = (t3, e3 = {}, u3 = false, n2 = false) => {
|
|
2074
|
+
if (!t3 || typeof t3 !== "string") {
|
|
2075
|
+
throw new TypeError("Expected a non-empty string");
|
|
2076
|
+
}
|
|
2077
|
+
let s2 = { negated: false, fastpaths: true };
|
|
2078
|
+
if (e3.fastpaths !== false && (t3[0] === "." || t3[0] === "*")) {
|
|
2079
|
+
s2.output = o.fastpaths(t3, e3);
|
|
2080
|
+
}
|
|
2081
|
+
if (!s2.output) {
|
|
2082
|
+
s2 = o(t3, e3);
|
|
2083
|
+
}
|
|
2084
|
+
return picomatch.compileRe(s2, e3, u3, n2);
|
|
2085
|
+
};
|
|
2086
|
+
picomatch.toRegex = (t3, e3) => {
|
|
2087
|
+
try {
|
|
2088
|
+
const u3 = e3 || {};
|
|
2089
|
+
return new RegExp(t3, u3.flags || (u3.nocase ? "i" : ""));
|
|
2090
|
+
} catch (t4) {
|
|
2091
|
+
if (e3 && e3.debug === true) throw t4;
|
|
2092
|
+
return /$^/;
|
|
2093
|
+
}
|
|
2094
|
+
};
|
|
2095
|
+
picomatch.constants = r;
|
|
2096
|
+
t2.exports = picomatch;
|
|
2097
|
+
}, 716: (t2, e2, u2) => {
|
|
2098
|
+
const n = u2(96);
|
|
2099
|
+
const { CHAR_ASTERISK: o, CHAR_AT: s, CHAR_BACKWARD_SLASH: r, CHAR_COMMA: a, CHAR_DOT: i, CHAR_EXCLAMATION_MARK: c, CHAR_FORWARD_SLASH: p, CHAR_LEFT_CURLY_BRACE: l, CHAR_LEFT_PARENTHESES: f, CHAR_LEFT_SQUARE_BRACKET: A, CHAR_PLUS: _, CHAR_QUESTION_MARK: R, CHAR_RIGHT_CURLY_BRACE: E, CHAR_RIGHT_PARENTHESES: h, CHAR_RIGHT_SQUARE_BRACKET: g } = u2(154);
|
|
2100
|
+
const isPathSeparator = (t3) => t3 === p || t3 === r;
|
|
2101
|
+
const depth = (t3) => {
|
|
2102
|
+
if (t3.isPrefix !== true) {
|
|
2103
|
+
t3.depth = t3.isGlobstar ? Infinity : 1;
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
const scan = (t3, e3) => {
|
|
2107
|
+
const u3 = e3 || {};
|
|
2108
|
+
const b = t3.length - 1;
|
|
2109
|
+
const C = u3.parts === true || u3.scanToEnd === true;
|
|
2110
|
+
const y = [];
|
|
2111
|
+
const $ = [];
|
|
2112
|
+
const x = [];
|
|
2113
|
+
let S = t3;
|
|
2114
|
+
let H = -1;
|
|
2115
|
+
let v = 0;
|
|
2116
|
+
let d = 0;
|
|
2117
|
+
let L = false;
|
|
2118
|
+
let T = false;
|
|
2119
|
+
let O = false;
|
|
2120
|
+
let k = false;
|
|
2121
|
+
let m = false;
|
|
2122
|
+
let w = false;
|
|
2123
|
+
let N = false;
|
|
2124
|
+
let I = false;
|
|
2125
|
+
let B = false;
|
|
2126
|
+
let G = false;
|
|
2127
|
+
let D = 0;
|
|
2128
|
+
let M;
|
|
2129
|
+
let P;
|
|
2130
|
+
let K = { value: "", depth: 0, isGlob: false };
|
|
2131
|
+
const eos = () => H >= b;
|
|
2132
|
+
const peek = () => S.charCodeAt(H + 1);
|
|
2133
|
+
const advance = () => {
|
|
2134
|
+
M = P;
|
|
2135
|
+
return S.charCodeAt(++H);
|
|
2136
|
+
};
|
|
2137
|
+
while (H < b) {
|
|
2138
|
+
P = advance();
|
|
2139
|
+
let t4;
|
|
2140
|
+
if (P === r) {
|
|
2141
|
+
N = K.backslashes = true;
|
|
2142
|
+
P = advance();
|
|
2143
|
+
if (P === l) {
|
|
2144
|
+
w = true;
|
|
2145
|
+
}
|
|
2146
|
+
continue;
|
|
2147
|
+
}
|
|
2148
|
+
if (w === true || P === l) {
|
|
2149
|
+
D++;
|
|
2150
|
+
while (eos() !== true && (P = advance())) {
|
|
2151
|
+
if (P === r) {
|
|
2152
|
+
N = K.backslashes = true;
|
|
2153
|
+
advance();
|
|
2154
|
+
continue;
|
|
2155
|
+
}
|
|
2156
|
+
if (P === l) {
|
|
2157
|
+
D++;
|
|
2158
|
+
continue;
|
|
2159
|
+
}
|
|
2160
|
+
if (w !== true && P === i && (P = advance()) === i) {
|
|
2161
|
+
L = K.isBrace = true;
|
|
2162
|
+
O = K.isGlob = true;
|
|
2163
|
+
G = true;
|
|
2164
|
+
if (C === true) {
|
|
2165
|
+
continue;
|
|
2166
|
+
}
|
|
2167
|
+
break;
|
|
2168
|
+
}
|
|
2169
|
+
if (w !== true && P === a) {
|
|
2170
|
+
L = K.isBrace = true;
|
|
2171
|
+
O = K.isGlob = true;
|
|
2172
|
+
G = true;
|
|
2173
|
+
if (C === true) {
|
|
2174
|
+
continue;
|
|
2175
|
+
}
|
|
2176
|
+
break;
|
|
2177
|
+
}
|
|
2178
|
+
if (P === E) {
|
|
2179
|
+
D--;
|
|
2180
|
+
if (D === 0) {
|
|
2181
|
+
w = false;
|
|
2182
|
+
L = K.isBrace = true;
|
|
2183
|
+
G = true;
|
|
2184
|
+
break;
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
if (C === true) {
|
|
2189
|
+
continue;
|
|
2190
|
+
}
|
|
2191
|
+
break;
|
|
2192
|
+
}
|
|
2193
|
+
if (P === p) {
|
|
2194
|
+
y.push(H);
|
|
2195
|
+
$.push(K);
|
|
2196
|
+
K = { value: "", depth: 0, isGlob: false };
|
|
2197
|
+
if (G === true) continue;
|
|
2198
|
+
if (M === i && H === v + 1) {
|
|
2199
|
+
v += 2;
|
|
2200
|
+
continue;
|
|
2201
|
+
}
|
|
2202
|
+
d = H + 1;
|
|
2203
|
+
continue;
|
|
2204
|
+
}
|
|
2205
|
+
if (u3.noext !== true) {
|
|
2206
|
+
const t5 = P === _ || P === s || P === o || P === R || P === c;
|
|
2207
|
+
if (t5 === true && peek() === f) {
|
|
2208
|
+
O = K.isGlob = true;
|
|
2209
|
+
k = K.isExtglob = true;
|
|
2210
|
+
G = true;
|
|
2211
|
+
if (P === c && H === v) {
|
|
2212
|
+
B = true;
|
|
2213
|
+
}
|
|
2214
|
+
if (C === true) {
|
|
2215
|
+
while (eos() !== true && (P = advance())) {
|
|
2216
|
+
if (P === r) {
|
|
2217
|
+
N = K.backslashes = true;
|
|
2218
|
+
P = advance();
|
|
2219
|
+
continue;
|
|
2220
|
+
}
|
|
2221
|
+
if (P === h) {
|
|
2222
|
+
O = K.isGlob = true;
|
|
2223
|
+
G = true;
|
|
2224
|
+
break;
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
continue;
|
|
2228
|
+
}
|
|
2229
|
+
break;
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
if (P === o) {
|
|
2233
|
+
if (M === o) m = K.isGlobstar = true;
|
|
2234
|
+
O = K.isGlob = true;
|
|
2235
|
+
G = true;
|
|
2236
|
+
if (C === true) {
|
|
2237
|
+
continue;
|
|
2238
|
+
}
|
|
2239
|
+
break;
|
|
2240
|
+
}
|
|
2241
|
+
if (P === R) {
|
|
2242
|
+
O = K.isGlob = true;
|
|
2243
|
+
G = true;
|
|
2244
|
+
if (C === true) {
|
|
2245
|
+
continue;
|
|
2246
|
+
}
|
|
2247
|
+
break;
|
|
2248
|
+
}
|
|
2249
|
+
if (P === A) {
|
|
2250
|
+
while (eos() !== true && (t4 = advance())) {
|
|
2251
|
+
if (t4 === r) {
|
|
2252
|
+
N = K.backslashes = true;
|
|
2253
|
+
advance();
|
|
2254
|
+
continue;
|
|
2255
|
+
}
|
|
2256
|
+
if (t4 === g) {
|
|
2257
|
+
T = K.isBracket = true;
|
|
2258
|
+
O = K.isGlob = true;
|
|
2259
|
+
G = true;
|
|
2260
|
+
break;
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
if (C === true) {
|
|
2264
|
+
continue;
|
|
2265
|
+
}
|
|
2266
|
+
break;
|
|
2267
|
+
}
|
|
2268
|
+
if (u3.nonegate !== true && P === c && H === v) {
|
|
2269
|
+
I = K.negated = true;
|
|
2270
|
+
v++;
|
|
2271
|
+
continue;
|
|
2272
|
+
}
|
|
2273
|
+
if (u3.noparen !== true && P === f) {
|
|
2274
|
+
O = K.isGlob = true;
|
|
2275
|
+
if (C === true) {
|
|
2276
|
+
while (eos() !== true && (P = advance())) {
|
|
2277
|
+
if (P === f) {
|
|
2278
|
+
N = K.backslashes = true;
|
|
2279
|
+
P = advance();
|
|
2280
|
+
continue;
|
|
2281
|
+
}
|
|
2282
|
+
if (P === h) {
|
|
2283
|
+
G = true;
|
|
2284
|
+
break;
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
continue;
|
|
2288
|
+
}
|
|
2289
|
+
break;
|
|
2290
|
+
}
|
|
2291
|
+
if (O === true) {
|
|
2292
|
+
G = true;
|
|
2293
|
+
if (C === true) {
|
|
2294
|
+
continue;
|
|
2295
|
+
}
|
|
2296
|
+
break;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
if (u3.noext === true) {
|
|
2300
|
+
k = false;
|
|
2301
|
+
O = false;
|
|
2302
|
+
}
|
|
2303
|
+
let U = S;
|
|
2304
|
+
let X = "";
|
|
2305
|
+
let F = "";
|
|
2306
|
+
if (v > 0) {
|
|
2307
|
+
X = S.slice(0, v);
|
|
2308
|
+
S = S.slice(v);
|
|
2309
|
+
d -= v;
|
|
2310
|
+
}
|
|
2311
|
+
if (U && O === true && d > 0) {
|
|
2312
|
+
U = S.slice(0, d);
|
|
2313
|
+
F = S.slice(d);
|
|
2314
|
+
} else if (O === true) {
|
|
2315
|
+
U = "";
|
|
2316
|
+
F = S;
|
|
2317
|
+
} else {
|
|
2318
|
+
U = S;
|
|
2319
|
+
}
|
|
2320
|
+
if (U && U !== "" && U !== "/" && U !== S) {
|
|
2321
|
+
if (isPathSeparator(U.charCodeAt(U.length - 1))) {
|
|
2322
|
+
U = U.slice(0, -1);
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
if (u3.unescape === true) {
|
|
2326
|
+
if (F) F = n.removeBackslashes(F);
|
|
2327
|
+
if (U && N === true) {
|
|
2328
|
+
U = n.removeBackslashes(U);
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
const Q = { prefix: X, input: t3, start: v, base: U, glob: F, isBrace: L, isBracket: T, isGlob: O, isExtglob: k, isGlobstar: m, negated: I, negatedExtglob: B };
|
|
2332
|
+
if (u3.tokens === true) {
|
|
2333
|
+
Q.maxDepth = 0;
|
|
2334
|
+
if (!isPathSeparator(P)) {
|
|
2335
|
+
$.push(K);
|
|
2336
|
+
}
|
|
2337
|
+
Q.tokens = $;
|
|
2338
|
+
}
|
|
2339
|
+
if (u3.parts === true || u3.tokens === true) {
|
|
2340
|
+
let e4;
|
|
2341
|
+
for (let n2 = 0; n2 < y.length; n2++) {
|
|
2342
|
+
const o2 = e4 ? e4 + 1 : v;
|
|
2343
|
+
const s2 = y[n2];
|
|
2344
|
+
const r2 = t3.slice(o2, s2);
|
|
2345
|
+
if (u3.tokens) {
|
|
2346
|
+
if (n2 === 0 && v !== 0) {
|
|
2347
|
+
$[n2].isPrefix = true;
|
|
2348
|
+
$[n2].value = X;
|
|
2349
|
+
} else {
|
|
2350
|
+
$[n2].value = r2;
|
|
2351
|
+
}
|
|
2352
|
+
depth($[n2]);
|
|
2353
|
+
Q.maxDepth += $[n2].depth;
|
|
2354
|
+
}
|
|
2355
|
+
if (n2 !== 0 || r2 !== "") {
|
|
2356
|
+
x.push(r2);
|
|
2357
|
+
}
|
|
2358
|
+
e4 = s2;
|
|
2359
|
+
}
|
|
2360
|
+
if (e4 && e4 + 1 < t3.length) {
|
|
2361
|
+
const n2 = t3.slice(e4 + 1);
|
|
2362
|
+
x.push(n2);
|
|
2363
|
+
if (u3.tokens) {
|
|
2364
|
+
$[$.length - 1].value = n2;
|
|
2365
|
+
depth($[$.length - 1]);
|
|
2366
|
+
Q.maxDepth += $[$.length - 1].depth;
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
Q.slashes = y;
|
|
2370
|
+
Q.parts = x;
|
|
2371
|
+
}
|
|
2372
|
+
return Q;
|
|
2373
|
+
};
|
|
2374
|
+
t2.exports = scan;
|
|
2375
|
+
}, 96: (t2, e2, u2) => {
|
|
2376
|
+
const { REGEX_BACKSLASH: n, REGEX_REMOVE_BACKSLASH: o, REGEX_SPECIAL_CHARS: s, REGEX_SPECIAL_CHARS_GLOBAL: r } = u2(154);
|
|
2377
|
+
e2.isObject = (t3) => t3 !== null && typeof t3 === "object" && !Array.isArray(t3);
|
|
2378
|
+
e2.hasRegexChars = (t3) => s.test(t3);
|
|
2379
|
+
e2.isRegexChar = (t3) => t3.length === 1 && e2.hasRegexChars(t3);
|
|
2380
|
+
e2.escapeRegex = (t3) => t3.replace(r, "\\$1");
|
|
2381
|
+
e2.toPosixSlashes = (t3) => t3.replace(n, "/");
|
|
2382
|
+
e2.removeBackslashes = (t3) => t3.replace(o, (t4) => t4 === "\\" ? "" : t4);
|
|
2383
|
+
e2.escapeLast = (t3, u3, n2) => {
|
|
2384
|
+
const o2 = t3.lastIndexOf(u3, n2);
|
|
2385
|
+
if (o2 === -1) return t3;
|
|
2386
|
+
if (t3[o2 - 1] === "\\") return e2.escapeLast(t3, u3, o2 - 1);
|
|
2387
|
+
return `${t3.slice(0, o2)}\\${t3.slice(o2)}`;
|
|
2388
|
+
};
|
|
2389
|
+
e2.removePrefix = (t3, e3 = {}) => {
|
|
2390
|
+
let u3 = t3;
|
|
2391
|
+
if (u3.startsWith("./")) {
|
|
2392
|
+
u3 = u3.slice(2);
|
|
2393
|
+
e3.prefix = "./";
|
|
2394
|
+
}
|
|
2395
|
+
return u3;
|
|
2396
|
+
};
|
|
2397
|
+
e2.wrapOutput = (t3, e3 = {}, u3 = {}) => {
|
|
2398
|
+
const n2 = u3.contains ? "" : "^";
|
|
2399
|
+
const o2 = u3.contains ? "" : "$";
|
|
2400
|
+
let s2 = `${n2}(?:${t3})${o2}`;
|
|
2401
|
+
if (e3.negated === true) {
|
|
2402
|
+
s2 = `(?:^(?!${s2}).*$)`;
|
|
2403
|
+
}
|
|
2404
|
+
return s2;
|
|
2405
|
+
};
|
|
2406
|
+
e2.basename = (t3, { windows: e3 } = {}) => {
|
|
2407
|
+
const u3 = t3.split(e3 ? /[\\/]/ : "/");
|
|
2408
|
+
const n2 = u3[u3.length - 1];
|
|
2409
|
+
if (n2 === "") {
|
|
2410
|
+
return u3[u3.length - 2];
|
|
2411
|
+
}
|
|
2412
|
+
return n2;
|
|
2413
|
+
};
|
|
2414
|
+
} };
|
|
2415
|
+
var e = {};
|
|
2416
|
+
function __nccwpck_require__(u2) {
|
|
2417
|
+
var n = e[u2];
|
|
2418
|
+
if (n !== void 0) {
|
|
2419
|
+
return n.exports;
|
|
2420
|
+
}
|
|
2421
|
+
var o = e[u2] = { exports: {} };
|
|
2422
|
+
var s = true;
|
|
2423
|
+
try {
|
|
2424
|
+
t[u2](o, o.exports, __nccwpck_require__);
|
|
2425
|
+
s = false;
|
|
2426
|
+
} finally {
|
|
2427
|
+
if (s) delete e[u2];
|
|
2428
|
+
}
|
|
2429
|
+
return o.exports;
|
|
2430
|
+
}
|
|
2431
|
+
if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
|
|
2432
|
+
var u = __nccwpck_require__(170);
|
|
2433
|
+
module2.exports = u;
|
|
2434
|
+
})();
|
|
2435
|
+
}
|
|
2436
|
+
});
|
|
2437
|
+
|
|
2438
|
+
// node_modules/next/dist/shared/lib/match-local-pattern.js
|
|
2439
|
+
var require_match_local_pattern = __commonJS({
|
|
2440
|
+
"node_modules/next/dist/shared/lib/match-local-pattern.js"(exports2) {
|
|
2441
|
+
"use strict";
|
|
2442
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
2443
|
+
value: true
|
|
2444
|
+
});
|
|
2445
|
+
function _export(target, all) {
|
|
2446
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2447
|
+
enumerable: true,
|
|
2448
|
+
get: all[name]
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
_export(exports2, {
|
|
2452
|
+
hasLocalMatch: function() {
|
|
2453
|
+
return hasLocalMatch;
|
|
2454
|
+
},
|
|
2455
|
+
matchLocalPattern: function() {
|
|
2456
|
+
return matchLocalPattern;
|
|
2457
|
+
}
|
|
2458
|
+
});
|
|
2459
|
+
var _picomatch = require_picomatch();
|
|
2460
|
+
function matchLocalPattern(pattern, url) {
|
|
2461
|
+
if (pattern.search !== void 0) {
|
|
2462
|
+
if (pattern.search !== url.search) {
|
|
2463
|
+
return false;
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
var _pattern_pathname;
|
|
2467
|
+
if (!(0, _picomatch.makeRe)((_pattern_pathname = pattern.pathname) != null ? _pattern_pathname : "**", {
|
|
2468
|
+
dot: true
|
|
2469
|
+
}).test(url.pathname)) {
|
|
2470
|
+
return false;
|
|
2471
|
+
}
|
|
2472
|
+
return true;
|
|
2473
|
+
}
|
|
2474
|
+
function hasLocalMatch(localPatterns, urlPathAndQuery) {
|
|
2475
|
+
if (!localPatterns) {
|
|
2476
|
+
return true;
|
|
2477
|
+
}
|
|
2478
|
+
const url = new URL(urlPathAndQuery, "http://n");
|
|
2479
|
+
return localPatterns.some((p) => matchLocalPattern(p, url));
|
|
2480
|
+
}
|
|
2481
|
+
}
|
|
2482
|
+
});
|
|
2483
|
+
|
|
2484
|
+
// node_modules/next/dist/shared/lib/match-remote-pattern.js
|
|
2485
|
+
var require_match_remote_pattern = __commonJS({
|
|
2486
|
+
"node_modules/next/dist/shared/lib/match-remote-pattern.js"(exports2) {
|
|
2487
|
+
"use strict";
|
|
2488
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
2489
|
+
value: true
|
|
2490
|
+
});
|
|
2491
|
+
function _export(target, all) {
|
|
2492
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
2493
|
+
enumerable: true,
|
|
2494
|
+
get: all[name]
|
|
2495
|
+
});
|
|
2496
|
+
}
|
|
2497
|
+
_export(exports2, {
|
|
2498
|
+
hasRemoteMatch: function() {
|
|
2499
|
+
return hasRemoteMatch;
|
|
2500
|
+
},
|
|
2501
|
+
matchRemotePattern: function() {
|
|
2502
|
+
return matchRemotePattern;
|
|
2503
|
+
}
|
|
2504
|
+
});
|
|
2505
|
+
var _picomatch = require_picomatch();
|
|
2506
|
+
function matchRemotePattern(pattern, url) {
|
|
2507
|
+
if (pattern.protocol !== void 0) {
|
|
2508
|
+
if (pattern.protocol.replace(/:$/, "") !== url.protocol.replace(/:$/, "")) {
|
|
2509
|
+
return false;
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
if (pattern.port !== void 0) {
|
|
2513
|
+
if (pattern.port !== url.port) {
|
|
2514
|
+
return false;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
if (pattern.hostname === void 0) {
|
|
2518
|
+
throw Object.defineProperty(new Error("Pattern should define hostname but found\n" + JSON.stringify(pattern)), "__NEXT_ERROR_CODE", {
|
|
2519
|
+
value: "E410",
|
|
2520
|
+
enumerable: false,
|
|
2521
|
+
configurable: true
|
|
2522
|
+
});
|
|
2523
|
+
} else {
|
|
2524
|
+
if (!(0, _picomatch.makeRe)(pattern.hostname).test(url.hostname)) {
|
|
2525
|
+
return false;
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
if (pattern.search !== void 0) {
|
|
2529
|
+
if (pattern.search !== url.search) {
|
|
2530
|
+
return false;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
var _pattern_pathname;
|
|
2534
|
+
if (!(0, _picomatch.makeRe)((_pattern_pathname = pattern.pathname) != null ? _pattern_pathname : "**", {
|
|
2535
|
+
dot: true
|
|
2536
|
+
}).test(url.pathname)) {
|
|
2537
|
+
return false;
|
|
2538
|
+
}
|
|
2539
|
+
return true;
|
|
2540
|
+
}
|
|
2541
|
+
function hasRemoteMatch(domains, remotePatterns, url) {
|
|
2542
|
+
return domains.some((domain) => url.hostname === domain) || remotePatterns.some((p) => matchRemotePattern(p, url));
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
});
|
|
2546
|
+
|
|
2547
|
+
// node_modules/next/dist/shared/lib/image-loader.js
|
|
2548
|
+
var require_image_loader = __commonJS({
|
|
2549
|
+
"node_modules/next/dist/shared/lib/image-loader.js"(exports2) {
|
|
2550
|
+
"use strict";
|
|
2551
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
2552
|
+
value: true
|
|
2553
|
+
});
|
|
2554
|
+
Object.defineProperty(exports2, "default", {
|
|
2555
|
+
enumerable: true,
|
|
2556
|
+
get: function() {
|
|
2557
|
+
return _default;
|
|
2558
|
+
}
|
|
2559
|
+
});
|
|
2560
|
+
var DEFAULT_Q = 75;
|
|
2561
|
+
function defaultLoader(param) {
|
|
2562
|
+
let { config, src, width, quality } = param;
|
|
2563
|
+
var _config_qualities;
|
|
2564
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2565
|
+
const missingValues = [];
|
|
2566
|
+
if (!src) missingValues.push("src");
|
|
2567
|
+
if (!width) missingValues.push("width");
|
|
2568
|
+
if (missingValues.length > 0) {
|
|
2569
|
+
throw Object.defineProperty(new Error("Next Image Optimization requires " + missingValues.join(", ") + " to be provided. Make sure you pass them as props to the `next/image` component. Received: " + JSON.stringify({
|
|
2570
|
+
src,
|
|
2571
|
+
width,
|
|
2572
|
+
quality
|
|
2573
|
+
})), "__NEXT_ERROR_CODE", {
|
|
2574
|
+
value: "E188",
|
|
2575
|
+
enumerable: false,
|
|
2576
|
+
configurable: true
|
|
2577
|
+
});
|
|
2578
|
+
}
|
|
2579
|
+
if (src.startsWith("//")) {
|
|
2580
|
+
throw Object.defineProperty(new Error('Failed to parse src "' + src + '" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)'), "__NEXT_ERROR_CODE", {
|
|
2581
|
+
value: "E360",
|
|
2582
|
+
enumerable: false,
|
|
2583
|
+
configurable: true
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
if (src.startsWith("/") && config.localPatterns) {
|
|
2587
|
+
if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
2588
|
+
process.env.NEXT_RUNTIME !== "edge") {
|
|
2589
|
+
const { hasLocalMatch } = require_match_local_pattern();
|
|
2590
|
+
if (!hasLocalMatch(config.localPatterns, src)) {
|
|
2591
|
+
throw Object.defineProperty(new Error("Invalid src prop (" + src + ") on `next/image` does not match `images.localPatterns` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns"), "__NEXT_ERROR_CODE", {
|
|
2592
|
+
value: "E426",
|
|
2593
|
+
enumerable: false,
|
|
2594
|
+
configurable: true
|
|
2595
|
+
});
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
if (!src.startsWith("/") && (config.domains || config.remotePatterns)) {
|
|
2600
|
+
let parsedSrc;
|
|
2601
|
+
try {
|
|
2602
|
+
parsedSrc = new URL(src);
|
|
2603
|
+
} catch (err) {
|
|
2604
|
+
console.error(err);
|
|
2605
|
+
throw Object.defineProperty(new Error('Failed to parse src "' + src + '" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)'), "__NEXT_ERROR_CODE", {
|
|
2606
|
+
value: "E63",
|
|
2607
|
+
enumerable: false,
|
|
2608
|
+
configurable: true
|
|
2609
|
+
});
|
|
2610
|
+
}
|
|
2611
|
+
if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
2612
|
+
process.env.NEXT_RUNTIME !== "edge") {
|
|
2613
|
+
const { hasRemoteMatch } = require_match_remote_pattern();
|
|
2614
|
+
if (!hasRemoteMatch(config.domains, config.remotePatterns, parsedSrc)) {
|
|
2615
|
+
throw Object.defineProperty(new Error("Invalid src prop (" + src + ') on `next/image`, hostname "' + parsedSrc.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host'), "__NEXT_ERROR_CODE", {
|
|
2616
|
+
value: "E231",
|
|
2617
|
+
enumerable: false,
|
|
2618
|
+
configurable: true
|
|
2619
|
+
});
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
if (quality && config.qualities && !config.qualities.includes(quality)) {
|
|
2624
|
+
throw Object.defineProperty(new Error("Invalid quality prop (" + quality + ") on `next/image` does not match `images.qualities` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-qualities"), "__NEXT_ERROR_CODE", {
|
|
2625
|
+
value: "E623",
|
|
2626
|
+
enumerable: false,
|
|
2627
|
+
configurable: true
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
const q = quality || ((_config_qualities = config.qualities) == null ? void 0 : _config_qualities.reduce((prev, cur) => Math.abs(cur - DEFAULT_Q) < Math.abs(prev - DEFAULT_Q) ? cur : prev)) || DEFAULT_Q;
|
|
2632
|
+
return config.path + "?url=" + encodeURIComponent(src) + "&w=" + width + "&q=" + q + (src.startsWith("/_next/static/media/") && process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
|
|
2633
|
+
}
|
|
2634
|
+
defaultLoader.__next_img_default = true;
|
|
2635
|
+
var _default = defaultLoader;
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
|
|
2639
|
+
// node_modules/next/dist/client/use-merged-ref.js
|
|
2640
|
+
var require_use_merged_ref = __commonJS({
|
|
2641
|
+
"node_modules/next/dist/client/use-merged-ref.js"(exports2, module2) {
|
|
2642
|
+
"use strict";
|
|
2643
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
2644
|
+
value: true
|
|
2645
|
+
});
|
|
2646
|
+
Object.defineProperty(exports2, "useMergedRef", {
|
|
2647
|
+
enumerable: true,
|
|
2648
|
+
get: function() {
|
|
2649
|
+
return useMergedRef;
|
|
2650
|
+
}
|
|
2651
|
+
});
|
|
2652
|
+
var _react = require("react");
|
|
2653
|
+
function useMergedRef(refA, refB) {
|
|
2654
|
+
const cleanupA = (0, _react.useRef)(null);
|
|
2655
|
+
const cleanupB = (0, _react.useRef)(null);
|
|
2656
|
+
return (0, _react.useCallback)((current) => {
|
|
2657
|
+
if (current === null) {
|
|
2658
|
+
const cleanupFnA = cleanupA.current;
|
|
2659
|
+
if (cleanupFnA) {
|
|
2660
|
+
cleanupA.current = null;
|
|
2661
|
+
cleanupFnA();
|
|
2662
|
+
}
|
|
2663
|
+
const cleanupFnB = cleanupB.current;
|
|
2664
|
+
if (cleanupFnB) {
|
|
2665
|
+
cleanupB.current = null;
|
|
2666
|
+
cleanupFnB();
|
|
2667
|
+
}
|
|
2668
|
+
} else {
|
|
2669
|
+
if (refA) {
|
|
2670
|
+
cleanupA.current = applyRef(refA, current);
|
|
2671
|
+
}
|
|
2672
|
+
if (refB) {
|
|
2673
|
+
cleanupB.current = applyRef(refB, current);
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
}, [
|
|
2677
|
+
refA,
|
|
2678
|
+
refB
|
|
2679
|
+
]);
|
|
2680
|
+
}
|
|
2681
|
+
function applyRef(refA, current) {
|
|
2682
|
+
if (typeof refA === "function") {
|
|
2683
|
+
const cleanup = refA(current);
|
|
2684
|
+
if (typeof cleanup === "function") {
|
|
2685
|
+
return cleanup;
|
|
2686
|
+
} else {
|
|
2687
|
+
return () => refA(null);
|
|
2688
|
+
}
|
|
2689
|
+
} else {
|
|
2690
|
+
refA.current = current;
|
|
2691
|
+
return () => {
|
|
2692
|
+
refA.current = null;
|
|
2693
|
+
};
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2697
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2698
|
+
Object.assign(exports2.default, exports2);
|
|
2699
|
+
module2.exports = exports2.default;
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
});
|
|
2703
|
+
|
|
2704
|
+
// node_modules/next/dist/client/image-component.js
|
|
2705
|
+
var require_image_component = __commonJS({
|
|
2706
|
+
"node_modules/next/dist/client/image-component.js"(exports2, module2) {
|
|
2707
|
+
"use client";
|
|
2708
|
+
"use strict";
|
|
2709
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
2710
|
+
value: true
|
|
2711
|
+
});
|
|
2712
|
+
Object.defineProperty(exports2, "Image", {
|
|
2713
|
+
enumerable: true,
|
|
2714
|
+
get: function() {
|
|
2715
|
+
return Image3;
|
|
2716
|
+
}
|
|
2717
|
+
});
|
|
2718
|
+
var _interop_require_default = require_interop_require_default();
|
|
2719
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
2720
|
+
var _jsxruntime = require("react/jsx-runtime");
|
|
2721
|
+
var _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
|
|
2722
|
+
var _reactdom = /* @__PURE__ */ _interop_require_default._(require("react-dom"));
|
|
2723
|
+
var _head = /* @__PURE__ */ _interop_require_default._(require_head());
|
|
2724
|
+
var _getimgprops = require_get_img_props();
|
|
2725
|
+
var _imageconfig = require_image_config();
|
|
2726
|
+
var _imageconfigcontextsharedruntime = require_image_config_context_shared_runtime();
|
|
2727
|
+
var _warnonce = require_warn_once();
|
|
2728
|
+
var _routercontextsharedruntime = require_router_context_shared_runtime();
|
|
2729
|
+
var _imageloader = /* @__PURE__ */ _interop_require_default._(require_image_loader());
|
|
2730
|
+
var _usemergedref = require_use_merged_ref();
|
|
2731
|
+
var configEnv = process.env.__NEXT_IMAGE_OPTS;
|
|
2732
|
+
if (typeof window === "undefined") {
|
|
2733
|
+
;
|
|
2734
|
+
globalThis.__NEXT_IMAGE_IMPORTED = true;
|
|
2735
|
+
}
|
|
2736
|
+
function handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput) {
|
|
2737
|
+
const src = img == null ? void 0 : img.src;
|
|
2738
|
+
if (!img || img["data-loaded-src"] === src) {
|
|
2739
|
+
return;
|
|
2740
|
+
}
|
|
2741
|
+
img["data-loaded-src"] = src;
|
|
2742
|
+
const p = "decode" in img ? img.decode() : Promise.resolve();
|
|
2743
|
+
p.catch(() => {
|
|
2744
|
+
}).then(() => {
|
|
2745
|
+
if (!img.parentElement || !img.isConnected) {
|
|
2746
|
+
return;
|
|
2747
|
+
}
|
|
2748
|
+
if (placeholder !== "empty") {
|
|
2749
|
+
setBlurComplete(true);
|
|
2750
|
+
}
|
|
2751
|
+
if (onLoadRef == null ? void 0 : onLoadRef.current) {
|
|
2752
|
+
const event = new Event("load");
|
|
2753
|
+
Object.defineProperty(event, "target", {
|
|
2754
|
+
writable: false,
|
|
2755
|
+
value: img
|
|
2756
|
+
});
|
|
2757
|
+
let prevented = false;
|
|
2758
|
+
let stopped = false;
|
|
2759
|
+
onLoadRef.current({
|
|
2760
|
+
...event,
|
|
2761
|
+
nativeEvent: event,
|
|
2762
|
+
currentTarget: img,
|
|
2763
|
+
target: img,
|
|
2764
|
+
isDefaultPrevented: () => prevented,
|
|
2765
|
+
isPropagationStopped: () => stopped,
|
|
2766
|
+
persist: () => {
|
|
2767
|
+
},
|
|
2768
|
+
preventDefault: () => {
|
|
2769
|
+
prevented = true;
|
|
2770
|
+
event.preventDefault();
|
|
2771
|
+
},
|
|
2772
|
+
stopPropagation: () => {
|
|
2773
|
+
stopped = true;
|
|
2774
|
+
event.stopPropagation();
|
|
2775
|
+
}
|
|
2776
|
+
});
|
|
2777
|
+
}
|
|
2778
|
+
if (onLoadingCompleteRef == null ? void 0 : onLoadingCompleteRef.current) {
|
|
2779
|
+
onLoadingCompleteRef.current(img);
|
|
2780
|
+
}
|
|
2781
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2782
|
+
const origSrc = new URL(src, "http://n").searchParams.get("url") || src;
|
|
2783
|
+
if (img.getAttribute("data-nimg") === "fill") {
|
|
2784
|
+
if (!unoptimized && (!sizesInput || sizesInput === "100vw")) {
|
|
2785
|
+
let widthViewportRatio = img.getBoundingClientRect().width / window.innerWidth;
|
|
2786
|
+
if (widthViewportRatio < 0.6) {
|
|
2787
|
+
if (sizesInput === "100vw") {
|
|
2788
|
+
(0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes');
|
|
2789
|
+
} else {
|
|
2790
|
+
(0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes');
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
if (img.parentElement) {
|
|
2795
|
+
const { position } = window.getComputedStyle(img.parentElement);
|
|
2796
|
+
const valid = [
|
|
2797
|
+
"absolute",
|
|
2798
|
+
"fixed",
|
|
2799
|
+
"relative"
|
|
2800
|
+
];
|
|
2801
|
+
if (!valid.includes(position)) {
|
|
2802
|
+
(0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" and parent element with invalid "position". Provided "' + position + '" should be one of ' + valid.map(String).join(",") + ".");
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
if (img.height === 0) {
|
|
2806
|
+
(0, _warnonce.warnOnce)('Image with src "' + origSrc + '" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.');
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
const heightModified = img.height.toString() !== img.getAttribute("height");
|
|
2810
|
+
const widthModified = img.width.toString() !== img.getAttribute("width");
|
|
2811
|
+
if (heightModified && !widthModified || !heightModified && widthModified) {
|
|
2812
|
+
(0, _warnonce.warnOnce)('Image with src "' + origSrc + `" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
});
|
|
2816
|
+
}
|
|
2817
|
+
function getDynamicProps(fetchPriority) {
|
|
2818
|
+
if (Boolean(_react.use)) {
|
|
2819
|
+
return {
|
|
2820
|
+
fetchPriority
|
|
2821
|
+
};
|
|
2822
|
+
}
|
|
2823
|
+
return {
|
|
2824
|
+
fetchpriority: fetchPriority
|
|
2825
|
+
};
|
|
2826
|
+
}
|
|
2827
|
+
var ImageElement = /* @__PURE__ */ (0, _react.forwardRef)((param, forwardedRef) => {
|
|
2828
|
+
let { src, srcSet, sizes, height, width, decoding, className, style, fetchPriority, placeholder, loading, unoptimized, fill, onLoadRef, onLoadingCompleteRef, setBlurComplete, setShowAltText, sizesInput, onLoad, onError, ...rest } = param;
|
|
2829
|
+
const ownRef = (0, _react.useCallback)((img) => {
|
|
2830
|
+
if (!img) {
|
|
2831
|
+
return;
|
|
2832
|
+
}
|
|
2833
|
+
if (onError) {
|
|
2834
|
+
img.src = img.src;
|
|
2835
|
+
}
|
|
2836
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2837
|
+
if (!src) {
|
|
2838
|
+
console.error('Image is missing required "src" property:', img);
|
|
2839
|
+
}
|
|
2840
|
+
if (img.getAttribute("alt") === null) {
|
|
2841
|
+
console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.');
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
if (img.complete) {
|
|
2845
|
+
handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
|
|
2846
|
+
}
|
|
2847
|
+
}, [
|
|
2848
|
+
src,
|
|
2849
|
+
placeholder,
|
|
2850
|
+
onLoadRef,
|
|
2851
|
+
onLoadingCompleteRef,
|
|
2852
|
+
setBlurComplete,
|
|
2853
|
+
onError,
|
|
2854
|
+
unoptimized,
|
|
2855
|
+
sizesInput
|
|
2856
|
+
]);
|
|
2857
|
+
const ref = (0, _usemergedref.useMergedRef)(forwardedRef, ownRef);
|
|
2858
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
|
|
2859
|
+
...rest,
|
|
2860
|
+
...getDynamicProps(fetchPriority),
|
|
2861
|
+
// It's intended to keep `loading` before `src` because React updates
|
|
2862
|
+
// props in order which causes Safari/Firefox to not lazy load properly.
|
|
2863
|
+
// See https://github.com/facebook/react/issues/25883
|
|
2864
|
+
loading,
|
|
2865
|
+
width,
|
|
2866
|
+
height,
|
|
2867
|
+
decoding,
|
|
2868
|
+
"data-nimg": fill ? "fill" : "1",
|
|
2869
|
+
className,
|
|
2870
|
+
style,
|
|
2871
|
+
// It's intended to keep `src` the last attribute because React updates
|
|
2872
|
+
// attributes in order. If we keep `src` the first one, Safari will
|
|
2873
|
+
// immediately start to fetch `src`, before `sizes` and `srcSet` are even
|
|
2874
|
+
// updated by React. That causes multiple unnecessary requests if `srcSet`
|
|
2875
|
+
// and `sizes` are defined.
|
|
2876
|
+
// This bug cannot be reproduced in Chrome or Firefox.
|
|
2877
|
+
sizes,
|
|
2878
|
+
srcSet,
|
|
2879
|
+
src,
|
|
2880
|
+
ref,
|
|
2881
|
+
onLoad: (event) => {
|
|
2882
|
+
const img = event.currentTarget;
|
|
2883
|
+
handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
|
|
2884
|
+
},
|
|
2885
|
+
onError: (event) => {
|
|
2886
|
+
setShowAltText(true);
|
|
2887
|
+
if (placeholder !== "empty") {
|
|
2888
|
+
setBlurComplete(true);
|
|
2889
|
+
}
|
|
2890
|
+
if (onError) {
|
|
2891
|
+
onError(event);
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
});
|
|
2895
|
+
});
|
|
2896
|
+
function ImagePreload(param) {
|
|
2897
|
+
let { isAppRouter, imgAttributes } = param;
|
|
2898
|
+
const opts = {
|
|
2899
|
+
as: "image",
|
|
2900
|
+
imageSrcSet: imgAttributes.srcSet,
|
|
2901
|
+
imageSizes: imgAttributes.sizes,
|
|
2902
|
+
crossOrigin: imgAttributes.crossOrigin,
|
|
2903
|
+
referrerPolicy: imgAttributes.referrerPolicy,
|
|
2904
|
+
...getDynamicProps(imgAttributes.fetchPriority)
|
|
2905
|
+
};
|
|
2906
|
+
if (isAppRouter && _reactdom.default.preload) {
|
|
2907
|
+
_reactdom.default.preload(imgAttributes.src, opts);
|
|
2908
|
+
return null;
|
|
2909
|
+
}
|
|
2910
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_head.default, {
|
|
2911
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("link", {
|
|
2912
|
+
rel: "preload",
|
|
2913
|
+
// Note how we omit the `href` attribute, as it would only be relevant
|
|
2914
|
+
// for browsers that do not support `imagesrcset`, and in those cases
|
|
2915
|
+
// it would cause the incorrect image to be preloaded.
|
|
2916
|
+
//
|
|
2917
|
+
// https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
|
|
2918
|
+
href: imgAttributes.srcSet ? void 0 : imgAttributes.src,
|
|
2919
|
+
...opts
|
|
2920
|
+
}, "__nimg-" + imgAttributes.src + imgAttributes.srcSet + imgAttributes.sizes)
|
|
2921
|
+
});
|
|
2922
|
+
}
|
|
2923
|
+
var Image3 = /* @__PURE__ */ (0, _react.forwardRef)((props, forwardedRef) => {
|
|
2924
|
+
const pagesRouter = (0, _react.useContext)(_routercontextsharedruntime.RouterContext);
|
|
2925
|
+
const isAppRouter = !pagesRouter;
|
|
2926
|
+
const configContext = (0, _react.useContext)(_imageconfigcontextsharedruntime.ImageConfigContext);
|
|
2927
|
+
const config = (0, _react.useMemo)(() => {
|
|
2928
|
+
var _c_qualities;
|
|
2929
|
+
const c = configEnv || configContext || _imageconfig.imageConfigDefault;
|
|
2930
|
+
const allSizes = [
|
|
2931
|
+
...c.deviceSizes,
|
|
2932
|
+
...c.imageSizes
|
|
2933
|
+
].sort((a, b) => a - b);
|
|
2934
|
+
const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
|
|
2935
|
+
const qualities = (_c_qualities = c.qualities) == null ? void 0 : _c_qualities.sort((a, b) => a - b);
|
|
2936
|
+
return {
|
|
2937
|
+
...c,
|
|
2938
|
+
allSizes,
|
|
2939
|
+
deviceSizes,
|
|
2940
|
+
qualities
|
|
2941
|
+
};
|
|
2942
|
+
}, [
|
|
2943
|
+
configContext
|
|
2944
|
+
]);
|
|
2945
|
+
const { onLoad, onLoadingComplete } = props;
|
|
2946
|
+
const onLoadRef = (0, _react.useRef)(onLoad);
|
|
2947
|
+
(0, _react.useEffect)(() => {
|
|
2948
|
+
onLoadRef.current = onLoad;
|
|
2949
|
+
}, [
|
|
2950
|
+
onLoad
|
|
2951
|
+
]);
|
|
2952
|
+
const onLoadingCompleteRef = (0, _react.useRef)(onLoadingComplete);
|
|
2953
|
+
(0, _react.useEffect)(() => {
|
|
2954
|
+
onLoadingCompleteRef.current = onLoadingComplete;
|
|
2955
|
+
}, [
|
|
2956
|
+
onLoadingComplete
|
|
2957
|
+
]);
|
|
2958
|
+
const [blurComplete, setBlurComplete] = (0, _react.useState)(false);
|
|
2959
|
+
const [showAltText, setShowAltText] = (0, _react.useState)(false);
|
|
2960
|
+
const { props: imgAttributes, meta: imgMeta } = (0, _getimgprops.getImgProps)(props, {
|
|
2961
|
+
defaultLoader: _imageloader.default,
|
|
2962
|
+
imgConf: config,
|
|
2963
|
+
blurComplete,
|
|
2964
|
+
showAltText
|
|
2965
|
+
});
|
|
2966
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
2967
|
+
children: [
|
|
2968
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(ImageElement, {
|
|
2969
|
+
...imgAttributes,
|
|
2970
|
+
unoptimized: imgMeta.unoptimized,
|
|
2971
|
+
placeholder: imgMeta.placeholder,
|
|
2972
|
+
fill: imgMeta.fill,
|
|
2973
|
+
onLoadRef,
|
|
2974
|
+
onLoadingCompleteRef,
|
|
2975
|
+
setBlurComplete,
|
|
2976
|
+
setShowAltText,
|
|
2977
|
+
sizesInput: props.sizes,
|
|
2978
|
+
ref: forwardedRef
|
|
2979
|
+
}),
|
|
2980
|
+
imgMeta.priority ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ImagePreload, {
|
|
2981
|
+
isAppRouter,
|
|
2982
|
+
imgAttributes
|
|
2983
|
+
}) : null
|
|
2984
|
+
]
|
|
2985
|
+
});
|
|
2986
|
+
});
|
|
2987
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
2988
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
2989
|
+
Object.assign(exports2.default, exports2);
|
|
2990
|
+
module2.exports = exports2.default;
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
});
|
|
2994
|
+
|
|
2995
|
+
// node_modules/next/dist/shared/lib/image-external.js
|
|
2996
|
+
var require_image_external = __commonJS({
|
|
2997
|
+
"node_modules/next/dist/shared/lib/image-external.js"(exports2) {
|
|
2998
|
+
"use strict";
|
|
2999
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3000
|
+
value: true
|
|
3001
|
+
});
|
|
3002
|
+
function _export(target, all) {
|
|
3003
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3004
|
+
enumerable: true,
|
|
3005
|
+
get: all[name]
|
|
3006
|
+
});
|
|
3007
|
+
}
|
|
3008
|
+
_export(exports2, {
|
|
3009
|
+
default: function() {
|
|
3010
|
+
return _default;
|
|
3011
|
+
},
|
|
3012
|
+
getImageProps: function() {
|
|
3013
|
+
return getImageProps;
|
|
3014
|
+
}
|
|
3015
|
+
});
|
|
3016
|
+
var _interop_require_default = require_interop_require_default();
|
|
3017
|
+
var _getimgprops = require_get_img_props();
|
|
3018
|
+
var _imagecomponent = require_image_component();
|
|
3019
|
+
var _imageloader = /* @__PURE__ */ _interop_require_default._(require_image_loader());
|
|
3020
|
+
function getImageProps(imgProps) {
|
|
3021
|
+
const { props } = (0, _getimgprops.getImgProps)(imgProps, {
|
|
3022
|
+
defaultLoader: _imageloader.default,
|
|
3023
|
+
// This is replaced by webpack define plugin
|
|
3024
|
+
imgConf: process.env.__NEXT_IMAGE_OPTS
|
|
3025
|
+
});
|
|
3026
|
+
for (const [key, value] of Object.entries(props)) {
|
|
3027
|
+
if (value === void 0) {
|
|
3028
|
+
delete props[key];
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3031
|
+
return {
|
|
3032
|
+
props
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
3035
|
+
var _default = _imagecomponent.Image;
|
|
3036
|
+
}
|
|
3037
|
+
});
|
|
3038
|
+
|
|
3039
|
+
// node_modules/next/image.js
|
|
3040
|
+
var require_image = __commonJS({
|
|
3041
|
+
"node_modules/next/image.js"(exports2, module2) {
|
|
3042
|
+
module2.exports = require_image_external();
|
|
3043
|
+
}
|
|
3044
|
+
});
|
|
3045
|
+
|
|
3046
|
+
// src/components/icons-and-geometry/index.ts
|
|
3047
|
+
var icons_and_geometry_exports = {};
|
|
3048
|
+
__export(icons_and_geometry_exports, {
|
|
3049
|
+
AnimatedRing: () => AnimatedRing,
|
|
3050
|
+
Avatar: () => Avatar2,
|
|
3051
|
+
AvatarGroup: () => AvatarGroup,
|
|
3052
|
+
AvatarUtil: () => AvatarUtil,
|
|
3053
|
+
Circle: () => Circle,
|
|
3054
|
+
HelpwaveLogo: () => HelpwaveLogo,
|
|
3055
|
+
RadialRings: () => RadialRings,
|
|
3056
|
+
Ring: () => Ring,
|
|
3057
|
+
RingWave: () => RingWave,
|
|
3058
|
+
TagIcon: () => TagIcon
|
|
3059
|
+
});
|
|
3060
|
+
module.exports = __toCommonJS(icons_and_geometry_exports);
|
|
3061
|
+
|
|
3062
|
+
// src/components/icons-and-geometry/Avatar.tsx
|
|
3063
|
+
var import_clsx = __toESM(require("clsx"));
|
|
3064
|
+
var import_react = require("react");
|
|
3065
|
+
var import_lucide_react = require("lucide-react");
|
|
3066
|
+
|
|
3067
|
+
// node_modules/@radix-ui/react-avatar/dist/index.mjs
|
|
3068
|
+
var React7 = __toESM(require("react"), 1);
|
|
3069
|
+
|
|
3070
|
+
// node_modules/@radix-ui/react-context/dist/index.mjs
|
|
3071
|
+
var React = __toESM(require("react"), 1);
|
|
3072
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
3073
|
+
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
3074
|
+
let defaultContexts = [];
|
|
3075
|
+
function createContext3(rootComponentName, defaultContext) {
|
|
3076
|
+
const BaseContext = React.createContext(defaultContext);
|
|
3077
|
+
const index = defaultContexts.length;
|
|
3078
|
+
defaultContexts = [...defaultContexts, defaultContext];
|
|
3079
|
+
const Provider = (props) => {
|
|
3080
|
+
const { scope, children, ...context } = props;
|
|
3081
|
+
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
3082
|
+
const value = React.useMemo(() => context, Object.values(context));
|
|
3083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context.Provider, { value, children });
|
|
3084
|
+
};
|
|
3085
|
+
Provider.displayName = rootComponentName + "Provider";
|
|
3086
|
+
function useContext2(consumerName, scope) {
|
|
3087
|
+
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
3088
|
+
const context = React.useContext(Context);
|
|
3089
|
+
if (context) return context;
|
|
3090
|
+
if (defaultContext !== void 0) return defaultContext;
|
|
3091
|
+
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
3092
|
+
}
|
|
3093
|
+
return [Provider, useContext2];
|
|
3094
|
+
}
|
|
3095
|
+
const createScope = () => {
|
|
3096
|
+
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
3097
|
+
return React.createContext(defaultContext);
|
|
3098
|
+
});
|
|
3099
|
+
return function useScope(scope) {
|
|
3100
|
+
const contexts = scope?.[scopeName] || scopeContexts;
|
|
3101
|
+
return React.useMemo(
|
|
3102
|
+
() => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
|
|
3103
|
+
[scope, contexts]
|
|
3104
|
+
);
|
|
3105
|
+
};
|
|
3106
|
+
};
|
|
3107
|
+
createScope.scopeName = scopeName;
|
|
3108
|
+
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
3109
|
+
}
|
|
3110
|
+
function composeContextScopes(...scopes) {
|
|
3111
|
+
const baseScope = scopes[0];
|
|
3112
|
+
if (scopes.length === 1) return baseScope;
|
|
3113
|
+
const createScope = () => {
|
|
3114
|
+
const scopeHooks = scopes.map((createScope2) => ({
|
|
3115
|
+
useScope: createScope2(),
|
|
3116
|
+
scopeName: createScope2.scopeName
|
|
3117
|
+
}));
|
|
3118
|
+
return function useComposedScopes(overrideScopes) {
|
|
3119
|
+
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
3120
|
+
const scopeProps = useScope(overrideScopes);
|
|
3121
|
+
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
3122
|
+
return { ...nextScopes2, ...currentScope };
|
|
3123
|
+
}, {});
|
|
3124
|
+
return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
createScope.scopeName = baseScope.scopeName;
|
|
3128
|
+
return createScope;
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
// node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
3132
|
+
var React2 = __toESM(require("react"), 1);
|
|
3133
|
+
function useCallbackRef(callback) {
|
|
3134
|
+
const callbackRef = React2.useRef(callback);
|
|
3135
|
+
React2.useEffect(() => {
|
|
3136
|
+
callbackRef.current = callback;
|
|
3137
|
+
});
|
|
3138
|
+
return React2.useMemo(() => (...args) => callbackRef.current?.(...args), []);
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
// node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
3142
|
+
var React3 = __toESM(require("react"), 1);
|
|
3143
|
+
var useLayoutEffect2 = globalThis?.document ? React3.useLayoutEffect : () => {
|
|
3144
|
+
};
|
|
3145
|
+
|
|
3146
|
+
// node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
3147
|
+
var React6 = __toESM(require("react"), 1);
|
|
3148
|
+
var ReactDOM = __toESM(require("react-dom"), 1);
|
|
3149
|
+
|
|
3150
|
+
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3151
|
+
var React5 = __toESM(require("react"), 1);
|
|
3152
|
+
|
|
3153
|
+
// node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3154
|
+
var React4 = __toESM(require("react"), 1);
|
|
3155
|
+
function setRef(ref, value) {
|
|
3156
|
+
if (typeof ref === "function") {
|
|
3157
|
+
return ref(value);
|
|
3158
|
+
} else if (ref !== null && ref !== void 0) {
|
|
3159
|
+
ref.current = value;
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
function composeRefs(...refs) {
|
|
3163
|
+
return (node) => {
|
|
3164
|
+
let hasCleanup = false;
|
|
3165
|
+
const cleanups = refs.map((ref) => {
|
|
3166
|
+
const cleanup = setRef(ref, node);
|
|
3167
|
+
if (!hasCleanup && typeof cleanup == "function") {
|
|
3168
|
+
hasCleanup = true;
|
|
3169
|
+
}
|
|
3170
|
+
return cleanup;
|
|
3171
|
+
});
|
|
3172
|
+
if (hasCleanup) {
|
|
3173
|
+
return () => {
|
|
3174
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
3175
|
+
const cleanup = cleanups[i];
|
|
3176
|
+
if (typeof cleanup == "function") {
|
|
3177
|
+
cleanup();
|
|
3178
|
+
} else {
|
|
3179
|
+
setRef(refs[i], null);
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
};
|
|
3183
|
+
}
|
|
3184
|
+
};
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3188
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
3189
|
+
// @__NO_SIDE_EFFECTS__
|
|
3190
|
+
function createSlot(ownerName) {
|
|
3191
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
3192
|
+
const Slot2 = React5.forwardRef((props, forwardedRef) => {
|
|
3193
|
+
const { children, ...slotProps } = props;
|
|
3194
|
+
const childrenArray = React5.Children.toArray(children);
|
|
3195
|
+
const slottable = childrenArray.find(isSlottable);
|
|
3196
|
+
if (slottable) {
|
|
3197
|
+
const newElement = slottable.props.children;
|
|
3198
|
+
const newChildren = childrenArray.map((child) => {
|
|
3199
|
+
if (child === slottable) {
|
|
3200
|
+
if (React5.Children.count(newElement) > 1) return React5.Children.only(null);
|
|
3201
|
+
return React5.isValidElement(newElement) ? newElement.props.children : null;
|
|
3202
|
+
} else {
|
|
3203
|
+
return child;
|
|
3204
|
+
}
|
|
3205
|
+
});
|
|
3206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React5.isValidElement(newElement) ? React5.cloneElement(newElement, void 0, newChildren) : null });
|
|
3207
|
+
}
|
|
3208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
3209
|
+
});
|
|
3210
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
3211
|
+
return Slot2;
|
|
3212
|
+
}
|
|
3213
|
+
// @__NO_SIDE_EFFECTS__
|
|
3214
|
+
function createSlotClone(ownerName) {
|
|
3215
|
+
const SlotClone = React5.forwardRef((props, forwardedRef) => {
|
|
3216
|
+
const { children, ...slotProps } = props;
|
|
3217
|
+
if (React5.isValidElement(children)) {
|
|
3218
|
+
const childrenRef = getElementRef(children);
|
|
3219
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
3220
|
+
if (children.type !== React5.Fragment) {
|
|
3221
|
+
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
3222
|
+
}
|
|
3223
|
+
return React5.cloneElement(children, props2);
|
|
3224
|
+
}
|
|
3225
|
+
return React5.Children.count(children) > 1 ? React5.Children.only(null) : null;
|
|
3226
|
+
});
|
|
3227
|
+
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
3228
|
+
return SlotClone;
|
|
3229
|
+
}
|
|
3230
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
3231
|
+
function isSlottable(child) {
|
|
3232
|
+
return React5.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
3233
|
+
}
|
|
3234
|
+
function mergeProps(slotProps, childProps) {
|
|
3235
|
+
const overrideProps = { ...childProps };
|
|
3236
|
+
for (const propName in childProps) {
|
|
3237
|
+
const slotPropValue = slotProps[propName];
|
|
3238
|
+
const childPropValue = childProps[propName];
|
|
3239
|
+
const isHandler = /^on[A-Z]/.test(propName);
|
|
3240
|
+
if (isHandler) {
|
|
3241
|
+
if (slotPropValue && childPropValue) {
|
|
3242
|
+
overrideProps[propName] = (...args) => {
|
|
3243
|
+
const result = childPropValue(...args);
|
|
3244
|
+
slotPropValue(...args);
|
|
3245
|
+
return result;
|
|
3246
|
+
};
|
|
3247
|
+
} else if (slotPropValue) {
|
|
3248
|
+
overrideProps[propName] = slotPropValue;
|
|
3249
|
+
}
|
|
3250
|
+
} else if (propName === "style") {
|
|
3251
|
+
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
3252
|
+
} else if (propName === "className") {
|
|
3253
|
+
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
return { ...slotProps, ...overrideProps };
|
|
3257
|
+
}
|
|
3258
|
+
function getElementRef(element) {
|
|
3259
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
3260
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
3261
|
+
if (mayWarn) {
|
|
3262
|
+
return element.ref;
|
|
3263
|
+
}
|
|
3264
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
3265
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
3266
|
+
if (mayWarn) {
|
|
3267
|
+
return element.props.ref;
|
|
3268
|
+
}
|
|
3269
|
+
return element.props.ref || element.ref;
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
// node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
3273
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
3274
|
+
var NODES = [
|
|
3275
|
+
"a",
|
|
3276
|
+
"button",
|
|
3277
|
+
"div",
|
|
3278
|
+
"form",
|
|
3279
|
+
"h2",
|
|
3280
|
+
"h3",
|
|
3281
|
+
"img",
|
|
3282
|
+
"input",
|
|
3283
|
+
"label",
|
|
3284
|
+
"li",
|
|
3285
|
+
"nav",
|
|
3286
|
+
"ol",
|
|
3287
|
+
"p",
|
|
3288
|
+
"select",
|
|
3289
|
+
"span",
|
|
3290
|
+
"svg",
|
|
3291
|
+
"ul"
|
|
3292
|
+
];
|
|
3293
|
+
var Primitive = NODES.reduce((primitive, node) => {
|
|
3294
|
+
const Slot = createSlot(`Primitive.${node}`);
|
|
3295
|
+
const Node = React6.forwardRef((props, forwardedRef) => {
|
|
3296
|
+
const { asChild, ...primitiveProps } = props;
|
|
3297
|
+
const Comp = asChild ? Slot : node;
|
|
3298
|
+
if (typeof window !== "undefined") {
|
|
3299
|
+
window[Symbol.for("radix-ui")] = true;
|
|
3300
|
+
}
|
|
3301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
3302
|
+
});
|
|
3303
|
+
Node.displayName = `Primitive.${node}`;
|
|
3304
|
+
return { ...primitive, [node]: Node };
|
|
3305
|
+
}, {});
|
|
3306
|
+
|
|
3307
|
+
// node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs
|
|
3308
|
+
var import_shim = __toESM(require_shim(), 1);
|
|
3309
|
+
function useIsHydrated() {
|
|
3310
|
+
return (0, import_shim.useSyncExternalStore)(
|
|
3311
|
+
subscribe,
|
|
3312
|
+
() => true,
|
|
3313
|
+
() => false
|
|
3314
|
+
);
|
|
3315
|
+
}
|
|
3316
|
+
function subscribe() {
|
|
3317
|
+
return () => {
|
|
3318
|
+
};
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
// node_modules/@radix-ui/react-avatar/dist/index.mjs
|
|
3322
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
3323
|
+
var AVATAR_NAME = "Avatar";
|
|
3324
|
+
var [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);
|
|
3325
|
+
var [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);
|
|
3326
|
+
var Avatar = React7.forwardRef(
|
|
3327
|
+
(props, forwardedRef) => {
|
|
3328
|
+
const { __scopeAvatar, ...avatarProps } = props;
|
|
3329
|
+
const [imageLoadingStatus, setImageLoadingStatus] = React7.useState("idle");
|
|
3330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
3331
|
+
AvatarProvider,
|
|
3332
|
+
{
|
|
3333
|
+
scope: __scopeAvatar,
|
|
3334
|
+
imageLoadingStatus,
|
|
3335
|
+
onImageLoadingStatusChange: setImageLoadingStatus,
|
|
3336
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Primitive.span, { ...avatarProps, ref: forwardedRef })
|
|
3337
|
+
}
|
|
3338
|
+
);
|
|
3339
|
+
}
|
|
3340
|
+
);
|
|
3341
|
+
Avatar.displayName = AVATAR_NAME;
|
|
3342
|
+
var IMAGE_NAME = "AvatarImage";
|
|
3343
|
+
var AvatarImage = React7.forwardRef(
|
|
3344
|
+
(props, forwardedRef) => {
|
|
3345
|
+
const { __scopeAvatar, src, onLoadingStatusChange = () => {
|
|
3346
|
+
}, ...imageProps } = props;
|
|
3347
|
+
const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);
|
|
3348
|
+
const imageLoadingStatus = useImageLoadingStatus(src, imageProps);
|
|
3349
|
+
const handleLoadingStatusChange = useCallbackRef((status) => {
|
|
3350
|
+
onLoadingStatusChange(status);
|
|
3351
|
+
context.onImageLoadingStatusChange(status);
|
|
3352
|
+
});
|
|
3353
|
+
useLayoutEffect2(() => {
|
|
3354
|
+
if (imageLoadingStatus !== "idle") {
|
|
3355
|
+
handleLoadingStatusChange(imageLoadingStatus);
|
|
3356
|
+
}
|
|
3357
|
+
}, [imageLoadingStatus, handleLoadingStatusChange]);
|
|
3358
|
+
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;
|
|
3359
|
+
}
|
|
3360
|
+
);
|
|
3361
|
+
AvatarImage.displayName = IMAGE_NAME;
|
|
3362
|
+
var FALLBACK_NAME = "AvatarFallback";
|
|
3363
|
+
var AvatarFallback = React7.forwardRef(
|
|
3364
|
+
(props, forwardedRef) => {
|
|
3365
|
+
const { __scopeAvatar, delayMs, ...fallbackProps } = props;
|
|
3366
|
+
const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);
|
|
3367
|
+
const [canRender, setCanRender] = React7.useState(delayMs === void 0);
|
|
3368
|
+
React7.useEffect(() => {
|
|
3369
|
+
if (delayMs !== void 0) {
|
|
3370
|
+
const timerId = window.setTimeout(() => setCanRender(true), delayMs);
|
|
3371
|
+
return () => window.clearTimeout(timerId);
|
|
3372
|
+
}
|
|
3373
|
+
}, [delayMs]);
|
|
3374
|
+
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;
|
|
3375
|
+
}
|
|
3376
|
+
);
|
|
3377
|
+
AvatarFallback.displayName = FALLBACK_NAME;
|
|
3378
|
+
function resolveLoadingStatus(image, src) {
|
|
3379
|
+
if (!image) {
|
|
3380
|
+
return "idle";
|
|
3381
|
+
}
|
|
3382
|
+
if (!src) {
|
|
3383
|
+
return "error";
|
|
3384
|
+
}
|
|
3385
|
+
if (image.src !== src) {
|
|
3386
|
+
image.src = src;
|
|
3387
|
+
}
|
|
3388
|
+
return image.complete && image.naturalWidth > 0 ? "loaded" : "loading";
|
|
3389
|
+
}
|
|
3390
|
+
function useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {
|
|
3391
|
+
const isHydrated = useIsHydrated();
|
|
3392
|
+
const imageRef = React7.useRef(null);
|
|
3393
|
+
const image = (() => {
|
|
3394
|
+
if (!isHydrated) return null;
|
|
3395
|
+
if (!imageRef.current) {
|
|
3396
|
+
imageRef.current = new window.Image();
|
|
3397
|
+
}
|
|
3398
|
+
return imageRef.current;
|
|
3399
|
+
})();
|
|
3400
|
+
const [loadingStatus, setLoadingStatus] = React7.useState(
|
|
3401
|
+
() => resolveLoadingStatus(image, src)
|
|
3402
|
+
);
|
|
3403
|
+
useLayoutEffect2(() => {
|
|
3404
|
+
setLoadingStatus(resolveLoadingStatus(image, src));
|
|
3405
|
+
}, [image, src]);
|
|
3406
|
+
useLayoutEffect2(() => {
|
|
3407
|
+
const updateStatus = (status) => () => {
|
|
3408
|
+
setLoadingStatus(status);
|
|
3409
|
+
};
|
|
3410
|
+
if (!image) return;
|
|
3411
|
+
const handleLoad = updateStatus("loaded");
|
|
3412
|
+
const handleError = updateStatus("error");
|
|
3413
|
+
image.addEventListener("load", handleLoad);
|
|
3414
|
+
image.addEventListener("error", handleError);
|
|
3415
|
+
if (referrerPolicy) {
|
|
3416
|
+
image.referrerPolicy = referrerPolicy;
|
|
3417
|
+
}
|
|
3418
|
+
if (typeof crossOrigin === "string") {
|
|
3419
|
+
image.crossOrigin = crossOrigin;
|
|
3420
|
+
}
|
|
3421
|
+
return () => {
|
|
3422
|
+
image.removeEventListener("load", handleLoad);
|
|
3423
|
+
image.removeEventListener("error", handleError);
|
|
3424
|
+
};
|
|
3425
|
+
}, [image, crossOrigin, referrerPolicy]);
|
|
3426
|
+
return loadingStatus;
|
|
3427
|
+
}
|
|
3428
|
+
var Root = Avatar;
|
|
3429
|
+
var Image = AvatarImage;
|
|
3430
|
+
var Fallback = AvatarFallback;
|
|
3431
|
+
|
|
3432
|
+
// src/components/icons-and-geometry/Avatar.tsx
|
|
3433
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
3434
|
+
var avtarSizeList = ["sm", "md", "lg", "xl"];
|
|
3435
|
+
var avatarSizeMapping = {
|
|
3436
|
+
sm: 18,
|
|
3437
|
+
md: 24,
|
|
3438
|
+
lg: 32,
|
|
3439
|
+
xl: 48
|
|
3440
|
+
};
|
|
3441
|
+
var textClassNameMapping = {
|
|
3442
|
+
sm: "text-xs font-semibold",
|
|
3443
|
+
md: "text-sm font-semibold",
|
|
3444
|
+
lg: "text-lg font-semibold",
|
|
3445
|
+
xl: "text-2xl font-bold"
|
|
3446
|
+
};
|
|
3447
|
+
var AvatarUtil = {
|
|
3448
|
+
avatarSizeMapping,
|
|
3449
|
+
sizes: avtarSizeList
|
|
3450
|
+
};
|
|
3451
|
+
var Avatar2 = ({ image, name, size = "md", fullyRounded, className = "" }) => {
|
|
3452
|
+
const pixels = avatarSizeMapping[size];
|
|
3453
|
+
const sizeStyle = {
|
|
3454
|
+
minWidth: pixels,
|
|
3455
|
+
maxWidth: pixels,
|
|
3456
|
+
minHeight: pixels,
|
|
3457
|
+
maxHeight: pixels
|
|
3458
|
+
};
|
|
3459
|
+
const textClassName = textClassNameMapping[size];
|
|
3460
|
+
const displayName = (0, import_react.useMemo)(() => {
|
|
3461
|
+
const maxLetters = size === "sm" ? 1 : 2;
|
|
3462
|
+
return (name ?? "").split(" ").filter((_, index) => index < maxLetters).map((value) => value[0]).join("").toUpperCase();
|
|
3463
|
+
}, [name, size]);
|
|
3464
|
+
const rounding = {
|
|
3465
|
+
"rounded-full": fullyRounded,
|
|
3466
|
+
"rounded-lg": !fullyRounded && !(size === "sm" || size === "md"),
|
|
3467
|
+
"rounded-sm": !fullyRounded && (size === "sm" || size === "md")
|
|
3468
|
+
};
|
|
3469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
3470
|
+
Root,
|
|
3471
|
+
{
|
|
3472
|
+
className: (0, import_clsx.default)(
|
|
3473
|
+
`flex-row-0 items-center justify-center bg-primary text-on-primary`,
|
|
3474
|
+
rounding,
|
|
3475
|
+
className
|
|
3476
|
+
),
|
|
3477
|
+
style: sizeStyle,
|
|
3478
|
+
children: [
|
|
3479
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
3480
|
+
Image,
|
|
3481
|
+
{
|
|
3482
|
+
src: image?.avatarUrl,
|
|
3483
|
+
alt: image?.alt,
|
|
3484
|
+
className: (0, import_clsx.default)(rounding)
|
|
3485
|
+
}
|
|
3486
|
+
),
|
|
3487
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Fallback, { asChild: true, children: name ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: textClassName, children: displayName }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react.UserIcon, { size: Math.round(pixels * 3 / 4) }) })
|
|
3488
|
+
]
|
|
3489
|
+
}
|
|
3490
|
+
);
|
|
3491
|
+
};
|
|
3492
|
+
var AvatarGroup = ({
|
|
3493
|
+
avatars,
|
|
3494
|
+
maxShownProfiles = 5,
|
|
3495
|
+
showTotalNumber = true,
|
|
3496
|
+
size = "md",
|
|
3497
|
+
fullyRounded
|
|
3498
|
+
}) => {
|
|
3499
|
+
const displayedProfiles = avatars.length < maxShownProfiles ? avatars : avatars.slice(0, maxShownProfiles);
|
|
3500
|
+
const diameter = avatarSizeMapping[size];
|
|
3501
|
+
const stackingOverlap = 0.5;
|
|
3502
|
+
const notDisplayedProfiles = avatars.length - maxShownProfiles;
|
|
3503
|
+
const avatarGroupWidth = diameter * (stackingOverlap * (displayedProfiles.length - 1) + 1);
|
|
3504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-row-2 relative", style: { height: diameter + "px" }, children: [
|
|
3505
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { width: avatarGroupWidth + "px" }, children: displayedProfiles.map((avatar, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
3506
|
+
"div",
|
|
3507
|
+
{
|
|
3508
|
+
className: "absolute",
|
|
3509
|
+
style: { left: index * diameter * stackingOverlap + "px", zIndex: maxShownProfiles - index },
|
|
3510
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
3511
|
+
Avatar2,
|
|
3512
|
+
{
|
|
3513
|
+
...avatar,
|
|
3514
|
+
size,
|
|
3515
|
+
fullyRounded,
|
|
3516
|
+
className: (0, import_clsx.default)("shadow-side shadow-r-4 shadow-hard", avatar.className)
|
|
3517
|
+
}
|
|
3518
|
+
)
|
|
3519
|
+
},
|
|
3520
|
+
index
|
|
3521
|
+
)) }),
|
|
3522
|
+
showTotalNumber && notDisplayedProfiles > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
3523
|
+
"div",
|
|
3524
|
+
{
|
|
3525
|
+
className: (0, import_clsx.default)(textClassNameMapping[size], "flex-row-2 truncate items-center"),
|
|
3526
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { children: [
|
|
3527
|
+
"+ ",
|
|
3528
|
+
notDisplayedProfiles
|
|
3529
|
+
] })
|
|
3530
|
+
}
|
|
3531
|
+
)
|
|
3532
|
+
] });
|
|
3533
|
+
};
|
|
3534
|
+
|
|
3535
|
+
// src/components/icons-and-geometry/Circle.tsx
|
|
3536
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
3537
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
3538
|
+
var Circle = ({
|
|
3539
|
+
radius = 20,
|
|
3540
|
+
className = "bg-primary",
|
|
3541
|
+
style,
|
|
3542
|
+
...restProps
|
|
3543
|
+
}) => {
|
|
3544
|
+
const size = radius * 2;
|
|
3545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
3546
|
+
"div",
|
|
3547
|
+
{
|
|
3548
|
+
className: (0, import_clsx2.default)(`rounded-full`, className),
|
|
3549
|
+
style: {
|
|
3550
|
+
width: `${size}px`,
|
|
3551
|
+
height: `${size}px`,
|
|
3552
|
+
...style
|
|
3553
|
+
},
|
|
3554
|
+
...restProps
|
|
3555
|
+
}
|
|
3556
|
+
);
|
|
3557
|
+
};
|
|
3558
|
+
|
|
3559
|
+
// src/components/icons-and-geometry/HelpwaveLogo.tsx
|
|
3560
|
+
var import_clsx3 = require("clsx");
|
|
3561
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
3562
|
+
var HelpwaveLogo = ({
|
|
3563
|
+
color = "currentColor",
|
|
3564
|
+
size,
|
|
3565
|
+
animate = "none",
|
|
3566
|
+
...props
|
|
3567
|
+
}) => {
|
|
3568
|
+
const isLoadingAnimation = animate === "loading";
|
|
3569
|
+
let svgAnimationKey = "";
|
|
3570
|
+
if (animate === "pulse") {
|
|
3571
|
+
svgAnimationKey = "animate-pulse";
|
|
3572
|
+
} else if (animate === "bounce") {
|
|
3573
|
+
svgAnimationKey = "animate-bounce";
|
|
3574
|
+
}
|
|
3575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
3576
|
+
"svg",
|
|
3577
|
+
{
|
|
3578
|
+
...props,
|
|
3579
|
+
viewBox: "0 0 1024 1024",
|
|
3580
|
+
fill: "none",
|
|
3581
|
+
strokeLinecap: "round",
|
|
3582
|
+
strokeWidth: 65,
|
|
3583
|
+
className: (0, import_clsx3.clsx)({
|
|
3584
|
+
"max-w-16 max-h-16": size === "lg",
|
|
3585
|
+
"max-w-12 max-h-12": size === "md",
|
|
3586
|
+
"max-w-8 max-h-8": size === "sm"
|
|
3587
|
+
}, props.className),
|
|
3588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", { className: (0, import_clsx3.clsx)(svgAnimationKey), children: [
|
|
3589
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
3590
|
+
"path",
|
|
3591
|
+
{
|
|
3592
|
+
className: (0, import_clsx3.clsx)({ "animate-wave-big-left-up": isLoadingAnimation }),
|
|
3593
|
+
d: "M146 644.214C146 498.088 253.381 379.629 385.843 379.629",
|
|
3594
|
+
stroke: color,
|
|
3595
|
+
strokeDasharray: "1000"
|
|
3596
|
+
}
|
|
3597
|
+
),
|
|
3598
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
3599
|
+
"path",
|
|
3600
|
+
{
|
|
3601
|
+
className: (0, import_clsx3.clsx)({ "animate-wave-big-right-down": isLoadingAnimation }),
|
|
3602
|
+
d: "M625.686 645.272C493.224 645.272 385.843 526.813 385.843 380.687",
|
|
3603
|
+
stroke: color,
|
|
3604
|
+
strokeDasharray: "1000"
|
|
3605
|
+
}
|
|
3606
|
+
),
|
|
3607
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
3608
|
+
"path",
|
|
3609
|
+
{
|
|
3610
|
+
className: (0, import_clsx3.clsx)({ "animate-wave-small-left-up": isLoadingAnimation }),
|
|
3611
|
+
d: "M533.585 613.522C533.585 508.895 610.47 424.079 705.312 424.079",
|
|
3612
|
+
stroke: color,
|
|
3613
|
+
strokeDasharray: "1000"
|
|
3614
|
+
}
|
|
3615
|
+
),
|
|
3616
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
3617
|
+
"path",
|
|
3618
|
+
{
|
|
3619
|
+
className: (0, import_clsx3.clsx)({ "animate-wave-small-right-down": isLoadingAnimation }),
|
|
3620
|
+
d: "M878 615.639C782.628 615.639 705.313 530.822 705.313 426.196",
|
|
3621
|
+
stroke: color,
|
|
3622
|
+
strokeDasharray: "1000"
|
|
3623
|
+
}
|
|
3624
|
+
)
|
|
3625
|
+
] })
|
|
3626
|
+
}
|
|
3627
|
+
);
|
|
3628
|
+
};
|
|
3629
|
+
|
|
3630
|
+
// src/components/icons-and-geometry/Ring.tsx
|
|
3631
|
+
var import_react2 = require("react");
|
|
3632
|
+
|
|
3633
|
+
// src/utils/noop.ts
|
|
3634
|
+
var noop = () => void 0;
|
|
3635
|
+
|
|
3636
|
+
// src/components/icons-and-geometry/Ring.tsx
|
|
3637
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
3638
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
3639
|
+
var Ring = ({
|
|
3640
|
+
innerSize = 20,
|
|
3641
|
+
width = 7,
|
|
3642
|
+
className = "outline-primary"
|
|
3643
|
+
}) => {
|
|
3644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3645
|
+
"div",
|
|
3646
|
+
{
|
|
3647
|
+
className: (0, import_clsx4.default)(`bg-transparent rounded-full outline`, className),
|
|
3648
|
+
style: {
|
|
3649
|
+
width: `${innerSize}px`,
|
|
3650
|
+
height: `${innerSize}px`,
|
|
3651
|
+
outlineWidth: `${width}px`
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
);
|
|
3655
|
+
};
|
|
3656
|
+
var AnimatedRing = ({
|
|
3657
|
+
innerSize,
|
|
3658
|
+
width,
|
|
3659
|
+
className,
|
|
3660
|
+
fillAnimationDuration = 3,
|
|
3661
|
+
repeating = false,
|
|
3662
|
+
onAnimationFinished = noop,
|
|
3663
|
+
style
|
|
3664
|
+
}) => {
|
|
3665
|
+
const [currentWidth, setCurrentWidth] = (0, import_react2.useState)(0);
|
|
3666
|
+
const milliseconds = 1e3 * fillAnimationDuration;
|
|
3667
|
+
const animate = (0, import_react2.useCallback)((timestamp, startTime) => {
|
|
3668
|
+
const progress = Math.min((timestamp - startTime) / milliseconds, 1);
|
|
3669
|
+
const newWidth = Math.min(width * progress, width);
|
|
3670
|
+
setCurrentWidth(newWidth);
|
|
3671
|
+
if (progress < 1) {
|
|
3672
|
+
requestAnimationFrame((newTimestamp) => animate(newTimestamp, startTime));
|
|
3673
|
+
} else {
|
|
3674
|
+
onAnimationFinished();
|
|
3675
|
+
if (repeating) {
|
|
3676
|
+
setCurrentWidth(0);
|
|
3677
|
+
requestAnimationFrame((newTimestamp) => animate(newTimestamp, newTimestamp));
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
}, [milliseconds, onAnimationFinished, repeating, width]);
|
|
3681
|
+
(0, import_react2.useEffect)(() => {
|
|
3682
|
+
if (currentWidth < width) {
|
|
3683
|
+
requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
|
|
3684
|
+
}
|
|
3685
|
+
}, []);
|
|
3686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3687
|
+
"div",
|
|
3688
|
+
{
|
|
3689
|
+
className: "flex-row-2 items-center justify-center",
|
|
3690
|
+
style: {
|
|
3691
|
+
width: `${innerSize + 2 * width}px`,
|
|
3692
|
+
height: `${innerSize + 2 * width}px`,
|
|
3693
|
+
...style
|
|
3694
|
+
},
|
|
3695
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3696
|
+
Ring,
|
|
3697
|
+
{
|
|
3698
|
+
innerSize,
|
|
3699
|
+
width: currentWidth,
|
|
3700
|
+
className
|
|
3701
|
+
}
|
|
3702
|
+
)
|
|
3703
|
+
}
|
|
3704
|
+
);
|
|
3705
|
+
};
|
|
3706
|
+
var RingWave = ({
|
|
3707
|
+
startInnerSize = 20,
|
|
3708
|
+
endInnerSize = 30,
|
|
3709
|
+
width,
|
|
3710
|
+
className,
|
|
3711
|
+
fillAnimationDuration = 3,
|
|
3712
|
+
repeating = false,
|
|
3713
|
+
onAnimationFinished = noop,
|
|
3714
|
+
style
|
|
3715
|
+
}) => {
|
|
3716
|
+
const [currentInnerSize, setCurrentInnerSize] = (0, import_react2.useState)(startInnerSize);
|
|
3717
|
+
const distance = endInnerSize - startInnerSize;
|
|
3718
|
+
const milliseconds = 1e3 * fillAnimationDuration;
|
|
3719
|
+
const animate = (0, import_react2.useCallback)((timestamp, startTime) => {
|
|
3720
|
+
const progress = Math.min((timestamp - startTime) / milliseconds, 1);
|
|
3721
|
+
const newInnerSize = Math.min(
|
|
3722
|
+
startInnerSize + distance * progress,
|
|
3723
|
+
endInnerSize
|
|
3724
|
+
);
|
|
3725
|
+
setCurrentInnerSize(newInnerSize);
|
|
3726
|
+
if (progress < 1) {
|
|
3727
|
+
requestAnimationFrame((newTimestamp) => animate(newTimestamp, startTime));
|
|
3728
|
+
} else {
|
|
3729
|
+
onAnimationFinished();
|
|
3730
|
+
if (repeating) {
|
|
3731
|
+
setCurrentInnerSize(startInnerSize);
|
|
3732
|
+
requestAnimationFrame((newTimestamp) => animate(newTimestamp, newTimestamp));
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
}, [distance, endInnerSize, milliseconds, onAnimationFinished, repeating, startInnerSize]);
|
|
3736
|
+
(0, import_react2.useEffect)(() => {
|
|
3737
|
+
if (currentInnerSize < endInnerSize) {
|
|
3738
|
+
requestAnimationFrame((timestamp) => animate(timestamp, timestamp));
|
|
3739
|
+
}
|
|
3740
|
+
}, []);
|
|
3741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3742
|
+
"div",
|
|
3743
|
+
{
|
|
3744
|
+
className: "flex-row-2 items-center justify-center",
|
|
3745
|
+
style: {
|
|
3746
|
+
width: `${endInnerSize + 2 * width}px`,
|
|
3747
|
+
height: `${endInnerSize + 2 * width}px`,
|
|
3748
|
+
...style
|
|
3749
|
+
},
|
|
3750
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3751
|
+
Ring,
|
|
3752
|
+
{
|
|
3753
|
+
innerSize: currentInnerSize,
|
|
3754
|
+
width,
|
|
3755
|
+
className
|
|
3756
|
+
}
|
|
3757
|
+
)
|
|
3758
|
+
}
|
|
3759
|
+
);
|
|
3760
|
+
};
|
|
3761
|
+
var RadialRings = ({
|
|
3762
|
+
circle1ClassName = "bg-primary/90 outline-primary/90",
|
|
3763
|
+
circle2ClassName = "bg-primary/60 outline-primary/60",
|
|
3764
|
+
circle3ClassName = "bg-primary/40 outline-primary/40",
|
|
3765
|
+
waveWidth = 10,
|
|
3766
|
+
waveBaseColor = "outline-white/20",
|
|
3767
|
+
sizeCircle1 = 100,
|
|
3768
|
+
sizeCircle2 = 200,
|
|
3769
|
+
sizeCircle3 = 300
|
|
3770
|
+
}) => {
|
|
3771
|
+
const [currentRing, setCurrentRing] = (0, import_react2.useState)(0);
|
|
3772
|
+
const size = sizeCircle3;
|
|
3773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
3774
|
+
"div",
|
|
3775
|
+
{
|
|
3776
|
+
className: "relative",
|
|
3777
|
+
style: {
|
|
3778
|
+
width: `${sizeCircle3}px`,
|
|
3779
|
+
height: `${sizeCircle3}px`
|
|
3780
|
+
},
|
|
3781
|
+
children: [
|
|
3782
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3783
|
+
Circle,
|
|
3784
|
+
{
|
|
3785
|
+
radius: sizeCircle1 / 2,
|
|
3786
|
+
className: (0, import_clsx4.default)(circle1ClassName, `absolute z-[10] -translate-y-1/2 -translate-x-1/2`),
|
|
3787
|
+
style: {
|
|
3788
|
+
left: `${size / 2}px`,
|
|
3789
|
+
top: `${size / 2}px`
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
),
|
|
3793
|
+
currentRing === 0 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3794
|
+
AnimatedRing,
|
|
3795
|
+
{
|
|
3796
|
+
innerSize: sizeCircle1,
|
|
3797
|
+
width: (sizeCircle2 - sizeCircle1) / 2,
|
|
3798
|
+
onAnimationFinished: () => currentRing === 0 ? setCurrentRing(1) : null,
|
|
3799
|
+
repeating: true,
|
|
3800
|
+
className: (0, import_clsx4.default)(
|
|
3801
|
+
circle2ClassName,
|
|
3802
|
+
{ "opacity-5": currentRing !== 0 }
|
|
3803
|
+
),
|
|
3804
|
+
style: {
|
|
3805
|
+
left: `${size / 2}px`,
|
|
3806
|
+
top: `${size / 2}px`,
|
|
3807
|
+
position: "absolute",
|
|
3808
|
+
translate: `-50% -50%`,
|
|
3809
|
+
zIndex: 9
|
|
3810
|
+
}
|
|
3811
|
+
}
|
|
3812
|
+
) : null,
|
|
3813
|
+
currentRing === 2 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3814
|
+
RingWave,
|
|
3815
|
+
{
|
|
3816
|
+
startInnerSize: sizeCircle1 - waveWidth,
|
|
3817
|
+
endInnerSize: sizeCircle2,
|
|
3818
|
+
width: waveWidth,
|
|
3819
|
+
repeating: true,
|
|
3820
|
+
className: (0, import_clsx4.default)(waveBaseColor, `opacity-5`),
|
|
3821
|
+
style: {
|
|
3822
|
+
left: `${size / 2}px`,
|
|
3823
|
+
top: `${size / 2}px`,
|
|
3824
|
+
position: "absolute",
|
|
3825
|
+
translate: `-50% -50%`,
|
|
3826
|
+
zIndex: 9
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3829
|
+
) : null,
|
|
3830
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3831
|
+
Circle,
|
|
3832
|
+
{
|
|
3833
|
+
radius: sizeCircle2 / 2,
|
|
3834
|
+
className: (0, import_clsx4.default)(
|
|
3835
|
+
circle2ClassName,
|
|
3836
|
+
{ "opacity-20": currentRing < 1 },
|
|
3837
|
+
`absolute z-[8] -translate-y-1/2 -translate-x-1/2`
|
|
3838
|
+
),
|
|
3839
|
+
style: {
|
|
3840
|
+
left: `${size / 2}px`,
|
|
3841
|
+
top: `${size / 2}px`
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3844
|
+
),
|
|
3845
|
+
currentRing === 1 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3846
|
+
AnimatedRing,
|
|
3847
|
+
{
|
|
3848
|
+
innerSize: sizeCircle2 - 1,
|
|
3849
|
+
width: (sizeCircle3 - sizeCircle2) / 2,
|
|
3850
|
+
onAnimationFinished: () => currentRing === 1 ? setCurrentRing(2) : null,
|
|
3851
|
+
repeating: true,
|
|
3852
|
+
className: (0, import_clsx4.default)(circle3ClassName),
|
|
3853
|
+
style: {
|
|
3854
|
+
left: `${size / 2}px`,
|
|
3855
|
+
top: `${size / 2}px`,
|
|
3856
|
+
position: "absolute",
|
|
3857
|
+
translate: `-50% -50%`,
|
|
3858
|
+
zIndex: 7
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
) : null,
|
|
3862
|
+
currentRing === 2 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3863
|
+
RingWave,
|
|
3864
|
+
{
|
|
3865
|
+
startInnerSize: sizeCircle2,
|
|
3866
|
+
endInnerSize: sizeCircle3 - waveWidth,
|
|
3867
|
+
width: waveWidth,
|
|
3868
|
+
repeating: true,
|
|
3869
|
+
className: (0, import_clsx4.default)(waveBaseColor, `opacity-5`),
|
|
3870
|
+
style: {
|
|
3871
|
+
left: `${size / 2}px`,
|
|
3872
|
+
top: `${size / 2}px`,
|
|
3873
|
+
position: "absolute",
|
|
3874
|
+
translate: `-50% -50%`,
|
|
3875
|
+
zIndex: 7
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
) : null,
|
|
3879
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
3880
|
+
Circle,
|
|
3881
|
+
{
|
|
3882
|
+
radius: sizeCircle3 / 2,
|
|
3883
|
+
className: (0, import_clsx4.default)(
|
|
3884
|
+
circle3ClassName,
|
|
3885
|
+
{ "opacity-20": currentRing < 2 },
|
|
3886
|
+
`absolute z-[6] -translate-y-1/2 -translate-x-1/2`
|
|
3887
|
+
),
|
|
3888
|
+
style: {
|
|
3889
|
+
left: `${size / 2}px`,
|
|
3890
|
+
top: `${size / 2}px`
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
)
|
|
3894
|
+
]
|
|
3895
|
+
}
|
|
3896
|
+
);
|
|
3897
|
+
};
|
|
3898
|
+
|
|
3899
|
+
// src/components/icons-and-geometry/Tag.tsx
|
|
3900
|
+
var import_image = __toESM(require_image());
|
|
3901
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
3902
|
+
var TagIcon = ({
|
|
3903
|
+
className,
|
|
3904
|
+
size = 16
|
|
3905
|
+
}) => {
|
|
3906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
3907
|
+
import_image.default,
|
|
3908
|
+
{
|
|
3909
|
+
style: { width: `${size}px`, height: `${size}px`, minWidth: `${size}px`, minHeight: `${size}px` },
|
|
3910
|
+
width: size,
|
|
3911
|
+
height: size,
|
|
3912
|
+
alt: "",
|
|
3913
|
+
src: "https://cdn.helpwave.de/icons/label.png",
|
|
3914
|
+
className
|
|
3915
|
+
}
|
|
3916
|
+
);
|
|
3917
|
+
};
|
|
3918
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3919
|
+
0 && (module.exports = {
|
|
3920
|
+
AnimatedRing,
|
|
3921
|
+
Avatar,
|
|
3922
|
+
AvatarGroup,
|
|
3923
|
+
AvatarUtil,
|
|
3924
|
+
Circle,
|
|
3925
|
+
HelpwaveLogo,
|
|
3926
|
+
RadialRings,
|
|
3927
|
+
Ring,
|
|
3928
|
+
RingWave,
|
|
3929
|
+
TagIcon
|
|
3930
|
+
});
|
|
3931
|
+
/*! Bundled license information:
|
|
3932
|
+
|
|
3933
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
3934
|
+
(**
|
|
3935
|
+
* @license React
|
|
3936
|
+
* use-sync-external-store-shim.production.js
|
|
3937
|
+
*
|
|
3938
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3939
|
+
*
|
|
3940
|
+
* This source code is licensed under the MIT license found in the
|
|
3941
|
+
* LICENSE file in the root directory of this source tree.
|
|
3942
|
+
*)
|
|
3943
|
+
|
|
3944
|
+
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
3945
|
+
(**
|
|
3946
|
+
* @license React
|
|
3947
|
+
* use-sync-external-store-shim.development.js
|
|
3948
|
+
*
|
|
3949
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3950
|
+
*
|
|
3951
|
+
* This source code is licensed under the MIT license found in the
|
|
3952
|
+
* LICENSE file in the root directory of this source tree.
|
|
3953
|
+
*)
|
|
3954
|
+
*/
|
|
3955
|
+
//# sourceMappingURL=index.js.map
|