@lingo.dev/_compiler 0.7.15 → 0.7.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/acorn-GCP5ZV2A.mjs +3152 -0
  2. package/build/acorn-U6XNAJW3.cjs +3152 -0
  3. package/build/angular-JQSQXFBY.mjs +2937 -0
  4. package/build/angular-VRWVFJ3P.cjs +2937 -0
  5. package/build/babel-R5G642DR.mjs +7246 -0
  6. package/build/babel-XUIPTQVD.cjs +7246 -0
  7. package/build/chunk-253QCR45.cjs +21 -0
  8. package/build/chunk-6BWS3CLP.mjs +16 -0
  9. package/build/chunk-77OA7KVH.cjs +22599 -0
  10. package/build/chunk-SRWLOKRJ.mjs +22598 -0
  11. package/build/estree-4GAWSYZ3.cjs +4388 -0
  12. package/build/estree-XLH46TSP.mjs +4388 -0
  13. package/build/flow-E755VYYN.mjs +27251 -0
  14. package/build/flow-Q7PWYY7R.cjs +27251 -0
  15. package/build/glimmer-CMYCELEM.cjs +2823 -0
  16. package/build/glimmer-E47Q6F77.mjs +2823 -0
  17. package/build/graphql-22VX22UI.mjs +1257 -0
  18. package/build/graphql-ATU26IOQ.cjs +1257 -0
  19. package/build/html-L366VYHK.cjs +2792 -0
  20. package/build/html-ZAWF5C3B.mjs +2792 -0
  21. package/build/index.cjs +36 -29
  22. package/build/index.d.cts +1 -1
  23. package/build/index.mjs +16 -7
  24. package/build/lingo-turbopack-loader.cjs +4 -5
  25. package/build/lingo-turbopack-loader.d.cts +1 -1
  26. package/build/lingo-turbopack-loader.mjs +2 -1
  27. package/build/markdown-5YN6HSRL.mjs +3536 -0
  28. package/build/markdown-VRQCW4QH.cjs +3536 -0
  29. package/build/meriyah-FBYDJ6EA.mjs +2631 -0
  30. package/build/meriyah-QKHCCSUI.cjs +2631 -0
  31. package/build/postcss-NNGTIRRJ.mjs +5083 -0
  32. package/build/postcss-PVIIR2IT.cjs +5083 -0
  33. package/build/typescript-FJLY3MEC.mjs +13205 -0
  34. package/build/typescript-VKODJRCW.cjs +13205 -0
  35. package/build/yaml-6I36QTON.cjs +4222 -0
  36. package/build/yaml-MMD4LQP5.mjs +4222 -0
  37. package/package.json +12 -5
  38. package/build/chunk-COKHINWO.mjs +0 -2743
  39. package/build/chunk-TMPC4O5V.cjs +0 -2743
