prettier-plugin-embed 0.4.12 → 0.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,26 +1,25 @@
1
- import { builders as T, utils as si } from "prettier/doc";
2
- import Ei from "prettier/parser-babel";
3
- import bi from "prettier/parser-espree";
4
- import fi from "prettier/parser-flow";
5
- import yi from "prettier/parser-meriyah";
6
- import _i from "prettier/parser-typescript";
7
- import { printers as $i } from "prettier/plugins/estree.mjs";
1
+ import { builders as T, utils as ii } from "prettier/doc";
2
+ import hi from "prettier/parser-babel";
3
+ import Ei from "prettier/parser-espree";
4
+ import bi from "prettier/parser-flow";
5
+ import fi from "prettier/parser-meriyah";
6
+ import yi from "prettier/parser-typescript";
7
+ import { printers as _i } from "prettier/plugins/estree.mjs";
8
8
  import { resolveConfigFile as vi } from "prettier";
9
- import { builders as Di } from "prettier/doc.js";
10
- const { group: Mi, indent: Ti, softline: qe, hardline: Ai, lineSuffixBoundary: Si } = T, { mapDoc: Li } = si;
11
- function ki(e, t) {
9
+ const { group: $i, indent: Di, softline: Pe, hardline: Ti, lineSuffixBoundary: Mi } = T, { mapDoc: Ai } = ii;
10
+ function Si(e, t) {
12
11
  const { node: n } = e;
13
12
  let r = t();
14
- return n?.comments?.length && (r = Mi([Ti([qe, r]), qe])), ["${", r, Si, "}"];
13
+ return n?.comments?.length && (r = $i([Di([Pe, r]), Pe])), ["${", r, Mi, "}"];
15
14
  }
16
15
  function S(e, t) {
17
16
  return e.map(
18
- (n) => ki(n, t),
17
+ (n) => Si(n, t),
19
18
  "expressions"
20
19
  );
21
20
  }
22
21
  function A(e, t, n, r = !1) {
23
- return Li(e, (a) => {
22
+ return Ai(e, (a) => {
24
23
  if (typeof a != "string")
25
24
  return a;
26
25
  const s = [], l = a.split(t);
@@ -32,7 +31,7 @@ function A(e, t, n, r = !1) {
32
31
  if (E = E.replaceAll(/([\\`]|\${)/g, "\\$1"), r)
33
32
  for (const d of E.split(/(\n)/))
34
33
  d === `
35
- ` ? s.push(Ai) : s.push(d);
34
+ ` ? s.push(Ti) : s.push(d);
36
35
  else
37
36
  s.push(E);
38
37
  } else {
@@ -43,17 +42,7 @@ function A(e, t, n, r = !1) {
43
42
  return s;
44
43
  });
45
44
  }
46
- function N(e, t, n) {
47
- if (!(t.plugins?.some(
48
- (r) => r.name?.match(
49
- new RegExp(`(^|/)${Pe(e)}($|/)`)
50
- ) ?? !1
51
- ) ?? !1))
52
- throw new Error(
53
- `Cannot format embedded language identified by "${n}", because plugin "${e}" is not loaded.`
54
- );
55
- }
56
- function Gi(e, t, n) {
45
+ function Li(e, t, n) {
57
46
  if (t === n) {
58
47
  e.unshift(t);
59
48
  return;
@@ -69,7 +58,7 @@ function Gi(e, t, n) {
69
58
  }
70
59
  e.splice(r, 0, t);
71
60
  }
72
- const he = (() => {
61
+ const me = (() => {
73
62
  const e = [...Array(26).keys()].map((t) => String.fromCharCode(t + 97)).concat([...Array(10).keys()].map((t) => `${t}`));
74
63
  return () => {
75
64
  let n = "";
@@ -79,7 +68,7 @@ const he = (() => {
79
68
  };
80
69
  })();
81
70
  function L(e = "p", t = "") {
82
- const n = he(), r = he(), i = Pe(e), a = Pe(t), s = (u) => `${e}${n}${u}${r}${t}`, l = new RegExp(
71
+ const n = me(), r = me(), i = Be(e), a = Be(t), s = (u) => `${e}${n}${u}${r}${t}`, l = new RegExp(
83
72
  `${i}${n}(\\d+)${r}${a}`,
84
73
  "ig"
85
74
  );
@@ -88,10 +77,10 @@ function L(e = "p", t = "") {
88
77
  placeholderRegex: l
89
78
  };
90
79
  }
91
- function Pe(e) {
80
+ function Be(e) {
92
81
  return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
93
82
  }
94
- function v(e) {
83
+ function $(e) {
95
84
  return `${e}Identifiers`;
96
85
  }
97
86
  function M(e) {
@@ -100,13 +89,13 @@ function M(e) {
100
89
  function D(e) {
101
90
  return `${e}Tags`;
102
91
  }
103
- function Ni(e) {
92
+ function ki(e) {
104
93
  return `${e}Plugin`;
105
94
  }
106
- function x(e) {
95
+ function N(e) {
107
96
  return `${e}Parser`;
108
97
  }
109
- const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
98
+ const { line: qe, group: x, indent: je, softline: Ue } = T, Gi = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
110
99
  const s = {
111
100
  ...r,
112
101
  ...a
@@ -120,44 +109,44 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
120
109
  parser: s.embeddedCssParser ?? "scss"
121
110
  }), o = A(_, E, b);
122
111
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
123
- return O([
112
+ return x([
124
113
  "`",
125
114
  c,
126
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [O(o)] : Ue([O(o)]),
115
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [x(o)] : je([x(o)]),
127
116
  p,
128
117
  "`"
129
118
  ]);
130
- const h = c.length ? je : Re, $ = p.length ? je : Re;
131
- return O([
119
+ const h = c.length ? qe : Ue, v = p.length ? qe : Ue;
120
+ return x([
132
121
  "`",
133
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, O(o)] : Ue([h, O(o)]),
134
- $,
122
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, x(o)] : je([h, x(o)]),
123
+ v,
135
124
  "`"
136
125
  ]);
137
- }, re = "embeddedCss", Ii = ["css"], Oi = ["css", "less", "scss"], Pi = v(re), Ce = M(re), we = D(re), Bi = x(re), qi = {
138
- [Pi]: {
126
+ }, se = "embeddedCss", Ni = ["css"], Oi = ["css", "less", "scss"], xi = $(se), Re = M(se), Ce = D(se), Ii = N(se), Pi = {
127
+ [xi]: {
139
128
  category: "Embed",
140
129
  type: "string",
141
130
  array: !0,
142
- default: [{ value: [...Ii] }],
131
+ default: [{ value: [...Ni] }],
143
132
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded CSS language.",
144
- deprecated: `Please use \`${Ce}\` or \`${we}\`.`
133
+ deprecated: `Please use \`${Re}\` or \`${Ce}\`.`
145
134
  },
146
- [Ce]: {
135
+ [Re]: {
147
136
  category: "Embed",
148
137
  type: "string",
149
138
  array: !0,
150
139
  default: [{ value: [] }],
151
140
  description: "Block comments that make their subsequent template literals be identified as embedded CSS language."
152
141
  },
153
- [we]: {
142
+ [Ce]: {
154
143
  category: "Embed",
155
144
  type: "string",
156
145
  array: !0,
157
146
  default: [{ value: [] }],
158
147
  description: "Tags that make their subsequent template literals be identified as embedded CSS language."
159
148
  },
160
- [Bi]: {
149
+ [Ii]: {
161
150
  category: "Embed",
162
151
  type: "choice",
163
152
  default: "scss",
@@ -167,12 +156,12 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
167
156
  description: `Use the "${e}" parser.`
168
157
  }))
169
158
  }
170
- }, ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
159
+ }, Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
171
160
  __proto__: null,
172
- embedder: xi,
173
- language: re,
174
- options: qi
175
- }, Symbol.toStringTag, { value: "Module" })), { line: Fe, group: P, indent: We, softline: ze } = T, Ui = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
161
+ embedder: Gi,
162
+ language: se,
163
+ options: Pi
164
+ }, Symbol.toStringTag, { value: "Module" })), { line: we, group: I, indent: Fe, softline: We } = T, qi = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
176
165
  const s = {
177
166
  ...r,
178
167
  ...a
@@ -186,21 +175,21 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
186
175
  parser: s.embeddedEsParser ?? "babel"
187
176
  }), o = A(_, E, b);
188
177
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
189
- return P([
178
+ return I([
190
179
  "`",
191
180
  c,
192
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [P(o)] : We([P(o)]),
181
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [I(o)] : Fe([I(o)]),
193
182
  p,
194
183
  "`"
195
184
  ]);
196
- const h = c.length ? Fe : ze, $ = p.length ? Fe : ze;
197
- return P([
185
+ const h = c.length ? we : We, v = p.length ? we : We;
186
+ return I([
198
187
  "`",
199
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, P(o)] : We([h, P(o)]),
200
- $,
188
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, I(o)] : Fe([h, I(o)]),
189
+ v,
201
190
  "`"
202
191
  ]);
203
- }, oe = "embeddedEs", Ri = [
192
+ }, re = "embeddedEs", ji = [
204
193
  "js",
205
194
  "jsx",
206
195
  "es",
@@ -209,53 +198,52 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
209
198
  "cjs",
210
199
  "pac",
211
200
  "javascript"
212
- ], Ci = [
201
+ ], Ui = [
213
202
  "babel",
214
203
  "babel-flow",
215
204
  "acorn",
216
205
  "espree",
217
206
  "flow",
218
207
  "meriyah"
219
- ], wi = v(oe), Ke = M(oe), Je = D(oe), Fi = x(oe), Wi = {
220
- [wi]: {
208
+ ], Ri = $(re), ze = M(re), Ke = D(re), Ci = N(re), wi = {
209
+ [Ri]: {
221
210
  category: "Embed",
222
211
  type: "string",
223
212
  array: !0,
224
- default: [{ value: [...Ri] }],
213
+ default: [{ value: [...ji] }],
225
214
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language.",
226
- deprecated: `Please use \`${Ke}\` or \`${Je}\`.`
215
+ deprecated: `Please use \`${ze}\` or \`${Ke}\`.`
227
216
  },
228
- [Ke]: {
217
+ [ze]: {
229
218
  category: "Embed",
230
219
  type: "string",
231
220
  array: !0,
232
221
  default: [{ value: [] }],
233
222
  description: "Block comments that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language."
234
223
  },
235
- [Je]: {
224
+ [Ke]: {
236
225
  category: "Embed",
237
226
  type: "string",
238
227
  array: !0,
239
228
  default: [{ value: [] }],
240
229
  description: "Tags that make their subsequent template literals be identified as embedded ECMAScript/JavaScript language."
241
230
  },
242
- [Fi]: {
231
+ [Ci]: {
243
232
  category: "Embed",
244
233
  type: "choice",
245
234
  default: "babel",
246
235
  description: "The parser used to parse the embedded ECMASCript/JavaScript language.",
247
- choices: Ci.map((e) => ({
236
+ choices: Ui.map((e) => ({
248
237
  value: e,
249
238
  description: `Use the "${e}" parser.`
250
239
  }))
251
240
  }
252
- }, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
241
+ }, Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
253
242
  __proto__: null,
254
- embedder: Ui,
255
- language: oe,
256
- options: Wi
257
- }, Symbol.toStringTag, { value: "Module" })), { line: He, group: B, indent: Xe, softline: Qe } = T, Ki = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
258
- N("prettier-plugin-glsl", r, i);
243
+ embedder: qi,
244
+ language: re,
245
+ options: wi
246
+ }, Symbol.toStringTag, { value: "Module" })), { line: Je, group: P, indent: He, softline: Xe } = T, Wi = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
259
247
  const s = {
260
248
  ...r,
261
249
  ...a
@@ -269,49 +257,49 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
269
257
  parser: "glsl-parser"
270
258
  }), o = A(_, E, b);
271
259
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
272
- return B([
260
+ return P([
273
261
  "`",
274
262
  c,
275
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [B(o)] : Xe([B(o)]),
263
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [P(o)] : He([P(o)]),
276
264
  p,
277
265
  "`"
278
266
  ]);
279
- const h = c.length ? He : Qe, $ = p.length ? He : Qe;
280
- return B([
267
+ const h = c.length ? Je : Xe, v = p.length ? Je : Xe;
268
+ return P([
281
269
  "`",
282
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, B(o)] : Xe([h, B(o)]),
283
- $,
270
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, P(o)] : He([h, P(o)]),
271
+ v,
284
272
  "`"
285
273
  ]);
286
- }, be = "embeddedGlsl", Ji = ["glsl", "shader"], Hi = v(be), Ye = M(be), Ve = D(be), Xi = {
287
- [Hi]: {
274
+ }, Ee = "embeddedGlsl", zi = ["glsl", "shader"], Ki = $(Ee), Qe = M(Ee), Ye = D(Ee), Ji = {
275
+ [Ki]: {
288
276
  category: "Embed",
289
277
  type: "string",
290
278
  array: !0,
291
- default: [{ value: [...Ji] }],
279
+ default: [{ value: [...zi] }],
292
280
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin.",
293
- deprecated: `Please use \`${Ye}\` or \`${Ve}\`.`
281
+ deprecated: `Please use \`${Qe}\` or \`${Ye}\`.`
294
282
  },
295
- [Ye]: {
283
+ [Qe]: {
296
284
  category: "Embed",
297
285
  type: "string",
298
286
  array: !0,
299
287
  default: [{ value: [] }],
300
288
  description: "Block comments that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin."
301
289
  },
302
- [Ve]: {
290
+ [Ye]: {
303
291
  category: "Embed",
304
292
  type: "string",
305
293
  array: !0,
306
294
  default: [{ value: [] }],
307
295
  description: "Tags that make their subsequent template literals be identified as embedded GLSL language. This option requires the `prettier-plugin-glsl` plugin."
308
296
  }
309
- }, Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
297
+ }, Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
310
298
  __proto__: null,
311
- embedder: Ki,
312
- language: be,
313
- options: Xi
314
- }, Symbol.toStringTag, { value: "Module" })), { line: Ze, group: q, indent: et, softline: tt } = T, Yi = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
299
+ embedder: Wi,
300
+ language: Ee,
301
+ options: Ji
302
+ }, Symbol.toStringTag, { value: "Module" })), { line: Ve, group: B, indent: Ze, softline: et } = T, Xi = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
315
303
  const s = {
316
304
  ...r,
317
305
  ...a
@@ -325,49 +313,49 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
325
313
  parser: "graphql"
326
314
  }), o = A(_, E, b);
327
315
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
328
- return q([
316
+ return B([
329
317
  "`",
330
318
  c,
331
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [q(o)] : et([q(o)]),
319
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [B(o)] : Ze([B(o)]),
332
320
  p,
333
321
  "`"
334
322
  ]);
335
- const h = c.length ? Ze : tt, $ = p.length ? Ze : tt;
336
- return q([
323
+ const h = c.length ? Ve : et, v = p.length ? Ve : et;
324
+ return B([
337
325
  "`",
338
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, q(o)] : et([h, q(o)]),
339
- $,
326
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, B(o)] : Ze([h, B(o)]),
327
+ v,
340
328
  "`"
341
329
  ]);
342
- }, fe = "embeddedGraphql", Vi = ["graphql", "gql"], Zi = v(fe), nt = M(fe), it = D(fe), es = {
343
- [Zi]: {
330
+ }, be = "embeddedGraphql", Qi = ["graphql", "gql"], Yi = $(be), tt = M(be), nt = D(be), Vi = {
331
+ [Yi]: {
344
332
  category: "Embed",
345
333
  type: "string",
346
334
  array: !0,
347
- default: [{ value: [...Vi] }],
335
+ default: [{ value: [...Qi] }],
348
336
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded GraphQL language.",
349
- deprecated: `Please use \`${nt}\` or \`${it}\`.`
337
+ deprecated: `Please use \`${tt}\` or \`${nt}\`.`
350
338
  },
351
- [nt]: {
339
+ [tt]: {
352
340
  category: "Embed",
353
341
  type: "string",
354
342
  array: !0,
355
343
  default: [{ value: [] }],
356
344
  description: "Block comments that make their subsequent template literals be identified as embedded GraphQL language."
357
345
  },
358
- [it]: {
346
+ [nt]: {
359
347
  category: "Embed",
360
348
  type: "string",
361
349
  array: !0,
362
350
  default: [{ value: [] }],
363
351
  description: "Tags that make their subsequent template literals be identified as embedded GraphQL language."
364
352
  }
365
- }, ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
353
+ }, Zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
366
354
  __proto__: null,
367
- embedder: Yi,
368
- language: fe,
369
- options: es
370
- }, Symbol.toStringTag, { value: "Module" })), { line: st, group: j, indent: rt, softline: ot } = T, { mapDoc: ns } = si, is = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
355
+ embedder: Xi,
356
+ language: be,
357
+ options: Vi
358
+ }, Symbol.toStringTag, { value: "Module" })), { line: it, group: q, indent: st, softline: rt } = T, { mapDoc: es } = ii, ts = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
371
359
  const s = {
372
360
  ...r,
373
361
  ...a
@@ -379,7 +367,7 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
379
367
  ), b = S(n, t), _ = await e(f, {
380
368
  ...s,
381
369
  parser: s.embeddedHtmlParser ?? "html"
382
- }), o = ns(_, (m) => {
370
+ }), o = es(_, (m) => {
383
371
  if (typeof m != "string")
384
372
  return m;
385
373
  const g = [], y = m.split(E);
@@ -390,68 +378,67 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
390
378
  continue;
391
379
  G = G.replaceAll(/([\\`]|\${)/g, "\\$1"), s.__embeddedInHtml && (G = G.replaceAll(/<\/(?=script\b)/gi, "<\\/")), g.push(G);
392
380
  } else {
393
- const I = Number(G);
394
- g.push(b[I]);
381
+ const O = Number(G);
382
+ g.push(b[O]);
395
383
  }
396
384
  }
397
385
  return g;
398
386
  });
399
387
  if (s.htmlWhitespaceSensitivity === "strict" || // TODO: is css mode should be included here?
400
388
  s.htmlWhitespaceSensitivity === "css" || s.preserveEmbeddedExteriorWhitespaces?.includes(i))
401
- return j([
389
+ return q([
402
390
  "`",
403
391
  c,
404
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [j(o)] : rt([j(o)]),
392
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [q(o)] : st([q(o)]),
405
393
  p,
406
394
  "`"
407
395
  ]);
408
- const h = c.length ? st : ot, $ = p.length ? st : ot;
409
- return j([
396
+ const h = c.length ? it : rt, v = p.length ? it : rt;
397
+ return q([
410
398
  "`",
411
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, j(o)] : rt([h, j(o)]),
412
- $,
399
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, q(o)] : st([h, q(o)]),
400
+ v,
413
401
  "`"
414
402
  ]);
415
- }, ae = "embeddedHtml", ss = ["html", "xhtml"], rs = ["html", "vue", "angular", "lwc"], os = v(ae), at = M(ae), dt = D(ae), as = x(ae), ds = {
416
- [os]: {
403
+ }, oe = "embeddedHtml", ns = ["html", "xhtml"], is = ["html", "vue", "angular", "lwc"], ss = $(oe), ot = M(oe), at = D(oe), rs = N(oe), os = {
404
+ [ss]: {
417
405
  category: "Embed",
418
406
  type: "string",
419
407
  array: !0,
420
- default: [{ value: [...ss] }],
408
+ default: [{ value: [...ns] }],
421
409
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded HTML language.",
422
- deprecated: `Please use \`${at}\` or \`${dt}\`.`
410
+ deprecated: `Please use \`${ot}\` or \`${at}\`.`
423
411
  },
424
- [at]: {
412
+ [ot]: {
425
413
  category: "Embed",
426
414
  type: "string",
427
415
  array: !0,
428
416
  default: [{ value: [] }],
429
417
  description: "Block comments that make their subsequent template literals be identified as embedded HTML language."
430
418
  },
431
- [dt]: {
419
+ [at]: {
432
420
  category: "Embed",
433
421
  type: "string",
434
422
  array: !0,
435
423
  default: [{ value: [] }],
436
424
  description: "Tags that make their subsequent template literals be identified as embedded HTML language."
437
425
  },
438
- [as]: {
426
+ [rs]: {
439
427
  category: "Embed",
440
428
  type: "choice",
441
429
  default: "html",
442
430
  description: "The parser used to parse the embedded HTML language.",
443
- choices: rs.map((e) => ({
431
+ choices: is.map((e) => ({
444
432
  value: e,
445
433
  description: `Use the "${e}" parser.`
446
434
  }))
447
435
  }
448
- }, ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
436
+ }, as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
449
437
  __proto__: null,
450
- embedder: is,
451
- language: ae,
452
- options: ds
453
- }, Symbol.toStringTag, { value: "Module" })), { line: lt, group: U, indent: ct, softline: ut } = T, cs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
454
- N("prettier-plugin-ini", r, i);
438
+ embedder: ts,
439
+ language: oe,
440
+ options: os
441
+ }, Symbol.toStringTag, { value: "Module" })), { line: dt, group: j, indent: lt, softline: ct } = T, ds = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
455
442
  const s = {
456
443
  ...r,
457
444
  ...a
@@ -465,50 +452,49 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
465
452
  parser: "ini"
466
453
  }), o = A(_, E, b);
467
454
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
468
- return U([
455
+ return j([
469
456
  "`",
470
457
  c,
471
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [U(o)] : ct([U(o)]),
458
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [j(o)] : lt([j(o)]),
472
459
  p,
473
460
  "`"
474
461
  ]);
475
- const h = c.length ? lt : ut, $ = p.length ? lt : ut;
476
- return U([
462
+ const h = c.length ? dt : ct, v = p.length ? dt : ct;
463
+ return j([
477
464
  "`",
478
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, U(o)] : ct([h, U(o)]),
479
- $,
465
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, j(o)] : lt([h, j(o)]),
466
+ v,
480
467
  "`"
481
468
  ]);
482
- }, ye = "embeddedIni", us = ["ini", "cfg", "pro"], ps = v(ye), pt = M(ye), gt = D(ye), gs = {
483
- [ps]: {
469
+ }, fe = "embeddedIni", ls = ["ini", "cfg", "pro"], cs = $(fe), ut = M(fe), pt = D(fe), us = {
470
+ [cs]: {
484
471
  category: "Embed",
485
472
  type: "string",
486
473
  array: !0,
487
- default: [{ value: [...us] }],
474
+ default: [{ value: [...ls] }],
488
475
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin.",
489
- deprecated: `Please use \`${pt}\` or \`${gt}\`.`
476
+ deprecated: `Please use \`${ut}\` or \`${pt}\`.`
490
477
  },
491
- [pt]: {
478
+ [ut]: {
492
479
  category: "Embed",
493
480
  type: "string",
494
481
  array: !0,
495
482
  default: [{ value: [] }],
496
483
  description: "Block comments that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin."
497
484
  },
498
- [gt]: {
485
+ [pt]: {
499
486
  category: "Embed",
500
487
  type: "string",
501
488
  array: !0,
502
489
  default: [{ value: [] }],
503
490
  description: "Tags that make their subsequent template literals be identified as embedded INI language. This option requires the `prettier-plugin-ini` plugin."
504
491
  }
505
- }, ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
492
+ }, ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
506
493
  __proto__: null,
507
- embedder: cs,
508
- language: ye,
509
- options: gs
510
- }, Symbol.toStringTag, { value: "Module" })), { group: R, line: mt, softline: ht, indent: Et } = T, hs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
511
- N("prettier-plugin-java", r, i);
494
+ embedder: ds,
495
+ language: fe,
496
+ options: us
497
+ }, Symbol.toStringTag, { value: "Module" })), { group: U, line: gt, softline: mt, indent: ht } = T, gs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
512
498
  const s = {
513
499
  ...r,
514
500
  ...a
@@ -527,53 +513,53 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
527
513
  !0
528
514
  );
529
515
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
530
- return R([
516
+ return U([
531
517
  "`",
532
518
  c,
533
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [R(o)] : Et([R(o)]),
519
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [U(o)] : ht([U(o)]),
534
520
  p,
535
521
  "`"
536
522
  ]);
537
- const h = c.length ? mt : ht, $ = p.length ? mt : ht;
538
- return R([
523
+ const h = c.length ? gt : mt, v = p.length ? gt : mt;
524
+ return U([
539
525
  "`",
540
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, R(o)] : Et([h, R(o)]),
541
- $,
526
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, U(o)] : ht([h, U(o)]),
527
+ v,
542
528
  "`"
543
529
  ]);
544
- }, _e = "embeddedJava", Es = ["java"], bs = v(_e), bt = M(_e), ft = D(_e), fs = {
545
- [bs]: {
530
+ }, ye = "embeddedJava", ms = ["java"], hs = $(ye), Et = M(ye), bt = D(ye), Es = {
531
+ [hs]: {
546
532
  category: "Embed",
547
533
  type: "string",
548
534
  array: !0,
549
- default: [{ value: [...Es] }],
535
+ default: [{ value: [...ms] }],
550
536
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin.",
551
- deprecated: `Please use \`${bt}\` or \`${ft}\`.`
537
+ deprecated: `Please use \`${Et}\` or \`${bt}\`.`
552
538
  },
553
- [bt]: {
539
+ [Et]: {
554
540
  category: "Embed",
555
541
  type: "string",
556
542
  array: !0,
557
543
  default: [{ value: [] }],
558
544
  description: "Block comments that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin."
559
545
  },
560
- [ft]: {
546
+ [bt]: {
561
547
  category: "Embed",
562
548
  type: "string",
563
549
  array: !0,
564
550
  default: [{ value: [] }],
565
551
  description: "Tags that make their subsequent template literals be identified as embedded Java language. This option requires the `prettier-plugin-java` plugin."
566
552
  }
567
- }, ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
553
+ }, bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
568
554
  __proto__: null,
569
- embedder: hs,
570
- language: _e,
571
- options: fs
572
- }, Symbol.toStringTag, { value: "Module" })), { line: yt, group: C, indent: _t, softline: $t } = T, _s = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
555
+ embedder: gs,
556
+ language: ye,
557
+ options: Es
558
+ }, Symbol.toStringTag, { value: "Module" })), { line: ft, group: R, indent: yt, softline: _t } = T, fs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
573
559
  const s = {
574
560
  ...r,
575
561
  ...a
576
- }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = $s(), d = l.quasis.map(
562
+ }, { node: l } = n, { createPlaceholder: u, placeholderRegex: E } = ys(), d = l.quasis.map(
577
563
  (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + u(g)
578
564
  ).join(""), c = d.match(/^\s+/)?.[0] ?? "", p = d.match(/\s+$/)?.[0] ?? "", f = d.slice(
579
565
  c.length,
@@ -583,23 +569,23 @@ const { line: je, group: O, indent: Ue, softline: Re } = T, xi = async (e, t, n,
583
569
  parser: s.embeddedJsonParser ?? "json"
584
570
  }), o = A(_, E, b);
585
571
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
586
- return C([
572
+ return R([
587
573
  "`",
588
574
  c,
589
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [C(o)] : _t([C(o)]),
575
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [R(o)] : yt([R(o)]),
590
576
  p,
591
577
  "`"
592
578
  ]);
593
- const h = c.length ? yt : $t, $ = p.length ? yt : $t;
594
- return C([
579
+ const h = c.length ? ft : _t, v = p.length ? ft : _t;
580
+ return R([
595
581
  "`",
596
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, C(o)] : _t([h, C(o)]),
597
- $,
582
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, R(o)] : yt([h, R(o)]),
583
+ v,
598
584
  "`"
599
585
  ]);
600
586
  };
601
- function $s() {
602
- const e = he(), t = he(), n = (i) => `'0${e}${i}${t}'`, r = new RegExp(
587
+ function ys() {
588
+ const e = me(), t = me(), n = (i) => `'0${e}${i}${t}'`, r = new RegExp(
603
589
  `["']?0${e}(\\d+)${t}['"]?`,
604
590
  "ig"
605
591
  );
@@ -608,14 +594,14 @@ function $s() {
608
594
  placeholderRegex: r
609
595
  };
610
596
  }
611
- const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc", "json-stringify"], Ms = v(de), vt = M(de), Dt = D(de), Ts = x(de), As = {
612
- [Ms]: {
597
+ const ae = "embeddedJson", _s = ["json", "jsonl"], vs = ["json", "json5", "jsonc", "json-stringify"], $s = $(ae), vt = M(ae), $t = D(ae), Ds = N(ae), Ts = {
598
+ [$s]: {
613
599
  category: "Embed",
614
600
  type: "string",
615
601
  array: !0,
616
- default: [{ value: [...vs] }],
602
+ default: [{ value: [..._s] }],
617
603
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded JSON language.",
618
- deprecated: `Please use \`${vt}\` or \`${Dt}\`.`
604
+ deprecated: `Please use \`${vt}\` or \`${$t}\`.`
619
605
  },
620
606
  [vt]: {
621
607
  category: "Embed",
@@ -624,34 +610,29 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
624
610
  default: [{ value: [] }],
625
611
  description: "Block comments that make their subsequent template literals be identified as embedded JSON language."
626
612
  },
627
- [Dt]: {
613
+ [$t]: {
628
614
  category: "Embed",
629
615
  type: "string",
630
616
  array: !0,
631
617
  default: [{ value: [] }],
632
618
  description: "Tags that make their subsequent template literals be identified as embedded JSON language."
633
619
  },
634
- [Ts]: {
620
+ [Ds]: {
635
621
  category: "Embed",
636
622
  type: "choice",
637
623
  default: "json",
638
624
  description: "The parser used to parse the embedded JSON language.",
639
- choices: Ds.map((e) => ({
625
+ choices: vs.map((e) => ({
640
626
  value: e,
641
627
  description: `Use the "${e}" parser.`
642
628
  }))
643
629
  }
644
- }, Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
630
+ }, Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
645
631
  __proto__: null,
646
- embedder: _s,
647
- language: de,
648
- options: As
649
- }, Symbol.toStringTag, { value: "Module" })), { line: Mt, group: w, indent: Tt, softline: At } = T, Ls = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
650
- N(
651
- "@stedi/prettier-plugin-jsonata",
652
- r,
653
- i
654
- );
632
+ embedder: fs,
633
+ language: ae,
634
+ options: Ts
635
+ }, Symbol.toStringTag, { value: "Module" })), { line: Dt, group: C, indent: Tt, softline: Mt } = T, As = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
655
636
  const s = {
656
637
  ...r,
657
638
  ...a
@@ -665,50 +646,49 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
665
646
  parser: "JSONata"
666
647
  }), o = A(_, E, b);
667
648
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
668
- return w([
649
+ return C([
669
650
  "`",
670
651
  c,
671
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [w(o)] : Tt([w(o)]),
652
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [C(o)] : Tt([C(o)]),
672
653
  p,
673
654
  "`"
674
655
  ]);
675
- const h = c.length ? Mt : At, $ = p.length ? Mt : At;
676
- return w([
656
+ const h = c.length ? Dt : Mt, v = p.length ? Dt : Mt;
657
+ return C([
677
658
  "`",
678
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, w(o)] : Tt([h, w(o)]),
679
- $,
659
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, C(o)] : Tt([h, C(o)]),
660
+ v,
680
661
  "`"
681
662
  ]);
682
- }, $e = "embeddedJsonata", ks = ["jsonata"], Gs = v($e), St = M($e), Lt = D($e), Ns = {
683
- [Gs]: {
663
+ }, _e = "embeddedJsonata", Ss = ["jsonata"], Ls = $(_e), At = M(_e), St = D(_e), ks = {
664
+ [Ls]: {
684
665
  category: "Embed",
685
666
  type: "string",
686
667
  array: !0,
687
- default: [{ value: [...ks] }],
668
+ default: [{ value: [...Ss] }],
688
669
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin.",
689
- deprecated: `Please use \`${St}\` or \`${Lt}\`.`
670
+ deprecated: `Please use \`${At}\` or \`${St}\`.`
690
671
  },
691
- [St]: {
672
+ [At]: {
692
673
  category: "Embed",
693
674
  type: "string",
694
675
  array: !0,
695
676
  default: [{ value: [] }],
696
677
  description: "Block comments that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin."
697
678
  },
698
- [Lt]: {
679
+ [St]: {
699
680
  category: "Embed",
700
681
  type: "string",
701
682
  array: !0,
702
683
  default: [{ value: [] }],
703
684
  description: "Tags that make their subsequent template literals be identified as embedded JSONata language. This option requires the `@stedi/prettier-plugin-jsonata` plugin."
704
685
  }
705
- }, xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
686
+ }, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
706
687
  __proto__: null,
707
- embedder: Ls,
708
- language: $e,
709
- options: Ns
710
- }, Symbol.toStringTag, { value: "Module" })), { line: kt, group: F, indent: Gt, softline: Nt } = T, Is = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
711
- N("prettier-plugin-latex", r, i);
688
+ embedder: As,
689
+ language: _e,
690
+ options: ks
691
+ }, Symbol.toStringTag, { value: "Module" })), { line: Lt, group: w, indent: kt, softline: Gt } = T, Ns = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
712
692
  const s = {
713
693
  ...r,
714
694
  ...a
@@ -722,18 +702,18 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
722
702
  parser: "latex-parser"
723
703
  }), o = A(_, E, b);
724
704
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
725
- return F([
705
+ return w([
726
706
  "`",
727
707
  c,
728
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [F(o)] : Gt([F(o)]),
708
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [w(o)] : kt([w(o)]),
729
709
  p,
730
710
  "`"
731
711
  ]);
732
- const h = c.length ? kt : Nt, $ = p.length ? kt : Nt;
733
- return F([
712
+ const h = c.length ? Lt : Gt, v = p.length ? Lt : Gt;
713
+ return w([
734
714
  "`",
735
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, F(o)] : Gt([h, F(o)]),
736
- $,
715
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, w(o)] : kt([h, w(o)]),
716
+ v,
737
717
  "`"
738
718
  ]);
739
719
  }, ve = "embeddedLatex", Os = [
@@ -745,35 +725,35 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
745
725
  "bib",
746
726
  "toc",
747
727
  "sty"
748
- ], Ps = v(ve), xt = M(ve), It = D(ve), Bs = {
749
- [Ps]: {
728
+ ], xs = $(ve), Nt = M(ve), Ot = D(ve), Is = {
729
+ [xs]: {
750
730
  category: "Embed",
751
731
  type: "string",
752
732
  array: !0,
753
733
  default: [{ value: [...Os] }],
754
734
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin.",
755
- deprecated: `Please use \`${xt}\` or \`${It}\`.`
735
+ deprecated: `Please use \`${Nt}\` or \`${Ot}\`.`
756
736
  },
757
- [xt]: {
737
+ [Nt]: {
758
738
  category: "Embed",
759
739
  type: "string",
760
740
  array: !0,
761
741
  default: [{ value: [] }],
762
742
  description: "Block comments that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin."
763
743
  },
764
- [It]: {
744
+ [Ot]: {
765
745
  category: "Embed",
766
746
  type: "string",
767
747
  array: !0,
768
748
  default: [{ value: [] }],
769
749
  description: "Tags that make their subsequent template literals be identified as embedded LaTeX language. This option requires the `prettier-plugin-latex` plugin."
770
750
  }
771
- }, qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
751
+ }, Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
772
752
  __proto__: null,
773
- embedder: Is,
753
+ embedder: Ns,
774
754
  language: ve,
775
- options: Bs
776
- }, Symbol.toStringTag, { value: "Module" })), { line: Ot, group: W, indent: Pt, softline: Bt } = T, js = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
755
+ options: Is
756
+ }, Symbol.toStringTag, { value: "Module" })), { line: xt, group: F, indent: It, softline: Pt } = T, Bs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
777
757
  const s = {
778
758
  ...r,
779
759
  ...a
@@ -788,60 +768,59 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
788
768
  __inJsTemplate: !0
789
769
  }), o = A(_, E, b);
