@helpwave/hightide 0.1.22 → 0.1.23

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.
Files changed (102) hide show
  1. package/README.md +5 -0
  2. package/dist/components/branding/HelpwaveBadge.js +8 -5
  3. package/dist/components/branding/HelpwaveBadge.js.map +1 -1
  4. package/dist/components/branding/HelpwaveBadge.mjs +8 -5
  5. package/dist/components/branding/HelpwaveBadge.mjs.map +1 -1
  6. package/dist/components/icons-and-geometry/Avatar.js +2912 -33
  7. package/dist/components/icons-and-geometry/Avatar.js.map +1 -1
  8. package/dist/components/icons-and-geometry/Avatar.mjs +2941 -33
  9. package/dist/components/icons-and-geometry/Avatar.mjs.map +1 -1
  10. package/dist/components/icons-and-geometry/Tag.js +2912 -1
  11. package/dist/components/icons-and-geometry/Tag.js.map +1 -1
  12. package/dist/components/icons-and-geometry/Tag.mjs +2931 -1
  13. package/dist/components/icons-and-geometry/Tag.mjs.map +1 -1
  14. package/dist/components/layout-and-navigation/BreadCrumb.d.mts +2 -1
  15. package/dist/components/layout-and-navigation/BreadCrumb.d.ts +2 -1
  16. package/dist/components/layout-and-navigation/BreadCrumb.js +15 -11
  17. package/dist/components/layout-and-navigation/BreadCrumb.js.map +1 -1
  18. package/dist/components/layout-and-navigation/BreadCrumb.mjs +15 -11
  19. package/dist/components/layout-and-navigation/BreadCrumb.mjs.map +1 -1
  20. package/dist/components/layout-and-navigation/Chip.js +2 -2
  21. package/dist/components/layout-and-navigation/Chip.js.map +1 -1
  22. package/dist/components/layout-and-navigation/Chip.mjs +2 -2
  23. package/dist/components/layout-and-navigation/Chip.mjs.map +1 -1
  24. package/dist/components/layout-and-navigation/Tile.d.mts +9 -10
  25. package/dist/components/layout-and-navigation/Tile.d.ts +9 -10
  26. package/dist/components/layout-and-navigation/Tile.js +21 -4
  27. package/dist/components/layout-and-navigation/Tile.js.map +1 -1
  28. package/dist/components/layout-and-navigation/Tile.mjs +20 -4
  29. package/dist/components/layout-and-navigation/Tile.mjs.map +1 -1
  30. package/dist/components/loading-states/LoadingAndErrorComponent.js +1 -1
  31. package/dist/components/loading-states/LoadingAndErrorComponent.js.map +1 -1
  32. package/dist/components/loading-states/LoadingAndErrorComponent.mjs +1 -1
  33. package/dist/components/loading-states/LoadingAndErrorComponent.mjs.map +1 -1
  34. package/dist/components/modals/LanguageModal.js +21 -22
  35. package/dist/components/modals/LanguageModal.js.map +1 -1
  36. package/dist/components/modals/LanguageModal.mjs +21 -22
  37. package/dist/components/modals/LanguageModal.mjs.map +1 -1
  38. package/dist/components/modals/ThemeModal.js +21 -22
  39. package/dist/components/modals/ThemeModal.js.map +1 -1
  40. package/dist/components/modals/ThemeModal.mjs +21 -22
  41. package/dist/components/modals/ThemeModal.mjs.map +1 -1
  42. package/dist/components/properties/CheckboxProperty.js +1 -1
  43. package/dist/components/properties/CheckboxProperty.js.map +1 -1
  44. package/dist/components/properties/CheckboxProperty.mjs +1 -1
  45. package/dist/components/properties/CheckboxProperty.mjs.map +1 -1
  46. package/dist/components/properties/DateProperty.js +1 -1
  47. package/dist/components/properties/DateProperty.js.map +1 -1
  48. package/dist/components/properties/DateProperty.mjs +1 -1
  49. package/dist/components/properties/DateProperty.mjs.map +1 -1
  50. package/dist/components/properties/MultiSelectProperty.d.mts +0 -1
  51. package/dist/components/properties/MultiSelectProperty.d.ts +0 -1
  52. package/dist/components/properties/MultiSelectProperty.js +745 -740
  53. package/dist/components/properties/MultiSelectProperty.js.map +1 -1
  54. package/dist/components/properties/MultiSelectProperty.mjs +752 -747
  55. package/dist/components/properties/MultiSelectProperty.mjs.map +1 -1
  56. package/dist/components/properties/NumberProperty.js +1 -1
  57. package/dist/components/properties/NumberProperty.js.map +1 -1
  58. package/dist/components/properties/NumberProperty.mjs +1 -1
  59. package/dist/components/properties/NumberProperty.mjs.map +1 -1
  60. package/dist/components/properties/PropertyBase.js +1 -1
  61. package/dist/components/properties/PropertyBase.js.map +1 -1
  62. package/dist/components/properties/PropertyBase.mjs +1 -1
  63. package/dist/components/properties/PropertyBase.mjs.map +1 -1
  64. package/dist/components/properties/SelectProperty.d.mts +0 -1
  65. package/dist/components/properties/SelectProperty.d.ts +0 -1
  66. package/dist/components/properties/SelectProperty.js +24 -25
  67. package/dist/components/properties/SelectProperty.js.map +1 -1
  68. package/dist/components/properties/SelectProperty.mjs +24 -25
  69. package/dist/components/properties/SelectProperty.mjs.map +1 -1
  70. package/dist/components/properties/TextProperty.js +1 -1
  71. package/dist/components/properties/TextProperty.js.map +1 -1
  72. package/dist/components/properties/TextProperty.mjs +1 -1
  73. package/dist/components/properties/TextProperty.mjs.map +1 -1
  74. package/dist/components/user-action/MultiSelect.d.mts +0 -1
  75. package/dist/components/user-action/MultiSelect.d.ts +0 -1
  76. package/dist/components/user-action/MultiSelect.js +617 -612
  77. package/dist/components/user-action/MultiSelect.js.map +1 -1
  78. package/dist/components/user-action/MultiSelect.mjs +635 -630
  79. package/dist/components/user-action/MultiSelect.mjs.map +1 -1
  80. package/dist/components/user-action/ScrollPicker.js +1 -1
  81. package/dist/components/user-action/ScrollPicker.js.map +1 -1
  82. package/dist/components/user-action/ScrollPicker.mjs +1 -1
  83. package/dist/components/user-action/ScrollPicker.mjs.map +1 -1
  84. package/dist/components/user-action/Select.d.mts +1 -4
  85. package/dist/components/user-action/Select.d.ts +1 -4
  86. package/dist/components/user-action/Select.js +21 -24
  87. package/dist/components/user-action/Select.js.map +1 -1
  88. package/dist/components/user-action/Select.mjs +21 -23
  89. package/dist/components/user-action/Select.mjs.map +1 -1
  90. package/dist/css/globals.css +175 -179
  91. package/dist/css/uncompiled/globals.css +3 -3
  92. package/dist/css/uncompiled/textstyles.css +5 -5
  93. package/dist/css/uncompiled/theme/colors-basic.css +13 -5
  94. package/dist/css/uncompiled/theme/colors-component.css +56 -41
  95. package/dist/css/uncompiled/theme/colors-semantic.css +76 -83
  96. package/dist/index.d.mts +2 -2
  97. package/dist/index.d.ts +2 -2
  98. package/dist/index.js +3158 -371
  99. package/dist/index.js.map +1 -1
  100. package/dist/index.mjs +3030 -243
  101. package/dist/index.mjs.map +1 -1
  102. package/package.json +1 -1
@@ -4,6 +4,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
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
+ };
7
10
  var __export = (target, all) => {
8
11
  for (var name in all)
9
12
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -26,6 +29,2903 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
29
  ));
27
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
31
 
