All files / prettier/plugins estree.mjs

94.1% Statements 11964/12713
95.96% Branches 5974/6225
96.29% Functions 624/648
94.1% Lines 11964/12713

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714256x 256x 768x 768x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 6249222x 6249222x 6249222x 256x 256x 256x 256x 256x 256x 256x 256x 14336x 14336x 14336x             14336x 14336x 256x 256x 256x 256x 289514x     289514x 289514x 256x 256x 256x 217584x 217584x 217584x 256x 217584x 217584x 217584x 256x 256x 256x 256x 256x 86250x 86250x 52825x 52825x 33425x 86250x 12x 12x 33425x 86250x 44x 44x 33425x 33425x 86250x 16373x 16373x 16373x 16373x 16373x 16373x 16373x 12x 12x 16373x 16373x 44x 44x 16373x 12091x 12091x 44x 44x 12047x 12047x 12047x 12047x 12047x 12047x 12091x 12091x 256x 256x 256x 256x 256x 2348x 2348x     2348x 438x 438x 2348x 1654x 1654x 256x 2348x 256x 256x 35750x 35750x 35750x 256x 256x 256x 256x 256x 300665x 300665x 300665x     300665x 300665x 256x 256x 160414x 160414x 160414x     160414x 160414x 184x 184x 160230x 160414x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 14531x 14531x 14531x 14531x 256x 256x 256x 256x 256x 256x 1298x 128x 128x 1170x 1170x 1170x 1298x 59x 59x 1298x 16x 16x 1298x 72x 72x 1023x 256x 270156x 270156x 270156x 270156x 270156x 2233x 2233x 270156x 3740x 3740x 270156x 62968x 62968x 270156x 270156x 256x 256x 2532x 2532x 2532x 2532x 1327x 1327x 1327x 1327x 2027x 2027x 2027x 256x 256x 87322x 87322x 87322x 256x 256x 88x 88x 88x 88x 21582x 21582x 21582x 42853x 42853x 42853x 4649x 4649x 4649x 4649x 91638x 91638x 91638x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 2932x 2932x 855x 855x 2077x 2077x 2077x 2932x 2932x 2932x 750x 750x 2932x 11x 11x 1316x 1316x 1316x 2932x   2932x 2932x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 138515x 256x 256x 137300x 137300x 256x 256x 256x 139133x 139133x 1043x 1043x 139133x 812x 812x 139133x 36x 36x 139133x 38x 38x 137204x 139133x 256x 256x 256x 7231x 7231x 7231x 7231x 7231x 7231x 90x 90x 7231x 7231x 7231x 7231x 7231x 7231x 7231x 7231x 3652x 3652x 3652x 3652x 3652x 2022x 2022x 2022x 2022x 15x 15x 2022x 2022x 1557x 1557x 1557x 1557x 1557x 256x 256x 1024x 1024x 730955x 730955x     730955x 730955x 730955x 1275738x 1275738x 224965x 8332x 8332x 1275738x 722280x 722280x 1275738x 1275738x 730955x 343x 343x   1024x 1024x 256x 256x 256x 256x 256x 256x 306887x 306887x     306887x 2471x 37722x 2471x 2471x 37722x   304416x 306887x 256x 256x 256x 256x 370228x 370228x 370228x     370228x 370228x 3753x     3753x 1370x 1370x 370228x 366475x     366475x 172173x 172173x 366475x 196685x 370228x 256x 256x 256x 207524x 207524x     207524x 8332x 8332x 199192x 207524x 256x 256x 256x 24093x 24093x 24093x 24093x 53097x 53097x 53097x 53097x 53097x 53097x 24093x 24093x 256x 256x 256x 18183x 18183x 18183x 18183x 256x 256x 256x 161371x 161371x 161371x 161371x 161371x 161371x 161371x 161371x 161371x 256x 256x 256x 50174x 50174x 220551x 25201x 25201x 220551x 24973x 50174x 256x 256x 256x 256x 158934x 158934x 117771x 117771x 41163x 158934x 513x 513x 110x 110x 158934x 33x 40650x 40617x 40617x 41163x 41163x 158934x 32370x 32370x 32370x 513x 513x 110x 110x 32370x 33x 31857x 31824x 31824x 32370x 6881x 6881x 124x 14x 14x 124x 110x 110x   6881x       6757x 6757x 6561x 6561x 6757x 6757x 6757x 6757x   6881x 256x 256x 256x 256x 256x 256x         256x 256x 41468x 41468x 41468x 256x 256x 256x 256x 9664x 9664x 9664x 9664x 9664x 9664x 9664x 9664x 9664x     9664x 9664x 256x 256x 256x 1304x 1304x 9664x 9664x 9664x 9664x 1304x 1304x 256x 6889x 6889x 6889x 1304x 1304x 6889x 6889x 256x 256x 248x 248x 248x               248x 248x 124x 124x 124x 124x 124x 124x     124x 124x 124x 124x 124x 124x               124x 124x 124x 124x 124x 124x 124x 124x     124x     124x 124x 124x 124x 124x     124x 124x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 82818x 82818x 82818x 256x 256x 188838x 188838x 188838x 256x 256x 256x 13499x 13499x 13189x 13189x 13189x 526x 526x 526x 13189x 13189x 13499x 13499x 256x 256x 37199x 37199x 37199x 37199x 37199x 37199x 37199x 638x 638x 638x 638x 638x 568x 568x 568x 638x 36631x 37199x 256x 256x 256x 100x 100x 44x 72x 56x 56x 100x 423x 423x 423x 423x 423x 182x 423x 241x 241x 423x 256x 256x 39351x 39351x 39351x 39351x 39351x 39351x 39351x 39351x 39351x 37958x 37958x 1393x 1393x 1393x 1393x 39325x 48x 48x 48x 39325x 696x 696x 696x 39351x 633x 633x 633x 633x 633x 633x 633x 633x 633x 16x 39351x 633x 633x 633x 633x 633x 633x 633x 633x 633x 633x 633x 633x 633x 248x 248x 248x 385x 633x 633x 152x 152x 152x 233x 233x 633x 256x 256x 37974x 37974x 37974x 37974x 37974x 37974x 37974x 37974x 37606x 37606x 368x 368x 368x 368x 17402x 32x 32x 32x 336x 336x 336x 336x   37974x 256x 256x 20735x 20735x 20735x 15490x 15490x 15490x 5807x 5807x 5807x 15254x 15254x 15254x 15254x 15254x 56x 56x 56x 15198x 15254x 32512x 32512x 32512x 32512x 32512x 32512x 32512x 32432x 32432x 32512x 24x 24x 24x 24365x 24x 24x 24x 24365x       9627x 16x 16x 16x 16x 32512x 19960x 19960x 19960x 19960x 19960x 19960x 299x 299x 299x 19661x 19960x 18096x 18096x 18096x 18096x 18096x 18096x 18096x 17676x 17676x 18096x 18096x 420x 420x 18096x 18096x         18096x 35324x 35324x 35324x 35324x 35324x 35324x 35324x 35324x 35324x 35324x 440x 76x 76x 76x 364x 364x 364x 34884x 35324x 256x 32448x 32448x 32448x 32448x 32448x 32448x 32448x 385x 385x 385x 385x 6x 6x 6x 6x 6x 6x 6x 6x 385x 123x 123x 123x 256x 256x 256x 256x 256x 73x 73x 73x 256x 360x 141x 140x 141x 1x 1x 141x 141x 360x 42x 385x 32105x 32448x 256x 23221x 23221x 23221x 23221x 23221x 23221x 23221x 23221x 23221x 23221x 42x 23221x 36x 36x 36x 23221x 8x 8x 8x 23221x 47x 47x 47x 23130x 23221x 256x 4917x 4917x 4917x 4917x 4917x 4917x 4917x 4253x 4253x 4917x 164x 164x 164x 500x 4917x 4931x 4931x 4931x 4931x 4931x 4931x 4856x 4856x 75x 4931x 14x 14x 14x 61x 4931x 2228x 2228x 2228x 2228x     2228x 2228x 2228x 82x 82x 2146x 2228x 2228x 256x 42032x 42032x 42032x 42032x 42032x 42032x 10966x 10966x 42032x 209x 209x 209x 42032x 42032x 900x 900x 900x 29957x 42032x 35422x 35422x 35422x 35422x 35422x 35422x 35422x 35422x 3x 3x 3x 35422x 3x 3x 3x 35422x 303x 303x 303x 35422x 8x 8x 8x 35422x 224x 224x 224x 224x 224x 224x 224x 224x 224x 34881x 35422x 30972x 30972x 30972x 30972x 30972x 16x 16x 16x 30956x 30972x 12860x 12860x 12860x 12860x 12860x 12860x 12860x 112x 112x 112x 12748x 12860x 18693x 18693x 18693x 18693x 18693x 18693x 18693x 110x 10x 10x 10x 110x 104x 104x 104x 6x 6x 18693x 13x 13x 13x 18583x 18693x 18589x 18589x 18589x 18589x 18589x 18589x 18589x                     18589x       18589x 18589x 12748x 12748x 12748x 12748x 12748x 10x 10x 10x 12738x 12748x 36353x 36353x 36353x 36353x 36353x 36353x 36353x 279x 148x 279x 131x 131x 279x 279x 36353x 170x 92x 170x 78x 78x 170x 170x 35904x 36353x 33022x 33022x 33022x 33022x 33022x 33022x 33022x 224x 224x 224x 33022x 33022x 33022x 192x 192x 192x 32606x 33022x 18170x 18170x 18170x 18170x 18170x 19x 19x 19x 18151x 18170x 256x 256x 12607x 12607x 12607x 12607x 12607x 12607x 221x 221x 221x 12386x 12607x 4753x 4753x 4753x 4753x 4753x 4753x 4753x 4753x 4x 4x 4x 4749x 4753x 25669x 25669x 25669x 25669x 25669x 25669x 12x 12x 12x 12x 25669x 84x 84x 84x 84x 35155x 35155x 35155x 35155x 35155x 35155x 35071x 35071x 19427x 52x 52x 52x 35155x 12386x 12386x 12386x 12386x 12386x 12386x 12330x 12330x 12386x 8x 3191x 48x 48x 56x 12386x 12330x 12330x 12330x 12330x 12330x 12330x 12330x 18x 18x 18x 18x 18x 18x 18x 18x 12312x 12330x 18096x 18096x 18096x 18096x 18096x 18096x 18096x 28x 20x 28x 8x 8x 28x 28x 18096x 12312x 12312x 12312x 12312x 12312x 12312x 12312x 12312x 208x 208x 208x 176x 208x 160x 160x 160x 208x 12152x 12312x 12064x 12064x 12064x 12064x 12064x 12064x 12x 12x 12x 12064x 34825x 34825x 34825x 34825x 34825x 34825x 34825x 34825x 36x 24x 36x 12x 12x 36x 36x 34825x 84x 84x 84x 84x 12148x 12148x 12148x 12148x 12148x 12148x 12148x 12148x 12064x 12064x 84x 84x 84x 84x 84x   12148x 256x 256x 256x 256x 256x 256x 256x 256x 256x 2394x 2394x 2394x 2394x 262x 262x 262x 262x 262x 262x 262x 262x 262x 2394x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 204653x 40x 40x 40x 204653x 200018x 200018x 256x 5227669x 5227669x 5026381x 5026381x 201288x 5227669x 5227669x 28779x 28779x 25414x 25414x 3365x 28779x 28779x 256x 256x 2785058x 2785058x 2785058x 256x 256x 61711x 61711x 61711x 61711x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 77894x 77894x 77894x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 33611x 33611x 24680x 24680x 33601x 48x 48x 33611x 384x 384x 33611x 264x 264x 33611x 336x 336x 33611x 168x 168x 7731x 33611x 256x 256x 4676x 4676x 4676x 256x 256x 4856x 4856x 4856x 256x 256x 37741x 37741x 37741x 37741x 37741x 37741x 3418x 37741x 37741x 7091x 37741x 298x 14x 14x 284x 37741x 37741x 8186x 577x 577x 7609x 37741x 3340x 37741x 7x 37741x 10x 37741x 66x 37741x 37741x 37741x 37741x 37741x 37741x 37741x 201x 37741x 15124x 37741x 37741x 256x 256x 5248x 5248x 5248x 5248x 256x 256x 256x 256x 256x 3627x 3627x 3627x 3627x 804x 804x 119x 119x 804x 3627x 544x 544x 3627x 483x 483x 3627x 3627x 6019x 6019x 6019x 256x 256x 278217x 278217x 278217x     278217x 22x 22x 278195x 278217x 23x 23x 278217x 1061x 1061x 1061x 1061x 124x 124x 1061x 92x 92x 1061x 278217x 750x 750x 750x 750x 750x 602x 602x 750x 364x 364x 750x 278217x 7347x 7347x 7347x 7347x 7347x 7347x 7347x 7347x 7347x 7347x 89x 89x 89x 89x 78x 78x 89x 7347x 7347x 277638x 278217x 256x 256x 12324x 12324x 12324x 256x 256x 256x 704x 704x 704x 704x 1432x 1432x 182x 153x 153x 146x 153x 1432x 439x 418x 1432x 704x 159x 159x 159x 704x 704x 592x 564x 564x 676x 159x 159x 159x 592x 28x 28x 592x 131x 159x 256x 256x 256x 6656x 6656x 3328x 3328x 3328x 3328x 6656x 6656x 6656x 256x 256x 2816x 2816x 512x 512x 512x 256x 256x 512x 512x 512x 1010506x 1010506x         1010506x 1010506x         1010506x 1010506x 512x 512x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 394x 394x 394x 256x 256x 13199x 13199x 13199x 7992x 7992x 48x 48x 7992x 7992x 4182x 4182x 16x 16x 4182x 854x 854x 4182x 28x 28x 4182x 1477x 1477x 4170x 1467x 1467x 4158x 110x 110x 4158x 26x 26x 204x 204x 204x   4182x 256x 256x 102317x 102317x 3902x 3902x 98415x 98415x 98415x 98415x 98415x 102317x 256x 256x 6282x 6282x 6024x 6024x 6024x 129x 129x 129x 129x 6282x 274x 274x 6282x 2681x 2681x 2681x 5575x 5575x 264x 264x 5575x 2681x 5744x 6282x 256x 6704x 6704x 6282x 6282x 6704x 6704x 256x 256x 29353x 29353x 177x 177x 29353x 29353x 256x 256x 529093x 529093x 529093x 529093x 529093x 6432x 288x 288x 6144x 529093x 144x 529093x 529093x 1409x 461x 461x 171x 171x 461x 1238x 529093x 628x 97x 97x 531x 529093x 321x 56x 56x 265x 529093x 6227x 6227x 6227x 6227x 6227x 16x 16x 6211x 529093x 14946x 14217x 14217x 14217x 14217x 14946x 60x 60x 14886x 529093x 529093x 6432x 6432x 6432x     6432x 6432x 288x 288x 6144x 6432x 1375x 1375x 1375x 121x 81x 81x 121x 121x 1375x 507x 507x 747x 747x 747x 747x 1375x 321x 321x 10x 10x 321x 321x 321x 618x 618x 265x 265x 618x 81x 81x 81x 272x 618x 66x 66x 66x 66x 66x 66x 256x 256x 948228x 948228x 18418x 18418x 929810x 948228x 5x 5x 948228x 120777x 120777x 948228x 278217x 278217x 948228x 21592x 21592x 21592x 21592x 11895x 11895x 21592x 928x 928x 21592x 948228x 13227x 13227x 13227x 13227x 13227x 2268x 2268x 13227x 790x 790x 13227x 529093x 529093x 529093x 529093x 529093x 948228x 832x 832x 528261x 948228x 567x 32x 32x 948228x 948228x 7020x 7020x 437x 7020x 16x 7020x 7020x 82x 7020x 12x 7020x 7020x 7020x 305x 7020x 1660x 690x 690x 1660x 7020x 2x 7020x 4506x 7020x 948228x 16003x     16003x 116x 116x 16003x 14x 14x 4x 4x 14x 948228x 948228x 948228x 948228x 948228x 948228x 948228x 948228x 24263x 24263x 24263x 24263x 24263x 24263x 151x 24263x 4867x 24263x 24263x 24263x 1104x 24263x 24263x 7x 24263x 24263x 24263x 24263x 24263x 24263x 24263x 24263x 96x 24263x 808x 640x 640x 168x 24263x 24263x 613x 24263x 24263x 1364x 24263x 4709x 1208x 1208x 24263x 24263x 5400x 5400x 64x 64x 5336x 5336x 5336x 5400x 201x 201x 5400x 51x 51x 5400x 400x 400x 5400x 8x 8x 5400x 279x 279x 4397x 4397x 24263x 8645x 24263x 168x 948228x 714x 24x 24x 690x 948228x 734x 10x 10x 948228x 948228x 1698x 1698x 1698x 1698x 1698x 1698x 1698x 1698x 1698x 1698x 1698x 1698x 203x 1698x 1698x 138x 1698x 1698x 1698x 49x 1698x 115x 1698x 66x 16x 16x 50x 1698x 1127x 1698x 948228x 289x 289x 289x 289x 289x 8x 8x 948228x 948228x 948228x 948228x 1081x 56x 56x 1081x 3x 3x 1081x 66x 66x 1081x 42x 42x 12x 12x 42x 22x 22x 42x 948228x 948228x 948228x 2711x 179x 179x 948228x 948228x 2666x 134x 6x 6x 134x 4x 4x 134x 948228x 948228x 2787x 948228x 151x 948228x 948228x 9x 948228x 948228x 948228x 98x 948228x 103x 948228x 948228x 1403x 948228x 948228x 1626x 5x 5x 1623x 1611x 1611x 1611x 1626x 2x 2x 1619x 948228x 948228x 764x 21x 21x 743x 743x 743x 743x 764x 1x 1x 742x 742x 742x 742x 742x 764x 9x 9x 764x 764x 692x 692x 764x 686x 3x 764x 764x 948228x 948228x 10x 948228x 948228x 948228x 74586x 683x 683x 683x 74586x 948228x 10987x 39x 39x 10987x 9088x 9088x 10987x 2x 2x 10987x 427x 427x 10987x 186x 186x 186x 10987x 64x 64x 10987x 22x 22x 22x 10987x     10987x 70x 70x 10987x 15x 15x 1282x 948228x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 13757x 316x 13757x 13757x 13757x 2107x 13757x 3300x 1804x 1804x 1496x 13757x 13757x 2134x 13757x 5900x 13757x 948228x 6723x 6723x 6723x 6723x 1904x 6723x 46x 6723x 6723x   6723x 4773x 6723x 948228x 16108x 16108x 108x 16108x 16108x 16108x 9294x 16108x 16108x 38x 16108x 16108x 16108x 16108x 16108x 16108x 16108x 16108x 16108x 16108x 16108x 16108x 16108x 196x 16108x 2x 16108x 360x 16108x 6110x 16108x 948228x 576x 576x 16x 576x   576x 560x 576x 948228x 948228x 948228x 948228x 6019x 1169x 1169x 948228x 948228x 948228x 948228x 115021x 418x 418x 972x 972x 150x 972x 972x 972x 463x 463x 972x 972x 972x 16x 16x 972x 75x 75x 972x 268x 972x 972x 418x 114603x 948228x 433x 948228x 242x 242x 214x 214x 28x 948228x 948228x 15634x 948228x 38x 948228x 34x 948228x 233588x 948228x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 903x 903x 903x 903x 4057x 4057x 116x 116x 3941x 3941x 787x 903x 388x 388x 388x 18x 18x 18x 18x 2x 2x 2x   18x 5x 5x 5x   18x 18x 2x 2x 2x   18x 1x 1x 1x   18x 1x 1x 1x   18x 7x 18x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 2275643x 2275643x 1219839x 1219839x 2275186x 630476x 630476x 2274984x     425328x 425328x 425328x 425328x 2275643x 256x 256x 256x 256x                                       256x           256x 256x 256x 256x 256x 137049x 137049x 137049x 2103654x 2103654x 108533x 108533x 108533x 2103654x 108533x 108533x 1995121x 2103654x     2103654x 51757x 51757x 1943364x 2103654x 2103654x 530918x 530918x 1618717x 1618717x 530918x 530918x 2103654x 22760x 22760x 2103654x 130475x 32x 96x 96x 130475x 130443x 130443x 130475x 2103654x 2103654x 2103654x 2103654x 2103654x 63296x 63296x 2103654x 2103654x 2103654x 2103654x 2103654x 2103654x 1195915x 2103654x   2103654x 2103654x 137049x 256x 256x 256x 84147x 84147x 62555x 62555x 21592x 21592x 21592x 172226x 56748x 56748x 115478x 115478x 115478x 172226x 21592x 115478x 115478x 38338x 115478x 1444x 1444x 1444x 1444x 115478x 554x 554x 554x 554x 554x 115478x 8121x 8121x 8121x 8121x 8121x 19x 19x 8121x 8102x 8102x 8121x 8121x 8121x 8121x 8121x 8121x 115478x 115478x 115478x 115478x 115478x 5009x 5009x 5009x 5009x 115478x 115478x 115478x 115478x 115478x 115478x 62012x 115478x   115478x 115478x 84147x 130989x 130989x 130989x 130989x 1884808x 51051x 51051x 1833757x 1884808x 11649x 11649x 11649x 1884808x 130989x 130989x 130989x 1567092x 1567092x 2242x 2242x 1567092x 6394x 6394x 1567092x 1003x 1003x 1567092x 89618x 89618x 89618x 954x 954x 726x 726x 726x 726x 726x 726x 726x 396x 396x 726x 954x 954x 5874x 5874x 5874x 5874x 108533x 472x 472x 108533x 8374x 8374x 44x 44x 8330x 8330x 108533x 5874x 108533x 8374x 8374x 482x 482x 8374x 108533x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 33350x 33350x 1324x 1324x 33350x 386x 386x 31640x 33350x 9033x 9033x 9033x 58387x 58387x 58387x 304x     304x 58387x 1626x     1626x 16x 16x 1610x 58387x 58387x 58387x 58387x 1791x     1791x 58387x 34x     34x 58387x 19391x 19391x 72757x 40628x 40628x 72757x 72757x 22260x 22260x 22260x 22260x 72757x 1684x 72757x 30445x 30445x 32129x 32129x 19391x     19391x 14749x 14749x 4642x 4642x 58387x 58387x 58387x 58387x 58387x 58387x 58387x 35241x 58387x   58387x 38980x 58387x 14921x 14921x 14921x 58692x 58692x 58692x 266665x 266665x 2010x 2010x 266665x 41371x 41371x 41371x 18350x 18350x 3x 3x 18350x 18350x 186x 186x 186x 1780x 1780x 921x 392x 392x 1780x 1780x 1780x 1780x 1780x 662x 662x 1780x 186x 186x 186x 256x 256x 256x                       256x 256x                               256x 256x                                         256x 256x       256x 256x 256x 258075x 258075x 258075x 258075x 256x 256x 29134x 29134x 29134x 29134x 29134x 31x 31x 31x 41x 41x 41x 642x 642x 642x 5107x 5107x 5107x 5107x 2906x 3915x 3915x 2906x 2906x 2906x 5107x 5107x 256x 256x 256x 256x 256x 256x 256x 256x 3922x 3922x 3922x 3922x 256x 256x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 543466x 11714x 11714x 11714x 256x 256x 111448x 111448x 111448x 15462x 15462x 111448x 111448x 111448x 111448x 111448x 111448x 111448x 256x 256x 21769x 21769x 21769x 21769x 21769x 21769x 21769x 21769x 21769x 256x 256x 79820x 79820x 79820x 79820x 79820x 97379x 18537x 18537x 97379x 97379x 79820x 79820x 256x 256x 36677x 36677x 36677x 36677x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 879x 879x 879x 879x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 5874x 5874x 5874x 256x 256x 256x 60x 256x 256x 256x 252x 252x 252x 252x 252x 252x 256x 256x 256x 256x 256x 256x 256x 37778x 37778x 128x 128x 37778x 37590x 37590x 60x 60x     60x 25840x 252x 252x     252x     252x     252x 252x 60x 37778x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 4346x 4346x 256x 4385x 4385x 4385x 4385x 4385x 4385x 4385x 5976x 5976x 5550x 5550x 88x 5550x 5462x 5462x 5550x 5976x             5976x 426x 426x 426x 426x 426x 5976x   5976x 5976x 4385x 4385x 4385x 88x 88x 88x 4385x 5888x 5888x 5888x 4385x 5550x 88x 5550x 5462x 5462x 5550x 4385x 88x     88x 88x 4385x 9847x 426x 426x 9847x 9847x 4385x 9935x 9935x 9935x 4385x 2434x 2434x 1040x 1040x 2434x     2434x 1040x 1040x 354x 354x 354x   354x 354x 354x 2434x     354x 2434x 4031x 4031x 4031x 256x 256x 700x 700x 700x 700x 700x   700x 700x 700x 700x 700x 700x 700x 700x 700x 700x 700x 256x 256x 256x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 6574x 6574x 6574x 6574x 6574x 6574x 6574x     6574x 6574x 5874x               5874x 5874x 5874x 5874x 26390x 26390x 5874x 700x 700x 700x 700x 700x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 256x 256x 256x 256x 256x 256x 256x 3673x 3673x 3673x 3673x                                                                                                                                                                                                                     3673x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 52986x           52986x 52986x 23443x 23443x 21208x 21208x 23443x 52986x 52986x 104837x 26238x 83602x 83602x 83602x 83602x 83602x 83602x 26238x 104837x     104837x 4031x 4031x 4031x 4031x 4031x 4031x 104837x 2434x 2434x 2434x 2434x 2434x 2434x 104837x     104837x 8160x 8160x 8160x 4387x 4387x 4387x 4387x 4387x 4387x 3773x 3773x 3773x 3773x 3773x 3773x 3773x 3773x 8160x 3353x 3353x 420x 420x 420x 420x 420x 420x 420x                                             8160x 8160x 8160x 768x 768x 8160x 8160x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 104837x 176x 176x 176x 176x 176x 176x 176x     176x 176x 176x 176x 176x 176x 176x 176x 176x 176x 176x 176x 176x 176x 32x 32x 32x     32x 32x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 176x               144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 144x 176x         144x 144x 104837x 104837x 1296x 1296x 8x 8x 8x 8x 8x 8x 8x 8x 8x 1296x 1288x 1288x 232x 232x 232x 232x 232x 232x 1288x 1296x 1296x 104837x             104837x 3050x             3050x 104837x 5962x 5962x 5262x 5262x 2247x 2247x 2247x 5262x 5262x     5962x 5962x 700x                 700x                 700x 700x 700x 700x 700x 700x 5962x 5962x 104837x 32x 32x 32x 32x 32x 32x 104837x 472x 104837x   104837x 104837x       104837x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x 5874x             5874x 256x 256x 256x 316x 256x 256x 256x 12916x 12916x 12916x 12916x 12916x 256x 256x 153669x 153669x 153669x 153669x 253032x 253032x 253032x 253032x 253032x 153669x 153669x 153669x 153669x 256x 256x 256x 256x 120333x 120333x 38165x 38165x 82168x 120333x 64635x 64635x 17533x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 36579x 36579x 36579x 256x 256x 256x 4074x 4074x 4074x 256x 256x 12122x 12122x 12122x 256x 256x 211799x 211799x 211799x 213685x 213685x 62284x 62284x 213685x 8x 8x 8x 213571x 213685x 1878x 1878x 1878x 149515x 149515x 211799x 43252x 43252x 43252x 43252x 43252x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 3163x 3163x 3163x 23336x 23336x 23336x 24328x 24328x 24328x 48x 48x 48x 64021x 64021x 20124x 20124x 43897x 64021x 23640x 304x 304x 23640x 320x 320x 64021x 1362x 16x 16x 1362x 1362x 41911x 64021x 256x 256x 488x 488x 488x 488x 488x 488x 488x 488x 256x 256x 256x 256x 6097x 6097x 6097x 6097x 6097x 1115x 1115x 1115x 1115x 1115x 1115x 494x 494x 257x 190x 257x 67x 67x 257x 494x 1115x 621x 621x 1115x 1115x 1115x 1115x 1115x 12x 12x 1115x 1115x 1109x 1109x 1109x 1109x 1109x 1109x 287x 287x 287x 287x 287x 287x 287x 287x 287x 287x 1109x 592x 592x 592x 592x 592x 592x 230x 1109x 33642x 33642x 33642x 33642x 33642x 33642x 33642x 33642x 33642x 33642x 33642x 33642x 30107x 30107x 3535x 3535x 3535x 3535x 3535x 33642x 33642x 63155x 63155x 63155x 63155x 63155x 63155x 63155x 63155x 63155x 62074x 62074x 1081x 1081x 1081x 1081x 63155x 63115x 63115x 63115x 63115x 63115x 63115x 63115x 63115x 63115x 63115x 63115x 63115x 63115x 62108x 62108x 1007x 1007x 1007x 1141x 32x 32x 1109x 1109x 1109x 1109x 1109x 1109x 1109x 1109x 1007x 1007x 63115x 9316x 9316x 9316x 9316x 9316x 9316x 53799x 53799x 53799x 53799x 53799x 256x 256x 71371x 71371x 71371x 256x 256x 431251x 431251x 431251x 5462x 431251x 425789x 425789x 431251x 2441x 2441x 3021x 431251x 278783x 278783x 278771x 278771x 278783x 278783x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 39559x 39559x 729x 729x 729x 38830x 256x 39559x 39559x 39559x 256x 256x 256x 256x 256x 12647x 12647x 12647x 6530x 6530x 6530x 256x 3817x 3817x 88x 88x 3817x 3519x 3519x 210x 3817x 3817x 3817x 3817x 3817x 3817x 3817x 3817x 92x 92x 3725x 3817x 35895x 35895x 35895x 1453x 1453x 1453x 1453x 1453x 1453x 35895x 35895x 64904x 64904x 64904x 33226x 33226x 33226x 256x 256x 256x 33369x 33369x 33369x 33369x 33369x 16996x 16996x 16996x 16996x 16996x 16996x 16996x 16996x 16996x 16996x 16996x 16373x 16373x 16373x 16373x 16373x 22100x 22100x 44x 44x 22100x 22100x 16373x 16373x 5727x 22100x 8x 22100x 167x 5719x 5552x 5552x 16373x 33369x 2965x 314x 314x 2651x 2651x 2651x 2651x 2651x 2651x 2651x 13408x 13408x 13408x 33369x 1163x 1163x 33287x 78x 78x 33369x 33369x 33369x 76x 66x 66x 10x 10x 12091x 12091x 12091x 12091x 33369x 33369x 33369x 33369x 33369x 17589x 17589x     17589x 17589x 3891x 3891x 13698x 17589x 17589x 15378x 15378x 15378x 2605x 2605x 1827x 1827x 15378x     15378x 15378x 15378x 15378x 15378x 12773x 12773x 15378x 15378x 274x 73x 73x 201x 201x 201x 10x 10x 201x 274x 15378x 15378x 2986x 2986x 2986x 2986x 1010x 23x 23x 23x 987x 2986x 2986x 2986x 2986x 2986x 4181x 4181x 4181x 4181x 3036x 3036x 3036x 256x 256x 256x 256x 256x 256x 256x 40057x 40057x 24015x 24015x 16042x 40057x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 36465x 36465x 36465x 36465x 36465x 36465x 451042x 451042x 1541x 451042x 1316x 1316x 451042x 36465x 36465x 256x 256x 256x 18186x 18186x 18186x 18186x 18186x 18186x 18186x 18186x 1455x 1120x 1120x 1455x 1455x 18186x 18186x 18186x 256x 256x 256x 38291x 38291x 38291x 38291x 38291x 34376x 34376x 34376x 34376x 34376x 38291x 3933x 38291x 295x 34358x 34063x 34063x 38291x 38291x 20105x 20105x 18186x 38291x 256x 256x 256x 256x 256x 256x 256x 359x 359x 359x 256x 2439x 2439x 2439x 114x 114x 2438x 2093x 2093x 1015x 2x 2x 230x 230x 230x 1015x 2439x 2439x 32648x 32648x 32648x 1716x 1716x 30932x 31414x 29671x 29671x 1261x 31408x 59x 59x 1202x 1202x 1202x 32648x 32648x 524x 524x 32648x 40x 40x 638x 32648x 256x 1974x 1974x 1974x 335x 680x 24x 24x 656x 680x 335x 335x 335x 1974x 1974x 33673x 33673x 33673x 33478x 33478x 33478x 34472x 34472x 34472x 34472x 799x 799x 34472x 195x 195x 195x 195x 195x 195x 195x 34472x 446x 446x 446x 446x 33032x 34472x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 3152x 3152x 3152x 442x 442x 2710x 3152x 972x 972x 1738x 3152x 1394x 1394x 1394x 1394x 89x 89x 1305x 1394x 256x 256x 1392x 1392x 1392x 123x 123x 1269x 1269x 9481x 9481x 9481x 53x 53x 9428x 1269x 1269x 1392x 1194x 1194x 1392x 123x 123x 1146x 1392x 45x 45x 45x 45x 45x 45x 1392x 452x 452x 649x 1392x 799x 799x 799x 149x 149x 650x 650x 650x 650x 650x 799x 1x 1x 649x 799x 256x 256x 3920x 3920x 2640x 2640x 3920x 59x 59x 1221x 3920x 256x 339940x 339940x 339940x 339940x 339940x 328460x 328460x 11480x 339940x 11453x 11453x 369x 369x 11453x 11453x 339940x 339940x 256x 22804x 22804x 22804x 22804x 22804x 22804x 22804x 710x 710x 22094x 22094x 22094x 22094x 22094x 22650x 21966x 21966x 21966x 21966x 21966x 21966x 21966x 21966x 21966x 21966x 21966x 22804x 21758x 21758x 21758x 21758x 21758x 21758x 21758x 21758x 21758x 21758x 22804x 21714x 21714x 21714x 21714x 21714x 21714x 21714x 21714x 21714x 21714x 21714x 22804x 400x 400x 21694x 256x 11351x 11351x                     11351x 11351x 11351x 256x 256x 256x 12548x 12548x 2936x 2936x 9612x 9612x 12548x 422x 422x 331x 422x 361x 361x 422x 9612x 9612x 9612x 9612x 9612x 9612x 9612x 9612x 9612x 9612x 9612x 9612x 12548x 12548x 12548x 12548x 12548x 12548x 12548x 12548x 12548x 12548x 12548x 12548x 12548x 12548x 113x 113x 113x 113x 12548x 12548x 4181x 4181x 4181x 4181x 4181x 4181x 3700x 234x 234x 4181x 481x 481x 481x 4181x 250x 250x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 4181x 3994x 4181x 187x 187x 4181x 4181x 4846x 4846x 4846x 4846x 20842x 20842x 15996x 15996x 4846x 4846x 4846x 4846x   20842x 31703x 31703x 31703x 31703x 31703x 36x 36x 31703x 31703x 256x 256x 54071x 54071x 48313x 48313x 5758x 54071x 207x 207x 5551x 5551x 5551x 54071x 54071x 2642x 2642x 2909x 54071x 8579x 8579x 8579x 8579x 8579x 8579x 8579x 8579x 8579x 8579x 8579x 1010x 8579x 119x 112x 112x 7x 8579x 175x 175x 36x 36x 139x 139x 8579x 76x 8x 8x 68x 8579x 355x 12x 12x 343x 8579x 6844x 388x 388x 8579x 8579x 1076x 1076x 8579x 2502x 2502x 3435x 3435x 3435x 3435x 8579x 256x 256x 46566x 46566x 46566x 46554x 46554x 46554x 48884x 48884x 48884x 256x 256x 8364x 8364x 6874x 6874x 1490x 1490x 1490x 1490x 1490x 1490x 8364x 80x 80x 1410x 8364x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 33150x 33150x 33150x 33150x 770x 770x 32380x 33150x 1253x 1253x 33150x 7220x 7220x 33150x 125x 125x 33150x 176x 176x 23606x 33150x 256x 256x 256x 3531x 3531x 3531x 5688x 336x 5688x 5352x 5352x 5688x 3531x 3531x 256x 256x 256x 3531x 3531x 3531x     3531x 3531x 3531x 3531x 3531x 3531x 256x 256x 256x 3081x 3081x 112x 112x 112x 112x 112x 2969x 2969x 5280x 5280x 2969x 2969x 3081x 2417x 2417x 2417x 2417x 2417x 2417x 2417x 2417x 26x 10x 26x 16x 16x 26x 2417x 1320x 1320x 2417x 2417x 112x 112x 112x 112x 112x 112x 112x 112x 112x 112x 1040x 1040x 1040x 112x 112x 112x 112x 112x 112x 1040x 1040x 1040x 1040x 1040x 1040x 1040x 1040x 1040x 16x 16x 1040x 304x 304x 304x 304x 304x 1040x 112x 112x 112x 112x 112x 112x 112x 112x 112x 112x 432x 1312x 1312x 432x 112x 112x 112x 256x 5408x 5408x 5408x 5408x 5408x 5408x 2547x 2547x 2547x 2547x 2547x 7929x 7929x 7929x 7929x 7929x 7929x 7929x 2547x 2547x 2547x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 5408x 4834x 4834x 4834x 4834x 4834x 212x 4834x 4622x 4622x 4834x 5408x 283x 283x 5408x 5408x 5408x 5408x 5408x 1040x 1040x 5408x 5408x 5408x 4749x 4749x 4749x 216x 216x 4790x 2135x 1232x 1232x 1232x 1232x 1232x 2135x 2135x 2655x 216x 216x 4445x 4445x 4445x 4445x 4445x 4445x 4445x 4445x 4445x 256x 3081x 3081x 3081x 3081x 3081x 3081x 256x 256x 256x 256x 256x 256x 256x 3788x 3788x 3788x 3788x 3788x 3788x 3788x 3788x 3788x 3782x 3782x 3782x 3788x 3788x 2983x 2983x 2983x 2983x 2983x 2983x 2983x 7741x 7741x 7741x 7741x 7741x 7741x 7741x 7399x 7399x 7399x 7161x 7161x 7161x 256x 256x 905x 905x 905x 905x 2317x 2317x 1412x 1412x 2317x 2317x 905x 881x 881x 905x 8x 8x 873x 905x 881x 881x 236x 236x 645x 645x 7863x 6747x 6747x 1116x 3876x 2496x 2496x 1380x 1380x 1116x 645x 881x 881x 4699x 4699x 4699x 4699x 4699x 4482x 4482x 4482x 94x 94x 4699x 4699x 929x 929x 929x 234x 234x 234x 4394x 4394x 2278x 2278x 4394x 4394x 4394x 760x 760x 760x 226x 760x 4394x 145x 145x 145x 16x 24x 24x 145x 4394x 863x 4394x 348x 4394x 4394x 3804x 3804x 3804x 256x 256x 256x 147x 147x 147x 147x 147x 147x 284x 284x 284x 284x 284x 284x 284x 284x 284x 284x 284x 284x 5x 5x 279x 284x 159x 284x 120x 110x 284x 165x 165x 15x 15x 165x 165x 25x 25x 284x 10x 10x 284x 137x 137x 284x 269x 147x 159x 159x 159x 159x 159x 386x 311x 311x 386x 15x 350x 60x 60x 75x 75x 159x 159x 3778x 3778x 3778x 256x 256x 256x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 640x 14951x 11205x 11205x 3746x 3746x 14646x 4790x 4790x 4268x 3542x 3542x 275x 275x 275x 275x 275x 275x 275x 275x 3542x 3542x 4268x 4268x 522x 522x 522x 3746x 640x 640x 640x 640x 640x 422x 422x 218x 218x 640x 640x 3621x 3621x 3621x 256x 256x 256x 256x 51x 51x 51x 51x 51x 51x 51x 51x 51x 51x 51x 51x 51x 51x 20x 20x 20x 20x 20x 20x 20x 20x 51x 51x 51x 51x 51x 51x 51x 51x 51x 51x 2965x 2965x 2965x 2965x 2965x 2965x 256x 256x 256x 256x 256x 256x 256x 256x 256x 1280x 1280x 256x 946926x 946926x 946926x 4793x 946926x 942227x 942227x 4699x 939670x 2912x 2912x 1787x 1787x 939664x 946926x 44x 44x 1743x 946926x 1280x 1280x 1743x 1743x 1280x 1280x 4793x 4793x 4793x 256x 256x 256x 88x 88x     88x     88x                                                               256x 256x                   88x 88x 88x     88x     88x 256x 256x 88x 88x     88x     88x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x       256x 88x 88x 14x 14x 88x 88x 88x 88x     88x     88x     88x     88x     88x                   88x     88x                 88x 88x                                 88x     88x 88x 8x 8x 88x     88x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 20x 20x 20x 20x 20x 20x 20x 20x 20x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 15x 15x 15x 15x 15x 15x 15x 15x 5x 5x 15x 10x 10x 15x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 31x     31x 26x 26x 26x 31x 20x 46x 46x 82x 82x 82x 256x 256x 256x 256x 256x 46x 46x 36x 36x 10x 45x     10x 46x 256x 256x 256x 46x 46x 46x 10x 10x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x 46x     46x 46x 46x 256x 256x 13478x 13478x     13478x 13478x 13478x 256x 13547x 13547x 13478x 13478x 13547x 13547x 256x 256x 256x 41943x 41943x 41943x 28396x 28396x 41928x 1333x 1333x 12214x 12214x 12214x   41943x 1333x 1333x 1333x 1333x 1333x 1333x 4873x 1333x 1333x 4873x 1333x 1333x 2207x 2207x 4873x 41x 41x 2166x 1333x 1333x 1333x 1333x 256x 256x 3747x 3747x     3747x 3747x 256x 256x 256x 256x 256x 256x 256x     256x 256x 662x 662x 662x 1163x 1163x 662x 662x 256x 662x 662x 662x 1102x 1102x 662x 662x 256x       256x       256x     256x               256x 662x 662x 662x 256x 662x 662x 662x 256x 662x 662x 256x 3747x 3747x 3747x 3747x 256x       256x 36611x 36611x 36611x 256x       256x                                     256x       256x 256x 256x 256x 256x 256x 256x 42347x 42347x 42347x 256x 256x 2744441x 2744441x 2744441x 2734973x 2734973x 9468x 9468x 2722883x 11304x 11304x 7095x 7095x 4209x 4209x 4209x 2744441x 2744441x 256x 256x 2748635x 2748635x 2748635x 256x 256x 256x 256x                   256x 256x 256x 256x 850x 850x 850x 850x 256x 256x 256x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 958x 958x 23045x 22x 22x 23045x 23045x 1063x 1063x 23045x 23045x 23045x 23045x 9061x 9061x 23045x     11941x 11941x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 23045x 11828x 11828x 113x 113x 113x 113x 113x 113x 113x 113x 113x 23045x 28498x 28498x 28498x 28498x 28498x 261x 261x 28237x 28498x 5369x 5369x 5369x 5369x 5369x 5369x 5369x 5369x 28498x 22868x 22868x 28237x 28498x 28498x 28498x 28498x 28498x 28498x 28498x 28498x 576x 28498x 27661x 27661x 84x 84x 84x 84x 84x 84x 27661x 27661x 2800x 2800x 40x 40x 32x 32x 40x 8x 8x 40x 40x 2800x 27661x 24861x 24861x 27661x 28237x 28237x 28237x 28237x 28498x 28498x 15596x 15596x 15596x 15596x 28498x 2984x 28498x 25253x 25253x 28498x 330x 330x     330x 330x 27907x 28498x 59105x 59105x 41208x 41208x 59105x 528x 528x 59105x 200x 200x 59075x 688x 688x 16481x 59105x 256x 27648x 27648x 27648x 256x 256x 897695x 897695x 897695x 893327x 893327x 4368x 890547x 2202x 897695x 242x 897695x 305x 305x 305x 305x 305x 305x 305x 305x 305x 897695x 5x 897695x 346x 346x 614x 614x 346x 346x 346x 897695x 445x 897695x 447x 447x 447x 447x 897695x 219x 219x 219x 219x 219x 219x 219x 219x 897695x 144x 144x 144x 144x 144x 897695x 13x 897695x   897695x 897695x 487x 487x 487x 100x 100x 100x 100x 256x 256x 256x 256x 256x 310x 310x 310x 256x 256x 366x 366x 366x 366x 366x 366x 366x 2729x 2729x 2663x 2663x 66x 66x 66x 66x 2729x 335x 335x 335x 335x 335x 335x 335x 335x 72x 72x 335x 335x 335x 335x 335x 335x 335x 412x 412x 412x 412x 412x 3064x 3064x 433x 433x 3064x 3064x 3064x 256x 256x 9362x 9362x 9362x 256x 256x 8658x 8658x 8658x 8658x 8658x 8658x 8658x 8658x 2042x 8658x 6616x 6616x 6616x 6616x 6616x 6616x 6616x 6616x 6616x 6616x 4579x 4579x 3379x 3379x 1200x 4579x 74x 74x 4579x 4579x 6616x 6616x 6616x 1303x 6616x 6616x 6616x 6616x 6616x 6616x 8658x 8658x 8658x 8206x 8206x 24x 8206x 8206x 15710x 15710x 15710x 15710x 15710x 15710x 15710x     15710x 15710x 15710x 15710x 16468x 15710x 15710x 758x 758x 758x 15710x 15710x 5251x 5251x 5251x 13531x 13531x 13531x 13531x 13531x 8293x 8293x 5251x 5251x 13x 13x 5251x 5251x 1365x 1365x 1365x 8974x 8974x 8974x 8974x 8974x 7609x 7609x 1365x 1365x 1365x 256x 256x 484x 484x 484x 256x 256x 28533x 28533x 28533x 256x 256x 256x 16761x 16761x 12748x 12748x 12748x 773x 773x 773x 12748x 12748x 16761x 16761x 256x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 20723x 20723x 20723x 20723x 20723x 20723x 20723x 20723x 16113x 20723x 4294x 4294x 4294x 4294x 20723x 5950x 5632x 5598x 5950x 5950x 20723x 16113x 16113x 20723x 4294x 4294x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 848x 848x 848x 848x 848x 848x 848x 16113x 16113x 16113x 16113x 16113x 16113x 16113x 16113x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 16429x 20723x 20723x 20723x 20723x 196x 196x 20723x 2813x 20723x 17910x 17910x 17910x 3565x 2x 2x 3563x 3563x 17908x 17908x 17908x 17908x 17908x 17908x 17908x 17908x 17908x 17908x 17908x 17908x 17908x 17908x 20407x 20407x 20407x 20723x 14x 14x 20407x 20723x 15800x 15800x 15800x 16113x 16113x 14457x 14457x 1656x 16113x 492x 492x 492x 492x 492x 492x 492x 492x 492x 16113x 16113x 848x 848x 316x 16113x 16113x 16113x 16113x 16113x 16113x 1003x 1003x 1003x 1003x 1003x 1003x 1003x 1003x 1003x 1003x 1003x 1003x 16113x 16113x 256x 256x 256x 5492x 5492x 5492x 102x 102x 5390x 5492x 577x 577x 5492x 5492x 2x 2x 5492x 246x 246x 5492x 40x 40x 5492x     5492x 48x 48x 4477x 5492x 256x 256x 119816x 119816x 119816x 256x 256x 29639x 29639x 22714x 22714x 6925x 29510x 16945x 1795x 1795x 178x 178x 16945x 15150x 15150x 993x 1025x 128x 128x 1025x 865x 15150x 16945x 6619x 29639x 256x 256x 35851x 35851x 35851x 35851x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 4503x 4503x 48x 48x 4455x 4455x 4503x 84x 84x 84x 84x 84x 4503x 3037x 3037x 4503x 56x 56x 4503x 130x 130x 216x 216x 216x 216x 216x 130x 130x 4503x 158x 158x 4503x 277x 269x 269x 269x 8x 8x 4503x 253x 253x 4503x 104x 104x 356x 4503x 256x 256x 44851x 44851x 44851x 44851x 44851x 44851x 14824x 14824x 30027x 44808x 88x 88x 232x 232x 144x 144x 88x 88x 88x 88x 29939x 29939x 29939x 40423x 40423x 40423x 40423x 40423x 184x 184x 10484x 10300x 10300x 40423x 29939x 29939x 29939x 44808x 44851x 44851x 44851x 7439x 7439x 7439x 7439x 44851x 450x 450x 44808x 196x 196x     196x 196x 196x 196x 196x 196x           196x 186x 186x 186x 186x 10x 10x 10x 10x 44808x 6793x 6793x 108x 108x 6685x 6685x 6685x 6685x 6685x 6793x 316x 316x 316x     6793x 3035x 3035x 3035x 3035x 3334x 3334x 3334x 3334x 22500x 44808x 98x 98x 22402x 44808x 44851x 44851x 30476x 30476x 2486x 2486x 30476x 751x 751x 30476x 72x 72x 30476x 442x 442x 30476x 6203x 6203x 6203x 6203x 1918x 1918x 6203x 686x 686x 5877x 2765x 274x 274x 2765x 1083x 1083x 2765x 6203x 22764x 30476x 29293x 29293x 29293x 29293x 29293x 29293x 29293x 29293x 22862x 22862x 22862x 22862x 22862x 22862x 22862x 42x 42x 22862x 29251x 29251x 29251x 29251x 29251x 29251x 29293x 6946x 29293x 29293x 29293x 29489x 29489x 24758x 24758x 4731x 29489x 4x 4x 29489x 29489x 320x 320x     320x 62x 62x 62x 62x 2x 2x 62x 24x 24x     24x 62x 14x 14x 2x 2x 14x 62x 62x 320x 16x 16x 320x 48x 48x 320x 320x 30027x 30027x 5009x 5009x 5009x 5009x 5009x 5009x 30027x 1691x 558x 558x 558x 1691x 1691x 23327x 30027x 5567x 5567x 5567x 5567x 5567x 10x 10x 2x 2x 8x 10x 2x 2x 10x 10x 256x 256x 256x 235x 235x 235x 235x 235x 235x 308x 308x 308x 256x 256x 256x 26560x 26560x 26560x 34758x 26560x 26560x 8198x 8198x   26560x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 29908x 52442x 52442x 52442x 52442x 52442x 47671x 47671x 52442x 1843x 1843x 2928x 52442x 256x 256x 15789x 15789x 15789x 15789x 5611x 5611x 5611x 5611x 5611x 5611x 93x 93x 5518x 5611x 15789x 42381x 42381x 42381x 42381x 3913x 3913x 3913x 3913x 3913x 3913x 3913x 42381x 22607x 22607x 22607x 22607x 22607x 38468x 14x 15861x 58x 58x 58x 58x 58x 15847x 15789x 15789x 15789x 15789x 15789x 42381x 15789x 15789x 15789x 15789x 15789x 15789x 15789x 15789x 15789x 15789x 15789x 15789x 15789x 15789x 15911x 124x 15911x 15787x 15787x 15911x 15789x 14572x 17185x 2615x 17185x 14570x 14570x 17185x 14572x 15789x 15789x 15789x 15789x 39628x 3779x 16x 16x 16x 3763x 3763x 3763x 3763x 39628x 19662x 19662x 39612x 39628x 104x 104x 104x 104x 39628x 15789x 15771x 15771x 15789x 12105x 12105x 15789x 2799x 2799x 15789x 15667x 15667x 13572x 13572x 13572x 2095x 2095x 2095x 2095x 2095x 2095x 15667x 15667x 15789x 15789x 43850x 43850x 15789x 2438x     2438x 2438x 15789x 15789x 15789x 15789x 15789x 15789x 27036x 27036x 27036x 27036x 15789x 13351x 72x 72x 13279x 13279x 2438x 2438x 2438x 15789x 15789x 15789x 15789x 15789x 15789x 15090x 15789x 15789x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 1670x 15789x 15789x 800x 15675x 1638x 1638x 1638x 1638x 1638x 1638x 1638x 1638x 2438x 2438x 2438x 15789x 256x 256x 256x 43279x 43279x 43279x 43279x 43279x 43279x 43279x 43279x 43279x 42470x 42470x 42470x 43279x 42438x 43279x 2343x 2343x 3485x 2343x 2343x 2341x 2341x 2341x 2341x 2341x 2341x 2341x 2341x 2341x 2343x 43279x 43279x 15829x 15829x 15829x 43279x 15789x 15789x 25149x 25149x 25149x 25149x 25149x 25149x 43279x 1571x 1571x 23578x 43279x 27490x 27490x 27490x 415x 415x 27490x 98x 98x 27490x 33x 33x 26944x 27490x 27490x 27490x 27490x 27490x 256x 256x 256x 256x 256x 256x 43211x 43211x 43211x 43211x 43211x 43211x 42685x 42685x 42685x 43211x 42049x 42049x 1162x 43211x 43211x 42470x 42470x 42470x 5275x 5275x 42470x 18980x 18980x 18215x 42356x 53x 53x 42470x 24x 24x 18138x 42470x 256x 256x 48576x 48576x 48576x 48576x 48576x 48576x 9367x 48576x 48576x 16054x 48576x 48576x 19685x 19685x 19685x 19685x 19685x 19685x 19685x 19685x 19685x 48576x 179x 48576x 48576x 48576x 267x 48576x 118x 48576x 56x 48576x 2850x 48576x 48576x 10310x 10310x 10310x 10310x 10310x 10310x 10310x 10310x 10310x 10310x 10310x 16632x 16632x 16632x 48576x 48576x 48576x 48576x 2850x 2850x 45726x 45726x 45726x 45726x 45726x 45726x 48576x 441x 441x 48576x 48576x 1020x 1020x 48576x 48576x 2894x 2894x 41371x 48576x 154x 154x 41217x 41217x 41217x 41217x 47342x 8347x 8347x 47318x 25x 25x 48576x 13160x 13160x 19685x 48576x 41217x 41217x 41217x 1876x 1876x 39341x 41217x 41217x 44x 41217x 41217x 283x 193x 193x 90x 41217x 2000x 1102x 1102x 1102x 898x 2000x 2000x 41217x 206x 41217x 41217x 8433x 8433x 28568x 28568x 41217x 29142x 547x 547x 29142x 27x 27x 28595x 28568x 28568x 29142x 41217x 25528x 25528x 41217x 5509x 5509x 23059x 41217x 41371x 41371x 23774x 23774x 153x 23774x 23774x 17597x 41371x 143426x 143426x 143426x 51681x 51681x 51681x 32870x 32870x 32870x 272x 272x 25x 25x 272x 32845x 32870x 32870x 32870x 2111x 2111x 32870x 41283x 41283x 27196x 27196x 14087x 41283x 12153x 12153x 1934x 1934x 1934x 41283x 47x 41283x 41283x 41808x 41808x 41808x 2037x 2037x 2037x 2037x 375x 375x 2037x 210x 210x 2037x 2037x 2037x 31089x 31089x 31089x 31089x 299x 299x 31089x 4361x 4361x 320x 320x 4041x 4361x 4361x 2271x 2271x 4361x 22x 22x 1748x 1748x 31089x 3514x 3514x 31089x 31089x 41217x 41217x 27271x 27271x 13946x 13946x 41217x 41217x 1770x 1770x 1770x 35x 3x 3x 32x 32x 32x 19x 19x 32x 14x     35x 1748x 1770x 401x 401x 401x 401x 401x 59x 401x 146x 401x 196x 401x 401x 205x 205x 205x 256x 256x 965x 965x 965x 965x 949x 949x 949x 122x 122x 122x 122x 122x 53x 53x 122x 77x 77x 122x 949x 888x 965x 256x 256x 256x             256x 256x 30462x 30462x 30462x 256x 256x 256x 256x 30462x 30462x 30462x 30462x 30462x 30462x 30462x 30462x 30462x 30462x 30462x 30462x 91867x 91867x 91867x 386x 386x 91481x 91867x 61019x 61019x 35719x 35719x 61019x 30462x 30462x 30462x 256x 256x 39208x 39208x 39208x 39208x 39208x 39208x 39208x 14965x 14965x 24243x 38838x 44x 44x 24243x 38759x 16076x 38838x 8167x 8167x 1009x 1009x 8167x 24243x 24243x 39208x 39208x 39208x 39208x 39208x 39208x 39208x 39208x 39208x 8199x 8199x 31009x 39208x 304x 304x 56x 56x 56x 56x 56x 56x 56x 9x 9x 56x 304x 39204x 29613x 29613x 39208x 1148x 1148x 31009x 39208x 256x 256x 256x 256x 256x 524x 524x 524x 524x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 9785x 9785x 9785x 4825x 4825x 4825x 9785x 764x 764x 764x 9785x 21x 21x 21x 4175x 4175x 4175x 16700x 10084x 10084x 10084x 16700x 16700x 16700x 4175x 4175x 10084x 10084x 10084x 10084x 10084x 10084x 10084x 10084x 10084x 4175x 9785x 390x 390x 15x 15x 15x 15x 390x 390x 390x 256x 256x 9785x 9785x 9785x 9785x 9785x 9785x 9785x 9785x 9785x 9785x 9785x 9785x 9785x 18213x 18213x 18213x 18213x 18213x 18213x 18213x 9750x 9750x 9750x 9750x 5981x 9750x 3769x 3769x 9750x 18213x 42x 42x 18213x 7272x 7272x 7272x 7127x 7127x 18213x 157x 157x 18213x 10142x 10142x 1135x 1135x 10142x 9785x 9785x 203x 203x 9785x 80x 80x 18x 18x 12x 12x 12x 12x 18x 80x 62x 62x 80x 80x 9785x 4653x 4653x 4653x 102x 4653x 4551x 4551x 4551x 4653x 152x 152x 4501x 4501x 4501x 4501x 9785x 9785x 21457x 21457x 21457x 21457x 21457x 14144x 14144x 14144x 14144x 14144x 14144x 21457x 21457x 11672x 11672x 11672x 11672x 11672x 923x 923x 11672x 1114x 686x 686x 1114x 50x 50x 1114x 402x 402x 26x 26x 9635x 11672x 256x 256x 350x 144x 144x 206x 206x 206x 206x 350x 256x 7272x 7272x 7272x 7272x 7272x 6695x 6695x 7272x 66x 66x 7272x 121x 121x 7272x 7272x 35x 35x 7272x 257x 257x 4x 4x 257x 7272x 7272x 7272x 3x 3x 348x 7272x 7272x 7272x 59x 7272x 7272x 7272x 7272x 273x 273x 64x 64x 273x 273x 52x 52x 157x 157x 7272x 2x 7272x 14x 7272x 256x 7177x 7177x 7177x 7177x 7177x 7053x 7053x 5203x 18x 18x 5203x 38x 38x 68x 5203x 18x 7177x 50x 7177x 256x 256x 256x 256x 256x 256x 256x 256x 256x 5135x 5135x 5135x 5135x 144x 144x 144x 144x 4991x 5135x 5135x 5135x 5135x 5135x 5135x 5135x 5135x 5135x 5135x 5135x 5132x 4642x 4642x 5132x 10264x 5022x 5022x 5022x 5022x 5022x 5022x 10264x 5132x 5135x 1111x 1111x 1111x 1111x 1111x 1111x 1111x 1111x 1111x 334x 1111x 777x 777x 5135x 4024x 4024x 5135x 5135x 5135x 5135x 5135x 5135x 524x 524x 524x 524x 5135x 4611x 4611x 5135x 174x 5135x 4961x 4961x 5135x 5135x 5135x 5416x 5416x 5416x 15955x 3055x 3055x 15955x 356x 356x 15955x 5060x 5416x 5135x 5135x 5135x 371x 371x 5135x 923x 54x 54x 923x 923x 5135x 5135x 3606x 3606x 235x 235x 5135x 5135x 5135x 5135x 256x 5431x 5431x 5431x 5135x 5135x 5135x 5135x 5135x 5431x 5431x 14294x 14294x 14294x 13786x 13786x 508x 508x 508x 508x 14294x 296x 296x 296x 296x 296x 296x 68x 68x 228x 228x 212x 212x 212x 14294x 14294x 14294x 14294x 14294x 1111x 1111x 1111x 1111x 54x 54x 54x 54x 1057x 1111x 3615x 3615x 3615x 3615x 230x 230x 3615x 3615x 235x 235x 3615x 3615x 4x 4x 3615x 3615x 3615x 2583x 2583x 2583x 2583x 136x 136x 2583x 2583x 456x 456x 2583x 2583x 8x 8x 2583x 35x 35x 2583x 20x 20x 2583x 167x 167x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 2583x 256x 256x 5894x 5894x 5894x 4574x 4574x 1320x 1320x 1320x 5894x 5894x 7398x 7398x 7398x 7398x 1504x 1504x 5894x 7398x 408x 408x 7398x 3592x 3592x 1894x 7398x 7398x 256x 256x 256x 256x 367x 367x 367x 367x 367x 367x 367x 367x 367x 367x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 36x 36x     36x 36x 256x 256x 256x 256x 36x 36x 36x 256x 256x 43324x 43324x 36x 36x 36x 43324x 2284x 2284x 41004x 41004x 42505x 41002x 43324x 31x 31x 40973x 43324x 44468x 44468x 44468x 1144x 40x 40x 40x 40x 40x 40x 40x 40x 40x 40x 40x 40x 40x 40x 40x 40x 1104x 44468x 40988x 40988x 44428x 44468x 256x 256x 995x 995x 995x 995x 995x 995x 658x 658x 337x 337x 337x 337x 337x 337x 337x 337x 337x 337x 337x 337x 995x 995x 995x 995x 995x 995x 995x 995x 995x 256x 256x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 1471x 256x 256x 6272x 6272x 155x 155x 92x 92x 63x 155x 155x 6272x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 6272x 256x 256x 256x 256x 256x 249x 249x 249x 249x 249x 249x 249x 249x 256x 256x 2667x 2667x 2667x 2667x 2667x 2667x 1552x 1552x 1115x 1115x 1115x 1115x 1115x 1115x 2667x 594x 594x 594x 1115x 2667x 201x 201x 80x 201x 121x 121x 112x 121x 9x 9x 201x 56x 56x 56x 56x 201x 201x 201x 2667x 2667x 2667x 256x 256x 76350x 76350x 76350x 76350x 90x 76350x 172x 76350x 9752x 76350x 11877x 76350x 608x 76350x 932x 76350x 344x 76350x 52575x 254x 254x 52575x 357x 357x 51964x 52575x 24748x 24748x 52575x 22945x 22945x 4271x 4271x 76350x 76350x 22945x 22945x 21533x 21533x 1412x 22945x 22945x 535x 535x 535x 344x 344x 344x 344x 256x 802x 802x 802x 770x 770x 770x 32x 802x 256x 256x 256x 256x 16428x 16428x 16428x 16428x 16428x 16428x 16428x 16428x 16428x 16428x 16428x 16428x 16428x 16428x 26905x 26905x 26905x 26905x 26905x 839x 839x 26905x 16428x 16428x 2x 2x                 2x 2x 2x 2x 2x 16428x 16426x 16426x 16426x 16426x 16428x 16428x 16428x 2033x 16426x 14395x 14395x 14395x 16428x 15646x 16428x 1378x 1378x 15050x 15050x 15050x 16428x 11987x 11987x 11987x 11987x 11987x 451x 451x     451x 11987x     11987x 11987x 256x 256x 1619x 1619x 1619x 1619x 1619x 1619x 1619x 1619x 1619x 1619x 1619x 1619x 256x 2729x 2729x 2729x 2729x 2729x 2729x 2729x 2729x 2729x 2729x 48x 48x 16x 16x 48x 2729x 2014x 2729x 715x 715x 170x 170x 111x 111x 715x 545x 545x 715x 715x 715x 715x 715x 2729x 2729x 2729x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 2729x 2729x 1364x 1364x 1365x 2729x 4972x 4972x 4972x 1677x 1677x 1677x 715x 715x 715x 2334x 2334x 2334x 282x 282x 2052x 2334x 2334x 2334x 2334x 2334x 2164x 2164x 2164x 111x 111x 2053x 2164x 1804x 1804x 1804x 2580x 2580x 855x 2580x 1725x 1725x     1804x 1804x 1804x 1012x 45x 45x 1012x 1012x 510x 510x 510x 510x 510x 510x 510x 510x 510x 510x 510x 510x 1012x 502x 502x 502x 502x 502x 502x 502x 502x 1012x 2164x 249x 249x 2053x 2164x 4216x 4216x 3720x 3720x 496x 496x 496x 496x 496x 4216x 2052x 2052x 2052x 2052x 2052x 2052x 18x 18x 2052x 471x 471x 2052x 2052x 256x 489x 489x 64x 64x 425x 425x 489x 256x 2334x 2334x 2334x 282x 282x 2052x 2334x 1563x 1563x 489x 2334x 168x 168x 489x 2334x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 147x 2580x 1725x 1725x 2580x 1255x 1255x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 2580x 256x 256x 21483x 21483x 21483x 4989x 4989x 16494x 16494x 16494x 16494x 16494x 16494x 16494x 16494x 21483x 256x 256x 916x 916x 916x 256x 256x 6282x 6282x 6282x 6282x 538x 538x 6282x 532x 532x 532x 532x 532x 532x 532x 5212x 6282x 6452x 6452x 6452x 6452x 6452x 6282x 6282x 6282x 6282x 6282x 6452x 6452x 6452x 6452x 256x 256x 466x 466x 466x 48x 48x 466x 156x 156x 262x 466x 668x 668x 668x 202x 202x 460x 202x 354x 258x 258x 202x 202x 202x 466x 668x 204x 204x 262x 668x 256x 256x 412x 412x 412x 412x 412x 412x 412x 412x 412x 412x 374x 374x 374x 374x 374x 669x 669x 374x 374x 374x 374x 412x 412x 412x 412x 412x 669x 669x 669x 669x 503x 669x 166x 166x 669x 48x 48x 669x 669x 669x 669x 545x 545x 545x 545x 545x 669x 669x 256x 256x 2102x 2102x 2102x 10921x 10921x 1140x 1140x 1140x 10921x 1056x 1056x 10921x 1046x 2102x 962x 962x 962x 962x 256x 256x 7365x 7365x 7365x 12121x 12121x 36131x 36131x 232x 232x 36131x 4756x 4756x 36131x 11889x 7133x 7365x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 1483x 1483x 7071x 8554x 256x 256x 256x 256x 256x 256x 256x 256x 256x 8554x 8554x 8554x 418x 418x 8136x 8136x 8554x 10737x 10737x 2601x 2601x 2601x 10737x 227x 227x 10737x 7909x 7909x 10737x 8554x 6284x 6284x 1852x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 11496x 11496x 11496x 8554x 3100x 8554x 8554x 8554x 8554x 1003x 1003x 1003x 1525x 1525x 1525x 1525x 1003x 1003x 1003x 1003x 1003x 1003x 1003x 1003x 8554x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 7551x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 8554x 256x 256x 5741x 5741x 5741x 5741x 5741x 5741x 5741x 5741x 5741x 5741x 5741x 100x 100x 100x 100x 5741x 5741x 256x 256x 256x 256x 256x 256x 256x 256x 256x 5741x 5741x 5741x 158x 158x 5583x 5583x 5741x 7744x 7744x 2161x 2161x 2161x 7744x 160x 160x 7744x 5423x 5423x 7744x 5741x 3946x 3946x 1637x 5741x 256x 6271x 6271x 6271x 6271x 256x 14295x 14295x 8554x 8554x 5741x 5741x 5741x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 8183x 8183x 8183x 14295x 2562x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 72x 72x 72x 72x 72x 72x 72x 72x 3487x 3415x 3415x 3415x 3415x 3415x 14295x 14295x 14295x 14295x         5741x 13779x         14295x         13779x 74x 74x 5741x 5741x 5741x 12014x 5583x 5583x 14295x 158x 158x 158x 158x 158x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 14295x 2652x 2652x 2652x 2652x 808x 808x 808x 808x 808x 2652x 2652x 14295x 14295x 14295x 546x 14295x 14295x 14295x 14295x 14295x 14295x 744x 744x 744x 744x 744x 744x 14295x 14295x 4563x 4563x 14295x 14295x 14295x 14295x 14295x 544x 544x 544x 544x 544x 544x 544x 544x 14295x 1213x 1213x 14295x 14295x 14295x 256x 256x 213x 213x 213x 213x 213x 213x 213x 213x 213x 199x 199x 199x 149x 149x 149x 16x 16x 149x 149x 149x 149x 149x 149x 149x 149x 50x 199x 256x 256x 16446x 16446x 16446x 16446x 16446x 16446x 16446x 16271x 16446x 175x 175x 16446x 16446x 16446x 16446x 16446x 16446x 186x 186x 186x 16446x 16446x 16446x 16446x 16446x 256x 256x 783x 783x 783x 783x 783x 783x 783x 783x 783x 783x 783x 256x 256x 736332x 736332x 736332x 76350x 76350x 659982x 736332x 437x 736332x 691x 736332x 736332x 6272x 736332x 44468x 736332x 2309x 736332x 736332x 340x 340x 40x 40x 300x 300x 300x 300x 300x 300x 300x 736332x 10310x 736332x 16632x 736332x 736332x 22803x 736332x 1057x 736332x 736332x 29908x 736332x 82x 736332x 235x 736332x 276200x 276200x 276200x 276200x 276200x 276200x 736332x 22x 736332x 335x 736332x 467x 736332x 736332x 12415x 736332x 16429x 736332x 727x 727x 727x 727x 736332x 965x 736332x 736332x 736332x 2657x 736332x 1619x 736332x 736332x 736332x 736332x 736332x 736332x 2580x 736332x 498x 736332x 736332x 736332x 39057x 736332x 4302x 736332x 614x 736332x 5838x 736332x 736332x 736332x 736332x 38787x 736332x 736332x 15831x 736332x 14226x 426x 426x 13800x 736332x 736332x 7185x 736332x 736332x 140x 736332x 821x 736332x 736332x 8135x 736332x 668x 736332x 3313x 736332x 128x 736332x 344x 736332x 6354x 6354x 1871x 1871x 6354x 6354x 872x 872x 872x 6354x 5482x 5482x 6354x 6354x 736332x 541x 541x 541x 541x 541x 736332x 13719x 736332x 16133x 736332x 2667x 736332x 995x 736332x 736332x 783x 736332x 367x 736332x 736332x 1471x 736332x 58x 736332x 736332x 1175x 1175x 1175x 1175x 1175x 736332x 291x 291x 291x 291x 291x 736332x 213x 736332x 199x 736332x 412x 736332x 669x 736332x 64x 736332x 736332x 4302x 736332x 736332x 736332x 3469x 736332x 736332x 736332x 736332x 736332x 2557x 736332x 5280x 736332x 3065x 736332x 2417x 736332x 674x 736332x 297x 736332x 736332x 84x 736332x 60x 736332x 66x 736332x 217x 736332x 1536x 1536x 1536x 736332x 736332x 736332x 736332x   736332x 736332x 256x 256x 451x 451x 451x 256x 256x 914x 914x 914x 914x 914x 914x 914x 914x 914x 914x 914x 914x 33x 33x 881x 914x 256x 256x 83x 83x 83x 83x 59x 59x 83x 83x 83x 9x 83x 74x 74x 83x 34x 34x 83x 25x 25x 83x 83x 41x 41x 41x 34x 34x 7x 41x 20x 20x 20x 20x 19x 19x 20x 20x 20x 256x 256x 32x 32x 32x 32x 10x 10x 10x 10x 32x 32x 32x 32x 136x 136x 136x 136x 43x 43x 136x 136x 136x 47x 47x 89x 136x 88x 88x 88x 88x 88x 88x 88x 88x 88x 88x 88x 256x 256x 1314x 1314x 1314x 1314x 1314x 1314x 1314x 161x 161x 1314x 1314x 1314x 1314x 1314x 1314x 1314x 1314x 1314x 1314x 1314x 740x 740x 740x 740x 1314x 574x 574x 1314x 10x 10x 1314x 1314x 1314x 1314x 1314x 1314x 740x 740x 740x 740x 256x 256x 22x 22x 22x 22x 22x 22x 22x 22x 110x 110x 110x 110x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 256x 256x 126x 126x 126x 126x 126x 126x 126x 126x 126x 256x 256x 146x 146x 146x 256x 256x 504x 504x 504x 504x 1102x 1102x 504x 504x 598x 598x 1102x 60x 60x 538x 538x 1102x 1102x 482x 72x 72x 410x 410x 1102x 6x 6x 1102x 504x 504x 504x 256x 256x 28x 28x 28x 17x 28x 5x 28x 3x 28x 3x 28x 28x 28x 28x 28x 28x 28x 28x 68x 68x 34x 34x 34x 68x 181x 181x 181x 181x 181x 181x 181x 181x 181x 181x 181x 110x 110x 181x 181x 181x 181x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 42x 181x 181x 181x 181x 256x 256x 148x 148x 148x 148x 148x 148x 142x 142x 142x 142x 142x 337x 337x 142x 142x 142x 142x 148x 148x 148x 148x 148x 337x 337x 337x 337x 337x 337x 337x 337x 337x 337x 847x 847x 847x 847x 17x 847x 27x 847x 55x 847x 218x 847x 10x 847x 41x 847x 23x 23x 23x 847x 131x 847x 847x 90x 847x 6x 847x 67x 67x 17x 17x 67x 67x 67x 67x 67x 67x 67x 67x 847x 125x 21x 21x 104x 847x 37x 37x 20x 20x 37x 37x 847x 847x 90x 90x 90x 90x 20x 20x 90x 90x 90x 90x 90x 90x 90x 90x 256x 256x 256x 256x 256x 256x 17x 17x 17x     17x 17x 17x 17x 13x 13x 4x 4x 4x 17x 17x 17x     17x 17x 17x   17x 17x 17x 17x 17x 17x 17x 41x 41x 41x 41x 41x 17x 17x     17x 17x 2x 2x 17x             17x 17x 256x 256x 43x 43x 43x 43x 43x 43x 43x 43x 43x 11x 11x 43x 16x 16x 16x 16x 16x 16x 16x 8x 8x 8x 8x 16x 16x 43x 20x 20x 43x 43x 43x 256x 256x 50x 50x 50x 50x 50x 50x 50x 50x 256x 256x 84x 84x 84x 84x 84x 84x 84x 84x 84x 84x 84x 256x 256x 2557x 2557x 2557x 2557x 2557x 2557x 2557x 2557x 2557x 2557x 2557x 2557x 2557x 2557x 256x 256x 1559x 1559x 1559x 1559x 18772x 18772x 18772x 18772x 10975x 10975x 18772x 3031x 3031x 4766x 4766x 4766x 4766x 4766x 4766x 4766x 4766x 18769x 2704x 2698x 2698x 2698x 2698x 2698x 2698x 18772x 18772x 2705x 2705x 2705x 2705x 2705x 2705x 2705x 18772x 18772x 18772x 18772x 18772x 18772x 18772x 18772x 18772x 2705x 2705x 2705x 2703x 2703x 2x 2x 2x 2x 1731x 1x 1x 1x 2705x 1772x 1772x 1772x 1772x 1772x 16x 16x 1772x 56x 56x 1772x 60x 60x 1772x 1772x 109x 10x 10x 109x 109x 1772x 248x 248x 248x 248x 248x 248x 248x 248x 1772x 67x 67x 67x 67x 67x 67x 67x 67x 1772x 1772x 256x 256x 84x 84x 84x 84x 84x 84x 84x 84x 84x 256x 256x 226x 226x 226x 226x 256x 256x 827533x 827533x 827533x 9736x 9736x 817797x 827533x 827533x 827533x 83x 827533x 41x 827533x 20x 827533x 20x 827533x 22x 827533x 55x 827533x 104x 104x 104x 104x 104x 104x 104x 827533x 36x 827533x 5x 5x 5x 5x 5x 827533x 5x 827533x 313x 313x 313x       313x 313x 313x 313x 313x 827533x 827533x 72x 827533x 827533x 43x 827533x 827533x 1087x 827533x 135x 827533x 680x 827533x 76x 827533x 12x 827533x 740x 827533x 181x 827533x 12x 827533x 2x 827533x 7691x 7691x 7691x 7691x 827533x 827533x 31x 827533x 827533x 827533x 6006x 827533x 621x 827533x 75x 827533x 49x 827533x 104x 827533x 827533x 32x 827533x 827533x 827533x 827533x 827533x 32x 827533x 827533x 827533x 827533x 827533x 43x 827533x 747x 747x 747x 747x 747x 747x 747x 747x 747x 747x 827533x 827533x 827533x 827533x 827533x 310x 827533x 827533x 4196x 827533x 827533x 247x 827533x 5x 827533x 1616x 827533x 98x 98x 98x 98x 827533x 23x 827533x 51x 51x 51x 51x 51x 827533x 28x 827533x 212x 212x 212x 212x 212x 212x 212x 212x 212x 212x 212x 827533x 9671x 9671x 2x 9671x 12x 12x 9671x 9671x 9671x 9671x 9671x 9671x 9671x 9671x 9671x 9671x 9671x 827533x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 827533x 827533x 114x 827533x 827533x 100x 827533x 109x 827533x 68x 827533x 1936x 827533x 5307x 827533x 6x 827533x 1147x 1147x 1147x 1147x 1147x 1147x 827533x 28x 827533x 9x 827533x 827533x 2824x 827533x 827533x 827533x 47x 47x 47x 47x 47x 47x 47x 827533x 827533x 827533x 212x 827533x 827533x 148x 827533x 827533x 337x 827533x 827533x 827533x 827533x 827533x 827533x 827533x 827533x 827533x 827533x 827533x 827533x 827533x 827533x 847x 827533x 20x 20x 20x 20x 20x 20x 827533x 20x 827533x 827533x 42x 42x 42x 42x 42x 42x 42x 42x 42x 827533x 827533x 256x 256x 1426x 1426x 1426x 1426x 187x 1426x 8x 8x 1426x 10x 10x 1416x 1426x 256x 256x 256x 11697x 11697x 11697x 11697x 11697x 4773x 4773x 11697x 11697x 11697x 132x 132x 6792x 17341x 82x 82x 82x 82x 82x 82x 17259x 6792x 6792x 6792x 11697x 11697x 11697x 11697x 11697x 11697x 11697x 11697x 11697x 35766x 35766x 35766x 35766x 35766x 35766x 35766x 421x 35766x 15x 15x 35766x 11695x 19867x 19867x 19867x 19867x 11697x 13299x 13299x 11697x 851x 851x 851x 6792x 11695x 26685x 528x 52x 25x 25x 25x 27x 27x 528x 76x 76x 476x       528x 26685x 16576x 26685x 9981x 9981x 26685x 3486x 3486x 26685x 11697x 4235x 11697x 11697x 24x 11695x 8x 6768x     11695x 21x 21x 6771x 11695x 3400x 3400x 3371x 11697x 6792x 6792x 6792x 6792x 16326x 16326x 16326x 6792x 17910x 27x 27x 17883x 17883x 17910x 6792x 17341x 17341x 17341x 17341x 10934x 10934x 3085x 3085x 3085x 3085x 3085x 3085x 1325x 1325x 1023x 1325x 302x 302x 1325x 1325x 3085x 3085x 3085x 3085x 3085x 3085x 3085x 1445x 1445x 1445x 3085x 178x 178x 3085x 16931x 7012x 16931x 9919x 9919x 16931x 3085x 1267x 1032x 1267x 235x 235x 3085x 1640x 1640x 10934x 7849x 259x 259x 7849x     17341x 6407x 6407x 6407x 6407x 662x 662x 662x 6407x 5745x 5745x 6407x 6792x 6792x 6792x 2302x 2302x 27x 27x 2302x 146x 146x 2129x 2302x 2055x 2055x 219x 219x 2055x 150x 150x 1686x 2055x 256x 11697x 11697x 11697x 11697x 11697x 7810x 7810x 3887x 3887x 11697x 11697x 11697x 11697x 3887x 3887x 648x 3887x 3887x 5527x 5527x 5527x 5527x 5527x 5527x 5355x 5355x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 2402x 1938x 1938x 1938x 1938x 1938x 2402x 464x 464x 464x 464x 464x 2402x 2402x 5355x 2953x 2953x 5355x 5355x 5527x 5527x 6100x 6100x 6100x 6100x 6100x 6100x 2783x 2783x 3317x 6100x 10898x 10898x 10898x 10898x 10898x 10898x 2279x 2279x 10898x 660x 660x 660x 660x 660x 660x 660x 660x 10898x 588x 588x 10898x 10898x 10898x 10898x 10898x 10898x 8031x 8031x 1470x 1470x 6561x 8029x 5694x 5694x 867x 8031x 6561x 6561x 877x 877x 877x 877x 6561x 6561x 6561x 6561x 6561x 6561x 6561x 62x 62x 62x 62x 62x 62x 905x 6561x 6561x 6789x 6789x 6789x 6789x 6789x 6789x 6789x 28x 6789x 21x 6761x 6740x 6740x 6789x 6789x 6789x 942x 942x 942x 942x 942x 942x 942x 942x 942x 11697x 11697x 11697x 11697x 264x 264x 264x 264x 264x 264x 264x 264x 264x 261x 261x 261x 261x 261x 261x 261x 261x 261x 117x 117x 144x 261x 261x 893327x 893327x 893327x 893327x 893327x 827533x 827533x 65794x 893327x 5527x 893327x 23265x 893327x 41x 893327x 10x 893327x 893327x 261x 893327x 6100x 893327x 893327x 11697x 893327x 10898x 893327x 6789x 893327x 893327x 942x 942x 942x 942x 942x 893327x 264x 264x 264x 264x 264x 893327x   893327x   893327x 893327x 11226x 11226x 4749x 4749x 11224x 3411x 3411x 3066x 11226x 11226x 17341x 17341x 17341x 256x 256x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 76x 256x 256x 18x 18x 18x 18x 18x 18x 18x 18x 256x 256x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 216x 198x 198x 216x 216x 256x 256x 157x 157x 157x 157x 157x 157x 157x 6x 6x 6x 6x 157x 157x 256x 256x 184x 184x 184x 184x 184x 184x 184x 184x 184x 184x 184x 184x 184x 184x 184x 184x 140x 140x 140x 140x 140x 140x 44x 184x 256x 256x 768837x 768837x 768837x 736332x 736332x 761736x 4589x 4589x 27916x 761736x 16x 768837x 184x 768837x 113x 768837x 6x 768837x 151x 768837x 768837x 1287x 768837x 1470x 768837x 324x 768837x 768837x 146x 768837x 768837x 26x 768837x 768837x 768837x 626x 768837x 16x 768837x 72x 768837x 48x 768837x 6x 768837x 523x 768837x 768837x 1942x 768837x 1151x 768837x 768837x 702x 768837x 347x 768837x 1192x 1192x 1192x 1192x 1192x 1192x 1192x 768837x 116x 116x 116x 116x 116x 116x 116x 768837x 151x 768837x 76x 768837x 56x 768837x 707x 768837x 98x 98x 98x 98x 98x 768837x 971x 768837x 95x 768837x 131x 768837x 181x 768837x 216x 768837x 2x 768837x 56x 768837x 56x 768837x 93x 768837x 58x 58x 58x 58x 58x 58x 58x 58x 58x 58x 58x 58x 768837x 33x 768837x 157x 768837x 500x 768837x 134x 768837x 369x 768837x 712x 768837x 768837x 768837x 768837x 574x 768837x 342x 768837x 6217x 6217x 6217x 6217x 768837x 5345x 768837x 98x 768837x 768837x 3x 768837x 3x 768837x 9x 9x 9x 9x 9x 9x 768837x 9x 9x 9x 9x 9x 9x 768837x 768837x 768837x   768837x 768837x 256x 256x 897695x 897695x 897695x 897695x 897695x 897695x 897695x 897695x 4123724x 4123724x 897379x 897379x 4123724x 897695x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 899125x 899125x 18459x 18459x 899121x 899125x 899125x 54x 54x 899125x 6246x 6246x 892505x 892505x 892505x 899125x 899125x 899125x 899125x 875713x 875713x 16792x 16792x 16792x 16792x 16792x 899125x 892505x 892505x 892505x 140x 140x 892365x 892505x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 438x 438x 438x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x                                                                                                       256x 256x 256x 1079x 1079x 1079x 1079x 185x 1079x 156x 6x 6x 150x 150x 150x 150x 150x 150x 150x 150x 150x 150x 150x 1079x 51x 46x 46x 46x 46x 46x 46x 46x 51x 1079x 139x 1079x 34x 1079x 14x 1079x 16x 1079x 289x 1079x 149x 149x 2x 2x 147x 147x 1079x 30x 1079x 8x 1079x 8x 1079x   1079x 1079x 179x 179x 179x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x 256x  
var __defProp = Object.defineProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
 
// src/plugins/estree.js
var estree_exports = {};
__export(estree_exports, {
  languages: () => languages,
  options: () => options_default,
  printers: () => printers2
});
 
// src/language-js/languages.evaluate.js
var languages_evaluate_default = [
  {
    "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
  }
];
 
// src/language-js/printers.js
var printers_exports = {};
__export(printers_exports, {
  estree: () => estree
});
 
// src/utilities/is-non-empty-array.js
function isNonEmptyArray(object) {
  return Array.isArray(object) && object.length > 0;
}
var is_non_empty_array_default = isNonEmptyArray;
 
// src/utilities/noop.js
var noop = () => {
};
var noop_default = noop;
 
// src/language-js/utilities/create-type-check-function.js
function createTypeCheckFunction(typesArray) {
  const types = new Set(typesArray);
  if (false) {
    noop_default(
      typesArray.length,
      types.size,
      "'typesArray' should be unique."
    );
  }
  return (node) => types.has(node?.type);
}
 
// scripts/build/shims/shared.js
var OPTIONAL_OBJECT = 1;
var createMethodShim = (methodName, getImplementation) => (flags, object, ...arguments_) => {
  if (flags | OPTIONAL_OBJECT && (object === void 0 || object === null)) {
    return;
  }
  const implementation = getImplementation.call(object) ?? object[methodName];
  return implementation.apply(object, arguments_);
};
 
// scripts/build/shims/method-at.js
function stringOrArrayAt(index) {
  return this[index < 0 ? this.length + index : index];
}
var at = /* @__PURE__ */ createMethodShim("at", function() {
  if (Array.isArray(this) || typeof this === "string") {
    return stringOrArrayAt;
  }
});
var method_at_default = at;
 
// src/language-js/utilities/function-parameters.js
var functionParametersCache = /* @__PURE__ */ new WeakMap();
function getFunctionParameters(node) {
  if (functionParametersCache.has(node)) {
    return functionParametersCache.get(node);
  }
  const parameters = [];
  if (node.this) {
    parameters.push(node.this);
  }
  parameters.push(...node.params);
  if (node.rest) {
    parameters.push(node.rest);
  }
  functionParametersCache.set(node, parameters);
  return parameters;
}
function iterateFunctionParametersPath(path, iteratee) {
  const {
    node
  } = path;
  let index = 0;
  const callback = () => iteratee(path, index++);
  if (node.this) {
    path.call(callback, "this");
  }
  path.each(callback, "params");
  if (node.rest) {
    path.call(callback, "rest");
  }
}
function hasRestParameter(node) {
  if (node.rest) {
    return true;
  }
  const parameters = getFunctionParameters(node);
  return method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    parameters,
    -1
  )?.type === "RestElement";
}
 
// src/language-js/utilities/is-as-const-expression.js
var isTsAsConstExpression = (node) => node?.type === "TSAsExpression" && node.typeAnnotation.type === "TSTypeReference" && node.typeAnnotation.typeName.type === "Identifier" && node.typeAnnotation.typeName.name === "const";
 
// src/language-js/utilities/is-meaningful-empty-statement.js
function isMeaningfulEmptyStatement({ node, parent }) {
  if (node?.type !== "EmptyStatement") {
    return false;
  }
  if (parent.type === "IfStatement") {
    return parent.consequent === node || parent.alternate === node;
  }
  if (parent.type === "DoWhileStatement" || parent.type === "ForInStatement" || parent.type === "ForOfStatement" || parent.type === "ForStatement" || parent.type === "LabeledStatement" || parent.type === "WithStatement" || parent.type === "WhileStatement") {
    return parent.body === node;
  }
  return false;
}
 
// src/language-js/utilities/is-method.js
function isMethod(node) {
  return node.method && node.kind === "init" || node.kind === "get" || node.kind === "set";
}
 
// src/language-js/location/is-index.js
var isIndex = (value) => Number.isInteger(value) && value >= 0;
 
// src/language-js/location/end-with-full-text.js
function locEndWithFullText(node) {
  const end = node.range?.[1] ?? node.end;
  if (false) {
    throw new TypeError("Can't not locate node.");
  }
  return end;
}
 
// src/language-js/location/start.js
function locStart(node) {
  const start = node.range?.[0] ?? node.start;
  if (false) {
    throw new TypeError("Can't not locate node.");
  }
  const firstDecorator = (node.declaration?.decorators ?? node.decorators)?.[0];
  if (firstDecorator) {
    return Math.min(locStart(firstDecorator), start);
  }
  return start;
}
 
// src/language-js/location/overrides.js
var BREAK_KEYWORD_LENGTH = "break".length;
var CONTINUE_KEYWORD_LENGTH = "continue".length;
var DEBUGGER_KEYWORD_LENGTH = "debugger".length;
var overrideBreakOrContinueEnd = (
  /**
  @param {BREAK_KEYWORD_LENGTH | CONTINUE_KEYWORD_LENGTH} keywordLength
  @returns {LocEndOverride<NodeMap["BreakStatement"] | NodeMap["ContinueStatement"]>}
  */
  (keywordLength) => (node) => node.label ? locEnd(node.label) : locStart(node) + keywordLength
);
var getContentEnd = (node) => node.__contentEnd ?? locEndWithFullText(node);
var nodeTypesWithContentEnd = (
  /** @type {const} */
  ["ExpressionStatement", "Directive", "ImportDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "ReturnStatement", "ThrowStatement", "DoWhileStatement"]
);
var overrides = (
  // @ts-expect-error -- Unknown
  new Map([
    ["BreakStatement", overrideBreakOrContinueEnd(BREAK_KEYWORD_LENGTH)],
    ["ContinueStatement", overrideBreakOrContinueEnd(CONTINUE_KEYWORD_LENGTH)],
    ["DebuggerStatement", (node) => locStart(node) + DEBUGGER_KEYWORD_LENGTH],
    // @ts-expect-error -- ignore
    ["VariableDeclaration", (node) => locEnd(method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      node.declarations,
      -1
    ))],
    ...nodeTypesWithContentEnd.map((type) => [type, getContentEnd])
  ])
);
var shouldAddContentEnd = createTypeCheckFunction(nodeTypesWithContentEnd);
var shouldIgnoredNodePrintSemicolon = (node) => {
  if (shouldAddContentEnd(node) && node.__contentEnd) {
    return true;
  }
  const {
    type
  } = node;
  if (type === "BreakStatement" || type === "ContinueStatement" || type === "DebuggerStatement" || type === "VariableDeclaration") {
    return true;
  }
  if (type === "IfStatement") {
    return shouldIgnoredNodePrintSemicolon(node.alternate ?? node.consequent);
  }
  if (type === "ForInStatement" || type === "ForOfStatement" || type === "ForStatement" || type === "LabeledStatement" || type === "WithStatement" || type === "WhileStatement") {
    return shouldIgnoredNodePrintSemicolon(node.body);
  }
  return false;
};
function locEnd(node) {
  const {
    type
  } = node;
  if (type === "IfStatement") {
    return locEnd(node.alternate ?? node.consequent);
  }
  if (type === "ForInStatement" || type === "ForOfStatement" || type === "ForStatement" || type === "LabeledStatement" || type === "WithStatement" || type === "WhileStatement") {
    return locEnd(node.body);
  }
  return overrides.get(type)?.(
    // @ts-expect-error -- Comment types
    node
  ) ?? locEndWithFullText(node);
}
 
// src/language-js/location/comparison.js
function hasSameLocStart(nodeA, nodeB) {
  const nodeAStart = locStart(nodeA);
  return isIndex(nodeAStart) && nodeAStart === locStart(nodeB);
}
function hasSameLocEnd(nodeA, nodeB) {
  const nodeAEnd = locEnd(nodeA);
  return isIndex(nodeAEnd) && nodeAEnd === locEnd(nodeB);
}
function hasSameLoc(nodeA, nodeB) {
  return hasSameLocStart(nodeA, nodeB) && hasSameLocEnd(nodeA, nodeB);
}
 
// src/language-js/utilities/get-raw.js
function getRaw(node) {
  return node.extra?.raw ?? node.raw;
}
 
// src/language-js/utilities/literal.js
function isBigIntLiteral(node) {
  return node.type === "BigIntLiteral" || node.type === "Literal" && // @ts-expect-error -- Safe
  Boolean(node.bigint);
}
function isBooleanLiteral(node) {
  return node.type === "BooleanLiteral" || node.type === "Literal" && typeof node.value === "boolean";
}
function isNumericLiteral(node) {
  return node.type === "NumericLiteral" || node.type === "Literal" && typeof node.value === "number";
}
function isRegExpLiteral(node) {
  return node.type === "RegExpLiteral" || node.type === "Literal" && // @ts-expect-error -- Safe
  Boolean(node.regex);
}
function isStringLiteral(node) {
  return node?.type === "StringLiteral" || node?.type === "Literal" && typeof node.value === "string";
}
 
// src/language-js/utilities/node-types.js
var isBinaryCastExpression = createTypeCheckFunction([
  // TS
  "TSAsExpression",
  "TSSatisfiesExpression",
  // Flow
  "AsExpression",
  "AsConstExpression",
  "SatisfiesExpression"
]);
var isSatisfiesExpression = createTypeCheckFunction([
  "SatisfiesExpression",
  "TSSatisfiesExpression"
]);
var isUnionType = createTypeCheckFunction([
  "TSUnionType",
  "UnionTypeAnnotation"
]);
var isIntersectionType = createTypeCheckFunction([
  "TSIntersectionType",
  "IntersectionTypeAnnotation"
]);
var isTupleType = createTypeCheckFunction([
  "TupleTypeAnnotation",
  "TSTupleType"
]);
var isConditionalType = createTypeCheckFunction([
  "TSConditionalType",
  "ConditionalTypeAnnotation"
]);
var isTypeAlias = createTypeCheckFunction([
  "TSTypeAliasDeclaration",
  "TypeAlias"
]);
var isReturnOrThrowStatement = createTypeCheckFunction([
  "ReturnStatement",
  "ThrowStatement"
]);
var isExportDeclaration = createTypeCheckFunction([
  "ExportDefaultDeclaration",
  "DeclareExportDeclaration",
  "ExportNamedDeclaration",
  "ExportAllDeclaration",
  "DeclareExportAllDeclaration"
]);
var isArrayExpression = createTypeCheckFunction(["ArrayExpression"]);
var isObjectExpression = createTypeCheckFunction(["ObjectExpression"]);
var isLiteral = createTypeCheckFunction([
  "Literal",
  "BooleanLiteral",
  "BigIntLiteral",
  // Babel, flow use `BigIntLiteral` too
  "DirectiveLiteral",
  "NullLiteral",
  "NumericLiteral",
  "RegExpLiteral",
  "StringLiteral"
]);
var isObjectType = createTypeCheckFunction([
  "ObjectTypeAnnotation",
  "TSTypeLiteral",
  "TSMappedType"
]);
var isFunctionOrArrowExpression = createTypeCheckFunction([
  "FunctionExpression",
  "ArrowFunctionExpression"
]);
var isJsxElement = createTypeCheckFunction([
  "JSXElement",
  "JSXFragment"
]);
var isBinaryish = createTypeCheckFunction([
  "BinaryExpression",
  "LogicalExpression",
  "NGPipeExpression"
]);
var isCallExpression = createTypeCheckFunction([
  "CallExpression",
  "OptionalCallExpression"
]);
var isMemberExpression = createTypeCheckFunction([
  "MemberExpression",
  "OptionalMemberExpression"
]);
var isCallOrNewExpression = createTypeCheckFunction([
  "CallExpression",
  "OptionalCallExpression",
  "NewExpression"
]);
var isCallLikeExpression = createTypeCheckFunction([
  "CallExpression",
  "OptionalCallExpression",
  "NewExpression",
  "ImportExpression"
]);
var isChainElementWrapper = createTypeCheckFunction([
  "ChainExpression",
  "TSNonNullExpression"
]);
var isArrayType = createTypeCheckFunction([
  "TSArrayType",
  "ArrayTypeAnnotation"
]);
var isTypeParameterInstantiation = createTypeCheckFunction([
  "TSTypeParameterInstantiation",
  "TypeParameterInstantiation"
]);
 
// src/language-js/utilities/is-shorthand-specifier.js
function isShorthandSpecifier(specifier) {
  if (specifier.type !== "ImportSpecifier" && specifier.type !== "ExportSpecifier") {
    return false;
  }
  const {
    local,
    // @ts-expect-error -- FIXME
    [specifier.type === "ImportSpecifier" ? "imported" : "exported"]: importedOrExported
  } = specifier;
  if (local.type !== importedOrExported.type || !hasSameLoc(local, importedOrExported)) {
    return false;
  }
  if (isStringLiteral(local)) {
    return local.value === importedOrExported.value && getRaw(local) === getRaw(importedOrExported);
  }
  switch (local.type) {
    case "Identifier":
      return local.name === importedOrExported.name;
    default:
      return false;
  }
}
 
// src/language-js/comments/can-attach-comment.js
var isNodeCantAttachComment = createTypeCheckFunction([
  // Babel only
  "File",
  "TemplateElement",
  // There is no similar node in Babel AST
  // ```ts
  // class Foo {
  //   bar();
  //      ^^^ TSEmptyBodyFunctionExpression
  // }
  // ```
  "TSEmptyBodyFunctionExpression",
  // There is no similar node in Babel AST, `a?.b`
  "ChainExpression"
]);
var isChildWontPrint = (node, [parent]) => parent?.type === "ComponentParameter" && parent.shorthand && parent.name === node && parent.local !== parent.name || parent?.type === "MatchObjectPatternProperty" && parent.shorthand && parent.key === node || parent?.type === "ObjectProperty" && parent.shorthand && parent.key === node && parent.value !== parent.key || parent?.type === "Property" && parent.shorthand && parent.key === node && !isMethod(parent) && parent.value !== parent.key || parent?.type === "ImportSpecifier" && isShorthandSpecifier(parent) && parent.imported === node && parent.imported !== parent.local || parent?.type === "ExportSpecifier" && isShorthandSpecifier(parent) && parent.local === node && parent.local !== parent.exported;
var isClassMethodCantAttachComment = (node, [parent]) => Boolean(
  node.type === "FunctionExpression" && parent.type === "MethodDefinition" && parent.value === node && getFunctionParameters(node).length === 0 && !node.returnType && !is_non_empty_array_default(node.typeParameters) && node.body
);
var isTsAsConstTypeReference = (node, [parent]) => (
  // @ts-expect-error -- Safe
  parent?.typeAnnotation === node && isTsAsConstExpression(parent)
);
var isTsAsConst = (node, [parent, ...ancestors]) => isTsAsConstTypeReference(node, [parent]) || // @ts-expect-error -- Safe
parent?.typeName === node && isTsAsConstTypeReference(parent, ancestors);
function canAttachComment(node, ancestors) {
  if (isNodeCantAttachComment(node) || isChildWontPrint(node, ancestors) || isClassMethodCantAttachComment(node, ancestors)) {
    return false;
  }
  if (node.type === "EmptyStatement") {
    return isMeaningfulEmptyStatement({ node, parent: ancestors[0] });
  }
  if (isTsAsConst(node, ancestors)) {
    return false;
  }
  if (node.type === "TSTypeAnnotation" && ancestors[0].type === "TSPropertySignature") {
    return false;
  }
  return true;
}
var can_attach_comment_default = canAttachComment;
 
// src/main/comments/utilities.js
function describeNodeForDebugging(node) {
  const nodeType = node.type || node.kind || "(unknown type)";
  let nodeName = String(
    node.name || node.id && (typeof node.id === "object" ? node.id.name : node.id) || node.key && (typeof node.key === "object" ? node.key.name : node.key) || node.value && (typeof node.value === "object" ? "" : String(node.value)) || node.operator || ""
  );
  if (nodeName.length > 20) {
    nodeName = nodeName.slice(0, 19) + "\u2026";
  }
  return nodeType + (nodeName ? " " + nodeName : "");
}
function addCommentHelper(node, comment) {
  const comments = node.comments ?? (node.comments = []);
  comments.push(comment);
  comment.printed = false;
  comment.nodeDescription = describeNodeForDebugging(node);
}
function addLeadingComment(node, comment) {
  comment.leading = true;
  comment.trailing = false;
  addCommentHelper(node, comment);
}
function addDanglingComment(node, comment, marker) {
  comment.leading = false;
  comment.trailing = false;
  if (marker) {
    comment.marker = marker;
  }
  addCommentHelper(node, comment);
}
function addTrailingComment(node, comment) {
  comment.leading = false;
  comment.trailing = true;
  addCommentHelper(node, comment);
}
 
// src/utilities/skip.js
function skip(characters) {
  return (text, startIndex, options2) => {
    const backwards = Boolean(options2?.backwards);
    if (startIndex === false) {
      return false;
    }
    const { length } = text;
    let cursor2 = startIndex;
    while (cursor2 >= 0 && cursor2 < length) {
      const character = text.charAt(cursor2);
      if (characters instanceof RegExp) {
        if (!characters.test(character)) {
          return cursor2;
        }
      } else if (!characters.includes(character)) {
        return cursor2;
      }
      backwards ? cursor2-- : cursor2++;
    }
    if (cursor2 === -1 || cursor2 === length) {
      return cursor2;
    }
    return false;
  };
}
var skipWhitespace = skip(/\s/);
var skipSpaces = skip(" 	");
var skipToLineEnd = skip(",; 	");
var skipEverythingButNewLine = skip(/[^\n\r]/);
 
// src/utilities/skip-inline-comment.js
function skipInlineComment(text, startIndex) {
  if (startIndex === false) {
    return false;
  }
  if (text.charAt(startIndex) === "/" && text.charAt(startIndex + 1) === "*") {
    for (let i = startIndex + 2; i < text.length; ++i) {
      if (text.charAt(i) === "*" && text.charAt(i + 1) === "/") {
        return i + 2;
      }
    }
  }
  return startIndex;
}
var skip_inline_comment_default = skipInlineComment;
 
// src/utilities/skip-newline.js
var isNewlineCharacter = (character) => character === "\n" || character === "\r" || character === "\u2028" || character === "\u2029";
function skipNewline(text, startIndex, options2) {
  const backwards = Boolean(options2?.backwards);
  if (startIndex === false) {
    return false;
  }
  const character = text.charAt(startIndex);
  if (backwards) {
    if (text.charAt(startIndex - 1) === "\r" && character === "\n") {
      return startIndex - 2;
    }
    if (isNewlineCharacter(character)) {
      return startIndex - 1;
    }
  } else {
    if (character === "\r" && text.charAt(startIndex + 1) === "\n") {
      return startIndex + 2;
    }
    if (isNewlineCharacter(character)) {
      return startIndex + 1;
    }
  }
  return startIndex;
}
var skip_newline_default = skipNewline;
 
// src/utilities/skip-trailing-comment.js
function skipTrailingComment(text, startIndex) {
  if (startIndex === false) {
    return false;
  }
  if (text.charAt(startIndex) === "/" && text.charAt(startIndex + 1) === "/") {
    return skipEverythingButNewLine(text, startIndex);
  }
  return startIndex;
}
var skip_trailing_comment_default = skipTrailingComment;
 
// src/utilities/get-next-non-space-non-comment-character-index.js
function getNextNonSpaceNonCommentCharacterIndex(text, startIndex) {
  let oldIdx = null;
  let nextIdx = startIndex;
  while (nextIdx !== oldIdx) {
    oldIdx = nextIdx;
    nextIdx = skipSpaces(text, nextIdx);
    nextIdx = skip_inline_comment_default(text, nextIdx);
    nextIdx = skip_trailing_comment_default(text, nextIdx);
    nextIdx = skip_newline_default(text, nextIdx);
  }
  return nextIdx;
}
var get_next_non_space_non_comment_character_index_default = getNextNonSpaceNonCommentCharacterIndex;
 
// src/utilities/get-next-non-space-non-comment-character.js
function getNextNonSpaceNonCommentCharacter(text, startIndex) {
  const index = get_next_non_space_non_comment_character_index_default(text, startIndex);
  return index === false ? "" : text.charAt(index);
}
var get_next_non_space_non_comment_character_default = getNextNonSpaceNonCommentCharacter;
 
// src/utilities/has-newline.js
function hasNewline(text, startIndex, options2 = {}) {
  const idx = skipSpaces(
    text,
    options2.backwards ? startIndex - 1 : startIndex,
    options2
  );
  const idx2 = skip_newline_default(text, idx, options2);
  return idx !== idx2;
}
var has_newline_default = hasNewline;
 
// src/utilities/has-newline-in-range.js
function hasNewlineInRange(text, startIndex, endIndex) {
  for (let i = startIndex; i < endIndex; ++i) {
    if (text.charAt(i) === "\n") {
      return true;
    }
  }
  return false;
}
var has_newline_in_range_default = hasNewlineInRange;
 
// src/language-js/utilities/call-arguments.js
var callArgumentsCache = /* @__PURE__ */ new WeakMap();
function getCallArguments(node) {
  if (callArgumentsCache.has(node)) {
    return callArgumentsCache.get(node);
  }
  let args;
  if (node.type === "ImportExpression" || node.type === "TSImportType") {
    args = [node.source];
    if (node.options) {
      args.push(node.options);
    }
  } else if (node.type === "TSExternalModuleReference") {
    args = [node.expression];
  } else {
    args = node.arguments;
  }
  callArgumentsCache.set(node, args);
  return args;
}
function iterateCallArgumentsPath(path, iteratee) {
  const { node } = path;
  if (node.type === "ImportExpression" || node.type === "TSImportType") {
    path.call(() => iteratee(path, 0), "source");
    if (node.options) {
      path.call(() => iteratee(path, 1), "options");
    }
  } else if (node.type === "TSExternalModuleReference") {
    path.call(() => iteratee(path, 0), "expression");
  } else {
    path.each(iteratee, "arguments");
  }
}
function getCallArgumentSelector(node, index) {
  if (node.type === "ImportExpression" || node.type === "TSImportType") {
    if (index === 0 || index === (node.options ? -2 : -1)) {
      return ["source"];
    }
    if (node.options && (index === 1 || index === -1)) {
      return ["options"];
    }
    throw new RangeError("Invalid argument index");
  } else if (node.type === "TSExternalModuleReference") {
    if (index === 0 || index === -1) {
      return ["expression"];
    }
  } else {
    if (index < 0) {
      index = node.arguments.length + index;
    }
    if (index >= 0 && index < node.arguments.length) {
      return ["arguments", index];
    }
  }
  throw new RangeError("Invalid argument index");
}
 
// src/constants.js
var commentsPropertyInOptions = /* @__PURE__ */ Symbol.for("comments");
 
// scripts/build/shims/method-replace-all.js
var stringReplaceAll = String.prototype.replaceAll ?? function(pattern, replacement) {
  if (pattern.global) {
    return this.replace(pattern, replacement);
  }
  return this.split(pattern).join(replacement);
};
var replaceAll = /* @__PURE__ */ createMethodShim("replaceAll", function() {
  if (typeof this === "string") {
    return stringReplaceAll;
  }
});
var method_replace_all_default = replaceAll;
 
// src/utilities/replace-non-line-breaks-with-space.js
function replaceNonLineBreaksWithSpace(string) {
  const replaced = method_replace_all_default(
    /* OPTIONAL_OBJECT: false */
    0,
    string,
    /[^\n]/g,
    " "
  );
  if (false) {
    noop_default(replaced.length, string.length);
  }
  return replaced;
}
var replace_non_line_breaks_with_space_default = replaceNonLineBreaksWithSpace;
 
// src/language-js/utilities/strip-comments.js
function stripCommentsFromText(text, comments) {
  for (const comment of comments) {
    const start = locStart(comment);
    const end = locEnd(comment);
    text = text.slice(0, start) + replace_non_line_breaks_with_space_default(text.slice(start, end)) + text.slice(end);
  }
  return text;
}
var cache = /* @__PURE__ */ new WeakMap();
function stripComments(options2) {
  const comments = options2[commentsPropertyInOptions];
  if (!cache.has(comments)) {
    cache.set(comments, stripCommentsFromText(options2.originalText, comments));
  }
  return cache.get(comments);
}
 
// src/language-js/utilities/call-or-new-expression-parentheses.js
function getCallOrNewExpressionClosingParenthesisIndex(callOrNewExpression, options2) {
  const closingParenthesisIndex = locEnd(callOrNewExpression) - 1;
  if (options2.originalText[closingParenthesisIndex] !== ")") {
    if (false) {
      throw new Error(
        `Unable to get '${callOrNewExpression.type}' closing parenthesis.`
      );
    }
    return;
  }
  return closingParenthesisIndex;
}
function getCallOrNewExpressionOpeningParenthesisIndex(callOrNewExpression, options2) {
  const closingParenthesisIndex = getCallOrNewExpressionClosingParenthesisIndex(
    callOrNewExpression,
    options2
  );
  if (closingParenthesisIndex === void 0) {
    return;
  }
  const text = stripComments(options2);
  const start = locEnd(
    callOrNewExpression.typeArguments ?? callOrNewExpression.callee
  );
  const openingParenthesisIndex = text.indexOf("(", start);
  if (openingParenthesisIndex === -1) {
    if (false) {
      throw new Error(
        `Unable to get '${callOrNewExpression.type}' opening parenthesis.`
      );
    }
    return;
  }
  return openingParenthesisIndex;
}
function isInsideCallOrNewExpressionParentheses(callOrNewExpression, nodeOrComment, options2) {
  const closingParenthesisIndex = getCallOrNewExpressionClosingParenthesisIndex(
    callOrNewExpression,
    options2
  );
  if (closingParenthesisIndex === void 0) {
    return false;
  }
  if (locEnd(nodeOrComment) > closingParenthesisIndex) {
    return false;
  }
  const openingParenthesisIndex = getCallOrNewExpressionOpeningParenthesisIndex(
    callOrNewExpression,
    options2
  );
  if (openingParenthesisIndex === void 0) {
    return false;
  }
  return locStart(nodeOrComment) > openingParenthesisIndex;
}
 
// src/language-js/utilities/comment-types.js
var isBlockComment = createTypeCheckFunction([
  "Block",
  "CommentBlock",
  // `meriyah`
  "MultiLine"
]);
var isLineComment = createTypeCheckFunction([
  "Line",
  "CommentLine",
  // `meriyah` has `SingleLine`, `HashbangComment`, `HTMLOpen`, and `HTMLClose`
  "SingleLine",
  "HashbangComment",
  "HTMLOpen",
  "HTMLClose",
  // `espree`, and `oxc`(with `{astType: 'ts'}`)
  "Hashbang",
  // `babel` and `flow` hashbang
  "InterpreterDirective"
]);
 
// src/language-js/utilities/is-object-property.js
function isObjectProperty(node) {
  return node?.type === "ObjectProperty" || node?.type === "Property" && !isMethod(node);
}
 
// src/language-js/utilities/is-prettier-ignore-comment.js
function isPrettierIgnoreComment(comment) {
  return comment.value.trim() === "prettier-ignore" && !comment.unignore;
}
 
// src/language-js/utilities/is-type-cast-comment.js
var cache2 = /* @__PURE__ */ new WeakMap();
function isTypeCastComment(comment) {
  if (!cache2.has(comment)) {
    cache2.set(
      comment,
      isBlockComment(comment) && comment.value[0] === "*" && // TypeScript expects the type to be enclosed in curly brackets, however
      // Closure Compiler accepts types in parens and even without any delimiters at all.
      // That's why we just search for "@type" and "@satisfies".
      /@(?:type|satisfies)\b/.test(comment.value)
    );
  }
  return cache2.get(comment);
}
 
// src/language-js/comments/attach/handle-for-x-statement-comments.js
function handleForXStatementComments({
  comment,
  enclosingNode,
  followingNode,
  options: options2
}) {
  if ((enclosingNode?.type === "ForInStatement" || enclosingNode?.type === "ForOfStatement" || enclosingNode?.type === "ForStatement") && followingNode && followingNode === enclosingNode.body) {
    const closingParenthesisIndex = stripComments(options2).lastIndexOf(
      ")",
      locStart(followingNode)
    );
    if (locStart(comment) > closingParenthesisIndex) {
      addLeadingComment(followingNode, comment);
      return true;
    }
  }
  return false;
}
 
// src/language-js/comments/attach/utilities.js
var isSingleLineComment = (comment, text) => isLineComment(comment) || !has_newline_in_range_default(text, locStart(comment), locEnd(comment));
function addBlockOrNotComment(node, comment) {
  if (node.type === "BlockStatement") {
    addBlockStatementFirstComment(node, comment);
  } else {
    addLeadingComment(node, comment);
  }
}
function addBlockStatementFirstComment(node, comment) {
  const firstNonEmptyNode = (node.body || node.properties).find(
    ({ type }) => type !== "EmptyStatement"
  );
  if (firstNonEmptyNode) {
    addLeadingComment(firstNonEmptyNode, comment);
  } else {
    addDanglingComment(node, comment);
  }
}
 
// src/language-js/comments/attach/handle-if-statement-comments.js
function handleIfStatementComments({
  comment,
  precedingNode,
  enclosingNode,
  followingNode,
  text,
  options: options2
}) {
  if (enclosingNode?.type !== "IfStatement" || !followingNode) {
    return false;
  }
  const nextCharacter = get_next_non_space_non_comment_character_default(
    text,
    locEnd(comment)
  );
  if (nextCharacter === ")") {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  if (followingNode === enclosingNode.consequent) {
    addLeadingComment(followingNode, comment);
    return true;
  }
  if (precedingNode === enclosingNode.consequent && followingNode === enclosingNode.alternate) {
    return handleCommentsBetween({
      comment,
      precedingNode,
      enclosingNode,
      followingNode,
      text,
      options: options2
    });
  }
  return false;
}
function handleCommentsBetween({
  comment,
  precedingNode,
  enclosingNode,
  followingNode,
  text,
  options: options2
}) {
  const elseTokenIndex = stripComments(options2).indexOf(
    "else",
    locEnd(enclosingNode.consequent)
  );
  if (locStart(comment) >= elseTokenIndex) {
    addLeadingComment(followingNode, comment);
    return true;
  }
  const isConsequentBlockStatement = precedingNode.type === "BlockStatement";
  if (!isConsequentBlockStatement && isSingleLineComment && // Comment and `precedingNode` are on same line
  !has_newline_in_range_default(text, locEnd(precedingNode), locStart(comment))) {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  addDanglingComment(enclosingNode, comment);
  return true;
}
 
// src/language-js/comments/attach/handle-while-like-comments.js
function handleWhileLikeComments({
  comment,
  precedingNode,
  enclosingNode,
  followingNode,
  text
}) {
  if (!((enclosingNode?.type === "WhileStatement" || enclosingNode?.type === "WithStatement") && followingNode)) {
    return false;
  }
  const nextCharacter = get_next_non_space_non_comment_character_default(
    text,
    locEnd(comment)
  );
  if (nextCharacter === ")") {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  if (enclosingNode.body === followingNode) {
    addLeadingComment(followingNode, comment);
    return true;
  }
  return false;
}
 
// src/language-js/comments/handle-comments.js
function handleOwnLineComment(context) {
  return [handleCommentInEmptyParens, handleIgnoreComments, handleConditionalExpressionComments, handleLastFunctionParameterComments, handleMemberExpressionComments, handleIfStatementComments, handleWhileLikeComments, handleTryStatementComments, handleClassComments, handleForXStatementComments, handleUnionTypeComments, handleMatchOrPatternComments, handleOnlyComments, handleModuleSpecifiersComments, handleAssignmentPatternComments, handleMethodNameComments, handleLabeledStatementComments, handleNestedConditionalExpressionComments, handleCommentsInDestructuringPattern, handleTSMappedTypeComments, handleBinaryCastExpressionComment].some((fn) => fn(context));
}
function handleEndOfLineComment(context) {
  return [handleCommentInEmptyParens, handleClosureTypeCastComments, handleLastFunctionParameterComments, handleConditionalExpressionComments, handleModuleSpecifiersComments, handleIfStatementComments, handleWhileLikeComments, handleTryStatementComments, handleClassComments, handleForXStatementComments, handleLabeledStatementComments, handleCallExpressionComments, handlePropertyComments, handleOnlyComments, handleVariableDeclaratorComments, handleSwitchDefaultCaseComments, handleLastUnionElementInExpression, handleLastBinaryOperatorOperand, handleTSMappedTypeComments, handleArrowExpressionComments, handlePropertySignatureComments, handleBinaryCastExpressionComment].some((fn) => fn(context));
}
function handleRemainingComment(context) {
  return [handleCommentInEmptyParens, handleIgnoreComments, handleIfStatementComments, handleWhileLikeComments, handleForXStatementComments, handleMethodNameComments, handleOnlyComments, handleTSMappedTypeComments, handleCommentAfterArrowParams, handleFunctionNameComments, handleTSFunctionTrailingComments, handleBinaryCastExpressionComment].some((fn) => fn(context));
}
function handleClosureTypeCastComments({
  comment,
  followingNode
}) {
  if (followingNode && isTypeCastComment(comment)) {
    addLeadingComment(followingNode, comment);
    return true;
  }
  return false;
}
function handleTryStatementComments({
  comment,
  precedingNode,
  enclosingNode,
  followingNode
}) {
  if (enclosingNode?.type !== "TryStatement" && enclosingNode?.type !== "CatchClause" || !followingNode) {
    return false;
  }
  if (enclosingNode.type === "CatchClause" && precedingNode) {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  if (followingNode.type === "BlockStatement") {
    addBlockStatementFirstComment(followingNode, comment);
    return true;
  }
  if (followingNode.type === "TryStatement") {
    addBlockOrNotComment(followingNode.finalizer, comment);
    return true;
  }
  if (followingNode.type === "CatchClause") {
    addBlockOrNotComment(followingNode.body, comment);
    return true;
  }
  return false;
}
function handleMemberExpressionComments({
  comment,
  enclosingNode,
  followingNode
}) {
  if (isMemberExpression(enclosingNode) && followingNode?.type === "Identifier") {
    addLeadingComment(enclosingNode, comment);
    return true;
  }
  return false;
}
function handleNestedConditionalExpressionComments({
  comment,
  enclosingNode,
  followingNode,
  options: options2
}) {
  if (!options2.experimentalTernaries) {
    return false;
  }
  const enclosingIsCond = enclosingNode?.type === "ConditionalExpression" || isConditionalType(enclosingNode);
  if (!enclosingIsCond) {
    return false;
  }
  const followingIsCond = followingNode?.type === "ConditionalExpression" || isConditionalType(followingNode);
  if (followingIsCond) {
    addDanglingComment(enclosingNode, comment);
    return true;
  }
  return false;
}
function handleConditionalExpressionComments({
  comment,
  precedingNode,
  enclosingNode,
  followingNode,
  text,
  options: options2
}) {
  const isSameLineAsPrecedingNode = precedingNode && !has_newline_in_range_default(text, locEnd(precedingNode), locStart(comment));
  if ((!precedingNode || !isSameLineAsPrecedingNode) && (enclosingNode?.type === "ConditionalExpression" || isConditionalType(enclosingNode)) && followingNode) {
    if (options2.experimentalTernaries && enclosingNode.alternate === followingNode && !(isBlockComment(comment) && !has_newline_in_range_default(options2.originalText, locStart(comment), locEnd(comment)))) {
      addDanglingComment(enclosingNode, comment);
      return true;
    }
    addLeadingComment(followingNode, comment);
    return true;
  }
  return false;
}
var isClassLikeNode = createTypeCheckFunction(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
function handleClassComments({
  comment,
  precedingNode,
  enclosingNode,
  followingNode
}) {
  if (isClassLikeNode(enclosingNode)) {
    const {
      decorators
    } = enclosingNode;
    if (is_non_empty_array_default(decorators) && !(followingNode?.type === "Decorator")) {
      addTrailingComment(method_at_default(
        /* OPTIONAL_OBJECT: false */
        0,
        decorators,
        -1
      ), comment);
      return true;
    }
    if (enclosingNode.body && followingNode === enclosingNode.body) {
      addBlockStatementFirstComment(enclosingNode.body, comment);
      return true;
    }
    if (followingNode) {
      const {
        superClass
      } = enclosingNode;
      if (superClass && followingNode === superClass && precedingNode && (precedingNode === enclosingNode.id || precedingNode === enclosingNode.typeParameters)) {
        addTrailingComment(precedingNode, comment);
        return true;
      }
      for (const prop of ["implements", "extends", "mixins"]) {
        if (enclosingNode[prop] && followingNode === enclosingNode[prop][0]) {
          if (precedingNode && (precedingNode === enclosingNode.id || precedingNode === enclosingNode.typeParameters || precedingNode === superClass)) {
            addTrailingComment(precedingNode, comment);
          } else {
            addDanglingComment(enclosingNode, comment, prop);
          }
          return true;
        }
      }
    }
  }
  return false;
}
var isPropertyLikeNode = createTypeCheckFunction(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "TSParameterProperty"]);
function handleMethodNameComments({
  placement,
  comment,
  precedingNode,
  enclosingNode,
  followingNode,
  text
}) {
  if (enclosingNode && precedingNode && get_next_non_space_non_comment_character_default(text, locEnd(comment)) === "(" && // "MethodDefinition" is handled in `canAttachComment`
  (enclosingNode.type === "Property" || enclosingNode.type === "TSDeclareMethod" || enclosingNode.type === "TSAbstractMethodDefinition") && precedingNode.type === "Identifier" && enclosingNode.key === precedingNode && // special Property case: { key: /*comment*/(value) };
  // comment should be attached to value instead of key
  get_next_non_space_non_comment_character_default(text, locEnd(precedingNode)) !== ":") {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  if (isPropertyLikeNode(enclosingNode) && !followingNode && placement === "remaining") {
    addTrailingComment(get_next_non_space_non_comment_character_default(text, locEnd(comment)) === "(" ? precedingNode : enclosingNode, comment);
    return true;
  }
  if (precedingNode?.type === "Decorator" && isPropertyLikeNode(enclosingNode) && (isLineComment(comment) || placement === "ownLine")) {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  return false;
}
var isFunctionLikeNode = createTypeCheckFunction(["FunctionDeclaration", "FunctionExpression", "ClassMethod", "MethodDefinition", "ObjectMethod"]);
function handleFunctionNameComments({
  comment,
  precedingNode,
  enclosingNode,
  text
}) {
  if (get_next_non_space_non_comment_character_default(text, locEnd(comment)) !== "(") {
    return false;
  }
  if (precedingNode && isFunctionLikeNode(enclosingNode)) {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  return false;
}
function handleCommentAfterArrowParams({
  comment,
  enclosingNode,
  text
}) {
  if (enclosingNode?.type !== "ArrowFunctionExpression") {
    return false;
  }
  const index = get_next_non_space_non_comment_character_index_default(text, locEnd(comment));
  if (index !== false && text.slice(index, index + 2) === "=>") {
    addDanglingComment(enclosingNode, comment, "commentBeforeArrow");
    return true;
  }
  return false;
}
function isInArgumentOrParameterParentheses(node, comment, options2) {
  const commentStart = locStart(comment);
  const nodeEnd = locEnd(node);
  if (commentStart >= nodeEnd) {
    return false;
  }
  const commentEnd = locEnd(comment);
  const nodeStart = locStart(node);
  if (commentEnd <= nodeStart) {
    return false;
  }
  const text = stripComments(options2);
  return text.slice(0, locStart(comment)).trimEnd().endsWith("(") && text.slice(locEnd(comment)).trimStart().startsWith(")");
}
var isFlowComponent = createTypeCheckFunction(["ComponentDeclaration", "DeclareComponent", "ComponentTypeAnnotation"]);
function handleCommentInEmptyParens({
  comment,
  enclosingNode,
  options: options2
}) {
  if (!enclosingNode) {
    return false;
  }
  if (isCallLikeExpression(enclosingNode) && getCallArguments(enclosingNode).length === 0 && isInArgumentOrParameterParentheses(enclosingNode, comment, options2)) {
    addDanglingComment(enclosingNode, comment);
    return true;
  }
  const functionNode = isRealFunctionLikeNode(enclosingNode) || isFlowComponent(enclosingNode) || enclosingNode.type === "HookTypeAnnotation" ? enclosingNode : enclosingNode.type === "MethodDefinition" || enclosingNode.type === "TSAbstractMethodDefinition" || enclosingNode.type === "Property" && isMethod(enclosingNode) ? enclosingNode.value : void 0;
  if (functionNode && getFunctionParameters(functionNode).length === 0 && isInArgumentOrParameterParentheses(functionNode, comment, options2)) {
    addDanglingComment(functionNode, comment);
    return true;
  }
  return false;
}
function handleLastFunctionParameterComments({
  comment,
  precedingNode,
  enclosingNode,
  followingNode,
  text
}) {
  if (precedingNode?.type === "FunctionTypeParam" && enclosingNode?.type === "FunctionTypeAnnotation" && followingNode?.type !== "FunctionTypeParam") {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  if (precedingNode?.type === "ComponentTypeParameter" && (enclosingNode?.type === "DeclareComponent" || enclosingNode?.type === "ComponentTypeAnnotation") && followingNode?.type !== "ComponentTypeParameter") {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  if ((precedingNode?.type === "Identifier" || precedingNode?.type === "AssignmentPattern" || precedingNode?.type === "ObjectPattern" || precedingNode?.type === "ArrayPattern" || precedingNode?.type === "RestElement" || precedingNode?.type === "TSParameterProperty") && isRealFunctionLikeNode(enclosingNode) && get_next_non_space_non_comment_character_default(text, locEnd(comment)) === ")") {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  if ((precedingNode?.type === "ComponentParameter" || precedingNode?.type === "RestElement") && (enclosingNode?.type === "ComponentDeclaration" || enclosingNode?.type === "DeclareComponent") && get_next_non_space_non_comment_character_default(text, locEnd(comment)) === ")") {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  if (!isBlockComment(comment) && followingNode?.type === "BlockStatement" && isFunctionLikeNode(enclosingNode)) {
    const functionBody = enclosingNode.type === "MethodDefinition" ? enclosingNode.value.body : enclosingNode.body;
    if (functionBody === followingNode) {
      const characterAfterCommentIndex = get_next_non_space_non_comment_character_index_default(text, locEnd(comment));
      if (characterAfterCommentIndex === locStart(followingNode)) {
        addBlockStatementFirstComment(followingNode, comment);
        return true;
      }
    }
  }
  return false;
}
function handleLabeledStatementComments({
  comment,
  enclosingNode
}) {
  if (enclosingNode?.type === "LabeledStatement") {
    addLeadingComment(enclosingNode, comment);
    return true;
  }
  return false;
}
function handleCallExpressionComments({
  comment,
  precedingNode,
  enclosingNode,
  options: options2
}) {
  if (isCallOrNewExpression(enclosingNode) && enclosingNode.callee === precedingNode && enclosingNode.arguments.length > 0 && isInsideCallOrNewExpressionParentheses(enclosingNode, comment, options2)) {
    addLeadingComment(enclosingNode.arguments[0], comment);
    return true;
  }
  return false;
}
function handleUnionTypeComments({
  comment,
  precedingNode,
  enclosingNode,
  followingNode
}) {
  if (isUnionType(enclosingNode)) {
    if (isPrettierIgnoreComment(comment)) {
      followingNode.prettierIgnore = true;
      comment.unignore = true;
    }
    if (precedingNode) {
      addTrailingComment(precedingNode, comment);
      return true;
    }
    return false;
  }
  if (isUnionType(followingNode) && isPrettierIgnoreComment(comment)) {
    followingNode.types[0].prettierIgnore = true;
    comment.unignore = true;
  }
  return false;
}
function handleMatchOrPatternComments({
  comment,
  precedingNode,
  enclosingNode,
  followingNode
}) {
  if (enclosingNode && enclosingNode.type === "MatchOrPattern") {
    if (isPrettierIgnoreComment(comment)) {
      followingNode.prettierIgnore = true;
      comment.unignore = true;
    }
    if (precedingNode) {
      addTrailingComment(precedingNode, comment);
      return true;
    }
    return false;
  }
  if (followingNode && followingNode.type === "MatchOrPattern" && isPrettierIgnoreComment(comment)) {
    followingNode.types[0].prettierIgnore = true;
    comment.unignore = true;
  }
  return false;
}
function handlePropertyComments({
  comment,
  enclosingNode
}) {
  if (isObjectProperty(enclosingNode)) {
    addLeadingComment(enclosingNode, comment);
    return true;
  }
  return false;
}
function handleOnlyComments({
  comment,
  enclosingNode,
  ast,
  isLastComment
}) {
  if (ast?.body?.length === 0) {
    if (isLastComment) {
      addDanglingComment(ast, comment);
    } else {
      addLeadingComment(ast, comment);
    }
    return true;
  }
  if (enclosingNode?.type === "Program" && enclosingNode.body.length === 0 && !is_non_empty_array_default(enclosingNode.directives)) {
    if (isLastComment) {
      addDanglingComment(enclosingNode, comment);
    } else {
      addLeadingComment(enclosingNode, comment);
    }
    return true;
  }
  return false;
}
function handleModuleSpecifiersComments({
  comment,
  precedingNode,
  enclosingNode,
  text
}) {
  if (enclosingNode?.type === "ImportSpecifier" || enclosingNode?.type === "ExportSpecifier") {
    addLeadingComment(enclosingNode, comment);
    return true;
  }
  const isImportDeclaration = precedingNode?.type === "ImportSpecifier" && enclosingNode?.type === "ImportDeclaration";
  const isExportDeclaration2 = precedingNode?.type === "ExportSpecifier" && enclosingNode?.type === "ExportNamedDeclaration";
  if ((isImportDeclaration || isExportDeclaration2) && has_newline_default(text, locEnd(comment))) {
    addTrailingComment(precedingNode, comment);
    return true;
  }
  return false;
}
function handleAssignmentPatternComments({
  comment,
  enclosingNode
}) {
  if (enclosingNode?.type === "AssignmentPattern") {
    addLeadingComment(enclosingNode, comment);
    return true;
  }
  return false;
}
var isAssignmentLikeNode = createTypeCheckFunction(["VariableDeclarator", "AssignmentExpression", "TypeAlias", "TSTypeAliasDeclaration"]);
var isComplexExprNode = createTypeCheckFunction(["ObjectExpression", "ArrayExpression", "TemplateLiteral", "TaggedTemplateExpression", "ObjectTypeAnnotation", "TSTypeLiteral"]);
function handleVariableDeclaratorComments({
  comment,
  enclosingNode,
  followingNode
}) {
  if (isAssignmentLikeNode(enclosingNode) && followingNode && (isComplexExprNode(followingNode) || isBlockComment(comment))) {
    addLeadingComment(followingNode, comment);
    return true;
  }
  return false;
}
function handleTSFunctionTrailingComments({
  comment,
  enclosingNode,
  precedingNode,
  followingNode,
  text
}) {
  if (!followingNode && (enclosingNode?.type === "TSMethodSignature" || enclosingNode?.type === "TSDeclareFunction" || enclosingNode?.type === "TSAbstractMethodDefinition") && (!precedingNode || precedingNode !== enclosingNode.returnType) && get_next_non_space_non_comment_character_default(text, locEnd(comment)) === ";") {
    addTrailingComment(enclosingNode, comment);
    return true;
  }
  return false;
}
function handleIgnoreComments({
  comment,
  enclosingNode,
  followingNode
}) {
  if (isPrettierIgnoreComment(comment) && enclosingNode?.type === "TSMappedType" && followingNode === enclosingNode.key) {
    enclosingNode.prettierIgnore = true;
    comment.unignore = true;
    return true;
  }
}
function isBeforeMappedTypeOpeningBracket(node, comment, options2) {
  const bracketIndex = stripComments(options2).indexOf("[", locStart(node));
  return locEnd(comment) < bracketIndex;
}
function handleTSMappedTypeComments({
  comment,
  enclosingNode,
  options: options2
}) {
  if (enclosingNode?.type !== "TSMappedType") {
    return;
  }
  if (isBeforeMappedTypeOpeningBracket(enclosingNode, comment, options2)) {
    addDanglingComment(enclosingNode, comment);
    return true;
  }
}
function handleSwitchDefaultCaseComments({
  comment,
  enclosingNode,
  followingNode
}) {
  if (!enclosingNode || enclosingNode.type !== "SwitchCase" || enclosingNode.test || !followingNode || followingNode !== enclosingNode.consequent[0]) {
    return false;
  }
  if (followingNode.type === "BlockStatement" && isLineComment(comment)) {
    addBlockStatementFirstComment(followingNode, comment);
  } else {
    addDanglingComment(enclosingNode, comment);
  }
  return true;
}
function handleLastUnionElementInExpression({
  comment,
  precedingNode,
  enclosingNode,
  followingNode
}) {
  if (isUnionType(precedingNode) && (isArrayType(enclosingNode) && !followingNode || isIntersectionType(enclosingNode) || isUnionType(enclosingNode))) {
    addTrailingComment(method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      precedingNode.types,
      -1
    ), comment);
    return true;
  }
  return false;
}
function handleCommentsInDestructuringPattern({
  comment,
  enclosingNode,
  precedingNode,
  followingNode
}) {
  if ((enclosingNode?.type === "ObjectPattern" || enclosingNode?.type === "ArrayPattern") && followingNode?.type === "TSTypeAnnotation") {
    if (precedingNode) {
      addTrailingComment(precedingNode, comment);
    } else {
      addDanglingComment(enclosingNode, comment);
    }
    return true;
  }
}
function handleLastBinaryOperatorOperand({
  comment,
  precedingNode,
  enclosingNode,
  followingNode,
  text
}) {
  if (!followingNode && enclosingNode?.type === "UnaryExpression" && (precedingNode?.type === "LogicalExpression" || precedingNode?.type === "BinaryExpression")) {
    if (
      // Multiline expression
      has_newline_in_range_default(text, locStart(enclosingNode.argument), locStart(precedingNode.right)) && isSingleLineComment(comment, text) && // Comment and `precedingNode.right` are on same line
      !has_newline_in_range_default(text, locStart(precedingNode.right), locStart(comment))
    ) {
      addTrailingComment(precedingNode.right, comment);
      return true;
    }
  }
  return false;
}
function handlePropertySignatureComments({
  enclosingNode,
  followingNode,
  comment
}) {
  if (enclosingNode && (enclosingNode.type === "TSPropertySignature" || enclosingNode.type === "ObjectTypeProperty") && (isUnionType(followingNode) || isIntersectionType(followingNode))) {
    addLeadingComment(followingNode, comment);
    return true;
  }
}
function handleBinaryCastExpressionComment({
  enclosingNode,
  precedingNode,
  followingNode,
  comment,
  text
}) {
  if (isBinaryCastExpression(enclosingNode) && precedingNode === enclosingNode.expression && !isSingleLineComment(comment, text)) {
    if (followingNode) {
      addLeadingComment(followingNode, comment);
    } else {
      addTrailingComment(enclosingNode, comment);
    }
    return true;
  }
}
function isCommentBeforeArrowFunctionExpressionArrow(comment, arrowFunctionExpression, options2) {
  const arrowTokenIndex = stripComments(options2).lastIndexOf("=>", locStart(arrowFunctionExpression.body));
  return locEnd(comment) < arrowTokenIndex;
}
function handleArrowExpressionComments({
  comment,
  enclosingNode,
  followingNode,
  precedingNode,
  options: options2
}) {
  if (enclosingNode?.type !== "ArrowFunctionExpression" || !followingNode || !precedingNode) {
    return false;
  }
  const isBeforeArrow = isCommentBeforeArrowFunctionExpressionArrow(comment, enclosingNode, options2);
  if (!isBeforeArrow) {
    addBlockOrNotComment(followingNode, comment);
    return true;
  }
  return false;
}
var isRealFunctionLikeNode = createTypeCheckFunction(["ArrowFunctionExpression", "FunctionExpression", "FunctionDeclaration", "ObjectMethod", "ClassMethod", "TSDeclareFunction", "TSCallSignatureDeclaration", "TSConstructSignatureDeclaration", "TSMethodSignature", "TSConstructorType", "TSFunctionType", "TSDeclareMethod", "HookDeclaration"]);
var handleComments = {
  endOfLine: handleEndOfLineComment,
  ownLine: handleOwnLineComment,
  remaining: handleRemainingComment
};
var handle_comments_default = handleComments;
 
// src/language-js/comments/is-gap.js
function isGap(text, {
  parser
}) {
  if (parser === "flow" || parser === "hermes" || parser === "babel-flow") {
    text = method_replace_all_default(
      /* OPTIONAL_OBJECT: false */
      0,
      text,
      /[\s(]/g,
      ""
    );
    return text === "" || text === "/*" || text === "/*::";
  }
}
var is_gap_default = isGap;
 
// src/language-js/utilities/comments.js
var CommentCheckFlags = {
  /** Check comment is a leading comment */
  Leading: 1 << 1,
  /** Check comment is a trailing comment */
  Trailing: 1 << 2,
  /** Check comment is a dangling comment */
  Dangling: 1 << 3,
  /** Check comment is a block comment */
  Block: 1 << 4,
  /** Check comment is a line comment */
  Line: 1 << 5,
  /** Check comment is a `prettier-ignore` comment */
  PrettierIgnore: 1 << 6,
  /** Check comment is the first attached comment */
  First: 1 << 7,
  /** Check comment is the last attached comment */
  Last: 1 << 8
};
var getCommentTestFunction = (flags, fn) => {
  if (typeof flags === "function") {
    fn = flags;
    flags = 0;
  }
  if (flags || fn) {
    return (comment, index, comments) => !(flags & CommentCheckFlags.Leading && !comment.leading || flags & CommentCheckFlags.Trailing && !comment.trailing || flags & CommentCheckFlags.Dangling && (comment.leading || comment.trailing) || flags & CommentCheckFlags.Block && !isBlockComment(comment) || flags & CommentCheckFlags.Line && !isLineComment(comment) || flags & CommentCheckFlags.First && index !== 0 || flags & CommentCheckFlags.Last && index !== comments.length - 1 || flags & CommentCheckFlags.PrettierIgnore && !isPrettierIgnoreComment(comment) || fn && !fn(comment));
  }
};
function hasComment(node, flags, fn) {
  if (!is_non_empty_array_default(node?.comments)) {
    return false;
  }
  const test = getCommentTestFunction(flags, fn);
  return test ? node.comments.some(test) : true;
}
function getComments(node, flags, fn) {
  if (!Array.isArray(node?.comments)) {
    return [];
  }
  const test = getCommentTestFunction(flags, fn);
  return test ? node.comments.filter(test) : node.comments;
}
 
// src/language-js/utilities/has-node-ignore-comment.js
function hasNodeIgnoreComment(node) {
  return node?.prettierIgnore || hasComment(node, CommentCheckFlags.PrettierIgnore);
}
 
// src/language-js/utilities/is-iife-callee-or-tagged-template-expression-tag.js
function isIifeCalleeOrTaggedTemplateExpressionTag(path) {
  const { node } = path;
  return (node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression") && (path.key === "callee" && isCallExpression(path.parent) || path.key === "tag" && path.parent.type === "TaggedTemplateExpression");
}
 
// src/language-js/utilities/get-precedence.js
var PRECEDENCE = new Map(
  [
    ["|>"],
    ["??"],
    ["||"],
    ["&&"],
    ["|"],
    ["^"],
    ["&"],
    ["==", "===", "!=", "!=="],
    ["<", ">", "<=", ">=", "in", "instanceof"],
    [">>", "<<", ">>>"],
    ["+", "-"],
    ["*", "/", "%"],
    ["**"]
  ].flatMap(
    (operators, index) => operators.map((operator) => [operator, index])
  )
);
function getPrecedence(operator) {
  return PRECEDENCE.get(operator);
}
 
// src/language-js/utilities/should-flatten.js
var equalityOperators = {
  "==": true,
  "!=": true,
  "===": true,
  "!==": true
};
var multiplicativeOperators = {
  "*": true,
  "/": true,
  "%": true
};
var bitshiftOperators = {
  ">>": true,
  ">>>": true,
  "<<": true
};
function shouldFlatten(parentOp, nodeOp) {
  if (getPrecedence(nodeOp) !== getPrecedence(parentOp)) {
    return false;
  }
  if (parentOp === "**") {
    return false;
  }
  if (equalityOperators[parentOp] && equalityOperators[nodeOp]) {
    return false;
  }
  if (nodeOp === "%" && multiplicativeOperators[parentOp] || parentOp === "%" && multiplicativeOperators[nodeOp]) {
    return false;
  }
  if (nodeOp !== parentOp && multiplicativeOperators[nodeOp] && multiplicativeOperators[parentOp]) {
    return false;
  }
  if (bitshiftOperators[parentOp] && bitshiftOperators[nodeOp]) {
    return false;
  }
  return true;
}
 
// src/language-js/utilities/is-bitwise-operator.js
function isBitwiseOperator(operator) {
  return Boolean(bitshiftOperators[operator]) || operator === "|" || operator === "^" || operator === "&";
}
 
// src/language-js/utilities/is-nullish-coalescing.js
function isNullishCoalescing(node) {
  return node.type === "LogicalExpression" && node.operator === "??";
}
 
// src/language-js/utilities/starts-with-no-lookahead-token.js
function startsWithNoLookaheadToken(node, predicate) {
  switch (node.type) {
    case "BinaryExpression":
    case "LogicalExpression":
    case "AssignmentExpression":
    case "NGPipeExpression":
      return startsWithNoLookaheadToken(node.left, predicate);
    case "MemberExpression":
    case "OptionalMemberExpression":
      return startsWithNoLookaheadToken(node.object, predicate);
    case "TaggedTemplateExpression":
      if (node.tag.type === "FunctionExpression") {
        return false;
      }
      return startsWithNoLookaheadToken(node.tag, predicate);
    case "CallExpression":
    case "OptionalCallExpression":
      if (node.callee.type === "FunctionExpression") {
        return false;
      }
      return startsWithNoLookaheadToken(node.callee, predicate);
    case "ConditionalExpression":
      return startsWithNoLookaheadToken(node.test, predicate);
    case "UpdateExpression":
      return !node.prefix && startsWithNoLookaheadToken(node.argument, predicate);
    case "BindExpression":
      return node.object && startsWithNoLookaheadToken(node.object, predicate);
    case "SequenceExpression":
      return startsWithNoLookaheadToken(node.expressions[0], predicate);
    case "ChainExpression":
    case "TSNonNullExpression":
    case "TSSatisfiesExpression":
    case "TSAsExpression":
    case "AsExpression":
    case "AsConstExpression":
    case "SatisfiesExpression":
      return startsWithNoLookaheadToken(node.expression, predicate);
    default:
      return predicate(node);
  }
}
 
// src/language-js/parentheses/chain-expression.js
function shouldAddParenthesesToChainExpression(path) {
  const { key, parent } = path;
  return key === "expression" && parent.type === "TSNonNullExpression" || key === "object" && parent.type === "MemberExpression" && !parent.optional || key === "callee" && parent.type === "CallExpression" && !parent.optional || key === "callee" && parent.type === "NewExpression" || key === "tag" && parent.type === "TaggedTemplateExpression";
}
var isParenthesized = (node) => node.extra?.parenthesized;
var isBabelOptionalChainElement = createTypeCheckFunction([
  "OptionalCallExpression",
  "OptionalMemberExpression"
]);
function isBabelOptionalChainRoot(path) {
  const { node } = path;
  let child = node;
  while (child.type === "TSNonNullExpression") {
    child = child.expression;
    if (isParenthesized(child)) {
      return false;
    }
  }
  if (!isBabelOptionalChainElement(child)) {
    return false;
  }
  if (isParenthesized(node)) {
    return true;
  }
  return !(path.key === "expression" && path.parent.type === "TSNonNullExpression");
}
function shouldAddParenthesesToChainElement(path) {
  return (path.node.type === "ChainExpression" || isBabelOptionalChainRoot(path)) && shouldAddParenthesesToChainExpression(path);
}
 
// src/language-js/parentheses/identifier.js
function shouldAddParenthesesToIdentifier(path) {
  const { node } = path;
  if (node.type !== "Identifier") {
    return false;
  }
  if (node.extra?.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(node.name)) {
    return true;
  }
  const { key, parent } = path;
  if (key === "left" && (node.name === "async" && !parent.await || node.name === "let") && parent.type === "ForOfStatement") {
    return true;
  }
  if (node.name === "let") {
    const expression = path.findAncestor(
      (node2) => node2.type === "ForOfStatement" || node2.type === "ForInStatement"
    )?.left;
    if (expression && startsWithNoLookaheadToken(
      expression,
      (leftmostNode) => leftmostNode === node
    )) {
      return true;
    }
  }
  if (key === "object" && node.name === "let" && parent.type === "MemberExpression" && parent.computed && !parent.optional) {
    const statement = path.findAncestor(
      (node2) => node2.type === "ExpressionStatement" || node2.type === "ForStatement" || node2.type === "ForInStatement"
    );
    const expression = !statement ? void 0 : statement.type === "ExpressionStatement" ? statement.expression : statement.type === "ForStatement" ? statement.init : statement.left;
    if (expression && startsWithNoLookaheadToken(
      expression,
      (leftmostNode) => leftmostNode === node
    )) {
      return true;
    }
  }
  if (key === "expression") {
    switch (node.name) {
      case "await":
      case "interface":
      case "module":
      case "using":
      case "yield":
      case "let":
      case "component":
      case "hook":
      case "type": {
        const ancestorNeitherAsNorSatisfies = path.findAncestor(
          (node2) => !isBinaryCastExpression(node2)
        );
        if (ancestorNeitherAsNorSatisfies !== parent && ancestorNeitherAsNorSatisfies.type === "ExpressionStatement") {
          return true;
        }
      }
    }
  }
  return false;
}
 
// src/utilities/is-object.js
function isObject(object) {
  return object !== null && typeof object === "object";
}
var is_object_default = isObject;
 
// src/utilities/ast.js
function* getChildren(node, options2) {
  const { getVisitorKeys: getVisitorKeys3, filter = () => true } = options2;
  const isMatchedNode = (node2) => is_object_default(node2) && filter(node2);
  for (const key of getVisitorKeys3(node)) {
    const value = node[key];
    if (Array.isArray(value)) {
      for (const child of value) {
        if (isMatchedNode(child)) {
          yield child;
        }
      }
    } else if (isMatchedNode(value)) {
      yield value;
    }
  }
}
function* getDescendants(node, options2) {
  const queue = [node];
  for (let index = 0; index < queue.length; index++) {
    const node2 = queue[index];
    for (const child of getChildren(node2, options2)) {
      yield child;
      queue.push(child);
    }
  }
}
function hasDescendant(node, { getVisitorKeys: getVisitorKeys3, predicate }) {
  for (const descendant of getDescendants(node, { getVisitorKeys: getVisitorKeys3 })) {
    if (predicate(descendant)) {
      return true;
    }
  }
  return false;
}
 
// node_modules/to-fast-properties/index.js
var fastProto = null;
function FastObject(object) {
  if (fastProto !== null && typeof fastProto.property) {
    const result = fastProto;
    fastProto = FastObject.prototype = null;
    return result;
  }
  fastProto = FastObject.prototype = object == null ? /* @__PURE__ */ Object.create(null) : object;
  return new FastObject();
}
var inlineCacheCutoff = 10;
for (let index = 0; index <= inlineCacheCutoff; index++) {
  FastObject();
}
function toFastproperties(object) {
  return FastObject(object);
}
 
// src/utilities/create-get-visitor-keys.js
function createGetVisitorKeys(visitorKeys, typeProperty = "type") {
  toFastproperties(visitorKeys);
  function getVisitorKeys3(node) {
    const type = node[typeProperty];
    if (false) {
      throw new Error(
        `Can't get node type, you must pass the wrong typeProperty '${typeProperty}'`
      );
    }
    const keys = visitorKeys[type];
    if (!Array.isArray(keys)) {
      throw Object.assign(new Error(`Missing visitor keys for '${type}'.`), {
        node
      });
    }
    return keys;
  }
  return getVisitorKeys3;
}
var create_get_visitor_keys_default = createGetVisitorKeys;
 
// src/language-js/traverse/visitor-keys.evaluate.js
var vk = [
  ["elements"],
  ["left", "right"],
  ["value"],
  ["directives", "body"],
  ["label"],
  ["callee", "typeArguments", "arguments"],
  ["test", "consequent", "alternate"],
  ["body", "test"],
  ["expression"],
  ["left", "right", "body"],
  ["id", "typeParameters", "params", "predicate", "returnType", "body"],
  ["object", "property"],
  ["properties"],
  ["decorators", "key", "typeParameters", "params", "returnType", "body"],
  ["decorators", "key", "value"],
  ["argument"],
  ["expressions"],
  ["id", "init"],
  ["body"],
  ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body"],
  ["declaration", "specifiers", "source", "attributes"],
  ["local"],
  ["exported"],
  ["decorators", "variance", "key", "typeAnnotation", "value"],
  ["id"],
  ["key", "value"],
  ["elementType"],
  ["id", "typeParameters"],
  ["id", "typeParameters", "extends", "body"],
  ["id", "body"],
  ["typeAnnotation"],
  ["id", "typeParameters", "right"],
  ["name", "typeAnnotation"],
  ["types"],
  ["qualification", "id"],
  ["elementTypes"],
  ["expression", "typeAnnotation"],
  ["params"],
  ["members"],
  ["objectType", "indexType"],
  ["decorators", "key", "typeAnnotation", "value"],
  ["id", "typeParameters", "params", "returnType", "body"],
  ["key", "typeParameters", "params", "returnType"],
  ["typeParameters", "params", "returnType"],
  ["parameterName", "typeAnnotation"],
  ["checkType", "extendsType", "trueType", "falseType"],
  ["typeParameter"],
  ["literal"],
  ["expression", "typeArguments"],
  ["decorators", "key", "typeAnnotation"],
  ["argument", "cases"],
  ["pattern", "body", "guard"],
  ["properties", "rest"],
  ["node"]
];
var visitor_keys_evaluate_default = {
  ArrayExpression: vk[0],
  AssignmentExpression: vk[1],
  BinaryExpression: vk[1],
  InterpreterDirective: [],
  Directive: vk[2],
  DirectiveLiteral: [],
  BlockStatement: vk[3],
  BreakStatement: vk[4],
  CallExpression: vk[5],
  CatchClause: ["param", "body"],
  ConditionalExpression: vk[6],
  ContinueStatement: vk[4],
  DebuggerStatement: [],
  DoWhileStatement: vk[7],
  EmptyStatement: [],
  ExpressionStatement: vk[8],
  File: ["program"],
  ForInStatement: vk[9],
  ForStatement: ["init", "test", "update", "body"],
  FunctionDeclaration: vk[10],
  FunctionExpression: vk[10],
  Identifier: ["typeAnnotation", "decorators"],
  IfStatement: vk[6],
  LabeledStatement: ["label", "body"],
  StringLiteral: [],
  NumericLiteral: [],
  NullLiteral: [],
  BooleanLiteral: [],
  RegExpLiteral: [],
  LogicalExpression: vk[1],
  MemberExpression: vk[11],
  NewExpression: vk[5],
  Program: vk[3],
  ObjectExpression: vk[12],
  ObjectMethod: vk[13],
  ObjectProperty: vk[14],
  RestElement: ["argument", "typeAnnotation", "decorators"],
  ReturnStatement: vk[15],
  SequenceExpression: vk[16],
  ParenthesizedExpression: vk[8],
  SwitchCase: ["test", "consequent"],
  SwitchStatement: ["discriminant", "cases"],
  ThisExpression: [],
  ThrowStatement: vk[15],
  TryStatement: ["block", "handler", "finalizer"],
  UnaryExpression: vk[15],
  UpdateExpression: vk[15],
  VariableDeclaration: ["declarations"],
  VariableDeclarator: vk[17],
  WhileStatement: vk[7],
  WithStatement: ["object", "body"],
  AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"],
  ArrayPattern: ["elements", "typeAnnotation", "decorators"],
  ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"],
  ClassBody: vk[18],
  ClassExpression: vk[19],
  ClassDeclaration: vk[19],
  ExportAllDeclaration: ["source", "attributes", "exported"],
  ExportDefaultDeclaration: ["declaration"],
  ExportNamedDeclaration: vk[20],
  ExportSpecifier: ["local", "exported"],
  ForOfStatement: vk[9],
  ImportDeclaration: ["specifiers", "source", "attributes"],
  ImportDefaultSpecifier: vk[21],
  ImportNamespaceSpecifier: vk[21],
  ImportSpecifier: ["imported", "local"],
  MetaProperty: ["meta", "property"],
  ClassMethod: vk[13],
  ObjectPattern: ["decorators", "properties", "typeAnnotation"],
  SpreadElement: vk[15],
  Super: [],
  TaggedTemplateExpression: ["tag", "typeArguments", "quasi"],
  TemplateElement: [],
  TemplateLiteral: ["quasis", "expressions"],
  YieldExpression: vk[15],
  AwaitExpression: vk[15],
  ImportExpression: ["source", "options"],
  BigIntLiteral: [],
  ExportNamespaceSpecifier: vk[22],
  OptionalMemberExpression: vk[11],
  OptionalCallExpression: vk[5],
  ClassProperty: vk[23],
  ClassPrivateProperty: vk[23],
  ClassPrivateMethod: vk[13],
  PrivateName: vk[24],
  StaticBlock: vk[18],
  ImportAttribute: vk[25],
  AnyTypeAnnotation: [],
  ArrayTypeAnnotation: vk[26],
  BooleanTypeAnnotation: [],
  BooleanLiteralTypeAnnotation: [],
  NullLiteralTypeAnnotation: [],
  ClassImplements: vk[27],
  DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"],
  DeclareFunction: ["id", "predicate"],
  DeclareInterface: vk[28],
  DeclareModule: vk[29],
  DeclareModuleExports: vk[30],
  DeclareTypeAlias: vk[31],
  DeclareOpaqueType: ["id", "typeParameters", "supertype", "lowerBound", "upperBound"],
  DeclareVariable: ["id", "declarations"],
  DeclareExportDeclaration: vk[20],
  DeclareExportAllDeclaration: ["source", "attributes"],
  DeclaredPredicate: vk[2],
  ExistsTypeAnnotation: [],
  FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"],
  FunctionTypeParam: vk[32],
  GenericTypeAnnotation: vk[27],
  InferredPredicate: [],
  InterfaceExtends: vk[27],
  InterfaceDeclaration: vk[28],
  InterfaceTypeAnnotation: ["extends", "body"],
  IntersectionTypeAnnotation: vk[33],
  MixedTypeAnnotation: [],
  EmptyTypeAnnotation: [],
  NullableTypeAnnotation: vk[30],
  NumberLiteralTypeAnnotation: [],
  BigIntLiteralTypeAnnotation: [],
  NumberTypeAnnotation: [],
  ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"],
  ObjectTypeInternalSlot: ["id", "value"],
  ObjectTypeCallProperty: vk[2],
  ObjectTypeIndexer: ["variance", "id", "key", "value"],
  ObjectTypeProperty: ["key", "value", "variance"],
  ObjectTypeSpreadProperty: vk[15],
  OpaqueType: ["id", "typeParameters", "supertype", "impltype", "lowerBound", "upperBound"],
  QualifiedTypeIdentifier: vk[34],
  StringLiteralTypeAnnotation: [],
  StringTypeAnnotation: [],
  SymbolTypeAnnotation: [],
  ThisTypeAnnotation: [],
  TupleTypeAnnotation: vk[35],
  TypeofTypeAnnotation: ["argument", "typeArguments"],
  TypeAlias: vk[31],
  TypeAnnotation: vk[30],
  TypeCastExpression: vk[36],
  TypeParameter: ["bound", "default", "variance"],
  TypeParameterDeclaration: vk[37],
  TypeParameterInstantiation: vk[37],
  UnionTypeAnnotation: vk[33],
  Variance: [],
  VoidTypeAnnotation: [],
  EnumDeclaration: vk[29],
  EnumBooleanBody: vk[38],
  EnumNumberBody: vk[38],
  EnumStringBody: vk[38],
  EnumSymbolBody: vk[38],
  EnumBooleanMember: vk[17],
  EnumNumberMember: vk[17],
  EnumStringMember: vk[17],
  EnumDefaultedMember: vk[24],
  IndexedAccessType: vk[39],
  OptionalIndexedAccessType: vk[39],
  JSXAttribute: ["name", "value"],
  JSXClosingElement: ["name"],
  JSXElement: ["openingElement", "children", "closingElement"],
  JSXEmptyExpression: [],
  JSXExpressionContainer: vk[8],
  JSXSpreadChild: vk[8],
  JSXIdentifier: [],
  JSXMemberExpression: vk[11],
  JSXNamespacedName: ["namespace", "name"],
  JSXOpeningElement: ["name", "typeArguments", "attributes"],
  JSXSpreadAttribute: vk[15],
  JSXText: [],
  JSXFragment: ["openingFragment", "children", "closingFragment"],
  JSXOpeningFragment: [],
  JSXClosingFragment: [],
  Placeholder: [],
  V8IntrinsicIdentifier: [],
  ArgumentPlaceholder: [],
  BindExpression: ["object", "callee"],
  ClassAccessorProperty: vk[40],
  Decorator: vk[8],
  DoExpression: vk[18],
  ExportDefaultSpecifier: vk[22],
  ModuleExpression: vk[18],
  TopicReference: [],
  VoidPattern: [],
  TSParameterProperty: ["parameter", "decorators"],
  TSDeclareFunction: vk[41],
  TSDeclareMethod: vk[42],
  TSQualifiedName: vk[1],
  TSCallSignatureDeclaration: vk[43],
  TSConstructSignatureDeclaration: vk[43],
  TSPropertySignature: ["key", "typeAnnotation"],
  TSMethodSignature: vk[42],
  TSIndexSignature: ["parameters", "typeAnnotation"],
  TSAnyKeyword: [],
  TSBooleanKeyword: [],
  TSBigIntKeyword: [],
  TSIntrinsicKeyword: [],
  TSNeverKeyword: [],
  TSNullKeyword: [],
  TSNumberKeyword: [],
  TSObjectKeyword: [],
  TSStringKeyword: [],
  TSSymbolKeyword: [],
  TSUndefinedKeyword: [],
  TSUnknownKeyword: [],
  TSVoidKeyword: [],
  TSThisType: [],
  TSFunctionType: vk[43],
  TSConstructorType: vk[43],
  TSTypeReference: ["typeName", "typeArguments"],
  TSTypePredicate: vk[44],
  TSTypeQuery: ["exprName", "typeArguments"],
  TSTypeLiteral: vk[38],
  TSArrayType: vk[26],
  TSTupleType: vk[35],
  TSOptionalType: vk[30],
  TSRestType: vk[30],
  TSNamedTupleMember: ["label", "elementType"],
  TSUnionType: vk[33],
  TSIntersectionType: vk[33],
  TSConditionalType: vk[45],
  TSInferType: vk[46],
  TSParenthesizedType: vk[30],
  TSTypeOperator: vk[30],
  TSIndexedAccessType: vk[39],
  TSMappedType: ["key", "constraint", "nameType", "typeAnnotation"],
  TSTemplateLiteralType: ["quasis", "types"],
  TSLiteralType: vk[47],
  TSClassImplements: vk[48],
  TSInterfaceHeritage: vk[48],
  TSInterfaceDeclaration: vk[28],
  TSInterfaceBody: vk[18],
  TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"],
  TSInstantiationExpression: vk[48],
  TSAsExpression: vk[36],
  TSSatisfiesExpression: vk[36],
  TSTypeAssertion: vk[36],
  TSEnumBody: vk[38],
  TSEnumDeclaration: vk[29],
  TSEnumMember: ["id", "initializer"],
  TSModuleDeclaration: vk[29],
  TSModuleBlock: vk[18],
  TSImportType: ["source", "options", "qualifier", "typeArguments"],
  TSImportEqualsDeclaration: ["id", "moduleReference"],
  TSExternalModuleReference: vk[8],
  TSNonNullExpression: vk[8],
  TSExportAssignment: vk[8],
  TSNamespaceExportDeclaration: vk[24],
  TSTypeAnnotation: vk[30],
  TSTypeParameterInstantiation: vk[37],
  TSTypeParameterDeclaration: vk[37],
  TSTypeParameter: ["name", "constraint", "default"],
  ChainExpression: vk[8],
  Literal: [],
  MethodDefinition: vk[14],
  PrivateIdentifier: [],
  Property: vk[25],
  PropertyDefinition: vk[23],
  AccessorProperty: vk[40],
  TSAbstractAccessorProperty: vk[49],
  TSAbstractKeyword: [],
  TSAbstractMethodDefinition: vk[25],
  TSAbstractPropertyDefinition: vk[49],
  TSAsyncKeyword: [],
  TSDeclareKeyword: [],
  TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"],
  TSExportKeyword: [],
  TSPrivateKeyword: [],
  TSProtectedKeyword: [],
  TSPublicKeyword: [],
  TSReadonlyKeyword: [],
  TSStaticKeyword: [],
  AsConstExpression: vk[8],
  AsExpression: vk[36],
  BigIntTypeAnnotation: [],
  ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"],
  ComponentParameter: ["name", "local"],
  ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"],
  ComponentTypeParameter: vk[32],
  ConditionalTypeAnnotation: vk[45],
  DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"],
  DeclareEnum: vk[29],
  DeclareHook: vk[24],
  DeclareNamespace: vk[29],
  EnumBigIntBody: vk[38],
  EnumBigIntMember: vk[17],
  HookDeclaration: vk[41],
  HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"],
  InferTypeAnnotation: vk[46],
  KeyofTypeAnnotation: vk[15],
  MatchArrayPattern: ["elements", "rest"],
  MatchAsPattern: ["pattern", "target"],
  MatchBindingPattern: vk[24],
  MatchExpression: vk[50],
  MatchExpressionCase: vk[51],
  MatchIdentifierPattern: vk[24],
  MatchInstanceObjectPattern: vk[52],
  MatchInstancePattern: ["targetConstructor", "properties"],
  MatchLiteralPattern: vk[47],
  MatchMemberPattern: ["base", "property"],
  MatchObjectPattern: vk[52],
  MatchObjectPatternProperty: ["key", "pattern"],
  MatchOrPattern: ["patterns"],
  MatchRestPattern: vk[15],
  MatchStatement: vk[50],
  MatchStatementCase: vk[51],
  MatchUnaryPattern: vk[15],
  MatchWildcardPattern: [],
  NeverTypeAnnotation: [],
  ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"],
  QualifiedTypeofIdentifier: vk[34],
  RecordDeclaration: ["id", "typeParameters", "implements", "body"],
  RecordDeclarationBody: vk[0],
  RecordDeclarationImplements: ["id", "typeArguments"],
  RecordDeclarationProperty: ["key", "typeAnnotation", "defaultValue"],
  RecordDeclarationStaticProperty: ["key", "typeAnnotation", "value"],
  RecordExpression: ["recordConstructor", "typeArguments", "properties"],
  RecordExpressionProperties: vk[12],
  TupleTypeLabeledElement: ["label", "elementType", "variance"],
  TupleTypeSpreadElement: ["label", "typeAnnotation"],
  TypeOperator: vk[30],
  TypePredicate: vk[44],
  UndefinedTypeAnnotation: [],
  UnknownTypeAnnotation: [],
  NGChainedExpression: vk[16],
  NGEmptyExpression: [],
  NGPipeExpression: ["left", "right", "arguments"],
  NGMicrosyntax: vk[18],
  NGMicrosyntaxAs: ["key", "alias"],
  NGMicrosyntaxExpression: ["expression", "alias"],
  NGMicrosyntaxKey: [],
  NGMicrosyntaxKeyedExpression: ["key", "expression"],
  NGMicrosyntaxLet: vk[25],
  NGRoot: vk[53],
  JsExpressionRoot: vk[53],
  JsonRoot: vk[53],
  TSJSDocAllType: [],
  TSJSDocUnknownType: [],
  TSJSDocNullableType: vk[30],
  TSJSDocNonNullableType: vk[30],
  SatisfiesExpression: vk[36]
};
 
// src/language-js/traverse/get-visitor-keys.js
var getVisitorKeys = create_get_visitor_keys_default(visitor_keys_evaluate_default);
var get_visitor_keys_default = getVisitorKeys;
 
// src/language-js/utilities/has-node.js
function hasNode(node, predicate) {
  return predicate(node) || hasDescendant(node, { getVisitorKeys: get_visitor_keys_default, predicate });
}
 
// src/language-js/utilities/left-side.js
function hasNakedLeftSide(node) {
  return node.type === "AssignmentExpression" || node.type === "BinaryExpression" || node.type === "LogicalExpression" || node.type === "NGPipeExpression" || node.type === "ConditionalExpression" || isCallExpression(node) || isMemberExpression(node) || node.type === "SequenceExpression" || node.type === "TaggedTemplateExpression" || node.type === "BindExpression" || node.type === "UpdateExpression" && !node.prefix || isBinaryCastExpression(node) || isChainElementWrapper(node);
}
function getLeftSide(node) {
  if (node.expressions) {
    return node.expressions[0];
  }
  return node.left ?? node.test ?? node.callee ?? node.object ?? node.tag ?? node.argument ?? node.expression;
}
function getLeftSidePathName(node) {
  if (node.expressions) {
    return ["expressions", 0];
  }
  if (node.left) {
    return ["left"];
  }
  if (node.test) {
    return ["test"];
  }
  if (node.object) {
    return ["object"];
  }
  if (node.callee) {
    return ["callee"];
  }
  if (node.tag) {
    return ["tag"];
  }
  if (node.argument) {
    return ["argument"];
  }
  if (node.expression) {
    return ["expression"];
  }
  throw new Error("Unexpected node has no left side.");
}
 
// src/language-js/utilities/has-leading-own-line-comment.js
function hasLeadingOwnLineComment(text, node) {
  if (isJsxElement(node)) {
    return hasNodeIgnoreComment(node);
  }
  return hasComment(
    node,
    CommentCheckFlags.Leading,
    (comment) => has_newline_default(text, locEnd(comment))
  );
}
 
// src/language-js/utilities/return-statement-has-leading-comment.js
function returnArgumentHasLeadingCommentWithoutCache(node, options2) {
  if (hasLeadingOwnLineComment(options2.originalText, node) || hasComment(
    node,
    CommentCheckFlags.Leading,
    (comment) => has_newline_in_range_default(
      options2.originalText,
      locStart(comment),
      locEnd(comment)
    )
  ) && !isJsxElement(node)) {
    return true;
  }
  if (hasNakedLeftSide(node)) {
    let leftMost = node;
    let newLeftMost;
    while (newLeftMost = getLeftSide(leftMost)) {
      leftMost = newLeftMost;
      if (hasLeadingOwnLineComment(options2.originalText, leftMost)) {
        return true;
      }
    }
  }
  return false;
}
var cache3 = /* @__PURE__ */ new WeakMap();
function returnArgumentHasLeadingComment(node, options2) {
  if (!cache3.has(node)) {
    cache3.set(node, returnArgumentHasLeadingCommentWithoutCache(node, options2));
  }
  return cache3.get(node);
}
 
// src/language-js/utilities/strip-chain-element-wrappers.js
function stripChainElementWrappers(node) {
  while (isChainElementWrapper(node)) {
    node = node.expression;
  }
  return node;
}
 
// src/language-js/parentheses/parent-needs-parentheses.js
function parentNeedsParentheses(path, options2, needsParentheses2) {
  const { node, key, parent } = path;
  switch (parent.type) {
    case "ReturnStatement":
    case "ThrowStatement":
      if (willReturnOrThrowStatementBreak(path, options2)) {
        return false;
      }
      break;
    case "ParenthesizedExpression":
      return false;
    case "ClassDeclaration":
    case "ClassExpression":
      if (key === "superClass") {
        const superClass = stripChainElementWrappers(node);
        if (superClass.type === "ArrowFunctionExpression" || superClass.type === "AssignmentExpression" || superClass.type === "AwaitExpression" || superClass.type === "BinaryExpression" || superClass.type === "ConditionalExpression" || superClass.type === "LogicalExpression" || superClass.type === "NewExpression" || superClass.type === "ObjectExpression" || superClass.type === "SequenceExpression" || superClass.type === "TaggedTemplateExpression" || superClass.type === "UnaryExpression" || superClass.type === "UpdateExpression" || superClass.type === "YieldExpression" || superClass.type === "ClassExpression" && is_non_empty_array_default(superClass.decorators)) {
          return true;
        }
      }
      break;
    case "ExportDefaultDeclaration":
      if (shouldWrapFunctionForExportDefault(path, options2, needsParentheses2)) {
        return true;
      }
      break;
    case "Decorator":
      if (key === "expression" && !canDecoratorExpressionUnparenthesized(node)) {
        return true;
      }
      break;
    case "TypeAnnotation":
      if (path.match(
        void 0,
        void 0,
        (node2, key2) => key2 === "returnType" && node2.type === "ArrowFunctionExpression"
      ) && includesFunctionTypeInObjectType(node)) {
        return true;
      }
      break;
    case "VariableDeclarator":
      if (key === "init" && path.match(
        void 0,
        void 0,
        (node2, key2) => key2 === "declarations" && node2.type === "VariableDeclaration",
        (node2, key2) => key2 === "left" && node2.type === "ForInStatement"
      )) {
        return true;
      }
      break;
  }
}
function willReturnOrThrowStatementBreak(path, options2) {
  const { key, parent } = path;
  if (!(key === "argument" && isReturnOrThrowStatement(parent))) {
    return false;
  }
  const { node } = path;
  if ((node.type === "SequenceExpression" || node.type === "AssignmentExpression") && returnArgumentHasLeadingComment(node, options2)) {
    return true;
  }
  return false;
}
function shouldWrapFunctionForExportDefault(path, options2, needsParentheses2) {
  const { node, parent } = path;
  if (node.type === "FunctionExpression" || node.type === "ClassExpression") {
    return parent.type === "ExportDefaultDeclaration" || // in some cases the function is already wrapped
    // (e.g. `export default (function() {})();`)
    // in this case we don't need to add extra parens
    !needsParentheses2(path, options2);
  }
  if (!hasNakedLeftSide(node) || parent.type !== "ExportDefaultDeclaration" && needsParentheses2(path, options2)) {
    return false;
  }
  return path.call(
    () => shouldWrapFunctionForExportDefault(path, options2, needsParentheses2),
    ...getLeftSidePathName(node)
  );
}
function canDecoratorExpressionUnparenthesized(node) {
  if (node.type === "ChainExpression") {
    node = node.expression;
  }
  return isDecoratorMemberExpression(node) || isCallExpression(node) && // @ts-expect-error -- doesn't exists on `CallExpression`
  !node.optional && isDecoratorMemberExpression(node.callee);
}
function isDecoratorMemberExpression(node) {
  if (node.type === "Identifier") {
    return true;
  }
  if (isMemberExpression(node)) {
    return !node.computed && // @ts-expect-error -- doesn't exists on `MemberExpression`
    !node.optional && node.property.type === "Identifier" && isDecoratorMemberExpression(node.object);
  }
  return false;
}
function includesFunctionTypeInObjectType(node) {
  return hasNode(
    node,
    (node2) => node2.type === "ObjectTypeAnnotation" && hasNode(node2, (node3) => node3.type === "FunctionTypeAnnotation")
  );
}
 
// src/language-js/parentheses/needs-parentheses.js
function needsParentheses(path, options2) {
  if (path.isRoot) {
    return false;
  }
  const { node, key, parent } = path;
  if (options2.__isInHtmlInterpolation && !options2.bracketSpacing && endsWithRightBracket(node) && isFollowedByRightBracket(path)) {
    return true;
  }
  if (isStatement(node)) {
    return false;
  }
  if (node.type === "Identifier") {
    return shouldAddParenthesesToIdentifier(path);
  }
  if (node.type === "ObjectExpression" || node.type === "FunctionExpression" || node.type === "ClassExpression" || node.type === "DoExpression") {
    const expression = path.findAncestor(
      (node2) => node2.type === "ExpressionStatement"
    )?.expression;
    if (expression && startsWithNoLookaheadToken(
      expression,
      (leftmostNode) => leftmostNode === node
    )) {
      return true;
    }
  }
  if (node.type === "ObjectExpression") {
    const arrowFunctionBody = path.findAncestor(
      (node2) => node2.type === "ArrowFunctionExpression"
    )?.body;
    if (arrowFunctionBody && arrowFunctionBody.type !== "SequenceExpression" && // these have parens added anyway
    arrowFunctionBody.type !== "AssignmentExpression" && startsWithNoLookaheadToken(
      arrowFunctionBody,
      (leftmostNode) => leftmostNode === node
    )) {
      return true;
    }
  }
  const parentCheckResult = parentNeedsParentheses(
    path,
    options2,
    needsParentheses
  );
  if (typeof parentCheckResult === "boolean") {
    return parentCheckResult;
  }
  switch (node.type) {
    case "UpdateExpression":
      if (parent.type === "UnaryExpression") {
        return node.prefix && (node.operator === "++" && parent.operator === "+" || node.operator === "--" && parent.operator === "-");
      }
    // else fallthrough
    case "UnaryExpression":
      switch (parent.type) {
        case "UnaryExpression":
          return node.operator === parent.operator && (node.operator === "+" || node.operator === "-");
        case "BindExpression":
          return true;
        case "MemberExpression":
        case "OptionalMemberExpression":
          return key === "object";
        case "TaggedTemplateExpression":
          return true;
        case "NewExpression":
        case "CallExpression":
        case "OptionalCallExpression":
          return key === "callee";
        case "BinaryExpression":
          if (key === "left" && node.type === "UnaryExpression" && (parent.operator === "in" || parent.operator === "instanceof")) {
            return true;
          }
          return key === "left" && parent.operator === "**";
        case "TSNonNullExpression":
          return true;
        default:
          return false;
      }
    case "BinaryExpression":
      if (parent.type === "UpdateExpression") {
        return true;
      }
      if (node.operator === "in" && isPathInForStatementInitializer(path)) {
        return true;
      }
      if (node.operator === "|>" && node.extra?.parenthesized) {
        const grandParent = path.grandparent;
        if (grandParent.type === "BinaryExpression" && grandParent.operator === "|>") {
          return true;
        }
      }
    // fallthrough
    case "TSTypeAssertion":
    case "TSAsExpression":
    case "TSSatisfiesExpression":
    case "AsExpression":
    case "AsConstExpression":
    case "SatisfiesExpression":
    case "LogicalExpression":
      switch (parent.type) {
        case "TSAsExpression":
        case "TSSatisfiesExpression":
        case "AsExpression":
        case "AsConstExpression":
        case "SatisfiesExpression":
          return !isBinaryCastExpression(node);
        case "ConditionalExpression":
          return isBinaryCastExpression(node) || isNullishCoalescing(node);
        case "CallExpression":
        case "NewExpression":
        case "OptionalCallExpression":
          return key === "callee";
        case "ClassExpression":
        case "ClassDeclaration":
          return key === "superClass";
        case "TSTypeAssertion":
        case "TaggedTemplateExpression":
        case "JSXSpreadAttribute":
        case "SpreadElement":
        case "BindExpression":
        case "AwaitExpression":
        case "TSNonNullExpression":
        case "UpdateExpression":
          return true;
        case "UnaryExpression":
          if (!hasComment(node)) {
            return true;
          }
          break;
        case "MemberExpression":
        case "OptionalMemberExpression":
          return key === "object";
        case "AssignmentExpression":
        case "AssignmentPattern":
          return key === "left" && (node.type === "TSTypeAssertion" || isBinaryCastExpression(node));
        case "LogicalExpression":
          if (node.type === "LogicalExpression") {
            return parent.operator !== node.operator;
          }
        // else fallthrough
        case "BinaryExpression": {
          const { operator, type } = node;
          if (!operator && type !== "TSTypeAssertion") {
            return true;
          }
          const precedence = getPrecedence(operator);
          const parentOperator = parent.operator;
          const parentPrecedence = getPrecedence(parentOperator);
          if (parentPrecedence > precedence) {
            return true;
          }
          if (key === "right" && parentPrecedence === precedence) {
            return true;
          }
          if (parentPrecedence === precedence && !shouldFlatten(parentOperator, operator)) {
            return true;
          }
          if (parentPrecedence < precedence && operator === "%" && (parentOperator === "+" || parentOperator === "-")) {
            return true;
          }
          if (isBitwiseOperator(parentOperator)) {
            return true;
          }
          return false;
        }
        default:
          return false;
      }
      break;
    case "SequenceExpression":
      if (parent.type === "ForStatement") {
        return false;
      }
      return true;
    case "YieldExpression":
      if (parent.type === "AwaitExpression" || parent.type === "TSTypeAssertion") {
        return true;
      }
    // else fallthrough
    case "AwaitExpression":
      switch (parent.type) {
        case "TaggedTemplateExpression":
        case "UnaryExpression":
        case "LogicalExpression":
        case "SpreadElement":
        case "TSAsExpression":
        case "TSSatisfiesExpression":
        case "TSNonNullExpression":
        case "AsExpression":
        case "AsConstExpression":
        case "SatisfiesExpression":
        case "BindExpression":
          return true;
        case "MemberExpression":
        case "OptionalMemberExpression":
          return key === "object";
        case "NewExpression":
        case "CallExpression":
        case "OptionalCallExpression":
          return key === "callee";
        case "ConditionalExpression":
          return key === "test";
        case "BinaryExpression":
          if (!node.argument && parent.operator === "|>") {
            return false;
          }
          return true;
        default:
          return false;
      }
    case "TSFunctionType":
      if (path.match(
        (node2) => node2.type === "TSFunctionType",
        (node2, key2) => key2 === "typeAnnotation" && node2.type === "TSTypeAnnotation",
        (node2, key2) => key2 === "returnType" && node2.type === "ArrowFunctionExpression"
      )) {
        return true;
      }
    // fallthrough
    case "TSConditionalType":
    case "TSConstructorType":
    case "ConditionalTypeAnnotation":
      if (key === "extendsType" && isConditionalType(node) && parent.type === node.type) {
        return true;
      }
      if (key === "constraint" && node.type === "TSConditionalType" && parent.type === "TSTypeParameter" || key === "typeAnnotation" && node.type === "ConditionalTypeAnnotation" && parent.type === "TypeAnnotation" && path.grandparent.type === "TypeParameter" && path.grandparent.bound === parent && path.grandparent.usesExtendsBound) {
        return true;
      }
      if (key === "checkType" && isConditionalType(parent)) {
        return true;
      }
      if (key === "extendsType" && parent.type === "TSConditionalType") {
        let { typeAnnotation } = node.returnType || node.typeAnnotation;
        if (typeAnnotation.type === "TSTypePredicate" && typeAnnotation.typeAnnotation) {
          typeAnnotation = typeAnnotation.typeAnnotation.typeAnnotation;
        }
        if (typeAnnotation.type === "TSInferType" && typeAnnotation.typeParameter.constraint) {
          return true;
        }
      }
    // fallthrough
    case "TSUnionType":
    case "TSIntersectionType":
      if (isUnionType(parent) || isIntersectionType(parent)) {
        return true;
      }
    // fallthrough
    case "TSInferType":
      if (node.type === "TSInferType") {
        if (parent.type === "TSRestType") {
          return false;
        }
        if (key === "types" && (parent.type === "TSUnionType" || parent.type === "TSIntersectionType") && node.typeParameter.type === "TSTypeParameter" && node.typeParameter.constraint) {
          return true;
        }
      }
    // fallthrough
    case "TSTypeOperator":
      return parent.type === "TSArrayType" || parent.type === "TSOptionalType" || parent.type === "TSRestType" || key === "objectType" && parent.type === "TSIndexedAccessType" || parent.type === "TSTypeOperator" || parent.type === "TSTypeAnnotation" && path.grandparent.type.startsWith("TSJSDoc");
    case "TSTypeQuery":
      return key === "objectType" && parent.type === "TSIndexedAccessType" || key === "elementType" && parent.type === "TSArrayType";
    // Same as `TSTypeOperator`, but for Flow syntax
    case "TypeOperator":
      return parent.type === "ArrayTypeAnnotation" || parent.type === "NullableTypeAnnotation" || key === "objectType" && (parent.type === "IndexedAccessType" || parent.type === "OptionalIndexedAccessType") || parent.type === "TypeOperator";
    // Same as `TSTypeQuery`, but for Flow syntax
    case "TypeofTypeAnnotation":
    case "KeyofTypeAnnotation":
      return key === "objectType" && (parent.type === "IndexedAccessType" || parent.type === "OptionalIndexedAccessType") || key === "elementType" && parent.type === "ArrayTypeAnnotation";
    case "ArrayTypeAnnotation":
      return parent.type === "NullableTypeAnnotation";
    case "IntersectionTypeAnnotation":
    case "UnionTypeAnnotation":
      return parent.type === "TypeOperator" || parent.type === "KeyofTypeAnnotation" || parent.type === "ArrayTypeAnnotation" || parent.type === "NullableTypeAnnotation" || parent.type === "IntersectionTypeAnnotation" || parent.type === "UnionTypeAnnotation" || key === "objectType" && (parent.type === "IndexedAccessType" || parent.type === "OptionalIndexedAccessType");
    case "InferTypeAnnotation":
    case "NullableTypeAnnotation":
      if (parent.type === "ArrayTypeAnnotation" || key === "objectType" && (parent.type === "IndexedAccessType" || parent.type === "OptionalIndexedAccessType")) {
        return true;
      }
      if (node.type === "NullableTypeAnnotation" && path.match(
        void 0,
        (node2, key2) => key2 === "typeAnnotation" && node2.type === "TypeAnnotation",
        (node2, key2) => key2 === "returnType" && node2.type === "ArrowFunctionExpression"
      )) {
        return true;
      }
      break;
    case "ComponentTypeAnnotation":
    case "FunctionTypeAnnotation": {
      if (node.type === "ComponentTypeAnnotation" && (node.rendersType === null || node.rendersType === void 0)) {
        return false;
      }
      if (path.match(
        void 0,
        (node2, key2) => key2 === "typeAnnotation" && node2.type === "TypeAnnotation",
        (node2, key2) => key2 === "returnType" && node2.type === "ArrowFunctionExpression"
      )) {
        return true;
      }
      if (path.match(
        void 0,
        (node2, key2) => key2 === "typeAnnotation" && node2.type === "TypePredicate",
        (node2, key2) => key2 === "typeAnnotation" && node2.type === "TypeAnnotation",
        (node2, key2) => key2 === "returnType" && node2.type === "ArrowFunctionExpression"
      )) {
        return true;
      }
      const ancestor = parent.type === "NullableTypeAnnotation" ? path.grandparent : parent;
      return ancestor.type === "UnionTypeAnnotation" || ancestor.type === "IntersectionTypeAnnotation" || ancestor.type === "ArrayTypeAnnotation" || key === "objectType" && (ancestor.type === "IndexedAccessType" || ancestor.type === "OptionalIndexedAccessType") || key === "checkType" && parent.type === "ConditionalTypeAnnotation" || key === "extendsType" && parent.type === "ConditionalTypeAnnotation" && node.returnType?.type === "InferTypeAnnotation" && node.returnType.typeParameter.bound || // We should check ancestor's parent to know whether the parentheses
      // are really needed, but since ??T doesn't make sense this check
      // will almost never be true.
      ancestor.type === "NullableTypeAnnotation" || // See #5283
      parent.type === "FunctionTypeParam" && parent.name === null && getFunctionParameters(node).some(
        (param) => param.typeAnnotation?.type === "NullableTypeAnnotation"
      );
    }
    // fallthrough
    case "OptionalIndexedAccessType":
      return key === "objectType" && parent.type === "IndexedAccessType";
    case "StringLiteral":
    case "NumericLiteral":
    case "Literal":
      if (typeof node.value === "string" && parent.type === "ExpressionStatement" && typeof parent.directive !== "string") {
        const grandParent = path.grandparent;
        return grandParent.type === "Program" || grandParent.type === "BlockStatement";
      }
      return key === "object" && isMemberExpression(parent) && isNumericLiteral(node);
    case "AssignmentExpression":
      if ((key === "init" || key === "update") && parent.type === "ForStatement") {
        return false;
      }
      if (key === "expression" && node.left.type !== "ObjectPattern" && parent.type === "ExpressionStatement") {
        return false;
      }
      if (key === "key" && parent.type === "TSPropertySignature") {
        return false;
      }
      if (parent.type === "AssignmentExpression") {
        return false;
      }
      if (key === "expressions" && parent.type === "SequenceExpression" && path.match(
        void 0,
        void 0,
        (node2, name) => (name === "init" || name === "update") && node2.type === "ForStatement"
      )) {
        return false;
      }
      if (key === "value" && parent.type === "Property" && path.match(
        void 0,
        void 0,
        (node2, name) => name === "properties" && node2.type === "ObjectPattern"
      )) {
        return false;
      }
      if (parent.type === "NGChainedExpression") {
        return false;
      }
      if (key === "node" && parent.type === "JsExpressionRoot") {
        return false;
      }
      return true;
    case "ConditionalExpression":
      switch (parent.type) {
        case "TaggedTemplateExpression":
        case "UnaryExpression":
        case "SpreadElement":
        case "BinaryExpression":
        case "LogicalExpression":
        case "NGPipeExpression":
        case "ExportDefaultDeclaration":
        case "AwaitExpression":
        case "JSXSpreadAttribute":
        case "TSTypeAssertion":
        case "TypeCastExpression":
        case "TSAsExpression":
        case "TSSatisfiesExpression":
        case "AsExpression":
        case "AsConstExpression":
        case "SatisfiesExpression":
        case "TSNonNullExpression":
          return true;
        case "NewExpression":
        case "CallExpression":
        case "OptionalCallExpression":
          return key === "callee";
        case "ConditionalExpression":
          if (!options2.experimentalTernaries) {
            return key === "test";
          }
          return false;
        case "MemberExpression":
        case "OptionalMemberExpression":
          return key === "object";
        default:
          return false;
      }
    case "FunctionExpression":
      switch (parent.type) {
        case "NewExpression":
        case "CallExpression":
        case "OptionalCallExpression":
          return key === "callee";
        case "TaggedTemplateExpression":
          return true;
        // This is basically a kind of IIFE.
        case "ExportDefaultDeclaration":
          return key === "declaration";
        default:
          return false;
      }
    case "ArrowFunctionExpression":
      switch (parent.type) {
        case "BinaryExpression":
          return parent.operator !== "|>" || node.extra?.parenthesized;
        case "NewExpression":
        case "CallExpression":
        case "OptionalCallExpression":
          return key === "callee";
        case "MemberExpression":
        case "OptionalMemberExpression":
          return key === "object";
        case "TSAsExpression":
        case "TSSatisfiesExpression":
        case "AsExpression":
        case "AsConstExpression":
        case "SatisfiesExpression":
        case "TSNonNullExpression":
        case "BindExpression":
        case "TaggedTemplateExpression":
        case "UnaryExpression":
        case "LogicalExpression":
        case "AwaitExpression":
        case "TSTypeAssertion":
        case "MatchExpressionCase":
          return true;
        case "TSInstantiationExpression":
          return key === "expression";
        case "ConditionalExpression":
          return key === "test";
        default:
          return false;
      }
    case "ClassExpression":
      switch (parent.type) {
        case "NewExpression":
          return key === "callee";
        case "ExportDefaultDeclaration":
          return key === "declaration";
        default:
          return false;
      }
    case "OptionalMemberExpression":
    case "OptionalCallExpression":
    case "ChainExpression":
    case "TSNonNullExpression":
      if (shouldAddParenthesesToChainElement(path)) {
        return true;
      }
    // fallthrough
    case "CallExpression":
    case "MemberExpression":
    case "TaggedTemplateExpression":
      if (key === "callee" && (parent.type === "BindExpression" || parent.type === "NewExpression")) {
        let object = node;
        while (object) {
          switch (object.type) {
            case "CallExpression":
              return true;
            case "MemberExpression":
            case "OptionalMemberExpression":
            case "BindExpression":
              object = object.object;
              break;
            // tagged templates are basically member expressions from a grammar perspective
            // see https://tc39.github.io/ecma262/#prod-MemberExpression
            case "TaggedTemplateExpression":
              object = object.tag;
              break;
            case "TSNonNullExpression":
              object = object.expression;
              break;
            default:
              return false;
          }
        }
      }
      return false;
    case "BindExpression":
      return key === "callee" && (parent.type === "BindExpression" || parent.type === "NewExpression") || key === "object" && isMemberExpression(parent);
    case "NGPipeExpression":
      if (parent.type === "NGRoot" || parent.type === "NGMicrosyntaxExpression" || parent.type === "ObjectProperty" && // Preserve parens for compatibility with AngularJS expressions
      !node.extra?.parenthesized || isArrayExpression(parent) || key === "arguments" && isCallExpression(parent) || key === "right" && parent.type === "NGPipeExpression" || key === "property" && parent.type === "MemberExpression" || parent.type === "AssignmentExpression") {
        return false;
      }
      return true;
    case "JSXFragment":
    case "JSXElement":
      return key === "callee" || key === "left" && parent.type === "BinaryExpression" && parent.operator === "<" || !isArrayExpression(parent) && parent.type !== "ArrowFunctionExpression" && parent.type !== "AssignmentExpression" && parent.type !== "AssignmentPattern" && parent.type !== "BinaryExpression" && parent.type !== "ConditionalExpression" && parent.type !== "ExpressionStatement" && parent.type !== "JsExpressionRoot" && parent.type !== "JSXAttribute" && parent.type !== "JSXElement" && parent.type !== "JSXExpressionContainer" && parent.type !== "JSXFragment" && parent.type !== "LogicalExpression" && !isCallOrNewExpression(parent) && !isObjectProperty(parent) && !isReturnOrThrowStatement(parent) && parent.type !== "TypeCastExpression" && parent.type !== "VariableDeclarator" && parent.type !== "YieldExpression" && parent.type !== "MatchExpressionCase";
    case "TSInstantiationExpression":
      return key === "object" && isMemberExpression(parent);
    case "MatchOrPattern":
      return parent.type === "MatchAsPattern";
  }
  return false;
}
var isStatement = createTypeCheckFunction([
  "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"
]);
function isPathInForStatementInitializer(path) {
  let i = 0;
  let { node } = path;
  while (node) {
    const parent = path.getParentNode(i++);
    if (parent?.type === "ForStatement" && parent.init === node) {
      return true;
    }
    node = parent;
  }
  return false;
}
function endsWithRightBracket(node) {
  return isObjectExpression(node);
}
function isFollowedByRightBracket(path) {
  const { parent, key } = path;
  switch (parent.type) {
    case "NGPipeExpression":
      if (key === "arguments" && path.isLast) {
        return path.callParent(isFollowedByRightBracket);
      }
      break;
    case "ObjectProperty":
      if (key === "value") {
        return path.callParent(() => path.key === "properties" && path.isLast);
      }
      break;
    case "BinaryExpression":
    case "LogicalExpression":
      if (key === "right") {
        return path.callParent(isFollowedByRightBracket);
      }
      break;
    case "ConditionalExpression":
      if (key === "alternate") {
        return path.callParent(isFollowedByRightBracket);
      }
      break;
    case "UnaryExpression":
      if (parent.prefix && path.callParent(isFollowedByRightBracket)) {
        return true;
      }
      break;
  }
  return false;
}
var needs_parentheses_default = needsParentheses;
 
// src/document/builders/types.js
var DOC_TYPE_STRING = (
  /** @type {const} */
  "string"
);
var DOC_TYPE_ARRAY = (
  /** @type {const} */
  "array"
);
var DOC_TYPE_CURSOR = (
  /** @type {const} */
  "cursor"
);
var DOC_TYPE_INDENT = (
  /** @type {const} */
  "indent"
);
var DOC_TYPE_ALIGN = (
  /** @type {const} */
  "align"
);
var DOC_TYPE_TRIM = (
  /** @type {const} */
  "trim"
);
var DOC_TYPE_GROUP = (
  /** @type {const} */
  "group"
);
var DOC_TYPE_FILL = (
  /** @type {const} */
  "fill"
);
var DOC_TYPE_IF_BREAK = (
  /** @type {const} */
  "if-break"
);
var DOC_TYPE_INDENT_IF_BREAK = (
  /** @type {const} */
  "indent-if-break"
);
var DOC_TYPE_LINE_SUFFIX = (
  /** @type {const} */
  "line-suffix"
);
var DOC_TYPE_LINE_SUFFIX_BOUNDARY = (
  /** @type {const} */
  "line-suffix-boundary"
);
var DOC_TYPE_LINE = (
  /** @type {const} */
  "line"
);
var DOC_TYPE_LABEL = (
  /** @type {const} */
  "label"
);
var DOC_TYPE_BREAK_PARENT = (
  /** @type {const} */
  "break-parent"
);
var VALID_OBJECT_DOC_TYPES = /* @__PURE__ */ new Set([
  DOC_TYPE_CURSOR,
  DOC_TYPE_INDENT,
  DOC_TYPE_ALIGN,
  DOC_TYPE_TRIM,
  DOC_TYPE_GROUP,
  DOC_TYPE_FILL,
  DOC_TYPE_IF_BREAK,
  DOC_TYPE_INDENT_IF_BREAK,
  DOC_TYPE_LINE_SUFFIX,
  DOC_TYPE_LINE_SUFFIX_BOUNDARY,
  DOC_TYPE_LINE,
  DOC_TYPE_LABEL,
  DOC_TYPE_BREAK_PARENT
]);
 
// src/document/utilities/get-doc-type.js
function getDocType(doc) {
  if (typeof doc === "string") {
    return DOC_TYPE_STRING;
  }
  if (Array.isArray(doc)) {
    return DOC_TYPE_ARRAY;
  }
  if (!doc) {
    return;
  }
  const { type } = doc;
  if (VALID_OBJECT_DOC_TYPES.has(type)) {
    return type;
  }
}
var get_doc_type_default = getDocType;
 
// src/document/utilities/invalid-doc-error.js
var disjunctionListFormat = (list) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(list);
function getDocErrorMessage(doc) {
  const type = doc === null ? "null" : typeof doc;
  if (type !== "string" && type !== "object") {
    return `Unexpected doc '${type}', 
Expected it to be 'string' or 'object'.`;
  }
  if (get_doc_type_default(doc)) {
    throw new Error("doc is valid.");
  }
  const objectType = Object.prototype.toString.call(doc);
  if (objectType !== "[object Object]") {
    return `Unexpected doc '${objectType}'.`;
  }
  const EXPECTED_TYPE_VALUES = disjunctionListFormat(
    [...VALID_OBJECT_DOC_TYPES].map((type2) => `'${type2}'`)
  );
  return `Unexpected doc.type '${doc.type}'.
Expected it to be ${EXPECTED_TYPE_VALUES}.`;
}
var InvalidDocError = class extends Error {
  name = "InvalidDocError";
  constructor(doc) {
    super(getDocErrorMessage(doc));
    this.doc = doc;
  }
};
var invalid_doc_error_default = InvalidDocError;
 
// src/document/utilities/traverse-doc.js
var traverseDocOnExitStackMarker = {};
function traverseDoc(doc, onEnter, onExit, shouldTraverseConditionalGroups) {
  const docsStack = [doc];
  while (docsStack.length > 0) {
    const doc2 = docsStack.pop();
    if (doc2 === traverseDocOnExitStackMarker) {
      onExit(docsStack.pop());
      continue;
    }
    if (onExit) {
      docsStack.push(doc2, traverseDocOnExitStackMarker);
    }
    const docType = get_doc_type_default(doc2);
    if (!docType) {
      throw new invalid_doc_error_default(doc2);
    }
    if (onEnter?.(doc2) === false) {
      continue;
    }
    switch (docType) {
      case DOC_TYPE_ARRAY:
      case DOC_TYPE_FILL: {
        const parts = docType === DOC_TYPE_ARRAY ? doc2 : doc2.parts;
        for (let ic = parts.length, i = ic - 1; i >= 0; --i) {
          docsStack.push(parts[i]);
        }
        break;
      }
      case DOC_TYPE_IF_BREAK:
        docsStack.push(doc2.flatContents, doc2.breakContents);
        break;
      case DOC_TYPE_GROUP:
        if (shouldTraverseConditionalGroups && doc2.expandedStates) {
          for (let ic = doc2.expandedStates.length, i = ic - 1; i >= 0; --i) {
            docsStack.push(doc2.expandedStates[i]);
          }
        } else {
          docsStack.push(doc2.contents);
        }
        break;
      case DOC_TYPE_ALIGN:
      case DOC_TYPE_INDENT:
      case DOC_TYPE_INDENT_IF_BREAK:
      case DOC_TYPE_LABEL:
      case DOC_TYPE_LINE_SUFFIX:
        docsStack.push(doc2.contents);
        break;
      case DOC_TYPE_STRING:
      case DOC_TYPE_CURSOR:
      case DOC_TYPE_TRIM:
      case DOC_TYPE_LINE_SUFFIX_BOUNDARY:
      case DOC_TYPE_LINE:
      case DOC_TYPE_BREAK_PARENT:
        break;
      default:
        throw new invalid_doc_error_default(doc2);
    }
  }
}
var traverse_doc_default = traverseDoc;
 
// src/document/utilities/index.js
function mapDoc(doc, cb) {
  if (typeof doc === "string") {
    return cb(doc);
  }
  const mapped = /* @__PURE__ */ new Map();
  return rec(doc);
  function rec(doc2) {
    if (mapped.has(doc2)) {
      return mapped.get(doc2);
    }
    const result = process2(doc2);
    mapped.set(doc2, result);
    return result;
  }
  function process2(doc2) {
    switch (get_doc_type_default(doc2)) {
      case DOC_TYPE_ARRAY:
        return cb(doc2.map(rec));
      case DOC_TYPE_FILL:
        return cb({
          ...doc2,
          parts: doc2.parts.map(rec)
        });
      case DOC_TYPE_IF_BREAK:
        return cb({
          ...doc2,
          breakContents: rec(doc2.breakContents),
          flatContents: rec(doc2.flatContents)
        });
      case DOC_TYPE_GROUP: {
        let {
          expandedStates,
          contents
        } = doc2;
        if (expandedStates) {
          expandedStates = expandedStates.map(rec);
          contents = expandedStates[0];
        } else {
          contents = rec(contents);
        }
        return cb({
          ...doc2,
          contents,
          expandedStates
        });
      }
      case DOC_TYPE_ALIGN:
      case DOC_TYPE_INDENT:
      case DOC_TYPE_INDENT_IF_BREAK:
      case DOC_TYPE_LABEL:
      case DOC_TYPE_LINE_SUFFIX:
        return cb({
          ...doc2,
          contents: rec(doc2.contents)
        });
      case DOC_TYPE_STRING:
      case DOC_TYPE_CURSOR:
      case DOC_TYPE_TRIM:
      case DOC_TYPE_LINE_SUFFIX_BOUNDARY:
      case DOC_TYPE_LINE:
      case DOC_TYPE_BREAK_PARENT:
        return cb(doc2);
      default:
        throw new invalid_doc_error_default(doc2);
    }
  }
}
function findInDoc(doc, fn, defaultValue) {
  let result = defaultValue;
  let shouldSkipFurtherProcessing = false;
  function findInDocOnEnterFn(doc2) {
    if (shouldSkipFurtherProcessing) {
      return false;
    }
    const maybeResult = fn(doc2);
    if (maybeResult !== void 0) {
      shouldSkipFurtherProcessing = true;
      result = maybeResult;
    }
  }
  traverse_doc_default(doc, findInDocOnEnterFn);
  return result;
}
function willBreakFn(doc) {
  if (doc.type === DOC_TYPE_GROUP && doc.break) {
    return true;
  }
  if (doc.type === DOC_TYPE_LINE && doc.hard) {
    return true;
  }
  if (doc.type === DOC_TYPE_BREAK_PARENT) {
    return true;
  }
}
function willBreak(doc) {
  return findInDoc(doc, willBreakFn, false);
}
function breakParentGroup(groupStack) {
  if (groupStack.length > 0) {
    const parentGroup = method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      groupStack,
      -1
    );
    if (!parentGroup.expandedStates && !parentGroup.break) {
      parentGroup.break = "propagated";
    }
  }
  return null;
}
function propagateBreaks(doc) {
  const alreadyVisitedSet = /* @__PURE__ */ new Set();
  const groupStack = [];
  function propagateBreaksOnEnterFn(doc2) {
    if (doc2.type === DOC_TYPE_BREAK_PARENT) {
      breakParentGroup(groupStack);
    }
    if (doc2.type === DOC_TYPE_GROUP) {
      groupStack.push(doc2);
      if (alreadyVisitedSet.has(doc2)) {
        return false;
      }
      alreadyVisitedSet.add(doc2);
    }
  }
  function propagateBreaksOnExitFn(doc2) {
    if (doc2.type === DOC_TYPE_GROUP) {
      const group2 = groupStack.pop();
      if (group2.break) {
        breakParentGroup(groupStack);
      }
    }
  }
  traverse_doc_default(
    doc,
    propagateBreaksOnEnterFn,
    propagateBreaksOnExitFn,
    /* shouldTraverseConditionalGroups */
    true
  );
}
function removeLinesFn(doc) {
  if (doc.type === DOC_TYPE_LINE && !doc.hard) {
    return doc.soft ? "" : " ";
  }
  if (doc.type === DOC_TYPE_IF_BREAK) {
    return doc.flatContents;
  }
  return doc;
}
function removeLines(doc) {
  return mapDoc(doc, removeLinesFn);
}
function cleanDocFn(doc) {
  switch (get_doc_type_default(doc)) {
    case DOC_TYPE_FILL:
      if (doc.parts.every((part) => part === "")) {
        return "";
      }
      break;
    case DOC_TYPE_GROUP:
      if (!doc.contents && !doc.id && !doc.break && !doc.expandedStates) {
        return "";
      }
      if (doc.contents.type === DOC_TYPE_GROUP && doc.contents.id === doc.id && doc.contents.break === doc.break && doc.contents.expandedStates === doc.expandedStates) {
        return doc.contents;
      }
      break;
    case DOC_TYPE_ALIGN:
    case DOC_TYPE_INDENT:
    case DOC_TYPE_INDENT_IF_BREAK:
    case DOC_TYPE_LINE_SUFFIX:
      if (!doc.contents) {
        return "";
      }
      break;
    case DOC_TYPE_IF_BREAK:
      if (!doc.flatContents && !doc.breakContents) {
        return "";
      }
      break;
    case DOC_TYPE_ARRAY: {
      const parts = [];
      for (const part of doc) {
        if (!part) {
          continue;
        }
        const [currentPart, ...restParts] = Array.isArray(part) ? part : [part];
        if (typeof currentPart === "string" && typeof method_at_default(
          /* OPTIONAL_OBJECT: false */
          0,
          parts,
          -1
        ) === "string") {
          parts[parts.length - 1] += currentPart;
        } else {
          parts.push(currentPart);
        }
        parts.push(...restParts);
      }
      if (parts.length === 0) {
        return "";
      }
      if (parts.length === 1) {
        return parts[0];
      }
      return parts;
    }
    case DOC_TYPE_STRING:
    case DOC_TYPE_CURSOR:
    case DOC_TYPE_TRIM:
    case DOC_TYPE_LINE_SUFFIX_BOUNDARY:
    case DOC_TYPE_LINE:
    case DOC_TYPE_LABEL:
    case DOC_TYPE_BREAK_PARENT:
      break;
    default:
      throw new invalid_doc_error_default(doc);
  }
  return doc;
}
function cleanDoc(doc) {
  return mapDoc(doc, (currentDoc) => cleanDocFn(currentDoc));
}
function replaceEndOfLine(doc, replacement = literalline) {
  return mapDoc(doc, (currentDoc) => typeof currentDoc === "string" ? join(replacement, currentDoc.split("\n")) : currentDoc);
}
function canBreakFn(doc) {
  if (doc.type === DOC_TYPE_LINE) {
    return true;
  }
}
function canBreak(doc) {
  return findInDoc(doc, canBreakFn, false);
}
function inheritLabel(doc, fn) {
  return doc.type === DOC_TYPE_LABEL ? {
    ...doc,
    contents: fn(doc.contents)
  } : fn(doc);
}
function isEmptyDoc(doc) {
  let isEmpty = true;
  traverse_doc_default(doc, (doc2) => {
    switch (get_doc_type_default(doc2)) {
      case DOC_TYPE_STRING:
        if (doc2 === "") {
          break;
        }
      // fallthrough
      case DOC_TYPE_TRIM:
      case DOC_TYPE_LINE_SUFFIX_BOUNDARY:
      case DOC_TYPE_LINE:
      case DOC_TYPE_BREAK_PARENT:
        isEmpty = false;
        return false;
    }
  });
  return isEmpty;
}
 
// src/document/utilities/assert-doc.js
var assertDoc = true ? noop_default : (
  /**
  @param {Doc} doc
  */
  function(doc) {
    traverse_doc_default(doc, (doc2) => {
      if (typeof doc2 === "string" || checked.has(doc2)) {
        return false;
      }
      checked.add(doc2);
    });
  }
);
var assertDocArray = true ? noop_default : (
  /**
  @param {readonly Doc[]} docs
  @param {boolean} [optional = false]
  */
  function(docs, optional = false) {
    if (optional && !docs) {
      return;
    }
    if (!Array.isArray(docs)) {
      throw new TypeError("Unexpected doc array.");
    }
    for (const doc of docs) {
      assertDoc(doc);
    }
  }
);
var assertDocFillParts = true ? noop_default : (
  /**
  @param {readonly Doc[]} parts
  */
  function(parts) {
    assertDocArray(parts);
    if (parts.length > 1 && isEmptyDoc(method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      parts,
      -1
    ))) {
      parts = parts.slice(0, -1);
    }
    for (const [i, doc] of parts.entries()) {
      if (i % 2 === 1 && !isValidSeparator(doc)) {
        const type = get_doc_type_default(doc);
        throw new Error(`Unexpected non-line-break doc at ${i}. Doc type is ${type}.`);
      }
    }
  }
);
var assertAlignType = true ? noop_default : function(alignType) {
  if (!(typeof alignType === "number" || typeof alignType === "string" || alignType?.type === "root")) {
    throw new TypeError(`Invalid alignType '${alignType}'.`);
  }
};
 
// src/document/builders/indent.js
function indent(contents) {
  assertDoc(contents);
  return { type: DOC_TYPE_INDENT, contents };
}
 
// src/document/builders/align.js
function align(alignType, contents) {
  assertAlignType(alignType);
  assertDoc(contents);
  return { type: DOC_TYPE_ALIGN, contents, n: alignType };
}
function dedentToRoot(contents) {
  return align(Number.NEGATIVE_INFINITY, contents);
}
function markAsRoot(contents) {
  return align({ type: "root" }, contents);
}
function dedent(contents) {
  return align(-1, contents);
}
function addAlignmentToDoc(doc, size, tabWidth) {
  assertDoc(doc);
  let aligned = doc;
  if (size > 0) {
    for (let level = 0; level < Math.floor(size / tabWidth); ++level) {
      aligned = indent(aligned);
    }
    aligned = align(size % tabWidth, aligned);
    aligned = align(Number.NEGATIVE_INFINITY, aligned);
  }
  return aligned;
}
 
// src/document/builders/break-parent.js
var breakParent = { type: DOC_TYPE_BREAK_PARENT };
 
// src/document/builders/cursor.js
var cursor = { type: DOC_TYPE_CURSOR };
 
// src/document/builders/fill.js
function fill(parts) {
  assertDocFillParts(parts);
  return { type: DOC_TYPE_FILL, parts };
}
 
// src/document/builders/group.js
function group(contents, options2 = {}) {
  assertDoc(contents);
  assertDocArray(
    options2.expandedStates,
    /* optional */
    true
  );
  return {
    type: DOC_TYPE_GROUP,
    id: options2.id,
    contents,
    break: Boolean(options2.shouldBreak),
    expandedStates: options2.expandedStates
  };
}
function conditionalGroup(states, options2) {
  return group(states[0], { ...options2, expandedStates: states });
}
 
// src/document/builders/if-break.js
function ifBreak(breakContents, flatContents = "", options2 = {}) {
  assertDoc(breakContents);
  if (flatContents !== "") {
    assertDoc(flatContents);
  }
  return {
    type: DOC_TYPE_IF_BREAK,
    breakContents,
    flatContents,
    groupId: options2.groupId
  };
}
 
// src/document/builders/indent-if-break.js
function indentIfBreak(contents, options2) {
  assertDoc(contents);
  return {
    type: DOC_TYPE_INDENT_IF_BREAK,
    contents,
    groupId: options2.groupId,
    negate: options2.negate
  };
}
 
// src/document/builders/join.js
function join(separator, docs) {
  assertDoc(separator);
  assertDocArray(docs);
  const parts = [];
  for (let i = 0; i < docs.length; i++) {
    if (i !== 0) {
      parts.push(separator);
    }
    parts.push(docs[i]);
  }
  return parts;
}
 
// src/document/builders/label.js
function label(label2, contents) {
  assertDoc(contents);
  return label2 ? { type: DOC_TYPE_LABEL, label: label2, contents } : contents;
}
 
// src/document/builders/line.js
var line = { type: DOC_TYPE_LINE };
var softline = { type: DOC_TYPE_LINE, soft: true };
var hardlineWithoutBreakParent = { type: DOC_TYPE_LINE, hard: true };
var hardline = [hardlineWithoutBreakParent, breakParent];
var literallineWithoutBreakParent = {
  type: DOC_TYPE_LINE,
  hard: true,
  literal: true
};
var literalline = [literallineWithoutBreakParent, breakParent];
 
// src/document/builders/line-suffix.js
function lineSuffix(contents) {
  assertDoc(contents);
  return { type: DOC_TYPE_LINE_SUFFIX, contents };
}
 
// src/document/builders/line-suffix-boundary.js
var lineSuffixBoundary = { type: DOC_TYPE_LINE_SUFFIX_BOUNDARY };
 
// src/common/end-of-line.js
var OPTION_CR = "cr";
var OPTION_CRLF = "crlf";
var CHARACTER_CR = "\r";
var CHARACTER_CRLF = "\r\n";
var CHARACTER_LF = "\n";
var DEFAULT_EOL = CHARACTER_LF;
function convertEndOfLineOptionToCharacter(endOfLineOption) {
  return endOfLineOption === OPTION_CR ? CHARACTER_CR : endOfLineOption === OPTION_CRLF ? CHARACTER_CRLF : DEFAULT_EOL;
}
 
// node_modules/emoji-regex/index.mjs
var emoji_regex_default = () => {
  return /[#*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;
};
 
// node_modules/get-east-asian-width/lookup.js
function isFullWidth(x) {
  return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
}
function isWide(x) {
  return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x >= 94192 && x <= 94198 || x >= 94208 && x <= 101589 || x >= 101631 && x <= 101662 || x >= 101760 && x <= 101874 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128728 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129674 || x >= 129678 && x <= 129734 || x === 129736 || x >= 129741 && x <= 129756 || x >= 129759 && x <= 129770 || x >= 129775 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
}
 
// node_modules/narrow-emojis/index.js
var narrowEmojiRegexp = /^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\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])$/;
var isNarrowEmojiCharacter = (character) => narrowEmojiRegexp.test(character);
 
// src/utilities/get-string-width.js
var notAsciiRegex = /[^\x20-\x7F]/;
function getStringWidth(text) {
  if (!text) {
    return 0;
  }
  if (!notAsciiRegex.test(text)) {
    return text.length;
  }
  let width = 0;
  text = text.replace(emoji_regex_default(), (character) => {
    width += isNarrowEmojiCharacter(character) ? 1 : 2;
    return "";
  });
  for (const character of text) {
    const codePoint = character.codePointAt(0);
    if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
      continue;
    }
    if (codePoint >= 768 && codePoint <= 879) {
      continue;
    }
    if (codePoint >= 65024 && codePoint <= 65039) {
      continue;
    }
    width += isFullWidth(codePoint) || isWide(codePoint) ? 2 : 1;
  }
  return width;
}
var get_string_width_default = getStringWidth;
 
// src/document/printer/indent.js
var INDENT_COMMAND_TYPE_INDENT = 0;
var INDENT_COMMAND_TYPE_DEDENT = 1;
var INDENT_COMMAND_TYPE_WIDTH = 2;
var INDENT_COMMAND_TYPE_STRING = 3;
var INDENT_COMMAND_INDENT = { type: INDENT_COMMAND_TYPE_INDENT };
var INDENT_COMMAND_DEDENT = { type: INDENT_COMMAND_TYPE_DEDENT };
var ROOT_INDENT = {
  value: "",
  length: 0,
  queue: [],
  get root() {
    return ROOT_INDENT;
  }
};
function generateIndent(indent2, command, options2) {
  const queue = command.type === INDENT_COMMAND_TYPE_DEDENT ? indent2.queue.slice(0, -1) : [...indent2.queue, command];
  let value = "";
  let length = 0;
  let lastTabs = 0;
  let lastSpaces = 0;
  for (const command2 of queue) {
    switch (command2.type) {
      case INDENT_COMMAND_TYPE_INDENT:
        flush();
        if (options2.useTabs) {
          addTabs(1);
        } else {
          addSpaces(options2.tabWidth);
        }
        break;
      case INDENT_COMMAND_TYPE_STRING: {
        const { string } = command2;
        flush();
        value += string;
        length += string.length;
        break;
      }
      case INDENT_COMMAND_TYPE_WIDTH: {
        const { width } = command2;
        lastTabs += 1;
        lastSpaces += width;
        break;
      }
      default:
        throw new Error(`Unexpected indent comment '${command2.type}'.`);
    }
  }
  flushSpaces();
  return { ...indent2, value, length, queue };
  function addTabs(count) {
    value += "	".repeat(count);
    length += options2.tabWidth * count;
  }
  function addSpaces(count) {
    value += " ".repeat(count);
    length += count;
  }
  function flush() {
    if (options2.useTabs) {
      flushTabs();
    } else {
      flushSpaces();
    }
  }
  function flushTabs() {
    if (lastTabs > 0) {
      addTabs(lastTabs);
    }
    resetLast();
  }
  function flushSpaces() {
    if (lastSpaces > 0) {
      addSpaces(lastSpaces);
    }
    resetLast();
  }
  function resetLast() {
    lastTabs = 0;
    lastSpaces = 0;
  }
}
function makeAlign(indent2, indentOptions, options2) {
  if (!indentOptions) {
    return indent2;
  }
  if (indentOptions.type === "root") {
    return { ...indent2, root: indent2 };
  }
  if (indentOptions === Number.NEGATIVE_INFINITY) {
    return indent2.root;
  }
  let command;
  if (typeof indentOptions === "number") {
    if (indentOptions < 0) {
      command = INDENT_COMMAND_DEDENT;
    } else {
      command = { type: INDENT_COMMAND_TYPE_WIDTH, width: indentOptions };
    }
  } else {
    command = { type: INDENT_COMMAND_TYPE_STRING, string: indentOptions };
  }
  return generateIndent(indent2, command, options2);
}
function makeIndent(indent2, options2) {
  return generateIndent(indent2, INDENT_COMMAND_INDENT, options2);
}
 
// src/document/printer/trim-indentation.js
function getTrailingIndentionLength(text) {
  let length = 0;
  for (let index = text.length - 1; index >= 0; index--) {
    const character = text[index];
    if (character === " " || character === "	") {
      length++;
    } else {
      break;
    }
  }
  return length;
}
function trimIndentation(text) {
  const length = getTrailingIndentionLength(text);
  const trimmed = length === 0 ? text : text.slice(0, text.length - length);
  return { text: trimmed, count: length };
}
 
// src/document/printer/print-result.js
var printResult = class {
  /** @type {string[]} */
  #settledTexts = [];
  #unsettledText = "";
  #settledTextLength = 0;
  /** @type {number[]} */
  #settledPositions = [];
  /** @type {number[]} */
  #unsettledPositions = [];
  #settle() {
    const text = this.#unsettledText;
    if (text !== "") {
      this.#settledTexts.push(text);
      this.#settledTextLength += text.length;
      this.#unsettledText = "";
    }
    for (const position of this.#unsettledPositions) {
      this.#settledPositions.push(Math.min(position, this.#settledTextLength));
    }
    this.#unsettledPositions.length = 0;
  }
  markPosition() {
    if (this.#settledPositions.length + this.#unsettledPositions.length >= 2) {
      throw new Error("There are too many 'cursor' in doc.");
    }
    this.#unsettledPositions.push(
      this.#settledTextLength + this.#unsettledText.length
    );
  }
  /**
  @param {string} text
  */
  write(text) {
    this.#unsettledText += text;
  }
  trim() {
    const { text: trimmed, count } = trimIndentation(this.#unsettledText);
    this.#unsettledText = trimmed;
    this.#settle();
    return count;
  }
  finish() {
    this.#settle();
    return {
      text: this.#settledTexts.join(""),
      positions: this.#settledPositions
    };
  }
};
var print_result_default = printResult;
 
// src/document/printer/printer.js
var MODE_BREAK = /* @__PURE__ */ Symbol("MODE_BREAK");
var MODE_FLAT = /* @__PURE__ */ Symbol("MODE_FLAT");
var DOC_FILL_PRINTED_LENGTH = /* @__PURE__ */ Symbol("DOC_FILL_PRINTED_LENGTH");
function fits(next, restCommands, remainingWidth, hasLineSuffix, groupModeMap, mustBeFlat) {
  if (remainingWidth === Number.POSITIVE_INFINITY) {
    return true;
  }
  let restCommandsIndex = restCommands.length;
  let hasPendingSpace = false;
  const commands = [next];
  let output = "";
  while (remainingWidth >= 0) {
    if (commands.length === 0) {
      if (restCommandsIndex === 0) {
        return true;
      }
      commands.push(restCommands[--restCommandsIndex]);
      continue;
    }
    const {
      mode,
      doc
    } = commands.pop();
    const docType = get_doc_type_default(doc);
    switch (docType) {
      case DOC_TYPE_STRING:
        if (doc) {
          if (hasPendingSpace) {
            output += " ";
            remainingWidth -= 1;
            hasPendingSpace = false;
          }
          output += doc;
          remainingWidth -= get_string_width_default(doc);
        }
        break;
      case DOC_TYPE_ARRAY:
      case DOC_TYPE_FILL: {
        const parts = docType === DOC_TYPE_ARRAY ? doc : doc.parts;
        const end = doc[DOC_FILL_PRINTED_LENGTH] ?? 0;
        for (let index = parts.length - 1; index >= end; index--) {
          commands.push({
            mode,
            doc: parts[index]
          });
        }
        break;
      }
      case DOC_TYPE_INDENT:
      case DOC_TYPE_ALIGN:
      case DOC_TYPE_INDENT_IF_BREAK:
      case DOC_TYPE_LABEL:
        commands.push({
          mode,
          doc: doc.contents
        });
        break;
      case DOC_TYPE_TRIM: {
        const {
          text,
          count
        } = trimIndentation(output);
        output = text;
        remainingWidth += count;
        break;
      }
      case DOC_TYPE_GROUP: {
        if (mustBeFlat && doc.break) {
          return false;
        }
        const groupMode = doc.break ? MODE_BREAK : mode;
        const contents = doc.expandedStates && groupMode === MODE_BREAK ? method_at_default(
          /* OPTIONAL_OBJECT: false */
          0,
          doc.expandedStates,
          -1
        ) : doc.contents;
        commands.push({
          mode: groupMode,
          doc: contents
        });
        break;
      }
      case DOC_TYPE_IF_BREAK: {
        const groupMode = doc.groupId ? groupModeMap[doc.groupId] || MODE_FLAT : mode;
        const contents = groupMode === MODE_BREAK ? doc.breakContents : doc.flatContents;
        if (contents) {
          commands.push({
            mode,
            doc: contents
          });
        }
        break;
      }
      case DOC_TYPE_LINE:
        if (mode === MODE_BREAK || doc.hard) {
          return true;
        }
        if (!doc.soft) {
          hasPendingSpace = true;
        }
        break;
      case DOC_TYPE_LINE_SUFFIX:
        hasLineSuffix = true;
        break;
      case DOC_TYPE_LINE_SUFFIX_BOUNDARY:
        if (hasLineSuffix) {
          return false;
        }
        break;
    }
  }
  return false;
}
function printDocToString(doc, options2) {
  const groupModeMap = /* @__PURE__ */ Object.create(null);
  const width = options2.printWidth;
  const newLine = convertEndOfLineOptionToCharacter(options2.endOfLine);
  let position = 0;
  const commands = [{
    indent: ROOT_INDENT,
    mode: MODE_BREAK,
    doc
  }];
  let shouldRemeasure = false;
  const lineSuffix2 = [];
  const result = new print_result_default();
  propagateBreaks(doc);
  while (commands.length > 0) {
    const {
      indent: indent2,
      mode,
      doc: doc2
    } = commands.pop();
    switch (get_doc_type_default(doc2)) {
      case DOC_TYPE_STRING: {
        const formatted2 = newLine !== "\n" ? method_replace_all_default(
          /* OPTIONAL_OBJECT: false */
          0,
          doc2,
          "\n",
          newLine
        ) : doc2;
        if (formatted2) {
          result.write(formatted2);
          if (commands.length > 0) {
            position += get_string_width_default(formatted2);
          }
        }
        break;
      }
      case DOC_TYPE_ARRAY:
        for (let index = doc2.length - 1; index >= 0; index--) {
          commands.push({
            indent: indent2,
            mode,
            doc: doc2[index]
          });
        }
        break;
      case DOC_TYPE_CURSOR:
        result.markPosition();
        break;
      case DOC_TYPE_INDENT:
        commands.push({
          indent: makeIndent(indent2, options2),
          mode,
          doc: doc2.contents
        });
        break;
      case DOC_TYPE_ALIGN:
        commands.push({
          indent: makeAlign(indent2, doc2.n, options2),
          mode,
          doc: doc2.contents
        });
        break;
      case DOC_TYPE_TRIM:
        position -= result.trim();
        break;
      case DOC_TYPE_GROUP:
        {
          const command = (function printGroup() {
            if (mode === MODE_FLAT && !shouldRemeasure) {
              return {
                indent: indent2,
                mode: doc2.break ? MODE_BREAK : MODE_FLAT,
                doc: doc2.contents
              };
            }
            shouldRemeasure = false;
            const remainingWidth = width - position;
            const hasLineSuffix = lineSuffix2.length > 0;
            const flatCommand = {
              indent: indent2,
              mode: MODE_FLAT,
              doc: doc2.contents
            };
            if (!doc2.break && fits(flatCommand, commands, remainingWidth, hasLineSuffix, groupModeMap)) {
              return flatCommand;
            }
            if (!doc2.expandedStates) {
              return {
                indent: indent2,
                mode: MODE_BREAK,
                doc: doc2.contents
              };
            }
            if (!doc2.break) {
              for (let index = 1; index < doc2.expandedStates.length - 1; index++) {
                const flatCommand2 = {
                  indent: indent2,
                  mode: MODE_FLAT,
                  doc: doc2.expandedStates[index]
                };
                if (fits(flatCommand2, commands, remainingWidth, hasLineSuffix, groupModeMap)) {
                  return flatCommand2;
                }
              }
            }
            return {
              indent: indent2,
              mode: MODE_BREAK,
              doc: method_at_default(
                /* OPTIONAL_OBJECT: false */
                0,
                doc2.expandedStates,
                -1
              )
            };
          })();
          commands.push(command);
          if (doc2.id) {
            groupModeMap[doc2.id] = command.mode;
          }
        }
        break;
      // Fills each line with as much code as possible before moving to a new
      // line with the same indentation.
      //
      // Expects doc.parts to be an array of alternating content and
      // whitespace. The whitespace contains the linebreaks.
      //
      // For example:
      //   ["I", line, "love", line, "monkeys"]
      // or
      //   [{ type: group, ... }, softline, { type: group, ... }]
      //
      // It uses this parts structure to handle three main layout cases:
      // * The first two content items fit on the same line without
      //   breaking
      //   -> output the first content item and the whitespace "flat".
      // * Only the first content item fits on the line without breaking
      //   -> output the first content item "flat" and the whitespace with
      //   "break".
      // * Neither content item fits on the line without breaking
      //   -> output the first content item and the whitespace with "break".
      case DOC_TYPE_FILL: {
        const remainingWidth = width - position;
        const offset = doc2[DOC_FILL_PRINTED_LENGTH] ?? 0;
        const {
          parts
        } = doc2;
        const length = parts.length - offset;
        if (length === 0) {
          break;
        }
        const content = parts[offset + 0];
        const whitespace = parts[offset + 1];
        const contentFlatCommand = {
          indent: indent2,
          mode: MODE_FLAT,
          doc: content
        };
        const contentBreakCommand = {
          indent: indent2,
          mode: MODE_BREAK,
          doc: content
        };
        const contentFits = fits(contentFlatCommand, [], remainingWidth, lineSuffix2.length > 0, groupModeMap, true);
        if (length === 1) {
          if (contentFits) {
            commands.push(contentFlatCommand);
          } else {
            commands.push(contentBreakCommand);
          }
          break;
        }
        const whitespaceFlatCommand = {
          indent: indent2,
          mode: MODE_FLAT,
          doc: whitespace
        };
        const whitespaceBreakCommand = {
          indent: indent2,
          mode: MODE_BREAK,
          doc: whitespace
        };
        if (length === 2) {
          if (contentFits) {
            commands.push(whitespaceFlatCommand, contentFlatCommand);
          } else {
            commands.push(whitespaceBreakCommand, contentBreakCommand);
          }
          break;
        }
        const secondContent = parts[offset + 2];
        const remainingCommand = {
          indent: indent2,
          mode,
          doc: {
            ...doc2,
            [DOC_FILL_PRINTED_LENGTH]: offset + 2
          }
        };
        const firstAndSecondContentFlatCommand = {
          indent: indent2,
          mode: MODE_FLAT,
          doc: [content, whitespace, secondContent]
        };
        const firstAndSecondContentFits = fits(firstAndSecondContentFlatCommand, [], remainingWidth, lineSuffix2.length > 0, groupModeMap, true);
        commands.push(remainingCommand);
        if (firstAndSecondContentFits) {
          commands.push(whitespaceFlatCommand, contentFlatCommand);
        } else if (contentFits) {
          commands.push(whitespaceBreakCommand, contentFlatCommand);
        } else {
          commands.push(whitespaceBreakCommand, contentBreakCommand);
        }
        break;
      }
      case DOC_TYPE_IF_BREAK:
      case DOC_TYPE_INDENT_IF_BREAK: {
        const groupMode = doc2.groupId ? groupModeMap[doc2.groupId] : mode;
        if (groupMode === MODE_BREAK) {
          const breakContents = doc2.type === DOC_TYPE_IF_BREAK ? doc2.breakContents : doc2.negate ? doc2.contents : indent(doc2.contents);
          if (breakContents) {
            commands.push({
              indent: indent2,
              mode,
              doc: breakContents
            });
          }
        }
        if (groupMode === MODE_FLAT) {
          const flatContents = doc2.type === DOC_TYPE_IF_BREAK ? doc2.flatContents : doc2.negate ? indent(doc2.contents) : doc2.contents;
          if (flatContents) {
            commands.push({
              indent: indent2,
              mode,
              doc: flatContents
            });
          }
        }
        break;
      }
      case DOC_TYPE_LINE_SUFFIX:
        lineSuffix2.push({
          indent: indent2,
          mode,
          doc: doc2.contents
        });
        break;
      case DOC_TYPE_LINE_SUFFIX_BOUNDARY:
        if (lineSuffix2.length > 0) {
          commands.push({
            indent: indent2,
            mode,
            doc: hardlineWithoutBreakParent
          });
        }
        break;
      case DOC_TYPE_LINE:
        switch (mode) {
          case MODE_FLAT:
            if (!doc2.hard) {
              if (!doc2.soft) {
                result.write(" ");
                position += 1;
              }
              break;
            } else {
              shouldRemeasure = true;
            }
          // fallthrough
          case MODE_BREAK:
            if (lineSuffix2.length > 0) {
              commands.push({
                indent: indent2,
                mode,
                doc: doc2
              }, ...lineSuffix2.reverse());
              lineSuffix2.length = 0;
              break;
            }
            if (doc2.literal) {
              result.write(newLine);
              position = 0;
              if (indent2.root) {
                if (indent2.root.value) {
                  result.write(indent2.root.value);
                }
                position = indent2.root.length;
              }
            } else {
              result.trim();
              result.write(newLine + indent2.value);
              position = indent2.length;
            }
            break;
        }
        break;
      case DOC_TYPE_LABEL:
        commands.push({
          indent: indent2,
          mode,
          doc: doc2.contents
        });
        break;
      case DOC_TYPE_BREAK_PARENT:
        break;
      default:
        throw new invalid_doc_error_default(doc2);
    }
    if (commands.length === 0 && lineSuffix2.length > 0) {
      commands.push(...lineSuffix2.reverse());
      lineSuffix2.length = 0;
    }
  }
  const {
    text: formatted,
    positions: cursorPositions
  } = result.finish();
  if (cursorPositions.length !== 2) {
    return {
      formatted
    };
  }
  const [cursorNodeStart, cursorNodeEnd] = cursorPositions;
  return {
    formatted,
    cursorNodeStart,
    cursorNodeText: formatted.slice(cursorNodeStart, cursorNodeEnd)
  };
}
 
// src/common/errors.js
var ArgExpansionBailout = class extends Error {
  name = "ArgExpansionBailout";
};
 
// src/language-js/utilities/is-flow-object-type-property-a-function.js
function isFlowObjectTypePropertyAFunction(node) {
  return (node.type === "ObjectTypeProperty" || node.type === "ObjectTypeInternalSlot") && !node.static && !node.method && // @ts-expect-error -- exists on `ObjectTypeProperty` but not `ObjectTypeInternalSlot`
  node.kind !== "get" && // @ts-expect-error -- exists on `ObjectTypeProperty` but not `ObjectTypeInternalSlot`
  node.kind !== "set" && node.value.type === "FunctionTypeAnnotation";
}
 
// src/utilities/is-next-line-empty.js
function isNextLineEmpty(text, startIndex) {
  let oldIdx = null;
  let idx = startIndex;
  while (idx !== oldIdx) {
    oldIdx = idx;
    idx = skipToLineEnd(text, idx);
    idx = skip_inline_comment_default(text, idx);
    idx = skipSpaces(text, idx);
  }
  idx = skip_trailing_comment_default(text, idx);
  idx = skip_newline_default(text, idx);
  return idx !== false && has_newline_default(text, idx);
}
var is_next_line_empty_default = isNextLineEmpty;
 
// src/language-js/utilities/is-next-line-empty.js
var isNextLineEmpty2 = (node, { originalText }) => {
  const end = locEnd(node);
  if (is_next_line_empty_default(originalText, end)) {
    return true;
  }
  const endWithSemicolon = locEndWithFullText(node);
  if (endWithSemicolon === end) {
    return false;
  }
  return is_next_line_empty_default(originalText, endWithSemicolon);
};
 
// src/language-js/utilities/is-flow-keyword-type.js
var isFlowKeywordType = createTypeCheckFunction([
  "AnyTypeAnnotation",
  "ThisTypeAnnotation",
  "NumberTypeAnnotation",
  "VoidTypeAnnotation",
  "BooleanTypeAnnotation",
  "BigIntTypeAnnotation",
  "SymbolTypeAnnotation",
  "StringTypeAnnotation",
  "NeverTypeAnnotation",
  "UndefinedTypeAnnotation",
  "UnknownTypeAnnotation",
  // FLow only
  "EmptyTypeAnnotation",
  "MixedTypeAnnotation"
]);
var is_flow_keyword_type_default = isFlowKeywordType;
 
// src/language-js/utilities/is-simple-type-annotation.js
var isSimpleTypeAnnotation = createTypeCheckFunction([
  "TSThisType",
  // literals
  "NullLiteralTypeAnnotation",
  "BooleanLiteralTypeAnnotation",
  "StringLiteralTypeAnnotation",
  "BigIntLiteralTypeAnnotation",
  "NumberLiteralTypeAnnotation",
  "TSLiteralType",
  "TSTemplateLiteralType"
]);
 
// src/language-js/utilities/is-ts-keyword-type.js
function isTsKeywordType({ type }) {
  return type.startsWith("TS") && type.endsWith("Keyword");
}
var is_ts_keyword_type_default = isTsKeywordType;
 
// src/language-js/utilities/is-simple-type.js
function isSimpleType(node) {
  return is_ts_keyword_type_default(node) || is_flow_keyword_type_default(node) || isSimpleTypeAnnotation(node) || node.type === "GenericTypeAnnotation" && !node.typeParameters || node.type === "TSTypeReference" && !node.typeArguments;
}
 
// src/language-js/utilities/is-type-annotation-a-function.js
function isTypeAnnotationAFunction(node) {
  return (node.type === "TypeAnnotation" || node.type === "TSTypeAnnotation") && node.typeAnnotation.type === "FunctionTypeAnnotation" && !node.static && !hasSameLocStart(node, node.typeAnnotation);
}
 
// src/language-js/utilities/is-node-matches.js
function isNodeMatchesNameOrPath(node, nameOrPath) {
  const names = nameOrPath.split(".");
  for (let index = names.length - 1; index >= 0; index--) {
    const name = names[index];
    if (index === 0) {
      return node.type === "Identifier" && node.name === name;
    }
    if (index === 1 && node.type === "MetaProperty" && node.property.type === "Identifier" && node.property.name === name) {
      node = node.meta;
      continue;
    }
    if (node.type === "MemberExpression" && // @ts-expect-error -- Don't know why
    !node.optional && !node.computed && node.property.type === "Identifier" && node.property.name === name) {
      node = node.object;
      continue;
    }
    return false;
  }
}
function isNodeMatches(node, nameOrPaths) {
  return nameOrPaths.some(
    (nameOrPath) => isNodeMatchesNameOrPath(node, nameOrPath)
  );
}
 
// src/language-js/utilities/test-libraries.js
var testCallCalleePatterns = [
  "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"
];
function isTestCallCallee(node) {
  return isNodeMatches(node, testCallCalleePatterns);
}
function isUnitTestSetupIdentifier(node) {
  return node.type === "Identifier" && (node.name === "beforeEach" || node.name === "beforeAll" || node.name === "afterEach" || node.name === "afterAll");
}
function isAngularTestWrapper(node) {
  return isCallExpression(node) && node.callee.type === "Identifier" && ["async", "inject", "fakeAsync", "waitForAsync"].includes(node.callee.name);
}
function isFunctionOrArrowExpressionWithBody(node) {
  return node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression" && node.body.type === "BlockStatement";
}
function isTestCall(node, parent) {
  if (node?.type !== "CallExpression" || node.optional) {
    return false;
  }
  const args = getCallArguments(node);
  if (args.length === 1) {
    if (isAngularTestWrapper(node) && isTestCall(parent)) {
      return isFunctionOrArrowExpression(args[0]);
    }
    if (isUnitTestSetupIdentifier(node.callee)) {
      return isAngularTestWrapper(args[0]);
    }
  } else if ((args.length === 2 || args.length === 3) && (args[0].type === "TemplateLiteral" || isStringLiteral(args[0])) && isTestCallCallee(node.callee)) {
    if (args[2] && !isNumericLiteral(args[2])) {
      return false;
    }
    return (args.length === 2 ? isFunctionOrArrowExpression(args[1]) : isFunctionOrArrowExpressionWithBody(args[1]) && getFunctionParameters(args[1]).length <= 1) || isAngularTestWrapper(args[1]);
  }
  return false;
}
 
// src/utilities/is-previous-line-empty.js
function isPreviousLineEmpty(text, startIndex) {
  let idx = startIndex - 1;
  idx = skipSpaces(text, idx, { backwards: true });
  idx = skip_newline_default(text, idx, { backwards: true });
  idx = skipSpaces(text, idx, { backwards: true });
  const idx2 = skip_newline_default(text, idx, { backwards: true });
  return idx !== idx2;
}
var is_previous_line_empty_default = isPreviousLineEmpty;
 
// src/main/comments/print.js
var returnTrue = () => true;
function printComment(path, options2) {
  const comment = path.node;
  comment.printed = true;
  return options2.printer.printComment(path, options2);
}
function printLeadingComment(path, options2) {
  const comment = path.node;
  const parts = [printComment(path, options2)];
  const { printer, originalText, locStart: locStart2, locEnd: locEnd2 } = options2;
  const isBlock = printer.isBlockComment?.(comment);
  if (isBlock) {
    let lineBreak = " ";
    if (has_newline_default(originalText, locEnd2(comment))) {
      if (has_newline_default(originalText, locStart2(comment), { backwards: true })) {
        lineBreak = hardline;
      } else {
        lineBreak = line;
      }
    }
    parts.push(lineBreak);
  } else {
    parts.push(hardline);
  }
  const index = skip_newline_default(
    originalText,
    skipSpaces(originalText, locEnd2(comment))
  );
  if (index !== false && has_newline_default(originalText, index)) {
    parts.push(hardline);
  }
  return parts;
}
function printTrailingComment(path, options2, previousComment) {
  const comment = path.node;
  const printed = printComment(path, options2);
  const { printer, originalText, locStart: locStart2 } = options2;
  const isBlock = printer.isBlockComment?.(comment);
  if (previousComment?.hasLineSuffix && !previousComment?.isBlock || has_newline_default(originalText, locStart2(comment), { backwards: true })) {
    const isLineBeforeEmpty = is_previous_line_empty_default(
      originalText,
      locStart2(comment)
    );
    return {
      doc: lineSuffix([hardline, isLineBeforeEmpty ? hardline : "", printed]),
      isBlock,
      hasLineSuffix: true
    };
  }
  if (!isBlock || previousComment?.hasLineSuffix) {
    return {
      doc: [lineSuffix([" ", printed]), breakParent],
      isBlock,
      hasLineSuffix: true
    };
  }
  return { doc: [" ", printed], isBlock, hasLineSuffix: false };
}
function printDanglingComments(path, options2, danglingCommentsPrintOptions = {}) {
  const {
    indent: shouldIndent = false,
    marker,
    filter = returnTrue
  } = danglingCommentsPrintOptions;
  const danglingComments = new Set(
    path.node?.comments?.filter(
      (comment) => !(comment.leading || comment.trailing || comment.marker !== marker || !filter(comment))
    )
  );
  if (danglingComments.size === 0) {
    return "";
  }
  const parts = path.map(
    ({ node: comment }) => danglingComments.has(comment) ? printComment(path, options2) : "",
    "comments"
  ).filter(Boolean);
  const doc = join(hardline, parts);
  return shouldIndent ? indent([hardline, doc]) : doc;
}
function printLeadingComments(path, options2, printOptions) {
  const printed = options2[/* @__PURE__ */ Symbol.for("printedComments")];
  const filter = printOptions?.filter ?? returnTrue;
  const leadingComments = new Set(
    path.node?.comments?.filter(
      (comment) => !printed?.has(comment) && comment.leading && filter(comment)
    )
  );
  if (leadingComments.size === 0) {
    return "";
  }
  return path.map(
    ({ node: comment }) => leadingComments.has(comment) ? printLeadingComment(path, options2) : "",
    "comments"
  ).filter(Boolean);
}
function printTrailingComments(path, options2, printOptions) {
  const comments = path.node?.comments;
  const trailingComments = new Set(
    comments?.filter((comment) => comment.trailing)
  );
  const printed = options2[/* @__PURE__ */ Symbol.for("printedComments")];
  const filter = printOptions?.filter ?? returnTrue;
  const commentsShouldPrint = new Set(
    comments?.filter(
      (comment) => trailingComments.has(comment) && !printed?.has(comment) && filter(comment)
    )
  );
  if (commentsShouldPrint.size === 0) {
    return "";
  }
  const docs = [];
  let printedTrailingComment;
  path.each(({ node: comment }) => {
    if (!trailingComments.has(comment)) {
      return;
    }
    printedTrailingComment = printTrailingComment(
      path,
      options2,
      printedTrailingComment
    );
    if (commentsShouldPrint.has(comment)) {
      docs.push(printedTrailingComment.doc);
    }
  }, "comments");
  return docs;
}
function printCommentsSeparately(path, options2, printOptions) {
  return {
    leading: printLeadingComments(path, options2, printOptions),
    trailing: printTrailingComments(path, options2, printOptions)
  };
}
function printComments(path, doc, options2, printOptions) {
  const leading = printLeadingComments(path, options2, printOptions);
  const trailing = printTrailingComments(path, options2, printOptions);
  return leading || trailing ? inheritLabel(doc, (doc2) => [leading, doc2, trailing]) : doc;
}
 
// src/language-js/utilities/should-print-trailing-comma.js
function shouldPrintTrailingComma(options2, level = "es5") {
  return options2.trailingComma === "es5" && level === "es5" || options2.trailingComma === "all" && (level === "all" || level === "es5");
}
 
// src/language-js/print/miscellaneous.js
function printOptionalToken(path) {
  const { node } = path;
  if (!node.optional || // It's an optional computed method parsed by typescript-estree.
  // "?" is printed in `printMethod`.
  node.type === "Identifier" && node === path.parent.key) {
    return "";
  }
  if (isCallExpression(node) || isMemberExpression(node) && node.computed || node.type === "OptionalIndexedAccessType") {
    return "?.";
  }
  return "?";
}
function printDefiniteToken(path) {
  return path.node.definite || path.match(
    void 0,
    (node, name) => name === "id" && node.type === "VariableDeclarator" && node.definite
  ) ? "!" : "";
}
var isFlowDeclareNode = createTypeCheckFunction([
  "DeclareClass",
  "DeclareComponent",
  "DeclareFunction",
  "DeclareHook",
  "DeclareVariable",
  "DeclareExportDeclaration",
  "DeclareExportAllDeclaration",
  "DeclareOpaqueType",
  "DeclareTypeAlias",
  "DeclareEnum",
  "DeclareInterface"
]);
var shouldPrintDeclareToken = (path) => {
  const { node } = path;
  if (isFlowDeclareNode(node)) {
    return path.parent.type !== "DeclareExportDeclaration" && // @ts-expect-error -- hermes doesn't support yet
    !node.implicitDeclare;
  }
  return node.declare;
};
function printDeclareToken(path) {
  return shouldPrintDeclareToken(path) ? "declare " : "";
}
var isTsAbstractNode = createTypeCheckFunction([
  "TSAbstractMethodDefinition",
  "TSAbstractPropertyDefinition",
  "TSAbstractAccessorProperty"
]);
function printAbstractToken({ node }) {
  return node.abstract || isTsAbstractNode(node) ? "abstract " : "";
}
function printTypeScriptAccessibilityToken(node) {
  return node.accessibility ? node.accessibility + " " : "";
}
var isLogicalNot = (node) => node.type === "UnaryExpression" && node.operator === "!";
function shouldInlineCondition(node) {
  if (hasComment(node)) {
    return false;
  }
  if (!isLogicalNot(node)) {
    return false;
  }
  node = node.argument;
  node = isLogicalNot(node) ? node.argument : node;
  return node.type === "LogicalExpression";
}
function printIfOrWhileConditionOrWithStatementObject(path, options2, print3) {
  const { node } = path;
  const property = node.type === "WithStatement" ? "object" : "test";
  const conditionDoc = print3(property);
  if (shouldInlineCondition(node[property])) {
    return conditionDoc;
  }
  return group([indent([softline, conditionDoc]), softline]);
}
function printDanglingCommentsInList(path, options2, filter) {
  const { node } = path;
  return hasComment(node, CommentCheckFlags.Dangling, filter) ? [
    indent([softline, printDanglingComments(path, options2, { filter })]),
    hasComment(
      node,
      CommentCheckFlags.Dangling | CommentCheckFlags.Line,
      filter
    ) ? hardline : softline
  ] : "";
}
function printTrailingComma(options2, level = "es5") {
  return shouldPrintTrailingComma(options2, level) ? ifBreak(",") : "";
}
function printSemicolon(options2) {
  return options2.semi ? ";" : "";
}
 
// src/language-js/print/function-parameters.js
var functionParameterDanglingCommentFilter = (comment) => comment.mark !== "commentBeforeArrow";
function printFunctionParameters(path, options2, print3, shouldExpandParameters, shouldPrintTypeParameters) {
  const functionNode = path.node;
  const parameters = getFunctionParameters(functionNode);
  const typeParametersDoc = shouldPrintTypeParameters && functionNode.typeParameters ? print3("typeParameters") : "";
  if (parameters.length === 0) {
    return [
      typeParametersDoc,
      "(",
      printDanglingCommentsInList(
        path,
        options2,
        functionParameterDanglingCommentFilter
      ),
      ")"
    ];
  }
  const { parent } = path;
  const isParametersInTestCall = isTestCall(parent);
  const shouldHugParameters = shouldHugTheOnlyFunctionParameter(functionNode);
  const printed = [];
  iterateFunctionParametersPath(path, (parameterPath, index) => {
    const isLastParameter = index === parameters.length - 1;
    if (isLastParameter && functionNode.rest) {
      printed.push("...");
    }
    printed.push(print3());
    if (isLastParameter) {
      return;
    }
    printed.push(",");
    if (isParametersInTestCall || shouldHugParameters) {
      printed.push(" ");
    } else if (isNextLineEmpty2(parameters[index], options2)) {
      printed.push(hardline, hardline);
    } else {
      printed.push(line);
    }
  });
  if (shouldExpandParameters && !isDecoratedFunction(path)) {
    if (willBreak(typeParametersDoc) || willBreak(printed)) {
      throw new ArgExpansionBailout();
    }
    return group([
      removeLines(typeParametersDoc),
      "(",
      removeLines(printed),
      ")"
    ]);
  }
  const hasNotParameterDecorator = parameters.every(
    (node) => !is_non_empty_array_default(node.decorators)
  );
  if (shouldHugParameters && hasNotParameterDecorator) {
    return [typeParametersDoc, "(", ...printed, ")"];
  }
  if (isParametersInTestCall) {
    return [typeParametersDoc, "(", ...printed, ")"];
  }
  const isFlowShorthandWithOneArg = (isFlowObjectTypePropertyAFunction(parent) || isTypeAnnotationAFunction(parent) || parent.type === "TypeAlias" || parent.type === "UnionTypeAnnotation" || parent.type === "IntersectionTypeAnnotation" || parent.type === "FunctionTypeAnnotation" && parent.returnType === functionNode) && parameters.length === 1 && parameters[0].name === null && // `type q = (this: string) => void;`
  functionNode.this !== parameters[0] && parameters[0].typeAnnotation && functionNode.typeParameters === null && isSimpleType(parameters[0].typeAnnotation) && !functionNode.rest;
  if (isFlowShorthandWithOneArg) {
    if (options2.arrowParens === "always" || functionNode.type === "HookTypeAnnotation") {
      return ["(", ...printed, ")"];
    }
    return printed;
  }
  return [
    typeParametersDoc,
    "(",
    indent([softline, ...printed]),
    !hasRestParameter(functionNode) ? printTrailingComma(options2, "all") : "",
    softline,
    ")"
  ];
}
function shouldHugTheOnlyFunctionParameter(node) {
  if (!node) {
    return false;
  }
  const parameters = getFunctionParameters(node);
  if (parameters.length !== 1) {
    return false;
  }
  const [parameter] = parameters;
  return !hasComment(parameter) && (parameter.type === "ObjectPattern" || parameter.type === "ArrayPattern" || parameter.type === "Identifier" && parameter.typeAnnotation && (parameter.typeAnnotation.type === "TypeAnnotation" || parameter.typeAnnotation.type === "TSTypeAnnotation") && isObjectType(parameter.typeAnnotation.typeAnnotation) || parameter.type === "FunctionTypeParam" && isObjectType(parameter.typeAnnotation) && parameter !== node.rest || parameter.type === "AssignmentPattern" && (parameter.left.type === "ObjectPattern" || parameter.left.type === "ArrayPattern") && (parameter.right.type === "Identifier" || isObjectExpression(parameter.right) && parameter.right.properties.length === 0 || isArrayExpression(parameter.right) && parameter.right.elements.length === 0));
}
function getReturnTypeNode(functionNode) {
  let returnTypeNode;
  if (functionNode.returnType) {
    returnTypeNode = functionNode.returnType;
    if (returnTypeNode.typeAnnotation) {
      returnTypeNode = returnTypeNode.typeAnnotation;
    }
  } else if (functionNode.typeAnnotation) {
    returnTypeNode = functionNode.typeAnnotation;
  }
  return returnTypeNode;
}
function shouldGroupFunctionParameters(functionNode, returnTypeDoc) {
  const returnTypeNode = getReturnTypeNode(functionNode);
  if (!returnTypeNode) {
    return false;
  }
  const typeParameters = functionNode.typeParameters?.params;
  if (typeParameters) {
    if (typeParameters.length > 1) {
      return false;
    }
    if (typeParameters.length === 1) {
      const typeParameter = typeParameters[0];
      if (typeParameter.constraint || typeParameter.default) {
        return false;
      }
    }
  }
  return getFunctionParameters(functionNode).length === 1 && (isObjectType(returnTypeNode) || willBreak(returnTypeDoc));
}
function isDecoratedFunction(path) {
  return path.match(
    (node) => node.type === "ArrowFunctionExpression" && node.body.type === "BlockStatement",
    (node, name) => {
      if (node.type === "CallExpression" && name === "arguments" && node.arguments.length === 1 && node.callee.type === "CallExpression") {
        const decorator = node.callee.callee;
        return decorator.type === "Identifier" || decorator.type === "MemberExpression" && !decorator.computed && decorator.object.type === "Identifier" && decorator.property.type === "Identifier";
      }
      return false;
    },
    (node, name) => node.type === "VariableDeclarator" && name === "init" || node.type === "ExportDefaultDeclaration" && name === "declaration" || node.type === "TSExportAssignment" && name === "expression" || node.type === "AssignmentExpression" && name === "right" && node.left.type === "MemberExpression" && node.left.object.type === "Identifier" && node.left.object.name === "module" && node.left.property.type === "Identifier" && node.left.property.name === "exports",
    (node) => node.type !== "VariableDeclaration" || node.kind === "const" && node.declarations.length === 1
  );
}
function shouldBreakFunctionParameters(functionNode) {
  const parameters = getFunctionParameters(functionNode);
  return parameters.length > 1 && parameters.some((parameter) => parameter.type === "TSParameterProperty");
}
function shouldHugTheOnlyParameter(node, name) {
  return (name === "params" || name === "this" || name === "rest") && shouldHugTheOnlyFunctionParameter(node);
}
 
// node_modules/is-es5-identifier-name/index.js
var identifierRegexp = /^[\$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]*$/;
var isEs5IdentifierName = (id) => identifierRegexp.test(id);
var is_es5_identifier_name_default = isEs5IdentifierName;
 
// src/utilities/print-number.js
function printNumber(rawNumber) {
  if (rawNumber.length === 1) {
    return rawNumber;
  }
  return rawNumber.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/, "$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/, "$1").replace(/^([+-])?\./, "$10.").replace(/(\.\d+?)0+(?=e|$)/, "$1").replace(/\.(?=e|$)/, "");
}
var print_number_default = printNumber;
 
// src/utilities/get-preferred-quote.js
var SINGLE_QUOTE = "'";
var DOUBLE_QUOTE = '"';
var SINGLE_QUOTE_DATA = Object.freeze({
  character: SINGLE_QUOTE,
  codePoint: 39
});
var DOUBLE_QUOTE_DATA = Object.freeze({
  character: DOUBLE_QUOTE,
  codePoint: 34
});
var SINGLE_QUOTE_SETTINGS = Object.freeze({
  preferred: SINGLE_QUOTE_DATA,
  alternate: DOUBLE_QUOTE_DATA
});
var DOUBLE_QUOTE_SETTINGS = Object.freeze({
  preferred: DOUBLE_QUOTE_DATA,
  alternate: SINGLE_QUOTE_DATA
});
function getPreferredQuote(text, preferredQuoteOrPreferSingleQuote) {
  const { preferred, alternate } = preferredQuoteOrPreferSingleQuote === true || preferredQuoteOrPreferSingleQuote === SINGLE_QUOTE ? SINGLE_QUOTE_SETTINGS : DOUBLE_QUOTE_SETTINGS;
  const { length } = text;
  let preferredQuoteCount = 0;
  let alternateQuoteCount = 0;
  for (let index = 0; index < length; index++) {
    const codePoint = text.charCodeAt(index);
    if (codePoint === preferred.codePoint) {
      preferredQuoteCount++;
    } else if (codePoint === alternate.codePoint) {
      alternateQuoteCount++;
    }
  }
  return (preferredQuoteCount > alternateQuoteCount ? alternate : preferred).character;
}
 
// src/utilities/make-string.js
var REGEX = /\\(["'\\])|(["'])/g;
function makeString(rawText, enclosingQuote) {
  const otherQuote = enclosingQuote === DOUBLE_QUOTE ? SINGLE_QUOTE : DOUBLE_QUOTE;
  const raw = method_replace_all_default(
    /* OPTIONAL_OBJECT: false */
    0,
    rawText,
    REGEX,
    (match, escaped, unescaped) => {
      if (escaped) {
        return escaped === otherQuote ? otherQuote : match;
      }
      return unescaped === enclosingQuote ? "\\" + unescaped : unescaped;
    }
  );
  return enclosingQuote + raw + enclosingQuote;
}
var make_string_default = makeString;
 
// src/utilities/print-string.js
function printString(raw, options2) {
  noop_default(/^(?<quote>["']).*\k<quote>$/s.test(raw));
  const rawContent = raw.slice(1, -1);
  let enclosingQuote;
  if (options2.parser === "json" || options2.parser === "jsonc" || options2.parser === "json-stringify" || // This was added before we have the `jsonc` parser
  // If `{quoteProps: "preserve"}` and `{singleQuote: false}` (default value),
  // and `{parser: "json5"}`, double quotes are always used for strings.
  // This effectively allows using the `json5` parser for “JSON with comments and trailing commas”.
  // See https://github.com/prettier/prettier/pull/10323
  // See https://github.com/prettier/prettier/pull/15831#discussion_r1431010636
  options2.parser === "json5" && options2.quoteProps === "preserve" && !options2.singleQuote) {
    enclosingQuote = DOUBLE_QUOTE;
  } else if (options2.__isInHtmlAttribute) {
    enclosingQuote = SINGLE_QUOTE;
  } else {
    enclosingQuote = getPreferredQuote(rawContent, options2.singleQuote);
  }
  const originalQuote = raw.charAt(0);
  if (originalQuote === enclosingQuote) {
    return raw;
  }
  return make_string_default(rawContent, enclosingQuote);
}
var print_string_default = printString;
 
// src/language-js/print/key.js
var isTsEnumMember = (node) => node.type === "TSEnumMember";
var getKeyProperty = (node) => isTsEnumMember(node) ? "id" : "key";
var getKey = (node) => node[getKeyProperty(node)];
var isComputedKey = (node) => !isTsEnumMember(node) && node.computed;
function isSimpleNumber(numberString) {
  return /^(?:\d+|\d+\.\d+)$/.test(numberString);
}
var isTypeScript = ({ parser }) => parser === "typescript" || parser === "babel-ts" || parser === "oxc-ts";
function isKeySafeToQuote(node, options2) {
  const key = getKey(node);
  if (key.type === "Identifier") {
    return true;
  }
  if (!isNumericLiteral(key)) {
    return false;
  }
  if (isTypeScript(options2)) {
    return false;
  }
  const printedNumber = print_number_default(getRaw(key));
  return (
    // Avoid converting 999999999999999999999 to 1e+21, 0.99999999999999999 to 1 and 1.0 to 1.
    String(key.value) === printedNumber && isSimpleNumber(printedNumber)
  );
}
function isKeySafeToUnquote(node, options2) {
  const { parser } = options2;
  if (parser === "json" || parser === "jsonc") {
    return false;
  }
  const key = getKey(node);
  if (!isStringLiteral(key)) {
    return false;
  }
  const { value } = key;
  if (print_string_default(getRaw(key), options2).slice(1, -1) !== value) {
    return false;
  }
  if (
    // With `--strictPropertyInitialization`, TS treats properties with quoted names differently than unquoted ones.
    // See https://github.com/microsoft/TypeScript/pull/20075
    !(parser === "babel-ts" && node.type === "ClassProperty" || (parser === "typescript" || parser === "oxc-ts") && node.type === "PropertyDefinition") && is_es5_identifier_name_default(value)
  ) {
    return true;
  }
  if ((parser === "babel" || parser === "acorn" || parser === "oxc" || parser === "espree" || parser === "meriyah" || parser === "__babel_estree") && node.type !== "ImportAttribute" && isSimpleNumber(value) && String(Number(value)) === value) {
    return true;
  }
  return false;
}
var needQuoteKeysCache = /* @__PURE__ */ new WeakMap();
function hasSiblingsRequireQuoted(path, options2) {
  const { parent } = path;
  if (!needQuoteKeysCache.has(parent)) {
    const hasStringKey = path.siblings.some((sibling) => {
      if (isComputedKey(sibling)) {
        return false;
      }
      const key = getKey(sibling);
      return isStringLiteral(key) && !isKeySafeToUnquote(sibling, options2);
    });
    needQuoteKeysCache.set(parent, hasStringKey);
  }
  return needQuoteKeysCache.get(parent);
}
function shouldQuoteKey(path, options2) {
  return (options2.parser === "json" || options2.parser === "jsonc" || options2.quoteProps === "consistent" && hasSiblingsRequireQuoted(path, options2)) && isKeySafeToQuote(path.node, options2);
}
function shouldUnquoteKey(path, options2) {
  return (options2.quoteProps === "as-needed" || options2.quoteProps === "consistent" && !hasSiblingsRequireQuoted(path, options2)) && isKeySafeToUnquote(path.node, options2);
}
function printKey(path, options2, print3) {
  const { node } = path;
  const property = getKeyProperty(node);
  if (isComputedKey(node)) {
    return ["[", print3(property), "]"];
  }
  if (shouldQuoteKey(path, options2)) {
    const key = getKey(node);
    const printed = print_string_default(
      JSON.stringify(key.type === "Identifier" ? key.name : String(key.value)),
      options2
    );
    return path.call(() => printComments(path, printed, options2), property);
  }
  if (shouldUnquoteKey(path, options2)) {
    const { value } = getKey(node);
    const printed = /^\d/.test(value) ? print_number_default(value) : value;
    return path.call(() => printComments(path, printed, options2), property);
  }
  return print3(property);
}
 
// src/language-js/utilities/union-type-print.js
var isVoidType = createTypeCheckFunction([
  "VoidTypeAnnotation",
  "TSVoidKeyword",
  "NullLiteralTypeAnnotation",
  "TSNullKeyword"
]);
var isObjectLikeType = createTypeCheckFunction([
  "ObjectTypeAnnotation",
  "TSTypeLiteral",
  // This is a bit aggressive but captures Array<{x}>
  "GenericTypeAnnotation",
  "TSTypeReference"
]);
function shouldHugUnionType(node) {
  const { types } = node;
  if (types.some((node2) => hasComment(node2))) {
    return false;
  }
  const objectType = types.find((node2) => isObjectLikeType(node2));
  if (!objectType) {
    return false;
  }
  return types.every((node2) => node2 === objectType || isVoidType(node2));
}
function shouldUnionTypePrintOwnComments({ key, node, parent }) {
  if (shouldHugUnionType(node) || // If it's `types` of union type, parent will print comment for it
  key === "types" && isUnionType(parent) || // Inside intersection type let the comment print outside of parentheses
  key === "types" && isIntersectionType(parent)) {
    return false;
  }
  return true;
}
 
// src/language-js/print/union-type.js
function printUnionType(path, options2, print3, args) {
  const { node } = path;
  if (shouldHugUnionType(node)) {
    return join(" | ", path.map(print3, "types"));
  }
  let printed = group(
    path.map(({ isFirst }) => {
      const bar = isFirst ? ifBreak("| ") : [line, "| "];
      const typeDoc = print3();
      if (hasComment(path.node, CommentCheckFlags.Leading)) {
        return [bar, align(2, printComments(path, typeDoc, options2))];
      }
      return [bar, printComments(path, align(2, typeDoc), options2)];
    }, "types")
  );
  if (shouldUnionTypePrintOwnComments(path)) {
    printed = printComments(path, printed, options2);
  }
  if (needs_parentheses_default(path, options2)) {
    return group([indent([softline, printed]), softline]);
  }
  const { key, parent } = path;
  if (key === "elementTypes" && isTupleType(parent) && parent.elementTypes.length > 1) {
    return group([
      indent([ifBreak(["(", softline]), printed]),
      softline,
      ifBreak(")")
    ]);
  }
  if (args?.assignmentLayout === "break-after-operator" || !shouldIndentUnionType(path)) {
    return printed;
  }
  return group(indent([softline, printed]));
}
function shouldIndentUnionType(path) {
  const { key, parent } = path;
  if (key === "typeAnnotation" && parent.type === "TSTypeAssertion" || key === "elementTypes" && isTupleType(parent) || (key === "trueType" || key === "falseType") && isConditionalType(parent) || key === "params" && isTypeParameterInstantiation(parent)) {
    return false;
  }
  if (path.match(
    void 0,
    (node, key2) => key2 === "typeAnnotation" && node.type === "FunctionTypeParam",
    (node, key2) => key2 === "params" && node.type === "FunctionTypeAnnotation",
    (node, key2) => key2 === "value" && node.type === "ObjectTypeProperty" && isFlowObjectTypePropertyAFunction(node)
  )) {
    return false;
  }
  return true;
}
 
// src/language-js/print/type-annotation.js
function shouldHugType(node) {
  if (isSimpleType(node) || isObjectType(node)) {
    return true;
  }
  if (isUnionType(node)) {
    return shouldHugUnionType(node);
  }
  return false;
}
var typeAnnotationNodesCheckedLeadingComments = /* @__PURE__ */ new WeakSet();
function printTypeAnnotationProperty(path, print3, propertyName = "typeAnnotation") {
  const {
    node: { [propertyName]: typeAnnotation }
  } = path;
  if (!typeAnnotation) {
    return "";
  }
  let shouldPrintLeadingSpace = false;
  if (typeAnnotation.type === "TSTypeAnnotation" || typeAnnotation.type === "TypeAnnotation") {
    const firstToken = path.call(getTypeAnnotationFirstToken, propertyName);
    if (firstToken === "=>" || firstToken === ":" && hasComment(typeAnnotation, CommentCheckFlags.Leading)) {
      shouldPrintLeadingSpace = true;
    }
    typeAnnotationNodesCheckedLeadingComments.add(typeAnnotation);
  }
  return shouldPrintLeadingSpace ? [" ", print3(propertyName)] : print3(propertyName);
}
var getTypeAnnotationFirstToken = (path) => {
  if (
    // TypeScript
    path.match(
      (node) => node.type === "TSTypeAnnotation",
      (node, key) => (key === "returnType" || key === "typeAnnotation") && (node.type === "TSFunctionType" || node.type === "TSConstructorType")
    )
  ) {
    return "=>";
  }
  if (
    // TypeScript
    path.match(
      (node) => node.type === "TSTypeAnnotation",
      (node, key) => key === "typeAnnotation" && (node.type === "TSJSDocNullableType" || node.type === "TSJSDocNonNullableType" || node.type === "TSTypePredicate")
    ) || /*
        Flow
    
        ```js
        declare function foo(): void;
                            ^^^^^^^^ `TypeAnnotation`
        ```
        */
    path.match(
      (node) => node.type === "TypeAnnotation",
      (node, key) => key === "typeAnnotation" && node.type === "Identifier",
      (node, key) => key === "id" && node.type === "DeclareFunction"
    ) || /*
    Flow
    ```js
    declare hook foo(): void;
                    ^^^^^^^^ `TypeAnnotation`
    ```
    */
    path.match(
      (node) => node.type === "TypeAnnotation",
      (node, key) => key === "typeAnnotation" && node.type === "Identifier",
      (node, key) => key === "id" && node.type === "DeclareHook"
    ) || /*
        Flow
    
        ```js
        type A = () => infer R extends string;
                                       ^^^^^^ `TypeAnnotation`
        ```
        */
    path.match(
      (node) => node.type === "TypeAnnotation",
      (node, key) => key === "bound" && node.type === "TypeParameter" && node.usesExtendsBound
    )
  ) {
    return "";
  }
  return ":";
};
function printTypeAnnotation(path, options2, print3) {
  if (false) {
    const { node } = path;
    if (!typeAnnotationNodesCheckedLeadingComments.has(node)) {
      throw Object.assign(
        new Error(
          `'${node.type}' should be printed by '${printTypeAnnotationProperty.name}' function.`
        ),
        { parentNode: path.parent, propertyName: path.key }
      );
    }
  }
  const token = getTypeAnnotationFirstToken(path);
  return token ? [token, " ", print3("typeAnnotation")] : print3("typeAnnotation");
}
 
// src/language-js/print/function.js
var isMethodValue = ({ node, key, parent }) => key === "value" && node.type === "FunctionExpression" && (parent.type === "ObjectMethod" || parent.type === "ClassMethod" || parent.type === "ClassPrivateMethod" || parent.type === "MethodDefinition" || parent.type === "TSAbstractMethodDefinition" || parent.type === "TSDeclareMethod" || parent.type === "Property" && isMethod(parent));
function printFunction(path, options2, print3, args) {
  if (isMethodValue(path)) {
    return printMethodValue(path, options2, print3);
  }
  const { node } = path;
  let shouldExpandParameters = false;
  if (node.type === "FunctionExpression" && args?.expandLastArg) {
    const { parent } = path;
    if (isCallExpression(parent) && (getCallArguments(parent).length > 1 || getFunctionParameters(node).every(
      (param) => param.type === "Identifier" && !param.typeAnnotation
    ))) {
      shouldExpandParameters = true;
    }
  }
  const parametersDoc = printFunctionParameters(
    path,
    options2,
    print3,
    shouldExpandParameters
  );
  const returnTypeDoc = printReturnType(path, print3);
  const shouldGroupParameters = shouldGroupFunctionParameters(
    node,
    returnTypeDoc
  );
  const isFlowHookDeclaration = node.type === "HookDeclaration";
  const keyword = isFlowHookDeclaration ? "hook" : "function";
  return [
    printDeclareToken(path),
    node.async ? "async " : "",
    keyword,
    node.generator ? "*" : "",
    " ",
    node.id ? print3("id") : "",
    print3("typeParameters"),
    group([
      shouldGroupParameters ? group(parametersDoc) : parametersDoc,
      returnTypeDoc
    ]),
    node.body ? [" ", print3("body")] : (
      // The semicolon not always needed,
      // but prevent block statement after been parsed as body
      ";"
    )
  ];
}
function printMethod(path, options2, print3) {
  const { node } = path;
  const { kind } = node;
  const value = node.value || node;
  const parts = [];
  if (!kind || kind === "init" || kind === "method" || kind === "constructor") {
    if (value.async) {
      parts.push("async ");
    }
  } else {
    noop_default(kind === "get" || kind === "set");
    parts.push(kind, " ");
  }
  if (value.generator) {
    parts.push("*");
  }
  parts.push(
    printKey(path, options2, print3),
    node.optional ? "?" : "",
    node === value ? printMethodValue(path, options2, print3) : print3("value")
  );
  return parts;
}
function printMethodValue(path, options2, print3) {
  const { node } = path;
  const parametersDoc = printFunctionParameters(path, options2, print3);
  const returnTypeDoc = printReturnType(path, print3);
  const shouldBreakParameters = shouldBreakFunctionParameters(node);
  const shouldGroupParameters = shouldGroupFunctionParameters(
    node,
    returnTypeDoc
  );
  const parts = [
    print3("typeParameters"),
    group([
      shouldBreakParameters ? group(parametersDoc, { shouldBreak: true }) : shouldGroupParameters ? group(parametersDoc) : parametersDoc,
      returnTypeDoc
    ])
  ];
  if (node.body) {
    parts.push(" ", print3("body"));
  } else {
    parts.push(printSemicolon(options2));
  }
  return parts;
}
function canPrintParamsWithoutParens(node) {
  const parameters = getFunctionParameters(node);
  return parameters.length === 1 && !node.typeParameters && !hasComment(node, CommentCheckFlags.Dangling) && parameters[0].type === "Identifier" && !parameters[0].typeAnnotation && !hasComment(parameters[0]) && !parameters[0].optional && !node.predicate && !node.returnType;
}
function shouldPrintParamsWithoutParens(path, options2) {
  if (options2.arrowParens === "always") {
    return false;
  }
  if (options2.arrowParens === "avoid") {
    const { node } = path;
    return canPrintParamsWithoutParens(node);
  }
  return false;
}
function printReturnType(path, print3) {
  const { node } = path;
  const returnType = printTypeAnnotationProperty(path, print3, "returnType");
  const parts = [returnType];
  if (node.predicate) {
    parts.push(print3("predicate"));
  }
  return parts;
}
 
// src/language-js/semicolon/semicolon.js
function shouldExpressionStatementPrintLeadingSemicolon(path, options2) {
  if (options2.semi) {
    return false;
  }
  const { node } = path;
  if (node.type !== "ExpressionStatement" || isSingleJsxExpressionStatementInMarkdown(path, options2) || isSingleVueEventBindingExpressionStatement(path, options2) || isSingleHtmlEventHandlerExpressionStatement(path, options2)) {
    return false;
  }
  const { key, parent } = path;
  if (
    // `Program.directives` don't need leading semicolon
    (key === "body" && (parent.type === "Program" || parent.type === "BlockStatement" || parent.type === "StaticBlock" || parent.type === "TSModuleBlock") || key === "consequent" && parent.type === "SwitchCase") && path.call(() => expressionNeedsAsiProtection(path, options2), "expression")
  ) {
    return true;
  }
  return false;
}
function expressionNeedsAsiProtection(path, options2) {
  const { node } = path;
  switch (node.type) {
    case "ParenthesizedExpression":
    case "TypeCastExpression":
    case "TSTypeAssertion":
    case "ArrayExpression":
    case "ArrayPattern":
    case "TemplateLiteral":
    case "TemplateElement":
    case "RegExpLiteral":
      return true;
    case "ArrowFunctionExpression":
      if (!shouldPrintParamsWithoutParens(path, options2)) {
        return true;
      }
      break;
    case "UnaryExpression": {
      const { prefix, operator } = node;
      if (prefix && (operator === "+" || operator === "-")) {
        return true;
      }
      break;
    }
    case "BindExpression":
      if (!node.object) {
        return true;
      }
      break;
    case "Literal":
      if (node.regex) {
        return true;
      }
      break;
    default:
      if (isJsxElement(node)) {
        return true;
      }
  }
  if (needs_parentheses_default(path, options2)) {
    return true;
  }
  if (!hasNakedLeftSide(node)) {
    return false;
  }
  return path.call(
    () => expressionNeedsAsiProtection(path, options2),
    ...getLeftSidePathName(node)
  );
}
var isSingleExpressionStatement = ({ node, parent }) => node.type === "ExpressionStatement" && parent.type === "Program" && parent.body.length === 1 && // In non-Babel parser, directives are `ExpressionStatement`s
(Array.isArray(parent.directives) && parent.directives.length === 0 || !parent.directives);
function isSingleJsxExpressionStatementInMarkdown(path, options2) {
  return (options2.parentParser === "markdown" || options2.parentParser === "mdx") && isSingleExpressionStatement(path) && isJsxElement(path.node.expression);
}
function isSingleHtmlEventHandlerExpressionStatement(path, options2) {
  return options2.__isHtmlInlineEventHandler && isSingleExpressionStatement(path);
}
function isSingleVueEventBindingExpressionStatement(path, options2) {
  return (options2.parser === "__vue_event_binding" || options2.parser === "__vue_ts_event_binding") && isSingleExpressionStatement(path);
}
 
// src/language-js/utilities/should-expression-statement-print-own-comments.js
function shouldExpressionStatementPrintOwnComments(path, options2) {
  if (!shouldExpressionStatementPrintLeadingSemicolon(path, options2)) {
    return false;
  }
  const lastComment = method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    getComments(path.node, CommentCheckFlags.Leading),
    -1
  );
  if (lastComment && isTypeCastComment(lastComment)) {
    return true;
  }
  return false;
}
 
// src/language-js/comments/will-print-own-comments.js
var isClassOrInterface = createTypeCheckFunction([
  "ClassDeclaration",
  "ClassExpression",
  "DeclareClass",
  "DeclareInterface",
  "InterfaceDeclaration",
  "TSInterfaceDeclaration"
  // Can't have `id` or `typeParameters`
  // "InterfaceTypeAnnotation",
]);
function willPrintOwnComments(path, options2) {
  const { key, parent } = path;
  if (key === "types" && isUnionType(parent) || key === "argument" && parent.type === "JSXSpreadAttribute" || key === "expression" && parent.type === "JSXSpreadChild" || key === "superClass" && (parent.type === "ClassDeclaration" || parent.type === "ClassExpression") || (key === "id" || key === "typeParameters") && isClassOrInterface(parent) || // Not tested, don't know how to
  key === "patterns" && parent.type === "MatchOrPattern" || isIifeCalleeOrTaggedTemplateExpressionTag(path)) {
    return true;
  }
  const { node } = path;
  if (hasNodeIgnoreComment(node)) {
    return false;
  }
  if (node.type === "ExpressionStatement") {
    return shouldExpressionStatementPrintOwnComments(path, options2);
  }
  if (isUnionType(node)) {
    return shouldUnionTypePrintOwnComments(path);
  }
  if (isJsxElement(node)) {
    return true;
  }
  return false;
}
var will_print_own_comments_default = willPrintOwnComments;
 
// src/utilities/get-alignment-size.js
function getAlignmentSize(text, tabWidth, startIndex = 0) {
  let size = 0;
  for (let i = startIndex; i < text.length; ++i) {
    if (text[i] === "	") {
      size = size + tabWidth - size % tabWidth;
    } else {
      size++;
    }
  }
  return size;
}
var get_alignment_size_default = getAlignmentSize;
 
// src/utilities/get-indent-size.js
function getIndentSize(value, tabWidth) {
  const lastNewlineIndex = value.lastIndexOf("\n");
  if (lastNewlineIndex === -1) {
    return 0;
  }
  return get_alignment_size_default(
    // All the leading whitespaces
    value.slice(lastNewlineIndex + 1).match(/^[\t ]*/)[0],
    tabWidth
  );
}
var get_indent_size_default = getIndentSize;
 
// src/language-js/print/template-literal.js
function printTemplateLiteral(path, options2, print3) {
  if (isJestEachTemplateLiteral(path)) {
    const printed = printJestEachTemplateLiteral(path, options2, print3);
    if (printed) {
      return printed;
    }
  }
  const expressionDocs = printTemplateExpressions(path, options2, print3);
  const parts = path.map(({
    isLast,
    index
  }) => [print3(), isLast ? "" : expressionDocs[index]], "quasis");
  return [lineSuffixBoundary, "`", ...parts, "`"];
}
function printTaggedTemplateExpression(path, options2, print3) {
  const quasiDoc = print3("quasi");
  const {
    node
  } = path;
  let space = "";
  const quasiLeadingComment = getComments(node.quasi, CommentCheckFlags.Leading)[0];
  if (quasiLeadingComment) {
    if (has_newline_in_range_default(options2.originalText, locEnd(node.typeArguments ?? node.tag), locStart(quasiLeadingComment))) {
      space = softline;
    } else {
      space = " ";
    }
  }
  return label(quasiDoc.label && {
    tagged: true,
    ...quasiDoc.label
  }, [print3("tag"), print3("typeArguments"), space, lineSuffixBoundary, quasiDoc]);
}
function printJestEachTemplateLiteral(path, options2, print3) {
  const {
    node
  } = path;
  const headerNames = node.quasis[0].value.raw.trim().split(/\s*\|\s*/);
  if (headerNames.length > 1 || headerNames.some((headerName) => headerName.length > 0)) {
    options2.__inJestEach = true;
    const expressions = printTemplateExpressions(path, options2, print3);
    options2.__inJestEach = false;
    const stringifiedExpressions = expressions.map((doc) => printDocToString(doc, {
      ...options2,
      printWidth: Number.POSITIVE_INFINITY,
      endOfLine: "lf"
    }).formatted);
    const tableBody = [{
      hasLineBreak: false,
      cells: []
    }];
    for (let i = 1; i < node.quasis.length; i++) {
      const row = method_at_default(
        /* OPTIONAL_OBJECT: false */
        0,
        tableBody,
        -1
      );
      const correspondingExpression = stringifiedExpressions[i - 1];
      row.cells.push(correspondingExpression);
      if (correspondingExpression.includes("\n")) {
        row.hasLineBreak = true;
      }
      if (node.quasis[i].value.raw.includes("\n")) {
        tableBody.push({
          hasLineBreak: false,
          cells: []
        });
      }
    }
    const maxColumnCount = Math.max(headerNames.length, ...tableBody.map((row) => row.cells.length));
    const maxColumnWidths = Array.from({
      length: maxColumnCount
    }).fill(0);
    const table = [{
      cells: headerNames
    }, ...tableBody.filter((row) => row.cells.length > 0)];
    for (const {
      cells
    } of table.filter((row) => !row.hasLineBreak)) {
      for (const [index, cell] of cells.entries()) {
        maxColumnWidths[index] = Math.max(maxColumnWidths[index], get_string_width_default(cell));
      }
    }
    return [lineSuffixBoundary, "`", indent([hardline, join(hardline, table.map((row) => join(" | ", row.cells.map((cell, index) => row.hasLineBreak ? cell : cell + " ".repeat(maxColumnWidths[index] - get_string_width_default(cell))))))]), hardline, "`"];
  }
}
var templateLiteralIndentCache = /* @__PURE__ */ new WeakMap();
function getTemplateLiteralExpressionIndent(path, options2) {
  const {
    parent: templateLiteral,
    index
  } = path;
  if (!templateLiteralIndentCache.has(templateLiteral)) {
    const {
      tabWidth
    } = options2;
    let previousQuasiIndentSize = 0;
    const sizes = templateLiteral.quasis.map((quasi) => {
      const text = quasi.value.raw;
      const indentSize = text.includes("\n") ? get_indent_size_default(text, tabWidth) : previousQuasiIndentSize;
      previousQuasiIndentSize = indentSize;
      return {
        indentSize,
        previousQuasiText: text
      };
    });
    templateLiteralIndentCache.set(templateLiteral, sizes);
  }
  return templateLiteralIndentCache.get(templateLiteral)[index];
}
function printTemplateExpression(path, options2, print3) {
  const {
    node,
    index
  } = path;
  let expressionDoc = print3();
  const templateLiteral = path.parent;
  const {
    quasis
  } = templateLiteral;
  const start = locEnd(quasis[index]);
  const end = locStart(quasis[index + 1]);
  let interpolationHasNewline = has_newline_in_range_default(options2.originalText, start, end);
  if (!interpolationHasNewline) {
    const renderedExpression = printDocToString(expressionDoc, {
      ...options2,
      printWidth: Number.POSITIVE_INFINITY
    }).formatted;
    if (renderedExpression.includes("\n")) {
      interpolationHasNewline = true;
    } else {
      expressionDoc = renderedExpression;
    }
  }
  if (interpolationHasNewline && (hasComment(node) || node.type === "Identifier" || isMemberExpression(stripChainElementWrappers(node)) || node.type === "ConditionalExpression" || node.type === "SequenceExpression" || isBinaryCastExpression(node) || isBinaryish(node))) {
    expressionDoc = [indent([softline, expressionDoc]), softline];
  }
  let {
    indentSize,
    previousQuasiText
  } = getTemplateLiteralExpressionIndent(path, options2);
  if (options2.__inJestEach) {
    indentSize = Math.max(indentSize, options2.tabWidth);
  }
  expressionDoc = indentSize === 0 && previousQuasiText.endsWith("\n") ? align(Number.NEGATIVE_INFINITY, expressionDoc) : addAlignmentToDoc(expressionDoc, indentSize, options2.tabWidth);
  return group(["${", expressionDoc, lineSuffixBoundary, "}"]);
}
function printTemplateExpressions(path, options2, print3) {
  return path.map(() => printTemplateExpression(path, options2, print3), path.node.type === "TSTemplateLiteralType" ? "types" : "expressions");
}
function escapeTemplateCharacters(doc, raw) {
  return mapDoc(doc, (currentDoc) => {
    if (typeof currentDoc === "string") {
      return raw ? method_replace_all_default(
        /* OPTIONAL_OBJECT: false */
        0,
        currentDoc,
        /(\\*)`/g,
        "$1$1\\`"
      ) : uncookTemplateElementValue(currentDoc);
    }
    return currentDoc;
  });
}
function uncookTemplateElementValue(cookedValue) {
  return method_replace_all_default(
    /* OPTIONAL_OBJECT: false */
    0,
    cookedValue,
    /([\\`]|\$\{)/g,
    "\\$1"
  );
}
var jestEachTriggerRegex = /^[fx]?(?:describe|it|test)$/;
function isJestEachTemplateLiteral({
  node,
  parent
}) {
  return node.type === "TemplateLiteral" && parent.type === "TaggedTemplateExpression" && parent.quasi === node && parent.tag.type === "MemberExpression" && parent.tag.property.type === "Identifier" && parent.tag.property.name === "each" && (parent.tag.object.type === "Identifier" && jestEachTriggerRegex.test(parent.tag.object.name) || parent.tag.object.type === "MemberExpression" && parent.tag.object.property.type === "Identifier" && (parent.tag.object.property.name === "only" || parent.tag.object.property.name === "skip") && parent.tag.object.object.type === "Identifier" && jestEachTriggerRegex.test(parent.tag.object.object.name));
}
 
// src/language-js/embed/utilities.js
var angularComponentObjectExpressionPredicates = [
  (node, name) => name === "properties" && node.type === "ObjectExpression",
  (node, name) => name === "arguments" && node.type === "CallExpression" && node.callee.type === "Identifier" && node.callee.name === "Component",
  (node, name) => name === "expression" && node.type === "Decorator"
];
function isAngularComponentStyles(path) {
  const isTemplateLiteral = (node) => node.type === "TemplateLiteral";
  const isObjectPropertyNamedStyles = (node, key) => isObjectProperty(node) && !node.computed && node.key.type === "Identifier" && node.key.name === "styles" && key === "value";
  return path.match(
    isTemplateLiteral,
    (node, name) => isArrayExpression(node) && name === "elements",
    isObjectPropertyNamedStyles,
    ...angularComponentObjectExpressionPredicates
  ) || path.match(
    isTemplateLiteral,
    isObjectPropertyNamedStyles,
    ...angularComponentObjectExpressionPredicates
  );
}
function isAngularComponentTemplate(path) {
  return path.match(
    (node) => node.type === "TemplateLiteral",
    (node, name) => isObjectProperty(node) && !node.computed && node.key.type === "Identifier" && node.key.name === "template" && name === "value",
    ...angularComponentObjectExpressionPredicates
  );
}
function hasLeadingBlockCommentWithName(node, languageName) {
  return hasComment(
    node,
    CommentCheckFlags.Block | CommentCheckFlags.Leading,
    ({ value }) => value === ` ${languageName} `
  );
}
function hasLanguageComment({ node, parent }, languageName) {
  return hasLeadingBlockCommentWithName(node, languageName) || isAsConstExpression(parent) && hasLeadingBlockCommentWithName(parent, languageName) || parent.type === "ExpressionStatement" && hasLeadingBlockCommentWithName(parent, languageName);
}
function isAsConstExpression(node) {
  return node.type === "AsConstExpression" || node.type === "TSAsExpression" && node.typeAnnotation.type === "TSTypeReference" && node.typeAnnotation.typeName.type === "Identifier" && node.typeAnnotation.typeName.name === "const";
}
 
// src/language-js/embed/css.js
async function printEmbedCss(textToDoc, print3, path, options2) {
  const { node } = path;
  let text = "";
  for (const [index, quasis] of node.quasis.entries()) {
    const { raw } = quasis.value;
    if (index > 0) {
      text += "@prettier-placeholder-" + (index - 1) + "-id";
    }
    text += raw;
  }
  const quasisDoc = await textToDoc(text, { parser: "scss" });
  const expressionDocs = printTemplateExpressions(path, options2, print3);
  const newDoc = replacePlaceholders(quasisDoc, expressionDocs);
  if (!newDoc) {
    throw new Error("Couldn't insert all the expressions");
  }
  return ["`", indent([hardline, newDoc]), softline, "`"];
}
function replacePlaceholders(quasisDoc, expressionDocs) {
  if (!is_non_empty_array_default(expressionDocs)) {
    return quasisDoc;
  }
  let replaceCounter = 0;
  const newDoc = mapDoc(cleanDoc(quasisDoc), (doc) => {
    if (typeof doc !== "string" || !doc.includes("@prettier-placeholder")) {
      return doc;
    }
    return doc.split(/@prettier-placeholder-(\d+)-id/).map((component, idx) => {
      if (idx % 2 === 0) {
        return replaceEndOfLine(component);
      }
      replaceCounter++;
      return expressionDocs[component];
    });
  });
  return expressionDocs.length === replaceCounter ? newDoc : null;
}
function isStyledJsx(path) {
  return path.match(
    void 0,
    (node, key) => key === "quasi" && node.type === "TaggedTemplateExpression" && isNodeMatches(node.tag, ["css", "css.global", "css.resolve"])
  ) || path.match(
    void 0,
    (node, key) => key === "expression" && node.type === "JSXExpressionContainer",
    (node, key) => key === "children" && node.type === "JSXElement" && node.openingElement.name.type === "JSXIdentifier" && node.openingElement.name.name === "style" && node.openingElement.attributes.some(
      (attribute) => attribute.type === "JSXAttribute" && attribute.name.type === "JSXIdentifier" && attribute.name.name === "jsx"
    )
  );
}
function isStyledIdentifier(node) {
  return node.type === "Identifier" && node.name === "styled";
}
function isStyledExtend(node) {
  return /^[A-Z]/.test(node.object.name) && node.property.name === "extend";
}
function isStyledComponents({ parent }) {
  if (!parent || parent.type !== "TaggedTemplateExpression") {
    return false;
  }
  const tag = parent.tag.type === "ParenthesizedExpression" ? parent.tag.expression : parent.tag;
  switch (tag.type) {
    case "MemberExpression":
      return (
        // styled.foo``
        isStyledIdentifier(tag.object) || // Component.extend``
        isStyledExtend(tag)
      );
    case "CallExpression":
      return (
        // styled(Component)``
        isStyledIdentifier(tag.callee) || tag.callee.type === "MemberExpression" && (tag.callee.object.type === "MemberExpression" && // styled.foo.attrs({})``
        (isStyledIdentifier(tag.callee.object.object) || // Component.extend.attrs({})``
        isStyledExtend(tag.callee.object)) || // styled(Component).attrs({})``
        tag.callee.object.type === "CallExpression" && isStyledIdentifier(tag.callee.object.callee))
      );
    case "Identifier":
      return tag.name === "css";
    default:
      return false;
  }
}
function isCssProp({ parent, grandparent }) {
  return grandparent?.type === "JSXAttribute" && parent.type === "JSXExpressionContainer" && grandparent.name.type === "JSXIdentifier" && grandparent.name.name === "css";
}
var isEmbedCss = (path) => isStyledJsx(path) || isStyledComponents(path) || isCssProp(path) || isAngularComponentStyles(path);
 
// src/language-js/embed/graphql.js
async function printEmbedGraphQL(textToDoc, print3, path, options2) {
  const { node } = path;
  const numQuasis = node.quasis.length;
  const expressionDocs = printTemplateExpressions(path, options2, print3);
  const parts = [];
  for (let i = 0; i < numQuasis; i++) {
    const templateElement = node.quasis[i];
    const isFirst = i === 0;
    const isLast = i === numQuasis - 1;
    const text = templateElement.value.cooked;
    const lines = text.split("\n");
    const numLines = lines.length;
    const startsWithBlankLine = numLines > 2 && lines[0].trim() === "" && lines[1].trim() === "";
    const endsWithBlankLine = numLines > 2 && lines[numLines - 1].trim() === "" && lines[numLines - 2].trim() === "";
    const commentsAndWhitespaceOnly = lines.every(
      (line2) => /^\s*(?:#[^\n\r]*)?$/.test(line2)
    );
    if (!isLast && /#[^\n\r]*$/.test(lines[numLines - 1])) {
      return null;
    }
    let doc;
    if (commentsAndWhitespaceOnly) {
      doc = printGraphqlComments(lines);
    } else {
      doc = await textToDoc(text, { parser: "graphql" });
    }
    if (doc) {
      doc = escapeTemplateCharacters(doc, false);
      if (!isFirst && startsWithBlankLine) {
        parts.push("");
      }
      parts.push(doc);
      if (!isLast && endsWithBlankLine) {
        parts.push("");
      }
    } else if (!isFirst && !isLast && startsWithBlankLine) {
      parts.push("");
    }
    if (!isLast) {
      parts.push(expressionDocs[i]);
    }
  }
  return ["`", indent([hardline, join(hardline, parts)]), hardline, "`"];
}
function printGraphqlComments(lines) {
  const parts = [];
  let seenComment = false;
  const array = lines.map((textLine) => textLine.trim());
  for (const [i, textLine] of array.entries()) {
    if (textLine === "") {
      continue;
    }
    if (array[i - 1] === "" && seenComment) {
      parts.push([hardline, textLine]);
    } else {
      parts.push(textLine);
    }
    seenComment = true;
  }
  return parts.length === 0 ? null : join(hardline, parts);
}
function isEmbedGraphQL({ node, parent }) {
  return hasLanguageComment({ node, parent }, "GraphQL") || parent && (parent.type === "TaggedTemplateExpression" && (parent.tag.type === "MemberExpression" && parent.tag.object.name === "graphql" && parent.tag.property.name === "experimental" || parent.tag.type === "Identifier" && (parent.tag.name === "gql" || parent.tag.name === "graphql")) || parent.type === "CallExpression" && parent.callee.type === "Identifier" && parent.callee.name === "graphql");
}
 
// src/language-js/embed/html.js
var htmlTemplateLiteralCounter = 0;
async function printEmbedHtmlLike(parser, textToDoc, print3, path, options2) {
  const {
    node
  } = path;
  const counter = htmlTemplateLiteralCounter;
  htmlTemplateLiteralCounter = htmlTemplateLiteralCounter + 1 >>> 0;
  const composePlaceholder = (index) => `PRETTIER_HTML_PLACEHOLDER_${index}_${counter}_IN_JS`;
  const text = node.quasis.map((quasi, index, quasis) => index === quasis.length - 1 ? quasi.value.cooked : quasi.value.cooked + composePlaceholder(index)).join("");
  const expressionDocs = printTemplateExpressions(path, options2, print3);
  const placeholderRegex = new RegExp(composePlaceholder("(\\d+)"), "g");
  let topLevelCount = 0;
  const doc = await textToDoc(text, {
    parser,
    __onHtmlRoot(root) {
      topLevelCount = root.children.length;
    }
  });
  const contentDoc = mapDoc(doc, (doc2) => {
    if (typeof doc2 !== "string") {
      return doc2;
    }
    const parts = [];
    const components = doc2.split(placeholderRegex);
    for (let i = 0; i < components.length; i++) {
      let component = components[i];
      if (i % 2 === 0) {
        if (component) {
          component = uncookTemplateElementValue(component);
          if (options2.__embeddedInHtml) {
            component = method_replace_all_default(
              /* OPTIONAL_OBJECT: false */
              0,
              component,
              /<\/(?=script\b)/gi,
              "<\\/"
            );
          }
          parts.push(component);
        }
        continue;
      }
      const placeholderIndex = Number(component);
      parts.push(expressionDocs[placeholderIndex]);
    }
    return parts;
  });
  const leadingWhitespace = /^\s/.test(text) ? " " : "";
  const trailingWhitespace = /\s$/.test(text) ? " " : "";
  const linebreak = options2.htmlWhitespaceSensitivity === "ignore" ? hardline : leadingWhitespace && trailingWhitespace ? line : null;
  if (linebreak) {
    return group(["`", indent([linebreak, group(contentDoc)]), linebreak, "`"]);
  }
  return label({
    hug: false
  }, group(["`", leadingWhitespace, topLevelCount > 1 ? indent(group(contentDoc)) : group(contentDoc), trailingWhitespace, "`"]));
}
function isEmbedHtml(path) {
  return hasLanguageComment(path, "HTML") || path.match((node) => node.type === "TemplateLiteral", (node, name) => node.type === "TaggedTemplateExpression" && node.tag.type === "Identifier" && node.tag.name === "html" && name === "quasi");
}
var printEmbedHtml = printEmbedHtmlLike.bind(void 0, "html");
var printEmbedAngular = printEmbedHtmlLike.bind(void 0, "angular");
 
// src/language-js/embed/markdown.js
async function printEmbedMarkdown(textToDoc, print3, path) {
  const {
    node
  } = path;
  let text = method_replace_all_default(
    /* OPTIONAL_OBJECT: false */
    0,
    node.quasis[0].value.raw,
    /((?:\\\\)*)\\`/g,
    (_, backslashes) => "\\".repeat(backslashes.length / 2) + "`"
  );
  const indentation = getIndentation(text);
  const hasIndent = indentation !== "";
  if (hasIndent) {
    text = method_replace_all_default(
      /* OPTIONAL_OBJECT: false */
      0,
      text,
      new RegExp(`^${indentation}`, "gm"),
      ""
    );
  }
  const doc = escapeTemplateCharacters(await textToDoc(text, {
    parser: "markdown",
    __inJsTemplate: true
  }), true);
  return ["`", hasIndent ? indent([softline, doc]) : [literalline, dedentToRoot(doc)], softline, "`"];
}
function getIndentation(str) {
  const firstMatchedIndent = str.match(/^([^\S\n]*)\S/m);
  return firstMatchedIndent === null ? "" : firstMatchedIndent[1];
}
function isEmbedMarkdown({
  node,
  parent
}) {
  return parent?.type === "TaggedTemplateExpression" && node.quasis.length === 1 && parent.tag.type === "Identifier" && (parent.tag.name === "md" || parent.tag.name === "markdown");
}
 
// src/language-js/embed/index.js
var printers = [
  { test: isEmbedCss, print: printEmbedCss },
  { test: isEmbedGraphQL, print: printEmbedGraphQL },
  { test: isEmbedHtml, print: printEmbedHtml },
  { test: isAngularComponentTemplate, print: printEmbedAngular },
  { test: isEmbedMarkdown, print: printEmbedMarkdown }
].map(({ test, print: print3 }) => ({
  test,
  print: createTemplateLiteralPrint(print3)
}));
function embed(path) {
  const { node } = path;
  if (node.type !== "TemplateLiteral" || // Bail out if any of the quasis have an invalid escape sequence
  // (which would make the `cooked` value be `null`)
  hasInvalidCookedValue(node)) {
    return;
  }
  const printer = printers.find(({ test }) => test(path));
  if (!printer) {
    return;
  }
  if (
    // Special case: whitespace-only template literals
    node.quasis.length === 1 && node.quasis[0].value.raw.trim() === ""
  ) {
    return "``";
  }
  return printer.print;
}
function createTemplateLiteralPrint(print3) {
  return async (...args) => {
    const doc = await print3(...args);
    return doc && label({ embed: true, ...doc.label }, doc);
  };
}
function hasInvalidCookedValue({ quasis }) {
  return quasis.some(({ value: { cooked } }) => cooked === null);
}
var embed_default = embed;
 
// src/language-js/massage-ast/chain-expression.js
function cleanChainExpression(original, cloned) {
  if (original.type === "ChainExpression") {
    cleanEstreeChainExpression(cloned);
  }
  if (original.type === "OptionalMemberExpression" || original.type === "OptionalCallExpression") {
    cleanBabelChainExpression(cloned);
  }
}
function getChainElementProperty(node) {
  if (isMemberExpression(node)) {
    return "object";
  }
  if (isCallExpression(node)) {
    return "callee";
  }
  if (isChainElementWrapper(node)) {
    return "expression";
  }
}
function getChainElement(node) {
  const property = getChainElementProperty(node);
  if (property) {
    return node[property];
  }
}
function cleanEstreeChainExpression(node) {
  for (node = getChainElement(node); node.type === "MemberExpression" || node.type === "CallExpression" || node.type === "TSNonNullExpression"; node = getChainElement(node)) {
    const property = getChainElementProperty(node);
    const child = node[property];
    if (child.type === "ChainExpression") {
      node[property] = child.expression;
    }
  }
}
function cleanBabelChainExpression(node) {
  for (node = getChainElement(node); node.type === "MemberExpression" || node.type === "CallExpression"; node = getChainElement(node)) {
    node.type = `Optional${node.type}`;
  }
}
 
// src/language-js/massage-ast/key.js
function cleanNodeKey(cloned, original, property) {
  const key = original[property];
  if (isStringLiteral(key) || isNumericLiteral(key)) {
    cloned[property] = String(key.value);
  }
  if (key.type === "Identifier") {
    cloned[property] = key.name;
  }
}
function cleanKey(original, cloned) {
  if ((original.type === "Property" || original.type === "ObjectProperty" || original.type === "MethodDefinition" || original.type === "ClassProperty" || original.type === "ClassMethod" || original.type === "PropertyDefinition" || original.type === "TSDeclareMethod" || original.type === "TSPropertySignature" || original.type === "TSMethodSignature" || original.type === "ObjectTypeProperty" || original.type === "ImportAttribute" || original.type === "RecordDeclarationProperty" || original.type === "RecordDeclarationStaticProperty") && // @ts-expect-error -- safe
  !original.computed) {
    cleanNodeKey(cloned, original, "key");
  }
  if (original.type === "TSEnumMember") {
    cleanNodeKey(cloned, original, "id");
  }
}
 
// src/language-js/massage-ast/regexp-literal.js
function cleanRegExpLiteral(original, cloned) {
  if (original.type === "RegExpLiteral") {
    cloned.flags = [...original.flags].sort().join("");
  }
  if (original.type === "Literal" && "regex" in original) {
    cloned.regex.flags = [...original.regex.flags].sort().join("");
  }
}
 
// src/language-js/massage-ast/index.js
var ignoredProperties = /* @__PURE__ */ new Set([
  "range",
  "raw",
  "comments",
  "leadingComments",
  "trailingComments",
  "innerComments",
  "extra",
  "start",
  "end",
  "loc",
  "errors",
  "tokens",
  // Hermes
  "trailingComma",
  "docblock",
  // Prettier
  "__contentEnd"
]);
var removeTemplateElementsValue = (node) => {
  for (const templateElement of node.quasis) {
    delete templateElement.value;
  }
};
function massageAstNode(original, cloned, parent) {
  if (original.type === "Program") {
    delete cloned.sourceType;
  }
  cleanChainExpression(original, cloned);
  cleanKey(original, cloned);
  cleanRegExpLiteral(original, cloned);
  if ((isBigIntLiteral(original) || original.type === "BigIntLiteralTypeAnnotation") && "bigint" in original) {
    cloned.bigint = original.bigint.toLowerCase();
  }
  if (original.type === "EmptyStatement" && !isMeaningfulEmptyStatement({
    node: original,
    parent
  })) {
    return null;
  }
  if (original.type === "JSXText") {
    return null;
  }
  if (original.type === "JSXExpressionContainer" && (original.expression.type === "Literal" || original.expression.type === "StringLiteral") && original.expression.value === " ") {
    return null;
  }
  if (original.type === "JSXElement" && original.openingElement.name.type === "JSXIdentifier" && original.openingElement.name.name === "style" && original.openingElement.attributes.some((attr) => attr.type === "JSXAttribute" && attr.name.name === "jsx")) {
    for (const {
      type,
      expression: expression2
    } of cloned.children) {
      if (type === "JSXExpressionContainer" && expression2.type === "TemplateLiteral") {
        removeTemplateElementsValue(expression2);
      }
    }
  }
  if (original.type === "JSXAttribute" && original.name.name === "css" && original.value.type === "JSXExpressionContainer" && original.value.expression.type === "TemplateLiteral") {
    removeTemplateElementsValue(cloned.value.expression);
  }
  if (original.type === "JSXAttribute" && isStringLiteral(original.value) && /["']|&quot;|&apos;/.test(original.value.value)) {
    cloned.value.value = method_replace_all_default(
      /* OPTIONAL_OBJECT: false */
      0,
      original.value.value,
      /["']|&quot;|&apos;/g,
      '"'
    );
  }
  const expression = original.expression || original.callee;
  if (original.type === "Decorator" && expression.type === "CallExpression" && expression.callee.name === "Component" && expression.arguments.length === 1) {
    const astProps = original.expression.arguments[0].properties;
    for (const [index, prop] of cloned.expression.arguments[0].properties.entries()) {
      switch (astProps[index].key.name) {
        case "styles":
          if (isArrayExpression(prop.value)) {
            removeTemplateElementsValue(prop.value.elements[0]);
          }
          break;
        case "template":
          if (prop.value.type === "TemplateLiteral") {
            removeTemplateElementsValue(prop.value);
          }
          break;
      }
    }
  }
  if (original.type === "TaggedTemplateExpression" && (original.tag.type === "MemberExpression" || original.tag.type === "Identifier" && (original.tag.name === "gql" || original.tag.name === "graphql" || original.tag.name === "css" || original.tag.name === "md" || original.tag.name === "markdown" || original.tag.name === "html") || original.tag.type === "CallExpression")) {
    removeTemplateElementsValue(cloned.quasi);
  }
  if ((original.type === "CallExpression" || original.type === "MemberExpression") && // @ts-expect-error -- safe
  !original.optional) {
    delete cloned.optional;
  }
  if (original.type === "TemplateLiteral") {
    removeTemplateElementsValue(cloned);
  }
}
massageAstNode.ignoredProperties = ignoredProperties;
 
// node_modules/jest-docblock/build/index.js
var commentEndRe = /\*\/$/;
var commentStartRe = /^\/\*\*?/;
var docblockRe = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
var lineCommentRe = /(^|\s+)\/\/([^\n\r]*)/g;
var ltrimNewlineRe = /^(\r?\n)+/;
var multilineRe = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
var propertyRe = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
var stringStartRe = /(\r?\n|^) *\* ?/g;
var STRING_ARRAY = [];
function extract(contents) {
  const match = contents.match(docblockRe);
  return match ? match[0].trimStart() : "";
}
function strip(contents) {
  const matchResult = contents.match(docblockRe);
  const match = matchResult?.[0];
  return match == null ? contents : contents.slice(match.length);
}
function parseWithComments(docblock) {
  const line2 = "\n";
  docblock = method_replace_all_default(
    /* OPTIONAL_OBJECT: false */
    0,
    docblock.replace(commentStartRe, "").replace(commentEndRe, ""),
    stringStartRe,
    "$1"
  );
  let prev = "";
  while (prev !== docblock) {
    prev = docblock;
    docblock = method_replace_all_default(
      /* OPTIONAL_OBJECT: false */
      0,
      docblock,
      multilineRe,
      `${line2}$1 $2${line2}`
    );
  }
  docblock = docblock.replace(ltrimNewlineRe, "").trimEnd();
  const result = /* @__PURE__ */ Object.create(null);
  const comments = method_replace_all_default(
    /* OPTIONAL_OBJECT: false */
    0,
    docblock,
    propertyRe,
    ""
  ).replace(ltrimNewlineRe, "").trimEnd();
  let match;
  while (match = propertyRe.exec(docblock)) {
    const nextPragma = method_replace_all_default(
      /* OPTIONAL_OBJECT: false */
      0,
      match[2],
      lineCommentRe,
      ""
    );
    if (typeof result[match[1]] === "string" || Array.isArray(result[match[1]])) {
      const resultElement = result[match[1]];
      result[match[1]] = [...STRING_ARRAY, ...Array.isArray(resultElement) ? resultElement : [resultElement], nextPragma];
    } else {
      result[match[1]] = nextPragma;
    }
  }
  return {
    comments,
    pragmas: result
  };
}
function print({
  comments = "",
  pragmas = {}
}) {
  const line2 = "\n";
  const head = "/**";
  const start = " *";
  const tail = " */";
  const keys = Object.keys(pragmas);
  const printedObject = keys.flatMap((key) => printKeyValues(key, pragmas[key])).map((keyValue) => `${start} ${keyValue}${line2}`).join("");
  if (!comments) {
    if (keys.length === 0) {
      return "";
    }
    if (keys.length === 1 && !Array.isArray(pragmas[keys[0]])) {
      const value = pragmas[keys[0]];
      return `${head} ${printKeyValues(keys[0], value)[0]}${tail}`;
    }
  }
  const printedComments = comments.split(line2).map((textLine) => `${start} ${textLine}`).join(line2) + line2;
  return head + line2 + (comments ? printedComments : "") + (comments && keys.length > 0 ? start + line2 : "") + printedObject + tail;
}
function printKeyValues(key, valueOrArray) {
  return [...STRING_ARRAY, ...Array.isArray(valueOrArray) ? valueOrArray : [valueOrArray]].map((value) => `@${key} ${value}`.trim());
}
 
// src/utilities/pragma/pragma.evaluate.js
var FORMAT_PRAGMA_TO_INSERT = "format";
 
// src/language-js/utilities/get-shebang.js
function getShebang(text) {
  if (!text.startsWith("#!")) {
    return "";
  }
  const index = text.indexOf("\n");
  if (index === -1) {
    return text;
  }
  return text.slice(0, index);
}
var get_shebang_default = getShebang;
 
// src/language-js/pragma.js
function parseDocBlock(text) {
  const shebang = get_shebang_default(text);
  if (shebang) {
    text = text.slice(shebang.length + 1);
  }
  const docBlock = extract(text);
  const {
    pragmas,
    comments
  } = parseWithComments(docBlock);
  return {
    shebang,
    text,
    pragmas,
    comments
  };
}
function insertPragma(originalText) {
  const {
    shebang,
    text,
    pragmas,
    comments
  } = parseDocBlock(originalText);
  const strippedText = strip(text);
  let docBlock = print({
    pragmas: {
      [FORMAT_PRAGMA_TO_INSERT]: "",
      ...pragmas
    },
    comments: comments.trimStart()
  });
  if (false) {
    docBlock = normalizeEndOfLine(docBlock);
  }
  return (shebang ? `${shebang}
` : "") + docBlock + (strippedText.startsWith("\n") ? "\n" : "\n\n") + strippedText;
}
 
// src/language-js/utilities/is-indentable-block-comment.js
function isIndentableBlockCommentInternal(comment) {
  if (!isBlockComment(comment)) {
    return false;
  }
  const lines = `*${comment.value}*`.split("\n");
  return lines.length > 1 && lines.every((line2) => line2.trimStart()[0] === "*");
}
var cache4 = /* @__PURE__ */ new WeakMap();
function isIndentableBlockComment(comment) {
  if (!cache4.has(comment)) {
    cache4.set(comment, isIndentableBlockCommentInternal(comment));
  }
  return cache4.get(comment);
}
var is_indentable_block_comment_default = isIndentableBlockComment;
 
// src/language-js/print/comment.js
function printComment2(path, options2) {
  const comment = path.node;
  if (isLineComment(comment)) {
    return options2.originalText.slice(locStart(comment), locEnd(comment)).trimEnd();
  }
  if (is_indentable_block_comment_default(comment)) {
    return printIndentableBlockComment(comment);
  }
  if (isBlockComment(comment)) {
    return ["/*", replaceEndOfLine(comment.value), "*/"];
  }
  throw new Error("Not a comment: " + JSON.stringify(comment));
}
function printIndentableBlockComment(comment) {
  const lines = comment.value.split("\n");
  const isJsdoc = comment.value[0] === "*" && comment.value[1] !== "*";
  return [
    "/*",
    lines.map((line2, index) => {
      if (index === 0) {
        return [line2.trimEnd(), hardline];
      }
      if (index === lines.length - 1) {
        return [" ", line2.trimStart()];
      }
      const trimmed = line2.trim();
      const content = [" ", trimmed];
      if (isJsdoc && trimmed !== "*" && line2.endsWith("  ")) {
        return [content, "  ", markAsRoot(literalline)];
      }
      return [content, hardline];
    }),
    "*/"
  ];
}
 
// node_modules/escape-string-regexp/index.js
function escapeStringRegexp(string) {
  if (typeof string !== "string") {
    throw new TypeError("Expected a string");
  }
  return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
}
 
// src/utilities/whitespace-utilities.js
var WhitespaceUtilities = class {
  #whitespaceCharacters;
  constructor(whitespaceCharacters) {
    this.#whitespaceCharacters = new Set(whitespaceCharacters);
    if (false) {
      throw new TypeError(`Invalid characters: ${JSON.stringify(whitespaceCharacters)}`);
    }
  }
  getLeadingWhitespaceCount(text) {
    const whitespaceCharacters = this.#whitespaceCharacters;
    let count = 0;
    for (let index = 0; index < text.length && whitespaceCharacters.has(text.charAt(index)); index++) {
      count++;
    }
    return count;
  }
  getTrailingWhitespaceCount(text) {
    const whitespaceCharacters = this.#whitespaceCharacters;
    let count = 0;
    for (let index = text.length - 1; index >= 0 && whitespaceCharacters.has(text.charAt(index)); index--) {
      count++;
    }
    return count;
  }
  getLeadingWhitespace(text) {
    const count = this.getLeadingWhitespaceCount(text);
    return text.slice(0, count);
  }
  getTrailingWhitespace(text) {
    const count = this.getTrailingWhitespaceCount(text);
    return text.slice(text.length - count);
  }
  hasLeadingWhitespace(text) {
    return this.#whitespaceCharacters.has(text.charAt(0));
  }
  hasTrailingWhitespace(text) {
    return this.#whitespaceCharacters.has(method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      text,
      -1
    ));
  }
  trimStart(text) {
    const count = this.getLeadingWhitespaceCount(text);
    return text.slice(count);
  }
  trimEnd(text) {
    const count = this.getTrailingWhitespaceCount(text);
    return text.slice(0, text.length - count);
  }
  trim(text) {
    return this.trimEnd(this.trimStart(text));
  }
  split(text, captureWhitespace = false) {
    const pattern = `[${escapeStringRegexp([...this.#whitespaceCharacters].join(""))}]+`;
    const regexp = new RegExp(captureWhitespace ? `(${pattern})` : pattern);
    return text.split(regexp);
  }
  hasWhitespaceCharacter(text) {
    const whitespaceCharacters = this.#whitespaceCharacters;
    return Array.prototype.some.call(text, (character) => whitespaceCharacters.has(character));
  }
  hasNonWhitespaceCharacter(text) {
    const whitespaceCharacters = this.#whitespaceCharacters;
    return Array.prototype.some.call(text, (character) => !whitespaceCharacters.has(character));
  }
  isWhitespaceOnly(text) {
    const whitespaceCharacters = this.#whitespaceCharacters;
    return Array.prototype.every.call(text, (character) => whitespaceCharacters.has(character));
  }
  #getMinIndentation(text) {
    let minIndentation = Number.POSITIVE_INFINITY;
    for (const line2 of text.split("\n")) {
      if (line2.length === 0) {
        continue;
      }
      const indentation = this.getLeadingWhitespaceCount(line2);
      if (indentation === 0) {
        return 0;
      }
      if (line2.length === indentation) {
        continue;
      }
      if (indentation < minIndentation) {
        minIndentation = indentation;
      }
    }
    return minIndentation === Number.POSITIVE_INFINITY ? 0 : minIndentation;
  }
  dedentString(text) {
    const minIndent = this.#getMinIndentation(text);
    return minIndent === 0 ? text : text.split("\n").map((lineText) => lineText.slice(minIndent)).join("\n");
  }
};
var whitespace_utilities_default = WhitespaceUtilities;
 
// src/language-js/utilities/jsx-whitespace.js
var jsxWhitespace = new whitespace_utilities_default(" \n\r	");
 
// src/language-js/utilities/is-meaningful-jsx-text.js
function isMeaningfulJsxText(node) {
  return node.type === "JSXText" && (jsxWhitespace.hasNonWhitespaceCharacter(getRaw(node)) || !/\n/.test(getRaw(node)));
}
 
// src/language-js/utilities/has-jsx-ignore-comment.js
function hasJsxIgnoreComment(path) {
  const { node, parent } = path;
  if (!isJsxElement(node) || !isJsxElement(parent)) {
    return false;
  }
  const { index, siblings } = path;
  let prevSibling;
  for (let i = index; i > 0; i--) {
    const candidate = siblings[i - 1];
    if (candidate.type === "JSXText" && !isMeaningfulJsxText(candidate)) {
      continue;
    }
    prevSibling = candidate;
    break;
  }
  return prevSibling?.type === "JSXExpressionContainer" && prevSibling.expression.type === "JSXEmptyExpression" && hasNodeIgnoreComment(prevSibling.expression);
}
 
// src/language-js/utilities/is-ignored.js
function isIgnored(path) {
  return hasNodeIgnoreComment(path.node) || hasJsxIgnoreComment(path);
}
var is_ignored_default = isIgnored;
 
// src/utilities/unexpected-node-error.js
var UnexpectedNodeError = class extends Error {
  name = "UnexpectedNodeError";
  constructor(node, language, typeProperty = "type") {
    super(
      `Unexpected ${language} node ${typeProperty}: ${JSON.stringify(
        node[typeProperty]
      )}.`
    );
    this.node = node;
  }
};
var unexpected_node_error_default = UnexpectedNodeError;
 
// src/language-js/utilities/is-boolean-type-coercion.js
function isBooleanTypeCoercion(node) {
  return node.type === "CallExpression" && // @ts-expect-error -- expected
  !node.optional && node.arguments.length === 1 && node.callee.type === "Identifier" && node.callee.name === "Boolean";
}
 
// src/language-js/print/binaryish.js
var uid = 0;
function printBinaryishExpression(path, options2, print3) {
  const {
    node,
    parent,
    grandparent,
    key
  } = path;
  const isInsideParenthesis = key !== "body" && (parent.type === "IfStatement" || parent.type === "WhileStatement" || parent.type === "SwitchStatement" || parent.type === "DoWhileStatement");
  const isHackPipeline = node.operator === "|>" && path.root.extra?.__isUsingHackPipeline;
  const parts = printBinaryishExpressions(
    path,
    options2,
    print3,
    /* isNested */
    false,
    isInsideParenthesis
  );
  if (isInsideParenthesis) {
    return parts;
  }
  if (isHackPipeline) {
    return group(parts);
  }
  if (key === "callee" && isCallOrNewExpression(parent) || // `UnaryExpression` adds parentheses and indention when argument has comment
  parent.type === "UnaryExpression" && !hasComment(node) || isMemberExpression(parent) && !parent.computed) {
    return group([indent([softline, ...parts]), softline]);
  }
  const shouldNotIndent = isReturnOrThrowStatement(parent) || parent.type === "JSXExpressionContainer" && grandparent.type === "JSXAttribute" || node.operator !== "|" && parent.type === "JsExpressionRoot" || node.type !== "NGPipeExpression" && (parent.type === "NGRoot" && options2.parser === "__ng_binding" || parent.type === "NGMicrosyntaxExpression" && grandparent.type === "NGMicrosyntax" && grandparent.body.length === 1) || node === parent.body && parent.type === "ArrowFunctionExpression" || node !== parent.body && parent.type === "ForStatement" || parent.type === "ConditionalExpression" && !isReturnOrThrowStatement(grandparent) && !isCallOrNewExpression(grandparent) || parent.type === "TemplateLiteral" || key === "argument" && parent.type === "UnaryExpression" || key === "arguments" && isBooleanTypeCoercion(parent);
  const shouldIndentIfInlining = parent.type === "AssignmentExpression" || parent.type === "VariableDeclarator" || parent.type === "ClassProperty" || parent.type === "PropertyDefinition" || parent.type === "TSAbstractPropertyDefinition" || parent.type === "ClassPrivateProperty" || isObjectProperty(parent);
  const samePrecedenceSubExpression = isBinaryish(node.left) && shouldFlatten(node.operator, node.left.operator);
  if (shouldNotIndent || shouldInlineLogicalExpression(node) && !samePrecedenceSubExpression || !shouldInlineLogicalExpression(node) && shouldIndentIfInlining) {
    return group(parts);
  }
  if (parts.length === 0) {
    return "";
  }
  const hasJsx = isJsxElement(node.right);
  const firstGroupIndex = parts.findIndex((part) => typeof part !== "string" && !Array.isArray(part) && part.type === DOC_TYPE_GROUP);
  const headParts = parts.slice(0, firstGroupIndex === -1 ? 1 : firstGroupIndex + 1);
  const rest = parts.slice(headParts.length, hasJsx ? -1 : void 0);
  const groupId = /* @__PURE__ */ Symbol("logicalChain-" + ++uid);
  const chain = group([
    // Don't include the initial expression in the indentation
    // level. The first item is guaranteed to be the first
    // left-most expression.
    ...headParts,
    indent(rest)
  ], {
    id: groupId
  });
  if (!hasJsx) {
    return chain;
  }
  const jsxPart = method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    parts,
    -1
  );
  return group([chain, indentIfBreak(jsxPart, {
    groupId
  })]);
}
function printBinaryishExpressions(path, options2, print3, isNested, isInsideParenthesis) {
  const {
    node
  } = path;
  if (!isBinaryish(node)) {
    return [group(print3())];
  }
  let parts = [];
  if (shouldFlatten(node.operator, node.left.operator)) {
    parts = path.call(() => printBinaryishExpressions(
      path,
      options2,
      print3,
      /* isNested */
      true,
      isInsideParenthesis
    ), "left");
  } else {
    parts.push(group(print3("left")));
  }
  const shouldInline = shouldInlineLogicalExpression(node);
  const rightNodeToCheckComments = node.right.type === "ChainExpression" ? node.right.expression : node.right;
  const lineBeforeOperator = (node.type === "NGPipeExpression" || node.operator === "|>" || isVueFilterSequenceExpression(path, options2)) && !hasLeadingOwnLineComment(options2.originalText, rightNodeToCheckComments);
  const hasTypeCastComment = hasComment(rightNodeToCheckComments, CommentCheckFlags.Leading, isTypeCastComment);
  const commentBeforeOperator = !hasTypeCastComment && hasLeadingOwnLineComment(options2.originalText, rightNodeToCheckComments);
  const operator = node.type === "NGPipeExpression" ? "|" : node.operator;
  const rightSuffix = node.type === "NGPipeExpression" && node.arguments.length > 0 ? group(indent([softline, ": ", join([line, ": "], path.map(() => align(2, group(print3())), "arguments"))])) : "";
  let right;
  if (shouldInline) {
    right = [operator, hasLeadingOwnLineComment(options2.originalText, rightNodeToCheckComments) ? indent([line, print3("right"), rightSuffix]) : [" ", print3("right"), rightSuffix]];
  } else {
    const isHackPipeline = operator === "|>" && path.root.extra?.__isUsingHackPipeline;
    const rightContent = isHackPipeline ? path.call(() => printBinaryishExpressions(
      path,
      options2,
      print3,
      /* isNested */
      true,
      isInsideParenthesis
    ), "right") : print3("right");
    if (options2.experimentalOperatorPosition === "start") {
      let comment = "";
      if (commentBeforeOperator) {
        switch (get_doc_type_default(rightContent)) {
          case DOC_TYPE_ARRAY:
            comment = rightContent.splice(0, 1)[0];
            break;
          case DOC_TYPE_LABEL:
            comment = rightContent.contents.splice(0, 1)[0];
            break;
        }
      }
      right = [line, comment, operator, " ", rightContent, rightSuffix];
    } else {
      right = [lineBeforeOperator ? line : "", operator, lineBeforeOperator ? " " : line, rightContent, rightSuffix];
    }
  }
  const {
    parent
  } = path;
  const shouldBreak = hasComment(node.left, CommentCheckFlags.Trailing | CommentCheckFlags.Line);
  const shouldGroup = shouldBreak || !(isInsideParenthesis && node.type === "LogicalExpression") && parent.type !== node.type && node.left.type !== node.type && node.right.type !== node.type;
  if (shouldGroup) {
    right = group(right, {
      shouldBreak
    });
  }
  if (options2.experimentalOperatorPosition === "start") {
    parts.push(shouldInline || commentBeforeOperator ? " " : "", right);
  } else {
    parts.push(lineBeforeOperator ? "" : " ", right);
  }
  if (isNested && hasComment(node)) {
    const printed = cleanDoc(printComments(path, parts, options2));
    if (printed.type === DOC_TYPE_FILL) {
      return printed.parts;
    }
    return Array.isArray(printed) ? printed : [printed];
  }
  return parts;
}
function shouldInlineLogicalExpression(node) {
  if (node.type !== "LogicalExpression") {
    return false;
  }
  if (isObjectExpression(node.right) && node.right.properties.length > 0) {
    return true;
  }
  if (isArrayExpression(node.right) && node.right.elements.length > 0) {
    return true;
  }
  if (isJsxElement(node.right)) {
    return true;
  }
  return false;
}
var isBitwiseOrExpression = (node) => node.type === "BinaryExpression" && node.operator === "|";
function isVueFilterSequenceExpression(path, options2) {
  return (options2.parser === "__vue_expression" || options2.parser === "__vue_ts_expression") && isBitwiseOrExpression(path.node) && !path.hasAncestor((node) => !isBitwiseOrExpression(node) && node.type !== "JsExpressionRoot");
}
 
// src/language-js/print/angular.js
function printAngular(path, options2, print3) {
  const { node } = path;
  if (!node.type.startsWith("NG")) {
    return;
  }
  switch (node.type) {
    case "NGRoot":
      return print3("node");
    case "NGPipeExpression":
      return printBinaryishExpression(path, options2, print3);
    case "NGChainedExpression":
      return group(
        join(
          [";", line],
          path.map(
            () => hasNgSideEffect(path) ? print3() : ["(", print3(), ")"],
            "expressions"
          )
        )
      );
    case "NGEmptyExpression":
      return "";
    case "NGMicrosyntax":
      return path.map(
        () => [
          path.isFirst ? "" : isNgForOf(path) ? " " : [";", line],
          print3()
        ],
        "body"
      );
    case "NGMicrosyntaxKey":
      return /^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(node.name) ? node.name : JSON.stringify(node.name);
    case "NGMicrosyntaxExpression":
      return [
        print3("expression"),
        node.alias === null ? "" : [" as ", print3("alias")]
      ];
    case "NGMicrosyntaxKeyedExpression": {
      const { index, parent } = path;
      const shouldNotPrintColon = isNgForOf(path) || isNgForOfTrack(path) || (index === 1 && (node.key.name === "then" || node.key.name === "else" || node.key.name === "as") || index === 2 && (node.key.name === "else" && parent.body[index - 1].type === "NGMicrosyntaxKeyedExpression" && parent.body[index - 1].key.name === "then" || node.key.name === "track")) && parent.body[0].type === "NGMicrosyntaxExpression";
      return [
        print3("key"),
        shouldNotPrintColon ? " " : ": ",
        print3("expression")
      ];
    }
    case "NGMicrosyntaxLet":
      return [
        "let ",
        print3("key"),
        node.value === null ? "" : [" = ", print3("value")]
      ];
    case "NGMicrosyntaxAs":
      return [print3("key"), " as ", print3("alias")];
    default:
      throw new unexpected_node_error_default(node, "Angular");
  }
}
function isNgForOf({ node, index }) {
  return node.type === "NGMicrosyntaxKeyedExpression" && node.key.name === "of" && index === 1;
}
function isNgForOfTrack(path) {
  const { node } = path;
  return path.parent.body[1].key.name === "of" && node.type === "NGMicrosyntaxKeyedExpression" && node.key.name === "track" && node.key.type === "NGMicrosyntaxKey";
}
var hasSideEffect = createTypeCheckFunction([
  "CallExpression",
  "OptionalCallExpression",
  "AssignmentExpression"
]);
function hasNgSideEffect({ node }) {
  return hasNode(node, hasSideEffect);
}
 
// src/language-js/print/decorators.js
function printClassMemberDecorators(path, options2, print3) {
  const { node } = path;
  return group([
    join(line, path.map(print3, "decorators")),
    hasNewlineBetweenOrAfterDecorators(node, options2) ? hardline : line
  ]);
}
function printDecoratorsBeforeExport(path, options2, print3) {
  if (!hasDecoratorsBeforeExport(path.node)) {
    return "";
  }
  return [
    join(hardline, path.map(print3, "declaration", "decorators")),
    hardline
  ];
}
function printDecorators(path, options2, print3) {
  const { node, parent } = path;
  const { decorators } = node;
  if (!is_non_empty_array_default(decorators) || // If the parent node is an export declaration and the decorator
  // was written before the export, the export will be responsible
  // for printing the decorators.
  hasDecoratorsBeforeExport(parent) || // Decorators already printed in ignored node
  is_ignored_default(path)) {
    return "";
  }
  const shouldBreak = node.type === "ClassExpression" || node.type === "ClassDeclaration" || hasNewlineBetweenOrAfterDecorators(node, options2);
  return [
    path.key === "declaration" && isExportDeclaration(parent) ? hardline : shouldBreak ? breakParent : "",
    join(line, path.map(print3, "decorators")),
    line
  ];
}
function hasNewlineBetweenOrAfterDecorators(node, options2) {
  return node.decorators.some(
    (decorator) => has_newline_default(options2.originalText, locEnd(decorator))
  );
}
function hasDecoratorsBeforeExport(node) {
  if (node.type !== "ExportDefaultDeclaration" && node.type !== "ExportNamedDeclaration" && node.type !== "DeclareExportDeclaration") {
    return false;
  }
  const decorators = node.declaration?.decorators;
  return is_non_empty_array_default(decorators) && hasSameLocStart(node, decorators[0]);
}
 
// src/language-js/utilities/is-signed-numeric-literal.js
function isSignedNumericLiteral(node) {
  return node.type === "UnaryExpression" && (node.operator === "+" || node.operator === "-") && isNumericLiteral(node.argument);
}
 
// src/language-js/print/array.js
function printArray(path, options2, print3) {
  const {
    node
  } = path;
  const parts = [];
  const elementsProperty = isTupleType(node) ? "elementTypes" : "elements";
  const elements = node[elementsProperty];
  if (elements.length === 0 && !node.inexact) {
    parts.push(group(["[", printDanglingCommentsInList(path, options2), "]"]));
  } else {
    const lastElem = method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      elements,
      -1
    );
    const canHaveTrailingComma = lastElem?.type !== "RestElement" && !node.inexact;
    const needsForcedTrailingComma = lastElem === null;
    const groupId = /* @__PURE__ */ Symbol("array");
    const shouldBreak = !options2.__inJestEach && elements.length > 1 && elements.every((element, i, elements2) => {
      const elementType = element?.type;
      if (!isArrayExpression(element) && !isObjectExpression(element)) {
        return false;
      }
      const nextElement = elements2[i + 1];
      if (nextElement && elementType !== nextElement.type) {
        return false;
      }
      const itemsKey = isArrayExpression(element) ? "elements" : "properties";
      return element[itemsKey] && element[itemsKey].length > 1;
    }) || hasComment(node, CommentCheckFlags.Dangling | CommentCheckFlags.Line);
    const shouldUseConciseFormatting = isConciselyPrintedArray(node, options2);
    const trailingComma = !canHaveTrailingComma ? "" : needsForcedTrailingComma ? "," : !shouldPrintTrailingComma(options2) ? "" : shouldUseConciseFormatting ? ifBreak(",", "", {
      groupId
    }) : ifBreak(",");
    parts.push(group(["[", indent([softline, shouldUseConciseFormatting ? printArrayElementsConcisely(path, options2, print3, trailingComma) : [printArrayElements(path, options2, print3, elementsProperty, node.inexact), trailingComma], printDanglingComments(path, options2)]), softline, "]"], {
      shouldBreak,
      id: groupId
    }));
  }
  parts.push(printOptionalToken(path), printTypeAnnotationProperty(path, print3));
  return parts;
}
function isConciselyPrintedArray(node, options2) {
  return isArrayExpression(node) && node.elements.length > 0 && node.elements.every((element) => element && (isNumericLiteral(element) || isSignedNumericLiteral(element) && !hasComment(element.argument)) && !hasComment(element, CommentCheckFlags.Trailing | CommentCheckFlags.Line, (comment) => !has_newline_default(options2.originalText, locStart(comment), {
    backwards: true
  })));
}
function isLineAfterElementEmpty({
  node
}, {
  originalText: text
}) {
  let currentIdx = locEnd(node);
  if (currentIdx === locStart(node)) {
    return false;
  }
  const {
    length
  } = text;
  while (currentIdx < length) {
    if (text[currentIdx] === ",") {
      break;
    }
    currentIdx = /** @type {number} */
    skip_inline_comment_default(text, skip_trailing_comment_default(text, currentIdx + 1));
  }
  return is_next_line_empty_default(text, currentIdx);
}
function printArrayElements(path, options2, print3, elementsProperty, inexact) {
  const parts = [];
  path.each(({
    node,
    isLast
  }) => {
    parts.push(node ? group(print3()) : "");
    if (!isLast || inexact) {
      parts.push([",", line, node && isLineAfterElementEmpty(path, options2) ? softline : ""]);
    }
  }, elementsProperty);
  if (inexact) {
    parts.push("...");
  }
  return parts;
}
function printArrayElementsConcisely(path, options2, print3, trailingComma) {
  const parts = [];
  path.each(({
    isLast,
    next
  }) => {
    parts.push([print3(), isLast ? trailingComma : ","]);
    if (!isLast) {
      parts.push(isLineAfterElementEmpty(path, options2) ? [hardline, hardline] : hasComment(next, CommentCheckFlags.Leading | CommentCheckFlags.Line) ? hardline : line);
    }
  }, "elements");
  return fill(parts);
}
 
// src/language-js/utilities/template-literal-has-new-lines.js
function templateLiteralHasNewLines(template) {
  return template.quasis.some((quasi) => quasi.value.raw.includes("\n"));
}
 
// src/language-js/utilities/is-template-on-its-own-line.js
function isTemplateOnItsOwnLine(node, text) {
  return (node.type === "TemplateLiteral" && templateLiteralHasNewLines(node) || node.type === "TaggedTemplateExpression" && templateLiteralHasNewLines(node.quasi)) && !has_newline_default(text, locStart(node), { backwards: true });
}
 
// src/language-js/print/arrow-function.js
var shouldAddParensIfNotBreakCache = /* @__PURE__ */ new WeakMap();
function shouldAddParensIfNotBreak(node) {
  if (!shouldAddParensIfNotBreakCache.has(node)) {
    shouldAddParensIfNotBreakCache.set(
      node,
      node.type === "ConditionalExpression" && !startsWithNoLookaheadToken(
        node,
        (node2) => node2.type === "ObjectExpression"
      )
    );
  }
  return shouldAddParensIfNotBreakCache.get(node);
}
var shouldAlwaysAddParens = (node) => node.type === "SequenceExpression";
function printArrowFunction(path, options2, print3, args = {}) {
  const signatureDocs = [];
  let bodyDoc;
  const bodyComments = [];
  let shouldBreakChain = false;
  const shouldPrintAsChain = !args.expandLastArg && path.node.body.type === "ArrowFunctionExpression";
  let functionBody;
  (function rec() {
    const { node } = path;
    const signatureDoc = printArrowFunctionSignature(
      path,
      options2,
      print3,
      args
    );
    if (signatureDocs.length === 0) {
      signatureDocs.push(signatureDoc);
    } else {
      const { leading, trailing } = printCommentsSeparately(path, options2);
      signatureDocs.push([leading, signatureDoc]);
      bodyComments.unshift(trailing);
    }
    if (shouldPrintAsChain) {
      shouldBreakChain || (shouldBreakChain = // Always break the chain if:
      node.returnType && getFunctionParameters(node).length > 0 || node.typeParameters || getFunctionParameters(node).some(
        (param) => param.type !== "Identifier"
      ));
    }
    if (!shouldPrintAsChain || node.body.type !== "ArrowFunctionExpression") {
      bodyDoc = print3("body", args);
      functionBody = node.body;
    } else {
      path.call(rec, "body");
    }
  })();
  const shouldPutBodyOnSameLine = !hasLeadingOwnLineComment(options2.originalText, functionBody) && (shouldAlwaysAddParens(functionBody) || mayBreakAfterShortPrefix(functionBody, bodyDoc, options2) || !shouldBreakChain && shouldAddParensIfNotBreak(functionBody));
  const isCallee = path.key === "callee" && isCallLikeExpression(path.parent);
  const chainGroupId = /* @__PURE__ */ Symbol("arrow-chain");
  const signaturesDoc = printArrowFunctionSignatures(path, args, {
    signatureDocs,
    shouldBreak: shouldBreakChain
  });
  let shouldBreakSignatures = false;
  let shouldIndentSignatures = false;
  let shouldPrintSoftlineInIndent = false;
  if (shouldPrintAsChain && (isCallee || // isAssignmentRhs
  args.assignmentLayout)) {
    shouldIndentSignatures = true;
    shouldPrintSoftlineInIndent = !hasComment(
      path.node,
      CommentCheckFlags.Leading & CommentCheckFlags.Line
    );
    shouldBreakSignatures = args.assignmentLayout === "chain-tail-arrow-chain" || isCallee && !shouldPutBodyOnSameLine;
  }
  bodyDoc = printArrowFunctionBody(path, options2, args, {
    bodyDoc,
    bodyComments,
    functionBody,
    shouldPutBodyOnSameLine
  });
  return group([
    group(
      shouldIndentSignatures ? indent([shouldPrintSoftlineInIndent ? softline : "", signaturesDoc]) : signaturesDoc,
      { shouldBreak: shouldBreakSignatures, id: chainGroupId }
    ),
    " =>",
    shouldPrintAsChain ? indentIfBreak(bodyDoc, { groupId: chainGroupId }) : group(bodyDoc),
    shouldPrintAsChain && isCallee ? ifBreak(softline, "", { groupId: chainGroupId }) : ""
  ]);
}
function printArrowFunctionSignature(path, options2, print3, args) {
  const { node } = path;
  const parts = [];
  if (node.async) {
    parts.push("async ");
  }
  if (shouldPrintParamsWithoutParens(path, options2)) {
    parts.push(print3(["params", 0]));
  } else {
    const shouldExpandParameters = args.expandLastArg || args.expandFirstArg;
    let returnTypeDoc = printReturnType(path, print3);
    if (shouldExpandParameters) {
      if (willBreak(returnTypeDoc)) {
        throw new ArgExpansionBailout();
      }
      returnTypeDoc = group(removeLines(returnTypeDoc));
    }
    parts.push(
      group([
        printFunctionParameters(
          path,
          options2,
          print3,
          shouldExpandParameters,
          /* shouldPrintTypeParameters */
          true
        ),
        returnTypeDoc
      ])
    );
  }
  const dangling = printDanglingComments(path, options2, {
    marker: "commentBeforeArrow"
  });
  if (dangling) {
    parts.push(" ", dangling);
  }
  return parts;
}
function mayBreakAfterShortPrefix(functionBody, bodyDoc, options2) {
  return isArrayExpression(functionBody) || isObjectExpression(functionBody) || functionBody.type === "ArrowFunctionExpression" || functionBody.type === "DoExpression" || functionBody.type === "BlockStatement" || isJsxElement(functionBody) || bodyDoc.label?.hug !== false && (bodyDoc.label?.embed || isTemplateOnItsOwnLine(functionBody, options2.originalText));
}
function printArrowFunctionSignatures(path, args, { signatureDocs, shouldBreak }) {
  if (signatureDocs.length === 1) {
    return signatureDocs[0];
  }
  const { parent, key } = path;
  if (key !== "callee" && isCallLikeExpression(parent) || isBinaryish(parent)) {
    return group(
      [
        signatureDocs[0],
        " =>",
        indent([line, join([" =>", line], signatureDocs.slice(1))])
      ],
      { shouldBreak }
    );
  }
  if (key === "callee" && isCallLikeExpression(parent) || // isAssignmentRhs
  args.assignmentLayout) {
    return group(join([" =>", line], signatureDocs), { shouldBreak });
  }
  return group(indent(join([" =>", line], signatureDocs)), { shouldBreak });
}
function printArrowFunctionBody(path, options2, args, { bodyDoc, bodyComments, functionBody, shouldPutBodyOnSameLine }) {
  const { node, parent } = path;
  const trailingComma = args.expandLastArg ? printTrailingComma(options2, "all") : "";
  const trailingSpace = (args.expandLastArg || parent.type === "JSXExpressionContainer") && !hasComment(node) ? softline : "";
  if (shouldPutBodyOnSameLine && shouldAddParensIfNotBreak(functionBody)) {
    return [
      " ",
      group([
        ifBreak("", "("),
        indent([softline, bodyDoc]),
        ifBreak("", ")"),
        trailingComma,
        trailingSpace
      ]),
      bodyComments
    ];
  }
  return shouldPutBodyOnSameLine ? [" ", bodyDoc, bodyComments] : [indent([line, bodyDoc, bodyComments]), trailingComma, trailingSpace];
}
 
// src/language-js/utilities/is-lone-short-argument.js
var LONE_SHORT_ARGUMENT_THRESHOLD_RATE = 0.25;
function isLoneShortArgument(node, options2) {
  const { printWidth } = options2;
  if (hasComment(node)) {
    return false;
  }
  const threshold = printWidth * LONE_SHORT_ARGUMENT_THRESHOLD_RATE;
  if (node.type === "ThisExpression" || node.type === "Identifier" && node.name.length <= threshold || isSignedNumericLiteral(node) && !hasComment(node.argument)) {
    return true;
  }
  const regexpPattern = node.type === "Literal" && "regex" in node && node.regex.pattern || node.type === "RegExpLiteral" && node.pattern;
  if (regexpPattern) {
    return regexpPattern.length <= threshold;
  }
  if (isStringLiteral(node)) {
    return print_string_default(getRaw(node), options2).length <= threshold;
  }
  if (node.type === "TemplateLiteral") {
    return node.expressions.length === 0 && node.quasis[0].value.raw.length <= threshold && !node.quasis[0].value.raw.includes("\n");
  }
  if (node.type === "UnaryExpression") {
    return isLoneShortArgument(node.argument, { printWidth });
  }
  if (node.type === "CallExpression" && node.arguments.length === 0 && node.callee.type === "Identifier") {
    return node.callee.name.length <= threshold - 2;
  }
  return isLiteral(node);
}
 
// src/language-js/utilities/is-memberish.js
function isMemberish(node) {
  return isMemberExpression(node) || node.type === "BindExpression" && Boolean(node.object);
}
 
// src/language-js/utilities/is-function-composition-arguments.js
function isFunctionCompositionArguments(args) {
  if (args.length <= 1) {
    return false;
  }
  let count = 0;
  for (let arg of args) {
    if (isFunctionOrArrowExpression(arg)) {
      count += 1;
      if (count > 1) {
        return true;
      }
    } else {
      arg = stripChainElementWrappers(arg);
      if (isCallExpression(arg)) {
        for (const childArg of getCallArguments(arg)) {
          if (isFunctionOrArrowExpression(childArg)) {
            return true;
          }
        }
      }
    }
  }
  return false;
}
 
// src/language-js/utilities/is-long-curried-call-expression.js
function isLongCurriedCallExpression(path) {
  const { node, parent, key } = path;
  return key === "callee" && isCallExpression(node) && isCallExpression(parent) && parent.arguments.length > 0 && node.arguments.length > parent.arguments.length;
}
 
// src/language-js/utilities/is-simple-call-argument.js
var simpleCallArgumentUnaryOperators = /* @__PURE__ */ new Set(["!", "-", "+", "~"]);
var isSingleWordType = createTypeCheckFunction([
  "Identifier",
  "ThisExpression",
  "Super",
  "PrivateName",
  "PrivateIdentifier"
]);
function isSimpleCallArgument(node, depth = 2) {
  if (depth <= 0) {
    return false;
  }
  const isChildSimple = (child) => isSimpleCallArgument(child, depth - 1);
  node = stripChainElementWrappers(node);
  if (isRegExpLiteral(node)) {
    return (
      // @ts-expect-error -- safe
      get_string_width_default(node.pattern ?? node.regex.pattern) <= 5
    );
  }
  if (isLiteral(node) || isSingleWordType(node) || node.type === "ArgumentPlaceholder") {
    return true;
  }
  if (node.type === "TemplateLiteral") {
    return node.quasis.every((element) => !element.value.raw.includes("\n")) && node.expressions.every(isChildSimple);
  }
  if (isObjectExpression(node)) {
    return node.properties.every(
      (property) => (
        // @ts-expect-error -- FIXME
        !property.computed && // @ts-expect-error -- FIXME
        (property.shorthand || // @ts-expect-error -- FIXME
        property.value && isChildSimple(property.value))
      )
    );
  }
  if (isArrayExpression(node)) {
    return node.elements.every((x) => x === null || isChildSimple(x));
  }
  if (isCallLikeExpression(node)) {
    if (node.type === "ImportExpression" || isSimpleCallArgument(node.callee, depth)) {
      const args = getCallArguments(node);
      return args.length <= depth && args.every(isChildSimple);
    }
    return false;
  }
  if (isMemberExpression(node)) {
    return isSimpleCallArgument(node.object, depth) && isSimpleCallArgument(node.property, depth);
  }
  if (node.type === "UnaryExpression" && simpleCallArgumentUnaryOperators.has(node.operator) || node.type === "UpdateExpression") {
    return isSimpleCallArgument(node.argument, depth);
  }
  return false;
}
 
// src/language-js/print/call-arguments.js
function printCallArguments(path, options2, print3) {
  const {
    node
  } = path;
  const args = getCallArguments(node);
  if (args.length === 0) {
    return group(["(", printDanglingCommentsInList(path, options2), ")"]);
  }
  const lastArgIndex = args.length - 1;
  if (isReactHookCallWithDepsArray(args)) {
    const parts = ["("];
    iterateCallArgumentsPath(path, (path2, index) => {
      parts.push(print3());
      if (index !== lastArgIndex) {
        parts.push(", ");
      }
    });
    parts.push(")");
    return parts;
  }
  let anyArgEmptyLine = false;
  const printedArguments = [];
  iterateCallArgumentsPath(path, ({
    node: arg
  }, index) => {
    let argDoc = print3();
    if (index === lastArgIndex) {
    } else if (isNextLineEmpty2(arg, options2)) {
      anyArgEmptyLine = true;
      argDoc = [argDoc, ",", hardline, hardline];
    } else {
      argDoc = [argDoc, ",", line];
    }
    printedArguments.push(argDoc);
  });
  const trailingComma = (
    // Angular does not allow trailing comma
    path.root.type !== "NGRoot" && // Dynamic imports cannot have trailing commas
    node.type !== "ImportExpression" && node.type !== "TSImportType" && node.type !== "TSExternalModuleReference" ? printTrailingComma(options2, "all") : ""
  );
  function allArgsBrokenOut() {
    return group(["(", indent([line, ...printedArguments]), trailingComma, line, ")"], {
      shouldBreak: true
    });
  }
  if (anyArgEmptyLine || path.parent.type !== "Decorator" && isFunctionCompositionArguments(args)) {
    return allArgsBrokenOut();
  }
  if (shouldExpandFirstArg(args)) {
    const tailArgs = printedArguments.slice(1);
    if (tailArgs.some(willBreak)) {
      return allArgsBrokenOut();
    }
    let firstArg;
    try {
      firstArg = print3(getCallArgumentSelector(node, 0), {
        expandFirstArg: true
      });
    } catch (caught) {
      if (caught instanceof ArgExpansionBailout) {
        return allArgsBrokenOut();
      }
      throw caught;
    }
    if (willBreak(firstArg)) {
      return [breakParent, conditionalGroup([["(", group(firstArg, {
        shouldBreak: true
      }), ", ", ...tailArgs, ")"], allArgsBrokenOut()])];
    }
    return conditionalGroup([["(", firstArg, ", ", ...tailArgs, ")"], ["(", group(firstArg, {
      shouldBreak: true
    }), ", ", ...tailArgs, ")"], allArgsBrokenOut()]);
  }
  if (shouldExpandLastArg(args, printedArguments, options2)) {
    const headArgs = printedArguments.slice(0, -1);
    if (headArgs.some(willBreak)) {
      return allArgsBrokenOut();
    }
    let lastArg;
    try {
      lastArg = print3(getCallArgumentSelector(node, -1), {
        expandLastArg: true
      });
    } catch (caught) {
      if (caught instanceof ArgExpansionBailout) {
        return allArgsBrokenOut();
      }
      throw caught;
    }
    if (willBreak(lastArg)) {
      return [breakParent, conditionalGroup([["(", ...headArgs, group(lastArg, {
        shouldBreak: true
      }), ")"], allArgsBrokenOut()])];
    }
    return conditionalGroup([["(", ...headArgs, lastArg, ")"], ["(", ...headArgs, group(lastArg, {
      shouldBreak: true
    }), ")"], allArgsBrokenOut()]);
  }
  const contents = ["(", indent([softline, ...printedArguments]), trailingComma, softline, ")"];
  if (isLongCurriedCallExpression(path)) {
    return contents;
  }
  return group(contents, {
    shouldBreak: printedArguments.some(willBreak) || anyArgEmptyLine
  });
}
function couldExpandArg(arg, arrowChainRecursion = false) {
  if (isObjectExpression(arg) && (arg.properties.length > 0 || hasComment(arg))) {
    return true;
  }
  if (isArrayExpression(arg) && (arg.elements.length > 0 || hasComment(arg))) {
    return true;
  }
  if ((isBinaryCastExpression(arg) || arg.type === "TSTypeAssertion") && couldExpandArg(arg.expression)) {
    return true;
  }
  if (arg.type === "FunctionExpression" || arg.type === "DoExpression" || arg.type === "ModuleExpression") {
    return true;
  }
  if (arg.type === "ArrowFunctionExpression") {
    const {
      body
    } = arg;
    if (body.type === "BlockStatement" || isJsxElement(body) || isObjectExpression(body) || isArrayExpression(body)) {
      return true;
    }
    if (body.type === "ArrowFunctionExpression" && couldExpandArg(body, true)) {
      return true;
    }
    if (!arrowChainRecursion) {
      if (body.type === "ConditionalExpression") {
        return true;
      }
      if (isCallExpression(stripChainElementWrappers(body))) {
        return true;
      }
    }
  }
  return false;
}
function shouldExpandLastArg(args, argDocs, options2) {
  const lastArg = method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    args,
    -1
  );
  if (args.length === 1) {
    const lastArgDoc = method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      argDocs,
      -1
    );
    if (lastArgDoc.label?.embed && lastArgDoc.label?.hug !== false) {
      return true;
    }
  }
  const penultimateArg = method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    args,
    -2
  );
  return !hasComment(lastArg, CommentCheckFlags.Leading) && !hasComment(lastArg, CommentCheckFlags.Trailing) && couldExpandArg(lastArg) && // If the last two arguments are of the same type,
  // disable last element expansion.
  (!penultimateArg || penultimateArg.type !== lastArg.type) && // useMemo(() => func(), [foo, bar, baz])
  (args.length !== 2 || penultimateArg.type !== "ArrowFunctionExpression" || !isArrayExpression(lastArg)) && !(args.length > 1 && isConciselyPrintedArray(lastArg, options2));
}
function shouldExpandFirstArg(args) {
  if (args.length !== 2) {
    return false;
  }
  const [firstArg, secondArg] = args;
  if (firstArg.type === "ModuleExpression" && isTypeModuleObjectExpression(secondArg)) {
    return true;
  }
  return !hasComment(firstArg) && (firstArg.type === "FunctionExpression" || firstArg.type === "ArrowFunctionExpression" && firstArg.body.type === "BlockStatement") && secondArg.type !== "FunctionExpression" && secondArg.type !== "ArrowFunctionExpression" && secondArg.type !== "ConditionalExpression" && isHopefullyShortCallArgument(secondArg) && !couldExpandArg(secondArg);
}
function isHopefullyShortCallArgument(node) {
  if (node.type === "ParenthesizedExpression") {
    return isHopefullyShortCallArgument(node.expression);
  }
  if (isBinaryCastExpression(node) || node.type === "TypeCastExpression") {
    let {
      typeAnnotation
    } = node;
    if (typeAnnotation.type === "TypeAnnotation") {
      typeAnnotation = typeAnnotation.typeAnnotation;
    }
    if (typeAnnotation.type === "TSArrayType") {
      typeAnnotation = typeAnnotation.elementType;
      if (typeAnnotation.type === "TSArrayType") {
        typeAnnotation = typeAnnotation.elementType;
      }
    }
    if (typeAnnotation.type === "GenericTypeAnnotation" || typeAnnotation.type === "TSTypeReference") {
      const typeArguments = typeAnnotation.type === "GenericTypeAnnotation" ? typeAnnotation.typeParameters : typeAnnotation.typeArguments;
      if (typeArguments?.params.length === 1) {
        typeAnnotation = typeArguments.params[0];
      }
    }
    return isSimpleType(typeAnnotation) && isSimpleCallArgument(node.expression, 1);
  }
  if (isCallLikeExpression(node) && getCallArguments(node).length > 1) {
    return false;
  }
  if (isBinaryish(node)) {
    return isSimpleCallArgument(node.left, 1) && isSimpleCallArgument(node.right, 1);
  }
  return isRegExpLiteral(node) || isSimpleCallArgument(node);
}
function isReactHookCallWithDepsArray(args) {
  if (args.length === 2) {
    return isValidHookCallbackAndDepsFormat(
      args,
      /* baseIndex */
      0
    );
  }
  if (args.length === 3) {
    return args[0].type === "Identifier" && isValidHookCallbackAndDepsFormat(
      args,
      /* baseIndex */
      1
    );
  }
  return false;
}
function isValidHookCallbackAndDepsFormat(args, baseIndex) {
  const maybeArrowFunction = args[baseIndex];
  const maybeDepsArray = args[baseIndex + 1];
  return maybeArrowFunction.type === "ArrowFunctionExpression" && getFunctionParameters(maybeArrowFunction).length === 0 && maybeArrowFunction.body.type === "BlockStatement" && maybeDepsArray.type === "ArrayExpression" && !args.some((arg) => hasComment(arg));
}
function isTypeModuleObjectExpression(node) {
  if (!(node.type === "ObjectExpression" && node.properties.length === 1)) {
    return false;
  }
  const [property] = node.properties;
  if (!isObjectProperty(property)) {
    return false;
  }
  return !property.computed && (property.key.type === "Identifier" && property.key.name === "type" || isStringLiteral(property.key) && property.key.value === "type") && isStringLiteral(property.value) && property.value.value === "module";
}
var call_arguments_default = printCallArguments;
 
// src/language-js/print/bind-expression.js
function printBindExpression(path, options2, print3) {
  return [
    print3("object"),
    group(indent([softline, printBindExpressionCallee(path, options2, print3)]))
  ];
}
function printBindExpressionCallee(path, options2, print3) {
  return ["::", print3("callee")];
}
 
// src/language-js/print/member.js
var isCallExpressionWithArguments = (node) => isCallExpression(node) && getCallArguments(node).length > 0;
function shouldInlineNewExpressionCallee(path) {
  let { node: child, ancestors } = path;
  for (const ancestor of ancestors) {
    if (!(isMemberExpression(ancestor) && ancestor.object === child || ancestor.type === "TSNonNullExpression" && ancestor.expression === child)) {
      return ancestor.type === "NewExpression" && ancestor.callee === child;
    }
    child = ancestor;
  }
  return false;
}
function printMemberExpression(path, options2, print3) {
  const objectDoc = print3("object");
  const lookupDoc = printMemberLookup(path, options2, print3);
  const { node } = path;
  const firstNonMemberParent = path.findAncestor(
    (node2) => !(isMemberExpression(node2) || node2.type === "TSNonNullExpression")
  );
  const firstNonChainElementWrapperParent = path.findAncestor(
    (node2) => !isChainElementWrapper(node2)
  );
  const shouldInline = firstNonMemberParent.type === "BindExpression" || firstNonMemberParent.type === "AssignmentExpression" && firstNonMemberParent.left.type !== "Identifier" || shouldInlineNewExpressionCallee(path) || node.computed || node.object.type === "Identifier" && node.property.type === "Identifier" && !isMemberExpression(firstNonChainElementWrapperParent) || (firstNonChainElementWrapperParent.type === "AssignmentExpression" || firstNonChainElementWrapperParent.type === "VariableDeclarator") && (isCallExpressionWithArguments(stripChainElementWrappers(node.object)) || objectDoc.label?.memberChain);
  return label(objectDoc.label, [
    objectDoc,
    lineSuffixBoundary,
    shouldInline ? lookupDoc : group(indent([softline, lookupDoc]))
  ]);
}
function printMemberLookup(path, options2, print3) {
  const property = print3("property");
  const { node } = path;
  const optional = printOptionalToken(path);
  if (!node.computed) {
    return [optional, ".", property];
  }
  if (!node.property || isNumericLiteral(node.property)) {
    return [optional, "[", property, "]"];
  }
  return group([optional, "[", indent([softline, property]), softline, "]"]);
}
 
// src/language-js/print/member-chain.js
function printMemberChain(path, options2, print3) {
  const isExpressionStatement = (path.parent.type === "ChainExpression" ? path.grandparent : path.parent).type === "ExpressionStatement";
  const printedNodes = [];
  function shouldInsertEmptyLineAfter(node2) {
    const {
      originalText
    } = options2;
    const nextCharIndex = get_next_non_space_non_comment_character_index_default(originalText, locEnd(node2));
    const nextChar = originalText.charAt(nextCharIndex);
    if (nextChar === ")") {
      return nextCharIndex !== false && is_next_line_empty_default(originalText, nextCharIndex + 1);
    }
    return isNextLineEmpty2(node2, options2);
  }
  function rec() {
    const {
      node: node2
    } = path;
    if (isCallExpression(node2) && (isMemberish(node2.callee) || isCallExpression(node2.callee)) && !needs_parentheses_default(path, options2)) {
      const hasTrailingEmptyLine = shouldInsertEmptyLineAfter(node2);
      printedNodes.unshift({
        node: node2,
        hasTrailingEmptyLine,
        printed: [printComments(path, [printOptionalToken(path), print3("typeArguments"), call_arguments_default(path, options2, print3)], options2), hasTrailingEmptyLine ? hardline : ""]
      });
      path.call(rec, "callee");
    } else if (isMemberish(node2) && !needs_parentheses_default(path, options2)) {
      printedNodes.unshift({
        node: node2,
        printed: printComments(path, isMemberExpression(node2) ? printMemberLookup(path, options2, print3) : printBindExpressionCallee(path, options2, print3), options2)
      });
      path.call(rec, "object");
    } else if (node2.type === "ChainExpression" && !needs_parentheses_default(path, options2)) {
      path.call(rec, "expression");
    } else if (node2.type === "TSNonNullExpression" && !needs_parentheses_default(path, options2)) {
      printedNodes.unshift({
        node: node2,
        printed: printComments(path, "!", options2)
      });
      path.call(rec, "expression");
    } else {
      printedNodes.unshift({
        node: node2,
        printed: print3()
      });
    }
  }
  const {
    node
  } = path;
  printedNodes.unshift({
    node,
    printed: [printOptionalToken(path), print3("typeArguments"), call_arguments_default(path, options2, print3)]
  });
  if (node.callee) {
    path.call(rec, "callee");
  }
  const groups = [];
  let currentGroup = [printedNodes[0]];
  let i = 1;
  for (; i < printedNodes.length; ++i) {
    if (printedNodes[i].node.type === "TSNonNullExpression" || printedNodes[i].node.type === "ChainExpression" || isCallExpression(printedNodes[i].node) || isMemberExpression(printedNodes[i].node) && printedNodes[i].node.computed && isNumericLiteral(printedNodes[i].node.property)) {
      currentGroup.push(printedNodes[i]);
    } else {
      break;
    }
  }
  if (!isCallExpression(printedNodes[0].node)) {
    for (; i + 1 < printedNodes.length; ++i) {
      if (isMemberish(printedNodes[i].node) && isMemberish(printedNodes[i + 1].node)) {
        currentGroup.push(printedNodes[i]);
      } else {
        break;
      }
    }
  }
  groups.push(currentGroup);
  currentGroup = [];
  let hasSeenCallExpression = false;
  for (; i < printedNodes.length; ++i) {
    if (hasSeenCallExpression && isMemberish(printedNodes[i].node)) {
      if (printedNodes[i].node.computed && isNumericLiteral(printedNodes[i].node.property)) {
        currentGroup.push(printedNodes[i]);
        continue;
      }
      groups.push(currentGroup);
      currentGroup = [];
      hasSeenCallExpression = false;
    }
    if (isCallExpression(printedNodes[i].node) || printedNodes[i].node.type === "ImportExpression") {
      hasSeenCallExpression = true;
    }
    currentGroup.push(printedNodes[i]);
    if (hasComment(printedNodes[i].node, CommentCheckFlags.Trailing)) {
      groups.push(currentGroup);
      currentGroup = [];
      hasSeenCallExpression = false;
    }
  }
  if (currentGroup.length > 0) {
    groups.push(currentGroup);
  }
  function isFactory(name) {
    return /^[A-Z]|^[$_]+$/.test(name);
  }
  function isShort(name) {
    return name.length <= options2.tabWidth;
  }
  function shouldNotWrap(groups2) {
    const hasComputed = groups2[1][0]?.node.computed;
    if (groups2[0].length === 1) {
      const firstNode = groups2[0][0].node;
      return firstNode.type === "ThisExpression" || firstNode.type === "Identifier" && (isFactory(firstNode.name) || isExpressionStatement && isShort(firstNode.name) || hasComputed);
    }
    const lastNode = method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      groups2[0],
      -1
    ).node;
    return isMemberExpression(lastNode) && lastNode.property.type === "Identifier" && (isFactory(lastNode.property.name) || hasComputed);
  }
  const shouldMerge = groups.length >= 2 && !hasComment(groups[1][0].node) && shouldNotWrap(groups);
  function printGroup(printedGroup) {
    return printedGroup.map((tuple) => tuple.printed);
  }
  function printIndentedGroup(groups2) {
    if (groups2.length === 0) {
      return "";
    }
    return indent([hardline, join(hardline, groups2.map(printGroup))]);
  }
  const printedGroups = groups.map(printGroup);
  const oneLine = printedGroups;
  const cutoff = shouldMerge ? 3 : 2;
  const flatGroups = groups.flat();
  const nodeHasComment = flatGroups.slice(1, -1).some((node2) => hasComment(node2.node, CommentCheckFlags.Leading)) || flatGroups.slice(0, -1).some((node2) => hasComment(node2.node, CommentCheckFlags.Trailing)) || groups[cutoff] && hasComment(groups[cutoff][0].node, CommentCheckFlags.Leading);
  if (groups.length <= cutoff && !nodeHasComment && !groups.some((g) => method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    g,
    -1
  ).hasTrailingEmptyLine)) {
    if (isLongCurriedCallExpression(path)) {
      return oneLine;
    }
    return group(oneLine);
  }
  const lastNodeBeforeIndent = method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    groups[shouldMerge ? 1 : 0],
    -1
  ).node;
  const shouldHaveEmptyLineBeforeIndent = !isCallExpression(lastNodeBeforeIndent) && shouldInsertEmptyLineAfter(lastNodeBeforeIndent);
  const expanded = [printGroup(groups[0]), shouldMerge ? groups.slice(1, 2).map(printGroup) : "", shouldHaveEmptyLineBeforeIndent ? hardline : "", printIndentedGroup(groups.slice(shouldMerge ? 2 : 1))];
  const callExpressions = printedNodes.map(({
    node: node2
  }) => node2).filter(isCallExpression);
  function lastGroupWillBreakAndOtherCallsHaveFunctionArguments() {
    const lastGroupNode = method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      method_at_default(
        /* OPTIONAL_OBJECT: false */
        0,
        groups,
        -1
      ),
      -1
    ).node;
    const lastGroupDoc = method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      printedGroups,
      -1
    );
    return isCallExpression(lastGroupNode) && willBreak(lastGroupDoc) && callExpressions.slice(0, -1).some((node2) => node2.arguments.some(isFunctionOrArrowExpression));
  }
  let result;
  if (nodeHasComment || callExpressions.length > 2 && callExpressions.some((expr) => !expr.arguments.every((arg) => isSimpleCallArgument(arg))) || printedGroups.slice(0, -1).some(willBreak) || lastGroupWillBreakAndOtherCallsHaveFunctionArguments()) {
    result = group(expanded);
  } else {
    result = [
      // We only need to check `oneLine` because if `expanded` is chosen
      // that means that the parent group has already been broken
      // naturally
      willBreak(oneLine) || shouldHaveEmptyLineBeforeIndent ? breakParent : "",
      conditionalGroup([oneLine, expanded])
    ];
  }
  return label({
    memberChain: true
  }, result);
}
var member_chain_default = printMemberChain;
 
// src/language-js/print/call-expression.js
function printCallExpression(path, options2, print3) {
  const { node } = path;
  const isNewExpression = node.type === "NewExpression";
  const optional = printOptionalToken(path);
  const args = getCallArguments(node);
  const typeArgumentsDoc = node.type !== "TSImportType" && node.typeArguments ? [print3("typeArguments"), lineSuffixBoundary] : "";
  const isTemplateLiteralSingleArg = args.length === 1 && isTemplateOnItsOwnLine(args[0], options2.originalText);
  if (isTemplateLiteralSingleArg || // Don't break simple `import()` with long module name
  isSimpleModuleImport(path) || // Dangling comments are not handled, all these special cases should have arguments #9668
  // We want to keep CommonJS- and AMD-style require calls, and AMD-style
  // define calls, as a unit.
  // e.g. `define(["some/lib"], (lib) => {`
  isCommonsJsOrAmdModuleDefinition(path) || // Keep test declarations on a single line
  // e.g. `it('long name', () => {`
  isTestCall(node, path.parent)) {
    const printed = [];
    iterateCallArgumentsPath(path, () => {
      printed.push(print3());
    });
    if (!(isTemplateLiteralSingleArg && printed[0].label?.embed)) {
      return [
        printCallee(path, print3),
        optional,
        typeArgumentsDoc,
        "(",
        join(", ", printed),
        ")"
      ];
    }
  }
  const isDynamicImportLike = node.type === "ImportExpression" || node.type === "TSImportType" || node.type === "TSExternalModuleReference";
  if (!isDynamicImportLike && !isNewExpression && isMemberish(node.callee) && !path.call(
    () => needs_parentheses_default(path, options2),
    "callee",
    ...node.callee.type === "ChainExpression" ? ["expression"] : []
  )) {
    return member_chain_default(path, options2, print3);
  }
  const contents = [
    printCallee(path, print3),
    optional,
    typeArgumentsDoc,
    call_arguments_default(path, options2, print3)
  ];
  if (isDynamicImportLike || isCallExpression(node.callee)) {
    return group(contents);
  }
  return contents;
}
function printCallee(path, print3) {
  const { node } = path;
  if (node.type === "ImportExpression") {
    return `import${node.phase ? `.${node.phase}` : ""}`;
  }
  if (node.type === "TSImportType") {
    return "import";
  }
  if (node.type === "TSExternalModuleReference") {
    return "require";
  }
  return [
    node.type === "NewExpression" ? "new " : "",
    print3("callee"),
    lineSuffixBoundary
  ];
}
var moduleImportCallees = [
  "require",
  "require.resolve",
  "require.resolve.paths",
  "import.meta.resolve"
];
function isSimpleModuleImport(path) {
  const { node } = path;
  if (!// `import("foo")`
  (node.type === "ImportExpression" || // `type foo = import("foo")`
  node.type === "TSImportType" || // `import type A = require("foo")`
  node.type === "TSExternalModuleReference" || // `require("foo")`
  // `require.resolve("foo")`
  // `require.resolve.paths("foo")`
  // `import.meta.resolve("foo")`
  node.type === "CallExpression" && !node.optional && isNodeMatches(node.callee, moduleImportCallees))) {
    return false;
  }
  const args = getCallArguments(node);
  return args.length === 1 && isStringLiteral(args[0]) && !hasComment(args[0]);
}
function isCommonsJsOrAmdModuleDefinition(path) {
  const { node } = path;
  if (node.type !== "CallExpression" || node.optional) {
    return false;
  }
  if (node.callee.type !== "Identifier") {
    return false;
  }
  const args = getCallArguments(node);
  if (node.callee.name === "require") {
    return (args.length === 1 && isStringLiteral(args[0]) || args.length > 1) && !hasComment(args[0]);
  }
  if (node.callee.name === "define" && path.parent.type === "ExpressionStatement") {
    return args.length === 1 || args.length === 2 && args[0].type === "ArrayExpression" || args.length === 3 && isStringLiteral(args[0]) && args[1].type === "ArrayExpression";
  }
  return false;
}
 
// src/language-js/print/assignment.js
function printAssignment(path, options2, print3, leftDoc, operator, rightPropertyName) {
  const layout = chooseLayout(path, options2, print3, leftDoc, rightPropertyName);
  const rightDoc = rightPropertyName ? print3(rightPropertyName, { assignmentLayout: layout }) : "";
  switch (layout) {
    // First break after operator, then the sides are broken independently on their own lines
    case "break-after-operator":
      return group([group(leftDoc), operator, group(indent([line, rightDoc]))]);
    // First break right-hand side, then left-hand side
    case "never-break-after-operator":
      return group([group(leftDoc), operator, " ", rightDoc]);
    // First break right-hand side, then after operator
    case "fluid": {
      const groupId = /* @__PURE__ */ Symbol("assignment");
      return group([
        group(leftDoc),
        operator,
        group(indent(line), { id: groupId }),
        lineSuffixBoundary,
        indentIfBreak(rightDoc, { groupId })
      ]);
    }
    case "break-lhs":
      return group([leftDoc, operator, " ", group(rightDoc)]);
    // Parts of assignment chains aren't wrapped in groups.
    // Once one of them breaks, the chain breaks too.
    case "chain":
      return [group(leftDoc), operator, line, rightDoc];
    case "chain-tail":
      return [group(leftDoc), operator, indent([line, rightDoc])];
    case "chain-tail-arrow-chain":
      return [group(leftDoc), operator, rightDoc];
    case "only-left":
      return leftDoc;
  }
}
function printAssignmentExpression(path, options2, print3) {
  const { node } = path;
  return printAssignment(
    path,
    options2,
    print3,
    print3("left"),
    [" ", node.operator],
    "right"
  );
}
function printVariableDeclarator(path, options2, print3) {
  return printAssignment(path, options2, print3, print3("id"), " =", "init");
}
function chooseLayout(path, options2, print3, leftDoc, rightPropertyName) {
  const { node } = path;
  const rightNode = node[rightPropertyName];
  if (!rightNode) {
    return "only-left";
  }
  const isTail = !isAssignment(rightNode);
  const shouldUseChainFormatting = path.match(
    isAssignment,
    isAssignmentOrVariableDeclarator,
    (node2) => !isTail || node2.type !== "ExpressionStatement" && node2.type !== "VariableDeclaration"
  );
  if (shouldUseChainFormatting) {
    return !isTail ? "chain" : rightNode.type === "ArrowFunctionExpression" && rightNode.body.type === "ArrowFunctionExpression" ? "chain-tail-arrow-chain" : "chain-tail";
  }
  const isHeadOfLongChain = !isTail && isAssignment(rightNode.right);
  if (isHeadOfLongChain || isUnionType(rightNode) && !shouldHugUnionType(rightNode) || hasLeadingOwnLineComment(options2.originalText, rightNode)) {
    return "break-after-operator";
  }
  if (node.type === "ImportAttribute" || rightNode.type === "CallExpression" && rightNode.callee.name === "require" || // do not put values on a separate line from the key in json
  path.root.type === "JsonRoot") {
    return "never-break-after-operator";
  }
  const canBreakLeftDoc = canBreak(leftDoc);
  if (isComplexDestructuring(node) || hasComplexTypeAnnotation(node) || isArrowFunctionVariableDeclarator(node) && canBreakLeftDoc) {
    return "break-lhs";
  }
  const hasShortKey = isObjectPropertyWithShortKey(node, leftDoc, options2);
  if (path.call(
    () => shouldBreakAfterOperator(path, options2, print3, hasShortKey),
    rightPropertyName
  )) {
    return "break-after-operator";
  }
  if (isComplexTypeAliasParams(node)) {
    return "break-lhs";
  }
  if (!canBreakLeftDoc && (hasShortKey || rightNode.type === "TemplateLiteral" || rightNode.type === "TaggedTemplateExpression" || isBooleanLiteral(rightNode) || isNumericLiteral(rightNode) || rightNode.type === "ClassExpression")) {
    return "never-break-after-operator";
  }
  return "fluid";
}
function shouldBreakAfterOperator(path, options2, print3, hasShortKey) {
  const rightNode = path.node;
  if (isBinaryish(rightNode) && !shouldInlineLogicalExpression(rightNode)) {
    return true;
  }
  switch (rightNode.type) {
    case "StringLiteralTypeAnnotation":
    case "SequenceExpression":
      return true;
    case "TSConditionalType":
    case "ConditionalTypeAnnotation":
      if (!options2.experimentalTernaries && !shouldBreakBeforeConditionalType(rightNode)) {
        break;
      }
      return true;
    case "ConditionalExpression": {
      if (!options2.experimentalTernaries) {
        const { test } = rightNode;
        return isBinaryish(test) && !shouldInlineLogicalExpression(test);
      }
      const { consequent, alternate } = rightNode;
      return consequent.type === "ConditionalExpression" || alternate.type === "ConditionalExpression";
    }
    case "ClassExpression":
      return is_non_empty_array_default(rightNode.decorators);
  }
  if (hasShortKey) {
    return false;
  }
  let node = rightNode;
  const propertiesForPath = [];
  while (true) {
    if (node.type === "UnaryExpression" || node.type === "AwaitExpression" || node.type === "YieldExpression" && node.argument !== null) {
      node = node.argument;
      propertiesForPath.push("argument");
    } else if (node.type === "TSNonNullExpression") {
      node = node.expression;
      propertiesForPath.push("expression");
    } else {
      break;
    }
  }
  if (isStringLiteral(node) || path.call(
    () => isPoorlyBreakableMemberOrCallChain(path, options2, print3),
    ...propertiesForPath
  )) {
    return true;
  }
  return false;
}
function isComplexDestructuring(node) {
  if (isAssignmentOrVariableDeclarator(node)) {
    const leftNode = node.left || node.id;
    return leftNode.type === "ObjectPattern" && leftNode.properties.length > 2 && leftNode.properties.some(
      (property) => isObjectProperty(property) && (!property.shorthand || property.value?.type === "AssignmentPattern")
    );
  }
  return false;
}
function isAssignment(node) {
  return node.type === "AssignmentExpression";
}
function isAssignmentOrVariableDeclarator(node) {
  return isAssignment(node) || node.type === "VariableDeclarator";
}
function isComplexTypeAliasParams(node) {
  const typeParams = getTypeParametersFromTypeAlias(node);
  if (is_non_empty_array_default(typeParams)) {
    const constraintPropertyName = node.type === "TSTypeAliasDeclaration" ? "constraint" : "bound";
    if (typeParams.length > 1 && typeParams.some((param) => param[constraintPropertyName] || param.default)) {
      return true;
    }
  }
  return false;
}
function getTypeParametersFromTypeAlias(node) {
  if (isTypeAlias(node)) {
    return node.typeParameters?.params;
  }
}
function hasComplexTypeAnnotation(node) {
  if (node.type !== "VariableDeclarator") {
    return false;
  }
  const { typeAnnotation } = node.id;
  if (!typeAnnotation || !typeAnnotation.typeAnnotation) {
    return false;
  }
  const typeParams = getTypeParametersFromTypeReference(
    typeAnnotation.typeAnnotation
  );
  return is_non_empty_array_default(typeParams) && typeParams.length > 1 && typeParams.some(
    (param) => is_non_empty_array_default(getTypeParametersFromTypeReference(param)) || param.type === "TSConditionalType"
  );
}
function isArrowFunctionVariableDeclarator(node) {
  return node.type === "VariableDeclarator" && node.init?.type === "ArrowFunctionExpression";
}
function getTypeParametersFromTypeReference(node) {
  let typeArguments;
  switch (node.type) {
    case "GenericTypeAnnotation":
      typeArguments = node.typeParameters;
      break;
    case "TSTypeReference":
      typeArguments = node.typeArguments;
      break;
  }
  return typeArguments?.params;
}
function isPoorlyBreakableMemberOrCallChain(path, options2, print3, deep = false) {
  const { node } = path;
  const goDeeper = () => isPoorlyBreakableMemberOrCallChain(path, options2, print3, true);
  if (isChainElementWrapper(node)) {
    return path.call(goDeeper, "expression");
  }
  if (isCallExpression(node)) {
    const doc = printCallExpression(path, options2, print3);
    if (doc.label?.memberChain) {
      return false;
    }
    const args = getCallArguments(node);
    const isPoorlyBreakableCall = args.length === 0 || args.length === 1 && isLoneShortArgument(args[0], options2);
    if (!isPoorlyBreakableCall) {
      return false;
    }
    if (isCallExpressionWithComplexTypeArguments(node, print3)) {
      return false;
    }
    return path.call(goDeeper, "callee");
  }
  if (isMemberExpression(node)) {
    return path.call(goDeeper, "object");
  }
  return deep && (node.type === "Identifier" || node.type === "ThisExpression");
}
function isObjectPropertyWithShortKey(node, keyDoc, options2) {
  if (!isObjectProperty(node)) {
    return false;
  }
  keyDoc = cleanDoc(keyDoc);
  const MIN_OVERLAP_FOR_BREAK = 3;
  return typeof keyDoc === "string" && get_string_width_default(keyDoc) < options2.tabWidth + MIN_OVERLAP_FOR_BREAK;
}
function isCallExpressionWithComplexTypeArguments(node, print3) {
  const typeArgs = node.typeArguments?.params;
  if (is_non_empty_array_default(typeArgs)) {
    if (typeArgs.length > 1) {
      return true;
    }
    if (typeArgs.length === 1) {
      const firstArg = typeArgs[0];
      if (isUnionType(firstArg) || isIntersectionType(firstArg) || firstArg.type === "TSTypeLiteral" || firstArg.type === "ObjectTypeAnnotation") {
        return true;
      }
    }
    if (willBreak(print3("typeArguments"))) {
      return true;
    }
  }
  return false;
}
function isGeneric(node) {
  switch (node.type) {
    case "FunctionTypeAnnotation":
    case "GenericTypeAnnotation":
    case "TSFunctionType":
      return Boolean(node.typeParameters);
    case "TSTypeReference":
      return Boolean(node.typeArguments);
    default:
      return false;
  }
}
function shouldBreakBeforeConditionalType(node) {
  return isGeneric(node.checkType) || isGeneric(node.extendsType);
}
 
// src/language-js/print/await-expression.js
function printAwaitExpression(path, options2, print3) {
  const { node } = path;
  let parts = ["await"];
  if (node.argument) {
    parts.push(" ", print3("argument"));
    const { parent } = path;
    if (isCallExpression(parent) && parent.callee === node || isMemberExpression(parent) && parent.object === node) {
      parts = [indent([softline, ...parts]), softline];
      const parentAwaitOrBlock = path.findAncestor(
        (node2) => node2.type === "AwaitExpression" || node2.type === "BlockStatement"
      );
      if (parentAwaitOrBlock?.type !== "AwaitExpression" || !startsWithNoLookaheadToken(
        parentAwaitOrBlock.argument,
        (leftmostNode) => leftmostNode === node
      )) {
        return group(parts);
      }
    }
  }
  return parts;
}
 
// scripts/build/shims/method-find-last.js
var arrayFindLast = Array.prototype.findLast ?? function(callback) {
  for (let index = this.length - 1; index >= 0; index--) {
    const element = this[index];
    if (callback(element, index, this)) {
      return element;
    }
  }
};
var findLast = /* @__PURE__ */ createMethodShim("findLast", function() {
  if (Array.isArray(this)) {
    return arrayFindLast;
  }
});
var method_find_last_default = findLast;
 
// src/language-js/print/statement-sequence.js
function printStatementSequence(path, options2, print3, property) {
  const {
    node
  } = path;
  const parts = [];
  const lastStatement = method_find_last_default(
    /* OPTIONAL_OBJECT: false */
    0,
    node[property],
    (statement) => statement.type !== "EmptyStatement"
  );
  path.each(({
    node: node2
  }) => {
    if (node2.type === "EmptyStatement") {
      return;
    }
    parts.push(print3());
    if (node2 !== lastStatement) {
      parts.push(hardline);
      if (isNextLineEmpty2(node2, options2)) {
        parts.push(hardline);
      }
    }
  }, property);
  return parts;
}
 
// src/language-js/print/block.js
function printBlock(path, options2, print3) {
  const bodyDoc = printBlockBody(path, options2, print3);
  const {
    node,
    parent
  } = path;
  if (node.type === "Program" && parent?.type !== "ModuleExpression") {
    return bodyDoc ? [bodyDoc, hardline] : "";
  }
  const parts = [];
  if (node.type === "StaticBlock") {
    parts.push("static ");
  }
  parts.push("{");
  if (bodyDoc) {
    parts.push(indent([hardline, bodyDoc]), hardline);
  } else {
    const parentParent = path.grandparent;
    if (!(parent.type === "ArrowFunctionExpression" || parent.type === "FunctionExpression" || parent.type === "FunctionDeclaration" || parent.type === "ComponentDeclaration" || parent.type === "HookDeclaration" || parent.type === "ObjectMethod" || parent.type === "ClassMethod" || parent.type === "ClassPrivateMethod" || parent.type === "ForStatement" || parent.type === "WhileStatement" || parent.type === "DoWhileStatement" || parent.type === "DoExpression" || parent.type === "ModuleExpression" || parent.type === "CatchClause" && !parentParent.finalizer || parent.type === "TSModuleDeclaration" || parent.type === "MatchStatementCase" || node.type === "StaticBlock")) {
      parts.push(hardline);
    }
  }
  parts.push("}");
  return parts;
}
function printBlockBody(path, options2, print3) {
  const {
    node
  } = path;
  const hasDirectives = is_non_empty_array_default(node.directives);
  const hasBody = node.body.some((node2) => node2.type !== "EmptyStatement");
  const hasDanglingComments = hasComment(node, CommentCheckFlags.Dangling);
  if (!hasDirectives && !hasBody && !hasDanglingComments) {
    return "";
  }
  const parts = [];
  if (hasDirectives) {
    parts.push(printStatementSequence(path, options2, print3, "directives"));
    if (hasBody || hasDanglingComments) {
      parts.push(hardline);
      if (isNextLineEmpty2(method_at_default(
        /* OPTIONAL_OBJECT: false */
        0,
        node.directives,
        -1
      ), options2)) {
        parts.push(hardline);
      }
    }
  }
  if (hasBody) {
    parts.push(printStatementSequence(path, options2, print3, "body"));
  }
  if (hasDanglingComments) {
    parts.push(printDanglingComments(path, options2));
  }
  return parts;
}
 
// src/utilities/create-group-id-mapper.js
function createGroupIdMapper(description) {
  const groupIds = /* @__PURE__ */ new WeakMap();
  return function(node) {
    if (!groupIds.has(node)) {
      groupIds.set(node, Symbol(description));
    }
    return groupIds.get(node);
  };
}
var create_group_id_mapper_default = createGroupIdMapper;
 
// src/language-js/utilities/class-members.js
var flowObjectTypeAnnotationChildrenProperties = [
  "properties",
  "indexers",
  "callProperties",
  "internalSlots"
];
function iterateClassMembersPath(path, iteratee) {
  const { node } = path;
  if (node.type === "ClassBody" || node.type === "TSInterfaceBody") {
    path.each(iteratee, "body");
    return;
  }
  if (node.type === "TSTypeLiteral") {
    path.each(iteratee, "members");
    return;
  }
  if (node.type === "RecordDeclarationBody") {
    path.each(iteratee, "elements");
    return;
  }
  if (node.type === "ObjectTypeAnnotation") {
    const children = flowObjectTypeAnnotationChildrenProperties.flatMap(
      (field) => path.map(
        ({ node: node2, index }) => ({
          node: node2,
          loc: locStart(node2),
          selector: [field, index]
        }),
        field
      )
    ).sort((a, b) => a.loc - b.loc);
    for (const [index, { node: node2, selector }] of children.entries()) {
      path.call(
        () => iteratee({
          node: node2,
          next: children[index + 1]?.node,
          isLast: index === children.length - 1
        }),
        ...selector
      );
    }
  }
}
function isNonEmptyClassBody(node) {
  if (node.type === "ObjectTypeAnnotation") {
    return flowObjectTypeAnnotationChildrenProperties.some(
      (property) => is_non_empty_array_default(node[property])
    );
  }
  const members = node.type === "RecordDeclarationBody" ? node.elements : node.body;
  return is_non_empty_array_default(members);
}
 
// src/language-js/print/class-body.js
function printClassBody(path, options2, print3) {
  const {
    node
  } = path;
  const parts = [];
  const isFlowTypeAnnotation = node.type === "ObjectTypeAnnotation";
  const isFlowRecordDeclaration = node.type === "RecordDeclarationBody";
  const isObjectType2 = !isClassBody(path);
  const separator = isObjectType2 ? line : hardline;
  const hasDanglingComments = hasComment(node, CommentCheckFlags.Dangling);
  const [openingBrace, closingBrace] = isFlowTypeAnnotation && node.exact ? ["{|", "|}"] : "{}";
  let firstMember;
  iterateClassMembersPath(path, ({
    node: node2,
    next,
    isLast
  }) => {
    firstMember ?? (firstMember = node2);
    parts.push(print3());
    if (!isFlowRecordDeclaration && isObjectType2 && isFlowTypeAnnotation) {
      const {
        parent
      } = path;
      if (parent.inexact || !isLast) {
        parts.push(",");
      } else {
        parts.push(printTrailingComma(options2));
      }
    }
    if (isFlowRecordDeclaration && node2.type !== "MethodDefinition") {
      parts.push(",");
    }
    if (!isFlowRecordDeclaration && !isObjectType2 && (shouldPrintSemicolonAfterClassProperty({
      node: node2,
      next
    }, options2) || shouldPrintSemicolonAfterInterfaceProperty({
      node: node2,
      next
    }, options2))) {
      parts.push(";");
    }
    if (!isLast) {
      parts.push(separator);
      if (isNextLineEmpty2(node2, options2)) {
        parts.push(hardline);
      }
    }
  });
  if (hasDanglingComments) {
    parts.push(printDanglingComments(path, options2));
  }
  if (node.type === "ObjectTypeAnnotation" && node.inexact) {
    let printed;
    if (hasComment(node, CommentCheckFlags.Dangling)) {
      const hasLineComments = hasComment(node, CommentCheckFlags.Line);
      printed = [hasLineComments || has_newline_default(options2.originalText, locEnd(method_at_default(
        /* OPTIONAL_OBJECT: false */
        0,
        getComments(node),
        -1
      ))) ? hardline : line, "..."];
    } else {
      printed = [firstMember ? line : "", "..."];
    }
    parts.push(printed);
  }
  if (isObjectType2) {
    const shouldBreak = hasDanglingComments || options2.objectWrap === "preserve" && firstMember && has_newline_in_range_default(options2.originalText, locStart(node), locStart(firstMember));
    let content;
    if (parts.length === 0) {
      content = openingBrace + closingBrace;
    } else {
      const spacing = options2.bracketSpacing ? line : softline;
      content = [openingBrace, indent([spacing, ...parts]), spacing, closingBrace];
    }
    if (path.match(void 0, (node2, name) => name === "typeAnnotation", (node2, name) => name === "typeAnnotation", shouldHugTheOnlyParameter) || path.match(void 0, (node2, name) => node2.type === "FunctionTypeParam" && name === "typeAnnotation", shouldHugTheOnlyParameter)) {
      return content;
    }
    return group(content, {
      shouldBreak
    });
  }
  return [openingBrace, parts.length > 0 ? [indent([hardline, parts]), hardline] : "", closingBrace];
}
function isClassBody(path) {
  const {
    node
  } = path;
  if (node.type === "ObjectTypeAnnotation") {
    const {
      key,
      parent
    } = path;
    return key === "body" && (parent.type === "InterfaceDeclaration" || parent.type === "DeclareInterface" || parent.type === "DeclareClass");
  }
  return node.type === "ClassBody" || node.type === "TSInterfaceBody" || node.type === "RecordDeclarationBody";
}
function printClassMemberSemicolon(path, options2) {
  const {
    parent
  } = path;
  if (path.callParent(isClassBody)) {
    return parent.type === "ObjectTypeAnnotation" ? ";" : printSemicolon(options2);
  }
  if (parent.type === "TSTypeLiteral") {
    if (path.isLast) {
      return options2.semi ? ifBreak(";") : "";
    }
    if (options2.semi || shouldPrintSemicolonAfterInterfaceProperty({
      node: path.node,
      next: path.next
    }, options2)) {
      return ";";
    }
    return ifBreak("", ";");
  }
  return "";
}
var isClassProperty = createTypeCheckFunction(["ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
var isKeywordProperty = (node) => {
  if (node.computed || node.typeAnnotation) {
    return false;
  }
  const {
    type,
    name
  } = node.key;
  return type === "Identifier" && (name === "static" || name === "get" || name === "set");
};
function shouldPrintSemicolonAfterClassProperty({
  node,
  next: nextNode
}, options2) {
  if (options2.semi || !isClassProperty(node)) {
    return false;
  }
  if (!node.value && isKeywordProperty(node)) {
    return true;
  }
  if (!nextNode) {
    return false;
  }
  if (nextNode.static || nextNode.accessibility || // TypeScript
  nextNode.readonly) {
    return false;
  }
  if (!nextNode.computed) {
    const name = nextNode.key?.name;
    if (name === "in" || name === "instanceof") {
      return true;
    }
  }
  if (isClassProperty(nextNode) && !nextNode.static && // @ts-expect-error -- Safe
  nextNode.variance && // @ts-expect-error -- Safe
  !nextNode.declare) {
    return true;
  }
  switch (nextNode.type) {
    case "ClassProperty":
    case "PropertyDefinition":
    case "TSAbstractPropertyDefinition":
      return nextNode.computed;
    case "MethodDefinition":
    case "TSAbstractMethodDefinition":
    case "ClassMethod":
    case "ClassPrivateMethod": {
      const isAsync = nextNode.value ? nextNode.value.async : nextNode.async;
      if (isAsync || nextNode.kind === "get" || nextNode.kind === "set") {
        return false;
      }
      const isGenerator = nextNode.value ? nextNode.value.generator : nextNode.generator;
      if (nextNode.computed || isGenerator) {
        return true;
      }
      return false;
    }
    case "TSIndexSignature":
      return true;
  }
  return false;
}
var isInterfaceProperty = createTypeCheckFunction(["TSPropertySignature"]);
function shouldPrintSemicolonAfterInterfaceProperty({
  node,
  next: nextNode
}, options2) {
  if (options2.semi || !isInterfaceProperty(node)) {
    return false;
  }
  if (isKeywordProperty(node)) {
    return true;
  }
  if (!nextNode) {
    return false;
  }
  switch (nextNode.type) {
    case "TSCallSignatureDeclaration":
      return true;
  }
  return false;
}
 
// src/language-js/print/class.js
var getHeritageGroupId = create_group_id_mapper_default("heritageGroup");
var isInterface = createTypeCheckFunction([
  "TSInterfaceDeclaration",
  "DeclareInterface",
  "InterfaceDeclaration",
  "InterfaceTypeAnnotation"
]);
function printClass(path, options2, print3) {
  const doc = printClassWithoutDecorators(path, options2, print3);
  const { node } = path;
  if (node.type === "ClassExpression" && is_non_empty_array_default(node.decorators)) {
    const decoratorsDoc = printDecorators(path, options2, print3);
    const needsParens = needs_parentheses_default(path, options2);
    return needsParens ? [indent([softline, decoratorsDoc, doc]), softline] : [decoratorsDoc, doc];
  }
  return doc;
}
function printClassWithoutDecorators(path, options2, print3) {
  const { node } = path;
  const isPrintingInterface = isInterface(node);
  const isPrintingRecord = node.type === "RecordDeclaration";
  const keyword = isPrintingInterface ? "interface" : isPrintingRecord ? "record" : "class";
  const parts = [printDeclareToken(path), printAbstractToken(path), keyword];
  const groupMode = shouldPrintClassInGroupMode(path);
  const partsGroup = [];
  const extendsParts = [];
  if (node.type !== "InterfaceTypeAnnotation") {
    if (node.id) {
      partsGroup.push(" ");
    }
    for (const property of ["id", "typeParameters"]) {
      if (node[property]) {
        const { leading, trailing } = path.call(
          () => printCommentsSeparately(path, options2),
          property
        );
        partsGroup.push(leading, print3(property), indent(trailing));
      }
    }
  }
  if (node.superClass) {
    const printed = [
      printSuperClass(path, options2, print3),
      print3("superTypeArguments")
    ];
    const printedWithComments = path.call(
      () => ["extends ", printComments(path, printed, options2)],
      "superClass"
    );
    if (groupMode) {
      extendsParts.push(line, group(printedWithComments));
    } else {
      extendsParts.push(" ", printedWithComments);
    }
  } else {
    extendsParts.push(printHeritageClauses(path, options2, print3, "extends"));
  }
  extendsParts.push(
    printHeritageClauses(path, options2, print3, "mixins"),
    printHeritageClauses(path, options2, print3, "implements")
  );
  let heritageGroupId;
  if (groupMode) {
    heritageGroupId = getHeritageGroupId(node);
    parts.push(
      group([...partsGroup, indent(extendsParts)], { id: heritageGroupId })
    );
  } else {
    parts.push(...partsGroup, ...extendsParts);
  }
  if (!isPrintingInterface && groupMode && isNonEmptyClassBody(node.body)) {
    parts.push(ifBreak(hardline, " ", { groupId: heritageGroupId }));
  } else {
    parts.push(" ");
  }
  parts.push(print3("body"));
  return parts;
}
function hasMultipleHeritage(node) {
  let count = node.superClass ? 1 : 0;
  for (const listName of ["extends", "mixins", "implements"]) {
    if (Array.isArray(node[listName])) {
      count += node[listName].length;
    }
    if (count > 1) {
      return true;
    }
  }
  return count > 1;
}
function shouldPrintClassInGroupModeWithoutCache(path) {
  const { node } = path;
  if (hasComment(node.id, CommentCheckFlags.Trailing) || hasComment(node.typeParameters, CommentCheckFlags.Trailing) || hasComment(node.superClass) || hasMultipleHeritage(node)) {
    return true;
  }
  if (node.superClass) {
    if (path.parent.type === "AssignmentExpression") {
      return false;
    }
    return !node.superTypeArguments && isMemberExpression(stripChainElementWrappers(node.superClass));
  }
  const heritage = node.extends?.[0] ?? node.mixins?.[0] ?? node.implements?.[0];
  if (!heritage) {
    return false;
  }
  const groupMode = (
    // `ClassImplements` seem not allow `QualifiedTypeIdentifier`
    heritage.type === "InterfaceExtends" && heritage.id.type === "QualifiedTypeIdentifier" && !heritage.typeParameters || (heritage.type === "TSClassImplements" || heritage.type === "TSInterfaceHeritage") && isMemberExpression(heritage.expression) && !heritage.typeArguments
  );
  return groupMode;
}
var shouldPrintClassInGroupModeCache = /* @__PURE__ */ new WeakMap();
function shouldPrintClassInGroupMode(path) {
  const { node } = path;
  if (!shouldPrintClassInGroupModeCache.has(node)) {
    shouldPrintClassInGroupModeCache.set(
      node,
      shouldPrintClassInGroupModeWithoutCache(path)
    );
  }
  return shouldPrintClassInGroupModeCache.get(node);
}
function printHeritageClauses(path, options2, print3, listName) {
  const { node } = path;
  if (!is_non_empty_array_default(node[listName])) {
    return "";
  }
  const printedLeadingComments = printDanglingComments(path, options2, {
    marker: listName
  });
  const heritageClausesDoc = join([",", line], path.map(print3, listName));
  if (!hasMultipleHeritage(node)) {
    const printed = [
      `${listName} `,
      printedLeadingComments,
      heritageClausesDoc
    ];
    if (shouldPrintClassInGroupMode(path)) {
      return [line, group(printed)];
    }
    return [" ", printed];
  }
  return [
    line,
    printedLeadingComments,
    printedLeadingComments && hardline,
    listName,
    group(indent([line, heritageClausesDoc]))
  ];
}
function printSuperClass(path, options2, print3) {
  const printed = print3("superClass");
  const { parent } = path;
  if (parent.type === "AssignmentExpression") {
    return group(
      ifBreak(["(", indent([softline, printed]), softline, ")"], printed)
    );
  }
  return printed;
}
function printClassMethod(path, options2, print3) {
  const { node } = path;
  const parts = [];
  if (is_non_empty_array_default(node.decorators)) {
    parts.push(printClassMemberDecorators(path, options2, print3));
  }
  parts.push(printTypeScriptAccessibilityToken(node));
  if (node.static) {
    parts.push("static ");
  }
  parts.push(printAbstractToken(path));
  if (node.override) {
    parts.push("override ");
  }
  parts.push(printMethod(path, options2, print3));
  return parts;
}
function printClassProperty(path, options2, print3) {
  const { node } = path;
  const parts = [];
  if (is_non_empty_array_default(node.decorators)) {
    parts.push(printClassMemberDecorators(path, options2, print3));
  }
  parts.push(printDeclareToken(path), printTypeScriptAccessibilityToken(node));
  if (node.static) {
    parts.push("static ");
  }
  parts.push(printAbstractToken(path));
  if (node.override) {
    parts.push("override ");
  }
  if (node.readonly) {
    parts.push("readonly ");
  }
  if (node.variance) {
    parts.push(print3("variance"));
  }
  if (node.type === "ClassAccessorProperty" || node.type === "AccessorProperty" || node.type === "TSAbstractAccessorProperty") {
    parts.push("accessor ");
  }
  parts.push(
    printKey(path, options2, print3),
    printOptionalToken(path),
    printDefiniteToken(path),
    printTypeAnnotationProperty(path, print3)
  );
  const isAbstractProperty = node.type === "TSAbstractPropertyDefinition" || node.type === "TSAbstractAccessorProperty";
  return [
    printAssignment(
      path,
      options2,
      print3,
      parts,
      " =",
      isAbstractProperty ? void 0 : "value"
    ),
    printSemicolon(options2)
  ];
}
 
// src/language-js/print/clause.js
function shouldPrintLeadingHardline(node, options2) {
  const leadingComments = getComments(node, CommentCheckFlags.Leading);
  if (leadingComments.length === 0) {
    return false;
  }
  const [firstComment] = leadingComments;
  const text = options2.originalText;
  const start = locStart(firstComment);
  return has_newline_in_range_default(text, start, locEnd(firstComment)) || has_newline_default(text, start, { backwards: true });
}
function printClause(path, options2, print3, property = "body") {
  return path.call(({ node }) => {
    const doc = print3();
    if (node.type === "EmptyStatement") {
      return hasComment(node, CommentCheckFlags.Leading) ? [" ", doc] : doc;
    }
    const isBlockStatement = node.type === "BlockStatement";
    if (shouldPrintLeadingHardline(node, options2)) {
      return isBlockStatement ? [hardline, doc] : indent([hardline, doc]);
    }
    if (isBlockStatement || node.type === "IfStatement" && path.parent.type === "IfStatement" && path.key === "alternate") {
      return [" ", doc];
    }
    return indent([line, doc]);
  }, property);
}
var printIfStatementConsequent = (path, options2, print3) => printClause(path, options2, print3, "consequent");
var printIfStatementAlternate = (path, options2, print3) => printClause(path, options2, print3, "alternate");
 
// src/language-js/print/do-while-statement.js
function printDoWhileStatement(path, options2, print3) {
  return [
    group(["do", printClause(path, options2, print3)]),
    path.node.body.type === "BlockStatement" ? " " : hardline,
    "while (",
    printIfOrWhileConditionOrWithStatementObject(path, options2, print3),
    ")",
    printSemicolon(options2)
  ];
}
 
// src/language-js/utilities/vue-event-binding.js
var isVueEventBindingTsNode = createTypeCheckFunction([
  "TSAsExpression",
  // `foo as number`
  "TSTypeAssertion",
  // `(<number>foo)`
  "TSNonNullExpression",
  // `foo!`
  "TSInstantiationExpression",
  // `foo<string>`
  "TSSatisfiesExpression"
  // `foo satisfies T`
]);
function unwrapVueEventBindingTsNode(node) {
  if (isVueEventBindingTsNode(node)) {
    return unwrapVueEventBindingTsNode(node.expression);
  }
  return node;
}
var isVueEventBindingFunctionExpression = createTypeCheckFunction([
  "FunctionExpression",
  "ArrowFunctionExpression"
]);
function isVueEventBindingMemberExpression(node) {
  return node.type === "MemberExpression" || node.type === "OptionalMemberExpression" || node.type === "Identifier" && node.name !== "undefined";
}
 
// src/language-js/print/expression-statement.js
function shouldPrintSemicolon(path, options2) {
  if (isSingleVueEventBindingExpressionStatement(path, options2)) {
    const expression = unwrapVueEventBindingTsNode(path.node.expression);
    return isVueEventBindingFunctionExpression(expression) || isVueEventBindingMemberExpression(expression);
  }
  if (!options2.semi) {
    return false;
  }
  if (
    // Do not append semicolon after the only JSX element in a program
    isSingleJsxExpressionStatementInMarkdown(path, options2) || // Do not append semicolon after the only HTML event binding expression in a program
    isSingleHtmlEventHandlerExpressionStatement(path, options2)
  ) {
    return false;
  }
  return true;
}
function printExpressionStatement(path, options2, print3) {
  const parts = [print3("expression")];
  if (shouldExpressionStatementPrintLeadingSemicolon(path, options2)) {
    if (shouldExpressionStatementPrintOwnComments(path, options2)) {
      const {
        node
      } = path;
      const typeCastComment = method_at_default(
        /* OPTIONAL_OBJECT: false */
        0,
        getComments(node, CommentCheckFlags.Leading),
        -1
      );
      const typeCastCommentDoc = printLeadingComments(path, options2, {
        filter: (comment) => comment === typeCastComment
      });
      return printComments(path, [";", typeCastCommentDoc, ...parts], options2, {
        filter: (comment) => comment !== typeCastComment
      });
    }
    parts.unshift(";");
  } else if (shouldPrintSemicolon(path, options2)) {
    parts.push(";");
  }
  return parts;
}
 
// src/language-js/print/for-statement.js
function printForStatement(path, options2, print3) {
  const { node } = path;
  const body = printClause(path, options2, print3);
  const dangling = printDanglingComments(path, options2);
  const printedComments = dangling ? [dangling, softline] : "";
  if (!node.init && !node.test && !node.update) {
    return [printedComments, group(["for (;;)", body])];
  }
  return [
    printedComments,
    group([
      "for (",
      group([
        indent([
          softline,
          print3("init"),
          ";",
          line,
          print3("test"),
          ";",
          node.update ? [line, print3("update")] : ifBreak("", line)
        ]),
        softline
      ]),
      ")",
      body
    ])
  ];
}
 
// src/language-js/print/for-x-statement.js
function printForXStatement(path, options2, print3) {
  const { node } = path;
  const isForOfStatement = node.type === "ForOfStatement";
  return group([
    "for",
    isForOfStatement && node.await ? " await" : "",
    " (",
    print3("left"),
    " ",
    isForOfStatement ? "of" : "in",
    " ",
    print3("right"),
    ")",
    printClause(path, options2, print3)
  ]);
}
 
// src/language-js/print/html-binding.js
function printHtmlBinding(path, options2, print3) {
  if (options2.__isVueBindings || options2.__isVueForBindingLeft) {
    const parameterDocs = path.map(print3, "program", "body", 0, "params");
    if (parameterDocs.length === 1) {
      return parameterDocs[0];
    }
    const doc = join([",", line], parameterDocs);
    return options2.__isVueForBindingLeft ? ["(", indent([softline, group(doc)]), softline, ")"] : doc;
  }
  if (options2.__isEmbeddedTypescriptGenericParameters) {
    const parameterDocs = path.map(
      print3,
      "program",
      "body",
      0,
      "typeParameters",
      "params"
    );
    return join([",", line], parameterDocs);
  }
}
 
// src/language-js/utilities/is-previous-line-empty.js
var isPreviousLineEmpty2 = (node, { originalText }) => is_previous_line_empty_default(originalText, locStart(node));
 
// src/language-js/utilities/needs-hardline-after-dangling-comment.js
function needsHardlineAfterDanglingComment(node) {
  return isLineComment(method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    getComments(node, CommentCheckFlags.Dangling),
    -1
  ));
}
 
// src/language-js/print/if-statement.js
function printIfStatement(path, options2, print3) {
  const {
    node
  } = path;
  const opening = group(["if (", printIfOrWhileConditionOrWithStatementObject(path, options2, print3), ")", printIfStatementConsequent(path, options2, print3)]);
  if (!node.alternate) {
    return opening;
  }
  const {
    consequent
  } = node;
  const isConsequentBlockStatement = consequent.type === "BlockStatement";
  const parts = [opening];
  let needSpace = isConsequentBlockStatement;
  if (!isConsequentBlockStatement) {
    parts.push(hardline);
    needSpace = false;
  }
  const danglingComments = getComments(node, CommentCheckFlags.Dangling);
  if (danglingComments.length > 0) {
    const [firstComment] = danglingComments;
    if (isPreviousLineEmpty2(firstComment, options2)) {
      parts.push(isConsequentBlockStatement ? [hardline, hardline] : hardline);
    } else if (has_newline_default(options2.originalText, locStart(firstComment), {
      backwards: true
    })) {
      parts.push(isConsequentBlockStatement ? hardline : "");
    } else {
      parts.push(" ");
    }
    parts.push(printDanglingComments(path, options2), needsHardlineAfterDanglingComment(node) || has_newline_default(options2.originalText, locEnd(method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      danglingComments,
      -1
    ))) ? hardline : " ");
    needSpace = false;
  }
  parts.push(needSpace ? " " : "", "else", group(printIfStatementAlternate(path, options2, print3)));
  return parts;
}
 
// src/language-js/print/literal.js
function printLiteral(path, options2) {
  const { node } = path;
  switch (node.type) {
    case "RegExpLiteral":
      return printRegex(node);
    case "BigIntLiteral":
      return printBigInt(node.extra.raw);
    case "NumericLiteral":
      return print_number_default(node.extra.raw);
    case "StringLiteral":
      return replaceEndOfLine(print_string_default(node.extra.raw, options2));
    case "NullLiteral":
      return "null";
    case "BooleanLiteral":
      return String(node.value);
    case "DirectiveLiteral":
      return printDirective(node.extra.raw, options2);
    case "Literal": {
      if (node.regex) {
        return printRegex(node.regex);
      }
      if (node.bigint) {
        return printBigInt(node.raw);
      }
      const { value } = node;
      if (typeof value === "number") {
        return print_number_default(node.raw);
      }
      if (typeof value === "string") {
        return isDirective(path) ? printDirective(node.raw, options2) : replaceEndOfLine(print_string_default(node.raw, options2));
      }
      return String(value);
    }
  }
}
function isDirective(path) {
  if (path.key !== "expression") {
    return;
  }
  const { parent } = path;
  return parent.type === "ExpressionStatement" && typeof parent.directive === "string";
}
function printBigInt(raw) {
  return raw.toLowerCase();
}
function printRegex({ pattern, flags }) {
  flags = [...flags].sort().join("");
  return `/${pattern}/${flags}`;
}
var DIRECTIVE_USE_STRICT = "use strict";
function printDirective(rawText, options2) {
  const rawContent = rawText.slice(1, -1);
  if (rawContent === DIRECTIVE_USE_STRICT || !(rawContent.includes('"') || rawContent.includes("'"))) {
    const enclosingQuote = options2.singleQuote ? "'" : '"';
    return enclosingQuote + rawContent + enclosingQuote;
  }
  return rawText;
}
 
// src/language-js/print/object.js
var isPrintingImportAttributes = createTypeCheckFunction(["ImportDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportDeclaration", "DeclareExportAllDeclaration"]);
var isPrintingFlowEnumBody = createTypeCheckFunction(["EnumBooleanBody", "EnumNumberBody", "EnumBigIntBody", "EnumStringBody", "EnumSymbolBody"]);
function printObject(path, options2, print3) {
  const {
    node,
    parent
  } = path;
  const isFlowEnumBody = isPrintingFlowEnumBody(node);
  const isEnumBody = node.type === "TSEnumBody" || isFlowEnumBody;
  const isImportAttributes = isPrintingImportAttributes(node);
  const hasUnknownMembers = isFlowEnumBody && node.hasUnknownMembers;
  const property = isEnumBody ? "members" : isImportAttributes ? "attributes" : "properties";
  const children = node[property];
  const shouldBreak = isEnumBody || node.type === "ObjectPattern" && parent.type !== "FunctionDeclaration" && parent.type !== "FunctionExpression" && parent.type !== "ArrowFunctionExpression" && parent.type !== "ObjectMethod" && parent.type !== "ClassMethod" && parent.type !== "ClassPrivateMethod" && parent.type !== "AssignmentPattern" && parent.type !== "CatchClause" && node.properties.some((property2) => property2.value && (property2.value.type === "ObjectPattern" || property2.value.type === "ArrayPattern")) || node.type !== "ObjectPattern" && options2.objectWrap === "preserve" && children.length > 0 && hasNewLineAfterOpeningBrace(node, children[0], options2);
  let separatorParts = [];
  const parts = path.map(({
    node: node2
  }) => {
    const result = [...separatorParts, group(print3())];
    separatorParts = [",", line];
    if (isNextLineEmpty2(node2, options2)) {
      separatorParts.push(hardline);
    }
    return result;
  }, property);
  if (hasUnknownMembers) {
    let printed;
    if (hasComment(node, CommentCheckFlags.Dangling)) {
      const hasLineComments = hasComment(node, CommentCheckFlags.Line);
      const printedDanglingComments = printDanglingComments(path, options2);
      printed = [printedDanglingComments, hasLineComments || has_newline_default(options2.originalText, locEnd(method_at_default(
        /* OPTIONAL_OBJECT: false */
        0,
        getComments(node),
        -1
      ))) ? hardline : line, "..."];
    } else {
      printed = ["..."];
    }
    parts.push([...separatorParts, ...printed]);
  }
  const canHaveTrailingSeparator = !(hasUnknownMembers || method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    children,
    -1
  )?.type === "RestElement");
  let content;
  if (parts.length === 0) {
    content = group(["{", printDanglingCommentsInList(path, options2), "}", printOptionalToken(path), printTypeAnnotationProperty(path, print3)]);
  } else {
    const spacing = options2.bracketSpacing ? line : softline;
    content = ["{", indent([spacing, ...parts]), canHaveTrailingSeparator ? printTrailingComma(options2) : "", spacing, "}", printOptionalToken(path), printTypeAnnotationProperty(path, print3)];
  }
  if (path.match((node2) => node2.type === "ObjectPattern" && !is_non_empty_array_default(node2.decorators), shouldHugTheOnlyParameter) || isObjectType(node) && (path.match(void 0, (node2, name) => name === "typeAnnotation", (node2, name) => name === "typeAnnotation", shouldHugTheOnlyParameter) || path.match(void 0, (node2, name) => node2.type === "FunctionTypeParam" && name === "typeAnnotation", shouldHugTheOnlyParameter)) || // Assignment printing logic (printAssignment) is responsible
  // for adding a group if needed
  !shouldBreak && path.match((node2) => node2.type === "ObjectPattern", (node2) => node2.type === "AssignmentExpression" || node2.type === "VariableDeclarator")) {
    return content;
  }
  return group(content, {
    shouldBreak
  });
}
function hasNewLineAfterOpeningBrace(node, firstProperty, options2) {
  const text = options2.originalText;
  const firstPropertyStart = locStart(firstProperty);
  let openingBraceIndex = locStart(node);
  if (isPrintingImportAttributes(node)) {
    openingBraceIndex = stripComments(options2).lastIndexOf("{", firstPropertyStart);
    if (false) {
      noop_default(openingBraceIndex !== -1);
    }
  }
  if (false) {
    noop_default(text.charAt(openingBraceIndex), "{");
  }
  return has_newline_in_range_default(text, openingBraceIndex, firstPropertyStart);
}
 
// src/language-js/print/module.js
function printImportDeclaration(path, options2, print3) {
  const { node } = path;
  return [
    "import",
    node.phase ? ` ${node.phase}` : "",
    printImportKind(node),
    printModuleSpecifiers(path, options2, print3),
    printModuleSource(path, options2, print3),
    printImportAttributes(path, options2, print3),
    printSemicolon(options2)
  ];
}
var isDefaultExport = (node) => node.type === "ExportDefaultDeclaration" || node.type === "DeclareExportDeclaration" && node.default;
function printExportDeclaration(path, options2, print3) {
  const { node } = path;
  const parts = [
    printDecoratorsBeforeExport(path, options2, print3),
    printDeclareToken(path),
    "export",
    isDefaultExport(node) ? " default" : ""
  ];
  const { declaration, exported } = node;
  if (hasComment(node, CommentCheckFlags.Dangling)) {
    parts.push(" ", printDanglingComments(path, options2));
    if (needsHardlineAfterDanglingComment(node)) {
      parts.push(hardline);
    }
  }
  if (declaration) {
    parts.push(" ", print3("declaration"));
  } else {
    parts.push(printExportKind(node));
    if (node.type === "ExportAllDeclaration" || node.type === "DeclareExportAllDeclaration") {
      parts.push(" *");
      if (exported) {
        parts.push(" as ", print3("exported"));
      }
    } else {
      parts.push(printModuleSpecifiers(path, options2, print3));
    }
    parts.push(
      printModuleSource(path, options2, print3),
      printImportAttributes(path, options2, print3)
    );
  }
  parts.push(printSemicolonAfterExportDeclaration(node, options2));
  return parts;
}
var shouldOmitSemicolon = createTypeCheckFunction([
  "ClassDeclaration",
  "ComponentDeclaration",
  "FunctionDeclaration",
  "TSInterfaceDeclaration",
  "DeclareClass",
  "DeclareComponent",
  "DeclareFunction",
  "DeclareHook",
  "HookDeclaration",
  "TSDeclareFunction",
  "EnumDeclaration"
]);
function printSemicolonAfterExportDeclaration(node, options2) {
  if (!node.declaration || isDefaultExport(node) && !shouldOmitSemicolon(node.declaration)) {
    return printSemicolon(options2);
  }
  return "";
}
function printImportOrExportKind(kind, spaceBeforeKind = true) {
  return kind && kind !== "value" ? `${spaceBeforeKind ? " " : ""}${kind}${spaceBeforeKind ? "" : " "}` : "";
}
function printImportKind(node, spaceBeforeKind) {
  return printImportOrExportKind(node.importKind, spaceBeforeKind);
}
function printExportKind(node) {
  return printImportOrExportKind(node.exportKind);
}
function printModuleSource(path, options2, print3) {
  const { node } = path;
  if (!node.source) {
    return "";
  }
  return [
    shouldPrintSpecifiers(node, options2) ? " from" : "",
    " ",
    print3("source")
  ];
}
function printModuleSpecifiers(path, options2, print3) {
  const { node } = path;
  if (!shouldPrintSpecifiers(node, options2)) {
    return "";
  }
  const parts = [" "];
  if (is_non_empty_array_default(node.specifiers)) {
    const standaloneSpecifiers = [];
    const groupedSpecifiers = [];
    path.each(() => {
      const specifierType = path.node.type;
      if (specifierType === "ExportNamespaceSpecifier" || specifierType === "ExportDefaultSpecifier" || specifierType === "ImportNamespaceSpecifier" || specifierType === "ImportDefaultSpecifier") {
        standaloneSpecifiers.push(print3());
      } else if (specifierType === "ExportSpecifier" || specifierType === "ImportSpecifier") {
        groupedSpecifiers.push(print3());
      } else {
        throw new unexpected_node_error_default(node, "specifier");
      }
    }, "specifiers");
    parts.push(join(", ", standaloneSpecifiers));
    if (groupedSpecifiers.length > 0) {
      if (standaloneSpecifiers.length > 0) {
        parts.push(", ");
      }
      const canBreak2 = groupedSpecifiers.length > 1 || standaloneSpecifiers.length > 0 || node.specifiers.some((node2) => hasComment(node2));
      if (canBreak2) {
        parts.push(
          group([
            "{",
            indent([
              options2.bracketSpacing ? line : softline,
              join([",", line], groupedSpecifiers)
            ]),
            printTrailingComma(options2),
            options2.bracketSpacing ? line : softline,
            "}"
          ])
        );
      } else {
        parts.push([
          "{",
          options2.bracketSpacing ? " " : "",
          ...groupedSpecifiers,
          options2.bracketSpacing ? " " : "",
          "}"
        ]);
      }
    }
  } else {
    parts.push("{}");
  }
  return parts;
}
function shouldPrintSpecifiers(node, options2) {
  if (node.type !== "ImportDeclaration" || is_non_empty_array_default(node.specifiers) || node.importKind === "type") {
    return true;
  }
  const text = stripComments(options2).slice(
    locStart(node),
    locStart(node.source)
  );
  return text.trimEnd().endsWith("from");
}
function getImportAttributesKeyword(node, options2) {
  const textBetweenSourceAndAttributes = stripComments(options2).slice(
    locEnd(node.source),
    node.attributes?.[0] ? locStart(node.attributes[0]) : locEnd(node)
  ).trimStart();
  if (textBetweenSourceAndAttributes.startsWith("assert")) {
    return "assert";
  }
  if (textBetweenSourceAndAttributes.startsWith("with")) {
    return "with";
  }
  return is_non_empty_array_default(node.attributes) ? "with" : void 0;
}
var isSingleTypeImportAttributes = (node) => {
  const { attributes } = node;
  if (attributes.length !== 1) {
    return false;
  }
  const [attribute] = attributes;
  const { type, key, value } = attribute;
  return type === "ImportAttribute" && (key.type === "Identifier" && key.name === "type" || isStringLiteral(key) && key.value === "type") && isStringLiteral(value) && !hasComment(attribute) && !hasComment(key) && !hasComment(value);
};
function printImportAttributes(path, options2, print3) {
  const { node } = path;
  if (!node.source) {
    return "";
  }
  const keyword = getImportAttributesKeyword(node, options2);
  if (!keyword) {
    return "";
  }
  let attributesDoc = printObject(path, options2, print3);
  if (isSingleTypeImportAttributes(node)) {
    attributesDoc = removeLines(attributesDoc);
  }
  return [` ${keyword} `, attributesDoc];
}
function printModuleSpecifier(path, options2, print3) {
  const { node } = path;
  const { type } = node;
  const isImportSpecifier = type.startsWith("Import");
  const leftSideProperty = isImportSpecifier ? "imported" : "local";
  const rightSideProperty = isImportSpecifier ? "local" : "exported";
  const leftSideNode = node[leftSideProperty];
  const rightSideNode = node[rightSideProperty];
  let left = "";
  let right = "";
  if (type === "ExportNamespaceSpecifier" || type === "ImportNamespaceSpecifier") {
    left = "*";
  } else if (leftSideNode) {
    left = print3(leftSideProperty);
  }
  if (rightSideNode && !isShorthandSpecifier(node)) {
    right = print3(rightSideProperty);
  }
  return [
    printImportOrExportKind(
      type === "ImportSpecifier" ? node.importKind : node.exportKind,
      /* spaceBeforeKind */
      false
    ),
    left,
    left && right ? " as " : "",
    right
  ];
}
 
// src/language-js/print/property.js
function printProperty(path, options2, print3) {
  const { node } = path;
  if (node.shorthand) {
    return print3("value");
  }
  return printAssignment(
    path,
    options2,
    print3,
    printKey(path, options2, print3),
    ":",
    "value"
  );
}
 
// src/language-js/print/rest-element.js
function printRestOrSpreadElement(path, print3) {
  return ["...", print3("argument"), printTypeAnnotationProperty(path, print3)];
}
 
// src/language-js/print/return-statement.js
function printReturnOrThrowArgument(path, options2, print3) {
  const { node } = path;
  const argumentDoc = print3();
  if (returnArgumentHasLeadingComment(node, options2)) {
    return ["(", indent([hardline, argumentDoc]), hardline, ")"];
  }
  if (isBinaryish(node) || options2.experimentalTernaries && node.type === "ConditionalExpression" && (node.consequent.type === "ConditionalExpression" || node.alternate.type === "ConditionalExpression")) {
    return group([
      ifBreak("("),
      indent([softline, argumentDoc]),
      softline,
      ifBreak(")")
    ]);
  }
  return argumentDoc;
}
function printReturnOrThrowStatement(path, options2, print3) {
  const { node } = path;
  return [
    node.type === "ThrowStatement" ? "throw" : "return",
    node.argument ? [
      " ",
      path.call(
        () => printReturnOrThrowArgument(path, options2, print3),
        "argument"
      )
    ] : "",
    printSemicolon(options2)
  ];
}
 
// src/language-js/print/sequence-expression.js
function shouldIndentSequenceExpression(path, options2) {
  const { key, parent } = path;
  if (key === "argument" && isReturnOrThrowStatement(parent) && needs_parentheses_default(path, options2)) {
    return true;
  }
  if (key === "body" && parent.type === "ArrowFunctionExpression") {
    return true;
  }
  return false;
}
function printSequenceExpression(path, options2, print3) {
  const { parent } = path;
  if (parent.type === "ExpressionStatement" || parent.type === "ForStatement") {
    const parts2 = [];
    path.each(({ isFirst }) => {
      if (isFirst) {
        parts2.push(print3());
      } else {
        parts2.push(",", indent([line, print3()]));
      }
    }, "expressions");
    return group(parts2);
  }
  const parts = join([",", line], path.map(print3, "expressions"));
  if (shouldIndentSequenceExpression(path, options2)) {
    return group(ifBreak([indent([softline, parts]), softline], parts));
  }
  return group(parts);
}
 
// src/language-js/print/switch-statement.js
function printSwitchStatement(path, options2, print3) {
  return [
    group([
      "switch (",
      indent([softline, print3("discriminant")]),
      softline,
      ")"
    ]),
    " {",
    path.node.cases.length > 0 ? indent([
      hardline,
      join(
        hardline,
        path.map(
          ({ node, isLast }) => [
            print3(),
            !isLast && isNextLineEmpty2(node, options2) ? hardline : ""
          ],
          "cases"
        )
      )
    ]) : "",
    hardline,
    "}"
  ];
}
function printSwitchCase(path, options2, print3) {
  const { node } = path;
  const parts = [];
  if (node.test) {
    parts.push("case ", print3("test"), ":");
  } else {
    parts.push("default:");
  }
  if (hasComment(node, CommentCheckFlags.Dangling)) {
    parts.push(" ", printDanglingComments(path, options2));
  }
  const consequent = node.consequent.filter(
    (node2) => node2.type !== "EmptyStatement"
  );
  if (consequent.length > 0) {
    const cons = printStatementSequence(path, options2, print3, "consequent");
    parts.push(
      consequent.length === 1 && consequent[0].type === "BlockStatement" ? [" ", cons] : indent([hardline, cons])
    );
  }
  return parts;
}
 
// src/language-js/utilities/is-simple-expression-by-node-count.js
function getExpressionInnerNodeCount(node, maxCount) {
  let count = 0;
  for (const k in node) {
    const prop = node[k];
    if (is_object_default(prop) && typeof prop.type === "string") {
      count++;
      count += getExpressionInnerNodeCount(prop, maxCount - count);
    }
    if (count > maxCount) {
      return count;
    }
  }
  return count;
}
function isSimpleExpressionByNodeCount(node, maxInnerNodeCount = 5) {
  const count = getExpressionInnerNodeCount(node, maxInnerNodeCount);
  return count <= maxInnerNodeCount;
}
 
// src/language-js/print/ternary-old.js
function conditionalExpressionChainContainsJsx(node) {
  const conditionalExpressions = [node];
  for (let index = 0; index < conditionalExpressions.length; index++) {
    const conditionalExpression = conditionalExpressions[index];
    for (const property of ["test", "consequent", "alternate"]) {
      const node2 = conditionalExpression[property];
      if (isJsxElement(node2)) {
        return true;
      }
      if (node2.type === "ConditionalExpression") {
        conditionalExpressions.push(node2);
      }
    }
  }
  return false;
}
function printTernaryTest(path, options2, print3) {
  const { node } = path;
  const isConditionalExpression = node.type === "ConditionalExpression";
  const alternateNodePropertyName = isConditionalExpression ? "alternate" : "falseType";
  const { parent } = path;
  const printed = isConditionalExpression ? print3("test") : [print3("checkType"), " ", "extends", " ", print3("extendsType")];
  if (parent.type === node.type && parent[alternateNodePropertyName] === node) {
    return align(2, printed);
  }
  return printed;
}
var ancestorNameMap = /* @__PURE__ */ new Map([
  ["AssignmentExpression", "right"],
  ["VariableDeclarator", "init"],
  ["ReturnStatement", "argument"],
  ["ThrowStatement", "argument"],
  ["UnaryExpression", "argument"],
  ["YieldExpression", "argument"],
  ["AwaitExpression", "argument"]
]);
function shouldExtraIndentForConditionalExpression(path) {
  const { node } = path;
  if (node.type !== "ConditionalExpression") {
    return false;
  }
  let parent;
  let child = node;
  for (let ancestorCount = 0; !parent; ancestorCount++) {
    const node2 = path.getParentNode(ancestorCount);
    if (isChainElementWrapper(node2) && node2.expression === child || isCallExpression(node2) && node2.callee === child || isMemberExpression(node2) && node2.object === child) {
      child = node2;
      continue;
    }
    if (node2.type === "NewExpression" && node2.callee === child || isBinaryCastExpression(node2) && node2.expression === child) {
      parent = path.getParentNode(ancestorCount + 1);
      child = node2;
    } else {
      parent = node2;
    }
  }
  if (child === node) {
    return false;
  }
  return parent[ancestorNameMap.get(parent.type)] === child;
}
function printTernaryOld(path, options2, print3) {
  const { node } = path;
  const isConditionalExpression = node.type === "ConditionalExpression";
  const consequentNodePropertyName = isConditionalExpression ? "consequent" : "trueType";
  const alternateNodePropertyName = isConditionalExpression ? "alternate" : "falseType";
  const testNodePropertyNames = isConditionalExpression ? ["test"] : ["checkType", "extendsType"];
  const consequentNode = node[consequentNodePropertyName];
  const alternateNode = node[alternateNodePropertyName];
  const parts = [];
  let jsxMode = false;
  const { parent } = path;
  const isParentTest = parent.type === node.type && testNodePropertyNames.some((prop) => parent[prop] === node);
  let forceNoIndent = parent.type === node.type && !isParentTest;
  let currentParent;
  let previousParent;
  let i = 0;
  do {
    previousParent = currentParent || node;
    currentParent = path.getParentNode(i);
    i++;
  } while (currentParent && currentParent.type === node.type && testNodePropertyNames.every(
    (prop) => currentParent[prop] !== previousParent
  ));
  const firstNonConditionalParent = currentParent || parent;
  const lastConditionalParent = previousParent;
  if (isConditionalExpression && (isJsxElement(node[testNodePropertyNames[0]]) || isJsxElement(consequentNode) || isJsxElement(alternateNode) || conditionalExpressionChainContainsJsx(lastConditionalParent))) {
    jsxMode = true;
    forceNoIndent = true;
    const wrap = (doc) => [
      ifBreak("("),
      indent([softline, doc]),
      softline,
      ifBreak(")")
    ];
    const isNil = (node2) => node2.type === "NullLiteral" || node2.type === "Literal" && node2.value === null || node2.type === "Identifier" && node2.name === "undefined";
    parts.push(
      " ? ",
      isNil(consequentNode) ? print3(consequentNodePropertyName) : wrap(print3(consequentNodePropertyName)),
      " : ",
      alternateNode.type === node.type || isNil(alternateNode) ? print3(alternateNodePropertyName) : wrap(print3(alternateNodePropertyName))
    );
  } else {
    const printBranch = (nodePropertyName) => options2.useTabs ? indent(print3(nodePropertyName)) : align(2, print3(nodePropertyName));
    const part = [
      line,
      "? ",
      consequentNode.type === node.type ? ifBreak("", "(") : "",
      printBranch(consequentNodePropertyName),
      consequentNode.type === node.type ? ifBreak("", ")") : "",
      line,
      ": ",
      printBranch(alternateNodePropertyName)
    ];
    parts.push(
      parent.type !== node.type || parent[alternateNodePropertyName] === node || isParentTest ? part : options2.useTabs ? dedent(indent(part)) : align(Math.max(0, options2.tabWidth - 2), part)
    );
  }
  const maybeGroup = (doc) => parent === firstNonConditionalParent ? group(doc) : doc;
  const breakClosingParen = !jsxMode && (isMemberExpression(parent) || parent.type === "NGPipeExpression" && parent.left === node) && !parent.computed;
  const shouldExtraIndent = shouldExtraIndentForConditionalExpression(path);
  const result = maybeGroup([
    printTernaryTest(path, options2, print3),
    forceNoIndent ? parts : indent(parts),
    isConditionalExpression && breakClosingParen && !shouldExtraIndent ? softline : ""
  ]);
  return isParentTest || shouldExtraIndent ? group([indent([softline, result]), softline]) : result;
}
 
// src/language-js/print/ternary.js
function shouldBreakClosingParen(node, parent) {
  return (isMemberExpression(parent) || parent.type === "NGPipeExpression" && parent.left === node) && !parent.computed;
}
function hasMultilineBlockComments(testNodes, consequentNode, alternateNode, options2) {
  const comments = [
    ...testNodes.map((node) => getComments(node)),
    getComments(consequentNode),
    getComments(alternateNode)
  ].flat();
  return comments.some(
    (comment) => isBlockComment(comment) && has_newline_in_range_default(
      options2.originalText,
      locStart(comment),
      locEnd(comment)
    )
  );
}
var ancestorNameMap2 = /* @__PURE__ */ new Map([
  ["AssignmentExpression", "right"],
  ["VariableDeclarator", "init"],
  ["ReturnStatement", "argument"],
  ["ThrowStatement", "argument"],
  ["UnaryExpression", "argument"],
  ["YieldExpression", "argument"],
  ["AwaitExpression", "argument"]
]);
function shouldExtraIndentForConditionalExpression2(path) {
  const { node } = path;
  if (node.type !== "ConditionalExpression") {
    return false;
  }
  let parent;
  let child = node;
  for (let ancestorCount = 0; !parent; ancestorCount++) {
    const node2 = path.getParentNode(ancestorCount);
    if (isChainElementWrapper(node2) && node2.expression === child || isCallExpression(node2) && node2.callee === child || isMemberExpression(node2) && node2.object === child) {
      child = node2;
      continue;
    }
    if (node2.type === "NewExpression" && node2.callee === child || isBinaryCastExpression(node2) && node2.expression === child) {
      parent = path.getParentNode(ancestorCount + 1);
      child = node2;
    } else {
      parent = node2;
    }
  }
  if (child === node) {
    return false;
  }
  return parent[ancestorNameMap2.get(parent.type)] === child;
}
var wrapInParens = (doc) => [
  ifBreak("("),
  indent([softline, doc]),
  softline,
  ifBreak(")")
];
function printTernary(path, options2, print3, args) {
  if (!options2.experimentalTernaries) {
    return printTernaryOld(path, options2, print3);
  }
  const { node } = path;
  const isConditionalExpression = node.type === "ConditionalExpression";
  const isTSConditional = isConditionalType(node);
  const consequentNodePropertyName = isConditionalExpression ? "consequent" : "trueType";
  const alternateNodePropertyName = isConditionalExpression ? "alternate" : "falseType";
  const testNodePropertyNames = isConditionalExpression ? ["test"] : ["checkType", "extendsType"];
  const consequentNode = node[consequentNodePropertyName];
  const alternateNode = node[alternateNodePropertyName];
  const testNodes = testNodePropertyNames.map((prop) => node[prop]);
  const { parent } = path;
  const isParentTernary = parent.type === node.type;
  const isInTest = isParentTernary && testNodePropertyNames.some((prop) => parent[prop] === node);
  const isInAlternate = isParentTernary && parent[alternateNodePropertyName] === node;
  const isConsequentTernary = consequentNode.type === node.type;
  const isAlternateTernary = alternateNode.type === node.type;
  const isInChain = isAlternateTernary || isInAlternate;
  const isBigTabs = options2.tabWidth > 2 || options2.useTabs;
  let currentParent;
  let previousParent;
  let i = 0;
  do {
    previousParent = currentParent || node;
    currentParent = path.getParentNode(i);
    i++;
  } while (currentParent && currentParent.type === node.type && testNodePropertyNames.every(
    (prop) => currentParent[prop] !== previousParent
  ));
  const firstNonConditionalParent = currentParent || parent;
  const isOnSameLineAsAssignment = args && args.assignmentLayout && args.assignmentLayout !== "break-after-operator" && (parent.type === "AssignmentExpression" || parent.type === "VariableDeclarator" || parent.type === "ClassProperty" || parent.type === "PropertyDefinition" || parent.type === "ClassPrivateProperty" || parent.type === "ObjectProperty" || parent.type === "Property");
  const isOnSameLineAsReturn = isReturnOrThrowStatement(parent) && !(isConsequentTernary || isAlternateTernary);
  const isInJsx = isConditionalExpression && firstNonConditionalParent.type === "JSXExpressionContainer" && path.grandparent.type !== "JSXAttribute";
  const shouldExtraIndent = shouldExtraIndentForConditionalExpression2(path);
  const breakClosingParen = shouldBreakClosingParen(node, parent);
  const breakTSClosingParen = isTSConditional && needs_parentheses_default(path, options2);
  const fillTab = !isBigTabs ? "" : options2.useTabs ? "	" : " ".repeat(options2.tabWidth - 1);
  const shouldBreak = hasMultilineBlockComments(
    testNodes,
    consequentNode,
    alternateNode,
    options2
  ) || isConsequentTernary || isAlternateTernary;
  const tryToParenthesizeAlternate = !isInChain && !isParentTernary && !isTSConditional && (isInJsx ? (
    // In JSX, we want this with a null-consequent to mirror booleans:
    //
    //   {!foo ? null : (
    //     something.else()
    //   )}
    //
    // But not in the general case, where it's (subjectively) better to have things multiline.
    consequentNode.type === "NullLiteral" || consequentNode.type === "Literal" && consequentNode.value === null
  ) : (
    // Right now, we do this when:
    // 1. The test is simple and,
    // 2. The consequent is short.
    // This heuristic could probably be refined over time, but felt right after moderate amounts of tinkering.
    isLoneShortArgument(consequentNode, options2) && isSimpleExpressionByNodeCount(node.test, 3)
  ));
  const shouldGroupTestAndConsequent = isInChain || isInAlternate || isTSConditional && !isParentTernary || isParentTernary && isConditionalExpression && isSimpleExpressionByNodeCount(node.test, 1) || tryToParenthesizeAlternate;
  const consequentComments = [];
  if (!isConsequentTernary && hasComment(consequentNode, CommentCheckFlags.Dangling)) {
    path.call(() => {
      consequentComments.push(printDanglingComments(path, options2), hardline);
    }, "consequent");
  }
  const alternateComments = [];
  if (hasComment(node.test, CommentCheckFlags.Dangling)) {
    path.call(() => {
      alternateComments.push(printDanglingComments(path, options2));
    }, "test");
  }
  if (!isAlternateTernary && hasComment(alternateNode, CommentCheckFlags.Dangling)) {
    path.call(() => {
      alternateComments.push(printDanglingComments(path, options2));
    }, "alternate");
  }
  if (hasComment(node, CommentCheckFlags.Dangling)) {
    alternateComments.push(printDanglingComments(path, options2));
  }
  const testId = /* @__PURE__ */ Symbol("test");
  const consequentId = /* @__PURE__ */ Symbol("consequent");
  const testAndConsequentId = /* @__PURE__ */ Symbol("test-and-consequent");
  const printedTest = isConditionalExpression ? [
    wrapInParens(print3("test")),
    node.test.type === "ConditionalExpression" ? breakParent : ""
  ] : [
    print3("checkType"),
    " ",
    "extends",
    " ",
    isConditionalType(node.extendsType) || node.extendsType.type === "TSMappedType" ? print3("extendsType") : group(wrapInParens(print3("extendsType")))
  ];
  const printedTestWithQuestionMark = group([printedTest, " ?"], {
    id: testId
  });
  const printedConsequent = print3(consequentNodePropertyName);
  const consequent = indent([
    isConsequentTernary || isInJsx && (isJsxElement(consequentNode) || isParentTernary || isInChain) ? hardline : line,
    consequentComments,
    printedConsequent
  ]);
  const printedTestAndConsequent = shouldGroupTestAndConsequent ? group(
    [
      printedTestWithQuestionMark,
      // Avoid indenting consequent if it isn't a chain, even if the test breaks.
      isInChain ? consequent : (
        // If the test breaks, also break the consequent
        ifBreak(consequent, group(consequent, { id: consequentId }), {
          groupId: testId
        })
      )
    ],
    { id: testAndConsequentId }
  ) : [printedTestWithQuestionMark, consequent];
  const printedAlternate = print3(alternateNodePropertyName);
  const printedAlternateWithParens = tryToParenthesizeAlternate ? ifBreak(printedAlternate, dedent(wrapInParens(printedAlternate)), {
    groupId: testAndConsequentId
  }) : printedAlternate;
  const parts = [
    printedTestAndConsequent,
    alternateComments.length > 0 ? [indent([hardline, alternateComments]), hardline] : isAlternateTernary ? hardline : tryToParenthesizeAlternate ? ifBreak(line, " ", { groupId: testAndConsequentId }) : line,
    ":",
    isAlternateTernary ? " " : !isBigTabs ? " " : shouldGroupTestAndConsequent ? ifBreak(
      fillTab,
      ifBreak(
        isInChain || tryToParenthesizeAlternate ? " " : fillTab,
        " "
      ),
      { groupId: testAndConsequentId }
    ) : ifBreak(fillTab, " "),
    isAlternateTernary ? printedAlternateWithParens : group([
      indent(printedAlternateWithParens),
      isInJsx && !tryToParenthesizeAlternate ? softline : ""
    ]),
    breakClosingParen && !shouldExtraIndent ? softline : "",
    shouldBreak ? breakParent : ""
  ];
  const result = isOnSameLineAsAssignment && !shouldBreak ? (
    // We try to preserve the case of a single-line ternary bumped to the line after assignment:
    //
    //   const foo =
    //     cond ? result : otherwise;
    //
    // However, this sadly means that tests are always shunted to the next line in this case,
    // which I'm ambivalent about but some people like keeping on the same line as the assignment.
    group(indent([softline, group(parts)]))
  ) : isOnSameLineAsAssignment || isOnSameLineAsReturn ? group(indent(parts)) : shouldExtraIndent || isTSConditional && isInTest ? group([
    indent([softline, parts]),
    breakTSClosingParen ? softline : ""
  ]) : parent === firstNonConditionalParent ? group(parts) : parts;
  return result;
}
 
// src/language-js/print/try-statement.js
function printTryStatement(path, options2, print3) {
  const { node } = path;
  return [
    "try ",
    print3("block"),
    node.handler ? [" ", print3("handler")] : "",
    node.finalizer ? [" finally ", print3("finalizer")] : ""
  ];
}
function printCatchClause(path, options2, print3) {
  const { node } = path;
  if (node.param) {
    const parameterHasComments = hasComment(
      node.param,
      (comment) => !isBlockComment(comment) || comment.leading && has_newline_default(options2.originalText, locEnd(comment)) || comment.trailing && has_newline_default(options2.originalText, locStart(comment), {
        backwards: true
      })
    );
    const param = print3("param");
    return [
      "catch ",
      parameterHasComments ? ["(", indent([softline, param]), softline, ") "] : ["(", param, ") "],
      print3("body")
    ];
  }
  return ["catch ", print3("body")];
}
 
// src/language-js/print/variable-declaration.js
function printVariableDeclaration(path, options2, print3) {
  const { node } = path;
  const printed = path.map(print3, "declarations");
  const isForXStatementInitializer = path.key === "init" && path.parent.type === "ForStatement" || path.key === "left" && (path.parent.type === "ForInStatement" || path.parent.type === "ForOfStatement");
  const hasValue = node.declarations.some((declarator) => declarator.init);
  let firstVariable;
  if (printed.length === 1 && !hasComment(node.declarations[0])) {
    firstVariable = printed[0];
  } else {
    firstVariable = indent(printed[0]);
  }
  return group([
    printDeclareToken(path),
    node.kind,
    firstVariable ? [" ", firstVariable] : "",
    indent(
      printed.slice(1).map((doc) => [
        ",",
        hasValue && !isForXStatementInitializer ? hardline : line,
        doc
      ])
    ),
    isForXStatementInitializer ? "" : printSemicolon(options2)
  ]);
}
 
// src/language-js/print/while-statement.js
function printWhileStatement(path, options2, print3) {
  const { node } = path;
  const keyword = node.type === "WithStatement" ? "with" : "while";
  return group([
    keyword,
    " (",
    printIfOrWhileConditionOrWithStatementObject(path, options2, print3),
    ")",
    printClause(path, options2, print3)
  ]);
}
 
// src/language-js/print/estree.js
function printEstree(path, options2, print3, args) {
  const { node } = path;
  if (isLiteral(node)) {
    return printLiteral(path, options2);
  }
  switch (node.type) {
    case "JsExpressionRoot":
      return print3("node");
    case "JsonRoot":
      return [printDanglingComments(path, options2), print3("node"), hardline];
    // Babel extension.
    case "File":
      return printHtmlBinding(path, options2, print3) ?? print3("program");
    case "ExpressionStatement":
      return printExpressionStatement(path, options2, print3);
    case "ChainExpression":
      return print3("expression");
    // Babel non-standard node. Used for Closure-style type casts. See postprocess.js.
    case "ParenthesizedExpression": {
      const shouldHug = !hasComment(node.expression) && (isObjectExpression(node.expression) || isArrayExpression(node.expression));
      if (shouldHug) {
        return ["(", print3("expression"), ")"];
      }
      return group([
        "(",
        indent([softline, print3("expression")]),
        softline,
        ")"
      ]);
    }
    case "AssignmentExpression":
      return printAssignmentExpression(path, options2, print3);
    case "VariableDeclarator":
      return printVariableDeclarator(path, options2, print3);
    case "BinaryExpression":
    case "LogicalExpression":
      return printBinaryishExpression(path, options2, print3);
    case "AssignmentPattern":
      return [print3("left"), " = ", print3("right")];
    case "OptionalMemberExpression":
    case "MemberExpression":
      return printMemberExpression(path, options2, print3);
    case "MetaProperty":
      return [print3("meta"), ".", print3("property")];
    case "BindExpression":
      return printBindExpression(path, options2, print3);
    case "Identifier":
      return [
        node.name,
        printOptionalToken(path),
        printDefiniteToken(path),
        printTypeAnnotationProperty(path, print3)
      ];
    case "V8IntrinsicIdentifier":
      return ["%", node.name];
    case "SpreadElement":
      return printRestOrSpreadElement(path, print3);
    case "RestElement":
      return printRestOrSpreadElement(path, print3);
    case "FunctionDeclaration":
    case "FunctionExpression":
      return printFunction(path, options2, print3, args);
    case "ArrowFunctionExpression":
      return printArrowFunction(path, options2, print3, args);
    case "YieldExpression":
      return [
        `yield${node.delegate ? "*" : ""}`,
        node.argument ? [" ", print3("argument")] : ""
      ];
    case "AwaitExpression":
      return printAwaitExpression(path, options2, print3);
    case "ExportDefaultDeclaration":
    case "ExportNamedDeclaration":
    case "ExportAllDeclaration":
      return printExportDeclaration(path, options2, print3);
    case "ImportDeclaration":
      return printImportDeclaration(path, options2, print3);
    case "ImportSpecifier":
    case "ExportSpecifier":
    case "ImportNamespaceSpecifier":
    case "ExportNamespaceSpecifier":
    case "ImportDefaultSpecifier":
    case "ExportDefaultSpecifier":
      return printModuleSpecifier(path, options2, print3);
    case "ImportAttribute":
      return printProperty(path, options2, print3);
    case "Program":
    case "BlockStatement":
    case "StaticBlock":
      return printBlock(path, options2, print3);
    case "ClassBody":
      return printClassBody(path, options2, print3);
    case "ThrowStatement":
      return printReturnOrThrowStatement(path, options2, print3);
    case "ReturnStatement":
      return printReturnOrThrowStatement(path, options2, print3);
    case "NewExpression":
    case "ImportExpression":
    case "OptionalCallExpression":
    case "CallExpression":
      return printCallExpression(path, options2, print3);
    case "ObjectExpression":
    case "ObjectPattern":
      return printObject(path, options2, print3);
    case "Property":
      if (isMethod(node)) {
        return printMethod(path, options2, print3);
      }
      return printProperty(path, options2, print3);
    // Babel
    case "ObjectProperty":
      return printProperty(path, options2, print3);
    // Babel
    case "ObjectMethod":
      return printMethod(path, options2, print3);
    case "Decorator":
      return ["@", print3("expression")];
    case "ArrayExpression":
    case "ArrayPattern":
      return printArray(path, options2, print3);
    case "SequenceExpression":
      return printSequenceExpression(path, options2, print3);
    case "ThisExpression":
      return "this";
    case "Super":
      return "super";
    case "Directive":
      return [print3("value"), printSemicolon(options2)];
    case "UnaryExpression": {
      const parts = [node.operator];
      if (/[a-z]$/.test(node.operator)) {
        parts.push(" ");
      }
      const argumentDoc = print3("argument");
      if (hasComment(node.argument)) {
        parts.push(
          group(["(", indent([softline, argumentDoc]), softline, ")"])
        );
      } else {
        parts.push(argumentDoc);
      }
      return parts;
    }
    case "UpdateExpression":
      return [
        node.prefix ? node.operator : "",
        print3("argument"),
        node.prefix ? "" : node.operator
      ];
    case "ConditionalExpression":
      return printTernary(path, options2, print3, args);
    case "VariableDeclaration":
      return printVariableDeclaration(path, options2, print3);
    case "IfStatement":
      return printIfStatement(path, options2, print3);
    case "ForStatement":
      return printForStatement(path, options2, print3);
    case "WithStatement":
    case "WhileStatement":
      return printWhileStatement(path, options2, print3);
    case "DoWhileStatement":
      return printDoWhileStatement(path, options2, print3);
    case "ForInStatement":
    case "ForOfStatement":
      return printForXStatement(path, options2, print3);
    case "DoExpression":
      return [node.async ? "async " : "", "do ", print3("body")];
    case "BreakStatement":
    case "ContinueStatement":
      return [
        node.type === "BreakStatement" ? "break" : "continue",
        node.label ? [" ", print3("label")] : "",
        printSemicolon(options2)
      ];
    case "LabeledStatement":
      return [
        print3("label"),
        `:${node.body.type === "EmptyStatement" && !hasComment(node.body, CommentCheckFlags.Leading) ? "" : " "}`,
        print3("body")
      ];
    case "TryStatement":
      return printTryStatement(path, options2, print3);
    case "CatchClause":
      return printCatchClause(path, options2, print3);
    case "SwitchStatement":
      return printSwitchStatement(path, options2, print3);
    case "SwitchCase":
      return printSwitchCase(path, options2, print3);
    case "DebuggerStatement":
      return ["debugger", printSemicolon(options2)];
    case "ClassDeclaration":
    case "ClassExpression":
      return printClass(path, options2, print3);
    case "ClassMethod":
    case "ClassPrivateMethod":
    case "MethodDefinition":
      return printClassMethod(path, options2, print3);
    case "ClassProperty":
    case "PropertyDefinition":
    case "ClassPrivateProperty":
    case "ClassAccessorProperty":
    case "AccessorProperty":
      return printClassProperty(path, options2, print3);
    case "TemplateElement":
      return replaceEndOfLine(node.value.raw);
    case "TemplateLiteral":
      return printTemplateLiteral(path, options2, print3);
    case "TaggedTemplateExpression":
      return printTaggedTemplateExpression(path, options2, print3);
    case "PrivateIdentifier":
      return ["#", node.name];
    case "PrivateName":
      return ["#", print3("id")];
    // For hack-style pipeline
    case "TopicReference":
      return "%";
    case "ArgumentPlaceholder":
      return "?";
    case "ModuleExpression":
      return ["module ", print3("body")];
    case "VoidPattern":
      return "void";
    case "EmptyStatement":
      if (isMeaningfulEmptyStatement(path)) {
        return ";";
      }
    // Fall through
    case "InterpreterDirective":
    // Printed as comment
    default:
      throw new unexpected_node_error_default(node, "ESTree");
  }
}
 
// src/language-js/print/array-type.js
function printArrayType(print3) {
  return [print3("elementType"), "[]"];
}
 
// src/language-js/print/binary-cast-expression.js
function printBinaryCastExpression(path, options2, print3) {
  const { parent, node, key } = path;
  const isFlowAsConstExpression = node.type === "AsConstExpression";
  const typeAnnotationDoc = isFlowAsConstExpression ? "const" : print3("typeAnnotation");
  const parts = [
    print3("expression"),
    " ",
    isSatisfiesExpression(node) ? "satisfies" : "as",
    " ",
    typeAnnotationDoc
  ];
  if (key === "callee" && isCallOrNewExpression(parent) || key === "object" && isMemberExpression(parent)) {
    return group([indent([softline, ...parts]), softline]);
  }
  return parts;
}
 
// src/language-js/print/component.js
function printComponent(path, options2, print3) {
  const { node } = path;
  const parts = [printDeclareToken(path), "component"];
  if (node.id) {
    parts.push(" ", print3("id"));
  }
  parts.push(print3("typeParameters"));
  const parametersDoc = printFunctionParameters(path, options2, print3);
  if (node.rendersType) {
    parts.push(group([parametersDoc, " ", print3("rendersType")]));
  } else {
    parts.push(group([parametersDoc]));
  }
  if (node.body) {
    parts.push(" ", print3("body"));
  }
  if (node.type === "DeclareComponent") {
    parts.push(printSemicolon(options2));
  }
  return parts;
}
function printComponentParameter(path, options2, print3) {
  const { node } = path;
  if (node.shorthand) {
    return print3("local");
  }
  return [print3("name"), " as ", print3("local")];
}
function printComponentTypeParameter(path, options2, print3) {
  const { node } = path;
  const printed = [];
  if (node.name) {
    printed.push(print3("name"), node.optional ? "?: " : ": ");
  }
  printed.push(print3("typeAnnotation"));
  return printed;
}
 
// src/language-js/print/enum.js
function printFlowEnumBody(path, options2, print3) {
  const { node } = path;
  return [
    node.type === "EnumSymbolBody" || node.explicitType ? `of ${node.type.slice(
      // `Enum`
      4,
      // `Body`
      -4
    ).toLowerCase()} ` : "",
    printObject(path, options2, print3)
  ];
}
function printEnumMember(path, options2, print3) {
  const { node } = path;
  const isTsEnumMember2 = node.type === "TSEnumMember";
  const idDoc = isTsEnumMember2 ? printKey(path, options2, print3) : (
    // Flow only allow identifier
    print3("id")
  );
  const initializerProperty = isTsEnumMember2 ? "initializer" : "init";
  if (!node[initializerProperty]) {
    return idDoc;
  }
  return [idDoc, " = ", print3(initializerProperty)];
}
function printEnumDeclaration(path, print3) {
  const { node } = path;
  return [
    printDeclareToken(path),
    node.const ? "const " : "",
    "enum ",
    print3("id"),
    " ",
    print3("body")
  ];
}
 
// src/language-js/print/function-type.js
function printFunctionType(path, options2, print3) {
  const { node } = path;
  const parts = [
    // `TSConstructorType` only
    printAbstractToken(path)
  ];
  if (node.type === "TSConstructorType" || node.type === "TSConstructSignatureDeclaration") {
    parts.push("new ");
  }
  let parametersDoc = printFunctionParameters(
    path,
    options2,
    print3,
    /* shouldExpandParameters */
    false,
    /* shouldPrintTypeParameters */
    true
  );
  const returnTypeDoc = [];
  if (node.type === "FunctionTypeAnnotation") {
    returnTypeDoc.push(
      isFlowArrowFunctionTypeAnnotation(path) ? " => " : ": ",
      print3("returnType")
    );
  } else {
    returnTypeDoc.push(printTypeAnnotationProperty(path, print3, "returnType"));
  }
  if (shouldGroupFunctionParameters(node, returnTypeDoc)) {
    parametersDoc = group(parametersDoc);
  }
  parts.push(parametersDoc, returnTypeDoc);
  return [
    group(parts),
    node.type === "TSConstructSignatureDeclaration" || node.type === "TSCallSignatureDeclaration" ? printClassMemberSemicolon(path, options2) : ""
  ];
}
function isFlowArrowFunctionTypeAnnotation(path) {
  const { node, parent } = path;
  return node.type === "FunctionTypeAnnotation" && (isFlowObjectTypePropertyAFunction(parent) || !((parent.type === "ObjectTypeProperty" || parent.type === "ObjectTypeInternalSlot") && !parent.variance && !parent.optional && hasSameLocStart(parent, node) || parent.type === "ObjectTypeCallProperty" || path.getParentNode(2)?.type === "DeclareFunction"));
}
 
// src/language-js/print/hook.js
function printDeclareHook(path, options2, print3) {
  return [
    printDeclareToken(path),
    "hook",
    path.node.id ? [" ", print3("id")] : "",
    printSemicolon(options2)
  ];
}
function isDeclareHookTypeAnnotation(path) {
  const { node } = path;
  return node.type === "HookTypeAnnotation" && path.getParentNode(2)?.type === "DeclareHook";
}
function printHookTypeAnnotation(path, options2, print3) {
  const { node } = path;
  const parametersDoc = printFunctionParameters(
    path,
    options2,
    print3,
    /* shouldExpandParameters */
    false,
    /* shouldPrintTypeParameters */
    true
  );
  const returnTypeDoc = [
    isDeclareHookTypeAnnotation(path) ? ": " : " => ",
    print3("returnType")
  ];
  return group([
    isDeclareHookTypeAnnotation(path) ? "" : "hook ",
    shouldGroupFunctionParameters(node, returnTypeDoc) ? group(parametersDoc) : parametersDoc,
    returnTypeDoc
  ]);
}
 
// src/language-js/print/indexed-access-type.js
function printIndexedAccessType(path, options2, print3) {
  return [
    print3("objectType"),
    printOptionalToken(path),
    "[",
    print3("indexType"),
    "]"
  ];
}
 
// src/language-js/print/infer-type.js
function printInferType(path, options2, print3) {
  return ["infer ", print3("typeParameter")];
}
 
// src/language-js/print/intersection-type.js
function printIntersectionType(path, options2, print3) {
  let wasIndented = false;
  return group(
    path.map(({ isFirst, previous, node, index }) => {
      const doc = print3();
      if (isFirst) {
        return doc;
      }
      const currentIsObjectType = isObjectType(node);
      const previousIsObjectType = isObjectType(previous);
      if (previousIsObjectType && currentIsObjectType) {
        return [" & ", wasIndented ? indent(doc) : doc];
      }
      if (
        // If no object is involved, go to the next line if it breaks
        !previousIsObjectType && !currentIsObjectType || hasLeadingOwnLineComment(options2.originalText, node)
      ) {
        if (options2.experimentalOperatorPosition === "start") {
          return indent([line, "& ", doc]);
        }
        return indent([" &", line, doc]);
      }
      if (index > 1) {
        wasIndented = true;
      }
      return [" & ", index > 1 ? indent(doc) : doc];
    }, "types")
  );
}
 
// src/language-js/print/mapped-type.js
function printFlowMappedTypeOptionalModifier(optional) {
  switch (optional) {
    case null:
      return "";
    case "PlusOptional":
      return "+?";
    case "MinusOptional":
      return "-?";
    case "Optional":
      return "?";
  }
}
function printFlowMappedTypeProperty(path, options2, print3) {
  const {
    node
  } = path;
  return [group([node.variance ? print3("variance") : "", group(["[", indent([softline, print3("keyTparam"), " in ", print3("sourceType")]), softline, "]"]), printFlowMappedTypeOptionalModifier(node.optional), ": ", print3("propType")]), printClassMemberSemicolon(path, options2)];
}
function printTypeScriptMappedTypeModifier(tokenNode, keyword) {
  if (tokenNode === "+" || tokenNode === "-") {
    return tokenNode + keyword;
  }
  return keyword;
}
function printTypeScriptMappedType(path, options2, print3) {
  const {
    node
  } = path;
  let shouldBreak = false;
  if (options2.objectWrap === "preserve") {
    const text = stripComments(options2);
    const start = locStart(node) + 1;
    const textAfter = text.slice(start);
    const nextTokenIndex = start + textAfter.search(/\S/);
    if (has_newline_in_range_default(options2.originalText, start, nextTokenIndex)) {
      shouldBreak = true;
    }
  }
  const danglingCommentsDoc = [];
  const danglingComments = getComments(node, CommentCheckFlags.Dangling);
  if (danglingComments.length > 0) {
    const lastComment = method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      danglingComments,
      -1
    );
    const parts = (
      /** @type {Doc[]} */
      printDanglingComments(path, options2)
    );
    danglingCommentsDoc.push(...parts.slice(0, -1), group([method_at_default(
      /* OPTIONAL_OBJECT: false */
      0,
      parts,
      -1
    ), isLineComment(lastComment) || has_newline_default(options2.originalText, locEnd(lastComment)) ? hardline : line]));
  }
  return group(["{", indent([options2.bracketSpacing ? line : softline, ...danglingCommentsDoc, node.readonly ? [printTypeScriptMappedTypeModifier(node.readonly, "readonly"), " "] : "", group(["[", indent([softline, print3("key"), " in ", print3("constraint"), node.nameType ? [" as ", print3("nameType")] : ""]), softline, "]"]), node.optional ? printTypeScriptMappedTypeModifier(node.optional, "?") : "", node.typeAnnotation ? ": " : "", print3("typeAnnotation"), options2.semi ? ifBreak(";") : ""]), options2.bracketSpacing ? line : softline, "}"], {
    shouldBreak
  });
}
 
// src/language-js/print/match.js
function printMatch(path, options2, print3) {
  const { node } = path;
  return [
    group(["match (", indent([softline, print3("argument")]), softline, ")"]),
    " {",
    node.cases.length > 0 ? indent([
      hardline,
      join(
        hardline,
        path.map(
          ({ node: node2, isLast }) => [
            print3(),
            !isLast && isNextLineEmpty2(node2, options2) ? hardline : ""
          ],
          "cases"
        )
      )
    ]) : "",
    hardline,
    "}"
  ];
}
function printMatchCase(path, options2, print3) {
  const { node } = path;
  const comment = hasComment(node, CommentCheckFlags.Dangling) ? [" ", printDanglingComments(path, options2)] : [];
  const body = node.type === "MatchStatementCase" ? [" ", print3("body")] : indent([line, print3("body"), ","]);
  return [
    print3("pattern"),
    node.guard ? group([indent([line, "if (", print3("guard"), ")"])]) : "",
    group([" =>", comment, body])
  ];
}
function printMatchPattern(path, options2, print3) {
  const { node } = path;
  switch (node.type) {
    case "MatchOrPattern":
      return printMatchOrPattern(path, options2, print3);
    case "MatchAsPattern":
      return [print3("pattern"), " as ", print3("target")];
    case "MatchWildcardPattern":
      return ["_"];
    case "MatchLiteralPattern":
      return print3("literal");
    case "MatchUnaryPattern":
      return [node.operator, print3("argument")];
    case "MatchIdentifierPattern":
      return print3("id");
    case "MatchMemberPattern": {
      const property = node.property.type === "Identifier" ? [".", print3("property")] : ["[", indent([softline, print3("property")]), softline, "]"];
      return group([print3("base"), property]);
    }
    case "MatchBindingPattern":
      return [node.kind, " ", print3("id")];
    case "MatchObjectPattern":
    case "MatchInstanceObjectPattern":
      return printMatchObjectPattern(path, options2, print3);
    case "MatchInstancePattern":
      return group([print3("targetConstructor"), " ", print3("properties")]);
    case "MatchArrayPattern": {
      const elements = path.map(print3, "elements");
      if (node.rest) {
        elements.push(print3("rest"));
      }
      return group([
        "[",
        indent([softline, join([",", line], elements)]),
        node.rest ? "" : ifBreak(","),
        softline,
        "]"
      ]);
    }
    case "MatchObjectPatternProperty":
      if (node.shorthand) {
        return print3("pattern");
      }
      return group([print3("key"), ":", indent([line, print3("pattern")])]);
    case "MatchRestPattern": {
      const parts = ["..."];
      if (node.argument) {
        parts.push(print3("argument"));
      }
      return parts;
    }
  }
}
function printMatchObjectPattern(path, options2, print3) {
  const { node } = path;
  const properties = path.map(print3, "properties");
  if (node.rest) {
    properties.push(print3("rest"));
  }
  return group([
    "{",
    indent([softline, join([",", line], properties)]),
    node.rest ? "" : ifBreak(","),
    softline,
    "}"
  ]);
}
var isSimpleMatchPattern = createTypeCheckFunction([
  "MatchWildcardPattern",
  "MatchLiteralPattern",
  "MatchUnaryPattern",
  "MatchIdentifierPattern"
]);
function shouldHugMatchOrPattern(node) {
  const { patterns } = node;
  if (patterns.some((node2) => hasComment(node2))) {
    return false;
  }
  const objectPattern = patterns.find(
    (node2) => node2.type === "MatchObjectPattern"
  );
  if (!objectPattern) {
    return false;
  }
  return patterns.every(
    (node2) => node2 === objectPattern || isSimpleMatchPattern(node2)
  );
}
function shouldHugMatchPattern(node) {
  if (isSimpleMatchPattern(node) || node.type === "MatchObjectPattern") {
    return true;
  }
  if (node.type === "MatchOrPattern") {
    return shouldHugMatchOrPattern(node);
  }
  return false;
}
function printMatchOrPattern(path, options2, print3) {
  const { node } = path;
  const { parent } = path;
  const shouldIndent = parent.type !== "MatchStatementCase" && parent.type !== "MatchExpressionCase" && parent.type !== "MatchArrayPattern" && parent.type !== "MatchObjectPatternProperty" && !hasLeadingOwnLineComment(options2.originalText, node);
  const shouldHug = shouldHugMatchPattern(node);
  const printed = path.map(() => {
    let printedPattern = print3();
    if (!shouldHug) {
      printedPattern = align(2, printedPattern);
    }
    return printComments(path, printedPattern, options2);
  }, "patterns");
  if (shouldHug) {
    return join(" | ", printed);
  }
  const code = [ifBreak(["| "]), join([line, "| "], printed)];
  if (needs_parentheses_default(path, options2)) {
    return group([indent([ifBreak([softline]), code]), softline]);
  }
  if (parent.type === "MatchArrayPattern" && parent.elements.length > 1) {
    return group([
      indent([ifBreak(["(", softline]), code]),
      softline,
      ifBreak(")")
    ]);
  }
  return group(shouldIndent ? indent(code) : code);
}
 
// src/language-js/print/opaque-type.js
function printOpaqueType(path, options2, print3) {
  const { node } = path;
  const parts = [
    printDeclareToken(path),
    "opaque type ",
    print3("id"),
    print3("typeParameters")
  ];
  if (node.supertype) {
    parts.push(": ", print3("supertype"));
  }
  if (node.lowerBound || node.upperBound) {
    const lowerAndUpperBoundParts = [];
    if (node.lowerBound) {
      lowerAndUpperBoundParts.push(
        indent([line, "super ", print3("lowerBound")])
      );
    }
    if (node.upperBound) {
      lowerAndUpperBoundParts.push(
        indent([line, "extends ", print3("upperBound")])
      );
    }
    parts.push(group(lowerAndUpperBoundParts));
  }
  if (node.impltype) {
    parts.push(" = ", print3("impltype"));
  }
  parts.push(printSemicolon(options2));
  return parts;
}
 
// src/language-js/print/rest-type.js
function printRestType(path, options2, print3) {
  const { node } = path;
  return [
    "...",
    ...node.type === "TupleTypeSpreadElement" && node.label ? [print3("label"), ": "] : [],
    print3("typeAnnotation")
  ];
}
 
// src/language-js/print/tuple.js
function printNamedTupleMember(path, options2, print3) {
  const { node } = path;
  return [
    // `TupleTypeLabeledElement` only
    node.variance ? print3("variance") : "",
    print3("label"),
    node.optional ? "?" : "",
    ": ",
    print3("elementType")
  ];
}
 
// src/language-js/print/type-alias.js
function printTypeAlias(path, options2, print3) {
  const { node } = path;
  const parts = [
    printDeclareToken(path),
    "type ",
    print3("id"),
    print3("typeParameters")
  ];
  const rightPropertyName = node.type === "TSTypeAliasDeclaration" ? "typeAnnotation" : "right";
  return [
    printAssignment(path, options2, print3, parts, " =", rightPropertyName),
    printSemicolon(options2)
  ];
}
 
// src/language-js/print/type-parameters.js
function shouldForceTrailingComma(path, options2, paramsKey) {
  const { node } = path;
  return getFunctionParameters(node).length === 1 && node.type.startsWith("TS") && !node[paramsKey][0].constraint && path.parent.type === "ArrowFunctionExpression" && !(options2.filepath && /\.ts$/.test(options2.filepath));
}
function printTypeParameters(path, options2, print3, paramsKey) {
  const { node } = path;
  const parameters = node[paramsKey];
  if (!parameters) {
    return "";
  }
  if (!Array.isArray(parameters)) {
    return print3(paramsKey);
  }
  const isParameterInTestCall = isTestCall(path.grandparent);
  const isArrowFunctionVariable = path.match(
    (node2) => !(node2[paramsKey].length === 1 && isObjectType(node2[paramsKey][0])),
    void 0,
    (node2, name) => name === "typeAnnotation",
    (node2) => node2.type === "Identifier",
    isArrowFunctionVariableDeclarator
  );
  const shouldInline = parameters.length === 0 || !isArrowFunctionVariable && (isParameterInTestCall || parameters.length === 1 && (parameters[0].type === "NullableTypeAnnotation" || shouldHugType(parameters[0]))) && !parameters.some(
    (node2) => hasComment(node2, CommentCheckFlags.Line) || // This condition base on existing one in class-body.js
    // It is not really correct, but we don't have a way to check how comments are printed
    hasComment(
      node2,
      CommentCheckFlags.Last,
      (comment) => has_newline_default(options2.originalText, locEnd(comment))
    )
  );
  if (shouldInline) {
    return [
      "<",
      join(", ", path.map(print3, paramsKey)),
      printDanglingCommentsForInline(path, options2),
      ">"
    ];
  }
  const trailingComma = node.type === "TSTypeParameterInstantiation" ? "" : shouldForceTrailingComma(path, options2, paramsKey) ? "," : printTrailingComma(options2);
  return group([
    "<",
    indent([softline, join([",", line], path.map(print3, paramsKey))]),
    trailingComma,
    softline,
    ">"
  ]);
}
function printDanglingCommentsForInline(path, options2) {
  const { node } = path;
  if (!hasComment(node, CommentCheckFlags.Dangling)) {
    return "";
  }
  const hasOnlyBlockComments = !hasComment(node, CommentCheckFlags.Line);
  const printed = printDanglingComments(path, options2, {
    indent: !hasOnlyBlockComments
  });
  if (hasOnlyBlockComments) {
    return printed;
  }
  return [printed, hardline];
}
function printTypeParameter(path, options2, print3) {
  const { node } = path;
  const parts = [node.const ? "const " : ""];
  const name = node.type === "TSTypeParameter" ? print3("name") : node.name;
  if (node.variance) {
    parts.push(print3("variance"));
  }
  if (node.in) {
    parts.push("in ");
  }
  if (node.out) {
    parts.push("out ");
  }
  parts.push(name);
  if (node.bound) {
    if (node.usesExtendsBound) {
      parts.push(" extends ");
    }
    parts.push(printTypeAnnotationProperty(path, print3, "bound"));
  }
  if (node.constraint) {
    const groupId = /* @__PURE__ */ Symbol("constraint");
    parts.push(
      " extends",
      group(indent(line), { id: groupId }),
      lineSuffixBoundary,
      indentIfBreak(print3("constraint"), { groupId })
    );
  }
  if (node.default) {
    const groupId = /* @__PURE__ */ Symbol("default");
    parts.push(
      " =",
      group(indent(line), { id: groupId }),
      lineSuffixBoundary,
      indentIfBreak(print3("default"), { groupId })
    );
  }
  return group(parts);
}
 
// src/language-js/print/type-predicate.js
function printTypePredicate(path, print3) {
  const { node } = path;
  const prefix = node.type === "TSTypePredicate" && node.asserts ? "asserts " : node.type === "TypePredicate" && node.kind ? `${node.kind} ` : "";
  return [
    prefix,
    print3("parameterName"),
    node.typeAnnotation ? [" is ", printTypeAnnotationProperty(path, print3)] : ""
  ];
}
 
// src/language-js/print/type-query.js
function printTypeQuery({ node }, print3) {
  const argumentPropertyName = node.type === "TSTypeQuery" ? "exprName" : "argument";
  return ["typeof ", print3(argumentPropertyName), print3("typeArguments")];
}
 
// src/language-js/print/flow.js
function printFlow(path, options2, print3, args) {
  const { node } = path;
  if (is_flow_keyword_type_default(node)) {
    return node.type.slice(0, -14).toLowerCase();
  }
  switch (node.type) {
    case "ComponentDeclaration":
    case "DeclareComponent":
    case "ComponentTypeAnnotation":
      return printComponent(path, options2, print3);
    case "ComponentParameter":
      return printComponentParameter(path, options2, print3);
    case "ComponentTypeParameter":
      return printComponentTypeParameter(path, options2, print3);
    case "HookDeclaration":
      return printFunction(path, options2, print3);
    case "DeclareHook":
      return printDeclareHook(path, options2, print3);
    case "HookTypeAnnotation":
      return printHookTypeAnnotation(path, options2, print3);
    case "DeclareFunction":
      return [
        printDeclareToken(path),
        "function ",
        print3("id"),
        print3("predicate"),
        printSemicolon(options2)
      ];
    case "DeclareModule":
      return ["declare module ", print3("id"), " ", print3("body")];
    case "DeclareModuleExports":
      return [
        "declare module.exports",
        printTypeAnnotationProperty(path, print3),
        printSemicolon(options2)
      ];
    case "DeclareNamespace":
      return ["declare namespace ", print3("id"), " ", print3("body")];
    case "DeclareVariable":
      if (Array.isArray(node.declarations)) {
        return printVariableDeclaration(path, options2, print3);
      }
      return [
        printDeclareToken(path),
        // TODO: Only use `node.kind` when babel update AST
        node.kind ?? "var",
        " ",
        print3("id"),
        printSemicolon(options2)
      ];
    case "DeclareExportDeclaration":
    case "DeclareExportAllDeclaration":
      return printExportDeclaration(path, options2, print3);
    case "DeclareOpaqueType":
    case "OpaqueType":
      return printOpaqueType(path, options2, print3);
    case "DeclareTypeAlias":
    case "TypeAlias":
      return printTypeAlias(path, options2, print3);
    case "IntersectionTypeAnnotation":
      return printIntersectionType(path, options2, print3);
    case "UnionTypeAnnotation":
      return printUnionType(path, options2, print3, args);
    case "ConditionalTypeAnnotation":
      return printTernary(path, options2, print3);
    case "InferTypeAnnotation":
      return printInferType(path, options2, print3);
    case "FunctionTypeAnnotation":
      return printFunctionType(path, options2, print3);
    case "TupleTypeAnnotation":
      return printArray(path, options2, print3);
    case "TupleTypeLabeledElement":
      return printNamedTupleMember(path, options2, print3);
    case "TupleTypeSpreadElement":
      return printRestType(path, options2, print3);
    case "GenericTypeAnnotation":
      return [
        print3("id"),
        printTypeParameters(path, options2, print3, "typeParameters")
      ];
    case "IndexedAccessType":
    case "OptionalIndexedAccessType":
      return printIndexedAccessType(path, options2, print3);
    // Type Annotations for Facebook Flow, typically stripped out or
    // transformed away before printing.
    case "TypeAnnotation":
      return printTypeAnnotation(path, options2, print3);
    case "TypeParameter":
      return printTypeParameter(path, options2, print3);
    case "TypeofTypeAnnotation":
      return printTypeQuery(path, print3);
    case "ExistsTypeAnnotation":
      return "*";
    case "ArrayTypeAnnotation":
      return printArrayType(print3);
    case "DeclareEnum":
    case "EnumDeclaration":
      return printEnumDeclaration(path, print3);
    case "EnumBooleanBody":
    case "EnumNumberBody":
    case "EnumBigIntBody":
    case "EnumStringBody":
    case "EnumSymbolBody":
      return printFlowEnumBody(path, options2, print3);
    case "EnumBooleanMember":
    case "EnumNumberMember":
    case "EnumBigIntMember":
    case "EnumStringMember":
    case "EnumDefaultedMember":
      return printEnumMember(path, options2, print3);
    case "FunctionTypeParam": {
      const name = node.name ? print3("name") : path.parent.this === node ? "this" : "";
      return [
        name,
        printOptionalToken(path),
        // `flow` doesn't wrap the `typeAnnotation` with `TypeAnnotation`, so the colon
        // needs to be added separately.
        name ? ": " : "",
        print3("typeAnnotation")
      ];
    }
    case "DeclareClass":
    case "DeclareInterface":
    case "InterfaceDeclaration":
    case "InterfaceTypeAnnotation":
    case "RecordDeclaration":
      return printClass(path, options2, print3);
    case "ObjectTypeAnnotation":
    case "RecordDeclarationBody":
      return printClassBody(path, options2, print3);
    case "ClassImplements":
    case "InterfaceExtends":
      return [print3("id"), print3("typeParameters")];
    case "RecordDeclarationImplements":
      return [print3("id"), print3("typeArguments")];
    case "NullableTypeAnnotation":
      return ["?", print3("typeAnnotation")];
    case "Variance": {
      const { kind } = node;
      noop_default(kind === "plus" || kind === "minus");
      return kind === "plus" ? "+" : "-";
    }
    case "KeyofTypeAnnotation":
      return ["keyof ", print3("argument")];
    case "ObjectTypeCallProperty":
      return [
        node.static ? "static " : "",
        print3("value"),
        printClassMemberSemicolon(path, options2)
      ];
    case "ObjectTypeMappedTypeProperty":
      return printFlowMappedTypeProperty(path, options2, print3);
    case "ObjectTypeIndexer":
      return [
        node.static ? "static " : "",
        node.variance ? print3("variance") : "",
        "[",
        print3("id"),
        node.id ? ": " : "",
        print3("key"),
        "]: ",
        print3("value"),
        printClassMemberSemicolon(path, options2)
      ];
    case "ObjectTypeProperty": {
      let modifier = "";
      if (node.proto) {
        modifier = "proto ";
      } else if (node.static) {
        modifier = "static ";
      }
      return [
        modifier,
        node.kind !== "init" ? node.kind + " " : "",
        node.variance ? print3("variance") : "",
        printKey(path, options2, print3),
        printOptionalToken(path),
        isMethod(node) ? "" : ": ",
        print3("value"),
        printClassMemberSemicolon(path, options2)
      ];
    }
    case "ObjectTypeInternalSlot":
      return [
        node.static ? "static " : "",
        "[[",
        print3("id"),
        "]]",
        printOptionalToken(path),
        node.method ? "" : ": ",
        print3("value"),
        printClassMemberSemicolon(path, options2)
      ];
    // Same as `RestElement`
    case "ObjectTypeSpreadProperty":
      return printRestOrSpreadElement(path, print3);
    case "QualifiedTypeofIdentifier":
    case "QualifiedTypeIdentifier":
      return [print3("qualification"), ".", print3("id")];
    case "NullLiteralTypeAnnotation":
      return "null";
    case "BooleanLiteralTypeAnnotation":
      return String(node.value);
    case "StringLiteralTypeAnnotation":
      return replaceEndOfLine(print_string_default(getRaw(node), options2));
    case "NumberLiteralTypeAnnotation":
      return print_number_default(getRaw(node));
    case "BigIntLiteralTypeAnnotation":
      return printBigInt(getRaw(node));
    case "TypeCastExpression":
      return [
        "(",
        print3("expression"),
        printTypeAnnotationProperty(path, print3),
        ")"
      ];
    case "TypePredicate":
      return printTypePredicate(path, print3);
    case "TypeOperator":
      return [node.operator, " ", print3("typeAnnotation")];
    case "TypeParameterDeclaration":
    case "TypeParameterInstantiation":
      return printTypeParameters(path, options2, print3, "params");
    // Deprecated https://github.com/facebook/flow/commit/b98ae5528d9a073ddc62fc8ce418bbb1f2f80a82
    case "InferredPredicate":
    case "DeclaredPredicate":
      return [
        // The return type will already add the colon, but otherwise we
        // need to do it ourselves
        path.key === "predicate" && path.parent.type !== "DeclareFunction" && !path.parent.returnType ? ": " : " ",
        "%checks",
        ...node.type === "DeclaredPredicate" ? ["(", print3("value"), ")"] : []
      ];
    case "AsExpression":
    case "AsConstExpression":
    case "SatisfiesExpression":
      return printBinaryCastExpression(path, options2, print3);
    case "MatchExpression":
    case "MatchStatement":
      return printMatch(path, options2, print3);
    case "MatchExpressionCase":
    case "MatchStatementCase":
      return printMatchCase(path, options2, print3);
    case "MatchOrPattern":
    case "MatchAsPattern":
    case "MatchWildcardPattern":
    case "MatchLiteralPattern":
    case "MatchUnaryPattern":
    case "MatchIdentifierPattern":
    case "MatchInstancePattern":
    case "MatchInstanceObjectPattern":
    case "MatchMemberPattern":
    case "MatchBindingPattern":
    case "MatchObjectPattern":
    case "MatchObjectPatternProperty":
    case "MatchRestPattern":
    case "MatchArrayPattern":
      return printMatchPattern(path, options2, print3);
    case "RecordExpression":
      return [
        print3("recordConstructor"),
        print3("typeArguments"),
        " ",
        print3("properties")
      ];
    case "RecordExpressionProperties":
      return printObject(path, options2, print3);
    case "RecordDeclarationProperty":
    case "RecordDeclarationStaticProperty": {
      const isStatic = node.type === "RecordDeclarationStaticProperty";
      const valueKey = isStatic ? "value" : "defaultValue";
      return [
        isStatic ? "static " : "",
        printKey(path, options2, print3),
        printTypeAnnotationProperty(path, print3),
        node[valueKey] ? [" = ", print3(valueKey)] : ""
      ];
    }
  }
}
 
// src/language-js/print/ignored.js
function printIgnored(path, options2) {
  const { node } = path;
  let text = options2.originalText.slice(locStart(node), locEnd(node));
  if (options2.semi && shouldIgnoredNodePrintSemicolon(node)) {
    text += ";";
  } else if (shouldExpressionStatementPrintLeadingSemicolon(path, options2)) {
    text = `;${text}`;
  }
  if (node.type === "ClassExpression" && is_non_empty_array_default(node.decorators)) {
    return [indent([softline, text]), softline];
  }
  return text;
}
 
// src/language-js/print/jsx.js
var isEmptyStringOrAnyLine = (doc) => doc === "" || doc === line || doc === hardline || doc === softline;
function printJsxElementInternal(path, options2, print3) {
  const {
    node
  } = path;
  if (node.type === "JSXElement" && isEmptyJsxElement(node)) {
    return [print3("openingElement"), print3("closingElement")];
  }
  const openingLines = node.type === "JSXElement" ? print3("openingElement") : print3("openingFragment");
  const closingLines = node.type === "JSXElement" ? print3("closingElement") : print3("closingFragment");
  if (node.children.length === 1 && node.children[0].type === "JSXExpressionContainer" && (node.children[0].expression.type === "TemplateLiteral" || node.children[0].expression.type === "TaggedTemplateExpression")) {
    return [openingLines, ...path.map(print3, "children"), closingLines];
  }
  node.children = node.children.map((child) => {
    if (isJsxWhitespaceExpression(child)) {
      return {
        type: "JSXText",
        value: " ",
        raw: " "
      };
    }
    return child;
  });
  const containsTag = node.children.some(isJsxElement);
  const containsMultipleExpressions = node.children.filter((child) => child.type === "JSXExpressionContainer").length > 1;
  const containsMultipleAttributes = node.type === "JSXElement" && node.openingElement.attributes.length > 1;
  let forcedBreak = willBreak(openingLines) || containsTag || containsMultipleAttributes || containsMultipleExpressions;
  const isMdxBlock = path.parent.rootMarker === "mdx";
  const rawJsxWhitespace = options2.singleQuote ? "{' '}" : '{" "}';
  const whitespace = isMdxBlock ? line : ifBreak([rawJsxWhitespace, softline], " ");
  const isFacebookTranslationTag = node.openingElement?.name?.name === "fbt";
  const children = printJsxChildren(path, options2, print3, whitespace, isFacebookTranslationTag);
  const containsText = node.children.some((child) => isMeaningfulJsxText(child));
  for (let i = children.length - 2; i >= 0; i--) {
    const isPairOfEmptyStrings = children[i] === "" && children[i + 1] === "";
    const isPairOfHardlines = children[i] === hardline && children[i + 1] === "" && children[i + 2] === hardline;
    const isLineFollowedByJsxWhitespace = (children[i] === softline || children[i] === hardline) && children[i + 1] === "" && children[i + 2] === whitespace;
    const isJsxWhitespaceFollowedByLine = children[i] === whitespace && children[i + 1] === "" && (children[i + 2] === softline || children[i + 2] === hardline);
    const isDoubleJsxWhitespace = children[i] === whitespace && children[i + 1] === "" && children[i + 2] === whitespace;
    const isPairOfHardOrSoftLines = children[i] === softline && children[i + 1] === "" && children[i + 2] === hardline || children[i] === hardline && children[i + 1] === "" && children[i + 2] === softline;
    if (isPairOfHardlines && containsText || isPairOfEmptyStrings || isLineFollowedByJsxWhitespace || isDoubleJsxWhitespace || isPairOfHardOrSoftLines) {
      children.splice(i, 2);
    } else if (isJsxWhitespaceFollowedByLine) {
      children.splice(i + 1, 2);
    }
  }
  while (children.length > 0 && isEmptyStringOrAnyLine(method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    children,
    -1
  ))) {
    children.pop();
  }
  while (children.length > 1 && isEmptyStringOrAnyLine(children[0]) && isEmptyStringOrAnyLine(children[1])) {
    children.shift();
    children.shift();
  }
  const multilineChildren = [""];
  for (const [i, child] of children.entries()) {
    if (child === whitespace) {
      if (i === 1 && isEmptyDoc(children[i - 1])) {
        if (children.length === 2) {
          multilineChildren.push([multilineChildren.pop(), rawJsxWhitespace]);
          continue;
        }
        multilineChildren.push([rawJsxWhitespace, hardline], "");
        continue;
      } else if (i === children.length - 1) {
        multilineChildren.push([multilineChildren.pop(), rawJsxWhitespace]);
        continue;
      } else if (children[i - 1] === "" && children[i - 2] === hardline) {
        multilineChildren.push([multilineChildren.pop(), rawJsxWhitespace]);
        continue;
      }
    }
    if (i % 2 === 0) {
      multilineChildren.push([multilineChildren.pop(), child]);
    } else {
      multilineChildren.push(child, "");
    }
    if (willBreak(child)) {
      forcedBreak = true;
    }
  }
  let content = containsText ? fill(multilineChildren) : group(multilineChildren, {
    shouldBreak: true
  });
  if (options2.cursorNode?.type === "JSXText" && node.children.includes(options2.cursorNode)) {
    content = [cursor, content, cursor];
  } else if (options2.nodeBeforeCursor?.type === "JSXText" && node.children.includes(options2.nodeBeforeCursor)) {
    content = [cursor, content];
  } else if (options2.nodeAfterCursor?.type === "JSXText" && node.children.includes(options2.nodeAfterCursor)) {
    content = [content, cursor];
  }
  if (isMdxBlock) {
    return content;
  }
  const multiLineElem = group([openingLines, indent([hardline, content]), hardline, closingLines]);
  if (forcedBreak) {
    return multiLineElem;
  }
  return conditionalGroup([group([openingLines, ...children, closingLines]), multiLineElem]);
}
function printJsxChildren(path, options2, print3, whitespace, isFacebookTranslationTag) {
  let prevPart = "";
  const parts = [prevPart];
  function push(doc) {
    prevPart = doc;
    parts.push([parts.pop(), doc]);
  }
  function pushLine(doc) {
    if (doc === "") {
      return;
    }
    prevPart = doc;
    parts.push(doc, "");
  }
  path.each(({
    node,
    next
  }) => {
    if (node.type === "JSXText") {
      const text = getRaw(node);
      if (isMeaningfulJsxText(node)) {
        const words = jsxWhitespace.split(
          text,
          /* captureWhitespace */
          true
        );
        if (words[0] === "") {
          words.shift();
          if (/\n/.test(words[0])) {
            pushLine(separatorWithWhitespace(isFacebookTranslationTag, words[1], node, next));
          } else {
            pushLine(whitespace);
          }
          words.shift();
        }
        let endWhitespace;
        if (method_at_default(
          /* OPTIONAL_OBJECT: false */
          0,
          words,
          -1
        ) === "") {
          words.pop();
          endWhitespace = words.pop();
        }
        if (words.length === 0) {
          return;
        }
        for (const [i, word] of words.entries()) {
          if (i % 2 === 1) {
            pushLine(line);
          } else {
            push(word);
          }
        }
        if (endWhitespace !== void 0) {
          if (/\n/.test(endWhitespace)) {
            pushLine(separatorWithWhitespace(isFacebookTranslationTag, prevPart, node, next));
          } else {
            pushLine(whitespace);
          }
        } else {
          pushLine(separatorNoWhitespace(isFacebookTranslationTag, prevPart, node, next));
        }
      } else if (/\n/.test(text)) {
        if (text.match(/\n/g).length > 1) {
          pushLine(hardline);
        }
      } else {
        pushLine(whitespace);
      }
    } else {
      const printedChild = print3();
      push(printedChild);
      const directlyFollowedByMeaningfulText = next && isMeaningfulJsxText(next);
      if (directlyFollowedByMeaningfulText) {
        const trimmed = jsxWhitespace.trim(getRaw(next));
        const [firstWord] = jsxWhitespace.split(trimmed);
        pushLine(separatorNoWhitespace(isFacebookTranslationTag, firstWord, node, next));
      } else {
        pushLine(hardline);
      }
    }
  }, "children");
  return parts;
}
function separatorNoWhitespace(isFacebookTranslationTag, child, childNode, nextNode) {
  if (isFacebookTranslationTag) {
    return "";
  }
  if (childNode.type === "JSXElement" && !childNode.closingElement || nextNode?.type === "JSXElement" && !nextNode.closingElement) {
    return child.length === 1 ? softline : hardline;
  }
  return softline;
}
function separatorWithWhitespace(isFacebookTranslationTag, child, childNode, nextNode) {
  if (isFacebookTranslationTag) {
    return hardline;
  }
  if (child.length === 1) {
    return childNode.type === "JSXElement" && !childNode.closingElement || nextNode?.type === "JSXElement" && !nextNode.closingElement ? hardline : softline;
  }
  return hardline;
}
var isNoWrapParent = createTypeCheckFunction(["ArrayExpression", "JSXAttribute", "JSXElement", "JSXExpressionContainer", "JSXFragment", "ExpressionStatement", "NewExpression", "CallExpression", "OptionalCallExpression", "ConditionalExpression", "JsExpressionRoot", "MatchExpressionCase"]);
function maybeWrapJsxElementInParens(path, elem, options2) {
  const {
    parent
  } = path;
  if (isNoWrapParent(parent)) {
    return elem;
  }
  const shouldBreak = shouldBreakJsxElement(path);
  const needsParens = needs_parentheses_default(path, options2);
  return group([needsParens ? "" : ifBreak("("), indent([softline, elem]), softline, needsParens ? "" : ifBreak(")")], {
    shouldBreak
  });
}
function shouldBreakJsxElement(path) {
  return path.match(void 0, (node, key) => key === "body" && node.type === "ArrowFunctionExpression", (node, key) => key === "arguments" && isCallExpression(node)) && // Babel
  (path.match(void 0, void 0, void 0, (node, key) => key === "expression" && node.type === "JSXExpressionContainer") || // Estree
  path.match(void 0, void 0, void 0, (node, key) => key === "expression" && node.type === "ChainExpression", (node, key) => key === "expression" && node.type === "JSXExpressionContainer"));
}
function printJsxAttribute(path, options2, print3) {
  const {
    node
  } = path;
  const parts = [print3("name")];
  if (node.value) {
    let res;
    if (isStringLiteral(node.value)) {
      const raw = getRaw(node.value);
      let final = method_replace_all_default(
        /* OPTIONAL_OBJECT: false */
        0,
        method_replace_all_default(
          /* OPTIONAL_OBJECT: false */
          0,
          raw.slice(1, -1),
          "&apos;",
          "'"
        ),
        "&quot;",
        '"'
      );
      const quote = getPreferredQuote(final, options2.jsxSingleQuote);
      final = quote === '"' ? method_replace_all_default(
        /* OPTIONAL_OBJECT: false */
        0,
        final,
        '"',
        "&quot;"
      ) : method_replace_all_default(
        /* OPTIONAL_OBJECT: false */
        0,
        final,
        "'",
        "&apos;"
      );
      res = path.call(() => printComments(path, replaceEndOfLine(quote + final + quote), options2), "value");
    } else {
      res = print3("value");
    }
    parts.push("=", res);
  }
  return parts;
}
function printJsxExpressionContainer(path, options2, print3) {
  const {
    node
  } = path;
  const shouldInline = (node2, parent) => node2.type === "JSXEmptyExpression" || !hasComment(node2) && (isArrayExpression(node2) || isObjectExpression(node2) || node2.type === "ArrowFunctionExpression" || node2.type === "AwaitExpression" && (shouldInline(node2.argument, node2) || node2.argument.type === "JSXElement") || isCallExpression(stripChainElementWrappers(node2)) || node2.type === "FunctionExpression" || node2.type === "TemplateLiteral" || node2.type === "TaggedTemplateExpression" || node2.type === "DoExpression" || isJsxElement(parent) && (node2.type === "ConditionalExpression" || isBinaryish(node2)));
  if (shouldInline(node.expression, path.parent)) {
    return group(["{", print3("expression"), lineSuffixBoundary, "}"]);
  }
  return group(["{", indent([softline, print3("expression")]), softline, lineSuffixBoundary, "}"]);
}
function printJsxOpeningElement(path, options2, print3) {
  const {
    node
  } = path;
  const nameHasComments = hasComment(node.name) || hasComment(node.typeArguments);
  if (node.selfClosing && node.attributes.length === 0 && !nameHasComments) {
    return ["<", print3("name"), print3("typeArguments"), " />"];
  }
  if (node.attributes?.length === 1 && isStringLiteral(node.attributes[0].value) && !node.attributes[0].value.value.includes("\n") && // We should break for the following cases:
  // <div
  //   // comment
  //   attr="value"
  // >
  // <div
  //   attr="value"
  //   // comment
  // >
  !nameHasComments && !hasComment(node.attributes[0])) {
    return group(["<", print3("name"), print3("typeArguments"), " ", ...path.map(print3, "attributes"), node.selfClosing ? " />" : ">"]);
  }
  const shouldBreak = node.attributes?.some((attr) => isStringLiteral(attr.value) && attr.value.value.includes("\n"));
  const attributeLine = options2.singleAttributePerLine && node.attributes.length > 1 ? hardline : line;
  return group(["<", print3("name"), print3("typeArguments"), indent(path.map(() => [attributeLine, print3()], "attributes")), ...printEndOfOpeningTag(node, options2, nameHasComments)], {
    shouldBreak
  });
}
function printEndOfOpeningTag(node, options2, nameHasComments) {
  if (node.selfClosing) {
    return [line, "/>"];
  }
  const bracketSameLine = shouldPrintBracketSameLine(node, options2, nameHasComments);
  if (bracketSameLine) {
    return [">"];
  }
  return [softline, ">"];
}
function shouldPrintBracketSameLine(node, options2, nameHasComments) {
  const lastAttrHasTrailingComments = node.attributes.length > 0 && hasComment(method_at_default(
    /* OPTIONAL_OBJECT: false */
    0,
    node.attributes,
    -1
  ), CommentCheckFlags.Trailing);
  return (
    // Simple tags (no attributes and no comment in tag name) should be
    // kept unbroken regardless of `bracketSameLine`.
    // jsxBracketSameLine is deprecated in favour of bracketSameLine,
    // but is still needed for backwards compatibility.
    node.attributes.length === 0 && !nameHasComments || (options2.bracketSameLine || options2.jsxBracketSameLine) && // We should print the bracket in a new line for the following cases:
    // <div
    //   // comment
    // >
    // <div
    //   attr // comment
    // >
    (!nameHasComments || node.attributes.length > 0) && !lastAttrHasTrailingComments
  );
}
function printJsxClosingElement(path, options2, print3) {
  const {
    node
  } = path;
  const parts = ["</"];
  const printed = print3("name");
  if (hasComment(node.name, CommentCheckFlags.Leading | CommentCheckFlags.Line)) {
    parts.push(indent([hardline, printed]), hardline);
  } else if (hasComment(node.name, CommentCheckFlags.Leading | CommentCheckFlags.Block)) {
    parts.push(" ", printed);
  } else {
    parts.push(printed);
  }
  parts.push(">");
  return parts;
}
function printJsxOpeningClosingFragment(path, options2) {
  const {
    node
  } = path;
  const nodeHasComment = hasComment(node);
  const hasOwnLineComment = hasComment(node, CommentCheckFlags.Line);
  const isOpeningFragment = node.type === "JSXOpeningFragment";
  return [isOpeningFragment ? "<" : "</", indent([hasOwnLineComment ? hardline : nodeHasComment && !isOpeningFragment ? " " : "", printDanglingComments(path, options2)]), hasOwnLineComment ? hardline : "", ">"];
}
function printJsxElement(path, options2, print3) {
  const elem = printComments(path, printJsxElementInternal(path, options2, print3), options2);
  return maybeWrapJsxElementInParens(path, elem, options2);
}
function printJsxEmptyExpression(path, options2) {
  const {
    node
  } = path;
  const requiresHardline = hasComment(node, CommentCheckFlags.Line);
  return [printDanglingComments(path, options2, {
    indent: requiresHardline
  }), requiresHardline ? hardline : ""];
}
function printJsxSpreadAttributeOrChild(path, options2, print3) {
  const {
    node
  } = path;
  return ["{", path.call(({
    node: node2
  }) => {
    const printed = ["...", print3()];
    if (!hasComment(node2)) {
      return printed;
    }
    return [indent([softline, printComments(path, printed, options2)]), softline];
  }, node.type === "JSXSpreadAttribute" ? "argument" : "expression"), "}"];
}
function printJsx(path, options2, print3) {
  const {
    node
  } = path;
  if (!node.type.startsWith("JSX")) {
    return;
  }
  switch (node.type) {
    case "JSXAttribute":
      return printJsxAttribute(path, options2, print3);
    case "JSXIdentifier":
      return node.name;
    case "JSXNamespacedName":
      return join(":", [print3("namespace"), print3("name")]);
    case "JSXMemberExpression":
      return join(".", [print3("object"), print3("property")]);
    case "JSXSpreadAttribute":
    case "JSXSpreadChild":
      return printJsxSpreadAttributeOrChild(path, options2, print3);
    case "JSXExpressionContainer":
      return printJsxExpressionContainer(path, options2, print3);
    case "JSXFragment":
    case "JSXElement":
      return printJsxElement(path, options2, print3);
    case "JSXOpeningElement":
      return printJsxOpeningElement(path, options2, print3);
    case "JSXClosingElement":
      return printJsxClosingElement(path, options2, print3);
    case "JSXOpeningFragment":
    case "JSXClosingFragment":
      return printJsxOpeningClosingFragment(
        path,
        options2
        /* , print*/
      );
    case "JSXEmptyExpression":
      return printJsxEmptyExpression(
        path,
        options2
        /* , print*/
      );
    case "JSXText":
      throw new Error("JSXText should be handled by JSXElement");
    default:
      throw new unexpected_node_error_default(node, "JSX");
  }
}
function isEmptyJsxElement(node) {
  if (node.children.length === 0) {
    return true;
  }
  if (node.children.length > 1) {
    return false;
  }
  const child = node.children[0];
  return child.type === "JSXText" && !isMeaningfulJsxText(child);
}
function isJsxWhitespaceExpression(node) {
  return node.type === "JSXExpressionContainer" && isStringLiteral(node.expression) && node.expression.value === " " && !hasComment(node.expression);
}
 
// src/language-js/print/index-signature.js
function printIndexSignature(path, options2, print3) {
  const { node } = path;
  const trailingComma = node.parameters.length > 1 ? printTrailingComma(options2) : "";
  const parametersGroup = group([
    indent([softline, join([", ", softline], path.map(print3, "parameters"))]),
    trailingComma,
    softline
  ]);
  const isClassMember = path.key === "body" && path.parent.type === "ClassBody";
  return [
    // `static` only allowed in class member
    isClassMember && node.static ? "static " : "",
    node.readonly ? "readonly " : "",
    "[",
    node.parameters ? parametersGroup : "",
    "]",
    printTypeAnnotationProperty(path, print3),
    printClassMemberSemicolon(path, options2)
  ];
}
 
// src/language-js/print/js-doc-type.js
function printJSDocType(path, print3, token) {
  const { node } = path;
  return [
    node.postfix ? "" : token,
    printTypeAnnotationProperty(path, print3),
    node.postfix ? token : ""
  ];
}
 
// src/language-js/print/method-signature.js
function printMethodSignature(path, options2, print3) {
  const { node } = path;
  const parts = [];
  const kind = node.kind && node.kind !== "method" ? `${node.kind} ` : "";
  parts.push(
    printTypeScriptAccessibilityToken(node),
    kind,
    printKey(path, options2, print3),
    printOptionalToken(path)
  );
  const parametersDoc = printFunctionParameters(
    path,
    options2,
    print3,
    /* shouldExpandParameters */
    false,
    /* shouldPrintTypeParameters */
    true
  );
  const returnTypeDoc = printTypeAnnotationProperty(path, print3, "returnType");
  const shouldGroupParameters = shouldGroupFunctionParameters(
    node,
    returnTypeDoc
  );
  parts.push(shouldGroupParameters ? group(parametersDoc) : parametersDoc);
  if (node.returnType) {
    parts.push(group(returnTypeDoc));
  }
  return [group(parts), printClassMemberSemicolon(path, options2)];
}
 
// src/language-js/print/module-declaration.js
function printModuleDeclaration(path, options2, print3) {
  const { node } = path;
  return [
    printDeclareToken(path),
    node.kind === "global" ? "" : `${node.kind} `,
    print3("id"),
    node.body ? [" ", group(print3("body"))] : (
      // The semicolon not always needed,
      // but prevent block statement after been parsed as body
      ";"
    )
  ];
}
 
// src/language-js/print/type-assertion.js
function printTypeAssertion(path, options2, print3) {
  const { node } = path;
  const shouldBreakAfterCast = !(isArrayExpression(node.expression) || isObjectExpression(node.expression));
  const castGroup = group([
    "<",
    indent([softline, print3("typeAnnotation")]),
    softline,
    ">"
  ]);
  const exprContents = [
    ifBreak("("),
    indent([softline, print3("expression")]),
    softline,
    ifBreak(")")
  ];
  if (shouldBreakAfterCast) {
    return conditionalGroup([
      [castGroup, print3("expression")],
      [castGroup, group(exprContents, { shouldBreak: true })],
      [castGroup, print3("expression")]
    ]);
  }
  return group([castGroup, print3("expression")]);
}
 
// src/language-js/print/typescript.js
function printTypescript(path, options2, print3, args) {
  const { node } = path;
  if (!node.type.startsWith("TS")) {
    return;
  }
  if (is_ts_keyword_type_default(node)) {
    return node.type.slice(2, -7).toLowerCase();
  }
  switch (node.type) {
    case "TSThisType":
      return "this";
    case "TSTypeAssertion":
      return printTypeAssertion(path, options2, print3);
    case "TSDeclareFunction":
      return printFunction(path, options2, print3);
    case "TSExportAssignment":
      return ["export = ", print3("expression"), printSemicolon(options2)];
    case "TSModuleBlock":
      return printBlock(path, options2, print3);
    case "TSInterfaceBody":
    case "TSTypeLiteral":
      return printClassBody(path, options2, print3);
    case "TSTypeAliasDeclaration":
      return printTypeAlias(path, options2, print3);
    case "TSQualifiedName":
      return [print3("left"), ".", print3("right")];
    case "TSAbstractMethodDefinition":
    case "TSDeclareMethod":
      return printClassMethod(path, options2, print3);
    case "TSAbstractAccessorProperty":
    case "TSAbstractPropertyDefinition":
      return printClassProperty(path, options2, print3);
    case "TSInterfaceHeritage":
    case "TSClassImplements":
    case "TSInstantiationExpression":
      return [print3("expression"), print3("typeArguments")];
    case "TSTemplateLiteralType":
      return printTemplateLiteral(path, options2, print3);
    case "TSNamedTupleMember":
      return printNamedTupleMember(path, options2, print3);
    case "TSRestType":
      return printRestType(path, options2, print3);
    case "TSOptionalType":
      return [print3("typeAnnotation"), "?"];
    case "TSInterfaceDeclaration":
      return printClass(path, options2, print3);
    case "TSTypeParameterDeclaration":
    case "TSTypeParameterInstantiation":
      return printTypeParameters(path, options2, print3, "params");
    case "TSTypeParameter":
      return printTypeParameter(path, options2, print3);
    case "TSAsExpression":
    case "TSSatisfiesExpression":
      return printBinaryCastExpression(path, options2, print3);
    case "TSArrayType":
      return printArrayType(print3);
    case "TSPropertySignature":
      return [
        node.readonly ? "readonly " : "",
        printKey(path, options2, print3),
        printOptionalToken(path),
        printTypeAnnotationProperty(path, print3),
        printClassMemberSemicolon(path, options2)
      ];
    case "TSParameterProperty":
      return [
        printTypeScriptAccessibilityToken(node),
        node.static ? "static " : "",
        node.override ? "override " : "",
        node.readonly ? "readonly " : "",
        print3("parameter")
      ];
    case "TSTypeQuery":
      return printTypeQuery(path, print3);
    case "TSIndexSignature":
      return printIndexSignature(path, options2, print3);
    case "TSTypePredicate":
      return printTypePredicate(path, print3);
    case "TSNonNullExpression":
      return [print3("expression"), "!"];
    case "TSImportType":
      return [
        printCallExpression(path, options2, print3),
        !node.qualifier ? "" : [".", print3("qualifier")],
        printTypeParameters(path, options2, print3, "typeArguments")
      ];
    case "TSLiteralType":
      return print3("literal");
    case "TSIndexedAccessType":
      return printIndexedAccessType(path, options2, print3);
    case "TSTypeOperator":
      return [node.operator, " ", print3("typeAnnotation")];
    case "TSMappedType":
      return printTypeScriptMappedType(path, options2, print3);
    case "TSMethodSignature":
      return printMethodSignature(path, options2, print3);
    case "TSNamespaceExportDeclaration":
      return ["export as namespace ", print3("id"), printSemicolon(options2)];
    case "TSEnumDeclaration":
      return printEnumDeclaration(path, print3);
    case "TSEnumBody":
      return printObject(path, options2, print3);
    case "TSEnumMember":
      return printEnumMember(path, options2, print3);
    case "TSImportEqualsDeclaration":
      return [
        "import ",
        printImportKind(
          node,
          /* spaceBeforeKind */
          false
        ),
        print3("id"),
        " = ",
        print3("moduleReference"),
        printSemicolon(options2)
      ];
    case "TSExternalModuleReference":
      return printCallExpression(path, options2, print3);
    case "TSModuleDeclaration":
      return printModuleDeclaration(path, options2, print3);
    case "TSConditionalType":
      return printTernary(path, options2, print3);
    case "TSInferType":
      return printInferType(path, options2, print3);
    case "TSIntersectionType":
      return printIntersectionType(path, options2, print3);
    case "TSUnionType":
      return printUnionType(path, options2, print3, args);
    case "TSFunctionType":
    case "TSCallSignatureDeclaration":
    case "TSConstructorType":
    case "TSConstructSignatureDeclaration":
      return printFunctionType(path, options2, print3);
    case "TSTupleType":
      return printArray(path, options2, print3);
    case "TSTypeReference":
      return [
        print3("typeName"),
        printTypeParameters(path, options2, print3, "typeArguments")
      ];
    case "TSTypeAnnotation":
      return printTypeAnnotation(path, options2, print3);
    case "TSEmptyBodyFunctionExpression":
      return printMethodValue(path, options2, print3);
    // These are not valid TypeScript. Printing them just for the sake of error recovery.
    case "TSJSDocAllType":
      return "*";
    case "TSJSDocUnknownType":
      return "?";
    case "TSJSDocNullableType":
      return printJSDocType(
        path,
        print3,
        /* token */
        "?"
      );
    case "TSJSDocNonNullableType":
      return printJSDocType(
        path,
        print3,
        /* token */
        "!"
      );
    case "TSParenthesizedType":
    // Removed in `../parse/postprocess.js`
    default:
      throw new unexpected_node_error_default(node, "TypeScript");
  }
}
 
// src/language-js/print/index.js
function printWithoutParentheses(path, options2, print3, args) {
  for (const printer of [
    printAngular,
    printJsx,
    printFlow,
    printTypescript,
    printEstree
  ]) {
    const doc = printer(path, options2, print3, args);
    if (doc !== void 0) {
      return doc;
    }
  }
}
var shouldPrintDirectly = createTypeCheckFunction([
  "ClassMethod",
  "ClassPrivateMethod",
  "ClassProperty",
  "ClassAccessorProperty",
  "AccessorProperty",
  "TSAbstractAccessorProperty",
  "PropertyDefinition",
  "TSAbstractPropertyDefinition",
  "ClassPrivateProperty",
  "MethodDefinition",
  "TSAbstractMethodDefinition",
  "TSDeclareMethod"
]);
function print2(path, options2, print3, args) {
  if (path.isRoot) {
    options2.__onHtmlBindingRoot?.(path.node, options2);
  }
  const { node } = path;
  let doc = is_ignored_default(path) ? printIgnored(path, options2) : printWithoutParentheses(path, options2, print3, args);
  if (!doc) {
    return "";
  }
  if (shouldPrintDirectly(node)) {
    return doc;
  }
  doc = printCommentsForFunction(path, options2, doc);
  const decoratorsDoc = (
    // `ClassExpression` prints own decorators
    node.type !== "ClassExpression" && is_non_empty_array_default(node.decorators) ? printDecorators(path, options2, print3) : ""
  );
  const needsParens = needs_parentheses_default(path, options2);
  if (!decoratorsDoc && !needsParens) {
    return doc;
  }
  return inheritLabel(doc, (doc2) => [
    needsParens ? "(" : "",
    decoratorsDoc ? group([decoratorsDoc, doc2]) : doc2,
    needsParens ? ")" : ""
  ]);
}
function printCommentsForFunction(path, options2, doc) {
  const { node } = path;
  if ((hasComment(node, CommentCheckFlags.Leading) || hasComment(node, CommentCheckFlags.Trailing)) && isIifeCalleeOrTaggedTemplateExpressionTag(path)) {
    return [indent([softline, printComments(path, doc, options2)]), softline];
  }
  return doc;
}
 
// src/language-js/printers.js
var features = {
  // TODO: Make this default behavior
  experimental_avoidAstMutation: true,
  experimental_locForRangeFormat: {
    locStart,
    locEnd: locEndWithFullText
  }
};
var estree = {
  features,
  massageAstNode,
  canAttachComment: can_attach_comment_default,
  handleComments: handle_comments_default,
  isGap: is_gap_default,
  willPrintOwnComments: will_print_own_comments_default,
  embed: embed_default,
  insertPragma,
  printComment: printComment2,
  printPrettierIgnored: print2,
  print: print2,
  getVisitorKeys: get_visitor_keys_default,
  isBlockComment,
  hasPrettierIgnore: is_ignored_default
};
 
// src/language-json/languages.evaluate.js
var languages_evaluate_default2 = [
  {
    "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
  }
];
 
// src/language-json/printers.js
var printers_exports2 = {};
__export(printers_exports2, {
  estree: () => estree,
  "estree-json": () => estreeJsonPrinter
});
 
// src/language-json/visitor-keys.evaluate.js
var visitor_keys_evaluate_default2 = {
  JsonRoot: ["node"],
  ArrayExpression: ["elements"],
  ObjectExpression: ["properties"],
  ObjectProperty: ["key", "value"],
  UnaryExpression: ["argument"],
  NullLiteral: [],
  BooleanLiteral: [],
  StringLiteral: [],
  NumericLiteral: [],
  Identifier: [],
  TemplateLiteral: ["quasis"],
  TemplateElement: []
};
 
// src/language-json/get-visitor-keys.js
var getVisitorKeys2 = create_get_visitor_keys_default(visitor_keys_evaluate_default2);
var get_visitor_keys_default2 = getVisitorKeys2;
 
// src/language-json/utilities.js
function getRaw2(node) {
  return node.extra.raw;
}
 
// src/language-json/massage-ast/index.js
var ignoredProperties2 = /* @__PURE__ */ new Set([
  "start",
  "end",
  "loc",
  "comments",
  "leadingComments",
  "trailingComments",
  "innerComments",
  "errors",
  "range",
  "tokens"
]);
function massageAstNode2(original, cloned) {
  const { type } = original;
  if (type === "ObjectProperty") {
    const { key } = original;
    if (key.type === "Identifier") {
      const { name } = key;
      cloned.key = {
        type: "StringLiteral",
        value: name,
        extra: { rawValue: name }
      };
    } else if (key.type === "NumericLiteral") {
      const raw = getRaw2(key);
      if (String(Number(raw)) === raw) {
        cloned.key = {
          type: "StringLiteral",
          value: raw,
          extra: { rawValue: raw }
        };
      }
    }
  }
  if (type === "StringLiteral") {
    delete cloned.extra.raw;
  }
  if (type === "UnaryExpression" && original.operator === "+") {
    return cloned.argument;
  }
  if (type === "ArrayExpression" || type === "ObjectExpression") {
    cloned.extra ?? (cloned.extra = {});
    if (original.extra?.trailingComma) {
      delete cloned.extra.trailingComma;
    }
  }
  if (type === "ArrayExpression") {
    for (const [index, element] of original.elements.entries()) {
      if (element === null) {
        cloned.elements.splice(index, 0, { type: "NullLiteral" });
      }
    }
    return;
  }
  if (type === "TemplateLiteral") {
    const value = original.quasis[0].value.cooked;
    return {
      type: "StringLiteral",
      value,
      extra: { rawValue: value }
    };
  }
}
massageAstNode2.ignoredProperties = ignoredProperties2;
 
// src/language-json/print/json.js
function printJson(path, options2, print3) {
  const { node } = path;
  switch (node.type) {
    case "JsonRoot":
      return [print3("node"), hardline];
    case "ArrayExpression": {
      if (node.elements.length === 0) {
        return "[]";
      }
      const printed = path.map(
        () => path.node === null ? "null" : print3(),
        "elements"
      );
      return [
        "[",
        indent([hardline, join([",", hardline], printed)]),
        hardline,
        "]"
      ];
    }
    case "ObjectExpression":
      return node.properties.length === 0 ? "{}" : [
        "{",
        indent([
          hardline,
          join([",", hardline], path.map(print3, "properties"))
        ]),
        hardline,
        "}"
      ];
    case "ObjectProperty":
      return [print3("key"), ": ", print3("value")];
    case "UnaryExpression":
      return [node.operator === "+" ? "" : node.operator, print3("argument")];
    case "NullLiteral":
      return "null";
    case "BooleanLiteral":
      return node.value ? "true" : "false";
    case "StringLiteral":
      return print_string_default(getRaw2(node), options2);
    case "NumericLiteral": {
      const raw = getRaw2(node);
      if (isObjectKey(path) && String(Number(raw)) === raw) {
        return `"${raw}"`;
      }
      return raw;
    }
    case "Identifier":
      return isObjectKey(path) ? JSON.stringify(node.name) : node.name;
    case "TemplateLiteral":
      return print3(["quasis", 0]);
    case "TemplateElement":
      return JSON.stringify(node.value.cooked);
    default:
      throw new unexpected_node_error_default(node, "JSON");
  }
}
function isObjectKey(path) {
  return path.key === "key" && path.parent.type === "ObjectProperty";
}
 
// src/language-json/printers.js
var estreeJsonPrinter = {
  massageAstNode: massageAstNode2,
  print: printJson,
  getVisitorKeys: get_visitor_keys_default2
};
 
// src/common/common-options.evaluate.js
var common_options_evaluate_default = {
  "bracketSpacing": {
    "category": "Common",
    "type": "boolean",
    "default": true,
    "description": "Print spaces between brackets.",
    "oppositeDescription": "Do not print spaces between brackets."
  },
  "objectWrap": {
    "category": "Common",
    "type": "choice",
    "default": "preserve",
    "description": "How to wrap object literals.",
    "choices": [
      {
        "value": "preserve",
        "description": "Keep as multi-line, if there is a newline between the opening brace and first property."
      },
      {
        "value": "collapse",
        "description": "Fit to a single line when possible."
      }
    ]
  },
  "singleQuote": {
    "category": "Common",
    "type": "boolean",
    "default": false,
    "description": "Use single quotes instead of double quotes."
  },
  "proseWrap": {
    "category": "Common",
    "type": "choice",
    "default": "preserve",
    "description": "How to wrap prose.",
    "choices": [
      {
        "value": "always",
        "description": "Wrap prose if it exceeds the print width."
      },
      {
        "value": "never",
        "description": "Do not wrap prose."
      },
      {
        "value": "preserve",
        "description": "Wrap prose as-is."
      }
    ]
  },
  "bracketSameLine": {
    "category": "Common",
    "type": "boolean",
    "default": false,
    "description": "Put > of opening tags on the last line instead of on a new line."
  },
  "singleAttributePerLine": {
    "category": "Common",
    "type": "boolean",
    "default": false,
    "description": "Enforce single attribute per line in HTML, Vue and JSX."
  }
};
 
// src/language-js/options.js
var CATEGORY_JAVASCRIPT = "JavaScript";
var options = {
  arrowParens: {
    category: CATEGORY_JAVASCRIPT,
    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: common_options_evaluate_default.bracketSameLine,
  objectWrap: common_options_evaluate_default.objectWrap,
  bracketSpacing: common_options_evaluate_default.bracketSpacing,
  jsxBracketSameLine: {
    category: CATEGORY_JAVASCRIPT,
    type: "boolean",
    description: "Put > on the last line instead of at a new line.",
    deprecated: "2.4.0"
  },
  semi: {
    category: CATEGORY_JAVASCRIPT,
    type: "boolean",
    default: true,
    description: "Print semicolons.",
    oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them."
  },
  experimentalOperatorPosition: {
    category: CATEGORY_JAVASCRIPT,
    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: CATEGORY_JAVASCRIPT,
    type: "boolean",
    default: false,
    description: "Use curious ternaries, with the question mark after the condition.",
    oppositeDescription: "Default behavior of ternaries; keep question marks on the same line as the consequent."
  },
  singleQuote: common_options_evaluate_default.singleQuote,
  jsxSingleQuote: {
    category: CATEGORY_JAVASCRIPT,
    type: "boolean",
    default: false,
    description: "Use single quotes in JSX."
  },
  quoteProps: {
    category: CATEGORY_JAVASCRIPT,
    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: CATEGORY_JAVASCRIPT,
    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: common_options_evaluate_default.singleAttributePerLine
};
var options_default = options;
 
// src/plugins/estree.js
var printers2 = {
  ...printers_exports,
  ...printers_exports2
};
var languages = [...languages_evaluate_default, ...languages_evaluate_default2];
export {
  estree_exports as default,
  languages,
  options_default as options,
  printers2 as printers
};