790
770
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
791
- return W([
771
+ return F([
792
772
  "`",
793
773
  c,
794
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [W(o)] : Pt([W(o)]),
774
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [F(o)] : It([F(o)]),
795
775
  p,
796
776
  "`"
797
777
  ]);
798
- const h = c.length ? Ot : Bt, $ = p.length ? Ot : Bt;
799
- return W([
778
+ const h = c.length ? xt : Pt, v = p.length ? xt : Pt;
779
+ return F([
800
780
  "`",
801
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, W(o)] : Pt([h, W(o)]),
802
- $,
781
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, F(o)] : It([h, F(o)]),
782
+ v,
803
783
  "`"
804
784
  ]);
805
- }, le = "embeddedMarkdown", Us = ["md", "markdown"], Rs = ["markdown", "mdx", "remark"], Cs = v(le), qt = M(le), jt = D(le), ws = x(le), Fs = {
806
- [Cs]: {
785
+ }, de = "embeddedMarkdown", qs = ["md", "markdown"], js = ["markdown", "mdx", "remark"], Us = $(de), Bt = M(de), qt = D(de), Rs = N(de), Cs = {
786
+ [Us]: {
807
787
  category: "Embed",
808
788
  type: "string",
809
789
  array: !0,
810
- default: [{ value: [...Us] }],
790
+ default: [{ value: [...qs] }],
811
791
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Markdown language.",
812
- deprecated: `Please use \`${qt}\` or \`${jt}\`.`
792
+ deprecated: `Please use \`${Bt}\` or \`${qt}\`.`
813
793
  },
814
- [qt]: {
794
+ [Bt]: {
815
795
  category: "Embed",
816
796
  type: "string",
817
797
  array: !0,
818
798
  default: [{ value: [] }],
819
799
  description: "Block comments that make their subsequent template literals be identified as embedded Markdown language."
820
800
  },
821
- [jt]: {
801
+ [qt]: {
822
802
  category: "Embed",
823
803
  type: "string",
824
804
  array: !0,
825
805
  default: [{ value: [] }],
826
806
  description: "Tags that make their subsequent template literals be identified as embedded Markdown language."
827
807
  },
828
- [ws]: {
808
+ [Rs]: {
829
809
  category: "Embed",
830
810
  type: "choice",
831
811
  default: "markdown",
832
812
  description: "The parser used to parse the embedded Markdown language.",
833
- choices: Rs.map((e) => ({
813
+ choices: js.map((e) => ({
834
814
  value: e,
835
815
  description: `Use the "${e}" parser.`
836
816
  }))
837
817
  }
838
- }, Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
818
+ }, ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
839
819
  __proto__: null,
840
- embedder: js,
841
- language: le,
842
- options: Fs
843
- }, Symbol.toStringTag, { value: "Module" })), { line: Ut, group: z, indent: Rt, softline: Ct } = T, zs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
844
- N("prettier-plugin-nginx", r, i);
820
+ embedder: Bs,
821
+ language: de,
822
+ options: Cs
823
+ }, Symbol.toStringTag, { value: "Module" })), { line: jt, group: W, indent: Ut, softline: Rt } = T, Fs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
845
824
  const s = {
846
825
  ...r,
847
826
  ...a
@@ -855,77 +834,76 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
855
834
  parser: "nginx"
856
835
  }), o = A(_, E, b);
