nuxt-ignis 0.5.2 → 0.5.3

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 (409) hide show
  1. package/.data/content/contents.sqlite +0 -0
  2. package/.env +1 -1
  3. package/.nuxt/components.d.ts +480 -858
  4. package/.nuxt/content/components.ts +177 -320
  5. package/.nuxt/dev/index.mjs +542 -530
  6. package/.nuxt/dev/index.mjs.map +1 -1
  7. package/.nuxt/dist/server/client.manifest.mjs +1 -1
  8. package/.nuxt/dist/server/client.precomputed.mjs +1 -1
  9. package/.nuxt/eslint-typegen.d.ts +60 -111
  10. package/.nuxt/eslint.config.d.mts +2 -2
  11. package/.nuxt/eslint.config.mjs +9 -9
  12. package/.nuxt/imports.d.ts +71 -70
  13. package/.nuxt/manifest/latest.json +1 -1
  14. package/.nuxt/manifest/meta/dev.json +1 -1
  15. package/.nuxt/module/nuxt-robots.d.ts +13 -12
  16. package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
  17. package/.nuxt/module/nuxt-site-config.d.ts +8 -8
  18. package/.nuxt/module/nuxt-sitemap.d.ts +18 -18
  19. package/.nuxt/nitro.json +4 -4
  20. package/.nuxt/nuxt.d.ts +6 -6
  21. package/.nuxt/nuxt.json +2 -2
  22. package/.nuxt/nuxt.node.d.ts +7 -6
  23. package/.nuxt/tsconfig.app.json +192 -188
  24. package/.nuxt/tsconfig.json +195 -191
  25. package/.nuxt/tsconfig.node.json +108 -104
  26. package/.nuxt/tsconfig.server.json +128 -127
  27. package/.nuxt/tsconfig.shared.json +62 -62
  28. package/.nuxt/types/build.d.ts +1 -1
  29. package/.nuxt/types/components.d.ts +480 -858
  30. package/.nuxt/types/i18n-plugin.d.ts +2 -2
  31. package/.nuxt/types/imports.d.ts +368 -366
  32. package/.nuxt/types/modules.d.ts +22 -24
  33. package/.nuxt/types/nitro-imports.d.ts +66 -66
  34. package/.nuxt/types/nitro-nuxt.d.ts +1 -1
  35. package/.nuxt/types/nitro-routes.d.ts +16 -16
  36. package/.nuxt/types/plugins.d.ts +37 -37
  37. package/.nuxt/types/runtime-config.d.ts +3 -1
  38. package/.output/nitro.json +2 -2
  39. package/.output/public/_ignis-config.json +6 -0
  40. package/.output/public/_nuxt/-OUwOzoZ.js +1 -0
  41. package/.output/public/_nuxt/-z2jk33i.js +1 -0
  42. package/.output/public/_nuxt/3L5yAyVe.js +1 -0
  43. package/.output/public/_nuxt/8nlalpbc.js +1 -0
  44. package/.output/public/_nuxt/As5Zy5cG.js +1 -0
  45. package/.output/public/_nuxt/B-TDuiGE.js +1 -0
  46. package/.output/public/_nuxt/B04mZI32.js +1 -0
  47. package/.output/public/_nuxt/B3zmx-p1.js +1 -0
  48. package/.output/public/_nuxt/B4eQjLRH.js +1 -0
  49. package/.output/public/_nuxt/B6WOJ0Em.js +1 -0
  50. package/.output/public/_nuxt/BB2ULiwb.js +1 -0
  51. package/.output/public/_nuxt/BEvX3xjB.js +1 -0
  52. package/.output/public/_nuxt/BFcGh2xo.js +1 -0
  53. package/.output/public/_nuxt/BFdGKCUO.js +1 -0
  54. package/.output/public/_nuxt/BG-5V6Ik.js +1 -0
  55. package/.output/public/_nuxt/BeRTSVEP.js +1 -0
  56. package/.output/public/_nuxt/Bh-DZrTV.js +1 -0
  57. package/.output/public/_nuxt/BvFz8iHh.js +1 -0
  58. package/.output/public/_nuxt/BwUgVogm.js +1 -0
  59. package/.output/public/_nuxt/C1fHW8CN.js +1 -0
  60. package/.output/public/_nuxt/C1getMtX.js +49 -0
  61. package/.output/public/_nuxt/C4nGy0Yj.js +1 -0
  62. package/.output/public/_nuxt/CExm4AMI.js +1 -0
  63. package/.output/public/_nuxt/CHcd0nHy.js +1 -0
  64. package/.output/public/_nuxt/CTbEZMxa.js +1 -0
  65. package/.output/public/_nuxt/CZ5QNOH8.js +1 -0
  66. package/.output/public/_nuxt/Cna7T5zY.js +1 -0
  67. package/.output/public/_nuxt/CnghUxEk.js +1 -0
  68. package/.output/public/_nuxt/CvJSUdvI.js +1 -0
  69. package/.output/public/_nuxt/CwgBHvd_.js +1 -0
  70. package/.output/public/_nuxt/D1nIr4-J.js +1 -0
  71. package/.output/public/_nuxt/D2atCez-.js +1 -0
  72. package/.output/public/_nuxt/D3WX5Hmk.js +1 -0
  73. package/.output/public/_nuxt/D5duQQkG.js +1 -0
  74. package/.output/public/_nuxt/D9RSHNPZ.js +1 -0
  75. package/.output/public/_nuxt/DB3c8m3K.js +1 -0
  76. package/.output/public/_nuxt/DFP1sKjc.js +1 -0
  77. package/.output/public/_nuxt/DI5_qtj_.js +1 -0
  78. package/.output/public/_nuxt/DKCDh1Eq.js +1 -0
  79. package/.output/public/_nuxt/DN3AlbuD.js +1 -0
  80. package/.output/public/_nuxt/DPDbQA17.js +1 -0
  81. package/.output/public/_nuxt/DSErOj49.js +1 -0
  82. package/.output/public/_nuxt/DXrSmKSt.js +1 -0
  83. package/.output/public/_nuxt/DbZ1CQfQ.js +1 -0
  84. package/.output/public/_nuxt/DgCebJqk.js +1 -0
  85. package/.output/public/_nuxt/DhhwMwQM.js +1 -0
  86. package/.output/public/_nuxt/Djhwz52y.js +1 -0
  87. package/.output/public/_nuxt/DnE1KSqg.js +1 -0
  88. package/.output/public/_nuxt/DncFEy6i.js +1 -0
  89. package/.output/public/_nuxt/DpZCZGQO.js +1 -0
  90. package/.output/public/_nuxt/Dx95U2T3.js +1 -0
  91. package/.output/public/_nuxt/FUdAqSn9.js +9 -0
  92. package/.output/public/_nuxt/GvxWNFgu.js +1 -0
  93. package/.output/public/_nuxt/HgKyGH3C.js +1 -0
  94. package/.output/public/_nuxt/Hxhp1Hz0.js +1 -0
  95. package/.output/public/_nuxt/LpFrvoF7.js +1 -0
  96. package/.output/public/_nuxt/{Pre.DHQaXnEy.css → Pre.HegCCrfd.css} +1 -1
  97. package/.output/public/_nuxt/Sz6HDPqh.js +1 -0
  98. package/.output/public/_nuxt/U1_7ggcx.js +1 -0
  99. package/.output/public/_nuxt/X8ZdEYzW.js +1 -0
  100. package/.output/public/_nuxt/ahq42_9S.js +1 -0
  101. package/.output/public/_nuxt/b0AtYQ73.js +1 -0
  102. package/.output/public/_nuxt/builds/latest.json +1 -1
  103. package/.output/public/_nuxt/builds/meta/78080714-55fa-441d-9998-a6fb0c7ee057.json +1 -0
  104. package/.output/public/_nuxt/efC_w6sP.js +1 -0
  105. package/.output/public/_nuxt/entry.9ygoOcLs.css +1 -0
  106. package/.output/public/_nuxt/error-404.0Tbhbu-E.css +1 -0
  107. package/.output/public/_nuxt/error-500.ClQbyW3Z.css +1 -0
  108. package/.output/public/_nuxt/ulE7jr93.js +1 -0
  109. package/.output/public/_nuxt/xHyrElgL.js +1 -0
  110. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  111. package/.output/server/chunks/_/i18n.config.mjs.map +1 -1
  112. package/.output/server/chunks/_/nitro.mjs +1176 -1775
  113. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  114. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  115. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
  116. package/.output/server/chunks/build/database.compressed.mjs.map +1 -1
  117. package/.output/server/chunks/raw/headers.mjs.map +1 -1
  118. package/.output/server/chunks/routes/api/neonTest.mjs +2 -2
  119. package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -1
  120. package/.output/server/chunks/routes/renderer.mjs +27 -2
  121. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  122. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -1
  123. package/.output/server/chunks/virtual/child-sources.mjs.map +1 -1
  124. package/.output/server/chunks/virtual/global-sources.mjs +0 -8
  125. package/.output/server/chunks/virtual/global-sources.mjs.map +1 -1
  126. package/.output/server/index.mjs +1 -1
  127. package/.output/server/index.mjs.map +1 -1
  128. package/.output/server/node_modules/.nitro/{entities@4.5.0/lib/decode_codepoint.js → entities@7.0.0/dist/commonjs/decode-codepoint.js} +16 -15
  129. package/.output/server/node_modules/.nitro/{entities@4.5.0/lib → entities@7.0.0/dist/commonjs}/decode.js +200 -168
  130. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-html.js +7 -0
  131. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-xml.js +7 -0
  132. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/bin-trie-flags.js +21 -0
  133. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/decode-shared.js +31 -0
  134. package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/package.json +3 -0
  135. package/.output/server/node_modules/.nitro/entities@7.0.0/package.json +113 -0
  136. package/.output/server/node_modules/@intlify/core/dist/core.mjs +1 -1
  137. package/.output/server/node_modules/@intlify/core/package.json +3 -3
  138. package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +2 -2
  139. package/.output/server/node_modules/@intlify/core-base/package.json +4 -4
  140. package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1 -1
  141. package/.output/server/node_modules/@intlify/message-compiler/package.json +2 -2
  142. package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +1 -1
  143. package/.output/server/node_modules/@intlify/shared/package.json +1 -1
  144. package/.output/server/node_modules/@neondatabase/serverless/package.json +4 -4
  145. package/.output/server/node_modules/@poppinss/exception/build/index.js +36 -55
  146. package/.output/server/node_modules/@poppinss/exception/package.json +19 -16
  147. package/.output/server/node_modules/@poppinss/string/build/index.js +2 -6
  148. package/.output/server/node_modules/@poppinss/string/build/string-ArFSN0fl.js +464 -0
  149. package/.output/server/node_modules/@poppinss/string/package.json +28 -25
  150. package/.output/server/node_modules/@shikijs/core/dist/index.mjs +111 -31
  151. package/.output/server/node_modules/@shikijs/core/package.json +2 -2
  152. package/.output/server/node_modules/@shikijs/engine-javascript/package.json +2 -2
  153. package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
  154. package/.output/server/node_modules/@shikijs/langs/package.json +2 -2
  155. package/.output/server/node_modules/@shikijs/themes/package.json +2 -2
  156. package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +56 -16
  157. package/.output/server/node_modules/@shikijs/transformers/package.json +3 -3
  158. package/.output/server/node_modules/@shikijs/types/package.json +1 -1
  159. package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/dist/compiler-core.cjs.prod.js +106 -85
  160. package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/package.json +3 -3
  161. package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/dist/compiler-dom.cjs.prod.js +54 -54
  162. package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/package.json +3 -3
  163. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +26 -26
  164. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  165. package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.25 → @vue/reactivity}/dist/reactivity.cjs.prod.js +4 -4
  166. package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.22 → @vue/reactivity}/package.json +2 -2
  167. package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.25 → @vue/runtime-core}/dist/runtime-core.cjs.prod.js +175 -155
  168. package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.22 → @vue/runtime-core}/package.json +3 -3
  169. package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.25 → @vue/runtime-dom}/dist/runtime-dom.cjs.prod.js +9 -9
  170. package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.22 → @vue/runtime-dom}/package.json +5 -5
  171. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +1 -1
  172. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
  173. package/.output/server/node_modules/{.nitro/@vue/shared@3.5.25 → @vue/shared}/dist/shared.cjs.prod.js +1 -1
  174. package/.output/server/node_modules/{.nitro/@vue/shared@3.5.22 → @vue/shared}/package.json +1 -1
  175. package/.output/server/node_modules/devalue/index.js +1 -0
  176. package/.output/server/node_modules/devalue/package.json +1 -1
  177. package/.output/server/node_modules/devalue/src/parse.js +5 -1
  178. package/.output/server/node_modules/devalue/src/stringify.js +7 -3
  179. package/.output/server/node_modules/devalue/src/uneval.js +7 -3
  180. package/.output/server/node_modules/devalue/src/utils.js +5 -1
  181. package/.output/server/node_modules/fast-xml-parser/package.json +4 -2
  182. package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +19 -8
  183. package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +13 -19
  184. package/.output/server/node_modules/hast-util-to-parse5/package.json +8 -7
  185. package/.output/server/node_modules/jose/dist/webapi/index.js +4 -2
  186. package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  187. package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +2 -2
  188. package/.output/server/node_modules/jose/package.json +1 -1
  189. package/.output/server/node_modules/node-mock-http/package.json +10 -10
  190. package/.output/server/node_modules/regex/package.json +6 -6
  191. package/.output/server/node_modules/regex/src/atomic.js +6 -3
  192. package/.output/server/node_modules/shiki/package.json +7 -7
  193. package/.output/server/node_modules/strnum/package.json +1 -1
  194. package/.output/server/node_modules/strnum/strnum.js +1 -1
  195. package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
  196. package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
  197. package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.CGCfDSEL.mjs} +3 -3
  198. package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.CYpwL2hc.mjs} +12 -12
  199. package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
  200. package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
  201. package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
  202. package/.output/server/node_modules/unhead/package.json +1 -1
  203. package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/dist/vue.cjs.js +1 -1
  204. package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/dist/vue.cjs.prod.js +1 -1
  205. package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/package.json +6 -6
  206. package/.output/server/node_modules/vue-router/dist/{devtools-BLCumUwL.mjs → devtools-EWN81iOl.mjs} +6 -4
  207. package/.output/server/node_modules/vue-router/dist/vue-router.mjs +3 -3
  208. package/.output/server/node_modules/vue-router/package.json +2 -3
  209. package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +1 -1
  210. package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +1 -1
  211. package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +2 -2
  212. package/.output/server/node_modules/yaml/dist/errors.js +1 -1
  213. package/.output/server/node_modules/yaml/dist/nodes/Alias.js +1 -1
  214. package/.output/server/node_modules/yaml/dist/parse/parser.js +2 -2
  215. package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +1 -1
  216. package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +1 -1
  217. package/.output/server/node_modules/yaml/package.json +4 -4
  218. package/.output/server/package.json +35 -38
  219. package/bin/set-app-vue.js +1 -1
  220. package/bin/set-css.js +1 -1
  221. package/bin/set-eslint.js +1 -1
  222. package/bin/setup.js +3 -3
  223. package/eslint.config.mjs +7 -4
  224. package/package.json +7 -7
  225. package/public/_ignis-config.json +6 -0
  226. package/vitest.config.ts +1 -3
  227. package/.output/public/_nuxt/-PRJHlJd.js +0 -1
  228. package/.output/public/_nuxt/38NkCNo_.js +0 -0
  229. package/.output/public/_nuxt/4p0_eEbF.js +0 -0
  230. package/.output/public/_nuxt/5P9Ak6Zm.js +0 -0
  231. package/.output/public/_nuxt/5msm7UDY.js +0 -0
  232. package/.output/public/_nuxt/7I_cTX05.js +0 -1
  233. package/.output/public/_nuxt/7N8aGG8C.js +0 -1
  234. package/.output/public/_nuxt/9j0d6I4O.js +0 -0
  235. package/.output/public/_nuxt/B7b1sBVf.js +0 -0
  236. package/.output/public/_nuxt/B7pFyPXj.js +0 -1
  237. package/.output/public/_nuxt/B8s7UrMM.js +0 -1
  238. package/.output/public/_nuxt/BHBmrOu8.js +0 -1
  239. package/.output/public/_nuxt/BHIv_dM4.js +0 -0
  240. package/.output/public/_nuxt/BI2n4fU-.js +0 -0
  241. package/.output/public/_nuxt/BJos6QuZ.js +0 -0
  242. package/.output/public/_nuxt/BKsXoEBs.js +0 -0
  243. package/.output/public/_nuxt/BNKvjWkT.js +0 -1
  244. package/.output/public/_nuxt/BQmtXkqc.js +0 -1
  245. package/.output/public/_nuxt/BQuCJQB8.js +0 -0
  246. package/.output/public/_nuxt/BSEIdlOb.js +0 -0
  247. package/.output/public/_nuxt/BST7mczs.js +0 -1
  248. package/.output/public/_nuxt/BTAjWPAo.js +0 -1
  249. package/.output/public/_nuxt/BYIIksjz.js +0 -0
  250. package/.output/public/_nuxt/BfZ1Ro0X.js +0 -1
  251. package/.output/public/_nuxt/Bg-6qayI.js +0 -1
  252. package/.output/public/_nuxt/BgP-osMP.js +0 -1
  253. package/.output/public/_nuxt/BiCkyLWS.js +0 -1
  254. package/.output/public/_nuxt/BjN_umGo.js +0 -1
  255. package/.output/public/_nuxt/BqK0HYmw.js +0 -1
  256. package/.output/public/_nuxt/BrSteMIA.js +0 -1
  257. package/.output/public/_nuxt/C-MeLOeF.js +0 -1
  258. package/.output/public/_nuxt/C-OKZMJp.js +0 -1
  259. package/.output/public/_nuxt/C6tJinWY.js +0 -0
  260. package/.output/public/_nuxt/C7lLQr2h.js +0 -0
  261. package/.output/public/_nuxt/CDLGLk8m.js +0 -1
  262. package/.output/public/_nuxt/CDT62st6.js +0 -1
  263. package/.output/public/_nuxt/CFimyBH-.js +0 -0
  264. package/.output/public/_nuxt/CG7cd7Sy.js +0 -1
  265. package/.output/public/_nuxt/CKPnIC-C.js +0 -0
  266. package/.output/public/_nuxt/COPw3T3p.js +0 -1
  267. package/.output/public/_nuxt/CQGFUxxa.js +0 -1
  268. package/.output/public/_nuxt/CSX_cLY6.js +0 -1
  269. package/.output/public/_nuxt/CaVNnfk7.js +0 -0
  270. package/.output/public/_nuxt/Cd1ifhTP.js +0 -0
  271. package/.output/public/_nuxt/CdygaddQ.js +0 -9
  272. package/.output/public/_nuxt/Cf-VPxfE.js +0 -1
  273. package/.output/public/_nuxt/CfmMK6-y.js +0 -1
  274. package/.output/public/_nuxt/Civ5r6YF.js +0 -1
  275. package/.output/public/_nuxt/CkdnMzBA.js +0 -0
  276. package/.output/public/_nuxt/CnlJVizr.js +0 -1
  277. package/.output/public/_nuxt/Coqgx10n.js +0 -0
  278. package/.output/public/_nuxt/CxMUMwzI.js +0 -1
  279. package/.output/public/_nuxt/Cyw3rpDt.js +0 -1
  280. package/.output/public/_nuxt/CzKgiVVn.js +0 -1
  281. package/.output/public/_nuxt/D-qXrpoJ.js +0 -0
  282. package/.output/public/_nuxt/D2vgCRoc.js +0 -1
  283. package/.output/public/_nuxt/D4fuXfD_.js +0 -1
  284. package/.output/public/_nuxt/D5IuxRu4.js +0 -1
  285. package/.output/public/_nuxt/D5j9Embb.js +0 -1
  286. package/.output/public/_nuxt/D6YL6Hhi.js +0 -0
  287. package/.output/public/_nuxt/DAIwjxRT.js +0 -0
  288. package/.output/public/_nuxt/DBEY94Mo.js +0 -0
  289. package/.output/public/_nuxt/DCQOMtdo.js +0 -1
  290. package/.output/public/_nuxt/DEQ3hSSO.js +0 -1
  291. package/.output/public/_nuxt/DFfCkFZ3.js +0 -1
  292. package/.output/public/_nuxt/DL4qe-W_.js +0 -0
  293. package/.output/public/_nuxt/DLKI6lgi.js +0 -0
  294. package/.output/public/_nuxt/DOAeoYpG.js +0 -0
  295. package/.output/public/_nuxt/DPQeTxQ3.js +0 -1
  296. package/.output/public/_nuxt/DP_txrAq.js +0 -1
  297. package/.output/public/_nuxt/DQKS5ddY.js +0 -1
  298. package/.output/public/_nuxt/DXXu9Lvl.js +0 -1
  299. package/.output/public/_nuxt/DcUS3ReQ.js +0 -0
  300. package/.output/public/_nuxt/DdWDmJe7.js +0 -0
  301. package/.output/public/_nuxt/Df59gZou.js +0 -0
  302. package/.output/public/_nuxt/DiIccoHR.js +0 -0
  303. package/.output/public/_nuxt/DiL3rzK6.js +0 -1
  304. package/.output/public/_nuxt/DkEHW4Vs.js +0 -0
  305. package/.output/public/_nuxt/DmRrrdJv.js +0 -1
  306. package/.output/public/_nuxt/Do5nYv4E.js +0 -0
  307. package/.output/public/_nuxt/DqyxgTAQ.js +0 -0
  308. package/.output/public/_nuxt/DrE64K_R.js +0 -1
  309. package/.output/public/_nuxt/DrskXsQH.js +0 -1
  310. package/.output/public/_nuxt/Ds7AWph0.js +0 -0
  311. package/.output/public/_nuxt/Dvcv58Mc.js +0 -1
  312. package/.output/public/_nuxt/FMWwyTQ_.js +0 -0
  313. package/.output/public/_nuxt/Q6bGSN8C.js +0 -0
  314. package/.output/public/_nuxt/QyE4cqYn.js +0 -1
  315. package/.output/public/_nuxt/Tcmkoyas.js +0 -1
  316. package/.output/public/_nuxt/Tj4XPHLn.js +0 -1
  317. package/.output/public/_nuxt/VOEA7UHD.js +0 -0
  318. package/.output/public/_nuxt/WOOfaOjG.js +0 -1
  319. package/.output/public/_nuxt/Y6FRsTFQ.js +0 -0
  320. package/.output/public/_nuxt/ZDbum-dK.js +0 -1
  321. package/.output/public/_nuxt/ZTY82FYd.js +0 -0
  322. package/.output/public/_nuxt/asVu8S_S.js +0 -51
  323. package/.output/public/_nuxt/builds/meta/68901e1f-eb2d-48db-9c33-8ac67fff1d62.json +0 -1
  324. package/.output/public/_nuxt/cjlVjclE.js +0 -1
  325. package/.output/public/_nuxt/entry.UZgisdi2.css +0 -1
  326. package/.output/public/_nuxt/error-404.DQ5oEvRi.css +0 -1
  327. package/.output/public/_nuxt/error-500.c8JA_zlB.css +0 -1
  328. package/.output/public/_nuxt/gmjYz5n6.js +0 -0
  329. package/.output/public/_nuxt/iatO0zkI.js +0 -1
  330. package/.output/public/_nuxt/jieRiiOw.js +0 -0
  331. package/.output/public/_nuxt/lAhMwKxb.js +0 -1
  332. package/.output/public/_nuxt/mHcxE7OD.js +0 -0
  333. package/.output/public/_nuxt/n17zLPF6.js +0 -0
  334. package/.output/public/_nuxt/ncv2QjU2.js +0 -1
  335. package/.output/public/_nuxt/osXHzmfu.js +0 -1
  336. package/.output/public/_nuxt/plapqmiu.js +0 -1
  337. package/.output/public/_nuxt/pnNmDVjA.js +0 -0
  338. package/.output/public/_nuxt/rxAL1Pmw.js +0 -1
  339. package/.output/public/_nuxt/ryzXmKdZ.js +0 -1
  340. package/.output/public/_nuxt/t9C3L8ir.js +0 -1
  341. package/.output/public/_nuxt/wQgAJ5T0.js +0 -1
  342. package/.output/public/_nuxt/z6h75OXJ.js +0 -1
  343. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/dist/compiler-core.cjs.prod.js +0 -6741
  344. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/package.json +0 -58
  345. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/dist/compiler-dom.cjs.prod.js +0 -689
  346. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/package.json +0 -57
  347. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.22/dist/reactivity.cjs.prod.js +0 -1807
  348. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.25/package.json +0 -55
  349. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.22/dist/runtime-core.cjs.prod.js +0 -6732
  350. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.25/package.json +0 -52
  351. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.22/dist/runtime-dom.cjs.prod.js +0 -1703
  352. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.25/package.json +0 -60
  353. package/.output/server/node_modules/.nitro/@vue/shared@3.5.22/dist/shared.cjs.prod.js +0 -604
  354. package/.output/server/node_modules/.nitro/@vue/shared@3.5.25/package.json +0 -47
  355. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +0 -9
  356. package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +0 -9
  357. package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +0 -18
  358. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +0 -59
  359. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +0 -68
  360. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +0 -28
  361. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +0 -322
  362. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +0 -7
  363. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +0 -567
  364. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +0 -10
  365. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +0 -8
  366. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +0 -58
  367. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +0 -44
  368. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +0 -25
  369. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +0 -26
  370. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +0 -28
  371. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +0 -17
  372. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +0 -9
  373. package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +0 -9
  374. package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +0 -93
  375. package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +0 -13
  376. package/.output/server/node_modules/.nitro/vue@3.5.22/dist/vue.cjs.prod.js +0 -66
  377. package/.output/server/node_modules/.nitro/vue@3.5.22/package.json +0 -112
  378. package/.output/server/node_modules/.nitro/vue@3.5.25/dist/vue.cjs.js +0 -80
  379. package/.output/server/node_modules/.nitro/vue@3.5.25/index.js +0 -7
  380. package/.output/server/node_modules/.nitro/vue@3.5.25/index.mjs +0 -1
  381. package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +0 -34
  382. package/.output/server/node_modules/@lukeed/ms/package.json +0 -48
  383. package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +0 -407
  384. package/.output/server/node_modules/bytes/index.js +0 -170
  385. package/.output/server/node_modules/bytes/package.json +0 -42
  386. package/.output/server/node_modules/truncatise/index.js +0 -188
  387. package/.output/server/node_modules/truncatise/package.json +0 -36
  388. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/index.js +0 -0
  389. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/aria.js +0 -0
  390. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/find.js +0 -0
  391. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/hast-to-react.js +0 -0
  392. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/html.js +0 -0
  393. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/normalize.js +0 -0
  394. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/svg.js +0 -0
  395. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-insensitive-transform.js +0 -0
  396. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-sensitive-transform.js +0 -0
  397. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/create.js +0 -0
  398. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/defined-info.js +0 -0
  399. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/info.js +0 -0
  400. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/merge.js +0 -0
  401. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/schema.js +0 -0
  402. /package/.output/server/node_modules/{.nitro/property-information@6.5.0 → property-information}/lib/util/types.js +0 -0
  403. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xlink.js +0 -0
  404. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xml.js +0 -0
  405. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xmlns.js +0 -0
  406. /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/package.json +0 -0
  407. /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.js +0 -0
  408. /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.mjs +0 -0
  409. /package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/server-renderer/index.mjs +0 -0
