@anhnv/lexical-playground 0.39.0

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 (274) hide show
  1. package/dist/DateTimeComponent-DX3ALs4U.cjs +1 -0
  2. package/dist/DateTimeComponent-DaF6ca1f.js +174 -0
  3. package/dist/EquationComponent-BrbIAXFZ.js +105 -0
  4. package/dist/EquationComponent-DFRdSLyf.cjs +3 -0
  5. package/dist/ExcalidrawComponent-B2RIlh-t.js +174 -0
  6. package/dist/ExcalidrawComponent-VGrNBMwa.cjs +1 -0
  7. package/dist/ImageComponent-CFLPSAon.cjs +1 -0
  8. package/dist/ImageComponent-Dr9Y0gPd.js +286 -0
  9. package/dist/ImageResizer-riowDF8s.cjs +1 -0
  10. package/dist/ImageResizer-wZz1Oitl.js +199 -0
  11. package/dist/PollComponent-DpWrUNaL.js +152 -0
  12. package/dist/PollComponent-hitipp8H.cjs +1 -0
  13. package/dist/QuestionComponent-BYluUh-8.cjs +1 -0
  14. package/dist/QuestionComponent-DQFO_Or8.js +60 -0
  15. package/dist/StickyComponent-B-sytJ7W.js +161 -0
  16. package/dist/StickyComponent-DGi089bO.cjs +1 -0
  17. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  18. package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
  19. package/dist/babel-CqfpZa5G.js +7195 -0
  20. package/dist/babel-CryJy3T1.cjs +15 -0
  21. package/dist/estree-CJTW2kur.cjs +44 -0
  22. package/dist/estree-DmlwiAu4.js +4453 -0
  23. package/dist/fonts/Assistant/Assistant-Bold.woff2 +0 -0
  24. package/dist/fonts/Assistant/Assistant-Medium.woff2 +0 -0
  25. package/dist/fonts/Assistant/Assistant-Regular.woff2 +0 -0
  26. package/dist/fonts/Assistant/Assistant-SemiBold.woff2 +0 -0
  27. package/dist/fonts/Cascadia/CascadiaCode-Regular.woff2 +0 -0
  28. package/dist/fonts/ComicShanns/ComicShanns-Regular-279a7b317d12eb88de06167bd672b4b4.woff2 +0 -0
  29. package/dist/fonts/ComicShanns/ComicShanns-Regular-6e066e8de2ac57ea9283adb9c24d7f0c.woff2 +0 -0
  30. package/dist/fonts/ComicShanns/ComicShanns-Regular-dc6a8806fa96795d7b3be5026f989a17.woff2 +0 -0
  31. package/dist/fonts/ComicShanns/ComicShanns-Regular-fcb0fc02dcbee4c9846b3e2508668039.woff2 +0 -0
  32. package/dist/fonts/Excalifont/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2 +0 -0
  33. package/dist/fonts/Excalifont/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2 +0 -0
  34. package/dist/fonts/Excalifont/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2 +0 -0
  35. package/dist/fonts/Excalifont/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2 +0 -0
  36. package/dist/fonts/Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 +0 -0
  37. package/dist/fonts/Excalifont/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2 +0 -0
  38. package/dist/fonts/Excalifont/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2 +0 -0
  39. package/dist/fonts/Liberation/LiberationSans-Regular.woff2 +0 -0
  40. package/dist/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
  41. package/dist/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
  42. package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
  43. package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
  44. package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
  45. package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
  46. package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
  47. package/dist/fonts/Virgil/Virgil-Regular.woff2 +0 -0
  48. package/dist/fonts/Xiaolai/Xiaolai-Regular-019d66dcad46dc156b162d267f981c20.woff2 +0 -0
  49. package/dist/fonts/Xiaolai/Xiaolai-Regular-04b718e5623574919c8b0dea5f301444.woff2 +0 -0
  50. package/dist/fonts/Xiaolai/Xiaolai-Regular-069e77aac84590e2e991d0a0176d34f2.woff2 +0 -0
  51. package/dist/fonts/Xiaolai/Xiaolai-Regular-06c77b8c66e51ed6c63ccb502dd8b8af.woff2 +0 -0
  52. package/dist/fonts/Xiaolai/Xiaolai-Regular-08e0dc436ad0ad61ba5558db0674d762.woff2 +0 -0
  53. package/dist/fonts/Xiaolai/Xiaolai-Regular-093b9ef39a46ceae95a1df18a0a3a326.woff2 +0 -0
  54. package/dist/fonts/Xiaolai/Xiaolai-Regular-095c169f3314805276f603a362766abd.woff2 +0 -0
  55. package/dist/fonts/Xiaolai/Xiaolai-Regular-09850c4077f3fffe707905872e0e2460.woff2 +0 -0
  56. package/dist/fonts/Xiaolai/Xiaolai-Regular-0986d134c05864f5025962eef9f994a0.woff2 +0 -0
  57. package/dist/fonts/Xiaolai/Xiaolai-Regular-0b5d723fdc4e249c140f0909e87d03b4.woff2 +0 -0
  58. package/dist/fonts/Xiaolai/Xiaolai-Regular-0f626226ba1272e832aea87bafd9720e.woff2 +0 -0
  59. package/dist/fonts/Xiaolai/Xiaolai-Regular-0f7fb1e0d5015bb1371343153ecf7ce3.woff2 +0 -0
  60. package/dist/fonts/Xiaolai/Xiaolai-Regular-0fa55a080fcd0f9dc2e0b0058b793df8.woff2 +0 -0
  61. package/dist/fonts/Xiaolai/Xiaolai-Regular-0facdf1ea213ba40261022f5d5ed4493.woff2 +0 -0
  62. package/dist/fonts/Xiaolai/Xiaolai-Regular-10a7ae9a371830a80c3d844acf1c02d7.woff2 +0 -0
  63. package/dist/fonts/Xiaolai/Xiaolai-Regular-112c051027b2d766c19a519f6ee1f4f7.woff2 +0 -0
  64. package/dist/fonts/Xiaolai/Xiaolai-Regular-11c345711937f0ba4b8f7b6b919c8440.woff2 +0 -0
  65. package/dist/fonts/Xiaolai/Xiaolai-Regular-12b52b58eb3df36804b9a654ec9ee194.woff2 +0 -0
  66. package/dist/fonts/Xiaolai/Xiaolai-Regular-13ae07ed2e272d26d59bc0691cd7117a.woff2 +0 -0
  67. package/dist/fonts/Xiaolai/Xiaolai-Regular-13d2887ec8ee73c43acdabc52a05af7b.woff2 +0 -0
  68. package/dist/fonts/Xiaolai/Xiaolai-Regular-145aa02cdd91946e67dc934e1acffe75.woff2 +0 -0
  69. package/dist/fonts/Xiaolai/Xiaolai-Regular-15dc6d811c9cd078f9086a740d5a1038.woff2 +0 -0
  70. package/dist/fonts/Xiaolai/Xiaolai-Regular-173945821411c09f70c95f98d590e697.woff2 +0 -0
  71. package/dist/fonts/Xiaolai/Xiaolai-Regular-1b611157cd46bb184d4fa4dae2d6a2b8.woff2 +0 -0
  72. package/dist/fonts/Xiaolai/Xiaolai-Regular-1e6fd68f1f3902ce48ce8c69df385622.woff2 +0 -0
  73. package/dist/fonts/Xiaolai/Xiaolai-Regular-1ee544f0f1dac422545c505baa788992.woff2 +0 -0
  74. package/dist/fonts/Xiaolai/Xiaolai-Regular-1fdc0c67ed57263a80fd108c1f6ccf24.woff2 +0 -0
  75. package/dist/fonts/Xiaolai/Xiaolai-Regular-203b0e569e3b14aac86a003dc3fa523e.woff2 +0 -0
  76. package/dist/fonts/Xiaolai/Xiaolai-Regular-20cc1bbf50e7efb442756cb605672c1f.woff2 +0 -0
  77. package/dist/fonts/Xiaolai/Xiaolai-Regular-20e7bf72fa05de9adf7dbcc7bf51dde6.woff2 +0 -0
  78. package/dist/fonts/Xiaolai/Xiaolai-Regular-21430ee05a1248901da8d0de08744d47.woff2 +0 -0
  79. package/dist/fonts/Xiaolai/Xiaolai-Regular-23686f7f29da6e8008c36dd3a80c83d6.woff2 +0 -0
  80. package/dist/fonts/Xiaolai/Xiaolai-Regular-23ad2d71b280f00b1363b95b7bea94eb.woff2 +0 -0
  81. package/dist/fonts/Xiaolai/Xiaolai-Regular-23f228f3999c01983860012330e4be08.woff2 +0 -0
  82. package/dist/fonts/Xiaolai/Xiaolai-Regular-24476a126f129212beb33f66853ea151.woff2 +0 -0
  83. package/dist/fonts/Xiaolai/Xiaolai-Regular-24a21c1e4449222e8d1898d69ff3a404.woff2 +0 -0
  84. package/dist/fonts/Xiaolai/Xiaolai-Regular-25b7f38e18f035f96cb5e547bd2bd08c.woff2 +0 -0
  85. package/dist/fonts/Xiaolai/Xiaolai-Regular-29cec36cd205b211da97acabaa62f055.woff2 +0 -0
  86. package/dist/fonts/Xiaolai/Xiaolai-Regular-2a26d20a23b00898ce82f09d2ee47c3f.woff2 +0 -0
  87. package/dist/fonts/Xiaolai/Xiaolai-Regular-2adbc89c11e65905393d3dfc468b9d5b.woff2 +0 -0
  88. package/dist/fonts/Xiaolai/Xiaolai-Regular-2b7441d46298788ac94e610ffcc709b6.woff2 +0 -0
  89. package/dist/fonts/Xiaolai/Xiaolai-Regular-2b77e8ebfb2367ab2662396a60e7d320.woff2 +0 -0
  90. package/dist/fonts/Xiaolai/Xiaolai-Regular-2cf96d082d35ea3d8106851223ad0d16.woff2 +0 -0
  91. package/dist/fonts/Xiaolai/Xiaolai-Regular-2d43040e86ff03ba677f6f9c04cd0805.woff2 +0 -0
  92. package/dist/fonts/Xiaolai/Xiaolai-Regular-2e33e8dc771ef5e1d9127d60a6b73679.woff2 +0 -0
  93. package/dist/fonts/Xiaolai/Xiaolai-Regular-33432927cd87d40cfe393c7482bf221f.woff2 +0 -0
  94. package/dist/fonts/Xiaolai/Xiaolai-Regular-353f33792a8f60dc69323ddf635a269e.woff2 +0 -0
  95. package/dist/fonts/Xiaolai/Xiaolai-Regular-36925dfe329a45086cbb7fc5c20d45ac.woff2 +0 -0
  96. package/dist/fonts/Xiaolai/Xiaolai-Regular-3717077e38f98d89eae729b6c14e56dc.woff2 +0 -0
  97. package/dist/fonts/Xiaolai/Xiaolai-Regular-3756e81d3e149cf6099163ee79944fec.woff2 +0 -0
  98. package/dist/fonts/Xiaolai/Xiaolai-Regular-395c35dd584b56b0789f58a0559beaf1.woff2 +0 -0
  99. package/dist/fonts/Xiaolai/Xiaolai-Regular-3c9de2ae0ea4bc91a510942dfa4be8d2.woff2 +0 -0
  100. package/dist/fonts/Xiaolai/Xiaolai-Regular-3cc70dbb64df5b21f1326cc24dee2195.woff2 +0 -0
  101. package/dist/fonts/Xiaolai/Xiaolai-Regular-3e1f8f654357353bf0e04ba5c34b5f7f.woff2 +0 -0
  102. package/dist/fonts/Xiaolai/Xiaolai-Regular-3e63ed8162808a9e425ed80a8bc79114.woff2 +0 -0
  103. package/dist/fonts/Xiaolai/Xiaolai-Regular-3eaa538115d76932653c21d8dc28f207.woff2 +0 -0
  104. package/dist/fonts/Xiaolai/Xiaolai-Regular-4095eb84ef3874e2600247bee0b04026.woff2 +0 -0
  105. package/dist/fonts/Xiaolai/Xiaolai-Regular-41521fade99856108931b4768b1b2648.woff2 +0 -0
  106. package/dist/fonts/Xiaolai/Xiaolai-Regular-450da755d5bcb70906e1295e559b9602.woff2 +0 -0
  107. package/dist/fonts/Xiaolai/Xiaolai-Regular-452225341522a7942f0f6aab1a5c91a3.woff2 +0 -0
  108. package/dist/fonts/Xiaolai/Xiaolai-Regular-4535823663ad81405188a528d8f2b1a2.woff2 +0 -0
  109. package/dist/fonts/Xiaolai/Xiaolai-Regular-4806e761d750087c2d734fc64596eaff.woff2 +0 -0
  110. package/dist/fonts/Xiaolai/Xiaolai-Regular-4a0fdb40036e87b40aa08dd30584cb85.woff2 +0 -0
  111. package/dist/fonts/Xiaolai/Xiaolai-Regular-4a38cc3e9cf104e69ba246d37f8cf135.woff2 +0 -0
  112. package/dist/fonts/Xiaolai/Xiaolai-Regular-4aca6a43e59aceee2166b0c7e4e85ef1.woff2 +0 -0
  113. package/dist/fonts/Xiaolai/Xiaolai-Regular-4bfaa8ffa64c5ee560aa2daba7c9cbd3.woff2 +0 -0
  114. package/dist/fonts/Xiaolai/Xiaolai-Regular-4dc6d5f188d5c96d44815cd1e81aa885.woff2 +0 -0
  115. package/dist/fonts/Xiaolai/Xiaolai-Regular-4ddc14ed3eb0c3e46364317dfc0144a3.woff2 +0 -0
  116. package/dist/fonts/Xiaolai/Xiaolai-Regular-4ee10ae43505e2e0bc62656ced49c0fa.woff2 +0 -0
  117. package/dist/fonts/Xiaolai/Xiaolai-Regular-4f50e5136e136527280bc902c5817561.woff2 +0 -0
  118. package/dist/fonts/Xiaolai/Xiaolai-Regular-51502f1206be09c565f1547c406e9558.woff2 +0 -0
  119. package/dist/fonts/Xiaolai/Xiaolai-Regular-51a0e808bbc8361236ac521a119758a3.woff2 +0 -0
  120. package/dist/fonts/Xiaolai/Xiaolai-Regular-52a84a22fd1369bffeaf21da2d6158dc.woff2 +0 -0
  121. package/dist/fonts/Xiaolai/Xiaolai-Regular-5330a2119a716e4e7224ed108b085dac.woff2 +0 -0
  122. package/dist/fonts/Xiaolai/Xiaolai-Regular-543fa46ace099a7099dad69123399400.woff2 +0 -0
  123. package/dist/fonts/Xiaolai/Xiaolai-Regular-544fc28abe2c5c30e62383fd4dac255f.woff2 +0 -0
  124. package/dist/fonts/Xiaolai/Xiaolai-Regular-54acdfc2166ad7fcbd074f75fd4a56ba.woff2 +0 -0
  125. package/dist/fonts/Xiaolai/Xiaolai-Regular-5572b3513ba8df57a3d5d7303ee6b11b.woff2 +0 -0
  126. package/dist/fonts/Xiaolai/Xiaolai-Regular-56467a5c8840c4d23a60b2f935114848.woff2 +0 -0
  127. package/dist/fonts/Xiaolai/Xiaolai-Regular-56a32a7689abd0326e57c10c6c069bb4.woff2 +0 -0
  128. package/dist/fonts/Xiaolai/Xiaolai-Regular-57862b464a55b18c7bf234ce22907d73.woff2 +0 -0
  129. package/dist/fonts/Xiaolai/Xiaolai-Regular-583d166e56ba0de4b77eabb47ef67839.woff2 +0 -0
  130. package/dist/fonts/Xiaolai/Xiaolai-Regular-5882ffa04f32584d26109137e2da4352.woff2 +0 -0
  131. package/dist/fonts/Xiaolai/Xiaolai-Regular-58fd02350d0bc52cf1ca3bb32ce9766e.woff2 +0 -0
  132. package/dist/fonts/Xiaolai/Xiaolai-Regular-5935a5775af3d5c6307ac667bd9ae74e.woff2 +0 -0
  133. package/dist/fonts/Xiaolai/Xiaolai-Regular-59e9ff77b0efaf684bc09274fb6908c9.woff2 +0 -0
  134. package/dist/fonts/Xiaolai/Xiaolai-Regular-5a1ce3117cfe90c48e8fb4a9a00f694d.woff2 +0 -0
  135. package/dist/fonts/Xiaolai/Xiaolai-Regular-5a45d991244d4c7140217e1e5f5ca4f4.woff2 +0 -0
  136. package/dist/fonts/Xiaolai/Xiaolai-Regular-5a7fac4b8b23a6e4e5ba0c9bf1756c91.woff2 +0 -0
  137. package/dist/fonts/Xiaolai/Xiaolai-Regular-5b0ed6971aaab9c8ad563230bd5471a7.woff2 +0 -0
  138. package/dist/fonts/Xiaolai/Xiaolai-Regular-5d2898fbc097a7e24c6f38d80587621e.woff2 +0 -0
  139. package/dist/fonts/Xiaolai/Xiaolai-Regular-603aefd23e350ba7eb124273e3c9bcf1.woff2 +0 -0
  140. package/dist/fonts/Xiaolai/Xiaolai-Regular-60a3089806700d379f11827ee9843b6b.woff2 +0 -0
  141. package/dist/fonts/Xiaolai/Xiaolai-Regular-60a41c7e1c68f22424e6d22df544bc82.woff2 +0 -0
  142. package/dist/fonts/Xiaolai/Xiaolai-Regular-642b26e2e5f5fb780b51b593dbc8c851.woff2 +0 -0
  143. package/dist/fonts/Xiaolai/Xiaolai-Regular-66493ba5a8367f2928812f446f47b56a.woff2 +0 -0
  144. package/dist/fonts/Xiaolai/Xiaolai-Regular-670ba603758d94268e8606f240a42e12.woff2 +0 -0
  145. package/dist/fonts/Xiaolai/Xiaolai-Regular-671a2c20b1eb9e4ef8a192833940e319.woff2 +0 -0
  146. package/dist/fonts/Xiaolai/Xiaolai-Regular-684d65f1793cac449dde5d59cb3c47fb.woff2 +0 -0
  147. package/dist/fonts/Xiaolai/Xiaolai-Regular-69c09cc5fa3e55c74fc4821f76909cc3.woff2 +0 -0
  148. package/dist/fonts/Xiaolai/Xiaolai-Regular-6ae5b42180ad70b971c91e7eefb8eba2.woff2 +0 -0
  149. package/dist/fonts/Xiaolai/Xiaolai-Regular-6e092f71c1e634059ada0e52abadce67.woff2 +0 -0
  150. package/dist/fonts/Xiaolai/Xiaolai-Regular-6f3256af8454371776bc46670d33cc65.woff2 +0 -0
  151. package/dist/fonts/Xiaolai/Xiaolai-Regular-6fe5c5973cc06f74b2387a631ea36b88.woff2 +0 -0
  152. package/dist/fonts/Xiaolai/Xiaolai-Regular-70c2eb8d64e71a42a834eb857ea9df51.woff2 +0 -0
  153. package/dist/fonts/Xiaolai/Xiaolai-Regular-70e811fd7994e61f408c923de6ddd078.woff2 +0 -0
  154. package/dist/fonts/Xiaolai/Xiaolai-Regular-7197d6fda6cba7c3874c53d6381ca239.woff2 +0 -0
  155. package/dist/fonts/Xiaolai/Xiaolai-Regular-72252d73220fa3cd856677888cee1635.woff2 +0 -0
  156. package/dist/fonts/Xiaolai/Xiaolai-Regular-72536a3d71b694a0d53dd90ddceae41e.woff2 +0 -0
  157. package/dist/fonts/Xiaolai/Xiaolai-Regular-726303e0774b4e678bff8c2deb6ca603.woff2 +0 -0
  158. package/dist/fonts/Xiaolai/Xiaolai-Regular-733171b4ffcd17ea1fe1c0ba627173bf.woff2 +0 -0
  159. package/dist/fonts/Xiaolai/Xiaolai-Regular-739bc1a567439c7cffcd1614644593d2.woff2 +0 -0
  160. package/dist/fonts/Xiaolai/Xiaolai-Regular-73e309718fd16cea44b4d54a33581811.woff2 +0 -0
  161. package/dist/fonts/Xiaolai/Xiaolai-Regular-7494dc504ae00ee9cd0505f990f88c5d.woff2 +0 -0
  162. package/dist/fonts/Xiaolai/Xiaolai-Regular-74e2263a91439c25b91d5132ce9f4d62.woff2 +0 -0
  163. package/dist/fonts/Xiaolai/Xiaolai-Regular-761d05e3cd968cf574166867998ef06a.woff2 +0 -0
  164. package/dist/fonts/Xiaolai/Xiaolai-Regular-7718fe60986d8b42b1be9c5ace5ccf25.woff2 +0 -0
  165. package/dist/fonts/Xiaolai/Xiaolai-Regular-774d4f764a1299da5d28ec2f2ffe0d69.woff2 +0 -0
  166. package/dist/fonts/Xiaolai/Xiaolai-Regular-79d494361ae093b69e74ee9dbe65bfd4.woff2 +0 -0
  167. package/dist/fonts/Xiaolai/Xiaolai-Regular-79f007c1c6d07557120982951ea67998.woff2 +0 -0
  168. package/dist/fonts/Xiaolai/Xiaolai-Regular-7a07ddc0f0c0f5f4a9bad6ee3dda66b5.woff2 +0 -0
  169. package/dist/fonts/Xiaolai/Xiaolai-Regular-7ab2bed91166a9dca83a5ebfbe2a7f38.woff2 +0 -0
  170. package/dist/fonts/Xiaolai/Xiaolai-Regular-7ccce86603f80a099ddb0cb21d4ae3e3.woff2 +0 -0
  171. package/dist/fonts/Xiaolai/Xiaolai-Regular-7e4bde7e9c7f84cd34d8a845e384c746.woff2 +0 -0
  172. package/dist/fonts/Xiaolai/Xiaolai-Regular-7e929f262f30c8ee78bf398150b1a7cd.woff2 +0 -0
  173. package/dist/fonts/Xiaolai/Xiaolai-Regular-7eb9fffd1aa890d07d0f88cc82e6cfe4.woff2 +0 -0
  174. package/dist/fonts/Xiaolai/Xiaolai-Regular-7f855356ab893b0d2b9c1c83b8116f0e.woff2 +0 -0
  175. package/dist/fonts/Xiaolai/Xiaolai-Regular-829615148e6357d826b9242eb7fbbd1e.woff2 +0 -0
  176. package/dist/fonts/Xiaolai/Xiaolai-Regular-866fa7613df6b3fd272bcfd4530c0bb9.woff2 +0 -0
  177. package/dist/fonts/Xiaolai/Xiaolai-Regular-87599f94b6cc129d505b375798d0d751.woff2 +0 -0
  178. package/dist/fonts/Xiaolai/Xiaolai-Regular-8c2f33cee3993174f7e87c28e4bf42ee.woff2 +0 -0
  179. package/dist/fonts/Xiaolai/Xiaolai-Regular-8d3bcabb847b56243b16afe62adaaf21.woff2 +0 -0
  180. package/dist/fonts/Xiaolai/Xiaolai-Regular-8de5b863cb50dfefdd07cb11c774d579.woff2 +0 -0
  181. package/dist/fonts/Xiaolai/Xiaolai-Regular-8e9f97f01034820170065b2921b4fb5e.woff2 +0 -0
  182. package/dist/fonts/Xiaolai/Xiaolai-Regular-8f476c4c99813d57cbe6eca4727388ad.woff2 +0 -0
  183. package/dist/fonts/Xiaolai/Xiaolai-Regular-903bb6865f3452e2fda42e3a25547bc5.woff2 +0 -0
  184. package/dist/fonts/Xiaolai/Xiaolai-Regular-91ddb2969bf2d31ba02ad82998d1314c.woff2 +0 -0
  185. package/dist/fonts/Xiaolai/Xiaolai-Regular-938d90c10ff8c20386af7f242c05d6b0.woff2 +0 -0
  186. package/dist/fonts/Xiaolai/Xiaolai-Regular-93fc8f28a33234bcadf1527cafabd502.woff2 +0 -0
  187. package/dist/fonts/Xiaolai/Xiaolai-Regular-95429962233afd82db1c27df1500a28c.woff2 +0 -0
  188. package/dist/fonts/Xiaolai/Xiaolai-Regular-9544732d2e62d1a429674f8ee41b5d3a.woff2 +0 -0
  189. package/dist/fonts/Xiaolai/Xiaolai-Regular-9592bfc861f07bcb8d75c196b370e548.woff2 +0 -0
  190. package/dist/fonts/Xiaolai/Xiaolai-Regular-95bfd249da4902577b4b7d76ebdd0b44.woff2 +0 -0
  191. package/dist/fonts/Xiaolai/Xiaolai-Regular-968cffdc8ee679da094e77ebf50f58ef.woff2 +0 -0
  192. package/dist/fonts/Xiaolai/Xiaolai-Regular-97f7f48ce90c9429bf32ae51469db74d.woff2 +0 -0
  193. package/dist/fonts/Xiaolai/Xiaolai-Regular-982b630266d87db93d2539affb1275c6.woff2 +0 -0
  194. package/dist/fonts/Xiaolai/Xiaolai-Regular-98f2ad84457de7f3740d9920b8fa8667.woff2 +0 -0
  195. package/dist/fonts/Xiaolai/Xiaolai-Regular-99a16ef6a64934d5781933dbd9c46b2e.woff2 +0 -0
  196. package/dist/fonts/Xiaolai/Xiaolai-Regular-9cfb2a77a4e45025105ad29a1748b90d.woff2 +0 -0
  197. package/dist/fonts/Xiaolai/Xiaolai-Regular-9d81066dd2b337c938df6e90380a00dc.woff2 +0 -0
  198. package/dist/fonts/Xiaolai/Xiaolai-Regular-9eb5a99df4e76ac3363453ac9ca288b1.woff2 +0 -0
  199. package/dist/fonts/Xiaolai/Xiaolai-Regular-a004ddfcb26e67bd6e678c8ed19e25ce.woff2 +0 -0
  200. package/dist/fonts/Xiaolai/Xiaolai-Regular-a0ca5df4258213d7fc9fce80f65ce760.woff2 +0 -0
  201. package/dist/fonts/Xiaolai/Xiaolai-Regular-a1f916d6039285c4ffb900cd654e418f.woff2 +0 -0
  202. package/dist/fonts/Xiaolai/Xiaolai-Regular-a203b91dad570bf05a58c3c3ddb529bf.woff2 +0 -0
  203. package/dist/fonts/Xiaolai/Xiaolai-Regular-a365e82ed54697a52f27adcea1315fe8.woff2 +0 -0
  204. package/dist/fonts/Xiaolai/Xiaolai-Regular-a4c34be6d42152e64b0df90bc4607f64.woff2 +0 -0
  205. package/dist/fonts/Xiaolai/Xiaolai-Regular-a7accba310e821da5505f71c03b76bdb.woff2 +0 -0
  206. package/dist/fonts/Xiaolai/Xiaolai-Regular-aa0d470430e6391eca720c7cfa44446f.woff2 +0 -0
  207. package/dist/fonts/Xiaolai/Xiaolai-Regular-aa5c9ca6cf4fba00433b7aa3fa10671a.woff2 +0 -0
  208. package/dist/fonts/Xiaolai/Xiaolai-Regular-ac9ceb44437becc3e9c4dbfebab7fc2d.woff2 +0 -0
  209. package/dist/fonts/Xiaolai/Xiaolai-Regular-b1220a3c61f85cc0408deedb4c5f57a2.woff2 +0 -0
  210. package/dist/fonts/Xiaolai/Xiaolai-Regular-b358f7a51ece39a3247942b1feabdb29.woff2 +0 -0
  211. package/dist/fonts/Xiaolai/Xiaolai-Regular-b57aaedfd8ebdf3931f25119dc6a5eb2.woff2 +0 -0
  212. package/dist/fonts/Xiaolai/Xiaolai-Regular-b5c1596551c256e0e9cf02028595b092.woff2 +0 -0
  213. package/dist/fonts/Xiaolai/Xiaolai-Regular-b6d128682ee29e471486354d486a1b90.woff2 +0 -0
  214. package/dist/fonts/Xiaolai/Xiaolai-Regular-b6fd38ca30869792244804b04bc058da.woff2 +0 -0
  215. package/dist/fonts/Xiaolai/Xiaolai-Regular-b7d203b051eff504ff59ddca7576b6a9.woff2 +0 -0
  216. package/dist/fonts/Xiaolai/Xiaolai-Regular-b96d9226ce77ec94ceca043d712182e6.woff2 +0 -0
  217. package/dist/fonts/Xiaolai/Xiaolai-Regular-ba3de316d63c7e339987b16f41a0b879.woff2 +0 -0
  218. package/dist/fonts/Xiaolai/Xiaolai-Regular-bafff7a14c27403dcc6cf1432e8ea836.woff2 +0 -0
  219. package/dist/fonts/Xiaolai/Xiaolai-Regular-bd77e3c7f9e0b072d96af37f73d1aa32.woff2 +0 -0
  220. package/dist/fonts/Xiaolai/Xiaolai-Regular-be549ab72f0719d606a5c01e2c0219b6.woff2 +0 -0
  221. package/dist/fonts/Xiaolai/Xiaolai-Regular-c16ed9740b85badf16e86ea782a3062f.woff2 +0 -0
  222. package/dist/fonts/Xiaolai/Xiaolai-Regular-c1f94158256bb1f3bf665b053d895af9.woff2 +0 -0
  223. package/dist/fonts/Xiaolai/Xiaolai-Regular-c40533fdf4cc57177b12803598af7e59.woff2 +0 -0
  224. package/dist/fonts/Xiaolai/Xiaolai-Regular-c4a687ac4f0c2766eefc9f77ed99cddf.woff2 +0 -0
  225. package/dist/fonts/Xiaolai/Xiaolai-Regular-c69f61a4ab18d0488c8d1fc12e7028e8.woff2 +0 -0
  226. package/dist/fonts/Xiaolai/Xiaolai-Regular-c8b71798409ccc126ee264a00aadcf21.woff2 +0 -0
  227. package/dist/fonts/Xiaolai/Xiaolai-Regular-c99eda15fc26a2941579560f76c3a5cf.woff2 +0 -0
  228. package/dist/fonts/Xiaolai/Xiaolai-Regular-cb17fc3db95f6d139afc9d31a8e93293.woff2 +0 -0
  229. package/dist/fonts/Xiaolai/Xiaolai-Regular-cbaaefaaf326668277aa24dfa93c4d28.woff2 +0 -0
  230. package/dist/fonts/Xiaolai/Xiaolai-Regular-cd145ce4a0ea18469358df53c207bc1b.woff2 +0 -0
  231. package/dist/fonts/Xiaolai/Xiaolai-Regular-cdbce89e82cc1ab53a2decbf5819278f.woff2 +0 -0
  232. package/dist/fonts/Xiaolai/Xiaolai-Regular-ce4884f96f11589608b76b726a755803.woff2 +0 -0
  233. package/dist/fonts/Xiaolai/Xiaolai-Regular-cf2cc71752631e579e35b0e423bf2638.woff2 +0 -0
  234. package/dist/fonts/Xiaolai/Xiaolai-Regular-cf6ff4e0f491ca0cf3038187a997b9b4.woff2 +0 -0
  235. package/dist/fonts/Xiaolai/Xiaolai-Regular-cfb211578629b7e8153b37240de6a9d5.woff2 +0 -0
  236. package/dist/fonts/Xiaolai/Xiaolai-Regular-d0cf73942fea1c74edbdf0b3011f4656.woff2 +0 -0
  237. package/dist/fonts/Xiaolai/Xiaolai-Regular-d2666cbed13462c5dc36fa2f15c202ca.woff2 +0 -0
  238. package/dist/fonts/Xiaolai/Xiaolai-Regular-d3716376641d615e2995605b29bca7b6.woff2 +0 -0
  239. package/dist/fonts/Xiaolai/Xiaolai-Regular-dac48066b5883d8b4551fc584f0c2a3e.woff2 +0 -0
  240. package/dist/fonts/Xiaolai/Xiaolai-Regular-dbea1af6dcd9860be40c3d18254338f5.woff2 +0 -0
  241. package/dist/fonts/Xiaolai/Xiaolai-Regular-e11567fd2accf9957cd0d3c2be937d87.woff2 +0 -0
  242. package/dist/fonts/Xiaolai/Xiaolai-Regular-e2ead7ea7da0437f085f42ffc05f8d13.woff2 +0 -0
  243. package/dist/fonts/Xiaolai/Xiaolai-Regular-e3fcf5180fd466c8915c4e8069491054.woff2 +0 -0
  244. package/dist/fonts/Xiaolai/Xiaolai-Regular-e480d9c614742d05f0e78f274f1e69e6.woff2 +0 -0
  245. package/dist/fonts/Xiaolai/Xiaolai-Regular-e4bca6cfa53e499cae0a6be4894a90e9.woff2 +0 -0
  246. package/dist/fonts/Xiaolai/Xiaolai-Regular-e51ef413167c6e14e0c0fdcc585f2fc9.woff2 +0 -0
  247. package/dist/fonts/Xiaolai/Xiaolai-Regular-e5f453bb04da18eed01675eeebd88bf8.woff2 +0 -0
  248. package/dist/fonts/Xiaolai/Xiaolai-Regular-e656f091b9dc4709722c9f4b84d3c797.woff2 +0 -0
  249. package/dist/fonts/Xiaolai/Xiaolai-Regular-ec181b795ac1fb5a50d700b6e996d745.woff2 +0 -0
  250. package/dist/fonts/Xiaolai/Xiaolai-Regular-ee8bae97908d5147b423f77ad0d3c1bb.woff2 +0 -0
  251. package/dist/fonts/Xiaolai/Xiaolai-Regular-f0f13b5c60e0af5553bd359f5513be1b.woff2 +0 -0
  252. package/dist/fonts/Xiaolai/Xiaolai-Regular-f2b54d4e7be0eaefe1c2c56836fa5368.woff2 +0 -0
  253. package/dist/fonts/Xiaolai/Xiaolai-Regular-f56414bf9bced67990def8660e306759.woff2 +0 -0
  254. package/dist/fonts/Xiaolai/Xiaolai-Regular-f5d079153c99a25b9be5b8583c4cc8a7.woff2 +0 -0
  255. package/dist/fonts/Xiaolai/Xiaolai-Regular-f6032fc06eb20480f096199713f70885.woff2 +0 -0
  256. package/dist/fonts/Xiaolai/Xiaolai-Regular-f8ee5d36068a42b51d0e4a1116cfcec1.woff2 +0 -0
  257. package/dist/html-C9xlBp6Q.cjs +25 -0
  258. package/dist/html-COoGaLph.js +2788 -0
  259. package/dist/index-BF-WAqsp.cjs +5 -0
  260. package/dist/index-C0BTrOQP.js +28947 -0
  261. package/dist/index.cjs +1 -0
  262. package/dist/index.d.ts +2 -0
  263. package/dist/index.mjs +4 -0
  264. package/dist/logo.svg +1 -0
  265. package/dist/markdown-B0Hak0DU.cjs +62 -0
  266. package/dist/markdown-BDWdOrGs.js +3192 -0
  267. package/dist/postcss-Byg44mmr.cjs +61 -0
  268. package/dist/postcss-CCzdrMa5.js +4735 -0
  269. package/dist/standalone-9koseMU7.js +2429 -0
  270. package/dist/standalone-B68uB4ar.cjs +29 -0
  271. package/dist/style.css +1 -0
  272. package/dist/typescript-BKKrhwbC.cjs +21 -0
  273. package/dist/typescript-BWpY7CXP.js +12965 -0
  274. package/package.json +106 -0
@@ -0,0 +1,4453 @@
1
+ var ls = Object.defineProperty, Xn = (e, t) => {
2
+ for (var n in t) ls(e, n, { get: t[n], enumerable: !0 });
3
+ }, cs = {};
4
+ Xn(cs, { languages: () => fy, options: () => yy, printers: () => dy });
5
+ var Ds = [{ name: "JavaScript", type: "programming", aceMode: "javascript", extensions: [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".start.frag", ".end.frag", ".wxs"], filenames: ["Jakefile", "start.frag", "end.frag"], tmScope: "source.js", aliases: ["js", "node"], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", 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", aceMode: "javascript", extensions: [".js.flow"], filenames: [], tmScope: "source.js", aliases: [], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], parsers: ["flow", "babel-flow"], vscodeLanguageIds: ["javascript"], linguistLanguageId: 183 }, { name: "JSX", type: "programming", aceMode: "javascript", extensions: [".jsx"], filenames: void 0, tmScope: "source.js.jsx", aliases: void 0, codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", interpreters: void 0, parsers: ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], vscodeLanguageIds: ["javascriptreact"], group: "JavaScript", linguistLanguageId: 183 }, { name: "TypeScript", type: "programming", aceMode: "typescript", extensions: [".ts", ".cts", ".mts"], tmScope: "source.ts", aliases: ["ts"], codemirrorMode: "javascript", codemirrorMimeType: "application/typescript", interpreters: ["bun", "deno", "ts-node", "tsx"], parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescript"], linguistLanguageId: 378 }, { name: "TSX", type: "programming", aceMode: "tsx", extensions: [".tsx"], tmScope: "source.tsx", codemirrorMode: "jsx", codemirrorMimeType: "text/typescript-jsx", group: "TypeScript", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescriptreact"], linguistLanguageId: 94901924 }], Zr = {};
6
+ Xn(Zr, { canAttachComment: () => jo, embed: () => Sp, features: () => ay, getVisitorKeys: () => su, handleComments: () => fi, hasPrettierIgnore: () => yr, insertPragma: () => qp, isBlockComment: () => he, isGap: () => Fi, massageAstNode: () => vo, print: () => Yr, printComment: () => Wp, printPrettierIgnored: () => Yr, willPrintOwnComments: () => gi });
7
+ var Rn = (e, t) => (n, r, ...u) => n | 1 && r == null ? void 0 : (t.call(r) ?? r[e]).apply(r, u), ys = String.prototype.replaceAll ?? function(e, t) {
8
+ return e.global ? this.replace(e, t) : this.split(e).join(t);
9
+ }, ds = Rn("replaceAll", function() {
10
+ if (typeof this == "string") return ys;
11
+ }), z = ds;
12
+ function fs(e) {
13
+ return this[e < 0 ? this.length + e : e];
14
+ }
15
+ var ms = Rn("at", function() {
16
+ if (Array.isArray(this) || typeof this == "string") return fs;
17
+ }), O = ms;
18
+ function Fs(e) {
19
+ return e !== null && typeof e == "object";
20
+ }
21
+ var eu = Fs;
22
+ function* Es(e, t) {
23
+ let { getVisitorKeys: n, filter: r = () => !0 } = t, u = (a) => eu(a) && r(a);
24
+ for (let a of n(e)) {
25
+ let s = e[a];
26
+ if (Array.isArray(s)) for (let o of s) u(o) && (yield o);
27
+ else u(s) && (yield s);
28
+ }
29
+ }
30
+ function* As(e, t) {
31
+ let n = [e];
32
+ for (let r = 0; r < n.length; r++) {
33
+ let u = n[r];
34
+ for (let a of Es(u, t)) yield a, n.push(a);
35
+ }
36
+ }
37
+ function gs(e, { getVisitorKeys: t, predicate: n }) {
38
+ for (let r of As(e, { getVisitorKeys: t })) if (n(r)) return !0;
39
+ return !1;
40
+ }
41
+ var Cs = () => /[#*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-\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-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\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\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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;
42
+ function hs(e) {
43
+ return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
44
+ }
45
+ function xs(e) {
46
+ 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 <= 94198 || e >= 94208 && e <= 101589 || e >= 101631 && e <= 101662 || e >= 101760 && e <= 101874 || 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 <= 128728 || 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 <= 129674 || e >= 129678 && e <= 129734 || e === 129736 || e >= 129741 && e <= 129756 || e >= 129759 && e <= 129770 || e >= 129775 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
47
+ }
48
+ var Ts = "©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇", Ss = /[^\x20-\x7F]/u, bs = new Set(Ts);
49
+ function Bs(e) {
50
+ if (!e) return 0;
51
+ if (!Ss.test(e)) return e.length;
52
+ e = e.replace(Cs(), (n) => bs.has(n) ? " " : " ");
53
+ let t = 0;
54
+ for (let n of e) {
55
+ let r = n.codePointAt(0);
56
+ r <= 31 || r >= 127 && r <= 159 || r >= 768 && r <= 879 || r >= 65024 && r <= 65039 || (t += hs(r) || xs(r) ? 2 : 1);
57
+ }
58
+ return t;
59
+ }
60
+ var it = Bs;
61
+ function _n(e) {
62
+ return (t, n, r) => {
63
+ let u = !!r?.backwards;
64
+ if (n === !1) return !1;
65
+ let { length: a } = t, s = n;
66
+ for (; s >= 0 && s < a; ) {
67
+ let o = t.charAt(s);
68
+ if (e instanceof RegExp) {
69
+ if (!e.test(o)) return s;
70
+ } else if (!e.includes(o)) return s;
71
+ u ? s-- : s++;
72
+ }
73
+ return s === -1 || s === a ? s : !1;
74
+ };
75
+ }
76
+ var pt = _n(" "), vs = _n(",; "), Ps = _n(/[^\n\r]/u), xr = (e) => e === `
77
+ ` || e === "\r" || e === "\u2028" || e === "\u2029";
78
+ function ks(e, t, n) {
79
+ let r = !!n?.backwards;
80
+ if (t === !1) return !1;
81
+ let u = e.charAt(t);
82
+ if (r) {
83
+ if (e.charAt(t - 1) === "\r" && u === `
84
+ `) return t - 2;
85
+ if (xr(u)) return t - 1;
86
+ } else {
87
+ if (u === "\r" && e.charAt(t + 1) === `
88
+ `) return t + 2;
89
+ if (xr(u)) return t + 1;
90
+ }
91
+ return t;
92
+ }
93
+ var lt = ks;
94
+ function ws(e, t, n = {}) {
95
+ let r = pt(e, n.backwards ? t - 1 : t, n), u = lt(e, r, n);
96
+ return r !== u;
97
+ }
98
+ var oe = ws;
99
+ function Is(e, t) {
100
+ if (t === !1) return !1;
101
+ if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
102
+ for (let n = t + 2; n < e.length; ++n) if (e.charAt(n) === "*" && e.charAt(n + 1) === "/") return n + 2;
103
+ }
104
+ return t;
105
+ }
106
+ var Wn = Is;
107
+ function Ns(e, t) {
108
+ return t === !1 ? !1 : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? Ps(e, t) : t;
109
+ }
110
+ var Un = Ns;
111
+ function js(e, t) {
112
+ let n = null, r = t;
113
+ for (; r !== n; ) n = r, r = vs(e, r), r = Wn(e, r), r = pt(e, r);
114
+ return r = Un(e, r), r = lt(e, r), r !== !1 && oe(e, r);
115
+ }
116
+ var $n = js;
117
+ function Ms(e) {
118
+ return Array.isArray(e) && e.length > 0;
119
+ }
120
+ var _ = Ms, Ls = () => {
121
+ }, Os = Ls, tu = Object.freeze({ character: "'", codePoint: 39 }), nu = Object.freeze({ character: '"', codePoint: 34 }), Js = Object.freeze({ preferred: tu, alternate: nu }), qs = Object.freeze({ preferred: nu, alternate: tu });
122
+ function Xs(e, t) {
123
+ let { preferred: n, alternate: r } = t === !0 || t === "'" ? Js : qs, { length: u } = e, a = 0, s = 0;
124
+ for (let o = 0; o < u; o++) {
125
+ let p = e.charCodeAt(o);
126
+ p === n.codePoint ? a++ : p === r.codePoint && s++;
127
+ }
128
+ return (a > s ? r : n).character;
129
+ }
130
+ var ru = Xs, Rs = /\\(["'\\])|(["'])/gu;
131
+ function _s(e, t) {
132
+ let n = t === '"' ? "'" : '"', r = z(0, e, Rs, (u, a, s) => a ? a === n ? n : u : s === t ? "\\" + s : s);
133
+ return t + r + t;
134
+ }
135
+ var Ws = _s;
136
+ function Us(e, t) {
137
+ let n = e.slice(1, -1), r = t.parser === "json" || t.parser === "jsonc" || t.parser === "json5" && t.quoteProps === "preserve" && !t.singleQuote ? '"' : t.__isInHtmlAttribute ? "'" : ru(n, t.singleQuote);
138
+ return e.charAt(0) === r ? e : Ws(n, r);
139
+ }
140
+ var ct = Us, uu = (e) => Number.isInteger(e) && e >= 0;
141
+ function j(e) {
142
+ let t = e.range?.[0] ?? e.start, n = (e.declaration?.decorators ?? e.decorators)?.[0];
143
+ return n ? Math.min(j(n), t) : t;
144
+ }
145
+ function N(e) {
146
+ return e.range?.[1] ?? e.end;
147
+ }
148
+ function nn(e, t) {
149
+ let n = j(e);
150
+ return uu(n) && n === j(t);
151
+ }
152
+ function $s(e, t) {
153
+ let n = N(e);
154
+ return uu(n) && n === N(t);
155
+ }
156
+ function Gs(e, t) {
157
+ return nn(e, t) && $s(e, t);
158
+ }
159
+ var xt = null;
160
+ function bt(e) {
161
+ if (xt !== null && typeof xt.property) {
162
+ let t = xt;
163
+ return xt = bt.prototype = null, t;
164
+ }
165
+ return xt = bt.prototype = e ?? /* @__PURE__ */ Object.create(null), new bt();
166
+ }
167
+ var Vs = 10;
168
+ for (let e = 0; e <= Vs; e++) bt();
169
+ function Ks(e) {
170
+ return bt(e);
171
+ }
172
+ function Hs(e, t = "type") {
173
+ Ks(e);
174
+ function n(r) {
175
+ let u = r[t], a = e[u];
176
+ if (!Array.isArray(a)) throw Object.assign(new Error(`Missing visitor keys for '${u}'.`), { node: r });
177
+ return a;
178
+ }
179
+ return n;
180
+ }
181
+ var au = Hs, i = [["decorators", "key", "typeAnnotation", "value"], [], ["elementType"], ["expression"], ["expression", "typeAnnotation"], ["left", "right"], ["argument"], ["directives", "body"], ["label"], ["callee", "typeArguments", "arguments"], ["body"], ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body", "superTypeParameters"], ["id", "typeParameters"], ["decorators", "key", "typeParameters", "params", "returnType", "body"], ["decorators", "variance", "key", "typeAnnotation", "value"], ["name", "typeAnnotation"], ["test", "consequent", "alternate"], ["checkType", "extendsType", "trueType", "falseType"], ["value"], ["id", "body"], ["declaration", "specifiers", "source", "attributes"], ["id"], ["id", "typeParameters", "extends", "body"], ["typeAnnotation"], ["id", "typeParameters", "right"], ["body", "test"], ["members"], ["id", "init"], ["exported"], ["left", "right", "body"], ["id", "typeParameters", "params", "predicate", "returnType", "body"], ["id", "params", "body", "typeParameters", "returnType"], ["key", "value"], ["local"], ["objectType", "indexType"], ["typeParameter"], ["types"], ["node"], ["object", "property"], ["argument", "cases"], ["pattern", "body", "guard"], ["literal"], ["decorators", "key", "value"], ["expressions"], ["qualification", "id"], ["decorators", "key", "typeAnnotation"], ["typeParameters", "params", "returnType"], ["expression", "typeArguments"], ["params"], ["parameterName", "typeAnnotation"]], zs = { AccessorProperty: i[0], AnyTypeAnnotation: i[1], ArgumentPlaceholder: i[1], ArrayExpression: ["elements"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrayTypeAnnotation: i[2], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], AsConstExpression: i[3], AsExpression: i[4], AssignmentExpression: i[5], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], AwaitExpression: i[6], BigIntLiteral: i[1], BigIntLiteralTypeAnnotation: i[1], BigIntTypeAnnotation: i[1], BinaryExpression: i[5], BindExpression: ["object", "callee"], BlockStatement: i[7], BooleanLiteral: i[1], BooleanLiteralTypeAnnotation: i[1], BooleanTypeAnnotation: i[1], BreakStatement: i[8], CallExpression: i[9], CatchClause: ["param", "body"], ChainExpression: i[3], ClassAccessorProperty: i[0], ClassBody: i[10], ClassDeclaration: i[11], ClassExpression: i[11], ClassImplements: i[12], ClassMethod: i[13], ClassPrivateMethod: i[13], ClassPrivateProperty: i[14], ClassProperty: i[14], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: i[15], ConditionalExpression: i[16], ConditionalTypeAnnotation: i[17], ContinueStatement: i[8], DebuggerStatement: i[1], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclaredPredicate: i[18], DeclareEnum: i[19], DeclareExportAllDeclaration: ["source", "attributes"], DeclareExportDeclaration: i[20], DeclareFunction: ["id", "predicate"], DeclareHook: i[21], DeclareInterface: i[22], DeclareModule: i[19], DeclareModuleExports: i[23], DeclareNamespace: i[19], DeclareOpaqueType: ["id", "typeParameters", "supertype", "lowerBound", "upperBound"], DeclareTypeAlias: i[24], DeclareVariable: i[21], Decorator: i[3], Directive: i[18], DirectiveLiteral: i[1], DoExpression: i[10], DoWhileStatement: i[25], EmptyStatement: i[1], EmptyTypeAnnotation: i[1], EnumBigIntBody: i[26], EnumBigIntMember: i[27], EnumBooleanBody: i[26], EnumBooleanMember: i[27], EnumDeclaration: i[19], EnumDefaultedMember: i[21], EnumNumberBody: i[26], EnumNumberMember: i[27], EnumStringBody: i[26], EnumStringMember: i[27], EnumSymbolBody: i[26], ExistsTypeAnnotation: i[1], ExperimentalRestProperty: i[6], ExperimentalSpreadProperty: i[6], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportDefaultSpecifier: i[28], ExportNamedDeclaration: i[20], ExportNamespaceSpecifier: i[28], ExportSpecifier: ["local", "exported"], ExpressionStatement: i[3], File: ["program"], ForInStatement: i[29], ForOfStatement: i[29], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: i[30], FunctionExpression: i[30], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: i[15], GenericTypeAnnotation: i[12], HookDeclaration: i[31], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], Identifier: ["typeAnnotation", "decorators"], IfStatement: i[16], ImportAttribute: i[32], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: i[33], ImportExpression: ["source", "options"], ImportNamespaceSpecifier: i[33], ImportSpecifier: ["imported", "local"], IndexedAccessType: i[34], InferredPredicate: i[1], InferTypeAnnotation: i[35], InterfaceDeclaration: i[22], InterfaceExtends: i[12], InterfaceTypeAnnotation: ["extends", "body"], InterpreterDirective: i[1], IntersectionTypeAnnotation: i[36], JsExpressionRoot: i[37], JsonRoot: i[37], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXClosingFragment: i[1], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: i[1], JSXExpressionContainer: i[3], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXIdentifier: i[1], JSXMemberExpression: i[38], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeArguments", "attributes"], JSXOpeningFragment: i[1], JSXSpreadAttribute: i[6], JSXSpreadChild: i[3], JSXText: i[1], KeyofTypeAnnotation: i[6], LabeledStatement: ["label", "body"], Literal: i[1], LogicalExpression: i[5], MatchArrayPattern: ["elements", "rest"], MatchAsPattern: ["pattern", "target"], MatchBindingPattern: i[21], MatchExpression: i[39], MatchExpressionCase: i[40], MatchIdentifierPattern: i[21], MatchLiteralPattern: i[41], MatchMemberPattern: ["base", "property"], MatchObjectPattern: ["properties", "rest"], MatchObjectPatternProperty: ["key", "pattern"], MatchOrPattern: ["patterns"], MatchRestPattern: i[6], MatchStatement: i[39], MatchStatementCase: i[40], MatchUnaryPattern: i[6], MatchWildcardPattern: i[1], MemberExpression: i[38], MetaProperty: ["meta", "property"], MethodDefinition: i[42], MixedTypeAnnotation: i[1], ModuleExpression: i[10], NeverTypeAnnotation: i[1], NewExpression: i[9], NGChainedExpression: i[43], NGEmptyExpression: i[1], NGMicrosyntax: i[10], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: i[1], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: i[32], NGPipeExpression: ["left", "right", "arguments"], NGRoot: i[37], NullableTypeAnnotation: i[23], NullLiteral: i[1], NullLiteralTypeAnnotation: i[1], NumberLiteralTypeAnnotation: i[1], NumberTypeAnnotation: i[1], NumericLiteral: i[1], ObjectExpression: ["properties"], ObjectMethod: i[13], ObjectPattern: ["decorators", "properties", "typeAnnotation"], ObjectProperty: i[42], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeCallProperty: i[18], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: i[6], OpaqueType: ["id", "typeParameters", "supertype", "impltype", "lowerBound", "upperBound"], OptionalCallExpression: i[9], OptionalIndexedAccessType: i[34], OptionalMemberExpression: i[38], ParenthesizedExpression: i[3], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: i[1], PipelineTopicExpression: i[3], Placeholder: i[1], PrivateIdentifier: i[1], PrivateName: i[21], Program: i[7], Property: i[32], PropertyDefinition: i[14], QualifiedTypeIdentifier: i[44], QualifiedTypeofIdentifier: i[44], RegExpLiteral: i[1], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: i[6], SatisfiesExpression: i[4], SequenceExpression: i[43], SpreadElement: i[6], StaticBlock: i[10], StringLiteral: i[1], StringLiteralTypeAnnotation: i[1], StringTypeAnnotation: i[1], Super: i[1], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], SymbolTypeAnnotation: i[1], TaggedTemplateExpression: ["tag", "typeArguments", "quasi"], TemplateElement: i[1], TemplateLiteral: ["quasis", "expressions"], ThisExpression: i[1], ThisTypeAnnotation: i[1], ThrowStatement: i[6], TopicReference: i[1], TryStatement: ["block", "handler", "finalizer"], TSAbstractAccessorProperty: i[45], TSAbstractKeyword: i[1], TSAbstractMethodDefinition: i[32], TSAbstractPropertyDefinition: i[45], TSAnyKeyword: i[1], TSArrayType: i[2], TSAsExpression: i[4], TSAsyncKeyword: i[1], TSBigIntKeyword: i[1], TSBooleanKeyword: i[1], TSCallSignatureDeclaration: i[46], TSClassImplements: i[47], TSConditionalType: i[17], TSConstructorType: i[46], TSConstructSignatureDeclaration: i[46], TSDeclareFunction: i[31], TSDeclareKeyword: i[1], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSEnumBody: i[26], TSEnumDeclaration: i[19], TSEnumMember: ["id", "initializer"], TSExportAssignment: i[3], TSExportKeyword: i[1], TSExternalModuleReference: i[3], TSFunctionType: i[46], TSImportEqualsDeclaration: ["id", "moduleReference"], TSImportType: ["options", "qualifier", "typeArguments", "source"], TSIndexedAccessType: i[34], TSIndexSignature: ["parameters", "typeAnnotation"], TSInferType: i[35], TSInstantiationExpression: i[47], TSInterfaceBody: i[10], TSInterfaceDeclaration: i[22], TSInterfaceHeritage: i[47], TSIntersectionType: i[36], TSIntrinsicKeyword: i[1], TSJSDocAllType: i[1], TSJSDocNonNullableType: i[23], TSJSDocNullableType: i[23], TSJSDocUnknownType: i[1], TSLiteralType: i[41], TSMappedType: ["key", "constraint", "nameType", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "params", "returnType"], TSModuleBlock: i[10], TSModuleDeclaration: i[19], TSNamedTupleMember: ["label", "elementType"], TSNamespaceExportDeclaration: i[21], TSNeverKeyword: i[1], TSNonNullExpression: i[3], TSNullKeyword: i[1], TSNumberKeyword: i[1], TSObjectKeyword: i[1], TSOptionalType: i[23], TSParameterProperty: ["parameter", "decorators"], TSParenthesizedType: i[23], TSPrivateKeyword: i[1], TSPropertySignature: ["key", "typeAnnotation"], TSProtectedKeyword: i[1], TSPublicKeyword: i[1], TSQualifiedName: i[5], TSReadonlyKeyword: i[1], TSRestType: i[23], TSSatisfiesExpression: i[4], TSStaticKeyword: i[1], TSStringKeyword: i[1], TSSymbolKeyword: i[1], TSTemplateLiteralType: ["quasis", "types"], TSThisType: i[1], TSTupleType: ["elementTypes"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSTypeAnnotation: i[23], TSTypeAssertion: i[4], TSTypeLiteral: i[26], TSTypeOperator: i[23], TSTypeParameter: ["name", "constraint", "default"], TSTypeParameterDeclaration: i[48], TSTypeParameterInstantiation: i[48], TSTypePredicate: i[49], TSTypeQuery: ["exprName", "typeArguments"], TSTypeReference: ["typeName", "typeArguments"], TSUndefinedKeyword: i[1], TSUnionType: i[36], TSUnknownKeyword: i[1], TSVoidKeyword: i[1], TupleTypeAnnotation: ["types", "elementTypes"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeAlias: i[24], TypeAnnotation: i[23], TypeCastExpression: i[4], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeOperator: i[23], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: i[48], TypeParameterInstantiation: i[48], TypePredicate: i[49], UnaryExpression: i[6], UndefinedTypeAnnotation: i[1], UnionTypeAnnotation: i[36], UnknownTypeAnnotation: i[1], UpdateExpression: i[6], V8IntrinsicIdentifier: i[1], VariableDeclaration: ["declarations"], VariableDeclarator: i[27], Variance: i[1], VoidPattern: i[1], VoidTypeAnnotation: i[1], WhileStatement: i[25], WithStatement: ["object", "body"], YieldExpression: i[6] }, Ys = au(zs), su = Ys;
182
+ function Qs(e) {
183
+ let t = new Set(e);
184
+ return (n) => t.has(n?.type);
185
+ }
186
+ var w = Qs;
187
+ function Zs(e) {
188
+ return e.extra?.raw ?? e.raw;
189
+ }
190
+ var ie = Zs, eo = w(["Block", "CommentBlock", "MultiLine"]), he = eo, to = w(["AnyTypeAnnotation", "ThisTypeAnnotation", "NumberTypeAnnotation", "VoidTypeAnnotation", "BooleanTypeAnnotation", "BigIntTypeAnnotation", "SymbolTypeAnnotation", "StringTypeAnnotation", "NeverTypeAnnotation", "UndefinedTypeAnnotation", "UnknownTypeAnnotation", "EmptyTypeAnnotation", "MixedTypeAnnotation"]), ou = to, no = w(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]), Mt = no;
191
+ function ro(e, t) {
192
+ let n = t.split(".");
193
+ for (let r = n.length - 1; r >= 0; r--) {
194
+ let u = n[r];
195
+ if (r === 0) return e.type === "Identifier" && e.name === u;
196
+ if (r === 1 && e.type === "MetaProperty" && e.property.type === "Identifier" && e.property.name === u) {
197
+ e = e.meta;
198
+ continue;
199
+ }
200
+ if (e.type === "MemberExpression" && !e.optional && !e.computed && e.property.type === "Identifier" && e.property.name === u) {
201
+ e = e.object;
202
+ continue;
203
+ }
204
+ return !1;
205
+ }
206
+ }
207
+ function uo(e, t) {
208
+ return t.some((n) => ro(e, n));
209
+ }
210
+ var Gn = uo;
211
+ function ao({ type: e }) {
212
+ return e.startsWith("TS") && e.endsWith("Keyword");
213
+ }
214
+ var iu = ao;
215
+ function so({ node: e, parent: t }) {
216
+ return e?.type !== "EmptyStatement" ? !1 : t.type === "IfStatement" ? t.consequent === e || t.alternate === e : t.type === "DoWhileStatement" || t.type === "ForInStatement" || t.type === "ForOfStatement" || t.type === "ForStatement" || t.type === "LabeledStatement" || t.type === "WithStatement" || t.type === "WhileStatement" ? t.body === e : !1;
217
+ }
218
+ var Vn = so;
219
+ function Sn(e, t) {
220
+ return t(e) || gs(e, { getVisitorKeys: su, predicate: t });
221
+ }
222
+ function Kn(e) {
223
+ return e.type === "AssignmentExpression" || e.type === "BinaryExpression" || e.type === "LogicalExpression" || e.type === "NGPipeExpression" || e.type === "ConditionalExpression" || L(e) || R(e) || e.type === "SequenceExpression" || e.type === "TaggedTemplateExpression" || e.type === "BindExpression" || e.type === "UpdateExpression" && !e.prefix || Fe(e) || e.type === "TSNonNullExpression" || e.type === "ChainExpression";
224
+ }
225
+ function oo(e) {
226
+ return e.expressions ? e.expressions[0] : e.left ?? e.test ?? e.callee ?? e.object ?? e.tag ?? e.argument ?? e.expression;
227
+ }
228
+ function pu(e) {
229
+ if (e.expressions) return ["expressions", 0];
230
+ if (e.left) return ["left"];
231
+ if (e.test) return ["test"];
232
+ if (e.object) return ["object"];
233
+ if (e.callee) return ["callee"];
234
+ if (e.tag) return ["tag"];
235
+ if (e.argument) return ["argument"];
236
+ if (e.expression) return ["expression"];
237
+ throw new Error("Unexpected node has no left side.");
238
+ }
239
+ var io = w(["ExportDefaultDeclaration", "DeclareExportDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportAllDeclaration"]), ee = w(["ArrayExpression"]), Ae = w(["ObjectExpression"]);
240
+ function po(e) {
241
+ return e.type === "LogicalExpression" && e.operator === "??";
242
+ }
243
+ function be(e) {
244
+ return e.type === "NumericLiteral" || e.type === "Literal" && typeof e.value == "number";
245
+ }
246
+ function lo(e) {
247
+ return e.type === "BooleanLiteral" || e.type === "Literal" && typeof e.value == "boolean";
248
+ }
249
+ function lu(e) {
250
+ return e.type === "UnaryExpression" && (e.operator === "+" || e.operator === "-") && be(e.argument);
251
+ }
252
+ function Q(e) {
253
+ return !!(e && (e.type === "StringLiteral" || e.type === "Literal" && typeof e.value == "string"));
254
+ }
255
+ function cu(e) {
256
+ return e.type === "RegExpLiteral" || e.type === "Literal" && !!e.regex;
257
+ }
258
+ var Hn = w(["Literal", "BooleanLiteral", "BigIntLiteral", "DirectiveLiteral", "NullLiteral", "NumericLiteral", "RegExpLiteral", "StringLiteral"]), co = w(["Identifier", "ThisExpression", "Super", "PrivateName", "PrivateIdentifier"]), Xe = w(["ObjectTypeAnnotation", "TSTypeLiteral", "TSMappedType"]), kt = w(["FunctionExpression", "ArrowFunctionExpression"]);
259
+ function Do(e) {
260
+ return e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && e.body.type === "BlockStatement";
261
+ }
262
+ function Dn(e) {
263
+ return L(e) && e.callee.type === "Identifier" && ["async", "inject", "fakeAsync", "waitForAsync"].includes(e.callee.name);
264
+ }
265
+ var Y = w(["JSXElement", "JSXFragment"]);
266
+ function Lt(e) {
267
+ return e.method && e.kind === "init" || e.kind === "get" || e.kind === "set";
268
+ }
269
+ function Du(e) {
270
+ return (e.type === "ObjectTypeProperty" || e.type === "ObjectTypeInternalSlot") && !e.static && !e.method && e.kind !== "get" && e.kind !== "set" && e.value.type === "FunctionTypeAnnotation";
271
+ }
272
+ function yo(e) {
273
+ return (e.type === "TypeAnnotation" || e.type === "TSTypeAnnotation") && e.typeAnnotation.type === "FunctionTypeAnnotation" && !e.static && !nn(e, e.typeAnnotation);
274
+ }
275
+ var Ne = w(["BinaryExpression", "LogicalExpression", "NGPipeExpression"]);
276
+ function ot(e) {
277
+ return R(e) || e.type === "BindExpression" && !!e.object;
278
+ }
279
+ var fo = w(["TSThisType", "NullLiteralTypeAnnotation", "BooleanLiteralTypeAnnotation", "StringLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "TSLiteralType", "TSTemplateLiteralType"]);
280
+ function zn(e) {
281
+ return iu(e) || ou(e) || fo(e) || e.type === "GenericTypeAnnotation" && !e.typeParameters || e.type === "TSTypeReference" && !e.typeArguments;
282
+ }
283
+ function mo(e) {
284
+ return e.type === "Identifier" && (e.name === "beforeEach" || e.name === "beforeAll" || e.name === "afterEach" || e.name === "afterAll");
285
+ }
286
+ var Fo = ["it", "it.only", "it.skip", "describe", "describe.only", "describe.skip", "test", "test.only", "test.skip", "test.fixme", "test.step", "test.describe", "test.describe.only", "test.describe.skip", "test.describe.fixme", "test.describe.parallel", "test.describe.parallel.only", "test.describe.serial", "test.describe.serial.only", "skip", "xit", "xdescribe", "xtest", "fit", "fdescribe", "ftest"];
287
+ function Eo(e) {
288
+ return Gn(e, Fo);
289
+ }
290
+ function rn(e, t) {
291
+ if (e?.type !== "CallExpression" || e.optional) return !1;
292
+ let n = ye(e);
293
+ if (n.length === 1) {
294
+ if (Dn(e) && rn(t)) return kt(n[0]);
295
+ if (mo(e.callee)) return Dn(n[0]);
296
+ } else if ((n.length === 2 || n.length === 3) && (n[0].type === "TemplateLiteral" || Q(n[0])) && Eo(e.callee)) return n[2] && !be(n[2]) ? !1 : (n.length === 2 ? kt(n[1]) : Do(n[1]) && te(n[1]).length <= 1) || Dn(n[1]);
297
+ return !1;
298
+ }
299
+ var yu = (e) => (t) => (t?.type === "ChainExpression" && (t = t.expression), e(t)), L = yu(w(["CallExpression", "OptionalCallExpression"])), R = yu(w(["MemberExpression", "OptionalMemberExpression"]));
300
+ function Tr(e, t = 5) {
301
+ return du(e, t) <= t;
302
+ }
303
+ function du(e, t) {
304
+ let n = 0;
305
+ for (let r in e) {
306
+ let u = e[r];
307
+ if (eu(u) && typeof u.type == "string" && (n++, n += du(u, t - n)), n > t) return n;
308
+ }
309
+ return n;
310
+ }
311
+ var Ao = 0.25;
312
+ function Yn(e, t) {
313
+ let { printWidth: n } = t;
314
+ if (g(e)) return !1;
315
+ let r = n * Ao;
316
+ if (e.type === "ThisExpression" || e.type === "Identifier" && e.name.length <= r || lu(e) && !g(e.argument)) return !0;
317
+ let u = e.type === "Literal" && "regex" in e && e.regex.pattern || e.type === "RegExpLiteral" && e.pattern;
318
+ return u ? u.length <= r : Q(e) ? ct(ie(e), t).length <= r : e.type === "TemplateLiteral" ? e.expressions.length === 0 && e.quasis[0].value.raw.length <= r && !e.quasis[0].value.raw.includes(`
319
+ `) : e.type === "UnaryExpression" ? Yn(e.argument, { printWidth: n }) : e.type === "CallExpression" && e.arguments.length === 0 && e.callee.type === "Identifier" ? e.callee.name.length <= r - 2 : Hn(e);
320
+ }
321
+ function Ee(e, t) {
322
+ return Y(t) ? un(t) : g(t, b.Leading, (n) => oe(e, N(n)));
323
+ }
324
+ function Sr(e) {
325
+ return e.quasis.some((t) => t.value.raw.includes(`
326
+ `));
327
+ }
328
+ function fu(e, t) {
329
+ return (e.type === "TemplateLiteral" && Sr(e) || e.type === "TaggedTemplateExpression" && Sr(e.quasi)) && !oe(t, j(e), { backwards: !0 });
330
+ }
331
+ function mu(e) {
332
+ if (!g(e)) return !1;
333
+ let t = O(0, He(e, b.Dangling), -1);
334
+ return t && !he(t);
335
+ }
336
+ function go(e) {
337
+ if (e.length <= 1) return !1;
338
+ let t = 0;
339
+ for (let n of e) if (kt(n)) {
340
+ if (t += 1, t > 1) return !0;
341
+ } else if (L(n)) {
342
+ for (let r of ye(n)) if (kt(r)) return !0;
343
+ }
344
+ return !1;
345
+ }
346
+ function Fu(e) {
347
+ let { node: t, parent: n, key: r } = e;
348
+ return r === "callee" && L(t) && L(n) && n.arguments.length > 0 && t.arguments.length > n.arguments.length;
349
+ }
350
+ var Co = /* @__PURE__ */ new Set(["!", "-", "+", "~"]);
351
+ function me(e, t = 2) {
352
+ if (t <= 0) return !1;
353
+ if (e.type === "ChainExpression" || e.type === "TSNonNullExpression") return me(e.expression, t);
354
+ let n = (r) => me(r, t - 1);
355
+ if (cu(e)) return it(e.pattern ?? e.regex.pattern) <= 5;
356
+ if (Hn(e) || co(e) || e.type === "ArgumentPlaceholder") return !0;
357
+ if (e.type === "TemplateLiteral") return e.quasis.every((r) => !r.value.raw.includes(`
358
+ `)) && e.expressions.every(n);
359
+ if (Ae(e)) return e.properties.every((r) => !r.computed && (r.shorthand || r.value && n(r.value)));
360
+ if (ee(e)) return e.elements.every((r) => r === null || n(r));
361
+ if (yt(e)) {
362
+ if (e.type === "ImportExpression" || me(e.callee, t)) {
363
+ let r = ye(e);
364
+ return r.length <= t && r.every(n);
365
+ }
366
+ return !1;
367
+ }
368
+ return R(e) ? me(e.object, t) && me(e.property, t) : e.type === "UnaryExpression" && Co.has(e.operator) || e.type === "UpdateExpression" ? me(e.argument, t) : !1;
369
+ }
370
+ function Pe(e, t = "es5") {
371
+ return e.trailingComma === "es5" && t === "es5" || e.trailingComma === "all" && (t === "all" || t === "es5");
372
+ }
373
+ function ne(e, t) {
374
+ switch (e.type) {
375
+ case "BinaryExpression":
376
+ case "LogicalExpression":
377
+ case "AssignmentExpression":
378
+ case "NGPipeExpression":
379
+ return ne(e.left, t);
380
+ case "MemberExpression":
381
+ case "OptionalMemberExpression":
382
+ return ne(e.object, t);
383
+ case "TaggedTemplateExpression":
384
+ return e.tag.type === "FunctionExpression" ? !1 : ne(e.tag, t);
385
+ case "CallExpression":
386
+ case "OptionalCallExpression":
387
+ return e.callee.type === "FunctionExpression" ? !1 : ne(e.callee, t);
388
+ case "ConditionalExpression":
389
+ return ne(e.test, t);
390
+ case "UpdateExpression":
391
+ return !e.prefix && ne(e.argument, t);
392
+ case "BindExpression":
393
+ return e.object && ne(e.object, t);
394
+ case "SequenceExpression":
395
+ return ne(e.expressions[0], t);
396
+ case "ChainExpression":
397
+ case "TSSatisfiesExpression":
398
+ case "TSAsExpression":
399
+ case "TSNonNullExpression":
400
+ case "AsExpression":
401
+ case "AsConstExpression":
402
+ case "SatisfiesExpression":
403
+ return ne(e.expression, t);
404
+ default:
405
+ return t(e);
406
+ }
407
+ }
408
+ var br = { "==": !0, "!=": !0, "===": !0, "!==": !0 }, Ut = { "*": !0, "/": !0, "%": !0 }, bn = { ">>": !0, ">>>": !0, "<<": !0 };
409
+ function Qn(e, t) {
410
+ return !(Yt(t) !== Yt(e) || e === "**" || br[e] && br[t] || t === "%" && Ut[e] || e === "%" && Ut[t] || t !== e && Ut[t] && Ut[e] || bn[e] && bn[t]);
411
+ }
412
+ var ho = new Map([["|>"], ["??"], ["||"], ["&&"], ["|"], ["^"], ["&"], ["==", "===", "!=", "!=="], ["<", ">", "<=", ">=", "in", "instanceof"], [">>", "<<", ">>>"], ["+", "-"], ["*", "/", "%"], ["**"]].flatMap((e, t) => e.map((n) => [n, t])));
413
+ function Yt(e) {
414
+ return ho.get(e);
415
+ }
416
+ function xo(e) {
417
+ return !!bn[e] || e === "|" || e === "^" || e === "&";
418
+ }
419
+ function To(e) {
420
+ if (e.rest) return !0;
421
+ let t = te(e);
422
+ return O(0, t, -1)?.type === "RestElement";
423
+ }
424
+ var yn = /* @__PURE__ */ new WeakMap();
425
+ function te(e) {
426
+ if (yn.has(e)) return yn.get(e);
427
+ let t = [];
428
+ return e.this && t.push(e.this), t.push(...e.params), e.rest && t.push(e.rest), yn.set(e, t), t;
429
+ }
430
+ function So(e, t) {
431
+ let { node: n } = e, r = 0, u = () => t(e, r++);
432
+ n.this && e.call(u, "this"), e.each(u, "params"), n.rest && e.call(u, "rest");
433
+ }
434
+ var dn = /* @__PURE__ */ new WeakMap();
435
+ function ye(e) {
436
+ if (dn.has(e)) return dn.get(e);
437
+ if (e.type === "ChainExpression") return ye(e.expression);
438
+ let t;
439
+ return e.type === "ImportExpression" || e.type === "TSImportType" ? (t = [e.source], e.options && t.push(e.options)) : e.type === "TSExternalModuleReference" ? t = [e.expression] : t = e.arguments, dn.set(e, t), t;
440
+ }
441
+ function Qt(e, t) {
442
+ let { node: n } = e;
443
+ if (n.type === "ChainExpression") return e.call(() => Qt(e, t), "expression");
444
+ n.type === "ImportExpression" || n.type === "TSImportType" ? (e.call(() => t(e, 0), "source"), n.options && e.call(() => t(e, 1), "options")) : n.type === "TSExternalModuleReference" ? e.call(() => t(e, 0), "expression") : e.each(t, "arguments");
445
+ }
446
+ function Br(e, t) {
447
+ let n = [];
448
+ if (e.type === "ChainExpression" && (e = e.expression, n.push("expression")), e.type === "ImportExpression" || e.type === "TSImportType") {
449
+ if (t === 0 || t === (e.options ? -2 : -1)) return [...n, "source"];
450
+ if (e.options && (t === 1 || t === -1)) return [...n, "options"];
451
+ throw new RangeError("Invalid argument index");
452
+ } else if (e.type === "TSExternalModuleReference") {
453
+ if (t === 0 || t === -1) return [...n, "expression"];
454
+ } else if (t < 0 && (t = e.arguments.length + t), t >= 0 && t < e.arguments.length) return [...n, "arguments", t];
455
+ throw new RangeError("Invalid argument index");
456
+ }
457
+ function Dt(e) {
458
+ return e.value.trim() === "prettier-ignore" && !e.unignore;
459
+ }
460
+ function un(e) {
461
+ return e?.prettierIgnore || g(e, b.PrettierIgnore);
462
+ }
463
+ var b = { Leading: 2, Trailing: 4, Dangling: 8, Block: 16, Line: 32, PrettierIgnore: 64, First: 128, Last: 256 }, Eu = (e, t) => {
464
+ if (typeof e == "function" && (t = e, e = 0), e || t) return (n, r, u) => !(e & b.Leading && !n.leading || e & b.Trailing && !n.trailing || e & b.Dangling && (n.leading || n.trailing) || e & b.Block && !he(n) || e & b.Line && !Mt(n) || e & b.First && r !== 0 || e & b.Last && r !== u.length - 1 || e & b.PrettierIgnore && !Dt(n) || t && !t(n));
465
+ };
466
+ function g(e, t, n) {
467
+ if (!_(e?.comments)) return !1;
468
+ let r = Eu(t, n);
469
+ return r ? e.comments.some(r) : !0;
470
+ }
471
+ function He(e, t, n) {
472
+ if (!Array.isArray(e?.comments)) return [];
473
+ let r = Eu(t, n);
474
+ return r ? e.comments.filter(r) : e.comments;
475
+ }
476
+ var ke = (e, { originalText: t }) => $n(t, N(e));
477
+ function yt(e) {
478
+ return L(e) || e.type === "NewExpression" || e.type === "ImportExpression";
479
+ }
480
+ function _e(e) {
481
+ return e && (e.type === "ObjectProperty" || e.type === "Property" && !Lt(e));
482
+ }
483
+ var Fe = w(["TSAsExpression", "TSSatisfiesExpression", "AsExpression", "AsConstExpression", "SatisfiesExpression"]), Be = w(["TSUnionType", "UnionTypeAnnotation"]), Ot = w(["TSIntersectionType", "IntersectionTypeAnnotation"]), Re = w(["TSConditionalType", "ConditionalTypeAnnotation"]), bo = (e) => e?.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const", Bn = w(["TSTypeAliasDeclaration", "TypeAlias"]);
484
+ function Au({ key: e, parent: t }) {
485
+ return !(e === "types" && Be(t) || e === "types" && Ot(t));
486
+ }
487
+ var Bo = /* @__PURE__ */ new Set(["range", "raw", "comments", "leadingComments", "trailingComments", "innerComments", "extra", "start", "end", "loc", "flags", "errors", "tokens"]), at = (e) => {
488
+ for (let t of e.quasis) delete t.value;
489
+ };
490
+ function gu(e, t, n) {
491
+ if (e.type === "Program" && delete t.sourceType, (e.type === "BigIntLiteral" || e.type === "Literal") && e.bigint && (t.bigint = e.bigint.toLowerCase()), e.type === "EmptyStatement" && !Vn({ node: e, parent: n }) || e.type === "JSXText" || e.type === "JSXExpressionContainer" && (e.expression.type === "Literal" || e.expression.type === "StringLiteral") && e.expression.value === " ") return null;
492
+ 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) {
493
+ let { key: u } = e;
494
+ Q(u) || be(u) ? t.key = String(u.value) : u.type === "Identifier" && (t.key = u.name);
495
+ }
496
+ if (e.type === "JSXElement" && e.openingElement.name.name === "style" && e.openingElement.attributes.some((u) => u.type === "JSXAttribute" && u.name.name === "jsx")) for (let { type: u, expression: a } of t.children) u === "JSXExpressionContainer" && a.type === "TemplateLiteral" && at(a);
497
+ e.type === "JSXAttribute" && e.name.name === "css" && e.value.type === "JSXExpressionContainer" && e.value.expression.type === "TemplateLiteral" && at(t.value.expression), e.type === "JSXAttribute" && e.value?.type === "Literal" && /["']|&quot;|&apos;/u.test(e.value.value) && (t.value.value = z(0, e.value.value, /["']|&quot;|&apos;/gu, '"'));
498
+ let r = e.expression || e.callee;
499
+ if (e.type === "Decorator" && r.type === "CallExpression" && r.callee.name === "Component" && r.arguments.length === 1) {
500
+ let u = e.expression.arguments[0].properties;
501
+ for (let [a, s] of t.expression.arguments[0].properties.entries()) switch (u[a].key.name) {
502
+ case "styles":
503
+ ee(s.value) && at(s.value.elements[0]);
504
+ break;
505
+ case "template":
506
+ s.value.type === "TemplateLiteral" && at(s.value);
507
+ break;
508
+ }
509
+ }
510
+ 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") && at(t.quasi), e.type === "TemplateLiteral" && at(t), e.type === "ChainExpression" && e.expression.type === "TSNonNullExpression" && (t.type = "TSNonNullExpression", t.expression.type = "ChainExpression");
511
+ }
512
+ gu.ignoredProperties = Bo;
513
+ var vo = gu, Po = w(["File", "TemplateElement", "TSEmptyBodyFunctionExpression", "ChainExpression"]), ko = (e, [t]) => t?.type === "ComponentParameter" && t.shorthand && t.name === e && t.local !== t.name || t?.type === "MatchObjectPatternProperty" && t.shorthand && t.key === e && t.value !== t.key || t?.type === "ObjectProperty" && t.shorthand && t.key === e && t.value !== t.key || t?.type === "Property" && t.shorthand && t.key === e && !Lt(t) && t.value !== t.key, wo = (e, [t]) => !!(e.type === "FunctionExpression" && t.type === "MethodDefinition" && t.value === e && te(e).length === 0 && !e.returnType && !_(e.typeParameters) && e.body), vr = (e, [t]) => t?.typeAnnotation === e && bo(t), Io = (e, [t, ...n]) => vr(e, [t]) || t?.typeName === e && vr(t, n);
514
+ function No(e, t) {
515
+ return Po(e) || ko(e, t) || wo(e, t) ? !1 : e.type === "EmptyStatement" ? Vn({ node: e, parent: t[0] }) : !(Io(e, t) || e.type === "TSTypeAnnotation" && t[0].type === "TSPropertySignature");
516
+ }
517
+ var jo = No;
518
+ function Mo(e) {
519
+ let t = e.type || e.kind || "(unknown type)", n = 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 || "");
520
+ return n.length > 20 && (n = n.slice(0, 19) + "…"), t + (n ? " " + n : "");
521
+ }
522
+ function Zn(e, t) {
523
+ (e.comments ?? (e.comments = [])).push(t), t.printed = !1, t.nodeDescription = Mo(e);
524
+ }
525
+ function V(e, t) {
526
+ t.leading = !0, t.trailing = !1, Zn(e, t);
527
+ }
528
+ function le(e, t, n) {
529
+ t.leading = !1, t.trailing = !1, n && (t.marker = n), Zn(e, t);
530
+ }
531
+ function W(e, t) {
532
+ t.leading = !1, t.trailing = !0, Zn(e, t);
533
+ }
534
+ function Lo(e, t) {
535
+ let n = null, r = t;
536
+ for (; r !== n; ) n = r, r = pt(e, r), r = Wn(e, r), r = Un(e, r), r = lt(e, r);
537
+ return r;
538
+ }
539
+ var ft = Lo;
540
+ function Oo(e, t) {
541
+ let n = ft(e, t);
542
+ return n === !1 ? "" : e.charAt(n);
543
+ }
544
+ var ge = Oo;
545
+ function Jo(e, t, n) {
546
+ for (let r = t; r < n; ++r) if (e.charAt(r) === `
547
+ `) return !0;
548
+ return !1;
549
+ }
550
+ var ce = Jo, fn = /* @__PURE__ */ new WeakMap();
551
+ function qo(e) {
552
+ return fn.has(e) || fn.set(e, he(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), fn.get(e);
553
+ }
554
+ var Cu = qo, er = (e, t) => Mt(e) || !ce(t, j(e), N(e));
555
+ function Xo(e) {
556
+ return [ku, xu, Bu, Yo, Uo, tr, nr, hu, Tu, ni, Zo, ei, ur, Pu, ri, Su, vu, rr, $o, li, wu, ar].some((t) => t(e));
557
+ }
558
+ function Ro(e) {
559
+ return [Wo, Bu, xu, Pu, tr, nr, hu, Tu, vu, Qo, ti, ur, si, rr, ii, pi, ci, wu, yi, Di, ar].some((t) => t(e));
560
+ }
561
+ function _o(e) {
562
+ return [ku, tr, nr, zo, Su, ur, Ho, Ko, rr, oi, ar].some((t) => t(e));
563
+ }
564
+ function Ye(e, t) {
565
+ let n = (e.body || e.properties).find(({ type: r }) => r !== "EmptyStatement");
566
+ n ? V(n, t) : le(e, t);
567
+ }
568
+ function vn(e, t) {
569
+ e.type === "BlockStatement" ? Ye(e, t) : V(e, t);
570
+ }
571
+ function Wo({ comment: e, followingNode: t }) {
572
+ return t && Cu(e) ? (V(t, e), !0) : !1;
573
+ }
574
+ function tr({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r, text: u }) {
575
+ if (n?.type !== "IfStatement" || !r) return !1;
576
+ if (ge(u, N(e)) === ")") return W(t, e), !0;
577
+ if (r.type === "BlockStatement" && r === n.consequent && j(e) >= N(t) && N(e) <= j(r)) return V(r, e), !0;
578
+ if (t === n.consequent && r === n.alternate) {
579
+ let a = ft(u, N(n.consequent));
580
+ if (r.type === "BlockStatement" && j(e) >= a && N(e) <= j(r)) return V(r, e), !0;
581
+ if (j(e) < a || n.alternate.type === "BlockStatement") return t.type === "BlockStatement" || er(e, u) && !ce(u, j(t), j(e)) ? (W(t, e), !0) : (le(n, e), !0);
582
+ }
583
+ return r.type === "BlockStatement" ? (Ye(r, e), !0) : r.type === "IfStatement" ? (vn(r.consequent, e), !0) : n.consequent === r ? (V(r, e), !0) : !1;
584
+ }
585
+ function nr({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r, text: u }) {
586
+ return n?.type !== "WhileStatement" || !r ? !1 : ge(u, N(e)) === ")" ? (W(t, e), !0) : r.type === "BlockStatement" ? (Ye(r, e), !0) : n.body === r ? (V(r, e), !0) : !1;
587
+ }
588
+ function hu({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r }) {
589
+ return n?.type !== "TryStatement" && n?.type !== "CatchClause" || !r ? !1 : n.type === "CatchClause" && t ? (W(t, e), !0) : r.type === "BlockStatement" ? (Ye(r, e), !0) : r.type === "TryStatement" ? (vn(r.finalizer, e), !0) : r.type === "CatchClause" ? (vn(r.body, e), !0) : !1;
590
+ }
591
+ function Uo({ comment: e, enclosingNode: t, followingNode: n }) {
592
+ return R(t) && n?.type === "Identifier" ? (V(t, e), !0) : !1;
593
+ }
594
+ function $o({ comment: e, enclosingNode: t, followingNode: n, options: r }) {
595
+ return !r.experimentalTernaries || !(t?.type === "ConditionalExpression" || Re(t)) ? !1 : n?.type === "ConditionalExpression" || Re(n) ? (le(t, e), !0) : !1;
596
+ }
597
+ function xu({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r, text: u, options: a }) {
598
+ let s = t && !ce(u, N(t), j(e));
599
+ return (!t || !s) && (n?.type === "ConditionalExpression" || Re(n)) && r ? a.experimentalTernaries && n.alternate === r && !(he(e) && !ce(a.originalText, j(e), N(e))) ? (le(n, e), !0) : (V(r, e), !0) : !1;
600
+ }
601
+ var Go = w(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
602
+ function Tu({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r }) {
603
+ if (Go(n)) {
604
+ if (_(n.decorators) && r?.type !== "Decorator") return W(O(0, n.decorators, -1), e), !0;
605
+ if (n.body && r === n.body) return Ye(n.body, e), !0;
606
+ if (r) {
607
+ if (n.superClass && r === n.superClass && t && (t === n.id || t === n.typeParameters)) return W(t, e), !0;
608
+ for (let u of ["implements", "extends", "mixins"]) if (n[u] && r === n[u][0]) return t && (t === n.id || t === n.typeParameters || t === n.superClass) ? W(t, e) : le(n, e, u), !0;
609
+ }
610
+ }
611
+ return !1;
612
+ }
613
+ var Vo = w(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "TSParameterProperty"]);
614
+ function Su({ comment: e, precedingNode: t, enclosingNode: n, text: r }) {
615
+ return n && t && ge(r, N(e)) === "(" && (n.type === "Property" || n.type === "TSDeclareMethod" || n.type === "TSAbstractMethodDefinition") && t.type === "Identifier" && n.key === t && ge(r, N(t)) !== ":" || t?.type === "Decorator" && Vo(n) && (Mt(e) || e.placement === "ownLine") ? (W(t, e), !0) : !1;
616
+ }
617
+ var bu = w(["FunctionDeclaration", "FunctionExpression", "ClassMethod", "MethodDefinition", "ObjectMethod"]);
618
+ function Ko({ comment: e, precedingNode: t, enclosingNode: n, text: r }) {
619
+ return ge(r, N(e)) !== "(" ? !1 : t && bu(n) ? (W(t, e), !0) : !1;
620
+ }
621
+ function Ho({ comment: e, enclosingNode: t, text: n }) {
622
+ if (t?.type !== "ArrowFunctionExpression") return !1;
623
+ let r = ft(n, N(e));
624
+ return r !== !1 && n.slice(r, r + 2) === "=>" ? (le(t, e), !0) : !1;
625
+ }
626
+ function zo({ comment: e, enclosingNode: t, text: n }) {
627
+ return ge(n, N(e)) !== ")" ? !1 : t && (Iu(t) && te(t).length === 0 || yt(t) && ye(t).length === 0) ? (le(t, e), !0) : (t?.type === "MethodDefinition" || t?.type === "TSAbstractMethodDefinition") && te(t.value).length === 0 ? (le(t.value, e), !0) : !1;
628
+ }
629
+ function Yo({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r, text: u }) {
630
+ return t?.type === "ComponentTypeParameter" && (n?.type === "DeclareComponent" || n?.type === "ComponentTypeAnnotation") && r?.type !== "ComponentTypeParameter" || (t?.type === "ComponentParameter" || t?.type === "RestElement") && n?.type === "ComponentDeclaration" && ge(u, N(e)) === ")" ? (W(t, e), !0) : !1;
631
+ }
632
+ function Bu({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r, text: u }) {
633
+ return t?.type === "FunctionTypeParam" && n?.type === "FunctionTypeAnnotation" && r?.type !== "FunctionTypeParam" || (t?.type === "Identifier" || t?.type === "AssignmentPattern" || t?.type === "ObjectPattern" || t?.type === "ArrayPattern" || t?.type === "RestElement" || t?.type === "TSParameterProperty") && Iu(n) && ge(u, N(e)) === ")" ? (W(t, e), !0) : !he(e) && r?.type === "BlockStatement" && bu(n) && (n.type === "MethodDefinition" ? n.value.body : n.body) === r && ft(u, N(e)) === j(r) ? (Ye(r, e), !0) : !1;
634
+ }
635
+ function vu({ comment: e, enclosingNode: t }) {
636
+ return t?.type === "LabeledStatement" ? (V(t, e), !0) : !1;
637
+ }
638
+ function rr({ comment: e, enclosingNode: t }) {
639
+ return (t?.type === "ContinueStatement" || t?.type === "BreakStatement") && !t.label ? (W(t, e), !0) : !1;
640
+ }
641
+ function Qo({ comment: e, precedingNode: t, enclosingNode: n }) {
642
+ return L(n) && t && n.callee === t && n.arguments.length > 0 ? (V(n.arguments[0], e), !0) : !1;
643
+ }
644
+ function Zo({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r }) {
645
+ return Be(n) ? (Dt(e) && (r.prettierIgnore = !0, e.unignore = !0), t ? (W(t, e), !0) : !1) : (Be(r) && Dt(e) && (r.types[0].prettierIgnore = !0, e.unignore = !0), !1);
646
+ }
647
+ function ei({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r }) {
648
+ return n && n.type === "MatchOrPattern" ? (Dt(e) && (r.prettierIgnore = !0, e.unignore = !0), t ? (W(t, e), !0) : !1) : (r && r.type === "MatchOrPattern" && Dt(e) && (r.types[0].prettierIgnore = !0, e.unignore = !0), !1);
649
+ }
650
+ function ti({ comment: e, enclosingNode: t }) {
651
+ return _e(t) ? (V(t, e), !0) : !1;
652
+ }
653
+ function ur({ comment: e, enclosingNode: t, ast: n, isLastComment: r }) {
654
+ return n?.body?.length === 0 ? (r ? le(n, e) : V(n, e), !0) : t?.type === "Program" && t.body.length === 0 && !_(t.directives) ? (r ? le(t, e) : V(t, e), !0) : !1;
655
+ }
656
+ function ni({ comment: e, enclosingNode: t, followingNode: n }) {
657
+ return (t?.type === "ForInStatement" || t?.type === "ForOfStatement") && n !== t.body ? (V(t, e), !0) : !1;
658
+ }
659
+ function Pu({ comment: e, precedingNode: t, enclosingNode: n, text: r }) {
660
+ if (n?.type === "ImportSpecifier" || n?.type === "ExportSpecifier") return V(n, e), !0;
661
+ let u = t?.type === "ImportSpecifier" && n?.type === "ImportDeclaration", a = t?.type === "ExportSpecifier" && n?.type === "ExportNamedDeclaration";
662
+ return (u || a) && oe(r, N(e)) ? (W(t, e), !0) : !1;
663
+ }
664
+ function ri({ comment: e, enclosingNode: t }) {
665
+ return t?.type === "AssignmentPattern" ? (V(t, e), !0) : !1;
666
+ }
667
+ var ui = w(["VariableDeclarator", "AssignmentExpression", "TypeAlias", "TSTypeAliasDeclaration"]), ai = w(["ObjectExpression", "ArrayExpression", "TemplateLiteral", "TaggedTemplateExpression", "ObjectTypeAnnotation", "TSTypeLiteral"]);
668
+ function si({ comment: e, enclosingNode: t, followingNode: n }) {
669
+ return ui(t) && n && (ai(n) || he(e)) ? (V(n, e), !0) : !1;
670
+ }
671
+ function oi({ comment: e, enclosingNode: t, precedingNode: n, followingNode: r, text: u }) {
672
+ return !r && (t?.type === "TSMethodSignature" || t?.type === "TSDeclareFunction" || t?.type === "TSAbstractMethodDefinition") && (!n || n !== t.returnType) && ge(u, N(e)) === ";" ? (W(t, e), !0) : !1;
673
+ }
674
+ function ku({ comment: e, enclosingNode: t, followingNode: n }) {
675
+ if (Dt(e) && t?.type === "TSMappedType" && n === t.key) return t.prettierIgnore = !0, e.unignore = !0, !0;
676
+ }
677
+ function wu({ comment: e, precedingNode: t, enclosingNode: n }) {
678
+ if (n?.type === "TSMappedType" && !t) return le(n, e), !0;
679
+ }
680
+ function ii({ comment: e, enclosingNode: t, followingNode: n }) {
681
+ return !t || t.type !== "SwitchCase" || t.test || !n || n !== t.consequent[0] ? !1 : (n.type === "BlockStatement" && Mt(e) ? Ye(n, e) : le(t, e), !0);
682
+ }
683
+ function pi({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r }) {
684
+ return Be(t) && ((n.type === "TSArrayType" || n.type === "ArrayTypeAnnotation") && !r || Ot(n)) ? (W(O(0, t.types, -1), e), !0) : !1;
685
+ }
686
+ function li({ comment: e, enclosingNode: t, precedingNode: n, followingNode: r }) {
687
+ if ((t?.type === "ObjectPattern" || t?.type === "ArrayPattern") && r?.type === "TSTypeAnnotation") return n ? W(n, e) : le(t, e), !0;
688
+ }
689
+ function ci({ comment: e, precedingNode: t, enclosingNode: n, followingNode: r, text: u }) {
690
+ return !r && n?.type === "UnaryExpression" && (t?.type === "LogicalExpression" || t?.type === "BinaryExpression") && ce(u, j(n.argument), j(t.right)) && er(e, u) && !ce(u, j(t.right), j(e)) ? (W(t.right, e), !0) : !1;
691
+ }
692
+ function Di({ enclosingNode: e, followingNode: t, comment: n }) {
693
+ if (e && (e.type === "TSPropertySignature" || e.type === "ObjectTypeProperty") && (Be(t) || Ot(t))) return V(t, n), !0;
694
+ }
695
+ function ar({ enclosingNode: e, precedingNode: t, followingNode: n, comment: r, text: u }) {
696
+ if (Fe(e) && t === e.expression && !er(r, u)) return n ? V(n, r) : W(e, r), !0;
697
+ }
698
+ function yi({ comment: e, enclosingNode: t, followingNode: n, precedingNode: r }) {
699
+ return t && n && r && t.type === "ArrowFunctionExpression" && t.returnType === r && (r.type === "TSTypeAnnotation" || r.type === "TypeAnnotation") ? (V(n, e), !0) : !1;
700
+ }
701
+ var Iu = w(["ArrowFunctionExpression", "FunctionExpression", "FunctionDeclaration", "ObjectMethod", "ClassMethod", "TSDeclareFunction", "TSCallSignatureDeclaration", "TSConstructSignatureDeclaration", "TSMethodSignature", "TSConstructorType", "TSFunctionType", "TSDeclareMethod"]), di = { endOfLine: Ro, ownLine: Xo, remaining: _o }, fi = di;
702
+ function mi(e, { parser: t }) {
703
+ if (t === "flow" || t === "hermes" || t === "babel-flow") return e = z(0, e, /[\s(]/gu, ""), e === "" || e === "/*" || e === "/*::";
704
+ }
705
+ var Fi = mi, Ei = w(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
706
+ function Ai(e) {
707
+ let { key: t, parent: n } = e;
708
+ if (t === "types" && Be(n) || t === "argument" && n.type === "JSXSpreadAttribute" || t === "expression" && n.type === "JSXSpreadChild" || t === "superClass" && (n.type === "ClassDeclaration" || n.type === "ClassExpression") || (t === "id" || t === "typeParameters") && Ei(n) || t === "patterns" && n.type === "MatchOrPattern") return !0;
709
+ let { node: r } = e;
710
+ return un(r) ? !1 : Be(r) ? Au(e) : !!Y(r);
711
+ }
712
+ var gi = Ai, Qe = "string", je = "array", mt = "cursor", Ze = "indent", et = "align", tt = "trim", fe = "group", We = "fill", Se = "if-break", nt = "indent-if-break", rt = "line-suffix", Ue = "line-suffix-boundary", pe = "line", Le = "label", Oe = "break-parent", Nu = /* @__PURE__ */ new Set([mt, Ze, et, tt, fe, We, Se, nt, rt, Ue, pe, Le, Oe]);
713
+ function Ci(e) {
714
+ if (typeof e == "string") return Qe;
715
+ if (Array.isArray(e)) return je;
716
+ if (!e) return;
717
+ let { type: t } = e;
718
+ if (Nu.has(t)) return t;
719
+ }
720
+ var $e = Ci, hi = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
721
+ function xi(e) {
722
+ let t = e === null ? "null" : typeof e;
723
+ if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
724
+ Expected it to be 'string' or 'object'.`;
725
+ if ($e(e)) throw new Error("doc is valid.");
726
+ let n = Object.prototype.toString.call(e);
727
+ if (n !== "[object Object]") return `Unexpected doc '${n}'.`;
728
+ let r = hi([...Nu].map((u) => `'${u}'`));
729
+ return `Unexpected doc.type '${e.type}'.
730
+ Expected it to be ${r}.`;
731
+ }
732
+ var Ti = class extends Error {
733
+ name = "InvalidDocError";
734
+ constructor(e) {
735
+ super(xi(e)), this.doc = e;
736
+ }
737
+ }, wt = Ti, Pr = {};
738
+ function Si(e, t, n, r) {
739
+ let u = [e];
740
+ for (; u.length > 0; ) {
741
+ let a = u.pop();
742
+ if (a === Pr) {
743
+ n(u.pop());
744
+ continue;
745
+ }
746
+ n && u.push(a, Pr);
747
+ let s = $e(a);
748
+ if (!s) throw new wt(a);
749
+ if (t?.(a) !== !1) switch (s) {
750
+ case je:
751
+ case We: {
752
+ let o = s === je ? a : a.parts;
753
+ for (let p = o.length, l = p - 1; l >= 0; --l) u.push(o[l]);
754
+ break;
755
+ }
756
+ case Se:
757
+ u.push(a.flatContents, a.breakContents);
758
+ break;
759
+ case fe:
760
+ if (r && a.expandedStates) for (let o = a.expandedStates.length, p = o - 1; p >= 0; --p) u.push(a.expandedStates[p]);
761
+ else u.push(a.contents);
762
+ break;
763
+ case et:
764
+ case Ze:
765
+ case nt:
766
+ case Le:
767
+ case rt:
768
+ u.push(a.contents);
769
+ break;
770
+ case Qe:
771
+ case mt:
772
+ case tt:
773
+ case Ue:
774
+ case pe:
775
+ case Oe:
776
+ break;
777
+ default:
778
+ throw new wt(a);
779
+ }
780
+ }
781
+ }
782
+ var sr = Si;
783
+ function Ft(e, t) {
784
+ if (typeof e == "string") return t(e);
785
+ let n = /* @__PURE__ */ new Map();
786
+ return r(e);
787
+ function r(a) {
788
+ if (n.has(a)) return n.get(a);
789
+ let s = u(a);
790
+ return n.set(a, s), s;
791
+ }
792
+ function u(a) {
793
+ switch ($e(a)) {
794
+ case je:
795
+ return t(a.map(r));
796
+ case We:
797
+ return t({ ...a, parts: a.parts.map(r) });
798
+ case Se:
799
+ return t({ ...a, breakContents: r(a.breakContents), flatContents: r(a.flatContents) });
800
+ case fe: {
801
+ let { expandedStates: s, contents: o } = a;
802
+ return s ? (s = s.map(r), o = s[0]) : o = r(o), t({ ...a, contents: o, expandedStates: s });
803
+ }
804
+ case et:
805
+ case Ze:
806
+ case nt:
807
+ case Le:
808
+ case rt:
809
+ return t({ ...a, contents: r(a.contents) });
810
+ case Qe:
811
+ case mt:
812
+ case tt:
813
+ case Ue:
814
+ case pe:
815
+ case Oe:
816
+ return t(a);
817
+ default:
818
+ throw new wt(a);
819
+ }
820
+ }
821
+ }
822
+ function ju(e, t, n) {
823
+ let r = n, u = !1;
824
+ function a(s) {
825
+ if (u) return !1;
826
+ let o = t(s);
827
+ o !== void 0 && (u = !0, r = o);
828
+ }
829
+ return sr(e, a), r;
830
+ }
831
+ function bi(e) {
832
+ if (e.type === fe && e.break || e.type === pe && e.hard || e.type === Oe) return !0;
833
+ }
834
+ function re(e) {
835
+ return ju(e, bi, !1);
836
+ }
837
+ function kr(e) {
838
+ if (e.length > 0) {
839
+ let t = O(0, e, -1);
840
+ !t.expandedStates && !t.break && (t.break = "propagated");
841
+ }
842
+ return null;
843
+ }
844
+ function Bi(e) {
845
+ let t = /* @__PURE__ */ new Set(), n = [];
846
+ function r(a) {
847
+ if (a.type === Oe && kr(n), a.type === fe) {
848
+ if (n.push(a), t.has(a)) return !1;
849
+ t.add(a);
850
+ }
851
+ }
852
+ function u(a) {
853
+ a.type === fe && n.pop().break && kr(n);
854
+ }
855
+ sr(e, r, u, !0);
856
+ }
857
+ function vi(e) {
858
+ return e.type === pe && !e.hard ? e.soft ? "" : " " : e.type === Se ? e.flatContents : e;
859
+ }
860
+ function Zt(e) {
861
+ return Ft(e, vi);
862
+ }
863
+ function Pi(e) {
864
+ switch ($e(e)) {
865
+ case We:
866
+ if (e.parts.every((t) => t === "")) return "";
867
+ break;
868
+ case fe:
869
+ if (!e.contents && !e.id && !e.break && !e.expandedStates) return "";
870
+ if (e.contents.type === fe && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates) return e.contents;
871
+ break;
872
+ case et:
873
+ case Ze:
874
+ case nt:
875
+ case rt:
876
+ if (!e.contents) return "";
877
+ break;
878
+ case Se:
879
+ if (!e.flatContents && !e.breakContents) return "";
880
+ break;
881
+ case je: {
882
+ let t = [];
883
+ for (let n of e) {
884
+ if (!n) continue;
885
+ let [r, ...u] = Array.isArray(n) ? n : [n];
886
+ typeof r == "string" && typeof O(0, t, -1) == "string" ? t[t.length - 1] += r : t.push(r), t.push(...u);
887
+ }
888
+ return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
889
+ }
890
+ case Qe:
891
+ case mt:
892
+ case tt:
893
+ case Ue:
894
+ case pe:
895
+ case Le:
896
+ case Oe:
897
+ break;
898
+ default:
899
+ throw new wt(e);
900
+ }
901
+ return e;
902
+ }
903
+ function or(e) {
904
+ return Ft(e, (t) => Pi(t));
905
+ }
906
+ function ze(e, t = Ju) {
907
+ return Ft(e, (n) => typeof n == "string" ? M(t, n.split(`
908
+ `)) : n);
909
+ }
910
+ function ki(e) {
911
+ if (e.type === pe) return !0;
912
+ }
913
+ function wi(e) {
914
+ return ju(e, ki, !1);
915
+ }
916
+ function Pn(e, t) {
917
+ return e.type === Le ? { ...e, contents: t(e.contents) } : t(e);
918
+ }
919
+ function Ii(e) {
920
+ let t = !0;
921
+ return sr(e, (n) => {
922
+ switch ($e(n)) {
923
+ case Qe:
924
+ if (n === "") break;
925
+ case tt:
926
+ case Ue:
927
+ case pe:
928
+ case Oe:
929
+ return t = !1, !1;
930
+ }
931
+ }), t;
932
+ }
933
+ var Ni = Os;
934
+ function E(e) {
935
+ return { type: Ze, contents: e };
936
+ }
937
+ function Ce(e, t) {
938
+ return { type: et, contents: t, n: e };
939
+ }
940
+ function ji(e) {
941
+ return Ce(Number.NEGATIVE_INFINITY, e);
942
+ }
943
+ function Mu(e) {
944
+ return Ce(-1, e);
945
+ }
946
+ function Mi(e, t, n) {
947
+ let r = e;
948
+ if (t > 0) {
949
+ for (let u = 0; u < Math.floor(t / n); ++u) r = E(r);
950
+ r = Ce(t % n, r), r = Ce(Number.NEGATIVE_INFINITY, r);
951
+ }
952
+ return r;
953
+ }
954
+ var Me = { type: Oe }, $t = { type: mt };
955
+ function Lu(e) {
956
+ return { type: We, parts: e };
957
+ }
958
+ function c(e, t = {}) {
959
+ return Ni(t.expandedStates), { type: fe, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
960
+ }
961
+ function Ke(e, t) {
962
+ return c(e[0], { ...t, expandedStates: e });
963
+ }
964
+ function k(e, t = "", n = {}) {
965
+ return { type: Se, breakContents: e, flatContents: t, groupId: n.groupId };
966
+ }
967
+ function It(e, t) {
968
+ return { type: nt, contents: e, groupId: t.groupId, negate: t.negate };
969
+ }
970
+ function M(e, t) {
971
+ let n = [];
972
+ for (let r = 0; r < t.length; r++) r !== 0 && n.push(e), n.push(t[r]);
973
+ return n;
974
+ }
975
+ function Jt(e, t) {
976
+ return e ? { type: Le, label: e, contents: t } : t;
977
+ }
978
+ var x = { type: pe }, m = { type: pe, soft: !0 }, Ou = { type: pe, hard: !0 }, A = [Ou, Me], Li = { type: pe, hard: !0, literal: !0 }, Ju = [Li, Me];
979
+ function wr(e) {
980
+ return { type: rt, contents: e };
981
+ }
982
+ var ve = { type: Ue }, Oi = "cr", Ji = "crlf", qi = "\r", Xi = `\r
983
+ `, Ri = `
984
+ `, _i = Ri;
985
+ function Wi(e) {
986
+ return e === Oi ? qi : e === Ji ? Xi : _i;
987
+ }
988
+ var Ui = { type: 0 }, $i = { type: 1 }, qu = { value: "", length: 0, queue: [], get root() {
989
+ return qu;
990
+ } };
991
+ function Xu(e, t, n) {
992
+ let r = t.type === 1 ? e.queue.slice(0, -1) : [...e.queue, t], u = "", a = 0, s = 0, o = 0;
993
+ for (let F of r) switch (F.type) {
994
+ case 0:
995
+ y(), n.useTabs ? p(1) : l(n.tabWidth);
996
+ break;
997
+ case 3: {
998
+ let { string: B } = F;
999
+ y(), u += B, a += B.length;
1000
+ break;
1001
+ }
1002
+ case 2: {
1003
+ let { width: B } = F;
1004
+ s += 1, o += B;
1005
+ break;
1006
+ }
1007
+ default:
1008
+ throw new Error(`Unexpected indent comment '${F.type}'.`);
1009
+ }
1010
+ return d(), { ...e, value: u, length: a, queue: r };
1011
+ function p(F) {
1012
+ u += " ".repeat(F), a += n.tabWidth * F;
1013
+ }
1014
+ function l(F) {
1015
+ u += " ".repeat(F), a += F;
1016
+ }
1017
+ function y() {
1018
+ n.useTabs ? D() : d();
1019
+ }
1020
+ function D() {
1021
+ s > 0 && p(s), f();
1022
+ }
1023
+ function d() {
1024
+ o > 0 && l(o), f();
1025
+ }
1026
+ function f() {
1027
+ s = 0, o = 0;
1028
+ }
1029
+ }
1030
+ function Gi(e, t, n) {
1031
+ if (!t) return e;
1032
+ if (t.type === "root") return { ...e, root: e };
1033
+ if (t === Number.NEGATIVE_INFINITY) return e.root;
1034
+ let r;
1035
+ return typeof t == "number" ? t < 0 ? r = $i : r = { type: 2, width: t } : r = { type: 3, string: t }, Xu(e, r, n);
1036
+ }
1037
+ function Vi(e, t) {
1038
+ return Xu(e, Ui, t);
1039
+ }
1040
+ function Ki(e) {
1041
+ let t = 0;
1042
+ for (let n = e.length - 1; n >= 0; n--) {
1043
+ let r = e[n];
1044
+ if (r === " " || r === " ") t++;
1045
+ else break;
1046
+ }
1047
+ return t;
1048
+ }
1049
+ function Ru(e) {
1050
+ let t = Ki(e);
1051
+ return { text: t === 0 ? e : e.slice(0, e.length - t), count: t };
1052
+ }
1053
+ var se = /* @__PURE__ */ Symbol("MODE_BREAK"), Te = /* @__PURE__ */ Symbol("MODE_FLAT"), kn = /* @__PURE__ */ Symbol("DOC_FILL_PRINTED_LENGTH");
1054
+ function Gt(e, t, n, r, u, a) {
1055
+ if (n === Number.POSITIVE_INFINITY) return !0;
1056
+ let s = t.length, o = !1, p = [e], l = "";
1057
+ for (; n >= 0; ) {
1058
+ if (p.length === 0) {
1059
+ if (s === 0) return !0;
1060
+ p.push(t[--s]);
1061
+ continue;
1062
+ }
1063
+ let { mode: y, doc: D } = p.pop(), d = $e(D);
1064
+ switch (d) {
1065
+ case Qe:
1066
+ D && (o && (l += " ", n -= 1, o = !1), l += D, n -= it(D));
1067
+ break;
1068
+ case je:
1069
+ case We: {
1070
+ let f = d === je ? D : D.parts, F = D[kn] ?? 0;
1071
+ for (let B = f.length - 1; B >= F; B--) p.push({ mode: y, doc: f[B] });
1072
+ break;
1073
+ }
1074
+ case Ze:
1075
+ case et:
1076
+ case nt:
1077
+ case Le:
1078
+ p.push({ mode: y, doc: D.contents });
1079
+ break;
1080
+ case tt: {
1081
+ let { text: f, count: F } = Ru(l);
1082
+ l = f, n += F;
1083
+ break;
1084
+ }
1085
+ case fe: {
1086
+ if (a && D.break) return !1;
1087
+ let f = D.break ? se : y, F = D.expandedStates && f === se ? O(0, D.expandedStates, -1) : D.contents;
1088
+ p.push({ mode: f, doc: F });
1089
+ break;
1090
+ }
1091
+ case Se: {
1092
+ let f = (D.groupId ? u[D.groupId] || Te : y) === se ? D.breakContents : D.flatContents;
1093
+ f && p.push({ mode: y, doc: f });
1094
+ break;
1095
+ }
1096
+ case pe:
1097
+ if (y === se || D.hard) return !0;
1098
+ D.soft || (o = !0);
1099
+ break;
1100
+ case rt:
1101
+ r = !0;
1102
+ break;
1103
+ case Ue:
1104
+ if (r) return !1;
1105
+ break;
1106
+ }
1107
+ }
1108
+ return !1;
1109
+ }
1110
+ function _u(e, t) {
1111
+ let n = /* @__PURE__ */ Object.create(null), r = t.printWidth, u = Wi(t.endOfLine), a = 0, s = [{ indent: qu, mode: se, doc: e }], o = "", p = !1, l = [], y = [], D = [], d = [], f = 0;
1112
+ for (Bi(e); s.length > 0; ) {
1113
+ let { indent: S, mode: h, doc: T } = s.pop();
1114
+ switch ($e(T)) {
1115
+ case Qe: {
1116
+ let I = u !== `
1117
+ ` ? z(0, T, `
1118
+ `, u) : T;
1119
+ I && (o += I, s.length > 0 && (a += it(I)));
1120
+ break;
1121
+ }
1122
+ case je:
1123
+ for (let I = T.length - 1; I >= 0; I--) s.push({ indent: S, mode: h, doc: T[I] });
1124
+ break;
1125
+ case mt:
1126
+ if (y.length >= 2) throw new Error("There are too many 'cursor' in doc.");
1127
+ y.push(f + o.length);
1128
+ break;
1129
+ case Ze:
1130
+ s.push({ indent: Vi(S, t), mode: h, doc: T.contents });
1131
+ break;
1132
+ case et:
1133
+ s.push({ indent: Gi(S, T.n, t), mode: h, doc: T.contents });
1134
+ break;
1135
+ case tt:
1136
+ v();
1137
+ break;
1138
+ case fe:
1139
+ switch (h) {
1140
+ case Te:
1141
+ if (!p) {
1142
+ s.push({ indent: S, mode: T.break ? se : Te, doc: T.contents });
1143
+ break;
1144
+ }
1145
+ case se: {
1146
+ p = !1;
1147
+ let I = { indent: S, mode: Te, doc: T.contents }, J = r - a, H = l.length > 0;
1148
+ if (!T.break && Gt(I, s, J, H, n)) s.push(I);
1149
+ else if (T.expandedStates) {
1150
+ let q = O(0, T.expandedStates, -1);
1151
+ if (T.break) {
1152
+ s.push({ indent: S, mode: se, doc: q });
1153
+ break;
1154
+ } else for (let U = 1; U < T.expandedStates.length + 1; U++) if (U >= T.expandedStates.length) {
1155
+ s.push({ indent: S, mode: se, doc: q });
1156
+ break;
1157
+ } else {
1158
+ let $ = T.expandedStates[U], ae = { indent: S, mode: Te, doc: $ };
1159
+ if (Gt(ae, s, J, H, n)) {
1160
+ s.push(ae);
1161
+ break;
1162
+ }
1163
+ }
1164
+ } else s.push({ indent: S, mode: se, doc: T.contents });
1165
+ break;
1166
+ }
1167
+ }
1168
+ T.id && (n[T.id] = O(0, s, -1).mode);
1169
+ break;
1170
+ case We: {
1171
+ let I = r - a, J = T[kn] ?? 0, { parts: H } = T, q = H.length - J;
1172
+ if (q === 0) break;
1173
+ let U = H[J + 0], $ = H[J + 1], ae = { indent: S, mode: Te, doc: U }, xe = { indent: S, mode: se, doc: U }, P = Gt(ae, [], I, l.length > 0, n, !0);
1174
+ if (q === 1) {
1175
+ P ? s.push(ae) : s.push(xe);
1176
+ break;
1177
+ }
1178
+ let G = { indent: S, mode: Te, doc: $ }, K = { indent: S, mode: se, doc: $ };
1179
+ if (q === 2) {
1180
+ P ? s.push(G, ae) : s.push(K, xe);
1181
+ break;
1182
+ }
1183
+ let we = H[J + 2], Ve = { indent: S, mode: h, doc: { ...T, [kn]: J + 2 } }, Rt = Gt({ indent: S, mode: Te, doc: [U, $, we] }, [], I, l.length > 0, n, !0);
1184
+ s.push(Ve), Rt ? s.push(G, ae) : P ? s.push(K, ae) : s.push(K, xe);
1185
+ break;
1186
+ }
1187
+ case Se:
1188
+ case nt: {
1189
+ let I = T.groupId ? n[T.groupId] : h;
1190
+ if (I === se) {
1191
+ let J = T.type === Se ? T.breakContents : T.negate ? T.contents : E(T.contents);
1192
+ J && s.push({ indent: S, mode: h, doc: J });
1193
+ }
1194
+ if (I === Te) {
1195
+ let J = T.type === Se ? T.flatContents : T.negate ? E(T.contents) : T.contents;
1196
+ J && s.push({ indent: S, mode: h, doc: J });
1197
+ }
1198
+ break;
1199
+ }
1200
+ case rt:
1201
+ l.push({ indent: S, mode: h, doc: T.contents });
1202
+ break;
1203
+ case Ue:
1204
+ l.length > 0 && s.push({ indent: S, mode: h, doc: Ou });
1205
+ break;
1206
+ case pe:
1207
+ switch (h) {
1208
+ case Te:
1209
+ if (T.hard) p = !0;
1210
+ else {
1211
+ T.soft || (o += " ", a += 1);
1212
+ break;
1213
+ }
1214
+ case se:
1215
+ if (l.length > 0) {
1216
+ s.push({ indent: S, mode: h, doc: T }, ...l.reverse()), l.length = 0;
1217
+ break;
1218
+ }
1219
+ T.literal ? (o += u, a = 0, S.root && (S.root.value && (o += S.root.value), a = S.root.length)) : (v(), o += u + S.value, a = S.length);
1220
+ break;
1221
+ }
1222
+ break;
1223
+ case Le:
1224
+ s.push({ indent: S, mode: h, doc: T.contents });
1225
+ break;
1226
+ case Oe:
1227
+ break;
1228
+ default:
1229
+ throw new wt(T);
1230
+ }
1231
+ s.length === 0 && l.length > 0 && (s.push(...l.reverse()), l.length = 0);
1232
+ }
1233
+ let F = D.join("") + o, B = [...d, ...y];
1234
+ if (B.length !== 2) return { formatted: F };
1235
+ let C = B[0];
1236
+ return { formatted: F, cursorNodeStart: C, cursorNodeText: F.slice(C, O(0, B, -1)) };
1237
+ function v() {
1238
+ let { text: S, count: h } = Ru(o);
1239
+ S && (D.push(S), f += S.length), o = "", a -= h, y.length > 0 && (d.push(...y.map((T) => Math.min(T, f))), y.length = 0);
1240
+ }
1241
+ }
1242
+ function Hi(e, t, n = 0) {
1243
+ let r = 0;
1244
+ for (let u = n; u < e.length; ++u) e[u] === " " ? r = r + t - r % t : r++;
1245
+ return r;
1246
+ }
1247
+ var zi = Hi;
1248
+ function Yi(e, t) {
1249
+ let n = e.lastIndexOf(`
1250
+ `);
1251
+ return n === -1 ? 0 : zi(e.slice(n + 1).match(/^[\t ]*/u)[0], t);
1252
+ }
1253
+ var Qi = Yi;
1254
+ function Wu(e, t, n) {
1255
+ let { node: r } = e;
1256
+ if (r.type === "TemplateLiteral" && np(e)) {
1257
+ let p = ep(e, t, n);
1258
+ if (p) return p;
1259
+ }
1260
+ let u = "expressions";
1261
+ r.type === "TSTemplateLiteralType" && (u = "types");
1262
+ let a = [], s = e.map(n, u);
1263
+ a.push(ve, "`");
1264
+ let o = 0;
1265
+ return e.each(({ index: p, node: l }) => {
1266
+ if (a.push(n()), l.tail) return;
1267
+ let { tabWidth: y } = t, D = l.value.raw, d = D.includes(`
1268
+ `) ? Qi(D, y) : o;
1269
+ o = d;
1270
+ let f = s[p], F = r[u][p], B = ce(t.originalText, N(l), j(r.quasis[p + 1]));
1271
+ if (!B) {
1272
+ let v = _u(f, { ...t, printWidth: Number.POSITIVE_INFINITY }).formatted;
1273
+ v.includes(`
1274
+ `) ? B = !0 : f = v;
1275
+ }
1276
+ B && (g(F) || F.type === "Identifier" || R(F) || F.type === "ConditionalExpression" || F.type === "SequenceExpression" || Fe(F) || Ne(F)) && (f = [E([m, f]), m]);
1277
+ let C = d === 0 && D.endsWith(`
1278
+ `) ? Ce(Number.NEGATIVE_INFINITY, f) : Mi(f, d, y);
1279
+ a.push(c(["${", C, ve, "}"]));
1280
+ }, "quasis"), a.push("`"), a;
1281
+ }
1282
+ function Zi(e, t, n) {
1283
+ let r = n("quasi"), { node: u } = e, a = "", s = He(u.quasi, b.Leading)[0];
1284
+ return s && (ce(t.originalText, N(u.typeArguments ?? u.tag), j(s)) ? a = m : a = " "), Jt(r.label && { tagged: !0, ...r.label }, [n("tag"), n("typeArguments"), a, ve, r]);
1285
+ }
1286
+ function ep(e, t, n) {
1287
+ let { node: r } = e, u = r.quasis[0].value.raw.trim().split(/\s*\|\s*/u);
1288
+ if (u.length > 1 || u.some((a) => a.length > 0)) {
1289
+ t.__inJestEach = !0;
1290
+ let a = e.map(n, "expressions");
1291
+ t.__inJestEach = !1;
1292
+ let s = a.map((D) => "${" + _u(D, { ...t, printWidth: Number.POSITIVE_INFINITY, endOfLine: "lf" }).formatted + "}"), o = [{ hasLineBreak: !1, cells: [] }];
1293
+ for (let D = 1; D < r.quasis.length; D++) {
1294
+ let d = O(0, o, -1), f = s[D - 1];
1295
+ d.cells.push(f), f.includes(`
1296
+ `) && (d.hasLineBreak = !0), r.quasis[D].value.raw.includes(`
1297
+ `) && o.push({ hasLineBreak: !1, cells: [] });
1298
+ }
1299
+ let p = Math.max(u.length, ...o.map((D) => D.cells.length)), l = Array.from({ length: p }).fill(0), y = [{ cells: u }, ...o.filter((D) => D.cells.length > 0)];
1300
+ for (let { cells: D } of y.filter((d) => !d.hasLineBreak)) for (let [d, f] of D.entries()) l[d] = Math.max(l[d], it(f));
1301
+ return [ve, "`", E([A, M(A, y.map((D) => M(" | ", D.cells.map((d, f) => D.hasLineBreak ? d : d + " ".repeat(l[f] - it(d))))))]), A, "`"];
1302
+ }
1303
+ }
1304
+ function tp(e, t) {
1305
+ let { node: n } = e, r = t();
1306
+ return g(n) && (r = c([E([m, r]), m])), ["${", r, ve, "}"];
1307
+ }
1308
+ function ir(e, t) {
1309
+ return e.map(() => tp(e, t), "expressions");
1310
+ }
1311
+ function Uu(e, t) {
1312
+ return Ft(e, (n) => typeof n == "string" ? t ? z(0, n, /(\\*)`/gu, "$1$1\\`") : $u(n) : n);
1313
+ }
1314
+ function $u(e) {
1315
+ return z(0, e, /([\\`]|\$\{)/gu, "\\$1");
1316
+ }
1317
+ function np({ node: e, parent: t }) {
1318
+ let n = /^[fx]?(?:describe|it|test)$/u;
1319
+ 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" && n.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" && n.test(t.tag.object.object.name));
1320
+ }
1321
+ var wn = [(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"];
1322
+ function rp(e) {
1323
+ let t = (r) => r.type === "TemplateLiteral", n = (r, u) => _e(r) && !r.computed && r.key.type === "Identifier" && r.key.name === "styles" && u === "value";
1324
+ return e.match(t, (r, u) => ee(r) && u === "elements", n, ...wn) || e.match(t, n, ...wn);
1325
+ }
1326
+ function up(e) {
1327
+ return e.match((t) => t.type === "TemplateLiteral", (t, n) => _e(t) && !t.computed && t.key.type === "Identifier" && t.key.name === "template" && n === "value", ...wn);
1328
+ }
1329
+ function mn(e, t) {
1330
+ return g(e, b.Block | b.Leading, ({ value: n }) => n === ` ${t} `);
1331
+ }
1332
+ function Gu({ node: e, parent: t }, n) {
1333
+ return mn(e, n) || ap(t) && mn(t, n) || t.type === "ExpressionStatement" && mn(t, n);
1334
+ }
1335
+ function ap(e) {
1336
+ return e.type === "AsConstExpression" || e.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const";
1337
+ }
1338
+ async function sp(e, t, n) {
1339
+ let { node: r } = n, u = "";
1340
+ for (let [p, l] of r.quasis.entries()) {
1341
+ let { raw: y } = l.value;
1342
+ p > 0 && (u += "@prettier-placeholder-" + (p - 1) + "-id"), u += y;
1343
+ }
1344
+ let a = await e(u, { parser: "scss" }), s = ir(n, t), o = op(a, s);
1345
+ if (!o) throw new Error("Couldn't insert all the expressions");
1346
+ return ["`", E([A, o]), m, "`"];
1347
+ }
1348
+ function op(e, t) {
1349
+ if (!_(t)) return e;
1350
+ let n = 0, r = Ft(or(e), (u) => typeof u != "string" || !u.includes("@prettier-placeholder") ? u : u.split(/@prettier-placeholder-(\d+)-id/u).map((a, s) => s % 2 === 0 ? ze(a) : (n++, t[a])));
1351
+ return t.length === n ? r : null;
1352
+ }
1353
+ function ip(e) {
1354
+ return e.match(void 0, (t, n) => n === "quasi" && t.type === "TaggedTemplateExpression" && Gn(t.tag, ["css", "css.global", "css.resolve"])) || e.match(void 0, (t, n) => n === "expression" && t.type === "JSXExpressionContainer", (t, n) => n === "children" && t.type === "JSXElement" && t.openingElement.name.type === "JSXIdentifier" && t.openingElement.name.name === "style" && t.openingElement.attributes.some((r) => r.type === "JSXAttribute" && r.name.type === "JSXIdentifier" && r.name.name === "jsx"));
1355
+ }
1356
+ function Vt(e) {
1357
+ return e.type === "Identifier" && e.name === "styled";
1358
+ }
1359
+ function Ir(e) {
1360
+ return /^[A-Z]/u.test(e.object.name) && e.property.name === "extend";
1361
+ }
1362
+ function pp({ parent: e }) {
1363
+ if (!e || e.type !== "TaggedTemplateExpression") return !1;
1364
+ let t = e.tag.type === "ParenthesizedExpression" ? e.tag.expression : e.tag;
1365
+ switch (t.type) {
1366
+ case "MemberExpression":
1367
+ return Vt(t.object) || Ir(t);
1368
+ case "CallExpression":
1369
+ return Vt(t.callee) || t.callee.type === "MemberExpression" && (t.callee.object.type === "MemberExpression" && (Vt(t.callee.object.object) || Ir(t.callee.object)) || t.callee.object.type === "CallExpression" && Vt(t.callee.object.callee));
1370
+ case "Identifier":
1371
+ return t.name === "css";
1372
+ default:
1373
+ return !1;
1374
+ }
1375
+ }
1376
+ function lp({ parent: e, grandparent: t }) {
1377
+ return t?.type === "JSXAttribute" && e.type === "JSXExpressionContainer" && t.name.type === "JSXIdentifier" && t.name.name === "css";
1378
+ }
1379
+ var cp = (e) => ip(e) || pp(e) || lp(e) || rp(e);
1380
+ async function Dp(e, t, n) {
1381
+ let { node: r } = n, u = r.quasis.length, a = ir(n, t), s = [];
1382
+ for (let o = 0; o < u; o++) {
1383
+ let p = r.quasis[o], l = o === 0, y = o === u - 1, D = p.value.cooked, d = D.split(`
1384
+ `), f = d.length, F = a[o], B = f > 2 && d[0].trim() === "" && d[1].trim() === "", C = f > 2 && d[f - 1].trim() === "" && d[f - 2].trim() === "", v = d.every((h) => /^\s*(?:#[^\n\r]*)?$/u.test(h));
1385
+ if (!y && /#[^\n\r]*$/u.test(d[f - 1])) return null;
1386
+ let S = null;
1387
+ v ? S = yp(d) : S = await e(D, { parser: "graphql" }), S ? (S = Uu(S, !1), !l && B && s.push(""), s.push(S), !y && C && s.push("")) : !l && !y && B && s.push(""), F && s.push(F);
1388
+ }
1389
+ return ["`", E([A, M(A, s)]), A, "`"];
1390
+ }
1391
+ function yp(e) {
1392
+ let t = [], n = !1, r = e.map((u) => u.trim());
1393
+ for (let [u, a] of r.entries()) a !== "" && (r[u - 1] === "" && n ? t.push([A, a]) : t.push(a), n = !0);
1394
+ return t.length === 0 ? null : M(A, t);
1395
+ }
1396
+ function dp({ node: e, parent: t }) {
1397
+ return Gu({ 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");
1398
+ }
1399
+ var Fn = 0;
1400
+ async function Vu(e, t, n, r, u) {
1401
+ let { node: a } = r, s = Fn;
1402
+ Fn = Fn + 1 >>> 0;
1403
+ let o = (v) => `PRETTIER_HTML_PLACEHOLDER_${v}_${s}_IN_JS`, p = a.quasis.map((v, S, h) => S === h.length - 1 ? v.value.cooked : v.value.cooked + o(S)).join(""), l = ir(r, n), y = new RegExp(o("(\\d+)"), "gu"), D = 0, d = await t(p, { parser: e, __onHtmlRoot(v) {
1404
+ D = v.children.length;
1405
+ } }), f = Ft(d, (v) => {
1406
+ if (typeof v != "string") return v;
1407
+ let S = [], h = v.split(y);
1408
+ for (let T = 0; T < h.length; T++) {
1409
+ let I = h[T];
1410
+ if (T % 2 === 0) {
1411
+ I && (I = $u(I), u.__embeddedInHtml && (I = z(0, I, /<\/(?=script\b)/giu, "<\\/")), S.push(I));
1412
+ continue;
1413
+ }
1414
+ let J = Number(I);
1415
+ S.push(l[J]);
1416
+ }
1417
+ return S;
1418
+ }), F = /^\s/u.test(p) ? " " : "", B = /\s$/u.test(p) ? " " : "", C = u.htmlWhitespaceSensitivity === "ignore" ? A : F && B ? x : null;
1419
+ return C ? c(["`", E([C, c(f)]), C, "`"]) : Jt({ hug: !1 }, c(["`", F, D > 1 ? E(c(f)) : c(f), B, "`"]));
1420
+ }
1421
+ function fp(e) {
1422
+ return Gu(e, "HTML") || e.match((t) => t.type === "TemplateLiteral", (t, n) => t.type === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "html" && n === "quasi");
1423
+ }
1424
+ var mp = Vu.bind(void 0, "html"), Fp = Vu.bind(void 0, "angular");
1425
+ async function Ep(e, t, n) {
1426
+ let { node: r } = n, u = z(0, r.quasis[0].value.raw, /((?:\\\\)*)\\`/gu, (p, l) => "\\".repeat(l.length / 2) + "`"), a = Ap(u), s = a !== "";
1427
+ s && (u = z(0, u, new RegExp(`^${a}`, "gmu"), ""));
1428
+ let o = Uu(await e(u, { parser: "markdown", __inJsTemplate: !0 }), !0);
1429
+ return ["`", s ? E([m, o]) : [Ju, ji(o)], m, "`"];
1430
+ }
1431
+ function Ap(e) {
1432
+ let t = e.match(/^([^\S\n]*)\S/mu);
1433
+ return t === null ? "" : t[1];
1434
+ }
1435
+ function gp({ node: e, parent: t }) {
1436
+ return t?.type === "TaggedTemplateExpression" && e.quasis.length === 1 && t.tag.type === "Identifier" && (t.tag.name === "md" || t.tag.name === "markdown");
1437
+ }
1438
+ var Cp = [{ test: cp, print: sp }, { test: dp, print: Dp }, { test: fp, print: mp }, { test: up, print: Fp }, { test: gp, print: Ep }].map(({ test: e, print: t }) => ({ test: e, print: xp(t) }));
1439
+ function hp(e) {
1440
+ let { node: t } = e;
1441
+ if (t.type !== "TemplateLiteral" || Tp(t)) return;
1442
+ let n = Cp.find(({ test: r }) => r(e));
1443
+ if (n) return t.quasis.length === 1 && t.quasis[0].value.raw.trim() === "" ? "``" : n.print;
1444
+ }
1445
+ function xp(e) {
1446
+ return async (...t) => {
1447
+ let n = await e(...t);
1448
+ return n && Jt({ embed: !0, ...n.label }, n);
1449
+ };
1450
+ }
1451
+ function Tp({ quasis: e }) {
1452
+ return e.some(({ value: { cooked: t } }) => t === null);
1453
+ }
1454
+ var Sp = hp, bp = /\*\/$/, Bp = /^\/\*\*?/, Ku = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/, vp = /(^|\s+)\/\/([^\n\r]*)/g, Nr = /^(\r?\n)+/, Pp = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g, jr = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g, kp = /(\r?\n|^) *\* ?/g, Hu = [];
1455
+ function wp(e) {
1456
+ let t = e.match(Ku);
1457
+ return t ? t[0].trimStart() : "";
1458
+ }
1459
+ function Ip(e) {
1460
+ let t = e.match(Ku)?.[0];
1461
+ return t == null ? e : e.slice(t.length);
1462
+ }
1463
+ function Np(e) {
1464
+ e = z(0, e.replace(Bp, "").replace(bp, ""), kp, "$1");
1465
+ let t = "";
1466
+ for (; t !== e; ) t = e, e = z(0, e, Pp, `
1467
+ $1 $2
1468
+ `);
1469
+ e = e.replace(Nr, "").trimEnd();
1470
+ let n = /* @__PURE__ */ Object.create(null), r = z(0, e, jr, "").replace(Nr, "").trimEnd(), u;
1471
+ for (; u = jr.exec(e); ) {
1472
+ let a = z(0, u[2], vp, "");
1473
+ if (typeof n[u[1]] == "string" || Array.isArray(n[u[1]])) {
1474
+ let s = n[u[1]];
1475
+ n[u[1]] = [...Hu, ...Array.isArray(s) ? s : [s], a];
1476
+ } else n[u[1]] = a;
1477
+ }
1478
+ return { comments: r, pragmas: n };
1479
+ }
1480
+ function jp({ comments: e = "", pragmas: t = {} }) {
1481
+ let n = Object.keys(t), r = n.flatMap((a) => Mr(a, t[a])).map((a) => ` * ${a}
1482
+ `).join("");
1483
+ if (!e) {
1484
+ if (n.length === 0) return "";
1485
+ if (n.length === 1 && !Array.isArray(t[n[0]])) {
1486
+ let a = t[n[0]];
1487
+ return `/** ${Mr(n[0], a)[0]} */`;
1488
+ }
1489
+ }
1490
+ let u = e.split(`
1491
+ `).map((a) => ` * ${a}`).join(`
1492
+ `) + `
1493
+ `;
1494
+ return `/**
1495
+ ` + (e ? u : "") + (e && n.length > 0 ? ` *
1496
+ ` : "") + r + " */";
1497
+ }
1498
+ function Mr(e, t) {
1499
+ return [...Hu, ...Array.isArray(t) ? t : [t]].map((n) => `@${e} ${n}`.trim());
1500
+ }
1501
+ var Mp = "format";
1502
+ function Lp(e) {
1503
+ if (!e.startsWith("#!")) return "";
1504
+ let t = e.indexOf(`
1505
+ `);
1506
+ return t === -1 ? e : e.slice(0, t);
1507
+ }
1508
+ var Op = Lp;
1509
+ function Jp(e) {
1510
+ let t = Op(e);
1511
+ t && (e = e.slice(t.length + 1));
1512
+ let n = wp(e), { pragmas: r, comments: u } = Np(n);
1513
+ return { shebang: t, text: e, pragmas: r, comments: u };
1514
+ }
1515
+ function qp(e) {
1516
+ let { shebang: t, text: n, pragmas: r, comments: u } = Jp(e), a = Ip(n), s = jp({ pragmas: { [Mp]: "", ...r }, comments: u.trimStart() });
1517
+ return (t ? `${t}
1518
+ ` : "") + s + (a.startsWith(`
1519
+ `) ? `
1520
+ ` : `
1521
+
1522
+ `) + a;
1523
+ }
1524
+ function Xp(e) {
1525
+ if (!he(e)) return !1;
1526
+ let t = `*${e.value}*`.split(`
1527
+ `);
1528
+ return t.length > 1 && t.every((n) => n.trimStart()[0] === "*");
1529
+ }
1530
+ var En = /* @__PURE__ */ new WeakMap();
1531
+ function Rp(e) {
1532
+ return En.has(e) || En.set(e, Xp(e)), En.get(e);
1533
+ }
1534
+ var _p = Rp;
1535
+ function Wp(e, t) {
1536
+ let n = e.node;
1537
+ if (Mt(n)) return t.originalText.slice(j(n), N(n)).trimEnd();
1538
+ if (_p(n)) return Up(n);
1539
+ if (he(n)) return ["/*", ze(n.value), "*/"];
1540
+ throw new Error("Not a comment: " + JSON.stringify(n));
1541
+ }
1542
+ function Up(e) {
1543
+ let t = e.value.split(`
1544
+ `);
1545
+ return ["/*", M(A, t.map((n, r) => r === 0 ? n.trimEnd() : " " + (r < t.length - 1 ? n.trim() : n.trimStart()))), "*/"];
1546
+ }
1547
+ function In(e, t) {
1548
+ if (e.isRoot) return !1;
1549
+ let { node: n, key: r, parent: u } = e;
1550
+ if (t.__isInHtmlInterpolation && !t.bracketSpacing && Kp(n) && St(e)) return !0;
1551
+ if ($p(n)) return !1;
1552
+ if (n.type === "Identifier") {
1553
+ if (n.extra?.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(n.name) || r === "left" && (n.name === "async" && !u.await || n.name === "let") && u.type === "ForOfStatement") return !0;
1554
+ if (n.name === "let") {
1555
+ let a = e.findAncestor((s) => s.type === "ForOfStatement")?.left;
1556
+ if (a && ne(a, (s) => s === n)) return !0;
1557
+ }
1558
+ if (r === "object" && n.name === "let" && u.type === "MemberExpression" && u.computed && !u.optional) {
1559
+ let a = e.findAncestor((o) => o.type === "ExpressionStatement" || o.type === "ForStatement" || o.type === "ForInStatement"), s = a ? a.type === "ExpressionStatement" ? a.expression : a.type === "ForStatement" ? a.init : a.left : void 0;
1560
+ if (s && ne(s, (o) => o === n)) return !0;
1561
+ }
1562
+ if (r === "expression") switch (n.name) {
1563
+ case "await":
1564
+ case "interface":
1565
+ case "module":
1566
+ case "using":
1567
+ case "yield":
1568
+ case "let":
1569
+ case "component":
1570
+ case "hook":
1571
+ case "type": {
1572
+ let a = e.findAncestor((s) => !Fe(s));
1573
+ if (a !== u && a.type === "ExpressionStatement") return !0;
1574
+ }
1575
+ }
1576
+ return !1;
1577
+ }
1578
+ if (n.type === "ObjectExpression" || n.type === "FunctionExpression" || n.type === "ClassExpression" || n.type === "DoExpression") {
1579
+ let a = e.findAncestor((s) => s.type === "ExpressionStatement")?.expression;
1580
+ if (a && ne(a, (s) => s === n)) return !0;
1581
+ }
1582
+ if (n.type === "ObjectExpression") {
1583
+ let a = e.findAncestor((s) => s.type === "ArrowFunctionExpression")?.body;
1584
+ if (a && a.type !== "SequenceExpression" && a.type !== "AssignmentExpression" && ne(a, (s) => s === n)) return !0;
1585
+ }
1586
+ switch (u.type) {
1587
+ case "ParenthesizedExpression":
1588
+ return !1;
1589
+ case "ClassDeclaration":
1590
+ case "ClassExpression":
1591
+ if (r === "superClass" && (n.type === "ArrowFunctionExpression" || n.type === "AssignmentExpression" || n.type === "AwaitExpression" || n.type === "BinaryExpression" || n.type === "ConditionalExpression" || n.type === "LogicalExpression" || n.type === "NewExpression" || n.type === "ObjectExpression" || n.type === "SequenceExpression" || n.type === "TaggedTemplateExpression" || n.type === "UnaryExpression" || n.type === "UpdateExpression" || n.type === "YieldExpression" || n.type === "TSNonNullExpression" || n.type === "ClassExpression" && _(n.decorators))) return !0;
1592
+ break;
1593
+ case "ExportDefaultDeclaration":
1594
+ return zu(e, t) || n.type === "SequenceExpression";
1595
+ case "Decorator":
1596
+ if (r === "expression" && !zp(n)) return !0;
1597
+ break;
1598
+ case "TypeAnnotation":
1599
+ if (e.match(void 0, void 0, (a, s) => s === "returnType" && a.type === "ArrowFunctionExpression") && Vp(n)) return !0;
1600
+ break;
1601
+ case "BinaryExpression":
1602
+ if (r === "left" && (u.operator === "in" || u.operator === "instanceof") && n.type === "UnaryExpression") return !0;
1603
+ break;
1604
+ case "VariableDeclarator":
1605
+ if (r === "init" && e.match(void 0, void 0, (a, s) => s === "declarations" && a.type === "VariableDeclaration", (a, s) => s === "left" && a.type === "ForInStatement")) return !0;
1606
+ break;
1607
+ }
1608
+ switch (n.type) {
1609
+ case "UpdateExpression":
1610
+ if (u.type === "UnaryExpression") return n.prefix && (n.operator === "++" && u.operator === "+" || n.operator === "--" && u.operator === "-");
1611
+ case "UnaryExpression":
1612
+ switch (u.type) {
1613
+ case "UnaryExpression":
1614
+ return n.operator === u.operator && (n.operator === "+" || n.operator === "-");
1615
+ case "BindExpression":
1616
+ return !0;
1617
+ case "MemberExpression":
1618
+ case "OptionalMemberExpression":
1619
+ return r === "object";
1620
+ case "TaggedTemplateExpression":
1621
+ return !0;
1622
+ case "NewExpression":
1623
+ case "CallExpression":
1624
+ case "OptionalCallExpression":
1625
+ return r === "callee";
1626
+ case "BinaryExpression":
1627
+ return r === "left" && u.operator === "**";
1628
+ case "TSNonNullExpression":
1629
+ return !0;
1630
+ default:
1631
+ return !1;
1632
+ }
1633
+ case "BinaryExpression":
1634
+ if (u.type === "UpdateExpression" || n.operator === "in" && Gp(e)) return !0;
1635
+ if (n.operator === "|>" && n.extra?.parenthesized) {
1636
+ let a = e.grandparent;
1637
+ if (a.type === "BinaryExpression" && a.operator === "|>") return !0;
1638
+ }
1639
+ case "TSTypeAssertion":
1640
+ case "TSAsExpression":
1641
+ case "TSSatisfiesExpression":
1642
+ case "AsExpression":
1643
+ case "AsConstExpression":
1644
+ case "SatisfiesExpression":
1645
+ case "LogicalExpression":
1646
+ switch (u.type) {
1647
+ case "TSAsExpression":
1648
+ case "TSSatisfiesExpression":
1649
+ case "AsExpression":
1650
+ case "AsConstExpression":
1651
+ case "SatisfiesExpression":
1652
+ return !Fe(n);
1653
+ case "ConditionalExpression":
1654
+ return Fe(n) || po(n);
1655
+ case "CallExpression":
1656
+ case "NewExpression":
1657
+ case "OptionalCallExpression":
1658
+ return r === "callee";
1659
+ case "ClassExpression":
1660
+ case "ClassDeclaration":
1661
+ return r === "superClass";
1662
+ case "TSTypeAssertion":
1663
+ case "TaggedTemplateExpression":
1664
+ case "UnaryExpression":
1665
+ case "JSXSpreadAttribute":
1666
+ case "SpreadElement":
1667
+ case "BindExpression":
1668
+ case "AwaitExpression":
1669
+ case "TSNonNullExpression":
1670
+ case "UpdateExpression":
1671
+ return !0;
1672
+ case "MemberExpression":
1673
+ case "OptionalMemberExpression":
1674
+ return r === "object";
1675
+ case "AssignmentExpression":
1676
+ case "AssignmentPattern":
1677
+ return r === "left" && (n.type === "TSTypeAssertion" || Fe(n));
1678
+ case "LogicalExpression":
1679
+ if (n.type === "LogicalExpression") return u.operator !== n.operator;
1680
+ case "BinaryExpression": {
1681
+ let { operator: a, type: s } = n;
1682
+ if (!a && s !== "TSTypeAssertion") return !0;
1683
+ let o = Yt(a), p = u.operator, l = Yt(p);
1684
+ return !!(l > o || r === "right" && l === o || l === o && !Qn(p, a) || l < o && a === "%" && (p === "+" || p === "-") || xo(p));
1685
+ }
1686
+ default:
1687
+ return !1;
1688
+ }
1689
+ case "SequenceExpression":
1690
+ return u.type !== "ForStatement";
1691
+ case "YieldExpression":
1692
+ if (u.type === "AwaitExpression" || u.type === "TSTypeAssertion") return !0;
1693
+ case "AwaitExpression":
1694
+ switch (u.type) {
1695
+ case "TaggedTemplateExpression":
1696
+ case "UnaryExpression":
1697
+ case "LogicalExpression":
1698
+ case "SpreadElement":
1699
+ case "TSAsExpression":
1700
+ case "TSSatisfiesExpression":
1701
+ case "TSNonNullExpression":
1702
+ case "AsExpression":
1703
+ case "AsConstExpression":
1704
+ case "SatisfiesExpression":
1705
+ case "BindExpression":
1706
+ return !0;
1707
+ case "MemberExpression":
1708
+ case "OptionalMemberExpression":
1709
+ return r === "object";
1710
+ case "NewExpression":
1711
+ case "CallExpression":
1712
+ case "OptionalCallExpression":
1713
+ return r === "callee";
1714
+ case "ConditionalExpression":
1715
+ return r === "test";
1716
+ case "BinaryExpression":
1717
+ return !(!n.argument && u.operator === "|>");
1718
+ default:
1719
+ return !1;
1720
+ }
1721
+ case "TSFunctionType":
1722
+ if (e.match((a) => a.type === "TSFunctionType", (a, s) => s === "typeAnnotation" && a.type === "TSTypeAnnotation", (a, s) => s === "returnType" && a.type === "ArrowFunctionExpression")) return !0;
1723
+ case "TSConditionalType":
1724
+ case "TSConstructorType":
1725
+ case "ConditionalTypeAnnotation":
1726
+ if (r === "extendsType" && Re(n) && u.type === n.type || r === "checkType" && Re(u)) return !0;
1727
+ if (r === "extendsType" && u.type === "TSConditionalType") {
1728
+ let { typeAnnotation: a } = n.returnType || n.typeAnnotation;
1729
+ if (a.type === "TSTypePredicate" && a.typeAnnotation && (a = a.typeAnnotation.typeAnnotation), a.type === "TSInferType" && a.typeParameter.constraint) return !0;
1730
+ }
1731
+ case "TSUnionType":
1732
+ case "TSIntersectionType":
1733
+ if (Be(u) || Ot(u)) return !0;
1734
+ case "TSInferType":
1735
+ if (n.type === "TSInferType") {
1736
+ if (u.type === "TSRestType") return !1;
1737
+ if (r === "types" && (u.type === "TSUnionType" || u.type === "TSIntersectionType") && n.typeParameter.type === "TSTypeParameter" && n.typeParameter.constraint) return !0;
1738
+ }
1739
+ case "TSTypeOperator":
1740
+ return u.type === "TSArrayType" || u.type === "TSOptionalType" || u.type === "TSRestType" || r === "objectType" && u.type === "TSIndexedAccessType" || u.type === "TSTypeOperator" || u.type === "TSTypeAnnotation" && e.grandparent.type.startsWith("TSJSDoc");
1741
+ case "TSTypeQuery":
1742
+ return r === "objectType" && u.type === "TSIndexedAccessType" || r === "elementType" && u.type === "TSArrayType";
1743
+ case "TypeOperator":
1744
+ return u.type === "ArrayTypeAnnotation" || u.type === "NullableTypeAnnotation" || r === "objectType" && (u.type === "IndexedAccessType" || u.type === "OptionalIndexedAccessType") || u.type === "TypeOperator";
1745
+ case "TypeofTypeAnnotation":
1746
+ return r === "objectType" && (u.type === "IndexedAccessType" || u.type === "OptionalIndexedAccessType") || r === "elementType" && u.type === "ArrayTypeAnnotation";
1747
+ case "ArrayTypeAnnotation":
1748
+ return u.type === "NullableTypeAnnotation";
1749
+ case "IntersectionTypeAnnotation":
1750
+ case "UnionTypeAnnotation":
1751
+ return u.type === "TypeOperator" || u.type === "KeyofTypeAnnotation" || u.type === "ArrayTypeAnnotation" || u.type === "NullableTypeAnnotation" || u.type === "IntersectionTypeAnnotation" || u.type === "UnionTypeAnnotation" || r === "objectType" && (u.type === "IndexedAccessType" || u.type === "OptionalIndexedAccessType");
1752
+ case "InferTypeAnnotation":
1753
+ case "NullableTypeAnnotation":
1754
+ return u.type === "ArrayTypeAnnotation" || r === "objectType" && (u.type === "IndexedAccessType" || u.type === "OptionalIndexedAccessType");
1755
+ case "ComponentTypeAnnotation":
1756
+ case "FunctionTypeAnnotation": {
1757
+ if (n.type === "ComponentTypeAnnotation" && (n.rendersType === null || n.rendersType === void 0)) return !1;
1758
+ if (e.match(void 0, (s, o) => o === "typeAnnotation" && s.type === "TypeAnnotation", (s, o) => o === "returnType" && s.type === "ArrowFunctionExpression") || e.match(void 0, (s, o) => o === "typeAnnotation" && s.type === "TypePredicate", (s, o) => o === "typeAnnotation" && s.type === "TypeAnnotation", (s, o) => o === "returnType" && s.type === "ArrowFunctionExpression")) return !0;
1759
+ let a = u.type === "NullableTypeAnnotation" ? e.grandparent : u;
1760
+ return a.type === "UnionTypeAnnotation" || a.type === "IntersectionTypeAnnotation" || a.type === "ArrayTypeAnnotation" || r === "objectType" && (a.type === "IndexedAccessType" || a.type === "OptionalIndexedAccessType") || r === "checkType" && u.type === "ConditionalTypeAnnotation" || r === "extendsType" && u.type === "ConditionalTypeAnnotation" && n.returnType?.type === "InferTypeAnnotation" && n.returnType?.typeParameter.bound || a.type === "NullableTypeAnnotation" || u.type === "FunctionTypeParam" && u.name === null && te(n).some((s) => s.typeAnnotation?.type === "NullableTypeAnnotation");
1761
+ }
1762
+ case "OptionalIndexedAccessType":
1763
+ return r === "objectType" && u.type === "IndexedAccessType";
1764
+ case "StringLiteral":
1765
+ case "NumericLiteral":
1766
+ case "Literal":
1767
+ if (typeof n.value == "string" && u.type === "ExpressionStatement" && typeof u.directive != "string") {
1768
+ let a = e.grandparent;
1769
+ return a.type === "Program" || a.type === "BlockStatement";
1770
+ }
1771
+ return r === "object" && R(u) && be(n);
1772
+ case "AssignmentExpression":
1773
+ return !((r === "init" || r === "update") && u.type === "ForStatement" || r === "expression" && n.left.type !== "ObjectPattern" && u.type === "ExpressionStatement" || r === "key" && u.type === "TSPropertySignature" || u.type === "AssignmentExpression" || r === "expressions" && u.type === "SequenceExpression" && e.match(void 0, void 0, (a, s) => (s === "init" || s === "update") && a.type === "ForStatement") || r === "value" && u.type === "Property" && e.match(void 0, void 0, (a, s) => s === "properties" && a.type === "ObjectPattern") || u.type === "NGChainedExpression" || r === "node" && u.type === "JsExpressionRoot");
1774
+ case "ConditionalExpression":
1775
+ switch (u.type) {
1776
+ case "TaggedTemplateExpression":
1777
+ case "UnaryExpression":
1778
+ case "SpreadElement":
1779
+ case "BinaryExpression":
1780
+ case "LogicalExpression":
1781
+ case "NGPipeExpression":
1782
+ case "ExportDefaultDeclaration":
1783
+ case "AwaitExpression":
1784
+ case "JSXSpreadAttribute":
1785
+ case "TSTypeAssertion":
1786
+ case "TypeCastExpression":
1787
+ case "TSAsExpression":
1788
+ case "TSSatisfiesExpression":
1789
+ case "AsExpression":
1790
+ case "AsConstExpression":
1791
+ case "SatisfiesExpression":
1792
+ case "TSNonNullExpression":
1793
+ return !0;
1794
+ case "NewExpression":
1795
+ case "CallExpression":
1796
+ case "OptionalCallExpression":
1797
+ return r === "callee";
1798
+ case "ConditionalExpression":
1799
+ return t.experimentalTernaries ? !1 : r === "test";
1800
+ case "MemberExpression":
1801
+ case "OptionalMemberExpression":
1802
+ return r === "object";
1803
+ default:
1804
+ return !1;
1805
+ }
1806
+ case "FunctionExpression":
1807
+ switch (u.type) {
1808
+ case "NewExpression":
1809
+ case "CallExpression":
1810
+ case "OptionalCallExpression":
1811
+ return r === "callee";
1812
+ case "TaggedTemplateExpression":
1813
+ return !0;
1814
+ default:
1815
+ return !1;
1816
+ }
1817
+ case "ArrowFunctionExpression":
1818
+ switch (u.type) {
1819
+ case "BinaryExpression":
1820
+ return u.operator !== "|>" || n.extra?.parenthesized;
1821
+ case "NewExpression":
1822
+ case "CallExpression":
1823
+ case "OptionalCallExpression":
1824
+ return r === "callee";
1825
+ case "MemberExpression":
1826
+ case "OptionalMemberExpression":
1827
+ return r === "object";
1828
+ case "TSAsExpression":
1829
+ case "TSSatisfiesExpression":
1830
+ case "AsExpression":
1831
+ case "AsConstExpression":
1832
+ case "SatisfiesExpression":
1833
+ case "TSNonNullExpression":
1834
+ case "BindExpression":
1835
+ case "TaggedTemplateExpression":
1836
+ case "UnaryExpression":
1837
+ case "LogicalExpression":
1838
+ case "AwaitExpression":
1839
+ case "TSTypeAssertion":
1840
+ case "MatchExpressionCase":
1841
+ return !0;
1842
+ case "TSInstantiationExpression":
1843
+ return r === "expression";
1844
+ case "ConditionalExpression":
1845
+ return r === "test";
1846
+ default:
1847
+ return !1;
1848
+ }
1849
+ case "ClassExpression":
1850
+ return u.type === "NewExpression" ? r === "callee" : !1;
1851
+ case "OptionalMemberExpression":
1852
+ case "OptionalCallExpression":
1853
+ case "CallExpression":
1854
+ case "MemberExpression":
1855
+ if (Hp(e)) return !0;
1856
+ case "TaggedTemplateExpression":
1857
+ case "TSNonNullExpression":
1858
+ if (r === "callee" && (u.type === "BindExpression" || u.type === "NewExpression")) {
1859
+ let a = n;
1860
+ for (; a; ) switch (a.type) {
1861
+ case "CallExpression":
1862
+ case "OptionalCallExpression":
1863
+ return !0;
1864
+ case "MemberExpression":
1865
+ case "OptionalMemberExpression":
1866
+ case "BindExpression":
1867
+ a = a.object;
1868
+ break;
1869
+ case "TaggedTemplateExpression":
1870
+ a = a.tag;
1871
+ break;
1872
+ case "TSNonNullExpression":
1873
+ a = a.expression;
1874
+ break;
1875
+ default:
1876
+ return !1;
1877
+ }
1878
+ }
1879
+ return !1;
1880
+ case "BindExpression":
1881
+ return r === "callee" && (u.type === "BindExpression" || u.type === "NewExpression") || r === "object" && R(u);
1882
+ case "NGPipeExpression":
1883
+ return !(u.type === "NGRoot" || u.type === "NGMicrosyntaxExpression" || u.type === "ObjectProperty" && !n.extra?.parenthesized || ee(u) || r === "arguments" && L(u) || r === "right" && u.type === "NGPipeExpression" || r === "property" && u.type === "MemberExpression" || u.type === "AssignmentExpression");
1884
+ case "JSXFragment":
1885
+ case "JSXElement":
1886
+ return r === "callee" || r === "left" && u.type === "BinaryExpression" && u.operator === "<" || !ee(u) && u.type !== "ArrowFunctionExpression" && u.type !== "AssignmentExpression" && u.type !== "AssignmentPattern" && u.type !== "BinaryExpression" && u.type !== "NewExpression" && u.type !== "ConditionalExpression" && u.type !== "ExpressionStatement" && u.type !== "JsExpressionRoot" && u.type !== "JSXAttribute" && u.type !== "JSXElement" && u.type !== "JSXExpressionContainer" && u.type !== "JSXFragment" && u.type !== "LogicalExpression" && !L(u) && !_e(u) && u.type !== "ReturnStatement" && u.type !== "ThrowStatement" && u.type !== "TypeCastExpression" && u.type !== "VariableDeclarator" && u.type !== "YieldExpression" && u.type !== "MatchExpressionCase";
1887
+ case "TSInstantiationExpression":
1888
+ return r === "object" && R(u);
1889
+ case "MatchOrPattern":
1890
+ return u.type === "MatchAsPattern";
1891
+ }
1892
+ return !1;
1893
+ }
1894
+ var $p = w(["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"]);
1895
+ function Gp(e) {
1896
+ let t = 0, { node: n } = e;
1897
+ for (; n; ) {
1898
+ let r = e.getParentNode(t++);
1899
+ if (r?.type === "ForStatement" && r.init === n) return !0;
1900
+ n = r;
1901
+ }
1902
+ return !1;
1903
+ }
1904
+ function Vp(e) {
1905
+ return Sn(e, (t) => t.type === "ObjectTypeAnnotation" && Sn(t, (n) => n.type === "FunctionTypeAnnotation"));
1906
+ }
1907
+ function Kp(e) {
1908
+ return Ae(e);
1909
+ }
1910
+ function St(e) {
1911
+ let { parent: t, key: n } = e;
1912
+ switch (t.type) {
1913
+ case "NGPipeExpression":
1914
+ if (n === "arguments" && e.isLast) return e.callParent(St);
1915
+ break;
1916
+ case "ObjectProperty":
1917
+ if (n === "value") return e.callParent(() => e.key === "properties" && e.isLast);
1918
+ break;
1919
+ case "BinaryExpression":
1920
+ case "LogicalExpression":
1921
+ if (n === "right") return e.callParent(St);
1922
+ break;
1923
+ case "ConditionalExpression":
1924
+ if (n === "alternate") return e.callParent(St);
1925
+ break;
1926
+ case "UnaryExpression":
1927
+ if (t.prefix) return e.callParent(St);
1928
+ break;
1929
+ }
1930
+ return !1;
1931
+ }
1932
+ function zu(e, t) {
1933
+ let { node: n, parent: r } = e;
1934
+ return n.type === "FunctionExpression" || n.type === "ClassExpression" ? r.type === "ExportDefaultDeclaration" || !In(e, t) : !Kn(n) || r.type !== "ExportDefaultDeclaration" && In(e, t) ? !1 : e.call(() => zu(e, t), ...pu(n));
1935
+ }
1936
+ function Hp(e) {
1937
+ return !!(e.match(void 0, (t, n) => n === "expression" && t.type === "ChainExpression", (t, n) => n === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression", (t, n) => n === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression", (t, n) => n === "expression" && t.type === "TSNonNullExpression", (t, n) => n === "tag" && t.type === "TaggedTemplateExpression") || e.match(void 0, (t, n) => n === "expression" && t.type === "ChainExpression", (t, n) => n === "expression" && t.type === "TSNonNullExpression", (t, n) => n === "tag" && t.type === "TaggedTemplateExpression") || e.match(void 0, (t, n) => n === "expression" && t.type === "TSNonNullExpression", (t, n) => n === "expression" && t.type === "ChainExpression", (t, n) => n === "tag" && t.type === "TaggedTemplateExpression") || e.match((t) => t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression", (t, n) => n === "object" && t.type === "MemberExpression" || n === "callee" && (t.type === "CallExpression" || t.type === "NewExpression")) || e.match((t) => t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression", (t, n) => n === "expression" && t.type === "TSNonNullExpression", (t, n) => n === "object" && t.type === "MemberExpression" || n === "callee" && t.type === "CallExpression") || e.match((t) => t.type === "CallExpression" || t.type === "MemberExpression", (t, n) => n === "expression" && t.type === "ChainExpression") && (e.match(void 0, void 0, (t, n) => n === "callee" && (t.type === "CallExpression" && !t.optional || t.type === "NewExpression") || n === "object" && t.type === "MemberExpression" && !t.optional) || e.match(void 0, void 0, (t, n) => n === "expression" && t.type === "TSNonNullExpression", (t, n) => n === "object" && t.type === "MemberExpression" || n === "callee" && t.type === "CallExpression")) || e.match((t) => t.type === "CallExpression" || t.type === "MemberExpression", (t, n) => n === "expression" && t.type === "TSNonNullExpression", (t, n) => n === "expression" && t.type === "ChainExpression", (t, n) => n === "object" && t.type === "MemberExpression" || n === "callee" && t.type === "CallExpression"));
1938
+ }
1939
+ function Nn(e) {
1940
+ return e.type === "Identifier" ? !0 : R(e) ? !e.computed && !e.optional && e.property.type === "Identifier" && Nn(e.object) : !1;
1941
+ }
1942
+ function zp(e) {
1943
+ return e.type === "ChainExpression" && (e = e.expression), Nn(e) || L(e) && !e.optional && Nn(e.callee);
1944
+ }
1945
+ var Ge = In;
1946
+ function Yp(e, t) {
1947
+ let n = t - 1;
1948
+ n = pt(e, n, { backwards: !0 }), n = lt(e, n, { backwards: !0 }), n = pt(e, n, { backwards: !0 });
1949
+ let r = lt(e, n, { backwards: !0 });
1950
+ return n !== r;
1951
+ }
1952
+ var Qp = Yp, Zp = () => !0;
1953
+ function pr(e, t) {
1954
+ let n = e.node;
1955
+ return n.printed = !0, t.printer.printComment(e, t);
1956
+ }
1957
+ function el(e, t) {
1958
+ let n = e.node, r = [pr(e, t)], { printer: u, originalText: a, locStart: s, locEnd: o } = t;
1959
+ if (u.isBlockComment?.(n)) {
1960
+ let l = oe(a, o(n)) ? oe(a, s(n), { backwards: !0 }) ? A : x : " ";
1961
+ r.push(l);
1962
+ } else r.push(A);
1963
+ let p = lt(a, pt(a, o(n)));
1964
+ return p !== !1 && oe(a, p) && r.push(A), r;
1965
+ }
1966
+ function tl(e, t, n) {
1967
+ let r = e.node, u = pr(e, t), { printer: a, originalText: s, locStart: o } = t, p = a.isBlockComment?.(r);
1968
+ if (n?.hasLineSuffix && !n?.isBlock || oe(s, o(r), { backwards: !0 })) {
1969
+ let l = Qp(s, o(r));
1970
+ return { doc: wr([A, l ? A : "", u]), isBlock: p, hasLineSuffix: !0 };
1971
+ }
1972
+ return !p || n?.hasLineSuffix ? { doc: [wr([" ", u]), Me], isBlock: p, hasLineSuffix: !0 } : { doc: [" ", u], isBlock: p, hasLineSuffix: !1 };
1973
+ }
1974
+ function X(e, t, n = {}) {
1975
+ let { node: r } = e;
1976
+ if (!_(r?.comments)) return "";
1977
+ let { indent: u = !1, marker: a, filter: s = Zp } = n, o = [];
1978
+ if (e.each(({ node: l }) => {
1979
+ l.leading || l.trailing || l.marker !== a || !s(l) || o.push(pr(e, t));
1980
+ }, "comments"), o.length === 0) return "";
1981
+ let p = M(A, o);
1982
+ return u ? E([A, p]) : p;
1983
+ }
1984
+ function an(e, t) {
1985
+ let n = e.node;
1986
+ if (!n) return {};
1987
+ let r = t[/* @__PURE__ */ Symbol.for("printedComments")];
1988
+ if ((n.comments || []).filter((o) => !r.has(o)).length === 0) return { leading: "", trailing: "" };
1989
+ let u = [], a = [], s;
1990
+ return e.each(() => {
1991
+ let o = e.node;
1992
+ if (r?.has(o)) return;
1993
+ let { leading: p, trailing: l } = o;
1994
+ p ? u.push(el(e, t)) : l && (s = tl(e, t, s), a.push(s.doc));
1995
+ }, "comments"), { leading: u, trailing: a };
1996
+ }
1997
+ function de(e, t, n) {
1998
+ let { leading: r, trailing: u } = an(e, n);
1999
+ return !r && !u ? t : Pn(t, (a) => [r, a, u]);
2000
+ }
2001
+ var en = class extends Error {
2002
+ name = "ArgExpansionBailout";
2003
+ };
2004
+ function ut(e, t, n, r, u) {
2005
+ let a = e.node, s = te(a), o = u && a.typeParameters ? n("typeParameters") : "";
2006
+ if (s.length === 0) return [o, "(", X(e, t, { filter: (f) => ge(t.originalText, N(f)) === ")" }), ")"];
2007
+ let { parent: p } = e, l = rn(p), y = Yu(a), D = [];
2008
+ if (So(e, (f, F) => {
2009
+ let B = F === s.length - 1;
2010
+ B && a.rest && D.push("..."), D.push(n()), !B && (D.push(","), l || y ? D.push(" ") : ke(s[F], t) ? D.push(A, A) : D.push(x));
2011
+ }), r && !rl(e)) {
2012
+ if (re(o) || re(D)) throw new en();
2013
+ return c([Zt(o), "(", Zt(D), ")"]);
2014
+ }
2015
+ let d = s.every((f) => !_(f.decorators));
2016
+ return y && d ? [o, "(", ...D, ")"] : l ? [o, "(", ...D, ")"] : (Du(p) || yo(p) || p.type === "TypeAlias" || p.type === "UnionTypeAnnotation" || p.type === "IntersectionTypeAnnotation" || p.type === "FunctionTypeAnnotation" && p.returnType === a) && s.length === 1 && s[0].name === null && a.this !== s[0] && s[0].typeAnnotation && a.typeParameters === null && zn(s[0].typeAnnotation) && !a.rest ? t.arrowParens === "always" || a.type === "HookTypeAnnotation" ? ["(", ...D, ")"] : D : [o, "(", E([m, ...D]), k(!To(a) && Pe(t, "all") ? "," : ""), m, ")"];
2017
+ }
2018
+ function Yu(e) {
2019
+ if (!e) return !1;
2020
+ let t = te(e);
2021
+ if (t.length !== 1) return !1;
2022
+ let [n] = t;
2023
+ return !g(n) && (n.type === "ObjectPattern" || n.type === "ArrayPattern" || n.type === "Identifier" && n.typeAnnotation && (n.typeAnnotation.type === "TypeAnnotation" || n.typeAnnotation.type === "TSTypeAnnotation") && Xe(n.typeAnnotation.typeAnnotation) || n.type === "FunctionTypeParam" && Xe(n.typeAnnotation) && n !== e.rest || n.type === "AssignmentPattern" && (n.left.type === "ObjectPattern" || n.left.type === "ArrayPattern") && (n.right.type === "Identifier" || Ae(n.right) && n.right.properties.length === 0 || ee(n.right) && n.right.elements.length === 0));
2024
+ }
2025
+ function nl(e) {
2026
+ let t;
2027
+ return e.returnType ? (t = e.returnType, t.typeAnnotation && (t = t.typeAnnotation)) : e.typeAnnotation && (t = e.typeAnnotation), t;
2028
+ }
2029
+ function Et(e, t) {
2030
+ let n = nl(e);
2031
+ if (!n) return !1;
2032
+ let r = e.typeParameters?.params;
2033
+ if (r) {
2034
+ if (r.length > 1) return !1;
2035
+ if (r.length === 1) {
2036
+ let u = r[0];
2037
+ if (u.constraint || u.default) return !1;
2038
+ }
2039
+ }
2040
+ return te(e).length === 1 && (Xe(n) || re(t));
2041
+ }
2042
+ function rl(e) {
2043
+ return e.match((t) => t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement", (t, n) => {
2044
+ if (t.type === "CallExpression" && n === "arguments" && t.arguments.length === 1 && t.callee.type === "CallExpression") {
2045
+ let r = t.callee.callee;
2046
+ return r.type === "Identifier" || r.type === "MemberExpression" && !r.computed && r.object.type === "Identifier" && r.property.type === "Identifier";
2047
+ }
2048
+ return !1;
2049
+ }, (t, n) => t.type === "VariableDeclarator" && n === "init" || t.type === "ExportDefaultDeclaration" && n === "declaration" || t.type === "TSExportAssignment" && n === "expression" || t.type === "AssignmentExpression" && n === "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);
2050
+ }
2051
+ function ul(e) {
2052
+ let t = te(e);
2053
+ return t.length > 1 && t.some((n) => n.type === "TSParameterProperty");
2054
+ }
2055
+ function Bt(e, t) {
2056
+ return (t === "params" || t === "this" || t === "rest") && Yu(e);
2057
+ }
2058
+ function ue(e) {
2059
+ let { node: t } = e;
2060
+ return !t.optional || t.type === "Identifier" && t === e.parent.key ? "" : L(t) || R(t) && t.computed || t.type === "OptionalIndexedAccessType" ? "?." : "?";
2061
+ }
2062
+ function Qu(e) {
2063
+ return e.node.definite || e.match(void 0, (t, n) => n === "id" && t.type === "VariableDeclarator" && t.definite) ? "!" : "";
2064
+ }
2065
+ var al = w(["DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "DeclareVariable", "DeclareExportDeclaration", "DeclareExportAllDeclaration", "DeclareOpaqueType", "DeclareTypeAlias", "DeclareEnum", "DeclareInterface"]);
2066
+ function De(e) {
2067
+ let { node: t } = e;
2068
+ return t.declare || al(t) && e.parent.type !== "DeclareExportDeclaration" ? "declare " : "";
2069
+ }
2070
+ var sl = w(["TSAbstractMethodDefinition", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
2071
+ function sn({ node: e }) {
2072
+ return e.abstract || sl(e) ? "abstract " : "";
2073
+ }
2074
+ function Je(e, t, n) {
2075
+ return e.type === "EmptyStatement" ? g(e, b.Leading) ? [" ", t] : t : e.type === "BlockStatement" || n ? [" ", t] : E([x, t]);
2076
+ }
2077
+ function on(e) {
2078
+ return e.accessibility ? e.accessibility + " " : "";
2079
+ }
2080
+ var ol = /^[\$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]*$/, il = (e) => ol.test(e), pl = il;
2081
+ function ll(e) {
2082
+ 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, "");
2083
+ }
2084
+ var dt = ll, cl = 0;
2085
+ function Zu(e, t, n) {
2086
+ let { node: r, parent: u, grandparent: a, key: s } = e, o = s !== "body" && (u.type === "IfStatement" || u.type === "WhileStatement" || u.type === "SwitchStatement" || u.type === "DoWhileStatement"), p = r.operator === "|>" && e.root.extra?.__isUsingHackPipeline, l = jn(e, t, n, !1, o);
2087
+ if (o) return l;
2088
+ if (p) return c(l);
2089
+ if (s === "callee" && (L(u) || u.type === "NewExpression") || u.type === "UnaryExpression" || R(u) && !u.computed) return c([E([m, ...l]), m]);
2090
+ let y = u.type === "ReturnStatement" || u.type === "ThrowStatement" || u.type === "JSXExpressionContainer" && a.type === "JSXAttribute" || r.operator !== "|" && u.type === "JsExpressionRoot" || r.type !== "NGPipeExpression" && (u.type === "NGRoot" && t.parser === "__ng_binding" || u.type === "NGMicrosyntaxExpression" && a.type === "NGMicrosyntax" && a.body.length === 1) || r === u.body && u.type === "ArrowFunctionExpression" || r !== u.body && u.type === "ForStatement" || u.type === "ConditionalExpression" && a.type !== "ReturnStatement" && a.type !== "ThrowStatement" && !L(a) && a.type !== "NewExpression" || u.type === "TemplateLiteral" || yl(e), D = u.type === "AssignmentExpression" || u.type === "VariableDeclarator" || u.type === "ClassProperty" || u.type === "PropertyDefinition" || u.type === "TSAbstractPropertyDefinition" || u.type === "ClassPrivateProperty" || _e(u), d = Ne(r.left) && Qn(r.operator, r.left.operator);
2091
+ if (y || Nt(r) && !d || !Nt(r) && D) return c(l);
2092
+ if (l.length === 0) return "";
2093
+ let f = Y(r.right), F = l.findIndex((T) => typeof T != "string" && !Array.isArray(T) && T.type === fe), B = l.slice(0, F === -1 ? 1 : F + 1), C = l.slice(B.length, f ? -1 : void 0), v = /* @__PURE__ */ Symbol("logicalChain-" + ++cl), S = c([...B, E(C)], { id: v });
2094
+ if (!f) return S;
2095
+ let h = O(0, l, -1);
2096
+ return c([S, It(h, { groupId: v })]);
2097
+ }
2098
+ function jn(e, t, n, r, u) {
2099
+ let { node: a } = e;
2100
+ if (!Ne(a)) return [c(n())];
2101
+ let s = [];
2102
+ Qn(a.operator, a.left.operator) ? s = e.call(() => jn(e, t, n, !0, u), "left") : s.push(c(n("left")));
2103
+ let o = Nt(a), p = a.right.type === "ChainExpression" ? a.right.expression : a.right, l = (a.operator === "|>" || a.type === "NGPipeExpression" || Dl(e, t)) && !Ee(t.originalText, p), y = !g(p, b.Leading, Cu) && Ee(t.originalText, p), D = a.type === "NGPipeExpression" ? "|" : a.operator, d = a.type === "NGPipeExpression" && a.arguments.length > 0 ? c(E([m, ": ", M([x, ": "], e.map(() => Ce(2, c(n())), "arguments"))])) : "", f;
2104
+ if (o) f = [D, Ee(t.originalText, p) ? E([x, n("right"), d]) : [" ", n("right"), d]];
2105
+ else {
2106
+ let C = D === "|>" && e.root.extra?.__isUsingHackPipeline ? e.call(() => jn(e, t, n, !0, u), "right") : n("right");
2107
+ if (t.experimentalOperatorPosition === "start") {
2108
+ let v = "";
2109
+ if (y) switch ($e(C)) {
2110
+ case je:
2111
+ v = C.splice(0, 1)[0];
2112
+ break;
2113
+ case Le:
2114
+ v = C.contents.splice(0, 1)[0];
2115
+ break;
2116
+ }
2117
+ f = [x, v, D, " ", C, d];
2118
+ } else f = [l ? x : "", D, l ? " " : x, C, d];
2119
+ }
2120
+ let { parent: F } = e, B = g(a.left, b.Trailing | b.Line);
2121
+ if ((B || !(u && a.type === "LogicalExpression") && F.type !== a.type && a.left.type !== a.type && a.right.type !== a.type) && (f = c(f, { shouldBreak: B })), t.experimentalOperatorPosition === "start" ? s.push(o || y ? " " : "", f) : s.push(l ? "" : " ", f), r && g(a)) {
2122
+ let C = or(de(e, s, t));
2123
+ return C.type === We ? C.parts : Array.isArray(C) ? C : [C];
2124
+ }
2125
+ return s;
2126
+ }
2127
+ function Nt(e) {
2128
+ return e.type !== "LogicalExpression" ? !1 : !!(Ae(e.right) && e.right.properties.length > 0 || ee(e.right) && e.right.elements.length > 0 || Y(e.right));
2129
+ }
2130
+ var Lr = (e) => e.type === "BinaryExpression" && e.operator === "|";
2131
+ function Dl(e, t) {
2132
+ return (t.parser === "__vue_expression" || t.parser === "__vue_ts_expression") && Lr(e.node) && !e.hasAncestor((n) => !Lr(n) && n.type !== "JsExpressionRoot");
2133
+ }
2134
+ function yl(e) {
2135
+ if (e.key !== "arguments") return !1;
2136
+ let { parent: t } = e;
2137
+ if (!(L(t) && !t.optional && t.arguments.length === 1)) return !1;
2138
+ let { callee: n } = t;
2139
+ return n.type === "Identifier" && n.name === "Boolean";
2140
+ }
2141
+ function ea(e, t, n) {
2142
+ let { node: r } = e, { parent: u } = e, a = u.type !== "TypeParameterInstantiation" && (!Re(u) || !t.experimentalTernaries) && u.type !== "TSTypeParameterInstantiation" && u.type !== "GenericTypeAnnotation" && u.type !== "TSTypeReference" && u.type !== "TSTypeAssertion" && u.type !== "TupleTypeAnnotation" && u.type !== "TSTupleType" && !(u.type === "FunctionTypeParam" && !u.name && e.grandparent.this !== u) && !((Bn(u) || u.type === "VariableDeclarator") && Ee(t.originalText, r)) && !(Bn(u) && g(u.id, b.Trailing | b.Line)), s = ta(r), o = e.map(() => {
2143
+ let f = n();
2144
+ return s || (f = Ce(2, f)), de(e, f, t);
2145
+ }, "types"), p = "", l = "";
2146
+ if (Au(e) && ({ leading: p, trailing: l } = an(e, t)), s) return [p, M(" | ", o), l];
2147
+ let y = a && !Ee(t.originalText, r), D = [k([y ? x : "", "| "]), M([x, "| "], o)];
2148
+ if (Ge(e, t)) return [p, c([E(D), m]), l];
2149
+ let d = [p, c(D)];
2150
+ return (u.type === "TupleTypeAnnotation" || u.type === "TSTupleType") && u[u.type === "TupleTypeAnnotation" && u.types ? "types" : "elementTypes"].length > 1 ? [c([E([k(["(", m]), d]), m, k(")")]), l] : [c(a ? E(d) : d), l];
2151
+ }
2152
+ var dl = w(["VoidTypeAnnotation", "TSVoidKeyword", "NullLiteralTypeAnnotation", "TSNullKeyword"]), fl = w(["ObjectTypeAnnotation", "TSTypeLiteral", "GenericTypeAnnotation", "TSTypeReference"]);
2153
+ function ta(e) {
2154
+ let { types: t } = e;
2155
+ if (t.some((r) => g(r))) return !1;
2156
+ let n = t.find((r) => fl(r));
2157
+ return n ? t.every((r) => r === n || dl(r)) : !1;
2158
+ }
2159
+ function ml(e) {
2160
+ return zn(e) || Xe(e) ? !0 : Be(e) ? ta(e) : !1;
2161
+ }
2162
+ var Fl = /* @__PURE__ */ new WeakSet();
2163
+ function Z(e, t, n = "typeAnnotation") {
2164
+ let { node: { [n]: r } } = e;
2165
+ if (!r) return "";
2166
+ let u = !1;
2167
+ if (r.type === "TSTypeAnnotation" || r.type === "TypeAnnotation") {
2168
+ let a = e.call(na, n);
2169
+ (a === "=>" || a === ":" && g(r, b.Leading)) && (u = !0), Fl.add(r);
2170
+ }
2171
+ return u ? [" ", t(n)] : t(n);
2172
+ }
2173
+ var na = (e) => e.match((t) => t.type === "TSTypeAnnotation", (t, n) => (n === "returnType" || n === "typeAnnotation") && (t.type === "TSFunctionType" || t.type === "TSConstructorType")) ? "=>" : e.match((t) => t.type === "TSTypeAnnotation", (t, n) => n === "typeAnnotation" && (t.type === "TSJSDocNullableType" || t.type === "TSJSDocNonNullableType" || t.type === "TSTypePredicate")) || e.match((t) => t.type === "TypeAnnotation", (t, n) => n === "typeAnnotation" && t.type === "Identifier", (t, n) => n === "id" && t.type === "DeclareFunction") || e.match((t) => t.type === "TypeAnnotation", (t, n) => n === "typeAnnotation" && t.type === "Identifier", (t, n) => n === "id" && t.type === "DeclareHook") || e.match((t) => t.type === "TypeAnnotation", (t, n) => n === "bound" && t.type === "TypeParameter" && t.usesExtendsBound) ? "" : ":";
2174
+ function ra(e, t, n) {
2175
+ let r = na(e);
2176
+ return r ? [r, " ", n("typeAnnotation")] : n("typeAnnotation");
2177
+ }
2178
+ function El(e, t, n, r) {
2179
+ let { node: u } = e, a = u.inexact ? "..." : "";
2180
+ return g(u, b.Dangling) ? c([n, a, X(e, t, { indent: !0 }), m, r]) : [n, a, r];
2181
+ }
2182
+ function lr(e, t, n) {
2183
+ let { node: r } = e, u = [], a = "[", s = "]", o = r.type === "TupleTypeAnnotation" && r.types ? "types" : r.type === "TSTupleType" || r.type === "TupleTypeAnnotation" ? "elementTypes" : "elements", p = r[o];
2184
+ if (p.length === 0) u.push(El(e, t, a, s));
2185
+ else {
2186
+ let l = O(0, p, -1), y = l?.type !== "RestElement" && !r.inexact, D = l === null, d = /* @__PURE__ */ Symbol("array"), f = !t.__inJestEach && p.length > 1 && p.every((C, v, S) => {
2187
+ let h = C?.type;
2188
+ if (!ee(C) && !Ae(C)) return !1;
2189
+ let T = S[v + 1];
2190
+ if (T && h !== T.type) return !1;
2191
+ let I = ee(C) ? "elements" : "properties";
2192
+ return C[I] && C[I].length > 1;
2193
+ }), F = ua(r, t), B = y ? D ? "," : Pe(t) ? F ? k(",", "", { groupId: d }) : k(",") : "" : "";
2194
+ u.push(c([a, E([m, F ? gl(e, t, n, B) : [Al(e, t, n, o, r.inexact), B], X(e, t)]), m, s], { shouldBreak: f, id: d }));
2195
+ }
2196
+ return u.push(ue(e), Z(e, n)), u;
2197
+ }
2198
+ function ua(e, t) {
2199
+ return ee(e) && e.elements.length > 0 && e.elements.every((n) => n && (be(n) || lu(n) && !g(n.argument)) && !g(n, b.Trailing | b.Line, (r) => !oe(t.originalText, j(r), { backwards: !0 })));
2200
+ }
2201
+ function aa({ node: e }, { originalText: t }) {
2202
+ let n = N(e);
2203
+ if (n === j(e)) return !1;
2204
+ let { length: r } = t;
2205
+ for (; n < r && t[n] !== ","; ) n = Wn(t, Un(t, n + 1));
2206
+ return $n(t, n);
2207
+ }
2208
+ function Al(e, t, n, r, u) {
2209
+ let a = [];
2210
+ return e.each(({ node: s, isLast: o }) => {
2211
+ a.push(s ? c(n()) : ""), (!o || u) && a.push([",", x, s && aa(e, t) ? m : ""]);
2212
+ }, r), u && a.push("..."), a;
2213
+ }
2214
+ function gl(e, t, n, r) {
2215
+ let u = [];
2216
+ return e.each(({ isLast: a, next: s }) => {
2217
+ u.push([n(), a ? r : ","]), a || u.push(aa(e, t) ? [A, A] : g(s, b.Leading | b.Line) ? A : x);
2218
+ }, "elements"), Lu(u);
2219
+ }
2220
+ function Cl(e, t, n) {
2221
+ let { node: r } = e, u = ye(r);
2222
+ if (u.length === 0) return ["(", X(e, t), ")"];
2223
+ let a = u.length - 1;
2224
+ if (Tl(u)) {
2225
+ let D = ["("];
2226
+ return Qt(e, (d, f) => {
2227
+ D.push(n()), f !== a && D.push(", ");
2228
+ }), D.push(")"), D;
2229
+ }
2230
+ let s = !1, o = [];
2231
+ Qt(e, ({ node: D }, d) => {
2232
+ let f = n();
2233
+ d === a || (ke(D, t) ? (s = !0, f = [f, ",", A, A]) : f = [f, ",", x]), o.push(f);
2234
+ });
2235
+ let p = !t.parser.startsWith("__ng_") && r.type !== "ImportExpression" && r.type !== "TSImportType" && r.type !== "TSExternalModuleReference" && Pe(t, "all") ? "," : "";
2236
+ function l() {
2237
+ return c(["(", E([x, ...o]), p, x, ")"], { shouldBreak: !0 });
2238
+ }
2239
+ if (s || e.parent.type !== "Decorator" && go(u)) return l();
2240
+ if (xl(u)) {
2241
+ let D = o.slice(1);
2242
+ if (D.some(re)) return l();
2243
+ let d;
2244
+ try {
2245
+ d = n(Br(r, 0), { expandFirstArg: !0 });
2246
+ } catch (f) {
2247
+ if (f instanceof en) return l();
2248
+ throw f;
2249
+ }
2250
+ return re(d) ? [Me, Ke([["(", c(d, { shouldBreak: !0 }), ", ", ...D, ")"], l()])] : Ke([["(", d, ", ", ...D, ")"], ["(", c(d, { shouldBreak: !0 }), ", ", ...D, ")"], l()]);
2251
+ }
2252
+ if (hl(u, o, t)) {
2253
+ let D = o.slice(0, -1);
2254
+ if (D.some(re)) return l();
2255
+ let d;
2256
+ try {
2257
+ d = n(Br(r, -1), { expandLastArg: !0 });
2258
+ } catch (f) {
2259
+ if (f instanceof en) return l();
2260
+ throw f;
2261
+ }
2262
+ return re(d) ? [Me, Ke([["(", ...D, c(d, { shouldBreak: !0 }), ")"], l()])] : Ke([["(", ...D, d, ")"], ["(", ...D, c(d, { shouldBreak: !0 }), ")"], l()]);
2263
+ }
2264
+ let y = ["(", E([m, ...o]), k(p), m, ")"];
2265
+ return Fu(e) ? y : c(y, { shouldBreak: o.some(re) || s });
2266
+ }
2267
+ function vt(e, t = !1) {
2268
+ return Ae(e) && (e.properties.length > 0 || g(e)) || ee(e) && (e.elements.length > 0 || g(e)) || e.type === "TSTypeAssertion" && vt(e.expression) || Fe(e) && vt(e.expression) || e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && (!e.returnType || !e.returnType.typeAnnotation || e.returnType.typeAnnotation.type !== "TSTypeReference" || Sl(e.body)) && (e.body.type === "BlockStatement" || e.body.type === "ArrowFunctionExpression" && vt(e.body, !0) || Ae(e.body) || ee(e.body) || !t && (L(e.body) || e.body.type === "ConditionalExpression") || Y(e.body)) || e.type === "DoExpression" || e.type === "ModuleExpression";
2269
+ }
2270
+ function hl(e, t, n) {
2271
+ let r = O(0, e, -1);
2272
+ if (e.length === 1) {
2273
+ let a = O(0, t, -1);
2274
+ if (a.label?.embed && a.label?.hug !== !1) return !0;
2275
+ }
2276
+ let u = O(0, e, -2);
2277
+ return !g(r, b.Leading) && !g(r, b.Trailing) && vt(r) && (!u || u.type !== r.type) && (e.length !== 2 || u.type !== "ArrowFunctionExpression" || !ee(r)) && !(e.length > 1 && ua(r, n));
2278
+ }
2279
+ function xl(e) {
2280
+ if (e.length !== 2) return !1;
2281
+ let [t, n] = e;
2282
+ return t.type === "ModuleExpression" && bl(n) ? !0 : !g(t) && (t.type === "FunctionExpression" || t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement") && n.type !== "FunctionExpression" && n.type !== "ArrowFunctionExpression" && n.type !== "ConditionalExpression" && sa(n) && !vt(n);
2283
+ }
2284
+ function sa(e) {
2285
+ if (e.type === "ParenthesizedExpression") return sa(e.expression);
2286
+ if (Fe(e) || e.type === "TypeCastExpression") {
2287
+ let { typeAnnotation: t } = e;
2288
+ 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") {
2289
+ let n = t.type === "GenericTypeAnnotation" ? t.typeParameters : t.typeArguments;
2290
+ n?.params.length === 1 && (t = n.params[0]);
2291
+ }
2292
+ return zn(t) && me(e.expression, 1);
2293
+ }
2294
+ return yt(e) && ye(e).length > 1 ? !1 : Ne(e) ? me(e.left, 1) && me(e.right, 1) : cu(e) || me(e);
2295
+ }
2296
+ function Tl(e) {
2297
+ return e.length === 2 ? Or(e, 0) : e.length === 3 ? e[0].type === "Identifier" && Or(e, 1) : !1;
2298
+ }
2299
+ function Or(e, t) {
2300
+ let n = e[t], r = e[t + 1];
2301
+ return n.type === "ArrowFunctionExpression" && te(n).length === 0 && n.body.type === "BlockStatement" && r.type === "ArrayExpression" && !e.some((u) => g(u));
2302
+ }
2303
+ function Sl(e) {
2304
+ return e.type === "BlockStatement" && (e.body.some((t) => t.type !== "EmptyStatement") || g(e, b.Dangling));
2305
+ }
2306
+ function bl(e) {
2307
+ if (!(e.type === "ObjectExpression" && e.properties.length === 1)) return !1;
2308
+ let [t] = e.properties;
2309
+ return _e(t) ? !t.computed && (t.key.type === "Identifier" && t.key.name === "type" || Q(t.key) && t.key.value === "type") && Q(t.value) && t.value.value === "module" : !1;
2310
+ }
2311
+ var Mn = Cl;
2312
+ function Bl(e, t, n) {
2313
+ return [n("object"), c(E([m, oa(e, t, n)]))];
2314
+ }
2315
+ function oa(e, t, n) {
2316
+ return ["::", n("callee")];
2317
+ }
2318
+ var vl = (e) => ((e.type === "ChainExpression" || e.type === "TSNonNullExpression") && (e = e.expression), L(e) && ye(e).length > 0);
2319
+ function Pl(e) {
2320
+ let { node: t, ancestors: n } = e;
2321
+ for (let r of n) {
2322
+ if (!(R(r) && r.object === t || r.type === "TSNonNullExpression" && r.expression === t)) return r.type === "NewExpression" && r.callee === t;
2323
+ t = r;
2324
+ }
2325
+ return !1;
2326
+ }
2327
+ function kl(e, t, n) {
2328
+ let r = n("object"), u = ia(e, t, n), { node: a } = e, s = e.findAncestor((l) => !(R(l) || l.type === "TSNonNullExpression")), o = e.findAncestor((l) => !(l.type === "ChainExpression" || l.type === "TSNonNullExpression")), p = s.type === "BindExpression" || s.type === "AssignmentExpression" && s.left.type !== "Identifier" || Pl(e) || a.computed || a.object.type === "Identifier" && a.property.type === "Identifier" && !R(o) || (o.type === "AssignmentExpression" || o.type === "VariableDeclarator") && (vl(a.object) || r.label?.memberChain);
2329
+ return Jt(r.label, [r, p ? u : c(E([m, u]))]);
2330
+ }
2331
+ function ia(e, t, n) {
2332
+ let r = n("property"), { node: u } = e, a = ue(e);
2333
+ return u.computed ? !u.property || be(u.property) ? [a, "[", r, "]"] : c([a, "[", E([m, r]), m, "]"]) : [a, ".", r];
2334
+ }
2335
+ function pa(e, t, n) {
2336
+ if (e.node.type === "ChainExpression") return e.call(() => pa(e, t, n), "expression");
2337
+ let r = (e.parent.type === "ChainExpression" ? e.grandparent : e.parent).type === "ExpressionStatement", u = [];
2338
+ function a(P) {
2339
+ let { originalText: G } = t, K = ft(G, N(P));
2340
+ return G.charAt(K) === ")" ? K !== !1 && $n(G, K + 1) : ke(P, t);
2341
+ }
2342
+ function s() {
2343
+ let { node: P } = e;
2344
+ if (P.type === "ChainExpression") return e.call(s, "expression");
2345
+ if (L(P) && (ot(P.callee) || L(P.callee))) {
2346
+ let G = a(P);
2347
+ u.unshift({ node: P, hasTrailingEmptyLine: G, printed: [de(e, [ue(e), n("typeArguments"), Mn(e, t, n)], t), G ? A : ""] }), e.call(s, "callee");
2348
+ } else ot(P) ? (u.unshift({ node: P, needsParens: Ge(e, t), printed: de(e, R(P) ? ia(e, t, n) : oa(e, t, n), t) }), e.call(s, "object")) : P.type === "TSNonNullExpression" ? (u.unshift({ node: P, printed: de(e, "!", t) }), e.call(s, "expression")) : u.unshift({ node: P, printed: n() });
2349
+ }
2350
+ let { node: o } = e;
2351
+ u.unshift({ node: o, printed: [ue(e), n("typeArguments"), Mn(e, t, n)] }), o.callee && e.call(s, "callee");
2352
+ let p = [], l = [u[0]], y = 1;
2353
+ for (; y < u.length && (u[y].node.type === "TSNonNullExpression" || L(u[y].node) || R(u[y].node) && u[y].node.computed && be(u[y].node.property)); ++y) l.push(u[y]);
2354
+ if (!L(u[0].node)) for (; y + 1 < u.length && ot(u[y].node) && ot(u[y + 1].node); ++y) l.push(u[y]);
2355
+ p.push(l), l = [];
2356
+ let D = !1;
2357
+ for (; y < u.length; ++y) {
2358
+ if (D && ot(u[y].node)) {
2359
+ if (u[y].node.computed && be(u[y].node.property)) {
2360
+ l.push(u[y]);
2361
+ continue;
2362
+ }
2363
+ p.push(l), l = [], D = !1;
2364
+ }
2365
+ (L(u[y].node) || u[y].node.type === "ImportExpression") && (D = !0), l.push(u[y]), g(u[y].node, b.Trailing) && (p.push(l), l = [], D = !1);
2366
+ }
2367
+ l.length > 0 && p.push(l);
2368
+ function d(P) {
2369
+ return /^[A-Z]|^[$_]+$/u.test(P);
2370
+ }
2371
+ function f(P) {
2372
+ return P.length <= t.tabWidth;
2373
+ }
2374
+ function F(P) {
2375
+ let G = P[1][0]?.node.computed;
2376
+ if (P[0].length === 1) {
2377
+ let we = P[0][0].node;
2378
+ return we.type === "ThisExpression" || we.type === "Identifier" && (d(we.name) || r && f(we.name) || G);
2379
+ }
2380
+ let K = O(0, P[0], -1).node;
2381
+ return R(K) && K.property.type === "Identifier" && (d(K.property.name) || G);
2382
+ }
2383
+ let B = p.length >= 2 && !g(p[1][0].node) && F(p);
2384
+ function C(P) {
2385
+ let G = P.map((K) => K.printed);
2386
+ return P.length > 0 && O(0, P, -1).needsParens ? ["(", ...G, ")"] : G;
2387
+ }
2388
+ function v(P) {
2389
+ return P.length === 0 ? "" : E([A, M(A, P.map(C))]);
2390
+ }
2391
+ let S = p.map(C), h = S, T = B ? 3 : 2, I = p.flat(), J = I.slice(1, -1).some((P) => g(P.node, b.Leading)) || I.slice(0, -1).some((P) => g(P.node, b.Trailing)) || p[T] && g(p[T][0].node, b.Leading);
2392
+ if (p.length <= T && !J && !p.some((P) => O(0, P, -1).hasTrailingEmptyLine)) return Fu(e) ? h : c(h);
2393
+ let H = O(0, p[B ? 1 : 0], -1).node, q = !L(H) && a(H), U = [C(p[0]), B ? p.slice(1, 2).map(C) : "", q ? A : "", v(p.slice(B ? 2 : 1))], $ = u.map(({ node: P }) => P).filter(L);
2394
+ function ae() {
2395
+ let P = O(0, O(0, p, -1), -1).node, G = O(0, S, -1);
2396
+ return L(P) && re(G) && $.slice(0, -1).some((K) => K.arguments.some(kt));
2397
+ }
2398
+ let xe;
2399
+ return J || $.length > 2 && $.some((P) => !P.arguments.every((G) => me(G))) || S.slice(0, -1).some(re) || ae() ? xe = c(U) : xe = [re(h) || q ? Me : "", Ke([h, U])], Jt({ memberChain: !0 }, xe);
2400
+ }
2401
+ var wl = pa;
2402
+ function tn(e, t, n) {
2403
+ let { node: r } = e, u = r.type === "NewExpression", a = ue(e), s = ye(r), o = r.type !== "TSImportType" && r.typeArguments ? n("typeArguments") : "", p = s.length === 1 && fu(s[0], t.originalText);
2404
+ if (p || Nl(e) || jl(e) || rn(r, e.parent)) {
2405
+ let D = [];
2406
+ if (Qt(e, () => {
2407
+ D.push(n());
2408
+ }), !(p && D[0].label?.embed)) return [u ? "new " : "", Jr(e, n), a, o, "(", M(", ", D), ")"];
2409
+ }
2410
+ let l = r.type === "ImportExpression" || r.type === "TSImportType" || r.type === "TSExternalModuleReference";
2411
+ if (!l && !u && ot(r.callee) && !e.call(() => Ge(e, t), "callee", ...r.callee.type === "ChainExpression" ? ["expression"] : [])) return wl(e, t, n);
2412
+ let y = [u ? "new " : "", Jr(e, n), a, o, Mn(e, t, n)];
2413
+ return l || L(r.callee) ? c(y) : y;
2414
+ }
2415
+ function Jr(e, t) {
2416
+ let { node: n } = e;
2417
+ return n.type === "ImportExpression" ? `import${n.phase ? `.${n.phase}` : ""}` : n.type === "TSImportType" ? "import" : n.type === "TSExternalModuleReference" ? "require" : t("callee");
2418
+ }
2419
+ var Il = ["require", "require.resolve", "require.resolve.paths", "import.meta.resolve"];
2420
+ function Nl(e) {
2421
+ let { node: t } = e;
2422
+ if (!(t.type === "ImportExpression" || t.type === "TSImportType" || t.type === "TSExternalModuleReference" || t.type === "CallExpression" && !t.optional && Gn(t.callee, Il))) return !1;
2423
+ let n = ye(t);
2424
+ return n.length === 1 && Q(n[0]) && !g(n[0]);
2425
+ }
2426
+ function jl(e) {
2427
+ let { node: t } = e;
2428
+ if (t.type !== "CallExpression" || t.optional || t.callee.type !== "Identifier") return !1;
2429
+ let n = ye(t);
2430
+ return t.callee.name === "require" ? (n.length === 1 && Q(n[0]) || n.length > 1) && !g(n[0]) : t.callee.name === "define" && e.parent.type === "ExpressionStatement" ? n.length === 1 || n.length === 2 && n[0].type === "ArrayExpression" || n.length === 3 && Q(n[0]) && n[1].type === "ArrayExpression" : !1;
2431
+ }
2432
+ function qt(e, t, n, r, u, a) {
2433
+ let s = Ol(e, t, n, r, a), o = a ? n(a, { assignmentLayout: s }) : "";
2434
+ switch (s) {
2435
+ case "break-after-operator":
2436
+ return c([c(r), u, c(E([x, o]))]);
2437
+ case "never-break-after-operator":
2438
+ return c([c(r), u, " ", o]);
2439
+ case "fluid": {
2440
+ let p = /* @__PURE__ */ Symbol("assignment");
2441
+ return c([c(r), u, c(E(x), { id: p }), ve, It(o, { groupId: p })]);
2442
+ }
2443
+ case "break-lhs":
2444
+ return c([r, u, " ", c(o)]);
2445
+ case "chain":
2446
+ return [c(r), u, x, o];
2447
+ case "chain-tail":
2448
+ return [c(r), u, E([x, o])];
2449
+ case "chain-tail-arrow-chain":
2450
+ return [c(r), u, o];
2451
+ case "only-left":
2452
+ return r;
2453
+ }
2454
+ }
2455
+ function Ml(e, t, n) {
2456
+ let { node: r } = e;
2457
+ return qt(e, t, n, n("left"), [" ", r.operator], "right");
2458
+ }
2459
+ function Ll(e, t, n) {
2460
+ return qt(e, t, n, n("id"), " =", "init");
2461
+ }
2462
+ function Ol(e, t, n, r, u) {
2463
+ let { node: a } = e, s = a[u];
2464
+ if (!s) return "only-left";
2465
+ let o = !Kt(s);
2466
+ if (e.match(Kt, la, (y) => !o || y.type !== "ExpressionStatement" && y.type !== "VariableDeclaration")) return o ? s.type === "ArrowFunctionExpression" && s.body.type === "ArrowFunctionExpression" ? "chain-tail-arrow-chain" : "chain-tail" : "chain";
2467
+ if (!o && Kt(s.right) || Ee(t.originalText, s)) return "break-after-operator";
2468
+ if (a.type === "ImportAttribute" || s.type === "CallExpression" && s.callee.name === "require" || t.parser === "json5" || t.parser === "jsonc" || t.parser === "json") return "never-break-after-operator";
2469
+ let p = wi(r);
2470
+ if (ql(a) || _l(a) || ca(a) && p) return "break-lhs";
2471
+ let l = Wl(a, r, t);
2472
+ return e.call(() => Jl(e, t, n, l), u) ? "break-after-operator" : Xl(a) ? "break-lhs" : !p && (l || s.type === "TemplateLiteral" || s.type === "TaggedTemplateExpression" || lo(s) || be(s) || s.type === "ClassExpression") ? "never-break-after-operator" : "fluid";
2473
+ }
2474
+ function Jl(e, t, n, r) {
2475
+ let u = e.node;
2476
+ if (Ne(u) && !Nt(u)) return !0;
2477
+ switch (u.type) {
2478
+ case "StringLiteralTypeAnnotation":
2479
+ case "SequenceExpression":
2480
+ return !0;
2481
+ case "TSConditionalType":
2482
+ case "ConditionalTypeAnnotation":
2483
+ if (!t.experimentalTernaries && !Gl(u)) break;
2484
+ return !0;
2485
+ case "ConditionalExpression": {
2486
+ if (!t.experimentalTernaries) {
2487
+ let { test: l } = u;
2488
+ return Ne(l) && !Nt(l);
2489
+ }
2490
+ let { consequent: o, alternate: p } = u;
2491
+ return o.type === "ConditionalExpression" || p.type === "ConditionalExpression";
2492
+ }
2493
+ case "ClassExpression":
2494
+ return _(u.decorators);
2495
+ }
2496
+ if (r) return !1;
2497
+ let a = u, s = [];
2498
+ for (; ; ) if (a.type === "UnaryExpression" || a.type === "AwaitExpression" || a.type === "YieldExpression" && a.argument !== null) a = a.argument, s.push("argument");
2499
+ else if (a.type === "TSNonNullExpression") a = a.expression, s.push("expression");
2500
+ else break;
2501
+ return !!(Q(a) || e.call(() => Da(e, t, n), ...s));
2502
+ }
2503
+ function ql(e) {
2504
+ if (la(e)) {
2505
+ let t = e.left || e.id;
2506
+ return t.type === "ObjectPattern" && t.properties.length > 2 && t.properties.some((n) => _e(n) && (!n.shorthand || n.value?.type === "AssignmentPattern"));
2507
+ }
2508
+ return !1;
2509
+ }
2510
+ function Kt(e) {
2511
+ return e.type === "AssignmentExpression";
2512
+ }
2513
+ function la(e) {
2514
+ return Kt(e) || e.type === "VariableDeclarator";
2515
+ }
2516
+ function Xl(e) {
2517
+ let t = Rl(e);
2518
+ if (_(t)) {
2519
+ let n = e.type === "TSTypeAliasDeclaration" ? "constraint" : "bound";
2520
+ if (t.length > 1 && t.some((r) => r[n] || r.default)) return !0;
2521
+ }
2522
+ return !1;
2523
+ }
2524
+ function Rl(e) {
2525
+ if (Bn(e)) return e.typeParameters?.params;
2526
+ }
2527
+ function _l(e) {
2528
+ if (e.type !== "VariableDeclarator") return !1;
2529
+ let { typeAnnotation: t } = e.id;
2530
+ if (!t || !t.typeAnnotation) return !1;
2531
+ let n = qr(t.typeAnnotation);
2532
+ return _(n) && n.length > 1 && n.some((r) => _(qr(r)) || r.type === "TSConditionalType");
2533
+ }
2534
+ function ca(e) {
2535
+ return e.type === "VariableDeclarator" && e.init?.type === "ArrowFunctionExpression";
2536
+ }
2537
+ function qr(e) {
2538
+ let t;
2539
+ switch (e.type) {
2540
+ case "GenericTypeAnnotation":
2541
+ t = e.typeParameters;
2542
+ break;
2543
+ case "TSTypeReference":
2544
+ t = e.typeArguments;
2545
+ break;
2546
+ }
2547
+ return t?.params;
2548
+ }
2549
+ function Da(e, t, n, r = !1) {
2550
+ let { node: u } = e, a = () => Da(e, t, n, !0);
2551
+ if (u.type === "ChainExpression" || u.type === "TSNonNullExpression") return e.call(a, "expression");
2552
+ if (L(u)) {
2553
+ if (tn(e, t, n).label?.memberChain) return !1;
2554
+ let s = ye(u);
2555
+ return !(s.length === 0 || s.length === 1 && Yn(s[0], t)) || Ul(u, n) ? !1 : e.call(a, "callee");
2556
+ }
2557
+ return R(u) ? e.call(a, "object") : r && (u.type === "Identifier" || u.type === "ThisExpression");
2558
+ }
2559
+ function Wl(e, t, n) {
2560
+ return _e(e) ? (t = or(t), typeof t == "string" && it(t) < n.tabWidth + 3) : !1;
2561
+ }
2562
+ function Ul(e, t) {
2563
+ let n = $l(e);
2564
+ if (_(n)) {
2565
+ if (n.length > 1) return !0;
2566
+ if (n.length === 1) {
2567
+ let u = n[0];
2568
+ if (Be(u) || Ot(u) || u.type === "TSTypeLiteral" || u.type === "ObjectTypeAnnotation") return !0;
2569
+ }
2570
+ let r = e.typeParameters ? "typeParameters" : "typeArguments";
2571
+ if (re(t(r))) return !0;
2572
+ }
2573
+ return !1;
2574
+ }
2575
+ function $l(e) {
2576
+ return (e.typeParameters ?? e.typeArguments)?.params;
2577
+ }
2578
+ function Xr(e) {
2579
+ switch (e.type) {
2580
+ case "FunctionTypeAnnotation":
2581
+ case "GenericTypeAnnotation":
2582
+ case "TSFunctionType":
2583
+ return !!e.typeParameters;
2584
+ case "TSTypeReference":
2585
+ return !!e.typeArguments;
2586
+ default:
2587
+ return !1;
2588
+ }
2589
+ }
2590
+ function Gl(e) {
2591
+ return Xr(e.checkType) || Xr(e.extendsType);
2592
+ }
2593
+ var Ht = /* @__PURE__ */ new WeakMap();
2594
+ function ya(e) {
2595
+ return /^(?:\d+|\d+\.\d+)$/u.test(e);
2596
+ }
2597
+ function Rr(e, t) {
2598
+ return t.parser === "json" || t.parser === "jsonc" || !Q(e.key) || ct(ie(e.key), t).slice(1, -1) !== e.key.value ? !1 : !!(pl(e.key.value) && !(t.parser === "babel-ts" && e.type === "ClassProperty" || (t.parser === "typescript" || t.parser === "oxc-ts") && e.type === "PropertyDefinition") || ya(e.key.value) && String(Number(e.key.value)) === e.key.value && e.type !== "ImportAttribute" && (t.parser === "babel" || t.parser === "acorn" || t.parser === "oxc" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree"));
2599
+ }
2600
+ function Vl(e, t) {
2601
+ let { key: n } = e.node;
2602
+ return (n.type === "Identifier" || be(n) && ya(dt(ie(n))) && String(n.value) === dt(ie(n)) && !(t.parser === "typescript" || t.parser === "babel-ts" || t.parser === "oxc-ts")) && (t.parser === "json" || t.parser === "jsonc" || t.quoteProps === "consistent" && Ht.get(e.parent));
2603
+ }
2604
+ function Xt(e, t, n) {
2605
+ let { node: r } = e;
2606
+ if (r.computed) return ["[", n("key"), "]"];
2607
+ let { parent: u } = e, { key: a } = r;
2608
+ if (t.quoteProps === "consistent" && !Ht.has(u)) {
2609
+ let s = e.siblings.some((o) => !o.computed && Q(o.key) && !Rr(o, t));
2610
+ Ht.set(u, s);
2611
+ }
2612
+ if (Vl(e, t)) {
2613
+ let s = ct(JSON.stringify(a.type === "Identifier" ? a.name : a.value.toString()), t);
2614
+ return e.call(() => de(e, s, t), "key");
2615
+ }
2616
+ return Rr(r, t) && (t.quoteProps === "as-needed" || t.quoteProps === "consistent" && !Ht.get(u)) ? e.call(() => de(e, /^\d/u.test(a.value) ? dt(a.value) : a.value, t), "key") : n("key");
2617
+ }
2618
+ function An(e, t, n) {
2619
+ let { node: r } = e;
2620
+ return r.shorthand ? n("value") : qt(e, t, n, Xt(e, t, n), ":", "value");
2621
+ }
2622
+ var Kl = ({ node: e, key: t, parent: n }) => t === "value" && e.type === "FunctionExpression" && (n.type === "ObjectMethod" || n.type === "ClassMethod" || n.type === "ClassPrivateMethod" || n.type === "MethodDefinition" || n.type === "TSAbstractMethodDefinition" || n.type === "TSDeclareMethod" || n.type === "Property" && Lt(n));
2623
+ function da(e, t, n, r) {
2624
+ if (Kl(e)) return cr(e, t, n);
2625
+ let { node: u } = e, a = !1;
2626
+ if ((u.type === "FunctionDeclaration" || u.type === "FunctionExpression") && r?.expandLastArg) {
2627
+ let { parent: y } = e;
2628
+ L(y) && (ye(y).length > 1 || te(u).every((D) => D.type === "Identifier" && !D.typeAnnotation)) && (a = !0);
2629
+ }
2630
+ let s = [De(e), u.async ? "async " : "", `function${u.generator ? "*" : ""} `, u.id ? n("id") : ""], o = ut(e, t, n, a), p = pn(e, n), l = Et(u, p);
2631
+ return s.push(n("typeParameters"), c([l ? c(o) : o, p]), u.body ? " " : "", n("body")), t.semi && (u.declare || !u.body) && s.push(";"), s;
2632
+ }
2633
+ function Ln(e, t, n) {
2634
+ let { node: r } = e, { kind: u } = r, a = r.value || r, s = [];
2635
+ return !u || u === "init" || u === "method" || u === "constructor" ? a.async && s.push("async ") : s.push(u, " "), a.generator && s.push("*"), s.push(Xt(e, t, n), r.optional ? "?" : "", r === a ? cr(e, t, n) : n("value")), s;
2636
+ }
2637
+ function cr(e, t, n) {
2638
+ let { node: r } = e, u = ut(e, t, n), a = pn(e, n), s = ul(r), o = Et(r, a), p = [n("typeParameters"), c([s ? c(u, { shouldBreak: !0 }) : o ? c(u) : u, a])];
2639
+ return r.body ? p.push(" ", n("body")) : p.push(t.semi ? ";" : ""), p;
2640
+ }
2641
+ function Hl(e) {
2642
+ let t = te(e);
2643
+ return t.length === 1 && !e.typeParameters && !g(e, b.Dangling) && t[0].type === "Identifier" && !t[0].typeAnnotation && !g(t[0]) && !t[0].optional && !e.predicate && !e.returnType;
2644
+ }
2645
+ function fa(e, t) {
2646
+ if (t.arrowParens === "always") return !1;
2647
+ if (t.arrowParens === "avoid") {
2648
+ let { node: n } = e;
2649
+ return Hl(n);
2650
+ }
2651
+ return !1;
2652
+ }
2653
+ function pn(e, t) {
2654
+ let { node: n } = e, r = [Z(e, t, "returnType")];
2655
+ return n.predicate && r.push(t("predicate")), r;
2656
+ }
2657
+ function ma(e, t, n) {
2658
+ let { node: r } = e, u = [];
2659
+ if (r.argument) {
2660
+ let o = n("argument");
2661
+ Ql(t, r.argument) ? o = ["(", E([A, o]), A, ")"] : (Ne(r.argument) || t.experimentalTernaries && r.argument.type === "ConditionalExpression" && (r.argument.consequent.type === "ConditionalExpression" || r.argument.alternate.type === "ConditionalExpression")) && (o = c([k("("), E([m, o]), m, k(")")])), u.push(" ", o);
2662
+ }
2663
+ let a = g(r, b.Dangling), s = t.semi && a && g(r, b.Last | b.Line);
2664
+ return s && u.push(";"), a && u.push(" ", X(e, t)), !s && t.semi && u.push(";"), u;
2665
+ }
2666
+ function zl(e, t, n) {
2667
+ return ["return", ma(e, t, n)];
2668
+ }
2669
+ function Yl(e, t, n) {
2670
+ return ["throw", ma(e, t, n)];
2671
+ }
2672
+ function Ql(e, t) {
2673
+ if (Ee(e.originalText, t) || g(t, b.Leading, (n) => ce(e.originalText, j(n), N(n))) && !Y(t)) return !0;
2674
+ if (Kn(t)) {
2675
+ let n = t, r;
2676
+ for (; r = oo(n); ) if (n = r, Ee(e.originalText, n)) return !0;
2677
+ }
2678
+ return !1;
2679
+ }
2680
+ function Zl(e, t) {
2681
+ if (t.semi || Ea(e, t) || ga(e, t) || Aa(e, t)) return !1;
2682
+ let { node: n, key: r, parent: u } = e;
2683
+ return !!(n.type === "ExpressionStatement" && (r === "body" && (u.type === "Program" || u.type === "BlockStatement" || u.type === "StaticBlock" || u.type === "TSModuleBlock") || r === "consequent" && u.type === "SwitchCase") && e.call(() => Fa(e, t), "expression"));
2684
+ }
2685
+ function Fa(e, t) {
2686
+ let { node: n } = e;
2687
+ switch (n.type) {
2688
+ case "ParenthesizedExpression":
2689
+ case "TypeCastExpression":
2690
+ case "ArrayExpression":
2691
+ case "ArrayPattern":
2692
+ case "TemplateLiteral":
2693
+ case "TemplateElement":
2694
+ case "RegExpLiteral":
2695
+ return !0;
2696
+ case "ArrowFunctionExpression":
2697
+ if (!fa(e, t)) return !0;
2698
+ break;
2699
+ case "UnaryExpression": {
2700
+ let { prefix: r, operator: u } = n;
2701
+ if (r && (u === "+" || u === "-")) return !0;
2702
+ break;
2703
+ }
2704
+ case "BindExpression":
2705
+ if (!n.object) return !0;
2706
+ break;
2707
+ case "Literal":
2708
+ if (n.regex) return !0;
2709
+ break;
2710
+ default:
2711
+ if (Y(n)) return !0;
2712
+ }
2713
+ return Ge(e, t) ? !0 : Kn(n) ? e.call(() => Fa(e, t), ...pu(n)) : !1;
2714
+ }
2715
+ var Dr = ({ node: e, parent: t }) => e.type === "ExpressionStatement" && t.type === "Program" && t.body.length === 1 && (Array.isArray(t.directives) && t.directives.length === 0 || !t.directives);
2716
+ function Ea(e, t) {
2717
+ return (t.parentParser === "markdown" || t.parentParser === "mdx") && Dr(e) && Y(e.node.expression);
2718
+ }
2719
+ function Aa(e, t) {
2720
+ return t.__isHtmlInlineEventHandler && Dr(e);
2721
+ }
2722
+ function ga(e, t) {
2723
+ return (t.parser === "__vue_event_binding" || t.parser === "__vue_ts_event_binding") && Dr(e);
2724
+ }
2725
+ var ec = class extends Error {
2726
+ name = "UnexpectedNodeError";
2727
+ constructor(e, t, n = "type") {
2728
+ super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`), this.node = e;
2729
+ }
2730
+ }, At = ec;
2731
+ function tc(e) {
2732
+ if (typeof e != "string") throw new TypeError("Expected a string");
2733
+ return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2734
+ }
2735
+ var nc = class {
2736
+ #e;
2737
+ constructor(e) {
2738
+ this.#e = new Set(e);
2739
+ }
2740
+ getLeadingWhitespaceCount(e) {
2741
+ let t = this.#e, n = 0;
2742
+ for (let r = 0; r < e.length && t.has(e.charAt(r)); r++) n++;
2743
+ return n;
2744
+ }
2745
+ getTrailingWhitespaceCount(e) {
2746
+ let t = this.#e, n = 0;
2747
+ for (let r = e.length - 1; r >= 0 && t.has(e.charAt(r)); r--) n++;
2748
+ return n;
2749
+ }
2750
+ getLeadingWhitespace(e) {
2751
+ let t = this.getLeadingWhitespaceCount(e);
2752
+ return e.slice(0, t);
2753
+ }
2754
+ getTrailingWhitespace(e) {
2755
+ let t = this.getTrailingWhitespaceCount(e);
2756
+ return e.slice(e.length - t);
2757
+ }
2758
+ hasLeadingWhitespace(e) {
2759
+ return this.#e.has(e.charAt(0));
2760
+ }
2761
+ hasTrailingWhitespace(e) {
2762
+ return this.#e.has(O(0, e, -1));
2763
+ }
2764
+ trimStart(e) {
2765
+ let t = this.getLeadingWhitespaceCount(e);
2766
+ return e.slice(t);
2767
+ }
2768
+ trimEnd(e) {
2769
+ let t = this.getTrailingWhitespaceCount(e);
2770
+ return e.slice(0, e.length - t);
2771
+ }
2772
+ trim(e) {
2773
+ return this.trimEnd(this.trimStart(e));
2774
+ }
2775
+ split(e, t = !1) {
2776
+ let n = `[${tc([...this.#e].join(""))}]+`, r = new RegExp(t ? `(${n})` : n, "u");
2777
+ return e.split(r);
2778
+ }
2779
+ hasWhitespaceCharacter(e) {
2780
+ let t = this.#e;
2781
+ return Array.prototype.some.call(e, (n) => t.has(n));
2782
+ }
2783
+ hasNonWhitespaceCharacter(e) {
2784
+ let t = this.#e;
2785
+ return Array.prototype.some.call(e, (n) => !t.has(n));
2786
+ }
2787
+ isWhitespaceOnly(e) {
2788
+ let t = this.#e;
2789
+ return Array.prototype.every.call(e, (n) => t.has(n));
2790
+ }
2791
+ #t(e) {
2792
+ let t = Number.POSITIVE_INFINITY;
2793
+ for (let n of e.split(`
2794
+ `)) {
2795
+ if (n.length === 0) continue;
2796
+ let r = this.getLeadingWhitespaceCount(n);
2797
+ if (r === 0) return 0;
2798
+ n.length !== r && r < t && (t = r);
2799
+ }
2800
+ return t === Number.POSITIVE_INFINITY ? 0 : t;
2801
+ }
2802
+ dedentString(e) {
2803
+ let t = this.#t(e);
2804
+ return t === 0 ? e : e.split(`
2805
+ `).map((n) => n.slice(t)).join(`
2806
+ `);
2807
+ }
2808
+ }, rc = nc, zt = new rc(`
2809
+ \r `), gn = (e) => e === "" || e === x || e === A || e === m;
2810
+ function uc(e, t, n) {
2811
+ let { node: r } = e;
2812
+ if (r.type === "JSXElement" && gc(r)) return [n("openingElement"), n("closingElement")];
2813
+ let u = r.type === "JSXElement" ? n("openingElement") : n("openingFragment"), a = r.type === "JSXElement" ? n("closingElement") : n("closingFragment");
2814
+ if (r.children.length === 1 && r.children[0].type === "JSXExpressionContainer" && (r.children[0].expression.type === "TemplateLiteral" || r.children[0].expression.type === "TaggedTemplateExpression")) return [u, ...e.map(n, "children"), a];
2815
+ r.children = r.children.map((h) => Cc(h) ? { type: "JSXText", value: " ", raw: " " } : h);
2816
+ let s = r.children.some(Y), o = r.children.filter((h) => h.type === "JSXExpressionContainer").length > 1, p = r.type === "JSXElement" && r.openingElement.attributes.length > 1, l = re(u) || s || p || o, y = e.parent.rootMarker === "mdx", D = t.singleQuote ? "{' '}" : '{" "}', d = y ? x : k([D, m], " "), f = r.openingElement?.name?.name === "fbt", F = ac(e, t, n, d, f), B = r.children.some((h) => jt(h));
2817
+ for (let h = F.length - 2; h >= 0; h--) {
2818
+ let T = F[h] === "" && F[h + 1] === "", I = F[h] === A && F[h + 1] === "" && F[h + 2] === A, J = (F[h] === m || F[h] === A) && F[h + 1] === "" && F[h + 2] === d, H = F[h] === d && F[h + 1] === "" && (F[h + 2] === m || F[h + 2] === A), q = F[h] === d && F[h + 1] === "" && F[h + 2] === d, U = F[h] === m && F[h + 1] === "" && F[h + 2] === A || F[h] === A && F[h + 1] === "" && F[h + 2] === m;
2819
+ I && B || T || J || q || U ? F.splice(h, 2) : H && F.splice(h + 1, 2);
2820
+ }
2821
+ for (; F.length > 0 && gn(O(0, F, -1)); ) F.pop();
2822
+ for (; F.length > 1 && gn(F[0]) && gn(F[1]); ) F.shift(), F.shift();
2823
+ let C = [""];
2824
+ for (let [h, T] of F.entries()) {
2825
+ if (T === d) {
2826
+ if (h === 1 && Ii(F[h - 1])) {
2827
+ if (F.length === 2) {
2828
+ C.push([C.pop(), D]);
2829
+ continue;
2830
+ }
2831
+ C.push([D, A], "");
2832
+ continue;
2833
+ } else if (h === F.length - 1) {
2834
+ C.push([C.pop(), D]);
2835
+ continue;
2836
+ } else if (F[h - 1] === "" && F[h - 2] === A) {
2837
+ C.push([C.pop(), D]);
2838
+ continue;
2839
+ }
2840
+ }
2841
+ h % 2 === 0 ? C.push([C.pop(), T]) : C.push(T, ""), re(T) && (l = !0);
2842
+ }
2843
+ let v = B ? Lu(C) : c(C, { shouldBreak: !0 });
2844
+ if (t.cursorNode?.type === "JSXText" && r.children.includes(t.cursorNode) ? v = [$t, v, $t] : t.nodeBeforeCursor?.type === "JSXText" && r.children.includes(t.nodeBeforeCursor) ? v = [$t, v] : t.nodeAfterCursor?.type === "JSXText" && r.children.includes(t.nodeAfterCursor) && (v = [v, $t]), y) return v;
2845
+ let S = c([u, E([A, v]), A, a]);
2846
+ return l ? S : Ke([c([u, ...F, a]), S]);
2847
+ }
2848
+ function ac(e, t, n, r, u) {
2849
+ let a = "", s = [a];
2850
+ function o(l) {
2851
+ a = l, s.push([s.pop(), l]);
2852
+ }
2853
+ function p(l) {
2854
+ l !== "" && (a = l, s.push(l, ""));
2855
+ }
2856
+ return e.each(({ node: l, next: y }) => {
2857
+ if (l.type === "JSXText") {
2858
+ let D = ie(l);
2859
+ if (jt(l)) {
2860
+ let d = zt.split(D, !0);
2861
+ d[0] === "" && (d.shift(), /\n/u.test(d[0]) ? p(Wr(u, d[1], l, y)) : p(r), d.shift());
2862
+ let f;
2863
+ if (O(0, d, -1) === "" && (d.pop(), f = d.pop()), d.length === 0) return;
2864
+ for (let [F, B] of d.entries()) F % 2 === 1 ? p(x) : o(B);
2865
+ f !== void 0 ? /\n/u.test(f) ? p(Wr(u, a, l, y)) : p(r) : p(_r(u, a, l, y));
2866
+ } else /\n/u.test(D) ? D.match(/\n/gu).length > 1 && p(A) : p(r);
2867
+ } else {
2868
+ let D = n();
2869
+ if (o(D), y && jt(y)) {
2870
+ let d = zt.trim(ie(y)), [f] = zt.split(d);
2871
+ p(_r(u, f, l, y));
2872
+ } else p(A);
2873
+ }
2874
+ }, "children"), s;
2875
+ }
2876
+ function _r(e, t, n, r) {
2877
+ return e ? "" : n.type === "JSXElement" && !n.closingElement || r?.type === "JSXElement" && !r.closingElement ? t.length === 1 ? m : A : m;
2878
+ }
2879
+ function Wr(e, t, n, r) {
2880
+ return e ? A : t.length === 1 ? n.type === "JSXElement" && !n.closingElement || r?.type === "JSXElement" && !r.closingElement ? A : m : A;
2881
+ }
2882
+ var sc = w(["ArrayExpression", "JSXAttribute", "JSXElement", "JSXExpressionContainer", "JSXFragment", "ExpressionStatement", "NewExpression", "CallExpression", "OptionalCallExpression", "ConditionalExpression", "JsExpressionRoot", "MatchExpressionCase"]);
2883
+ function oc(e, t, n) {
2884
+ let { parent: r } = e;
2885
+ if (sc(r)) return t;
2886
+ let u = ic(e), a = Ge(e, n);
2887
+ return c([a ? "" : k("("), E([m, t]), m, a ? "" : k(")")], { shouldBreak: u });
2888
+ }
2889
+ function ic(e) {
2890
+ return e.match(void 0, (t, n) => n === "body" && t.type === "ArrowFunctionExpression", (t, n) => n === "arguments" && L(t)) && (e.match(void 0, void 0, void 0, (t, n) => n === "expression" && t.type === "JSXExpressionContainer") || e.match(void 0, void 0, void 0, (t, n) => n === "expression" && t.type === "ChainExpression", (t, n) => n === "expression" && t.type === "JSXExpressionContainer"));
2891
+ }
2892
+ function pc(e, t, n) {
2893
+ let { node: r } = e, u = [n("name")];
2894
+ if (r.value) {
2895
+ let a;
2896
+ if (Q(r.value)) {
2897
+ let s = ie(r.value), o = z(0, z(0, s.slice(1, -1), "&apos;", "'"), "&quot;", '"'), p = ru(o, t.jsxSingleQuote);
2898
+ o = p === '"' ? z(0, o, '"', "&quot;") : z(0, o, "'", "&apos;"), a = e.call(() => de(e, ze(p + o + p), t), "value");
2899
+ } else a = n("value");
2900
+ u.push("=", a);
2901
+ }
2902
+ return u;
2903
+ }
2904
+ function lc(e, t, n) {
2905
+ let { node: r } = e, u = (a, s) => a.type === "JSXEmptyExpression" || !g(a) && (ee(a) || Ae(a) || a.type === "ArrowFunctionExpression" || a.type === "AwaitExpression" && (u(a.argument, a) || a.argument.type === "JSXElement") || L(a) || a.type === "ChainExpression" && L(a.expression) || a.type === "FunctionExpression" || a.type === "TemplateLiteral" || a.type === "TaggedTemplateExpression" || a.type === "DoExpression" || Y(s) && (a.type === "ConditionalExpression" || Ne(a)));
2906
+ return u(r.expression, e.parent) ? c(["{", n("expression"), ve, "}"]) : c(["{", E([m, n("expression")]), m, ve, "}"]);
2907
+ }
2908
+ function cc(e, t, n) {
2909
+ let { node: r } = e, u = g(r.name) || g(r.typeArguments);
2910
+ if (r.selfClosing && r.attributes.length === 0 && !u) return ["<", n("name"), n("typeArguments"), " />"];
2911
+ if (r.attributes?.length === 1 && Q(r.attributes[0].value) && !r.attributes[0].value.value.includes(`
2912
+ `) && !u && !g(r.attributes[0])) return c(["<", n("name"), n("typeArguments"), " ", ...e.map(n, "attributes"), r.selfClosing ? " />" : ">"]);
2913
+ let a = r.attributes?.some((o) => Q(o.value) && o.value.value.includes(`
2914
+ `)), s = t.singleAttributePerLine && r.attributes.length > 1 ? A : x;
2915
+ return c(["<", n("name"), n("typeArguments"), E(e.map(() => [s, n()], "attributes")), ...Dc(r, t, u)], { shouldBreak: a });
2916
+ }
2917
+ function Dc(e, t, n) {
2918
+ return e.selfClosing ? [x, "/>"] : yc(e, t, n) ? [">"] : [m, ">"];
2919
+ }
2920
+ function yc(e, t, n) {
2921
+ let r = e.attributes.length > 0 && g(O(0, e.attributes, -1), b.Trailing);
2922
+ return e.attributes.length === 0 && !n || (t.bracketSameLine || t.jsxBracketSameLine) && (!n || e.attributes.length > 0) && !r;
2923
+ }
2924
+ function dc(e, t, n) {
2925
+ let { node: r } = e, u = ["</"], a = n("name");
2926
+ return g(r.name, b.Leading | b.Line) ? u.push(E([A, a]), A) : g(r.name, b.Leading | b.Block) ? u.push(" ", a) : u.push(a), u.push(">"), u;
2927
+ }
2928
+ function fc(e, t) {
2929
+ let { node: n } = e, r = g(n), u = g(n, b.Line), a = n.type === "JSXOpeningFragment";
2930
+ return [a ? "<" : "</", E([u ? A : r && !a ? " " : "", X(e, t)]), u ? A : "", ">"];
2931
+ }
2932
+ function mc(e, t, n) {
2933
+ let r = de(e, uc(e, t, n), t);
2934
+ return oc(e, r, t);
2935
+ }
2936
+ function Fc(e, t) {
2937
+ let { node: n } = e, r = g(n, b.Line);
2938
+ return [X(e, t, { indent: r }), r ? A : ""];
2939
+ }
2940
+ function Ec(e, t, n) {
2941
+ let { node: r } = e;
2942
+ return ["{", e.call(({ node: u }) => {
2943
+ let a = ["...", n()];
2944
+ return g(u) ? [E([m, de(e, a, t)]), m] : a;
2945
+ }, r.type === "JSXSpreadAttribute" ? "argument" : "expression"), "}"];
2946
+ }
2947
+ function Ac(e, t, n) {
2948
+ let { node: r } = e;
2949
+ if (r.type.startsWith("JSX")) switch (r.type) {
2950
+ case "JSXAttribute":
2951
+ return pc(e, t, n);
2952
+ case "JSXIdentifier":
2953
+ return r.name;
2954
+ case "JSXNamespacedName":
2955
+ return M(":", [n("namespace"), n("name")]);
2956
+ case "JSXMemberExpression":
2957
+ return M(".", [n("object"), n("property")]);
2958
+ case "JSXSpreadAttribute":
2959
+ case "JSXSpreadChild":
2960
+ return Ec(e, t, n);
2961
+ case "JSXExpressionContainer":
2962
+ return lc(e, t, n);
2963
+ case "JSXFragment":
2964
+ case "JSXElement":
2965
+ return mc(e, t, n);
2966
+ case "JSXOpeningElement":
2967
+ return cc(e, t, n);
2968
+ case "JSXClosingElement":
2969
+ return dc(e, t, n);
2970
+ case "JSXOpeningFragment":
2971
+ case "JSXClosingFragment":
2972
+ return fc(e, t);
2973
+ case "JSXEmptyExpression":
2974
+ return Fc(e, t);
2975
+ case "JSXText":
2976
+ throw new Error("JSXText should be handled by JSXElement");
2977
+ default:
2978
+ throw new At(r, "JSX");
2979
+ }
2980
+ }
2981
+ function gc(e) {
2982
+ if (e.children.length === 0) return !0;
2983
+ if (e.children.length > 1) return !1;
2984
+ let t = e.children[0];
2985
+ return t.type === "JSXText" && !jt(t);
2986
+ }
2987
+ function jt(e) {
2988
+ return e.type === "JSXText" && (zt.hasNonWhitespaceCharacter(ie(e)) || !/\n/u.test(ie(e)));
2989
+ }
2990
+ function Cc(e) {
2991
+ return e.type === "JSXExpressionContainer" && Q(e.expression) && e.expression.value === " " && !g(e.expression);
2992
+ }
2993
+ function hc(e) {
2994
+ let { node: t, parent: n } = e;
2995
+ if (!Y(t) || !Y(n)) return !1;
2996
+ let { index: r, siblings: u } = e, a;
2997
+ for (let s = r; s > 0; s--) {
2998
+ let o = u[s - 1];
2999
+ if (!(o.type === "JSXText" && !jt(o))) {
3000
+ a = o;
3001
+ break;
3002
+ }
3003
+ }
3004
+ return a?.type === "JSXExpressionContainer" && a.expression.type === "JSXEmptyExpression" && un(a.expression);
3005
+ }
3006
+ function xc(e) {
3007
+ return un(e.node) || hc(e);
3008
+ }
3009
+ var yr = xc;
3010
+ function Tc(e, t, n) {
3011
+ let { node: r } = e;
3012
+ if (r.type.startsWith("NG")) switch (r.type) {
3013
+ case "NGRoot":
3014
+ return n("node");
3015
+ case "NGPipeExpression":
3016
+ return Zu(e, t, n);
3017
+ case "NGChainedExpression":
3018
+ return c(M([";", x], e.map(() => Bc(e) ? n() : ["(", n(), ")"], "expressions")));
3019
+ case "NGEmptyExpression":
3020
+ return "";
3021
+ case "NGMicrosyntax":
3022
+ return e.map(() => [e.isFirst ? "" : Ur(e) ? " " : [";", x], n()], "body");
3023
+ case "NGMicrosyntaxKey":
3024
+ return /^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(r.name) ? r.name : JSON.stringify(r.name);
3025
+ case "NGMicrosyntaxExpression":
3026
+ return [n("expression"), r.alias === null ? "" : [" as ", n("alias")]];
3027
+ case "NGMicrosyntaxKeyedExpression": {
3028
+ let { index: u, parent: a } = e, s = Ur(e) || Sc(e) || (u === 1 && (r.key.name === "then" || r.key.name === "else" || r.key.name === "as") || u === 2 && (r.key.name === "else" && a.body[u - 1].type === "NGMicrosyntaxKeyedExpression" && a.body[u - 1].key.name === "then" || r.key.name === "track")) && a.body[0].type === "NGMicrosyntaxExpression";
3029
+ return [n("key"), s ? " " : ": ", n("expression")];
3030
+ }
3031
+ case "NGMicrosyntaxLet":
3032
+ return ["let ", n("key"), r.value === null ? "" : [" = ", n("value")]];
3033
+ case "NGMicrosyntaxAs":
3034
+ return [n("key"), " as ", n("alias")];
3035
+ default:
3036
+ throw new At(r, "Angular");
3037
+ }
3038
+ }
3039
+ function Ur({ node: e, index: t }) {
3040
+ return e.type === "NGMicrosyntaxKeyedExpression" && e.key.name === "of" && t === 1;
3041
+ }
3042
+ function Sc(e) {
3043
+ let { node: t } = e;
3044
+ return e.parent.body[1].key.name === "of" && t.type === "NGMicrosyntaxKeyedExpression" && t.key.name === "track" && t.key.type === "NGMicrosyntaxKey";
3045
+ }
3046
+ var bc = w(["CallExpression", "OptionalCallExpression", "AssignmentExpression"]);
3047
+ function Bc({ node: e }) {
3048
+ return Sn(e, bc);
3049
+ }
3050
+ function Ca(e, t, n) {
3051
+ let { node: r } = e;
3052
+ return c([M(x, e.map(n, "decorators")), ha(r, t) ? A : x]);
3053
+ }
3054
+ function vc(e, t, n) {
3055
+ return xa(e.node) ? [M(A, e.map(n, "declaration", "decorators")), A] : "";
3056
+ }
3057
+ function Pc(e, t, n) {
3058
+ let { node: r, parent: u } = e, { decorators: a } = r;
3059
+ if (!_(a) || xa(u) || yr(e)) return "";
3060
+ let s = r.type === "ClassExpression" || r.type === "ClassDeclaration" || ha(r, t);
3061
+ return [e.key === "declaration" && io(u) ? A : s ? Me : "", M(x, e.map(n, "decorators")), x];
3062
+ }
3063
+ function ha(e, t) {
3064
+ return e.decorators.some((n) => oe(t.originalText, N(n)));
3065
+ }
3066
+ function xa(e) {
3067
+ if (e.type !== "ExportDefaultDeclaration" && e.type !== "ExportNamedDeclaration" && e.type !== "DeclareExportDeclaration") return !1;
3068
+ let t = e.declaration?.decorators;
3069
+ return _(t) && nn(e, t[0]);
3070
+ }
3071
+ var Cn = /* @__PURE__ */ new WeakMap();
3072
+ function Ta(e) {
3073
+ return Cn.has(e) || Cn.set(e, e.type === "ConditionalExpression" && !ne(e, (t) => t.type === "ObjectExpression")), Cn.get(e);
3074
+ }
3075
+ var kc = (e) => e.type === "SequenceExpression";
3076
+ function wc(e, t, n, r = {}) {
3077
+ let u = [], a, s = [], o = !1, p = !r.expandLastArg && e.node.body.type === "ArrowFunctionExpression", l;
3078
+ (function v() {
3079
+ let { node: S } = e, h = Ic(e, t, n, r);
3080
+ if (u.length === 0) u.push(h);
3081
+ else {
3082
+ let { leading: T, trailing: I } = an(e, t);
3083
+ u.push([T, h]), s.unshift(I);
3084
+ }
3085
+ p && (o || (o = S.returnType && te(S).length > 0 || S.typeParameters || te(S).some((T) => T.type !== "Identifier"))), !p || S.body.type !== "ArrowFunctionExpression" ? (a = n("body", r), l = S.body) : e.call(v, "body");
3086
+ })();
3087
+ let y = !Ee(t.originalText, l) && (kc(l) || Nc(l, a, t) || !o && Ta(l)), D = e.key === "callee" && yt(e.parent), d = /* @__PURE__ */ Symbol("arrow-chain"), f = jc(e, r, { signatureDocs: u, shouldBreak: o }), F = !1, B = !1, C = !1;
3088
+ return p && (D || r.assignmentLayout) && (B = !0, C = !g(e.node, b.Leading & b.Line), F = r.assignmentLayout === "chain-tail-arrow-chain" || D && !y), a = Mc(e, t, r, { bodyDoc: a, bodyComments: s, functionBody: l, shouldPutBodyOnSameLine: y }), c([c(B ? E([C ? m : "", f]) : f, { shouldBreak: F, id: d }), " =>", p ? It(a, { groupId: d }) : c(a), p && D ? k(m, "", { groupId: d }) : ""]);
3089
+ }
3090
+ function Ic(e, t, n, r) {
3091
+ let { node: u } = e, a = [];
3092
+ if (u.async && a.push("async "), fa(e, t)) a.push(n(["params", 0]));
3093
+ else {
3094
+ let o = r.expandLastArg || r.expandFirstArg, p = pn(e, n);
3095
+ if (o) {
3096
+ if (re(p)) throw new en();
3097
+ p = c(Zt(p));
3098
+ }
3099
+ a.push(c([ut(e, t, n, o, !0), p]));
3100
+ }
3101
+ let s = X(e, t, { filter(o) {
3102
+ let p = ft(t.originalText, N(o));
3103
+ return p !== !1 && t.originalText.slice(p, p + 2) === "=>";
3104
+ } });
3105
+ return s && a.push(" ", s), a;
3106
+ }
3107
+ function Nc(e, t, n) {
3108
+ return ee(e) || Ae(e) || e.type === "ArrowFunctionExpression" || e.type === "DoExpression" || e.type === "BlockStatement" || Y(e) || t.label?.hug !== !1 && (t.label?.embed || fu(e, n.originalText));
3109
+ }
3110
+ function jc(e, t, { signatureDocs: n, shouldBreak: r }) {
3111
+ if (n.length === 1) return n[0];
3112
+ let { parent: u, key: a } = e;
3113
+ return a !== "callee" && yt(u) || Ne(u) ? c([n[0], " =>", E([x, M([" =>", x], n.slice(1))])], { shouldBreak: r }) : a === "callee" && yt(u) || t.assignmentLayout ? c(M([" =>", x], n), { shouldBreak: r }) : c(E(M([" =>", x], n)), { shouldBreak: r });
3114
+ }
3115
+ function Mc(e, t, n, { bodyDoc: r, bodyComments: u, functionBody: a, shouldPutBodyOnSameLine: s }) {
3116
+ let { node: o, parent: p } = e, l = n.expandLastArg && Pe(t, "all") ? k(",") : "", y = (n.expandLastArg || p.type === "JSXExpressionContainer") && !g(o) ? m : "";
3117
+ return s && Ta(a) ? [" ", c([k("", "("), E([m, r]), k("", ")"), l, y]), u] : s ? [" ", r, u] : [E([x, r, u]), l, y];
3118
+ }
3119
+ var Lc = Array.prototype.findLast ?? function(e) {
3120
+ for (let t = this.length - 1; t >= 0; t--) {
3121
+ let n = this[t];
3122
+ if (e(n, t, this)) return n;
3123
+ }
3124
+ }, Oc = Rn("findLast", function() {
3125
+ if (Array.isArray(this)) return Lc;
3126
+ }), Jc = Oc;
3127
+ function On(e, t, n, r) {
3128
+ let { node: u } = e, a = [], s = Jc(0, u[r], (o) => o.type !== "EmptyStatement");
3129
+ return e.each(({ node: o }) => {
3130
+ o.type !== "EmptyStatement" && (a.push(n()), o !== s && (a.push(A), ke(o, t) && a.push(A)));
3131
+ }, r), a;
3132
+ }
3133
+ function Sa(e, t, n) {
3134
+ let r = qc(e, t, n), { node: u, parent: a } = e;
3135
+ if (u.type === "Program" && a?.type !== "ModuleExpression") return r ? [r, A] : "";
3136
+ let s = [];
3137
+ if (u.type === "StaticBlock" && s.push("static "), s.push("{"), r) s.push(E([A, r]), A);
3138
+ else {
3139
+ let o = e.grandparent;
3140
+ a.type === "ArrowFunctionExpression" || a.type === "FunctionExpression" || a.type === "FunctionDeclaration" || a.type === "ComponentDeclaration" || a.type === "HookDeclaration" || a.type === "ObjectMethod" || a.type === "ClassMethod" || a.type === "ClassPrivateMethod" || a.type === "ForStatement" || a.type === "WhileStatement" || a.type === "DoWhileStatement" || a.type === "DoExpression" || a.type === "ModuleExpression" || a.type === "CatchClause" && !o.finalizer || a.type === "TSModuleDeclaration" || a.type === "MatchStatementCase" || u.type === "StaticBlock" || s.push(A);
3141
+ }
3142
+ return s.push("}"), s;
3143
+ }
3144
+ function qc(e, t, n) {
3145
+ let { node: r } = e, u = _(r.directives), a = r.body.some((p) => p.type !== "EmptyStatement"), s = g(r, b.Dangling);
3146
+ if (!u && !a && !s) return "";
3147
+ let o = [];
3148
+ return u && (o.push(On(e, t, n, "directives")), (a || s) && (o.push(A), ke(O(0, r.directives, -1), t) && o.push(A))), a && o.push(On(e, t, n, "body")), s && o.push(X(e, t)), o;
3149
+ }
3150
+ function Xc(e) {
3151
+ let t = /* @__PURE__ */ new WeakMap();
3152
+ return function(n) {
3153
+ return t.has(n) || t.set(n, Symbol(e)), t.get(n);
3154
+ };
3155
+ }
3156
+ var Rc = Xc;
3157
+ function dr(e, t, n) {
3158
+ let { node: r } = e, u = [], a = r.type === "ObjectTypeAnnotation", s = !ba(e), o = s ? x : A, p = g(r, b.Dangling), [l, y] = a && r.exact ? ["{|", "|}"] : "{}", D;
3159
+ if (_c(e, ({ node: d, next: f, isLast: F }) => {
3160
+ if (D ?? (D = d), u.push(n()), s && a) {
3161
+ let { parent: B } = e;
3162
+ B.inexact || !F ? u.push(",") : Pe(t) && u.push(k(","));
3163
+ }
3164
+ !s && (Wc({ node: d, next: f }, t) || va({ node: d, next: f }, t)) && u.push(";"), F || (u.push(o), ke(d, t) && u.push(A));
3165
+ }), p && u.push(X(e, t)), r.type === "ObjectTypeAnnotation" && r.inexact) {
3166
+ let d;
3167
+ g(r, b.Dangling) ? d = [g(r, b.Line) || oe(t.originalText, N(O(0, He(r), -1))) ? A : x, "..."] : d = [D ? x : "", "..."], u.push(d);
3168
+ }
3169
+ if (s) {
3170
+ let d = p || t.objectWrap === "preserve" && D && ce(t.originalText, j(r), j(D)), f;
3171
+ if (u.length === 0) f = l + y;
3172
+ else {
3173
+ let F = t.bracketSpacing ? x : m;
3174
+ f = [l, E([F, ...u]), F, y];
3175
+ }
3176
+ return e.match(void 0, (F, B) => B === "typeAnnotation", (F, B) => B === "typeAnnotation", Bt) || e.match(void 0, (F, B) => F.type === "FunctionTypeParam" && B === "typeAnnotation", Bt) ? f : c(f, { shouldBreak: d });
3177
+ }
3178
+ return [l, u.length > 0 ? [E([A, u]), A] : "", y];
3179
+ }
3180
+ function ba(e) {
3181
+ let { node: t } = e;
3182
+ if (t.type === "ObjectTypeAnnotation") {
3183
+ let { key: n, parent: r } = e;
3184
+ return n === "body" && (r.type === "InterfaceDeclaration" || r.type === "DeclareInterface" || r.type === "DeclareClass");
3185
+ }
3186
+ return t.type === "ClassBody" || t.type === "TSInterfaceBody";
3187
+ }
3188
+ function _c(e, t) {
3189
+ let { node: n } = e;
3190
+ if (n.type === "ClassBody" || n.type === "TSInterfaceBody") {
3191
+ e.each(t, "body");
3192
+ return;
3193
+ }
3194
+ if (n.type === "TSTypeLiteral") {
3195
+ e.each(t, "members");
3196
+ return;
3197
+ }
3198
+ if (n.type === "ObjectTypeAnnotation") {
3199
+ let r = ["properties", "indexers", "callProperties", "internalSlots"].flatMap((u) => e.map(({ node: a, index: s }) => ({ node: a, loc: j(a), selector: [u, s] }), u)).sort((u, a) => u.loc - a.loc);
3200
+ for (let [u, { node: a, selector: s }] of r.entries()) e.call(() => t({ node: a, next: r[u + 1]?.node, isLast: u === r.length - 1 }), ...s);
3201
+ }
3202
+ }
3203
+ function Ie(e, t) {
3204
+ let { parent: n } = e;
3205
+ return e.callParent(ba) ? t.semi || n.type === "ObjectTypeAnnotation" ? ";" : "" : n.type === "TSTypeLiteral" ? e.isLast ? t.semi ? k(";") : "" : t.semi || va({ node: e.node, next: e.next }, t) ? ";" : k("", ";") : "";
3206
+ }
3207
+ var $r = w(["ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]), Ba = (e) => {
3208
+ if (e.computed || e.typeAnnotation) return !1;
3209
+ let { type: t, name: n } = e.key;
3210
+ return t === "Identifier" && (n === "static" || n === "get" || n === "set");
3211
+ };
3212
+ function Wc({ node: e, next: t }, n) {
3213
+ if (n.semi || !$r(e)) return !1;
3214
+ if (!e.value && Ba(e)) return !0;
3215
+ if (!t || t.static || t.accessibility || t.readonly) return !1;
3216
+ if (!t.computed) {
3217
+ let r = t.key?.name;
3218
+ if (r === "in" || r === "instanceof") return !0;
3219
+ }
3220
+ if ($r(t) && t.variance && !t.static && !t.declare) return !0;
3221
+ switch (t.type) {
3222
+ case "ClassProperty":
3223
+ case "PropertyDefinition":
3224
+ case "TSAbstractPropertyDefinition":
3225
+ return t.computed;
3226
+ case "MethodDefinition":
3227
+ case "TSAbstractMethodDefinition":
3228
+ case "ClassMethod":
3229
+ case "ClassPrivateMethod": {
3230
+ if ((t.value ? t.value.async : t.async) || t.kind === "get" || t.kind === "set") return !1;
3231
+ let r = t.value ? t.value.generator : t.generator;
3232
+ return !!(t.computed || r);
3233
+ }
3234
+ case "TSIndexSignature":
3235
+ return !0;
3236
+ }
3237
+ return !1;
3238
+ }
3239
+ var Uc = w(["TSPropertySignature"]);
3240
+ function va({ node: e, next: t }, n) {
3241
+ return n.semi || !Uc(e) ? !1 : Ba(e) ? !0 : t ? t.type === "TSCallSignatureDeclaration" : !1;
3242
+ }
3243
+ var $c = Rc("heritageGroup"), Gc = w(["TSInterfaceDeclaration", "DeclareInterface", "InterfaceDeclaration", "InterfaceTypeAnnotation"]);
3244
+ function fr(e, t, n) {
3245
+ let { node: r } = e, u = Gc(r), a = [De(e), sn(e), u ? "interface" : "class"], s = ka(e), o = [], p = [];
3246
+ if (r.type !== "InterfaceTypeAnnotation") {
3247
+ r.id && o.push(" ");
3248
+ for (let y of ["id", "typeParameters"]) if (r[y]) {
3249
+ let { leading: D, trailing: d } = e.call(() => an(e, t), y);
3250
+ o.push(D, n(y), E(d));
3251
+ }
3252
+ }
3253
+ if (r.superClass) {
3254
+ let y = [Hc(e, t, n), n(r.superTypeArguments ? "superTypeArguments" : "superTypeParameters")], D = e.call(() => ["extends ", de(e, y, t)], "superClass");
3255
+ s ? p.push(x, c(D)) : p.push(" ", D);
3256
+ } else p.push(xn(e, t, n, "extends"));
3257
+ p.push(xn(e, t, n, "mixins"), xn(e, t, n, "implements"));
3258
+ let l;
3259
+ return s ? (l = $c(r), a.push(c([...o, E(p)], { id: l }))) : a.push(...o, ...p), !u && s && Vc(r.body) ? a.push(k(A, " ", { groupId: l })) : a.push(" "), a.push(n("body")), a;
3260
+ }
3261
+ function Vc(e) {
3262
+ return e.type === "ObjectTypeAnnotation" ? ["properties", "indexers", "callProperties", "internalSlots"].some((t) => _(e[t])) : _(e.body);
3263
+ }
3264
+ function Pa(e) {
3265
+ let t = e.superClass ? 1 : 0;
3266
+ for (let n of ["extends", "mixins", "implements"]) if (Array.isArray(e[n]) && (t += e[n].length), t > 1) return !0;
3267
+ return t > 1;
3268
+ }
3269
+ function Kc(e) {
3270
+ let { node: t } = e;
3271
+ if (g(t.id, b.Trailing) || g(t.typeParameters, b.Trailing) || g(t.superClass) || Pa(t)) return !0;
3272
+ if (t.superClass) return e.parent.type === "AssignmentExpression" ? !1 : !(t.superTypeArguments ?? t.superTypeParameters) && R(t.superClass);
3273
+ let n = t.extends?.[0] ?? t.mixins?.[0] ?? t.implements?.[0];
3274
+ return n ? n.type === "InterfaceExtends" && n.id.type === "QualifiedTypeIdentifier" && !n.typeParameters || (n.type === "TSClassImplements" || n.type === "TSInterfaceHeritage") && R(n.expression) && !n.typeArguments : !1;
3275
+ }
3276
+ var hn = /* @__PURE__ */ new WeakMap();
3277
+ function ka(e) {
3278
+ let { node: t } = e;
3279
+ return hn.has(t) || hn.set(t, Kc(e)), hn.get(t);
3280
+ }
3281
+ function xn(e, t, n, r) {
3282
+ let { node: u } = e;
3283
+ if (!_(u[r])) return "";
3284
+ let a = X(e, t, { marker: r }), s = M([",", x], e.map(n, r));
3285
+ if (!Pa(u)) {
3286
+ let o = [`${r} `, a, s];
3287
+ return ka(e) ? [x, c(o)] : [" ", o];
3288
+ }
3289
+ return [x, a, a && A, r, c(E([x, s]))];
3290
+ }
3291
+ function Hc(e, t, n) {
3292
+ let r = n("superClass"), { parent: u } = e;
3293
+ return u.type === "AssignmentExpression" ? c(k(["(", E([m, r]), m, ")"], r)) : r;
3294
+ }
3295
+ function wa(e, t, n) {
3296
+ let { node: r } = e, u = [];
3297
+ return _(r.decorators) && u.push(Ca(e, t, n)), u.push(on(r)), r.static && u.push("static "), u.push(sn(e)), r.override && u.push("override "), u.push(Ln(e, t, n)), u;
3298
+ }
3299
+ function Ia(e, t, n) {
3300
+ let { node: r } = e, u = [];
3301
+ _(r.decorators) && u.push(Ca(e, t, n)), u.push(De(e), on(r)), r.static && u.push("static "), u.push(sn(e)), r.override && u.push("override "), r.readonly && u.push("readonly "), r.variance && u.push(n("variance")), (r.type === "ClassAccessorProperty" || r.type === "AccessorProperty" || r.type === "TSAbstractAccessorProperty") && u.push("accessor "), u.push(Xt(e, t, n), ue(e), Qu(e), Z(e, n));
3302
+ let a = r.type === "TSAbstractPropertyDefinition" || r.type === "TSAbstractAccessorProperty";
3303
+ return [qt(e, t, n, u, " =", a ? void 0 : "value"), t.semi ? ";" : ""];
3304
+ }
3305
+ var zc = w(["TSAsExpression", "TSTypeAssertion", "TSNonNullExpression", "TSInstantiationExpression", "TSSatisfiesExpression"]);
3306
+ function Na(e) {
3307
+ return zc(e) ? Na(e.expression) : e;
3308
+ }
3309
+ var Yc = w(["FunctionExpression", "ArrowFunctionExpression"]);
3310
+ function Qc(e) {
3311
+ return e.type === "MemberExpression" || e.type === "OptionalMemberExpression" || e.type === "Identifier" && e.name !== "undefined";
3312
+ }
3313
+ function Zc(e, t) {
3314
+ if (ga(e, t)) {
3315
+ let n = Na(e.node.expression);
3316
+ return Yc(n) || Qc(n);
3317
+ }
3318
+ return !(!t.semi || Ea(e, t) || Aa(e, t));
3319
+ }
3320
+ function eD(e, t, n) {
3321
+ return [n("expression"), Zc(e, t) ? ";" : ""];
3322
+ }
3323
+ function tD(e, t, n) {
3324
+ if (t.__isVueBindings || t.__isVueForBindingLeft) {
3325
+ let r = e.map(n, "program", "body", 0, "params");
3326
+ if (r.length === 1) return r[0];
3327
+ let u = M([",", x], r);
3328
+ return t.__isVueForBindingLeft ? ["(", E([m, c(u)]), m, ")"] : u;
3329
+ }
3330
+ if (t.__isEmbeddedTypescriptGenericParameters) {
3331
+ let r = e.map(n, "program", "body", 0, "typeParameters", "params");
3332
+ return M([",", x], r);
3333
+ }
3334
+ }
3335
+ function nD(e, t) {
3336
+ let { node: n } = e;
3337
+ switch (n.type) {
3338
+ case "RegExpLiteral":
3339
+ return Gr(n);
3340
+ case "BigIntLiteral":
3341
+ return Jn(n.extra.raw);
3342
+ case "NumericLiteral":
3343
+ return dt(n.extra.raw);
3344
+ case "StringLiteral":
3345
+ return ze(ct(n.extra.raw, t));
3346
+ case "NullLiteral":
3347
+ return "null";
3348
+ case "BooleanLiteral":
3349
+ return String(n.value);
3350
+ case "DirectiveLiteral":
3351
+ return Vr(n.extra.raw, t);
3352
+ case "Literal": {
3353
+ if (n.regex) return Gr(n.regex);
3354
+ if (n.bigint) return Jn(n.raw);
3355
+ let { value: r } = n;
3356
+ return typeof r == "number" ? dt(n.raw) : typeof r == "string" ? rD(e) ? Vr(n.raw, t) : ze(ct(n.raw, t)) : String(r);
3357
+ }
3358
+ }
3359
+ }
3360
+ function rD(e) {
3361
+ if (e.key !== "expression") return;
3362
+ let { parent: t } = e;
3363
+ return t.type === "ExpressionStatement" && typeof t.directive == "string";
3364
+ }
3365
+ function Jn(e) {
3366
+ return e.toLowerCase();
3367
+ }
3368
+ function Gr({ pattern: e, flags: t }) {
3369
+ return t = [...t].sort().join(""), `/${e}/${t}`;
3370
+ }
3371
+ var uD = "use strict";
3372
+ function Vr(e, t) {
3373
+ let n = e.slice(1, -1);
3374
+ if (n === uD || !(n.includes('"') || n.includes("'"))) {
3375
+ let r = t.singleQuote ? "'" : '"';
3376
+ return r + n + r;
3377
+ }
3378
+ return e;
3379
+ }
3380
+ function aD(e, t, n) {
3381
+ let r = e.originalText.slice(t, n);
3382
+ for (let u of e[/* @__PURE__ */ Symbol.for("comments")]) {
3383
+ let a = j(u);
3384
+ if (a > n) break;
3385
+ let s = N(u);
3386
+ if (s < t) continue;
3387
+ let o = a - t, p = s - t;
3388
+ r = r.slice(0, o) + z(0, r.slice(o, p), /[^\n]/gu, " ") + r.slice(p);
3389
+ }
3390
+ return r;
3391
+ }
3392
+ var ln = aD, ja = w(["ImportDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportDeclaration", "DeclareExportAllDeclaration"]), sD = w(["EnumBooleanBody", "EnumNumberBody", "EnumBigIntBody", "EnumStringBody", "EnumSymbolBody"]);
3393
+ function mr(e, t, n) {
3394
+ let { node: r, parent: u } = e, a = sD(r), s = r.type === "TSEnumBody" || a, o = ja(r), p = a && r.hasUnknownMembers, l = s ? "members" : o ? "attributes" : "properties", y = r[l], D = s || r.type === "ObjectPattern" && u.type !== "FunctionDeclaration" && u.type !== "FunctionExpression" && u.type !== "ArrowFunctionExpression" && u.type !== "ObjectMethod" && u.type !== "ClassMethod" && u.type !== "ClassPrivateMethod" && u.type !== "AssignmentPattern" && u.type !== "CatchClause" && r.properties.some((C) => C.value && (C.value.type === "ObjectPattern" || C.value.type === "ArrayPattern")) || r.type !== "ObjectPattern" && t.objectWrap === "preserve" && y.length > 0 && oD(r, y[0], t), d = [], f = e.map(({ node: C }) => {
3395
+ let v = [...d, c(n())];
3396
+ return d = [",", x], ke(C, t) && d.push(A), v;
3397
+ }, l);
3398
+ if (p) {
3399
+ let C;
3400
+ if (g(r, b.Dangling)) {
3401
+ let v = g(r, b.Line);
3402
+ C = [X(e, t), v || oe(t.originalText, N(O(0, He(r), -1))) ? A : x, "..."];
3403
+ } else C = ["..."];
3404
+ f.push([...d, ...C]);
3405
+ }
3406
+ let F = !(p || O(0, y, -1)?.type === "RestElement"), B;
3407
+ if (f.length === 0) {
3408
+ if (!g(r, b.Dangling)) return ["{}", Z(e, n)];
3409
+ B = c(["{", X(e, t, { indent: !0 }), m, "}", ue(e), Z(e, n)]);
3410
+ } else {
3411
+ let C = t.bracketSpacing ? x : m;
3412
+ B = ["{", E([C, ...f]), k(F && Pe(t) ? "," : ""), C, "}", ue(e), Z(e, n)];
3413
+ }
3414
+ return e.match((C) => C.type === "ObjectPattern" && !_(C.decorators), Bt) || Xe(r) && (e.match(void 0, (C, v) => v === "typeAnnotation", (C, v) => v === "typeAnnotation", Bt) || e.match(void 0, (C, v) => C.type === "FunctionTypeParam" && v === "typeAnnotation", Bt)) || !D && e.match((C) => C.type === "ObjectPattern", (C) => C.type === "AssignmentExpression" || C.type === "VariableDeclarator") ? B : c(B, { shouldBreak: D });
3415
+ }
3416
+ function oD(e, t, n) {
3417
+ let r = n.originalText, u = j(e), a = j(t);
3418
+ if (ja(e)) {
3419
+ let s = j(e), o = ln(n, s, a);
3420
+ u = s + o.lastIndexOf("{");
3421
+ }
3422
+ return ce(r, u, a);
3423
+ }
3424
+ function iD(e, t, n) {
3425
+ let { node: r } = e;
3426
+ return ["import", r.phase ? ` ${r.phase}` : "", Oa(r), qa(e, t, n), Ja(e, t, n), Ra(e, t, n), t.semi ? ";" : ""];
3427
+ }
3428
+ var Ma = (e) => e.type === "ExportDefaultDeclaration" || e.type === "DeclareExportDeclaration" && e.default;
3429
+ function La(e, t, n) {
3430
+ let { node: r } = e, u = [vc(e, t, n), De(e), "export", Ma(r) ? " default" : ""], { declaration: a, exported: s } = r;
3431
+ return g(r, b.Dangling) && (u.push(" ", X(e, t)), mu(r) && u.push(A)), a ? u.push(" ", n("declaration")) : (u.push(cD(r)), r.type === "ExportAllDeclaration" || r.type === "DeclareExportAllDeclaration" ? (u.push(" *"), s && u.push(" as ", n("exported"))) : u.push(qa(e, t, n)), u.push(Ja(e, t, n), Ra(e, t, n))), u.push(lD(r, t)), u;
3432
+ }
3433
+ var pD = w(["ClassDeclaration", "ComponentDeclaration", "FunctionDeclaration", "TSInterfaceDeclaration", "DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "HookDeclaration", "TSDeclareFunction", "EnumDeclaration"]);
3434
+ function lD(e, t) {
3435
+ return t.semi && (!e.declaration || Ma(e) && !pD(e.declaration)) ? ";" : "";
3436
+ }
3437
+ function Fr(e, t = !0) {
3438
+ return e && e !== "value" ? `${t ? " " : ""}${e}${t ? "" : " "}` : "";
3439
+ }
3440
+ function Oa(e, t) {
3441
+ return Fr(e.importKind, t);
3442
+ }
3443
+ function cD(e) {
3444
+ return Fr(e.exportKind);
3445
+ }
3446
+ function Ja(e, t, n) {
3447
+ let { node: r } = e;
3448
+ return r.source ? [Xa(r, t) ? " from" : "", " ", n("source")] : "";
3449
+ }
3450
+ function qa(e, t, n) {
3451
+ let { node: r } = e;
3452
+ if (!Xa(r, t)) return "";
3453
+ let u = [" "];
3454
+ if (_(r.specifiers)) {
3455
+ let a = [], s = [];
3456
+ e.each(() => {
3457
+ let o = e.node.type;
3458
+ if (o === "ExportNamespaceSpecifier" || o === "ExportDefaultSpecifier" || o === "ImportNamespaceSpecifier" || o === "ImportDefaultSpecifier") a.push(n());
3459
+ else if (o === "ExportSpecifier" || o === "ImportSpecifier") s.push(n());
3460
+ else throw new At(r, "specifier");
3461
+ }, "specifiers"), u.push(M(", ", a)), s.length > 0 && (a.length > 0 && u.push(", "), s.length > 1 || a.length > 0 || r.specifiers.some((o) => g(o)) ? u.push(c(["{", E([t.bracketSpacing ? x : m, M([",", x], s)]), k(Pe(t) ? "," : ""), t.bracketSpacing ? x : m, "}"])) : u.push(["{", t.bracketSpacing ? " " : "", ...s, t.bracketSpacing ? " " : "", "}"]));
3462
+ } else u.push("{}");
3463
+ return u;
3464
+ }
3465
+ function Xa(e, t) {
3466
+ return e.type !== "ImportDeclaration" || _(e.specifiers) || e.importKind === "type" ? !0 : ln(t, j(e), j(e.source)).trimEnd().endsWith("from");
3467
+ }
3468
+ function DD(e, t) {
3469
+ if (e.extra?.deprecatedAssertSyntax) return "assert";
3470
+ let n = ln(t, N(e.source), e.attributes?.[0] ? j(e.attributes[0]) : N(e)).trimStart();
3471
+ return n.startsWith("assert") ? "assert" : n.startsWith("with") || _(e.attributes) ? "with" : void 0;
3472
+ }
3473
+ var yD = (e) => {
3474
+ let { attributes: t } = e;
3475
+ if (t.length !== 1) return !1;
3476
+ let [n] = t, { type: r, key: u, value: a } = n;
3477
+ return r === "ImportAttribute" && (u.type === "Identifier" && u.name === "type" || Q(u) && u.value === "type") && Q(a) && !g(n) && !g(u) && !g(a);
3478
+ };
3479
+ function Ra(e, t, n) {
3480
+ let { node: r } = e;
3481
+ if (!r.source) return "";
3482
+ let u = DD(r, t);
3483
+ if (!u) return "";
3484
+ let a = mr(e, t, n);
3485
+ return yD(r) && (a = Zt(a)), [` ${u} `, a];
3486
+ }
3487
+ function dD(e, t, n) {
3488
+ let { node: r } = e, { type: u } = r, a = u.startsWith("Import"), s = a ? "imported" : "local", o = a ? "local" : "exported", p = r[s], l = r[o], y = "", D = "";
3489
+ return u === "ExportNamespaceSpecifier" || u === "ImportNamespaceSpecifier" ? y = "*" : p && (y = n(s)), l && !fD(r) && (D = n(o)), [Fr(u === "ImportSpecifier" ? r.importKind : r.exportKind, !1), y, y && D ? " as " : "", D];
3490
+ }
3491
+ function fD(e) {
3492
+ if (e.type !== "ImportSpecifier" && e.type !== "ExportSpecifier") return !1;
3493
+ let { local: t, [e.type === "ImportSpecifier" ? "imported" : "exported"]: n } = e;
3494
+ return t.type !== n.type || !Gs(t, n) ? !1 : Q(t) ? t.value === n.value && ie(t) === ie(n) : t.type === "Identifier" ? t.name === n.name : !1;
3495
+ }
3496
+ function qn(e, t) {
3497
+ return ["...", t("argument"), Z(e, t)];
3498
+ }
3499
+ function mD(e) {
3500
+ let t = [e];
3501
+ for (let n = 0; n < t.length; n++) {
3502
+ let r = t[n];
3503
+ for (let u of ["test", "consequent", "alternate"]) {
3504
+ let a = r[u];
3505
+ if (Y(a)) return !0;
3506
+ a.type === "ConditionalExpression" && t.push(a);
3507
+ }
3508
+ }
3509
+ return !1;
3510
+ }
3511
+ function FD(e, t, n) {
3512
+ let { node: r } = e, u = r.type === "ConditionalExpression", a = u ? "alternate" : "falseType", { parent: s } = e, o = u ? n("test") : [n("checkType"), " ", "extends", " ", n("extendsType")];
3513
+ return s.type === r.type && s[a] === r ? Ce(2, o) : o;
3514
+ }
3515
+ var ED = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3516
+ function AD(e) {
3517
+ let { node: t } = e;
3518
+ if (t.type !== "ConditionalExpression") return !1;
3519
+ let n, r = t;
3520
+ for (let u = 0; !n; u++) {
3521
+ let a = e.getParentNode(u);
3522
+ if (a.type === "ChainExpression" && a.expression === r || L(a) && a.callee === r || R(a) && a.object === r || a.type === "TSNonNullExpression" && a.expression === r) {
3523
+ r = a;
3524
+ continue;
3525
+ }
3526
+ a.type === "NewExpression" && a.callee === r || Fe(a) && a.expression === r ? (n = e.getParentNode(u + 1), r = a) : n = a;
3527
+ }
3528
+ return r === t ? !1 : n[ED.get(n.type)] === r;
3529
+ }
3530
+ function gD(e, t, n) {
3531
+ let { node: r } = e, u = r.type === "ConditionalExpression", a = u ? "consequent" : "trueType", s = u ? "alternate" : "falseType", o = u ? ["test"] : ["checkType", "extendsType"], p = r[a], l = r[s], y = [], D = !1, { parent: d } = e, f = d.type === r.type && o.some((q) => d[q] === r), F = d.type === r.type && !f, B, C, v = 0;
3532
+ do
3533
+ C = B || r, B = e.getParentNode(v), v++;
3534
+ while (B && B.type === r.type && o.every((q) => B[q] !== C));
3535
+ let S = B || d, h = C;
3536
+ if (u && (Y(r[o[0]]) || Y(p) || Y(l) || mD(h))) {
3537
+ D = !0, F = !0;
3538
+ let q = ($) => [k("("), E([m, $]), m, k(")")], U = ($) => $.type === "NullLiteral" || $.type === "Literal" && $.value === null || $.type === "Identifier" && $.name === "undefined";
3539
+ y.push(" ? ", U(p) ? n(a) : q(n(a)), " : ", l.type === r.type || U(l) ? n(s) : q(n(s)));
3540
+ } else {
3541
+ let q = ($) => t.useTabs ? E(n($)) : Ce(2, n($)), U = [x, "? ", p.type === r.type ? k("", "(") : "", q(a), p.type === r.type ? k("", ")") : "", x, ": ", q(s)];
3542
+ y.push(d.type !== r.type || d[s] === r || f ? U : t.useTabs ? Mu(E(U)) : Ce(Math.max(0, t.tabWidth - 2), U));
3543
+ }
3544
+ let T = (q) => d === S ? c(q) : q, I = !D && (R(d) || d.type === "NGPipeExpression" && d.left === r) && !d.computed, J = AD(e), H = T([FD(e, t, n), F ? y : E(y), u && I && !J ? m : ""]);
3545
+ return f || J ? c([E([m, H]), m]) : H;
3546
+ }
3547
+ function CD(e, t) {
3548
+ return (R(t) || t.type === "NGPipeExpression" && t.left === e) && !t.computed;
3549
+ }
3550
+ function hD(e, t, n, r) {
3551
+ return [...e.map((u) => He(u)), He(t), He(n)].flat().some((u) => he(u) && ce(r.originalText, j(u), N(u)));
3552
+ }
3553
+ var xD = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3554
+ function TD(e) {
3555
+ let { node: t } = e;
3556
+ if (t.type !== "ConditionalExpression") return !1;
3557
+ let n, r = t;
3558
+ for (let u = 0; !n; u++) {
3559
+ let a = e.getParentNode(u);
3560
+ if (a.type === "ChainExpression" && a.expression === r || L(a) && a.callee === r || R(a) && a.object === r || a.type === "TSNonNullExpression" && a.expression === r) {
3561
+ r = a;
3562
+ continue;
3563
+ }
3564
+ a.type === "NewExpression" && a.callee === r || Fe(a) && a.expression === r ? (n = e.getParentNode(u + 1), r = a) : n = a;
3565
+ }
3566
+ return r === t ? !1 : n[xD.get(n.type)] === r;
3567
+ }
3568
+ var Tn = (e) => [k("("), E([m, e]), m, k(")")];
3569
+ function Er(e, t, n, r) {
3570
+ if (!t.experimentalTernaries) return gD(e, t, n);
3571
+ let { node: u } = e, a = u.type === "ConditionalExpression", s = Re(u), o = a ? "consequent" : "trueType", p = a ? "alternate" : "falseType", l = a ? ["test"] : ["checkType", "extendsType"], y = u[o], D = u[p], d = l.map((ht) => u[ht]), { parent: f } = e, F = f.type === u.type, B = F && l.some((ht) => f[ht] === u), C = F && f[p] === u, v = y.type === u.type, S = D.type === u.type, h = S || C, T = t.tabWidth > 2 || t.useTabs, I, J, H = 0;
3572
+ do
3573
+ J = I || u, I = e.getParentNode(H), H++;
3574
+ while (I && I.type === u.type && l.every((ht) => I[ht] !== J));
3575
+ let q = I || f, U = r && r.assignmentLayout && r.assignmentLayout !== "break-after-operator" && (f.type === "AssignmentExpression" || f.type === "VariableDeclarator" || f.type === "ClassProperty" || f.type === "PropertyDefinition" || f.type === "ClassPrivateProperty" || f.type === "ObjectProperty" || f.type === "Property"), $ = (f.type === "ReturnStatement" || f.type === "ThrowStatement") && !(v || S), ae = a && q.type === "JSXExpressionContainer" && e.grandparent.type !== "JSXAttribute", xe = TD(e), P = CD(u, f), G = s && Ge(e, t), K = T ? t.useTabs ? " " : " ".repeat(t.tabWidth - 1) : "", we = hD(d, y, D, t) || v || S, Ve = !h && !F && !s && (ae ? y.type === "NullLiteral" || y.type === "Literal" && y.value === null : Yn(y, t) && Tr(u.test, 3)), Rt = h || C || s && !F || F && a && Tr(u.test, 1) || Ve, Ar = [];
3576
+ !v && g(y, b.Dangling) && e.call(() => {
3577
+ Ar.push(X(e, t), A);
3578
+ }, "consequent");
3579
+ let gt = [];
3580
+ g(u.test, b.Dangling) && e.call(() => {
3581
+ gt.push(X(e, t));
3582
+ }, "test"), !S && g(D, b.Dangling) && e.call(() => {
3583
+ gt.push(X(e, t));
3584
+ }, "alternate"), g(u, b.Dangling) && gt.push(X(e, t));
3585
+ let gr = /* @__PURE__ */ Symbol("test"), ss = /* @__PURE__ */ Symbol("consequent"), _t = /* @__PURE__ */ Symbol("test-and-consequent"), os = a ? [Tn(n("test")), u.test.type === "ConditionalExpression" ? Me : ""] : [n("checkType"), " ", "extends", " ", Re(u.extendsType) || u.extendsType.type === "TSMappedType" ? n("extendsType") : c(Tn(n("extendsType")))], Cr = c([os, " ?"], { id: gr }), is = n(o), Wt = E([v || ae && (Y(y) || F || h) ? A : x, Ar, is]), ps = Rt ? c([Cr, h ? Wt : k(Wt, c(Wt, { id: ss }), { groupId: gr })], { id: _t }) : [Cr, Wt], cn = n(p), hr = Ve ? k(cn, Mu(Tn(cn)), { groupId: _t }) : cn, Ct = [ps, gt.length > 0 ? [E([A, gt]), A] : S ? A : Ve ? k(x, " ", { groupId: _t }) : x, ":", S ? " " : T ? Rt ? k(K, k(h || Ve ? " " : K, " "), { groupId: _t }) : k(K, " ") : " ", S ? hr : c([E(hr), ae && !Ve ? m : ""]), P && !xe ? m : "", we ? Me : ""];
3586
+ return U && !we ? c(E([m, c(Ct)])) : U || $ ? c(E(Ct)) : xe || s && B ? c([E([m, Ct]), G ? m : ""]) : f === q ? c(Ct) : Ct;
3587
+ }
3588
+ function SD(e, t, n, r) {
3589
+ let { node: u } = e;
3590
+ if (Hn(u)) return nD(e, t);
3591
+ switch (u.type) {
3592
+ case "JsExpressionRoot":
3593
+ return n("node");
3594
+ case "JsonRoot":
3595
+ return [X(e, t), n("node"), A];
3596
+ case "File":
3597
+ return tD(e, t, n) ?? n("program");
3598
+ case "ExpressionStatement":
3599
+ return eD(e, t, n);
3600
+ case "ChainExpression":
3601
+ return n("expression");
3602
+ case "ParenthesizedExpression":
3603
+ return !g(u.expression) && (Ae(u.expression) || ee(u.expression)) ? ["(", n("expression"), ")"] : c(["(", E([m, n("expression")]), m, ")"]);
3604
+ case "AssignmentExpression":
3605
+ return Ml(e, t, n);
3606
+ case "VariableDeclarator":
3607
+ return Ll(e, t, n);
3608
+ case "BinaryExpression":
3609
+ case "LogicalExpression":
3610
+ return Zu(e, t, n);
3611
+ case "AssignmentPattern":
3612
+ return [n("left"), " = ", n("right")];
3613
+ case "OptionalMemberExpression":
3614
+ case "MemberExpression":
3615
+ return kl(e, t, n);
3616
+ case "MetaProperty":
3617
+ return [n("meta"), ".", n("property")];
3618
+ case "BindExpression":
3619
+ return Bl(e, t, n);
3620
+ case "Identifier":
3621
+ return [u.name, ue(e), Qu(e), Z(e, n)];
3622
+ case "V8IntrinsicIdentifier":
3623
+ return ["%", u.name];
3624
+ case "SpreadElement":
3625
+ return qn(e, n);
3626
+ case "RestElement":
3627
+ return qn(e, n);
3628
+ case "FunctionDeclaration":
3629
+ case "FunctionExpression":
3630
+ return da(e, t, n, r);
3631
+ case "ArrowFunctionExpression":
3632
+ return wc(e, t, n, r);
3633
+ case "YieldExpression":
3634
+ return [`yield${u.delegate ? "*" : ""}`, u.argument ? [" ", n("argument")] : ""];
3635
+ case "AwaitExpression": {
3636
+ let a = ["await"];
3637
+ if (u.argument) {
3638
+ a.push(" ", n("argument"));
3639
+ let { parent: s } = e;
3640
+ if (L(s) && s.callee === u || R(s) && s.object === u) {
3641
+ a = [E([m, ...a]), m];
3642
+ let o = e.findAncestor((p) => p.type === "AwaitExpression" || p.type === "BlockStatement");
3643
+ if (o?.type !== "AwaitExpression" || !ne(o.argument, (p) => p === u)) return c(a);
3644
+ }
3645
+ }
3646
+ return a;
3647
+ }
3648
+ case "ExportDefaultDeclaration":
3649
+ case "ExportNamedDeclaration":
3650
+ case "ExportAllDeclaration":
3651
+ return La(e, t, n);
3652
+ case "ImportDeclaration":
3653
+ return iD(e, t, n);
3654
+ case "ImportSpecifier":
3655
+ case "ExportSpecifier":
3656
+ case "ImportNamespaceSpecifier":
3657
+ case "ExportNamespaceSpecifier":
3658
+ case "ImportDefaultSpecifier":
3659
+ case "ExportDefaultSpecifier":
3660
+ return dD(e, t, n);
3661
+ case "ImportAttribute":
3662
+ return An(e, t, n);
3663
+ case "Program":
3664
+ case "BlockStatement":
3665
+ case "StaticBlock":
3666
+ return Sa(e, t, n);
3667
+ case "ClassBody":
3668
+ return dr(e, t, n);
3669
+ case "ThrowStatement":
3670
+ return Yl(e, t, n);
3671
+ case "ReturnStatement":
3672
+ return zl(e, t, n);
3673
+ case "NewExpression":
3674
+ case "ImportExpression":
3675
+ case "OptionalCallExpression":
3676
+ case "CallExpression":
3677
+ return tn(e, t, n);
3678
+ case "ObjectExpression":
3679
+ case "ObjectPattern":
3680
+ return mr(e, t, n);
3681
+ case "Property":
3682
+ return Lt(u) ? Ln(e, t, n) : An(e, t, n);
3683
+ case "ObjectProperty":
3684
+ return An(e, t, n);
3685
+ case "ObjectMethod":
3686
+ return Ln(e, t, n);
3687
+ case "Decorator":
3688
+ return ["@", n("expression")];
3689
+ case "ArrayExpression":
3690
+ case "ArrayPattern":
3691
+ return lr(e, t, n);
3692
+ case "SequenceExpression": {
3693
+ let { parent: a } = e;
3694
+ if (a.type === "ExpressionStatement" || a.type === "ForStatement") {
3695
+ let o = [];
3696
+ return e.each(({ isFirst: p }) => {
3697
+ p ? o.push(n()) : o.push(",", E([x, n()]));
3698
+ }, "expressions"), c(o);
3699
+ }
3700
+ let s = M([",", x], e.map(n, "expressions"));
3701
+ return (a.type === "ReturnStatement" || a.type === "ThrowStatement") && e.key === "argument" || a.type === "ArrowFunctionExpression" && e.key === "body" ? c(k([E([m, s]), m], s)) : c(s);
3702
+ }
3703
+ case "ThisExpression":
3704
+ return "this";
3705
+ case "Super":
3706
+ return "super";
3707
+ case "Directive":
3708
+ return [n("value"), t.semi ? ";" : ""];
3709
+ case "UnaryExpression": {
3710
+ let a = [u.operator];
3711
+ return /[a-z]$/u.test(u.operator) && a.push(" "), g(u.argument) ? a.push(c(["(", E([m, n("argument")]), m, ")"])) : a.push(n("argument")), a;
3712
+ }
3713
+ case "UpdateExpression":
3714
+ return [u.prefix ? u.operator : "", n("argument"), u.prefix ? "" : u.operator];
3715
+ case "ConditionalExpression":
3716
+ return Er(e, t, n, r);
3717
+ case "VariableDeclaration": {
3718
+ let a = e.map(n, "declarations"), s = e.parent, o = s.type === "ForStatement" || s.type === "ForInStatement" || s.type === "ForOfStatement", p = u.declarations.some((y) => y.init), l;
3719
+ return a.length === 1 && !g(u.declarations[0]) ? l = a[0] : a.length > 0 && (l = E(a[0])), c([De(e), u.kind, l ? [" ", l] : "", E(a.slice(1).map((y) => [",", p && !o ? A : x, y])), t.semi && !(o && s.body !== u) ? ";" : ""]);
3720
+ }
3721
+ case "WithStatement":
3722
+ return c(["with (", n("object"), ")", Je(u.body, n("body"))]);
3723
+ case "IfStatement": {
3724
+ let a = Je(u.consequent, n("consequent")), s = [c(["if (", c([E([m, n("test")]), m]), ")", a])];
3725
+ if (u.alternate) {
3726
+ let o = g(u.consequent, b.Trailing | b.Line) || mu(u), p = u.consequent.type === "BlockStatement" && !o;
3727
+ s.push(p ? " " : A), g(u, b.Dangling) && s.push(X(e, t), o ? A : " "), s.push("else", c(Je(u.alternate, n("alternate"), u.alternate.type === "IfStatement")));
3728
+ }
3729
+ return s;
3730
+ }
3731
+ case "ForStatement": {
3732
+ let a = Je(u.body, n("body")), s = X(e, t), o = s ? [s, m] : "";
3733
+ return !u.init && !u.test && !u.update ? [o, c(["for (;;)", a])] : [o, c(["for (", c([E([m, n("init"), ";", x, n("test"), ";", u.update ? [x, n("update")] : k("", x)]), m]), ")", a])];
3734
+ }
3735
+ case "WhileStatement":
3736
+ return c(["while (", c([E([m, n("test")]), m]), ")", Je(u.body, n("body"))]);
3737
+ case "ForInStatement":
3738
+ return c(["for (", n("left"), " in ", n("right"), ")", Je(u.body, n("body"))]);
3739
+ case "ForOfStatement":
3740
+ return c(["for", u.await ? " await" : "", " (", n("left"), " of ", n("right"), ")", Je(u.body, n("body"))]);
3741
+ case "DoWhileStatement": {
3742
+ let a = Je(u.body, n("body"));
3743
+ return [c(["do", a]), u.body.type === "BlockStatement" ? " " : A, "while (", c([E([m, n("test")]), m]), ")", t.semi ? ";" : ""];
3744
+ }
3745
+ case "DoExpression":
3746
+ return [u.async ? "async " : "", "do ", n("body")];
3747
+ case "BreakStatement":
3748
+ case "ContinueStatement":
3749
+ return [u.type === "BreakStatement" ? "break" : "continue", u.label ? [" ", n("label")] : "", t.semi ? ";" : ""];
3750
+ case "LabeledStatement":
3751
+ return [n("label"), `:${u.body.type === "EmptyStatement" && !g(u.body, b.Leading) ? "" : " "}`, n("body")];
3752
+ case "TryStatement":
3753
+ return ["try ", n("block"), u.handler ? [" ", n("handler")] : "", u.finalizer ? [" finally ", n("finalizer")] : ""];
3754
+ case "CatchClause":
3755
+ if (u.param) {
3756
+ let a = g(u.param, (o) => !he(o) || o.leading && oe(t.originalText, N(o)) || o.trailing && oe(t.originalText, j(o), { backwards: !0 })), s = n("param");
3757
+ return ["catch ", a ? ["(", E([m, s]), m, ") "] : ["(", s, ") "], n("body")];
3758
+ }
3759
+ return ["catch ", n("body")];
3760
+ case "SwitchStatement":
3761
+ return [c(["switch (", E([m, n("discriminant")]), m, ")"]), " {", u.cases.length > 0 ? E([A, M(A, e.map(({ node: a, isLast: s }) => [n(), !s && ke(a, t) ? A : ""], "cases"))]) : "", A, "}"];
3762
+ case "SwitchCase": {
3763
+ let a = [];
3764
+ u.test ? a.push("case ", n("test"), ":") : a.push("default:"), g(u, b.Dangling) && a.push(" ", X(e, t));
3765
+ let s = u.consequent.filter((o) => o.type !== "EmptyStatement");
3766
+ if (s.length > 0) {
3767
+ let o = On(e, t, n, "consequent");
3768
+ a.push(s.length === 1 && s[0].type === "BlockStatement" ? [" ", o] : E([A, o]));
3769
+ }
3770
+ return a;
3771
+ }
3772
+ case "DebuggerStatement":
3773
+ return ["debugger", t.semi ? ";" : ""];
3774
+ case "ClassDeclaration":
3775
+ case "ClassExpression":
3776
+ return fr(e, t, n);
3777
+ case "ClassMethod":
3778
+ case "ClassPrivateMethod":
3779
+ case "MethodDefinition":
3780
+ return wa(e, t, n);
3781
+ case "ClassProperty":
3782
+ case "PropertyDefinition":
3783
+ case "ClassPrivateProperty":
3784
+ case "ClassAccessorProperty":
3785
+ case "AccessorProperty":
3786
+ return Ia(e, t, n);
3787
+ case "TemplateElement":
3788
+ return ze(u.value.raw);
3789
+ case "TemplateLiteral":
3790
+ return Wu(e, t, n);
3791
+ case "TaggedTemplateExpression":
3792
+ return Zi(e, t, n);
3793
+ case "PrivateIdentifier":
3794
+ return ["#", u.name];
3795
+ case "PrivateName":
3796
+ return ["#", n("id")];
3797
+ case "TopicReference":
3798
+ return "%";
3799
+ case "ArgumentPlaceholder":
3800
+ return "?";
3801
+ case "ModuleExpression":
3802
+ return ["module ", n("body")];
3803
+ case "VoidPattern":
3804
+ return "void";
3805
+ case "EmptyStatement":
3806
+ if (Vn(e)) return ";";
3807
+ default:
3808
+ throw new At(u, "ESTree");
3809
+ }
3810
+ }
3811
+ function _a(e) {
3812
+ return [e("elementType"), "[]"];
3813
+ }
3814
+ var bD = w(["SatisfiesExpression", "TSSatisfiesExpression"]);
3815
+ function Wa(e, t, n) {
3816
+ let { parent: r, node: u, key: a } = e, s = u.type === "AsConstExpression" ? "const" : n("typeAnnotation"), o = [n("expression"), " ", bD(u) ? "satisfies" : "as", " ", s];
3817
+ return a === "callee" && L(r) || a === "object" && R(r) ? c([E([m, ...o]), m]) : o;
3818
+ }
3819
+ function BD(e, t, n) {
3820
+ let { node: r } = e, u = [De(e), "component"];
3821
+ r.id && u.push(" ", n("id")), u.push(n("typeParameters"));
3822
+ let a = vD(e, t, n);
3823
+ return r.rendersType ? u.push(c([a, " ", n("rendersType")])) : u.push(c([a])), r.body && u.push(" ", n("body")), t.semi && r.type === "DeclareComponent" && u.push(";"), u;
3824
+ }
3825
+ function vD(e, t, n) {
3826
+ let { node: r } = e, u = r.params;
3827
+ if (r.rest && (u = [...u, r.rest]), u.length === 0) return ["(", X(e, t, { filter: (s) => ge(t.originalText, N(s)) === ")" }), ")"];
3828
+ let a = [];
3829
+ return kD(e, (s, o) => {
3830
+ let p = o === u.length - 1;
3831
+ p && r.rest && a.push("..."), a.push(n()), !p && (a.push(","), ke(u[o], t) ? a.push(A, A) : a.push(x));
3832
+ }), ["(", E([m, ...a]), k(Pe(t, "all") && !PD(r, u) ? "," : ""), m, ")"];
3833
+ }
3834
+ function PD(e, t) {
3835
+ return e.rest || O(0, t, -1)?.type === "RestElement";
3836
+ }
3837
+ function kD(e, t) {
3838
+ let { node: n } = e, r = 0, u = (a) => t(a, r++);
3839
+ e.each(u, "params"), n.rest && e.call(u, "rest");
3840
+ }
3841
+ function wD(e, t, n) {
3842
+ let { node: r } = e;
3843
+ return r.shorthand ? n("local") : [n("name"), " as ", n("local")];
3844
+ }
3845
+ function ID(e, t, n) {
3846
+ let { node: r } = e, u = [];
3847
+ return r.name && u.push(n("name"), r.optional ? "?: " : ": "), u.push(n("typeAnnotation")), u;
3848
+ }
3849
+ function Ua(e, t, n) {
3850
+ return mr(e, t, n);
3851
+ }
3852
+ function ND(e, t, n) {
3853
+ let { node: r } = e;
3854
+ return [r.type === "EnumSymbolBody" || r.explicitType ? `of ${r.type.slice(4, -4).toLowerCase()} ` : "", Ua(e, t, n)];
3855
+ }
3856
+ function $a(e, t) {
3857
+ let { node: n } = e, r = t("id");
3858
+ n.computed && (r = ["[", r, "]"]);
3859
+ let u = "";
3860
+ return n.initializer && (u = t("initializer")), n.init && (u = t("init")), u ? [r, " = ", u] : r;
3861
+ }
3862
+ function Ga(e, t) {
3863
+ let { node: n } = e;
3864
+ return [De(e), n.const ? "const " : "", "enum ", t("id"), " ", t("body")];
3865
+ }
3866
+ function Va(e, t, n) {
3867
+ let { node: r } = e, u = [sn(e)];
3868
+ (r.type === "TSConstructorType" || r.type === "TSConstructSignatureDeclaration") && u.push("new ");
3869
+ let a = ut(e, t, n, !1, !0), s = [];
3870
+ return r.type === "FunctionTypeAnnotation" ? s.push(jD(e) ? " => " : ": ", n("returnType")) : s.push(Z(e, n, "returnType")), Et(r, s) && (a = c(a)), u.push(a, s), [c(u), r.type === "TSConstructSignatureDeclaration" || r.type === "TSCallSignatureDeclaration" ? Ie(e, t) : ""];
3871
+ }
3872
+ function jD(e) {
3873
+ let { node: t, parent: n } = e;
3874
+ return t.type === "FunctionTypeAnnotation" && (Du(n) || !((n.type === "ObjectTypeProperty" || n.type === "ObjectTypeInternalSlot") && !n.variance && !n.optional && nn(n, t) || n.type === "ObjectTypeCallProperty" || e.getParentNode(2)?.type === "DeclareFunction"));
3875
+ }
3876
+ function MD(e, t, n) {
3877
+ let { node: r } = e, u = ["hook"];
3878
+ r.id && u.push(" ", n("id"));
3879
+ let a = ut(e, t, n, !1, !0), s = pn(e, n), o = Et(r, s);
3880
+ return u.push(c([o ? c(a) : a, s]), r.body ? " " : "", n("body")), u;
3881
+ }
3882
+ function LD(e, t, n) {
3883
+ let { node: r } = e, u = [De(e), "hook"];
3884
+ return r.id && u.push(" ", n("id")), t.semi && u.push(";"), u;
3885
+ }
3886
+ function Kr(e) {
3887
+ let { node: t } = e;
3888
+ return t.type === "HookTypeAnnotation" && e.getParentNode(2)?.type === "DeclareHook";
3889
+ }
3890
+ function OD(e, t, n) {
3891
+ let { node: r } = e, u = ut(e, t, n, !1, !0), a = [Kr(e) ? ": " : " => ", n("returnType")];
3892
+ return c([Kr(e) ? "" : "hook ", Et(r, a) ? c(u) : u, a]);
3893
+ }
3894
+ function Ka(e, t, n) {
3895
+ return [n("objectType"), ue(e), "[", n("indexType"), "]"];
3896
+ }
3897
+ function Ha(e, t, n) {
3898
+ return ["infer ", n("typeParameter")];
3899
+ }
3900
+ function za(e, t, n) {
3901
+ let r = !1;
3902
+ return c(e.map(({ isFirst: u, previous: a, node: s, index: o }) => {
3903
+ let p = n();
3904
+ if (u) return p;
3905
+ let l = Xe(s), y = Xe(a);
3906
+ return y && l ? [" & ", r ? E(p) : p] : !y && !l || Ee(t.originalText, s) ? t.experimentalOperatorPosition === "start" ? E([x, "& ", p]) : E([" &", x, p]) : (o > 1 && (r = !0), [" & ", o > 1 ? E(p) : p]);
3907
+ }, "types"));
3908
+ }
3909
+ function JD(e) {
3910
+ switch (e) {
3911
+ case null:
3912
+ return "";
3913
+ case "PlusOptional":
3914
+ return "+?";
3915
+ case "MinusOptional":
3916
+ return "-?";
3917
+ case "Optional":
3918
+ return "?";
3919
+ }
3920
+ }
3921
+ function qD(e, t, n) {
3922
+ let { node: r } = e;
3923
+ return [c([r.variance ? n("variance") : "", "[", E([n("keyTparam"), " in ", n("sourceType")]), "]", JD(r.optional), ": ", n("propType")]), Ie(e, t)];
3924
+ }
3925
+ function Hr(e, t) {
3926
+ return e === "+" || e === "-" ? e + t : t;
3927
+ }
3928
+ function XD(e, t, n) {
3929
+ let { node: r } = e, u = !1;
3930
+ if (t.objectWrap === "preserve") {
3931
+ let a = j(r), s = ln(t, a + 1, j(r.key)), o = a + 1 + s.search(/\S/u);
3932
+ ce(t.originalText, a, o) && (u = !0);
3933
+ }
3934
+ return c(["{", E([t.bracketSpacing ? x : m, g(r, b.Dangling) ? c([X(e, t), A]) : "", c([r.readonly ? [Hr(r.readonly, "readonly"), " "] : "", "[", n("key"), " in ", n("constraint"), r.nameType ? [" as ", n("nameType")] : "", "]", r.optional ? Hr(r.optional, "?") : "", r.typeAnnotation ? ": " : "", n("typeAnnotation")]), t.semi ? k(";") : ""]), t.bracketSpacing ? x : m, "}"], { shouldBreak: u });
3935
+ }
3936
+ function RD(e, t, n) {
3937
+ let { node: r } = e;
3938
+ return [c(["match (", E([m, n("argument")]), m, ")"]), " {", r.cases.length > 0 ? E([A, M(A, e.map(({ node: u, isLast: a }) => [n(), !a && ke(u, t) ? A : ""], "cases"))]) : "", A, "}"];
3939
+ }
3940
+ function _D(e, t, n) {
3941
+ let { node: r } = e, u = g(r, b.Dangling) ? [" ", X(e, t)] : [], a = r.type === "MatchStatementCase" ? [" ", n("body")] : E([x, n("body"), ","]);
3942
+ return [n("pattern"), r.guard ? c([E([x, "if (", n("guard"), ")"])]) : "", c([" =>", u, a])];
3943
+ }
3944
+ function WD(e, t, n) {
3945
+ let { node: r } = e;
3946
+ switch (r.type) {
3947
+ case "MatchOrPattern":
3948
+ return GD(e, t, n);
3949
+ case "MatchAsPattern":
3950
+ return [n("pattern"), " as ", n("target")];
3951
+ case "MatchWildcardPattern":
3952
+ return ["_"];
3953
+ case "MatchLiteralPattern":
3954
+ return n("literal");
3955
+ case "MatchUnaryPattern":
3956
+ return [r.operator, n("argument")];
3957
+ case "MatchIdentifierPattern":
3958
+ return n("id");
3959
+ case "MatchMemberPattern": {
3960
+ let u = r.property.type === "Identifier" ? [".", n("property")] : ["[", E([m, n("property")]), m, "]"];
3961
+ return c([n("base"), u]);
3962
+ }
3963
+ case "MatchBindingPattern":
3964
+ return [r.kind, " ", n("id")];
3965
+ case "MatchObjectPattern": {
3966
+ let u = e.map(n, "properties");
3967
+ return r.rest && u.push(n("rest")), c(["{", E([m, M([",", x], u)]), r.rest ? "" : k(","), m, "}"]);
3968
+ }
3969
+ case "MatchArrayPattern": {
3970
+ let u = e.map(n, "elements");
3971
+ return r.rest && u.push(n("rest")), c(["[", E([m, M([",", x], u)]), r.rest ? "" : k(","), m, "]"]);
3972
+ }
3973
+ case "MatchObjectPatternProperty":
3974
+ return r.shorthand ? n("pattern") : c([n("key"), ":", E([x, n("pattern")])]);
3975
+ case "MatchRestPattern": {
3976
+ let u = ["..."];
3977
+ return r.argument && u.push(n("argument")), u;
3978
+ }
3979
+ }
3980
+ }
3981
+ var Ya = w(["MatchWildcardPattern", "MatchLiteralPattern", "MatchUnaryPattern", "MatchIdentifierPattern"]);
3982
+ function UD(e) {
3983
+ let { patterns: t } = e;
3984
+ if (t.some((r) => g(r))) return !1;
3985
+ let n = t.find((r) => r.type === "MatchObjectPattern");
3986
+ return n ? t.every((r) => r === n || Ya(r)) : !1;
3987
+ }
3988
+ function $D(e) {
3989
+ return Ya(e) || e.type === "MatchObjectPattern" ? !0 : e.type === "MatchOrPattern" ? UD(e) : !1;
3990
+ }
3991
+ function GD(e, t, n) {
3992
+ let { node: r } = e, { parent: u } = e, a = u.type !== "MatchStatementCase" && u.type !== "MatchExpressionCase" && u.type !== "MatchArrayPattern" && u.type !== "MatchObjectPatternProperty" && !Ee(t.originalText, r), s = $D(r), o = e.map(() => {
3993
+ let l = n();
3994
+ return s || (l = Ce(2, l)), de(e, l, t);
3995
+ }, "patterns");
3996
+ if (s) return M(" | ", o);
3997
+ let p = [k(["| "]), M([x, "| "], o)];
3998
+ return Ge(e, t) ? c([E([k([m]), p]), m]) : u.type === "MatchArrayPattern" && u.elements.length > 1 ? c([E([k(["(", m]), p]), m, k(")")]) : c(a ? E(p) : p);
3999
+ }
4000
+ function VD(e, t, n) {
4001
+ let { node: r } = e, u = [De(e), "opaque type ", n("id"), n("typeParameters")];
4002
+ if (r.supertype && u.push(": ", n("supertype")), r.lowerBound || r.upperBound) {
4003
+ let a = [];
4004
+ r.lowerBound && a.push(E([x, "super ", n("lowerBound")])), r.upperBound && a.push(E([x, "extends ", n("upperBound")])), u.push(c(a));
4005
+ }
4006
+ return r.impltype && u.push(" = ", n("impltype")), u.push(t.semi ? ";" : ""), u;
4007
+ }
4008
+ function Qa(e, t, n) {
4009
+ let { node: r } = e;
4010
+ return ["...", ...r.type === "TupleTypeSpreadElement" && r.label ? [n("label"), ": "] : [], n("typeAnnotation")];
4011
+ }
4012
+ function Za(e, t, n) {
4013
+ let { node: r } = e;
4014
+ return [r.variance ? n("variance") : "", n("label"), r.optional ? "?" : "", ": ", n("elementType")];
4015
+ }
4016
+ function es(e, t, n) {
4017
+ let { node: r } = e, u = [De(e), "type ", n("id"), n("typeParameters")], a = r.type === "TSTypeAliasDeclaration" ? "typeAnnotation" : "right";
4018
+ return [qt(e, t, n, u, " =", a), t.semi ? ";" : ""];
4019
+ }
4020
+ function KD(e, t, n) {
4021
+ let { node: r } = e;
4022
+ return te(r).length === 1 && r.type.startsWith("TS") && !r[n][0].constraint && e.parent.type === "ArrowFunctionExpression" && !(t.filepath && /\.ts$/u.test(t.filepath));
4023
+ }
4024
+ function Pt(e, t, n, r) {
4025
+ let { node: u } = e;
4026
+ if (!u[r]) return "";
4027
+ if (!Array.isArray(u[r])) return n(r);
4028
+ let a = rn(e.grandparent), s = e.match((p) => !(p[r].length === 1 && Xe(p[r][0])), void 0, (p, l) => l === "typeAnnotation", (p) => p.type === "Identifier", ca);
4029
+ if (u[r].length === 0 || !s && (a || u[r].length === 1 && (u[r][0].type === "NullableTypeAnnotation" || ml(u[r][0])))) return ["<", M(", ", e.map(n, r)), HD(e, t), ">"];
4030
+ let o = u.type === "TSTypeParameterInstantiation" ? "" : KD(e, t, r) ? "," : Pe(t) ? k(",") : "";
4031
+ return c(["<", E([m, M([",", x], e.map(n, r))]), o, m, ">"]);
4032
+ }
4033
+ function HD(e, t) {
4034
+ let { node: n } = e;
4035
+ if (!g(n, b.Dangling)) return "";
4036
+ let r = !g(n, b.Line), u = X(e, t, { indent: !r });
4037
+ return r ? u : [u, A];
4038
+ }
4039
+ function ts(e, t, n) {
4040
+ let { node: r } = e, u = [r.const ? "const " : ""], a = r.type === "TSTypeParameter" ? n("name") : r.name;
4041
+ if (r.variance && u.push(n("variance")), r.in && u.push("in "), r.out && u.push("out "), u.push(a), r.bound && (r.usesExtendsBound && u.push(" extends "), u.push(Z(e, n, "bound"))), r.constraint) {
4042
+ let s = /* @__PURE__ */ Symbol("constraint");
4043
+ u.push(" extends", c(E(x), { id: s }), ve, It(n("constraint"), { groupId: s }));
4044
+ }
4045
+ if (r.default) {
4046
+ let s = /* @__PURE__ */ Symbol("default");
4047
+ u.push(" =", c(E(x), { id: s }), ve, It(n("default"), { groupId: s }));
4048
+ }
4049
+ return c(u);
4050
+ }
4051
+ function ns(e, t) {
4052
+ let { node: n } = e;
4053
+ return [n.type === "TSTypePredicate" && n.asserts ? "asserts " : n.type === "TypePredicate" && n.kind ? `${n.kind} ` : "", t("parameterName"), n.typeAnnotation ? [" is ", Z(e, t)] : ""];
4054
+ }
4055
+ function rs({ node: e }, t) {
4056
+ let n = e.type === "TSTypeQuery" ? "exprName" : "argument";
4057
+ return ["typeof ", t(n), t("typeArguments")];
4058
+ }
4059
+ function zD(e, t, n) {
4060
+ let { node: r } = e;
4061
+ if (ou(r)) return r.type.slice(0, -14).toLowerCase();
4062
+ switch (r.type) {
4063
+ case "ComponentDeclaration":
4064
+ case "DeclareComponent":
4065
+ case "ComponentTypeAnnotation":
4066
+ return BD(e, t, n);
4067
+ case "ComponentParameter":
4068
+ return wD(e, t, n);
4069
+ case "ComponentTypeParameter":
4070
+ return ID(e, t, n);
4071
+ case "HookDeclaration":
4072
+ return MD(e, t, n);
4073
+ case "DeclareHook":
4074
+ return LD(e, t, n);
4075
+ case "HookTypeAnnotation":
4076
+ return OD(e, t, n);
4077
+ case "DeclareFunction":
4078
+ return [De(e), "function ", n("id"), n("predicate"), t.semi ? ";" : ""];
4079
+ case "DeclareModule":
4080
+ return ["declare module ", n("id"), " ", n("body")];
4081
+ case "DeclareModuleExports":
4082
+ return ["declare module.exports", Z(e, n), t.semi ? ";" : ""];
4083
+ case "DeclareNamespace":
4084
+ return ["declare namespace ", n("id"), " ", n("body")];
4085
+ case "DeclareVariable":
4086
+ return [De(e), r.kind ?? "var", " ", n("id"), t.semi ? ";" : ""];
4087
+ case "DeclareExportDeclaration":
4088
+ case "DeclareExportAllDeclaration":
4089
+ return La(e, t, n);
4090
+ case "DeclareOpaqueType":
4091
+ case "OpaqueType":
4092
+ return VD(e, t, n);
4093
+ case "DeclareTypeAlias":
4094
+ case "TypeAlias":
4095
+ return es(e, t, n);
4096
+ case "IntersectionTypeAnnotation":
4097
+ return za(e, t, n);
4098
+ case "UnionTypeAnnotation":
4099
+ return ea(e, t, n);
4100
+ case "ConditionalTypeAnnotation":
4101
+ return Er(e, t, n);
4102
+ case "InferTypeAnnotation":
4103
+ return Ha(e, t, n);
4104
+ case "FunctionTypeAnnotation":
4105
+ return Va(e, t, n);
4106
+ case "TupleTypeAnnotation":
4107
+ return lr(e, t, n);
4108
+ case "TupleTypeLabeledElement":
4109
+ return Za(e, t, n);
4110
+ case "TupleTypeSpreadElement":
4111
+ return Qa(e, t, n);
4112
+ case "GenericTypeAnnotation":
4113
+ return [n("id"), Pt(e, t, n, "typeParameters")];
4114
+ case "IndexedAccessType":
4115
+ case "OptionalIndexedAccessType":
4116
+ return Ka(e, t, n);
4117
+ case "TypeAnnotation":
4118
+ return ra(e, t, n);
4119
+ case "TypeParameter":
4120
+ return ts(e, t, n);
4121
+ case "TypeofTypeAnnotation":
4122
+ return rs(e, n);
4123
+ case "ExistsTypeAnnotation":
4124
+ return "*";
4125
+ case "ArrayTypeAnnotation":
4126
+ return _a(n);
4127
+ case "DeclareEnum":
4128
+ case "EnumDeclaration":
4129
+ return Ga(e, n);
4130
+ case "EnumBooleanBody":
4131
+ case "EnumNumberBody":
4132
+ case "EnumBigIntBody":
4133
+ case "EnumStringBody":
4134
+ case "EnumSymbolBody":
4135
+ return ND(e, t, n);
4136
+ case "EnumBooleanMember":
4137
+ case "EnumNumberMember":
4138
+ case "EnumBigIntMember":
4139
+ case "EnumStringMember":
4140
+ case "EnumDefaultedMember":
4141
+ return $a(e, n);
4142
+ case "FunctionTypeParam": {
4143
+ let u = r.name ? n("name") : e.parent.this === r ? "this" : "";
4144
+ return [u, ue(e), u ? ": " : "", n("typeAnnotation")];
4145
+ }
4146
+ case "DeclareClass":
4147
+ case "DeclareInterface":
4148
+ case "InterfaceDeclaration":
4149
+ case "InterfaceTypeAnnotation":
4150
+ return fr(e, t, n);
4151
+ case "ObjectTypeAnnotation":
4152
+ return dr(e, t, n);
4153
+ case "ClassImplements":
4154
+ case "InterfaceExtends":
4155
+ return [n("id"), n("typeParameters")];
4156
+ case "NullableTypeAnnotation":
4157
+ return ["?", n("typeAnnotation")];
4158
+ case "Variance": {
4159
+ let { kind: u } = r;
4160
+ return u === "plus" ? "+" : "-";
4161
+ }
4162
+ case "KeyofTypeAnnotation":
4163
+ return ["keyof ", n("argument")];
4164
+ case "ObjectTypeCallProperty":
4165
+ return [r.static ? "static " : "", n("value"), Ie(e, t)];
4166
+ case "ObjectTypeMappedTypeProperty":
4167
+ return qD(e, t, n);
4168
+ case "ObjectTypeIndexer":
4169
+ return [r.static ? "static " : "", r.variance ? n("variance") : "", "[", n("id"), r.id ? ": " : "", n("key"), "]: ", n("value"), Ie(e, t)];
4170
+ case "ObjectTypeProperty": {
4171
+ let u = "";
4172
+ return r.proto ? u = "proto " : r.static && (u = "static "), [u, r.kind !== "init" ? r.kind + " " : "", r.variance ? n("variance") : "", Xt(e, t, n), ue(e), Lt(r) ? "" : ": ", n("value"), Ie(e, t)];
4173
+ }
4174
+ case "ObjectTypeInternalSlot":
4175
+ return [r.static ? "static " : "", "[[", n("id"), "]]", ue(e), r.method ? "" : ": ", n("value"), Ie(e, t)];
4176
+ case "ObjectTypeSpreadProperty":
4177
+ return qn(e, n);
4178
+ case "QualifiedTypeofIdentifier":
4179
+ case "QualifiedTypeIdentifier":
4180
+ return [n("qualification"), ".", n("id")];
4181
+ case "NullLiteralTypeAnnotation":
4182
+ return "null";
4183
+ case "BooleanLiteralTypeAnnotation":
4184
+ return String(r.value);
4185
+ case "StringLiteralTypeAnnotation":
4186
+ return ze(ct(ie(r), t));
4187
+ case "NumberLiteralTypeAnnotation":
4188
+ return dt(ie(r));
4189
+ case "BigIntLiteralTypeAnnotation":
4190
+ return Jn(ie(r));
4191
+ case "TypeCastExpression":
4192
+ return ["(", n("expression"), Z(e, n), ")"];
4193
+ case "TypePredicate":
4194
+ return ns(e, n);
4195
+ case "TypeOperator":
4196
+ return [r.operator, " ", n("typeAnnotation")];
4197
+ case "TypeParameterDeclaration":
4198
+ case "TypeParameterInstantiation":
4199
+ return Pt(e, t, n, "params");
4200
+ case "InferredPredicate":
4201
+ case "DeclaredPredicate":
4202
+ return [e.key === "predicate" && e.parent.type !== "DeclareFunction" && !e.parent.returnType ? ": " : " ", "%checks", ...r.type === "DeclaredPredicate" ? ["(", n("value"), ")"] : []];
4203
+ case "AsExpression":
4204
+ case "AsConstExpression":
4205
+ case "SatisfiesExpression":
4206
+ return Wa(e, t, n);
4207
+ case "MatchExpression":
4208
+ case "MatchStatement":
4209
+ return RD(e, t, n);
4210
+ case "MatchExpressionCase":
4211
+ case "MatchStatementCase":
4212
+ return _D(e, t, n);
4213
+ case "MatchOrPattern":
4214
+ case "MatchAsPattern":
4215
+ case "MatchWildcardPattern":
4216
+ case "MatchLiteralPattern":
4217
+ case "MatchUnaryPattern":
4218
+ case "MatchIdentifierPattern":
4219
+ case "MatchMemberPattern":
4220
+ case "MatchBindingPattern":
4221
+ case "MatchObjectPattern":
4222
+ case "MatchObjectPatternProperty":
4223
+ case "MatchRestPattern":
4224
+ case "MatchArrayPattern":
4225
+ return WD(e, t, n);
4226
+ }
4227
+ }
4228
+ function YD(e, t, n) {
4229
+ let { node: r } = e, u = r.parameters.length > 1 ? k(Pe(t) ? "," : "") : "", a = c([E([m, M([", ", m], e.map(n, "parameters"))]), u, m]);
4230
+ return [e.key === "body" && e.parent.type === "ClassBody" && r.static ? "static " : "", r.readonly ? "readonly " : "", "[", r.parameters ? a : "", "]", Z(e, n), Ie(e, t)];
4231
+ }
4232
+ function zr(e, t, n) {
4233
+ let { node: r } = e;
4234
+ return [r.postfix ? "" : n, Z(e, t), r.postfix ? n : ""];
4235
+ }
4236
+ function QD(e, t, n) {
4237
+ let { node: r } = e, u = [], a = r.kind && r.kind !== "method" ? `${r.kind} ` : "";
4238
+ u.push(on(r), a, r.computed ? "[" : "", n("key"), r.computed ? "]" : "", ue(e));
4239
+ let s = ut(e, t, n, !1, !0), o = Z(e, n, "returnType"), p = Et(r, o);
4240
+ return u.push(p ? c(s) : s), r.returnType && u.push(c(o)), [c(u), Ie(e, t)];
4241
+ }
4242
+ function ZD(e, t, n) {
4243
+ let { node: r } = e;
4244
+ return [De(e), r.kind === "global" ? "" : `${r.kind} `, n("id"), r.body ? [" ", c(n("body"))] : t.semi ? ";" : ""];
4245
+ }
4246
+ function ey(e, t, n) {
4247
+ let { node: r } = e, u = !(ee(r.expression) || Ae(r.expression)), a = c(["<", E([m, n("typeAnnotation")]), m, ">"]), s = [k("("), E([m, n("expression")]), m, k(")")];
4248
+ return u ? Ke([[a, n("expression")], [a, c(s, { shouldBreak: !0 })], [a, n("expression")]]) : c([a, n("expression")]);
4249
+ }
4250
+ function ty(e, t, n) {
4251
+ let { node: r } = e;
4252
+ if (r.type.startsWith("TS")) {
4253
+ if (iu(r)) return r.type.slice(2, -7).toLowerCase();
4254
+ switch (r.type) {
4255
+ case "TSThisType":
4256
+ return "this";
4257
+ case "TSTypeAssertion":
4258
+ return ey(e, t, n);
4259
+ case "TSDeclareFunction":
4260
+ return da(e, t, n);
4261
+ case "TSExportAssignment":
4262
+ return ["export = ", n("expression"), t.semi ? ";" : ""];
4263
+ case "TSModuleBlock":
4264
+ return Sa(e, t, n);
4265
+ case "TSInterfaceBody":
4266
+ case "TSTypeLiteral":
4267
+ return dr(e, t, n);
4268
+ case "TSTypeAliasDeclaration":
4269
+ return es(e, t, n);
4270
+ case "TSQualifiedName":
4271
+ return [n("left"), ".", n("right")];
4272
+ case "TSAbstractMethodDefinition":
4273
+ case "TSDeclareMethod":
4274
+ return wa(e, t, n);
4275
+ case "TSAbstractAccessorProperty":
4276
+ case "TSAbstractPropertyDefinition":
4277
+ return Ia(e, t, n);
4278
+ case "TSInterfaceHeritage":
4279
+ case "TSClassImplements":
4280
+ case "TSInstantiationExpression":
4281
+ return [n("expression"), n("typeArguments")];
4282
+ case "TSTemplateLiteralType":
4283
+ return Wu(e, t, n);
4284
+ case "TSNamedTupleMember":
4285
+ return Za(e, t, n);
4286
+ case "TSRestType":
4287
+ return Qa(e, t, n);
4288
+ case "TSOptionalType":
4289
+ return [n("typeAnnotation"), "?"];
4290
+ case "TSInterfaceDeclaration":
4291
+ return fr(e, t, n);
4292
+ case "TSTypeParameterDeclaration":
4293
+ case "TSTypeParameterInstantiation":
4294
+ return Pt(e, t, n, "params");
4295
+ case "TSTypeParameter":
4296
+ return ts(e, t, n);
4297
+ case "TSAsExpression":
4298
+ case "TSSatisfiesExpression":
4299
+ return Wa(e, t, n);
4300
+ case "TSArrayType":
4301
+ return _a(n);
4302
+ case "TSPropertySignature":
4303
+ return [r.readonly ? "readonly " : "", Xt(e, t, n), ue(e), Z(e, n), Ie(e, t)];
4304
+ case "TSParameterProperty":
4305
+ return [on(r), r.static ? "static " : "", r.override ? "override " : "", r.readonly ? "readonly " : "", n("parameter")];
4306
+ case "TSTypeQuery":
4307
+ return rs(e, n);
4308
+ case "TSIndexSignature":
4309
+ return YD(e, t, n);
4310
+ case "TSTypePredicate":
4311
+ return ns(e, n);
4312
+ case "TSNonNullExpression":
4313
+ return [n("expression"), "!"];
4314
+ case "TSImportType":
4315
+ return [tn(e, t, n), r.qualifier ? [".", n("qualifier")] : "", Pt(e, t, n, "typeArguments")];
4316
+ case "TSLiteralType":
4317
+ return n("literal");
4318
+ case "TSIndexedAccessType":
4319
+ return Ka(e, t, n);
4320
+ case "TSTypeOperator":
4321
+ return [r.operator, " ", n("typeAnnotation")];
4322
+ case "TSMappedType":
4323
+ return XD(e, t, n);
4324
+ case "TSMethodSignature":
4325
+ return QD(e, t, n);
4326
+ case "TSNamespaceExportDeclaration":
4327
+ return ["export as namespace ", n("id"), t.semi ? ";" : ""];
4328
+ case "TSEnumDeclaration":
4329
+ return Ga(e, n);
4330
+ case "TSEnumBody":
4331
+ return Ua(e, t, n);
4332
+ case "TSEnumMember":
4333
+ return $a(e, n);
4334
+ case "TSImportEqualsDeclaration":
4335
+ return ["import ", Oa(r, !1), n("id"), " = ", n("moduleReference"), t.semi ? ";" : ""];
4336
+ case "TSExternalModuleReference":
4337
+ return tn(e, t, n);
4338
+ case "TSModuleDeclaration":
4339
+ return ZD(e, t, n);
4340
+ case "TSConditionalType":
4341
+ return Er(e, t, n);
4342
+ case "TSInferType":
4343
+ return Ha(e, t, n);
4344
+ case "TSIntersectionType":
4345
+ return za(e, t, n);
4346
+ case "TSUnionType":
4347
+ return ea(e, t, n);
4348
+ case "TSFunctionType":
4349
+ case "TSCallSignatureDeclaration":
4350
+ case "TSConstructorType":
4351
+ case "TSConstructSignatureDeclaration":
4352
+ return Va(e, t, n);
4353
+ case "TSTupleType":
4354
+ return lr(e, t, n);
4355
+ case "TSTypeReference":
4356
+ return [n("typeName"), Pt(e, t, n, "typeArguments")];
4357
+ case "TSTypeAnnotation":
4358
+ return ra(e, t, n);
4359
+ case "TSEmptyBodyFunctionExpression":
4360
+ return cr(e, t, n);
4361
+ case "TSJSDocAllType":
4362
+ return "*";
4363
+ case "TSJSDocUnknownType":
4364
+ return "?";
4365
+ case "TSJSDocNullableType":
4366
+ return zr(e, n, "?");
4367
+ case "TSJSDocNonNullableType":
4368
+ return zr(e, n, "!");
4369
+ default:
4370
+ throw new At(r, "TypeScript");
4371
+ }
4372
+ }
4373
+ }
4374
+ function ny(e, t, n, r) {
4375
+ for (let u of [Tc, Ac, zD, ty, SD]) {
4376
+ let a = u(e, t, n, r);
4377
+ if (a !== void 0) return a;
4378
+ }
4379
+ }
4380
+ var ry = w(["ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "ClassPrivateProperty", "MethodDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod"]);
4381
+ function uy(e, t, n, r) {
4382
+ e.isRoot && t.__onHtmlBindingRoot?.(e.node, t);
4383
+ let { node: u } = e, a = yr(e) ? t.originalText.slice(j(u), N(u)) : ny(e, t, n, r);
4384
+ if (!a) return "";
4385
+ if (ry(u)) return a;
4386
+ let s = _(u.decorators), o = Pc(e, t, n), p = u.type === "ClassExpression";
4387
+ if (s && !p) return Pn(a, (D) => c([o, D]));
4388
+ let l = Ge(e, t), y = Zl(e, t);
4389
+ return !o && !l && !y ? a : Pn(a, (D) => [y ? ";" : "", l ? "(" : "", l && p && s ? [E([x, o, D]), x] : [o, D], l ? ")" : ""]);
4390
+ }
4391
+ var Yr = uy, ay = { experimental_avoidAstMutation: !0 }, sy = [{ name: "JSON.stringify", type: "data", aceMode: "json", extensions: [".importmap"], filenames: ["package.json", "package-lock.json", "composer.json"], tmScope: "source.json", aliases: ["geojson", "jsonl", "sarif", "topojson"], codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json-stringify"], vscodeLanguageIds: ["json"], linguistLanguageId: 174 }, { name: "JSON", type: "data", aceMode: "json", extensions: [".json", ".4DForm", ".4DProject", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".JSON-tmLanguage", ".json.example", ".mcmeta", ".sarif", ".tact", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"], filenames: [".all-contributorsrc", ".arcconfig", ".auto-changelog", ".c8rc", ".htmlhintrc", ".imgbotconfig", ".nycrc", ".tern-config", ".tern-project", ".watchmanconfig", ".babelrc", ".jscsrc", ".jshintrc", ".jslintrc", ".swcrc"], tmScope: "source.json", aliases: ["geojson", "jsonl", "sarif", "topojson"], codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json"], vscodeLanguageIds: ["json"], linguistLanguageId: 174 }, { name: "JSON with Comments", type: "data", aceMode: "javascript", extensions: [".jsonc", ".code-snippets", ".code-workspace", ".sublime-build", ".sublime-color-scheme", ".sublime-commands", ".sublime-completions", ".sublime-keymap", ".sublime-macro", ".sublime-menu", ".sublime-mousemap", ".sublime-project", ".sublime-settings", ".sublime-theme", ".sublime-workspace", ".sublime_metrics", ".sublime_session"], filenames: [], tmScope: "source.json.comments", aliases: ["jsonc"], codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", group: "JSON", parsers: ["jsonc"], vscodeLanguageIds: ["jsonc"], linguistLanguageId: 423 }, { name: "JSON5", type: "data", aceMode: "json5", extensions: [".json5"], tmScope: "source.js", codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json5"], vscodeLanguageIds: ["json5"], linguistLanguageId: 175 }], us = {};
4392
+ Xn(us, { getVisitorKeys: () => py, massageAstNode: () => as, print: () => ly });
4393
+ var st = [[]], oy = { JsonRoot: ["node"], ArrayExpression: ["elements"], ObjectExpression: ["properties"], ObjectProperty: ["key", "value"], UnaryExpression: ["argument"], NullLiteral: st[0], BooleanLiteral: st[0], StringLiteral: st[0], NumericLiteral: st[0], Identifier: st[0], TemplateLiteral: ["quasis"], TemplateElement: st[0] }, iy = au(oy), py = iy;
4394
+ function ly(e, t, n) {
4395
+ let { node: r } = e;
4396
+ switch (r.type) {
4397
+ case "JsonRoot":
4398
+ return [n("node"), A];
4399
+ case "ArrayExpression": {
4400
+ if (r.elements.length === 0) return "[]";
4401
+ let u = e.map(() => e.node === null ? "null" : n(), "elements");
4402
+ return ["[", E([A, M([",", A], u)]), A, "]"];
4403
+ }
4404
+ case "ObjectExpression":
4405
+ return r.properties.length === 0 ? "{}" : ["{", E([A, M([",", A], e.map(n, "properties"))]), A, "}"];
4406
+ case "ObjectProperty":
4407
+ return [n("key"), ": ", n("value")];
4408
+ case "UnaryExpression":
4409
+ return [r.operator === "+" ? "" : r.operator, n("argument")];
4410
+ case "NullLiteral":
4411
+ return "null";
4412
+ case "BooleanLiteral":
4413
+ return r.value ? "true" : "false";
4414
+ case "StringLiteral":
4415
+ return JSON.stringify(r.value);
4416
+ case "NumericLiteral":
4417
+ return Qr(e) ? JSON.stringify(String(r.value)) : JSON.stringify(r.value);
4418
+ case "Identifier":
4419
+ return Qr(e) ? JSON.stringify(r.name) : r.name;
4420
+ case "TemplateLiteral":
4421
+ return n(["quasis", 0]);
4422
+ case "TemplateElement":
4423
+ return JSON.stringify(r.value.cooked);
4424
+ default:
4425
+ throw new At(r, "JSON");
4426
+ }
4427
+ }
4428
+ function Qr(e) {
4429
+ return e.key === "key" && e.parent.type === "ObjectProperty";
4430
+ }
4431
+ var cy = /* @__PURE__ */ new Set(["start", "end", "extra", "loc", "comments", "leadingComments", "trailingComments", "innerComments", "errors", "range", "tokens"]);
4432
+ function as(e, t) {
4433
+ let { type: n } = e;
4434
+ if (n === "ObjectProperty") {
4435
+ let { key: r } = e;
4436
+ r.type === "Identifier" ? t.key = { type: "StringLiteral", value: r.name } : r.type === "NumericLiteral" && (t.key = { type: "StringLiteral", value: String(r.value) });
4437
+ return;
4438
+ }
4439
+ if (n === "UnaryExpression" && e.operator === "+") return t.argument;
4440
+ if (n === "ArrayExpression") {
4441
+ for (let [r, u] of e.elements.entries()) u === null && t.elements.splice(r, 0, { type: "NullLiteral" });
4442
+ return;
4443
+ }
4444
+ if (n === "TemplateLiteral") return { type: "StringLiteral", value: e.quasis[0].value.cooked };
4445
+ }
4446
+ as.ignoredProperties = cy;
4447
+ var Tt = { bracketSpacing: { category: "Common", type: "boolean", default: !0, 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: !1, description: "Use single quotes instead of double quotes." }, bracketSameLine: { category: "Common", type: "boolean", default: !1, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: !1, description: "Enforce single attribute per line in HTML, Vue and JSX." } }, qe = "JavaScript", Dy = { arrowParens: { category: qe, 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: Tt.bracketSameLine, objectWrap: Tt.objectWrap, bracketSpacing: Tt.bracketSpacing, jsxBracketSameLine: { category: qe, type: "boolean", description: "Put > on the last line instead of at a new line.", deprecated: "2.4.0" }, semi: { category: qe, type: "boolean", default: !0, description: "Print semicolons.", oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them." }, experimentalOperatorPosition: { category: qe, 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: qe, type: "boolean", default: !1, 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: Tt.singleQuote, jsxSingleQuote: { category: qe, type: "boolean", default: !1, description: "Use single quotes in JSX." }, quoteProps: { category: qe, 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: qe, 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: Tt.singleAttributePerLine }, yy = Dy, dy = { estree: Zr, "estree-json": us }, fy = [...Ds, ...sy];
4448
+ export {
4449
+ cs as default,
4450
+ fy as languages,
4451
+ yy as options,
4452
+ dy as printers
4453
+ };