nuxt-ignis 0.4.0 → 0.5.0-rc.1

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 (1726) hide show
  1. package/.data/content/contents.sqlite +0 -0
  2. package/.nuxt/app.config.mjs +8 -3
  3. package/.nuxt/components.d.ts +297 -747
  4. package/.nuxt/content/components.ts +117 -116
  5. package/.nuxt/dev/index.mjs +1027 -345
  6. package/.nuxt/dev/index.mjs.map +1 -1
  7. package/.nuxt/dist/server/client.manifest.json +2 -2
  8. package/.nuxt/dist/server/client.manifest.mjs +2 -2
  9. package/.nuxt/eslint-typegen.d.ts +85 -16
  10. package/.nuxt/eslint.config.d.mts +3 -3
  11. package/.nuxt/eslint.config.mjs +11 -11
  12. package/.nuxt/i18n-route-resources.mjs +3 -0
  13. package/.nuxt/imports.d.ts +79 -86
  14. package/.nuxt/manifest/latest.json +1 -1
  15. package/.nuxt/manifest/meta/dev.json +1 -1
  16. package/.nuxt/mdc-highlighter.mjs +1 -1
  17. package/.nuxt/mdc-image-component.mjs +1 -1
  18. package/.nuxt/mdc-imports.mjs +1 -1
  19. package/.nuxt/module/nuxt-robots.d.ts +12 -12
  20. package/.nuxt/module/nuxt-seo-utils.assets.d.ts +1 -1
  21. package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
  22. package/.nuxt/module/nuxt-site-config.d.ts +8 -8
  23. package/.nuxt/module/nuxt-sitemap.d.ts +48 -0
  24. package/.nuxt/nitro.json +5 -5
  25. package/.nuxt/nuxt.d.ts +18 -22
  26. package/.nuxt/nuxt.json +2 -2
  27. package/.nuxt/nuxt.node.d.ts +28 -0
  28. package/.nuxt/nuxt.shared.d.ts +5 -0
  29. package/.nuxt/tsconfig.app.json +459 -0
  30. package/.nuxt/tsconfig.json +283 -301
  31. package/.nuxt/tsconfig.node.json +218 -0
  32. package/.nuxt/tsconfig.server.json +193 -166
  33. package/.nuxt/tsconfig.shared.json +278 -0
  34. package/.nuxt/types/app.config.d.ts +8 -2
  35. package/.nuxt/types/build.d.ts +3 -2
  36. package/.nuxt/types/components.d.ts +321 -0
  37. package/.nuxt/types/i18n-plugin.d.ts +25 -6
  38. package/.nuxt/types/imports.d.ts +390 -398
  39. package/.nuxt/types/modules.d.ts +579 -0
  40. package/.nuxt/types/neon.d.ts +11 -8
  41. package/.nuxt/types/nitro-imports.d.ts +394 -355
  42. package/.nuxt/types/nitro-middleware.d.ts +5 -0
  43. package/.nuxt/types/nitro-nuxt.d.ts +28 -2
  44. package/.nuxt/types/nitro-routes.d.ts +28 -25
  45. package/.nuxt/types/plugins.d.ts +42 -39
  46. package/.nuxt/types/runtime-config.d.ts +1018 -0
  47. package/.nuxt/types/ui.d.ts +3 -3
  48. package/.nuxt/ui/button.ts +42 -42
  49. package/.nuxt/ui/command-palette.ts +2 -1
  50. package/.nuxt/ui/drawer.ts +1 -1
  51. package/.nuxt/ui/file-upload.ts +290 -0
  52. package/.nuxt/ui/index.ts +1 -0
  53. package/.nuxt/ui/input.ts +1 -1
  54. package/.nuxt/ui/kbd.ts +167 -3
  55. package/.nuxt/ui/select.ts +7 -7
  56. package/.nuxt/ui/table.ts +8 -0
  57. package/.nuxt/ui/tabs.ts +4 -2
  58. package/.nuxt/ui/textarea.ts +1 -1
  59. package/.nuxt/ui/toast.ts +8 -15
  60. package/.nuxt/ui/tooltip.ts +1 -1
  61. package/.nuxt/ui-image-component.ts +1 -1
  62. package/.output/nitro.json +15 -0
  63. package/.output/public/__nuxt_content/content/sql_dump.txt +1 -0
  64. package/.output/public/_fonts/EP1810cmAtyahQPDHB6nvBzRkIG5RcNv4u5vTy1aYHU-6h0m1Bf2RaAhaXNIrP4eW5ztakwJFN8JcCXPea_zL8E.woff2 +0 -0
  65. package/.output/public/_fonts/JNWOTRocaYj0gq52vW_s7sHAdSMUetrRmhhggCVxyZ0-8R9ucQ623nsXJTayzizuOYtVntUNPQzR8aWYpk8a8d8.woff2 +0 -0
  66. package/.output/public/_fonts/XbAtjIvy1UErjg9eu_v7X3zPLS_AwsmqVsR9fG-JB6o-s6NA3uLuPs0vnwZNhOTJ1g_7NVire0Uvng_2zP6mjNQ.woff2 +0 -0
  67. package/.output/public/_fonts/ZLm6CLvwhQbamZ73M80jbqz7DuOkHlT_HRyXHG7YfVs-t7L_F0sYO8m44V7ZmFyCOiGNJDIBFFLVfLeLwCIUhsI.woff2 +0 -0
  68. package/.output/public/_fonts/aPa9az0DeE4U5rqM-Ov0Vl_obQis_d6sScLNygGkvxw-4s8awL3_7NCZIzHTaY2tD681prJPuNHGqkbChz7OJeE.woff2 +0 -0
  69. package/.output/public/_fonts/kgyHMsxRmhh06xcV0yKMKdTKQBsQpXGi7erqwaqgjXg-BgCmQXkW3N6talUbQSKexB2sHUT0qGEzmM4uMcnDAbI.woff +0 -0
  70. package/.output/public/_ignis-config.json +201 -0
  71. package/.output/public/_nuxt/1soVlS0z.js +1 -0
  72. package/.output/public/_nuxt/B7rsWaa2.js +1 -0
  73. package/.output/public/_nuxt/BA2WKEAc.js +1 -0
  74. package/.output/public/_nuxt/BE_a_Zhd.js +1 -0
  75. package/.output/public/_nuxt/BFreiu22.js +1 -0
  76. package/.output/public/_nuxt/BLcTglbc.js +1 -0
  77. package/.output/public/_nuxt/Bhd4_yFT.js +1 -0
  78. package/.output/public/_nuxt/Bi2eMDmd.js +1 -0
  79. package/.output/public/_nuxt/BiUZ9mZX.js +1 -0
  80. package/.output/public/_nuxt/Bm30MqE0.js +1 -0
  81. package/.output/public/_nuxt/Bnm5Nral.js +1 -0
  82. package/.output/public/_nuxt/BrY1radz.js +35 -0
  83. package/.output/public/_nuxt/Bs3IGOdt.js +1 -0
  84. package/.output/public/_nuxt/ByaiRTkI.js +1 -0
  85. package/.output/public/_nuxt/CA578xwz.js +1 -0
  86. package/.output/public/_nuxt/CDttUXKg.js +1 -0
  87. package/.output/public/_nuxt/CSN71QT8.js +1 -0
  88. package/.output/public/_nuxt/CmzFGS1a.js +90 -0
  89. package/.output/public/_nuxt/CqCaqSd2.js +1 -0
  90. package/.output/public/_nuxt/D8v-efI7.js +1 -0
  91. package/.output/public/_nuxt/DR4hWRk7.js +1 -0
  92. package/.output/public/_nuxt/DRroQ-Xq.js +1 -0
  93. package/.output/public/_nuxt/DStnBfJS.js +1 -0
  94. package/.output/public/_nuxt/DXBpKbsa.js +6759 -0
  95. package/.output/public/_nuxt/DXTYyv-V.js +1 -0
  96. package/.output/public/_nuxt/DXbccJ2T.js +1 -0
  97. package/.output/public/_nuxt/DeS1g0YT.js +1 -0
  98. package/.output/public/_nuxt/Deb6R53f.js +1 -0
  99. package/.output/public/_nuxt/DiDHllLr.js +1 -0
  100. package/.output/public/_nuxt/DyCICqRh.js +1 -0
  101. package/.output/public/_nuxt/DzT4wm3Y.js +1 -0
  102. package/.output/public/_nuxt/E8nje24C.js +1 -0
  103. package/.output/public/_nuxt/ProsePre.D5orA6B_.css +1 -0
  104. package/.output/public/_nuxt/builds/latest.json +1 -0
  105. package/.output/public/_nuxt/builds/meta/9a624d26-216d-4e69-b3a7-54b68357876f.json +1 -0
  106. package/.output/public/_nuxt/dJ-vStNn.js +1 -0
  107. package/.output/public/_nuxt/entry.jMyW6Sg0.css +1 -0
  108. package/.output/public/_nuxt/error-404.BGUbR0Uk.css +1 -0
  109. package/.output/public/_nuxt/error-500.CQfkKpQ2.css +1 -0
  110. package/.output/public/_nuxt/sHsV3x2B.js +1 -0
  111. package/.output/public/_nuxt/sQEqbbg2.js +1 -0
  112. package/.output/public/_nuxt/vueform.ChEauysg.css +1 -0
  113. package/.output/public/favicon.ico +0 -0
  114. package/.output/public/nuxt-ignis.png +0 -0
  115. package/.output/public/unsplash.jpg +0 -0
  116. package/.output/server/chunks/_/error-500.mjs +10 -0
  117. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  118. package/.output/server/chunks/_/i18n.config.mjs +39 -0
  119. package/.output/server/chunks/_/i18n.config.mjs.map +1 -0
  120. package/.output/server/chunks/_/nitro.mjs +12834 -0
  121. package/.output/server/chunks/_/nitro.mjs.map +1 -0
  122. package/.output/server/chunks/build/client.manifest.mjs +511 -0
  123. package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
  124. package/.output/server/chunks/build/database.compressed.mjs +4 -0
  125. package/.output/server/chunks/build/database.compressed.mjs.map +1 -0
  126. package/.output/server/chunks/raw/headers.mjs +5 -0
  127. package/.output/server/chunks/raw/headers.mjs.map +1 -0
  128. package/.output/server/chunks/routes/api/neonTest.mjs +41 -0
  129. package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -0
  130. package/.output/server/chunks/routes/renderer.mjs +352 -0
  131. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  132. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  133. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  134. package/.output/server/chunks/virtual/child-sources.mjs +4 -0
  135. package/.output/server/chunks/virtual/child-sources.mjs.map +1 -0
  136. package/.output/server/chunks/virtual/global-sources.mjs +48 -0
  137. package/.output/server/chunks/virtual/global-sources.mjs.map +1 -0
  138. package/.output/server/index.mjs +49 -0
  139. package/.output/server/index.mjs.map +1 -0
  140. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/convertor/create.cjs +32 -0
  141. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/data-patch.cjs +7 -0
  142. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/data.cjs +97 -0
  143. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/SyntaxError.cjs +16 -0
  144. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/generate.cjs +135 -0
  145. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/index.cjs +13 -0
  146. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/parse.cjs +588 -0
  147. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/tokenizer.cjs +56 -0
  148. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/walk.cjs +56 -0
  149. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/create.cjs +103 -0
  150. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/sourceMap.cjs +96 -0
  151. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/token-before.cjs +170 -0
  152. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/index.cjs +63 -0
  153. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/Lexer.cjs +459 -0
  154. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/error.cjs +128 -0
  155. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-an-plus-b.cjs +235 -0
  156. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-const.cjs +12 -0
  157. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-urange.cjs +149 -0
  158. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic.cjs +573 -0
  159. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/match-graph.cjs +459 -0
  160. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/match.cjs +632 -0
  161. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/prepare-tokens.cjs +54 -0
  162. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/search.cjs +65 -0
  163. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/structure.cjs +168 -0
  164. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/trace.cjs +73 -0
  165. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/SyntaxError.cjs +69 -0
  166. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/create.cjs +336 -0
  167. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/sequence.cjs +47 -0
  168. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/font-face.cjs +12 -0
  169. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/import.cjs +37 -0
  170. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/index.cjs +17 -0
  171. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/media.cjs +16 -0
  172. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/page.cjs +16 -0
  173. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/supports.cjs +77 -0
  174. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/lexer.cjs +12 -0
  175. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/mix.cjs +142 -0
  176. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/parser.cjs +34 -0
  177. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/walker.cjs +9 -0
  178. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/create.cjs +56 -0
  179. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/function/expression.cjs +11 -0
  180. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/function/var.cjs +43 -0
  181. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/index.cjs +14 -0
  182. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AnPlusB.cjs +293 -0
  183. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Atrule.cjs +103 -0
  184. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AtrulePrelude.cjs +52 -0
  185. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AttributeSelector.cjs +148 -0
  186. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Block.cjs +90 -0
  187. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Brackets.cjs +38 -0
  188. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/CDC.cjs +26 -0
  189. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/CDO.cjs +26 -0
  190. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/ClassSelector.cjs +31 -0
  191. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Combinator.cjs +61 -0
  192. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Comment.cjs +40 -0
  193. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Declaration.cjs +166 -0
  194. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/DeclarationList.cjs +50 -0
  195. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Dimension.cjs +30 -0
  196. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Function.cjs +45 -0
  197. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Hash.cjs +30 -0
  198. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/IdSelector.cjs +33 -0
  199. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Identifier.cjs +25 -0
  200. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaFeature.cjs +76 -0
  201. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaQuery.cjs +61 -0
  202. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaQueryList.cjs +41 -0
  203. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Nth.cjs +54 -0
  204. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Number.cjs +25 -0
  205. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Operator.cjs +28 -0
  206. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Parentheses.cjs +38 -0
  207. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Percentage.cjs +25 -0
  208. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/PseudoClassSelector.cjs +65 -0
  209. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/PseudoElementSelector.cjs +67 -0
  210. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Ratio.cjs +67 -0
  211. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Raw.cjs +48 -0
  212. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Rule.cjs +58 -0
  213. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Selector.cjs +39 -0
  214. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/SelectorList.cjs +43 -0
  215. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/String.cjs +26 -0
  216. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/StyleSheet.cjs +83 -0
  217. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/TypeSelector.cjs +59 -0
  218. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/UnicodeRange.cjs +158 -0
  219. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Url.cjs +54 -0
  220. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Value.cjs +26 -0
  221. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/WhiteSpace.cjs +34 -0
  222. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/index-parse.cjs +85 -0
  223. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/index.cjs +85 -0
  224. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/pseudo/index.cjs +52 -0
  225. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/atrulePrelude.cjs +9 -0
  226. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/default.cjs +76 -0
  227. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/index.cjs +11 -0
  228. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/selector.cjs +84 -0
  229. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/value.cjs +29 -0
  230. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/OffsetToLocation.cjs +91 -0
  231. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/TokenStream.cjs +264 -0
  232. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/adopt-buffer.cjs +13 -0
  233. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/char-code-definitions.cjs +231 -0
  234. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/index.cjs +554 -0
  235. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/names.cjs +31 -0
  236. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/types.cjs +57 -0
  237. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/utils.cjs +261 -0
  238. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/List.cjs +473 -0
  239. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/clone.cjs +25 -0
  240. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/create-custom-error.cjs +18 -0
  241. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/ident.cjs +102 -0
  242. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/names.cjs +113 -0
  243. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/string.cjs +99 -0
  244. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/url.cjs +108 -0
  245. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/version.cjs +5 -0
  246. package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/walker/create.cjs +291 -0
  247. package/.output/server/node_modules/.nitro/css-tree@2.2.1/data/patch.json +739 -0
  248. package/.output/server/node_modules/.nitro/css-tree@2.2.1/package.json +127 -0
  249. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/convertor/create.cjs +32 -0
  250. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/data-patch.cjs +7 -0
  251. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/data.cjs +99 -0
  252. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/SyntaxError.cjs +16 -0
  253. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/generate.cjs +135 -0
  254. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/index.cjs +13 -0
  255. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/parse.cjs +588 -0
  256. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/tokenizer.cjs +56 -0
  257. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/walk.cjs +56 -0
  258. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/create.cjs +103 -0
  259. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/sourceMap.cjs +96 -0
  260. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/token-before.cjs +170 -0
  261. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/index.cjs +63 -0
  262. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/Lexer.cjs +470 -0
  263. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/error.cjs +128 -0
  264. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-an-plus-b.cjs +235 -0
  265. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-const.cjs +12 -0
  266. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-urange.cjs +149 -0
  267. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic.cjs +573 -0
  268. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/match-graph.cjs +459 -0
  269. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/match.cjs +632 -0
  270. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/prepare-tokens.cjs +54 -0
  271. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/search.cjs +65 -0
  272. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/structure.cjs +168 -0
  273. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/trace.cjs +73 -0
  274. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/units.cjs +38 -0
  275. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/SyntaxError.cjs +69 -0
  276. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/create.cjs +336 -0
  277. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/sequence.cjs +47 -0
  278. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/font-face.cjs +12 -0
  279. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/import.cjs +37 -0
  280. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/index.cjs +19 -0
  281. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/media.cjs +16 -0
  282. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/nest.cjs +16 -0
  283. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/page.cjs +16 -0
  284. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/supports.cjs +77 -0
  285. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/lexer.cjs +12 -0
  286. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/mix.cjs +119 -0
  287. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/parser.cjs +34 -0
  288. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/walker.cjs +9 -0
  289. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/create.cjs +57 -0
  290. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/function/expression.cjs +11 -0
  291. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/function/var.cjs +43 -0
  292. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/index.cjs +14 -0
  293. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AnPlusB.cjs +293 -0
  294. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Atrule.cjs +103 -0
  295. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AtrulePrelude.cjs +52 -0
  296. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AttributeSelector.cjs +148 -0
  297. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Block.cjs +96 -0
  298. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Brackets.cjs +38 -0
  299. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/CDC.cjs +26 -0
  300. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/CDO.cjs +26 -0
  301. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/ClassSelector.cjs +31 -0
  302. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Combinator.cjs +61 -0
  303. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Comment.cjs +40 -0
  304. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Declaration.cjs +166 -0
  305. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/DeclarationList.cjs +62 -0
  306. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Dimension.cjs +30 -0
  307. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Function.cjs +45 -0
  308. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Hash.cjs +30 -0
  309. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/IdSelector.cjs +33 -0
  310. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Identifier.cjs +25 -0
  311. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaFeature.cjs +76 -0
  312. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaQuery.cjs +61 -0
  313. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaQueryList.cjs +41 -0
  314. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/NestingSelector.cjs +29 -0
  315. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Nth.cjs +54 -0
  316. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Number.cjs +25 -0
  317. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Operator.cjs +28 -0
  318. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Parentheses.cjs +38 -0
  319. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Percentage.cjs +25 -0
  320. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/PseudoClassSelector.cjs +65 -0
  321. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/PseudoElementSelector.cjs +67 -0
  322. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Ratio.cjs +67 -0
  323. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Raw.cjs +48 -0
  324. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Rule.cjs +58 -0
  325. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Selector.cjs +39 -0
  326. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/SelectorList.cjs +43 -0
  327. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/String.cjs +26 -0
  328. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/StyleSheet.cjs +83 -0
  329. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/TypeSelector.cjs +59 -0
  330. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/UnicodeRange.cjs +158 -0
  331. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Url.cjs +54 -0
  332. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Value.cjs +26 -0
  333. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/WhiteSpace.cjs +34 -0
  334. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/index-parse.cjs +87 -0
  335. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/index.cjs +87 -0
  336. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/pseudo/index.cjs +54 -0
  337. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/atrulePrelude.cjs +9 -0
  338. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/default.cjs +76 -0
  339. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/index.cjs +11 -0
  340. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/selector.cjs +88 -0
  341. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/value.cjs +29 -0
  342. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/OffsetToLocation.cjs +91 -0
  343. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/TokenStream.cjs +264 -0
  344. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/adopt-buffer.cjs +13 -0
  345. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/char-code-definitions.cjs +231 -0
  346. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/index.cjs +554 -0
  347. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/names.cjs +31 -0
  348. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/types.cjs +57 -0
  349. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/utils.cjs +261 -0
  350. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/List.cjs +473 -0
  351. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/clone.cjs +25 -0
  352. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/create-custom-error.cjs +18 -0
  353. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/ident.cjs +102 -0
  354. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/names.cjs +113 -0
  355. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/string.cjs +99 -0
  356. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/url.cjs +108 -0
  357. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/version.cjs +5 -0
  358. package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/walker/create.cjs +291 -0
  359. package/.output/server/node_modules/.nitro/css-tree@2.3.1/data/patch.json +725 -0
  360. package/.output/server/node_modules/.nitro/css-tree@2.3.1/package.json +126 -0
  361. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/decode.js +536 -0
  362. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/decode_codepoint.js +76 -0
  363. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/encode.js +77 -0
  364. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/escape.js +122 -0
  365. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +9 -0
  366. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +9 -0
  367. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/encode-html.js +12 -0
  368. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/index.js +126 -0
  369. package/.output/server/node_modules/.nitro/entities@4.5.0/package.json +90 -0
  370. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode-codepoint.js +72 -0
  371. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode.js +497 -0
  372. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/escape.js +117 -0
  373. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-html.js +7 -0
  374. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-xml.js +7 -0
  375. package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/package.json +3 -0
  376. package/.output/server/node_modules/.nitro/entities@6.0.1/package.json +118 -0
  377. package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/at-rules.json +620 -0
  378. package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/properties.json +9297 -0
  379. package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/syntaxes.json +794 -0
  380. package/.output/server/node_modules/.nitro/mdn-data@2.0.28/package.json +38 -0
  381. package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/at-rules.json +620 -0
  382. package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/properties.json +9626 -0
  383. package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/syntaxes.json +866 -0
  384. package/.output/server/node_modules/.nitro/mdn-data@2.0.30/package.json +38 -0
  385. package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +18 -0
  386. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +59 -0
  387. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +68 -0
  388. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +28 -0
  389. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +322 -0
  390. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +7 -0
  391. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +567 -0
  392. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +10 -0
  393. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +8 -0
  394. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +58 -0
  395. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +44 -0
  396. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +25 -0
  397. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +26 -0
  398. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +28 -0
  399. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/types.js +13 -0
  400. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +17 -0
  401. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +9 -0
  402. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +9 -0
  403. package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +93 -0
  404. package/.output/server/node_modules/.nitro/property-information@7.1.0/index.js +17 -0
  405. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/aria.js +61 -0
  406. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/find.js +97 -0
  407. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/hast-to-react.js +30 -0
  408. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/html.js +322 -0
  409. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/normalize.js +12 -0
  410. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/svg.js +567 -0
  411. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/case-insensitive-transform.js +13 -0
  412. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/case-sensitive-transform.js +11 -0
  413. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/create.js +69 -0
  414. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/defined-info.js +60 -0
  415. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/info.js +32 -0
  416. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/merge.js +27 -0
  417. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/schema.js +29 -0
  418. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +13 -0
  419. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xlink.js +17 -0
  420. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xml.js +9 -0
  421. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xmlns.js +9 -0
  422. package/.output/server/node_modules/.nitro/property-information@7.1.0/package.json +121 -0
  423. package/.output/server/node_modules/@adonisjs/hash/build/chunk-7RS6HCBK.js +36 -0
  424. package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSA56AE7.js +26 -0
  425. package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSBRDJBE.js +30 -0
  426. package/.output/server/node_modules/@adonisjs/hash/build/chunk-RHMXMP27.js +202 -0
  427. package/.output/server/node_modules/@adonisjs/hash/build/chunk-WB54OA6N.js +193 -0
  428. package/.output/server/node_modules/@adonisjs/hash/build/index.js +9 -0
  429. package/.output/server/node_modules/@adonisjs/hash/build/src/drivers/scrypt.js +9 -0
  430. package/.output/server/node_modules/@adonisjs/hash/package.json +150 -0
  431. package/.output/server/node_modules/@babel/parser/lib/index.js +14595 -0
  432. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  433. package/.output/server/node_modules/@fastify/accept-negotiator/index.js +170 -0
  434. package/.output/server/node_modules/@fastify/accept-negotiator/package.json +51 -0
  435. package/.output/server/node_modules/@iconify/utils/lib/colors/index.mjs +350 -0
  436. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.mjs +188 -0
  437. package/.output/server/node_modules/@iconify/utils/lib/css/common.mjs +90 -0
  438. package/.output/server/node_modules/@iconify/utils/lib/css/format.mjs +38 -0
  439. package/.output/server/node_modules/@iconify/utils/lib/css/icon.mjs +76 -0
  440. package/.output/server/node_modules/@iconify/utils/lib/css/icons.mjs +168 -0
  441. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.mjs +22 -0
  442. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.mjs +14 -0
  443. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.mjs +16 -0
  444. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.mjs +22 -0
  445. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.mjs +33 -0
  446. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.mjs +51 -0
  447. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.mjs +84 -0
  448. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.mjs +16 -0
  449. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.mjs +44 -0
  450. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.mjs +58 -0
  451. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.mjs +231 -0
  452. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.mjs +31 -0
  453. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.mjs +164 -0
  454. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.mjs +216 -0
  455. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.mjs +113 -0
  456. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.mjs +104 -0
  457. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.mjs +34 -0
  458. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.mjs +75 -0
  459. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.mjs +97 -0
  460. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.mjs +54 -0
  461. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.mjs +97 -0
  462. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.mjs +45 -0
  463. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.mjs +105 -0
  464. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.mjs +54 -0
  465. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.mjs +24 -0
  466. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
  467. package/.output/server/node_modules/@iconify/utils/lib/icon/name.mjs +53 -0
  468. package/.output/server/node_modules/@iconify/utils/lib/icon/square.mjs +23 -0
  469. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.mjs +16 -0
  470. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.mjs +182 -0
  471. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.mjs +22 -0
  472. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +28 -0
  473. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.mjs +46 -0
  474. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.mjs +66 -0
  475. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.mjs +51 -0
  476. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.mjs +23 -0
  477. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.mjs +62 -0
  478. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.mjs +161 -0
  479. package/.output/server/node_modules/@iconify/utils/lib/index.mjs +64 -0
  480. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.mjs +50 -0
  481. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.mjs +59 -0
  482. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.mjs +80 -0
  483. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.mjs +92 -0
  484. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.mjs +30 -0
  485. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.mjs +17 -0
  486. package/.output/server/node_modules/@iconify/utils/lib/misc/title.mjs +5 -0
  487. package/.output/server/node_modules/@iconify/utils/lib/svg/build.mjs +119 -0
  488. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.mjs +30 -0
  489. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.mjs +20 -0
  490. package/.output/server/node_modules/@iconify/utils/lib/svg/html.mjs +9 -0
  491. package/.output/server/node_modules/@iconify/utils/lib/svg/id.mjs +28 -0
  492. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.mjs +19 -0
  493. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.mjs +83 -0
  494. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.mjs +70 -0
  495. package/.output/server/node_modules/@iconify/utils/lib/svg/size.mjs +40 -0
  496. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.mjs +5 -0
  497. package/.output/server/node_modules/@iconify/utils/lib/svg/url.mjs +11 -0
  498. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.mjs +8 -0
  499. package/.output/server/node_modules/@iconify/utils/package.json +447 -0
  500. package/.output/server/node_modules/@intlify/core/dist/core.mjs +31 -0
  501. package/.output/server/node_modules/@intlify/core/package.json +82 -0
  502. package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +1886 -0
  503. package/.output/server/node_modules/@intlify/core-base/package.json +80 -0
  504. package/.output/server/node_modules/@intlify/h3/dist/index.mjs +61 -0
  505. package/.output/server/node_modules/@intlify/h3/package.json +89 -0
  506. package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1530 -0
  507. package/.output/server/node_modules/@intlify/message-compiler/package.json +79 -0
  508. package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +281 -0
  509. package/.output/server/node_modules/@intlify/shared/package.json +69 -0
  510. package/.output/server/node_modules/@intlify/utils/dist/h3.mjs +89 -0
  511. package/.output/server/node_modules/@intlify/utils/dist/index.mjs +121 -0
  512. package/.output/server/node_modules/@intlify/utils/dist/shared/utils.12d9adcd.mjs +133 -0
  513. package/.output/server/node_modules/@intlify/utils/dist/shared/utils.9f8159f5.mjs +108 -0
  514. package/.output/server/node_modules/@intlify/utils/package.json +129 -0
  515. package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +34 -0
  516. package/.output/server/node_modules/@lukeed/ms/package.json +48 -0
  517. package/.output/server/node_modules/@neondatabase/serverless/index.mjs +1374 -0
  518. package/.output/server/node_modules/@neondatabase/serverless/package.json +115 -0
  519. package/.output/server/node_modules/@phc/format/index.js +229 -0
  520. package/.output/server/node_modules/@phc/format/package.json +60 -0
  521. package/.output/server/node_modules/@poppinss/exception/build/index.js +63 -0
  522. package/.output/server/node_modules/@poppinss/exception/package.json +106 -0
  523. package/.output/server/node_modules/@poppinss/object-builder/build/index.js +49 -0
  524. package/.output/server/node_modules/@poppinss/object-builder/package.json +112 -0
  525. package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +407 -0
  526. package/.output/server/node_modules/@poppinss/string/build/index.js +6 -0
  527. package/.output/server/node_modules/@poppinss/string/package.json +128 -0
  528. package/.output/server/node_modules/@poppinss/utils/build/chunk-2KG3PWR4.js +17 -0
  529. package/.output/server/node_modules/@poppinss/utils/build/chunk-4V5ON6P7.js +7 -0
  530. package/.output/server/node_modules/@poppinss/utils/build/chunk-EJKUJ44Y.js +12 -0
  531. package/.output/server/node_modules/@poppinss/utils/build/chunk-H54AK3PI.js +7 -0
  532. package/.output/server/node_modules/@poppinss/utils/build/chunk-XHQBV7AF.js +39 -0
  533. package/.output/server/node_modules/@poppinss/utils/build/index.js +365 -0
  534. package/.output/server/node_modules/@poppinss/utils/build/lodash/main.cjs +39 -0
  535. package/.output/server/node_modules/@poppinss/utils/package.json +153 -0
  536. package/.output/server/node_modules/@shikijs/core/dist/index.mjs +2333 -0
  537. package/.output/server/node_modules/@shikijs/core/package.json +49 -0
  538. package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +52 -0
  539. package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +22 -0
  540. package/.output/server/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
  541. package/.output/server/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs +93 -0
  542. package/.output/server/node_modules/@shikijs/engine-javascript/package.json +39 -0
  543. package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +448 -0
  544. package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
  545. package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +42 -0
  546. package/.output/server/node_modules/@shikijs/langs/dist/css.mjs +5 -0
  547. package/.output/server/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
  548. package/.output/server/node_modules/@shikijs/langs/dist/html.mjs +10 -0
  549. package/.output/server/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
  550. package/.output/server/node_modules/@shikijs/langs/dist/json.mjs +5 -0
  551. package/.output/server/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
  552. package/.output/server/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
  553. package/.output/server/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
  554. package/.output/server/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
  555. package/.output/server/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
  556. package/.output/server/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
  557. package/.output/server/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
  558. package/.output/server/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
  559. package/.output/server/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
  560. package/.output/server/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
  561. package/.output/server/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
  562. package/.output/server/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
  563. package/.output/server/node_modules/@shikijs/langs/package.json +357 -0
  564. package/.output/server/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
  565. package/.output/server/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
  566. package/.output/server/node_modules/@shikijs/themes/package.json +98 -0
  567. package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +744 -0
  568. package/.output/server/node_modules/@shikijs/transformers/package.json +37 -0
  569. package/.output/server/node_modules/@shikijs/types/dist/index.mjs +8 -0
  570. package/.output/server/node_modules/@shikijs/types/package.json +36 -0
  571. package/.output/server/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
  572. package/.output/server/node_modules/@shikijs/vscode-textmate/package.json +46 -0
  573. package/.output/server/node_modules/@sindresorhus/is/dist/index.js +434 -0
  574. package/.output/server/node_modules/@sindresorhus/is/package.json +96 -0
  575. package/.output/server/node_modules/@trysound/sax/lib/sax.js +1413 -0
  576. package/.output/server/node_modules/@trysound/sax/package.json +30 -0
  577. package/.output/server/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
  578. package/.output/server/node_modules/@ungap/structured-clone/esm/index.js +25 -0
  579. package/.output/server/node_modules/@ungap/structured-clone/esm/serialize.js +171 -0
  580. package/.output/server/node_modules/@ungap/structured-clone/esm/types.js +11 -0
  581. package/.output/server/node_modules/@ungap/structured-clone/package.json +54 -0
  582. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6706 -0
  583. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  584. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
  585. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  586. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1402 -0
  587. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  588. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
  589. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
  590. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
  591. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
  592. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
  593. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
  594. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
  595. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
  596. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
  597. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
  598. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
  599. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
  600. package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
  601. package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
  602. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1806 -0
  603. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  604. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6734 -0
  605. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  606. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1677 -0
  607. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  608. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
  609. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  610. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  611. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  612. package/.output/server/node_modules/bail/index.js +12 -0
  613. package/.output/server/node_modules/bail/package.json +73 -0
  614. package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  615. package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
  616. package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
  617. package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
  618. package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
  619. package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
  620. package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
  621. package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
  622. package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
  623. package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
  624. package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
  625. package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
  626. package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
  627. package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
  628. package/.output/server/node_modules/better-sqlite3/package.json +62 -0
  629. package/.output/server/node_modules/bindings/bindings.js +221 -0
  630. package/.output/server/node_modules/bindings/package.json +28 -0
  631. package/.output/server/node_modules/boolbase/index.js +8 -0
  632. package/.output/server/node_modules/boolbase/package.json +23 -0
  633. package/.output/server/node_modules/bytes/index.js +170 -0
  634. package/.output/server/node_modules/bytes/package.json +42 -0
  635. package/.output/server/node_modules/case-anything/dist/core.js +242 -0
  636. package/.output/server/node_modules/case-anything/dist/index.js +1 -0
  637. package/.output/server/node_modules/case-anything/dist/utils.js +90 -0
  638. package/.output/server/node_modules/case-anything/package.json +61 -0
  639. package/.output/server/node_modules/ccount/index.js +27 -0
  640. package/.output/server/node_modules/ccount/package.json +71 -0
  641. package/.output/server/node_modules/char-regex/index.js +39 -0
  642. package/.output/server/node_modules/char-regex/package.json +44 -0
  643. package/.output/server/node_modules/character-entities/index.js +2132 -0
  644. package/.output/server/node_modules/character-entities/package.json +78 -0
  645. package/.output/server/node_modules/character-entities-html4/index.js +259 -0
  646. package/.output/server/node_modules/character-entities-html4/package.json +79 -0
  647. package/.output/server/node_modules/character-entities-legacy/index.js +113 -0
  648. package/.output/server/node_modules/character-entities-legacy/package.json +77 -0
  649. package/.output/server/node_modules/character-reference-invalid/index.js +35 -0
  650. package/.output/server/node_modules/character-reference-invalid/package.json +83 -0
  651. package/.output/server/node_modules/color/index.js +496 -0
  652. package/.output/server/node_modules/color/package.json +47 -0
  653. package/.output/server/node_modules/color-convert/conversions.js +839 -0
  654. package/.output/server/node_modules/color-convert/index.js +81 -0
  655. package/.output/server/node_modules/color-convert/package.json +48 -0
  656. package/.output/server/node_modules/color-convert/route.js +97 -0
  657. package/.output/server/node_modules/color-name/index.js +152 -0
  658. package/.output/server/node_modules/color-name/package.json +28 -0
  659. package/.output/server/node_modules/color-string/index.js +242 -0
  660. package/.output/server/node_modules/color-string/package.json +39 -0
  661. package/.output/server/node_modules/comma-separated-tokens/index.js +74 -0
  662. package/.output/server/node_modules/comma-separated-tokens/package.json +72 -0
  663. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  664. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  665. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  666. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  667. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  668. package/.output/server/node_modules/consola/package.json +136 -0
  669. package/.output/server/node_modules/cookie-es/dist/index.mjs +262 -0
  670. package/.output/server/node_modules/cookie-es/package.json +46 -0
  671. package/.output/server/node_modules/css-select/lib/attributes.js +236 -0
  672. package/.output/server/node_modules/css-select/lib/compile.js +151 -0
  673. package/.output/server/node_modules/css-select/lib/general.js +148 -0
  674. package/.output/server/node_modules/css-select/lib/index.js +154 -0
  675. package/.output/server/node_modules/css-select/lib/pseudo-selectors/aliases.js +34 -0
  676. package/.output/server/node_modules/css-select/lib/pseudo-selectors/filters.js +157 -0
  677. package/.output/server/node_modules/css-select/lib/pseudo-selectors/index.js +46 -0
  678. package/.output/server/node_modules/css-select/lib/pseudo-selectors/pseudos.js +93 -0
  679. package/.output/server/node_modules/css-select/lib/pseudo-selectors/subselects.js +112 -0
  680. package/.output/server/node_modules/css-select/lib/sort.js +84 -0
  681. package/.output/server/node_modules/css-select/package.json +81 -0
  682. package/.output/server/node_modules/css-what/lib/commonjs/index.js +23 -0
  683. package/.output/server/node_modules/css-what/lib/commonjs/parse.js +425 -0
  684. package/.output/server/node_modules/css-what/lib/commonjs/stringify.js +138 -0
  685. package/.output/server/node_modules/css-what/lib/commonjs/types.js +42 -0
  686. package/.output/server/node_modules/css-what/package.json +59 -0
  687. package/.output/server/node_modules/cssfilter/lib/css.js +110 -0
  688. package/.output/server/node_modules/cssfilter/lib/default.js +398 -0
  689. package/.output/server/node_modules/cssfilter/lib/index.js +32 -0
  690. package/.output/server/node_modules/cssfilter/lib/parser.js +74 -0
  691. package/.output/server/node_modules/cssfilter/lib/util.js +35 -0
  692. package/.output/server/node_modules/cssfilter/package.json +49 -0
  693. package/.output/server/node_modules/csso/cjs/clean/Atrule.cjs +73 -0
  694. package/.output/server/node_modules/csso/cjs/clean/Comment.cjs +7 -0
  695. package/.output/server/node_modules/csso/cjs/clean/Declaration.cjs +18 -0
  696. package/.output/server/node_modules/csso/cjs/clean/Raw.cjs +13 -0
  697. package/.output/server/node_modules/csso/cjs/clean/Rule.cjs +104 -0
  698. package/.output/server/node_modules/csso/cjs/clean/TypeSelector.cjs +23 -0
  699. package/.output/server/node_modules/csso/cjs/clean/WhiteSpace.cjs +7 -0
  700. package/.output/server/node_modules/csso/cjs/clean/index.cjs +32 -0
  701. package/.output/server/node_modules/csso/cjs/clean/utils.cjs +12 -0
  702. package/.output/server/node_modules/csso/cjs/compress.cjs +200 -0
  703. package/.output/server/node_modules/csso/cjs/index.cjs +127 -0
  704. package/.output/server/node_modules/csso/cjs/replace/Atrule.cjs +13 -0
  705. package/.output/server/node_modules/csso/cjs/replace/AttributeSelector.cjs +32 -0
  706. package/.output/server/node_modules/csso/cjs/replace/Dimension.cjs +67 -0
  707. package/.output/server/node_modules/csso/cjs/replace/Number.cjs +45 -0
  708. package/.output/server/node_modules/csso/cjs/replace/Percentage.cjs +41 -0
  709. package/.output/server/node_modules/csso/cjs/replace/Url.cjs +8 -0
  710. package/.output/server/node_modules/csso/cjs/replace/Value.cjs +29 -0
  711. package/.output/server/node_modules/csso/cjs/replace/atrule/keyframes.cjs +25 -0
  712. package/.output/server/node_modules/csso/cjs/replace/color.cjs +504 -0
  713. package/.output/server/node_modules/csso/cjs/replace/index.cjs +36 -0
  714. package/.output/server/node_modules/csso/cjs/replace/property/background.cjs +54 -0
  715. package/.output/server/node_modules/csso/cjs/replace/property/border.cjs +20 -0
  716. package/.output/server/node_modules/csso/cjs/replace/property/font-weight.cjs +26 -0
  717. package/.output/server/node_modules/csso/cjs/replace/property/font.cjs +34 -0
  718. package/.output/server/node_modules/csso/cjs/restructure/1-mergeAtrule.cjs +109 -0
  719. package/.output/server/node_modules/csso/cjs/restructure/2-initialMergeRuleset.cjs +51 -0
  720. package/.output/server/node_modules/csso/cjs/restructure/3-disjoinRuleset.cjs +46 -0
  721. package/.output/server/node_modules/csso/cjs/restructure/4-restructShorthand.cjs +429 -0
  722. package/.output/server/node_modules/csso/cjs/restructure/6-restructBlock.cjs +307 -0
  723. package/.output/server/node_modules/csso/cjs/restructure/7-mergeRuleset.cjs +90 -0
  724. package/.output/server/node_modules/csso/cjs/restructure/8-restructRuleset.cjs +175 -0
  725. package/.output/server/node_modules/csso/cjs/restructure/index.cjs +39 -0
  726. package/.output/server/node_modules/csso/cjs/restructure/prepare/createDeclarationIndexer.cjs +34 -0
  727. package/.output/server/node_modules/csso/cjs/restructure/prepare/index.cjs +45 -0
  728. package/.output/server/node_modules/csso/cjs/restructure/prepare/processSelector.cjs +101 -0
  729. package/.output/server/node_modules/csso/cjs/restructure/prepare/specificity.cjs +133 -0
  730. package/.output/server/node_modules/csso/cjs/restructure/utils.cjs +151 -0
  731. package/.output/server/node_modules/csso/cjs/syntax.cjs +60 -0
  732. package/.output/server/node_modules/csso/cjs/usage.cjs +75 -0
  733. package/.output/server/node_modules/csso/cjs/utils.cjs +14 -0
  734. package/.output/server/node_modules/csso/cjs/version.cjs +5 -0
  735. package/.output/server/node_modules/csso/package.json +82 -0
  736. package/.output/server/node_modules/debug/package.json +64 -0
  737. package/.output/server/node_modules/debug/src/browser.js +272 -0
  738. package/.output/server/node_modules/debug/src/common.js +292 -0
  739. package/.output/server/node_modules/debug/src/index.js +10 -0
  740. package/.output/server/node_modules/debug/src/node.js +263 -0
  741. package/.output/server/node_modules/decode-named-character-reference/index.js +19 -0
  742. package/.output/server/node_modules/decode-named-character-reference/package.json +89 -0
  743. package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
  744. package/.output/server/node_modules/defu/package.json +43 -0
  745. package/.output/server/node_modules/destr/dist/index.mjs +72 -0
  746. package/.output/server/node_modules/destr/package.json +47 -0
  747. package/.output/server/node_modules/detab/index.js +45 -0
  748. package/.output/server/node_modules/detab/package.json +71 -0
  749. package/.output/server/node_modules/detect-libc/lib/detect-libc.js +267 -0
  750. package/.output/server/node_modules/detect-libc/lib/filesystem.js +41 -0
  751. package/.output/server/node_modules/detect-libc/lib/process.js +24 -0
  752. package/.output/server/node_modules/detect-libc/package.json +41 -0
  753. package/.output/server/node_modules/devalue/index.js +3 -0
  754. package/.output/server/node_modules/devalue/package.json +37 -0
  755. package/.output/server/node_modules/devalue/src/base64.js +110 -0
  756. package/.output/server/node_modules/devalue/src/constants.js +6 -0
  757. package/.output/server/node_modules/devalue/src/parse.js +195 -0
  758. package/.output/server/node_modules/devalue/src/stringify.js +261 -0
  759. package/.output/server/node_modules/devalue/src/uneval.js +402 -0
  760. package/.output/server/node_modules/devalue/src/utils.js +114 -0
  761. package/.output/server/node_modules/devlop/lib/default.js +9 -0
  762. package/.output/server/node_modules/devlop/package.json +80 -0
  763. package/.output/server/node_modules/dom-serializer/lib/foreignNames.js +103 -0
  764. package/.output/server/node_modules/dom-serializer/lib/index.js +229 -0
  765. package/.output/server/node_modules/dom-serializer/package.json +69 -0
  766. package/.output/server/node_modules/domelementtype/lib/index.js +55 -0
  767. package/.output/server/node_modules/domelementtype/package.json +54 -0
  768. package/.output/server/node_modules/domhandler/lib/index.js +165 -0
  769. package/.output/server/node_modules/domhandler/lib/node.js +474 -0
  770. package/.output/server/node_modules/domhandler/package.json +73 -0
  771. package/.output/server/node_modules/domutils/lib/feeds.js +190 -0
  772. package/.output/server/node_modules/domutils/lib/helpers.js +142 -0
  773. package/.output/server/node_modules/domutils/lib/index.js +33 -0
  774. package/.output/server/node_modules/domutils/lib/legacy.js +168 -0
  775. package/.output/server/node_modules/domutils/lib/manipulation.js +142 -0
  776. package/.output/server/node_modules/domutils/lib/querying.js +155 -0
  777. package/.output/server/node_modules/domutils/lib/stringify.js +91 -0
  778. package/.output/server/node_modules/domutils/lib/traversal.js +125 -0
  779. package/.output/server/node_modules/domutils/package.json +79 -0
  780. package/.output/server/node_modules/emojilib/emojis.json +9422 -0
  781. package/.output/server/node_modules/emojilib/index.js +5 -0
  782. package/.output/server/node_modules/emojilib/ordered.json +1572 -0
  783. package/.output/server/node_modules/emojilib/package.json +41 -0
  784. package/.output/server/node_modules/emoticon/index.js +480 -0
  785. package/.output/server/node_modules/emoticon/package.json +88 -0
  786. package/.output/server/node_modules/escape-string-regexp/index.js +11 -0
  787. package/.output/server/node_modules/escape-string-regexp/package.json +40 -0
  788. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  789. package/.output/server/node_modules/estree-walker/package.json +37 -0
  790. package/.output/server/node_modules/etag/index.js +131 -0
  791. package/.output/server/node_modules/etag/package.json +47 -0
  792. package/.output/server/node_modules/extend/index.js +117 -0
  793. package/.output/server/node_modules/extend/package.json +42 -0
  794. package/.output/server/node_modules/fast-xml-parser/package.json +90 -0
  795. package/.output/server/node_modules/fast-xml-parser/src/fxp.js +14 -0
  796. package/.output/server/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
  797. package/.output/server/node_modules/fast-xml-parser/src/util.js +68 -0
  798. package/.output/server/node_modules/fast-xml-parser/src/validator.js +425 -0
  799. package/.output/server/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +285 -0
  800. package/.output/server/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +134 -0
  801. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +369 -0
  802. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +46 -0
  803. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +606 -0
  804. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +71 -0
  805. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/node2json.js +119 -0
  806. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +40 -0
  807. package/.output/server/node_modules/file-uri-to-path/index.js +66 -0
  808. package/.output/server/node_modules/file-uri-to-path/package.json +32 -0
  809. package/.output/server/node_modules/flat/index.js +157 -0
  810. package/.output/server/node_modules/flat/package.json +49 -0
  811. package/.output/server/node_modules/flattie/dist/index.mjs +25 -0
  812. package/.output/server/node_modules/flattie/package.json +48 -0
  813. package/.output/server/node_modules/github-slugger/index.js +77 -0
  814. package/.output/server/node_modules/github-slugger/package.json +71 -0
  815. package/.output/server/node_modules/github-slugger/regex.js +3 -0
  816. package/.output/server/node_modules/h3/dist/index.mjs +2478 -0
  817. package/.output/server/node_modules/h3/package.json +75 -0
  818. package/.output/server/node_modules/has-flag/index.js +8 -0
  819. package/.output/server/node_modules/has-flag/package.json +46 -0
  820. package/.output/server/node_modules/hast-util-embedded/index.js +1 -0
  821. package/.output/server/node_modules/hast-util-embedded/lib/index.js +33 -0
  822. package/.output/server/node_modules/hast-util-embedded/package.json +78 -0
  823. package/.output/server/node_modules/hast-util-format/index.js +2 -0
  824. package/.output/server/node_modules/hast-util-format/lib/index.js +186 -0
  825. package/.output/server/node_modules/hast-util-format/package.json +124 -0
  826. package/.output/server/node_modules/hast-util-from-parse5/index.js +2 -0
  827. package/.output/server/node_modules/hast-util-from-parse5/lib/index.js +337 -0
  828. package/.output/server/node_modules/hast-util-from-parse5/package.json +120 -0
  829. package/.output/server/node_modules/hast-util-has-property/index.js +1 -0
  830. package/.output/server/node_modules/hast-util-has-property/lib/index.js +29 -0
  831. package/.output/server/node_modules/hast-util-has-property/package.json +79 -0
  832. package/.output/server/node_modules/hast-util-is-body-ok-link/index.js +46 -0
  833. package/.output/server/node_modules/hast-util-is-body-ok-link/lib/index.js +38 -0
  834. package/.output/server/node_modules/hast-util-is-body-ok-link/package.json +52 -0
  835. package/.output/server/node_modules/hast-util-is-element/index.js +7 -0
  836. package/.output/server/node_modules/hast-util-is-element/lib/index.js +278 -0
  837. package/.output/server/node_modules/hast-util-is-element/package.json +82 -0
  838. package/.output/server/node_modules/hast-util-minify-whitespace/index.js +69 -0
  839. package/.output/server/node_modules/hast-util-minify-whitespace/lib/block.js +61 -0
  840. package/.output/server/node_modules/hast-util-minify-whitespace/lib/content.js +7 -0
  841. package/.output/server/node_modules/hast-util-minify-whitespace/lib/index.js +377 -0
  842. package/.output/server/node_modules/hast-util-minify-whitespace/lib/skippable.js +20 -0
  843. package/.output/server/node_modules/hast-util-minify-whitespace/package.json +56 -0
  844. package/.output/server/node_modules/hast-util-parse-selector/index.js +1 -0
  845. package/.output/server/node_modules/hast-util-parse-selector/lib/index.js +87 -0
  846. package/.output/server/node_modules/hast-util-parse-selector/package.json +79 -0
  847. package/.output/server/node_modules/hast-util-phrasing/index.js +1 -0
  848. package/.output/server/node_modules/hast-util-phrasing/lib/index.js +78 -0
  849. package/.output/server/node_modules/hast-util-phrasing/package.json +83 -0
  850. package/.output/server/node_modules/hast-util-raw/index.js +2 -0
  851. package/.output/server/node_modules/hast-util-raw/lib/index.js +682 -0
  852. package/.output/server/node_modules/hast-util-raw/package.json +123 -0
  853. package/.output/server/node_modules/hast-util-to-html/index.js +8 -0
  854. package/.output/server/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
  855. package/.output/server/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
  856. package/.output/server/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
  857. package/.output/server/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
  858. package/.output/server/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
  859. package/.output/server/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
  860. package/.output/server/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
  861. package/.output/server/node_modules/hast-util-to-html/lib/index.js +257 -0
  862. package/.output/server/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
  863. package/.output/server/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
  864. package/.output/server/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
  865. package/.output/server/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
  866. package/.output/server/node_modules/hast-util-to-html/package.json +106 -0
  867. package/.output/server/node_modules/hast-util-to-mdast/index.js +13 -0
  868. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/a.js +30 -0
  869. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/base.js +20 -0
  870. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/blockquote.js +20 -0
  871. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/br.js +20 -0
  872. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/code.js +65 -0
  873. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/comment.js +23 -0
  874. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/del.js +23 -0
  875. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/dl.js +144 -0
  876. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/em.js +24 -0
  877. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/heading.js +30 -0
  878. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/hr.js +20 -0
  879. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/iframe.js +35 -0
  880. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/img.js +27 -0
  881. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/index.js +233 -0
  882. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/inline-code.js +22 -0
  883. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/input.js +137 -0
  884. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/li.js +147 -0
  885. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/list.js +47 -0
  886. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/media.js +82 -0
  887. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/p.js +30 -0
  888. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/q.js +43 -0
  889. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/root.js +28 -0
  890. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/select.js +34 -0
  891. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/strong.js +24 -0
  892. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table-cell.js +38 -0
  893. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table-row.js +29 -0
  894. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table.js +203 -0
  895. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/text.js +20 -0
  896. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/textarea.js +22 -0
  897. package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/wbr.js +20 -0
  898. package/.output/server/node_modules/hast-util-to-mdast/lib/index.js +111 -0
  899. package/.output/server/node_modules/hast-util-to-mdast/lib/state.js +389 -0
  900. package/.output/server/node_modules/hast-util-to-mdast/lib/util/drop-surrounding-breaks.js +23 -0
  901. package/.output/server/node_modules/hast-util-to-mdast/lib/util/find-selected-options.js +90 -0
  902. package/.output/server/node_modules/hast-util-to-mdast/lib/util/list-items-spread.js +25 -0
  903. package/.output/server/node_modules/hast-util-to-mdast/lib/util/wrap.js +223 -0
  904. package/.output/server/node_modules/hast-util-to-mdast/package.json +124 -0
  905. package/.output/server/node_modules/hast-util-to-parse5/index.js +6 -0
  906. package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +338 -0
  907. package/.output/server/node_modules/hast-util-to-parse5/package.json +87 -0
  908. package/.output/server/node_modules/hast-util-to-string/index.js +46 -0
  909. package/.output/server/node_modules/hast-util-to-string/lib/index.js +54 -0
  910. package/.output/server/node_modules/hast-util-to-string/package.json +54 -0
  911. package/.output/server/node_modules/hast-util-to-text/index.js +6 -0
  912. package/.output/server/node_modules/hast-util-to-text/lib/index.js +633 -0
  913. package/.output/server/node_modules/hast-util-to-text/package.json +87 -0
  914. package/.output/server/node_modules/hast-util-whitespace/index.js +1 -0
  915. package/.output/server/node_modules/hast-util-whitespace/lib/index.js +34 -0
  916. package/.output/server/node_modules/hast-util-whitespace/package.json +83 -0
  917. package/.output/server/node_modules/hastscript/index.js +7 -0
  918. package/.output/server/node_modules/hastscript/lib/create-h.js +365 -0
  919. package/.output/server/node_modules/hastscript/lib/index.js +27 -0
  920. package/.output/server/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +46 -0
  921. package/.output/server/node_modules/hastscript/package.json +126 -0
  922. package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
  923. package/.output/server/node_modules/hookable/package.json +49 -0
  924. package/.output/server/node_modules/html-void-elements/index.js +27 -0
  925. package/.output/server/node_modules/html-void-elements/package.json +79 -0
  926. package/.output/server/node_modules/html-whitespace-sensitive-tag-names/index.js +28 -0
  927. package/.output/server/node_modules/html-whitespace-sensitive-tag-names/lib/index.js +9 -0
  928. package/.output/server/node_modules/html-whitespace-sensitive-tag-names/package.json +48 -0
  929. package/.output/server/node_modules/image-meta/dist/index.mjs +785 -0
  930. package/.output/server/node_modules/image-meta/package.json +46 -0
  931. package/.output/server/node_modules/ipx/dist/index.mjs +52 -0
  932. package/.output/server/node_modules/ipx/dist/shared/ipx.e4d5b25d.mjs +761 -0
  933. package/.output/server/node_modules/ipx/package.json +72 -0
  934. package/.output/server/node_modules/iron-webcrypto/dist/index.js +298 -0
  935. package/.output/server/node_modules/iron-webcrypto/package.json +72 -0
  936. package/.output/server/node_modules/is-absolute-url/index.js +18 -0
  937. package/.output/server/node_modules/is-absolute-url/package.json +37 -0
  938. package/.output/server/node_modules/is-alphabetical/index.js +16 -0
  939. package/.output/server/node_modules/is-alphabetical/package.json +73 -0
  940. package/.output/server/node_modules/is-alphanumerical/index.js +13 -0
  941. package/.output/server/node_modules/is-alphanumerical/package.json +79 -0
  942. package/.output/server/node_modules/is-arrayish/index.js +9 -0
  943. package/.output/server/node_modules/is-arrayish/package.json +45 -0
  944. package/.output/server/node_modules/is-decimal/index.js +13 -0
  945. package/.output/server/node_modules/is-decimal/package.json +73 -0
  946. package/.output/server/node_modules/is-hexadecimal/index.js +17 -0
  947. package/.output/server/node_modules/is-hexadecimal/package.json +73 -0
  948. package/.output/server/node_modules/is-plain-obj/index.js +8 -0
  949. package/.output/server/node_modules/is-plain-obj/package.json +41 -0
  950. package/.output/server/node_modules/jose/dist/webapi/index.js +30 -0
  951. package/.output/server/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
  952. package/.output/server/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
  953. package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +165 -0
  954. package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +165 -0
  955. package/.output/server/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
  956. package/.output/server/node_modules/jose/dist/webapi/jwe/general/encrypt.js +187 -0
  957. package/.output/server/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
  958. package/.output/server/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
  959. package/.output/server/node_modules/jose/dist/webapi/jwks/local.js +119 -0
  960. package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
  961. package/.output/server/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
  962. package/.output/server/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
  963. package/.output/server/node_modules/jose/dist/webapi/jws/flattened/sign.js +86 -0
  964. package/.output/server/node_modules/jose/dist/webapi/jws/flattened/verify.js +116 -0
  965. package/.output/server/node_modules/jose/dist/webapi/jws/general/sign.js +73 -0
  966. package/.output/server/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
  967. package/.output/server/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
  968. package/.output/server/node_modules/jose/dist/webapi/jwt/encrypt.js +108 -0
  969. package/.output/server/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
  970. package/.output/server/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
  971. package/.output/server/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
  972. package/.output/server/node_modules/jose/dist/webapi/key/export.js +11 -0
  973. package/.output/server/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
  974. package/.output/server/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
  975. package/.output/server/node_modules/jose/dist/webapi/key/import.js +57 -0
  976. package/.output/server/node_modules/jose/dist/webapi/lib/aesgcmkw.js +16 -0
  977. package/.output/server/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
  978. package/.output/server/node_modules/jose/dist/webapi/lib/asn1.js +247 -0
  979. package/.output/server/node_modules/jose/dist/webapi/lib/base64.js +22 -0
  980. package/.output/server/node_modules/jose/dist/webapi/lib/buffer_utils.js +32 -0
  981. package/.output/server/node_modules/jose/dist/webapi/lib/cek.js +19 -0
  982. package/.output/server/node_modules/jose/dist/webapi/lib/check_cek_length.js +7 -0
  983. package/.output/server/node_modules/jose/dist/webapi/lib/check_iv_length.js +7 -0
  984. package/.output/server/node_modules/jose/dist/webapi/lib/check_key_length.js +8 -0
  985. package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +126 -0
  986. package/.output/server/node_modules/jose/dist/webapi/lib/crypto_key.js +147 -0
  987. package/.output/server/node_modules/jose/dist/webapi/lib/decrypt.js +106 -0
  988. package/.output/server/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +127 -0
  989. package/.output/server/node_modules/jose/dist/webapi/lib/digest.js +4 -0
  990. package/.output/server/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
  991. package/.output/server/node_modules/jose/dist/webapi/lib/encrypt.js +74 -0
  992. package/.output/server/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +92 -0
  993. package/.output/server/node_modules/jose/dist/webapi/lib/epoch.js +1 -0
  994. package/.output/server/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +12 -0
  995. package/.output/server/node_modules/jose/dist/webapi/lib/invalid_key_input.js +31 -0
  996. package/.output/server/node_modules/jose/dist/webapi/lib/is_disjoint.js +21 -0
  997. package/.output/server/node_modules/jose/dist/webapi/lib/is_jwk.js +14 -0
  998. package/.output/server/node_modules/jose/dist/webapi/lib/is_key_like.js +14 -0
  999. package/.output/server/node_modules/jose/dist/webapi/lib/is_object.js +16 -0
  1000. package/.output/server/node_modules/jose/dist/webapi/lib/iv.js +19 -0
  1001. package/.output/server/node_modules/jose/dist/webapi/lib/jwk_to_key.js +109 -0
  1002. package/.output/server/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +185 -0
  1003. package/.output/server/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
  1004. package/.output/server/node_modules/jose/dist/webapi/lib/normalize_key.js +176 -0
  1005. package/.output/server/node_modules/jose/dist/webapi/lib/pbes2kw.js +37 -0
  1006. package/.output/server/node_modules/jose/dist/webapi/lib/private_symbols.js +1 -0
  1007. package/.output/server/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
  1008. package/.output/server/node_modules/jose/dist/webapi/lib/secs.js +55 -0
  1009. package/.output/server/node_modules/jose/dist/webapi/lib/sign.js +9 -0
  1010. package/.output/server/node_modules/jose/dist/webapi/lib/subtle_dsa.js +31 -0
  1011. package/.output/server/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
  1012. package/.output/server/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
  1013. package/.output/server/node_modules/jose/dist/webapi/lib/verify.js +14 -0
  1014. package/.output/server/node_modules/jose/dist/webapi/util/base64url.js +30 -0
  1015. package/.output/server/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
  1016. package/.output/server/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
  1017. package/.output/server/node_modules/jose/dist/webapi/util/errors.js +99 -0
  1018. package/.output/server/node_modules/jose/package.json +200 -0
  1019. package/.output/server/node_modules/longest-streak/index.js +36 -0
  1020. package/.output/server/node_modules/longest-streak/package.json +73 -0
  1021. package/.output/server/node_modules/lru-cache/dist/esm/index.js +1542 -0
  1022. package/.output/server/node_modules/lru-cache/dist/esm/package.json +3 -0
  1023. package/.output/server/node_modules/lru-cache/package.json +116 -0
  1024. package/.output/server/node_modules/markdown-table/index.js +393 -0
  1025. package/.output/server/node_modules/markdown-table/package.json +77 -0
  1026. package/.output/server/node_modules/mdast-util-find-and-replace/index.js +11 -0
  1027. package/.output/server/node_modules/mdast-util-find-and-replace/lib/index.js +261 -0
  1028. package/.output/server/node_modules/mdast-util-find-and-replace/package.json +85 -0
  1029. package/.output/server/node_modules/mdast-util-from-markdown/index.js +2 -0
  1030. package/.output/server/node_modules/mdast-util-from-markdown/lib/index.js +1177 -0
  1031. package/.output/server/node_modules/mdast-util-from-markdown/package.json +139 -0
  1032. package/.output/server/node_modules/mdast-util-gfm/index.js +2 -0
  1033. package/.output/server/node_modules/mdast-util-gfm/lib/index.js +63 -0
  1034. package/.output/server/node_modules/mdast-util-gfm/package.json +125 -0
  1035. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
  1036. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
  1037. package/.output/server/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
  1038. package/.output/server/node_modules/mdast-util-gfm-footnote/index.js +2 -0
  1039. package/.output/server/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
  1040. package/.output/server/node_modules/mdast-util-gfm-footnote/package.json +111 -0
  1041. package/.output/server/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
  1042. package/.output/server/node_modules/mdast-util-gfm-strikethrough/lib/index.js +106 -0
  1043. package/.output/server/node_modules/mdast-util-gfm-strikethrough/package.json +99 -0
  1044. package/.output/server/node_modules/mdast-util-gfm-table/index.js +2 -0
  1045. package/.output/server/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
  1046. package/.output/server/node_modules/mdast-util-gfm-table/package.json +101 -0
  1047. package/.output/server/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
  1048. package/.output/server/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
  1049. package/.output/server/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
  1050. package/.output/server/node_modules/mdast-util-phrasing/index.js +1 -0
  1051. package/.output/server/node_modules/mdast-util-phrasing/lib/index.js +45 -0
  1052. package/.output/server/node_modules/mdast-util-phrasing/package.json +78 -0
  1053. package/.output/server/node_modules/mdast-util-to-hast/index.js +7 -0
  1054. package/.output/server/node_modules/mdast-util-to-hast/lib/footer.js +252 -0
  1055. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +30 -0
  1056. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/break.js +26 -0
  1057. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/code.js +50 -0
  1058. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/delete.js +30 -0
  1059. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +30 -0
  1060. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +70 -0
  1061. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/heading.js +30 -0
  1062. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/html.js +31 -0
  1063. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +41 -0
  1064. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/image.js +36 -0
  1065. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/index.js +64 -0
  1066. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +35 -0
  1067. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +46 -0
  1068. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/link.js +37 -0
  1069. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +125 -0
  1070. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/list.js +56 -0
  1071. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +30 -0
  1072. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/root.js +26 -0
  1073. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/strong.js +30 -0
  1074. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +32 -0
  1075. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +69 -0
  1076. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table.js +61 -0
  1077. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/text.js +25 -0
  1078. package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +30 -0
  1079. package/.output/server/node_modules/mdast-util-to-hast/lib/index.js +106 -0
  1080. package/.output/server/node_modules/mdast-util-to-hast/lib/revert.js +55 -0
  1081. package/.output/server/node_modules/mdast-util-to-hast/lib/state.js +473 -0
  1082. package/.output/server/node_modules/mdast-util-to-hast/package.json +118 -0
  1083. package/.output/server/node_modules/mdast-util-to-markdown/index.js +3 -0
  1084. package/.output/server/node_modules/mdast-util-to-markdown/lib/configure.js +79 -0
  1085. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +29 -0
  1086. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/break.js +30 -0
  1087. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/code.js +75 -0
  1088. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/definition.js +76 -0
  1089. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +69 -0
  1090. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/heading.js +75 -0
  1091. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/html.js +20 -0
  1092. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +63 -0
  1093. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image.js +82 -0
  1094. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
  1095. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +76 -0
  1096. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +63 -0
  1097. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link.js +114 -0
  1098. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +62 -0
  1099. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list.js +100 -0
  1100. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +20 -0
  1101. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/root.js +23 -0
  1102. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/strong.js +69 -0
  1103. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/text.js +15 -0
  1104. package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +21 -0
  1105. package/.output/server/node_modules/mdast-util-to-markdown/lib/index.js +187 -0
  1106. package/.output/server/node_modules/mdast-util-to-markdown/lib/join.js +39 -0
  1107. package/.output/server/node_modules/mdast-util-to-markdown/lib/unsafe.js +146 -0
  1108. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
  1109. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +21 -0
  1110. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +38 -0
  1111. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +21 -0
  1112. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +21 -0
  1113. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +21 -0
  1114. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +21 -0
  1115. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +21 -0
  1116. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +21 -0
  1117. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +21 -0
  1118. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +21 -0
  1119. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +24 -0
  1120. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +84 -0
  1121. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +125 -0
  1122. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
  1123. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
  1124. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +22 -0
  1125. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +34 -0
  1126. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +34 -0
  1127. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +35 -0
  1128. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +41 -0
  1129. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/safe.js +174 -0
  1130. package/.output/server/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
  1131. package/.output/server/node_modules/mdast-util-to-markdown/package.json +132 -0
  1132. package/.output/server/node_modules/mdast-util-to-string/index.js +5 -0
  1133. package/.output/server/node_modules/mdast-util-to-string/lib/index.js +108 -0
  1134. package/.output/server/node_modules/mdast-util-to-string/package.json +78 -0
  1135. package/.output/server/node_modules/micromark/index.js +60 -0
  1136. package/.output/server/node_modules/micromark/lib/compile.js +1060 -0
  1137. package/.output/server/node_modules/micromark/lib/constructs.js +85 -0
  1138. package/.output/server/node_modules/micromark/lib/create-tokenizer.js +611 -0
  1139. package/.output/server/node_modules/micromark/lib/initialize/content.js +79 -0
  1140. package/.output/server/node_modules/micromark/lib/initialize/document.js +362 -0
  1141. package/.output/server/node_modules/micromark/lib/initialize/flow.js +58 -0
  1142. package/.output/server/node_modules/micromark/lib/initialize/text.js +212 -0
  1143. package/.output/server/node_modules/micromark/lib/parse.js +56 -0
  1144. package/.output/server/node_modules/micromark/lib/postprocess.js +18 -0
  1145. package/.output/server/node_modules/micromark/lib/preprocess.js +115 -0
  1146. package/.output/server/node_modules/micromark/package.json +100 -0
  1147. package/.output/server/node_modules/micromark-core-commonmark/index.js +22 -0
  1148. package/.output/server/node_modules/micromark-core-commonmark/lib/attention.js +241 -0
  1149. package/.output/server/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
  1150. package/.output/server/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
  1151. package/.output/server/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
  1152. package/.output/server/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
  1153. package/.output/server/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
  1154. package/.output/server/node_modules/micromark-core-commonmark/lib/code-fenced.js +460 -0
  1155. package/.output/server/node_modules/micromark-core-commonmark/lib/code-indented.js +177 -0
  1156. package/.output/server/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
  1157. package/.output/server/node_modules/micromark-core-commonmark/lib/content.js +163 -0
  1158. package/.output/server/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
  1159. package/.output/server/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
  1160. package/.output/server/node_modules/micromark-core-commonmark/lib/heading-atx.js +195 -0
  1161. package/.output/server/node_modules/micromark-core-commonmark/lib/html-flow.js +876 -0
  1162. package/.output/server/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
  1163. package/.output/server/node_modules/micromark-core-commonmark/lib/label-end.js +560 -0
  1164. package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-image.js +102 -0
  1165. package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-link.js +55 -0
  1166. package/.output/server/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
  1167. package/.output/server/node_modules/micromark-core-commonmark/lib/list.js +213 -0
  1168. package/.output/server/node_modules/micromark-core-commonmark/lib/setext-underline.js +185 -0
  1169. package/.output/server/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
  1170. package/.output/server/node_modules/micromark-core-commonmark/package.json +74 -0
  1171. package/.output/server/node_modules/micromark-extension-gfm/index.js +69 -0
  1172. package/.output/server/node_modules/micromark-extension-gfm/package.json +107 -0
  1173. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
  1174. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
  1175. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
  1176. package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
  1177. package/.output/server/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
  1178. package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
  1179. package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
  1180. package/.output/server/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
  1181. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
  1182. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
  1183. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
  1184. package/.output/server/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
  1185. package/.output/server/node_modules/micromark-extension-gfm-table/index.js +2 -0
  1186. package/.output/server/node_modules/micromark-extension-gfm-table/lib/edit-map.js +202 -0
  1187. package/.output/server/node_modules/micromark-extension-gfm-table/lib/html.js +130 -0
  1188. package/.output/server/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
  1189. package/.output/server/node_modules/micromark-extension-gfm-table/lib/syntax.js +819 -0
  1190. package/.output/server/node_modules/micromark-extension-gfm-table/package.json +128 -0
  1191. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
  1192. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
  1193. package/.output/server/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
  1194. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
  1195. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
  1196. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
  1197. package/.output/server/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
  1198. package/.output/server/node_modules/micromark-factory-destination/index.js +206 -0
  1199. package/.output/server/node_modules/micromark-factory-destination/package.json +57 -0
  1200. package/.output/server/node_modules/micromark-factory-label/index.js +148 -0
  1201. package/.output/server/node_modules/micromark-factory-label/package.json +60 -0
  1202. package/.output/server/node_modules/micromark-factory-space/index.js +64 -0
  1203. package/.output/server/node_modules/micromark-factory-space/package.json +55 -0
  1204. package/.output/server/node_modules/micromark-factory-title/index.js +158 -0
  1205. package/.output/server/node_modules/micromark-factory-title/package.json +58 -0
  1206. package/.output/server/node_modules/micromark-factory-whitespace/index.js +44 -0
  1207. package/.output/server/node_modules/micromark-factory-whitespace/package.json +57 -0
  1208. package/.output/server/node_modules/micromark-util-character/index.js +246 -0
  1209. package/.output/server/node_modules/micromark-util-character/package.json +57 -0
  1210. package/.output/server/node_modules/micromark-util-chunked/index.js +81 -0
  1211. package/.output/server/node_modules/micromark-util-chunked/package.json +57 -0
  1212. package/.output/server/node_modules/micromark-util-classify-character/index.js +27 -0
  1213. package/.output/server/node_modules/micromark-util-classify-character/package.json +59 -0
  1214. package/.output/server/node_modules/micromark-util-combine-extensions/index.js +143 -0
  1215. package/.output/server/node_modules/micromark-util-combine-extensions/package.json +52 -0
  1216. package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
  1217. package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
  1218. package/.output/server/node_modules/micromark-util-decode-string/index.js +45 -0
  1219. package/.output/server/node_modules/micromark-util-decode-string/package.json +63 -0
  1220. package/.output/server/node_modules/micromark-util-encode/index.js +33 -0
  1221. package/.output/server/node_modules/micromark-util-encode/package.json +47 -0
  1222. package/.output/server/node_modules/micromark-util-html-tag-name/index.js +93 -0
  1223. package/.output/server/node_modules/micromark-util-html-tag-name/package.json +47 -0
  1224. package/.output/server/node_modules/micromark-util-normalize-identifier/index.js +33 -0
  1225. package/.output/server/node_modules/micromark-util-normalize-identifier/package.json +58 -0
  1226. package/.output/server/node_modules/micromark-util-resolve-all/index.js +32 -0
  1227. package/.output/server/node_modules/micromark-util-resolve-all/package.json +48 -0
  1228. package/.output/server/node_modules/micromark-util-sanitize-uri/index.js +107 -0
  1229. package/.output/server/node_modules/micromark-util-sanitize-uri/package.json +59 -0
  1230. package/.output/server/node_modules/micromark-util-subtokenize/index.js +228 -0
  1231. package/.output/server/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
  1232. package/.output/server/node_modules/micromark-util-subtokenize/package.json +60 -0
  1233. package/.output/server/node_modules/minimark/dist/hast.mjs +39 -0
  1234. package/.output/server/node_modules/minimark/package.json +40 -0
  1235. package/.output/server/node_modules/ms/index.js +162 -0
  1236. package/.output/server/node_modules/ms/package.json +38 -0
  1237. package/.output/server/node_modules/node-emoji/lib/index.js +174 -0
  1238. package/.output/server/node_modules/node-emoji/package.json +118 -0
  1239. package/.output/server/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -0
  1240. package/.output/server/node_modules/node-fetch-native/dist/index.mjs +1 -0
  1241. package/.output/server/node_modules/node-fetch-native/dist/node.mjs +19 -0
  1242. package/.output/server/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +1 -0
  1243. package/.output/server/node_modules/node-fetch-native/package.json +138 -0
  1244. package/.output/server/node_modules/node-mock-http/dist/_polyfill/buffer/node.mjs +1 -0
  1245. package/.output/server/node_modules/node-mock-http/dist/_polyfill/events/node.mjs +1 -0
  1246. package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -0
  1247. package/.output/server/node_modules/node-mock-http/package.json +63 -0
  1248. package/.output/server/node_modules/nth-check/lib/compile.js +121 -0
  1249. package/.output/server/node_modules/nth-check/lib/index.js +70 -0
  1250. package/.output/server/node_modules/nth-check/lib/parse.js +77 -0
  1251. package/.output/server/node_modules/nth-check/package.json +78 -0
  1252. package/.output/server/node_modules/oauth4webapi/build/index.js +2492 -0
  1253. package/.output/server/node_modules/oauth4webapi/package.json +105 -0
  1254. package/.output/server/node_modules/ofetch/dist/node.mjs +32 -0
  1255. package/.output/server/node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs +333 -0
  1256. package/.output/server/node_modules/ofetch/package.json +96 -0
  1257. package/.output/server/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
  1258. package/.output/server/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
  1259. package/.output/server/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
  1260. package/.output/server/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
  1261. package/.output/server/node_modules/oniguruma-parser/dist/utils.js +2 -0
  1262. package/.output/server/node_modules/oniguruma-parser/package.json +64 -0
  1263. package/.output/server/node_modules/oniguruma-to-es/dist/esm/index.js +1876 -0
  1264. package/.output/server/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
  1265. package/.output/server/node_modules/oniguruma-to-es/package.json +61 -0
  1266. package/.output/server/node_modules/openid-client/build/index.js +1310 -0
  1267. package/.output/server/node_modules/openid-client/package.json +122 -0
  1268. package/.output/server/node_modules/parse-entities/index.js +3 -0
  1269. package/.output/server/node_modules/parse-entities/lib/index.js +407 -0
  1270. package/.output/server/node_modules/parse-entities/package.json +91 -0
  1271. package/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
  1272. package/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
  1273. package/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
  1274. package/.output/server/node_modules/parse5/dist/common/html.js +523 -0
  1275. package/.output/server/node_modules/parse5/dist/common/token.js +20 -0
  1276. package/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
  1277. package/.output/server/node_modules/parse5/dist/index.js +42 -0
  1278. package/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
  1279. package/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
  1280. package/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
  1281. package/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
  1282. package/.output/server/node_modules/parse5/dist/tokenizer/index.js +2710 -0
  1283. package/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
  1284. package/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
  1285. package/.output/server/node_modules/parse5/package.json +50 -0
  1286. package/.output/server/node_modules/pathe/dist/index.mjs +1 -0
  1287. package/.output/server/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
  1288. package/.output/server/node_modules/pathe/package.json +48 -0
  1289. package/.output/server/node_modules/pluralize/package.json +40 -0
  1290. package/.output/server/node_modules/pluralize/pluralize.js +503 -0
  1291. package/.output/server/node_modules/radix3/dist/index.mjs +262 -0
  1292. package/.output/server/node_modules/radix3/package.json +52 -0
  1293. package/.output/server/node_modules/regex/package.json +60 -0
  1294. package/.output/server/node_modules/regex/src/atomic.js +221 -0
  1295. package/.output/server/node_modules/regex/src/internals.js +2 -0
  1296. package/.output/server/node_modules/regex/src/subclass.js +98 -0
  1297. package/.output/server/node_modules/regex/src/utils-internals.js +33 -0
  1298. package/.output/server/node_modules/regex-recursion/package.json +47 -0
  1299. package/.output/server/node_modules/regex-recursion/src/index.js +365 -0
  1300. package/.output/server/node_modules/regex-utilities/package.json +35 -0
  1301. package/.output/server/node_modules/regex-utilities/src/index.js +170 -0
  1302. package/.output/server/node_modules/rehype-external-links/index.js +10 -0
  1303. package/.output/server/node_modules/rehype-external-links/lib/index.js +179 -0
  1304. package/.output/server/node_modules/rehype-external-links/package.json +86 -0
  1305. package/.output/server/node_modules/rehype-minify-whitespace/index.js +47 -0
  1306. package/.output/server/node_modules/rehype-minify-whitespace/lib/index.js +26 -0
  1307. package/.output/server/node_modules/rehype-minify-whitespace/package.json +56 -0
  1308. package/.output/server/node_modules/rehype-raw/index.js +5 -0
  1309. package/.output/server/node_modules/rehype-raw/lib/index.js +36 -0
  1310. package/.output/server/node_modules/rehype-raw/package.json +82 -0
  1311. package/.output/server/node_modules/rehype-sort-attribute-values/index.js +29 -0
  1312. package/.output/server/node_modules/rehype-sort-attribute-values/lib/index.js +130 -0
  1313. package/.output/server/node_modules/rehype-sort-attribute-values/lib/schema.js +15 -0
  1314. package/.output/server/node_modules/rehype-sort-attribute-values/package.json +56 -0
  1315. package/.output/server/node_modules/rehype-sort-attributes/index.js +30 -0
  1316. package/.output/server/node_modules/rehype-sort-attributes/lib/index.js +120 -0
  1317. package/.output/server/node_modules/rehype-sort-attributes/package.json +54 -0
  1318. package/.output/server/node_modules/remark-emoji/index.js +76 -0
  1319. package/.output/server/node_modules/remark-emoji/package.json +85 -0
  1320. package/.output/server/node_modules/remark-gfm/index.js +2 -0
  1321. package/.output/server/node_modules/remark-gfm/lib/index.js +41 -0
  1322. package/.output/server/node_modules/remark-gfm/package.json +125 -0
  1323. package/.output/server/node_modules/remark-mdc/dist/index.mjs +2010 -0
  1324. package/.output/server/node_modules/remark-mdc/package.json +84 -0
  1325. package/.output/server/node_modules/remark-parse/index.js +2 -0
  1326. package/.output/server/node_modules/remark-parse/lib/index.js +43 -0
  1327. package/.output/server/node_modules/remark-parse/package.json +72 -0
  1328. package/.output/server/node_modules/remark-rehype/index.js +10 -0
  1329. package/.output/server/node_modules/remark-rehype/lib/index.js +175 -0
  1330. package/.output/server/node_modules/remark-rehype/package.json +86 -0
  1331. package/.output/server/node_modules/remark-stringify/index.js +2 -0
  1332. package/.output/server/node_modules/remark-stringify/lib/index.js +42 -0
  1333. package/.output/server/node_modules/remark-stringify/package.json +71 -0
  1334. package/.output/server/node_modules/safe-stable-stringify/esm/package.json +4 -0
  1335. package/.output/server/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  1336. package/.output/server/node_modules/safe-stable-stringify/index.js +625 -0
  1337. package/.output/server/node_modules/safe-stable-stringify/package.json +65 -0
  1338. package/.output/server/node_modules/scule/dist/index.mjs +80 -0
  1339. package/.output/server/node_modules/scule/package.json +43 -0
  1340. package/.output/server/node_modules/secure-json-parse/index.js +126 -0
  1341. package/.output/server/node_modules/secure-json-parse/package.json +75 -0
  1342. package/.output/server/node_modules/semver/classes/semver.js +319 -0
  1343. package/.output/server/node_modules/semver/functions/coerce.js +62 -0
  1344. package/.output/server/node_modules/semver/functions/compare.js +7 -0
  1345. package/.output/server/node_modules/semver/functions/gte.js +5 -0
  1346. package/.output/server/node_modules/semver/functions/parse.js +18 -0
  1347. package/.output/server/node_modules/semver/internal/constants.js +37 -0
  1348. package/.output/server/node_modules/semver/internal/debug.js +11 -0
  1349. package/.output/server/node_modules/semver/internal/identifiers.js +25 -0
  1350. package/.output/server/node_modules/semver/internal/parse-options.js +17 -0
  1351. package/.output/server/node_modules/semver/internal/re.js +223 -0
  1352. package/.output/server/node_modules/semver/package.json +78 -0
  1353. package/.output/server/node_modules/sharp/build/Release/libglib-2.0-0.dll +0 -0
  1354. package/.output/server/node_modules/sharp/build/Release/libgobject-2.0-0.dll +0 -0
  1355. package/.output/server/node_modules/sharp/build/Release/libvips-42.dll +0 -0
  1356. package/.output/server/node_modules/sharp/build/Release/libvips-cpp.dll +0 -0
  1357. package/.output/server/node_modules/sharp/build/Release/sharp-win32-x64.node +0 -0
  1358. package/.output/server/node_modules/sharp/lib/channel.js +174 -0
  1359. package/.output/server/node_modules/sharp/lib/colour.js +184 -0
  1360. package/.output/server/node_modules/sharp/lib/composite.js +210 -0
  1361. package/.output/server/node_modules/sharp/lib/constructor.js +439 -0
  1362. package/.output/server/node_modules/sharp/lib/index.js +16 -0
  1363. package/.output/server/node_modules/sharp/lib/input.js +631 -0
  1364. package/.output/server/node_modules/sharp/lib/is.js +155 -0
  1365. package/.output/server/node_modules/sharp/lib/libvips.js +140 -0
  1366. package/.output/server/node_modules/sharp/lib/operation.js +919 -0
  1367. package/.output/server/node_modules/sharp/lib/output.js +1413 -0
  1368. package/.output/server/node_modules/sharp/lib/platform.js +30 -0
  1369. package/.output/server/node_modules/sharp/lib/resize.js +582 -0
  1370. package/.output/server/node_modules/sharp/lib/sharp.js +38 -0
  1371. package/.output/server/node_modules/sharp/lib/utility.js +287 -0
  1372. package/.output/server/node_modules/sharp/package.json +204 -0
  1373. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/THIRD-PARTY-NOTICES.md +43 -0
  1374. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/include/harfbuzz/hb-cplusplus.hh +223 -0
  1375. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/include/vips/vips8 +60 -0
  1376. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libglib-2.0-0.dll +0 -0
  1377. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libglib-2.0.lib +0 -0
  1378. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libgobject-2.0-0.dll +0 -0
  1379. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libgobject-2.0.lib +0 -0
  1380. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libvips-42.dll +0 -0
  1381. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libvips.lib +0 -0
  1382. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/platform.json +1 -0
  1383. package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/versions.json +31 -0
  1384. package/.output/server/node_modules/shiki/dist/engine-javascript.mjs +1 -0
  1385. package/.output/server/node_modules/shiki/dist/engine-oniguruma.mjs +1 -0
  1386. package/.output/server/node_modules/shiki/dist/wasm.mjs +2 -0
  1387. package/.output/server/node_modules/shiki/package.json +70 -0
  1388. package/.output/server/node_modules/simple-swizzle/index.js +29 -0
  1389. package/.output/server/node_modules/simple-swizzle/package.json +36 -0
  1390. package/.output/server/node_modules/skin-tone/index.js +25 -0
  1391. package/.output/server/node_modules/skin-tone/package.json +45 -0
  1392. package/.output/server/node_modules/slugify/package.json +42 -0
  1393. package/.output/server/node_modules/slugify/slugify.js +69 -0
  1394. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  1395. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  1396. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  1397. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  1398. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  1399. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  1400. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  1401. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  1402. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  1403. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  1404. package/.output/server/node_modules/source-map-js/package.json +71 -0
  1405. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  1406. package/.output/server/node_modules/space-separated-tokens/index.js +24 -0
  1407. package/.output/server/node_modules/space-separated-tokens/package.json +67 -0
  1408. package/.output/server/node_modules/sqlstring/index.js +1 -0
  1409. package/.output/server/node_modules/sqlstring/lib/SqlString.js +237 -0
  1410. package/.output/server/node_modules/sqlstring/package.json +47 -0
  1411. package/.output/server/node_modules/stringify-entities/index.js +6 -0
  1412. package/.output/server/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
  1413. package/.output/server/node_modules/stringify-entities/lib/core.js +117 -0
  1414. package/.output/server/node_modules/stringify-entities/lib/index.js +36 -0
  1415. package/.output/server/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
  1416. package/.output/server/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
  1417. package/.output/server/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
  1418. package/.output/server/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
  1419. package/.output/server/node_modules/stringify-entities/lib/util/to-named.js +57 -0
  1420. package/.output/server/node_modules/stringify-entities/package.json +86 -0
  1421. package/.output/server/node_modules/strnum/package.json +31 -0
  1422. package/.output/server/node_modules/strnum/strnum.js +129 -0
  1423. package/.output/server/node_modules/supports-color/index.js +135 -0
  1424. package/.output/server/node_modules/supports-color/package.json +53 -0
  1425. package/.output/server/node_modules/svgo/lib/builtin.js +57 -0
  1426. package/.output/server/node_modules/svgo/lib/parser.js +262 -0
  1427. package/.output/server/node_modules/svgo/lib/path.js +380 -0
  1428. package/.output/server/node_modules/svgo/lib/stringifier.js +295 -0
  1429. package/.output/server/node_modules/svgo/lib/style.js +336 -0
  1430. package/.output/server/node_modules/svgo/lib/svgo/css-select-adapter.js +120 -0
  1431. package/.output/server/node_modules/svgo/lib/svgo/plugins.js +61 -0
  1432. package/.output/server/node_modules/svgo/lib/svgo/tools.js +245 -0
  1433. package/.output/server/node_modules/svgo/lib/svgo-node.js +85 -0
  1434. package/.output/server/node_modules/svgo/lib/svgo.js +102 -0
  1435. package/.output/server/node_modules/svgo/lib/xast.js +87 -0
  1436. package/.output/server/node_modules/svgo/package.json +108 -0
  1437. package/.output/server/node_modules/svgo/plugins/_collections.js +2339 -0
  1438. package/.output/server/node_modules/svgo/plugins/_path.js +815 -0
  1439. package/.output/server/node_modules/svgo/plugins/_transforms.js +410 -0
  1440. package/.output/server/node_modules/svgo/plugins/addAttributesToSVGElement.js +82 -0
  1441. package/.output/server/node_modules/svgo/plugins/addClassesToSVGElement.js +82 -0
  1442. package/.output/server/node_modules/svgo/plugins/applyTransforms.js +388 -0
  1443. package/.output/server/node_modules/svgo/plugins/cleanupAttrs.js +49 -0
  1444. package/.output/server/node_modules/svgo/plugins/cleanupEnableBackground.js +165 -0
  1445. package/.output/server/node_modules/svgo/plugins/cleanupIds.js +265 -0
  1446. package/.output/server/node_modules/svgo/plugins/cleanupListOfValues.js +147 -0
  1447. package/.output/server/node_modules/svgo/plugins/cleanupNumericValues.js +106 -0
  1448. package/.output/server/node_modules/svgo/plugins/collapseGroups.js +134 -0
  1449. package/.output/server/node_modules/svgo/plugins/convertColors.js +144 -0
  1450. package/.output/server/node_modules/svgo/plugins/convertEllipseToCircle.js +37 -0
  1451. package/.output/server/node_modules/svgo/plugins/convertOneStopGradients.js +168 -0
  1452. package/.output/server/node_modules/svgo/plugins/convertPathData.js +1284 -0
  1453. package/.output/server/node_modules/svgo/plugins/convertShapeToPath.js +170 -0
  1454. package/.output/server/node_modules/svgo/plugins/convertStyleToAttrs.js +136 -0
  1455. package/.output/server/node_modules/svgo/plugins/convertTransform.js +418 -0
  1456. package/.output/server/node_modules/svgo/plugins/inlineStyles.js +390 -0
  1457. package/.output/server/node_modules/svgo/plugins/mergePaths.js +148 -0
  1458. package/.output/server/node_modules/svgo/plugins/mergeStyles.js +98 -0
  1459. package/.output/server/node_modules/svgo/plugins/minifyStyles.js +141 -0
  1460. package/.output/server/node_modules/svgo/plugins/moveElemsAttrsToGroup.js +128 -0
  1461. package/.output/server/node_modules/svgo/plugins/moveGroupAttrsToElems.js +65 -0
  1462. package/.output/server/node_modules/svgo/plugins/prefixIds.js +268 -0
  1463. package/.output/server/node_modules/svgo/plugins/preset-default.js +82 -0
  1464. package/.output/server/node_modules/svgo/plugins/removeAttributesBySelector.js +97 -0
  1465. package/.output/server/node_modules/svgo/plugins/removeAttrs.js +151 -0
  1466. package/.output/server/node_modules/svgo/plugins/removeComments.js +51 -0
  1467. package/.output/server/node_modules/svgo/plugins/removeDesc.js +39 -0
  1468. package/.output/server/node_modules/svgo/plugins/removeDimensions.js +43 -0
  1469. package/.output/server/node_modules/svgo/plugins/removeDoctype.js +40 -0
  1470. package/.output/server/node_modules/svgo/plugins/removeEditorsNSData.js +64 -0
  1471. package/.output/server/node_modules/svgo/plugins/removeElementsByAttr.js +73 -0
  1472. package/.output/server/node_modules/svgo/plugins/removeEmptyAttrs.js +31 -0
  1473. package/.output/server/node_modules/svgo/plugins/removeEmptyContainers.js +59 -0
  1474. package/.output/server/node_modules/svgo/plugins/removeEmptyText.js +51 -0
  1475. package/.output/server/node_modules/svgo/plugins/removeHiddenElems.js +440 -0
  1476. package/.output/server/node_modules/svgo/plugins/removeMetadata.js +27 -0
  1477. package/.output/server/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js +38 -0
  1478. package/.output/server/node_modules/svgo/plugins/removeOffCanvasPaths.js +136 -0
  1479. package/.output/server/node_modules/svgo/plugins/removeRasterImages.js +31 -0
  1480. package/.output/server/node_modules/svgo/plugins/removeScriptElement.js +70 -0
  1481. package/.output/server/node_modules/svgo/plugins/removeStyleElement.js +27 -0
  1482. package/.output/server/node_modules/svgo/plugins/removeTitle.js +27 -0
  1483. package/.output/server/node_modules/svgo/plugins/removeUnknownsAndDefaults.js +212 -0
  1484. package/.output/server/node_modules/svgo/plugins/removeUnusedNS.js +59 -0
  1485. package/.output/server/node_modules/svgo/plugins/removeUselessDefs.js +65 -0
  1486. package/.output/server/node_modules/svgo/plugins/removeUselessStrokeAndFill.js +139 -0
  1487. package/.output/server/node_modules/svgo/plugins/removeViewBox.js +49 -0
  1488. package/.output/server/node_modules/svgo/plugins/removeXMLNS.js +29 -0
  1489. package/.output/server/node_modules/svgo/plugins/removeXMLProcInst.js +28 -0
  1490. package/.output/server/node_modules/svgo/plugins/removeXlink.js +226 -0
  1491. package/.output/server/node_modules/svgo/plugins/reusePaths.js +195 -0
  1492. package/.output/server/node_modules/svgo/plugins/sortAttrs.js +108 -0
  1493. package/.output/server/node_modules/svgo/plugins/sortDefsChildren.js +58 -0
  1494. package/.output/server/node_modules/trim-lines/index.js +69 -0
  1495. package/.output/server/node_modules/trim-lines/package.json +67 -0
  1496. package/.output/server/node_modules/trim-trailing-lines/index.js +23 -0
  1497. package/.output/server/node_modules/trim-trailing-lines/package.json +65 -0
  1498. package/.output/server/node_modules/trough/index.js +9 -0
  1499. package/.output/server/node_modules/trough/lib/index.js +206 -0
  1500. package/.output/server/node_modules/trough/package.json +77 -0
  1501. package/.output/server/node_modules/truncatise/index.js +188 -0
  1502. package/.output/server/node_modules/truncatise/package.json +36 -0
  1503. package/.output/server/node_modules/ufo/dist/index.mjs +638 -0
  1504. package/.output/server/node_modules/ufo/package.json +47 -0
  1505. package/.output/server/node_modules/ultrahtml/dist/index.js +1 -0
  1506. package/.output/server/node_modules/ultrahtml/package.json +79 -0
  1507. package/.output/server/node_modules/uncrypto/dist/crypto.node.mjs +16 -0
  1508. package/.output/server/node_modules/uncrypto/package.json +60 -0
  1509. package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  1510. package/.output/server/node_modules/unhead/dist/server.mjs +689 -0
  1511. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  1512. package/.output/server/node_modules/unhead/dist/shared/unhead.BpRRHAhY.mjs +194 -0
  1513. package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
  1514. package/.output/server/node_modules/unhead/dist/shared/unhead.DH45uomy.mjs +180 -0
  1515. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  1516. package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
  1517. package/.output/server/node_modules/unhead/dist/shared/unhead.Djo8ep_Y.mjs +166 -0
  1518. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  1519. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  1520. package/.output/server/node_modules/unhead/package.json +101 -0
  1521. package/.output/server/node_modules/unicode-emoji-modifier-base/index.js +86 -0
  1522. package/.output/server/node_modules/unicode-emoji-modifier-base/package.json +44 -0
  1523. package/.output/server/node_modules/unified/index.js +2 -0
  1524. package/.output/server/node_modules/unified/lib/callable-instance.js +44 -0
  1525. package/.output/server/node_modules/unified/lib/index.js +1323 -0
  1526. package/.output/server/node_modules/unified/package.json +120 -0
  1527. package/.output/server/node_modules/unist-util-find-after/index.js +1 -0
  1528. package/.output/server/node_modules/unist-util-find-after/lib/index.js +130 -0
  1529. package/.output/server/node_modules/unist-util-find-after/package.json +84 -0
  1530. package/.output/server/node_modules/unist-util-is/index.js +7 -0
  1531. package/.output/server/node_modules/unist-util-is/lib/index.js +291 -0
  1532. package/.output/server/node_modules/unist-util-is/package.json +100 -0
  1533. package/.output/server/node_modules/unist-util-position/index.js +1 -0
  1534. package/.output/server/node_modules/unist-util-position/lib/index.js +95 -0
  1535. package/.output/server/node_modules/unist-util-position/package.json +76 -0
  1536. package/.output/server/node_modules/unist-util-stringify-position/index.js +1 -0
  1537. package/.output/server/node_modules/unist-util-stringify-position/lib/index.js +84 -0
  1538. package/.output/server/node_modules/unist-util-stringify-position/package.json +80 -0
  1539. package/.output/server/node_modules/unist-util-visit/index.js +2 -0
  1540. package/.output/server/node_modules/unist-util-visit/lib/index.js +313 -0
  1541. package/.output/server/node_modules/unist-util-visit/package.json +113 -0
  1542. package/.output/server/node_modules/unist-util-visit-parents/index.js +2 -0
  1543. package/.output/server/node_modules/unist-util-visit-parents/lib/color.node.js +7 -0
  1544. package/.output/server/node_modules/unist-util-visit-parents/lib/index.js +398 -0
  1545. package/.output/server/node_modules/unist-util-visit-parents/package.json +101 -0
  1546. package/.output/server/node_modules/vfile/index.js +2 -0
  1547. package/.output/server/node_modules/vfile/lib/index.js +643 -0
  1548. package/.output/server/node_modules/vfile/lib/minpath.js +1 -0
  1549. package/.output/server/node_modules/vfile/lib/minproc.js +1 -0
  1550. package/.output/server/node_modules/vfile/lib/minurl.js +2 -0
  1551. package/.output/server/node_modules/vfile/lib/minurl.shared.js +31 -0
  1552. package/.output/server/node_modules/vfile/package.json +134 -0
  1553. package/.output/server/node_modules/vfile-location/index.js +2 -0
  1554. package/.output/server/node_modules/vfile-location/lib/index.js +93 -0
  1555. package/.output/server/node_modules/vfile-location/package.json +115 -0
  1556. package/.output/server/node_modules/vfile-message/index.js +5 -0
  1557. package/.output/server/node_modules/vfile-message/lib/index.js +314 -0
  1558. package/.output/server/node_modules/vfile-message/package.json +80 -0
  1559. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  1560. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  1561. package/.output/server/node_modules/vue/index.js +7 -0
  1562. package/.output/server/node_modules/vue/index.mjs +1 -0
  1563. package/.output/server/node_modules/vue/package.json +112 -0
  1564. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  1565. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
  1566. package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
  1567. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +3786 -0
  1568. package/.output/server/node_modules/vue-router/dist/vue-router.node.mjs +2 -0
  1569. package/.output/server/node_modules/vue-router/package.json +149 -0
  1570. package/.output/server/node_modules/web-namespaces/index.js +13 -0
  1571. package/.output/server/node_modules/web-namespaces/package.json +81 -0
  1572. package/.output/server/node_modules/xss/lib/default.js +461 -0
  1573. package/.output/server/node_modules/xss/lib/index.js +51 -0
  1574. package/.output/server/node_modules/xss/lib/parser.js +257 -0
  1575. package/.output/server/node_modules/xss/lib/util.js +34 -0
  1576. package/.output/server/node_modules/xss/lib/xss.js +232 -0
  1577. package/.output/server/node_modules/xss/package.json +65 -0
  1578. package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  1579. package/.output/server/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  1580. package/.output/server/node_modules/yaml/dist/compose/compose-node.js +105 -0
  1581. package/.output/server/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  1582. package/.output/server/node_modules/yaml/dist/compose/composer.js +222 -0
  1583. package/.output/server/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  1584. package/.output/server/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  1585. package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  1586. package/.output/server/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  1587. package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  1588. package/.output/server/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
  1589. package/.output/server/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  1590. package/.output/server/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  1591. package/.output/server/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  1592. package/.output/server/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  1593. package/.output/server/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  1594. package/.output/server/node_modules/yaml/dist/doc/Document.js +337 -0
  1595. package/.output/server/node_modules/yaml/dist/doc/anchors.js +76 -0
  1596. package/.output/server/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  1597. package/.output/server/node_modules/yaml/dist/doc/createNode.js +90 -0
  1598. package/.output/server/node_modules/yaml/dist/doc/directives.js +178 -0
  1599. package/.output/server/node_modules/yaml/dist/errors.js +62 -0
  1600. package/.output/server/node_modules/yaml/dist/index.js +50 -0
  1601. package/.output/server/node_modules/yaml/dist/log.js +19 -0
  1602. package/.output/server/node_modules/yaml/dist/nodes/Alias.js +116 -0
  1603. package/.output/server/node_modules/yaml/dist/nodes/Collection.js +151 -0
  1604. package/.output/server/node_modules/yaml/dist/nodes/Node.js +40 -0
  1605. package/.output/server/node_modules/yaml/dist/nodes/Pair.js +39 -0
  1606. package/.output/server/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  1607. package/.output/server/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  1608. package/.output/server/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  1609. package/.output/server/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  1610. package/.output/server/node_modules/yaml/dist/nodes/identity.js +53 -0
  1611. package/.output/server/node_modules/yaml/dist/nodes/toJS.js +39 -0
  1612. package/.output/server/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  1613. package/.output/server/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  1614. package/.output/server/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  1615. package/.output/server/node_modules/yaml/dist/parse/cst.js +112 -0
  1616. package/.output/server/node_modules/yaml/dist/parse/lexer.js +719 -0
  1617. package/.output/server/node_modules/yaml/dist/parse/line-counter.js +41 -0
  1618. package/.output/server/node_modules/yaml/dist/parse/parser.js +972 -0
  1619. package/.output/server/node_modules/yaml/dist/public-api.js +107 -0
  1620. package/.output/server/node_modules/yaml/dist/schema/Schema.js +39 -0
  1621. package/.output/server/node_modules/yaml/dist/schema/common/map.js +19 -0
  1622. package/.output/server/node_modules/yaml/dist/schema/common/null.js +17 -0
  1623. package/.output/server/node_modules/yaml/dist/schema/common/seq.js +19 -0
  1624. package/.output/server/node_modules/yaml/dist/schema/common/string.js +16 -0
  1625. package/.output/server/node_modules/yaml/dist/schema/core/bool.js +21 -0
  1626. package/.output/server/node_modules/yaml/dist/schema/core/float.js +47 -0
  1627. package/.output/server/node_modules/yaml/dist/schema/core/int.js +42 -0
  1628. package/.output/server/node_modules/yaml/dist/schema/core/schema.js +25 -0
  1629. package/.output/server/node_modules/yaml/dist/schema/json/schema.js +64 -0
  1630. package/.output/server/node_modules/yaml/dist/schema/tags.js +99 -0
  1631. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  1632. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  1633. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  1634. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  1635. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
  1636. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  1637. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  1638. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  1639. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  1640. package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  1641. package/.output/server/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  1642. package/.output/server/node_modules/yaml/dist/stringify/stringify.js +131 -0
  1643. package/.output/server/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
  1644. package/.output/server/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  1645. package/.output/server/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  1646. package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
  1647. package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  1648. package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  1649. package/.output/server/node_modules/yaml/dist/visit.js +236 -0
  1650. package/.output/server/node_modules/yaml/package.json +96 -0
  1651. package/.output/server/node_modules/zwitch/index.js +118 -0
  1652. package/.output/server/node_modules/zwitch/package.json +72 -0
  1653. package/.output/server/package.json +241 -0
  1654. package/{app.vue → app/app.vue} +1 -0
  1655. package/{components → app/components}/CurrentTime.vue +1 -1
  1656. package/{components → app/components}/ignis/IgnisWelcome.vue +1 -1
  1657. package/{composables → app/composables}/useTranslation.ts +2 -2
  1658. package/app/pages/_ignis-welcome.vue +3 -0
  1659. package/app/utils/date.ts +12 -0
  1660. package/{utils → app/utils}/i18n-sources.ts +2 -2
  1661. package/app/utils/validation.ts +25 -0
  1662. package/bin/set-css.js +23 -0
  1663. package/bin/set-eslint.js +21 -0
  1664. package/bin/setup.js +92 -0
  1665. package/content.config.ts +1 -1
  1666. package/eslint.config.mjs +0 -3
  1667. package/features.ts +36 -34
  1668. package/formkit.config.ts +1 -1
  1669. package/i18n/i18n.config.ts +2 -0
  1670. package/nuxt.config.ts +13 -20
  1671. package/package.json +31 -28
  1672. package/public/_ignis-config.json +106 -3
  1673. package/test/config/css-multiple.txt +1 -1
  1674. package/test/config/css-nuxt-ui.txt +2 -2
  1675. package/test/config/css-open-props.txt +44 -2
  1676. package/test/config/css-single.txt +1 -1
  1677. package/test/config/css-tailwind.txt +2 -2
  1678. package/test/config/custom-lang.txt +1 -1
  1679. package/test/config/db-neon.txt +1 -1
  1680. package/test/config/db-supabase.txt +1 -1
  1681. package/test/config/default.txt +1 -1
  1682. package/test/config/equipment-1-composable.txt +1 -1
  1683. package/test/config/equipment-2-plugins.txt +1 -1
  1684. package/test/config/equipment-all.txt +1 -1
  1685. package/test/config/forms-formkit.txt +1 -1
  1686. package/test/config/forms-vueform.txt +1 -1
  1687. package/test/config/i18n.txt +1 -1
  1688. package/test/config/open-props.txt +44 -2
  1689. package/test/config/seo-ssr-false.txt +1 -1
  1690. package/test/config/ui-nuxt-ui.txt +2 -2
  1691. package/test/config/ui-tailwind.txt +2 -2
  1692. package/test/features.test.ts +1 -1
  1693. package/tsconfig.json +16 -5
  1694. package/vitest.config.ts +5 -0
  1695. package/vueform.config.ts +2 -0
  1696. package/.nuxt/module/@nuxtjs-sitemap.d.ts +0 -29
  1697. package/.nuxt/types/app-defaults.d.ts +0 -7
  1698. package/.nuxt/types/schema.d.ts +0 -1756
  1699. package/bin/make-eslint.js +0 -55
  1700. package/server/tsconfig.json +0 -3
  1701. /package/{assets → app/assets}/css/ignis-nuxt-ui.css +0 -0
  1702. /package/{assets → app/assets}/css/ignis-open-props.css +0 -0
  1703. /package/{assets → app/assets}/css/ignis-tailwind.css +0 -0
  1704. /package/{assets → app/assets}/css/ignis.css +0 -0
  1705. /package/{components → app/components}/ignis/IgnisConfig.vue +0 -0
  1706. /package/{components → app/components}/ignis/IgnisFeature.vue +0 -0
  1707. /package/{components → app/components}/ignis/IgnisFeatureList.vue +0 -0
  1708. /package/{components → app/components}/ignis/IgnisFooter.vue +0 -0
  1709. /package/{components → app/components}/ignis/IgnisHeader.vue +0 -0
  1710. /package/{components → app/components}/ignis/IgnisInfo.vue +0 -0
  1711. /package/{composables → app/composables}/useValibot.ts +0 -0
  1712. /package/{composables → app/composables}/useZod.ts +0 -0
  1713. /package/{pages → app/pages}/_ignis-config.vue +0 -0
  1714. /package/{pages → app/pages}/_ignis-info.vue +0 -0
  1715. /package/{pages → app/pages}/index.vue +0 -0
  1716. /package/{plugins → app/plugins}/errorHandler.ts +0 -0
  1717. /package/{utils → app/utils}/config/content.ts +0 -0
  1718. /package/{utils → app/utils}/config/formkit.ts +0 -0
  1719. /package/{utils → app/utils}/config/vueform.ts +0 -0
  1720. /package/{utils → app/utils}/consola.ts +0 -0
  1721. /package/{utils → app/utils}/content.ts +0 -0
  1722. /package/{utils → app/utils}/formkit.ts +0 -0
  1723. /package/{utils → app/utils}/ignis-types.ts +0 -0
  1724. /package/{utils → app/utils}/pslo-utils.ts +0 -0
  1725. /package/{utils → app/utils}/tailwind.ts +0 -0
  1726. /package/{utils → app/utils}/vueform.ts +0 -0
