create-nuclo 0.1.1 → 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 (516) hide show
  1. package/package.json +1 -1
  2. package/templates/basic/package.json +3 -3
  3. package/templates/basic/node_modules/.package-lock.json +0 -348
  4. package/templates/basic/node_modules/.vite/deps/_metadata.json +0 -15
  5. package/templates/basic/node_modules/.vite/deps/nuclo.js +0 -1665
  6. package/templates/basic/node_modules/.vite/deps/nuclo.js.map +0 -1
  7. package/templates/basic/node_modules/.vite/deps/package.json +0 -3
  8. package/templates/basic/node_modules/@oxc-project/types/LICENSE +0 -22
  9. package/templates/basic/node_modules/@oxc-project/types/README.md +0 -3
  10. package/templates/basic/node_modules/@oxc-project/types/package.json +0 -26
  11. package/templates/basic/node_modules/@oxc-project/types/types.d.ts +0 -1912
  12. package/templates/basic/node_modules/@rolldown/binding-darwin-arm64/README.md +0 -3
  13. package/templates/basic/node_modules/@rolldown/binding-darwin-arm64/package.json +0 -37
  14. package/templates/basic/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  15. package/templates/basic/node_modules/@rolldown/pluginutils/LICENSE +0 -21
  16. package/templates/basic/node_modules/@rolldown/pluginutils/README.md +0 -145
  17. package/templates/basic/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts +0 -194
  18. package/templates/basic/node_modules/@rolldown/pluginutils/dist/filter/index.mjs +0 -2
  19. package/templates/basic/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs +0 -323
  20. package/templates/basic/node_modules/@rolldown/pluginutils/dist/index.d.mts +0 -2
  21. package/templates/basic/node_modules/@rolldown/pluginutils/dist/index.mjs +0 -2
  22. package/templates/basic/node_modules/@rolldown/pluginutils/package.json +0 -40
  23. package/templates/basic/node_modules/detect-libc/LICENSE +0 -201
  24. package/templates/basic/node_modules/detect-libc/README.md +0 -163
  25. package/templates/basic/node_modules/detect-libc/index.d.ts +0 -14
  26. package/templates/basic/node_modules/detect-libc/lib/detect-libc.js +0 -313
  27. package/templates/basic/node_modules/detect-libc/lib/elf.js +0 -39
  28. package/templates/basic/node_modules/detect-libc/lib/filesystem.js +0 -51
  29. package/templates/basic/node_modules/detect-libc/lib/process.js +0 -24
  30. package/templates/basic/node_modules/detect-libc/package.json +0 -44
  31. package/templates/basic/node_modules/fdir/LICENSE +0 -7
  32. package/templates/basic/node_modules/fdir/README.md +0 -91
  33. package/templates/basic/node_modules/fdir/dist/index.cjs +0 -588
  34. package/templates/basic/node_modules/fdir/dist/index.d.cts +0 -155
  35. package/templates/basic/node_modules/fdir/dist/index.d.mts +0 -155
  36. package/templates/basic/node_modules/fdir/dist/index.mjs +0 -570
  37. package/templates/basic/node_modules/fdir/package.json +0 -103
  38. package/templates/basic/node_modules/lightningcss/LICENSE +0 -373
  39. package/templates/basic/node_modules/lightningcss/README.md +0 -105
  40. package/templates/basic/node_modules/lightningcss/node/ast.d.ts +0 -9892
  41. package/templates/basic/node_modules/lightningcss/node/ast.js.flow +0 -10539
  42. package/templates/basic/node_modules/lightningcss/node/browserslistToTargets.js +0 -48
  43. package/templates/basic/node_modules/lightningcss/node/composeVisitors.js +0 -450
  44. package/templates/basic/node_modules/lightningcss/node/flags.js +0 -28
  45. package/templates/basic/node_modules/lightningcss/node/index.d.ts +0 -494
  46. package/templates/basic/node_modules/lightningcss/node/index.js +0 -59
  47. package/templates/basic/node_modules/lightningcss/node/index.js.flow +0 -843
  48. package/templates/basic/node_modules/lightningcss/node/index.mjs +0 -4
  49. package/templates/basic/node_modules/lightningcss/node/targets.d.ts +0 -40
  50. package/templates/basic/node_modules/lightningcss/node/targets.js.flow +0 -39
  51. package/templates/basic/node_modules/lightningcss/package.json +0 -110
  52. package/templates/basic/node_modules/lightningcss-darwin-arm64/LICENSE +0 -373
  53. package/templates/basic/node_modules/lightningcss-darwin-arm64/README.md +0 -1
  54. package/templates/basic/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  55. package/templates/basic/node_modules/lightningcss-darwin-arm64/package.json +0 -34
  56. package/templates/basic/node_modules/nanoid/LICENSE +0 -20
  57. package/templates/basic/node_modules/nanoid/README.md +0 -36
  58. package/templates/basic/node_modules/nanoid/async/index.browser.cjs +0 -42
  59. package/templates/basic/node_modules/nanoid/async/index.browser.js +0 -42
  60. package/templates/basic/node_modules/nanoid/async/index.cjs +0 -44
  61. package/templates/basic/node_modules/nanoid/async/index.d.ts +0 -56
  62. package/templates/basic/node_modules/nanoid/async/index.js +0 -44
  63. package/templates/basic/node_modules/nanoid/async/index.native.js +0 -35
  64. package/templates/basic/node_modules/nanoid/async/package.json +0 -12
  65. package/templates/basic/node_modules/nanoid/bin/nanoid.cjs +0 -55
  66. package/templates/basic/node_modules/nanoid/index.browser.cjs +0 -44
  67. package/templates/basic/node_modules/nanoid/index.browser.js +0 -44
  68. package/templates/basic/node_modules/nanoid/index.cjs +0 -57
  69. package/templates/basic/node_modules/nanoid/index.d.cts +0 -91
  70. package/templates/basic/node_modules/nanoid/index.d.ts +0 -91
  71. package/templates/basic/node_modules/nanoid/index.js +0 -62
  72. package/templates/basic/node_modules/nanoid/nanoid.js +0 -1
  73. package/templates/basic/node_modules/nanoid/non-secure/index.cjs +0 -24
  74. package/templates/basic/node_modules/nanoid/non-secure/index.d.ts +0 -33
  75. package/templates/basic/node_modules/nanoid/non-secure/index.js +0 -24
  76. package/templates/basic/node_modules/nanoid/non-secure/package.json +0 -6
  77. package/templates/basic/node_modules/nanoid/package.json +0 -89
  78. package/templates/basic/node_modules/nanoid/url-alphabet/index.cjs +0 -4
  79. package/templates/basic/node_modules/nanoid/url-alphabet/index.js +0 -4
  80. package/templates/basic/node_modules/nanoid/url-alphabet/package.json +0 -6
  81. package/templates/basic/node_modules/nuclo/LICENSE.md +0 -45
  82. package/templates/basic/node_modules/nuclo/README.md +0 -727
  83. package/templates/basic/node_modules/nuclo/dist/bootstrap.d.ts +0 -5
  84. package/templates/basic/node_modules/nuclo/dist/bootstrap.d.ts.map +0 -1
  85. package/templates/basic/node_modules/nuclo/dist/element/attributes.d.ts +0 -3
  86. package/templates/basic/node_modules/nuclo/dist/element/attributes.d.ts.map +0 -1
  87. package/templates/basic/node_modules/nuclo/dist/element/class-name.d.ts +0 -6
  88. package/templates/basic/node_modules/nuclo/dist/element/class-name.d.ts.map +0 -1
  89. package/templates/basic/node_modules/nuclo/dist/element/events.d.ts +0 -35
  90. package/templates/basic/node_modules/nuclo/dist/element/events.d.ts.map +0 -1
  91. package/templates/basic/node_modules/nuclo/dist/element/factory.d.ts +0 -32
  92. package/templates/basic/node_modules/nuclo/dist/element/factory.d.ts.map +0 -1
  93. package/templates/basic/node_modules/nuclo/dist/element/inline-style.d.ts +0 -9
  94. package/templates/basic/node_modules/nuclo/dist/element/inline-style.d.ts.map +0 -1
  95. package/templates/basic/node_modules/nuclo/dist/element/modifiers.d.ts +0 -11
  96. package/templates/basic/node_modules/nuclo/dist/element/modifiers.d.ts.map +0 -1
  97. package/templates/basic/node_modules/nuclo/dist/element/tags.d.ts +0 -5
  98. package/templates/basic/node_modules/nuclo/dist/element/tags.d.ts.map +0 -1
  99. package/templates/basic/node_modules/nuclo/dist/hydration.d.ts +0 -73
  100. package/templates/basic/node_modules/nuclo/dist/hydration.d.ts.map +0 -1
  101. package/templates/basic/node_modules/nuclo/dist/index.d.ts +0 -17
  102. package/templates/basic/node_modules/nuclo/dist/index.d.ts.map +0 -1
  103. package/templates/basic/node_modules/nuclo/dist/list/index.d.ts +0 -7
  104. package/templates/basic/node_modules/nuclo/dist/list/index.d.ts.map +0 -1
  105. package/templates/basic/node_modules/nuclo/dist/list/runtime.d.ts +0 -6
  106. package/templates/basic/node_modules/nuclo/dist/list/runtime.d.ts.map +0 -1
  107. package/templates/basic/node_modules/nuclo/dist/list/types.d.ts +0 -18
  108. package/templates/basic/node_modules/nuclo/dist/list/types.d.ts.map +0 -1
  109. package/templates/basic/node_modules/nuclo/dist/nuclo.cjs +0 -2
  110. package/templates/basic/node_modules/nuclo/dist/nuclo.cjs.map +0 -1
  111. package/templates/basic/node_modules/nuclo/dist/nuclo.mjs +0 -2
  112. package/templates/basic/node_modules/nuclo/dist/nuclo.mjs.map +0 -1
  113. package/templates/basic/node_modules/nuclo/dist/nuclo.umd.js +0 -2
  114. package/templates/basic/node_modules/nuclo/dist/nuclo.umd.js.map +0 -1
  115. package/templates/basic/node_modules/nuclo/dist/polyfill/Document.d.ts +0 -19
  116. package/templates/basic/node_modules/nuclo/dist/polyfill/Document.d.ts.map +0 -1
  117. package/templates/basic/node_modules/nuclo/dist/polyfill/Element.d.ts +0 -48
  118. package/templates/basic/node_modules/nuclo/dist/polyfill/Element.d.ts.map +0 -1
  119. package/templates/basic/node_modules/nuclo/dist/polyfill/Event.d.ts +0 -43
  120. package/templates/basic/node_modules/nuclo/dist/polyfill/Event.d.ts.map +0 -1
  121. package/templates/basic/node_modules/nuclo/dist/polyfill/Node.d.ts +0 -13
  122. package/templates/basic/node_modules/nuclo/dist/polyfill/Node.d.ts.map +0 -1
  123. package/templates/basic/node_modules/nuclo/dist/polyfill/Text.d.ts +0 -11
  124. package/templates/basic/node_modules/nuclo/dist/polyfill/Text.d.ts.map +0 -1
  125. package/templates/basic/node_modules/nuclo/dist/polyfill/index.d.ts +0 -24
  126. package/templates/basic/node_modules/nuclo/dist/polyfill/index.d.ts.map +0 -1
  127. package/templates/basic/node_modules/nuclo/dist/polyfill/nuclo.polyfill.cjs +0 -2
  128. package/templates/basic/node_modules/nuclo/dist/polyfill/nuclo.polyfill.cjs.map +0 -1
  129. package/templates/basic/node_modules/nuclo/dist/polyfill/nuclo.polyfill.mjs +0 -2
  130. package/templates/basic/node_modules/nuclo/dist/polyfill/nuclo.polyfill.mjs.map +0 -1
  131. package/templates/basic/node_modules/nuclo/dist/render.d.ts +0 -33
  132. package/templates/basic/node_modules/nuclo/dist/render.d.ts.map +0 -1
  133. package/templates/basic/node_modules/nuclo/dist/shared/conditions.d.ts +0 -4
  134. package/templates/basic/node_modules/nuclo/dist/shared/conditions.d.ts.map +0 -1
  135. package/templates/basic/node_modules/nuclo/dist/shared/dom.d.ts +0 -69
  136. package/templates/basic/node_modules/nuclo/dist/shared/dom.d.ts.map +0 -1
  137. package/templates/basic/node_modules/nuclo/dist/shared/environment.d.ts +0 -5
  138. package/templates/basic/node_modules/nuclo/dist/shared/environment.d.ts.map +0 -1
  139. package/templates/basic/node_modules/nuclo/dist/shared/errors.d.ts +0 -2
  140. package/templates/basic/node_modules/nuclo/dist/shared/errors.d.ts.map +0 -1
  141. package/templates/basic/node_modules/nuclo/dist/shared/renderables.d.ts +0 -4
  142. package/templates/basic/node_modules/nuclo/dist/shared/renderables.d.ts.map +0 -1
  143. package/templates/basic/node_modules/nuclo/dist/shared/strings.d.ts +0 -19
  144. package/templates/basic/node_modules/nuclo/dist/shared/strings.d.ts.map +0 -1
  145. package/templates/basic/node_modules/nuclo/dist/shared/type-guards.d.ts +0 -16
  146. package/templates/basic/node_modules/nuclo/dist/shared/type-guards.d.ts.map +0 -1
  147. package/templates/basic/node_modules/nuclo/dist/ssr/index.d.ts +0 -19
  148. package/templates/basic/node_modules/nuclo/dist/ssr/index.d.ts.map +0 -1
  149. package/templates/basic/node_modules/nuclo/dist/ssr/nuclo.ssr.cjs +0 -2
  150. package/templates/basic/node_modules/nuclo/dist/ssr/nuclo.ssr.cjs.map +0 -1
  151. package/templates/basic/node_modules/nuclo/dist/ssr/nuclo.ssr.mjs +0 -2
  152. package/templates/basic/node_modules/nuclo/dist/ssr/nuclo.ssr.mjs.map +0 -1
  153. package/templates/basic/node_modules/nuclo/dist/ssr/render-to-string.d.ts +0 -41
  154. package/templates/basic/node_modules/nuclo/dist/ssr/render-to-string.d.ts.map +0 -1
  155. package/templates/basic/node_modules/nuclo/dist/style/css.d.ts +0 -19
  156. package/templates/basic/node_modules/nuclo/dist/style/css.d.ts.map +0 -1
  157. package/templates/basic/node_modules/nuclo/dist/style/engine.d.ts +0 -34
  158. package/templates/basic/node_modules/nuclo/dist/style/engine.d.ts.map +0 -1
  159. package/templates/basic/node_modules/nuclo/dist/style/index.d.ts +0 -3
  160. package/templates/basic/node_modules/nuclo/dist/style/index.d.ts.map +0 -1
  161. package/templates/basic/node_modules/nuclo/dist/update/conditional.d.ts +0 -3
  162. package/templates/basic/node_modules/nuclo/dist/update/conditional.d.ts.map +0 -1
  163. package/templates/basic/node_modules/nuclo/dist/update/reactive-attributes.d.ts +0 -45
  164. package/templates/basic/node_modules/nuclo/dist/update/reactive-attributes.d.ts.map +0 -1
  165. package/templates/basic/node_modules/nuclo/dist/update/reactive-text.d.ts +0 -38
  166. package/templates/basic/node_modules/nuclo/dist/update/reactive-text.d.ts.map +0 -1
  167. package/templates/basic/node_modules/nuclo/dist/update/registry.d.ts +0 -97
  168. package/templates/basic/node_modules/nuclo/dist/update/registry.d.ts.map +0 -1
  169. package/templates/basic/node_modules/nuclo/dist/update/scope.d.ts +0 -7
  170. package/templates/basic/node_modules/nuclo/dist/update/scope.d.ts.map +0 -1
  171. package/templates/basic/node_modules/nuclo/dist/update/update.d.ts +0 -4
  172. package/templates/basic/node_modules/nuclo/dist/update/update.d.ts.map +0 -1
  173. package/templates/basic/node_modules/nuclo/dist/when/builder.d.ts +0 -16
  174. package/templates/basic/node_modules/nuclo/dist/when/builder.d.ts.map +0 -1
  175. package/templates/basic/node_modules/nuclo/dist/when/index.d.ts +0 -44
  176. package/templates/basic/node_modules/nuclo/dist/when/index.d.ts.map +0 -1
  177. package/templates/basic/node_modules/nuclo/dist/when/runtime.d.ts +0 -59
  178. package/templates/basic/node_modules/nuclo/dist/when/runtime.d.ts.map +0 -1
  179. package/templates/basic/node_modules/nuclo/package.json +0 -88
  180. package/templates/basic/node_modules/nuclo/types/core/base.d.ts +0 -113
  181. package/templates/basic/node_modules/nuclo/types/features/list.d.ts +0 -38
  182. package/templates/basic/node_modules/nuclo/types/features/on.d.ts +0 -59
  183. package/templates/basic/node_modules/nuclo/types/features/render.d.ts +0 -49
  184. package/templates/basic/node_modules/nuclo/types/features/scope.d.ts +0 -6
  185. package/templates/basic/node_modules/nuclo/types/features/style.d.ts +0 -77
  186. package/templates/basic/node_modules/nuclo/types/features/update.d.ts +0 -6
  187. package/templates/basic/node_modules/nuclo/types/features/when.d.ts +0 -18
  188. package/templates/basic/node_modules/nuclo/types/html/tags.d.ts +0 -119
  189. package/templates/basic/node_modules/nuclo/types/index.d.ts +0 -137
  190. package/templates/basic/node_modules/nuclo/types/polyfill.d.ts +0 -131
  191. package/templates/basic/node_modules/nuclo/types/ssr.d.ts +0 -45
  192. package/templates/basic/node_modules/nuclo/types/style.d.ts +0 -404
  193. package/templates/basic/node_modules/nuclo/types/svg/base.d.ts +0 -118
  194. package/templates/basic/node_modules/nuclo/types/svg/tags.d.ts +0 -68
  195. package/templates/basic/node_modules/picocolors/LICENSE +0 -15
  196. package/templates/basic/node_modules/picocolors/README.md +0 -21
  197. package/templates/basic/node_modules/picocolors/package.json +0 -25
  198. package/templates/basic/node_modules/picocolors/picocolors.browser.js +0 -4
  199. package/templates/basic/node_modules/picocolors/picocolors.d.ts +0 -5
  200. package/templates/basic/node_modules/picocolors/picocolors.js +0 -75
  201. package/templates/basic/node_modules/picocolors/types.d.ts +0 -51
  202. package/templates/basic/node_modules/picomatch/LICENSE +0 -21
  203. package/templates/basic/node_modules/picomatch/README.md +0 -743
  204. package/templates/basic/node_modules/picomatch/index.js +0 -17
  205. package/templates/basic/node_modules/picomatch/lib/constants.js +0 -184
  206. package/templates/basic/node_modules/picomatch/lib/parse.js +0 -1416
  207. package/templates/basic/node_modules/picomatch/lib/picomatch.js +0 -361
  208. package/templates/basic/node_modules/picomatch/lib/scan.js +0 -391
  209. package/templates/basic/node_modules/picomatch/lib/utils.js +0 -72
  210. package/templates/basic/node_modules/picomatch/package.json +0 -83
  211. package/templates/basic/node_modules/picomatch/posix.js +0 -3
  212. package/templates/basic/node_modules/postcss/LICENSE +0 -20
  213. package/templates/basic/node_modules/postcss/README.md +0 -25
  214. package/templates/basic/node_modules/postcss/lib/at-rule.d.ts +0 -139
  215. package/templates/basic/node_modules/postcss/lib/at-rule.js +0 -25
  216. package/templates/basic/node_modules/postcss/lib/comment.d.ts +0 -67
  217. package/templates/basic/node_modules/postcss/lib/comment.js +0 -13
  218. package/templates/basic/node_modules/postcss/lib/container.d.ts +0 -478
  219. package/templates/basic/node_modules/postcss/lib/container.js +0 -447
  220. package/templates/basic/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  221. package/templates/basic/node_modules/postcss/lib/css-syntax-error.js +0 -133
  222. package/templates/basic/node_modules/postcss/lib/declaration.d.ts +0 -150
  223. package/templates/basic/node_modules/postcss/lib/declaration.js +0 -24
  224. package/templates/basic/node_modules/postcss/lib/document.d.ts +0 -68
  225. package/templates/basic/node_modules/postcss/lib/document.js +0 -33
  226. package/templates/basic/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  227. package/templates/basic/node_modules/postcss/lib/fromJSON.js +0 -68
  228. package/templates/basic/node_modules/postcss/lib/input.d.ts +0 -226
  229. package/templates/basic/node_modules/postcss/lib/input.js +0 -276
  230. package/templates/basic/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  231. package/templates/basic/node_modules/postcss/lib/lazy-result.js +0 -563
  232. package/templates/basic/node_modules/postcss/lib/list.d.ts +0 -60
  233. package/templates/basic/node_modules/postcss/lib/list.js +0 -58
  234. package/templates/basic/node_modules/postcss/lib/map-generator.js +0 -376
  235. package/templates/basic/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  236. package/templates/basic/node_modules/postcss/lib/no-work-result.js +0 -137
  237. package/templates/basic/node_modules/postcss/lib/node.d.ts +0 -555
  238. package/templates/basic/node_modules/postcss/lib/node.js +0 -456
  239. package/templates/basic/node_modules/postcss/lib/parse.d.ts +0 -9
  240. package/templates/basic/node_modules/postcss/lib/parse.js +0 -42
  241. package/templates/basic/node_modules/postcss/lib/parser.js +0 -618
  242. package/templates/basic/node_modules/postcss/lib/postcss.d.mts +0 -66
  243. package/templates/basic/node_modules/postcss/lib/postcss.d.ts +0 -461
  244. package/templates/basic/node_modules/postcss/lib/postcss.js +0 -101
  245. package/templates/basic/node_modules/postcss/lib/postcss.mjs +0 -30
  246. package/templates/basic/node_modules/postcss/lib/previous-map.d.ts +0 -80
  247. package/templates/basic/node_modules/postcss/lib/previous-map.js +0 -161
  248. package/templates/basic/node_modules/postcss/lib/processor.d.ts +0 -114
  249. package/templates/basic/node_modules/postcss/lib/processor.js +0 -67
  250. package/templates/basic/node_modules/postcss/lib/result.d.ts +0 -204
  251. package/templates/basic/node_modules/postcss/lib/result.js +0 -42
  252. package/templates/basic/node_modules/postcss/lib/root.d.ts +0 -86
  253. package/templates/basic/node_modules/postcss/lib/root.js +0 -61
  254. package/templates/basic/node_modules/postcss/lib/rule.d.ts +0 -126
  255. package/templates/basic/node_modules/postcss/lib/rule.js +0 -27
  256. package/templates/basic/node_modules/postcss/lib/stringifier.d.ts +0 -45
  257. package/templates/basic/node_modules/postcss/lib/stringifier.js +0 -374
  258. package/templates/basic/node_modules/postcss/lib/stringify.d.ts +0 -9
  259. package/templates/basic/node_modules/postcss/lib/stringify.js +0 -11
  260. package/templates/basic/node_modules/postcss/lib/symbols.js +0 -5
  261. package/templates/basic/node_modules/postcss/lib/terminal-highlight.js +0 -70
  262. package/templates/basic/node_modules/postcss/lib/tokenize.js +0 -270
  263. package/templates/basic/node_modules/postcss/lib/warn-once.js +0 -13
  264. package/templates/basic/node_modules/postcss/lib/warning.d.ts +0 -146
  265. package/templates/basic/node_modules/postcss/lib/warning.js +0 -37
  266. package/templates/basic/node_modules/postcss/package.json +0 -88
  267. package/templates/basic/node_modules/rolldown/LICENSE +0 -25
  268. package/templates/basic/node_modules/rolldown/README.md +0 -11
  269. package/templates/basic/node_modules/rolldown/bin/cli.mjs +0 -2
  270. package/templates/basic/node_modules/rolldown/dist/cli.d.mts +0 -1
  271. package/templates/basic/node_modules/rolldown/dist/cli.mjs +0 -1202
  272. package/templates/basic/node_modules/rolldown/dist/config.d.mts +0 -14
  273. package/templates/basic/node_modules/rolldown/dist/config.mjs +0 -4
  274. package/templates/basic/node_modules/rolldown/dist/experimental-index.d.mts +0 -280
  275. package/templates/basic/node_modules/rolldown/dist/experimental-index.mjs +0 -331
  276. package/templates/basic/node_modules/rolldown/dist/experimental-runtime-types.d.ts +0 -107
  277. package/templates/basic/node_modules/rolldown/dist/filter-index.d.mts +0 -195
  278. package/templates/basic/node_modules/rolldown/dist/filter-index.mjs +0 -380
  279. package/templates/basic/node_modules/rolldown/dist/get-log-filter.d.mts +0 -3
  280. package/templates/basic/node_modules/rolldown/dist/get-log-filter.mjs +0 -68
  281. package/templates/basic/node_modules/rolldown/dist/index.d.mts +0 -4
  282. package/templates/basic/node_modules/rolldown/dist/index.mjs +0 -50
  283. package/templates/basic/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +0 -1
  284. package/templates/basic/node_modules/rolldown/dist/parallel-plugin-worker.mjs +0 -29
  285. package/templates/basic/node_modules/rolldown/dist/parallel-plugin.d.mts +0 -13
  286. package/templates/basic/node_modules/rolldown/dist/parallel-plugin.mjs +0 -6
  287. package/templates/basic/node_modules/rolldown/dist/parse-ast-index.d.mts +0 -32
  288. package/templates/basic/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  289. package/templates/basic/node_modules/rolldown/dist/plugins-index.d.mts +0 -33
  290. package/templates/basic/node_modules/rolldown/dist/plugins-index.mjs +0 -40
  291. package/templates/basic/node_modules/rolldown/dist/shared/binding-B1q9aYT-.d.mts +0 -1947
  292. package/templates/basic/node_modules/rolldown/dist/shared/binding-BmkJW3Wy.mjs +0 -588
  293. package/templates/basic/node_modules/rolldown/dist/shared/bindingify-input-options-BsDhfYrS.mjs +0 -2240
  294. package/templates/basic/node_modules/rolldown/dist/shared/constructors-2i1T9YcF.d.mts +0 -36
  295. package/templates/basic/node_modules/rolldown/dist/shared/constructors-CE6zZSUt.mjs +0 -65
  296. package/templates/basic/node_modules/rolldown/dist/shared/define-config-BBz954-q.d.mts +0 -3901
  297. package/templates/basic/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs +0 -6
  298. package/templates/basic/node_modules/rolldown/dist/shared/error-BlQ0-ek7.mjs +0 -85
  299. package/templates/basic/node_modules/rolldown/dist/shared/get-log-filter-BpNVNJ5-.d.mts +0 -35
  300. package/templates/basic/node_modules/rolldown/dist/shared/load-config-FRmAU9xl.mjs +0 -120
  301. package/templates/basic/node_modules/rolldown/dist/shared/logging-BSNejiLS.d.mts +0 -50
  302. package/templates/basic/node_modules/rolldown/dist/shared/logs-aMKUxRpj.mjs +0 -180
  303. package/templates/basic/node_modules/rolldown/dist/shared/misc-CoQm4NHO.mjs +0 -21
  304. package/templates/basic/node_modules/rolldown/dist/shared/normalize-string-or-regex-BYkbbGqQ.mjs +0 -68
  305. package/templates/basic/node_modules/rolldown/dist/shared/parse-DVMnkavl.mjs +0 -74
  306. package/templates/basic/node_modules/rolldown/dist/shared/prompt-B1Yc1NPt.mjs +0 -847
  307. package/templates/basic/node_modules/rolldown/dist/shared/resolve-tsconfig-CdIAR1Eb.mjs +0 -124
  308. package/templates/basic/node_modules/rolldown/dist/shared/rolldown-build-aV0QeeTW.mjs +0 -3264
  309. package/templates/basic/node_modules/rolldown/dist/shared/rolldown-tbHvKzVl.mjs +0 -40
  310. package/templates/basic/node_modules/rolldown/dist/shared/transform-CEmFsvJW.d.mts +0 -149
  311. package/templates/basic/node_modules/rolldown/dist/shared/watch-DIhJ-T1s.mjs +0 -374
  312. package/templates/basic/node_modules/rolldown/dist/utils-index.d.mts +0 -376
  313. package/templates/basic/node_modules/rolldown/dist/utils-index.mjs +0 -2414
  314. package/templates/basic/node_modules/rolldown/package.json +0 -153
  315. package/templates/basic/node_modules/source-map-js/LICENSE +0 -28
  316. package/templates/basic/node_modules/source-map-js/README.md +0 -765
  317. package/templates/basic/node_modules/source-map-js/lib/array-set.js +0 -121
  318. package/templates/basic/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  319. package/templates/basic/node_modules/source-map-js/lib/base64.js +0 -67
  320. package/templates/basic/node_modules/source-map-js/lib/binary-search.js +0 -111
  321. package/templates/basic/node_modules/source-map-js/lib/mapping-list.js +0 -79
  322. package/templates/basic/node_modules/source-map-js/lib/quick-sort.js +0 -132
  323. package/templates/basic/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  324. package/templates/basic/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  325. package/templates/basic/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  326. package/templates/basic/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  327. package/templates/basic/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  328. package/templates/basic/node_modules/source-map-js/lib/source-node.js +0 -413
  329. package/templates/basic/node_modules/source-map-js/lib/util.js +0 -594
  330. package/templates/basic/node_modules/source-map-js/package.json +0 -71
  331. package/templates/basic/node_modules/source-map-js/source-map.d.ts +0 -104
  332. package/templates/basic/node_modules/source-map-js/source-map.js +0 -8
  333. package/templates/basic/node_modules/tinyglobby/LICENSE +0 -21
  334. package/templates/basic/node_modules/tinyglobby/README.md +0 -25
  335. package/templates/basic/node_modules/tinyglobby/dist/index.cjs +0 -335
  336. package/templates/basic/node_modules/tinyglobby/dist/index.d.cts +0 -148
  337. package/templates/basic/node_modules/tinyglobby/dist/index.d.mts +0 -148
  338. package/templates/basic/node_modules/tinyglobby/dist/index.mjs +0 -307
  339. package/templates/basic/node_modules/tinyglobby/package.json +0 -70
  340. package/templates/basic/node_modules/typescript/LICENSE.txt +0 -55
  341. package/templates/basic/node_modules/typescript/README.md +0 -50
  342. package/templates/basic/node_modules/typescript/SECURITY.md +0 -39
  343. package/templates/basic/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  344. package/templates/basic/node_modules/typescript/bin/tsc +0 -2
  345. package/templates/basic/node_modules/typescript/bin/tsserver +0 -2
  346. package/templates/basic/node_modules/typescript/lib/_tsc.js +0 -134465
  347. package/templates/basic/node_modules/typescript/lib/_tsserver.js +0 -659
  348. package/templates/basic/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  349. package/templates/basic/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2129
  350. package/templates/basic/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2125
  351. package/templates/basic/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2129
  352. package/templates/basic/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2129
  353. package/templates/basic/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2125
  354. package/templates/basic/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2129
  355. package/templates/basic/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2129
  356. package/templates/basic/node_modules/typescript/lib/lib.d.ts +0 -20
  357. package/templates/basic/node_modules/typescript/lib/lib.decorators.d.ts +0 -382
  358. package/templates/basic/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -20
  359. package/templates/basic/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -18
  360. package/templates/basic/node_modules/typescript/lib/lib.dom.d.ts +0 -45125
  361. package/templates/basic/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -18
  362. package/templates/basic/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -150
  363. package/templates/basic/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -595
  364. package/templates/basic/node_modules/typescript/lib/lib.es2015.d.ts +0 -26
  365. package/templates/basic/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -75
  366. package/templates/basic/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -603
  367. package/templates/basic/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -79
  368. package/templates/basic/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -126
  369. package/templates/basic/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -142
  370. package/templates/basic/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -44
  371. package/templates/basic/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -324
  372. package/templates/basic/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -114
  373. package/templates/basic/node_modules/typescript/lib/lib.es2016.d.ts +0 -19
  374. package/templates/basic/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -21
  375. package/templates/basic/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -29
  376. package/templates/basic/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -19
  377. package/templates/basic/node_modules/typescript/lib/lib.es2017.d.ts +0 -24
  378. package/templates/basic/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -29
  379. package/templates/basic/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -21
  380. package/templates/basic/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -42
  381. package/templates/basic/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -47
  382. package/templates/basic/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -133
  383. package/templates/basic/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -43
  384. package/templates/basic/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -51
  385. package/templates/basic/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -75
  386. package/templates/basic/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -51
  387. package/templates/basic/node_modules/typescript/lib/lib.es2018.d.ts +0 -22
  388. package/templates/basic/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -22
  389. package/templates/basic/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -81
  390. package/templates/basic/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -28
  391. package/templates/basic/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -35
  392. package/templates/basic/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -77
  393. package/templates/basic/node_modules/typescript/lib/lib.es2019.d.ts +0 -22
  394. package/templates/basic/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -22
  395. package/templates/basic/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -21
  396. package/templates/basic/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -31
  397. package/templates/basic/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -35
  398. package/templates/basic/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -22
  399. package/templates/basic/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -763
  400. package/templates/basic/node_modules/typescript/lib/lib.es2020.d.ts +0 -25
  401. package/templates/basic/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -40
  402. package/templates/basic/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -22
  403. package/templates/basic/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -472
  404. package/templates/basic/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -26
  405. package/templates/basic/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -45
  406. package/templates/basic/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -97
  407. package/templates/basic/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -42
  408. package/templates/basic/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -39
  409. package/templates/basic/node_modules/typescript/lib/lib.es2021.d.ts +0 -21
  410. package/templates/basic/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -22
  411. package/templates/basic/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -164
  412. package/templates/basic/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -46
  413. package/templates/basic/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -31
  414. package/templates/basic/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -76
  415. package/templates/basic/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -119
  416. package/templates/basic/node_modules/typescript/lib/lib.es2022.d.ts +0 -23
  417. package/templates/basic/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -73
  418. package/templates/basic/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -22
  419. package/templates/basic/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -143
  420. package/templates/basic/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -24
  421. package/templates/basic/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -37
  422. package/templates/basic/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -23
  423. package/templates/basic/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -922
  424. package/templates/basic/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -19
  425. package/templates/basic/node_modules/typescript/lib/lib.es2023.d.ts +0 -20
  426. package/templates/basic/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -22
  427. package/templates/basic/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -62
  428. package/templates/basic/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -63
  429. package/templates/basic/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -27
  430. package/templates/basic/node_modules/typescript/lib/lib.es2024.d.ts +0 -24
  431. package/templates/basic/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -22
  432. package/templates/basic/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -27
  433. package/templates/basic/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -33
  434. package/templates/basic/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -23
  435. package/templates/basic/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -66
  436. package/templates/basic/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -27
  437. package/templates/basic/node_modules/typescript/lib/lib.es2025.collection.d.ts +0 -94
  438. package/templates/basic/node_modules/typescript/lib/lib.es2025.d.ts +0 -23
  439. package/templates/basic/node_modules/typescript/lib/lib.es2025.float16.d.ts +0 -443
  440. package/templates/basic/node_modules/typescript/lib/lib.es2025.full.d.ts +0 -22
  441. package/templates/basic/node_modules/typescript/lib/lib.es2025.intl.d.ts +0 -200
  442. package/templates/basic/node_modules/typescript/lib/lib.es2025.iterator.d.ts +0 -146
  443. package/templates/basic/node_modules/typescript/lib/lib.es2025.promise.d.ts +0 -32
  444. package/templates/basic/node_modules/typescript/lib/lib.es2025.regexp.d.ts +0 -30
  445. package/templates/basic/node_modules/typescript/lib/lib.es5.d.ts +0 -4599
  446. package/templates/basic/node_modules/typescript/lib/lib.es6.d.ts +0 -21
  447. package/templates/basic/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -33
  448. package/templates/basic/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -47
  449. package/templates/basic/node_modules/typescript/lib/lib.esnext.d.ts +0 -27
  450. package/templates/basic/node_modules/typescript/lib/lib.esnext.date.d.ts +0 -21
  451. package/templates/basic/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -26
  452. package/templates/basic/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -191
  453. package/templates/basic/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -22
  454. package/templates/basic/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -22
  455. package/templates/basic/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -107
  456. package/templates/basic/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -23
  457. package/templates/basic/node_modules/typescript/lib/lib.esnext.temporal.d.ts +0 -485
  458. package/templates/basic/node_modules/typescript/lib/lib.esnext.typedarrays.d.ts +0 -90
  459. package/templates/basic/node_modules/typescript/lib/lib.scripthost.d.ts +0 -320
  460. package/templates/basic/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -18
  461. package/templates/basic/node_modules/typescript/lib/lib.webworker.d.ts +0 -15606
  462. package/templates/basic/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -21
  463. package/templates/basic/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -18
  464. package/templates/basic/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2129
  465. package/templates/basic/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2129
  466. package/templates/basic/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2125
  467. package/templates/basic/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2129
  468. package/templates/basic/node_modules/typescript/lib/tsc.js +0 -8
  469. package/templates/basic/node_modules/typescript/lib/tsserver.js +0 -8
  470. package/templates/basic/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  471. package/templates/basic/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  472. package/templates/basic/node_modules/typescript/lib/typesMap.json +0 -497
  473. package/templates/basic/node_modules/typescript/lib/typescript.d.ts +0 -11448
  474. package/templates/basic/node_modules/typescript/lib/typescript.js +0 -201039
  475. package/templates/basic/node_modules/typescript/lib/typingsInstaller.js +0 -8
  476. package/templates/basic/node_modules/typescript/lib/watchGuard.js +0 -53
  477. package/templates/basic/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2129
  478. package/templates/basic/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2125
  479. package/templates/basic/node_modules/typescript/package.json +0 -118
  480. package/templates/basic/node_modules/vite/LICENSE.md +0 -2287
  481. package/templates/basic/node_modules/vite/README.md +0 -20
  482. package/templates/basic/node_modules/vite/bin/openChrome.js +0 -68
  483. package/templates/basic/node_modules/vite/bin/vite.js +0 -79
  484. package/templates/basic/node_modules/vite/client.d.ts +0 -285
  485. package/templates/basic/node_modules/vite/dist/client/client.mjs +0 -1269
  486. package/templates/basic/node_modules/vite/dist/client/env.mjs +0 -18
  487. package/templates/basic/node_modules/vite/dist/node/chunks/build.js +0 -5371
  488. package/templates/basic/node_modules/vite/dist/node/chunks/dist.js +0 -6784
  489. package/templates/basic/node_modules/vite/dist/node/chunks/lib.js +0 -371
  490. package/templates/basic/node_modules/vite/dist/node/chunks/logger.js +0 -364
  491. package/templates/basic/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +0 -96
  492. package/templates/basic/node_modules/vite/dist/node/chunks/node.js +0 -35836
  493. package/templates/basic/node_modules/vite/dist/node/chunks/postcss-import.js +0 -467
  494. package/templates/basic/node_modules/vite/dist/node/cli.js +0 -836
  495. package/templates/basic/node_modules/vite/dist/node/index.d.ts +0 -4011
  496. package/templates/basic/node_modules/vite/dist/node/index.js +0 -3
  497. package/templates/basic/node_modules/vite/dist/node/internal.d.ts +0 -2
  498. package/templates/basic/node_modules/vite/dist/node/internal.js +0 -2
  499. package/templates/basic/node_modules/vite/dist/node/module-runner.d.ts +0 -314
  500. package/templates/basic/node_modules/vite/dist/node/module-runner.js +0 -1274
  501. package/templates/basic/node_modules/vite/misc/false.js +0 -1
  502. package/templates/basic/node_modules/vite/misc/true.js +0 -1
  503. package/templates/basic/node_modules/vite/package.json +0 -194
  504. package/templates/basic/node_modules/vite/types/customEvent.d.ts +0 -79
  505. package/templates/basic/node_modules/vite/types/hmrPayload.d.ts +0 -80
  506. package/templates/basic/node_modules/vite/types/hot.d.ts +0 -39
  507. package/templates/basic/node_modules/vite/types/import-meta.d.ts +0 -5
  508. package/templates/basic/node_modules/vite/types/importGlob.d.ts +0 -131
  509. package/templates/basic/node_modules/vite/types/importMeta.d.ts +0 -30
  510. package/templates/basic/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +0 -44
  511. package/templates/basic/node_modules/vite/types/internal/esbuildOptions.d.ts +0 -28
  512. package/templates/basic/node_modules/vite/types/internal/lightningcssOptions.d.ts +0 -18
  513. package/templates/basic/node_modules/vite/types/internal/rollupTypeCompat.d.ts +0 -24
  514. package/templates/basic/node_modules/vite/types/internal/terserOptions.d.ts +0 -11
  515. package/templates/basic/node_modules/vite/types/metadata.d.ts +0 -47
  516. package/templates/basic/package-lock.json +0 -926