857
836
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
858
- return z([
837
+ return W([
859
838
  "`",
860
839
  c,
861
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [z(o)] : Rt([z(o)]),
840
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [W(o)] : Ut([W(o)]),
862
841
  p,
863
842
  "`"
864
843
  ]);
865
- const h = c.length ? Ut : Ct, $ = p.length ? Ut : Ct;
866
- return z([
844
+ const h = c.length ? jt : Rt, v = p.length ? jt : Rt;
845
+ return W([
867
846
  "`",
868
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, z(o)] : Rt([h, z(o)]),
869
- $,
847
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, W(o)] : Ut([h, W(o)]),
848
+ v,
870
849
  "`"
871
850
  ]);
872
- }, De = "embeddedNginx", Ks = ["nginx"], Js = v(De), wt = M(De), Ft = D(De), Hs = {
873
- [Js]: {
851
+ }, $e = "embeddedNginx", Ws = ["nginx"], zs = $($e), Ct = M($e), wt = D($e), Ks = {
852
+ [zs]: {
874
853
  category: "Embed",
875
854
  type: "string",
876
855
  array: !0,
877
- default: [{ value: [...Ks] }],
856
+ default: [{ value: [...Ws] }],
878
857
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin.",
879
- deprecated: `Please use \`${wt}\` or \`${Ft}\`.`
858
+ deprecated: `Please use \`${Ct}\` or \`${wt}\`.`
880
859
  },
881
- [wt]: {
860
+ [Ct]: {
882
861
  category: "Embed",
883
862
  type: "string",
884
863
  array: !0,
885
864
  default: [{ value: [] }],
886
865
  description: "Block comments that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin."
887
866
  },
888
- [Ft]: {
867
+ [wt]: {
889
868
  category: "Embed",
890
869
  type: "string",
891
870
  array: !0,
892
871
  default: [{ value: [] }],
893
872
  description: "Tags that make their subsequent template literals be identified as embedded NGINX language. This option requires the `prettier-plugin-nginx` plugin."
894
873
  }
895
- }, Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
874
+ }, Js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
896
875
  __proto__: null,
897
- embedder: zs,
898
- language: De,
899
- options: Hs
900
- }, Symbol.toStringTag, { value: "Module" })), ce = "embeddedNoop", Qs = v(ce), Wt = M(ce), zt = D(ce), Ys = {
901
- [Qs]: {
876
+ embedder: Fs,
877
+ language: $e,
878
+ options: Ks
879
+ }, Symbol.toStringTag, { value: "Module" })), le = "embeddedNoop", Hs = $(le), Ft = M(le), Wt = D(le), Xs = {
880
+ [Hs]: {
902
881
  category: "Embed",
903
882
  type: "string",
904
883
  array: !0,
905
884
  default: [{ value: [] }],
906
885
  description: "Tag or comment identifiers that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted.",
907
- deprecated: `Please use \`${Wt}\` or \`${zt}\`.`
886
+ deprecated: `Please use \`${Ft}\` or \`${Wt}\`.`
908
887
  },
909
- [Wt]: {
888
+ [Ft]: {
910
889
  category: "Embed",
911
890
  type: "string",
912
891
  array: !0,
913
892
  default: [{ value: [] }],
914
893
  description: "Block comments that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted."
915
894
  },
916
- [zt]: {
895
+ [Wt]: {
917
896
  category: "Embed",
918
897
  type: "string",
919
898
  array: !0,
920
899
  default: [{ value: [] }],
921
900
  description: "Tags that prevent their subsequent template literals from being identified as embedded languages and thus from being formatted."
922
901
  }
923
- }, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
902
+ }, Qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
924
903
  __proto__: null,
925
- language: ce,
926
- options: Ys
927
- }, Symbol.toStringTag, { value: "Module" })), { line: Kt, group: K, indent: Jt, softline: Ht } = T, Zs = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
928
- N("prettier-plugin-pegjs", r, i);
904
+ language: le,
905
+ options: Xs
906
+ }, Symbol.toStringTag, { value: "Module" })), { line: zt, group: z, indent: Kt, softline: Jt } = T, Ys = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
929
907
  const s = {
930
908
  ...r,
931
909
  ...a
@@ -939,50 +917,49 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
939
917
  parser: "pegjs-parser"
940
918
  }), o = A(_, E, b);
