@pequity/squirrel 1.0.28-beta.1 → 1.0.28-beta.2

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.
@@ -1,4338 +1,10 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const resolveConfig = require("tailwindcss/resolveConfig");
4
5
  const lodashEs = require("lodash-es");
5
6
  const config$1 = require("./config.js");
6
- function getDefaultExportFromCjs(x2) {
7
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
8
- }
9
- var resolveConfig$3 = {};
10
- var resolveConfig$2 = {};
11
- var negateValue = {};
12
- (function(exports2) {
13
- Object.defineProperty(exports2, "__esModule", {
14
- value: true
15
- });
16
- Object.defineProperty(exports2, "default", {
17
- enumerable: true,
18
- get: function() {
19
- return negateValue2;
20
- }
21
- });
22
- function negateValue2(value) {
23
- value = `${value}`;
24
- if (value === "0") {
25
- return "0";
26
- }
27
- if (/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(value)) {
28
- return value.replace(/^[+-]?/, (sign) => sign === "-" ? "" : "-");
29
- }
30
- let numericFunctions = [
31
- "var",
32
- "calc",
33
- "min",
34
- "max",
35
- "clamp"
36
- ];
37
- for (const fn of numericFunctions) {
38
- if (value.includes(`${fn}(`)) {
39
- return `calc(${value} * -1)`;
40
- }
41
- }
42
- }
43
- })(negateValue);
44
- var corePluginList = {};
45
- (function(exports2) {
46
- Object.defineProperty(exports2, "__esModule", {
47
- value: true
48
- });
49
- Object.defineProperty(exports2, "default", {
50
- enumerable: true,
51
- get: function() {
52
- return _default;
53
- }
54
- });
55
- const _default = [
56
- "preflight",
57
- "container",
58
- "accessibility",
59
- "pointerEvents",
60
- "visibility",
61
- "position",
62
- "inset",
63
- "isolation",
64
- "zIndex",
65
- "order",
66
- "gridColumn",
67
- "gridColumnStart",
68
- "gridColumnEnd",
69
- "gridRow",
70
- "gridRowStart",
71
- "gridRowEnd",
72
- "float",
73
- "clear",
74
- "margin",
75
- "boxSizing",
76
- "lineClamp",
77
- "display",
78
- "aspectRatio",
79
- "size",
80
- "height",
81
- "maxHeight",
82
- "minHeight",
83
- "width",
84
- "minWidth",
85
- "maxWidth",
86
- "flex",
87
- "flexShrink",
88
- "flexGrow",
89
- "flexBasis",
90
- "tableLayout",
91
- "captionSide",
92
- "borderCollapse",
93
- "borderSpacing",
94
- "transformOrigin",
95
- "translate",
96
- "rotate",
97
- "skew",
98
- "scale",
99
- "transform",
100
- "animation",
101
- "cursor",
102
- "touchAction",
103
- "userSelect",
104
- "resize",
105
- "scrollSnapType",
106
- "scrollSnapAlign",
107
- "scrollSnapStop",
108
- "scrollMargin",
109
- "scrollPadding",
110
- "listStylePosition",
111
- "listStyleType",
112
- "listStyleImage",
113
- "appearance",
114
- "columns",
115
- "breakBefore",
116
- "breakInside",
117
- "breakAfter",
118
- "gridAutoColumns",
119
- "gridAutoFlow",
120
- "gridAutoRows",
121
- "gridTemplateColumns",
122
- "gridTemplateRows",
123
- "flexDirection",
124
- "flexWrap",
125
- "placeContent",
126
- "placeItems",
127
- "alignContent",
128
- "alignItems",
129
- "justifyContent",
130
- "justifyItems",
131
- "gap",
132
- "space",
133
- "divideWidth",
134
- "divideStyle",
135
- "divideColor",
136
- "divideOpacity",
137
- "placeSelf",
138
- "alignSelf",
139
- "justifySelf",
140
- "overflow",
141
- "overscrollBehavior",
142
- "scrollBehavior",
143
- "textOverflow",
144
- "hyphens",
145
- "whitespace",
146
- "textWrap",
147
- "wordBreak",
148
- "borderRadius",
149
- "borderWidth",
150
- "borderStyle",
151
- "borderColor",
152
- "borderOpacity",
153
- "backgroundColor",
154
- "backgroundOpacity",
155
- "backgroundImage",
156
- "gradientColorStops",
157
- "boxDecorationBreak",
158
- "backgroundSize",
159
- "backgroundAttachment",
160
- "backgroundClip",
161
- "backgroundPosition",
162
- "backgroundRepeat",
163
- "backgroundOrigin",
164
- "fill",
165
- "stroke",
166
- "strokeWidth",
167
- "objectFit",
168
- "objectPosition",
169
- "padding",
170
- "textAlign",
171
- "textIndent",
172
- "verticalAlign",
173
- "fontFamily",
174
- "fontSize",
175
- "fontWeight",
176
- "textTransform",
177
- "fontStyle",
178
- "fontVariantNumeric",
179
- "lineHeight",
180
- "letterSpacing",
181
- "textColor",
182
- "textOpacity",
183
- "textDecoration",
184
- "textDecorationColor",
185
- "textDecorationStyle",
186
- "textDecorationThickness",
187
- "textUnderlineOffset",
188
- "fontSmoothing",
189
- "placeholderColor",
190
- "placeholderOpacity",
191
- "caretColor",
192
- "accentColor",
193
- "opacity",
194
- "backgroundBlendMode",
195
- "mixBlendMode",
196
- "boxShadow",
197
- "boxShadowColor",
198
- "outlineStyle",
199
- "outlineWidth",
200
- "outlineOffset",
201
- "outlineColor",
202
- "ringWidth",
203
- "ringColor",
204
- "ringOpacity",
205
- "ringOffsetWidth",
206
- "ringOffsetColor",
207
- "blur",
208
- "brightness",
209
- "contrast",
210
- "dropShadow",
211
- "grayscale",
212
- "hueRotate",
213
- "invert",
214
- "saturate",
215
- "sepia",
216
- "filter",
217
- "backdropBlur",
218
- "backdropBrightness",
219
- "backdropContrast",
220
- "backdropGrayscale",
221
- "backdropHueRotate",
222
- "backdropInvert",
223
- "backdropOpacity",
224
- "backdropSaturate",
225
- "backdropSepia",
226
- "backdropFilter",
227
- "transitionProperty",
228
- "transitionDelay",
229
- "transitionDuration",
230
- "transitionTimingFunction",
231
- "willChange",
232
- "contain",
233
- "content",
234
- "forcedColorAdjust"
235
- ];
236
- })(corePluginList);
237
- var configurePlugins = {};
238
- (function(exports2) {
239
- Object.defineProperty(exports2, "__esModule", {
240
- value: true
241
- });
242
- Object.defineProperty(exports2, "default", {
243
- enumerable: true,
244
- get: function() {
245
- return _default;
246
- }
247
- });
248
- function _default(pluginConfig, plugins) {
249
- if (pluginConfig === void 0) {
250
- return plugins;
251
- }
252
- const pluginNames = Array.isArray(pluginConfig) ? pluginConfig : [
253
- ...new Set(plugins.filter((pluginName) => {
254
- return pluginConfig !== false && pluginConfig[pluginName] !== false;
255
- }).concat(Object.keys(pluginConfig).filter((pluginName) => {
256
- return pluginConfig[pluginName] !== false;
257
- })))
258
- ];
259
- return pluginNames;
260
- }
261
- })(configurePlugins);
262
- var colors$1 = {};
263
- var log = {};
264
- var picocolors_browser = { exports: {} };
265
- var x = String;
266
- var create = function() {
267
- 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 };
268
- };
269
- picocolors_browser.exports = create();
270
- picocolors_browser.exports.createColors = create;
271
- var picocolors_browserExports = picocolors_browser.exports;
272
- (function(exports2) {
273
- Object.defineProperty(exports2, "__esModule", {
274
- value: true
275
- });
276
- function _export(target, all) {
277
- for (var name in all)
278
- Object.defineProperty(target, name, {
279
- enumerable: true,
280
- get: all[name]
281
- });
282
- }
283
- _export(exports2, {
284
- dim: function() {
285
- return dim;
286
- },
287
- default: function() {
288
- return _default;
289
- }
290
- });
291
- const _picocolors = /* @__PURE__ */ _interop_require_default(picocolors_browserExports);
292
- function _interop_require_default(obj) {
293
- return obj && obj.__esModule ? obj : {
294
- default: obj
295
- };
296
- }
297
- let alreadyShown = /* @__PURE__ */ new Set();
298
- function log2(type, messages, key) {
299
- if (typeof process !== "undefined" && process.env.JEST_WORKER_ID)
300
- return;
301
- if (key && alreadyShown.has(key))
302
- return;
303
- if (key)
304
- alreadyShown.add(key);
305
- console.warn("");
306
- messages.forEach((message) => console.warn(type, "-", message));
307
- }
308
- function dim(input) {
309
- return _picocolors.default.dim(input);
310
- }
311
- const _default = {
312
- info(key, messages) {
313
- log2(_picocolors.default.bold(_picocolors.default.cyan("info")), ...Array.isArray(key) ? [
314
- key
315
- ] : [
316
- messages,
317
- key
318
- ]);
319
- },
320
- warn(key, messages) {
321
- log2(_picocolors.default.bold(_picocolors.default.yellow("warn")), ...Array.isArray(key) ? [
322
- key
323
- ] : [
324
- messages,
325
- key
326
- ]);
327
- },
328
- risk(key, messages) {
329
- log2(_picocolors.default.bold(_picocolors.default.magenta("risk")), ...Array.isArray(key) ? [
330
- key
331
- ] : [
332
- messages,
333
- key
334
- ]);
335
- }
336
- };
337
- })(log);
338
- (function(exports2) {
339
- Object.defineProperty(exports2, "__esModule", {
340
- value: true
341
- });
342
- Object.defineProperty(exports2, "default", {
343
- enumerable: true,
344
- get: function() {
345
- return _default;
346
- }
347
- });
348
- const _log = /* @__PURE__ */ _interop_require_default(log);
349
- function _interop_require_default(obj) {
350
- return obj && obj.__esModule ? obj : {
351
- default: obj
352
- };
353
- }
354
- function warn({ version, from, to }) {
355
- _log.default.warn(`${from}-color-renamed`, [
356
- `As of Tailwind CSS ${version}, \`${from}\` has been renamed to \`${to}\`.`,
357
- "Update your configuration file to silence this warning."
358
- ]);
359
- }
360
- const _default = {
361
- inherit: "inherit",
362
- current: "currentColor",
363
- transparent: "transparent",
364
- black: "#000",
365
- white: "#fff",
366
- slate: {
367
- 50: "#f8fafc",
368
- 100: "#f1f5f9",
369
- 200: "#e2e8f0",
370
- 300: "#cbd5e1",
371
- 400: "#94a3b8",
372
- 500: "#64748b",
373
- 600: "#475569",
374
- 700: "#334155",
375
- 800: "#1e293b",
376
- 900: "#0f172a",
377
- 950: "#020617"
378
- },
379
- gray: {
380
- 50: "#f9fafb",
381
- 100: "#f3f4f6",
382
- 200: "#e5e7eb",
383
- 300: "#d1d5db",
384
- 400: "#9ca3af",
385
- 500: "#6b7280",
386
- 600: "#4b5563",
387
- 700: "#374151",
388
- 800: "#1f2937",
389
- 900: "#111827",
390
- 950: "#030712"
391
- },
392
- zinc: {
393
- 50: "#fafafa",
394
- 100: "#f4f4f5",
395
- 200: "#e4e4e7",
396
- 300: "#d4d4d8",
397
- 400: "#a1a1aa",
398
- 500: "#71717a",
399
- 600: "#52525b",
400
- 700: "#3f3f46",
401
- 800: "#27272a",
402
- 900: "#18181b",
403
- 950: "#09090b"
404
- },
405
- neutral: {
406
- 50: "#fafafa",
407
- 100: "#f5f5f5",
408
- 200: "#e5e5e5",
409
- 300: "#d4d4d4",
410
- 400: "#a3a3a3",
411
- 500: "#737373",
412
- 600: "#525252",
413
- 700: "#404040",
414
- 800: "#262626",
415
- 900: "#171717",
416
- 950: "#0a0a0a"
417
- },
418
- stone: {
419
- 50: "#fafaf9",
420
- 100: "#f5f5f4",
421
- 200: "#e7e5e4",
422
- 300: "#d6d3d1",
423
- 400: "#a8a29e",
424
- 500: "#78716c",
425
- 600: "#57534e",
426
- 700: "#44403c",
427
- 800: "#292524",
428
- 900: "#1c1917",
429
- 950: "#0c0a09"
430
- },
431
- red: {
432
- 50: "#fef2f2",
433
- 100: "#fee2e2",
434
- 200: "#fecaca",
435
- 300: "#fca5a5",
436
- 400: "#f87171",
437
- 500: "#ef4444",
438
- 600: "#dc2626",
439
- 700: "#b91c1c",
440
- 800: "#991b1b",
441
- 900: "#7f1d1d",
442
- 950: "#450a0a"
443
- },
444
- orange: {
445
- 50: "#fff7ed",
446
- 100: "#ffedd5",
447
- 200: "#fed7aa",
448
- 300: "#fdba74",
449
- 400: "#fb923c",
450
- 500: "#f97316",
451
- 600: "#ea580c",
452
- 700: "#c2410c",
453
- 800: "#9a3412",
454
- 900: "#7c2d12",
455
- 950: "#431407"
456
- },
457
- amber: {
458
- 50: "#fffbeb",
459
- 100: "#fef3c7",
460
- 200: "#fde68a",
461
- 300: "#fcd34d",
462
- 400: "#fbbf24",
463
- 500: "#f59e0b",
464
- 600: "#d97706",
465
- 700: "#b45309",
466
- 800: "#92400e",
467
- 900: "#78350f",
468
- 950: "#451a03"
469
- },
470
- yellow: {
471
- 50: "#fefce8",
472
- 100: "#fef9c3",
473
- 200: "#fef08a",
474
- 300: "#fde047",
475
- 400: "#facc15",
476
- 500: "#eab308",
477
- 600: "#ca8a04",
478
- 700: "#a16207",
479
- 800: "#854d0e",
480
- 900: "#713f12",
481
- 950: "#422006"
482
- },
483
- lime: {
484
- 50: "#f7fee7",
485
- 100: "#ecfccb",
486
- 200: "#d9f99d",
487
- 300: "#bef264",
488
- 400: "#a3e635",
489
- 500: "#84cc16",
490
- 600: "#65a30d",
491
- 700: "#4d7c0f",
492
- 800: "#3f6212",
493
- 900: "#365314",
494
- 950: "#1a2e05"
495
- },
496
- green: {
497
- 50: "#f0fdf4",
498
- 100: "#dcfce7",
499
- 200: "#bbf7d0",
500
- 300: "#86efac",
501
- 400: "#4ade80",
502
- 500: "#22c55e",
503
- 600: "#16a34a",
504
- 700: "#15803d",
505
- 800: "#166534",
506
- 900: "#14532d",
507
- 950: "#052e16"
508
- },
509
- emerald: {
510
- 50: "#ecfdf5",
511
- 100: "#d1fae5",
512
- 200: "#a7f3d0",
513
- 300: "#6ee7b7",
514
- 400: "#34d399",
515
- 500: "#10b981",
516
- 600: "#059669",
517
- 700: "#047857",
518
- 800: "#065f46",
519
- 900: "#064e3b",
520
- 950: "#022c22"
521
- },
522
- teal: {
523
- 50: "#f0fdfa",
524
- 100: "#ccfbf1",
525
- 200: "#99f6e4",
526
- 300: "#5eead4",
527
- 400: "#2dd4bf",
528
- 500: "#14b8a6",
529
- 600: "#0d9488",
530
- 700: "#0f766e",
531
- 800: "#115e59",
532
- 900: "#134e4a",
533
- 950: "#042f2e"
534
- },
535
- cyan: {
536
- 50: "#ecfeff",
537
- 100: "#cffafe",
538
- 200: "#a5f3fc",
539
- 300: "#67e8f9",
540
- 400: "#22d3ee",
541
- 500: "#06b6d4",
542
- 600: "#0891b2",
543
- 700: "#0e7490",
544
- 800: "#155e75",
545
- 900: "#164e63",
546
- 950: "#083344"
547
- },
548
- sky: {
549
- 50: "#f0f9ff",
550
- 100: "#e0f2fe",
551
- 200: "#bae6fd",
552
- 300: "#7dd3fc",
553
- 400: "#38bdf8",
554
- 500: "#0ea5e9",
555
- 600: "#0284c7",
556
- 700: "#0369a1",
557
- 800: "#075985",
558
- 900: "#0c4a6e",
559
- 950: "#082f49"
560
- },
561
- blue: {
562
- 50: "#eff6ff",
563
- 100: "#dbeafe",
564
- 200: "#bfdbfe",
565
- 300: "#93c5fd",
566
- 400: "#60a5fa",
567
- 500: "#3b82f6",
568
- 600: "#2563eb",
569
- 700: "#1d4ed8",
570
- 800: "#1e40af",
571
- 900: "#1e3a8a",
572
- 950: "#172554"
573
- },
574
- indigo: {
575
- 50: "#eef2ff",
576
- 100: "#e0e7ff",
577
- 200: "#c7d2fe",
578
- 300: "#a5b4fc",
579
- 400: "#818cf8",
580
- 500: "#6366f1",
581
- 600: "#4f46e5",
582
- 700: "#4338ca",
583
- 800: "#3730a3",
584
- 900: "#312e81",
585
- 950: "#1e1b4b"
586
- },
587
- violet: {
588
- 50: "#f5f3ff",
589
- 100: "#ede9fe",
590
- 200: "#ddd6fe",
591
- 300: "#c4b5fd",
592
- 400: "#a78bfa",
593
- 500: "#8b5cf6",
594
- 600: "#7c3aed",
595
- 700: "#6d28d9",
596
- 800: "#5b21b6",
597
- 900: "#4c1d95",
598
- 950: "#2e1065"
599
- },
600
- purple: {
601
- 50: "#faf5ff",
602
- 100: "#f3e8ff",
603
- 200: "#e9d5ff",
604
- 300: "#d8b4fe",
605
- 400: "#c084fc",
606
- 500: "#a855f7",
607
- 600: "#9333ea",
608
- 700: "#7e22ce",
609
- 800: "#6b21a8",
610
- 900: "#581c87",
611
- 950: "#3b0764"
612
- },
613
- fuchsia: {
614
- 50: "#fdf4ff",
615
- 100: "#fae8ff",
616
- 200: "#f5d0fe",
617
- 300: "#f0abfc",
618
- 400: "#e879f9",
619
- 500: "#d946ef",
620
- 600: "#c026d3",
621
- 700: "#a21caf",
622
- 800: "#86198f",
623
- 900: "#701a75",
624
- 950: "#4a044e"
625
- },
626
- pink: {
627
- 50: "#fdf2f8",
628
- 100: "#fce7f3",
629
- 200: "#fbcfe8",
630
- 300: "#f9a8d4",
631
- 400: "#f472b6",
632
- 500: "#ec4899",
633
- 600: "#db2777",
634
- 700: "#be185d",
635
- 800: "#9d174d",
636
- 900: "#831843",
637
- 950: "#500724"
638
- },
639
- rose: {
640
- 50: "#fff1f2",
641
- 100: "#ffe4e6",
642
- 200: "#fecdd3",
643
- 300: "#fda4af",
644
- 400: "#fb7185",
645
- 500: "#f43f5e",
646
- 600: "#e11d48",
647
- 700: "#be123c",
648
- 800: "#9f1239",
649
- 900: "#881337",
650
- 950: "#4c0519"
651
- },
652
- get lightBlue() {
653
- warn({
654
- version: "v2.2",
655
- from: "lightBlue",
656
- to: "sky"
657
- });
658
- return this.sky;
659
- },
660
- get warmGray() {
661
- warn({
662
- version: "v3.0",
663
- from: "warmGray",
664
- to: "stone"
665
- });
666
- return this.stone;
667
- },
668
- get trueGray() {
669
- warn({
670
- version: "v3.0",
671
- from: "trueGray",
672
- to: "neutral"
673
- });
674
- return this.neutral;
675
- },
676
- get coolGray() {
677
- warn({
678
- version: "v3.0",
679
- from: "coolGray",
680
- to: "gray"
681
- });
682
- return this.gray;
683
- },
684
- get blueGray() {
685
- warn({
686
- version: "v3.0",
687
- from: "blueGray",
688
- to: "slate"
689
- });
690
- return this.slate;
691
- }
692
- };
693
- })(colors$1);
694
- var defaults = {};
695
- (function(exports2) {
696
- Object.defineProperty(exports2, "__esModule", {
697
- value: true
698
- });
699
- Object.defineProperty(exports2, "defaults", {
700
- enumerable: true,
701
- get: function() {
702
- return defaults2;
703
- }
704
- });
705
- function defaults2(target, ...sources) {
706
- for (let source of sources) {
707
- for (let k in source) {
708
- var _target_hasOwnProperty;
709
- if (!(target === null || target === void 0 ? void 0 : (_target_hasOwnProperty = target.hasOwnProperty) === null || _target_hasOwnProperty === void 0 ? void 0 : _target_hasOwnProperty.call(target, k))) {
710
- target[k] = source[k];
711
- }
712
- }
713
- for (let k of Object.getOwnPropertySymbols(source)) {
714
- var _target_hasOwnProperty1;
715
- if (!(target === null || target === void 0 ? void 0 : (_target_hasOwnProperty1 = target.hasOwnProperty) === null || _target_hasOwnProperty1 === void 0 ? void 0 : _target_hasOwnProperty1.call(target, k))) {
716
- target[k] = source[k];
717
- }
718
- }
719
- }
720
- return target;
721
- }
722
- })(defaults);
723
- var toPath = {};
724
- (function(exports2) {
725
- Object.defineProperty(exports2, "__esModule", {
726
- value: true
727
- });
728
- Object.defineProperty(exports2, "toPath", {
729
- enumerable: true,
730
- get: function() {
731
- return toPath2;
732
- }
733
- });
734
- function toPath2(path) {
735
- if (Array.isArray(path))
736
- return path;
737
- let openBrackets = path.split("[").length - 1;
738
- let closedBrackets = path.split("]").length - 1;
739
- if (openBrackets !== closedBrackets) {
740
- throw new Error(`Path is invalid. Has unbalanced brackets: ${path}`);
741
- }
742
- return path.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean);
743
- }
744
- })(toPath);
745
- var normalizeConfig = {};
746
- var featureFlags = {};
747
- (function(exports2) {
748
- Object.defineProperty(exports2, "__esModule", {
749
- value: true
750
- });
751
- function _export(target, all) {
752
- for (var name in all)
753
- Object.defineProperty(target, name, {
754
- enumerable: true,
755
- get: all[name]
756
- });
757
- }
758
- _export(exports2, {
759
- flagEnabled: function() {
760
- return flagEnabled;
761
- },
762
- issueFlagNotices: function() {
763
- return issueFlagNotices;
764
- },
765
- default: function() {
766
- return _default;
767
- }
768
- });
769
- const _picocolors = /* @__PURE__ */ _interop_require_default(picocolors_browserExports);
770
- const _log = /* @__PURE__ */ _interop_require_default(log);
771
- function _interop_require_default(obj) {
772
- return obj && obj.__esModule ? obj : {
773
- default: obj
774
- };
775
- }
776
- let defaults2 = {
777
- optimizeUniversalDefaults: false,
778
- generalizedModifiers: true,
779
- disableColorOpacityUtilitiesByDefault: false,
780
- relativeContentPathsByDefault: false
781
- };
782
- let featureFlags2 = {
783
- future: [
784
- "hoverOnlyWhenSupported",
785
- "respectDefaultRingColorOpacity",
786
- "disableColorOpacityUtilitiesByDefault",
787
- "relativeContentPathsByDefault"
788
- ],
789
- experimental: [
790
- "optimizeUniversalDefaults",
791
- "generalizedModifiers"
792
- ]
793
- };
794
- function flagEnabled(config2, flag) {
795
- if (featureFlags2.future.includes(flag)) {
796
- var _config_future;
797
- var _config_future_flag, _ref;
798
- 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);
799
- }
800
- if (featureFlags2.experimental.includes(flag)) {
801
- var _config_experimental;
802
- var _config_experimental_flag, _ref1;
803
- 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);
804
- }
805
- return false;
806
- }
807
- function experimentalFlagsEnabled(config2) {
808
- if (config2.experimental === "all") {
809
- return featureFlags2.experimental;
810
- }
811
- var _config_experimental;
812
- 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]);
813
- }
814
- function issueFlagNotices(config2) {
815
- if (process.env.JEST_WORKER_ID !== void 0) {
816
- return;
817
- }
818
- if (experimentalFlagsEnabled(config2).length > 0) {
819
- let changes = experimentalFlagsEnabled(config2).map((s) => _picocolors.default.yellow(s)).join(", ");
820
- _log.default.warn("experimental-flags-enabled", [
821
- `You have enabled experimental features: ${changes}`,
822
- "Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."
823
- ]);
824
- }
825
- }
826
- const _default = featureFlags2;
827
- })(featureFlags);
828
- (function(exports2) {
829
- Object.defineProperty(exports2, "__esModule", {
830
- value: true
831
- });
832
- Object.defineProperty(exports2, "normalizeConfig", {
833
- enumerable: true,
834
- get: function() {
835
- return normalizeConfig2;
836
- }
837
- });
838
- const _featureFlags = featureFlags;
839
- const _log = /* @__PURE__ */ _interop_require_wildcard(log);
840
- function _getRequireWildcardCache(nodeInterop) {
841
- if (typeof WeakMap !== "function")
842
- return null;
843
- var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
844
- var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
845
- return (_getRequireWildcardCache = function(nodeInterop2) {
846
- return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
847
- })(nodeInterop);
848
- }
849
- function _interop_require_wildcard(obj, nodeInterop) {
850
- if (!nodeInterop && obj && obj.__esModule) {
851
- return obj;
852
- }
853
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
854
- return {
855
- default: obj
856
- };
857
- }
858
- var cache = _getRequireWildcardCache(nodeInterop);
859
- if (cache && cache.has(obj)) {
860
- return cache.get(obj);
861
- }
862
- var newObj = {};
863
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
864
- for (var key in obj) {
865
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
866
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
867
- if (desc && (desc.get || desc.set)) {
868
- Object.defineProperty(newObj, key, desc);
869
- } else {
870
- newObj[key] = obj[key];
871
- }
872
- }
873
- }
874
- newObj.default = obj;
875
- if (cache) {
876
- cache.set(obj, newObj);
877
- }
878
- return newObj;
879
- }
880
- function normalizeConfig2(config2) {
881
- let valid = (() => {
882
- if (config2.purge) {
883
- return false;
884
- }
885
- if (!config2.content) {
886
- return false;
887
- }
888
- if (!Array.isArray(config2.content) && !(typeof config2.content === "object" && config2.content !== null)) {
889
- return false;
890
- }
891
- if (Array.isArray(config2.content)) {
892
- return config2.content.every((path) => {
893
- if (typeof path === "string")
894
- return true;
895
- if (typeof (path === null || path === void 0 ? void 0 : path.raw) !== "string")
896
- return false;
897
- if ((path === null || path === void 0 ? void 0 : path.extension) && typeof (path === null || path === void 0 ? void 0 : path.extension) !== "string") {
898
- return false;
899
- }
900
- return true;
901
- });
902
- }
903
- if (typeof config2.content === "object" && config2.content !== null) {
904
- if (Object.keys(config2.content).some((key) => ![
905
- "files",
906
- "relative",
907
- "extract",
908
- "transform"
909
- ].includes(key))) {
910
- return false;
911
- }
912
- if (Array.isArray(config2.content.files)) {
913
- if (!config2.content.files.every((path) => {
914
- if (typeof path === "string")
915
- return true;
916
- if (typeof (path === null || path === void 0 ? void 0 : path.raw) !== "string")
917
- return false;
918
- if ((path === null || path === void 0 ? void 0 : path.extension) && typeof (path === null || path === void 0 ? void 0 : path.extension) !== "string") {
919
- return false;
920
- }
921
- return true;
922
- })) {
923
- return false;
924
- }
925
- if (typeof config2.content.extract === "object") {
926
- for (let value of Object.values(config2.content.extract)) {
927
- if (typeof value !== "function") {
928
- return false;
929
- }
930
- }
931
- } else if (!(config2.content.extract === void 0 || typeof config2.content.extract === "function")) {
932
- return false;
933
- }
934
- if (typeof config2.content.transform === "object") {
935
- for (let value of Object.values(config2.content.transform)) {
936
- if (typeof value !== "function") {
937
- return false;
938
- }
939
- }
940
- } else if (!(config2.content.transform === void 0 || typeof config2.content.transform === "function")) {
941
- return false;
942
- }
943
- if (typeof config2.content.relative !== "boolean" && typeof config2.content.relative !== "undefined") {
944
- return false;
945
- }
946
- }
947
- return true;
948
- }
949
- return false;
950
- })();
951
- if (!valid) {
952
- _log.default.warn("purge-deprecation", [
953
- "The `purge`/`content` options have changed in Tailwind CSS v3.0.",
954
- "Update your configuration file to eliminate this warning.",
955
- "https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"
956
- ]);
957
- }
958
- config2.safelist = (() => {
959
- var _purge_options;
960
- let { content, purge, safelist } = config2;
961
- if (Array.isArray(safelist))
962
- return safelist;
963
- if (Array.isArray(content === null || content === void 0 ? void 0 : content.safelist))
964
- return content.safelist;
965
- if (Array.isArray(purge === null || purge === void 0 ? void 0 : purge.safelist))
966
- return purge.safelist;
967
- if (Array.isArray(purge === null || purge === void 0 ? void 0 : (_purge_options = purge.options) === null || _purge_options === void 0 ? void 0 : _purge_options.safelist))
968
- return purge.options.safelist;
969
- return [];
970
- })();
971
- config2.blocklist = (() => {
972
- let { blocklist } = config2;
973
- if (Array.isArray(blocklist)) {
974
- if (blocklist.every((item) => typeof item === "string")) {
975
- return blocklist;
976
- }
977
- _log.default.warn("blocklist-invalid", [
978
- "The `blocklist` option must be an array of strings.",
979
- "https://tailwindcss.com/docs/content-configuration#discarding-classes"
980
- ]);
981
- }
982
- return [];
983
- })();
984
- if (typeof config2.prefix === "function") {
985
- _log.default.warn("prefix-function", [
986
- "As of Tailwind CSS v3.0, `prefix` cannot be a function.",
987
- "Update `prefix` in your configuration to be a string to eliminate this warning.",
988
- "https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"
989
- ]);
990
- config2.prefix = "";
991
- } else {
992
- var _config_prefix;
993
- config2.prefix = (_config_prefix = config2.prefix) !== null && _config_prefix !== void 0 ? _config_prefix : "";
994
- }
995
- config2.content = {
996
- relative: (() => {
997
- let { content } = config2;
998
- if (content === null || content === void 0 ? void 0 : content.relative) {
999
- return content.relative;
1000
- }
1001
- return (0, _featureFlags.flagEnabled)(config2, "relativeContentPathsByDefault");
1002
- })(),
1003
- files: (() => {
1004
- let { content, purge } = config2;
1005
- if (Array.isArray(purge))
1006
- return purge;
1007
- if (Array.isArray(purge === null || purge === void 0 ? void 0 : purge.content))
1008
- return purge.content;
1009
- if (Array.isArray(content))
1010
- return content;
1011
- if (Array.isArray(content === null || content === void 0 ? void 0 : content.content))
1012
- return content.content;
1013
- if (Array.isArray(content === null || content === void 0 ? void 0 : content.files))
1014
- return content.files;
1015
- return [];
1016
- })(),
1017
- extract: (() => {
1018
- let extract = (() => {
1019
- 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;
1020
- if ((_config_purge = config2.purge) === null || _config_purge === void 0 ? void 0 : _config_purge.extract)
1021
- return config2.purge.extract;
1022
- if ((_config_content = config2.content) === null || _config_content === void 0 ? void 0 : _config_content.extract)
1023
- return config2.content.extract;
1024
- 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)
1025
- return config2.purge.extract.DEFAULT;
1026
- 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)
1027
- return config2.content.extract.DEFAULT;
1028
- 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)
1029
- return config2.purge.options.extractors;
1030
- 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)
1031
- return config2.content.options.extractors;
1032
- return {};
1033
- })();
1034
- let extractors = {};
1035
- let defaultExtractor = (() => {
1036
- var _config_purge, _config_purge_options, _config_content, _config_content_options;
1037
- 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) {
1038
- return config2.purge.options.defaultExtractor;
1039
- }
1040
- 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) {
1041
- return config2.content.options.defaultExtractor;
1042
- }
1043
- return void 0;
1044
- })();
1045
- if (defaultExtractor !== void 0) {
1046
- extractors.DEFAULT = defaultExtractor;
1047
- }
1048
- if (typeof extract === "function") {
1049
- extractors.DEFAULT = extract;
1050
- } else if (Array.isArray(extract)) {
1051
- for (let { extensions, extractor } of extract !== null && extract !== void 0 ? extract : []) {
1052
- for (let extension of extensions) {
1053
- extractors[extension] = extractor;
1054
- }
1055
- }
1056
- } else if (typeof extract === "object" && extract !== null) {
1057
- Object.assign(extractors, extract);
1058
- }
1059
- return extractors;
1060
- })(),
1061
- transform: (() => {
1062
- let transform = (() => {
1063
- var _config_purge, _config_content, _config_purge1, _config_purge_transform, _config_content1, _config_content_transform;
1064
- if ((_config_purge = config2.purge) === null || _config_purge === void 0 ? void 0 : _config_purge.transform)
1065
- return config2.purge.transform;
1066
- if ((_config_content = config2.content) === null || _config_content === void 0 ? void 0 : _config_content.transform)
1067
- return config2.content.transform;
1068
- 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)
1069
- return config2.purge.transform.DEFAULT;
1070
- 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)
1071
- return config2.content.transform.DEFAULT;
1072
- return {};
1073
- })();
1074
- let transformers = {};
1075
- if (typeof transform === "function") {
1076
- transformers.DEFAULT = transform;
1077
- }
1078
- if (typeof transform === "object" && transform !== null) {
1079
- Object.assign(transformers, transform);
1080
- }
1081
- return transformers;
1082
- })()
1083
- };
1084
- for (let file of config2.content.files) {
1085
- if (typeof file === "string" && /{([^,]*?)}/g.test(file)) {
1086
- _log.default.warn("invalid-glob-braces", [
1087
- `The glob pattern ${(0, _log.dim)(file)} in your Tailwind CSS configuration is invalid.`,
1088
- `Update it to ${(0, _log.dim)(file.replace(/{([^,]*?)}/g, "$1"))} to silence this warning.`
1089
- ]);
1090
- break;
1091
- }
1092
- }
1093
- return config2;
1094
- }
1095
- })(normalizeConfig);
1096
- var isPlainObject = {};
1097
- (function(exports2) {
1098
- Object.defineProperty(exports2, "__esModule", {
1099
- value: true
1100
- });
1101
- Object.defineProperty(exports2, "default", {
1102
- enumerable: true,
1103
- get: function() {
1104
- return isPlainObject2;
1105
- }
1106
- });
1107
- function isPlainObject2(value) {
1108
- if (Object.prototype.toString.call(value) !== "[object Object]") {
1109
- return false;
1110
- }
1111
- const prototype = Object.getPrototypeOf(value);
1112
- return prototype === null || Object.getPrototypeOf(prototype) === null;
1113
- }
1114
- })(isPlainObject);
1115
- var cloneDeep = {};
1116
- (function(exports2) {
1117
- Object.defineProperty(exports2, "__esModule", {
1118
- value: true
1119
- });
1120
- Object.defineProperty(exports2, "cloneDeep", {
1121
- enumerable: true,
1122
- get: function() {
1123
- return cloneDeep2;
1124
- }
1125
- });
1126
- function cloneDeep2(value) {
1127
- if (Array.isArray(value)) {
1128
- return value.map((child) => cloneDeep2(child));
1129
- }
1130
- if (typeof value === "object" && value !== null) {
1131
- return Object.fromEntries(Object.entries(value).map(([k, v]) => [
1132
- k,
1133
- cloneDeep2(v)
1134
- ]));
1135
- }
1136
- return value;
1137
- }
1138
- })(cloneDeep);
1139
- var pluginUtils = {};
1140
- var escapeCommas = {};
1141
- (function(exports2) {
1142
- Object.defineProperty(exports2, "__esModule", {
1143
- value: true
1144
- });
1145
- Object.defineProperty(exports2, "default", {
1146
- enumerable: true,
1147
- get: function() {
1148
- return escapeCommas2;
1149
- }
1150
- });
1151
- function escapeCommas2(className) {
1152
- return className.replace(/\\,/g, "\\2c ");
1153
- }
1154
- })(escapeCommas);
1155
- var withAlphaVariable = {};
1156
- var color = {};
1157
- var colorNames = {};
1158
- (function(exports2) {
1159
- Object.defineProperty(exports2, "__esModule", {
1160
- value: true
1161
- });
1162
- Object.defineProperty(exports2, "default", {
1163
- enumerable: true,
1164
- get: function() {
1165
- return _default;
1166
- }
1167
- });
1168
- const _default = {
1169
- aliceblue: [
1170
- 240,
1171
- 248,
1172
- 255
1173
- ],
1174
- antiquewhite: [
1175
- 250,
1176
- 235,
1177
- 215
1178
- ],
1179
- aqua: [
1180
- 0,
1181
- 255,
1182
- 255
1183
- ],
1184
- aquamarine: [
1185
- 127,
1186
- 255,
1187
- 212
1188
- ],
1189
- azure: [
1190
- 240,
1191
- 255,
1192
- 255
1193
- ],
1194
- beige: [
1195
- 245,
1196
- 245,
1197
- 220
1198
- ],
1199
- bisque: [
1200
- 255,
1201
- 228,
1202
- 196
1203
- ],
1204
- black: [
1205
- 0,
1206
- 0,
1207
- 0
1208
- ],
1209
- blanchedalmond: [
1210
- 255,
1211
- 235,
1212
- 205
1213
- ],
1214
- blue: [
1215
- 0,
1216
- 0,
1217
- 255
1218
- ],
1219
- blueviolet: [
1220
- 138,
1221
- 43,
1222
- 226
1223
- ],
1224
- brown: [
1225
- 165,
1226
- 42,
1227
- 42
1228
- ],
1229
- burlywood: [
1230
- 222,
1231
- 184,
1232
- 135
1233
- ],
1234
- cadetblue: [
1235
- 95,
1236
- 158,
1237
- 160
1238
- ],
1239
- chartreuse: [
1240
- 127,
1241
- 255,
1242
- 0
1243
- ],
1244
- chocolate: [
1245
- 210,
1246
- 105,
1247
- 30
1248
- ],
1249
- coral: [
1250
- 255,
1251
- 127,
1252
- 80
1253
- ],
1254
- cornflowerblue: [
1255
- 100,
1256
- 149,
1257
- 237
1258
- ],
1259
- cornsilk: [
1260
- 255,
1261
- 248,
1262
- 220
1263
- ],
1264
- crimson: [
1265
- 220,
1266
- 20,
1267
- 60
1268
- ],
1269
- cyan: [
1270
- 0,
1271
- 255,
1272
- 255
1273
- ],
1274
- darkblue: [
1275
- 0,
1276
- 0,
1277
- 139
1278
- ],
1279
- darkcyan: [
1280
- 0,
1281
- 139,
1282
- 139
1283
- ],
1284
- darkgoldenrod: [
1285
- 184,
1286
- 134,
1287
- 11
1288
- ],
1289
- darkgray: [
1290
- 169,
1291
- 169,
1292
- 169
1293
- ],
1294
- darkgreen: [
1295
- 0,
1296
- 100,
1297
- 0
1298
- ],
1299
- darkgrey: [
1300
- 169,
1301
- 169,
1302
- 169
1303
- ],
1304
- darkkhaki: [
1305
- 189,
1306
- 183,
1307
- 107
1308
- ],
1309
- darkmagenta: [
1310
- 139,
1311
- 0,
1312
- 139
1313
- ],
1314
- darkolivegreen: [
1315
- 85,
1316
- 107,
1317
- 47
1318
- ],
1319
- darkorange: [
1320
- 255,
1321
- 140,
1322
- 0
1323
- ],
1324
- darkorchid: [
1325
- 153,
1326
- 50,
1327
- 204
1328
- ],
1329
- darkred: [
1330
- 139,
1331
- 0,
1332
- 0
1333
- ],
1334
- darksalmon: [
1335
- 233,
1336
- 150,
1337
- 122
1338
- ],
1339
- darkseagreen: [
1340
- 143,
1341
- 188,
1342
- 143
1343
- ],
1344
- darkslateblue: [
1345
- 72,
1346
- 61,
1347
- 139
1348
- ],
1349
- darkslategray: [
1350
- 47,
1351
- 79,
1352
- 79
1353
- ],
1354
- darkslategrey: [
1355
- 47,
1356
- 79,
1357
- 79
1358
- ],
1359
- darkturquoise: [
1360
- 0,
1361
- 206,
1362
- 209
1363
- ],
1364
- darkviolet: [
1365
- 148,
1366
- 0,
1367
- 211
1368
- ],
1369
- deeppink: [
1370
- 255,
1371
- 20,
1372
- 147
1373
- ],
1374
- deepskyblue: [
1375
- 0,
1376
- 191,
1377
- 255
1378
- ],
1379
- dimgray: [
1380
- 105,
1381
- 105,
1382
- 105
1383
- ],
1384
- dimgrey: [
1385
- 105,
1386
- 105,
1387
- 105
1388
- ],
1389
- dodgerblue: [
1390
- 30,
1391
- 144,
1392
- 255
1393
- ],
1394
- firebrick: [
1395
- 178,
1396
- 34,
1397
- 34
1398
- ],
1399
- floralwhite: [
1400
- 255,
1401
- 250,
1402
- 240
1403
- ],
1404
- forestgreen: [
1405
- 34,
1406
- 139,
1407
- 34
1408
- ],
1409
- fuchsia: [
1410
- 255,
1411
- 0,
1412
- 255
1413
- ],
1414
- gainsboro: [
1415
- 220,
1416
- 220,
1417
- 220
1418
- ],
1419
- ghostwhite: [
1420
- 248,
1421
- 248,
1422
- 255
1423
- ],
1424
- gold: [
1425
- 255,
1426
- 215,
1427
- 0
1428
- ],
1429
- goldenrod: [
1430
- 218,
1431
- 165,
1432
- 32
1433
- ],
1434
- gray: [
1435
- 128,
1436
- 128,
1437
- 128
1438
- ],
1439
- green: [
1440
- 0,
1441
- 128,
1442
- 0
1443
- ],
1444
- greenyellow: [
1445
- 173,
1446
- 255,
1447
- 47
1448
- ],
1449
- grey: [
1450
- 128,
1451
- 128,
1452
- 128
1453
- ],
1454
- honeydew: [
1455
- 240,
1456
- 255,
1457
- 240
1458
- ],
1459
- hotpink: [
1460
- 255,
1461
- 105,
1462
- 180
1463
- ],
1464
- indianred: [
1465
- 205,
1466
- 92,
1467
- 92
1468
- ],
1469
- indigo: [
1470
- 75,
1471
- 0,
1472
- 130
1473
- ],
1474
- ivory: [
1475
- 255,
1476
- 255,
1477
- 240
1478
- ],
1479
- khaki: [
1480
- 240,
1481
- 230,
1482
- 140
1483
- ],
1484
- lavender: [
1485
- 230,
1486
- 230,
1487
- 250
1488
- ],
1489
- lavenderblush: [
1490
- 255,
1491
- 240,
1492
- 245
1493
- ],
1494
- lawngreen: [
1495
- 124,
1496
- 252,
1497
- 0
1498
- ],
1499
- lemonchiffon: [
1500
- 255,
1501
- 250,
1502
- 205
1503
- ],
1504
- lightblue: [
1505
- 173,
1506
- 216,
1507
- 230
1508
- ],
1509
- lightcoral: [
1510
- 240,
1511
- 128,
1512
- 128
1513
- ],
1514
- lightcyan: [
1515
- 224,
1516
- 255,
1517
- 255
1518
- ],
1519
- lightgoldenrodyellow: [
1520
- 250,
1521
- 250,
1522
- 210
1523
- ],
1524
- lightgray: [
1525
- 211,
1526
- 211,
1527
- 211
1528
- ],
1529
- lightgreen: [
1530
- 144,
1531
- 238,
1532
- 144
1533
- ],
1534
- lightgrey: [
1535
- 211,
1536
- 211,
1537
- 211
1538
- ],
1539
- lightpink: [
1540
- 255,
1541
- 182,
1542
- 193
1543
- ],
1544
- lightsalmon: [
1545
- 255,
1546
- 160,
1547
- 122
1548
- ],
1549
- lightseagreen: [
1550
- 32,
1551
- 178,
1552
- 170
1553
- ],
1554
- lightskyblue: [
1555
- 135,
1556
- 206,
1557
- 250
1558
- ],
1559
- lightslategray: [
1560
- 119,
1561
- 136,
1562
- 153
1563
- ],
1564
- lightslategrey: [
1565
- 119,
1566
- 136,
1567
- 153
1568
- ],
1569
- lightsteelblue: [
1570
- 176,
1571
- 196,
1572
- 222
1573
- ],
1574
- lightyellow: [
1575
- 255,
1576
- 255,
1577
- 224
1578
- ],
1579
- lime: [
1580
- 0,
1581
- 255,
1582
- 0
1583
- ],
1584
- limegreen: [
1585
- 50,
1586
- 205,
1587
- 50
1588
- ],
1589
- linen: [
1590
- 250,
1591
- 240,
1592
- 230
1593
- ],
1594
- magenta: [
1595
- 255,
1596
- 0,
1597
- 255
1598
- ],
1599
- maroon: [
1600
- 128,
1601
- 0,
1602
- 0
1603
- ],
1604
- mediumaquamarine: [
1605
- 102,
1606
- 205,
1607
- 170
1608
- ],
1609
- mediumblue: [
1610
- 0,
1611
- 0,
1612
- 205
1613
- ],
1614
- mediumorchid: [
1615
- 186,
1616
- 85,
1617
- 211
1618
- ],
1619
- mediumpurple: [
1620
- 147,
1621
- 112,
1622
- 219
1623
- ],
1624
- mediumseagreen: [
1625
- 60,
1626
- 179,
1627
- 113
1628
- ],
1629
- mediumslateblue: [
1630
- 123,
1631
- 104,
1632
- 238
1633
- ],
1634
- mediumspringgreen: [
1635
- 0,
1636
- 250,
1637
- 154
1638
- ],
1639
- mediumturquoise: [
1640
- 72,
1641
- 209,
1642
- 204
1643
- ],
1644
- mediumvioletred: [
1645
- 199,
1646
- 21,
1647
- 133
1648
- ],
1649
- midnightblue: [
1650
- 25,
1651
- 25,
1652
- 112
1653
- ],
1654
- mintcream: [
1655
- 245,
1656
- 255,
1657
- 250
1658
- ],
1659
- mistyrose: [
1660
- 255,
1661
- 228,
1662
- 225
1663
- ],
1664
- moccasin: [
1665
- 255,
1666
- 228,
1667
- 181
1668
- ],
1669
- navajowhite: [
1670
- 255,
1671
- 222,
1672
- 173
1673
- ],
1674
- navy: [
1675
- 0,
1676
- 0,
1677
- 128
1678
- ],
1679
- oldlace: [
1680
- 253,
1681
- 245,
1682
- 230
1683
- ],
1684
- olive: [
1685
- 128,
1686
- 128,
1687
- 0
1688
- ],
1689
- olivedrab: [
1690
- 107,
1691
- 142,
1692
- 35
1693
- ],
1694
- orange: [
1695
- 255,
1696
- 165,
1697
- 0
1698
- ],
1699
- orangered: [
1700
- 255,
1701
- 69,
1702
- 0
1703
- ],
1704
- orchid: [
1705
- 218,
1706
- 112,
1707
- 214
1708
- ],
1709
- palegoldenrod: [
1710
- 238,
1711
- 232,
1712
- 170
1713
- ],
1714
- palegreen: [
1715
- 152,
1716
- 251,
1717
- 152
1718
- ],
1719
- paleturquoise: [
1720
- 175,
1721
- 238,
1722
- 238
1723
- ],
1724
- palevioletred: [
1725
- 219,
1726
- 112,
1727
- 147
1728
- ],
1729
- papayawhip: [
1730
- 255,
1731
- 239,
1732
- 213
1733
- ],
1734
- peachpuff: [
1735
- 255,
1736
- 218,
1737
- 185
1738
- ],
1739
- peru: [
1740
- 205,
1741
- 133,
1742
- 63
1743
- ],
1744
- pink: [
1745
- 255,
1746
- 192,
1747
- 203
1748
- ],
1749
- plum: [
1750
- 221,
1751
- 160,
1752
- 221
1753
- ],
1754
- powderblue: [
1755
- 176,
1756
- 224,
1757
- 230
1758
- ],
1759
- purple: [
1760
- 128,
1761
- 0,
1762
- 128
1763
- ],
1764
- rebeccapurple: [
1765
- 102,
1766
- 51,
1767
- 153
1768
- ],
1769
- red: [
1770
- 255,
1771
- 0,
1772
- 0
1773
- ],
1774
- rosybrown: [
1775
- 188,
1776
- 143,
1777
- 143
1778
- ],
1779
- royalblue: [
1780
- 65,
1781
- 105,
1782
- 225
1783
- ],
1784
- saddlebrown: [
1785
- 139,
1786
- 69,
1787
- 19
1788
- ],
1789
- salmon: [
1790
- 250,
1791
- 128,
1792
- 114
1793
- ],
1794
- sandybrown: [
1795
- 244,
1796
- 164,
1797
- 96
1798
- ],
1799
- seagreen: [
1800
- 46,
1801
- 139,
1802
- 87
1803
- ],
1804
- seashell: [
1805
- 255,
1806
- 245,
1807
- 238
1808
- ],
1809
- sienna: [
1810
- 160,
1811
- 82,
1812
- 45
1813
- ],
1814
- silver: [
1815
- 192,
1816
- 192,
1817
- 192
1818
- ],
1819
- skyblue: [
1820
- 135,
1821
- 206,
1822
- 235
1823
- ],
1824
- slateblue: [
1825
- 106,
1826
- 90,
1827
- 205
1828
- ],
1829
- slategray: [
1830
- 112,
1831
- 128,
1832
- 144
1833
- ],
1834
- slategrey: [
1835
- 112,
1836
- 128,
1837
- 144
1838
- ],
1839
- snow: [
1840
- 255,
1841
- 250,
1842
- 250
1843
- ],
1844
- springgreen: [
1845
- 0,
1846
- 255,
1847
- 127
1848
- ],
1849
- steelblue: [
1850
- 70,
1851
- 130,
1852
- 180
1853
- ],
1854
- tan: [
1855
- 210,
1856
- 180,
1857
- 140
1858
- ],
1859
- teal: [
1860
- 0,
1861
- 128,
1862
- 128
1863
- ],
1864
- thistle: [
1865
- 216,
1866
- 191,
1867
- 216
1868
- ],
1869
- tomato: [
1870
- 255,
1871
- 99,
1872
- 71
1873
- ],
1874
- turquoise: [
1875
- 64,
1876
- 224,
1877
- 208
1878
- ],
1879
- violet: [
1880
- 238,
1881
- 130,
1882
- 238
1883
- ],
1884
- wheat: [
1885
- 245,
1886
- 222,
1887
- 179
1888
- ],
1889
- white: [
1890
- 255,
1891
- 255,
1892
- 255
1893
- ],
1894
- whitesmoke: [
1895
- 245,
1896
- 245,
1897
- 245
1898
- ],
1899
- yellow: [
1900
- 255,
1901
- 255,
1902
- 0
1903
- ],
1904
- yellowgreen: [
1905
- 154,
1906
- 205,
1907
- 50
1908
- ]
1909
- };
1910
- })(colorNames);
1911
- (function(exports2) {
1912
- Object.defineProperty(exports2, "__esModule", {
1913
- value: true
1914
- });
1915
- function _export(target, all) {
1916
- for (var name in all)
1917
- Object.defineProperty(target, name, {
1918
- enumerable: true,
1919
- get: all[name]
1920
- });
1921
- }
1922
- _export(exports2, {
1923
- parseColor: function() {
1924
- return parseColor;
1925
- },
1926
- formatColor: function() {
1927
- return formatColor;
1928
- }
1929
- });
1930
- const _colorNames = /* @__PURE__ */ _interop_require_default(colorNames);
1931
- function _interop_require_default(obj) {
1932
- return obj && obj.__esModule ? obj : {
1933
- default: obj
1934
- };
1935
- }
1936
- let HEX = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;
1937
- let SHORT_HEX = /^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;
1938
- let VALUE = /(?:\d+|\d*\.\d+)%?/;
1939
- let SEP = /(?:\s*,\s*|\s+)/;
1940
- let ALPHA_SEP = /\s*[,/]\s*/;
1941
- let CUSTOM_PROPERTY = /var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/;
1942
- 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*\\)$`);
1943
- 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*\\)$`);
1944
- function parseColor(value, { loose = false } = {}) {
1945
- var _match_, _match__toString;
1946
- if (typeof value !== "string") {
1947
- return null;
1948
- }
1949
- value = value.trim();
1950
- if (value === "transparent") {
1951
- return {
1952
- mode: "rgb",
1953
- color: [
1954
- "0",
1955
- "0",
1956
- "0"
1957
- ],
1958
- alpha: "0"
1959
- };
1960
- }
1961
- if (value in _colorNames.default) {
1962
- return {
1963
- mode: "rgb",
1964
- color: _colorNames.default[value].map((v) => v.toString())
1965
- };
1966
- }
1967
- let hex = value.replace(SHORT_HEX, (_, r, g, b, a) => [
1968
- "#",
1969
- r,
1970
- r,
1971
- g,
1972
- g,
1973
- b,
1974
- b,
1975
- a ? a + a : ""
1976
- ].join("")).match(HEX);
1977
- if (hex !== null) {
1978
- return {
1979
- mode: "rgb",
1980
- color: [
1981
- parseInt(hex[1], 16),
1982
- parseInt(hex[2], 16),
1983
- parseInt(hex[3], 16)
1984
- ].map((v) => v.toString()),
1985
- alpha: hex[4] ? (parseInt(hex[4], 16) / 255).toString() : void 0
1986
- };
1987
- }
1988
- var _value_match;
1989
- let match = (_value_match = value.match(RGB)) !== null && _value_match !== void 0 ? _value_match : value.match(HSL);
1990
- if (match === null) {
1991
- return null;
1992
- }
1993
- let color2 = [
1994
- match[2],
1995
- match[3],
1996
- match[4]
1997
- ].filter(Boolean).map((v) => v.toString());
1998
- if (color2.length === 2 && color2[0].startsWith("var(")) {
1999
- return {
2000
- mode: match[1],
2001
- color: [
2002
- color2[0]
2003
- ],
2004
- alpha: color2[1]
2005
- };
2006
- }
2007
- if (!loose && color2.length !== 3) {
2008
- return null;
2009
- }
2010
- if (color2.length < 3 && !color2.some((part) => /^var\(.*?\)$/.test(part))) {
2011
- return null;
2012
- }
2013
- return {
2014
- mode: match[1],
2015
- color: color2,
2016
- 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_)
2017
- };
2018
- }
2019
- function formatColor({ mode, color: color2, alpha }) {
2020
- let hasAlpha = alpha !== void 0;
2021
- if (mode === "rgba" || mode === "hsla") {
2022
- return `${mode}(${color2.join(", ")}${hasAlpha ? `, ${alpha}` : ""})`;
2023
- }
2024
- return `${mode}(${color2.join(" ")}${hasAlpha ? ` / ${alpha}` : ""})`;
2025
- }
2026
- })(color);
2027
- (function(exports2) {
2028
- Object.defineProperty(exports2, "__esModule", {
2029
- value: true
2030
- });
2031
- function _export(target, all) {
2032
- for (var name in all)
2033
- Object.defineProperty(target, name, {
2034
- enumerable: true,
2035
- get: all[name]
2036
- });
2037
- }
2038
- _export(exports2, {
2039
- withAlphaValue: function() {
2040
- return withAlphaValue;
2041
- },
2042
- default: function() {
2043
- return withAlphaVariable2;
2044
- }
2045
- });
2046
- const _color = color;
2047
- function withAlphaValue(color2, alphaValue, defaultValue) {
2048
- if (typeof color2 === "function") {
2049
- return color2({
2050
- opacityValue: alphaValue
2051
- });
2052
- }
2053
- let parsed = (0, _color.parseColor)(color2, {
2054
- loose: true
2055
- });
2056
- if (parsed === null) {
2057
- return defaultValue;
2058
- }
2059
- return (0, _color.formatColor)({
2060
- ...parsed,
2061
- alpha: alphaValue
2062
- });
2063
- }
2064
- function withAlphaVariable2({ color: color2, property, variable }) {
2065
- let properties = [].concat(property);
2066
- if (typeof color2 === "function") {
2067
- return {
2068
- [variable]: "1",
2069
- ...Object.fromEntries(properties.map((p) => {
2070
- return [
2071
- p,
2072
- color2({
2073
- opacityVariable: variable,
2074
- opacityValue: `var(${variable})`
2075
- })
2076
- ];
2077
- }))
2078
- };
2079
- }
2080
- const parsed = (0, _color.parseColor)(color2);
2081
- if (parsed === null) {
2082
- return Object.fromEntries(properties.map((p) => [
2083
- p,
2084
- color2
2085
- ]));
2086
- }
2087
- if (parsed.alpha !== void 0) {
2088
- return Object.fromEntries(properties.map((p) => [
2089
- p,
2090
- color2
2091
- ]));
2092
- }
2093
- return {
2094
- [variable]: "1",
2095
- ...Object.fromEntries(properties.map((p) => {
2096
- return [
2097
- p,
2098
- (0, _color.formatColor)({
2099
- ...parsed,
2100
- alpha: `var(${variable})`
2101
- })
2102
- ];
2103
- }))
2104
- };
2105
- }
2106
- })(withAlphaVariable);
2107
- var dataTypes = {};
2108
- var parseBoxShadowValue = {};
2109
- var splitAtTopLevelOnly = {};
2110
- (function(exports2) {
2111
- Object.defineProperty(exports2, "__esModule", {
2112
- value: true
2113
- });
2114
- Object.defineProperty(exports2, "splitAtTopLevelOnly", {
2115
- enumerable: true,
2116
- get: function() {
2117
- return splitAtTopLevelOnly2;
2118
- }
2119
- });
2120
- function splitAtTopLevelOnly2(input, separator) {
2121
- let stack = [];
2122
- let parts = [];
2123
- let lastPos = 0;
2124
- let isEscaped = false;
2125
- for (let idx = 0; idx < input.length; idx++) {
2126
- let char = input[idx];
2127
- if (stack.length === 0 && char === separator[0] && !isEscaped) {
2128
- if (separator.length === 1 || input.slice(idx, idx + separator.length) === separator) {
2129
- parts.push(input.slice(lastPos, idx));
2130
- lastPos = idx + separator.length;
2131
- }
2132
- }
2133
- if (isEscaped) {
2134
- isEscaped = false;
2135
- } else if (char === "\\") {
2136
- isEscaped = true;
2137
- }
2138
- if (char === "(" || char === "[" || char === "{") {
2139
- stack.push(char);
2140
- } else if (char === ")" && stack[stack.length - 1] === "(" || char === "]" && stack[stack.length - 1] === "[" || char === "}" && stack[stack.length - 1] === "{") {
2141
- stack.pop();
2142
- }
2143
- }
2144
- parts.push(input.slice(lastPos));
2145
- return parts;
2146
- }
2147
- })(splitAtTopLevelOnly);
2148
- (function(exports2) {
2149
- Object.defineProperty(exports2, "__esModule", {
2150
- value: true
2151
- });
2152
- function _export(target, all) {
2153
- for (var name in all)
2154
- Object.defineProperty(target, name, {
2155
- enumerable: true,
2156
- get: all[name]
2157
- });
2158
- }
2159
- _export(exports2, {
2160
- parseBoxShadowValue: function() {
2161
- return parseBoxShadowValue2;
2162
- },
2163
- formatBoxShadowValue: function() {
2164
- return formatBoxShadowValue;
2165
- }
2166
- });
2167
- const _splitAtTopLevelOnly = splitAtTopLevelOnly;
2168
- let KEYWORDS = /* @__PURE__ */ new Set([
2169
- "inset",
2170
- "inherit",
2171
- "initial",
2172
- "revert",
2173
- "unset"
2174
- ]);
2175
- let SPACE = /\ +(?![^(]*\))/g;
2176
- let LENGTH = /^-?(\d+|\.\d+)(.*?)$/g;
2177
- function parseBoxShadowValue2(input) {
2178
- let shadows = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(input, ",");
2179
- return shadows.map((shadow) => {
2180
- let value = shadow.trim();
2181
- let result = {
2182
- raw: value
2183
- };
2184
- let parts = value.split(SPACE);
2185
- let seen = /* @__PURE__ */ new Set();
2186
- for (let part of parts) {
2187
- LENGTH.lastIndex = 0;
2188
- if (!seen.has("KEYWORD") && KEYWORDS.has(part)) {
2189
- result.keyword = part;
2190
- seen.add("KEYWORD");
2191
- } else if (LENGTH.test(part)) {
2192
- if (!seen.has("X")) {
2193
- result.x = part;
2194
- seen.add("X");
2195
- } else if (!seen.has("Y")) {
2196
- result.y = part;
2197
- seen.add("Y");
2198
- } else if (!seen.has("BLUR")) {
2199
- result.blur = part;
2200
- seen.add("BLUR");
2201
- } else if (!seen.has("SPREAD")) {
2202
- result.spread = part;
2203
- seen.add("SPREAD");
2204
- }
2205
- } else {
2206
- if (!result.color) {
2207
- result.color = part;
2208
- } else {
2209
- if (!result.unknown)
2210
- result.unknown = [];
2211
- result.unknown.push(part);
2212
- }
2213
- }
2214
- }
2215
- result.valid = result.x !== void 0 && result.y !== void 0;
2216
- return result;
2217
- });
2218
- }
2219
- function formatBoxShadowValue(shadows) {
2220
- return shadows.map((shadow) => {
2221
- if (!shadow.valid) {
2222
- return shadow.raw;
2223
- }
2224
- return [
2225
- shadow.keyword,
2226
- shadow.x,
2227
- shadow.y,
2228
- shadow.blur,
2229
- shadow.spread,
2230
- shadow.color
2231
- ].filter(Boolean).join(" ");
2232
- }).join(", ");
2233
- }
2234
- })(parseBoxShadowValue);
2235
- (function(exports2) {
2236
- Object.defineProperty(exports2, "__esModule", {
2237
- value: true
2238
- });
2239
- function _export(target, all) {
2240
- for (var name in all)
2241
- Object.defineProperty(target, name, {
2242
- enumerable: true,
2243
- get: all[name]
2244
- });
2245
- }
2246
- _export(exports2, {
2247
- normalize: function() {
2248
- return normalize;
2249
- },
2250
- url: function() {
2251
- return url;
2252
- },
2253
- number: function() {
2254
- return number;
2255
- },
2256
- percentage: function() {
2257
- return percentage;
2258
- },
2259
- length: function() {
2260
- return length;
2261
- },
2262
- lineWidth: function() {
2263
- return lineWidth;
2264
- },
2265
- shadow: function() {
2266
- return shadow;
2267
- },
2268
- color: function() {
2269
- return color$1;
2270
- },
2271
- image: function() {
2272
- return image;
2273
- },
2274
- gradient: function() {
2275
- return gradient;
2276
- },
2277
- position: function() {
2278
- return position;
2279
- },
2280
- familyName: function() {
2281
- return familyName;
2282
- },
2283
- genericName: function() {
2284
- return genericName;
2285
- },
2286
- absoluteSize: function() {
2287
- return absoluteSize;
2288
- },
2289
- relativeSize: function() {
2290
- return relativeSize;
2291
- }
2292
- });
2293
- const _color = color;
2294
- const _parseBoxShadowValue = parseBoxShadowValue;
2295
- const _splitAtTopLevelOnly = splitAtTopLevelOnly;
2296
- let cssFunctions = [
2297
- "min",
2298
- "max",
2299
- "clamp",
2300
- "calc"
2301
- ];
2302
- function isCSSFunction(value) {
2303
- return cssFunctions.some((fn) => new RegExp(`^${fn}\\(.*\\)`).test(value));
2304
- }
2305
- const AUTO_VAR_INJECTION_EXCEPTIONS = /* @__PURE__ */ new Set([
2306
- // Concrete properties
2307
- "scroll-timeline-name",
2308
- "timeline-scope",
2309
- "view-timeline-name",
2310
- "font-palette",
2311
- // Shorthand properties
2312
- "scroll-timeline",
2313
- "animation-timeline",
2314
- "view-timeline"
2315
- ]);
2316
- function normalize(value, context = null, isRoot = true) {
2317
- let isVarException = context && AUTO_VAR_INJECTION_EXCEPTIONS.has(context.property);
2318
- if (value.startsWith("--") && !isVarException) {
2319
- return `var(${value})`;
2320
- }
2321
- if (value.includes("url(")) {
2322
- return value.split(/(url\(.*?\))/g).filter(Boolean).map((part) => {
2323
- if (/^url\(.*?\)$/.test(part)) {
2324
- return part;
2325
- }
2326
- return normalize(part, context, false);
2327
- }).join("");
2328
- }
2329
- value = value.replace(/([^\\])_+/g, (fullMatch, characterBefore) => characterBefore + " ".repeat(fullMatch.length - 1)).replace(/^_/g, " ").replace(/\\_/g, "_");
2330
- if (isRoot) {
2331
- value = value.trim();
2332
- }
2333
- value = normalizeMathOperatorSpacing(value);
2334
- return value;
2335
- }
2336
- function normalizeMathOperatorSpacing(value) {
2337
- let preventFormattingInFunctions = [
2338
- "theme"
2339
- ];
2340
- let preventFormattingKeywords = [
2341
- "min-content",
2342
- "max-content",
2343
- "fit-content",
2344
- // Env
2345
- "safe-area-inset-top",
2346
- "safe-area-inset-right",
2347
- "safe-area-inset-bottom",
2348
- "safe-area-inset-left",
2349
- "titlebar-area-x",
2350
- "titlebar-area-y",
2351
- "titlebar-area-width",
2352
- "titlebar-area-height",
2353
- "keyboard-inset-top",
2354
- "keyboard-inset-right",
2355
- "keyboard-inset-bottom",
2356
- "keyboard-inset-left",
2357
- "keyboard-inset-width",
2358
- "keyboard-inset-height",
2359
- "radial-gradient",
2360
- "linear-gradient",
2361
- "conic-gradient",
2362
- "repeating-radial-gradient",
2363
- "repeating-linear-gradient",
2364
- "repeating-conic-gradient"
2365
- ];
2366
- return value.replace(/(calc|min|max|clamp)\(.+\)/g, (match) => {
2367
- let result = "";
2368
- function lastChar() {
2369
- let char = result.trimEnd();
2370
- return char[char.length - 1];
2371
- }
2372
- for (let i = 0; i < match.length; i++) {
2373
- let peek = function(word) {
2374
- return word.split("").every((char2, j) => match[i + j] === char2);
2375
- }, consumeUntil = function(chars) {
2376
- let minIndex = Infinity;
2377
- for (let char2 of chars) {
2378
- let index = match.indexOf(char2, i);
2379
- if (index !== -1 && index < minIndex) {
2380
- minIndex = index;
2381
- }
2382
- }
2383
- let result2 = match.slice(i, minIndex);
2384
- i += result2.length - 1;
2385
- return result2;
2386
- };
2387
- let char = match[i];
2388
- if (peek("var")) {
2389
- result += consumeUntil([
2390
- ")",
2391
- ","
2392
- ]);
2393
- } else if (preventFormattingKeywords.some((keyword) => peek(keyword))) {
2394
- let keyword = preventFormattingKeywords.find((keyword2) => peek(keyword2));
2395
- result += keyword;
2396
- i += keyword.length - 1;
2397
- } else if (preventFormattingInFunctions.some((fn) => peek(fn))) {
2398
- result += consumeUntil([
2399
- ")"
2400
- ]);
2401
- } else if (peek("[")) {
2402
- result += consumeUntil([
2403
- "]"
2404
- ]);
2405
- } else if ([
2406
- "+",
2407
- "-",
2408
- "*",
2409
- "/"
2410
- ].includes(char) && ![
2411
- "(",
2412
- "+",
2413
- "-",
2414
- "*",
2415
- "/",
2416
- ","
2417
- ].includes(lastChar())) {
2418
- result += ` ${char} `;
2419
- } else {
2420
- result += char;
2421
- }
2422
- }
2423
- return result.replace(/\s+/g, " ");
2424
- });
2425
- }
2426
- function url(value) {
2427
- return value.startsWith("url(");
2428
- }
2429
- function number(value) {
2430
- return !isNaN(Number(value)) || isCSSFunction(value);
2431
- }
2432
- function percentage(value) {
2433
- return value.endsWith("%") && number(value.slice(0, -1)) || isCSSFunction(value);
2434
- }
2435
- let lengthUnits = [
2436
- "cm",
2437
- "mm",
2438
- "Q",
2439
- "in",
2440
- "pc",
2441
- "pt",
2442
- "px",
2443
- "em",
2444
- "ex",
2445
- "ch",
2446
- "rem",
2447
- "lh",
2448
- "rlh",
2449
- "vw",
2450
- "vh",
2451
- "vmin",
2452
- "vmax",
2453
- "vb",
2454
- "vi",
2455
- "svw",
2456
- "svh",
2457
- "lvw",
2458
- "lvh",
2459
- "dvw",
2460
- "dvh",
2461
- "cqw",
2462
- "cqh",
2463
- "cqi",
2464
- "cqb",
2465
- "cqmin",
2466
- "cqmax"
2467
- ];
2468
- let lengthUnitsPattern = `(?:${lengthUnits.join("|")})`;
2469
- function length(value) {
2470
- return value === "0" || new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${lengthUnitsPattern}$`).test(value) || isCSSFunction(value);
2471
- }
2472
- let lineWidths = /* @__PURE__ */ new Set([
2473
- "thin",
2474
- "medium",
2475
- "thick"
2476
- ]);
2477
- function lineWidth(value) {
2478
- return lineWidths.has(value);
2479
- }
2480
- function shadow(value) {
2481
- let parsedShadows = (0, _parseBoxShadowValue.parseBoxShadowValue)(normalize(value));
2482
- for (let parsedShadow of parsedShadows) {
2483
- if (!parsedShadow.valid) {
2484
- return false;
2485
- }
2486
- }
2487
- return true;
2488
- }
2489
- function color$1(value) {
2490
- let colors2 = 0;
2491
- let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, "_").every((part) => {
2492
- part = normalize(part);
2493
- if (part.startsWith("var("))
2494
- return true;
2495
- if ((0, _color.parseColor)(part, {
2496
- loose: true
2497
- }) !== null)
2498
- return colors2++, true;
2499
- return false;
2500
- });
2501
- if (!result)
2502
- return false;
2503
- return colors2 > 0;
2504
- }
2505
- function image(value) {
2506
- let images = 0;
2507
- let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
2508
- part = normalize(part);
2509
- if (part.startsWith("var("))
2510
- return true;
2511
- if (url(part) || gradient(part) || [
2512
- "element(",
2513
- "image(",
2514
- "cross-fade(",
2515
- "image-set("
2516
- ].some((fn) => part.startsWith(fn))) {
2517
- images++;
2518
- return true;
2519
- }
2520
- return false;
2521
- });
2522
- if (!result)
2523
- return false;
2524
- return images > 0;
2525
- }
2526
- let gradientTypes = /* @__PURE__ */ new Set([
2527
- "conic-gradient",
2528
- "linear-gradient",
2529
- "radial-gradient",
2530
- "repeating-conic-gradient",
2531
- "repeating-linear-gradient",
2532
- "repeating-radial-gradient"
2533
- ]);
2534
- function gradient(value) {
2535
- value = normalize(value);
2536
- for (let type of gradientTypes) {
2537
- if (value.startsWith(`${type}(`)) {
2538
- return true;
2539
- }
2540
- }
2541
- return false;
2542
- }
2543
- let validPositions = /* @__PURE__ */ new Set([
2544
- "center",
2545
- "top",
2546
- "right",
2547
- "bottom",
2548
- "left"
2549
- ]);
2550
- function position(value) {
2551
- let positions = 0;
2552
- let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, "_").every((part) => {
2553
- part = normalize(part);
2554
- if (part.startsWith("var("))
2555
- return true;
2556
- if (validPositions.has(part) || length(part) || percentage(part)) {
2557
- positions++;
2558
- return true;
2559
- }
2560
- return false;
2561
- });
2562
- if (!result)
2563
- return false;
2564
- return positions > 0;
2565
- }
2566
- function familyName(value) {
2567
- let fonts = 0;
2568
- let result = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
2569
- part = normalize(part);
2570
- if (part.startsWith("var("))
2571
- return true;
2572
- if (part.includes(" ")) {
2573
- if (!/(['"])([^"']+)\1/g.test(part)) {
2574
- return false;
2575
- }
2576
- }
2577
- if (/^\d/g.test(part)) {
2578
- return false;
2579
- }
2580
- fonts++;
2581
- return true;
2582
- });
2583
- if (!result)
2584
- return false;
2585
- return fonts > 0;
2586
- }
2587
- let genericNames = /* @__PURE__ */ new Set([
2588
- "serif",
2589
- "sans-serif",
2590
- "monospace",
2591
- "cursive",
2592
- "fantasy",
2593
- "system-ui",
2594
- "ui-serif",
2595
- "ui-sans-serif",
2596
- "ui-monospace",
2597
- "ui-rounded",
2598
- "math",
2599
- "emoji",
2600
- "fangsong"
2601
- ]);
2602
- function genericName(value) {
2603
- return genericNames.has(value);
2604
- }
2605
- let absoluteSizes = /* @__PURE__ */ new Set([
2606
- "xx-small",
2607
- "x-small",
2608
- "small",
2609
- "medium",
2610
- "large",
2611
- "x-large",
2612
- "xx-large",
2613
- "xxx-large"
2614
- ]);
2615
- function absoluteSize(value) {
2616
- return absoluteSizes.has(value);
2617
- }
2618
- let relativeSizes = /* @__PURE__ */ new Set([
2619
- "larger",
2620
- "smaller"
2621
- ]);
2622
- function relativeSize(value) {
2623
- return relativeSizes.has(value);
2624
- }
2625
- })(dataTypes);
2626
- var validateFormalSyntax = {};
2627
- (function(exports2) {
2628
- Object.defineProperty(exports2, "__esModule", {
2629
- value: true
2630
- });
2631
- Object.defineProperty(exports2, "backgroundSize", {
2632
- enumerable: true,
2633
- get: function() {
2634
- return backgroundSize;
2635
- }
2636
- });
2637
- const _dataTypes = dataTypes;
2638
- const _splitAtTopLevelOnly = splitAtTopLevelOnly;
2639
- function backgroundSize(value) {
2640
- let keywordValues = [
2641
- "cover",
2642
- "contain"
2643
- ];
2644
- return (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(value, ",").every((part) => {
2645
- let sizes = (0, _splitAtTopLevelOnly.splitAtTopLevelOnly)(part, "_").filter(Boolean);
2646
- if (sizes.length === 1 && keywordValues.includes(sizes[0]))
2647
- return true;
2648
- if (sizes.length !== 1 && sizes.length !== 2)
2649
- return false;
2650
- return sizes.every((size) => (0, _dataTypes.length)(size) || (0, _dataTypes.percentage)(size) || size === "auto");
2651
- });
2652
- }
2653
- })(validateFormalSyntax);
2654
- (function(exports2) {
2655
- Object.defineProperty(exports2, "__esModule", {
2656
- value: true
2657
- });
2658
- function _export(target, all) {
2659
- for (var name in all)
2660
- Object.defineProperty(target, name, {
2661
- enumerable: true,
2662
- get: all[name]
2663
- });
2664
- }
2665
- _export(exports2, {
2666
- updateAllClasses: function() {
2667
- return updateAllClasses;
2668
- },
2669
- asValue: function() {
2670
- return asValue;
2671
- },
2672
- parseColorFormat: function() {
2673
- return parseColorFormat;
2674
- },
2675
- asColor: function() {
2676
- return asColor;
2677
- },
2678
- asLookupValue: function() {
2679
- return asLookupValue;
2680
- },
2681
- typeMap: function() {
2682
- return typeMap;
2683
- },
2684
- coerceValue: function() {
2685
- return coerceValue;
2686
- },
2687
- getMatchingTypes: function() {
2688
- return getMatchingTypes;
2689
- }
2690
- });
2691
- const _escapeCommas = /* @__PURE__ */ _interop_require_default(escapeCommas);
2692
- const _withAlphaVariable = withAlphaVariable;
2693
- const _dataTypes = dataTypes;
2694
- const _negateValue = /* @__PURE__ */ _interop_require_default(negateValue);
2695
- const _validateFormalSyntax = validateFormalSyntax;
2696
- const _featureFlags = featureFlags;
2697
- function _interop_require_default(obj) {
2698
- return obj && obj.__esModule ? obj : {
2699
- default: obj
2700
- };
2701
- }
2702
- function updateAllClasses(selectors, updateClass) {
2703
- selectors.walkClasses((sel) => {
2704
- sel.value = updateClass(sel.value);
2705
- if (sel.raws && sel.raws.value) {
2706
- sel.raws.value = (0, _escapeCommas.default)(sel.raws.value);
2707
- }
2708
- });
2709
- }
2710
- function resolveArbitraryValue(modifier, validate) {
2711
- if (!isArbitraryValue(modifier)) {
2712
- return void 0;
2713
- }
2714
- let value = modifier.slice(1, -1);
2715
- if (!validate(value)) {
2716
- return void 0;
2717
- }
2718
- return (0, _dataTypes.normalize)(value);
2719
- }
2720
- function asNegativeValue(modifier, lookup = {}, validate) {
2721
- let positiveValue = lookup[modifier];
2722
- if (positiveValue !== void 0) {
2723
- return (0, _negateValue.default)(positiveValue);
2724
- }
2725
- if (isArbitraryValue(modifier)) {
2726
- let resolved = resolveArbitraryValue(modifier, validate);
2727
- if (resolved === void 0) {
2728
- return void 0;
2729
- }
2730
- return (0, _negateValue.default)(resolved);
2731
- }
2732
- }
2733
- function asValue(modifier, options = {}, { validate = () => true } = {}) {
2734
- var _options_values;
2735
- let value = (_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier];
2736
- if (value !== void 0) {
2737
- return value;
2738
- }
2739
- if (options.supportsNegativeValues && modifier.startsWith("-")) {
2740
- return asNegativeValue(modifier.slice(1), options.values, validate);
2741
- }
2742
- return resolveArbitraryValue(modifier, validate);
2743
- }
2744
- function isArbitraryValue(input) {
2745
- return input.startsWith("[") && input.endsWith("]");
2746
- }
2747
- function splitUtilityModifier(modifier) {
2748
- let slashIdx = modifier.lastIndexOf("/");
2749
- let arbitraryStartIdx = modifier.lastIndexOf("[", slashIdx);
2750
- let arbitraryEndIdx = modifier.indexOf("]", slashIdx);
2751
- let isNextToArbitrary = modifier[slashIdx - 1] === "]" || modifier[slashIdx + 1] === "[";
2752
- if (!isNextToArbitrary) {
2753
- if (arbitraryStartIdx !== -1 && arbitraryEndIdx !== -1) {
2754
- if (arbitraryStartIdx < slashIdx && slashIdx < arbitraryEndIdx) {
2755
- slashIdx = modifier.lastIndexOf("/", arbitraryStartIdx);
2756
- }
2757
- }
2758
- }
2759
- if (slashIdx === -1 || slashIdx === modifier.length - 1) {
2760
- return [
2761
- modifier,
2762
- void 0
2763
- ];
2764
- }
2765
- let arbitrary = isArbitraryValue(modifier);
2766
- if (arbitrary && !modifier.includes("]/[")) {
2767
- return [
2768
- modifier,
2769
- void 0
2770
- ];
2771
- }
2772
- return [
2773
- modifier.slice(0, slashIdx),
2774
- modifier.slice(slashIdx + 1)
2775
- ];
2776
- }
2777
- function parseColorFormat(value) {
2778
- if (typeof value === "string" && value.includes("<alpha-value>")) {
2779
- let oldValue = value;
2780
- return ({ opacityValue = 1 }) => oldValue.replace("<alpha-value>", opacityValue);
2781
- }
2782
- return value;
2783
- }
2784
- function unwrapArbitraryModifier(modifier) {
2785
- return (0, _dataTypes.normalize)(modifier.slice(1, -1));
2786
- }
2787
- function asColor(modifier, options = {}, { tailwindConfig = {} } = {}) {
2788
- var _options_values;
2789
- if (((_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier]) !== void 0) {
2790
- var _options_values1;
2791
- return parseColorFormat((_options_values1 = options.values) === null || _options_values1 === void 0 ? void 0 : _options_values1[modifier]);
2792
- }
2793
- let [color2, alpha] = splitUtilityModifier(modifier);
2794
- if (alpha !== void 0) {
2795
- var _options_values2, _tailwindConfig_theme, _tailwindConfig_theme_opacity;
2796
- var _options_values_color;
2797
- 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;
2798
- if (normalizedColor === void 0) {
2799
- return void 0;
2800
- }
2801
- normalizedColor = parseColorFormat(normalizedColor);
2802
- if (isArbitraryValue(alpha)) {
2803
- return (0, _withAlphaVariable.withAlphaValue)(normalizedColor, unwrapArbitraryModifier(alpha));
2804
- }
2805
- 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) {
2806
- return void 0;
2807
- }
2808
- return (0, _withAlphaVariable.withAlphaValue)(normalizedColor, tailwindConfig.theme.opacity[alpha]);
2809
- }
2810
- return asValue(modifier, options, {
2811
- validate: _dataTypes.color
2812
- });
2813
- }
2814
- function asLookupValue(modifier, options = {}) {
2815
- var _options_values;
2816
- return (_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier];
2817
- }
2818
- function guess(validate) {
2819
- return (modifier, options) => {
2820
- return asValue(modifier, options, {
2821
- validate
2822
- });
2823
- };
2824
- }
2825
- let typeMap = {
2826
- any: asValue,
2827
- color: asColor,
2828
- url: guess(_dataTypes.url),
2829
- image: guess(_dataTypes.image),
2830
- length: guess(_dataTypes.length),
2831
- percentage: guess(_dataTypes.percentage),
2832
- position: guess(_dataTypes.position),
2833
- lookup: asLookupValue,
2834
- "generic-name": guess(_dataTypes.genericName),
2835
- "family-name": guess(_dataTypes.familyName),
2836
- number: guess(_dataTypes.number),
2837
- "line-width": guess(_dataTypes.lineWidth),
2838
- "absolute-size": guess(_dataTypes.absoluteSize),
2839
- "relative-size": guess(_dataTypes.relativeSize),
2840
- shadow: guess(_dataTypes.shadow),
2841
- size: guess(_validateFormalSyntax.backgroundSize)
2842
- };
2843
- let supportedTypes = Object.keys(typeMap);
2844
- function splitAtFirst(input, delim) {
2845
- let idx = input.indexOf(delim);
2846
- if (idx === -1)
2847
- return [
2848
- void 0,
2849
- input
2850
- ];
2851
- return [
2852
- input.slice(0, idx),
2853
- input.slice(idx + 1)
2854
- ];
2855
- }
2856
- function coerceValue(types, modifier, options, tailwindConfig) {
2857
- if (options.values && modifier in options.values) {
2858
- for (let { type } of types !== null && types !== void 0 ? types : []) {
2859
- let result = typeMap[type](modifier, options, {
2860
- tailwindConfig
2861
- });
2862
- if (result === void 0) {
2863
- continue;
2864
- }
2865
- return [
2866
- result,
2867
- type,
2868
- null
2869
- ];
2870
- }
2871
- }
2872
- if (isArbitraryValue(modifier)) {
2873
- let arbitraryValue = modifier.slice(1, -1);
2874
- let [explicitType, value] = splitAtFirst(arbitraryValue, ":");
2875
- if (!/^[\w-_]+$/g.test(explicitType)) {
2876
- value = arbitraryValue;
2877
- } else if (explicitType !== void 0 && !supportedTypes.includes(explicitType)) {
2878
- return [];
2879
- }
2880
- if (value.length > 0 && supportedTypes.includes(explicitType)) {
2881
- return [
2882
- asValue(`[${value}]`, options),
2883
- explicitType,
2884
- null
2885
- ];
2886
- }
2887
- }
2888
- let matches = getMatchingTypes(types, modifier, options, tailwindConfig);
2889
- for (let match of matches) {
2890
- return match;
2891
- }
2892
- return [];
2893
- }
2894
- function* getMatchingTypes(types, rawModifier, options, tailwindConfig) {
2895
- let modifiersEnabled = (0, _featureFlags.flagEnabled)(tailwindConfig, "generalizedModifiers");
2896
- let [modifier, utilityModifier] = splitUtilityModifier(rawModifier);
2897
- let canUseUtilityModifier = modifiersEnabled && options.modifiers != null && (options.modifiers === "any" || typeof options.modifiers === "object" && (utilityModifier && isArbitraryValue(utilityModifier) || utilityModifier in options.modifiers));
2898
- if (!canUseUtilityModifier) {
2899
- modifier = rawModifier;
2900
- utilityModifier = void 0;
2901
- }
2902
- if (utilityModifier !== void 0 && modifier === "") {
2903
- modifier = "DEFAULT";
2904
- }
2905
- if (utilityModifier !== void 0) {
2906
- if (typeof options.modifiers === "object") {
2907
- var _options_modifiers;
2908
- var _options_modifiers_utilityModifier;
2909
- 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;
2910
- if (configValue !== null) {
2911
- utilityModifier = configValue;
2912
- } else if (isArbitraryValue(utilityModifier)) {
2913
- utilityModifier = unwrapArbitraryModifier(utilityModifier);
2914
- }
2915
- }
2916
- }
2917
- for (let { type } of types !== null && types !== void 0 ? types : []) {
2918
- let result = typeMap[type](modifier, options, {
2919
- tailwindConfig
2920
- });
2921
- if (result === void 0) {
2922
- continue;
2923
- }
2924
- yield [
2925
- result,
2926
- type,
2927
- utilityModifier !== null && utilityModifier !== void 0 ? utilityModifier : null
2928
- ];
2929
- }
2930
- }
2931
- })(pluginUtils);
2932
- var toColorValue = {};
2933
- (function(exports2) {
2934
- Object.defineProperty(exports2, "__esModule", {
2935
- value: true
2936
- });
2937
- Object.defineProperty(exports2, "default", {
2938
- enumerable: true,
2939
- get: function() {
2940
- return toColorValue2;
2941
- }
2942
- });
2943
- function toColorValue2(maybeFunction) {
2944
- return typeof maybeFunction === "function" ? maybeFunction({}) : maybeFunction;
2945
- }
2946
- })(toColorValue);
2947
- (function(exports2) {
2948
- Object.defineProperty(exports2, "__esModule", {
2949
- value: true
2950
- });
2951
- Object.defineProperty(exports2, "default", {
2952
- enumerable: true,
2953
- get: function() {
2954
- return resolveConfig2;
2955
- }
2956
- });
2957
- const _negateValue = /* @__PURE__ */ _interop_require_default(negateValue);
2958
- const _corePluginList = /* @__PURE__ */ _interop_require_default(corePluginList);
2959
- const _configurePlugins = /* @__PURE__ */ _interop_require_default(configurePlugins);
2960
- const _colors = /* @__PURE__ */ _interop_require_default(colors$1);
2961
- const _defaults = defaults;
2962
- const _toPath = toPath;
2963
- const _normalizeConfig = normalizeConfig;
2964
- const _isPlainObject = /* @__PURE__ */ _interop_require_default(isPlainObject);
2965
- const _cloneDeep = cloneDeep;
2966
- const _pluginUtils = pluginUtils;
2967
- const _withAlphaVariable = withAlphaVariable;
2968
- const _toColorValue = /* @__PURE__ */ _interop_require_default(toColorValue);
2969
- function _interop_require_default(obj) {
2970
- return obj && obj.__esModule ? obj : {
2971
- default: obj
2972
- };
2973
- }
2974
- function isFunction(input) {
2975
- return typeof input === "function";
2976
- }
2977
- function mergeWith(target, ...sources) {
2978
- let customizer = sources.pop();
2979
- for (let source of sources) {
2980
- for (let k in source) {
2981
- let merged = customizer(target[k], source[k]);
2982
- if (merged === void 0) {
2983
- if ((0, _isPlainObject.default)(target[k]) && (0, _isPlainObject.default)(source[k])) {
2984
- target[k] = mergeWith({}, target[k], source[k], customizer);
2985
- } else {
2986
- target[k] = source[k];
2987
- }
2988
- } else {
2989
- target[k] = merged;
2990
- }
2991
- }
2992
- }
2993
- return target;
2994
- }
2995
- const configUtils = {
2996
- colors: _colors.default,
2997
- negative(scale) {
2998
- return Object.keys(scale).filter((key) => scale[key] !== "0").reduce((negativeScale, key) => {
2999
- let negativeValue = (0, _negateValue.default)(scale[key]);
3000
- if (negativeValue !== void 0) {
3001
- negativeScale[`-${key}`] = negativeValue;
3002
- }
3003
- return negativeScale;
3004
- }, {});
3005
- },
3006
- breakpoints(screens2) {
3007
- return Object.keys(screens2).filter((key) => typeof screens2[key] === "string").reduce((breakpoints, key) => ({
3008
- ...breakpoints,
3009
- [`screen-${key}`]: screens2[key]
3010
- }), {});
3011
- }
3012
- };
3013
- function value(valueToResolve, ...args) {
3014
- return isFunction(valueToResolve) ? valueToResolve(...args) : valueToResolve;
3015
- }
3016
- function collectExtends(items) {
3017
- return items.reduce((merged, { extend }) => {
3018
- return mergeWith(merged, extend, (mergedValue, extendValue) => {
3019
- if (mergedValue === void 0) {
3020
- return [
3021
- extendValue
3022
- ];
3023
- }
3024
- if (Array.isArray(mergedValue)) {
3025
- return [
3026
- extendValue,
3027
- ...mergedValue
3028
- ];
3029
- }
3030
- return [
3031
- extendValue,
3032
- mergedValue
3033
- ];
3034
- });
3035
- }, {});
3036
- }
3037
- function mergeThemes(themes) {
3038
- return {
3039
- ...themes.reduce((merged, theme2) => (0, _defaults.defaults)(merged, theme2), {}),
3040
- // In order to resolve n config objects, we combine all of their `extend` properties
3041
- // into arrays instead of objects so they aren't overridden.
3042
- extend: collectExtends(themes)
3043
- };
3044
- }
3045
- function mergeExtensionCustomizer(merged, value2) {
3046
- if (Array.isArray(merged) && (0, _isPlainObject.default)(merged[0])) {
3047
- return merged.concat(value2);
3048
- }
3049
- if (Array.isArray(value2) && (0, _isPlainObject.default)(value2[0]) && (0, _isPlainObject.default)(merged)) {
3050
- return [
3051
- merged,
3052
- ...value2
3053
- ];
3054
- }
3055
- if (Array.isArray(value2)) {
3056
- return value2;
3057
- }
3058
- return void 0;
3059
- }
3060
- function mergeExtensions({ extend, ...theme2 }) {
3061
- return mergeWith(theme2, extend, (themeValue, extensions) => {
3062
- if (!isFunction(themeValue) && !extensions.some(isFunction)) {
3063
- return mergeWith({}, themeValue, ...extensions, mergeExtensionCustomizer);
3064
- }
3065
- return (resolveThemePath, utils) => mergeWith({}, ...[
3066
- themeValue,
3067
- ...extensions
3068
- ].map((e) => value(e, resolveThemePath, utils)), mergeExtensionCustomizer);
3069
- });
3070
- }
3071
- function* toPaths(key) {
3072
- let path = (0, _toPath.toPath)(key);
3073
- if (path.length === 0) {
3074
- return;
3075
- }
3076
- yield path;
3077
- if (Array.isArray(key)) {
3078
- return;
3079
- }
3080
- let pattern = /^(.*?)\s*\/\s*([^/]+)$/;
3081
- let matches = key.match(pattern);
3082
- if (matches !== null) {
3083
- let [, prefix, alpha] = matches;
3084
- let newPath = (0, _toPath.toPath)(prefix);
3085
- newPath.alpha = alpha;
3086
- yield newPath;
3087
- }
3088
- }
3089
- function resolveFunctionKeys(object) {
3090
- const resolvePath = (key, defaultValue) => {
3091
- for (const path of toPaths(key)) {
3092
- let index = 0;
3093
- let val = object;
3094
- while (val !== void 0 && val !== null && index < path.length) {
3095
- val = val[path[index++]];
3096
- let shouldResolveAsFn = isFunction(val) && (path.alpha === void 0 || index <= path.length - 1);
3097
- val = shouldResolveAsFn ? val(resolvePath, configUtils) : val;
3098
- }
3099
- if (val !== void 0) {
3100
- if (path.alpha !== void 0) {
3101
- let normalized = (0, _pluginUtils.parseColorFormat)(val);
3102
- return (0, _withAlphaVariable.withAlphaValue)(normalized, path.alpha, (0, _toColorValue.default)(normalized));
3103
- }
3104
- if ((0, _isPlainObject.default)(val)) {
3105
- return (0, _cloneDeep.cloneDeep)(val);
3106
- }
3107
- return val;
3108
- }
3109
- }
3110
- return defaultValue;
3111
- };
3112
- Object.assign(resolvePath, {
3113
- theme: resolvePath,
3114
- ...configUtils
3115
- });
3116
- return Object.keys(object).reduce((resolved, key) => {
3117
- resolved[key] = isFunction(object[key]) ? object[key](resolvePath, configUtils) : object[key];
3118
- return resolved;
3119
- }, {});
3120
- }
3121
- function extractPluginConfigs(configs) {
3122
- let allConfigs = [];
3123
- configs.forEach((config2) => {
3124
- allConfigs = [
3125
- ...allConfigs,
3126
- config2
3127
- ];
3128
- var _config_plugins;
3129
- const plugins = (_config_plugins = config2 === null || config2 === void 0 ? void 0 : config2.plugins) !== null && _config_plugins !== void 0 ? _config_plugins : [];
3130
- if (plugins.length === 0) {
3131
- return;
3132
- }
3133
- plugins.forEach((plugin) => {
3134
- if (plugin.__isOptionsFunction) {
3135
- plugin = plugin();
3136
- }
3137
- var _plugin_config;
3138
- allConfigs = [
3139
- ...allConfigs,
3140
- ...extractPluginConfigs([
3141
- (_plugin_config = plugin === null || plugin === void 0 ? void 0 : plugin.config) !== null && _plugin_config !== void 0 ? _plugin_config : {}
3142
- ])
3143
- ];
3144
- });
3145
- });
3146
- return allConfigs;
3147
- }
3148
- function resolveCorePlugins(corePluginConfigs) {
3149
- const result = [
3150
- ...corePluginConfigs
3151
- ].reduceRight((resolved, corePluginConfig) => {
3152
- if (isFunction(corePluginConfig)) {
3153
- return corePluginConfig({
3154
- corePlugins: resolved
3155
- });
3156
- }
3157
- return (0, _configurePlugins.default)(corePluginConfig, resolved);
3158
- }, _corePluginList.default);
3159
- return result;
3160
- }
3161
- function resolvePluginLists(pluginLists) {
3162
- const result = [
3163
- ...pluginLists
3164
- ].reduceRight((resolved, pluginList) => {
3165
- return [
3166
- ...resolved,
3167
- ...pluginList
3168
- ];
3169
- }, []);
3170
- return result;
3171
- }
3172
- function resolveConfig2(configs) {
3173
- let allConfigs = [
3174
- ...extractPluginConfigs(configs),
3175
- {
3176
- prefix: "",
3177
- important: false,
3178
- separator: ":"
3179
- }
3180
- ];
3181
- var _t_theme, _c_plugins;
3182
- return (0, _normalizeConfig.normalizeConfig)((0, _defaults.defaults)({
3183
- theme: resolveFunctionKeys(mergeExtensions(mergeThemes(allConfigs.map((t) => {
3184
- return (_t_theme = t === null || t === void 0 ? void 0 : t.theme) !== null && _t_theme !== void 0 ? _t_theme : {};
3185
- })))),
3186
- corePlugins: resolveCorePlugins(allConfigs.map((c) => c.corePlugins)),
3187
- plugins: resolvePluginLists(configs.map((c) => {
3188
- return (_c_plugins = c === null || c === void 0 ? void 0 : c.plugins) !== null && _c_plugins !== void 0 ? _c_plugins : [];
3189
- }))
3190
- }, ...allConfigs));
3191
- }
3192
- })(resolveConfig$2);
3193
- var getAllConfigs = {};
3194
- var config_full = {
3195
- content: [],
3196
- presets: [],
3197
- darkMode: "media",
3198
- // or 'class'
3199
- theme: {
3200
- accentColor: ({ theme: theme2 }) => ({
3201
- ...theme2("colors"),
3202
- auto: "auto"
3203
- }),
3204
- animation: {
3205
- none: "none",
3206
- spin: "spin 1s linear infinite",
3207
- ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
3208
- pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
3209
- bounce: "bounce 1s infinite"
3210
- },
3211
- aria: {
3212
- busy: 'busy="true"',
3213
- checked: 'checked="true"',
3214
- disabled: 'disabled="true"',
3215
- expanded: 'expanded="true"',
3216
- hidden: 'hidden="true"',
3217
- pressed: 'pressed="true"',
3218
- readonly: 'readonly="true"',
3219
- required: 'required="true"',
3220
- selected: 'selected="true"'
3221
- },
3222
- aspectRatio: {
3223
- auto: "auto",
3224
- square: "1 / 1",
3225
- video: "16 / 9"
3226
- },
3227
- backdropBlur: ({ theme: theme2 }) => theme2("blur"),
3228
- backdropBrightness: ({ theme: theme2 }) => theme2("brightness"),
3229
- backdropContrast: ({ theme: theme2 }) => theme2("contrast"),
3230
- backdropGrayscale: ({ theme: theme2 }) => theme2("grayscale"),
3231
- backdropHueRotate: ({ theme: theme2 }) => theme2("hueRotate"),
3232
- backdropInvert: ({ theme: theme2 }) => theme2("invert"),
3233
- backdropOpacity: ({ theme: theme2 }) => theme2("opacity"),
3234
- backdropSaturate: ({ theme: theme2 }) => theme2("saturate"),
3235
- backdropSepia: ({ theme: theme2 }) => theme2("sepia"),
3236
- backgroundColor: ({ theme: theme2 }) => theme2("colors"),
3237
- backgroundImage: {
3238
- none: "none",
3239
- "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))",
3240
- "gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))",
3241
- "gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))",
3242
- "gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))",
3243
- "gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))",
3244
- "gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))",
3245
- "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))",
3246
- "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
3247
- },
3248
- backgroundOpacity: ({ theme: theme2 }) => theme2("opacity"),
3249
- backgroundPosition: {
3250
- bottom: "bottom",
3251
- center: "center",
3252
- left: "left",
3253
- "left-bottom": "left bottom",
3254
- "left-top": "left top",
3255
- right: "right",
3256
- "right-bottom": "right bottom",
3257
- "right-top": "right top",
3258
- top: "top"
3259
- },
3260
- backgroundSize: {
3261
- auto: "auto",
3262
- cover: "cover",
3263
- contain: "contain"
3264
- },
3265
- blur: {
3266
- 0: "0",
3267
- none: "0",
3268
- sm: "4px",
3269
- DEFAULT: "8px",
3270
- md: "12px",
3271
- lg: "16px",
3272
- xl: "24px",
3273
- "2xl": "40px",
3274
- "3xl": "64px"
3275
- },
3276
- borderColor: ({ theme: theme2 }) => ({
3277
- ...theme2("colors"),
3278
- DEFAULT: theme2("colors.gray.200", "currentColor")
3279
- }),
3280
- borderOpacity: ({ theme: theme2 }) => theme2("opacity"),
3281
- borderRadius: {
3282
- none: "0px",
3283
- sm: "0.125rem",
3284
- DEFAULT: "0.25rem",
3285
- md: "0.375rem",
3286
- lg: "0.5rem",
3287
- xl: "0.75rem",
3288
- "2xl": "1rem",
3289
- "3xl": "1.5rem",
3290
- full: "9999px"
3291
- },
3292
- borderSpacing: ({ theme: theme2 }) => ({
3293
- ...theme2("spacing")
3294
- }),
3295
- borderWidth: {
3296
- DEFAULT: "1px",
3297
- 0: "0px",
3298
- 2: "2px",
3299
- 4: "4px",
3300
- 8: "8px"
3301
- },
3302
- boxShadow: {
3303
- sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
3304
- DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
3305
- md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
3306
- lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
3307
- xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
3308
- "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
3309
- inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
3310
- none: "none"
3311
- },
3312
- boxShadowColor: ({ theme: theme2 }) => theme2("colors"),
3313
- brightness: {
3314
- 0: "0",
3315
- 50: ".5",
3316
- 75: ".75",
3317
- 90: ".9",
3318
- 95: ".95",
3319
- 100: "1",
3320
- 105: "1.05",
3321
- 110: "1.1",
3322
- 125: "1.25",
3323
- 150: "1.5",
3324
- 200: "2"
3325
- },
3326
- caretColor: ({ theme: theme2 }) => theme2("colors"),
3327
- colors: ({ colors: colors2 }) => ({
3328
- inherit: colors2.inherit,
3329
- current: colors2.current,
3330
- transparent: colors2.transparent,
3331
- black: colors2.black,
3332
- white: colors2.white,
3333
- slate: colors2.slate,
3334
- gray: colors2.gray,
3335
- zinc: colors2.zinc,
3336
- neutral: colors2.neutral,
3337
- stone: colors2.stone,
3338
- red: colors2.red,
3339
- orange: colors2.orange,
3340
- amber: colors2.amber,
3341
- yellow: colors2.yellow,
3342
- lime: colors2.lime,
3343
- green: colors2.green,
3344
- emerald: colors2.emerald,
3345
- teal: colors2.teal,
3346
- cyan: colors2.cyan,
3347
- sky: colors2.sky,
3348
- blue: colors2.blue,
3349
- indigo: colors2.indigo,
3350
- violet: colors2.violet,
3351
- purple: colors2.purple,
3352
- fuchsia: colors2.fuchsia,
3353
- pink: colors2.pink,
3354
- rose: colors2.rose
3355
- }),
3356
- columns: {
3357
- auto: "auto",
3358
- 1: "1",
3359
- 2: "2",
3360
- 3: "3",
3361
- 4: "4",
3362
- 5: "5",
3363
- 6: "6",
3364
- 7: "7",
3365
- 8: "8",
3366
- 9: "9",
3367
- 10: "10",
3368
- 11: "11",
3369
- 12: "12",
3370
- "3xs": "16rem",
3371
- "2xs": "18rem",
3372
- xs: "20rem",
3373
- sm: "24rem",
3374
- md: "28rem",
3375
- lg: "32rem",
3376
- xl: "36rem",
3377
- "2xl": "42rem",
3378
- "3xl": "48rem",
3379
- "4xl": "56rem",
3380
- "5xl": "64rem",
3381
- "6xl": "72rem",
3382
- "7xl": "80rem"
3383
- },
3384
- container: {},
3385
- content: {
3386
- none: "none"
3387
- },
3388
- contrast: {
3389
- 0: "0",
3390
- 50: ".5",
3391
- 75: ".75",
3392
- 100: "1",
3393
- 125: "1.25",
3394
- 150: "1.5",
3395
- 200: "2"
3396
- },
3397
- cursor: {
3398
- auto: "auto",
3399
- default: "default",
3400
- pointer: "pointer",
3401
- wait: "wait",
3402
- text: "text",
3403
- move: "move",
3404
- help: "help",
3405
- "not-allowed": "not-allowed",
3406
- none: "none",
3407
- "context-menu": "context-menu",
3408
- progress: "progress",
3409
- cell: "cell",
3410
- crosshair: "crosshair",
3411
- "vertical-text": "vertical-text",
3412
- alias: "alias",
3413
- copy: "copy",
3414
- "no-drop": "no-drop",
3415
- grab: "grab",
3416
- grabbing: "grabbing",
3417
- "all-scroll": "all-scroll",
3418
- "col-resize": "col-resize",
3419
- "row-resize": "row-resize",
3420
- "n-resize": "n-resize",
3421
- "e-resize": "e-resize",
3422
- "s-resize": "s-resize",
3423
- "w-resize": "w-resize",
3424
- "ne-resize": "ne-resize",
3425
- "nw-resize": "nw-resize",
3426
- "se-resize": "se-resize",
3427
- "sw-resize": "sw-resize",
3428
- "ew-resize": "ew-resize",
3429
- "ns-resize": "ns-resize",
3430
- "nesw-resize": "nesw-resize",
3431
- "nwse-resize": "nwse-resize",
3432
- "zoom-in": "zoom-in",
3433
- "zoom-out": "zoom-out"
3434
- },
3435
- divideColor: ({ theme: theme2 }) => theme2("borderColor"),
3436
- divideOpacity: ({ theme: theme2 }) => theme2("borderOpacity"),
3437
- divideWidth: ({ theme: theme2 }) => theme2("borderWidth"),
3438
- dropShadow: {
3439
- sm: "0 1px 1px rgb(0 0 0 / 0.05)",
3440
- DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
3441
- md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
3442
- lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
3443
- xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
3444
- "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
3445
- none: "0 0 #0000"
3446
- },
3447
- fill: ({ theme: theme2 }) => ({
3448
- none: "none",
3449
- ...theme2("colors")
3450
- }),
3451
- flex: {
3452
- 1: "1 1 0%",
3453
- auto: "1 1 auto",
3454
- initial: "0 1 auto",
3455
- none: "none"
3456
- },
3457
- flexBasis: ({ theme: theme2 }) => ({
3458
- auto: "auto",
3459
- ...theme2("spacing"),
3460
- "1/2": "50%",
3461
- "1/3": "33.333333%",
3462
- "2/3": "66.666667%",
3463
- "1/4": "25%",
3464
- "2/4": "50%",
3465
- "3/4": "75%",
3466
- "1/5": "20%",
3467
- "2/5": "40%",
3468
- "3/5": "60%",
3469
- "4/5": "80%",
3470
- "1/6": "16.666667%",
3471
- "2/6": "33.333333%",
3472
- "3/6": "50%",
3473
- "4/6": "66.666667%",
3474
- "5/6": "83.333333%",
3475
- "1/12": "8.333333%",
3476
- "2/12": "16.666667%",
3477
- "3/12": "25%",
3478
- "4/12": "33.333333%",
3479
- "5/12": "41.666667%",
3480
- "6/12": "50%",
3481
- "7/12": "58.333333%",
3482
- "8/12": "66.666667%",
3483
- "9/12": "75%",
3484
- "10/12": "83.333333%",
3485
- "11/12": "91.666667%",
3486
- full: "100%"
3487
- }),
3488
- flexGrow: {
3489
- 0: "0",
3490
- DEFAULT: "1"
3491
- },
3492
- flexShrink: {
3493
- 0: "0",
3494
- DEFAULT: "1"
3495
- },
3496
- fontFamily: {
3497
- sans: [
3498
- "ui-sans-serif",
3499
- "system-ui",
3500
- "sans-serif",
3501
- '"Apple Color Emoji"',
3502
- '"Segoe UI Emoji"',
3503
- '"Segoe UI Symbol"',
3504
- '"Noto Color Emoji"'
3505
- ],
3506
- serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"],
3507
- mono: [
3508
- "ui-monospace",
3509
- "SFMono-Regular",
3510
- "Menlo",
3511
- "Monaco",
3512
- "Consolas",
3513
- '"Liberation Mono"',
3514
- '"Courier New"',
3515
- "monospace"
3516
- ]
3517
- },
3518
- fontSize: {
3519
- xs: ["0.75rem", { lineHeight: "1rem" }],
3520
- sm: ["0.875rem", { lineHeight: "1.25rem" }],
3521
- base: ["1rem", { lineHeight: "1.5rem" }],
3522
- lg: ["1.125rem", { lineHeight: "1.75rem" }],
3523
- xl: ["1.25rem", { lineHeight: "1.75rem" }],
3524
- "2xl": ["1.5rem", { lineHeight: "2rem" }],
3525
- "3xl": ["1.875rem", { lineHeight: "2.25rem" }],
3526
- "4xl": ["2.25rem", { lineHeight: "2.5rem" }],
3527
- "5xl": ["3rem", { lineHeight: "1" }],
3528
- "6xl": ["3.75rem", { lineHeight: "1" }],
3529
- "7xl": ["4.5rem", { lineHeight: "1" }],
3530
- "8xl": ["6rem", { lineHeight: "1" }],
3531
- "9xl": ["8rem", { lineHeight: "1" }]
3532
- },
3533
- fontWeight: {
3534
- thin: "100",
3535
- extralight: "200",
3536
- light: "300",
3537
- normal: "400",
3538
- medium: "500",
3539
- semibold: "600",
3540
- bold: "700",
3541
- extrabold: "800",
3542
- black: "900"
3543
- },
3544
- gap: ({ theme: theme2 }) => theme2("spacing"),
3545
- gradientColorStops: ({ theme: theme2 }) => theme2("colors"),
3546
- gradientColorStopPositions: {
3547
- "0%": "0%",
3548
- "5%": "5%",
3549
- "10%": "10%",
3550
- "15%": "15%",
3551
- "20%": "20%",
3552
- "25%": "25%",
3553
- "30%": "30%",
3554
- "35%": "35%",
3555
- "40%": "40%",
3556
- "45%": "45%",
3557
- "50%": "50%",
3558
- "55%": "55%",
3559
- "60%": "60%",
3560
- "65%": "65%",
3561
- "70%": "70%",
3562
- "75%": "75%",
3563
- "80%": "80%",
3564
- "85%": "85%",
3565
- "90%": "90%",
3566
- "95%": "95%",
3567
- "100%": "100%"
3568
- },
3569
- grayscale: {
3570
- 0: "0",
3571
- DEFAULT: "100%"
3572
- },
3573
- gridAutoColumns: {
3574
- auto: "auto",
3575
- min: "min-content",
3576
- max: "max-content",
3577
- fr: "minmax(0, 1fr)"
3578
- },
3579
- gridAutoRows: {
3580
- auto: "auto",
3581
- min: "min-content",
3582
- max: "max-content",
3583
- fr: "minmax(0, 1fr)"
3584
- },
3585
- gridColumn: {
3586
- auto: "auto",
3587
- "span-1": "span 1 / span 1",
3588
- "span-2": "span 2 / span 2",
3589
- "span-3": "span 3 / span 3",
3590
- "span-4": "span 4 / span 4",
3591
- "span-5": "span 5 / span 5",
3592
- "span-6": "span 6 / span 6",
3593
- "span-7": "span 7 / span 7",
3594
- "span-8": "span 8 / span 8",
3595
- "span-9": "span 9 / span 9",
3596
- "span-10": "span 10 / span 10",
3597
- "span-11": "span 11 / span 11",
3598
- "span-12": "span 12 / span 12",
3599
- "span-full": "1 / -1"
3600
- },
3601
- gridColumnEnd: {
3602
- auto: "auto",
3603
- 1: "1",
3604
- 2: "2",
3605
- 3: "3",
3606
- 4: "4",
3607
- 5: "5",
3608
- 6: "6",
3609
- 7: "7",
3610
- 8: "8",
3611
- 9: "9",
3612
- 10: "10",
3613
- 11: "11",
3614
- 12: "12",
3615
- 13: "13"
3616
- },
3617
- gridColumnStart: {
3618
- auto: "auto",
3619
- 1: "1",
3620
- 2: "2",
3621
- 3: "3",
3622
- 4: "4",
3623
- 5: "5",
3624
- 6: "6",
3625
- 7: "7",
3626
- 8: "8",
3627
- 9: "9",
3628
- 10: "10",
3629
- 11: "11",
3630
- 12: "12",
3631
- 13: "13"
3632
- },
3633
- gridRow: {
3634
- auto: "auto",
3635
- "span-1": "span 1 / span 1",
3636
- "span-2": "span 2 / span 2",
3637
- "span-3": "span 3 / span 3",
3638
- "span-4": "span 4 / span 4",
3639
- "span-5": "span 5 / span 5",
3640
- "span-6": "span 6 / span 6",
3641
- "span-7": "span 7 / span 7",
3642
- "span-8": "span 8 / span 8",
3643
- "span-9": "span 9 / span 9",
3644
- "span-10": "span 10 / span 10",
3645
- "span-11": "span 11 / span 11",
3646
- "span-12": "span 12 / span 12",
3647
- "span-full": "1 / -1"
3648
- },
3649
- gridRowEnd: {
3650
- auto: "auto",
3651
- 1: "1",
3652
- 2: "2",
3653
- 3: "3",
3654
- 4: "4",
3655
- 5: "5",
3656
- 6: "6",
3657
- 7: "7",
3658
- 8: "8",
3659
- 9: "9",
3660
- 10: "10",
3661
- 11: "11",
3662
- 12: "12",
3663
- 13: "13"
3664
- },
3665
- gridRowStart: {
3666
- auto: "auto",
3667
- 1: "1",
3668
- 2: "2",
3669
- 3: "3",
3670
- 4: "4",
3671
- 5: "5",
3672
- 6: "6",
3673
- 7: "7",
3674
- 8: "8",
3675
- 9: "9",
3676
- 10: "10",
3677
- 11: "11",
3678
- 12: "12",
3679
- 13: "13"
3680
- },
3681
- gridTemplateColumns: {
3682
- none: "none",
3683
- subgrid: "subgrid",
3684
- 1: "repeat(1, minmax(0, 1fr))",
3685
- 2: "repeat(2, minmax(0, 1fr))",
3686
- 3: "repeat(3, minmax(0, 1fr))",
3687
- 4: "repeat(4, minmax(0, 1fr))",
3688
- 5: "repeat(5, minmax(0, 1fr))",
3689
- 6: "repeat(6, minmax(0, 1fr))",
3690
- 7: "repeat(7, minmax(0, 1fr))",
3691
- 8: "repeat(8, minmax(0, 1fr))",
3692
- 9: "repeat(9, minmax(0, 1fr))",
3693
- 10: "repeat(10, minmax(0, 1fr))",
3694
- 11: "repeat(11, minmax(0, 1fr))",
3695
- 12: "repeat(12, minmax(0, 1fr))"
3696
- },
3697
- gridTemplateRows: {
3698
- none: "none",
3699
- subgrid: "subgrid",
3700
- 1: "repeat(1, minmax(0, 1fr))",
3701
- 2: "repeat(2, minmax(0, 1fr))",
3702
- 3: "repeat(3, minmax(0, 1fr))",
3703
- 4: "repeat(4, minmax(0, 1fr))",
3704
- 5: "repeat(5, minmax(0, 1fr))",
3705
- 6: "repeat(6, minmax(0, 1fr))",
3706
- 7: "repeat(7, minmax(0, 1fr))",
3707
- 8: "repeat(8, minmax(0, 1fr))",
3708
- 9: "repeat(9, minmax(0, 1fr))",
3709
- 10: "repeat(10, minmax(0, 1fr))",
3710
- 11: "repeat(11, minmax(0, 1fr))",
3711
- 12: "repeat(12, minmax(0, 1fr))"
3712
- },
3713
- height: ({ theme: theme2 }) => ({
3714
- auto: "auto",
3715
- ...theme2("spacing"),
3716
- "1/2": "50%",
3717
- "1/3": "33.333333%",
3718
- "2/3": "66.666667%",
3719
- "1/4": "25%",
3720
- "2/4": "50%",
3721
- "3/4": "75%",
3722
- "1/5": "20%",
3723
- "2/5": "40%",
3724
- "3/5": "60%",
3725
- "4/5": "80%",
3726
- "1/6": "16.666667%",
3727
- "2/6": "33.333333%",
3728
- "3/6": "50%",
3729
- "4/6": "66.666667%",
3730
- "5/6": "83.333333%",
3731
- full: "100%",
3732
- screen: "100vh",
3733
- svh: "100svh",
3734
- lvh: "100lvh",
3735
- dvh: "100dvh",
3736
- min: "min-content",
3737
- max: "max-content",
3738
- fit: "fit-content"
3739
- }),
3740
- hueRotate: {
3741
- 0: "0deg",
3742
- 15: "15deg",
3743
- 30: "30deg",
3744
- 60: "60deg",
3745
- 90: "90deg",
3746
- 180: "180deg"
3747
- },
3748
- inset: ({ theme: theme2 }) => ({
3749
- auto: "auto",
3750
- ...theme2("spacing"),
3751
- "1/2": "50%",
3752
- "1/3": "33.333333%",
3753
- "2/3": "66.666667%",
3754
- "1/4": "25%",
3755
- "2/4": "50%",
3756
- "3/4": "75%",
3757
- full: "100%"
3758
- }),
3759
- invert: {
3760
- 0: "0",
3761
- DEFAULT: "100%"
3762
- },
3763
- keyframes: {
3764
- spin: {
3765
- to: {
3766
- transform: "rotate(360deg)"
3767
- }
3768
- },
3769
- ping: {
3770
- "75%, 100%": {
3771
- transform: "scale(2)",
3772
- opacity: "0"
3773
- }
3774
- },
3775
- pulse: {
3776
- "50%": {
3777
- opacity: ".5"
3778
- }
3779
- },
3780
- bounce: {
3781
- "0%, 100%": {
3782
- transform: "translateY(-25%)",
3783
- animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
3784
- },
3785
- "50%": {
3786
- transform: "none",
3787
- animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
3788
- }
3789
- }
3790
- },
3791
- letterSpacing: {
3792
- tighter: "-0.05em",
3793
- tight: "-0.025em",
3794
- normal: "0em",
3795
- wide: "0.025em",
3796
- wider: "0.05em",
3797
- widest: "0.1em"
3798
- },
3799
- lineHeight: {
3800
- none: "1",
3801
- tight: "1.25",
3802
- snug: "1.375",
3803
- normal: "1.5",
3804
- relaxed: "1.625",
3805
- loose: "2",
3806
- 3: ".75rem",
3807
- 4: "1rem",
3808
- 5: "1.25rem",
3809
- 6: "1.5rem",
3810
- 7: "1.75rem",
3811
- 8: "2rem",
3812
- 9: "2.25rem",
3813
- 10: "2.5rem"
3814
- },
3815
- listStyleType: {
3816
- none: "none",
3817
- disc: "disc",
3818
- decimal: "decimal"
3819
- },
3820
- listStyleImage: {
3821
- none: "none"
3822
- },
3823
- margin: ({ theme: theme2 }) => ({
3824
- auto: "auto",
3825
- ...theme2("spacing")
3826
- }),
3827
- lineClamp: {
3828
- 1: "1",
3829
- 2: "2",
3830
- 3: "3",
3831
- 4: "4",
3832
- 5: "5",
3833
- 6: "6"
3834
- },
3835
- maxHeight: ({ theme: theme2 }) => ({
3836
- ...theme2("spacing"),
3837
- none: "none",
3838
- full: "100%",
3839
- screen: "100vh",
3840
- svh: "100svh",
3841
- lvh: "100lvh",
3842
- dvh: "100dvh",
3843
- min: "min-content",
3844
- max: "max-content",
3845
- fit: "fit-content"
3846
- }),
3847
- maxWidth: ({ theme: theme2, breakpoints }) => ({
3848
- ...theme2("spacing"),
3849
- none: "none",
3850
- xs: "20rem",
3851
- sm: "24rem",
3852
- md: "28rem",
3853
- lg: "32rem",
3854
- xl: "36rem",
3855
- "2xl": "42rem",
3856
- "3xl": "48rem",
3857
- "4xl": "56rem",
3858
- "5xl": "64rem",
3859
- "6xl": "72rem",
3860
- "7xl": "80rem",
3861
- full: "100%",
3862
- min: "min-content",
3863
- max: "max-content",
3864
- fit: "fit-content",
3865
- prose: "65ch",
3866
- ...breakpoints(theme2("screens"))
3867
- }),
3868
- minHeight: ({ theme: theme2 }) => ({
3869
- ...theme2("spacing"),
3870
- full: "100%",
3871
- screen: "100vh",
3872
- svh: "100svh",
3873
- lvh: "100lvh",
3874
- dvh: "100dvh",
3875
- min: "min-content",
3876
- max: "max-content",
3877
- fit: "fit-content"
3878
- }),
3879
- minWidth: ({ theme: theme2 }) => ({
3880
- ...theme2("spacing"),
3881
- full: "100%",
3882
- min: "min-content",
3883
- max: "max-content",
3884
- fit: "fit-content"
3885
- }),
3886
- objectPosition: {
3887
- bottom: "bottom",
3888
- center: "center",
3889
- left: "left",
3890
- "left-bottom": "left bottom",
3891
- "left-top": "left top",
3892
- right: "right",
3893
- "right-bottom": "right bottom",
3894
- "right-top": "right top",
3895
- top: "top"
3896
- },
3897
- opacity: {
3898
- 0: "0",
3899
- 5: "0.05",
3900
- 10: "0.1",
3901
- 15: "0.15",
3902
- 20: "0.2",
3903
- 25: "0.25",
3904
- 30: "0.3",
3905
- 35: "0.35",
3906
- 40: "0.4",
3907
- 45: "0.45",
3908
- 50: "0.5",
3909
- 55: "0.55",
3910
- 60: "0.6",
3911
- 65: "0.65",
3912
- 70: "0.7",
3913
- 75: "0.75",
3914
- 80: "0.8",
3915
- 85: "0.85",
3916
- 90: "0.9",
3917
- 95: "0.95",
3918
- 100: "1"
3919
- },
3920
- order: {
3921
- first: "-9999",
3922
- last: "9999",
3923
- none: "0",
3924
- 1: "1",
3925
- 2: "2",
3926
- 3: "3",
3927
- 4: "4",
3928
- 5: "5",
3929
- 6: "6",
3930
- 7: "7",
3931
- 8: "8",
3932
- 9: "9",
3933
- 10: "10",
3934
- 11: "11",
3935
- 12: "12"
3936
- },
3937
- outlineColor: ({ theme: theme2 }) => theme2("colors"),
3938
- outlineOffset: {
3939
- 0: "0px",
3940
- 1: "1px",
3941
- 2: "2px",
3942
- 4: "4px",
3943
- 8: "8px"
3944
- },
3945
- outlineWidth: {
3946
- 0: "0px",
3947
- 1: "1px",
3948
- 2: "2px",
3949
- 4: "4px",
3950
- 8: "8px"
3951
- },
3952
- padding: ({ theme: theme2 }) => theme2("spacing"),
3953
- placeholderColor: ({ theme: theme2 }) => theme2("colors"),
3954
- placeholderOpacity: ({ theme: theme2 }) => theme2("opacity"),
3955
- ringColor: ({ theme: theme2 }) => ({
3956
- DEFAULT: theme2("colors.blue.500", "#3b82f6"),
3957
- ...theme2("colors")
3958
- }),
3959
- ringOffsetColor: ({ theme: theme2 }) => theme2("colors"),
3960
- ringOffsetWidth: {
3961
- 0: "0px",
3962
- 1: "1px",
3963
- 2: "2px",
3964
- 4: "4px",
3965
- 8: "8px"
3966
- },
3967
- ringOpacity: ({ theme: theme2 }) => ({
3968
- DEFAULT: "0.5",
3969
- ...theme2("opacity")
3970
- }),
3971
- ringWidth: {
3972
- DEFAULT: "3px",
3973
- 0: "0px",
3974
- 1: "1px",
3975
- 2: "2px",
3976
- 4: "4px",
3977
- 8: "8px"
3978
- },
3979
- rotate: {
3980
- 0: "0deg",
3981
- 1: "1deg",
3982
- 2: "2deg",
3983
- 3: "3deg",
3984
- 6: "6deg",
3985
- 12: "12deg",
3986
- 45: "45deg",
3987
- 90: "90deg",
3988
- 180: "180deg"
3989
- },
3990
- saturate: {
3991
- 0: "0",
3992
- 50: ".5",
3993
- 100: "1",
3994
- 150: "1.5",
3995
- 200: "2"
3996
- },
3997
- scale: {
3998
- 0: "0",
3999
- 50: ".5",
4000
- 75: ".75",
4001
- 90: ".9",
4002
- 95: ".95",
4003
- 100: "1",
4004
- 105: "1.05",
4005
- 110: "1.1",
4006
- 125: "1.25",
4007
- 150: "1.5"
4008
- },
4009
- screens: {
4010
- sm: "640px",
4011
- md: "768px",
4012
- lg: "1024px",
4013
- xl: "1280px",
4014
- "2xl": "1536px"
4015
- },
4016
- scrollMargin: ({ theme: theme2 }) => ({
4017
- ...theme2("spacing")
4018
- }),
4019
- scrollPadding: ({ theme: theme2 }) => theme2("spacing"),
4020
- sepia: {
4021
- 0: "0",
4022
- DEFAULT: "100%"
4023
- },
4024
- skew: {
4025
- 0: "0deg",
4026
- 1: "1deg",
4027
- 2: "2deg",
4028
- 3: "3deg",
4029
- 6: "6deg",
4030
- 12: "12deg"
4031
- },
4032
- space: ({ theme: theme2 }) => ({
4033
- ...theme2("spacing")
4034
- }),
4035
- spacing: {
4036
- px: "1px",
4037
- 0: "0px",
4038
- 0.5: "0.125rem",
4039
- 1: "0.25rem",
4040
- 1.5: "0.375rem",
4041
- 2: "0.5rem",
4042
- 2.5: "0.625rem",
4043
- 3: "0.75rem",
4044
- 3.5: "0.875rem",
4045
- 4: "1rem",
4046
- 5: "1.25rem",
4047
- 6: "1.5rem",
4048
- 7: "1.75rem",
4049
- 8: "2rem",
4050
- 9: "2.25rem",
4051
- 10: "2.5rem",
4052
- 11: "2.75rem",
4053
- 12: "3rem",
4054
- 14: "3.5rem",
4055
- 16: "4rem",
4056
- 20: "5rem",
4057
- 24: "6rem",
4058
- 28: "7rem",
4059
- 32: "8rem",
4060
- 36: "9rem",
4061
- 40: "10rem",
4062
- 44: "11rem",
4063
- 48: "12rem",
4064
- 52: "13rem",
4065
- 56: "14rem",
4066
- 60: "15rem",
4067
- 64: "16rem",
4068
- 72: "18rem",
4069
- 80: "20rem",
4070
- 96: "24rem"
4071
- },
4072
- stroke: ({ theme: theme2 }) => ({
4073
- none: "none",
4074
- ...theme2("colors")
4075
- }),
4076
- strokeWidth: {
4077
- 0: "0",
4078
- 1: "1",
4079
- 2: "2"
4080
- },
4081
- supports: {},
4082
- data: {},
4083
- textColor: ({ theme: theme2 }) => theme2("colors"),
4084
- textDecorationColor: ({ theme: theme2 }) => theme2("colors"),
4085
- textDecorationThickness: {
4086
- auto: "auto",
4087
- "from-font": "from-font",
4088
- 0: "0px",
4089
- 1: "1px",
4090
- 2: "2px",
4091
- 4: "4px",
4092
- 8: "8px"
4093
- },
4094
- textIndent: ({ theme: theme2 }) => ({
4095
- ...theme2("spacing")
4096
- }),
4097
- textOpacity: ({ theme: theme2 }) => theme2("opacity"),
4098
- textUnderlineOffset: {
4099
- auto: "auto",
4100
- 0: "0px",
4101
- 1: "1px",
4102
- 2: "2px",
4103
- 4: "4px",
4104
- 8: "8px"
4105
- },
4106
- transformOrigin: {
4107
- center: "center",
4108
- top: "top",
4109
- "top-right": "top right",
4110
- right: "right",
4111
- "bottom-right": "bottom right",
4112
- bottom: "bottom",
4113
- "bottom-left": "bottom left",
4114
- left: "left",
4115
- "top-left": "top left"
4116
- },
4117
- transitionDelay: {
4118
- 0: "0s",
4119
- 75: "75ms",
4120
- 100: "100ms",
4121
- 150: "150ms",
4122
- 200: "200ms",
4123
- 300: "300ms",
4124
- 500: "500ms",
4125
- 700: "700ms",
4126
- 1e3: "1000ms"
4127
- },
4128
- transitionDuration: {
4129
- DEFAULT: "150ms",
4130
- 0: "0s",
4131
- 75: "75ms",
4132
- 100: "100ms",
4133
- 150: "150ms",
4134
- 200: "200ms",
4135
- 300: "300ms",
4136
- 500: "500ms",
4137
- 700: "700ms",
4138
- 1e3: "1000ms"
4139
- },
4140
- transitionProperty: {
4141
- none: "none",
4142
- all: "all",
4143
- DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
4144
- colors: "color, background-color, border-color, text-decoration-color, fill, stroke",
4145
- opacity: "opacity",
4146
- shadow: "box-shadow",
4147
- transform: "transform"
4148
- },
4149
- transitionTimingFunction: {
4150
- DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)",
4151
- linear: "linear",
4152
- in: "cubic-bezier(0.4, 0, 1, 1)",
4153
- out: "cubic-bezier(0, 0, 0.2, 1)",
4154
- "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
4155
- },
4156
- translate: ({ theme: theme2 }) => ({
4157
- ...theme2("spacing"),
4158
- "1/2": "50%",
4159
- "1/3": "33.333333%",
4160
- "2/3": "66.666667%",
4161
- "1/4": "25%",
4162
- "2/4": "50%",
4163
- "3/4": "75%",
4164
- full: "100%"
4165
- }),
4166
- size: ({ theme: theme2 }) => ({
4167
- auto: "auto",
4168
- ...theme2("spacing"),
4169
- "1/2": "50%",
4170
- "1/3": "33.333333%",
4171
- "2/3": "66.666667%",
4172
- "1/4": "25%",
4173
- "2/4": "50%",
4174
- "3/4": "75%",
4175
- "1/5": "20%",
4176
- "2/5": "40%",
4177
- "3/5": "60%",
4178
- "4/5": "80%",
4179
- "1/6": "16.666667%",
4180
- "2/6": "33.333333%",
4181
- "3/6": "50%",
4182
- "4/6": "66.666667%",
4183
- "5/6": "83.333333%",
4184
- "1/12": "8.333333%",
4185
- "2/12": "16.666667%",
4186
- "3/12": "25%",
4187
- "4/12": "33.333333%",
4188
- "5/12": "41.666667%",
4189
- "6/12": "50%",
4190
- "7/12": "58.333333%",
4191
- "8/12": "66.666667%",
4192
- "9/12": "75%",
4193
- "10/12": "83.333333%",
4194
- "11/12": "91.666667%",
4195
- full: "100%",
4196
- min: "min-content",
4197
- max: "max-content",
4198
- fit: "fit-content"
4199
- }),
4200
- width: ({ theme: theme2 }) => ({
4201
- auto: "auto",
4202
- ...theme2("spacing"),
4203
- "1/2": "50%",
4204
- "1/3": "33.333333%",
4205
- "2/3": "66.666667%",
4206
- "1/4": "25%",
4207
- "2/4": "50%",
4208
- "3/4": "75%",
4209
- "1/5": "20%",
4210
- "2/5": "40%",
4211
- "3/5": "60%",
4212
- "4/5": "80%",
4213
- "1/6": "16.666667%",
4214
- "2/6": "33.333333%",
4215
- "3/6": "50%",
4216
- "4/6": "66.666667%",
4217
- "5/6": "83.333333%",
4218
- "1/12": "8.333333%",
4219
- "2/12": "16.666667%",
4220
- "3/12": "25%",
4221
- "4/12": "33.333333%",
4222
- "5/12": "41.666667%",
4223
- "6/12": "50%",
4224
- "7/12": "58.333333%",
4225
- "8/12": "66.666667%",
4226
- "9/12": "75%",
4227
- "10/12": "83.333333%",
4228
- "11/12": "91.666667%",
4229
- full: "100%",
4230
- screen: "100vw",
4231
- svw: "100svw",
4232
- lvw: "100lvw",
4233
- dvw: "100dvw",
4234
- min: "min-content",
4235
- max: "max-content",
4236
- fit: "fit-content"
4237
- }),
4238
- willChange: {
4239
- auto: "auto",
4240
- scroll: "scroll-position",
4241
- contents: "contents",
4242
- transform: "transform"
4243
- },
4244
- zIndex: {
4245
- auto: "auto",
4246
- 0: "0",
4247
- 10: "10",
4248
- 20: "20",
4249
- 30: "30",
4250
- 40: "40",
4251
- 50: "50"
4252
- }
4253
- },
4254
- plugins: []
4255
- };
4256
- (function(exports2) {
4257
- Object.defineProperty(exports2, "__esModule", {
4258
- value: true
4259
- });
4260
- Object.defineProperty(exports2, "default", {
4261
- enumerable: true,
4262
- get: function() {
4263
- return getAllConfigs2;
4264
- }
4265
- });
4266
- const _configfull = /* @__PURE__ */ _interop_require_default(config_full);
4267
- const _featureFlags = featureFlags;
4268
- function _interop_require_default(obj) {
4269
- return obj && obj.__esModule ? obj : {
4270
- default: obj
4271
- };
4272
- }
4273
- function getAllConfigs2(config2) {
4274
- var _config_presets;
4275
- const configs = ((_config_presets = config2 === null || config2 === void 0 ? void 0 : config2.presets) !== null && _config_presets !== void 0 ? _config_presets : [
4276
- _configfull.default
4277
- ]).slice().reverse().flatMap((preset) => getAllConfigs2(preset instanceof Function ? preset() : preset));
4278
- const features = {
4279
- // Add experimental configs here...
4280
- respectDefaultRingColorOpacity: {
4281
- theme: {
4282
- ringColor: ({ theme: theme2 }) => ({
4283
- DEFAULT: "#3b82f67f",
4284
- ...theme2("colors")
4285
- })
4286
- }
4287
- },
4288
- disableColorOpacityUtilitiesByDefault: {
4289
- corePlugins: {
4290
- backgroundOpacity: false,
4291
- borderOpacity: false,
4292
- divideOpacity: false,
4293
- placeholderOpacity: false,
4294
- ringOpacity: false,
4295
- textOpacity: false
4296
- }
4297
- }
4298
- };
4299
- const experimentals = Object.keys(features).filter((feature) => (0, _featureFlags.flagEnabled)(config2, feature)).map((feature) => features[feature]);
4300
- return [
4301
- config2,
4302
- ...experimentals,
4303
- ...configs
4304
- ];
4305
- }
4306
- })(getAllConfigs);
4307
- (function(exports2) {
4308
- Object.defineProperty(exports2, "__esModule", {
4309
- value: true
4310
- });
4311
- Object.defineProperty(exports2, "default", {
4312
- enumerable: true,
4313
- get: function() {
4314
- return resolveConfig2;
4315
- }
4316
- });
4317
- const _resolveConfig = /* @__PURE__ */ _interop_require_default(resolveConfig$2);
4318
- const _getAllConfigs = /* @__PURE__ */ _interop_require_default(getAllConfigs);
4319
- function _interop_require_default(obj) {
4320
- return obj && obj.__esModule ? obj : {
4321
- default: obj
4322
- };
4323
- }
4324
- function resolveConfig2(...configs) {
4325
- let [, ...defaultConfigs] = (0, _getAllConfigs.default)(configs[0]);
4326
- return (0, _resolveConfig.default)([
4327
- ...configs,
4328
- ...defaultConfigs
4329
- ]);
4330
- }
4331
- })(resolveConfig$3);
4332
- let resolveConfig = resolveConfig$3;
4333
- var resolveConfig_1 = (resolveConfig.__esModule ? resolveConfig : { default: resolveConfig }).default;
4334
- const resolveConfig$1 = /* @__PURE__ */ getDefaultExportFromCjs(resolveConfig_1);
4335
- const config = resolveConfig$1(config$1.config);
7
+ const config = resolveConfig(config$1.config);
4336
8
  const theme = config.theme;
4337
9
  const colors = theme == null ? void 0 : theme.colors;
4338
10
  (_a = theme == null ? void 0 : theme.extend) == null ? void 0 : _a.colors;
@@ -4340,9 +12,9 @@ const screens = theme == null ? void 0 : theme.screens;
4340
12
  const getColor = (name) => {
4341
13
  return colors == null ? void 0 : colors[name];
4342
14
  };
4343
- const getColorDeep = (color2) => {
4344
- const baseColor = color2.split("-").slice(0, -1).join("-");
4345
- const colorNumber = String(color2.split("-").pop());
15
+ const getColorDeep = (color) => {
16
+ const baseColor = color.split("-").slice(0, -1).join("-");
17
+ const colorNumber = String(color.split("-").pop());
4346
18
  return lodashEs.get(getColor(baseColor), colorNumber);
4347
19
  };
4348
20
  const getScreen = (size) => {