@@ -1,1269 +0,0 @@
1
- import "@vite/env";
2
- //#region ../../node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/non-secure/index.js
3
- let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
4
- let nanoid = (size = 21) => {
5
- let id = "";
6
- let i = size | 0;
7
- while (i-- > 0) id += urlAlphabet[Math.random() * 64 | 0];
8
- return id;
9
- };
10
- //#endregion
11
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/typeof.js
12
- function _typeof(o) {
13
- "@babel/helpers - typeof";
14
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
15
- return typeof o;
16
- } : function(o) {
17
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
18
- }, _typeof(o);
19
- }
20
- //#endregion
21
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPrimitive.js
22
- function toPrimitive(t, r) {
23
- if ("object" != _typeof(t) || !t) return t;
24
- var e = t[Symbol.toPrimitive];
25
- if (void 0 !== e) {
26
- var i = e.call(t, r || "default");
27
- if ("object" != _typeof(i)) return i;
28
- throw new TypeError("@@toPrimitive must return a primitive value.");
29
- }
30
- return ("string" === r ? String : Number)(t);
31
- }
32
- //#endregion
33
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/toPropertyKey.js
34
- function toPropertyKey(t) {
35
- var i = toPrimitive(t, "string");
36
- return "symbol" == _typeof(i) ? i : i + "";
37
- }
38
- //#endregion
39
- //#region \0@oxc-project+runtime@0.137.0/helpers/esm/defineProperty.js
40
- function _defineProperty(e, r, t) {
41
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
42
- value: t,
43
- enumerable: !0,
44
- configurable: !0,
45
- writable: !0
46
- }) : e[r] = t, e;
47
- }
48
- //#endregion
49
- //#region src/shared/hmr.ts
50
- var HMRContext = class {
51
- constructor(hmrClient, ownerPath) {
52
- this.hmrClient = hmrClient;
53
- this.ownerPath = ownerPath;
54
- _defineProperty(this, "newListeners", void 0);
55
- if (!hmrClient.dataMap.has(ownerPath)) hmrClient.dataMap.set(ownerPath, {});
56
- const mod = hmrClient.hotModulesMap.get(ownerPath);
57
- if (mod) mod.callbacks = [];
58
- const staleListeners = hmrClient.ctxToListenersMap.get(ownerPath);
59
- if (staleListeners) for (const [event, staleFns] of staleListeners) {
60
- const listeners = hmrClient.customListenersMap.get(event);
61
- if (listeners) hmrClient.customListenersMap.set(event, listeners.filter((l) => !staleFns.includes(l)));
62
- }
63
- this.newListeners = /* @__PURE__ */ new Map();
64
- hmrClient.ctxToListenersMap.set(ownerPath, this.newListeners);
65
- }
66
- get data() {
67
- return this.hmrClient.dataMap.get(this.ownerPath);
68
- }
69
- accept(deps, callback) {
70
- if (typeof deps === "function" || !deps) this.acceptDeps([this.ownerPath], ([mod]) => deps?.(mod));
71
- else if (typeof deps === "string") this.acceptDeps([deps], ([mod]) => callback?.(mod));
72
- else if (Array.isArray(deps)) this.acceptDeps(deps, callback);
73
- else throw new Error(`invalid hot.accept() usage.`);
74
- }
75
- acceptExports(_, callback) {
76
- this.acceptDeps([this.ownerPath], ([mod]) => callback?.(mod));
77
- }
78
- dispose(cb) {
79
- this.hmrClient.disposeMap.set(this.ownerPath, cb);
80
- }
81
- prune(cb) {
82
- this.hmrClient.pruneMap.set(this.ownerPath, cb);
83
- }
84
- decline() {}
85
- invalidate(message) {
86
- const firstInvalidatedBy = this.hmrClient.currentFirstInvalidatedBy ?? this.ownerPath;
87
- this.hmrClient.notifyListeners("vite:invalidate", {
88
- path: this.ownerPath,
89
- message,
90
- firstInvalidatedBy
91
- });
92
- this.send("vite:invalidate", {
93
- path: this.ownerPath,
94
- message,
95
- firstInvalidatedBy
96
- });
97
- this.hmrClient.logger.debug(`invalidate ${this.ownerPath}${message ? `: ${message}` : ""}`);
98
- }
99
- on(event, cb) {
100
- const addToMap = (map) => {
101
- const existing = map.get(event) || [];
102
- existing.push(cb);
103
- map.set(event, existing);
104
- };
105
- addToMap(this.hmrClient.customListenersMap);
106
- addToMap(this.newListeners);
107
- }
108
- off(event, cb) {
109
- const removeFromMap = (map) => {
110
- const existing = map.get(event);
111
- if (existing === void 0) return;
112
- const pruned = existing.filter((l) => l !== cb);
113
- if (pruned.length === 0) {
114
- map.delete(event);
115
- return;
116
- }
117
- map.set(event, pruned);
118
- };
119
- removeFromMap(this.hmrClient.customListenersMap);
120
- removeFromMap(this.newListeners);
121
- }
122
- send(event, data) {
123
- this.hmrClient.send({
124
- type: "custom",
125
- event,
126
- data
127
- });
128
- }
129
- acceptDeps(deps, callback = () => {}) {
130
- const mod = this.hmrClient.hotModulesMap.get(this.ownerPath) || {
131
- id: this.ownerPath,
132
- callbacks: []
133
- };
134
- mod.callbacks.push({
135
- deps,
136
- fn: callback
137
- });
138
- this.hmrClient.hotModulesMap.set(this.ownerPath, mod);
139
- }
140
- };
141
- var HMRClient = class {
142
- constructor(logger, transport, importUpdatedModule) {
143
- this.logger = logger;
144
- this.transport = transport;
145
- this.importUpdatedModule = importUpdatedModule;
146
- _defineProperty(this, "hotModulesMap", /* @__PURE__ */ new Map());
147
- _defineProperty(this, "disposeMap", /* @__PURE__ */ new Map());
148
- _defineProperty(this, "pruneMap", /* @__PURE__ */ new Map());
149
- _defineProperty(this, "dataMap", /* @__PURE__ */ new Map());
150
- _defineProperty(this, "customListenersMap", /* @__PURE__ */ new Map());
151
- _defineProperty(this, "ctxToListenersMap", /* @__PURE__ */ new Map());
152
- _defineProperty(this, "currentFirstInvalidatedBy", void 0);
153
- _defineProperty(this, "updateQueue", []);
154
- _defineProperty(this, "pendingUpdateQueue", false);
155
- }
156
- async notifyListeners(event, data) {
157
- const cbs = this.customListenersMap.get(event);
158
- if (cbs) await Promise.allSettled(cbs.map((cb) => cb(data)));
159
- }
160
- send(payload) {
161
- this.transport.send(payload).catch((err) => {
162
- this.logger.error(err);
163
- });
164
- }
165
- clear() {
166
- this.hotModulesMap.clear();
167
- this.disposeMap.clear();
168
- this.pruneMap.clear();
169
- this.dataMap.clear();
170
- this.customListenersMap.clear();
171
- this.ctxToListenersMap.clear();
172
- }
173
- async prunePaths(paths) {
174
- await Promise.all(paths.map((path) => {
175
- const disposer = this.disposeMap.get(path);
176
- if (disposer) return disposer(this.dataMap.get(path));
177
- }));
178
- await Promise.all(paths.map((path) => {
179
- const fn = this.pruneMap.get(path);
180
- if (fn) return fn(this.dataMap.get(path));
181
- }));
182
- }
183
- warnFailedUpdate(err, path) {
184
- if (!(err instanceof Error) || !err.message.includes("fetch")) this.logger.error(err);
185
- this.logger.error(`Failed to reload ${path}. This could be due to syntax errors or importing non-existent modules. (see errors above)`);
186
- }
187
- /**
188
- * buffer multiple hot updates triggered by the same src change
189
- * so that they are invoked in the same order they were sent.
190
- * (otherwise the order may be inconsistent because of the http request round trip)
191
- */
192
- async queueUpdate(payload) {
193
- this.updateQueue.push(this.fetchUpdate(payload));
194
- if (!this.pendingUpdateQueue) {
195
- this.pendingUpdateQueue = true;
196
- await Promise.resolve();
197
- this.pendingUpdateQueue = false;
198
- const loading = [...this.updateQueue];
199
- this.updateQueue = [];
200
- (await Promise.all(loading)).forEach((fn) => fn && fn());
201
- }
202
- }
203
- async fetchUpdate(update) {
204
- const { path, acceptedPath, firstInvalidatedBy } = update;
205
- const mod = this.hotModulesMap.get(path);
206
- if (!mod) return;
207
- let fetchedModule;
208
- const isSelfUpdate = path === acceptedPath;
209
- const qualifiedCallbacks = mod.callbacks.filter(({ deps }) => deps.includes(acceptedPath));
210
- if (isSelfUpdate || qualifiedCallbacks.length > 0) {
211
- const disposer = this.disposeMap.get(acceptedPath);
212
- if (disposer) await disposer(this.dataMap.get(acceptedPath));
213
- try {
214
- fetchedModule = await this.importUpdatedModule(update);
215
- } catch (e) {
216
- this.warnFailedUpdate(e, acceptedPath);
217
- }
218
- }
219
- return () => {
220
- try {
221
- this.currentFirstInvalidatedBy = firstInvalidatedBy;
222
- for (const { deps, fn } of qualifiedCallbacks) fn(deps.map((dep) => dep === acceptedPath ? fetchedModule : void 0));
223
- const loggedPath = isSelfUpdate ? path : `${acceptedPath} via ${path}`;
224
- this.logger.debug(`hot updated: ${loggedPath}`);
225
- } finally {
226
- this.currentFirstInvalidatedBy = void 0;
227
- }
228
- };
229
- }
230
- };
231
- //#endregion
232
- //#region src/shared/constants.ts
233
- let SOURCEMAPPING_URL = "sourceMa";
234
- SOURCEMAPPING_URL += "ppingURL";
235
- typeof process !== "undefined" && process.platform;
236
- (async function() {}).constructor;
237
- function promiseWithResolvers() {
238
- let resolve;
239
- let reject;
240
- return {
241
- promise: new Promise((_resolve, _reject) => {
242
- resolve = _resolve;
243
- reject = _reject;
244
- }),
245
- resolve,
246
- reject
247
- };
248
- }
249
- //#endregion
250
- //#region src/shared/moduleRunnerTransport.ts
251
- function reviveInvokeError(e) {
252
- const error = new Error(e.message || "Unknown invoke error");
253
- Object.assign(error, e, { runnerError: /* @__PURE__ */ new Error("RunnerError") });
254
- return error;
255
- }
256
- const createInvokeableTransport = (transport) => {
257
- if (transport.invoke) return {
258
- ...transport,
259
- async invoke(name, data) {
260
- const result = await transport.invoke({
261
- type: "custom",
262
- event: "vite:invoke",
263
- data: {
264
- id: "send",
265
- name,
266
- data
267
- }
268
- });
269
- if ("error" in result) throw reviveInvokeError(result.error);
270
- return result.result;
271
- }
272
- };
273
- if (!transport.send || !transport.connect) throw new Error("transport must implement send and connect when invoke is not implemented");
274
- const rpcPromises = /* @__PURE__ */ new Map();
275
- return {
276
- ...transport,
277
- connect({ onMessage, onDisconnection }) {
278
- return transport.connect({
279
- onMessage(payload) {
280
- if (payload.type === "custom" && payload.event === "vite:invoke") {
281
- const data = payload.data;
282
- if (data.id.startsWith("response:")) {
283
- const invokeId = data.id.slice(9);
284
- const promise = rpcPromises.get(invokeId);
285
- if (!promise) return;
286
- if (promise.timeoutId) clearTimeout(promise.timeoutId);
287
- rpcPromises.delete(invokeId);
288
- const { error, result } = data.data;
289
- if (error) promise.reject(error);
290
- else promise.resolve(result);
291
- return;
292
- }
293
- }
294
- onMessage(payload);
295
- },
296
- onDisconnection
297
- });
298
- },
299
- disconnect() {
300
- rpcPromises.forEach((promise) => {
301
- promise.reject(/* @__PURE__ */ new Error(`transport was disconnected, cannot call ${JSON.stringify(promise.name)}`));
302
- });
303
- rpcPromises.clear();
304
- return transport.disconnect?.();
305
- },
306
- send(data) {
307
- return transport.send(data);
308
- },
309
- async invoke(name, data) {
310
- const promiseId = nanoid();
311
- const wrappedData = {
312
- type: "custom",
313
- event: "vite:invoke",
314
- data: {
315
- name,
316
- id: `send:${promiseId}`,
317
- data
318
- }
319
- };
320
- const sendPromise = transport.send(wrappedData);
321
- const { promise, resolve, reject } = promiseWithResolvers();
322
- const timeout = transport.timeout ?? 6e4;
323
- let timeoutId;
324
- if (timeout > 0) {
325
- timeoutId = setTimeout(() => {
326
- rpcPromises.delete(promiseId);
327
- reject(/* @__PURE__ */ new Error(`transport invoke timed out after ${timeout}ms (data: ${JSON.stringify(wrappedData)})`));
328
- }, timeout);
329
- timeoutId?.unref?.();
330
- }
331
- rpcPromises.set(promiseId, {
332
- resolve,
333
- reject,
334
- name,
335
- timeoutId
336
- });
337
- if (sendPromise) sendPromise.catch((err) => {
338
- clearTimeout(timeoutId);
339
- rpcPromises.delete(promiseId);
340
- reject(err);
341
- });
342
- try {
343
- return await promise;
344
- } catch (err) {
345
- throw reviveInvokeError(err);
346
- }
347
- }
348
- };
349
- };
350
- const normalizeModuleRunnerTransport = (transport) => {
351
- const invokeableTransport = createInvokeableTransport(transport);
352
- let isConnected = !invokeableTransport.connect;
353
- let connectingPromise;
354
- return {
355
- ...transport,
356
- ...invokeableTransport.connect ? { async connect(onMessage) {
357
- if (isConnected) return;
358
- if (connectingPromise) {
359
- await connectingPromise;
360
- return;
361
- }
362
- const maybePromise = invokeableTransport.connect({
363
- onMessage: onMessage ?? (() => {}),
364
- onDisconnection() {
365
- isConnected = false;
366
- }
367
- });
368
- if (maybePromise) {
369
- connectingPromise = maybePromise;
370
- await connectingPromise;
371
- connectingPromise = void 0;
372
- }
373
- isConnected = true;
374
- } } : {},
375
- ...invokeableTransport.disconnect ? { async disconnect() {
376
- if (!isConnected) return;
377
- if (connectingPromise) await connectingPromise;
378
- isConnected = false;
379
- await invokeableTransport.disconnect();
380
- } } : {},
381
- async send(data) {
382
- if (!invokeableTransport.send) return;
383
- if (!isConnected) if (connectingPromise) await connectingPromise;
384
- else throw new SendBeforeConnectError("send was called before connect");
385
- await invokeableTransport.send(data);
386
- },
387
- async invoke(name, data) {
388
- if (!isConnected) if (connectingPromise) await connectingPromise;
389
- else throw new SendBeforeConnectError("invoke was called before connect");
390
- return invokeableTransport.invoke(name, data);
391
- }
392
- };
393
- };
394
- var SendBeforeConnectError = class extends Error {
395
- constructor(message) {
396
- super(message);
397
- this.name = "SendBeforeConnectError";
398
- }
399
- };
400
- const createWebSocketModuleRunnerTransport = (options) => {
401
- const pingInterval = options.pingInterval ?? 3e4;
402
- let ws;
403
- let pingIntervalId;
404
- return {
405
- async connect({ onMessage, onDisconnection }) {
406
- const socket = options.createConnection();
407
- socket.addEventListener("message", ({ data }) => {
408
- onMessage(JSON.parse(data));
409
- });
410
- let isOpened = socket.readyState === socket.OPEN;
411
- if (!isOpened) await new Promise((resolve, reject) => {
412
- socket.addEventListener("open", () => {
413
- isOpened = true;
414
- resolve();
415
- }, { once: true });
416
- socket.addEventListener("close", () => {
417
- if (!isOpened) {
418
- reject(/* @__PURE__ */ new Error("WebSocket closed without opened."));
419
- return;
420
- }
421
- onMessage({
422
- type: "custom",
423
- event: "vite:ws:disconnect",
424
- data: { webSocket: socket }
425
- });
426
- onDisconnection();
427
- });
428
- });
429
- onMessage({
430
- type: "custom",
431
- event: "vite:ws:connect",
432
- data: { webSocket: socket }
433
- });
434
- ws = socket;
435
- pingIntervalId = setInterval(() => {
436
- if (socket.readyState === socket.OPEN) socket.send(JSON.stringify({ type: "ping" }));
437
- }, pingInterval);
438
- },
439
- disconnect() {
440
- clearInterval(pingIntervalId);
441
- ws?.close();
442
- },
443
- send(data) {
444
- ws.send(JSON.stringify(data));
445
- }
446
- };
447
- };
448
- //#endregion
449
- //#region src/shared/hmrHandler.ts
450
- function createHMRHandler(handler) {
451
- const queue = new Queue();
452
- return (payload) => queue.enqueue(() => handler(payload));
453
- }
454
- var Queue = class {
455
- constructor() {
456
- _defineProperty(this, "queue", []);
457
- _defineProperty(this, "pending", false);
458
- }
459
- enqueue(promise) {
460
- return new Promise((resolve, reject) => {
461
- this.queue.push({
462
- promise,
463
- resolve,
464
- reject
465
- });
466
- this.dequeue();
467
- });
468
- }
469
- dequeue() {
470
- if (this.pending) return false;
471
- const item = this.queue.shift();
472
- if (!item) return false;
473
- this.pending = true;
474
- item.promise().then(item.resolve).catch(item.reject).finally(() => {
475
- this.pending = false;
476
- this.dequeue();
477
- });
478
- return true;
479
- }
480
- };
481
- //#endregion
482
- //#region src/shared/forwardConsole.ts
483
- function setupForwardConsoleHandler(transport, options, console = globalThis.console) {
484
- if (!options.enabled) return;
485
- async function sendError(type, error) {
486
- await transport.send({
487
- type: "custom",
488
- event: "vite:forward-console",
489
- data: {
490
- type,
491
- data: {
492
- name: error?.name || "Unknown Error",
493
- message: error?.message || String(error),
494
- stack: error?.stack
495
- }
496
- }
497
- });
498
- }
499
- async function sendLog(level, args) {
500
- try {
501
- await transport.send({
502
- type: "custom",
503
- event: "vite:forward-console",
504
- data: {
505
- type: "log",
506
- data: {
507
- level,
508
- message: formatConsoleArgs(args)
509
- }
510
- }
511
- });
512
- } catch (err) {
513
- try {
514
- await sendError("unhandled-rejection", err);
515
- } catch (err) {
516
- if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
517
- }
518
- }
519
- }
520
- const originalConsoleError = console.error;
521
- for (const level of options.logLevels) {
522
- const original = console[level];
523
- if (typeof original !== "function") continue;
524
- console[level] = (...args) => {
525
- original(...args);
526
- sendLog(level, args);
527
- };
528
- }
529
- if (options.unhandledErrors && typeof window !== "undefined") {
530
- window.addEventListener("error", async (event) => {
531
- const error = event.error ?? (event.message ? new Error(event.message) : event);
532
- try {
533
- await sendError("error", error);
534
- } catch (err) {
535
- if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
536
- }
537
- });
538
- window.addEventListener("unhandledrejection", async (event) => {
539
- try {
540
- await sendError("unhandled-rejection", event.reason);
541
- } catch (err) {
542
- if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
543
- }
544
- });
545
- }
546
- }
547
- function formatConsoleArgs(args) {
548
- if (args.length === 0) return "";
549
- if (typeof args[0] !== "string") return args.map((arg) => stringifyConsoleArg(arg)).join(" ");
550
- const len = args.length;
551
- let i = 1;
552
- let message = args[0].replace(/%[sdjifoOc%]/g, (specifier) => {
553
- if (specifier === "%%") return "%";
554
- if (i >= len) return specifier;
555
- const arg = args[i++];
556
- switch (specifier) {
557
- case "%s":
558
- if (typeof arg === "bigint") return `${arg.toString()}n`;
559
- return typeof arg === "object" && arg != null ? stringifyConsoleArg(arg) : String(arg);
560
- case "%d":
561
- if (typeof arg === "bigint") return `${arg.toString()}n`;
562
- if (typeof arg === "symbol") return "NaN";
563
- return Number(arg).toString();
564
- case "%i":
565
- if (typeof arg === "bigint") return `${arg.toString()}n`;
566
- return Number.parseInt(String(arg), 10).toString();
567
- case "%f": return Number.parseFloat(String(arg)).toString();
568
- case "%o":
569
- case "%O": return stringifyConsoleArg(arg);
570
- case "%j": try {
571
- return JSON.stringify(arg) ?? "undefined";
572
- } catch {
573
- return "[Circular]";
574
- }
575
- case "%c": return "";
576
- default: return specifier;
577
- }
578
- });
579
- for (let arg = args[i]; i < len; arg = args[++i]) if (arg == null || typeof arg !== "object") message += ` ${typeof arg === "symbol" ? arg.toString() : String(arg)}`;
580
- else message += ` ${stringifyConsoleArg(arg)}`;
581
- return message;
582
- }
583
- function stringifyConsoleArg(value) {
584
- if (typeof value === "string") return value;
585
- if (typeof value === "number" || typeof value === "boolean" || typeof value === "undefined") return String(value);
586
- if (typeof value === "symbol") return value.toString();
587
- if (typeof value === "function") return value.name ? `[Function: ${value.name}]` : "[Function]";
588
- if (value instanceof Error) return value.stack || `${value.name}: ${value.message}`;
589
- if (typeof value === "bigint") return `${value}n`;
590
- const seen = /* @__PURE__ */ new WeakSet();
591
- try {
592
- return JSON.stringify(value, (_, nested) => {
593
- if (typeof nested === "bigint") return `${nested}n`;
594
- if (nested instanceof Error) return {
595
- name: nested.name,
596
- message: nested.message,
597
- stack: nested.stack
598
- };
599
- if (nested && typeof nested === "object") {
600
- if (seen.has(nested)) return "[Circular]";
601
- seen.add(nested);
602
- }
603
- return nested;
604
- }) ?? String(value);
605
- } catch {
606
- return String(value);
607
- }
608
- }
609
- //#endregion
610
- //#region src/client/overlay.ts
611
- const hmrConfigName = __HMR_CONFIG_NAME__;
612
- const base$1 = __BASE__ || "/";
613
- const cspNonce = "document" in globalThis ? document.querySelector("meta[property=csp-nonce]")?.nonce : void 0;
614
- function h(e, attrs = {}, ...children) {
615
- const elem = document.createElement(e);
616
- for (const [k, v] of Object.entries(attrs)) if (v !== void 0) elem.setAttribute(k, v);
617
- elem.append(...children);
618
- return elem;
619
- }
620
- const templateStyle = `
621
- :host {
622
- position: fixed;
623
- top: 0;
624
- left: 0;
625
- width: 100%;
626
- height: 100%;
627
- z-index: 99999;
628
- --monospace: 'SFMono-Regular', Consolas,
629
- 'Liberation Mono', Menlo, Courier, monospace;
630
- --red: #ff5555;
631
- --yellow: #e2aa53;
632
- --purple: #cfa4ff;
633
- --cyan: #2dd9da;
634
- --dim: #c9c9c9;
635
-
636
- --window-background: #181818;
637
- --window-color: #d8d8d8;
638
- }
639
-
640
- .backdrop {
641
- position: fixed;
642
- z-index: 99999;
643
- top: 0;
644
- left: 0;
645
- width: 100%;
646
- height: 100%;
647
- overflow-y: scroll;
648
- margin: 0;
649
- background: rgba(0, 0, 0, 0.66);
650
- }
651
-
652
- .window {
653
- font-family: var(--monospace);
654
- line-height: 1.5;
655
- max-width: 80vw;
656
- color: var(--window-color);
657
- box-sizing: border-box;
658
- margin: 30px auto;
659
- padding: 2.5vh 4vw;
660
- position: relative;
661
- background: var(--window-background);
662
- border-radius: 6px 6px 8px 8px;
663
- box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
664
- overflow: hidden;
665
- border-top: 8px solid var(--red);
666
- direction: ltr;
667
- text-align: left;
668
- }
669
-
670
- pre {
671
- font-family: var(--monospace);
672
- font-size: 16px;
673
- margin-top: 0;
674
- margin-bottom: 1em;
675
- overflow-x: scroll;
676
- scrollbar-width: none;
677
- }
678
-
679
- pre::-webkit-scrollbar {
680
- display: none;
681
- }
682
-
683
- pre.frame::-webkit-scrollbar {
684
- display: block;
685
- height: 5px;
686
- }
687
-
688
- pre.frame::-webkit-scrollbar-thumb {
689
- background: #999;
690
- border-radius: 5px;
691
- }
692
-
693
- pre.frame {
694
- scrollbar-width: thin;
695
- }
696
-
697
- .message {
698
- line-height: 1.3;
699
- font-weight: 600;
700
- white-space: pre-wrap;
701
- }
702
-
703
- .message-body {
704
- color: var(--red);
705
- }
706
-
707
- .plugin {
708
- color: var(--purple);
709
- }
710
-
711
- .file {
712
- color: var(--cyan);
713
- margin-bottom: 0;
714
- white-space: pre-wrap;
715
- word-break: break-all;
716
- }
717
-
718
- .frame {
719
- color: var(--yellow);
720
- }
721
-
722
- .stack {
723
- font-size: 13px;
724
- color: var(--dim);
725
- }
726
-
727
- .tip {
728
- font-size: 13px;
729
- color: #999;
730
- border-top: 1px dotted #999;
731
- padding-top: 13px;
732
- line-height: 1.8;
733
- }
734
-
735
- code {
736
- font-size: 13px;
737
- font-family: var(--monospace);
738
- color: var(--yellow);
739
- }
740
-
741
- .file-link {
742
- text-decoration: underline;
743
- cursor: pointer;
744
- }
745
-
746
- kbd {
747
- line-height: 1.5;
748
- font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
749
- font-size: 0.75rem;
750
- font-weight: 700;
751
- background-color: rgb(38, 40, 44);
752
- color: rgb(166, 167, 171);
753
- padding: 0.15rem 0.3rem;
754
- border-radius: 0.25rem;
755
- border-width: 0.0625rem 0.0625rem 0.1875rem;
756
- border-style: solid;
757
- border-color: rgb(54, 57, 64);
758
- border-image: initial;
759
- }
760
- `;
761
- const createTemplate = () => h("div", {
762
- class: "backdrop",
763
- part: "backdrop"
764
- }, h("div", {
765
- class: "window",
766
- part: "window"
767
- }, h("pre", {
768
- class: "message",
769
- part: "message"
770
- }, h("span", {
771
- class: "plugin",
772
- part: "plugin"
773
- }), h("span", {
774
- class: "message-body",
775
- part: "message-body"
776
- })), h("pre", {
777
- class: "file",
778
- part: "file"
779
- }), h("pre", {
780
- class: "frame",
781
- part: "frame"
782
- }), h("pre", {
783
- class: "stack",
784
- part: "stack"
785
- }), h("div", {
786
- class: "tip",
787
- part: "tip"
788
- }, "Click outside, press ", h("kbd", {}, "Esc"), " key, or fix the code to dismiss.", h("br"), "You can also disable this overlay by setting ", h("code", { part: "config-option-name" }, "server.hmr.overlay"), " to ", h("code", { part: "config-option-value" }, "false"), " in ", h("code", { part: "config-file-name" }, hmrConfigName), ".")), h("style", { nonce: cspNonce }, templateStyle));
789
- const fileRE = /(?:file:\/\/)?(?:[a-zA-Z]:\\|\/).*?:\d+:\d+/g;
790
- const codeframeRE = /^(?:>?\s*\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm;
791
- const { HTMLElement = class {} } = globalThis;
792
- var ErrorOverlay = class extends HTMLElement {
793
- constructor(err, links = true) {
794
- super();
795
- this.root = this.attachShadow({ mode: "open" });
796
- this.root.appendChild(createTemplate());
797
- codeframeRE.lastIndex = 0;
798
- const hasFrame = err.frame && codeframeRE.test(err.frame);
799
- const message = hasFrame ? err.message.replace(codeframeRE, "") : err.message;
800
- if (err.plugin) this.text(".plugin", `[plugin:${err.plugin}] `);
801
- this.text(".message-body", message.trim());
802
- const [file] = (err.loc?.file || err.id || "unknown file").split(`?`);
803
- if (err.loc) this.text(".file", `${file}:${err.loc.line}:${err.loc.column}`, links);
804
- else if (err.id) this.text(".file", file);
805
- if (hasFrame) this.text(".frame", err.frame.trim());
806
- this.text(".stack", err.stack, links);
807
- this.root.querySelector(".window").addEventListener("click", (e) => {
808
- e.stopPropagation();
809
- });
810
- this.addEventListener("click", () => {
811
- this.close();
812
- });
813
- this.closeOnEsc = (e) => {
814
- if (e.key === "Escape" || e.code === "Escape") this.close();
815
- };
816
- document.addEventListener("keydown", this.closeOnEsc);
817
- }
818
- text(selector, text, linkFiles = false) {
819
- const el = this.root.querySelector(selector);
820
- if (!linkFiles) el.textContent = text;
821
- else {
822
- let curIndex = 0;
823
- let match;
824
- fileRE.lastIndex = 0;
825
- while (match = fileRE.exec(text)) {
826
- const { 0: file, index } = match;
827
- const frag = text.slice(curIndex, index);
828
- el.appendChild(document.createTextNode(frag));
829
- const link = document.createElement("a");
830
- link.textContent = file;
831
- link.className = "file-link";
832
- link.onclick = () => {
833
- fetch(new URL(`${base$1}__open-in-editor?file=${encodeURIComponent(file)}`, import.meta.url));
834
- };
835
- el.appendChild(link);
836
- curIndex += frag.length + file.length;
837
- }
838
- if (curIndex < text.length) el.appendChild(document.createTextNode(text.slice(curIndex)));
839
- }
840
- }
841
- close() {
842
- this.parentNode?.removeChild(this);
843
- document.removeEventListener("keydown", this.closeOnEsc);
844
- }
845
- };
846
- const overlayId = "vite-error-overlay";
847
- const { customElements } = globalThis;
848
- if (customElements && !customElements.get("vite-error-overlay")) customElements.define(overlayId, ErrorOverlay);
849
- //#endregion
850
- //#region src/client/client.ts
851
- console.debug("[vite] connecting...");
852
- const importMetaUrl = new URL(import.meta.url);
853
- const serverHost = __SERVER_HOST__;
854
- const socketProtocol = __HMR_PROTOCOL__ || (importMetaUrl.protocol === "https:" ? "wss" : "ws");
855
- const hmrPort = __HMR_PORT__;
856
- const socketHost = `${__HMR_HOSTNAME__ || importMetaUrl.hostname}:${hmrPort || importMetaUrl.port}${__HMR_BASE__}`;
857
- const directSocketHost = __HMR_DIRECT_TARGET__;
858
- const base = __BASE__ || "/";
859
- const hmrTimeout = __HMR_TIMEOUT__;
860
- const wsToken = __WS_TOKEN__;
861
- const isBundleMode = __BUNDLED_DEV__;
862
- const forwardConsole = __SERVER_FORWARD_CONSOLE__;
863
- const transport = normalizeModuleRunnerTransport((() => {
864
- let wsTransport = createWebSocketModuleRunnerTransport({
865
- createConnection: () => new WebSocket(`${socketProtocol}://${socketHost}?token=${wsToken}`, "vite-hmr"),
866
- pingInterval: hmrTimeout
867
- });
868
- return {
869
- async connect(handlers) {
870
- try {
871
- await wsTransport.connect(handlers);
872
- } catch (e) {
873
- if (!hmrPort) {
874
- wsTransport = createWebSocketModuleRunnerTransport({
875
- createConnection: () => new WebSocket(`${socketProtocol}://${directSocketHost}?token=${wsToken}`, "vite-hmr"),
876
- pingInterval: hmrTimeout
877
- });
878
- try {
879
- await wsTransport.connect(handlers);
880
- console.info("[vite] Direct websocket connection fallback. Check out https://vite.dev/config/server-options.html#server-hmr to remove the previous connection error.");
881
- } catch (e) {
882
- if (e instanceof Error && e.message.includes("WebSocket closed without opened.")) {
883
- const currentScriptHostURL = new URL(import.meta.url);
884
- const currentScriptHost = currentScriptHostURL.host + currentScriptHostURL.pathname.replace(/@vite\/client$/, "");
885
- console.error(`[vite] failed to connect to websocket.
886
- your current setup:
887
- (browser) ${currentScriptHost} <--[HTTP]--> ${serverHost} (server)\n (browser) ${socketHost} <--[WebSocket (failing)]--> ${directSocketHost} (server)\nCheck out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr .`);
888
- }
889
- }
890
- return;
891
- }
892
- console.error(`[vite] failed to connect to websocket (${e}). `);
893
- throw e;
894
- }
895
- },
896
- async disconnect() {
897
- await wsTransport.disconnect();
898
- },
899
- send(data) {
900
- wsTransport.send(data);
901
- }
902
- };
903
- })());
904
- let willUnload = false;
905
- if (typeof window !== "undefined") window.addEventListener?.("beforeunload", () => {
906
- willUnload = true;
907
- });
908
- function cleanUrl(pathname) {
909
- const url = new URL(pathname, "http://vite.dev");
910
- url.searchParams.delete("direct");
911
- return url.pathname + url.search;
912
- }
913
- let isFirstUpdate = true;
914
- const outdatedLinkTags = /* @__PURE__ */ new WeakSet();
915
- const debounceReload = (time) => {
916
- let timer;
917
- return () => {
918
- if (timer) {
919
- clearTimeout(timer);
920
- timer = null;
921
- }
922
- timer = setTimeout(() => {
923
- location.reload();
924
- }, time);
925
- };
926
- };
927
- const pageReload = debounceReload(20);
928
- const hmrClient = new HMRClient({
929
- error: (err) => console.error("[vite]", err),
930
- debug: (...msg) => console.debug("[vite]", ...msg)
931
- }, transport, isBundleMode ? async function importUpdatedModule({ url, acceptedPath, isWithinCircularImport }) {
932
- const importPromise = import(base + url).then(() => globalThis.__rolldown_runtime__.loadExports(acceptedPath));
933
- if (isWithinCircularImport) importPromise.catch(() => {
934
- console.info(`[hmr] ${acceptedPath} failed to apply HMR as it's within a circular import. Reloading page to reset the execution order. To debug and break the circular import, you can run \`vite --debug hmr\` to log the circular dependency path if a file change triggered it.`);
935
- pageReload();
936
- });
937
- return await importPromise;
938
- } : async function importUpdatedModule({ acceptedPath, timestamp, explicitImportRequired, isWithinCircularImport }) {
939
- const [acceptedPathWithoutQuery, query] = acceptedPath.split(`?`);
940
- const importPromise = import(
941
- /* @vite-ignore */
942
- base + acceptedPathWithoutQuery.slice(1) + `?${explicitImportRequired ? "import&" : ""}t=${timestamp}${query ? `&${query}` : ""}`
943
- );
944
- if (isWithinCircularImport) importPromise.catch(() => {
945
- console.info(`[hmr] ${acceptedPath} failed to apply HMR as it's within a circular import. Reloading page to reset the execution order. To debug and break the circular import, you can run \`vite --debug hmr\` to log the circular dependency path if a file change triggered it.`);
946
- pageReload();
947
- });
948
- return await importPromise;
949
- });
950
- transport.connect(createHMRHandler(handleMessage));
951
- setupForwardConsoleHandler(transport, forwardConsole);
952
- async function handleMessage(payload) {
953
- switch (payload.type) {
954
- case "connected":
955
- console.debug(`[vite] connected.`);
956
- break;
957
- case "update":
958
- await hmrClient.notifyListeners("vite:beforeUpdate", payload);
959
- if (hasDocument) if (isFirstUpdate && hasErrorOverlay()) {
960
- location.reload();
961
- return;
962
- } else {
963
- if (enableOverlay) clearErrorOverlay();
964
- isFirstUpdate = false;
965
- }
966
- await Promise.all(payload.updates.map(async (update) => {
967
- if (update.type === "js-update") return hmrClient.queueUpdate(update);
968
- const { path, timestamp } = update;
969
- const searchUrl = cleanUrl(path);
970
- const el = Array.from(document.querySelectorAll("link")).find((e) => !outdatedLinkTags.has(e) && cleanUrl(e.href).includes(searchUrl));
971
- if (!el) return;
972
- const newPath = `${base}${searchUrl.slice(1)}${searchUrl.includes("?") ? "&" : "?"}t=${timestamp}`;
973
- return new Promise((resolve) => {
974
- const newLinkTag = el.cloneNode();
975
- newLinkTag.href = new URL(newPath, el.href).href;
976
- const removeOldEl = () => {
977
- el.remove();
978
- console.debug(`[vite] css hot updated: ${searchUrl}`);
979
- resolve();
980
- };
981
- newLinkTag.addEventListener("load", removeOldEl);
982
- newLinkTag.addEventListener("error", removeOldEl);
983
- outdatedLinkTags.add(el);
984
- el.after(newLinkTag);
985
- });
986
- }));
987
- await hmrClient.notifyListeners("vite:afterUpdate", payload);
988
- break;
989
- case "custom":
990
- await hmrClient.notifyListeners(payload.event, payload.data);
991
- if (payload.event === "vite:ws:disconnect") {
992
- if (hasDocument && !willUnload) {
993
- console.log(`[vite] server connection lost. Polling for restart...`);
994
- const socket = payload.data.webSocket;
995
- const url = new URL(socket.url);
996
- url.search = "";
997
- await waitForSuccessfulPing(url.href);
998
- location.reload();
999
- }
1000
- }
1001
- break;
1002
- case "full-reload":
1003
- await hmrClient.notifyListeners("vite:beforeFullReload", payload);
1004
- if (hasDocument) if (payload.path && payload.path.endsWith(".html")) {
1005
- const pagePath = decodeURI(location.pathname);
1006
- const payloadPath = base + payload.path.slice(1);
1007
- if (pagePath === payloadPath || payload.path === "/index.html" || pagePath.endsWith("/") && pagePath + "index.html" === payloadPath) pageReload();
1008
- return;
1009
- } else pageReload();
1010
- break;
1011
- case "prune":
1012
- await hmrClient.notifyListeners("vite:beforePrune", payload);
1013
- await hmrClient.prunePaths(payload.paths);
1014
- break;
1015
- case "error":
1016
- await hmrClient.notifyListeners("vite:error", payload);
1017
- if (hasDocument) {
1018
- const err = payload.err;
1019
- if (enableOverlay) createErrorOverlay(err);
1020
- else console.error(`[vite] Internal Server Error\n${err.message}\n${err.stack}`);
1021
- }
1022
- break;
1023
- case "ping": break;
1024
- default: return payload;
1025
- }
1026
- }
1027
- const enableOverlay = __HMR_ENABLE_OVERLAY__;
1028
- const hasDocument = "document" in globalThis;
1029
- function createErrorOverlay(err) {
1030
- clearErrorOverlay();
1031
- const { customElements } = globalThis;
1032
- if (customElements) {
1033
- const ErrorOverlayConstructor = customElements.get(overlayId);
1034
- document.body.appendChild(new ErrorOverlayConstructor(err));
1035
- }
1036
- }
1037
- function clearErrorOverlay() {
1038
- document.querySelectorAll(overlayId).forEach((n) => n.close());
1039
- }
1040
- function hasErrorOverlay() {
1041
- return document.querySelectorAll(overlayId).length;
1042
- }
1043
- function waitForSuccessfulPing(socketUrl) {
1044
- if (typeof SharedWorker === "undefined") {
1045
- const visibilityManager = {
1046
- currentState: document.visibilityState,
1047
- listeners: /* @__PURE__ */ new Set()
1048
- };
1049
- const onVisibilityChange = () => {
1050
- visibilityManager.currentState = document.visibilityState;
1051
- for (const listener of visibilityManager.listeners) listener(visibilityManager.currentState);
1052
- };
1053
- document.addEventListener("visibilitychange", onVisibilityChange);
1054
- return waitForSuccessfulPingInternal(socketUrl, visibilityManager);
1055
- }
1056
- const blob = new Blob([
1057
- "\"use strict\";",
1058
- `const waitForSuccessfulPingInternal = ${waitForSuccessfulPingInternal.toString()};`,
1059
- `const fn = ${pingWorkerContentMain.toString()};`,
1060
- `fn(${JSON.stringify(socketUrl)})`
1061
- ], { type: "application/javascript" });
1062
- const objURL = URL.createObjectURL(blob);
1063
- const sharedWorker = new SharedWorker(objURL);
1064
- return new Promise((resolve, reject) => {
1065
- const onVisibilityChange = () => {
1066
- sharedWorker.port.postMessage({ visibility: document.visibilityState });
1067
- };
1068
- document.addEventListener("visibilitychange", onVisibilityChange);
1069
- sharedWorker.port.addEventListener("message", (event) => {
1070
- document.removeEventListener("visibilitychange", onVisibilityChange);
1071
- sharedWorker.port.close();
1072
- const data = event.data;
1073
- if (data.type === "error") {
1074
- reject(data.error);
1075
- return;
1076
- }
1077
- resolve();
1078
- });
1079
- onVisibilityChange();
1080
- sharedWorker.port.start();
1081
- });
1082
- }
1083
- function pingWorkerContentMain(socketUrl) {
1084
- self.addEventListener("connect", (_event) => {
1085
- const port = _event.ports[0];
1086
- if (!socketUrl) {
1087
- port.postMessage({
1088
- type: "error",
1089
- error: /* @__PURE__ */ new Error("socketUrl not found")
1090
- });
1091
- return;
1092
- }
1093
- const visibilityManager = {
1094
- currentState: "visible",
1095
- listeners: /* @__PURE__ */ new Set()
1096
- };
1097
- port.addEventListener("message", (event) => {
1098
- const { visibility } = event.data;
1099
- visibilityManager.currentState = visibility;
1100
- console.debug("[vite] new window visibility", visibility);
1101
- for (const listener of visibilityManager.listeners) listener(visibility);
1102
- });
1103
- port.start();
1104
- console.debug("[vite] connected from window");
1105
- waitForSuccessfulPingInternal(socketUrl, visibilityManager).then(() => {
1106
- console.debug("[vite] ping successful");
1107
- try {
1108
- port.postMessage({ type: "success" });
1109
- } catch (error) {
1110
- port.postMessage({
1111
- type: "error",
1112
- error
1113
- });
1114
- }
1115
- }, (error) => {
1116
- console.debug("[vite] error happened", error);
1117
- try {
1118
- port.postMessage({
1119
- type: "error",
1120
- error
1121
- });
1122
- } catch (error) {
1123
- port.postMessage({
1124
- type: "error",
1125
- error
1126
- });
1127
- }
1128
- });
1129
- });
1130
- }
1131
- async function waitForSuccessfulPingInternal(socketUrl, visibilityManager, ms = 1e3) {
1132
- function wait(ms) {
1133
- return new Promise((resolve) => setTimeout(resolve, ms));
1134
- }
1135
- async function ping() {
1136
- try {
1137
- const socket = new WebSocket(socketUrl, "vite-ping");
1138
- return new Promise((resolve) => {
1139
- function onOpen() {
1140
- resolve(true);
1141
- close();
1142
- }
1143
- function onError() {
1144
- resolve(false);
1145
- close();
1146
- }
1147
- function close() {
1148
- socket.removeEventListener("open", onOpen);
1149
- socket.removeEventListener("error", onError);
1150
- socket.close();
1151
- }
1152
- socket.addEventListener("open", onOpen);
1153
- socket.addEventListener("error", onError);
1154
- });
1155
- } catch {
1156
- return false;
1157
- }
1158
- }
1159
- function waitForWindowShow(visibilityManager) {
1160
- return new Promise((resolve) => {
1161
- const onChange = (newVisibility) => {
1162
- if (newVisibility === "visible") {
1163
- resolve();
1164
- visibilityManager.listeners.delete(onChange);
1165
- }
1166
- };
1167
- visibilityManager.listeners.add(onChange);
1168
- });
1169
- }
1170
- if (await ping()) return;
1171
- await wait(ms);
1172
- while (true) if (visibilityManager.currentState === "visible") {
1173
- if (await ping()) break;
1174
- await wait(ms);
1175
- } else await waitForWindowShow(visibilityManager);
1176
- }
1177
- const sheetsMap = /* @__PURE__ */ new Map();
1178
- const linkSheetsMap = /* @__PURE__ */ new Map();
1179
- if ("document" in globalThis) {
1180
- document.querySelectorAll("style[data-vite-dev-id]").forEach((el) => {
1181
- sheetsMap.set(el.getAttribute("data-vite-dev-id"), el);
1182
- });
1183
- document.querySelectorAll("link[rel=\"stylesheet\"][data-vite-dev-id]").forEach((el) => {
1184
- linkSheetsMap.set(el.getAttribute("data-vite-dev-id"), el);
1185
- });
1186
- }
1187
- let lastInsertedStyle;
1188
- function updateStyle(id, content) {
1189
- if (linkSheetsMap.has(id)) return;
1190
- let style = sheetsMap.get(id);
1191
- if (!style) {
1192
- style = document.createElement("style");
1193
- style.setAttribute("type", "text/css");
1194
- style.setAttribute("data-vite-dev-id", id);
1195
- style.textContent = content;
1196
- if (cspNonce) style.setAttribute("nonce", cspNonce);
1197
- if (!lastInsertedStyle) {
1198
- document.head.appendChild(style);
1199
- setTimeout(() => {
1200
- lastInsertedStyle = void 0;
1201
- }, 0);
1202
- } else lastInsertedStyle.insertAdjacentElement("afterend", style);
1203
- lastInsertedStyle = style;
1204
- } else style.textContent = content;
1205
- sheetsMap.set(id, style);
1206
- }
1207
- function removeStyle(id) {
1208
- if (linkSheetsMap.has(id)) {
1209
- document.querySelectorAll(`link[rel="stylesheet"][data-vite-dev-id="${CSS.escape(id)}"]`).forEach((el) => el.remove());
1210
- linkSheetsMap.delete(id);
1211
- }
1212
- const style = sheetsMap.get(id);
1213
- if (style) {
1214
- document.head.removeChild(style);
1215
- sheetsMap.delete(id);
1216
- }
1217
- }
1218
- function createHotContext(ownerPath) {
1219
- return new HMRContext(hmrClient, ownerPath);
1220
- }
1221
- /**
1222
- * urls here are dynamic import() urls that couldn't be statically analyzed
1223
- */
1224
- function injectQuery(url, queryToInject) {
1225
- if (url[0] !== "." && url[0] !== "/") return url;
1226
- const pathname = url.replace(/[?#].*$/, "");
1227
- const { search, hash } = new URL(url, "http://vite.dev");
1228
- return `${pathname}?${queryToInject}${search ? `&` + search.slice(1) : ""}${hash || ""}`;
1229
- }
1230
- if (isBundleMode && typeof DevRuntime !== "undefined") {
1231
- var _ref;
1232
- class ViteDevRuntime extends DevRuntime {
1233
- createModuleHotContext(moduleId) {
1234
- const ctx = createHotContext(moduleId);
1235
- ctx._internal = {
1236
- updateStyle,
1237
- removeStyle
1238
- };
1239
- return ctx;
1240
- }
1241
- applyUpdates(_boundaries) {}
1242
- }
1243
- const clientId = nanoid();
1244
- transport.send({
1245
- type: "custom",
1246
- event: "vite:module-loaded",
1247
- data: {
1248
- modules: [],
1249
- clientId
1250
- }
1251
- });
1252
- (_ref = globalThis).__rolldown_runtime__ ?? (_ref.__rolldown_runtime__ = new ViteDevRuntime({ send(message) {
1253
- switch (message.type) {
1254
- case "hmr:module-registered":
1255
- transport.send({
1256
- type: "custom",
1257
- event: "vite:module-loaded",
1258
- data: {
1259
- modules: message.modules.slice(),
1260
- clientId
1261
- }
1262
- });
1263
- break;
1264
- default: throw new Error(`Unknown message type: ${JSON.stringify(message)}`);
1265
- }
1266
- } }, clientId));
1267
- }
1268
- //#endregion
1269
- export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle };