@pequity/squirrel 1.0.20-beta.2 → 1.0.20-beta.3

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 (144) hide show
  1. package/dist/cjs/chunks/_plugin-vue_export-helper.js +9 -1
  2. package/dist/cjs/chunks/p-action-bar.js +60 -1
  3. package/dist/cjs/chunks/p-card.js +28 -1
  4. package/dist/cjs/chunks/p-checkbox.js +24 -1
  5. package/dist/cjs/chunks/p-dropdown-select.js +414 -1
  6. package/dist/cjs/chunks/p-input-percent.js +53 -1
  7. package/dist/cjs/chunks/p-pagination-info.js +66 -1
  8. package/dist/cjs/chunks/p-pagination.js +122 -1
  9. package/dist/cjs/chunks/p-ring-loader.js +81 -1
  10. package/dist/cjs/chunks/p-select-btn.js +97 -1
  11. package/dist/cjs/chunks/p-select.js +123 -1
  12. package/dist/cjs/chunks/p-table-loader.js +70 -1
  13. package/dist/cjs/chunks/p-tabs.js +52 -1
  14. package/dist/cjs/config.js +105 -1
  15. package/dist/cjs/currency.js +9 -1
  16. package/dist/cjs/dom.js +27 -1
  17. package/dist/cjs/index.js +976 -1
  18. package/dist/cjs/inputClassesMixin.js +50 -1
  19. package/dist/cjs/inputClassesShared.js +76 -1
  20. package/dist/cjs/listKeyboardNavigation.js +110 -1
  21. package/dist/cjs/number.js +9 -1
  22. package/dist/cjs/object.js +4 -1
  23. package/dist/cjs/p-action-bar.js +3 -1
  24. package/dist/cjs/p-alert.js +65 -1
  25. package/dist/cjs/p-avatar.js +71 -1
  26. package/dist/cjs/p-btn.js +358 -2
  27. package/dist/cjs/p-card.js +3 -1
  28. package/dist/cjs/p-checkbox.js +3 -1
  29. package/dist/cjs/p-chips.js +110 -1
  30. package/dist/cjs/p-close-btn.js +36 -1
  31. package/dist/cjs/p-date-picker.js +139 -1
  32. package/dist/cjs/p-drawer.js +253 -1
  33. package/dist/cjs/p-dropdown-select.js +3 -1
  34. package/dist/cjs/p-dropdown.js +138 -1
  35. package/dist/cjs/p-file-upload.js +21 -1
  36. package/dist/cjs/p-info-icon.js +35 -1
  37. package/dist/cjs/p-inline-date-picker.js +142 -1
  38. package/dist/cjs/p-input-number.js +146 -1
  39. package/dist/cjs/p-input-percent.js +3 -1
  40. package/dist/cjs/p-input-search.js +110 -1
  41. package/dist/cjs/p-input.js +89 -1
  42. package/dist/cjs/p-loading.js +38 -1
  43. package/dist/cjs/p-modal.js +369 -1
  44. package/dist/cjs/p-pagination-info.js +3 -1
  45. package/dist/cjs/p-pagination.js +3 -1
  46. package/dist/cjs/p-progress-bar.js +41 -1
  47. package/dist/cjs/p-ring-loader.js +3 -1
  48. package/dist/cjs/p-select-btn.js +3 -1
  49. package/dist/cjs/p-select-list.js +4 -1
  50. package/dist/cjs/p-select-pill.js +111 -1
  51. package/dist/cjs/p-select.js +3 -1
  52. package/dist/cjs/p-skeleton-loader.js +73 -1
  53. package/dist/cjs/p-table-filter-icon.js +20 -1
  54. package/dist/cjs/p-table-header-cell.js +75 -1
  55. package/dist/cjs/p-table-loader.js +3 -1
  56. package/dist/cjs/p-table-sort.js +8 -1
  57. package/dist/cjs/p-table-td.js +88 -1
  58. package/dist/cjs/p-table.js +12 -1
  59. package/dist/cjs/p-tabs.js +3 -1
  60. package/dist/cjs/p-textarea.js +73 -1
  61. package/dist/cjs/p-toggle.js +114 -1
  62. package/dist/cjs/pagination.js +29 -1
  63. package/dist/cjs/string.js +12 -1
  64. package/dist/cjs/tailwind.js +4353 -1
  65. package/dist/cjs/text.js +16 -1
  66. package/dist/cjs/useInputClasses.js +44 -1
  67. package/dist/cjs/usePLoading.js +35 -1
  68. package/dist/cjs/usePModal.js +21 -1
  69. package/dist/cjs/usePTableColResize.js +81 -1
  70. package/dist/cjs/usePTableRowVirtualizer.js +31 -1
  71. package/dist/cjs/useSelectList.js +256 -1
  72. package/dist/es/chunks/_plugin-vue_export-helper.js +7 -6
  73. package/dist/es/chunks/p-action-bar.js +45 -36
  74. package/dist/es/chunks/p-card.js +18 -14
  75. package/dist/es/chunks/p-checkbox.js +14 -11
  76. package/dist/es/chunks/p-dropdown-select.js +232 -183
  77. package/dist/es/chunks/p-input-percent.js +34 -25
  78. package/dist/es/chunks/p-pagination-info.js +30 -24
  79. package/dist/es/chunks/p-pagination.js +78 -48
  80. package/dist/es/chunks/p-ring-loader.js +63 -40
  81. package/dist/es/chunks/p-select-btn.js +80 -59
  82. package/dist/es/chunks/p-select.js +81 -54
  83. package/dist/es/chunks/p-table-loader.js +46 -32
  84. package/dist/es/chunks/p-tabs.js +35 -29
  85. package/dist/es/config.js +2 -2
  86. package/dist/es/currency.js +3 -3
  87. package/dist/es/dom.js +24 -12
  88. package/dist/es/index.js +703 -561
  89. package/dist/es/inputClassesMixin.js +20 -14
  90. package/dist/es/inputClassesShared.js +60 -45
  91. package/dist/es/listKeyboardNavigation.js +86 -36
  92. package/dist/es/number.js +7 -2
  93. package/dist/es/object.js +2 -2
  94. package/dist/es/p-action-bar.js +2 -2
  95. package/dist/es/p-alert.js +35 -30
  96. package/dist/es/p-avatar.js +30 -27
  97. package/dist/es/p-btn.js +209 -164
  98. package/dist/es/p-card.js +2 -2
  99. package/dist/es/p-checkbox.js +2 -2
  100. package/dist/es/p-chips.js +60 -40
  101. package/dist/es/p-close-btn.js +20 -16
  102. package/dist/es/p-date-picker.js +66 -58
  103. package/dist/es/p-drawer.js +108 -89
  104. package/dist/es/p-dropdown-select.js +2 -2
  105. package/dist/es/p-dropdown.js +52 -33
  106. package/dist/es/p-file-upload.js +17 -9
  107. package/dist/es/p-info-icon.js +21 -16
  108. package/dist/es/p-inline-date-picker.js +64 -53
  109. package/dist/es/p-input-number.js +84 -66
  110. package/dist/es/p-input-percent.js +2 -2
  111. package/dist/es/p-input-search.js +43 -41
  112. package/dist/es/p-input.js +51 -45
  113. package/dist/es/p-loading.js +31 -22
  114. package/dist/es/p-modal.js +261 -174
  115. package/dist/es/p-pagination-info.js +2 -2
  116. package/dist/es/p-pagination.js +2 -2
  117. package/dist/es/p-progress-bar.js +26 -23
  118. package/dist/es/p-ring-loader.js +2 -2
  119. package/dist/es/p-select-btn.js +2 -2
  120. package/dist/es/p-select-list.js +2 -2
  121. package/dist/es/p-select-pill.js +58 -41
  122. package/dist/es/p-select.js +2 -2
  123. package/dist/es/p-skeleton-loader.js +34 -29
  124. package/dist/es/p-table-filter-icon.js +11 -11
  125. package/dist/es/p-table-header-cell.js +38 -33
  126. package/dist/es/p-table-loader.js +2 -2
  127. package/dist/es/p-table-sort.js +2 -2
  128. package/dist/es/p-table-td.js +76 -29
  129. package/dist/es/p-table.js +10 -6
  130. package/dist/es/p-tabs.js +2 -2
  131. package/dist/es/p-textarea.js +36 -34
  132. package/dist/es/p-toggle.js +53 -48
  133. package/dist/es/pagination.js +25 -8
  134. package/dist/es/string.js +10 -2
  135. package/dist/es/tailwind.js +1660 -1101
  136. package/dist/es/text.js +13 -8
  137. package/dist/es/useInputClasses.js +38 -22
  138. package/dist/es/usePLoading.js +31 -15
  139. package/dist/es/usePModal.js +15 -12
  140. package/dist/es/usePTableColResize.js +71 -39
  141. package/dist/es/usePTableRowVirtualizer.js +24 -15
  142. package/dist/es/useSelectList.js +234 -121
  143. package/dist/style.css +2124 -1
  144. package/package.json +1 -1