32
+ // node_modules/@swc/helpers/cjs/_interop_require_default.cjs
33
+ var require_interop_require_default = __commonJS({
34
+ "node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports2) {
35
+ "use strict";
36
+ function _interop_require_default(obj) {
37
+ return obj && obj.__esModule ? obj : { default: obj };
38
+ }
39
+ exports2._ = _interop_require_default;
40
+ }
41
+ });
42
+
43
+ // node_modules/next/dist/shared/lib/utils/warn-once.js
44
+ var require_warn_once = __commonJS({
45
+ "node_modules/next/dist/shared/lib/utils/warn-once.js"(exports2) {
46
+ "use strict";
47
+ Object.defineProperty(exports2, "__esModule", {
48
+ value: true
49
+ });
50
+ Object.defineProperty(exports2, "warnOnce", {
51
+ enumerable: true,
52
+ get: function() {
53
+ return warnOnce;
54
+ }
55
+ });
56
+ var warnOnce = (_) => {
57
+ };
58
+ if (process.env.NODE_ENV !== "production") {
59
+ const warnings = /* @__PURE__ */ new Set();
60
+ warnOnce = (msg) => {
61
+ if (!warnings.has(msg)) {
62
+ console.warn(msg);
63
+ }
64
+ warnings.add(msg);
65
+ };
66
+ }
67
+ }
68
+ });
69
+
70
+ // node_modules/next/dist/shared/lib/image-blur-svg.js
71
+ var require_image_blur_svg = __commonJS({
72
+ "node_modules/next/dist/shared/lib/image-blur-svg.js"(exports2) {
73
+ "use strict";
74
+ Object.defineProperty(exports2, "__esModule", {
75
+ value: true
76
+ });
77
+ Object.defineProperty(exports2, "getImageBlurSvg", {
78
+ enumerable: true,
79
+ get: function() {
80
+ return getImageBlurSvg;
81
+ }
82
+ });
83
+ function getImageBlurSvg(param) {
84
+ let { widthInt, heightInt, blurWidth, blurHeight, blurDataURL, objectFit } = param;
85
+ const std = 20;
86
+ const svgWidth = blurWidth ? blurWidth * 40 : widthInt;
87
+ const svgHeight = blurHeight ? blurHeight * 40 : heightInt;
88
+ const viewBox = svgWidth && svgHeight ? "viewBox='0 0 " + svgWidth + " " + svgHeight + "'" : "";
89
+ const preserveAspectRatio = viewBox ? "none" : objectFit === "contain" ? "xMidYMid" : objectFit === "cover" ? "xMidYMid slice" : "none";
90
+ 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";
91
+ }
92
+ }
93
+ });
94
+
95
+ // node_modules/next/dist/shared/lib/image-config.js
96
+ var require_image_config = __commonJS({
97
+ "node_modules/next/dist/shared/lib/image-config.js"(exports2) {
98
+ "use strict";
99
+ Object.defineProperty(exports2, "__esModule", {
100
+ value: true
101
+ });
102
+ function _export(target, all) {
103
+ for (var name in all) Object.defineProperty(target, name, {
104
+ enumerable: true,
105
+ get: all[name]
106
+ });
107
+ }
108
+ _export(exports2, {
109
+ VALID_LOADERS: function() {
110
+ return VALID_LOADERS;
111
+ },
112
+ imageConfigDefault: function() {
113
+ return imageConfigDefault;
114
+ }
115
+ });
116
+ var VALID_LOADERS = [
117
+ "default",
118
+ "imgix",
119
+ "cloudinary",
120
+ "akamai",
121
+ "custom"
122
+ ];
123
+ var imageConfigDefault = {
124
+ deviceSizes: [
125
+ 640,
126
+ 750,
127
+ 828,
128
+ 1080,
129
+ 1200,
130
+ 1920,
131
+ 2048,
132
+ 3840
133
+ ],
134
+ imageSizes: [
135
+ 16,
136
+ 32,
137
+ 48,
138
+ 64,
139
+ 96,
140
+ 128,
141
+ 256,
142
+ 384
143
+ ],
144
+ path: "/_next/image",
145
+ loader: "default",
146
+ loaderFile: "",
147
+ domains: [],
148
+ disableStaticImages: false,
149
+ minimumCacheTTL: 60,
150
+ formats: [
151
+ "image/webp"
152
+ ],
153
+ dangerouslyAllowSVG: false,
154
+ contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;",
155
+ contentDispositionType: "attachment",
156
+ localPatterns: void 0,
157
+ remotePatterns: [],
158
+ qualities: void 0,
159
+ unoptimized: false
160
+ };
161
+ }
162
+ });
163
+
164
+ // node_modules/next/dist/shared/lib/get-img-props.js
165
+ var require_get_img_props = __commonJS({
166
+ "node_modules/next/dist/shared/lib/get-img-props.js"(exports2) {
167
+ "use strict";
168
+ Object.defineProperty(exports2, "__esModule", {
169
+ value: true
170
+ });
171
+ Object.defineProperty(exports2, "getImgProps", {
172
+ enumerable: true,
173
+ get: function() {
174
+ return getImgProps;
175
+ }
176
+ });
177
+ var _warnonce = require_warn_once();
178
+ var _imageblursvg = require_image_blur_svg();
179
+ var _imageconfig = require_image_config();
180
+ var VALID_LOADING_VALUES = [
181
+ "lazy",
182
+ "eager",
183
+ void 0
184
+ ];
185
+ var INVALID_BACKGROUND_SIZE_VALUES = [
186
+ "-moz-initial",
187
+ "fill",
188
+ "none",
189
+ "scale-down",
190
+ void 0
191
+ ];
192
+ function isStaticRequire(src) {
193
+ return src.default !== void 0;
194
+ }
195
+ function isStaticImageData(src) {
196
+ return src.src !== void 0;
197
+ }
198
+ function isStaticImport(src) {
199
+ return !!src && typeof src === "object" && (isStaticRequire(src) || isStaticImageData(src));
200
+ }
201
+ var allImgs = /* @__PURE__ */ new Map();
202
+ var perfObserver;
203
+ function getInt(x) {
204
+ if (typeof x === "undefined") {
205
+ return x;
206
+ }
207
+ if (typeof x === "number") {
208
+ return Number.isFinite(x) ? x : NaN;
209
+ }
210
+ if (typeof x === "string" && /^[0-9]+$/.test(x)) {
211
+ return parseInt(x, 10);
212
+ }
213
+ return NaN;
214
+ }
215
+ function getWidths(param, width, sizes) {
216
+ let { deviceSizes, allSizes } = param;
217
+ if (sizes) {
218
+ const viewportWidthRe = /(^|\s)(1?\d?\d)vw/g;
219
+ const percentSizes = [];
220
+ for (let match; match = viewportWidthRe.exec(sizes); match) {
221
+ percentSizes.push(parseInt(match[2]));
222
+ }
223
+ if (percentSizes.length) {
224
+ const smallestRatio = Math.min(...percentSizes) * 0.01;
225
+ return {
226
+ widths: allSizes.filter((s) => s >= deviceSizes[0] * smallestRatio),
227
+ kind: "w"
228
+ };
229
+ }
230
+ return {
231
+ widths: allSizes,
232
+ kind: "w"
233
+ };
234
+ }
235
+ if (typeof width !== "number") {
236
+ return {
237
+ widths: deviceSizes,
238
+ kind: "w"
239
+ };
240
+ }
241
+ const widths = [
242
+ ...new Set(
243
+ // > This means that most OLED screens that say they are 3x resolution,
244
+ // > are actually 3x in the green color, but only 1.5x in the red and
245
+ // > blue colors. Showing a 3x resolution image in the app vs a 2x
246
+ // > resolution image will be visually the same, though the 3x image
247
+ // > takes significantly more data. Even true 3x resolution screens are
248
+ // > wasteful as the human eye cannot see that level of detail without
249
+ // > something like a magnifying glass.
250
+ // https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html
251
+ [
252
+ width,
253
+ width * 2
254
+ /*, width * 3*/
255
+ ].map((w) => allSizes.find((p) => p >= w) || allSizes[allSizes.length - 1])
256
+ )
257
+ ];
258
+ return {
259
+ widths,
260
+ kind: "x"
261
+ };
262
+ }
263
+ function generateImgAttrs(param) {
264
+ let { config, src, unoptimized, width, quality, sizes, loader } = param;
265
+ if (unoptimized) {
266
+ return {
267
+ src,
268
+ srcSet: void 0,
269
+ sizes: void 0
270
+ };
271
+ }
272
+ const { widths, kind } = getWidths(config, width, sizes);
273
+ const last = widths.length - 1;
274
+ return {
275
+ sizes: !sizes && kind === "w" ? "100vw" : sizes,
276
+ srcSet: widths.map((w, i) => loader({
277
+ config,
278
+ src,
279
+ quality,
280
+ width: w
281
+ }) + " " + (kind === "w" ? w : i + 1) + kind).join(", "),
282
+ // It's intended to keep `src` the last attribute because React updates
283
+ // attributes in order. If we keep `src` the first one, Safari will
284
+ // immediately start to fetch `src`, before `sizes` and `srcSet` are even
285
+ // updated by React. That causes multiple unnecessary requests if `srcSet`
286
+ // and `sizes` are defined.
287
+ // This bug cannot be reproduced in Chrome or Firefox.
288
+ src: loader({
289
+ config,
290
+ src,
291
+ quality,
292
+ width: widths[last]
293
+ })
294
+ };
295
+ }
296
+ function getImgProps(param, _state) {
297
+ 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;
298
+ const { imgConf, showAltText, blurComplete, defaultLoader } = _state;
299
+ let config;
300
+ let c = imgConf || _imageconfig.imageConfigDefault;
301
+ if ("allSizes" in c) {
302
+ config = c;
303
+ } else {
304
+ var _c_qualities;
305
+ const allSizes = [
306
+ ...c.deviceSizes,
307
+ ...c.imageSizes
308
+ ].sort((a, b) => a - b);
309
+ const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
310
+ const qualities = (_c_qualities = c.qualities) == null ? void 0 : _c_qualities.sort((a, b) => a - b);
311
+ config = {
312
+ ...c,
313
+ allSizes,
314
+ deviceSizes,
315
+ qualities
316
+ };
317
+ }
318
+ if (typeof defaultLoader === "undefined") {
319
+ 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", {
320
+ value: "E163",
321
+ enumerable: false,
322
+ configurable: true
323
+ });
324
+ }
325
+ let loader = rest.loader || defaultLoader;
326
+ delete rest.loader;
327
+ delete rest.srcSet;
328
+ const isDefaultLoader = "__next_img_default" in loader;
329
+ if (isDefaultLoader) {
330
+ if (config.loader === "custom") {
331
+ 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", {
332
+ value: "E252",
333
+ enumerable: false,
334
+ configurable: true
335
+ });
336
+ }
337
+ } else {
338
+ const customImageLoader = loader;
339
+ loader = (obj) => {
340
+ const { config: _, ...opts } = obj;
341
+ return customImageLoader(opts);
342
+ };
343
+ }
344
+ if (layout) {
345
+ if (layout === "fill") {
346
+ fill = true;
347
+ }
348
+ const layoutToStyle = {
349
+ intrinsic: {
350
+ maxWidth: "100%",
351
+ height: "auto"
352
+ },
353
+ responsive: {
354
+ width: "100%",
355
+ height: "auto"
356
+ }
357
+ };
358
+ const layoutToSizes = {
359
+ responsive: "100vw",
360
+ fill: "100vw"
361
+ };
362
+ const layoutStyle = layoutToStyle[layout];
363
+ if (layoutStyle) {
364
+ style = {
365
+ ...style,
366
+ ...layoutStyle
367
+ };
368
+ }
369
+ const layoutSizes = layoutToSizes[layout];
370
+ if (layoutSizes && !sizes) {
371
+ sizes = layoutSizes;
372
+ }
373
+ }
374
+ let staticSrc = "";
375
+ let widthInt = getInt(width);
376
+ let heightInt = getInt(height);
377
+ let blurWidth;
378
+ let blurHeight;
379
+ if (isStaticImport(src)) {
380
+ const staticImageData = isStaticRequire(src) ? src.default : src;
381
+ if (!staticImageData.src) {
382
+ 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", {
383
+ value: "E460",
384
+ enumerable: false,
385
+ configurable: true
386
+ });
387
+ }
388
+ if (!staticImageData.height || !staticImageData.width) {
389
+ 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", {
390
+ value: "E48",
391
+ enumerable: false,
392
+ configurable: true
393
+ });
394
+ }
395
+ blurWidth = staticImageData.blurWidth;
396
+ blurHeight = staticImageData.blurHeight;
397
+ blurDataURL = blurDataURL || staticImageData.blurDataURL;
398
+ staticSrc = staticImageData.src;
399
+ if (!fill) {
400
+ if (!widthInt && !heightInt) {
401
+ widthInt = staticImageData.width;
402
+ heightInt = staticImageData.height;
403
+ } else if (widthInt && !heightInt) {
404
+ const ratio = widthInt / staticImageData.width;
405
+ heightInt = Math.round(staticImageData.height * ratio);
406
+ } else if (!widthInt && heightInt) {
407
+ const ratio = heightInt / staticImageData.height;
408
+ widthInt = Math.round(staticImageData.width * ratio);
409
+ }
410
+ }
411
+ }
412
+ src = typeof src === "string" ? src : staticSrc;
413
+ let isLazy = !priority && (loading === "lazy" || typeof loading === "undefined");
414
+ if (!src || src.startsWith("data:") || src.startsWith("blob:")) {
415
+ unoptimized = true;
416
+ isLazy = false;
417
+ }
418
+ if (config.unoptimized) {
419
+ unoptimized = true;
420
+ }
421
+ if (isDefaultLoader && !config.dangerouslyAllowSVG && src.split("?", 1)[0].endsWith(".svg")) {
422
+ unoptimized = true;
423
+ }
424
+ const qualityInt = getInt(quality);
425
+ if (process.env.NODE_ENV !== "production") {
426
+ if (config.output === "export" && isDefaultLoader && !unoptimized) {
427
+ 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", {
428
+ value: "E500",
429
+ enumerable: false,
430
+ configurable: true
431
+ });
432
+ }
433
+ if (!src) {
434
+ unoptimized = true;
435
+ } else {
436
+ if (fill) {
437
+ if (width) {
438
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has both "width" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
439
+ value: "E96",
440
+ enumerable: false,
441
+ configurable: true
442
+ });
443
+ }
444
+ if (height) {
445
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has both "height" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
446
+ value: "E115",
447
+ enumerable: false,
448
+ configurable: true
449
+ });
450
+ }
451
+ if ((style == null ? void 0 : style.position) && style.position !== "absolute") {
452
+ 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", {
453
+ value: "E216",
454
+ enumerable: false,
455
+ configurable: true
456
+ });
457
+ }
458
+ if ((style == null ? void 0 : style.width) && style.width !== "100%") {
459
+ 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", {
460
+ value: "E73",
461
+ enumerable: false,
462
+ configurable: true
463
+ });
464
+ }
465
+ if ((style == null ? void 0 : style.height) && style.height !== "100%") {
466
+ 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", {
467
+ value: "E404",
468
+ enumerable: false,
469
+ configurable: true
470
+ });
471
+ }
472
+ } else {
473
+ if (typeof widthInt === "undefined") {
474
+ throw Object.defineProperty(new Error('Image with src "' + src + '" is missing required "width" property.'), "__NEXT_ERROR_CODE", {
475
+ value: "E451",
476
+ enumerable: false,
477
+ configurable: true
478
+ });
479
+ } else if (isNaN(widthInt)) {
480
+ 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", {
481
+ value: "E66",
482
+ enumerable: false,
483
+ configurable: true
484
+ });
485
+ }
486
+ if (typeof heightInt === "undefined") {
487
+ throw Object.defineProperty(new Error('Image with src "' + src + '" is missing required "height" property.'), "__NEXT_ERROR_CODE", {
488
+ value: "E397",
489
+ enumerable: false,
490
+ configurable: true
491
+ });
492
+ } else if (isNaN(heightInt)) {
493
+ 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", {
494
+ value: "E444",
495
+ enumerable: false,
496
+ configurable: true
497
+ });
498
+ }
499
+ if (/^[\x00-\x20]/.test(src)) {
500
+ 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", {
501
+ value: "E176",
502
+ enumerable: false,
503
+ configurable: true
504
+ });
505
+ }
506
+ if (/[\x00-\x20]$/.test(src)) {
507
+ 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", {
508
+ value: "E21",
509
+ enumerable: false,
510
+ configurable: true
511
+ });
512
+ }
513
+ }
514
+ }
515
+ if (!VALID_LOADING_VALUES.includes(loading)) {
516
+ 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", {
517
+ value: "E357",
518
+ enumerable: false,
519
+ configurable: true
520
+ });
521
+ }
522
+ if (priority && loading === "lazy") {
523
+ throw Object.defineProperty(new Error('Image with src "' + src + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
524
+ value: "E218",
525
+ enumerable: false,
526
+ configurable: true
527
+ });
528
+ }
529
+ if (placeholder !== "empty" && placeholder !== "blur" && !placeholder.startsWith("data:image/")) {
530
+ throw Object.defineProperty(new Error('Image with src "' + src + '" has invalid "placeholder" property "' + placeholder + '".'), "__NEXT_ERROR_CODE", {
531
+ value: "E431",
532
+ enumerable: false,
533
+ configurable: true
534
+ });
535
+ }
536
+ if (placeholder !== "empty") {
537
+ if (widthInt && heightInt && widthInt * heightInt < 1600) {
538
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.');
539
+ }
540
+ }
541
+ if (placeholder === "blur" && !blurDataURL) {
542
+ const VALID_BLUR_EXT = [
543
+ "jpeg",
544
+ "png",
545
+ "webp",
546
+ "avif"
547
+ ];
548
+ throw Object.defineProperty(new Error('Image with src "' + src + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
549
+ Possible solutions:
550
+ - Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
551
+ - 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", {
552
+ value: "E371",
553
+ enumerable: false,
554
+ configurable: true
555
+ });
556
+ }
557
+ if ("ref" in rest) {
558
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.');
559
+ }
560
+ if (!unoptimized && !isDefaultLoader) {
561
+ const urlStr = loader({
562
+ config,
563
+ src,
564
+ width: widthInt || 400,
565
+ quality: qualityInt || 75
566
+ });
567
+ let url;
568
+ try {
569
+ url = new URL(urlStr);
570
+ } catch (err) {
571
+ }
572
+ if (urlStr === src || url && url.pathname === src && !url.search) {
573
+ (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');
574
+ }
575
+ }
576
+ if (onLoadingComplete) {
577
+ (0, _warnonce.warnOnce)('Image with src "' + src + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
578
+ }
579
+ for (const [legacyKey, legacyValue] of Object.entries({
580
+ layout,
581
+ objectFit,
582
+ objectPosition,
583
+ lazyBoundary,
584
+ lazyRoot
585
+ })) {
586
+ if (legacyValue) {
587
+ (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');
588
+ }
589
+ }
590
+ if (typeof window !== "undefined" && !perfObserver && window.PerformanceObserver) {
591
+ perfObserver = new PerformanceObserver((entryList) => {
592
+ for (const entry of entryList.getEntries()) {
593
+ var _entry_element;
594
+ const imgSrc = (entry == null ? void 0 : (_entry_element = entry.element) == null ? void 0 : _entry_element.src) || "";
595
+ const lcpImage = allImgs.get(imgSrc);
596
+ if (lcpImage && !lcpImage.priority && lcpImage.placeholder === "empty" && !lcpImage.src.startsWith("data:") && !lcpImage.src.startsWith("blob:")) {
597
+ (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');
598
+ }
599
+ }
600
+ });
601
+ try {
602
+ perfObserver.observe({
603
+ type: "largest-contentful-paint",
604
+ buffered: true
605
+ });
606
+ } catch (err) {
607
+ console.error(err);
608
+ }
609
+ }
610
+ }
611
+ const imgStyle = Object.assign(fill ? {
612
+ position: "absolute",
613
+ height: "100%",
614
+ width: "100%",
615
+ left: 0,
616
+ top: 0,
617
+ right: 0,
618
+ bottom: 0,
619
+ objectFit,
620
+ objectPosition
621
+ } : {}, showAltText ? {} : {
622
+ color: "transparent"
623
+ }, style);
624
+ const backgroundImage = !blurComplete && placeholder !== "empty" ? placeholder === "blur" ? 'url("data:image/svg+xml;charset=utf-8,' + (0, _imageblursvg.getImageBlurSvg)({
625
+ widthInt,
626
+ heightInt,
627
+ blurWidth,
628
+ blurHeight,
629
+ blurDataURL: blurDataURL || "",
630
+ objectFit: imgStyle.objectFit
631
+ }) + '")' : 'url("' + placeholder + '")' : null;
632
+ const backgroundSize = !INVALID_BACKGROUND_SIZE_VALUES.includes(imgStyle.objectFit) ? imgStyle.objectFit : imgStyle.objectFit === "fill" ? "100% 100%" : "cover";
633
+ let placeholderStyle = backgroundImage ? {
634
+ backgroundSize,
635
+ backgroundPosition: imgStyle.objectPosition || "50% 50%",
636
+ backgroundRepeat: "no-repeat",
637
+ backgroundImage
638
+ } : {};
639
+ if (process.env.NODE_ENV === "development") {
640
+ if (placeholderStyle.backgroundImage && placeholder === "blur" && (blurDataURL == null ? void 0 : blurDataURL.startsWith("/"))) {
641
+ placeholderStyle.backgroundImage = 'url("' + blurDataURL + '")';
642
+ }
643
+ }
644
+ const imgAttributes = generateImgAttrs({
645
+ config,
646
+ src,
647
+ unoptimized,
648
+ width: widthInt,
649
+ quality: qualityInt,
650
+ sizes,
651
+ loader
652
+ });
653
+ if (process.env.NODE_ENV !== "production") {
654
+ if (typeof window !== "undefined") {
655
+ let fullUrl;
656
+ try {
657
+ fullUrl = new URL(imgAttributes.src);
658
+ } catch (e) {
659
+ fullUrl = new URL(imgAttributes.src, window.location.href);
660
+ }
661
+ allImgs.set(fullUrl.href, {
662
+ src,
663
+ priority,
664
+ placeholder
665
+ });
666
+ }
667
+ }
668
+ const props = {
669
+ ...rest,
670
+ loading: isLazy ? "lazy" : loading,
671
+ fetchPriority,
672
+ width: widthInt,
673
+ height: heightInt,
674
+ decoding,
675
+ className,
676
+ style: {
677
+ ...imgStyle,
678
+ ...placeholderStyle
679
+ },
680
+ sizes: imgAttributes.sizes,
681
+ srcSet: imgAttributes.srcSet,
682
+ src: overrideSrc || imgAttributes.src
683
+ };
684
+ const meta = {
685
+ unoptimized,
686
+ priority,
687
+ placeholder,
688
+ fill
689
+ };
690
+ return {
691
+ props,
692
+ meta
693
+ };
694
+ }
695
+ }
696
+ });
697
+
698
+ // node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
699
+ var require_interop_require_wildcard = __commonJS({
700
+ "node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports2) {
701
+ "use strict";
702
+ function _getRequireWildcardCache(nodeInterop) {
703
+ if (typeof WeakMap !== "function") return null;
704
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
705
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
706
+ return (_getRequireWildcardCache = function(nodeInterop2) {
707
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
708
+ })(nodeInterop);
709
+ }
710
+ function _interop_require_wildcard(obj, nodeInterop) {
711
+ if (!nodeInterop && obj && obj.__esModule) return obj;
712
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
713
+ var cache = _getRequireWildcardCache(nodeInterop);
714
+ if (cache && cache.has(obj)) return cache.get(obj);
715
+ var newObj = { __proto__: null };
716
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
717
+ for (var key in obj) {
718
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
719
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
720
+ if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
721
+ else newObj[key] = obj[key];
722
+ }
723
+ }
724
+ newObj.default = obj;
725
+ if (cache) cache.set(obj, newObj);
726
+ return newObj;
727
+ }
728
+ exports2._ = _interop_require_wildcard;
729
+ }
730
+ });
731
+
732
+ // node_modules/next/dist/shared/lib/side-effect.js
733
+ var require_side_effect = __commonJS({
734
+ "node_modules/next/dist/shared/lib/side-effect.js"(exports2) {
735
+ "use strict";
736
+ Object.defineProperty(exports2, "__esModule", {
737
+ value: true
738
+ });
739
+ Object.defineProperty(exports2, "default", {
740
+ enumerable: true,
741
+ get: function() {
742
+ return SideEffect;
743
+ }
744
+ });
745
+ var _react = require("react");
746
+ var isServer = typeof window === "undefined";
747
+ var useClientOnlyLayoutEffect = isServer ? () => {
748
+ } : _react.useLayoutEffect;
749
+ var useClientOnlyEffect = isServer ? () => {
750
+ } : _react.useEffect;
751
+ function SideEffect(props) {
752
+ const { headManager, reduceComponentsToState } = props;
753
+ function emitChange() {
754
+ if (headManager && headManager.mountedInstances) {
755
+ const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));
756
+ headManager.updateHead(reduceComponentsToState(headElements, props));
757
+ }
758
+ }
759
+ if (isServer) {
760
+ var _headManager_mountedInstances;
761
+ headManager == null ? void 0 : (_headManager_mountedInstances = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances.add(props.children);
762
+ emitChange();
763
+ }
764
+ useClientOnlyLayoutEffect(() => {
765
+ var _headManager_mountedInstances2;
766
+ headManager == null ? void 0 : (_headManager_mountedInstances2 = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances2.add(props.children);
767
+ return () => {
768
+ var _headManager_mountedInstances3;
769
+ headManager == null ? void 0 : (_headManager_mountedInstances3 = headManager.mountedInstances) == null ? void 0 : _headManager_mountedInstances3.delete(props.children);
770
+ };
771
+ });
772
+ useClientOnlyLayoutEffect(() => {
773
+ if (headManager) {
774
+ headManager._pendingUpdate = emitChange;
775
+ }
776
+ return () => {
777
+ if (headManager) {
778
+ headManager._pendingUpdate = emitChange;
779
+ }
780
+ };
781
+ });
782
+ useClientOnlyEffect(() => {
783
+ if (headManager && headManager._pendingUpdate) {
784
+ headManager._pendingUpdate();
785
+ headManager._pendingUpdate = null;
786
+ }
787
+ return () => {
788
+ if (headManager && headManager._pendingUpdate) {
789
+ headManager._pendingUpdate();
790
+ headManager._pendingUpdate = null;
791
+ }
792
+ };
793
+ });
794
+ return null;
795
+ }
796
+ }
797
+ });
798
+
799
+ // node_modules/next/dist/shared/lib/amp-context.shared-runtime.js
800
+ var require_amp_context_shared_runtime = __commonJS({
801
+ "node_modules/next/dist/shared/lib/amp-context.shared-runtime.js"(exports2) {
802
+ "use strict";
803
+ Object.defineProperty(exports2, "__esModule", {
804
+ value: true
805
+ });
806
+ Object.defineProperty(exports2, "AmpStateContext", {
807
+ enumerable: true,
808
+ get: function() {
809
+ return AmpStateContext;
810
+ }
811
+ });
812
+ var _interop_require_default = require_interop_require_default();
813
+ var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
814
+ var AmpStateContext = _react.default.createContext({});
815
+ if (process.env.NODE_ENV !== "production") {
816
+ AmpStateContext.displayName = "AmpStateContext";
817
+ }
818
+ }
819
+ });
820
+
821
+ // node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js
822
+ var require_head_manager_context_shared_runtime = __commonJS({
823
+ "node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js"(exports2) {
824
+ "use strict";
825
+ Object.defineProperty(exports2, "__esModule", {
826
+ value: true
827
+ });
828
+ Object.defineProperty(exports2, "HeadManagerContext", {
829
+ enumerable: true,
830
+ get: function() {
831
+ return HeadManagerContext;
832
+ }
833
+ });
834
+ var _interop_require_default = require_interop_require_default();
835
+ var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
836
+ var HeadManagerContext = _react.default.createContext({});
837
+ if (process.env.NODE_ENV !== "production") {
838
+ HeadManagerContext.displayName = "HeadManagerContext";
839
+ }
840
+ }
841
+ });
842
+
843
+ // node_modules/next/dist/shared/lib/amp-mode.js
844
+ var require_amp_mode = __commonJS({
845
+ "node_modules/next/dist/shared/lib/amp-mode.js"(exports2) {
846
+ "use strict";
847
+ Object.defineProperty(exports2, "__esModule", {
848
+ value: true
849
+ });
850
+ Object.defineProperty(exports2, "isInAmpMode", {
851
+ enumerable: true,
852
+ get: function() {
853
+ return isInAmpMode;
854
+ }
855
+ });
856
+ function isInAmpMode(param) {
857
+ let { ampFirst = false, hybrid = false, hasQuery = false } = param === void 0 ? {} : param;
858
+ return ampFirst || hybrid && hasQuery;
859
+ }
860
+ }
861
+ });
862
+
863
+ // node_modules/next/dist/shared/lib/head.js
864
+ var require_head = __commonJS({
865
+ "node_modules/next/dist/shared/lib/head.js"(exports2, module2) {
866
+ "use client";
867
+ "use strict";
868
+ Object.defineProperty(exports2, "__esModule", {
869
+ value: true
870
+ });
871
+ function _export(target, all) {
872
+ for (var name in all) Object.defineProperty(target, name, {
873
+ enumerable: true,
874
+ get: all[name]
875
+ });
876
+ }
877
+ _export(exports2, {
878
+ default: function() {
879
+ return _default;
880
+ },
881
+ defaultHead: function() {
882
+ return defaultHead;
883
+ }
884
+ });
885
+ var _interop_require_default = require_interop_require_default();
886
+ var _interop_require_wildcard = require_interop_require_wildcard();
887
+ var _jsxruntime = require("react/jsx-runtime");
888
+ var _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
889
+ var _sideeffect = /* @__PURE__ */ _interop_require_default._(require_side_effect());
890
+ var _ampcontextsharedruntime = require_amp_context_shared_runtime();
891
+ var _headmanagercontextsharedruntime = require_head_manager_context_shared_runtime();
892
+ var _ampmode = require_amp_mode();
893
+ var _warnonce = require_warn_once();
894
+ function defaultHead(inAmpMode) {
895
+ if (inAmpMode === void 0) inAmpMode = false;
896
+ const head = [
897
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
898
+ charSet: "utf-8"
899
+ }, "charset")
900
+ ];
901
+ if (!inAmpMode) {
902
+ head.push(/* @__PURE__ */ (0, _jsxruntime.jsx)("meta", {
903
+ name: "viewport",
904
+ content: "width=device-width"
905
+ }, "viewport"));
906
+ }
907
+ return head;
908
+ }
909
+ function onlyReactElement(list, child) {
910
+ if (typeof child === "string" || typeof child === "number") {
911
+ return list;
912
+ }
913
+ if (child.type === _react.default.Fragment) {
914
+ return list.concat(
915
+ // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
916
+ _react.default.Children.toArray(child.props.children).reduce(
917
+ // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
918
+ (fragmentList, fragmentChild) => {
919
+ if (typeof fragmentChild === "string" || typeof fragmentChild === "number") {
920
+ return fragmentList;
921
+ }
922
+ return fragmentList.concat(fragmentChild);
923
+ },
924
+ []
925
+ )
926
+ );
927
+ }
928
+ return list.concat(child);
929
+ }
930
+ var METATYPES = [
931
+ "name",
932
+ "httpEquiv",
933
+ "charSet",
934
+ "itemProp"
935
+ ];
936
+ function unique() {
937
+ const keys = /* @__PURE__ */ new Set();
938
+ const tags = /* @__PURE__ */ new Set();
939
+ const metaTypes = /* @__PURE__ */ new Set();
940
+ const metaCategories = {};
941
+ return (h) => {
942
+ let isUnique = true;
943
+ let hasKey = false;
944
+ if (h.key && typeof h.key !== "number" && h.key.indexOf("$") > 0) {
945
+ hasKey = true;
946
+ const key = h.key.slice(h.key.indexOf("$") + 1);
947
+ if (keys.has(key)) {
948
+ isUnique = false;
949
+ } else {
950
+ keys.add(key);
951
+ }
952
+ }
953
+ switch (h.type) {
954
+ case "title":
955
+ case "base":
956
+ if (tags.has(h.type)) {
957
+ isUnique = false;
958
+ } else {
959
+ tags.add(h.type);
960
+ }
961
+ break;
962
+ case "meta":
963
+ for (let i = 0, len = METATYPES.length; i < len; i++) {
964
+ const metatype = METATYPES[i];
965
+ if (!h.props.hasOwnProperty(metatype)) continue;
966
+ if (metatype === "charSet") {
967
+ if (metaTypes.has(metatype)) {
968
+ isUnique = false;
969
+ } else {
970
+ metaTypes.add(metatype);
971
+ }
972
+ } else {
973
+ const category = h.props[metatype];
974
+ const categories = metaCategories[metatype] || /* @__PURE__ */ new Set();
975
+ if ((metatype !== "name" || !hasKey) && categories.has(category)) {
976
+ isUnique = false;
977
+ } else {
978
+ categories.add(category);
979
+ metaCategories[metatype] = categories;
980
+ }
981
+ }
982
+ }
983
+ break;
984
+ }
985
+ return isUnique;
986
+ };
987
+ }
988
+ function reduceComponents(headChildrenElements, props) {
989
+ const { inAmpMode } = props;
990
+ return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(inAmpMode).reverse()).filter(unique()).reverse().map((c, i) => {
991
+ const key = c.key || i;
992
+ if (process.env.NODE_ENV !== "development" && process.env.__NEXT_OPTIMIZE_FONTS && !inAmpMode) {
993
+ if (c.type === "link" && c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
994
+ [
995
+ "https://fonts.googleapis.com/css",
996
+ "https://use.typekit.net/"
997
+ ].some((url) => c.props["href"].startsWith(url))) {
998
+ const newProps = {
999
+ ...c.props || {}
1000
+ };
1001
+ newProps["data-href"] = newProps["href"];
1002
+ newProps["href"] = void 0;
1003
+ newProps["data-optimized-fonts"] = true;
1004
+ return /* @__PURE__ */ _react.default.cloneElement(c, newProps);
1005
+ }
1006
+ }
1007
+ if (process.env.NODE_ENV === "development") {
1008
+ if (c.type === "script" && c.props["type"] !== "application/ld+json") {
1009
+ const srcMessage = c.props["src"] ? '<script> tag with src="' + c.props["src"] + '"' : "inline <script>";
1010
+ (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");
1011
+ } else if (c.type === "link" && c.props["rel"] === "stylesheet") {
1012
+ (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');
1013
+ }
1014
+ }
1015
+ return /* @__PURE__ */ _react.default.cloneElement(c, {
1016
+ key
1017
+ });
1018
+ });
1019
+ }
1020
+ function Head(param) {
1021
+ let { children } = param;
1022
+ const ampState = (0, _react.useContext)(_ampcontextsharedruntime.AmpStateContext);
1023
+ const headManager = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
1024
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_sideeffect.default, {
1025
+ reduceComponentsToState: reduceComponents,
1026
+ headManager,
1027
+ inAmpMode: (0, _ampmode.isInAmpMode)(ampState),
1028
+ children
1029
+ });
1030
+ }
1031
+ var _default = Head;
1032
+ if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
1033
+ Object.defineProperty(exports2.default, "__esModule", { value: true });
1034
+ Object.assign(exports2.default, exports2);
1035
+ module2.exports = exports2.default;
1036
+ }
1037
+ }
1038
+ });
1039
+
1040
+ // node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js
1041
+ var require_image_config_context_shared_runtime = __commonJS({
1042
+ "node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js"(exports2) {
1043
+ "use strict";
1044
+ Object.defineProperty(exports2, "__esModule", {
1045
+ value: true
1046
+ });
1047
+ Object.defineProperty(exports2, "ImageConfigContext", {
1048
+ enumerable: true,
1049
+ get: function() {
1050
+ return ImageConfigContext;
1051
+ }
1052
+ });
1053
+ var _interop_require_default = require_interop_require_default();
1054
+ var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
1055
+ var _imageconfig = require_image_config();
1056
+ var ImageConfigContext = _react.default.createContext(_imageconfig.imageConfigDefault);
1057
+ if (process.env.NODE_ENV !== "production") {
1058
+ ImageConfigContext.displayName = "ImageConfigContext";
1059
+ }
1060
+ }
1061
+ });
1062
+
1063
+ // node_modules/next/dist/shared/lib/router-context.shared-runtime.js
1064
+ var require_router_context_shared_runtime = __commonJS({
1065
+ "node_modules/next/dist/shared/lib/router-context.shared-runtime.js"(exports2) {
1066
+ "use strict";
1067
+ Object.defineProperty(exports2, "__esModule", {
1068
+ value: true
1069
+ });
1070
+ Object.defineProperty(exports2, "RouterContext", {
1071
+ enumerable: true,
1072
+ get: function() {
1073
+ return RouterContext;
1074
+ }
1075
+ });
1076
+ var _interop_require_default = require_interop_require_default();
1077
+ var _react = /* @__PURE__ */ _interop_require_default._(require("react"));
1078
+ var RouterContext = _react.default.createContext(null);
1079
+ if (process.env.NODE_ENV !== "production") {
1080
+ RouterContext.displayName = "RouterContext";
1081
+ }
1082
+ }
1083
+ });
1084
+
1085
+ // node_modules/next/dist/compiled/picomatch/index.js
1086
+ var require_picomatch = __commonJS({
1087
+ "node_modules/next/dist/compiled/picomatch/index.js"(exports2, module2) {
1088
+ (() => {
1089
+ "use strict";
1090
+ var t = { 170: (t2, e2, u2) => {
1091
+ const n = u2(510);
1092
+ const isWindows = () => {
1093
+ if (typeof navigator !== "undefined" && navigator.platform) {
1094
+ const t3 = navigator.platform.toLowerCase();
1095
+ return t3 === "win32" || t3 === "windows";
1096
+ }
1097
+ if (typeof process !== "undefined" && process.platform) {
1098
+ return process.platform === "win32";
1099
+ }
1100
+ return false;
1101
+ };
1102
+ function picomatch(t3, e3, u3 = false) {
1103
+ if (e3 && (e3.windows === null || e3.windows === void 0)) {
1104
+ e3 = { ...e3, windows: isWindows() };
1105
+ }
1106
+ return n(t3, e3, u3);
1107
+ }
1108
+ Object.assign(picomatch, n);
1109
+ t2.exports = picomatch;
1110
+ }, 154: (t2) => {
1111
+ const e2 = "\\\\/";
1112
+ const u2 = `[^${e2}]`;
1113
+ const n = "\\.";
1114
+ const o = "\\+";
1115
+ const s = "\\?";
1116
+ const r = "\\/";
1117
+ const a = "(?=.)";
1118
+ const i = "[^/]";
1119
+ const c = `(?:${r}|$)`;
1120
+ const p = `(?:^|${r})`;
1121
+ const l = `${n}{1,2}${c}`;
1122
+ const f = `(?!${n})`;
1123
+ const A = `(?!${p}${l})`;
1124
+ const _ = `(?!${n}{0,1}${c})`;
1125
+ const R = `(?!${l})`;
1126
+ const E = `[^.${r}]`;
1127
+ const h = `${i}*?`;
1128
+ const g = "/";
1129
+ 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 };
1130
+ 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: "\\" };
1131
+ 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" };
1132
+ 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) {
1133
+ return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
1134
+ }, globChars(t3) {
1135
+ return t3 === true ? C : b;
1136
+ } };
1137
+ }, 697: (t2, e2, u2) => {
1138
+ const n = u2(154);
1139
+ const o = u2(96);
1140
+ const { MAX_LENGTH: s, POSIX_REGEX_SOURCE: r, REGEX_NON_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_BACKREF: i, REPLACEMENTS: c } = n;
1141
+ const expandRange = (t3, e3) => {
1142
+ if (typeof e3.expandRange === "function") {
1143
+ return e3.expandRange(...t3, e3);
1144
+ }
1145
+ t3.sort();
1146
+ const u3 = `[${t3.join("-")}]`;
1147
+ try {
1148
+ new RegExp(u3);
1149
+ } catch (e4) {
1150
+ return t3.map((t4) => o.escapeRegex(t4)).join("..");
1151
+ }
1152
+ return u3;
1153
+ };
1154
+ const syntaxError = (t3, e3) => `Missing ${t3}: "${e3}" - use "\\\\${e3}" to match literal characters`;
1155
+ const parse = (t3, e3) => {
1156
+ if (typeof t3 !== "string") {
1157
+ throw new TypeError("Expected a string");
1158
+ }
1159
+ t3 = c[t3] || t3;
1160
+ const u3 = { ...e3 };
1161
+ const p = typeof u3.maxLength === "number" ? Math.min(s, u3.maxLength) : s;
1162
+ let l = t3.length;
1163
+ if (l > p) {
1164
+ throw new SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${p}`);
1165
+ }
1166
+ const f = { type: "bos", value: "", output: u3.prepend || "" };
1167
+ const A = [f];
1168
+ const _ = u3.capture ? "" : "?:";
1169
+ const R = n.globChars(u3.windows);
1170
+ const E = n.extglobChars(R);
1171
+ 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;
1172
+ const globstar = (t4) => `(${_}(?:(?!${L}${t4.dot ? y : h}).)*?)`;
1173
+ const T = u3.dot ? "" : $;
1174
+ const O = u3.dot ? H : v;
1175
+ let k = u3.bash === true ? globstar(u3) : d;
1176
+ if (u3.capture) {
1177
+ k = `(${k})`;
1178
+ }
1179
+ if (typeof u3.noext === "boolean") {
1180
+ u3.noextglob = u3.noext;
1181
+ }
1182
+ 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 };
1183
+ t3 = o.removePrefix(t3, m);
1184
+ l = t3.length;
1185
+ const w = [];
1186
+ const N = [];
1187
+ const I = [];
1188
+ let B = f;
1189
+ let G;
1190
+ const eos = () => m.index === l - 1;
1191
+ const D = m.peek = (e4 = 1) => t3[m.index + e4];
1192
+ const M = m.advance = () => t3[++m.index] || "";
1193
+ const remaining = () => t3.slice(m.index + 1);
1194
+ const consume = (t4 = "", e4 = 0) => {
1195
+ m.consumed += t4;
1196
+ m.index += e4;
1197
+ };
1198
+ const append = (t4) => {
1199
+ m.output += t4.output != null ? t4.output : t4.value;
1200
+ consume(t4.value);
1201
+ };
1202
+ const negate = () => {
1203
+ let t4 = 1;
1204
+ while (D() === "!" && (D(2) !== "(" || D(3) === "?")) {
1205
+ M();
1206
+ m.start++;
1207
+ t4++;
1208
+ }
1209
+ if (t4 % 2 === 0) {
1210
+ return false;
1211
+ }
1212
+ m.negated = true;
1213
+ m.start++;
1214
+ return true;
1215
+ };
1216
+ const increment = (t4) => {
1217
+ m[t4]++;
1218
+ I.push(t4);
1219
+ };
1220
+ const decrement = (t4) => {
1221
+ m[t4]--;
1222
+ I.pop();
1223
+ };
1224
+ const push = (t4) => {
1225
+ if (B.type === "globstar") {
1226
+ const e4 = m.braces > 0 && (t4.type === "comma" || t4.type === "brace");
1227
+ const u4 = t4.extglob === true || w.length && (t4.type === "pipe" || t4.type === "paren");
1228
+ if (t4.type !== "slash" && t4.type !== "paren" && !e4 && !u4) {
1229
+ m.output = m.output.slice(0, -B.output.length);
1230
+ B.type = "star";
1231
+ B.value = "*";
1232
+ B.output = k;
1233
+ m.output += B.output;
1234
+ }
1235
+ }
1236
+ if (w.length && t4.type !== "paren") {
1237
+ w[w.length - 1].inner += t4.value;
1238
+ }
1239
+ if (t4.value || t4.output) append(t4);
1240
+ if (B && B.type === "text" && t4.type === "text") {
1241
+ B.output = (B.output || B.value) + t4.value;
1242
+ B.value += t4.value;
1243
+ return;
1244
+ }
1245
+ t4.prev = B;
1246
+ A.push(t4);
1247
+ B = t4;
1248
+ };
1249
+ const extglobOpen = (t4, e4) => {
1250
+ const n2 = { ...E[e4], conditions: 1, inner: "" };
1251
+ n2.prev = B;
1252
+ n2.parens = m.parens;
1253
+ n2.output = m.output;
1254
+ const o2 = (u3.capture ? "(" : "") + n2.open;
1255
+ increment("parens");
1256
+ push({ type: t4, value: e4, output: m.output ? "" : C });
1257
+ push({ type: "paren", extglob: true, value: M(), output: o2 });
1258
+ w.push(n2);
1259
+ };
1260
+ const extglobClose = (t4) => {
1261
+ let n2 = t4.close + (u3.capture ? ")" : "");
1262
+ let o2;
1263
+ if (t4.type === "negate") {
1264
+ let s2 = k;
1265
+ if (t4.inner && t4.inner.length > 1 && t4.inner.includes("/")) {
1266
+ s2 = globstar(u3);
1267
+ }
1268
+ if (s2 !== k || eos() || /^\)+$/.test(remaining())) {
1269
+ n2 = t4.close = `)$))${s2}`;
1270
+ }
1271
+ if (t4.inner.includes("*") && (o2 = remaining()) && /^\.[^\\/.]+$/.test(o2)) {
1272
+ const u4 = parse(o2, { ...e3, fastpaths: false }).output;
1273
+ n2 = t4.close = `)${u4})${s2})`;
1274
+ }
1275
+ if (t4.prev.type === "bos") {
1276
+ m.negatedExtglob = true;
1277
+ }
1278
+ }
1279
+ push({ type: "paren", extglob: true, value: G, output: n2 });
1280
+ decrement("parens");
1281
+ };
1282
+ if (u3.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(t3)) {
1283
+ let n2 = false;
1284
+ let s2 = t3.replace(i, (t4, e4, u4, o2, s3, r2) => {
1285
+ if (o2 === "\\") {
1286
+ n2 = true;
1287
+ return t4;
1288
+ }
1289
+ if (o2 === "?") {
1290
+ if (e4) {
1291
+ return e4 + o2 + (s3 ? H.repeat(s3.length) : "");
1292
+ }
1293
+ if (r2 === 0) {
1294
+ return O + (s3 ? H.repeat(s3.length) : "");
1295
+ }
1296
+ return H.repeat(u4.length);
1297
+ }
1298
+ if (o2 === ".") {
1299
+ return h.repeat(u4.length);
1300
+ }
1301
+ if (o2 === "*") {
1302
+ if (e4) {
1303
+ return e4 + o2 + (s3 ? k : "");
1304
+ }
1305
+ return k;
1306
+ }
1307
+ return e4 ? t4 : `\\${t4}`;
1308
+ });
1309
+ if (n2 === true) {
1310
+ if (u3.unescape === true) {
1311
+ s2 = s2.replace(/\\/g, "");
1312
+ } else {
1313
+ s2 = s2.replace(/\\+/g, (t4) => t4.length % 2 === 0 ? "\\\\" : t4 ? "\\" : "");
1314
+ }
1315
+ }
1316
+ if (s2 === t3 && u3.contains === true) {
1317
+ m.output = t3;
1318
+ return m;
1319
+ }
1320
+ m.output = o.wrapOutput(s2, m, e3);
1321
+ return m;
1322
+ }
1323
+ while (!eos()) {
1324
+ G = M();
1325
+ if (G === "\0") {
1326
+ continue;
1327
+ }
1328
+ if (G === "\\") {
1329
+ const t4 = D();
1330
+ if (t4 === "/" && u3.bash !== true) {
1331
+ continue;
1332
+ }
1333
+ if (t4 === "." || t4 === ";") {
1334
+ continue;
1335
+ }
1336
+ if (!t4) {
1337
+ G += "\\";
1338
+ push({ type: "text", value: G });
1339
+ continue;
1340
+ }
1341
+ const e5 = /^\\+/.exec(remaining());
1342
+ let n3 = 0;
1343
+ if (e5 && e5[0].length > 2) {
1344
+ n3 = e5[0].length;
1345
+ m.index += n3;
1346
+ if (n3 % 2 !== 0) {
1347
+ G += "\\";
1348
+ }
1349
+ }
1350
+ if (u3.unescape === true) {
1351
+ G = M();
1352
+ } else {
1353
+ G += M();
1354
+ }
1355
+ if (m.brackets === 0) {
1356
+ push({ type: "text", value: G });
1357
+ continue;
1358
+ }
1359
+ }
1360
+ if (m.brackets > 0 && (G !== "]" || B.value === "[" || B.value === "[^")) {
1361
+ if (u3.posix !== false && G === ":") {
1362
+ const t4 = B.value.slice(1);
1363
+ if (t4.includes("[")) {
1364
+ B.posix = true;
1365
+ if (t4.includes(":")) {
1366
+ const t5 = B.value.lastIndexOf("[");
1367
+ const e5 = B.value.slice(0, t5);
1368
+ const u4 = B.value.slice(t5 + 2);
1369
+ const n3 = r[u4];
1370
+ if (n3) {
1371
+ B.value = e5 + n3;
1372
+ m.backtrack = true;
1373
+ M();
1374
+ if (!f.output && A.indexOf(B) === 1) {
1375
+ f.output = C;
1376
+ }
1377
+ continue;
1378
+ }
1379
+ }
1380
+ }
1381
+ }
1382
+ if (G === "[" && D() !== ":" || G === "-" && D() === "]") {
1383
+ G = `\\${G}`;
1384
+ }
1385
+ if (G === "]" && (B.value === "[" || B.value === "[^")) {
1386
+ G = `\\${G}`;
1387
+ }
1388
+ if (u3.posix === true && G === "!" && B.value === "[") {
1389
+ G = "^";
1390
+ }
1391
+ B.value += G;
1392
+ append({ value: G });
1393
+ continue;
1394
+ }
1395
+ if (m.quotes === 1 && G !== '"') {
1396
+ G = o.escapeRegex(G);
1397
+ B.value += G;
1398
+ append({ value: G });
1399
+ continue;
1400
+ }
1401
+ if (G === '"') {
1402
+ m.quotes = m.quotes === 1 ? 0 : 1;
1403
+ if (u3.keepQuotes === true) {
1404
+ push({ type: "text", value: G });
1405
+ }
1406
+ continue;
1407
+ }
1408
+ if (G === "(") {
1409
+ increment("parens");
1410
+ push({ type: "paren", value: G });
1411
+ continue;
1412
+ }
1413
+ if (G === ")") {
1414
+ if (m.parens === 0 && u3.strictBrackets === true) {
1415
+ throw new SyntaxError(syntaxError("opening", "("));
1416
+ }
1417
+ const t4 = w[w.length - 1];
1418
+ if (t4 && m.parens === t4.parens + 1) {
1419
+ extglobClose(w.pop());
1420
+ continue;
1421
+ }
1422
+ push({ type: "paren", value: G, output: m.parens ? ")" : "\\)" });
1423
+ decrement("parens");
1424
+ continue;
1425
+ }
1426
+ if (G === "[") {
1427
+ if (u3.nobracket === true || !remaining().includes("]")) {
1428
+ if (u3.nobracket !== true && u3.strictBrackets === true) {
1429
+ throw new SyntaxError(syntaxError("closing", "]"));
1430
+ }
1431
+ G = `\\${G}`;
1432
+ } else {
1433
+ increment("brackets");
1434
+ }
1435
+ push({ type: "bracket", value: G });
1436
+ continue;
1437
+ }
1438
+ if (G === "]") {
1439
+ if (u3.nobracket === true || B && B.type === "bracket" && B.value.length === 1) {
1440
+ push({ type: "text", value: G, output: `\\${G}` });
1441
+ continue;
1442
+ }
1443
+ if (m.brackets === 0) {
1444
+ if (u3.strictBrackets === true) {
1445
+ throw new SyntaxError(syntaxError("opening", "["));
1446
+ }
1447
+ push({ type: "text", value: G, output: `\\${G}` });
1448
+ continue;
1449
+ }
1450
+ decrement("brackets");
1451
+ const t4 = B.value.slice(1);
1452
+ if (B.posix !== true && t4[0] === "^" && !t4.includes("/")) {
1453
+ G = `/${G}`;
1454
+ }
1455
+ B.value += G;
1456
+ append({ value: G });
1457
+ if (u3.literalBrackets === false || o.hasRegexChars(t4)) {
1458
+ continue;
1459
+ }
1460
+ const e5 = o.escapeRegex(B.value);
1461
+ m.output = m.output.slice(0, -B.value.length);
1462
+ if (u3.literalBrackets === true) {
1463
+ m.output += e5;
1464
+ B.value = e5;
1465
+ continue;
1466
+ }
1467
+ B.value = `(${_}${e5}|${B.value})`;
1468
+ m.output += B.value;
1469
+ continue;
1470
+ }
1471
+ if (G === "{" && u3.nobrace !== true) {
1472
+ increment("braces");
1473
+ const t4 = { type: "brace", value: G, output: "(", outputIndex: m.output.length, tokensIndex: m.tokens.length };
1474
+ N.push(t4);
1475
+ push(t4);
1476
+ continue;
1477
+ }
1478
+ if (G === "}") {
1479
+ const t4 = N[N.length - 1];
1480
+ if (u3.nobrace === true || !t4) {
1481
+ push({ type: "text", value: G, output: G });
1482
+ continue;
1483
+ }
1484
+ let e5 = ")";
1485
+ if (t4.dots === true) {
1486
+ const t5 = A.slice();
1487
+ const n3 = [];
1488
+ for (let e6 = t5.length - 1; e6 >= 0; e6--) {
1489
+ A.pop();
1490
+ if (t5[e6].type === "brace") {
1491
+ break;
1492
+ }
1493
+ if (t5[e6].type !== "dots") {
1494
+ n3.unshift(t5[e6].value);
1495
+ }
1496
+ }
1497
+ e5 = expandRange(n3, u3);
1498
+ m.backtrack = true;
1499
+ }
1500
+ if (t4.comma !== true && t4.dots !== true) {
1501
+ const u4 = m.output.slice(0, t4.outputIndex);
1502
+ const n3 = m.tokens.slice(t4.tokensIndex);
1503
+ t4.value = t4.output = "\\{";
1504
+ G = e5 = "\\}";
1505
+ m.output = u4;
1506
+ for (const t5 of n3) {
1507
+ m.output += t5.output || t5.value;
1508
+ }
1509
+ }
1510
+ push({ type: "brace", value: G, output: e5 });
1511
+ decrement("braces");
1512
+ N.pop();
1513
+ continue;
1514
+ }
1515
+ if (G === "|") {
1516
+ if (w.length > 0) {
1517
+ w[w.length - 1].conditions++;
1518
+ }
1519
+ push({ type: "text", value: G });
1520
+ continue;
1521
+ }
1522
+ if (G === ",") {
1523
+ let t4 = G;
1524
+ const e5 = N[N.length - 1];
1525
+ if (e5 && I[I.length - 1] === "braces") {
1526
+ e5.comma = true;
1527
+ t4 = "|";
1528
+ }
1529
+ push({ type: "comma", value: G, output: t4 });
1530
+ continue;
1531
+ }
1532
+ if (G === "/") {
1533
+ if (B.type === "dot" && m.index === m.start + 1) {
1534
+ m.start = m.index + 1;
1535
+ m.consumed = "";
1536
+ m.output = "";
1537
+ A.pop();
1538
+ B = f;
1539
+ continue;
1540
+ }
1541
+ push({ type: "slash", value: G, output: b });
1542
+ continue;
1543
+ }
1544
+ if (G === ".") {
1545
+ if (m.braces > 0 && B.type === "dot") {
1546
+ if (B.value === ".") B.output = h;
1547
+ const t4 = N[N.length - 1];
1548
+ B.type = "dots";
1549
+ B.output += G;
1550
+ B.value += G;
1551
+ t4.dots = true;
1552
+ continue;
1553
+ }
1554
+ if (m.braces + m.parens === 0 && B.type !== "bos" && B.type !== "slash") {
1555
+ push({ type: "text", value: G, output: h });
1556
+ continue;
1557
+ }
1558
+ push({ type: "dot", value: G, output: h });
1559
+ continue;
1560
+ }
1561
+ if (G === "?") {
1562
+ const t4 = B && B.value === "(";
1563
+ if (!t4 && u3.noextglob !== true && D() === "(" && D(2) !== "?") {
1564
+ extglobOpen("qmark", G);
1565
+ continue;
1566
+ }
1567
+ if (B && B.type === "paren") {
1568
+ const t5 = D();
1569
+ let e5 = G;
1570
+ if (B.value === "(" && !/[!=<:]/.test(t5) || t5 === "<" && !/<([!=]|\w+>)/.test(remaining())) {
1571
+ e5 = `\\${G}`;
1572
+ }
1573
+ push({ type: "text", value: G, output: e5 });
1574
+ continue;
1575
+ }
1576
+ if (u3.dot !== true && (B.type === "slash" || B.type === "bos")) {
1577
+ push({ type: "qmark", value: G, output: v });
1578
+ continue;
1579
+ }
1580
+ push({ type: "qmark", value: G, output: H });
1581
+ continue;
1582
+ }
1583
+ if (G === "!") {
1584
+ if (u3.noextglob !== true && D() === "(") {
1585
+ if (D(2) !== "?" || !/[!=<:]/.test(D(3))) {
1586
+ extglobOpen("negate", G);
1587
+ continue;
1588
+ }
1589
+ }
1590
+ if (u3.nonegate !== true && m.index === 0) {
1591
+ negate();
1592
+ continue;
1593
+ }
1594
+ }
1595
+ if (G === "+") {
1596
+ if (u3.noextglob !== true && D() === "(" && D(2) !== "?") {
1597
+ extglobOpen("plus", G);
1598
+ continue;
1599
+ }
1600
+ if (B && B.value === "(" || u3.regex === false) {
1601
+ push({ type: "plus", value: G, output: g });
1602
+ continue;
1603
+ }
1604
+ if (B && (B.type === "bracket" || B.type === "paren" || B.type === "brace") || m.parens > 0) {
1605
+ push({ type: "plus", value: G });
1606
+ continue;
1607
+ }
1608
+ push({ type: "plus", value: g });
1609
+ continue;
1610
+ }
1611
+ if (G === "@") {
1612
+ if (u3.noextglob !== true && D() === "(" && D(2) !== "?") {
1613
+ push({ type: "at", extglob: true, value: G, output: "" });
1614
+ continue;
1615
+ }
1616
+ push({ type: "text", value: G });
1617
+ continue;
1618
+ }
1619
+ if (G !== "*") {
1620
+ if (G === "$" || G === "^") {
1621
+ G = `\\${G}`;
1622
+ }
1623
+ const t4 = a.exec(remaining());
1624
+ if (t4) {
1625
+ G += t4[0];
1626
+ m.index += t4[0].length;
1627
+ }
1628
+ push({ type: "text", value: G });
1629
+ continue;
1630
+ }
1631
+ if (B && (B.type === "globstar" || B.star === true)) {
1632
+ B.type = "star";
1633
+ B.star = true;
1634
+ B.value += G;
1635
+ B.output = k;
1636
+ m.backtrack = true;
1637
+ m.globstar = true;
1638
+ consume(G);
1639
+ continue;
1640
+ }
1641
+ let e4 = remaining();
1642
+ if (u3.noextglob !== true && /^\([^?]/.test(e4)) {
1643
+ extglobOpen("star", G);
1644
+ continue;
1645
+ }
1646
+ if (B.type === "star") {
1647
+ if (u3.noglobstar === true) {
1648
+ consume(G);
1649
+ continue;
1650
+ }
1651
+ const n3 = B.prev;
1652
+ const o2 = n3.prev;
1653
+ const s2 = n3.type === "slash" || n3.type === "bos";
1654
+ const r2 = o2 && (o2.type === "star" || o2.type === "globstar");
1655
+ if (u3.bash === true && (!s2 || e4[0] && e4[0] !== "/")) {
1656
+ push({ type: "star", value: G, output: "" });
1657
+ continue;
1658
+ }
1659
+ const a2 = m.braces > 0 && (n3.type === "comma" || n3.type === "brace");
1660
+ const i2 = w.length && (n3.type === "pipe" || n3.type === "paren");
1661
+ if (!s2 && n3.type !== "paren" && !a2 && !i2) {
1662
+ push({ type: "star", value: G, output: "" });
1663
+ continue;
1664
+ }
1665
+ while (e4.slice(0, 3) === "/**") {
1666
+ const u4 = t3[m.index + 4];
1667
+ if (u4 && u4 !== "/") {
1668
+ break;
1669
+ }
1670
+ e4 = e4.slice(3);
1671
+ consume("/**", 3);
1672
+ }
1673
+ if (n3.type === "bos" && eos()) {
1674
+ B.type = "globstar";
1675
+ B.value += G;
1676
+ B.output = globstar(u3);
1677
+ m.output = B.output;
1678
+ m.globstar = true;
1679
+ consume(G);
1680
+ continue;
1681
+ }
1682
+ if (n3.type === "slash" && n3.prev.type !== "bos" && !r2 && eos()) {
1683
+ m.output = m.output.slice(0, -(n3.output + B.output).length);
1684
+ n3.output = `(?:${n3.output}`;
1685
+ B.type = "globstar";
1686
+ B.output = globstar(u3) + (u3.strictSlashes ? ")" : "|$)");
1687
+ B.value += G;
1688
+ m.globstar = true;
1689
+ m.output += n3.output + B.output;
1690
+ consume(G);
1691
+ continue;
1692
+ }
1693
+ if (n3.type === "slash" && n3.prev.type !== "bos" && e4[0] === "/") {
1694
+ const t4 = e4[1] !== void 0 ? "|$" : "";
1695
+ m.output = m.output.slice(0, -(n3.output + B.output).length);
1696
+ n3.output = `(?:${n3.output}`;
1697
+ B.type = "globstar";
1698
+ B.output = `${globstar(u3)}${b}|${b}${t4})`;
1699
+ B.value += G;
1700
+ m.output += n3.output + B.output;
1701
+ m.globstar = true;
1702
+ consume(G + M());
1703
+ push({ type: "slash", value: "/", output: "" });
1704
+ continue;
1705
+ }
1706
+ if (n3.type === "bos" && e4[0] === "/") {
1707
+ B.type = "globstar";
1708
+ B.value += G;
1709
+ B.output = `(?:^|${b}|${globstar(u3)}${b})`;
1710
+ m.output = B.output;
1711
+ m.globstar = true;
1712
+ consume(G + M());
1713
+ push({ type: "slash", value: "/", output: "" });
1714
+ continue;
1715
+ }
1716
+ m.output = m.output.slice(0, -B.output.length);
1717
+ B.type = "globstar";
1718
+ B.output = globstar(u3);
1719
+ B.value += G;
1720
+ m.output += B.output;
1721
+ m.globstar = true;
1722
+ consume(G);
1723
+ continue;
1724
+ }
1725
+ const n2 = { type: "star", value: G, output: k };
1726
+ if (u3.bash === true) {
1727
+ n2.output = ".*?";
1728
+ if (B.type === "bos" || B.type === "slash") {
1729
+ n2.output = T + n2.output;
1730
+ }
1731
+ push(n2);
1732
+ continue;
1733
+ }
1734
+ if (B && (B.type === "bracket" || B.type === "paren") && u3.regex === true) {
1735
+ n2.output = G;
1736
+ push(n2);
1737
+ continue;
1738
+ }
1739
+ if (m.index === m.start || B.type === "slash" || B.type === "dot") {
1740
+ if (B.type === "dot") {
1741
+ m.output += x;
1742
+ B.output += x;
1743
+ } else if (u3.dot === true) {
1744
+ m.output += S;
1745
+ B.output += S;
1746
+ } else {
1747
+ m.output += T;
1748
+ B.output += T;
1749
+ }
1750
+ if (D() !== "*") {
1751
+ m.output += C;
1752
+ B.output += C;
1753
+ }
1754
+ }
1755
+ push(n2);
1756
+ }
1757
+ while (m.brackets > 0) {
1758
+ if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
1759
+ m.output = o.escapeLast(m.output, "[");
1760
+ decrement("brackets");
1761
+ }
1762
+ while (m.parens > 0) {
1763
+ if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
1764
+ m.output = o.escapeLast(m.output, "(");
1765
+ decrement("parens");
1766
+ }
1767
+ while (m.braces > 0) {
1768
+ if (u3.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
1769
+ m.output = o.escapeLast(m.output, "{");
1770
+ decrement("braces");
1771
+ }
1772
+ if (u3.strictSlashes !== true && (B.type === "star" || B.type === "bracket")) {
1773
+ push({ type: "maybe_slash", value: "", output: `${b}?` });
1774
+ }
1775
+ if (m.backtrack === true) {
1776
+ m.output = "";
1777
+ for (const t4 of m.tokens) {
1778
+ m.output += t4.output != null ? t4.output : t4.value;
1779
+ if (t4.suffix) {
1780
+ m.output += t4.suffix;
1781
+ }
1782
+ }
1783
+ }
1784
+ return m;
1785
+ };
1786
+ parse.fastpaths = (t3, e3) => {
1787
+ const u3 = { ...e3 };
1788
+ const r2 = typeof u3.maxLength === "number" ? Math.min(s, u3.maxLength) : s;
1789
+ const a2 = t3.length;
1790
+ if (a2 > r2) {
1791
+ throw new SyntaxError(`Input length: ${a2}, exceeds maximum allowed length: ${r2}`);
1792
+ }
1793
+ t3 = c[t3] || t3;
1794
+ 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);
1795
+ const g = u3.dot ? _ : A;
1796
+ const b = u3.dot ? R : A;
1797
+ const C = u3.capture ? "" : "?:";
1798
+ const y = { negated: false, prefix: "" };
1799
+ let $ = u3.bash === true ? ".*?" : E;
1800
+ if (u3.capture) {
1801
+ $ = `(${$})`;
1802
+ }
1803
+ const globstar = (t4) => {
1804
+ if (t4.noglobstar === true) return $;
1805
+ return `(${C}(?:(?!${h}${t4.dot ? f : i2}).)*?)`;
1806
+ };
1807
+ const create = (t4) => {
1808
+ switch (t4) {
1809
+ case "*":
1810
+ return `${g}${l}${$}`;
1811
+ case ".*":
1812
+ return `${i2}${l}${$}`;
1813
+ case "*.*":
1814
+ return `${g}${$}${i2}${l}${$}`;
1815
+ case "*/*":
1816
+ return `${g}${$}${p}${l}${b}${$}`;
1817
+ case "**":
1818
+ return g + globstar(u3);
1819
+ case "**/*":
1820
+ return `(?:${g}${globstar(u3)}${p})?${b}${l}${$}`;
1821
+ case "**/*.*":
1822
+ return `(?:${g}${globstar(u3)}${p})?${b}${$}${i2}${l}${$}`;
1823
+ case "**/.*":
1824
+ return `(?:${g}${globstar(u3)}${p})?${i2}${l}${$}`;
1825
+ default: {
1826
+ const e4 = /^(.*?)\.(\w+)$/.exec(t4);
1827
+ if (!e4) return;
1828
+ const u4 = create(e4[1]);
1829
+ if (!u4) return;
1830
+ return u4 + i2 + e4[2];
1831
+ }
1832
+ }
1833
+ };
1834
+ const x = o.removePrefix(t3, y);
1835
+ let S = create(x);
1836
+ if (S && u3.strictSlashes !== true) {
1837
+ S += `${p}?`;
1838
+ }
1839
+ return S;
1840
+ };
1841
+ t2.exports = parse;
1842
+ }, 510: (t2, e2, u2) => {
1843
+ const n = u2(716);
1844
+ const o = u2(697);
1845
+ const s = u2(96);
1846
+ const r = u2(154);
1847
+ const isObject = (t3) => t3 && typeof t3 === "object" && !Array.isArray(t3);
1848
+ const picomatch = (t3, e3, u3 = false) => {
1849
+ if (Array.isArray(t3)) {
1850
+ const n3 = t3.map((t4) => picomatch(t4, e3, u3));
1851
+ const arrayMatcher = (t4) => {
1852
+ for (const e4 of n3) {
1853
+ const u4 = e4(t4);
1854
+ if (u4) return u4;
1855
+ }
1856
+ return false;
1857
+ };
1858
+ return arrayMatcher;
1859
+ }
1860
+ const n2 = isObject(t3) && t3.tokens && t3.input;
1861
+ if (t3 === "" || typeof t3 !== "string" && !n2) {
1862
+ throw new TypeError("Expected pattern to be a non-empty string");
1863
+ }
1864
+ const o2 = e3 || {};
1865
+ const s2 = o2.windows;
1866
+ const r2 = n2 ? picomatch.compileRe(t3, e3) : picomatch.makeRe(t3, e3, false, true);
1867
+ const a = r2.state;
1868
+ delete r2.state;
1869
+ let isIgnored = () => false;
1870
+ if (o2.ignore) {
1871
+ const t4 = { ...e3, ignore: null, onMatch: null, onResult: null };
1872
+ isIgnored = picomatch(o2.ignore, t4, u3);
1873
+ }
1874
+ const matcher = (u4, n3 = false) => {
1875
+ const { isMatch: i, match: c, output: p } = picomatch.test(u4, r2, e3, { glob: t3, posix: s2 });
1876
+ const l = { glob: t3, state: a, regex: r2, posix: s2, input: u4, output: p, match: c, isMatch: i };
1877
+ if (typeof o2.onResult === "function") {
1878
+ o2.onResult(l);
1879
+ }
1880
+ if (i === false) {
1881
+ l.isMatch = false;
1882
+ return n3 ? l : false;
1883
+ }
1884
+ if (isIgnored(u4)) {
1885
+ if (typeof o2.onIgnore === "function") {
1886
+ o2.onIgnore(l);
1887
+ }
1888
+ l.isMatch = false;
1889
+ return n3 ? l : false;
1890
+ }
1891
+ if (typeof o2.onMatch === "function") {
1892
+ o2.onMatch(l);
1893
+ }
1894
+ return n3 ? l : true;
1895
+ };
1896
+ if (u3) {
1897
+ matcher.state = a;
1898
+ }
1899
+ return matcher;
1900
+ };
1901
+ picomatch.test = (t3, e3, u3, { glob: n2, posix: o2 } = {}) => {
1902
+ if (typeof t3 !== "string") {
1903
+ throw new TypeError("Expected input to be a string");
1904
+ }
1905
+ if (t3 === "") {
1906
+ return { isMatch: false, output: "" };
1907
+ }
1908
+ const r2 = u3 || {};
1909
+ const a = r2.format || (o2 ? s.toPosixSlashes : null);
1910
+ let i = t3 === n2;
1911
+ let c = i && a ? a(t3) : t3;
1912
+ if (i === false) {
1913
+ c = a ? a(t3) : t3;
1914
+ i = c === n2;
1915
+ }
1916
+ if (i === false || r2.capture === true) {
1917
+ if (r2.matchBase === true || r2.basename === true) {
1918
+ i = picomatch.matchBase(t3, e3, u3, o2);
1919
+ } else {
1920
+ i = e3.exec(c);
1921
+ }
1922
+ }
1923
+ return { isMatch: Boolean(i), match: i, output: c };
1924
+ };
1925
+ picomatch.matchBase = (t3, e3, u3) => {
1926
+ const n2 = e3 instanceof RegExp ? e3 : picomatch.makeRe(e3, u3);
1927
+ return n2.test(s.basename(t3));
1928
+ };
1929
+ picomatch.isMatch = (t3, e3, u3) => picomatch(e3, u3)(t3);
1930
+ picomatch.parse = (t3, e3) => {
1931
+ if (Array.isArray(t3)) return t3.map((t4) => picomatch.parse(t4, e3));
1932
+ return o(t3, { ...e3, fastpaths: false });
1933
+ };
1934
+ picomatch.scan = (t3, e3) => n(t3, e3);
1935
+ picomatch.compileRe = (t3, e3, u3 = false, n2 = false) => {
1936
+ if (u3 === true) {
1937
+ return t3.output;
1938
+ }
1939
+ const o2 = e3 || {};
1940
+ const s2 = o2.contains ? "" : "^";
1941
+ const r2 = o2.contains ? "" : "$";
1942
+ let a = `${s2}(?:${t3.output})${r2}`;
1943
+ if (t3 && t3.negated === true) {
1944
+ a = `^(?!${a}).*$`;
1945
+ }
1946
+ const i = picomatch.toRegex(a, e3);
1947
+ if (n2 === true) {
1948
+ i.state = t3;
1949
+ }
1950
+ return i;
1951
+ };
1952
+ picomatch.makeRe = (t3, e3 = {}, u3 = false, n2 = false) => {
1953
+ if (!t3 || typeof t3 !== "string") {
1954
+ throw new TypeError("Expected a non-empty string");
1955
+ }
1956
+ let s2 = { negated: false, fastpaths: true };
1957
+ if (e3.fastpaths !== false && (t3[0] === "." || t3[0] === "*")) {
1958
+ s2.output = o.fastpaths(t3, e3);
1959
+ }
1960
+ if (!s2.output) {
1961
+ s2 = o(t3, e3);
1962
+ }
1963
+ return picomatch.compileRe(s2, e3, u3, n2);
1964
+ };
1965
+ picomatch.toRegex = (t3, e3) => {
1966
+ try {
1967
+ const u3 = e3 || {};
1968
+ return new RegExp(t3, u3.flags || (u3.nocase ? "i" : ""));
1969
+ } catch (t4) {
1970
+ if (e3 && e3.debug === true) throw t4;
1971
+ return /$^/;
1972
+ }
1973
+ };
1974
+ picomatch.constants = r;
1975
+ t2.exports = picomatch;
1976
+ }, 716: (t2, e2, u2) => {
1977
+ const n = u2(96);
1978
+ 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);
1979
+ const isPathSeparator = (t3) => t3 === p || t3 === r;
1980
+ const depth = (t3) => {
1981
+ if (t3.isPrefix !== true) {
1982
+ t3.depth = t3.isGlobstar ? Infinity : 1;
1983
+ }
1984
+ };
1985
+ const scan = (t3, e3) => {
1986
+ const u3 = e3 || {};
1987
+ const b = t3.length - 1;
1988
+ const C = u3.parts === true || u3.scanToEnd === true;
1989
+ const y = [];
1990
+ const $ = [];
1991
+ const x = [];
1992
+ let S = t3;
1993
+ let H = -1;
1994
+ let v = 0;
1995
+ let d = 0;
1996
+ let L = false;
1997
+ let T = false;
1998
+ let O = false;
1999
+ let k = false;
2000
+ let m = false;
2001
+ let w = false;
2002
+ let N = false;
2003
+ let I = false;
2004
+ let B = false;
2005
+ let G = false;
2006
+ let D = 0;
2007
+ let M;
2008
+ let P;
2009
+ let K = { value: "", depth: 0, isGlob: false };
2010
+ const eos = () => H >= b;
2011
+ const peek = () => S.charCodeAt(H + 1);
2012
+ const advance = () => {
2013
+ M = P;
2014
+ return S.charCodeAt(++H);
2015
+ };
2016
+ while (H < b) {
2017
+ P = advance();
2018
+ let t4;
2019
+ if (P === r) {
2020
+ N = K.backslashes = true;
2021
+ P = advance();
2022
+ if (P === l) {
2023
+ w = true;
2024
+ }
2025
+ continue;
2026
+ }
2027
+ if (w === true || P === l) {
2028
+ D++;
2029
+ while (eos() !== true && (P = advance())) {
2030
+ if (P === r) {
2031
+ N = K.backslashes = true;
2032
+ advance();
2033
+ continue;
2034
+ }
2035
+ if (P === l) {
2036
+ D++;
2037
+ continue;
2038
+ }
2039
+ if (w !== true && P === i && (P = advance()) === i) {
2040
+ L = K.isBrace = true;
2041
+ O = K.isGlob = true;
2042
+ G = true;
2043
+ if (C === true) {
2044
+ continue;
2045
+ }
2046
+ break;
2047
+ }
2048
+ if (w !== true && P === a) {
2049
+ L = K.isBrace = true;
2050
+ O = K.isGlob = true;
2051
+ G = true;
2052
+ if (C === true) {
2053
+ continue;
2054
+ }
2055
+ break;
2056
+ }
2057
+ if (P === E) {
2058
+ D--;
2059
+ if (D === 0) {
2060
+ w = false;
2061
+ L = K.isBrace = true;
2062
+ G = true;
2063
+ break;
2064
+ }
2065
+ }
2066
+ }
2067
+ if (C === true) {
2068
+ continue;
2069
+ }
2070
+ break;
2071
+ }
2072
+ if (P === p) {
2073
+ y.push(H);
2074
+ $.push(K);
2075
+ K = { value: "", depth: 0, isGlob: false };
2076
+ if (G === true) continue;
2077
+ if (M === i && H === v + 1) {
2078
+ v += 2;
2079
+ continue;
2080
+ }
2081
+ d = H + 1;
2082
+ continue;
2083
+ }
2084
+ if (u3.noext !== true) {
2085
+ const t5 = P === _ || P === s || P === o || P === R || P === c;
2086
+ if (t5 === true && peek() === f) {
2087
+ O = K.isGlob = true;
2088
+ k = K.isExtglob = true;
2089
+ G = true;
2090
+ if (P === c && H === v) {
2091
+ B = true;
2092
+ }
2093
+ if (C === true) {
2094
+ while (eos() !== true && (P = advance())) {
2095
+ if (P === r) {
2096
+ N = K.backslashes = true;
2097
+ P = advance();
2098
+ continue;
2099
+ }
2100
+ if (P === h) {
2101
+ O = K.isGlob = true;
2102
+ G = true;
2103
+ break;
2104
+ }
2105
+ }
2106
+ continue;
2107
+ }
2108
+ break;
2109
+ }
2110
+ }
2111
+ if (P === o) {
2112
+ if (M === o) m = K.isGlobstar = true;
2113
+ O = K.isGlob = true;
2114
+ G = true;
2115
+ if (C === true) {
2116
+ continue;
2117
+ }
2118
+ break;
2119
+ }
2120
+ if (P === R) {
2121
+ O = K.isGlob = true;
2122
+ G = true;
2123
+ if (C === true) {
2124
+ continue;
2125
+ }
2126
+ break;
2127
+ }
2128
+ if (P === A) {
2129
+ while (eos() !== true && (t4 = advance())) {
2130
+ if (t4 === r) {
2131
+ N = K.backslashes = true;
2132
+ advance();
2133
+ continue;
2134
+ }
2135
+ if (t4 === g) {
2136
+ T = K.isBracket = true;
2137
+ O = K.isGlob = true;
2138
+ G = true;
2139
+ break;
2140
+ }
2141
+ }
2142
+ if (C === true) {
2143
+ continue;
2144
+ }
2145
+ break;
2146
+ }
2147
+ if (u3.nonegate !== true && P === c && H === v) {
2148
+ I = K.negated = true;
2149
+ v++;
2150
+ continue;
2151
+ }
2152
+ if (u3.noparen !== true && P === f) {
2153
+ O = K.isGlob = true;
2154
+ if (C === true) {
2155
+ while (eos() !== true && (P = advance())) {
2156
+ if (P === f) {
2157
+ N = K.backslashes = true;
2158
+ P = advance();
2159
+ continue;
2160
+ }
2161
+ if (P === h) {
2162
+ G = true;
2163
+ break;
2164
+ }
2165
+ }
2166
+ continue;
2167
+ }
2168
+ break;
2169
+ }
2170
+ if (O === true) {
2171
+ G = true;
2172
+ if (C === true) {
2173
+ continue;
2174
+ }
2175
+ break;
2176
+ }
2177
+ }
2178
+ if (u3.noext === true) {
2179
+ k = false;
2180
+ O = false;
2181
+ }
2182
+ let U = S;
2183
+ let X = "";
2184
+ let F = "";
2185
+ if (v > 0) {
2186
+ X = S.slice(0, v);
2187
+ S = S.slice(v);
2188
+ d -= v;
2189
+ }
2190
+ if (U && O === true && d > 0) {
2191
+ U = S.slice(0, d);
2192
+ F = S.slice(d);
2193
+ } else if (O === true) {
2194
+ U = "";
2195
+ F = S;
2196
+ } else {
2197
+ U = S;
2198
+ }
2199
+ if (U && U !== "" && U !== "/" && U !== S) {
2200
+ if (isPathSeparator(U.charCodeAt(U.length - 1))) {
2201
+ U = U.slice(0, -1);
2202
+ }
2203
+ }
2204
+ if (u3.unescape === true) {
2205
+ if (F) F = n.removeBackslashes(F);
2206
+ if (U && N === true) {
2207
+ U = n.removeBackslashes(U);
2208
+ }
2209
+ }
2210
+ 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 };
2211
+ if (u3.tokens === true) {
2212
+ Q.maxDepth = 0;
2213
+ if (!isPathSeparator(P)) {
2214
+ $.push(K);
2215
+ }
2216
+ Q.tokens = $;
2217
+ }
2218
+ if (u3.parts === true || u3.tokens === true) {
2219
+ let e4;
2220
+ for (let n2 = 0; n2 < y.length; n2++) {
2221
+ const o2 = e4 ? e4 + 1 : v;
2222
+ const s2 = y[n2];
2223
+ const r2 = t3.slice(o2, s2);
2224
+ if (u3.tokens) {
2225
+ if (n2 === 0 && v !== 0) {
2226
+ $[n2].isPrefix = true;
2227
+ $[n2].value = X;
2228
+ } else {
2229
+ $[n2].value = r2;
2230
+ }
2231
+ depth($[n2]);
2232
+ Q.maxDepth += $[n2].depth;
2233
+ }
2234
+ if (n2 !== 0 || r2 !== "") {
2235
+ x.push(r2);
2236
+ }
2237
+ e4 = s2;
2238
+ }
2239
+ if (e4 && e4 + 1 < t3.length) {
2240
+ const n2 = t3.slice(e4 + 1);
2241
+ x.push(n2);
2242
+ if (u3.tokens) {
2243
+ $[$.length - 1].value = n2;
2244
+ depth($[$.length - 1]);
2245
+ Q.maxDepth += $[$.length - 1].depth;
2246
+ }
2247
+ }
2248
+ Q.slashes = y;
2249
+ Q.parts = x;
2250
+ }
2251
+ return Q;
2252
+ };
2253
+ t2.exports = scan;
2254
+ }, 96: (t2, e2, u2) => {
2255
+ const { REGEX_BACKSLASH: n, REGEX_REMOVE_BACKSLASH: o, REGEX_SPECIAL_CHARS: s, REGEX_SPECIAL_CHARS_GLOBAL: r } = u2(154);
2256
+ e2.isObject = (t3) => t3 !== null && typeof t3 === "object" && !Array.isArray(t3);
2257
+ e2.hasRegexChars = (t3) => s.test(t3);
2258
+ e2.isRegexChar = (t3) => t3.length === 1 && e2.hasRegexChars(t3);
2259
+ e2.escapeRegex = (t3) => t3.replace(r, "\\$1");
2260
+ e2.toPosixSlashes = (t3) => t3.replace(n, "/");
2261
+ e2.removeBackslashes = (t3) => t3.replace(o, (t4) => t4 === "\\" ? "" : t4);
2262
+ e2.escapeLast = (t3, u3, n2) => {
2263
+ const o2 = t3.lastIndexOf(u3, n2);
2264
+ if (o2 === -1) return t3;
2265
+ if (t3[o2 - 1] === "\\") return e2.escapeLast(t3, u3, o2 - 1);
2266
+ return `${t3.slice(0, o2)}\\${t3.slice(o2)}`;
2267
+ };
2268
+ e2.removePrefix = (t3, e3 = {}) => {
2269
+ let u3 = t3;
2270
+ if (u3.startsWith("./")) {
2271
+ u3 = u3.slice(2);
2272
+ e3.prefix = "./";
2273
+ }
2274
+ return u3;
2275
+ };
2276
+ e2.wrapOutput = (t3, e3 = {}, u3 = {}) => {
2277
+ const n2 = u3.contains ? "" : "^";
2278
+ const o2 = u3.contains ? "" : "$";
2279
+ let s2 = `${n2}(?:${t3})${o2}`;
2280
+ if (e3.negated === true) {
2281
+ s2 = `(?:^(?!${s2}).*$)`;
2282
+ }
2283
+ return s2;
2284
+ };
2285
+ e2.basename = (t3, { windows: e3 } = {}) => {
2286
+ const u3 = t3.split(e3 ? /[\\/]/ : "/");
2287
+ const n2 = u3[u3.length - 1];
2288
+ if (n2 === "") {
2289
+ return u3[u3.length - 2];
2290
+ }
2291
+ return n2;
2292
+ };
2293
+ } };
2294
+ var e = {};
2295
+ function __nccwpck_require__(u2) {
2296
+ var n = e[u2];
2297
+ if (n !== void 0) {
2298
+ return n.exports;
2299
+ }
2300
+ var o = e[u2] = { exports: {} };
2301
+ var s = true;
2302
+ try {
2303
+ t[u2](o, o.exports, __nccwpck_require__);
2304
+ s = false;
2305
+ } finally {
2306
+ if (s) delete e[u2];
2307
+ }
2308
+ return o.exports;
2309
+ }
2310
+ if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
2311
+ var u = __nccwpck_require__(170);
2312
+ module2.exports = u;
2313
+ })();
2314
+ }
2315
+ });
2316
+
2317
+ // node_modules/next/dist/shared/lib/match-local-pattern.js
2318
+ var require_match_local_pattern = __commonJS({
2319
+ "node_modules/next/dist/shared/lib/match-local-pattern.js"(exports2) {
2320
+ "use strict";
2321
+ Object.defineProperty(exports2, "__esModule", {
2322
+ value: true
2323
+ });
2324
+ function _export(target, all) {
2325
+ for (var name in all) Object.defineProperty(target, name, {
2326
+ enumerable: true,
2327
+ get: all[name]
2328
+ });
2329
+ }
2330
+ _export(exports2, {
2331
+ hasLocalMatch: function() {
2332
+ return hasLocalMatch;
2333
+ },
2334
+ matchLocalPattern: function() {
2335
+ return matchLocalPattern;
2336
+ }
2337
+ });
2338
+ var _picomatch = require_picomatch();
2339
+ function matchLocalPattern(pattern, url) {
2340
+ if (pattern.search !== void 0) {
2341
+ if (pattern.search !== url.search) {
2342
+ return false;
2343
+ }
2344
+ }
2345
+ var _pattern_pathname;
2346
+ if (!(0, _picomatch.makeRe)((_pattern_pathname = pattern.pathname) != null ? _pattern_pathname : "**", {
2347
+ dot: true
2348
+ }).test(url.pathname)) {
2349
+ return false;
2350
+ }
2351
+ return true;
2352
+ }
2353
+ function hasLocalMatch(localPatterns, urlPathAndQuery) {
2354
+ if (!localPatterns) {
2355
+ return true;
2356
+ }
2357
+ const url = new URL(urlPathAndQuery, "http://n");
2358
+ return localPatterns.some((p) => matchLocalPattern(p, url));
2359
+ }
2360
+ }
2361
+ });
2362
+
2363
+ // node_modules/next/dist/shared/lib/match-remote-pattern.js
2364
+ var require_match_remote_pattern = __commonJS({
2365
+ "node_modules/next/dist/shared/lib/match-remote-pattern.js"(exports2) {
2366
+ "use strict";
2367
+ Object.defineProperty(exports2, "__esModule", {
2368
+ value: true
2369
+ });
2370
+ function _export(target, all) {
2371
+ for (var name in all) Object.defineProperty(target, name, {
2372
+ enumerable: true,
2373
+ get: all[name]
2374
+ });
2375
+ }
2376
+ _export(exports2, {
2377
+ hasRemoteMatch: function() {
2378
+ return hasRemoteMatch;
2379
+ },
2380
+ matchRemotePattern: function() {
2381
+ return matchRemotePattern;
2382
+ }
2383
+ });
2384
+ var _picomatch = require_picomatch();
2385
+ function matchRemotePattern(pattern, url) {
2386
+ if (pattern.protocol !== void 0) {
2387
+ if (pattern.protocol.replace(/:$/, "") !== url.protocol.replace(/:$/, "")) {
2388
+ return false;
2389
+ }
2390
+ }
2391
+ if (pattern.port !== void 0) {
2392
+ if (pattern.port !== url.port) {
2393
+ return false;
2394
+ }
2395
+ }
2396
+ if (pattern.hostname === void 0) {
2397
+ throw Object.defineProperty(new Error("Pattern should define hostname but found\n" + JSON.stringify(pattern)), "__NEXT_ERROR_CODE", {
2398
+ value: "E410",
2399
+ enumerable: false,
2400
+ configurable: true
2401
+ });
2402
+ } else {
2403
+ if (!(0, _picomatch.makeRe)(pattern.hostname).test(url.hostname)) {
2404
+ return false;
2405
+ }
2406
+ }
2407
+ if (pattern.search !== void 0) {
2408
+ if (pattern.search !== url.search) {
2409
+ return false;
2410
+ }
2411
+ }
2412
+ var _pattern_pathname;
2413
+ if (!(0, _picomatch.makeRe)((_pattern_pathname = pattern.pathname) != null ? _pattern_pathname : "**", {
2414
+ dot: true
2415
+ }).test(url.pathname)) {
2416
+ return false;
2417
+ }
2418
+ return true;
2419
+ }
2420
+ function hasRemoteMatch(domains, remotePatterns, url) {
2421
+ return domains.some((domain) => url.hostname === domain) || remotePatterns.some((p) => matchRemotePattern(p, url));
2422
+ }
2423
+ }
2424
+ });
2425
+
2426
+ // node_modules/next/dist/shared/lib/image-loader.js
2427
+ var require_image_loader = __commonJS({
2428
+ "node_modules/next/dist/shared/lib/image-loader.js"(exports2) {
2429
+ "use strict";
2430
+ Object.defineProperty(exports2, "__esModule", {
2431
+ value: true
2432
+ });
2433
+ Object.defineProperty(exports2, "default", {
2434
+ enumerable: true,
2435
+ get: function() {
2436
+ return _default;
2437
+ }
2438
+ });
2439
+ var DEFAULT_Q = 75;
2440
+ function defaultLoader(param) {
2441
+ let { config, src, width, quality } = param;
2442
+ var _config_qualities;
2443
+ if (process.env.NODE_ENV !== "production") {
2444
+ const missingValues = [];
2445
+ if (!src) missingValues.push("src");
2446
+ if (!width) missingValues.push("width");
2447
+ if (missingValues.length > 0) {
2448
+ 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({
2449
+ src,
2450
+ width,
2451
+ quality
2452
+ })), "__NEXT_ERROR_CODE", {
2453
+ value: "E188",
2454
+ enumerable: false,
2455
+ configurable: true
2456
+ });
2457
+ }
2458
+ if (src.startsWith("//")) {
2459
+ 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", {
2460
+ value: "E360",
2461
+ enumerable: false,
2462
+ configurable: true
2463
+ });
2464
+ }
2465
+ if (src.startsWith("/") && config.localPatterns) {
2466
+ if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
2467
+ process.env.NEXT_RUNTIME !== "edge") {
2468
+ const { hasLocalMatch } = require_match_local_pattern();
2469
+ if (!hasLocalMatch(config.localPatterns, src)) {
2470
+ 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", {
2471
+ value: "E426",
2472
+ enumerable: false,
2473
+ configurable: true
2474
+ });
2475
+ }
2476
+ }
2477
+ }
2478
+ if (!src.startsWith("/") && (config.domains || config.remotePatterns)) {
2479
+ let parsedSrc;
2480
+ try {
2481
+ parsedSrc = new URL(src);
2482
+ } catch (err) {
2483
+ console.error(err);
2484
+ 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", {
2485
+ value: "E63",
2486
+ enumerable: false,
2487
+ configurable: true
2488
+ });
2489
+ }
2490
+ if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
2491
+ process.env.NEXT_RUNTIME !== "edge") {
2492
+ const { hasRemoteMatch } = require_match_remote_pattern();
2493
+ if (!hasRemoteMatch(config.domains, config.remotePatterns, parsedSrc)) {
2494
+ 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", {
2495
+ value: "E231",
2496
+ enumerable: false,
2497
+ configurable: true
2498
+ });
2499
+ }
2500
+ }
2501
+ }
2502
+ if (quality && config.qualities && !config.qualities.includes(quality)) {
2503
+ 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", {
2504
+ value: "E623",
2505
+ enumerable: false,
2506
+ configurable: true
2507
+ });
2508
+ }
2509
+ }
2510
+ 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;
2511
+ 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 : "");
2512
+ }
2513
+ defaultLoader.__next_img_default = true;
2514
+ var _default = defaultLoader;
2515
+ }
2516
+ });
2517
+
2518
+ // node_modules/next/dist/client/use-merged-ref.js
2519
+ var require_use_merged_ref = __commonJS({
2520
+ "node_modules/next/dist/client/use-merged-ref.js"(exports2, module2) {
2521
+ "use strict";
2522
+ Object.defineProperty(exports2, "__esModule", {
2523
+ value: true
2524
+ });
2525
+ Object.defineProperty(exports2, "useMergedRef", {
2526
+ enumerable: true,
2527
+ get: function() {
2528
+ return useMergedRef;
2529
+ }
2530
+ });
2531
+ var _react = require("react");
2532
+ function useMergedRef(refA, refB) {
2533
+ const cleanupA = (0, _react.useRef)(null);
2534
+ const cleanupB = (0, _react.useRef)(null);
2535
+ return (0, _react.useCallback)((current) => {
2536
+ if (current === null) {
2537
+ const cleanupFnA = cleanupA.current;
2538
+ if (cleanupFnA) {
2539
+ cleanupA.current = null;
2540
+ cleanupFnA();
2541
+ }
2542
+ const cleanupFnB = cleanupB.current;
2543
+ if (cleanupFnB) {
2544
+ cleanupB.current = null;
2545
+ cleanupFnB();
2546
+ }
2547
+ } else {
2548
+ if (refA) {
2549
+ cleanupA.current = applyRef(refA, current);
2550
+ }
2551
+ if (refB) {
2552
+ cleanupB.current = applyRef(refB, current);
2553
+ }
2554
+ }
2555
+ }, [
2556
+ refA,
2557
+ refB
2558
+ ]);
2559
+ }
2560
+ function applyRef(refA, current) {
2561
+ if (typeof refA === "function") {
2562
+ const cleanup = refA(current);
2563
+ if (typeof cleanup === "function") {
2564
+ return cleanup;
2565
+ } else {
2566
+ return () => refA(null);
2567
+ }
2568
+ } else {
2569
+ refA.current = current;
2570
+ return () => {
2571
+ refA.current = null;
2572
+ };
2573
+ }
2574
+ }
2575
+ if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2576
+ Object.defineProperty(exports2.default, "__esModule", { value: true });
2577
+ Object.assign(exports2.default, exports2);
2578
+ module2.exports = exports2.default;
2579
+ }
2580
+ }
2581
+ });
2582
+
2583
+ // node_modules/next/dist/client/image-component.js
2584
+ var require_image_component = __commonJS({
2585
+ "node_modules/next/dist/client/image-component.js"(exports2, module2) {
2586
+ "use client";
2587
+ "use strict";
2588
+ Object.defineProperty(exports2, "__esModule", {
2589
+ value: true
2590
+ });
2591
+ Object.defineProperty(exports2, "Image", {
2592
+ enumerable: true,
2593
+ get: function() {
2594
+ return Image2;
2595
+ }
2596
+ });
2597
+ var _interop_require_default = require_interop_require_default();
2598
+ var _interop_require_wildcard = require_interop_require_wildcard();
2599
+ var _jsxruntime = require("react/jsx-runtime");
2600
+ var _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
2601
+ var _reactdom = /* @__PURE__ */ _interop_require_default._(require("react-dom"));
2602
+ var _head = /* @__PURE__ */ _interop_require_default._(require_head());
2603
+ var _getimgprops = require_get_img_props();
2604
+ var _imageconfig = require_image_config();
2605
+ var _imageconfigcontextsharedruntime = require_image_config_context_shared_runtime();
2606
+ var _warnonce = require_warn_once();
2607
+ var _routercontextsharedruntime = require_router_context_shared_runtime();
2608
+ var _imageloader = /* @__PURE__ */ _interop_require_default._(require_image_loader());
2609
+ var _usemergedref = require_use_merged_ref();
2610
+ var configEnv = process.env.__NEXT_IMAGE_OPTS;
2611
+ if (typeof window === "undefined") {
2612
+ ;
2613
+ globalThis.__NEXT_IMAGE_IMPORTED = true;
2614
+ }
2615
+ function handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput) {
2616
+ const src = img == null ? void 0 : img.src;
2617
+ if (!img || img["data-loaded-src"] === src) {
2618
+ return;
2619
+ }
2620
+ img["data-loaded-src"] = src;
2621
+ const p = "decode" in img ? img.decode() : Promise.resolve();
2622
+ p.catch(() => {
2623
+ }).then(() => {
2624
+ if (!img.parentElement || !img.isConnected) {
2625
+ return;
2626
+ }
2627
+ if (placeholder !== "empty") {
2628
+ setBlurComplete(true);
2629
+ }
2630
+ if (onLoadRef == null ? void 0 : onLoadRef.current) {
2631
+ const event = new Event("load");
2632
+ Object.defineProperty(event, "target", {
2633
+ writable: false,
2634
+ value: img
2635
+ });
2636
+ let prevented = false;
2637
+ let stopped = false;
2638
+ onLoadRef.current({
2639
+ ...event,
2640
+ nativeEvent: event,
2641
+ currentTarget: img,
2642
+ target: img,
2643
+ isDefaultPrevented: () => prevented,
2644
+ isPropagationStopped: () => stopped,
2645
+ persist: () => {
2646
+ },
2647
+ preventDefault: () => {
2648
+ prevented = true;
2649
+ event.preventDefault();
2650
+ },
2651
+ stopPropagation: () => {
2652
+ stopped = true;
2653
+ event.stopPropagation();
2654
+ }
2655
+ });
2656
+ }
2657
+ if (onLoadingCompleteRef == null ? void 0 : onLoadingCompleteRef.current) {
2658
+ onLoadingCompleteRef.current(img);
2659
+ }
2660
+ if (process.env.NODE_ENV !== "production") {
2661
+ const origSrc = new URL(src, "http://n").searchParams.get("url") || src;
2662
+ if (img.getAttribute("data-nimg") === "fill") {
2663
+ if (!unoptimized && (!sizesInput || sizesInput === "100vw")) {
2664
+ let widthViewportRatio = img.getBoundingClientRect().width / window.innerWidth;
2665
+ if (widthViewportRatio < 0.6) {
2666
+ if (sizesInput === "100vw") {
2667
+ (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');
2668
+ } else {
2669
+ (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');
2670
+ }
2671
+ }
2672
+ }
2673
+ if (img.parentElement) {
2674
+ const { position } = window.getComputedStyle(img.parentElement);
2675
+ const valid = [
2676
+ "absolute",
2677
+ "fixed",
2678
+ "relative"
2679
+ ];
2680
+ if (!valid.includes(position)) {
2681
+ (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(",") + ".");
2682
+ }
2683
+ }
2684
+ if (img.height === 0) {
2685
+ (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.');
2686
+ }
2687
+ }
2688
+ const heightModified = img.height.toString() !== img.getAttribute("height");
2689
+ const widthModified = img.width.toString() !== img.getAttribute("width");
2690
+ if (heightModified && !widthModified || !heightModified && widthModified) {
2691
+ (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.`);
2692
+ }
2693
+ }
2694
+ });
2695
+ }
2696
+ function getDynamicProps(fetchPriority) {
2697
+ if (Boolean(_react.use)) {
2698
+ return {
2699
+ fetchPriority
2700
+ };
2701
+ }
2702
+ return {
2703
+ fetchpriority: fetchPriority
2704
+ };
2705
+ }
2706
+ var ImageElement = /* @__PURE__ */ (0, _react.forwardRef)((param, forwardedRef) => {
2707
+ let { src, srcSet, sizes, height, width, decoding, className, style, fetchPriority, placeholder, loading, unoptimized, fill, onLoadRef, onLoadingCompleteRef, setBlurComplete, setShowAltText, sizesInput, onLoad, onError, ...rest } = param;
2708
+ const ownRef = (0, _react.useCallback)((img) => {
2709
+ if (!img) {
2710
+ return;
2711
+ }
2712
+ if (onError) {
2713
+ img.src = img.src;
2714
+ }
2715
+ if (process.env.NODE_ENV !== "production") {
2716
+ if (!src) {
2717
+ console.error('Image is missing required "src" property:', img);
2718
+ }
2719
+ if (img.getAttribute("alt") === null) {
2720
+ console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.');
2721
+ }
2722
+ }
2723
+ if (img.complete) {
2724
+ handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
2725
+ }
2726
+ }, [
2727
+ src,
2728
+ placeholder,
2729
+ onLoadRef,
2730
+ onLoadingCompleteRef,
2731
+ setBlurComplete,
2732
+ onError,
2733
+ unoptimized,
2734
+ sizesInput
2735
+ ]);
2736
+ const ref = (0, _usemergedref.useMergedRef)(forwardedRef, ownRef);
2737
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
2738
+ ...rest,
2739
+ ...getDynamicProps(fetchPriority),
2740
+ // It's intended to keep `loading` before `src` because React updates
2741
+ // props in order which causes Safari/Firefox to not lazy load properly.
2742
+ // See https://github.com/facebook/react/issues/25883
2743
+ loading,
2744
+ width,
2745
+ height,
2746
+ decoding,
2747
+ "data-nimg": fill ? "fill" : "1",
2748
+ className,
2749
+ style,
2750
+ // It's intended to keep `src` the last attribute because React updates
2751
+ // attributes in order. If we keep `src` the first one, Safari will
2752
+ // immediately start to fetch `src`, before `sizes` and `srcSet` are even
2753
+ // updated by React. That causes multiple unnecessary requests if `srcSet`
2754
+ // and `sizes` are defined.
2755
+ // This bug cannot be reproduced in Chrome or Firefox.
2756
+ sizes,
2757
+ srcSet,
2758
+ src,
2759
+ ref,
2760
+ onLoad: (event) => {
2761
+ const img = event.currentTarget;
2762
+ handleLoading(img, placeholder, onLoadRef, onLoadingCompleteRef, setBlurComplete, unoptimized, sizesInput);
2763
+ },
2764
+ onError: (event) => {
2765
+ setShowAltText(true);
2766
+ if (placeholder !== "empty") {
2767
+ setBlurComplete(true);
2768
+ }
2769
+ if (onError) {
2770
+ onError(event);
2771
+ }
2772
+ }
2773
+ });
2774
+ });
2775
+ function ImagePreload(param) {
2776
+ let { isAppRouter, imgAttributes } = param;
2777
+ const opts = {
2778
+ as: "image",
2779
+ imageSrcSet: imgAttributes.srcSet,
2780
+ imageSizes: imgAttributes.sizes,
2781
+ crossOrigin: imgAttributes.crossOrigin,
2782
+ referrerPolicy: imgAttributes.referrerPolicy,
2783
+ ...getDynamicProps(imgAttributes.fetchPriority)
2784
+ };
2785
+ if (isAppRouter && _reactdom.default.preload) {
2786
+ _reactdom.default.preload(
2787
+ imgAttributes.src,
2788
+ // @ts-expect-error TODO: upgrade to `@types/react-dom@18.3.x`
2789
+ opts
2790
+ );
2791
+ return null;
2792
+ }
2793
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_head.default, {
2794
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("link", {
2795
+ rel: "preload",
2796
+ // Note how we omit the `href` attribute, as it would only be relevant
2797
+ // for browsers that do not support `imagesrcset`, and in those cases
2798
+ // it would cause the incorrect image to be preloaded.
2799
+ //
2800
+ // https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
2801
+ href: imgAttributes.srcSet ? void 0 : imgAttributes.src,
2802
+ ...opts
2803
+ }, "__nimg-" + imgAttributes.src + imgAttributes.srcSet + imgAttributes.sizes)
2804
+ });
2805
+ }
2806
+ var Image2 = /* @__PURE__ */ (0, _react.forwardRef)((props, forwardedRef) => {
2807
+ const pagesRouter = (0, _react.useContext)(_routercontextsharedruntime.RouterContext);
2808
+ const isAppRouter = !pagesRouter;
2809
+ const configContext = (0, _react.useContext)(_imageconfigcontextsharedruntime.ImageConfigContext);
2810
+ const config = (0, _react.useMemo)(() => {
2811
+ var _c_qualities;
2812
+ const c = configEnv || configContext || _imageconfig.imageConfigDefault;
2813
+ const allSizes = [
2814
+ ...c.deviceSizes,
2815
+ ...c.imageSizes
2816
+ ].sort((a, b) => a - b);
2817
+ const deviceSizes = c.deviceSizes.sort((a, b) => a - b);
2818
+ const qualities = (_c_qualities = c.qualities) == null ? void 0 : _c_qualities.sort((a, b) => a - b);
2819
+ return {
2820
+ ...c,
2821
+ allSizes,
2822
+ deviceSizes,
2823
+ qualities
2824
+ };
2825
+ }, [
2826
+ configContext
2827
+ ]);
2828
+ const { onLoad, onLoadingComplete } = props;
2829
+ const onLoadRef = (0, _react.useRef)(onLoad);
2830
+ (0, _react.useEffect)(() => {
2831
+ onLoadRef.current = onLoad;
2832
+ }, [
2833
+ onLoad
2834
+ ]);
2835
+ const onLoadingCompleteRef = (0, _react.useRef)(onLoadingComplete);
2836
+ (0, _react.useEffect)(() => {
2837
+ onLoadingCompleteRef.current = onLoadingComplete;
2838
+ }, [
2839
+ onLoadingComplete
2840
+ ]);
2841
+ const [blurComplete, setBlurComplete] = (0, _react.useState)(false);
2842
+ const [showAltText, setShowAltText] = (0, _react.useState)(false);
2843
+ const { props: imgAttributes, meta: imgMeta } = (0, _getimgprops.getImgProps)(props, {
2844
+ defaultLoader: _imageloader.default,
2845
+ imgConf: config,
2846
+ blurComplete,
2847
+ showAltText
2848
+ });
2849
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
2850
+ children: [
2851
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(ImageElement, {
2852
+ ...imgAttributes,
2853
+ unoptimized: imgMeta.unoptimized,
2854
+ placeholder: imgMeta.placeholder,
2855
+ fill: imgMeta.fill,
2856
+ onLoadRef,
2857
+ onLoadingCompleteRef,
2858
+ setBlurComplete,
2859
+ setShowAltText,
2860
+ sizesInput: props.sizes,
2861
+ ref: forwardedRef
2862
+ }),
2863
+ imgMeta.priority ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ImagePreload, {
2864
+ isAppRouter,
2865
+ imgAttributes
2866
+ }) : null
2867
+ ]
2868
+ });
2869
+ });
2870
+ if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
2871
+ Object.defineProperty(exports2.default, "__esModule", { value: true });
2872
+ Object.assign(exports2.default, exports2);
2873
+ module2.exports = exports2.default;
2874
+ }
2875
+ }
2876
+ });
2877
+
2878
+ // node_modules/next/dist/shared/lib/image-external.js
2879
+ var require_image_external = __commonJS({
2880
+ "node_modules/next/dist/shared/lib/image-external.js"(exports2) {
2881
+ "use strict";
2882
+ Object.defineProperty(exports2, "__esModule", {
2883
+ value: true
2884
+ });
2885
+ function _export(target, all) {
2886
+ for (var name in all) Object.defineProperty(target, name, {
2887
+ enumerable: true,
2888
+ get: all[name]
2889
+ });
2890
+ }
2891
+ _export(exports2, {
2892
+ default: function() {
2893
+ return _default;
2894
+ },
2895
+ getImageProps: function() {
2896
+ return getImageProps;
2897
+ }
2898
+ });
2899
+ var _interop_require_default = require_interop_require_default();
2900
+ var _getimgprops = require_get_img_props();
2901
+ var _imagecomponent = require_image_component();
2902
+ var _imageloader = /* @__PURE__ */ _interop_require_default._(require_image_loader());
2903
+ function getImageProps(imgProps) {
2904
+ const { props } = (0, _getimgprops.getImgProps)(imgProps, {
2905
+ defaultLoader: _imageloader.default,
2906
+ // This is replaced by webpack define plugin
2907
+ imgConf: process.env.__NEXT_IMAGE_OPTS
2908
+ });
2909
+ for (const [key, value] of Object.entries(props)) {
2910
+ if (value === void 0) {
2911
+ delete props[key];
2912
+ }
2913
+ }
2914
+ return {
2915
+ props
2916
+ };
2917
+ }
2918
+ var _default = _imagecomponent.Image;
2919
+ }
2920
+ });
2921
+
2922
+ // node_modules/next/image.js
2923
+ var require_image = __commonJS({
2924
+ "node_modules/next/image.js"(exports2, module2) {
2925
+ module2.exports = require_image_external();
2926
+ }
2927
+ });
2928
+
29
2929
  // src/components/icons-and-geometry/Avatar.tsx