941
919
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
942
- return K([
920
+ return z([
943
921
  "`",
944
922
  c,
945
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [K(o)] : Jt([K(o)]),
923
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [z(o)] : Kt([z(o)]),
946
924
  p,
947
925
  "`"
948
926
  ]);
949
- const h = c.length ? Kt : Ht, $ = p.length ? Kt : Ht;
950
- return K([
927
+ const h = c.length ? zt : Jt, v = p.length ? zt : Jt;
928
+ return z([
951
929
  "`",
952
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, K(o)] : Jt([h, K(o)]),
953
- $,
930
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, z(o)] : Kt([h, z(o)]),
931
+ v,
954
932
  "`"
955
933
  ]);
956
- }, Me = "embeddedPegjs", er = ["pegjs", "peggy", "peg"], tr = v(Me), Xt = M(Me), Qt = D(Me), nr = {
957
- [tr]: {
934
+ }, De = "embeddedPegjs", Vs = ["pegjs", "peggy", "peg"], Zs = $(De), Ht = M(De), Xt = D(De), er = {
935
+ [Zs]: {
958
936
  category: "Embed",
959
937
  type: "string",
960
938
  array: !0,
961
- default: [{ value: [...er] }],
939
+ default: [{ value: [...Vs] }],
962
940
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin.",
963
- deprecated: `Please use \`${Xt}\` or \`${Qt}\`.`
941
+ deprecated: `Please use \`${Ht}\` or \`${Xt}\`.`
964
942
  },
965
- [Xt]: {
943
+ [Ht]: {
966
944
  category: "Embed",
967
945
  type: "string",
968
946
  array: !0,
969
947
  default: [{ value: [] }],
970
948
  description: "Block comments that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin."
971
949
  },
972
- [Qt]: {
950
+ [Xt]: {
973
951
  category: "Embed",
974
952
  type: "string",
975
953
  array: !0,
976
954
  default: [{ value: [] }],
977
955
  description: "Tags that make their subsequent template literals be identified as embedded Pegjs language. This option requires the `prettier-plugin-pegjs` plugin."
978
956
  }
979
- }, ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
957
+ }, tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
980
958
  __proto__: null,
981
- embedder: Zs,
982
- language: Me,
983
- options: nr
984
- }, Symbol.toStringTag, { value: "Module" })), { line: Yt, group: J, indent: Vt, softline: Zt } = T, sr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
985
- N("@prettier/plugin-php", r, i);
959
+ embedder: Ys,
960
+ language: De,
961
+ options: er
962
+ }, Symbol.toStringTag, { value: "Module" })), { line: Qt, group: K, indent: Yt, softline: Vt } = T, nr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
986
963
  const s = {
987
964
  ...r,
988
965
  ...a
@@ -996,50 +973,49 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
996
973
  parser: "php"
997
974
  }), o = A(_, E, b);
998
975
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
999
- return J([
976
+ return K([
1000
977
  "`",
1001
978
  c,
1002
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [J(o)] : Vt([J(o)]),
979
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [K(o)] : Yt([K(o)]),
1003
980
  p,
1004
981
  "`"
1005
982
  ]);
1006
- const h = c.length ? Yt : Zt, $ = p.length ? Yt : Zt;
1007
- return J([
983
+ const h = c.length ? Qt : Vt, v = p.length ? Qt : Vt;
984
+ return K([
1008
985
  "`",
1009
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, J(o)] : Vt([h, J(o)]),
1010
- $,
986
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, K(o)] : Yt([h, K(o)]),
987
+ v,
1011
988
  "`"
1012
989
  ]);
1013
- }, Te = "embeddedPhp", rr = ["php", "php5"], or = v(Te), en = M(Te), tn = D(Te), ar = {
1014
- [or]: {
990
+ }, Te = "embeddedPhp", ir = ["php", "php5"], sr = $(Te), Zt = M(Te), en = D(Te), rr = {
991
+ [sr]: {
1015
992
  category: "Embed",
1016
993
  type: "string",
1017
994
  array: !0,
1018
- default: [{ value: [...rr] }],
995
+ default: [{ value: [...ir] }],
1019
996
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin.",
1020
- deprecated: `Please use \`${en}\` or \`${tn}\`.`
997
+ deprecated: `Please use \`${Zt}\` or \`${en}\`.`
1021
998
  },
1022
- [en]: {
999
+ [Zt]: {
1023
1000
  category: "Embed",
1024
1001
  type: "string",
1025
1002
  array: !0,
1026
1003
  default: [{ value: [] }],
1027
1004
  description: "Block comments that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin."
1028
1005
  },
1029
- [tn]: {
1006
+ [en]: {
1030
1007
  category: "Embed",
1031
1008
  type: "string",
1032
1009
  array: !0,
1033
1010
  default: [{ value: [] }],
1034
1011
  description: "Tags that make their subsequent template literals be identified as embedded PHP language. This option requires the `@prettier/plugin-php` plugin."
1035
1012
  }
1036
- }, dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1013
+ }, or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1037
1014
  __proto__: null,
1038
- embedder: sr,
1015
+ embedder: nr,
1039
1016
  language: Te,
1040
- options: ar
1041
- }, Symbol.toStringTag, { value: "Module" })), { line: nn, group: H, indent: sn, softline: rn } = T, lr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1042
- N("prettier-plugin-prisma", r, i);
1017
+ options: rr
1018
+ }, Symbol.toStringTag, { value: "Module" })), { line: tn, group: J, indent: nn, softline: sn } = T, ar = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1043
1019
  const s = {
1044
1020
  ...r,
1045
1021
  ...a
@@ -1053,50 +1029,49 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
1053
1029
  parser: "prisma-parse"
1054
1030
  }), o = A(_, E, b);
1055
1031
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1056
- return H([
1032
+ return J([
1057
1033
  "`",
1058
1034
  c,
1059
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [H(o)] : sn([H(o)]),
1035
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [J(o)] : nn([J(o)]),
1060
1036
  p,
1061
1037
  "`"
1062
1038
  ]);
1063
- const h = c.length ? nn : rn, $ = p.length ? nn : rn;
1064
- return H([
1039
+ const h = c.length ? tn : sn, v = p.length ? tn : sn;
1040
+ return J([
1065
1041
  "`",
1066
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, H(o)] : sn([h, H(o)]),
1067
- $,
1042
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, J(o)] : nn([h, J(o)]),
1043
+ v,
1068
1044
  "`"
1069
1045
  ]);
1070
- }, Ae = "embeddedPrisma", cr = ["prisma"], ur = v(Ae), on = M(Ae), an = D(Ae), pr = {
1071
- [ur]: {
1046
+ }, Me = "embeddedPrisma", dr = ["prisma"], lr = $(Me), rn = M(Me), on = D(Me), cr = {
1047
+ [lr]: {
1072
1048
  category: "Embed",
1073
1049
  type: "string",
1074
1050
  array: !0,
1075
- default: [{ value: [...cr] }],
1051
+ default: [{ value: [...dr] }],
1076
1052
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin.",
1077
- deprecated: `Please use \`${on}\` or \`${an}\`.`
1053
+ deprecated: `Please use \`${rn}\` or \`${on}\`.`
1078
1054
  },
1079
- [on]: {
1055
+ [rn]: {
1080
1056
  category: "Embed",
1081
1057
  type: "string",
1082
1058
  array: !0,
1083
1059
  default: [{ value: [] }],
1084
1060
  description: "Block comments that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin."
1085
1061
  },
1086
- [an]: {
1062
+ [on]: {
1087
1063
  category: "Embed",
1088
1064
  type: "string",
1089
1065
  array: !0,
1090
1066
  default: [{ value: [] }],
1091
1067
  description: "Tags that make their subsequent template literals be identified as embedded Prisma language. This option requires the `prettier-plugin-prisma` plugin."
1092
1068
  }
1093
- }, gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1069
+ }, ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1094
1070
  __proto__: null,
1095
- embedder: lr,
1096
- language: Ae,
1097
- options: pr
1098
- }, Symbol.toStringTag, { value: "Module" })), { line: dn, group: X, indent: ln, softline: cn } = T, mr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1099
- N("prettier-plugin-properties", r, i);
1071
+ embedder: ar,
1072
+ language: Me,
1073
+ options: cr
1074
+ }, Symbol.toStringTag, { value: "Module" })), { line: an, group: H, indent: dn, softline: ln } = T, pr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1100
1075
  const s = {
1101
1076
  ...r,
1102
1077
  ...a
@@ -1110,50 +1085,49 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
1110
1085
  parser: "dot-properties"
1111
1086
  }), o = A(_, E, b);
1112
1087
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1113
- return X([
1088
+ return H([
1114
1089
  "`",
1115
1090
  c,
1116
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [X(o)] : ln([X(o)]),
1091
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [H(o)] : dn([H(o)]),
1117
1092
  p,
1118
1093
  "`"
1119
1094
  ]);
1120
- const h = c.length ? dn : cn, $ = p.length ? dn : cn;
1121
- return X([
1095
+ const h = c.length ? an : ln, v = p.length ? an : ln;
1096
+ return H([
1122
1097
  "`",
1123
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, X(o)] : ln([h, X(o)]),
1124
- $,
1098
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, H(o)] : dn([h, H(o)]),
1099
+ v,
1125
1100
  "`"
1126
1101
  ]);
1127
- }, Se = "embeddedProperties", hr = ["properties"], Er = v(Se), un = M(Se), pn = D(Se), br = {
1128
- [Er]: {
1102
+ }, Ae = "embeddedProperties", gr = ["properties"], mr = $(Ae), cn = M(Ae), un = D(Ae), hr = {
1103
+ [mr]: {
1129
1104
  category: "Embed",
1130
1105
  type: "string",
1131
1106
  array: !0,
1132
- default: [{ value: [...hr] }],
1107
+ default: [{ value: [...gr] }],
1133
1108
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin.",
1134
- deprecated: `Please use \`${un}\` or \`${pn}\`.`
1109
+ deprecated: `Please use \`${cn}\` or \`${un}\`.`
1135
1110
  },
1136
- [un]: {
1111
+ [cn]: {
1137
1112
  category: "Embed",
1138
1113
  type: "string",
1139
1114
  array: !0,
1140
1115
  default: [{ value: [] }],
1141
1116
  description: "Block comments that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin."
1142
1117
  },
1143
- [pn]: {
1118
+ [un]: {
1144
1119
  category: "Embed",
1145
1120
  type: "string",
1146
1121
  array: !0,
1147
1122
  default: [{ value: [] }],
1148
1123
  description: "Tags that make their subsequent template literals be identified as embedded Properties language. This option requires the `prettier-plugin-properties` plugin."
1149
1124
  }
1150
- }, fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1125
+ }, Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1151
1126
  __proto__: null,
1152
- embedder: mr,
1153
- language: Se,
1154
- options: br
1155
- }, Symbol.toStringTag, { value: "Module" })), { group: Q, line: gn, softline: mn, indent: hn } = T, yr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1156
- N("@prettier/plugin-pug", r, i);
1127
+ embedder: pr,
1128
+ language: Ae,
1129
+ options: hr
1130
+ }, Symbol.toStringTag, { value: "Module" })), { group: X, line: pn, softline: gn, indent: mn } = T, br = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1157
1131
  const s = {
1158
1132
  ...r,
1159
1133
  ...a
@@ -1172,50 +1146,49 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
1172
1146
  !0
1173
1147
  );
1174
1148
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1175
- return Q([
1149
+ return X([
1176
1150
  "`",
1177
1151
  c,
1178
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [Q(o)] : hn([Q(o)]),
1152
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [X(o)] : mn([X(o)]),
1179
1153
  p,
1180
1154
  "`"
1181
1155
  ]);
1182
- const h = c.length ? gn : mn, $ = p.length ? gn : mn;
1183
- return Q([
1156
+ const h = c.length ? pn : gn, v = p.length ? pn : gn;
1157
+ return X([
1184
1158
  "`",
1185
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Q(o)] : hn([h, Q(o)]),
1186
- $,
1159
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, X(o)] : mn([h, X(o)]),
1160
+ v,
1187
1161
  "`"
1188
1162
  ]);
1189
- }, Le = "embeddedPug", _r = ["pug", "jade"], $r = v(Le), En = M(Le), bn = D(Le), vr = {
1190
- [$r]: {
1163
+ }, Se = "embeddedPug", fr = ["pug", "jade"], yr = $(Se), hn = M(Se), En = D(Se), _r = {
1164
+ [yr]: {
1191
1165
  category: "Embed",
1192
1166
  type: "string",
1193
1167
  array: !0,
1194
- default: [{ value: [..._r] }],
1168
+ default: [{ value: [...fr] }],
1195
1169
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin.",
1196
- deprecated: `Please use \`${En}\` or \`${bn}\`.`
1170
+ deprecated: `Please use \`${hn}\` or \`${En}\`.`
1197
1171
  },
1198
- [En]: {
1172
+ [hn]: {
1199
1173
  category: "Embed",
1200
1174
  type: "string",
1201
1175
  array: !0,
1202
1176
  default: [{ value: [] }],
1203
1177
  description: "Block comments that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin."
1204
1178
  },
1205
- [bn]: {
1179
+ [En]: {
1206
1180
  category: "Embed",
1207
1181
  type: "string",
1208
1182
  array: !0,
1209
1183
  default: [{ value: [] }],
1210
1184
  description: "Tags that make their subsequent template literals be identified as embedded Pug language. This option requires the `@prettier/plugin-pug` plugin."
1211
1185
  }
1212
- }, Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1186
+ }, vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1213
1187
  __proto__: null,
1214
- embedder: yr,
1215
- language: Le,
1216
- options: vr
1217
- }, Symbol.toStringTag, { value: "Module" })), { line: fn, group: Y, indent: yn, softline: _n } = T, Mr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1218
- N("@prettier/plugin-ruby", r, i);
1188
+ embedder: br,
1189
+ language: Se,
1190
+ options: _r
1191
+ }, Symbol.toStringTag, { value: "Module" })), { line: bn, group: Q, indent: fn, softline: yn } = T, $r = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1219
1192
  const s = {
1220
1193
  ...r,
1221
1194
  ...a
@@ -1229,30 +1202,30 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
1229
1202
  parser: s.embeddedRubyParser ?? "ruby"
1230
1203
  }), o = A(_, E, b);
