sigma-ui 0.1.0 → 1.0.11

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 (169) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -0
  3. package/__generated/registry-schemes/colors/amber.json +99 -0
  4. package/__generated/registry-schemes/colors/blue.json +99 -0
  5. package/__generated/registry-schemes/colors/cyan.json +99 -0
  6. package/__generated/registry-schemes/colors/emerald.json +99 -0
  7. package/__generated/registry-schemes/colors/fuchsia.json +99 -0
  8. package/__generated/registry-schemes/colors/gray.json +99 -0
  9. package/__generated/registry-schemes/colors/green.json +99 -0
  10. package/__generated/registry-schemes/colors/index.json +1999 -0
  11. package/__generated/registry-schemes/colors/indigo.json +99 -0
  12. package/__generated/registry-schemes/colors/lime.json +99 -0
  13. package/__generated/registry-schemes/colors/neutral.json +99 -0
  14. package/__generated/registry-schemes/colors/orange.json +99 -0
  15. package/__generated/registry-schemes/colors/pink.json +99 -0
  16. package/__generated/registry-schemes/colors/purple.json +99 -0
  17. package/__generated/registry-schemes/colors/red.json +99 -0
  18. package/__generated/registry-schemes/colors/rose.json +99 -0
  19. package/__generated/registry-schemes/colors/sky.json +99 -0
  20. package/__generated/registry-schemes/colors/slate.json +99 -0
  21. package/__generated/registry-schemes/colors/stone.json +99 -0
  22. package/__generated/registry-schemes/colors/teal.json +99 -0
  23. package/__generated/registry-schemes/colors/violet.json +99 -0
  24. package/__generated/registry-schemes/colors/yellow.json +99 -0
  25. package/__generated/registry-schemes/colors/zinc.json +99 -0
  26. package/__generated/registry-schemes/index.json +787 -0
  27. package/__generated/registry-schemes/style-system/css/accordion.json +28 -0
  28. package/__generated/registry-schemes/style-system/css/alert-dialog.json +48 -0
  29. package/__generated/registry-schemes/style-system/css/alert.json +24 -0
  30. package/__generated/registry-schemes/style-system/css/avatar.json +16 -0
  31. package/__generated/registry-schemes/style-system/css/badge.json +16 -0
  32. package/__generated/registry-schemes/style-system/css/breadcrumb.json +44 -0
  33. package/__generated/registry-schemes/style-system/css/button.json +16 -0
  34. package/__generated/registry-schemes/style-system/css/calendar.json +60 -0
  35. package/__generated/registry-schemes/style-system/css/card-lightbox.json +22 -0
  36. package/__generated/registry-schemes/style-system/css/card.json +36 -0
  37. package/__generated/registry-schemes/style-system/css/carousel.json +43 -0
  38. package/__generated/registry-schemes/style-system/css/chart-area.json +20 -0
  39. package/__generated/registry-schemes/style-system/css/chart-bar.json +20 -0
  40. package/__generated/registry-schemes/style-system/css/chart-donut.json +20 -0
  41. package/__generated/registry-schemes/style-system/css/chart-line.json +20 -0
  42. package/__generated/registry-schemes/style-system/css/chart.json +35 -0
  43. package/__generated/registry-schemes/style-system/css/checkbox.json +16 -0
  44. package/__generated/registry-schemes/style-system/css/collapsible.json +24 -0
  45. package/__generated/registry-schemes/style-system/css/combobox.json +50 -0
  46. package/__generated/registry-schemes/style-system/css/command.json +48 -0
  47. package/__generated/registry-schemes/style-system/css/context-menu.json +72 -0
  48. package/__generated/registry-schemes/style-system/css/dialog.json +48 -0
  49. package/__generated/registry-schemes/style-system/css/drawer.json +42 -0
  50. package/__generated/registry-schemes/style-system/css/dropdown-menu.json +68 -0
  51. package/__generated/registry-schemes/style-system/css/form.json +44 -0
  52. package/__generated/registry-schemes/style-system/css/hover-card.json +24 -0
  53. package/__generated/registry-schemes/style-system/css/image.json +16 -0
  54. package/__generated/registry-schemes/style-system/css/infusion.json +12 -0
  55. package/__generated/registry-schemes/style-system/css/input.json +16 -0
  56. package/__generated/registry-schemes/style-system/css/label.json +16 -0
  57. package/__generated/registry-schemes/style-system/css/menubar.json +72 -0
  58. package/__generated/registry-schemes/style-system/css/navigation-menu.json +44 -0
  59. package/__generated/registry-schemes/style-system/css/number-field.json +32 -0
  60. package/__generated/registry-schemes/style-system/css/pagination.json +32 -0
  61. package/__generated/registry-schemes/style-system/css/pin-input.json +28 -0
  62. package/__generated/registry-schemes/style-system/css/popover.json +24 -0
  63. package/__generated/registry-schemes/style-system/css/progress.json +16 -0
  64. package/__generated/registry-schemes/style-system/css/radio-group.json +20 -0
  65. package/__generated/registry-schemes/style-system/css/range-calendar.json +60 -0
  66. package/__generated/registry-schemes/style-system/css/resizable.json +20 -0
  67. package/__generated/registry-schemes/style-system/css/scroll-area.json +20 -0
  68. package/__generated/registry-schemes/style-system/css/select.json +56 -0
  69. package/__generated/registry-schemes/style-system/css/separator.json +16 -0
  70. package/__generated/registry-schemes/style-system/css/sheet.json +44 -0
  71. package/__generated/registry-schemes/style-system/css/skeleton.json +16 -0
  72. package/__generated/registry-schemes/style-system/css/slider.json +16 -0
  73. package/__generated/registry-schemes/style-system/css/switch.json +16 -0
  74. package/__generated/registry-schemes/style-system/css/table.json +48 -0
  75. package/__generated/registry-schemes/style-system/css/tabs.json +28 -0
  76. package/__generated/registry-schemes/style-system/css/tags-input.json +34 -0
  77. package/__generated/registry-schemes/style-system/css/textarea.json +16 -0
  78. package/__generated/registry-schemes/style-system/css/toaster.json +26 -0
  79. package/__generated/registry-schemes/style-system/css/toggle-group.json +20 -0
  80. package/__generated/registry-schemes/style-system/css/toggle.json +16 -0
  81. package/__generated/registry-schemes/style-system/css/tooltip.json +28 -0
  82. package/__generated/registry-schemes/style-system/index.json +10 -0
  83. package/__generated/registry-schemes/style-system/tailwind/accordion.json +28 -0
  84. package/__generated/registry-schemes/style-system/tailwind/alert-dialog.json +48 -0
  85. package/__generated/registry-schemes/style-system/tailwind/alert.json +24 -0
  86. package/__generated/registry-schemes/style-system/tailwind/avatar.json +16 -0
  87. package/__generated/registry-schemes/style-system/tailwind/badge.json +16 -0
  88. package/__generated/registry-schemes/style-system/tailwind/breadcrumb.json +44 -0
  89. package/__generated/registry-schemes/style-system/tailwind/button.json +16 -0
  90. package/__generated/registry-schemes/style-system/tailwind/calendar.json +60 -0
  91. package/__generated/registry-schemes/style-system/tailwind/card-lightbox.json +22 -0
  92. package/__generated/registry-schemes/style-system/tailwind/card.json +36 -0
  93. package/__generated/registry-schemes/style-system/tailwind/carousel.json +43 -0
  94. package/__generated/registry-schemes/style-system/tailwind/chart-area.json +20 -0
  95. package/__generated/registry-schemes/style-system/tailwind/chart-bar.json +20 -0
  96. package/__generated/registry-schemes/style-system/tailwind/chart-donut.json +20 -0
  97. package/__generated/registry-schemes/style-system/tailwind/chart-line.json +20 -0
  98. package/__generated/registry-schemes/style-system/tailwind/chart.json +35 -0
  99. package/__generated/registry-schemes/style-system/tailwind/checkbox.json +16 -0
  100. package/__generated/registry-schemes/style-system/tailwind/collapsible.json +24 -0
  101. package/__generated/registry-schemes/style-system/tailwind/combobox.json +50 -0
  102. package/__generated/registry-schemes/style-system/tailwind/command.json +48 -0
  103. package/__generated/registry-schemes/style-system/tailwind/context-menu.json +72 -0
  104. package/__generated/registry-schemes/style-system/tailwind/dialog.json +48 -0
  105. package/__generated/registry-schemes/style-system/tailwind/drawer.json +42 -0
  106. package/__generated/registry-schemes/style-system/tailwind/dropdown-menu.json +68 -0
  107. package/__generated/registry-schemes/style-system/tailwind/form.json +44 -0
  108. package/__generated/registry-schemes/style-system/tailwind/hover-card.json +24 -0
  109. package/__generated/registry-schemes/style-system/tailwind/image.json +16 -0
  110. package/__generated/registry-schemes/style-system/tailwind/infusion.json +12 -0
  111. package/__generated/registry-schemes/style-system/tailwind/input.json +16 -0
  112. package/__generated/registry-schemes/style-system/tailwind/label.json +16 -0
  113. package/__generated/registry-schemes/style-system/tailwind/menubar.json +72 -0
  114. package/__generated/registry-schemes/style-system/tailwind/navigation-menu.json +44 -0
  115. package/__generated/registry-schemes/style-system/tailwind/number-field.json +32 -0
  116. package/__generated/registry-schemes/style-system/tailwind/pagination.json +32 -0
  117. package/__generated/registry-schemes/style-system/tailwind/pin-input.json +28 -0
  118. package/__generated/registry-schemes/style-system/tailwind/popover.json +24 -0
  119. package/__generated/registry-schemes/style-system/tailwind/progress.json +16 -0
  120. package/__generated/registry-schemes/style-system/tailwind/radio-group.json +20 -0
  121. package/__generated/registry-schemes/style-system/tailwind/range-calendar.json +60 -0
  122. package/__generated/registry-schemes/style-system/tailwind/resizable.json +20 -0
  123. package/__generated/registry-schemes/style-system/tailwind/scroll-area.json +20 -0
  124. package/__generated/registry-schemes/style-system/tailwind/select.json +56 -0
  125. package/__generated/registry-schemes/style-system/tailwind/separator.json +16 -0
  126. package/__generated/registry-schemes/style-system/tailwind/sheet.json +44 -0
  127. package/__generated/registry-schemes/style-system/tailwind/skeleton.json +16 -0
  128. package/__generated/registry-schemes/style-system/tailwind/slider.json +16 -0
  129. package/__generated/registry-schemes/style-system/tailwind/switch.json +16 -0
  130. package/__generated/registry-schemes/style-system/tailwind/table.json +48 -0
  131. package/__generated/registry-schemes/style-system/tailwind/tabs.json +28 -0
  132. package/__generated/registry-schemes/style-system/tailwind/tags-input.json +34 -0
  133. package/__generated/registry-schemes/style-system/tailwind/textarea.json +16 -0
  134. package/__generated/registry-schemes/style-system/tailwind/toaster.json +26 -0
  135. package/__generated/registry-schemes/style-system/tailwind/toggle-group.json +20 -0
  136. package/__generated/registry-schemes/style-system/tailwind/toggle.json +16 -0
  137. package/__generated/registry-schemes/style-system/tailwind/tooltip.json +28 -0
  138. package/dist/acorn-M5N7XWA6.js +3048 -0
  139. package/dist/acorn-M5N7XWA6.js.map +1 -0
  140. package/dist/angular-O7UVYQUZ.js +2796 -0
  141. package/dist/angular-O7UVYQUZ.js.map +1 -0
  142. package/dist/babel-J6LTJDOS.js +6998 -0
  143. package/dist/babel-J6LTJDOS.js.map +1 -0
  144. package/dist/chunk-PZ5AY32C.js +10 -0
  145. package/dist/chunk-PZ5AY32C.js.map +1 -0
  146. package/dist/estree-H4XUELNR.js +4407 -0
  147. package/dist/estree-H4XUELNR.js.map +1 -0
  148. package/dist/flow-AOY6BQUA.js +26937 -0
  149. package/dist/flow-AOY6BQUA.js.map +1 -0
  150. package/dist/glimmer-KKY2I6O7.js +2857 -0
  151. package/dist/glimmer-KKY2I6O7.js.map +1 -0
  152. package/dist/graphql-YOTP2JVS.js +1252 -0
  153. package/dist/graphql-YOTP2JVS.js.map +1 -0
  154. package/dist/html-X25PN5V5.js +2745 -0
  155. package/dist/html-X25PN5V5.js.map +1 -0
  156. package/dist/index.d.ts +1 -0
  157. package/dist/index.js +24930 -0
  158. package/dist/index.js.map +1 -0
  159. package/dist/markdown-MYCFYALD.js +3486 -0
  160. package/dist/markdown-MYCFYALD.js.map +1 -0
  161. package/dist/meriyah-OURTSR6I.js +2478 -0
  162. package/dist/meriyah-OURTSR6I.js.map +1 -0
  163. package/dist/postcss-2MY3W5DN.js +5062 -0
  164. package/dist/postcss-2MY3W5DN.js.map +1 -0
  165. package/dist/typescript-QJCPE2ES.js +13105 -0
  166. package/dist/typescript-QJCPE2ES.js.map +1 -0
  167. package/dist/yaml-XG5IIC33.js +4225 -0
  168. package/dist/yaml-XG5IIC33.js.map +1 -0
  169. package/package.json +87 -9