@@ -1,46 +1,56 @@
1
- import { get as Se } from "lodash-es";
2
- import { config as Ce } from "./config.js";
3
- function Pe(e) {
4
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1
+ var _a;
2
+ import { get } from "lodash-es";
3
+ import { config as config$1 } from "./config.js";
4
+ function getDefaultExportFromCjs(x2) {
5
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
5
6
  }
6
- var oe = {}, le = {}, ee = {};
7
- (function(e) {
8
- Object.defineProperty(e, "__esModule", {
9
- value: !0
10
- }), Object.defineProperty(e, "default", {
11
- enumerable: !0,
7
+ var resolveConfig$3 = {};
8
+ var resolveConfig$2 = {};
9
+ var negateValue = {};
10
+ (function(exports) {
11
+ Object.defineProperty(exports, "__esModule", {
12
+ value: true
13
+ });
14
+ Object.defineProperty(exports, "default", {
15
+ enumerable: true,
12
16
  get: function() {
13
- return h;
17
+ return negateValue2;
14
18
  }
15
19
  });
16
- function h(n) {
17
- if (n = `${n}`, n === "0")
20
+ function negateValue2(value) {
21
+ value = `${value}`;
22
+ if (value === "0") {
18
23
  return "0";
19
- if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(n))
20
- return n.replace(/^[+-]?/, (f) => f === "-" ? "" : "-");
21
- let y = [
24
+ }
25
+ if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(value)) {
26
+ return value.replace(/^[+-]?/, (sign) => sign === "-" ? "" : "-");
27
+ }
28
+ let numericFunctions = [
22
29
  "var",
23
30
  "calc",
24
31
  "min",
25
32
  "max",
26
33
  "clamp"
27
34
  ];
28
- for (const f of y)
29
- if (n.includes(`${f}(`))
30
- return `calc(${n} * -1)`;
31
- }
32
- })(ee);
33
- var ue = {};
34
- (function(e) {
35
- Object.defineProperty(e, "__esModule", {
36
- value: !0
37
- }), Object.defineProperty(e, "default", {
38
- enumerable: !0,
35
+ for (const fn of numericFunctions) {
36
+ if (value.includes(`${fn}(`)) {
37
+ return `calc(${value} * -1)`;
38
+ }
39
+ }
40
+ }
41
+ })(negateValue);
42
+ var corePluginList = {};
43
+ (function(exports) {
44
+ Object.defineProperty(exports, "__esModule", {
45
+ value: true
46
+ });
47
+ Object.defineProperty(exports, "default", {
48
+ enumerable: true,
39
49
  get: function() {
40
- return h;
50
+ return _default;
41
51
  }
42
52
  });
43
- const h = [
53
+ const _default = [
44
54
  "preflight",
45
55
  "container",
46
56
  "accessibility",
@@ -221,110 +231,131 @@ var ue = {};
221
231
  "content",
222
232
  "forcedColorAdjust"
223
233
  ];
224
- })(ue);
225
- var se = {};
226
- (function(e) {
227
- Object.defineProperty(e, "__esModule", {
228
- value: !0
229
- }), Object.defineProperty(e, "default", {
230
- enumerable: !0,
234
+ })(corePluginList);
235
+ var configurePlugins = {};
236
+ (function(exports) {
237
+ Object.defineProperty(exports, "__esModule", {
238
+ value: true
239
+ });
240
+ Object.defineProperty(exports, "default", {
241
+ enumerable: true,
231
242
  get: function() {
232
- return h;
243
+ return _default;
233
244
  }
234
245
  });
235
- function h(n, y) {
236
- return n === void 0 ? y : Array.isArray(n) ? n : [
237
- ...new Set(y.filter((u) => n !== !1 && n[u] !== !1).concat(Object.keys(n).filter((u) => n[u] !== !1)))
246
+ function _default(pluginConfig, plugins) {
247
+ if (pluginConfig === void 0) {
248
+ return plugins;
249
+ }
250
+ const pluginNames = Array.isArray(pluginConfig) ? pluginConfig : [
251
+ ...new Set(plugins.filter((pluginName) => {
252
+ return pluginConfig !== false && pluginConfig[pluginName] !== false;
253
+ }).concat(Object.keys(pluginConfig).filter((pluginName) => {
254
+ return pluginConfig[pluginName] !== false;
255
+ })))
238
256
  ];
257
+ return pluginNames;
239
258
  }
240
- })(se);
241
- var fe = {}, N = {}, te = { exports: {} }, z = String, ce = function() {
242
- return { isColorSupported: !1, reset: z, bold: z, dim: z, italic: z, underline: z, inverse: z, hidden: z, strikethrough: z, black: z, red: z, green: z, yellow: z, blue: z, magenta: z, cyan: z, white: z, gray: z, bgBlack: z, bgRed: z, bgGreen: z, bgYellow: z, bgBlue: z, bgMagenta: z, bgCyan: z, bgWhite: z };
259
+ })(configurePlugins);
260
+ var colors$1 = {};
261
+ var log = {};
262
+ var picocolors_browser = { exports: {} };
263
+ var x = String;
264
+ var create = function() {
265
+ return { isColorSupported: false, reset: x, bold: x, dim: x, italic: x, underline: x, inverse: x, hidden: x, strikethrough: x, black: x, red: x, green: x, yellow: x, blue: x, magenta: x, cyan: x, white: x, gray: x, bgBlack: x, bgRed: x, bgGreen: x, bgYellow: x, bgBlue: x, bgMagenta: x, bgCyan: x, bgWhite: x };
243
266
  };
244
- te.exports = ce();
245
- te.exports.createColors = ce;
246
- var de = te.exports;
247
- (function(e) {
248
- Object.defineProperty(e, "__esModule", {
249
- value: !0
267
+ picocolors_browser.exports = create();
268
+ picocolors_browser.exports.createColors = create;
269
+ var picocolors_browserExports = picocolors_browser.exports;
270
+ (function(exports) {
271
+ Object.defineProperty(exports, "__esModule", {
272
+ value: true
250
273
  });
251
- function h(a, t) {
252
- for (var c in t)
253
- Object.defineProperty(a, c, {
254
- enumerable: !0,
255
- get: t[c]
274
+ function _export(target, all) {
275
+ for (var name in all)
276
+ Object.defineProperty(target, name, {
277
+ enumerable: true,
278
+ get: all[name]
256
279
  });
257
280
  }
258
- h(e, {
281
+ _export(exports, {
259
282
  dim: function() {
260
- return r;
283
+ return dim;
261
284
  },
262
285
  default: function() {
263
- return v;
286
+ return _default;
264
287
  }
265
288
  });
266
- const n = /* @__PURE__ */ y(de);
267
- function y(a) {
268
- return a && a.__esModule ? a : {
269
- default: a
289
+ const _picocolors = /* @__PURE__ */ _interop_require_default(picocolors_browserExports);
290
+ function _interop_require_default(obj) {
291
+ return obj && obj.__esModule ? obj : {
292
+ default: obj
270
293
  };
271
294
  }
272
- let f = /* @__PURE__ */ new Set();
273
- function u(a, t, c) {
274
- typeof process < "u" && process.env.JEST_WORKER_ID || c && f.has(c) || (c && f.add(c), console.warn(""), t.forEach((g) => console.warn(a, "-", g)));
295
+ let alreadyShown = /* @__PURE__ */ new Set();
296
+ function log2(type, messages, key) {
297
+ if (typeof process !== "undefined" && process.env.JEST_WORKER_ID)
298
+ return;
299
+ if (key && alreadyShown.has(key))
300
+ return;
301
+ if (key)
302
+ alreadyShown.add(key);
303
+ console.warn("");
304
+ messages.forEach((message) => console.warn(type, "-", message));
275
305
  }
276
- function r(a) {
277
- return n.default.dim(a);
306
+ function dim(input) {
307
+ return _picocolors.default.dim(input);
278
308
  }
279
- const v = {
280
- info(a, t) {
281
- u(n.default.bold(n.default.cyan("info")), ...Array.isArray(a) ? [
282
- a
309
+ const _default = {
310
+ info(key, messages) {
311
+ log2(_picocolors.default.bold(_picocolors.default.cyan("info")), ...Array.isArray(key) ? [
312
+ key
283
313
  ] : [
284
- t,
285
- a
314
+ messages,
315
+ key
286
316
  ]);
287
317
  },
288
- warn(a, t) {
289
- u(n.default.bold(n.default.yellow("warn")), ...Array.isArray(a) ? [
290
- a
318
+ warn(key, messages) {
319
+ log2(_picocolors.default.bold(_picocolors.default.yellow("warn")), ...Array.isArray(key) ? [
320
+ key
291
321
  ] : [
292
- t,
293
- a
322
+ messages,
323
+ key
294
324
  ]);
295
325
  },
296
- risk(a, t) {
297
- u(n.default.bold(n.default.magenta("risk")), ...Array.isArray(a) ? [
298
- a
326
+ risk(key, messages) {
327
+ log2(_picocolors.default.bold(_picocolors.default.magenta("risk")), ...Array.isArray(key) ? [
328
+ key
299
329
  ] : [
300
- t,
301
- a
330
+ messages,
331
+ key
302
332
  ]);
303
333
  }
304
334
  };
305
- })(N);
306
- (function(e) {
307
- Object.defineProperty(e, "__esModule", {
308
- value: !0
309
- }), Object.defineProperty(e, "default", {
310
- enumerable: !0,
335
+ })(log);
336
+ (function(exports) {
337
+ Object.defineProperty(exports, "__esModule", {
338
+ value: true
339
+ });
340
+ Object.defineProperty(exports, "default", {
341
+ enumerable: true,
311
342
  get: function() {
312
- return f;
343
+ return _default;
313
344
  }
314
345
  });
315
- const h = /* @__PURE__ */ n(N);
316
- function n(u) {
317
- return u && u.__esModule ? u : {
318
- default: u
346
+ const _log = /* @__PURE__ */ _interop_require_default(log);
347
+ function _interop_require_default(obj) {
348
+ return obj && obj.__esModule ? obj : {
349
+ default: obj
319
350
  };
320
351
  }
321
- function y({ version: u, from: r, to: v }) {
322
- h.default.warn(`${r}-color-renamed`, [
323
- `As of Tailwind CSS ${u}, \`${r}\` has been renamed to \`${v}\`.`,
352
+ function warn({ version, from, to }) {
353
+ _log.default.warn(`${from}-color-renamed`, [
354
+ `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
324
355
  "Update your configuration file to silence this warning."
325
356
  ]);
326
357
  }
327
- const f = {
358
+ const _default = {
328
359
  inherit: "inherit",
329
360
  current: "currentColor",
330
361
  transparent: "transparent",
@@ -617,120 +648,136 @@ var de = te.exports;
617
648
  950: "#4c0519"
618
649
  },
619
650
  get lightBlue() {
620
- return y({
651
+ warn({
621
652
  version: "v2.2",
622
653
  from: "lightBlue",
623
654
  to: "sky"
624
- }), this.sky;
655
+ });
656
+ return this.sky;
625
657
  },
626
658
  get warmGray() {
627
- return y({
659
+ warn({
628
660
  version: "v3.0",
629
661
  from: "warmGray",
630
662
  to: "stone"
631
- }), this.stone;
663
+ });
664
+ return this.stone;
632
665
  },
633
666
  get trueGray() {
634
- return y({
667
+ warn({
635
668
  version: "v3.0",
636
669
  from: "trueGray",
637
670
  to: "neutral"
638
- }), this.neutral;
671
+ });
672
+ return this.neutral;
639
673
  },
640
674
  get coolGray() {
641
- return y({
675
+ warn({
642
676
  version: "v3.0",
643
677
  from: "coolGray",
644
678
  to: "gray"
645
- }), this.gray;
679
+ });
680
+ return this.gray;
646
681
  },
647
682
  get blueGray() {
648
- return y({
683
+ warn({
649
684
  version: "v3.0",
650
685
  from: "blueGray",
651
686
  to: "slate"
652
- }), this.slate;
687
+ });
688
+ return this.slate;
653
689
  }
654
690
  };
655
- })(fe);
656
- var pe = {};
657
- (function(e) {
658
- Object.defineProperty(e, "__esModule", {
659
- value: !0
660
- }), Object.defineProperty(e, "defaults", {
661
- enumerable: !0,
691
+ })(colors$1);
692
+ var defaults = {};
693
+ (function(exports) {
694
+ Object.defineProperty(exports, "__esModule", {
695
+ value: true
696
+ });
697
+ Object.defineProperty(exports, "defaults", {
698
+ enumerable: true,
662
699
  get: function() {
663
- return h;
700
+ return defaults2;
664
701
  }
665
702
  });
666
- function h(n, ...y) {
667
- for (let r of y) {
668
- for (let v in r) {
669
- var f;
670
- !(n == null || (f = n.hasOwnProperty) === null || f === void 0) && f.call(n, v) || (n[v] = r[v]);
703
+ function defaults2(target, ...sources) {
704
+ for (let source of sources) {
705
+ for (let k in source) {
706
+ var _target_hasOwnProperty;
707
+ if (!(target === null || target === void 0 ? void 0 : (_target_hasOwnProperty = target.hasOwnProperty) === null || _target_hasOwnProperty === void 0 ? void 0 : _target_hasOwnProperty.call(target, k))) {
708
+ target[k] = source[k];
709
+ }
671
710
  }
672
- for (let v of Object.getOwnPropertySymbols(r)) {
673
- var u;
674
- !(n == null || (u = n.hasOwnProperty) === null || u === void 0) && u.call(n, v) || (n[v] = r[v]);
711
+ for (let k of Object.getOwnPropertySymbols(source)) {
712
+ var _target_hasOwnProperty1;
713
+ if (!(target === null || target === void 0 ? void 0 : (_target_hasOwnProperty1 = target.hasOwnProperty) === null || _target_hasOwnProperty1 === void 0 ? void 0 : _target_hasOwnProperty1.call(target, k))) {
714
+ target[k] = source[k];
715
+ }
675
716
  }
676
717
  }
677
- return n;
718
+ return target;
678
719
  }
679
- })(pe);
680
- var me = {};
681
- (function(e) {
682
- Object.defineProperty(e, "__esModule", {
683
- value: !0
684
- }), Object.defineProperty(e, "toPath", {
685
- enumerable: !0,
720
+ })(defaults);
721
+ var toPath = {};
722
+ (function(exports) {
723
+ Object.defineProperty(exports, "__esModule", {
724
+ value: true
725
+ });
726
+ Object.defineProperty(exports, "toPath", {
727
+ enumerable: true,
686
728
  get: function() {
687
- return h;
729
+ return toPath2;
688
730
  }
689
731
  });
690
- function h(n) {
691
- if (Array.isArray(n))
692
- return n;
693
- let y = n.split("[").length - 1, f = n.split("]").length - 1;
694
- if (y !== f)
695
- throw new Error(`Path is invalid. Has unbalanced brackets: ${n}`);
696
- return n.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean);
697
- }
698
- })(me);
699
- var ge = {}, q = {};
700
- (function(e) {
701
- Object.defineProperty(e, "__esModule", {
702
- value: !0
732
+ function toPath2(path) {
733
+ if (Array.isArray(path))
734
+ return path;
735
+ let openBrackets = path.split("[").length - 1;
736
+ let closedBrackets = path.split("]").length - 1;
737
+ if (openBrackets !== closedBrackets) {
738
+ throw new Error(`Path is invalid. Has unbalanced brackets: ${path}`);
739
+ }
740
+ return path.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean);
741
+ }
742
+ })(toPath);
743
+ var normalizeConfig = {};
744
+ var featureFlags = {};
745
+ (function(exports) {
746
+ Object.defineProperty(exports, "__esModule", {
747
+ value: true
703
748
  });
704
- function h(g, d) {
705
- for (var A in d)
706
- Object.defineProperty(g, A, {
707
- enumerable: !0,
708
- get: d[A]
749
+ function _export(target, all) {
750
+ for (var name in all)
751
+ Object.defineProperty(target, name, {
752
+ enumerable: true,
753
+ get: all[name]
709
754
  });
710
755
  }
711
- h(e, {
756
+ _export(exports, {
712
757
  flagEnabled: function() {
713
- return v;
758
+ return flagEnabled;
714
759
  },
715
760
  issueFlagNotices: function() {
716
- return t;
761
+ return issueFlagNotices;
717
762
  },
718
763
  default: function() {
719
- return c;
764
+ return _default;
720
765
  }
721
766
  });
722
- const n = /* @__PURE__ */ f(de), y = /* @__PURE__ */ f(N);
723
- function f(g) {
724
- return g && g.__esModule ? g : {
725
- default: g
767
+ const _picocolors = /* @__PURE__ */ _interop_require_default(picocolors_browserExports);
768
+ const _log = /* @__PURE__ */ _interop_require_default(log);
769
+ function _interop_require_default(obj) {
770
+ return obj && obj.__esModule ? obj : {
771
+ default: obj
726
772
  };
727
773
  }
728
- let u = {
729
- optimizeUniversalDefaults: !1,
730
- generalizedModifiers: !0,
731
- disableColorOpacityUtilitiesByDefault: !1,
732
- relativeContentPathsByDefault: !1
733
- }, r = {
774
+ let defaults2 = {
775
+ optimizeUniversalDefaults: false,
776
+ generalizedModifiers: true,
777
+ disableColorOpacityUtilitiesByDefault: false,
778
+ relativeContentPathsByDefault: false
779
+ };
780
+ let featureFlags2 = {
734
781
  future: [
735
782
  "hoverOnlyWhenSupported",
736
783
  "respectDefaultRingColorOpacity",
@@ -742,242 +789,381 @@ var ge = {}, q = {};
742
789
  "generalizedModifiers"
743
790
  ]
744
791
  };
745
- function v(g, d) {
746
- if (r.future.includes(d)) {
747
- var A, m, k;
748
- return g.future === "all" || ((k = (m = g == null || (A = g.future) === null || A === void 0 ? void 0 : A[d]) !== null && m !== void 0 ? m : u[d]) !== null && k !== void 0 ? k : !1);
749
- }
750
- if (r.experimental.includes(d)) {
751
- var C, T, j;
752
- return g.experimental === "all" || ((j = (T = g == null || (C = g.experimental) === null || C === void 0 ? void 0 : C[d]) !== null && T !== void 0 ? T : u[d]) !== null && j !== void 0 ? j : !1);
753
- }
754
- return !1;
755
- }
756
- function a(g) {
757
- if (g.experimental === "all")
758
- return r.experimental;
759
- var d;
760
- return Object.keys((d = g == null ? void 0 : g.experimental) !== null && d !== void 0 ? d : {}).filter((A) => r.experimental.includes(A) && g.experimental[A]);
761
- }
762
- function t(g) {
763
- if (process.env.JEST_WORKER_ID === void 0 && a(g).length > 0) {
764
- let d = a(g).map((A) => n.default.yellow(A)).join(", ");
765
- y.default.warn("experimental-flags-enabled", [
766
- `You have enabled experimental features: ${d}`,
792
+ function flagEnabled(config2, flag) {
793
+ if (featureFlags2.future.includes(flag)) {
794
+ var _config_future;
795
+ var _config_future_flag, _ref;
796
+ return config2.future === "all" || ((_ref = (_config_future_flag = config2 === null || config2 === void 0 ? void 0 : (_config_future = config2.future) === null || _config_future === void 0 ? void 0 : _config_future[flag]) !== null && _config_future_flag !== void 0 ? _config_future_flag : defaults2[flag]) !== null && _ref !== void 0 ? _ref : false);
797
+ }
798
+ if (featureFlags2.experimental.includes(flag)) {
799
+ var _config_experimental;
800
+ var _config_experimental_flag, _ref1;
801
+ return config2.experimental === "all" || ((_ref1 = (_config_experimental_flag = config2 === null || config2 === void 0 ? void 0 : (_config_experimental = config2.experimental) === null || _config_experimental === void 0 ? void 0 : _config_experimental[flag]) !== null && _config_experimental_flag !== void 0 ? _config_experimental_flag : defaults2[flag]) !== null && _ref1 !== void 0 ? _ref1 : false);
802
+ }
803
+ return false;
804
+ }
805
+ function experimentalFlagsEnabled(config2) {
806
+ if (config2.experimental === "all") {
807
+ return featureFlags2.experimental;
808
+ }
809
+ var _config_experimental;
810
+ return Object.keys((_config_experimental = config2 === null || config2 === void 0 ? void 0 : config2.experimental) !== null && _config_experimental !== void 0 ? _config_experimental : {}).filter((flag) => featureFlags2.experimental.includes(flag) && config2.experimental[flag]);
811
+ }
812
+ function issueFlagNotices(config2) {
813
+ if (process.env.JEST_WORKER_ID !== void 0) {
814
+ return;
815
+ }
816
+ if (experimentalFlagsEnabled(config2).length > 0) {
817
+ let changes = experimentalFlagsEnabled(config2).map((s) => _picocolors.default.yellow(s)).join(", ");
818
+ _log.default.warn("experimental-flags-enabled", [
819
+ `You have enabled experimental features: ${changes}`,
767
820
  "Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."
768
821
  ]);
769
822
  }
770
823
  }
771
- const c = r;
772
- })(q);
773
- (function(e) {
774
- Object.defineProperty(e, "__esModule", {
775
- value: !0
776
- }), Object.defineProperty(e, "normalizeConfig", {
777
- enumerable: !0,
824
+ const _default = featureFlags2;
825
+ })(featureFlags);
826
+ (function(exports) {
827
+ Object.defineProperty(exports, "__esModule", {
828
+ value: true
829
+ });
830
+ Object.defineProperty(exports, "normalizeConfig", {
831
+ enumerable: true,
778
832
  get: function() {
779
- return u;
833
+ return normalizeConfig2;
780
834
  }
781
835
  });
782
- const h = q, n = /* @__PURE__ */ f(N);
783
- function y(r) {
784
- if (typeof WeakMap != "function")
836
+ const _featureFlags = featureFlags;
837
+ const _log = /* @__PURE__ */ _interop_require_wildcard(log);
838
+ function _getRequireWildcardCache(nodeInterop) {
839
+ if (typeof WeakMap !== "function")
785
840
  return null;
786
- var v = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
787
- return (y = function(t) {
788
- return t ? a : v;
789
- })(r);
790
- }
791
- function f(r, v) {
792
- if (!v && r && r.__esModule)
793
- return r;
794
- if (r === null || typeof r != "object" && typeof r != "function")
841
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
842
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
843
+ return (_getRequireWildcardCache = function(nodeInterop2) {
844
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
845
+ })(nodeInterop);
846
+ }
847
+ function _interop_require_wildcard(obj, nodeInterop) {
848
+ if (!nodeInterop && obj && obj.__esModule) {
849
+ return obj;
850
+ }
851
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
795
852
  return {
796
- default: r
853
+ default: obj
797
854
  };
798
- var a = y(v);
799
- if (a && a.has(r))
800
- return a.get(r);
801
- var t = {}, c = Object.defineProperty && Object.getOwnPropertyDescriptor;
802
- for (var g in r)
803
- if (g !== "default" && Object.prototype.hasOwnProperty.call(r, g)) {
804
- var d = c ? Object.getOwnPropertyDescriptor(r, g) : null;
805
- d && (d.get || d.set) ? Object.defineProperty(t, g, d) : t[g] = r[g];
855
+ }
856
+ var cache = _getRequireWildcardCache(nodeInterop);
857
+ if (cache && cache.has(obj)) {
858
+ return cache.get(obj);
859
+ }
860
+ var newObj = {};
861
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
862
+ for (var key in obj) {
863
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
864
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
865
+ if (desc && (desc.get || desc.set)) {
866
+ Object.defineProperty(newObj, key, desc);
867
+ } else {
868
+ newObj[key] = obj[key];
869
+ }
870
+ }
871
+ }
872
+ newObj.default = obj;
873
+ if (cache) {
874
+ cache.set(obj, newObj);
875
+ }
876
+ return newObj;
877
+ }
878
+ function normalizeConfig2(config2) {
879
+ let valid = (() => {
880
+ if (config2.purge) {
881
+ return false;
806
882
  }
807
- return t.default = r, a && a.set(r, t), t;
808
- }
809
- function u(r) {
810
- if ((() => {
811
- if (r.purge || !r.content || !Array.isArray(r.content) && !(typeof r.content == "object" && r.content !== null))
812
- return !1;
813
- if (Array.isArray(r.content))
814
- return r.content.every((t) => typeof t == "string" ? !0 : !(typeof (t == null ? void 0 : t.raw) != "string" || t != null && t.extension && typeof (t == null ? void 0 : t.extension) != "string"));
815
- if (typeof r.content == "object" && r.content !== null) {
816
- if (Object.keys(r.content).some((t) => ![
883
+ if (!config2.content) {
884
+ return false;
885
+ }
886
+ if (!Array.isArray(config2.content) && !(typeof config2.content === "object" && config2.content !== null)) {
887
+ return false;
888
+ }
889
+ if (Array.isArray(config2.content)) {
890
+ return config2.content.every((path) => {
891
+ if (typeof path === "string")
892
+ return true;
893
+ if (typeof (path === null || path === void 0 ? void 0 : path.raw) !== "string")
894
+ return false;
895
+ if ((path === null || path === void 0 ? void 0 : path.extension) && typeof (path === null || path === void 0 ? void 0 : path.extension) !== "string") {
896
+ return false;
897
+ }
898
+ return true;
899
+ });
900
+ }
901
+ if (typeof config2.content === "object" && config2.content !== null) {
902
+ if (Object.keys(config2.content).some((key) => ![
817
903
  "files",
818
904
  "relative",
819
905
  "extract",
820
906
  "transform"
821
- ].includes(t)))
822
- return !1;
823
- if (Array.isArray(r.content.files)) {
824
- if (!r.content.files.every((t) => typeof t == "string" ? !0 : !(typeof (t == null ? void 0 : t.raw) != "string" || t != null && t.extension && typeof (t == null ? void 0 : t.extension) != "string")))
825
- return !1;
826
- if (typeof r.content.extract == "object") {
827
- for (let t of Object.values(r.content.extract))
828
- if (typeof t != "function")
829
- return !1;
830
- } else if (!(r.content.extract === void 0 || typeof r.content.extract == "function"))
831
- return !1;
832
- if (typeof r.content.transform == "object") {
833
- for (let t of Object.values(r.content.transform))
834
- if (typeof t != "function")
835
- return !1;
836
- } else if (!(r.content.transform === void 0 || typeof r.content.transform == "function"))
837
- return !1;
838
- if (typeof r.content.relative != "boolean" && typeof r.content.relative < "u")
839
- return !1;
907
+ ].includes(key))) {
908
+ return false;
909
+ }
910
+ if (Array.isArray(config2.content.files)) {
911
+ if (!config2.content.files.every((path) => {
912
+ if (typeof path === "string")
913
+ return true;
914
+ if (typeof (path === null || path === void 0 ? void 0 : path.raw) !== "string")
915
+ return false;
916
+ if ((path === null || path === void 0 ? void 0 : path.extension) && typeof (path === null || path === void 0 ? void 0 : path.extension) !== "string") {
917
+ return false;
918
+ }
919
+ return true;
920
+ })) {
921
+ return false;
922
+ }
923
+ if (typeof config2.content.extract === "object") {
924
+ for (let value of Object.values(config2.content.extract)) {
925
+ if (typeof value !== "function") {
926
+ return false;
927
+ }
928
+ }
929
+ } else if (!(config2.content.extract === void 0 || typeof config2.content.extract === "function")) {
930
+ return false;
931
+ }
932
+ if (typeof config2.content.transform === "object") {
933
+ for (let value of Object.values(config2.content.transform)) {
934
+ if (typeof value !== "function") {
935
+ return false;
936
+ }
937
+ }
938
+ } else if (!(config2.content.transform === void 0 || typeof config2.content.transform === "function")) {
939
+ return false;
940
+ }
941
+ if (typeof config2.content.relative !== "boolean" && typeof config2.content.relative !== "undefined") {
942
+ return false;
943
+ }
840
944
  }
841
- return !0;
945
+ return true;
842
946
  }
843
- return !1;
844
- })() || n.default.warn("purge-deprecation", [
845
- "The `purge`/`content` options have changed in Tailwind CSS v3.0.",
846
- "Update your configuration file to eliminate this warning.",
847
- "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"
848
- ]), r.safelist = (() => {
849
- var t;
850
- let { content: c, purge: g, safelist: d } = r;
851
- return Array.isArray(d) ? d : Array.isArray(c == null ? void 0 : c.safelist) ? c.safelist : Array.isArray(g == null ? void 0 : g.safelist) ? g.safelist : Array.isArray(g == null || (t = g.options) === null || t === void 0 ? void 0 : t.safelist) ? g.options.safelist : [];
852
- })(), r.blocklist = (() => {
853
- let { blocklist: t } = r;
854
- if (Array.isArray(t)) {
855
- if (t.every((c) => typeof c == "string"))
856
- return t;
857
- n.default.warn("blocklist-invalid", [
947
+ return false;
948
+ })();
949
+ if (!valid) {
950
+ _log.default.warn("purge-deprecation", [
951
+ "The `purge`/`content` options have changed in Tailwind CSS v3.0.",
952
+ "Update your configuration file to eliminate this warning.",
953
+ "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"
954
+ ]);
955
+ }
956
+ config2.safelist = (() => {
957
+ var _purge_options;
958
+ let { content, purge, safelist } = config2;
959
+ if (Array.isArray(safelist))
960
+ return safelist;
961
+ if (Array.isArray(content === null || content === void 0 ? void 0 : content.safelist))
962
+ return content.safelist;
963
+ if (Array.isArray(purge === null || purge === void 0 ? void 0 : purge.safelist))
964
+ return purge.safelist;
965
+ if (Array.isArray(purge === null || purge === void 0 ? void 0 : (_purge_options = purge.options) === null || _purge_options === void 0 ? void 0 : _purge_options.safelist))
966
+ return purge.options.safelist;
967
+ return [];
968
+ })();
969
+ config2.blocklist = (() => {
970
+ let { blocklist } = config2;
971
+ if (Array.isArray(blocklist)) {
972
+ if (blocklist.every((item) => typeof item === "string")) {
973
+ return blocklist;
974
+ }
975
+ _log.default.warn("blocklist-invalid", [
858
976
  "The `blocklist` option must be an array of strings.",
859
977
  "https://tailwindcss.com/docs/content-configuration#discarding-classes"
860
978
  ]);
861
979
  }
862
980
  return [];
863
- })(), typeof r.prefix == "function")
864
- n.default.warn("prefix-function", [
981
+ })();
982
+ if (typeof config2.prefix === "function") {
983
+ _log.default.warn("prefix-function", [
865
984
  "As of Tailwind CSS v3.0, `prefix` cannot be a function.",
866
985
  "Update `prefix` in your configuration to be a string to eliminate this warning.",
867
986
  "https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"
868
- ]), r.prefix = "";
869
- else {
870
- var a;
871
- r.prefix = (a = r.prefix) !== null && a !== void 0 ? a : "";
987
+ ]);
988
+ config2.prefix = "";
989
+ } else {
990
+ var _config_prefix;
991
+ config2.prefix = (_config_prefix = config2.prefix) !== null && _config_prefix !== void 0 ? _config_prefix : "";
872
992
  }
873
- r.content = {
993
+ config2.content = {
874
994
  relative: (() => {
875
- let { content: t } = r;
876
- return t != null && t.relative ? t.relative : (0, h.flagEnabled)(r, "relativeContentPathsByDefault");
995
+ let { content } = config2;
996
+ if (content === null || content === void 0 ? void 0 : content.relative) {
997
+ return content.relative;
998
+ }
999
+ return (0, _featureFlags.flagEnabled)(config2, "relativeContentPathsByDefault");
877
1000
  })(),
878
1001
  files: (() => {
879
- let { content: t, purge: c } = r;
880
- return Array.isArray(c) ? c : Array.isArray(c == null ? void 0 : c.content) ? c.content : Array.isArray(t) ? t : Array.isArray(t == null ? void 0 : t.content) ? t.content : Array.isArray(t == null ? void 0 : t.files) ? t.files : [];
1002
+ let { content, purge } = config2;
1003
+ if (Array.isArray(purge))
1004
+ return purge;
1005
+ if (Array.isArray(purge === null || purge === void 0 ? void 0 : purge.content))
1006
+ return purge.content;
1007
+ if (Array.isArray(content))
1008
+ return content;
1009
+ if (Array.isArray(content === null || content === void 0 ? void 0 : content.content))
1010
+ return content.content;
1011
+ if (Array.isArray(content === null || content === void 0 ? void 0 : content.files))
1012
+ return content.files;
1013
+ return [];
881
1014
  })(),
882
1015
  extract: (() => {
883
- let t = (() => {
884
- var d, A, m, k, C, T, j, P, $, D;
885
- return !((d = r.purge) === null || d === void 0) && d.extract ? r.purge.extract : !((A = r.content) === null || A === void 0) && A.extract ? r.content.extract : !((m = r.purge) === null || m === void 0 || (k = m.extract) === null || k === void 0) && k.DEFAULT ? r.purge.extract.DEFAULT : !((C = r.content) === null || C === void 0 || (T = C.extract) === null || T === void 0) && T.DEFAULT ? r.content.extract.DEFAULT : !((j = r.purge) === null || j === void 0 || (P = j.options) === null || P === void 0) && P.extractors ? r.purge.options.extractors : !(($ = r.content) === null || $ === void 0 || (D = $.options) === null || D === void 0) && D.extractors ? r.content.options.extractors : {};
886
- })(), c = {}, g = (() => {
887
- var d, A, m, k;
888
- if (!((d = r.purge) === null || d === void 0 || (A = d.options) === null || A === void 0) && A.defaultExtractor)
889
- return r.purge.options.defaultExtractor;
890
- if (!((m = r.content) === null || m === void 0 || (k = m.options) === null || k === void 0) && k.defaultExtractor)
891
- return r.content.options.defaultExtractor;
1016
+ let extract = (() => {
1017
+ var _config_purge, _config_content, _config_purge1, _config_purge_extract, _config_content1, _config_content_extract, _config_purge2, _config_purge_options, _config_content2, _config_content_options;
1018
+ if ((_config_purge = config2.purge) === null || _config_purge === void 0 ? void 0 : _config_purge.extract)
1019
+ return config2.purge.extract;
1020
+ if ((_config_content = config2.content) === null || _config_content === void 0 ? void 0 : _config_content.extract)
1021
+ return config2.content.extract;
1022
+ if ((_config_purge1 = config2.purge) === null || _config_purge1 === void 0 ? void 0 : (_config_purge_extract = _config_purge1.extract) === null || _config_purge_extract === void 0 ? void 0 : _config_purge_extract.DEFAULT)
1023
+ return config2.purge.extract.DEFAULT;
1024
+ if ((_config_content1 = config2.content) === null || _config_content1 === void 0 ? void 0 : (_config_content_extract = _config_content1.extract) === null || _config_content_extract === void 0 ? void 0 : _config_content_extract.DEFAULT)
1025
+ return config2.content.extract.DEFAULT;
1026
+ if ((_config_purge2 = config2.purge) === null || _config_purge2 === void 0 ? void 0 : (_config_purge_options = _config_purge2.options) === null || _config_purge_options === void 0 ? void 0 : _config_purge_options.extractors)
1027
+ return config2.purge.options.extractors;
1028
+ if ((_config_content2 = config2.content) === null || _config_content2 === void 0 ? void 0 : (_config_content_options = _config_content2.options) === null || _config_content_options === void 0 ? void 0 : _config_content_options.extractors)
1029
+ return config2.content.options.extractors;
1030
+ return {};
1031
+ })();
1032
+ let extractors = {};
1033
+ let defaultExtractor = (() => {
1034
+ var _config_purge, _config_purge_options, _config_content, _config_content_options;
1035
+ if ((_config_purge = config2.purge) === null || _config_purge === void 0 ? void 0 : (_config_purge_options = _config_purge.options) === null || _config_purge_options === void 0 ? void 0 : _config_purge_options.defaultExtractor) {
1036
+ return config2.purge.options.defaultExtractor;
1037
+ }
1038
+ if ((_config_content = config2.content) === null || _config_content === void 0 ? void 0 : (_config_content_options = _config_content.options) === null || _config_content_options === void 0 ? void 0 : _config_content_options.defaultExtractor) {
1039
+ return config2.content.options.defaultExtractor;
1040
+ }
1041
+ return void 0;
892
1042
  })();
893
- if (g !== void 0 && (c.DEFAULT = g), typeof t == "function")
894
- c.DEFAULT = t;
895
- else if (Array.isArray(t))
896
- for (let { extensions: d, extractor: A } of t ?? [])
897
- for (let m of d)
898
- c[m] = A;
899
- else
900
- typeof t == "object" && t !== null && Object.assign(c, t);
901
- return c;
1043
+ if (defaultExtractor !== void 0) {
1044
+ extractors.DEFAULT = defaultExtractor;
1045
+ }
1046
+ if (typeof extract === "function") {
1047
+ extractors.DEFAULT = extract;
1048
+ } else if (Array.isArray(extract)) {
1049
+ for (let { extensions, extractor } of extract !== null && extract !== void 0 ? extract : []) {
1050
+ for (let extension of extensions) {
1051
+ extractors[extension] = extractor;
1052
+ }
1053
+ }
1054
+ } else if (typeof extract === "object" && extract !== null) {
1055
+ Object.assign(extractors, extract);
1056
+ }
1057
+ return extractors;
902
1058
  })(),
903
1059
  transform: (() => {
904
- let t = (() => {
905
- var g, d, A, m, k, C;
906
- return !((g = r.purge) === null || g === void 0) && g.transform ? r.purge.transform : !((d = r.content) === null || d === void 0) && d.transform ? r.content.transform : !((A = r.purge) === null || A === void 0 || (m = A.transform) === null || m === void 0) && m.DEFAULT ? r.purge.transform.DEFAULT : !((k = r.content) === null || k === void 0 || (C = k.transform) === null || C === void 0) && C.DEFAULT ? r.content.transform.DEFAULT : {};
907
- })(), c = {};
908
- return typeof t == "function" && (c.DEFAULT = t), typeof t == "object" && t !== null && Object.assign(c, t), c;
1060
+ let transform = (() => {
1061
+ var _config_purge, _config_content, _config_purge1, _config_purge_transform, _config_content1, _config_content_transform;
1062
+ if ((_config_purge = config2.purge) === null || _config_purge === void 0 ? void 0 : _config_purge.transform)
1063
+ return config2.purge.transform;
1064
+ if ((_config_content = config2.content) === null || _config_content === void 0 ? void 0 : _config_content.transform)
1065
+ return config2.content.transform;
1066
+ if ((_config_purge1 = config2.purge) === null || _config_purge1 === void 0 ? void 0 : (_config_purge_transform = _config_purge1.transform) === null || _config_purge_transform === void 0 ? void 0 : _config_purge_transform.DEFAULT)
1067
+ return config2.purge.transform.DEFAULT;
1068
+ if ((_config_content1 = config2.content) === null || _config_content1 === void 0 ? void 0 : (_config_content_transform = _config_content1.transform) === null || _config_content_transform === void 0 ? void 0 : _config_content_transform.DEFAULT)
1069
+ return config2.content.transform.DEFAULT;
1070
+ return {};
1071
+ })();
1072
+ let transformers = {};
1073
+ if (typeof transform === "function") {
1074
+ transformers.DEFAULT = transform;
1075
+ }
1076
+ if (typeof transform === "object" && transform !== null) {
1077
+ Object.assign(transformers, transform);
1078
+ }
1079
+ return transformers;
909
1080
  })()
910
1081
  };
911
- for (let t of r.content.files)
912
- if (typeof t == "string" && /{([^,]*?)}/g.test(t)) {
913
- n.default.warn("invalid-glob-braces", [
914
- `The glob pattern ${(0, n.dim)(t)} in your Tailwind CSS configuration is invalid.`,
915
- `Update it to ${(0, n.dim)(t.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
1082
+ for (let file of config2.content.files) {
1083
+ if (typeof file === "string" && /{([^,]*?)}/g.test(file)) {
1084
+ _log.default.warn("invalid-glob-braces", [
1085
+ `The glob pattern ${(0, _log.dim)(file)} in your Tailwind CSS configuration is invalid.`,
1086
+ `Update it to ${(0, _log.dim)(file.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
916
1087
  ]);
917
1088
  break;
918
1089
  }
919
- return r;
920
- }
921
- })(ge);
922
- var be = {};
923
- (function(e) {
924
- Object.defineProperty(e, "__esModule", {
925
- value: !0
926
- }), Object.defineProperty(e, "default", {
927
- enumerable: !0,
1090
+ }
1091
+ return config2;
1092
+ }
1093
+ })(normalizeConfig);
1094
+ var isPlainObject = {};
1095
+ (function(exports) {
1096
+ Object.defineProperty(exports, "__esModule", {
1097
+ value: true
1098
+ });
1099
+ Object.defineProperty(exports, "default", {
1100
+ enumerable: true,
928
1101
  get: function() {
929
- return h;
1102
+ return isPlainObject2;
1103
+ }
1104
+ });
1105
+ function isPlainObject2(value) {
1106
+ if (Object.prototype.toString.call(value) !== "[object Object]") {
1107
+ return false;
930
1108
  }
1109
+ const prototype = Object.getPrototypeOf(value);
1110
+ return prototype === null || Object.getPrototypeOf(prototype) === null;
1111
+ }
1112
+ })(isPlainObject);
1113
+ var cloneDeep = {};
1114
+ (function(exports) {
1115
+ Object.defineProperty(exports, "__esModule", {
1116
+ value: true
931
1117
  });
932
- function h(n) {
933
- if (Object.prototype.toString.call(n) !== "[object Object]")
934
- return !1;
935
- const y = Object.getPrototypeOf(n);
936
- return y === null || Object.getPrototypeOf(y) === null;
937
- }
938
- })(be);
939
- var ve = {};
940
- (function(e) {
941
- Object.defineProperty(e, "__esModule", {
942
- value: !0
943
- }), Object.defineProperty(e, "cloneDeep", {
944
- enumerable: !0,
1118
+ Object.defineProperty(exports, "cloneDeep", {
1119
+ enumerable: true,
945
1120
  get: function() {
946
- return h;
1121
+ return cloneDeep2;
947
1122
  }
948
1123
  });
949
- function h(n) {
950
- return Array.isArray(n) ? n.map((y) => h(y)) : typeof n == "object" && n !== null ? Object.fromEntries(Object.entries(n).map(([y, f]) => [
951
- y,
952
- h(f)
953
- ])) : n;
954
- }
955
- })(ve);
956
- var he = {}, ye = {};
957
- (function(e) {
958
- Object.defineProperty(e, "__esModule", {
959
- value: !0
960
- }), Object.defineProperty(e, "default", {
961
- enumerable: !0,
1124
+ function cloneDeep2(value) {
1125
+ if (Array.isArray(value)) {
1126
+ return value.map((child) => cloneDeep2(child));
1127
+ }
1128
+ if (typeof value === "object" && value !== null) {
1129
+ return Object.fromEntries(Object.entries(value).map(([k, v]) => [
1130
+ k,
1131
+ cloneDeep2(v)
1132
+ ]));
1133
+ }
1134
+ return value;
1135
+ }
1136
+ })(cloneDeep);
1137
+ var pluginUtils = {};
1138
+ var escapeCommas = {};
1139
+ (function(exports) {
1140
+ Object.defineProperty(exports, "__esModule", {
1141
+ value: true
1142
+ });
1143
+ Object.defineProperty(exports, "default", {
1144
+ enumerable: true,
962
1145
  get: function() {
963
- return h;
1146
+ return escapeCommas2;
964
1147
  }
965
1148
  });
966
- function h(n) {
967
- return n.replace(/\\,/g, "\\2c ");
968
- }
969
- })(ye);
970
- var re = {}, ne = {}, xe = {};
971
- (function(e) {
972
- Object.defineProperty(e, "__esModule", {
973
- value: !0
974
- }), Object.defineProperty(e, "default", {
975
- enumerable: !0,
1149
+ function escapeCommas2(className) {
1150
+ return className.replace(/\\,/g, "\\2c ");
1151
+ }
1152
+ })(escapeCommas);
1153
+ var withAlphaVariable = {};
1154
+ var color = {};
1155
+ var colorNames = {};
1156
+ (function(exports) {
1157
+ Object.defineProperty(exports, "__esModule", {
1158
+ value: true
1159
+ });
1160
+ Object.defineProperty(exports, "default", {
1161
+ enumerable: true,
976
1162
  get: function() {
977
- return h;
1163
+ return _default;
978
1164
  }
979
1165
  });
980
- const h = {
1166
+ const _default = {
981
1167
  aliceblue: [
982
1168
  240,
983
1169
  248,
@@ -1719,38 +1905,47 @@ var re = {}, ne = {}, xe = {};
1719
1905
  50
1720
1906
  ]
1721
1907
  };
1722
- })(xe);
1723
- (function(e) {
1724
- Object.defineProperty(e, "__esModule", {
1725
- value: !0
1908
+ })(colorNames);
1909
+ (function(exports) {
1910
+ Object.defineProperty(exports, "__esModule", {
1911
+ value: true
1726
1912
  });
1727
- function h(m, k) {
1728
- for (var C in k)
1729
- Object.defineProperty(m, C, {
1730
- enumerable: !0,
1731
- get: k[C]
1913
+ function _export(target, all) {
1914
+ for (var name in all)
1915
+ Object.defineProperty(target, name, {
1916
+ enumerable: true,
1917
+ get: all[name]
1732
1918
  });
1733
1919
  }
1734
- h(e, {
1920
+ _export(exports, {
1735
1921
  parseColor: function() {
1736
- return d;
1922
+ return parseColor;
1737
1923
  },
1738
1924
  formatColor: function() {
1739
- return A;
1925
+ return formatColor;
1740
1926
  }
1741
1927
  });
1742
- const n = /* @__PURE__ */ y(xe);
1743
- function y(m) {
1744
- return m && m.__esModule ? m : {
1745
- default: m
1928
+ const _colorNames = /* @__PURE__ */ _interop_require_default(colorNames);
1929
+ function _interop_require_default(obj) {
1930
+ return obj && obj.__esModule ? obj : {
1931
+ default: obj
1746
1932
  };
1747
1933
  }
1748
- let f = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, u = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, r = /(?:\d+|\d*\.\d+)%?/, v = /(?:\s*,\s*|\s+)/, a = /\s*[,/]\s*/, t = /var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/, c = new RegExp(`^(rgba?)\\(\\s*(${r.source}|${t.source})(?:${v.source}(${r.source}|${t.source}))?(?:${v.source}(${r.source}|${t.source}))?(?:${a.source}(${r.source}|${t.source}))?\\s*\\)$`), g = new RegExp(`^(hsla?)\\(\\s*((?:${r.source})(?:deg|rad|grad|turn)?|${t.source})(?:${v.source}(${r.source}|${t.source}))?(?:${v.source}(${r.source}|${t.source}))?(?:${a.source}(${r.source}|${t.source}))?\\s*\\)$`);
1749
- function d(m, { loose: k = !1 } = {}) {
1750
- var C, T;
1751
- if (typeof m != "string")
1934
+ let HEX = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;
1935
+ let SHORT_HEX = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;
1936
+ let VALUE = /(?:\d+|\d*\.\d+)%?/;
1937
+ let SEP = /(?:\s*,\s*|\s+)/;
1938
+ let ALPHA_SEP = /\s*[,/]\s*/;
1939
+ let CUSTOM_PROPERTY = /var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/;
1940
+ let RGB = new RegExp(`^(rgba?)\\(\\s*(${VALUE.source}|${CUSTOM_PROPERTY.source})(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${ALPHA_SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?\\s*\\)$`);
1941
+ let HSL = new RegExp(`^(hsla?)\\(\\s*((?:${VALUE.source})(?:deg|rad|grad|turn)?|${CUSTOM_PROPERTY.source})(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?(?:${ALPHA_SEP.source}(${VALUE.source}|${CUSTOM_PROPERTY.source}))?\\s*\\)$`);
1942
+ function parseColor(value, { loose = false } = {}) {
1943
+ var _match_, _match__toString;
1944
+ if (typeof value !== "string") {
1752
1945
  return null;
1753
- if (m = m.trim(), m === "transparent")
1946
+ }
1947
+ value = value.trim();
1948
+ if (value === "transparent") {
1754
1949
  return {
1755
1950
  mode: "rgb",
1756
1951
  color: [
@@ -1760,258 +1955,352 @@ var re = {}, ne = {}, xe = {};
1760
1955
  ],
1761
1956
  alpha: "0"
1762
1957
  };
1763
- if (m in n.default)
1958
+ }
1959
+ if (value in _colorNames.default) {
1764
1960
  return {
1765
1961
  mode: "rgb",
1766
- color: n.default[m].map((F) => F.toString())
1962
+ color: _colorNames.default[value].map((v) => v.toString())
1767
1963
  };
1768
- let j = m.replace(u, (F, R, U, l, x) => [
1964
+ }
1965
+ let hex = value.replace(SHORT_HEX, (_, r, g, b, a) => [
1769
1966
  "#",
1770
- R,
1771
- R,
1772
- U,
1773
- U,
1774
- l,
1775
- l,
1776
- x ? x + x : ""
1777
- ].join("")).match(f);
1778
- if (j !== null)
1967
+ r,
1968
+ r,
1969
+ g,
1970
+ g,
1971
+ b,
1972
+ b,
1973
+ a ? a + a : ""
1974
+ ].join("")).match(HEX);
1975
+ if (hex !== null) {
1779
1976
  return {
1780
1977
  mode: "rgb",
1781
1978
  color: [
1782
- parseInt(j[1], 16),
1783
- parseInt(j[2], 16),
1784
- parseInt(j[3], 16)
1785
- ].map((F) => F.toString()),
1786
- alpha: j[4] ? (parseInt(j[4], 16) / 255).toString() : void 0
1979
+ parseInt(hex[1], 16),
1980
+ parseInt(hex[2], 16),
1981
+ parseInt(hex[3], 16)
1982
+ ].map((v) => v.toString()),
1983
+ alpha: hex[4] ? (parseInt(hex[4], 16) / 255).toString() : void 0
1787
1984
  };
1788
- var P;
1789
- let $ = (P = m.match(c)) !== null && P !== void 0 ? P : m.match(g);
1790
- if ($ === null)
1985
+ }
1986
+ var _value_match;
1987
+ let match = (_value_match = value.match(RGB)) !== null && _value_match !== void 0 ? _value_match : value.match(HSL);
1988
+ if (match === null) {
1791
1989
  return null;
1792
- let D = [
1793
- $[2],
1794
- $[3],
1795
- $[4]
1796
- ].filter(Boolean).map((F) => F.toString());
1797
- return D.length === 2 && D[0].startsWith("var(") ? {
1798
- mode: $[1],
1799
- color: [
1800
- D[0]
1801
- ],
1802
- alpha: D[1]
1803
- } : !k && D.length !== 3 || D.length < 3 && !D.some((F) => /^var\(.*?\)$/.test(F)) ? null : {
1804
- mode: $[1],
1805
- color: D,
1806
- alpha: (C = $[5]) === null || C === void 0 || (T = C.toString) === null || T === void 0 ? void 0 : T.call(C)
1990
+ }
1991
+ let color2 = [
1992
+ match[2],
1993
+ match[3],
1994
+ match[4]
1995
+ ].filter(Boolean).map((v) => v.toString());
1996
+ if (color2.length === 2 && color2[0].startsWith("var(")) {
1997
+ return {
1998
+ mode: match[1],
1999
+ color: [
2000
+ color2[0]
2001
+ ],
2002
+ alpha: color2[1]
2003
+ };
2004
+ }
2005
+ if (!loose && color2.length !== 3) {
2006
+ return null;
2007
+ }
2008
+ if (color2.length < 3 && !color2.some((part) => /^var\(.*?\)$/.test(part))) {
2009
+ return null;
2010
+ }
2011
+ return {
2012
+ mode: match[1],
2013
+ color: color2,
2014
+ alpha: (_match_ = match[5]) === null || _match_ === void 0 ? void 0 : (_match__toString = _match_.toString) === null || _match__toString === void 0 ? void 0 : _match__toString.call(_match_)
1807
2015
  };
1808
2016
  }
1809
- function A({ mode: m, color: k, alpha: C }) {
1810
- let T = C !== void 0;
1811
- return m === "rgba" || m === "hsla" ? `${m}(${k.join(", ")}${T ? `, ${C}` : ""})` : `${m}(${k.join(" ")}${T ? ` / ${C}` : ""})`;
2017
+ function formatColor({ mode, color: color2, alpha }) {
2018
+ let hasAlpha = alpha !== void 0;
2019
+ if (mode === "rgba" || mode === "hsla") {
2020
+ return `${mode}(${color2.join(", ")}${hasAlpha ? `, ${alpha}` : ""})`;
2021
+ }
2022
+ return `${mode}(${color2.join(" ")}${hasAlpha ? ` / ${alpha}` : ""})`;
1812
2023
  }
1813
- })(ne);
1814
- (function(e) {
1815
- Object.defineProperty(e, "__esModule", {
1816
- value: !0
2024
+ })(color);
2025
+ (function(exports) {
2026
+ Object.defineProperty(exports, "__esModule", {
2027
+ value: true
1817
2028
  });
1818
- function h(u, r) {
1819
- for (var v in r)
1820
- Object.defineProperty(u, v, {
1821
- enumerable: !0,
1822
- get: r[v]
2029
+ function _export(target, all) {
2030
+ for (var name in all)
2031
+ Object.defineProperty(target, name, {
2032
+ enumerable: true,
2033
+ get: all[name]
1823
2034
  });
1824
2035
  }
1825
- h(e, {
2036
+ _export(exports, {
1826
2037
  withAlphaValue: function() {
1827
- return y;
2038
+ return withAlphaValue;
1828
2039
  },
1829
2040
  default: function() {
1830
- return f;
2041
+ return withAlphaVariable2;
1831
2042
  }
1832
2043
  });
1833
- const n = ne;
1834
- function y(u, r, v) {
1835
- if (typeof u == "function")
1836
- return u({
1837
- opacityValue: r
2044
+ const _color = color;
2045
+ function withAlphaValue(color2, alphaValue, defaultValue) {
2046
+ if (typeof color2 === "function") {
2047
+ return color2({
2048
+ opacityValue: alphaValue
1838
2049
  });
1839
- let a = (0, n.parseColor)(u, {
1840
- loose: !0
2050
+ }
2051
+ let parsed = (0, _color.parseColor)(color2, {
2052
+ loose: true
1841
2053
  });
1842
- return a === null ? v : (0, n.formatColor)({
1843
- ...a,
1844
- alpha: r
2054
+ if (parsed === null) {
2055
+ return defaultValue;
2056
+ }
2057
+ return (0, _color.formatColor)({
2058
+ ...parsed,
2059
+ alpha: alphaValue
1845
2060
  });
1846
2061
  }
1847
- function f({ color: u, property: r, variable: v }) {
1848
- let a = [].concat(r);
1849
- if (typeof u == "function")
2062
+ function withAlphaVariable2({ color: color2, property, variable }) {
2063
+ let properties = [].concat(property);
2064
+ if (typeof color2 === "function") {
1850
2065
  return {
1851
- [v]: "1",
1852
- ...Object.fromEntries(a.map((c) => [
1853
- c,
1854
- u({
1855
- opacityVariable: v,
1856
- opacityValue: `var(${v})`
1857
- })
1858
- ]))
2066
+ [variable]: "1",
2067
+ ...Object.fromEntries(properties.map((p) => {
2068
+ return [
2069
+ p,
2070
+ color2({
2071
+ opacityVariable: variable,
2072
+ opacityValue: `var(${variable})`
2073
+ })
2074
+ ];
2075
+ }))
1859
2076
  };
1860
- const t = (0, n.parseColor)(u);
1861
- return t === null ? Object.fromEntries(a.map((c) => [
1862
- c,
1863
- u
1864
- ])) : t.alpha !== void 0 ? Object.fromEntries(a.map((c) => [
1865
- c,
1866
- u
1867
- ])) : {
1868
- [v]: "1",
1869
- ...Object.fromEntries(a.map((c) => [
1870
- c,
1871
- (0, n.formatColor)({
1872
- ...t,
1873
- alpha: `var(${v})`
1874
- })
1875
- ]))
2077
+ }
2078
+ const parsed = (0, _color.parseColor)(color2);
2079
+ if (parsed === null) {
2080
+ return Object.fromEntries(properties.map((p) => [
2081
+ p,
2082
+ color2
2083
+ ]));
2084
+ }
2085
+ if (parsed.alpha !== void 0) {
2086
+ return Object.fromEntries(properties.map((p) => [
2087
+ p,
2088
+ color2
2089
+ ]));
2090
+ }
2091
+ return {
2092
+ [variable]: "1",
2093
+ ...Object.fromEntries(properties.map((p) => {
2094
+ return [
2095
+ p,
2096
+ (0, _color.formatColor)({
2097
+ ...parsed,
2098
+ alpha: `var(${variable})`
2099
+ })
2100
+ ];
2101
+ }))
1876
2102
  };
1877
2103
  }
1878
- })(re);
1879
- var ie = {}, we = {}, H = {};
1880
- (function(e) {
1881
- Object.defineProperty(e, "__esModule", {
1882
- value: !0
1883
- }), Object.defineProperty(e, "splitAtTopLevelOnly", {
1884
- enumerable: !0,
2104
+ })(withAlphaVariable);
2105
+ var dataTypes = {};
2106
+ var parseBoxShadowValue = {};
2107
+ var splitAtTopLevelOnly = {};
2108
+ (function(exports) {
2109
+ Object.defineProperty(exports, "__esModule", {
2110
+ value: true
2111
+ });
2112
+ Object.defineProperty(exports, "splitAtTopLevelOnly", {
2113
+ enumerable: true,
1885
2114
  get: function() {
1886
- return h;
2115
+ return splitAtTopLevelOnly2;
1887
2116
  }
1888
2117
  });
1889
- function h(n, y) {
1890
- let f = [], u = [], r = 0, v = !1;
1891
- for (let a = 0; a < n.length; a++) {
1892
- let t = n[a];
1893
- f.length === 0 && t === y[0] && !v && (y.length === 1 || n.slice(a, a + y.length) === y) && (u.push(n.slice(r, a)), r = a + y.length), v ? v = !1 : t === "\\" && (v = !0), t === "(" || t === "[" || t === "{" ? f.push(t) : (t === ")" && f[f.length - 1] === "(" || t === "]" && f[f.length - 1] === "[" || t === "}" && f[f.length - 1] === "{") && f.pop();
1894
- }
1895
- return u.push(n.slice(r)), u;
1896
- }
1897
- })(H);
1898
- (function(e) {
1899
- Object.defineProperty(e, "__esModule", {
1900
- value: !0
2118
+ function splitAtTopLevelOnly2(input, separator) {
2119
+ let stack = [];
2120
+ let parts = [];
2121
+ let lastPos = 0;
2122
+ let isEscaped = false;
2123
+ for (let idx = 0; idx < input.length; idx++) {
2124
+ let char = input[idx];
2125
+ if (stack.length === 0 && char === separator[0] && !isEscaped) {
2126
+ if (separator.length === 1 || input.slice(idx, idx + separator.length) === separator) {
2127
+ parts.push(input.slice(lastPos, idx));
2128
+ lastPos = idx + separator.length;
2129
+ }
2130
+ }
2131
+ if (isEscaped) {
2132
+ isEscaped = false;
2133
+ } else if (char === "\\") {
2134
+ isEscaped = true;
2135
+ }
2136
+ if (char === "(" || char === "[" || char === "{") {
2137
+ stack.push(char);
2138
+ } else if (char === ")" && stack[stack.length - 1] === "(" || char === "]" && stack[stack.length - 1] === "[" || char === "}" && stack[stack.length - 1] === "{") {
2139
+ stack.pop();
2140
+ }
2141
+ }
2142
+ parts.push(input.slice(lastPos));
2143
+ return parts;
2144
+ }
2145
+ })(splitAtTopLevelOnly);
2146
+ (function(exports) {
2147
+ Object.defineProperty(exports, "__esModule", {
2148
+ value: true
1901
2149
  });
1902
- function h(a, t) {
1903
- for (var c in t)
1904
- Object.defineProperty(a, c, {
1905
- enumerable: !0,
1906
- get: t[c]
2150
+ function _export(target, all) {
2151
+ for (var name in all)
2152
+ Object.defineProperty(target, name, {
2153
+ enumerable: true,
2154
+ get: all[name]
1907
2155
  });
1908
2156
  }
1909
- h(e, {
2157
+ _export(exports, {
1910
2158
  parseBoxShadowValue: function() {
1911
- return r;
2159
+ return parseBoxShadowValue2;
1912
2160
  },
1913
2161
  formatBoxShadowValue: function() {
1914
- return v;
2162
+ return formatBoxShadowValue;
1915
2163
  }
1916
2164
  });
1917
- const n = H;
1918
- let y = /* @__PURE__ */ new Set([
2165
+ const _splitAtTopLevelOnly = splitAtTopLevelOnly;
2166
+ let KEYWORDS = /* @__PURE__ */ new Set([
1919
2167
  "inset",
1920
2168
  "inherit",
1921
2169
  "initial",
1922
2170
  "revert",
1923
2171
  "unset"
1924
- ]), f = /\ +(?![^(]*\))/g, u = /^-?(\d+|\.\d+)(.*?)$/g;
1925
- function r(a) {
1926
- return (0, n.splitAtTopLevelOnly)(a, ",").map((c) => {
1927
- let g = c.trim(), d = {
1928
- raw: g
1929
- }, A = g.split(f), m = /* @__PURE__ */ new Set();
1930
- for (let k of A)
1931
- u.lastIndex = 0, !m.has("KEYWORD") && y.has(k) ? (d.keyword = k, m.add("KEYWORD")) : u.test(k) ? m.has("X") ? m.has("Y") ? m.has("BLUR") ? m.has("SPREAD") || (d.spread = k, m.add("SPREAD")) : (d.blur = k, m.add("BLUR")) : (d.y = k, m.add("Y")) : (d.x = k, m.add("X")) : d.color ? (d.unknown || (d.unknown = []), d.unknown.push(k)) : d.color = k;
1932
- return d.valid = d.x !== void 0 && d.y !== void 0, d;
2172
+ ]);
2173
+ let SPACE = /\ +(?![^(]*\))/g;
2174
+ let LENGTH = /^-?(\d+|\.\d+)(.*?)$/g;
2175
+ function parseBoxShadowValue2(input) {
2176
+ let shadows = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(input, ",");
2177
+ return shadows.map((shadow) => {
2178
+ let value = shadow.trim();
2179
+ let result = {
2180
+ raw: value
2181
+ };
2182
+ let parts = value.split(SPACE);
2183
+ let seen = /* @__PURE__ */ new Set();
2184
+ for (let part of parts) {
2185
+ LENGTH.lastIndex = 0;
2186
+ if (!seen.has("KEYWORD") && KEYWORDS.has(part)) {
2187
+ result.keyword = part;
2188
+ seen.add("KEYWORD");
2189
+ } else if (LENGTH.test(part)) {
2190
+ if (!seen.has("X")) {
2191
+ result.x = part;
2192
+ seen.add("X");
2193
+ } else if (!seen.has("Y")) {
2194
+ result.y = part;
2195
+ seen.add("Y");
2196
+ } else if (!seen.has("BLUR")) {
2197
+ result.blur = part;
2198
+ seen.add("BLUR");
2199
+ } else if (!seen.has("SPREAD")) {
2200
+ result.spread = part;
2201
+ seen.add("SPREAD");
2202
+ }
2203
+ } else {
2204
+ if (!result.color) {
2205
+ result.color = part;
2206
+ } else {
2207
+ if (!result.unknown)
2208
+ result.unknown = [];
2209
+ result.unknown.push(part);
2210
+ }
2211
+ }
2212
+ }
2213
+ result.valid = result.x !== void 0 && result.y !== void 0;
2214
+ return result;
1933
2215
  });
1934
2216
  }
1935
- function v(a) {
1936
- return a.map((t) => t.valid ? [
1937
- t.keyword,
1938
- t.x,
1939
- t.y,
1940
- t.blur,
1941
- t.spread,
1942
- t.color
1943
- ].filter(Boolean).join(" ") : t.raw).join(", ");
1944
- }
1945
- })(we);
1946
- (function(e) {
1947
- Object.defineProperty(e, "__esModule", {
1948
- value: !0
2217
+ function formatBoxShadowValue(shadows) {
2218
+ return shadows.map((shadow) => {
2219
+ if (!shadow.valid) {
2220
+ return shadow.raw;
2221
+ }
2222
+ return [
2223
+ shadow.keyword,
2224
+ shadow.x,
2225
+ shadow.y,
2226
+ shadow.blur,
2227
+ shadow.spread,
2228
+ shadow.color
2229
+ ].filter(Boolean).join(" ");
2230
+ }).join(", ");
2231
+ }
2232
+ })(parseBoxShadowValue);
2233
+ (function(exports) {
2234
+ Object.defineProperty(exports, "__esModule", {
2235
+ value: true
1949
2236
  });
1950
- function h(i, _) {
1951
- for (var S in _)
1952
- Object.defineProperty(i, S, {
1953
- enumerable: !0,
1954
- get: _[S]
2237
+ function _export(target, all) {
2238
+ for (var name in all)
2239
+ Object.defineProperty(target, name, {
2240
+ enumerable: true,
2241
+ get: all[name]
1955
2242
  });
1956
2243
  }
1957
- h(e, {
2244
+ _export(exports, {
1958
2245
  normalize: function() {
1959
- return a;
2246
+ return normalize;
1960
2247
  },
1961
2248
  url: function() {
1962
- return c;
2249
+ return url;
1963
2250
  },
1964
2251
  number: function() {
1965
- return g;
2252
+ return number;
1966
2253
  },
1967
2254
  percentage: function() {
1968
- return d;
2255
+ return percentage;
1969
2256
  },
1970
2257
  length: function() {
1971
- return k;
2258
+ return length;
1972
2259
  },
1973
2260
  lineWidth: function() {
1974
- return T;
2261
+ return lineWidth;
1975
2262
  },
1976
2263
  shadow: function() {
1977
- return j;
2264
+ return shadow;
1978
2265
  },
1979
2266
  color: function() {
1980
- return P;
2267
+ return color$1;
1981
2268
  },
1982
2269
  image: function() {
1983
- return $;
2270
+ return image;
1984
2271
  },
1985
2272
  gradient: function() {
1986
- return F;
2273
+ return gradient;
1987
2274
  },
1988
2275
  position: function() {
1989
- return U;
2276
+ return position;
1990
2277
  },
1991
2278
  familyName: function() {
1992
- return l;
2279
+ return familyName;
1993
2280
  },
1994
2281
  genericName: function() {
1995
- return w;
2282
+ return genericName;
1996
2283
  },
1997
2284
  absoluteSize: function() {
1998
- return p;
2285
+ return absoluteSize;
1999
2286
  },
2000
2287
  relativeSize: function() {
2001
- return s;
2288
+ return relativeSize;
2002
2289
  }
2003
2290
  });
2004
- const n = ne, y = we, f = H;
2005
- let u = [
2291
+ const _color = color;
2292
+ const _parseBoxShadowValue = parseBoxShadowValue;
2293
+ const _splitAtTopLevelOnly = splitAtTopLevelOnly;
2294
+ let cssFunctions = [
2006
2295
  "min",
2007
2296
  "max",
2008
2297
  "clamp",
2009
2298
  "calc"
2010
2299
  ];
2011
- function r(i) {
2012
- return u.some((_) => new RegExp(`^${_}\\(.*\\)`).test(i));
2300
+ function isCSSFunction(value) {
2301
+ return cssFunctions.some((fn) => new RegExp(`^${fn}\\(.*\\)`).test(value));
2013
2302
  }
2014
- const v = /* @__PURE__ */ new Set([
2303
+ const AUTO_VAR_INJECTION_EXCEPTIONS = /* @__PURE__ */ new Set([
2015
2304
  // Concrete properties
2016
2305
  "scroll-timeline-name",
2017
2306
  "timeline-scope",
@@ -2022,14 +2311,31 @@ var ie = {}, we = {}, H = {};
2022
2311
  "animation-timeline",
2023
2312
  "view-timeline"
2024
2313
  ]);
2025
- function a(i, _ = null, S = !0) {
2026
- let O = _ && v.has(_.property);
2027
- return i.startsWith("--") && !O ? `var(${i})` : i.includes("url(") ? i.split(/(url\(.*?\))/g).filter(Boolean).map((E) => /^url\(.*?\)$/.test(E) ? E : a(E, _, !1)).join("") : (i = i.replace(/([^\\])_+/g, (E, G) => G + " ".repeat(E.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_"), S && (i = i.trim()), i = t(i), i);
2314
+ function normalize(value, context = null, isRoot = true) {
2315
+ let isVarException = context && AUTO_VAR_INJECTION_EXCEPTIONS.has(context.property);
2316
+ if (value.startsWith("--") && !isVarException) {
2317
+ return `var(${value})`;
2318
+ }
2319
+ if (value.includes("url(")) {
2320
+ return value.split(/(url\(.*?\))/g).filter(Boolean).map((part) => {
2321
+ if (/^url\(.*?\)$/.test(part)) {
2322
+ return part;
2323
+ }
2324
+ return normalize(part, context, false);
2325
+ }).join("");
2326
+ }
2327
+ value = value.replace(/([^\\])_+/g, (fullMatch, characterBefore) => characterBefore + " ".repeat(fullMatch.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_");
2328
+ if (isRoot) {
2329
+ value = value.trim();
2330
+ }
2331
+ value = normalizeMathOperatorSpacing(value);
2332
+ return value;
2028
2333
  }
2029
- function t(i) {
2030
- let _ = [
2334
+ function normalizeMathOperatorSpacing(value) {
2335
+ let preventFormattingInFunctions = [
2031
2336
  "theme"
2032
- ], S = [
2337
+ ];
2338
+ let preventFormattingKeywords = [
2033
2339
  "min-content",
2034
2340
  "max-content",
2035
2341
  "fit-content",
@@ -2055,64 +2361,76 @@ var ie = {}, we = {}, H = {};
2055
2361
  "repeating-linear-gradient",
2056
2362
  "repeating-conic-gradient"
2057
2363
  ];
2058
- return i.replace(/(calc|min|max|clamp)\(.+\)/g, (O) => {
2059
- let E = "";
2060
- function G() {
2061
- let M = E.trimEnd();
2062
- return M[M.length - 1];
2364
+ return value.replace(/(calc|min|max|clamp)\(.+\)/g, (match) => {
2365
+ let result = "";
2366
+ function lastChar() {
2367
+ let char = result.trimEnd();
2368
+ return char[char.length - 1];
2063
2369
  }
2064
- for (let M = 0; M < O.length; M++) {
2065
- let V = function(L) {
2066
- return L.split("").every((B, I) => O[M + I] === B);
2067
- }, Y = function(L) {
2068
- let B = 1 / 0;
2069
- for (let ke of L) {
2070
- let X = O.indexOf(ke, M);
2071
- X !== -1 && X < B && (B = X);
2370
+ for (let i = 0; i < match.length; i++) {
2371
+ let peek = function(word) {
2372
+ return word.split("").every((char2, j) => match[i + j] === char2);
2373
+ }, consumeUntil = function(chars) {
2374
+ let minIndex = Infinity;
2375
+ for (let char2 of chars) {
2376
+ let index = match.indexOf(char2, i);
2377
+ if (index !== -1 && index < minIndex) {
2378
+ minIndex = index;
2379
+ }
2072
2380
  }
2073
- let I = O.slice(M, B);
2074
- return M += I.length - 1, I;
2075
- }, K = O[M];
2076
- if (V("var"))
2077
- E += Y([
2381
+ let result2 = match.slice(i, minIndex);
2382
+ i += result2.length - 1;
2383
+ return result2;
2384
+ };
2385
+ let char = match[i];
2386
+ if (peek("var")) {
2387
+ result += consumeUntil([
2078
2388
  ")",
2079
2389
  ","
2080
2390
  ]);
2081
- else if (S.some((L) => V(L))) {
2082
- let L = S.find((B) => V(B));
2083
- E += L, M += L.length - 1;
2084
- } else
2085
- _.some((L) => V(L)) ? E += Y([
2391
+ } else if (preventFormattingKeywords.some((keyword) => peek(keyword))) {
2392
+ let keyword = preventFormattingKeywords.find((keyword2) => peek(keyword2));
2393
+ result += keyword;
2394
+ i += keyword.length - 1;
2395
+ } else if (preventFormattingInFunctions.some((fn) => peek(fn))) {
2396
+ result += consumeUntil([
2086
2397
  ")"
2087
- ]) : V("[") ? E += Y([
2398
+ ]);
2399
+ } else if (peek("[")) {
2400
+ result += consumeUntil([
2088
2401
  "]"
2089
- ]) : [
2090
- "+",
2091
- "-",
2092
- "*",
2093
- "/"
2094
- ].includes(K) && ![
2095
- "(",
2096
- "+",
2097
- "-",
2098
- "*",
2099
- "/",
2100
- ","
2101
- ].includes(G()) ? E += ` ${K} ` : E += K;
2402
+ ]);
2403
+ } else if ([
2404
+ "+",
2405
+ "-",
2406
+ "*",
2407
+ "/"
2408
+ ].includes(char) && ![
2409
+ "(",
2410
+ "+",
2411
+ "-",
2412
+ "*",
2413
+ "/",
2414
+ ","
2415
+ ].includes(lastChar())) {
2416
+ result += ` ${char} `;
2417
+ } else {
2418
+ result += char;
2419
+ }
2102
2420
  }
2103
- return E.replace(/\s+/g, " ");
2421
+ return result.replace(/\s+/g, " ");
2104
2422
  });
2105
2423
  }
2106
- function c(i) {
2107
- return i.startsWith("url(");
2424
+ function url(value) {
2425
+ return value.startsWith("url(");
2108
2426
  }
2109
- function g(i) {
2110
- return !isNaN(Number(i)) || r(i);
2427
+ function number(value) {
2428
+ return !isNaN(Number(value)) || isCSSFunction(value);
2111
2429
  }
2112
- function d(i) {
2113
- return i.endsWith("%") && g(i.slice(0, -1)) || r(i);
2430
+ function percentage(value) {
2431
+ return value.endsWith("%") && number(value.slice(0, -1)) || isCSSFunction(value);
2114
2432
  }
2115
- let m = `(?:${[
2433
+ let lengthUnits = [
2116
2434
  "cm",
2117
2435
  "mm",
2118
2436
  "Q",
@@ -2144,41 +2462,66 @@ var ie = {}, we = {}, H = {};
2144
2462
  "cqb",
2145
2463
  "cqmin",
2146
2464
  "cqmax"
2147
- ].join("|")})`;
2148
- function k(i) {
2149
- return i === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${m}$`).test(i) || r(i);
2465
+ ];
2466
+ let lengthUnitsPattern = `(?:${lengthUnits.join("|")})`;
2467
+ function length(value) {
2468
+ return value === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${lengthUnitsPattern}$`).test(value) || isCSSFunction(value);
2150
2469
  }
2151
- let C = /* @__PURE__ */ new Set([
2470
+ let lineWidths = /* @__PURE__ */ new Set([
2152
2471
  "thin",
2153
2472
  "medium",
2154
2473
  "thick"
2155
2474
  ]);
2156
- function T(i) {
2157
- return C.has(i);
2158
- }
2159
- function j(i) {
2160
- let _ = (0, y.parseBoxShadowValue)(a(i));
2161
- for (let S of _)
2162
- if (!S.valid)
2163
- return !1;
2164
- return !0;
2165
- }
2166
- function P(i) {
2167
- let _ = 0;
2168
- return (0, f.splitAtTopLevelOnly)(i, "_").every((O) => (O = a(O), O.startsWith("var(") ? !0 : (0, n.parseColor)(O, {
2169
- loose: !0
2170
- }) !== null ? (_++, !0) : !1)) ? _ > 0 : !1;
2171
- }
2172
- function $(i) {
2173
- let _ = 0;
2174
- return (0, f.splitAtTopLevelOnly)(i, ",").every((O) => (O = a(O), O.startsWith("var(") ? !0 : c(O) || F(O) || [
2175
- "element(",
2176
- "image(",
2177
- "cross-fade(",
2178
- "image-set("
2179
- ].some((E) => O.startsWith(E)) ? (_++, !0) : !1)) ? _ > 0 : !1;
2180
- }
2181
- let D = /* @__PURE__ */ new Set([
2475
+ function lineWidth(value) {
2476
+ return lineWidths.has(value);
2477
+ }
2478
+ function shadow(value) {
2479
+ let parsedShadows = (0, _parseBoxShadowValue.parseBoxShadowValue)(normalize(value));
2480
+ for (let parsedShadow of parsedShadows) {
2481
+ if (!parsedShadow.valid) {
2482
+ return false;
2483
+ }
2484
+ }
2485
+ return true;
2486
+ }
2487
+ function color$1(value) {
2488
+ let colors2 = 0;
2489
+ let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, "_").every((part) => {
2490
+ part = normalize(part);
2491
+ if (part.startsWith("var("))
2492
+ return true;
2493
+ if ((0, _color.parseColor)(part, {
2494
+ loose: true
2495
+ }) !== null)
2496
+ return colors2++, true;
2497
+ return false;
2498
+ });
2499
+ if (!result)
2500
+ return false;
2501
+ return colors2 > 0;
2502
+ }
2503
+ function image(value) {
2504
+ let images = 0;
2505
+ let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
2506
+ part = normalize(part);
2507
+ if (part.startsWith("var("))
2508
+ return true;
2509
+ if (url(part) || gradient(part) || [
2510
+ "element(",
2511
+ "image(",
2512
+ "cross-fade(",
2513
+ "image-set("
2514
+ ].some((fn) => part.startsWith(fn))) {
2515
+ images++;
2516
+ return true;
2517
+ }
2518
+ return false;
2519
+ });
2520
+ if (!result)
2521
+ return false;
2522
+ return images > 0;
2523
+ }
2524
+ let gradientTypes = /* @__PURE__ */ new Set([
2182
2525
  "conic-gradient",
2183
2526
  "linear-gradient",
2184
2527
  "radial-gradient",
@@ -2186,29 +2529,60 @@ var ie = {}, we = {}, H = {};
2186
2529
  "repeating-linear-gradient",
2187
2530
  "repeating-radial-gradient"
2188
2531
  ]);
2189
- function F(i) {
2190
- i = a(i);
2191
- for (let _ of D)
2192
- if (i.startsWith(`${_}(`))
2193
- return !0;
2194
- return !1;
2195
- }
2196
- let R = /* @__PURE__ */ new Set([
2532
+ function gradient(value) {
2533
+ value = normalize(value);
2534
+ for (let type of gradientTypes) {
2535
+ if (value.startsWith(`${type}(`)) {
2536
+ return true;
2537
+ }
2538
+ }
2539
+ return false;
2540
+ }
2541
+ let validPositions = /* @__PURE__ */ new Set([
2197
2542
  "center",
2198
2543
  "top",
2199
2544
  "right",
2200
2545
  "bottom",
2201
2546
  "left"
2202
2547
  ]);
2203
- function U(i) {
2204
- let _ = 0;
2205
- return (0, f.splitAtTopLevelOnly)(i, "_").every((O) => (O = a(O), O.startsWith("var(") ? !0 : R.has(O) || k(O) || d(O) ? (_++, !0) : !1)) ? _ > 0 : !1;
2548
+ function position(value) {
2549
+ let positions = 0;
2550
+ let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, "_").every((part) => {
2551
+ part = normalize(part);
2552
+ if (part.startsWith("var("))
2553
+ return true;
2554
+ if (validPositions.has(part) || length(part) || percentage(part)) {
2555
+ positions++;
2556
+ return true;
2557
+ }
2558
+ return false;
2559
+ });
2560
+ if (!result)
2561
+ return false;
2562
+ return positions > 0;
2206
2563
  }
2207
- function l(i) {
2208
- let _ = 0;
2209
- return (0, f.splitAtTopLevelOnly)(i, ",").every((O) => (O = a(O), O.startsWith("var(") ? !0 : O.includes(" ") && !/(['"])([^"']+)\1/g.test(O) || /^\d/g.test(O) ? !1 : (_++, !0))) ? _ > 0 : !1;
2564
+ function familyName(value) {
2565
+ let fonts = 0;
2566
+ let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
2567
+ part = normalize(part);
2568
+ if (part.startsWith("var("))
2569
+ return true;
2570
+ if (part.includes(" ")) {
2571
+ if (!/(['"])([^"']+)\1/g.test(part)) {
2572
+ return false;
2573
+ }
2574
+ }
2575
+ if (/^\d/g.test(part)) {
2576
+ return false;
2577
+ }
2578
+ fonts++;
2579
+ return true;
2580
+ });
2581
+ if (!result)
2582
+ return false;
2583
+ return fonts > 0;
2210
2584
  }
2211
- let x = /* @__PURE__ */ new Set([
2585
+ let genericNames = /* @__PURE__ */ new Set([
2212
2586
  "serif",
2213
2587
  "sans-serif",
2214
2588
  "monospace",
@@ -2223,10 +2597,10 @@ var ie = {}, we = {}, H = {};
2223
2597
  "emoji",
2224
2598
  "fangsong"
2225
2599
  ]);
2226
- function w(i) {
2227
- return x.has(i);
2600
+ function genericName(value) {
2601
+ return genericNames.has(value);
2228
2602
  }
2229
- let o = /* @__PURE__ */ new Set([
2603
+ let absoluteSizes = /* @__PURE__ */ new Set([
2230
2604
  "xx-small",
2231
2605
  "x-small",
2232
2606
  "small",
@@ -2236,424 +2610,593 @@ var ie = {}, we = {}, H = {};
2236
2610
  "xx-large",
2237
2611
  "xxx-large"
2238
2612
  ]);
2239
- function p(i) {
2240
- return o.has(i);
2613
+ function absoluteSize(value) {
2614
+ return absoluteSizes.has(value);
2241
2615
  }
2242
- let b = /* @__PURE__ */ new Set([
2616
+ let relativeSizes = /* @__PURE__ */ new Set([
2243
2617
  "larger",
2244
2618
  "smaller"
2245
2619
  ]);
2246
- function s(i) {
2247
- return b.has(i);
2248
- }
2249
- })(ie);
2250
- var _e = {};
2251
- (function(e) {
2252
- Object.defineProperty(e, "__esModule", {
2253
- value: !0
2254
- }), Object.defineProperty(e, "backgroundSize", {
2255
- enumerable: !0,
2620
+ function relativeSize(value) {
2621
+ return relativeSizes.has(value);
2622
+ }
2623
+ })(dataTypes);
2624
+ var validateFormalSyntax = {};
2625
+ (function(exports) {
2626
+ Object.defineProperty(exports, "__esModule", {
2627
+ value: true
2628
+ });
2629
+ Object.defineProperty(exports, "backgroundSize", {
2630
+ enumerable: true,
2256
2631
  get: function() {
2257
- return y;
2632
+ return backgroundSize;
2258
2633
  }
2259
2634
  });
2260
- const h = ie, n = H;
2261
- function y(f) {
2262
- let u = [
2635
+ const _dataTypes = dataTypes;
2636
+ const _splitAtTopLevelOnly = splitAtTopLevelOnly;
2637
+ function backgroundSize(value) {
2638
+ let keywordValues = [
2263
2639
  "cover",
2264
2640
  "contain"
2265
2641
  ];
2266
- return (0, n.splitAtTopLevelOnly)(f, ",").every((r) => {
2267
- let v = (0, n.splitAtTopLevelOnly)(r, "_").filter(Boolean);
2268
- return v.length === 1 && u.includes(v[0]) ? !0 : v.length !== 1 && v.length !== 2 ? !1 : v.every((a) => (0, h.length)(a) || (0, h.percentage)(a) || a === "auto");
2642
+ return (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
2643
+ let sizes = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(part, "_").filter(Boolean);
2644
+ if (sizes.length === 1 && keywordValues.includes(sizes[0]))
2645
+ return true;
2646
+ if (sizes.length !== 1 && sizes.length !== 2)
2647
+ return false;
2648
+ return sizes.every((size) => (0, _dataTypes.length)(size) || (0, _dataTypes.percentage)(size) || size === "auto");
2269
2649
  });
2270
2650
  }
2271
- })(_e);
2272
- (function(e) {
2273
- Object.defineProperty(e, "__esModule", {
2274
- value: !0
2651
+ })(validateFormalSyntax);
2652
+ (function(exports) {
2653
+ Object.defineProperty(exports, "__esModule", {
2654
+ value: true
2275
2655
  });
2276
- function h(l, x) {
2277
- for (var w in x)
2278
- Object.defineProperty(l, w, {
2279
- enumerable: !0,
2280
- get: x[w]
2656
+ function _export(target, all) {
2657
+ for (var name in all)
2658
+ Object.defineProperty(target, name, {
2659
+ enumerable: true,
2660
+ get: all[name]
2281
2661
  });
2282
2662
  }
2283
- h(e, {
2663
+ _export(exports, {
2284
2664
  updateAllClasses: function() {
2285
- return t;
2665
+ return updateAllClasses;
2286
2666
  },
2287
2667
  asValue: function() {
2288
- return d;
2668
+ return asValue;
2289
2669
  },
2290
2670
  parseColorFormat: function() {
2291
- return k;
2671
+ return parseColorFormat;
2292
2672
  },
2293
2673
  asColor: function() {
2294
- return T;
2674
+ return asColor;
2295
2675
  },
2296
2676
  asLookupValue: function() {
2297
- return j;
2677
+ return asLookupValue;
2298
2678
  },
2299
2679
  typeMap: function() {
2300
- return $;
2680
+ return typeMap;
2301
2681
  },
2302
2682
  coerceValue: function() {
2303
- return R;
2683
+ return coerceValue;
2304
2684
  },
2305
2685
  getMatchingTypes: function() {
2306
- return U;
2686
+ return getMatchingTypes;
2307
2687
  }
2308
2688
  });
2309
- const n = /* @__PURE__ */ a(ye), y = re, f = ie, u = /* @__PURE__ */ a(ee), r = _e, v = q;
2310
- function a(l) {
2311
- return l && l.__esModule ? l : {
2312
- default: l
2689
+ const _escapeCommas = /* @__PURE__ */ _interop_require_default(escapeCommas);
2690
+ const _withAlphaVariable = withAlphaVariable;
2691
+ const _dataTypes = dataTypes;
2692
+ const _negateValue = /* @__PURE__ */ _interop_require_default(negateValue);
2693
+ const _validateFormalSyntax = validateFormalSyntax;
2694
+ const _featureFlags = featureFlags;
2695
+ function _interop_require_default(obj) {
2696
+ return obj && obj.__esModule ? obj : {
2697
+ default: obj
2313
2698
  };
2314
2699
  }
2315
- function t(l, x) {
2316
- l.walkClasses((w) => {
2317
- w.value = x(w.value), w.raws && w.raws.value && (w.raws.value = (0, n.default)(w.raws.value));
2700
+ function updateAllClasses(selectors, updateClass) {
2701
+ selectors.walkClasses((sel) => {
2702
+ sel.value = updateClass(sel.value);
2703
+ if (sel.raws && sel.raws.value) {
2704
+ sel.raws.value = (0, _escapeCommas.default)(sel.raws.value);
2705
+ }
2318
2706
  });
2319
2707
  }
2320
- function c(l, x) {
2321
- if (!A(l))
2322
- return;
2323
- let w = l.slice(1, -1);
2324
- if (x(w))
2325
- return (0, f.normalize)(w);
2326
- }
2327
- function g(l, x = {}, w) {
2328
- let o = x[l];
2329
- if (o !== void 0)
2330
- return (0, u.default)(o);
2331
- if (A(l)) {
2332
- let p = c(l, w);
2333
- return p === void 0 ? void 0 : (0, u.default)(p);
2334
- }
2335
- }
2336
- function d(l, x = {}, { validate: w = () => !0 } = {}) {
2337
- var o;
2338
- let p = (o = x.values) === null || o === void 0 ? void 0 : o[l];
2339
- return p !== void 0 ? p : x.supportsNegativeValues && l.startsWith("-") ? g(l.slice(1), x.values, w) : c(l, w);
2340
- }
2341
- function A(l) {
2342
- return l.startsWith("[") && l.endsWith("]");
2343
- }
2344
- function m(l) {
2345
- let x = l.lastIndexOf("/"), w = l.lastIndexOf("[", x), o = l.indexOf("]", x);
2346
- return l[x - 1] === "]" || l[x + 1] === "[" || w !== -1 && o !== -1 && w < x && x < o && (x = l.lastIndexOf("/", w)), x === -1 || x === l.length - 1 ? [
2347
- l,
2348
- void 0
2349
- ] : A(l) && !l.includes("]/[") ? [
2350
- l,
2351
- void 0
2352
- ] : [
2353
- l.slice(0, x),
2354
- l.slice(x + 1)
2708
+ function resolveArbitraryValue(modifier, validate) {
2709
+ if (!isArbitraryValue(modifier)) {
2710
+ return void 0;
2711
+ }
2712
+ let value = modifier.slice(1, -1);
2713
+ if (!validate(value)) {
2714
+ return void 0;
2715
+ }
2716
+ return (0, _dataTypes.normalize)(value);
2717
+ }
2718
+ function asNegativeValue(modifier, lookup = {}, validate) {
2719
+ let positiveValue = lookup[modifier];
2720
+ if (positiveValue !== void 0) {
2721
+ return (0, _negateValue.default)(positiveValue);
2722
+ }
2723
+ if (isArbitraryValue(modifier)) {
2724
+ let resolved = resolveArbitraryValue(modifier, validate);
2725
+ if (resolved === void 0) {
2726
+ return void 0;
2727
+ }
2728
+ return (0, _negateValue.default)(resolved);
2729
+ }
2730
+ }
2731
+ function asValue(modifier, options = {}, { validate = () => true } = {}) {
2732
+ var _options_values;
2733
+ let value = (_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier];
2734
+ if (value !== void 0) {
2735
+ return value;
2736
+ }
2737
+ if (options.supportsNegativeValues && modifier.startsWith("-")) {
2738
+ return asNegativeValue(modifier.slice(1), options.values, validate);
2739
+ }
2740
+ return resolveArbitraryValue(modifier, validate);
2741
+ }
2742
+ function isArbitraryValue(input) {
2743
+ return input.startsWith("[") && input.endsWith("]");
2744
+ }
2745
+ function splitUtilityModifier(modifier) {
2746
+ let slashIdx = modifier.lastIndexOf("/");
2747
+ let arbitraryStartIdx = modifier.lastIndexOf("[", slashIdx);
2748
+ let arbitraryEndIdx = modifier.indexOf("]", slashIdx);
2749
+ let isNextToArbitrary = modifier[slashIdx - 1] === "]" || modifier[slashIdx + 1] === "[";
2750
+ if (!isNextToArbitrary) {
2751
+ if (arbitraryStartIdx !== -1 && arbitraryEndIdx !== -1) {
2752
+ if (arbitraryStartIdx < slashIdx && slashIdx < arbitraryEndIdx) {
2753
+ slashIdx = modifier.lastIndexOf("/", arbitraryStartIdx);
2754
+ }
2755
+ }
2756
+ }
2757
+ if (slashIdx === -1 || slashIdx === modifier.length - 1) {
2758
+ return [
2759
+ modifier,
2760
+ void 0
2761
+ ];
2762
+ }
2763
+ let arbitrary = isArbitraryValue(modifier);
2764
+ if (arbitrary && !modifier.includes("]/[")) {
2765
+ return [
2766
+ modifier,
2767
+ void 0
2768
+ ];
2769
+ }
2770
+ return [
2771
+ modifier.slice(0, slashIdx),
2772
+ modifier.slice(slashIdx + 1)
2355
2773
  ];
2356
2774
  }
2357
- function k(l) {
2358
- if (typeof l == "string" && l.includes("<alpha-value>")) {
2359
- let x = l;
2360
- return ({ opacityValue: w = 1 }) => x.replace("<alpha-value>", w);
2775
+ function parseColorFormat(value) {
2776
+ if (typeof value === "string" && value.includes("<alpha-value>")) {
2777
+ let oldValue = value;
2778
+ return ({ opacityValue = 1 }) => oldValue.replace("<alpha-value>", opacityValue);
2361
2779
  }
2362
- return l;
2780
+ return value;
2363
2781
  }
2364
- function C(l) {
2365
- return (0, f.normalize)(l.slice(1, -1));
2782
+ function unwrapArbitraryModifier(modifier) {
2783
+ return (0, _dataTypes.normalize)(modifier.slice(1, -1));
2366
2784
  }
2367
- function T(l, x = {}, { tailwindConfig: w = {} } = {}) {
2368
- var o;
2369
- if (((o = x.values) === null || o === void 0 ? void 0 : o[l]) !== void 0) {
2370
- var p;
2371
- return k((p = x.values) === null || p === void 0 ? void 0 : p[l]);
2785
+ function asColor(modifier, options = {}, { tailwindConfig = {} } = {}) {
2786
+ var _options_values;
2787
+ if (((_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier]) !== void 0) {
2788
+ var _options_values1;
2789
+ return parseColorFormat((_options_values1 = options.values) === null || _options_values1 === void 0 ? void 0 : _options_values1[modifier]);
2372
2790
  }
2373
- let [b, s] = m(l);
2374
- if (s !== void 0) {
2375
- var i, _, S, O;
2376
- let E = (O = (i = x.values) === null || i === void 0 ? void 0 : i[b]) !== null && O !== void 0 ? O : A(b) ? b.slice(1, -1) : void 0;
2377
- return E === void 0 ? void 0 : (E = k(E), A(s) ? (0, y.withAlphaValue)(E, C(s)) : ((_ = w.theme) === null || _ === void 0 || (S = _.opacity) === null || S === void 0 ? void 0 : S[s]) === void 0 ? void 0 : (0, y.withAlphaValue)(E, w.theme.opacity[s]));
2791
+ let [color2, alpha] = splitUtilityModifier(modifier);
2792
+ if (alpha !== void 0) {
2793
+ var _options_values2, _tailwindConfig_theme, _tailwindConfig_theme_opacity;
2794
+ var _options_values_color;
2795
+ let normalizedColor = (_options_values_color = (_options_values2 = options.values) === null || _options_values2 === void 0 ? void 0 : _options_values2[color2]) !== null && _options_values_color !== void 0 ? _options_values_color : isArbitraryValue(color2) ? color2.slice(1, -1) : void 0;
2796
+ if (normalizedColor === void 0) {
2797
+ return void 0;
2798
+ }
2799
+ normalizedColor = parseColorFormat(normalizedColor);
2800
+ if (isArbitraryValue(alpha)) {
2801
+ return (0, _withAlphaVariable.withAlphaValue)(normalizedColor, unwrapArbitraryModifier(alpha));
2802
+ }
2803
+ if (((_tailwindConfig_theme = tailwindConfig.theme) === null || _tailwindConfig_theme === void 0 ? void 0 : (_tailwindConfig_theme_opacity = _tailwindConfig_theme.opacity) === null || _tailwindConfig_theme_opacity === void 0 ? void 0 : _tailwindConfig_theme_opacity[alpha]) === void 0) {
2804
+ return void 0;
2805
+ }
2806
+ return (0, _withAlphaVariable.withAlphaValue)(normalizedColor, tailwindConfig.theme.opacity[alpha]);
2378
2807
  }
2379
- return d(l, x, {
2380
- validate: f.color
2808
+ return asValue(modifier, options, {
2809
+ validate: _dataTypes.color
2381
2810
  });
2382
2811
  }
2383
- function j(l, x = {}) {
2384
- var w;
2385
- return (w = x.values) === null || w === void 0 ? void 0 : w[l];
2812
+ function asLookupValue(modifier, options = {}) {
2813
+ var _options_values;
2814
+ return (_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier];
2386
2815
  }
2387
- function P(l) {
2388
- return (x, w) => d(x, w, {
2389
- validate: l
2390
- });
2816
+ function guess(validate) {
2817
+ return (modifier, options) => {
2818
+ return asValue(modifier, options, {
2819
+ validate
2820
+ });
2821
+ };
2391
2822
  }
2392
- let $ = {
2393
- any: d,
2394
- color: T,
2395
- url: P(f.url),
2396
- image: P(f.image),
2397
- length: P(f.length),
2398
- percentage: P(f.percentage),
2399
- position: P(f.position),
2400
- lookup: j,
2401
- "generic-name": P(f.genericName),
2402
- "family-name": P(f.familyName),
2403
- number: P(f.number),
2404
- "line-width": P(f.lineWidth),
2405
- "absolute-size": P(f.absoluteSize),
2406
- "relative-size": P(f.relativeSize),
2407
- shadow: P(f.shadow),
2408
- size: P(r.backgroundSize)
2409
- }, D = Object.keys($);
2410
- function F(l, x) {
2411
- let w = l.indexOf(x);
2412
- return w === -1 ? [
2413
- void 0,
2414
- l
2415
- ] : [
2416
- l.slice(0, w),
2417
- l.slice(w + 1)
2823
+ let typeMap = {
2824
+ any: asValue,
2825
+ color: asColor,
2826
+ url: guess(_dataTypes.url),
2827
+ image: guess(_dataTypes.image),
2828
+ length: guess(_dataTypes.length),
2829
+ percentage: guess(_dataTypes.percentage),
2830
+ position: guess(_dataTypes.position),
2831
+ lookup: asLookupValue,
2832
+ "generic-name": guess(_dataTypes.genericName),
2833
+ "family-name": guess(_dataTypes.familyName),
2834
+ number: guess(_dataTypes.number),
2835
+ "line-width": guess(_dataTypes.lineWidth),
2836
+ "absolute-size": guess(_dataTypes.absoluteSize),
2837
+ "relative-size": guess(_dataTypes.relativeSize),
2838
+ shadow: guess(_dataTypes.shadow),
2839
+ size: guess(_validateFormalSyntax.backgroundSize)
2840
+ };
2841
+ let supportedTypes = Object.keys(typeMap);
2842
+ function splitAtFirst(input, delim) {
2843
+ let idx = input.indexOf(delim);
2844
+ if (idx === -1)
2845
+ return [
2846
+ void 0,
2847
+ input
2848
+ ];
2849
+ return [
2850
+ input.slice(0, idx),
2851
+ input.slice(idx + 1)
2418
2852
  ];
2419
2853
  }
2420
- function R(l, x, w, o) {
2421
- if (w.values && x in w.values)
2422
- for (let { type: b } of l ?? []) {
2423
- let s = $[b](x, w, {
2424
- tailwindConfig: o
2854
+ function coerceValue(types, modifier, options, tailwindConfig) {
2855
+ if (options.values && modifier in options.values) {
2856
+ for (let { type } of types !== null && types !== void 0 ? types : []) {
2857
+ let result = typeMap[type](modifier, options, {
2858
+ tailwindConfig
2425
2859
  });
2426
- if (s !== void 0)
2427
- return [
2428
- s,
2429
- b,
2430
- null
2431
- ];
2860
+ if (result === void 0) {
2861
+ continue;
2862
+ }
2863
+ return [
2864
+ result,
2865
+ type,
2866
+ null
2867
+ ];
2432
2868
  }
2433
- if (A(x)) {
2434
- let b = x.slice(1, -1), [s, i] = F(b, ":");
2435
- if (!/^[\w-_]+$/g.test(s))
2436
- i = b;
2437
- else if (s !== void 0 && !D.includes(s))
2869
+ }
2870
+ if (isArbitraryValue(modifier)) {
2871
+ let arbitraryValue = modifier.slice(1, -1);
2872
+ let [explicitType, value] = splitAtFirst(arbitraryValue, ":");
2873
+ if (!/^[\w-_]+$/g.test(explicitType)) {
2874
+ value = arbitraryValue;
2875
+ } else if (explicitType !== void 0 && !supportedTypes.includes(explicitType)) {
2438
2876
  return [];
2439
- if (i.length > 0 && D.includes(s))
2877
+ }
2878
+ if (value.length > 0 && supportedTypes.includes(explicitType)) {
2440
2879
  return [
2441
- d(`[${i}]`, w),
2442
- s,
2880
+ asValue(`[${value}]`, options),
2881
+ explicitType,
2443
2882
  null
2444
2883
  ];
2884
+ }
2885
+ }
2886
+ let matches = getMatchingTypes(types, modifier, options, tailwindConfig);
2887
+ for (let match of matches) {
2888
+ return match;
2445
2889
  }
2446
- let p = U(l, x, w, o);
2447
- for (let b of p)
2448
- return b;
2449
2890
  return [];
2450
2891
  }
2451
- function* U(l, x, w, o) {
2452
- let p = (0, v.flagEnabled)(o, "generalizedModifiers"), [b, s] = m(x);
2453
- if (p && w.modifiers != null && (w.modifiers === "any" || typeof w.modifiers == "object" && (s && A(s) || s in w.modifiers)) || (b = x, s = void 0), s !== void 0 && b === "" && (b = "DEFAULT"), s !== void 0 && typeof w.modifiers == "object") {
2454
- var _, S;
2455
- let O = (S = (_ = w.modifiers) === null || _ === void 0 ? void 0 : _[s]) !== null && S !== void 0 ? S : null;
2456
- O !== null ? s = O : A(s) && (s = C(s));
2892
+ function* getMatchingTypes(types, rawModifier, options, tailwindConfig) {
2893
+ let modifiersEnabled = (0, _featureFlags.flagEnabled)(tailwindConfig, "generalizedModifiers");
2894
+ let [modifier, utilityModifier] = splitUtilityModifier(rawModifier);
2895
+ let canUseUtilityModifier = modifiersEnabled && options.modifiers != null && (options.modifiers === "any" || typeof options.modifiers === "object" && (utilityModifier && isArbitraryValue(utilityModifier) || utilityModifier in options.modifiers));
2896
+ if (!canUseUtilityModifier) {
2897
+ modifier = rawModifier;
2898
+ utilityModifier = void 0;
2899
+ }
2900
+ if (utilityModifier !== void 0 && modifier === "") {
2901
+ modifier = "DEFAULT";
2902
+ }
2903
+ if (utilityModifier !== void 0) {
2904
+ if (typeof options.modifiers === "object") {
2905
+ var _options_modifiers;
2906
+ var _options_modifiers_utilityModifier;
2907
+ let configValue = (_options_modifiers_utilityModifier = (_options_modifiers = options.modifiers) === null || _options_modifiers === void 0 ? void 0 : _options_modifiers[utilityModifier]) !== null && _options_modifiers_utilityModifier !== void 0 ? _options_modifiers_utilityModifier : null;
2908
+ if (configValue !== null) {
2909
+ utilityModifier = configValue;
2910
+ } else if (isArbitraryValue(utilityModifier)) {
2911
+ utilityModifier = unwrapArbitraryModifier(utilityModifier);
2912
+ }
2913
+ }
2457
2914
  }
2458
- for (let { type: O } of l ?? []) {
2459
- let E = $[O](b, w, {
2460
- tailwindConfig: o
2915
+ for (let { type } of types !== null && types !== void 0 ? types : []) {
2916
+ let result = typeMap[type](modifier, options, {
2917
+ tailwindConfig
2461
2918
  });
2462
- E !== void 0 && (yield [
2463
- E,
2464
- O,
2465
- s ?? null
2466
- ]);
2919
+ if (result === void 0) {
2920
+ continue;
2921
+ }
2922
+ yield [
2923
+ result,
2924
+ type,
2925
+ utilityModifier !== null && utilityModifier !== void 0 ? utilityModifier : null
2926
+ ];
2467
2927
  }
2468
2928
  }
2469
- })(he);
2470
- var Oe = {};
2471
- (function(e) {
2472
- Object.defineProperty(e, "__esModule", {
2473
- value: !0
2474
- }), Object.defineProperty(e, "default", {
2475
- enumerable: !0,
2929
+ })(pluginUtils);
2930
+ var toColorValue = {};
2931
+ (function(exports) {
2932
+ Object.defineProperty(exports, "__esModule", {
2933
+ value: true
2934
+ });
2935
+ Object.defineProperty(exports, "default", {
2936
+ enumerable: true,
2476
2937
  get: function() {
2477
- return h;
2938
+ return toColorValue2;
2478
2939
  }
2479
2940
  });
2480
- function h(n) {
2481
- return typeof n == "function" ? n({}) : n;
2482
- }
2483
- })(Oe);
2484
- (function(e) {
2485
- Object.defineProperty(e, "__esModule", {
2486
- value: !0
2487
- }), Object.defineProperty(e, "default", {
2488
- enumerable: !0,
2941
+ function toColorValue2(maybeFunction) {
2942
+ return typeof maybeFunction === "function" ? maybeFunction({}) : maybeFunction;
2943
+ }
2944
+ })(toColorValue);
2945
+ (function(exports) {
2946
+ Object.defineProperty(exports, "__esModule", {
2947
+ value: true
2948
+ });
2949
+ Object.defineProperty(exports, "default", {
2950
+ enumerable: true,
2489
2951
  get: function() {
2490
- return w;
2952
+ return resolveConfig2;
2491
2953
  }
2492
2954
  });
2493
- const h = /* @__PURE__ */ A(ee), n = /* @__PURE__ */ A(ue), y = /* @__PURE__ */ A(se), f = /* @__PURE__ */ A(fe), u = pe, r = me, v = ge, a = /* @__PURE__ */ A(be), t = ve, c = he, g = re, d = /* @__PURE__ */ A(Oe);
2494
- function A(o) {
2495
- return o && o.__esModule ? o : {
2496
- default: o
2955
+ const _negateValue = /* @__PURE__ */ _interop_require_default(negateValue);
2956
+ const _corePluginList = /* @__PURE__ */ _interop_require_default(corePluginList);
2957
+ const _configurePlugins = /* @__PURE__ */ _interop_require_default(configurePlugins);
2958
+ const _colors = /* @__PURE__ */ _interop_require_default(colors$1);
2959
+ const _defaults = defaults;
2960
+ const _toPath = toPath;
2961
+ const _normalizeConfig = normalizeConfig;
2962
+ const _isPlainObject = /* @__PURE__ */ _interop_require_default(isPlainObject);
2963
+ const _cloneDeep = cloneDeep;
2964
+ const _pluginUtils = pluginUtils;
2965
+ const _withAlphaVariable = withAlphaVariable;
2966
+ const _toColorValue = /* @__PURE__ */ _interop_require_default(toColorValue);
2967
+ function _interop_require_default(obj) {
2968
+ return obj && obj.__esModule ? obj : {
2969
+ default: obj
2497
2970
  };
2498
2971
  }
2499
- function m(o) {
2500
- return typeof o == "function";
2972
+ function isFunction(input) {
2973
+ return typeof input === "function";
2501
2974
  }
2502
- function k(o, ...p) {
2503
- let b = p.pop();
2504
- for (let s of p)
2505
- for (let i in s) {
2506
- let _ = b(o[i], s[i]);
2507
- _ === void 0 ? (0, a.default)(o[i]) && (0, a.default)(s[i]) ? o[i] = k({}, o[i], s[i], b) : o[i] = s[i] : o[i] = _;
2975
+ function mergeWith(target, ...sources) {
2976
+ let customizer = sources.pop();
2977
+ for (let source of sources) {
2978
+ for (let k in source) {
2979
+ let merged = customizer(target[k], source[k]);
2980
+ if (merged === void 0) {
2981
+ if ((0, _isPlainObject.default)(target[k]) && (0, _isPlainObject.default)(source[k])) {
2982
+ target[k] = mergeWith({}, target[k], source[k], customizer);
2983
+ } else {
2984
+ target[k] = source[k];
2985
+ }
2986
+ } else {
2987
+ target[k] = merged;
2988
+ }
2508
2989
  }
2509
- return o;
2510
- }
2511
- const C = {
2512
- colors: f.default,
2513
- negative(o) {
2514
- return Object.keys(o).filter((p) => o[p] !== "0").reduce((p, b) => {
2515
- let s = (0, h.default)(o[b]);
2516
- return s !== void 0 && (p[`-${b}`] = s), p;
2990
+ }
2991
+ return target;
2992
+ }
2993
+ const configUtils = {
2994
+ colors: _colors.default,
2995
+ negative(scale) {
2996
+ return Object.keys(scale).filter((key) => scale[key] !== "0").reduce((negativeScale, key) => {
2997
+ let negativeValue = (0, _negateValue.default)(scale[key]);
2998
+ if (negativeValue !== void 0) {
2999
+ negativeScale[`-${key}`] = negativeValue;
3000
+ }
3001
+ return negativeScale;
2517
3002
  }, {});
2518
3003
  },
2519
- breakpoints(o) {
2520
- return Object.keys(o).filter((p) => typeof o[p] == "string").reduce((p, b) => ({
2521
- ...p,
2522
- [`screen-${b}`]: o[b]
3004
+ breakpoints(screens2) {
3005
+ return Object.keys(screens2).filter((key) => typeof screens2[key] === "string").reduce((breakpoints, key) => ({
3006
+ ...breakpoints,
3007
+ [`screen-${key}`]: screens2[key]
2523
3008
  }), {});
2524
3009
  }
2525
3010
  };
2526
- function T(o, ...p) {
2527
- return m(o) ? o(...p) : o;
2528
- }
2529
- function j(o) {
2530
- return o.reduce((p, { extend: b }) => k(p, b, (s, i) => s === void 0 ? [
2531
- i
2532
- ] : Array.isArray(s) ? [
2533
- i,
2534
- ...s
2535
- ] : [
2536
- i,
2537
- s
2538
- ]), {});
2539
- }
2540
- function P(o) {
3011
+ function value(valueToResolve, ...args) {
3012
+ return isFunction(valueToResolve) ? valueToResolve(...args) : valueToResolve;
3013
+ }
3014
+ function collectExtends(items) {
3015
+ return items.reduce((merged, { extend }) => {
3016
+ return mergeWith(merged, extend, (mergedValue, extendValue) => {
3017
+ if (mergedValue === void 0) {
3018
+ return [
3019
+ extendValue
3020
+ ];
3021
+ }
3022
+ if (Array.isArray(mergedValue)) {
3023
+ return [
3024
+ extendValue,
3025
+ ...mergedValue
3026
+ ];
3027
+ }
3028
+ return [
3029
+ extendValue,
3030
+ mergedValue
3031
+ ];
3032
+ });
3033
+ }, {});
3034
+ }
3035
+ function mergeThemes(themes) {
2541
3036
  return {
2542
- ...o.reduce((p, b) => (0, u.defaults)(p, b), {}),
3037
+ ...themes.reduce((merged, theme2) => (0, _defaults.defaults)(merged, theme2), {}),
2543
3038
  // In order to resolve n config objects, we combine all of their `extend` properties
2544
3039
  // into arrays instead of objects so they aren't overridden.
2545
- extend: j(o)
3040
+ extend: collectExtends(themes)
2546
3041
  };
2547
3042
  }
2548
- function $(o, p) {
2549
- if (Array.isArray(o) && (0, a.default)(o[0]))
2550
- return o.concat(p);
2551
- if (Array.isArray(p) && (0, a.default)(p[0]) && (0, a.default)(o))
3043
+ function mergeExtensionCustomizer(merged, value2) {
3044
+ if (Array.isArray(merged) && (0, _isPlainObject.default)(merged[0])) {
3045
+ return merged.concat(value2);
3046
+ }
3047
+ if (Array.isArray(value2) && (0, _isPlainObject.default)(value2[0]) && (0, _isPlainObject.default)(merged)) {
2552
3048
  return [
2553
- o,
2554
- ...p
3049
+ merged,
3050
+ ...value2
2555
3051
  ];
2556
- if (Array.isArray(p))
2557
- return p;
3052
+ }
3053
+ if (Array.isArray(value2)) {
3054
+ return value2;
3055
+ }
3056
+ return void 0;
2558
3057
  }
2559
- function D({ extend: o, ...p }) {
2560
- return k(p, o, (b, s) => !m(b) && !s.some(m) ? k({}, b, ...s, $) : (i, _) => k({}, ...[
2561
- b,
2562
- ...s
2563
- ].map((S) => T(S, i, _)), $));
3058
+ function mergeExtensions({ extend, ...theme2 }) {
3059
+ return mergeWith(theme2, extend, (themeValue, extensions) => {
3060
+ if (!isFunction(themeValue) && !extensions.some(isFunction)) {
3061
+ return mergeWith({}, themeValue, ...extensions, mergeExtensionCustomizer);
3062
+ }
3063
+ return (resolveThemePath, utils) => mergeWith({}, ...[
3064
+ themeValue,
3065
+ ...extensions
3066
+ ].map((e) => value(e, resolveThemePath, utils)), mergeExtensionCustomizer);
3067
+ });
2564
3068
  }
2565
- function* F(o) {
2566
- let p = (0, r.toPath)(o);
2567
- if (p.length === 0 || (yield p, Array.isArray(o)))
3069
+ function* toPaths(key) {
3070
+ let path = (0, _toPath.toPath)(key);
3071
+ if (path.length === 0) {
3072
+ return;
3073
+ }
3074
+ yield path;
3075
+ if (Array.isArray(key)) {
2568
3076
  return;
2569
- let b = /^(.*?)\s*\/\s*([^/]+)$/, s = o.match(b);
2570
- if (s !== null) {
2571
- let [, i, _] = s, S = (0, r.toPath)(i);
2572
- S.alpha = _, yield S;
2573
- }
2574
- }
2575
- function R(o) {
2576
- const p = (b, s) => {
2577
- for (const i of F(b)) {
2578
- let _ = 0, S = o;
2579
- for (; S != null && _ < i.length; )
2580
- S = S[i[_++]], S = m(S) && (i.alpha === void 0 || _ <= i.length - 1) ? S(p, C) : S;
2581
- if (S !== void 0) {
2582
- if (i.alpha !== void 0) {
2583
- let O = (0, c.parseColorFormat)(S);
2584
- return (0, g.withAlphaValue)(O, i.alpha, (0, d.default)(O));
3077
+ }
3078
+ let pattern = /^(.*?)\s*\/\s*([^/]+)$/;
3079
+ let matches = key.match(pattern);
3080
+ if (matches !== null) {
3081
+ let [, prefix, alpha] = matches;
3082
+ let newPath = (0, _toPath.toPath)(prefix);
3083
+ newPath.alpha = alpha;
3084
+ yield newPath;
3085
+ }
3086
+ }
3087
+ function resolveFunctionKeys(object) {
3088
+ const resolvePath = (key, defaultValue) => {
3089
+ for (const path of toPaths(key)) {
3090
+ let index = 0;
3091
+ let val = object;
3092
+ while (val !== void 0 && val !== null && index < path.length) {
3093
+ val = val[path[index++]];
3094
+ let shouldResolveAsFn = isFunction(val) && (path.alpha === void 0 || index <= path.length - 1);
3095
+ val = shouldResolveAsFn ? val(resolvePath, configUtils) : val;
3096
+ }
3097
+ if (val !== void 0) {
3098
+ if (path.alpha !== void 0) {
3099
+ let normalized = (0, _pluginUtils.parseColorFormat)(val);
3100
+ return (0, _withAlphaVariable.withAlphaValue)(normalized, path.alpha, (0, _toColorValue.default)(normalized));
2585
3101
  }
2586
- return (0, a.default)(S) ? (0, t.cloneDeep)(S) : S;
3102
+ if ((0, _isPlainObject.default)(val)) {
3103
+ return (0, _cloneDeep.cloneDeep)(val);
3104
+ }
3105
+ return val;
2587
3106
  }
2588
3107
  }
2589
- return s;
3108
+ return defaultValue;
2590
3109
  };
2591
- return Object.assign(p, {
2592
- theme: p,
2593
- ...C
2594
- }), Object.keys(o).reduce((b, s) => (b[s] = m(o[s]) ? o[s](p, C) : o[s], b), {});
2595
- }
2596
- function U(o) {
2597
- let p = [];
2598
- return o.forEach((b) => {
2599
- p = [
2600
- ...p,
2601
- b
3110
+ Object.assign(resolvePath, {
3111
+ theme: resolvePath,
3112
+ ...configUtils
3113
+ });
3114
+ return Object.keys(object).reduce((resolved, key) => {
3115
+ resolved[key] = isFunction(object[key]) ? object[key](resolvePath, configUtils) : object[key];
3116
+ return resolved;
3117
+ }, {});
3118
+ }
3119
+ function extractPluginConfigs(configs) {
3120
+ let allConfigs = [];
3121
+ configs.forEach((config2) => {
3122
+ allConfigs = [
3123
+ ...allConfigs,
3124
+ config2
2602
3125
  ];
2603
- var s;
2604
- const i = (s = b == null ? void 0 : b.plugins) !== null && s !== void 0 ? s : [];
2605
- i.length !== 0 && i.forEach((_) => {
2606
- _.__isOptionsFunction && (_ = _());
2607
- var S;
2608
- p = [
2609
- ...p,
2610
- ...U([
2611
- (S = _ == null ? void 0 : _.config) !== null && S !== void 0 ? S : {}
3126
+ var _config_plugins;
3127
+ const plugins = (_config_plugins = config2 === null || config2 === void 0 ? void 0 : config2.plugins) !== null && _config_plugins !== void 0 ? _config_plugins : [];
3128
+ if (plugins.length === 0) {
3129
+ return;
3130
+ }
3131
+ plugins.forEach((plugin) => {
3132
+ if (plugin.__isOptionsFunction) {
3133
+ plugin = plugin();
3134
+ }
3135
+ var _plugin_config;
3136
+ allConfigs = [
3137
+ ...allConfigs,
3138
+ ...extractPluginConfigs([
3139
+ (_plugin_config = plugin === null || plugin === void 0 ? void 0 : plugin.config) !== null && _plugin_config !== void 0 ? _plugin_config : {}
2612
3140
  ])
2613
3141
  ];
2614
3142
  });
2615
- }), p;
3143
+ });
3144
+ return allConfigs;
2616
3145
  }
2617
- function l(o) {
2618
- return [
2619
- ...o
2620
- ].reduceRight((b, s) => m(s) ? s({
2621
- corePlugins: b
2622
- }) : (0, y.default)(s, b), n.default);
3146
+ function resolveCorePlugins(corePluginConfigs) {
3147
+ const result = [
3148
+ ...corePluginConfigs
3149
+ ].reduceRight((resolved, corePluginConfig) => {
3150
+ if (isFunction(corePluginConfig)) {
3151
+ return corePluginConfig({
3152
+ corePlugins: resolved
3153
+ });
3154
+ }
3155
+ return (0, _configurePlugins.default)(corePluginConfig, resolved);
3156
+ }, _corePluginList.default);
3157
+ return result;
2623
3158
  }
2624
- function x(o) {
2625
- return [
2626
- ...o
2627
- ].reduceRight((b, s) => [
2628
- ...b,
2629
- ...s
2630
- ], []);
2631
- }
2632
- function w(o) {
2633
- let p = [
2634
- ...U(o),
3159
+ function resolvePluginLists(pluginLists) {
3160
+ const result = [
3161
+ ...pluginLists
3162
+ ].reduceRight((resolved, pluginList) => {
3163
+ return [
3164
+ ...resolved,
3165
+ ...pluginList
3166
+ ];
3167
+ }, []);
3168
+ return result;
3169
+ }
3170
+ function resolveConfig2(configs) {
3171
+ let allConfigs = [
3172
+ ...extractPluginConfigs(configs),
2635
3173
  {
2636
3174
  prefix: "",
2637
- important: !1,
3175
+ important: false,
2638
3176
  separator: ":"
2639
3177
  }
2640
3178
  ];
2641
- var b, s;
2642
- return (0, v.normalizeConfig)((0, u.defaults)({
2643
- theme: R(D(P(p.map((i) => (b = i == null ? void 0 : i.theme) !== null && b !== void 0 ? b : {})))),
2644
- corePlugins: l(p.map((i) => i.corePlugins)),
2645
- plugins: x(o.map((i) => (s = i == null ? void 0 : i.plugins) !== null && s !== void 0 ? s : []))
2646
- }, ...p));
2647
- }
2648
- })(le);
2649
- var Ae = {}, Ee = {
3179
+ var _t_theme, _c_plugins;
3180
+ return (0, _normalizeConfig.normalizeConfig)((0, _defaults.defaults)({
3181
+ theme: resolveFunctionKeys(mergeExtensions(mergeThemes(allConfigs.map((t) => {
3182
+ return (_t_theme = t === null || t === void 0 ? void 0 : t.theme) !== null && _t_theme !== void 0 ? _t_theme : {};
3183
+ })))),
3184
+ corePlugins: resolveCorePlugins(allConfigs.map((c) => c.corePlugins)),
3185
+ plugins: resolvePluginLists(configs.map((c) => {
3186
+ return (_c_plugins = c === null || c === void 0 ? void 0 : c.plugins) !== null && _c_plugins !== void 0 ? _c_plugins : [];
3187
+ }))
3188
+ }, ...allConfigs));
3189
+ }
3190
+ })(resolveConfig$2);
3191
+ var getAllConfigs = {};
3192
+ var config_full = {
2650
3193
  content: [],
2651
3194
  presets: [],
2652
3195
  darkMode: "media",
2653
3196
  // or 'class'
2654
3197
  theme: {
2655
- accentColor: ({ theme: e }) => ({
2656
- ...e("colors"),
3198
+ accentColor: ({ theme: theme2 }) => ({
3199
+ ...theme2("colors"),
2657
3200
  auto: "auto"
2658
3201
  }),
2659
3202
  animation: {
@@ -2679,16 +3222,16 @@ var Ae = {}, Ee = {
2679
3222
  square: "1 / 1",
2680
3223
  video: "16 / 9"
2681
3224
  },
2682
- backdropBlur: ({ theme: e }) => e("blur"),
2683
- backdropBrightness: ({ theme: e }) => e("brightness"),
2684
- backdropContrast: ({ theme: e }) => e("contrast"),
2685
- backdropGrayscale: ({ theme: e }) => e("grayscale"),
2686
- backdropHueRotate: ({ theme: e }) => e("hueRotate"),
2687
- backdropInvert: ({ theme: e }) => e("invert"),
2688
- backdropOpacity: ({ theme: e }) => e("opacity"),
2689
- backdropSaturate: ({ theme: e }) => e("saturate"),
2690
- backdropSepia: ({ theme: e }) => e("sepia"),
2691
- backgroundColor: ({ theme: e }) => e("colors"),
3225
+ backdropBlur: ({ theme: theme2 }) => theme2("blur"),
3226
+ backdropBrightness: ({ theme: theme2 }) => theme2("brightness"),
3227
+ backdropContrast: ({ theme: theme2 }) => theme2("contrast"),
3228
+ backdropGrayscale: ({ theme: theme2 }) => theme2("grayscale"),
3229
+ backdropHueRotate: ({ theme: theme2 }) => theme2("hueRotate"),
3230
+ backdropInvert: ({ theme: theme2 }) => theme2("invert"),
3231
+ backdropOpacity: ({ theme: theme2 }) => theme2("opacity"),
3232
+ backdropSaturate: ({ theme: theme2 }) => theme2("saturate"),
3233
+ backdropSepia: ({ theme: theme2 }) => theme2("sepia"),
3234
+ backgroundColor: ({ theme: theme2 }) => theme2("colors"),
2692
3235
  backgroundImage: {
2693
3236
  none: "none",
2694
3237
  "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))",
@@ -2700,7 +3243,7 @@ var Ae = {}, Ee = {
2700
3243
  "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))",
2701
3244
  "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
2702
3245
  },
2703
- backgroundOpacity: ({ theme: e }) => e("opacity"),
3246
+ backgroundOpacity: ({ theme: theme2 }) => theme2("opacity"),
2704
3247
  backgroundPosition: {
2705
3248
  bottom: "bottom",
2706
3249
  center: "center",
@@ -2728,11 +3271,11 @@ var Ae = {}, Ee = {
2728
3271
  "2xl": "40px",
2729
3272
  "3xl": "64px"
2730
3273
  },
2731
- borderColor: ({ theme: e }) => ({
2732
- ...e("colors"),
2733
- DEFAULT: e("colors.gray.200", "currentColor")
3274
+ borderColor: ({ theme: theme2 }) => ({
3275
+ ...theme2("colors"),
3276
+ DEFAULT: theme2("colors.gray.200", "currentColor")
2734
3277
  }),
2735
- borderOpacity: ({ theme: e }) => e("opacity"),
3278
+ borderOpacity: ({ theme: theme2 }) => theme2("opacity"),
2736
3279
  borderRadius: {
2737
3280
  none: "0px",
2738
3281
  sm: "0.125rem",
@@ -2744,8 +3287,8 @@ var Ae = {}, Ee = {
2744
3287
  "3xl": "1.5rem",
2745
3288
  full: "9999px"
2746
3289
  },
2747
- borderSpacing: ({ theme: e }) => ({
2748
- ...e("spacing")
3290
+ borderSpacing: ({ theme: theme2 }) => ({
3291
+ ...theme2("spacing")
2749
3292
  }),
2750
3293
  borderWidth: {
2751
3294
  DEFAULT: "1px",
@@ -2764,7 +3307,7 @@ var Ae = {}, Ee = {
2764
3307
  inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
2765
3308
  none: "none"
2766
3309
  },
2767
- boxShadowColor: ({ theme: e }) => e("colors"),
3310
+ boxShadowColor: ({ theme: theme2 }) => theme2("colors"),
2768
3311
  brightness: {
2769
3312
  0: "0",
2770
3313
  50: ".5",
@@ -2778,35 +3321,35 @@ var Ae = {}, Ee = {
2778
3321
  150: "1.5",
2779
3322
  200: "2"
2780
3323
  },
2781
- caretColor: ({ theme: e }) => e("colors"),
2782
- colors: ({ colors: e }) => ({
2783
- inherit: e.inherit,
2784
- current: e.current,
2785
- transparent: e.transparent,
2786
- black: e.black,
2787
- white: e.white,
2788
- slate: e.slate,
2789
- gray: e.gray,
2790
- zinc: e.zinc,
2791
- neutral: e.neutral,
2792
- stone: e.stone,
2793
- red: e.red,
2794
- orange: e.orange,
2795
- amber: e.amber,
2796
- yellow: e.yellow,
2797
- lime: e.lime,
2798
- green: e.green,
2799
- emerald: e.emerald,
2800
- teal: e.teal,
2801
- cyan: e.cyan,
2802
- sky: e.sky,
2803
- blue: e.blue,
2804
- indigo: e.indigo,
2805
- violet: e.violet,
2806
- purple: e.purple,
2807
- fuchsia: e.fuchsia,
2808
- pink: e.pink,
2809
- rose: e.rose
3324
+ caretColor: ({ theme: theme2 }) => theme2("colors"),
3325
+ colors: ({ colors: colors2 }) => ({
3326
+ inherit: colors2.inherit,
3327
+ current: colors2.current,
3328
+ transparent: colors2.transparent,
3329
+ black: colors2.black,
3330
+ white: colors2.white,
3331
+ slate: colors2.slate,
3332
+ gray: colors2.gray,
3333
+ zinc: colors2.zinc,
3334
+ neutral: colors2.neutral,
3335
+ stone: colors2.stone,
3336
+ red: colors2.red,
3337
+ orange: colors2.orange,
3338
+ amber: colors2.amber,
3339
+ yellow: colors2.yellow,
3340
+ lime: colors2.lime,
3341
+ green: colors2.green,
3342
+ emerald: colors2.emerald,
3343
+ teal: colors2.teal,
3344
+ cyan: colors2.cyan,
3345
+ sky: colors2.sky,
3346
+ blue: colors2.blue,
3347
+ indigo: colors2.indigo,
3348
+ violet: colors2.violet,
3349
+ purple: colors2.purple,
3350
+ fuchsia: colors2.fuchsia,
3351
+ pink: colors2.pink,
3352
+ rose: colors2.rose
2810
3353
  }),
2811
3354
  columns: {
2812
3355
  auto: "auto",
@@ -2887,9 +3430,9 @@ var Ae = {}, Ee = {
2887
3430
  "zoom-in": "zoom-in",
2888
3431
  "zoom-out": "zoom-out"
2889
3432
  },
2890
- divideColor: ({ theme: e }) => e("borderColor"),
2891
- divideOpacity: ({ theme: e }) => e("borderOpacity"),
2892
- divideWidth: ({ theme: e }) => e("borderWidth"),
3433
+ divideColor: ({ theme: theme2 }) => theme2("borderColor"),
3434
+ divideOpacity: ({ theme: theme2 }) => theme2("borderOpacity"),
3435
+ divideWidth: ({ theme: theme2 }) => theme2("borderWidth"),
2893
3436
  dropShadow: {
2894
3437
  sm: "0 1px 1px rgb(0 0 0 / 0.05)",
2895
3438
  DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
@@ -2899,9 +3442,9 @@ var Ae = {}, Ee = {
2899
3442
  "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
2900
3443
  none: "0 0 #0000"
2901
3444
  },
2902
- fill: ({ theme: e }) => ({
3445
+ fill: ({ theme: theme2 }) => ({
2903
3446
  none: "none",
2904
- ...e("colors")
3447
+ ...theme2("colors")
2905
3448
  }),
2906
3449
  flex: {
2907
3450
  1: "1 1 0%",
@@ -2909,9 +3452,9 @@ var Ae = {}, Ee = {
2909
3452
  initial: "0 1 auto",
2910
3453
  none: "none"
2911
3454
  },
2912
- flexBasis: ({ theme: e }) => ({
3455
+ flexBasis: ({ theme: theme2 }) => ({
2913
3456
  auto: "auto",
2914
- ...e("spacing"),
3457
+ ...theme2("spacing"),
2915
3458
  "1/2": "50%",
2916
3459
  "1/3": "33.333333%",
2917
3460
  "2/3": "66.666667%",
@@ -2996,8 +3539,8 @@ var Ae = {}, Ee = {
2996
3539
  extrabold: "800",
2997
3540
  black: "900"
2998
3541
  },
2999
- gap: ({ theme: e }) => e("spacing"),
3000
- gradientColorStops: ({ theme: e }) => e("colors"),
3542
+ gap: ({ theme: theme2 }) => theme2("spacing"),
3543
+ gradientColorStops: ({ theme: theme2 }) => theme2("colors"),
3001
3544
  gradientColorStopPositions: {
3002
3545
  "0%": "0%",
3003
3546
  "5%": "5%",
@@ -3165,9 +3708,9 @@ var Ae = {}, Ee = {
3165
3708
  11: "repeat(11, minmax(0, 1fr))",
3166
3709
  12: "repeat(12, minmax(0, 1fr))"
3167
3710
  },
3168
- height: ({ theme: e }) => ({
3711
+ height: ({ theme: theme2 }) => ({
3169
3712
  auto: "auto",
3170
- ...e("spacing"),
3713
+ ...theme2("spacing"),
3171
3714
  "1/2": "50%",
3172
3715
  "1/3": "33.333333%",
3173
3716
  "2/3": "66.666667%",
@@ -3200,9 +3743,9 @@ var Ae = {}, Ee = {
3200
3743
  90: "90deg",
3201
3744
  180: "180deg"
3202
3745
  },
3203
- inset: ({ theme: e }) => ({
3746
+ inset: ({ theme: theme2 }) => ({
3204
3747
  auto: "auto",
3205
- ...e("spacing"),
3748
+ ...theme2("spacing"),
3206
3749
  "1/2": "50%",
3207
3750
  "1/3": "33.333333%",
3208
3751
  "2/3": "66.666667%",
@@ -3275,9 +3818,9 @@ var Ae = {}, Ee = {
3275
3818
  listStyleImage: {
3276
3819
  none: "none"
3277
3820
  },
3278
- margin: ({ theme: e }) => ({
3821
+ margin: ({ theme: theme2 }) => ({
3279
3822
  auto: "auto",
3280
- ...e("spacing")
3823
+ ...theme2("spacing")
3281
3824
  }),
3282
3825
  lineClamp: {
3283
3826
  1: "1",
@@ -3287,8 +3830,8 @@ var Ae = {}, Ee = {
3287
3830
  5: "5",
3288
3831
  6: "6"
3289
3832
  },
3290
- maxHeight: ({ theme: e }) => ({
3291
- ...e("spacing"),
3833
+ maxHeight: ({ theme: theme2 }) => ({
3834
+ ...theme2("spacing"),
3292
3835
  none: "none",
3293
3836
  full: "100%",
3294
3837
  screen: "100vh",
@@ -3299,8 +3842,8 @@ var Ae = {}, Ee = {
3299
3842
  max: "max-content",
3300
3843
  fit: "fit-content"
3301
3844
  }),
3302
- maxWidth: ({ theme: e, breakpoints: h }) => ({
3303
- ...e("spacing"),
3845
+ maxWidth: ({ theme: theme2, breakpoints }) => ({
3846
+ ...theme2("spacing"),
3304
3847
  none: "none",
3305
3848
  xs: "20rem",
3306
3849
  sm: "24rem",
@@ -3318,10 +3861,10 @@ var Ae = {}, Ee = {
3318
3861
  max: "max-content",
3319
3862
  fit: "fit-content",
3320
3863
  prose: "65ch",
3321
- ...h(e("screens"))
3864
+ ...breakpoints(theme2("screens"))
3322
3865
  }),
3323
- minHeight: ({ theme: e }) => ({
3324
- ...e("spacing"),
3866
+ minHeight: ({ theme: theme2 }) => ({
3867
+ ...theme2("spacing"),
3325
3868
  full: "100%",
3326
3869
  screen: "100vh",
3327
3870
  svh: "100svh",
@@ -3331,8 +3874,8 @@ var Ae = {}, Ee = {
3331
3874
  max: "max-content",
3332
3875
  fit: "fit-content"
3333
3876
  }),
3334
- minWidth: ({ theme: e }) => ({
3335
- ...e("spacing"),
3877
+ minWidth: ({ theme: theme2 }) => ({
3878
+ ...theme2("spacing"),
3336
3879
  full: "100%",
3337
3880
  min: "min-content",
3338
3881
  max: "max-content",
@@ -3389,7 +3932,7 @@ var Ae = {}, Ee = {
3389
3932
  11: "11",
3390
3933
  12: "12"
3391
3934
  },
3392
- outlineColor: ({ theme: e }) => e("colors"),
3935
+ outlineColor: ({ theme: theme2 }) => theme2("colors"),
3393
3936
  outlineOffset: {
3394
3937
  0: "0px",
3395
3938
  1: "1px",
@@ -3404,14 +3947,14 @@ var Ae = {}, Ee = {
3404
3947
  4: "4px",
3405
3948
  8: "8px"
3406
3949
  },
3407
- padding: ({ theme: e }) => e("spacing"),
3408
- placeholderColor: ({ theme: e }) => e("colors"),
3409
- placeholderOpacity: ({ theme: e }) => e("opacity"),
3410
- ringColor: ({ theme: e }) => ({
3411
- DEFAULT: e("colors.blue.500", "#3b82f6"),
3412
- ...e("colors")
3950
+ padding: ({ theme: theme2 }) => theme2("spacing"),
3951
+ placeholderColor: ({ theme: theme2 }) => theme2("colors"),
3952
+ placeholderOpacity: ({ theme: theme2 }) => theme2("opacity"),
3953
+ ringColor: ({ theme: theme2 }) => ({
3954
+ DEFAULT: theme2("colors.blue.500", "#3b82f6"),
3955
+ ...theme2("colors")
3413
3956
  }),
3414
- ringOffsetColor: ({ theme: e }) => e("colors"),
3957
+ ringOffsetColor: ({ theme: theme2 }) => theme2("colors"),
3415
3958
  ringOffsetWidth: {
3416
3959
  0: "0px",
3417
3960
  1: "1px",
@@ -3419,9 +3962,9 @@ var Ae = {}, Ee = {
3419
3962
  4: "4px",
3420
3963
  8: "8px"
3421
3964
  },
3422
- ringOpacity: ({ theme: e }) => ({
3965
+ ringOpacity: ({ theme: theme2 }) => ({
3423
3966
  DEFAULT: "0.5",
3424
- ...e("opacity")
3967
+ ...theme2("opacity")
3425
3968
  }),
3426
3969
  ringWidth: {
3427
3970
  DEFAULT: "3px",
@@ -3468,10 +4011,10 @@ var Ae = {}, Ee = {
3468
4011
  xl: "1280px",
3469
4012
  "2xl": "1536px"
3470
4013
  },
3471
- scrollMargin: ({ theme: e }) => ({
3472
- ...e("spacing")
4014
+ scrollMargin: ({ theme: theme2 }) => ({
4015
+ ...theme2("spacing")
3473
4016
  }),
3474
- scrollPadding: ({ theme: e }) => e("spacing"),
4017
+ scrollPadding: ({ theme: theme2 }) => theme2("spacing"),
3475
4018
  sepia: {
3476
4019
  0: "0",
3477
4020
  DEFAULT: "100%"
@@ -3484,8 +4027,8 @@ var Ae = {}, Ee = {
3484
4027
  6: "6deg",
3485
4028
  12: "12deg"
3486
4029
  },
3487
- space: ({ theme: e }) => ({
3488
- ...e("spacing")
4030
+ space: ({ theme: theme2 }) => ({
4031
+ ...theme2("spacing")
3489
4032
  }),
3490
4033
  spacing: {
3491
4034
  px: "1px",
@@ -3524,9 +4067,9 @@ var Ae = {}, Ee = {
3524
4067
  80: "20rem",
3525
4068
  96: "24rem"
3526
4069
  },
3527
- stroke: ({ theme: e }) => ({
4070
+ stroke: ({ theme: theme2 }) => ({
3528
4071
  none: "none",
3529
- ...e("colors")
4072
+ ...theme2("colors")
3530
4073
  }),
3531
4074
  strokeWidth: {
3532
4075
  0: "0",
@@ -3535,8 +4078,8 @@ var Ae = {}, Ee = {
3535
4078
  },
3536
4079
  supports: {},
3537
4080
  data: {},
3538
- textColor: ({ theme: e }) => e("colors"),
3539
- textDecorationColor: ({ theme: e }) => e("colors"),
4081
+ textColor: ({ theme: theme2 }) => theme2("colors"),
4082
+ textDecorationColor: ({ theme: theme2 }) => theme2("colors"),
3540
4083
  textDecorationThickness: {
3541
4084
  auto: "auto",
3542
4085
  "from-font": "from-font",
@@ -3546,10 +4089,10 @@ var Ae = {}, Ee = {
3546
4089
  4: "4px",
3547
4090
  8: "8px"
3548
4091
  },
3549
- textIndent: ({ theme: e }) => ({
3550
- ...e("spacing")
4092
+ textIndent: ({ theme: theme2 }) => ({
4093
+ ...theme2("spacing")
3551
4094
  }),
3552
- textOpacity: ({ theme: e }) => e("opacity"),
4095
+ textOpacity: ({ theme: theme2 }) => theme2("opacity"),
3553
4096
  textUnderlineOffset: {
3554
4097
  auto: "auto",
3555
4098
  0: "0px",
@@ -3608,8 +4151,8 @@ var Ae = {}, Ee = {
3608
4151
  out: "cubic-bezier(0, 0, 0.2, 1)",
3609
4152
  "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
3610
4153
  },
3611
- translate: ({ theme: e }) => ({
3612
- ...e("spacing"),
4154
+ translate: ({ theme: theme2 }) => ({
4155
+ ...theme2("spacing"),
3613
4156
  "1/2": "50%",
3614
4157
  "1/3": "33.333333%",
3615
4158
  "2/3": "66.666667%",
@@ -3618,9 +4161,9 @@ var Ae = {}, Ee = {
3618
4161
  "3/4": "75%",
3619
4162
  full: "100%"
3620
4163
  }),
3621
- size: ({ theme: e }) => ({
4164
+ size: ({ theme: theme2 }) => ({
3622
4165
  auto: "auto",
3623
- ...e("spacing"),
4166
+ ...theme2("spacing"),
3624
4167
  "1/2": "50%",
3625
4168
  "1/3": "33.333333%",
3626
4169
  "2/3": "66.666667%",
@@ -3652,9 +4195,9 @@ var Ae = {}, Ee = {
3652
4195
  max: "max-content",
3653
4196
  fit: "fit-content"
3654
4197
  }),
3655
- width: ({ theme: e }) => ({
4198
+ width: ({ theme: theme2 }) => ({
3656
4199
  auto: "auto",
3657
- ...e("spacing"),
4200
+ ...theme2("spacing"),
3658
4201
  "1/2": "50%",
3659
4202
  "1/3": "33.333333%",
3660
4203
  "2/3": "66.666667%",
@@ -3708,87 +4251,103 @@ var Ae = {}, Ee = {
3708
4251
  },
3709
4252
  plugins: []
3710
4253
  };
3711
- (function(e) {
3712
- Object.defineProperty(e, "__esModule", {
3713
- value: !0
3714
- }), Object.defineProperty(e, "default", {
3715
- enumerable: !0,
4254
+ (function(exports) {
4255
+ Object.defineProperty(exports, "__esModule", {
4256
+ value: true
4257
+ });
4258
+ Object.defineProperty(exports, "default", {
4259
+ enumerable: true,
3716
4260
  get: function() {
3717
- return f;
4261
+ return getAllConfigs2;
3718
4262
  }
3719
4263
  });
3720
- const h = /* @__PURE__ */ y(Ee), n = q;
3721
- function y(u) {
3722
- return u && u.__esModule ? u : {
3723
- default: u
4264
+ const _configfull = /* @__PURE__ */ _interop_require_default(config_full);
4265
+ const _featureFlags = featureFlags;
4266
+ function _interop_require_default(obj) {
4267
+ return obj && obj.__esModule ? obj : {
4268
+ default: obj
3724
4269
  };
3725
4270
  }
3726
- function f(u) {
3727
- var r;
3728
- const v = ((r = u == null ? void 0 : u.presets) !== null && r !== void 0 ? r : [
3729
- h.default
3730
- ]).slice().reverse().flatMap((c) => f(c instanceof Function ? c() : c)), a = {
4271
+ function getAllConfigs2(config2) {
4272
+ var _config_presets;
4273
+ const configs = ((_config_presets = config2 === null || config2 === void 0 ? void 0 : config2.presets) !== null && _config_presets !== void 0 ? _config_presets : [
4274
+ _configfull.default
4275
+ ]).slice().reverse().flatMap((preset) => getAllConfigs2(preset instanceof Function ? preset() : preset));
4276
+ const features = {
3731
4277
  // Add experimental configs here...
3732
4278
  respectDefaultRingColorOpacity: {
3733
4279
  theme: {
3734
- ringColor: ({ theme: c }) => ({
4280
+ ringColor: ({ theme: theme2 }) => ({
3735
4281
  DEFAULT: "#3b82f67f",
3736
- ...c("colors")
4282
+ ...theme2("colors")
3737
4283
  })
3738
4284
  }
3739
4285
  },
3740
4286
  disableColorOpacityUtilitiesByDefault: {
3741
4287
  corePlugins: {
3742
- backgroundOpacity: !1,
3743
- borderOpacity: !1,
3744
- divideOpacity: !1,
3745
- placeholderOpacity: !1,
3746
- ringOpacity: !1,
3747
- textOpacity: !1
4288
+ backgroundOpacity: false,
4289
+ borderOpacity: false,
4290
+ divideOpacity: false,
4291
+ placeholderOpacity: false,
4292
+ ringOpacity: false,
4293
+ textOpacity: false
3748
4294
  }
3749
4295
  }
3750
- }, t = Object.keys(a).filter((c) => (0, n.flagEnabled)(u, c)).map((c) => a[c]);
4296
+ };
4297
+ const experimentals = Object.keys(features).filter((feature) => (0, _featureFlags.flagEnabled)(config2, feature)).map((feature) => features[feature]);
3751
4298
  return [
3752
- u,
3753
- ...t,
3754
- ...v
4299
+ config2,
4300
+ ...experimentals,
4301
+ ...configs
3755
4302
  ];
3756
4303
  }
3757
- })(Ae);
3758
- (function(e) {
3759
- Object.defineProperty(e, "__esModule", {
3760
- value: !0
3761
- }), Object.defineProperty(e, "default", {
3762
- enumerable: !0,
4304
+ })(getAllConfigs);
4305
+ (function(exports) {
4306
+ Object.defineProperty(exports, "__esModule", {
4307
+ value: true
4308
+ });
4309
+ Object.defineProperty(exports, "default", {
4310
+ enumerable: true,
3763
4311
  get: function() {
3764
- return f;
4312
+ return resolveConfig2;
3765
4313
  }
3766
4314
  });
3767
- const h = /* @__PURE__ */ y(le), n = /* @__PURE__ */ y(Ae);
3768
- function y(u) {
3769
- return u && u.__esModule ? u : {
3770
- default: u
4315
+ const _resolveConfig = /* @__PURE__ */ _interop_require_default(resolveConfig$2);
4316
+ const _getAllConfigs = /* @__PURE__ */ _interop_require_default(getAllConfigs);
4317
+ function _interop_require_default(obj) {
4318
+ return obj && obj.__esModule ? obj : {
4319
+ default: obj
3771
4320
  };
3772
4321
  }
3773
- function f(...u) {
3774
- let [, ...r] = (0, n.default)(u[0]);
3775
- return (0, h.default)([
3776
- ...u,
3777
- ...r
4322
+ function resolveConfig2(...configs) {
4323
+ let [, ...defaultConfigs] = (0, _getAllConfigs.default)(configs[0]);
4324
+ return (0, _resolveConfig.default)([
4325
+ ...configs,
4326
+ ...defaultConfigs
3778
4327
  ]);
3779
4328
  }
3780
- })(oe);
3781
- let J = oe;
3782
- var ze = (J.__esModule ? J : { default: J }).default;
3783
- const Te = /* @__PURE__ */ Pe(ze), je = Te(Ce), W = je.theme, Q = W == null ? void 0 : W.colors;
3784
- var ae;
3785
- (ae = W == null ? void 0 : W.extend) == null || ae.colors;
3786
- const Z = W == null ? void 0 : W.screens, $e = (e) => Q == null ? void 0 : Q[e], Me = (e) => {
3787
- const h = e.split("-").slice(0, -1).join("-"), n = String(e.split("-").pop());
3788
- return Se($e(h), n);
3789
- }, Ue = (e) => Z == null ? void 0 : Z[e];
4329
+ })(resolveConfig$3);
4330
+ let resolveConfig = resolveConfig$3;
4331
+ var resolveConfig_1 = (resolveConfig.__esModule ? resolveConfig : { default: resolveConfig }).default;
4332
+ const resolveConfig$1 = /* @__PURE__ */ getDefaultExportFromCjs(resolveConfig_1);
4333
+ const config = resolveConfig$1(config$1);
4334
+ const theme = config.theme;
4335
+ const colors = theme == null ? void 0 : theme.colors;
4336
+ (_a = theme == null ? void 0 : theme.extend) == null ? void 0 : _a.colors;
4337
+ const screens = theme == null ? void 0 : theme.screens;
4338
+ const getColor = (name) => {
4339
+ return colors == null ? void 0 : colors[name];
4340
+ };
4341
+ const getColorDeep = (color2) => {
4342
+ const baseColor = color2.split("-").slice(0, -1).join("-");
4343
+ const colorNumber = String(color2.split("-").pop());
4344
+ return get(getColor(baseColor), colorNumber);
4345
+ };
4346
+ const getScreen = (size) => {
4347
+ return screens == null ? void 0 : screens[size];
4348
+ };
3790
4349
  export {
3791
- $e as getColor,
3792
- Me as getColorDeep,
3793
- Ue as getScreen
4350
+ getColor,
4351
+ getColorDeep,
4352
+ getScreen
3794
4353
  };