1231
1204
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1232
- return Y([
1205
+ return Q([
1233
1206
  "`",
1234
1207
  c,
1235
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [Y(o)] : yn([Y(o)]),
1208
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [Q(o)] : fn([Q(o)]),
1236
1209
  p,
1237
1210
  "`"
1238
1211
  ]);
1239
- const h = c.length ? fn : _n, $ = p.length ? fn : _n;
1240
- return Y([
1212
+ const h = c.length ? bn : yn, v = p.length ? bn : yn;
1213
+ return Q([
1241
1214
  "`",
1242
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Y(o)] : yn([h, Y(o)]),
1243
- $,
1215
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Q(o)] : fn([h, Q(o)]),
1216
+ v,
1244
1217
  "`"
1245
1218
  ]);
1246
- }, ue = "embeddedRuby", Tr = ["ruby"], Ar = ["ruby", "rbs", "haml"], Sr = v(ue), $n = M(ue), vn = D(ue), Lr = x(ue), kr = {
1247
- [Sr]: {
1219
+ }, ce = "embeddedRuby", Dr = ["ruby"], Tr = ["ruby", "rbs", "haml"], Mr = $(ce), _n = M(ce), vn = D(ce), Ar = N(ce), Sr = {
1220
+ [Mr]: {
1248
1221
  category: "Embed",
1249
1222
  type: "string",
1250
1223
  array: !0,
1251
- default: [{ value: [...Tr] }],
1224
+ default: [{ value: [...Dr] }],
1252
1225
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.",
1253
- deprecated: `Please use \`${$n}\` or \`${vn}\`.`
1226
+ deprecated: `Please use \`${_n}\` or \`${vn}\`.`
1254
1227
  },
1255
- [$n]: {
1228
+ [_n]: {
1256
1229
  category: "Embed",
1257
1230
  type: "string",
1258
1231
  array: !0,
@@ -1266,23 +1239,22 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
1266
1239
  default: [{ value: [] }],
1267
1240
  description: "Tags that make their subsequent template literals be identified as embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin."
1268
1241
  },
1269
- [Lr]: {
1242
+ [Ar]: {
1270
1243
  category: "Embed",
1271
1244
  type: "choice",
1272
1245
  default: "ruby",
1273
1246
  description: "The parser used to parse the embedded Ruby language. This option requires the `@prettier/plugin-ruby` plugin.",
1274
- choices: Ar.map((e) => ({
1247
+ choices: Tr.map((e) => ({
1275
1248
  value: e,
1276
1249
  description: `Use the "${e}" parser.`
1277
1250
  }))
1278
1251
  }
1279
- }, Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1252
+ }, Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1280
1253
  __proto__: null,
1281
- embedder: Mr,
1282
- language: ue,
1283
- options: kr
1284
- }, Symbol.toStringTag, { value: "Module" })), { group: V, line: Dn, softline: Mn, indent: Tn } = T, Nr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1285
- N("prettier-plugin-sh", r, i);
1254
+ embedder: $r,
1255
+ language: ce,
1256
+ options: Sr
1257
+ }, Symbol.toStringTag, { value: "Module" })), { group: Y, line: $n, softline: Dn, indent: Tn } = T, kr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1286
1258
  const s = {
1287
1259
  ...r,
1288
1260
  ...a
@@ -1301,50 +1273,50 @@ const de = "embeddedJson", vs = ["json", "jsonl"], Ds = ["json", "json5", "jsonc
1301
1273
  !0
1302
1274
  );
1303
1275
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1304
- return V([
1276
+ return Y([
1305
1277
  "`",
1306
1278
  c,
1307
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [V(o)] : Tn([V(o)]),
1279
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [Y(o)] : Tn([Y(o)]),
1308
1280
  p,
1309
1281
  "`"
1310
1282
  ]);
1311
- const h = c.length ? Dn : Mn, $ = p.length ? Dn : Mn;
1312
- return V([
1283
+ const h = c.length ? $n : Dn, v = p.length ? $n : Dn;
1284
+ return Y([
1313
1285
  "`",
1314
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, V(o)] : Tn([h, V(o)]),
1315
- $,
1286
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Y(o)] : Tn([h, Y(o)]),
1287
+ v,
1316
1288
  "`"
1317
1289
  ]);
1318
- }, ke = "embeddedSh", xr = ["sh"], Ir = v(ke), An = M(ke), Sn = D(ke), Or = {
1319
- [Ir]: {
1290
+ }, Le = "embeddedSh", Gr = ["sh"], Nr = $(Le), Mn = M(Le), An = D(Le), Or = {
1291
+ [Nr]: {
1320
1292
  category: "Embed",
1321
1293
  type: "string",
1322
1294
  array: !0,
1323
- default: [{ value: [...xr] }],
1295
+ default: [{ value: [...Gr] }],
1324
1296
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin.",
1325
- deprecated: `Please use \`${An}\` or \`${Sn}\`.`
1297
+ deprecated: `Please use \`${Mn}\` or \`${An}\`.`
1326
1298
  },
1327
- [An]: {
1299
+ [Mn]: {
1328
1300
  category: "Embed",
1329
1301
  type: "string",
1330
1302
  array: !0,
1331
1303
  default: [{ value: [] }],
1332
1304
  description: "Block comments that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin."
1333
1305
  },
1334
- [Sn]: {
1306
+ [An]: {
1335
1307
  category: "Embed",
1336
1308
  type: "string",
1337
1309
  array: !0,
1338
1310
  default: [{ value: [] }],
1339
1311
  description: "Tags that make their subsequent template literals be identified as embedded Shell language. This option requires the `prettier-plugin-sh` plugin."
1340
1312
  }
1341
- }, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1313
+ }, xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1342
1314
  __proto__: null,
1343
- embedder: Nr,
1344
- language: ke,
1315
+ embedder: kr,
1316
+ language: Le,
1345
1317
  options: Or
1346
1318
  }, Symbol.toStringTag, { value: "Module" }));
1347
- function Ln(e, t) {
1319
+ function Sn(e, t) {
1348
1320
  var n = Object.keys(e);
1349
1321
  if (Object.getOwnPropertySymbols) {
1350
1322
  var r = Object.getOwnPropertySymbols(e);
@@ -1354,25 +1326,25 @@ function Ln(e, t) {
1354
1326
  }
1355
1327
  return n;
1356
1328
  }
1357
- function kn(e) {
1329
+ function Ln(e) {
1358
1330
  for (var t = 1; t < arguments.length; t++) {
1359
1331
  var n = arguments[t] != null ? arguments[t] : {};
1360
- t % 2 ? Ln(Object(n), !0).forEach(function(r) {
1361
- Br(e, r, n[r]);
1362
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ln(Object(n)).forEach(function(r) {
1332
+ t % 2 ? Sn(Object(n), !0).forEach(function(r) {
1333
+ Ir(e, r, n[r]);
1334
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sn(Object(n)).forEach(function(r) {
1363
1335
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1364
1336
  });
1365
1337
  }
1366
1338
  return e;
1367
1339
  }
1368
- function Br(e, t, n) {
1369
- return t = qr(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1340
+ function Ir(e, t, n) {
1341
+ return t = Pr(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1370
1342
  }
1371
- function qr(e) {
1372
- var t = jr(e, "string");
1343
+ function Pr(e) {
1344
+ var t = Br(e, "string");
1373
1345
  return typeof t == "symbol" ? t : String(t);
1374
1346
  }
1375
- function jr(e, t) {
1347
+ function Br(e, t) {
1376
1348
  if (typeof e != "object" || e === null)
1377
1349
  return e;
1378
1350
  var n = e[Symbol.toPrimitive];
@@ -1384,9 +1356,9 @@ function jr(e, t) {
1384
1356
  }
1385
1357
  return (t === "string" ? String : Number)(e);
1386
1358
  }
1387
- const Ur = ri({});
1388
- function ri(e) {
1389
- return t.withOptions = (n) => ri(kn(kn({}, e), n)), t;
1359
+ const qr = si({});
1360
+ function si(e) {
1361
+ return t.withOptions = (n) => si(Ln(Ln({}, e), n)), t;
1390
1362
  function t(n, ...r) {
1391
1363
  const i = typeof n == "string" ? [n] : n.raw, {
1392
1364
  escapeSpecialCharacters: a = Array.isArray(n)
@@ -1415,13 +1387,11 @@ function ri(e) {
1415
1387
  `);
1416
1388
  }
1417
1389
  }
1418
- const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1390
+ const { group: V, line: kn, softline: Gn, indent: Nn } = T, jr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1419
1391
  const s = {
1420
1392
  ...r,
1421
1393
  ...a
1422
- }, l = s.embeddedSqlPlugin ?? "prettier-plugin-sql";
1423
- N(l, s, i);
1424
- const { node: u } = n, { createPlaceholder: E, placeholderRegex: d } = L(), c = u.quasis.map(
1394
+ }, l = s.embeddedSqlPlugin ?? "prettier-plugin-sql", { node: u } = n, { createPlaceholder: E, placeholderRegex: d } = L(), c = u.quasis.map(
1425
1395
  (m, g, { length: y }) => g === y - 1 ? m.value.cooked : m.value.cooked + E(g)
1426
1396
  ).join(""), p = c.match(/^\s+/)?.[0] ?? "", f = c.match(/\s+$/)?.[0] ?? "", b = c.slice(
1427
1397
  p.length,
@@ -1435,7 +1405,7 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
1435
1405
  });
1436
1406
  o = A(m, d, _);
1437
1407
  } else {
1438
- const m = await e(Ur(b), {
1408
+ const m = await e(qr(b), {
1439
1409
  ...s,
1440
1410
  parser: "sql"
1441
1411
  });
@@ -1447,76 +1417,75 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
1447
1417
  );
1448
1418
  }
1449
1419
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1450
- return Z([
1420
+ return V([
1451
1421
  "`",
1452
1422
  p,
1453
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [Z(o)] : xn([Z(o)]),
1423
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [V(o)] : Nn([V(o)]),
1454
1424
  f,
1455
1425
  "`"
1456
1426
  ]);
1457
- const h = p.length ? Gn : Nn, $ = f.length ? Gn : Nn;
1458
- return Z([
1427
+ const h = p.length ? kn : Gn, v = f.length ? kn : Gn;
1428
+ return V([
1459
1429
  "`",
1460
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Z(o)] : xn([h, Z(o)]),
1461
- $,
1430
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, V(o)] : Nn([h, V(o)]),
1431
+ v,
1462
1432
  "`"
1463
1433
  ]);
1464
- }, se = "embeddedSql", Cr = ["sql"], wr = ["prettier-plugin-sql", "prettier-plugin-sql-cst"], Fr = [
1434
+ }, ie = "embeddedSql", Ur = ["sql"], Rr = ["prettier-plugin-sql", "prettier-plugin-sql-cst"], Cr = [
1465
1435
  "sqlite",
1466
1436
  "bigquery",
1467
1437
  "mysql",
1468
1438
  "mariadb",
1469
1439
  "postgresql"
1470
- ], Wr = v(se), In = M(se), On = D(se), zr = Ni(se), Kr = x(se), Jr = {
1471
- [Wr]: {
1440
+ ], wr = $(ie), On = M(ie), xn = D(ie), Fr = ki(ie), Wr = N(ie), zr = {
1441
+ [wr]: {
1472
1442
  category: "Embed",
1473
1443
  type: "string",
1474
1444
  array: !0,
1475
- default: [{ value: [...Cr] }],
1445
+ default: [{ value: [...Ur] }],
1476
1446
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin.",
1477
- deprecated: `Please use \`${In}\` or \`${On}\`.`
1447
+ deprecated: `Please use \`${On}\` or \`${xn}\`.`
1478
1448
  },
1479
- [In]: {
1449
+ [On]: {
1480
1450
  category: "Embed",
1481
1451
  type: "string",
1482
1452
  array: !0,
1483
1453
  default: [{ value: [] }],
1484
1454
  description: "Block comments that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin."
1485
1455
  },
1486
- [On]: {
1456
+ [xn]: {
1487
1457
  category: "Embed",
1488
1458
  type: "string",
1489
1459
  array: !0,
1490
1460
  default: [{ value: [] }],
1491
1461
  description: "Tags that make their subsequent template literals be identified as embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin."
1492
1462
  },
1493
- [zr]: {
1463
+ [Fr]: {
1494
1464
  category: "Embed",
1495
1465
  type: "choice",
1496
1466
  default: "prettier-plugin-sql",
1497
1467
  description: "The plugin used to format the embedded SQL language. This option requires the `prettier-plugin-sql` plugin or the `prettier-plugin-sql-cst` plugin.",
1498
- choices: wr.map((e) => ({
1468
+ choices: Rr.map((e) => ({
1499
1469
  value: e,
1500
1470
  description: `Use the "${e}" plugin.`
1501
1471
  }))
1502
1472
  },
1503
- [Kr]: {
1473
+ [Wr]: {
1504
1474
  category: "Embed",
1505
1475
  type: "choice",
1506
1476
  default: "sqlite",
1507
1477
  description: "Specify the embedded SQL language parser. This option is only needed with the `prettier-plugin-sql-cst` plugin.",
1508
- choices: Fr.map((e) => ({
1478
+ choices: Cr.map((e) => ({
1509
1479
  value: e,
1510
1480
  description: `Use the "${e}" parser.`
1511
1481
  }))
1512
1482
  }
1513
- }, Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1483
+ }, Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1514
1484
  __proto__: null,
1515
- embedder: Rr,
1516
- language: se,
1517
- options: Jr
1518
- }, Symbol.toStringTag, { value: "Module" })), { line: Pn, group: ee, indent: Bn, softline: qn } = T, Xr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1519
- N("prettier-plugin-toml", r, i);
1485
+ embedder: jr,
1486
+ language: ie,
1487
+ options: zr
1488
+ }, Symbol.toStringTag, { value: "Module" })), { line: In, group: Z, indent: Pn, softline: Bn } = T, Jr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1520
1489
  const s = {
1521
1490
  ...r,
1522
1491
  ...a
@@ -1535,49 +1504,49 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
1535
1504
  !0
1536
1505
  );
1537
1506
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1538
- return ee([
1507
+ return Z([
1539
1508
  "`",
1540
1509
  c,
1541
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [ee(o)] : Bn([ee(o)]),
1510
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [Z(o)] : Pn([Z(o)]),
1542
1511
  p,
1543
1512
  "`"
1544
1513
  ]);
1545
- const h = c.length ? Pn : qn, $ = p.length ? Pn : qn;
1546
- return ee([
1514
+ const h = c.length ? In : Bn, v = p.length ? In : Bn;
1515
+ return Z([
1547
1516
  "`",
1548
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, ee(o)] : Bn([h, ee(o)]),
1549
- $,
1517
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, Z(o)] : Pn([h, Z(o)]),
1518
+ v,
1550
1519
  "`"
1551
1520
  ]);
1552
- }, Ge = "embeddedToml", Qr = ["toml"], Yr = v(Ge), jn = M(Ge), Un = D(Ge), Vr = {
1553
- [Yr]: {
1521
+ }, ke = "embeddedToml", Hr = ["toml"], Xr = $(ke), qn = M(ke), jn = D(ke), Qr = {
1522
+ [Xr]: {
1554
1523
  category: "Embed",
1555
1524
  type: "string",
1556
1525
  array: !0,
1557
- default: [{ value: [...Qr] }],
1526
+ default: [{ value: [...Hr] }],
1558
1527
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin.",
1559
- deprecated: `Please use \`${jn}\` or \`${Un}\`.`
1528
+ deprecated: `Please use \`${qn}\` or \`${jn}\`.`
1560
1529
  },
1561
- [jn]: {
1530
+ [qn]: {
1562
1531
  category: "Embed",
1563
1532
  type: "string",
1564
1533
  array: !0,
1565
1534
  default: [{ value: [] }],
1566
1535
  description: "Block comments that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin."
1567
1536
  },
1568
- [Un]: {
1537
+ [jn]: {
1569
1538
  category: "Embed",
1570
1539
  type: "string",
1571
1540
  array: !0,
1572
1541
  default: [{ value: [] }],
1573
1542
  description: "Tags that make their subsequent template literals be identified as embedded TOML language. This option requires the `prettier-plugin-toml` plugin."
1574
1543
  }
1575
- }, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1544
+ }, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1576
1545
  __proto__: null,
1577
- embedder: Xr,
1578
- language: Ge,
1579
- options: Vr
1580
- }, Symbol.toStringTag, { value: "Module" })), { line: Rn, group: te, indent: Cn, softline: wn } = T, eo = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1546
+ embedder: Jr,
1547
+ language: ke,
1548
+ options: Qr
1549
+ }, Symbol.toStringTag, { value: "Module" })), { line: Un, group: ee, indent: Rn, softline: Cn } = T, Vr = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1581
1550
  const s = {
1582
1551
  ...r,
1583
1552
  ...a
@@ -1594,66 +1563,65 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
1594
1563
  filepath: void 0
1595
1564
  }), o = A(_, E, b);
1596
1565
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1597
- return te([
1566
+ return ee([
1598
1567
  "`",
1599
1568
  c,
1600
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [te(o)] : Cn([te(o)]),
1569
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [ee(o)] : Rn([ee(o)]),
1601
1570
  p,
1602
1571
  "`"
1603
1572
  ]);
1604
- const h = c.length ? Rn : wn, $ = p.length ? Rn : wn;
1605
- return te([
1573
+ const h = c.length ? Un : Cn, v = p.length ? Un : Cn;
1574
+ return ee([
1606
1575
  "`",
1607
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, te(o)] : Cn([h, te(o)]),
1608
- $,
1576
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, ee(o)] : Rn([h, ee(o)]),
1577
+ v,
1609
1578
  "`"
1610
1579
  ]);
1611
- }, pe = "embeddedTs", to = [
1580
+ }, ue = "embeddedTs", Zr = [
1612
1581
  "ts",
1613
1582
  "tsx",
1614
1583
  "cts",
1615
1584
  "mts",
1616
1585
  "typescript"
1617
- ], no = ["typescript", "babel-ts"], io = v(pe), Fn = M(pe), Wn = D(pe), so = x(pe), ro = {
1618
- [io]: {
1586
+ ], eo = ["typescript", "babel-ts"], to = $(ue), wn = M(ue), Fn = D(ue), no = N(ue), io = {
1587
+ [to]: {
1619
1588
  category: "Embed",
1620
1589
  type: "string",
1621
1590
  array: !0,
1622
- default: [{ value: [...to] }],
1591
+ default: [{ value: [...Zr] }],
1623
1592
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded TypeScript language.",
1624
- deprecated: `Please use \`${Fn}\` or \`${Wn}\`.`
1593
+ deprecated: `Please use \`${wn}\` or \`${Fn}\`.`
1625
1594
  },
1626
- [Fn]: {
1595
+ [wn]: {
1627
1596
  category: "Embed",
1628
1597
  type: "string",
1629
1598
  array: !0,
1630
1599
  default: [{ value: [] }],
1631
1600
  description: "Block comments that make their subsequent template literals be identified as embedded TypeScript language."
1632
1601
  },
1633
- [Wn]: {
1602
+ [Fn]: {
1634
1603
  category: "Embed",
1635
1604
  type: "string",
1636
1605
  array: !0,
1637
1606
  default: [{ value: [] }],
1638
1607
  description: "Tags that make their subsequent template literals be identified as embedded TypeScript language."
1639
1608
  },
1640
- [so]: {
1609
+ [no]: {
1641
1610
  category: "Embed",
1642
1611
  type: "choice",
1643
1612
  default: "typescript",
1644
1613
  description: "The parser used to parse the embedded TypeScript language.",
1645
- choices: no.map((e) => ({
1614
+ choices: eo.map((e) => ({
1646
1615
  value: e,
1647
1616
  description: `Use the "${e}" parser.`
1648
1617
  }))
1649
1618
  }
1650
- }, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1619
+ }, so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1651
1620
  __proto__: null,
1652
- embedder: eo,
1653
- language: pe,
1654
- options: ro
1655
- }, Symbol.toStringTag, { value: "Module" })), ge = "embeddedXml", { line: zn, group: ne, indent: Kn, softline: xe } = T, ao = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1656
- N("@prettier/plugin-xml", r, i);
1621
+ embedder: Vr,
1622
+ language: ue,
1623
+ options: io
1624
+ }, Symbol.toStringTag, { value: "Module" })), pe = "embeddedXml", { line: Wn, group: te, indent: zn, softline: Ne } = T, ro = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1657
1625
  const s = {
1658
1626
  ...r,
1659
1627
  ...a
@@ -1668,50 +1636,50 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
1668
1636
  const g = f.slice(o);
1669
1637
  if (g.length === 0)
1670
1638
  break;
1671
- o > 0 && s.xmlWhitespaceSensitivity !== "strict" && _.push(xe), s.__embeddedXmlFragmentRecoverIndex?.splice(
1639
+ o > 0 && s.xmlWhitespaceSensitivity !== "strict" && _.push(Ne), s.__embeddedXmlFragmentRecoverIndex?.splice(
1672
1640
  0,
1673
1641
  s.__embeddedXmlFragmentRecoverIndex.length
1674
1642
  );
1675
1643
  let y = await e(g, {
1676
1644
  ...s,
1677
- parser: ge
1645
+ parser: pe
1678
1646
  });
1679
1647
  const [k, G] = s.__embeddedXmlFragmentRecoverIndex ?? [];
1680
1648
  k === void 0 ? o = void 0 : G === void 0 ? o += k : (y = g.slice(k, G + 1), o += G + 1), _.push(y);
1681
1649
  }
1682
1650
  const h = A(_, E, b);
1683
1651
  if (s.xmlWhitespaceSensitivity === "strict" || s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1684
- return ne([
1652
+ return te([
1685
1653
  "`",
1686
1654
  c,
1687
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [ne(h)] : Kn([ne(h)]),
1655
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [te(h)] : zn([te(h)]),
1688
1656
  p,
1689
1657
  "`"
1690
1658
  ]);
1691
- const $ = c.length ? zn : xe, m = p.length ? zn : xe;
1692
- return ne([
1659
+ const v = c.length ? Wn : Ne, m = p.length ? Wn : Ne;
1660
+ return te([
1693
1661
  "`",
1694
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [$, ne(h)] : Kn([$, ne(h)]),
1662
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [v, te(h)] : zn([v, te(h)]),
1695
1663
  m,
1696
1664
  "`"
1697
1665
  ]);
1698
- }, lo = ["xml", "opml", "rss", "svg"], co = v(ge), Jn = M(ge), Hn = D(ge), uo = {
1699
- [co]: {
1666
+ }, oo = ["xml", "opml", "rss", "svg"], ao = $(pe), Kn = M(pe), Jn = D(pe), lo = {
1667
+ [ao]: {
1700
1668
  category: "Embed",
1701
1669
  type: "string",
1702
1670
  array: !0,
1703
- default: [{ value: [...lo] }],
1671
+ default: [{ value: [...oo] }],
1704
1672
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin.",
1705
- deprecated: `Please use \`${Jn}\` or \`${Hn}\`.`
1673
+ deprecated: `Please use \`${Kn}\` or \`${Jn}\`.`
1706
1674
  },
1707
- [Jn]: {
1675
+ [Kn]: {
1708
1676
  category: "Embed",
1709
1677
  type: "string",
1710
1678
  array: !0,
1711
1679
  default: [{ value: [] }],
1712
1680
  description: "Block comments that make their subsequent template literals be identified as embedded XML language. This option requires the `@prettier/plugin-xml` plugin."
1713
1681
  },
1714
- [Hn]: {
1682
+ [Jn]: {
1715
1683
  category: "Embed",
1716
1684
  type: "string",
1717
1685
  array: !0,
@@ -1729,7 +1697,7 @@ const { group: Z, line: Gn, softline: Nn, indent: xn } = T, Rr = async (e, t, n,
1729
1697
  description: "This option is read only and is used internally as a workaround to support xml fragments"
1730
1698
  }
1731
1699
  };
1732
- function po(e) {
1700
+ function co(e) {
1733
1701
  const t = {
1734
1702
  loc: {
1735
1703
  start: {
@@ -1749,7 +1717,7 @@ function po(e) {
1749
1717
  );
1750
1718
  return Object.assign(n, t), n;
1751
1719
  }
1752
- function Xn(e) {
1720
+ function Hn(e) {
1753
1721
  const t = {
1754
1722
  loc: {
1755
1723
  start: {
@@ -1769,12 +1737,12 @@ function Xn(e) {
1769
1737
  );
1770
1738
  return Object.assign(n, t), n;
1771
1739
  }
1772
- const go = {
1740
+ const uo = {
1773
1741
  async parse(e, t) {
1774
1742
  const { parse: n } = await import("@xml-tools/parser"), { lexErrors: r, parseErrors: i, cst: a } = n(e);
1775
1743
  if (r.length > 0) {
1776
1744
  const s = r[0];
1777
- throw po(s);
1745
+ throw co(s);
1778
1746
  }
1779
1747
  if (i.length > 0) {
1780
1748
  let s = !1;
@@ -1782,7 +1750,7 @@ const go = {
1782
1750
  if (!["MismatchedTokenException", "NotAllInputParsedException"].includes(
1783
1751
  l.name
1784
1752
  ))
1785
- throw Xn(l);
1753
+ throw Hn(l);
1786
1754
  if (l.message === "Expecting token of type --> OPEN <-- but found --> '' <--") {
1787
1755
  s = !0;
1788
1756
  continue;
@@ -1810,9 +1778,9 @@ const go = {
1810
1778
  ), s = !0;
1811
1779
  break;
1812
1780
  }
1813
- throw Xn(l);
1781
+ throw Hn(l);
1814
1782
  }
1815
- s && oi(a);
1783
+ s && ri(a);
1816
1784
  }
1817
1785
  return a;
1818
1786
  },
@@ -1824,32 +1792,32 @@ const go = {
1824
1792
  return e.location.endOffset ?? NaN;
1825
1793
  }
1826
1794
  };
1827
- function oi(e) {
1795
+ function ri(e) {
1828
1796
  const t = e.children;
1829
1797
  for (const n in t) {
1830
1798
  const r = t[n] ?? [];
1831
1799
  for (let i = r.length - 1; i >= 0; --i) {
1832
1800
  const a = r[i];
1833
- if (mo(a)) {
1801
+ if (po(a)) {
1834
1802
  if (Object.keys(a.children).length === 0) {
1835
1803
  r.splice(i, 1), r.length === 0 && delete t[n];
1836
1804
  continue;
1837
1805
  }
1838
- oi(a);
1806
+ ri(a);
1839
1807
  }
1840
1808
  }
1841
1809
  }
1842
1810
  }
1843
- function mo(e) {
1811
+ function po(e) {
1844
1812
  return "name" in e && "children" in e && "location" in e;
1845
1813
  }
1846
- const ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1814
+ const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1847
1815
  __proto__: null,
1848
- embedder: ao,
1849
- language: ge,
1850
- options: uo,
1851
- parser: go
1852
- }, Symbol.toStringTag, { value: "Module" })), { line: Qn, group: ie, indent: Yn, softline: Vn } = T, Eo = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1816
+ embedder: ro,
1817
+ language: pe,
1818
+ options: lo,
1819
+ parser: uo
1820
+ }, Symbol.toStringTag, { value: "Module" })), { line: Xn, group: ne, indent: Qn, softline: Yn } = T, mo = async (e, t, n, r, { commentOrTag: i, embeddedOverrideOptions: a }) => {
1853
1821
  const s = {
1854
1822
  ...r,
1855
1823
  ...a
@@ -1863,83 +1831,83 @@ const ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1863
1831
  parser: "yaml"
1864
1832
  }), o = A(_, E, b);
1865
1833
  if (s.preserveEmbeddedExteriorWhitespaces?.includes(i))
1866
- return ie([
1834
+ return ne([
1867
1835
  "`",
1868
1836
  c,
1869
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [ie(o)] : Yn([ie(o)]),
1837
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [ne(o)] : Qn([ne(o)]),
1870
1838
  p,
1871
1839
  "`"
1872
1840
  ]);
1873
- const h = c.length ? Qn : Vn, $ = p.length ? Qn : Vn;
1874
- return ie([
1841
+ const h = c.length ? Xn : Yn, v = p.length ? Xn : Yn;
1842
+ return ne([
1875
1843
  "`",
1876
- s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, ie(o)] : Yn([h, ie(o)]),
1877
- $,
1844
+ s.noEmbeddedMultiLineIndentation?.includes(i) ? [h, ne(o)] : Qn([h, ne(o)]),
1845
+ v,
1878
1846
  "`"
1879
1847
  ]);
1880
- }, Ne = "embeddedYaml", bo = ["yaml", "yml"], fo = v(Ne), Zn = M(Ne), ei = D(Ne), yo = {
1881
- [fo]: {
1848
+ }, Ge = "embeddedYaml", ho = ["yaml", "yml"], Eo = $(Ge), Vn = M(Ge), Zn = D(Ge), bo = {
1849
+ [Eo]: {
1882
1850
  category: "Embed",
1883
1851
  type: "string",
1884
1852
  array: !0,
1885
- default: [{ value: [...bo] }],
1853
+ default: [{ value: [...ho] }],
1886
1854
  description: "Tag or comment identifiers that make their subsequent template literals be identified as embedded YAML language.",
1887
- deprecated: `Please use \`${Zn}\` or \`${ei}\`.`
1855
+ deprecated: `Please use \`${Vn}\` or \`${Zn}\`.`
1888
1856
  },
1889
- [Zn]: {
1857
+ [Vn]: {
1890
1858
  category: "Embed",
1891
1859
  type: "string",
1892
1860
  array: !0,
1893
1861
  default: [{ value: [] }],
1894
1862
  description: "Block comments that make their subsequent template literals be identified as embedded YAML language."
1895
1863
  },
1896
- [ei]: {
1864
+ [Zn]: {
1897
1865
  category: "Embed",
1898
1866
  type: "string",
1899
1867
  array: !0,
1900
1868
  default: [{ value: [] }],
1901
1869
  description: "Tags that make their subsequent template literals be identified as embedded YAML language."
1902
1870
  }
1903
- }, _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1871
+ }, fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1904
1872
  __proto__: null,
1905
- embedder: Eo,
1906
- language: Ne,
1907
- options: yo
1908
- }, Symbol.toStringTag, { value: "Module" })), me = [], ai = {}, di = {}, li = {}, $o = /* @__PURE__ */ Object.assign({
1909
- "./css/index.ts": ji,
1910
- "./es/index.ts": zi,
1911
- "./glsl/index.ts": Qi,
1912
- "./graphql/index.ts": ts,
1913
- "./html/index.ts": ls,
1914
- "./ini/index.ts": ms,
1915
- "./java/index.ts": ys,
1916
- "./json/index.ts": Ss,
1917
- "./jsonata/index.ts": xs,
1918
- "./latex/index.ts": qs,
1919
- "./markdown/index.ts": Ws,
1920
- "./nginx/index.ts": Xs,
1921
- "./noop/index.ts": Vs,
1922
- "./pegjs/index.ts": ir,
1923
- "./php/index.ts": dr,
1924
- "./prisma/index.ts": gr,
1925
- "./properties/index.ts": fr,
1926
- "./pug/index.ts": Dr,
1927
- "./ruby/index.ts": Gr,
1928
- "./sh/index.ts": Pr,
1929
- "./sql/index.ts": Hr,
1930
- "./toml/index.ts": Zr,
1931
- "./ts/index.ts": oo,
1932
- "./xml/index.ts": ho,
1933
- "./yaml/index.ts": _o
1873
+ embedder: mo,
1874
+ language: Ge,
1875
+ options: bo
1876
+ }, Symbol.toStringTag, { value: "Module" })), ge = [], oi = {}, ai = {}, di = {}, yo = /* @__PURE__ */ Object.assign({
1877
+ "./css/index.ts": Bi,
1878
+ "./es/index.ts": Fi,
1879
+ "./glsl/index.ts": Hi,
1880
+ "./graphql/index.ts": Zi,
1881
+ "./html/index.ts": as,
1882
+ "./ini/index.ts": ps,
1883
+ "./java/index.ts": bs,
1884
+ "./json/index.ts": Ms,
1885
+ "./jsonata/index.ts": Gs,
1886
+ "./latex/index.ts": Ps,
1887
+ "./markdown/index.ts": ws,
1888
+ "./nginx/index.ts": Js,
1889
+ "./noop/index.ts": Qs,
1890
+ "./pegjs/index.ts": tr,
1891
+ "./php/index.ts": or,
1892
+ "./prisma/index.ts": ur,
1893
+ "./properties/index.ts": Er,
1894
+ "./pug/index.ts": vr,
1895
+ "./ruby/index.ts": Lr,
1896
+ "./sh/index.ts": xr,
1897
+ "./sql/index.ts": Kr,
1898
+ "./toml/index.ts": Yr,
1899
+ "./ts/index.ts": so,
1900
+ "./xml/index.ts": go,
1901
+ "./yaml/index.ts": fo
1934
1902
  });
1935
- for (const { language: e, parser: t, embedder: n, options: r } of Object.values($o))
1936
- Gi(me, e, ce), t && (ai[e] = t), n && (di[e] = n), Object.assign(li, r);
1937
- const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationByTag", Mo = "preserveEmbeddedExteriorWhitespaces", To = "noEmbeddedMultiLineIndentation", Ao = "embeddedOverrides", ra = {
1938
- ...li,
1903
+ for (const { language: e, parser: t, embedder: n, options: r } of Object.values(yo))
1904
+ Li(ge, e, le), t && (oi[e] = t), n && (ai[e] = n), Object.assign(di, r);
1905
+ const _o = "noEmbeddedIdentificationByComment", vo = "noEmbeddedIdentificationByTag", $o = "preserveEmbeddedExteriorWhitespaces", Do = "noEmbeddedMultiLineIndentation", To = "embeddedOverrides", na = {
1906
+ ...di,
1939
1907
  /**
1940
1908
  * @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
1941
1909
  */
1942
- [vo]: {
1910
+ [_o]: {
1943
1911
  category: "Embed",
1944
1912
  type: "string",
1945
1913
  array: !0,
@@ -1950,7 +1918,7 @@ const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationBy
1950
1918
  /**
1951
1919
  * @deprecated Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore.
1952
1920
  */
1953
- [Do]: {
1921
+ [vo]: {
1954
1922
  category: "Embed",
1955
1923
  type: "string",
1956
1924
  array: !0,
@@ -1958,38 +1926,38 @@ const vo = "noEmbeddedIdentificationByComment", Do = "noEmbeddedIdentificationBy
1958
1926
  description: "Turns off `` tag`...` `` tag-based embedded language identification for the specified identifiers.",
1959
1927
  deprecated: "Please use `embedded<Language>Comments` or `embedded<Language>Tags` to configure each embedded language, and you won't need this option anymore."
1960
1928
  },
1961
- [Mo]: {
1929
+ [$o]: {
1962
1930
  category: "Embed",
1963
1931
  type: "string",
1964
1932
  array: !0,
1965
1933
  default: [{ value: [] }],
1966
1934
  description: "Preserves leading and trailing whitespaces in the formatting results for the specified comments or tags."
1967
1935
  },
1968
- [To]: {
1936
+ [Do]: {
1969
1937
  category: "Embed",
1970
1938
  type: "string",
1971
1939
  array: !0,
1972
1940
  default: [{ value: [] }],
1973
1941
  description: "Turns off auto indentation in the formatting results for the specified comments or tags when they are formatted to span multi lines."
1974
1942
  },
1975
- [Ao]: {
1943
+ [To]: {
1976
1944
  category: "Embed",
1977
1945
  type: "string",
1978
1946
  array: !1,
1979
1947
  default: void 0,
1980
1948
  description: "Option overrides for the specified comments or tags. It should either be a stringified JSON or an absolute filepath to the option overrides file."
1981
1949
  }
1982
- }, So = {
1950
+ }, Mo = {
1983
1951
  // parsers from internal
1952
+ ...hi.parsers,
1984
1953
  ...Ei.parsers,
1985
1954
  ...bi.parsers,
1986
- ...fi.parsers,
1987
- ..._i.parsers,
1988
1955
  ...yi.parsers,
1956
+ ...fi.parsers,
1989
1957
  // parsers from this plugin
1990
- ...ai
1958
+ ...oi
1991
1959
  };
1992
- var Lo = {
1960
+ var Ao = {
1993
1961
  isEqual: !0,
1994
1962
  isMatchingKey: !0,
1995
1963
  isPromise: !0,
@@ -1998,24 +1966,24 @@ var Lo = {
1998
1966
  onCacheChange: !0,
1999
1967
  onCacheHit: !0,
2000
1968
  transformKey: !0
2001
- }, ko = Array.prototype.slice;
2002
- function Ee(e) {
1969
+ }, So = Array.prototype.slice;
1970
+ function he(e) {
2003
1971
  var t = e.length;
2004
- return t ? t === 1 ? [e[0]] : t === 2 ? [e[0], e[1]] : t === 3 ? [e[0], e[1], e[2]] : ko.call(e, 0) : [];
1972
+ return t ? t === 1 ? [e[0]] : t === 2 ? [e[0], e[1]] : t === 3 ? [e[0], e[1], e[2]] : So.call(e, 0) : [];
2005
1973
  }
2006
- function Go(e) {
1974
+ function Lo(e) {
2007
1975
  var t = {};
2008
1976
  for (var n in e)
2009
- Lo[n] || (t[n] = e[n]);
1977
+ Ao[n] || (t[n] = e[n]);
2010
1978
  return t;
2011
1979
  }
2012
- function No(e) {
1980
+ function ko(e) {
2013
1981
  return typeof e == "function" && e.isMemoized;
2014
1982
  }
2015
- function xo(e, t) {
1983
+ function Go(e, t) {
2016
1984
  return e === t || e !== e && t !== t;
2017
1985
  }
2018
- function ti(e, t) {
1986
+ function ei(e, t) {
2019
1987
  var n = {};
2020
1988
  for (var r in e)
2021
1989
  n[r] = e[r];
@@ -2023,7 +1991,7 @@ function ti(e, t) {
2023
1991
  n[r] = t[r];
2024
1992
  return n;
2025
1993
  }
2026
- var Io = (
1994
+ var No = (
2027
1995
  /** @class */
2028
1996
  function() {
2029
1997
  function e(t) {
@@ -2048,9 +2016,9 @@ var Io = (
2048
2016
  */
2049
2017
  get: function() {
2050
2018
  return {
2051
- keys: Ee(this.keys),
2019
+ keys: he(this.keys),
2052
2020
  size: this.size,
2053
- values: Ee(this.values)
2021
+ values: he(this.values)
2054
2022
  };
2055
2023
  },
2056
2024
  enumerable: !1,
@@ -2119,12 +2087,12 @@ var Io = (
2119
2087
  }, e;
2120
2088
  }()
2121
2089
  );
2122
- function ci(e, t) {
2123
- if (t === void 0 && (t = {}), No(e))
2124
- return ci(e.fn, ti(e.options, t));
2090
+ function li(e, t) {
2091
+ if (t === void 0 && (t = {}), ko(e))
2092
+ return li(e.fn, ei(e.options, t));
2125
2093
  if (typeof e != "function")
2126
2094
  throw new TypeError("You must pass a function to `memoize`.");
2127
- var n = t.isEqual, r = n === void 0 ? xo : n, i = t.isMatchingKey, a = t.isPromise, s = a === void 0 ? !1 : a, l = t.maxSize, u = l === void 0 ? 1 : l, E = t.onCacheAdd, d = t.onCacheChange, c = t.onCacheHit, p = t.transformKey, f = ti({
2095
+ var n = t.isEqual, r = n === void 0 ? Go : n, i = t.isMatchingKey, a = t.isPromise, s = a === void 0 ? !1 : a, l = t.maxSize, u = l === void 0 ? 1 : l, E = t.onCacheAdd, d = t.onCacheChange, c = t.onCacheHit, p = t.transformKey, f = ei({
2128
2096
  isEqual: r,
2129
2097
  isMatchingKey: i,
2130
2098
  isPromise: s,
@@ -2133,46 +2101,46 @@ function ci(e, t) {
2133
2101
  onCacheChange: d,
2134
2102
  onCacheHit: c,
2135
2103
  transformKey: p
2136
- }, Go(t)), b = new Io(f), _ = b.keys, o = b.values, h = b.canTransformKey, $ = b.shouldCloneArguments, m = b.shouldUpdateOnAdd, g = b.shouldUpdateOnChange, y = b.shouldUpdateOnHit, k = function() {
2137
- var G = $ ? Ee(arguments) : arguments;
2104
+ }, Lo(t)), b = new No(f), _ = b.keys, o = b.values, h = b.canTransformKey, v = b.shouldCloneArguments, m = b.shouldUpdateOnAdd, g = b.shouldUpdateOnChange, y = b.shouldUpdateOnHit, k = function() {
2105
+ var G = v ? he(arguments) : arguments;
2138
2106
  h && (G = p(G));
2139
- var I = _.length ? b.getKeyIndex(G) : -1;
2140
- if (I !== -1)
2141
- y && c(b, f, k), I && (b.orderByLru(_[I], o[I], I), g && d(b, f, k));
2107
+ var O = _.length ? b.getKeyIndex(G) : -1;
2108
+ if (O !== -1)
2109
+ y && c(b, f, k), O && (b.orderByLru(_[O], o[O], O), g && d(b, f, k));
2142
2110
  else {
2143
- var mi = e.apply(this, arguments), hi = $ ? G : Ee(arguments);
2144
- b.orderByLru(hi, mi, _.length), s && b.updateAsyncCache(k), m && E(b, f, k), g && d(b, f, k);
2111
+ var gi = e.apply(this, arguments), mi = v ? G : he(arguments);
2112
+ b.orderByLru(mi, gi, _.length), s && b.updateAsyncCache(k), m && E(b, f, k), g && d(b, f, k);
2145
2113
  }
2146
2114
  return o[0];
2147
2115
  };
2148
2116
  return k.cache = b, k.fn = e, k.isMemoized = !0, k.options = f, k;
2149
2117
  }
2150
- const Oo = /("(?:\\?[^])*?")|(\/\/.*)|(\/\*[^]*?\*\/)/g, Po = /("(?:\\?[^])*?")|(,\s*)(?=]|})/g, Be = {
2118
+ const Oo = /("(?:\\?[^])*?")|(\/\/.*)|(\/\*[^]*?\*\/)/g, xo = /("(?:\\?[^])*?")|(,\s*)(?=]|})/g, Ie = {
2151
2119
  parse: (e) => {
2152
2120
  e = String(e);
2153
2121
  try {
2154
2122
  return JSON.parse(e);
2155
2123
  } catch {
2156
- return JSON.parse(e.replace(Oo, "$1").replace(Po, "$1"));
2124
+ return JSON.parse(e.replace(Oo, "$1").replace(xo, "$1"));
2157
2125
  }
2158
2126
  }
2159
- }, { label: Bo } = Di;
2160
- async function ni(e) {
2127
+ }, { label: Io } = T;
2128
+ async function ti(e) {
2161
2129
  try {
2162
2130
  const { readFile: t } = await import("node:fs/promises"), n = await t(e, { encoding: "utf-8" });
2163
- return Be.parse(n);
2131
+ return Ie.parse(n);
2164
2132
  } catch {
2165
2133
  }
2166
2134
  }
2167
- const qo = /* @__PURE__ */ new URL(
2135
+ const Po = /* @__PURE__ */ new URL(
2168
2136
  `data:text/javascript,${encodeURIComponent('import{pathToFileURL as o}from"node:url";import{parentPort as t,workerData as a}from"node:worker_threads";const s=async({absolutePath:r})=>{try{const e=await import(o(r).href);t?.postMessage(e.embeddedOverrides??e.default??void 0)}catch{t?.postMessage(void 0)}};s(a);')}`
2169
- ), jo = /* @__PURE__ */ new URL(
2137
+ ), Bo = /* @__PURE__ */ new URL(
2170
2138
  `data:text/javascript,${encodeURIComponent('import{register as a}from"node:module";import{pathToFileURL as s}from"node:url";import{parentPort as t,workerData as i}from"node:worker_threads";const d=async({absolutePath:r,importMetaUrl:o})=>{a("tsx/esm",{parentURL:o,data:!0});try{const e=await import(s(r).href);t?.postMessage(e.embeddedOverrides??e.default??void 0)}catch{t?.postMessage(void 0)}};d(i);')}`
2171
2139
  );
2172
- async function Uo(e) {
2140
+ async function qo(e) {
2173
2141
  const { Worker: t } = await import("node:worker_threads");
2174
2142
  return new Promise((n) => {
2175
- const r = new t(qo, {
2143
+ const r = new t(Po, {
2176
2144
  workerData: {
2177
2145
  absolutePath: e
2178
2146
  }
@@ -2184,10 +2152,10 @@ async function Uo(e) {
2184
2152
  });
2185
2153
  });
2186
2154
  }
2187
- async function Ro(e) {
2155
+ async function jo(e) {
2188
2156
  const { Worker: t } = await import("node:worker_threads");
2189
2157
  return new Promise((n) => {
2190
- const r = new t(jo, {
2158
+ const r = new t(Bo, {
2191
2159
  workerData: {
2192
2160
  absolutePath: e,
2193
2161
  importMetaUrl: import.meta.url
@@ -2200,7 +2168,7 @@ async function Ro(e) {
2200
2168
  });
2201
2169
  });
2202
2170
  }
2203
- const Co = ci(
2171
+ const Uo = li(
2204
2172
  async (e, t) => {
2205
2173
  const { isAbsolute: n, dirname: r, resolve: i } = await import("node:path");
2206
2174
  if (n(e))
@@ -2209,7 +2177,7 @@ const Co = ci(
2209
2177
  let s;
2210
2178
  return typeof a != "string" ? s = process.env.PWD ?? process.cwd() : s = r(a), i(s, e);
2211
2179
  }
2212
- ), wo = async (e, t) => {
2180
+ ), Ro = async (e, t) => {
2213
2181
  let n;
2214
2182
  try {
2215
2183
  n = (await import("node:path")).extname(
@@ -2217,56 +2185,56 @@ const Co = ci(
2217
2185
  );
2218
2186
  } catch {
2219
2187
  try {
2220
- return Be.parse(e);
2188
+ return Ie.parse(e);
2221
2189
  } catch {
2222
2190
  console.error("Failed to parse embeddedOverrides as a json object");
2223
2191
  return;
2224
2192
  }
2225
2193
  }
2226
- const r = Co(
2194
+ const r = Uo(
2227
2195
  e,
2228
2196
  t
2229
2197
  );
2230
2198
  if (n === ".json" || n === ".jsonc") {
2231
- const i = await r, a = await ni(i);
2199
+ const i = await r, a = await ti(i);
2232
2200
  if (a !== void 0)
2233
2201
  return a;
2234
2202
  console.error(`Failed to parse the json file: ${i}`);
2235
2203
  return;
2236
2204
  }
2237
2205
  if (n === ".mjs" || n === ".cjs" || n === ".js") {
2238
- const i = await r, a = await Uo(i);
2206
+ const i = await r, a = await qo(i);
2239
2207
  if (a !== void 0)
2240
2208
  return a;
2241
2209
  console.error(`Failed to parse the js module file: ${i}`);
2242
2210
  return;
2243
2211
  }
2244
2212
  if (n === ".mts" || n === ".cts" || n === ".ts") {
2245
- const i = await r, a = await Ro(i);
2213
+ const i = await r, a = await jo(i);
2246
2214
  if (a !== void 0)
2247
2215
  return a;
2248
2216
  console.error(`Failed to parse the ts module file: ${i}`);
2249
2217
  return;
2250
2218
  }
2251
2219
  if (n === "") {
2252
- const i = await r, a = await ni(i);
2220
+ const i = await r, a = await ti(i);
2253
2221
  if (a !== void 0)
2254
2222
  return a;
2255
2223
  }
2256
2224
  try {
2257
- return Be.parse(e);
2225
+ return Ie.parse(e);
2258
2226
  } catch {
2259
2227
  console.error("Failed to parse embeddedOverrides as a json object");
2260
2228
  }
2261
2229
  };
2262
- async function Fo(e, {
2230
+ async function Co(e, {
2263
2231
  commentOrTag: t,
2264
2232
  kind: n,
2265
2233
  filepath: r
2266
2234
  }) {
2267
2235
  if (e === void 0)
2268
2236
  return;
2269
- const i = await wo(
2237
+ const i = await Ro(
2270
2238
  e,
2271
2239
  r
2272
2240
  );
@@ -2281,7 +2249,7 @@ async function Fo(e, {
2281
2249
  return l;
2282
2250
  }
2283
2251
  }
2284
- const Wo = /* @__PURE__ */ (() => {
2252
+ const wo = /* @__PURE__ */ (() => {
2285
2253
  const e = /* @__PURE__ */ new Set([
2286
2254
  "start",
2287
2255
  "end",
@@ -2304,14 +2272,14 @@ const Wo = /* @__PURE__ */ (() => {
2304
2272
  if (i.type === "File" && (i = i.program), !(i.type === "Program" && i.body[0]?.type === "ExpressionStatement"))
2305
2273
  return !1;
2306
2274
  const a = i.body[0]?.expression;
2307
- return a?.type !== "TaggedTemplateExpression" ? !1 : !!pi(
2275
+ return a?.type !== "TaggedTemplateExpression" ? !1 : !!ui(
2308
2276
  t,
2309
2277
  a.tag,
2310
2278
  e
2311
2279
  );
2312
2280
  };
2313
2281
  })();
2314
- function zo({
2282
+ function Fo({
2315
2283
  node: e,
2316
2284
  parent: t
2317
2285
  }) {
@@ -2332,23 +2300,23 @@ function zo({
2332
2300
  if (i.length > 1 && i.startsWith(" ") && i.endsWith(" "))
2333
2301
  return i.slice(1, -1);
2334
2302
  }
2335
- function Ko({
2303
+ function Wo({
2336
2304
  parent: e
2337
2305
  }) {
2338
2306
  if (e?.type === "TaggedTemplateExpression")
2339
2307
  return e.tag.type === "Identifier" ? e.tag.name : e.tag;
2340
2308
  }
2341
- function Jo(e, t) {
2309
+ function zo(e, t) {
2342
2310
  const n = /* @__PURE__ */ (() => {
2343
2311
  let r;
2344
2312
  return () => (r === void 0 && (r = !(e.noEmbeddedIdentificationByComment?.includes(t) ?? !1)), r);
2345
2313
  })();
2346
2314
  return function* (r) {
2347
2315
  const i = e[M(r)] ?? [];
2348
- i.length === 0 && n() ? yield* e[v(r)] ?? [] : yield* i;
2316
+ i.length === 0 && n() ? yield* e[$(r)] ?? [] : yield* i;
2349
2317
  };
2350
2318
  }
2351
- function ii(e, t) {
2319
+ function ni(e, t) {
2352
2320
  if (typeof t == "string") {
2353
2321
  const n = /* @__PURE__ */ (() => {
2354
2322
  let r;
@@ -2356,26 +2324,26 @@ function ii(e, t) {
2356
2324
  })();
2357
2325
  return function* (r) {
2358
2326
  const i = e[D(r)] ?? [];
2359
- i.length === 0 && n() ? yield* e[v(r)] ?? [] : yield* i;
2327
+ i.length === 0 && n() ? yield* e[$(r)] ?? [] : yield* i;
2360
2328
  };
2361
2329
  }
2362
2330
  return function* (n) {
2363
2331
  const r = e[D(n)] ?? [];
2364
2332
  if (r.length === 0) {
2365
2333
  const { noEmbeddedIdentificationByTag: i } = e;
2366
- for (const a of e[v(n)] ?? [])
2334
+ for (const a of e[$(n)] ?? [])
2367
2335
  i?.includes(a) || (yield a);
2368
2336
  } else
2369
2337
  yield* r;
2370
2338
  };
2371
2339
  }
2372
- function Ie(e, t, n, r, i) {
2373
- const a = di[t];
2340
+ function Oe(e, t, n, r, i) {
2341
+ const a = ai[t];
2374
2342
  if (!a)
2375
2343
  return null;
2376
2344
  if (e.quasis.length === 1 && e.quasis[0]?.value.raw.trim() === "")
2377
2345
  return "``";
2378
- const s = Fo(
2346
+ const s = Co(
2379
2347
  i.embeddedOverrides,
2380
2348
  {
2381
2349
  commentOrTag: n,
@@ -2390,7 +2358,7 @@ function Ie(e, t, n, r, i) {
2390
2358
  kind: r,
2391
2359
  embeddedOverrideOptions: await s
2392
2360
  });
2393
- return Bo(
2361
+ return Io(
2394
2362
  {
2395
2363
  embed: !0,
2396
2364
  ...u.label
@@ -2402,35 +2370,35 @@ function Ie(e, t, n, r, i) {
2402
2370
  }
2403
2371
  };
2404
2372
  }
2405
- function ui(e, t, n) {
2406
- return Object.is(e, t) ? !0 : e === null || t === null ? !1 : Array.isArray(e) ? Ho(e, t, n) : typeof e == "object" ? pi(e, t, n) : !1;
2373
+ function ci(e, t, n) {
2374
+ return Object.is(e, t) ? !0 : e === null || t === null ? !1 : Array.isArray(e) ? Ko(e, t, n) : typeof e == "object" ? ui(e, t, n) : !1;
2407
2375
  }
2408
- function Ho(e, t, n) {
2376
+ function Ko(e, t, n) {
2409
2377
  const r = e.length;
2410
2378
  if (r !== t.length)
2411
2379
  return !1;
2412
2380
  for (let i = 0; i < r; i++)
2413
- if (!ui(e[i], t[i], n))
2381
+ if (!ci(e[i], t[i], n))
2414
2382
  return !1;
2415
2383
  return !0;
2416
2384
  }
2417
- function pi(e, t, n) {
2385
+ function ui(e, t, n) {
2418
2386
  for (const r of Object.keys(e))
2419
- if (!n?.has(r) && !(Object.prototype.hasOwnProperty.call(t, r) && ui(e[r], t[r], n)))
2387
+ if (!n?.has(r) && !(Object.prototype.hasOwnProperty.call(t, r) && ci(e[r], t[r], n)))
2420
2388
  return !1;
2421
2389
  return !0;
2422
2390
  }
2423
- const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
2391
+ const { estree: pi } = _i, { embed: xe } = pi, Jo = (e, t) => {
2424
2392
  const { node: n } = e;
2425
2393
  if (n.type !== "TemplateLiteral" || n.quasis.some(({ value: { cooked: a } }) => a === null))
2426
2394
  return null;
2427
- const r = zo(e);
2395
+ const r = Fo(e);
2428
2396
  if (typeof r == "string") {
2429
- const a = Jo(
2397
+ const a = zo(
2430
2398
  t,
2431
2399
  r
2432
2400
  );
2433
- for (const s of me) {
2401
+ for (const s of ge) {
2434
2402
  let l = !1;
2435
2403
  for (const u of a(
2436
2404
  s
@@ -2440,7 +2408,7 @@ const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
2440
2408
  break;
2441
2409
  }
2442
2410
  if (l)
2443
- return Ie(
2411
+ return Oe(
2444
2412
  n,
2445
2413
  s,
2446
2414
  r,
@@ -2448,12 +2416,12 @@ const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
2448
2416
  t
2449
2417
  );
2450
2418
  }
2451
- return Oe?.(e, t) ?? null;
2419
+ return xe?.(e, t) ?? null;
2452
2420
  }
2453
- const i = Ko(e);
2421
+ const i = Wo(e);
2454
2422
  if (typeof i == "string") {
2455
- const a = ii(t, i);
2456
- for (const s of me) {
2423
+ const a = ni(t, i);
2424
+ for (const s of ge) {
2457
2425
  let l = !1;
2458
2426
  for (const u of a(s))
2459
2427
  if (i === u) {
@@ -2461,24 +2429,24 @@ const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
2461
2429
  break;
2462
2430
  }
2463
2431
  if (l)
2464
- return Ie(n, s, i, "tag", t);
2432
+ return Oe(n, s, i, "tag", t);
2465
2433
  }
2466
- return Oe?.(e, t) ?? null;
2434
+ return xe?.(e, t) ?? null;
2467
2435
  }
2468
2436
  if (i !== void 0) {
2469
- const a = (l) => So[t.parser].parse(
2437
+ const a = (l) => Mo[t.parser].parse(
2470
2438
  l,
2471
2439
  t
2472
- ), s = ii(t);
2473
- for (const l of me) {
2440
+ ), s = ni(t);
2441
+ for (const l of ge) {
2474
2442
  let u;
2475
2443
  for (const E of s(l))
2476
- if (Wo(i, E, a)) {
2444
+ if (wo(i, E, a)) {
2477
2445
  u = E;
2478
2446
  break;
2479
2447
  }
2480
2448
  if (u !== void 0)
2481
- return Ie(
2449
+ return Oe(
2482
2450
  n,
2483
2451
  l,
2484
2452
  u,
@@ -2487,15 +2455,15 @@ const { estree: gi } = $i, { embed: Oe } = gi, Xo = (e, t) => {
2487
2455
  );
2488
2456
  }
2489
2457
  }
2490
- return Oe?.(e, t) ?? null;
2491
- }, oa = {
2458
+ return xe?.(e, t) ?? null;
2459
+ }, ia = {
2492
2460
  estree: {
2493
- ...gi,
2494
- embed: Xo
2461
+ ...pi,
2462
+ embed: Jo
2495
2463
  }
2496
2464
  };
2497
2465
  export {
2498
- ra as options,
2499
- So as parsers,
2500
- oa as printers
2466
+ na as options,
2467
+ Mo as parsers,
2468
+ ia as printers
2501
2469
  };