@@ -0,0 +1,3786 @@
1
+ /*!
2
+ * vue-router v4.5.1
3
+ * (c) 2025 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { getCurrentInstance, inject, onUnmounted, onDeactivated, onActivated, computed, unref, watchEffect, defineComponent, reactive, h, provide, ref, watch, shallowRef, shallowReactive, nextTick } from 'vue';
7
+ import { setupDevtoolsPlugin } from '@vue/devtools-api';
8
+
9
+ const isBrowser = typeof document !== 'undefined';
10
+
11
+ /**
12
+ * Allows differentiating lazy components from functional components and vue-class-component
13
+ * @internal
14
+ *
15
+ * @param component
16
+ */
17
+ function isRouteComponent(component) {
18
+ return (typeof component === 'object' ||
19
+ 'displayName' in component ||
20
+ 'props' in component ||
21
+ '__vccOpts' in component);
22
+ }
23
+ function isESModule(obj) {
24
+ return (obj.__esModule ||
25
+ obj[Symbol.toStringTag] === 'Module' ||
26
+ // support CF with dynamic imports that do not
27
+ // add the Module string tag
28
+ (obj.default && isRouteComponent(obj.default)));
29
+ }
30
+ const assign = Object.assign;
31
+ function applyToParams(fn, params) {
32
+ const newParams = {};
33
+ for (const key in params) {
34
+ const value = params[key];
35
+ newParams[key] = isArray(value)
36
+ ? value.map(fn)
37
+ : fn(value);
38
+ }
39
+ return newParams;
40
+ }
41
+ const noop = () => { };
42
+ /**
43
+ * Typesafe alternative to Array.isArray
44
+ * https://github.com/microsoft/TypeScript/pull/48228
45
+ */
46
+ const isArray = Array.isArray;
47
+
48
+ function warn(msg) {
49
+ // avoid using ...args as it breaks in older Edge builds
50
+ const args = Array.from(arguments).slice(1);
51
+ console.warn.apply(console, ['[Vue Router warn]: ' + msg].concat(args));
52
+ }
53
+
54
+ /**
55
+ * Encoding Rules (␣ = Space)
56
+ * - Path: ␣ " < > # ? { }
57
+ * - Query: ␣ " < > # & =
58
+ * - Hash: ␣ " < > `
59
+ *
60
+ * On top of that, the RFC3986 (https://tools.ietf.org/html/rfc3986#section-2.2)
61
+ * defines some extra characters to be encoded. Most browsers do not encode them
62
+ * in encodeURI https://github.com/whatwg/url/issues/369, so it may be safer to
63
+ * also encode `!'()*`. Leaving un-encoded only ASCII alphanumeric(`a-zA-Z0-9`)
64
+ * plus `-._~`. This extra safety should be applied to query by patching the
65
+ * string returned by encodeURIComponent encodeURI also encodes `[\]^`. `\`
66
+ * should be encoded to avoid ambiguity. Browsers (IE, FF, C) transform a `\`
67
+ * into a `/` if directly typed in. The _backtick_ (`````) should also be
68
+ * encoded everywhere because some browsers like FF encode it when directly
69
+ * written while others don't. Safari and IE don't encode ``"<>{}``` in hash.
70
+ */
71
+ // const EXTRA_RESERVED_RE = /[!'()*]/g
72
+ // const encodeReservedReplacer = (c: string) => '%' + c.charCodeAt(0).toString(16)
73
+ const HASH_RE = /#/g; // %23
74
+ const AMPERSAND_RE = /&/g; // %26
75
+ const SLASH_RE = /\//g; // %2F
76
+ const EQUAL_RE = /=/g; // %3D
77
+ const IM_RE = /\?/g; // %3F
78
+ const PLUS_RE = /\+/g; // %2B
79
+ /**
80
+ * NOTE: It's not clear to me if we should encode the + symbol in queries, it
81
+ * seems to be less flexible than not doing so and I can't find out the legacy
82
+ * systems requiring this for regular requests like text/html. In the standard,
83
+ * the encoding of the plus character is only mentioned for
84
+ * application/x-www-form-urlencoded
85
+ * (https://url.spec.whatwg.org/#urlencoded-parsing) and most browsers seems lo
86
+ * leave the plus character as is in queries. To be more flexible, we allow the
87
+ * plus character on the query, but it can also be manually encoded by the user.
88
+ *
89
+ * Resources:
90
+ * - https://url.spec.whatwg.org/#urlencoded-parsing
91
+ * - https://stackoverflow.com/questions/1634271/url-encoding-the-space-character-or-20
92
+ */
93
+ const ENC_BRACKET_OPEN_RE = /%5B/g; // [
94
+ const ENC_BRACKET_CLOSE_RE = /%5D/g; // ]
95
+ const ENC_CARET_RE = /%5E/g; // ^
96
+ const ENC_BACKTICK_RE = /%60/g; // `
97
+ const ENC_CURLY_OPEN_RE = /%7B/g; // {
98
+ const ENC_PIPE_RE = /%7C/g; // |
99
+ const ENC_CURLY_CLOSE_RE = /%7D/g; // }
100
+ const ENC_SPACE_RE = /%20/g; // }
101
+ /**
102
+ * Encode characters that need to be encoded on the path, search and hash
103
+ * sections of the URL.
104
+ *
105
+ * @internal
106
+ * @param text - string to encode
107
+ * @returns encoded string
108
+ */
109
+ function commonEncode(text) {
110
+ return encodeURI('' + text)
111
+ .replace(ENC_PIPE_RE, '|')
112
+ .replace(ENC_BRACKET_OPEN_RE, '[')
113
+ .replace(ENC_BRACKET_CLOSE_RE, ']');
114
+ }
115
+ /**
116
+ * Encode characters that need to be encoded on the hash section of the URL.
117
+ *
118
+ * @param text - string to encode
119
+ * @returns encoded string
120
+ */
121
+ function encodeHash(text) {
122
+ return commonEncode(text)
123
+ .replace(ENC_CURLY_OPEN_RE, '{')
124
+ .replace(ENC_CURLY_CLOSE_RE, '}')
125
+ .replace(ENC_CARET_RE, '^');
126
+ }
127
+ /**
128
+ * Encode characters that need to be encoded query values on the query
129
+ * section of the URL.
130
+ *
131
+ * @param text - string to encode
132
+ * @returns encoded string
133
+ */
134
+ function encodeQueryValue(text) {
135
+ return (commonEncode(text)
136
+ // Encode the space as +, encode the + to differentiate it from the space
137
+ .replace(PLUS_RE, '%2B')
138
+ .replace(ENC_SPACE_RE, '+')
139
+ .replace(HASH_RE, '%23')
140
+ .replace(AMPERSAND_RE, '%26')
141
+ .replace(ENC_BACKTICK_RE, '`')
142
+ .replace(ENC_CURLY_OPEN_RE, '{')
143
+ .replace(ENC_CURLY_CLOSE_RE, '}')
144
+ .replace(ENC_CARET_RE, '^'));
145
+ }
146
+ /**
147
+ * Like `encodeQueryValue` but also encodes the `=` character.
148
+ *
149
+ * @param text - string to encode
150
+ */
151
+ function encodeQueryKey(text) {
152
+ return encodeQueryValue(text).replace(EQUAL_RE, '%3D');
153
+ }
154
+ /**
155
+ * Encode characters that need to be encoded on the path section of the URL.
156
+ *
157
+ * @param text - string to encode
158
+ * @returns encoded string
159
+ */
160
+ function encodePath(text) {
161
+ return commonEncode(text).replace(HASH_RE, '%23').replace(IM_RE, '%3F');
162
+ }
163
+ /**
164
+ * Encode characters that need to be encoded on the path section of the URL as a
165
+ * param. This function encodes everything {@link encodePath} does plus the
166
+ * slash (`/`) character. If `text` is `null` or `undefined`, returns an empty
167
+ * string instead.
168
+ *
169
+ * @param text - string to encode
170
+ * @returns encoded string
171
+ */
172
+ function encodeParam(text) {
173
+ return text == null ? '' : encodePath(text).replace(SLASH_RE, '%2F');
174
+ }
175
+ /**
176
+ * Decode text using `decodeURIComponent`. Returns the original text if it
177
+ * fails.
178
+ *
179
+ * @param text - string to decode
180
+ * @returns decoded string
181
+ */
182
+ function decode(text) {
183
+ try {
184
+ return decodeURIComponent('' + text);
185
+ }
186
+ catch (err) {
187
+ (process.env.NODE_ENV !== 'production') && warn(`Error decoding "${text}". Using original value`);
188
+ }
189
+ return '' + text;
190
+ }
191
+
192
+ const TRAILING_SLASH_RE = /\/$/;
193
+ const removeTrailingSlash = (path) => path.replace(TRAILING_SLASH_RE, '');
194
+ /**
195
+ * Transforms a URI into a normalized history location
196
+ *
197
+ * @param parseQuery
198
+ * @param location - URI to normalize
199
+ * @param currentLocation - current absolute location. Allows resolving relative
200
+ * paths. Must start with `/`. Defaults to `/`
201
+ * @returns a normalized history location
202
+ */
203
+ function parseURL(parseQuery, location, currentLocation = '/') {
204
+ let path, query = {}, searchString = '', hash = '';
205
+ // Could use URL and URLSearchParams but IE 11 doesn't support it
206
+ // TODO: move to new URL()
207
+ const hashPos = location.indexOf('#');
208
+ let searchPos = location.indexOf('?');
209
+ // the hash appears before the search, so it's not part of the search string
210
+ if (hashPos < searchPos && hashPos >= 0) {
211
+ searchPos = -1;
212
+ }
213
+ if (searchPos > -1) {
214
+ path = location.slice(0, searchPos);
215
+ searchString = location.slice(searchPos + 1, hashPos > -1 ? hashPos : location.length);
216
+ query = parseQuery(searchString);
217
+ }
218
+ if (hashPos > -1) {
219
+ path = path || location.slice(0, hashPos);
220
+ // keep the # character
221
+ hash = location.slice(hashPos, location.length);
222
+ }
223
+ // no search and no query
224
+ path = resolveRelativePath(path != null ? path : location, currentLocation);
225
+ // empty path means a relative query or hash `?foo=f`, `#thing`
226
+ return {
227
+ fullPath: path + (searchString && '?') + searchString + hash,
228
+ path,
229
+ query,
230
+ hash: decode(hash),
231
+ };
232
+ }
233
+ /**
234
+ * Stringifies a URL object
235
+ *
236
+ * @param stringifyQuery
237
+ * @param location
238
+ */
239
+ function stringifyURL(stringifyQuery, location) {
240
+ const query = location.query ? stringifyQuery(location.query) : '';
241
+ return location.path + (query && '?') + query + (location.hash || '');
242
+ }
243
+ /**
244
+ * Strips off the base from the beginning of a location.pathname in a non-case-sensitive way.
245
+ *
246
+ * @param pathname - location.pathname
247
+ * @param base - base to strip off
248
+ */
249
+ function stripBase(pathname, base) {
250
+ // no base or base is not found at the beginning
251
+ if (!base || !pathname.toLowerCase().startsWith(base.toLowerCase()))
252
+ return pathname;
253
+ return pathname.slice(base.length) || '/';
254
+ }
255
+ /**
256
+ * Checks if two RouteLocation are equal. This means that both locations are
257
+ * pointing towards the same {@link RouteRecord} and that all `params`, `query`
258
+ * parameters and `hash` are the same
259
+ *
260
+ * @param stringifyQuery - A function that takes a query object of type LocationQueryRaw and returns a string representation of it.
261
+ * @param a - first {@link RouteLocation}
262
+ * @param b - second {@link RouteLocation}
263
+ */
264
+ function isSameRouteLocation(stringifyQuery, a, b) {
265
+ const aLastIndex = a.matched.length - 1;
266
+ const bLastIndex = b.matched.length - 1;
267
+ return (aLastIndex > -1 &&
268
+ aLastIndex === bLastIndex &&
269
+ isSameRouteRecord(a.matched[aLastIndex], b.matched[bLastIndex]) &&
270
+ isSameRouteLocationParams(a.params, b.params) &&
271
+ stringifyQuery(a.query) === stringifyQuery(b.query) &&
272
+ a.hash === b.hash);
273
+ }
274
+ /**
275
+ * Check if two `RouteRecords` are equal. Takes into account aliases: they are
276
+ * considered equal to the `RouteRecord` they are aliasing.
277
+ *
278
+ * @param a - first {@link RouteRecord}
279
+ * @param b - second {@link RouteRecord}
280
+ */
281
+ function isSameRouteRecord(a, b) {
282
+ // since the original record has an undefined value for aliasOf
283
+ // but all aliases point to the original record, this will always compare
284
+ // the original record
285
+ return (a.aliasOf || a) === (b.aliasOf || b);
286
+ }
287
+ function isSameRouteLocationParams(a, b) {
288
+ if (Object.keys(a).length !== Object.keys(b).length)
289
+ return false;
290
+ for (const key in a) {
291
+ if (!isSameRouteLocationParamsValue(a[key], b[key]))
292
+ return false;
293
+ }
294
+ return true;
295
+ }
296
+ function isSameRouteLocationParamsValue(a, b) {
297
+ return isArray(a)
298
+ ? isEquivalentArray(a, b)
299
+ : isArray(b)
300
+ ? isEquivalentArray(b, a)
301
+ : a === b;
302
+ }
303
+ /**
304
+ * Check if two arrays are the same or if an array with one single entry is the
305
+ * same as another primitive value. Used to check query and parameters
306
+ *
307
+ * @param a - array of values
308
+ * @param b - array of values or a single value
309
+ */
310
+ function isEquivalentArray(a, b) {
311
+ return isArray(b)
312
+ ? a.length === b.length && a.every((value, i) => value === b[i])
313
+ : a.length === 1 && a[0] === b;
314
+ }
315
+ /**
316
+ * Resolves a relative path that starts with `.`.
317
+ *
318
+ * @param to - path location we are resolving
319
+ * @param from - currentLocation.path, should start with `/`
320
+ */
321
+ function resolveRelativePath(to, from) {
322
+ if (to.startsWith('/'))
323
+ return to;
324
+ if ((process.env.NODE_ENV !== 'production') && !from.startsWith('/')) {
325
+ warn(`Cannot resolve a relative location without an absolute path. Trying to resolve "${to}" from "${from}". It should look like "/${from}".`);
326
+ return to;
327
+ }
328
+ if (!to)
329
+ return from;
330
+ const fromSegments = from.split('/');
331
+ const toSegments = to.split('/');
332
+ const lastToSegment = toSegments[toSegments.length - 1];
333
+ // make . and ./ the same (../ === .., ../../ === ../..)
334
+ // this is the same behavior as new URL()
335
+ if (lastToSegment === '..' || lastToSegment === '.') {
336
+ toSegments.push('');
337
+ }
338
+ let position = fromSegments.length - 1;
339
+ let toPosition;
340
+ let segment;
341
+ for (toPosition = 0; toPosition < toSegments.length; toPosition++) {
342
+ segment = toSegments[toPosition];
343
+ // we stay on the same position
344
+ if (segment === '.')
345
+ continue;
346
+ // go up in the from array
347
+ if (segment === '..') {
348
+ // we can't go below zero, but we still need to increment toPosition
349
+ if (position > 1)
350
+ position--;
351
+ // continue
352
+ }
353
+ // we reached a non-relative path, we stop here
354
+ else
355
+ break;
356
+ }
357
+ return (fromSegments.slice(0, position).join('/') +
358
+ '/' +
359
+ toSegments.slice(toPosition).join('/'));
360
+ }
361
+ /**
362
+ * Initial route location where the router is. Can be used in navigation guards
363
+ * to differentiate the initial navigation.
364
+ *
365
+ * @example
366
+ * ```js
367
+ * import { START_LOCATION } from 'vue-router'
368
+ *
369
+ * router.beforeEach((to, from) => {
370
+ * if (from === START_LOCATION) {
371
+ * // initial navigation
372
+ * }
373
+ * })
374
+ * ```
375
+ */
376
+ const START_LOCATION_NORMALIZED = {
377
+ path: '/',
378
+ // TODO: could we use a symbol in the future?
379
+ name: undefined,
380
+ params: {},
381
+ query: {},
382
+ hash: '',
383
+ fullPath: '/',
384
+ matched: [],
385
+ meta: {},
386
+ redirectedFrom: undefined,
387
+ };
388
+
389
+ var NavigationType;
390
+ (function (NavigationType) {
391
+ NavigationType["pop"] = "pop";
392
+ NavigationType["push"] = "push";
393
+ })(NavigationType || (NavigationType = {}));
394
+ var NavigationDirection;
395
+ (function (NavigationDirection) {
396
+ NavigationDirection["back"] = "back";
397
+ NavigationDirection["forward"] = "forward";
398
+ NavigationDirection["unknown"] = "";
399
+ })(NavigationDirection || (NavigationDirection = {}));
400
+ /**
401
+ * Starting location for Histories
402
+ */
403
+ const START = '';
404
+ // Generic utils
405
+ /**
406
+ * Normalizes a base by removing any trailing slash and reading the base tag if
407
+ * present.
408
+ *
409
+ * @param base - base to normalize
410
+ */
411
+ function normalizeBase(base) {
412
+ if (!base) {
413
+ if (isBrowser) {
414
+ // respect <base> tag
415
+ const baseEl = document.querySelector('base');
416
+ base = (baseEl && baseEl.getAttribute('href')) || '/';
417
+ // strip full URL origin
418
+ base = base.replace(/^\w+:\/\/[^\/]+/, '');
419
+ }
420
+ else {
421
+ base = '/';
422
+ }
423
+ }
424
+ // ensure leading slash when it was removed by the regex above avoid leading
425
+ // slash with hash because the file could be read from the disk like file://
426
+ // and the leading slash would cause problems
427
+ if (base[0] !== '/' && base[0] !== '#')
428
+ base = '/' + base;
429
+ // remove the trailing slash so all other method can just do `base + fullPath`
430
+ // to build an href
431
+ return removeTrailingSlash(base);
432
+ }
433
+ // remove any character before the hash
434
+ const BEFORE_HASH_RE = /^[^#]+#/;
435
+ function createHref(base, location) {
436
+ return base.replace(BEFORE_HASH_RE, '#') + location;
437
+ }
438
+
439
+ function getElementPosition(el, offset) {
440
+ const docRect = document.documentElement.getBoundingClientRect();
441
+ const elRect = el.getBoundingClientRect();
442
+ return {
443
+ behavior: offset.behavior,
444
+ left: elRect.left - docRect.left - (offset.left || 0),
445
+ top: elRect.top - docRect.top - (offset.top || 0),
446
+ };
447
+ }
448
+ const computeScrollPosition = () => ({
449
+ left: window.scrollX,
450
+ top: window.scrollY,
451
+ });
452
+ function scrollToPosition(position) {
453
+ let scrollToOptions;
454
+ if ('el' in position) {
455
+ const positionEl = position.el;
456
+ const isIdSelector = typeof positionEl === 'string' && positionEl.startsWith('#');
457
+ /**
458
+ * `id`s can accept pretty much any characters, including CSS combinators
459
+ * like `>` or `~`. It's still possible to retrieve elements using
460
+ * `document.getElementById('~')` but it needs to be escaped when using
461
+ * `document.querySelector('#\\~')` for it to be valid. The only
462
+ * requirements for `id`s are them to be unique on the page and to not be
463
+ * empty (`id=""`). Because of that, when passing an id selector, it should
464
+ * be properly escaped for it to work with `querySelector`. We could check
465
+ * for the id selector to be simple (no CSS combinators `+ >~`) but that
466
+ * would make things inconsistent since they are valid characters for an
467
+ * `id` but would need to be escaped when using `querySelector`, breaking
468
+ * their usage and ending up in no selector returned. Selectors need to be
469
+ * escaped:
470
+ *
471
+ * - `#1-thing` becomes `#\31 -thing`
472
+ * - `#with~symbols` becomes `#with\\~symbols`
473
+ *
474
+ * - More information about the topic can be found at
475
+ * https://mathiasbynens.be/notes/html5-id-class.
476
+ * - Practical example: https://mathiasbynens.be/demo/html5-id
477
+ */
478
+ if ((process.env.NODE_ENV !== 'production') && typeof position.el === 'string') {
479
+ if (!isIdSelector || !document.getElementById(position.el.slice(1))) {
480
+ try {
481
+ const foundEl = document.querySelector(position.el);
482
+ if (isIdSelector && foundEl) {
483
+ warn(`The selector "${position.el}" should be passed as "el: document.querySelector('${position.el}')" because it starts with "#".`);
484
+ // return to avoid other warnings
485
+ return;
486
+ }
487
+ }
488
+ catch (err) {
489
+ warn(`The selector "${position.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
490
+ // return to avoid other warnings
491
+ return;
492
+ }
493
+ }
494
+ }
495
+ const el = typeof positionEl === 'string'
496
+ ? isIdSelector
497
+ ? document.getElementById(positionEl.slice(1))
498
+ : document.querySelector(positionEl)
499
+ : positionEl;
500
+ if (!el) {
501
+ (process.env.NODE_ENV !== 'production') &&
502
+ warn(`Couldn't find element using selector "${position.el}" returned by scrollBehavior.`);
503
+ return;
504
+ }
505
+ scrollToOptions = getElementPosition(el, position);
506
+ }
507
+ else {
508
+ scrollToOptions = position;
509
+ }
510
+ if ('scrollBehavior' in document.documentElement.style)
511
+ window.scrollTo(scrollToOptions);
512
+ else {
513
+ window.scrollTo(scrollToOptions.left != null ? scrollToOptions.left : window.scrollX, scrollToOptions.top != null ? scrollToOptions.top : window.scrollY);
514
+ }
515
+ }
516
+ function getScrollKey(path, delta) {
517
+ const position = history.state ? history.state.position - delta : -1;
518
+ return position + path;
519
+ }
520
+ const scrollPositions = new Map();
521
+ function saveScrollPosition(key, scrollPosition) {
522
+ scrollPositions.set(key, scrollPosition);
523
+ }
524
+ function getSavedScrollPosition(key) {
525
+ const scroll = scrollPositions.get(key);
526
+ // consume it so it's not used again
527
+ scrollPositions.delete(key);
528
+ return scroll;
529
+ }
530
+ // TODO: RFC about how to save scroll position
531
+ /**
532
+ * ScrollBehavior instance used by the router to compute and restore the scroll
533
+ * position when navigating.
534
+ */
535
+ // export interface ScrollHandler<ScrollPositionEntry extends HistoryStateValue, ScrollPosition extends ScrollPositionEntry> {
536
+ // // returns a scroll position that can be saved in history
537
+ // compute(): ScrollPositionEntry
538
+ // // can take an extended ScrollPositionEntry
539
+ // scroll(position: ScrollPosition): void
540
+ // }
541
+ // export const scrollHandler: ScrollHandler<ScrollPosition> = {
542
+ // compute: computeScroll,
543
+ // scroll: scrollToPosition,
544
+ // }
545
+
546
+ let createBaseLocation = () => location.protocol + '//' + location.host;
547
+ /**
548
+ * Creates a normalized history location from a window.location object
549
+ * @param base - The base path
550
+ * @param location - The window.location object
551
+ */
552
+ function createCurrentLocation(base, location) {
553
+ const { pathname, search, hash } = location;
554
+ // allows hash bases like #, /#, #/, #!, #!/, /#!/, or even /folder#end
555
+ const hashPos = base.indexOf('#');
556
+ if (hashPos > -1) {
557
+ let slicePos = hash.includes(base.slice(hashPos))
558
+ ? base.slice(hashPos).length
559
+ : 1;
560
+ let pathFromHash = hash.slice(slicePos);
561
+ // prepend the starting slash to hash so the url starts with /#
562
+ if (pathFromHash[0] !== '/')
563
+ pathFromHash = '/' + pathFromHash;
564
+ return stripBase(pathFromHash, '');
565
+ }
566
+ const path = stripBase(pathname, base);
567
+ return path + search + hash;
568
+ }
569
+ function useHistoryListeners(base, historyState, currentLocation, replace) {
570
+ let listeners = [];
571
+ let teardowns = [];
572
+ // TODO: should it be a stack? a Dict. Check if the popstate listener
573
+ // can trigger twice
574
+ let pauseState = null;
575
+ const popStateHandler = ({ state, }) => {
576
+ const to = createCurrentLocation(base, location);
577
+ const from = currentLocation.value;
578
+ const fromState = historyState.value;
579
+ let delta = 0;
580
+ if (state) {
581
+ currentLocation.value = to;
582
+ historyState.value = state;
583
+ // ignore the popstate and reset the pauseState
584
+ if (pauseState && pauseState === from) {
585
+ pauseState = null;
586
+ return;
587
+ }
588
+ delta = fromState ? state.position - fromState.position : 0;
589
+ }
590
+ else {
591
+ replace(to);
592
+ }
593
+ // Here we could also revert the navigation by calling history.go(-delta)
594
+ // this listener will have to be adapted to not trigger again and to wait for the url
595
+ // to be updated before triggering the listeners. Some kind of validation function would also
596
+ // need to be passed to the listeners so the navigation can be accepted
597
+ // call all listeners
598
+ listeners.forEach(listener => {
599
+ listener(currentLocation.value, from, {
600
+ delta,
601
+ type: NavigationType.pop,
602
+ direction: delta
603
+ ? delta > 0
604
+ ? NavigationDirection.forward
605
+ : NavigationDirection.back
606
+ : NavigationDirection.unknown,
607
+ });
608
+ });
609
+ };
610
+ function pauseListeners() {
611
+ pauseState = currentLocation.value;
612
+ }
613
+ function listen(callback) {
614
+ // set up the listener and prepare teardown callbacks
615
+ listeners.push(callback);
616
+ const teardown = () => {
617
+ const index = listeners.indexOf(callback);
618
+ if (index > -1)
619
+ listeners.splice(index, 1);
620
+ };
621
+ teardowns.push(teardown);
622
+ return teardown;
623
+ }
624
+ function beforeUnloadListener() {
625
+ const { history } = window;
626
+ if (!history.state)
627
+ return;
628
+ history.replaceState(assign({}, history.state, { scroll: computeScrollPosition() }), '');
629
+ }
630
+ function destroy() {
631
+ for (const teardown of teardowns)
632
+ teardown();
633
+ teardowns = [];
634
+ window.removeEventListener('popstate', popStateHandler);
635
+ window.removeEventListener('beforeunload', beforeUnloadListener);
636
+ }
637
+ // set up the listeners and prepare teardown callbacks
638
+ window.addEventListener('popstate', popStateHandler);
639
+ // TODO: could we use 'pagehide' or 'visibilitychange' instead?
640
+ // https://developer.chrome.com/blog/page-lifecycle-api/
641
+ window.addEventListener('beforeunload', beforeUnloadListener, {
642
+ passive: true,
643
+ });
644
+ return {
645
+ pauseListeners,
646
+ listen,
647
+ destroy,
648
+ };
649
+ }
650
+ /**
651
+ * Creates a state object
652
+ */
653
+ function buildState(back, current, forward, replaced = false, computeScroll = false) {
654
+ return {
655
+ back,
656
+ current,
657
+ forward,
658
+ replaced,
659
+ position: window.history.length,
660
+ scroll: computeScroll ? computeScrollPosition() : null,
661
+ };
662
+ }
663
+ function useHistoryStateNavigation(base) {
664
+ const { history, location } = window;
665
+ // private variables
666
+ const currentLocation = {
667
+ value: createCurrentLocation(base, location),
668
+ };
669
+ const historyState = { value: history.state };
670
+ // build current history entry as this is a fresh navigation
671
+ if (!historyState.value) {
672
+ changeLocation(currentLocation.value, {
673
+ back: null,
674
+ current: currentLocation.value,
675
+ forward: null,
676
+ // the length is off by one, we need to decrease it
677
+ position: history.length - 1,
678
+ replaced: true,
679
+ // don't add a scroll as the user may have an anchor, and we want
680
+ // scrollBehavior to be triggered without a saved position
681
+ scroll: null,
682
+ }, true);
683
+ }
684
+ function changeLocation(to, state, replace) {
685
+ /**
686
+ * if a base tag is provided, and we are on a normal domain, we have to
687
+ * respect the provided `base` attribute because pushState() will use it and
688
+ * potentially erase anything before the `#` like at
689
+ * https://github.com/vuejs/router/issues/685 where a base of
690
+ * `/folder/#` but a base of `/` would erase the `/folder/` section. If
691
+ * there is no host, the `<base>` tag makes no sense and if there isn't a
692
+ * base tag we can just use everything after the `#`.
693
+ */
694
+ const hashIndex = base.indexOf('#');
695
+ const url = hashIndex > -1
696
+ ? (location.host && document.querySelector('base')
697
+ ? base
698
+ : base.slice(hashIndex)) + to
699
+ : createBaseLocation() + base + to;
700
+ try {
701
+ // BROWSER QUIRK
702
+ // NOTE: Safari throws a SecurityError when calling this function 100 times in 30 seconds
703
+ history[replace ? 'replaceState' : 'pushState'](state, '', url);
704
+ historyState.value = state;
705
+ }
706
+ catch (err) {
707
+ if ((process.env.NODE_ENV !== 'production')) {
708
+ warn('Error with push/replace State', err);
709
+ }
710
+ else {
711
+ console.error(err);
712
+ }
713
+ // Force the navigation, this also resets the call count
714
+ location[replace ? 'replace' : 'assign'](url);
715
+ }
716
+ }
717
+ function replace(to, data) {
718
+ const state = assign({}, history.state, buildState(historyState.value.back,
719
+ // keep back and forward entries but override current position
720
+ to, historyState.value.forward, true), data, { position: historyState.value.position });
721
+ changeLocation(to, state, true);
722
+ currentLocation.value = to;
723
+ }
724
+ function push(to, data) {
725
+ // Add to current entry the information of where we are going
726
+ // as well as saving the current position
727
+ const currentState = assign({},
728
+ // use current history state to gracefully handle a wrong call to
729
+ // history.replaceState
730
+ // https://github.com/vuejs/router/issues/366
731
+ historyState.value, history.state, {
732
+ forward: to,
733
+ scroll: computeScrollPosition(),
734
+ });
735
+ if ((process.env.NODE_ENV !== 'production') && !history.state) {
736
+ warn(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:\n\n` +
737
+ `history.replaceState(history.state, '', url)\n\n` +
738
+ `You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`);
739
+ }
740
+ changeLocation(currentState.current, currentState, true);
741
+ const state = assign({}, buildState(currentLocation.value, to, null), { position: currentState.position + 1 }, data);
742
+ changeLocation(to, state, false);
743
+ currentLocation.value = to;
744
+ }
745
+ return {
746
+ location: currentLocation,
747
+ state: historyState,
748
+ push,
749
+ replace,
750
+ };
751
+ }
752
+ /**
753
+ * Creates an HTML5 history. Most common history for single page applications.
754
+ *
755
+ * @param base -
756
+ */
757
+ function createWebHistory(base) {
758
+ base = normalizeBase(base);
759
+ const historyNavigation = useHistoryStateNavigation(base);
760
+ const historyListeners = useHistoryListeners(base, historyNavigation.state, historyNavigation.location, historyNavigation.replace);
761
+ function go(delta, triggerListeners = true) {
762
+ if (!triggerListeners)
763
+ historyListeners.pauseListeners();
764
+ history.go(delta);
765
+ }
766
+ const routerHistory = assign({
767
+ // it's overridden right after
768
+ location: '',
769
+ base,
770
+ go,
771
+ createHref: createHref.bind(null, base),
772
+ }, historyNavigation, historyListeners);
773
+ Object.defineProperty(routerHistory, 'location', {
774
+ enumerable: true,
775
+ get: () => historyNavigation.location.value,
776
+ });
777
+ Object.defineProperty(routerHistory, 'state', {
778
+ enumerable: true,
779
+ get: () => historyNavigation.state.value,
780
+ });
781
+ return routerHistory;
782
+ }
783
+
784
+ /**
785
+ * Creates an in-memory based history. The main purpose of this history is to handle SSR. It starts in a special location that is nowhere.
786
+ * It's up to the user to replace that location with the starter location by either calling `router.push` or `router.replace`.
787
+ *
788
+ * @param base - Base applied to all urls, defaults to '/'
789
+ * @returns a history object that can be passed to the router constructor
790
+ */
791
+ function createMemoryHistory(base = '') {
792
+ let listeners = [];
793
+ let queue = [[START, {}]];
794
+ let position = 0;
795
+ base = normalizeBase(base);
796
+ function setLocation(location, state = {}) {
797
+ position++;
798
+ if (position !== queue.length) {
799
+ // we are in the middle, we remove everything from here in the queue
800
+ queue.splice(position);
801
+ }
802
+ queue.push([location, state]);
803
+ }
804
+ function triggerListeners(to, from, { direction, delta }) {
805
+ const info = {
806
+ direction,
807
+ delta,
808
+ type: NavigationType.pop,
809
+ };
810
+ for (const callback of listeners) {
811
+ callback(to, from, info);
812
+ }
813
+ }
814
+ const routerHistory = {
815
+ // rewritten by Object.defineProperty
816
+ location: START,
817
+ // rewritten by Object.defineProperty
818
+ state: {},
819
+ base,
820
+ createHref: createHref.bind(null, base),
821
+ replace(to, state) {
822
+ // remove current entry and decrement position
823
+ queue.splice(position--, 1);
824
+ setLocation(to, state);
825
+ },
826
+ push(to, state) {
827
+ setLocation(to, state);
828
+ },
829
+ listen(callback) {
830
+ listeners.push(callback);
831
+ return () => {
832
+ const index = listeners.indexOf(callback);
833
+ if (index > -1)
834
+ listeners.splice(index, 1);
835
+ };
836
+ },
837
+ destroy() {
838
+ listeners = [];
839
+ queue = [[START, {}]];
840
+ position = 0;
841
+ },
842
+ go(delta, shouldTrigger = true) {
843
+ const from = this.location;
844
+ const direction =
845
+ // we are considering delta === 0 going forward, but in abstract mode
846
+ // using 0 for the delta doesn't make sense like it does in html5 where
847
+ // it reloads the page
848
+ delta < 0 ? NavigationDirection.back : NavigationDirection.forward;
849
+ position = Math.max(0, Math.min(position + delta, queue.length - 1));
850
+ if (shouldTrigger) {
851
+ triggerListeners(this.location, from, {
852
+ direction,
853
+ delta,
854
+ });
855
+ }
856
+ },
857
+ };
858
+ Object.defineProperty(routerHistory, 'location', {
859
+ enumerable: true,
860
+ get: () => queue[position][0],
861
+ });
862
+ Object.defineProperty(routerHistory, 'state', {
863
+ enumerable: true,
864
+ get: () => queue[position][1],
865
+ });
866
+ return routerHistory;
867
+ }
868
+
869
+ /**
870
+ * Creates a hash history. Useful for web applications with no host (e.g. `file://`) or when configuring a server to
871
+ * handle any URL is not possible.
872
+ *
873
+ * @param base - optional base to provide. Defaults to `location.pathname + location.search` If there is a `<base>` tag
874
+ * in the `head`, its value will be ignored in favor of this parameter **but note it affects all the history.pushState()
875
+ * calls**, meaning that if you use a `<base>` tag, it's `href` value **has to match this parameter** (ignoring anything
876
+ * after the `#`).
877
+ *
878
+ * @example
879
+ * ```js
880
+ * // at https://example.com/folder
881
+ * createWebHashHistory() // gives a url of `https://example.com/folder#`
882
+ * createWebHashHistory('/folder/') // gives a url of `https://example.com/folder/#`
883
+ * // if the `#` is provided in the base, it won't be added by `createWebHashHistory`
884
+ * createWebHashHistory('/folder/#/app/') // gives a url of `https://example.com/folder/#/app/`
885
+ * // you should avoid doing this because it changes the original url and breaks copying urls
886
+ * createWebHashHistory('/other-folder/') // gives a url of `https://example.com/other-folder/#`
887
+ *
888
+ * // at file:///usr/etc/folder/index.html
889
+ * // for locations with no `host`, the base is ignored
890
+ * createWebHashHistory('/iAmIgnored') // gives a url of `file:///usr/etc/folder/index.html#`
891
+ * ```
892
+ */
893
+ function createWebHashHistory(base) {
894
+ // Make sure this implementation is fine in terms of encoding, specially for IE11
895
+ // for `file://`, directly use the pathname and ignore the base
896
+ // location.pathname contains an initial `/` even at the root: `https://example.com`
897
+ base = location.host ? base || location.pathname + location.search : '';
898
+ // allow the user to provide a `#` in the middle: `/base/#/app`
899
+ if (!base.includes('#'))
900
+ base += '#';
901
+ if ((process.env.NODE_ENV !== 'production') && !base.endsWith('#/') && !base.endsWith('#')) {
902
+ warn(`A hash base must end with a "#":\n"${base}" should be "${base.replace(/#.*$/, '#')}".`);
903
+ }
904
+ return createWebHistory(base);
905
+ }
906
+
907
+ function isRouteLocation(route) {
908
+ return typeof route === 'string' || (route && typeof route === 'object');
909
+ }
910
+ function isRouteName(name) {
911
+ return typeof name === 'string' || typeof name === 'symbol';
912
+ }
913
+
914
+ const NavigationFailureSymbol = Symbol((process.env.NODE_ENV !== 'production') ? 'navigation failure' : '');
915
+ /**
916
+ * Enumeration with all possible types for navigation failures. Can be passed to
917
+ * {@link isNavigationFailure} to check for specific failures.
918
+ */
919
+ var NavigationFailureType;
920
+ (function (NavigationFailureType) {
921
+ /**
922
+ * An aborted navigation is a navigation that failed because a navigation
923
+ * guard returned `false` or called `next(false)`
924
+ */
925
+ NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
926
+ /**
927
+ * A cancelled navigation is a navigation that failed because a more recent
928
+ * navigation finished started (not necessarily finished).
929
+ */
930
+ NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
931
+ /**
932
+ * A duplicated navigation is a navigation that failed because it was
933
+ * initiated while already being at the exact same location.
934
+ */
935
+ NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
936
+ })(NavigationFailureType || (NavigationFailureType = {}));
937
+ // DEV only debug messages
938
+ const ErrorTypeMessages = {
939
+ [1 /* ErrorTypes.MATCHER_NOT_FOUND */]({ location, currentLocation }) {
940
+ return `No match for\n ${JSON.stringify(location)}${currentLocation
941
+ ? '\nwhile being at\n' + JSON.stringify(currentLocation)
942
+ : ''}`;
943
+ },
944
+ [2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */]({ from, to, }) {
945
+ return `Redirected from "${from.fullPath}" to "${stringifyRoute(to)}" via a navigation guard.`;
946
+ },
947
+ [4 /* ErrorTypes.NAVIGATION_ABORTED */]({ from, to }) {
948
+ return `Navigation aborted from "${from.fullPath}" to "${to.fullPath}" via a navigation guard.`;
949
+ },
950
+ [8 /* ErrorTypes.NAVIGATION_CANCELLED */]({ from, to }) {
951
+ return `Navigation cancelled from "${from.fullPath}" to "${to.fullPath}" with a new navigation.`;
952
+ },
953
+ [16 /* ErrorTypes.NAVIGATION_DUPLICATED */]({ from, to }) {
954
+ return `Avoided redundant navigation to current location: "${from.fullPath}".`;
955
+ },
956
+ };
957
+ /**
958
+ * Creates a typed NavigationFailure object.
959
+ * @internal
960
+ * @param type - NavigationFailureType
961
+ * @param params - { from, to }
962
+ */
963
+ function createRouterError(type, params) {
964
+ // keep full error messages in cjs versions
965
+ if ((process.env.NODE_ENV !== 'production') || !true) {
966
+ return assign(new Error(ErrorTypeMessages[type](params)), {
967
+ type,
968
+ [NavigationFailureSymbol]: true,
969
+ }, params);
970
+ }
971
+ else {
972
+ return assign(new Error(), {
973
+ type,
974
+ [NavigationFailureSymbol]: true,
975
+ }, params);
976
+ }
977
+ }
978
+ function isNavigationFailure(error, type) {
979
+ return (error instanceof Error &&
980
+ NavigationFailureSymbol in error &&
981
+ (type == null || !!(error.type & type)));
982
+ }
983
+ const propertiesToLog = ['params', 'query', 'hash'];
984
+ function stringifyRoute(to) {
985
+ if (typeof to === 'string')
986
+ return to;
987
+ if (to.path != null)
988
+ return to.path;
989
+ const location = {};
990
+ for (const key of propertiesToLog) {
991
+ if (key in to)
992
+ location[key] = to[key];
993
+ }
994
+ return JSON.stringify(location, null, 2);
995
+ }
996
+
997
+ // default pattern for a param: non-greedy everything but /
998
+ const BASE_PARAM_PATTERN = '[^/]+?';
999
+ const BASE_PATH_PARSER_OPTIONS = {
1000
+ sensitive: false,
1001
+ strict: false,
1002
+ start: true,
1003
+ end: true,
1004
+ };
1005
+ // Special Regex characters that must be escaped in static tokens
1006
+ const REGEX_CHARS_RE = /[.+*?^${}()[\]/\\]/g;
1007
+ /**
1008
+ * Creates a path parser from an array of Segments (a segment is an array of Tokens)
1009
+ *
1010
+ * @param segments - array of segments returned by tokenizePath
1011
+ * @param extraOptions - optional options for the regexp
1012
+ * @returns a PathParser
1013
+ */
1014
+ function tokensToParser(segments, extraOptions) {
1015
+ const options = assign({}, BASE_PATH_PARSER_OPTIONS, extraOptions);
1016
+ // the amount of scores is the same as the length of segments except for the root segment "/"
1017
+ const score = [];
1018
+ // the regexp as a string
1019
+ let pattern = options.start ? '^' : '';
1020
+ // extracted keys
1021
+ const keys = [];
1022
+ for (const segment of segments) {
1023
+ // the root segment needs special treatment
1024
+ const segmentScores = segment.length ? [] : [90 /* PathScore.Root */];
1025
+ // allow trailing slash
1026
+ if (options.strict && !segment.length)
1027
+ pattern += '/';
1028
+ for (let tokenIndex = 0; tokenIndex < segment.length; tokenIndex++) {
1029
+ const token = segment[tokenIndex];
1030
+ // resets the score if we are inside a sub-segment /:a-other-:b
1031
+ let subSegmentScore = 40 /* PathScore.Segment */ +
1032
+ (options.sensitive ? 0.25 /* PathScore.BonusCaseSensitive */ : 0);
1033
+ if (token.type === 0 /* TokenType.Static */) {
1034
+ // prepend the slash if we are starting a new segment
1035
+ if (!tokenIndex)
1036
+ pattern += '/';
1037
+ pattern += token.value.replace(REGEX_CHARS_RE, '\\$&');
1038
+ subSegmentScore += 40 /* PathScore.Static */;
1039
+ }
1040
+ else if (token.type === 1 /* TokenType.Param */) {
1041
+ const { value, repeatable, optional, regexp } = token;
1042
+ keys.push({
1043
+ name: value,
1044
+ repeatable,
1045
+ optional,
1046
+ });
1047
+ const re = regexp ? regexp : BASE_PARAM_PATTERN;
1048
+ // the user provided a custom regexp /:id(\\d+)
1049
+ if (re !== BASE_PARAM_PATTERN) {
1050
+ subSegmentScore += 10 /* PathScore.BonusCustomRegExp */;
1051
+ // make sure the regexp is valid before using it
1052
+ try {
1053
+ new RegExp(`(${re})`);
1054
+ }
1055
+ catch (err) {
1056
+ throw new Error(`Invalid custom RegExp for param "${value}" (${re}): ` +
1057
+ err.message);
1058
+ }
1059
+ }
1060
+ // when we repeat we must take care of the repeating leading slash
1061
+ let subPattern = repeatable ? `((?:${re})(?:/(?:${re}))*)` : `(${re})`;
1062
+ // prepend the slash if we are starting a new segment
1063
+ if (!tokenIndex)
1064
+ subPattern =
1065
+ // avoid an optional / if there are more segments e.g. /:p?-static
1066
+ // or /:p?-:p2
1067
+ optional && segment.length < 2
1068
+ ? `(?:/${subPattern})`
1069
+ : '/' + subPattern;
1070
+ if (optional)
1071
+ subPattern += '?';
1072
+ pattern += subPattern;
1073
+ subSegmentScore += 20 /* PathScore.Dynamic */;
1074
+ if (optional)
1075
+ subSegmentScore += -8 /* PathScore.BonusOptional */;
1076
+ if (repeatable)
1077
+ subSegmentScore += -20 /* PathScore.BonusRepeatable */;
1078
+ if (re === '.*')
1079
+ subSegmentScore += -50 /* PathScore.BonusWildcard */;
1080
+ }
1081
+ segmentScores.push(subSegmentScore);
1082
+ }
1083
+ // an empty array like /home/ -> [[{home}], []]
1084
+ // if (!segment.length) pattern += '/'
1085
+ score.push(segmentScores);
1086
+ }
1087
+ // only apply the strict bonus to the last score
1088
+ if (options.strict && options.end) {
1089
+ const i = score.length - 1;
1090
+ score[i][score[i].length - 1] += 0.7000000000000001 /* PathScore.BonusStrict */;
1091
+ }
1092
+ // TODO: dev only warn double trailing slash
1093
+ if (!options.strict)
1094
+ pattern += '/?';
1095
+ if (options.end)
1096
+ pattern += '$';
1097
+ // allow paths like /dynamic to only match dynamic or dynamic/... but not dynamic_something_else
1098
+ else if (options.strict && !pattern.endsWith('/'))
1099
+ pattern += '(?:/|$)';
1100
+ const re = new RegExp(pattern, options.sensitive ? '' : 'i');
1101
+ function parse(path) {
1102
+ const match = path.match(re);
1103
+ const params = {};
1104
+ if (!match)
1105
+ return null;
1106
+ for (let i = 1; i < match.length; i++) {
1107
+ const value = match[i] || '';
1108
+ const key = keys[i - 1];
1109
+ params[key.name] = value && key.repeatable ? value.split('/') : value;
1110
+ }
1111
+ return params;
1112
+ }
1113
+ function stringify(params) {
1114
+ let path = '';
1115
+ // for optional parameters to allow to be empty
1116
+ let avoidDuplicatedSlash = false;
1117
+ for (const segment of segments) {
1118
+ if (!avoidDuplicatedSlash || !path.endsWith('/'))
1119
+ path += '/';
1120
+ avoidDuplicatedSlash = false;
1121
+ for (const token of segment) {
1122
+ if (token.type === 0 /* TokenType.Static */) {
1123
+ path += token.value;
1124
+ }
1125
+ else if (token.type === 1 /* TokenType.Param */) {
1126
+ const { value, repeatable, optional } = token;
1127
+ const param = value in params ? params[value] : '';
1128
+ if (isArray(param) && !repeatable) {
1129
+ throw new Error(`Provided param "${value}" is an array but it is not repeatable (* or + modifiers)`);
1130
+ }
1131
+ const text = isArray(param)
1132
+ ? param.join('/')
1133
+ : param;
1134
+ if (!text) {
1135
+ if (optional) {
1136
+ // if we have more than one optional param like /:a?-static we don't need to care about the optional param
1137
+ if (segment.length < 2) {
1138
+ // remove the last slash as we could be at the end
1139
+ if (path.endsWith('/'))
1140
+ path = path.slice(0, -1);
1141
+ // do not append a slash on the next iteration
1142
+ else
1143
+ avoidDuplicatedSlash = true;
1144
+ }
1145
+ }
1146
+ else
1147
+ throw new Error(`Missing required param "${value}"`);
1148
+ }
1149
+ path += text;
1150
+ }
1151
+ }
1152
+ }
1153
+ // avoid empty path when we have multiple optional params
1154
+ return path || '/';
1155
+ }
1156
+ return {
1157
+ re,
1158
+ score,
1159
+ keys,
1160
+ parse,
1161
+ stringify,
1162
+ };
1163
+ }
1164
+ /**
1165
+ * Compares an array of numbers as used in PathParser.score and returns a
1166
+ * number. This function can be used to `sort` an array
1167
+ *
1168
+ * @param a - first array of numbers
1169
+ * @param b - second array of numbers
1170
+ * @returns 0 if both are equal, < 0 if a should be sorted first, > 0 if b
1171
+ * should be sorted first
1172
+ */
1173
+ function compareScoreArray(a, b) {
1174
+ let i = 0;
1175
+ while (i < a.length && i < b.length) {
1176
+ const diff = b[i] - a[i];
1177
+ // only keep going if diff === 0
1178
+ if (diff)
1179
+ return diff;
1180
+ i++;
1181
+ }
1182
+ // if the last subsegment was Static, the shorter segments should be sorted first
1183
+ // otherwise sort the longest segment first
1184
+ if (a.length < b.length) {
1185
+ return a.length === 1 && a[0] === 40 /* PathScore.Static */ + 40 /* PathScore.Segment */
1186
+ ? -1
1187
+ : 1;
1188
+ }
1189
+ else if (a.length > b.length) {
1190
+ return b.length === 1 && b[0] === 40 /* PathScore.Static */ + 40 /* PathScore.Segment */
1191
+ ? 1
1192
+ : -1;
1193
+ }
1194
+ return 0;
1195
+ }
1196
+ /**
1197
+ * Compare function that can be used with `sort` to sort an array of PathParser
1198
+ *
1199
+ * @param a - first PathParser
1200
+ * @param b - second PathParser
1201
+ * @returns 0 if both are equal, < 0 if a should be sorted first, > 0 if b
1202
+ */
1203
+ function comparePathParserScore(a, b) {
1204
+ let i = 0;
1205
+ const aScore = a.score;
1206
+ const bScore = b.score;
1207
+ while (i < aScore.length && i < bScore.length) {
1208
+ const comp = compareScoreArray(aScore[i], bScore[i]);
1209
+ // do not return if both are equal
1210
+ if (comp)
1211
+ return comp;
1212
+ i++;
1213
+ }
1214
+ if (Math.abs(bScore.length - aScore.length) === 1) {
1215
+ if (isLastScoreNegative(aScore))
1216
+ return 1;
1217
+ if (isLastScoreNegative(bScore))
1218
+ return -1;
1219
+ }
1220
+ // if a and b share the same score entries but b has more, sort b first
1221
+ return bScore.length - aScore.length;
1222
+ // this is the ternary version
1223
+ // return aScore.length < bScore.length
1224
+ // ? 1
1225
+ // : aScore.length > bScore.length
1226
+ // ? -1
1227
+ // : 0
1228
+ }
1229
+ /**
1230
+ * This allows detecting splats at the end of a path: /home/:id(.*)*
1231
+ *
1232
+ * @param score - score to check
1233
+ * @returns true if the last entry is negative
1234
+ */
1235
+ function isLastScoreNegative(score) {
1236
+ const last = score[score.length - 1];
1237
+ return score.length > 0 && last[last.length - 1] < 0;
1238
+ }
1239
+
1240
+ const ROOT_TOKEN = {
1241
+ type: 0 /* TokenType.Static */,
1242
+ value: '',
1243
+ };
1244
+ const VALID_PARAM_RE = /[a-zA-Z0-9_]/;
1245
+ // After some profiling, the cache seems to be unnecessary because tokenizePath
1246
+ // (the slowest part of adding a route) is very fast
1247
+ // const tokenCache = new Map<string, Token[][]>()
1248
+ function tokenizePath(path) {
1249
+ if (!path)
1250
+ return [[]];
1251
+ if (path === '/')
1252
+ return [[ROOT_TOKEN]];
1253
+ if (!path.startsWith('/')) {
1254
+ throw new Error((process.env.NODE_ENV !== 'production')
1255
+ ? `Route paths should start with a "/": "${path}" should be "/${path}".`
1256
+ : `Invalid path "${path}"`);
1257
+ }
1258
+ // if (tokenCache.has(path)) return tokenCache.get(path)!
1259
+ function crash(message) {
1260
+ throw new Error(`ERR (${state})/"${buffer}": ${message}`);
1261
+ }
1262
+ let state = 0 /* TokenizerState.Static */;
1263
+ let previousState = state;
1264
+ const tokens = [];
1265
+ // the segment will always be valid because we get into the initial state
1266
+ // with the leading /
1267
+ let segment;
1268
+ function finalizeSegment() {
1269
+ if (segment)
1270
+ tokens.push(segment);
1271
+ segment = [];
1272
+ }
1273
+ // index on the path
1274
+ let i = 0;
1275
+ // char at index
1276
+ let char;
1277
+ // buffer of the value read
1278
+ let buffer = '';
1279
+ // custom regexp for a param
1280
+ let customRe = '';
1281
+ function consumeBuffer() {
1282
+ if (!buffer)
1283
+ return;
1284
+ if (state === 0 /* TokenizerState.Static */) {
1285
+ segment.push({
1286
+ type: 0 /* TokenType.Static */,
1287
+ value: buffer,
1288
+ });
1289
+ }
1290
+ else if (state === 1 /* TokenizerState.Param */ ||
1291
+ state === 2 /* TokenizerState.ParamRegExp */ ||
1292
+ state === 3 /* TokenizerState.ParamRegExpEnd */) {
1293
+ if (segment.length > 1 && (char === '*' || char === '+'))
1294
+ crash(`A repeatable param (${buffer}) must be alone in its segment. eg: '/:ids+.`);
1295
+ segment.push({
1296
+ type: 1 /* TokenType.Param */,
1297
+ value: buffer,
1298
+ regexp: customRe,
1299
+ repeatable: char === '*' || char === '+',
1300
+ optional: char === '*' || char === '?',
1301
+ });
1302
+ }
1303
+ else {
1304
+ crash('Invalid state to consume buffer');
1305
+ }
1306
+ buffer = '';
1307
+ }
1308
+ function addCharToBuffer() {
1309
+ buffer += char;
1310
+ }
1311
+ while (i < path.length) {
1312
+ char = path[i++];
1313
+ if (char === '\\' && state !== 2 /* TokenizerState.ParamRegExp */) {
1314
+ previousState = state;
1315
+ state = 4 /* TokenizerState.EscapeNext */;
1316
+ continue;
1317
+ }
1318
+ switch (state) {
1319
+ case 0 /* TokenizerState.Static */:
1320
+ if (char === '/') {
1321
+ if (buffer) {
1322
+ consumeBuffer();
1323
+ }
1324
+ finalizeSegment();
1325
+ }
1326
+ else if (char === ':') {
1327
+ consumeBuffer();
1328
+ state = 1 /* TokenizerState.Param */;
1329
+ }
1330
+ else {
1331
+ addCharToBuffer();
1332
+ }
1333
+ break;
1334
+ case 4 /* TokenizerState.EscapeNext */:
1335
+ addCharToBuffer();
1336
+ state = previousState;
1337
+ break;
1338
+ case 1 /* TokenizerState.Param */:
1339
+ if (char === '(') {
1340
+ state = 2 /* TokenizerState.ParamRegExp */;
1341
+ }
1342
+ else if (VALID_PARAM_RE.test(char)) {
1343
+ addCharToBuffer();
1344
+ }
1345
+ else {
1346
+ consumeBuffer();
1347
+ state = 0 /* TokenizerState.Static */;
1348
+ // go back one character if we were not modifying
1349
+ if (char !== '*' && char !== '?' && char !== '+')
1350
+ i--;
1351
+ }
1352
+ break;
1353
+ case 2 /* TokenizerState.ParamRegExp */:
1354
+ // TODO: is it worth handling nested regexp? like :p(?:prefix_([^/]+)_suffix)
1355
+ // it already works by escaping the closing )
1356
+ // https://paths.esm.dev/?p=AAMeJbiAwQEcDKbAoAAkP60PG2R6QAvgNaA6AFACM2ABuQBB#
1357
+ // is this really something people need since you can also write
1358
+ // /prefix_:p()_suffix
1359
+ if (char === ')') {
1360
+ // handle the escaped )
1361
+ if (customRe[customRe.length - 1] == '\\')
1362
+ customRe = customRe.slice(0, -1) + char;
1363
+ else
1364
+ state = 3 /* TokenizerState.ParamRegExpEnd */;
1365
+ }
1366
+ else {
1367
+ customRe += char;
1368
+ }
1369
+ break;
1370
+ case 3 /* TokenizerState.ParamRegExpEnd */:
1371
+ // same as finalizing a param
1372
+ consumeBuffer();
1373
+ state = 0 /* TokenizerState.Static */;
1374
+ // go back one character if we were not modifying
1375
+ if (char !== '*' && char !== '?' && char !== '+')
1376
+ i--;
1377
+ customRe = '';
1378
+ break;
1379
+ default:
1380
+ crash('Unknown state');
1381
+ break;
1382
+ }
1383
+ }
1384
+ if (state === 2 /* TokenizerState.ParamRegExp */)
1385
+ crash(`Unfinished custom RegExp for param "${buffer}"`);
1386
+ consumeBuffer();
1387
+ finalizeSegment();
1388
+ // tokenCache.set(path, tokens)
1389
+ return tokens;
1390
+ }
1391
+
1392
+ function createRouteRecordMatcher(record, parent, options) {
1393
+ const parser = tokensToParser(tokenizePath(record.path), options);
1394
+ // warn against params with the same name
1395
+ if ((process.env.NODE_ENV !== 'production')) {
1396
+ const existingKeys = new Set();
1397
+ for (const key of parser.keys) {
1398
+ if (existingKeys.has(key.name))
1399
+ warn(`Found duplicated params with name "${key.name}" for path "${record.path}". Only the last one will be available on "$route.params".`);
1400
+ existingKeys.add(key.name);
1401
+ }
1402
+ }
1403
+ const matcher = assign(parser, {
1404
+ record,
1405
+ parent,
1406
+ // these needs to be populated by the parent
1407
+ children: [],
1408
+ alias: [],
1409
+ });
1410
+ if (parent) {
1411
+ // both are aliases or both are not aliases
1412
+ // we don't want to mix them because the order is used when
1413
+ // passing originalRecord in Matcher.addRoute
1414
+ if (!matcher.record.aliasOf === !parent.record.aliasOf)
1415
+ parent.children.push(matcher);
1416
+ }
1417
+ return matcher;
1418
+ }
1419
+
1420
+ /**
1421
+ * Creates a Router Matcher.
1422
+ *
1423
+ * @internal
1424
+ * @param routes - array of initial routes
1425
+ * @param globalOptions - global route options
1426
+ */
1427
+ function createRouterMatcher(routes, globalOptions) {
1428
+ // normalized ordered array of matchers
1429
+ const matchers = [];
1430
+ const matcherMap = new Map();
1431
+ globalOptions = mergeOptions({ strict: false, end: true, sensitive: false }, globalOptions);
1432
+ function getRecordMatcher(name) {
1433
+ return matcherMap.get(name);
1434
+ }
1435
+ function addRoute(record, parent, originalRecord) {
1436
+ // used later on to remove by name
1437
+ const isRootAdd = !originalRecord;
1438
+ const mainNormalizedRecord = normalizeRouteRecord(record);
1439
+ if ((process.env.NODE_ENV !== 'production')) {
1440
+ checkChildMissingNameWithEmptyPath(mainNormalizedRecord, parent);
1441
+ }
1442
+ // we might be the child of an alias
1443
+ mainNormalizedRecord.aliasOf = originalRecord && originalRecord.record;
1444
+ const options = mergeOptions(globalOptions, record);
1445
+ // generate an array of records to correctly handle aliases
1446
+ const normalizedRecords = [mainNormalizedRecord];
1447
+ if ('alias' in record) {
1448
+ const aliases = typeof record.alias === 'string' ? [record.alias] : record.alias;
1449
+ for (const alias of aliases) {
1450
+ normalizedRecords.push(
1451
+ // we need to normalize again to ensure the `mods` property
1452
+ // being non enumerable
1453
+ normalizeRouteRecord(assign({}, mainNormalizedRecord, {
1454
+ // this allows us to hold a copy of the `components` option
1455
+ // so that async components cache is hold on the original record
1456
+ components: originalRecord
1457
+ ? originalRecord.record.components
1458
+ : mainNormalizedRecord.components,
1459
+ path: alias,
1460
+ // we might be the child of an alias
1461
+ aliasOf: originalRecord
1462
+ ? originalRecord.record
1463
+ : mainNormalizedRecord,
1464
+ // the aliases are always of the same kind as the original since they
1465
+ // are defined on the same record
1466
+ })));
1467
+ }
1468
+ }
1469
+ let matcher;
1470
+ let originalMatcher;
1471
+ for (const normalizedRecord of normalizedRecords) {
1472
+ const { path } = normalizedRecord;
1473
+ // Build up the path for nested routes if the child isn't an absolute
1474
+ // route. Only add the / delimiter if the child path isn't empty and if the
1475
+ // parent path doesn't have a trailing slash
1476
+ if (parent && path[0] !== '/') {
1477
+ const parentPath = parent.record.path;
1478
+ const connectingSlash = parentPath[parentPath.length - 1] === '/' ? '' : '/';
1479
+ normalizedRecord.path =
1480
+ parent.record.path + (path && connectingSlash + path);
1481
+ }
1482
+ if ((process.env.NODE_ENV !== 'production') && normalizedRecord.path === '*') {
1483
+ throw new Error('Catch all routes ("*") must now be defined using a param with a custom regexp.\n' +
1484
+ 'See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.');
1485
+ }
1486
+ // create the object beforehand, so it can be passed to children
1487
+ matcher = createRouteRecordMatcher(normalizedRecord, parent, options);
1488
+ if ((process.env.NODE_ENV !== 'production') && parent && path[0] === '/')
1489
+ checkMissingParamsInAbsolutePath(matcher, parent);
1490
+ // if we are an alias we must tell the original record that we exist,
1491
+ // so we can be removed
1492
+ if (originalRecord) {
1493
+ originalRecord.alias.push(matcher);
1494
+ if ((process.env.NODE_ENV !== 'production')) {
1495
+ checkSameParams(originalRecord, matcher);
1496
+ }
1497
+ }
1498
+ else {
1499
+ // otherwise, the first record is the original and others are aliases
1500
+ originalMatcher = originalMatcher || matcher;
1501
+ if (originalMatcher !== matcher)
1502
+ originalMatcher.alias.push(matcher);
1503
+ // remove the route if named and only for the top record (avoid in nested calls)
1504
+ // this works because the original record is the first one
1505
+ if (isRootAdd && record.name && !isAliasRecord(matcher)) {
1506
+ if ((process.env.NODE_ENV !== 'production')) {
1507
+ checkSameNameAsAncestor(record, parent);
1508
+ }
1509
+ removeRoute(record.name);
1510
+ }
1511
+ }
1512
+ // Avoid adding a record that doesn't display anything. This allows passing through records without a component to
1513
+ // not be reached and pass through the catch all route
1514
+ if (isMatchable(matcher)) {
1515
+ insertMatcher(matcher);
1516
+ }
1517
+ if (mainNormalizedRecord.children) {
1518
+ const children = mainNormalizedRecord.children;
1519
+ for (let i = 0; i < children.length; i++) {
1520
+ addRoute(children[i], matcher, originalRecord && originalRecord.children[i]);
1521
+ }
1522
+ }
1523
+ // if there was no original record, then the first one was not an alias and all
1524
+ // other aliases (if any) need to reference this record when adding children
1525
+ originalRecord = originalRecord || matcher;
1526
+ // TODO: add normalized records for more flexibility
1527
+ // if (parent && isAliasRecord(originalRecord)) {
1528
+ // parent.children.push(originalRecord)
1529
+ // }
1530
+ }
1531
+ return originalMatcher
1532
+ ? () => {
1533
+ // since other matchers are aliases, they should be removed by the original matcher
1534
+ removeRoute(originalMatcher);
1535
+ }
1536
+ : noop;
1537
+ }
1538
+ function removeRoute(matcherRef) {
1539
+ if (isRouteName(matcherRef)) {
1540
+ const matcher = matcherMap.get(matcherRef);
1541
+ if (matcher) {
1542
+ matcherMap.delete(matcherRef);
1543
+ matchers.splice(matchers.indexOf(matcher), 1);
1544
+ matcher.children.forEach(removeRoute);
1545
+ matcher.alias.forEach(removeRoute);
1546
+ }
1547
+ }
1548
+ else {
1549
+ const index = matchers.indexOf(matcherRef);
1550
+ if (index > -1) {
1551
+ matchers.splice(index, 1);
1552
+ if (matcherRef.record.name)
1553
+ matcherMap.delete(matcherRef.record.name);
1554
+ matcherRef.children.forEach(removeRoute);
1555
+ matcherRef.alias.forEach(removeRoute);
1556
+ }
1557
+ }
1558
+ }
1559
+ function getRoutes() {
1560
+ return matchers;
1561
+ }
1562
+ function insertMatcher(matcher) {
1563
+ const index = findInsertionIndex(matcher, matchers);
1564
+ matchers.splice(index, 0, matcher);
1565
+ // only add the original record to the name map
1566
+ if (matcher.record.name && !isAliasRecord(matcher))
1567
+ matcherMap.set(matcher.record.name, matcher);
1568
+ }
1569
+ function resolve(location, currentLocation) {
1570
+ let matcher;
1571
+ let params = {};
1572
+ let path;
1573
+ let name;
1574
+ if ('name' in location && location.name) {
1575
+ matcher = matcherMap.get(location.name);
1576
+ if (!matcher)
1577
+ throw createRouterError(1 /* ErrorTypes.MATCHER_NOT_FOUND */, {
1578
+ location,
1579
+ });
1580
+ // warn if the user is passing invalid params so they can debug it better when they get removed
1581
+ if ((process.env.NODE_ENV !== 'production')) {
1582
+ const invalidParams = Object.keys(location.params || {}).filter(paramName => !matcher.keys.find(k => k.name === paramName));
1583
+ if (invalidParams.length) {
1584
+ warn(`Discarded invalid param(s) "${invalidParams.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1585
+ }
1586
+ }
1587
+ name = matcher.record.name;
1588
+ params = assign(
1589
+ // paramsFromLocation is a new object
1590
+ paramsFromLocation(currentLocation.params,
1591
+ // only keep params that exist in the resolved location
1592
+ // only keep optional params coming from a parent record
1593
+ matcher.keys
1594
+ .filter(k => !k.optional)
1595
+ .concat(matcher.parent ? matcher.parent.keys.filter(k => k.optional) : [])
1596
+ .map(k => k.name)),
1597
+ // discard any existing params in the current location that do not exist here
1598
+ // #1497 this ensures better active/exact matching
1599
+ location.params &&
1600
+ paramsFromLocation(location.params, matcher.keys.map(k => k.name)));
1601
+ // throws if cannot be stringified
1602
+ path = matcher.stringify(params);
1603
+ }
1604
+ else if (location.path != null) {
1605
+ // no need to resolve the path with the matcher as it was provided
1606
+ // this also allows the user to control the encoding
1607
+ path = location.path;
1608
+ if ((process.env.NODE_ENV !== 'production') && !path.startsWith('/')) {
1609
+ warn(`The Matcher cannot resolve relative paths but received "${path}". Unless you directly called \`matcher.resolve("${path}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`);
1610
+ }
1611
+ matcher = matchers.find(m => m.re.test(path));
1612
+ // matcher should have a value after the loop
1613
+ if (matcher) {
1614
+ // we know the matcher works because we tested the regexp
1615
+ params = matcher.parse(path);
1616
+ name = matcher.record.name;
1617
+ }
1618
+ // location is a relative path
1619
+ }
1620
+ else {
1621
+ // match by name or path of current route
1622
+ matcher = currentLocation.name
1623
+ ? matcherMap.get(currentLocation.name)
1624
+ : matchers.find(m => m.re.test(currentLocation.path));
1625
+ if (!matcher)
1626
+ throw createRouterError(1 /* ErrorTypes.MATCHER_NOT_FOUND */, {
1627
+ location,
1628
+ currentLocation,
1629
+ });
1630
+ name = matcher.record.name;
1631
+ // since we are navigating to the same location, we don't need to pick the
1632
+ // params like when `name` is provided
1633
+ params = assign({}, currentLocation.params, location.params);
1634
+ path = matcher.stringify(params);
1635
+ }
1636
+ const matched = [];
1637
+ let parentMatcher = matcher;
1638
+ while (parentMatcher) {
1639
+ // reversed order so parents are at the beginning
1640
+ matched.unshift(parentMatcher.record);
1641
+ parentMatcher = parentMatcher.parent;
1642
+ }
1643
+ return {
1644
+ name,
1645
+ path,
1646
+ params,
1647
+ matched,
1648
+ meta: mergeMetaFields(matched),
1649
+ };
1650
+ }
1651
+ // add initial routes
1652
+ routes.forEach(route => addRoute(route));
1653
+ function clearRoutes() {
1654
+ matchers.length = 0;
1655
+ matcherMap.clear();
1656
+ }
1657
+ return {
1658
+ addRoute,
1659
+ resolve,
1660
+ removeRoute,
1661
+ clearRoutes,
1662
+ getRoutes,
1663
+ getRecordMatcher,
1664
+ };
1665
+ }
1666
+ function paramsFromLocation(params, keys) {
1667
+ const newParams = {};
1668
+ for (const key of keys) {
1669
+ if (key in params)
1670
+ newParams[key] = params[key];
1671
+ }
1672
+ return newParams;
1673
+ }
1674
+ /**
1675
+ * Normalizes a RouteRecordRaw. Creates a copy
1676
+ *
1677
+ * @param record
1678
+ * @returns the normalized version
1679
+ */
1680
+ function normalizeRouteRecord(record) {
1681
+ const normalized = {
1682
+ path: record.path,
1683
+ redirect: record.redirect,
1684
+ name: record.name,
1685
+ meta: record.meta || {},
1686
+ aliasOf: record.aliasOf,
1687
+ beforeEnter: record.beforeEnter,
1688
+ props: normalizeRecordProps(record),
1689
+ children: record.children || [],
1690
+ instances: {},
1691
+ leaveGuards: new Set(),
1692
+ updateGuards: new Set(),
1693
+ enterCallbacks: {},
1694
+ // must be declared afterwards
1695
+ // mods: {},
1696
+ components: 'components' in record
1697
+ ? record.components || null
1698
+ : record.component && { default: record.component },
1699
+ };
1700
+ // mods contain modules and shouldn't be copied,
1701
+ // logged or anything. It's just used for internal
1702
+ // advanced use cases like data loaders
1703
+ Object.defineProperty(normalized, 'mods', {
1704
+ value: {},
1705
+ });
1706
+ return normalized;
1707
+ }
1708
+ /**
1709
+ * Normalize the optional `props` in a record to always be an object similar to
1710
+ * components. Also accept a boolean for components.
1711
+ * @param record
1712
+ */
1713
+ function normalizeRecordProps(record) {
1714
+ const propsObject = {};
1715
+ // props does not exist on redirect records, but we can set false directly
1716
+ const props = record.props || false;
1717
+ if ('component' in record) {
1718
+ propsObject.default = props;
1719
+ }
1720
+ else {
1721
+ // NOTE: we could also allow a function to be applied to every component.
1722
+ // Would need user feedback for use cases
1723
+ for (const name in record.components)
1724
+ propsObject[name] = typeof props === 'object' ? props[name] : props;
1725
+ }
1726
+ return propsObject;
1727
+ }
1728
+ /**
1729
+ * Checks if a record or any of its parent is an alias
1730
+ * @param record
1731
+ */
1732
+ function isAliasRecord(record) {
1733
+ while (record) {
1734
+ if (record.record.aliasOf)
1735
+ return true;
1736
+ record = record.parent;
1737
+ }
1738
+ return false;
1739
+ }
1740
+ /**
1741
+ * Merge meta fields of an array of records
1742
+ *
1743
+ * @param matched - array of matched records
1744
+ */
1745
+ function mergeMetaFields(matched) {
1746
+ return matched.reduce((meta, record) => assign(meta, record.meta), {});
1747
+ }
1748
+ function mergeOptions(defaults, partialOptions) {
1749
+ const options = {};
1750
+ for (const key in defaults) {
1751
+ options[key] = key in partialOptions ? partialOptions[key] : defaults[key];
1752
+ }
1753
+ return options;
1754
+ }
1755
+ function isSameParam(a, b) {
1756
+ return (a.name === b.name &&
1757
+ a.optional === b.optional &&
1758
+ a.repeatable === b.repeatable);
1759
+ }
1760
+ /**
1761
+ * Check if a path and its alias have the same required params
1762
+ *
1763
+ * @param a - original record
1764
+ * @param b - alias record
1765
+ */
1766
+ function checkSameParams(a, b) {
1767
+ for (const key of a.keys) {
1768
+ if (!key.optional && !b.keys.find(isSameParam.bind(null, key)))
1769
+ return warn(`Alias "${b.record.path}" and the original record: "${a.record.path}" must have the exact same param named "${key.name}"`);
1770
+ }
1771
+ for (const key of b.keys) {
1772
+ if (!key.optional && !a.keys.find(isSameParam.bind(null, key)))
1773
+ return warn(`Alias "${b.record.path}" and the original record: "${a.record.path}" must have the exact same param named "${key.name}"`);
1774
+ }
1775
+ }
1776
+ /**
1777
+ * A route with a name and a child with an empty path without a name should warn when adding the route
1778
+ *
1779
+ * @param mainNormalizedRecord - RouteRecordNormalized
1780
+ * @param parent - RouteRecordMatcher
1781
+ */
1782
+ function checkChildMissingNameWithEmptyPath(mainNormalizedRecord, parent) {
1783
+ if (parent &&
1784
+ parent.record.name &&
1785
+ !mainNormalizedRecord.name &&
1786
+ !mainNormalizedRecord.path) {
1787
+ warn(`The route named "${String(parent.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
1788
+ }
1789
+ }
1790
+ function checkSameNameAsAncestor(record, parent) {
1791
+ for (let ancestor = parent; ancestor; ancestor = ancestor.parent) {
1792
+ if (ancestor.record.name === record.name) {
1793
+ throw new Error(`A route named "${String(record.name)}" has been added as a ${parent === ancestor ? 'child' : 'descendant'} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);
1794
+ }
1795
+ }
1796
+ }
1797
+ function checkMissingParamsInAbsolutePath(record, parent) {
1798
+ for (const key of parent.keys) {
1799
+ if (!record.keys.find(isSameParam.bind(null, key)))
1800
+ return warn(`Absolute path "${record.record.path}" must have the exact same param named "${key.name}" as its parent "${parent.record.path}".`);
1801
+ }
1802
+ }
1803
+ /**
1804
+ * Performs a binary search to find the correct insertion index for a new matcher.
1805
+ *
1806
+ * Matchers are primarily sorted by their score. If scores are tied then we also consider parent/child relationships,
1807
+ * with descendants coming before ancestors. If there's still a tie, new routes are inserted after existing routes.
1808
+ *
1809
+ * @param matcher - new matcher to be inserted
1810
+ * @param matchers - existing matchers
1811
+ */
1812
+ function findInsertionIndex(matcher, matchers) {
1813
+ // First phase: binary search based on score
1814
+ let lower = 0;
1815
+ let upper = matchers.length;
1816
+ while (lower !== upper) {
1817
+ const mid = (lower + upper) >> 1;
1818
+ const sortOrder = comparePathParserScore(matcher, matchers[mid]);
1819
+ if (sortOrder < 0) {
1820
+ upper = mid;
1821
+ }
1822
+ else {
1823
+ lower = mid + 1;
1824
+ }
1825
+ }
1826
+ // Second phase: check for an ancestor with the same score
1827
+ const insertionAncestor = getInsertionAncestor(matcher);
1828
+ if (insertionAncestor) {
1829
+ upper = matchers.lastIndexOf(insertionAncestor, upper - 1);
1830
+ if ((process.env.NODE_ENV !== 'production') && upper < 0) {
1831
+ // This should never happen
1832
+ warn(`Finding ancestor route "${insertionAncestor.record.path}" failed for "${matcher.record.path}"`);
1833
+ }
1834
+ }
1835
+ return upper;
1836
+ }
1837
+ function getInsertionAncestor(matcher) {
1838
+ let ancestor = matcher;
1839
+ while ((ancestor = ancestor.parent)) {
1840
+ if (isMatchable(ancestor) &&
1841
+ comparePathParserScore(matcher, ancestor) === 0) {
1842
+ return ancestor;
1843
+ }
1844
+ }
1845
+ return;
1846
+ }
1847
+ /**
1848
+ * Checks if a matcher can be reachable. This means if it's possible to reach it as a route. For example, routes without
1849
+ * a component, or name, or redirect, are just used to group other routes.
1850
+ * @param matcher
1851
+ * @param matcher.record record of the matcher
1852
+ * @returns
1853
+ */
1854
+ function isMatchable({ record }) {
1855
+ return !!(record.name ||
1856
+ (record.components && Object.keys(record.components).length) ||
1857
+ record.redirect);
1858
+ }
1859
+
1860
+ /**
1861
+ * Transforms a queryString into a {@link LocationQuery} object. Accept both, a
1862
+ * version with the leading `?` and without Should work as URLSearchParams
1863
+
1864
+ * @internal
1865
+ *
1866
+ * @param search - search string to parse
1867
+ * @returns a query object
1868
+ */
1869
+ function parseQuery(search) {
1870
+ const query = {};
1871
+ // avoid creating an object with an empty key and empty value
1872
+ // because of split('&')
1873
+ if (search === '' || search === '?')
1874
+ return query;
1875
+ const hasLeadingIM = search[0] === '?';
1876
+ const searchParams = (hasLeadingIM ? search.slice(1) : search).split('&');
1877
+ for (let i = 0; i < searchParams.length; ++i) {
1878
+ // pre decode the + into space
1879
+ const searchParam = searchParams[i].replace(PLUS_RE, ' ');
1880
+ // allow the = character
1881
+ const eqPos = searchParam.indexOf('=');
1882
+ const key = decode(eqPos < 0 ? searchParam : searchParam.slice(0, eqPos));
1883
+ const value = eqPos < 0 ? null : decode(searchParam.slice(eqPos + 1));
1884
+ if (key in query) {
1885
+ // an extra variable for ts types
1886
+ let currentValue = query[key];
1887
+ if (!isArray(currentValue)) {
1888
+ currentValue = query[key] = [currentValue];
1889
+ }
1890
+ currentValue.push(value);
1891
+ }
1892
+ else {
1893
+ query[key] = value;
1894
+ }
1895
+ }
1896
+ return query;
1897
+ }
1898
+ /**
1899
+ * Stringifies a {@link LocationQueryRaw} object. Like `URLSearchParams`, it
1900
+ * doesn't prepend a `?`
1901
+ *
1902
+ * @internal
1903
+ *
1904
+ * @param query - query object to stringify
1905
+ * @returns string version of the query without the leading `?`
1906
+ */
1907
+ function stringifyQuery(query) {
1908
+ let search = '';
1909
+ for (let key in query) {
1910
+ const value = query[key];
1911
+ key = encodeQueryKey(key);
1912
+ if (value == null) {
1913
+ // only null adds the value
1914
+ if (value !== undefined) {
1915
+ search += (search.length ? '&' : '') + key;
1916
+ }
1917
+ continue;
1918
+ }
1919
+ // keep null values
1920
+ const values = isArray(value)
1921
+ ? value.map(v => v && encodeQueryValue(v))
1922
+ : [value && encodeQueryValue(value)];
1923
+ values.forEach(value => {
1924
+ // skip undefined values in arrays as if they were not present
1925
+ // smaller code than using filter
1926
+ if (value !== undefined) {
1927
+ // only append & with non-empty search
1928
+ search += (search.length ? '&' : '') + key;
1929
+ if (value != null)
1930
+ search += '=' + value;
1931
+ }
1932
+ });
1933
+ }
1934
+ return search;
1935
+ }
1936
+ /**
1937
+ * Transforms a {@link LocationQueryRaw} into a {@link LocationQuery} by casting
1938
+ * numbers into strings, removing keys with an undefined value and replacing
1939
+ * undefined with null in arrays
1940
+ *
1941
+ * @param query - query object to normalize
1942
+ * @returns a normalized query object
1943
+ */
1944
+ function normalizeQuery(query) {
1945
+ const normalizedQuery = {};
1946
+ for (const key in query) {
1947
+ const value = query[key];
1948
+ if (value !== undefined) {
1949
+ normalizedQuery[key] = isArray(value)
1950
+ ? value.map(v => (v == null ? null : '' + v))
1951
+ : value == null
1952
+ ? value
1953
+ : '' + value;
1954
+ }
1955
+ }
1956
+ return normalizedQuery;
1957
+ }
1958
+
1959
+ /**
1960
+ * RouteRecord being rendered by the closest ancestor Router View. Used for
1961
+ * `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
1962
+ * Location Matched
1963
+ *
1964
+ * @internal
1965
+ */
1966
+ const matchedRouteKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router view location matched' : '');
1967
+ /**
1968
+ * Allows overriding the router view depth to control which component in
1969
+ * `matched` is rendered. rvd stands for Router View Depth
1970
+ *
1971
+ * @internal
1972
+ */
1973
+ const viewDepthKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router view depth' : '');
1974
+ /**
1975
+ * Allows overriding the router instance returned by `useRouter` in tests. r
1976
+ * stands for router
1977
+ *
1978
+ * @internal
1979
+ */
1980
+ const routerKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router' : '');
1981
+ /**
1982
+ * Allows overriding the current route returned by `useRoute` in tests. rl
1983
+ * stands for route location
1984
+ *
1985
+ * @internal
1986
+ */
1987
+ const routeLocationKey = Symbol((process.env.NODE_ENV !== 'production') ? 'route location' : '');
1988
+ /**
1989
+ * Allows overriding the current route used by router-view. Internally this is
1990
+ * used when the `route` prop is passed.
1991
+ *
1992
+ * @internal
1993
+ */
1994
+ const routerViewLocationKey = Symbol((process.env.NODE_ENV !== 'production') ? 'router view location' : '');
1995
+
1996
+ /**
1997
+ * Create a list of callbacks that can be reset. Used to create before and after navigation guards list
1998
+ */
1999
+ function useCallbacks() {
2000
+ let handlers = [];
2001
+ function add(handler) {
2002
+ handlers.push(handler);
2003
+ return () => {
2004
+ const i = handlers.indexOf(handler);
2005
+ if (i > -1)
2006
+ handlers.splice(i, 1);
2007
+ };
2008
+ }
2009
+ function reset() {
2010
+ handlers = [];
2011
+ }
2012
+ return {
2013
+ add,
2014
+ list: () => handlers.slice(),
2015
+ reset,
2016
+ };
2017
+ }
2018
+
2019
+ function registerGuard(record, name, guard) {
2020
+ const removeFromList = () => {
2021
+ record[name].delete(guard);
2022
+ };
2023
+ onUnmounted(removeFromList);
2024
+ onDeactivated(removeFromList);
2025
+ onActivated(() => {
2026
+ record[name].add(guard);
2027
+ });
2028
+ record[name].add(guard);
2029
+ }
2030
+ /**
2031
+ * Add a navigation guard that triggers whenever the component for the current
2032
+ * location is about to be left. Similar to {@link beforeRouteLeave} but can be
2033
+ * used in any component. The guard is removed when the component is unmounted.
2034
+ *
2035
+ * @param leaveGuard - {@link NavigationGuard}
2036
+ */
2037
+ function onBeforeRouteLeave(leaveGuard) {
2038
+ if ((process.env.NODE_ENV !== 'production') && !getCurrentInstance()) {
2039
+ warn('getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function');
2040
+ return;
2041
+ }
2042
+ const activeRecord = inject(matchedRouteKey,
2043
+ // to avoid warning
2044
+ {}).value;
2045
+ if (!activeRecord) {
2046
+ (process.env.NODE_ENV !== 'production') &&
2047
+ warn('No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?');
2048
+ return;
2049
+ }
2050
+ registerGuard(activeRecord, 'leaveGuards', leaveGuard);
2051
+ }
2052
+ /**
2053
+ * Add a navigation guard that triggers whenever the current location is about
2054
+ * to be updated. Similar to {@link beforeRouteUpdate} but can be used in any
2055
+ * component. The guard is removed when the component is unmounted.
2056
+ *
2057
+ * @param updateGuard - {@link NavigationGuard}
2058
+ */
2059
+ function onBeforeRouteUpdate(updateGuard) {
2060
+ if ((process.env.NODE_ENV !== 'production') && !getCurrentInstance()) {
2061
+ warn('getCurrentInstance() returned null. onBeforeRouteUpdate() must be called at the top of a setup function');
2062
+ return;
2063
+ }
2064
+ const activeRecord = inject(matchedRouteKey,
2065
+ // to avoid warning
2066
+ {}).value;
2067
+ if (!activeRecord) {
2068
+ (process.env.NODE_ENV !== 'production') &&
2069
+ warn('No active route record was found when calling `onBeforeRouteUpdate()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?');
2070
+ return;
2071
+ }
2072
+ registerGuard(activeRecord, 'updateGuards', updateGuard);
2073
+ }
2074
+ function guardToPromiseFn(guard, to, from, record, name, runWithContext = fn => fn()) {
2075
+ // keep a reference to the enterCallbackArray to prevent pushing callbacks if a new navigation took place
2076
+ const enterCallbackArray = record &&
2077
+ // name is defined if record is because of the function overload
2078
+ (record.enterCallbacks[name] = record.enterCallbacks[name] || []);
2079
+ return () => new Promise((resolve, reject) => {
2080
+ const next = (valid) => {
2081
+ if (valid === false) {
2082
+ reject(createRouterError(4 /* ErrorTypes.NAVIGATION_ABORTED */, {
2083
+ from,
2084
+ to,
2085
+ }));
2086
+ }
2087
+ else if (valid instanceof Error) {
2088
+ reject(valid);
2089
+ }
2090
+ else if (isRouteLocation(valid)) {
2091
+ reject(createRouterError(2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */, {
2092
+ from: to,
2093
+ to: valid,
2094
+ }));
2095
+ }
2096
+ else {
2097
+ if (enterCallbackArray &&
2098
+ // since enterCallbackArray is truthy, both record and name also are
2099
+ record.enterCallbacks[name] === enterCallbackArray &&
2100
+ typeof valid === 'function') {
2101
+ enterCallbackArray.push(valid);
2102
+ }
2103
+ resolve();
2104
+ }
2105
+ };
2106
+ // wrapping with Promise.resolve allows it to work with both async and sync guards
2107
+ const guardReturn = runWithContext(() => guard.call(record && record.instances[name], to, from, (process.env.NODE_ENV !== 'production') ? canOnlyBeCalledOnce(next, to, from) : next));
2108
+ let guardCall = Promise.resolve(guardReturn);
2109
+ if (guard.length < 3)
2110
+ guardCall = guardCall.then(next);
2111
+ if ((process.env.NODE_ENV !== 'production') && guard.length > 2) {
2112
+ const message = `The "next" callback was never called inside of ${guard.name ? '"' + guard.name + '"' : ''}:\n${guard.toString()}\n. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
2113
+ if (typeof guardReturn === 'object' && 'then' in guardReturn) {
2114
+ guardCall = guardCall.then(resolvedValue => {
2115
+ // @ts-expect-error: _called is added at canOnlyBeCalledOnce
2116
+ if (!next._called) {
2117
+ warn(message);
2118
+ return Promise.reject(new Error('Invalid navigation guard'));
2119
+ }
2120
+ return resolvedValue;
2121
+ });
2122
+ }
2123
+ else if (guardReturn !== undefined) {
2124
+ // @ts-expect-error: _called is added at canOnlyBeCalledOnce
2125
+ if (!next._called) {
2126
+ warn(message);
2127
+ reject(new Error('Invalid navigation guard'));
2128
+ return;
2129
+ }
2130
+ }
2131
+ }
2132
+ guardCall.catch(err => reject(err));
2133
+ });
2134
+ }
2135
+ function canOnlyBeCalledOnce(next, to, from) {
2136
+ let called = 0;
2137
+ return function () {
2138
+ if (called++ === 1)
2139
+ warn(`The "next" callback was called more than once in one navigation guard when going from "${from.fullPath}" to "${to.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`);
2140
+ // @ts-expect-error: we put it in the original one because it's easier to check
2141
+ next._called = true;
2142
+ if (called === 1)
2143
+ next.apply(null, arguments);
2144
+ };
2145
+ }
2146
+ function extractComponentsGuards(matched, guardType, to, from, runWithContext = fn => fn()) {
2147
+ const guards = [];
2148
+ for (const record of matched) {
2149
+ if ((process.env.NODE_ENV !== 'production') && !record.components && !record.children.length) {
2150
+ warn(`Record with path "${record.path}" is either missing a "component(s)"` +
2151
+ ` or "children" property.`);
2152
+ }
2153
+ for (const name in record.components) {
2154
+ let rawComponent = record.components[name];
2155
+ if ((process.env.NODE_ENV !== 'production')) {
2156
+ if (!rawComponent ||
2157
+ (typeof rawComponent !== 'object' &&
2158
+ typeof rawComponent !== 'function')) {
2159
+ warn(`Component "${name}" in record with path "${record.path}" is not` +
2160
+ ` a valid component. Received "${String(rawComponent)}".`);
2161
+ // throw to ensure we stop here but warn to ensure the message isn't
2162
+ // missed by the user
2163
+ throw new Error('Invalid route component');
2164
+ }
2165
+ else if ('then' in rawComponent) {
2166
+ // warn if user wrote import('/component.vue') instead of () =>
2167
+ // import('./component.vue')
2168
+ warn(`Component "${name}" in record with path "${record.path}" is a ` +
2169
+ `Promise instead of a function that returns a Promise. Did you ` +
2170
+ `write "import('./MyPage.vue')" instead of ` +
2171
+ `"() => import('./MyPage.vue')" ? This will break in ` +
2172
+ `production if not fixed.`);
2173
+ const promise = rawComponent;
2174
+ rawComponent = () => promise;
2175
+ }
2176
+ else if (rawComponent.__asyncLoader &&
2177
+ // warn only once per component
2178
+ !rawComponent.__warnedDefineAsync) {
2179
+ rawComponent.__warnedDefineAsync = true;
2180
+ warn(`Component "${name}" in record with path "${record.path}" is defined ` +
2181
+ `using "defineAsyncComponent()". ` +
2182
+ `Write "() => import('./MyPage.vue')" instead of ` +
2183
+ `"defineAsyncComponent(() => import('./MyPage.vue'))".`);
2184
+ }
2185
+ }
2186
+ // skip update and leave guards if the route component is not mounted
2187
+ if (guardType !== 'beforeRouteEnter' && !record.instances[name])
2188
+ continue;
2189
+ if (isRouteComponent(rawComponent)) {
2190
+ // __vccOpts is added by vue-class-component and contain the regular options
2191
+ const options = rawComponent.__vccOpts || rawComponent;
2192
+ const guard = options[guardType];
2193
+ guard &&
2194
+ guards.push(guardToPromiseFn(guard, to, from, record, name, runWithContext));
2195
+ }
2196
+ else {
2197
+ // start requesting the chunk already
2198
+ let componentPromise = rawComponent();
2199
+ if ((process.env.NODE_ENV !== 'production') && !('catch' in componentPromise)) {
2200
+ warn(`Component "${name}" in record with path "${record.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`);
2201
+ componentPromise = Promise.resolve(componentPromise);
2202
+ }
2203
+ guards.push(() => componentPromise.then(resolved => {
2204
+ if (!resolved)
2205
+ throw new Error(`Couldn't resolve component "${name}" at "${record.path}"`);
2206
+ const resolvedComponent = isESModule(resolved)
2207
+ ? resolved.default
2208
+ : resolved;
2209
+ // keep the resolved module for plugins like data loaders
2210
+ record.mods[name] = resolved;
2211
+ // replace the function with the resolved component
2212
+ // cannot be null or undefined because we went into the for loop
2213
+ record.components[name] = resolvedComponent;
2214
+ // __vccOpts is added by vue-class-component and contain the regular options
2215
+ const options = resolvedComponent.__vccOpts || resolvedComponent;
2216
+ const guard = options[guardType];
2217
+ return (guard &&
2218
+ guardToPromiseFn(guard, to, from, record, name, runWithContext)());
2219
+ }));
2220
+ }
2221
+ }
2222
+ }
2223
+ return guards;
2224
+ }
2225
+ /**
2226
+ * Ensures a route is loaded, so it can be passed as o prop to `<RouterView>`.
2227
+ *
2228
+ * @param route - resolved route to load
2229
+ */
2230
+ function loadRouteLocation(route) {
2231
+ return route.matched.every(record => record.redirect)
2232
+ ? Promise.reject(new Error('Cannot load a route that redirects.'))
2233
+ : Promise.all(route.matched.map(record => record.components &&
2234
+ Promise.all(Object.keys(record.components).reduce((promises, name) => {
2235
+ const rawComponent = record.components[name];
2236
+ if (typeof rawComponent === 'function' &&
2237
+ !('displayName' in rawComponent)) {
2238
+ promises.push(rawComponent().then(resolved => {
2239
+ if (!resolved)
2240
+ return Promise.reject(new Error(`Couldn't resolve component "${name}" at "${record.path}". Ensure you passed a function that returns a promise.`));
2241
+ const resolvedComponent = isESModule(resolved)
2242
+ ? resolved.default
2243
+ : resolved;
2244
+ // keep the resolved module for plugins like data loaders
2245
+ record.mods[name] = resolved;
2246
+ // replace the function with the resolved component
2247
+ // cannot be null or undefined because we went into the for loop
2248
+ record.components[name] = resolvedComponent;
2249
+ return;
2250
+ }));
2251
+ }
2252
+ return promises;
2253
+ }, [])))).then(() => route);
2254
+ }
2255
+
2256
+ // TODO: we could allow currentRoute as a prop to expose `isActive` and
2257
+ // `isExactActive` behavior should go through an RFC
2258
+ /**
2259
+ * Returns the internal behavior of a {@link RouterLink} without the rendering part.
2260
+ *
2261
+ * @param props - a `to` location and an optional `replace` flag
2262
+ */
2263
+ function useLink(props) {
2264
+ const router = inject(routerKey);
2265
+ const currentRoute = inject(routeLocationKey);
2266
+ let hasPrevious = false;
2267
+ let previousTo = null;
2268
+ const route = computed(() => {
2269
+ const to = unref(props.to);
2270
+ if ((process.env.NODE_ENV !== 'production') && (!hasPrevious || to !== previousTo)) {
2271
+ if (!isRouteLocation(to)) {
2272
+ if (hasPrevious) {
2273
+ warn(`Invalid value for prop "to" in useLink()\n- to:`, to, `\n- previous to:`, previousTo, `\n- props:`, props);
2274
+ }
2275
+ else {
2276
+ warn(`Invalid value for prop "to" in useLink()\n- to:`, to, `\n- props:`, props);
2277
+ }
2278
+ }
2279
+ previousTo = to;
2280
+ hasPrevious = true;
2281
+ }
2282
+ return router.resolve(to);
2283
+ });
2284
+ const activeRecordIndex = computed(() => {
2285
+ const { matched } = route.value;
2286
+ const { length } = matched;
2287
+ const routeMatched = matched[length - 1];
2288
+ const currentMatched = currentRoute.matched;
2289
+ if (!routeMatched || !currentMatched.length)
2290
+ return -1;
2291
+ const index = currentMatched.findIndex(isSameRouteRecord.bind(null, routeMatched));
2292
+ if (index > -1)
2293
+ return index;
2294
+ // possible parent record
2295
+ const parentRecordPath = getOriginalPath(matched[length - 2]);
2296
+ return (
2297
+ // we are dealing with nested routes
2298
+ length > 1 &&
2299
+ // if the parent and matched route have the same path, this link is
2300
+ // referring to the empty child. Or we currently are on a different
2301
+ // child of the same parent
2302
+ getOriginalPath(routeMatched) === parentRecordPath &&
2303
+ // avoid comparing the child with its parent
2304
+ currentMatched[currentMatched.length - 1].path !== parentRecordPath
2305
+ ? currentMatched.findIndex(isSameRouteRecord.bind(null, matched[length - 2]))
2306
+ : index);
2307
+ });
2308
+ const isActive = computed(() => activeRecordIndex.value > -1 &&
2309
+ includesParams(currentRoute.params, route.value.params));
2310
+ const isExactActive = computed(() => activeRecordIndex.value > -1 &&
2311
+ activeRecordIndex.value === currentRoute.matched.length - 1 &&
2312
+ isSameRouteLocationParams(currentRoute.params, route.value.params));
2313
+ function navigate(e = {}) {
2314
+ if (guardEvent(e)) {
2315
+ const p = router[unref(props.replace) ? 'replace' : 'push'](unref(props.to)
2316
+ // avoid uncaught errors are they are logged anyway
2317
+ ).catch(noop);
2318
+ if (props.viewTransition &&
2319
+ typeof document !== 'undefined' &&
2320
+ 'startViewTransition' in document) {
2321
+ document.startViewTransition(() => p);
2322
+ }
2323
+ return p;
2324
+ }
2325
+ return Promise.resolve();
2326
+ }
2327
+ // devtools only
2328
+ if (((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) && isBrowser) {
2329
+ const instance = getCurrentInstance();
2330
+ if (instance) {
2331
+ const linkContextDevtools = {
2332
+ route: route.value,
2333
+ isActive: isActive.value,
2334
+ isExactActive: isExactActive.value,
2335
+ error: null,
2336
+ };
2337
+ // @ts-expect-error: this is internal
2338
+ instance.__vrl_devtools = instance.__vrl_devtools || [];
2339
+ // @ts-expect-error: this is internal
2340
+ instance.__vrl_devtools.push(linkContextDevtools);
2341
+ watchEffect(() => {
2342
+ linkContextDevtools.route = route.value;
2343
+ linkContextDevtools.isActive = isActive.value;
2344
+ linkContextDevtools.isExactActive = isExactActive.value;
2345
+ linkContextDevtools.error = isRouteLocation(unref(props.to))
2346
+ ? null
2347
+ : 'Invalid "to" value';
2348
+ }, { flush: 'post' });
2349
+ }
2350
+ }
2351
+ /**
2352
+ * NOTE: update {@link _RouterLinkI}'s `$slots` type when updating this
2353
+ */
2354
+ return {
2355
+ route,
2356
+ href: computed(() => route.value.href),
2357
+ isActive,
2358
+ isExactActive,
2359
+ navigate,
2360
+ };
2361
+ }
2362
+ function preferSingleVNode(vnodes) {
2363
+ return vnodes.length === 1 ? vnodes[0] : vnodes;
2364
+ }
2365
+ const RouterLinkImpl = /*#__PURE__*/ defineComponent({
2366
+ name: 'RouterLink',
2367
+ compatConfig: { MODE: 3 },
2368
+ props: {
2369
+ to: {
2370
+ type: [String, Object],
2371
+ required: true,
2372
+ },
2373
+ replace: Boolean,
2374
+ activeClass: String,
2375
+ // inactiveClass: String,
2376
+ exactActiveClass: String,
2377
+ custom: Boolean,
2378
+ ariaCurrentValue: {
2379
+ type: String,
2380
+ default: 'page',
2381
+ },
2382
+ viewTransition: Boolean,
2383
+ },
2384
+ useLink,
2385
+ setup(props, { slots }) {
2386
+ const link = reactive(useLink(props));
2387
+ const { options } = inject(routerKey);
2388
+ const elClass = computed(() => ({
2389
+ [getLinkClass(props.activeClass, options.linkActiveClass, 'router-link-active')]: link.isActive,
2390
+ // [getLinkClass(
2391
+ // props.inactiveClass,
2392
+ // options.linkInactiveClass,
2393
+ // 'router-link-inactive'
2394
+ // )]: !link.isExactActive,
2395
+ [getLinkClass(props.exactActiveClass, options.linkExactActiveClass, 'router-link-exact-active')]: link.isExactActive,
2396
+ }));
2397
+ return () => {
2398
+ const children = slots.default && preferSingleVNode(slots.default(link));
2399
+ return props.custom
2400
+ ? children
2401
+ : h('a', {
2402
+ 'aria-current': link.isExactActive
2403
+ ? props.ariaCurrentValue
2404
+ : null,
2405
+ href: link.href,
2406
+ // this would override user added attrs but Vue will still add
2407
+ // the listener, so we end up triggering both
2408
+ onClick: link.navigate,
2409
+ class: elClass.value,
2410
+ }, children);
2411
+ };
2412
+ },
2413
+ });
2414
+ // export the public type for h/tsx inference
2415
+ // also to avoid inline import() in generated d.ts files
2416
+ /**
2417
+ * Component to render a link that triggers a navigation on click.
2418
+ */
2419
+ const RouterLink = RouterLinkImpl;
2420
+ function guardEvent(e) {
2421
+ // don't redirect with control keys
2422
+ if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)
2423
+ return;
2424
+ // don't redirect when preventDefault called
2425
+ if (e.defaultPrevented)
2426
+ return;
2427
+ // don't redirect on right click
2428
+ if (e.button !== undefined && e.button !== 0)
2429
+ return;
2430
+ // don't redirect if `target="_blank"`
2431
+ // @ts-expect-error getAttribute does exist
2432
+ if (e.currentTarget && e.currentTarget.getAttribute) {
2433
+ // @ts-expect-error getAttribute exists
2434
+ const target = e.currentTarget.getAttribute('target');
2435
+ if (/\b_blank\b/i.test(target))
2436
+ return;
2437
+ }
2438
+ // this may be a Weex event which doesn't have this method
2439
+ if (e.preventDefault)
2440
+ e.preventDefault();
2441
+ return true;
2442
+ }
2443
+ function includesParams(outer, inner) {
2444
+ for (const key in inner) {
2445
+ const innerValue = inner[key];
2446
+ const outerValue = outer[key];
2447
+ if (typeof innerValue === 'string') {
2448
+ if (innerValue !== outerValue)
2449
+ return false;
2450
+ }
2451
+ else {
2452
+ if (!isArray(outerValue) ||
2453
+ outerValue.length !== innerValue.length ||
2454
+ innerValue.some((value, i) => value !== outerValue[i]))
2455
+ return false;
2456
+ }
2457
+ }
2458
+ return true;
2459
+ }
2460
+ /**
2461
+ * Get the original path value of a record by following its aliasOf
2462
+ * @param record
2463
+ */
2464
+ function getOriginalPath(record) {
2465
+ return record ? (record.aliasOf ? record.aliasOf.path : record.path) : '';
2466
+ }
2467
+ /**
2468
+ * Utility class to get the active class based on defaults.
2469
+ * @param propClass
2470
+ * @param globalClass
2471
+ * @param defaultClass
2472
+ */
2473
+ const getLinkClass = (propClass, globalClass, defaultClass) => propClass != null
2474
+ ? propClass
2475
+ : globalClass != null
2476
+ ? globalClass
2477
+ : defaultClass;
2478
+
2479
+ const RouterViewImpl = /*#__PURE__*/ defineComponent({
2480
+ name: 'RouterView',
2481
+ // #674 we manually inherit them
2482
+ inheritAttrs: false,
2483
+ props: {
2484
+ name: {
2485
+ type: String,
2486
+ default: 'default',
2487
+ },
2488
+ route: Object,
2489
+ },
2490
+ // Better compat for @vue/compat users
2491
+ // https://github.com/vuejs/router/issues/1315
2492
+ compatConfig: { MODE: 3 },
2493
+ setup(props, { attrs, slots }) {
2494
+ (process.env.NODE_ENV !== 'production') && warnDeprecatedUsage();
2495
+ const injectedRoute = inject(routerViewLocationKey);
2496
+ const routeToDisplay = computed(() => props.route || injectedRoute.value);
2497
+ const injectedDepth = inject(viewDepthKey, 0);
2498
+ // The depth changes based on empty components option, which allows passthrough routes e.g. routes with children
2499
+ // that are used to reuse the `path` property
2500
+ const depth = computed(() => {
2501
+ let initialDepth = unref(injectedDepth);
2502
+ const { matched } = routeToDisplay.value;
2503
+ let matchedRoute;
2504
+ while ((matchedRoute = matched[initialDepth]) &&
2505
+ !matchedRoute.components) {
2506
+ initialDepth++;
2507
+ }
2508
+ return initialDepth;
2509
+ });
2510
+ const matchedRouteRef = computed(() => routeToDisplay.value.matched[depth.value]);
2511
+ provide(viewDepthKey, computed(() => depth.value + 1));
2512
+ provide(matchedRouteKey, matchedRouteRef);
2513
+ provide(routerViewLocationKey, routeToDisplay);
2514
+ const viewRef = ref();
2515
+ // watch at the same time the component instance, the route record we are
2516
+ // rendering, and the name
2517
+ watch(() => [viewRef.value, matchedRouteRef.value, props.name], ([instance, to, name], [oldInstance, from, oldName]) => {
2518
+ // copy reused instances
2519
+ if (to) {
2520
+ // this will update the instance for new instances as well as reused
2521
+ // instances when navigating to a new route
2522
+ to.instances[name] = instance;
2523
+ // the component instance is reused for a different route or name, so
2524
+ // we copy any saved update or leave guards. With async setup, the
2525
+ // mounting component will mount before the matchedRoute changes,
2526
+ // making instance === oldInstance, so we check if guards have been
2527
+ // added before. This works because we remove guards when
2528
+ // unmounting/deactivating components
2529
+ if (from && from !== to && instance && instance === oldInstance) {
2530
+ if (!to.leaveGuards.size) {
2531
+ to.leaveGuards = from.leaveGuards;
2532
+ }
2533
+ if (!to.updateGuards.size) {
2534
+ to.updateGuards = from.updateGuards;
2535
+ }
2536
+ }
2537
+ }
2538
+ // trigger beforeRouteEnter next callbacks
2539
+ if (instance &&
2540
+ to &&
2541
+ // if there is no instance but to and from are the same this might be
2542
+ // the first visit
2543
+ (!from || !isSameRouteRecord(to, from) || !oldInstance)) {
2544
+ (to.enterCallbacks[name] || []).forEach(callback => callback(instance));
2545
+ }
2546
+ }, { flush: 'post' });
2547
+ return () => {
2548
+ const route = routeToDisplay.value;
2549
+ // we need the value at the time we render because when we unmount, we
2550
+ // navigated to a different location so the value is different
2551
+ const currentName = props.name;
2552
+ const matchedRoute = matchedRouteRef.value;
2553
+ const ViewComponent = matchedRoute && matchedRoute.components[currentName];
2554
+ if (!ViewComponent) {
2555
+ return normalizeSlot(slots.default, { Component: ViewComponent, route });
2556
+ }
2557
+ // props from route configuration
2558
+ const routePropsOption = matchedRoute.props[currentName];
2559
+ const routeProps = routePropsOption
2560
+ ? routePropsOption === true
2561
+ ? route.params
2562
+ : typeof routePropsOption === 'function'
2563
+ ? routePropsOption(route)
2564
+ : routePropsOption
2565
+ : null;
2566
+ const onVnodeUnmounted = vnode => {
2567
+ // remove the instance reference to prevent leak
2568
+ if (vnode.component.isUnmounted) {
2569
+ matchedRoute.instances[currentName] = null;
2570
+ }
2571
+ };
2572
+ const component = h(ViewComponent, assign({}, routeProps, attrs, {
2573
+ onVnodeUnmounted,
2574
+ ref: viewRef,
2575
+ }));
2576
+ if (((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) &&
2577
+ isBrowser &&
2578
+ component.ref) {
2579
+ // TODO: can display if it's an alias, its props
2580
+ const info = {
2581
+ depth: depth.value,
2582
+ name: matchedRoute.name,
2583
+ path: matchedRoute.path,
2584
+ meta: matchedRoute.meta,
2585
+ };
2586
+ const internalInstances = isArray(component.ref)
2587
+ ? component.ref.map(r => r.i)
2588
+ : [component.ref.i];
2589
+ internalInstances.forEach(instance => {
2590
+ // @ts-expect-error
2591
+ instance.__vrv_devtools = info;
2592
+ });
2593
+ }
2594
+ return (
2595
+ // pass the vnode to the slot as a prop.
2596
+ // h and <component :is="..."> both accept vnodes
2597
+ normalizeSlot(slots.default, { Component: component, route }) ||
2598
+ component);
2599
+ };
2600
+ },
2601
+ });
2602
+ function normalizeSlot(slot, data) {
2603
+ if (!slot)
2604
+ return null;
2605
+ const slotContent = slot(data);
2606
+ return slotContent.length === 1 ? slotContent[0] : slotContent;
2607
+ }
2608
+ // export the public type for h/tsx inference
2609
+ // also to avoid inline import() in generated d.ts files
2610
+ /**
2611
+ * Component to display the current route the user is at.
2612
+ */
2613
+ const RouterView = RouterViewImpl;
2614
+ // warn against deprecated usage with <transition> & <keep-alive>
2615
+ // due to functional component being no longer eager in Vue 3
2616
+ function warnDeprecatedUsage() {
2617
+ const instance = getCurrentInstance();
2618
+ const parentName = instance.parent && instance.parent.type.name;
2619
+ const parentSubTreeType = instance.parent && instance.parent.subTree && instance.parent.subTree.type;
2620
+ if (parentName &&
2621
+ (parentName === 'KeepAlive' || parentName.includes('Transition')) &&
2622
+ typeof parentSubTreeType === 'object' &&
2623
+ parentSubTreeType.name === 'RouterView') {
2624
+ const comp = parentName === 'KeepAlive' ? 'keep-alive' : 'transition';
2625
+ warn(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.\n` +
2626
+ `Use slot props instead:\n\n` +
2627
+ `<router-view v-slot="{ Component }">\n` +
2628
+ ` <${comp}>\n` +
2629
+ ` <component :is="Component" />\n` +
2630
+ ` </${comp}>\n` +
2631
+ `</router-view>`);
2632
+ }
2633
+ }
2634
+
2635
+ /**
2636
+ * Copies a route location and removes any problematic properties that cannot be shown in devtools (e.g. Vue instances).
2637
+ *
2638
+ * @param routeLocation - routeLocation to format
2639
+ * @param tooltip - optional tooltip
2640
+ * @returns a copy of the routeLocation
2641
+ */
2642
+ function formatRouteLocation(routeLocation, tooltip) {
2643
+ const copy = assign({}, routeLocation, {
2644
+ // remove variables that can contain vue instances
2645
+ matched: routeLocation.matched.map(matched => omit(matched, ['instances', 'children', 'aliasOf'])),
2646
+ });
2647
+ return {
2648
+ _custom: {
2649
+ type: null,
2650
+ readOnly: true,
2651
+ display: routeLocation.fullPath,
2652
+ tooltip,
2653
+ value: copy,
2654
+ },
2655
+ };
2656
+ }
2657
+ function formatDisplay(display) {
2658
+ return {
2659
+ _custom: {
2660
+ display,
2661
+ },
2662
+ };
2663
+ }
2664
+ // to support multiple router instances
2665
+ let routerId = 0;
2666
+ function addDevtools(app, router, matcher) {
2667
+ // Take over router.beforeEach and afterEach
2668
+ // make sure we are not registering the devtool twice
2669
+ if (router.__hasDevtools)
2670
+ return;
2671
+ router.__hasDevtools = true;
2672
+ // increment to support multiple router instances
2673
+ const id = routerId++;
2674
+ setupDevtoolsPlugin({
2675
+ id: 'org.vuejs.router' + (id ? '.' + id : ''),
2676
+ label: 'Vue Router',
2677
+ packageName: 'vue-router',
2678
+ homepage: 'https://router.vuejs.org',
2679
+ logo: 'https://router.vuejs.org/logo.png',
2680
+ componentStateTypes: ['Routing'],
2681
+ app,
2682
+ }, api => {
2683
+ if (typeof api.now !== 'function') {
2684
+ console.warn('[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.');
2685
+ }
2686
+ // display state added by the router
2687
+ api.on.inspectComponent((payload, ctx) => {
2688
+ if (payload.instanceData) {
2689
+ payload.instanceData.state.push({
2690
+ type: 'Routing',
2691
+ key: '$route',
2692
+ editable: false,
2693
+ value: formatRouteLocation(router.currentRoute.value, 'Current Route'),
2694
+ });
2695
+ }
2696
+ });
2697
+ // mark router-link as active and display tags on router views
2698
+ api.on.visitComponentTree(({ treeNode: node, componentInstance }) => {
2699
+ if (componentInstance.__vrv_devtools) {
2700
+ const info = componentInstance.__vrv_devtools;
2701
+ node.tags.push({
2702
+ label: (info.name ? `${info.name.toString()}: ` : '') + info.path,
2703
+ textColor: 0,
2704
+ tooltip: 'This component is rendered by &lt;router-view&gt;',
2705
+ backgroundColor: PINK_500,
2706
+ });
2707
+ }
2708
+ // if multiple useLink are used
2709
+ if (isArray(componentInstance.__vrl_devtools)) {
2710
+ componentInstance.__devtoolsApi = api;
2711
+ componentInstance.__vrl_devtools.forEach(devtoolsData => {
2712
+ let label = devtoolsData.route.path;
2713
+ let backgroundColor = ORANGE_400;
2714
+ let tooltip = '';
2715
+ let textColor = 0;
2716
+ if (devtoolsData.error) {
2717
+ label = devtoolsData.error;
2718
+ backgroundColor = RED_100;
2719
+ textColor = RED_700;
2720
+ }
2721
+ else if (devtoolsData.isExactActive) {
2722
+ backgroundColor = LIME_500;
2723
+ tooltip = 'This is exactly active';
2724
+ }
2725
+ else if (devtoolsData.isActive) {
2726
+ backgroundColor = BLUE_600;
2727
+ tooltip = 'This link is active';
2728
+ }
2729
+ node.tags.push({
2730
+ label,
2731
+ textColor,
2732
+ tooltip,
2733
+ backgroundColor,
2734
+ });
2735
+ });
2736
+ }
2737
+ });
2738
+ watch(router.currentRoute, () => {
2739
+ // refresh active state
2740
+ refreshRoutesView();
2741
+ api.notifyComponentUpdate();
2742
+ api.sendInspectorTree(routerInspectorId);
2743
+ api.sendInspectorState(routerInspectorId);
2744
+ });
2745
+ const navigationsLayerId = 'router:navigations:' + id;
2746
+ api.addTimelineLayer({
2747
+ id: navigationsLayerId,
2748
+ label: `Router${id ? ' ' + id : ''} Navigations`,
2749
+ color: 0x40a8c4,
2750
+ });
2751
+ // const errorsLayerId = 'router:errors'
2752
+ // api.addTimelineLayer({
2753
+ // id: errorsLayerId,
2754
+ // label: 'Router Errors',
2755
+ // color: 0xea5455,
2756
+ // })
2757
+ router.onError((error, to) => {
2758
+ api.addTimelineEvent({
2759
+ layerId: navigationsLayerId,
2760
+ event: {
2761
+ title: 'Error during Navigation',
2762
+ subtitle: to.fullPath,
2763
+ logType: 'error',
2764
+ time: api.now(),
2765
+ data: { error },
2766
+ groupId: to.meta.__navigationId,
2767
+ },
2768
+ });
2769
+ });
2770
+ // attached to `meta` and used to group events
2771
+ let navigationId = 0;
2772
+ router.beforeEach((to, from) => {
2773
+ const data = {
2774
+ guard: formatDisplay('beforeEach'),
2775
+ from: formatRouteLocation(from, 'Current Location during this navigation'),
2776
+ to: formatRouteLocation(to, 'Target location'),
2777
+ };
2778
+ // Used to group navigations together, hide from devtools
2779
+ Object.defineProperty(to.meta, '__navigationId', {
2780
+ value: navigationId++,
2781
+ });
2782
+ api.addTimelineEvent({
2783
+ layerId: navigationsLayerId,
2784
+ event: {
2785
+ time: api.now(),
2786
+ title: 'Start of navigation',
2787
+ subtitle: to.fullPath,
2788
+ data,
2789
+ groupId: to.meta.__navigationId,
2790
+ },
2791
+ });
2792
+ });
2793
+ router.afterEach((to, from, failure) => {
2794
+ const data = {
2795
+ guard: formatDisplay('afterEach'),
2796
+ };
2797
+ if (failure) {
2798
+ data.failure = {
2799
+ _custom: {
2800
+ type: Error,
2801
+ readOnly: true,
2802
+ display: failure ? failure.message : '',
2803
+ tooltip: 'Navigation Failure',
2804
+ value: failure,
2805
+ },
2806
+ };
2807
+ data.status = formatDisplay('❌');
2808
+ }
2809
+ else {
2810
+ data.status = formatDisplay('✅');
2811
+ }
2812
+ // we set here to have the right order
2813
+ data.from = formatRouteLocation(from, 'Current Location during this navigation');
2814
+ data.to = formatRouteLocation(to, 'Target location');
2815
+ api.addTimelineEvent({
2816
+ layerId: navigationsLayerId,
2817
+ event: {
2818
+ title: 'End of navigation',
2819
+ subtitle: to.fullPath,
2820
+ time: api.now(),
2821
+ data,
2822
+ logType: failure ? 'warning' : 'default',
2823
+ groupId: to.meta.__navigationId,
2824
+ },
2825
+ });
2826
+ });
2827
+ /**
2828
+ * Inspector of Existing routes
2829
+ */
2830
+ const routerInspectorId = 'router-inspector:' + id;
2831
+ api.addInspector({
2832
+ id: routerInspectorId,
2833
+ label: 'Routes' + (id ? ' ' + id : ''),
2834
+ icon: 'book',
2835
+ treeFilterPlaceholder: 'Search routes',
2836
+ });
2837
+ function refreshRoutesView() {
2838
+ // the routes view isn't active
2839
+ if (!activeRoutesPayload)
2840
+ return;
2841
+ const payload = activeRoutesPayload;
2842
+ // children routes will appear as nested
2843
+ let routes = matcher.getRoutes().filter(route => !route.parent ||
2844
+ // these routes have a parent with no component which will not appear in the view
2845
+ // therefore we still need to include them
2846
+ !route.parent.record.components);
2847
+ // reset match state to false
2848
+ routes.forEach(resetMatchStateOnRouteRecord);
2849
+ // apply a match state if there is a payload
2850
+ if (payload.filter) {
2851
+ routes = routes.filter(route =>
2852
+ // save matches state based on the payload
2853
+ isRouteMatching(route, payload.filter.toLowerCase()));
2854
+ }
2855
+ // mark active routes
2856
+ routes.forEach(route => markRouteRecordActive(route, router.currentRoute.value));
2857
+ payload.rootNodes = routes.map(formatRouteRecordForInspector);
2858
+ }
2859
+ let activeRoutesPayload;
2860
+ api.on.getInspectorTree(payload => {
2861
+ activeRoutesPayload = payload;
2862
+ if (payload.app === app && payload.inspectorId === routerInspectorId) {
2863
+ refreshRoutesView();
2864
+ }
2865
+ });
2866
+ /**
2867
+ * Display information about the currently selected route record
2868
+ */
2869
+ api.on.getInspectorState(payload => {
2870
+ if (payload.app === app && payload.inspectorId === routerInspectorId) {
2871
+ const routes = matcher.getRoutes();
2872
+ const route = routes.find(route => route.record.__vd_id === payload.nodeId);
2873
+ if (route) {
2874
+ payload.state = {
2875
+ options: formatRouteRecordMatcherForStateInspector(route),
2876
+ };
2877
+ }
2878
+ }
2879
+ });
2880
+ api.sendInspectorTree(routerInspectorId);
2881
+ api.sendInspectorState(routerInspectorId);
2882
+ });
2883
+ }
2884
+ function modifierForKey(key) {
2885
+ if (key.optional) {
2886
+ return key.repeatable ? '*' : '?';
2887
+ }
2888
+ else {
2889
+ return key.repeatable ? '+' : '';
2890
+ }
2891
+ }
2892
+ function formatRouteRecordMatcherForStateInspector(route) {
2893
+ const { record } = route;
2894
+ const fields = [
2895
+ { editable: false, key: 'path', value: record.path },
2896
+ ];
2897
+ if (record.name != null) {
2898
+ fields.push({
2899
+ editable: false,
2900
+ key: 'name',
2901
+ value: record.name,
2902
+ });
2903
+ }
2904
+ fields.push({ editable: false, key: 'regexp', value: route.re });
2905
+ if (route.keys.length) {
2906
+ fields.push({
2907
+ editable: false,
2908
+ key: 'keys',
2909
+ value: {
2910
+ _custom: {
2911
+ type: null,
2912
+ readOnly: true,
2913
+ display: route.keys
2914
+ .map(key => `${key.name}${modifierForKey(key)}`)
2915
+ .join(' '),
2916
+ tooltip: 'Param keys',
2917
+ value: route.keys,
2918
+ },
2919
+ },
2920
+ });
2921
+ }
2922
+ if (record.redirect != null) {
2923
+ fields.push({
2924
+ editable: false,
2925
+ key: 'redirect',
2926
+ value: record.redirect,
2927
+ });
2928
+ }
2929
+ if (route.alias.length) {
2930
+ fields.push({
2931
+ editable: false,
2932
+ key: 'aliases',
2933
+ value: route.alias.map(alias => alias.record.path),
2934
+ });
2935
+ }
2936
+ if (Object.keys(route.record.meta).length) {
2937
+ fields.push({
2938
+ editable: false,
2939
+ key: 'meta',
2940
+ value: route.record.meta,
2941
+ });
2942
+ }
2943
+ fields.push({
2944
+ key: 'score',
2945
+ editable: false,
2946
+ value: {
2947
+ _custom: {
2948
+ type: null,
2949
+ readOnly: true,
2950
+ display: route.score.map(score => score.join(', ')).join(' | '),
2951
+ tooltip: 'Score used to sort routes',
2952
+ value: route.score,
2953
+ },
2954
+ },
2955
+ });
2956
+ return fields;
2957
+ }
2958
+ /**
2959
+ * Extracted from tailwind palette
2960
+ */
2961
+ const PINK_500 = 0xec4899;
2962
+ const BLUE_600 = 0x2563eb;
2963
+ const LIME_500 = 0x84cc16;
2964
+ const CYAN_400 = 0x22d3ee;
2965
+ const ORANGE_400 = 0xfb923c;
2966
+ // const GRAY_100 = 0xf4f4f5
2967
+ const DARK = 0x666666;
2968
+ const RED_100 = 0xfee2e2;
2969
+ const RED_700 = 0xb91c1c;
2970
+ function formatRouteRecordForInspector(route) {
2971
+ const tags = [];
2972
+ const { record } = route;
2973
+ if (record.name != null) {
2974
+ tags.push({
2975
+ label: String(record.name),
2976
+ textColor: 0,
2977
+ backgroundColor: CYAN_400,
2978
+ });
2979
+ }
2980
+ if (record.aliasOf) {
2981
+ tags.push({
2982
+ label: 'alias',
2983
+ textColor: 0,
2984
+ backgroundColor: ORANGE_400,
2985
+ });
2986
+ }
2987
+ if (route.__vd_match) {
2988
+ tags.push({
2989
+ label: 'matches',
2990
+ textColor: 0,
2991
+ backgroundColor: PINK_500,
2992
+ });
2993
+ }
2994
+ if (route.__vd_exactActive) {
2995
+ tags.push({
2996
+ label: 'exact',
2997
+ textColor: 0,
2998
+ backgroundColor: LIME_500,
2999
+ });
3000
+ }
3001
+ if (route.__vd_active) {
3002
+ tags.push({
3003
+ label: 'active',
3004
+ textColor: 0,
3005
+ backgroundColor: BLUE_600,
3006
+ });
3007
+ }
3008
+ if (record.redirect) {
3009
+ tags.push({
3010
+ label: typeof record.redirect === 'string'
3011
+ ? `redirect: ${record.redirect}`
3012
+ : 'redirects',
3013
+ textColor: 0xffffff,
3014
+ backgroundColor: DARK,
3015
+ });
3016
+ }
3017
+ // add an id to be able to select it. Using the `path` is not possible because
3018
+ // empty path children would collide with their parents
3019
+ let id = record.__vd_id;
3020
+ if (id == null) {
3021
+ id = String(routeRecordId++);
3022
+ record.__vd_id = id;
3023
+ }
3024
+ return {
3025
+ id,
3026
+ label: record.path,
3027
+ tags,
3028
+ children: route.children.map(formatRouteRecordForInspector),
3029
+ };
3030
+ }
3031
+ // incremental id for route records and inspector state
3032
+ let routeRecordId = 0;
3033
+ const EXTRACT_REGEXP_RE = /^\/(.*)\/([a-z]*)$/;
3034
+ function markRouteRecordActive(route, currentRoute) {
3035
+ // no route will be active if matched is empty
3036
+ // reset the matching state
3037
+ const isExactActive = currentRoute.matched.length &&
3038
+ isSameRouteRecord(currentRoute.matched[currentRoute.matched.length - 1], route.record);
3039
+ route.__vd_exactActive = route.__vd_active = isExactActive;
3040
+ if (!isExactActive) {
3041
+ route.__vd_active = currentRoute.matched.some(match => isSameRouteRecord(match, route.record));
3042
+ }
3043
+ route.children.forEach(childRoute => markRouteRecordActive(childRoute, currentRoute));
3044
+ }
3045
+ function resetMatchStateOnRouteRecord(route) {
3046
+ route.__vd_match = false;
3047
+ route.children.forEach(resetMatchStateOnRouteRecord);
3048
+ }
3049
+ function isRouteMatching(route, filter) {
3050
+ const found = String(route.re).match(EXTRACT_REGEXP_RE);
3051
+ route.__vd_match = false;
3052
+ if (!found || found.length < 3) {
3053
+ return false;
3054
+ }
3055
+ // use a regexp without $ at the end to match nested routes better
3056
+ const nonEndingRE = new RegExp(found[1].replace(/\$$/, ''), found[2]);
3057
+ if (nonEndingRE.test(filter)) {
3058
+ // mark children as matches
3059
+ route.children.forEach(child => isRouteMatching(child, filter));
3060
+ // exception case: `/`
3061
+ if (route.record.path !== '/' || filter === '/') {
3062
+ route.__vd_match = route.re.test(filter);
3063
+ return true;
3064
+ }
3065
+ // hide the / route
3066
+ return false;
3067
+ }
3068
+ const path = route.record.path.toLowerCase();
3069
+ const decodedPath = decode(path);
3070
+ // also allow partial matching on the path
3071
+ if (!filter.startsWith('/') &&
3072
+ (decodedPath.includes(filter) || path.includes(filter)))
3073
+ return true;
3074
+ if (decodedPath.startsWith(filter) || path.startsWith(filter))
3075
+ return true;
3076
+ if (route.record.name && String(route.record.name).includes(filter))
3077
+ return true;
3078
+ return route.children.some(child => isRouteMatching(child, filter));
3079
+ }
3080
+ function omit(obj, keys) {
3081
+ const ret = {};
3082
+ for (const key in obj) {
3083
+ if (!keys.includes(key)) {
3084
+ // @ts-expect-error
3085
+ ret[key] = obj[key];
3086
+ }
3087
+ }
3088
+ return ret;
3089
+ }
3090
+
3091
+ /**
3092
+ * Creates a Router instance that can be used by a Vue app.
3093
+ *
3094
+ * @param options - {@link RouterOptions}
3095
+ */
3096
+ function createRouter(options) {
3097
+ const matcher = createRouterMatcher(options.routes, options);
3098
+ const parseQuery$1 = options.parseQuery || parseQuery;
3099
+ const stringifyQuery$1 = options.stringifyQuery || stringifyQuery;
3100
+ const routerHistory = options.history;
3101
+ if ((process.env.NODE_ENV !== 'production') && !routerHistory)
3102
+ throw new Error('Provide the "history" option when calling "createRouter()":' +
3103
+ ' https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
3104
+ const beforeGuards = useCallbacks();
3105
+ const beforeResolveGuards = useCallbacks();
3106
+ const afterGuards = useCallbacks();
3107
+ const currentRoute = shallowRef(START_LOCATION_NORMALIZED);
3108
+ let pendingLocation = START_LOCATION_NORMALIZED;
3109
+ // leave the scrollRestoration if no scrollBehavior is provided
3110
+ if (isBrowser && options.scrollBehavior && 'scrollRestoration' in history) {
3111
+ history.scrollRestoration = 'manual';
3112
+ }
3113
+ const normalizeParams = applyToParams.bind(null, paramValue => '' + paramValue);
3114
+ const encodeParams = applyToParams.bind(null, encodeParam);
3115
+ const decodeParams =
3116
+ // @ts-expect-error: intentionally avoid the type check
3117
+ applyToParams.bind(null, decode);
3118
+ function addRoute(parentOrRoute, route) {
3119
+ let parent;
3120
+ let record;
3121
+ if (isRouteName(parentOrRoute)) {
3122
+ parent = matcher.getRecordMatcher(parentOrRoute);
3123
+ if ((process.env.NODE_ENV !== 'production') && !parent) {
3124
+ warn(`Parent route "${String(parentOrRoute)}" not found when adding child route`, route);
3125
+ }
3126
+ record = route;
3127
+ }
3128
+ else {
3129
+ record = parentOrRoute;
3130
+ }
3131
+ return matcher.addRoute(record, parent);
3132
+ }
3133
+ function removeRoute(name) {
3134
+ const recordMatcher = matcher.getRecordMatcher(name);
3135
+ if (recordMatcher) {
3136
+ matcher.removeRoute(recordMatcher);
3137
+ }
3138
+ else if ((process.env.NODE_ENV !== 'production')) {
3139
+ warn(`Cannot remove non-existent route "${String(name)}"`);
3140
+ }
3141
+ }
3142
+ function getRoutes() {
3143
+ return matcher.getRoutes().map(routeMatcher => routeMatcher.record);
3144
+ }
3145
+ function hasRoute(name) {
3146
+ return !!matcher.getRecordMatcher(name);
3147
+ }
3148
+ function resolve(rawLocation, currentLocation) {
3149
+ // const resolve: Router['resolve'] = (rawLocation: RouteLocationRaw, currentLocation) => {
3150
+ // const objectLocation = routerLocationAsObject(rawLocation)
3151
+ // we create a copy to modify it later
3152
+ currentLocation = assign({}, currentLocation || currentRoute.value);
3153
+ if (typeof rawLocation === 'string') {
3154
+ const locationNormalized = parseURL(parseQuery$1, rawLocation, currentLocation.path);
3155
+ const matchedRoute = matcher.resolve({ path: locationNormalized.path }, currentLocation);
3156
+ const href = routerHistory.createHref(locationNormalized.fullPath);
3157
+ if ((process.env.NODE_ENV !== 'production')) {
3158
+ if (href.startsWith('//'))
3159
+ warn(`Location "${rawLocation}" resolved to "${href}". A resolved location cannot start with multiple slashes.`);
3160
+ else if (!matchedRoute.matched.length) {
3161
+ warn(`No match found for location with path "${rawLocation}"`);
3162
+ }
3163
+ }
3164
+ // locationNormalized is always a new object
3165
+ return assign(locationNormalized, matchedRoute, {
3166
+ params: decodeParams(matchedRoute.params),
3167
+ hash: decode(locationNormalized.hash),
3168
+ redirectedFrom: undefined,
3169
+ href,
3170
+ });
3171
+ }
3172
+ if ((process.env.NODE_ENV !== 'production') && !isRouteLocation(rawLocation)) {
3173
+ warn(`router.resolve() was passed an invalid location. This will fail in production.\n- Location:`, rawLocation);
3174
+ return resolve({});
3175
+ }
3176
+ let matcherLocation;
3177
+ // path could be relative in object as well
3178
+ if (rawLocation.path != null) {
3179
+ if ((process.env.NODE_ENV !== 'production') &&
3180
+ 'params' in rawLocation &&
3181
+ !('name' in rawLocation) &&
3182
+ // @ts-expect-error: the type is never
3183
+ Object.keys(rawLocation.params).length) {
3184
+ warn(`Path "${rawLocation.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`);
3185
+ }
3186
+ matcherLocation = assign({}, rawLocation, {
3187
+ path: parseURL(parseQuery$1, rawLocation.path, currentLocation.path).path,
3188
+ });
3189
+ }
3190
+ else {
3191
+ // remove any nullish param
3192
+ const targetParams = assign({}, rawLocation.params);
3193
+ for (const key in targetParams) {
3194
+ if (targetParams[key] == null) {
3195
+ delete targetParams[key];
3196
+ }
3197
+ }
3198
+ // pass encoded values to the matcher, so it can produce encoded path and fullPath
3199
+ matcherLocation = assign({}, rawLocation, {
3200
+ params: encodeParams(targetParams),
3201
+ });
3202
+ // current location params are decoded, we need to encode them in case the
3203
+ // matcher merges the params
3204
+ currentLocation.params = encodeParams(currentLocation.params);
3205
+ }
3206
+ const matchedRoute = matcher.resolve(matcherLocation, currentLocation);
3207
+ const hash = rawLocation.hash || '';
3208
+ if ((process.env.NODE_ENV !== 'production') && hash && !hash.startsWith('#')) {
3209
+ warn(`A \`hash\` should always start with the character "#". Replace "${hash}" with "#${hash}".`);
3210
+ }
3211
+ // the matcher might have merged current location params, so
3212
+ // we need to run the decoding again
3213
+ matchedRoute.params = normalizeParams(decodeParams(matchedRoute.params));
3214
+ const fullPath = stringifyURL(stringifyQuery$1, assign({}, rawLocation, {
3215
+ hash: encodeHash(hash),
3216
+ path: matchedRoute.path,
3217
+ }));
3218
+ const href = routerHistory.createHref(fullPath);
3219
+ if ((process.env.NODE_ENV !== 'production')) {
3220
+ if (href.startsWith('//')) {
3221
+ warn(`Location "${rawLocation}" resolved to "${href}". A resolved location cannot start with multiple slashes.`);
3222
+ }
3223
+ else if (!matchedRoute.matched.length) {
3224
+ warn(`No match found for location with path "${rawLocation.path != null ? rawLocation.path : rawLocation}"`);
3225
+ }
3226
+ }
3227
+ return assign({
3228
+ fullPath,
3229
+ // keep the hash encoded so fullPath is effectively path + encodedQuery +
3230
+ // hash
3231
+ hash,
3232
+ query:
3233
+ // if the user is using a custom query lib like qs, we might have
3234
+ // nested objects, so we keep the query as is, meaning it can contain
3235
+ // numbers at `$route.query`, but at the point, the user will have to
3236
+ // use their own type anyway.
3237
+ // https://github.com/vuejs/router/issues/328#issuecomment-649481567
3238
+ stringifyQuery$1 === stringifyQuery
3239
+ ? normalizeQuery(rawLocation.query)
3240
+ : (rawLocation.query || {}),
3241
+ }, matchedRoute, {
3242
+ redirectedFrom: undefined,
3243
+ href,
3244
+ });
3245
+ }
3246
+ function locationAsObject(to) {
3247
+ return typeof to === 'string'
3248
+ ? parseURL(parseQuery$1, to, currentRoute.value.path)
3249
+ : assign({}, to);
3250
+ }
3251
+ function checkCanceledNavigation(to, from) {
3252
+ if (pendingLocation !== to) {
3253
+ return createRouterError(8 /* ErrorTypes.NAVIGATION_CANCELLED */, {
3254
+ from,
3255
+ to,
3256
+ });
3257
+ }
3258
+ }
3259
+ function push(to) {
3260
+ return pushWithRedirect(to);
3261
+ }
3262
+ function replace(to) {
3263
+ return push(assign(locationAsObject(to), { replace: true }));
3264
+ }
3265
+ function handleRedirectRecord(to) {
3266
+ const lastMatched = to.matched[to.matched.length - 1];
3267
+ if (lastMatched && lastMatched.redirect) {
3268
+ const { redirect } = lastMatched;
3269
+ let newTargetLocation = typeof redirect === 'function' ? redirect(to) : redirect;
3270
+ if (typeof newTargetLocation === 'string') {
3271
+ newTargetLocation =
3272
+ newTargetLocation.includes('?') || newTargetLocation.includes('#')
3273
+ ? (newTargetLocation = locationAsObject(newTargetLocation))
3274
+ : // force empty params
3275
+ { path: newTargetLocation };
3276
+ // @ts-expect-error: force empty params when a string is passed to let
3277
+ // the router parse them again
3278
+ newTargetLocation.params = {};
3279
+ }
3280
+ if ((process.env.NODE_ENV !== 'production') &&
3281
+ newTargetLocation.path == null &&
3282
+ !('name' in newTargetLocation)) {
3283
+ warn(`Invalid redirect found:\n${JSON.stringify(newTargetLocation, null, 2)}\n when navigating to "${to.fullPath}". A redirect must contain a name or path. This will break in production.`);
3284
+ throw new Error('Invalid redirect');
3285
+ }
3286
+ return assign({
3287
+ query: to.query,
3288
+ hash: to.hash,
3289
+ // avoid transferring params if the redirect has a path
3290
+ params: newTargetLocation.path != null ? {} : to.params,
3291
+ }, newTargetLocation);
3292
+ }
3293
+ }
3294
+ function pushWithRedirect(to, redirectedFrom) {
3295
+ const targetLocation = (pendingLocation = resolve(to));
3296
+ const from = currentRoute.value;
3297
+ const data = to.state;
3298
+ const force = to.force;
3299
+ // to could be a string where `replace` is a function
3300
+ const replace = to.replace === true;
3301
+ const shouldRedirect = handleRedirectRecord(targetLocation);
3302
+ if (shouldRedirect)
3303
+ return pushWithRedirect(assign(locationAsObject(shouldRedirect), {
3304
+ state: typeof shouldRedirect === 'object'
3305
+ ? assign({}, data, shouldRedirect.state)
3306
+ : data,
3307
+ force,
3308
+ replace,
3309
+ }),
3310
+ // keep original redirectedFrom if it exists
3311
+ redirectedFrom || targetLocation);
3312
+ // if it was a redirect we already called `pushWithRedirect` above
3313
+ const toLocation = targetLocation;
3314
+ toLocation.redirectedFrom = redirectedFrom;
3315
+ let failure;
3316
+ if (!force && isSameRouteLocation(stringifyQuery$1, from, targetLocation)) {
3317
+ failure = createRouterError(16 /* ErrorTypes.NAVIGATION_DUPLICATED */, { to: toLocation, from });
3318
+ // trigger scroll to allow scrolling to the same anchor
3319
+ handleScroll(from, from,
3320
+ // this is a push, the only way for it to be triggered from a
3321
+ // history.listen is with a redirect, which makes it become a push
3322
+ true,
3323
+ // This cannot be the first navigation because the initial location
3324
+ // cannot be manually navigated to
3325
+ false);
3326
+ }
3327
+ return (failure ? Promise.resolve(failure) : navigate(toLocation, from))
3328
+ .catch((error) => isNavigationFailure(error)
3329
+ ? // navigation redirects still mark the router as ready
3330
+ isNavigationFailure(error, 2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */)
3331
+ ? error
3332
+ : markAsReady(error) // also returns the error
3333
+ : // reject any unknown error
3334
+ triggerError(error, toLocation, from))
3335
+ .then((failure) => {
3336
+ if (failure) {
3337
+ if (isNavigationFailure(failure, 2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */)) {
3338
+ if ((process.env.NODE_ENV !== 'production') &&
3339
+ // we are redirecting to the same location we were already at
3340
+ isSameRouteLocation(stringifyQuery$1, resolve(failure.to), toLocation) &&
3341
+ // and we have done it a couple of times
3342
+ redirectedFrom &&
3343
+ // @ts-expect-error: added only in dev
3344
+ (redirectedFrom._count = redirectedFrom._count
3345
+ ? // @ts-expect-error
3346
+ redirectedFrom._count + 1
3347
+ : 1) > 30) {
3348
+ warn(`Detected a possibly infinite redirection in a navigation guard when going from "${from.fullPath}" to "${toLocation.fullPath}". Aborting to avoid a Stack Overflow.\n Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`);
3349
+ return Promise.reject(new Error('Infinite redirect in navigation guard'));
3350
+ }
3351
+ return pushWithRedirect(
3352
+ // keep options
3353
+ assign({
3354
+ // preserve an existing replacement but allow the redirect to override it
3355
+ replace,
3356
+ }, locationAsObject(failure.to), {
3357
+ state: typeof failure.to === 'object'
3358
+ ? assign({}, data, failure.to.state)
3359
+ : data,
3360
+ force,
3361
+ }),
3362
+ // preserve the original redirectedFrom if any
3363
+ redirectedFrom || toLocation);
3364
+ }
3365
+ }
3366
+ else {
3367
+ // if we fail we don't finalize the navigation
3368
+ failure = finalizeNavigation(toLocation, from, true, replace, data);
3369
+ }
3370
+ triggerAfterEach(toLocation, from, failure);
3371
+ return failure;
3372
+ });
3373
+ }
3374
+ /**
3375
+ * Helper to reject and skip all navigation guards if a new navigation happened
3376
+ * @param to
3377
+ * @param from
3378
+ */
3379
+ function checkCanceledNavigationAndReject(to, from) {
3380
+ const error = checkCanceledNavigation(to, from);
3381
+ return error ? Promise.reject(error) : Promise.resolve();
3382
+ }
3383
+ function runWithContext(fn) {
3384
+ const app = installedApps.values().next().value;
3385
+ // support Vue < 3.3
3386
+ return app && typeof app.runWithContext === 'function'
3387
+ ? app.runWithContext(fn)
3388
+ : fn();
3389
+ }
3390
+ // TODO: refactor the whole before guards by internally using router.beforeEach
3391
+ function navigate(to, from) {
3392
+ let guards;
3393
+ const [leavingRecords, updatingRecords, enteringRecords] = extractChangingRecords(to, from);
3394
+ // all components here have been resolved once because we are leaving
3395
+ guards = extractComponentsGuards(leavingRecords.reverse(), 'beforeRouteLeave', to, from);
3396
+ // leavingRecords is already reversed
3397
+ for (const record of leavingRecords) {
3398
+ record.leaveGuards.forEach(guard => {
3399
+ guards.push(guardToPromiseFn(guard, to, from));
3400
+ });
3401
+ }
3402
+ const canceledNavigationCheck = checkCanceledNavigationAndReject.bind(null, to, from);
3403
+ guards.push(canceledNavigationCheck);
3404
+ // run the queue of per route beforeRouteLeave guards
3405
+ return (runGuardQueue(guards)
3406
+ .then(() => {
3407
+ // check global guards beforeEach
3408
+ guards = [];
3409
+ for (const guard of beforeGuards.list()) {
3410
+ guards.push(guardToPromiseFn(guard, to, from));
3411
+ }
3412
+ guards.push(canceledNavigationCheck);
3413
+ return runGuardQueue(guards);
3414
+ })
3415
+ .then(() => {
3416
+ // check in components beforeRouteUpdate
3417
+ guards = extractComponentsGuards(updatingRecords, 'beforeRouteUpdate', to, from);
3418
+ for (const record of updatingRecords) {
3419
+ record.updateGuards.forEach(guard => {
3420
+ guards.push(guardToPromiseFn(guard, to, from));
3421
+ });
3422
+ }
3423
+ guards.push(canceledNavigationCheck);
3424
+ // run the queue of per route beforeEnter guards
3425
+ return runGuardQueue(guards);
3426
+ })
3427
+ .then(() => {
3428
+ // check the route beforeEnter
3429
+ guards = [];
3430
+ for (const record of enteringRecords) {
3431
+ // do not trigger beforeEnter on reused views
3432
+ if (record.beforeEnter) {
3433
+ if (isArray(record.beforeEnter)) {
3434
+ for (const beforeEnter of record.beforeEnter)
3435
+ guards.push(guardToPromiseFn(beforeEnter, to, from));
3436
+ }
3437
+ else {
3438
+ guards.push(guardToPromiseFn(record.beforeEnter, to, from));
3439
+ }
3440
+ }
3441
+ }
3442
+ guards.push(canceledNavigationCheck);
3443
+ // run the queue of per route beforeEnter guards
3444
+ return runGuardQueue(guards);
3445
+ })
3446
+ .then(() => {
3447
+ // NOTE: at this point to.matched is normalized and does not contain any () => Promise<Component>
3448
+ // clear existing enterCallbacks, these are added by extractComponentsGuards
3449
+ to.matched.forEach(record => (record.enterCallbacks = {}));
3450
+ // check in-component beforeRouteEnter
3451
+ guards = extractComponentsGuards(enteringRecords, 'beforeRouteEnter', to, from, runWithContext);
3452
+ guards.push(canceledNavigationCheck);
3453
+ // run the queue of per route beforeEnter guards
3454
+ return runGuardQueue(guards);
3455
+ })
3456
+ .then(() => {
3457
+ // check global guards beforeResolve
3458
+ guards = [];
3459
+ for (const guard of beforeResolveGuards.list()) {
3460
+ guards.push(guardToPromiseFn(guard, to, from));
3461
+ }
3462
+ guards.push(canceledNavigationCheck);
3463
+ return runGuardQueue(guards);
3464
+ })
3465
+ // catch any navigation canceled
3466
+ .catch(err => isNavigationFailure(err, 8 /* ErrorTypes.NAVIGATION_CANCELLED */)
3467
+ ? err
3468
+ : Promise.reject(err)));
3469
+ }
3470
+ function triggerAfterEach(to, from, failure) {
3471
+ // navigation is confirmed, call afterGuards
3472
+ // TODO: wrap with error handlers
3473
+ afterGuards
3474
+ .list()
3475
+ .forEach(guard => runWithContext(() => guard(to, from, failure)));
3476
+ }
3477
+ /**
3478
+ * - Cleans up any navigation guards
3479
+ * - Changes the url if necessary
3480
+ * - Calls the scrollBehavior
3481
+ */
3482
+ function finalizeNavigation(toLocation, from, isPush, replace, data) {
3483
+ // a more recent navigation took place
3484
+ const error = checkCanceledNavigation(toLocation, from);
3485
+ if (error)
3486
+ return error;
3487
+ // only consider as push if it's not the first navigation
3488
+ const isFirstNavigation = from === START_LOCATION_NORMALIZED;
3489
+ const state = !isBrowser ? {} : history.state;
3490
+ // change URL only if the user did a push/replace and if it's not the initial navigation because
3491
+ // it's just reflecting the url
3492
+ if (isPush) {
3493
+ // on the initial navigation, we want to reuse the scroll position from
3494
+ // history state if it exists
3495
+ if (replace || isFirstNavigation)
3496
+ routerHistory.replace(toLocation.fullPath, assign({
3497
+ scroll: isFirstNavigation && state && state.scroll,
3498
+ }, data));
3499
+ else
3500
+ routerHistory.push(toLocation.fullPath, data);
3501
+ }
3502
+ // accept current navigation
3503
+ currentRoute.value = toLocation;
3504
+ handleScroll(toLocation, from, isPush, isFirstNavigation);
3505
+ markAsReady();
3506
+ }
3507
+ let removeHistoryListener;
3508
+ // attach listener to history to trigger navigations
3509
+ function setupListeners() {
3510
+ // avoid setting up listeners twice due to an invalid first navigation
3511
+ if (removeHistoryListener)
3512
+ return;
3513
+ removeHistoryListener = routerHistory.listen((to, _from, info) => {
3514
+ if (!router.listening)
3515
+ return;
3516
+ // cannot be a redirect route because it was in history
3517
+ const toLocation = resolve(to);
3518
+ // due to dynamic routing, and to hash history with manual navigation
3519
+ // (manually changing the url or calling history.hash = '#/somewhere'),
3520
+ // there could be a redirect record in history
3521
+ const shouldRedirect = handleRedirectRecord(toLocation);
3522
+ if (shouldRedirect) {
3523
+ pushWithRedirect(assign(shouldRedirect, { replace: true, force: true }), toLocation).catch(noop);
3524
+ return;
3525
+ }
3526
+ pendingLocation = toLocation;
3527
+ const from = currentRoute.value;
3528
+ // TODO: should be moved to web history?
3529
+ if (isBrowser) {
3530
+ saveScrollPosition(getScrollKey(from.fullPath, info.delta), computeScrollPosition());
3531
+ }
3532
+ navigate(toLocation, from)
3533
+ .catch((error) => {
3534
+ if (isNavigationFailure(error, 4 /* ErrorTypes.NAVIGATION_ABORTED */ | 8 /* ErrorTypes.NAVIGATION_CANCELLED */)) {
3535
+ return error;
3536
+ }
3537
+ if (isNavigationFailure(error, 2 /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */)) {
3538
+ // Here we could call if (info.delta) routerHistory.go(-info.delta,
3539
+ // false) but this is bug prone as we have no way to wait the
3540
+ // navigation to be finished before calling pushWithRedirect. Using
3541
+ // a setTimeout of 16ms seems to work but there is no guarantee for
3542
+ // it to work on every browser. So instead we do not restore the
3543
+ // history entry and trigger a new navigation as requested by the
3544
+ // navigation guard.
3545
+ // the error is already handled by router.push we just want to avoid
3546
+ // logging the error
3547
+ pushWithRedirect(assign(locationAsObject(error.to), {
3548
+ force: true,
3549
+ }), toLocation
3550
+ // avoid an uncaught rejection, let push call triggerError
3551
+ )
3552
+ .then(failure => {
3553
+ // manual change in hash history #916 ending up in the URL not
3554
+ // changing, but it was changed by the manual url change, so we
3555
+ // need to manually change it ourselves
3556
+ if (isNavigationFailure(failure, 4 /* ErrorTypes.NAVIGATION_ABORTED */ |
3557
+ 16 /* ErrorTypes.NAVIGATION_DUPLICATED */) &&
3558
+ !info.delta &&
3559
+ info.type === NavigationType.pop) {
3560
+ routerHistory.go(-1, false);
3561
+ }
3562
+ })
3563
+ .catch(noop);
3564
+ // avoid the then branch
3565
+ return Promise.reject();
3566
+ }
3567
+ // do not restore history on unknown direction
3568
+ if (info.delta) {
3569
+ routerHistory.go(-info.delta, false);
3570
+ }
3571
+ // unrecognized error, transfer to the global handler
3572
+ return triggerError(error, toLocation, from);
3573
+ })
3574
+ .then((failure) => {
3575
+ failure =
3576
+ failure ||
3577
+ finalizeNavigation(
3578
+ // after navigation, all matched components are resolved
3579
+ toLocation, from, false);
3580
+ // revert the navigation
3581
+ if (failure) {
3582
+ if (info.delta &&
3583
+ // a new navigation has been triggered, so we do not want to revert, that will change the current history
3584
+ // entry while a different route is displayed
3585
+ !isNavigationFailure(failure, 8 /* ErrorTypes.NAVIGATION_CANCELLED */)) {
3586
+ routerHistory.go(-info.delta, false);
3587
+ }
3588
+ else if (info.type === NavigationType.pop &&
3589
+ isNavigationFailure(failure, 4 /* ErrorTypes.NAVIGATION_ABORTED */ | 16 /* ErrorTypes.NAVIGATION_DUPLICATED */)) {
3590
+ // manual change in hash history #916
3591
+ // it's like a push but lacks the information of the direction
3592
+ routerHistory.go(-1, false);
3593
+ }
3594
+ }
3595
+ triggerAfterEach(toLocation, from, failure);
3596
+ })
3597
+ // avoid warnings in the console about uncaught rejections, they are logged by triggerErrors
3598
+ .catch(noop);
3599
+ });
3600
+ }
3601
+ // Initialization and Errors
3602
+ let readyHandlers = useCallbacks();
3603
+ let errorListeners = useCallbacks();
3604
+ let ready;
3605
+ /**
3606
+ * Trigger errorListeners added via onError and throws the error as well
3607
+ *
3608
+ * @param error - error to throw
3609
+ * @param to - location we were navigating to when the error happened
3610
+ * @param from - location we were navigating from when the error happened
3611
+ * @returns the error as a rejected promise
3612
+ */
3613
+ function triggerError(error, to, from) {
3614
+ markAsReady(error);
3615
+ const list = errorListeners.list();
3616
+ if (list.length) {
3617
+ list.forEach(handler => handler(error, to, from));
3618
+ }
3619
+ else {
3620
+ if ((process.env.NODE_ENV !== 'production')) {
3621
+ warn('uncaught error during route navigation:');
3622
+ }
3623
+ console.error(error);
3624
+ }
3625
+ // reject the error no matter there were error listeners or not
3626
+ return Promise.reject(error);
3627
+ }
3628
+ function isReady() {
3629
+ if (ready && currentRoute.value !== START_LOCATION_NORMALIZED)
3630
+ return Promise.resolve();
3631
+ return new Promise((resolve, reject) => {
3632
+ readyHandlers.add([resolve, reject]);
3633
+ });
3634
+ }
3635
+ function markAsReady(err) {
3636
+ if (!ready) {
3637
+ // still not ready if an error happened
3638
+ ready = !err;
3639
+ setupListeners();
3640
+ readyHandlers
3641
+ .list()
3642
+ .forEach(([resolve, reject]) => (err ? reject(err) : resolve()));
3643
+ readyHandlers.reset();
3644
+ }
3645
+ return err;
3646
+ }
3647
+ // Scroll behavior
3648
+ function handleScroll(to, from, isPush, isFirstNavigation) {
3649
+ const { scrollBehavior } = options;
3650
+ if (!isBrowser || !scrollBehavior)
3651
+ return Promise.resolve();
3652
+ const scrollPosition = (!isPush && getSavedScrollPosition(getScrollKey(to.fullPath, 0))) ||
3653
+ ((isFirstNavigation || !isPush) &&
3654
+ history.state &&
3655
+ history.state.scroll) ||
3656
+ null;
3657
+ return nextTick()
3658
+ .then(() => scrollBehavior(to, from, scrollPosition))
3659
+ .then(position => position && scrollToPosition(position))
3660
+ .catch(err => triggerError(err, to, from));
3661
+ }
3662
+ const go = (delta) => routerHistory.go(delta);
3663
+ let started;
3664
+ const installedApps = new Set();
3665
+ const router = {
3666
+ currentRoute,
3667
+ listening: true,
3668
+ addRoute,
3669
+ removeRoute,
3670
+ clearRoutes: matcher.clearRoutes,
3671
+ hasRoute,
3672
+ getRoutes,
3673
+ resolve,
3674
+ options,
3675
+ push,
3676
+ replace,
3677
+ go,
3678
+ back: () => go(-1),
3679
+ forward: () => go(1),
3680
+ beforeEach: beforeGuards.add,
3681
+ beforeResolve: beforeResolveGuards.add,
3682
+ afterEach: afterGuards.add,
3683
+ onError: errorListeners.add,
3684
+ isReady,
3685
+ install(app) {
3686
+ const router = this;
3687
+ app.component('RouterLink', RouterLink);
3688
+ app.component('RouterView', RouterView);
3689
+ app.config.globalProperties.$router = router;
3690
+ Object.defineProperty(app.config.globalProperties, '$route', {
3691
+ enumerable: true,
3692
+ get: () => unref(currentRoute),
3693
+ });
3694
+ // this initial navigation is only necessary on client, on server it doesn't
3695
+ // make sense because it will create an extra unnecessary navigation and could
3696
+ // lead to problems
3697
+ if (isBrowser &&
3698
+ // used for the initial navigation client side to avoid pushing
3699
+ // multiple times when the router is used in multiple apps
3700
+ !started &&
3701
+ currentRoute.value === START_LOCATION_NORMALIZED) {
3702
+ // see above
3703
+ started = true;
3704
+ push(routerHistory.location).catch(err => {
3705
+ if ((process.env.NODE_ENV !== 'production'))
3706
+ warn('Unexpected error when starting the router:', err);
3707
+ });
3708
+ }
3709
+ const reactiveRoute = {};
3710
+ for (const key in START_LOCATION_NORMALIZED) {
3711
+ Object.defineProperty(reactiveRoute, key, {
3712
+ get: () => currentRoute.value[key],
3713
+ enumerable: true,
3714
+ });
3715
+ }
3716
+ app.provide(routerKey, router);
3717
+ app.provide(routeLocationKey, shallowReactive(reactiveRoute));
3718
+ app.provide(routerViewLocationKey, currentRoute);
3719
+ const unmountApp = app.unmount;
3720
+ installedApps.add(app);
3721
+ app.unmount = function () {
3722
+ installedApps.delete(app);
3723
+ // the router is not attached to an app anymore
3724
+ if (installedApps.size < 1) {
3725
+ // invalidate the current navigation
3726
+ pendingLocation = START_LOCATION_NORMALIZED;
3727
+ removeHistoryListener && removeHistoryListener();
3728
+ removeHistoryListener = null;
3729
+ currentRoute.value = START_LOCATION_NORMALIZED;
3730
+ started = false;
3731
+ ready = false;
3732
+ }
3733
+ unmountApp();
3734
+ };
3735
+ // TODO: this probably needs to be updated so it can be used by vue-termui
3736
+ if (((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) && isBrowser) {
3737
+ addDevtools(app, router, matcher);
3738
+ }
3739
+ },
3740
+ };
3741
+ // TODO: type this as NavigationGuardReturn or similar instead of any
3742
+ function runGuardQueue(guards) {
3743
+ return guards.reduce((promise, guard) => promise.then(() => runWithContext(guard)), Promise.resolve());
3744
+ }
3745
+ return router;
3746
+ }
3747
+ function extractChangingRecords(to, from) {
3748
+ const leavingRecords = [];
3749
+ const updatingRecords = [];
3750
+ const enteringRecords = [];
3751
+ const len = Math.max(from.matched.length, to.matched.length);
3752
+ for (let i = 0; i < len; i++) {
3753
+ const recordFrom = from.matched[i];
3754
+ if (recordFrom) {
3755
+ if (to.matched.find(record => isSameRouteRecord(record, recordFrom)))
3756
+ updatingRecords.push(recordFrom);
3757
+ else
3758
+ leavingRecords.push(recordFrom);
3759
+ }
3760
+ const recordTo = to.matched[i];
3761
+ if (recordTo) {
3762
+ // the type doesn't matter because we are comparing per reference
3763
+ if (!from.matched.find(record => isSameRouteRecord(record, recordTo))) {
3764
+ enteringRecords.push(recordTo);
3765
+ }
3766
+ }
3767
+ }
3768
+ return [leavingRecords, updatingRecords, enteringRecords];
3769
+ }
3770
+
3771
+ /**
3772
+ * Returns the router instance. Equivalent to using `$router` inside
3773
+ * templates.
3774
+ */
3775
+ function useRouter() {
3776
+ return inject(routerKey);
3777
+ }
3778
+ /**
3779
+ * Returns the current route location. Equivalent to using `$route` inside
3780
+ * templates.
3781
+ */
3782
+ function useRoute(_name) {
3783
+ return inject(routeLocationKey);
3784
+ }
3785
+
3786
+ export { NavigationFailureType, RouterLink, RouterView, START_LOCATION_NORMALIZED as START_LOCATION, createMemoryHistory, createRouter, createRouterMatcher, createWebHashHistory, createWebHistory, isNavigationFailure, loadRouteLocation, matchedRouteKey, onBeforeRouteLeave, onBeforeRouteUpdate, parseQuery, routeLocationKey, routerKey, routerViewLocationKey, stringifyQuery, useLink, useRoute, useRouter, viewDepthKey };