rosetack 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/deploy/k8s/rosetack.yaml +107 -0
  2. package/dist-cli/compiler.mjs +2783 -0
  3. package/dist-cli/edge.mjs +332 -0
  4. package/dist-cli/rosetack.mjs +4230 -0
  5. package/dist-cli/runtime.mjs +703 -0
  6. package/dist-cli/test.mjs +3202 -0
  7. package/pack.mjs +49 -0
  8. package/package.json +25 -7
  9. package/src/FRAMEWORK_VERSION +1 -1
  10. package/src/cli/edge.ts +67 -25
  11. package/src/cli/index.ts +858 -94
  12. package/src/cli/prompt.ts +127 -0
  13. package/src/cli/shell.ts +133 -30
  14. package/src/cli/test.ts +400 -0
  15. package/src/compiler/errors.ts +74 -0
  16. package/src/compiler/index.ts +1955 -264
  17. package/src/runtime/index.ts +465 -66
  18. package/src/types/rosetack.d.ts +151 -0
  19. package/.github/workflows/ci.yml +0 -72
  20. package/.github/workflows/release.yml +0 -122
  21. package/benchmark.ts +0 -227
  22. package/example/public/favicon.ico +0 -0
  23. package/example/public/logo.svg +0 -148
  24. package/example/public/rose-mark-black.png +0 -0
  25. package/example/public/rose-mark.png +0 -0
  26. package/example/public/rose-mono.png +0 -0
  27. package/example/rosetack.config.js +0 -10
  28. package/example/src/locales/en.json +0 -8
  29. package/example/src/locales/zh.json +0 -8
  30. package/example/src/pages/404.rose +0 -15
  31. package/example/src/pages/500.rose +0 -10
  32. package/example/src/pages/[lang]/about.rose +0 -40
  33. package/example/src/pages/_layout.rose +0 -33
  34. package/example/src/pages/_middleware.rose +0 -37
  35. package/example/src/pages/about.rose +0 -67
  36. package/example/src/pages/admin.rose +0 -27
  37. package/example/src/pages/api/hello.rose +0 -19
  38. package/example/src/pages/api/login.rose +0 -55
  39. package/example/src/pages/api/posts.rose +0 -80
  40. package/example/src/pages/api/secret.rose +0 -14
  41. package/example/src/pages/blog/[id].rose +0 -25
  42. package/example/src/pages/broken.rose +0 -16
  43. package/example/src/pages/fresh.rose +0 -22
  44. package/example/src/pages/garden.rose +0 -27
  45. package/example/src/pages/index.rose +0 -84
  46. package/example/src/pages/sign.rose +0 -45
  47. package/example/src/pages/thorn.rose +0 -23
  48. package/example/src/pages/vault.rose +0 -14
  49. package/go.mod +0 -3
  50. package/main.go +0 -470
  51. package/tools/release-notes.mjs +0 -113
  52. package/tsconfig.json +0 -17
