@pastweb/vue 2.0.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 (734) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1455 -0
  3. package/dist/EntryAdapter/EntryAdapter.cjs +6 -0
  4. package/dist/EntryAdapter/EntryAdapter.cjs.map +1 -0
  5. package/dist/EntryAdapter/EntryAdapter.js +7 -0
  6. package/dist/EntryAdapter/EntryAdapter.js.map +1 -0
  7. package/dist/EntryAdapter/EntryAdapter.vue.d.cts +36 -0
  8. package/dist/EntryAdapter/EntryAdapter.vue.d.ts +37 -0
  9. package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.cjs +62 -0
  10. package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.cjs.map +1 -0
  11. package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.js +62 -0
  12. package/dist/EntryAdapter/EntryAdapter.vue_vue_type_script_lang.js.map +1 -0
  13. package/dist/EntryAdapter/constants.cjs +14 -0
  14. package/dist/EntryAdapter/constants.cjs.map +1 -0
  15. package/dist/EntryAdapter/constants.d.cts +14 -0
  16. package/dist/EntryAdapter/constants.d.ts +14 -0
  17. package/dist/EntryAdapter/constants.js +13 -0
  18. package/dist/EntryAdapter/constants.js.map +1 -0
  19. package/dist/EntryAdapter/index.cjs +3 -0
  20. package/dist/EntryAdapter/index.d.cts +2 -0
  21. package/dist/EntryAdapter/index.d.ts +2 -0
  22. package/dist/EntryAdapter/index.js +2 -0
  23. package/dist/EntryAdapter/types.cjs +0 -0
  24. package/dist/EntryAdapter/types.d.cts +44 -0
  25. package/dist/EntryAdapter/types.d.ts +44 -0
  26. package/dist/EntryAdapter/types.js +0 -0
  27. package/dist/EntryAdapter/utils.cjs +62 -0
  28. package/dist/EntryAdapter/utils.cjs.map +1 -0
  29. package/dist/EntryAdapter/utils.d.cts +36 -0
  30. package/dist/EntryAdapter/utils.d.ts +36 -0
  31. package/dist/EntryAdapter/utils.js +60 -0
  32. package/dist/EntryAdapter/utils.js.map +1 -0
  33. package/dist/Island/Island.cjs +6 -0
  34. package/dist/Island/Island.cjs.map +1 -0
  35. package/dist/Island/Island.js +7 -0
  36. package/dist/Island/Island.js.map +1 -0
  37. package/dist/Island/Island.vue.d.cts +22 -0
  38. package/dist/Island/Island.vue.d.ts +23 -0
  39. package/dist/Island/Island.vue_vue_type_script_setup_true_lang.cjs +145 -0
  40. package/dist/Island/Island.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  41. package/dist/Island/Island.vue_vue_type_script_setup_true_lang.js +144 -0
  42. package/dist/Island/Island.vue_vue_type_script_setup_true_lang.js.map +1 -0
  43. package/dist/Island/constants.cjs +12 -0
  44. package/dist/Island/constants.cjs.map +1 -0
  45. package/dist/Island/constants.d.cts +11 -0
  46. package/dist/Island/constants.d.ts +11 -0
  47. package/dist/Island/constants.js +10 -0
  48. package/dist/Island/constants.js.map +1 -0
  49. package/dist/Island/index.cjs +9 -0
  50. package/dist/Island/index.d.cts +5 -0
  51. package/dist/Island/index.d.ts +5 -0
  52. package/dist/Island/index.js +4 -0
  53. package/dist/Island/types.cjs +0 -0
  54. package/dist/Island/types.d.cts +18 -0
  55. package/dist/Island/types.d.ts +18 -0
  56. package/dist/Island/types.js +0 -0
  57. package/dist/Island/useIsland.cjs +23 -0
  58. package/dist/Island/useIsland.cjs.map +1 -0
  59. package/dist/Island/useIsland.d.cts +15 -0
  60. package/dist/Island/useIsland.d.ts +15 -0
  61. package/dist/Island/useIsland.js +21 -0
  62. package/dist/Island/useIsland.js.map +1 -0
  63. package/dist/Render/Render.cjs +6 -0
  64. package/dist/Render/Render.cjs.map +1 -0
  65. package/dist/Render/Render.js +7 -0
  66. package/dist/Render/Render.js.map +1 -0
  67. package/dist/Render/Render.vue.d.cts +10 -0
  68. package/dist/Render/Render.vue.d.ts +11 -0
  69. package/dist/Render/Render.vue_vue_type_script_lang.cjs +47 -0
  70. package/dist/Render/Render.vue_vue_type_script_lang.cjs.map +1 -0
  71. package/dist/Render/Render.vue_vue_type_script_lang.js +47 -0
  72. package/dist/Render/Render.vue_vue_type_script_lang.js.map +1 -0
  73. package/dist/Render/index.cjs +3 -0
  74. package/dist/Render/index.d.cts +3 -0
  75. package/dist/Render/index.d.ts +3 -0
  76. package/dist/Render/index.js +2 -0
  77. package/dist/Render/types.cjs +0 -0
  78. package/dist/Render/types.d.cts +21 -0
  79. package/dist/Render/types.d.ts +21 -0
  80. package/dist/Render/types.js +0 -0
  81. package/dist/Slot/Slot.cjs +89 -0
  82. package/dist/Slot/Slot.cjs.map +1 -0
  83. package/dist/Slot/Slot.d.cts +38 -0
  84. package/dist/Slot/Slot.d.ts +39 -0
  85. package/dist/Slot/Slot.js +89 -0
  86. package/dist/Slot/Slot.js.map +1 -0
  87. package/dist/Slot/index.cjs +3 -0
  88. package/dist/Slot/index.d.cts +3 -0
  89. package/dist/Slot/index.d.ts +3 -0
  90. package/dist/Slot/index.js +2 -0
  91. package/dist/Slot/types.cjs +0 -0
  92. package/dist/Slot/types.d.cts +17 -0
  93. package/dist/Slot/types.d.ts +17 -0
  94. package/dist/Slot/types.js +0 -0
  95. package/dist/_virtual/_rolldown/runtime.cjs +4 -0
  96. package/dist/api/hooks/index.cjs +20 -0
  97. package/dist/api/hooks/index.d.cts +12 -0
  98. package/dist/api/hooks/index.d.ts +12 -0
  99. package/dist/api/hooks/index.js +13 -0
  100. package/dist/api/hooks/reuseQuery/index.cjs +4 -0
  101. package/dist/api/hooks/reuseQuery/index.d.cts +2 -0
  102. package/dist/api/hooks/reuseQuery/index.d.ts +2 -0
  103. package/dist/api/hooks/reuseQuery/index.js +2 -0
  104. package/dist/api/hooks/reuseQuery/reuseQuery.cjs +44 -0
  105. package/dist/api/hooks/reuseQuery/reuseQuery.cjs.map +1 -0
  106. package/dist/api/hooks/reuseQuery/reuseQuery.d.cts +37 -0
  107. package/dist/api/hooks/reuseQuery/reuseQuery.d.ts +37 -0
  108. package/dist/api/hooks/reuseQuery/reuseQuery.js +42 -0
  109. package/dist/api/hooks/reuseQuery/reuseQuery.js.map +1 -0
  110. package/dist/api/hooks/useApiQueryCache/index.cjs +3 -0
  111. package/dist/api/hooks/useApiQueryCache/index.d.cts +2 -0
  112. package/dist/api/hooks/useApiQueryCache/index.d.ts +2 -0
  113. package/dist/api/hooks/useApiQueryCache/index.js +2 -0
  114. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.cjs +31 -0
  115. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.cjs.map +1 -0
  116. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.d.cts +24 -0
  117. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.d.ts +24 -0
  118. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.js +30 -0
  119. package/dist/api/hooks/useApiQueryCache/useApiQueryCache.js.map +1 -0
  120. package/dist/api/hooks/useInfiniteQuery/index.cjs +3 -0
  121. package/dist/api/hooks/useInfiniteQuery/index.d.cts +3 -0
  122. package/dist/api/hooks/useInfiniteQuery/index.d.ts +3 -0
  123. package/dist/api/hooks/useInfiniteQuery/index.js +2 -0
  124. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.cjs +34 -0
  125. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.cjs.map +1 -0
  126. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.d.cts +29 -0
  127. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.d.ts +29 -0
  128. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.js +33 -0
  129. package/dist/api/hooks/useInfiniteQuery/useInfiniteQuery.js.map +1 -0
  130. package/dist/api/hooks/useMutation/index.cjs +3 -0
  131. package/dist/api/hooks/useMutation/index.d.cts +3 -0
  132. package/dist/api/hooks/useMutation/index.d.ts +3 -0
  133. package/dist/api/hooks/useMutation/index.js +2 -0
  134. package/dist/api/hooks/useMutation/useMutation.cjs +30 -0
  135. package/dist/api/hooks/useMutation/useMutation.cjs.map +1 -0
  136. package/dist/api/hooks/useMutation/useMutation.d.cts +25 -0
  137. package/dist/api/hooks/useMutation/useMutation.d.ts +25 -0
  138. package/dist/api/hooks/useMutation/useMutation.js +29 -0
  139. package/dist/api/hooks/useMutation/useMutation.js.map +1 -0
  140. package/dist/api/hooks/useQueries/index.cjs +3 -0
  141. package/dist/api/hooks/useQueries/index.d.cts +3 -0
  142. package/dist/api/hooks/useQueries/index.d.ts +3 -0
  143. package/dist/api/hooks/useQueries/index.js +2 -0
  144. package/dist/api/hooks/useQueries/useQueries.cjs +32 -0
  145. package/dist/api/hooks/useQueries/useQueries.cjs.map +1 -0
  146. package/dist/api/hooks/useQueries/useQueries.d.cts +28 -0
  147. package/dist/api/hooks/useQueries/useQueries.d.ts +28 -0
  148. package/dist/api/hooks/useQueries/useQueries.js +31 -0
  149. package/dist/api/hooks/useQueries/useQueries.js.map +1 -0
  150. package/dist/api/hooks/useQuery/index.cjs +3 -0
  151. package/dist/api/hooks/useQuery/index.d.cts +3 -0
  152. package/dist/api/hooks/useQuery/index.d.ts +3 -0
  153. package/dist/api/hooks/useQuery/index.js +2 -0
  154. package/dist/api/hooks/useQuery/useQuery.cjs +30 -0
  155. package/dist/api/hooks/useQuery/useQuery.cjs.map +1 -0
  156. package/dist/api/hooks/useQuery/useQuery.d.cts +25 -0
  157. package/dist/api/hooks/useQuery/useQuery.d.ts +25 -0
  158. package/dist/api/hooks/useQuery/useQuery.js +29 -0
  159. package/dist/api/hooks/useQuery/useQuery.js.map +1 -0
  160. package/dist/api/hooks/utils/index.cjs +4 -0
  161. package/dist/api/hooks/utils/index.d.cts +2 -0
  162. package/dist/api/hooks/utils/index.d.ts +2 -0
  163. package/dist/api/hooks/utils/index.js +2 -0
  164. package/dist/api/hooks/utils/useReactiveRender.cjs +56 -0
  165. package/dist/api/hooks/utils/useReactiveRender.cjs.map +1 -0
  166. package/dist/api/hooks/utils/useReactiveRender.d.cts +29 -0
  167. package/dist/api/hooks/utils/useReactiveRender.d.ts +29 -0
  168. package/dist/api/hooks/utils/useReactiveRender.js +54 -0
  169. package/dist/api/hooks/utils/useReactiveRender.js.map +1 -0
  170. package/dist/api/index.cjs +18 -0
  171. package/dist/api/index.d.cts +15 -0
  172. package/dist/api/index.d.ts +15 -0
  173. package/dist/api/index.js +10 -0
  174. package/dist/api/installApiCache/index.cjs +3 -0
  175. package/dist/api/installApiCache/index.d.cts +3 -0
  176. package/dist/api/installApiCache/index.d.ts +3 -0
  177. package/dist/api/installApiCache/index.js +2 -0
  178. package/dist/api/installApiCache/installApiCache.cjs +35 -0
  179. package/dist/api/installApiCache/installApiCache.cjs.map +1 -0
  180. package/dist/api/installApiCache/installApiCache.d.cts +29 -0
  181. package/dist/api/installApiCache/installApiCache.d.ts +29 -0
  182. package/dist/api/installApiCache/installApiCache.js +34 -0
  183. package/dist/api/installApiCache/installApiCache.js.map +1 -0
  184. package/dist/api/installApiCache/types.cjs +0 -0
  185. package/dist/api/installApiCache/types.d.cts +21 -0
  186. package/dist/api/installApiCache/types.d.ts +21 -0
  187. package/dist/api/installApiCache/types.js +0 -0
  188. package/dist/api/types.cjs +0 -0
  189. package/dist/api/types.d.cts +2 -0
  190. package/dist/api/types.d.ts +2 -0
  191. package/dist/api/types.js +0 -0
  192. package/dist/computed/computed.cjs +28 -0
  193. package/dist/computed/computed.cjs.map +1 -0
  194. package/dist/computed/computed.d.cts +25 -0
  195. package/dist/computed/computed.d.ts +25 -0
  196. package/dist/computed/computed.js +27 -0
  197. package/dist/computed/computed.js.map +1 -0
  198. package/dist/computed/index.cjs +3 -0
  199. package/dist/computed/index.d.cts +2 -0
  200. package/dist/computed/index.d.ts +2 -0
  201. package/dist/computed/index.js +2 -0
  202. package/dist/createEntry/UpdateEntry/UpdateEntry.cjs +6 -0
  203. package/dist/createEntry/UpdateEntry/UpdateEntry.cjs.map +1 -0
  204. package/dist/createEntry/UpdateEntry/UpdateEntry.js +7 -0
  205. package/dist/createEntry/UpdateEntry/UpdateEntry.js.map +1 -0
  206. package/dist/createEntry/UpdateEntry/UpdateEntry.vue.d.cts +6 -0
  207. package/dist/createEntry/UpdateEntry/UpdateEntry.vue.d.ts +7 -0
  208. package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.cjs +35 -0
  209. package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  210. package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.js +35 -0
  211. package/dist/createEntry/UpdateEntry/UpdateEntry.vue_vue_type_script_setup_true_lang.js.map +1 -0
  212. package/dist/createEntry/UpdateEntry/Vnode.cjs +19 -0
  213. package/dist/createEntry/UpdateEntry/Vnode.cjs.map +1 -0
  214. package/dist/createEntry/UpdateEntry/Vnode.d.cts +20 -0
  215. package/dist/createEntry/UpdateEntry/Vnode.d.ts +20 -0
  216. package/dist/createEntry/UpdateEntry/Vnode.js +18 -0
  217. package/dist/createEntry/UpdateEntry/Vnode.js.map +1 -0
  218. package/dist/createEntry/UpdateEntry/index.cjs +3 -0
  219. package/dist/createEntry/UpdateEntry/index.d.cts +3 -0
  220. package/dist/createEntry/UpdateEntry/index.d.ts +3 -0
  221. package/dist/createEntry/UpdateEntry/index.js +2 -0
  222. package/dist/createEntry/UpdateEntry/types.cjs +0 -0
  223. package/dist/createEntry/UpdateEntry/types.d.cts +18 -0
  224. package/dist/createEntry/UpdateEntry/types.d.ts +18 -0
  225. package/dist/createEntry/UpdateEntry/types.js +0 -0
  226. package/dist/createEntry/WaitFor/WaitFor.cjs +6 -0
  227. package/dist/createEntry/WaitFor/WaitFor.cjs.map +1 -0
  228. package/dist/createEntry/WaitFor/WaitFor.js +7 -0
  229. package/dist/createEntry/WaitFor/WaitFor.js.map +1 -0
  230. package/dist/createEntry/WaitFor/WaitFor.vue.d.cts +6 -0
  231. package/dist/createEntry/WaitFor/WaitFor.vue.d.ts +7 -0
  232. package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.cjs +50 -0
  233. package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  234. package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.js +50 -0
  235. package/dist/createEntry/WaitFor/WaitFor.vue_vue_type_script_setup_true_lang.js.map +1 -0
  236. package/dist/createEntry/WaitFor/index.cjs +3 -0
  237. package/dist/createEntry/WaitFor/index.d.cts +3 -0
  238. package/dist/createEntry/WaitFor/index.d.ts +3 -0
  239. package/dist/createEntry/WaitFor/index.js +2 -0
  240. package/dist/createEntry/WaitFor/types.cjs +0 -0
  241. package/dist/createEntry/WaitFor/types.d.cts +21 -0
  242. package/dist/createEntry/WaitFor/types.d.ts +21 -0
  243. package/dist/createEntry/WaitFor/types.js +0 -0
  244. package/dist/createEntry/createEntry.cjs +32 -0
  245. package/dist/createEntry/createEntry.cjs.map +1 -0
  246. package/dist/createEntry/createEntry.d.cts +17 -0
  247. package/dist/createEntry/createEntry.d.ts +17 -0
  248. package/dist/createEntry/createEntry.js +31 -0
  249. package/dist/createEntry/createEntry.js.map +1 -0
  250. package/dist/createEntry/createServerEntry.cjs +45 -0
  251. package/dist/createEntry/createServerEntry.cjs.map +1 -0
  252. package/dist/createEntry/createServerEntry.d.cts +17 -0
  253. package/dist/createEntry/createServerEntry.d.ts +17 -0
  254. package/dist/createEntry/createServerEntry.js +43 -0
  255. package/dist/createEntry/createServerEntry.js.map +1 -0
  256. package/dist/createEntry/index.cjs +5 -0
  257. package/dist/createEntry/index.d.cts +5 -0
  258. package/dist/createEntry/index.d.ts +5 -0
  259. package/dist/createEntry/index.js +3 -0
  260. package/dist/createEntry/types.cjs +0 -0
  261. package/dist/createEntry/types.d.cts +75 -0
  262. package/dist/createEntry/types.d.ts +75 -0
  263. package/dist/createEntry/types.js +0 -0
  264. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.cjs +28 -0
  265. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.cjs.map +1 -0
  266. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.d.cts +27 -0
  267. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.d.ts +27 -0
  268. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.js +27 -0
  269. package/dist/createEntry/utils/createServerVueApp/createServerVueApp.js.map +1 -0
  270. package/dist/createEntry/utils/createServerVueApp/index.cjs +3 -0
  271. package/dist/createEntry/utils/createServerVueApp/index.d.cts +2 -0
  272. package/dist/createEntry/utils/createServerVueApp/index.d.ts +2 -0
  273. package/dist/createEntry/utils/createServerVueApp/index.js +2 -0
  274. package/dist/createEntry/utils/createServerVueApp/types.cjs +0 -0
  275. package/dist/createEntry/utils/createServerVueApp/types.d.cts +7 -0
  276. package/dist/createEntry/utils/createServerVueApp/types.d.ts +7 -0
  277. package/dist/createEntry/utils/createServerVueApp/types.js +0 -0
  278. package/dist/createEntry/utils/createVueApp/createVueApp.cjs +43 -0
  279. package/dist/createEntry/utils/createVueApp/createVueApp.cjs.map +1 -0
  280. package/dist/createEntry/utils/createVueApp/createVueApp.d.cts +22 -0
  281. package/dist/createEntry/utils/createVueApp/createVueApp.d.ts +22 -0
  282. package/dist/createEntry/utils/createVueApp/createVueApp.js +42 -0
  283. package/dist/createEntry/utils/createVueApp/createVueApp.js.map +1 -0
  284. package/dist/createEntry/utils/createVueApp/index.cjs +3 -0
  285. package/dist/createEntry/utils/createVueApp/index.d.cts +2 -0
  286. package/dist/createEntry/utils/createVueApp/index.d.ts +2 -0
  287. package/dist/createEntry/utils/createVueApp/index.js +2 -0
  288. package/dist/createEntry/utils/index.cjs +10 -0
  289. package/dist/createEntry/utils/index.d.cts +5 -0
  290. package/dist/createEntry/utils/index.d.ts +5 -0
  291. package/dist/createEntry/utils/index.js +6 -0
  292. package/dist/createEntry/utils/normalizeVueOptions/index.cjs +3 -0
  293. package/dist/createEntry/utils/normalizeVueOptions/index.d.cts +2 -0
  294. package/dist/createEntry/utils/normalizeVueOptions/index.d.ts +2 -0
  295. package/dist/createEntry/utils/normalizeVueOptions/index.js +2 -0
  296. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.cjs +28 -0
  297. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.cjs.map +1 -0
  298. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.d.cts +17 -0
  299. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.d.ts +17 -0
  300. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.js +27 -0
  301. package/dist/createEntry/utils/normalizeVueOptions/normalizeVueOptions.js.map +1 -0
  302. package/dist/createEntry/utils/setupVueEntry/index.cjs +3 -0
  303. package/dist/createEntry/utils/setupVueEntry/index.d.cts +2 -0
  304. package/dist/createEntry/utils/setupVueEntry/index.d.ts +2 -0
  305. package/dist/createEntry/utils/setupVueEntry/index.js +2 -0
  306. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.cjs +31 -0
  307. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.cjs.map +1 -0
  308. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.d.cts +17 -0
  309. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.d.ts +17 -0
  310. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.js +30 -0
  311. package/dist/createEntry/utils/setupVueEntry/setupVueEntry.js.map +1 -0
  312. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.cjs +49 -0
  313. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.cjs.map +1 -0
  314. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.d.cts +33 -0
  315. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.d.ts +33 -0
  316. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.js +48 -0
  317. package/dist/createPiniaAsyncStore/createPiniaAsyncStore.js.map +1 -0
  318. package/dist/createPiniaAsyncStore/index.cjs +3 -0
  319. package/dist/createPiniaAsyncStore/index.d.cts +3 -0
  320. package/dist/createPiniaAsyncStore/index.d.ts +3 -0
  321. package/dist/createPiniaAsyncStore/index.js +2 -0
  322. package/dist/createPiniaAsyncStore/types.cjs +0 -0
  323. package/dist/createPiniaAsyncStore/types.d.cts +22 -0
  324. package/dist/createPiniaAsyncStore/types.d.ts +22 -0
  325. package/dist/createPiniaAsyncStore/types.js +0 -0
  326. package/dist/getContext/getContext.cjs +29 -0
  327. package/dist/getContext/getContext.cjs.map +1 -0
  328. package/dist/getContext/getContext.d.cts +24 -0
  329. package/dist/getContext/getContext.d.ts +24 -0
  330. package/dist/getContext/getContext.js +28 -0
  331. package/dist/getContext/getContext.js.map +1 -0
  332. package/dist/getContext/index.cjs +3 -0
  333. package/dist/getContext/index.d.cts +2 -0
  334. package/dist/getContext/index.d.ts +2 -0
  335. package/dist/getContext/index.js +2 -0
  336. package/dist/getEventHandlers/getEventHandlers.cjs +65 -0
  337. package/dist/getEventHandlers/getEventHandlers.cjs.map +1 -0
  338. package/dist/getEventHandlers/getEventHandlers.d.cts +45 -0
  339. package/dist/getEventHandlers/getEventHandlers.d.ts +45 -0
  340. package/dist/getEventHandlers/getEventHandlers.js +64 -0
  341. package/dist/getEventHandlers/getEventHandlers.js.map +1 -0
  342. package/dist/getEventHandlers/index.cjs +3 -0
  343. package/dist/getEventHandlers/index.d.cts +3 -0
  344. package/dist/getEventHandlers/index.d.ts +3 -0
  345. package/dist/getEventHandlers/index.js +2 -0
  346. package/dist/getEventHandlers/types.cjs +0 -0
  347. package/dist/getEventHandlers/types.d.cts +7 -0
  348. package/dist/getEventHandlers/types.d.ts +7 -0
  349. package/dist/getEventHandlers/types.js +0 -0
  350. package/dist/index.cjs +104 -0
  351. package/dist/index.d.cts +61 -0
  352. package/dist/index.d.ts +61 -0
  353. package/dist/index.js +62 -0
  354. package/dist/node_modules/@babel/parser/lib/index.cjs +12599 -0
  355. package/dist/node_modules/@babel/parser/lib/index.cjs.map +1 -0
  356. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs +4832 -0
  357. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs.map +1 -0
  358. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs +4775 -0
  359. package/dist/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs.map +1 -0
  360. package/dist/node_modules/@vue/compiler-core/index.cjs +18 -0
  361. package/dist/node_modules/@vue/compiler-core/index.cjs.map +1 -0
  362. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs +665 -0
  363. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs.map +1 -0
  364. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs +447 -0
  365. package/dist/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs.map +1 -0
  366. package/dist/node_modules/@vue/compiler-dom/index.cjs +18 -0
  367. package/dist/node_modules/@vue/compiler-dom/index.cjs.map +1 -0
  368. package/dist/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.cjs +848 -0
  369. package/dist/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.cjs.map +1 -0
  370. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.cjs +830 -0
  371. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.cjs.map +1 -0
  372. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.cjs +605 -0
  373. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.cjs.map +1 -0
  374. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +532 -0
  375. package/dist/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
  376. package/dist/node_modules/@vue/server-renderer/index.cjs +18 -0
  377. package/dist/node_modules/@vue/server-renderer/index.cjs.map +1 -0
  378. package/dist/node_modules/@vue/shared/dist/shared.cjs.cjs +496 -0
  379. package/dist/node_modules/@vue/shared/dist/shared.cjs.cjs.map +1 -0
  380. package/dist/node_modules/@vue/shared/dist/shared.cjs.prod.cjs +495 -0
  381. package/dist/node_modules/@vue/shared/dist/shared.cjs.prod.cjs.map +1 -0
  382. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +166 -0
  383. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
  384. package/dist/node_modules/@vue/shared/index.cjs +18 -0
  385. package/dist/node_modules/@vue/shared/index.cjs.map +1 -0
  386. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.cjs +81 -0
  387. package/dist/node_modules/entities/dist/commonjs/decode-codepoint.cjs.map +1 -0
  388. package/dist/node_modules/entities/dist/commonjs/decode.cjs +474 -0
  389. package/dist/node_modules/entities/dist/commonjs/decode.cjs.map +1 -0
  390. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.cjs +18 -0
  391. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-html.cjs.map +1 -0
  392. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.cjs +18 -0
  393. package/dist/node_modules/entities/dist/commonjs/generated/decode-data-xml.cjs.map +1 -0
  394. package/dist/node_modules/entities/dist/commonjs/internal/bin-trie-flags.cjs +32 -0
  395. package/dist/node_modules/entities/dist/commonjs/internal/bin-trie-flags.cjs.map +1 -0
  396. package/dist/node_modules/entities/dist/commonjs/internal/decode-shared.cjs +26 -0
  397. package/dist/node_modules/entities/dist/commonjs/internal/decode-shared.cjs.map +1 -0
  398. package/dist/node_modules/estree-walker/dist/umd/estree-walker.cjs +254 -0
  399. package/dist/node_modules/estree-walker/dist/umd/estree-walker.cjs.map +1 -0
  400. package/dist/node_modules/source-map-js/lib/array-set.cjs +102 -0
  401. package/dist/node_modules/source-map-js/lib/array-set.cjs.map +1 -0
  402. package/dist/node_modules/source-map-js/lib/base64-vlq.cjs +75 -0
  403. package/dist/node_modules/source-map-js/lib/base64-vlq.cjs.map +1 -0
  404. package/dist/node_modules/source-map-js/lib/base64.cjs +42 -0
  405. package/dist/node_modules/source-map-js/lib/base64.cjs.map +1 -0
  406. package/dist/node_modules/source-map-js/lib/binary-search.cjs +69 -0
  407. package/dist/node_modules/source-map-js/lib/binary-search.cjs.map +1 -0
  408. package/dist/node_modules/source-map-js/lib/mapping-list.cjs +79 -0
  409. package/dist/node_modules/source-map-js/lib/mapping-list.cjs.map +1 -0
  410. package/dist/node_modules/source-map-js/lib/quick-sort.cjs +90 -0
  411. package/dist/node_modules/source-map-js/lib/quick-sort.cjs.map +1 -0
  412. package/dist/node_modules/source-map-js/lib/source-map-consumer.cjs +790 -0
  413. package/dist/node_modules/source-map-js/lib/source-map-consumer.cjs.map +1 -0
  414. package/dist/node_modules/source-map-js/lib/source-map-generator.cjs +297 -0
  415. package/dist/node_modules/source-map-js/lib/source-map-generator.cjs.map +1 -0
  416. package/dist/node_modules/source-map-js/lib/source-node.cjs +295 -0
  417. package/dist/node_modules/source-map-js/lib/source-node.cjs.map +1 -0
  418. package/dist/node_modules/source-map-js/lib/util.cjs +353 -0
  419. package/dist/node_modules/source-map-js/lib/util.cjs.map +1 -0
  420. package/dist/node_modules/source-map-js/source-map.cjs +19 -0
  421. package/dist/node_modules/source-map-js/source-map.cjs.map +1 -0
  422. package/dist/portals/Portal/Portal.cjs +6 -0
  423. package/dist/portals/Portal/Portal.cjs.map +1 -0
  424. package/dist/portals/Portal/Portal.js +7 -0
  425. package/dist/portals/Portal/Portal.js.map +1 -0
  426. package/dist/portals/Portal/Portal.vue.d.cts +6 -0
  427. package/dist/portals/Portal/Portal.vue.d.ts +7 -0
  428. package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.cjs +56 -0
  429. package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  430. package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.js +56 -0
  431. package/dist/portals/Portal/Portal.vue_vue_type_script_setup_true_lang.js.map +1 -0
  432. package/dist/portals/Portal/index.cjs +3 -0
  433. package/dist/portals/Portal/index.d.cts +3 -0
  434. package/dist/portals/Portal/index.d.ts +3 -0
  435. package/dist/portals/Portal/index.js +2 -0
  436. package/dist/portals/Portal/types.cjs +0 -0
  437. package/dist/portals/Portal/types.d.cts +19 -0
  438. package/dist/portals/Portal/types.d.ts +19 -0
  439. package/dist/portals/Portal/types.js +0 -0
  440. package/dist/portals/index.cjs +13 -0
  441. package/dist/portals/index.d.cts +8 -0
  442. package/dist/portals/index.d.ts +8 -0
  443. package/dist/portals/index.js +8 -0
  444. package/dist/portals/installPortals/index.cjs +3 -0
  445. package/dist/portals/installPortals/index.d.cts +3 -0
  446. package/dist/portals/installPortals/index.d.ts +3 -0
  447. package/dist/portals/installPortals/index.js +2 -0
  448. package/dist/portals/installPortals/installPortals.cjs +25 -0
  449. package/dist/portals/installPortals/installPortals.cjs.map +1 -0
  450. package/dist/portals/installPortals/installPortals.d.cts +25 -0
  451. package/dist/portals/installPortals/installPortals.d.ts +25 -0
  452. package/dist/portals/installPortals/installPortals.js +24 -0
  453. package/dist/portals/installPortals/installPortals.js.map +1 -0
  454. package/dist/portals/installPortals/types.cjs +0 -0
  455. package/dist/portals/installPortals/types.d.cts +23 -0
  456. package/dist/portals/installPortals/types.d.ts +23 -0
  457. package/dist/portals/installPortals/types.js +0 -0
  458. package/dist/portals/types.cjs +0 -0
  459. package/dist/portals/types.d.cts +40 -0
  460. package/dist/portals/types.d.ts +40 -0
  461. package/dist/portals/types.js +0 -0
  462. package/dist/portals/usePortal.cjs +44 -0
  463. package/dist/portals/usePortal.cjs.map +1 -0
  464. package/dist/portals/usePortal.d.cts +17 -0
  465. package/dist/portals/usePortal.d.ts +17 -0
  466. package/dist/portals/usePortal.js +43 -0
  467. package/dist/portals/usePortal.js.map +1 -0
  468. package/dist/portals/usePortalAnchors.cjs +21 -0
  469. package/dist/portals/usePortalAnchors.cjs.map +1 -0
  470. package/dist/portals/usePortalAnchors.d.cts +14 -0
  471. package/dist/portals/usePortalAnchors.d.ts +14 -0
  472. package/dist/portals/usePortalAnchors.js +20 -0
  473. package/dist/portals/usePortalAnchors.js.map +1 -0
  474. package/dist/portals/usePortals.cjs +21 -0
  475. package/dist/portals/usePortals.cjs.map +1 -0
  476. package/dist/portals/usePortals.d.cts +14 -0
  477. package/dist/portals/usePortals.d.ts +14 -0
  478. package/dist/portals/usePortals.js +20 -0
  479. package/dist/portals/usePortals.js.map +1 -0
  480. package/dist/router/RouterLink/RouterLink.cjs +6 -0
  481. package/dist/router/RouterLink/RouterLink.cjs.map +1 -0
  482. package/dist/router/RouterLink/RouterLink.js +7 -0
  483. package/dist/router/RouterLink/RouterLink.js.map +1 -0
  484. package/dist/router/RouterLink/RouterLink.vue.d.cts +18 -0
  485. package/dist/router/RouterLink/RouterLink.vue.d.ts +19 -0
  486. package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.cjs +59 -0
  487. package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  488. package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.js +59 -0
  489. package/dist/router/RouterLink/RouterLink.vue_vue_type_script_setup_true_lang.js.map +1 -0
  490. package/dist/router/RouterLink/index.cjs +3 -0
  491. package/dist/router/RouterLink/index.d.cts +3 -0
  492. package/dist/router/RouterLink/index.d.ts +3 -0
  493. package/dist/router/RouterLink/index.js +2 -0
  494. package/dist/router/RouterLink/types.cjs +0 -0
  495. package/dist/router/RouterLink/types.d.cts +11 -0
  496. package/dist/router/RouterLink/types.d.ts +11 -0
  497. package/dist/router/RouterLink/types.js +0 -0
  498. package/dist/router/RouterView/RouterView.cjs +6 -0
  499. package/dist/router/RouterView/RouterView.cjs.map +1 -0
  500. package/dist/router/RouterView/RouterView.js +7 -0
  501. package/dist/router/RouterView/RouterView.js.map +1 -0
  502. package/dist/router/RouterView/RouterView.vue.d.cts +6 -0
  503. package/dist/router/RouterView/RouterView.vue.d.ts +7 -0
  504. package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.cjs +58 -0
  505. package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
  506. package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.js +58 -0
  507. package/dist/router/RouterView/RouterView.vue_vue_type_script_setup_true_lang.js.map +1 -0
  508. package/dist/router/RouterView/index.cjs +3 -0
  509. package/dist/router/RouterView/index.d.cts +2 -0
  510. package/dist/router/RouterView/index.d.ts +2 -0
  511. package/dist/router/RouterView/index.js +2 -0
  512. package/dist/router/RouterView/types.cjs +0 -0
  513. package/dist/router/RouterView/types.d.cts +15 -0
  514. package/dist/router/RouterView/types.d.ts +15 -0
  515. package/dist/router/RouterView/types.js +0 -0
  516. package/dist/router/index.cjs +28 -0
  517. package/dist/router/index.d.cts +12 -0
  518. package/dist/router/index.d.ts +12 -0
  519. package/dist/router/index.js +18 -0
  520. package/dist/router/installRouter.cjs +34 -0
  521. package/dist/router/installRouter.cjs.map +1 -0
  522. package/dist/router/installRouter.d.cts +14 -0
  523. package/dist/router/installRouter.d.ts +14 -0
  524. package/dist/router/installRouter.js +33 -0
  525. package/dist/router/installRouter.js.map +1 -0
  526. package/dist/router/types.cjs +1 -0
  527. package/dist/router/types.d.cts +21 -0
  528. package/dist/router/types.d.ts +21 -0
  529. package/dist/router/types.js +1 -0
  530. package/dist/router/useLocation/index.cjs +3 -0
  531. package/dist/router/useLocation/index.d.cts +2 -0
  532. package/dist/router/useLocation/index.d.ts +2 -0
  533. package/dist/router/useLocation/index.js +2 -0
  534. package/dist/router/useLocation/useLocation.cjs +24 -0
  535. package/dist/router/useLocation/useLocation.cjs.map +1 -0
  536. package/dist/router/useLocation/useLocation.d.cts +12 -0
  537. package/dist/router/useLocation/useLocation.d.ts +12 -0
  538. package/dist/router/useLocation/useLocation.js +23 -0
  539. package/dist/router/useLocation/useLocation.js.map +1 -0
  540. package/dist/router/useNavigate/index.cjs +3 -0
  541. package/dist/router/useNavigate/index.d.cts +2 -0
  542. package/dist/router/useNavigate/index.d.ts +2 -0
  543. package/dist/router/useNavigate/index.js +2 -0
  544. package/dist/router/useNavigate/useNavigate.cjs +17 -0
  545. package/dist/router/useNavigate/useNavigate.cjs.map +1 -0
  546. package/dist/router/useNavigate/useNavigate.d.cts +12 -0
  547. package/dist/router/useNavigate/useNavigate.d.ts +12 -0
  548. package/dist/router/useNavigate/useNavigate.js +16 -0
  549. package/dist/router/useNavigate/useNavigate.js.map +1 -0
  550. package/dist/router/usePaths/index.cjs +3 -0
  551. package/dist/router/usePaths/index.d.cts +2 -0
  552. package/dist/router/usePaths/index.d.ts +2 -0
  553. package/dist/router/usePaths/index.js +2 -0
  554. package/dist/router/usePaths/usePaths.cjs +27 -0
  555. package/dist/router/usePaths/usePaths.cjs.map +1 -0
  556. package/dist/router/usePaths/usePaths.d.cts +14 -0
  557. package/dist/router/usePaths/usePaths.d.ts +14 -0
  558. package/dist/router/usePaths/usePaths.js +26 -0
  559. package/dist/router/usePaths/usePaths.js.map +1 -0
  560. package/dist/router/useRoute/index.cjs +3 -0
  561. package/dist/router/useRoute/index.d.cts +2 -0
  562. package/dist/router/useRoute/index.d.ts +2 -0
  563. package/dist/router/useRoute/index.js +2 -0
  564. package/dist/router/useRoute/useRoute.cjs +28 -0
  565. package/dist/router/useRoute/useRoute.cjs.map +1 -0
  566. package/dist/router/useRoute/useRoute.d.cts +12 -0
  567. package/dist/router/useRoute/useRoute.d.ts +12 -0
  568. package/dist/router/useRoute/useRoute.js +27 -0
  569. package/dist/router/useRoute/useRoute.js.map +1 -0
  570. package/dist/router/useRouter/index.cjs +3 -0
  571. package/dist/router/useRouter/index.d.cts +2 -0
  572. package/dist/router/useRouter/index.d.ts +2 -0
  573. package/dist/router/useRouter/index.js +2 -0
  574. package/dist/router/useRouter/useRouter.cjs +17 -0
  575. package/dist/router/useRouter/useRouter.cjs.map +1 -0
  576. package/dist/router/useRouter/useRouter.d.cts +12 -0
  577. package/dist/router/useRouter/useRouter.d.ts +12 -0
  578. package/dist/router/useRouter/useRouter.js +16 -0
  579. package/dist/router/useRouter/useRouter.js.map +1 -0
  580. package/dist/router/useRouterLink/index.cjs +3 -0
  581. package/dist/router/useRouterLink/index.d.cts +3 -0
  582. package/dist/router/useRouterLink/index.d.ts +3 -0
  583. package/dist/router/useRouterLink/index.js +2 -0
  584. package/dist/router/useRouterLink/types.cjs +0 -0
  585. package/dist/router/useRouterLink/types.d.cts +2 -0
  586. package/dist/router/useRouterLink/types.d.ts +2 -0
  587. package/dist/router/useRouterLink/types.js +0 -0
  588. package/dist/router/useRouterLink/useRouterLink.cjs +37 -0
  589. package/dist/router/useRouterLink/useRouterLink.cjs.map +1 -0
  590. package/dist/router/useRouterLink/useRouterLink.d.cts +13 -0
  591. package/dist/router/useRouterLink/useRouterLink.d.ts +13 -0
  592. package/dist/router/useRouterLink/useRouterLink.js +36 -0
  593. package/dist/router/useRouterLink/useRouterLink.js.map +1 -0
  594. package/dist/router/useSearchParams/index.cjs +3 -0
  595. package/dist/router/useSearchParams/index.d.cts +2 -0
  596. package/dist/router/useSearchParams/index.d.ts +2 -0
  597. package/dist/router/useSearchParams/index.js +2 -0
  598. package/dist/router/useSearchParams/useSearchParams.cjs +29 -0
  599. package/dist/router/useSearchParams/useSearchParams.cjs.map +1 -0
  600. package/dist/router/useSearchParams/useSearchParams.d.cts +14 -0
  601. package/dist/router/useSearchParams/useSearchParams.d.ts +14 -0
  602. package/dist/router/useSearchParams/useSearchParams.js +28 -0
  603. package/dist/router/useSearchParams/useSearchParams.js.map +1 -0
  604. package/dist/setContext/index.cjs +3 -0
  605. package/dist/setContext/index.d.cts +2 -0
  606. package/dist/setContext/index.d.ts +2 -0
  607. package/dist/setContext/index.js +2 -0
  608. package/dist/setContext/setContext.cjs +29 -0
  609. package/dist/setContext/setContext.cjs.map +1 -0
  610. package/dist/setContext/setContext.d.cts +24 -0
  611. package/dist/setContext/setContext.d.ts +24 -0
  612. package/dist/setContext/setContext.js +28 -0
  613. package/dist/setContext/setContext.js.map +1 -0
  614. package/dist/useBeforeMount/index.cjs +3 -0
  615. package/dist/useBeforeMount/index.d.cts +2 -0
  616. package/dist/useBeforeMount/index.d.ts +2 -0
  617. package/dist/useBeforeMount/index.js +2 -0
  618. package/dist/useBeforeMount/useBeforeMount.cjs +29 -0
  619. package/dist/useBeforeMount/useBeforeMount.cjs.map +1 -0
  620. package/dist/useBeforeMount/useBeforeMount.d.cts +24 -0
  621. package/dist/useBeforeMount/useBeforeMount.d.ts +24 -0
  622. package/dist/useBeforeMount/useBeforeMount.js +28 -0
  623. package/dist/useBeforeMount/useBeforeMount.js.map +1 -0
  624. package/dist/useBeforeUnmount/index.cjs +3 -0
  625. package/dist/useBeforeUnmount/index.d.cts +2 -0
  626. package/dist/useBeforeUnmount/index.d.ts +2 -0
  627. package/dist/useBeforeUnmount/index.js +2 -0
  628. package/dist/useBeforeUnmount/useBeforeUnmount.cjs +29 -0
  629. package/dist/useBeforeUnmount/useBeforeUnmount.cjs.map +1 -0
  630. package/dist/useBeforeUnmount/useBeforeUnmount.d.cts +24 -0
  631. package/dist/useBeforeUnmount/useBeforeUnmount.d.ts +24 -0
  632. package/dist/useBeforeUnmount/useBeforeUnmount.js +28 -0
  633. package/dist/useBeforeUnmount/useBeforeUnmount.js.map +1 -0
  634. package/dist/useChildren/index.cjs +3 -0
  635. package/dist/useChildren/index.d.cts +2 -0
  636. package/dist/useChildren/index.d.ts +2 -0
  637. package/dist/useChildren/index.js +2 -0
  638. package/dist/useChildren/useChildren.cjs +35 -0
  639. package/dist/useChildren/useChildren.cjs.map +1 -0
  640. package/dist/useChildren/useChildren.d.cts +26 -0
  641. package/dist/useChildren/useChildren.d.ts +26 -0
  642. package/dist/useChildren/useChildren.js +34 -0
  643. package/dist/useChildren/useChildren.js.map +1 -0
  644. package/dist/useColorScheme/index.cjs +3 -0
  645. package/dist/useColorScheme/index.d.cts +2 -0
  646. package/dist/useColorScheme/index.d.ts +2 -0
  647. package/dist/useColorScheme/index.js +2 -0
  648. package/dist/useColorScheme/useColorScheme.cjs +46 -0
  649. package/dist/useColorScheme/useColorScheme.cjs.map +1 -0
  650. package/dist/useColorScheme/useColorScheme.d.cts +29 -0
  651. package/dist/useColorScheme/useColorScheme.d.ts +29 -0
  652. package/dist/useColorScheme/useColorScheme.js +45 -0
  653. package/dist/useColorScheme/useColorScheme.js.map +1 -0
  654. package/dist/useMediator/index.cjs +3 -0
  655. package/dist/useMediator/index.d.cts +3 -0
  656. package/dist/useMediator/index.d.ts +3 -0
  657. package/dist/useMediator/index.js +2 -0
  658. package/dist/useMediator/types.cjs +0 -0
  659. package/dist/useMediator/types.d.cts +2 -0
  660. package/dist/useMediator/types.d.ts +2 -0
  661. package/dist/useMediator/types.js +0 -0
  662. package/dist/useMediator/useMediator.cjs +137 -0
  663. package/dist/useMediator/useMediator.cjs.map +1 -0
  664. package/dist/useMediator/useMediator.d.cts +61 -0
  665. package/dist/useMediator/useMediator.d.ts +61 -0
  666. package/dist/useMediator/useMediator.js +136 -0
  667. package/dist/useMediator/useMediator.js.map +1 -0
  668. package/dist/useMediator/utils.cjs +22 -0
  669. package/dist/useMediator/utils.cjs.map +1 -0
  670. package/dist/useMediator/utils.d.cts +14 -0
  671. package/dist/useMediator/utils.d.ts +14 -0
  672. package/dist/useMediator/utils.js +21 -0
  673. package/dist/useMediator/utils.js.map +1 -0
  674. package/dist/useMounted/index.cjs +3 -0
  675. package/dist/useMounted/index.d.cts +2 -0
  676. package/dist/useMounted/index.d.ts +2 -0
  677. package/dist/useMounted/index.js +2 -0
  678. package/dist/useMounted/useMounted.cjs +29 -0
  679. package/dist/useMounted/useMounted.cjs.map +1 -0
  680. package/dist/useMounted/useMounted.d.cts +24 -0
  681. package/dist/useMounted/useMounted.d.ts +24 -0
  682. package/dist/useMounted/useMounted.js +28 -0
  683. package/dist/useMounted/useMounted.js.map +1 -0
  684. package/dist/useRef/index.cjs +3 -0
  685. package/dist/useRef/index.d.cts +2 -0
  686. package/dist/useRef/index.d.ts +2 -0
  687. package/dist/useRef/index.js +2 -0
  688. package/dist/useRef/useRef.cjs +28 -0
  689. package/dist/useRef/useRef.cjs.map +1 -0
  690. package/dist/useRef/useRef.d.cts +25 -0
  691. package/dist/useRef/useRef.d.ts +25 -0
  692. package/dist/useRef/useRef.js +27 -0
  693. package/dist/useRef/useRef.js.map +1 -0
  694. package/dist/withDefaultProps/constants.cjs +10 -0
  695. package/dist/withDefaultProps/constants.cjs.map +1 -0
  696. package/dist/withDefaultProps/constants.d.cts +8 -0
  697. package/dist/withDefaultProps/constants.d.ts +8 -0
  698. package/dist/withDefaultProps/constants.js +9 -0
  699. package/dist/withDefaultProps/constants.js.map +1 -0
  700. package/dist/withDefaultProps/index.cjs +3 -0
  701. package/dist/withDefaultProps/index.d.cts +3 -0
  702. package/dist/withDefaultProps/index.d.ts +3 -0
  703. package/dist/withDefaultProps/index.js +2 -0
  704. package/dist/withDefaultProps/types.cjs +0 -0
  705. package/dist/withDefaultProps/types.d.cts +25 -0
  706. package/dist/withDefaultProps/types.d.ts +25 -0
  707. package/dist/withDefaultProps/types.js +0 -0
  708. package/dist/withDefaultProps/withDefaultProps.cjs +85 -0
  709. package/dist/withDefaultProps/withDefaultProps.cjs.map +1 -0
  710. package/dist/withDefaultProps/withDefaultProps.d.cts +48 -0
  711. package/dist/withDefaultProps/withDefaultProps.d.ts +48 -0
  712. package/dist/withDefaultProps/withDefaultProps.js +84 -0
  713. package/dist/withDefaultProps/withDefaultProps.js.map +1 -0
  714. package/dist/withDefaultPropsHandlers/constants.cjs +7 -0
  715. package/dist/withDefaultPropsHandlers/constants.cjs.map +1 -0
  716. package/dist/withDefaultPropsHandlers/constants.d.cts +5 -0
  717. package/dist/withDefaultPropsHandlers/constants.d.ts +5 -0
  718. package/dist/withDefaultPropsHandlers/constants.js +6 -0
  719. package/dist/withDefaultPropsHandlers/constants.js.map +1 -0
  720. package/dist/withDefaultPropsHandlers/index.cjs +3 -0
  721. package/dist/withDefaultPropsHandlers/index.d.cts +3 -0
  722. package/dist/withDefaultPropsHandlers/index.d.ts +3 -0
  723. package/dist/withDefaultPropsHandlers/index.js +2 -0
  724. package/dist/withDefaultPropsHandlers/types.cjs +0 -0
  725. package/dist/withDefaultPropsHandlers/types.d.cts +12 -0
  726. package/dist/withDefaultPropsHandlers/types.d.ts +12 -0
  727. package/dist/withDefaultPropsHandlers/types.js +0 -0
  728. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.cjs +81 -0
  729. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.cjs.map +1 -0
  730. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.d.cts +49 -0
  731. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.d.ts +49 -0
  732. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.js +80 -0
  733. package/dist/withDefaultPropsHandlers/withDefaultPropsHandlers.js.map +1 -0
  734. package/package.json +647 -0