@@ -0,0 +1,4388 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2; var _class3;require('./chunk-253QCR45.cjs');
2
+
3
+ // ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/estree.mjs
4
+ var za = Object.defineProperty;
5
+ var Us = (e) => {
6
+ throw TypeError(e);
7
+ };
8
+ var xr = (e, t) => {
9
+ for (var r in t) za(e, r, { get: t[r], enumerable: true });
10
+ };
11
+ var Xs = (e, t, r) => t.has(e) || Us("Cannot " + r);
12
+ var mt = (e, t, r) => (Xs(e, t, "read from private field"), r ? r.call(e) : t.get(e));
13
+ var Ys = (e, t, r) => t.has(e) ? Us("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r);
14
+ var Hs = (e, t, r, n) => (Xs(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
15
+ var Rs = {};
16
+ xr(Rs, { languages: () => Tm, options: () => Ha, printers: () => dm });
17
+ var Vs = [{ name: "JavaScript", type: "programming", extensions: [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".start.frag", ".end.frag", ".wxs"], tmScope: "source.js", aceMode: "javascript", aliases: ["js", "node"], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], filenames: ["Jakefile", "start.frag", "end.frag"], parsers: ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], vscodeLanguageIds: ["javascript", "mongo"], linguistLanguageId: 183 }, { name: "Flow", type: "programming", extensions: [".js.flow"], tmScope: "source.js", aceMode: "javascript", aliases: [], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], filenames: [], parsers: ["flow", "babel-flow"], vscodeLanguageIds: ["javascript"], linguistLanguageId: 183 }, { name: "JSX", type: "programming", extensions: [".jsx"], tmScope: "source.js.jsx", aceMode: "javascript", aliases: void 0, codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", interpreters: void 0, filenames: void 0, parsers: ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], vscodeLanguageIds: ["javascriptreact"], group: "JavaScript", linguistLanguageId: 183 }, { name: "TypeScript", type: "programming", extensions: [".ts", ".cts", ".mts"], tmScope: "source.ts", aceMode: "typescript", aliases: ["ts"], codemirrorMode: "javascript", codemirrorMimeType: "application/typescript", interpreters: ["bun", "deno", "ts-node", "tsx"], parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescript"], linguistLanguageId: 378 }, { name: "TSX", type: "programming", extensions: [".tsx"], tmScope: "source.tsx", aceMode: "javascript", codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", group: "TypeScript", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescriptreact"], linguistLanguageId: 94901924 }];
18
+ var vs = {};
19
+ xr(vs, { canAttachComment: () => kp, embed: () => oi, experimentalFeatures: () => fm, getCommentChildNodes: () => Ip, getVisitorKeys: () => br, handleComments: () => ts, insertPragma: () => di, isBlockComment: () => te, isGap: () => Lp, massageAstNode: () => Bu, print: () => Ga, printComment: () => ju, willPrintOwnComments: () => rs });
20
+ var Za = (e, t, r, n) => {
21
+ if (!(e && t == null)) return t.replaceAll ? t.replaceAll(r, n) : r.global ? t.replace(r, n) : t.split(r).join(n);
22
+ };
23
+ var X = Za;
24
+ var eo = (e, t, r) => {
25
+ if (!(e && t == null)) return Array.isArray(t) || typeof t == "string" ? t[r < 0 ? t.length + r : r] : t.at(r);
26
+ };
27
+ var v = eo;
28
+ function to(e) {
29
+ return e !== null && typeof e == "object";
30
+ }
31
+ var $s = to;
32
+ function* ro(e, t) {
33
+ let { getVisitorKeys: r, filter: n = () => true } = t, s = (u) => $s(u) && n(u);
34
+ for (let u of r(e)) {
35
+ let i = e[u];
36
+ if (Array.isArray(i)) for (let a of i) s(a) && (yield a);
37
+ else s(i) && (yield i);
38
+ }
39
+ }
40
+ function* no(e, t) {
41
+ let r = [e];
42
+ for (let n = 0; n < r.length; n++) {
43
+ let s = r[n];
44
+ for (let u of ro(s, t)) yield u, r.push(u);
45
+ }
46
+ }
47
+ function Ks(e, { getVisitorKeys: t, predicate: r }) {
48
+ for (let n of no(e, { getVisitorKeys: t })) if (r(n)) return true;
49
+ return false;
50
+ }
51
+ var Qs = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
52
+ function zs(e) {
53
+ return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
54
+ }
55
+ function Zs(e) {
56
+ return e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9776 && e <= 9783 || e >= 9800 && e <= 9811 || e === 9855 || e >= 9866 && e <= 9871 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12773 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101631 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e >= 119552 && e <= 119638 || e >= 119648 && e <= 119670 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129673 || e >= 129679 && e <= 129734 || e >= 129742 && e <= 129756 || e >= 129759 && e <= 129769 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
57
+ }
58
+ var eu = (e) => !(zs(e) || Zs(e));
59
+ var so = /[^\x20-\x7F]/u;
60
+ function uo(e) {
61
+ if (!e) return 0;
62
+ if (!so.test(e)) return e.length;
63
+ e = e.replace(Qs(), " ");
64
+ let t = 0;
65
+ for (let r of e) {
66
+ let n = r.codePointAt(0);
67
+ n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || (t += eu(n) ? 1 : 2);
68
+ }
69
+ return t;
70
+ }
71
+ var st = uo;
72
+ function hr(e) {
73
+ return (t, r, n) => {
74
+ let s = !!(n != null && n.backwards);
75
+ if (r === false) return false;
76
+ let { length: u } = t, i = r;
77
+ for (; i >= 0 && i < u; ) {
78
+ let a = t.charAt(i);
79
+ if (e instanceof RegExp) {
80
+ if (!e.test(a)) return i;
81
+ } else if (!e.includes(a)) return i;
82
+ s ? i-- : i++;
83
+ }
84
+ return i === -1 || i === u ? i : false;
85
+ };
86
+ }
87
+ var Jm = hr(/\s/u);
88
+ var Ye = hr(" ");
89
+ var tu = hr(",; ");
90
+ var ru = hr(/[^\n\r]/u);
91
+ function io(e, t, r) {
92
+ let n = !!(r != null && r.backwards);
93
+ if (t === false) return false;
94
+ let s = e.charAt(t);
95
+ if (n) {
96
+ if (e.charAt(t - 1) === "\r" && s === `
97
+ `) return t - 2;
98
+ if (s === `
99
+ ` || s === "\r" || s === "\u2028" || s === "\u2029") return t - 1;
100
+ } else {
101
+ if (s === "\r" && e.charAt(t + 1) === `
102
+ `) return t + 2;
103
+ if (s === `
104
+ ` || s === "\r" || s === "\u2028" || s === "\u2029") return t + 1;
105
+ }
106
+ return t;
107
+ }
108
+ var He = io;
109
+ function ao(e, t, r = {}) {
110
+ let n = Ye(e, r.backwards ? t - 1 : t, r), s = He(e, n, r);
111
+ return n !== s;
112
+ }
113
+ var ee = ao;
114
+ function oo(e, t) {
115
+ if (t === false) return false;
116
+ if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
117
+ for (let r = t + 2; r < e.length; ++r) if (e.charAt(r) === "*" && e.charAt(r + 1) === "/") return r + 2;
118
+ }
119
+ return t;
120
+ }
121
+ var _t = oo;
122
+ function po(e, t) {
123
+ return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? ru(e, t) : t;
124
+ }
125
+ var Mt = po;
126
+ function co(e, t) {
127
+ let r = null, n = t;
128
+ for (; n !== r; ) r = n, n = tu(e, n), n = _t(e, n), n = Ye(e, n);
129
+ return n = Mt(e, n), n = He(e, n), n !== false && ee(e, n);
130
+ }
131
+ var vt = co;
132
+ function lo(e) {
133
+ return Array.isArray(e) && e.length > 0;
134
+ }
135
+ var O = lo;
136
+ var nu = new Proxy(() => {
137
+ }, { get: () => nu });
138
+ var jt = nu;
139
+ var gr = "'";
140
+ var su = '"';
141
+ function mo(e, t) {
142
+ let r = t === true || t === gr ? gr : su, n = r === gr ? su : gr, s = 0, u = 0;
143
+ for (let i of e) i === r ? s++ : i === n && u++;
144
+ return s > u ? n : r;
145
+ }
146
+ var Sr = mo;
147
+ function yo(e, t, r) {
148
+ let n = t === '"' ? "'" : '"', u = X(false, e, /\\(.)|(["'])/gsu, (i, a, o) => a === n ? a : o === t ? "\\" + o : o || (r && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a) ? a : "\\" + a));
149
+ return t + u + t;
150
+ }
151
+ var uu = yo;
152
+ function fo(e, t) {
153
+ jt.ok(/^(?<quote>["']).*\k<quote>$/su.test(e));
154
+ let r = e.slice(1, -1), n = t.parser === "json" || t.parser === "jsonc" || t.parser === "json5" && t.quoteProps === "preserve" && !t.singleQuote ? '"' : t.__isInHtmlAttribute ? "'" : Sr(r, t.singleQuote);
155
+ return e.charAt(0) === n ? e : uu(r, n, false);
156
+ }
157
+ var ut = fo;
158
+ var iu = (e) => Number.isInteger(e) && e >= 0;
159
+ function j(e) {
160
+ var n, s, u;
161
+ let t = _nullishCoalesce(((n = e.range) == null ? void 0 : n[0]), () => ( e.start)), r = (u = _nullishCoalesce(((s = e.declaration) == null ? void 0 : s.decorators), () => ( e.decorators))) == null ? void 0 : u[0];
162
+ return r ? Math.min(j(r), t) : t;
163
+ }
164
+ function P(e) {
165
+ var r;
166
+ return _nullishCoalesce(((r = e.range) == null ? void 0 : r[1]), () => ( e.end));
167
+ }
168
+ function Bt(e, t) {
169
+ let r = j(e);
170
+ return iu(r) && r === j(t);
171
+ }
172
+ function Do(e, t) {
173
+ let r = P(e);
174
+ return iu(r) && r === P(t);
175
+ }
176
+ function au(e, t) {
177
+ return Bt(e, t) && Do(e, t);
178
+ }
179
+ var rr = null;
180
+ function nr(e) {
181
+ if (rr !== null && typeof rr.property) {
182
+ let t = rr;
183
+ return rr = nr.prototype = null, t;
184
+ }
185
+ return rr = nr.prototype = _nullishCoalesce(e, () => ( /* @__PURE__ */ Object.create(null))), new nr();
186
+ }
187
+ var Eo = 10;
188
+ for (let e = 0; e <= Eo; e++) nr();
189
+ function On(e) {
190
+ return nr(e);
191
+ }
192
+ function Fo(e, t = "type") {
193
+ On(e);
194
+ function r(n) {
195
+ let s = n[t], u = e[s];
196
+ if (!Array.isArray(u)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
197
+ return u;
198
+ }
199
+ return r;
200
+ }
201
+ var Br = Fo;
202
+ var ou = { ArrayExpression: ["elements"], AssignmentExpression: ["left", "right"], BinaryExpression: ["left", "right"], InterpreterDirective: [], Directive: ["value"], DirectiveLiteral: [], BlockStatement: ["directives", "body"], BreakStatement: ["label"], CallExpression: ["callee", "typeParameters", "typeArguments", "arguments"], CatchClause: ["param", "body"], ConditionalExpression: ["test", "consequent", "alternate"], ContinueStatement: ["label"], DebuggerStatement: [], DoWhileStatement: ["body", "test"], EmptyStatement: [], ExpressionStatement: ["expression"], File: ["program"], ForInStatement: ["left", "right", "body"], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: ["id", "typeParameters", "params", "predicate", "returnType", "body"], FunctionExpression: ["id", "typeParameters", "params", "returnType", "body"], Identifier: ["typeAnnotation", "decorators"], IfStatement: ["test", "consequent", "alternate"], LabeledStatement: ["label", "body"], StringLiteral: [], NumericLiteral: [], NullLiteral: [], BooleanLiteral: [], RegExpLiteral: [], LogicalExpression: ["left", "right"], MemberExpression: ["object", "property"], NewExpression: ["callee", "typeParameters", "typeArguments", "arguments"], Program: ["directives", "body"], ObjectExpression: ["properties"], ObjectMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectProperty: ["decorators", "key", "value"], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: ["argument"], SequenceExpression: ["expressions"], ParenthesizedExpression: ["expression"], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], ThisExpression: [], ThrowStatement: ["argument"], TryStatement: ["block", "handler", "finalizer"], UnaryExpression: ["argument"], UpdateExpression: ["argument"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id", "init"], WhileStatement: ["test", "body"], WithStatement: ["object", "body"], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], ClassBody: ["body"], ClassExpression: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"], ClassDeclaration: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportNamedDeclaration: ["declaration", "specifiers", "source", "attributes"], ExportSpecifier: ["local", "exported"], ForOfStatement: ["left", "right", "body"], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportSpecifier: ["imported", "local"], ImportExpression: ["source", "options"], MetaProperty: ["meta", "property"], ClassMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectPattern: ["decorators", "properties", "typeAnnotation"], SpreadElement: ["argument"], Super: [], TaggedTemplateExpression: ["tag", "typeParameters", "quasi", "typeArguments"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], YieldExpression: ["argument"], AwaitExpression: ["argument"], BigIntLiteral: [], ExportNamespaceSpecifier: ["exported"], OptionalMemberExpression: ["object", "property"], OptionalCallExpression: ["callee", "typeParameters", "typeArguments", "arguments"], ClassProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassAccessorProperty: ["decorators", "key", "typeAnnotation", "value"], ClassPrivateProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassPrivateMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], PrivateName: ["id"], StaticBlock: ["body"], ImportAttribute: ["key", "value"], AnyTypeAnnotation: [], ArrayTypeAnnotation: ["elementType"], BooleanTypeAnnotation: [], BooleanLiteralTypeAnnotation: [], NullLiteralTypeAnnotation: [], ClassImplements: ["id", "typeParameters"], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareFunction: ["id", "predicate"], DeclareInterface: ["id", "typeParameters", "extends", "body"], DeclareModule: ["id", "body"], DeclareModuleExports: ["typeAnnotation"], DeclareTypeAlias: ["id", "typeParameters", "right"], DeclareOpaqueType: ["id", "typeParameters", "supertype"], DeclareVariable: ["id"], DeclareExportDeclaration: ["declaration", "specifiers", "source", "attributes"], DeclareExportAllDeclaration: ["source", "attributes"], DeclaredPredicate: ["value"], ExistsTypeAnnotation: [], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: ["name", "typeAnnotation"], GenericTypeAnnotation: ["id", "typeParameters"], InferredPredicate: [], InterfaceExtends: ["id", "typeParameters"], InterfaceDeclaration: ["id", "typeParameters", "extends", "body"], InterfaceTypeAnnotation: ["extends", "body"], IntersectionTypeAnnotation: ["types"], MixedTypeAnnotation: [], EmptyTypeAnnotation: [], NullableTypeAnnotation: ["typeAnnotation"], NumberLiteralTypeAnnotation: [], NumberTypeAnnotation: [], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeCallProperty: ["value"], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: ["argument"], OpaqueType: ["id", "typeParameters", "supertype", "impltype"], QualifiedTypeIdentifier: ["qualification", "id"], StringLiteralTypeAnnotation: [], StringTypeAnnotation: [], SymbolTypeAnnotation: [], ThisTypeAnnotation: [], TupleTypeAnnotation: ["types", "elementTypes"], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeAlias: ["id", "typeParameters", "right"], TypeAnnotation: ["typeAnnotation"], TypeCastExpression: ["expression", "typeAnnotation"], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: ["params"], TypeParameterInstantiation: ["params"], UnionTypeAnnotation: ["types"], Variance: [], VoidTypeAnnotation: [], EnumDeclaration: ["id", "body"], EnumBooleanBody: ["members"], EnumNumberBody: ["members"], EnumStringBody: ["members"], EnumSymbolBody: ["members"], EnumBooleanMember: ["id", "init"], EnumNumberMember: ["id", "init"], EnumStringMember: ["id", "init"], EnumDefaultedMember: ["id"], IndexedAccessType: ["objectType", "indexType"], OptionalIndexedAccessType: ["objectType", "indexType"], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: [], JSXExpressionContainer: ["expression"], JSXSpreadChild: ["expression"], JSXIdentifier: [], JSXMemberExpression: ["object", "property"], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeParameters", "typeArguments", "attributes"], JSXSpreadAttribute: ["argument"], JSXText: [], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXOpeningFragment: [], JSXClosingFragment: [], Noop: [], Placeholder: [], V8IntrinsicIdentifier: [], ArgumentPlaceholder: [], BindExpression: ["object", "callee"], Decorator: ["expression"], DoExpression: ["body"], ExportDefaultSpecifier: ["exported"], ModuleExpression: ["body"], TopicReference: [], PipelineTopicExpression: ["expression"], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: [], TSParameterProperty: ["parameter", "decorators"], TSDeclareFunction: ["id", "typeParameters", "params", "returnType", "body"], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSQualifiedName: ["left", "right"], TSCallSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSPropertySignature: ["key", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSIndexSignature: ["parameters", "typeAnnotation"], TSAnyKeyword: [], TSBooleanKeyword: [], TSBigIntKeyword: [], TSIntrinsicKeyword: [], TSNeverKeyword: [], TSNullKeyword: [], TSNumberKeyword: [], TSObjectKeyword: [], TSStringKeyword: [], TSSymbolKeyword: [], TSUndefinedKeyword: [], TSUnknownKeyword: [], TSVoidKeyword: [], TSThisType: [], TSFunctionType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructorType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSTypeReference: ["typeName", "typeParameters", "typeArguments"], TSTypePredicate: ["parameterName", "typeAnnotation"], TSTypeQuery: ["exprName", "typeParameters", "typeArguments"], TSTypeLiteral: ["members"], TSArrayType: ["elementType"], TSTupleType: ["elementTypes"], TSOptionalType: ["typeAnnotation"], TSRestType: ["typeAnnotation"], TSNamedTupleMember: ["label", "elementType"], TSUnionType: ["types"], TSIntersectionType: ["types"], TSConditionalType: ["checkType", "extendsType", "trueType", "falseType"], TSInferType: ["typeParameter"], TSParenthesizedType: ["typeAnnotation"], TSTypeOperator: ["typeAnnotation"], TSIndexedAccessType: ["objectType", "indexType"], TSMappedType: ["nameType", "typeAnnotation", "key", "constraint"], TSTemplateLiteralType: ["quasis", "types"], TSLiteralType: ["literal"], TSExpressionWithTypeArguments: ["expression", "typeParameters"], TSInterfaceDeclaration: ["id", "typeParameters", "extends", "body"], TSInterfaceBody: ["body"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSInstantiationExpression: ["expression", "typeParameters", "typeArguments"], TSAsExpression: ["expression", "typeAnnotation"], TSSatisfiesExpression: ["expression", "typeAnnotation"], TSTypeAssertion: ["typeAnnotation", "expression"], TSEnumBody: ["members"], TSEnumDeclaration: ["id", "body"], TSEnumMember: ["id", "initializer"], TSModuleDeclaration: ["id", "body"], TSModuleBlock: ["body"], TSImportType: ["argument", "options", "qualifier", "typeParameters", "typeArguments"], TSImportEqualsDeclaration: ["id", "moduleReference"], TSExternalModuleReference: ["expression"], TSNonNullExpression: ["expression"], TSExportAssignment: ["expression"], TSNamespaceExportDeclaration: ["id"], TSTypeAnnotation: ["typeAnnotation"], TSTypeParameterInstantiation: ["params"], TSTypeParameterDeclaration: ["params"], TSTypeParameter: ["constraint", "default", "name"], ChainExpression: ["expression"], ExperimentalRestProperty: ["argument"], ExperimentalSpreadProperty: ["argument"], Literal: [], MethodDefinition: ["decorators", "key", "value"], PrivateIdentifier: [], Property: ["key", "value"], PropertyDefinition: ["decorators", "key", "typeAnnotation", "value", "variance"], AccessorProperty: ["decorators", "key", "typeAnnotation", "value"], TSAbstractAccessorProperty: ["decorators", "key", "typeAnnotation"], TSAbstractKeyword: [], TSAbstractMethodDefinition: ["key", "value"], TSAbstractPropertyDefinition: ["decorators", "key", "typeAnnotation"], TSAsyncKeyword: [], TSClassImplements: ["expression", "typeArguments", "typeParameters"], TSDeclareKeyword: [], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSExportKeyword: [], TSInterfaceHeritage: ["expression", "typeArguments", "typeParameters"], TSPrivateKeyword: [], TSProtectedKeyword: [], TSPublicKeyword: [], TSReadonlyKeyword: [], TSStaticKeyword: [], AsConstExpression: ["expression"], AsExpression: ["expression", "typeAnnotation"], BigIntLiteralTypeAnnotation: [], BigIntTypeAnnotation: [], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: ["name", "typeAnnotation"], ConditionalTypeAnnotation: ["checkType", "extendsType", "trueType", "falseType"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclareEnum: ["id", "body"], DeclareHook: ["id"], DeclareNamespace: ["id", "body"], EnumBigIntBody: ["members"], EnumBigIntMember: ["id", "init"], HookDeclaration: ["id", "params", "body", "typeParameters", "returnType"], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], InferTypeAnnotation: ["typeParameter"], KeyofTypeAnnotation: ["argument"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], QualifiedTypeofIdentifier: ["qualification", "id"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeOperator: ["typeAnnotation"], TypePredicate: ["parameterName", "typeAnnotation", "asserts"], NGChainedExpression: ["expressions"], NGEmptyExpression: [], NGPipeExpression: ["left", "right", "arguments"], NGMicrosyntax: ["body"], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: [], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: ["key", "value"], NGRoot: ["node"], JsExpressionRoot: ["node"], JsonRoot: ["node"], TSJSDocAllType: [], TSJSDocUnknownType: [], TSJSDocNullableType: ["typeAnnotation"], TSJSDocNonNullableType: ["typeAnnotation"], NeverTypeAnnotation: [], SatisfiesExpression: ["expression", "typeAnnotation"], UndefinedTypeAnnotation: [], UnknownTypeAnnotation: [] };
203
+ var Co = Br(ou);
204
+ var br = Co;
205
+ function Ao(e) {
206
+ let t = new Set(e);
207
+ return (r) => t.has(r == null ? void 0 : r.type);
208
+ }
209
+ var R = Ao;
210
+ function To(e) {
211
+ var t;
212
+ return _nullishCoalesce(((t = e.extra) == null ? void 0 : t.raw), () => ( e.raw));
213
+ }
214
+ var ae = To;
215
+ var xo = R(["Block", "CommentBlock", "MultiLine"]);
216
+ var te = xo;
217
+ var ho = R(["AnyTypeAnnotation", "ThisTypeAnnotation", "NumberTypeAnnotation", "VoidTypeAnnotation", "BooleanTypeAnnotation", "BigIntTypeAnnotation", "SymbolTypeAnnotation", "StringTypeAnnotation", "NeverTypeAnnotation", "UndefinedTypeAnnotation", "UnknownTypeAnnotation", "EmptyTypeAnnotation", "MixedTypeAnnotation"]);
218
+ var Pr = ho;
219
+ var go = R(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
220
+ var At = go;
221
+ function So(e, t) {
222
+ let r = t.split(".");
223
+ for (let n = r.length - 1; n >= 0; n--) {
224
+ let s = r[n];
225
+ if (n === 0) return e.type === "Identifier" && e.name === s;
226
+ if (e.type !== "MemberExpression" || e.optional || e.computed || e.property.type !== "Identifier" || e.property.name !== s) return false;
227
+ e = e.object;
228
+ }
229
+ }
230
+ function Bo(e, t) {
231
+ return t.some((r) => So(e, r));
232
+ }
233
+ var pu = Bo;
234
+ function bo({ type: e }) {
235
+ return e.startsWith("TS") && e.endsWith("Keyword");
236
+ }
237
+ var kr = bo;
238
+ function ur(e, t) {
239
+ return t(e) || Ks(e, { getVisitorKeys: br, predicate: t });
240
+ }
241
+ function Jt(e) {
242
+ return e.type === "AssignmentExpression" || e.type === "BinaryExpression" || e.type === "LogicalExpression" || e.type === "NGPipeExpression" || e.type === "ConditionalExpression" || w(e) || G(e) || e.type === "SequenceExpression" || e.type === "TaggedTemplateExpression" || e.type === "BindExpression" || e.type === "UpdateExpression" && !e.prefix || xe(e) || e.type === "TSNonNullExpression" || e.type === "ChainExpression";
243
+ }
244
+ function mu(e) {
245
+ return e.expressions ? e.expressions[0] : _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(e.left, () => ( e.test)), () => ( e.callee)), () => ( e.object)), () => ( e.tag)), () => ( e.argument)), () => ( e.expression));
246
+ }
247
+ function Lr(e) {
248
+ if (e.expressions) return ["expressions", 0];
249
+ if (e.left) return ["left"];
250
+ if (e.test) return ["test"];
251
+ if (e.object) return ["object"];
252
+ if (e.callee) return ["callee"];
253
+ if (e.tag) return ["tag"];
254
+ if (e.argument) return ["argument"];
255
+ if (e.expression) return ["expression"];
256
+ throw new Error("Unexpected node has no left side.");
257
+ }
258
+ var yu = R(["ExportDefaultDeclaration", "DeclareExportDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportAllDeclaration"]);
259
+ var U = R(["ArrayExpression"]);
260
+ var ue = R(["ObjectExpression"]);
261
+ function fu(e) {
262
+ return e.type === "LogicalExpression" && e.operator === "??";
263
+ }
264
+ function ye(e) {
265
+ return e.type === "NumericLiteral" || e.type === "Literal" && typeof e.value == "number";
266
+ }
267
+ function Du(e) {
268
+ return e.type === "BooleanLiteral" || e.type === "Literal" && typeof e.value == "boolean";
269
+ }
270
+ function Rn(e) {
271
+ return e.type === "UnaryExpression" && (e.operator === "+" || e.operator === "-") && ye(e.argument);
272
+ }
273
+ function K(e) {
274
+ return !!(e && (e.type === "StringLiteral" || e.type === "Literal" && typeof e.value == "string"));
275
+ }
276
+ function Jn(e) {
277
+ return e.type === "RegExpLiteral" || e.type === "Literal" && !!e.regex;
278
+ }
279
+ var wr = R(["Literal", "BooleanLiteral", "BigIntLiteral", "DirectiveLiteral", "NullLiteral", "NumericLiteral", "RegExpLiteral", "StringLiteral"]);
280
+ var Po = R(["Identifier", "ThisExpression", "Super", "PrivateName", "PrivateIdentifier"]);
281
+ var Re = R(["ObjectTypeAnnotation", "TSTypeLiteral", "TSMappedType"]);
282
+ var Rt = R(["FunctionExpression", "ArrowFunctionExpression"]);
283
+ function ko(e) {
284
+ return e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && e.body.type === "BlockStatement";
285
+ }
286
+ function _n(e) {
287
+ return w(e) && e.callee.type === "Identifier" && ["async", "inject", "fakeAsync", "waitForAsync"].includes(e.callee.name);
288
+ }
289
+ var Y = R(["JSXElement", "JSXFragment"]);
290
+ function bt(e) {
291
+ return e.method && e.kind === "init" || e.kind === "get" || e.kind === "set";
292
+ }
293
+ function Or(e) {
294
+ return (e.type === "ObjectTypeProperty" || e.type === "ObjectTypeInternalSlot") && !e.static && !e.method && e.kind !== "get" && e.kind !== "set" && e.value.type === "FunctionTypeAnnotation";
295
+ }
296
+ function Eu(e) {
297
+ return (e.type === "TypeAnnotation" || e.type === "TSTypeAnnotation") && e.typeAnnotation.type === "FunctionTypeAnnotation" && !e.static && !Bt(e, e.typeAnnotation);
298
+ }
299
+ var Fe = R(["BinaryExpression", "LogicalExpression", "NGPipeExpression"]);
300
+ function dt(e) {
301
+ return G(e) || e.type === "BindExpression" && !!e.object;
302
+ }
303
+ var Io = R(["TSThisType", "NullLiteralTypeAnnotation", "BooleanLiteralTypeAnnotation", "StringLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "TSLiteralType", "TSTemplateLiteralType"]);
304
+ function Nt(e) {
305
+ return kr(e) || Pr(e) || Io(e) || (e.type === "GenericTypeAnnotation" || e.type === "TSTypeReference") && !e.typeParameters && !e.typeArguments;
306
+ }
307
+ function Lo(e) {
308
+ return e.type === "Identifier" && (e.name === "beforeEach" || e.name === "beforeAll" || e.name === "afterEach" || e.name === "afterAll");
309
+ }
310
+ var wo = ["it", "it.only", "it.skip", "describe", "describe.only", "describe.skip", "test", "test.only", "test.skip", "test.step", "test.describe", "test.describe.only", "test.describe.parallel", "test.describe.parallel.only", "test.describe.serial", "test.describe.serial.only", "skip", "xit", "xdescribe", "xtest", "fit", "fdescribe", "ftest"];
311
+ function Oo(e) {
312
+ return pu(e, wo);
313
+ }
314
+ function Pt(e, t) {
315
+ if ((e == null ? void 0 : e.type) !== "CallExpression" || e.optional) return false;
316
+ let r = le(e);
317
+ if (r.length === 1) {
318
+ if (_n(e) && Pt(t)) return Rt(r[0]);
319
+ if (Lo(e.callee)) return _n(r[0]);
320
+ } else if ((r.length === 2 || r.length === 3) && (r[0].type === "TemplateLiteral" || K(r[0])) && Oo(e.callee)) return r[2] && !ye(r[2]) ? false : (r.length === 2 ? Rt(r[1]) : ko(r[1]) && Q(r[1]).length <= 1) || _n(r[1]);
321
+ return false;
322
+ }
323
+ var Fu = (e) => (t) => ((t == null ? void 0 : t.type) === "ChainExpression" && (t = t.expression), e(t));
324
+ var w = Fu(R(["CallExpression", "OptionalCallExpression"]));
325
+ var G = Fu(R(["MemberExpression", "OptionalMemberExpression"]));
326
+ function Nn(e, t = 5) {
327
+ return Cu(e, t) <= t;
328
+ }
329
+ function Cu(e, t) {
330
+ let r = 0;
331
+ for (let n in e) {
332
+ let s = e[n];
333
+ if (s && typeof s == "object" && typeof s.type == "string" && (r++, r += Cu(s, t - r)), r > t) return r;
334
+ }
335
+ return r;
336
+ }
337
+ var _o = 0.25;
338
+ function ir(e, t) {
339
+ let { printWidth: r } = t;
340
+ if (d(e)) return false;
341
+ let n = r * _o;
342
+ if (e.type === "ThisExpression" || e.type === "Identifier" && e.name.length <= n || Rn(e) && !d(e.argument)) return true;
343
+ let s = e.type === "Literal" && "regex" in e && e.regex.pattern || e.type === "RegExpLiteral" && e.pattern;
344
+ return s ? s.length <= n : K(e) ? ut(ae(e), t).length <= n : e.type === "TemplateLiteral" ? e.expressions.length === 0 && e.quasis[0].value.raw.length <= n && !e.quasis[0].value.raw.includes(`
345
+ `) : e.type === "UnaryExpression" ? ir(e.argument, { printWidth: r }) : e.type === "CallExpression" && e.arguments.length === 0 && e.callee.type === "Identifier" ? e.callee.name.length <= n - 2 : wr(e);
346
+ }
347
+ function de(e, t) {
348
+ return Y(t) ? kt(t) : d(t, h.Leading, (r) => ee(e, P(r)));
349
+ }
350
+ function cu(e) {
351
+ return e.quasis.some((t) => t.value.raw.includes(`
352
+ `));
353
+ }
354
+ function _r(e, t) {
355
+ return (e.type === "TemplateLiteral" && cu(e) || e.type === "TaggedTemplateExpression" && cu(e.quasi)) && !ee(t, j(e), { backwards: true });
356
+ }
357
+ function Mr(e) {
358
+ if (!d(e)) return false;
359
+ let t = v(false, Ve(e, h.Dangling), -1);
360
+ return t && !te(t);
361
+ }
362
+ function Au(e) {
363
+ if (e.length <= 1) return false;
364
+ let t = 0;
365
+ for (let r of e) if (Rt(r)) {
366
+ if (t += 1, t > 1) return true;
367
+ } else if (w(r)) {
368
+ for (let n of le(r)) if (Rt(n)) return true;
369
+ }
370
+ return false;
371
+ }
372
+ function vr(e) {
373
+ let { node: t, parent: r, key: n } = e;
374
+ return n === "callee" && w(t) && w(r) && r.arguments.length > 0 && t.arguments.length > r.arguments.length;
375
+ }
376
+ var Mo = /* @__PURE__ */ new Set(["!", "-", "+", "~"]);
377
+ function we(e, t = 2) {
378
+ if (t <= 0) return false;
379
+ if (e.type === "ChainExpression" || e.type === "TSNonNullExpression") return we(e.expression, t);
380
+ let r = (n) => we(n, t - 1);
381
+ if (Jn(e)) return st(_nullishCoalesce(e.pattern, () => ( e.regex.pattern))) <= 5;
382
+ if (wr(e) || Po(e) || e.type === "ArgumentPlaceholder") return true;
383
+ if (e.type === "TemplateLiteral") return e.quasis.every((n) => !n.value.raw.includes(`
384
+ `)) && e.expressions.every(r);
385
+ if (ue(e)) return e.properties.every((n) => !n.computed && (n.shorthand || n.value && r(n.value)));
386
+ if (U(e)) return e.elements.every((n) => n === null || r(n));
387
+ if (yt(e)) {
388
+ if (e.type === "ImportExpression" || we(e.callee, t)) {
389
+ let n = le(e);
390
+ return n.length <= t && n.every(r);
391
+ }
392
+ return false;
393
+ }
394
+ return G(e) ? we(e.object, t) && we(e.property, t) : e.type === "UnaryExpression" && Mo.has(e.operator) || e.type === "UpdateExpression" ? we(e.argument, t) : false;
395
+ }
396
+ function du(e) {
397
+ return e;
398
+ }
399
+ function ce(e, t = "es5") {
400
+ return e.trailingComma === "es5" && t === "es5" || e.trailingComma === "all" && (t === "all" || t === "es5");
401
+ }
402
+ function pe(e, t) {
403
+ switch (e.type) {
404
+ case "BinaryExpression":
405
+ case "LogicalExpression":
406
+ case "AssignmentExpression":
407
+ case "NGPipeExpression":
408
+ return pe(e.left, t);
409
+ case "MemberExpression":
410
+ case "OptionalMemberExpression":
411
+ return pe(e.object, t);
412
+ case "TaggedTemplateExpression":
413
+ return e.tag.type === "FunctionExpression" ? false : pe(e.tag, t);
414
+ case "CallExpression":
415
+ case "OptionalCallExpression":
416
+ return e.callee.type === "FunctionExpression" ? false : pe(e.callee, t);
417
+ case "ConditionalExpression":
418
+ return pe(e.test, t);
419
+ case "UpdateExpression":
420
+ return !e.prefix && pe(e.argument, t);
421
+ case "BindExpression":
422
+ return e.object && pe(e.object, t);
423
+ case "SequenceExpression":
424
+ return pe(e.expressions[0], t);
425
+ case "ChainExpression":
426
+ case "TSSatisfiesExpression":
427
+ case "TSAsExpression":
428
+ case "TSNonNullExpression":
429
+ case "AsExpression":
430
+ case "AsConstExpression":
431
+ case "SatisfiesExpression":
432
+ return pe(e.expression, t);
433
+ default:
434
+ return t(e);
435
+ }
436
+ }
437
+ var lu = { "==": true, "!=": true, "===": true, "!==": true };
438
+ var Ir = { "*": true, "/": true, "%": true };
439
+ var jn = { ">>": true, ">>>": true, "<<": true };
440
+ function ar(e, t) {
441
+ return !(sr(t) !== sr(e) || e === "**" || lu[e] && lu[t] || t === "%" && Ir[e] || e === "%" && Ir[t] || t !== e && Ir[t] && Ir[e] || jn[e] && jn[t]);
442
+ }
443
+ var vo = new Map([["|>"], ["??"], ["||"], ["&&"], ["|"], ["^"], ["&"], ["==", "===", "!=", "!=="], ["<", ">", "<=", ">=", "in", "instanceof"], [">>", "<<", ">>>"], ["+", "-"], ["*", "/", "%"], ["**"]].flatMap((e, t) => e.map((r) => [r, t])));
444
+ function sr(e) {
445
+ return vo.get(e);
446
+ }
447
+ function Tu(e) {
448
+ return !!jn[e] || e === "|" || e === "^" || e === "&";
449
+ }
450
+ function xu(e) {
451
+ var r;
452
+ if (e.rest) return true;
453
+ let t = Q(e);
454
+ return ((r = v(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
455
+ }
456
+ var Mn = /* @__PURE__ */ new WeakMap();
457
+ function Q(e) {
458
+ if (Mn.has(e)) return Mn.get(e);
459
+ let t = [];
460
+ return e.this && t.push(e.this), Array.isArray(e.parameters) ? t.push(...e.parameters) : Array.isArray(e.params) && t.push(...e.params), e.rest && t.push(e.rest), Mn.set(e, t), t;
461
+ }
462
+ function hu(e, t) {
463
+ let { node: r } = e, n = 0, s = (u) => t(u, n++);
464
+ r.this && e.call(s, "this"), Array.isArray(r.parameters) ? e.each(s, "parameters") : Array.isArray(r.params) && e.each(s, "params"), r.rest && e.call(s, "rest");
465
+ }
466
+ var vn = /* @__PURE__ */ new WeakMap();
467
+ function le(e) {
468
+ if (vn.has(e)) return vn.get(e);
469
+ if (e.type === "ChainExpression") return le(e.expression);
470
+ let t = e.arguments;
471
+ return (e.type === "ImportExpression" || e.type === "TSImportType") && (t = [e.type === "ImportExpression" ? e.source : e.argument], e.options && t.push(e.options)), vn.set(e, t), t;
472
+ }
473
+ function Gt(e, t) {
474
+ let { node: r } = e;
475
+ if (r.type === "ChainExpression") return e.call(() => Gt(e, t), "expression");
476
+ r.type === "ImportExpression" || r.type === "TSImportType" ? (e.call((n) => t(n, 0), r.type === "ImportExpression" ? "source" : "argument"), r.options && e.call((n) => t(n, 1), "options")) : e.each(t, "arguments");
477
+ }
478
+ function Gn(e, t) {
479
+ let r = [];
480
+ if (e.type === "ChainExpression" && (e = e.expression, r.push("expression")), e.type === "ImportExpression" || e.type === "TSImportType") {
481
+ if (t === 0 || t === (e.options ? -2 : -1)) return [...r, e.type === "ImportExpression" ? "source" : "argument"];
482
+ if (e.options && (t === 1 || t === -1)) return [...r, "options"];
483
+ throw new RangeError("Invalid argument index");
484
+ }
485
+ if (t < 0 && (t = e.arguments.length + t), t < 0 || t >= e.arguments.length) throw new RangeError("Invalid argument index");
486
+ return [...r, "arguments", t];
487
+ }
488
+ function or(e) {
489
+ return e.value.trim() === "prettier-ignore" && !e.unignore;
490
+ }
491
+ function kt(e) {
492
+ return (e == null ? void 0 : e.prettierIgnore) || d(e, h.PrettierIgnore);
493
+ }
494
+ var h = { Leading: 2, Trailing: 4, Dangling: 8, Block: 16, Line: 32, PrettierIgnore: 64, First: 128, Last: 256 };
495
+ var gu = (e, t) => {
496
+ if (typeof e == "function" && (t = e, e = 0), e || t) return (r, n, s) => !(e & h.Leading && !r.leading || e & h.Trailing && !r.trailing || e & h.Dangling && (r.leading || r.trailing) || e & h.Block && !te(r) || e & h.Line && !At(r) || e & h.First && n !== 0 || e & h.Last && n !== s.length - 1 || e & h.PrettierIgnore && !or(r) || t && !t(r));
497
+ };
498
+ function d(e, t, r) {
499
+ if (!O(e == null ? void 0 : e.comments)) return false;
500
+ let n = gu(t, r);
501
+ return n ? e.comments.some(n) : true;
502
+ }
503
+ function Ve(e, t, r) {
504
+ if (!Array.isArray(e == null ? void 0 : e.comments)) return [];
505
+ let n = gu(t, r);
506
+ return n ? e.comments.filter(n) : e.comments;
507
+ }
508
+ var me = (e, { originalText: t }) => vt(t, P(e));
509
+ function yt(e) {
510
+ return w(e) || e.type === "NewExpression" || e.type === "ImportExpression";
511
+ }
512
+ function Te(e) {
513
+ return e && (e.type === "ObjectProperty" || e.type === "Property" && !bt(e));
514
+ }
515
+ var xe = R(["TSAsExpression", "TSSatisfiesExpression", "AsExpression", "AsConstExpression", "SatisfiesExpression"]);
516
+ var Oe = R(["TSUnionType", "UnionTypeAnnotation"]);
517
+ var qt = R(["TSIntersectionType", "IntersectionTypeAnnotation"]);
518
+ var Je = R(["TSConditionalType", "ConditionalTypeAnnotation"]);
519
+ var jo = /* @__PURE__ */ new Set(["range", "raw", "comments", "leadingComments", "trailingComments", "innerComments", "extra", "start", "end", "loc", "flags", "errors", "tokens"]);
520
+ var Wt = (e) => {
521
+ for (let t of e.quasis) delete t.value;
522
+ };
523
+ function Su(e, t) {
524
+ var n;
525
+ if (e.type === "Program" && delete t.sourceType, (e.type === "BigIntLiteral" || e.type === "BigIntLiteralTypeAnnotation") && e.value && (t.value = e.value.toLowerCase()), (e.type === "BigIntLiteral" || e.type === "Literal") && e.bigint && (t.bigint = e.bigint.toLowerCase()), e.type === "EmptyStatement" || e.type === "JSXText" || e.type === "JSXExpressionContainer" && (e.expression.type === "Literal" || e.expression.type === "StringLiteral") && e.expression.value === " ") return null;
526
+ if ((e.type === "Property" || e.type === "ObjectProperty" || e.type === "MethodDefinition" || e.type === "ClassProperty" || e.type === "ClassMethod" || e.type === "PropertyDefinition" || e.type === "TSDeclareMethod" || e.type === "TSPropertySignature" || e.type === "ObjectTypeProperty" || e.type === "ImportAttribute") && e.key && !e.computed) {
527
+ let { key: s } = e;
528
+ K(s) || ye(s) ? t.key = String(s.value) : s.type === "Identifier" && (t.key = s.name);
529
+ }
530
+ if (e.type === "JSXElement" && e.openingElement.name.name === "style" && e.openingElement.attributes.some((s) => s.type === "JSXAttribute" && s.name.name === "jsx")) for (let { type: s, expression: u } of t.children) s === "JSXExpressionContainer" && u.type === "TemplateLiteral" && Wt(u);
531
+ e.type === "JSXAttribute" && e.name.name === "css" && e.value.type === "JSXExpressionContainer" && e.value.expression.type === "TemplateLiteral" && Wt(t.value.expression), e.type === "JSXAttribute" && ((n = e.value) == null ? void 0 : n.type) === "Literal" && /["']|&quot;|&apos;/u.test(e.value.value) && (t.value.value = X(false, e.value.value, /["']|&quot;|&apos;/gu, '"'));
532
+ let r = e.expression || e.callee;
533
+ if (e.type === "Decorator" && r.type === "CallExpression" && r.callee.name === "Component" && r.arguments.length === 1) {
534
+ let s = e.expression.arguments[0].properties;
535
+ for (let [u, i] of t.expression.arguments[0].properties.entries()) switch (s[u].key.name) {
536
+ case "styles":
537
+ U(i.value) && Wt(i.value.elements[0]);
538
+ break;
539
+ case "template":
540
+ i.value.type === "TemplateLiteral" && Wt(i.value);
541
+ break;
542
+ }
543
+ }
544
+ e.type === "TaggedTemplateExpression" && (e.tag.type === "MemberExpression" || e.tag.type === "Identifier" && (e.tag.name === "gql" || e.tag.name === "graphql" || e.tag.name === "css" || e.tag.name === "md" || e.tag.name === "markdown" || e.tag.name === "html") || e.tag.type === "CallExpression") && Wt(t.quasi), e.type === "TemplateLiteral" && Wt(t), e.type === "ChainExpression" && e.expression.type === "TSNonNullExpression" && (t.type = "TSNonNullExpression", t.expression.type = "ChainExpression");
545
+ }
546
+ Su.ignoredProperties = jo;
547
+ var Bu = Su;
548
+ var Ne = "string";
549
+ var ge = "array";
550
+ var it = "cursor";
551
+ var $e = "indent";
552
+ var Ke = "align";
553
+ var Qe = "trim";
554
+ var fe = "group";
555
+ var _e = "fill";
556
+ var he = "if-break";
557
+ var ze = "indent-if-break";
558
+ var Ze = "line-suffix";
559
+ var Ge = "line-suffix-boundary";
560
+ var oe = "line";
561
+ var Se = "label";
562
+ var Me = "break-parent";
563
+ var jr = /* @__PURE__ */ new Set([it, $e, Ke, Qe, fe, _e, he, ze, Ze, Ge, oe, Se, Me]);
564
+ function Ro(e) {
565
+ if (typeof e == "string") return Ne;
566
+ if (Array.isArray(e)) return ge;
567
+ if (!e) return;
568
+ let { type: t } = e;
569
+ if (jr.has(t)) return t;
570
+ }
571
+ var Be = Ro;
572
+ var Jo = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
573
+ function No(e) {
574
+ let t = e === null ? "null" : typeof e;
575
+ if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
576
+ Expected it to be 'string' or 'object'.`;
577
+ if (Be(e)) throw new Error("doc is valid.");
578
+ let r = Object.prototype.toString.call(e);
579
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
580
+ let n = Jo([...jr].map((s) => `'${s}'`));
581
+ return `Unexpected doc.type '${e.type}'.
582
+ Expected it to be ${n}.`;
583
+ }
584
+ var qn = (_class = class extends Error {
585
+ __init() {this.name = "InvalidDocError"}
586
+ constructor(t) {
587
+ super(No(t));_class.prototype.__init.call(this);, this.doc = t;
588
+ }
589
+ }, _class);
590
+ var Tt = qn;
591
+ var bu = {};
592
+ function Go(e, t, r, n) {
593
+ let s = [e];
594
+ for (; s.length > 0; ) {
595
+ let u = s.pop();
596
+ if (u === bu) {
597
+ r(s.pop());
598
+ continue;
599
+ }
600
+ r && s.push(u, bu);
601
+ let i = Be(u);
602
+ if (!i) throw new Tt(u);
603
+ if ((t == null ? void 0 : t(u)) !== false) switch (i) {
604
+ case ge:
605
+ case _e: {
606
+ let a = i === ge ? u : u.parts;
607
+ for (let o = a.length, p = o - 1; p >= 0; --p) s.push(a[p]);
608
+ break;
609
+ }
610
+ case he:
611
+ s.push(u.flatContents, u.breakContents);
612
+ break;
613
+ case fe:
614
+ if (n && u.expandedStates) for (let a = u.expandedStates.length, o = a - 1; o >= 0; --o) s.push(u.expandedStates[o]);
615
+ else s.push(u.contents);
616
+ break;
617
+ case Ke:
618
+ case $e:
619
+ case ze:
620
+ case Se:
621
+ case Ze:
622
+ s.push(u.contents);
623
+ break;
624
+ case Ne:
625
+ case it:
626
+ case Qe:
627
+ case Ge:
628
+ case oe:
629
+ case Me:
630
+ break;
631
+ default:
632
+ throw new Tt(u);
633
+ }
634
+ }
635
+ }
636
+ var pr = Go;
637
+ function ft(e, t) {
638
+ if (typeof e == "string") return t(e);
639
+ let r = /* @__PURE__ */ new Map();
640
+ return n(e);
641
+ function n(u) {
642
+ if (r.has(u)) return r.get(u);
643
+ let i = s(u);
644
+ return r.set(u, i), i;
645
+ }
646
+ function s(u) {
647
+ switch (Be(u)) {
648
+ case ge:
649
+ return t(u.map(n));
650
+ case _e:
651
+ return t({ ...u, parts: u.parts.map(n) });
652
+ case he:
653
+ return t({ ...u, breakContents: n(u.breakContents), flatContents: n(u.flatContents) });
654
+ case fe: {
655
+ let { expandedStates: i, contents: a } = u;
656
+ return i ? (i = i.map(n), a = i[0]) : a = n(a), t({ ...u, contents: a, expandedStates: i });
657
+ }
658
+ case Ke:
659
+ case $e:
660
+ case ze:
661
+ case Se:
662
+ case Ze:
663
+ return t({ ...u, contents: n(u.contents) });
664
+ case Ne:
665
+ case it:
666
+ case Qe:
667
+ case Ge:
668
+ case oe:
669
+ case Me:
670
+ return t(u);
671
+ default:
672
+ throw new Tt(u);
673
+ }
674
+ }
675
+ }
676
+ function ku(e, t, r) {
677
+ let n = r, s = false;
678
+ function u(i) {
679
+ if (s) return false;
680
+ let a = t(i);
681
+ a !== void 0 && (s = true, n = a);
682
+ }
683
+ return pr(e, u), n;
684
+ }
685
+ function qo(e) {
686
+ if (e.type === fe && e.break || e.type === oe && e.hard || e.type === Me) return true;
687
+ }
688
+ function re(e) {
689
+ return ku(e, qo, false);
690
+ }
691
+ function Pu(e) {
692
+ if (e.length > 0) {
693
+ let t = v(false, e, -1);
694
+ !t.expandedStates && !t.break && (t.break = "propagated");
695
+ }
696
+ return null;
697
+ }
698
+ function Iu(e) {
699
+ let t = /* @__PURE__ */ new Set(), r = [];
700
+ function n(u) {
701
+ if (u.type === Me && Pu(r), u.type === fe) {
702
+ if (r.push(u), t.has(u)) return false;
703
+ t.add(u);
704
+ }
705
+ }
706
+ function s(u) {
707
+ u.type === fe && r.pop().break && Pu(r);
708
+ }
709
+ pr(e, n, s, true);
710
+ }
711
+ function Wo(e) {
712
+ return e.type === oe && !e.hard ? e.soft ? "" : " " : e.type === he ? e.flatContents : e;
713
+ }
714
+ function cr(e) {
715
+ return ft(e, Wo);
716
+ }
717
+ function Uo(e) {
718
+ switch (Be(e)) {
719
+ case _e:
720
+ if (e.parts.every((t) => t === "")) return "";
721
+ break;
722
+ case fe:
723
+ if (!e.contents && !e.id && !e.break && !e.expandedStates) return "";
724
+ if (e.contents.type === fe && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates) return e.contents;
725
+ break;
726
+ case Ke:
727
+ case $e:
728
+ case ze:
729
+ case Ze:
730
+ if (!e.contents) return "";
731
+ break;
732
+ case he:
733
+ if (!e.flatContents && !e.breakContents) return "";
734
+ break;
735
+ case ge: {
736
+ let t = [];
737
+ for (let r of e) {
738
+ if (!r) continue;
739
+ let [n, ...s] = Array.isArray(r) ? r : [r];
740
+ typeof n == "string" && typeof v(false, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...s);
741
+ }
742
+ return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
743
+ }
744
+ case Ne:
745
+ case it:
746
+ case Qe:
747
+ case Ge:
748
+ case oe:
749
+ case Se:
750
+ case Me:
751
+ break;
752
+ default:
753
+ throw new Tt(e);
754
+ }
755
+ return e;
756
+ }
757
+ function Ut(e) {
758
+ return ft(e, (t) => Uo(t));
759
+ }
760
+ function ve(e, t = Rr) {
761
+ return ft(e, (r) => typeof r == "string" ? b(t, r.split(`
762
+ `)) : r);
763
+ }
764
+ function Xo(e) {
765
+ if (e.type === oe) return true;
766
+ }
767
+ function Lu(e) {
768
+ return ku(e, Xo, false);
769
+ }
770
+ function lr(e, t) {
771
+ return e.type === Se ? { ...e, contents: t(e.contents) } : t(e);
772
+ }
773
+ function wu(e) {
774
+ let t = true;
775
+ return pr(e, (r) => {
776
+ switch (Be(r)) {
777
+ case Ne:
778
+ if (r === "") break;
779
+ case Qe:
780
+ case Ge:
781
+ case oe:
782
+ case Me:
783
+ return t = false, false;
784
+ }
785
+ }), t;
786
+ }
787
+ var Wn = () => {
788
+ };
789
+ var et = Wn;
790
+ var Un = Wn;
791
+ var Ou = Wn;
792
+ function D(e) {
793
+ return et(e), { type: $e, contents: e };
794
+ }
795
+ function be(e, t) {
796
+ return et(t), { type: Ke, contents: t, n: e };
797
+ }
798
+ function l(e, t = {}) {
799
+ return et(e), Un(t.expandedStates, true), { type: fe, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
800
+ }
801
+ function _u(e) {
802
+ return be(Number.NEGATIVE_INFINITY, e);
803
+ }
804
+ function Jr(e) {
805
+ return be(-1, e);
806
+ }
807
+ function tt(e, t) {
808
+ return l(e[0], { ...t, expandedStates: e });
809
+ }
810
+ function Nr(e) {
811
+ return Ou(e), { type: _e, parts: e };
812
+ }
813
+ function S(e, t = "", r = {}) {
814
+ return et(e), t !== "" && et(t), { type: he, breakContents: e, flatContents: t, groupId: r.groupId };
815
+ }
816
+ function xt(e, t) {
817
+ return et(e), { type: ze, contents: e, groupId: t.groupId, negate: t.negate };
818
+ }
819
+ function Xn(e) {
820
+ return et(e), { type: Ze, contents: e };
821
+ }
822
+ var je = { type: Ge };
823
+ var Ce = { type: Me };
824
+ var Yn = { type: oe, hard: true };
825
+ var Yo = { type: oe, hard: true, literal: true };
826
+ var x = { type: oe };
827
+ var E = { type: oe, soft: true };
828
+ var F = [Yn, Ce];
829
+ var Rr = [Yo, Ce];
830
+ var mr = { type: it };
831
+ function b(e, t) {
832
+ et(e), Un(t);
833
+ let r = [];
834
+ for (let n = 0; n < t.length; n++) n !== 0 && r.push(e), r.push(t[n]);
835
+ return r;
836
+ }
837
+ function Mu(e, t, r) {
838
+ et(e);
839
+ let n = e;
840
+ if (t > 0) {
841
+ for (let s = 0; s < Math.floor(t / r); ++s) n = D(n);
842
+ n = be(t % r, n), n = be(Number.NEGATIVE_INFINITY, n);
843
+ }
844
+ return n;
845
+ }
846
+ function at(e, t) {
847
+ return et(t), e ? { type: Se, label: e, contents: t } : t;
848
+ }
849
+ function Ho(e) {
850
+ if (!te(e)) return false;
851
+ let t = `*${e.value}*`.split(`
852
+ `);
853
+ return t.length > 1 && t.every((r) => r.trimStart()[0] === "*");
854
+ }
855
+ var Hn = /* @__PURE__ */ new WeakMap();
856
+ function Vo(e) {
857
+ return Hn.has(e) || Hn.set(e, Ho(e)), Hn.get(e);
858
+ }
859
+ var vu = Vo;
860
+ function ju(e, t) {
861
+ let r = e.node;
862
+ if (At(r)) return t.originalText.slice(j(r), P(r)).trimEnd();
863
+ if (vu(r)) return $o(r);
864
+ if (te(r)) return ["/*", ve(r.value), "*/"];
865
+ throw new Error("Not a comment: " + JSON.stringify(r));
866
+ }
867
+ function $o(e) {
868
+ let t = e.value.split(`
869
+ `);
870
+ return ["/*", b(F, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
871
+ }
872
+ var ts = {};
873
+ xr(ts, { endOfLine: () => rp, ownLine: () => tp, remaining: () => np });
874
+ function Ko(e) {
875
+ let t = e.type || e.kind || "(unknown type)", r = String(e.name || e.id && (typeof e.id == "object" ? e.id.name : e.id) || e.key && (typeof e.key == "object" ? e.key.name : e.key) || e.value && (typeof e.value == "object" ? "" : String(e.value)) || e.operator || "");
876
+ return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
877
+ }
878
+ function Vn(e, t) {
879
+ (_nullishCoalesce(e.comments, () => ( (e.comments = [])))).push(t), t.printed = false, t.nodeDescription = Ko(e);
880
+ }
881
+ function De(e, t) {
882
+ t.leading = true, t.trailing = false, Vn(e, t);
883
+ }
884
+ function Pe(e, t, r) {
885
+ t.leading = false, t.trailing = false, r && (t.marker = r), Vn(e, t);
886
+ }
887
+ function z(e, t) {
888
+ t.leading = false, t.trailing = true, Vn(e, t);
889
+ }
890
+ function Qo(e, t) {
891
+ let r = null, n = t;
892
+ for (; n !== r; ) r = n, n = Ye(e, n), n = _t(e, n), n = Mt(e, n), n = He(e, n);
893
+ return n;
894
+ }
895
+ var ot = Qo;
896
+ function zo(e, t) {
897
+ let r = ot(e, t);
898
+ return r === false ? "" : e.charAt(r);
899
+ }
900
+ var ke = zo;
901
+ function Zo(e, t, r) {
902
+ for (let n = t; n < r; ++n) if (e.charAt(n) === `
903
+ `) return true;
904
+ return false;
905
+ }
906
+ var ie = Zo;
907
+ var $n = /* @__PURE__ */ new WeakMap();
908
+ function ep(e) {
909
+ return $n.has(e) || $n.set(e, te(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), $n.get(e);
910
+ }
911
+ var Gr = ep;
912
+ var Ru = (e, t) => At(e) || !ie(t, j(e), P(e));
913
+ function tp(e) {
914
+ return [Yu, Nu, Wu, fp, up, Qn, zn, Ju, Gu, Cp, Ep, es, Xu, Ap, qu, Uu, Zn, ip, Bp, Hu].some((t) => t(e));
915
+ }
916
+ function rp(e) {
917
+ return [sp, Wu, Nu, Xu, Qn, zn, Ju, Gu, Uu, Dp, Fp, es, xp, Zn, gp, Sp, bp, Hu].some((t) => t(e));
918
+ }
919
+ function np(e) {
920
+ return [Yu, Qn, zn, ap, yp, qu, es, mp, lp, Zn, hp].some((t) => t(e));
921
+ }
922
+ function It(e, t) {
923
+ let r = (e.body || e.properties).find(({ type: n }) => n !== "EmptyStatement");
924
+ r ? De(r, t) : Pe(e, t);
925
+ }
926
+ function Kn(e, t) {
927
+ e.type === "BlockStatement" ? It(e, t) : De(e, t);
928
+ }
929
+ function sp({ comment: e, followingNode: t }) {
930
+ return t && Gr(e) ? (De(t, e), true) : false;
931
+ }
932
+ function Qn({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
933
+ if ((r == null ? void 0 : r.type) !== "IfStatement" || !n) return false;
934
+ if (ke(s, P(e)) === ")") return z(t, e), true;
935
+ if (t === r.consequent && n === r.alternate) {
936
+ let i = ot(s, P(r.consequent));
937
+ if (j(e) < i || r.alternate.type === "BlockStatement") return t.type === "BlockStatement" ? (z(t, e), true) : Ru(e, s) && !ie(s, j(t), j(e)) ? (z(t, e), true) : (Pe(r, e), true);
938
+ }
939
+ return n.type === "BlockStatement" ? (It(n, e), true) : n.type === "IfStatement" ? (Kn(n.consequent, e), true) : r.consequent === n ? (De(n, e), true) : false;
940
+ }
941
+ function zn({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
942
+ return (r == null ? void 0 : r.type) !== "WhileStatement" || !n ? false : ke(s, P(e)) === ")" ? (z(t, e), true) : n.type === "BlockStatement" ? (It(n, e), true) : r.body === n ? (De(n, e), true) : false;
943
+ }
944
+ function Ju({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
945
+ return (r == null ? void 0 : r.type) !== "TryStatement" && (r == null ? void 0 : r.type) !== "CatchClause" || !n ? false : r.type === "CatchClause" && t ? (z(t, e), true) : n.type === "BlockStatement" ? (It(n, e), true) : n.type === "TryStatement" ? (Kn(n.finalizer, e), true) : n.type === "CatchClause" ? (Kn(n.body, e), true) : false;
946
+ }
947
+ function up({ comment: e, enclosingNode: t, followingNode: r }) {
948
+ return G(t) && (r == null ? void 0 : r.type) === "Identifier" ? (De(t, e), true) : false;
949
+ }
950
+ function ip({ comment: e, enclosingNode: t, followingNode: r, options: n }) {
951
+ return !n.experimentalTernaries || !((t == null ? void 0 : t.type) === "ConditionalExpression" || Je(t)) ? false : (r == null ? void 0 : r.type) === "ConditionalExpression" || Je(r) ? (Pe(t, e), true) : false;
952
+ }
953
+ function Nu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s, options: u }) {
954
+ let i = t && !ie(s, P(t), j(e));
955
+ return (!t || !i) && ((r == null ? void 0 : r.type) === "ConditionalExpression" || Je(r)) && n ? u.experimentalTernaries && r.alternate === n && !(te(e) && !ie(u.originalText, j(e), P(e))) ? (Pe(r, e), true) : (De(n, e), true) : false;
956
+ }
957
+ function ap({ comment: e, precedingNode: t, enclosingNode: r }) {
958
+ return Te(r) && r.shorthand && r.key === t && r.value.type === "AssignmentPattern" ? (z(r.value.left, e), true) : false;
959
+ }
960
+ var op = /* @__PURE__ */ new Set(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
961
+ function Gu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
962
+ if (op.has(r == null ? void 0 : r.type)) {
963
+ if (O(r.decorators) && (n == null ? void 0 : n.type) !== "Decorator") return z(v(false, r.decorators, -1), e), true;
964
+ if (r.body && n === r.body) return It(r.body, e), true;
965
+ if (n) {
966
+ if (r.superClass && n === r.superClass && t && (t === r.id || t === r.typeParameters)) return z(t, e), true;
967
+ for (let s of ["implements", "extends", "mixins"]) if (r[s] && n === r[s][0]) return t && (t === r.id || t === r.typeParameters || t === r.superClass) ? z(t, e) : Pe(r, e, s), true;
968
+ }
969
+ }
970
+ return false;
971
+ }
972
+ var pp = /* @__PURE__ */ new Set(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "TSParameterProperty"]);
973
+ function qu({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
974
+ return r && t && ke(n, P(e)) === "(" && (r.type === "Property" || r.type === "TSDeclareMethod" || r.type === "TSAbstractMethodDefinition") && t.type === "Identifier" && r.key === t && ke(n, P(t)) !== ":" ? (z(t, e), true) : (t == null ? void 0 : t.type) === "Decorator" && pp.has(r == null ? void 0 : r.type) && (At(e) || e.placement === "ownLine") ? (z(t, e), true) : false;
975
+ }
976
+ var cp = /* @__PURE__ */ new Set(["FunctionDeclaration", "FunctionExpression", "ClassMethod", "MethodDefinition", "ObjectMethod"]);
977
+ function lp({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
978
+ return ke(n, P(e)) !== "(" ? false : t && cp.has(r == null ? void 0 : r.type) ? (z(t, e), true) : false;
979
+ }
980
+ function mp({ comment: e, enclosingNode: t, text: r }) {
981
+ if ((t == null ? void 0 : t.type) !== "ArrowFunctionExpression") return false;
982
+ let n = ot(r, P(e));
983
+ return n !== false && r.slice(n, n + 2) === "=>" ? (Pe(t, e), true) : false;
984
+ }
985
+ function yp({ comment: e, enclosingNode: t, text: r }) {
986
+ return ke(r, P(e)) !== ")" ? false : t && (Vu(t) && Q(t).length === 0 || yt(t) && le(t).length === 0) ? (Pe(t, e), true) : ((t == null ? void 0 : t.type) === "MethodDefinition" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && Q(t.value).length === 0 ? (Pe(t.value, e), true) : false;
987
+ }
988
+ function fp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
989
+ return (t == null ? void 0 : t.type) === "ComponentTypeParameter" && ((r == null ? void 0 : r.type) === "DeclareComponent" || (r == null ? void 0 : r.type) === "ComponentTypeAnnotation") && (n == null ? void 0 : n.type) !== "ComponentTypeParameter" ? (z(t, e), true) : ((t == null ? void 0 : t.type) === "ComponentParameter" || (t == null ? void 0 : t.type) === "RestElement") && (r == null ? void 0 : r.type) === "ComponentDeclaration" && ke(s, P(e)) === ")" ? (z(t, e), true) : false;
990
+ }
991
+ function Wu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
992
+ return (t == null ? void 0 : t.type) === "FunctionTypeParam" && (r == null ? void 0 : r.type) === "FunctionTypeAnnotation" && (n == null ? void 0 : n.type) !== "FunctionTypeParam" ? (z(t, e), true) : ((t == null ? void 0 : t.type) === "Identifier" || (t == null ? void 0 : t.type) === "AssignmentPattern" || (t == null ? void 0 : t.type) === "ObjectPattern" || (t == null ? void 0 : t.type) === "ArrayPattern" || (t == null ? void 0 : t.type) === "RestElement" || (t == null ? void 0 : t.type) === "TSParameterProperty") && Vu(r) && ke(s, P(e)) === ")" ? (z(t, e), true) : !te(e) && ((r == null ? void 0 : r.type) === "FunctionDeclaration" || (r == null ? void 0 : r.type) === "FunctionExpression" || (r == null ? void 0 : r.type) === "ObjectMethod") && (n == null ? void 0 : n.type) === "BlockStatement" && r.body === n && ot(s, P(e)) === j(n) ? (It(n, e), true) : false;
993
+ }
994
+ function Uu({ comment: e, enclosingNode: t }) {
995
+ return (t == null ? void 0 : t.type) === "LabeledStatement" ? (De(t, e), true) : false;
996
+ }
997
+ function Zn({ comment: e, enclosingNode: t }) {
998
+ return ((t == null ? void 0 : t.type) === "ContinueStatement" || (t == null ? void 0 : t.type) === "BreakStatement") && !t.label ? (z(t, e), true) : false;
999
+ }
1000
+ function Dp({ comment: e, precedingNode: t, enclosingNode: r }) {
1001
+ return w(r) && t && r.callee === t && r.arguments.length > 0 ? (De(r.arguments[0], e), true) : false;
1002
+ }
1003
+ function Ep({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
1004
+ return Oe(r) ? (or(e) && (n.prettierIgnore = true, e.unignore = true), t ? (z(t, e), true) : false) : (Oe(n) && or(e) && (n.types[0].prettierIgnore = true, e.unignore = true), false);
1005
+ }
1006
+ function Fp({ comment: e, enclosingNode: t }) {
1007
+ return Te(t) ? (De(t, e), true) : false;
1008
+ }
1009
+ function es({ comment: e, enclosingNode: t, ast: r, isLastComment: n }) {
1010
+ var s;
1011
+ return ((s = r == null ? void 0 : r.body) == null ? void 0 : s.length) === 0 ? (n ? Pe(r, e) : De(r, e), true) : (t == null ? void 0 : t.type) === "Program" && t.body.length === 0 && !O(t.directives) ? (n ? Pe(t, e) : De(t, e), true) : false;
1012
+ }
1013
+ function Cp({ comment: e, enclosingNode: t }) {
1014
+ return (t == null ? void 0 : t.type) === "ForInStatement" || (t == null ? void 0 : t.type) === "ForOfStatement" ? (De(t, e), true) : false;
1015
+ }
1016
+ function Xu({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
1017
+ if ((r == null ? void 0 : r.type) === "ImportSpecifier" || (r == null ? void 0 : r.type) === "ExportSpecifier") return De(r, e), true;
1018
+ let s = (t == null ? void 0 : t.type) === "ImportSpecifier" && (r == null ? void 0 : r.type) === "ImportDeclaration", u = (t == null ? void 0 : t.type) === "ExportSpecifier" && (r == null ? void 0 : r.type) === "ExportNamedDeclaration";
1019
+ return (s || u) && ee(n, P(e)) ? (z(t, e), true) : false;
1020
+ }
1021
+ function Ap({ comment: e, enclosingNode: t }) {
1022
+ return (t == null ? void 0 : t.type) === "AssignmentPattern" ? (De(t, e), true) : false;
1023
+ }
1024
+ var dp = /* @__PURE__ */ new Set(["VariableDeclarator", "AssignmentExpression", "TypeAlias", "TSTypeAliasDeclaration"]);
1025
+ var Tp = /* @__PURE__ */ new Set(["ObjectExpression", "ArrayExpression", "TemplateLiteral", "TaggedTemplateExpression", "ObjectTypeAnnotation", "TSTypeLiteral"]);
1026
+ function xp({ comment: e, enclosingNode: t, followingNode: r }) {
1027
+ return dp.has(t == null ? void 0 : t.type) && r && (Tp.has(r.type) || te(e)) ? (De(r, e), true) : false;
1028
+ }
1029
+ function hp({ comment: e, enclosingNode: t, followingNode: r, text: n }) {
1030
+ return !r && ((t == null ? void 0 : t.type) === "TSMethodSignature" || (t == null ? void 0 : t.type) === "TSDeclareFunction" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && ke(n, P(e)) === ";" ? (z(t, e), true) : false;
1031
+ }
1032
+ function Yu({ comment: e, enclosingNode: t, followingNode: r }) {
1033
+ if (or(e) && (t == null ? void 0 : t.type) === "TSMappedType" && r === t.key) return t.prettierIgnore = true, e.unignore = true, true;
1034
+ }
1035
+ function Hu({ comment: e, precedingNode: t, enclosingNode: r }) {
1036
+ if ((r == null ? void 0 : r.type) === "TSMappedType" && !t) return Pe(r, e), true;
1037
+ }
1038
+ function gp({ comment: e, enclosingNode: t, followingNode: r }) {
1039
+ return !t || t.type !== "SwitchCase" || t.test || !r || r !== t.consequent[0] ? false : (r.type === "BlockStatement" && At(e) ? It(r, e) : Pe(t, e), true);
1040
+ }
1041
+ function Sp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
1042
+ return Oe(t) && ((r.type === "TSArrayType" || r.type === "ArrayTypeAnnotation") && !n || qt(r)) ? (z(v(false, t.types, -1), e), true) : false;
1043
+ }
1044
+ function Bp({ comment: e, enclosingNode: t, precedingNode: r, followingNode: n }) {
1045
+ if (((t == null ? void 0 : t.type) === "ObjectPattern" || (t == null ? void 0 : t.type) === "ArrayPattern") && (n == null ? void 0 : n.type) === "TSTypeAnnotation") return r ? z(r, e) : Pe(t, e), true;
1046
+ }
1047
+ function bp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
1048
+ return !n && (r == null ? void 0 : r.type) === "UnaryExpression" && ((t == null ? void 0 : t.type) === "LogicalExpression" || (t == null ? void 0 : t.type) === "BinaryExpression") && ie(s, j(r.argument), j(t.right)) && Ru(e, s) && !ie(s, j(t.right), j(e)) ? (z(t.right, e), true) : false;
1049
+ }
1050
+ var Vu = R(["ArrowFunctionExpression", "FunctionExpression", "FunctionDeclaration", "ObjectMethod", "ClassMethod", "TSDeclareFunction", "TSCallSignatureDeclaration", "TSConstructSignatureDeclaration", "TSMethodSignature", "TSConstructorType", "TSFunctionType", "TSDeclareMethod"]);
1051
+ var Pp = /* @__PURE__ */ new Set(["EmptyStatement", "TemplateElement", "TSEmptyBodyFunctionExpression", "ChainExpression"]);
1052
+ function kp(e) {
1053
+ return !Pp.has(e.type);
1054
+ }
1055
+ function Ip(e, t) {
1056
+ var r;
1057
+ if ((t.parser === "typescript" || t.parser === "flow" || t.parser === "hermes" || t.parser === "acorn" || t.parser === "oxc" || t.parser === "oxc-ts" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree") && e.type === "MethodDefinition" && ((r = e.value) == null ? void 0 : r.type) === "FunctionExpression" && Q(e.value).length === 0 && !e.value.returnType && !O(e.value.typeParameters) && e.value.body) return [...e.decorators || [], e.key, e.value.body];
1058
+ }
1059
+ function rs(e) {
1060
+ let { node: t, parent: r } = e;
1061
+ return (Y(t) || r && (r.type === "JSXSpreadAttribute" || r.type === "JSXSpreadChild" || Oe(r) || (r.type === "ClassDeclaration" || r.type === "ClassExpression") && r.superClass === t)) && (!kt(t) || Oe(r));
1062
+ }
1063
+ function Lp(e, { parser: t }) {
1064
+ if (t === "flow" || t === "hermes" || t === "babel-flow") return e = X(false, e, /[\s(]/gu, ""), e === "" || e === "/*" || e === "/*::";
1065
+ }
1066
+ function $u(e) {
1067
+ switch (e) {
1068
+ case "cr":
1069
+ return "\r";
1070
+ case "crlf":
1071
+ return `\r
1072
+ `;
1073
+ default:
1074
+ return `
1075
+ `;
1076
+ }
1077
+ }
1078
+ var Ie = Symbol("MODE_BREAK");
1079
+ var pt = Symbol("MODE_FLAT");
1080
+ var Xt = Symbol("cursor");
1081
+ var ns = Symbol("DOC_FILL_PRINTED_LENGTH");
1082
+ function Ku() {
1083
+ return { value: "", length: 0, queue: [] };
1084
+ }
1085
+ function wp(e, t) {
1086
+ return ss(e, { type: "indent" }, t);
1087
+ }
1088
+ function Op(e, t, r) {
1089
+ return t === Number.NEGATIVE_INFINITY ? e.root || Ku() : t < 0 ? ss(e, { type: "dedent" }, r) : t ? t.type === "root" ? { ...e, root: e } : ss(e, { type: typeof t == "string" ? "stringAlign" : "numberAlign", n: t }, r) : e;
1090
+ }
1091
+ function ss(e, t, r) {
1092
+ let n = t.type === "dedent" ? e.queue.slice(0, -1) : [...e.queue, t], s = "", u = 0, i = 0, a = 0;
1093
+ for (let c of n) switch (c.type) {
1094
+ case "indent":
1095
+ m(), r.useTabs ? o(1) : p(r.tabWidth);
1096
+ break;
1097
+ case "stringAlign":
1098
+ m(), s += c.n, u += c.n.length;
1099
+ break;
1100
+ case "numberAlign":
1101
+ i += 1, a += c.n;
1102
+ break;
1103
+ default:
1104
+ throw new Error(`Unexpected type '${c.type}'`);
1105
+ }
1106
+ return y(), { ...e, value: s, length: u, queue: n };
1107
+ function o(c) {
1108
+ s += " ".repeat(c), u += r.tabWidth * c;
1109
+ }
1110
+ function p(c) {
1111
+ s += " ".repeat(c), u += c;
1112
+ }
1113
+ function m() {
1114
+ r.useTabs ? f() : y();
1115
+ }
1116
+ function f() {
1117
+ i > 0 && o(i), C();
1118
+ }
1119
+ function y() {
1120
+ a > 0 && p(a), C();
1121
+ }
1122
+ function C() {
1123
+ i = 0, a = 0;
1124
+ }
1125
+ }
1126
+ function us(e) {
1127
+ let t = 0, r = 0, n = e.length;
1128
+ e: for (; n--; ) {
1129
+ let s = e[n];
1130
+ if (s === Xt) {
1131
+ r++;
1132
+ continue;
1133
+ }
1134
+ for (let u = s.length - 1; u >= 0; u--) {
1135
+ let i = s[u];
1136
+ if (i === " " || i === " ") t++;
1137
+ else {
1138
+ e[n] = s.slice(0, u + 1);
1139
+ break e;
1140
+ }
1141
+ }
1142
+ }
1143
+ if (t > 0 || r > 0) for (e.length = n + 1; r-- > 0; ) e.push(Xt);
1144
+ return t;
1145
+ }
1146
+ function qr(e, t, r, n, s, u) {
1147
+ if (r === Number.POSITIVE_INFINITY) return true;
1148
+ let i = t.length, a = [e], o = [];
1149
+ for (; r >= 0; ) {
1150
+ if (a.length === 0) {
1151
+ if (i === 0) return true;
1152
+ a.push(t[--i]);
1153
+ continue;
1154
+ }
1155
+ let { mode: p, doc: m } = a.pop(), f = Be(m);
1156
+ switch (f) {
1157
+ case Ne:
1158
+ o.push(m), r -= st(m);
1159
+ break;
1160
+ case ge:
1161
+ case _e: {
1162
+ let y = f === ge ? m : m.parts, C = _nullishCoalesce(m[ns], () => ( 0));
1163
+ for (let c = y.length - 1; c >= C; c--) a.push({ mode: p, doc: y[c] });
1164
+ break;
1165
+ }
1166
+ case $e:
1167
+ case Ke:
1168
+ case ze:
1169
+ case Se:
1170
+ a.push({ mode: p, doc: m.contents });
1171
+ break;
1172
+ case Qe:
1173
+ r += us(o);
1174
+ break;
1175
+ case fe: {
1176
+ if (u && m.break) return false;
1177
+ let y = m.break ? Ie : p, C = m.expandedStates && y === Ie ? v(false, m.expandedStates, -1) : m.contents;
1178
+ a.push({ mode: y, doc: C });
1179
+ break;
1180
+ }
1181
+ case he: {
1182
+ let C = (m.groupId ? s[m.groupId] || pt : p) === Ie ? m.breakContents : m.flatContents;
1183
+ C && a.push({ mode: p, doc: C });
1184
+ break;
1185
+ }
1186
+ case oe:
1187
+ if (p === Ie || m.hard) return true;
1188
+ m.soft || (o.push(" "), r--);
1189
+ break;
1190
+ case Ze:
1191
+ n = true;
1192
+ break;
1193
+ case Ge:
1194
+ if (n) return false;
1195
+ break;
1196
+ }
1197
+ }
1198
+ return false;
1199
+ }
1200
+ function is(e, t) {
1201
+ let r = {}, n = t.printWidth, s = $u(t.endOfLine), u = 0, i = [{ ind: Ku(), mode: Ie, doc: e }], a = [], o = false, p = [], m = 0;
1202
+ for (Iu(e); i.length > 0; ) {
1203
+ let { ind: y, mode: C, doc: c } = i.pop();
1204
+ switch (Be(c)) {
1205
+ case Ne: {
1206
+ let A = s !== `
1207
+ ` ? X(false, c, `
1208
+ `, s) : c;
1209
+ a.push(A), i.length > 0 && (u += st(A));
1210
+ break;
1211
+ }
1212
+ case ge:
1213
+ for (let A = c.length - 1; A >= 0; A--) i.push({ ind: y, mode: C, doc: c[A] });
1214
+ break;
1215
+ case it:
1216
+ if (m >= 2) throw new Error("There are too many 'cursor' in doc.");
1217
+ a.push(Xt), m++;
1218
+ break;
1219
+ case $e:
1220
+ i.push({ ind: wp(y, t), mode: C, doc: c.contents });
1221
+ break;
1222
+ case Ke:
1223
+ i.push({ ind: Op(y, c.n, t), mode: C, doc: c.contents });
1224
+ break;
1225
+ case Qe:
1226
+ u -= us(a);
1227
+ break;
1228
+ case fe:
1229
+ switch (C) {
1230
+ case pt:
1231
+ if (!o) {
1232
+ i.push({ ind: y, mode: c.break ? Ie : pt, doc: c.contents });
1233
+ break;
1234
+ }
1235
+ case Ie: {
1236
+ o = false;
1237
+ let A = { ind: y, mode: pt, doc: c.contents }, T = n - u, B = p.length > 0;
1238
+ if (!c.break && qr(A, i, T, B, r)) i.push(A);
1239
+ else if (c.expandedStates) {
1240
+ let g = v(false, c.expandedStates, -1);
1241
+ if (c.break) {
1242
+ i.push({ ind: y, mode: Ie, doc: g });
1243
+ break;
1244
+ } else for (let _ = 1; _ < c.expandedStates.length + 1; _++) if (_ >= c.expandedStates.length) {
1245
+ i.push({ ind: y, mode: Ie, doc: g });
1246
+ break;
1247
+ } else {
1248
+ let M = c.expandedStates[_], J = { ind: y, mode: pt, doc: M };
1249
+ if (qr(J, i, T, B, r)) {
1250
+ i.push(J);
1251
+ break;
1252
+ }
1253
+ }
1254
+ } else i.push({ ind: y, mode: Ie, doc: c.contents });
1255
+ break;
1256
+ }
1257
+ }
1258
+ c.id && (r[c.id] = v(false, i, -1).mode);
1259
+ break;
1260
+ case _e: {
1261
+ let A = n - u, T = _nullishCoalesce(c[ns], () => ( 0)), { parts: B } = c, g = B.length - T;
1262
+ if (g === 0) break;
1263
+ let _ = B[T + 0], M = B[T + 1], J = { ind: y, mode: pt, doc: _ }, I = { ind: y, mode: Ie, doc: _ }, q = qr(J, [], A, p.length > 0, r, true);
1264
+ if (g === 1) {
1265
+ q ? i.push(J) : i.push(I);
1266
+ break;
1267
+ }
1268
+ let k = { ind: y, mode: pt, doc: M }, W = { ind: y, mode: Ie, doc: M };
1269
+ if (g === 2) {
1270
+ q ? i.push(k, J) : i.push(W, I);
1271
+ break;
1272
+ }
1273
+ let ne = B[T + 2], Z = { ind: y, mode: C, doc: { ...c, [ns]: T + 2 } };
1274
+ qr({ ind: y, mode: pt, doc: [_, M, ne] }, [], A, p.length > 0, r, true) ? i.push(Z, k, J) : q ? i.push(Z, W, J) : i.push(Z, W, I);
1275
+ break;
1276
+ }
1277
+ case he:
1278
+ case ze: {
1279
+ let A = c.groupId ? r[c.groupId] : C;
1280
+ if (A === Ie) {
1281
+ let T = c.type === he ? c.breakContents : c.negate ? c.contents : D(c.contents);
1282
+ T && i.push({ ind: y, mode: C, doc: T });
1283
+ }
1284
+ if (A === pt) {
1285
+ let T = c.type === he ? c.flatContents : c.negate ? D(c.contents) : c.contents;
1286
+ T && i.push({ ind: y, mode: C, doc: T });
1287
+ }
1288
+ break;
1289
+ }
1290
+ case Ze:
1291
+ p.push({ ind: y, mode: C, doc: c.contents });
1292
+ break;
1293
+ case Ge:
1294
+ p.length > 0 && i.push({ ind: y, mode: C, doc: Yn });
1295
+ break;
1296
+ case oe:
1297
+ switch (C) {
1298
+ case pt:
1299
+ if (c.hard) o = true;
1300
+ else {
1301
+ c.soft || (a.push(" "), u += 1);
1302
+ break;
1303
+ }
1304
+ case Ie:
1305
+ if (p.length > 0) {
1306
+ i.push({ ind: y, mode: C, doc: c }, ...p.reverse()), p.length = 0;
1307
+ break;
1308
+ }
1309
+ c.literal ? y.root ? (a.push(s, y.root.value), u = y.root.length) : (a.push(s), u = 0) : (u -= us(a), a.push(s + y.value), u = y.length);
1310
+ break;
1311
+ }
1312
+ break;
1313
+ case Se:
1314
+ i.push({ ind: y, mode: C, doc: c.contents });
1315
+ break;
1316
+ case Me:
1317
+ break;
1318
+ default:
1319
+ throw new Tt(c);
1320
+ }
1321
+ i.length === 0 && p.length > 0 && (i.push(...p.reverse()), p.length = 0);
1322
+ }
1323
+ let f = a.indexOf(Xt);
1324
+ if (f !== -1) {
1325
+ let y = a.indexOf(Xt, f + 1);
1326
+ if (y === -1) return { formatted: a.filter((T) => T !== Xt).join("") };
1327
+ let C = a.slice(0, f).join(""), c = a.slice(f + 1, y).join(""), A = a.slice(y + 1).join("");
1328
+ return { formatted: C + c + A, cursorNodeStart: C.length, cursorNodeText: c };
1329
+ }
1330
+ return { formatted: a.join("") };
1331
+ }
1332
+ function _p(e, t, r = 0) {
1333
+ let n = 0;
1334
+ for (let s = r; s < e.length; ++s) e[s] === " " ? n = n + t - n % t : n++;
1335
+ return n;
1336
+ }
1337
+ var Qu = _p;
1338
+ function Mp(e, t) {
1339
+ let r = e.lastIndexOf(`
1340
+ `);
1341
+ return r === -1 ? 0 : Qu(e.slice(r + 1).match(/^[\t ]*/u)[0], t);
1342
+ }
1343
+ var zu = Mp;
1344
+ function Wr(e, t, r) {
1345
+ let { node: n } = e;
1346
+ if (n.type === "TemplateLiteral" && Rp(e)) {
1347
+ let p = vp(e, t, r);
1348
+ if (p) return p;
1349
+ }
1350
+ let u = "expressions";
1351
+ n.type === "TSTemplateLiteralType" && (u = "types");
1352
+ let i = [], a = e.map(r, u);
1353
+ i.push(je, "`");
1354
+ let o = 0;
1355
+ return e.each(({ index: p, node: m }) => {
1356
+ if (i.push(r()), m.tail) return;
1357
+ let { tabWidth: f } = t, y = m.value.raw, C = y.includes(`
1358
+ `) ? zu(y, f) : o;
1359
+ o = C;
1360
+ let c = a[p], A = n[u][p], T = ie(t.originalText, P(m), j(n.quasis[p + 1]));
1361
+ if (!T) {
1362
+ let g = is(c, { ...t, printWidth: Number.POSITIVE_INFINITY }).formatted;
1363
+ g.includes(`
1364
+ `) ? T = true : c = g;
1365
+ }
1366
+ T && (d(A) || A.type === "Identifier" || G(A) || A.type === "ConditionalExpression" || A.type === "SequenceExpression" || xe(A) || Fe(A)) && (c = [D([E, c]), E]);
1367
+ let B = C === 0 && y.endsWith(`
1368
+ `) ? be(Number.NEGATIVE_INFINITY, c) : Mu(c, C, f);
1369
+ i.push(l(["${", B, je, "}"]));
1370
+ }, "quasis"), i.push("`"), i;
1371
+ }
1372
+ function Zu(e, t, r) {
1373
+ let n = r("quasi"), { node: s } = e, u = "", i = Ve(s.quasi, h.Leading)[0];
1374
+ return i && (ie(t.originalText, P(_nullishCoalesce(_nullishCoalesce(s.typeArguments, () => ( s.typeParameters)), () => ( s.tag))), j(i)) ? u = E : u = " "), at(n.label && { tagged: true, ...n.label }, [r("tag"), r(s.typeArguments ? "typeArguments" : "typeParameters"), u, je, n]);
1375
+ }
1376
+ function vp(e, t, r) {
1377
+ let { node: n } = e, s = n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);
1378
+ if (s.length > 1 || s.some((u) => u.length > 0)) {
1379
+ t.__inJestEach = true;
1380
+ let u = e.map(r, "expressions");
1381
+ t.__inJestEach = false;
1382
+ let i = [], a = u.map((y) => "${" + is(y, { ...t, printWidth: Number.POSITIVE_INFINITY, endOfLine: "lf" }).formatted + "}"), o = [{ hasLineBreak: false, cells: [] }];
1383
+ for (let y = 1; y < n.quasis.length; y++) {
1384
+ let C = v(false, o, -1), c = a[y - 1];
1385
+ C.cells.push(c), c.includes(`
1386
+ `) && (C.hasLineBreak = true), n.quasis[y].value.raw.includes(`
1387
+ `) && o.push({ hasLineBreak: false, cells: [] });
1388
+ }
1389
+ let p = Math.max(s.length, ...o.map((y) => y.cells.length)), m = Array.from({ length: p }).fill(0), f = [{ cells: s }, ...o.filter((y) => y.cells.length > 0)];
1390
+ for (let { cells: y } of f.filter((C) => !C.hasLineBreak)) for (let [C, c] of y.entries()) m[C] = Math.max(m[C], st(c));
1391
+ return i.push(je, "`", D([F, b(F, f.map((y) => b(" | ", y.cells.map((C, c) => y.hasLineBreak ? C : C + " ".repeat(m[c] - st(C))))))]), F, "`"), i;
1392
+ }
1393
+ }
1394
+ function jp(e, t) {
1395
+ let { node: r } = e, n = t();
1396
+ return d(r) && (n = l([D([E, n]), E])), ["${", n, je, "}"];
1397
+ }
1398
+ function Yt(e, t) {
1399
+ return e.map((r) => jp(r, t), "expressions");
1400
+ }
1401
+ function Ur(e, t) {
1402
+ return ft(e, (r) => typeof r == "string" ? t ? X(false, r, /(\\*)`/gu, "$1$1\\`") : as(r) : r);
1403
+ }
1404
+ function as(e) {
1405
+ return X(false, e, /([\\`]|\$\{)/gu, String.raw`\$1`);
1406
+ }
1407
+ function Rp({ node: e, parent: t }) {
1408
+ let r = /^[fx]?(?:describe|it|test)$/u;
1409
+ return t.type === "TaggedTemplateExpression" && t.quasi === e && t.tag.type === "MemberExpression" && t.tag.property.type === "Identifier" && t.tag.property.name === "each" && (t.tag.object.type === "Identifier" && r.test(t.tag.object.name) || t.tag.object.type === "MemberExpression" && t.tag.object.property.type === "Identifier" && (t.tag.object.property.name === "only" || t.tag.object.property.name === "skip") && t.tag.object.object.type === "Identifier" && r.test(t.tag.object.object.name));
1410
+ }
1411
+ var ps = [(e, t) => e.type === "ObjectExpression" && t === "properties", (e, t) => e.type === "CallExpression" && e.callee.type === "Identifier" && e.callee.name === "Component" && t === "arguments", (e, t) => e.type === "Decorator" && t === "expression"];
1412
+ function ei(e) {
1413
+ let t = (n) => n.type === "TemplateLiteral", r = (n, s) => Te(n) && !n.computed && n.key.type === "Identifier" && n.key.name === "styles" && s === "value";
1414
+ return e.match(t, (n, s) => U(n) && s === "elements", r, ...ps) || e.match(t, r, ...ps);
1415
+ }
1416
+ function ti(e) {
1417
+ return e.match((t) => t.type === "TemplateLiteral", (t, r) => Te(t) && !t.computed && t.key.type === "Identifier" && t.key.name === "template" && r === "value", ...ps);
1418
+ }
1419
+ function os(e, t) {
1420
+ return d(e, h.Block | h.Leading, ({ value: r }) => r === ` ${t} `);
1421
+ }
1422
+ function Xr({ node: e, parent: t }, r) {
1423
+ return os(e, r) || Jp(t) && os(t, r) || t.type === "ExpressionStatement" && os(t, r);
1424
+ }
1425
+ function Jp(e) {
1426
+ return e.type === "AsConstExpression" || e.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const";
1427
+ }
1428
+ async function Np(e, t, r) {
1429
+ let { node: n } = r, s = n.quasis.map((m) => m.value.raw), u = 0, i = s.reduce((m, f, y) => y === 0 ? f : m + "@prettier-placeholder-" + u++ + "-id" + f, ""), a = await e(i, { parser: "scss" }), o = Yt(r, t), p = Gp(a, o);
1430
+ if (!p) throw new Error("Couldn't insert all the expressions");
1431
+ return ["`", D([F, p]), E, "`"];
1432
+ }
1433
+ function Gp(e, t) {
1434
+ if (!O(t)) return e;
1435
+ let r = 0, n = ft(Ut(e), (s) => typeof s != "string" || !s.includes("@prettier-placeholder") ? s : s.split(/@prettier-placeholder-(\d+)-id/u).map((u, i) => i % 2 === 0 ? ve(u) : (r++, t[u])));
1436
+ return t.length === r ? n : null;
1437
+ }
1438
+ function qp({ node: e, parent: t, grandparent: r }) {
1439
+ return r && e.quasis && t.type === "JSXExpressionContainer" && r.type === "JSXElement" && r.openingElement.name.name === "style" && r.openingElement.attributes.some((n) => n.type === "JSXAttribute" && n.name.name === "jsx") || (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "css" || (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && t.tag.type === "MemberExpression" && t.tag.object.name === "css" && (t.tag.property.name === "global" || t.tag.property.name === "resolve");
1440
+ }
1441
+ function Yr(e) {
1442
+ return e.type === "Identifier" && e.name === "styled";
1443
+ }
1444
+ function ri(e) {
1445
+ return /^[A-Z]/u.test(e.object.name) && e.property.name === "extend";
1446
+ }
1447
+ function Wp({ parent: e }) {
1448
+ if (!e || e.type !== "TaggedTemplateExpression") return false;
1449
+ let t = e.tag.type === "ParenthesizedExpression" ? e.tag.expression : e.tag;
1450
+ switch (t.type) {
1451
+ case "MemberExpression":
1452
+ return Yr(t.object) || ri(t);
1453
+ case "CallExpression":
1454
+ return Yr(t.callee) || t.callee.type === "MemberExpression" && (t.callee.object.type === "MemberExpression" && (Yr(t.callee.object.object) || ri(t.callee.object)) || t.callee.object.type === "CallExpression" && Yr(t.callee.object.callee));
1455
+ case "Identifier":
1456
+ return t.name === "css";
1457
+ default:
1458
+ return false;
1459
+ }
1460
+ }
1461
+ function Up({ parent: e, grandparent: t }) {
1462
+ return (t == null ? void 0 : t.type) === "JSXAttribute" && e.type === "JSXExpressionContainer" && t.name.type === "JSXIdentifier" && t.name.name === "css";
1463
+ }
1464
+ function Xp(e) {
1465
+ if (qp(e) || Wp(e) || Up(e) || ei(e)) return Np;
1466
+ }
1467
+ var ni = Xp;
1468
+ async function Yp(e, t, r) {
1469
+ let { node: n } = r, s = n.quasis.length, u = Yt(r, t), i = [];
1470
+ for (let a = 0; a < s; a++) {
1471
+ let o = n.quasis[a], p = a === 0, m = a === s - 1, f = o.value.cooked, y = f.split(`
1472
+ `), C = y.length, c = u[a], A = C > 2 && y[0].trim() === "" && y[1].trim() === "", T = C > 2 && y[C - 1].trim() === "" && y[C - 2].trim() === "", B = y.every((_) => /^\s*(?:#[^\n\r]*)?$/u.test(_));
1473
+ if (!m && /#[^\n\r]*$/u.test(y[C - 1])) return null;
1474
+ let g = null;
1475
+ B ? g = Hp(y) : g = await e(f, { parser: "graphql" }), g ? (g = Ur(g, false), !p && A && i.push(""), i.push(g), !m && T && i.push("")) : !p && !m && A && i.push(""), c && i.push(c);
1476
+ }
1477
+ return ["`", D([F, b(F, i)]), F, "`"];
1478
+ }
1479
+ function Hp(e) {
1480
+ let t = [], r = false, n = e.map((s) => s.trim());
1481
+ for (let [s, u] of n.entries()) u !== "" && (n[s - 1] === "" && r ? t.push([F, u]) : t.push(u), r = true);
1482
+ return t.length === 0 ? null : b(F, t);
1483
+ }
1484
+ function Vp({ node: e, parent: t }) {
1485
+ return Xr({ node: e, parent: t }, "GraphQL") || t && (t.type === "TaggedTemplateExpression" && (t.tag.type === "MemberExpression" && t.tag.object.name === "graphql" && t.tag.property.name === "experimental" || t.tag.type === "Identifier" && (t.tag.name === "gql" || t.tag.name === "graphql")) || t.type === "CallExpression" && t.callee.type === "Identifier" && t.callee.name === "graphql");
1486
+ }
1487
+ function $p(e) {
1488
+ if (Vp(e)) return Yp;
1489
+ }
1490
+ var si = $p;
1491
+ var cs = 0;
1492
+ async function ui(e, t, r, n, s) {
1493
+ let { node: u } = n, i = cs;
1494
+ cs = cs + 1 >>> 0;
1495
+ let a = (B) => `PRETTIER_HTML_PLACEHOLDER_${B}_${i}_IN_JS`, o = u.quasis.map((B, g, _) => g === _.length - 1 ? B.value.cooked : B.value.cooked + a(g)).join(""), p = Yt(n, r), m = new RegExp(a(String.raw`(\d+)`), "gu"), f = 0, y = await t(o, { parser: e, __onHtmlRoot(B) {
1496
+ f = B.children.length;
1497
+ } }), C = ft(y, (B) => {
1498
+ if (typeof B != "string") return B;
1499
+ let g = [], _ = B.split(m);
1500
+ for (let M = 0; M < _.length; M++) {
1501
+ let J = _[M];
1502
+ if (M % 2 === 0) {
1503
+ J && (J = as(J), s.__embeddedInHtml && (J = X(false, J, /<\/(?=script\b)/giu, String.raw`<\/`)), g.push(J));
1504
+ continue;
1505
+ }
1506
+ let I = Number(J);
1507
+ g.push(p[I]);
1508
+ }
1509
+ return g;
1510
+ }), c = /^\s/u.test(o) ? " " : "", A = /\s$/u.test(o) ? " " : "", T = s.htmlWhitespaceSensitivity === "ignore" ? F : c && A ? x : null;
1511
+ return T ? l(["`", D([T, l(C)]), T, "`"]) : at({ hug: false }, l(["`", c, f > 1 ? D(l(C)) : l(C), A, "`"]));
1512
+ }
1513
+ function Kp(e) {
1514
+ return Xr(e, "HTML") || e.match((t) => t.type === "TemplateLiteral", (t, r) => t.type === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "html" && r === "quasi");
1515
+ }
1516
+ var Qp = ui.bind(void 0, "html");
1517
+ var zp = ui.bind(void 0, "angular");
1518
+ function Zp(e) {
1519
+ if (Kp(e)) return Qp;
1520
+ if (ti(e)) return zp;
1521
+ }
1522
+ var ii = Zp;
1523
+ async function ec(e, t, r) {
1524
+ let { node: n } = r, s = X(false, n.quasis[0].value.raw, /((?:\\\\)*)\\`/gu, (o, p) => "\\".repeat(p.length / 2) + "`"), u = tc(s), i = u !== "";
1525
+ i && (s = X(false, s, new RegExp(`^${u}`, "gmu"), ""));
1526
+ let a = Ur(await e(s, { parser: "markdown", __inJsTemplate: true }), true);
1527
+ return ["`", i ? D([E, a]) : [Rr, _u(a)], E, "`"];
1528
+ }
1529
+ function tc(e) {
1530
+ let t = e.match(/^([^\S\n]*)\S/mu);
1531
+ return t === null ? "" : t[1];
1532
+ }
1533
+ function rc(e) {
1534
+ if (nc(e)) return ec;
1535
+ }
1536
+ function nc({ node: e, parent: t }) {
1537
+ return (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && e.quasis.length === 1 && t.tag.type === "Identifier" && (t.tag.name === "md" || t.tag.name === "markdown");
1538
+ }
1539
+ var ai = rc;
1540
+ function sc(e) {
1541
+ let { node: t } = e;
1542
+ if (t.type !== "TemplateLiteral" || uc(t)) return;
1543
+ let r;
1544
+ for (let n of [ni, si, ii, ai]) if (r = n(e), !!r) return t.quasis.length === 1 && t.quasis[0].value.raw.trim() === "" ? "``" : async (...s) => {
1545
+ let u = await r(...s);
1546
+ return u && at({ embed: true, ...u.label }, u);
1547
+ };
1548
+ }
1549
+ function uc({ quasis: e }) {
1550
+ return e.some(({ value: { cooked: t } }) => t === null);
1551
+ }
1552
+ var oi = sc;
1553
+ var ic = /\*\/$/;
1554
+ var ac = /^\/\*\*?/;
1555
+ var mi = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
1556
+ var oc = /(^|\s+)\/\/([^\n\r]*)/g;
1557
+ var pi = /^(\r?\n)+/;
1558
+ var pc = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
1559
+ var ci = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
1560
+ var cc = /(\r?\n|^) *\* ?/g;
1561
+ var yi = [];
1562
+ function fi(e) {
1563
+ let t = e.match(mi);
1564
+ return t ? t[0].trimStart() : "";
1565
+ }
1566
+ function Di(e) {
1567
+ let t = e.match(mi), r = t == null ? void 0 : t[0];
1568
+ return r == null ? e : e.slice(r.length);
1569
+ }
1570
+ function Ei(e) {
1571
+ let t = `
1572
+ `;
1573
+ e = X(false, e.replace(ac, "").replace(ic, ""), cc, "$1");
1574
+ let r = "";
1575
+ for (; r !== e; ) r = e, e = X(false, e, pc, `${t}$1 $2${t}`);
1576
+ e = e.replace(pi, "").trimEnd();
1577
+ let n = /* @__PURE__ */ Object.create(null), s = X(false, e, ci, "").replace(pi, "").trimEnd(), u;
1578
+ for (; u = ci.exec(e); ) {
1579
+ let i = X(false, u[2], oc, "");
1580
+ if (typeof n[u[1]] == "string" || Array.isArray(n[u[1]])) {
1581
+ let a = n[u[1]];
1582
+ n[u[1]] = [...yi, ...Array.isArray(a) ? a : [a], i];
1583
+ } else n[u[1]] = i;
1584
+ }
1585
+ return { comments: s, pragmas: n };
1586
+ }
1587
+ function Fi({ comments: e = "", pragmas: t = {} }) {
1588
+ let r = `
1589
+ `, n = "/**", s = " *", u = " */", i = Object.keys(t), a = i.flatMap((p) => li(p, t[p])).map((p) => `${s} ${p}${r}`).join("");
1590
+ if (!e) {
1591
+ if (i.length === 0) return "";
1592
+ if (i.length === 1 && !Array.isArray(t[i[0]])) {
1593
+ let p = t[i[0]];
1594
+ return `${n} ${li(i[0], p)[0]}${u}`;
1595
+ }
1596
+ }
1597
+ let o = e.split(r).map((p) => `${s} ${p}`).join(r) + r;
1598
+ return n + r + (e ? o : "") + (e && i.length > 0 ? s + r : "") + a + u;
1599
+ }
1600
+ function li(e, t) {
1601
+ return [...yi, ...Array.isArray(t) ? t : [t]].map((r) => `@${e} ${r}`.trim());
1602
+ }
1603
+ var Ci = "format";
1604
+ function lc(e) {
1605
+ if (!e.startsWith("#!")) return "";
1606
+ let t = e.indexOf(`
1607
+ `);
1608
+ return t === -1 ? e : e.slice(0, t);
1609
+ }
1610
+ var Ai = lc;
1611
+ function mc(e) {
1612
+ let t = Ai(e);
1613
+ t && (e = e.slice(t.length + 1));
1614
+ let r = fi(e), { pragmas: n, comments: s } = Ei(r);
1615
+ return { shebang: t, text: e, pragmas: n, comments: s };
1616
+ }
1617
+ function di(e) {
1618
+ let { shebang: t, text: r, pragmas: n, comments: s } = mc(e), u = Di(r), i = Fi({ pragmas: { [Ci]: "", ...n }, comments: s.trimStart() });
1619
+ return (t ? `${t}
1620
+ ` : "") + i + (u.startsWith(`
1621
+ `) ? `
1622
+ ` : `
1623
+
1624
+ `) + u;
1625
+ }
1626
+ function yc(e, t) {
1627
+ let { originalText: r, [Symbol.for("comments")]: n, locStart: s, locEnd: u, [Symbol.for("printedComments")]: i } = t, { node: a } = e, o = s(a), p = u(a);
1628
+ for (let m of n) s(m) >= o && u(m) <= p && i.add(m);
1629
+ return r.slice(o, p);
1630
+ }
1631
+ var Ti = yc;
1632
+ function ls(e, t) {
1633
+ var u, i, a, o, p, m, f, y, C;
1634
+ if (e.isRoot) return false;
1635
+ let { node: r, key: n, parent: s } = e;
1636
+ if (t.__isInHtmlInterpolation && !t.bracketSpacing && Fc(r) && yr(e)) return true;
1637
+ if (fc(r)) return false;
1638
+ if (r.type === "Identifier") {
1639
+ if ((u = r.extra) != null && u.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name) || n === "left" && (r.name === "async" && !s.await || r.name === "let") && s.type === "ForOfStatement") return true;
1640
+ if (r.name === "let") {
1641
+ let c = (i = e.findAncestor((A) => A.type === "ForOfStatement")) == null ? void 0 : i.left;
1642
+ if (c && pe(c, (A) => A === r)) return true;
1643
+ }
1644
+ if (n === "object" && r.name === "let" && s.type === "MemberExpression" && s.computed && !s.optional) {
1645
+ let c = e.findAncestor((T) => T.type === "ExpressionStatement" || T.type === "ForStatement" || T.type === "ForInStatement"), A = c ? c.type === "ExpressionStatement" ? c.expression : c.type === "ForStatement" ? c.init : c.left : void 0;
1646
+ if (A && pe(A, (T) => T === r)) return true;
1647
+ }
1648
+ if (n === "expression") switch (r.name) {
1649
+ case "await":
1650
+ case "interface":
1651
+ case "module":
1652
+ case "using":
1653
+ case "yield":
1654
+ case "let":
1655
+ case "component":
1656
+ case "hook":
1657
+ case "type": {
1658
+ let c = e.findAncestor((A) => !xe(A));
1659
+ if (c !== s && c.type === "ExpressionStatement") return true;
1660
+ }
1661
+ }
1662
+ return false;
1663
+ }
1664
+ if (r.type === "ObjectExpression" || r.type === "FunctionExpression" || r.type === "ClassExpression" || r.type === "DoExpression") {
1665
+ let c = (a = e.findAncestor((A) => A.type === "ExpressionStatement")) == null ? void 0 : a.expression;
1666
+ if (c && pe(c, (A) => A === r)) return true;
1667
+ }
1668
+ if (r.type === "ObjectExpression") {
1669
+ let c = (o = e.findAncestor((A) => A.type === "ArrowFunctionExpression")) == null ? void 0 : o.body;
1670
+ if (c && c.type !== "SequenceExpression" && c.type !== "AssignmentExpression" && pe(c, (A) => A === r)) return true;
1671
+ }
1672
+ switch (s.type) {
1673
+ case "ParenthesizedExpression":
1674
+ return false;
1675
+ case "ClassDeclaration":
1676
+ case "ClassExpression":
1677
+ if (n === "superClass" && (r.type === "ArrowFunctionExpression" || r.type === "AssignmentExpression" || r.type === "AwaitExpression" || r.type === "BinaryExpression" || r.type === "ConditionalExpression" || r.type === "LogicalExpression" || r.type === "NewExpression" || r.type === "ObjectExpression" || r.type === "SequenceExpression" || r.type === "TaggedTemplateExpression" || r.type === "UnaryExpression" || r.type === "UpdateExpression" || r.type === "YieldExpression" || r.type === "TSNonNullExpression" || r.type === "ClassExpression" && O(r.decorators))) return true;
1678
+ break;
1679
+ case "ExportDefaultDeclaration":
1680
+ return xi(e, t) || r.type === "SequenceExpression";
1681
+ case "Decorator":
1682
+ if (n === "expression" && !Ac(r)) return true;
1683
+ break;
1684
+ case "TypeAnnotation":
1685
+ if (e.match(void 0, void 0, (c, A) => A === "returnType" && c.type === "ArrowFunctionExpression") && Ec(r)) return true;
1686
+ break;
1687
+ case "BinaryExpression":
1688
+ if (n === "left" && (s.operator === "in" || s.operator === "instanceof") && r.type === "UnaryExpression") return true;
1689
+ break;
1690
+ case "VariableDeclarator":
1691
+ if (n === "init" && e.match(void 0, void 0, (c, A) => A === "declarations" && c.type === "VariableDeclaration", (c, A) => A === "left" && c.type === "ForInStatement")) return true;
1692
+ break;
1693
+ }
1694
+ switch (r.type) {
1695
+ case "UpdateExpression":
1696
+ if (s.type === "UnaryExpression") return r.prefix && (r.operator === "++" && s.operator === "+" || r.operator === "--" && s.operator === "-");
1697
+ case "UnaryExpression":
1698
+ switch (s.type) {
1699
+ case "UnaryExpression":
1700
+ return r.operator === s.operator && (r.operator === "+" || r.operator === "-");
1701
+ case "BindExpression":
1702
+ return true;
1703
+ case "MemberExpression":
1704
+ case "OptionalMemberExpression":
1705
+ return n === "object";
1706
+ case "TaggedTemplateExpression":
1707
+ return true;
1708
+ case "NewExpression":
1709
+ case "CallExpression":
1710
+ case "OptionalCallExpression":
1711
+ return n === "callee";
1712
+ case "BinaryExpression":
1713
+ return n === "left" && s.operator === "**";
1714
+ case "TSNonNullExpression":
1715
+ return true;
1716
+ default:
1717
+ return false;
1718
+ }
1719
+ case "BinaryExpression":
1720
+ if (s.type === "UpdateExpression" || r.operator === "in" && Dc(e)) return true;
1721
+ if (r.operator === "|>" && ((p = r.extra) != null && p.parenthesized)) {
1722
+ let c = e.grandparent;
1723
+ if (c.type === "BinaryExpression" && c.operator === "|>") return true;
1724
+ }
1725
+ case "TSTypeAssertion":
1726
+ case "TSAsExpression":
1727
+ case "TSSatisfiesExpression":
1728
+ case "AsExpression":
1729
+ case "AsConstExpression":
1730
+ case "SatisfiesExpression":
1731
+ case "LogicalExpression":
1732
+ switch (s.type) {
1733
+ case "TSAsExpression":
1734
+ case "TSSatisfiesExpression":
1735
+ case "AsExpression":
1736
+ case "AsConstExpression":
1737
+ case "SatisfiesExpression":
1738
+ return !xe(r);
1739
+ case "ConditionalExpression":
1740
+ return xe(r) || fu(r);
1741
+ case "CallExpression":
1742
+ case "NewExpression":
1743
+ case "OptionalCallExpression":
1744
+ return n === "callee";
1745
+ case "ClassExpression":
1746
+ case "ClassDeclaration":
1747
+ return n === "superClass";
1748
+ case "TSTypeAssertion":
1749
+ case "TaggedTemplateExpression":
1750
+ case "UnaryExpression":
1751
+ case "JSXSpreadAttribute":
1752
+ case "SpreadElement":
1753
+ case "BindExpression":
1754
+ case "AwaitExpression":
1755
+ case "TSNonNullExpression":
1756
+ case "UpdateExpression":
1757
+ return true;
1758
+ case "MemberExpression":
1759
+ case "OptionalMemberExpression":
1760
+ return n === "object";
1761
+ case "AssignmentExpression":
1762
+ case "AssignmentPattern":
1763
+ return n === "left" && (r.type === "TSTypeAssertion" || xe(r));
1764
+ case "LogicalExpression":
1765
+ if (r.type === "LogicalExpression") return s.operator !== r.operator;
1766
+ case "BinaryExpression": {
1767
+ let { operator: c, type: A } = r;
1768
+ if (!c && A !== "TSTypeAssertion") return true;
1769
+ let T = sr(c), B = s.operator, g = sr(B);
1770
+ return g > T || n === "right" && g === T || g === T && !ar(B, c) ? true : g < T && c === "%" ? B === "+" || B === "-" : !!Tu(B);
1771
+ }
1772
+ default:
1773
+ return false;
1774
+ }
1775
+ case "SequenceExpression":
1776
+ return s.type !== "ForStatement";
1777
+ case "YieldExpression":
1778
+ if (s.type === "AwaitExpression" || s.type === "TSTypeAssertion") return true;
1779
+ case "AwaitExpression":
1780
+ switch (s.type) {
1781
+ case "TaggedTemplateExpression":
1782
+ case "UnaryExpression":
1783
+ case "LogicalExpression":
1784
+ case "SpreadElement":
1785
+ case "TSAsExpression":
1786
+ case "TSSatisfiesExpression":
1787
+ case "TSNonNullExpression":
1788
+ case "AsExpression":
1789
+ case "AsConstExpression":
1790
+ case "SatisfiesExpression":
1791
+ case "BindExpression":
1792
+ return true;
1793
+ case "MemberExpression":
1794
+ case "OptionalMemberExpression":
1795
+ return n === "object";
1796
+ case "NewExpression":
1797
+ case "CallExpression":
1798
+ case "OptionalCallExpression":
1799
+ return n === "callee";
1800
+ case "ConditionalExpression":
1801
+ return n === "test";
1802
+ case "BinaryExpression":
1803
+ return !(!r.argument && s.operator === "|>");
1804
+ default:
1805
+ return false;
1806
+ }
1807
+ case "TSFunctionType":
1808
+ if (e.match((c) => c.type === "TSFunctionType", (c, A) => A === "typeAnnotation" && c.type === "TSTypeAnnotation", (c, A) => A === "returnType" && c.type === "ArrowFunctionExpression")) return true;
1809
+ case "TSConditionalType":
1810
+ case "TSConstructorType":
1811
+ case "ConditionalTypeAnnotation":
1812
+ if (n === "extendsType" && Je(r) && s.type === r.type || n === "checkType" && Je(s)) return true;
1813
+ if (n === "extendsType" && s.type === "TSConditionalType") {
1814
+ let { typeAnnotation: c } = r.returnType || r.typeAnnotation;
1815
+ if (c.type === "TSTypePredicate" && c.typeAnnotation && (c = c.typeAnnotation.typeAnnotation), c.type === "TSInferType" && c.typeParameter.constraint) return true;
1816
+ }
1817
+ case "TSUnionType":
1818
+ case "TSIntersectionType":
1819
+ if ((Oe(s) || qt(s)) && s.types.length > 1 && (!r.types || r.types.length > 1)) return true;
1820
+ case "TSInferType":
1821
+ if (r.type === "TSInferType") {
1822
+ if (s.type === "TSRestType") return false;
1823
+ if (n === "types" && (s.type === "TSUnionType" || s.type === "TSIntersectionType") && r.typeParameter.type === "TSTypeParameter" && r.typeParameter.constraint) return true;
1824
+ }
1825
+ case "TSTypeOperator":
1826
+ return s.type === "TSArrayType" || s.type === "TSOptionalType" || s.type === "TSRestType" || n === "objectType" && s.type === "TSIndexedAccessType" || s.type === "TSTypeOperator" || s.type === "TSTypeAnnotation" && e.grandparent.type.startsWith("TSJSDoc");
1827
+ case "TSTypeQuery":
1828
+ return n === "objectType" && s.type === "TSIndexedAccessType" || n === "elementType" && s.type === "TSArrayType";
1829
+ case "TypeOperator":
1830
+ return s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || s.type === "TypeOperator";
1831
+ case "TypeofTypeAnnotation":
1832
+ return n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || n === "elementType" && s.type === "ArrayTypeAnnotation";
1833
+ case "ArrayTypeAnnotation":
1834
+ return s.type === "NullableTypeAnnotation";
1835
+ case "IntersectionTypeAnnotation":
1836
+ case "UnionTypeAnnotation":
1837
+ return s.type === "TypeOperator" || s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || s.type === "IntersectionTypeAnnotation" || s.type === "UnionTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
1838
+ case "InferTypeAnnotation":
1839
+ case "NullableTypeAnnotation":
1840
+ return s.type === "ArrayTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
1841
+ case "ComponentTypeAnnotation":
1842
+ case "FunctionTypeAnnotation": {
1843
+ if (r.type === "ComponentTypeAnnotation" && (r.rendersType === null || r.rendersType === void 0)) return false;
1844
+ if (e.match(void 0, (A, T) => T === "typeAnnotation" && A.type === "TypeAnnotation", (A, T) => T === "returnType" && A.type === "ArrowFunctionExpression") || e.match(void 0, (A, T) => T === "typeAnnotation" && A.type === "TypePredicate", (A, T) => T === "typeAnnotation" && A.type === "TypeAnnotation", (A, T) => T === "returnType" && A.type === "ArrowFunctionExpression")) return true;
1845
+ let c = s.type === "NullableTypeAnnotation" ? e.grandparent : s;
1846
+ return c.type === "UnionTypeAnnotation" || c.type === "IntersectionTypeAnnotation" || c.type === "ArrayTypeAnnotation" || n === "objectType" && (c.type === "IndexedAccessType" || c.type === "OptionalIndexedAccessType") || n === "checkType" && s.type === "ConditionalTypeAnnotation" || n === "extendsType" && s.type === "ConditionalTypeAnnotation" && ((m = r.returnType) == null ? void 0 : m.type) === "InferTypeAnnotation" && ((f = r.returnType) == null ? void 0 : f.typeParameter.bound) || c.type === "NullableTypeAnnotation" || s.type === "FunctionTypeParam" && s.name === null && Q(r).some((A) => {
1847
+ var T;
1848
+ return ((T = A.typeAnnotation) == null ? void 0 : T.type) === "NullableTypeAnnotation";
1849
+ });
1850
+ }
1851
+ case "OptionalIndexedAccessType":
1852
+ return n === "objectType" && s.type === "IndexedAccessType";
1853
+ case "StringLiteral":
1854
+ case "NumericLiteral":
1855
+ case "Literal":
1856
+ if (typeof r.value == "string" && s.type === "ExpressionStatement" && typeof s.directive != "string") {
1857
+ let c = e.grandparent;
1858
+ return c.type === "Program" || c.type === "BlockStatement";
1859
+ }
1860
+ return n === "object" && G(s) && ye(r);
1861
+ case "AssignmentExpression":
1862
+ return !((n === "init" || n === "update") && s.type === "ForStatement" || n === "expression" && r.left.type !== "ObjectPattern" && s.type === "ExpressionStatement" || n === "key" && s.type === "TSPropertySignature" || s.type === "AssignmentExpression" || n === "expressions" && s.type === "SequenceExpression" && e.match(void 0, void 0, (c, A) => (A === "init" || A === "update") && c.type === "ForStatement") || n === "value" && s.type === "Property" && e.match(void 0, void 0, (c, A) => A === "properties" && c.type === "ObjectPattern") || s.type === "NGChainedExpression" || n === "node" && s.type === "JsExpressionRoot");
1863
+ case "ConditionalExpression":
1864
+ switch (s.type) {
1865
+ case "TaggedTemplateExpression":
1866
+ case "UnaryExpression":
1867
+ case "SpreadElement":
1868
+ case "BinaryExpression":
1869
+ case "LogicalExpression":
1870
+ case "NGPipeExpression":
1871
+ case "ExportDefaultDeclaration":
1872
+ case "AwaitExpression":
1873
+ case "JSXSpreadAttribute":
1874
+ case "TSTypeAssertion":
1875
+ case "TypeCastExpression":
1876
+ case "TSAsExpression":
1877
+ case "TSSatisfiesExpression":
1878
+ case "AsExpression":
1879
+ case "AsConstExpression":
1880
+ case "SatisfiesExpression":
1881
+ case "TSNonNullExpression":
1882
+ return true;
1883
+ case "NewExpression":
1884
+ case "CallExpression":
1885
+ case "OptionalCallExpression":
1886
+ return n === "callee";
1887
+ case "ConditionalExpression":
1888
+ return t.experimentalTernaries ? false : n === "test";
1889
+ case "MemberExpression":
1890
+ case "OptionalMemberExpression":
1891
+ return n === "object";
1892
+ default:
1893
+ return false;
1894
+ }
1895
+ case "FunctionExpression":
1896
+ switch (s.type) {
1897
+ case "NewExpression":
1898
+ case "CallExpression":
1899
+ case "OptionalCallExpression":
1900
+ return n === "callee";
1901
+ case "TaggedTemplateExpression":
1902
+ return true;
1903
+ default:
1904
+ return false;
1905
+ }
1906
+ case "ArrowFunctionExpression":
1907
+ switch (s.type) {
1908
+ case "BinaryExpression":
1909
+ return s.operator !== "|>" || ((y = r.extra) == null ? void 0 : y.parenthesized);
1910
+ case "NewExpression":
1911
+ case "CallExpression":
1912
+ case "OptionalCallExpression":
1913
+ return n === "callee";
1914
+ case "MemberExpression":
1915
+ case "OptionalMemberExpression":
1916
+ return n === "object";
1917
+ case "TSAsExpression":
1918
+ case "TSSatisfiesExpression":
1919
+ case "AsExpression":
1920
+ case "AsConstExpression":
1921
+ case "SatisfiesExpression":
1922
+ case "TSNonNullExpression":
1923
+ case "BindExpression":
1924
+ case "TaggedTemplateExpression":
1925
+ case "UnaryExpression":
1926
+ case "LogicalExpression":
1927
+ case "AwaitExpression":
1928
+ case "TSTypeAssertion":
1929
+ return true;
1930
+ case "ConditionalExpression":
1931
+ return n === "test";
1932
+ default:
1933
+ return false;
1934
+ }
1935
+ case "ClassExpression":
1936
+ switch (s.type) {
1937
+ case "NewExpression":
1938
+ return n === "callee";
1939
+ default:
1940
+ return false;
1941
+ }
1942
+ case "OptionalMemberExpression":
1943
+ case "OptionalCallExpression":
1944
+ case "CallExpression":
1945
+ case "MemberExpression":
1946
+ if (Cc(e)) return true;
1947
+ case "TaggedTemplateExpression":
1948
+ case "TSNonNullExpression":
1949
+ if (n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression")) {
1950
+ let c = r;
1951
+ for (; c; ) switch (c.type) {
1952
+ case "CallExpression":
1953
+ case "OptionalCallExpression":
1954
+ return true;
1955
+ case "MemberExpression":
1956
+ case "OptionalMemberExpression":
1957
+ case "BindExpression":
1958
+ c = c.object;
1959
+ break;
1960
+ case "TaggedTemplateExpression":
1961
+ c = c.tag;
1962
+ break;
1963
+ case "TSNonNullExpression":
1964
+ c = c.expression;
1965
+ break;
1966
+ default:
1967
+ return false;
1968
+ }
1969
+ }
1970
+ return false;
1971
+ case "BindExpression":
1972
+ return n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression") || n === "object" && G(s);
1973
+ case "NGPipeExpression":
1974
+ return !(s.type === "NGRoot" || s.type === "NGMicrosyntaxExpression" || s.type === "ObjectProperty" && !((C = r.extra) != null && C.parenthesized) || U(s) || n === "arguments" && w(s) || n === "right" && s.type === "NGPipeExpression" || n === "property" && s.type === "MemberExpression" || s.type === "AssignmentExpression");
1975
+ case "JSXFragment":
1976
+ case "JSXElement":
1977
+ return n === "callee" || n === "left" && s.type === "BinaryExpression" && s.operator === "<" || !U(s) && s.type !== "ArrowFunctionExpression" && s.type !== "AssignmentExpression" && s.type !== "AssignmentPattern" && s.type !== "BinaryExpression" && s.type !== "NewExpression" && s.type !== "ConditionalExpression" && s.type !== "ExpressionStatement" && s.type !== "JsExpressionRoot" && s.type !== "JSXAttribute" && s.type !== "JSXElement" && s.type !== "JSXExpressionContainer" && s.type !== "JSXFragment" && s.type !== "LogicalExpression" && !w(s) && !Te(s) && s.type !== "ReturnStatement" && s.type !== "ThrowStatement" && s.type !== "TypeCastExpression" && s.type !== "VariableDeclarator" && s.type !== "YieldExpression";
1978
+ case "TSInstantiationExpression":
1979
+ return n === "object" && G(s);
1980
+ }
1981
+ return false;
1982
+ }
1983
+ var fc = R(["BlockStatement", "BreakStatement", "ComponentDeclaration", "ClassBody", "ClassDeclaration", "ClassMethod", "ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ContinueStatement", "DebuggerStatement", "DeclareComponent", "DeclareClass", "DeclareExportAllDeclaration", "DeclareExportDeclaration", "DeclareFunction", "DeclareHook", "DeclareInterface", "DeclareModule", "DeclareModuleExports", "DeclareNamespace", "DeclareVariable", "DeclareEnum", "DoWhileStatement", "EnumDeclaration", "ExportAllDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExpressionStatement", "ForInStatement", "ForOfStatement", "ForStatement", "FunctionDeclaration", "HookDeclaration", "IfStatement", "ImportDeclaration", "InterfaceDeclaration", "LabeledStatement", "MethodDefinition", "ReturnStatement", "SwitchStatement", "ThrowStatement", "TryStatement", "TSDeclareFunction", "TSEnumDeclaration", "TSImportEqualsDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSNamespaceExportDeclaration", "TypeAlias", "VariableDeclaration", "WhileStatement", "WithStatement"]);
1984
+ function Dc(e) {
1985
+ let t = 0, { node: r } = e;
1986
+ for (; r; ) {
1987
+ let n = e.getParentNode(t++);
1988
+ if ((n == null ? void 0 : n.type) === "ForStatement" && n.init === r) return true;
1989
+ r = n;
1990
+ }
1991
+ return false;
1992
+ }
1993
+ function Ec(e) {
1994
+ return ur(e, (t) => t.type === "ObjectTypeAnnotation" && ur(t, (r) => r.type === "FunctionTypeAnnotation"));
1995
+ }
1996
+ function Fc(e) {
1997
+ return ue(e);
1998
+ }
1999
+ function yr(e) {
2000
+ let { parent: t, key: r } = e;
2001
+ switch (t.type) {
2002
+ case "NGPipeExpression":
2003
+ if (r === "arguments" && e.isLast) return e.callParent(yr);
2004
+ break;
2005
+ case "ObjectProperty":
2006
+ if (r === "value") return e.callParent(() => e.key === "properties" && e.isLast);
2007
+ break;
2008
+ case "BinaryExpression":
2009
+ case "LogicalExpression":
2010
+ if (r === "right") return e.callParent(yr);
2011
+ break;
2012
+ case "ConditionalExpression":
2013
+ if (r === "alternate") return e.callParent(yr);
2014
+ break;
2015
+ case "UnaryExpression":
2016
+ if (t.prefix) return e.callParent(yr);
2017
+ break;
2018
+ }
2019
+ return false;
2020
+ }
2021
+ function xi(e, t) {
2022
+ let { node: r, parent: n } = e;
2023
+ return r.type === "FunctionExpression" || r.type === "ClassExpression" ? n.type === "ExportDefaultDeclaration" || !ls(e, t) : !Jt(r) || n.type !== "ExportDefaultDeclaration" && ls(e, t) ? false : e.call(() => xi(e, t), ...Lr(r));
2024
+ }
2025
+ function Cc(e) {
2026
+ return !!(e.match(void 0, (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match(void 0, (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match(void 0, (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && (t.type === "CallExpression" || t.type === "NewExpression")) || e.match((t) => t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression") || e.match((t) => t.type === "CallExpression" || t.type === "MemberExpression", (t, r) => r === "expression" && t.type === "ChainExpression") && (e.match(void 0, void 0, (t, r) => r === "callee" && (t.type === "CallExpression" && !t.optional || t.type === "NewExpression") || r === "object" && t.type === "MemberExpression" && !t.optional) || e.match(void 0, void 0, (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression")) || e.match((t) => t.type === "CallExpression" || t.type === "MemberExpression", (t, r) => r === "expression" && t.type === "TSNonNullExpression", (t, r) => r === "expression" && t.type === "ChainExpression", (t, r) => r === "object" && t.type === "MemberExpression" || r === "callee" && t.type === "CallExpression"));
2027
+ }
2028
+ function ms(e) {
2029
+ return e.type === "Identifier" ? true : G(e) ? !e.computed && !e.optional && e.property.type === "Identifier" && ms(e.object) : false;
2030
+ }
2031
+ function Ac(e) {
2032
+ return e.type === "ChainExpression" && (e = e.expression), ms(e) || w(e) && !e.optional && ms(e.callee);
2033
+ }
2034
+ var Le = ls;
2035
+ function dc(e, t) {
2036
+ let r = t - 1;
2037
+ r = Ye(e, r, { backwards: true }), r = He(e, r, { backwards: true }), r = Ye(e, r, { backwards: true });
2038
+ let n = He(e, r, { backwards: true });
2039
+ return r !== n;
2040
+ }
2041
+ var hi = dc;
2042
+ var Tc = () => true;
2043
+ function ys(e, t) {
2044
+ let r = e.node;
2045
+ return r.printed = true, t.printer.printComment(e, t);
2046
+ }
2047
+ function xc(e, t) {
2048
+ var m;
2049
+ let r = e.node, n = [ys(e, t)], { printer: s, originalText: u, locStart: i, locEnd: a } = t;
2050
+ if ((m = s.isBlockComment) == null ? void 0 : m.call(s, r)) {
2051
+ let f = ee(u, a(r)) ? ee(u, i(r), { backwards: true }) ? F : x : " ";
2052
+ n.push(f);
2053
+ } else n.push(F);
2054
+ let p = He(u, Ye(u, a(r)));
2055
+ return p !== false && ee(u, p) && n.push(F), n;
2056
+ }
2057
+ function hc(e, t, r) {
2058
+ var p;
2059
+ let n = e.node, s = ys(e, t), { printer: u, originalText: i, locStart: a } = t, o = (p = u.isBlockComment) == null ? void 0 : p.call(u, n);
2060
+ if (r != null && r.hasLineSuffix && !(r != null && r.isBlock) || ee(i, a(n), { backwards: true })) {
2061
+ let m = hi(i, a(n));
2062
+ return { doc: Xn([F, m ? F : "", s]), isBlock: o, hasLineSuffix: true };
2063
+ }
2064
+ return !o || r != null && r.hasLineSuffix ? { doc: [Xn([" ", s]), Ce], isBlock: o, hasLineSuffix: true } : { doc: [" ", s], isBlock: o, hasLineSuffix: false };
2065
+ }
2066
+ function N(e, t, r = {}) {
2067
+ let { node: n } = e;
2068
+ if (!O(n == null ? void 0 : n.comments)) return "";
2069
+ let { indent: s = false, marker: u, filter: i = Tc } = r, a = [];
2070
+ if (e.each(({ node: p }) => {
2071
+ p.leading || p.trailing || p.marker !== u || !i(p) || a.push(ys(e, t));
2072
+ }, "comments"), a.length === 0) return "";
2073
+ let o = b(F, a);
2074
+ return s ? D([F, o]) : o;
2075
+ }
2076
+ function fs(e, t) {
2077
+ let r = e.node;
2078
+ if (!r) return {};
2079
+ let n = t[Symbol.for("printedComments")];
2080
+ if ((r.comments || []).filter((o) => !n.has(o)).length === 0) return { leading: "", trailing: "" };
2081
+ let u = [], i = [], a;
2082
+ return e.each(() => {
2083
+ let o = e.node;
2084
+ if (n != null && n.has(o)) return;
2085
+ let { leading: p, trailing: m } = o;
2086
+ p ? u.push(xc(e, t)) : m && (a = hc(e, t, a), i.push(a.doc));
2087
+ }, "comments"), { leading: u, trailing: i };
2088
+ }
2089
+ function Ee(e, t, r) {
2090
+ let { leading: n, trailing: s } = fs(e, r);
2091
+ return !n && !s ? t : lr(t, (u) => [n, u, s]);
2092
+ }
2093
+ var Ds = (_class2 = class extends Error {
2094
+ __init2() {this.name = "UnexpectedNodeError"}
2095
+ constructor(t, r, n = "type") {
2096
+ super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);_class2.prototype.__init2.call(this);, this.node = t;
2097
+ }
2098
+ }, _class2);
2099
+ var qe = Ds;
2100
+ function Es(e) {
2101
+ if (typeof e != "string") throw new TypeError("Expected a string");
2102
+ return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2103
+ }
2104
+ var We;
2105
+ var Fs = class {
2106
+ constructor(t) {
2107
+ Ys(this, We);
2108
+ Hs(this, We, new Set(t));
2109
+ }
2110
+ getLeadingWhitespaceCount(t) {
2111
+ let r = mt(this, We), n = 0;
2112
+ for (let s = 0; s < t.length && r.has(t.charAt(s)); s++) n++;
2113
+ return n;
2114
+ }
2115
+ getTrailingWhitespaceCount(t) {
2116
+ let r = mt(this, We), n = 0;
2117
+ for (let s = t.length - 1; s >= 0 && r.has(t.charAt(s)); s--) n++;
2118
+ return n;
2119
+ }
2120
+ getLeadingWhitespace(t) {
2121
+ let r = this.getLeadingWhitespaceCount(t);
2122
+ return t.slice(0, r);
2123
+ }
2124
+ getTrailingWhitespace(t) {
2125
+ let r = this.getTrailingWhitespaceCount(t);
2126
+ return t.slice(t.length - r);
2127
+ }
2128
+ hasLeadingWhitespace(t) {
2129
+ return mt(this, We).has(t.charAt(0));
2130
+ }
2131
+ hasTrailingWhitespace(t) {
2132
+ return mt(this, We).has(v(false, t, -1));
2133
+ }
2134
+ trimStart(t) {
2135
+ let r = this.getLeadingWhitespaceCount(t);
2136
+ return t.slice(r);
2137
+ }
2138
+ trimEnd(t) {
2139
+ let r = this.getTrailingWhitespaceCount(t);
2140
+ return t.slice(0, t.length - r);
2141
+ }
2142
+ trim(t) {
2143
+ return this.trimEnd(this.trimStart(t));
2144
+ }
2145
+ split(t, r = false) {
2146
+ let n = `[${Es([...mt(this, We)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
2147
+ return t.split(s);
2148
+ }
2149
+ hasWhitespaceCharacter(t) {
2150
+ let r = mt(this, We);
2151
+ return Array.prototype.some.call(t, (n) => r.has(n));
2152
+ }
2153
+ hasNonWhitespaceCharacter(t) {
2154
+ let r = mt(this, We);
2155
+ return Array.prototype.some.call(t, (n) => !r.has(n));
2156
+ }
2157
+ isWhitespaceOnly(t) {
2158
+ let r = mt(this, We);
2159
+ return Array.prototype.every.call(t, (n) => r.has(n));
2160
+ }
2161
+ };
2162
+ We = /* @__PURE__ */ new WeakMap();
2163
+ var gi = Fs;
2164
+ var Hr = new gi(`
2165
+ \r `);
2166
+ var Cs = (e) => e === "" || e === x || e === F || e === E;
2167
+ function gc(e, t, r) {
2168
+ var _, M, J, I, q;
2169
+ let { node: n } = e;
2170
+ if (n.type === "JSXElement" && Jc(n)) return [r("openingElement"), r("closingElement")];
2171
+ let s = n.type === "JSXElement" ? r("openingElement") : r("openingFragment"), u = n.type === "JSXElement" ? r("closingElement") : r("closingFragment");
2172
+ if (n.children.length === 1 && n.children[0].type === "JSXExpressionContainer" && (n.children[0].expression.type === "TemplateLiteral" || n.children[0].expression.type === "TaggedTemplateExpression")) return [s, ...e.map(r, "children"), u];
2173
+ n.children = n.children.map((k) => Nc(k) ? { type: "JSXText", value: " ", raw: " " } : k);
2174
+ let i = n.children.some(Y), a = n.children.filter((k) => k.type === "JSXExpressionContainer").length > 1, o = n.type === "JSXElement" && n.openingElement.attributes.length > 1, p = re(s) || i || o || a, m = e.parent.rootMarker === "mdx", f = t.singleQuote ? "{' '}" : '{" "}', y = m ? x : S([f, E], " "), C = ((M = (_ = n.openingElement) == null ? void 0 : _.name) == null ? void 0 : M.name) === "fbt", c = Sc(e, t, r, y, C), A = n.children.some((k) => fr(k));
2175
+ for (let k = c.length - 2; k >= 0; k--) {
2176
+ let W = c[k] === "" && c[k + 1] === "", ne = c[k] === F && c[k + 1] === "" && c[k + 2] === F, Z = (c[k] === E || c[k] === F) && c[k + 1] === "" && c[k + 2] === y, lt = c[k] === y && c[k + 1] === "" && (c[k + 2] === E || c[k + 2] === F), L = c[k] === y && c[k + 1] === "" && c[k + 2] === y, se = c[k] === E && c[k + 1] === "" && c[k + 2] === F || c[k] === F && c[k + 1] === "" && c[k + 2] === E;
2177
+ ne && A || W || Z || L || se ? c.splice(k, 2) : lt && c.splice(k + 1, 2);
2178
+ }
2179
+ for (; c.length > 0 && Cs(v(false, c, -1)); ) c.pop();
2180
+ for (; c.length > 1 && Cs(c[0]) && Cs(c[1]); ) c.shift(), c.shift();
2181
+ let T = [""];
2182
+ for (let [k, W] of c.entries()) {
2183
+ if (W === y) {
2184
+ if (k === 1 && wu(c[k - 1])) {
2185
+ if (c.length === 2) {
2186
+ T.push([T.pop(), f]);
2187
+ continue;
2188
+ }
2189
+ T.push([f, F], "");
2190
+ continue;
2191
+ } else if (k === c.length - 1) {
2192
+ T.push([T.pop(), f]);
2193
+ continue;
2194
+ } else if (c[k - 1] === "" && c[k - 2] === F) {
2195
+ T.push([T.pop(), f]);
2196
+ continue;
2197
+ }
2198
+ }
2199
+ k % 2 === 0 ? T.push([T.pop(), W]) : T.push(W, ""), re(W) && (p = true);
2200
+ }
2201
+ let B = A ? Nr(T) : l(T, { shouldBreak: true });
2202
+ if (((J = t.cursorNode) == null ? void 0 : J.type) === "JSXText" && n.children.includes(t.cursorNode) ? B = [mr, B, mr] : ((I = t.nodeBeforeCursor) == null ? void 0 : I.type) === "JSXText" && n.children.includes(t.nodeBeforeCursor) ? B = [mr, B] : ((q = t.nodeAfterCursor) == null ? void 0 : q.type) === "JSXText" && n.children.includes(t.nodeAfterCursor) && (B = [B, mr]), m) return B;
2203
+ let g = l([s, D([F, B]), F, u]);
2204
+ return p ? g : tt([l([s, ...c, u]), g]);
2205
+ }
2206
+ function Sc(e, t, r, n, s) {
2207
+ let u = "", i = [u];
2208
+ function a(p) {
2209
+ u = p, i.push([i.pop(), p]);
2210
+ }
2211
+ function o(p) {
2212
+ p !== "" && (u = p, i.push(p, ""));
2213
+ }
2214
+ return e.each(({ node: p, next: m }) => {
2215
+ if (p.type === "JSXText") {
2216
+ let f = ae(p);
2217
+ if (fr(p)) {
2218
+ let y = Hr.split(f, true);
2219
+ y[0] === "" && (y.shift(), /\n/u.test(y[0]) ? o(Bi(s, y[1], p, m)) : o(n), y.shift());
2220
+ let C;
2221
+ if (v(false, y, -1) === "" && (y.pop(), C = y.pop()), y.length === 0) return;
2222
+ for (let [c, A] of y.entries()) c % 2 === 1 ? o(x) : a(A);
2223
+ C !== void 0 ? /\n/u.test(C) ? o(Bi(s, u, p, m)) : o(n) : o(Si(s, u, p, m));
2224
+ } else /\n/u.test(f) ? f.match(/\n/gu).length > 1 && o(F) : o(n);
2225
+ } else {
2226
+ let f = r();
2227
+ if (a(f), m && fr(m)) {
2228
+ let C = Hr.trim(ae(m)), [c] = Hr.split(C);
2229
+ o(Si(s, c, p, m));
2230
+ } else o(F);
2231
+ }
2232
+ }, "children"), i;
2233
+ }
2234
+ function Si(e, t, r, n) {
2235
+ return e ? "" : r.type === "JSXElement" && !r.closingElement || (n == null ? void 0 : n.type) === "JSXElement" && !n.closingElement ? t.length === 1 ? E : F : E;
2236
+ }
2237
+ function Bi(e, t, r, n) {
2238
+ return e ? F : t.length === 1 ? r.type === "JSXElement" && !r.closingElement || (n == null ? void 0 : n.type) === "JSXElement" && !n.closingElement ? F : E : F;
2239
+ }
2240
+ var Bc = /* @__PURE__ */ new Set(["ArrayExpression", "JSXAttribute", "JSXElement", "JSXExpressionContainer", "JSXFragment", "ExpressionStatement", "CallExpression", "OptionalCallExpression", "ConditionalExpression", "JsExpressionRoot"]);
2241
+ function bc(e, t, r) {
2242
+ let { parent: n } = e;
2243
+ if (Bc.has(n.type)) return t;
2244
+ let s = Pc(e), u = Le(e, r);
2245
+ return l([u ? "" : S("("), D([E, t]), E, u ? "" : S(")")], { shouldBreak: s });
2246
+ }
2247
+ function Pc(e) {
2248
+ return e.match(void 0, (t) => t.type === "ArrowFunctionExpression", w) && (e.match(void 0, void 0, void 0, (t) => t.type === "JSXExpressionContainer") || e.match(void 0, void 0, void 0, (t) => t.type === "ChainExpression", (t) => t.type === "JSXExpressionContainer"));
2249
+ }
2250
+ function kc(e, t, r) {
2251
+ let { node: n } = e, s = [];
2252
+ if (s.push(r("name")), n.value) {
2253
+ let u;
2254
+ if (K(n.value)) {
2255
+ let i = ae(n.value), a = X(false, X(false, i.slice(1, -1), "&apos;", "'"), "&quot;", '"'), o = Sr(a, t.jsxSingleQuote);
2256
+ a = o === '"' ? X(false, a, '"', "&quot;") : X(false, a, "'", "&apos;"), u = e.call(() => Ee(e, ve(o + a + o), t), "value");
2257
+ } else u = r("value");
2258
+ s.push("=", u);
2259
+ }
2260
+ return s;
2261
+ }
2262
+ function Ic(e, t, r) {
2263
+ let { node: n } = e, s = (u, i) => u.type === "JSXEmptyExpression" || !d(u) && (U(u) || ue(u) || u.type === "ArrowFunctionExpression" || u.type === "AwaitExpression" && (s(u.argument, u) || u.argument.type === "JSXElement") || w(u) || u.type === "ChainExpression" && w(u.expression) || u.type === "FunctionExpression" || u.type === "TemplateLiteral" || u.type === "TaggedTemplateExpression" || u.type === "DoExpression" || Y(i) && (u.type === "ConditionalExpression" || Fe(u)));
2264
+ return s(n.expression, e.parent) ? l(["{", r("expression"), je, "}"]) : l(["{", D([E, r("expression")]), E, je, "}"]);
2265
+ }
2266
+ function Lc(e, t, r) {
2267
+ var a, o;
2268
+ let { node: n } = e, s = d(n.name) || d(n.typeParameters) || d(n.typeArguments);
2269
+ if (n.selfClosing && n.attributes.length === 0 && !s) return ["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), " />"];
2270
+ if (((a = n.attributes) == null ? void 0 : a.length) === 1 && K(n.attributes[0].value) && !n.attributes[0].value.value.includes(`
2271
+ `) && !s && !d(n.attributes[0])) return l(["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), " ", ...e.map(r, "attributes"), n.selfClosing ? " />" : ">"]);
2272
+ let u = (o = n.attributes) == null ? void 0 : o.some((p) => K(p.value) && p.value.value.includes(`
2273
+ `)), i = t.singleAttributePerLine && n.attributes.length > 1 ? F : x;
2274
+ return l(["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), D(e.map(() => [i, r()], "attributes")), ...wc(n, t, s)], { shouldBreak: u });
2275
+ }
2276
+ function wc(e, t, r) {
2277
+ return e.selfClosing ? [x, "/>"] : Oc(e, t, r) ? [">"] : [E, ">"];
2278
+ }
2279
+ function Oc(e, t, r) {
2280
+ let n = e.attributes.length > 0 && d(v(false, e.attributes, -1), h.Trailing);
2281
+ return e.attributes.length === 0 && !r || (t.bracketSameLine || t.jsxBracketSameLine) && (!r || e.attributes.length > 0) && !n;
2282
+ }
2283
+ function _c(e, t, r) {
2284
+ let { node: n } = e, s = [];
2285
+ s.push("</");
2286
+ let u = r("name");
2287
+ return d(n.name, h.Leading | h.Line) ? s.push(D([F, u]), F) : d(n.name, h.Leading | h.Block) ? s.push(" ", u) : s.push(u), s.push(">"), s;
2288
+ }
2289
+ function Mc(e, t) {
2290
+ let { node: r } = e, n = d(r), s = d(r, h.Line), u = r.type === "JSXOpeningFragment";
2291
+ return [u ? "<" : "</", D([s ? F : n && !u ? " " : "", N(e, t)]), s ? F : "", ">"];
2292
+ }
2293
+ function vc(e, t, r) {
2294
+ let n = Ee(e, gc(e, t, r), t);
2295
+ return bc(e, n, t);
2296
+ }
2297
+ function jc(e, t) {
2298
+ let { node: r } = e, n = d(r, h.Line);
2299
+ return [N(e, t, { indent: n }), n ? F : ""];
2300
+ }
2301
+ function Rc(e, t, r) {
2302
+ let { node: n } = e;
2303
+ return ["{", e.call(({ node: s }) => {
2304
+ let u = ["...", r()];
2305
+ return !d(s) || !rs(e) ? u : [D([E, Ee(e, u, t)]), E];
2306
+ }, n.type === "JSXSpreadAttribute" ? "argument" : "expression"), "}"];
2307
+ }
2308
+ function bi(e, t, r) {
2309
+ let { node: n } = e;
2310
+ if (n.type.startsWith("JSX")) switch (n.type) {
2311
+ case "JSXAttribute":
2312
+ return kc(e, t, r);
2313
+ case "JSXIdentifier":
2314
+ return n.name;
2315
+ case "JSXNamespacedName":
2316
+ return b(":", [r("namespace"), r("name")]);
2317
+ case "JSXMemberExpression":
2318
+ return b(".", [r("object"), r("property")]);
2319
+ case "JSXSpreadAttribute":
2320
+ case "JSXSpreadChild":
2321
+ return Rc(e, t, r);
2322
+ case "JSXExpressionContainer":
2323
+ return Ic(e, t, r);
2324
+ case "JSXFragment":
2325
+ case "JSXElement":
2326
+ return vc(e, t, r);
2327
+ case "JSXOpeningElement":
2328
+ return Lc(e, t, r);
2329
+ case "JSXClosingElement":
2330
+ return _c(e, t, r);
2331
+ case "JSXOpeningFragment":
2332
+ case "JSXClosingFragment":
2333
+ return Mc(e, t);
2334
+ case "JSXEmptyExpression":
2335
+ return jc(e, t);
2336
+ case "JSXText":
2337
+ throw new Error("JSXText should be handled by JSXElement");
2338
+ default:
2339
+ throw new qe(n, "JSX");
2340
+ }
2341
+ }
2342
+ function Jc(e) {
2343
+ if (e.children.length === 0) return true;
2344
+ if (e.children.length > 1) return false;
2345
+ let t = e.children[0];
2346
+ return t.type === "JSXText" && !fr(t);
2347
+ }
2348
+ function fr(e) {
2349
+ return e.type === "JSXText" && (Hr.hasNonWhitespaceCharacter(ae(e)) || !/\n/u.test(ae(e)));
2350
+ }
2351
+ function Nc(e) {
2352
+ return e.type === "JSXExpressionContainer" && K(e.expression) && e.expression.value === " " && !d(e.expression);
2353
+ }
2354
+ function Pi(e) {
2355
+ let { node: t, parent: r } = e;
2356
+ if (!Y(t) || !Y(r)) return false;
2357
+ let { index: n, siblings: s } = e, u;
2358
+ for (let i = n; i > 0; i--) {
2359
+ let a = s[i - 1];
2360
+ if (!(a.type === "JSXText" && !fr(a))) {
2361
+ u = a;
2362
+ break;
2363
+ }
2364
+ }
2365
+ return (u == null ? void 0 : u.type) === "JSXExpressionContainer" && u.expression.type === "JSXEmptyExpression" && kt(u.expression);
2366
+ }
2367
+ function Gc(e) {
2368
+ return kt(e.node) || Pi(e);
2369
+ }
2370
+ var Vr = Gc;
2371
+ var qc = 0;
2372
+ function $r(e, t, r) {
2373
+ var M;
2374
+ let { node: n, parent: s, grandparent: u, key: i } = e, a = i !== "body" && (s.type === "IfStatement" || s.type === "WhileStatement" || s.type === "SwitchStatement" || s.type === "DoWhileStatement"), o = n.operator === "|>" && ((M = e.root.extra) == null ? void 0 : M.__isUsingHackPipeline), p = As(e, t, r, false, a);
2375
+ if (a) return p;
2376
+ if (o) return l(p);
2377
+ if (w(s) && s.callee === n || s.type === "UnaryExpression" || G(s) && !s.computed) return l([D([E, ...p]), E]);
2378
+ let m = s.type === "ReturnStatement" || s.type === "ThrowStatement" || s.type === "JSXExpressionContainer" && u.type === "JSXAttribute" || n.operator !== "|" && s.type === "JsExpressionRoot" || n.type !== "NGPipeExpression" && (s.type === "NGRoot" && t.parser === "__ng_binding" || s.type === "NGMicrosyntaxExpression" && u.type === "NGMicrosyntax" && u.body.length === 1) || n === s.body && s.type === "ArrowFunctionExpression" || n !== s.body && s.type === "ForStatement" || s.type === "ConditionalExpression" && u.type !== "ReturnStatement" && u.type !== "ThrowStatement" && !w(u) || s.type === "TemplateLiteral", f = s.type === "AssignmentExpression" || s.type === "VariableDeclarator" || s.type === "ClassProperty" || s.type === "PropertyDefinition" || s.type === "TSAbstractPropertyDefinition" || s.type === "ClassPrivateProperty" || Te(s), y = Fe(n.left) && ar(n.operator, n.left.operator);
2379
+ if (m || Ht(n) && !y || !Ht(n) && f) return l(p);
2380
+ if (p.length === 0) return "";
2381
+ let C = Y(n.right), c = p.findIndex((J) => typeof J != "string" && !Array.isArray(J) && J.type === fe), A = p.slice(0, c === -1 ? 1 : c + 1), T = p.slice(A.length, C ? -1 : void 0), B = Symbol("logicalChain-" + ++qc), g = l([...A, D(T)], { id: B });
2382
+ if (!C) return g;
2383
+ let _ = v(false, p, -1);
2384
+ return l([g, xt(_, { groupId: B })]);
2385
+ }
2386
+ function As(e, t, r, n, s) {
2387
+ var B;
2388
+ let { node: u } = e;
2389
+ if (!Fe(u)) return [l(r())];
2390
+ let i = [];
2391
+ ar(u.operator, u.left.operator) ? i = e.call((g) => As(g, t, r, true, s), "left") : i.push(l(r("left")));
2392
+ let a = Ht(u), o = (u.operator === "|>" || u.type === "NGPipeExpression" || Wc(e, t)) && !de(t.originalText, u.right), m = !d(u.right, h.Leading, Gr) && de(t.originalText, u.right), f = u.type === "NGPipeExpression" ? "|" : u.operator, y = u.type === "NGPipeExpression" && u.arguments.length > 0 ? l(D([E, ": ", b([x, ": "], e.map(() => be(2, l(r())), "arguments"))])) : "", C;
2393
+ if (a) C = [f, de(t.originalText, u.right) ? D([x, r("right"), y]) : [" ", r("right"), y]];
2394
+ else {
2395
+ let _ = f === "|>" && ((B = e.root.extra) == null ? void 0 : B.__isUsingHackPipeline) ? e.call((M) => As(M, t, r, true, s), "right") : r("right");
2396
+ if (t.experimentalOperatorPosition === "start") {
2397
+ let M = "";
2398
+ if (m) switch (Be(_)) {
2399
+ case ge:
2400
+ M = _.splice(0, 1)[0];
2401
+ break;
2402
+ case Se:
2403
+ M = _.contents.splice(0, 1)[0];
2404
+ break;
2405
+ }
2406
+ C = [x, M, f, " ", _, y];
2407
+ } else C = [o ? x : "", f, o ? " " : x, _, y];
2408
+ }
2409
+ let { parent: c } = e, A = d(u.left, h.Trailing | h.Line);
2410
+ if ((A || !(s && u.type === "LogicalExpression") && c.type !== u.type && u.left.type !== u.type && u.right.type !== u.type) && (C = l(C, { shouldBreak: A })), t.experimentalOperatorPosition === "start" ? i.push(a || m ? " " : "", C) : i.push(o ? "" : " ", C), n && d(u)) {
2411
+ let g = Ut(Ee(e, i, t));
2412
+ return g.type === _e ? g.parts : Array.isArray(g) ? g : [g];
2413
+ }
2414
+ return i;
2415
+ }
2416
+ function Ht(e) {
2417
+ return e.type !== "LogicalExpression" ? false : !!(ue(e.right) && e.right.properties.length > 0 || U(e.right) && e.right.elements.length > 0 || Y(e.right));
2418
+ }
2419
+ var ki = (e) => e.type === "BinaryExpression" && e.operator === "|";
2420
+ function Wc(e, t) {
2421
+ return (t.parser === "__vue_expression" || t.parser === "__vue_ts_expression") && ki(e.node) && !e.hasAncestor((r) => !ki(r) && r.type !== "JsExpressionRoot");
2422
+ }
2423
+ function Li(e, t, r) {
2424
+ let { node: n } = e;
2425
+ if (n.type.startsWith("NG")) switch (n.type) {
2426
+ case "NGRoot":
2427
+ return [r("node"), d(n.node) ? " //" + Ve(n.node)[0].value.trimEnd() : ""];
2428
+ case "NGPipeExpression":
2429
+ return $r(e, t, r);
2430
+ case "NGChainedExpression":
2431
+ return l(b([";", x], e.map(() => Yc(e) ? r() : ["(", r(), ")"], "expressions")));
2432
+ case "NGEmptyExpression":
2433
+ return "";
2434
+ case "NGMicrosyntax":
2435
+ return e.map(() => [e.isFirst ? "" : Ii(e) ? " " : [";", x], r()], "body");
2436
+ case "NGMicrosyntaxKey":
2437
+ return /^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name) ? n.name : JSON.stringify(n.name);
2438
+ case "NGMicrosyntaxExpression":
2439
+ return [r("expression"), n.alias === null ? "" : [" as ", r("alias")]];
2440
+ case "NGMicrosyntaxKeyedExpression": {
2441
+ let { index: s, parent: u } = e, i = Ii(e) || Uc(e) || (s === 1 && (n.key.name === "then" || n.key.name === "else" || n.key.name === "as") || s === 2 && (n.key.name === "else" && u.body[s - 1].type === "NGMicrosyntaxKeyedExpression" && u.body[s - 1].key.name === "then" || n.key.name === "track")) && u.body[0].type === "NGMicrosyntaxExpression";
2442
+ return [r("key"), i ? " " : ": ", r("expression")];
2443
+ }
2444
+ case "NGMicrosyntaxLet":
2445
+ return ["let ", r("key"), n.value === null ? "" : [" = ", r("value")]];
2446
+ case "NGMicrosyntaxAs":
2447
+ return [r("key"), " as ", r("alias")];
2448
+ default:
2449
+ throw new qe(n, "Angular");
2450
+ }
2451
+ }
2452
+ function Ii({ node: e, index: t }) {
2453
+ return e.type === "NGMicrosyntaxKeyedExpression" && e.key.name === "of" && t === 1;
2454
+ }
2455
+ function Uc(e) {
2456
+ let { node: t } = e;
2457
+ return e.parent.body[1].key.name === "of" && t.type === "NGMicrosyntaxKeyedExpression" && t.key.name === "track" && t.key.type === "NGMicrosyntaxKey";
2458
+ }
2459
+ var Xc = R(["CallExpression", "OptionalCallExpression", "AssignmentExpression"]);
2460
+ function Yc({ node: e }) {
2461
+ return ur(e, Xc);
2462
+ }
2463
+ function ds(e, t, r) {
2464
+ let { node: n } = e;
2465
+ return l([b(x, e.map(r, "decorators")), _i(n, t) ? F : x]);
2466
+ }
2467
+ function wi(e, t, r) {
2468
+ return Mi(e.node) ? [b(F, e.map(r, "declaration", "decorators")), F] : "";
2469
+ }
2470
+ function Oi(e, t, r) {
2471
+ let { node: n, parent: s } = e, { decorators: u } = n;
2472
+ if (!O(u) || Mi(s) || Vr(e)) return "";
2473
+ let i = n.type === "ClassExpression" || n.type === "ClassDeclaration" || _i(n, t);
2474
+ return [e.key === "declaration" && yu(s) ? F : i ? Ce : "", b(x, e.map(r, "decorators")), x];
2475
+ }
2476
+ function _i(e, t) {
2477
+ return e.decorators.some((r) => ee(t.originalText, P(r)));
2478
+ }
2479
+ function Mi(e) {
2480
+ var r;
2481
+ if (e.type !== "ExportDefaultDeclaration" && e.type !== "ExportNamedDeclaration" && e.type !== "DeclareExportDeclaration") return false;
2482
+ let t = (r = e.declaration) == null ? void 0 : r.decorators;
2483
+ return O(t) && Bt(e, t[0]);
2484
+ }
2485
+ var Dt = (_class3 = class extends Error {constructor(...args) { super(...args); _class3.prototype.__init3.call(this); }
2486
+ __init3() {this.name = "ArgExpansionBailout"}
2487
+ }, _class3);
2488
+ function Hc(e, t, r) {
2489
+ let { node: n } = e, s = le(n);
2490
+ if (s.length === 0) return ["(", N(e, t), ")"];
2491
+ let u = s.length - 1;
2492
+ if (Kc(s)) {
2493
+ let f = ["("];
2494
+ return Gt(e, (y, C) => {
2495
+ f.push(r()), C !== u && f.push(", ");
2496
+ }), f.push(")"), f;
2497
+ }
2498
+ let i = false, a = [];
2499
+ Gt(e, ({ node: f }, y) => {
2500
+ let C = r();
2501
+ y === u || (me(f, t) ? (i = true, C = [C, ",", F, F]) : C = [C, ",", x]), a.push(C);
2502
+ });
2503
+ let o = !t.parser.startsWith("__ng_") && n.type !== "ImportExpression" && n.type !== "TSImportType" && ce(t, "all") ? "," : "";
2504
+ if (n.type === "TSImportType" && s.length === 1 && (s[0].type === "TSLiteralType" && K(s[0].literal) || K(s[0])) && !d(s[0])) return l(["(", ...a, S(o), ")"]);
2505
+ function p() {
2506
+ return l(["(", D([x, ...a]), o, x, ")"], { shouldBreak: true });
2507
+ }
2508
+ if (i || e.parent.type !== "Decorator" && Au(s)) return p();
2509
+ if ($c(s)) {
2510
+ let f = a.slice(1);
2511
+ if (f.some(re)) return p();
2512
+ let y;
2513
+ try {
2514
+ y = r(Gn(n, 0), { expandFirstArg: true });
2515
+ } catch (C) {
2516
+ if (C instanceof Dt) return p();
2517
+ throw C;
2518
+ }
2519
+ return re(y) ? [Ce, tt([["(", l(y, { shouldBreak: true }), ", ", ...f, ")"], p()])] : tt([["(", y, ", ", ...f, ")"], ["(", l(y, { shouldBreak: true }), ", ", ...f, ")"], p()]);
2520
+ }
2521
+ if (Vc(s, a, t)) {
2522
+ let f = a.slice(0, -1);
2523
+ if (f.some(re)) return p();
2524
+ let y;
2525
+ try {
2526
+ y = r(Gn(n, -1), { expandLastArg: true });
2527
+ } catch (C) {
2528
+ if (C instanceof Dt) return p();
2529
+ throw C;
2530
+ }
2531
+ return re(y) ? [Ce, tt([["(", ...f, l(y, { shouldBreak: true }), ")"], p()])] : tt([["(", ...f, y, ")"], ["(", ...f, l(y, { shouldBreak: true }), ")"], p()]);
2532
+ }
2533
+ let m = ["(", D([E, ...a]), S(o), E, ")"];
2534
+ return vr(e) ? m : l(m, { shouldBreak: a.some(re) || i });
2535
+ }
2536
+ function Dr(e, t = false) {
2537
+ return ue(e) && (e.properties.length > 0 || d(e)) || U(e) && (e.elements.length > 0 || d(e)) || e.type === "TSTypeAssertion" && Dr(e.expression) || xe(e) && Dr(e.expression) || e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && (!e.returnType || !e.returnType.typeAnnotation || e.returnType.typeAnnotation.type !== "TSTypeReference" || Qc(e.body)) && (e.body.type === "BlockStatement" || e.body.type === "ArrowFunctionExpression" && Dr(e.body, true) || ue(e.body) || U(e.body) || !t && (w(e.body) || e.body.type === "ConditionalExpression") || Y(e.body)) || e.type === "DoExpression" || e.type === "ModuleExpression";
2538
+ }
2539
+ function Vc(e, t, r) {
2540
+ var u, i;
2541
+ let n = v(false, e, -1);
2542
+ if (e.length === 1) {
2543
+ let a = v(false, t, -1);
2544
+ if ((u = a.label) != null && u.embed && ((i = a.label) == null ? void 0 : i.hug) !== false) return true;
2545
+ }
2546
+ let s = v(false, e, -2);
2547
+ return !d(n, h.Leading) && !d(n, h.Trailing) && Dr(n) && (!s || s.type !== n.type) && (e.length !== 2 || s.type !== "ArrowFunctionExpression" || !U(n)) && !(e.length > 1 && Ts(n, r));
2548
+ }
2549
+ function $c(e) {
2550
+ if (e.length !== 2) return false;
2551
+ let [t, r] = e;
2552
+ return t.type === "ModuleExpression" && zc(r) ? true : !d(t) && (t.type === "FunctionExpression" || t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement") && r.type !== "FunctionExpression" && r.type !== "ArrowFunctionExpression" && r.type !== "ConditionalExpression" && ji(r) && !Dr(r);
2553
+ }
2554
+ function ji(e) {
2555
+ if (e.type === "ParenthesizedExpression") return ji(e.expression);
2556
+ if (xe(e) || e.type === "TypeCastExpression") {
2557
+ let { typeAnnotation: t } = e;
2558
+ if (t.type === "TypeAnnotation" && (t = t.typeAnnotation), t.type === "TSArrayType" && (t = t.elementType, t.type === "TSArrayType" && (t = t.elementType)), t.type === "GenericTypeAnnotation" || t.type === "TSTypeReference") {
2559
+ let r = _nullishCoalesce(t.typeArguments, () => ( t.typeParameters));
2560
+ (r == null ? void 0 : r.params.length) === 1 && (t = r.params[0]);
2561
+ }
2562
+ return Nt(t) && we(e.expression, 1);
2563
+ }
2564
+ return yt(e) && le(e).length > 1 ? false : Fe(e) ? we(e.left, 1) && we(e.right, 1) : Jn(e) || we(e);
2565
+ }
2566
+ function Kc(e) {
2567
+ return e.length === 2 ? vi(e, 0) : e.length === 3 ? e[0].type === "Identifier" && vi(e, 1) : false;
2568
+ }
2569
+ function vi(e, t) {
2570
+ let r = e[t], n = e[t + 1];
2571
+ return r.type === "ArrowFunctionExpression" && Q(r).length === 0 && r.body.type === "BlockStatement" && n.type === "ArrayExpression" && !e.some((s) => d(s));
2572
+ }
2573
+ function Qc(e) {
2574
+ return e.type === "BlockStatement" && (e.body.some((t) => t.type !== "EmptyStatement") || d(e, h.Dangling));
2575
+ }
2576
+ function zc(e) {
2577
+ if (!(e.type === "ObjectExpression" && e.properties.length === 1)) return false;
2578
+ let [t] = e.properties;
2579
+ return Te(t) ? !t.computed && (t.key.type === "Identifier" && t.key.name === "type" || K(t.key) && t.key.value === "type") && K(t.value) && t.value.value === "module" : false;
2580
+ }
2581
+ var Lt = Hc;
2582
+ var Zc = (e) => ((e.type === "ChainExpression" || e.type === "TSNonNullExpression") && (e = e.expression), w(e) && le(e).length > 0);
2583
+ function Ri(e, t, r) {
2584
+ var p;
2585
+ let n = r("object"), s = xs(e, t, r), { node: u } = e, i = e.findAncestor((m) => !(G(m) || m.type === "TSNonNullExpression")), a = e.findAncestor((m) => !(m.type === "ChainExpression" || m.type === "TSNonNullExpression")), o = i && (i.type === "NewExpression" || i.type === "BindExpression" || i.type === "AssignmentExpression" && i.left.type !== "Identifier") || u.computed || u.object.type === "Identifier" && u.property.type === "Identifier" && !G(a) || (a.type === "AssignmentExpression" || a.type === "VariableDeclarator") && (Zc(u.object) || ((p = n.label) == null ? void 0 : p.memberChain));
2586
+ return at(n.label, [n, o ? s : l(D([E, s]))]);
2587
+ }
2588
+ function xs(e, t, r) {
2589
+ let n = r("property"), { node: s } = e, u = V(e);
2590
+ return s.computed ? !s.property || ye(s.property) ? [u, "[", n, "]"] : l([u, "[", D([E, n]), E, "]"]) : [u, ".", n];
2591
+ }
2592
+ function Ji(e, t, r) {
2593
+ if (e.node.type === "ChainExpression") return e.call(() => Ji(e, t, r), "expression");
2594
+ let n = (e.parent.type === "ChainExpression" ? e.grandparent : e.parent).type === "ExpressionStatement", s = [];
2595
+ function u(L) {
2596
+ let { originalText: se } = t, Ae = ot(se, P(L));
2597
+ return se.charAt(Ae) === ")" ? Ae !== false && vt(se, Ae + 1) : me(L, t);
2598
+ }
2599
+ function i() {
2600
+ let { node: L } = e;
2601
+ if (L.type === "ChainExpression") return e.call(i, "expression");
2602
+ if (w(L) && (dt(L.callee) || w(L.callee))) {
2603
+ let se = u(L);
2604
+ s.unshift({ node: L, hasTrailingEmptyLine: se, printed: [Ee(e, [V(e), rt(e, t, r), Lt(e, t, r)], t), se ? F : ""] }), e.call(i, "callee");
2605
+ } else dt(L) ? (s.unshift({ node: L, needsParens: Le(e, t), printed: Ee(e, G(L) ? xs(e, t, r) : Kr(e, t, r), t) }), e.call(i, "object")) : L.type === "TSNonNullExpression" ? (s.unshift({ node: L, printed: Ee(e, "!", t) }), e.call(i, "expression")) : s.unshift({ node: L, printed: r() });
2606
+ }
2607
+ let { node: a } = e;
2608
+ s.unshift({ node: a, printed: [V(e), rt(e, t, r), Lt(e, t, r)] }), a.callee && e.call(i, "callee");
2609
+ let o = [], p = [s[0]], m = 1;
2610
+ for (; m < s.length && (s[m].node.type === "TSNonNullExpression" || w(s[m].node) || G(s[m].node) && s[m].node.computed && ye(s[m].node.property)); ++m) p.push(s[m]);
2611
+ if (!w(s[0].node)) for (; m + 1 < s.length && (dt(s[m].node) && dt(s[m + 1].node)); ++m) p.push(s[m]);
2612
+ o.push(p), p = [];
2613
+ let f = false;
2614
+ for (; m < s.length; ++m) {
2615
+ if (f && dt(s[m].node)) {
2616
+ if (s[m].node.computed && ye(s[m].node.property)) {
2617
+ p.push(s[m]);
2618
+ continue;
2619
+ }
2620
+ o.push(p), p = [], f = false;
2621
+ }
2622
+ (w(s[m].node) || s[m].node.type === "ImportExpression") && (f = true), p.push(s[m]), d(s[m].node, h.Trailing) && (o.push(p), p = [], f = false);
2623
+ }
2624
+ p.length > 0 && o.push(p);
2625
+ function y(L) {
2626
+ return /^[A-Z]|^[$_]+$/u.test(L);
2627
+ }
2628
+ function C(L) {
2629
+ return L.length <= t.tabWidth;
2630
+ }
2631
+ function c(L) {
2632
+ var Ot;
2633
+ let se = (Ot = L[1][0]) == null ? void 0 : Ot.node.computed;
2634
+ if (L[0].length === 1) {
2635
+ let nt = L[0][0].node;
2636
+ return nt.type === "ThisExpression" || nt.type === "Identifier" && (y(nt.name) || n && C(nt.name) || se);
2637
+ }
2638
+ let Ae = v(false, L[0], -1).node;
2639
+ return G(Ae) && Ae.property.type === "Identifier" && (y(Ae.property.name) || se);
2640
+ }
2641
+ let A = o.length >= 2 && !d(o[1][0].node) && c(o);
2642
+ function T(L) {
2643
+ let se = L.map((Ae) => Ae.printed);
2644
+ return L.length > 0 && v(false, L, -1).needsParens ? ["(", ...se, ")"] : se;
2645
+ }
2646
+ function B(L) {
2647
+ return L.length === 0 ? "" : D([F, b(F, L.map(T))]);
2648
+ }
2649
+ let g = o.map(T), _ = g, M = A ? 3 : 2, J = o.flat(), I = J.slice(1, -1).some((L) => d(L.node, h.Leading)) || J.slice(0, -1).some((L) => d(L.node, h.Trailing)) || o[M] && d(o[M][0].node, h.Leading);
2650
+ if (o.length <= M && !I && !o.some((L) => v(false, L, -1).hasTrailingEmptyLine)) return vr(e) ? _ : l(_);
2651
+ let q = v(false, o[A ? 1 : 0], -1).node, k = !w(q) && u(q), W = [T(o[0]), A ? o.slice(1, 2).map(T) : "", k ? F : "", B(o.slice(A ? 2 : 1))], ne = s.map(({ node: L }) => L).filter(w);
2652
+ function Z() {
2653
+ let L = v(false, v(false, o, -1), -1).node, se = v(false, g, -1);
2654
+ return w(L) && re(se) && ne.slice(0, -1).some((Ae) => Ae.arguments.some(Rt));
2655
+ }
2656
+ let lt;
2657
+ return I || ne.length > 2 && ne.some((L) => !L.arguments.every((se) => we(se))) || g.slice(0, -1).some(re) || Z() ? lt = l(W) : lt = [re(_) || k ? Ce : "", tt([_, W])], at({ memberChain: true }, lt);
2658
+ }
2659
+ var Ni = Ji;
2660
+ function Qr(e, t, r) {
2661
+ var m;
2662
+ let { node: n } = e, s = n.type === "NewExpression", u = n.type === "ImportExpression", i = V(e), a = le(n), o = a.length === 1 && _r(a[0], t.originalText);
2663
+ if (o || el(e) || Pt(n, e.parent)) {
2664
+ let f = [];
2665
+ if (Gt(e, () => {
2666
+ f.push(r());
2667
+ }), !(o && ((m = f[0].label) != null && m.embed))) return [s ? "new " : "", Gi(e, r), i, rt(e, t, r), "(", b(", ", f), ")"];
2668
+ }
2669
+ if (!u && !s && dt(n.callee) && !e.call((f) => Le(f, t), "callee", ...n.callee.type === "ChainExpression" ? ["expression"] : [])) return Ni(e, t, r);
2670
+ let p = [s ? "new " : "", Gi(e, r), i, rt(e, t, r), Lt(e, t, r)];
2671
+ return u || w(n.callee) ? l(p) : p;
2672
+ }
2673
+ function Gi(e, t) {
2674
+ let { node: r } = e;
2675
+ return r.type === "ImportExpression" ? `import${r.phase ? `.${r.phase}` : ""}` : t("callee");
2676
+ }
2677
+ function el(e) {
2678
+ let { node: t } = e;
2679
+ if (t.type !== "CallExpression" || t.optional || t.callee.type !== "Identifier") return false;
2680
+ let r = le(t);
2681
+ return t.callee.name === "require" ? r.length === 1 && K(r[0]) || r.length > 1 : t.callee.name === "define" && e.parent.type === "ExpressionStatement" ? r.length === 1 || r.length === 2 && r[0].type === "ArrayExpression" || r.length === 3 && K(r[0]) && r[1].type === "ArrayExpression" : false;
2682
+ }
2683
+ function ht(e, t, r, n, s, u) {
2684
+ let i = tl(e, t, r, n, u), a = u ? r(u, { assignmentLayout: i }) : "";
2685
+ switch (i) {
2686
+ case "break-after-operator":
2687
+ return l([l(n), s, l(D([x, a]))]);
2688
+ case "never-break-after-operator":
2689
+ return l([l(n), s, " ", a]);
2690
+ case "fluid": {
2691
+ let o = Symbol("assignment");
2692
+ return l([l(n), s, l(D(x), { id: o }), je, xt(a, { groupId: o })]);
2693
+ }
2694
+ case "break-lhs":
2695
+ return l([n, s, " ", l(a)]);
2696
+ case "chain":
2697
+ return [l(n), s, x, a];
2698
+ case "chain-tail":
2699
+ return [l(n), s, D([x, a])];
2700
+ case "chain-tail-arrow-chain":
2701
+ return [l(n), s, a];
2702
+ case "only-left":
2703
+ return n;
2704
+ }
2705
+ }
2706
+ function Wi(e, t, r) {
2707
+ let { node: n } = e;
2708
+ return ht(e, t, r, r("left"), [" ", n.operator], "right");
2709
+ }
2710
+ function Ui(e, t, r) {
2711
+ return ht(e, t, r, r("id"), " =", "init");
2712
+ }
2713
+ function tl(e, t, r, n, s) {
2714
+ let { node: u } = e, i = u[s];
2715
+ if (!i) return "only-left";
2716
+ let a = !zr(i);
2717
+ if (e.match(zr, Xi, (y) => !a || y.type !== "ExpressionStatement" && y.type !== "VariableDeclaration")) return a ? i.type === "ArrowFunctionExpression" && i.body.type === "ArrowFunctionExpression" ? "chain-tail-arrow-chain" : "chain-tail" : "chain";
2718
+ if (!a && zr(i.right) || de(t.originalText, i)) return "break-after-operator";
2719
+ if (u.type === "ImportAttribute" || i.type === "CallExpression" && i.callee.name === "require" || t.parser === "json5" || t.parser === "jsonc" || t.parser === "json") return "never-break-after-operator";
2720
+ let m = Lu(n);
2721
+ if (nl(u) || al(u) || hs(u) && m) return "break-lhs";
2722
+ let f = pl(u, n, t);
2723
+ return e.call(() => rl(e, t, r, f), s) ? "break-after-operator" : sl(u) ? "break-lhs" : !m && (f || i.type === "TemplateLiteral" || i.type === "TaggedTemplateExpression" || Du(i) || ye(i) || i.type === "ClassExpression") ? "never-break-after-operator" : "fluid";
2724
+ }
2725
+ function rl(e, t, r, n) {
2726
+ let s = e.node;
2727
+ if (Fe(s) && !Ht(s)) return true;
2728
+ switch (s.type) {
2729
+ case "StringLiteralTypeAnnotation":
2730
+ case "SequenceExpression":
2731
+ return true;
2732
+ case "TSConditionalType":
2733
+ case "ConditionalTypeAnnotation":
2734
+ if (!t.experimentalTernaries && !ml(s)) break;
2735
+ return true;
2736
+ case "ConditionalExpression": {
2737
+ if (!t.experimentalTernaries) {
2738
+ let { test: p } = s;
2739
+ return Fe(p) && !Ht(p);
2740
+ }
2741
+ let { consequent: a, alternate: o } = s;
2742
+ return a.type === "ConditionalExpression" || o.type === "ConditionalExpression";
2743
+ }
2744
+ case "ClassExpression":
2745
+ return O(s.decorators);
2746
+ }
2747
+ if (n) return false;
2748
+ let u = s, i = [];
2749
+ for (; ; ) if (u.type === "UnaryExpression" || u.type === "AwaitExpression" || u.type === "YieldExpression" && u.argument !== null) u = u.argument, i.push("argument");
2750
+ else if (u.type === "TSNonNullExpression") u = u.expression, i.push("expression");
2751
+ else break;
2752
+ return !!(K(u) || e.call(() => Yi(e, t, r), ...i));
2753
+ }
2754
+ function nl(e) {
2755
+ if (Xi(e)) {
2756
+ let t = e.left || e.id;
2757
+ return t.type === "ObjectPattern" && t.properties.length > 2 && t.properties.some((r) => {
2758
+ var n;
2759
+ return Te(r) && (!r.shorthand || ((n = r.value) == null ? void 0 : n.type) === "AssignmentPattern");
2760
+ });
2761
+ }
2762
+ return false;
2763
+ }
2764
+ function zr(e) {
2765
+ return e.type === "AssignmentExpression";
2766
+ }
2767
+ function Xi(e) {
2768
+ return zr(e) || e.type === "VariableDeclarator";
2769
+ }
2770
+ function sl(e) {
2771
+ let t = il(e);
2772
+ if (O(t)) {
2773
+ let r = e.type === "TSTypeAliasDeclaration" ? "constraint" : "bound";
2774
+ if (t.length > 1 && t.some((n) => n[r] || n.default)) return true;
2775
+ }
2776
+ return false;
2777
+ }
2778
+ var ul = R(["TSTypeAliasDeclaration", "TypeAlias"]);
2779
+ function il(e) {
2780
+ var t;
2781
+ if (ul(e)) return (t = e.typeParameters) == null ? void 0 : t.params;
2782
+ }
2783
+ function al(e) {
2784
+ if (e.type !== "VariableDeclarator") return false;
2785
+ let { typeAnnotation: t } = e.id;
2786
+ if (!t || !t.typeAnnotation) return false;
2787
+ let r = qi(t.typeAnnotation);
2788
+ return O(r) && r.length > 1 && r.some((n) => O(qi(n)) || n.type === "TSConditionalType");
2789
+ }
2790
+ function hs(e) {
2791
+ var t;
2792
+ return e.type === "VariableDeclarator" && ((t = e.init) == null ? void 0 : t.type) === "ArrowFunctionExpression";
2793
+ }
2794
+ var ol = R(["TSTypeReference", "GenericTypeAnnotation"]);
2795
+ function qi(e) {
2796
+ var t;
2797
+ if (ol(e)) return (t = _nullishCoalesce(e.typeArguments, () => ( e.typeParameters))) == null ? void 0 : t.params;
2798
+ }
2799
+ function Yi(e, t, r, n = false) {
2800
+ var i;
2801
+ let { node: s } = e, u = () => Yi(e, t, r, true);
2802
+ if (s.type === "ChainExpression" || s.type === "TSNonNullExpression") return e.call(u, "expression");
2803
+ if (w(s)) {
2804
+ if ((i = Qr(e, t, r).label) != null && i.memberChain) return false;
2805
+ let o = le(s);
2806
+ return !(o.length === 0 || o.length === 1 && ir(o[0], t)) || cl(s, r) ? false : e.call(u, "callee");
2807
+ }
2808
+ return G(s) ? e.call(u, "object") : n && (s.type === "Identifier" || s.type === "ThisExpression");
2809
+ }
2810
+ function pl(e, t, r) {
2811
+ return Te(e) ? (t = Ut(t), typeof t == "string" && st(t) < r.tabWidth + 3) : false;
2812
+ }
2813
+ function cl(e, t) {
2814
+ let r = ll(e);
2815
+ if (O(r)) {
2816
+ if (r.length > 1) return true;
2817
+ if (r.length === 1) {
2818
+ let s = r[0];
2819
+ if (Oe(s) || qt(s) || s.type === "TSTypeLiteral" || s.type === "ObjectTypeAnnotation") return true;
2820
+ }
2821
+ let n = e.typeParameters ? "typeParameters" : "typeArguments";
2822
+ if (re(t(n))) return true;
2823
+ }
2824
+ return false;
2825
+ }
2826
+ function ll(e) {
2827
+ var t;
2828
+ return (t = _nullishCoalesce(e.typeParameters, () => ( e.typeArguments))) == null ? void 0 : t.params;
2829
+ }
2830
+ function ml(e) {
2831
+ function t(r) {
2832
+ switch (r.type) {
2833
+ case "FunctionTypeAnnotation":
2834
+ case "GenericTypeAnnotation":
2835
+ case "TSFunctionType":
2836
+ return !!r.typeParameters;
2837
+ case "TSTypeReference":
2838
+ return !!(_nullishCoalesce(r.typeArguments, () => ( r.typeParameters)));
2839
+ default:
2840
+ return false;
2841
+ }
2842
+ }
2843
+ return t(e.checkType) || t(e.extendsType);
2844
+ }
2845
+ function Ue(e, t, r, n, s) {
2846
+ let u = e.node, i = Q(u), a = s ? rt(e, t, r) : "";
2847
+ if (i.length === 0) return [a, "(", N(e, t, { filter: (c) => ke(t.originalText, P(c)) === ")" }), ")"];
2848
+ let { parent: o } = e, p = Pt(o), m = gs(u), f = [];
2849
+ if (hu(e, (c, A) => {
2850
+ let T = A === i.length - 1;
2851
+ T && u.rest && f.push("..."), f.push(r()), !T && (f.push(","), p || m ? f.push(" ") : me(i[A], t) ? f.push(F, F) : f.push(x));
2852
+ }), n && !fl(e)) {
2853
+ if (re(a) || re(f)) throw new Dt();
2854
+ return l([cr(a), "(", cr(f), ")"]);
2855
+ }
2856
+ let y = i.every((c) => !O(c.decorators));
2857
+ return m && y ? [a, "(", ...f, ")"] : p ? [a, "(", ...f, ")"] : (Or(o) || Eu(o) || o.type === "TypeAlias" || o.type === "UnionTypeAnnotation" || o.type === "IntersectionTypeAnnotation" || o.type === "FunctionTypeAnnotation" && o.returnType === u) && i.length === 1 && i[0].name === null && u.this !== i[0] && i[0].typeAnnotation && u.typeParameters === null && Nt(i[0].typeAnnotation) && !u.rest ? t.arrowParens === "always" || u.type === "HookTypeAnnotation" ? ["(", ...f, ")"] : f : [a, "(", D([E, ...f]), S(!xu(u) && ce(t, "all") ? "," : ""), E, ")"];
2858
+ }
2859
+ function gs(e) {
2860
+ if (!e) return false;
2861
+ let t = Q(e);
2862
+ if (t.length !== 1) return false;
2863
+ let [r] = t;
2864
+ return !d(r) && (r.type === "ObjectPattern" || r.type === "ArrayPattern" || r.type === "Identifier" && r.typeAnnotation && (r.typeAnnotation.type === "TypeAnnotation" || r.typeAnnotation.type === "TSTypeAnnotation") && Re(r.typeAnnotation.typeAnnotation) || r.type === "FunctionTypeParam" && Re(r.typeAnnotation) && r !== e.rest || r.type === "AssignmentPattern" && (r.left.type === "ObjectPattern" || r.left.type === "ArrayPattern") && (r.right.type === "Identifier" || ue(r.right) && r.right.properties.length === 0 || U(r.right) && r.right.elements.length === 0));
2865
+ }
2866
+ function yl(e) {
2867
+ let t;
2868
+ return e.returnType ? (t = e.returnType, t.typeAnnotation && (t = t.typeAnnotation)) : e.typeAnnotation && (t = e.typeAnnotation), t;
2869
+ }
2870
+ function ct(e, t) {
2871
+ var s;
2872
+ let r = yl(e);
2873
+ if (!r) return false;
2874
+ let n = (s = e.typeParameters) == null ? void 0 : s.params;
2875
+ if (n) {
2876
+ if (n.length > 1) return false;
2877
+ if (n.length === 1) {
2878
+ let u = n[0];
2879
+ if (u.constraint || u.default) return false;
2880
+ }
2881
+ }
2882
+ return Q(e).length === 1 && (Re(r) || re(t));
2883
+ }
2884
+ function fl(e) {
2885
+ return e.match((t) => t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement", (t, r) => {
2886
+ if (t.type === "CallExpression" && r === "arguments" && t.arguments.length === 1 && t.callee.type === "CallExpression") {
2887
+ let n = t.callee.callee;
2888
+ return n.type === "Identifier" || n.type === "MemberExpression" && !n.computed && n.object.type === "Identifier" && n.property.type === "Identifier";
2889
+ }
2890
+ return false;
2891
+ }, (t, r) => t.type === "VariableDeclarator" && r === "init" || t.type === "ExportDefaultDeclaration" && r === "declaration" || t.type === "TSExportAssignment" && r === "expression" || t.type === "AssignmentExpression" && r === "right" && t.left.type === "MemberExpression" && t.left.object.type === "Identifier" && t.left.object.name === "module" && t.left.property.type === "Identifier" && t.left.property.name === "exports", (t) => t.type !== "VariableDeclaration" || t.kind === "const" && t.declarations.length === 1);
2892
+ }
2893
+ function Hi(e) {
2894
+ let t = Q(e);
2895
+ return t.length > 1 && t.some((r) => r.type === "TSParameterProperty");
2896
+ }
2897
+ var Dl = R(["VoidTypeAnnotation", "TSVoidKeyword", "NullLiteralTypeAnnotation", "TSNullKeyword"]);
2898
+ var El = R(["ObjectTypeAnnotation", "TSTypeLiteral", "GenericTypeAnnotation", "TSTypeReference"]);
2899
+ function Fl(e) {
2900
+ let { types: t } = e;
2901
+ if (t.some((n) => d(n))) return false;
2902
+ let r = t.find((n) => El(n));
2903
+ return r ? t.every((n) => n === r || Dl(n)) : false;
2904
+ }
2905
+ function Ss(e) {
2906
+ return Nt(e) || Re(e) ? true : Oe(e) ? Fl(e) : false;
2907
+ }
2908
+ function Vi(e, t, r) {
2909
+ let n = t.semi ? ";" : "", { node: s } = e, u = [$(e), "opaque type ", r("id"), r("typeParameters")];
2910
+ return s.supertype && u.push(": ", r("supertype")), s.impltype && u.push(" = ", r("impltype")), u.push(n), u;
2911
+ }
2912
+ function Zr(e, t, r) {
2913
+ let n = t.semi ? ";" : "", { node: s } = e, u = [$(e)];
2914
+ u.push("type ", r("id"), r("typeParameters"));
2915
+ let i = s.type === "TSTypeAliasDeclaration" ? "typeAnnotation" : "right";
2916
+ return [ht(e, t, r, u, " =", i), n];
2917
+ }
2918
+ function en(e, t, r) {
2919
+ let n = false;
2920
+ return l(e.map(({ isFirst: s, previous: u, node: i, index: a }) => {
2921
+ let o = r();
2922
+ if (s) return o;
2923
+ let p = Re(i), m = Re(u);
2924
+ return m && p ? [" & ", n ? D(o) : o] : !m && !p || de(t.originalText, i) ? t.experimentalOperatorPosition === "start" ? D([x, "& ", o]) : D([" &", x, o]) : (a > 1 && (n = true), [" & ", a > 1 ? D(o) : o]);
2925
+ }, "types"));
2926
+ }
2927
+ function tn(e, t, r) {
2928
+ let { node: n } = e, { parent: s } = e, u = s.type !== "TypeParameterInstantiation" && (!Je(s) || !t.experimentalTernaries) && s.type !== "TSTypeParameterInstantiation" && s.type !== "GenericTypeAnnotation" && s.type !== "TSTypeReference" && s.type !== "TSTypeAssertion" && s.type !== "TupleTypeAnnotation" && s.type !== "TSTupleType" && !(s.type === "FunctionTypeParam" && !s.name && e.grandparent.this !== s) && !((s.type === "TypeAlias" || s.type === "VariableDeclarator" || s.type === "TSTypeAliasDeclaration") && de(t.originalText, n)), i = Ss(n), a = e.map((m) => {
2929
+ let f = r();
2930
+ return i || (f = be(2, f)), Ee(m, f, t);
2931
+ }, "types");
2932
+ if (i) return b(" | ", a);
2933
+ let o = u && !de(t.originalText, n), p = [S([o ? x : "", "| "]), b([x, "| "], a)];
2934
+ return Le(e, t) ? l([D(p), E]) : (s.type === "TupleTypeAnnotation" || s.type === "TSTupleType") && s[s.type === "TupleTypeAnnotation" && s.types ? "types" : "elementTypes"].length > 1 ? l([D([S(["(", E]), p]), E, S(")")]) : l(u ? D(p) : p);
2935
+ }
2936
+ function Cl(e) {
2937
+ var n;
2938
+ let { node: t, parent: r } = e;
2939
+ return t.type === "FunctionTypeAnnotation" && (Or(r) || !((r.type === "ObjectTypeProperty" || r.type === "ObjectTypeInternalSlot") && !r.variance && !r.optional && Bt(r, t) || r.type === "ObjectTypeCallProperty" || ((n = e.getParentNode(2)) == null ? void 0 : n.type) === "DeclareFunction"));
2940
+ }
2941
+ function rn(e, t, r) {
2942
+ let { node: n } = e, s = [Vt(e)];
2943
+ (n.type === "TSConstructorType" || n.type === "TSConstructSignatureDeclaration") && s.push("new ");
2944
+ let u = Ue(e, t, r, false, true), i = [];
2945
+ return n.type === "FunctionTypeAnnotation" ? i.push(Cl(e) ? " => " : ": ", r("returnType")) : i.push(H(e, r, n.returnType ? "returnType" : "typeAnnotation")), ct(n, i) && (u = l(u)), s.push(u, i), l(s);
2946
+ }
2947
+ function nn(e, t, r) {
2948
+ return [r("objectType"), V(e), "[", r("indexType"), "]"];
2949
+ }
2950
+ function sn(e, t, r) {
2951
+ return ["infer ", r("typeParameter")];
2952
+ }
2953
+ function Bs(e, t, r) {
2954
+ let { node: n } = e;
2955
+ return [n.postfix ? "" : r, H(e, t), n.postfix ? r : ""];
2956
+ }
2957
+ function un(e, t, r) {
2958
+ let { node: n } = e;
2959
+ return ["...", ...n.type === "TupleTypeSpreadElement" && n.label ? [r("label"), ": "] : [], r("typeAnnotation")];
2960
+ }
2961
+ function an(e, t, r) {
2962
+ let { node: n } = e;
2963
+ return [n.variance ? r("variance") : "", r("label"), n.optional ? "?" : "", ": ", r("elementType")];
2964
+ }
2965
+ var Al = /* @__PURE__ */ new WeakSet();
2966
+ function H(e, t, r = "typeAnnotation") {
2967
+ let { node: { [r]: n } } = e;
2968
+ if (!n) return "";
2969
+ let s = false;
2970
+ if (n.type === "TSTypeAnnotation" || n.type === "TypeAnnotation") {
2971
+ let u = e.call($i, r);
2972
+ (u === "=>" || u === ":" && d(n, h.Leading)) && (s = true), Al.add(n);
2973
+ }
2974
+ return s ? [" ", t(r)] : t(r);
2975
+ }
2976
+ var $i = (e) => e.match((t) => t.type === "TSTypeAnnotation", (t, r) => (r === "returnType" || r === "typeAnnotation") && (t.type === "TSFunctionType" || t.type === "TSConstructorType")) ? "=>" : e.match((t) => t.type === "TSTypeAnnotation", (t, r) => r === "typeAnnotation" && (t.type === "TSJSDocNullableType" || t.type === "TSJSDocNonNullableType" || t.type === "TSTypePredicate")) || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareFunction") || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareHook") || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "bound" && t.type === "TypeParameter" && t.usesExtendsBound) ? "" : ":";
2977
+ function on(e, t, r) {
2978
+ let n = $i(e);
2979
+ return n ? [n, " ", r("typeAnnotation")] : r("typeAnnotation");
2980
+ }
2981
+ function pn(e) {
2982
+ return [e("elementType"), "[]"];
2983
+ }
2984
+ function cn({ node: e }, t) {
2985
+ let r = e.type === "TSTypeQuery" ? "exprName" : "argument", n = e.type === "TypeofTypeAnnotation" || e.typeArguments ? "typeArguments" : "typeParameters";
2986
+ return ["typeof ", t(r), t(n)];
2987
+ }
2988
+ function ln(e, t) {
2989
+ let { node: r } = e;
2990
+ return [r.type === "TSTypePredicate" && r.asserts ? "asserts " : r.type === "TypePredicate" && r.kind ? `${r.kind} ` : "", t("parameterName"), r.typeAnnotation ? [" is ", H(e, t)] : ""];
2991
+ }
2992
+ function V(e) {
2993
+ let { node: t } = e;
2994
+ return !t.optional || t.type === "Identifier" && t === e.parent.key ? "" : w(t) || G(t) && t.computed || t.type === "OptionalIndexedAccessType" ? "?." : "?";
2995
+ }
2996
+ function mn(e) {
2997
+ return e.node.definite || e.match(void 0, (t, r) => r === "id" && t.type === "VariableDeclarator" && t.definite) ? "!" : "";
2998
+ }
2999
+ var dl = /* @__PURE__ */ new Set(["DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "DeclareVariable", "DeclareExportDeclaration", "DeclareExportAllDeclaration", "DeclareOpaqueType", "DeclareTypeAlias", "DeclareEnum", "DeclareInterface"]);
3000
+ function $(e) {
3001
+ let { node: t } = e;
3002
+ return t.declare || dl.has(t.type) && e.parent.type !== "DeclareExportDeclaration" ? "declare " : "";
3003
+ }
3004
+ var Tl = /* @__PURE__ */ new Set(["TSAbstractMethodDefinition", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
3005
+ function Vt({ node: e }) {
3006
+ return e.abstract || Tl.has(e.type) ? "abstract " : "";
3007
+ }
3008
+ function rt(e, t, r) {
3009
+ let n = e.node;
3010
+ return n.typeArguments ? r("typeArguments") : n.typeParameters ? r("typeParameters") : "";
3011
+ }
3012
+ function Kr(e, t, r) {
3013
+ return ["::", r("callee")];
3014
+ }
3015
+ function Et(e, t, r) {
3016
+ return e.type === "EmptyStatement" ? ";" : e.type === "BlockStatement" || r ? [" ", t] : D([x, t]);
3017
+ }
3018
+ function yn(e, t) {
3019
+ return ["...", t("argument"), H(e, t)];
3020
+ }
3021
+ function $t(e) {
3022
+ return e.accessibility ? e.accessibility + " " : "";
3023
+ }
3024
+ function xl(e, t, r, n) {
3025
+ let { node: s } = e, u = s.inexact ? "..." : "";
3026
+ return d(s, h.Dangling) ? l([r, u, N(e, t, { indent: true }), E, n]) : [r, u, n];
3027
+ }
3028
+ function Kt(e, t, r) {
3029
+ let { node: n } = e, s = [], u = "[", i = "]", a = n.type === "TupleTypeAnnotation" && n.types ? "types" : n.type === "TSTupleType" || n.type === "TupleTypeAnnotation" ? "elementTypes" : "elements", o = n[a];
3030
+ if (o.length === 0) s.push(xl(e, t, u, i));
3031
+ else {
3032
+ let p = v(false, o, -1), m = (p == null ? void 0 : p.type) !== "RestElement" && !n.inexact, f = p === null, y = Symbol("array"), C = !t.__inJestEach && o.length > 1 && o.every((T, B, g) => {
3033
+ let _ = T == null ? void 0 : T.type;
3034
+ if (!U(T) && !ue(T)) return false;
3035
+ let M = g[B + 1];
3036
+ if (M && _ !== M.type) return false;
3037
+ let J = U(T) ? "elements" : "properties";
3038
+ return T[J] && T[J].length > 1;
3039
+ }), c = Ts(n, t), A = m ? f ? "," : ce(t) ? c ? S(",", "", { groupId: y }) : S(",") : "" : "";
3040
+ s.push(l([u, D([E, c ? gl(e, t, r, A) : [hl(e, t, r, a, n.inexact), A], N(e, t)]), E, i], { shouldBreak: C, id: y }));
3041
+ }
3042
+ return s.push(V(e), H(e, r)), s;
3043
+ }
3044
+ function Ts(e, t) {
3045
+ return U(e) && e.elements.length > 1 && e.elements.every((r) => r && (ye(r) || Rn(r) && !d(r.argument)) && !d(r, h.Trailing | h.Line, (n) => !ee(t.originalText, j(n), { backwards: true })));
3046
+ }
3047
+ function Ki({ node: e }, { originalText: t }) {
3048
+ let r = (s) => _t(t, Mt(t, s)), n = (s) => t[s] === "," ? s : n(r(s + 1));
3049
+ return vt(t, n(P(e)));
3050
+ }
3051
+ function hl(e, t, r, n, s) {
3052
+ let u = [];
3053
+ return e.each(({ node: i, isLast: a }) => {
3054
+ u.push(i ? l(r()) : ""), (!a || s) && u.push([",", x, i && Ki(e, t) ? E : ""]);
3055
+ }, n), s && u.push("..."), u;
3056
+ }
3057
+ function gl(e, t, r, n) {
3058
+ let s = [];
3059
+ return e.each(({ isLast: u, next: i }) => {
3060
+ s.push([r(), u ? n : ","]), u || s.push(Ki(e, t) ? [F, F] : d(i, h.Leading | h.Line) ? F : x);
3061
+ }, "elements"), Nr(s);
3062
+ }
3063
+ var Sl = /^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/;
3064
+ var Bl = (e) => Sl.test(e);
3065
+ var Qi = Bl;
3066
+ function bl(e) {
3067
+ return e.length === 1 ? e : e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u, "$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u, "$1").replace(/^([+-])?\./u, "$10.").replace(/(\.\d+?)0+(?=e|$)/u, "$1").replace(/\.(?=e|$)/u, "");
3068
+ }
3069
+ var Ft = bl;
3070
+ var fn = /* @__PURE__ */ new WeakMap();
3071
+ function Zi(e) {
3072
+ return /^(?:\d+|\d+\.\d+)$/u.test(e);
3073
+ }
3074
+ function zi(e, t) {
3075
+ return t.parser === "json" || t.parser === "jsonc" || !K(e.key) || ut(ae(e.key), t).slice(1, -1) !== e.key.value ? false : !!(Qi(e.key.value) && !(t.parser === "babel-ts" && e.type === "ClassProperty" || (t.parser === "typescript" || t.parser === "oxc-ts") && e.type === "PropertyDefinition") || Zi(e.key.value) && String(Number(e.key.value)) === e.key.value && e.type !== "ImportAttribute" && (t.parser === "babel" || t.parser === "acorn" || t.parser === "oxc" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree"));
3076
+ }
3077
+ function Pl(e, t) {
3078
+ let { key: r } = e.node;
3079
+ return (r.type === "Identifier" || ye(r) && Zi(Ft(ae(r))) && String(r.value) === Ft(ae(r)) && !(t.parser === "typescript" || t.parser === "babel-ts" || t.parser === "oxc-ts")) && (t.parser === "json" || t.parser === "jsonc" || t.quoteProps === "consistent" && fn.get(e.parent));
3080
+ }
3081
+ function Ct(e, t, r) {
3082
+ let { node: n } = e;
3083
+ if (n.computed) return ["[", r("key"), "]"];
3084
+ let { parent: s } = e, { key: u } = n;
3085
+ if (t.quoteProps === "consistent" && !fn.has(s)) {
3086
+ let i = e.siblings.some((a) => !a.computed && K(a.key) && !zi(a, t));
3087
+ fn.set(s, i);
3088
+ }
3089
+ if (Pl(e, t)) {
3090
+ let i = ut(JSON.stringify(u.type === "Identifier" ? u.name : u.value.toString()), t);
3091
+ return e.call((a) => Ee(a, i, t), "key");
3092
+ }
3093
+ return zi(n, t) && (t.quoteProps === "as-needed" || t.quoteProps === "consistent" && !fn.get(s)) ? e.call((i) => Ee(i, /^\d/u.test(u.value) ? Ft(u.value) : u.value, t), "key") : r("key");
3094
+ }
3095
+ function Dn(e, t, r) {
3096
+ let { node: n } = e;
3097
+ return n.shorthand ? r("value") : ht(e, t, r, Ct(e, t, r), ":", "value");
3098
+ }
3099
+ var kl = ({ node: e, key: t, parent: r }) => t === "value" && e.type === "FunctionExpression" && (r.type === "ObjectMethod" || r.type === "ClassMethod" || r.type === "ClassPrivateMethod" || r.type === "MethodDefinition" || r.type === "TSAbstractMethodDefinition" || r.type === "TSDeclareMethod" || r.type === "Property" && bt(r));
3100
+ function En(e, t, r, n) {
3101
+ if (kl(e)) return Fn(e, t, r);
3102
+ let { node: s } = e, u = false;
3103
+ if ((s.type === "FunctionDeclaration" || s.type === "FunctionExpression") && (n != null && n.expandLastArg)) {
3104
+ let { parent: m } = e;
3105
+ w(m) && (le(m).length > 1 || Q(s).every((f) => f.type === "Identifier" && !f.typeAnnotation)) && (u = true);
3106
+ }
3107
+ let i = [$(e), s.async ? "async " : "", `function${s.generator ? "*" : ""} `, s.id ? r("id") : ""], a = Ue(e, t, r, u), o = Qt(e, r), p = ct(s, o);
3108
+ return i.push(rt(e, t, r), l([p ? l(a) : a, o]), s.body ? " " : "", r("body")), t.semi && (s.declare || !s.body) && i.push(";"), i;
3109
+ }
3110
+ function Er(e, t, r) {
3111
+ let { node: n } = e, { kind: s } = n, u = n.value || n, i = [];
3112
+ return !s || s === "init" || s === "method" || s === "constructor" ? u.async && i.push("async ") : (jt.ok(s === "get" || s === "set"), i.push(s, " ")), u.generator && i.push("*"), i.push(Ct(e, t, r), n.optional ? "?" : "", n === u ? Fn(e, t, r) : r("value")), i;
3113
+ }
3114
+ function Fn(e, t, r) {
3115
+ let { node: n } = e, s = Ue(e, t, r), u = Qt(e, r), i = Hi(n), a = ct(n, u), o = [rt(e, t, r), l([i ? l(s, { shouldBreak: true }) : a ? l(s) : s, u])];
3116
+ return n.body ? o.push(" ", r("body")) : o.push(t.semi ? ";" : ""), o;
3117
+ }
3118
+ function Il(e) {
3119
+ let t = Q(e);
3120
+ return t.length === 1 && !e.typeParameters && !d(e, h.Dangling) && t[0].type === "Identifier" && !t[0].typeAnnotation && !d(t[0]) && !t[0].optional && !e.predicate && !e.returnType;
3121
+ }
3122
+ function Cn(e, t) {
3123
+ if (t.arrowParens === "always") return false;
3124
+ if (t.arrowParens === "avoid") {
3125
+ let { node: r } = e;
3126
+ return Il(r);
3127
+ }
3128
+ return false;
3129
+ }
3130
+ function Qt(e, t) {
3131
+ let { node: r } = e, s = [H(e, t, "returnType")];
3132
+ return r.predicate && s.push(t("predicate")), s;
3133
+ }
3134
+ function ea(e, t, r) {
3135
+ let { node: n } = e, s = t.semi ? ";" : "", u = [];
3136
+ if (n.argument) {
3137
+ let o = r("argument");
3138
+ Ll(t, n.argument) ? o = ["(", D([F, o]), F, ")"] : (Fe(n.argument) || t.experimentalTernaries && n.argument.type === "ConditionalExpression" && (n.argument.consequent.type === "ConditionalExpression" || n.argument.alternate.type === "ConditionalExpression")) && (o = l([S("("), D([E, o]), E, S(")")])), u.push(" ", o);
3139
+ }
3140
+ let i = d(n, h.Dangling), a = s && i && d(n, h.Last | h.Line);
3141
+ return a && u.push(s), i && u.push(" ", N(e, t)), a || u.push(s), u;
3142
+ }
3143
+ function ta(e, t, r) {
3144
+ return ["return", ea(e, t, r)];
3145
+ }
3146
+ function ra(e, t, r) {
3147
+ return ["throw", ea(e, t, r)];
3148
+ }
3149
+ function Ll(e, t) {
3150
+ if (de(e.originalText, t) || d(t, h.Leading, (r) => ie(e.originalText, j(r), P(r))) && !Y(t)) return true;
3151
+ if (Jt(t)) {
3152
+ let r = t, n;
3153
+ for (; n = mu(r); ) if (r = n, de(e.originalText, r)) return true;
3154
+ }
3155
+ return false;
3156
+ }
3157
+ var bs = /* @__PURE__ */ new WeakMap();
3158
+ function na(e) {
3159
+ return bs.has(e) || bs.set(e, e.type === "ConditionalExpression" && !pe(e, (t) => t.type === "ObjectExpression")), bs.get(e);
3160
+ }
3161
+ var wl = (e) => e.type === "SequenceExpression";
3162
+ function sa(e, t, r, n = {}) {
3163
+ let s = [], u, i = [], a = false, o = !n.expandLastArg && e.node.body.type === "ArrowFunctionExpression", p;
3164
+ (function B() {
3165
+ let { node: g } = e, _ = Ol(e, t, r, n);
3166
+ if (s.length === 0) s.push(_);
3167
+ else {
3168
+ let { leading: M, trailing: J } = fs(e, t);
3169
+ s.push([M, _]), i.unshift(J);
3170
+ }
3171
+ o && (a || (a = g.returnType && Q(g).length > 0 || g.typeParameters || Q(g).some((M) => M.type !== "Identifier"))), !o || g.body.type !== "ArrowFunctionExpression" ? (u = r("body", n), p = g.body) : e.call(B, "body");
3172
+ })();
3173
+ let m = !de(t.originalText, p) && (wl(p) || _l(p, u, t) || !a && na(p)), f = e.key === "callee" && yt(e.parent), y = Symbol("arrow-chain"), C = Ml(e, n, { signatureDocs: s, shouldBreak: a }), c = false, A = false, T = false;
3174
+ return o && (f || n.assignmentLayout) && (A = true, T = !d(e.node, h.Leading & h.Line), c = n.assignmentLayout === "chain-tail-arrow-chain" || f && !m), u = vl(e, t, n, { bodyDoc: u, bodyComments: i, functionBody: p, shouldPutBodyOnSameLine: m }), l([l(A ? D([T ? E : "", C]) : C, { shouldBreak: c, id: y }), " =>", o ? xt(u, { groupId: y }) : l(u), o && f ? S(E, "", { groupId: y }) : ""]);
3175
+ }
3176
+ function Ol(e, t, r, n) {
3177
+ let { node: s } = e, u = [];
3178
+ if (s.async && u.push("async "), Cn(e, t)) u.push(r(["params", 0]));
3179
+ else {
3180
+ let a = n.expandLastArg || n.expandFirstArg, o = Qt(e, r);
3181
+ if (a) {
3182
+ if (re(o)) throw new Dt();
3183
+ o = l(cr(o));
3184
+ }
3185
+ u.push(l([Ue(e, t, r, a, true), o]));
3186
+ }
3187
+ let i = N(e, t, { filter(a) {
3188
+ let o = ot(t.originalText, P(a));
3189
+ return o !== false && t.originalText.slice(o, o + 2) === "=>";
3190
+ } });
3191
+ return i && u.push(" ", i), u;
3192
+ }
3193
+ function _l(e, t, r) {
3194
+ var n, s;
3195
+ return U(e) || ue(e) || e.type === "ArrowFunctionExpression" || e.type === "DoExpression" || e.type === "BlockStatement" || Y(e) || ((n = t.label) == null ? void 0 : n.hug) !== false && (((s = t.label) == null ? void 0 : s.embed) || _r(e, r.originalText));
3196
+ }
3197
+ function Ml(e, t, { signatureDocs: r, shouldBreak: n }) {
3198
+ if (r.length === 1) return r[0];
3199
+ let { parent: s, key: u } = e;
3200
+ return u !== "callee" && yt(s) || Fe(s) ? l([r[0], " =>", D([x, b([" =>", x], r.slice(1))])], { shouldBreak: n }) : u === "callee" && yt(s) || t.assignmentLayout ? l(b([" =>", x], r), { shouldBreak: n }) : l(D(b([" =>", x], r)), { shouldBreak: n });
3201
+ }
3202
+ function vl(e, t, r, { bodyDoc: n, bodyComments: s, functionBody: u, shouldPutBodyOnSameLine: i }) {
3203
+ let { node: a, parent: o } = e, p = r.expandLastArg && ce(t, "all") ? S(",") : "", m = (r.expandLastArg || o.type === "JSXExpressionContainer") && !d(a) ? E : "";
3204
+ return i && na(u) ? [" ", l([S("", "("), D([E, n]), S("", ")"), p, m]), s] : i ? [" ", n, s] : [D([x, n, s]), p, m];
3205
+ }
3206
+ var jl = (e, t, r) => {
3207
+ if (!(e && t == null)) {
3208
+ if (t.findLast) return t.findLast(r);
3209
+ for (let n = t.length - 1; n >= 0; n--) {
3210
+ let s = t[n];
3211
+ if (r(s, n, t)) return s;
3212
+ }
3213
+ }
3214
+ };
3215
+ var ua = jl;
3216
+ function Fr(e, t, r, n) {
3217
+ let { node: s } = e, u = [], i = ua(false, s[n], (a) => a.type !== "EmptyStatement");
3218
+ return e.each(({ node: a }) => {
3219
+ a.type !== "EmptyStatement" && (u.push(r()), a !== i && (u.push(F), me(a, t) && u.push(F)));
3220
+ }, n), u;
3221
+ }
3222
+ function An(e, t, r) {
3223
+ let n = Rl(e, t, r), { node: s, parent: u } = e;
3224
+ if (s.type === "Program" && (u == null ? void 0 : u.type) !== "ModuleExpression") return n ? [n, F] : "";
3225
+ let i = [];
3226
+ if (s.type === "StaticBlock" && i.push("static "), i.push("{"), n) i.push(D([F, n]), F);
3227
+ else {
3228
+ let a = e.grandparent;
3229
+ u.type === "ArrowFunctionExpression" || u.type === "FunctionExpression" || u.type === "FunctionDeclaration" || u.type === "ComponentDeclaration" || u.type === "HookDeclaration" || u.type === "ObjectMethod" || u.type === "ClassMethod" || u.type === "ClassPrivateMethod" || u.type === "ForStatement" || u.type === "WhileStatement" || u.type === "DoWhileStatement" || u.type === "DoExpression" || u.type === "ModuleExpression" || u.type === "CatchClause" && !a.finalizer || u.type === "TSModuleDeclaration" || s.type === "StaticBlock" || i.push(F);
3230
+ }
3231
+ return i.push("}"), i;
3232
+ }
3233
+ function Rl(e, t, r) {
3234
+ let { node: n } = e, s = O(n.directives), u = n.body.some((o) => o.type !== "EmptyStatement"), i = d(n, h.Dangling);
3235
+ if (!s && !u && !i) return "";
3236
+ let a = [];
3237
+ return s && (a.push(Fr(e, t, r, "directives")), (u || i) && (a.push(F), me(v(false, n.directives, -1), t) && a.push(F))), u && a.push(Fr(e, t, r, "body")), i && a.push(N(e, t)), a;
3238
+ }
3239
+ function Jl(e) {
3240
+ let t = /* @__PURE__ */ new WeakMap();
3241
+ return function(r) {
3242
+ return t.has(r) || t.set(r, Symbol(e)), t.get(r);
3243
+ };
3244
+ }
3245
+ var dn = Jl;
3246
+ var Cr = dn("typeParameters");
3247
+ function Nl(e, t, r) {
3248
+ let { node: n } = e;
3249
+ return Q(n).length === 1 && n.type.startsWith("TS") && !n[r][0].constraint && e.parent.type === "ArrowFunctionExpression" && !(t.filepath && /\.ts$/u.test(t.filepath));
3250
+ }
3251
+ function wt(e, t, r, n) {
3252
+ let { node: s } = e;
3253
+ if (!s[n]) return "";
3254
+ if (!Array.isArray(s[n])) return r(n);
3255
+ let u = Pt(e.grandparent), i = e.match((p) => !(p[n].length === 1 && Re(p[n][0])), void 0, (p, m) => m === "typeAnnotation", (p) => p.type === "Identifier", hs);
3256
+ if (s[n].length === 0 || !i && (u || s[n].length === 1 && (s[n][0].type === "NullableTypeAnnotation" || Ss(s[n][0])))) return ["<", b(", ", e.map(r, n)), Gl(e, t), ">"];
3257
+ let o = s.type === "TSTypeParameterInstantiation" ? "" : Nl(e, t, n) ? "," : ce(t) ? S(",") : "";
3258
+ return l(["<", D([E, b([",", x], e.map(r, n))]), o, E, ">"], { id: Cr(s) });
3259
+ }
3260
+ function Gl(e, t) {
3261
+ let { node: r } = e;
3262
+ if (!d(r, h.Dangling)) return "";
3263
+ let n = !d(r, h.Line), s = N(e, t, { indent: !n });
3264
+ return n ? s : [s, F];
3265
+ }
3266
+ function Tn(e, t, r) {
3267
+ let { node: n } = e, s = [n.const ? "const " : ""], u = n.type === "TSTypeParameter" ? r("name") : n.name;
3268
+ if (n.variance && s.push(r("variance")), n.in && s.push("in "), n.out && s.push("out "), s.push(u), n.bound && (n.usesExtendsBound && s.push(" extends "), s.push(H(e, r, "bound"))), n.constraint) {
3269
+ let i = Symbol("constraint");
3270
+ s.push(" extends", l(D(x), { id: i }), je, xt(r("constraint"), { groupId: i }));
3271
+ }
3272
+ return n.default && s.push(" = ", r("default")), l(s);
3273
+ }
3274
+ var ia = R(["ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
3275
+ function xn(e, t, r) {
3276
+ let { node: n } = e, s = [$(e), Vt(e), "class"], u = d(n.id, h.Trailing) || d(n.typeParameters, h.Trailing) || d(n.superClass) || O(n.extends) || O(n.mixins) || O(n.implements), i = [], a = [];
3277
+ if (n.id && i.push(" ", r("id")), i.push(r("typeParameters")), n.superClass) {
3278
+ let m = [Wl(e, t, r), r(n.superTypeArguments ? "superTypeArguments" : "superTypeParameters")], f = e.call((y) => ["extends ", Ee(y, m, t)], "superClass");
3279
+ u ? a.push(x, l(f)) : a.push(" ", f);
3280
+ } else a.push(Ps(e, t, r, "extends"));
3281
+ a.push(Ps(e, t, r, "mixins"), Ps(e, t, r, "implements"));
3282
+ let o;
3283
+ if (u) {
3284
+ let m;
3285
+ pa(n) ? m = [...i, D(a)] : m = D([...i, a]), o = aa(n), s.push(l(m, { id: o }));
3286
+ } else s.push(...i, ...a);
3287
+ let p = n.body;
3288
+ return u && O(p.body) ? s.push(S(F, " ", { groupId: o })) : s.push(" "), s.push(r("body")), s;
3289
+ }
3290
+ var aa = dn("heritageGroup");
3291
+ function oa(e) {
3292
+ return S(F, "", { groupId: aa(e) });
3293
+ }
3294
+ function ql(e) {
3295
+ return ["extends", "mixins", "implements"].reduce((t, r) => t + (Array.isArray(e[r]) ? e[r].length : 0), e.superClass ? 1 : 0) > 1;
3296
+ }
3297
+ function pa(e) {
3298
+ return e.typeParameters && !d(e.typeParameters, h.Trailing | h.Line) && !ql(e);
3299
+ }
3300
+ function Ps(e, t, r, n) {
3301
+ let { node: s } = e;
3302
+ if (!O(s[n])) return "";
3303
+ let u = N(e, t, { marker: n });
3304
+ return [pa(s) ? S(" ", x, { groupId: Cr(s.typeParameters) }) : x, u, u && F, n, l(D([x, b([",", x], e.map(r, n))]))];
3305
+ }
3306
+ function Wl(e, t, r) {
3307
+ let n = r("superClass"), { parent: s } = e;
3308
+ return s.type === "AssignmentExpression" ? l(S(["(", D([E, n]), E, ")"], n)) : n;
3309
+ }
3310
+ function hn(e, t, r) {
3311
+ let { node: n } = e, s = [];
3312
+ return O(n.decorators) && s.push(ds(e, t, r)), s.push($t(n)), n.static && s.push("static "), s.push(Vt(e)), n.override && s.push("override "), s.push(Er(e, t, r)), s;
3313
+ }
3314
+ function gn(e, t, r) {
3315
+ let { node: n } = e, s = [], u = t.semi ? ";" : "";
3316
+ O(n.decorators) && s.push(ds(e, t, r)), s.push($(e), $t(n)), n.static && s.push("static "), s.push(Vt(e)), n.override && s.push("override "), n.readonly && s.push("readonly "), n.variance && s.push(r("variance")), (n.type === "ClassAccessorProperty" || n.type === "AccessorProperty" || n.type === "TSAbstractAccessorProperty") && s.push("accessor "), s.push(Ct(e, t, r), V(e), mn(e), H(e, r));
3317
+ let i = n.type === "TSAbstractPropertyDefinition" || n.type === "TSAbstractAccessorProperty";
3318
+ return [ht(e, t, r, s, " =", i ? void 0 : "value"), u];
3319
+ }
3320
+ function ca(e, t, r) {
3321
+ let { node: n } = e, s = [];
3322
+ return e.each(({ node: u, next: i, isLast: a }) => {
3323
+ s.push(r()), !t.semi && ia(u) && Ul(u, i) && s.push(";"), a || (s.push(F), me(u, t) && s.push(F));
3324
+ }, "body"), d(n, h.Dangling) && s.push(N(e, t)), ["{", s.length > 0 ? [D([F, s]), F] : "", "}"];
3325
+ }
3326
+ function Ul(e, t) {
3327
+ var s;
3328
+ let { type: r, name: n } = e.key;
3329
+ if (!e.computed && r === "Identifier" && (n === "static" || n === "get" || n === "set") && !e.value && !e.typeAnnotation) return true;
3330
+ if (!t || t.static || t.accessibility || t.readonly) return false;
3331
+ if (!t.computed) {
3332
+ let u = (s = t.key) == null ? void 0 : s.name;
3333
+ if (u === "in" || u === "instanceof") return true;
3334
+ }
3335
+ if (ia(t) && t.variance && !t.static && !t.declare) return true;
3336
+ switch (t.type) {
3337
+ case "ClassProperty":
3338
+ case "PropertyDefinition":
3339
+ case "TSAbstractPropertyDefinition":
3340
+ return t.computed;
3341
+ case "MethodDefinition":
3342
+ case "TSAbstractMethodDefinition":
3343
+ case "ClassMethod":
3344
+ case "ClassPrivateMethod": {
3345
+ if ((t.value ? t.value.async : t.async) || t.kind === "get" || t.kind === "set") return false;
3346
+ let i = t.value ? t.value.generator : t.generator;
3347
+ return !!(t.computed || i);
3348
+ }
3349
+ case "TSIndexSignature":
3350
+ return true;
3351
+ }
3352
+ return false;
3353
+ }
3354
+ var Xl = R(["TSAsExpression", "TSTypeAssertion", "TSNonNullExpression", "TSInstantiationExpression", "TSSatisfiesExpression"]);
3355
+ function ks(e) {
3356
+ return Xl(e) ? ks(e.expression) : e;
3357
+ }
3358
+ var la = R(["FunctionExpression", "ArrowFunctionExpression"]);
3359
+ function ma(e) {
3360
+ return e.type === "MemberExpression" || e.type === "OptionalMemberExpression" || e.type === "Identifier" && e.name !== "undefined";
3361
+ }
3362
+ function ya(e, t) {
3363
+ if (t.semi || Is(e, t) || Ls(e, t)) return false;
3364
+ let { node: r, key: n, parent: s } = e;
3365
+ return !!(r.type === "ExpressionStatement" && (n === "body" && (s.type === "Program" || s.type === "BlockStatement" || s.type === "StaticBlock" || s.type === "TSModuleBlock") || n === "consequent" && s.type === "SwitchCase") && e.call(() => fa(e, t), "expression"));
3366
+ }
3367
+ function fa(e, t) {
3368
+ let { node: r } = e;
3369
+ switch (r.type) {
3370
+ case "ParenthesizedExpression":
3371
+ case "TypeCastExpression":
3372
+ case "ArrayExpression":
3373
+ case "ArrayPattern":
3374
+ case "TemplateLiteral":
3375
+ case "TemplateElement":
3376
+ case "RegExpLiteral":
3377
+ return true;
3378
+ case "ArrowFunctionExpression":
3379
+ if (!Cn(e, t)) return true;
3380
+ break;
3381
+ case "UnaryExpression": {
3382
+ let { prefix: n, operator: s } = r;
3383
+ if (n && (s === "+" || s === "-")) return true;
3384
+ break;
3385
+ }
3386
+ case "BindExpression":
3387
+ if (!r.object) return true;
3388
+ break;
3389
+ case "Literal":
3390
+ if (r.regex) return true;
3391
+ break;
3392
+ default:
3393
+ if (Y(r)) return true;
3394
+ }
3395
+ return Le(e, t) ? true : Jt(r) ? e.call(() => fa(e, t), ...Lr(r)) : false;
3396
+ }
3397
+ function Is({ node: e, parent: t }, r) {
3398
+ return (r.parentParser === "markdown" || r.parentParser === "mdx") && e.type === "ExpressionStatement" && Y(e.expression) && t.type === "Program" && t.body.length === 1;
3399
+ }
3400
+ function Ls({ node: e, parent: t }, r) {
3401
+ return (r.parser === "__vue_event_binding" || r.parser === "__vue_ts_event_binding") && e.type === "ExpressionStatement" && t.type === "Program" && t.body.length === 1;
3402
+ }
3403
+ function Da(e, t, r) {
3404
+ let n = [r("expression")];
3405
+ if (Ls(e, t)) {
3406
+ let s = ks(e.node.expression);
3407
+ (la(s) || ma(s)) && n.push(";");
3408
+ } else Is(e, t) || t.semi && n.push(";");
3409
+ return n;
3410
+ }
3411
+ function Ea(e, t, r) {
3412
+ if (t.__isVueBindings || t.__isVueForBindingLeft) {
3413
+ let n = e.map(r, "program", "body", 0, "params");
3414
+ if (n.length === 1) return n[0];
3415
+ let s = b([",", x], n);
3416
+ return t.__isVueForBindingLeft ? ["(", D([E, l(s)]), E, ")"] : s;
3417
+ }
3418
+ if (t.__isEmbeddedTypescriptGenericParameters) {
3419
+ let n = e.map(r, "program", "body", 0, "typeParameters", "params");
3420
+ return b([",", x], n);
3421
+ }
3422
+ }
3423
+ function Aa(e, t) {
3424
+ let { node: r } = e;
3425
+ switch (r.type) {
3426
+ case "RegExpLiteral":
3427
+ return Fa(r);
3428
+ case "BigIntLiteral":
3429
+ return Sn(r.extra.raw);
3430
+ case "NumericLiteral":
3431
+ return Ft(r.extra.raw);
3432
+ case "StringLiteral":
3433
+ return ve(ut(r.extra.raw, t));
3434
+ case "NullLiteral":
3435
+ return "null";
3436
+ case "BooleanLiteral":
3437
+ return String(r.value);
3438
+ case "DirectiveLiteral":
3439
+ return Ca(r.extra.raw, t);
3440
+ case "Literal": {
3441
+ if (r.regex) return Fa(r.regex);
3442
+ if (r.bigint) return Sn(r.raw);
3443
+ let { value: n } = r;
3444
+ return typeof n == "number" ? Ft(r.raw) : typeof n == "string" ? Yl(e) ? Ca(r.raw, t) : ve(ut(r.raw, t)) : String(n);
3445
+ }
3446
+ }
3447
+ }
3448
+ function Yl(e) {
3449
+ if (e.key !== "expression") return;
3450
+ let { parent: t } = e;
3451
+ return t.type === "ExpressionStatement" && typeof t.directive == "string";
3452
+ }
3453
+ function Sn(e) {
3454
+ return e.toLowerCase();
3455
+ }
3456
+ function Fa({ pattern: e, flags: t }) {
3457
+ return t = [...t].sort().join(""), `/${e}/${t}`;
3458
+ }
3459
+ function Ca(e, t) {
3460
+ let r = e.slice(1, -1);
3461
+ if (r.includes('"') || r.includes("'")) return e;
3462
+ let n = t.singleQuote ? "'" : '"';
3463
+ return n + r + n;
3464
+ }
3465
+ function Hl(e, t, r) {
3466
+ let n = e.originalText.slice(t, r);
3467
+ for (let s of e[Symbol.for("comments")]) {
3468
+ let u = j(s);
3469
+ if (u > r) break;
3470
+ let i = P(s);
3471
+ if (i < t) continue;
3472
+ let a = i - u;
3473
+ n = n.slice(0, u - t) + " ".repeat(a) + n.slice(i - t);
3474
+ }
3475
+ return n;
3476
+ }
3477
+ var Ar = Hl;
3478
+ function da(e, t, r) {
3479
+ let { node: n } = e;
3480
+ return ["import", n.phase ? ` ${n.phase}` : "", Os(n), ha(e, t, r), xa(e, t, r), Sa(e, t, r), t.semi ? ";" : ""];
3481
+ }
3482
+ var Ta = (e) => e.type === "ExportDefaultDeclaration" || e.type === "DeclareExportDeclaration" && e.default;
3483
+ function Bn(e, t, r) {
3484
+ let { node: n } = e, s = [wi(e, t, r), $(e), "export", Ta(n) ? " default" : ""], { declaration: u, exported: i } = n;
3485
+ return d(n, h.Dangling) && (s.push(" ", N(e, t)), Mr(n) && s.push(F)), u ? s.push(" ", r("declaration")) : (s.push(Kl(n)), n.type === "ExportAllDeclaration" || n.type === "DeclareExportAllDeclaration" ? (s.push(" *"), i && s.push(" as ", r("exported"))) : s.push(ha(e, t, r)), s.push(xa(e, t, r), Sa(e, t, r))), s.push($l(n, t)), s;
3486
+ }
3487
+ var Vl = R(["ClassDeclaration", "ComponentDeclaration", "FunctionDeclaration", "TSInterfaceDeclaration", "DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "HookDeclaration", "TSDeclareFunction", "EnumDeclaration"]);
3488
+ function $l(e, t) {
3489
+ return t.semi && (!e.declaration || Ta(e) && !Vl(e.declaration)) ? ";" : "";
3490
+ }
3491
+ function ws(e, t = true) {
3492
+ return e && e !== "value" ? `${t ? " " : ""}${e}${t ? "" : " "}` : "";
3493
+ }
3494
+ function Os(e, t) {
3495
+ return ws(e.importKind, t);
3496
+ }
3497
+ function Kl(e) {
3498
+ return ws(e.exportKind);
3499
+ }
3500
+ function xa(e, t, r) {
3501
+ let { node: n } = e;
3502
+ if (!n.source) return "";
3503
+ let s = [];
3504
+ return ga(n, t) && s.push(" from"), s.push(" ", r("source")), s;
3505
+ }
3506
+ function ha(e, t, r) {
3507
+ let { node: n } = e;
3508
+ if (!ga(n, t)) return "";
3509
+ let s = [" "];
3510
+ if (O(n.specifiers)) {
3511
+ let u = [], i = [];
3512
+ e.each(() => {
3513
+ let a = e.node.type;
3514
+ if (a === "ExportNamespaceSpecifier" || a === "ExportDefaultSpecifier" || a === "ImportNamespaceSpecifier" || a === "ImportDefaultSpecifier") u.push(r());
3515
+ else if (a === "ExportSpecifier" || a === "ImportSpecifier") i.push(r());
3516
+ else throw new qe(n, "specifier");
3517
+ }, "specifiers"), s.push(b(", ", u)), i.length > 0 && (u.length > 0 && s.push(", "), i.length > 1 || u.length > 0 || n.specifiers.some((o) => d(o)) ? s.push(l(["{", D([t.bracketSpacing ? x : E, b([",", x], i)]), S(ce(t) ? "," : ""), t.bracketSpacing ? x : E, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...i, t.bracketSpacing ? " " : "", "}"]));
3518
+ } else s.push("{}");
3519
+ return s;
3520
+ }
3521
+ function ga(e, t) {
3522
+ return e.type !== "ImportDeclaration" || O(e.specifiers) || e.importKind === "type" ? true : Ar(t, j(e), j(e.source)).trimEnd().endsWith("from");
3523
+ }
3524
+ function Ql(e, t) {
3525
+ var n, s;
3526
+ if ((n = e.extra) != null && n.deprecatedAssertSyntax) return "assert";
3527
+ let r = Ar(t, P(e.source), (s = e.attributes) != null && s[0] ? j(e.attributes[0]) : P(e)).trimStart();
3528
+ return r.startsWith("assert") ? "assert" : r.startsWith("with") || O(e.attributes) ? "with" : void 0;
3529
+ }
3530
+ function Sa(e, t, r) {
3531
+ let { node: n } = e;
3532
+ if (!n.source) return "";
3533
+ let s = Ql(n, t);
3534
+ if (!s) return "";
3535
+ let u = [` ${s} {`];
3536
+ return O(n.attributes) && (t.bracketSpacing && u.push(" "), u.push(b(", ", e.map(r, "attributes"))), t.bracketSpacing && u.push(" ")), u.push("}"), u;
3537
+ }
3538
+ function Ba(e, t, r) {
3539
+ let { node: n } = e, { type: s } = n, u = s.startsWith("Import"), i = u ? "imported" : "local", a = u ? "local" : "exported", o = n[i], p = n[a], m = "", f = "";
3540
+ return s === "ExportNamespaceSpecifier" || s === "ImportNamespaceSpecifier" ? m = "*" : o && (m = r(i)), p && !zl(n) && (f = r(a)), [ws(s === "ImportSpecifier" ? n.importKind : n.exportKind, false), m, m && f ? " as " : "", f];
3541
+ }
3542
+ function zl(e) {
3543
+ if (e.type !== "ImportSpecifier" && e.type !== "ExportSpecifier") return false;
3544
+ let { local: t, [e.type === "ImportSpecifier" ? "imported" : "exported"]: r } = e;
3545
+ if (t.type !== r.type || !au(t, r)) return false;
3546
+ if (K(t)) return t.value === r.value && ae(t) === ae(r);
3547
+ switch (t.type) {
3548
+ case "Identifier":
3549
+ return t.name === r.name;
3550
+ default:
3551
+ return false;
3552
+ }
3553
+ }
3554
+ function gt(e, t, r) {
3555
+ var J;
3556
+ let n = t.semi ? ";" : "", { node: s } = e, u = s.type === "ObjectTypeAnnotation", i = s.type === "TSEnumBody" || s.type === "EnumBooleanBody" || s.type === "EnumNumberBody" || s.type === "EnumBigIntBody" || s.type === "EnumStringBody" || s.type === "EnumSymbolBody", a = [s.type === "TSTypeLiteral" || i ? "members" : s.type === "TSInterfaceBody" ? "body" : "properties"];
3557
+ u && a.push("indexers", "callProperties", "internalSlots");
3558
+ let o = a.flatMap((I) => e.map(({ node: q }) => ({ node: q, printed: r(), loc: j(q) }), I));
3559
+ a.length > 1 && o.sort((I, q) => I.loc - q.loc);
3560
+ let { parent: p, key: m } = e, f = u && m === "body" && (p.type === "InterfaceDeclaration" || p.type === "DeclareInterface" || p.type === "DeclareClass"), y = s.type === "TSInterfaceBody" || i || f || s.type === "ObjectPattern" && p.type !== "FunctionDeclaration" && p.type !== "FunctionExpression" && p.type !== "ArrowFunctionExpression" && p.type !== "ObjectMethod" && p.type !== "ClassMethod" && p.type !== "ClassPrivateMethod" && p.type !== "AssignmentPattern" && p.type !== "CatchClause" && s.properties.some((I) => I.value && (I.value.type === "ObjectPattern" || I.value.type === "ArrayPattern")) || s.type !== "ObjectPattern" && t.objectWrap === "preserve" && o.length > 0 && ie(t.originalText, j(s), o[0].loc), C = f ? ";" : s.type === "TSInterfaceBody" || s.type === "TSTypeLiteral" ? S(n, ";") : ",", c = s.exact ? "{|" : "{", A = s.exact ? "|}" : "}", T = [], B = o.map((I) => {
3561
+ let q = [...T, l(I.printed)];
3562
+ return T = [C, x], (I.node.type === "TSPropertySignature" || I.node.type === "TSMethodSignature" || I.node.type === "TSConstructSignatureDeclaration" || I.node.type === "TSCallSignatureDeclaration") && d(I.node, h.PrettierIgnore) && T.shift(), me(I.node, t) && T.push(F), q;
3563
+ });
3564
+ if (s.inexact || s.hasUnknownMembers) {
3565
+ let I;
3566
+ if (d(s, h.Dangling)) {
3567
+ let q = d(s, h.Line);
3568
+ I = [N(e, t), q || ee(t.originalText, P(v(false, Ve(s), -1))) ? F : x, "..."];
3569
+ } else I = ["..."];
3570
+ B.push([...T, ...I]);
3571
+ }
3572
+ let g = (J = v(false, o, -1)) == null ? void 0 : J.node, _ = !(s.inexact || s.hasUnknownMembers || g && (g.type === "RestElement" || (g.type === "TSPropertySignature" || g.type === "TSCallSignatureDeclaration" || g.type === "TSMethodSignature" || g.type === "TSConstructSignatureDeclaration" || g.type === "TSIndexSignature") && d(g, h.PrettierIgnore)) || e.match(void 0, (I, q) => I.type === "TSImportType" && q === "options")), M;
3573
+ if (B.length === 0) {
3574
+ if (!d(s, h.Dangling)) return [c, A, H(e, r)];
3575
+ M = l([c, N(e, t, { indent: true }), E, A, V(e), H(e, r)]);
3576
+ } else M = [f && O(s.properties) ? oa(p) : "", c, D([t.bracketSpacing ? x : E, ...B]), S(_ && (C !== "," || ce(t)) ? C : ""), t.bracketSpacing ? x : E, A, V(e), H(e, r)];
3577
+ return e.match((I) => I.type === "ObjectPattern" && !O(I.decorators), _s) || Re(s) && (e.match(void 0, (I, q) => q === "typeAnnotation", (I, q) => q === "typeAnnotation", _s) || e.match(void 0, (I, q) => I.type === "FunctionTypeParam" && q === "typeAnnotation", _s)) || !y && e.match((I) => I.type === "ObjectPattern", (I) => I.type === "AssignmentExpression" || I.type === "VariableDeclarator") ? M : l(M, { shouldBreak: y });
3578
+ }
3579
+ function _s(e, t) {
3580
+ return (t === "params" || t === "parameters" || t === "this" || t === "rest") && gs(e);
3581
+ }
3582
+ function Zl(e) {
3583
+ let t = [e];
3584
+ for (let r = 0; r < t.length; r++) {
3585
+ let n = t[r];
3586
+ for (let s of ["test", "consequent", "alternate"]) {
3587
+ let u = n[s];
3588
+ if (Y(u)) return true;
3589
+ u.type === "ConditionalExpression" && t.push(u);
3590
+ }
3591
+ }
3592
+ return false;
3593
+ }
3594
+ function em(e, t, r) {
3595
+ let { node: n } = e, s = n.type === "ConditionalExpression", u = s ? "alternate" : "falseType", { parent: i } = e, a = s ? r("test") : [r("checkType"), " ", "extends", " ", r("extendsType")];
3596
+ return i.type === n.type && i[u] === n ? be(2, a) : a;
3597
+ }
3598
+ var tm = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3599
+ function rm(e) {
3600
+ let { node: t } = e;
3601
+ if (t.type !== "ConditionalExpression") return false;
3602
+ let r, n = t;
3603
+ for (let s = 0; !r; s++) {
3604
+ let u = e.getParentNode(s);
3605
+ if (u.type === "ChainExpression" && u.expression === n || w(u) && u.callee === n || G(u) && u.object === n || u.type === "TSNonNullExpression" && u.expression === n) {
3606
+ n = u;
3607
+ continue;
3608
+ }
3609
+ u.type === "NewExpression" && u.callee === n || xe(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
3610
+ }
3611
+ return n === t ? false : r[tm.get(r.type)] === n;
3612
+ }
3613
+ function ba(e, t, r) {
3614
+ let { node: n } = e, s = n.type === "ConditionalExpression", u = s ? "consequent" : "trueType", i = s ? "alternate" : "falseType", a = s ? ["test"] : ["checkType", "extendsType"], o = n[u], p = n[i], m = [], f = false, { parent: y } = e, C = y.type === n.type && a.some((W) => y[W] === n), c = y.type === n.type && !C, A, T, B = 0;
3615
+ do
3616
+ T = A || n, A = e.getParentNode(B), B++;
3617
+ while (A && A.type === n.type && a.every((W) => A[W] !== T));
3618
+ let g = A || y, _ = T;
3619
+ if (s && (Y(n[a[0]]) || Y(o) || Y(p) || Zl(_))) {
3620
+ f = true, c = true;
3621
+ let W = (Z) => [S("("), D([E, Z]), E, S(")")], ne = (Z) => Z.type === "NullLiteral" || Z.type === "Literal" && Z.value === null || Z.type === "Identifier" && Z.name === "undefined";
3622
+ m.push(" ? ", ne(o) ? r(u) : W(r(u)), " : ", p.type === n.type || ne(p) ? r(i) : W(r(i)));
3623
+ } else {
3624
+ let W = (Z) => t.useTabs ? D(r(Z)) : be(2, r(Z)), ne = [x, "? ", o.type === n.type ? S("", "(") : "", W(u), o.type === n.type ? S("", ")") : "", x, ": ", W(i)];
3625
+ m.push(y.type !== n.type || y[i] === n || C ? ne : t.useTabs ? Jr(D(ne)) : be(Math.max(0, t.tabWidth - 2), ne));
3626
+ }
3627
+ let M = [u, i, ...a].some((W) => d(n[W], (ne) => te(ne) && ie(t.originalText, j(ne), P(ne)))), J = (W) => y === g ? l(W, { shouldBreak: M }) : M ? [W, Ce] : W, I = !f && (G(y) || y.type === "NGPipeExpression" && y.left === n) && !y.computed, q = rm(e), k = J([em(e, t, r), c ? m : D(m), s && I && !q ? E : ""]);
3628
+ return C || q ? l([D([E, k]), E]) : k;
3629
+ }
3630
+ function nm(e, t) {
3631
+ return (G(t) || t.type === "NGPipeExpression" && t.left === e) && !t.computed;
3632
+ }
3633
+ function sm(e, t, r, n) {
3634
+ return [...e.map((u) => Ve(u)), Ve(t), Ve(r)].flat().some((u) => te(u) && ie(n.originalText, j(u), P(u)));
3635
+ }
3636
+ var um = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3637
+ function im(e) {
3638
+ let { node: t } = e;
3639
+ if (t.type !== "ConditionalExpression") return false;
3640
+ let r, n = t;
3641
+ for (let s = 0; !r; s++) {
3642
+ let u = e.getParentNode(s);
3643
+ if (u.type === "ChainExpression" && u.expression === n || w(u) && u.callee === n || G(u) && u.object === n || u.type === "TSNonNullExpression" && u.expression === n) {
3644
+ n = u;
3645
+ continue;
3646
+ }
3647
+ u.type === "NewExpression" && u.callee === n || xe(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
3648
+ }
3649
+ return n === t ? false : r[um.get(r.type)] === n;
3650
+ }
3651
+ var Ms = (e) => [S("("), D([E, e]), E, S(")")];
3652
+ function zt(e, t, r, n) {
3653
+ if (!t.experimentalTernaries) return ba(e, t, r);
3654
+ let { node: s } = e, u = s.type === "ConditionalExpression", i = Je(s), a = u ? "consequent" : "trueType", o = u ? "alternate" : "falseType", p = u ? ["test"] : ["checkType", "extendsType"], m = s[a], f = s[o], y = p.map((Xe) => s[Xe]), { parent: C } = e, c = C.type === s.type, A = c && p.some((Xe) => C[Xe] === s), T = c && C[o] === s, B = m.type === s.type, g = f.type === s.type, _ = g || T, M = t.tabWidth > 2 || t.useTabs, J, I, q = 0;
3655
+ do
3656
+ I = J || s, J = e.getParentNode(q), q++;
3657
+ while (J && J.type === s.type && p.every((Xe) => J[Xe] !== I));
3658
+ let k = J || C, W = n && n.assignmentLayout && n.assignmentLayout !== "break-after-operator" && (C.type === "AssignmentExpression" || C.type === "VariableDeclarator" || C.type === "ClassProperty" || C.type === "PropertyDefinition" || C.type === "ClassPrivateProperty" || C.type === "ObjectProperty" || C.type === "Property"), ne = (C.type === "ReturnStatement" || C.type === "ThrowStatement") && !(B || g), Z = u && k.type === "JSXExpressionContainer" && e.grandparent.type !== "JSXAttribute", lt = im(e), L = nm(s, C), se = i && Le(e, t), Ae = M ? t.useTabs ? " " : " ".repeat(t.tabWidth - 1) : "", Ot = sm(y, m, f, t) || B || g, nt = !_ && !c && !i && (Z ? m.type === "NullLiteral" || m.type === "Literal" && m.value === null : ir(m, t) && Nn(s.test, 3)), Js = _ || T || i && !c || c && u && Nn(s.test, 1) || nt, Ns = [];
3659
+ !B && d(m, h.Dangling) && e.call((Xe) => {
3660
+ Ns.push(N(Xe, t), F);
3661
+ }, "consequent");
3662
+ let er = [];
3663
+ d(s.test, h.Dangling) && e.call((Xe) => {
3664
+ er.push(N(Xe, t));
3665
+ }, "test"), !g && d(f, h.Dangling) && e.call((Xe) => {
3666
+ er.push(N(Xe, t));
3667
+ }, "alternate"), d(s, h.Dangling) && er.push(N(e, t));
3668
+ let Gs = Symbol("test"), Va = Symbol("consequent"), dr = Symbol("test-and-consequent"), $a = u ? [Ms(r("test")), s.test.type === "ConditionalExpression" ? Ce : ""] : [r("checkType"), " ", "extends", " ", Je(s.extendsType) || s.extendsType.type === "TSMappedType" ? r("extendsType") : l(Ms(r("extendsType")))], qs = l([$a, " ?"], { id: Gs }), Ka = r(a), Tr = D([B || Z && (Y(m) || c || _) ? F : x, Ns, Ka]), Qa = Js ? l([qs, _ ? Tr : S(Tr, l(Tr, { id: Va }), { groupId: Gs })], { id: dr }) : [qs, Tr], wn = r(o), Ws = nt ? S(wn, Jr(Ms(wn)), { groupId: dr }) : wn, tr = [Qa, er.length > 0 ? [D([F, er]), F] : g ? F : nt ? S(x, " ", { groupId: dr }) : x, ":", g ? " " : M ? Js ? S(Ae, S(_ || nt ? " " : Ae, " "), { groupId: dr }) : S(Ae, " ") : " ", g ? Ws : l([D(Ws), Z && !nt ? E : ""]), L && !lt ? E : "", Ot ? Ce : ""];
3669
+ return W && !Ot ? l(D([E, l(tr)])) : W || ne ? l(D(tr)) : lt || i && A ? l([D([E, tr]), se ? E : ""]) : C === k ? l(tr) : tr;
3670
+ }
3671
+ function Pa(e, t, r, n) {
3672
+ let { node: s } = e;
3673
+ if (wr(s)) return Aa(e, t);
3674
+ let u = t.semi ? ";" : "", i = [];
3675
+ switch (s.type) {
3676
+ case "JsExpressionRoot":
3677
+ return r("node");
3678
+ case "JsonRoot":
3679
+ return [N(e, t), r("node"), F];
3680
+ case "File":
3681
+ return _nullishCoalesce(Ea(e, t, r), () => ( r("program")));
3682
+ case "EmptyStatement":
3683
+ return "";
3684
+ case "ExpressionStatement":
3685
+ return Da(e, t, r);
3686
+ case "ChainExpression":
3687
+ return r("expression");
3688
+ case "ParenthesizedExpression":
3689
+ return !d(s.expression) && (ue(s.expression) || U(s.expression)) ? ["(", r("expression"), ")"] : l(["(", D([E, r("expression")]), E, ")"]);
3690
+ case "AssignmentExpression":
3691
+ return Wi(e, t, r);
3692
+ case "VariableDeclarator":
3693
+ return Ui(e, t, r);
3694
+ case "BinaryExpression":
3695
+ case "LogicalExpression":
3696
+ return $r(e, t, r);
3697
+ case "AssignmentPattern":
3698
+ return [r("left"), " = ", r("right")];
3699
+ case "OptionalMemberExpression":
3700
+ case "MemberExpression":
3701
+ return Ri(e, t, r);
3702
+ case "MetaProperty":
3703
+ return [r("meta"), ".", r("property")];
3704
+ case "BindExpression":
3705
+ return s.object && i.push(r("object")), i.push(l(D([E, Kr(e, t, r)]))), i;
3706
+ case "Identifier":
3707
+ return [s.name, V(e), mn(e), H(e, r)];
3708
+ case "V8IntrinsicIdentifier":
3709
+ return ["%", s.name];
3710
+ case "SpreadElement":
3711
+ case "SpreadElementPattern":
3712
+ case "SpreadPropertyPattern":
3713
+ case "RestElement":
3714
+ return yn(e, r);
3715
+ case "FunctionDeclaration":
3716
+ case "FunctionExpression":
3717
+ return En(e, t, r, n);
3718
+ case "ArrowFunctionExpression":
3719
+ return sa(e, t, r, n);
3720
+ case "YieldExpression":
3721
+ return i.push("yield"), s.delegate && i.push("*"), s.argument && i.push(" ", r("argument")), i;
3722
+ case "AwaitExpression":
3723
+ if (i.push("await"), s.argument) {
3724
+ i.push(" ", r("argument"));
3725
+ let { parent: a } = e;
3726
+ if (w(a) && a.callee === s || G(a) && a.object === s) {
3727
+ i = [D([E, ...i]), E];
3728
+ let o = e.findAncestor((p) => p.type === "AwaitExpression" || p.type === "BlockStatement");
3729
+ if ((o == null ? void 0 : o.type) !== "AwaitExpression" || !pe(o.argument, (p) => p === s)) return l(i);
3730
+ }
3731
+ }
3732
+ return i;
3733
+ case "ExportDefaultDeclaration":
3734
+ case "ExportNamedDeclaration":
3735
+ case "ExportAllDeclaration":
3736
+ return Bn(e, t, r);
3737
+ case "ImportDeclaration":
3738
+ return da(e, t, r);
3739
+ case "ImportSpecifier":
3740
+ case "ExportSpecifier":
3741
+ case "ImportNamespaceSpecifier":
3742
+ case "ExportNamespaceSpecifier":
3743
+ case "ImportDefaultSpecifier":
3744
+ case "ExportDefaultSpecifier":
3745
+ return Ba(e, t, r);
3746
+ case "ImportAttribute":
3747
+ return Dn(e, t, r);
3748
+ case "Program":
3749
+ case "BlockStatement":
3750
+ case "StaticBlock":
3751
+ return An(e, t, r);
3752
+ case "ClassBody":
3753
+ return ca(e, t, r);
3754
+ case "ThrowStatement":
3755
+ return ra(e, t, r);
3756
+ case "ReturnStatement":
3757
+ return ta(e, t, r);
3758
+ case "NewExpression":
3759
+ case "ImportExpression":
3760
+ case "OptionalCallExpression":
3761
+ case "CallExpression":
3762
+ return Qr(e, t, r);
3763
+ case "ObjectExpression":
3764
+ case "ObjectPattern":
3765
+ return gt(e, t, r);
3766
+ case "Property":
3767
+ return bt(s) ? Er(e, t, r) : Dn(e, t, r);
3768
+ case "ObjectProperty":
3769
+ return Dn(e, t, r);
3770
+ case "ObjectMethod":
3771
+ return Er(e, t, r);
3772
+ case "Decorator":
3773
+ return ["@", r("expression")];
3774
+ case "ArrayExpression":
3775
+ case "ArrayPattern":
3776
+ return Kt(e, t, r);
3777
+ case "SequenceExpression": {
3778
+ let { parent: a } = e;
3779
+ if (a.type === "ExpressionStatement" || a.type === "ForStatement") {
3780
+ let p = [];
3781
+ return e.each(({ isFirst: m }) => {
3782
+ m ? p.push(r()) : p.push(",", D([x, r()]));
3783
+ }, "expressions"), l(p);
3784
+ }
3785
+ let o = b([",", x], e.map(r, "expressions"));
3786
+ return (a.type === "ReturnStatement" || a.type === "ThrowStatement") && e.key === "argument" || a.type === "ArrowFunctionExpression" && e.key === "body" ? l(S([D([E, o]), E], o)) : l(o);
3787
+ }
3788
+ case "ThisExpression":
3789
+ return "this";
3790
+ case "Super":
3791
+ return "super";
3792
+ case "Directive":
3793
+ return [r("value"), u];
3794
+ case "UnaryExpression":
3795
+ return i.push(s.operator), /[a-z]$/u.test(s.operator) && i.push(" "), d(s.argument) ? i.push(l(["(", D([E, r("argument")]), E, ")"])) : i.push(r("argument")), i;
3796
+ case "UpdateExpression":
3797
+ return [s.prefix ? s.operator : "", r("argument"), s.prefix ? "" : s.operator];
3798
+ case "ConditionalExpression":
3799
+ return zt(e, t, r, n);
3800
+ case "VariableDeclaration": {
3801
+ let a = e.map(r, "declarations"), o = e.parent, p = o.type === "ForStatement" || o.type === "ForInStatement" || o.type === "ForOfStatement", m = s.declarations.some((y) => y.init), f;
3802
+ return a.length === 1 && !d(s.declarations[0]) ? f = a[0] : a.length > 0 && (f = D(a[0])), i = [$(e), s.kind, f ? [" ", f] : "", D(a.slice(1).map((y) => [",", m && !p ? F : x, y]))], p && o.body !== s || i.push(u), l(i);
3803
+ }
3804
+ case "WithStatement":
3805
+ return l(["with (", r("object"), ")", Et(s.body, r("body"))]);
3806
+ case "IfStatement": {
3807
+ let a = Et(s.consequent, r("consequent")), o = l(["if (", l([D([E, r("test")]), E]), ")", a]);
3808
+ if (i.push(o), s.alternate) {
3809
+ let p = d(s.consequent, h.Trailing | h.Line) || Mr(s), m = s.consequent.type === "BlockStatement" && !p;
3810
+ i.push(m ? " " : F), d(s, h.Dangling) && i.push(N(e, t), p ? F : " "), i.push("else", l(Et(s.alternate, r("alternate"), s.alternate.type === "IfStatement")));
3811
+ }
3812
+ return i;
3813
+ }
3814
+ case "ForStatement": {
3815
+ let a = Et(s.body, r("body")), o = N(e, t), p = o ? [o, E] : "";
3816
+ return !s.init && !s.test && !s.update ? [p, l(["for (;;)", a])] : [p, l(["for (", l([D([E, r("init"), ";", x, r("test"), ";", x, r("update")]), E]), ")", a])];
3817
+ }
3818
+ case "WhileStatement":
3819
+ return l(["while (", l([D([E, r("test")]), E]), ")", Et(s.body, r("body"))]);
3820
+ case "ForInStatement":
3821
+ return l(["for (", r("left"), " in ", r("right"), ")", Et(s.body, r("body"))]);
3822
+ case "ForOfStatement":
3823
+ return l(["for", s.await ? " await" : "", " (", r("left"), " of ", r("right"), ")", Et(s.body, r("body"))]);
3824
+ case "DoWhileStatement": {
3825
+ let a = Et(s.body, r("body"));
3826
+ return i = [l(["do", a])], s.body.type === "BlockStatement" ? i.push(" ") : i.push(F), i.push("while (", l([D([E, r("test")]), E]), ")", u), i;
3827
+ }
3828
+ case "DoExpression":
3829
+ return [s.async ? "async " : "", "do ", r("body")];
3830
+ case "BreakStatement":
3831
+ case "ContinueStatement":
3832
+ return i.push(s.type === "BreakStatement" ? "break" : "continue"), s.label && i.push(" ", r("label")), i.push(u), i;
3833
+ case "LabeledStatement":
3834
+ return s.body.type === "EmptyStatement" ? [r("label"), ":;"] : [r("label"), ": ", r("body")];
3835
+ case "TryStatement":
3836
+ return ["try ", r("block"), s.handler ? [" ", r("handler")] : "", s.finalizer ? [" finally ", r("finalizer")] : ""];
3837
+ case "CatchClause":
3838
+ if (s.param) {
3839
+ let a = d(s.param, (p) => !te(p) || p.leading && ee(t.originalText, P(p)) || p.trailing && ee(t.originalText, j(p), { backwards: true })), o = r("param");
3840
+ return ["catch ", a ? ["(", D([E, o]), E, ") "] : ["(", o, ") "], r("body")];
3841
+ }
3842
+ return ["catch ", r("body")];
3843
+ case "SwitchStatement":
3844
+ return [l(["switch (", D([E, r("discriminant")]), E, ")"]), " {", s.cases.length > 0 ? D([F, b(F, e.map(({ node: a, isLast: o }) => [r(), !o && me(a, t) ? F : ""], "cases"))]) : "", F, "}"];
3845
+ case "SwitchCase": {
3846
+ s.test ? i.push("case ", r("test"), ":") : i.push("default:"), d(s, h.Dangling) && i.push(" ", N(e, t));
3847
+ let a = s.consequent.filter((o) => o.type !== "EmptyStatement");
3848
+ if (a.length > 0) {
3849
+ let o = Fr(e, t, r, "consequent");
3850
+ i.push(a.length === 1 && a[0].type === "BlockStatement" ? [" ", o] : D([F, o]));
3851
+ }
3852
+ return i;
3853
+ }
3854
+ case "DebuggerStatement":
3855
+ return ["debugger", u];
3856
+ case "ClassDeclaration":
3857
+ case "ClassExpression":
3858
+ return xn(e, t, r);
3859
+ case "ClassMethod":
3860
+ case "ClassPrivateMethod":
3861
+ case "MethodDefinition":
3862
+ return hn(e, t, r);
3863
+ case "ClassProperty":
3864
+ case "PropertyDefinition":
3865
+ case "ClassPrivateProperty":
3866
+ case "ClassAccessorProperty":
3867
+ case "AccessorProperty":
3868
+ return gn(e, t, r);
3869
+ case "TemplateElement":
3870
+ return ve(s.value.raw);
3871
+ case "TemplateLiteral":
3872
+ return Wr(e, t, r);
3873
+ case "TaggedTemplateExpression":
3874
+ return Zu(e, t, r);
3875
+ case "PrivateIdentifier":
3876
+ return ["#", s.name];
3877
+ case "PrivateName":
3878
+ return ["#", r("id")];
3879
+ case "TopicReference":
3880
+ return "%";
3881
+ case "ArgumentPlaceholder":
3882
+ return "?";
3883
+ case "ModuleExpression":
3884
+ return ["module ", r("body")];
3885
+ case "InterpreterDirective":
3886
+ default:
3887
+ throw new qe(s, "ESTree");
3888
+ }
3889
+ }
3890
+ function bn(e, t, r) {
3891
+ let { parent: n, node: s, key: u } = e, i = [r("expression")];
3892
+ switch (s.type) {
3893
+ case "AsConstExpression":
3894
+ i.push(" as const");
3895
+ break;
3896
+ case "AsExpression":
3897
+ case "TSAsExpression":
3898
+ i.push(" as ", r("typeAnnotation"));
3899
+ break;
3900
+ case "SatisfiesExpression":
3901
+ case "TSSatisfiesExpression":
3902
+ i.push(" satisfies ", r("typeAnnotation"));
3903
+ break;
3904
+ }
3905
+ return u === "callee" && w(n) || u === "object" && G(n) ? l([D([E, ...i]), E]) : i;
3906
+ }
3907
+ function ka(e, t, r) {
3908
+ let { node: n } = e, s = [$(e), "component"];
3909
+ n.id && s.push(" ", r("id")), s.push(r("typeParameters"));
3910
+ let u = am(e, t, r);
3911
+ return n.rendersType ? s.push(l([u, " ", r("rendersType")])) : s.push(l([u])), n.body && s.push(" ", r("body")), t.semi && n.type === "DeclareComponent" && s.push(";"), s;
3912
+ }
3913
+ function am(e, t, r) {
3914
+ let { node: n } = e, s = n.params;
3915
+ if (n.rest && (s = [...s, n.rest]), s.length === 0) return ["(", N(e, t, { filter: (i) => ke(t.originalText, P(i)) === ")" }), ")"];
3916
+ let u = [];
3917
+ return pm(e, (i, a) => {
3918
+ let o = a === s.length - 1;
3919
+ o && n.rest && u.push("..."), u.push(r()), !o && (u.push(","), me(s[a], t) ? u.push(F, F) : u.push(x));
3920
+ }), ["(", D([E, ...u]), S(ce(t, "all") && !om(n, s) ? "," : ""), E, ")"];
3921
+ }
3922
+ function om(e, t) {
3923
+ var r;
3924
+ return e.rest || ((r = v(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
3925
+ }
3926
+ function pm(e, t) {
3927
+ let { node: r } = e, n = 0, s = (u) => t(u, n++);
3928
+ e.each(s, "params"), r.rest && e.call(s, "rest");
3929
+ }
3930
+ function Ia(e, t, r) {
3931
+ let { node: n } = e;
3932
+ return n.shorthand ? r("local") : [r("name"), " as ", r("local")];
3933
+ }
3934
+ function La(e, t, r) {
3935
+ let { node: n } = e, s = [];
3936
+ return n.name && s.push(r("name"), n.optional ? "?: " : ": "), s.push(r("typeAnnotation")), s;
3937
+ }
3938
+ function Pn(e, t, r) {
3939
+ return gt(e, t, r);
3940
+ }
3941
+ function kn(e, t) {
3942
+ let { node: r } = e, n = t("id");
3943
+ r.computed && (n = ["[", n, "]"]);
3944
+ let s = "";
3945
+ return r.initializer && (s = t("initializer")), r.init && (s = t("init")), s ? [n, " = ", s] : n;
3946
+ }
3947
+ function In(e, t) {
3948
+ let { node: r } = e;
3949
+ return [$(e), r.const ? "const " : "", "enum ", t("id"), " ", t("body")];
3950
+ }
3951
+ function Oa(e, t, r) {
3952
+ let { node: n } = e, s = ["hook"];
3953
+ n.id && s.push(" ", r("id"));
3954
+ let u = Ue(e, t, r, false, true), i = Qt(e, r), a = ct(n, i);
3955
+ return s.push(l([a ? l(u) : u, i]), n.body ? " " : "", r("body")), s;
3956
+ }
3957
+ function _a(e, t, r) {
3958
+ let { node: n } = e, s = [$(e), "hook"];
3959
+ return n.id && s.push(" ", r("id")), t.semi && s.push(";"), s;
3960
+ }
3961
+ function wa(e) {
3962
+ var r;
3963
+ let { node: t } = e;
3964
+ return t.type === "HookTypeAnnotation" && ((r = e.getParentNode(2)) == null ? void 0 : r.type) === "DeclareHook";
3965
+ }
3966
+ function Ma(e, t, r) {
3967
+ let { node: n } = e, s = [];
3968
+ s.push(wa(e) ? "" : "hook ");
3969
+ let u = Ue(e, t, r, false, true), i = [];
3970
+ return i.push(wa(e) ? ": " : " => ", r("returnType")), ct(n, i) && (u = l(u)), s.push(u, i), l(s);
3971
+ }
3972
+ function Ln(e, t, r) {
3973
+ let { node: n } = e, s = [$(e), "interface"], u = [], i = [];
3974
+ n.type !== "InterfaceTypeAnnotation" && u.push(" ", r("id"), r("typeParameters"));
3975
+ let a = n.typeParameters && !d(n.typeParameters, h.Trailing | h.Line);
3976
+ return O(n.extends) && i.push(a ? S(" ", x, { groupId: Cr(n.typeParameters) }) : x, "extends ", (n.extends.length === 1 ? du : D)(b([",", x], e.map(r, "extends")))), d(n.id, h.Trailing) || O(n.extends) ? a ? s.push(l([...u, D(i)])) : s.push(l(D([...u, ...i]))) : s.push(...u, ...i), s.push(" ", r("body")), l(s);
3977
+ }
3978
+ function cm(e) {
3979
+ switch (e) {
3980
+ case null:
3981
+ return "";
3982
+ case "PlusOptional":
3983
+ return "+?";
3984
+ case "MinusOptional":
3985
+ return "-?";
3986
+ case "Optional":
3987
+ return "?";
3988
+ }
3989
+ }
3990
+ function ja(e, t, r) {
3991
+ let { node: n } = e;
3992
+ return l([n.variance ? r("variance") : "", "[", D([r("keyTparam"), " in ", r("sourceType")]), "]", cm(n.optional), ": ", r("propType")]);
3993
+ }
3994
+ function va(e, t) {
3995
+ return e === "+" || e === "-" ? e + t : t;
3996
+ }
3997
+ function Ra(e, t, r) {
3998
+ let { node: n } = e, s = false;
3999
+ if (t.objectWrap === "preserve") {
4000
+ let u = j(n), i = Ar(t, u + 1, j(n.key)), a = u + 1 + i.search(/\S/u);
4001
+ ie(t.originalText, u, a) && (s = true);
4002
+ }
4003
+ return l(["{", D([t.bracketSpacing ? x : E, d(n, h.Dangling) ? l([N(e, t), F]) : "", l([n.readonly ? [va(n.readonly, "readonly"), " "] : "", "[", r("key"), " in ", r("constraint"), n.nameType ? [" as ", r("nameType")] : "", "]", n.optional ? va(n.optional, "?") : "", n.typeAnnotation ? ": " : "", r("typeAnnotation")]), t.semi ? S(";") : ""]), t.bracketSpacing ? x : E, "}"], { shouldBreak: s });
4004
+ }
4005
+ function Ja(e, t, r) {
4006
+ let { node: n } = e;
4007
+ if (Pr(n)) return n.type.slice(0, -14).toLowerCase();
4008
+ let s = t.semi ? ";" : "";
4009
+ switch (n.type) {
4010
+ case "ComponentDeclaration":
4011
+ case "DeclareComponent":
4012
+ case "ComponentTypeAnnotation":
4013
+ return ka(e, t, r);
4014
+ case "ComponentParameter":
4015
+ return Ia(e, t, r);
4016
+ case "ComponentTypeParameter":
4017
+ return La(e, t, r);
4018
+ case "HookDeclaration":
4019
+ return Oa(e, t, r);
4020
+ case "DeclareHook":
4021
+ return _a(e, t, r);
4022
+ case "HookTypeAnnotation":
4023
+ return Ma(e, t, r);
4024
+ case "DeclareClass":
4025
+ return xn(e, t, r);
4026
+ case "DeclareFunction":
4027
+ return [$(e), "function ", r("id"), r("predicate"), s];
4028
+ case "DeclareModule":
4029
+ return ["declare module ", r("id"), " ", r("body")];
4030
+ case "DeclareModuleExports":
4031
+ return ["declare module.exports", H(e, r), s];
4032
+ case "DeclareNamespace":
4033
+ return ["declare namespace ", r("id"), " ", r("body")];
4034
+ case "DeclareVariable":
4035
+ return [$(e), _nullishCoalesce(n.kind, () => ( "var")), " ", r("id"), s];
4036
+ case "DeclareExportDeclaration":
4037
+ case "DeclareExportAllDeclaration":
4038
+ return Bn(e, t, r);
4039
+ case "DeclareOpaqueType":
4040
+ case "OpaqueType":
4041
+ return Vi(e, t, r);
4042
+ case "DeclareTypeAlias":
4043
+ case "TypeAlias":
4044
+ return Zr(e, t, r);
4045
+ case "IntersectionTypeAnnotation":
4046
+ return en(e, t, r);
4047
+ case "UnionTypeAnnotation":
4048
+ return tn(e, t, r);
4049
+ case "ConditionalTypeAnnotation":
4050
+ return zt(e, t, r);
4051
+ case "InferTypeAnnotation":
4052
+ return sn(e, t, r);
4053
+ case "FunctionTypeAnnotation":
4054
+ return rn(e, t, r);
4055
+ case "TupleTypeAnnotation":
4056
+ return Kt(e, t, r);
4057
+ case "TupleTypeLabeledElement":
4058
+ return an(e, t, r);
4059
+ case "TupleTypeSpreadElement":
4060
+ return un(e, t, r);
4061
+ case "GenericTypeAnnotation":
4062
+ return [r("id"), wt(e, t, r, "typeParameters")];
4063
+ case "IndexedAccessType":
4064
+ case "OptionalIndexedAccessType":
4065
+ return nn(e, t, r);
4066
+ case "TypeAnnotation":
4067
+ return on(e, t, r);
4068
+ case "TypeParameter":
4069
+ return Tn(e, t, r);
4070
+ case "TypeofTypeAnnotation":
4071
+ return cn(e, r);
4072
+ case "ExistsTypeAnnotation":
4073
+ return "*";
4074
+ case "ArrayTypeAnnotation":
4075
+ return pn(r);
4076
+ case "DeclareEnum":
4077
+ case "EnumDeclaration":
4078
+ return In(e, r);
4079
+ case "EnumBooleanBody":
4080
+ case "EnumNumberBody":
4081
+ case "EnumBigIntBody":
4082
+ case "EnumStringBody":
4083
+ case "EnumSymbolBody":
4084
+ return [n.type === "EnumSymbolBody" || n.explicitType ? `of ${n.type.slice(4, -4).toLowerCase()} ` : "", Pn(e, t, r)];
4085
+ case "EnumBooleanMember":
4086
+ case "EnumNumberMember":
4087
+ case "EnumBigIntMember":
4088
+ case "EnumStringMember":
4089
+ case "EnumDefaultedMember":
4090
+ return kn(e, r);
4091
+ case "FunctionTypeParam": {
4092
+ let u = n.name ? r("name") : e.parent.this === n ? "this" : "";
4093
+ return [u, V(e), u ? ": " : "", r("typeAnnotation")];
4094
+ }
4095
+ case "DeclareInterface":
4096
+ case "InterfaceDeclaration":
4097
+ case "InterfaceTypeAnnotation":
4098
+ return Ln(e, t, r);
4099
+ case "ClassImplements":
4100
+ case "InterfaceExtends":
4101
+ return [r("id"), r("typeParameters")];
4102
+ case "NullableTypeAnnotation":
4103
+ return ["?", r("typeAnnotation")];
4104
+ case "Variance": {
4105
+ let { kind: u } = n;
4106
+ return jt.ok(u === "plus" || u === "minus"), u === "plus" ? "+" : "-";
4107
+ }
4108
+ case "KeyofTypeAnnotation":
4109
+ return ["keyof ", r("argument")];
4110
+ case "ObjectTypeCallProperty":
4111
+ return [n.static ? "static " : "", r("value")];
4112
+ case "ObjectTypeMappedTypeProperty":
4113
+ return ja(e, t, r);
4114
+ case "ObjectTypeIndexer":
4115
+ return [n.static ? "static " : "", n.variance ? r("variance") : "", "[", r("id"), n.id ? ": " : "", r("key"), "]: ", r("value")];
4116
+ case "ObjectTypeProperty": {
4117
+ let u = "";
4118
+ return n.proto ? u = "proto " : n.static && (u = "static "), [u, n.kind !== "init" ? n.kind + " " : "", n.variance ? r("variance") : "", Ct(e, t, r), V(e), bt(n) ? "" : ": ", r("value")];
4119
+ }
4120
+ case "ObjectTypeAnnotation":
4121
+ return gt(e, t, r);
4122
+ case "ObjectTypeInternalSlot":
4123
+ return [n.static ? "static " : "", "[[", r("id"), "]]", V(e), n.method ? "" : ": ", r("value")];
4124
+ case "ObjectTypeSpreadProperty":
4125
+ return yn(e, r);
4126
+ case "QualifiedTypeofIdentifier":
4127
+ case "QualifiedTypeIdentifier":
4128
+ return [r("qualification"), ".", r("id")];
4129
+ case "NullLiteralTypeAnnotation":
4130
+ return "null";
4131
+ case "BooleanLiteralTypeAnnotation":
4132
+ return String(n.value);
4133
+ case "StringLiteralTypeAnnotation":
4134
+ return ve(ut(ae(n), t));
4135
+ case "NumberLiteralTypeAnnotation":
4136
+ return Ft(ae(n));
4137
+ case "BigIntLiteralTypeAnnotation":
4138
+ return Sn(ae(n));
4139
+ case "TypeCastExpression":
4140
+ return ["(", r("expression"), H(e, r), ")"];
4141
+ case "TypePredicate":
4142
+ return ln(e, r);
4143
+ case "TypeOperator":
4144
+ return [n.operator, " ", r("typeAnnotation")];
4145
+ case "TypeParameterDeclaration":
4146
+ case "TypeParameterInstantiation":
4147
+ return wt(e, t, r, "params");
4148
+ case "InferredPredicate":
4149
+ case "DeclaredPredicate":
4150
+ return [e.key === "predicate" && e.parent.type !== "DeclareFunction" && !e.parent.returnType ? ": " : " ", "%checks", ...n.type === "DeclaredPredicate" ? ["(", r("value"), ")"] : []];
4151
+ case "AsExpression":
4152
+ case "AsConstExpression":
4153
+ case "SatisfiesExpression":
4154
+ return bn(e, t, r);
4155
+ }
4156
+ }
4157
+ function Na(e, t, r) {
4158
+ var i;
4159
+ let { node: n } = e;
4160
+ if (!n.type.startsWith("TS")) return;
4161
+ if (kr(n)) return n.type.slice(2, -7).toLowerCase();
4162
+ let s = t.semi ? ";" : "", u = [];
4163
+ switch (n.type) {
4164
+ case "TSThisType":
4165
+ return "this";
4166
+ case "TSTypeAssertion": {
4167
+ let a = !(U(n.expression) || ue(n.expression)), o = l(["<", D([E, r("typeAnnotation")]), E, ">"]), p = [S("("), D([E, r("expression")]), E, S(")")];
4168
+ return a ? tt([[o, r("expression")], [o, l(p, { shouldBreak: true })], [o, r("expression")]]) : l([o, r("expression")]);
4169
+ }
4170
+ case "TSDeclareFunction":
4171
+ return En(e, t, r);
4172
+ case "TSExportAssignment":
4173
+ return ["export = ", r("expression"), s];
4174
+ case "TSModuleBlock":
4175
+ return An(e, t, r);
4176
+ case "TSInterfaceBody":
4177
+ case "TSTypeLiteral":
4178
+ return gt(e, t, r);
4179
+ case "TSTypeAliasDeclaration":
4180
+ return Zr(e, t, r);
4181
+ case "TSQualifiedName":
4182
+ return [r("left"), ".", r("right")];
4183
+ case "TSAbstractMethodDefinition":
4184
+ case "TSDeclareMethod":
4185
+ return hn(e, t, r);
4186
+ case "TSAbstractAccessorProperty":
4187
+ case "TSAbstractPropertyDefinition":
4188
+ return gn(e, t, r);
4189
+ case "TSInterfaceHeritage":
4190
+ case "TSClassImplements":
4191
+ case "TSExpressionWithTypeArguments":
4192
+ case "TSInstantiationExpression":
4193
+ return [r("expression"), r(n.typeArguments ? "typeArguments" : "typeParameters")];
4194
+ case "TSTemplateLiteralType":
4195
+ return Wr(e, t, r);
4196
+ case "TSNamedTupleMember":
4197
+ return an(e, t, r);
4198
+ case "TSRestType":
4199
+ return un(e, t, r);
4200
+ case "TSOptionalType":
4201
+ return [r("typeAnnotation"), "?"];
4202
+ case "TSInterfaceDeclaration":
4203
+ return Ln(e, t, r);
4204
+ case "TSTypeParameterDeclaration":
4205
+ case "TSTypeParameterInstantiation":
4206
+ return wt(e, t, r, "params");
4207
+ case "TSTypeParameter":
4208
+ return Tn(e, t, r);
4209
+ case "TSAsExpression":
4210
+ case "TSSatisfiesExpression":
4211
+ return bn(e, t, r);
4212
+ case "TSArrayType":
4213
+ return pn(r);
4214
+ case "TSPropertySignature":
4215
+ return [n.readonly ? "readonly " : "", Ct(e, t, r), V(e), H(e, r)];
4216
+ case "TSParameterProperty":
4217
+ return [$t(n), n.static ? "static " : "", n.override ? "override " : "", n.readonly ? "readonly " : "", r("parameter")];
4218
+ case "TSTypeQuery":
4219
+ return cn(e, r);
4220
+ case "TSIndexSignature": {
4221
+ let a = n.parameters.length > 1 ? S(ce(t) ? "," : "") : "", o = l([D([E, b([", ", E], e.map(r, "parameters"))]), a, E]), p = e.parent.type === "ClassBody" && e.key === "body";
4222
+ return [p && n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? o : "", "]", H(e, r), p ? s : ""];
4223
+ }
4224
+ case "TSTypePredicate":
4225
+ return ln(e, r);
4226
+ case "TSNonNullExpression":
4227
+ return [r("expression"), "!"];
4228
+ case "TSImportType":
4229
+ return ["import", Lt(e, t, r), n.qualifier ? [".", r("qualifier")] : "", wt(e, t, r, n.typeArguments ? "typeArguments" : "typeParameters")];
4230
+ case "TSLiteralType":
4231
+ return r("literal");
4232
+ case "TSIndexedAccessType":
4233
+ return nn(e, t, r);
4234
+ case "TSTypeOperator":
4235
+ return [n.operator, " ", r("typeAnnotation")];
4236
+ case "TSMappedType":
4237
+ return Ra(e, t, r);
4238
+ case "TSMethodSignature": {
4239
+ let a = n.kind && n.kind !== "method" ? `${n.kind} ` : "";
4240
+ u.push($t(n), a, n.computed ? "[" : "", r("key"), n.computed ? "]" : "", V(e));
4241
+ let o = Ue(e, t, r, false, true), p = n.returnType ? "returnType" : "typeAnnotation", m = n[p], f = m ? H(e, r, p) : "", y = ct(n, f);
4242
+ return u.push(y ? l(o) : o), m && u.push(l(f)), l(u);
4243
+ }
4244
+ case "TSNamespaceExportDeclaration":
4245
+ return ["export as namespace ", r("id"), t.semi ? ";" : ""];
4246
+ case "TSEnumDeclaration":
4247
+ return In(e, r);
4248
+ case "TSEnumBody":
4249
+ return Pn(e, t, r);
4250
+ case "TSEnumMember":
4251
+ return kn(e, r);
4252
+ case "TSImportEqualsDeclaration":
4253
+ return [n.isExport ? "export " : "", "import ", Os(n, false), r("id"), " = ", r("moduleReference"), t.semi ? ";" : ""];
4254
+ case "TSExternalModuleReference":
4255
+ return ["require(", r("expression"), ")"];
4256
+ case "TSModuleDeclaration": {
4257
+ let { parent: a } = e, o = a.type === "TSModuleDeclaration", p = ((i = n.body) == null ? void 0 : i.type) === "TSModuleDeclaration";
4258
+ return o ? u.push(".") : (u.push($(e)), n.kind !== "global" && u.push(n.kind, " ")), u.push(r("id")), p ? u.push(r("body")) : n.body ? u.push(" ", l(r("body"))) : u.push(s), u;
4259
+ }
4260
+ case "TSConditionalType":
4261
+ return zt(e, t, r);
4262
+ case "TSInferType":
4263
+ return sn(e, t, r);
4264
+ case "TSIntersectionType":
4265
+ return en(e, t, r);
4266
+ case "TSUnionType":
4267
+ return tn(e, t, r);
4268
+ case "TSFunctionType":
4269
+ case "TSCallSignatureDeclaration":
4270
+ case "TSConstructorType":
4271
+ case "TSConstructSignatureDeclaration":
4272
+ return rn(e, t, r);
4273
+ case "TSTupleType":
4274
+ return Kt(e, t, r);
4275
+ case "TSTypeReference":
4276
+ return [r("typeName"), wt(e, t, r, n.typeArguments ? "typeArguments" : "typeParameters")];
4277
+ case "TSTypeAnnotation":
4278
+ return on(e, t, r);
4279
+ case "TSEmptyBodyFunctionExpression":
4280
+ return Fn(e, t, r);
4281
+ case "TSJSDocAllType":
4282
+ return "*";
4283
+ case "TSJSDocUnknownType":
4284
+ return "?";
4285
+ case "TSJSDocNullableType":
4286
+ return Bs(e, r, "?");
4287
+ case "TSJSDocNonNullableType":
4288
+ return Bs(e, r, "!");
4289
+ case "TSParenthesizedType":
4290
+ default:
4291
+ throw new qe(n, "TypeScript");
4292
+ }
4293
+ }
4294
+ function lm(e, t, r, n) {
4295
+ if (Vr(e)) return Ti(e, t);
4296
+ for (let s of [Li, bi, Ja, Na, Pa]) {
4297
+ let u = s(e, t, r, n);
4298
+ if (u !== void 0) return u;
4299
+ }
4300
+ }
4301
+ var mm = R(["ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "ClassPrivateProperty", "MethodDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod"]);
4302
+ function ym(e, t, r, n) {
4303
+ var f;
4304
+ e.isRoot && ((f = t.__onHtmlBindingRoot) == null || f.call(t, e.node, t));
4305
+ let s = lm(e, t, r, n);
4306
+ if (!s) return "";
4307
+ let { node: u } = e;
4308
+ if (mm(u)) return s;
4309
+ let i = O(u.decorators), a = Oi(e, t, r), o = u.type === "ClassExpression";
4310
+ if (i && !o) return lr(s, (y) => l([a, y]));
4311
+ let p = Le(e, t), m = ya(e, t);
4312
+ return !a && !p && !m ? s : lr(s, (y) => [m ? ";" : "", p ? "(" : "", p && o && i ? [D([x, a, y]), x] : [a, y], p ? ")" : ""]);
4313
+ }
4314
+ var Ga = ym;
4315
+ var fm = { avoidAstMutation: true };
4316
+ var qa = [{ name: "JSON.stringify", type: "data", extensions: [".importmap"], tmScope: "source.json", aceMode: "json", aliases: ["geojson", "jsonl", "sarif", "topojson"], codemirrorMode: "javascript", codemirrorMimeType: "application/json", filenames: ["package.json", "package-lock.json", "composer.json"], parsers: ["json-stringify"], vscodeLanguageIds: ["json"], linguistLanguageId: 174 }, { name: "JSON", type: "data", extensions: [".json", ".4DForm", ".4DProject", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".JSON-tmLanguage", ".json.example", ".mcmeta", ".sarif", ".tact", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"], tmScope: "source.json", aceMode: "json", aliases: ["geojson", "jsonl", "sarif", "topojson"], codemirrorMode: "javascript", codemirrorMimeType: "application/json", filenames: [".all-contributorsrc", ".arcconfig", ".auto-changelog", ".c8rc", ".htmlhintrc", ".imgbotconfig", ".nycrc", ".tern-config", ".tern-project", ".watchmanconfig", ".babelrc", ".jscsrc", ".jshintrc", ".jslintrc", ".swcrc"], parsers: ["json"], vscodeLanguageIds: ["json"], linguistLanguageId: 174 }, { name: "JSON with Comments", type: "data", extensions: [".jsonc", ".code-snippets", ".code-workspace", ".sublime-build", ".sublime-color-scheme", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"], tmScope: "source.json.comments", aceMode: "javascript", aliases: ["jsonc"], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", group: "JSON", filenames: [], parsers: ["jsonc"], vscodeLanguageIds: ["jsonc"], linguistLanguageId: 423 }, { name: "JSON5", type: "data", extensions: [".json5"], tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json5"], vscodeLanguageIds: ["json5"], linguistLanguageId: 175 }];
4317
+ var js = {};
4318
+ xr(js, { getVisitorKeys: () => Ua, massageAstNode: () => Ya, print: () => Fm });
4319
+ var Dm = { JsonRoot: ["node"], ArrayExpression: ["elements"], ObjectExpression: ["properties"], ObjectProperty: ["key", "value"], UnaryExpression: ["argument"], NullLiteral: [], BooleanLiteral: [], StringLiteral: [], NumericLiteral: [], Identifier: [], TemplateLiteral: ["quasis"], TemplateElement: [] };
4320
+ var Wa = Dm;
4321
+ var Em = Br(Wa);
4322
+ var Ua = Em;
4323
+ function Fm(e, t, r) {
4324
+ let { node: n } = e;
4325
+ switch (n.type) {
4326
+ case "JsonRoot":
4327
+ return [r("node"), F];
4328
+ case "ArrayExpression": {
4329
+ if (n.elements.length === 0) return "[]";
4330
+ let s = e.map(() => e.node === null ? "null" : r(), "elements");
4331
+ return ["[", D([F, b([",", F], s)]), F, "]"];
4332
+ }
4333
+ case "ObjectExpression":
4334
+ return n.properties.length === 0 ? "{}" : ["{", D([F, b([",", F], e.map(r, "properties"))]), F, "}"];
4335
+ case "ObjectProperty":
4336
+ return [r("key"), ": ", r("value")];
4337
+ case "UnaryExpression":
4338
+ return [n.operator === "+" ? "" : n.operator, r("argument")];
4339
+ case "NullLiteral":
4340
+ return "null";
4341
+ case "BooleanLiteral":
4342
+ return n.value ? "true" : "false";
4343
+ case "StringLiteral":
4344
+ return JSON.stringify(n.value);
4345
+ case "NumericLiteral":
4346
+ return Xa(e) ? JSON.stringify(String(n.value)) : JSON.stringify(n.value);
4347
+ case "Identifier":
4348
+ return Xa(e) ? JSON.stringify(n.name) : n.name;
4349
+ case "TemplateLiteral":
4350
+ return r(["quasis", 0]);
4351
+ case "TemplateElement":
4352
+ return JSON.stringify(n.value.cooked);
4353
+ default:
4354
+ throw new qe(n, "JSON");
4355
+ }
4356
+ }
4357
+ function Xa(e) {
4358
+ return e.key === "key" && e.parent.type === "ObjectProperty";
4359
+ }
4360
+ var Cm = /* @__PURE__ */ new Set(["start", "end", "extra", "loc", "comments", "leadingComments", "trailingComments", "innerComments", "errors", "range", "tokens"]);
4361
+ function Ya(e, t) {
4362
+ let { type: r } = e;
4363
+ if (r === "ObjectProperty") {
4364
+ let { key: n } = e;
4365
+ n.type === "Identifier" ? t.key = { type: "StringLiteral", value: n.name } : n.type === "NumericLiteral" && (t.key = { type: "StringLiteral", value: String(n.value) });
4366
+ return;
4367
+ }
4368
+ if (r === "UnaryExpression" && e.operator === "+") return t.argument;
4369
+ if (r === "ArrayExpression") {
4370
+ for (let [n, s] of e.elements.entries()) s === null && t.elements.splice(n, 0, { type: "NullLiteral" });
4371
+ return;
4372
+ }
4373
+ if (r === "TemplateLiteral") return { type: "StringLiteral", value: e.quasis[0].value.cooked };
4374
+ }
4375
+ Ya.ignoredProperties = Cm;
4376
+ var Zt = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
4377
+ var St = "JavaScript";
4378
+ var Am = { arrowParens: { category: St, type: "choice", default: "always", description: "Include parentheses around a sole arrow function parameter.", choices: [{ value: "always", description: "Always include parens. Example: `(x) => x`" }, { value: "avoid", description: "Omit parens when possible. Example: `x => x`" }] }, bracketSameLine: Zt.bracketSameLine, objectWrap: Zt.objectWrap, bracketSpacing: Zt.bracketSpacing, jsxBracketSameLine: { category: St, type: "boolean", description: "Put > on the last line instead of at a new line.", deprecated: "2.4.0" }, semi: { category: St, type: "boolean", default: true, description: "Print semicolons.", oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them." }, experimentalOperatorPosition: { category: St, type: "choice", default: "end", description: "Where to print operators when binary expressions wrap lines.", choices: [{ value: "start", description: "Print operators at the start of new lines." }, { value: "end", description: "Print operators at the end of previous lines." }] }, experimentalTernaries: { category: St, type: "boolean", default: false, description: "Use curious ternaries, with the question mark after the condition.", oppositeDescription: "Default behavior of ternaries; keep question marks on the same line as the consequent." }, singleQuote: Zt.singleQuote, jsxSingleQuote: { category: St, type: "boolean", default: false, description: "Use single quotes in JSX." }, quoteProps: { category: St, type: "choice", default: "as-needed", description: "Change when properties in objects are quoted.", choices: [{ value: "as-needed", description: "Only add quotes around object properties where required." }, { value: "consistent", description: "If at least one property in an object requires quotes, quote all properties." }, { value: "preserve", description: "Respect the input use of quotes in object properties." }] }, trailingComma: { category: St, type: "choice", default: "all", description: "Print trailing commas wherever possible when multi-line.", choices: [{ value: "all", description: "Trailing commas wherever possible (including function arguments)." }, { value: "es5", description: "Trailing commas where valid in ES5 (objects, arrays, etc.)" }, { value: "none", description: "No trailing commas." }] }, singleAttributePerLine: Zt.singleAttributePerLine };
4379
+ var Ha = Am;
4380
+ var dm = { estree: vs, "estree-json": js };
4381
+ var Tm = [...Vs, ...qa];
4382
+ var Nx = Rs;
4383
+
4384
+
4385
+
4386
+
4387
+
4388
+ exports.default = Nx; exports.languages = Tm; exports.options = Ha; exports.printers = dm;