@@ -0,0 +1,4407 @@
1
+ import "./chunk-PZ5AY32C.js";
2
+
3
+ // ../../node_modules/.pnpm/prettier@3.5.0/node_modules/prettier/plugins/estree.mjs
4
+ var Xa = Object.defineProperty;
5
+ var Ws = (e) => {
6
+ throw TypeError(e);
7
+ };
8
+ var Tr = (e, t) => {
9
+ for (var r in t) Xa(e, r, { get: t[r], enumerable: true });
10
+ };
11
+ var Gs = (e, t, r) => t.has(e) || Ws("Cannot " + r);
12
+ var pt = (e, t, r) => (Gs(e, t, "read from private field"), r ? r.call(e) : t.get(e));
13
+ var Us = (e, t, r) => t.has(e) ? Ws("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r);
14
+ var Ys = (e, t, r, n) => (Gs(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
15
+ var js = {};
16
+ Tr(js, { languages: () => cm, options: () => Wa, printers: () => pm });
17
+ var Ns = [{ linguistLanguageId: 183, name: "JavaScript", type: "programming", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", color: "#f1e05a", aliases: ["js", "node"], extensions: [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".wxs"], filenames: ["Jakefile"], interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell", "zx"], parsers: ["babel", "acorn", "espree", "meriyah", "babel-flow", "babel-ts", "flow", "typescript"], vscodeLanguageIds: ["javascript", "mongo"] }, { linguistLanguageId: 183, name: "Flow", type: "programming", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", color: "#f1e05a", aliases: [], extensions: [".js.flow"], filenames: [], interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], parsers: ["flow", "babel-flow"], vscodeLanguageIds: ["javascript"] }, { linguistLanguageId: 183, name: "JSX", type: "programming", tmScope: "source.js.jsx", aceMode: "javascript", codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", color: void 0, aliases: void 0, extensions: [".jsx"], filenames: void 0, interpreters: void 0, parsers: ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], vscodeLanguageIds: ["javascriptreact"], group: "JavaScript" }, { linguistLanguageId: 378, name: "TypeScript", type: "programming", color: "#3178c6", aliases: ["ts"], interpreters: ["deno", "ts-node"], extensions: [".ts", ".cts", ".mts"], tmScope: "source.ts", aceMode: "typescript", codemirrorMode: "javascript", codemirrorMimeType: "application/typescript", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescript"] }, { linguistLanguageId: 94901924, name: "TSX", type: "programming", color: "#3178c6", group: "TypeScript", extensions: [".tsx"], tmScope: "source.tsx", aceMode: "javascript", codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescriptreact"] }];
18
+ var _s = {};
19
+ Tr(_s, { canAttachComment: () => dp, embed: () => ti, experimentalFeatures: () => nm, getCommentChildNodes: () => xp, getVisitorKeys: () => Sr, handleComments: () => Qn, insertPragma: () => mi, isBlockComment: () => ee, isGap: () => hp, massageAstNode: () => du, print: () => va, printComment: () => wu, willPrintOwnComments: () => zn });
20
+ var Ha = (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 N = Ha;
24
+ var Va = (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 M = Va;
28
+ function $a(e) {
29
+ return e !== null && typeof e == "object";
30
+ }
31
+ var Xs = $a;
32
+ function* Ka(e, t) {
33
+ let { getVisitorKeys: r, filter: n = () => true } = t, s = (u) => Xs(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* Qa(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 Ka(s, t)) yield u, r.push(u);
45
+ }
46
+ }
47
+ function Hs(e, { getVisitorKeys: t, predicate: r }) {
48
+ for (let n of Qa(e, { getVisitorKeys: t })) if (r(n)) return true;
49
+ return false;
50
+ }
51
+ var Vs = () => /[#*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 $s(e) {
53
+ return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
54
+ }
55
+ function Ks(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 Qs = (e) => !($s(e) || Ks(e));
59
+ var za = /[^\x20-\x7F]/u;
60
+ function Za(e) {
61
+ if (!e) return 0;
62
+ if (!za.test(e)) return e.length;
63
+ e = e.replace(Vs(), " ");
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 += Qs(n) ? 1 : 2);
68
+ }
69
+ return t;
70
+ }
71
+ var tt = Za;
72
+ function dr(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 Pm = dr(/\s/u);
88
+ var Ye = dr(" ");
89
+ var zs = dr(",; ");
90
+ var Zs = dr(/[^\n\r]/u);
91
+ function eo(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 Ne = eo;
109
+ function to(e, t, r = {}) {
110
+ let n = Ye(e, r.backwards ? t - 1 : t, r), s = Ne(e, n, r);
111
+ return n !== s;
112
+ }
113
+ var Z = to;
114
+ function ro(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 Ot = ro;
122
+ function no(e, t) {
123
+ return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? Zs(e, t) : t;
124
+ }
125
+ var _t = no;
126
+ function so(e, t) {
127
+ let r = null, n = t;
128
+ for (; n !== r; ) r = n, n = zs(e, n), n = Ot(e, n), n = Ye(e, n);
129
+ return n = _t(e, n), n = Ne(e, n), n !== false && Z(e, n);
130
+ }
131
+ var vt = so;
132
+ function uo(e) {
133
+ return Array.isArray(e) && e.length > 0;
134
+ }
135
+ var O = uo;
136
+ var eu = new Proxy(() => {
137
+ }, { get: () => eu });
138
+ var jt = eu;
139
+ var xr = "'";
140
+ var tu = '"';
141
+ function io(e, t) {
142
+ let r = t === true || t === xr ? xr : tu, n = r === xr ? tu : xr, 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 hr = io;
147
+ function ao(e, t, r) {
148
+ let n = t === '"' ? "'" : '"', u = N(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 ru = ao;
152
+ function oo(e, t) {
153
+ jt(/^(?<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 ? "'" : hr(r, t.singleQuote);
155
+ return e.charAt(0) === n ? e : ru(r, n, false);
156
+ }
157
+ var rt = oo;
158
+ function q(e) {
159
+ var n, s, u;
160
+ let t = ((n = e.range) == null ? void 0 : n[0]) ?? e.start, r = (u = ((s = e.declaration) == null ? void 0 : s.decorators) ?? e.decorators) == null ? void 0 : u[0];
161
+ return r ? Math.min(q(r), t) : t;
162
+ }
163
+ function k(e) {
164
+ var t;
165
+ return ((t = e.range) == null ? void 0 : t[1]) ?? e.end;
166
+ }
167
+ function bt(e, t) {
168
+ let r = q(e);
169
+ return Number.isInteger(r) && r === q(t);
170
+ }
171
+ function po(e, t) {
172
+ let r = k(e);
173
+ return Number.isInteger(r) && r === k(t);
174
+ }
175
+ function nu(e, t) {
176
+ return bt(e, t) && po(e, t);
177
+ }
178
+ var er = null;
179
+ function tr(e) {
180
+ if (er !== null && typeof er.property) {
181
+ let t = er;
182
+ return er = tr.prototype = null, t;
183
+ }
184
+ return er = tr.prototype = e ?? /* @__PURE__ */ Object.create(null), new tr();
185
+ }
186
+ var co = 10;
187
+ for (let e = 0; e <= co; e++) tr();
188
+ function Ln(e) {
189
+ return tr(e);
190
+ }
191
+ function lo(e, t = "type") {
192
+ Ln(e);
193
+ function r(n) {
194
+ let s = n[t], u = e[s];
195
+ if (!Array.isArray(u)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
196
+ return u;
197
+ }
198
+ return r;
199
+ }
200
+ var gr = lo;
201
+ var su = { ArrayExpression: ["elements"], AssignmentExpression: ["left", "right"], BinaryExpression: ["left", "right"], InterpreterDirective: [], Directive: ["value"], DirectiveLiteral: [], BlockStatement: ["directives", "body"], BreakStatement: ["label"], CallExpression: ["callee", "arguments", "typeParameters", "typeArguments"], 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", "arguments", "typeParameters", "typeArguments"], Program: ["directives", "body"], ObjectExpression: ["properties"], ObjectMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectProperty: ["key", "value", "decorators"], 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: ["properties", "typeAnnotation", "decorators"], SpreadElement: ["argument"], Super: [], TaggedTemplateExpression: ["tag", "typeParameters", "quasi", "typeArguments"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], YieldExpression: ["argument"], AwaitExpression: ["argument"], BigIntLiteral: [], ExportNamespaceSpecifier: ["exported"], OptionalMemberExpression: ["object", "property"], OptionalCallExpression: ["callee", "arguments", "typeParameters", "typeArguments"], 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"], 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"], ImportAttribute: ["key", "value"], Decorator: ["expression"], DoExpression: ["body"], ExportDefaultSpecifier: ["exported"], RecordExpression: ["properties"], TupleExpression: ["elements"], 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: ["typeParameter", "nameType", "typeAnnotation"], 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", "members"], 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"], NGRoot: ["node"], NGPipeExpression: ["left", "right", "arguments"], NGChainedExpression: ["expressions"], NGEmptyExpression: [], NGMicrosyntax: ["body"], NGMicrosyntaxKey: [], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: ["key", "value"], NGMicrosyntaxAs: ["key", "alias"], JsExpressionRoot: ["node"], JsonRoot: ["node"], TSJSDocAllType: [], TSJSDocUnknownType: [], TSJSDocNullableType: ["typeAnnotation"], TSJSDocNonNullableType: ["typeAnnotation"], NeverTypeAnnotation: [], UndefinedTypeAnnotation: [], UnknownTypeAnnotation: [], SatisfiesExpression: ["expression", "typeAnnotation"] };
202
+ var mo = gr(su);
203
+ var Sr = mo;
204
+ function yo(e) {
205
+ let t = new Set(e);
206
+ return (r) => t.has(r == null ? void 0 : r.type);
207
+ }
208
+ var R = yo;
209
+ var Do = R(["Block", "CommentBlock", "MultiLine"]);
210
+ var ee = Do;
211
+ var fo = R(["AnyTypeAnnotation", "ThisTypeAnnotation", "NumberTypeAnnotation", "VoidTypeAnnotation", "BooleanTypeAnnotation", "BigIntTypeAnnotation", "SymbolTypeAnnotation", "StringTypeAnnotation", "NeverTypeAnnotation", "UndefinedTypeAnnotation", "UnknownTypeAnnotation", "EmptyTypeAnnotation", "MixedTypeAnnotation"]);
212
+ var Br = fo;
213
+ function Eo(e, t) {
214
+ let r = t.split(".");
215
+ for (let n = r.length - 1; n >= 0; n--) {
216
+ let s = r[n];
217
+ if (n === 0) return e.type === "Identifier" && e.name === s;
218
+ if (e.type !== "MemberExpression" || e.optional || e.computed || e.property.type !== "Identifier" || e.property.name !== s) return false;
219
+ e = e.object;
220
+ }
221
+ }
222
+ function Fo(e, t) {
223
+ return t.some((r) => Eo(e, r));
224
+ }
225
+ var uu = Fo;
226
+ function Co({ type: e }) {
227
+ return e.startsWith("TS") && e.endsWith("Keyword");
228
+ }
229
+ var br = Co;
230
+ function nr(e, t) {
231
+ return t(e) || Hs(e, { getVisitorKeys: Sr, predicate: t });
232
+ }
233
+ function Rt(e) {
234
+ return e.type === "AssignmentExpression" || e.type === "BinaryExpression" || e.type === "LogicalExpression" || e.type === "NGPipeExpression" || e.type === "ConditionalExpression" || L(e) || W(e) || e.type === "SequenceExpression" || e.type === "TaggedTemplateExpression" || e.type === "BindExpression" || e.type === "UpdateExpression" && !e.prefix || Ae(e) || e.type === "TSNonNullExpression" || e.type === "ChainExpression";
235
+ }
236
+ function ou(e) {
237
+ return e.expressions ? e.expressions[0] : e.left ?? e.test ?? e.callee ?? e.object ?? e.tag ?? e.argument ?? e.expression;
238
+ }
239
+ function kr(e) {
240
+ if (e.expressions) return ["expressions", 0];
241
+ if (e.left) return ["left"];
242
+ if (e.test) return ["test"];
243
+ if (e.object) return ["object"];
244
+ if (e.callee) return ["callee"];
245
+ if (e.tag) return ["tag"];
246
+ if (e.argument) return ["argument"];
247
+ if (e.expression) return ["expression"];
248
+ throw new Error("Unexpected node has no left side.");
249
+ }
250
+ var Ct = R(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
251
+ var pu = R(["ExportDefaultDeclaration", "DeclareExportDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportAllDeclaration"]);
252
+ var Y = R(["ArrayExpression", "TupleExpression"]);
253
+ var se = R(["ObjectExpression", "RecordExpression"]);
254
+ function cu(e) {
255
+ return e.type === "LogicalExpression" && e.operator === "??";
256
+ }
257
+ function Fe(e) {
258
+ return e.type === "NumericLiteral" || e.type === "Literal" && typeof e.value == "number";
259
+ }
260
+ function jn(e) {
261
+ return e.type === "UnaryExpression" && (e.operator === "+" || e.operator === "-") && Fe(e.argument);
262
+ }
263
+ function te(e) {
264
+ return !!(e && (e.type === "StringLiteral" || e.type === "Literal" && typeof e.value == "string"));
265
+ }
266
+ function Mn(e) {
267
+ return e.type === "RegExpLiteral" || e.type === "Literal" && !!e.regex;
268
+ }
269
+ var Ir = R(["Literal", "BooleanLiteral", "BigIntLiteral", "DirectiveLiteral", "NullLiteral", "NumericLiteral", "RegExpLiteral", "StringLiteral"]);
270
+ var Ao = R(["Identifier", "ThisExpression", "Super", "PrivateName", "PrivateIdentifier"]);
271
+ var Me = R(["ObjectTypeAnnotation", "TSTypeLiteral", "TSMappedType"]);
272
+ var Mt = R(["FunctionExpression", "ArrowFunctionExpression"]);
273
+ function To(e) {
274
+ return e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && e.body.type === "BlockStatement";
275
+ }
276
+ function wn(e) {
277
+ return L(e) && e.callee.type === "Identifier" && ["async", "inject", "fakeAsync", "waitForAsync"].includes(e.callee.name);
278
+ }
279
+ var X = R(["JSXElement", "JSXFragment"]);
280
+ function Pt(e) {
281
+ return e.method && e.kind === "init" || e.kind === "get" || e.kind === "set";
282
+ }
283
+ function Lr(e) {
284
+ return (e.type === "ObjectTypeProperty" || e.type === "ObjectTypeInternalSlot") && !e.static && !e.method && e.kind !== "get" && e.kind !== "set" && e.value.type === "FunctionTypeAnnotation";
285
+ }
286
+ function lu(e) {
287
+ return (e.type === "TypeAnnotation" || e.type === "TSTypeAnnotation") && e.typeAnnotation.type === "FunctionTypeAnnotation" && !e.static && !bt(e, e.typeAnnotation);
288
+ }
289
+ var De = R(["BinaryExpression", "LogicalExpression", "NGPipeExpression"]);
290
+ function At(e) {
291
+ return W(e) || e.type === "BindExpression" && !!e.object;
292
+ }
293
+ var xo = R(["TSThisType", "NullLiteralTypeAnnotation", "BooleanLiteralTypeAnnotation", "StringLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "TSLiteralType", "TSTemplateLiteralType"]);
294
+ function Jt(e) {
295
+ return br(e) || Br(e) || xo(e) || (e.type === "GenericTypeAnnotation" || e.type === "TSTypeReference") && !e.typeParameters && !e.typeArguments;
296
+ }
297
+ function ho(e) {
298
+ return e.type === "Identifier" && (e.name === "beforeEach" || e.name === "beforeAll" || e.name === "afterEach" || e.name === "afterAll");
299
+ }
300
+ var go = ["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"];
301
+ function So(e) {
302
+ return uu(e, go);
303
+ }
304
+ function kt(e, t) {
305
+ if ((e == null ? void 0 : e.type) !== "CallExpression" || e.optional) return false;
306
+ let r = pe(e);
307
+ if (r.length === 1) {
308
+ if (wn(e) && kt(t)) return Mt(r[0]);
309
+ if (ho(e.callee)) return wn(r[0]);
310
+ } else if ((r.length === 2 || r.length === 3) && (r[0].type === "TemplateLiteral" || te(r[0])) && So(e.callee)) return r[2] && !Fe(r[2]) ? false : (r.length === 2 ? Mt(r[1]) : To(r[1]) && z(r[1]).length <= 1) || wn(r[1]);
311
+ return false;
312
+ }
313
+ var mu = (e) => (t) => ((t == null ? void 0 : t.type) === "ChainExpression" && (t = t.expression), e(t));
314
+ var L = mu(R(["CallExpression", "OptionalCallExpression"]));
315
+ var W = mu(R(["MemberExpression", "OptionalMemberExpression"]));
316
+ function Rn(e, t = 5) {
317
+ return yu(e, t) <= t;
318
+ }
319
+ function yu(e, t) {
320
+ let r = 0;
321
+ for (let n in e) {
322
+ let s = e[n];
323
+ if (s && typeof s == "object" && typeof s.type == "string" && (r++, r += yu(s, t - r)), r > t) return r;
324
+ }
325
+ return r;
326
+ }
327
+ var Bo = 0.25;
328
+ function sr(e, t) {
329
+ let { printWidth: r } = t;
330
+ if (T(e)) return false;
331
+ let n = r * Bo;
332
+ if (e.type === "ThisExpression" || e.type === "Identifier" && e.name.length <= n || jn(e) && !T(e.argument)) return true;
333
+ let s = e.type === "Literal" && "regex" in e && e.regex.pattern || e.type === "RegExpLiteral" && e.pattern;
334
+ return s ? s.length <= n : te(e) ? rt(fe(e), t).length <= n : e.type === "TemplateLiteral" ? e.expressions.length === 0 && e.quasis[0].value.raw.length <= n && !e.quasis[0].value.raw.includes(`
335
+ `) : e.type === "UnaryExpression" ? sr(e.argument, { printWidth: r }) : e.type === "CallExpression" && e.arguments.length === 0 && e.callee.type === "Identifier" ? e.callee.name.length <= n - 2 : Ir(e);
336
+ }
337
+ function Le(e, t) {
338
+ return X(t) ? It(t) : T(t, h.Leading, (r) => Z(e, k(r)));
339
+ }
340
+ function iu(e) {
341
+ return e.quasis.some((t) => t.value.raw.includes(`
342
+ `));
343
+ }
344
+ function wr(e, t) {
345
+ return (e.type === "TemplateLiteral" && iu(e) || e.type === "TaggedTemplateExpression" && iu(e.quasi)) && !Z(t, q(e), { backwards: true });
346
+ }
347
+ function Or(e) {
348
+ if (!T(e)) return false;
349
+ let t = M(false, ct(e, h.Dangling), -1);
350
+ return t && !ee(t);
351
+ }
352
+ function Du(e) {
353
+ if (e.length <= 1) return false;
354
+ let t = 0;
355
+ for (let r of e) if (Mt(r)) {
356
+ if (t += 1, t > 1) return true;
357
+ } else if (L(r)) {
358
+ for (let n of pe(r)) if (Mt(n)) return true;
359
+ }
360
+ return false;
361
+ }
362
+ function _r(e) {
363
+ let { node: t, parent: r, key: n } = e;
364
+ return n === "callee" && L(t) && L(r) && r.arguments.length > 0 && t.arguments.length > r.arguments.length;
365
+ }
366
+ var bo = /* @__PURE__ */ new Set(["!", "-", "+", "~"]);
367
+ function Ie(e, t = 2) {
368
+ if (t <= 0) return false;
369
+ if (e.type === "ChainExpression" || e.type === "TSNonNullExpression") return Ie(e.expression, t);
370
+ let r = (n) => Ie(n, t - 1);
371
+ if (Mn(e)) return tt(e.pattern ?? e.regex.pattern) <= 5;
372
+ if (Ir(e) || Ao(e) || e.type === "ArgumentPlaceholder") return true;
373
+ if (e.type === "TemplateLiteral") return e.quasis.every((n) => !n.value.raw.includes(`
374
+ `)) && e.expressions.every(r);
375
+ if (se(e)) return e.properties.every((n) => !n.computed && (n.shorthand || n.value && r(n.value)));
376
+ if (Y(e)) return e.elements.every((n) => n === null || r(n));
377
+ if (lt(e)) {
378
+ if (e.type === "ImportExpression" || Ie(e.callee, t)) {
379
+ let n = pe(e);
380
+ return n.length <= t && n.every(r);
381
+ }
382
+ return false;
383
+ }
384
+ return W(e) ? Ie(e.object, t) && Ie(e.property, t) : e.type === "UnaryExpression" && bo.has(e.operator) || e.type === "UpdateExpression" ? Ie(e.argument, t) : false;
385
+ }
386
+ function fe(e) {
387
+ var t;
388
+ return ((t = e.extra) == null ? void 0 : t.raw) ?? e.raw;
389
+ }
390
+ function fu(e) {
391
+ return e;
392
+ }
393
+ function oe(e, t = "es5") {
394
+ return e.trailingComma === "es5" && t === "es5" || e.trailingComma === "all" && (t === "all" || t === "es5");
395
+ }
396
+ function ae(e, t) {
397
+ switch (e.type) {
398
+ case "BinaryExpression":
399
+ case "LogicalExpression":
400
+ case "AssignmentExpression":
401
+ case "NGPipeExpression":
402
+ return ae(e.left, t);
403
+ case "MemberExpression":
404
+ case "OptionalMemberExpression":
405
+ return ae(e.object, t);
406
+ case "TaggedTemplateExpression":
407
+ return e.tag.type === "FunctionExpression" ? false : ae(e.tag, t);
408
+ case "CallExpression":
409
+ case "OptionalCallExpression":
410
+ return e.callee.type === "FunctionExpression" ? false : ae(e.callee, t);
411
+ case "ConditionalExpression":
412
+ return ae(e.test, t);
413
+ case "UpdateExpression":
414
+ return !e.prefix && ae(e.argument, t);
415
+ case "BindExpression":
416
+ return e.object && ae(e.object, t);
417
+ case "SequenceExpression":
418
+ return ae(e.expressions[0], t);
419
+ case "ChainExpression":
420
+ case "TSSatisfiesExpression":
421
+ case "TSAsExpression":
422
+ case "TSNonNullExpression":
423
+ case "AsExpression":
424
+ case "AsConstExpression":
425
+ case "SatisfiesExpression":
426
+ return ae(e.expression, t);
427
+ default:
428
+ return t(e);
429
+ }
430
+ }
431
+ var au = { "==": true, "!=": true, "===": true, "!==": true };
432
+ var Pr = { "*": true, "/": true, "%": true };
433
+ var vn = { ">>": true, ">>>": true, "<<": true };
434
+ function ur(e, t) {
435
+ return !(rr(t) !== rr(e) || e === "**" || au[e] && au[t] || t === "%" && Pr[e] || e === "%" && Pr[t] || t !== e && Pr[t] && Pr[e] || vn[e] && vn[t]);
436
+ }
437
+ var Po = new Map([["|>"], ["??"], ["||"], ["&&"], ["|"], ["^"], ["&"], ["==", "===", "!=", "!=="], ["<", ">", "<=", ">=", "in", "instanceof"], [">>", "<<", ">>>"], ["+", "-"], ["*", "/", "%"], ["**"]].flatMap((e, t) => e.map((r) => [r, t])));
438
+ function rr(e) {
439
+ return Po.get(e);
440
+ }
441
+ function Eu(e) {
442
+ return !!vn[e] || e === "|" || e === "^" || e === "&";
443
+ }
444
+ function Fu(e) {
445
+ var r;
446
+ if (e.rest) return true;
447
+ let t = z(e);
448
+ return ((r = M(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
449
+ }
450
+ var On = /* @__PURE__ */ new WeakMap();
451
+ function z(e) {
452
+ if (On.has(e)) return On.get(e);
453
+ let t = [];
454
+ 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), On.set(e, t), t;
455
+ }
456
+ function Cu(e, t) {
457
+ let { node: r } = e, n = 0, s = (u) => t(u, n++);
458
+ 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");
459
+ }
460
+ var _n = /* @__PURE__ */ new WeakMap();
461
+ function pe(e) {
462
+ if (_n.has(e)) return _n.get(e);
463
+ if (e.type === "ChainExpression") return pe(e.expression);
464
+ let t = e.arguments;
465
+ return e.type === "ImportExpression" && (t = [e.source], e.options && t.push(e.options)), _n.set(e, t), t;
466
+ }
467
+ function qt(e, t) {
468
+ let { node: r } = e;
469
+ if (r.type === "ChainExpression") return e.call(() => qt(e, t), "expression");
470
+ r.type === "ImportExpression" ? (e.call((n) => t(n, 0), "source"), r.options && e.call((n) => t(n, 1), "options")) : e.each(t, "arguments");
471
+ }
472
+ function Jn(e, t) {
473
+ let r = [];
474
+ if (e.type === "ChainExpression" && (e = e.expression, r.push("expression")), e.type === "ImportExpression") {
475
+ if (t === 0 || t === (e.options ? -2 : -1)) return [...r, "source"];
476
+ if (e.options && (t === 1 || t === -1)) return [...r, "options"];
477
+ throw new RangeError("Invalid argument index");
478
+ }
479
+ if (t < 0 && (t = e.arguments.length + t), t < 0 || t >= e.arguments.length) throw new RangeError("Invalid argument index");
480
+ return [...r, "arguments", t];
481
+ }
482
+ function ir(e) {
483
+ return e.value.trim() === "prettier-ignore" && !e.unignore;
484
+ }
485
+ function It(e) {
486
+ return (e == null ? void 0 : e.prettierIgnore) || T(e, h.PrettierIgnore);
487
+ }
488
+ var h = { Leading: 2, Trailing: 4, Dangling: 8, Block: 16, Line: 32, PrettierIgnore: 64, First: 128, Last: 256 };
489
+ var Au = (e, t) => {
490
+ 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 && !ee(r) || e & h.Line && !Ct(r) || e & h.First && n !== 0 || e & h.Last && n !== s.length - 1 || e & h.PrettierIgnore && !ir(r) || t && !t(r));
491
+ };
492
+ function T(e, t, r) {
493
+ if (!O(e == null ? void 0 : e.comments)) return false;
494
+ let n = Au(t, r);
495
+ return n ? e.comments.some(n) : true;
496
+ }
497
+ function ct(e, t, r) {
498
+ if (!Array.isArray(e == null ? void 0 : e.comments)) return [];
499
+ let n = Au(t, r);
500
+ return n ? e.comments.filter(n) : e.comments;
501
+ }
502
+ var ce = (e, { originalText: t }) => vt(t, k(e));
503
+ function lt(e) {
504
+ return L(e) || e.type === "NewExpression" || e.type === "ImportExpression";
505
+ }
506
+ function Ce(e) {
507
+ return e && (e.type === "ObjectProperty" || e.type === "Property" && !Pt(e));
508
+ }
509
+ var Ae = R(["TSAsExpression", "TSSatisfiesExpression", "AsExpression", "AsConstExpression", "SatisfiesExpression"]);
510
+ var Xe = R(["UnionTypeAnnotation", "TSUnionType"]);
511
+ var vr = R(["IntersectionTypeAnnotation", "TSIntersectionType"]);
512
+ var ko = /* @__PURE__ */ new Set(["range", "raw", "comments", "leadingComments", "trailingComments", "innerComments", "extra", "start", "end", "loc", "flags", "errors", "tokens"]);
513
+ var Wt = (e) => {
514
+ for (let t of e.quasis) delete t.value;
515
+ };
516
+ function Tu(e, t, r) {
517
+ var s, u;
518
+ 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;
519
+ 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) {
520
+ let { key: i } = e;
521
+ te(i) || Fe(i) ? t.key = String(i.value) : i.type === "Identifier" && (t.key = i.name);
522
+ }
523
+ if (e.type === "JSXElement" && e.openingElement.name.name === "style" && e.openingElement.attributes.some((i) => i.type === "JSXAttribute" && i.name.name === "jsx")) for (let { type: i, expression: a } of t.children) i === "JSXExpressionContainer" && a.type === "TemplateLiteral" && Wt(a);
524
+ e.type === "JSXAttribute" && e.name.name === "css" && e.value.type === "JSXExpressionContainer" && e.value.expression.type === "TemplateLiteral" && Wt(t.value.expression), e.type === "JSXAttribute" && ((s = e.value) == null ? void 0 : s.type) === "Literal" && /["']|&quot;|&apos;/u.test(e.value.value) && (t.value.value = N(false, e.value.value, /["']|&quot;|&apos;/gu, '"'));
525
+ let n = e.expression || e.callee;
526
+ if (e.type === "Decorator" && n.type === "CallExpression" && n.callee.name === "Component" && n.arguments.length === 1) {
527
+ let i = e.expression.arguments[0].properties;
528
+ for (let [a, o] of t.expression.arguments[0].properties.entries()) switch (i[a].key.name) {
529
+ case "styles":
530
+ Y(o.value) && Wt(o.value.elements[0]);
531
+ break;
532
+ case "template":
533
+ o.value.type === "TemplateLiteral" && Wt(o.value);
534
+ break;
535
+ }
536
+ }
537
+ 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" && ((u = e.leadingComments) != null && u.some((a) => ee(a) && ["GraphQL", "HTML"].some((o) => a.value === ` ${o} `)) || r.type === "CallExpression" && r.callee.name === "graphql" || !e.leadingComments) && Wt(t), e.type === "ChainExpression" && e.expression.type === "TSNonNullExpression" && (t.type = "TSNonNullExpression", t.expression.type = "ChainExpression"), e.type === "TSMappedType" && (delete t.key, delete t.constraint), e.type === "TSEnumDeclaration" && delete t.body;
538
+ }
539
+ Tu.ignoredProperties = ko;
540
+ var du = Tu;
541
+ var Re = "string";
542
+ var he = "array";
543
+ var nt = "cursor";
544
+ var He = "indent";
545
+ var Ve = "align";
546
+ var $e = "trim";
547
+ var me = "group";
548
+ var we = "fill";
549
+ var Te = "if-break";
550
+ var Ke = "indent-if-break";
551
+ var Qe = "line-suffix";
552
+ var Je = "line-suffix-boundary";
553
+ var ie = "line";
554
+ var ge = "label";
555
+ var Oe = "break-parent";
556
+ var jr = /* @__PURE__ */ new Set([nt, He, Ve, $e, me, we, Te, Ke, Qe, Je, ie, ge, Oe]);
557
+ function Io(e) {
558
+ if (typeof e == "string") return Re;
559
+ if (Array.isArray(e)) return he;
560
+ if (!e) return;
561
+ let { type: t } = e;
562
+ if (jr.has(t)) return t;
563
+ }
564
+ var Se = Io;
565
+ var Lo = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
566
+ function wo(e) {
567
+ let t = e === null ? "null" : typeof e;
568
+ if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
569
+ Expected it to be 'string' or 'object'.`;
570
+ if (Se(e)) throw new Error("doc is valid.");
571
+ let r = Object.prototype.toString.call(e);
572
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
573
+ let n = Lo([...jr].map((s) => `'${s}'`));
574
+ return `Unexpected doc.type '${e.type}'.
575
+ Expected it to be ${n}.`;
576
+ }
577
+ var qn = class extends Error {
578
+ name = "InvalidDocError";
579
+ constructor(t) {
580
+ super(wo(t)), this.doc = t;
581
+ }
582
+ };
583
+ var Tt = qn;
584
+ var xu = {};
585
+ function Oo(e, t, r, n) {
586
+ let s = [e];
587
+ for (; s.length > 0; ) {
588
+ let u = s.pop();
589
+ if (u === xu) {
590
+ r(s.pop());
591
+ continue;
592
+ }
593
+ r && s.push(u, xu);
594
+ let i = Se(u);
595
+ if (!i) throw new Tt(u);
596
+ if ((t == null ? void 0 : t(u)) !== false) switch (i) {
597
+ case he:
598
+ case we: {
599
+ let a = i === he ? u : u.parts;
600
+ for (let o = a.length, p = o - 1; p >= 0; --p) s.push(a[p]);
601
+ break;
602
+ }
603
+ case Te:
604
+ s.push(u.flatContents, u.breakContents);
605
+ break;
606
+ case me:
607
+ if (n && u.expandedStates) for (let a = u.expandedStates.length, o = a - 1; o >= 0; --o) s.push(u.expandedStates[o]);
608
+ else s.push(u.contents);
609
+ break;
610
+ case Ve:
611
+ case He:
612
+ case Ke:
613
+ case ge:
614
+ case Qe:
615
+ s.push(u.contents);
616
+ break;
617
+ case Re:
618
+ case nt:
619
+ case $e:
620
+ case Je:
621
+ case ie:
622
+ case Oe:
623
+ break;
624
+ default:
625
+ throw new Tt(u);
626
+ }
627
+ }
628
+ }
629
+ var ar = Oo;
630
+ function mt(e, t) {
631
+ if (typeof e == "string") return t(e);
632
+ let r = /* @__PURE__ */ new Map();
633
+ return n(e);
634
+ function n(u) {
635
+ if (r.has(u)) return r.get(u);
636
+ let i = s(u);
637
+ return r.set(u, i), i;
638
+ }
639
+ function s(u) {
640
+ switch (Se(u)) {
641
+ case he:
642
+ return t(u.map(n));
643
+ case we:
644
+ return t({ ...u, parts: u.parts.map(n) });
645
+ case Te:
646
+ return t({ ...u, breakContents: n(u.breakContents), flatContents: n(u.flatContents) });
647
+ case me: {
648
+ let { expandedStates: i, contents: a } = u;
649
+ return i ? (i = i.map(n), a = i[0]) : a = n(a), t({ ...u, contents: a, expandedStates: i });
650
+ }
651
+ case Ve:
652
+ case He:
653
+ case Ke:
654
+ case ge:
655
+ case Qe:
656
+ return t({ ...u, contents: n(u.contents) });
657
+ case Re:
658
+ case nt:
659
+ case $e:
660
+ case Je:
661
+ case ie:
662
+ case Oe:
663
+ return t(u);
664
+ default:
665
+ throw new Tt(u);
666
+ }
667
+ }
668
+ }
669
+ function gu(e, t, r) {
670
+ let n = r, s = false;
671
+ function u(i) {
672
+ if (s) return false;
673
+ let a = t(i);
674
+ a !== void 0 && (s = true, n = a);
675
+ }
676
+ return ar(e, u), n;
677
+ }
678
+ function _o(e) {
679
+ if (e.type === me && e.break || e.type === ie && e.hard || e.type === Oe) return true;
680
+ }
681
+ function re(e) {
682
+ return gu(e, _o, false);
683
+ }
684
+ function hu(e) {
685
+ if (e.length > 0) {
686
+ let t = M(false, e, -1);
687
+ !t.expandedStates && !t.break && (t.break = "propagated");
688
+ }
689
+ return null;
690
+ }
691
+ function Su(e) {
692
+ let t = /* @__PURE__ */ new Set(), r = [];
693
+ function n(u) {
694
+ if (u.type === Oe && hu(r), u.type === me) {
695
+ if (r.push(u), t.has(u)) return false;
696
+ t.add(u);
697
+ }
698
+ }
699
+ function s(u) {
700
+ u.type === me && r.pop().break && hu(r);
701
+ }
702
+ ar(e, n, s, true);
703
+ }
704
+ function vo(e) {
705
+ return e.type === ie && !e.hard ? e.soft ? "" : " " : e.type === Te ? e.flatContents : e;
706
+ }
707
+ function or(e) {
708
+ return mt(e, vo);
709
+ }
710
+ function jo(e) {
711
+ switch (Se(e)) {
712
+ case we:
713
+ if (e.parts.every((t) => t === "")) return "";
714
+ break;
715
+ case me:
716
+ if (!e.contents && !e.id && !e.break && !e.expandedStates) return "";
717
+ if (e.contents.type === me && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates) return e.contents;
718
+ break;
719
+ case Ve:
720
+ case He:
721
+ case Ke:
722
+ case Qe:
723
+ if (!e.contents) return "";
724
+ break;
725
+ case Te:
726
+ if (!e.flatContents && !e.breakContents) return "";
727
+ break;
728
+ case he: {
729
+ let t = [];
730
+ for (let r of e) {
731
+ if (!r) continue;
732
+ let [n, ...s] = Array.isArray(r) ? r : [r];
733
+ typeof n == "string" && typeof M(false, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...s);
734
+ }
735
+ return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
736
+ }
737
+ case Re:
738
+ case nt:
739
+ case $e:
740
+ case Je:
741
+ case ie:
742
+ case ge:
743
+ case Oe:
744
+ break;
745
+ default:
746
+ throw new Tt(e);
747
+ }
748
+ return e;
749
+ }
750
+ function Gt(e) {
751
+ return mt(e, (t) => jo(t));
752
+ }
753
+ function _e(e, t = Mr) {
754
+ return mt(e, (r) => typeof r == "string" ? b(t, r.split(`
755
+ `)) : r);
756
+ }
757
+ function Mo(e) {
758
+ if (e.type === ie) return true;
759
+ }
760
+ function Bu(e) {
761
+ return gu(e, Mo, false);
762
+ }
763
+ function pr(e, t) {
764
+ return e.type === ge ? { ...e, contents: t(e.contents) } : t(e);
765
+ }
766
+ function bu(e) {
767
+ let t = true;
768
+ return ar(e, (r) => {
769
+ switch (Se(r)) {
770
+ case Re:
771
+ if (r === "") break;
772
+ case $e:
773
+ case Je:
774
+ case ie:
775
+ case Oe:
776
+ return t = false, false;
777
+ }
778
+ }), t;
779
+ }
780
+ var Wn = () => {
781
+ };
782
+ var ze = Wn;
783
+ var Gn = Wn;
784
+ var Pu = Wn;
785
+ function f(e) {
786
+ return ze(e), { type: He, contents: e };
787
+ }
788
+ function Be(e, t) {
789
+ return ze(t), { type: Ve, contents: t, n: e };
790
+ }
791
+ function l(e, t = {}) {
792
+ return ze(e), Gn(t.expandedStates, true), { type: me, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
793
+ }
794
+ function ku(e) {
795
+ return Be(Number.NEGATIVE_INFINITY, e);
796
+ }
797
+ function Rr(e) {
798
+ return Be(-1, e);
799
+ }
800
+ function Ze(e, t) {
801
+ return l(e[0], { ...t, expandedStates: e });
802
+ }
803
+ function Jr(e) {
804
+ return Pu(e), { type: we, parts: e };
805
+ }
806
+ function B(e, t = "", r = {}) {
807
+ return ze(e), t !== "" && ze(t), { type: Te, breakContents: e, flatContents: t, groupId: r.groupId };
808
+ }
809
+ function dt(e, t) {
810
+ return ze(e), { type: Ke, contents: e, groupId: t.groupId, negate: t.negate };
811
+ }
812
+ function Un(e) {
813
+ return ze(e), { type: Qe, contents: e };
814
+ }
815
+ var ve = { type: Je };
816
+ var Ee = { type: Oe };
817
+ var Yn = { type: ie, hard: true };
818
+ var Ro = { type: ie, hard: true, literal: true };
819
+ var x = { type: ie };
820
+ var E = { type: ie, soft: true };
821
+ var F = [Yn, Ee];
822
+ var Mr = [Ro, Ee];
823
+ var cr = { type: nt };
824
+ function b(e, t) {
825
+ ze(e), Gn(t);
826
+ let r = [];
827
+ for (let n = 0; n < t.length; n++) n !== 0 && r.push(e), r.push(t[n]);
828
+ return r;
829
+ }
830
+ function Iu(e, t, r) {
831
+ ze(e);
832
+ let n = e;
833
+ if (t > 0) {
834
+ for (let s = 0; s < Math.floor(t / r); ++s) n = f(n);
835
+ n = Be(t % r, n), n = Be(Number.NEGATIVE_INFINITY, n);
836
+ }
837
+ return n;
838
+ }
839
+ function st(e, t) {
840
+ return ze(t), e ? { type: ge, label: e, contents: t } : t;
841
+ }
842
+ function Jo(e) {
843
+ let t = `*${e.value}*`.split(`
844
+ `);
845
+ return t.length > 1 && t.every((r) => r.trimStart()[0] === "*");
846
+ }
847
+ var Lu = Jo;
848
+ function wu(e, t) {
849
+ let r = e.node;
850
+ if (Ct(r)) return t.originalText.slice(q(r), k(r)).trimEnd();
851
+ if (ee(r)) return Lu(r) ? qo(r) : ["/*", _e(r.value), "*/"];
852
+ throw new Error("Not a comment: " + JSON.stringify(r));
853
+ }
854
+ function qo(e) {
855
+ let t = e.value.split(`
856
+ `);
857
+ return ["/*", b(F, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
858
+ }
859
+ var Qn = {};
860
+ Tr(Qn, { endOfLine: () => Ho, ownLine: () => Xo, remaining: () => Vo });
861
+ function Wo(e) {
862
+ 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 || "");
863
+ return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
864
+ }
865
+ function Nn(e, t) {
866
+ (e.comments ?? (e.comments = [])).push(t), t.printed = false, t.nodeDescription = Wo(e);
867
+ }
868
+ function le(e, t) {
869
+ t.leading = true, t.trailing = false, Nn(e, t);
870
+ }
871
+ function je(e, t, r) {
872
+ t.leading = false, t.trailing = false, r && (t.marker = r), Nn(e, t);
873
+ }
874
+ function V(e, t) {
875
+ t.leading = false, t.trailing = true, Nn(e, t);
876
+ }
877
+ function Go(e, t) {
878
+ let r = null, n = t;
879
+ for (; n !== r; ) r = n, n = Ye(e, n), n = Ot(e, n), n = _t(e, n), n = Ne(e, n);
880
+ return n;
881
+ }
882
+ var ut = Go;
883
+ function Uo(e, t) {
884
+ let r = ut(e, t);
885
+ return r === false ? "" : e.charAt(r);
886
+ }
887
+ var be = Uo;
888
+ function Yo(e, t, r) {
889
+ for (let n = t; n < r; ++n) if (e.charAt(n) === `
890
+ `) return true;
891
+ return false;
892
+ }
893
+ var de = Yo;
894
+ function No(e) {
895
+ return ee(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value);
896
+ }
897
+ var qr = No;
898
+ function Xo(e) {
899
+ return [qu, _u, Mu, up, Ko, Hn, Vn, Ou, vu, pp, ap, Kn, Ju, cp, ju, Ru, $n, Qo, Cp].some((t) => t(e));
900
+ }
901
+ function Ho(e) {
902
+ return [$o, Mu, _u, Ju, Hn, Vn, Ou, vu, Ru, ip, op, Kn, yp, $n, Ep, Fp, Ap].some((t) => t(e));
903
+ }
904
+ function Vo(e) {
905
+ return [qu, Hn, Vn, zo, sp, ju, Kn, np, rp, fp, $n, Dp].some((t) => t(e));
906
+ }
907
+ function Lt(e, t) {
908
+ let r = (e.body || e.properties).find(({ type: n }) => n !== "EmptyStatement");
909
+ r ? le(r, t) : je(e, t);
910
+ }
911
+ function Xn(e, t) {
912
+ e.type === "BlockStatement" ? Lt(e, t) : le(e, t);
913
+ }
914
+ function $o({ comment: e, followingNode: t }) {
915
+ return t && qr(e) ? (le(t, e), true) : false;
916
+ }
917
+ function Hn({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
918
+ if ((r == null ? void 0 : r.type) !== "IfStatement" || !n) return false;
919
+ if (be(s, k(e)) === ")") return V(t, e), true;
920
+ if (t === r.consequent && n === r.alternate) {
921
+ let i = ut(s, k(r.consequent));
922
+ if (q(e) < i || r.alternate.type === "BlockStatement") {
923
+ if (t.type === "BlockStatement") V(t, e);
924
+ else {
925
+ let a = Ct(e) || e.loc.start.line === e.loc.end.line, o = e.loc.start.line === t.loc.start.line;
926
+ a && o ? V(t, e) : je(r, e);
927
+ }
928
+ return true;
929
+ }
930
+ }
931
+ return n.type === "BlockStatement" ? (Lt(n, e), true) : n.type === "IfStatement" ? (Xn(n.consequent, e), true) : r.consequent === n ? (le(n, e), true) : false;
932
+ }
933
+ function Vn({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
934
+ return (r == null ? void 0 : r.type) !== "WhileStatement" || !n ? false : be(s, k(e)) === ")" ? (V(t, e), true) : n.type === "BlockStatement" ? (Lt(n, e), true) : r.body === n ? (le(n, e), true) : false;
935
+ }
936
+ function Ou({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
937
+ return (r == null ? void 0 : r.type) !== "TryStatement" && (r == null ? void 0 : r.type) !== "CatchClause" || !n ? false : r.type === "CatchClause" && t ? (V(t, e), true) : n.type === "BlockStatement" ? (Lt(n, e), true) : n.type === "TryStatement" ? (Xn(n.finalizer, e), true) : n.type === "CatchClause" ? (Xn(n.body, e), true) : false;
938
+ }
939
+ function Ko({ comment: e, enclosingNode: t, followingNode: r }) {
940
+ return W(t) && (r == null ? void 0 : r.type) === "Identifier" ? (le(t, e), true) : false;
941
+ }
942
+ function Qo({ comment: e, enclosingNode: t, followingNode: r, options: n }) {
943
+ return !n.experimentalTernaries || !((t == null ? void 0 : t.type) === "ConditionalExpression" || (t == null ? void 0 : t.type) === "ConditionalTypeAnnotation" || (t == null ? void 0 : t.type) === "TSConditionalType") ? false : (r == null ? void 0 : r.type) === "ConditionalExpression" || (r == null ? void 0 : r.type) === "ConditionalTypeAnnotation" || (r == null ? void 0 : r.type) === "TSConditionalType" ? (je(t, e), true) : false;
944
+ }
945
+ function _u({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s, options: u }) {
946
+ let i = t && !de(s, k(t), q(e));
947
+ return (!t || !i) && ((r == null ? void 0 : r.type) === "ConditionalExpression" || (r == null ? void 0 : r.type) === "ConditionalTypeAnnotation" || (r == null ? void 0 : r.type) === "TSConditionalType") && n ? u.experimentalTernaries && r.alternate === n && !(ee(e) && !de(u.originalText, q(e), k(e))) ? (je(r, e), true) : (le(n, e), true) : false;
948
+ }
949
+ function zo({ comment: e, precedingNode: t, enclosingNode: r }) {
950
+ return Ce(r) && r.shorthand && r.key === t && r.value.type === "AssignmentPattern" ? (V(r.value.left, e), true) : false;
951
+ }
952
+ var Zo = /* @__PURE__ */ new Set(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
953
+ function vu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
954
+ if (Zo.has(r == null ? void 0 : r.type)) {
955
+ if (O(r.decorators) && (n == null ? void 0 : n.type) !== "Decorator") return V(M(false, r.decorators, -1), e), true;
956
+ if (r.body && n === r.body) return Lt(r.body, e), true;
957
+ if (n) {
958
+ if (r.superClass && n === r.superClass && t && (t === r.id || t === r.typeParameters)) return V(t, e), true;
959
+ 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) ? V(t, e) : je(r, e, s), true;
960
+ }
961
+ }
962
+ return false;
963
+ }
964
+ var ep = /* @__PURE__ */ new Set(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "TSParameterProperty"]);
965
+ function ju({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
966
+ return r && t && be(n, k(e)) === "(" && (r.type === "Property" || r.type === "TSDeclareMethod" || r.type === "TSAbstractMethodDefinition") && t.type === "Identifier" && r.key === t && be(n, k(t)) !== ":" ? (V(t, e), true) : (t == null ? void 0 : t.type) === "Decorator" && ep.has(r == null ? void 0 : r.type) && (Ct(e) || e.placement === "ownLine") ? (V(t, e), true) : false;
967
+ }
968
+ var tp = /* @__PURE__ */ new Set(["FunctionDeclaration", "FunctionExpression", "ClassMethod", "MethodDefinition", "ObjectMethod"]);
969
+ function rp({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
970
+ return be(n, k(e)) !== "(" ? false : t && tp.has(r == null ? void 0 : r.type) ? (V(t, e), true) : false;
971
+ }
972
+ function np({ comment: e, enclosingNode: t, text: r }) {
973
+ if ((t == null ? void 0 : t.type) !== "ArrowFunctionExpression") return false;
974
+ let n = ut(r, k(e));
975
+ return n !== false && r.slice(n, n + 2) === "=>" ? (je(t, e), true) : false;
976
+ }
977
+ function sp({ comment: e, enclosingNode: t, text: r }) {
978
+ return be(r, k(e)) !== ")" ? false : t && (Wu(t) && z(t).length === 0 || lt(t) && pe(t).length === 0) ? (je(t, e), true) : ((t == null ? void 0 : t.type) === "MethodDefinition" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && z(t.value).length === 0 ? (je(t.value, e), true) : false;
979
+ }
980
+ function up({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
981
+ 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" ? (V(t, e), true) : ((t == null ? void 0 : t.type) === "ComponentParameter" || (t == null ? void 0 : t.type) === "RestElement") && (r == null ? void 0 : r.type) === "ComponentDeclaration" && be(s, k(e)) === ")" ? (V(t, e), true) : false;
982
+ }
983
+ function Mu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
984
+ return (t == null ? void 0 : t.type) === "FunctionTypeParam" && (r == null ? void 0 : r.type) === "FunctionTypeAnnotation" && (n == null ? void 0 : n.type) !== "FunctionTypeParam" ? (V(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") && Wu(r) && be(s, k(e)) === ")" ? (V(t, e), true) : !ee(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 && ut(s, k(e)) === q(n) ? (Lt(n, e), true) : false;
985
+ }
986
+ function Ru({ comment: e, enclosingNode: t }) {
987
+ return (t == null ? void 0 : t.type) === "LabeledStatement" ? (le(t, e), true) : false;
988
+ }
989
+ function $n({ comment: e, enclosingNode: t }) {
990
+ return ((t == null ? void 0 : t.type) === "ContinueStatement" || (t == null ? void 0 : t.type) === "BreakStatement") && !t.label ? (V(t, e), true) : false;
991
+ }
992
+ function ip({ comment: e, precedingNode: t, enclosingNode: r }) {
993
+ return L(r) && t && r.callee === t && r.arguments.length > 0 ? (le(r.arguments[0], e), true) : false;
994
+ }
995
+ function ap({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
996
+ return Xe(r) ? (ir(e) && (n.prettierIgnore = true, e.unignore = true), t ? (V(t, e), true) : false) : (Xe(n) && ir(e) && (n.types[0].prettierIgnore = true, e.unignore = true), false);
997
+ }
998
+ function op({ comment: e, enclosingNode: t }) {
999
+ return Ce(t) ? (le(t, e), true) : false;
1000
+ }
1001
+ function Kn({ comment: e, enclosingNode: t, ast: r, isLastComment: n }) {
1002
+ var s;
1003
+ return ((s = r == null ? void 0 : r.body) == null ? void 0 : s.length) === 0 ? (n ? je(r, e) : le(r, e), true) : (t == null ? void 0 : t.type) === "Program" && t.body.length === 0 && !O(t.directives) ? (n ? je(t, e) : le(t, e), true) : false;
1004
+ }
1005
+ function pp({ comment: e, enclosingNode: t }) {
1006
+ return (t == null ? void 0 : t.type) === "ForInStatement" || (t == null ? void 0 : t.type) === "ForOfStatement" ? (le(t, e), true) : false;
1007
+ }
1008
+ function Ju({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
1009
+ if ((r == null ? void 0 : r.type) === "ImportSpecifier" || (r == null ? void 0 : r.type) === "ExportSpecifier") return le(r, e), true;
1010
+ 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";
1011
+ return (s || u) && Z(n, k(e)) ? (V(t, e), true) : false;
1012
+ }
1013
+ function cp({ comment: e, enclosingNode: t }) {
1014
+ return (t == null ? void 0 : t.type) === "AssignmentPattern" ? (le(t, e), true) : false;
1015
+ }
1016
+ var lp = /* @__PURE__ */ new Set(["VariableDeclarator", "AssignmentExpression", "TypeAlias", "TSTypeAliasDeclaration"]);
1017
+ var mp = /* @__PURE__ */ new Set(["ObjectExpression", "RecordExpression", "ArrayExpression", "TupleExpression", "TemplateLiteral", "TaggedTemplateExpression", "ObjectTypeAnnotation", "TSTypeLiteral"]);
1018
+ function yp({ comment: e, enclosingNode: t, followingNode: r }) {
1019
+ return lp.has(t == null ? void 0 : t.type) && r && (mp.has(r.type) || ee(e)) ? (le(r, e), true) : false;
1020
+ }
1021
+ function Dp({ comment: e, enclosingNode: t, followingNode: r, text: n }) {
1022
+ return !r && ((t == null ? void 0 : t.type) === "TSMethodSignature" || (t == null ? void 0 : t.type) === "TSDeclareFunction" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && be(n, k(e)) === ";" ? (V(t, e), true) : false;
1023
+ }
1024
+ function qu({ comment: e, enclosingNode: t, followingNode: r }) {
1025
+ if (ir(e) && (t == null ? void 0 : t.type) === "TSMappedType" && (r == null ? void 0 : r.type) === "TSTypeParameter" && r.constraint) return t.prettierIgnore = true, e.unignore = true, true;
1026
+ }
1027
+ function fp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
1028
+ return (r == null ? void 0 : r.type) !== "TSMappedType" ? false : (n == null ? void 0 : n.type) === "TSTypeParameter" && n.name ? (le(n.name, e), true) : (t == null ? void 0 : t.type) === "TSTypeParameter" && t.constraint ? (V(t.constraint, e), true) : false;
1029
+ }
1030
+ function Ep({ comment: e, enclosingNode: t, followingNode: r }) {
1031
+ return !t || t.type !== "SwitchCase" || t.test || !r || r !== t.consequent[0] ? false : (r.type === "BlockStatement" && Ct(e) ? Lt(r, e) : je(t, e), true);
1032
+ }
1033
+ function Fp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
1034
+ return Xe(t) && ((r.type === "TSArrayType" || r.type === "ArrayTypeAnnotation") && !n || vr(r)) ? (V(M(false, t.types, -1), e), true) : false;
1035
+ }
1036
+ function Cp({ comment: e, enclosingNode: t, precedingNode: r, followingNode: n }) {
1037
+ if (((t == null ? void 0 : t.type) === "ObjectPattern" || (t == null ? void 0 : t.type) === "ArrayPattern") && (n == null ? void 0 : n.type) === "TSTypeAnnotation") return r ? V(r, e) : je(t, e), true;
1038
+ }
1039
+ function Ap({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
1040
+ var s;
1041
+ if (!n && (r == null ? void 0 : r.type) === "UnaryExpression" && ((t == null ? void 0 : t.type) === "LogicalExpression" || (t == null ? void 0 : t.type) === "BinaryExpression")) {
1042
+ let u = ((s = r.argument.loc) == null ? void 0 : s.start.line) !== t.right.loc.start.line, i = Ct(e) || e.loc.start.line === e.loc.end.line, a = e.loc.start.line === t.right.loc.start.line;
1043
+ if (u && i && a) return V(t.right, e), true;
1044
+ }
1045
+ return false;
1046
+ }
1047
+ var Wu = R(["ArrowFunctionExpression", "FunctionExpression", "FunctionDeclaration", "ObjectMethod", "ClassMethod", "TSDeclareFunction", "TSCallSignatureDeclaration", "TSConstructSignatureDeclaration", "TSMethodSignature", "TSConstructorType", "TSFunctionType", "TSDeclareMethod"]);
1048
+ var Tp = /* @__PURE__ */ new Set(["EmptyStatement", "TemplateElement", "TSEmptyBodyFunctionExpression", "ChainExpression"]);
1049
+ function dp(e) {
1050
+ return !Tp.has(e.type);
1051
+ }
1052
+ function xp(e, t) {
1053
+ var r;
1054
+ if ((t.parser === "typescript" || t.parser === "flow" || t.parser === "acorn" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree") && e.type === "MethodDefinition" && ((r = e.value) == null ? void 0 : r.type) === "FunctionExpression" && z(e.value).length === 0 && !e.value.returnType && !O(e.value.typeParameters) && e.value.body) return [...e.decorators || [], e.key, e.value.body];
1055
+ }
1056
+ function zn(e) {
1057
+ let { node: t, parent: r } = e;
1058
+ return (X(t) || r && (r.type === "JSXSpreadAttribute" || r.type === "JSXSpreadChild" || Xe(r) || (r.type === "ClassDeclaration" || r.type === "ClassExpression") && r.superClass === t)) && (!It(t) || Xe(r));
1059
+ }
1060
+ function hp(e, { parser: t }) {
1061
+ if (t === "flow" || t === "babel-flow") return e = N(false, e, /[\s(]/gu, ""), e === "" || e === "/*" || e === "/*::";
1062
+ }
1063
+ function Gu(e) {
1064
+ switch (e) {
1065
+ case "cr":
1066
+ return "\r";
1067
+ case "crlf":
1068
+ return `\r
1069
+ `;
1070
+ default:
1071
+ return `
1072
+ `;
1073
+ }
1074
+ }
1075
+ var Pe = Symbol("MODE_BREAK");
1076
+ var it = Symbol("MODE_FLAT");
1077
+ var Ut = Symbol("cursor");
1078
+ var Zn = Symbol("DOC_FILL_PRINTED_LENGTH");
1079
+ function Uu() {
1080
+ return { value: "", length: 0, queue: [] };
1081
+ }
1082
+ function gp(e, t) {
1083
+ return es(e, { type: "indent" }, t);
1084
+ }
1085
+ function Sp(e, t, r) {
1086
+ return t === Number.NEGATIVE_INFINITY ? e.root || Uu() : t < 0 ? es(e, { type: "dedent" }, r) : t ? t.type === "root" ? { ...e, root: e } : es(e, { type: typeof t == "string" ? "stringAlign" : "numberAlign", n: t }, r) : e;
1087
+ }
1088
+ function es(e, t, r) {
1089
+ let n = t.type === "dedent" ? e.queue.slice(0, -1) : [...e.queue, t], s = "", u = 0, i = 0, a = 0;
1090
+ for (let c of n) switch (c.type) {
1091
+ case "indent":
1092
+ y(), r.useTabs ? o(1) : p(r.tabWidth);
1093
+ break;
1094
+ case "stringAlign":
1095
+ y(), s += c.n, u += c.n.length;
1096
+ break;
1097
+ case "numberAlign":
1098
+ i += 1, a += c.n;
1099
+ break;
1100
+ default:
1101
+ throw new Error(`Unexpected type '${c.type}'`);
1102
+ }
1103
+ return m(), { ...e, value: s, length: u, queue: n };
1104
+ function o(c) {
1105
+ s += " ".repeat(c), u += r.tabWidth * c;
1106
+ }
1107
+ function p(c) {
1108
+ s += " ".repeat(c), u += c;
1109
+ }
1110
+ function y() {
1111
+ r.useTabs ? D() : m();
1112
+ }
1113
+ function D() {
1114
+ i > 0 && o(i), C();
1115
+ }
1116
+ function m() {
1117
+ a > 0 && p(a), C();
1118
+ }
1119
+ function C() {
1120
+ i = 0, a = 0;
1121
+ }
1122
+ }
1123
+ function ts(e) {
1124
+ let t = 0, r = 0, n = e.length;
1125
+ e: for (; n--; ) {
1126
+ let s = e[n];
1127
+ if (s === Ut) {
1128
+ r++;
1129
+ continue;
1130
+ }
1131
+ for (let u = s.length - 1; u >= 0; u--) {
1132
+ let i = s[u];
1133
+ if (i === " " || i === " ") t++;
1134
+ else {
1135
+ e[n] = s.slice(0, u + 1);
1136
+ break e;
1137
+ }
1138
+ }
1139
+ }
1140
+ if (t > 0 || r > 0) for (e.length = n + 1; r-- > 0; ) e.push(Ut);
1141
+ return t;
1142
+ }
1143
+ function Wr(e, t, r, n, s, u) {
1144
+ if (r === Number.POSITIVE_INFINITY) return true;
1145
+ let i = t.length, a = [e], o = [];
1146
+ for (; r >= 0; ) {
1147
+ if (a.length === 0) {
1148
+ if (i === 0) return true;
1149
+ a.push(t[--i]);
1150
+ continue;
1151
+ }
1152
+ let { mode: p, doc: y } = a.pop(), D = Se(y);
1153
+ switch (D) {
1154
+ case Re:
1155
+ o.push(y), r -= tt(y);
1156
+ break;
1157
+ case he:
1158
+ case we: {
1159
+ let m = D === he ? y : y.parts, C = y[Zn] ?? 0;
1160
+ for (let c = m.length - 1; c >= C; c--) a.push({ mode: p, doc: m[c] });
1161
+ break;
1162
+ }
1163
+ case He:
1164
+ case Ve:
1165
+ case Ke:
1166
+ case ge:
1167
+ a.push({ mode: p, doc: y.contents });
1168
+ break;
1169
+ case $e:
1170
+ r += ts(o);
1171
+ break;
1172
+ case me: {
1173
+ if (u && y.break) return false;
1174
+ let m = y.break ? Pe : p, C = y.expandedStates && m === Pe ? M(false, y.expandedStates, -1) : y.contents;
1175
+ a.push({ mode: m, doc: C });
1176
+ break;
1177
+ }
1178
+ case Te: {
1179
+ let C = (y.groupId ? s[y.groupId] || it : p) === Pe ? y.breakContents : y.flatContents;
1180
+ C && a.push({ mode: p, doc: C });
1181
+ break;
1182
+ }
1183
+ case ie:
1184
+ if (p === Pe || y.hard) return true;
1185
+ y.soft || (o.push(" "), r--);
1186
+ break;
1187
+ case Qe:
1188
+ n = true;
1189
+ break;
1190
+ case Je:
1191
+ if (n) return false;
1192
+ break;
1193
+ }
1194
+ }
1195
+ return false;
1196
+ }
1197
+ function rs(e, t) {
1198
+ let r = {}, n = t.printWidth, s = Gu(t.endOfLine), u = 0, i = [{ ind: Uu(), mode: Pe, doc: e }], a = [], o = false, p = [], y = 0;
1199
+ for (Su(e); i.length > 0; ) {
1200
+ let { ind: m, mode: C, doc: c } = i.pop();
1201
+ switch (Se(c)) {
1202
+ case Re: {
1203
+ let A = s !== `
1204
+ ` ? N(false, c, `
1205
+ `, s) : c;
1206
+ a.push(A), i.length > 0 && (u += tt(A));
1207
+ break;
1208
+ }
1209
+ case he:
1210
+ for (let A = c.length - 1; A >= 0; A--) i.push({ ind: m, mode: C, doc: c[A] });
1211
+ break;
1212
+ case nt:
1213
+ if (y >= 2) throw new Error("There are too many 'cursor' in doc.");
1214
+ a.push(Ut), y++;
1215
+ break;
1216
+ case He:
1217
+ i.push({ ind: gp(m, t), mode: C, doc: c.contents });
1218
+ break;
1219
+ case Ve:
1220
+ i.push({ ind: Sp(m, c.n, t), mode: C, doc: c.contents });
1221
+ break;
1222
+ case $e:
1223
+ u -= ts(a);
1224
+ break;
1225
+ case me:
1226
+ switch (C) {
1227
+ case it:
1228
+ if (!o) {
1229
+ i.push({ ind: m, mode: c.break ? Pe : it, doc: c.contents });
1230
+ break;
1231
+ }
1232
+ case Pe: {
1233
+ o = false;
1234
+ let A = { ind: m, mode: it, doc: c.contents }, d = n - u, S = p.length > 0;
1235
+ if (!c.break && Wr(A, i, d, S, r)) i.push(A);
1236
+ else if (c.expandedStates) {
1237
+ let g = M(false, c.expandedStates, -1);
1238
+ if (c.break) {
1239
+ i.push({ ind: m, mode: Pe, doc: g });
1240
+ break;
1241
+ } else for (let _ = 1; _ < c.expandedStates.length + 1; _++) if (_ >= c.expandedStates.length) {
1242
+ i.push({ ind: m, mode: Pe, doc: g });
1243
+ break;
1244
+ } else {
1245
+ let v = c.expandedStates[_], j = { ind: m, mode: it, doc: v };
1246
+ if (Wr(j, i, d, S, r)) {
1247
+ i.push(j);
1248
+ break;
1249
+ }
1250
+ }
1251
+ } else i.push({ ind: m, mode: Pe, doc: c.contents });
1252
+ break;
1253
+ }
1254
+ }
1255
+ c.id && (r[c.id] = M(false, i, -1).mode);
1256
+ break;
1257
+ case we: {
1258
+ let A = n - u, d = c[Zn] ?? 0, { parts: S } = c, g = S.length - d;
1259
+ if (g === 0) break;
1260
+ let _ = S[d + 0], v = S[d + 1], j = { ind: m, mode: it, doc: _ }, I = { ind: m, mode: Pe, doc: _ }, U = Wr(j, [], A, p.length > 0, r, true);
1261
+ if (g === 1) {
1262
+ U ? i.push(j) : i.push(I);
1263
+ break;
1264
+ }
1265
+ let P = { ind: m, mode: it, doc: v }, G = { ind: m, mode: Pe, doc: v };
1266
+ if (g === 2) {
1267
+ U ? i.push(P, j) : i.push(G, I);
1268
+ break;
1269
+ }
1270
+ let ue = S[d + 2], Q = { ind: m, mode: C, doc: { ...c, [Zn]: d + 2 } };
1271
+ Wr({ ind: m, mode: it, doc: [_, v, ue] }, [], A, p.length > 0, r, true) ? i.push(Q, P, j) : U ? i.push(Q, G, j) : i.push(Q, G, I);
1272
+ break;
1273
+ }
1274
+ case Te:
1275
+ case Ke: {
1276
+ let A = c.groupId ? r[c.groupId] : C;
1277
+ if (A === Pe) {
1278
+ let d = c.type === Te ? c.breakContents : c.negate ? c.contents : f(c.contents);
1279
+ d && i.push({ ind: m, mode: C, doc: d });
1280
+ }
1281
+ if (A === it) {
1282
+ let d = c.type === Te ? c.flatContents : c.negate ? f(c.contents) : c.contents;
1283
+ d && i.push({ ind: m, mode: C, doc: d });
1284
+ }
1285
+ break;
1286
+ }
1287
+ case Qe:
1288
+ p.push({ ind: m, mode: C, doc: c.contents });
1289
+ break;
1290
+ case Je:
1291
+ p.length > 0 && i.push({ ind: m, mode: C, doc: Yn });
1292
+ break;
1293
+ case ie:
1294
+ switch (C) {
1295
+ case it:
1296
+ if (c.hard) o = true;
1297
+ else {
1298
+ c.soft || (a.push(" "), u += 1);
1299
+ break;
1300
+ }
1301
+ case Pe:
1302
+ if (p.length > 0) {
1303
+ i.push({ ind: m, mode: C, doc: c }, ...p.reverse()), p.length = 0;
1304
+ break;
1305
+ }
1306
+ c.literal ? m.root ? (a.push(s, m.root.value), u = m.root.length) : (a.push(s), u = 0) : (u -= ts(a), a.push(s + m.value), u = m.length);
1307
+ break;
1308
+ }
1309
+ break;
1310
+ case ge:
1311
+ i.push({ ind: m, mode: C, doc: c.contents });
1312
+ break;
1313
+ case Oe:
1314
+ break;
1315
+ default:
1316
+ throw new Tt(c);
1317
+ }
1318
+ i.length === 0 && p.length > 0 && (i.push(...p.reverse()), p.length = 0);
1319
+ }
1320
+ let D = a.indexOf(Ut);
1321
+ if (D !== -1) {
1322
+ let m = a.indexOf(Ut, D + 1);
1323
+ if (m === -1) return { formatted: a.filter((d) => d !== Ut).join("") };
1324
+ let C = a.slice(0, D).join(""), c = a.slice(D + 1, m).join(""), A = a.slice(m + 1).join("");
1325
+ return { formatted: C + c + A, cursorNodeStart: C.length, cursorNodeText: c };
1326
+ }
1327
+ return { formatted: a.join("") };
1328
+ }
1329
+ function Bp(e, t, r = 0) {
1330
+ let n = 0;
1331
+ for (let s = r; s < e.length; ++s) e[s] === " " ? n = n + t - n % t : n++;
1332
+ return n;
1333
+ }
1334
+ var Yu = Bp;
1335
+ function bp(e, t) {
1336
+ let r = e.lastIndexOf(`
1337
+ `);
1338
+ return r === -1 ? 0 : Yu(e.slice(r + 1).match(/^[\t ]*/u)[0], t);
1339
+ }
1340
+ var Nu = bp;
1341
+ function Gr(e, t, r) {
1342
+ let { node: n } = e;
1343
+ if (n.type === "TemplateLiteral" && Ip(e)) {
1344
+ let p = Pp(e, r, t);
1345
+ if (p) return p;
1346
+ }
1347
+ let u = "expressions";
1348
+ n.type === "TSTemplateLiteralType" && (u = "types");
1349
+ let i = [], a = e.map(t, u);
1350
+ i.push(ve, "`");
1351
+ let o = 0;
1352
+ return e.each(({ index: p, node: y }) => {
1353
+ if (i.push(t()), y.tail) return;
1354
+ let { tabWidth: D } = r, m = y.value.raw, C = m.includes(`
1355
+ `) ? Nu(m, D) : o;
1356
+ o = C;
1357
+ let c = a[p], A = n[u][p], d = de(r.originalText, k(y), q(n.quasis[p + 1]));
1358
+ if (!d) {
1359
+ let g = rs(c, { ...r, printWidth: Number.POSITIVE_INFINITY }).formatted;
1360
+ g.includes(`
1361
+ `) ? d = true : c = g;
1362
+ }
1363
+ d && (T(A) || A.type === "Identifier" || W(A) || A.type === "ConditionalExpression" || A.type === "SequenceExpression" || Ae(A) || De(A)) && (c = [f([E, c]), E]);
1364
+ let S = C === 0 && m.endsWith(`
1365
+ `) ? Be(Number.NEGATIVE_INFINITY, c) : Iu(c, C, D);
1366
+ i.push(l(["${", S, ve, "}"]));
1367
+ }, "quasis"), i.push("`"), i;
1368
+ }
1369
+ function Xu(e, t) {
1370
+ let r = t("quasi");
1371
+ return st(r.label && { tagged: true, ...r.label }, [t("tag"), t(e.node.typeArguments ? "typeArguments" : "typeParameters"), ve, r]);
1372
+ }
1373
+ function Pp(e, t, r) {
1374
+ let { node: n } = e, s = n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);
1375
+ if (s.length > 1 || s.some((u) => u.length > 0)) {
1376
+ t.__inJestEach = true;
1377
+ let u = e.map(r, "expressions");
1378
+ t.__inJestEach = false;
1379
+ let i = [], a = u.map((m) => "${" + rs(m, { ...t, printWidth: Number.POSITIVE_INFINITY, endOfLine: "lf" }).formatted + "}"), o = [{ hasLineBreak: false, cells: [] }];
1380
+ for (let m = 1; m < n.quasis.length; m++) {
1381
+ let C = M(false, o, -1), c = a[m - 1];
1382
+ C.cells.push(c), c.includes(`
1383
+ `) && (C.hasLineBreak = true), n.quasis[m].value.raw.includes(`
1384
+ `) && o.push({ hasLineBreak: false, cells: [] });
1385
+ }
1386
+ let p = Math.max(s.length, ...o.map((m) => m.cells.length)), y = Array.from({ length: p }).fill(0), D = [{ cells: s }, ...o.filter((m) => m.cells.length > 0)];
1387
+ for (let { cells: m } of D.filter((C) => !C.hasLineBreak)) for (let [C, c] of m.entries()) y[C] = Math.max(y[C], tt(c));
1388
+ return i.push(ve, "`", f([F, b(F, D.map((m) => b(" | ", m.cells.map((C, c) => m.hasLineBreak ? C : C + " ".repeat(y[c] - tt(C))))))]), F, "`"), i;
1389
+ }
1390
+ }
1391
+ function kp(e, t) {
1392
+ let { node: r } = e, n = t();
1393
+ return T(r) && (n = l([f([E, n]), E])), ["${", n, ve, "}"];
1394
+ }
1395
+ function Yt(e, t) {
1396
+ return e.map((r) => kp(r, t), "expressions");
1397
+ }
1398
+ function Ur(e, t) {
1399
+ return mt(e, (r) => typeof r == "string" ? t ? N(false, r, /(\\*)`/gu, "$1$1\\`") : ns(r) : r);
1400
+ }
1401
+ function ns(e) {
1402
+ return N(false, e, /([\\`]|\$\{)/gu, String.raw`\$1`);
1403
+ }
1404
+ function Ip({ node: e, parent: t }) {
1405
+ let r = /^[fx]?(?:describe|it|test)$/u;
1406
+ 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));
1407
+ }
1408
+ var us = [(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"];
1409
+ function Hu(e) {
1410
+ let t = (n) => n.type === "TemplateLiteral", r = (n, s) => Ce(n) && !n.computed && n.key.type === "Identifier" && n.key.name === "styles" && s === "value";
1411
+ return e.match(t, (n, s) => Y(n) && s === "elements", r, ...us) || e.match(t, r, ...us);
1412
+ }
1413
+ function Vu(e) {
1414
+ return e.match((t) => t.type === "TemplateLiteral", (t, r) => Ce(t) && !t.computed && t.key.type === "Identifier" && t.key.name === "template" && r === "value", ...us);
1415
+ }
1416
+ function ss(e, t) {
1417
+ return T(e, h.Block | h.Leading, ({ value: r }) => r === ` ${t} `);
1418
+ }
1419
+ function Yr({ node: e, parent: t }, r) {
1420
+ return ss(e, r) || Lp(t) && ss(t, r) || t.type === "ExpressionStatement" && ss(t, r);
1421
+ }
1422
+ function Lp(e) {
1423
+ return e.type === "AsConstExpression" || e.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const";
1424
+ }
1425
+ async function wp(e, t, r) {
1426
+ let { node: n } = r, s = n.quasis.map((y) => y.value.raw), u = 0, i = s.reduce((y, D, m) => m === 0 ? D : y + "@prettier-placeholder-" + u++ + "-id" + D, ""), a = await e(i, { parser: "scss" }), o = Yt(r, t), p = Op(a, o);
1427
+ if (!p) throw new Error("Couldn't insert all the expressions");
1428
+ return ["`", f([F, p]), E, "`"];
1429
+ }
1430
+ function Op(e, t) {
1431
+ if (!O(t)) return e;
1432
+ let r = 0, n = mt(Gt(e), (s) => typeof s != "string" || !s.includes("@prettier-placeholder") ? s : s.split(/@prettier-placeholder-(\d+)-id/u).map((u, i) => i % 2 === 0 ? _e(u) : (r++, t[u])));
1433
+ return t.length === r ? n : null;
1434
+ }
1435
+ function _p({ node: e, parent: t, grandparent: r }) {
1436
+ 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");
1437
+ }
1438
+ function Nr(e) {
1439
+ return e.type === "Identifier" && e.name === "styled";
1440
+ }
1441
+ function $u(e) {
1442
+ return /^[A-Z]/u.test(e.object.name) && e.property.name === "extend";
1443
+ }
1444
+ function vp({ parent: e }) {
1445
+ if (!e || e.type !== "TaggedTemplateExpression") return false;
1446
+ let t = e.tag.type === "ParenthesizedExpression" ? e.tag.expression : e.tag;
1447
+ switch (t.type) {
1448
+ case "MemberExpression":
1449
+ return Nr(t.object) || $u(t);
1450
+ case "CallExpression":
1451
+ return Nr(t.callee) || t.callee.type === "MemberExpression" && (t.callee.object.type === "MemberExpression" && (Nr(t.callee.object.object) || $u(t.callee.object)) || t.callee.object.type === "CallExpression" && Nr(t.callee.object.callee));
1452
+ case "Identifier":
1453
+ return t.name === "css";
1454
+ default:
1455
+ return false;
1456
+ }
1457
+ }
1458
+ function jp({ parent: e, grandparent: t }) {
1459
+ return (t == null ? void 0 : t.type) === "JSXAttribute" && e.type === "JSXExpressionContainer" && t.name.type === "JSXIdentifier" && t.name.name === "css";
1460
+ }
1461
+ function Mp(e) {
1462
+ if (_p(e) || vp(e) || jp(e) || Hu(e)) return wp;
1463
+ }
1464
+ var Ku = Mp;
1465
+ async function Rp(e, t, r) {
1466
+ let { node: n } = r, s = n.quasis.length, u = Yt(r, t), i = [];
1467
+ for (let a = 0; a < s; a++) {
1468
+ let o = n.quasis[a], p = a === 0, y = a === s - 1, D = o.value.cooked, m = D.split(`
1469
+ `), C = m.length, c = u[a], A = C > 2 && m[0].trim() === "" && m[1].trim() === "", d = C > 2 && m[C - 1].trim() === "" && m[C - 2].trim() === "", S = m.every((_) => /^\s*(?:#[^\n\r]*)?$/u.test(_));
1470
+ if (!y && /#[^\n\r]*$/u.test(m[C - 1])) return null;
1471
+ let g = null;
1472
+ S ? g = Jp(m) : g = await e(D, { parser: "graphql" }), g ? (g = Ur(g, false), !p && A && i.push(""), i.push(g), !y && d && i.push("")) : !p && !y && A && i.push(""), c && i.push(c);
1473
+ }
1474
+ return ["`", f([F, b(F, i)]), F, "`"];
1475
+ }
1476
+ function Jp(e) {
1477
+ let t = [], r = false, n = e.map((s) => s.trim());
1478
+ for (let [s, u] of n.entries()) u !== "" && (n[s - 1] === "" && r ? t.push([F, u]) : t.push(u), r = true);
1479
+ return t.length === 0 ? null : b(F, t);
1480
+ }
1481
+ function qp({ node: e, parent: t }) {
1482
+ return Yr({ 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");
1483
+ }
1484
+ function Wp(e) {
1485
+ if (qp(e)) return Rp;
1486
+ }
1487
+ var Qu = Wp;
1488
+ var is = 0;
1489
+ async function zu(e, t, r, n, s) {
1490
+ let { node: u } = n, i = is;
1491
+ is = is + 1 >>> 0;
1492
+ let a = (S) => `PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`, o = u.quasis.map((S, g, _) => g === _.length - 1 ? S.value.cooked : S.value.cooked + a(g)).join(""), p = Yt(n, r), y = new RegExp(a(String.raw`(\d+)`), "gu"), D = 0, m = await t(o, { parser: e, __onHtmlRoot(S) {
1493
+ D = S.children.length;
1494
+ } }), C = mt(m, (S) => {
1495
+ if (typeof S != "string") return S;
1496
+ let g = [], _ = S.split(y);
1497
+ for (let v = 0; v < _.length; v++) {
1498
+ let j = _[v];
1499
+ if (v % 2 === 0) {
1500
+ j && (j = ns(j), s.__embeddedInHtml && (j = N(false, j, /<\/(?=script\b)/giu, String.raw`<\/`)), g.push(j));
1501
+ continue;
1502
+ }
1503
+ let I = Number(j);
1504
+ g.push(p[I]);
1505
+ }
1506
+ return g;
1507
+ }), c = /^\s/u.test(o) ? " " : "", A = /\s$/u.test(o) ? " " : "", d = s.htmlWhitespaceSensitivity === "ignore" ? F : c && A ? x : null;
1508
+ return d ? l(["`", f([d, l(C)]), d, "`"]) : st({ hug: false }, l(["`", c, D > 1 ? f(l(C)) : l(C), A, "`"]));
1509
+ }
1510
+ function Gp(e) {
1511
+ return Yr(e, "HTML") || e.match((t) => t.type === "TemplateLiteral", (t, r) => t.type === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "html" && r === "quasi");
1512
+ }
1513
+ var Up = zu.bind(void 0, "html");
1514
+ var Yp = zu.bind(void 0, "angular");
1515
+ function Np(e) {
1516
+ if (Gp(e)) return Up;
1517
+ if (Vu(e)) return Yp;
1518
+ }
1519
+ var Zu = Np;
1520
+ async function Xp(e, t, r) {
1521
+ let { node: n } = r, s = N(false, n.quasis[0].value.raw, /((?:\\\\)*)\\`/gu, (o, p) => "\\".repeat(p.length / 2) + "`"), u = Hp(s), i = u !== "";
1522
+ i && (s = N(false, s, new RegExp(`^${u}`, "gmu"), ""));
1523
+ let a = Ur(await e(s, { parser: "markdown", __inJsTemplate: true }), true);
1524
+ return ["`", i ? f([E, a]) : [Mr, ku(a)], E, "`"];
1525
+ }
1526
+ function Hp(e) {
1527
+ let t = e.match(/^([^\S\n]*)\S/mu);
1528
+ return t === null ? "" : t[1];
1529
+ }
1530
+ function Vp(e) {
1531
+ if ($p(e)) return Xp;
1532
+ }
1533
+ function $p({ node: e, parent: t }) {
1534
+ return (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && e.quasis.length === 1 && t.tag.type === "Identifier" && (t.tag.name === "md" || t.tag.name === "markdown");
1535
+ }
1536
+ var ei = Vp;
1537
+ function Kp(e) {
1538
+ let { node: t } = e;
1539
+ if (t.type !== "TemplateLiteral" || Qp(t)) return;
1540
+ let r;
1541
+ for (let n of [Ku, Qu, Zu, ei]) if (r = n(e), !!r) return t.quasis.length === 1 && t.quasis[0].value.raw.trim() === "" ? "``" : async (...s) => {
1542
+ let u = await r(...s);
1543
+ return u && st({ embed: true, ...u.label }, u);
1544
+ };
1545
+ }
1546
+ function Qp({ quasis: e }) {
1547
+ return e.some(({ value: { cooked: t } }) => t === null);
1548
+ }
1549
+ var ti = Kp;
1550
+ var zp = /\*\/$/;
1551
+ var Zp = /^\/\*\*?/;
1552
+ var ui = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
1553
+ var ec = /(^|\s+)\/\/([^\n\r]*)/g;
1554
+ var ri = /^(\r?\n)+/;
1555
+ var tc = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
1556
+ var ni = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
1557
+ var rc = /(\r?\n|^) *\* ?/g;
1558
+ var ii = [];
1559
+ function ai(e) {
1560
+ let t = e.match(ui);
1561
+ return t ? t[0].trimStart() : "";
1562
+ }
1563
+ function oi(e) {
1564
+ let t = e.match(ui), r = t == null ? void 0 : t[0];
1565
+ return r == null ? e : e.slice(r.length);
1566
+ }
1567
+ function pi(e) {
1568
+ let t = `
1569
+ `;
1570
+ e = N(false, e.replace(Zp, "").replace(zp, ""), rc, "$1");
1571
+ let r = "";
1572
+ for (; r !== e; ) r = e, e = N(false, e, tc, `${t}$1 $2${t}`);
1573
+ e = e.replace(ri, "").trimEnd();
1574
+ let n = /* @__PURE__ */ Object.create(null), s = N(false, e, ni, "").replace(ri, "").trimEnd(), u;
1575
+ for (; u = ni.exec(e); ) {
1576
+ let i = N(false, u[2], ec, "");
1577
+ if (typeof n[u[1]] == "string" || Array.isArray(n[u[1]])) {
1578
+ let a = n[u[1]];
1579
+ n[u[1]] = [...ii, ...Array.isArray(a) ? a : [a], i];
1580
+ } else n[u[1]] = i;
1581
+ }
1582
+ return { comments: s, pragmas: n };
1583
+ }
1584
+ function ci({ comments: e = "", pragmas: t = {} }) {
1585
+ let r = `
1586
+ `, n = "/**", s = " *", u = " */", i = Object.keys(t), a = i.flatMap((p) => si(p, t[p])).map((p) => `${s} ${p}${r}`).join("");
1587
+ if (!e) {
1588
+ if (i.length === 0) return "";
1589
+ if (i.length === 1 && !Array.isArray(t[i[0]])) {
1590
+ let p = t[i[0]];
1591
+ return `${n} ${si(i[0], p)[0]}${u}`;
1592
+ }
1593
+ }
1594
+ let o = e.split(r).map((p) => `${s} ${p}`).join(r) + r;
1595
+ return n + r + (e ? o : "") + (e && i.length > 0 ? s + r : "") + a + u;
1596
+ }
1597
+ function si(e, t) {
1598
+ return [...ii, ...Array.isArray(t) ? t : [t]].map((r) => `@${e} ${r}`.trim());
1599
+ }
1600
+ function nc(e) {
1601
+ if (!e.startsWith("#!")) return "";
1602
+ let t = e.indexOf(`
1603
+ `);
1604
+ return t === -1 ? e : e.slice(0, t);
1605
+ }
1606
+ var li = nc;
1607
+ function sc(e) {
1608
+ let t = li(e);
1609
+ t && (e = e.slice(t.length + 1));
1610
+ let r = ai(e), { pragmas: n, comments: s } = pi(r);
1611
+ return { shebang: t, text: e, pragmas: n, comments: s };
1612
+ }
1613
+ function mi(e) {
1614
+ let { shebang: t, text: r, pragmas: n, comments: s } = sc(e), u = oi(r), i = ci({ pragmas: { format: "", ...n }, comments: s.trimStart() });
1615
+ return (t ? `${t}
1616
+ ` : "") + i + (u.startsWith(`
1617
+ `) ? `
1618
+ ` : `
1619
+
1620
+ `) + u;
1621
+ }
1622
+ function uc(e, t) {
1623
+ 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);
1624
+ for (let y of n) s(y) >= o && u(y) <= p && i.add(y);
1625
+ return r.slice(o, p);
1626
+ }
1627
+ var yi = uc;
1628
+ function as(e, t) {
1629
+ var u, i, a, o, p, y, D, m, C;
1630
+ if (e.isRoot) return false;
1631
+ let { node: r, key: n, parent: s } = e;
1632
+ if (t.__isInHtmlInterpolation && !t.bracketSpacing && pc(r) && lr(e)) return true;
1633
+ if (ic(r)) return false;
1634
+ if (r.type === "Identifier") {
1635
+ 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;
1636
+ if (r.name === "let") {
1637
+ let c = (i = e.findAncestor((A) => A.type === "ForOfStatement")) == null ? void 0 : i.left;
1638
+ if (c && ae(c, (A) => A === r)) return true;
1639
+ }
1640
+ if (n === "object" && r.name === "let" && s.type === "MemberExpression" && s.computed && !s.optional) {
1641
+ let c = e.findAncestor((d) => d.type === "ExpressionStatement" || d.type === "ForStatement" || d.type === "ForInStatement"), A = c ? c.type === "ExpressionStatement" ? c.expression : c.type === "ForStatement" ? c.init : c.left : void 0;
1642
+ if (A && ae(A, (d) => d === r)) return true;
1643
+ }
1644
+ if (n === "expression") switch (r.name) {
1645
+ case "await":
1646
+ case "interface":
1647
+ case "module":
1648
+ case "using":
1649
+ case "yield":
1650
+ case "let":
1651
+ case "component":
1652
+ case "hook":
1653
+ case "type": {
1654
+ let c = e.findAncestor((A) => !Ae(A));
1655
+ if (c !== s && c.type === "ExpressionStatement") return true;
1656
+ }
1657
+ }
1658
+ return false;
1659
+ }
1660
+ if (r.type === "ObjectExpression" || r.type === "FunctionExpression" || r.type === "ClassExpression" || r.type === "DoExpression") {
1661
+ let c = (a = e.findAncestor((A) => A.type === "ExpressionStatement")) == null ? void 0 : a.expression;
1662
+ if (c && ae(c, (A) => A === r)) return true;
1663
+ }
1664
+ if (r.type === "ObjectExpression") {
1665
+ let c = (o = e.findAncestor((A) => A.type === "ArrowFunctionExpression")) == null ? void 0 : o.body;
1666
+ if (c && c.type !== "SequenceExpression" && c.type !== "AssignmentExpression" && ae(c, (A) => A === r)) return true;
1667
+ }
1668
+ switch (s.type) {
1669
+ case "ParenthesizedExpression":
1670
+ return false;
1671
+ case "ClassDeclaration":
1672
+ case "ClassExpression":
1673
+ 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;
1674
+ break;
1675
+ case "ExportDefaultDeclaration":
1676
+ return Di(e, t) || r.type === "SequenceExpression";
1677
+ case "Decorator":
1678
+ if (n === "expression" && !lc(r)) return true;
1679
+ break;
1680
+ case "TypeAnnotation":
1681
+ if (e.match(void 0, void 0, (c, A) => A === "returnType" && c.type === "ArrowFunctionExpression") && oc(r)) return true;
1682
+ break;
1683
+ case "BinaryExpression":
1684
+ if (n === "left" && (s.operator === "in" || s.operator === "instanceof") && r.type === "UnaryExpression") return true;
1685
+ break;
1686
+ case "VariableDeclarator":
1687
+ 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;
1688
+ break;
1689
+ }
1690
+ switch (r.type) {
1691
+ case "UpdateExpression":
1692
+ if (s.type === "UnaryExpression") return r.prefix && (r.operator === "++" && s.operator === "+" || r.operator === "--" && s.operator === "-");
1693
+ case "UnaryExpression":
1694
+ switch (s.type) {
1695
+ case "UnaryExpression":
1696
+ return r.operator === s.operator && (r.operator === "+" || r.operator === "-");
1697
+ case "BindExpression":
1698
+ return true;
1699
+ case "MemberExpression":
1700
+ case "OptionalMemberExpression":
1701
+ return n === "object";
1702
+ case "TaggedTemplateExpression":
1703
+ return true;
1704
+ case "NewExpression":
1705
+ case "CallExpression":
1706
+ case "OptionalCallExpression":
1707
+ return n === "callee";
1708
+ case "BinaryExpression":
1709
+ return n === "left" && s.operator === "**";
1710
+ case "TSNonNullExpression":
1711
+ return true;
1712
+ default:
1713
+ return false;
1714
+ }
1715
+ case "BinaryExpression":
1716
+ if (s.type === "UpdateExpression" || r.operator === "in" && ac(e)) return true;
1717
+ if (r.operator === "|>" && ((p = r.extra) != null && p.parenthesized)) {
1718
+ let c = e.grandparent;
1719
+ if (c.type === "BinaryExpression" && c.operator === "|>") return true;
1720
+ }
1721
+ case "TSTypeAssertion":
1722
+ case "TSAsExpression":
1723
+ case "TSSatisfiesExpression":
1724
+ case "AsExpression":
1725
+ case "AsConstExpression":
1726
+ case "SatisfiesExpression":
1727
+ case "LogicalExpression":
1728
+ switch (s.type) {
1729
+ case "TSAsExpression":
1730
+ case "TSSatisfiesExpression":
1731
+ case "AsExpression":
1732
+ case "AsConstExpression":
1733
+ case "SatisfiesExpression":
1734
+ return !Ae(r);
1735
+ case "ConditionalExpression":
1736
+ return Ae(r) || cu(r);
1737
+ case "CallExpression":
1738
+ case "NewExpression":
1739
+ case "OptionalCallExpression":
1740
+ return n === "callee";
1741
+ case "ClassExpression":
1742
+ case "ClassDeclaration":
1743
+ return n === "superClass";
1744
+ case "TSTypeAssertion":
1745
+ case "TaggedTemplateExpression":
1746
+ case "UnaryExpression":
1747
+ case "JSXSpreadAttribute":
1748
+ case "SpreadElement":
1749
+ case "BindExpression":
1750
+ case "AwaitExpression":
1751
+ case "TSNonNullExpression":
1752
+ case "UpdateExpression":
1753
+ return true;
1754
+ case "MemberExpression":
1755
+ case "OptionalMemberExpression":
1756
+ return n === "object";
1757
+ case "AssignmentExpression":
1758
+ case "AssignmentPattern":
1759
+ return n === "left" && (r.type === "TSTypeAssertion" || Ae(r));
1760
+ case "LogicalExpression":
1761
+ if (r.type === "LogicalExpression") return s.operator !== r.operator;
1762
+ case "BinaryExpression": {
1763
+ let { operator: c, type: A } = r;
1764
+ if (!c && A !== "TSTypeAssertion") return true;
1765
+ let d = rr(c), S = s.operator, g = rr(S);
1766
+ return g > d || n === "right" && g === d || g === d && !ur(S, c) ? true : g < d && c === "%" ? S === "+" || S === "-" : !!Eu(S);
1767
+ }
1768
+ default:
1769
+ return false;
1770
+ }
1771
+ case "SequenceExpression":
1772
+ switch (s.type) {
1773
+ case "ReturnStatement":
1774
+ return false;
1775
+ case "ForStatement":
1776
+ return false;
1777
+ case "ExpressionStatement":
1778
+ return n !== "expression";
1779
+ case "ArrowFunctionExpression":
1780
+ return n !== "body";
1781
+ default:
1782
+ return true;
1783
+ }
1784
+ case "YieldExpression":
1785
+ if (s.type === "AwaitExpression" || s.type === "TSTypeAssertion") return true;
1786
+ case "AwaitExpression":
1787
+ switch (s.type) {
1788
+ case "TaggedTemplateExpression":
1789
+ case "UnaryExpression":
1790
+ case "LogicalExpression":
1791
+ case "SpreadElement":
1792
+ case "TSAsExpression":
1793
+ case "TSSatisfiesExpression":
1794
+ case "TSNonNullExpression":
1795
+ case "AsExpression":
1796
+ case "AsConstExpression":
1797
+ case "SatisfiesExpression":
1798
+ case "BindExpression":
1799
+ return true;
1800
+ case "MemberExpression":
1801
+ case "OptionalMemberExpression":
1802
+ return n === "object";
1803
+ case "NewExpression":
1804
+ case "CallExpression":
1805
+ case "OptionalCallExpression":
1806
+ return n === "callee";
1807
+ case "ConditionalExpression":
1808
+ return n === "test";
1809
+ case "BinaryExpression":
1810
+ return !(!r.argument && s.operator === "|>");
1811
+ default:
1812
+ return false;
1813
+ }
1814
+ case "TSFunctionType":
1815
+ if (e.match((c) => c.type === "TSFunctionType", (c, A) => A === "typeAnnotation" && c.type === "TSTypeAnnotation", (c, A) => A === "returnType" && c.type === "ArrowFunctionExpression")) return true;
1816
+ case "TSConditionalType":
1817
+ case "TSConstructorType":
1818
+ if (n === "extendsType" && s.type === "TSConditionalType") {
1819
+ if (r.type === "TSConditionalType") return true;
1820
+ let { typeAnnotation: c } = r.returnType || r.typeAnnotation;
1821
+ if (c.type === "TSTypePredicate" && c.typeAnnotation && (c = c.typeAnnotation.typeAnnotation), c.type === "TSInferType" && c.typeParameter.constraint) return true;
1822
+ }
1823
+ if (n === "checkType" && s.type === "TSConditionalType") return true;
1824
+ case "TSUnionType":
1825
+ case "TSIntersectionType":
1826
+ if ((s.type === "TSUnionType" || s.type === "TSIntersectionType") && s.types.length > 1 && (!r.types || r.types.length > 1)) return true;
1827
+ case "TSInferType":
1828
+ if (r.type === "TSInferType") {
1829
+ if (s.type === "TSRestType") return false;
1830
+ if (n === "types" && (s.type === "TSUnionType" || s.type === "TSIntersectionType") && r.typeParameter.type === "TSTypeParameter" && r.typeParameter.constraint) return true;
1831
+ }
1832
+ case "TSTypeOperator":
1833
+ 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");
1834
+ case "TSTypeQuery":
1835
+ return n === "objectType" && s.type === "TSIndexedAccessType" || n === "elementType" && s.type === "TSArrayType";
1836
+ case "TypeOperator":
1837
+ return s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || s.type === "TypeOperator";
1838
+ case "TypeofTypeAnnotation":
1839
+ return n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || n === "elementType" && s.type === "ArrayTypeAnnotation";
1840
+ case "ArrayTypeAnnotation":
1841
+ return s.type === "NullableTypeAnnotation";
1842
+ case "IntersectionTypeAnnotation":
1843
+ case "UnionTypeAnnotation":
1844
+ return s.type === "TypeOperator" || s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || s.type === "IntersectionTypeAnnotation" || s.type === "UnionTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
1845
+ case "InferTypeAnnotation":
1846
+ case "NullableTypeAnnotation":
1847
+ return s.type === "ArrayTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
1848
+ case "ComponentTypeAnnotation":
1849
+ case "FunctionTypeAnnotation": {
1850
+ if (r.type === "ComponentTypeAnnotation" && (r.rendersType === null || r.rendersType === void 0)) return false;
1851
+ if (e.match(void 0, (A, d) => d === "typeAnnotation" && A.type === "TypeAnnotation", (A, d) => d === "returnType" && A.type === "ArrowFunctionExpression") || e.match(void 0, (A, d) => d === "typeAnnotation" && A.type === "TypePredicate", (A, d) => d === "typeAnnotation" && A.type === "TypeAnnotation", (A, d) => d === "returnType" && A.type === "ArrowFunctionExpression")) return true;
1852
+ let c = s.type === "NullableTypeAnnotation" ? e.grandparent : s;
1853
+ 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" && ((y = r.returnType) == null ? void 0 : y.type) === "InferTypeAnnotation" && ((D = r.returnType) == null ? void 0 : D.typeParameter.bound) || c.type === "NullableTypeAnnotation" || s.type === "FunctionTypeParam" && s.name === null && z(r).some((A) => {
1854
+ var d;
1855
+ return ((d = A.typeAnnotation) == null ? void 0 : d.type) === "NullableTypeAnnotation";
1856
+ });
1857
+ }
1858
+ case "ConditionalTypeAnnotation":
1859
+ if (n === "extendsType" && s.type === "ConditionalTypeAnnotation" && r.type === "ConditionalTypeAnnotation" || n === "checkType" && s.type === "ConditionalTypeAnnotation") return true;
1860
+ case "OptionalIndexedAccessType":
1861
+ return n === "objectType" && s.type === "IndexedAccessType";
1862
+ case "StringLiteral":
1863
+ case "NumericLiteral":
1864
+ case "Literal":
1865
+ if (typeof r.value == "string" && s.type === "ExpressionStatement" && !s.directive) {
1866
+ let c = e.grandparent;
1867
+ return c.type === "Program" || c.type === "BlockStatement";
1868
+ }
1869
+ return n === "object" && s.type === "MemberExpression" && typeof r.value == "number";
1870
+ case "AssignmentExpression": {
1871
+ let c = e.grandparent;
1872
+ return n === "body" && s.type === "ArrowFunctionExpression" ? true : n === "key" && (s.type === "ClassProperty" || s.type === "PropertyDefinition") && s.computed || (n === "init" || n === "update") && s.type === "ForStatement" ? false : s.type === "ExpressionStatement" ? r.left.type === "ObjectPattern" : !(n === "key" && s.type === "TSPropertySignature" || s.type === "AssignmentExpression" || s.type === "SequenceExpression" && c.type === "ForStatement" && (c.init === s || c.update === s) || n === "value" && s.type === "Property" && c.type === "ObjectPattern" && c.properties.includes(s) || s.type === "NGChainedExpression" || n === "node" && s.type === "JsExpressionRoot");
1873
+ }
1874
+ case "ConditionalExpression":
1875
+ switch (s.type) {
1876
+ case "TaggedTemplateExpression":
1877
+ case "UnaryExpression":
1878
+ case "SpreadElement":
1879
+ case "BinaryExpression":
1880
+ case "LogicalExpression":
1881
+ case "NGPipeExpression":
1882
+ case "ExportDefaultDeclaration":
1883
+ case "AwaitExpression":
1884
+ case "JSXSpreadAttribute":
1885
+ case "TSTypeAssertion":
1886
+ case "TypeCastExpression":
1887
+ case "TSAsExpression":
1888
+ case "TSSatisfiesExpression":
1889
+ case "AsExpression":
1890
+ case "AsConstExpression":
1891
+ case "SatisfiesExpression":
1892
+ case "TSNonNullExpression":
1893
+ return true;
1894
+ case "NewExpression":
1895
+ case "CallExpression":
1896
+ case "OptionalCallExpression":
1897
+ return n === "callee";
1898
+ case "ConditionalExpression":
1899
+ return t.experimentalTernaries ? false : n === "test";
1900
+ case "MemberExpression":
1901
+ case "OptionalMemberExpression":
1902
+ return n === "object";
1903
+ default:
1904
+ return false;
1905
+ }
1906
+ case "FunctionExpression":
1907
+ switch (s.type) {
1908
+ case "NewExpression":
1909
+ case "CallExpression":
1910
+ case "OptionalCallExpression":
1911
+ return n === "callee";
1912
+ case "TaggedTemplateExpression":
1913
+ return true;
1914
+ default:
1915
+ return false;
1916
+ }
1917
+ case "ArrowFunctionExpression":
1918
+ switch (s.type) {
1919
+ case "BinaryExpression":
1920
+ return s.operator !== "|>" || ((m = r.extra) == null ? void 0 : m.parenthesized);
1921
+ case "NewExpression":
1922
+ case "CallExpression":
1923
+ case "OptionalCallExpression":
1924
+ return n === "callee";
1925
+ case "MemberExpression":
1926
+ case "OptionalMemberExpression":
1927
+ return n === "object";
1928
+ case "TSAsExpression":
1929
+ case "TSSatisfiesExpression":
1930
+ case "AsExpression":
1931
+ case "AsConstExpression":
1932
+ case "SatisfiesExpression":
1933
+ case "TSNonNullExpression":
1934
+ case "BindExpression":
1935
+ case "TaggedTemplateExpression":
1936
+ case "UnaryExpression":
1937
+ case "LogicalExpression":
1938
+ case "AwaitExpression":
1939
+ case "TSTypeAssertion":
1940
+ return true;
1941
+ case "ConditionalExpression":
1942
+ return n === "test";
1943
+ default:
1944
+ return false;
1945
+ }
1946
+ case "ClassExpression":
1947
+ switch (s.type) {
1948
+ case "NewExpression":
1949
+ return n === "callee";
1950
+ default:
1951
+ return false;
1952
+ }
1953
+ case "OptionalMemberExpression":
1954
+ case "OptionalCallExpression":
1955
+ case "CallExpression":
1956
+ case "MemberExpression":
1957
+ if (cc(e)) return true;
1958
+ case "TaggedTemplateExpression":
1959
+ case "TSNonNullExpression":
1960
+ if (n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression")) {
1961
+ let c = r;
1962
+ for (; c; ) switch (c.type) {
1963
+ case "CallExpression":
1964
+ case "OptionalCallExpression":
1965
+ return true;
1966
+ case "MemberExpression":
1967
+ case "OptionalMemberExpression":
1968
+ case "BindExpression":
1969
+ c = c.object;
1970
+ break;
1971
+ case "TaggedTemplateExpression":
1972
+ c = c.tag;
1973
+ break;
1974
+ case "TSNonNullExpression":
1975
+ c = c.expression;
1976
+ break;
1977
+ default:
1978
+ return false;
1979
+ }
1980
+ }
1981
+ return false;
1982
+ case "BindExpression":
1983
+ return n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression") || n === "object" && W(s);
1984
+ case "NGPipeExpression":
1985
+ return !(s.type === "NGRoot" || s.type === "NGMicrosyntaxExpression" || s.type === "ObjectProperty" && !((C = r.extra) != null && C.parenthesized) || Y(s) || n === "arguments" && L(s) || n === "right" && s.type === "NGPipeExpression" || n === "property" && s.type === "MemberExpression" || s.type === "AssignmentExpression");
1986
+ case "JSXFragment":
1987
+ case "JSXElement":
1988
+ return n === "callee" || n === "left" && s.type === "BinaryExpression" && s.operator === "<" || !Y(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" && !L(s) && !Ce(s) && s.type !== "ReturnStatement" && s.type !== "ThrowStatement" && s.type !== "TypeCastExpression" && s.type !== "VariableDeclarator" && s.type !== "YieldExpression";
1989
+ case "TSInstantiationExpression":
1990
+ return n === "object" && W(s);
1991
+ }
1992
+ return false;
1993
+ }
1994
+ var ic = 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"]);
1995
+ function ac(e) {
1996
+ let t = 0, { node: r } = e;
1997
+ for (; r; ) {
1998
+ let n = e.getParentNode(t++);
1999
+ if ((n == null ? void 0 : n.type) === "ForStatement" && n.init === r) return true;
2000
+ r = n;
2001
+ }
2002
+ return false;
2003
+ }
2004
+ function oc(e) {
2005
+ return nr(e, (t) => t.type === "ObjectTypeAnnotation" && nr(t, (r) => r.type === "FunctionTypeAnnotation"));
2006
+ }
2007
+ function pc(e) {
2008
+ return se(e);
2009
+ }
2010
+ function lr(e) {
2011
+ let { parent: t, key: r } = e;
2012
+ switch (t.type) {
2013
+ case "NGPipeExpression":
2014
+ if (r === "arguments" && e.isLast) return e.callParent(lr);
2015
+ break;
2016
+ case "ObjectProperty":
2017
+ if (r === "value") return e.callParent(() => e.key === "properties" && e.isLast);
2018
+ break;
2019
+ case "BinaryExpression":
2020
+ case "LogicalExpression":
2021
+ if (r === "right") return e.callParent(lr);
2022
+ break;
2023
+ case "ConditionalExpression":
2024
+ if (r === "alternate") return e.callParent(lr);
2025
+ break;
2026
+ case "UnaryExpression":
2027
+ if (t.prefix) return e.callParent(lr);
2028
+ break;
2029
+ }
2030
+ return false;
2031
+ }
2032
+ function Di(e, t) {
2033
+ let { node: r, parent: n } = e;
2034
+ return r.type === "FunctionExpression" || r.type === "ClassExpression" ? n.type === "ExportDefaultDeclaration" || !as(e, t) : !Rt(r) || n.type !== "ExportDefaultDeclaration" && as(e, t) ? false : e.call(() => Di(e, t), ...kr(r));
2035
+ }
2036
+ function cc(e) {
2037
+ 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"));
2038
+ }
2039
+ function os(e) {
2040
+ return e.type === "Identifier" ? true : W(e) ? !e.computed && !e.optional && e.property.type === "Identifier" && os(e.object) : false;
2041
+ }
2042
+ function lc(e) {
2043
+ return e.type === "ChainExpression" && (e = e.expression), os(e) || L(e) && !e.optional && os(e.callee);
2044
+ }
2045
+ var ke = as;
2046
+ function mc(e, t) {
2047
+ let r = t - 1;
2048
+ r = Ye(e, r, { backwards: true }), r = Ne(e, r, { backwards: true }), r = Ye(e, r, { backwards: true });
2049
+ let n = Ne(e, r, { backwards: true });
2050
+ return r !== n;
2051
+ }
2052
+ var fi = mc;
2053
+ var yc = () => true;
2054
+ function ps(e, t) {
2055
+ let r = e.node;
2056
+ return r.printed = true, t.printer.printComment(e, t);
2057
+ }
2058
+ function Dc(e, t) {
2059
+ var y;
2060
+ let r = e.node, n = [ps(e, t)], { printer: s, originalText: u, locStart: i, locEnd: a } = t;
2061
+ if ((y = s.isBlockComment) == null ? void 0 : y.call(s, r)) {
2062
+ let D = Z(u, a(r)) ? Z(u, i(r), { backwards: true }) ? F : x : " ";
2063
+ n.push(D);
2064
+ } else n.push(F);
2065
+ let p = Ne(u, Ye(u, a(r)));
2066
+ return p !== false && Z(u, p) && n.push(F), n;
2067
+ }
2068
+ function fc(e, t, r) {
2069
+ var p;
2070
+ let n = e.node, s = ps(e, t), { printer: u, originalText: i, locStart: a } = t, o = (p = u.isBlockComment) == null ? void 0 : p.call(u, n);
2071
+ if (r != null && r.hasLineSuffix && !(r != null && r.isBlock) || Z(i, a(n), { backwards: true })) {
2072
+ let y = fi(i, a(n));
2073
+ return { doc: Un([F, y ? F : "", s]), isBlock: o, hasLineSuffix: true };
2074
+ }
2075
+ return !o || r != null && r.hasLineSuffix ? { doc: [Un([" ", s]), Ee], isBlock: o, hasLineSuffix: true } : { doc: [" ", s], isBlock: o, hasLineSuffix: false };
2076
+ }
2077
+ function J(e, t, r = {}) {
2078
+ let { node: n } = e;
2079
+ if (!O(n == null ? void 0 : n.comments)) return "";
2080
+ let { indent: s = false, marker: u, filter: i = yc } = r, a = [];
2081
+ if (e.each(({ node: p }) => {
2082
+ p.leading || p.trailing || p.marker !== u || !i(p) || a.push(ps(e, t));
2083
+ }, "comments"), a.length === 0) return "";
2084
+ let o = b(F, a);
2085
+ return s ? f([F, o]) : o;
2086
+ }
2087
+ function cs(e, t) {
2088
+ let r = e.node;
2089
+ if (!r) return {};
2090
+ let n = t[Symbol.for("printedComments")];
2091
+ if ((r.comments || []).filter((o) => !n.has(o)).length === 0) return { leading: "", trailing: "" };
2092
+ let u = [], i = [], a;
2093
+ return e.each(() => {
2094
+ let o = e.node;
2095
+ if (n != null && n.has(o)) return;
2096
+ let { leading: p, trailing: y } = o;
2097
+ p ? u.push(Dc(e, t)) : y && (a = fc(e, t, a), i.push(a.doc));
2098
+ }, "comments"), { leading: u, trailing: i };
2099
+ }
2100
+ function ye(e, t, r) {
2101
+ let { leading: n, trailing: s } = cs(e, r);
2102
+ return !n && !s ? t : pr(t, (u) => [n, u, s]);
2103
+ }
2104
+ var ls = class extends Error {
2105
+ name = "UnexpectedNodeError";
2106
+ constructor(t, r, n = "type") {
2107
+ super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`), this.node = t;
2108
+ }
2109
+ };
2110
+ var qe = ls;
2111
+ function ms(e) {
2112
+ if (typeof e != "string") throw new TypeError("Expected a string");
2113
+ return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2114
+ }
2115
+ var We;
2116
+ var ys = class {
2117
+ constructor(t) {
2118
+ Us(this, We);
2119
+ Ys(this, We, new Set(t));
2120
+ }
2121
+ getLeadingWhitespaceCount(t) {
2122
+ let r = pt(this, We), n = 0;
2123
+ for (let s = 0; s < t.length && r.has(t.charAt(s)); s++) n++;
2124
+ return n;
2125
+ }
2126
+ getTrailingWhitespaceCount(t) {
2127
+ let r = pt(this, We), n = 0;
2128
+ for (let s = t.length - 1; s >= 0 && r.has(t.charAt(s)); s--) n++;
2129
+ return n;
2130
+ }
2131
+ getLeadingWhitespace(t) {
2132
+ let r = this.getLeadingWhitespaceCount(t);
2133
+ return t.slice(0, r);
2134
+ }
2135
+ getTrailingWhitespace(t) {
2136
+ let r = this.getTrailingWhitespaceCount(t);
2137
+ return t.slice(t.length - r);
2138
+ }
2139
+ hasLeadingWhitespace(t) {
2140
+ return pt(this, We).has(t.charAt(0));
2141
+ }
2142
+ hasTrailingWhitespace(t) {
2143
+ return pt(this, We).has(M(false, t, -1));
2144
+ }
2145
+ trimStart(t) {
2146
+ let r = this.getLeadingWhitespaceCount(t);
2147
+ return t.slice(r);
2148
+ }
2149
+ trimEnd(t) {
2150
+ let r = this.getTrailingWhitespaceCount(t);
2151
+ return t.slice(0, t.length - r);
2152
+ }
2153
+ trim(t) {
2154
+ return this.trimEnd(this.trimStart(t));
2155
+ }
2156
+ split(t, r = false) {
2157
+ let n = `[${ms([...pt(this, We)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
2158
+ return t.split(s);
2159
+ }
2160
+ hasWhitespaceCharacter(t) {
2161
+ let r = pt(this, We);
2162
+ return Array.prototype.some.call(t, (n) => r.has(n));
2163
+ }
2164
+ hasNonWhitespaceCharacter(t) {
2165
+ let r = pt(this, We);
2166
+ return Array.prototype.some.call(t, (n) => !r.has(n));
2167
+ }
2168
+ isWhitespaceOnly(t) {
2169
+ let r = pt(this, We);
2170
+ return Array.prototype.every.call(t, (n) => r.has(n));
2171
+ }
2172
+ };
2173
+ We = /* @__PURE__ */ new WeakMap();
2174
+ var Ei = ys;
2175
+ var Xr = new Ei(`
2176
+ \r `);
2177
+ var Ds = (e) => e === "" || e === x || e === F || e === E;
2178
+ function Ec(e, t, r) {
2179
+ var _, v, j, I, U;
2180
+ let { node: n } = e;
2181
+ if (n.type === "JSXElement" && Ic(n)) return [r("openingElement"), r("closingElement")];
2182
+ let s = n.type === "JSXElement" ? r("openingElement") : r("openingFragment"), u = n.type === "JSXElement" ? r("closingElement") : r("closingFragment");
2183
+ 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];
2184
+ n.children = n.children.map((P) => Lc(P) ? { type: "JSXText", value: " ", raw: " " } : P);
2185
+ let i = n.children.some(X), a = n.children.filter((P) => P.type === "JSXExpressionContainer").length > 1, o = n.type === "JSXElement" && n.openingElement.attributes.length > 1, p = re(s) || i || o || a, y = e.parent.rootMarker === "mdx", D = t.singleQuote ? "{' '}" : '{" "}', m = y ? x : B([D, E], " "), C = ((v = (_ = n.openingElement) == null ? void 0 : _.name) == null ? void 0 : v.name) === "fbt", c = Fc(e, t, r, m, C), A = n.children.some((P) => mr(P));
2186
+ for (let P = c.length - 2; P >= 0; P--) {
2187
+ let G = c[P] === "" && c[P + 1] === "", ue = c[P] === F && c[P + 1] === "" && c[P + 2] === F, Q = (c[P] === E || c[P] === F) && c[P + 1] === "" && c[P + 2] === m, St = c[P] === m && c[P + 1] === "" && (c[P + 2] === E || c[P + 2] === F), Ft = c[P] === m && c[P + 1] === "" && c[P + 2] === m, w = c[P] === E && c[P + 1] === "" && c[P + 2] === F || c[P] === F && c[P + 1] === "" && c[P + 2] === E;
2188
+ ue && A || G || Q || Ft || w ? c.splice(P, 2) : St && c.splice(P + 1, 2);
2189
+ }
2190
+ for (; c.length > 0 && Ds(M(false, c, -1)); ) c.pop();
2191
+ for (; c.length > 1 && Ds(c[0]) && Ds(c[1]); ) c.shift(), c.shift();
2192
+ let d = [""];
2193
+ for (let [P, G] of c.entries()) {
2194
+ if (G === m) {
2195
+ if (P === 1 && bu(c[P - 1])) {
2196
+ if (c.length === 2) {
2197
+ d.push([d.pop(), D]);
2198
+ continue;
2199
+ }
2200
+ d.push([D, F], "");
2201
+ continue;
2202
+ } else if (P === c.length - 1) {
2203
+ d.push([d.pop(), D]);
2204
+ continue;
2205
+ } else if (c[P - 1] === "" && c[P - 2] === F) {
2206
+ d.push([d.pop(), D]);
2207
+ continue;
2208
+ }
2209
+ }
2210
+ P % 2 === 0 ? d.push([d.pop(), G]) : d.push(G, ""), re(G) && (p = true);
2211
+ }
2212
+ let S = A ? Jr(d) : l(d, { shouldBreak: true });
2213
+ if (((j = t.cursorNode) == null ? void 0 : j.type) === "JSXText" && n.children.includes(t.cursorNode) ? S = [cr, S, cr] : ((I = t.nodeBeforeCursor) == null ? void 0 : I.type) === "JSXText" && n.children.includes(t.nodeBeforeCursor) ? S = [cr, S] : ((U = t.nodeAfterCursor) == null ? void 0 : U.type) === "JSXText" && n.children.includes(t.nodeAfterCursor) && (S = [S, cr]), y) return S;
2214
+ let g = l([s, f([F, S]), F, u]);
2215
+ return p ? g : Ze([l([s, ...c, u]), g]);
2216
+ }
2217
+ function Fc(e, t, r, n, s) {
2218
+ let u = "", i = [u];
2219
+ function a(p) {
2220
+ u = p, i.push([i.pop(), p]);
2221
+ }
2222
+ function o(p) {
2223
+ p !== "" && (u = p, i.push(p, ""));
2224
+ }
2225
+ return e.each(({ node: p, next: y }) => {
2226
+ if (p.type === "JSXText") {
2227
+ let D = fe(p);
2228
+ if (mr(p)) {
2229
+ let m = Xr.split(D, true);
2230
+ m[0] === "" && (m.shift(), /\n/u.test(m[0]) ? o(Ci(s, m[1], p, y)) : o(n), m.shift());
2231
+ let C;
2232
+ if (M(false, m, -1) === "" && (m.pop(), C = m.pop()), m.length === 0) return;
2233
+ for (let [c, A] of m.entries()) c % 2 === 1 ? o(x) : a(A);
2234
+ C !== void 0 ? /\n/u.test(C) ? o(Ci(s, u, p, y)) : o(n) : o(Fi(s, u, p, y));
2235
+ } else /\n/u.test(D) ? D.match(/\n/gu).length > 1 && o(F) : o(n);
2236
+ } else {
2237
+ let D = r();
2238
+ if (a(D), y && mr(y)) {
2239
+ let C = Xr.trim(fe(y)), [c] = Xr.split(C);
2240
+ o(Fi(s, c, p, y));
2241
+ } else o(F);
2242
+ }
2243
+ }, "children"), i;
2244
+ }
2245
+ function Fi(e, t, r, n) {
2246
+ return e ? "" : r.type === "JSXElement" && !r.closingElement || (n == null ? void 0 : n.type) === "JSXElement" && !n.closingElement ? t.length === 1 ? E : F : E;
2247
+ }
2248
+ function Ci(e, t, r, n) {
2249
+ return e ? F : t.length === 1 ? r.type === "JSXElement" && !r.closingElement || (n == null ? void 0 : n.type) === "JSXElement" && !n.closingElement ? F : E : F;
2250
+ }
2251
+ var Cc = /* @__PURE__ */ new Set(["ArrayExpression", "TupleExpression", "JSXAttribute", "JSXElement", "JSXExpressionContainer", "JSXFragment", "ExpressionStatement", "CallExpression", "OptionalCallExpression", "ConditionalExpression", "JsExpressionRoot"]);
2252
+ function Ac(e, t, r) {
2253
+ let { parent: n } = e;
2254
+ if (Cc.has(n.type)) return t;
2255
+ let s = e.match(void 0, (i) => i.type === "ArrowFunctionExpression", L, (i) => i.type === "JSXExpressionContainer"), u = ke(e, r);
2256
+ return l([u ? "" : B("("), f([E, t]), E, u ? "" : B(")")], { shouldBreak: s });
2257
+ }
2258
+ function Tc(e, t, r) {
2259
+ let { node: n } = e, s = [];
2260
+ if (s.push(r("name")), n.value) {
2261
+ let u;
2262
+ if (te(n.value)) {
2263
+ let i = fe(n.value), a = N(false, N(false, i.slice(1, -1), "&apos;", "'"), "&quot;", '"'), o = hr(a, t.jsxSingleQuote);
2264
+ a = o === '"' ? N(false, a, '"', "&quot;") : N(false, a, "'", "&apos;"), u = e.call(() => ye(e, _e(o + a + o), t), "value");
2265
+ } else u = r("value");
2266
+ s.push("=", u);
2267
+ }
2268
+ return s;
2269
+ }
2270
+ function dc(e, t, r) {
2271
+ let { node: n } = e, s = (u, i) => u.type === "JSXEmptyExpression" || !T(u) && (Y(u) || se(u) || u.type === "ArrowFunctionExpression" || u.type === "AwaitExpression" && (s(u.argument, u) || u.argument.type === "JSXElement") || L(u) || u.type === "ChainExpression" && L(u.expression) || u.type === "FunctionExpression" || u.type === "TemplateLiteral" || u.type === "TaggedTemplateExpression" || u.type === "DoExpression" || X(i) && (u.type === "ConditionalExpression" || De(u)));
2272
+ return s(n.expression, e.parent) ? l(["{", r("expression"), ve, "}"]) : l(["{", f([E, r("expression")]), E, ve, "}"]);
2273
+ }
2274
+ function xc(e, t, r) {
2275
+ var a, o;
2276
+ let { node: n } = e, s = T(n.name) || T(n.typeParameters) || T(n.typeArguments);
2277
+ if (n.selfClosing && n.attributes.length === 0 && !s) return ["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), " />"];
2278
+ if (((a = n.attributes) == null ? void 0 : a.length) === 1 && te(n.attributes[0].value) && !n.attributes[0].value.value.includes(`
2279
+ `) && !s && !T(n.attributes[0])) return l(["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), " ", ...e.map(r, "attributes"), n.selfClosing ? " />" : ">"]);
2280
+ let u = (o = n.attributes) == null ? void 0 : o.some((p) => te(p.value) && p.value.value.includes(`
2281
+ `)), i = t.singleAttributePerLine && n.attributes.length > 1 ? F : x;
2282
+ return l(["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), f(e.map(() => [i, r()], "attributes")), ...hc(n, t, s)], { shouldBreak: u });
2283
+ }
2284
+ function hc(e, t, r) {
2285
+ return e.selfClosing ? [x, "/>"] : gc(e, t, r) ? [">"] : [E, ">"];
2286
+ }
2287
+ function gc(e, t, r) {
2288
+ let n = e.attributes.length > 0 && T(M(false, e.attributes, -1), h.Trailing);
2289
+ return e.attributes.length === 0 && !r || (t.bracketSameLine || t.jsxBracketSameLine) && (!r || e.attributes.length > 0) && !n;
2290
+ }
2291
+ function Sc(e, t, r) {
2292
+ let { node: n } = e, s = [];
2293
+ s.push("</");
2294
+ let u = r("name");
2295
+ return T(n.name, h.Leading | h.Line) ? s.push(f([F, u]), F) : T(n.name, h.Leading | h.Block) ? s.push(" ", u) : s.push(u), s.push(">"), s;
2296
+ }
2297
+ function Bc(e, t) {
2298
+ let { node: r } = e, n = T(r), s = T(r, h.Line), u = r.type === "JSXOpeningFragment";
2299
+ return [u ? "<" : "</", f([s ? F : n && !u ? " " : "", J(e, t)]), s ? F : "", ">"];
2300
+ }
2301
+ function bc(e, t, r) {
2302
+ let n = ye(e, Ec(e, t, r), t);
2303
+ return Ac(e, n, t);
2304
+ }
2305
+ function Pc(e, t) {
2306
+ let { node: r } = e, n = T(r, h.Line);
2307
+ return [J(e, t, { indent: n }), n ? F : ""];
2308
+ }
2309
+ function kc(e, t, r) {
2310
+ let { node: n } = e;
2311
+ return ["{", e.call(({ node: s }) => {
2312
+ let u = ["...", r()];
2313
+ return !T(s) || !zn(e) ? u : [f([E, ye(e, u, t)]), E];
2314
+ }, n.type === "JSXSpreadAttribute" ? "argument" : "expression"), "}"];
2315
+ }
2316
+ function Ai(e, t, r) {
2317
+ let { node: n } = e;
2318
+ if (n.type.startsWith("JSX")) switch (n.type) {
2319
+ case "JSXAttribute":
2320
+ return Tc(e, t, r);
2321
+ case "JSXIdentifier":
2322
+ return n.name;
2323
+ case "JSXNamespacedName":
2324
+ return b(":", [r("namespace"), r("name")]);
2325
+ case "JSXMemberExpression":
2326
+ return b(".", [r("object"), r("property")]);
2327
+ case "JSXSpreadAttribute":
2328
+ case "JSXSpreadChild":
2329
+ return kc(e, t, r);
2330
+ case "JSXExpressionContainer":
2331
+ return dc(e, t, r);
2332
+ case "JSXFragment":
2333
+ case "JSXElement":
2334
+ return bc(e, t, r);
2335
+ case "JSXOpeningElement":
2336
+ return xc(e, t, r);
2337
+ case "JSXClosingElement":
2338
+ return Sc(e, t, r);
2339
+ case "JSXOpeningFragment":
2340
+ case "JSXClosingFragment":
2341
+ return Bc(e, t);
2342
+ case "JSXEmptyExpression":
2343
+ return Pc(e, t);
2344
+ case "JSXText":
2345
+ throw new Error("JSXText should be handled by JSXElement");
2346
+ default:
2347
+ throw new qe(n, "JSX");
2348
+ }
2349
+ }
2350
+ function Ic(e) {
2351
+ if (e.children.length === 0) return true;
2352
+ if (e.children.length > 1) return false;
2353
+ let t = e.children[0];
2354
+ return t.type === "JSXText" && !mr(t);
2355
+ }
2356
+ function mr(e) {
2357
+ return e.type === "JSXText" && (Xr.hasNonWhitespaceCharacter(fe(e)) || !/\n/u.test(fe(e)));
2358
+ }
2359
+ function Lc(e) {
2360
+ return e.type === "JSXExpressionContainer" && te(e.expression) && e.expression.value === " " && !T(e.expression);
2361
+ }
2362
+ function Ti(e) {
2363
+ let { node: t, parent: r } = e;
2364
+ if (!X(t) || !X(r)) return false;
2365
+ let { index: n, siblings: s } = e, u;
2366
+ for (let i = n; i > 0; i--) {
2367
+ let a = s[i - 1];
2368
+ if (!(a.type === "JSXText" && !mr(a))) {
2369
+ u = a;
2370
+ break;
2371
+ }
2372
+ }
2373
+ return (u == null ? void 0 : u.type) === "JSXExpressionContainer" && u.expression.type === "JSXEmptyExpression" && It(u.expression);
2374
+ }
2375
+ function wc(e) {
2376
+ return It(e.node) || Ti(e);
2377
+ }
2378
+ var Hr = wc;
2379
+ var Oc = 0;
2380
+ function Vr(e, t, r) {
2381
+ var v;
2382
+ 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 === "|>" && ((v = e.root.extra) == null ? void 0 : v.__isUsingHackPipeline), p = fs(e, r, t, false, a);
2383
+ if (a) return p;
2384
+ if (o) return l(p);
2385
+ if (L(s) && s.callee === n || s.type === "UnaryExpression" || W(s) && !s.computed) return l([f([E, ...p]), E]);
2386
+ let y = 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" && !L(u) || s.type === "TemplateLiteral", D = s.type === "AssignmentExpression" || s.type === "VariableDeclarator" || s.type === "ClassProperty" || s.type === "PropertyDefinition" || s.type === "TSAbstractPropertyDefinition" || s.type === "ClassPrivateProperty" || Ce(s), m = De(n.left) && ur(n.operator, n.left.operator);
2387
+ if (y || Nt(n) && !m || !Nt(n) && D) return l(p);
2388
+ if (p.length === 0) return "";
2389
+ let C = X(n.right), c = p.findIndex((j) => typeof j != "string" && !Array.isArray(j) && j.type === me), A = p.slice(0, c === -1 ? 1 : c + 1), d = p.slice(A.length, C ? -1 : void 0), S = Symbol("logicalChain-" + ++Oc), g = l([...A, f(d)], { id: S });
2390
+ if (!C) return g;
2391
+ let _ = M(false, p, -1);
2392
+ return l([g, dt(_, { groupId: S })]);
2393
+ }
2394
+ function fs(e, t, r, n, s) {
2395
+ var S;
2396
+ let { node: u } = e;
2397
+ if (!De(u)) return [l(t())];
2398
+ let i = [];
2399
+ ur(u.operator, u.left.operator) ? i = e.call((g) => fs(g, t, r, true, s), "left") : i.push(l(t("left")));
2400
+ let a = Nt(u), o = (u.operator === "|>" || u.type === "NGPipeExpression" || _c(e, r)) && !Le(r.originalText, u.right), y = !T(u.right, h.Leading, qr) && Le(r.originalText, u.right), D = u.type === "NGPipeExpression" ? "|" : u.operator, m = u.type === "NGPipeExpression" && u.arguments.length > 0 ? l(f([E, ": ", b([x, ": "], e.map(() => Be(2, l(t())), "arguments"))])) : "", C;
2401
+ if (a) C = [D, " ", t("right"), m];
2402
+ else {
2403
+ let _ = D === "|>" && ((S = e.root.extra) == null ? void 0 : S.__isUsingHackPipeline) ? e.call((v) => fs(v, t, r, true, s), "right") : t("right");
2404
+ if (r.experimentalOperatorPosition === "start") {
2405
+ let v = "";
2406
+ if (y) switch (Se(_)) {
2407
+ case he:
2408
+ v = _.splice(0, 1)[0];
2409
+ break;
2410
+ case ge:
2411
+ v = _.contents.splice(0, 1)[0];
2412
+ break;
2413
+ }
2414
+ C = [x, v, D, " ", _, m];
2415
+ } else C = [o ? x : "", D, o ? " " : x, _, m];
2416
+ }
2417
+ let { parent: c } = e, A = T(u.left, h.Trailing | h.Line);
2418
+ 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 })), r.experimentalOperatorPosition === "start" ? i.push(a || y ? " " : "", C) : i.push(o ? "" : " ", C), n && T(u)) {
2419
+ let g = Gt(ye(e, i, r));
2420
+ return g.type === we ? g.parts : Array.isArray(g) ? g : [g];
2421
+ }
2422
+ return i;
2423
+ }
2424
+ function Nt(e) {
2425
+ return e.type !== "LogicalExpression" ? false : !!(se(e.right) && e.right.properties.length > 0 || Y(e.right) && e.right.elements.length > 0 || X(e.right));
2426
+ }
2427
+ var di = (e) => e.type === "BinaryExpression" && e.operator === "|";
2428
+ function _c(e, t) {
2429
+ return (t.parser === "__vue_expression" || t.parser === "__vue_ts_expression") && di(e.node) && !e.hasAncestor((r) => !di(r) && r.type !== "JsExpressionRoot");
2430
+ }
2431
+ function hi(e, t, r) {
2432
+ let { node: n } = e;
2433
+ if (n.type.startsWith("NG")) switch (n.type) {
2434
+ case "NGRoot":
2435
+ return [r("node"), T(n.node) ? " //" + ct(n.node)[0].value.trimEnd() : ""];
2436
+ case "NGPipeExpression":
2437
+ return Vr(e, t, r);
2438
+ case "NGChainedExpression":
2439
+ return l(b([";", x], e.map(() => jc(e) ? r() : ["(", r(), ")"], "expressions")));
2440
+ case "NGEmptyExpression":
2441
+ return "";
2442
+ case "NGMicrosyntax":
2443
+ return e.map(() => [e.isFirst ? "" : xi(e) ? " " : [";", x], r()], "body");
2444
+ case "NGMicrosyntaxKey":
2445
+ return /^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name) ? n.name : JSON.stringify(n.name);
2446
+ case "NGMicrosyntaxExpression":
2447
+ return [r("expression"), n.alias === null ? "" : [" as ", r("alias")]];
2448
+ case "NGMicrosyntaxKeyedExpression": {
2449
+ let { index: s, parent: u } = e, i = xi(e) || (s === 1 && (n.key.name === "then" || n.key.name === "else" || n.key.name === "as") || (s === 2 || s === 3) && (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";
2450
+ return [r("key"), i ? " " : ": ", r("expression")];
2451
+ }
2452
+ case "NGMicrosyntaxLet":
2453
+ return ["let ", r("key"), n.value === null ? "" : [" = ", r("value")]];
2454
+ case "NGMicrosyntaxAs":
2455
+ return [r("key"), " as ", r("alias")];
2456
+ default:
2457
+ throw new qe(n, "Angular");
2458
+ }
2459
+ }
2460
+ function xi({ node: e, index: t }) {
2461
+ return e.type === "NGMicrosyntaxKeyedExpression" && e.key.name === "of" && t === 1;
2462
+ }
2463
+ var vc = R(["CallExpression", "OptionalCallExpression", "AssignmentExpression"]);
2464
+ function jc({ node: e }) {
2465
+ return nr(e, vc);
2466
+ }
2467
+ function Es(e, t, r) {
2468
+ let { node: n } = e;
2469
+ return l([b(x, e.map(r, "decorators")), Bi(n, t) ? F : x]);
2470
+ }
2471
+ function gi(e, t, r) {
2472
+ return bi(e.node) ? [b(F, e.map(r, "declaration", "decorators")), F] : "";
2473
+ }
2474
+ function Si(e, t, r) {
2475
+ let { node: n, parent: s } = e, { decorators: u } = n;
2476
+ if (!O(u) || bi(s) || Hr(e)) return "";
2477
+ let i = n.type === "ClassExpression" || n.type === "ClassDeclaration" || Bi(n, t);
2478
+ return [e.key === "declaration" && pu(s) ? F : i ? Ee : "", b(x, e.map(r, "decorators")), x];
2479
+ }
2480
+ function Bi(e, t) {
2481
+ return e.decorators.some((r) => Z(t.originalText, k(r)));
2482
+ }
2483
+ function bi(e) {
2484
+ var r;
2485
+ if (e.type !== "ExportDefaultDeclaration" && e.type !== "ExportNamedDeclaration" && e.type !== "DeclareExportDeclaration") return false;
2486
+ let t = (r = e.declaration) == null ? void 0 : r.decorators;
2487
+ return O(t) && bt(e, t[0]);
2488
+ }
2489
+ var yt = class extends Error {
2490
+ name = "ArgExpansionBailout";
2491
+ };
2492
+ function Mc(e, t, r) {
2493
+ let { node: n } = e, s = pe(n);
2494
+ if (s.length === 0) return ["(", J(e, t), ")"];
2495
+ let u = s.length - 1;
2496
+ if (qc(s)) {
2497
+ let D = ["("];
2498
+ return qt(e, (m, C) => {
2499
+ D.push(r()), C !== u && D.push(", ");
2500
+ }), D.push(")"), D;
2501
+ }
2502
+ let i = false, a = [];
2503
+ qt(e, ({ node: D }, m) => {
2504
+ let C = r();
2505
+ m === u || (ce(D, t) ? (i = true, C = [C, ",", F, F]) : C = [C, ",", x]), a.push(C);
2506
+ });
2507
+ let o = !t.parser.startsWith("__ng_") && n.type !== "ImportExpression" && oe(t, "all") ? "," : "";
2508
+ function p() {
2509
+ return l(["(", f([x, ...a]), o, x, ")"], { shouldBreak: true });
2510
+ }
2511
+ if (i || e.parent.type !== "Decorator" && Du(s)) return p();
2512
+ if (Jc(s)) {
2513
+ let D = a.slice(1);
2514
+ if (D.some(re)) return p();
2515
+ let m;
2516
+ try {
2517
+ m = r(Jn(n, 0), { expandFirstArg: true });
2518
+ } catch (C) {
2519
+ if (C instanceof yt) return p();
2520
+ throw C;
2521
+ }
2522
+ return re(m) ? [Ee, Ze([["(", l(m, { shouldBreak: true }), ", ", ...D, ")"], p()])] : Ze([["(", m, ", ", ...D, ")"], ["(", l(m, { shouldBreak: true }), ", ", ...D, ")"], p()]);
2523
+ }
2524
+ if (Rc(s, a, t)) {
2525
+ let D = a.slice(0, -1);
2526
+ if (D.some(re)) return p();
2527
+ let m;
2528
+ try {
2529
+ m = r(Jn(n, -1), { expandLastArg: true });
2530
+ } catch (C) {
2531
+ if (C instanceof yt) return p();
2532
+ throw C;
2533
+ }
2534
+ return re(m) ? [Ee, Ze([["(", ...D, l(m, { shouldBreak: true }), ")"], p()])] : Ze([["(", ...D, m, ")"], ["(", ...D, l(m, { shouldBreak: true }), ")"], p()]);
2535
+ }
2536
+ let y = ["(", f([E, ...a]), B(o), E, ")"];
2537
+ return _r(e) ? y : l(y, { shouldBreak: a.some(re) || i });
2538
+ }
2539
+ function yr(e, t = false) {
2540
+ return se(e) && (e.properties.length > 0 || T(e)) || Y(e) && (e.elements.length > 0 || T(e)) || e.type === "TSTypeAssertion" && yr(e.expression) || Ae(e) && yr(e.expression) || e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && (!e.returnType || !e.returnType.typeAnnotation || e.returnType.typeAnnotation.type !== "TSTypeReference" || Wc(e.body)) && (e.body.type === "BlockStatement" || e.body.type === "ArrowFunctionExpression" && yr(e.body, true) || se(e.body) || Y(e.body) || !t && (L(e.body) || e.body.type === "ConditionalExpression") || X(e.body)) || e.type === "DoExpression" || e.type === "ModuleExpression";
2541
+ }
2542
+ function Rc(e, t, r) {
2543
+ var u, i;
2544
+ let n = M(false, e, -1);
2545
+ if (e.length === 1) {
2546
+ let a = M(false, t, -1);
2547
+ if ((u = a.label) != null && u.embed && ((i = a.label) == null ? void 0 : i.hug) !== false) return true;
2548
+ }
2549
+ let s = M(false, e, -2);
2550
+ return !T(n, h.Leading) && !T(n, h.Trailing) && yr(n) && (!s || s.type !== n.type) && (e.length !== 2 || s.type !== "ArrowFunctionExpression" || !Y(n)) && !(e.length > 1 && Fs(n, r));
2551
+ }
2552
+ function Jc(e) {
2553
+ if (e.length !== 2) return false;
2554
+ let [t, r] = e;
2555
+ return t.type === "ModuleExpression" && Gc(r) ? true : !T(t) && (t.type === "FunctionExpression" || t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement") && r.type !== "FunctionExpression" && r.type !== "ArrowFunctionExpression" && r.type !== "ConditionalExpression" && ki(r) && !yr(r);
2556
+ }
2557
+ function ki(e) {
2558
+ if (e.type === "ParenthesizedExpression") return ki(e.expression);
2559
+ if (Ae(e) || e.type === "TypeCastExpression") {
2560
+ let { typeAnnotation: t } = e;
2561
+ 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") {
2562
+ let r = t.typeArguments ?? t.typeParameters;
2563
+ (r == null ? void 0 : r.params.length) === 1 && (t = r.params[0]);
2564
+ }
2565
+ return Jt(t) && Ie(e.expression, 1);
2566
+ }
2567
+ return lt(e) && pe(e).length > 1 ? false : De(e) ? Ie(e.left, 1) && Ie(e.right, 1) : Mn(e) || Ie(e);
2568
+ }
2569
+ function qc(e) {
2570
+ return e.length === 2 ? Pi(e, 0) : e.length === 3 ? e[0].type === "Identifier" && Pi(e, 1) : false;
2571
+ }
2572
+ function Pi(e, t) {
2573
+ let r = e[t], n = e[t + 1];
2574
+ return r.type === "ArrowFunctionExpression" && z(r).length === 0 && r.body.type === "BlockStatement" && n.type === "ArrayExpression" && !e.some((s) => T(s));
2575
+ }
2576
+ function Wc(e) {
2577
+ return e.type === "BlockStatement" && (e.body.some((t) => t.type !== "EmptyStatement") || T(e, h.Dangling));
2578
+ }
2579
+ function Gc(e) {
2580
+ return e.type === "ObjectExpression" && e.properties.length === 1 && Ce(e.properties[0]) && e.properties[0].key.type === "Identifier" && e.properties[0].key.name === "type" && te(e.properties[0].value) && e.properties[0].value.value === "module";
2581
+ }
2582
+ var Dr = Mc;
2583
+ var Uc = (e) => ((e.type === "ChainExpression" || e.type === "TSNonNullExpression") && (e = e.expression), L(e) && pe(e).length > 0);
2584
+ function Ii(e, t, r) {
2585
+ var p;
2586
+ let n = r("object"), s = Cs(e, t, r), { node: u } = e, i = e.findAncestor((y) => !(W(y) || y.type === "TSNonNullExpression")), a = e.findAncestor((y) => !(y.type === "ChainExpression" || y.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" && !W(a) || (a.type === "AssignmentExpression" || a.type === "VariableDeclarator") && (Uc(u.object) || ((p = n.label) == null ? void 0 : p.memberChain));
2587
+ return st(n.label, [n, o ? s : l(f([E, s]))]);
2588
+ }
2589
+ function Cs(e, t, r) {
2590
+ let n = r("property"), { node: s } = e, u = $(e);
2591
+ return s.computed ? !s.property || Fe(s.property) ? [u, "[", n, "]"] : l([u, "[", f([E, n]), E, "]"]) : [u, ".", n];
2592
+ }
2593
+ function Li(e, t, r) {
2594
+ if (e.node.type === "ChainExpression") return e.call(() => Li(e, t, r), "expression");
2595
+ let { parent: n } = e, s = !n || n.type === "ExpressionStatement", u = [];
2596
+ function i(w) {
2597
+ let { originalText: ne } = t, xe = ut(ne, k(w));
2598
+ return ne.charAt(xe) === ")" ? xe !== false && vt(ne, xe + 1) : ce(w, t);
2599
+ }
2600
+ function a() {
2601
+ let { node: w } = e;
2602
+ if (w.type === "ChainExpression") return e.call(a, "expression");
2603
+ if (L(w) && (At(w.callee) || L(w.callee))) {
2604
+ let ne = i(w);
2605
+ u.unshift({ node: w, hasTrailingEmptyLine: ne, printed: [ye(e, [$(e), et(e, t, r), Dr(e, t, r)], t), ne ? F : ""] }), e.call(a, "callee");
2606
+ } else At(w) ? (u.unshift({ node: w, needsParens: ke(e, t), printed: ye(e, W(w) ? Cs(e, t, r) : $r(e, t, r), t) }), e.call(a, "object")) : w.type === "TSNonNullExpression" ? (u.unshift({ node: w, printed: ye(e, "!", t) }), e.call(a, "expression")) : u.unshift({ node: w, printed: r() });
2607
+ }
2608
+ let { node: o } = e;
2609
+ u.unshift({ node: o, printed: [$(e), et(e, t, r), Dr(e, t, r)] }), o.callee && e.call(a, "callee");
2610
+ let p = [], y = [u[0]], D = 1;
2611
+ for (; D < u.length && (u[D].node.type === "TSNonNullExpression" || L(u[D].node) || W(u[D].node) && u[D].node.computed && Fe(u[D].node.property)); ++D) y.push(u[D]);
2612
+ if (!L(u[0].node)) for (; D + 1 < u.length && (At(u[D].node) && At(u[D + 1].node)); ++D) y.push(u[D]);
2613
+ p.push(y), y = [];
2614
+ let m = false;
2615
+ for (; D < u.length; ++D) {
2616
+ if (m && At(u[D].node)) {
2617
+ if (u[D].node.computed && Fe(u[D].node.property)) {
2618
+ y.push(u[D]);
2619
+ continue;
2620
+ }
2621
+ p.push(y), y = [], m = false;
2622
+ }
2623
+ (L(u[D].node) || u[D].node.type === "ImportExpression") && (m = true), y.push(u[D]), T(u[D].node, h.Trailing) && (p.push(y), y = [], m = false);
2624
+ }
2625
+ y.length > 0 && p.push(y);
2626
+ function C(w) {
2627
+ return /^[A-Z]|^[$_]+$/u.test(w);
2628
+ }
2629
+ function c(w) {
2630
+ return w.length <= t.tabWidth;
2631
+ }
2632
+ function A(w) {
2633
+ var ot;
2634
+ let ne = (ot = w[1][0]) == null ? void 0 : ot.node.computed;
2635
+ if (w[0].length === 1) {
2636
+ let Bt = w[0][0].node;
2637
+ return Bt.type === "ThisExpression" || Bt.type === "Identifier" && (C(Bt.name) || s && c(Bt.name) || ne);
2638
+ }
2639
+ let xe = M(false, w[0], -1).node;
2640
+ return W(xe) && xe.property.type === "Identifier" && (C(xe.property.name) || ne);
2641
+ }
2642
+ let d = p.length >= 2 && !T(p[1][0].node) && A(p);
2643
+ function S(w) {
2644
+ let ne = w.map((xe) => xe.printed);
2645
+ return w.length > 0 && M(false, w, -1).needsParens ? ["(", ...ne, ")"] : ne;
2646
+ }
2647
+ function g(w) {
2648
+ return w.length === 0 ? "" : f([F, b(F, w.map(S))]);
2649
+ }
2650
+ let _ = p.map(S), v = _, j = d ? 3 : 2, I = p.flat(), U = I.slice(1, -1).some((w) => T(w.node, h.Leading)) || I.slice(0, -1).some((w) => T(w.node, h.Trailing)) || p[j] && T(p[j][0].node, h.Leading);
2651
+ if (p.length <= j && !U && !p.some((w) => M(false, w, -1).hasTrailingEmptyLine)) return _r(e) ? v : l(v);
2652
+ let P = M(false, p[d ? 1 : 0], -1).node, G = !L(P) && i(P), ue = [S(p[0]), d ? p.slice(1, 2).map(S) : "", G ? F : "", g(p.slice(d ? 2 : 1))], Q = u.map(({ node: w }) => w).filter(L);
2653
+ function St() {
2654
+ let w = M(false, M(false, p, -1), -1).node, ne = M(false, _, -1);
2655
+ return L(w) && re(ne) && Q.slice(0, -1).some((xe) => xe.arguments.some(Mt));
2656
+ }
2657
+ let Ft;
2658
+ return U || Q.length > 2 && Q.some((w) => !w.arguments.every((ne) => Ie(ne))) || _.slice(0, -1).some(re) || St() ? Ft = l(ue) : Ft = [re(v) || G ? Ee : "", Ze([v, ue])], st({ memberChain: true }, Ft);
2659
+ }
2660
+ var wi = Li;
2661
+ function Kr(e, t, r) {
2662
+ var y;
2663
+ let { node: n } = e, s = n.type === "NewExpression", u = n.type === "ImportExpression", i = $(e), a = pe(n), o = a.length === 1 && wr(a[0], t.originalText);
2664
+ if (o || Yc(e) || kt(n, e.parent)) {
2665
+ let D = [];
2666
+ if (qt(e, () => {
2667
+ D.push(r());
2668
+ }), !(o && ((y = D[0].label) != null && y.embed))) return [s ? "new " : "", Oi(e, r), i, et(e, t, r), "(", b(", ", D), ")"];
2669
+ }
2670
+ if (!u && !s && At(n.callee) && !e.call((D) => ke(D, t), "callee", ...n.callee.type === "ChainExpression" ? ["expression"] : [])) return wi(e, t, r);
2671
+ let p = [s ? "new " : "", Oi(e, r), i, et(e, t, r), Dr(e, t, r)];
2672
+ return u || L(n.callee) ? l(p) : p;
2673
+ }
2674
+ function Oi(e, t) {
2675
+ let { node: r } = e;
2676
+ return r.type === "ImportExpression" ? `import${r.phase ? `.${r.phase}` : ""}` : t("callee");
2677
+ }
2678
+ function Yc(e) {
2679
+ let { node: t } = e;
2680
+ if (t.type !== "CallExpression" || t.optional || t.callee.type !== "Identifier") return false;
2681
+ let r = pe(t);
2682
+ return t.callee.name === "require" ? r.length === 1 && te(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 && te(r[0]) && r[1].type === "ArrayExpression" : false;
2683
+ }
2684
+ function xt(e, t, r, n, s, u) {
2685
+ let i = Nc(e, t, r, n, u), a = u ? r(u, { assignmentLayout: i }) : "";
2686
+ switch (i) {
2687
+ case "break-after-operator":
2688
+ return l([l(n), s, l(f([x, a]))]);
2689
+ case "never-break-after-operator":
2690
+ return l([l(n), s, " ", a]);
2691
+ case "fluid": {
2692
+ let o = Symbol("assignment");
2693
+ return l([l(n), s, l(f(x), { id: o }), ve, dt(a, { groupId: o })]);
2694
+ }
2695
+ case "break-lhs":
2696
+ return l([n, s, " ", l(a)]);
2697
+ case "chain":
2698
+ return [l(n), s, x, a];
2699
+ case "chain-tail":
2700
+ return [l(n), s, f([x, a])];
2701
+ case "chain-tail-arrow-chain":
2702
+ return [l(n), s, a];
2703
+ case "only-left":
2704
+ return n;
2705
+ }
2706
+ }
2707
+ function vi(e, t, r) {
2708
+ let { node: n } = e;
2709
+ return xt(e, t, r, r("left"), [" ", n.operator], "right");
2710
+ }
2711
+ function ji(e, t, r) {
2712
+ return xt(e, t, r, r("id"), " =", "init");
2713
+ }
2714
+ function Nc(e, t, r, n, s) {
2715
+ let { node: u } = e, i = u[s];
2716
+ if (!i) return "only-left";
2717
+ let a = !Qr(i);
2718
+ if (e.match(Qr, Mi, (m) => !a || m.type !== "ExpressionStatement" && m.type !== "VariableDeclaration")) return a ? i.type === "ArrowFunctionExpression" && i.body.type === "ArrowFunctionExpression" ? "chain-tail-arrow-chain" : "chain-tail" : "chain";
2719
+ if (!a && Qr(i.right) || Le(t.originalText, i)) return "break-after-operator";
2720
+ 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";
2721
+ let y = Bu(n);
2722
+ if (Hc(u) || Qc(u) || As(u) && y) return "break-lhs";
2723
+ let D = Zc(u, n, t);
2724
+ return e.call(() => Xc(e, t, r, D), s) ? "break-after-operator" : Vc(u) ? "break-lhs" : !y && (D || i.type === "TemplateLiteral" || i.type === "TaggedTemplateExpression" || i.type === "BooleanLiteral" || Fe(i) || i.type === "ClassExpression") ? "never-break-after-operator" : "fluid";
2725
+ }
2726
+ function Xc(e, t, r, n) {
2727
+ let s = e.node;
2728
+ if (De(s) && !Nt(s)) return true;
2729
+ switch (s.type) {
2730
+ case "StringLiteralTypeAnnotation":
2731
+ case "SequenceExpression":
2732
+ return true;
2733
+ case "TSConditionalType":
2734
+ case "ConditionalTypeAnnotation":
2735
+ if (!t.experimentalTernaries && !rl(s)) break;
2736
+ return true;
2737
+ case "ConditionalExpression": {
2738
+ if (!t.experimentalTernaries) {
2739
+ let { test: p } = s;
2740
+ return De(p) && !Nt(p);
2741
+ }
2742
+ let { consequent: a, alternate: o } = s;
2743
+ return a.type === "ConditionalExpression" || o.type === "ConditionalExpression";
2744
+ }
2745
+ case "ClassExpression":
2746
+ return O(s.decorators);
2747
+ }
2748
+ if (n) return false;
2749
+ let u = s, i = [];
2750
+ for (; ; ) if (u.type === "UnaryExpression" || u.type === "AwaitExpression" || u.type === "YieldExpression" && u.argument !== null) u = u.argument, i.push("argument");
2751
+ else if (u.type === "TSNonNullExpression") u = u.expression, i.push("expression");
2752
+ else break;
2753
+ return !!(te(u) || e.call(() => Ri(e, t, r), ...i));
2754
+ }
2755
+ function Hc(e) {
2756
+ if (Mi(e)) {
2757
+ let t = e.left || e.id;
2758
+ return t.type === "ObjectPattern" && t.properties.length > 2 && t.properties.some((r) => {
2759
+ var n;
2760
+ return Ce(r) && (!r.shorthand || ((n = r.value) == null ? void 0 : n.type) === "AssignmentPattern");
2761
+ });
2762
+ }
2763
+ return false;
2764
+ }
2765
+ function Qr(e) {
2766
+ return e.type === "AssignmentExpression";
2767
+ }
2768
+ function Mi(e) {
2769
+ return Qr(e) || e.type === "VariableDeclarator";
2770
+ }
2771
+ function Vc(e) {
2772
+ let t = Kc(e);
2773
+ if (O(t)) {
2774
+ let r = e.type === "TSTypeAliasDeclaration" ? "constraint" : "bound";
2775
+ if (t.length > 1 && t.some((n) => n[r] || n.default)) return true;
2776
+ }
2777
+ return false;
2778
+ }
2779
+ var $c = R(["TSTypeAliasDeclaration", "TypeAlias"]);
2780
+ function Kc(e) {
2781
+ var t;
2782
+ if ($c(e)) return (t = e.typeParameters) == null ? void 0 : t.params;
2783
+ }
2784
+ function Qc(e) {
2785
+ if (e.type !== "VariableDeclarator") return false;
2786
+ let { typeAnnotation: t } = e.id;
2787
+ if (!t || !t.typeAnnotation) return false;
2788
+ let r = _i(t.typeAnnotation);
2789
+ return O(r) && r.length > 1 && r.some((n) => O(_i(n)) || n.type === "TSConditionalType");
2790
+ }
2791
+ function As(e) {
2792
+ var t;
2793
+ return e.type === "VariableDeclarator" && ((t = e.init) == null ? void 0 : t.type) === "ArrowFunctionExpression";
2794
+ }
2795
+ var zc = R(["TSTypeReference", "GenericTypeAnnotation"]);
2796
+ function _i(e) {
2797
+ var t;
2798
+ if (zc(e)) return (t = e.typeArguments ?? e.typeParameters) == null ? void 0 : t.params;
2799
+ }
2800
+ function Ri(e, t, r, n = false) {
2801
+ var i;
2802
+ let { node: s } = e, u = () => Ri(e, t, r, true);
2803
+ if (s.type === "ChainExpression" || s.type === "TSNonNullExpression") return e.call(u, "expression");
2804
+ if (L(s)) {
2805
+ if ((i = Kr(e, t, r).label) != null && i.memberChain) return false;
2806
+ let o = pe(s);
2807
+ return !(o.length === 0 || o.length === 1 && sr(o[0], t)) || el(s, r) ? false : e.call(u, "callee");
2808
+ }
2809
+ return W(s) ? e.call(u, "object") : n && (s.type === "Identifier" || s.type === "ThisExpression");
2810
+ }
2811
+ function Zc(e, t, r) {
2812
+ return Ce(e) ? (t = Gt(t), typeof t == "string" && tt(t) < r.tabWidth + 3) : false;
2813
+ }
2814
+ function el(e, t) {
2815
+ let r = tl(e);
2816
+ if (O(r)) {
2817
+ if (r.length > 1) return true;
2818
+ if (r.length === 1) {
2819
+ let s = r[0];
2820
+ if (Xe(s) || vr(s) || s.type === "TSTypeLiteral" || s.type === "ObjectTypeAnnotation") return true;
2821
+ }
2822
+ let n = e.typeParameters ? "typeParameters" : "typeArguments";
2823
+ if (re(t(n))) return true;
2824
+ }
2825
+ return false;
2826
+ }
2827
+ function tl(e) {
2828
+ var t;
2829
+ return (t = e.typeParameters ?? e.typeArguments) == null ? void 0 : t.params;
2830
+ }
2831
+ function rl(e) {
2832
+ function t(r) {
2833
+ switch (r.type) {
2834
+ case "FunctionTypeAnnotation":
2835
+ case "GenericTypeAnnotation":
2836
+ case "TSFunctionType":
2837
+ return !!r.typeParameters;
2838
+ case "TSTypeReference":
2839
+ return !!(r.typeArguments ?? r.typeParameters);
2840
+ default:
2841
+ return false;
2842
+ }
2843
+ }
2844
+ return t(e.checkType) || t(e.extendsType);
2845
+ }
2846
+ function Ge(e, t, r, n, s) {
2847
+ let u = e.node, i = z(u), a = s ? et(e, r, t) : "";
2848
+ if (i.length === 0) return [a, "(", J(e, r, { filter: (c) => be(r.originalText, k(c)) === ")" }), ")"];
2849
+ let { parent: o } = e, p = kt(o), y = Ts(u), D = [];
2850
+ if (Cu(e, (c, A) => {
2851
+ let d = A === i.length - 1;
2852
+ d && u.rest && D.push("..."), D.push(t()), !d && (D.push(","), p || y ? D.push(" ") : ce(i[A], r) ? D.push(F, F) : D.push(x));
2853
+ }), n && !sl(e)) {
2854
+ if (re(a) || re(D)) throw new yt();
2855
+ return l([or(a), "(", or(D), ")"]);
2856
+ }
2857
+ let m = i.every((c) => !O(c.decorators));
2858
+ return y && m ? [a, "(", ...D, ")"] : p ? [a, "(", ...D, ")"] : (Lr(o) || lu(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 && Jt(i[0].typeAnnotation) && !u.rest ? r.arrowParens === "always" || u.type === "HookTypeAnnotation" ? ["(", ...D, ")"] : D : [a, "(", f([E, ...D]), B(!Fu(u) && oe(r, "all") ? "," : ""), E, ")"];
2859
+ }
2860
+ function Ts(e) {
2861
+ if (!e) return false;
2862
+ let t = z(e);
2863
+ if (t.length !== 1) return false;
2864
+ let [r] = t;
2865
+ return !T(r) && (r.type === "ObjectPattern" || r.type === "ArrayPattern" || r.type === "Identifier" && r.typeAnnotation && (r.typeAnnotation.type === "TypeAnnotation" || r.typeAnnotation.type === "TSTypeAnnotation") && Me(r.typeAnnotation.typeAnnotation) || r.type === "FunctionTypeParam" && Me(r.typeAnnotation) && r !== e.rest || r.type === "AssignmentPattern" && (r.left.type === "ObjectPattern" || r.left.type === "ArrayPattern") && (r.right.type === "Identifier" || se(r.right) && r.right.properties.length === 0 || Y(r.right) && r.right.elements.length === 0));
2866
+ }
2867
+ function nl(e) {
2868
+ let t;
2869
+ return e.returnType ? (t = e.returnType, t.typeAnnotation && (t = t.typeAnnotation)) : e.typeAnnotation && (t = e.typeAnnotation), t;
2870
+ }
2871
+ function at(e, t) {
2872
+ var s;
2873
+ let r = nl(e);
2874
+ if (!r) return false;
2875
+ let n = (s = e.typeParameters) == null ? void 0 : s.params;
2876
+ if (n) {
2877
+ if (n.length > 1) return false;
2878
+ if (n.length === 1) {
2879
+ let u = n[0];
2880
+ if (u.constraint || u.default) return false;
2881
+ }
2882
+ }
2883
+ return z(e).length === 1 && (Me(r) || re(t));
2884
+ }
2885
+ function sl(e) {
2886
+ return e.match((t) => t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement", (t, r) => {
2887
+ if (t.type === "CallExpression" && r === "arguments" && t.arguments.length === 1 && t.callee.type === "CallExpression") {
2888
+ let n = t.callee.callee;
2889
+ return n.type === "Identifier" || n.type === "MemberExpression" && !n.computed && n.object.type === "Identifier" && n.property.type === "Identifier";
2890
+ }
2891
+ return false;
2892
+ }, (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);
2893
+ }
2894
+ function Ji(e) {
2895
+ let t = z(e);
2896
+ return t.length > 1 && t.some((r) => r.type === "TSParameterProperty");
2897
+ }
2898
+ var ul = R(["VoidTypeAnnotation", "TSVoidKeyword", "NullLiteralTypeAnnotation", "TSNullKeyword"]);
2899
+ var il = R(["ObjectTypeAnnotation", "TSTypeLiteral", "GenericTypeAnnotation", "TSTypeReference"]);
2900
+ function al(e) {
2901
+ let { types: t } = e;
2902
+ if (t.some((n) => T(n))) return false;
2903
+ let r = t.find((n) => il(n));
2904
+ return r ? t.every((n) => n === r || ul(n)) : false;
2905
+ }
2906
+ function ds(e) {
2907
+ return Jt(e) || Me(e) ? true : Xe(e) ? al(e) : false;
2908
+ }
2909
+ function qi(e, t, r) {
2910
+ let n = t.semi ? ";" : "", { node: s } = e, u = [K(e), "opaque type ", r("id"), r("typeParameters")];
2911
+ return s.supertype && u.push(": ", r("supertype")), s.impltype && u.push(" = ", r("impltype")), u.push(n), u;
2912
+ }
2913
+ function zr(e, t, r) {
2914
+ let n = t.semi ? ";" : "", { node: s } = e, u = [K(e)];
2915
+ u.push("type ", r("id"), r("typeParameters"));
2916
+ let i = s.type === "TSTypeAliasDeclaration" ? "typeAnnotation" : "right";
2917
+ return [xt(e, t, r, u, " =", i), n];
2918
+ }
2919
+ function Zr(e, t, r) {
2920
+ let n = false;
2921
+ return l(e.map(({ isFirst: s, previous: u, node: i, index: a }) => {
2922
+ let o = r();
2923
+ if (s) return o;
2924
+ let p = Me(i), y = Me(u);
2925
+ return y && p ? [" & ", n ? f(o) : o] : !y && !p ? t.experimentalOperatorPosition === "start" ? f([x, "& ", o]) : f([" &", x, o]) : (a > 1 && (n = true), [" & ", a > 1 ? f(o) : o]);
2926
+ }, "types"));
2927
+ }
2928
+ function en(e, t, r) {
2929
+ let { node: n } = e, { parent: s } = e, u = s.type !== "TypeParameterInstantiation" && (s.type !== "TSConditionalType" || !t.experimentalTernaries) && (s.type !== "ConditionalTypeAnnotation" || !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") && Le(t.originalText, n)), i = ds(n), a = e.map((y) => {
2930
+ let D = r();
2931
+ return i || (D = Be(2, D)), ye(y, D, t);
2932
+ }, "types");
2933
+ if (i) return b(" | ", a);
2934
+ let o = u && !Le(t.originalText, n), p = [B([o ? x : "", "| "]), b([x, "| "], a)];
2935
+ return ke(e, t) ? l([f(p), E]) : (s.type === "TupleTypeAnnotation" || s.type === "TSTupleType") && s[s.type === "TupleTypeAnnotation" && s.types ? "types" : "elementTypes"].length > 1 ? l([f([B(["(", E]), p]), E, B(")")]) : l(u ? f(p) : p);
2936
+ }
2937
+ function ol(e) {
2938
+ var n;
2939
+ let { node: t, parent: r } = e;
2940
+ return t.type === "FunctionTypeAnnotation" && (Lr(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"));
2941
+ }
2942
+ function tn(e, t, r) {
2943
+ let { node: n } = e, s = [Xt(e)];
2944
+ (n.type === "TSConstructorType" || n.type === "TSConstructSignatureDeclaration") && s.push("new ");
2945
+ let u = Ge(e, r, t, false, true), i = [];
2946
+ return n.type === "FunctionTypeAnnotation" ? i.push(ol(e) ? " => " : ": ", r("returnType")) : i.push(H(e, r, n.returnType ? "returnType" : "typeAnnotation")), at(n, i) && (u = l(u)), s.push(u, i), l(s);
2947
+ }
2948
+ function rn(e, t, r) {
2949
+ return [r("objectType"), $(e), "[", r("indexType"), "]"];
2950
+ }
2951
+ function nn(e, t, r) {
2952
+ return ["infer ", r("typeParameter")];
2953
+ }
2954
+ function xs(e, t, r) {
2955
+ let { node: n } = e;
2956
+ return [n.postfix ? "" : r, H(e, t), n.postfix ? r : ""];
2957
+ }
2958
+ function sn(e, t, r) {
2959
+ let { node: n } = e;
2960
+ return ["...", ...n.type === "TupleTypeSpreadElement" && n.label ? [r("label"), ": "] : [], r("typeAnnotation")];
2961
+ }
2962
+ function un(e, t, r) {
2963
+ let { node: n } = e;
2964
+ return [n.variance ? r("variance") : "", r("label"), n.optional ? "?" : "", ": ", r("elementType")];
2965
+ }
2966
+ var pl = /* @__PURE__ */ new WeakSet();
2967
+ function H(e, t, r = "typeAnnotation") {
2968
+ let { node: { [r]: n } } = e;
2969
+ if (!n) return "";
2970
+ let s = false;
2971
+ if (n.type === "TSTypeAnnotation" || n.type === "TypeAnnotation") {
2972
+ let u = e.call(Wi, r);
2973
+ (u === "=>" || u === ":" && T(n, h.Leading)) && (s = true), pl.add(n);
2974
+ }
2975
+ return s ? [" ", t(r)] : t(r);
2976
+ }
2977
+ var Wi = (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) ? "" : ":";
2978
+ function an(e, t, r) {
2979
+ let n = Wi(e);
2980
+ return n ? [n, " ", r("typeAnnotation")] : r("typeAnnotation");
2981
+ }
2982
+ function on(e) {
2983
+ return [e("elementType"), "[]"];
2984
+ }
2985
+ function pn({ node: e }, t) {
2986
+ let r = e.type === "TSTypeQuery" ? "exprName" : "argument", n = e.type === "TypeofTypeAnnotation" || e.typeArguments ? "typeArguments" : "typeParameters";
2987
+ return ["typeof ", t(r), t(n)];
2988
+ }
2989
+ function cn(e, t) {
2990
+ let { node: r } = e;
2991
+ return [r.type === "TSTypePredicate" && r.asserts ? "asserts " : r.type === "TypePredicate" && r.kind ? `${r.kind} ` : "", t("parameterName"), r.typeAnnotation ? [" is ", H(e, t)] : ""];
2992
+ }
2993
+ function $(e) {
2994
+ let { node: t } = e;
2995
+ return !t.optional || t.type === "Identifier" && t === e.parent.key ? "" : L(t) || W(t) && t.computed || t.type === "OptionalIndexedAccessType" ? "?." : "?";
2996
+ }
2997
+ function ln(e) {
2998
+ return e.node.definite || e.match(void 0, (t, r) => r === "id" && t.type === "VariableDeclarator" && t.definite) ? "!" : "";
2999
+ }
3000
+ var cl = /* @__PURE__ */ new Set(["DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "DeclareVariable", "DeclareExportDeclaration", "DeclareExportAllDeclaration", "DeclareOpaqueType", "DeclareTypeAlias", "DeclareEnum", "DeclareInterface"]);
3001
+ function K(e) {
3002
+ let { node: t } = e;
3003
+ return t.declare || cl.has(t.type) && e.parent.type !== "DeclareExportDeclaration" ? "declare " : "";
3004
+ }
3005
+ var ll = /* @__PURE__ */ new Set(["TSAbstractMethodDefinition", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
3006
+ function Xt({ node: e }) {
3007
+ return e.abstract || ll.has(e.type) ? "abstract " : "";
3008
+ }
3009
+ function et(e, t, r) {
3010
+ let n = e.node;
3011
+ return n.typeArguments ? r("typeArguments") : n.typeParameters ? r("typeParameters") : "";
3012
+ }
3013
+ function $r(e, t, r) {
3014
+ return ["::", r("callee")];
3015
+ }
3016
+ function Dt(e, t, r) {
3017
+ return e.type === "EmptyStatement" ? ";" : e.type === "BlockStatement" || r ? [" ", t] : f([x, t]);
3018
+ }
3019
+ function mn(e, t) {
3020
+ return ["...", t("argument"), H(e, t)];
3021
+ }
3022
+ function Ht(e) {
3023
+ return e.accessibility ? e.accessibility + " " : "";
3024
+ }
3025
+ function ml(e, t, r, n) {
3026
+ let { node: s } = e, u = s.inexact ? "..." : "";
3027
+ return T(s, h.Dangling) ? l([r, u, J(e, t, { indent: true }), E, n]) : [r, u, n];
3028
+ }
3029
+ function Vt(e, t, r) {
3030
+ let { node: n } = e, s = [], u = n.type === "TupleExpression" ? "#[" : "[", i = "]", a = n.type === "TupleTypeAnnotation" && n.types ? "types" : n.type === "TSTupleType" || n.type === "TupleTypeAnnotation" ? "elementTypes" : "elements", o = n[a];
3031
+ if (o.length === 0) s.push(ml(e, t, u, i));
3032
+ else {
3033
+ let p = M(false, o, -1), y = (p == null ? void 0 : p.type) !== "RestElement" && !n.inexact, D = p === null, m = Symbol("array"), C = !t.__inJestEach && o.length > 1 && o.every((d, S, g) => {
3034
+ let _ = d == null ? void 0 : d.type;
3035
+ if (!Y(d) && !se(d)) return false;
3036
+ let v = g[S + 1];
3037
+ if (v && _ !== v.type) return false;
3038
+ let j = Y(d) ? "elements" : "properties";
3039
+ return d[j] && d[j].length > 1;
3040
+ }), c = Fs(n, t), A = y ? D ? "," : oe(t) ? c ? B(",", "", { groupId: m }) : B(",") : "" : "";
3041
+ s.push(l([u, f([E, c ? Dl(e, t, r, A) : [yl(e, t, a, n.inexact, r), A], J(e, t)]), E, i], { shouldBreak: C, id: m }));
3042
+ }
3043
+ return s.push($(e), H(e, r)), s;
3044
+ }
3045
+ function Fs(e, t) {
3046
+ return Y(e) && e.elements.length > 1 && e.elements.every((r) => r && (Fe(r) || jn(r) && !T(r.argument)) && !T(r, h.Trailing | h.Line, (n) => !Z(t.originalText, q(n), { backwards: true })));
3047
+ }
3048
+ function Gi({ node: e }, { originalText: t }) {
3049
+ let r = (s) => Ot(t, _t(t, s)), n = (s) => t[s] === "," ? s : n(r(s + 1));
3050
+ return vt(t, n(k(e)));
3051
+ }
3052
+ function yl(e, t, r, n, s) {
3053
+ let u = [];
3054
+ return e.each(({ node: i, isLast: a }) => {
3055
+ u.push(i ? l(s()) : ""), (!a || n) && u.push([",", x, i && Gi(e, t) ? E : ""]);
3056
+ }, r), n && u.push("..."), u;
3057
+ }
3058
+ function Dl(e, t, r, n) {
3059
+ let s = [];
3060
+ return e.each(({ isLast: u, next: i }) => {
3061
+ s.push([r(), u ? n : ","]), u || s.push(Gi(e, t) ? [F, F] : T(i, h.Leading | h.Line) ? F : x);
3062
+ }, "elements"), Jr(s);
3063
+ }
3064
+ var fl = /^[\$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]*$/;
3065
+ var El = (e) => fl.test(e);
3066
+ var Ui = El;
3067
+ function Fl(e) {
3068
+ 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, "");
3069
+ }
3070
+ var ft = Fl;
3071
+ var yn = /* @__PURE__ */ new WeakMap();
3072
+ function Ni(e) {
3073
+ return /^(?:\d+|\d+\.\d+)$/u.test(e);
3074
+ }
3075
+ function Yi(e, t) {
3076
+ return t.parser === "json" || t.parser === "jsonc" || !te(e.key) || rt(fe(e.key), t).slice(1, -1) !== e.key.value ? false : !!(Ui(e.key.value) && !(t.parser === "babel-ts" && e.type === "ClassProperty" || t.parser === "typescript" && e.type === "PropertyDefinition") || Ni(e.key.value) && String(Number(e.key.value)) === e.key.value && e.type !== "ImportAttribute" && (t.parser === "babel" || t.parser === "acorn" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree"));
3077
+ }
3078
+ function Cl(e, t) {
3079
+ let { key: r } = e.node;
3080
+ return (r.type === "Identifier" || Fe(r) && Ni(ft(fe(r))) && String(r.value) === ft(fe(r)) && !(t.parser === "typescript" || t.parser === "babel-ts")) && (t.parser === "json" || t.parser === "jsonc" || t.quoteProps === "consistent" && yn.get(e.parent));
3081
+ }
3082
+ function Et(e, t, r) {
3083
+ let { node: n } = e;
3084
+ if (n.computed) return ["[", r("key"), "]"];
3085
+ let { parent: s } = e, { key: u } = n;
3086
+ if (t.quoteProps === "consistent" && !yn.has(s)) {
3087
+ let i = e.siblings.some((a) => !a.computed && te(a.key) && !Yi(a, t));
3088
+ yn.set(s, i);
3089
+ }
3090
+ if (Cl(e, t)) {
3091
+ let i = rt(JSON.stringify(u.type === "Identifier" ? u.name : u.value.toString()), t);
3092
+ return e.call((a) => ye(a, i, t), "key");
3093
+ }
3094
+ return Yi(n, t) && (t.quoteProps === "as-needed" || t.quoteProps === "consistent" && !yn.get(s)) ? e.call((i) => ye(i, /^\d/u.test(u.value) ? ft(u.value) : u.value, t), "key") : r("key");
3095
+ }
3096
+ function Dn(e, t, r) {
3097
+ let { node: n } = e;
3098
+ return n.shorthand ? r("value") : xt(e, t, r, Et(e, t, r), ":", "value");
3099
+ }
3100
+ var Al = ({ 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" && Pt(r));
3101
+ function fn(e, t, r, n) {
3102
+ if (Al(e)) return En(e, r, t);
3103
+ let { node: s } = e, u = false;
3104
+ if ((s.type === "FunctionDeclaration" || s.type === "FunctionExpression") && (n != null && n.expandLastArg)) {
3105
+ let { parent: y } = e;
3106
+ L(y) && (pe(y).length > 1 || z(s).every((D) => D.type === "Identifier" && !D.typeAnnotation)) && (u = true);
3107
+ }
3108
+ let i = [K(e), s.async ? "async " : "", `function${s.generator ? "*" : ""} `, s.id ? t("id") : ""], a = Ge(e, t, r, u), o = $t(e, t), p = at(s, o);
3109
+ return i.push(et(e, r, t), l([p ? l(a) : a, o]), s.body ? " " : "", t("body")), r.semi && (s.declare || !s.body) && i.push(";"), i;
3110
+ }
3111
+ function fr(e, t, r) {
3112
+ let { node: n } = e, { kind: s } = n, u = n.value || n, i = [];
3113
+ 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(Et(e, t, r), n.optional || n.key.optional ? "?" : "", n === u ? En(e, t, r) : r("value")), i;
3114
+ }
3115
+ function En(e, t, r) {
3116
+ let { node: n } = e, s = Ge(e, r, t), u = $t(e, r), i = Ji(n), a = at(n, u), o = [et(e, t, r), l([i ? l(s, { shouldBreak: true }) : a ? l(s) : s, u])];
3117
+ return n.body ? o.push(" ", r("body")) : o.push(t.semi ? ";" : ""), o;
3118
+ }
3119
+ function Tl(e) {
3120
+ let t = z(e);
3121
+ return t.length === 1 && !e.typeParameters && !T(e, h.Dangling) && t[0].type === "Identifier" && !t[0].typeAnnotation && !T(t[0]) && !t[0].optional && !e.predicate && !e.returnType;
3122
+ }
3123
+ function Fn(e, t) {
3124
+ if (t.arrowParens === "always") return false;
3125
+ if (t.arrowParens === "avoid") {
3126
+ let { node: r } = e;
3127
+ return Tl(r);
3128
+ }
3129
+ return false;
3130
+ }
3131
+ function $t(e, t) {
3132
+ let { node: r } = e, s = [H(e, t, "returnType")];
3133
+ return r.predicate && s.push(t("predicate")), s;
3134
+ }
3135
+ function Xi(e, t, r) {
3136
+ let { node: n } = e, s = t.semi ? ";" : "", u = [];
3137
+ if (n.argument) {
3138
+ let o = r("argument");
3139
+ dl(t, n.argument) ? o = ["(", f([F, o]), F, ")"] : (De(n.argument) || n.argument.type === "SequenceExpression" || t.experimentalTernaries && n.argument.type === "ConditionalExpression" && (n.argument.consequent.type === "ConditionalExpression" || n.argument.alternate.type === "ConditionalExpression")) && (o = l([B("("), f([E, o]), E, B(")")])), u.push(" ", o);
3140
+ }
3141
+ let i = T(n, h.Dangling), a = s && i && T(n, h.Last | h.Line);
3142
+ return a && u.push(s), i && u.push(" ", J(e, t)), a || u.push(s), u;
3143
+ }
3144
+ function Hi(e, t, r) {
3145
+ return ["return", Xi(e, t, r)];
3146
+ }
3147
+ function Vi(e, t, r) {
3148
+ return ["throw", Xi(e, t, r)];
3149
+ }
3150
+ function dl(e, t) {
3151
+ if (Le(e.originalText, t) || T(t, h.Leading, (r) => de(e.originalText, q(r), k(r))) && !X(t)) return true;
3152
+ if (Rt(t)) {
3153
+ let r = t, n;
3154
+ for (; n = ou(r); ) if (r = n, Le(e.originalText, r)) return true;
3155
+ }
3156
+ return false;
3157
+ }
3158
+ var hs = /* @__PURE__ */ new WeakMap();
3159
+ function $i(e) {
3160
+ return hs.has(e) || hs.set(e, e.type === "ConditionalExpression" && !ae(e, (t) => t.type === "ObjectExpression")), hs.get(e);
3161
+ }
3162
+ var Ki = (e) => e.type === "SequenceExpression";
3163
+ function Qi(e, t, r, n = {}) {
3164
+ let s = [], u, i = [], a = false, o = !n.expandLastArg && e.node.body.type === "ArrowFunctionExpression", p;
3165
+ (function S() {
3166
+ let { node: g } = e, _ = xl(e, t, r, n);
3167
+ if (s.length === 0) s.push(_);
3168
+ else {
3169
+ let { leading: v, trailing: j } = cs(e, t);
3170
+ s.push([v, _]), i.unshift(j);
3171
+ }
3172
+ o && (a || (a = g.returnType && z(g).length > 0 || g.typeParameters || z(g).some((v) => v.type !== "Identifier"))), !o || g.body.type !== "ArrowFunctionExpression" ? (u = r("body", n), p = g.body) : e.call(S, "body");
3173
+ })();
3174
+ let y = !Le(t.originalText, p) && (Ki(p) || hl(p, u, t) || !a && $i(p)), D = e.key === "callee" && lt(e.parent), m = Symbol("arrow-chain"), C = gl(e, n, { signatureDocs: s, shouldBreak: a }), c = false, A = false, d = false;
3175
+ return o && (D || n.assignmentLayout) && (A = true, d = !T(e.node, h.Leading & h.Line), c = n.assignmentLayout === "chain-tail-arrow-chain" || D && !y), u = Sl(e, t, n, { bodyDoc: u, bodyComments: i, functionBody: p, shouldPutBodyOnSameLine: y }), l([l(A ? f([d ? E : "", C]) : C, { shouldBreak: c, id: m }), " =>", o ? dt(u, { groupId: m }) : l(u), o && D ? B(E, "", { groupId: m }) : ""]);
3176
+ }
3177
+ function xl(e, t, r, n) {
3178
+ let { node: s } = e, u = [];
3179
+ if (s.async && u.push("async "), Fn(e, t)) u.push(r(["params", 0]));
3180
+ else {
3181
+ let a = n.expandLastArg || n.expandFirstArg, o = $t(e, r);
3182
+ if (a) {
3183
+ if (re(o)) throw new yt();
3184
+ o = l(or(o));
3185
+ }
3186
+ u.push(l([Ge(e, r, t, a, true), o]));
3187
+ }
3188
+ let i = J(e, t, { filter(a) {
3189
+ let o = ut(t.originalText, k(a));
3190
+ return o !== false && t.originalText.slice(o, o + 2) === "=>";
3191
+ } });
3192
+ return i && u.push(" ", i), u;
3193
+ }
3194
+ function hl(e, t, r) {
3195
+ var n, s;
3196
+ return Y(e) || se(e) || e.type === "ArrowFunctionExpression" || e.type === "DoExpression" || e.type === "BlockStatement" || X(e) || ((n = t.label) == null ? void 0 : n.hug) !== false && (((s = t.label) == null ? void 0 : s.embed) || wr(e, r.originalText));
3197
+ }
3198
+ function gl(e, t, { signatureDocs: r, shouldBreak: n }) {
3199
+ if (r.length === 1) return r[0];
3200
+ let { parent: s, key: u } = e;
3201
+ return u !== "callee" && lt(s) || De(s) ? l([r[0], " =>", f([x, b([" =>", x], r.slice(1))])], { shouldBreak: n }) : u === "callee" && lt(s) || t.assignmentLayout ? l(b([" =>", x], r), { shouldBreak: n }) : l(f(b([" =>", x], r)), { shouldBreak: n });
3202
+ }
3203
+ function Sl(e, t, r, { bodyDoc: n, bodyComments: s, functionBody: u, shouldPutBodyOnSameLine: i }) {
3204
+ let { node: a, parent: o } = e, p = r.expandLastArg && oe(t, "all") ? B(",") : "", y = (r.expandLastArg || o.type === "JSXExpressionContainer") && !T(a) ? E : "";
3205
+ return i && $i(u) ? [" ", l([B("", "("), f([E, n]), B("", ")"), p, y]), s] : (Ki(u) && (n = l(["(", f([E, n]), E, ")"])), i ? [" ", n, s] : [f([x, n, s]), p, y]);
3206
+ }
3207
+ var Bl = (e, t, r) => {
3208
+ if (!(e && t == null)) {
3209
+ if (t.findLast) return t.findLast(r);
3210
+ for (let n = t.length - 1; n >= 0; n--) {
3211
+ let s = t[n];
3212
+ if (r(s, n, t)) return s;
3213
+ }
3214
+ }
3215
+ };
3216
+ var zi = Bl;
3217
+ function Er(e, t, r, n) {
3218
+ let { node: s } = e, u = [], i = zi(false, s[n], (a) => a.type !== "EmptyStatement");
3219
+ return e.each(({ node: a }) => {
3220
+ a.type !== "EmptyStatement" && (u.push(r()), a !== i && (u.push(F), ce(a, t) && u.push(F)));
3221
+ }, n), u;
3222
+ }
3223
+ function Cn(e, t, r) {
3224
+ let n = bl(e, t, r), { node: s, parent: u } = e;
3225
+ if (s.type === "Program" && (u == null ? void 0 : u.type) !== "ModuleExpression") return n ? [n, F] : "";
3226
+ let i = [];
3227
+ if (s.type === "StaticBlock" && i.push("static "), i.push("{"), n) i.push(f([F, n]), F);
3228
+ else {
3229
+ let a = e.grandparent;
3230
+ 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);
3231
+ }
3232
+ return i.push("}"), i;
3233
+ }
3234
+ function bl(e, t, r) {
3235
+ let { node: n } = e, s = O(n.directives), u = n.body.some((o) => o.type !== "EmptyStatement"), i = T(n, h.Dangling);
3236
+ if (!s && !u && !i) return "";
3237
+ let a = [];
3238
+ return s && (a.push(Er(e, t, r, "directives")), (u || i) && (a.push(F), ce(M(false, n.directives, -1), t) && a.push(F))), u && a.push(Er(e, t, r, "body")), i && a.push(J(e, t)), a;
3239
+ }
3240
+ function Pl(e) {
3241
+ let t = /* @__PURE__ */ new WeakMap();
3242
+ return function(r) {
3243
+ return t.has(r) || t.set(r, Symbol(e)), t.get(r);
3244
+ };
3245
+ }
3246
+ var An = Pl;
3247
+ function kl(e) {
3248
+ switch (e) {
3249
+ case null:
3250
+ return "";
3251
+ case "PlusOptional":
3252
+ return "+?";
3253
+ case "MinusOptional":
3254
+ return "-?";
3255
+ case "Optional":
3256
+ return "?";
3257
+ }
3258
+ }
3259
+ function Zi(e, t, r) {
3260
+ let { node: n } = e;
3261
+ return l([n.variance ? r("variance") : "", "[", f([r("keyTparam"), " in ", r("sourceType")]), "]", kl(n.optional), ": ", r("propType")]);
3262
+ }
3263
+ function gs(e, t) {
3264
+ return e === "+" || e === "-" ? e + t : t;
3265
+ }
3266
+ function ea(e, t, r) {
3267
+ let { node: n } = e, s = t.objectWrap === "preserve" && de(t.originalText, q(n), q(n.typeParameter));
3268
+ return l(["{", f([t.bracketSpacing ? x : E, l([r("typeParameter"), n.optional ? gs(n.optional, "?") : "", n.typeAnnotation ? ": " : "", r("typeAnnotation")]), t.semi ? B(";") : ""]), J(e, t), t.bracketSpacing ? x : E, "}"], { shouldBreak: s });
3269
+ }
3270
+ var Fr = An("typeParameters");
3271
+ function Il(e, t, r) {
3272
+ let { node: n } = e;
3273
+ return z(n).length === 1 && n.type.startsWith("TS") && !n[r][0].constraint && e.parent.type === "ArrowFunctionExpression" && !(t.filepath && /\.ts$/u.test(t.filepath));
3274
+ }
3275
+ function wt(e, t, r, n) {
3276
+ let { node: s } = e;
3277
+ if (!s[n]) return "";
3278
+ if (!Array.isArray(s[n])) return r(n);
3279
+ let u = kt(e.grandparent), i = e.match((p) => !(p[n].length === 1 && Me(p[n][0])), void 0, (p, y) => y === "typeAnnotation", (p) => p.type === "Identifier", As);
3280
+ if (s[n].length === 0 || !i && (u || s[n].length === 1 && (s[n][0].type === "NullableTypeAnnotation" || ds(s[n][0])))) return ["<", b(", ", e.map(r, n)), Ll(e, t), ">"];
3281
+ let o = s.type === "TSTypeParameterInstantiation" ? "" : Il(e, t, n) ? "," : oe(t) ? B(",") : "";
3282
+ return l(["<", f([E, b([",", x], e.map(r, n))]), o, E, ">"], { id: Fr(s) });
3283
+ }
3284
+ function Ll(e, t) {
3285
+ let { node: r } = e;
3286
+ if (!T(r, h.Dangling)) return "";
3287
+ let n = !T(r, h.Line), s = J(e, t, { indent: !n });
3288
+ return n ? s : [s, F];
3289
+ }
3290
+ function Tn(e, t, r) {
3291
+ let { node: n, parent: s } = e, u = [n.const ? "const " : ""], i = n.type === "TSTypeParameter" ? r("name") : n.name;
3292
+ if (s.type === "TSMappedType") return s.readonly && u.push(gs(s.readonly, "readonly"), " "), u.push("[", i), n.constraint && u.push(" in ", r("constraint")), s.nameType && u.push(" as ", e.callParent(() => r("nameType"))), u.push("]"), u;
3293
+ if (n.variance && u.push(r("variance")), n.in && u.push("in "), n.out && u.push("out "), u.push(i), n.bound && (n.usesExtendsBound && u.push(" extends "), u.push(H(e, r, "bound"))), n.constraint) {
3294
+ let a = Symbol("constraint");
3295
+ u.push(" extends", l(f(x), { id: a }), ve, dt(r("constraint"), { groupId: a }));
3296
+ }
3297
+ return n.default && u.push(" = ", r("default")), l(u);
3298
+ }
3299
+ var ta = R(["ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
3300
+ function dn(e, t, r) {
3301
+ let { node: n } = e, s = [K(e), Xt(e), "class"], u = T(n.id, h.Trailing) || T(n.typeParameters, h.Trailing) || T(n.superClass) || O(n.extends) || O(n.mixins) || O(n.implements), i = [], a = [];
3302
+ if (n.id && i.push(" ", r("id")), i.push(r("typeParameters")), n.superClass) {
3303
+ let y = [Ol(e, t, r), r(n.superTypeArguments ? "superTypeArguments" : "superTypeParameters")], D = e.call((m) => ["extends ", ye(m, y, t)], "superClass");
3304
+ u ? a.push(x, l(D)) : a.push(" ", D);
3305
+ } else a.push(Ss(e, t, r, "extends"));
3306
+ a.push(Ss(e, t, r, "mixins"), Ss(e, t, r, "implements"));
3307
+ let o;
3308
+ if (u) {
3309
+ let y;
3310
+ sa(n) ? y = [...i, f(a)] : y = f([...i, a]), o = ra(n), s.push(l(y, { id: o }));
3311
+ } else s.push(...i, ...a);
3312
+ let p = n.body;
3313
+ return u && O(p.body) ? s.push(B(F, " ", { groupId: o })) : s.push(" "), s.push(r("body")), s;
3314
+ }
3315
+ var ra = An("heritageGroup");
3316
+ function na(e) {
3317
+ return B(F, "", { groupId: ra(e) });
3318
+ }
3319
+ function wl(e) {
3320
+ return ["extends", "mixins", "implements"].reduce((t, r) => t + (Array.isArray(e[r]) ? e[r].length : 0), e.superClass ? 1 : 0) > 1;
3321
+ }
3322
+ function sa(e) {
3323
+ return e.typeParameters && !T(e.typeParameters, h.Trailing | h.Line) && !wl(e);
3324
+ }
3325
+ function Ss(e, t, r, n) {
3326
+ let { node: s } = e;
3327
+ if (!O(s[n])) return "";
3328
+ let u = J(e, t, { marker: n });
3329
+ return [sa(s) ? B(" ", x, { groupId: Fr(s.typeParameters) }) : x, u, u && F, n, l(f([x, b([",", x], e.map(r, n))]))];
3330
+ }
3331
+ function Ol(e, t, r) {
3332
+ let n = r("superClass"), { parent: s } = e;
3333
+ return s.type === "AssignmentExpression" ? l(B(["(", f([E, n]), E, ")"], n)) : n;
3334
+ }
3335
+ function xn(e, t, r) {
3336
+ let { node: n } = e, s = [];
3337
+ return O(n.decorators) && s.push(Es(e, t, r)), s.push(Ht(n)), n.static && s.push("static "), s.push(Xt(e)), n.override && s.push("override "), s.push(fr(e, t, r)), s;
3338
+ }
3339
+ function hn(e, t, r) {
3340
+ let { node: n } = e, s = [], u = t.semi ? ";" : "";
3341
+ O(n.decorators) && s.push(Es(e, t, r)), s.push(K(e), Ht(n)), n.static && s.push("static "), s.push(Xt(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(Et(e, t, r), $(e), ln(e), H(e, r));
3342
+ let i = n.type === "TSAbstractPropertyDefinition" || n.type === "TSAbstractAccessorProperty";
3343
+ return [xt(e, t, r, s, " =", i ? void 0 : "value"), u];
3344
+ }
3345
+ function ua(e, t, r) {
3346
+ let { node: n } = e, s = [];
3347
+ return e.each(({ node: u, next: i, isLast: a }) => {
3348
+ s.push(r()), !t.semi && ta(u) && _l(u, i) && s.push(";"), a || (s.push(F), ce(u, t) && s.push(F));
3349
+ }, "body"), T(n, h.Dangling) && s.push(J(e, t)), ["{", s.length > 0 ? [f([F, s]), F] : "", "}"];
3350
+ }
3351
+ function _l(e, t) {
3352
+ var s;
3353
+ let { type: r, name: n } = e.key;
3354
+ if (!e.computed && r === "Identifier" && (n === "static" || n === "get" || n === "set") && !e.value && !e.typeAnnotation) return true;
3355
+ if (!t || t.static || t.accessibility || t.readonly) return false;
3356
+ if (!t.computed) {
3357
+ let u = (s = t.key) == null ? void 0 : s.name;
3358
+ if (u === "in" || u === "instanceof") return true;
3359
+ }
3360
+ if (ta(t) && t.variance && !t.static && !t.declare) return true;
3361
+ switch (t.type) {
3362
+ case "ClassProperty":
3363
+ case "PropertyDefinition":
3364
+ case "TSAbstractPropertyDefinition":
3365
+ return t.computed;
3366
+ case "MethodDefinition":
3367
+ case "TSAbstractMethodDefinition":
3368
+ case "ClassMethod":
3369
+ case "ClassPrivateMethod": {
3370
+ if ((t.value ? t.value.async : t.async) || t.kind === "get" || t.kind === "set") return false;
3371
+ let i = t.value ? t.value.generator : t.generator;
3372
+ return !!(t.computed || i);
3373
+ }
3374
+ case "TSIndexSignature":
3375
+ return true;
3376
+ }
3377
+ return false;
3378
+ }
3379
+ var vl = R(["TSAsExpression", "TSTypeAssertion", "TSNonNullExpression", "TSInstantiationExpression", "TSSatisfiesExpression"]);
3380
+ function Bs(e) {
3381
+ return vl(e) ? Bs(e.expression) : e;
3382
+ }
3383
+ var ia = R(["FunctionExpression", "ArrowFunctionExpression"]);
3384
+ function aa(e) {
3385
+ return e.type === "MemberExpression" || e.type === "OptionalMemberExpression" || e.type === "Identifier" && e.name !== "undefined";
3386
+ }
3387
+ function oa(e, t) {
3388
+ if (t.semi || bs(e, t) || Ps(e, t)) return false;
3389
+ let { node: r, key: n, parent: s } = e;
3390
+ 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(() => pa(e, t), "expression"));
3391
+ }
3392
+ function pa(e, t) {
3393
+ let { node: r } = e;
3394
+ switch (r.type) {
3395
+ case "ParenthesizedExpression":
3396
+ case "TypeCastExpression":
3397
+ case "ArrayExpression":
3398
+ case "ArrayPattern":
3399
+ case "TemplateLiteral":
3400
+ case "TemplateElement":
3401
+ case "RegExpLiteral":
3402
+ return true;
3403
+ case "ArrowFunctionExpression":
3404
+ if (!Fn(e, t)) return true;
3405
+ break;
3406
+ case "UnaryExpression": {
3407
+ let { prefix: n, operator: s } = r;
3408
+ if (n && (s === "+" || s === "-")) return true;
3409
+ break;
3410
+ }
3411
+ case "BindExpression":
3412
+ if (!r.object) return true;
3413
+ break;
3414
+ case "Literal":
3415
+ if (r.regex) return true;
3416
+ break;
3417
+ default:
3418
+ if (X(r)) return true;
3419
+ }
3420
+ return ke(e, t) ? true : Rt(r) ? e.call(() => pa(e, t), ...kr(r)) : false;
3421
+ }
3422
+ function bs({ node: e, parent: t }, r) {
3423
+ return (r.parentParser === "markdown" || r.parentParser === "mdx") && e.type === "ExpressionStatement" && X(e.expression) && t.type === "Program" && t.body.length === 1;
3424
+ }
3425
+ function Ps({ node: e, parent: t }, r) {
3426
+ return (r.parser === "__vue_event_binding" || r.parser === "__vue_ts_event_binding") && e.type === "ExpressionStatement" && t.type === "Program" && t.body.length === 1;
3427
+ }
3428
+ function ca(e, t, r) {
3429
+ let n = [r("expression")];
3430
+ if (Ps(e, t)) {
3431
+ let s = Bs(e.node.expression);
3432
+ (ia(s) || aa(s)) && n.push(";");
3433
+ } else bs(e, t) || t.semi && n.push(";");
3434
+ return n;
3435
+ }
3436
+ function la(e, t, r) {
3437
+ if (t.__isVueBindings || t.__isVueForBindingLeft) {
3438
+ let n = e.map(r, "program", "body", 0, "params");
3439
+ if (n.length === 1) return n[0];
3440
+ let s = b([",", x], n);
3441
+ return t.__isVueForBindingLeft ? ["(", f([E, l(s)]), E, ")"] : s;
3442
+ }
3443
+ if (t.__isEmbeddedTypescriptGenericParameters) {
3444
+ let n = e.map(r, "program", "body", 0, "typeParameters", "params");
3445
+ return b([",", x], n);
3446
+ }
3447
+ }
3448
+ function Da(e, t) {
3449
+ let { node: r } = e;
3450
+ switch (r.type) {
3451
+ case "RegExpLiteral":
3452
+ return ma(r);
3453
+ case "BigIntLiteral":
3454
+ return gn(r.extra.raw);
3455
+ case "NumericLiteral":
3456
+ return ft(r.extra.raw);
3457
+ case "StringLiteral":
3458
+ return _e(rt(r.extra.raw, t));
3459
+ case "NullLiteral":
3460
+ return "null";
3461
+ case "BooleanLiteral":
3462
+ return String(r.value);
3463
+ case "DirectiveLiteral":
3464
+ return ya(r.extra.raw, t);
3465
+ case "Literal": {
3466
+ if (r.regex) return ma(r.regex);
3467
+ if (r.bigint) return gn(r.raw);
3468
+ let { value: n } = r;
3469
+ return typeof n == "number" ? ft(r.raw) : typeof n == "string" ? jl(e) ? ya(r.raw, t) : _e(rt(r.raw, t)) : String(n);
3470
+ }
3471
+ }
3472
+ }
3473
+ function jl(e) {
3474
+ if (e.key !== "expression") return;
3475
+ let { parent: t } = e;
3476
+ return t.type === "ExpressionStatement" && t.directive;
3477
+ }
3478
+ function gn(e) {
3479
+ return e.toLowerCase();
3480
+ }
3481
+ function ma({ pattern: e, flags: t }) {
3482
+ return t = [...t].sort().join(""), `/${e}/${t}`;
3483
+ }
3484
+ function ya(e, t) {
3485
+ let r = e.slice(1, -1);
3486
+ if (r.includes('"') || r.includes("'")) return e;
3487
+ let n = t.singleQuote ? "'" : '"';
3488
+ return n + r + n;
3489
+ }
3490
+ function Ml(e, t, r) {
3491
+ let n = e.originalText.slice(t, r);
3492
+ for (let s of e[Symbol.for("comments")]) {
3493
+ let u = q(s);
3494
+ if (u > r) break;
3495
+ let i = k(s);
3496
+ if (i < t) continue;
3497
+ let a = i - u;
3498
+ n = n.slice(0, u - t) + " ".repeat(a) + n.slice(i - t);
3499
+ }
3500
+ return n;
3501
+ }
3502
+ var ks = Ml;
3503
+ function fa(e, t, r) {
3504
+ let { node: n } = e;
3505
+ return ["import", n.phase ? ` ${n.phase}` : "", Ls(n), Ca(e, t, r), Fa(e, t, r), Ta(e, t, r), t.semi ? ";" : ""];
3506
+ }
3507
+ var Ea = (e) => e.type === "ExportDefaultDeclaration" || e.type === "DeclareExportDeclaration" && e.default;
3508
+ function Sn(e, t, r) {
3509
+ let { node: n } = e, s = [gi(e, t, r), K(e), "export", Ea(n) ? " default" : ""], { declaration: u, exported: i } = n;
3510
+ return T(n, h.Dangling) && (s.push(" ", J(e, t)), Or(n) && s.push(F)), u ? s.push(" ", r("declaration")) : (s.push(ql(n)), n.type === "ExportAllDeclaration" || n.type === "DeclareExportAllDeclaration" ? (s.push(" *"), i && s.push(" as ", r("exported"))) : s.push(Ca(e, t, r)), s.push(Fa(e, t, r), Ta(e, t, r))), s.push(Jl(n, t)), s;
3511
+ }
3512
+ var Rl = R(["ClassDeclaration", "ComponentDeclaration", "FunctionDeclaration", "TSInterfaceDeclaration", "DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "HookDeclaration", "TSDeclareFunction", "EnumDeclaration"]);
3513
+ function Jl(e, t) {
3514
+ return t.semi && (!e.declaration || Ea(e) && !Rl(e.declaration)) ? ";" : "";
3515
+ }
3516
+ function Is(e, t = true) {
3517
+ return e && e !== "value" ? `${t ? " " : ""}${e}${t ? "" : " "}` : "";
3518
+ }
3519
+ function Ls(e, t) {
3520
+ return Is(e.importKind, t);
3521
+ }
3522
+ function ql(e) {
3523
+ return Is(e.exportKind);
3524
+ }
3525
+ function Fa(e, t, r) {
3526
+ let { node: n } = e;
3527
+ if (!n.source) return "";
3528
+ let s = [];
3529
+ return Aa(n, t) && s.push(" from"), s.push(" ", r("source")), s;
3530
+ }
3531
+ function Ca(e, t, r) {
3532
+ let { node: n } = e;
3533
+ if (!Aa(n, t)) return "";
3534
+ let s = [" "];
3535
+ if (O(n.specifiers)) {
3536
+ let u = [], i = [];
3537
+ e.each(() => {
3538
+ let a = e.node.type;
3539
+ if (a === "ExportNamespaceSpecifier" || a === "ExportDefaultSpecifier" || a === "ImportNamespaceSpecifier" || a === "ImportDefaultSpecifier") u.push(r());
3540
+ else if (a === "ExportSpecifier" || a === "ImportSpecifier") i.push(r());
3541
+ else throw new qe(n, "specifier");
3542
+ }, "specifiers"), s.push(b(", ", u)), i.length > 0 && (u.length > 0 && s.push(", "), i.length > 1 || u.length > 0 || n.specifiers.some((o) => T(o)) ? s.push(l(["{", f([t.bracketSpacing ? x : E, b([",", x], i)]), B(oe(t) ? "," : ""), t.bracketSpacing ? x : E, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...i, t.bracketSpacing ? " " : "", "}"]));
3543
+ } else s.push("{}");
3544
+ return s;
3545
+ }
3546
+ function Aa(e, t) {
3547
+ return e.type !== "ImportDeclaration" || O(e.specifiers) || e.importKind === "type" ? true : ks(t, q(e), q(e.source)).trimEnd().endsWith("from");
3548
+ }
3549
+ function Wl(e, t) {
3550
+ var n, s;
3551
+ if ((n = e.extra) != null && n.deprecatedAssertSyntax) return "assert";
3552
+ let r = ks(t, k(e.source), (s = e.attributes) != null && s[0] ? q(e.attributes[0]) : k(e)).trimStart();
3553
+ return r.startsWith("assert") ? "assert" : r.startsWith("with") || O(e.attributes) ? "with" : void 0;
3554
+ }
3555
+ function Ta(e, t, r) {
3556
+ let { node: n } = e;
3557
+ if (!n.source) return "";
3558
+ let s = Wl(n, t);
3559
+ if (!s) return "";
3560
+ let u = [` ${s} {`];
3561
+ return O(n.attributes) && (t.bracketSpacing && u.push(" "), u.push(b(", ", e.map(r, "attributes"))), t.bracketSpacing && u.push(" ")), u.push("}"), u;
3562
+ }
3563
+ function da(e, t, r) {
3564
+ 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], y = "", D = "";
3565
+ return s === "ExportNamespaceSpecifier" || s === "ImportNamespaceSpecifier" ? y = "*" : o && (y = r(i)), p && !Gl(n) && (D = r(a)), [Is(s === "ImportSpecifier" ? n.importKind : n.exportKind, false), y, y && D ? " as " : "", D];
3566
+ }
3567
+ function Gl(e) {
3568
+ if (e.type !== "ImportSpecifier" && e.type !== "ExportSpecifier") return false;
3569
+ let { local: t, [e.type === "ImportSpecifier" ? "imported" : "exported"]: r } = e;
3570
+ if (t.type !== r.type || !nu(t, r)) return false;
3571
+ if (te(t)) return t.value === r.value && fe(t) === fe(r);
3572
+ switch (t.type) {
3573
+ case "Identifier":
3574
+ return t.name === r.name;
3575
+ default:
3576
+ return false;
3577
+ }
3578
+ }
3579
+ function ht(e, t, r) {
3580
+ var j;
3581
+ let n = t.semi ? ";" : "", { node: s } = e, u = s.type === "ObjectTypeAnnotation", i = s.type === "TSEnumDeclaration" || 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"];
3582
+ u && a.push("indexers", "callProperties", "internalSlots");
3583
+ let o = a.flatMap((I) => e.map(({ node: U }) => ({ node: U, printed: r(), loc: q(U) }), I));
3584
+ a.length > 1 && o.sort((I, U) => I.loc - U.loc);
3585
+ let { parent: p, key: y } = e, D = u && y === "body" && (p.type === "InterfaceDeclaration" || p.type === "DeclareInterface" || p.type === "DeclareClass"), m = s.type === "TSInterfaceBody" || i || D || 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 && de(t.originalText, q(s), o[0].loc), C = D ? ";" : s.type === "TSInterfaceBody" || s.type === "TSTypeLiteral" ? B(n, ";") : ",", c = s.type === "RecordExpression" ? "#{" : s.exact ? "{|" : "{", A = s.exact ? "|}" : "}", d = [], S = o.map((I) => {
3586
+ let U = [...d, l(I.printed)];
3587
+ return d = [C, x], (I.node.type === "TSPropertySignature" || I.node.type === "TSMethodSignature" || I.node.type === "TSConstructSignatureDeclaration" || I.node.type === "TSCallSignatureDeclaration") && T(I.node, h.PrettierIgnore) && d.shift(), ce(I.node, t) && d.push(F), U;
3588
+ });
3589
+ if (s.inexact || s.hasUnknownMembers) {
3590
+ let I;
3591
+ if (T(s, h.Dangling)) {
3592
+ let U = T(s, h.Line);
3593
+ I = [J(e, t), U || Z(t.originalText, k(M(false, ct(s), -1))) ? F : x, "..."];
3594
+ } else I = ["..."];
3595
+ S.push([...d, ...I]);
3596
+ }
3597
+ let g = (j = M(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") && T(g, h.PrettierIgnore))), v;
3598
+ if (S.length === 0) {
3599
+ if (!T(s, h.Dangling)) return [c, A, H(e, r)];
3600
+ v = l([c, J(e, t, { indent: true }), E, A, $(e), H(e, r)]);
3601
+ } else v = [D && O(s.properties) ? na(p) : "", c, f([t.bracketSpacing ? x : E, ...S]), B(_ && (C !== "," || oe(t)) ? C : ""), t.bracketSpacing ? x : E, A, $(e), H(e, r)];
3602
+ return e.match((I) => I.type === "ObjectPattern" && !O(I.decorators), ws) || Me(s) && (e.match(void 0, (I, U) => U === "typeAnnotation", (I, U) => U === "typeAnnotation", ws) || e.match(void 0, (I, U) => I.type === "FunctionTypeParam" && U === "typeAnnotation", ws)) || !m && e.match((I) => I.type === "ObjectPattern", (I) => I.type === "AssignmentExpression" || I.type === "VariableDeclarator") ? v : l(v, { shouldBreak: m });
3603
+ }
3604
+ function ws(e, t) {
3605
+ return (t === "params" || t === "parameters" || t === "this" || t === "rest") && Ts(e);
3606
+ }
3607
+ function Ul(e) {
3608
+ let t = [e];
3609
+ for (let r = 0; r < t.length; r++) {
3610
+ let n = t[r];
3611
+ for (let s of ["test", "consequent", "alternate"]) {
3612
+ let u = n[s];
3613
+ if (X(u)) return true;
3614
+ u.type === "ConditionalExpression" && t.push(u);
3615
+ }
3616
+ }
3617
+ return false;
3618
+ }
3619
+ function Yl(e, t, r) {
3620
+ let { node: n } = e, s = n.type === "ConditionalExpression", u = s ? "alternate" : "falseType", { parent: i } = e, a = s ? r("test") : [r("checkType"), " ", "extends", " ", r("extendsType")];
3621
+ return i.type === n.type && i[u] === n ? Be(2, a) : a;
3622
+ }
3623
+ var Nl = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3624
+ function Xl(e) {
3625
+ let { node: t } = e;
3626
+ if (t.type !== "ConditionalExpression") return false;
3627
+ let r, n = t;
3628
+ for (let s = 0; !r; s++) {
3629
+ let u = e.getParentNode(s);
3630
+ if (u.type === "ChainExpression" && u.expression === n || L(u) && u.callee === n || W(u) && u.object === n || u.type === "TSNonNullExpression" && u.expression === n) {
3631
+ n = u;
3632
+ continue;
3633
+ }
3634
+ u.type === "NewExpression" && u.callee === n || Ae(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
3635
+ }
3636
+ return n === t ? false : r[Nl.get(r.type)] === n;
3637
+ }
3638
+ function xa(e, t, r) {
3639
+ 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], y = [], D = false, { parent: m } = e, C = m.type === n.type && a.some((G) => m[G] === n), c = m.type === n.type && !C, A, d, S = 0;
3640
+ do
3641
+ d = A || n, A = e.getParentNode(S), S++;
3642
+ while (A && A.type === n.type && a.every((G) => A[G] !== d));
3643
+ let g = A || m, _ = d;
3644
+ if (s && (X(n[a[0]]) || X(o) || X(p) || Ul(_))) {
3645
+ D = true, c = true;
3646
+ let G = (Q) => [B("("), f([E, Q]), E, B(")")], ue = (Q) => Q.type === "NullLiteral" || Q.type === "Literal" && Q.value === null || Q.type === "Identifier" && Q.name === "undefined";
3647
+ y.push(" ? ", ue(o) ? r(u) : G(r(u)), " : ", p.type === n.type || ue(p) ? r(i) : G(r(i)));
3648
+ } else {
3649
+ let G = (Q) => t.useTabs ? f(r(Q)) : Be(2, r(Q)), ue = [x, "? ", o.type === n.type ? B("", "(") : "", G(u), o.type === n.type ? B("", ")") : "", x, ": ", G(i)];
3650
+ y.push(m.type !== n.type || m[i] === n || C ? ue : t.useTabs ? Rr(f(ue)) : Be(Math.max(0, t.tabWidth - 2), ue));
3651
+ }
3652
+ let v = [u, i, ...a].some((G) => T(n[G], (ue) => ee(ue) && de(t.originalText, q(ue), k(ue)))), j = (G) => m === g ? l(G, { shouldBreak: v }) : v ? [G, Ee] : G, I = !D && (W(m) || m.type === "NGPipeExpression" && m.left === n) && !m.computed, U = Xl(e), P = j([Yl(e, t, r), c ? y : f(y), s && I && !U ? E : ""]);
3653
+ return C || U ? l([f([E, P]), E]) : P;
3654
+ }
3655
+ function Hl(e, t) {
3656
+ return (W(t) || t.type === "NGPipeExpression" && t.left === e) && !t.computed;
3657
+ }
3658
+ function Vl(e, t, r, n) {
3659
+ return [...e.map((u) => ct(u)), ct(t), ct(r)].flat().some((u) => ee(u) && de(n.originalText, q(u), k(u)));
3660
+ }
3661
+ var $l = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3662
+ function Kl(e) {
3663
+ let { node: t } = e;
3664
+ if (t.type !== "ConditionalExpression") return false;
3665
+ let r, n = t;
3666
+ for (let s = 0; !r; s++) {
3667
+ let u = e.getParentNode(s);
3668
+ if (u.type === "ChainExpression" && u.expression === n || L(u) && u.callee === n || W(u) && u.object === n || u.type === "TSNonNullExpression" && u.expression === n) {
3669
+ n = u;
3670
+ continue;
3671
+ }
3672
+ u.type === "NewExpression" && u.callee === n || Ae(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
3673
+ }
3674
+ return n === t ? false : r[$l.get(r.type)] === n;
3675
+ }
3676
+ var Os = (e) => [B("("), f([E, e]), E, B(")")];
3677
+ function Kt(e, t, r, n) {
3678
+ if (!t.experimentalTernaries) return xa(e, t, r);
3679
+ let { node: s } = e, u = s.type === "ConditionalExpression", i = s.type === "TSConditionalType" || s.type === "ConditionalTypeAnnotation", a = u ? "consequent" : "trueType", o = u ? "alternate" : "falseType", p = u ? ["test"] : ["checkType", "extendsType"], y = s[a], D = s[o], m = p.map((Ue) => s[Ue]), { parent: C } = e, c = C.type === s.type, A = c && p.some((Ue) => C[Ue] === s), d = c && C[o] === s, S = y.type === s.type, g = D.type === s.type, _ = g || d, v = t.tabWidth > 2 || t.useTabs, j, I, U = 0;
3680
+ do
3681
+ I = j || s, j = e.getParentNode(U), U++;
3682
+ while (j && j.type === s.type && p.every((Ue) => j[Ue] !== I));
3683
+ let P = j || C, G = 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"), ue = (C.type === "ReturnStatement" || C.type === "ThrowStatement") && !(S || g), Q = u && P.type === "JSXExpressionContainer" && e.grandparent.type !== "JSXAttribute", St = Kl(e), Ft = Hl(s, C), w = i && ke(e, t), ne = v ? t.useTabs ? " " : " ".repeat(t.tabWidth - 1) : "", xe = Vl(m, y, D, t) || S || g, ot = !_ && !c && !i && (Q ? y.type === "NullLiteral" || y.type === "Literal" && y.value === null : sr(y, t) && Rn(s.test, 3)), Bt = _ || d || i && !c || c && u && Rn(s.test, 1) || ot, Ms = [];
3684
+ !S && T(y, h.Dangling) && e.call((Ue) => {
3685
+ Ms.push(J(Ue, t), F);
3686
+ }, "consequent");
3687
+ let zt = [];
3688
+ T(s.test, h.Dangling) && e.call((Ue) => {
3689
+ zt.push(J(Ue, t));
3690
+ }, "test"), !g && T(D, h.Dangling) && e.call((Ue) => {
3691
+ zt.push(J(Ue, t));
3692
+ }, "alternate"), T(s, h.Dangling) && zt.push(J(e, t));
3693
+ let Rs = Symbol("test"), Ga = Symbol("consequent"), Cr = Symbol("test-and-consequent"), Ua = u ? [Os(r("test")), s.test.type === "ConditionalExpression" ? Ee : ""] : [r("checkType"), " ", "extends", " ", s.extendsType.type === "TSConditionalType" || s.extendsType.type === "ConditionalTypeAnnotation" || s.extendsType.type === "TSMappedType" ? r("extendsType") : l(Os(r("extendsType")))], Js = l([Ua, " ?"], { id: Rs }), Ya = r(a), Ar = f([S || Q && (X(y) || c || _) ? F : x, Ms, Ya]), Na = Bt ? l([Js, _ ? Ar : B(Ar, l(Ar, { id: Ga }), { groupId: Rs })], { id: Cr }) : [Js, Ar], In = r(o), qs = ot ? B(In, Rr(Os(In)), { groupId: Cr }) : In, Zt = [Na, zt.length > 0 ? [f([F, zt]), F] : g ? F : ot ? B(x, " ", { groupId: Cr }) : x, ":", g ? " " : v ? Bt ? B(ne, B(_ || ot ? " " : ne, " "), { groupId: Cr }) : B(ne, " ") : " ", g ? qs : l([f(qs), Q && !ot ? E : ""]), Ft && !St ? E : "", xe ? Ee : ""];
3694
+ return G && !xe ? l(f([E, l(Zt)])) : G || ue ? l(f(Zt)) : St || i && A ? l([f([E, Zt]), w ? E : ""]) : C === P ? l(Zt) : Zt;
3695
+ }
3696
+ function ha(e, t, r, n) {
3697
+ let { node: s } = e;
3698
+ if (Ir(s)) return Da(e, t);
3699
+ let u = t.semi ? ";" : "", i = [];
3700
+ switch (s.type) {
3701
+ case "JsExpressionRoot":
3702
+ return r("node");
3703
+ case "JsonRoot":
3704
+ return [r("node"), F];
3705
+ case "File":
3706
+ return la(e, t, r) ?? r("program");
3707
+ case "EmptyStatement":
3708
+ return "";
3709
+ case "ExpressionStatement":
3710
+ return ca(e, t, r);
3711
+ case "ChainExpression":
3712
+ return r("expression");
3713
+ case "ParenthesizedExpression":
3714
+ return !T(s.expression) && (se(s.expression) || Y(s.expression)) ? ["(", r("expression"), ")"] : l(["(", f([E, r("expression")]), E, ")"]);
3715
+ case "AssignmentExpression":
3716
+ return vi(e, t, r);
3717
+ case "VariableDeclarator":
3718
+ return ji(e, t, r);
3719
+ case "BinaryExpression":
3720
+ case "LogicalExpression":
3721
+ return Vr(e, t, r);
3722
+ case "AssignmentPattern":
3723
+ return [r("left"), " = ", r("right")];
3724
+ case "OptionalMemberExpression":
3725
+ case "MemberExpression":
3726
+ return Ii(e, t, r);
3727
+ case "MetaProperty":
3728
+ return [r("meta"), ".", r("property")];
3729
+ case "BindExpression":
3730
+ return s.object && i.push(r("object")), i.push(l(f([E, $r(e, t, r)]))), i;
3731
+ case "Identifier":
3732
+ return [s.name, $(e), ln(e), H(e, r)];
3733
+ case "V8IntrinsicIdentifier":
3734
+ return ["%", s.name];
3735
+ case "SpreadElement":
3736
+ case "SpreadElementPattern":
3737
+ case "SpreadPropertyPattern":
3738
+ case "RestElement":
3739
+ return mn(e, r);
3740
+ case "FunctionDeclaration":
3741
+ case "FunctionExpression":
3742
+ return fn(e, r, t, n);
3743
+ case "ArrowFunctionExpression":
3744
+ return Qi(e, t, r, n);
3745
+ case "YieldExpression":
3746
+ return i.push("yield"), s.delegate && i.push("*"), s.argument && i.push(" ", r("argument")), i;
3747
+ case "AwaitExpression":
3748
+ if (i.push("await"), s.argument) {
3749
+ i.push(" ", r("argument"));
3750
+ let { parent: a } = e;
3751
+ if (L(a) && a.callee === s || W(a) && a.object === s) {
3752
+ i = [f([E, ...i]), E];
3753
+ let o = e.findAncestor((p) => p.type === "AwaitExpression" || p.type === "BlockStatement");
3754
+ if ((o == null ? void 0 : o.type) !== "AwaitExpression" || !ae(o.argument, (p) => p === s)) return l(i);
3755
+ }
3756
+ }
3757
+ return i;
3758
+ case "ExportDefaultDeclaration":
3759
+ case "ExportNamedDeclaration":
3760
+ case "ExportAllDeclaration":
3761
+ return Sn(e, t, r);
3762
+ case "ImportDeclaration":
3763
+ return fa(e, t, r);
3764
+ case "ImportSpecifier":
3765
+ case "ExportSpecifier":
3766
+ case "ImportNamespaceSpecifier":
3767
+ case "ExportNamespaceSpecifier":
3768
+ case "ImportDefaultSpecifier":
3769
+ case "ExportDefaultSpecifier":
3770
+ return da(e, t, r);
3771
+ case "ImportAttribute":
3772
+ return Dn(e, t, r);
3773
+ case "Program":
3774
+ case "BlockStatement":
3775
+ case "StaticBlock":
3776
+ return Cn(e, t, r);
3777
+ case "ClassBody":
3778
+ return ua(e, t, r);
3779
+ case "ThrowStatement":
3780
+ return Vi(e, t, r);
3781
+ case "ReturnStatement":
3782
+ return Hi(e, t, r);
3783
+ case "NewExpression":
3784
+ case "ImportExpression":
3785
+ case "OptionalCallExpression":
3786
+ case "CallExpression":
3787
+ return Kr(e, t, r);
3788
+ case "ObjectExpression":
3789
+ case "ObjectPattern":
3790
+ case "RecordExpression":
3791
+ return ht(e, t, r);
3792
+ case "Property":
3793
+ return Pt(s) ? fr(e, t, r) : Dn(e, t, r);
3794
+ case "ObjectProperty":
3795
+ return Dn(e, t, r);
3796
+ case "ObjectMethod":
3797
+ return fr(e, t, r);
3798
+ case "Decorator":
3799
+ return ["@", r("expression")];
3800
+ case "ArrayExpression":
3801
+ case "ArrayPattern":
3802
+ case "TupleExpression":
3803
+ return Vt(e, t, r);
3804
+ case "SequenceExpression": {
3805
+ let { parent: a } = e;
3806
+ if (a.type === "ExpressionStatement" || a.type === "ForStatement") {
3807
+ let o = [];
3808
+ return e.each(({ isFirst: p }) => {
3809
+ p ? o.push(r()) : o.push(",", f([x, r()]));
3810
+ }, "expressions"), l(o);
3811
+ }
3812
+ return l(b([",", x], e.map(r, "expressions")));
3813
+ }
3814
+ case "ThisExpression":
3815
+ return "this";
3816
+ case "Super":
3817
+ return "super";
3818
+ case "Directive":
3819
+ return [r("value"), u];
3820
+ case "UnaryExpression":
3821
+ return i.push(s.operator), /[a-z]$/u.test(s.operator) && i.push(" "), T(s.argument) ? i.push(l(["(", f([E, r("argument")]), E, ")"])) : i.push(r("argument")), i;
3822
+ case "UpdateExpression":
3823
+ return [s.prefix ? s.operator : "", r("argument"), s.prefix ? "" : s.operator];
3824
+ case "ConditionalExpression":
3825
+ return Kt(e, t, r, n);
3826
+ case "VariableDeclaration": {
3827
+ let a = e.map(r, "declarations"), o = e.parent, p = o.type === "ForStatement" || o.type === "ForInStatement" || o.type === "ForOfStatement", y = s.declarations.some((m) => m.init), D;
3828
+ return a.length === 1 && !T(s.declarations[0]) ? D = a[0] : a.length > 0 && (D = f(a[0])), i = [K(e), s.kind, D ? [" ", D] : "", f(a.slice(1).map((m) => [",", y && !p ? F : x, m]))], p && o.body !== s || i.push(u), l(i);
3829
+ }
3830
+ case "WithStatement":
3831
+ return l(["with (", r("object"), ")", Dt(s.body, r("body"))]);
3832
+ case "IfStatement": {
3833
+ let a = Dt(s.consequent, r("consequent")), o = l(["if (", l([f([E, r("test")]), E]), ")", a]);
3834
+ if (i.push(o), s.alternate) {
3835
+ let p = T(s.consequent, h.Trailing | h.Line) || Or(s), y = s.consequent.type === "BlockStatement" && !p;
3836
+ i.push(y ? " " : F), T(s, h.Dangling) && i.push(J(e, t), p ? F : " "), i.push("else", l(Dt(s.alternate, r("alternate"), s.alternate.type === "IfStatement")));
3837
+ }
3838
+ return i;
3839
+ }
3840
+ case "ForStatement": {
3841
+ let a = Dt(s.body, r("body")), o = J(e, t), p = o ? [o, E] : "";
3842
+ return !s.init && !s.test && !s.update ? [p, l(["for (;;)", a])] : [p, l(["for (", l([f([E, r("init"), ";", x, r("test"), ";", x, r("update")]), E]), ")", a])];
3843
+ }
3844
+ case "WhileStatement":
3845
+ return l(["while (", l([f([E, r("test")]), E]), ")", Dt(s.body, r("body"))]);
3846
+ case "ForInStatement":
3847
+ return l(["for (", r("left"), " in ", r("right"), ")", Dt(s.body, r("body"))]);
3848
+ case "ForOfStatement":
3849
+ return l(["for", s.await ? " await" : "", " (", r("left"), " of ", r("right"), ")", Dt(s.body, r("body"))]);
3850
+ case "DoWhileStatement": {
3851
+ let a = Dt(s.body, r("body"));
3852
+ return i = [l(["do", a])], s.body.type === "BlockStatement" ? i.push(" ") : i.push(F), i.push("while (", l([f([E, r("test")]), E]), ")", u), i;
3853
+ }
3854
+ case "DoExpression":
3855
+ return [s.async ? "async " : "", "do ", r("body")];
3856
+ case "BreakStatement":
3857
+ case "ContinueStatement":
3858
+ return i.push(s.type === "BreakStatement" ? "break" : "continue"), s.label && i.push(" ", r("label")), i.push(u), i;
3859
+ case "LabeledStatement":
3860
+ return s.body.type === "EmptyStatement" ? [r("label"), ":;"] : [r("label"), ": ", r("body")];
3861
+ case "TryStatement":
3862
+ return ["try ", r("block"), s.handler ? [" ", r("handler")] : "", s.finalizer ? [" finally ", r("finalizer")] : ""];
3863
+ case "CatchClause":
3864
+ if (s.param) {
3865
+ let a = T(s.param, (p) => !ee(p) || p.leading && Z(t.originalText, k(p)) || p.trailing && Z(t.originalText, q(p), { backwards: true })), o = r("param");
3866
+ return ["catch ", a ? ["(", f([E, o]), E, ") "] : ["(", o, ") "], r("body")];
3867
+ }
3868
+ return ["catch ", r("body")];
3869
+ case "SwitchStatement":
3870
+ return [l(["switch (", f([E, r("discriminant")]), E, ")"]), " {", s.cases.length > 0 ? f([F, b(F, e.map(({ node: a, isLast: o }) => [r(), !o && ce(a, t) ? F : ""], "cases"))]) : "", F, "}"];
3871
+ case "SwitchCase": {
3872
+ s.test ? i.push("case ", r("test"), ":") : i.push("default:"), T(s, h.Dangling) && i.push(" ", J(e, t));
3873
+ let a = s.consequent.filter((o) => o.type !== "EmptyStatement");
3874
+ if (a.length > 0) {
3875
+ let o = Er(e, t, r, "consequent");
3876
+ i.push(a.length === 1 && a[0].type === "BlockStatement" ? [" ", o] : f([F, o]));
3877
+ }
3878
+ return i;
3879
+ }
3880
+ case "DebuggerStatement":
3881
+ return ["debugger", u];
3882
+ case "ClassDeclaration":
3883
+ case "ClassExpression":
3884
+ return dn(e, t, r);
3885
+ case "ClassMethod":
3886
+ case "ClassPrivateMethod":
3887
+ case "MethodDefinition":
3888
+ return xn(e, t, r);
3889
+ case "ClassProperty":
3890
+ case "PropertyDefinition":
3891
+ case "ClassPrivateProperty":
3892
+ case "ClassAccessorProperty":
3893
+ case "AccessorProperty":
3894
+ return hn(e, t, r);
3895
+ case "TemplateElement":
3896
+ return _e(s.value.raw);
3897
+ case "TemplateLiteral":
3898
+ return Gr(e, r, t);
3899
+ case "TaggedTemplateExpression":
3900
+ return Xu(e, r);
3901
+ case "PrivateIdentifier":
3902
+ return ["#", s.name];
3903
+ case "PrivateName":
3904
+ return ["#", r("id")];
3905
+ case "TopicReference":
3906
+ return "%";
3907
+ case "ArgumentPlaceholder":
3908
+ return "?";
3909
+ case "ModuleExpression":
3910
+ return ["module ", r("body")];
3911
+ case "InterpreterDirective":
3912
+ default:
3913
+ throw new qe(s, "ESTree");
3914
+ }
3915
+ }
3916
+ function Bn(e, t, r) {
3917
+ let { parent: n, node: s, key: u } = e, i = [r("expression")];
3918
+ switch (s.type) {
3919
+ case "AsConstExpression":
3920
+ i.push(" as const");
3921
+ break;
3922
+ case "AsExpression":
3923
+ case "TSAsExpression":
3924
+ i.push(" as ", r("typeAnnotation"));
3925
+ break;
3926
+ case "SatisfiesExpression":
3927
+ case "TSSatisfiesExpression":
3928
+ i.push(" satisfies ", r("typeAnnotation"));
3929
+ break;
3930
+ }
3931
+ return u === "callee" && L(n) || u === "object" && W(n) ? l([f([E, ...i]), E]) : i;
3932
+ }
3933
+ function ga(e, t, r) {
3934
+ let { node: n } = e, s = [K(e), "component"];
3935
+ n.id && s.push(" ", r("id")), s.push(r("typeParameters"));
3936
+ let u = Ql(e, r, t);
3937
+ 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;
3938
+ }
3939
+ function Ql(e, t, r) {
3940
+ let { node: n } = e, s = n.params;
3941
+ if (n.rest && (s = [...s, n.rest]), s.length === 0) return ["(", J(e, r, { filter: (i) => be(r.originalText, k(i)) === ")" }), ")"];
3942
+ let u = [];
3943
+ return Zl(e, (i, a) => {
3944
+ let o = a === s.length - 1;
3945
+ o && n.rest && u.push("..."), u.push(t()), !o && (u.push(","), ce(s[a], r) ? u.push(F, F) : u.push(x));
3946
+ }), ["(", f([E, ...u]), B(oe(r, "all") && !zl(n, s) ? "," : ""), E, ")"];
3947
+ }
3948
+ function zl(e, t) {
3949
+ var r;
3950
+ return e.rest || ((r = M(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
3951
+ }
3952
+ function Zl(e, t) {
3953
+ let { node: r } = e, n = 0, s = (u) => t(u, n++);
3954
+ e.each(s, "params"), r.rest && e.call(s, "rest");
3955
+ }
3956
+ function Sa(e, t, r) {
3957
+ let { node: n } = e;
3958
+ return n.shorthand ? r("local") : [r("name"), " as ", r("local")];
3959
+ }
3960
+ function Ba(e, t, r) {
3961
+ let { node: n } = e, s = [];
3962
+ return n.name && s.push(r("name"), n.optional ? "?: " : ": "), s.push(r("typeAnnotation")), s;
3963
+ }
3964
+ function ba(e, t, r) {
3965
+ return ht(e, r, t);
3966
+ }
3967
+ function bn(e, t) {
3968
+ let { node: r } = e, n = t("id");
3969
+ r.computed && (n = ["[", n, "]"]);
3970
+ let s = "";
3971
+ return r.initializer && (s = t("initializer")), r.init && (s = t("init")), s ? [n, " = ", s] : n;
3972
+ }
3973
+ function Pa(e, t, r) {
3974
+ let { node: n } = e, s;
3975
+ if (n.type === "EnumSymbolBody" || n.explicitType) switch (n.type) {
3976
+ case "EnumBooleanBody":
3977
+ s = "boolean";
3978
+ break;
3979
+ case "EnumNumberBody":
3980
+ s = "number";
3981
+ break;
3982
+ case "EnumBigIntBody":
3983
+ s = "bigint";
3984
+ break;
3985
+ case "EnumStringBody":
3986
+ s = "string";
3987
+ break;
3988
+ case "EnumSymbolBody":
3989
+ s = "symbol";
3990
+ break;
3991
+ }
3992
+ return [s ? `of ${s} ` : "", ba(e, t, r)];
3993
+ }
3994
+ function Pn(e, t, r) {
3995
+ let { node: n } = e;
3996
+ return [K(e), n.const ? "const " : "", "enum ", t("id"), " ", n.type === "TSEnumDeclaration" ? ba(e, t, r) : t("body")];
3997
+ }
3998
+ function Ia(e, t, r) {
3999
+ let { node: n } = e, s = ["hook"];
4000
+ n.id && s.push(" ", r("id"));
4001
+ let u = Ge(e, r, t, false, true), i = $t(e, r), a = at(n, i);
4002
+ return s.push(l([a ? l(u) : u, i]), n.body ? " " : "", r("body")), s;
4003
+ }
4004
+ function La(e, t, r) {
4005
+ let { node: n } = e, s = [K(e), "hook"];
4006
+ return n.id && s.push(" ", r("id")), t.semi && s.push(";"), s;
4007
+ }
4008
+ function ka(e) {
4009
+ var r;
4010
+ let { node: t } = e;
4011
+ return t.type === "HookTypeAnnotation" && ((r = e.getParentNode(2)) == null ? void 0 : r.type) === "DeclareHook";
4012
+ }
4013
+ function wa(e, t, r) {
4014
+ let { node: n } = e, s = [];
4015
+ s.push(ka(e) ? "" : "hook ");
4016
+ let u = Ge(e, r, t, false, true), i = [];
4017
+ return i.push(ka(e) ? ": " : " => ", r("returnType")), at(n, i) && (u = l(u)), s.push(u, i), l(s);
4018
+ }
4019
+ function kn(e, t, r) {
4020
+ let { node: n } = e, s = [K(e), "interface"], u = [], i = [];
4021
+ n.type !== "InterfaceTypeAnnotation" && u.push(" ", r("id"), r("typeParameters"));
4022
+ let a = n.typeParameters && !T(n.typeParameters, h.Trailing | h.Line);
4023
+ return O(n.extends) && i.push(a ? B(" ", x, { groupId: Fr(n.typeParameters) }) : x, "extends ", (n.extends.length === 1 ? fu : f)(b([",", x], e.map(r, "extends")))), T(n.id, h.Trailing) || O(n.extends) ? a ? s.push(l([...u, f(i)])) : s.push(l(f([...u, ...i]))) : s.push(...u, ...i), s.push(" ", r("body")), l(s);
4024
+ }
4025
+ function Oa(e, t, r) {
4026
+ let { node: n } = e;
4027
+ if (Br(n)) return n.type.slice(0, -14).toLowerCase();
4028
+ let s = t.semi ? ";" : "";
4029
+ switch (n.type) {
4030
+ case "ComponentDeclaration":
4031
+ case "DeclareComponent":
4032
+ case "ComponentTypeAnnotation":
4033
+ return ga(e, t, r);
4034
+ case "ComponentParameter":
4035
+ return Sa(e, t, r);
4036
+ case "ComponentTypeParameter":
4037
+ return Ba(e, t, r);
4038
+ case "HookDeclaration":
4039
+ return Ia(e, t, r);
4040
+ case "DeclareHook":
4041
+ return La(e, t, r);
4042
+ case "HookTypeAnnotation":
4043
+ return wa(e, t, r);
4044
+ case "DeclareClass":
4045
+ return dn(e, t, r);
4046
+ case "DeclareFunction":
4047
+ return [K(e), "function ", r("id"), r("predicate"), s];
4048
+ case "DeclareModule":
4049
+ return ["declare module ", r("id"), " ", r("body")];
4050
+ case "DeclareModuleExports":
4051
+ return ["declare module.exports", H(e, r), s];
4052
+ case "DeclareNamespace":
4053
+ return ["declare namespace ", r("id"), " ", r("body")];
4054
+ case "DeclareVariable":
4055
+ return [K(e), n.kind ?? "var", " ", r("id"), s];
4056
+ case "DeclareExportDeclaration":
4057
+ case "DeclareExportAllDeclaration":
4058
+ return Sn(e, t, r);
4059
+ case "DeclareOpaqueType":
4060
+ case "OpaqueType":
4061
+ return qi(e, t, r);
4062
+ case "DeclareTypeAlias":
4063
+ case "TypeAlias":
4064
+ return zr(e, t, r);
4065
+ case "IntersectionTypeAnnotation":
4066
+ return Zr(e, t, r);
4067
+ case "UnionTypeAnnotation":
4068
+ return en(e, t, r);
4069
+ case "ConditionalTypeAnnotation":
4070
+ return Kt(e, t, r);
4071
+ case "InferTypeAnnotation":
4072
+ return nn(e, t, r);
4073
+ case "FunctionTypeAnnotation":
4074
+ return tn(e, t, r);
4075
+ case "TupleTypeAnnotation":
4076
+ return Vt(e, t, r);
4077
+ case "TupleTypeLabeledElement":
4078
+ return un(e, t, r);
4079
+ case "TupleTypeSpreadElement":
4080
+ return sn(e, t, r);
4081
+ case "GenericTypeAnnotation":
4082
+ return [r("id"), wt(e, t, r, "typeParameters")];
4083
+ case "IndexedAccessType":
4084
+ case "OptionalIndexedAccessType":
4085
+ return rn(e, t, r);
4086
+ case "TypeAnnotation":
4087
+ return an(e, t, r);
4088
+ case "TypeParameter":
4089
+ return Tn(e, t, r);
4090
+ case "TypeofTypeAnnotation":
4091
+ return pn(e, r);
4092
+ case "ExistsTypeAnnotation":
4093
+ return "*";
4094
+ case "ArrayTypeAnnotation":
4095
+ return on(r);
4096
+ case "DeclareEnum":
4097
+ case "EnumDeclaration":
4098
+ return Pn(e, r, t);
4099
+ case "EnumBooleanBody":
4100
+ case "EnumNumberBody":
4101
+ case "EnumBigIntBody":
4102
+ case "EnumStringBody":
4103
+ case "EnumSymbolBody":
4104
+ return Pa(e, r, t);
4105
+ case "EnumBooleanMember":
4106
+ case "EnumNumberMember":
4107
+ case "EnumBigIntMember":
4108
+ case "EnumStringMember":
4109
+ case "EnumDefaultedMember":
4110
+ return bn(e, r);
4111
+ case "FunctionTypeParam": {
4112
+ let u = n.name ? r("name") : e.parent.this === n ? "this" : "";
4113
+ return [u, $(e), u ? ": " : "", r("typeAnnotation")];
4114
+ }
4115
+ case "DeclareInterface":
4116
+ case "InterfaceDeclaration":
4117
+ case "InterfaceTypeAnnotation":
4118
+ return kn(e, t, r);
4119
+ case "ClassImplements":
4120
+ case "InterfaceExtends":
4121
+ return [r("id"), r("typeParameters")];
4122
+ case "NullableTypeAnnotation":
4123
+ return ["?", r("typeAnnotation")];
4124
+ case "Variance": {
4125
+ let { kind: u } = n;
4126
+ return jt.ok(u === "plus" || u === "minus"), u === "plus" ? "+" : "-";
4127
+ }
4128
+ case "KeyofTypeAnnotation":
4129
+ return ["keyof ", r("argument")];
4130
+ case "ObjectTypeCallProperty":
4131
+ return [n.static ? "static " : "", r("value")];
4132
+ case "ObjectTypeMappedTypeProperty":
4133
+ return Zi(e, t, r);
4134
+ case "ObjectTypeIndexer":
4135
+ return [n.static ? "static " : "", n.variance ? r("variance") : "", "[", r("id"), n.id ? ": " : "", r("key"), "]: ", r("value")];
4136
+ case "ObjectTypeProperty": {
4137
+ let u = "";
4138
+ return n.proto ? u = "proto " : n.static && (u = "static "), [u, n.kind !== "init" ? n.kind + " " : "", n.variance ? r("variance") : "", Et(e, t, r), $(e), Pt(n) ? "" : ": ", r("value")];
4139
+ }
4140
+ case "ObjectTypeAnnotation":
4141
+ return ht(e, t, r);
4142
+ case "ObjectTypeInternalSlot":
4143
+ return [n.static ? "static " : "", "[[", r("id"), "]]", $(e), n.method ? "" : ": ", r("value")];
4144
+ case "ObjectTypeSpreadProperty":
4145
+ return mn(e, r);
4146
+ case "QualifiedTypeofIdentifier":
4147
+ case "QualifiedTypeIdentifier":
4148
+ return [r("qualification"), ".", r("id")];
4149
+ case "NullLiteralTypeAnnotation":
4150
+ return "null";
4151
+ case "BooleanLiteralTypeAnnotation":
4152
+ return String(n.value);
4153
+ case "StringLiteralTypeAnnotation":
4154
+ return _e(rt(fe(n), t));
4155
+ case "NumberLiteralTypeAnnotation":
4156
+ return ft(n.raw ?? n.extra.raw);
4157
+ case "BigIntLiteralTypeAnnotation":
4158
+ return gn(n.raw ?? n.extra.raw);
4159
+ case "TypeCastExpression":
4160
+ return ["(", r("expression"), H(e, r), ")"];
4161
+ case "TypePredicate":
4162
+ return cn(e, r);
4163
+ case "TypeOperator":
4164
+ return [n.operator, " ", r("typeAnnotation")];
4165
+ case "TypeParameterDeclaration":
4166
+ case "TypeParameterInstantiation":
4167
+ return wt(e, t, r, "params");
4168
+ case "InferredPredicate":
4169
+ case "DeclaredPredicate":
4170
+ return [e.key === "predicate" && e.parent.type !== "DeclareFunction" && !e.parent.returnType ? ": " : " ", "%checks", ...n.type === "DeclaredPredicate" ? ["(", r("value"), ")"] : []];
4171
+ case "AsExpression":
4172
+ case "AsConstExpression":
4173
+ case "SatisfiesExpression":
4174
+ return Bn(e, t, r);
4175
+ }
4176
+ }
4177
+ function _a(e, t, r) {
4178
+ var i;
4179
+ let { node: n } = e;
4180
+ if (!n.type.startsWith("TS")) return;
4181
+ if (br(n)) return n.type.slice(2, -7).toLowerCase();
4182
+ let s = t.semi ? ";" : "", u = [];
4183
+ switch (n.type) {
4184
+ case "TSThisType":
4185
+ return "this";
4186
+ case "TSTypeAssertion": {
4187
+ let a = !(Y(n.expression) || se(n.expression)), o = l(["<", f([E, r("typeAnnotation")]), E, ">"]), p = [B("("), f([E, r("expression")]), E, B(")")];
4188
+ return a ? Ze([[o, r("expression")], [o, l(p, { shouldBreak: true })], [o, r("expression")]]) : l([o, r("expression")]);
4189
+ }
4190
+ case "TSDeclareFunction":
4191
+ return fn(e, r, t);
4192
+ case "TSExportAssignment":
4193
+ return ["export = ", r("expression"), s];
4194
+ case "TSModuleBlock":
4195
+ return Cn(e, t, r);
4196
+ case "TSInterfaceBody":
4197
+ case "TSTypeLiteral":
4198
+ return ht(e, t, r);
4199
+ case "TSTypeAliasDeclaration":
4200
+ return zr(e, t, r);
4201
+ case "TSQualifiedName":
4202
+ return [r("left"), ".", r("right")];
4203
+ case "TSAbstractMethodDefinition":
4204
+ case "TSDeclareMethod":
4205
+ return xn(e, t, r);
4206
+ case "TSAbstractAccessorProperty":
4207
+ case "TSAbstractPropertyDefinition":
4208
+ return hn(e, t, r);
4209
+ case "TSInterfaceHeritage":
4210
+ case "TSClassImplements":
4211
+ case "TSExpressionWithTypeArguments":
4212
+ case "TSInstantiationExpression":
4213
+ return [r("expression"), r(n.typeArguments ? "typeArguments" : "typeParameters")];
4214
+ case "TSTemplateLiteralType":
4215
+ return Gr(e, r, t);
4216
+ case "TSNamedTupleMember":
4217
+ return un(e, t, r);
4218
+ case "TSRestType":
4219
+ return sn(e, t, r);
4220
+ case "TSOptionalType":
4221
+ return [r("typeAnnotation"), "?"];
4222
+ case "TSInterfaceDeclaration":
4223
+ return kn(e, t, r);
4224
+ case "TSTypeParameterDeclaration":
4225
+ case "TSTypeParameterInstantiation":
4226
+ return wt(e, t, r, "params");
4227
+ case "TSTypeParameter":
4228
+ return Tn(e, t, r);
4229
+ case "TSAsExpression":
4230
+ case "TSSatisfiesExpression":
4231
+ return Bn(e, t, r);
4232
+ case "TSArrayType":
4233
+ return on(r);
4234
+ case "TSPropertySignature":
4235
+ return [n.readonly ? "readonly " : "", Et(e, t, r), $(e), H(e, r)];
4236
+ case "TSParameterProperty":
4237
+ return [Ht(n), n.static ? "static " : "", n.override ? "override " : "", n.readonly ? "readonly " : "", r("parameter")];
4238
+ case "TSTypeQuery":
4239
+ return pn(e, r);
4240
+ case "TSIndexSignature": {
4241
+ let a = n.parameters.length > 1 ? B(oe(t) ? "," : "") : "", o = l([f([E, b([", ", E], e.map(r, "parameters"))]), a, E]), p = e.parent.type === "ClassBody" && e.key === "body";
4242
+ return [p && n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? o : "", "]", H(e, r), p ? s : ""];
4243
+ }
4244
+ case "TSTypePredicate":
4245
+ return cn(e, r);
4246
+ case "TSNonNullExpression":
4247
+ return [r("expression"), "!"];
4248
+ case "TSImportType":
4249
+ return ["import(", r("argument"), ")", n.qualifier ? [".", r("qualifier")] : "", wt(e, t, r, n.typeArguments ? "typeArguments" : "typeParameters")];
4250
+ case "TSLiteralType":
4251
+ return r("literal");
4252
+ case "TSIndexedAccessType":
4253
+ return rn(e, t, r);
4254
+ case "TSTypeOperator":
4255
+ return [n.operator, " ", r("typeAnnotation")];
4256
+ case "TSMappedType":
4257
+ return ea(e, t, r);
4258
+ case "TSMethodSignature": {
4259
+ let a = n.kind && n.kind !== "method" ? `${n.kind} ` : "";
4260
+ u.push(Ht(n), a, n.computed ? "[" : "", r("key"), n.computed ? "]" : "", $(e));
4261
+ let o = Ge(e, r, t, false, true), p = n.returnType ? "returnType" : "typeAnnotation", y = n[p], D = y ? H(e, r, p) : "", m = at(n, D);
4262
+ return u.push(m ? l(o) : o), y && u.push(l(D)), l(u);
4263
+ }
4264
+ case "TSNamespaceExportDeclaration":
4265
+ return ["export as namespace ", r("id"), t.semi ? ";" : ""];
4266
+ case "TSEnumDeclaration":
4267
+ return Pn(e, r, t);
4268
+ case "TSEnumMember":
4269
+ return bn(e, r);
4270
+ case "TSImportEqualsDeclaration":
4271
+ return [n.isExport ? "export " : "", "import ", Ls(n, false), r("id"), " = ", r("moduleReference"), t.semi ? ";" : ""];
4272
+ case "TSExternalModuleReference":
4273
+ return ["require(", r("expression"), ")"];
4274
+ case "TSModuleDeclaration": {
4275
+ let { parent: a } = e, o = a.type === "TSModuleDeclaration", p = ((i = n.body) == null ? void 0 : i.type) === "TSModuleDeclaration";
4276
+ return o ? u.push(".") : (u.push(K(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;
4277
+ }
4278
+ case "TSConditionalType":
4279
+ return Kt(e, t, r);
4280
+ case "TSInferType":
4281
+ return nn(e, t, r);
4282
+ case "TSIntersectionType":
4283
+ return Zr(e, t, r);
4284
+ case "TSUnionType":
4285
+ return en(e, t, r);
4286
+ case "TSFunctionType":
4287
+ case "TSCallSignatureDeclaration":
4288
+ case "TSConstructorType":
4289
+ case "TSConstructSignatureDeclaration":
4290
+ return tn(e, t, r);
4291
+ case "TSTupleType":
4292
+ return Vt(e, t, r);
4293
+ case "TSTypeReference":
4294
+ return [r("typeName"), wt(e, t, r, n.typeArguments ? "typeArguments" : "typeParameters")];
4295
+ case "TSTypeAnnotation":
4296
+ return an(e, t, r);
4297
+ case "TSEmptyBodyFunctionExpression":
4298
+ return En(e, t, r);
4299
+ case "TSJSDocAllType":
4300
+ return "*";
4301
+ case "TSJSDocUnknownType":
4302
+ return "?";
4303
+ case "TSJSDocNullableType":
4304
+ return xs(e, r, "?");
4305
+ case "TSJSDocNonNullableType":
4306
+ return xs(e, r, "!");
4307
+ case "TSParenthesizedType":
4308
+ default:
4309
+ throw new qe(n, "TypeScript");
4310
+ }
4311
+ }
4312
+ function em(e, t, r, n) {
4313
+ if (Hr(e)) return yi(e, t);
4314
+ for (let s of [hi, Ai, Oa, _a, ha]) {
4315
+ let u = s(e, t, r, n);
4316
+ if (u !== void 0) return u;
4317
+ }
4318
+ }
4319
+ var tm = R(["ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "ClassPrivateProperty", "MethodDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod"]);
4320
+ function rm(e, t, r, n) {
4321
+ var D;
4322
+ e.isRoot && ((D = t.__onHtmlBindingRoot) == null || D.call(t, e.node, t));
4323
+ let s = em(e, t, r, n);
4324
+ if (!s) return "";
4325
+ let { node: u } = e;
4326
+ if (tm(u)) return s;
4327
+ let i = O(u.decorators), a = Si(e, t, r), o = u.type === "ClassExpression";
4328
+ if (i && !o) return pr(s, (m) => l([a, m]));
4329
+ let p = ke(e, t), y = oa(e, t);
4330
+ return !a && !p && !y ? s : pr(s, (m) => [y ? ";" : "", p ? "(" : "", p && o && i ? [f([x, a, m]), x] : [a, m], p ? ")" : ""]);
4331
+ }
4332
+ var va = rm;
4333
+ var nm = { avoidAstMutation: true };
4334
+ var ja = [{ linguistLanguageId: 174, name: "JSON.stringify", type: "data", color: "#292929", tmScope: "source.json", aceMode: "json", codemirrorMode: "javascript", codemirrorMimeType: "application/json", aliases: ["geojson", "jsonl", "topojson"], extensions: [".importmap"], filenames: ["package.json", "package-lock.json", "composer.json"], parsers: ["json-stringify"], vscodeLanguageIds: ["json"] }, { linguistLanguageId: 174, name: "JSON", type: "data", color: "#292929", tmScope: "source.json", aceMode: "json", codemirrorMode: "javascript", codemirrorMimeType: "application/json", aliases: ["geojson", "jsonl", "topojson"], extensions: [".json", ".4DForm", ".4DProject", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".JSON-tmLanguage", ".mcmeta", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"], filenames: [".all-contributorsrc", ".arcconfig", ".auto-changelog", ".c8rc", ".htmlhintrc", ".imgbotconfig", ".nycrc", ".tern-config", ".tern-project", ".watchmanconfig", "Pipfile.lock", "composer.lock", "flake.lock", "mcmod.info", ".babelrc", ".jscsrc", ".jshintrc", ".jslintrc", ".swcrc"], parsers: ["json"], vscodeLanguageIds: ["json"] }, { linguistLanguageId: 423, name: "JSON with Comments", type: "data", color: "#292929", group: "JSON", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", aliases: ["jsonc"], extensions: [".jsonc", ".code-snippets", ".code-workspace", ".sublime-build", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"], filenames: [], parsers: ["jsonc"], vscodeLanguageIds: ["jsonc"] }, { linguistLanguageId: 175, name: "JSON5", type: "data", color: "#267CB9", extensions: [".json5"], tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json5"], vscodeLanguageIds: ["json5"] }];
4335
+ var vs = {};
4336
+ Tr(vs, { getVisitorKeys: () => Ra, massageAstNode: () => qa, print: () => im });
4337
+ var sm = { JsonRoot: ["node"], ArrayExpression: ["elements"], ObjectExpression: ["properties"], ObjectProperty: ["key", "value"], UnaryExpression: ["argument"], NullLiteral: [], BooleanLiteral: [], StringLiteral: [], NumericLiteral: [], Identifier: [], TemplateLiteral: ["quasis"], TemplateElement: [] };
4338
+ var Ma = sm;
4339
+ var um = gr(Ma);
4340
+ var Ra = um;
4341
+ function im(e, t, r) {
4342
+ let { node: n } = e;
4343
+ switch (n.type) {
4344
+ case "JsonRoot":
4345
+ return [r("node"), F];
4346
+ case "ArrayExpression": {
4347
+ if (n.elements.length === 0) return "[]";
4348
+ let s = e.map(() => e.node === null ? "null" : r(), "elements");
4349
+ return ["[", f([F, b([",", F], s)]), F, "]"];
4350
+ }
4351
+ case "ObjectExpression":
4352
+ return n.properties.length === 0 ? "{}" : ["{", f([F, b([",", F], e.map(r, "properties"))]), F, "}"];
4353
+ case "ObjectProperty":
4354
+ return [r("key"), ": ", r("value")];
4355
+ case "UnaryExpression":
4356
+ return [n.operator === "+" ? "" : n.operator, r("argument")];
4357
+ case "NullLiteral":
4358
+ return "null";
4359
+ case "BooleanLiteral":
4360
+ return n.value ? "true" : "false";
4361
+ case "StringLiteral":
4362
+ return JSON.stringify(n.value);
4363
+ case "NumericLiteral":
4364
+ return Ja(e) ? JSON.stringify(String(n.value)) : JSON.stringify(n.value);
4365
+ case "Identifier":
4366
+ return Ja(e) ? JSON.stringify(n.name) : n.name;
4367
+ case "TemplateLiteral":
4368
+ return r(["quasis", 0]);
4369
+ case "TemplateElement":
4370
+ return JSON.stringify(n.value.cooked);
4371
+ default:
4372
+ throw new qe(n, "JSON");
4373
+ }
4374
+ }
4375
+ function Ja(e) {
4376
+ return e.key === "key" && e.parent.type === "ObjectProperty";
4377
+ }
4378
+ var am = /* @__PURE__ */ new Set(["start", "end", "extra", "loc", "comments", "leadingComments", "trailingComments", "innerComments", "errors", "range", "tokens"]);
4379
+ function qa(e, t) {
4380
+ let { type: r } = e;
4381
+ if (r === "ObjectProperty") {
4382
+ let { key: n } = e;
4383
+ n.type === "Identifier" ? t.key = { type: "StringLiteral", value: n.name } : n.type === "NumericLiteral" && (t.key = { type: "StringLiteral", value: String(n.value) });
4384
+ return;
4385
+ }
4386
+ if (r === "UnaryExpression" && e.operator === "+") return t.argument;
4387
+ if (r === "ArrayExpression") {
4388
+ for (let [n, s] of e.elements.entries()) s === null && t.elements.splice(n, 0, { type: "NullLiteral" });
4389
+ return;
4390
+ }
4391
+ if (r === "TemplateLiteral") return { type: "StringLiteral", value: e.quasis[0].value.cooked };
4392
+ }
4393
+ qa.ignoredProperties = am;
4394
+ var Qt = { 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." } };
4395
+ var gt = "JavaScript";
4396
+ var om = { arrowParens: { category: gt, 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: Qt.bracketSameLine, objectWrap: Qt.objectWrap, bracketSpacing: Qt.bracketSpacing, jsxBracketSameLine: { category: gt, type: "boolean", description: "Put > on the last line instead of at a new line.", deprecated: "2.4.0" }, semi: { category: gt, type: "boolean", default: true, description: "Print semicolons.", oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them." }, experimentalOperatorPosition: { category: gt, 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: gt, 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: Qt.singleQuote, jsxSingleQuote: { category: gt, type: "boolean", default: false, description: "Use single quotes in JSX." }, quoteProps: { category: gt, 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: gt, 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: Qt.singleAttributePerLine };
4397
+ var Wa = om;
4398
+ var pm = { estree: _s, "estree-json": vs };
4399
+ var cm = [...Ns, ...ja];
4400
+ var cx = js;
4401
+ export {
4402
+ cx as default,
4403
+ cm as languages,
4404
+ Wa as options,
4405
+ pm as printers
4406
+ };
4407
+ //# sourceMappingURL=estree-H4XUELNR.js.map