@@ -0,0 +1,790 @@
1
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
2
+ const require_base64_vlq$1 = require("./base64-vlq.cjs");
3
+ const require_util$1 = require("./util.cjs");
4
+ const require_array_set$1 = require("./array-set.cjs");
5
+ const require_binary_search$1 = require("./binary-search.cjs");
6
+ const require_quick_sort$1 = require("./quick-sort.cjs");
7
+ //#region node_modules/source-map-js/lib/source-map-consumer.js
8
+ var require_source_map_consumer = /* @__PURE__ */ require_runtime.__commonJSMin(((exports) => {
9
+ var util = require_util$1.default;
10
+ var binarySearch = require_binary_search$1.default;
11
+ var ArraySet = require_array_set$1.default.ArraySet;
12
+ var base64VLQ = require_base64_vlq$1.default;
13
+ var quickSort = require_quick_sort$1.default.quickSort;
14
+ function SourceMapConsumer(aSourceMap, aSourceMapURL) {
15
+ var sourceMap = aSourceMap;
16
+ if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
17
+ return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
18
+ }
19
+ SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) {
20
+ return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);
21
+ };
22
+ /**
23
+ * The version of the source mapping spec that we are consuming.
24
+ */
25
+ SourceMapConsumer.prototype._version = 3;
26
+ SourceMapConsumer.prototype.__generatedMappings = null;
27
+ Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", {
28
+ configurable: true,
29
+ enumerable: true,
30
+ get: function() {
31
+ if (!this.__generatedMappings) this._parseMappings(this._mappings, this.sourceRoot);
32
+ return this.__generatedMappings;
33
+ }
34
+ });
35
+ SourceMapConsumer.prototype.__originalMappings = null;
36
+ Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", {
37
+ configurable: true,
38
+ enumerable: true,
39
+ get: function() {
40
+ if (!this.__originalMappings) this._parseMappings(this._mappings, this.sourceRoot);
41
+ return this.__originalMappings;
42
+ }
43
+ });
44
+ SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
45
+ var c = aStr.charAt(index);
46
+ return c === ";" || c === ",";
47
+ };
48
+ /**
49
+ * Parse the mappings in a string in to a data structure which we can easily
50
+ * query (the ordered arrays in the `this.__generatedMappings` and
51
+ * `this.__originalMappings` properties).
52
+ */
53
+ SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
54
+ throw new Error("Subclasses must implement _parseMappings");
55
+ };
56
+ SourceMapConsumer.GENERATED_ORDER = 1;
57
+ SourceMapConsumer.ORIGINAL_ORDER = 2;
58
+ SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
59
+ SourceMapConsumer.LEAST_UPPER_BOUND = 2;
60
+ /**
61
+ * Iterate over each mapping between an original source/line/column and a
62
+ * generated line/column in this source map.
63
+ *
64
+ * @param Function aCallback
65
+ * The function that is called with each mapping.
66
+ * @param Object aContext
67
+ * Optional. If specified, this object will be the value of `this` every
68
+ * time that `aCallback` is called.
69
+ * @param aOrder
70
+ * Either `SourceMapConsumer.GENERATED_ORDER` or
71
+ * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
72
+ * iterate over the mappings sorted by the generated file's line/column
73
+ * order or the original's source/line/column order, respectively. Defaults to
74
+ * `SourceMapConsumer.GENERATED_ORDER`.
75
+ */
76
+ SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
77
+ var context = aContext || null;
78
+ var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
79
+ var mappings;
80
+ switch (order) {
81
+ case SourceMapConsumer.GENERATED_ORDER:
82
+ mappings = this._generatedMappings;
83
+ break;
84
+ case SourceMapConsumer.ORIGINAL_ORDER:
85
+ mappings = this._originalMappings;
86
+ break;
87
+ default: throw new Error("Unknown order of iteration.");
88
+ }
89
+ var sourceRoot = this.sourceRoot;
90
+ var boundCallback = aCallback.bind(context);
91
+ var names = this._names;
92
+ var sources = this._sources;
93
+ var sourceMapURL = this._sourceMapURL;
94
+ for (var i = 0, n = mappings.length; i < n; i++) {
95
+ var mapping = mappings[i];
96
+ var source = mapping.source === null ? null : sources.at(mapping.source);
97
+ if (source !== null) source = util.computeSourceURL(sourceRoot, source, sourceMapURL);
98
+ boundCallback({
99
+ source,
100
+ generatedLine: mapping.generatedLine,
101
+ generatedColumn: mapping.generatedColumn,
102
+ originalLine: mapping.originalLine,
103
+ originalColumn: mapping.originalColumn,
104
+ name: mapping.name === null ? null : names.at(mapping.name)
105
+ });
106
+ }
107
+ };
108
+ /**
109
+ * Returns all generated line and column information for the original source,
110
+ * line, and column provided. If no column is provided, returns all mappings
111
+ * corresponding to a either the line we are searching for or the next
112
+ * closest line that has any mappings. Otherwise, returns all mappings
113
+ * corresponding to the given line and either the column we are searching for
114
+ * or the next closest column that has any offsets.
115
+ *
116
+ * The only argument is an object with the following properties:
117
+ *
118
+ * - source: The filename of the original source.
119
+ * - line: The line number in the original source. The line number is 1-based.
120
+ * - column: Optional. the column number in the original source.
121
+ * The column number is 0-based.
122
+ *
123
+ * and an array of objects is returned, each with the following properties:
124
+ *
125
+ * - line: The line number in the generated source, or null. The
126
+ * line number is 1-based.
127
+ * - column: The column number in the generated source, or null.
128
+ * The column number is 0-based.
129
+ */
130
+ SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
131
+ var line = util.getArg(aArgs, "line");
132
+ var needle = {
133
+ source: util.getArg(aArgs, "source"),
134
+ originalLine: line,
135
+ originalColumn: util.getArg(aArgs, "column", 0)
136
+ };
137
+ needle.source = this._findSourceIndex(needle.source);
138
+ if (needle.source < 0) return [];
139
+ var mappings = [];
140
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND);
141
+ if (index >= 0) {
142
+ var mapping = this._originalMappings[index];
143
+ if (aArgs.column === void 0) {
144
+ var originalLine = mapping.originalLine;
145
+ while (mapping && mapping.originalLine === originalLine) {
146
+ mappings.push({
147
+ line: util.getArg(mapping, "generatedLine", null),
148
+ column: util.getArg(mapping, "generatedColumn", null),
149
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
150
+ });
151
+ mapping = this._originalMappings[++index];
152
+ }
153
+ } else {
154
+ var originalColumn = mapping.originalColumn;
155
+ while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
156
+ mappings.push({
157
+ line: util.getArg(mapping, "generatedLine", null),
158
+ column: util.getArg(mapping, "generatedColumn", null),
159
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
160
+ });
161
+ mapping = this._originalMappings[++index];
162
+ }
163
+ }
164
+ }
165
+ return mappings;
166
+ };
167
+ exports.SourceMapConsumer = SourceMapConsumer;
168
+ /**
169
+ * A BasicSourceMapConsumer instance represents a parsed source map which we can
170
+ * query for information about the original file positions by giving it a file
171
+ * position in the generated source.
172
+ *
173
+ * The first parameter is the raw source map (either as a JSON string, or
174
+ * already parsed to an object). According to the spec, source maps have the
175
+ * following attributes:
176
+ *
177
+ * - version: Which version of the source map spec this map is following.
178
+ * - sources: An array of URLs to the original source files.
179
+ * - names: An array of identifiers which can be referrenced by individual mappings.
180
+ * - sourceRoot: Optional. The URL root from which all sources are relative.
181
+ * - sourcesContent: Optional. An array of contents of the original source files.
182
+ * - mappings: A string of base64 VLQs which contain the actual mappings.
183
+ * - file: Optional. The generated file this source map is associated with.
184
+ *
185
+ * Here is an example source map, taken from the source map spec[0]:
186
+ *
187
+ * {
188
+ * version : 3,
189
+ * file: "out.js",
190
+ * sourceRoot : "",
191
+ * sources: ["foo.js", "bar.js"],
192
+ * names: ["src", "maps", "are", "fun"],
193
+ * mappings: "AA,AB;;ABCDE;"
194
+ * }
195
+ *
196
+ * The second parameter, if given, is a string whose value is the URL
197
+ * at which the source map was found. This URL is used to compute the
198
+ * sources array.
199
+ *
200
+ * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
201
+ */
202
+ function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
203
+ var sourceMap = aSourceMap;
204
+ if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
205
+ var version = util.getArg(sourceMap, "version");
206
+ var sources = util.getArg(sourceMap, "sources");
207
+ var names = util.getArg(sourceMap, "names", []);
208
+ var sourceRoot = util.getArg(sourceMap, "sourceRoot", null);
209
+ var sourcesContent = util.getArg(sourceMap, "sourcesContent", null);
210
+ var mappings = util.getArg(sourceMap, "mappings");
211
+ var file = util.getArg(sourceMap, "file", null);
212
+ if (version != this._version) throw new Error("Unsupported version: " + version);
213
+ if (sourceRoot) sourceRoot = util.normalize(sourceRoot);
214
+ sources = sources.map(String).map(util.normalize).map(function(source) {
215
+ return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source;
216
+ });
217
+ this._names = ArraySet.fromArray(names.map(String), true);
218
+ this._sources = ArraySet.fromArray(sources, true);
219
+ this._absoluteSources = this._sources.toArray().map(function(s) {
220
+ return util.computeSourceURL(sourceRoot, s, aSourceMapURL);
221
+ });
222
+ this.sourceRoot = sourceRoot;
223
+ this.sourcesContent = sourcesContent;
224
+ this._mappings = mappings;
225
+ this._sourceMapURL = aSourceMapURL;
226
+ this.file = file;
227
+ }
228
+ BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
229
+ BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
230
+ /**
231
+ * Utility function to find the index of a source. Returns -1 if not
232
+ * found.
233
+ */
234
+ BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
235
+ var relativeSource = aSource;
236
+ if (this.sourceRoot != null) relativeSource = util.relative(this.sourceRoot, relativeSource);
237
+ if (this._sources.has(relativeSource)) return this._sources.indexOf(relativeSource);
238
+ var i;
239
+ for (i = 0; i < this._absoluteSources.length; ++i) if (this._absoluteSources[i] == aSource) return i;
240
+ return -1;
241
+ };
242
+ /**
243
+ * Create a BasicSourceMapConsumer from a SourceMapGenerator.
244
+ *
245
+ * @param SourceMapGenerator aSourceMap
246
+ * The source map that will be consumed.
247
+ * @param String aSourceMapURL
248
+ * The URL at which the source map can be found (optional)
249
+ * @returns BasicSourceMapConsumer
250
+ */
251
+ BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) {
252
+ var smc = Object.create(BasicSourceMapConsumer.prototype);
253
+ var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
254
+ var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
255
+ smc.sourceRoot = aSourceMap._sourceRoot;
256
+ smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), smc.sourceRoot);
257
+ smc.file = aSourceMap._file;
258
+ smc._sourceMapURL = aSourceMapURL;
259
+ smc._absoluteSources = smc._sources.toArray().map(function(s) {
260
+ return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL);
261
+ });
262
+ var generatedMappings = aSourceMap._mappings.toArray().slice();
263
+ var destGeneratedMappings = smc.__generatedMappings = [];
264
+ var destOriginalMappings = smc.__originalMappings = [];
265
+ for (var i = 0, length = generatedMappings.length; i < length; i++) {
266
+ var srcMapping = generatedMappings[i];
267
+ var destMapping = new Mapping();
268
+ destMapping.generatedLine = srcMapping.generatedLine;
269
+ destMapping.generatedColumn = srcMapping.generatedColumn;
270
+ if (srcMapping.source) {
271
+ destMapping.source = sources.indexOf(srcMapping.source);
272
+ destMapping.originalLine = srcMapping.originalLine;
273
+ destMapping.originalColumn = srcMapping.originalColumn;
274
+ if (srcMapping.name) destMapping.name = names.indexOf(srcMapping.name);
275
+ destOriginalMappings.push(destMapping);
276
+ }
277
+ destGeneratedMappings.push(destMapping);
278
+ }
279
+ quickSort(smc.__originalMappings, util.compareByOriginalPositions);
280
+ return smc;
281
+ };
282
+ /**
283
+ * The version of the source mapping spec that we are consuming.
284
+ */
285
+ BasicSourceMapConsumer.prototype._version = 3;
286
+ /**
287
+ * The list of original sources.
288
+ */
289
+ Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", { get: function() {
290
+ return this._absoluteSources.slice();
291
+ } });
292
+ /**
293
+ * Provide the JIT with a nice shape / hidden class.
294
+ */
295
+ function Mapping() {
296
+ this.generatedLine = 0;
297
+ this.generatedColumn = 0;
298
+ this.source = null;
299
+ this.originalLine = null;
300
+ this.originalColumn = null;
301
+ this.name = null;
302
+ }
303
+ /**
304
+ * Parse the mappings in a string in to a data structure which we can easily
305
+ * query (the ordered arrays in the `this.__generatedMappings` and
306
+ * `this.__originalMappings` properties).
307
+ */
308
+ const compareGenerated = util.compareByGeneratedPositionsDeflatedNoLine;
309
+ function sortGenerated(array, start) {
310
+ let l = array.length;
311
+ let n = array.length - start;
312
+ if (n <= 1) return;
313
+ else if (n == 2) {
314
+ let a = array[start];
315
+ let b = array[start + 1];
316
+ if (compareGenerated(a, b) > 0) {
317
+ array[start] = b;
318
+ array[start + 1] = a;
319
+ }
320
+ } else if (n < 20) for (let i = start; i < l; i++) for (let j = i; j > start; j--) {
321
+ let a = array[j - 1];
322
+ let b = array[j];
323
+ if (compareGenerated(a, b) <= 0) break;
324
+ array[j - 1] = b;
325
+ array[j] = a;
326
+ }
327
+ else quickSort(array, compareGenerated, start);
328
+ }
329
+ BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
330
+ var generatedLine = 1;
331
+ var previousGeneratedColumn = 0;
332
+ var previousOriginalLine = 0;
333
+ var previousOriginalColumn = 0;
334
+ var previousSource = 0;
335
+ var previousName = 0;
336
+ var length = aStr.length;
337
+ var index = 0;
338
+ var temp = {};
339
+ var originalMappings = [];
340
+ var generatedMappings = [], mapping, segment, end, value;
341
+ let subarrayStart = 0;
342
+ while (index < length) if (aStr.charAt(index) === ";") {
343
+ generatedLine++;
344
+ index++;
345
+ previousGeneratedColumn = 0;
346
+ sortGenerated(generatedMappings, subarrayStart);
347
+ subarrayStart = generatedMappings.length;
348
+ } else if (aStr.charAt(index) === ",") index++;
349
+ else {
350
+ mapping = new Mapping();
351
+ mapping.generatedLine = generatedLine;
352
+ for (end = index; end < length; end++) if (this._charIsMappingSeparator(aStr, end)) break;
353
+ aStr.slice(index, end);
354
+ segment = [];
355
+ while (index < end) {
356
+ base64VLQ.decode(aStr, index, temp);
357
+ value = temp.value;
358
+ index = temp.rest;
359
+ segment.push(value);
360
+ }
361
+ if (segment.length === 2) throw new Error("Found a source, but no line and column");
362
+ if (segment.length === 3) throw new Error("Found a source and line, but no column");
363
+ mapping.generatedColumn = previousGeneratedColumn + segment[0];
364
+ previousGeneratedColumn = mapping.generatedColumn;
365
+ if (segment.length > 1) {
366
+ mapping.source = previousSource + segment[1];
367
+ previousSource += segment[1];
368
+ mapping.originalLine = previousOriginalLine + segment[2];
369
+ previousOriginalLine = mapping.originalLine;
370
+ mapping.originalLine += 1;
371
+ mapping.originalColumn = previousOriginalColumn + segment[3];
372
+ previousOriginalColumn = mapping.originalColumn;
373
+ if (segment.length > 4) {
374
+ mapping.name = previousName + segment[4];
375
+ previousName += segment[4];
376
+ }
377
+ }
378
+ generatedMappings.push(mapping);
379
+ if (typeof mapping.originalLine === "number") {
380
+ let currentSource = mapping.source;
381
+ while (originalMappings.length <= currentSource) originalMappings.push(null);
382
+ if (originalMappings[currentSource] === null) originalMappings[currentSource] = [];
383
+ originalMappings[currentSource].push(mapping);
384
+ }
385
+ }
386
+ sortGenerated(generatedMappings, subarrayStart);
387
+ this.__generatedMappings = generatedMappings;
388
+ for (var i = 0; i < originalMappings.length; i++) if (originalMappings[i] != null) quickSort(originalMappings[i], util.compareByOriginalPositionsNoSource);
389
+ this.__originalMappings = [].concat(...originalMappings);
390
+ };
391
+ /**
392
+ * Find the mapping that best matches the hypothetical "needle" mapping that
393
+ * we are searching for in the given "haystack" of mappings.
394
+ */
395
+ BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
396
+ if (aNeedle[aLineName] <= 0) throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]);
397
+ if (aNeedle[aColumnName] < 0) throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]);
398
+ return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
399
+ };
400
+ /**
401
+ * Compute the last column for each generated mapping. The last column is
402
+ * inclusive.
403
+ */
404
+ BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() {
405
+ for (var index = 0; index < this._generatedMappings.length; ++index) {
406
+ var mapping = this._generatedMappings[index];
407
+ if (index + 1 < this._generatedMappings.length) {
408
+ var nextMapping = this._generatedMappings[index + 1];
409
+ if (mapping.generatedLine === nextMapping.generatedLine) {
410
+ mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
411
+ continue;
412
+ }
413
+ }
414
+ mapping.lastGeneratedColumn = Infinity;
415
+ }
416
+ };
417
+ /**
418
+ * Returns the original source, line, and column information for the generated
419
+ * source's line and column positions provided. The only argument is an object
420
+ * with the following properties:
421
+ *
422
+ * - line: The line number in the generated source. The line number
423
+ * is 1-based.
424
+ * - column: The column number in the generated source. The column
425
+ * number is 0-based.
426
+ * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
427
+ * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
428
+ * closest element that is smaller than or greater than the one we are
429
+ * searching for, respectively, if the exact element cannot be found.
430
+ * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
431
+ *
432
+ * and an object is returned with the following properties:
433
+ *
434
+ * - source: The original source file, or null.
435
+ * - line: The line number in the original source, or null. The
436
+ * line number is 1-based.
437
+ * - column: The column number in the original source, or null. The
438
+ * column number is 0-based.
439
+ * - name: The original identifier, or null.
440
+ */
441
+ BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
442
+ var needle = {
443
+ generatedLine: util.getArg(aArgs, "line"),
444
+ generatedColumn: util.getArg(aArgs, "column")
445
+ };
446
+ var index = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util.compareByGeneratedPositionsDeflated, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
447
+ if (index >= 0) {
448
+ var mapping = this._generatedMappings[index];
449
+ if (mapping.generatedLine === needle.generatedLine) {
450
+ var source = util.getArg(mapping, "source", null);
451
+ if (source !== null) {
452
+ source = this._sources.at(source);
453
+ source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
454
+ }
455
+ var name = util.getArg(mapping, "name", null);
456
+ if (name !== null) name = this._names.at(name);
457
+ return {
458
+ source,
459
+ line: util.getArg(mapping, "originalLine", null),
460
+ column: util.getArg(mapping, "originalColumn", null),
461
+ name
462
+ };
463
+ }
464
+ }
465
+ return {
466
+ source: null,
467
+ line: null,
468
+ column: null,
469
+ name: null
470
+ };
471
+ };
472
+ /**
473
+ * Return true if we have the source content for every source in the source
474
+ * map, false otherwise.
475
+ */
476
+ BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() {
477
+ if (!this.sourcesContent) return false;
478
+ return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) {
479
+ return sc == null;
480
+ });
481
+ };
482
+ /**
483
+ * Returns the original source content. The only argument is the url of the
484
+ * original source file. Returns null if no original source content is
485
+ * available.
486
+ */
487
+ BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
488
+ if (!this.sourcesContent) return null;
489
+ var index = this._findSourceIndex(aSource);
490
+ if (index >= 0) return this.sourcesContent[index];
491
+ var relativeSource = aSource;
492
+ if (this.sourceRoot != null) relativeSource = util.relative(this.sourceRoot, relativeSource);
493
+ var url;
494
+ if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) {
495
+ var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
496
+ if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
497
+ if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) return this.sourcesContent[this._sources.indexOf("/" + relativeSource)];
498
+ }
499
+ if (nullOnMissing) return null;
500
+ else throw new Error("\"" + relativeSource + "\" is not in the SourceMap.");
501
+ };
502
+ /**
503
+ * Returns the generated line and column information for the original source,
504
+ * line, and column positions provided. The only argument is an object with
505
+ * the following properties:
506
+ *
507
+ * - source: The filename of the original source.
508
+ * - line: The line number in the original source. The line number
509
+ * is 1-based.
510
+ * - column: The column number in the original source. The column
511
+ * number is 0-based.
512
+ * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
513
+ * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
514
+ * closest element that is smaller than or greater than the one we are
515
+ * searching for, respectively, if the exact element cannot be found.
516
+ * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
517
+ *
518
+ * and an object is returned with the following properties:
519
+ *
520
+ * - line: The line number in the generated source, or null. The
521
+ * line number is 1-based.
522
+ * - column: The column number in the generated source, or null.
523
+ * The column number is 0-based.
524
+ */
525
+ BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
526
+ var source = util.getArg(aArgs, "source");
527
+ source = this._findSourceIndex(source);
528
+ if (source < 0) return {
529
+ line: null,
530
+ column: null,
531
+ lastColumn: null
532
+ };
533
+ var needle = {
534
+ source,
535
+ originalLine: util.getArg(aArgs, "line"),
536
+ originalColumn: util.getArg(aArgs, "column")
537
+ };
538
+ var index = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND));
539
+ if (index >= 0) {
540
+ var mapping = this._originalMappings[index];
541
+ if (mapping.source === needle.source) return {
542
+ line: util.getArg(mapping, "generatedLine", null),
543
+ column: util.getArg(mapping, "generatedColumn", null),
544
+ lastColumn: util.getArg(mapping, "lastGeneratedColumn", null)
545
+ };
546
+ }
547
+ return {
548
+ line: null,
549
+ column: null,
550
+ lastColumn: null
551
+ };
552
+ };
553
+ exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
554
+ /**
555
+ * An IndexedSourceMapConsumer instance represents a parsed source map which
556
+ * we can query for information. It differs from BasicSourceMapConsumer in
557
+ * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
558
+ * input.
559
+ *
560
+ * The first parameter is a raw source map (either as a JSON string, or already
561
+ * parsed to an object). According to the spec for indexed source maps, they
562
+ * have the following attributes:
563
+ *
564
+ * - version: Which version of the source map spec this map is following.
565
+ * - file: Optional. The generated file this source map is associated with.
566
+ * - sections: A list of section definitions.
567
+ *
568
+ * Each value under the "sections" field has two fields:
569
+ * - offset: The offset into the original specified at which this section
570
+ * begins to apply, defined as an object with a "line" and "column"
571
+ * field.
572
+ * - map: A source map definition. This source map could also be indexed,
573
+ * but doesn't have to be.
574
+ *
575
+ * Instead of the "map" field, it's also possible to have a "url" field
576
+ * specifying a URL to retrieve a source map from, but that's currently
577
+ * unsupported.
578
+ *
579
+ * Here's an example source map, taken from the source map spec[0], but
580
+ * modified to omit a section which uses the "url" field.
581
+ *
582
+ * {
583
+ * version : 3,
584
+ * file: "app.js",
585
+ * sections: [{
586
+ * offset: {line:100, column:10},
587
+ * map: {
588
+ * version : 3,
589
+ * file: "section.js",
590
+ * sources: ["foo.js", "bar.js"],
591
+ * names: ["src", "maps", "are", "fun"],
592
+ * mappings: "AAAA,E;;ABCDE;"
593
+ * }
594
+ * }],
595
+ * }
596
+ *
597
+ * The second parameter, if given, is a string whose value is the URL
598
+ * at which the source map was found. This URL is used to compute the
599
+ * sources array.
600
+ *
601
+ * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
602
+ */
603
+ function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
604
+ var sourceMap = aSourceMap;
605
+ if (typeof aSourceMap === "string") sourceMap = util.parseSourceMapInput(aSourceMap);
606
+ var version = util.getArg(sourceMap, "version");
607
+ var sections = util.getArg(sourceMap, "sections");
608
+ if (version != this._version) throw new Error("Unsupported version: " + version);
609
+ this._sources = new ArraySet();
610
+ this._names = new ArraySet();
611
+ var lastOffset = {
612
+ line: -1,
613
+ column: 0
614
+ };
615
+ this._sections = sections.map(function(s) {
616
+ if (s.url) throw new Error("Support for url field in sections not implemented.");
617
+ var offset = util.getArg(s, "offset");
618
+ var offsetLine = util.getArg(offset, "line");
619
+ var offsetColumn = util.getArg(offset, "column");
620
+ if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) throw new Error("Section offsets must be ordered and non-overlapping.");
621
+ lastOffset = offset;
622
+ return {
623
+ generatedOffset: {
624
+ generatedLine: offsetLine + 1,
625
+ generatedColumn: offsetColumn + 1
626
+ },
627
+ consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL)
628
+ };
629
+ });
630
+ }
631
+ IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
632
+ IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
633
+ /**
634
+ * The version of the source mapping spec that we are consuming.
635
+ */
636
+ IndexedSourceMapConsumer.prototype._version = 3;
637
+ /**
638
+ * The list of original sources.
639
+ */
640
+ Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { get: function() {
641
+ var sources = [];
642
+ for (var i = 0; i < this._sections.length; i++) for (var j = 0; j < this._sections[i].consumer.sources.length; j++) sources.push(this._sections[i].consumer.sources[j]);
643
+ return sources;
644
+ } });
645
+ /**
646
+ * Returns the original source, line, and column information for the generated
647
+ * source's line and column positions provided. The only argument is an object
648
+ * with the following properties:
649
+ *
650
+ * - line: The line number in the generated source. The line number
651
+ * is 1-based.
652
+ * - column: The column number in the generated source. The column
653
+ * number is 0-based.
654
+ *
655
+ * and an object is returned with the following properties:
656
+ *
657
+ * - source: The original source file, or null.
658
+ * - line: The line number in the original source, or null. The
659
+ * line number is 1-based.
660
+ * - column: The column number in the original source, or null. The
661
+ * column number is 0-based.
662
+ * - name: The original identifier, or null.
663
+ */
664
+ IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
665
+ var needle = {
666
+ generatedLine: util.getArg(aArgs, "line"),
667
+ generatedColumn: util.getArg(aArgs, "column")
668
+ };
669
+ var sectionIndex = binarySearch.search(needle, this._sections, function(needle, section) {
670
+ var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
671
+ if (cmp) return cmp;
672
+ return needle.generatedColumn - section.generatedOffset.generatedColumn;
673
+ });
674
+ var section = this._sections[sectionIndex];
675
+ if (!section) return {
676
+ source: null,
677
+ line: null,
678
+ column: null,
679
+ name: null
680
+ };
681
+ return section.consumer.originalPositionFor({
682
+ line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),
683
+ column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
684
+ bias: aArgs.bias
685
+ });
686
+ };
687
+ /**
688
+ * Return true if we have the source content for every source in the source
689
+ * map, false otherwise.
690
+ */
691
+ IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() {
692
+ return this._sections.every(function(s) {
693
+ return s.consumer.hasContentsOfAllSources();
694
+ });
695
+ };
696
+ /**
697
+ * Returns the original source content. The only argument is the url of the
698
+ * original source file. Returns null if no original source content is
699
+ * available.
700
+ */
701
+ IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
702
+ for (var i = 0; i < this._sections.length; i++) {
703
+ var content = this._sections[i].consumer.sourceContentFor(aSource, true);
704
+ if (content || content === "") return content;
705
+ }
706
+ if (nullOnMissing) return null;
707
+ else throw new Error("\"" + aSource + "\" is not in the SourceMap.");
708
+ };
709
+ /**
710
+ * Returns the generated line and column information for the original source,
711
+ * line, and column positions provided. The only argument is an object with
712
+ * the following properties:
713
+ *
714
+ * - source: The filename of the original source.
715
+ * - line: The line number in the original source. The line number
716
+ * is 1-based.
717
+ * - column: The column number in the original source. The column
718
+ * number is 0-based.
719
+ *
720
+ * and an object is returned with the following properties:
721
+ *
722
+ * - line: The line number in the generated source, or null. The
723
+ * line number is 1-based.
724
+ * - column: The column number in the generated source, or null.
725
+ * The column number is 0-based.
726
+ */
727
+ IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
728
+ for (var i = 0; i < this._sections.length; i++) {
729
+ var section = this._sections[i];
730
+ if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) continue;
731
+ var generatedPosition = section.consumer.generatedPositionFor(aArgs);
732
+ if (generatedPosition) return {
733
+ line: generatedPosition.line + (section.generatedOffset.generatedLine - 1),
734
+ column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0)
735
+ };
736
+ }
737
+ return {
738
+ line: null,
739
+ column: null
740
+ };
741
+ };
742
+ /**
743
+ * Parse the mappings in a string in to a data structure which we can easily
744
+ * query (the ordered arrays in the `this.__generatedMappings` and
745
+ * `this.__originalMappings` properties).
746
+ */
747
+ IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
748
+ this.__generatedMappings = [];
749
+ this.__originalMappings = [];
750
+ for (var i = 0; i < this._sections.length; i++) {
751
+ var section = this._sections[i];
752
+ var sectionMappings = section.consumer._generatedMappings;
753
+ for (var j = 0; j < sectionMappings.length; j++) {
754
+ var mapping = sectionMappings[j];
755
+ var source = section.consumer._sources.at(mapping.source);
756
+ if (source !== null) source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
757
+ this._sources.add(source);
758
+ source = this._sources.indexOf(source);
759
+ var name = null;
760
+ if (mapping.name) {
761
+ name = section.consumer._names.at(mapping.name);
762
+ this._names.add(name);
763
+ name = this._names.indexOf(name);
764
+ }
765
+ var adjustedMapping = {
766
+ source,
767
+ generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1),
768
+ generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0),
769
+ originalLine: mapping.originalLine,
770
+ originalColumn: mapping.originalColumn,
771
+ name
772
+ };
773
+ this.__generatedMappings.push(adjustedMapping);
774
+ if (typeof adjustedMapping.originalLine === "number") this.__originalMappings.push(adjustedMapping);
775
+ }
776
+ }
777
+ quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
778
+ quickSort(this.__originalMappings, util.compareByOriginalPositions);
779
+ };
780
+ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
781
+ }));
782
+ //#endregion
783
+ Object.defineProperty(exports, "default", {
784
+ enumerable: true,
785
+ get: function() {
786
+ return require_source_map_consumer();
787
+ }
788
+ });
789
+
790
+ //# sourceMappingURL=source-map-consumer.cjs.map