@@ -1,1807 +0,0 @@
1
- /**
2
- * @vue/reactivity v3.5.22
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/
6
- 'use strict';
7
-
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
- var shared = require('@vue/shared');
11
-
12
- let activeEffectScope;
13
- class EffectScope {
14
- constructor(detached = false) {
15
- this.detached = detached;
16
- /**
17
- * @internal
18
- */
19
- this._active = true;
20
- /**
21
- * @internal track `on` calls, allow `on` call multiple times
22
- */
23
- this._on = 0;
24
- /**
25
- * @internal
26
- */
27
- this.effects = [];
28
- /**
29
- * @internal
30
- */
31
- this.cleanups = [];
32
- this._isPaused = false;
33
- this.parent = activeEffectScope;
34
- if (!detached && activeEffectScope) {
35
- this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
36
- this
37
- ) - 1;
38
- }
39
- }
40
- get active() {
41
- return this._active;
42
- }
43
- pause() {
44
- if (this._active) {
45
- this._isPaused = true;
46
- let i, l;
47
- if (this.scopes) {
48
- for (i = 0, l = this.scopes.length; i < l; i++) {
49
- this.scopes[i].pause();
50
- }
51
- }
52
- for (i = 0, l = this.effects.length; i < l; i++) {
53
- this.effects[i].pause();
54
- }
55
- }
56
- }
57
- /**
58
- * Resumes the effect scope, including all child scopes and effects.
59
- */
60
- resume() {
61
- if (this._active) {
62
- if (this._isPaused) {
63
- this._isPaused = false;
64
- let i, l;
65
- if (this.scopes) {
66
- for (i = 0, l = this.scopes.length; i < l; i++) {
67
- this.scopes[i].resume();
68
- }
69
- }
70
- for (i = 0, l = this.effects.length; i < l; i++) {
71
- this.effects[i].resume();
72
- }
73
- }
74
- }
75
- }
76
- run(fn) {
77
- if (this._active) {
78
- const currentEffectScope = activeEffectScope;
79
- try {
80
- activeEffectScope = this;
81
- return fn();
82
- } finally {
83
- activeEffectScope = currentEffectScope;
84
- }
85
- }
86
- }
87
- /**
88
- * This should only be called on non-detached scopes
89
- * @internal
90
- */
91
- on() {
92
- if (++this._on === 1) {
93
- this.prevScope = activeEffectScope;
94
- activeEffectScope = this;
95
- }
96
- }
97
- /**
98
- * This should only be called on non-detached scopes
99
- * @internal
100
- */
101
- off() {
102
- if (this._on > 0 && --this._on === 0) {
103
- activeEffectScope = this.prevScope;
104
- this.prevScope = void 0;
105
- }
106
- }
107
- stop(fromParent) {
108
- if (this._active) {
109
- this._active = false;
110
- let i, l;
111
- for (i = 0, l = this.effects.length; i < l; i++) {
112
- this.effects[i].stop();
113
- }
114
- this.effects.length = 0;
115
- for (i = 0, l = this.cleanups.length; i < l; i++) {
116
- this.cleanups[i]();
117
- }
118
- this.cleanups.length = 0;
119
- if (this.scopes) {
120
- for (i = 0, l = this.scopes.length; i < l; i++) {
121
- this.scopes[i].stop(true);
122
- }
123
- this.scopes.length = 0;
124
- }
125
- if (!this.detached && this.parent && !fromParent) {
126
- const last = this.parent.scopes.pop();
127
- if (last && last !== this) {
128
- this.parent.scopes[this.index] = last;
129
- last.index = this.index;
130
- }
131
- }
132
- this.parent = void 0;
133
- }
134
- }
135
- }
136
- function effectScope(detached) {
137
- return new EffectScope(detached);
138
- }
139
- function getCurrentScope() {
140
- return activeEffectScope;
141
- }
142
- function onScopeDispose(fn, failSilently = false) {
143
- if (activeEffectScope) {
144
- activeEffectScope.cleanups.push(fn);
145
- }
146
- }
147
-
148
- let activeSub;
149
- const EffectFlags = {
150
- "ACTIVE": 1,
151
- "1": "ACTIVE",
152
- "RUNNING": 2,
153
- "2": "RUNNING",
154
- "TRACKING": 4,
155
- "4": "TRACKING",
156
- "NOTIFIED": 8,
157
- "8": "NOTIFIED",
158
- "DIRTY": 16,
159
- "16": "DIRTY",
160
- "ALLOW_RECURSE": 32,
161
- "32": "ALLOW_RECURSE",
162
- "PAUSED": 64,
163
- "64": "PAUSED",
164
- "EVALUATED": 128,
165
- "128": "EVALUATED"
166
- };
167
- const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
168
- class ReactiveEffect {
169
- constructor(fn) {
170
- this.fn = fn;
171
- /**
172
- * @internal
173
- */
174
- this.deps = void 0;
175
- /**
176
- * @internal
177
- */
178
- this.depsTail = void 0;
179
- /**
180
- * @internal
181
- */
182
- this.flags = 1 | 4;
183
- /**
184
- * @internal
185
- */
186
- this.next = void 0;
187
- /**
188
- * @internal
189
- */
190
- this.cleanup = void 0;
191
- this.scheduler = void 0;
192
- if (activeEffectScope && activeEffectScope.active) {
193
- activeEffectScope.effects.push(this);
194
- }
195
- }
196
- pause() {
197
- this.flags |= 64;
198
- }
199
- resume() {
200
- if (this.flags & 64) {
201
- this.flags &= -65;
202
- if (pausedQueueEffects.has(this)) {
203
- pausedQueueEffects.delete(this);
204
- this.trigger();
205
- }
206
- }
207
- }
208
- /**
209
- * @internal
210
- */
211
- notify() {
212
- if (this.flags & 2 && !(this.flags & 32)) {
213
- return;
214
- }
215
- if (!(this.flags & 8)) {
216
- batch(this);
217
- }
218
- }
219
- run() {
220
- if (!(this.flags & 1)) {
221
- return this.fn();
222
- }
223
- this.flags |= 2;
224
- cleanupEffect(this);
225
- prepareDeps(this);
226
- const prevEffect = activeSub;
227
- const prevShouldTrack = shouldTrack;
228
- activeSub = this;
229
- shouldTrack = true;
230
- try {
231
- return this.fn();
232
- } finally {
233
- cleanupDeps(this);
234
- activeSub = prevEffect;
235
- shouldTrack = prevShouldTrack;
236
- this.flags &= -3;
237
- }
238
- }
239
- stop() {
240
- if (this.flags & 1) {
241
- for (let link = this.deps; link; link = link.nextDep) {
242
- removeSub(link);
243
- }
244
- this.deps = this.depsTail = void 0;
245
- cleanupEffect(this);
246
- this.onStop && this.onStop();
247
- this.flags &= -2;
248
- }
249
- }
250
- trigger() {
251
- if (this.flags & 64) {
252
- pausedQueueEffects.add(this);
253
- } else if (this.scheduler) {
254
- this.scheduler();
255
- } else {
256
- this.runIfDirty();
257
- }
258
- }
259
- /**
260
- * @internal
261
- */
262
- runIfDirty() {
263
- if (isDirty(this)) {
264
- this.run();
265
- }
266
- }
267
- get dirty() {
268
- return isDirty(this);
269
- }
270
- }
271
- let batchDepth = 0;
272
- let batchedSub;
273
- let batchedComputed;
274
- function batch(sub, isComputed = false) {
275
- sub.flags |= 8;
276
- if (isComputed) {
277
- sub.next = batchedComputed;
278
- batchedComputed = sub;
279
- return;
280
- }
281
- sub.next = batchedSub;
282
- batchedSub = sub;
283
- }
284
- function startBatch() {
285
- batchDepth++;
286
- }
287
- function endBatch() {
288
- if (--batchDepth > 0) {
289
- return;
290
- }
291
- if (batchedComputed) {
292
- let e = batchedComputed;
293
- batchedComputed = void 0;
294
- while (e) {
295
- const next = e.next;
296
- e.next = void 0;
297
- e.flags &= -9;
298
- e = next;
299
- }
300
- }
301
- let error;
302
- while (batchedSub) {
303
- let e = batchedSub;
304
- batchedSub = void 0;
305
- while (e) {
306
- const next = e.next;
307
- e.next = void 0;
308
- e.flags &= -9;
309
- if (e.flags & 1) {
310
- try {
311
- ;
312
- e.trigger();
313
- } catch (err) {
314
- if (!error) error = err;
315
- }
316
- }
317
- e = next;
318
- }
319
- }
320
- if (error) throw error;
321
- }
322
- function prepareDeps(sub) {
323
- for (let link = sub.deps; link; link = link.nextDep) {
324
- link.version = -1;
325
- link.prevActiveLink = link.dep.activeLink;
326
- link.dep.activeLink = link;
327
- }
328
- }
329
- function cleanupDeps(sub) {
330
- let head;
331
- let tail = sub.depsTail;
332
- let link = tail;
333
- while (link) {
334
- const prev = link.prevDep;
335
- if (link.version === -1) {
336
- if (link === tail) tail = prev;
337
- removeSub(link);
338
- removeDep(link);
339
- } else {
340
- head = link;
341
- }
342
- link.dep.activeLink = link.prevActiveLink;
343
- link.prevActiveLink = void 0;
344
- link = prev;
345
- }
346
- sub.deps = head;
347
- sub.depsTail = tail;
348
- }
349
- function isDirty(sub) {
350
- for (let link = sub.deps; link; link = link.nextDep) {
351
- if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
352
- return true;
353
- }
354
- }
355
- if (sub._dirty) {
356
- return true;
357
- }
358
- return false;
359
- }
360
- function refreshComputed(computed) {
361
- if (computed.flags & 4 && !(computed.flags & 16)) {
362
- return;
363
- }
364
- computed.flags &= -17;
365
- if (computed.globalVersion === globalVersion) {
366
- return;
367
- }
368
- computed.globalVersion = globalVersion;
369
- if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
370
- return;
371
- }
372
- computed.flags |= 2;
373
- const dep = computed.dep;
374
- const prevSub = activeSub;
375
- const prevShouldTrack = shouldTrack;
376
- activeSub = computed;
377
- shouldTrack = true;
378
- try {
379
- prepareDeps(computed);
380
- const value = computed.fn(computed._value);
381
- if (dep.version === 0 || shared.hasChanged(value, computed._value)) {
382
- computed.flags |= 128;
383
- computed._value = value;
384
- dep.version++;
385
- }
386
- } catch (err) {
387
- dep.version++;
388
- throw err;
389
- } finally {
390
- activeSub = prevSub;
391
- shouldTrack = prevShouldTrack;
392
- cleanupDeps(computed);
393
- computed.flags &= -3;
394
- }
395
- }
396
- function removeSub(link, soft = false) {
397
- const { dep, prevSub, nextSub } = link;
398
- if (prevSub) {
399
- prevSub.nextSub = nextSub;
400
- link.prevSub = void 0;
401
- }
402
- if (nextSub) {
403
- nextSub.prevSub = prevSub;
404
- link.nextSub = void 0;
405
- }
406
- if (dep.subs === link) {
407
- dep.subs = prevSub;
408
- if (!prevSub && dep.computed) {
409
- dep.computed.flags &= -5;
410
- for (let l = dep.computed.deps; l; l = l.nextDep) {
411
- removeSub(l, true);
412
- }
413
- }
414
- }
415
- if (!soft && !--dep.sc && dep.map) {
416
- dep.map.delete(dep.key);
417
- }
418
- }
419
- function removeDep(link) {
420
- const { prevDep, nextDep } = link;
421
- if (prevDep) {
422
- prevDep.nextDep = nextDep;
423
- link.prevDep = void 0;
424
- }
425
- if (nextDep) {
426
- nextDep.prevDep = prevDep;
427
- link.nextDep = void 0;
428
- }
429
- }
430
- function effect(fn, options) {
431
- if (fn.effect instanceof ReactiveEffect) {
432
- fn = fn.effect.fn;
433
- }
434
- const e = new ReactiveEffect(fn);
435
- if (options) {
436
- shared.extend(e, options);
437
- }
438
- try {
439
- e.run();
440
- } catch (err) {
441
- e.stop();
442
- throw err;
443
- }
444
- const runner = e.run.bind(e);
445
- runner.effect = e;
446
- return runner;
447
- }
448
- function stop(runner) {
449
- runner.effect.stop();
450
- }
451
- let shouldTrack = true;
452
- const trackStack = [];
453
- function pauseTracking() {
454
- trackStack.push(shouldTrack);
455
- shouldTrack = false;
456
- }
457
- function enableTracking() {
458
- trackStack.push(shouldTrack);
459
- shouldTrack = true;
460
- }
461
- function resetTracking() {
462
- const last = trackStack.pop();
463
- shouldTrack = last === void 0 ? true : last;
464
- }
465
- function onEffectCleanup(fn, failSilently = false) {
466
- if (activeSub instanceof ReactiveEffect) {
467
- activeSub.cleanup = fn;
468
- }
469
- }
470
- function cleanupEffect(e) {
471
- const { cleanup } = e;
472
- e.cleanup = void 0;
473
- if (cleanup) {
474
- const prevSub = activeSub;
475
- activeSub = void 0;
476
- try {
477
- cleanup();
478
- } finally {
479
- activeSub = prevSub;
480
- }
481
- }
482
- }
483
-
484
- let globalVersion = 0;
485
- class Link {
486
- constructor(sub, dep) {
487
- this.sub = sub;
488
- this.dep = dep;
489
- this.version = dep.version;
490
- this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
491
- }
492
- }
493
- class Dep {
494
- // TODO isolatedDeclarations "__v_skip"
495
- constructor(computed) {
496
- this.computed = computed;
497
- this.version = 0;
498
- /**
499
- * Link between this dep and the current active effect
500
- */
501
- this.activeLink = void 0;
502
- /**
503
- * Doubly linked list representing the subscribing effects (tail)
504
- */
505
- this.subs = void 0;
506
- /**
507
- * For object property deps cleanup
508
- */
509
- this.map = void 0;
510
- this.key = void 0;
511
- /**
512
- * Subscriber counter
513
- */
514
- this.sc = 0;
515
- /**
516
- * @internal
517
- */
518
- this.__v_skip = true;
519
- }
520
- track(debugInfo) {
521
- if (!activeSub || !shouldTrack || activeSub === this.computed) {
522
- return;
523
- }
524
- let link = this.activeLink;
525
- if (link === void 0 || link.sub !== activeSub) {
526
- link = this.activeLink = new Link(activeSub, this);
527
- if (!activeSub.deps) {
528
- activeSub.deps = activeSub.depsTail = link;
529
- } else {
530
- link.prevDep = activeSub.depsTail;
531
- activeSub.depsTail.nextDep = link;
532
- activeSub.depsTail = link;
533
- }
534
- addSub(link);
535
- } else if (link.version === -1) {
536
- link.version = this.version;
537
- if (link.nextDep) {
538
- const next = link.nextDep;
539
- next.prevDep = link.prevDep;
540
- if (link.prevDep) {
541
- link.prevDep.nextDep = next;
542
- }
543
- link.prevDep = activeSub.depsTail;
544
- link.nextDep = void 0;
545
- activeSub.depsTail.nextDep = link;
546
- activeSub.depsTail = link;
547
- if (activeSub.deps === link) {
548
- activeSub.deps = next;
549
- }
550
- }
551
- }
552
- return link;
553
- }
554
- trigger(debugInfo) {
555
- this.version++;
556
- globalVersion++;
557
- this.notify(debugInfo);
558
- }
559
- notify(debugInfo) {
560
- startBatch();
561
- try {
562
- if (false) ;
563
- for (let link = this.subs; link; link = link.prevSub) {
564
- if (link.sub.notify()) {
565
- ;
566
- link.sub.dep.notify();
567
- }
568
- }
569
- } finally {
570
- endBatch();
571
- }
572
- }
573
- }
574
- function addSub(link) {
575
- link.dep.sc++;
576
- if (link.sub.flags & 4) {
577
- const computed = link.dep.computed;
578
- if (computed && !link.dep.subs) {
579
- computed.flags |= 4 | 16;
580
- for (let l = computed.deps; l; l = l.nextDep) {
581
- addSub(l);
582
- }
583
- }
584
- const currentTail = link.dep.subs;
585
- if (currentTail !== link) {
586
- link.prevSub = currentTail;
587
- if (currentTail) currentTail.nextSub = link;
588
- }
589
- link.dep.subs = link;
590
- }
591
- }
592
- const targetMap = /* @__PURE__ */ new WeakMap();
593
- const ITERATE_KEY = Symbol(
594
- ""
595
- );
596
- const MAP_KEY_ITERATE_KEY = Symbol(
597
- ""
598
- );
599
- const ARRAY_ITERATE_KEY = Symbol(
600
- ""
601
- );
602
- function track(target, type, key) {
603
- if (shouldTrack && activeSub) {
604
- let depsMap = targetMap.get(target);
605
- if (!depsMap) {
606
- targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
607
- }
608
- let dep = depsMap.get(key);
609
- if (!dep) {
610
- depsMap.set(key, dep = new Dep());
611
- dep.map = depsMap;
612
- dep.key = key;
613
- }
614
- {
615
- dep.track();
616
- }
617
- }
618
- }
619
- function trigger(target, type, key, newValue, oldValue, oldTarget) {
620
- const depsMap = targetMap.get(target);
621
- if (!depsMap) {
622
- globalVersion++;
623
- return;
624
- }
625
- const run = (dep) => {
626
- if (dep) {
627
- {
628
- dep.trigger();
629
- }
630
- }
631
- };
632
- startBatch();
633
- if (type === "clear") {
634
- depsMap.forEach(run);
635
- } else {
636
- const targetIsArray = shared.isArray(target);
637
- const isArrayIndex = targetIsArray && shared.isIntegerKey(key);
638
- if (targetIsArray && key === "length") {
639
- const newLength = Number(newValue);
640
- depsMap.forEach((dep, key2) => {
641
- if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !shared.isSymbol(key2) && key2 >= newLength) {
642
- run(dep);
643
- }
644
- });
645
- } else {
646
- if (key !== void 0 || depsMap.has(void 0)) {
647
- run(depsMap.get(key));
648
- }
649
- if (isArrayIndex) {
650
- run(depsMap.get(ARRAY_ITERATE_KEY));
651
- }
652
- switch (type) {
653
- case "add":
654
- if (!targetIsArray) {
655
- run(depsMap.get(ITERATE_KEY));
656
- if (shared.isMap(target)) {
657
- run(depsMap.get(MAP_KEY_ITERATE_KEY));
658
- }
659
- } else if (isArrayIndex) {
660
- run(depsMap.get("length"));
661
- }
662
- break;
663
- case "delete":
664
- if (!targetIsArray) {
665
- run(depsMap.get(ITERATE_KEY));
666
- if (shared.isMap(target)) {
667
- run(depsMap.get(MAP_KEY_ITERATE_KEY));
668
- }
669
- }
670
- break;
671
- case "set":
672
- if (shared.isMap(target)) {
673
- run(depsMap.get(ITERATE_KEY));
674
- }
675
- break;
676
- }
677
- }
678
- }
679
- endBatch();
680
- }
681
- function getDepFromReactive(object, key) {
682
- const depMap = targetMap.get(object);
683
- return depMap && depMap.get(key);
684
- }
685
-
686
- function reactiveReadArray(array) {
687
- const raw = toRaw(array);
688
- if (raw === array) return raw;
689
- track(raw, "iterate", ARRAY_ITERATE_KEY);
690
- return isShallow(array) ? raw : raw.map(toReactive);
691
- }
692
- function shallowReadArray(arr) {
693
- track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
694
- return arr;
695
- }
696
- const arrayInstrumentations = {
697
- __proto__: null,
698
- [Symbol.iterator]() {
699
- return iterator(this, Symbol.iterator, toReactive);
700
- },
701
- concat(...args) {
702
- return reactiveReadArray(this).concat(
703
- ...args.map((x) => shared.isArray(x) ? reactiveReadArray(x) : x)
704
- );
705
- },
706
- entries() {
707
- return iterator(this, "entries", (value) => {
708
- value[1] = toReactive(value[1]);
709
- return value;
710
- });
711
- },
712
- every(fn, thisArg) {
713
- return apply(this, "every", fn, thisArg, void 0, arguments);
714
- },
715
- filter(fn, thisArg) {
716
- return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
717
- },
718
- find(fn, thisArg) {
719
- return apply(this, "find", fn, thisArg, toReactive, arguments);
720
- },
721
- findIndex(fn, thisArg) {
722
- return apply(this, "findIndex", fn, thisArg, void 0, arguments);
723
- },
724
- findLast(fn, thisArg) {
725
- return apply(this, "findLast", fn, thisArg, toReactive, arguments);
726
- },
727
- findLastIndex(fn, thisArg) {
728
- return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
729
- },
730
- // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
731
- forEach(fn, thisArg) {
732
- return apply(this, "forEach", fn, thisArg, void 0, arguments);
733
- },
734
- includes(...args) {
735
- return searchProxy(this, "includes", args);
736
- },
737
- indexOf(...args) {
738
- return searchProxy(this, "indexOf", args);
739
- },
740
- join(separator) {
741
- return reactiveReadArray(this).join(separator);
742
- },
743
- // keys() iterator only reads `length`, no optimization required
744
- lastIndexOf(...args) {
745
- return searchProxy(this, "lastIndexOf", args);
746
- },
747
- map(fn, thisArg) {
748
- return apply(this, "map", fn, thisArg, void 0, arguments);
749
- },
750
- pop() {
751
- return noTracking(this, "pop");
752
- },
753
- push(...args) {
754
- return noTracking(this, "push", args);
755
- },
756
- reduce(fn, ...args) {
757
- return reduce(this, "reduce", fn, args);
758
- },
759
- reduceRight(fn, ...args) {
760
- return reduce(this, "reduceRight", fn, args);
761
- },
762
- shift() {
763
- return noTracking(this, "shift");
764
- },
765
- // slice could use ARRAY_ITERATE but also seems to beg for range tracking
766
- some(fn, thisArg) {
767
- return apply(this, "some", fn, thisArg, void 0, arguments);
768
- },
769
- splice(...args) {
770
- return noTracking(this, "splice", args);
771
- },
772
- toReversed() {
773
- return reactiveReadArray(this).toReversed();
774
- },
775
- toSorted(comparer) {
776
- return reactiveReadArray(this).toSorted(comparer);
777
- },
778
- toSpliced(...args) {
779
- return reactiveReadArray(this).toSpliced(...args);
780
- },
781
- unshift(...args) {
782
- return noTracking(this, "unshift", args);
783
- },
784
- values() {
785
- return iterator(this, "values", toReactive);
786
- }
787
- };
788
- function iterator(self, method, wrapValue) {
789
- const arr = shallowReadArray(self);
790
- const iter = arr[method]();
791
- if (arr !== self && !isShallow(self)) {
792
- iter._next = iter.next;
793
- iter.next = () => {
794
- const result = iter._next();
795
- if (!result.done) {
796
- result.value = wrapValue(result.value);
797
- }
798
- return result;
799
- };
800
- }
801
- return iter;
802
- }
803
- const arrayProto = Array.prototype;
804
- function apply(self, method, fn, thisArg, wrappedRetFn, args) {
805
- const arr = shallowReadArray(self);
806
- const needsWrap = arr !== self && !isShallow(self);
807
- const methodFn = arr[method];
808
- if (methodFn !== arrayProto[method]) {
809
- const result2 = methodFn.apply(self, args);
810
- return needsWrap ? toReactive(result2) : result2;
811
- }
812
- let wrappedFn = fn;
813
- if (arr !== self) {
814
- if (needsWrap) {
815
- wrappedFn = function(item, index) {
816
- return fn.call(this, toReactive(item), index, self);
817
- };
818
- } else if (fn.length > 2) {
819
- wrappedFn = function(item, index) {
820
- return fn.call(this, item, index, self);
821
- };
822
- }
823
- }
824
- const result = methodFn.call(arr, wrappedFn, thisArg);
825
- return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
826
- }
827
- function reduce(self, method, fn, args) {
828
- const arr = shallowReadArray(self);
829
- let wrappedFn = fn;
830
- if (arr !== self) {
831
- if (!isShallow(self)) {
832
- wrappedFn = function(acc, item, index) {
833
- return fn.call(this, acc, toReactive(item), index, self);
834
- };
835
- } else if (fn.length > 3) {
836
- wrappedFn = function(acc, item, index) {
837
- return fn.call(this, acc, item, index, self);
838
- };
839
- }
840
- }
841
- return arr[method](wrappedFn, ...args);
842
- }
843
- function searchProxy(self, method, args) {
844
- const arr = toRaw(self);
845
- track(arr, "iterate", ARRAY_ITERATE_KEY);
846
- const res = arr[method](...args);
847
- if ((res === -1 || res === false) && isProxy(args[0])) {
848
- args[0] = toRaw(args[0]);
849
- return arr[method](...args);
850
- }
851
- return res;
852
- }
853
- function noTracking(self, method, args = []) {
854
- pauseTracking();
855
- startBatch();
856
- const res = toRaw(self)[method].apply(self, args);
857
- endBatch();
858
- resetTracking();
859
- return res;
860
- }
861
-
862
- const isNonTrackableKeys = /* @__PURE__ */ shared.makeMap(`__proto__,__v_isRef,__isVue`);
863
- const builtInSymbols = new Set(
864
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(shared.isSymbol)
865
- );
866
- function hasOwnProperty(key) {
867
- if (!shared.isSymbol(key)) key = String(key);
868
- const obj = toRaw(this);
869
- track(obj, "has", key);
870
- return obj.hasOwnProperty(key);
871
- }
872
- class BaseReactiveHandler {
873
- constructor(_isReadonly = false, _isShallow = false) {
874
- this._isReadonly = _isReadonly;
875
- this._isShallow = _isShallow;
876
- }
877
- get(target, key, receiver) {
878
- if (key === "__v_skip") return target["__v_skip"];
879
- const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
880
- if (key === "__v_isReactive") {
881
- return !isReadonly2;
882
- } else if (key === "__v_isReadonly") {
883
- return isReadonly2;
884
- } else if (key === "__v_isShallow") {
885
- return isShallow2;
886
- } else if (key === "__v_raw") {
887
- if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
888
- // this means the receiver is a user proxy of the reactive proxy
889
- Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
890
- return target;
891
- }
892
- return;
893
- }
894
- const targetIsArray = shared.isArray(target);
895
- if (!isReadonly2) {
896
- let fn;
897
- if (targetIsArray && (fn = arrayInstrumentations[key])) {
898
- return fn;
899
- }
900
- if (key === "hasOwnProperty") {
901
- return hasOwnProperty;
902
- }
903
- }
904
- const res = Reflect.get(
905
- target,
906
- key,
907
- // if this is a proxy wrapping a ref, return methods using the raw ref
908
- // as receiver so that we don't have to call `toRaw` on the ref in all
909
- // its class methods
910
- isRef(target) ? target : receiver
911
- );
912
- if (shared.isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
913
- return res;
914
- }
915
- if (!isReadonly2) {
916
- track(target, "get", key);
917
- }
918
- if (isShallow2) {
919
- return res;
920
- }
921
- if (isRef(res)) {
922
- const value = targetIsArray && shared.isIntegerKey(key) ? res : res.value;
923
- return isReadonly2 && shared.isObject(value) ? readonly(value) : value;
924
- }
925
- if (shared.isObject(res)) {
926
- return isReadonly2 ? readonly(res) : reactive(res);
927
- }
928
- return res;
929
- }
930
- }
931
- class MutableReactiveHandler extends BaseReactiveHandler {
932
- constructor(isShallow2 = false) {
933
- super(false, isShallow2);
934
- }
935
- set(target, key, value, receiver) {
936
- let oldValue = target[key];
937
- if (!this._isShallow) {
938
- const isOldValueReadonly = isReadonly(oldValue);
939
- if (!isShallow(value) && !isReadonly(value)) {
940
- oldValue = toRaw(oldValue);
941
- value = toRaw(value);
942
- }
943
- if (!shared.isArray(target) && isRef(oldValue) && !isRef(value)) {
944
- if (isOldValueReadonly) {
945
- return true;
946
- } else {
947
- oldValue.value = value;
948
- return true;
949
- }
950
- }
951
- }
952
- const hadKey = shared.isArray(target) && shared.isIntegerKey(key) ? Number(key) < target.length : shared.hasOwn(target, key);
953
- const result = Reflect.set(
954
- target,
955
- key,
956
- value,
957
- isRef(target) ? target : receiver
958
- );
959
- if (target === toRaw(receiver)) {
960
- if (!hadKey) {
961
- trigger(target, "add", key, value);
962
- } else if (shared.hasChanged(value, oldValue)) {
963
- trigger(target, "set", key, value);
964
- }
965
- }
966
- return result;
967
- }
968
- deleteProperty(target, key) {
969
- const hadKey = shared.hasOwn(target, key);
970
- target[key];
971
- const result = Reflect.deleteProperty(target, key);
972
- if (result && hadKey) {
973
- trigger(target, "delete", key, void 0);
974
- }
975
- return result;
976
- }
977
- has(target, key) {
978
- const result = Reflect.has(target, key);
979
- if (!shared.isSymbol(key) || !builtInSymbols.has(key)) {
980
- track(target, "has", key);
981
- }
982
- return result;
983
- }
984
- ownKeys(target) {
985
- track(
986
- target,
987
- "iterate",
988
- shared.isArray(target) ? "length" : ITERATE_KEY
989
- );
990
- return Reflect.ownKeys(target);
991
- }
992
- }
993
- class ReadonlyReactiveHandler extends BaseReactiveHandler {
994
- constructor(isShallow2 = false) {
995
- super(true, isShallow2);
996
- }
997
- set(target, key) {
998
- return true;
999
- }
1000
- deleteProperty(target, key) {
1001
- return true;
1002
- }
1003
- }
1004
- const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
1005
- const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
1006
- const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
1007
- const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
1008
-
1009
- const toShallow = (value) => value;
1010
- const getProto = (v) => Reflect.getPrototypeOf(v);
1011
- function createIterableMethod(method, isReadonly2, isShallow2) {
1012
- return function(...args) {
1013
- const target = this["__v_raw"];
1014
- const rawTarget = toRaw(target);
1015
- const targetIsMap = shared.isMap(rawTarget);
1016
- const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
1017
- const isKeyOnly = method === "keys" && targetIsMap;
1018
- const innerIterator = target[method](...args);
1019
- const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
1020
- !isReadonly2 && track(
1021
- rawTarget,
1022
- "iterate",
1023
- isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
1024
- );
1025
- return {
1026
- // iterator protocol
1027
- next() {
1028
- const { value, done } = innerIterator.next();
1029
- return done ? { value, done } : {
1030
- value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
1031
- done
1032
- };
1033
- },
1034
- // iterable protocol
1035
- [Symbol.iterator]() {
1036
- return this;
1037
- }
1038
- };
1039
- };
1040
- }
1041
- function createReadonlyMethod(type) {
1042
- return function(...args) {
1043
- return type === "delete" ? false : type === "clear" ? void 0 : this;
1044
- };
1045
- }
1046
- function createInstrumentations(readonly, shallow) {
1047
- const instrumentations = {
1048
- get(key) {
1049
- const target = this["__v_raw"];
1050
- const rawTarget = toRaw(target);
1051
- const rawKey = toRaw(key);
1052
- if (!readonly) {
1053
- if (shared.hasChanged(key, rawKey)) {
1054
- track(rawTarget, "get", key);
1055
- }
1056
- track(rawTarget, "get", rawKey);
1057
- }
1058
- const { has } = getProto(rawTarget);
1059
- const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
1060
- if (has.call(rawTarget, key)) {
1061
- return wrap(target.get(key));
1062
- } else if (has.call(rawTarget, rawKey)) {
1063
- return wrap(target.get(rawKey));
1064
- } else if (target !== rawTarget) {
1065
- target.get(key);
1066
- }
1067
- },
1068
- get size() {
1069
- const target = this["__v_raw"];
1070
- !readonly && track(toRaw(target), "iterate", ITERATE_KEY);
1071
- return target.size;
1072
- },
1073
- has(key) {
1074
- const target = this["__v_raw"];
1075
- const rawTarget = toRaw(target);
1076
- const rawKey = toRaw(key);
1077
- if (!readonly) {
1078
- if (shared.hasChanged(key, rawKey)) {
1079
- track(rawTarget, "has", key);
1080
- }
1081
- track(rawTarget, "has", rawKey);
1082
- }
1083
- return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
1084
- },
1085
- forEach(callback, thisArg) {
1086
- const observed = this;
1087
- const target = observed["__v_raw"];
1088
- const rawTarget = toRaw(target);
1089
- const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
1090
- !readonly && track(rawTarget, "iterate", ITERATE_KEY);
1091
- return target.forEach((value, key) => {
1092
- return callback.call(thisArg, wrap(value), wrap(key), observed);
1093
- });
1094
- }
1095
- };
1096
- shared.extend(
1097
- instrumentations,
1098
- readonly ? {
1099
- add: createReadonlyMethod("add"),
1100
- set: createReadonlyMethod("set"),
1101
- delete: createReadonlyMethod("delete"),
1102
- clear: createReadonlyMethod("clear")
1103
- } : {
1104
- add(value) {
1105
- if (!shallow && !isShallow(value) && !isReadonly(value)) {
1106
- value = toRaw(value);
1107
- }
1108
- const target = toRaw(this);
1109
- const proto = getProto(target);
1110
- const hadKey = proto.has.call(target, value);
1111
- if (!hadKey) {
1112
- target.add(value);
1113
- trigger(target, "add", value, value);
1114
- }
1115
- return this;
1116
- },
1117
- set(key, value) {
1118
- if (!shallow && !isShallow(value) && !isReadonly(value)) {
1119
- value = toRaw(value);
1120
- }
1121
- const target = toRaw(this);
1122
- const { has, get } = getProto(target);
1123
- let hadKey = has.call(target, key);
1124
- if (!hadKey) {
1125
- key = toRaw(key);
1126
- hadKey = has.call(target, key);
1127
- }
1128
- const oldValue = get.call(target, key);
1129
- target.set(key, value);
1130
- if (!hadKey) {
1131
- trigger(target, "add", key, value);
1132
- } else if (shared.hasChanged(value, oldValue)) {
1133
- trigger(target, "set", key, value);
1134
- }
1135
- return this;
1136
- },
1137
- delete(key) {
1138
- const target = toRaw(this);
1139
- const { has, get } = getProto(target);
1140
- let hadKey = has.call(target, key);
1141
- if (!hadKey) {
1142
- key = toRaw(key);
1143
- hadKey = has.call(target, key);
1144
- }
1145
- get ? get.call(target, key) : void 0;
1146
- const result = target.delete(key);
1147
- if (hadKey) {
1148
- trigger(target, "delete", key, void 0);
1149
- }
1150
- return result;
1151
- },
1152
- clear() {
1153
- const target = toRaw(this);
1154
- const hadItems = target.size !== 0;
1155
- const result = target.clear();
1156
- if (hadItems) {
1157
- trigger(
1158
- target,
1159
- "clear",
1160
- void 0,
1161
- void 0);
1162
- }
1163
- return result;
1164
- }
1165
- }
1166
- );
1167
- const iteratorMethods = [
1168
- "keys",
1169
- "values",
1170
- "entries",
1171
- Symbol.iterator
1172
- ];
1173
- iteratorMethods.forEach((method) => {
1174
- instrumentations[method] = createIterableMethod(method, readonly, shallow);
1175
- });
1176
- return instrumentations;
1177
- }
1178
- function createInstrumentationGetter(isReadonly2, shallow) {
1179
- const instrumentations = createInstrumentations(isReadonly2, shallow);
1180
- return (target, key, receiver) => {
1181
- if (key === "__v_isReactive") {
1182
- return !isReadonly2;
1183
- } else if (key === "__v_isReadonly") {
1184
- return isReadonly2;
1185
- } else if (key === "__v_raw") {
1186
- return target;
1187
- }
1188
- return Reflect.get(
1189
- shared.hasOwn(instrumentations, key) && key in target ? instrumentations : target,
1190
- key,
1191
- receiver
1192
- );
1193
- };
1194
- }
1195
- const mutableCollectionHandlers = {
1196
- get: /* @__PURE__ */ createInstrumentationGetter(false, false)
1197
- };
1198
- const shallowCollectionHandlers = {
1199
- get: /* @__PURE__ */ createInstrumentationGetter(false, true)
1200
- };
1201
- const readonlyCollectionHandlers = {
1202
- get: /* @__PURE__ */ createInstrumentationGetter(true, false)
1203
- };
1204
- const shallowReadonlyCollectionHandlers = {
1205
- get: /* @__PURE__ */ createInstrumentationGetter(true, true)
1206
- };
1207
-
1208
- const reactiveMap = /* @__PURE__ */ new WeakMap();
1209
- const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
1210
- const readonlyMap = /* @__PURE__ */ new WeakMap();
1211
- const shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
1212
- function targetTypeMap(rawType) {
1213
- switch (rawType) {
1214
- case "Object":
1215
- case "Array":
1216
- return 1 /* COMMON */;
1217
- case "Map":
1218
- case "Set":
1219
- case "WeakMap":
1220
- case "WeakSet":
1221
- return 2 /* COLLECTION */;
1222
- default:
1223
- return 0 /* INVALID */;
1224
- }
1225
- }
1226
- function getTargetType(value) {
1227
- return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(shared.toRawType(value));
1228
- }
1229
- function reactive(target) {
1230
- if (isReadonly(target)) {
1231
- return target;
1232
- }
1233
- return createReactiveObject(
1234
- target,
1235
- false,
1236
- mutableHandlers,
1237
- mutableCollectionHandlers,
1238
- reactiveMap
1239
- );
1240
- }
1241
- function shallowReactive(target) {
1242
- return createReactiveObject(
1243
- target,
1244
- false,
1245
- shallowReactiveHandlers,
1246
- shallowCollectionHandlers,
1247
- shallowReactiveMap
1248
- );
1249
- }
1250
- function readonly(target) {
1251
- return createReactiveObject(
1252
- target,
1253
- true,
1254
- readonlyHandlers,
1255
- readonlyCollectionHandlers,
1256
- readonlyMap
1257
- );
1258
- }
1259
- function shallowReadonly(target) {
1260
- return createReactiveObject(
1261
- target,
1262
- true,
1263
- shallowReadonlyHandlers,
1264
- shallowReadonlyCollectionHandlers,
1265
- shallowReadonlyMap
1266
- );
1267
- }
1268
- function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
1269
- if (!shared.isObject(target)) {
1270
- return target;
1271
- }
1272
- if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
1273
- return target;
1274
- }
1275
- const targetType = getTargetType(target);
1276
- if (targetType === 0 /* INVALID */) {
1277
- return target;
1278
- }
1279
- const existingProxy = proxyMap.get(target);
1280
- if (existingProxy) {
1281
- return existingProxy;
1282
- }
1283
- const proxy = new Proxy(
1284
- target,
1285
- targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
1286
- );
1287
- proxyMap.set(target, proxy);
1288
- return proxy;
1289
- }
1290
- function isReactive(value) {
1291
- if (isReadonly(value)) {
1292
- return isReactive(value["__v_raw"]);
1293
- }
1294
- return !!(value && value["__v_isReactive"]);
1295
- }
1296
- function isReadonly(value) {
1297
- return !!(value && value["__v_isReadonly"]);
1298
- }
1299
- function isShallow(value) {
1300
- return !!(value && value["__v_isShallow"]);
1301
- }
1302
- function isProxy(value) {
1303
- return value ? !!value["__v_raw"] : false;
1304
- }
1305
- function toRaw(observed) {
1306
- const raw = observed && observed["__v_raw"];
1307
- return raw ? toRaw(raw) : observed;
1308
- }
1309
- function markRaw(value) {
1310
- if (!shared.hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
1311
- shared.def(value, "__v_skip", true);
1312
- }
1313
- return value;
1314
- }
1315
- const toReactive = (value) => shared.isObject(value) ? reactive(value) : value;
1316
- const toReadonly = (value) => shared.isObject(value) ? readonly(value) : value;
1317
-
1318
- function isRef(r) {
1319
- return r ? r["__v_isRef"] === true : false;
1320
- }
1321
- function ref(value) {
1322
- return createRef(value, false);
1323
- }
1324
- function shallowRef(value) {
1325
- return createRef(value, true);
1326
- }
1327
- function createRef(rawValue, shallow) {
1328
- if (isRef(rawValue)) {
1329
- return rawValue;
1330
- }
1331
- return new RefImpl(rawValue, shallow);
1332
- }
1333
- class RefImpl {
1334
- constructor(value, isShallow2) {
1335
- this.dep = new Dep();
1336
- this["__v_isRef"] = true;
1337
- this["__v_isShallow"] = false;
1338
- this._rawValue = isShallow2 ? value : toRaw(value);
1339
- this._value = isShallow2 ? value : toReactive(value);
1340
- this["__v_isShallow"] = isShallow2;
1341
- }
1342
- get value() {
1343
- {
1344
- this.dep.track();
1345
- }
1346
- return this._value;
1347
- }
1348
- set value(newValue) {
1349
- const oldValue = this._rawValue;
1350
- const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue);
1351
- newValue = useDirectValue ? newValue : toRaw(newValue);
1352
- if (shared.hasChanged(newValue, oldValue)) {
1353
- this._rawValue = newValue;
1354
- this._value = useDirectValue ? newValue : toReactive(newValue);
1355
- {
1356
- this.dep.trigger();
1357
- }
1358
- }
1359
- }
1360
- }
1361
- function triggerRef(ref2) {
1362
- if (ref2.dep) {
1363
- {
1364
- ref2.dep.trigger();
1365
- }
1366
- }
1367
- }
1368
- function unref(ref2) {
1369
- return isRef(ref2) ? ref2.value : ref2;
1370
- }
1371
- function toValue(source) {
1372
- return shared.isFunction(source) ? source() : unref(source);
1373
- }
1374
- const shallowUnwrapHandlers = {
1375
- get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
1376
- set: (target, key, value, receiver) => {
1377
- const oldValue = target[key];
1378
- if (isRef(oldValue) && !isRef(value)) {
1379
- oldValue.value = value;
1380
- return true;
1381
- } else {
1382
- return Reflect.set(target, key, value, receiver);
1383
- }
1384
- }
1385
- };
1386
- function proxyRefs(objectWithRefs) {
1387
- return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
1388
- }
1389
- class CustomRefImpl {
1390
- constructor(factory) {
1391
- this["__v_isRef"] = true;
1392
- this._value = void 0;
1393
- const dep = this.dep = new Dep();
1394
- const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
1395
- this._get = get;
1396
- this._set = set;
1397
- }
1398
- get value() {
1399
- return this._value = this._get();
1400
- }
1401
- set value(newVal) {
1402
- this._set(newVal);
1403
- }
1404
- }
1405
- function customRef(factory) {
1406
- return new CustomRefImpl(factory);
1407
- }
1408
- function toRefs(object) {
1409
- const ret = shared.isArray(object) ? new Array(object.length) : {};
1410
- for (const key in object) {
1411
- ret[key] = propertyToRef(object, key);
1412
- }
1413
- return ret;
1414
- }
1415
- class ObjectRefImpl {
1416
- constructor(_object, _key, _defaultValue) {
1417
- this._object = _object;
1418
- this._key = _key;
1419
- this._defaultValue = _defaultValue;
1420
- this["__v_isRef"] = true;
1421
- this._value = void 0;
1422
- }
1423
- get value() {
1424
- const val = this._object[this._key];
1425
- return this._value = val === void 0 ? this._defaultValue : val;
1426
- }
1427
- set value(newVal) {
1428
- this._object[this._key] = newVal;
1429
- }
1430
- get dep() {
1431
- return getDepFromReactive(toRaw(this._object), this._key);
1432
- }
1433
- }
1434
- class GetterRefImpl {
1435
- constructor(_getter) {
1436
- this._getter = _getter;
1437
- this["__v_isRef"] = true;
1438
- this["__v_isReadonly"] = true;
1439
- this._value = void 0;
1440
- }
1441
- get value() {
1442
- return this._value = this._getter();
1443
- }
1444
- }
1445
- function toRef(source, key, defaultValue) {
1446
- if (isRef(source)) {
1447
- return source;
1448
- } else if (shared.isFunction(source)) {
1449
- return new GetterRefImpl(source);
1450
- } else if (shared.isObject(source) && arguments.length > 1) {
1451
- return propertyToRef(source, key, defaultValue);
1452
- } else {
1453
- return ref(source);
1454
- }
1455
- }
1456
- function propertyToRef(source, key, defaultValue) {
1457
- const val = source[key];
1458
- return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue);
1459
- }
1460
-
1461
- class ComputedRefImpl {
1462
- constructor(fn, setter, isSSR) {
1463
- this.fn = fn;
1464
- this.setter = setter;
1465
- /**
1466
- * @internal
1467
- */
1468
- this._value = void 0;
1469
- /**
1470
- * @internal
1471
- */
1472
- this.dep = new Dep(this);
1473
- /**
1474
- * @internal
1475
- */
1476
- this.__v_isRef = true;
1477
- // TODO isolatedDeclarations "__v_isReadonly"
1478
- // A computed is also a subscriber that tracks other deps
1479
- /**
1480
- * @internal
1481
- */
1482
- this.deps = void 0;
1483
- /**
1484
- * @internal
1485
- */
1486
- this.depsTail = void 0;
1487
- /**
1488
- * @internal
1489
- */
1490
- this.flags = 16;
1491
- /**
1492
- * @internal
1493
- */
1494
- this.globalVersion = globalVersion - 1;
1495
- /**
1496
- * @internal
1497
- */
1498
- this.next = void 0;
1499
- // for backwards compat
1500
- this.effect = this;
1501
- this["__v_isReadonly"] = !setter;
1502
- this.isSSR = isSSR;
1503
- }
1504
- /**
1505
- * @internal
1506
- */
1507
- notify() {
1508
- this.flags |= 16;
1509
- if (!(this.flags & 8) && // avoid infinite self recursion
1510
- activeSub !== this) {
1511
- batch(this, true);
1512
- return true;
1513
- }
1514
- }
1515
- get value() {
1516
- const link = this.dep.track();
1517
- refreshComputed(this);
1518
- if (link) {
1519
- link.version = this.dep.version;
1520
- }
1521
- return this._value;
1522
- }
1523
- set value(newValue) {
1524
- if (this.setter) {
1525
- this.setter(newValue);
1526
- }
1527
- }
1528
- }
1529
- function computed(getterOrOptions, debugOptions, isSSR = false) {
1530
- let getter;
1531
- let setter;
1532
- if (shared.isFunction(getterOrOptions)) {
1533
- getter = getterOrOptions;
1534
- } else {
1535
- getter = getterOrOptions.get;
1536
- setter = getterOrOptions.set;
1537
- }
1538
- const cRef = new ComputedRefImpl(getter, setter, isSSR);
1539
- return cRef;
1540
- }
1541
-
1542
- const TrackOpTypes = {
1543
- "GET": "get",
1544
- "HAS": "has",
1545
- "ITERATE": "iterate"
1546
- };
1547
- const TriggerOpTypes = {
1548
- "SET": "set",
1549
- "ADD": "add",
1550
- "DELETE": "delete",
1551
- "CLEAR": "clear"
1552
- };
1553
- const ReactiveFlags = {
1554
- "SKIP": "__v_skip",
1555
- "IS_REACTIVE": "__v_isReactive",
1556
- "IS_READONLY": "__v_isReadonly",
1557
- "IS_SHALLOW": "__v_isShallow",
1558
- "RAW": "__v_raw",
1559
- "IS_REF": "__v_isRef"
1560
- };
1561
-
1562
- const WatchErrorCodes = {
1563
- "WATCH_GETTER": 2,
1564
- "2": "WATCH_GETTER",
1565
- "WATCH_CALLBACK": 3,
1566
- "3": "WATCH_CALLBACK",
1567
- "WATCH_CLEANUP": 4,
1568
- "4": "WATCH_CLEANUP"
1569
- };
1570
- const INITIAL_WATCHER_VALUE = {};
1571
- const cleanupMap = /* @__PURE__ */ new WeakMap();
1572
- let activeWatcher = void 0;
1573
- function getCurrentWatcher() {
1574
- return activeWatcher;
1575
- }
1576
- function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {
1577
- if (owner) {
1578
- let cleanups = cleanupMap.get(owner);
1579
- if (!cleanups) cleanupMap.set(owner, cleanups = []);
1580
- cleanups.push(cleanupFn);
1581
- }
1582
- }
1583
- function watch(source, cb, options = shared.EMPTY_OBJ) {
1584
- const { immediate, deep, once, scheduler, augmentJob, call } = options;
1585
- const reactiveGetter = (source2) => {
1586
- if (deep) return source2;
1587
- if (isShallow(source2) || deep === false || deep === 0)
1588
- return traverse(source2, 1);
1589
- return traverse(source2);
1590
- };
1591
- let effect;
1592
- let getter;
1593
- let cleanup;
1594
- let boundCleanup;
1595
- let forceTrigger = false;
1596
- let isMultiSource = false;
1597
- if (isRef(source)) {
1598
- getter = () => source.value;
1599
- forceTrigger = isShallow(source);
1600
- } else if (isReactive(source)) {
1601
- getter = () => reactiveGetter(source);
1602
- forceTrigger = true;
1603
- } else if (shared.isArray(source)) {
1604
- isMultiSource = true;
1605
- forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
1606
- getter = () => source.map((s) => {
1607
- if (isRef(s)) {
1608
- return s.value;
1609
- } else if (isReactive(s)) {
1610
- return reactiveGetter(s);
1611
- } else if (shared.isFunction(s)) {
1612
- return call ? call(s, 2) : s();
1613
- } else ;
1614
- });
1615
- } else if (shared.isFunction(source)) {
1616
- if (cb) {
1617
- getter = call ? () => call(source, 2) : source;
1618
- } else {
1619
- getter = () => {
1620
- if (cleanup) {
1621
- pauseTracking();
1622
- try {
1623
- cleanup();
1624
- } finally {
1625
- resetTracking();
1626
- }
1627
- }
1628
- const currentEffect = activeWatcher;
1629
- activeWatcher = effect;
1630
- try {
1631
- return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
1632
- } finally {
1633
- activeWatcher = currentEffect;
1634
- }
1635
- };
1636
- }
1637
- } else {
1638
- getter = shared.NOOP;
1639
- }
1640
- if (cb && deep) {
1641
- const baseGetter = getter;
1642
- const depth = deep === true ? Infinity : deep;
1643
- getter = () => traverse(baseGetter(), depth);
1644
- }
1645
- const scope = getCurrentScope();
1646
- const watchHandle = () => {
1647
- effect.stop();
1648
- if (scope && scope.active) {
1649
- shared.remove(scope.effects, effect);
1650
- }
1651
- };
1652
- if (once && cb) {
1653
- const _cb = cb;
1654
- cb = (...args) => {
1655
- _cb(...args);
1656
- watchHandle();
1657
- };
1658
- }
1659
- let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
1660
- const job = (immediateFirstRun) => {
1661
- if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) {
1662
- return;
1663
- }
1664
- if (cb) {
1665
- const newValue = effect.run();
1666
- if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => shared.hasChanged(v, oldValue[i])) : shared.hasChanged(newValue, oldValue))) {
1667
- if (cleanup) {
1668
- cleanup();
1669
- }
1670
- const currentWatcher = activeWatcher;
1671
- activeWatcher = effect;
1672
- try {
1673
- const args = [
1674
- newValue,
1675
- // pass undefined as the old value when it's changed for the first time
1676
- oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
1677
- boundCleanup
1678
- ];
1679
- oldValue = newValue;
1680
- call ? call(cb, 3, args) : (
1681
- // @ts-expect-error
1682
- cb(...args)
1683
- );
1684
- } finally {
1685
- activeWatcher = currentWatcher;
1686
- }
1687
- }
1688
- } else {
1689
- effect.run();
1690
- }
1691
- };
1692
- if (augmentJob) {
1693
- augmentJob(job);
1694
- }
1695
- effect = new ReactiveEffect(getter);
1696
- effect.scheduler = scheduler ? () => scheduler(job, false) : job;
1697
- boundCleanup = (fn) => onWatcherCleanup(fn, false, effect);
1698
- cleanup = effect.onStop = () => {
1699
- const cleanups = cleanupMap.get(effect);
1700
- if (cleanups) {
1701
- if (call) {
1702
- call(cleanups, 4);
1703
- } else {
1704
- for (const cleanup2 of cleanups) cleanup2();
1705
- }
1706
- cleanupMap.delete(effect);
1707
- }
1708
- };
1709
- if (cb) {
1710
- if (immediate) {
1711
- job(true);
1712
- } else {
1713
- oldValue = effect.run();
1714
- }
1715
- } else if (scheduler) {
1716
- scheduler(job.bind(null, true), true);
1717
- } else {
1718
- effect.run();
1719
- }
1720
- watchHandle.pause = effect.pause.bind(effect);
1721
- watchHandle.resume = effect.resume.bind(effect);
1722
- watchHandle.stop = watchHandle;
1723
- return watchHandle;
1724
- }
1725
- function traverse(value, depth = Infinity, seen) {
1726
- if (depth <= 0 || !shared.isObject(value) || value["__v_skip"]) {
1727
- return value;
1728
- }
1729
- seen = seen || /* @__PURE__ */ new Map();
1730
- if ((seen.get(value) || 0) >= depth) {
1731
- return value;
1732
- }
1733
- seen.set(value, depth);
1734
- depth--;
1735
- if (isRef(value)) {
1736
- traverse(value.value, depth, seen);
1737
- } else if (shared.isArray(value)) {
1738
- for (let i = 0; i < value.length; i++) {
1739
- traverse(value[i], depth, seen);
1740
- }
1741
- } else if (shared.isSet(value) || shared.isMap(value)) {
1742
- value.forEach((v) => {
1743
- traverse(v, depth, seen);
1744
- });
1745
- } else if (shared.isPlainObject(value)) {
1746
- for (const key in value) {
1747
- traverse(value[key], depth, seen);
1748
- }
1749
- for (const key of Object.getOwnPropertySymbols(value)) {
1750
- if (Object.prototype.propertyIsEnumerable.call(value, key)) {
1751
- traverse(value[key], depth, seen);
1752
- }
1753
- }
1754
- }
1755
- return value;
1756
- }
1757
-
1758
- exports.ARRAY_ITERATE_KEY = ARRAY_ITERATE_KEY;
1759
- exports.EffectFlags = EffectFlags;
1760
- exports.EffectScope = EffectScope;
1761
- exports.ITERATE_KEY = ITERATE_KEY;
1762
- exports.MAP_KEY_ITERATE_KEY = MAP_KEY_ITERATE_KEY;
1763
- exports.ReactiveEffect = ReactiveEffect;
1764
- exports.ReactiveFlags = ReactiveFlags;
1765
- exports.TrackOpTypes = TrackOpTypes;
1766
- exports.TriggerOpTypes = TriggerOpTypes;
1767
- exports.WatchErrorCodes = WatchErrorCodes;
1768
- exports.computed = computed;
1769
- exports.customRef = customRef;
1770
- exports.effect = effect;
1771
- exports.effectScope = effectScope;
1772
- exports.enableTracking = enableTracking;
1773
- exports.getCurrentScope = getCurrentScope;
1774
- exports.getCurrentWatcher = getCurrentWatcher;
1775
- exports.isProxy = isProxy;
1776
- exports.isReactive = isReactive;
1777
- exports.isReadonly = isReadonly;
1778
- exports.isRef = isRef;
1779
- exports.isShallow = isShallow;
1780
- exports.markRaw = markRaw;
1781
- exports.onEffectCleanup = onEffectCleanup;
1782
- exports.onScopeDispose = onScopeDispose;
1783
- exports.onWatcherCleanup = onWatcherCleanup;
1784
- exports.pauseTracking = pauseTracking;
1785
- exports.proxyRefs = proxyRefs;
1786
- exports.reactive = reactive;
1787
- exports.reactiveReadArray = reactiveReadArray;
1788
- exports.readonly = readonly;
1789
- exports.ref = ref;
1790
- exports.resetTracking = resetTracking;
1791
- exports.shallowReactive = shallowReactive;
1792
- exports.shallowReadArray = shallowReadArray;
1793
- exports.shallowReadonly = shallowReadonly;
1794
- exports.shallowRef = shallowRef;
1795
- exports.stop = stop;
1796
- exports.toRaw = toRaw;
1797
- exports.toReactive = toReactive;
1798
- exports.toReadonly = toReadonly;
1799
- exports.toRef = toRef;
1800
- exports.toRefs = toRefs;
1801
- exports.toValue = toValue;
1802
- exports.track = track;
1803
- exports.traverse = traverse;
1804
- exports.trigger = trigger;
1805
- exports.triggerRef = triggerRef;
1806
- exports.unref = unref;
1807
- exports.watch = watch;