@@ -1,148 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1674 1674">
3
- <defs>
4
- <style>
5
- .cls-1{fill:#560512}
6
- .cls-2{fill:#861230}
7
- .cls-3{fill:#b51837}
8
- .cls-4{fill:#de3b40}
9
- .cls-5{fill:#790b23}
10
- .cls-6{fill:#cf1e27}
11
- .cls-7{fill:#f34649}
12
- .cls-8{fill:#4a0410}
13
- .cls-9{fill:#6b091e}
14
- .cls-10{fill:#61071a}
15
- .cls-11{fill:#a21939}
16
- .cls-12{fill:#de292f}
17
- .cls-13{fill:#550514}
18
- .cls-14{fill:#560515}
19
- .cls-15{fill:#9c163f}
20
- .cls-16{fill:#d21c29}
21
- .cls-17{fill:#de4d56}
22
- .cls-18{fill:#7e0a23}
23
- .cls-19{fill:#de3037}
24
- .cls-20{fill:#f37881}
25
- .cls-21{fill:#000000}
26
- .cls-22{fill:url(#linear-gradient-1)}
27
- </style>
28
- <clipPath id="clip-path-1">
29
- <path d="M681.757 441.157 C681.756 441.157 582.938 460.466 554.333 531.828 C547.622 548.568 544.159 567.437 539.26 584.854 C533.458 605.48 525.997 626.784 522.238 647.935 C519.732 662.04 522.559 678.808 523.233 693.065 C525.224 735.217 527.276 778.074 533.463 819.803 C500.894 785.65 478.936 741.258 455.784 699.86 C449.199 688.085 429.408 652.855 427.603 641.069 C425.594 627.953 428.702 612.321 429.941 599.186 C433.027 566.478 436.726 533.938 441.138 501.424 C443.709 482.473 450.255 414.388 457.902 401.613 C462.474 393.975 470.288 387.4 475.962 380.612 C485.242 369.51 493.923 357.98 503.572 347.144 C505.649 344.812 506.764 341.934 509.233 339.913 C517.721 332.966 529.434 328.767 538.836 323.246 C562.268 309.486 585.249 294.973 608.401 280.709 C707.667 219.553 796.086 211.677 796.086 211.677 C796.086 211.678 681.757 441.157 681.757 441.157 Z"/>
30
- </clipPath>
31
- <clipPath id="clip-path-2">
32
- <path d="M1035.188 288.987 C1079.082 296.781 1124.322 300.044 1168.831 303.741 C1217.147 307.754 1265.568 312.036 1314.016 313.792 C1325.518 338.173 1338.374 361.82 1349.556 386.326 C1356.78 402.16 1363.956 417.964 1371.616 433.529 C1374.242 438.866 1376.563 446.691 1380.606 450.992 C1387.48 458.305 1414.855 469.022 1424.929 474.361 C1451.804 488.605 1478.756 502.913 1506.118 516.012 C1513.965 519.769 1521.361 524.556 1529.369 527.935 C1527.214 544.232 1528.012 561.387 1527.569 577.834 C1526.643 612.188 1526.054 646.551 1525.539 680.913 C1525.309 696.258 1527.476 714.208 1524.668 729.242 C1523.616 734.877 1519.47 740.534 1517.219 745.746 C1506.535 770.482 1494.902 794.61 1481.821 818.024 C1464.189 849.585 1446.296 879.716 1425.183 908.796 C1416.807 920.333 1408.993 932.805 1399.282 943.14 C1381.151 962.434 1358.875 977.971 1338.732 994.765 C1323.19 1007.722 1307.413 1023.52 1289.743 1033.204 C1296.577 999.367 1302.349 965.183 1306.966 930.928 C1308.233 921.523 1311.169 911.896 1311.607 902.419 C1313.604 859.221 1311.641 815.389 1311.641 772.133 C1311.641 757.004 1310.158 740.922 1311.727 725.893 C1313.212 711.681 1326.435 690.85 1329.991 675.284 C1332.057 666.238 1323.129 568.53 1319.55 560.667 C1317.304 555.734 1287.386 531.593 1281.386 526.516 C1263.977 511.788 1248.098 494.367 1229.238 481.608 C1224.764 478.581 1219.425 477.217 1214.616 474.935 C1202.856 469.354 1191.226 463.427 1179.292 458.156 C1174.623 445.905 1167.136 435.014 1160.769 423.748 C1150.108 404.883 1139.593 384.433 1125.338 368.328 C1112.321 353.623 1096.781 340.912 1082.675 327.362 C1072.481 317.57 1060.919 308.046 1049.651 299.631 C1045.343 296.414 1038.08 293.604 1035.188 288.987 Z"/>
33
- </clipPath>
34
- <clipPath id="clip-path-3">
35
- <path d="M1038.735 340.47 C1038.735 340.47 1066.668 362.194 1079.015 374.837 C1094.608 390.805 1120.205 430.14 1128.49 451.391 C1107.592 446.87 1065.942 436.998 1065.942 436.998 C1065.942 436.998 880.015 354.183 875.081 342.852 C949.504 276.335 1038.735 340.47 1038.735 340.47 Z"/>
36
- </clipPath>
37
- <clipPath id="clip-path-4">
38
- <path d="M413.002 1013.45 C406.628 1010.072 401.261 1005.453 395.291 1001.351 C375.576 987.804 356.919 973.826 338.744 958.158 C298.399 923.379 258.456 887.422 223.67 846.005 C210.897 830.797 198.753 815.742 186.757 799.89 C181.755 793.281 173.883 785.629 170.831 777.748 C166.86 767.497 167.96 753.35 167.196 742.404 C165.065 711.891 163.269 681.351 161.349 650.822 C159.584 622.758 157.668 594.707 156.11 566.628 C155.764 560.402 153.057 539.507 155.638 534.757 C157.197 531.886 218.621 501.452 226.781 497.128 C249.296 485.195 272.375 473.475 293.827 459.393 C302.072 453.981 310.244 448.073 318.19 442.178 C321.346 439.836 323.725 436.571 327.365 434.877 C337.621 430.106 350.198 429.245 361.077 426.644 C384.395 421.07 407.989 414.195 431.636 410.474 C424.917 426.455 424.264 447.552 421.559 464.755 C417.116 493.012 410.669 521.936 408.369 550.459 C407.217 564.742 409.332 580.488 406.885 594.504 C405.99 599.632 401.278 604.383 399.284 609.076 C390.867 628.884 381.811 648.418 373.323 668.194 C370.206 675.456 365.548 682.468 363.477 690.165 C360.567 700.983 363.04 740.586 363.04 754.345 L363.04 842.254 C363.04 855.397 361.441 869.822 363.14 882.83 C364.296 891.683 370.271 901.949 373.563 910.2 C382.01 931.373 389.253 953.151 397.883 974.233 C402.879 986.437 410.924 1000.37 413.002 1013.45 Z"/>
39
- </clipPath>
40
- <clipPath id="clip-path-5">
41
- <path d="M986.849 449.791 C991.304 452.277 1017.909 490.834 1022.609 497.833 C1031.435 510.974 1041.44 523.705 1050.884 536.381 C1053.973 540.527 1059.173 546.12 1060.788 551.103 C1062.677 556.929 1061.168 565.695 1061.168 571.84 C1061.168 583.573 1061.855 598.533 1058.272 609.762 C1055.872 617.284 1048.548 624.406 1044.089 630.668 C1028.94 651.94 1014.437 671.894 996.492 690.805 C998.244 668.525 1002.252 646.47 1003.793 624.214 C1011.783 508.819 922.59 526.81 900.322 446.682 L927.909 434.472 C927.909 434.472 966.477 438.418 986.849 449.791 Z"/>
42
- </clipPath>
43
- <clipPath id="clip-path-6">
44
- <path d="M690.815 572.519 C690.46 573.069 654.761 606.273 670.089 681.556 C665.769 678.465 621.516 613.27 620.391 608.094 C617.057 592.747 630.058 532.082 636.551 517 C641.069 506.506 648.614 497.432 654.752 487.938 C657.22 484.12 659.606 477.81 663.24 475.168 C671.825 468.926 679.797 463.292 687.189 458.23 L737.328 427.909 L766.359 421.436 L719.678 530.118 C707.029 548.979 695.702 564.95 690.815 572.519 Z"/>
45
- </clipPath>
46
- <clipPath id="clip-path-7">
47
- <path d="M1048.511 451.391 C1087.534 458.304 1130.369 473.025 1168.632 484.603 C1178.046 487.451 1198.044 491.072 1205.63 496.086 C1210.926 499.587 1229.647 526.622 1234.694 533.492 C1244.201 546.436 1254.473 558.751 1264.03 571.655 C1266.333 574.765 1270.159 577.973 1271.484 581.744 C1274.464 590.225 1273.195 602.9 1273.727 611.928 C1274.789 629.943 1278.048 648.847 1276.952 666.875 C1275.828 685.347 1267.692 713.304 1262.547 731.434 C1260.178 739.78 1225.458 777.17 1217.593 785.507 C1208.546 795.096 1202.399 803.024 1190.185 815.971 C1174.06 833.063 1158.276 850.818 1141.133 866.621 C1136.784 870.63 1133.625 875.038 1128.439 877.945 C1135.856 830.776 1147.627 783.334 1151.665 735.667 C1154.226 705.43 1151.686 673.436 1149.495 643.243 C1148.353 627.502 1147.181 586.624 1142.585 573.808 C1141.007 569.407 1137.359 566.698 1134.749 563.119 C1125.428 550.335 1115.186 537.835 1106.482 524.569 C1099.32 513.655 1056.805 455.251 1048.511 452.803 Z"/>
48
- </clipPath>
49
- <clipPath id="clip-path-8">
50
- <path d="M977.368 591.976 C980.677 599.441 990.776 645.342 989.918 652.583 C989.382 657.104 986.251 659.957 984.729 663.402 C971.862 692.515 953.639 708.346 932.762 721.433 C933.606 716.026 936.687 712.422 938.5 708.047 C943.194 696.717 953.819 670.514 955.245 656.998 C955.965 650.164 951.298 638.71 949.293 631.78 C946.656 622.667 943.852 609.624 939.711 601.618 C907.066 538.506 907.047 508.924 907.047 508.924 C907.047 508.924 959.752 552.239 977.368 591.976 Z"/>
51
- </clipPath>
52
- <clipPath id="clip-path-9">
53
- <path d="M751.641 707.559 C753.576 702.067 737.426 697.451 732.836 684.35 C730.758 678.419 731.991 669.136 731.643 662.288 C731.087 651.356 731.059 640.188 731.516 628.95 C731.619 626.395 731.183 623.801 731.539 621.21 C732.508 614.159 736.748 605.332 739.065 598.453 C743.508 585.258 747.204 569.931 753.556 557.646 C758.547 547.994 769.235 536.7 776.424 529.889 C765.226 529.205 753.538 530.956 742.355 530.338 C739.167 536.819 734.951 542.439 731.231 548.444 C722.559 562.447 713.78 576.434 704.713 590.02 C701.132 595.385 690.537 608.997 688.813 614.512 C687.308 619.326 688.449 625.114 688.336 629.825 C687.823 651.182 688.565 672.324 687.45 693.822 C695.924 699.359 704.092 705.713 712.396 711.595 C714.755 713.266 717.876 717.065 720.803 717.168 C722.838 717.241 725.052 715.733 727.082 715.029 C733.333 712.862 746.136 707.06 751.641 707.559 Z"/>
54
- </clipPath>
55
- <clipPath id="clip-path-10">
56
- <path d="M919.278 835.512 C910.117 820.018 857.688 787.478 840.672 780.199 C842.358 777.427 884.143 764.623 890.419 762.6 C917.226 753.959 943.669 743.706 970.442 734.835 C989.127 728.643 1009.168 723.545 1027.461 716.539 C1035.428 713.487 1048.023 690.278 1052.991 682.152 C1064.455 663.401 1076.834 644.621 1089.299 626.557 C1096.238 616.499 1108.897 599.658 1112.605 588.375 C1114.394 589.698 1113.346 652.909 1113.289 661.249 C1112.747 739.299 1104.595 816.293 1092.502 893.253 C1032.351 915 971.805 936.626 912.813 961.897 C901.882 966.579 850.157 996.997 844.808 997.133 C839.077 997.278 822.215 984.025 816.219 980.728 C789.109 965.818 762.247 950.212 735.58 934.483 C699.885 913.428 663.626 892.787 627.09 873.423 C620.6 869.983 581.765 849.047 579.347 845.486 C576.157 840.786 574.265 791.679 573.597 782.459 C569.194 721.632 567.949 660.681 571.539 599.782 C577.343 603.138 591.64 628.773 596.109 635.989 C609.739 657.994 625.474 679.162 641.05 699.594 C645.653 705.632 649.483 713.925 655.344 718.696 C663.295 725.165 675.885 727.783 685.205 731.412 C696.265 735.718 707.118 741.124 718.027 745.882 C762.306 765.193 806.647 785.817 848.68 810.123 C878.071 827.12 909.618 851.243 933.807 875.644 C946.437 888.386 958.585 902.308 970.868 914.932 C973.834 917.98 975.387 921.88 979.141 924.433 C978.006 918.76 974.675 913.41 972.242 908.253 C965.226 893.378 957.372 879.091 947.451 866.196 C943.817 861.472 939.08 857.736 935.305 853.138 C930.403 847.167 925.766 839.822 919.278 835.512 Z"/>
57
- </clipPath>
58
- <clipPath id="clip-path-11">
59
- <path d="M406.34 712.65 L407.672 712.65 C410.271 722.543 435.634 757.58 442.765 767.691 C455.057 785.119 466.381 803.659 479.468 820.423 C496.712 842.511 516.549 863.276 530.98 887.674 C595.91 916.991 662.962 941.111 728.498 968.931 C749.407 977.807 770.098 987.607 790.33 998.073 C799.689 1002.915 809.167 1010.601 819.254 1013.424 L819.355 1016.165 C809.821 1019.582 780.092 1045.052 772.898 1053.564 C764.923 1063.001 758.919 1074.957 752.007 1085.293 C734.248 1111.852 714.737 1137.793 700.888 1167.152 C663.882 1159.154 627.288 1146.847 590.631 1137.133 C582.693 1135.03 549.006 1128.556 544.509 1125.116 C539.008 1120.909 534.758 1111.401 530.902 1105.51 C520.723 1089.961 510.465 1074.456 500.251 1058.896 C475.965 1021.897 459.949 979.405 444.384 937.573 C439.153 923.514 431.726 909.414 428.366 894.679 C414.863 835.455 413.442 772.871 406.34 712.65 Z"/>
60
- </clipPath>
61
- <clipPath id="clip-path-12">
62
- <path d="M1401.572 1062.878 L1401.572 1062.878 C1388.724 1069.691 1379.66 1084.828 1344.964 1107.629 C1308.262 1131.748 1271.31 1155.07 1233.532 1177.388 C1223.033 1183.59 1212.167 1193.754 1200.465 1197.018 C1206.19 1186.436 1219.753 1172.343 1227.39 1161.912 C1238.666 1146.51 1249.632 1130.722 1260.753 1115.232 C1266.521 1107.197 1272.298 1096.459 1279.481 1089.941 C1318.283 1054.73 1364.21 1028.247 1402.355 992.091 C1416.804 978.396 1430.184 962.777 1443.078 947.612 C1446.908 943.109 1451.707 939.337 1455.214 934.546 C1477.651 903.899 1494.326 867.656 1510.609 833.137 C1517.307 818.937 1525.736 805.289 1530.956 790.401 C1549.333 802.91 1565.15 819.711 1582.861 833.269 C1586.909 836.368 1601.711 845.73 1603.939 848.83 C1610.564 858.049 1613.991 872.549 1618.041 883.258 C1628.179 910.065 1638.668 936.701 1648.626 963.599 C1653.25 976.089 1674.965 1026.144 1673.967 1036.049 C1673.71 1038.592 1645.499 1054.326 1641.22 1056.612 C1616.769 1069.676 1593.504 1085.587 1569.498 1099.54 C1564.988 1102.161 1548.13 1109.648 1545.655 1112.848 C1541.955 1117.634 1540.186 1125.696 1537.792 1131.319 C1530.179 1149.202 1522.758 1167.169 1515.125 1185.024 C1494.543 1233.167 1473.233 1280.967 1453.122 1329.331 C1447.007 1344.039 1440.363 1358.553 1434.382 1373.325 C1431.374 1380.754 1429.623 1389.94 1425.539 1396.763 C1424.532 1398.446 1390.696 1418.781 1385.783 1422.325 C1365.019 1437.302 1342.559 1449.735 1321.8 1464.715 C1307.009 1475.388 1291.795 1485.316 1276.748 1495.61 C1272.404 1498.581 1266.868 1503.764 1261.928 1505.296 C1253.989 1507.759 1233.841 1499.986 1225.121 1498.137 C1192.449 1491.211 1160.159 1482.797 1127.753 1474.716 C1054.966 1456.566 981.852 1439.628 909.168 1420.955 C875.453 1412.294 841.669 1403.317 807.64 1396.076 C797.336 1393.884 787.27 1390.216 776.785 1389.105 L776.721 1387.754 C860.981 1362.045 944.637 1333.534 1029.255 1309.131 C1063.943 1299.128 1098.387 1288.208 1133.046 1278.1 C1142.771 1275.264 1152.407 1271.952 1162.175 1269.305 C1168.918 1267.478 1176.753 1266.545 1183.061 1263.402 C1193.639 1258.132 1202.992 1247.746 1212.355 1240.333 C1230.259 1226.16 1248.699 1212.09 1267.38 1199.072 C1280.739 1189.762 1301.056 1177.895 1312.777 1167.494 C1331.802 1150.613 1350.283 1125.12 1367.27 1105.625 C1373.474 1098.506 1399.758 1069.783 1401.572 1062.878 Z"/>
63
- </clipPath>
64
- <clipPath id="clip-path-13">
65
- <path d="M1274.909 794.608 C1265.761 843.851 1258.847 893.525 1249.311 942.711 C1244.616 966.927 1237.806 990.634 1232.804 1014.74 C1228.001 1037.886 1221.511 1060.462 1215.585 1083.279 C1213.06 1093.001 1211.515 1105.156 1206.884 1113.993 C1202.337 1122.667 1193.999 1130.724 1187.579 1137.913 C1116.798 1217.175 1128.933 1221.799 1103.664 1237.647 C1091.426 1245.322 1061.186 1251.192 1046.136 1256.484 C1024.889 1263.954 1003.173 1270.176 981.713 1276.925 C972.562 1279.803 960.921 1286.265 951.262 1285.241 C945.622 1284.643 938.006 1276.7 933.114 1273.628 C917.178 1263.619 901.126 1253.085 884.551 1244.301 C858.526 1230.508 832.535 1216.819 805.288 1205.984 C779.97 1195.915 753.172 1188.009 728.662 1175.903 C733.361 1161.115 744 1149.929 753.735 1138.754 C778.506 1110.321 798.164 1093.586 828.415 1072.066 C851.544 1055.613 873.982 1037.709 899.227 1024.792 C909.641 1019.463 921.378 1015.906 932.314 1011.898 C953.081 1004.285 973.887 996.827 994.847 989.799 C1026.825 979.076 1058.45 966.866 1090.274 955.622 C1110.089 948.621 1129.682 941.227 1149.485 934.23 C1159.475 930.701 1171.028 928.221 1180.365 923.06 C1189.059 918.255 1205.109 889.869 1212.072 880.473 C1227.368 859.834 1243.384 839.651 1258.154 818.574 C1262.508 812.361 1269.341 798.657 1274.909 794.608 Z"/>
66
- </clipPath>
67
- <clipPath id="clip-path-14">
68
- <path d="M459.632 1101.007 L414.171 1083.361 L328.205 1044.062 L293.094 1023.336 L291.762 1021.923 L293.094 1023.336 L311.784 1043.853 L352.23 1082.117 L401.089 1109.548 L448.945 1136.319 L489.033 1158.119 L517.414 1165.748 L577.657 1181.013 L757.559 1228.699 L875.252 1274.054 L911.394 1291.077 L920.498 1295.862 L920.61 1298.594 L837.45 1323.557 L647.984 1376.962 L551.095 1400.946 L504.535 1398.957 L430.689 1394.978 L341.814 1391.768 L311.97 1390.894 L270.611 1336.423 L179.719 1217.278 L160.613 1191.494 L116.062 1173.323 L48.882 1150.526 L0 1134.818 L16.765 1087.776 L68.698 950.864 L83.364 912.705 L93.533 886.793 L113.882 873.225 L148.97 850.325 L174.413 832.487 L175.486 832.355 L210.611 877.242 L259.246 934.16 L266.19 940.478 L310.166 986.923 L340.58 1008.352 L419.799 1063.499 Z"/>
69
- </clipPath>
70
- <clipPath id="clip-path-15">
71
- <path d="M667.142 1420.903 C685.157 1417.102 726.007 1401.825 741.789 1404.044 C755.415 1405.959 780.577 1419.304 794.273 1425.133 C827.461 1439.256 860.779 1453.127 893.869 1467.511 C914.512 1476.486 934.729 1487.506 955.904 1495.011 C949.834 1501.476 940.049 1512.281 931.668 1515.13 C923.352 1517.957 906.021 1515.491 896.776 1515.491 L792.189 1515.491 C782.593 1515.491 742.847 1516.767 736.467 1513.165 C728.408 1508.616 721.264 1501.982 713.495 1496.891 C686.526 1479.219 660.412 1460.041 633.478 1442.32 C626.435 1437.686 619.665 1429.632 611.515 1427.228 C611.515 1420.691 642.405 1426.122 667.142 1420.903 Z"/>
72
- </clipPath>
73
- <linearGradient id="linear-gradient-1" x1="783.7" y1="436" x2="895.7" y2="436" gradientUnits="userSpaceOnUse">
74
- <stop offset="0" stop-color="#4d4a52"/>
75
- <stop offset="0.45" stop-color="#4d4a52"/>
76
- <stop offset="0.45" stop-color="#2b2a2d"/>
77
- <stop offset="1" stop-color="#2b2a2d"/>
78
- </linearGradient>
79
- </defs>
80
- <title>Artboard 1</title>
81
- <g id="Layer_1" data-name="Layer 1">
82
- <path d="M681.757 441.157 C681.756 441.157 582.938 460.466 554.333 531.828 C547.622 548.568 544.159 567.437 539.26 584.854 C533.458 605.48 525.997 626.784 522.238 647.935 C519.732 662.04 522.559 678.808 523.233 693.065 C525.224 735.217 527.276 778.074 533.463 819.803 C500.894 785.65 478.936 741.258 455.784 699.86 C449.199 688.085 429.408 652.855 427.603 641.069 C425.594 627.953 428.702 612.321 429.941 599.186 C433.027 566.478 436.726 533.938 441.138 501.424 C443.709 482.473 450.255 414.388 457.902 401.613 C462.474 393.975 470.288 387.4 475.962 380.612 C485.242 369.51 493.923 357.98 503.572 347.144 C505.649 344.812 506.764 341.934 509.233 339.913 C517.721 332.966 529.434 328.767 538.836 323.246 C562.268 309.486 585.249 294.973 608.401 280.709 C707.667 219.553 796.086 211.677 796.086 211.677 C796.086 211.678 681.757 441.157 681.757 441.157 Z" class="cls-1"/>
83
- <g clip-path="url(#clip-path-1)">
84
- <path d="M592.567 418.927 C592.567 418.927 529.31 443.909 505.627 508.745 C500.072 523.955 496.369 540.762 491.889 556.417 C486.583 574.955 480.186 594.224 476.113 613.055 C473.397 625.613 473.792 640.068 473.048 652.5 C470.848 689.255 468.629 726.622 469.083 762.664 C451.544 735.412 441.463 698.326 430.393 663.959 C427.244 654.184 417.768 624.945 417.604 614.77 C417.421 603.447 420.638 589.502 422.484 577.897 C427.081 548.999 432.048 520.197 437.456 491.361 C440.609 474.553 450.255 414.388 456.071 402.575 C459.549 395.512 464.963 389.115 469.059 382.707 C475.758 372.226 482.118 361.419 489.026 351.14 C490.513 348.928 491.443 346.316 493.15 344.345 C499.015 337.567 506.669 332.934 512.988 327.33 C528.738 313.365 544.267 298.777 559.883 284.394 C626.837 222.726 682.67 208.608 682.67 208.608 Z" class="cls-2"/>
85
- </g>
86
- <path d="M1035.188 288.987 C1079.082 296.781 1124.322 300.044 1168.831 303.741 C1217.147 307.754 1265.568 312.036 1314.016 313.792 C1325.518 338.173 1338.374 361.82 1349.556 386.326 C1356.78 402.16 1363.956 417.964 1371.616 433.529 C1374.242 438.866 1376.563 446.691 1380.606 450.992 C1387.48 458.305 1414.855 469.022 1424.929 474.361 C1451.804 488.605 1478.756 502.913 1506.118 516.012 C1513.965 519.769 1521.361 524.556 1529.369 527.935 C1527.214 544.232 1528.012 561.387 1527.569 577.834 C1526.643 612.188 1526.054 646.551 1525.539 680.913 C1525.309 696.258 1527.476 714.208 1524.668 729.242 C1523.616 734.877 1519.47 740.534 1517.219 745.746 C1506.535 770.482 1494.902 794.61 1481.821 818.024 C1464.189 849.585 1446.296 879.716 1425.183 908.796 C1416.807 920.333 1408.993 932.805 1399.282 943.14 C1381.151 962.434 1358.875 977.971 1338.732 994.765 C1323.19 1007.722 1307.413 1023.52 1289.743 1033.204 C1296.577 999.367 1302.349 965.183 1306.966 930.928 C1308.233 921.523 1311.169 911.896 1311.607 902.419 C1313.604 859.221 1311.641 815.389 1311.641 772.133 C1311.641 757.004 1310.158 740.922 1311.727 725.893 C1313.212 711.681 1326.435 690.85 1329.991 675.284 C1332.057 666.238 1323.129 568.53 1319.55 560.667 C1317.304 555.734 1287.386 531.593 1281.386 526.516 C1263.977 511.788 1248.098 494.367 1229.238 481.608 C1224.764 478.581 1219.425 477.217 1214.616 474.935 C1202.856 469.354 1191.226 463.427 1179.292 458.156 C1174.623 445.905 1167.136 435.014 1160.769 423.748 C1150.108 404.883 1139.593 384.433 1125.338 368.328 C1112.321 353.623 1096.781 340.912 1082.675 327.362 C1072.481 317.57 1060.919 308.046 1049.651 299.631 C1045.343 296.414 1038.08 293.604 1035.188 288.987 Z" class="cls-3"/>
87
- <g clip-path="url(#clip-path-2)">
88
- <path d="M1185.195 270.754 C1214.329 282.112 1243.847 289.739 1272.941 297.658 C1304.522 306.255 1336.2 315.093 1367.625 321.773 C1377.648 343.854 1388.465 365.452 1398.294 387.606 C1404.645 401.919 1410.961 416.203 1417.563 430.333 C1419.827 435.178 1422.16 442.118 1425.226 446.229 C1430.44 453.218 1449.237 465.31 1456.303 470.953 C1475.153 486.008 1494.06 501.125 1513.103 515.253 C1518.564 519.304 1523.845 524.189 1529.369 527.935 C1529.722 541.642 1532.07 556.399 1533.542 570.418 C1536.617 599.7 1539.911 629.025 1543.252 658.358 C1544.744 671.457 1548.06 687.04 1547.856 699.597 C1547.78 704.304 1545.712 708.698 1544.817 712.915 C1540.573 732.928 1535.651 752.319 1529.72 770.946 C1521.725 796.053 1513.409 819.91 1502.905 842.523 C1498.737 851.494 1495.032 861.326 1489.875 869.126 C1480.248 883.688 1467.546 894.596 1456.353 906.805 C1447.717 916.225 1439.234 928.05 1428.876 934.443 C1429.665 906.235 1429.733 877.616 1429.048 848.814 C1428.86 840.906 1429.724 832.987 1428.993 824.928 C1425.663 788.197 1419.712 750.501 1415.088 713.507 C1413.471 700.569 1410.796 686.656 1410.201 673.97 C1409.639 661.974 1415.938 645.573 1416.567 632.64 C1416.932 625.125 1400.731 540.608 1397.583 533.5 C1395.608 529.041 1373.737 505.197 1369.326 500.214 C1356.526 485.757 1344.426 469.16 1330.902 456.232 C1327.694 453.166 1324.105 451.428 1320.761 448.963 C1312.582 442.933 1304.449 436.62 1296.191 430.837 C1291.872 419.861 1285.88 409.745 1280.57 399.43 C1271.68 382.157 1262.715 363.543 1251.801 348.246 C1241.837 334.278 1230.458 321.746 1219.915 308.65 C1212.296 299.186 1203.823 289.805 1195.658 281.404 C1192.536 278.192 1187.553 275.012 1185.195 270.754 Z" class="cls-4"/>
89
- </g>
90
- <path d="M1038.735 340.47 C1038.735 340.47 1066.668 362.194 1079.015 374.837 C1094.608 390.805 1120.205 430.14 1128.49 451.391 C1107.592 446.87 1065.942 436.998 1065.942 436.998 C1065.942 436.998 880.015 354.183 875.081 342.852 C949.504 276.335 1038.735 340.47 1038.735 340.47 Z" class="cls-5"/>
91
- <g clip-path="url(#clip-path-3)">
92
- <path d="M1011.958 364.012 C1011.958 364.012 1038.046 381.635 1049.939 391.427 C1064.959 403.793 1091.173 432.734 1100.671 447.711 C1082.547 442.252 1046.323 430.803 1046.323 430.803 C1046.323 430.803 880.015 354.183 874.516 346.136 C929.245 311.181 1011.958 364.012 1011.958 364.012 Z" class="cls-3"/>
93
- </g>
94
- <path d="M413.002 1013.45 C406.628 1010.072 401.261 1005.453 395.291 1001.351 C375.576 987.804 356.919 973.826 338.744 958.158 C298.399 923.379 258.456 887.422 223.67 846.005 C210.897 830.797 198.753 815.742 186.757 799.89 C181.755 793.281 173.883 785.629 170.831 777.748 C166.86 767.497 167.96 753.35 167.196 742.404 C165.065 711.891 163.269 681.351 161.349 650.822 C159.584 622.758 157.668 594.707 156.11 566.628 C155.764 560.402 153.057 539.507 155.638 534.757 C157.197 531.886 218.621 501.452 226.781 497.128 C249.296 485.195 272.375 473.475 293.827 459.393 C302.072 453.981 310.244 448.073 318.19 442.178 C321.346 439.836 323.725 436.571 327.365 434.877 C337.621 430.106 350.198 429.245 361.077 426.644 C384.395 421.07 407.989 414.195 431.636 410.474 C424.917 426.455 424.264 447.552 421.559 464.755 C417.116 493.012 410.669 521.936 408.369 550.459 C407.217 564.742 409.332 580.488 406.885 594.504 C405.99 599.632 401.278 604.383 399.284 609.076 C390.867 628.884 381.811 648.418 373.323 668.194 C370.206 675.456 365.548 682.468 363.477 690.165 C360.567 700.983 363.04 740.586 363.04 754.345 L363.04 842.254 C363.04 855.397 361.441 869.822 363.14 882.83 C364.296 891.683 370.271 901.949 373.563 910.2 C382.01 931.373 389.253 953.151 397.883 974.233 C402.879 986.437 410.924 1000.37 413.002 1013.45 Z" class="cls-6"/>
95
- <g clip-path="url(#clip-path-4)">
96
- <path d="M315.752 969.351 C311.877 966.225 308.589 961.997 304.947 958.225 C292.917 945.768 281.518 932.938 270.385 918.596 C245.67 886.758 221.181 853.867 199.714 816.137 C191.831 802.282 184.328 788.574 176.903 774.152 C173.807 768.139 168.974 761.147 167.031 754.018 C164.504 744.743 164.969 732.035 164.358 722.18 C162.656 694.708 161.154 667.218 159.578 639.734 C158.13 614.47 156.591 589.216 155.266 563.941 C154.972 558.337 153.057 539.507 154.541 535.271 C155.438 532.711 191.91 506.19 196.752 502.414 C210.11 491.993 223.81 481.773 236.5 469.405 C241.377 464.652 246.204 459.451 250.895 454.259 C252.758 452.197 254.142 449.294 256.305 447.821 C262.399 443.671 269.941 443.071 276.439 440.883 C290.368 436.192 304.444 430.336 318.596 427.317 C314.782 441.596 314.681 460.562 313.295 475.996 C311.017 501.347 307.546 527.272 306.559 552.892 C306.065 565.721 307.553 579.912 306.278 592.484 C305.811 597.083 303.047 601.291 301.914 605.483 C297.132 623.182 291.964 640.624 287.139 658.293 C285.368 664.78 282.667 671.022 281.53 677.917 C279.931 687.605 281.965 723.257 282.156 735.631 L283.373 814.693 C283.555 826.513 282.794 839.464 283.995 851.187 C284.812 859.165 288.542 868.48 290.634 875.947 C296.001 895.106 300.653 914.792 306.128 933.872 C309.298 944.917 314.323 957.559 315.752 969.351 Z" class="cls-7"/>
97
- </g>
98
- <path d="M986.849 449.791 C991.304 452.277 1017.909 490.834 1022.609 497.833 C1031.435 510.974 1041.44 523.705 1050.884 536.381 C1053.973 540.527 1059.173 546.12 1060.788 551.103 C1062.677 556.929 1061.168 565.695 1061.168 571.84 C1061.168 583.573 1061.855 598.533 1058.272 609.762 C1055.872 617.284 1048.548 624.406 1044.089 630.668 C1028.94 651.94 1014.437 671.894 996.492 690.805 C998.244 668.525 1002.252 646.47 1003.793 624.214 C1011.783 508.819 922.59 526.81 900.322 446.682 L927.909 434.472 C927.909 434.472 966.477 438.418 986.849 449.791 Z" class="cls-8"/>
99
- <g clip-path="url(#clip-path-5)">
100
- <path d="M1004.569 455.808 C1007.614 458.378 1027.989 494.31 1031.606 500.82 C1038.397 513.044 1045.896 525.021 1053.035 536.899 C1055.37 540.784 1059.173 546.12 1060.654 550.595 C1062.386 555.828 1062.243 563.298 1062.811 568.633 C1063.896 578.818 1065.713 591.869 1064.487 601.286 C1063.665 607.595 1059.696 613.1 1057.457 618.124 C1049.851 635.191 1042.532 651.173 1032.941 665.932 C1031.989 646.752 1032.483 627.975 1031.399 608.797 C1025.781 509.357 971.085 516.731 949.608 445.111 L965.91 437.061 C965.91 437.061 990.645 444.052 1004.569 455.808 Z" class="cls-9"/>
101
- </g>
102
- <path d="M690.815 572.519 C690.46 573.069 654.761 606.273 670.089 681.556 C665.769 678.465 621.516 613.27 620.391 608.094 C617.057 592.747 630.058 532.082 636.551 517 C641.069 506.506 648.614 497.432 654.752 487.938 C657.22 484.12 659.606 477.81 663.24 475.168 C671.825 468.926 679.797 463.292 687.189 458.23 L737.328 427.909 L766.359 421.436 L719.678 530.118 C707.029 548.979 695.702 564.95 690.815 572.519 Z" class="cls-8"/>
103
- <g clip-path="url(#clip-path-6)">
104
- <path d="M664.703 563.148 C664.442 563.658 639.842 595.544 643.734 660.665 C641.286 658.267 618.715 604.179 618.404 599.707 C617.48 586.447 630.058 532.082 635.206 518.323 C638.788 508.75 644.141 500.201 648.653 491.387 C650.467 487.843 652.415 482.111 654.865 479.515 C660.651 473.381 666.012 467.828 670.971 462.822 L704.306 432.398 L722.782 424.538 L685.752 523.677 C676.507 541.22 668.296 556.121 664.703 563.148 Z" class="cls-10"/>
105
- </g>
106
- <path d="M1048.511 451.391 C1087.534 458.304 1130.369 473.025 1168.632 484.603 C1178.046 487.451 1198.044 491.072 1205.63 496.086 C1210.926 499.587 1229.647 526.622 1234.694 533.492 C1244.201 546.436 1254.473 558.751 1264.03 571.655 C1266.333 574.765 1270.159 577.973 1271.484 581.744 C1274.464 590.225 1273.195 602.9 1273.727 611.928 C1274.789 629.943 1278.048 648.847 1276.952 666.875 C1275.828 685.347 1267.692 713.304 1262.547 731.434 C1260.178 739.78 1225.458 777.17 1217.593 785.507 C1208.546 795.096 1202.399 803.024 1190.185 815.971 C1174.06 833.063 1158.276 850.818 1141.133 866.621 C1136.784 870.63 1133.625 875.038 1128.439 877.945 C1135.856 830.776 1147.627 783.334 1151.665 735.667 C1154.226 705.43 1151.686 673.436 1149.495 643.243 C1148.353 627.502 1147.181 586.624 1142.585 573.808 C1141.007 569.407 1137.359 566.698 1134.749 563.119 C1125.428 550.335 1115.186 537.835 1106.482 524.569 C1099.32 513.655 1056.805 455.251 1048.511 452.803 Z" class="cls-11"/>
107
- <g clip-path="url(#clip-path-7)">
108
- <path d="M1134.669 459.601 C1158.359 466.843 1184.552 481.195 1207.908 492.604 C1213.655 495.411 1225.797 499.193 1230.5 503.895 C1233.783 507.177 1245.778 531.943 1249.001 538.244 C1255.072 550.115 1261.586 561.442 1267.686 573.279 C1269.156 576.132 1271.546 579.113 1272.444 582.533 C1274.464 590.225 1274.036 601.569 1274.597 609.687 C1275.715 625.885 1278.18 642.941 1277.999 659.094 C1277.813 675.646 1273.654 700.525 1271.036 716.661 C1269.831 724.091 1249.91 756.731 1245.394 764.005 C1240.199 772.373 1236.707 779.325 1229.693 790.622 C1220.434 805.536 1211.398 821.054 1201.491 834.785 C1198.978 838.267 1197.193 842.14 1194.146 844.612 C1197.36 802.468 1203.191 760.196 1204.357 717.516 C1205.097 690.443 1202.717 661.656 1200.595 634.496 C1199.489 620.336 1197.697 583.611 1194.588 571.985 C1193.52 567.993 1191.251 565.465 1189.584 562.183 C1183.63 550.46 1177.128 538.968 1171.532 526.828 C1166.929 516.841 1139.767 463.287 1134.706 460.869 Z" class="cls-12"/>
109
- </g>
110
- <path d="M977.368 591.976 C980.677 599.441 990.776 645.342 989.918 652.583 C989.382 657.104 986.251 659.957 984.729 663.402 C971.862 692.515 953.639 708.346 932.762 721.433 C933.606 716.026 936.687 712.422 938.5 708.047 C943.194 696.717 953.819 670.514 955.245 656.998 C955.965 650.164 951.298 638.71 949.293 631.78 C946.656 622.667 943.852 609.624 939.711 601.618 C907.066 538.506 907.047 508.924 907.047 508.924 C907.047 508.924 959.752 552.239 977.368 591.976 Z" class="cls-8"/>
111
- <g clip-path="url(#clip-path-8)">
112
- <path d="M951.067 588.578 C953.287 595.374 960.756 636.848 960.456 643.318 C960.269 647.357 958.467 649.822 957.652 652.866 C950.767 678.593 940.254 692.245 928.058 703.356 C928.404 698.532 930.154 695.391 931.115 691.522 C933.606 681.5 939.226 658.317 939.68 646.236 C939.909 640.128 936.75 629.714 935.333 623.437 C933.469 615.184 931.386 603.401 928.648 596.096 C907.066 538.506 906.166 511.971 906.166 511.971 C906.166 511.971 939.25 552.407 951.067 588.578 Z" class="cls-13"/>
113
- </g>
114
- <path d="M751.641 707.559 C753.576 702.067 737.426 697.451 732.836 684.35 C730.758 678.419 731.991 669.136 731.643 662.288 C731.087 651.356 731.059 640.188 731.516 628.95 C731.619 626.395 731.183 623.801 731.539 621.21 C732.508 614.159 736.748 605.332 739.065 598.453 C743.508 585.258 747.204 569.931 753.556 557.646 C758.547 547.994 769.235 536.7 776.424 529.889 C765.226 529.205 753.538 530.956 742.355 530.338 C739.167 536.819 734.951 542.439 731.231 548.444 C722.559 562.447 713.78 576.434 704.713 590.02 C701.132 595.385 690.537 608.997 688.813 614.512 C687.308 619.326 688.449 625.114 688.336 629.825 C687.823 651.182 688.565 672.324 687.45 693.822 C695.924 699.359 704.092 705.713 712.396 711.595 C714.755 713.266 717.876 717.065 720.803 717.168 C722.838 717.241 725.052 715.733 727.082 715.029 C733.333 712.862 746.136 707.06 751.641 707.559 Z" class="cls-8"/>
115
- <g clip-path="url(#clip-path-9)">
116
- <path d="M752.167 707.058 C753.576 702.067 743.983 698.636 741.763 687.126 C740.759 681.915 741.906 673.565 741.989 667.46 C742.122 657.714 742.586 647.734 743.346 637.672 C743.519 635.384 743.366 633.084 743.693 630.753 C744.584 624.41 747.535 616.339 749.235 610.092 C752.496 598.108 755.397 584.251 759.776 572.999 C763.217 564.158 770.183 553.605 774.835 547.209 C768.075 547.079 760.913 549.147 754.16 549.075 C751.948 555.005 749.15 560.209 746.637 565.735 C740.776 578.623 734.852 591.501 728.77 604.033 C726.368 608.981 719.359 621.602 718.076 626.605 C716.957 630.972 717.4 636.095 717.129 640.311 C715.899 659.419 715.439 678.283 713.838 697.543 C718.738 702.127 723.417 707.454 728.199 712.353 C729.557 713.745 731.286 717.006 733.056 716.973 C734.287 716.95 735.694 715.507 736.955 714.791 C740.838 712.585 748.85 706.85 752.167 707.058 Z" class="cls-14"/>
117
- </g>
118
- <path d="M919.278 835.512 C910.117 820.018 857.688 787.478 840.672 780.199 C842.358 777.427 884.143 764.623 890.419 762.6 C917.226 753.959 943.669 743.706 970.442 734.835 C989.127 728.643 1009.168 723.545 1027.461 716.539 C1035.428 713.487 1048.023 690.278 1052.991 682.152 C1064.455 663.401 1076.834 644.621 1089.299 626.557 C1096.238 616.499 1108.897 599.658 1112.605 588.375 C1114.394 589.698 1113.346 652.909 1113.289 661.249 C1112.747 739.299 1104.595 816.293 1092.502 893.253 C1032.351 915 971.805 936.626 912.813 961.897 C901.882 966.579 850.157 996.997 844.808 997.133 C839.077 997.278 822.215 984.025 816.219 980.728 C789.109 965.818 762.247 950.212 735.58 934.483 C699.885 913.428 663.626 892.787 627.09 873.423 C620.6 869.983 581.765 849.047 579.347 845.486 C576.157 840.786 574.265 791.679 573.597 782.459 C569.194 721.632 567.949 660.681 571.539 599.782 C577.343 603.138 591.64 628.773 596.109 635.989 C609.739 657.994 625.474 679.162 641.05 699.594 C645.653 705.632 649.483 713.925 655.344 718.696 C663.295 725.165 675.885 727.783 685.205 731.412 C696.265 735.718 707.118 741.124 718.027 745.882 C762.306 765.193 806.647 785.817 848.68 810.123 C878.071 827.12 909.618 851.243 933.807 875.644 C946.437 888.386 958.585 902.308 970.868 914.932 C973.834 917.98 975.387 921.88 979.141 924.433 C978.006 918.76 974.675 913.41 972.242 908.253 C965.226 893.378 957.372 879.091 947.451 866.196 C943.817 861.472 939.08 857.736 935.305 853.138 C930.403 847.167 925.766 839.822 919.278 835.512 Z" class="cls-9"/>
119
- <g clip-path="url(#clip-path-10)">
120
- <path d="M909.525 901.002 C901.121 891.604 853.612 871.516 838.227 866.967 C839.715 865.32 877.171 858.073 882.796 856.925 C906.821 852.019 930.503 846.142 954.495 841.097 C971.239 837.577 989.215 834.727 1005.598 830.713 C1012.734 828.965 1023.82 815.163 1028.204 810.337 C1038.32 799.2 1049.259 788.056 1060.282 777.342 C1066.419 771.377 1077.631 761.399 1080.847 754.664 C1082.471 755.477 1082.194 793.416 1082.229 798.422 C1082.564 845.276 1076.041 891.415 1065.971 937.492 C1012.086 949.914 957.845 962.261 905.04 976.812 C895.255 979.508 849.042 997.226 844.231 997.251 C839.077 997.278 823.768 989.144 818.339 987.101 C793.793 977.864 769.463 968.212 745.307 958.488 C712.973 945.472 680.137 932.698 647.064 920.688 C641.189 918.555 606.031 905.576 603.819 903.413 C600.9 900.558 598.68 871.055 597.983 865.513 C593.381 828.948 591.619 792.342 594.209 755.818 C599.465 757.893 612.597 773.435 616.694 777.814 C629.187 791.168 643.565 804.042 657.793 816.473 C661.998 820.147 665.53 825.166 670.854 828.092 C678.074 832.06 689.428 833.764 697.851 836.041 C707.846 838.742 717.667 842.102 727.531 845.073 C767.569 857.133 807.677 869.982 845.746 885.017 C872.367 895.531 901.001 910.345 923.018 925.25 C934.515 933.032 945.591 941.518 956.774 949.227 C959.474 951.088 960.912 953.446 964.316 955.018 C963.235 951.6 960.183 948.353 957.94 945.231 C951.471 936.227 944.254 927.567 935.194 919.721 C931.875 916.847 927.574 914.554 924.13 911.754 C919.657 908.117 915.408 903.658 909.525 901.002 Z" class="cls-15"/>
121
- </g>
122
- <path d="M406.34 712.65 L407.672 712.65 C410.271 722.543 435.634 757.58 442.765 767.691 C455.057 785.119 466.381 803.659 479.468 820.423 C496.712 842.511 516.549 863.276 530.98 887.674 C595.91 916.991 662.962 941.111 728.498 968.931 C749.407 977.807 770.098 987.607 790.33 998.073 C799.689 1002.915 809.167 1010.601 819.254 1013.424 L819.355 1016.165 C809.821 1019.582 780.092 1045.052 772.898 1053.564 C764.923 1063.001 758.919 1074.957 752.007 1085.293 C734.248 1111.852 714.737 1137.793 700.888 1167.152 C663.882 1159.154 627.288 1146.847 590.631 1137.133 C582.693 1135.03 549.006 1128.556 544.509 1125.116 C539.008 1120.909 534.758 1111.401 530.902 1105.51 C520.723 1089.961 510.465 1074.456 500.251 1058.896 C475.965 1021.897 459.949 979.405 444.384 937.573 C439.153 923.514 431.726 909.414 428.366 894.679 C414.863 835.455 413.442 772.871 406.34 712.65 Z" class="cls-2"/>
123
- <g clip-path="url(#clip-path-11)">
124
- <path d="M457.452 731.669 L458.475 731.867 C461.944 739.499 486.634 768.934 493.615 777.4 C505.647 791.993 517.103 807.256 529.647 821.481 C546.176 840.225 564.498 858.385 579.211 878.401 C633.425 909.54 688.495 937.191 742.952 967.324 C760.326 976.938 777.671 987.197 794.762 997.874 C802.668 1002.814 811.09 1009.854 819.254 1013.424 L819.74 1015.446 C812.929 1016.528 793.9 1030.751 789.645 1035.913 C784.927 1041.636 782.099 1049.496 778.333 1056.036 C768.654 1072.84 757.539 1088.929 751.28 1108.365 C721.679 1096.997 691.752 1082.534 662.163 1069.961 C655.755 1067.238 628.929 1057.479 624.964 1054.291 C620.114 1050.39 615.435 1042.795 611.597 1037.907 C601.467 1025.004 591.282 1012.122 581.123 999.207 C556.967 968.495 538.342 934.994 520.162 902.043 C514.052 890.968 506.249 879.537 501.476 868.246 C482.288 822.867 471.875 776.826 457.452 731.669 Z" class="cls-16"/>
125
- </g>
126
- <path d="M1401.572 1062.878 L1401.572 1062.878 C1388.724 1069.691 1379.66 1084.828 1344.964 1107.629 C1308.262 1131.748 1271.31 1155.07 1233.532 1177.388 C1223.033 1183.59 1212.167 1193.754 1200.465 1197.018 C1206.19 1186.436 1219.753 1172.343 1227.39 1161.912 C1238.666 1146.51 1249.632 1130.722 1260.753 1115.232 C1266.521 1107.197 1272.298 1096.459 1279.481 1089.941 C1318.283 1054.73 1364.21 1028.247 1402.355 992.091 C1416.804 978.396 1430.184 962.777 1443.078 947.612 C1446.908 943.109 1451.707 939.337 1455.214 934.546 C1477.651 903.899 1494.326 867.656 1510.609 833.137 C1517.307 818.937 1525.736 805.289 1530.956 790.401 C1549.333 802.91 1565.15 819.711 1582.861 833.269 C1586.909 836.368 1601.711 845.73 1603.939 848.83 C1610.564 858.049 1613.991 872.549 1618.041 883.258 C1628.179 910.065 1638.668 936.701 1648.626 963.599 C1653.25 976.089 1674.965 1026.144 1673.967 1036.049 C1673.71 1038.592 1645.499 1054.326 1641.22 1056.612 C1616.769 1069.676 1593.504 1085.587 1569.498 1099.54 C1564.988 1102.161 1548.13 1109.648 1545.655 1112.848 C1541.955 1117.634 1540.186 1125.696 1537.792 1131.319 C1530.179 1149.202 1522.758 1167.169 1515.125 1185.024 C1494.543 1233.167 1473.233 1280.967 1453.122 1329.331 C1447.007 1344.039 1440.363 1358.553 1434.382 1373.325 C1431.374 1380.754 1429.623 1389.94 1425.539 1396.763 C1424.532 1398.446 1390.696 1418.781 1385.783 1422.325 C1365.019 1437.302 1342.559 1449.735 1321.8 1464.715 C1307.009 1475.388 1291.795 1485.316 1276.748 1495.61 C1272.404 1498.581 1266.868 1503.764 1261.928 1505.296 C1253.989 1507.759 1233.841 1499.986 1225.121 1498.137 C1192.449 1491.211 1160.159 1482.797 1127.753 1474.716 C1054.966 1456.566 981.852 1439.628 909.168 1420.955 C875.453 1412.294 841.669 1403.317 807.64 1396.076 C797.336 1393.884 787.27 1390.216 776.785 1389.105 L776.721 1387.754 C860.981 1362.045 944.637 1333.534 1029.255 1309.131 C1063.943 1299.128 1098.387 1288.208 1133.046 1278.1 C1142.771 1275.264 1152.407 1271.952 1162.175 1269.305 C1168.918 1267.478 1176.753 1266.545 1183.061 1263.402 C1193.639 1258.132 1202.992 1247.746 1212.355 1240.333 C1230.259 1226.16 1248.699 1212.09 1267.38 1199.072 C1280.739 1189.762 1301.056 1177.895 1312.777 1167.494 C1331.802 1150.613 1350.283 1125.12 1367.27 1105.625 C1373.474 1098.506 1399.758 1069.783 1401.572 1062.878 Z" class="cls-16"/>
127
- <g clip-path="url(#clip-path-12)">
128
- <path d="M1305.002 1056.905 L1305.002 1056.905 C1294.12 1063.806 1284.905 1076.236 1254.862 1098.092 C1223.082 1121.212 1191.228 1143.786 1158.891 1165.747 C1149.904 1171.85 1140.045 1180.908 1130.572 1185.04 C1136.544 1176.442 1149.06 1164.106 1156.478 1155.334 C1167.432 1142.381 1178.206 1129.191 1189.053 1116.197 C1194.68 1109.457 1200.716 1100.737 1207.203 1094.896 C1242.248 1063.344 1281.464 1037.121 1316.145 1004.975 C1329.281 992.799 1341.883 979.374 1354.045 966.354 C1357.657 962.487 1361.904 959.012 1365.311 954.982 C1387.107 929.208 1405.311 900.197 1422.957 872.505 C1430.216 861.114 1438.722 849.868 1444.948 838.193 C1457.199 844.613 1466.846 854.555 1478.429 861.842 C1481.077 863.508 1491.051 868.156 1492.3 870.094 C1496.016 875.855 1496.489 885.959 1498.004 893.194 C1501.799 911.306 1505.888 929.241 1509.531 947.447 C1511.222 955.901 1520.446 989.306 1518.204 996.705 C1517.629 998.604 1493.619 1014.322 1489.992 1016.633 C1469.268 1029.836 1449.03 1044.947 1428.514 1058.735 C1424.661 1061.325 1410.599 1069.315 1408.221 1072.027 C1404.667 1076.081 1402.107 1082.245 1399.431 1086.718 C1390.921 1100.941 1382.547 1115.197 1374.025 1129.404 C1351.048 1167.708 1327.564 1205.87 1304.916 1244.266 C1298.029 1255.942 1290.765 1267.555 1283.972 1279.258 C1280.555 1285.144 1277.842 1292.129 1273.69 1297.731 C1272.666 1299.113 1243.651 1319.036 1239.35 1322.362 C1221.172 1336.416 1202.071 1348.862 1183.896 1362.918 C1170.947 1372.933 1157.784 1382.466 1144.695 1392.241 C1140.916 1395.063 1135.892 1399.681 1131.87 1401.538 C1125.406 1404.523 1111.089 1401.834 1104.668 1401.779 C1080.606 1401.574 1057.059 1400.224 1033.374 1399.135 C980.174 1396.688 926.543 1395.178 873.5 1392.333 C848.896 1391.014 824.286 1389.474 799.228 1389.241 C791.641 1389.171 784.456 1387.985 776.569 1388.733 L776.721 1387.754 C845.263 1356.388 913.759 1323.062 982.382 1292.599 C1010.513 1280.111 1038.594 1266.989 1066.717 1254.429 C1074.609 1250.905 1082.503 1247.046 1090.399 1243.654 C1095.85 1241.313 1102.006 1239.463 1107.319 1236.223 C1116.228 1230.79 1124.959 1221.795 1133.253 1214.975 C1149.114 1201.934 1165.372 1188.889 1181.658 1176.579 C1193.305 1167.775 1210.676 1156.063 1221.227 1146.705 C1238.352 1131.515 1256.342 1110.103 1272.292 1093.303 C1278.117 1087.168 1302.581 1062.23 1305.002 1056.905 Z" class="cls-17"/>
129
- </g>
130
- <path d="M1274.909 794.608 C1265.761 843.851 1258.847 893.525 1249.311 942.711 C1244.616 966.927 1237.806 990.634 1232.804 1014.74 C1228.001 1037.886 1221.511 1060.462 1215.585 1083.279 C1213.06 1093.001 1211.515 1105.156 1206.884 1113.993 C1202.337 1122.667 1193.999 1130.724 1187.579 1137.913 C1116.798 1217.175 1128.933 1221.799 1103.664 1237.647 C1091.426 1245.322 1061.186 1251.192 1046.136 1256.484 C1024.889 1263.954 1003.173 1270.176 981.713 1276.925 C972.562 1279.803 960.921 1286.265 951.262 1285.241 C945.622 1284.643 938.006 1276.7 933.114 1273.628 C917.178 1263.619 901.126 1253.085 884.551 1244.301 C858.526 1230.508 832.535 1216.819 805.288 1205.984 C779.97 1195.915 753.172 1188.009 728.662 1175.903 C733.361 1161.115 744 1149.929 753.735 1138.754 C778.506 1110.321 798.164 1093.586 828.415 1072.066 C851.544 1055.613 873.982 1037.709 899.227 1024.792 C909.641 1019.463 921.378 1015.906 932.314 1011.898 C953.081 1004.285 973.887 996.827 994.847 989.799 C1026.825 979.076 1058.45 966.866 1090.274 955.622 C1110.089 948.621 1129.682 941.227 1149.485 934.23 C1159.475 930.701 1171.028 928.221 1180.365 923.06 C1189.059 918.255 1205.109 889.869 1212.072 880.473 C1227.368 859.834 1243.384 839.651 1258.154 818.574 C1262.508 812.361 1269.341 798.657 1274.909 794.608 Z" class="cls-8"/>
131
- <g clip-path="url(#clip-path-13)">
132
- <path d="M1215.752 810.008 C1201.386 846.586 1188.71 883.144 1174.049 919.737 C1166.83 937.753 1158.027 955.713 1150.584 973.695 C1143.437 990.961 1135.05 1008.065 1127.071 1025.259 C1123.671 1032.586 1120.684 1041.511 1115.761 1048.511 C1110.929 1055.382 1103.212 1062.366 1097.127 1068.448 C1030.036 1135.508 1038.879 1137.045 1016.746 1152.076 C1006.026 1159.356 981.451 1167.972 968.873 1173.957 C951.118 1182.405 933.176 1190.029 915.359 1197.992 C907.761 1201.388 897.687 1207.713 890.261 1208.39 C885.925 1208.786 881.111 1204.213 877.722 1202.729 C866.684 1197.893 855.632 1192.698 843.915 1188.832 C825.516 1182.761 807.128 1176.76 787.34 1172.983 C768.952 1169.474 749.088 1167.73 731.631 1162.645 C737.476 1151.375 747.453 1141.817 756.721 1132.398 C780.301 1108.433 798.164 1093.586 825.033 1073.768 C845.576 1058.616 865.79 1042.526 887.477 1029.596 C896.424 1024.262 906.148 1020.003 915.311 1015.537 C932.711 1007.057 950.119 998.681 967.585 990.591 C994.233 978.248 1020.821 964.892 1047.424 952.198 C1063.987 944.295 1080.435 936.143 1096.989 928.244 C1105.34 924.259 1114.763 920.797 1122.84 915.741 C1130.361 911.033 1147.095 888.374 1153.928 880.633 C1168.939 863.63 1184.448 846.847 1199.11 829.607 C1203.433 824.524 1210.793 813.72 1215.752 810.008 Z" class="cls-18"/>
133
- </g>
134
- <polygon points="459.632,1101.007 414.171,1083.361 328.205,1044.062 293.094,1023.336 291.762,1021.923 293.094,1023.336 311.784,1043.853 352.23,1082.117 401.089,1109.548 448.945,1136.319 489.033,1158.119 517.414,1165.748 577.657,1181.013 757.559,1228.699 875.252,1274.054 911.394,1291.077 920.498,1295.862 920.61,1298.594 837.45,1323.557 647.984,1376.962 551.095,1400.946 504.535,1398.957 430.689,1394.978 341.814,1391.768 311.97,1390.894 270.611,1336.423 179.719,1217.278 160.613,1191.494 116.062,1173.323 48.882,1150.526 0,1134.818 16.765,1087.776 68.698,950.864 83.364,912.705 93.533,886.793 113.882,873.225 148.97,850.325 174.413,832.487 175.486,832.355 210.611,877.242 259.246,934.16 266.19,940.478 310.166,986.923 340.58,1008.352 419.799,1063.499" class="cls-19"/>
135
- <g clip-path="url(#clip-path-14)">
136
- <polygon points="445.636,1047.515 405.597,1030.017 329.138,992.965 297.324,974.709 296.038,973.598 297.324,974.709 315.451,990.762 353.907,1021.404 398.003,1045.867 441.181,1069.762 477.271,1089.361 501.842,1098.022 553.88,1115.787 709.545,1170.241 813.16,1215.324 845.367,1231.236 853.543,1235.576 853.979,1237.415 787.928,1243.645 637.006,1255.52 559.409,1259.371 520.423,1252.193 458.484,1240.259 384.14,1226.95 359.2,1222.617 317.947,1181.034 227.361,1090.025 208.226,1070.4 168.879,1052.665 110.123,1028.997 67.481,1012.363 75.519,983.044 101.528,898.107 108.936,874.459 114.142,858.426 129.367,851.919 155.683,841.029 174.61,832.309 175.486,832.355 210.348,866.753 257.961,910.885 264.531,915.978 306.953,952.528 334.949,970.664 407.785,1017.455" class="cls-20"/>
137
- </g>
138
- <line x1="919.278" y1="835.512" x2="917.945" y2="835.512" class="cls-21"/>
139
- <line x1="460.965" y1="1101.007" x2="459.632" y2="1102.419" class="cls-21"/>
140
- <path d="M667.142 1420.903 C685.157 1417.102 726.007 1401.825 741.789 1404.044 C755.415 1405.959 780.577 1419.304 794.273 1425.133 C827.461 1439.256 860.779 1453.127 893.869 1467.511 C914.512 1476.486 934.729 1487.506 955.904 1495.011 C949.834 1501.476 940.049 1512.281 931.668 1515.13 C923.352 1517.957 906.021 1515.491 896.776 1515.491 L792.189 1515.491 C782.593 1515.491 742.847 1516.767 736.467 1513.165 C728.408 1508.616 721.264 1501.982 713.495 1496.891 C686.526 1479.219 660.412 1460.041 633.478 1442.32 C626.435 1437.686 619.665 1429.632 611.515 1427.228 C611.515 1420.691 642.405 1426.122 667.142 1420.903 Z" class="cls-15"/>
141
- <g clip-path="url(#clip-path-15)">
142
- <path d="M678.172 1409.519 C693.887 1408.331 729.101 1401.549 743.223 1403.916 C755.415 1405.959 778.554 1415.757 791.057 1420.208 C821.355 1430.995 851.752 1441.634 881.979 1452.575 C900.836 1459.4 919.446 1467.455 938.681 1473.412 C933.716 1476.997 925.736 1483.01 918.493 1484.227 C911.306 1485.433 895.798 1482.816 887.608 1482.227 L794.961 1475.571 C786.461 1474.96 751.334 1473.215 745.453 1470.596 C738.025 1467.289 731.275 1462.76 724.069 1459.139 C699.054 1446.569 674.7 1433.128 649.714 1420.53 C643.18 1417.236 636.67 1411.859 629.298 1409.863 C628.882 1405.848 656.591 1411.15 678.172 1409.519 Z" class="cls-6"/>
143
- </g>
144
- <line x1="546.232" y1="1421.579" x2="547.564" y2="1420.166" class="cls-21"/>
145
- <path d="M783.708 741.633 L784.897 719.456 C791.747 717.482 821.723 701.215 823.753 693.985 C826.549 684.022 825.411 670.431 825.806 659.973 C826.821 633.115 827.769 606.254 828.78 579.396 C830.881 523.564 833.276 467.743 834.873 411.886 C835.546 388.332 838.839 362.27 835.818 338.946 C833.405 340.513 831.203 341.657 830.161 344.859 C825.771 358.347 826.372 412.681 825.778 430.386 C823.738 491.138 820.981 551.821 818.123 612.521 C817.517 625.395 817.318 679.156 813.963 687.289 C811.783 692.573 791.344 702.795 786.124 705.391 C792.248 590.954 802.015 476.748 810.122 362.497 C812.941 322.761 817.067 283.212 820.151 243.528 C826.228 165.337 832.813 128.402 832.813 128.402 C832.813 128.402 841.128 175.743 850.787 264.087 C862.544 371.623 872.583 479.56 882.048 587.409 C884.869 619.555 887.97 651.669 890.614 683.838 C892.266 703.943 892.975 724.415 895.673 744.361 C886.28 739.837 876.715 733.463 866.749 730.925 C859.199 729.001 821.372 729.498 813.526 731.282 C803.383 733.588 793.866 739.166 783.708 741.633 Z M874.178 720.242 L872.846 720.251 C871.012 712.144 866.895 705.34 865.517 696.925 C861.952 675.155 862.951 651.645 861.721 629.553 C858.918 579.203 856.642 528.81 853.977 478.449 C852.654 453.446 852.5 427.289 849.359 402.535 C846.722 404.728 847.925 467.001 847.981 475.819 C848.367 536.8 848.379 598.013 850.585 658.949 C850.84 666.015 850.409 695.529 852.56 699.98 C854.806 704.625 859.32 706.77 862.403 710.332 C865.572 713.994 868.464 718.829 872.846 720.251 Z" class="cls-22"/>
146
- <path d="M1403.503 1062.579" class="cls-21"/>
147
- </g>
148
- </svg>
Binary file
Binary file
Binary file
@@ -1,10 +0,0 @@
1
- // rosetack plugins (innovation #30): the default export is an array of { name, transform },
2
- // and every transform sees a component's RAW source …
3
- export default [
4
- {
5
- name: 'thorn',
6
- transform(code) {
7
- return code.replaceAll('@thorn', '\u{1F339}');
8
- },
9
- },
10
- ];
@@ -1,8 +0,0 @@
1
- {
2
- "about.title": "About, localized",
3
- "about.heading": "This page speaks your language",
4
- "about.body": "Every string on this page came from src/locales/en.json. The route picked the dictionary from the URL's language segment, and the switcher below repaints from the inlined bundle - zero requests, no navigation.",
5
- "about.greeting": "Hello, {name} - this sentence was translated with a variable.",
6
- "about.current": "Current language",
7
- "about.switch": "Switch language"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "about.title": "关于,已本地化",
3
- "about.heading": "这一页说你的语言",
4
- "about.body": "这一页上的每一句都来自 src/locales/zh.json。路由从 URL 的语言段选中了这本字典,下面的语言切换器由内联包重绘 - 零请求,不导航。",
5
- "about.greeting": "你好,{name} - 这句话带变量翻译。",
6
- "about.current": "当前语言",
7
- "about.switch": "切换语言"
8
- }
@@ -1,15 +0,0 @@
1
- <head>
2
- <title>404 - RoseTack</title>
3
- <meta name="description" content="This route does not exist.">
4
- <meta name="robots" content="noindex">
5
- </head>
6
-
7
- <style>
8
- :global(.rlogo) { height: 1em; width: 1em; vertical-align: -0.08em; margin-right: 0.2em; }
9
- </style>
10
-
11
- <div>
12
- <h1><img class="rlogo" src="/rose-mark-black.png" alt="" width="64" height="64"> 404</h1>
13
- <p>This rose has no petals here - the route does not exist.</p>
14
- <p><a href="/">Back to the garden</a></p>
15
- </div>
@@ -1,10 +0,0 @@
1
- <head>
2
- <title>500 - RoseTack</title>
3
- <meta name="description" content="This page failed to render.">
4
- <meta name="robots" content="noindex">
5
- </head>
6
- <div>
7
- <h1><img class="rlogo" src="/rose-mark-black.png" alt="" width="64" height="64"> 500</h1>
8
- <p>This rose pricked itself - the page failed to render, but the garden is fine.</p>
9
- <p><a href="/">Back to the garden</a></p>
10
- </div>
@@ -1,40 +0,0 @@
1
- <script>
2
- // The [lang] segment IS the locale: it arrives as state before the render
3
- // (the same param seeding as blog/[id]), and $t reads it reactively - a
4
- // locale switch re-runs the markers, so only the translated text repaints.
5
- let lang = $state('en');
6
-
7
- // Both dictionaries bake at build time, so the Go single binary serves
8
- // /en/about and /zh/about as plain static files; Node and edge render any
9
- // LISTED locale live, and a segment naming no dictionary answers 404 (the
10
- // URL is the contract - no duplicate content under a bogus language).
11
- export const params = { lang: ['en', 'zh'] };
12
-
13
- // {name} interpolation (the template parser has no nested braces, so the
14
- // call lives in a function: the marker closure runs it per repaint)
15
- function greeting() {
16
- return $t('about.greeting', { name: 'RoseTack' });
17
- }
18
- </script>
19
-
20
- <head>
21
- <title>{$t('about.title')} - RoseTack</title>
22
- <meta name="description" content={$t('about.heading')}>
23
- </head>
24
-
25
- <style>
26
- :global(.rlogo) { height: 1em; width: 1em; vertical-align: -0.08em; margin-right: 0.2em; }
27
- </style>
28
-
29
- <div>
30
- <h1>{$t('about.heading')}</h1>
31
- <p>{$t('about.body')}</p>
32
- <p>{greeting()}</p>
33
- <p>{$t('about.current')}: {lang()}</p>
34
- <p>
35
- {$t('about.switch')}:
36
- <a href="/en/about">English</a>
37
- <a href="/zh/about">中文</a>
38
- </p>
39
- <p><a href="/about">Back to the plain About page</a></p>
40
- </div>
@@ -1,33 +0,0 @@
1
- <script>
2
- let links = $state([
3
- { href: '/', label: 'Home' },
4
- { href: '/about', label: 'About' },
5
- { href: '/en/about', label: 'About (i18n)' },
6
- { href: '/blog/1', label: 'Blog 1' },
7
- { href: '/blog/2', label: 'Blog 2' },
8
- { href: '/thorn', label: 'Thorn' },
9
- { href: '/sign', label: 'Sign' }
10
- ]);
11
- </script>
12
-
13
- <head>
14
- <title>RoseTack</title>
15
- <meta name="generator" content="rosetack">
16
- </head>
17
-
18
- <div>
19
- <header class="rh">
20
- <span class="rbrand"><img class="rmark" src="/rose-mark.png" alt="" width="48" height="48"><strong class="rb">RoseTack</strong></span>
21
- <nav class="rn">
22
- {#each links() as link}
23
- <a href={link.href}>{link.label}</a>
24
- {/each}
25
- </nav>
26
- </header>
27
- <main>
28
- <slot />
29
- </main>
30
- <footer class="rf">
31
- RoseTack — Modular extensible full-stack framework for web and embedded applications, crafted with extreme romance and polished developer experience.
32
- </footer>
33
- </div>
@@ -1,37 +0,0 @@
1
- <script>
2
- // The request interceptor: runs before every render on the server -
3
- // pages, POSTs and api calls alike. Returning a Response short-circuits
4
- // the whole request (a redirect, an auth wall, a rewrite); returning
5
- // nothing continues, and getContext() hands this request's bag to $data,
6
- // server actions and api handlers. This is the Next.js middleware /
7
- // SvelteKit hooks.handle / Django middleware job, in one file, with the
8
- // same Web-standard Request the edge adapter passes.
9
- export async function handle(request) {
10
- const { pathname } = new URL(request.url);
11
- // $cookies(request) parses the Cookie header (Phase 1); to SET one, use
12
- // $sessionCookie(name, value) - HttpOnly + SameSite=Lax by default.
13
- const session = $cookies(request).session;
14
- // a thorn: /admin and /vault are walled off without a session cookie.
15
- // /admin is the deep wall: its page reads getContext(), so the gated
16
- // content is $data - even a static deploy (the Go binary) shows only
17
- // the public shell. /vault is the plain wall: its content is public,
18
- // the gate lives entirely here - which is why the build must never
19
- // bake it (a cookie-less request is walled, so the route is not static)
20
- if ((pathname === '/admin' || pathname === '/vault') && !session) {
21
- return new Response(null, { status: 302, headers: { location: '/sign' } });
22
- }
23
- // i18n negotiation (innovation #27): /about with a REAL Accept-Language
24
- // preference redirects to the visitor's language version - the Next.js
25
- // localeDetection / Qwik City i18n job, in the middleware the framework
26
- // already runs. No preference (absent, or the * wildcard Node's own
27
- // fetch sends) -> the plain page renders; a preference that matches no
28
- // dictionary serves the default locale in place. Vary keeps caches
29
- // honest: one language's redirect must never be served to another.
30
- const best = bestLocale(request.headers.get('accept-language'));
31
- if (pathname === '/about' && best) {
32
- return new Response(null, { status: 302, headers: { location: '/' + best + '/about', vary: 'Accept-Language' } });
33
- }
34
- // the rest of the request sees who is asking
35
- getContext().user = session ? { name: session } : null;
36
- }
37
- </script>
@@ -1,67 +0,0 @@
1
- <script>
2
- // module-level (exported consts live outside render, like the likes store):
3
- // the cumulative count of $data executions, server-side and client-side
4
- // alike - the observable proof that a render really re-fetched
5
- export const stats = { fetches: 0 };
6
-
7
- let title = $state('About RoseTack');
8
- let facts = $data(async () => {
9
- stats.fetches += 1;
10
- return [
11
- 'Compile-time reactivity: no virtual DOM, no diffing',
12
- 'Zero-hydration resume: state serialized into HTML, restored client-side',
13
- 'File-system routing with nested layouts',
14
- 'Single minified client bundle under 1 KB gzipped'
15
- ];
16
- });
17
-
18
- // refresh() re-runs this route's render in place: $data re-fetches, the
19
- // fresh render's state re-seeds, and wire() patches only what changed -
20
- // zero requests, no navigation. (Next.js router.refresh() round-trips the
21
- // server; rosetack renders in the page because the bundle already has the
22
- // route - and a real app's $data can hit its API from either side.)
23
- async function reload() {
24
- await refresh();
25
- }
26
-
27
- // Lifecycle: onMount runs after this route's DOM is wired (client-only -
28
- // the server render no-ops, there is no DOM to mount into), onCleanup
29
- // disposes with the route. The heartbeat proves both: it starts on mount
30
- // and stops the moment you navigate away, so a page never leaks a timer
31
- // into the next route.
32
- let ticks = $state(0);
33
- let heartbeat = null;
34
- onMount(() => {
35
- heartbeat = setInterval(() => setTicks(ticks() + 1), 100);
36
- });
37
- onCleanup(() => {
38
- if (heartbeat) clearInterval(heartbeat);
39
- });
40
- </script>
41
-
42
- <head>
43
- <title>{title()} - RoseTack</title>
44
- <meta name="description" content="What RoseTack is and the ideas it is built on.">
45
- </head>
46
-
47
- <style>
48
- /* same class name as index.rose's card, different rules: scoped styles
49
- keep the two pages' cards apart without any naming convention */
50
- .rcard { background: #e8f5e9; border-left: 4px solid #4caf50; padding: 0.75rem 1rem; border-radius: 0 6px 6px 0; }
51
- </style>
52
-
53
- <div>
54
- <img src="/rose-mono.png" alt="RoseTack" width="128" height="128">
55
- <h1>{title()}</h1>
56
- <div class="rcard">
57
- <p>RoseTack is a revolutionary web framework designed to be the fastest, simplest, and most performant framework ever created.</p>
58
- <p>data fetches: {stats.fetches}</p>
59
- <button on:click={reload}>Refresh data</button>
60
- </div>
61
- <p>mount ticks (onMount heartbeat, onCleanup stops it): {ticks()}</p>
62
- <ul>
63
- {#each facts() as fact}
64
- <li>{fact}</li>
65
- {/each}
66
- </ul>
67
- </div>
@@ -1,27 +0,0 @@
1
- <script>
2
- // $data runs per request on the server (never on the client), so it reads
3
- // the middleware's context: this page greets the viewer the server saw.
4
- // A static deploy never runs the middleware - the client render then sees
5
- // no user and shows the public shell, so the wall holds either way.
6
- let user = $data(async () => getContext().user ?? null);
7
-
8
- // refresh() re-renders this route in place: $data re-reads the context,
9
- // zero requests, no navigation. It is also what keeps this route on the
10
- // streaming path - the demo's dynamic INTERACTIVE page, so the streamed
11
- // document (shell first, state script + bundle after) has a home now
12
- // that content routes like /blog/:id compile to zero-JS by themselves
13
- // (innovation #29).
14
- async function reload() {
15
- await refresh();
16
- }
17
- </script>
18
-
19
- <head>
20
- <title>Admin - RoseTack</title>
21
- <meta name="description" content="The deep wall: content gated by the request context.">
22
- </head>
23
-
24
- <h1>Admin</h1>
25
- <p>{user() ? 'Hello, ' + user().name + ' - the thorn garden.' : 'Please sign in.'}</p>
26
- <button on:click={reload}>Refresh</button>
27
- <p><a href="/sign">Go to the sign page</a></p>
@@ -1,19 +0,0 @@
1
- <script>
2
- // Bake the GET body into dist/api/hello.json at build time: the Go single
3
- // binary serves this read-only API with zero Node. Drop the flag (or return
4
- // something request-dependent) and the route stays live on Node/edge only.
5
- export const prerender = true;
6
-
7
- // Handlers receive a Web-standard Request and return a plain object
8
- // (serialized as JSON), a Response (passed through), or nothing (204).
9
- // Same code on the Node server, the edge adapter, and the build's bake.
10
- export function GET() {
11
- return { hello: 'RoseTack', framework: 'one request, zero hydration' };
12
- }
13
-
14
- export async function POST(req) {
15
- const form = await req.formData();
16
- const name = String(form.get('name') || 'world').trim();
17
- return { hello: name };
18
- }
19
- </script>
@@ -1,55 +0,0 @@
1
- <script>
2
- import { $sessionCookie } from './runtime.js';
3
-
4
- // Login for the demo: one seeded users row, checked against the same
5
- // blog.db the posts API uses. The session is the cookie $sessionCookie()
6
- // builds (#35): HttpOnly, SameSite=Lax, Path=/, 7 days - the middleware
7
- // and every write endpoint read it back with $cookies(request).
8
-
9
- // Same lazy-connection pattern as api/posts.rose: node:sqlite is imported
10
- // inside the accessor so the server bundle stays edge-loadable (the edge
11
- // adapter loads that same bundle - a static import would boot-crash the
12
- // whole app there instead of failing this one route), and `rosetack build`
13
- // creates no database as a side effect. One connection per worker: that
14
- // IS the pool; a real deploy swaps it for pg.Pool here. The file is
15
- // relative to the working directory you started the server from, never
16
- // inside dist/ (the Go binary embeds dist verbatim).
17
- let conn;
18
- const getDb = async () => {
19
- if (!conn) {
20
- const { DatabaseSync } = await import('node:sqlite');
21
- conn = new DatabaseSync('blog.db');
22
- conn.exec(`
23
- CREATE TABLE IF NOT EXISTS users (
24
- id INTEGER PRIMARY KEY AUTOINCREMENT,
25
- name TEXT NOT NULL UNIQUE,
26
- pass TEXT NOT NULL
27
- );
28
- INSERT OR IGNORE INTO users (id, name, pass) VALUES (1, 'ada', 'lovelace');
29
- `);
30
- }
31
- return conn;
32
- };
33
-
34
- const json = (obj, status = 200, headers = {}) =>
35
- new Response(JSON.stringify(obj), { status, headers: { 'content-type': 'application/json', ...headers } });
36
-
37
- // POST user=ada pass=lovelace -> 200 + Set-Cookie: session=1
38
- // ponytail: plaintext passwords, one seeded row - a demo, not a vault. A
39
- // real login hashes with node:crypto scrypt and compares in constant time;
40
- // everything around it (this file, the cookie, the middleware) stays.
41
- export async function POST(req) {
42
- const form = await req.formData();
43
- const user = String(form.get('user') ?? '');
44
- const db = await getDb();
45
- const row = db.prepare('SELECT id FROM users WHERE name = ? AND pass = ?').get(user, String(form.get('pass') ?? ''));
46
- if (!row) return json({ error: 'bad credentials' }, 401);
47
- return json({ ok: true, user }, 200, { 'set-cookie': $sessionCookie('session', String(row.id)) });
48
- }
49
-
50
- // Logout: expire the cookie (Max-Age=0). DELETE keeps the REST shape -
51
- // no body needed, and the CSRF guard (#35) already screened it.
52
- export function DELETE() {
53
- return json({ ok: true }, 200, { 'set-cookie': $sessionCookie('session', '', { maxAge: 0 }) });
54
- }
55
- </script>