Brunobkr commited on
Commit
ca207fb
·
verified ·
1 Parent(s): 9e51689

Upload folder using huggingface_hub (part 47)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. tools/ui/node_modules/prettier-plugin-svelte/plugin.js +0 -0
  2. tools/ui/node_modules/prettier-plugin-svelte/plugin.js.map +0 -0
  3. tools/ui/node_modules/prettier-plugin-tailwindcss/LICENSE +21 -0
  4. tools/ui/node_modules/prettier-plugin-tailwindcss/README.md +328 -0
  5. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs +34 -0
  6. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/index.d.mts +50 -0
  7. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/index.mjs +1208 -0
  8. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/jiti-Bb1dT6Cw.mjs +0 -0
  9. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@babel/types/LICENSE +22 -0
  10. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@ianvs/prettier-plugin-sort-imports/LICENSE +201 -0
  11. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@prettier/plugin-hermes/LICENSE +7 -0
  12. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@prettier/plugin-oxc/LICENSE +7 -0
  13. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@prettier/plugin-pug/LICENSE +21 -0
  14. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@shopify/prettier-plugin-liquid/README.md +158 -0
  15. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@trivago/prettier-plugin-sort-imports/LICENSE +201 -0
  16. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@types/node/LICENSE +21 -0
  17. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@zackad/prettier-plugin-twig/LICENSE +201 -0
  18. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/clear-module/license +9 -0
  19. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/dedent/LICENSE.md +20 -0
  20. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/enhanced-resolve/LICENSE +20 -0
  21. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/escalade/license +9 -0
  22. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/fast-glob/LICENSE +21 -0
  23. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/import-sort-style-module/LICENSE +13 -0
  24. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/jiti/LICENSE +21 -0
  25. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/line-column/LICENSE +19 -0
  26. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/marko/README.md +161 -0
  27. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/oxlint-tsgolint/LICENSE +22 -0
  28. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/oxlint/LICENSE +22 -0
  29. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/postcss-import/LICENSE +20 -0
  30. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/postcss/LICENSE +20 -0
  31. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-astro/LICENSE +48 -0
  32. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-css-order/license.md +15 -0
  33. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-jsdoc/LICENSE +21 -0
  34. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-marko/LICENSE +21 -0
  35. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-multiline-arrays/LICENSE-CC0 +121 -0
  36. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-organize-attributes/LICENSE +21 -0
  37. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-organize-imports/license +21 -0
  38. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-sort-imports/README.md +96 -0
  39. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-svelte/LICENSE +21 -0
  40. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/pug-lexer/LICENSE +19 -0
  41. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/tsdown/LICENSE +22 -0
  42. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs +0 -0
  43. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs +210 -0
  44. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/sorter.d.mts +78 -0
  45. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/sorter.mjs +3 -0
  46. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs +79 -0
  47. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs +0 -0
  48. tools/ui/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs +0 -0
  49. tools/ui/node_modules/prettier-plugin-tailwindcss/package.json +170 -0
  50. tools/ui/node_modules/pretty-bytes/index.d.ts +140 -0
tools/ui/node_modules/prettier-plugin-svelte/plugin.js ADDED
The diff for this file is too large to render. See raw diff
 
tools/ui/node_modules/prettier-plugin-svelte/plugin.js.map ADDED
The diff for this file is too large to render. See raw diff
 
