@highstate/designer 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 (335) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/1jbH28Ud.js +1 -0
  3. package/.output/public/_nuxt/BAsjE6c8.js +69 -0
  4. package/.output/public/_nuxt/D4AvvZ3p.js +1 -0
  5. package/.output/public/_nuxt/DcSK-0AR.js +1 -0
  6. package/.output/public/_nuxt/builds/latest.json +1 -0
  7. package/.output/public/_nuxt/builds/meta/0ea9cf82-d280-4ae3-95c8-082f396c88c7.json +1 -0
  8. package/.output/public/_nuxt/entry.Df9XoxdB.css +1 -0
  9. package/.output/public/_nuxt/error-404.SWzu_puR.css +1 -0
  10. package/.output/public/_nuxt/error-500.Bkv_zTjr.css +1 -0
  11. package/.output/public/favicon.ico +0 -0
  12. package/.output/public/robots.txt +1 -0
  13. package/.output/server/chunks/_/error-500.mjs +8 -0
  14. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  15. package/.output/server/chunks/_/index.mjs +229 -0
  16. package/.output/server/chunks/_/index.mjs.map +1 -0
  17. package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs +6 -0
  18. package/.output/server/chunks/build/ComponentIcon-styles.CVav5bPa.mjs.map +1 -0
  19. package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs +6 -0
  20. package/.output/server/chunks/build/ComponentIcon-styles.DJ59dQiL.mjs.map +1 -0
  21. package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs +6 -0
  22. package/.output/server/chunks/build/ComponentNode-styles.5_iLK35r.mjs.map +1 -0
  23. package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs +6 -0
  24. package/.output/server/chunks/build/ComponentNode-styles.7QJfF7h3.mjs.map +1 -0
  25. package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs +7 -0
  26. package/.output/server/chunks/build/ProjectCanvas-styles.B6yAk_TI.mjs.map +1 -0
  27. package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs +6 -0
  28. package/.output/server/chunks/build/ProjectCanvas-styles.BxP3nGl6.mjs.map +1 -0
  29. package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs +6 -0
  30. package/.output/server/chunks/build/ProjectCanvas-styles.CsOcKxeb.mjs.map +1 -0
  31. package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs +6 -0
  32. package/.output/server/chunks/build/VAppBar-styles.CaKoZ7v7.mjs.map +1 -0
  33. package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs +6 -0
  34. package/.output/server/chunks/build/VAvatar-styles.BloWs-NL.mjs.map +1 -0
  35. package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs +6 -0
  36. package/.output/server/chunks/build/VBtn-styles.5s8xLaPo.mjs.map +1 -0
  37. package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs +6 -0
  38. package/.output/server/chunks/build/VBtnGroup-styles.B8WSSc7t.mjs.map +1 -0
  39. package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs +6 -0
  40. package/.output/server/chunks/build/VBtnToggle-styles.DRWSZkHZ.mjs.map +1 -0
  41. package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs +6 -0
  42. package/.output/server/chunks/build/VCard-styles.BpQql6F5.mjs.map +1 -0
  43. package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs +6 -0
  44. package/.output/server/chunks/build/VChip-styles.KvWWirvS.mjs.map +1 -0
  45. package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs +6 -0
  46. package/.output/server/chunks/build/VChipGroup-styles.SezSZY5I.mjs.map +1 -0
  47. package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs +6 -0
  48. package/.output/server/chunks/build/VCounter-styles.DlbjDB7E.mjs.map +1 -0
  49. package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs +6 -0
  50. package/.output/server/chunks/build/VDivider-styles.B5vnnFG1.mjs.map +1 -0
  51. package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs +6 -0
  52. package/.output/server/chunks/build/VField-styles.DkgSx68C.mjs.map +1 -0
  53. package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs +6 -0
  54. package/.output/server/chunks/build/VIcon-styles._8GsAkxR.mjs.map +1 -0
  55. package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs +6 -0
  56. package/.output/server/chunks/build/VImg-styles.BQYU2VXD.mjs.map +1 -0
  57. package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs +6 -0
  58. package/.output/server/chunks/build/VInput-styles.Cr1uxB2l.mjs.map +1 -0
  59. package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs +6 -0
  60. package/.output/server/chunks/build/VLabel-styles.OzbLNKaZ.mjs.map +1 -0
  61. package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs +6 -0
  62. package/.output/server/chunks/build/VLayout-styles.DBbIk0kn.mjs.map +1 -0
  63. package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs +6 -0
  64. package/.output/server/chunks/build/VMain-styles.CI15Xs8y.mjs.map +1 -0
  65. package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs +6 -0
  66. package/.output/server/chunks/build/VMessages-styles.C9dRMjf9.mjs.map +1 -0
  67. package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs +6 -0
  68. package/.output/server/chunks/build/VNavigationDrawer-styles.BcT_iIsk.mjs.map +1 -0
  69. package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs +6 -0
  70. package/.output/server/chunks/build/VProgressCircular-styles.CWpXfZ6Q.mjs.map +1 -0
  71. package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs +6 -0
  72. package/.output/server/chunks/build/VProgressLinear-styles.DjitzH7c.mjs.map +1 -0
  73. package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs +6 -0
  74. package/.output/server/chunks/build/VResponsive-styles.KUuswLet.mjs.map +1 -0
  75. package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs +6 -0
  76. package/.output/server/chunks/build/VSlideGroup-styles.fT1UQTdA.mjs.map +1 -0
  77. package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs +6 -0
  78. package/.output/server/chunks/build/VSpacer-styles.B_L0TU3-.mjs.map +1 -0
  79. package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs +6 -0
  80. package/.output/server/chunks/build/VTextField-styles.e8Z3kCRA.mjs.map +1 -0
  81. package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs +6 -0
  82. package/.output/server/chunks/build/VToolbar-styles.Bvr717Vh.mjs.map +1 -0
  83. package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs +6 -0
  84. package/.output/server/chunks/build/app-styles.-ZJ3yGO7.mjs.map +1 -0
  85. package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs +6 -0
  86. package/.output/server/chunks/build/app-styles.Ckjy6RrK.mjs.map +1 -0
  87. package/.output/server/chunks/build/client.manifest.mjs +82 -0
  88. package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
  89. package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs +4 -0
  90. package/.output/server/chunks/build/entry-styles-10.mjs-BpLi0qx6.mjs.map +1 -0
  91. package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs +4 -0
  92. package/.output/server/chunks/build/entry-styles-11.mjs-6TeH4I7w.mjs.map +1 -0
  93. package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs +4 -0
  94. package/.output/server/chunks/build/entry-styles-12.mjs-DU1igcRL.mjs.map +1 -0
  95. package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs +4 -0
  96. package/.output/server/chunks/build/entry-styles-13.mjs-lZGUjhhD.mjs.map +1 -0
  97. package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs +4 -0
  98. package/.output/server/chunks/build/entry-styles-14.mjs-BRdr1-px.mjs.map +1 -0
  99. package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs +4 -0
  100. package/.output/server/chunks/build/entry-styles-15.mjs-mUPL6Nc9.mjs.map +1 -0
  101. package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs +4 -0
  102. package/.output/server/chunks/build/entry-styles-16.mjs-CPJMcIL1.mjs.map +1 -0
  103. package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs +4 -0
  104. package/.output/server/chunks/build/entry-styles-17.mjs-CQOORRn5.mjs.map +1 -0
  105. package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs +4 -0
  106. package/.output/server/chunks/build/entry-styles-18.mjs-C7z1LTi9.mjs.map +1 -0
  107. package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs +4 -0
  108. package/.output/server/chunks/build/entry-styles-19.mjs-it-LBeIM.mjs.map +1 -0
  109. package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs +4 -0
  110. package/.output/server/chunks/build/entry-styles-2.mjs-CIKbACDD.mjs.map +1 -0
  111. package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs +4 -0
  112. package/.output/server/chunks/build/entry-styles-20.mjs-Igpd8vNA.mjs.map +1 -0
  113. package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs +4 -0
  114. package/.output/server/chunks/build/entry-styles-21.mjs-VGEW4cec.mjs.map +1 -0
  115. package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs +4 -0
  116. package/.output/server/chunks/build/entry-styles-22.mjs-DLAUZ2Ss.mjs.map +1 -0
  117. package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs +4 -0
  118. package/.output/server/chunks/build/entry-styles-23.mjs-D6dUb4Q1.mjs.map +1 -0
  119. package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs +4 -0
  120. package/.output/server/chunks/build/entry-styles-24.mjs-CR2CscOT.mjs.map +1 -0
  121. package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs +4 -0
  122. package/.output/server/chunks/build/entry-styles-25.mjs-gcGnyYj1.mjs.map +1 -0
  123. package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs +4 -0
  124. package/.output/server/chunks/build/entry-styles-26.mjs-BGcP6LjH.mjs.map +1 -0
  125. package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs +4 -0
  126. package/.output/server/chunks/build/entry-styles-27.mjs-DKPK367G.mjs.map +1 -0
  127. package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs +4 -0
  128. package/.output/server/chunks/build/entry-styles-28.mjs-BxlgEOUH.mjs.map +1 -0
  129. package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs +4 -0
  130. package/.output/server/chunks/build/entry-styles-29.mjs-EoZxjH32.mjs.map +1 -0
  131. package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs +4 -0
  132. package/.output/server/chunks/build/entry-styles-3.mjs-BZeC22He.mjs.map +1 -0
  133. package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs +4 -0
  134. package/.output/server/chunks/build/entry-styles-30.mjs-CoAZ885y.mjs.map +1 -0
  135. package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs +4 -0
  136. package/.output/server/chunks/build/entry-styles-31.mjs-JYOGcJtH.mjs.map +1 -0
  137. package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs +4 -0
  138. package/.output/server/chunks/build/entry-styles-32.mjs-lT-SGbzA.mjs.map +1 -0
  139. package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs +4 -0
  140. package/.output/server/chunks/build/entry-styles-33.mjs-CGVyg8PA.mjs.map +1 -0
  141. package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs +4 -0
  142. package/.output/server/chunks/build/entry-styles-4.mjs-DZ0RUZ3Y.mjs.map +1 -0
  143. package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs +4 -0
  144. package/.output/server/chunks/build/entry-styles-5.mjs-CWoX264H.mjs.map +1 -0
  145. package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs +4 -0
  146. package/.output/server/chunks/build/entry-styles-6.mjs-D97cocWn.mjs.map +1 -0
  147. package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs +4 -0
  148. package/.output/server/chunks/build/entry-styles-7.mjs-fDLOEPrI.mjs.map +1 -0
  149. package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs +4 -0
  150. package/.output/server/chunks/build/entry-styles-8.mjs-CogORmQT.mjs.map +1 -0
  151. package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs +4 -0
  152. package/.output/server/chunks/build/entry-styles-9.mjs-CIkuJriK.mjs.map +1 -0
  153. package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs +39 -0
  154. package/.output/server/chunks/build/entry-styles.CtA8hhgO.mjs.map +1 -0
  155. package/.output/server/chunks/build/error-404-BE32jcXw.mjs +399 -0
  156. package/.output/server/chunks/build/error-404-BE32jcXw.mjs.map +1 -0
  157. package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs +4 -0
  158. package/.output/server/chunks/build/error-404-styles-1.mjs-BnwklZPR.mjs.map +1 -0
  159. package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs +6 -0
  160. package/.output/server/chunks/build/error-404-styles.B5NDqGbJ.mjs.map +1 -0
  161. package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs +6 -0
  162. package/.output/server/chunks/build/error-404-styles.CeFcgbBS.mjs.map +1 -0
  163. package/.output/server/chunks/build/error-500-B3vPuajn.mjs +80 -0
  164. package/.output/server/chunks/build/error-500-B3vPuajn.mjs.map +1 -0
  165. package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs +4 -0
  166. package/.output/server/chunks/build/error-500-styles-1.mjs-C2TN-owL.mjs.map +1 -0
  167. package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs +6 -0
  168. package/.output/server/chunks/build/error-500-styles.BE3GHqYY.mjs.map +1 -0
  169. package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs +6 -0
  170. package/.output/server/chunks/build/error-500-styles.LQn8-gvg.mjs.map +1 -0
  171. package/.output/server/chunks/build/index-C2merokO.mjs +34 -0
  172. package/.output/server/chunks/build/index-C2merokO.mjs.map +1 -0
  173. package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs +6 -0
  174. package/.output/server/chunks/build/index-styles.C7jmw0Wl.mjs.map +1 -0
  175. package/.output/server/chunks/build/server.mjs +10495 -0
  176. package/.output/server/chunks/build/server.mjs.map +1 -0
  177. package/.output/server/chunks/build/styles.mjs +47 -0
  178. package/.output/server/chunks/build/styles.mjs.map +1 -0
  179. package/.output/server/chunks/nitro/nitro.mjs +6203 -0
  180. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  181. package/.output/server/chunks/routes/api/_trpc_.mjs +209 -0
  182. package/.output/server/chunks/routes/api/_trpc_.mjs.map +1 -0
  183. package/.output/server/chunks/routes/renderer.mjs +391 -0
  184. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  185. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  186. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  187. package/.output/server/index.mjs +7 -0
  188. package/.output/server/index.mjs.map +1 -0
  189. package/.output/server/node_modules/@babel/parser/lib/index.js +14023 -0
  190. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  191. package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1996 -0
  192. package/.output/server/node_modules/@iconify/vue/package.json +65 -0
  193. package/.output/server/node_modules/@trpc/client/dist/TRPCClientError-38f9a32a.mjs +59 -0
  194. package/.output/server/node_modules/@trpc/client/dist/httpBatchLink-d0f9eac9.mjs +248 -0
  195. package/.output/server/node_modules/@trpc/client/dist/httpUtils-b9d0cb48.mjs +144 -0
  196. package/.output/server/node_modules/@trpc/client/dist/index.mjs +365 -0
  197. package/.output/server/node_modules/@trpc/client/dist/links/httpLink.mjs +62 -0
  198. package/.output/server/node_modules/@trpc/client/dist/links/loggerLink.mjs +173 -0
  199. package/.output/server/node_modules/@trpc/client/dist/links/wsLink.mjs +278 -0
  200. package/.output/server/node_modules/@trpc/client/dist/splitLink-4c75f7be.mjs +45 -0
  201. package/.output/server/node_modules/@trpc/client/dist/transformResult-ace864b8.mjs +58 -0
  202. package/.output/server/node_modules/@trpc/client/package.json +101 -0
  203. package/.output/server/node_modules/@trpc/server/dist/TRPCError-98d44758.mjs +39 -0
  204. package/.output/server/node_modules/@trpc/server/dist/batchStreamFormatter-fc1ffb26.mjs +30 -0
  205. package/.output/server/node_modules/@trpc/server/dist/codes-c924c3db.mjs +44 -0
  206. package/.output/server/node_modules/@trpc/server/dist/config-d5fdbd39.mjs +196 -0
  207. package/.output/server/node_modules/@trpc/server/dist/contentType-9fd995d3.mjs +52 -0
  208. package/.output/server/node_modules/@trpc/server/dist/getCauseFromUnknown-2d66414a.mjs +33 -0
  209. package/.output/server/node_modules/@trpc/server/dist/http/index.mjs +9 -0
  210. package/.output/server/node_modules/@trpc/server/dist/index-f91d720c.mjs +97 -0
  211. package/.output/server/node_modules/@trpc/server/dist/index.mjs +871 -0
  212. package/.output/server/node_modules/@trpc/server/dist/observable/index.mjs +147 -0
  213. package/.output/server/node_modules/@trpc/server/dist/observable-ade1bad8.mjs +81 -0
  214. package/.output/server/node_modules/@trpc/server/dist/resolveHTTPResponse-2fc435bb.mjs +291 -0
  215. package/.output/server/node_modules/@trpc/server/dist/shared/index.mjs +4 -0
  216. package/.output/server/node_modules/@trpc/server/dist/transformTRPCResponse-1153b421.mjs +53 -0
  217. package/.output/server/node_modules/@trpc/server/package.json +177 -0
  218. package/.output/server/node_modules/@unhead/dom/dist/index.mjs +197 -0
  219. package/.output/server/node_modules/@unhead/dom/package.json +40 -0
  220. package/.output/server/node_modules/@unhead/shared/dist/index.mjs +731 -0
  221. package/.output/server/node_modules/@unhead/shared/package.json +47 -0
  222. package/.output/server/node_modules/@unhead/ssr/dist/index.mjs +95 -0
  223. package/.output/server/node_modules/@unhead/ssr/package.json +40 -0
  224. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6690 -0
  225. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  226. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
  227. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  228. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1404 -0
  229. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  230. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1789 -0
  231. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  232. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6654 -0
  233. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  234. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1669 -0
  235. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  236. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +857 -0
  237. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  238. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
  239. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  240. package/.output/server/node_modules/@vue-flow/background/dist/vue-flow-background.mjs +126 -0
  241. package/.output/server/node_modules/@vue-flow/background/package.json +73 -0
  242. package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +9873 -0
  243. package/.output/server/node_modules/@vue-flow/core/package.json +92 -0
  244. package/.output/server/node_modules/@vue-flow/minimap/dist/vue-flow-minimap.mjs +2953 -0
  245. package/.output/server/node_modules/@vue-flow/minimap/package.json +80 -0
  246. package/.output/server/node_modules/devalue/index.js +3 -0
  247. package/.output/server/node_modules/devalue/package.json +34 -0
  248. package/.output/server/node_modules/devalue/src/base64.js +110 -0
  249. package/.output/server/node_modules/devalue/src/constants.js +6 -0
  250. package/.output/server/node_modules/devalue/src/parse.js +160 -0
  251. package/.output/server/node_modules/devalue/src/stringify.js +232 -0
  252. package/.output/server/node_modules/devalue/src/uneval.js +351 -0
  253. package/.output/server/node_modules/devalue/src/utils.js +113 -0
  254. package/.output/server/node_modules/entities/lib/decode.js +536 -0
  255. package/.output/server/node_modules/entities/lib/decode_codepoint.js +76 -0
  256. package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +9 -0
  257. package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
  258. package/.output/server/node_modules/entities/package.json +90 -0
  259. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  260. package/.output/server/node_modules/estree-walker/package.json +37 -0
  261. package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
  262. package/.output/server/node_modules/hookable/package.json +49 -0
  263. package/.output/server/node_modules/nanoid/index.js +46 -0
  264. package/.output/server/node_modules/nanoid/package.json +41 -0
  265. package/.output/server/node_modules/nanoid/url-alphabet/index.js +2 -0
  266. package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +858 -0
  267. package/.output/server/node_modules/pinia/package.json +100 -0
  268. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  269. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  270. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  271. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  272. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  273. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  274. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  275. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  276. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  277. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  278. package/.output/server/node_modules/source-map-js/package.json +71 -0
  279. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  280. package/.output/server/node_modules/ufo/dist/index.mjs +630 -0
  281. package/.output/server/node_modules/ufo/package.json +47 -0
  282. package/.output/server/node_modules/unhead/dist/index.mjs +747 -0
  283. package/.output/server/node_modules/unhead/package.json +46 -0
  284. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  285. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  286. package/.output/server/node_modules/vue/index.js +7 -0
  287. package/.output/server/node_modules/vue/index.mjs +1 -0
  288. package/.output/server/node_modules/vue/package.json +112 -0
  289. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  290. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
  291. package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
  292. package/.output/server/node_modules/vue-demi/lib/index.cjs +29 -0
  293. package/.output/server/node_modules/vue-demi/package.json +47 -0
  294. package/.output/server/node_modules/zod/lib/index.mjs +4236 -0
  295. package/.output/server/node_modules/zod/package.json +119 -0
  296. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +31 -0
  297. package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +21 -0
  298. package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
  299. package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +37 -0
  300. package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
  301. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +164 -0
  302. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +3 -0
  303. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +25 -0
  304. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
  305. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
  306. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
  307. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
  308. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
  309. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
  310. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +6 -0
  311. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
  312. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
  313. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
  314. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +25 -0
  315. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
  316. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +5 -0
  317. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
  318. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
  319. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
  320. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +45 -0
  321. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +20 -0
  322. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
  323. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
  324. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
  325. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +57 -0
  326. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
  327. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +324 -0
  328. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
  329. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +5 -0
  330. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
  331. package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +3 -0
  332. package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +59 -0
  333. package/.output/server/node_modules/zod-to-json-schema/package.json +89 -0
  334. package/.output/server/package.json +1 -0
  335. package/package.json +41 -0
