@elgap/edukaai 0.1.0

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