tools/ui/node_modules/prettier-plugin-tailwindcss/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Tailwind Labs Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/README.md ADDED
@@ -0,0 +1,328 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <img src="https://raw.githubusercontent.com/tailwindlabs/prettier-plugin-tailwindcss/main/.github/banner.jpg" alt="prettier-plugin-tailwindcss" />
2
+
3
+ A [Prettier v3+](https://prettier.io/) plugin for Tailwind CSS v3.0+ that automatically sorts classes based on [our recommended class order](https://tailwindcss.com/blog/automatic-class-sorting-with-prettier#how-classes-are-sorted).
4
+
5
+ ## Installation
6
+
7
+ To get started, install `prettier-plugin-tailwindcss` as a dev-dependency:
8
+
9
+ ```sh
10
+ npm install -D prettier prettier-plugin-tailwindcss
11
+ ```
12
+
13
+ Then add the plugin to your [Prettier configuration](https://prettier.io/docs/en/configuration.html):
14
+
15
+ ```json5
16
+ // .prettierrc
17
+ {
18
+ "plugins": ["prettier-plugin-tailwindcss"]
19
+ }
20
+ ```
21
+
22
+ When using a JavaScript config, you can import the types for IntelliSense:
23
+
24
+ ```js
25
+ // prettier.config.js
26
+
27
+ /** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */
28
+ export default {
29
+ plugins: ["prettier-plugin-tailwindcss"],
30
+ }
31
+ ```
32
+
33
+ ## Upgrading to v0.5.x
34
+
35
+ As of v0.5.x, this plugin now requires Prettier v3 and is ESM-only. This means it cannot be loaded via `require()`. For more information see our [upgrade guide](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues/207#issuecomment-1698071122).
36
+
37
+ ## Options
38
+
39
+ ### Specifying your Tailwind stylesheet path (Tailwind CSS v4+)
40
+
41
+ When using Tailwind CSS v4 you must specify your CSS file entry point, which includes your theme, custom utilities, and other Tailwind configuration options. To do this, use the `tailwindStylesheet` option in your Prettier configuration.
42
+
43
+ Note that paths are resolved relative to the Prettier configuration file.
44
+
45
+ ```json5
46
+ // .prettierrc
47
+ {
48
+ "tailwindStylesheet": "./resources/css/app.css"
49
+ }
50
+ ```
51
+
52
+ ### Specifying your Tailwind JavaScript config path (Tailwind CSS v3)
53
+
54
+ To ensure that the class sorting takes into consideration any of your project's Tailwind customizations, it needs access to your [Tailwind configuration file](https://tailwindcss.com/docs/configuration) (`tailwind.config.js`).
55
+
56
+ By default the plugin will look for this file in the same directory as your Prettier configuration file. However, if your Tailwind configuration is somewhere else, you can specify this using the `tailwindConfig` option in your Prettier configuration.
57
+
58
+ Note that paths are resolved relative to the Prettier configuration file.
59
+
60
+ ```json5
61
+ // .prettierrc
62
+ {
63
+ "tailwindConfig": "./styles/tailwind.config.js"
64
+ }
65
+ ```
66
+
67
+ If a local configuration file cannot be found the plugin will fallback to the default Tailwind configuration.
68
+
69
+ ## Sorting non-standard attributes
70
+
71
+ By default this plugin sorts classes in the `class` attribute, any framework-specific equivalents like `className`, `:class`, `[ngClass]`, and any Tailwind `@apply` directives.
72
+
73
+ You can sort additional attributes using the `tailwindAttributes` option, which takes an array of attribute names:
74
+
75
+ ```json5
76
+ // .prettierrc
77
+ {
78
+ "tailwindAttributes": ["myClassList"]
79
+ }
80
+ ```
81
+
82
+ With this configuration, any classes found in the `myClassList` attribute will be sorted:
83
+
84
+ ```jsx
85
+ function MyButton({ children }) {
86
+ return (
87
+ <button myClassList="rounded bg-blue-500 px-4 py-2 text-base text-white">
88
+ {children}
89
+ </button>
90
+ );
91
+ }
92
+ ```
93
+
94
+ ### Using regex patterns
95
+
96
+ You can also use regular expressions to match multiple attributes. Patterns should be enclosed in forward slashes. Note that JS regex literals are not supported with Prettier:
97
+
98
+ ```json5
99
+ // .prettierrc
100
+ {
101
+ "tailwindAttributes": ["myClassList", "/data-.*/"]
102
+ }
103
+ ```
104
+
105
+ This example will sort classes in the `myClassList` attribute as well as any attribute starting with `data-`:
106
+
107
+ ```jsx
108
+ function MyButton({ children }) {
109
+ return (
110
+ <button
111
+ myClassList="rounded bg-blue-500 px-4 py-2 text-base text-white"
112
+ data-theme="dark:bg-gray-800 bg-white"
113
+ data-classes="flex items-center"
114
+ >
115
+ {children}
116
+ </button>
117
+ );
118
+ }
119
+ ```
120
+
121
+ ## Sorting classes in function calls
122
+
123
+ In addition to sorting classes in attributes, you can also sort classes in strings provided to function calls. This is useful when working with libraries like [clsx](https://github.com/lukeed/clsx) or [cva](https://cva.style/).
124
+
125
+ You can sort classes in function calls using the `tailwindFunctions` option, which takes a list of function names:
126
+
127
+ ```json5
128
+ // .prettierrc
129
+ {
130
+ "tailwindFunctions": ["clsx"]
131
+ }
132
+ ```
133
+
134
+ With this configuration, any classes in `clsx()` function calls will be sorted:
135
+
136
+ ```jsx
137
+ import clsx from 'clsx'
138
+
139
+ function MyButton({ isHovering, children }) {
140
+ let classes = clsx(
141
+ 'rounded bg-blue-500 px-4 py-2 text-base text-white',
142
+ {
143
+ 'bg-blue-700 text-gray-100': isHovering,
144
+ },
145
+ )
146
+
147
+ return (
148
+ <button className={classes}>
149
+ {children}
150
+ </button>
151
+ )
152
+ }
153
+ ```
154
+
155
+ ## Sorting classes in template literals
156
+
157
+ This plugin also enables sorting of classes in tagged template literals.
158
+
159
+ You can sort classes in template literals using the `tailwindFunctions` option, which takes a list of function names:
160
+
161
+ ```json5
162
+ // .prettierrc
163
+ {
164
+ "tailwindFunctions": ["tw"],
165
+ }
166
+ ```
167
+
168
+ With this configuration, any classes in template literals tagged with `tw` will automatically be sorted:
169
+
170
+ ```jsx
171
+ import { View, Text } from 'react-native'
172
+ import tw from 'twrnc'
173
+
174
+ function MyScreen() {
175
+ return (
176
+ <View style={tw`bg-white p-4 dark:bg-black`}>
177
+ <Text style={tw`text-md text-black dark:text-white`}>Hello World</Text>
178
+ </View>
179
+ )
180
+ }
181
+ ```
182
+
183
+ This feature can be used with third-party libraries like `twrnc` or you can create your own tagged template by defining this "identity" function:
184
+
185
+ ```js
186
+ const tw = (strings, ...values) => String.raw({ raw: strings }, ...values)
187
+ ```
188
+
189
+ Once added, tag your strings with the function and the plugin will sort them:
190
+
191
+ ```js
192
+ const mySortedClasses = tw`bg-white p-4 dark:bg-black`
193
+ ```
194
+
195
+ ## Public API
196
+
197
+ If you want to use the Tailwind class sorting logic outside of Prettier, import from the
198
+ `sorter` entrypoint:
199
+
200
+ ```js
201
+ import { createSorter } from 'prettier-plugin-tailwindcss/sorter'
202
+
203
+ let sorter = await createSorter({
204
+ base: '/path/to/project',
205
+ stylesheetPath: './app.css',
206
+ })
207
+
208
+ // Sort HTML class attributes (space-separated strings)
209
+ let sorted = sorter.sortClassAttributes([
210
+ 'sm:bg-tomato bg-red-500',
211
+ 'p-4 m-2'
212
+ ])
213
+ // Returns: ['bg-red-500 sm:bg-tomato', 'm-2 p-4']
214
+
215
+ // Sort class lists (arrays of class names)
216
+ let sortedLists = sorter.sortClassLists([
217
+ ['sm:bg-tomato', 'bg-red-500'],
218
+ ['p-4', 'm-2']
219
+ ])
220
+ // Returns: [['bg-red-500', 'sm:bg-tomato'], ['m-2', 'p-4']]
221
+ ```
222
+
223
+ ### API Options
224
+
225
+ The `createSorter` function accepts the following options:
226
+
227
+ - **`base`** (optional): The directory used to resolve relative file paths. Defaults to the current working directory.
228
+ - **`filepath`** (optional): The path to the file being formatted. When provided, Tailwind CSS is resolved relative to this path.
229
+ - **`configPath`** (optional): Path to the Tailwind CSS config file (v3). Paths are resolved relative to `base`.
230
+ - **`stylesheetPath`** (optional): Path to the CSS stylesheet used by Tailwind CSS (v4+). Paths are resolved relative to `base`.
231
+ - **`preserveWhitespace`** (optional): Whether to preserve whitespace around classes. Default: `false`.
232
+ - **`preserveDuplicates`** (optional): Whether to preserve duplicate classes. Default: `false`.
233
+
234
+ ### Sorter Methods
235
+
236
+ The sorter object returned by `createSorter` has two methods:
237
+
238
+ - **`sortClassAttributes(classes: string[]): string[]`**
239
+ Sorts one or more HTML class attributes. Each element should be a space-separated string of class names (like the value of an HTML `class` attribute).
240
+
241
+ - **`sortClassLists(classes: string[][]): (string | null)[][]`**
242
+ Sorts one or more class lists. Each element should be an array of individual class names. When removing duplicates (default behavior), duplicate classes are replaced with `null` in the output.
243
+
244
+ ### Using regex patterns
245
+
246
+ Like the `tailwindAttributes` option, the `tailwindFunctions` option also supports regular expressions to match multiple function names. Patterns should be enclosed in forward slashes. Note that JS regex literals are not supported with Prettier.
247
+
248
+ ## Preserving whitespace
249
+
250
+ This plugin automatically removes unnecessary whitespace between classes to ensure consistent formatting. If you prefer to preserve whitespace, you can use the `tailwindPreserveWhitespace` option:
251
+
252
+ ```json5
253
+ // .prettierrc
254
+ {
255
+ "tailwindPreserveWhitespace": true,
256
+ }
257
+ ```
258
+
259
+ With this configuration, any whitespace surrounding classes will be preserved:
260
+
261
+ ```jsx
262
+ import clsx from 'clsx'
263
+
264
+ function MyButton({ isHovering, children }) {
265
+ return (
266
+ <button className=" rounded bg-blue-500 px-4 py-2 text-base text-white ">
267
+ {children}
268
+ </button>
269
+ )
270
+ }
271
+ ```
272
+
273
+ ## Preserving duplicate classes
274
+
275
+ This plugin automatically removes duplicate classes from your class lists. However, this can cause issues in some templating languages, like Fluid or Blade, where we can't distinguish between classes and the templating syntax.
276
+
277
+ If removing duplicate classes is causing issues in your project, you can use the `tailwindPreserveDuplicates` option to disable this behavior:
278
+
279
+ ```json5
280
+ // .prettierrc
281
+ {
282
+ "tailwindPreserveDuplicates": true,
283
+ }
284
+ ```
285
+
286
+ With this configuration, anything we perceive as duplicate classes will be preserved:
287
+
288
+ ```html
289
+ <div
290
+ class="
291
+ {f:if(condition: isCompact, then: 'grid-cols-3', else: 'grid-cols-5')}
292
+ {f:if(condition: isDark, then: 'bg-black/50', else: 'bg-white/50')}
293
+ grid gap-4 p-4
294
+ "
295
+ >
296
+ </div>
297
+ ```
298
+
299
+ ## Compatibility with other Prettier plugins
300
+
301
+ This plugin uses Prettier APIs that can only be used by one plugin at a time, making it incompatible with other Prettier plugins implemented the same way. To solve this we've added explicit per-plugin workarounds that enable compatibility with the following Prettier plugins:
302
+
303
+ - `@ianvs/prettier-plugin-sort-imports`
304
+ - `@prettier/plugin-pug`
305
+ - `@shopify/prettier-plugin-liquid`
306
+ - `@trivago/prettier-plugin-sort-imports`
307
+ - `prettier-plugin-astro`
308
+ - `prettier-plugin-css-order`
309
+ - `prettier-plugin-jsdoc`
310
+ - `prettier-plugin-multiline-arrays`
311
+ - `prettier-plugin-organize-attributes`
312
+ - `prettier-plugin-organize-imports`
313
+ - `prettier-plugin-svelte`
314
+ - `prettier-plugin-sort-imports`
315
+
316
+ One limitation with this approach is that `prettier-plugin-tailwindcss` *must* be loaded last.
317
+
318
+ ```json5
319
+ // .prettierrc
320
+ {
321
+ // ..
322
+ "plugins": [
323
+ "prettier-plugin-svelte",
324
+ "prettier-plugin-organize-imports",
325
+ "prettier-plugin-tailwindcss" // MUST come last
326
+ ]
327
+ }
328
+ ```
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { createRequire } from "node:module";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
9
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
10
+ var __exportAll = (all, symbols) => {
11
+ let target = {};
12
+ for (var name in all) __defProp(target, name, {
13
+ get: all[name],
14
+ enumerable: true
15
+ });
16
+ if (symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
17
+ return target;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
+ key = keys[i];
22
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
+ get: ((k) => from[k]).bind(null, key),
24
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
+ });
26
+ }
27
+ return to;
28
+ };
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
34
+ export { __toESM as a, __require as i, __esmMin as n, __exportAll as r, __commonJSMin as t };
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/index.d.mts ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as prettier0 from "prettier";
2
+ import { SupportOption } from "prettier";
3
+
4
+ //#region src/options.d.ts
5
+ declare const options: Record<string, SupportOption>;
6
+ //#endregion
7
+ //#region src/index.d.ts
8
+ declare const parsers: Record<string, prettier0.Parser<any> | (() => Promise<prettier0.Parser<any> | undefined>) | undefined>, printers: Record<string, prettier0.Printer<any> | (() => Promise<prettier0.Printer<any> | undefined>) | undefined>;
9
+ interface PluginOptions {
10
+ /**
11
+ * Path to the Tailwind config file.
12
+ */
13
+ tailwindConfig?: string;
14
+ /**
15
+ * Path to the CSS stylesheet used by Tailwind CSS (v4+)
16
+ */
17
+ tailwindStylesheet?: string;
18
+ /**
19
+ * Path to the CSS stylesheet used by Tailwind CSS (v4+)
20
+ *
21
+ * @deprecated Use `tailwindStylesheet` instead
22
+ */
23
+ tailwindEntryPoint?: string;
24
+ /**
25
+ * List of custom function and tag names that contain classes.
26
+ *
27
+ * Default: []
28
+ */
29
+ tailwindFunctions?: string[];
30
+ /**
31
+ * List of custom attributes that contain classes.
32
+ *
33
+ * Default: []
34
+ */
35
+ tailwindAttributes?: string[];
36
+ /**
37
+ * Preserve whitespace around Tailwind classes when sorting.
38
+ *
39
+ * Default: false
40
+ */
41
+ tailwindPreserveWhitespace?: boolean;
42
+ /**
43
+ * Preserve duplicate classes inside a class list when sorting.
44
+ *
45
+ * Default: false
46
+ */
47
+ tailwindPreserveDuplicates?: boolean;
48
+ }
49
+ //#endregion
50
+ export { PluginOptions, options, parsers, printers };
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/index.mjs ADDED
@@ -0,0 +1,1208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { a as __toESM, t as __commonJSMin } from "./chunk-DSjvVL_1.mjs";
2
+ import { a as error, i as sortClasses, n as getTailwindConfig$1, o as warn, r as sortClassList } from "./sorter-BZkvDMjt.mjs";
3
+ import { a as expiringMap, n as maybeResolve, t as loadIfExists } from "./resolve-pWjAK-4f.mjs";
4
+ import { i as visit, n as cacheForDirs, r as spliceChangesIntoString } from "./utils-D8dQkKEd.mjs";
5
+ import * as prettierParserAngular from "prettier/plugins/angular";
6
+ import * as prettierParserBabel from "prettier/plugins/babel";
7
+ import * as prettierParserCss from "prettier/plugins/postcss";
8
+ import { isAbsolute } from "path";
9
+ import * as path from "node:path";
10
+ import prettier from "prettier";
11
+ var require_isarray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12
+ var toString = {}.toString;
13
+ module.exports = Array.isArray || function(arr) {
14
+ return toString.call(arr) == "[object Array]";
15
+ };
16
+ }));
17
+ /*!
18
+ * isobject <https://github.com/jonschlinkert/isobject>
19
+ *
20
+ * Copyright (c) 2014-2015, Jon Schlinkert.
21
+ * Licensed under the MIT License.
22
+ */
23
+ var require_isobject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
24
+ var isArray = require_isarray();
25
+ module.exports = function isObject(val) {
26
+ return val != null && typeof val === "object" && isArray(val) === false;
27
+ };
28
+ }));
29
+ var import_line_column = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
30
+ var isArray = require_isarray();
31
+ var isObject = require_isobject();
32
+ Array.prototype.slice;
33
+ module.exports = LineColumnFinder;
34
+ function LineColumnFinder(str, options) {
35
+ if (!(this instanceof LineColumnFinder)) {
36
+ if (typeof options === "number") return new LineColumnFinder(str).fromIndex(options);
37
+ return new LineColumnFinder(str, options);
38
+ }
39
+ this.str = str || "";
40
+ this.lineToIndex = buildLineToIndex(this.str);
41
+ options = options || {};
42
+ this.origin = typeof options.origin === "undefined" ? 1 : options.origin;
43
+ }
44
+ LineColumnFinder.prototype.fromIndex = function(index) {
45
+ if (index < 0 || index >= this.str.length || isNaN(index)) return null;
46
+ var line = findLowerIndexInRangeArray(index, this.lineToIndex);
47
+ return {
48
+ line: line + this.origin,
49
+ col: index - this.lineToIndex[line] + this.origin
50
+ };
51
+ };
52
+ LineColumnFinder.prototype.toIndex = function(line, column) {
53
+ if (typeof column === "undefined") {
54
+ if (isArray(line) && line.length >= 2) return this.toIndex(line[0], line[1]);
55
+ if (isObject(line) && "line" in line && ("col" in line || "column" in line)) return this.toIndex(line.line, "col" in line ? line.col : line.column);
56
+ return -1;
57
+ }
58
+ if (isNaN(line) || isNaN(column)) return -1;
59
+ line -= this.origin;
60
+ column -= this.origin;
61
+ if (line >= 0 && column >= 0 && line < this.lineToIndex.length) {
62
+ var lineIndex = this.lineToIndex[line];
63
+ var nextIndex = line === this.lineToIndex.length - 1 ? this.str.length : this.lineToIndex[line + 1];
64
+ if (column < nextIndex - lineIndex) return lineIndex + column;
65
+ }
66
+ return -1;
67
+ };
68
+ function buildLineToIndex(str) {
69
+ var lines = str.split("\n"), lineToIndex = new Array(lines.length), index = 0;
70
+ for (var i = 0, l = lines.length; i < l; i++) {
71
+ lineToIndex[i] = index;
72
+ index += lines[i].length + 1;
73
+ }
74
+ return lineToIndex;
75
+ }
76
+ function findLowerIndexInRangeArray(value, arr) {
77
+ if (value >= arr[arr.length - 1]) return arr.length - 1;
78
+ var min = 0, max = arr.length - 2, mid;
79
+ while (min < max) {
80
+ mid = min + (max - min >> 1);
81
+ if (value < arr[mid]) max = mid - 1;
82
+ else if (value >= arr[mid + 1]) min = mid + 1;
83
+ else {
84
+ min = mid;
85
+ break;
86
+ }
87
+ }
88
+ return min;
89
+ }
90
+ })))(), 1);
91
+ let prettierConfigCache = expiringMap(1e4);
92
+ async function resolvePrettierConfigDir(filePath, inputDir) {
93
+ let cached = prettierConfigCache.get(inputDir);
94
+ if (cached !== void 0) return cached ?? process.cwd();
95
+ const resolve = async () => {
96
+ try {
97
+ return await prettier.resolveConfigFile(filePath);
98
+ } catch (err) {
99
+ error("prettier-config-not-found", "Failed to resolve Prettier Config");
100
+ error("prettier-config-not-found-err", err);
101
+ return null;
102
+ }
103
+ };
104
+ let prettierConfig = await resolve();
105
+ if (prettierConfig) {
106
+ let configDir = path.dirname(prettierConfig);
107
+ cacheForDirs(prettierConfigCache, inputDir, configDir, configDir);
108
+ return configDir;
109
+ } else {
110
+ prettierConfigCache.set(inputDir, null);
111
+ return process.cwd();
112
+ }
113
+ }
114
+ async function getTailwindConfig(options) {
115
+ let cwd = process.cwd();
116
+ let inputDir = options.filepath ? path.dirname(options.filepath) : cwd;
117
+ let needsPrettierConfig = options.tailwindConfig && !path.isAbsolute(options.tailwindConfig) || options.tailwindStylesheet && !path.isAbsolute(options.tailwindStylesheet) || options.tailwindEntryPoint && !path.isAbsolute(options.tailwindEntryPoint);
118
+ let configDir;
119
+ if (needsPrettierConfig) configDir = await resolvePrettierConfigDir(options.filepath, inputDir);
120
+ else configDir = cwd;
121
+ let configPath = options.tailwindConfig && !options.tailwindConfig.endsWith(".css") ? options.tailwindConfig : void 0;
122
+ let stylesheetPath = options.tailwindStylesheet;
123
+ if (!stylesheetPath && options.tailwindEntryPoint) {
124
+ warn("entrypoint-is-deprecated", configDir, "Deprecated: Use the `tailwindStylesheet` option for v4 projects instead of `tailwindEntryPoint`.");
125
+ stylesheetPath = options.tailwindEntryPoint;
126
+ }
127
+ if (!stylesheetPath && options.tailwindConfig && options.tailwindConfig.endsWith(".css")) {
128
+ warn("config-as-css-is-deprecated", configDir, "Deprecated: Use the `tailwindStylesheet` option for v4 projects instead of `tailwindConfig`.");
129
+ stylesheetPath = options.tailwindConfig;
130
+ }
131
+ return getTailwindConfig$1({
132
+ base: configDir,
133
+ filepath: options.filepath,
134
+ configPath,
135
+ stylesheetPath,
136
+ packageName: options.tailwindPackageName
137
+ });
138
+ }
139
+ const options = {
140
+ tailwindConfig: {
141
+ type: "string",
142
+ category: "Tailwind CSS",
143
+ description: "Path to Tailwind configuration file"
144
+ },
145
+ tailwindEntryPoint: {
146
+ type: "string",
147
+ category: "Tailwind CSS",
148
+ description: "Path to the CSS entrypoint in your Tailwind project (v4+)"
149
+ },
150
+ tailwindStylesheet: {
151
+ type: "string",
152
+ category: "Tailwind CSS",
153
+ description: "Path to the CSS stylesheet in your Tailwind project (v4+)"
154
+ },
155
+ tailwindAttributes: {
156
+ type: "string",
157
+ array: true,
158
+ default: [{ value: [] }],
159
+ category: "Tailwind CSS",
160
+ description: "List of attributes/props that contain sortable Tailwind classes"
161
+ },
162
+ tailwindFunctions: {
163
+ type: "string",
164
+ array: true,
165
+ default: [{ value: [] }],
166
+ category: "Tailwind CSS",
167
+ description: "List of functions and tagged templates that contain sortable Tailwind classes"
168
+ },
169
+ tailwindPreserveWhitespace: {
170
+ type: "boolean",
171
+ default: false,
172
+ category: "Tailwind CSS",
173
+ description: "Preserve whitespace around Tailwind classes when sorting"
174
+ },
175
+ tailwindPreserveDuplicates: {
176
+ type: "boolean",
177
+ default: false,
178
+ category: "Tailwind CSS",
179
+ description: "Preserve duplicate classes inside a class list when sorting"
180
+ },
181
+ tailwindPackageName: {
182
+ type: "string",
183
+ default: "tailwindcss",
184
+ category: "Tailwind CSS",
185
+ description: "The package name to use when loading Tailwind CSS"
186
+ }
187
+ };
188
+ function createMatcher(options, parser, defaults) {
189
+ let staticAttrs = new Set(defaults.staticAttrs);
190
+ let dynamicAttrs = new Set(defaults.dynamicAttrs);
191
+ let functions = new Set(defaults.functions);
192
+ let staticAttrsRegex = [...defaults.staticAttrsRegex];
193
+ let functionsRegex = [...defaults.functionsRegex];
194
+ for (let attr of options.tailwindAttributes ?? []) {
195
+ let regex = parseRegex(attr);
196
+ if (regex) staticAttrsRegex.push(regex);
197
+ else if (parser === "vue" && attr.startsWith(":")) staticAttrs.add(attr.slice(1));
198
+ else if (parser === "vue" && attr.startsWith("v-bind:")) staticAttrs.add(attr.slice(7));
199
+ else if (parser === "vue" && attr.startsWith("v-")) dynamicAttrs.add(attr);
200
+ else if (parser === "angular" && attr.startsWith("[") && attr.endsWith("]")) staticAttrs.add(attr.slice(1, -1));
201
+ else staticAttrs.add(attr);
202
+ }
203
+ for (let attr of staticAttrs) if (parser === "vue") {
204
+ dynamicAttrs.add(`:${attr}`);
205
+ dynamicAttrs.add(`v-bind:${attr}`);
206
+ } else if (parser === "angular") dynamicAttrs.add(`[${attr}]`);
207
+ for (let fn of options.tailwindFunctions ?? []) {
208
+ let regex = parseRegex(fn);
209
+ if (regex) functionsRegex.push(regex);
210
+ else functions.add(fn);
211
+ }
212
+ return {
213
+ hasStaticAttr: (name) => {
214
+ if (nameFromDynamicAttr(name, parser)) return false;
215
+ return hasMatch(name, staticAttrs, staticAttrsRegex);
216
+ },
217
+ hasDynamicAttr: (name) => {
218
+ if (hasMatch(name, dynamicAttrs, [])) return true;
219
+ let newName = nameFromDynamicAttr(name, parser);
220
+ if (!newName) return false;
221
+ return hasMatch(newName, staticAttrs, staticAttrsRegex);
222
+ },
223
+ hasFunction: (name) => hasMatch(name, functions, functionsRegex)
224
+ };
225
+ }
226
+ function nameFromDynamicAttr(name, parser) {
227
+ if (parser === "vue") {
228
+ if (name.startsWith(":")) return name.slice(1);
229
+ if (name.startsWith("v-bind:")) return name.slice(7);
230
+ if (name.startsWith("v-")) return name;
231
+ return null;
232
+ }
233
+ if (parser === "angular") {
234
+ if (name.startsWith("[") && name.endsWith("]")) return name.slice(1, -1);
235
+ return null;
236
+ }
237
+ return null;
238
+ }
239
+ function hasMatch(name, list, patterns) {
240
+ if (list.has(name)) return true;
241
+ for (let regex of patterns) if (regex.test(name)) return true;
242
+ return false;
243
+ }
244
+ function parseRegex(str) {
245
+ if (!str.startsWith("/")) return null;
246
+ let lastSlash = str.lastIndexOf("/");
247
+ if (lastSlash <= 0) return null;
248
+ try {
249
+ let pattern = str.slice(1, lastSlash);
250
+ let flags = str.slice(lastSlash + 1);
251
+ return new RegExp(pattern, flags);
252
+ } catch {
253
+ return null;
254
+ }
255
+ }
256
+ function createPlugin(transforms) {
257
+ let parsers = Object.create(null);
258
+ let printers = Object.create(null);
259
+ for (let opts of transforms) {
260
+ for (let [name, meta] of Object.entries(opts.parsers)) parsers[name] = async () => {
261
+ var _plugin$parsers;
262
+ let original = (_plugin$parsers = (await loadPlugins(meta.load ?? opts.load ?? [])).parsers) === null || _plugin$parsers === void 0 ? void 0 : _plugin$parsers[name];
263
+ if (!original) return;
264
+ parsers[name] = await createParser({
265
+ name,
266
+ original,
267
+ opts
268
+ });
269
+ return parsers[name];
270
+ };
271
+ for (let [name, _meta] of Object.entries(opts.printers ?? {})) printers[name] = async () => {
272
+ var _plugin$printers;
273
+ let original = (_plugin$printers = (await loadPlugins(opts.load ?? [])).printers) === null || _plugin$printers === void 0 ? void 0 : _plugin$printers[name];
274
+ if (!original) return;
275
+ printers[name] = createPrinter({
276
+ original,
277
+ opts
278
+ });
279
+ return printers[name];
280
+ };
281
+ }
282
+ return {
283
+ parsers,
284
+ printers
285
+ };
286
+ }
287
+ async function createParser({ name, original, opts }) {
288
+ let parser = { ...original };
289
+ async function load(options) {
290
+ let parser = { ...original };
291
+ for (const pluginName of opts.compatible || []) {
292
+ var _plugin$parsers2;
293
+ let plugin = await findEnabledPlugin(options, pluginName);
294
+ if (plugin === null || plugin === void 0 || (_plugin$parsers2 = plugin.parsers) === null || _plugin$parsers2 === void 0 ? void 0 : _plugin$parsers2[name]) Object.assign(parser, plugin.parsers[name]);
295
+ }
296
+ return parser;
297
+ }
298
+ parser.preprocess = async (code, options) => {
299
+ let parser = await load(options);
300
+ return parser.preprocess ? parser.preprocess(code, options) : code;
301
+ };
302
+ parser.parse = async (code, options) => {
303
+ let ast = await (await load(options)).parse(code, options, options);
304
+ let env = await loadTailwindCSS({
305
+ opts,
306
+ options
307
+ });
308
+ transformAst({
309
+ ast,
310
+ env,
311
+ opts,
312
+ options
313
+ });
314
+ options.__tailwindcss__ = env;
315
+ return ast;
316
+ };
317
+ return parser;
318
+ }
319
+ function createPrinter({ original, opts }) {
320
+ let printer = { ...original };
321
+ let reprint = opts.reprint;
322
+ if (reprint) {
323
+ printer.print = new Proxy(original.print, { apply(target, thisArg, args) {
324
+ let [path, options] = args;
325
+ let env = options.__tailwindcss__;
326
+ reprint(path, {
327
+ ...env,
328
+ options
329
+ });
330
+ return Reflect.apply(target, thisArg, args);
331
+ } });
332
+ if (original.embed) printer.embed = new Proxy(original.embed, { apply(target, thisArg, args) {
333
+ let [path, options] = args;
334
+ let env = options.__tailwindcss__;
335
+ reprint(path, {
336
+ ...env,
337
+ options
338
+ });
339
+ return Reflect.apply(target, thisArg, args);
340
+ } });
341
+ }
342
+ return printer;
343
+ }
344
+ async function loadPlugins(fns) {
345
+ let plugin = {
346
+ parsers: Object.create(null),
347
+ printers: Object.create(null),
348
+ options: Object.create(null),
349
+ defaultOptions: Object.create(null),
350
+ languages: []
351
+ };
352
+ for (let source of fns) {
353
+ let loaded = await loadPlugin(source);
354
+ Object.assign(plugin.parsers, loaded.parsers ?? {});
355
+ Object.assign(plugin.printers, loaded.printers ?? {});
356
+ Object.assign(plugin.options, loaded.options ?? {});
357
+ Object.assign(plugin.defaultOptions, loaded.defaultOptions ?? {});
358
+ plugin.languages = [...plugin.languages ?? [], ...loaded.languages ?? []];
359
+ }
360
+ return plugin;
361
+ }
362
+ const EMPTY_PLUGIN = {
363
+ parsers: {},
364
+ printers: {},
365
+ languages: [],
366
+ options: {},
367
+ defaultOptions: {}
368
+ };
369
+ async function loadPlugin(source) {
370
+ if ("importer" in source && typeof source.importer === "function") return normalizePlugin(await source.importer());
371
+ return source;
372
+ }
373
+ function normalizePlugin(source) {
374
+ if (source === null || typeof source !== "object") return EMPTY_PLUGIN;
375
+ let plugin = source.default;
376
+ return plugin && typeof plugin === "object" ? plugin : source;
377
+ }
378
+ function findEnabledPlugin(options, name) {
379
+ for (let plugin of options.plugins) {
380
+ if (plugin instanceof URL) {
381
+ if (plugin.protocol !== "file:") continue;
382
+ if (plugin.hostname !== "") continue;
383
+ plugin = plugin.pathname;
384
+ }
385
+ if (typeof plugin !== "string") {
386
+ if (!plugin.name) continue;
387
+ plugin = plugin.name;
388
+ }
389
+ if (plugin === name || isAbsolute(plugin) && plugin.includes(name) && maybeResolve(name) === plugin) return loadIfExists(name);
390
+ }
391
+ }
392
+ async function loadTailwindCSS({ options, opts }) {
393
+ var _parsers$parser, _parsers$parser2;
394
+ let parsers = opts.parsers;
395
+ let parser = options.parser;
396
+ return {
397
+ context: await getTailwindConfig(options),
398
+ matcher: createMatcher(options, parser, {
399
+ staticAttrs: new Set(((_parsers$parser = parsers[parser]) === null || _parsers$parser === void 0 ? void 0 : _parsers$parser.staticAttrs) ?? opts.staticAttrs ?? []),
400
+ dynamicAttrs: new Set(((_parsers$parser2 = parsers[parser]) === null || _parsers$parser2 === void 0 ? void 0 : _parsers$parser2.dynamicAttrs) ?? opts.dynamicAttrs ?? []),
401
+ functions: /* @__PURE__ */ new Set(),
402
+ staticAttrsRegex: [],
403
+ dynamicAttrsRegex: [],
404
+ functionsRegex: []
405
+ }),
406
+ options,
407
+ changes: []
408
+ };
409
+ }
410
+ function transformAst({ ast, env, opts }) {
411
+ let transform = opts.transform;
412
+ if (transform) transform(ast, env);
413
+ }
414
+ function defineTransform(opts) {
415
+ return opts;
416
+ }
417
+ const ESCAPE_SEQUENCE_PATTERN = /\\(['"\\nrtbfv0-7xuU])/g;
418
+ function tryParseAngularAttribute(value, env) {
419
+ try {
420
+ return prettierParserAngular.parsers.__ng_directive.parse(value, env.options);
421
+ } catch (err) {
422
+ console.warn("prettier-plugin-tailwindcss: Unable to parse angular directive");
423
+ console.warn(err);
424
+ return null;
425
+ }
426
+ }
427
+ function transformDynamicAngularAttribute(attr, env) {
428
+ let directiveAst = tryParseAngularAttribute(attr.value, env);
429
+ if (!directiveAst) return;
430
+ let changes = [];
431
+ visit(directiveAst, {
432
+ StringLiteral(node, path) {
433
+ if (!node.value) return;
434
+ let collapseWhitespace = canCollapseWhitespaceIn(path, env);
435
+ changes.push({
436
+ start: node.start + 1,
437
+ end: node.end - 1,
438
+ before: node.value,
439
+ after: sortClasses(node.value, {
440
+ env,
441
+ collapseWhitespace
442
+ })
443
+ });
444
+ },
445
+ TemplateLiteral(node, path) {
446
+ if (!node.quasis.length) return;
447
+ let collapseWhitespace = canCollapseWhitespaceIn(path, env);
448
+ for (let i = 0; i < node.quasis.length; i++) {
449
+ let quasi = node.quasis[i];
450
+ changes.push({
451
+ start: quasi.start,
452
+ end: quasi.end,
453
+ before: quasi.value.raw,
454
+ after: sortClasses(quasi.value.raw, {
455
+ env,
456
+ ignoreFirst: i > 0 && !/^\s/.test(quasi.value.raw),
457
+ ignoreLast: i < node.expressions.length && !/\s$/.test(quasi.value.raw),
458
+ collapseWhitespace: collapseWhitespace ? {
459
+ start: collapseWhitespace.start && i === 0,
460
+ end: collapseWhitespace.end && i >= node.expressions.length
461
+ } : false
462
+ })
463
+ });
464
+ }
465
+ }
466
+ });
467
+ attr.value = spliceChangesIntoString(attr.value, changes);
468
+ }
469
+ function transformDynamicJsAttribute(attr, env) {
470
+ let { matcher } = env;
471
+ let source = `let __prettier_temp__ = ${attr.value}`;
472
+ let ast = prettierParserBabel.parsers["babel-ts"].parse(source, env.options);
473
+ let didChange = false;
474
+ let changes = [];
475
+ function findConcatEntry(path) {
476
+ return path.find((entry) => {
477
+ var _entry$parent;
478
+ return ((_entry$parent = entry.parent) === null || _entry$parent === void 0 ? void 0 : _entry$parent.type) === "BinaryExpression" && entry.parent.operator === "+";
479
+ });
480
+ }
481
+ function addChange(start, end, after) {
482
+ if (start == null || end == null) return;
483
+ let offsetStart = start - 24;
484
+ let offsetEnd = end - 24;
485
+ if (offsetStart < 0 || offsetEnd < 0) return;
486
+ didChange = true;
487
+ changes.push({
488
+ start: offsetStart,
489
+ end: offsetEnd,
490
+ before: attr.value.slice(offsetStart, offsetEnd),
491
+ after
492
+ });
493
+ }
494
+ visit(ast, {
495
+ StringLiteral(node, path) {
496
+ let concat = findConcatEntry(path);
497
+ if (sortStringLiteral(node, {
498
+ env,
499
+ collapseWhitespace: {
500
+ start: (concat === null || concat === void 0 ? void 0 : concat.key) !== "right",
501
+ end: (concat === null || concat === void 0 ? void 0 : concat.key) !== "left"
502
+ }
503
+ })) {
504
+ var _node$extra;
505
+ let raw = ((_node$extra = node.extra) === null || _node$extra === void 0 ? void 0 : _node$extra.raw) ?? node.raw;
506
+ if (typeof raw === "string") addChange(node.start, node.end, raw);
507
+ }
508
+ },
509
+ Literal(node, path) {
510
+ if (!isStringLiteral(node)) return;
511
+ let concat = findConcatEntry(path);
512
+ if (sortStringLiteral(node, {
513
+ env,
514
+ collapseWhitespace: {
515
+ start: (concat === null || concat === void 0 ? void 0 : concat.key) !== "right",
516
+ end: (concat === null || concat === void 0 ? void 0 : concat.key) !== "left"
517
+ }
518
+ })) {
519
+ var _node$extra2;
520
+ let raw = ((_node$extra2 = node.extra) === null || _node$extra2 === void 0 ? void 0 : _node$extra2.raw) ?? node.raw;
521
+ if (typeof raw === "string") addChange(node.start, node.end, raw);
522
+ }
523
+ },
524
+ TemplateLiteral(node, path) {
525
+ let concat = findConcatEntry(path);
526
+ let originalQuasis = node.quasis.map((quasi) => quasi.value.raw);
527
+ if (sortTemplateLiteral(node, {
528
+ env,
529
+ collapseWhitespace: {
530
+ start: (concat === null || concat === void 0 ? void 0 : concat.key) !== "right",
531
+ end: (concat === null || concat === void 0 ? void 0 : concat.key) !== "left"
532
+ }
533
+ })) for (let i = 0; i < node.quasis.length; i++) {
534
+ let quasi = node.quasis[i];
535
+ if (quasi.value.raw !== originalQuasis[i]) addChange(quasi.start, quasi.end, quasi.value.raw);
536
+ }
537
+ },
538
+ TaggedTemplateExpression(node, path) {
539
+ if (!isSortableTemplateExpression(node, matcher)) return;
540
+ let concat = findConcatEntry(path);
541
+ let originalQuasis = node.quasi.quasis.map((quasi) => quasi.value.raw);
542
+ if (sortTemplateLiteral(node.quasi, {
543
+ env,
544
+ collapseWhitespace: {
545
+ start: (concat === null || concat === void 0 ? void 0 : concat.key) !== "right",
546
+ end: (concat === null || concat === void 0 ? void 0 : concat.key) !== "left"
547
+ }
548
+ })) for (let i = 0; i < node.quasi.quasis.length; i++) {
549
+ let quasi = node.quasi.quasis[i];
550
+ if (quasi.value.raw !== originalQuasis[i]) addChange(quasi.start, quasi.end, quasi.value.raw);
551
+ }
552
+ }
553
+ });
554
+ if (didChange) attr.value = spliceChangesIntoString(attr.value, changes);
555
+ }
556
+ function transformHtml(ast, env) {
557
+ let { matcher } = env;
558
+ let { parser } = env.options;
559
+ for (let attr of ast.attrs ?? []) if (matcher.hasStaticAttr(attr.name)) attr.value = sortClasses(attr.value, { env });
560
+ else if (matcher.hasDynamicAttr(attr.name)) {
561
+ if (!/[`'"]/.test(attr.value)) continue;
562
+ if (parser === "angular") transformDynamicAngularAttribute(attr, env);
563
+ else transformDynamicJsAttribute(attr, env);
564
+ }
565
+ for (let child of ast.children ?? []) transformHtml(child, env);
566
+ }
567
+ function transformGlimmer(ast, env) {
568
+ let { matcher } = env;
569
+ visit(ast, {
570
+ AttrNode(attr, _path, meta) {
571
+ if (matcher.hasStaticAttr(attr.name) && attr.value) meta.sortTextNodes = true;
572
+ },
573
+ TextNode(node, path, meta) {
574
+ if (!meta.sortTextNodes) return;
575
+ let concat = path.find((entry) => {
576
+ return entry.parent && entry.parent.type === "ConcatStatement";
577
+ });
578
+ let siblings = {
579
+ prev: concat === null || concat === void 0 ? void 0 : concat.parent.parts[concat.index - 1],
580
+ next: concat === null || concat === void 0 ? void 0 : concat.parent.parts[concat.index + 1]
581
+ };
582
+ node.chars = sortClasses(node.chars, {
583
+ env,
584
+ ignoreFirst: siblings.prev && !/^\s/.test(node.chars),
585
+ ignoreLast: siblings.next && !/\s$/.test(node.chars),
586
+ collapseWhitespace: {
587
+ start: !siblings.prev,
588
+ end: !siblings.next
589
+ }
590
+ });
591
+ },
592
+ StringLiteral(node, path, meta) {
593
+ if (!meta.sortTextNodes) return;
594
+ let concat = path.find((entry) => {
595
+ return entry.parent && entry.parent.type === "SubExpression" && entry.parent.path.original === "concat";
596
+ });
597
+ node.value = sortClasses(node.value, {
598
+ env,
599
+ ignoreLast: Boolean(concat) && !/[^\S\r\n]$/.test(node.value),
600
+ collapseWhitespace: {
601
+ start: false,
602
+ end: !concat
603
+ }
604
+ });
605
+ }
606
+ });
607
+ }
608
+ function transformLiquid(ast, env) {
609
+ let { matcher } = env;
610
+ function isClassAttr(node) {
611
+ return Array.isArray(node.name) ? node.name.every((n) => n.type === "TextNode" && matcher.hasStaticAttr(n.value)) : matcher.hasStaticAttr(node.name);
612
+ }
613
+ function hasSurroundingQuotes(str) {
614
+ let start = str[0];
615
+ return start === str[str.length - 1] && (start === "\"" || start === "'" || start === "`");
616
+ }
617
+ let sources = [];
618
+ let changes = [];
619
+ function sortAttribute(attr) {
620
+ for (let i = 0; i < attr.value.length; i++) {
621
+ let node = attr.value[i];
622
+ if (node.type === "TextNode") {
623
+ let after = sortClasses(node.value, {
624
+ env,
625
+ ignoreFirst: i > 0 && !/^\s/.test(node.value),
626
+ ignoreLast: i < attr.value.length - 1 && !/\s$/.test(node.value),
627
+ removeDuplicates: false,
628
+ collapseWhitespace: false
629
+ });
630
+ changes.push({
631
+ start: node.position.start,
632
+ end: node.position.end,
633
+ before: node.value,
634
+ after
635
+ });
636
+ } else if ((node.type === "LiquidDrop" || node.type === "LiquidVariableOutput") && typeof node.markup === "object" && node.markup.type === "LiquidVariable") visit(node.markup.expression, { String(node) {
637
+ let pos = { ...node.position };
638
+ if (hasSurroundingQuotes(node.source.slice(pos.start, pos.end))) {
639
+ pos.start += 1;
640
+ pos.end -= 1;
641
+ }
642
+ let after = sortClasses(node.value, { env });
643
+ changes.push({
644
+ start: pos.start,
645
+ end: pos.end,
646
+ before: node.value,
647
+ after
648
+ });
649
+ } });
650
+ }
651
+ }
652
+ visit(ast, {
653
+ LiquidTag(node) {
654
+ sources.push(node);
655
+ },
656
+ HtmlElement(node) {
657
+ sources.push(node);
658
+ },
659
+ AttrSingleQuoted(node) {
660
+ if (isClassAttr(node)) {
661
+ sources.push(node);
662
+ sortAttribute(node);
663
+ }
664
+ },
665
+ AttrDoubleQuoted(node) {
666
+ if (isClassAttr(node)) {
667
+ sources.push(node);
668
+ sortAttribute(node);
669
+ }
670
+ }
671
+ });
672
+ for (let node of sources) node.source = spliceChangesIntoString(node.source, changes);
673
+ }
674
+ function sortStringLiteral(node, { env, removeDuplicates, collapseWhitespace = {
675
+ start: true,
676
+ end: true
677
+ } }) {
678
+ var _node$extra3, _node$extra4;
679
+ let result = sortClasses(node.value, {
680
+ env,
681
+ removeDuplicates,
682
+ collapseWhitespace
683
+ });
684
+ if (!(result !== node.value)) return false;
685
+ node.value = result;
686
+ let raw = ((_node$extra3 = node.extra) === null || _node$extra3 === void 0 ? void 0 : _node$extra3.raw) ?? node.raw;
687
+ let quote = raw[0];
688
+ let originalRawContent = raw.slice(1, -1);
689
+ let originalValue = ((_node$extra4 = node.extra) === null || _node$extra4 === void 0 ? void 0 : _node$extra4.rawValue) ?? node.value;
690
+ if (node.extra) {
691
+ if (originalRawContent !== originalValue && originalValue.includes("\\")) result = result.replace(ESCAPE_SEQUENCE_PATTERN, "\\\\$1");
692
+ node.extra = {
693
+ ...node.extra,
694
+ rawValue: result,
695
+ raw: quote + result + quote
696
+ };
697
+ } else node.raw = quote + result + quote;
698
+ return true;
699
+ }
700
+ function isStringLiteral(node) {
701
+ return node.type === "StringLiteral" || node.type === "Literal" && typeof node.value === "string";
702
+ }
703
+ function sortTemplateLiteral(node, { env, removeDuplicates, collapseWhitespace = {
704
+ start: true,
705
+ end: true
706
+ } }) {
707
+ let didChange = false;
708
+ for (let i = 0; i < node.quasis.length; i++) {
709
+ let quasi = node.quasis[i];
710
+ let same = quasi.value.raw === quasi.value.cooked;
711
+ let originalRaw = quasi.value.raw;
712
+ let originalCooked = quasi.value.cooked;
713
+ quasi.value.raw = sortClasses(quasi.value.raw, {
714
+ env,
715
+ removeDuplicates,
716
+ ignoreFirst: i > 0 && !/^\s/.test(quasi.value.raw),
717
+ ignoreLast: i < node.expressions.length && !/\s$/.test(quasi.value.raw),
718
+ collapseWhitespace: collapseWhitespace && {
719
+ start: collapseWhitespace && collapseWhitespace.start && i === 0,
720
+ end: collapseWhitespace && collapseWhitespace.end && i >= node.expressions.length
721
+ }
722
+ });
723
+ quasi.value.cooked = same ? quasi.value.raw : sortClasses(quasi.value.cooked, {
724
+ env,
725
+ ignoreFirst: i > 0 && !/^\s/.test(quasi.value.cooked),
726
+ ignoreLast: i < node.expressions.length && !/\s$/.test(quasi.value.cooked),
727
+ removeDuplicates,
728
+ collapseWhitespace: collapseWhitespace && {
729
+ start: collapseWhitespace && collapseWhitespace.start && i === 0,
730
+ end: collapseWhitespace && collapseWhitespace.end && i >= node.expressions.length
731
+ }
732
+ });
733
+ if (quasi.value.raw !== originalRaw || quasi.value.cooked !== originalCooked) didChange = true;
734
+ }
735
+ return didChange;
736
+ }
737
+ function isSortableTemplateExpression(node, matcher) {
738
+ return isSortableExpression(node.tag, matcher);
739
+ }
740
+ function isSortableCallExpression(node, matcher) {
741
+ var _node$arguments;
742
+ if (!((_node$arguments = node.arguments) === null || _node$arguments === void 0 ? void 0 : _node$arguments.length)) return false;
743
+ return isSortableExpression(node.callee, matcher);
744
+ }
745
+ function isSortableExpression(node, matcher) {
746
+ while (node.type === "CallExpression" || node.type === "MemberExpression") if (node.type === "CallExpression") node = node.callee;
747
+ else if (node.type === "MemberExpression") node = node.object;
748
+ if (node.type === "Identifier") return matcher.hasFunction(node.name);
749
+ return false;
750
+ }
751
+ function canCollapseWhitespaceIn(path, env) {
752
+ if (env.options.tailwindPreserveWhitespace) return false;
753
+ let start = true;
754
+ let end = true;
755
+ for (let entry of path) {
756
+ if (!entry.parent) continue;
757
+ if (entry.parent.type === "BinaryExpression" && entry.parent.operator === "+") {
758
+ start && (start = entry.key !== "right");
759
+ end && (end = entry.key !== "left");
760
+ }
761
+ if (entry.parent.type === "TemplateLiteral") {
762
+ let nodeStart = entry.node.start ?? null;
763
+ let nodeEnd = entry.node.end ?? null;
764
+ for (let quasi of entry.parent.quasis) {
765
+ let quasiStart = quasi.start ?? null;
766
+ let quasiEnd = quasi.end ?? null;
767
+ if (nodeStart !== null && quasiEnd !== null && nodeStart - quasiEnd <= 2) start && (start = /^\s/.test(quasi.value.raw));
768
+ if (nodeEnd !== null && quasiStart !== null && nodeEnd - quasiStart <= 2) end && (end = /\s$/.test(quasi.value.raw));
769
+ }
770
+ }
771
+ }
772
+ return {
773
+ start,
774
+ end
775
+ };
776
+ }
777
+ function transformJavaScript(ast, env) {
778
+ let { matcher } = env;
779
+ function sortInside(ast) {
780
+ visit(ast, (node, path) => {
781
+ let collapseWhitespace = canCollapseWhitespaceIn(path, env);
782
+ if (isStringLiteral(node)) sortStringLiteral(node, {
783
+ env,
784
+ collapseWhitespace
785
+ });
786
+ else if (node.type === "TemplateLiteral") sortTemplateLiteral(node, {
787
+ env,
788
+ collapseWhitespace
789
+ });
790
+ else if (node.type === "TaggedTemplateExpression") {
791
+ if (isSortableTemplateExpression(node, matcher)) sortTemplateLiteral(node.quasi, {
792
+ env,
793
+ collapseWhitespace
794
+ });
795
+ }
796
+ });
797
+ }
798
+ visit(ast, {
799
+ JSXAttribute(node) {
800
+ node = node;
801
+ if (!node.value) return;
802
+ if (typeof node.name.name !== "string") return;
803
+ if (!matcher.hasStaticAttr(node.name.name)) return;
804
+ if (isStringLiteral(node.value)) sortStringLiteral(node.value, { env });
805
+ else if (node.value.type === "JSXExpressionContainer") sortInside(node.value);
806
+ },
807
+ CallExpression(node) {
808
+ node = node;
809
+ if (!isSortableCallExpression(node, matcher)) return;
810
+ node.arguments.forEach((arg) => sortInside(arg));
811
+ },
812
+ TaggedTemplateExpression(node, path) {
813
+ node = node;
814
+ if (!isSortableTemplateExpression(node, matcher)) return;
815
+ let collapseWhitespace = canCollapseWhitespaceIn(path, env);
816
+ sortTemplateLiteral(node.quasi, {
817
+ env,
818
+ collapseWhitespace
819
+ });
820
+ }
821
+ });
822
+ }
823
+ function transformCss(ast, env) {
824
+ function tryParseAtRuleParams(name, params) {
825
+ if (typeof params !== "string") return params;
826
+ try {
827
+ return prettierParserCss.parsers.css.parse(`@import ${params};`, { ...env.options }).nodes[0].params;
828
+ } catch (err) {
829
+ console.warn(`[prettier-plugin-tailwindcss] Unable to parse at rule`);
830
+ console.warn({
831
+ name,
832
+ params
833
+ });
834
+ console.warn(err);
835
+ }
836
+ return params;
837
+ }
838
+ ast.walk((node) => {
839
+ if (node.name === "plugin" || node.name === "config" || node.name === "source") node.params = tryParseAtRuleParams(node.name, node.params);
840
+ if (node.type === "css-atrule" && node.name === "apply") {
841
+ let isImportant = /\s+(?:!important|#{(['"]*)!important\1})\s*$/.test(node.params);
842
+ let classList = node.params;
843
+ let prefix = "";
844
+ let suffix = "";
845
+ if (classList.startsWith("~\"") && classList.endsWith("\"")) {
846
+ prefix = "~\"";
847
+ suffix = "\"";
848
+ classList = classList.slice(2, -1);
849
+ isImportant = false;
850
+ } else if (classList.startsWith("~'") && classList.endsWith("'")) {
851
+ prefix = "~'";
852
+ suffix = "'";
853
+ classList = classList.slice(2, -1);
854
+ isImportant = false;
855
+ }
856
+ classList = sortClasses(classList, {
857
+ env,
858
+ ignoreLast: isImportant,
859
+ collapseWhitespace: {
860
+ start: false,
861
+ end: !isImportant
862
+ }
863
+ });
864
+ node.params = `${prefix}${classList}${suffix}`;
865
+ }
866
+ });
867
+ }
868
+ function transformAstro(ast, env) {
869
+ let { matcher } = env;
870
+ if (ast.type === "element" || ast.type === "custom-element" || ast.type === "component") {
871
+ for (let attr of ast.attributes ?? []) if (matcher.hasStaticAttr(attr.name) && attr.type === "attribute" && attr.kind === "quoted") attr.value = sortClasses(attr.value, { env });
872
+ else if (matcher.hasDynamicAttr(attr.name) && attr.type === "attribute" && attr.kind === "expression" && typeof attr.value === "string") transformDynamicJsAttribute(attr, env);
873
+ }
874
+ for (let child of ast.children ?? []) transformAstro(child, env);
875
+ }
876
+ function transformMarko(ast, env) {
877
+ let { matcher } = env;
878
+ const nodesToVisit = [ast];
879
+ while (nodesToVisit.length > 0) {
880
+ const currentNode = nodesToVisit.pop();
881
+ switch (currentNode.type) {
882
+ case "File":
883
+ nodesToVisit.push(currentNode.program);
884
+ break;
885
+ case "Program":
886
+ nodesToVisit.push(...currentNode.body);
887
+ break;
888
+ case "MarkoTag":
889
+ nodesToVisit.push(...currentNode.attributes);
890
+ nodesToVisit.push(currentNode.body);
891
+ break;
892
+ case "MarkoTagBody":
893
+ nodesToVisit.push(...currentNode.body);
894
+ break;
895
+ case "MarkoAttribute":
896
+ if (!matcher.hasStaticAttr(currentNode.name)) break;
897
+ switch (currentNode.value.type) {
898
+ case "ArrayExpression":
899
+ const classList = currentNode.value.elements;
900
+ for (const node of classList) if (node.type === "StringLiteral") node.value = sortClasses(node.value, { env });
901
+ break;
902
+ case "StringLiteral":
903
+ currentNode.value.value = sortClasses(currentNode.value.value, { env });
904
+ break;
905
+ }
906
+ break;
907
+ }
908
+ }
909
+ }
910
+ function transformTwig(ast, env) {
911
+ let { matcher } = env;
912
+ for (let child of ast.expressions ?? []) transformTwig(child, env);
913
+ visit(ast, {
914
+ Attribute(node, _path, meta) {
915
+ if (!matcher.hasStaticAttr(node.name.name)) return;
916
+ meta.sortTextNodes = true;
917
+ },
918
+ CallExpression(node, _path, meta) {
919
+ while (node.type === "CallExpression" || node.type === "MemberExpression") if (node.type === "CallExpression") node = node.callee;
920
+ else if (node.type === "MemberExpression") node = node.property;
921
+ if (node.type === "Identifier") {
922
+ if (!matcher.hasFunction(node.name)) return;
923
+ }
924
+ meta.sortTextNodes = true;
925
+ },
926
+ StringLiteral(node, path, meta) {
927
+ if (!meta.sortTextNodes) return;
928
+ const concat = path.find((entry) => {
929
+ return entry.parent && (entry.parent.type === "BinaryConcatExpression" || entry.parent.type === "BinaryAddExpression");
930
+ });
931
+ node.value = sortClasses(node.value, {
932
+ env,
933
+ ignoreFirst: (concat === null || concat === void 0 ? void 0 : concat.key) === "right" && !/^[^\S\r\n]/.test(node.value),
934
+ ignoreLast: (concat === null || concat === void 0 ? void 0 : concat.key) === "left" && !/[^\S\r\n]$/.test(node.value),
935
+ collapseWhitespace: {
936
+ start: (concat === null || concat === void 0 ? void 0 : concat.key) !== "right",
937
+ end: (concat === null || concat === void 0 ? void 0 : concat.key) !== "left"
938
+ }
939
+ });
940
+ }
941
+ });
942
+ }
943
+ function transformPug(ast, env) {
944
+ let { matcher } = env;
945
+ for (const token of ast.tokens) if (token.type === "attribute" && matcher.hasStaticAttr(token.name)) token.val = [
946
+ token.val.slice(0, 1),
947
+ sortClasses(token.val.slice(1, -1), { env }),
948
+ token.val.slice(-1)
949
+ ].join("");
950
+ let startIdx = -1;
951
+ let endIdx = -1;
952
+ let ranges = [];
953
+ for (let i = 0; i < ast.tokens.length; i++) if (ast.tokens[i].type === "class") {
954
+ startIdx = startIdx === -1 ? i : startIdx;
955
+ endIdx = i;
956
+ } else if (startIdx !== -1) {
957
+ ranges.push([startIdx, endIdx]);
958
+ startIdx = -1;
959
+ endIdx = -1;
960
+ }
961
+ if (startIdx !== -1) {
962
+ ranges.push([startIdx, endIdx]);
963
+ startIdx = -1;
964
+ endIdx = -1;
965
+ }
966
+ for (const [startIdx, endIdx] of ranges) {
967
+ const { classList } = sortClassList({
968
+ classList: ast.tokens.slice(startIdx, endIdx + 1).map((token) => token.val),
969
+ api: env.context,
970
+ removeDuplicates: false
971
+ });
972
+ for (let i = startIdx; i <= endIdx; i++) ast.tokens[i].val = classList[i - startIdx];
973
+ }
974
+ }
975
+ function transformSvelte(ast, env) {
976
+ let { matcher, changes } = env;
977
+ for (let attr of ast.attributes ?? []) {
978
+ if (!matcher.hasStaticAttr(attr.name) || attr.type !== "Attribute") continue;
979
+ for (let i = 0; i < attr.value.length; i++) {
980
+ let value = attr.value[i];
981
+ if (value.type === "Text") {
982
+ let same = value.raw === value.data;
983
+ value.raw = sortClasses(value.raw, {
984
+ env,
985
+ ignoreFirst: i > 0 && !/^\s/.test(value.raw),
986
+ ignoreLast: i < attr.value.length - 1 && !/\s$/.test(value.raw),
987
+ removeDuplicates: true,
988
+ collapseWhitespace: false
989
+ });
990
+ value.data = same ? value.raw : sortClasses(value.data, {
991
+ env,
992
+ ignoreFirst: i > 0 && !/^\s/.test(value.data),
993
+ ignoreLast: i < attr.value.length - 1 && !/\s$/.test(value.data),
994
+ removeDuplicates: true,
995
+ collapseWhitespace: false
996
+ });
997
+ } else if (value.type === "MustacheTag") visit(value.expression, {
998
+ Literal(node) {
999
+ if (isStringLiteral(node)) {
1000
+ let before = node.raw;
1001
+ if (sortStringLiteral(node, {
1002
+ env,
1003
+ removeDuplicates: false,
1004
+ collapseWhitespace: false
1005
+ })) changes.push({
1006
+ before,
1007
+ after: node.raw,
1008
+ start: node.loc.start,
1009
+ end: node.loc.end
1010
+ });
1011
+ }
1012
+ },
1013
+ TemplateLiteral(node) {
1014
+ let before = node.quasis.map((quasi) => quasi.value.raw);
1015
+ if (sortTemplateLiteral(node, {
1016
+ env,
1017
+ removeDuplicates: false,
1018
+ collapseWhitespace: false
1019
+ })) for (let [idx, quasi] of node.quasis.entries()) changes.push({
1020
+ before: before[idx],
1021
+ after: quasi.value.raw,
1022
+ start: quasi.loc.start,
1023
+ end: quasi.loc.end
1024
+ });
1025
+ }
1026
+ });
1027
+ }
1028
+ }
1029
+ for (let child of ast.children ?? []) transformSvelte(child, env);
1030
+ if (ast.type === "IfBlock") {
1031
+ var _ast$else;
1032
+ for (let child of ((_ast$else = ast.else) === null || _ast$else === void 0 ? void 0 : _ast$else.children) ?? []) transformSvelte(child, env);
1033
+ }
1034
+ if (ast.type === "AwaitBlock") {
1035
+ let nodes = [
1036
+ ast.pending,
1037
+ ast.then,
1038
+ ast.catch
1039
+ ];
1040
+ for (let child of nodes) transformSvelte(child, env);
1041
+ }
1042
+ if (ast.html) transformSvelte(ast.html, env);
1043
+ }
1044
+ const { parsers, printers } = createPlugin([
1045
+ defineTransform({
1046
+ staticAttrs: ["class"],
1047
+ load: [{
1048
+ name: "prettier/plugins/html",
1049
+ importer: () => import("prettier/plugins/html")
1050
+ }],
1051
+ compatible: ["prettier-plugin-organize-attributes"],
1052
+ parsers: {
1053
+ html: {},
1054
+ lwc: {},
1055
+ angular: { dynamicAttrs: ["[ngClass]"] },
1056
+ vue: { dynamicAttrs: [":class", "v-bind:class"] }
1057
+ },
1058
+ transform: transformHtml
1059
+ }),
1060
+ defineTransform({
1061
+ staticAttrs: ["class"],
1062
+ load: [{
1063
+ name: "prettier/plugins/glimmer",
1064
+ importer: () => import("prettier/plugins/glimmer")
1065
+ }],
1066
+ parsers: { glimmer: {} },
1067
+ transform: transformGlimmer
1068
+ }),
1069
+ defineTransform({
1070
+ load: [prettierParserCss],
1071
+ compatible: ["prettier-plugin-css-order"],
1072
+ parsers: {
1073
+ css: {},
1074
+ scss: {},
1075
+ less: {}
1076
+ },
1077
+ transform: transformCss
1078
+ }),
1079
+ defineTransform({
1080
+ staticAttrs: ["class", "className"],
1081
+ compatible: [
1082
+ "prettier-plugin-multiline-arrays",
1083
+ "@ianvs/prettier-plugin-sort-imports",
1084
+ "@trivago/prettier-plugin-sort-imports",
1085
+ "prettier-plugin-organize-imports",
1086
+ "prettier-plugin-sort-imports",
1087
+ "prettier-plugin-jsdoc"
1088
+ ],
1089
+ parsers: {
1090
+ babel: { load: [prettierParserBabel] },
1091
+ "babel-flow": { load: [prettierParserBabel] },
1092
+ "babel-ts": { load: [prettierParserBabel] },
1093
+ __js_expression: { load: [prettierParserBabel] },
1094
+ typescript: { load: [{
1095
+ name: "prettier/plugins/typescript",
1096
+ importer: () => import("prettier/plugins/typescript")
1097
+ }] },
1098
+ meriyah: { load: [{
1099
+ name: "prettier/plugins/meriyah",
1100
+ importer: () => import("prettier/plugins/meriyah")
1101
+ }] },
1102
+ acorn: { load: [{
1103
+ name: "prettier/plugins/acorn",
1104
+ importer: () => import("prettier/plugins/acorn")
1105
+ }] },
1106
+ flow: { load: [{
1107
+ name: "prettier/plugins/flow",
1108
+ importer: () => import("prettier/plugins/flow")
1109
+ }] },
1110
+ oxc: { load: [{
1111
+ name: "@prettier/plugin-oxc",
1112
+ importer: () => import("@prettier/plugin-oxc")
1113
+ }] },
1114
+ "oxc-ts": { load: [{
1115
+ name: "@prettier/plugin-oxc",
1116
+ importer: () => import("@prettier/plugin-oxc")
1117
+ }] },
1118
+ hermes: { load: [{
1119
+ name: "@prettier/plugin-hermes",
1120
+ importer: () => import("@prettier/plugin-hermes")
1121
+ }] },
1122
+ astroExpressionParser: {
1123
+ load: [{
1124
+ name: "prettier-plugin-astro",
1125
+ importer: () => {
1126
+ return import("prettier-plugin-astro");
1127
+ }
1128
+ }],
1129
+ staticAttrs: ["class"],
1130
+ dynamicAttrs: ["class:list"]
1131
+ }
1132
+ },
1133
+ transform: transformJavaScript
1134
+ }),
1135
+ defineTransform({
1136
+ staticAttrs: ["class"],
1137
+ load: [{
1138
+ name: "prettier-plugin-svelte",
1139
+ importer: () => import("prettier-plugin-svelte")
1140
+ }],
1141
+ parsers: { svelte: {} },
1142
+ printers: { "svelte-ast": {} },
1143
+ transform: transformSvelte,
1144
+ reprint(path, { options, changes }) {
1145
+ if (options.__mutatedOriginalText) return;
1146
+ options.__mutatedOriginalText = true;
1147
+ if (!(changes === null || changes === void 0 ? void 0 : changes.length)) return;
1148
+ let finder = (0, import_line_column.default)(options.originalText);
1149
+ let stringChanges = changes.map((change) => ({
1150
+ ...change,
1151
+ start: finder.toIndex(change.start.line, change.start.column + 1),
1152
+ end: finder.toIndex(change.end.line, change.end.column + 1)
1153
+ }));
1154
+ options.originalText = spliceChangesIntoString(options.originalText, stringChanges);
1155
+ }
1156
+ }),
1157
+ defineTransform({
1158
+ staticAttrs: ["class", "className"],
1159
+ dynamicAttrs: ["class:list", "className"],
1160
+ load: [{
1161
+ name: "prettier-plugin-astro",
1162
+ importer: () => {
1163
+ return import("prettier-plugin-astro");
1164
+ }
1165
+ }],
1166
+ parsers: { astro: {} },
1167
+ transform: transformAstro
1168
+ }),
1169
+ defineTransform({
1170
+ staticAttrs: ["class"],
1171
+ load: [{
1172
+ name: "prettier-plugin-marko",
1173
+ importer: () => import("prettier-plugin-marko")
1174
+ }],
1175
+ parsers: { marko: {} },
1176
+ transform: transformMarko
1177
+ }),
1178
+ defineTransform({
1179
+ staticAttrs: ["class"],
1180
+ load: [{
1181
+ name: "@zackad/prettier-plugin-twig",
1182
+ importer: () => {
1183
+ return import("@zackad/prettier-plugin-twig");
1184
+ }
1185
+ }],
1186
+ parsers: { twig: {} },
1187
+ transform: transformTwig
1188
+ }),
1189
+ defineTransform({
1190
+ staticAttrs: ["class"],
1191
+ load: [{
1192
+ name: "@prettier/plugin-pug",
1193
+ importer: () => import("@prettier/plugin-pug")
1194
+ }],
1195
+ parsers: { pug: {} },
1196
+ transform: transformPug
1197
+ }),
1198
+ defineTransform({
1199
+ staticAttrs: ["class"],
1200
+ load: [{
1201
+ name: "@shopify/prettier-plugin-liquid",
1202
+ importer: () => import("@shopify/prettier-plugin-liquid")
1203
+ }],
1204
+ parsers: { "liquid-html": {} },
1205
+ transform: transformLiquid
1206
+ })
1207
+ ]);
1208
+ export { options, parsers, printers };
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/jiti-Bb1dT6Cw.mjs ADDED
The diff for this file is too large to render. See raw diff
 
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@babel/types/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@ianvs/prettier-plugin-sort-imports/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@prettier/plugin-hermes/LICENSE ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Copyright © James Long and contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@prettier/plugin-oxc/LICENSE ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Copyright © James Long and contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@prettier/plugin-pug/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2019-2025 Christopher Quadflieg
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@shopify/prettier-plugin-liquid/README.md ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h1 align="center" style="position: relative;" >
2
+ <br>
3
+ <img src="https://github.com/Shopify/theme-check-vscode/blob/main/images/shopify_glyph.png?raw=true" alt="logo" width="141" height="160">
4
+ <br>
5
+ Shopify Liquid Prettier Plugin
6
+ </h1>
7
+
8
+ <p align="center">
9
+ <a href="https://www.npmjs.com/package/@shopify/prettier-plugin-liquid"><img src="https://img.shields.io/npm/v/@shopify/prettier-plugin-liquid.svg?sanitize=true" alt="Version"></a>
10
+ <a href="https://github.com/Shopify/prettier-plugin-liquid/blob/main/LICENSE.md"><img src="https://img.shields.io/npm/l/@shopify/prettier-plugin-liquid.svg?sanitize=true" alt="License"></a>
11
+ <a href="https://github.com/Shopify/prettier-plugin-liquid-prototype/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/Shopify/prettier-plugin-liquid-prototype/actions/workflows/ci.yml/badge.svg"></a>
12
+ <!--
13
+ <a href="https://npmcharts.com/compare/@shopify/prettier-plugin-liquid?minimal=true"><img src="https://img.shields.io/npm/dm/@shopify/prettier-plugin-liquid.svg?sanitize=true" alt="Downloads"></a>
14
+ -->
15
+ </p>
16
+
17
+ <div align="center">
18
+
19
+ 🗣 [Slack](https://join.slack.com/t/shopifypartners/shared_invite/zt-sdr2quab-mGkzkttZ2hnVm0~8noSyvw) | 💬 [Discussions](https://github.com/Shopify/prettier-plugin-liquid/discussions) | 📝 [Changelog](./CHANGELOG.md)
20
+
21
+ </div>
22
+
23
+ [Prettier](https://prettier.io) is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
24
+
25
+ ![demo](https://github.com/Shopify/prettier-plugin-liquid/blob/main/docs/demo.gif?raw=true)
26
+
27
+ ## Can this be used in production?
28
+
29
+ Yes! It's also available in the [Online Store Code Editor](https://shopify.dev/themes/tools/code-editor#formatting-theme-code).
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ # with npm
35
+ npm install --save-dev prettier @shopify/prettier-plugin-liquid
36
+
37
+ # with yarn
38
+ yarn add --dev prettier @shopify/prettier-plugin-liquid
39
+ ```
40
+
41
+ For Prettier version 3 and above, the plugin must also be declared in the [configuration](https://prettier.io/docs/en/configuration.html).
42
+
43
+ ```
44
+ {
45
+ "plugins": ["@shopify/prettier-plugin-liquid"]
46
+ }
47
+ ```
48
+
49
+ ## Usage
50
+
51
+ See our [Wiki](https://github.com/Shopify/prettier-plugin-liquid/wiki) pages on the subject:
52
+
53
+ - [In the terminal](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-in-your-terminal) (with Node.js)
54
+ - [In the browser](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-in-the-browser)
55
+ - [In your editor](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-in-your-editor)
56
+ - [In a CI workflow](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-in-CI)
57
+ - [As a pre-commit hook](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-as-a-pre-commit-hook)
58
+ - [With a bundler](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-with-a-bundler)
59
+
60
+ ## Playground
61
+
62
+ You can try it out in your browser in the [playground](https://shopify.github.io/prettier-plugin-liquid/).
63
+
64
+ ## Configuration
65
+
66
+ Prettier for Liquid supports the following options.
67
+
68
+ | Name | Default | Description |
69
+ | ------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
70
+ | `printWidth` | `120` | Changed from Prettier's default (`80`) ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)) |
71
+ | `tabWidth` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)) |
72
+ | `useTabs` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tabs)) |
73
+ | `singleQuote` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#quotes)) |
74
+ | `bracketSameLine` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#bracket-line)) |
75
+ | `liquidSingleQuote` | `true` | Use single quotes instead of double quotes in Liquid tag and objects (since v0.2.0). |
76
+ | `embeddedSingleQuote` | `true` | Use single quotes instead of double quotes in embedded languages (JavaScript, CSS, TypeScript inside `<script>`, `<style>` or Liquid equivalent) (since v0.4.0). |
77
+ | `htmlWhitespaceSensitivity` | `css` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#html-whitespace-sensitivity)) |
78
+ | `captureWhitespaceSensitivity` | `strict` | Specify the default whitespace sensitivity of the `capture` Liquid tag. Valid options: `"strict"` \| `"ignore"`. |
79
+ | `singleLineLinkTags` | `false` | If set to `true`, will print `<link>` tags on a single line to remove clutter |
80
+ | `indentSchema` | `false` | If set to `true`, will indent the contents of the `{% schema %}` tag |
81
+
82
+ ## Ignoring code
83
+
84
+ We support the following comments (either via HTML or Liquid comments):
85
+
86
+ - `prettier-ignore`
87
+ - `prettier-ignore-attribute`
88
+ - `prettier-ignore-attributes` (alias)
89
+
90
+ They target the next node in the tree. Unparseable code can't be ignored and will throw an error.
91
+
92
+ ```liquid
93
+ {% # prettier-ignore %}
94
+ <div class="x" >hello world</div >
95
+
96
+ {% # prettier-ignore-attributes %}
97
+ <div
98
+ [[#if Condition]]
99
+ class="a b c"
100
+ [[/if ]]
101
+ ></div>
102
+ ```
103
+
104
+ ## Whitespace handling
105
+
106
+ You'll quickly notice that the default value for `--htmlWhitespaceSensitivity` is set to `css` (like [Prettier's](https://prettier.io/blog/2018/11/07/1.15.0#whitespace-sensitive-formatting)).
107
+
108
+ If you want to change this behaviour for a specific tag that has a different default, you can use either the `display` or `white-space` comment to alter the behaviour.
109
+
110
+ Examples:
111
+
112
+ ```liquid
113
+ {% # this tag is whitespace sensitive by default, since the value of the string shouldn't change by formatting. %}
114
+ {% capture value %}
115
+ Hello {% name %}
116
+ {% endcapture %}
117
+
118
+ {% # here we alter its white-space property so that we allow pretty printing of its body %}
119
+ {% # white-space: normal %}
120
+ {% capture _ %}
121
+ <div>
122
+ {% render 'snip' %}
123
+ </div>
124
+ {% endcapture %}
125
+
126
+ {% # this will prevent prettier from formatting it %}
127
+ {% # white-space: pre %}
128
+ {% capture _ %}
129
+ <div>
130
+ {% render 'snip' %}
131
+ </div>
132
+ {% endcapture %}
133
+
134
+ {% # a span is normally sensitive to whitespace on both ends %}
135
+ <span
136
+ ><b
137
+ >hi</b
138
+ ></span
139
+ >
140
+
141
+ {% # with display: block, it isn't %}
142
+ {% # display: block %}
143
+ <span>
144
+ <b>hi</b>
145
+ </span>
146
+ ```
147
+
148
+ ## Known issues
149
+
150
+ Take a look at our [known issues](./KNOWN_ISSUES.md) and [open issues](https://github.com/Shopify/prettier-plugin-liquid/issues).
151
+
152
+ ## Contributing
153
+
154
+ [Read our contributing guide](CONTRIBUTING.md)
155
+
156
+ ## License
157
+
158
+ MIT.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@trivago/prettier-plugin-sort-imports/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@types/node/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/@zackad/prettier-plugin-twig/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/clear-module/license ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/dedent/LICENSE.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MIT License
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/enhanced-resolve/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright JS Foundation and other contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/escalade/license ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/fast-glob/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Denis Malinochkin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/import-sort-style-module/LICENSE ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2016, Renke Grunwald
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted, provided that the above
5
+ copyright notice and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/jiti/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Pooya Parsa <pooya@pi0.io>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/line-column/LICENSE ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2016 IRIDE Monad <iride.monad@gmail.com>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/marko/README.md ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div align="center">
2
+
3
+ # [<img alt="Marko" src="https://raw.githubusercontent.com/marko-js/branding/master/marko-logo-medium-cropped.png" width="250">](https://markojs.com/)
4
+
5
+ **A declarative, HTML-based language that makes building web apps fun 🔥**
6
+
7
+ [![NPM](https://img.shields.io/npm/v/marko.svg)](https://www.npmjs.com/package/marko)
8
+ [![Discord Chat](https://img.shields.io/badge/discord-chat-7188da.svg)](https://discord.gg/RFGxYGs)
9
+ [![Continuous Integration status](https://github.com/marko-js/marko/actions/workflows/ci.yml/badge.svg)](https://github.com/marko-js/marko/actions/workflows/ci.yml)
10
+ [![Code coverage %](https://codecov.io/gh/marko-js/marko/branch/master/graph/badge.svg)](https://codecov.io/gh/marko-js/marko)
11
+ [![# of monthly downloads](https://img.shields.io/npm/dm/marko.svg)](https://npm-stat.com/charts.html?package=marko)
12
+ [![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7029/badge)](https://bestpractices.coreinfrastructure.org/projects/7029)
13
+
14
+ [Docs](https://markojs.com/docs/getting-started/) ∙ [Try Online](https://markojs.com/try-online/) ∙ [Contribute](#contributors) ∙ [Get Support](#community--support)
15
+
16
+ </div>
17
+
18
+ ## Intro
19
+
20
+ Marko is HTML _reimagined_ as a language for building dynamic and reactive user interfaces. Almost any valid HTML is valid Marko, and Marko extends HTML for building modern applications more declaratively. Among these extensions are [conditionals and lists](https://markojs.com/docs/conditionals-and-lists/), [state](https://markojs.com/docs/state/), and [components](https://markojs.com/docs/class-components/).
21
+
22
+ Marko supports both single-file components and components across separate files.
23
+
24
+ ### Single-file component
25
+
26
+ The following renders a button and a counter of how many times the button has been pressed:
27
+
28
+ **click-count.marko**
29
+
30
+ ```marko
31
+ class {
32
+ onCreate() {
33
+ this.state = { count: 0 };
34
+ }
35
+ increment() {
36
+ this.state.count++;
37
+ }
38
+ }
39
+
40
+ style {
41
+ .count {
42
+ color: #09c;
43
+ font-size: 3em;
44
+ }
45
+ .press-me {
46
+ padding: 0.5em;
47
+ }
48
+ }
49
+
50
+ <output.count>
51
+ ${state.count}
52
+ </output>
53
+ <button.press-me on-click('increment')>
54
+ Press me!
55
+ </button>
56
+ ```
57
+
58
+ ### Multi-file component
59
+
60
+ The same component as above, but split into:
61
+
62
+ - `index.marko` template file
63
+ - `component.js` component JS logic file
64
+ - `style.css` component styles file
65
+
66
+ **index.marko**
67
+
68
+ ```marko
69
+ <output.count>
70
+ ${state.count}
71
+ </output>
72
+ <button.press-me on-click('increment')>
73
+ Press me!
74
+ </button>
75
+ ```
76
+
77
+ **component.js**
78
+
79
+ ```js
80
+ export default {
81
+ onCreate() {
82
+ this.state = { count: 0 };
83
+ },
84
+ increment() {
85
+ this.state.count++;
86
+ },
87
+ };
88
+ ```
89
+
90
+ **style.css**
91
+
92
+ ```css
93
+ .count {
94
+ color: #09c;
95
+ font-size: 3em;
96
+ }
97
+ .press-me {
98
+ padding: 0.5em;
99
+ }
100
+ ```
101
+
102
+ ## Concise Syntax
103
+
104
+ Marko also supports [a beautifully concise syntax as an alternative](https://markojs.com/docs/concise/) to its HTML syntax:
105
+
106
+ <table><thead><tr><th>Concise syntax<th>HTML syntax
107
+ <tbody><tr>
108
+ <td>
109
+
110
+ ```marko
111
+ ul.example-list
112
+ for|color| of=[a, b, c]
113
+ li -- ${color}
114
+ ```
115
+
116
+ <td>
117
+
118
+ ```marko
119
+ <ul class="example-list">
120
+ <for|color| of=[a, b, c]>
121
+ <li>${color}</li>
122
+ </for>
123
+ </ul>
124
+ ```
125
+
126
+ </table>
127
+
128
+ ## Getting Started
129
+
130
+ 1. `npm install marko`
131
+ 2. Read the [docs](https://markojs.com/docs/getting-started/)
132
+
133
+ ## Community & Support
134
+
135
+ <table>
136
+ <thead><tr>
137
+ <th><img alt="Stack Overflow" src="https://user-images.githubusercontent.com/1958812/56055468-619b3e00-5d0e-11e9-92ae-200c212cafb8.png" width="205">
138
+ <th><img alt="Discord" src="https://user-images.githubusercontent.com/4985201/89313514-6edbea80-d62d-11ea-8447-ca2fd8983661.png" width="162">
139
+ <th><img alt="Twitter" src="https://user-images.githubusercontent.com/1958812/56055707-07e74380-5d0f-11e9-8a59-d529fbb5a81e.png" width="53">
140
+ <tbody><tr><td>
141
+
142
+ Ask and answer [StackOverflow questions with the `#marko` tag](https://stackoverflow.com/questions/tagged/marko)<td>
143
+
144
+ Come [hang out in our Discord chat](https://discord.gg/RFGxYGs), ask questions, and discuss project direction<td>
145
+
146
+ [Tweet to `@MarkoDevTeam`](https://twitter.com/MarkoDevTeam), or with the [`#markojs` hashtag](https://twitter.com/search?q=%23markojs&f=live)
147
+
148
+ </table>
149
+
150
+ ### Contributors
151
+
152
+ Marko would not be what it is without all those who have contributed ✨
153
+
154
+ [![All marko-js/marko GitHub contributors](https://opencollective.com/marko-js/contributors.svg?width=890&button=false)](https://github.com/marko-js/marko/graphs/contributors)
155
+
156
+ ### Get Involved!
157
+
158
+ - Pull requests are welcome!
159
+ - Submit [GitHub issues](https://github.com/marko-js/marko/issues) for any feature enhancements, bugs, or documentation problems
160
+ - [Read the Contribution Tips and Guidelines](.github/CONTRIBUTING.md)
161
+ - Participants in this project agree to abide by [its Code of Conduct](https://github.com/eBay/.github/blob/main/CODE_OF_CONDUCT.md)
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/oxlint-tsgolint/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2025 July-present VoidZero Inc. & Contributors
4
+ Copyright (c) 2025 July typescript-eslint and other contributors
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/oxlint/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present VoidZero Inc. & Contributors
4
+ Copyright (c) 2023 Boshen
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/postcss-import/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Maxime Thirouin, Jason Campbell & Kevin Mårtensson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/postcss/LICENSE ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright 2013 Andrey Sitnik <andrey@sitnik.ru>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-astro/LICENSE ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Nate Moore
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ Substantial portions of this code are adopted from https://github.com/sveltejs/prettier-plugin-svelte
26
+ under the following license:
27
+
28
+ MIT License
29
+
30
+ Copyright (c) 2019 [Contributors](https://github.com/sveltejs/prettier-plugin-svelte/graphs/contributors)
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy
33
+ of this software and associated documentation files (the "Software"), to deal
34
+ in the Software without restriction, including without limitation the rights
35
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36
+ copies of the Software, and to permit persons to whom the Software is
37
+ furnished to do so, subject to the following conditions:
38
+
39
+ The above copyright notice and this permission notice shall be included in all
40
+ copies or substantial portions of the Software.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
48
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-css-order/license.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ISC License
2
+
3
+ Copyright (c)
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-jsdoc/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Hossein Mohammadi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-marko/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2021 eBay Inc. and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-multiline-arrays/LICENSE-CC0 ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CC0 1.0 Universal
2
+
3
+ Creative Commons Legal Code
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-organize-attributes/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Niklas Portmann
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-organize-imports/license ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) Simon Hänisch
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-sort-imports/README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Prettier Plugin: Sort imports
2
+
3
+ A prettier plugin that sorts import statements by either their length or alphabetically.
4
+
5
+ Example:
6
+ ![](./images/transform.png)
7
+
8
+ ![NPM Downloads](https://img.shields.io/npm/dt/prettier-plugin-sort-imports)
9
+
10
+ ## Installation
11
+
12
+ ```sh
13
+ npm install --save-dev prettier-plugin-sort-imports
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ The plugin will be loaded by Prettier automatically. No configuration needed. It will sort by import statement length by default.
19
+
20
+ ### Add to Prettier Config
21
+
22
+ 1. Create a file named `prettier.config.js` in your project's root directory.
23
+ 2. Add the following contents:
24
+
25
+ ```js
26
+ module.exports = {
27
+ // For prettier 3
28
+ sortingMethod: 'lineLength',
29
+ plugins: ['./node_modules/prettier-plugin-sort-imports/dist/index.js'],
30
+ };
31
+ ```
32
+
33
+ ```js
34
+ module.exports = {
35
+ // For prettier 2
36
+ sortingMethod: 'lineLength',
37
+ pluginSearchDirs: ['./node_modules'],
38
+ plugins: ['./node_modules/prettier-plugin-sort-imports/dist/index.2.js'],
39
+ };
40
+ ```
41
+
42
+ ## Known issues
43
+
44
+ ### When using with certain other plugins
45
+
46
+ When combined with other prettier plugins that also modify the way JS/TS are formatted (such as `prettier-plugin-tailwindcss`) some issues may occur. See [this issue](https://github.com/SanderRonde/prettier-plugin-sort-imports/issues/2#issuecomment-1237556280) for more details and the fix.
47
+
48
+ ### Options:
49
+
50
+ - `sortingMethod`: `'alphabetical' | 'lineLength' (default)` - What to sort the individual lines by. `alphabetical` sorts by the import path and `lineLength` sorts by the length of the import. Note that alphabetical sorting looks at the **whole** import path, so imports starting with `../` are ranked lower.
51
+ - `sortingOrder`: `'ascending' | 'descending' (default)` - Determines the order of imports. If set to 'ascending', imports will be sorted in ascending order and vice versa.
52
+ - `stripNewlines`: `true | false (default)`. Determines whether newlines between blocks of imports are stripped. If the only thing between two blocks is whitespace or comments, the whitespace will be stripped and the blocks are sorted as one big one. The comment sticks to whichever import it was above initially.
53
+ - `importTypeOrder`: `('NPMPackages' | 'localImportsValue' | 'localImportsType' | 'localImports' | 'all')[]`. An array that determines the order in which different import types are sorted. The default is `['all']`, which does no sorting of different import types. Import type are sorted according to the order in which they appear in this array. Note that, other than the `'all'` type, you can not specify an imcomplete array. See different types for which other types they can be combined with. Explanations of different types:
54
+ - `'NPMPackages'`: All NPM packges that are listed in your `package.json` fall into this category. If you have multiple `package.json` files you can specify them using the `packageJSONFiles` option. Can only be used with one of the other local import types (either `'localImportsValue', 'localImportsType' `or` 'localImports'`)
55
+ - `'localImportsValue'`: All local imports that are declared with a value `import foo from './foo'` falls into this category. Can only be used if `NPMPackages` is also specified and if `localImportsType` is also specified.
56
+ - `'localImportsType'`: All local imports that are imported as a type. `import type foo from './foo'` falls into this category. Only available in typecript. Can only be used if `NPMPackages` is also specified and if `localImportsValue` is also specified.
57
+ - `'localImports'`: All local imports that are declared with a value or a type. `import foo from './foo'` and `import type foo from './foo'` both fall into this category. Can only be used if `NPMPackages` is also specified.
58
+ - `'all'`: All imports fall into this category.
59
+ - `packageJSONFiles`: `string[]`. Set to `['package.json']` by default. Lists the `package.json` files to be used for the `'NPMPackages'` import type. Note that if you specified `['all']` for the `importTypeOrder` option (or specified none at all), this is not used.
60
+ - `newlineBetweenTypes`: `boolean`. Set to `false` by default. Determines whether a newline should be inserted between different import types.
61
+
62
+ Files containing the string `// sort-imports-ignore` are skipped. You can also ignore sections by using `// sort-imports-begin-ignore` and `// sort-imports-end-ignore`.
63
+
64
+ ## Changelog
65
+
66
+ ### 1.8.7
67
+
68
+ - Add `sortingOrder` option to sort imports in ascending or descending order
69
+
70
+ ### 1.8.5
71
+
72
+ - When sorting by line length, adjecent subgroups are also sorted together
73
+
74
+ ### 1.8.4
75
+
76
+ - Add `.prettierrc.mjs` and `prettier.config.mjs` to the list of possible config files
77
+
78
+ ### 1.8.3
79
+
80
+ - Remove some logs from release
81
+
82
+ ### 1.8.2
83
+
84
+ - Fix bug where `package.json` files were not resolved relative to prettier config file but only to CWD
85
+
86
+ ### 1.8.1
87
+
88
+ - Fix bug where reading of `package.json` files was not try-catched
89
+
90
+ ### 1.7.2
91
+
92
+ - Fix peer dependency version
93
+
94
+ ### 1.7.0
95
+
96
+ - Rewrite newline re-ordering to be more robust
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/prettier-plugin-svelte/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2019 [Contributors](https://github.com/sveltejs/prettier-plugin-svelte/graphs/contributors)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/pug-lexer/LICENSE ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2014 Forbes Lindesay
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/licenses/tsdown/LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025-present VoidZero Inc. & Contributors
4
+ Copyright (c) 2024 Kevin Deng (https://github.com/sxzz)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs ADDED
The diff for this file is too large to render. See raw diff
 
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { a as expiringMap, i as resolveJsFrom } from "./resolve-pWjAK-4f.mjs";
2
+ import { n as cacheForDirs, t as bigSign } from "./utils-D8dQkKEd.mjs";
3
+ import { dirname, resolve } from "path";
4
+ import * as path from "node:path";
5
+ import { pathToFileURL } from "node:url";
6
+ import { readdirSync, statSync } from "fs";
7
+ let seen = /* @__PURE__ */ new Set();
8
+ function warn(key, arg, ...args) {
9
+ if (seen.has(key)) return;
10
+ seen.add(key);
11
+ console.warn(arg, ...args);
12
+ }
13
+ function error(key, arg, ...args) {
14
+ if (seen.has(key)) return;
15
+ seen.add(key);
16
+ console.error(arg, ...args);
17
+ }
18
+ function sync_default(start, callback) {
19
+ let dir = resolve(".", start);
20
+ let tmp;
21
+ if (!statSync(dir).isDirectory()) dir = dirname(dir);
22
+ while (true) {
23
+ tmp = callback(dir, readdirSync(dir));
24
+ if (tmp) return resolve(dir, tmp);
25
+ dir = dirname(tmp = dir);
26
+ if (tmp === dir) break;
27
+ }
28
+ }
29
+ function sortClasses(classStr, { env, ignoreFirst = false, ignoreLast = false, removeDuplicates = true, collapseWhitespace = {
30
+ start: true,
31
+ end: true
32
+ } }) {
33
+ if (typeof classStr !== "string" || classStr === "") return classStr;
34
+ if (classStr.includes("{{")) return classStr;
35
+ if (env.options.tailwindPreserveWhitespace) collapseWhitespace = false;
36
+ if (env.options.tailwindPreserveDuplicates) removeDuplicates = false;
37
+ if (collapseWhitespace && /^[\t\r\f\n ]+$/.test(classStr)) return " ";
38
+ let result = "";
39
+ let parts = classStr.split(/([\t\r\f\n ]+)/);
40
+ let classes = parts.filter((_, i) => i % 2 === 0);
41
+ let whitespace = parts.filter((_, i) => i % 2 !== 0);
42
+ if (classes[classes.length - 1] === "") classes.pop();
43
+ if (collapseWhitespace) whitespace = whitespace.map(() => " ");
44
+ let prefix = "";
45
+ if (ignoreFirst) prefix = `${classes.shift() ?? ""}${whitespace.shift() ?? ""}`;
46
+ let suffix = "";
47
+ if (ignoreLast) suffix = `${whitespace.pop() ?? ""}${classes.pop() ?? ""}`;
48
+ let { classList, removedIndices } = sortClassList({
49
+ classList: classes,
50
+ api: env.context,
51
+ removeDuplicates
52
+ });
53
+ whitespace = whitespace.filter((_, index) => !removedIndices.has(index + 1));
54
+ for (let i = 0; i < classList.length; i++) result += `${classList[i]}${whitespace[i] ?? ""}`;
55
+ if (collapseWhitespace) {
56
+ prefix = prefix.replace(/\s+$/g, " ");
57
+ suffix = suffix.replace(/^\s+/g, " ");
58
+ result = result.replace(/^\s+/, collapseWhitespace.start ? "" : " ").replace(/\s+$/, collapseWhitespace.end ? "" : " ");
59
+ }
60
+ return prefix + result + suffix;
61
+ }
62
+ function sortClassList({ classList, api, removeDuplicates }) {
63
+ let orderedClasses = api.getClassOrder(classList);
64
+ orderedClasses.sort(([nameA, a], [nameZ, z]) => {
65
+ if (nameA === "..." || nameA === "…") return 1;
66
+ if (nameZ === "..." || nameZ === "…") return -1;
67
+ if (a === z) return 0;
68
+ if (a === null) return -1;
69
+ if (z === null) return 1;
70
+ return bigSign(a - z);
71
+ });
72
+ let removedIndices = /* @__PURE__ */ new Set();
73
+ if (removeDuplicates) {
74
+ let seenClasses = /* @__PURE__ */ new Set();
75
+ orderedClasses = orderedClasses.filter(([cls, order], index) => {
76
+ if (seenClasses.has(cls)) {
77
+ removedIndices.add(index);
78
+ return false;
79
+ }
80
+ if (order !== null) seenClasses.add(cls);
81
+ return true;
82
+ });
83
+ }
84
+ return {
85
+ classList: orderedClasses.map(([className]) => className),
86
+ removedIndices
87
+ };
88
+ }
89
+ function resolveIfRelative(base, filePath) {
90
+ if (!filePath) return null;
91
+ return path.isAbsolute(filePath) ? filePath : path.resolve(base, filePath);
92
+ }
93
+ let pathToApiMap = expiringMap(1e4);
94
+ async function getTailwindConfig(options) {
95
+ let base = options.base ?? process.cwd();
96
+ let inputDir = options.filepath ? path.dirname(options.filepath) : base;
97
+ let configPath = resolveIfRelative(base, options.configPath);
98
+ let stylesheetPath = resolveIfRelative(base, options.stylesheetPath);
99
+ let [mod, pkgDir] = await resolveTailwindPath({ packageName: options.packageName }, inputDir);
100
+ let stylesheet = resolveStylesheet(stylesheetPath, base);
101
+ let jsConfig = resolveJsConfigPath(configPath);
102
+ if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
103
+ if (jsConfig) {
104
+ if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
105
+ const { loadV3 } = await import("./v3-D-mr2VVh.mjs");
106
+ return loadV3(pkgDir, jsConfig);
107
+ });
108
+ error("explicit-stylesheet-and-config-together", base, `You have specified a Tailwind CSS stylesheet and a Tailwind CSS config at the same time. Use stylesheetPath unless you are using v3. Preferring the stylesheet.`);
109
+ }
110
+ if (mod && !mod.__unstable__loadDesignSystem) {
111
+ if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
112
+ const { loadV3 } = await import("./v3-D-mr2VVh.mjs");
113
+ return loadV3(pkgDir, jsConfig);
114
+ });
115
+ mod = null;
116
+ error("stylesheet-unsupported", base, "You have specified a Tailwind CSS stylesheet but your installed version of Tailwind CSS does not support this feature.");
117
+ }
118
+ if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
119
+ return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
120
+ const { loadV4 } = await import("./v4-C-HWEQJm.mjs");
121
+ return loadV4(mod, stylesheet);
122
+ });
123
+ }
124
+ let resolvedModCache = expiringMap(1e4);
125
+ async function resolveTailwindPath(options, baseDir) {
126
+ let pkgName = options.packageName ?? "tailwindcss";
127
+ let makeKey = (dir) => `${pkgName}:${dir}`;
128
+ let cached = resolvedModCache.get(makeKey(baseDir));
129
+ if (cached !== void 0) return cached;
130
+ let resolve = async () => {
131
+ let pkgDir = null;
132
+ let mod = null;
133
+ try {
134
+ mod = await import(pathToFileURL(resolveJsFrom(baseDir, pkgName)).toString());
135
+ let pkgFile = resolveJsFrom(baseDir, `${pkgName}/package.json`);
136
+ pkgDir = path.dirname(pkgFile);
137
+ } catch {}
138
+ return [mod, pkgDir];
139
+ };
140
+ let result = await resolve();
141
+ let [, pkgDir] = result;
142
+ if (pkgDir) cacheForDirs(resolvedModCache, baseDir, result, pkgDir, makeKey);
143
+ else resolvedModCache.set(makeKey(baseDir), result);
144
+ return result;
145
+ }
146
+ function resolveJsConfigPath(configPath) {
147
+ if (!configPath) return null;
148
+ if (configPath.endsWith(".css")) return null;
149
+ return configPath;
150
+ }
151
+ let configPathCache = /* @__PURE__ */ new Map();
152
+ function findClosestJsConfig(inputDir) {
153
+ let cached = configPathCache.get(inputDir);
154
+ if (cached !== void 0) return cached;
155
+ let configPath = null;
156
+ try {
157
+ configPath = sync_default(inputDir, (_, names) => {
158
+ if (names.includes("tailwind.config.js")) return "tailwind.config.js";
159
+ if (names.includes("tailwind.config.cjs")) return "tailwind.config.cjs";
160
+ if (names.includes("tailwind.config.mjs")) return "tailwind.config.mjs";
161
+ if (names.includes("tailwind.config.ts")) return "tailwind.config.ts";
162
+ }) ?? null;
163
+ } catch {}
164
+ if (configPath) cacheForDirs(configPathCache, inputDir, configPath, path.dirname(configPath));
165
+ else configPathCache.set(inputDir, null);
166
+ return configPath;
167
+ }
168
+ function resolveStylesheet(stylesheetPath, base) {
169
+ if (!stylesheetPath) return null;
170
+ if (stylesheetPath.endsWith(".js") || stylesheetPath.endsWith(".mjs") || stylesheetPath.endsWith(".cjs") || stylesheetPath.endsWith(".ts") || stylesheetPath.endsWith(".mts") || stylesheetPath.endsWith(".cts")) error("stylesheet-is-js-file", base, "Your `stylesheetPath` option points to a JS/TS config file. You must point to your project's `.css` file for v4 projects.");
171
+ else if (stylesheetPath.endsWith(".sass") || stylesheetPath.endsWith(".scss") || stylesheetPath.endsWith(".less") || stylesheetPath.endsWith(".styl")) error("stylesheet-is-preprocessor-file", base, "Your `stylesheetPath` option points to a preprocessor file. This is unsupported and you may get unexpected results.");
172
+ else if (!stylesheetPath.endsWith(".css")) error("stylesheet-is-not-css-file", base, "Your `stylesheetPath` option does not point to a CSS file. This is unsupported and you may get unexpected results.");
173
+ return stylesheetPath;
174
+ }
175
+ async function createSorter(opts) {
176
+ let preserveDuplicates = opts.preserveDuplicates ?? false;
177
+ let preserveWhitespace = opts.preserveWhitespace ?? false;
178
+ let api = await getTailwindConfig({
179
+ base: opts.base,
180
+ filepath: opts.filepath,
181
+ configPath: opts.configPath,
182
+ stylesheetPath: opts.stylesheetPath,
183
+ packageName: opts.packageName
184
+ });
185
+ let env = {
186
+ context: api,
187
+ changes: [],
188
+ options: {
189
+ tailwindPreserveWhitespace: preserveWhitespace,
190
+ tailwindPreserveDuplicates: preserveDuplicates,
191
+ tailwindPackageName: opts.packageName
192
+ },
193
+ matcher: void 0
194
+ };
195
+ return {
196
+ sortClassLists(classes) {
197
+ return classes.map((list) => {
198
+ return sortClassList({
199
+ api,
200
+ classList: list,
201
+ removeDuplicates: !preserveDuplicates
202
+ }).classList;
203
+ });
204
+ },
205
+ sortClassAttributes(classes) {
206
+ return classes.map((list) => sortClasses(list, { env }));
207
+ }
208
+ };
209
+ }
210
+ export { error as a, sortClasses as i, getTailwindConfig as n, warn as o, sortClassList as r, createSorter as t };
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/sorter.d.mts ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ //#region src/sorter.d.ts
2
+ interface SorterOptions {
3
+ /**
4
+ * The directory used to resolve relative file paths.
5
+ *
6
+ * When not provided this will be:
7
+ * - The current working directory
8
+ */
9
+ base?: string;
10
+ /**
11
+ * The path to the file being formatted.
12
+ *
13
+ * When provided, Tailwind CSS is resolved relative to this path; otherwise,
14
+ * it is resolved relative to `base`.
15
+ */
16
+ filepath?: string;
17
+ /**
18
+ * Path to the Tailwind CSS config file (v3).
19
+ *
20
+ * Paths are resolved relative to `base`.
21
+ */
22
+ configPath?: string;
23
+ /**
24
+ * Path to the CSS stylesheet used by Tailwind CSS (v4+).
25
+ *
26
+ * Paths are resolved relative to `base`.
27
+ */
28
+ stylesheetPath?: string;
29
+ /**
30
+ * Whether or not to preserve whitespace around classes.
31
+ *
32
+ * Default: false
33
+ */
34
+ preserveWhitespace?: boolean;
35
+ /**
36
+ * Whether or not to preserve duplicate classes.
37
+ *
38
+ * Default: false
39
+ */
40
+ preserveDuplicates?: boolean;
41
+ }
42
+ interface Sorter {
43
+ /**
44
+ * Sort one or more class attributes.
45
+ *
46
+ * Each element is the value of an HTML `class` attribute (or similar). i.e. a
47
+ * space separated list of class names as a string.
48
+ */
49
+ sortClassAttributes(classes: string[]): string[];
50
+ /**
51
+ * Sort one or more class lists.
52
+ *
53
+ * Each element is an array of class names. Passing a space separated class
54
+ * list in each element is not supported.
55
+ *
56
+ * Duplicates are removed by default unless `preserveDuplicates` is enabled.
57
+ */
58
+ sortClassLists(classes: string[][]): string[][];
59
+ }
60
+ /**
61
+ * Creates a sorter instance for sorting Tailwind CSS classes.
62
+ *
63
+ * This function initializes a sorter with the specified Tailwind CSS configuration.
64
+ * The sorter can be used to sort class attributes (space-separated strings) or
65
+ * class lists (arrays of class names).
66
+
67
+ * @example
68
+ * ```ts
69
+ * const sorter = await createSorter({})
70
+ *
71
+ * // Sort class lists
72
+ * const sorted = sorter.sortClassLists([['p-4', 'm-2']])
73
+ * // Returns: [['m-2', 'p-4']]
74
+ * ```
75
+ */
76
+ declare function createSorter(opts: SorterOptions): Promise<Sorter>;
77
+ //#endregion
78
+ export { Sorter, SorterOptions, createSorter };
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/sorter.mjs ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { n as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt.mjs";
2
+ import "./resolve-pWjAK-4f.mjs";
3
+ export { createSorter, getTailwindConfig };
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as path from "node:path";
2
+ function isNodeLike(value) {
3
+ return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
4
+ }
5
+ function visit(ast, callbackMap) {
6
+ function _visit(node, path, meta) {
7
+ if (typeof callbackMap === "function") {
8
+ if (callbackMap(node, path, meta) === false) return;
9
+ } else if (node.type in callbackMap) {
10
+ if (callbackMap[node.type](node, path, meta) === false) return;
11
+ }
12
+ const keys = Object.keys(node);
13
+ for (let i = 0; i < keys.length; i++) {
14
+ const child = node[keys[i]];
15
+ if (Array.isArray(child)) {
16
+ for (let j = 0; j < child.length; j++) if (isNodeLike(child[j])) {
17
+ let newMeta = { ...meta };
18
+ let newPath = [{
19
+ node: child[j],
20
+ parent: node,
21
+ key: keys[i],
22
+ index: j,
23
+ meta: newMeta
24
+ }, ...path];
25
+ _visit(child[j], newPath, newMeta);
26
+ }
27
+ } else if (isNodeLike(child)) {
28
+ let newMeta = { ...meta };
29
+ _visit(child, [{
30
+ node: child,
31
+ parent: node,
32
+ key: keys[i],
33
+ index: i,
34
+ meta: newMeta
35
+ }, ...path], newMeta);
36
+ }
37
+ }
38
+ }
39
+ let newMeta = {};
40
+ _visit(ast, [{
41
+ node: ast,
42
+ parent: null,
43
+ key: null,
44
+ index: null,
45
+ meta: newMeta
46
+ }], newMeta);
47
+ }
48
+ function spliceChangesIntoString(str, changes) {
49
+ if (!changes[0]) return str;
50
+ changes.sort((a, b) => {
51
+ return a.end - b.end || a.start - b.start;
52
+ });
53
+ let result = "";
54
+ let previous = changes[0];
55
+ result += str.slice(0, previous.start);
56
+ result += previous.after;
57
+ for (let i = 1; i < changes.length; ++i) {
58
+ let change = changes[i];
59
+ result += str.slice(previous.end, change.start);
60
+ result += change.after;
61
+ previous = change;
62
+ }
63
+ result += str.slice(previous.end);
64
+ return result;
65
+ }
66
+ function bigSign(bigIntValue) {
67
+ return Number(bigIntValue > 0n) - Number(bigIntValue < 0n);
68
+ }
69
+ function cacheForDirs(cache, inputDir, value, targetDir, makeKey = (dir) => dir) {
70
+ let dir = inputDir;
71
+ while (dir !== path.dirname(dir) && dir.length >= targetDir.length) {
72
+ const key = makeKey(dir);
73
+ if (cache.get(key) !== void 0) break;
74
+ cache.set(key, value);
75
+ if (dir === targetDir) break;
76
+ dir = path.dirname(dir);
77
+ }
78
+ }
79
+ export { visit as i, cacheForDirs as n, spliceChangesIntoString as r, bigSign as t };
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs ADDED
The diff for this file is too large to render. See raw diff
 
tools/ui/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs ADDED
The diff for this file is too large to render. See raw diff
 
tools/ui/node_modules/prettier-plugin-tailwindcss/package.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "module",
3
+ "name": "prettier-plugin-tailwindcss",
4
+ "version": "0.8.0",
5
+ "description": "A Prettier plugin for sorting Tailwind CSS classes.",
6
+ "license": "MIT",
7
+ "main": "dist/index.mjs",
8
+ "module": "dist/index.mjs",
9
+ "types": "dist/index.d.mts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.mts",
16
+ "import": "./dist/index.mjs",
17
+ "default": "./dist/index.mjs"
18
+ },
19
+ "./sorter": {
20
+ "types": "./dist/sorter.d.mts",
21
+ "import": "./dist/sorter.mjs",
22
+ "default": "./dist/sorter.mjs"
23
+ }
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/tailwindlabs/prettier-plugin-tailwindcss"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues"
31
+ },
32
+ "devDependencies": {
33
+ "@babel/types": "^7.28.2",
34
+ "@ianvs/prettier-plugin-sort-imports": "^4.7.0",
35
+ "@marko/compiler": "^5.39.49",
36
+ "@prettier/plugin-hermes": "^0.1.2",
37
+ "@prettier/plugin-oxc": "^0.1.2",
38
+ "@prettier/plugin-pug": "^3.4.2",
39
+ "@shopify/prettier-plugin-liquid": "^1.10.0",
40
+ "@trivago/prettier-plugin-sort-imports": "^6.0.0",
41
+ "@types/node": "^24.3.0",
42
+ "@zackad/prettier-plugin-twig": "^0.16.0",
43
+ "clear-module": "^4.1.2",
44
+ "dedent": "^1.6.0",
45
+ "enhanced-resolve": "^5.18.3",
46
+ "escalade": "^3.2.0",
47
+ "fast-glob": "^3.3.3",
48
+ "import-sort-style-module": "^6.0.0",
49
+ "jiti": "^2.6.0",
50
+ "knip": "^5.83.0",
51
+ "license-checker": "^25.0.1",
52
+ "line-column": "^1.0.2",
53
+ "marko": "^5.37.46",
54
+ "oxlint": "^1.43.0",
55
+ "oxlint-tsgolint": "^0.11.4",
56
+ "postcss": "^8.5.6",
57
+ "postcss-import": "^16.1.1",
58
+ "prettier": "^3.7.3",
59
+ "prettier-plugin-astro": "^0.14.1",
60
+ "prettier-plugin-css-order": "^2.1.2",
61
+ "prettier-plugin-jsdoc": "^1.3.3",
62
+ "prettier-plugin-marko": "^3.3.2",
63
+ "prettier-plugin-multiline-arrays": "^4.0.3",
64
+ "prettier-plugin-organize-attributes": "^1.0.0",
65
+ "prettier-plugin-organize-imports": "^4.2.0",
66
+ "prettier-plugin-sort-imports": "^1.8.8",
67
+ "prettier-plugin-svelte": "^3.4.0",
68
+ "pug-lexer": "^5.0.1",
69
+ "svelte": "^5.38.2",
70
+ "tailwindcss-v3": "npm:tailwindcss@^3.4.18",
71
+ "tailwindcss-v4": "npm:tailwindcss@^4.1.14",
72
+ "tsdown": "^0.20.1",
73
+ "vitest": "^3.2.4"
74
+ },
75
+ "peerDependencies": {
76
+ "@ianvs/prettier-plugin-sort-imports": "*",
77
+ "@prettier/plugin-hermes": "*",
78
+ "@prettier/plugin-oxc": "*",
79
+ "@prettier/plugin-pug": "*",
80
+ "@shopify/prettier-plugin-liquid": "*",
81
+ "@trivago/prettier-plugin-sort-imports": "*",
82
+ "@zackad/prettier-plugin-twig": "*",
83
+ "prettier": "^3.0",
84
+ "prettier-plugin-astro": "*",
85
+ "prettier-plugin-css-order": "*",
86
+ "prettier-plugin-jsdoc": "*",
87
+ "prettier-plugin-marko": "*",
88
+ "prettier-plugin-multiline-arrays": "*",
89
+ "prettier-plugin-organize-attributes": "*",
90
+ "prettier-plugin-organize-imports": "*",
91
+ "prettier-plugin-sort-imports": "*",
92
+ "prettier-plugin-svelte": "*"
93
+ },
94
+ "peerDependenciesMeta": {
95
+ "@ianvs/prettier-plugin-sort-imports": {
96
+ "optional": true
97
+ },
98
+ "@prettier/plugin-hermes": {
99
+ "optional": true
100
+ },
101
+ "@prettier/plugin-oxc": {
102
+ "optional": true
103
+ },
104
+ "@prettier/plugin-pug": {
105
+ "optional": true
106
+ },
107
+ "@shopify/prettier-plugin-liquid": {
108
+ "optional": true
109
+ },
110
+ "@trivago/prettier-plugin-sort-imports": {
111
+ "optional": true
112
+ },
113
+ "@zackad/prettier-plugin-twig": {
114
+ "optional": true
115
+ },
116
+ "prettier-plugin-astro": {
117
+ "optional": true
118
+ },
119
+ "prettier-plugin-css-order": {
120
+ "optional": true
121
+ },
122
+ "prettier-plugin-jsdoc": {
123
+ "optional": true
124
+ },
125
+ "prettier-plugin-marko": {
126
+ "optional": true
127
+ },
128
+ "prettier-plugin-multiline-arrays": {
129
+ "optional": true
130
+ },
131
+ "prettier-plugin-organize-attributes": {
132
+ "optional": true
133
+ },
134
+ "prettier-plugin-organize-imports": {
135
+ "optional": true
136
+ },
137
+ "prettier-plugin-sort-imports": {
138
+ "optional": true
139
+ },
140
+ "prettier-plugin-svelte": {
141
+ "optional": true
142
+ }
143
+ },
144
+ "engines": {
145
+ "node": ">=20.19"
146
+ },
147
+ "importSort": {
148
+ ".js, .jsx, .ts, .tsx": {
149
+ "style": "module"
150
+ }
151
+ },
152
+ "jest": {
153
+ "testTimeout": 15000
154
+ },
155
+ "overrides": {
156
+ "@ianvs/prettier-plugin-sort-imports": {
157
+ "@prettier/plugin-oxc": "^0.1.2"
158
+ }
159
+ },
160
+ "scripts": {
161
+ "build": "tsdown",
162
+ "dev": "tsdown --watch",
163
+ "pretest": "node scripts/install-fixture-deps.js",
164
+ "test": "vitest",
165
+ "format": "prettier \"src/**/*.ts\" \"scripts/**/*.js\" \"tests/*.ts\" --write --print-width 100 --single-quote --no-semi",
166
+ "lint": "knip && oxlint --type-aware src tests/*.ts",
167
+ "release-channel": "node ./scripts/release-channel.js",
168
+ "release-notes": "node ./scripts/release-notes.js"
169
+ }
170
+ }
tools/ui/node_modules/pretty-bytes/index.d.ts ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export type Options = {
2
+ /**
3
+ Include plus sign for positive numbers. If the difference is exactly zero a space character will be prepended instead for better alignment.
4
+
5
+ @default false
6
+ */
7
+ readonly signed?: boolean;
8
+
9
+ /**
10
+ - If `false`: Output won't be localized.
11
+ - If `true`: Localize the output using the system/browser locale.
12
+ - If `string`: Expects a [BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …)
13
+ - If `string[]`: Expects a list of [BCP 47 language tags](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …)
14
+
15
+ @default false
16
+ */
17
+ readonly locale?: boolean | string | readonly string[];
18
+
19
+ /**
20
+ Format the number as [bits](https://en.wikipedia.org/wiki/Bit) instead of [bytes](https://en.wikipedia.org/wiki/Byte). This can be useful when, for example, referring to [bit rate](https://en.wikipedia.org/wiki/Bit_rate).
21
+
22
+ @default false
23
+
24
+ @example
25
+ ```
26
+ import prettyBytes from 'pretty-bytes';
27
+
28
+ prettyBytes(1337, {bits: true});
29
+ //=> '1.34 kbit'
30
+ ```
31
+ */
32
+ readonly bits?: boolean;
33
+
34
+ /**
35
+ Format the number using the [Binary Prefix](https://en.wikipedia.org/wiki/Binary_prefix) instead of the [SI Prefix](https://en.wikipedia.org/wiki/SI_prefix). This can be useful for presenting memory amounts. However, this should not be used for presenting file sizes.
36
+
37
+ @default false
38
+
39
+ @example
40
+ ```
41
+ import prettyBytes from 'pretty-bytes';
42
+
43
+ prettyBytes(1000, {binary: true});
44
+ //=> '1000 bit'
45
+
46
+ prettyBytes(1024, {binary: true});
47
+ //=> '1 kiB'
48
+ ```
49
+ */
50
+ readonly binary?: boolean;
51
+
52
+ /**
53
+ The minimum number of fraction digits to display.
54
+
55
+ If neither `minimumFractionDigits` or `maximumFractionDigits` are set, the default behavior is to round to 3 significant digits.
56
+
57
+ @default undefined
58
+
59
+ @example
60
+ ```
61
+ import prettyBytes from 'pretty-bytes';
62
+
63
+ // Show the number with at least 3 fractional digits
64
+ prettyBytes(1900, {minimumFractionDigits: 3});
65
+ //=> '1.900 kB'
66
+
67
+ prettyBytes(1900);
68
+ //=> '1.9 kB'
69
+ ```
70
+ */
71
+ readonly minimumFractionDigits?: number;
72
+
73
+ /**
74
+ The maximum number of fraction digits to display.
75
+
76
+ If neither `minimumFractionDigits` or `maximumFractionDigits` are set, the default behavior is to round to 3 significant digits.
77
+
78
+ @default undefined
79
+
80
+ @example
81
+ ```
82
+ import prettyBytes from 'pretty-bytes';
83
+
84
+ // Show the number with at most 1 fractional digit
85
+ prettyBytes(1920, {maximumFractionDigits: 1});
86
+ //=> '1.9 kB'
87
+
88
+ prettyBytes(1920);
89
+ //=> '1.92 kB'
90
+ ```
91
+ */
92
+ readonly maximumFractionDigits?: number;
93
+
94
+ /**
95
+ Put a space between the number and unit.
96
+
97
+ @default true
98
+
99
+ @example
100
+ ```
101
+ import prettyBytes from 'pretty-bytes';
102
+
103
+ prettyBytes(1920, {space: false});
104
+ //=> '1.9kB'
105
+
106
+ prettyBytes(1920);
107
+ //=> '1.92 kB'
108
+ ```
109
+ */
110
+ readonly space?: boolean;
111
+ };
112
+
113
+ /**
114
+ Convert bytes to a human readable string: `1337` → `1.34 kB`.
115
+
116
+ @param number - The number to format.
117
+
118
+ @example
119
+ ```
120
+ import prettyBytes from 'pretty-bytes';
121
+
122
+ prettyBytes(1337);
123
+ //=> '1.34 kB'
124
+
125
+ prettyBytes(100);
126
+ //=> '100 B'
127
+
128
+ // Display file size differences
129
+ prettyBytes(42, {signed: true});
130
+ //=> '+42 B'
131
+
132
+ // Localized output using German locale
133
+ prettyBytes(1337, {locale: 'de'});
134
+ //=> '1,34 kB'
135
+ ```
136
+ */
137
+ export default function prettyBytes(
138
+ number: number,
139
+ options?: Options
140
+ ): string;