@@ -0,0 +1,858 @@
1
+ /*!
2
+ * pinia v2.2.8
3
+ * (c) 2024 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ 'use strict';
7
+
8
+ var vueDemi = require('vue-demi');
9
+
10
+ /**
11
+ * setActivePinia must be called to handle SSR at the top of functions like
12
+ * `fetch`, `setup`, `serverPrefetch` and others
13
+ */
14
+ let activePinia;
15
+ /**
16
+ * Sets or unsets the active pinia. Used in SSR and internally when calling
17
+ * actions and getters
18
+ *
19
+ * @param pinia - Pinia instance
20
+ */
21
+ // @ts-expect-error: cannot constrain the type of the return
22
+ const setActivePinia = (pinia) => (activePinia = pinia);
23
+ /**
24
+ * Get the currently active pinia if there is any.
25
+ */
26
+ const getActivePinia = () => (vueDemi.hasInjectionContext() && vueDemi.inject(piniaSymbol)) || activePinia;
27
+ const piniaSymbol = (/* istanbul ignore next */ Symbol());
28
+
29
+ function isPlainObject(
30
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
+ o) {
32
+ return (o &&
33
+ typeof o === 'object' &&
34
+ Object.prototype.toString.call(o) === '[object Object]' &&
35
+ typeof o.toJSON !== 'function');
36
+ }
37
+ // type DeepReadonly<T> = { readonly [P in keyof T]: DeepReadonly<T[P]> }
38
+ // TODO: can we change these to numbers?
39
+ /**
40
+ * Possible types for SubscriptionCallback
41
+ */
42
+ exports.MutationType = void 0;
43
+ (function (MutationType) {
44
+ /**
45
+ * Direct mutation of the state:
46
+ *
47
+ * - `store.name = 'new name'`
48
+ * - `store.$state.name = 'new name'`
49
+ * - `store.list.push('new item')`
50
+ */
51
+ MutationType["direct"] = "direct";
52
+ /**
53
+ * Mutated the state with `$patch` and an object
54
+ *
55
+ * - `store.$patch({ name: 'newName' })`
56
+ */
57
+ MutationType["patchObject"] = "patch object";
58
+ /**
59
+ * Mutated the state with `$patch` and a function
60
+ *
61
+ * - `store.$patch(state => state.name = 'newName')`
62
+ */
63
+ MutationType["patchFunction"] = "patch function";
64
+ // maybe reset? for $state = {} and $reset
65
+ })(exports.MutationType || (exports.MutationType = {}));
66
+
67
+ const IS_CLIENT = typeof window !== 'undefined';
68
+
69
+ /**
70
+ * Creates a Pinia instance to be used by the application
71
+ */
72
+ function createPinia() {
73
+ const scope = vueDemi.effectScope(true);
74
+ // NOTE: here we could check the window object for a state and directly set it
75
+ // if there is anything like it with Vue 3 SSR
76
+ const state = scope.run(() => vueDemi.ref({}));
77
+ let _p = [];
78
+ // plugins added before calling app.use(pinia)
79
+ let toBeInstalled = [];
80
+ const pinia = vueDemi.markRaw({
81
+ install(app) {
82
+ // this allows calling useStore() outside of a component setup after
83
+ // installing pinia's plugin
84
+ setActivePinia(pinia);
85
+ if (!vueDemi.isVue2) {
86
+ pinia._a = app;
87
+ app.provide(piniaSymbol, pinia);
88
+ app.config.globalProperties.$pinia = pinia;
89
+ toBeInstalled.forEach((plugin) => _p.push(plugin));
90
+ toBeInstalled = [];
91
+ }
92
+ },
93
+ use(plugin) {
94
+ if (!this._a && !vueDemi.isVue2) {
95
+ toBeInstalled.push(plugin);
96
+ }
97
+ else {
98
+ _p.push(plugin);
99
+ }
100
+ return this;
101
+ },
102
+ _p,
103
+ // it's actually undefined here
104
+ // @ts-expect-error
105
+ _a: null,
106
+ _e: scope,
107
+ _s: new Map(),
108
+ state,
109
+ });
110
+ return pinia;
111
+ }
112
+ /**
113
+ * Dispose a Pinia instance by stopping its effectScope and removing the state, plugins and stores. This is mostly
114
+ * useful in tests, with both a testing pinia or a regular pinia and in applications that use multiple pinia instances.
115
+ * Once disposed, the pinia instance cannot be used anymore.
116
+ *
117
+ * @param pinia - pinia instance
118
+ */
119
+ function disposePinia(pinia) {
120
+ pinia._e.stop();
121
+ pinia._s.clear();
122
+ pinia._p.splice(0);
123
+ pinia.state.value = {};
124
+ // @ts-expect-error: non valid
125
+ pinia._a = null;
126
+ }
127
+
128
+ /**
129
+ * Creates an _accept_ function to pass to `import.meta.hot` in Vite applications.
130
+ *
131
+ * @example
132
+ * ```js
133
+ * const useUser = defineStore(...)
134
+ * if (import.meta.hot) {
135
+ * import.meta.hot.accept(acceptHMRUpdate(useUser, import.meta.hot))
136
+ * }
137
+ * ```
138
+ *
139
+ * @param initialUseStore - return of the defineStore to hot update
140
+ * @param hot - `import.meta.hot`
141
+ */
142
+ function acceptHMRUpdate(initialUseStore, hot) {
143
+ // strip as much as possible from iife.prod
144
+ {
145
+ return () => { };
146
+ }
147
+ }
148
+
149
+ const noop = () => { };
150
+ function addSubscription(subscriptions, callback, detached, onCleanup = noop) {
151
+ subscriptions.push(callback);
152
+ const removeSubscription = () => {
153
+ const idx = subscriptions.indexOf(callback);
154
+ if (idx > -1) {
155
+ subscriptions.splice(idx, 1);
156
+ onCleanup();
157
+ }
158
+ };
159
+ if (!detached && vueDemi.getCurrentScope()) {
160
+ vueDemi.onScopeDispose(removeSubscription);
161
+ }
162
+ return removeSubscription;
163
+ }
164
+ function triggerSubscriptions(subscriptions, ...args) {
165
+ subscriptions.slice().forEach((callback) => {
166
+ callback(...args);
167
+ });
168
+ }
169
+
170
+ const fallbackRunWithContext = (fn) => fn();
171
+ /**
172
+ * Marks a function as an action for `$onAction`
173
+ * @internal
174
+ */
175
+ const ACTION_MARKER = Symbol();
176
+ /**
177
+ * Action name symbol. Allows to add a name to an action after defining it
178
+ * @internal
179
+ */
180
+ const ACTION_NAME = Symbol();
181
+ function mergeReactiveObjects(target, patchToApply) {
182
+ // Handle Map instances
183
+ if (target instanceof Map && patchToApply instanceof Map) {
184
+ patchToApply.forEach((value, key) => target.set(key, value));
185
+ }
186
+ else if (target instanceof Set && patchToApply instanceof Set) {
187
+ // Handle Set instances
188
+ patchToApply.forEach(target.add, target);
189
+ }
190
+ // no need to go through symbols because they cannot be serialized anyway
191
+ for (const key in patchToApply) {
192
+ if (!patchToApply.hasOwnProperty(key))
193
+ continue;
194
+ const subPatch = patchToApply[key];
195
+ const targetValue = target[key];
196
+ if (isPlainObject(targetValue) &&
197
+ isPlainObject(subPatch) &&
198
+ target.hasOwnProperty(key) &&
199
+ !vueDemi.isRef(subPatch) &&
200
+ !vueDemi.isReactive(subPatch)) {
201
+ // NOTE: here I wanted to warn about inconsistent types but it's not possible because in setup stores one might
202
+ // start the value of a property as a certain type e.g. a Map, and then for some reason, during SSR, change that
203
+ // to `undefined`. When trying to hydrate, we want to override the Map with `undefined`.
204
+ target[key] = mergeReactiveObjects(targetValue, subPatch);
205
+ }
206
+ else {
207
+ // @ts-expect-error: subPatch is a valid value
208
+ target[key] = subPatch;
209
+ }
210
+ }
211
+ return target;
212
+ }
213
+ const skipHydrateSymbol = /* istanbul ignore next */ Symbol();
214
+ const skipHydrateMap = /*#__PURE__*/ new WeakMap();
215
+ /**
216
+ * Tells Pinia to skip the hydration process of a given object. This is useful in setup stores (only) when you return a
217
+ * stateful object in the store but it isn't really state. e.g. returning a router instance in a setup store.
218
+ *
219
+ * @param obj - target object
220
+ * @returns obj
221
+ */
222
+ function skipHydrate(obj) {
223
+ return vueDemi.isVue2
224
+ ? // in @vue/composition-api, the refs are sealed so defineProperty doesn't work...
225
+ /* istanbul ignore next */ skipHydrateMap.set(obj, 1) && obj
226
+ : Object.defineProperty(obj, skipHydrateSymbol, {});
227
+ }
228
+ /**
229
+ * Returns whether a value should be hydrated
230
+ *
231
+ * @param obj - target variable
232
+ * @returns true if `obj` should be hydrated
233
+ */
234
+ function shouldHydrate(obj) {
235
+ return vueDemi.isVue2
236
+ ? /* istanbul ignore next */ !skipHydrateMap.has(obj)
237
+ : !isPlainObject(obj) || !obj.hasOwnProperty(skipHydrateSymbol);
238
+ }
239
+ const { assign } = Object;
240
+ function isComputed(o) {
241
+ return !!(vueDemi.isRef(o) && o.effect);
242
+ }
243
+ function createOptionsStore(id, options, pinia, hot) {
244
+ const { state, actions, getters } = options;
245
+ const initialState = pinia.state.value[id];
246
+ let store;
247
+ function setup() {
248
+ if (!initialState && (!false)) {
249
+ /* istanbul ignore if */
250
+ if (vueDemi.isVue2) {
251
+ vueDemi.set(pinia.state.value, id, state ? state() : {});
252
+ }
253
+ else {
254
+ pinia.state.value[id] = state ? state() : {};
255
+ }
256
+ }
257
+ // avoid creating a state in pinia.state.value
258
+ const localState = vueDemi.toRefs(pinia.state.value[id]);
259
+ return assign(localState, actions, Object.keys(getters || {}).reduce((computedGetters, name) => {
260
+ computedGetters[name] = vueDemi.markRaw(vueDemi.computed(() => {
261
+ setActivePinia(pinia);
262
+ // it was created just before
263
+ const store = pinia._s.get(id);
264
+ // allow cross using stores
265
+ /* istanbul ignore if */
266
+ if (vueDemi.isVue2 && !store._r)
267
+ return;
268
+ // @ts-expect-error
269
+ // return getters![name].call(context, context)
270
+ // TODO: avoid reading the getter while assigning with a global variable
271
+ return getters[name].call(store, store);
272
+ }));
273
+ return computedGetters;
274
+ }, {}));
275
+ }
276
+ store = createSetupStore(id, setup, options, pinia, hot, true);
277
+ return store;
278
+ }
279
+ function createSetupStore($id, setup, options = {}, pinia, hot, isOptionsStore) {
280
+ let scope;
281
+ const optionsForPlugin = assign({ actions: {} }, options);
282
+ // watcher options for $subscribe
283
+ const $subscribeOptions = { deep: true };
284
+ // internal state
285
+ let isListening; // set to true at the end
286
+ let isSyncListening; // set to true at the end
287
+ let subscriptions = [];
288
+ let actionSubscriptions = [];
289
+ let debuggerEvents;
290
+ const initialState = pinia.state.value[$id];
291
+ // avoid setting the state for option stores if it is set
292
+ // by the setup
293
+ if (!isOptionsStore && !initialState && (!false)) {
294
+ /* istanbul ignore if */
295
+ if (vueDemi.isVue2) {
296
+ vueDemi.set(pinia.state.value, $id, {});
297
+ }
298
+ else {
299
+ pinia.state.value[$id] = {};
300
+ }
301
+ }
302
+ vueDemi.ref({});
303
+ // avoid triggering too many listeners
304
+ // https://github.com/vuejs/pinia/issues/1129
305
+ let activeListener;
306
+ function $patch(partialStateOrMutator) {
307
+ let subscriptionMutation;
308
+ isListening = isSyncListening = false;
309
+ if (typeof partialStateOrMutator === 'function') {
310
+ partialStateOrMutator(pinia.state.value[$id]);
311
+ subscriptionMutation = {
312
+ type: exports.MutationType.patchFunction,
313
+ storeId: $id,
314
+ events: debuggerEvents,
315
+ };
316
+ }
317
+ else {
318
+ mergeReactiveObjects(pinia.state.value[$id], partialStateOrMutator);
319
+ subscriptionMutation = {
320
+ type: exports.MutationType.patchObject,
321
+ payload: partialStateOrMutator,
322
+ storeId: $id,
323
+ events: debuggerEvents,
324
+ };
325
+ }
326
+ const myListenerId = (activeListener = Symbol());
327
+ vueDemi.nextTick().then(() => {
328
+ if (activeListener === myListenerId) {
329
+ isListening = true;
330
+ }
331
+ });
332
+ isSyncListening = true;
333
+ // because we paused the watcher, we need to manually call the subscriptions
334
+ triggerSubscriptions(subscriptions, subscriptionMutation, pinia.state.value[$id]);
335
+ }
336
+ const $reset = isOptionsStore
337
+ ? function $reset() {
338
+ const { state } = options;
339
+ const newState = state ? state() : {};
340
+ // we use a patch to group all changes into one single subscription
341
+ this.$patch(($state) => {
342
+ // @ts-expect-error: FIXME: shouldn't error?
343
+ assign($state, newState);
344
+ });
345
+ }
346
+ : /* istanbul ignore next */
347
+ noop;
348
+ function $dispose() {
349
+ scope.stop();
350
+ subscriptions = [];
351
+ actionSubscriptions = [];
352
+ pinia._s.delete($id);
353
+ }
354
+ /**
355
+ * Helper that wraps function so it can be tracked with $onAction
356
+ * @param fn - action to wrap
357
+ * @param name - name of the action
358
+ */
359
+ const action = (fn, name = '') => {
360
+ if (ACTION_MARKER in fn) {
361
+ fn[ACTION_NAME] = name;
362
+ return fn;
363
+ }
364
+ const wrappedAction = function () {
365
+ setActivePinia(pinia);
366
+ const args = Array.from(arguments);
367
+ const afterCallbackList = [];
368
+ const onErrorCallbackList = [];
369
+ function after(callback) {
370
+ afterCallbackList.push(callback);
371
+ }
372
+ function onError(callback) {
373
+ onErrorCallbackList.push(callback);
374
+ }
375
+ // @ts-expect-error
376
+ triggerSubscriptions(actionSubscriptions, {
377
+ args,
378
+ name: wrappedAction[ACTION_NAME],
379
+ store,
380
+ after,
381
+ onError,
382
+ });
383
+ let ret;
384
+ try {
385
+ ret = fn.apply(this && this.$id === $id ? this : store, args);
386
+ // handle sync errors
387
+ }
388
+ catch (error) {
389
+ triggerSubscriptions(onErrorCallbackList, error);
390
+ throw error;
391
+ }
392
+ if (ret instanceof Promise) {
393
+ return ret
394
+ .then((value) => {
395
+ triggerSubscriptions(afterCallbackList, value);
396
+ return value;
397
+ })
398
+ .catch((error) => {
399
+ triggerSubscriptions(onErrorCallbackList, error);
400
+ return Promise.reject(error);
401
+ });
402
+ }
403
+ // trigger after callbacks
404
+ triggerSubscriptions(afterCallbackList, ret);
405
+ return ret;
406
+ };
407
+ wrappedAction[ACTION_MARKER] = true;
408
+ wrappedAction[ACTION_NAME] = name; // will be set later
409
+ // @ts-expect-error: we are intentionally limiting the returned type to just Fn
410
+ // because all the added properties are internals that are exposed through `$onAction()` only
411
+ return wrappedAction;
412
+ };
413
+ const partialStore = {
414
+ _p: pinia,
415
+ // _s: scope,
416
+ $id,
417
+ $onAction: addSubscription.bind(null, actionSubscriptions),
418
+ $patch,
419
+ $reset,
420
+ $subscribe(callback, options = {}) {
421
+ const removeSubscription = addSubscription(subscriptions, callback, options.detached, () => stopWatcher());
422
+ const stopWatcher = scope.run(() => vueDemi.watch(() => pinia.state.value[$id], (state) => {
423
+ if (options.flush === 'sync' ? isSyncListening : isListening) {
424
+ callback({
425
+ storeId: $id,
426
+ type: exports.MutationType.direct,
427
+ events: debuggerEvents,
428
+ }, state);
429
+ }
430
+ }, assign({}, $subscribeOptions, options)));
431
+ return removeSubscription;
432
+ },
433
+ $dispose,
434
+ };
435
+ /* istanbul ignore if */
436
+ if (vueDemi.isVue2) {
437
+ // start as non ready
438
+ partialStore._r = false;
439
+ }
440
+ const store = vueDemi.reactive(partialStore);
441
+ // store the partial store now so the setup of stores can instantiate each other before they are finished without
442
+ // creating infinite loops.
443
+ pinia._s.set($id, store);
444
+ const runWithContext = (pinia._a && pinia._a.runWithContext) || fallbackRunWithContext;
445
+ // TODO: idea create skipSerialize that marks properties as non serializable and they are skipped
446
+ const setupStore = runWithContext(() => pinia._e.run(() => (scope = vueDemi.effectScope()).run(() => setup({ action }))));
447
+ // overwrite existing actions to support $onAction
448
+ for (const key in setupStore) {
449
+ const prop = setupStore[key];
450
+ if ((vueDemi.isRef(prop) && !isComputed(prop)) || vueDemi.isReactive(prop)) {
451
+ // mark it as a piece of state to be serialized
452
+ if (!isOptionsStore) {
453
+ // in setup stores we must hydrate the state and sync pinia state tree with the refs the user just created
454
+ if (initialState && shouldHydrate(prop)) {
455
+ if (vueDemi.isRef(prop)) {
456
+ prop.value = initialState[key];
457
+ }
458
+ else {
459
+ // probably a reactive object, lets recursively assign
460
+ // @ts-expect-error: prop is unknown
461
+ mergeReactiveObjects(prop, initialState[key]);
462
+ }
463
+ }
464
+ // transfer the ref to the pinia state to keep everything in sync
465
+ /* istanbul ignore if */
466
+ if (vueDemi.isVue2) {
467
+ vueDemi.set(pinia.state.value[$id], key, prop);
468
+ }
469
+ else {
470
+ pinia.state.value[$id][key] = prop;
471
+ }
472
+ }
473
+ // action
474
+ }
475
+ else if (typeof prop === 'function') {
476
+ const actionValue = action(prop, key);
477
+ // this a hot module replacement store because the hotUpdate method needs
478
+ // to do it with the right context
479
+ /* istanbul ignore if */
480
+ if (vueDemi.isVue2) {
481
+ vueDemi.set(setupStore, key, actionValue);
482
+ }
483
+ else {
484
+ // @ts-expect-error
485
+ setupStore[key] = actionValue;
486
+ }
487
+ // list actions so they can be used in plugins
488
+ // @ts-expect-error
489
+ optionsForPlugin.actions[key] = prop;
490
+ }
491
+ else ;
492
+ }
493
+ // add the state, getters, and action properties
494
+ /* istanbul ignore if */
495
+ if (vueDemi.isVue2) {
496
+ Object.keys(setupStore).forEach((key) => {
497
+ vueDemi.set(store, key, setupStore[key]);
498
+ });
499
+ }
500
+ else {
501
+ assign(store, setupStore);
502
+ // allows retrieving reactive objects with `storeToRefs()`. Must be called after assigning to the reactive object.
503
+ // Make `storeToRefs()` work with `reactive()` #799
504
+ assign(vueDemi.toRaw(store), setupStore);
505
+ }
506
+ // use this instead of a computed with setter to be able to create it anywhere
507
+ // without linking the computed lifespan to wherever the store is first
508
+ // created.
509
+ Object.defineProperty(store, '$state', {
510
+ get: () => (pinia.state.value[$id]),
511
+ set: (state) => {
512
+ $patch(($state) => {
513
+ // @ts-expect-error: FIXME: shouldn't error?
514
+ assign($state, state);
515
+ });
516
+ },
517
+ });
518
+ /* istanbul ignore if */
519
+ if (vueDemi.isVue2) {
520
+ // mark the store as ready before plugins
521
+ store._r = true;
522
+ }
523
+ // apply all plugins
524
+ pinia._p.forEach((extender) => {
525
+ /* istanbul ignore else */
526
+ {
527
+ assign(store, scope.run(() => extender({
528
+ store: store,
529
+ app: pinia._a,
530
+ pinia,
531
+ options: optionsForPlugin,
532
+ })));
533
+ }
534
+ });
535
+ // only apply hydrate to option stores with an initial state in pinia
536
+ if (initialState &&
537
+ isOptionsStore &&
538
+ options.hydrate) {
539
+ options.hydrate(store.$state, initialState);
540
+ }
541
+ isListening = true;
542
+ isSyncListening = true;
543
+ return store;
544
+ }
545
+ // allows unused stores to be tree shaken
546
+ /*! #__NO_SIDE_EFFECTS__ */
547
+ function defineStore(
548
+ // TODO: add proper types from above
549
+ idOrOptions, setup, setupOptions) {
550
+ let id;
551
+ let options;
552
+ const isSetupStore = typeof setup === 'function';
553
+ if (typeof idOrOptions === 'string') {
554
+ id = idOrOptions;
555
+ // the option store setup will contain the actual options in this case
556
+ options = isSetupStore ? setupOptions : setup;
557
+ }
558
+ else {
559
+ options = idOrOptions;
560
+ id = idOrOptions.id;
561
+ }
562
+ function useStore(pinia, hot) {
563
+ const hasContext = vueDemi.hasInjectionContext();
564
+ pinia =
565
+ // in test mode, ignore the argument provided as we can always retrieve a
566
+ // pinia instance with getActivePinia()
567
+ ((process.env.NODE_ENV === 'test') && activePinia && activePinia._testing ? null : pinia) ||
568
+ (hasContext ? vueDemi.inject(piniaSymbol, null) : null);
569
+ if (pinia)
570
+ setActivePinia(pinia);
571
+ pinia = activePinia;
572
+ if (!pinia._s.has(id)) {
573
+ // creating the store registers it in `pinia._s`
574
+ if (isSetupStore) {
575
+ createSetupStore(id, setup, options, pinia);
576
+ }
577
+ else {
578
+ createOptionsStore(id, options, pinia);
579
+ }
580
+ }
581
+ const store = pinia._s.get(id);
582
+ // StoreGeneric cannot be casted towards Store
583
+ return store;
584
+ }
585
+ useStore.$id = id;
586
+ return useStore;
587
+ }
588
+
589
+ let mapStoreSuffix = 'Store';
590
+ /**
591
+ * Changes the suffix added by `mapStores()`. Can be set to an empty string.
592
+ * Defaults to `"Store"`. Make sure to extend the MapStoresCustomization
593
+ * interface if you are using TypeScript.
594
+ *
595
+ * @param suffix - new suffix
596
+ */
597
+ function setMapStoreSuffix(suffix // could be 'Store' but that would be annoying for JS
598
+ ) {
599
+ mapStoreSuffix = suffix;
600
+ }
601
+ /**
602
+ * Allows using stores without the composition API (`setup()`) by generating an
603
+ * object to be spread in the `computed` field of a component. It accepts a list
604
+ * of store definitions.
605
+ *
606
+ * @example
607
+ * ```js
608
+ * export default {
609
+ * computed: {
610
+ * // other computed properties
611
+ * ...mapStores(useUserStore, useCartStore)
612
+ * },
613
+ *
614
+ * created() {
615
+ * this.userStore // store with id "user"
616
+ * this.cartStore // store with id "cart"
617
+ * }
618
+ * }
619
+ * ```
620
+ *
621
+ * @param stores - list of stores to map to an object
622
+ */
623
+ function mapStores(...stores) {
624
+ return stores.reduce((reduced, useStore) => {
625
+ // @ts-expect-error: $id is added by defineStore
626
+ reduced[useStore.$id + mapStoreSuffix] = function () {
627
+ return useStore(this.$pinia);
628
+ };
629
+ return reduced;
630
+ }, {});
631
+ }
632
+ /**
633
+ * Allows using state and getters from one store without using the composition
634
+ * API (`setup()`) by generating an object to be spread in the `computed` field
635
+ * of a component.
636
+ *
637
+ * @param useStore - store to map from
638
+ * @param keysOrMapper - array or object
639
+ */
640
+ function mapState(useStore, keysOrMapper) {
641
+ return Array.isArray(keysOrMapper)
642
+ ? keysOrMapper.reduce((reduced, key) => {
643
+ reduced[key] = function () {
644
+ // @ts-expect-error: FIXME: should work?
645
+ return useStore(this.$pinia)[key];
646
+ };
647
+ return reduced;
648
+ }, {})
649
+ : Object.keys(keysOrMapper).reduce((reduced, key) => {
650
+ // @ts-expect-error
651
+ reduced[key] = function () {
652
+ const store = useStore(this.$pinia);
653
+ const storeKey = keysOrMapper[key];
654
+ // for some reason TS is unable to infer the type of storeKey to be a
655
+ // function
656
+ return typeof storeKey === 'function'
657
+ ? storeKey.call(this, store)
658
+ : // @ts-expect-error: FIXME: should work?
659
+ store[storeKey];
660
+ };
661
+ return reduced;
662
+ }, {});
663
+ }
664
+ /**
665
+ * Alias for `mapState()`. You should use `mapState()` instead.
666
+ * @deprecated use `mapState()` instead.
667
+ */
668
+ const mapGetters = mapState;
669
+ /**
670
+ * Allows directly using actions from your store without using the composition
671
+ * API (`setup()`) by generating an object to be spread in the `methods` field
672
+ * of a component.
673
+ *
674
+ * @param useStore - store to map from
675
+ * @param keysOrMapper - array or object
676
+ */
677
+ function mapActions(useStore, keysOrMapper) {
678
+ return Array.isArray(keysOrMapper)
679
+ ? keysOrMapper.reduce((reduced, key) => {
680
+ // @ts-expect-error
681
+ reduced[key] = function (...args) {
682
+ // @ts-expect-error: FIXME: should work?
683
+ return useStore(this.$pinia)[key](...args);
684
+ };
685
+ return reduced;
686
+ }, {})
687
+ : Object.keys(keysOrMapper).reduce((reduced, key) => {
688
+ // @ts-expect-error
689
+ reduced[key] = function (...args) {
690
+ // @ts-expect-error: FIXME: should work?
691
+ return useStore(this.$pinia)[keysOrMapper[key]](...args);
692
+ };
693
+ return reduced;
694
+ }, {});
695
+ }
696
+ /**
697
+ * Allows using state and getters from one store without using the composition
698
+ * API (`setup()`) by generating an object to be spread in the `computed` field
699
+ * of a component.
700
+ *
701
+ * @param useStore - store to map from
702
+ * @param keysOrMapper - array or object
703
+ */
704
+ function mapWritableState(useStore, keysOrMapper) {
705
+ return Array.isArray(keysOrMapper)
706
+ ? keysOrMapper.reduce((reduced, key) => {
707
+ // @ts-ignore
708
+ reduced[key] = {
709
+ get() {
710
+ // @ts-expect-error: FIXME: should work?
711
+ return useStore(this.$pinia)[key];
712
+ },
713
+ set(value) {
714
+ // @ts-expect-error: FIXME: should work?
715
+ return (useStore(this.$pinia)[key] = value);
716
+ },
717
+ };
718
+ return reduced;
719
+ }, {})
720
+ : Object.keys(keysOrMapper).reduce((reduced, key) => {
721
+ // @ts-ignore
722
+ reduced[key] = {
723
+ get() {
724
+ // @ts-expect-error: FIXME: should work?
725
+ return useStore(this.$pinia)[keysOrMapper[key]];
726
+ },
727
+ set(value) {
728
+ // @ts-expect-error: FIXME: should work?
729
+ return (useStore(this.$pinia)[keysOrMapper[key]] = value);
730
+ },
731
+ };
732
+ return reduced;
733
+ }, {});
734
+ }
735
+
736
+ /**
737
+ * Creates an object of references with all the state, getters, and plugin-added
738
+ * state properties of the store. Similar to `toRefs()` but specifically
739
+ * designed for Pinia stores so methods and non reactive properties are
740
+ * completely ignored.
741
+ *
742
+ * @param store - store to extract the refs from
743
+ */
744
+ function storeToRefs(store) {
745
+ // See https://github.com/vuejs/pinia/issues/852
746
+ // It's easier to just use toRefs() even if it includes more stuff
747
+ if (vueDemi.isVue2) {
748
+ // @ts-expect-error: toRefs include methods and others
749
+ return vueDemi.toRefs(store);
750
+ }
751
+ else {
752
+ const rawStore = vueDemi.toRaw(store);
753
+ const refs = {};
754
+ for (const key in rawStore) {
755
+ const value = rawStore[key];
756
+ // There is no native method to check for a computed
757
+ // https://github.com/vuejs/core/pull/4165
758
+ if (value.effect) {
759
+ // @ts-expect-error: too hard to type correctly
760
+ refs[key] =
761
+ // ...
762
+ vueDemi.computed({
763
+ get: () => store[key],
764
+ set(value) {
765
+ store[key] = value;
766
+ },
767
+ });
768
+ }
769
+ else if (vueDemi.isRef(value) || vueDemi.isReactive(value)) {
770
+ // @ts-expect-error: the key is state or getter
771
+ refs[key] =
772
+ // ---
773
+ vueDemi.toRef(store, key);
774
+ }
775
+ }
776
+ return refs;
777
+ }
778
+ }
779
+
780
+ /**
781
+ * Vue 2 Plugin that must be installed for pinia to work. Note **you don't need
782
+ * this plugin if you are using Nuxt.js**. Use the `buildModule` instead:
783
+ * https://pinia.vuejs.org/ssr/nuxt.html.
784
+ *
785
+ * @example
786
+ * ```js
787
+ * import Vue from 'vue'
788
+ * import { PiniaVuePlugin, createPinia } from 'pinia'
789
+ *
790
+ * Vue.use(PiniaVuePlugin)
791
+ * const pinia = createPinia()
792
+ *
793
+ * new Vue({
794
+ * el: '#app',
795
+ * // ...
796
+ * pinia,
797
+ * })
798
+ * ```
799
+ *
800
+ * @param _Vue - `Vue` imported from 'vue'.
801
+ */
802
+ const PiniaVuePlugin = function (_Vue) {
803
+ // Equivalent of
804
+ // app.config.globalProperties.$pinia = pinia
805
+ _Vue.mixin({
806
+ beforeCreate() {
807
+ const options = this.$options;
808
+ if (options.pinia) {
809
+ const pinia = options.pinia;
810
+ // HACK: taken from provide(): https://github.com/vuejs/composition-api/blob/main/src/apis/inject.ts#L31
811
+ /* istanbul ignore else */
812
+ if (!this._provided) {
813
+ const provideCache = {};
814
+ Object.defineProperty(this, '_provided', {
815
+ get: () => provideCache,
816
+ set: (v) => Object.assign(provideCache, v),
817
+ });
818
+ }
819
+ this._provided[piniaSymbol] = pinia;
820
+ // propagate the pinia instance in an SSR friendly way
821
+ // avoid adding it to nuxt twice
822
+ /* istanbul ignore else */
823
+ if (!this.$pinia) {
824
+ this.$pinia = pinia;
825
+ }
826
+ pinia._a = this;
827
+ if (IS_CLIENT) {
828
+ // this allows calling useStore() outside of a component setup after
829
+ // installing pinia's plugin
830
+ setActivePinia(pinia);
831
+ }
832
+ }
833
+ else if (!this.$pinia && options.parent && options.parent.$pinia) {
834
+ this.$pinia = options.parent.$pinia;
835
+ }
836
+ },
837
+ destroyed() {
838
+ delete this._pStores;
839
+ },
840
+ });
841
+ };
842
+
843
+ exports.PiniaVuePlugin = PiniaVuePlugin;
844
+ exports.acceptHMRUpdate = acceptHMRUpdate;
845
+ exports.createPinia = createPinia;
846
+ exports.defineStore = defineStore;
847
+ exports.disposePinia = disposePinia;
848
+ exports.getActivePinia = getActivePinia;
849
+ exports.mapActions = mapActions;
850
+ exports.mapGetters = mapGetters;
851
+ exports.mapState = mapState;
852
+ exports.mapStores = mapStores;
853
+ exports.mapWritableState = mapWritableState;
854
+ exports.setActivePinia = setActivePinia;
855
+ exports.setMapStoreSuffix = setMapStoreSuffix;
856
+ exports.shouldHydrate = shouldHydrate;
857
+ exports.skipHydrate = skipHydrate;
858
+ exports.storeToRefs = storeToRefs;