30
2930
  var Avatar_exports = {};
31
2931
  __export(Avatar_exports, {
@@ -35,35 +2935,10 @@ __export(Avatar_exports, {
35
2935
  });
36
2936
  module.exports = __toCommonJS(Avatar_exports);
37
2937
  var import_clsx = __toESM(require("clsx"));
38
-
39
- // src/hooks/useLogOnce.ts
40
2938
  var import_react = require("react");
41
- var useLogOnce = ({
42
- message,
43
- condition,
44
- type = "warning"
45
- }) => {
46
- const [hasLogged, setHasLogged] = (0, import_react.useState)(false);
47
- (0, import_react.useEffect)(() => {
48
- if (!hasLogged && condition) {
49
- switch (type) {
50
- case "info":
51
- console.info(message);
52
- break;
53
- case "error":
54
- console.error(message);
55
- break;
56
- case "warning":
57
- console.warn(message);
58
- break;
59
- }
60
- setHasLogged(true);
61
- }
62
- }, [condition]);
63
- };
64
-
65
- // src/components/icons-and-geometry/Avatar.tsx
66
2939
  var import_react2 = require("react");
2940
+ var import_lucide_react = require("lucide-react");
2941
+ var import_image = __toESM(require_image());
67
2942
  var import_jsx_runtime = require("react/jsx-runtime");
68
2943
  var avtarSizeList = ["sm", "md", "lg", "xl"];
69
2944
  var avatarSizeMapping = {
@@ -84,6 +2959,7 @@ var AvatarUtil = {
84
2959
  };
85
2960
  var Avatar = ({ image, name, size = "md", fullyRounded, className = "" }) => {
86
2961
  const pixels = avatarSizeMapping[size];
2962
+ const [hasImageError, setHasImageError] = (0, import_react.useState)(false);
87
2963
  const sizeStyle = {
88
2964
  minWidth: pixels,
89
2965
  maxWidth: pixels,
@@ -91,7 +2967,6 @@ var Avatar = ({ image, name, size = "md", fullyRounded, className = "" }) => {
91
2967
  maxHeight: pixels
92
2968
  };
93
2969
  const textClassName = textClassNameMapping[size];
94
- useLogOnce({ message: "Either set image or name in Avatar", condition: !image && !name, type: "warning" });
95
2970
  const displayName = (0, import_react2.useMemo)(() => {
96
2971
  const maxLetters = size === "sm" ? 1 : 2;
97
2972
  return (name ?? "").split(" ").filter((_, index) => index < maxLetters).map((value) => value[0]).join("").toUpperCase();
@@ -111,17 +2986,21 @@ var Avatar = ({ image, name, size = "md", fullyRounded, className = "" }) => {
111
2986
  ),
112
2987
  style: sizeStyle,
113
2988
  children: [
114
- name && !image && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: (0, import_clsx.default)(textClassName, "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"), children: displayName }),
115
- image && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
116
- "img",
2989
+ name && (!image || hasImageError) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: (0, import_clsx.default)(textClassName, "absolute z-[1] left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"), children: displayName }),
2990
+ !name && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_clsx.default)("absolute z-[1] left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.UserIcon, { size: Math.round(pixels * 3 / 4) }) }),
2991
+ image && !hasImageError && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2992
+ import_image.default,
117
2993
  {
118
2994
  className: (0, import_clsx.default)(
119
- "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
2995
+ "absolute z-[2] left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
120
2996
  rounding
121
2997
  ),
122
2998
  src: image.avatarUrl,
123
2999
  alt: image.alt,
124
- style: sizeStyle
3000
+ style: sizeStyle,
3001
+ width: pixels,
3002
+ height: pixels,
3003
+ onError: () => setHasImageError(true)
125
3004
  }
126
3005
  )
127
3006
  ]